diff --git a/9886.db834846.async.js b/9886.5f7cbbfe.async.js similarity index 86% rename from 9886.db834846.async.js rename to 9886.5f7cbbfe.async.js index eb5562a9cb..ca9d8ce1f3 100644 --- a/9886.db834846.async.js +++ b/9886.5f7cbbfe.async.js @@ -1,10 +1,10 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[9886],{87169:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return vt}});var Ft=Rt(72308),ie=Rt(59301),rt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},kt=rt,Ct=Rt(7657),St=function(xt,dt){return ie.createElement(Ct.Z,(0,Ft.Z)({},xt,{ref:dt,icon:kt}))},pt=ie.forwardRef(St),vt=pt},32050:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return vt}});var Ft=Rt(72308),ie=Rt(59301),rt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},kt=rt,Ct=Rt(7657),St=function(xt,dt){return ie.createElement(Ct.Z,(0,Ft.Z)({},xt,{ref:dt,icon:kt}))},pt=ie.forwardRef(St),vt=pt},37036:function(){"use strict"},88010:function(tn,Ke){"use strict";Ke.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},38476:function(){"use strict"},74413:function(){"use strict";function tn(lt,E,z,ot){z===void 0&&(z=0),ot===void 0&&(ot=1/0),this._name=lt,this._defaultValue=E,this._minimum=z,this._maximum=ot}Object.defineProperty(tn.prototype,"name",{get:function(){return this._name},set:function(lt){if(typeof lt!="string"||lt==="")throw new Error("Shape name must be a valid string.");this._name=lt}}),Object.defineProperty(tn.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(lt){if(typeof lt!="number"||isNaN(lt))throw new Error("The default value must be a real number, not: "+lt);this._defaultValue=lt}}),Object.defineProperty(tn.prototype,"minimum",{get:function(){return this._minimum},set:function(lt){if(typeof lt!="number"||isNaN(lt))throw new Error("Minimum must be a real number, not: "+lt);this._minimum=lt}}),Object.defineProperty(tn.prototype,"maximum",{get:function(){return this._maximum},set:function(lt){if(typeof lt!="number"||isNaN(lt))throw new Error("Maximum must be a real number, not: "+lt);this._maximum=lt}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(lt,E){var z=go.Shape._FigureParameters[lt];return z?z[E]:null},go.Shape.setFigureParameter=function(lt,E,z){if(!(z instanceof tn))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+z);if(z.defaultValuez.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+z.defaultValue);var ot=go.Shape._FigureParameters[lt];ot||(ot=[],go.Shape._FigureParameters[lt]=ot),ot[E]=z};var Ke=[];function Rt(lt,E){var z=Ke.pop();return z===void 0?new go.Point(lt,E):(z.x=lt,z.y=E,z)}function Ft(){var lt=Ke.pop();return lt===void 0?new go.Point:lt}function ie(lt){Ke.push(lt)}function rt(lt,E,z,ot,it,at,ut,wt,Et){Et||(Et=new go.Point);var At=lt-z,_t=it-ut,Mt=NaN,jt=NaN;if(At===0)if(_t===0)lt===z&&(Mt=lt,jt=E);else{var Lt=(at-wt)/_t,It=at-Lt*it;Mt=lt,jt=Lt*Mt+It}else if(_t===0){var Ut=(E-ot)/At,Xt=E-Ut*lt;Mt=it,jt=Ut*Mt+Xt}else{var Ut=(E-ot)/At,Lt=(at-wt)/_t,Xt=E-Ut*lt,It=at-Lt*it;Mt=(It-Xt)/(Ut-Lt),jt=Ut*Mt+Xt}return Et.x=Mt,Et.y=jt,Et}function kt(lt,E,z,ot,it,at,ut,wt,Et,At,_t,Mt,jt,Lt){var It=1-Et,Ut=Et,Xt=lt*It+z*Ut,Gt=E*It+ot*Ut,Yt=z*It+it*Ut,Ht=ot*It+at*Ut,ne=it*It+ut*Ut,ae=at*It+wt*Ut,ve=Xt*It+Yt*Ut,Kt=Gt*It+Ht*Ut,re=Yt*It+ne*Ut,we=Ht*It+ae*Ut,Me=ve*It+re*Ut,ke=Kt*It+we*Ut;At.x=Xt,At.y=Gt,_t.x=ve,_t.y=Kt,Mt.x=Me,Mt.y=ke,jt.x=re,jt.y=we,Lt.x=ne,Lt.y=ae}var Ct=new go.Spot(.156,.156),St=new go.Spot(.844,.844),pt=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new tn("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(lt,E,z){var ot=lt?lt.parameter1:NaN;(isNaN(ot)||ot<0)&&(ot=5),ot=Math.min(ot,E/3),ot=Math.min(ot,z/3);var it=ot*pt,at=new go.Geometry().add(new go.PathFigure(ot,0,!0).add(new go.PathSegment(go.PathSegment.Line,E-ot,0)).add(new go.PathSegment(go.PathSegment.Bezier,E,ot,E-it,0,E,it)).add(new go.PathSegment(go.PathSegment.Line,E,z-ot)).add(new go.PathSegment(go.PathSegment.Bezier,E-ot,z,E,z-it,E-it,z)).add(new go.PathSegment(go.PathSegment.Line,ot,z)).add(new go.PathSegment(go.PathSegment.Bezier,0,z-ot,it,z,0,z-it)).add(new go.PathSegment(go.PathSegment.Line,0,ot)).add(new go.PathSegment(go.PathSegment.Bezier,ot,0,0,it,it,0).close()));return it>1&&(at.spot1=new go.Spot(0,0,it,it),at.spot2=new go.Spot(1,1,-it,-it)),at}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,.5*z)).add(new go.PathSegment(go.PathSegment.Line,0,z).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,.5*E,z).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(E,z).add(new go.PathSegment(go.PathSegment.Line,0,.5*z)).add(new go.PathSegment(go.PathSegment.Line,E,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(E,z).add(new go.PathSegment(go.PathSegment.Line,0,z)).add(new go.PathSegment(go.PathSegment.Line,.5*E,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(.5*E,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*z)).add(new go.PathSegment(go.PathSegment.Line,.5*E,z)).add(new go.PathSegment(go.PathSegment.Line,E,.5*z).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(lt,E,z){var ot=new go.Geometry(go.Geometry.Line);return ot.startX=0,ot.startY=z/2,ot.endX=E,ot.endY=z/2,ot}),go.Shape.defineFigureGenerator("LineV",function(lt,E,z){var ot=new go.Geometry(go.Geometry.Line);return ot.startX=E/2,ot.startY=0,ot.endX=E/2,ot.endY=z,ot}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,z/2,!1).add(new go.PathSegment(go.PathSegment.Line,E,z/2)).add(new go.PathSegment(go.PathSegment.Move,E/2,0)).add(new go.PathSegment(go.PathSegment.Line,E/2,z)))}),go.Shape.defineFigureGenerator("XLine",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,z,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,E,z)))}),go.Shape.defineFigureGenerator("LineRight",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(.25*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*E,.5*z)).add(new go.PathSegment(go.PathSegment.Line,.25*E,z)))}),go.Shape.defineFigureGenerator("LineDown",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,.25*z,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,.75*z)).add(new go.PathSegment(go.PathSegment.Line,E,.25*z)))}),go.Shape.defineFigureGenerator("LineLeft",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(.75*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*E,.5*z)).add(new go.PathSegment(go.PathSegment.Line,.75*E,z)))}),go.Shape.defineFigureGenerator("LineUp",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,.75*z,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,.25*z)).add(new go.PathSegment(go.PathSegment.Line,E,.75*z)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(lt,E,z){var ot=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(ot*E,(1-ot)*z,!1).add(new go.PathSegment(go.PathSegment.Line,(1-ot)*E,ot*z)).add(new go.PathSegment(go.PathSegment.Move,ot*E,ot*z)).add(new go.PathSegment(go.PathSegment.Line,(1-ot)*E,(1-ot)*z)).add(new go.PathSegment(go.PathSegment.Move,0,z/2)).add(new go.PathSegment(go.PathSegment.Line,E,z/2)).add(new go.PathSegment(go.PathSegment.Move,E/2,0)).add(new go.PathSegment(go.PathSegment.Line,E/2,z)))}),go.Shape.defineFigureGenerator("CircleLine",function(lt,E,z){var ot=E/2,it=new go.Geometry().add(new go.PathFigure(E,E/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,ot,ot,ot,ot).close()));return it.spot1=Ct,it.spot2=St,it.defaultStretch=go.GraphObject.Uniform,it}),go.Shape.defineFigureGenerator("Line1",function(lt,E,z){var ot=new go.Geometry(go.Geometry.Line);return ot.startX=0,ot.startY=0,ot.endX=E,ot.endY=z,ot}),go.Shape.defineFigureGenerator("Line2",function(lt,E,z){var ot=new go.Geometry(go.Geometry.Line);return ot.startX=E,ot.startY=0,ot.endX=0,ot.endY=z,ot}),go.Shape.defineFigureGenerator("Curve1",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,E,z,pt*E,0,E,(1-pt)*z)))}),go.Shape.defineFigureGenerator("Curve2",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,E,z,0,pt*z,(1-pt)*E,z)))}),go.Shape.defineFigureGenerator("Curve3",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,z,E,pt*z,pt*E,z)))}),go.Shape.defineFigureGenerator("Curve4",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,z,(1-pt)*E,0,0,(1-pt)*z)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,z)).add(new go.PathSegment(go.PathSegment.Line,0,z).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,z)).add(new go.PathSegment(go.PathSegment.Line,0,z).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,0,z).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,z).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new tn("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)?ot=.1:ot<-1?ot=-1:ot>1&&(ot=1);var it=Math.abs(ot)*E;if(ot===0){var at=new go.Geometry(go.Geometry.Rectangle);return at.startX=0,at.startY=0,at.endX=E,at.endY=z,at}else{var at=new go.Geometry;return ot>0?at.add(new go.PathFigure(it,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-it,z)).add(new go.PathSegment(go.PathSegment.Line,0,z).close())):at.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E-it,0)).add(new go.PathSegment(go.PathSegment.Line,E,z)).add(new go.PathSegment(go.PathSegment.Line,it,z).close())),itE&&(ot=E);var it=Math.abs(ot);if(ot===0){var at=new go.Geometry(go.Geometry.Rectangle);return at.startX=0,at.startY=0,at.endX=E,at.endY=z,at}else{var at=new go.Geometry;return ot>0?at.add(new go.PathFigure(it,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-it,z)).add(new go.PathSegment(go.PathSegment.Line,0,z).close())):at.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E-it,0)).add(new go.PathSegment(go.PathSegment.Line,E,z)).add(new go.PathSegment(go.PathSegment.Line,it,z).close())),it.5&&(ot=.5);var it=Math.abs(ot)*E;if(ot===0){var at=new go.Geometry(go.Geometry.Rectangle);return at.startX=0,at.startY=0,at.endX=E,at.endY=z,at}else{var at=new go.Geometry;return ot>0?at.add(new go.PathFigure(it,0).add(new go.PathSegment(go.PathSegment.Line,E-it,0)).add(new go.PathSegment(go.PathSegment.Line,E,z)).add(new go.PathSegment(go.PathSegment.Line,0,z).close())):at.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-it,z)).add(new go.PathSegment(go.PathSegment.Line,it,z).close())),itE&&(ot=E/2);var it=Math.abs(ot);if(ot===0){var at=new go.Geometry(go.Geometry.Rectangle);return at.startX=0,at.startY=0,at.endX=E,at.endY=z,at}else{var at=new go.Geometry;return ot>0?at.add(new go.PathFigure(it,0).add(new go.PathSegment(go.PathSegment.Line,E-it,0)).add(new go.PathSegment(go.PathSegment.Line,E,z)).add(new go.PathSegment(go.PathSegment.Line,0,z).close())):at.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-it,z)).add(new go.PathSegment(go.PathSegment.Line,it,z).close())),itE&&(ot=E/2);var it=Math.abs(ot);if(ot===0){var at=new go.Geometry(go.Geometry.Rectangle);return at.startX=0,at.startY=0,at.endX=E,at.endY=z,at}else{var at=new go.Geometry;return ot>0?at.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-it,z)).add(new go.PathSegment(go.PathSegment.Line,it,z).close())):at.add(new go.PathFigure(it,0).add(new go.PathSegment(go.PathSegment.Line,E-it,0)).add(new go.PathSegment(go.PathSegment.Line,E,z)).add(new go.PathSegment(go.PathSegment.Line,0,z).close())),it0&&(ut.add(new go.PathSegment(go.PathSegment.Move,E/2+wt,E/2)),ut.add(new go.PathSegment(go.PathSegment.Arc,0,-360,it,it,wt,wt).close())),at.spot1=Ct,at.spot2=St,at.defaultStretch=go.GraphObject.Uniform,at}),go.Shape.defineFigureGenerator("Cloud",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(.08034461*E,.1944299*z,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*E,.05349299*z,-.09239631*E,.07836421*z,.1406031*E,-.0542823*z)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*E,.074219*z,.2450511*E,-.00697547*z,.3776197*E,-.01112067*z)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*E,.07004196*z,.4539471*E,0,.6066018*E,-.02526587*z)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*E,.08370865*z,.6914277*E,-.01904177*z,.8921095*E,-.01220843*z)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*E,.3194596*z,1.036446*E,.04105738*z,1.020377*E,.3022052*z)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*E,.562044*z,1.04448*E,.360238*z,.992256*E,.5219009*z)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*E,.8217117*z,1.032337*E,.5771781*z,1.018411*E,.8120651*z)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*E,.9156953*z,1.028411*E,.9571472*z,.8556702*E,1.052487*z)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*E,.9310455*z,.7431877*E,1.009325*z,.5624123*E,1.021761*z)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*E,.9344623*z,.4820677*E,1.031761*z,.3030112*E,1.002796*z)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*E,.870098*z,.2329994*E,1.01518*z,.03213784*E,1.01518*z)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*E,.6545475*z,-.02812061*E,.9032597*z,-.01205169*E,.6835638*z)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*E,.4265613*z,-.01812061*E,.6089503*z,-.00606892*E,.4555777*z)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*E,.1944299*z,-.01606892*E,.3892545*z,-.01205169*E,.1944299*z))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(lt,E,z){var ot=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(ot*E,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-ot)*E,0)).add(new go.PathSegment(go.PathSegment.Line,E,ot*z)).add(new go.PathSegment(go.PathSegment.Line,E,(1-ot)*z)).add(new go.PathSegment(go.PathSegment.Line,(1-ot)*E,z)).add(new go.PathSegment(go.PathSegment.Line,ot*E,z)).add(new go.PathSegment(go.PathSegment.Line,0,(1-ot)*z)).add(new go.PathSegment(go.PathSegment.Line,0,ot*z).close())).setSpots(ot/2,ot/2,1-ot/2,1-ot/2)}),go.Shape.setFigureParameter("Pie",0,new tn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new tn("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(lt,E,z){var ot=lt?lt.parameter1:NaN,it=lt?lt.parameter2:NaN;isNaN(ot)&&(ot=0),isNaN(it)&&(it=315);var at=ot%360;at<0&&(at+=360);var ut=it%360,wt=Math.min(E,z)/2;return new go.Geometry().add(new go.PathFigure(wt,wt).add(new go.PathSegment(go.PathSegment.Arc,at,ut,wt,wt,wt,wt).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(lt,E,z){var ot=pt/Math.SQRT2*.5,it=Math.SQRT2/2,at=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(E,z,!0).add(new go.PathSegment(go.PathSegment.Bezier,it*E,at*z,E,(1-ot)*z,(it+ot)*E,(at+ot)*z)).add(new go.PathSegment(go.PathSegment.Line,0,z).close()))}),go.Shape.setFigureParameter("ThickCross",0,new tn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(lt,E,z){var ot=lt?lt.parameter1:NaN;(isNaN(ot)||ot<0)&&(ot=30);var it=Math.min(ot,E)/2,at=E/2,ut=z/2;return new go.Geometry().add(new go.PathFigure(at-it,0,!0).add(new go.PathSegment(go.PathSegment.Line,at+it,0)).add(new go.PathSegment(go.PathSegment.Line,at+it,ut-it)).add(new go.PathSegment(go.PathSegment.Line,E,ut-it)).add(new go.PathSegment(go.PathSegment.Line,E,ut+it)).add(new go.PathSegment(go.PathSegment.Line,at+it,ut+it)).add(new go.PathSegment(go.PathSegment.Line,at+it,z)).add(new go.PathSegment(go.PathSegment.Line,at-it,z)).add(new go.PathSegment(go.PathSegment.Line,at-it,ut+it)).add(new go.PathSegment(go.PathSegment.Line,0,ut+it)).add(new go.PathSegment(go.PathSegment.Line,0,ut-it)).add(new go.PathSegment(go.PathSegment.Line,at-it,ut-it).close()))}),go.Shape.setFigureParameter("ThinCross",0,new tn("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(lt,E,z){var ot=lt?lt.parameter1:NaN;(isNaN(ot)||ot<0)&&(ot=10);var it=Math.min(ot,E)/2,at=E/2,ut=z/2;return new go.Geometry().add(new go.PathFigure(at-it,0,!0).add(new go.PathSegment(go.PathSegment.Line,at+it,0)).add(new go.PathSegment(go.PathSegment.Line,at+it,ut-it)).add(new go.PathSegment(go.PathSegment.Line,E,ut-it)).add(new go.PathSegment(go.PathSegment.Line,E,ut+it)).add(new go.PathSegment(go.PathSegment.Line,at+it,ut+it)).add(new go.PathSegment(go.PathSegment.Line,at+it,z)).add(new go.PathSegment(go.PathSegment.Line,at-it,z)).add(new go.PathSegment(go.PathSegment.Line,at-it,ut+it)).add(new go.PathSegment(go.PathSegment.Line,0,ut+it)).add(new go.PathSegment(go.PathSegment.Line,0,ut-it)).add(new go.PathSegment(go.PathSegment.Line,at-it,ut-it).close()))}),go.Shape.setFigureParameter("ThickX",0,new tn("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(lt,E,z){var ot=lt?lt.parameter1:NaN;if((isNaN(ot)||ot<0)&&(ot=30),E===0||z===0){var it=new go.Geometry(go.Geometry.Rectangle);return it.startX=0,it.startY=0,it.endX=E,it.endY=z,it}else{var at=E/2,ut=z/2,wt=Math.atan2(z,E),Et=ot-Math.min(Math.cos(wt)*ot/2,at),At=ot-Math.min(Math.sin(wt)*ot/2,ut),it=new go.Geometry,_t=new go.PathFigure(Et,0,!0);return it.add(_t),_t.add(new go.PathSegment(go.PathSegment.Line,at,.2*z)),_t.add(new go.PathSegment(go.PathSegment.Line,E-Et,0)),_t.add(new go.PathSegment(go.PathSegment.Line,E,At)),_t.add(new go.PathSegment(go.PathSegment.Line,.8*E,ut)),_t.add(new go.PathSegment(go.PathSegment.Line,E,z-At)),_t.add(new go.PathSegment(go.PathSegment.Line,E-Et,z)),_t.add(new go.PathSegment(go.PathSegment.Line,at,.8*z)),_t.add(new go.PathSegment(go.PathSegment.Line,Et,z)),_t.add(new go.PathSegment(go.PathSegment.Line,0,z-At)),_t.add(new go.PathSegment(go.PathSegment.Line,.2*E,ut)),_t.add(new go.PathSegment(go.PathSegment.Line,0,At).close()),it}}),go.Shape.setFigureParameter("ThinX",0,new tn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(lt,E,z){var ot=lt?lt.parameter1:NaN;(isNaN(ot)||ot<0)&&(ot=10);var it=new go.Geometry,at=new go.PathFigure(.1*E,0,!0);return it.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,.4*z)),at.add(new go.PathSegment(go.PathSegment.Line,.9*E,0)),at.add(new go.PathSegment(go.PathSegment.Line,E,.1*z)),at.add(new go.PathSegment(go.PathSegment.Line,.6*E,.5*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,.9*z)),at.add(new go.PathSegment(go.PathSegment.Line,.9*E,z)),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*z)),at.add(new go.PathSegment(go.PathSegment.Line,.1*E,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,.9*z)),at.add(new go.PathSegment(go.PathSegment.Line,.4*E,.5*z)),at.add(new go.PathSegment(go.PathSegment.Line,0,.1*z).close()),it}),go.Shape.setFigureParameter("SquareIBeam",0,new tn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=.2);var it=new go.Geometry,at=new go.PathFigure(0,0,!0);return it.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,0)),at.add(new go.PathSegment(go.PathSegment.Line,E,ot*z)),at.add(new go.PathSegment(go.PathSegment.Line,(.5+ot/2)*E,ot*z)),at.add(new go.PathSegment(go.PathSegment.Line,(.5+ot/2)*E,(1-ot)*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,(1-ot)*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,(1-ot)*z)),at.add(new go.PathSegment(go.PathSegment.Line,(.5-ot/2)*E,(1-ot)*z)),at.add(new go.PathSegment(go.PathSegment.Line,(.5-ot/2)*E,ot*z)),at.add(new go.PathSegment(go.PathSegment.Line,0,ot*z).close()),it}),go.Shape.setFigureParameter("RoundedIBeam",0,new tn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=.5);var it=new go.Geometry,at=new go.PathFigure(0,0,!0);return it.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,0)),at.add(new go.PathSegment(go.PathSegment.Bezier,E,z,Math.abs(1-ot)*E,.25*z,Math.abs(1-ot)*E,.75*z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z)),at.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ot*E,.75*z,ot*E,.25*z).close()),it}),go.Shape.defineFigureGenerator("HalfEllipse",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,E,.5*z,pt*E,0,E,(.5-pt/2)*z)).add(new go.PathSegment(go.PathSegment.Bezier,0,z,E,(.5+pt/2)*z,pt*E,z).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,z,E,0,E,z)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*E,.75*z,.5*E,.25*z).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(.5*E,z,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*z,.1*E,.8*z,0,.5*z)).add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.3*z,0,0,.45*E,0)).add(new go.PathSegment(go.PathSegment.Bezier,E,.3*z,.55*E,0,E,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*E,z,E,.5*z,.9*E,.8*z).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(.5*E,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*E,.01*z)).add(new go.PathSegment(go.PathSegment.Bezier,E,.5*z,.6*E,.2*z,E,.25*z)).add(new go.PathSegment(go.PathSegment.Bezier,.55*E,.7*z,E,.8*z,.6*E,.8*z)).add(new go.PathSegment(go.PathSegment.Bezier,.75*E,z,.5*E,.75*z,.55*E,.95*z)).add(new go.PathSegment(go.PathSegment.Line,.25*E,z)).add(new go.PathSegment(go.PathSegment.Bezier,.45*E,.7*z,.45*E,.95*z,.5*E,.75*z)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*z,.4*E,.8*z,0,.8*z)).add(new go.PathSegment(go.PathSegment.Bezier,.49*E,.01*z,0,.25*z,.4*E,.2*z).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.4*E,.6*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,.15*E,z,.5*E,.75*z,.45*E,.95*z)),it.add(new go.PathSegment(go.PathSegment.Line,.85*E,z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.6*E,.6*z,.55*E,.95*z,.5*E,.75*z));var at=.2,ut=.3,wt=0,Et=at*pt;return it.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*E,(.5+at+wt)*z,(.5-at+ut)*E,(.5+Et+wt)*z,(.5-Et+ut)*E,(.5+at+wt)*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+at+ut)*E,(.5+wt)*z,(.5+Et+ut)*E,(.5+at+wt)*z,(.5+at+ut)*E,(.5+Et+wt)*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*E,(.5-at+wt)*z,(1-.5+at+ut)*E,(.5-Et+wt)*z,(.5+Et+ut)*E,(.5-at+wt)*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.65*E,.36771243*z,(.5-Et+ut)*E,(.5-at+wt)*z,(.5-at+ut+.05)*E,(.5-Et+wt-.02)*z)),at=.2,ut=0,wt=-.3,Et=at*pt,it.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+at+ut)*E,(.5+wt)*z,(.5+Et+ut)*E,(.5+at+wt)*z,(.5+at+ut)*E,(.5+Et+wt)*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*E,(.5-at+wt)*z,(1-.5+at+ut)*E,(.5-Et+wt)*z,(.5+Et+ut)*E,(.5-at+wt)*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,(.5-at+ut)*E,(.5+wt)*z,(.5-Et+ut)*E,(.5-at+wt)*z,(.5-at+ut)*E,(.5-Et+wt)*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Et+ut)*E,(.5+at+wt)*z,(.5-at+ut)*E,(.5+Et+wt)*z,(.5-Et+ut)*E,(.5+at+wt)*z)),at=.2,ut=-.3,wt=0,Et=at*pt,it.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*E,(.5-at+wt)*z,(1-.5+at+ut-.05)*E,(.5-Et+wt-.02)*z,(.5+Et+ut)*E,(.5-at+wt)*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,(.5-at+ut)*E,(.5+wt)*z,(.5-Et+ut)*E,(.5-at+wt)*z,(.5-at+ut)*E,(.5-Et+wt)*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*E,(.5+at+wt)*z,(.5-at+ut)*E,(.5+Et+wt)*z,(.5-Et+ut)*E,(.5+at+wt)*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,.6*z,(.5+Et+ut)*E,(.5+at+wt)*z,(.5+at+ut)*E,(.5+Et+wt)*z).close()),ot.setSpots(.06,.33,.93,.68),ot}),go.Shape.defineFigureGenerator("YinYang",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E*.5,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Arc,270,180,E*.5,E*.5,E*.5,E*.5)),it.add(new go.PathSegment(go.PathSegment.Arc,90,-180,E*.5,E*.75,E*.25,E*.25)),it.add(new go.PathSegment(go.PathSegment.Arc,90,180,E*.5,E*.25,E*.25,E*.25));var at=.1,ut=.5,wt=.25;return it.add(new go.PathSegment(go.PathSegment.Move,(ut+at)*E,wt*z)),it.add(new go.PathSegment(go.PathSegment.Arc,0,-360,E*ut,z*wt,at*E,at*E).close()),it=new go.PathFigure(E*.5,0,!1),ot.add(it),it.add(new go.PathSegment(go.PathSegment.Arc,270,-180,E*.5,E*.5,E*.5,E*.5)),wt=.75,it=new go.PathFigure((ut+at)*E,wt*z,!0),ot.add(it),it.add(new go.PathSegment(go.PathSegment.Arc,0,360,E*ut,z*wt,at*E,at*E).close()),ot.defaultStretch=go.GraphObject.Uniform,ot}),go.Shape.defineFigureGenerator("Peace",function(lt,E,z){var ot=.8535533905932737,it=.5*E,at=.5*z;return new go.Geometry().add(new go.PathFigure(it,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,it,at,it,at)).add(new go.PathSegment(go.PathSegment.Line,it,z)).add(new go.PathSegment(go.PathSegment.Move,it,at)).add(new go.PathSegment(go.PathSegment.Line,(1-ot)*E,ot*z)).add(new go.PathSegment(go.PathSegment.Move,it,at)).add(new go.PathSegment(go.PathSegment.Line,ot*E,ot*z)))}),go.Shape.defineFigureGenerator("NotAllowed",function(lt,E,z){var ot=new go.Geometry,it=pt*.5,at=.5,ut=.5,wt=.5,Et=new go.PathFigure(ut*E,(wt-at)*z);ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut-at)*E,wt*z,(ut-it)*E,(wt-at)*z,(ut-at)*E,(wt-it)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+at)*z,(ut-at)*E,(wt+it)*z,(ut-it)*E,(wt+at)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut+at)*E,wt*z,(ut+it)*E,(wt+at)*z,(ut+at)*E,(wt+it)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt-at)*z,(ut+at)*E,(wt-it)*z,(ut+it)*E,(wt-at)*z)),at=.4,it=pt*.4;var At=Ft(),_t=Ft(),Mt=Ft(),jt=Ft();kt(ut,wt-at,ut+it,wt-at,ut+at,wt-it,ut+at,wt,.42,At,_t,Mt,jt,jt);var Lt=Ft(),It=Ft(),Ut=Ft();kt(ut,wt-at,ut+it,wt-at,ut+at,wt-it,ut+at,wt,.58,jt,jt,Ut,Lt,It);var Xt=Ft(),Gt=Ft(),Yt=Ft();kt(ut,wt+at,ut-it,wt+at,ut-at,wt+it,ut-at,wt,.42,Xt,Gt,Yt,jt,jt);var Ht=Ft(),ne=Ft(),ae=Ft();return kt(ut,wt+at,ut-it,wt+at,ut-at,wt+it,ut-at,wt,.58,jt,jt,ae,Ht,ne),Et.add(new go.PathSegment(go.PathSegment.Move,ae.x*E,ae.y*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut-at)*E,wt*z,Ht.x*E,Ht.y*z,ne.x*E,ne.y*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt-at)*z,(ut-at)*E,(wt-it)*z,(ut-it)*E,(wt-at)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,Mt.x*E,Mt.y*z,At.x*E,At.y*z,_t.x*E,_t.y*z)),Et.add(new go.PathSegment(go.PathSegment.Line,ae.x*E,ae.y*z).close()),Et.add(new go.PathSegment(go.PathSegment.Move,Yt.x*E,Yt.y*z)),Et.add(new go.PathSegment(go.PathSegment.Line,Ut.x*E,Ut.y*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut+at)*E,wt*z,Lt.x*E,Lt.y*z,It.x*E,It.y*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+at)*z,(ut+at)*E,(wt+it)*z,(ut+it)*E,(wt+at)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,Yt.x*E,Yt.y*z,Xt.x*E,Xt.y*z,Gt.x*E,Gt.y*z).close()),ie(At),ie(_t),ie(Mt),ie(jt),ie(Lt),ie(It),ie(Ut),ie(Xt),ie(Gt),ie(Yt),ie(Ht),ie(ne),ie(ae),ot.defaultStretch=go.GraphObject.Uniform,ot}),go.Shape.defineFigureGenerator("Fragile",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*E,0)).add(new go.PathSegment(go.PathSegment.Line,.2*E,.15*z)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.25*z)).add(new go.PathSegment(go.PathSegment.Line,.29*E,.33*z)).add(new go.PathSegment(go.PathSegment.Line,.35*E,.25*z)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.15*z)).add(new go.PathSegment(go.PathSegment.Line,.4*E,0)).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*E,.5*z,E,.25*z,.75*E,.5*z)).add(new go.PathSegment(go.PathSegment.Line,.55*E,.9*z)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.9*z)).add(new go.PathSegment(go.PathSegment.Line,.7*E,z)).add(new go.PathSegment(go.PathSegment.Line,.3*E,z)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.9*z)).add(new go.PathSegment(go.PathSegment.Line,.45*E,.9*z)).add(new go.PathSegment(go.PathSegment.Line,.45*E,.5*z)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.5*z,0,.25*z).close()))}),go.Shape.setFigureParameter("HourGlass",0,new tn("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(lt,E,z){var ot=lt?lt.parameter1:NaN;(isNaN(ot)||ot<0)&&(ot=30),ot>E&&(ot=E);var it=(E-ot)/2,at=it+ot;return new go.Geometry().add(new go.PathFigure(at,.5*z).add(new go.PathSegment(go.PathSegment.Line,E,z)).add(new go.PathSegment(go.PathSegment.Line,0,z)).add(new go.PathSegment(go.PathSegment.Line,it,.5*z)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,E,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,.55*z).add(new go.PathSegment(go.PathSegment.Line,.6*E,0)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.45*z)).add(new go.PathSegment(go.PathSegment.Line,E,.45*z)).add(new go.PathSegment(go.PathSegment.Line,.4*E,z)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.55*z).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(lt,E,z){var ot=new go.Geometry,it=pt*.4,at=.4,ut=.5,wt=.5,Et=Ft(),At=Ft(),_t=Ft(),Mt=Ft(),jt=new go.PathFigure((ut-at)*E,wt*z,!1);ot.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt-at)*z,(ut-at)*E,(wt-it)*z,(ut-it)*E,(wt-at)*z)),kt(ut,wt-at,ut+it,wt-at,ut+at,wt-it,ut+at,wt,.44,_t,Mt,At,Et,Et),jt.add(new go.PathSegment(go.PathSegment.Bezier,At.x*E,At.y*z,_t.x*E,_t.y*z,Mt.x*E,Mt.y*z));var Lt=Rt(At.x,At.y);kt(ut,wt-at,ut+it,wt-at,ut+at,wt-it,ut+at,wt,.56,Et,Et,At,_t,Mt);var It=Rt(At.x,At.y);jt.add(new go.PathSegment(go.PathSegment.Line,(Lt.x*.1+.95*.9)*E,Lt.y*.1*z)),jt.add(new go.PathSegment(go.PathSegment.Line,.85*E,Lt.y*.1*z)),jt.add(new go.PathSegment(go.PathSegment.Line,.85*E,0)),jt.add(new go.PathSegment(go.PathSegment.Line,E,0)),jt.add(new go.PathSegment(go.PathSegment.Line,E,.15*z)),jt.add(new go.PathSegment(go.PathSegment.Line,(It.x*.1+.9)*E,.15*z)),jt.add(new go.PathSegment(go.PathSegment.Line,(It.x*.1+.9)*E,(It.y*.1+.05*.9)*z)),jt.add(new go.PathSegment(go.PathSegment.Line,It.x*E,It.y*z)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+at)*E,wt*z,_t.x*E,_t.y*z,Mt.x*E,Mt.y*z)),jt.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+at)*z,(ut+at)*E,(wt+it)*z,(ut+it)*E,(wt+at)*z)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(ut-at)*E,wt*z,(ut-it)*E,(wt+at)*z,(ut-at)*E,(wt+it)*z)),at=.35,it=pt*.35;var Ut=new go.PathFigure(ut*E,(wt-at)*z,!1);ot.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(ut-at)*E,wt*z,(ut-it)*E,(wt-at)*z,(ut-at)*E,(wt-it)*z)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+at)*z,(ut-at)*E,(wt+it)*z,(ut-it)*E,(wt+at)*z)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(ut+at)*E,wt*z,(ut+it)*E,(wt+at)*z,(ut+at)*E,(wt+it)*z)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt-at)*z,(ut+at)*E,(wt-it)*z,(ut+it)*E,(wt-at)*z));var Xt=new go.PathFigure((ut-at)*E,wt*z,!1);return ot.add(Xt),ie(Et),ie(At),ie(_t),ie(Mt),ie(Lt),ie(It),ot.spot1=new go.Spot(.202,.257),ot.spot2=new go.Spot(.792,.739),ot.defaultStretch=go.GraphObject.Uniform,ot}),go.Shape.defineFigureGenerator("GenderFemale",function(lt,E,z){var ot=new go.Geometry,it=.375,at=0,ut=-.125,wt=it*pt,Et=new go.PathFigure((.525+at)*E,(.5+it+ut)*z,!1);ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+it+at)*E,(.5+ut)*z,(.5+wt+at)*E,(.5+it+ut)*z,(.5+it+at)*E,(.5+wt+ut)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(.5+at)*E,(.5-it+ut)*z,(1-.5+it+at)*E,(.5-wt+ut)*z,(.5+wt+at)*E,(.5-it+ut)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(.5-it+at)*E,(.5+ut)*z,(.5-wt+at)*E,(.5-it+ut)*z,(.5-it+at)*E,(.5-wt+ut)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(.475+at)*E,(.5+it+ut)*z,(.5-it+at)*E,(.5+wt+ut)*z,(.5-wt+at)*E,(.5+it+ut)*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.475*E,.85*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.425*E,.85*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.425*E,.9*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.475*E,.9*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.475*E,z)),Et.add(new go.PathSegment(go.PathSegment.Line,.525*E,z)),Et.add(new go.PathSegment(go.PathSegment.Line,.525*E,.9*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.575*E,.9*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.575*E,.85*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.525*E,.85*z).close()),it=.325,at=0,ut=-.125,wt=it*pt;var Et=new go.PathFigure((1-.5+it+at)*E,(.5+ut)*z,!1);ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,(.5+at)*E,(.5+it+ut)*z,(.5+it+at)*E,(.5+wt+ut)*z,(.5+wt+at)*E,(.5+it+ut)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(.5-it+at)*E,(.5+ut)*z,(.5-wt+at)*E,(.5+it+ut)*z,(.5-it+at)*E,(.5+wt+ut)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(.5+at)*E,(.5-it+ut)*z,(.5-it+at)*E,(.5-wt+ut)*z,(.5-wt+at)*E,(.5-it+ut)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+it+at)*E,(.5+ut)*z,(.5+wt+at)*E,(.5-it+ut)*z,(1-.5+it+at)*E,(.5-wt+ut)*z));var Et=new go.PathFigure((.525+at)*E,(.5+it+ut)*z,!1);return ot.add(Et),ot.spot1=new go.Spot(.232,.136),ot.spot2=new go.Spot(.682,.611),ot.defaultStretch=go.GraphObject.Uniform,ot}),go.Shape.defineFigureGenerator("LogicImplies",function(lt,E,z){var ot=lt?lt.parameter1:NaN;return isNaN(ot)&&(ot=.2),new go.Geometry().add(new go.PathFigure((1-ot)*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,.5*z)).add(new go.PathSegment(go.PathSegment.Line,(1-ot)*E,z)).add(new go.PathSegment(go.PathSegment.Move,0,.5*z)).add(new go.PathSegment(go.PathSegment.Line,E,.5*z))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(lt,E,z){var ot=lt?lt.parameter1:NaN;return isNaN(ot)&&(ot=.2),new go.Geometry().add(new go.PathFigure((1-ot)*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,.5*z)).add(new go.PathSegment(go.PathSegment.Line,(1-ot)*E,z)).add(new go.PathSegment(go.PathSegment.Move,0,.5*z)).add(new go.PathSegment(go.PathSegment.Line,E,.5*z)).add(new go.PathSegment(go.PathSegment.Move,ot*E,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*z)).add(new go.PathSegment(go.PathSegment.Line,ot*E,z))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,z)))}),go.Shape.defineFigureGenerator("LogicAnd",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,z,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,0)).add(new go.PathSegment(go.PathSegment.Line,E,z))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,z)).add(new go.PathSegment(go.PathSegment.Line,E,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(lt,E,z){var ot=new go.Geometry().add(new go.PathFigure(.5*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,z)).add(new go.PathSegment(go.PathSegment.Move,0,.5*z)).add(new go.PathSegment(go.PathSegment.Line,E,.5*z)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*E,.5*z,.5*E,.5*z)));return ot.defaultStretch=go.GraphObject.Uniform,ot}),go.Shape.defineFigureGenerator("LogicTruth",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,.5*E,0)).add(new go.PathSegment(go.PathSegment.Line,.5*E,z)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,z,!1).add(new go.PathSegment(go.PathSegment.Line,E,z)).add(new go.PathSegment(go.PathSegment.Move,.5*E,z)).add(new go.PathSegment(go.PathSegment.Line,.5*E,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,.5*z)).add(new go.PathSegment(go.PathSegment.Line,0,.5*z)).add(new go.PathSegment(go.PathSegment.Move,E,.5*z)).add(new go.PathSegment(go.PathSegment.Line,E,z)).add(new go.PathSegment(go.PathSegment.Line,0,z)))}),go.Shape.defineFigureGenerator("LogicForAll",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,z)).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,.25*E,.5*z)).add(new go.PathSegment(go.PathSegment.Line,.75*E,.5*z))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*z)).add(new go.PathSegment(go.PathSegment.Line,E,.5*z)).add(new go.PathSegment(go.PathSegment.Move,0,z)).add(new go.PathSegment(go.PathSegment.Line,E,z))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(lt,E,z){var ot=.5;return new go.Geometry().add(new go.PathFigure(0,z,!1).add(new go.PathSegment(go.PathSegment.Line,0,ot*z)).add(new go.PathSegment(go.PathSegment.Arc,180,180,ot*E,ot*z,ot*E,ot*z)).add(new go.PathSegment(go.PathSegment.Line,E,z))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(lt,E,z){var ot=.5;return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,ot*z)).add(new go.PathSegment(go.PathSegment.Arc,0,180,ot*E,ot*z,ot*E,ot*z)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new tn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new tn("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=.3);var it=lt?lt.parameter2:NaN;isNaN(it)&&(it=.3);var at=(1-ot)*E,ut=(.5-it/2)*z,wt=(.5+it/2)*z,Et=new go.Geometry,At=new go.PathFigure(0,ut,!0);Et.add(At),At.add(new go.PathSegment(go.PathSegment.Line,at,ut)),At.add(new go.PathSegment(go.PathSegment.Line,at,0)),At.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),At.add(new go.PathSegment(go.PathSegment.Line,at,z)),At.add(new go.PathSegment(go.PathSegment.Line,at,wt)),At.add(new go.PathSegment(go.PathSegment.Line,0,wt).close()),Et.spot1=new go.Spot(0,ut/z);var _t=rt(0,wt/z,1,wt/z,at/E,1,1,.5,Ft());return Et.spot2=new go.Spot(_t.x,_t.y),ie(_t),Et}),go.Shape.setFigureParameter("Arrow2",0,new tn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new tn("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=30),ot>E&&(ot=E);var it=lt?lt.parameter2:NaN;isNaN(it)&&(it=30),it=Math.min(it,z/2);var at=E-ot,ut=(z-it)/2,wt=ut+it,Et=new go.Geometry,At=new go.PathFigure(0,ut,!0);Et.add(At),At.add(new go.PathSegment(go.PathSegment.Line,at,ut)),At.add(new go.PathSegment(go.PathSegment.Line,at,0)),At.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),At.add(new go.PathSegment(go.PathSegment.Line,at,z)),At.add(new go.PathSegment(go.PathSegment.Line,at,wt)),At.add(new go.PathSegment(go.PathSegment.Line,0,wt).close()),Et.spot1=new go.Spot(0,ut/z);var _t=rt(0,wt/z,1,wt/z,at/E,1,1,.5,Ft());return Et.spot2=new go.Spot(_t.x,_t.y),ie(_t),Et}),go.Shape.defineFigureGenerator("Chevron",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*z).close()),ot}),go.Shape.defineFigureGenerator("DoubleArrow",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.3*E,.214*z)),it.add(new go.PathSegment(go.PathSegment.Line,.3*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,1*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.3*E,1*z)),it.add(new go.PathSegment(go.PathSegment.Line,.3*E,.786*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,1*z).close()),ot}),go.Shape.setFigureParameter("DoubleEndArrow",0,new tn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=.3);var it=(.5-ot/2)*z,at=(.5+ot/2)*z,ut=new go.Geometry,wt=new go.PathFigure(E,.5*z,!0);ut.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,at)),wt.add(new go.PathSegment(go.PathSegment.Line,.3*E,at)),wt.add(new go.PathSegment(go.PathSegment.Line,.3*E,z)),wt.add(new go.PathSegment(go.PathSegment.Line,0,.5*z)),wt.add(new go.PathSegment(go.PathSegment.Line,.3*E,0)),wt.add(new go.PathSegment(go.PathSegment.Line,.3*E,it)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,it)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close());var Et=rt(0,.5,.3,0,0,it/z,.1,it/z,Ft());return ut.spot1=new go.Spot(Et.x,Et.y),Et=rt(.7,1,1,.5,0,at/z,1,at/z,Et),ut.spot2=new go.Spot(Et.x,Et.y),ie(Et),ut}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new tn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new tn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=40);var it=lt?lt.parameter2:NaN;isNaN(it)&&(it=100);var at=(z-ot)/2,ut=at+ot,wt=(z-it)/2,Et=wt+it;(ot>z||it>z)&&(it>ot?(ot=ot*z/it,at=(z-ot)/2,ut=at+ot,wt=0,Et=z):(at=0,ut=z,wt=0,Et=z));var At=new go.Geometry,_t=new go.PathFigure(E,.5*z,!0);At.add(_t),_t.add(new go.PathSegment(go.PathSegment.Line,.7*E,Et)),_t.add(new go.PathSegment(go.PathSegment.Line,.7*E,ut)),_t.add(new go.PathSegment(go.PathSegment.Line,.3*E,ut)),_t.add(new go.PathSegment(go.PathSegment.Line,.3*E,Et)),_t.add(new go.PathSegment(go.PathSegment.Line,0,.5*z)),_t.add(new go.PathSegment(go.PathSegment.Line,.3*E,wt)),_t.add(new go.PathSegment(go.PathSegment.Line,.3*E,at)),_t.add(new go.PathSegment(go.PathSegment.Line,.7*E,at)),_t.add(new go.PathSegment(go.PathSegment.Line,.7*E,wt).close());var Mt=rt(0,.5,.3,wt/z,0,at/z,1,at/z,Ft());return At.spot1=new go.Spot(Mt.x,Mt.y),Mt=rt(.7,Et/z,1,.5,0,ut/z,1,ut/z,Mt),At.spot2=new go.Spot(Mt.x,Mt.y),ie(Mt),At}),go.Shape.setFigureParameter("IBeamArrow",0,new tn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=.3);var it=(.5-ot/2)*z,at=(.5+ot/2)*z,ut=new go.Geometry,wt=new go.PathFigure(E,.5*z,!0);ut.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,at)),wt.add(new go.PathSegment(go.PathSegment.Line,.2*E,at)),wt.add(new go.PathSegment(go.PathSegment.Line,.2*E,z)),wt.add(new go.PathSegment(go.PathSegment.Line,0,z)),wt.add(new go.PathSegment(go.PathSegment.Line,0,0)),wt.add(new go.PathSegment(go.PathSegment.Line,.2*E,0)),wt.add(new go.PathSegment(go.PathSegment.Line,.2*E,it)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,it)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close()),ut.spot1=new go.Spot(0,it/z);var Et=rt(.7,1,1,.5,0,at/z,1,at/z,Ft());return ut.spot2=new go.Spot(Et.x,Et.y),ie(Et),ut}),go.Shape.setFigureParameter("IBeamArrow2",0,new tn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new tn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=40);var it=lt?lt.parameter2:NaN;isNaN(it)&&(it=100);var at=(z-ot)/2,ut=at+ot,wt=(z-it)/2,Et=wt+it;(ot>z||it>z)&&(it>ot?(ot=ot*z/it,at=(z-ot)/2,ut=at+ot,wt=0,Et=z):(at=0,ut=z,wt=0,Et=z));var At=new go.Geometry,_t=new go.PathFigure(E,.5*z,!0);At.add(_t),_t.add(new go.PathSegment(go.PathSegment.Line,.7*E,Et)),_t.add(new go.PathSegment(go.PathSegment.Line,.7*E,ut)),_t.add(new go.PathSegment(go.PathSegment.Line,.2*E,ut)),_t.add(new go.PathSegment(go.PathSegment.Line,.2*E,Et)),_t.add(new go.PathSegment(go.PathSegment.Line,0,Et)),_t.add(new go.PathSegment(go.PathSegment.Line,0,wt)),_t.add(new go.PathSegment(go.PathSegment.Line,.2*E,wt)),_t.add(new go.PathSegment(go.PathSegment.Line,.2*E,at)),_t.add(new go.PathSegment(go.PathSegment.Line,.7*E,at)),_t.add(new go.PathSegment(go.PathSegment.Line,.7*E,wt).close()),At.spot1=new go.Spot(0,at/z);var Mt=rt(.7,Et/z,1,.5,0,ut/z,1,ut/z,Ft());return At.spot2=new go.Spot(Mt.x,Mt.y),ie(Mt),At}),go.Shape.setFigureParameter("Pointer",0,new tn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=.1);var it=new go.Geometry,at=new go.PathFigure(E,.5*z,!0);it.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,z)),at.add(new go.PathSegment(go.PathSegment.Line,ot*E,.5*z)),at.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),it.spot1=new go.Spot(ot,.35);var ut=rt(.2,.65,1,.65,0,1,1,.5,Ft());return it.spot2=new go.Spot(ut.x,ut.y),ie(ut),it}),go.Shape.setFigureParameter("RoundedPointer",0,new tn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=.3);var it=new go.Geometry,at=new go.PathFigure(E,.5*z,!0);it.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,z)),at.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ot*E,.75*z,ot*E,.25*z).close()),it.spot1=new go.Spot(ot,.35);var ut=rt(0,.65,1,.65,0,1,1,.5,Ft());return it.spot2=new go.Spot(ut.x,ut.y),ie(ut),it}),go.Shape.setFigureParameter("SplitEndArrow",0,new tn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=.4);var it=(.5-ot/2)*z,at=(.5+ot/2)*z,ut=new go.Geometry,wt=new go.PathFigure(E,.5*z,!0);ut.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,at)),wt.add(new go.PathSegment(go.PathSegment.Line,0,at)),wt.add(new go.PathSegment(go.PathSegment.Line,.2*E,.5*z)),wt.add(new go.PathSegment(go.PathSegment.Line,0,it)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,it)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close()),ut.spot1=new go.Spot(.2,.3);var Et=rt(.7,1,1,.5,0,at/z,1,at/z,Ft());return ut.spot2=new go.Spot(Et.x,Et.y),ie(Et),ut}),go.Shape.setFigureParameter("SplitEndArrow2",0,new tn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=50);var it=(z-ot)/2,at=it+ot;ot>z&&(it=0,at=z);var ut=new go.Geometry,wt=new go.PathFigure(E,.5*z,!0);ut.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,at)),wt.add(new go.PathSegment(go.PathSegment.Line,0,at)),wt.add(new go.PathSegment(go.PathSegment.Line,.2*E,.5*z)),wt.add(new go.PathSegment(go.PathSegment.Line,0,it)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,it)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close()),ut.spot1=new go.Spot(.2,it/z);var Et=rt(.7,1,1,.5,0,at/z,1,at/z,Ft());return ut.spot2=new go.Spot(Et.x,Et.y),ie(Et),ut}),go.Shape.setFigureParameter("SquareArrow",0,new tn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=.7);var it=new go.Geometry,at=new go.PathFigure(E,.5*z,!0);return it.add(at),at.add(new go.PathSegment(go.PathSegment.Line,ot*E,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,0)),at.add(new go.PathSegment(go.PathSegment.Line,ot*E,0).close()),it.spot1=go.Spot.TopLeft,it.spot2=new go.Spot(ot,1),it}),go.Shape.defineFigureGenerator("Cone1",function(lt,E,z){var ot=new go.Geometry,it=pt*.5,at=pt*.1,ut=new go.PathFigure(0,.9*z,!0);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),ut.add(new go.PathSegment(go.PathSegment.Line,E,.9*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,z,E,(.9+at)*z,(.5+it)*E,z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*z,(.5-it)*E,z,0,(.9+at)*z).close()),ot.spot1=new go.Spot(.25,.5),ot.spot2=new go.Spot(.75,.97),ot}),go.Shape.defineFigureGenerator("Cone2",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.9*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,E,.9*z,(1-.85/.9)*E,z,.85/.9*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,0,.9*z).close());var at=new go.PathFigure(0,.9*z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Bezier,E,.9*z,(1-.85/.9)*E,.8*z,.85/.9*E,.8*z)),ot.spot1=new go.Spot(.25,.5),ot.spot2=new go.Spot(.75,.82),ot}),go.Shape.defineFigureGenerator("Cube1",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.5*E,z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,.85*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.15*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,0,.15*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.85*z).close());var at=new go.PathFigure(.5*E,z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,.3*z)),at.add(new go.PathSegment(go.PathSegment.Line,0,.15*z)),at.add(new go.PathSegment(go.PathSegment.Move,.5*E,.3*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,.15*z)),ot.spot1=new go.Spot(0,.3),ot.spot2=new go.Spot(.5,.85),ot}),go.Shape.defineFigureGenerator("Cube2",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.3*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.7*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.3*E,0).close());var at=new go.PathFigure(0,.3*z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.7*E,.3*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,0)),at.add(new go.PathSegment(go.PathSegment.Move,.7*E,.3*z)),at.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),ot.spot1=new go.Spot(0,.3),ot.spot2=new go.Spot(.7,1),ot}),go.Shape.defineFigureGenerator("Cylinder1",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=5),ot=Math.min(ot,z/3);var it=new go.Geometry,at=pt*.5,ut=new go.PathFigure(0,ot,!0);it.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,pt*ot,(.5-at)*E,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,1*E,ot,(.5+at)*E,0,1*E,pt*ot)),ut.add(new go.PathSegment(go.PathSegment.Line,E,z-ot)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,1*z,1*E,z-pt*ot,(.5+at)*E,1*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,z-ot,(.5-at)*E,1*z,0,z-pt*ot)),ut.add(new go.PathSegment(go.PathSegment.Line,0,ot));var wt=new go.PathFigure(E,ot,!1);return it.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,2*ot,1*E,2*ot-pt*ot,(.5+at)*E,2*ot)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,ot,(.5-at)*E,2*ot,0,2*ot-pt*ot)),it.spot1=new go.Spot(0,0,0,2*ot),it.spot2=new go.Spot(1,1),it}),go.Shape.defineFigureGenerator("Cylinder2",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=5),ot=Math.min(ot,z/3);var it=new go.Geometry,at=pt*.5,ut=new go.PathFigure(0,z-ot,!0);it.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,ot)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,pt*ot,(.5-at)*E,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E,ot,(.5+at)*E,0,E,pt*ot)),ut.add(new go.PathSegment(go.PathSegment.Line,E,z-ot)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,z,E,z-pt*ot,(.5+at)*E,z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,z-ot,(.5-at)*E,z,0,z-pt*ot));var wt=new go.PathFigure(0,z-ot,!1);return it.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,z-2*ot,0,z-ot-pt*ot,(.5-at)*E,z-2*ot)),wt.add(new go.PathSegment(go.PathSegment.Bezier,E,z-ot,(.5+at)*E,z-2*ot,E,z-ot-pt*ot)),it.spot1=new go.Spot(0,0),it.spot2=new go.Spot(1,1,0,-2*ot),it}),go.Shape.defineFigureGenerator("Cylinder3",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=5),ot=Math.min(ot,E/3);var it=new go.Geometry,at=pt*.5,ut=new go.PathFigure(ot,0,!0);it.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E-ot,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*z,E-pt*ot,0,E,(.5-at)*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E-ot,z,E,(.5+at)*z,E-pt*ot,z)),ut.add(new go.PathSegment(go.PathSegment.Line,ot,z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*z,pt*ot,z,0,(.5+at)*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,ot,0,0,(.5-at)*z,pt*ot,0));var wt=new go.PathFigure(ot,0,!1);return it.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,2*ot,.5*z,ot+pt*ot,0,2*ot,(.5-at)*z)),wt.add(new go.PathSegment(go.PathSegment.Bezier,ot,z,2*ot,(.5+at)*z,ot+pt*ot,z)),it.spot1=new go.Spot(0,0,2*ot,0),it.spot2=new go.Spot(1,1),it}),go.Shape.defineFigureGenerator("Cylinder4",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=5),ot=Math.min(ot,E/3);var it=new go.Geometry,at=pt*.5,ut=new go.PathFigure(E-ot,0,!0);it.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*z,E-pt*ot,0,E,(.5-at)*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E-ot,z,E,(.5+at)*z,E-pt*ot,z)),ut.add(new go.PathSegment(go.PathSegment.Line,ot,z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*z,pt*ot,z,0,(.5+at)*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,ot,0,0,(.5-at)*z,pt*ot,0)),ut.add(new go.PathSegment(go.PathSegment.Line,E-ot,0));var wt=new go.PathFigure(E-ot,0,!1);return it.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,E-2*ot,.5*z,E-ot-pt*ot,0,E-2*ot,(.5-at)*z)),wt.add(new go.PathSegment(go.PathSegment.Bezier,E-ot,z,E-2*ot,(.5+at)*z,E-ot-pt*ot,z)),it.spot1=new go.Spot(0,0),it.spot2=new go.Spot(1,1,-2*ot,0),it}),go.Shape.defineFigureGenerator("Prism1",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.25*E,.25*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z).close());var at=new go.PathFigure(.25*E,.25*z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),ot.spot1=new go.Spot(.408,.172),ot.spot2=new go.Spot(.833,.662),ot}),go.Shape.defineFigureGenerator("Prism2",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.25*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.25*z)),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,.75*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z).close());var at=new go.PathFigure(0,z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.25*E,.5*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,.25*z)),at.add(new go.PathSegment(go.PathSegment.Move,0,.25*z)),at.add(new go.PathSegment(go.PathSegment.Line,.25*E,.5*z)),ot.spot1=new go.Spot(.25,.5),ot.spot2=new go.Spot(.75,.75),ot}),go.Shape.defineFigureGenerator("Pyramid1",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.5*E,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,.75*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.75*z).close());var at=new go.PathFigure(.5*E,0,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),ot.spot1=new go.Spot(.25,.367),ot.spot2=new go.Spot(.75,.875),ot}),go.Shape.defineFigureGenerator("Pyramid2",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.5*E,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,.85*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.85*z).close());var at=new go.PathFigure(.5*E,0,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,.7*z)),at.add(new go.PathSegment(go.PathSegment.Line,0,.85*z)),at.add(new go.PathSegment(go.PathSegment.Move,.5*E,.7*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,.85*z)),ot.spot1=new go.Spot(.25,.367),ot.spot2=new go.Spot(.75,.875),ot}),go.Shape.defineFigureGenerator("Actor",function(lt,E,z){var ot=new go.Geometry,it=.2,at=.1,ut=pt*it,wt=pt*at,Et=.5,At=.1,_t=new go.PathFigure(Et*E,(At+at)*z,!0);ot.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Et-it)*E,At*z,(Et-ut)*E,(At+at)*z,(Et-it)*E,(At+wt)*z)),_t.add(new go.PathSegment(go.PathSegment.Bezier,Et*E,(At-at)*z,(Et-it)*E,(At-wt)*z,(Et-ut)*E,(At-at)*z)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Et+it)*E,At*z,(Et+ut)*E,(At-at)*z,(Et+it)*E,(At-wt)*z)),_t.add(new go.PathSegment(go.PathSegment.Bezier,Et*E,(At+at)*z,(Et+it)*E,(At+wt)*z,(Et+ut)*E,(At+at)*z));var Mt=.05,jt=pt*Mt;Et=.05,At=.25;var Lt=new go.PathFigure(.5*E,.2*z,!0);return ot.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,.95*E,.2*z)),Et=.95,At=.25,Lt.add(new go.PathSegment(go.PathSegment.Bezier,(Et+Mt)*E,At*z,(Et+jt)*E,(At-Mt)*z,(Et+Mt)*E,(At-jt)*z)),Lt.add(new go.PathSegment(go.PathSegment.Line,E,.6*z)),Lt.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*z)),Lt.add(new go.PathSegment(go.PathSegment.Line,.85*E,.35*z)),Mt=.025,jt=pt*Mt,Et=.825,At=.35,Lt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E,(At-Mt)*z,(Et+Mt)*E,(At-jt)*z,(Et+jt)*E,(At-Mt)*z)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-Mt)*E,At*z,(Et-jt)*E,(At-Mt)*z,(Et-Mt)*E,(At-jt)*z)),Lt.add(new go.PathSegment(go.PathSegment.Line,.8*E,z)),Lt.add(new go.PathSegment(go.PathSegment.Line,.55*E,z)),Lt.add(new go.PathSegment(go.PathSegment.Line,.55*E,.7*z)),Mt=.05,jt=pt*Mt,Et=.5,At=.7,Lt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E,(At-Mt)*z,(Et+Mt)*E,(At-jt)*z,(Et+jt)*E,(At-Mt)*z)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-Mt)*E,At*z,(Et-jt)*E,(At-Mt)*z,(Et-Mt)*E,(At-jt)*z)),Lt.add(new go.PathSegment(go.PathSegment.Line,.45*E,z)),Lt.add(new go.PathSegment(go.PathSegment.Line,.2*E,z)),Lt.add(new go.PathSegment(go.PathSegment.Line,.2*E,.35*z)),Mt=.025,jt=pt*Mt,Et=.175,At=.35,Lt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E,(At-Mt)*z,(Et+Mt)*E,(At-jt)*z,(Et+jt)*E,(At-Mt)*z)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-Mt)*E,At*z,(Et-jt)*E,(At-Mt)*z,(Et-Mt)*E,(At-jt)*z)),Lt.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*z)),Lt.add(new go.PathSegment(go.PathSegment.Line,0,.6*z)),Lt.add(new go.PathSegment(go.PathSegment.Line,0,.25*z)),Mt=.05,jt=pt*Mt,Et=.05,At=.25,Lt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E,(At-Mt)*z,(Et-Mt)*E,(At-jt)*z,(Et-jt)*E,(At-Mt)*z)),Lt.add(new go.PathSegment(go.PathSegment.Line,.5*E,.2*z)),ot.spot1=new go.Spot(.2,.2),ot.spot2=new go.Spot(.8,.65),ot}),go.Shape.setFigureParameter("Card",0,new tn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=.2);var it=new go.Geometry,at=new go.PathFigure(E,0,!0);return it.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,ot*z)),at.add(new go.PathSegment(go.PathSegment.Line,ot*E,0).close()),it.spot1=new go.Spot(0,ot),it.spot2=go.Spot.BottomRight,it}),go.Shape.defineFigureGenerator("Collate",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.5*E,.5*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*z));var at=new go.PathFigure(.5*E,.5*z,!0);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z)),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*z)),ot.spot1=new go.Spot(.25,0),ot.spot2=new go.Spot(.75,.25),ot}),go.Shape.defineFigureGenerator("CreateRequest",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN;isNaN(it)&&(it=.1);var at=new go.PathFigure(0,0,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,0)),at.add(new go.PathSegment(go.PathSegment.Line,E,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z).close());var ut=new go.PathFigure(0,it*z,!1);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E,it*z)),ut.add(new go.PathSegment(go.PathSegment.Move,0,(1-it)*z)),ut.add(new go.PathSegment(go.PathSegment.Line,E,(1-it)*z)),ot}),go.Shape.defineFigureGenerator("Database",function(lt,E,z){var ot=new go.Geometry,it=pt*.5,at=pt*.1,ut=new go.PathFigure(E,.1*z,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E,.9*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,z,E,(.9+at)*z,(.5+it)*E,z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*z,(.5-it)*E,z,0,(.9+at)*z)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.1*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,(.1-at)*z,(.5-it)*E,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E,.1*z,(.5+it)*E,0,E,(.1-at)*z));var wt=new go.PathFigure(E,.1*z,!1);return ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*z,E,(.1+at)*z,(.5+it)*E,.2*z)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*z,(.5-it)*E,.2*z,0,(.1+at)*z)),wt.add(new go.PathSegment(go.PathSegment.Move,E,.2*z)),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.3*z,E,(.2+at)*z,(.5+it)*E,.3*z)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*z,(.5-it)*E,.3*z,0,(.2+at)*z)),wt.add(new go.PathSegment(go.PathSegment.Move,E,.3*z)),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.4*z,E,(.3+at)*z,(.5+it)*E,.4*z)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*z,(.5-it)*E,.4*z,0,(.3+at)*z)),ot.spot1=new go.Spot(0,.4),ot.spot2=new go.Spot(1,.9),ot}),go.Shape.defineFigureGenerator("DataStorage",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),it.add(new go.PathSegment(go.PathSegment.Bezier,.75*E,z,E,0,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.9*z,.25*E,.1*z).close()),ot.spot1=new go.Spot(.226,0),ot.spot2=new go.Spot(.81,1),ot}),go.Shape.defineFigureGenerator("DiskStorage",function(lt,E,z){var ot=new go.Geometry,it=pt*.5,at=pt*.1,ut=new go.PathFigure(E,.1*z,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E,.9*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,z,E,(.9+at)*z,(.5+it)*E,z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*z,(.5-it)*E,z,0,(.9+at)*z)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.1*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,(.1-at)*z,(.5-it)*E,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E,.1*z,(.5+it)*E,0,E,(.1-at)*z));var wt=new go.PathFigure(E,.1*z,!1);return ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*z,E,(.1+at)*z,(.5+it)*E,.2*z)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*z,(.5-it)*E,.2*z,0,(.1+at)*z)),wt.add(new go.PathSegment(go.PathSegment.Move,E,.2*z)),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.3*z,E,(.2+at)*z,(.5+it)*E,.3*z)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*z,(.5-it)*E,.3*z,0,(.2+at)*z)),ot.spot1=new go.Spot(0,.3),ot.spot2=new go.Spot(1,.9),ot}),go.Shape.defineFigureGenerator("Display",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.25*E,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),it.add(new go.PathSegment(go.PathSegment.Bezier,.75*E,z,E,0,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.25*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.5*z).close()),ot.spot1=new go.Spot(.25,0),ot.spot2=new go.Spot(.75,1),ot}),go.Shape.defineFigureGenerator("DividedEvent",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN;isNaN(it)?it=.2:it<.15&&(it=.15);var at=pt*.2,ut=new go.PathFigure(0,.2*z,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,0,(.2-at)*z,(.2-at)*E,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*E,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E,.2*z,(.8+at)*E,0,E,(.2-at)*z)),ut.add(new go.PathSegment(go.PathSegment.Line,E,.8*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,z,E,(.8+at)*z,(.8+at)*E,z)),ut.add(new go.PathSegment(go.PathSegment.Line,.2*E,z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*z,(.2-at)*E,z,0,(.8+at)*z)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.2*z));var wt=new go.PathFigure(0,it*z,!1);return ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,E,it*z)),ot}),go.Shape.defineFigureGenerator("DividedProcess",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN;(isNaN(it)||it<.1)&&(it=.1);var at=new go.PathFigure(0,0,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,0)),at.add(new go.PathSegment(go.PathSegment.Line,E,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z).close());var ut=new go.PathFigure(0,it*z,!1);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E,it*z)),ot}),go.Shape.defineFigureGenerator("Document",function(lt,E,z){var ot=new go.Geometry;z=z/.8;var it=new go.PathFigure(0,.7*z,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.7*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*z,.5*E,.4*z,.5*E,z).close()),ot.spot1=go.Spot.TopLeft,ot.spot2=new go.Spot(1,.6),ot}),go.Shape.defineFigureGenerator("ExternalOrganization",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN;(isNaN(it)||it<.2)&&(it=.2);var at=new go.PathFigure(0,0,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,0)),at.add(new go.PathSegment(go.PathSegment.Line,E,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z).close());var ut=new go.PathFigure(it*E,0,!1);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,it*z)),ut.add(new go.PathSegment(go.PathSegment.Move,E,it*z)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-it)*E,0)),ut.add(new go.PathSegment(go.PathSegment.Move,0,(1-it)*z)),ut.add(new go.PathSegment(go.PathSegment.Line,it*E,z)),ut.add(new go.PathSegment(go.PathSegment.Move,(1-it)*E,z)),ut.add(new go.PathSegment(go.PathSegment.Line,E,(1-it)*z)),ot}),go.Shape.defineFigureGenerator("ExternalProcess",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.5*E,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.5*z).close());var at=new go.PathFigure(.1*E,.4*z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.1*E,.6*z)),at.add(new go.PathSegment(go.PathSegment.Move,.9*E,.6*z)),at.add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*z)),at.add(new go.PathSegment(go.PathSegment.Move,.6*E,.1*z)),at.add(new go.PathSegment(go.PathSegment.Line,.4*E,.1*z)),at.add(new go.PathSegment(go.PathSegment.Move,.4*E,.9*z)),at.add(new go.PathSegment(go.PathSegment.Line,.6*E,.9*z)),ot.spot1=new go.Spot(.25,.25),ot.spot2=new go.Spot(.75,.75),ot}),go.Shape.defineFigureGenerator("File",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.25*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z).close());var at=new go.PathFigure(.75*E,0,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.75*E,.25*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,.25*z)),ot.spot1=new go.Spot(0,.25),ot.spot2=go.Spot.BottomRight,ot}),go.Shape.defineFigureGenerator("Interrupt",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E,.5*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z));var at=new go.PathFigure(E,.5*z,!1);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,z));var ut=new go.PathFigure(E,.5*z,!1);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E,0)),ot.spot1=new go.Spot(0,.25),ot.spot2=new go.Spot(.5,.75),ot}),go.Shape.defineFigureGenerator("InternalStorage",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN,at=lt?lt.parameter2:NaN;isNaN(it)&&(it=.1),isNaN(at)&&(at=.1);var ut=new go.PathFigure(0,0,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E,0)),ut.add(new go.PathSegment(go.PathSegment.Line,E,z)),ut.add(new go.PathSegment(go.PathSegment.Line,0,z).close());var wt=new go.PathFigure(it*E,0,!1);return ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,it*E,z)),wt.add(new go.PathSegment(go.PathSegment.Move,0,at*z)),wt.add(new go.PathSegment(go.PathSegment.Line,E,at*z)),ot}),go.Shape.defineFigureGenerator("Junction",function(lt,E,z){var ot=new go.Geometry,it=1/Math.SQRT2,at=(1-1/Math.SQRT2)/2,ut=pt*.5,wt=.5,Et=new go.PathFigure(E,wt*z,!0);ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,wt*E,z,E,(wt+ut)*z,(wt+ut)*E,z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,0,wt*z,(wt-ut)*E,z,0,(wt+ut)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,wt*E,0,0,(wt-ut)*z,(wt-ut)*E,0)),Et.add(new go.PathSegment(go.PathSegment.Bezier,E,wt*z,(wt+ut)*E,0,E,(wt-ut)*z));var At=new go.PathFigure((at+it)*E,(at+it)*z,!1);return ot.add(At),At.add(new go.PathSegment(go.PathSegment.Line,at*E,at*z)),At.add(new go.PathSegment(go.PathSegment.Move,at*E,(at+it)*z)),At.add(new go.PathSegment(go.PathSegment.Line,(at+it)*E,at*z)),ot}),go.Shape.defineFigureGenerator("LinedDocument",function(lt,E,z){var ot=new go.Geometry;z=z/.8;var it=new go.PathFigure(0,.7*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.7*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*z,.5*E,.4*z,.5*E,z).close());var at=new go.PathFigure(.1*E,0,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.1*E,.75*z)),ot.spot1=new go.Spot(.1,0),ot.spot2=new go.Spot(1,.6),ot}),go.Shape.defineFigureGenerator("LoopLimit",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,z,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,.25*z)),it.add(new go.PathSegment(go.PathSegment.Line,.25*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.25*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z).close()),ot.spot1=new go.Spot(0,.25),ot.spot2=go.Spot.BottomRight,ot}),go.Shape.defineFigureGenerator("MagneticTape",function(lt,E,z){var ot=new go.Geometry,it=pt*.5,at=.5,ut=new go.PathFigure(.5*E,z,!0);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,at*z,(at-it)*E,z,0,(at+it)*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,at*E,0,0,(at-it)*z,(at-it)*E,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E,at*z,(at+it)*E,0,E,(at-it)*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(at+.1)*E,.9*z,E,(at+it)*z,(at+it)*E,.9*z)),ut.add(new go.PathSegment(go.PathSegment.Line,E,.9*z)),ut.add(new go.PathSegment(go.PathSegment.Line,E,z)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),ot.spot1=new go.Spot(.15,.15),ot.spot2=new go.Spot(.85,.8),ot}),go.Shape.defineFigureGenerator("ManualInput",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.25*z).close()),ot.spot1=new go.Spot(0,.25),ot.spot2=go.Spot.BottomRight,ot}),go.Shape.defineFigureGenerator("MessageFromUser",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN;isNaN(it)&&(it=.7);var at=new go.PathFigure(0,0,!0);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,0)),at.add(new go.PathSegment(go.PathSegment.Line,it*E,.5*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z).close()),ot.spot1=go.Spot.TopLeft,ot}),go.Shape.defineFigureGenerator("MicroformProcessing",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN;isNaN(it)&&(it=.25);var at=new go.PathFigure(0,0,!0);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,it*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,0)),at.add(new go.PathSegment(go.PathSegment.Line,E,z)),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,(1-it)*z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z).close()),ot}),go.Shape.defineFigureGenerator("MicroformRecording",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,.25*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.15*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.85*z)),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,.75*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z).close()),ot.spot1=new go.Spot(0,.25),ot.spot2=new go.Spot(1,.75),ot}),go.Shape.defineFigureGenerator("MultiDocument",function(lt,E,z){var ot=new go.Geometry;z=z/.8;var it=new go.PathFigure(E,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,.44*z,.96*E,.47*z,.93*E,.45*z)),it.add(new go.PathSegment(go.PathSegment.Line,.9*E,.6*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.54*z,.86*E,.57*z,.83*E,.55*z)),it.add(new go.PathSegment(go.PathSegment.Line,.8*E,.7*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*z,.4*E,.4*z,.4*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.2*z)),it.add(new go.PathSegment(go.PathSegment.Line,.1*E,.2*z)),it.add(new go.PathSegment(go.PathSegment.Line,.1*E,.1*z)),it.add(new go.PathSegment(go.PathSegment.Line,.2*E,.1*z)),it.add(new go.PathSegment(go.PathSegment.Line,.2*E,0).close());var at=new go.PathFigure(.1*E,.2*z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*z)),at.add(new go.PathSegment(go.PathSegment.Line,.8*E,.54*z)),at.add(new go.PathSegment(go.PathSegment.Move,.2*E,.1*z)),at.add(new go.PathSegment(go.PathSegment.Line,.9*E,.1*z)),at.add(new go.PathSegment(go.PathSegment.Line,.9*E,.44*z)),ot.spot1=new go.Spot(0,.25),ot.spot2=new go.Spot(.8,.77),ot}),go.Shape.defineFigureGenerator("MultiProcess",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.1*E,.1*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.2*E,.1*z)),it.add(new go.PathSegment(go.PathSegment.Line,.2*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,.9*E,.9*z)),it.add(new go.PathSegment(go.PathSegment.Line,.8*E,.9*z)),it.add(new go.PathSegment(go.PathSegment.Line,.8*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.2*z)),it.add(new go.PathSegment(go.PathSegment.Line,.1*E,.2*z).close());var at=new go.PathFigure(.2*E,.1*z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.9*E,.1*z)),at.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*z)),at.add(new go.PathSegment(go.PathSegment.Move,.1*E,.2*z)),at.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*z)),at.add(new go.PathSegment(go.PathSegment.Line,.8*E,.9*z)),ot.spot1=new go.Spot(0,.2),ot.spot2=new go.Spot(.8,1),ot}),go.Shape.defineFigureGenerator("OfflineStorage",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN;isNaN(it)&&(it=.1);var at=1-it,ut=new go.PathFigure(0,0,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*E,z).close());var wt=new go.PathFigure(.5*it*E,it*z,!1);return ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,(1-.5*it)*E,it*z)),ot}),go.Shape.defineFigureGenerator("OffPageConnector",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z).close()),ot.spot1=go.Spot.TopLeft,ot.spot2=new go.Spot(.75,1),ot}),go.Shape.defineFigureGenerator("Or",function(lt,E,z){var ot=new go.Geometry,it=pt*.5,at=.5,ut=new go.PathFigure(E,at*z,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,at*E,z,E,(at+it)*z,(at+it)*E,z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,at*z,(at-it)*E,z,0,(at+it)*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,at*E,0,0,(at-it)*z,(at-it)*E,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E,at*z,(at+it)*E,0,E,(at-it)*z));var wt=new go.PathFigure(E,.5*z,!1);return ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,0,.5*z)),wt.add(new go.PathSegment(go.PathSegment.Move,.5*E,z)),wt.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),ot}),go.Shape.defineFigureGenerator("PaperTape",function(lt,E,z){var ot=new go.Geometry;z=z/.8;var it=new go.PathFigure(0,.7*z,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,.3*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,E,.3*z,.5*E,.6*z,.5*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.7*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*z,.5*E,.4*z,.5*E,z).close()),ot.spot1=new go.Spot(0,.49),ot.spot2=new go.Spot(1,.75),ot}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN,at=lt?lt.parameter2:NaN;isNaN(it)&&(it=.1),isNaN(at)&&(at=.3);var ut=new go.PathFigure(0,0,!0);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E,0)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-at)*E,.5*z)),ut.add(new go.PathSegment(go.PathSegment.Line,E,z)),ut.add(new go.PathSegment(go.PathSegment.Line,0,z).close()),ot}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN,at=lt?lt.parameter2:NaN;isNaN(it)&&(it=.1),isNaN(at)&&(at=.3);var ut=new go.PathFigure(0,0,!0);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,(1-at)*E,0)),ut.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-at)*E,z)),ut.add(new go.PathSegment(go.PathSegment.Line,0,z).close()),ot}),go.Shape.defineFigureGenerator("Procedure",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN;isNaN(it)&&(it=.1);var at=new go.PathFigure(0,0,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,0)),at.add(new go.PathSegment(go.PathSegment.Line,E,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z).close());var ut=new go.PathFigure((1-it)*E,0,!1);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,(1-it)*E,z)),ut.add(new go.PathSegment(go.PathSegment.Move,it*E,0)),ut.add(new go.PathSegment(go.PathSegment.Line,it*E,z)),ot}),go.Shape.defineFigureGenerator("Process",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN;isNaN(it)&&(it=.1);var at=new go.PathFigure(0,0,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,0)),at.add(new go.PathSegment(go.PathSegment.Line,E,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z).close());var ut=new go.PathFigure(it*E,0,!1);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,it*E,z)),ot.spot2=go.Spot.BottomRight,ot}),go.Shape.defineFigureGenerator("Sort",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.5*E,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.5*z).close());var at=new go.PathFigure(0,.5*z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),ot.spot1=new go.Spot(.25,.25),ot.spot2=new go.Spot(.75,.5),ot}),go.Shape.defineFigureGenerator("Start",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN;isNaN(it)&&(it=.25);var at=new go.PathFigure(it*E,0,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*E,.5*z,.25*E,.5*z)),at.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*E,.5*z,.25*E,.5*z));var ut=new go.PathFigure(it*E,0,!1);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,it*E,z)),ut.add(new go.PathSegment(go.PathSegment.Move,(1-it)*E,0)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-it)*E,z)),ot.spot1=new go.Spot(it,0),ot.spot2=new go.Spot(1-it,1),ot}),go.Shape.defineFigureGenerator("Terminator",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.25*E,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*E,.5*z,.25*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*E,.5*z,.25*E,.5*z)),ot.spot1=new go.Spot(.23,0),ot.spot2=new go.Spot(.77,1),ot}),go.Shape.defineFigureGenerator("TransmittalTape",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN;isNaN(it)&&(it=.1);var at=new go.PathFigure(0,0,!0);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,0)),at.add(new go.PathSegment(go.PathSegment.Line,E,z)),at.add(new go.PathSegment(go.PathSegment.Line,.75*E,(1-it)*z)),at.add(new go.PathSegment(go.PathSegment.Line,0,(1-it)*z).close()),ot.spot1=go.Spot.TopLeft,ot}),go.Shape.defineFigureGenerator("AndGate",function(lt,E,z){var ot=new go.Geometry,it=pt*.5,at=new go.PathFigure(0,0,!0);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),at.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*z,(.5+it)*E,0,E,(.5-it)*z)),at.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,z,E,(.5+it)*z,(.5+it)*E,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z).close()),ot.spot1=go.Spot.TopLeft,ot.spot2=new go.Spot(.55,1),ot}),go.Shape.defineFigureGenerator("Buffer",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z).close()),ot.spot1=new go.Spot(0,.25),ot.spot2=new go.Spot(.5,.75),ot}),go.Shape.defineFigureGenerator("Clock",function(lt,E,z){var ot=new go.Geometry,it=pt*.5,at=.5,ut=new go.PathFigure(E,at*z,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,at*E,z,E,(at+it)*z,(at+it)*E,z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,at*z,(at-it)*E,z,0,(at+it)*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,at*E,0,0,(at-it)*z,(at-it)*E,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E,at*z,(at+it)*E,0,E,(at-it)*z));var wt=new go.PathFigure(E,at*z,!1);ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,E,at*z));var Et=new go.PathFigure(.8*E,.75*z,!1);return ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,.8*E,.25*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.6*E,.25*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.6*E,.75*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.4*E,.75*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.4*E,.25*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.2*E,.25*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.2*E,.75*z)),ot}),go.Shape.defineFigureGenerator("Ground",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.5*E,0,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.4*z)),it.add(new go.PathSegment(go.PathSegment.Move,.2*E,.6*z)),it.add(new go.PathSegment(go.PathSegment.Line,.8*E,.6*z)),it.add(new go.PathSegment(go.PathSegment.Move,.3*E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,.7*E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Move,.4*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.6*E,z)),ot}),go.Shape.defineFigureGenerator("Inverter",function(lt,E,z){var ot=new go.Geometry,it=pt*.1,at=.1,ut=.9,wt=.5,Et=new go.PathFigure(.8*E,.5*z,!0);ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,0,z)),Et.add(new go.PathSegment(go.PathSegment.Line,0,0)),Et.add(new go.PathSegment(go.PathSegment.Line,.8*E,.5*z));var At=new go.PathFigure((ut+at)*E,wt*z,!0);return ot.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+at)*z,(ut+at)*E,(wt+it)*z,(ut+it)*E,(wt+at)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,(ut-at)*E,wt*z,(ut-it)*E,(wt+at)*z,(ut-at)*E,(wt+it)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt-at)*z,(ut-at)*E,(wt-it)*z,(ut-it)*E,(wt-at)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,(ut+at)*E,wt*z,(ut+it)*E,(wt-at)*z,(ut+at)*E,(wt-it)*z)),ot.spot1=new go.Spot(0,.25),ot.spot2=new go.Spot(.4,.75),ot}),go.Shape.defineFigureGenerator("NandGate",function(lt,E,z){var ot=new go.Geometry,it=pt*.5,at=pt*.4,ut=pt*.1,wt=.1,Et=.9,At=.5,_t=new go.PathFigure(.8*E,.5*z,!0);ot.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,z,.8*E,(.5+at)*z,(.4+it)*E,z)),_t.add(new go.PathSegment(go.PathSegment.Line,0,z)),_t.add(new go.PathSegment(go.PathSegment.Line,0,0)),_t.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),_t.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.5*z,(.4+it)*E,0,.8*E,(.5-at)*z));var Mt=new go.PathFigure((Et+wt)*E,At*z,!0);return ot.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E,(At+wt)*z,(Et+wt)*E,(At+ut)*z,(Et+ut)*E,(At+wt)*z)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-wt)*E,At*z,(Et-ut)*E,(At+wt)*z,(Et-wt)*E,(At+ut)*z)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E,(At-wt)*z,(Et-wt)*E,(At-ut)*z,(Et-ut)*E,(At-wt)*z)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(Et+wt)*E,At*z,(Et+ut)*E,(At-wt)*z,(Et+wt)*E,(At-ut)*z)),ot.spot1=new go.Spot(0,.05),ot.spot2=new go.Spot(.55,.95),ot}),go.Shape.defineFigureGenerator("NorGate",function(lt,E,z){var ot=new go.Geometry,it=.5,at=pt*it,ut=0,wt=.5,Et=new go.PathFigure(.8*E,.5*z,!0);ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,0,z,.7*E,(wt+at)*z,(ut+at)*E,(wt+it)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.75*z,.25*E,.25*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.5*z,(ut+at)*E,(wt-it)*z,.7*E,(wt-at)*z)),it=.1,at=pt*.1,ut=.9,wt=.5;var At=new go.PathFigure((ut-it)*E,wt*z,!0);return ot.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt-it)*z,(ut-it)*E,(wt-at)*z,(ut-at)*E,(wt-it)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,(ut+it)*E,wt*z,(ut+at)*E,(wt-it)*z,(ut+it)*E,(wt-at)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+it)*z,(ut+it)*E,(wt+at)*z,(ut+at)*E,(wt+it)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,(ut-it)*E,wt*z,(ut-at)*E,(wt+it)*z,(ut-it)*E,(wt+at)*z)),ot.spot1=new go.Spot(.2,.25),ot.spot2=new go.Spot(.6,.75),ot}),go.Shape.defineFigureGenerator("OrGate",function(lt,E,z){var ot=new go.Geometry,it=.5,at=pt*it,ut=0,wt=.5,Et=new go.PathFigure(0,0,!0);return ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*z,(ut+at+at)*E,(wt-it)*z,.8*E,(wt-at)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,0,z,.8*E,(wt+at)*z,(ut+at+at)*E,(wt+it)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.75*z,.25*E,.25*z).close()),ot.spot1=new go.Spot(.2,.25),ot.spot2=new go.Spot(.75,.75),ot}),go.Shape.defineFigureGenerator("XnorGate",function(lt,E,z){var ot=new go.Geometry,it=.5,at=pt*it,ut=.2,wt=.5,Et=new go.PathFigure(.1*E,0,!1);ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,z,.35*E,.25*z,.35*E,.75*z));var At=new go.PathFigure(.8*E,.5*z,!0);ot.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,z,.7*E,(wt+at)*z,(ut+at)*E,(wt+it)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,.45*E,.75*z,.45*E,.25*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.5*z,(ut+at)*E,(wt-it)*z,.7*E,(wt-at)*z)),it=.1,at=pt*.1,ut=.9,wt=.5;var _t=new go.PathFigure((ut-it)*E,wt*z,!0);return ot.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt-it)*z,(ut-it)*E,(wt-at)*z,(ut-at)*E,(wt-it)*z)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(ut+it)*E,wt*z,(ut+at)*E,(wt-it)*z,(ut+it)*E,(wt-at)*z)),_t.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+it)*z,(ut+it)*E,(wt+at)*z,(ut+at)*E,(wt+it)*z)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(ut-it)*E,wt*z,(ut-at)*E,(wt+it)*z,(ut-it)*E,(wt+at)*z)),ot.spot1=new go.Spot(.4,.25),ot.spot2=new go.Spot(.65,.75),ot}),go.Shape.defineFigureGenerator("XorGate",function(lt,E,z){var ot=new go.Geometry,it=.5,at=pt*it,ut=.2,wt=.5,Et=new go.PathFigure(.1*E,0,!1);ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,z,.35*E,.25*z,.35*E,.75*z));var At=new go.PathFigure(.2*E,0,!0);return ot.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*z,(ut+at)*E,(wt-it)*z,.9*E,(wt-at)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,z,.9*E,(wt+at)*z,(ut+at)*E,(wt+it)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,.45*E,.75*z,.45*E,.25*z).close()),ot.spot1=new go.Spot(.4,.25),ot.spot2=new go.Spot(.8,.75),ot}),go.Shape.defineFigureGenerator("Capacitor",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Move,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),ot}),go.Shape.defineFigureGenerator("Resistor",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.5*z,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.1*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.2*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.3*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.4*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.6*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.7*E,.5*z)),ot}),go.Shape.defineFigureGenerator("Inductor",function(lt,E,z){var ot=new go.Geometry,it=pt*.1,at=.1,ut=.1,wt=.5,Et=new go.PathFigure((ut-it*.5)*E,z,!1);return ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut+at)*E,0,(ut-it)*E,z,(ut-at)*E,0)),ut=.3,Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,z,(ut+at)*E,0,(ut+it)*E,z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut+at)*E,0,(ut-it)*E,z,(ut-at)*E,0)),ut=.5,Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,z,(ut+at)*E,0,(ut+it)*E,z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut+at)*E,0,(ut-it)*E,z,(ut-at)*E,0)),ut=.7,Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,z,(ut+at)*E,0,(ut+it)*E,z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut+at)*E,0,(ut-it)*E,z,(ut-at)*E,0)),ut=.9,Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut+it*.5)*E,z,(ut+at)*E,0,(ut+it)*E,z)),ot}),go.Shape.defineFigureGenerator("ACvoltageSource",function(lt,E,z){var ot=new go.Geometry,it=pt*.5,at=.5,ut=.5,wt=.5,Et=new go.PathFigure((ut-at)*E,wt*z,!1);return ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt-at)*z,(ut-at)*E,(wt-it)*z,(ut-it)*E,(wt-at)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut+at)*E,wt*z,(ut+it)*E,(wt-at)*z,(ut+at)*E,(wt-it)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+at)*z,(ut+at)*E,(wt+it)*z,(ut+it)*E,(wt+at)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut-at)*E,wt*z,(ut-it)*E,(wt+at)*z,(ut-at)*E,(wt+it)*z)),Et.add(new go.PathSegment(go.PathSegment.Move,(ut-at+.1)*E,wt*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut+at-.1)*E,wt*z,ut*E,(wt-at)*z,ut*E,(wt+at)*z)),ot}),go.Shape.defineFigureGenerator("DCvoltageSource",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.75*z,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,.25*z)),it.add(new go.PathSegment(go.PathSegment.Move,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),ot}),go.Shape.defineFigureGenerator("Diode",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E,0,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),ot.spot1=new go.Spot(0,.25),ot.spot2=new go.Spot(.5,.75),ot}),go.Shape.defineFigureGenerator("Wifi",function(lt,E,z){var ot=new go.Geometry,it=E,at=z;E=E*.38,z=z*.6;var ut=pt*.8,wt=.8,Et=0,At=.5,_t=(it-E)/2,Mt=(at-z)/2,jt=new go.PathFigure(Et*E+_t,(At+wt)*z+Mt,!0);ot.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-wt)*E+_t,At*z+Mt,(Et-ut)*E+_t,(At+wt)*z+Mt,(Et-wt)*E+_t,(At+ut)*z+Mt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E+_t,(At-wt)*z+Mt,(Et-wt)*E+_t,(At-ut)*z+Mt,(Et-ut)*E+_t,(At-wt)*z+Mt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-wt+ut*.5)*E+_t,At*z+Mt,Et*E+_t,(At-wt)*z+Mt,(Et-wt+ut*.5)*E+_t,(At-ut)*z+Mt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E+_t,(At+wt)*z+Mt,(Et-wt+ut*.5)*E+_t,(At+ut)*z+Mt,Et*E+_t,(At+wt)*z+Mt).close()),ut=pt*.4,wt=.4,Et=.2,At=.5;var Lt=new go.PathFigure(Et*E+_t,(At+wt)*z+Mt,!0);ot.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-wt)*E+_t,At*z+Mt,(Et-ut)*E+_t,(At+wt)*z+Mt,(Et-wt)*E+_t,(At+ut)*z+Mt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E+_t,(At-wt)*z+Mt,(Et-wt)*E+_t,(At-ut)*z+Mt,(Et-ut)*E+_t,(At-wt)*z+Mt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-wt+ut*.5)*E+_t,At*z+Mt,Et*E+_t,(At-wt)*z+Mt,(Et-wt+ut*.5)*E+_t,(At-ut)*z+Mt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E+_t,(At+wt)*z+Mt,(Et-wt+ut*.5)*E+_t,(At+ut)*z+Mt,Et*E+_t,(At+wt)*z+Mt).close()),ut=pt*.2,wt=.2,Et=.5,At=.5;var It=new go.PathFigure((Et-wt)*E+_t,At*z+Mt,!0);ot.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,Et*E+_t,(At-wt)*z+Mt,(Et-wt)*E+_t,(At-ut)*z+Mt,(Et-ut)*E+_t,(At-wt)*z+Mt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(Et+wt)*E+_t,At*z+Mt,(Et+ut)*E+_t,(At-wt)*z+Mt,(Et+wt)*E+_t,(At-ut)*z+Mt)),It.add(new go.PathSegment(go.PathSegment.Bezier,Et*E+_t,(At+wt)*z+Mt,(Et+wt)*E+_t,(At+ut)*z+Mt,(Et+ut)*E+_t,(At+wt)*z+Mt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(Et-wt)*E+_t,At*z+Mt,(Et-ut)*E+_t,(At+wt)*z+Mt,(Et-wt)*E+_t,(At+ut)*z+Mt)),ut=pt*.4,wt=.4,Et=.8,At=.5;var Ut=new go.PathFigure(Et*E+_t,(At-wt)*z+Mt,!0);ot.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Et+wt)*E+_t,At*z+Mt,(Et+ut)*E+_t,(At-wt)*z+Mt,(Et+wt)*E+_t,(At-ut)*z+Mt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,Et*E+_t,(At+wt)*z+Mt,(Et+wt)*E+_t,(At+ut)*z+Mt,(Et+ut)*E+_t,(At+wt)*z+Mt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Et+wt-ut*.5)*E+_t,At*z+Mt,Et*E+_t,(At+wt)*z+Mt,(Et+wt-ut*.5)*E+_t,(At+ut)*z+Mt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,Et*E+_t,(At-wt)*z+Mt,(Et+wt-ut*.5)*E+_t,(At-ut)*z+Mt,Et*E+_t,(At-wt)*z+Mt).close()),ut=pt*.8,wt=.8,Et=1,At=.5;var Xt=new go.PathFigure(Et*E+_t,(At-wt)*z+Mt,!0);return ot.add(Xt),Xt.add(new go.PathSegment(go.PathSegment.Bezier,(Et+wt)*E+_t,At*z+Mt,(Et+ut)*E+_t,(At-wt)*z+Mt,(Et+wt)*E+_t,(At-ut)*z+Mt)),Xt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E+_t,(At+wt)*z+Mt,(Et+wt)*E+_t,(At+ut)*z+Mt,(Et+ut)*E+_t,(At+wt)*z+Mt)),Xt.add(new go.PathSegment(go.PathSegment.Bezier,(Et+wt-ut*.5)*E+_t,At*z+Mt,Et*E+_t,(At+wt)*z+Mt,(Et+wt-ut*.5)*E+_t,(At+ut)*z+Mt)),Xt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E+_t,(At-wt)*z+Mt,(Et+wt-ut*.5)*E+_t,(At-ut)*z+Mt,Et*E+_t,(At-wt)*z+Mt).close()),ot}),go.Shape.defineFigureGenerator("Email",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var at=new go.PathFigure(0,0,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,0)),at.add(new go.PathSegment(go.PathSegment.Move,0,z)),at.add(new go.PathSegment(go.PathSegment.Line,.45*E,.54*z)),at.add(new go.PathSegment(go.PathSegment.Move,E,z)),at.add(new go.PathSegment(go.PathSegment.Line,.55*E,.54*z)),ot}),go.Shape.defineFigureGenerator("Ethernet",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.35*E,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.65*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.65*E,.4*z)),it.add(new go.PathSegment(go.PathSegment.Line,.35*E,.4*z)),it.add(new go.PathSegment(go.PathSegment.Line,.35*E,0).close());var at=new go.PathFigure(.1*E,z,!0,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.4*E,z)),at.add(new go.PathSegment(go.PathSegment.Line,.4*E,.6*z)),at.add(new go.PathSegment(go.PathSegment.Line,.1*E,.6*z)),at.add(new go.PathSegment(go.PathSegment.Line,.1*E,z).close());var ut=new go.PathFigure(.6*E,z,!0,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.9*E,z)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*E,.6*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*E,.6*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*E,z).close());var wt=new go.PathFigure(0,.5*z,!1);return ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),wt.add(new go.PathSegment(go.PathSegment.Move,.5*E,.5*z)),wt.add(new go.PathSegment(go.PathSegment.Line,.5*E,.4*z)),wt.add(new go.PathSegment(go.PathSegment.Move,.75*E,.5*z)),wt.add(new go.PathSegment(go.PathSegment.Line,.75*E,.6*z)),wt.add(new go.PathSegment(go.PathSegment.Move,.25*E,.5*z)),wt.add(new go.PathSegment(go.PathSegment.Line,.25*E,.6*z)),ot}),go.Shape.defineFigureGenerator("Power",function(lt,E,z){var ot=new go.Geometry,it=pt*.4,at=.4,ut=.5,wt=.5,Et=Ft(),At=Ft(),_t=Ft(),Mt=Ft();kt(ut,wt-at,ut+it,wt-at,ut+at,wt-it,ut+at,wt,.5,Et,Et,At,_t,Mt);var jt=Rt(At.x,At.y),Lt=new go.PathFigure(At.x*E,At.y*z,!0);ot.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+at)*E,wt*z,_t.x*E,_t.y*z,Mt.x*E,Mt.y*z)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+at)*z,(ut+at)*E,(wt+it)*z,(ut+it)*E,(wt+at)*z)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(ut-at)*E,wt*z,(ut-it)*E,(wt+at)*z,(ut-at)*E,(wt+it)*z)),kt(ut-at,wt,ut-at,wt-it,ut-it,wt-at,ut,wt-at,.5,_t,Mt,At,Et,Et),Lt.add(new go.PathSegment(go.PathSegment.Bezier,At.x*E,At.y*z,_t.x*E,_t.y*z,Mt.x*E,Mt.y*z)),it=pt*.3,at=.3,kt(ut-at,wt,ut-at,wt-it,ut-it,wt-at,ut,wt-at,.5,_t,Mt,At,Et,Et),Lt.add(new go.PathSegment(go.PathSegment.Line,At.x*E,At.y*z)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(ut-at)*E,wt*z,Mt.x*E,Mt.y*z,_t.x*E,_t.y*z)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+at)*z,(ut-at)*E,(wt+it)*z,(ut-it)*E,(wt+at)*z)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+at)*E,wt*z,(ut+it)*E,(wt+at)*z,(ut+at)*E,(wt+it)*z)),kt(ut,wt-at,ut+it,wt-at,ut+at,wt-it,ut+at,wt,.5,Et,Et,At,_t,Mt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,At.x*E,At.y*z,Mt.x*E,Mt.y*z,_t.x*E,_t.y*z).close());var Lt=new go.PathFigure(.45*E,0,!0);return ot.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,.45*E,.5*z)),Lt.add(new go.PathSegment(go.PathSegment.Line,.55*E,.5*z)),Lt.add(new go.PathSegment(go.PathSegment.Line,.55*E,0).close()),ie(Et),ie(At),ie(_t),ie(Mt),ie(jt),ot.spot1=new go.Spot(.25,.45),ot.spot2=new go.Spot(.75,.8),ot}),go.Shape.defineFigureGenerator("Fallout",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,z/2,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Arc,180,360,E/2,z/2,E/2,z/2));function at(ut,wt,Et){ut.add(new go.PathSegment(go.PathSegment.Move,(.3+wt)*E,(.8+Et)*z)),ut.add(new go.PathSegment(go.PathSegment.Line,(.5+wt)*E,(.5+Et)*z)),ut.add(new go.PathSegment(go.PathSegment.Line,(.1+wt)*E,(.5+Et)*z)),ut.add(new go.PathSegment(go.PathSegment.Line,(.3+wt)*E,(.8+Et)*z).close())}return at(it,0,0),at(it,.4,0),at(it,.2,-.3),ot}),go.Shape.defineFigureGenerator("IrritationHazard",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.2*E,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.3*z)),it.add(new go.PathSegment(go.PathSegment.Line,.8*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.2*z)),it.add(new go.PathSegment(go.PathSegment.Line,.7*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,.8*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.7*z)),it.add(new go.PathSegment(go.PathSegment.Line,.2*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,.3*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.2*z).close()),ot.spot1=new go.Spot(.3,.3),ot.spot2=new go.Spot(.7,.7),ot}),go.Shape.defineFigureGenerator("ElectricalHazard",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.37*E,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.11*z)),it.add(new go.PathSegment(go.PathSegment.Line,.77*E,.04*z)),it.add(new go.PathSegment(go.PathSegment.Line,.33*E,.49*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.37*z)),it.add(new go.PathSegment(go.PathSegment.Line,.63*E,.86*z)),it.add(new go.PathSegment(go.PathSegment.Line,.77*E,.91*z)),it.add(new go.PathSegment(go.PathSegment.Line,.34*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.34*E,.78*z)),it.add(new go.PathSegment(go.PathSegment.Line,.44*E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,.65*E,.56*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.68*z).close()),ot}),go.Shape.defineFigureGenerator("FireHazard",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.1*E,z,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,.29*E,0,-.25*E,.63*z,.45*E,.44*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.51*E,.42*z,.48*E,.17*z,.54*E,.35*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.59*E,.18*z,.59*E,.29*z,.58*E,.28*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.75*E,.6*z,.8*E,.34*z,.88*E,.43*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.88*E,.31*z,.87*E,.48*z,.88*E,.43*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,z,1.17*E,.76*z,.82*E,.8*z).close()),ot.spot1=new go.Spot(.07,.445),ot.spot2=new go.Spot(.884,.958),ot}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(lt,E,z){var ot=new go.Geometry,it=.5,at=0,ut=0,wt=it*pt,Et=.4*Math.SQRT2/2+.5,At=.5-.5*Math.SQRT2/2,_t=1,Mt=.5,jt=.5,Lt=0,It=new go.PathFigure(Et*E,(1-At)*z,!1);return ot.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,_t*E,Mt*z,_t*E,.7*z,_t*E,Mt*z)),It.add(new go.PathSegment(go.PathSegment.Bezier,(jt+at)*E,(Lt+at)*z,(.5+it+at)*E,(.5-wt+at)*z,(.5+wt+at)*E,(.5-it+at)*z)),It.add(new go.PathSegment(go.PathSegment.Bezier,(.5-it+at)*E,(.5+ut)*z,(.5-wt+at)*E,(.5-it+ut)*z,(.5-it+at)*E,(.5-wt+ut)*z)),It.add(new go.PathSegment(go.PathSegment.Bezier,(.35+at)*E,.9*z,(.5-it+at)*E,(.5+wt+ut)*z,(.5-wt+at)*E,.9*z)),It.add(new go.PathSegment(go.PathSegment.Move,(.25+at)*E,.8*z)),It.add(new go.PathSegment(go.PathSegment.Line,(.35+at)*E,.9*z)),It.add(new go.PathSegment(go.PathSegment.Line,(.2+at)*E,.95*z)),ot}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Move,.5*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),it.add(new go.PathSegment(go.PathSegment.Move,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),ot}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Move,0,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Move,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),ot}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!1);ot.add(it);var at=new go.PathFigure(E,z,!1);ot.add(at);var ut=new go.PathFigure(0,.5*z,!1);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.5*z,.2*E,.35*z,.3*E,.35*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*z,.7*E,.65*z,.8*E,.65*z)),ot}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.5*z,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z).close()),ot}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.2*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,.2*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.8*z).close());var it=new go.PathFigure(0,.2*z,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.2*z)),ot}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.7*E,z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.3*E,z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,0,.6*E,.5*z,0,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.7*E,0)),it.add(new go.PathSegment(go.PathSegment.Bezier,.7*E,z,.4*E,.5*z,E,.5*z).close());var at=new go.PathFigure(.45*E,.73*z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.7*E,.73*z)),at.add(new go.PathSegment(go.PathSegment.Move,.38*E,.5*z)),at.add(new go.PathSegment(go.PathSegment.Line,.63*E,.5*z)),at.add(new go.PathSegment(go.PathSegment.Move,.31*E,.27*z)),at.add(new go.PathSegment(go.PathSegment.Line,.56*E,.27*z)),ot}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!1);ot.add(it);var at=new go.PathFigure(.335*E,(1-.555)*z,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.335*E,(1-.405)*z)),at.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.405)*z)),at.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.555)*z)),at.add(new go.PathSegment(go.PathSegment.Bezier,E,.68*z,(1-.12)*E,.46*z,(1-.02)*E,.54*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,.68*z)),at.add(new go.PathSegment(go.PathSegment.Bezier,.335*E,(1-.555)*z,.02*E,.54*z,.12*E,.46*z)),at.add(new go.PathSegment(go.PathSegment.Line,.365*E,(1-.595)*z));var ut=.5-.285,wt=.5,Et=ut,At=Math.PI/4,_t=4*(1-Math.cos(At))/(3*Math.sin(At)),Mt=_t*.5,jt=ut,Lt=ut,It=_t*jt,Ut=_t*Lt;at.add(new go.PathSegment(go.PathSegment.Bezier,(wt-jt)*E,Et*z,(wt-(It+jt)/2)*E,(Et+(Lt+Ut)/2)*z,(wt-jt)*E,(Et+Ut)*z)),at.add(new go.PathSegment(go.PathSegment.Bezier,wt*E,(Et-Lt)*z,(wt-jt)*E,(Et-Ut)*z,(wt-It)*E,(Et-Lt)*z)),at.add(new go.PathSegment(go.PathSegment.Bezier,(wt+jt)*E,Et*z,(wt+It)*E,(Et-Lt)*z,(wt+jt)*E,(Et-Ut)*z)),at.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*E,(1-.595)*z,(wt+jt)*E,(Et+Ut)*z,(wt+(It+jt)/2)*E,(Et+(Lt+Ut)/2)*z)),at.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*E,(1-.595)*z)),at.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.555)*z)),at.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.405)*z)),at.add(new go.PathSegment(go.PathSegment.Line,.335*E,(1-.405)*z));var Xt=new go.PathFigure(.2*E,z,!1);ot.add(Xt),Xt.add(new go.PathSegment(go.PathSegment.Line,.2*E,.8*z));var Gt=new go.PathFigure(.8*E,z,!1);return ot.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Line,.8*E,.8*z)),ot}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.1*E,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.9*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.9*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.1*E,z).close());var at=new go.PathFigure(.2*E,.2*z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*z)),at.add(new go.PathSegment(go.PathSegment.Move,.2*E,.4*z)),at.add(new go.PathSegment(go.PathSegment.Line,.8*E,.4*z)),at.add(new go.PathSegment(go.PathSegment.Move,.2*E,.6*z)),at.add(new go.PathSegment(go.PathSegment.Line,.8*E,.6*z)),at.add(new go.PathSegment(go.PathSegment.Move,.2*E,.8*z)),at.add(new go.PathSegment(go.PathSegment.Line,.8*E,.8*z)),ot}),go.Shape.defineFigureGenerator("BpmnEventError",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,z,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.33*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.66*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.66*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.33*E,.5*z).close()),ot}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!1);ot.add(it);var at=new go.PathFigure(E,z,!1);ot.add(at);var ut=new go.PathFigure(.1*E,z,!0);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*E,z)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*z).close()),ot}),go.Shape.defineFigureGenerator("Caution",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.05*E,z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,.8*z,0,z,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,.45*E,.1*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.55*E,.1*z,.5*E,0,.5*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.95*E,.9*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,z,E,z,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.05*E,z));var at=.05;return it.add(new go.PathSegment(go.PathSegment.Move,(.5-at)*E,.875*z)),it.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*E,.875*z,at*E,at*z)),it.add(new go.PathSegment(go.PathSegment.Move,.5*E,.75*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.325*z,.575*E,.725*z,.625*E,.375*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.75*z,.375*E,.375*z,.425*E,.725*z)),ot}),go.Shape.defineFigureGenerator("Recycle",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.45*E,.95*z,!1);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.2*E,.95*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.185*E,.85*z,.17*E,.95*z,.15*E,.9*z)),it.add(new go.PathSegment(go.PathSegment.Line,.235*E,.75*z)),it.add(new go.PathSegment(go.PathSegment.Line,.3*E,.625*z)),it.add(new go.PathSegment(go.PathSegment.Line,.35*E,.65*z)),it.add(new go.PathSegment(go.PathSegment.Line,.275*E,.45*z)),it.add(new go.PathSegment(go.PathSegment.Line,.05*E,.45*z)),it.add(new go.PathSegment(go.PathSegment.Line,.1*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.05*E,.575*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.1875*E,.95*z,0,.675*z,0,.7*z)),it.add(new go.PathSegment(go.PathSegment.Move,.45*E,.95*z)),it.add(new go.PathSegment(go.PathSegment.Line,.45*E,.775*z)),it.add(new go.PathSegment(go.PathSegment.Line,.22*E,.775*z));var at=new go.PathFigure(.475*E,.2*z,!1);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.4*E,.4*z)),at.add(new go.PathSegment(go.PathSegment.Line,.225*E,.3*z)),at.add(new go.PathSegment(go.PathSegment.Line,.275*E,.175*z)),at.add(new go.PathSegment(go.PathSegment.Line,.325*E,.05*z)),at.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,.05*z,.35*E,0,.375*E,0)),at.add(new go.PathSegment(go.PathSegment.Line,.575*E,.375*z)),at.add(new go.PathSegment(go.PathSegment.Line,.525*E,.4*z)),at.add(new go.PathSegment(go.PathSegment.Line,.75*E,.475*z)),at.add(new go.PathSegment(go.PathSegment.Line,.85*E,.315*z)),at.add(new go.PathSegment(go.PathSegment.Line,.8*E,.32*z)),at.add(new go.PathSegment(go.PathSegment.Line,.65*E,.05*z)),at.add(new go.PathSegment(go.PathSegment.Bezier,.575*E,0,.65*E,.05*z,.625*E,0)),at.add(new go.PathSegment(go.PathSegment.Line,.38*E,.0105*z));var ut=new go.PathFigure(.675*E,.575*z,!1);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.875*E,.525*z)),ut.add(new go.PathSegment(go.PathSegment.Line,E,.775*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.85*E,.95*z,E,.8*z,E,.85*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.65*E,.95*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.65*E,z)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*E,.85*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.65*E,.725*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.65*E,.775*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.7*E,.775*z)),ut.add(new go.PathSegment(go.PathSegment.Line,E,.775*z)),ut.add(new go.PathSegment(go.PathSegment.Move,.675*E,.575*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.775*E,.775*z)),ot}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(lt,E,z){var ot=new go.Geometry,it=.5,at=pt*.5,ut=new go.PathFigure(E,it*z,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,it*E,z,E,(it+at)*z,(it+at)*E,z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,it*z,(it-at)*E,z,0,(it+at)*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,it*E,0,0,(it-at)*z,(it-at)*E,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E,it*z,(it+at)*E,0,E,(it-at)*z));var wt=new go.PathFigure(it*E,0,!1);return ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,it*E,.15*z)),wt.add(new go.PathSegment(go.PathSegment.Move,it*E,z)),wt.add(new go.PathSegment(go.PathSegment.Line,it*E,.85*z)),wt.add(new go.PathSegment(go.PathSegment.Move,0,it*z)),wt.add(new go.PathSegment(go.PathSegment.Line,.15*E,it*z)),wt.add(new go.PathSegment(go.PathSegment.Move,E,it*z)),wt.add(new go.PathSegment(go.PathSegment.Line,.85*E,it*z)),wt.add(new go.PathSegment(go.PathSegment.Move,it*E,it*z)),wt.add(new go.PathSegment(go.PathSegment.Line,.58*E,.1*z)),wt.add(new go.PathSegment(go.PathSegment.Move,it*E,it*z)),wt.add(new go.PathSegment(go.PathSegment.Line,.78*E,.54*z)),ot}),go.Shape.defineFigureGenerator("Package",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.15*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,.15*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z).close());var at=new go.PathFigure(0,.15*z,!0);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,0)),at.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),at.add(new go.PathSegment(go.PathSegment.Line,.65*E,.15*z).close()),ot.spot1=new go.Spot(0,.1),ot.spot2=new go.Spot(1,1),ot}),go.Shape.defineFigureGenerator("Class",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var at=new go.PathFigure(0,.2*z,!1);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,.2*z).close());var ut=new go.PathFigure(0,.5*z,!1);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E,.5*z).close()),ot}),go.Shape.defineFigureGenerator("Component",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E,z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.15*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.15*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z).close());var at=new go.PathFigure(0,.2*z,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.45*E,.2*z)),at.add(new go.PathSegment(go.PathSegment.Line,.45*E,.4*z)),at.add(new go.PathSegment(go.PathSegment.Line,0,.4*z)),at.add(new go.PathSegment(go.PathSegment.Line,0,.2*z).close());var ut=new go.PathFigure(0,.6*z,!0);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.45*E,.6*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.45*E,.8*z)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.8*z)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.6*z).close()),ot}),go.Shape.defineFigureGenerator("Boat Shipment",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.15*E,.6*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.6*z)),it.add(new go.PathSegment(go.PathSegment.Line,.15*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.85*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.6*z)),it.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*z));var at=new go.PathFigure(.15*E,.6*z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*z)),ot}),go.Shape.defineFigureGenerator("Customer/Supplier",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E,z,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.66*E,.33*z)),it.add(new go.PathSegment(go.PathSegment.Line,.66*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.33*E,.33*z)),it.add(new go.PathSegment(go.PathSegment.Line,.33*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,0,.33*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z).close()),ot}),go.Shape.defineFigureGenerator("Workcell",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,z,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.65*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.65*E,.4*z)),it.add(new go.PathSegment(go.PathSegment.Line,.35*E,.4*z)),it.add(new go.PathSegment(go.PathSegment.Line,.35*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z).close()),ot}),go.Shape.defineFigureGenerator("Supermarket",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.33*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.33*z)),it.add(new go.PathSegment(go.PathSegment.Move,E,.33*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.66*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.66*z)),it.add(new go.PathSegment(go.PathSegment.Move,E,.66*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),ot}),go.Shape.defineFigureGenerator("TruckShipment",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.6*E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var at=new go.PathFigure(E,.8*z,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,.4*z)),at.add(new go.PathSegment(go.PathSegment.Line,.6*E,.4*z)),at.add(new go.PathSegment(go.PathSegment.Line,.6*E,.8*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,.8*z).close());var ut=.1,wt=pt*.1,Et=.2,At=.9,_t=new go.PathFigure((Et-ut)*E,At*z,!0);ot.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,Et*E,(At-ut)*z,(Et-ut)*E,(At-wt)*z,(Et-wt)*E,(At-ut)*z)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Et+ut)*E,At*z,(Et+wt)*E,(At-ut)*z,(Et+ut)*E,(At-wt)*z)),_t.add(new go.PathSegment(go.PathSegment.Bezier,Et*E,(At+ut)*z,(Et+ut)*E,(At+wt)*z,(Et+wt)*E,(At+ut)*z)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Et-ut)*E,At*z,(Et-wt)*E,(At+ut)*z,(Et-ut)*E,(At+wt)*z).close()),ut=.1,wt=pt*.1,Et=.8,At=.9;var Mt=new go.PathFigure((Et-ut)*E,At*z,!0);return ot.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E,(At-ut)*z,(Et-ut)*E,(At-wt)*z,(Et-wt)*E,(At-ut)*z)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(Et+ut)*E,At*z,(Et+wt)*E,(At-ut)*z,(Et+ut)*E,(At-wt)*z)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E,(At+ut)*z,(Et+ut)*E,(At+wt)*z,(Et+wt)*E,(At+ut)*z)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-ut)*E,At*z,(Et-wt)*E,(At+ut)*z,(Et-ut)*E,(At+wt)*z).close()),ot}),go.Shape.defineFigureGenerator("KanbanPost",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.2*E,0,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.2*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.8*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.8*E,0)),it.add(new go.PathSegment(go.PathSegment.Move,.5*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.2*E,z)),it.add(new go.PathSegment(go.PathSegment.Move,.5*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.8*E,z)),ot}),go.Shape.defineFigureGenerator("Forklift",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,0,0));var at=new go.PathFigure(0,.5*z,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,.8*z)),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,.8*z)),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*z)),at.add(new go.PathSegment(go.PathSegment.Line,0,.5*z));var ut=new go.PathFigure(.5*E,.8*z,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*E,.1*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*E,.1*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*E,.8*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*E,.8*z));var wt=new go.PathFigure(.5*E,.7*z,!1);ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,E,.7*z));var Et=.1,At=pt*.1,_t=.1,Mt=.9,jt=new go.PathFigure((_t-Et)*E,Mt*z,!0);ot.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,_t*E,(Mt-Et)*z,(_t-Et)*E,(Mt-At)*z,(_t-At)*E,(Mt-Et)*z)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(_t+Et)*E,Mt*z,(_t+At)*E,(Mt-Et)*z,(_t+Et)*E,(Mt-At)*z)),jt.add(new go.PathSegment(go.PathSegment.Bezier,_t*E,(Mt+Et)*z,(_t+Et)*E,(Mt+At)*z,(_t+At)*E,(Mt+Et)*z)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(_t-Et)*E,Mt*z,(_t-At)*E,(Mt+Et)*z,(_t-Et)*E,(Mt+At)*z)),Et=.1,At=pt*.1,_t=.4,Mt=.9;var Lt=new go.PathFigure((_t-Et)*E,Mt*z,!0);return ot.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,_t*E,(Mt-Et)*z,(_t-Et)*E,(Mt-At)*z,(_t-At)*E,(Mt-Et)*z)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(_t+Et)*E,Mt*z,(_t+At)*E,(Mt-Et)*z,(_t+Et)*E,(Mt-At)*z)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,_t*E,(Mt+Et)*z,(_t+Et)*E,(Mt+At)*z,(_t+At)*E,(Mt+Et)*z)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(_t-Et)*E,Mt*z,(_t-At)*E,(Mt+Et)*z,(_t-Et)*E,(Mt+At)*z)),ot}),go.Shape.defineFigureGenerator("RailShipment",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.1*E,.4*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.45*E,.4*z)),it.add(new go.PathSegment(go.PathSegment.Line,.45*E,.9*z)),it.add(new go.PathSegment(go.PathSegment.Line,.1*E,.9*z)),it.add(new go.PathSegment(go.PathSegment.Line,.1*E,.4*z).close());var at=new go.PathFigure(.45*E,.7*z,!1);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.55*E,.7*z));var ut=new go.PathFigure(.55*E,.4*z,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*E,.9*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*E,.9*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*E,.4*z).close());var _t=.05,Mt=pt*.05,jt=.175,Lt=.95,wt=new go.PathFigure((jt-_t)*E,Lt*z,!0);ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,jt*E,(Lt-_t)*z,(jt-_t)*E,(Lt-Mt)*z,(jt-Mt)*E,(Lt-_t)*z)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(jt+_t)*E,Lt*z,(jt+Mt)*E,(Lt-_t)*z,(jt+_t)*E,(Lt-Mt)*z)),wt.add(new go.PathSegment(go.PathSegment.Bezier,jt*E,(Lt+_t)*z,(jt+_t)*E,(Lt+Mt)*z,(jt+Mt)*E,(Lt+_t)*z)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(jt-_t)*E,Lt*z,(jt-Mt)*E,(Lt+_t)*z,(jt-_t)*E,(Lt+Mt)*z));var _t=.05,Mt=pt*.05,jt=.375,Lt=.95,Et=new go.PathFigure((jt-_t)*E,Lt*z,!0);ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,jt*E,(Lt-_t)*z,(jt-_t)*E,(Lt-Mt)*z,(jt-Mt)*E,(Lt-_t)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(jt+_t)*E,Lt*z,(jt+Mt)*E,(Lt-_t)*z,(jt+_t)*E,(Lt-Mt)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,jt*E,(Lt+_t)*z,(jt+_t)*E,(Lt+Mt)*z,(jt+Mt)*E,(Lt+_t)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(jt-_t)*E,Lt*z,(jt-Mt)*E,(Lt+_t)*z,(jt-_t)*E,(Lt+Mt)*z));var _t=.05,Mt=pt*.05,jt=.625,Lt=.95,At=new go.PathFigure((jt-_t)*E,Lt*z,!0);ot.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,jt*E,(Lt-_t)*z,(jt-_t)*E,(Lt-Mt)*z,(jt-Mt)*E,(Lt-_t)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,(jt+_t)*E,Lt*z,(jt+Mt)*E,(Lt-_t)*z,(jt+_t)*E,(Lt-Mt)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,jt*E,(Lt+_t)*z,(jt+_t)*E,(Lt+Mt)*z,(jt+Mt)*E,(Lt+_t)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,(jt-_t)*E,Lt*z,(jt-Mt)*E,(Lt+_t)*z,(jt-_t)*E,(Lt+Mt)*z));var _t=.05,Mt=pt*.05,jt=.825,Lt=.95,It=new go.PathFigure((jt-_t)*E,Lt*z,!0);ot.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,jt*E,(Lt-_t)*z,(jt-_t)*E,(Lt-Mt)*z,(jt-Mt)*E,(Lt-_t)*z)),It.add(new go.PathSegment(go.PathSegment.Bezier,(jt+_t)*E,Lt*z,(jt+Mt)*E,(Lt-_t)*z,(jt+_t)*E,(Lt-Mt)*z)),It.add(new go.PathSegment(go.PathSegment.Bezier,jt*E,(Lt+_t)*z,(jt+_t)*E,(Lt+Mt)*z,(jt+Mt)*E,(Lt+_t)*z)),It.add(new go.PathSegment(go.PathSegment.Bezier,(jt-_t)*E,Lt*z,(jt-Mt)*E,(Lt+_t)*z,(jt-_t)*E,(Lt+Mt)*z).close());var Ut=new go.PathFigure(0,z,!1);return ot.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Line,E,z).close()),ot}),go.Shape.defineFigureGenerator("Warehouse",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var at=new go.PathFigure(0,.2*z,!1);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,.2*z).close());var ut=new go.PathFigure(.15*E,z,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.15*E,.5*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*E,.5*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*E,z)),ut.add(new go.PathSegment(go.PathSegment.Line,.15*E,z).close());var wt=.05,Et=pt*.05,At=.35,_t=.775,Mt=new go.PathFigure((At-wt)*E,_t*z,!0);return ot.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,At*E,(_t-wt)*z,(At-wt)*E,(_t-Et)*z,(At-Et)*E,(_t-wt)*z)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(At+wt)*E,_t*z,(At+Et)*E,(_t-wt)*z,(At+wt)*E,(_t-Et)*z)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,At*E,(_t+wt)*z,(At+wt)*E,(_t+Et)*z,(At+Et)*E,(_t+wt)*z)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(At-wt)*E,_t*z,(At-Et)*E,(_t+wt)*z,(At-wt)*E,(_t+Et)*z).close()),ot}),go.Shape.defineFigureGenerator("ControlCenter",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,z,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,.1*E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,.1*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.9*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Move,.1*E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*z).close()),ot}),go.Shape.defineFigureGenerator("Bluetooth",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.75*z,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,.75*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.25*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.75*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.25*z)),ot}),go.Shape.defineFigureGenerator("Bookmark",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,0,0)),it.add(new go.PathSegment(go.PathSegment.Move,.2*E,.2*z)),it.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*z)),it.add(new go.PathSegment(go.PathSegment.Move,.2*E,.4*z)),it.add(new go.PathSegment(go.PathSegment.Line,.8*E,.4*z)),ot}),go.Shape.defineFigureGenerator("Bookmark",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,0,0)),it.add(new go.PathSegment(go.PathSegment.Move,.2*E,.2*z)),it.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*z)),it.add(new go.PathSegment(go.PathSegment.Move,.2*E,.4*z)),it.add(new go.PathSegment(go.PathSegment.Line,.8*E,.4*z)),ot}),go.Shape.defineFigureGenerator("Globe",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.5*E,0,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),it.add(new go.PathSegment(go.PathSegment.Move,0,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Move,.5*E,0)),it.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*z,.75*E,0,E,.25*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,z,E,.75*z,.75*E,z)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*z,.25*E,z,0,.75*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,.25*z,.25*E,0)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,z,.15*E,.25*z,.15*E,.75*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,.85*E,.75*z,.85*E,.25*z)),it.add(new go.PathSegment(go.PathSegment.Move,.1675*E,.15*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.8325*E,.15*z,.35*E,.3*z,.65*E,.3*z)),it.add(new go.PathSegment(go.PathSegment.Move,.1675*E,.85*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.8325*E,.85*z,.35*E,.7*z,.65*E,.7*z)),ot}),go.Shape.defineFigureGenerator("Wave",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.25*z,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.25*z,.1*E,0,.2*E,0)),it.add(new go.PathSegment(go.PathSegment.Bezier,.7*E,.25*z,.425*E,.5*z,.575*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,E,.25*z,.8*E,0,.9*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.75*z)),it.add(new go.PathSegment(go.PathSegment.Move,0,.25*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.75*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.75*z,.1*E,.5*z,.2*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.7*E,.75*z,.425*E,z,.575*E,z)),it.add(new go.PathSegment(go.PathSegment.Bezier,E,.75*z,.8*E,.5*z,.9*E,.5*z)),ot}),go.Shape.defineFigureGenerator("Operator",function(lt,E,z){var ot=new go.Geometry,it=.3,at=pt*.3,ut=.5,wt=.7,Et=new go.PathFigure((ut-it)*E,wt*z,!0);ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt-it)*z,(ut-it)*E,(wt-at)*z,(ut-at)*E,(wt-it)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut+it)*E,wt*z,(ut+at)*E,(wt-it)*z,(ut+it)*E,(wt-at)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+it)*z,(ut+it)*E,(wt+at)*z,(ut+at)*E,(wt+it)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut-it)*E,wt*z,(ut-at)*E,(wt+it)*z,(ut-it)*E,(wt+at)*z));var At=new go.PathFigure(0,.7*z,!1);return ot.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,E,.7*z,0,0,E,0)),ot}),go.Shape.defineFigureGenerator("TripleFanBlades",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.5*E,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.65*z,.65*E,.3*z,.65*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,.35*E,.5*z,.35*E,.3*z)),it.add(new go.PathSegment(go.PathSegment.Move,.5*E,.65*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,z,.3*E,.6*z,.1*E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.65*z,.2*E,z,.35*E,.95*z)),it.add(new go.PathSegment(go.PathSegment.Move,.5*E,.65*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,E,z,.7*E,.6*z,.9*E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.65*z,.8*E,z,.65*E,.95*z)),ot}),go.Shape.defineFigureGenerator("CentrifugalPump",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*z,0,.075*z,0,.5*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,z,0,z,.4*E,z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.4*z,.8*E,z,.85*E,.6*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.4*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),ot}),go.Shape.defineFigureGenerator("Battery",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,.1*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.1*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Move,.4*E,.1*z)),it.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.6*E,.1*z));var at=new go.PathFigure(0,.6*z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Move,0,.4*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,.4*z)),ot}),go.Shape.defineFigureGenerator("Delete",function(lt,E,z){var ot=new go.Geometry,it=.5,at=pt*.5,ut=.5,wt=.5,Et=new go.PathFigure((ut-it)*E,wt*z,!0);ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt-it)*z,(ut-it)*E,(wt-at)*z,(ut-at)*E,(wt-it)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut+it)*E,wt*z,(ut+at)*E,(wt-it)*z,(ut+it)*E,(wt-at)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+it)*z,(ut+it)*E,(wt+at)*z,(ut+at)*E,(wt+it)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut-it)*E,wt*z,(ut-at)*E,(wt+it)*z,(ut-it)*E,(wt+at)*z));var At=new go.PathFigure(.15*E,.5*z,!1);return ot.add(At),At.add(new go.PathSegment(go.PathSegment.Line,.85*E,.5*z)),ot}),go.Shape.defineFigureGenerator("Flag",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.1*z,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Move,0,.1*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.1*z,.15*E,0,.35*E,0)),it.add(new go.PathSegment(go.PathSegment.Bezier,E,.1*z,.65*E,.2*z,.85*E,.2*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.5*z,.85*E,.6*z,.65*E,.6*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*z,.35*E,.4*z,.15*E,.4*z).close()),ot}),go.Shape.defineFigureGenerator("Help",function(lt,E,z){var ot=new go.Geometry,it=.5,at=pt*.5,ut=.5,wt=.5,Et=new go.PathFigure((ut-it)*E,wt*z,!1);ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt-it)*z,(ut-it)*E,(wt-at)*z,(ut-at)*E,(wt-it)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut+it)*E,wt*z,(ut+at)*E,(wt-it)*z,(ut+it)*E,(wt-at)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+it)*z,(ut+it)*E,(wt+at)*z,(ut+at)*E,(wt+it)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut-it)*E,wt*z,(ut-at)*E,(wt+it)*z,(ut-it)*E,(wt+at)*z).close()),it=.05,at=pt*.05,ut=.5,wt=.8;var At=new go.PathFigure((ut-it)*E,wt*z,!1);return ot.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt-it)*z,(ut-it)*E,(wt-at)*z,(ut-at)*E,(wt-it)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,(ut+it)*E,wt*z,(ut+at)*E,(wt-it)*z,(ut+it)*E,(wt-at)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+it)*z,(ut+it)*E,(wt+at)*z,(ut+at)*E,(wt+it)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,(ut-it)*E,wt*z,(ut-at)*E,(wt+it)*z,(ut-it)*E,(wt+at)*z).close()),At.add(new go.PathSegment(go.PathSegment.Move,.5*E,.7*z)),At.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*z,.75*E,.475*z,.75*E,.225*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.35*z,.4*E,.2*z,.3*E,.25*z)),ot}),go.Shape.defineFigureGenerator("Location",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(.5*E,z,!0).add(new go.PathSegment(go.PathSegment.Line,.75*E,.5*z)).add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,.975*E,.025*z,.5*E,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*E,.5*z,.5*E,0,.025*E,.025*z).close()).add(new go.PathSegment(go.PathSegment.Move,.5*E,.2*z)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*E,.3*z,.1*E,.1*z).close()))}),go.Shape.defineFigureGenerator("Lock",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.5*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.5*z));var at=new go.PathFigure(.2*E,.5*z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Move,.2*E,.5*z)),at.add(new go.PathSegment(go.PathSegment.Line,.2*E,.3*z)),at.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.3*z,.25*E,0,.75*E,0)),at.add(new go.PathSegment(go.PathSegment.Line,.8*E,.5*z)),at.add(new go.PathSegment(go.PathSegment.Line,.8*E,.3*z)),ot}),go.Shape.defineFigureGenerator("Unlocked",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.5*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.5*z));var at=new go.PathFigure(.2*E,.5*z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Move,.2*E,.5*z)),at.add(new go.PathSegment(go.PathSegment.Line,.2*E,.3*z)),at.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.3*z,.25*E,0,.75*E,0)),at.add(new go.PathSegment(go.PathSegment.Line,.8*E,.35*z)),ot}),go.Shape.defineFigureGenerator("Gear",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(.9375*E,.56246875*z,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*E,.4375*z)).add(new go.PathSegment(go.PathSegment.Line,.80621875*E,.4375*z)).add(new go.PathSegment(go.PathSegment.Bezier,.763*E,.3316875*z,.79840625*E,.39915625*z,.7834375*E,.3635*z)).add(new go.PathSegment(go.PathSegment.Line,.8566875*E,.23796875*z)).add(new go.PathSegment(go.PathSegment.Line,.76825*E,.14959375*z)).add(new go.PathSegment(go.PathSegment.Line,.67596875*E,.24184375*z)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*E,.19378125*z,.64228125*E,.2188125*z,.603875*E,.2021875*z)).add(new go.PathSegment(go.PathSegment.Line,.5625*E,.0625*z)).add(new go.PathSegment(go.PathSegment.Line,.4375*E,.0625*z)).add(new go.PathSegment(go.PathSegment.Line,.4375*E,.19378125*z)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*E,.239375*z,.39759375*E,.20190625*z,.36053125*E,.2176875*z)).add(new go.PathSegment(go.PathSegment.Line,.2379375*E,.14959375*z)).add(new go.PathSegment(go.PathSegment.Line,.14953125*E,.2379375*z)).add(new go.PathSegment(go.PathSegment.Line,.23934375*E,.3278125*z)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*E,.4375*z,.21765625*E,.36059375*z,.201875*E,.397625*z)).add(new go.PathSegment(go.PathSegment.Line,.0625*E,.4375*z)).add(new go.PathSegment(go.PathSegment.Line,.0625*E,.5625*z)).add(new go.PathSegment(go.PathSegment.Line,.1938125*E,.5625*z)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*E,.67596875*z,.20221875*E,.603875*z,.21884375*E,.64228125*z)).add(new go.PathSegment(go.PathSegment.Line,.1495625*E,.76825*z)).add(new go.PathSegment(go.PathSegment.Line,.238*E,.8566875*z)).add(new go.PathSegment(go.PathSegment.Line,.3316875*E,.76296875*z)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*E,.80621875*z,.36353125*E,.78340625*z,.3991875*E,.79840625*z)).add(new go.PathSegment(go.PathSegment.Line,.43753125*E,.9375*z)).add(new go.PathSegment(go.PathSegment.Line,.5625*E,.9375*z)).add(new go.PathSegment(go.PathSegment.Line,.5625*E,.80621875*z)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*E,.760625*z,.602375*E,.79809375*z,.63946875*E,.78234375*z)).add(new go.PathSegment(go.PathSegment.Line,.76828125*E,.8566875*z)).add(new go.PathSegment(go.PathSegment.Line,.85671875*E,.76825*z)).add(new go.PathSegment(go.PathSegment.Line,.76065625*E,.67221875*z)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*E,.56246875*z,.78234375*E,.63940625*z,.798125*E,.602375*z)).add(new go.PathSegment(go.PathSegment.Line,.9375*E,.56246875*z).close()).add(new go.PathSegment(go.PathSegment.Move,.5*E,.6*z)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*E,.5*z,.1*E,.1*z).close()))}),go.Shape.defineFigureGenerator("Hand",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.5*z,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,.3*z,0,.375*z,.05*E,.325*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.45*E,.075*z,.3*E,.225*z,.4*E,.175*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.525*E,.075*z,.46*E,.05*z,.525*E,.05*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.4*z,.525*E,.275*z,.475*E,.325*z)),it.add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,.55*z,E,.4*z,E,.55*z)),it.add(new go.PathSegment(go.PathSegment.Line,.425*E,.55*z)),it.add(new go.PathSegment(go.PathSegment.Line,.6*E,.55*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.6*E,.7*z,.675*E,.55*z,.675*E,.7*z)),it.add(new go.PathSegment(go.PathSegment.Line,.4*E,.7*z)),it.add(new go.PathSegment(go.PathSegment.Line,.575*E,.7*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.575*E,.85*z,.65*E,.7*z,.65*E,.85*z)),it.add(new go.PathSegment(go.PathSegment.Line,.4*E,.85*z)),it.add(new go.PathSegment(go.PathSegment.Line,.525*E,.85*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.535*E,z,.61*E,.85*z,.61*E,z)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*z,.435*E,z,0,z).close()),ot}),go.Shape.defineFigureGenerator("Map",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.2*z,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.25*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.2*z)),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.2*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.25*E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z).close()),it.add(new go.PathSegment(go.PathSegment.Move,.25*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.25*E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Move,.5*E,.2*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),it.add(new go.PathSegment(go.PathSegment.Move,.75*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,.8*z)),ot}),go.Shape.defineFigureGenerator("Eject",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z*.7)),it.add(new go.PathSegment(go.PathSegment.Line,0,z*.7).close());var at=new go.PathFigure(0,z*.6,!0);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,.6*z)),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,0).close()),ot}),go.Shape.defineFigureGenerator("Pencil",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*E,.1*z)).add(new go.PathSegment(go.PathSegment.Line,E,.9*z)).add(new go.PathSegment(go.PathSegment.Line,.9*E,z)).add(new go.PathSegment(go.PathSegment.Line,.1*E,.2*z).close()))}),go.Shape.defineFigureGenerator("Building",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E*1,z*1,!1);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,0,z*.85)),it.add(new go.PathSegment(go.PathSegment.Line,.046*E,z*.85)),it.add(new go.PathSegment(go.PathSegment.Line,.046*E,z*.45)),it.add(new go.PathSegment(go.PathSegment.Line,0,z*.45)),it.add(new go.PathSegment(go.PathSegment.Line,0,z*.3)),it.add(new go.PathSegment(go.PathSegment.Line,.046*E,z*.3)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z*0)),it.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*E,z*.3)),it.add(new go.PathSegment(go.PathSegment.Line,E,z*.3)),it.add(new go.PathSegment(go.PathSegment.Line,E,z*.45)),it.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*E,z*.45)),it.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*E,z*.85)),it.add(new go.PathSegment(go.PathSegment.Line,E,z*.85).close());var at=new go.PathFigure(.126*E,.85*z,!1);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.126*E,.45*z)),at.add(new go.PathSegment(go.PathSegment.Line,.322*E,.45*z)),at.add(new go.PathSegment(go.PathSegment.Line,.322*E,.85*z).close());var ut=new go.PathFigure(.402*E,.85*z,!1);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.402*E,.45*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.598*E,.45*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.598*E,.85*z).close());var wt=new go.PathFigure(.678*E,.85*z,!1);ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.678*E,.45*z)),wt.add(new go.PathSegment(go.PathSegment.Line,.874*E,.45*z)),wt.add(new go.PathSegment(go.PathSegment.Line,.874*E,.85*z).close());var Et=new go.PathFigure(.5*E,.1*z,!1);return ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*E,.3*z)),Et.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*E,.3*z).close()),ot}),go.Shape.defineFigureGenerator("Staircase",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,z*1,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E*.2,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*.2,z*.8)),it.add(new go.PathSegment(go.PathSegment.Line,E*.4,z*.8)),it.add(new go.PathSegment(go.PathSegment.Line,E*.4,z*.6)),it.add(new go.PathSegment(go.PathSegment.Line,E*.6,z*.6)),it.add(new go.PathSegment(go.PathSegment.Line,E*.6,z*.4)),it.add(new go.PathSegment(go.PathSegment.Line,E*.8,z*.4)),it.add(new go.PathSegment(go.PathSegment.Line,E*.8,z*.2)),it.add(new go.PathSegment(go.PathSegment.Line,E*1,z*.2)),it.add(new go.PathSegment(go.PathSegment.Line,E*1,z*.15)),it.add(new go.PathSegment(go.PathSegment.Line,E*.75,z*.15)),it.add(new go.PathSegment(go.PathSegment.Line,E*.75,z*.35)),it.add(new go.PathSegment(go.PathSegment.Line,E*.55,z*.35)),it.add(new go.PathSegment(go.PathSegment.Line,E*.55,z*.55)),it.add(new go.PathSegment(go.PathSegment.Line,E*.35,z*.55)),it.add(new go.PathSegment(go.PathSegment.Line,E*.35,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.15,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.15,z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,0,z*.95).close()),ot}),go.Shape.defineFigureGenerator("5Bars",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,z*1,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E*.184,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*.184,z*(1-.184)).close());var at=new go.PathFigure(E*.204,z,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E*.204,z*(1-.184))),at.add(new go.PathSegment(go.PathSegment.Line,E*.388,z*(1-.184*2))),at.add(new go.PathSegment(go.PathSegment.Line,E*.388,z*1).close());var ut=new go.PathFigure(E*.408,z,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E*.408,z*(1-.184*2))),ut.add(new go.PathSegment(go.PathSegment.Line,E*.592,z*(1-.184*3))),ut.add(new go.PathSegment(go.PathSegment.Line,E*.592,z*1).close());var wt=new go.PathFigure(E*.612,z,!0);ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,E*.612,z*(1-.184*3))),wt.add(new go.PathSegment(go.PathSegment.Line,E*.796,z*(1-.184*4))),wt.add(new go.PathSegment(go.PathSegment.Line,E*.796,z*1).close());var Et=new go.PathFigure(E*.816,z,!0);return ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,E*.816,z*(1-.184*4))),Et.add(new go.PathSegment(go.PathSegment.Line,E*1,z*(1-.184*5))),Et.add(new go.PathSegment(go.PathSegment.Line,E*1,z*1).close()),ot}),go.Shape.defineFigureGenerator("PC",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*.3,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*.3,0).close());var at=new go.PathFigure(E*.055,.07*z,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E*.245,z*.07)),at.add(new go.PathSegment(go.PathSegment.Line,E*.245,z*.1)),at.add(new go.PathSegment(go.PathSegment.Line,E*.055,z*.1).close());var ut=new go.PathFigure(E*.055,.13*z,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E*.245,z*.13)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.245,z*.16)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.055,z*.16).close());var wt=new go.PathFigure(E*.055,.18*z,!0);ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,E*.245,z*.18)),wt.add(new go.PathSegment(go.PathSegment.Line,E*.245,z*.21)),wt.add(new go.PathSegment(go.PathSegment.Line,E*.055,z*.21).close());var Et=new go.PathFigure(E*1,0,!0);return ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,E*.4,0)),Et.add(new go.PathSegment(go.PathSegment.Line,E*.4,z*.65)),Et.add(new go.PathSegment(go.PathSegment.Line,E*1,z*.65).close()),ot}),go.Shape.defineFigureGenerator("Plane",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.55*E,z,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*z)),it.add(new go.PathSegment(go.PathSegment.Line,.4*E,.7*z)),it.add(new go.PathSegment(go.PathSegment.Line,.1*E,.475*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.35*E,.525*z,0,.4*z,.225*E,.45*z)),it.add(new go.PathSegment(go.PathSegment.Line,.4*E,.475*z)),it.add(new go.PathSegment(go.PathSegment.Line,.15*E,.35*z)),it.add(new go.PathSegment(go.PathSegment.Line,.2*E,.325*z)),it.add(new go.PathSegment(go.PathSegment.Line,.6*E,.325*z)),it.add(new go.PathSegment(go.PathSegment.Line,.85*E,.1*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,.2*z,.975*E,0,E,.08*z)),it.add(new go.PathSegment(go.PathSegment.Line,.7*E,.45*z)),it.add(new go.PathSegment(go.PathSegment.Line,.6*E,.95*z)),it.add(new go.PathSegment(go.PathSegment.Line,.55*E,z).close()),ot}),go.Shape.defineFigureGenerator("Key",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E*1,z*.5,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E*.9,.4*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.5,.4*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.5,.35*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.45,.35*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.3,.2*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.15,.2*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.35*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.65*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.15,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.3,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.45,.65*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.5,.65*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.5,.6*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.6,.6*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.65,.55*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.7,.6*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.75,.55*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.8,.6*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.85,.575*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.9,.6*z).close()),it.add(new go.PathSegment(go.PathSegment.Move,.17*E,.425*z)),it.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*E,.5*z,.075*E,.075*z).close()),ot}),go.Shape.defineFigureGenerator("FilmTape",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!1);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Arc,270,180,E*0,E*.3,E*.055)),it.add(new go.PathSegment(go.PathSegment.Line,0,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*.08,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*.08,z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*1),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*1),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*2),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*2),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*3),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*3),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*4),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*4),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*5),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*5),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*6),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*6),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*7),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*7),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*8),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*8),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*9),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*9),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*10),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*10),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*11),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*11),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*12),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*12),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*13),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*13),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*14),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*14),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*15),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*15),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*1,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*1,z*1));var at=new go.PathFigure(0,0,!1);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E*1,z*0)),at.add(new go.PathSegment(go.PathSegment.Arc,270,-180,E*1,E*.3,E*.055)),at.add(new go.PathSegment(go.PathSegment.Line,E*1,z*1));var ut=new go.PathFigure(E*.11,z*.1,!1);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*1+.028*0),z*.1)),ut.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*1+.028*0),z*.8)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.11,z*.8).close());var wt=new go.PathFigure(E*(.11+.24133333*1+.028*1),z*.1,!1);ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*2+.028*1),z*.1)),wt.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*2+.028*1),z*.8)),wt.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*1+.028*1),z*.8).close());var Et=new go.PathFigure(E*(.11+.24133333*2+.028*2),z*.1,!1);return ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*3+.028*2),z*.1)),Et.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*3+.028*2),z*.8)),Et.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*2+.028*2),z*.8).close()),ot}),go.Shape.defineFigureGenerator("FloppyDisk",function(lt,E,z){var ot=new go.Geometry,it=8,at=it*pt,ut=new go.PathFigure(it,0,!1);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E*.86,0)),ut.add(new go.PathSegment(go.PathSegment.Line,E*1,z*.14)),ut.add(new go.PathSegment(go.PathSegment.Line,E,z-it)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E-it,z,E,z-at,E-at,z)),ut.add(new go.PathSegment(go.PathSegment.Line,it,z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,z-it,at,z,0,z-at)),ut.add(new go.PathSegment(go.PathSegment.Line,0,it)),ut.add(new go.PathSegment(go.PathSegment.Bezier,it,0,0,at,at,0).close());var wt=new go.PathFigure(E*.83,0,!1);ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,E*.83,z*.3)),wt.add(new go.PathSegment(go.PathSegment.Line,E*.17,z*.3)),wt.add(new go.PathSegment(go.PathSegment.Line,E*.17,z*0).close());var Et=new go.PathFigure(E*.83,z*1,!1);ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,E*.83,z*.5)),Et.add(new go.PathSegment(go.PathSegment.Line,E*.17,z*.5)),Et.add(new go.PathSegment(go.PathSegment.Line,E*.17,z*1).close());var At=new go.PathFigure(E*.78,z*.05,!1);return ot.add(At),At.add(new go.PathSegment(go.PathSegment.Line,E*.66,z*.05)),At.add(new go.PathSegment(go.PathSegment.Line,E*.66,z*.25)),At.add(new go.PathSegment(go.PathSegment.Line,E*.78,z*.25).close()),ot}),go.Shape.defineFigureGenerator("SpeechBubble",function(lt,E,z){var ot=lt?lt.parameter1:NaN;(isNaN(ot)||ot<0)&&(ot=15),ot=Math.min(ot,E/3),ot=Math.min(ot,z/3);var it=ot*pt,at=z*.8,ut=new go.Geometry,wt=new go.PathFigure(ot,0,!0);return ut.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,E-ot,0)),wt.add(new go.PathSegment(go.PathSegment.Bezier,E,ot,E-it,0,E,it)),wt.add(new go.PathSegment(go.PathSegment.Line,E,at-ot)),wt.add(new go.PathSegment(go.PathSegment.Bezier,E-ot,at,E,at-it,E-it,at)),wt.add(new go.PathSegment(go.PathSegment.Line,E*.7,at)),wt.add(new go.PathSegment(go.PathSegment.Line,E*.7,z)),wt.add(new go.PathSegment(go.PathSegment.Line,E*.55,at)),wt.add(new go.PathSegment(go.PathSegment.Line,ot,at)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,at-ot,it,at,0,at-it)),wt.add(new go.PathSegment(go.PathSegment.Line,0,ot)),wt.add(new go.PathSegment(go.PathSegment.Bezier,ot,0,0,it,it,0).close()),it>1?(ut.spot1=new go.Spot(0,0,it,it),ut.spot2=new go.Spot(1,.8,-it,-it)):(ut.spot1=go.Spot.TopLeft,ut.spot2=new go.Spot(1,.8)),ut}),go.Shape.defineFigureGenerator("Repeat",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E*0,z*.45,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E*.25,z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*.5,z*.45)),it.add(new go.PathSegment(go.PathSegment.Line,E*.3,z*.45)),it.add(new go.PathSegment(go.PathSegment.Line,E*.3,z*.9)),it.add(new go.PathSegment(go.PathSegment.Line,E*.6,z*.9)),it.add(new go.PathSegment(go.PathSegment.Line,E*.65,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*.2,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*.2,z*.45).close());var at=new go.PathFigure(E*1,z*.55,!0);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E*.75,z*1)),at.add(new go.PathSegment(go.PathSegment.Line,E*.5,z*.55)),at.add(new go.PathSegment(go.PathSegment.Line,E*.7,z*.55)),at.add(new go.PathSegment(go.PathSegment.Line,E*.7,z*.1)),at.add(new go.PathSegment(go.PathSegment.Line,E*.4,z*.1)),at.add(new go.PathSegment(go.PathSegment.Line,E*.35,z*0)),at.add(new go.PathSegment(go.PathSegment.Line,E*.8,z*0)),at.add(new go.PathSegment(go.PathSegment.Line,E*.8,z*.55).close()),ot}),go.Shape.defineFigureGenerator("Windows",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,z)).add(new go.PathSegment(go.PathSegment.Line,0,z).close()).add(new go.PathSegment(go.PathSegment.Move,.4*E,.4*z)).add(new go.PathSegment(go.PathSegment.Line,.4*E,.8*z)).add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*z)).add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*z).close()).add(new go.PathSegment(go.PathSegment.Move,.2*E,.1*z)).add(new go.PathSegment(go.PathSegment.Line,.2*E,.6*z)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.6*z)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.1*z).close()).add(new go.PathSegment(go.PathSegment.Move,.1*E,.6*z)).add(new go.PathSegment(go.PathSegment.Line,.1*E,.9*z)).add(new go.PathSegment(go.PathSegment.Line,.5*E,.9*z)).add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*z).close()))}),go.Shape.defineFigureGenerator("Terminal",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E*0,z*.1,!1);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E*1,z*.1)),it.add(new go.PathSegment(go.PathSegment.Line,E*1,z*.9)),it.add(new go.PathSegment(go.PathSegment.Line,E*0,z*.9).close());var at=new go.PathFigure(E*.1,z*.2,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E*.1,z*.25)),at.add(new go.PathSegment(go.PathSegment.Line,E*.22,z*.285)),at.add(new go.PathSegment(go.PathSegment.Line,E*.1,z*.32)),at.add(new go.PathSegment(go.PathSegment.Line,E*.1,z*.37)),at.add(new go.PathSegment(go.PathSegment.Line,E*.275,z*.32)),at.add(new go.PathSegment(go.PathSegment.Line,E*.275,z*.25).close());var ut=new go.PathFigure(E*.28,z*.37,!0);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E*.45,z*.37)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.45,z*.41)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.28,z*.41).close()),ot}),go.Shape.defineFigureGenerator("Beaker",function(lt,E,z){var ot=new go.Geometry,it=15,at=it*pt,ut=new go.PathFigure(E*.62,z*.475,!0);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E,z-it)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E-it,z,E,z-at,E-at,z)),ut.add(new go.PathSegment(go.PathSegment.Line,it,z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,z-it,at,z,0,z-at)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.38,z*.475)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.38,z*.03)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.36,z*0)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.64,z*0)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.62,z*.03).close()),at>1?(ot.spot1=new go.Spot(0,0,at,at),ot.spot2=new go.Spot(1,1,-at,-at)):(ot.spot1=go.Spot.TopLeft,ot.spot2=go.Spot.BottomRight),ot}),go.Shape.defineFigureGenerator("Download",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E*0,z*1,!0);ot.add(it);var at=.1/.3;it.add(new go.PathSegment(go.PathSegment.Line,E*1,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*1,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*.8,z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*.66,z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*.66,z*.055)),it.add(new go.PathSegment(go.PathSegment.Line,E*.755,z*.055)),it.add(new go.PathSegment(go.PathSegment.Line,E*.93,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*.64,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*.61,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.5,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.39,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.36,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*.07,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*(1-.755),z*.055)),it.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),z*.055)),it.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*(1-.8),z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*0,z*(1-at)).close());var ut=new go.PathFigure(E*.4,z*0,!0);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E*.4,z*.44)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.26,z*.44)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.5,z*.66)),ut.add(new go.PathSegment(go.PathSegment.Line,E*(1-.26),z*.44)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.6,z*.44)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.6,z*0).close()),ot}),go.Shape.defineFigureGenerator("Bin",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E*0,z*1,!0);ot.add(it);var at=.1/.3;return it.add(new go.PathSegment(go.PathSegment.Line,E*1,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*1,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*.8,z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*.66,z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*.66,z*.055)),it.add(new go.PathSegment(go.PathSegment.Line,E*.755,z*.055)),it.add(new go.PathSegment(go.PathSegment.Line,E*.93,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*.64,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*.61,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.5,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.39,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.36,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*.07,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*(1-.755),z*.055)),it.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),z*.055)),it.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*(1-.8),z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*0,z*(1-at)).close()),ot}),go.Shape.defineFigureGenerator("Upload",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E*0,z*1,!0);ot.add(it);var at=.1/.3;it.add(new go.PathSegment(go.PathSegment.Line,E*1,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*1,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*.8,z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*.66,z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*.66,z*.055)),it.add(new go.PathSegment(go.PathSegment.Line,E*.755,z*.055)),it.add(new go.PathSegment(go.PathSegment.Line,E*.93,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*.64,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*.61,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.5,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.39,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.36,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*.07,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*(1-.755),z*.055)),it.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),z*.055)),it.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*(1-.8),z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*0,z*(1-at)).close());var ut=new go.PathFigure(E*.5,z*0,!0);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E*.26,z*.25)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.4,z*.25)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.4,z*.63)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.6,z*.63)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.6,z*.25)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.74,z*.25).close()),ot}),go.Shape.defineFigureGenerator("EmptyDrink",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E*.15,z*0,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E*.85,z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*.7,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*.3,z*1).close()),ot}),go.Shape.defineFigureGenerator("Drink",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E*.15,z*0,!1);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E*.85,z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*.7,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*.3,z*1).close());var at=new go.PathFigure(E*.235,z*.28,!0);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E*.765,z*.28)),at.add(new go.PathSegment(go.PathSegment.Line,E*.655,z*.97)),at.add(new go.PathSegment(go.PathSegment.Line,E*.345,z*.97).close()),ot}),go.Shape.defineFigureGenerator("4Arrows",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E*.5,z*0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E*.65,z*.25)),it.add(new go.PathSegment(go.PathSegment.Line,E*.55,z*.25)),it.add(new go.PathSegment(go.PathSegment.Line,E*.55,z*.45)),it.add(new go.PathSegment(go.PathSegment.Line,E*.75,z*.45)),it.add(new go.PathSegment(go.PathSegment.Line,E*.75,z*.35)),it.add(new go.PathSegment(go.PathSegment.Line,E*1,z*.5)),it.add(new go.PathSegment(go.PathSegment.Line,E*.75,z*.65)),it.add(new go.PathSegment(go.PathSegment.Line,E*.75,z*.55)),it.add(new go.PathSegment(go.PathSegment.Line,E*.55,z*.55)),it.add(new go.PathSegment(go.PathSegment.Line,E*.55,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.65,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.5,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*.35,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.45,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.45,z*.55)),it.add(new go.PathSegment(go.PathSegment.Line,E*.25,z*.55)),it.add(new go.PathSegment(go.PathSegment.Line,E*.25,z*.65)),it.add(new go.PathSegment(go.PathSegment.Line,E*0,z*.5)),it.add(new go.PathSegment(go.PathSegment.Line,E*.25,z*.35)),it.add(new go.PathSegment(go.PathSegment.Line,E*.25,z*.45)),it.add(new go.PathSegment(go.PathSegment.Line,E*.45,z*.45)),it.add(new go.PathSegment(go.PathSegment.Line,E*.45,z*.25)),it.add(new go.PathSegment(go.PathSegment.Line,E*.35,z*.25).close()),ot}),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")},80727: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 tn={},Ke="5.0",Rt={},Ft=null,ie=!1,rt=!1,kt=null,Ct=!1,St=null,pt=null,vt=0;vt4?parseFloat(me):5};tn.setHTML5Codebase=function(me,fe){pt=me,we(me,fe)},tn.setJavaCodebase=tn.setJavaCodebaseVersion=tn.isCompiledInstalled=tn.setPreCompiledScriptPath=tn.setPreCompiledResourcePath=function(){},tn.setHTML5CodebaseVersion=function(me,fe){var pe=parseFloat(me);if(pe!==NaN&&pe<5){console.log("The GeoGebra HTML5 codebase version "+pe+" is deprecated. Using version latest instead.");return}St=me,re(me,fe)},tn.getHTML5CodebaseVersion=function(){return lt},tn.getParameters=function(){return Rt},tn.setFontsCSSURL=function(me){ut=me},tn.setGiacJSURL=function(me){},tn.setJNLPFile=function(me){xt=me},tn.setJNLPBaseDir=function(me){},tn.inject=function(){function me(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var fe="auto",pe=Rt.id,_e,je=!1,He=0;He=5)return!0;var me=tn.getAppletObject();return me&&typeof me.recalculateEnvironments=="function"?(me.recalculateEnvironments(),!0):!1},tn.startAnimation=function(){var me=tn.getAppletObject();return me&&typeof me.startAnimation=="function"?(me.startAnimation(),!0):!1},tn.stopAnimation=function(){var me=tn.getAppletObject();return me&&typeof me.stopAnimation=="function"?(me.stopAnimation(),!0):!1},tn.getAppletObject=function(){var me=Rt.id!==void 0?Rt.id:"ggbApplet";return window[me]},tn.resize=function(){};var It=function(me,fe,pe){var _e=document.createElement("param");_e.setAttribute("name",fe),_e.setAttribute("value",pe),me.appendChild(_e)},Ut=function(me){return me&&me!=="false"},Xt=function(me,fe,pe){Et(lt)<=4.2&&(pe=!0);var _e=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==lt||ggbHTML5LoadedCodebaseIsWebSimple&&!z)&&(_e=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var je=document.createElement("div");je.classList.add("appletParameters","notranslate");var He=fe.width,Se=fe.height;if(fe.disableAutoScale=fe.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():fe.disableAutoScale,fe.width!==void 0)if(Et(lt)<=4.4)Ut(fe.showToolBar)&&(fe.height-=7),Ut(fe.showAlgebraInput)&&(fe.height-=37),fe.width<605&&Ut(fe.showToolBar)&&(fe.width=605,He=605);else{var xe=100;(Ut(fe.showToolBar)||Ut(fe.showMenuBar))&&(fe.hasOwnProperty("customToolBar")&&(fe.customToolbar=fe.customToolBar),xe=Ut(fe.showMenuBar)?245:155),He=5?(fe.appletOnLoad=function(Bt){var te=me.querySelector(".ggb_preview");te&&te.parentNode.removeChild(te),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(se),window.GGBT_wsf_view&&$(window).trigger("resize"),Ne(Bt)},Ae||se.appendChild(Xe)):je.appendChild(Xe),se.appendChild(je),Ae||me.appendChild(se),setTimeout(function(){tn.resize()},1)}else{var Be=document.createElement("div");Be.className="applet_scaler",Be.style.position="relative",Be.style.display="block",Be.appendChild(je),me.appendChild(Be),fe.appletOnLoad=function(Bt){tn.resize(),Ne(Bt)}}function Te(Bt,te){te&&typeof te.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Bt,te.appletOnLoad):renderGGBElement(Bt),Me("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",te)}function ue(Bt,te){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Bt,params:te}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(ge){Te(ge.article,ge.params)}),html5AppletsToProcess=null)},Et(lt)<5&&(Bt.className+=" geogebraweb")):Te(Bt,te)}if(_e){scriptLoadStarted=!0;for(var $t=0;$t0?(le.remove(),se.attr("id","fullscreencontent").show(),jQuery(Ne).append(se),window.dispatchEvent(new Event("resize"))):Xt(le,fe,!1),window.GGBT_wsf_view.launchFullScreen(Ne)}else ct=_e,Xt(me,fe,!1);if(!window.GGBT_wsf_view)for(Se=0;Seme/4*3&&(le=me/4*3),Ne=le/5.8,xe.setAttribute("src",it),xe.setAttribute("width",le),xe.setAttribute("height",Ne);var se=(me-le)/2,Ae=(fe-Ne)/2;xe.style.left=se+"px",xe.style.top=Ae+"px",je.appendChild(xe)}}return je.appendChild(Se),je},ve=function(me){return me=me.toLowerCase(),me==="html5"||me==="screenshot"?me:"html5"},Kt=["web","webSimple","web3d","tablet","tablet3d","phone"],re=function(me,fe){if(lt=me,fe){we(lt,!0);return}var pe=!ie;if(pe){var _e=Et(lt);!isNaN(_e)&&_e<4.4&&(pe=!1)}var je,He;window.location.protocol.substr(0,4)==="http"?je=window.location.protocol:je="http:";var Se=lt.indexOf("//");Se>0?He=lt:Se===0?He=je+lt:He="https://www.geogebra.org/apps/5.2.814.0/";for(var xe in Kt)if(lt.slice(Kt[xe].length*-1)===Kt[xe]||lt.slice((Kt[xe].length+1)*-1)===Kt[xe]+"/"){we(He,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&pe&&!Ft.is3D&&!Ft.AV&&!Ft.SV&&!Ft.CV&&!Ft.EV2&&!Ft.CP&&!Ft.PC&&!Ft.DA&&!Ft.FI&&!Ft.PV&&!Ut(Rt.showToolBar)&&!Ut(Rt.showMenuBar)&&!Ut(Rt.showAlgebraInput)&&!Ut(Rt.enableRightClick)&&(!Rt.appName||Rt.appName=="classic")?He+="webSimple/":He+="web3d/",we(He,!1)},we=function(me,fe){if(me.requirejs){dt=me;return}me.slice(-1)!=="/"&&(me+="/"),dt=me,fe===null&&(fe=me.indexOf("http")===-1),ft=fe,E="web.nocache.js",z=!1;var pe=dt.split("/");pe.length>1&&(!fe&&pe[pe.length-2]==="webSimple"?(E="webSimple.nocache.js",z=!0):Kt.indexOf(pe[pe.length-2])>=0&&(E=pe[pe.length-2]+".nocache.js")),pe=me.split("/"),lt=pe[pe.length-3],lt.substr(0,4)==="test"?lt=lt.substr(4,1)+"."+lt.substr(5,1):(lt.substr(0,3)==="war"||lt.substr(0,4)==="beta")&&(lt="5.0");var _e=parseFloat(lt);_e!==NaN&&_e<5&&me.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+_e+" is deprecated. Using version latest instead."),re("5.0",fe))},Me=function(me,fe){window.console&&window.console.log&&(!fe||typeof fe.showLogging=="undefined"||fe.showLogging&&fe.showLogging!=="false")&&console.log(me)};Rt.material_id!==void 0?Mt(ke):ke();function ke(){var me=Ke;St!==null?me=St:parseFloat(me)<5&&(me="5.0"),re(me,!1),pt!==null&&we(pt,ft),Ct=!0}return tn},GGBAppletUtils=function(){"use strict";function tn(){return window.GGBT_wsf_edit!==void 0}function Ke(Ct,St){St!=1?(Ct.style.transformOrigin="0% 0% 0px",Ct.style.webkitTransformOrigin="0% 0% 0px",Ct.style.transform="scale("+St+","+St+")",Ct.style.webkitTransform="scale("+St+","+St+")",Ct.style.maxWidth="initial",Ct.querySelector(".ggb_preview")!==null&&(Ct.querySelector(".ggb_preview").style.maxWidth="initial"),Ct.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Ct.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Ct.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Ct.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Ct.style.transform="none",Ct.style.webkitTransform="none")}function Rt(Ct,St,pt,vt,yt,xt){var dt=null;if(xt!=null&&xt!="")for(var ft=Ct.parentNode;ft!=null;)if((" "+ft.className+" ").indexOf(" "+xt+" ")>-1){dt=ft;break}else ft=ft.parentNode;var ct=0,lt=0,E=0,z=0,ot=0,it=0,at=0;if(dt)ct=dt.offsetWidth,lt=Math.max(vt?dt.offsetWidth:0,dt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(ct=Math.min(window.innerWidth,document.documentElement.clientWidth),lt=Math.min(window.innerHeight,document.documentElement.clientHeight),E=ct):(ct=window.innerWidth,lt=window.innerHeight,E=window.innerWidth),Ct){var ut=Ct.getBoundingClientRect();ut.left>0&&ut.left<=ct&&(yt===void 0||!yt)&&(document.dir==="rtl"?(ot=ct-ut.width-ut.left,it=E<=480?10:30):(it=ut.left,ot=E<=480?10:30),z=it+ot)}if(Ct&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var wt=Ct.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(z=40,at=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(z=0,at=40)}}return Ct&&((pt===void 0||!pt)&&St>0&&St+z1&&(xt=!0)),St&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(xt=!0),!(Ct.hasOwnProperty("disableAutoScale")&&Ct.disableAutoScale))yt=Ft(Ct,St,xt,pt,Ct.scaleContainerClass);else return vt;return xt&&(!Ct.hasOwnProperty("scale")||vt===1)?yt:Math.min(vt,yt)}function rt(Ct){var St=Math.min(window.innerWidth,document.documentElement.clientWidth),pt=Math.min(window.innerHeight,document.documentElement.clientHeight),vt=Ct.getBoundingClientRect(),yt=(St-vt.width)/2,xt=(pt-vt.height)/2;xt<0&&(xt=0),Ct.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(yt<40?Ct.style.left="40px":Ct.style.left=yt+"px",Ct.style.top=xt+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(xt<40?Ct.style.top="40px":Ct.style.top=xt+"px",Ct.style.left=yt+"px")}function kt(Ct,St){var pt=Ct.querySelector(".appletParameters");if(pt){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(St.id!==pt.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Ct)}if(pt.parentElement&&/fullscreen/.test(pt.parentElement.className))return;var vt=ie(St,Ct);tn()&&pt.setAttribute("data-param-scale",vt);for(var yt=null,xt=0;xt=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(tn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(tn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(tn){var Ke=c[tn];return Ke==null?null:Ke},r=d,webModule.__errFn=e}function B(){function tn(Ct){var St=Ct.lastIndexOf(rb);St==-1&&(St=Ct.length);var pt=Ct.indexOf(sb);pt==-1&&(pt=Ct.length);var vt=Ct.lastIndexOf(tb,Math.min(pt,St));return vt>=O?Ct.substring(O,vt+P):W}function Ke(Ct){if(!Ct.match(/^\w+:\/\//)){var St=o.createElement(ub);St.src=Ct+vb,Ct=tn(St.src)}return Ct}function Rt(){var Ct=__gwt_getMetaProperty(wb);return Ct!=null?Ct:W}function Ft(){for(var Ct=o.getElementsByTagName(_),St=O;StO?Ct[Ct.length-P].href:W}function rt(){var Ct=o.location;return Ct.href==Ct.protocol+zb+Ct.host+Ct.pathname+Ct.search+Ct.hash}var kt=Rt();return kt==W&&(kt=Ft()),kt==W&&(kt=ie()),kt==W&&rt()&&(kt=tn(o.location.href)),kt=Ke(kt),kt}function C(tn){return tn.match(/^\//)||tn.match(/^[a-zA-Z]+:\/\//)?tn:webModule.__moduleBase+tn}function D(){var tn=[],Ke=O,Rt=[],Ft=[];function ie(Ct){var St=Ft[Ct](),pt=Rt[Ct];if(St in pt)return St;var vt=[];for(var yt in pt)vt[pt[yt]]=yt;throw r&&r(Ct,vt,St),null}if(__gwt_isKnownPropertyValue=function(Ct,St){return St in Rt[Ct]},webModule.__getPropMap=function(){var Ct={};for(var St in Rt)Rt.hasOwnProperty(St)&&(Ct[St]=ie(St));return Ct},webModule.__computePropValue=ie,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var rt;try{rt=Cb;var kt=rt.indexOf(Db);kt!=-1&&(Ke=parseInt(rt.substring(kt+P),$),rt=rt.substring(O,kt))}catch(Ct){}return webModule.__softPermutationId=Ke,C(rt+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})()},77903:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Ax:function(){return kt},Ds:function(){return Ct},KI:function(){return pt},SI:function(){return rt},f1:function(){return ie}});var Ft=Rt(3294);function ie(vt){let yt=!0;if(vt.length>0){for(let xt=0;xtyt in vt?rt(vt,yt,{enumerable:!0,configurable:!0,writable:!0,value:xt}):vt[yt]=xt,Ct=(vt,yt,xt)=>kt(vt,typeof yt!="symbol"?yt+"":yt,xt),St=(vt,yt,xt)=>new Promise((dt,ft)=>{var ct=z=>{try{E(xt.next(z))}catch(ot){ft(ot)}},lt=z=>{try{E(xt.throw(z))}catch(ot){ft(ot)}},E=z=>z.done?dt(z.value):Promise.resolve(z.value).then(ct,lt);E((xt=xt.apply(vt,yt)).next())});class pt extends Ft.EventEmitter{constructor(yt,xt){super(),Ct(this,"url"),Ct(this,"body"),Ct(this,"fullContent",""),Ct(this,"controller",null),this.url=yt,this.body=xt}startStream(){return St(this,null,function*(){this.controller=new AbortController;const{signal:yt}=this.controller;try{const xt=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:yt});if(!xt.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${xt.status}`);const dt=xt.headers.get("content-type");if(!dt)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(dt.includes("application/json")){const lt=yield xt.json();this.emit("error",lt);return}if(!dt.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const ft=xt.body.getReader(),ct=new TextDecoder("utf-8");for(;;){const{done:lt,value:E}=yield ft.read();if(lt)break;const ot=ct.decode(E,{stream:!0}).split(` -`);for(const it of ot)if(it.startsWith("data:")){const at=it.slice(5).trim();if(at==="[DONE]")break;try{const ut=JSON.parse(at);ut.data&&this.handleData(ut.data)}catch(ut){console.error("\u89E3\u6790 JSON \u5931\u8D25:",ut)}}}this.emit("done",this.fullContent)}catch(xt){xt.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",xt.message)}})}handleData(yt){yt.content&&(this.fullContent+=yt.content,this.emit("data",{chunk:yt,full:this.fullContent}))}cancelRequest(){var yt;(yt=this.controller)==null||yt.abort()}}Ke.Z=pt},43276:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return Et}});var Ft=Rt(59301),ie=Rt(72719),rt=Rt(77596),kt=Rt(93772),Ct=Rt(14179),St=Rt(56102),pt={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm"},vt=Rt(8591),yt=Rt(11611),xt=Rt(35328),dt=Rt(30084),ft=Rt(10787),ct=Rt(50304),lt=Object.defineProperty,E=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,it=(At,_t,Mt)=>_t in At?lt(At,_t,{enumerable:!0,configurable:!0,writable:!0,value:Mt}):At[_t]=Mt,at=(At,_t)=>{for(var Mt in _t||(_t={}))z.call(_t,Mt)&&it(At,Mt,_t[Mt]);if(E)for(var Mt of E(_t))ot.call(_t,Mt)&&it(At,Mt,_t[Mt]);return At},ut=(At,_t)=>{var Mt={};for(var jt in At)z.call(At,jt)&&_t.indexOf(jt)<0&&(Mt[jt]=At[jt]);if(At!=null&&E)for(var jt of E(At))_t.indexOf(jt)<0&&ot.call(At,jt)&&(Mt[jt]=At[jt]);return Mt},Et=({onFinish:At,value:_t,streamingStatus:Mt,cancelIndex:jt,loadImage:Lt})=>{const[It,Ut]=(0,Ft.useState)(""),[Xt,Gt]=(0,Ft.useState)(0),[Yt,Ht]=(0,Ft.useState)(!1),ne=Kt=>Kt.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(re,we)=>`$$${we.trim()}$$`).replace(/\\\(([\s\S]*?)\\\)/g,'$$$$$1$$$$').replace(/\\\[([\s\S]*?)\\\]/g,'$$$$$1$$$$').replace(/_{2,}/g,"`$&`"),ae=()=>{Ht(!0),At==null||At()};return(0,Ft.useEffect)(()=>{const Kt=Lt?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A +(self.webpackChunk=self.webpackChunk||[]).push([[9886],{87169:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return vt}});var Ft=Rt(72308),ie=Rt(59301),rt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},kt=rt,Ct=Rt(7657),St=function(xt,dt){return ie.createElement(Ct.Z,(0,Ft.Z)({},xt,{ref:dt,icon:kt}))},pt=ie.forwardRef(St),vt=pt},32050:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return vt}});var Ft=Rt(72308),ie=Rt(59301),rt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},kt=rt,Ct=Rt(7657),St=function(xt,dt){return ie.createElement(Ct.Z,(0,Ft.Z)({},xt,{ref:dt,icon:kt}))},pt=ie.forwardRef(St),vt=pt},37036:function(){"use strict"},88010:function(tn,Ke){"use strict";Ke.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},38476:function(){"use strict"},74413:function(){"use strict";function tn(lt,E,z,ot){z===void 0&&(z=0),ot===void 0&&(ot=1/0),this._name=lt,this._defaultValue=E,this._minimum=z,this._maximum=ot}Object.defineProperty(tn.prototype,"name",{get:function(){return this._name},set:function(lt){if(typeof lt!="string"||lt==="")throw new Error("Shape name must be a valid string.");this._name=lt}}),Object.defineProperty(tn.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(lt){if(typeof lt!="number"||isNaN(lt))throw new Error("The default value must be a real number, not: "+lt);this._defaultValue=lt}}),Object.defineProperty(tn.prototype,"minimum",{get:function(){return this._minimum},set:function(lt){if(typeof lt!="number"||isNaN(lt))throw new Error("Minimum must be a real number, not: "+lt);this._minimum=lt}}),Object.defineProperty(tn.prototype,"maximum",{get:function(){return this._maximum},set:function(lt){if(typeof lt!="number"||isNaN(lt))throw new Error("Maximum must be a real number, not: "+lt);this._maximum=lt}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(lt,E){var z=go.Shape._FigureParameters[lt];return z?z[E]:null},go.Shape.setFigureParameter=function(lt,E,z){if(!(z instanceof tn))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+z);if(z.defaultValuez.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+z.defaultValue);var ot=go.Shape._FigureParameters[lt];ot||(ot=[],go.Shape._FigureParameters[lt]=ot),ot[E]=z};var Ke=[];function Rt(lt,E){var z=Ke.pop();return z===void 0?new go.Point(lt,E):(z.x=lt,z.y=E,z)}function Ft(){var lt=Ke.pop();return lt===void 0?new go.Point:lt}function ie(lt){Ke.push(lt)}function rt(lt,E,z,ot,it,at,ut,wt,Et){Et||(Et=new go.Point);var At=lt-z,_t=it-ut,Mt=NaN,jt=NaN;if(At===0)if(_t===0)lt===z&&(Mt=lt,jt=E);else{var Lt=(at-wt)/_t,It=at-Lt*it;Mt=lt,jt=Lt*Mt+It}else if(_t===0){var Ut=(E-ot)/At,Xt=E-Ut*lt;Mt=it,jt=Ut*Mt+Xt}else{var Ut=(E-ot)/At,Lt=(at-wt)/_t,Xt=E-Ut*lt,It=at-Lt*it;Mt=(It-Xt)/(Ut-Lt),jt=Ut*Mt+Xt}return Et.x=Mt,Et.y=jt,Et}function kt(lt,E,z,ot,it,at,ut,wt,Et,At,_t,Mt,jt,Lt){var It=1-Et,Ut=Et,Xt=lt*It+z*Ut,Gt=E*It+ot*Ut,Vt=z*It+it*Ut,Ht=ot*It+at*Ut,ne=it*It+ut*Ut,se=at*It+wt*Ut,ve=Xt*It+Vt*Ut,Kt=Gt*It+Ht*Ut,re=Vt*It+ne*Ut,we=Ht*It+se*Ut,ke=ve*It+re*Ut,Me=Kt*It+we*Ut;At.x=Xt,At.y=Gt,_t.x=ve,_t.y=Kt,Mt.x=ke,Mt.y=Me,jt.x=re,jt.y=we,Lt.x=ne,Lt.y=se}var Ct=new go.Spot(.156,.156),St=new go.Spot(.844,.844),pt=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new tn("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(lt,E,z){var ot=lt?lt.parameter1:NaN;(isNaN(ot)||ot<0)&&(ot=5),ot=Math.min(ot,E/3),ot=Math.min(ot,z/3);var it=ot*pt,at=new go.Geometry().add(new go.PathFigure(ot,0,!0).add(new go.PathSegment(go.PathSegment.Line,E-ot,0)).add(new go.PathSegment(go.PathSegment.Bezier,E,ot,E-it,0,E,it)).add(new go.PathSegment(go.PathSegment.Line,E,z-ot)).add(new go.PathSegment(go.PathSegment.Bezier,E-ot,z,E,z-it,E-it,z)).add(new go.PathSegment(go.PathSegment.Line,ot,z)).add(new go.PathSegment(go.PathSegment.Bezier,0,z-ot,it,z,0,z-it)).add(new go.PathSegment(go.PathSegment.Line,0,ot)).add(new go.PathSegment(go.PathSegment.Bezier,ot,0,0,it,it,0).close()));return it>1&&(at.spot1=new go.Spot(0,0,it,it),at.spot2=new go.Spot(1,1,-it,-it)),at}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,.5*z)).add(new go.PathSegment(go.PathSegment.Line,0,z).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,.5*E,z).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(E,z).add(new go.PathSegment(go.PathSegment.Line,0,.5*z)).add(new go.PathSegment(go.PathSegment.Line,E,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(E,z).add(new go.PathSegment(go.PathSegment.Line,0,z)).add(new go.PathSegment(go.PathSegment.Line,.5*E,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(.5*E,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*z)).add(new go.PathSegment(go.PathSegment.Line,.5*E,z)).add(new go.PathSegment(go.PathSegment.Line,E,.5*z).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(lt,E,z){var ot=new go.Geometry(go.Geometry.Line);return ot.startX=0,ot.startY=z/2,ot.endX=E,ot.endY=z/2,ot}),go.Shape.defineFigureGenerator("LineV",function(lt,E,z){var ot=new go.Geometry(go.Geometry.Line);return ot.startX=E/2,ot.startY=0,ot.endX=E/2,ot.endY=z,ot}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,z/2,!1).add(new go.PathSegment(go.PathSegment.Line,E,z/2)).add(new go.PathSegment(go.PathSegment.Move,E/2,0)).add(new go.PathSegment(go.PathSegment.Line,E/2,z)))}),go.Shape.defineFigureGenerator("XLine",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,z,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,E,z)))}),go.Shape.defineFigureGenerator("LineRight",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(.25*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*E,.5*z)).add(new go.PathSegment(go.PathSegment.Line,.25*E,z)))}),go.Shape.defineFigureGenerator("LineDown",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,.25*z,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,.75*z)).add(new go.PathSegment(go.PathSegment.Line,E,.25*z)))}),go.Shape.defineFigureGenerator("LineLeft",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(.75*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*E,.5*z)).add(new go.PathSegment(go.PathSegment.Line,.75*E,z)))}),go.Shape.defineFigureGenerator("LineUp",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,.75*z,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,.25*z)).add(new go.PathSegment(go.PathSegment.Line,E,.75*z)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(lt,E,z){var ot=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(ot*E,(1-ot)*z,!1).add(new go.PathSegment(go.PathSegment.Line,(1-ot)*E,ot*z)).add(new go.PathSegment(go.PathSegment.Move,ot*E,ot*z)).add(new go.PathSegment(go.PathSegment.Line,(1-ot)*E,(1-ot)*z)).add(new go.PathSegment(go.PathSegment.Move,0,z/2)).add(new go.PathSegment(go.PathSegment.Line,E,z/2)).add(new go.PathSegment(go.PathSegment.Move,E/2,0)).add(new go.PathSegment(go.PathSegment.Line,E/2,z)))}),go.Shape.defineFigureGenerator("CircleLine",function(lt,E,z){var ot=E/2,it=new go.Geometry().add(new go.PathFigure(E,E/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,ot,ot,ot,ot).close()));return it.spot1=Ct,it.spot2=St,it.defaultStretch=go.GraphObject.Uniform,it}),go.Shape.defineFigureGenerator("Line1",function(lt,E,z){var ot=new go.Geometry(go.Geometry.Line);return ot.startX=0,ot.startY=0,ot.endX=E,ot.endY=z,ot}),go.Shape.defineFigureGenerator("Line2",function(lt,E,z){var ot=new go.Geometry(go.Geometry.Line);return ot.startX=E,ot.startY=0,ot.endX=0,ot.endY=z,ot}),go.Shape.defineFigureGenerator("Curve1",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,E,z,pt*E,0,E,(1-pt)*z)))}),go.Shape.defineFigureGenerator("Curve2",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,E,z,0,pt*z,(1-pt)*E,z)))}),go.Shape.defineFigureGenerator("Curve3",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,z,E,pt*z,pt*E,z)))}),go.Shape.defineFigureGenerator("Curve4",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,z,(1-pt)*E,0,0,(1-pt)*z)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,z)).add(new go.PathSegment(go.PathSegment.Line,0,z).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,z)).add(new go.PathSegment(go.PathSegment.Line,0,z).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,0,z).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,z).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new tn("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)?ot=.1:ot<-1?ot=-1:ot>1&&(ot=1);var it=Math.abs(ot)*E;if(ot===0){var at=new go.Geometry(go.Geometry.Rectangle);return at.startX=0,at.startY=0,at.endX=E,at.endY=z,at}else{var at=new go.Geometry;return ot>0?at.add(new go.PathFigure(it,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-it,z)).add(new go.PathSegment(go.PathSegment.Line,0,z).close())):at.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E-it,0)).add(new go.PathSegment(go.PathSegment.Line,E,z)).add(new go.PathSegment(go.PathSegment.Line,it,z).close())),itE&&(ot=E);var it=Math.abs(ot);if(ot===0){var at=new go.Geometry(go.Geometry.Rectangle);return at.startX=0,at.startY=0,at.endX=E,at.endY=z,at}else{var at=new go.Geometry;return ot>0?at.add(new go.PathFigure(it,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-it,z)).add(new go.PathSegment(go.PathSegment.Line,0,z).close())):at.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E-it,0)).add(new go.PathSegment(go.PathSegment.Line,E,z)).add(new go.PathSegment(go.PathSegment.Line,it,z).close())),it.5&&(ot=.5);var it=Math.abs(ot)*E;if(ot===0){var at=new go.Geometry(go.Geometry.Rectangle);return at.startX=0,at.startY=0,at.endX=E,at.endY=z,at}else{var at=new go.Geometry;return ot>0?at.add(new go.PathFigure(it,0).add(new go.PathSegment(go.PathSegment.Line,E-it,0)).add(new go.PathSegment(go.PathSegment.Line,E,z)).add(new go.PathSegment(go.PathSegment.Line,0,z).close())):at.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-it,z)).add(new go.PathSegment(go.PathSegment.Line,it,z).close())),itE&&(ot=E/2);var it=Math.abs(ot);if(ot===0){var at=new go.Geometry(go.Geometry.Rectangle);return at.startX=0,at.startY=0,at.endX=E,at.endY=z,at}else{var at=new go.Geometry;return ot>0?at.add(new go.PathFigure(it,0).add(new go.PathSegment(go.PathSegment.Line,E-it,0)).add(new go.PathSegment(go.PathSegment.Line,E,z)).add(new go.PathSegment(go.PathSegment.Line,0,z).close())):at.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-it,z)).add(new go.PathSegment(go.PathSegment.Line,it,z).close())),itE&&(ot=E/2);var it=Math.abs(ot);if(ot===0){var at=new go.Geometry(go.Geometry.Rectangle);return at.startX=0,at.startY=0,at.endX=E,at.endY=z,at}else{var at=new go.Geometry;return ot>0?at.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-it,z)).add(new go.PathSegment(go.PathSegment.Line,it,z).close())):at.add(new go.PathFigure(it,0).add(new go.PathSegment(go.PathSegment.Line,E-it,0)).add(new go.PathSegment(go.PathSegment.Line,E,z)).add(new go.PathSegment(go.PathSegment.Line,0,z).close())),it0&&(ut.add(new go.PathSegment(go.PathSegment.Move,E/2+wt,E/2)),ut.add(new go.PathSegment(go.PathSegment.Arc,0,-360,it,it,wt,wt).close())),at.spot1=Ct,at.spot2=St,at.defaultStretch=go.GraphObject.Uniform,at}),go.Shape.defineFigureGenerator("Cloud",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(.08034461*E,.1944299*z,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*E,.05349299*z,-.09239631*E,.07836421*z,.1406031*E,-.0542823*z)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*E,.074219*z,.2450511*E,-.00697547*z,.3776197*E,-.01112067*z)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*E,.07004196*z,.4539471*E,0,.6066018*E,-.02526587*z)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*E,.08370865*z,.6914277*E,-.01904177*z,.8921095*E,-.01220843*z)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*E,.3194596*z,1.036446*E,.04105738*z,1.020377*E,.3022052*z)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*E,.562044*z,1.04448*E,.360238*z,.992256*E,.5219009*z)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*E,.8217117*z,1.032337*E,.5771781*z,1.018411*E,.8120651*z)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*E,.9156953*z,1.028411*E,.9571472*z,.8556702*E,1.052487*z)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*E,.9310455*z,.7431877*E,1.009325*z,.5624123*E,1.021761*z)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*E,.9344623*z,.4820677*E,1.031761*z,.3030112*E,1.002796*z)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*E,.870098*z,.2329994*E,1.01518*z,.03213784*E,1.01518*z)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*E,.6545475*z,-.02812061*E,.9032597*z,-.01205169*E,.6835638*z)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*E,.4265613*z,-.01812061*E,.6089503*z,-.00606892*E,.4555777*z)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*E,.1944299*z,-.01606892*E,.3892545*z,-.01205169*E,.1944299*z))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(lt,E,z){var ot=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(ot*E,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-ot)*E,0)).add(new go.PathSegment(go.PathSegment.Line,E,ot*z)).add(new go.PathSegment(go.PathSegment.Line,E,(1-ot)*z)).add(new go.PathSegment(go.PathSegment.Line,(1-ot)*E,z)).add(new go.PathSegment(go.PathSegment.Line,ot*E,z)).add(new go.PathSegment(go.PathSegment.Line,0,(1-ot)*z)).add(new go.PathSegment(go.PathSegment.Line,0,ot*z).close())).setSpots(ot/2,ot/2,1-ot/2,1-ot/2)}),go.Shape.setFigureParameter("Pie",0,new tn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new tn("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(lt,E,z){var ot=lt?lt.parameter1:NaN,it=lt?lt.parameter2:NaN;isNaN(ot)&&(ot=0),isNaN(it)&&(it=315);var at=ot%360;at<0&&(at+=360);var ut=it%360,wt=Math.min(E,z)/2;return new go.Geometry().add(new go.PathFigure(wt,wt).add(new go.PathSegment(go.PathSegment.Arc,at,ut,wt,wt,wt,wt).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(lt,E,z){var ot=pt/Math.SQRT2*.5,it=Math.SQRT2/2,at=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(E,z,!0).add(new go.PathSegment(go.PathSegment.Bezier,it*E,at*z,E,(1-ot)*z,(it+ot)*E,(at+ot)*z)).add(new go.PathSegment(go.PathSegment.Line,0,z).close()))}),go.Shape.setFigureParameter("ThickCross",0,new tn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(lt,E,z){var ot=lt?lt.parameter1:NaN;(isNaN(ot)||ot<0)&&(ot=30);var it=Math.min(ot,E)/2,at=E/2,ut=z/2;return new go.Geometry().add(new go.PathFigure(at-it,0,!0).add(new go.PathSegment(go.PathSegment.Line,at+it,0)).add(new go.PathSegment(go.PathSegment.Line,at+it,ut-it)).add(new go.PathSegment(go.PathSegment.Line,E,ut-it)).add(new go.PathSegment(go.PathSegment.Line,E,ut+it)).add(new go.PathSegment(go.PathSegment.Line,at+it,ut+it)).add(new go.PathSegment(go.PathSegment.Line,at+it,z)).add(new go.PathSegment(go.PathSegment.Line,at-it,z)).add(new go.PathSegment(go.PathSegment.Line,at-it,ut+it)).add(new go.PathSegment(go.PathSegment.Line,0,ut+it)).add(new go.PathSegment(go.PathSegment.Line,0,ut-it)).add(new go.PathSegment(go.PathSegment.Line,at-it,ut-it).close()))}),go.Shape.setFigureParameter("ThinCross",0,new tn("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(lt,E,z){var ot=lt?lt.parameter1:NaN;(isNaN(ot)||ot<0)&&(ot=10);var it=Math.min(ot,E)/2,at=E/2,ut=z/2;return new go.Geometry().add(new go.PathFigure(at-it,0,!0).add(new go.PathSegment(go.PathSegment.Line,at+it,0)).add(new go.PathSegment(go.PathSegment.Line,at+it,ut-it)).add(new go.PathSegment(go.PathSegment.Line,E,ut-it)).add(new go.PathSegment(go.PathSegment.Line,E,ut+it)).add(new go.PathSegment(go.PathSegment.Line,at+it,ut+it)).add(new go.PathSegment(go.PathSegment.Line,at+it,z)).add(new go.PathSegment(go.PathSegment.Line,at-it,z)).add(new go.PathSegment(go.PathSegment.Line,at-it,ut+it)).add(new go.PathSegment(go.PathSegment.Line,0,ut+it)).add(new go.PathSegment(go.PathSegment.Line,0,ut-it)).add(new go.PathSegment(go.PathSegment.Line,at-it,ut-it).close()))}),go.Shape.setFigureParameter("ThickX",0,new tn("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(lt,E,z){var ot=lt?lt.parameter1:NaN;if((isNaN(ot)||ot<0)&&(ot=30),E===0||z===0){var it=new go.Geometry(go.Geometry.Rectangle);return it.startX=0,it.startY=0,it.endX=E,it.endY=z,it}else{var at=E/2,ut=z/2,wt=Math.atan2(z,E),Et=ot-Math.min(Math.cos(wt)*ot/2,at),At=ot-Math.min(Math.sin(wt)*ot/2,ut),it=new go.Geometry,_t=new go.PathFigure(Et,0,!0);return it.add(_t),_t.add(new go.PathSegment(go.PathSegment.Line,at,.2*z)),_t.add(new go.PathSegment(go.PathSegment.Line,E-Et,0)),_t.add(new go.PathSegment(go.PathSegment.Line,E,At)),_t.add(new go.PathSegment(go.PathSegment.Line,.8*E,ut)),_t.add(new go.PathSegment(go.PathSegment.Line,E,z-At)),_t.add(new go.PathSegment(go.PathSegment.Line,E-Et,z)),_t.add(new go.PathSegment(go.PathSegment.Line,at,.8*z)),_t.add(new go.PathSegment(go.PathSegment.Line,Et,z)),_t.add(new go.PathSegment(go.PathSegment.Line,0,z-At)),_t.add(new go.PathSegment(go.PathSegment.Line,.2*E,ut)),_t.add(new go.PathSegment(go.PathSegment.Line,0,At).close()),it}}),go.Shape.setFigureParameter("ThinX",0,new tn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(lt,E,z){var ot=lt?lt.parameter1:NaN;(isNaN(ot)||ot<0)&&(ot=10);var it=new go.Geometry,at=new go.PathFigure(.1*E,0,!0);return it.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,.4*z)),at.add(new go.PathSegment(go.PathSegment.Line,.9*E,0)),at.add(new go.PathSegment(go.PathSegment.Line,E,.1*z)),at.add(new go.PathSegment(go.PathSegment.Line,.6*E,.5*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,.9*z)),at.add(new go.PathSegment(go.PathSegment.Line,.9*E,z)),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*z)),at.add(new go.PathSegment(go.PathSegment.Line,.1*E,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,.9*z)),at.add(new go.PathSegment(go.PathSegment.Line,.4*E,.5*z)),at.add(new go.PathSegment(go.PathSegment.Line,0,.1*z).close()),it}),go.Shape.setFigureParameter("SquareIBeam",0,new tn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=.2);var it=new go.Geometry,at=new go.PathFigure(0,0,!0);return it.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,0)),at.add(new go.PathSegment(go.PathSegment.Line,E,ot*z)),at.add(new go.PathSegment(go.PathSegment.Line,(.5+ot/2)*E,ot*z)),at.add(new go.PathSegment(go.PathSegment.Line,(.5+ot/2)*E,(1-ot)*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,(1-ot)*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,(1-ot)*z)),at.add(new go.PathSegment(go.PathSegment.Line,(.5-ot/2)*E,(1-ot)*z)),at.add(new go.PathSegment(go.PathSegment.Line,(.5-ot/2)*E,ot*z)),at.add(new go.PathSegment(go.PathSegment.Line,0,ot*z).close()),it}),go.Shape.setFigureParameter("RoundedIBeam",0,new tn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=.5);var it=new go.Geometry,at=new go.PathFigure(0,0,!0);return it.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,0)),at.add(new go.PathSegment(go.PathSegment.Bezier,E,z,Math.abs(1-ot)*E,.25*z,Math.abs(1-ot)*E,.75*z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z)),at.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ot*E,.75*z,ot*E,.25*z).close()),it}),go.Shape.defineFigureGenerator("HalfEllipse",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,E,.5*z,pt*E,0,E,(.5-pt/2)*z)).add(new go.PathSegment(go.PathSegment.Bezier,0,z,E,(.5+pt/2)*z,pt*E,z).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,z,E,0,E,z)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*E,.75*z,.5*E,.25*z).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(.5*E,z,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*z,.1*E,.8*z,0,.5*z)).add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.3*z,0,0,.45*E,0)).add(new go.PathSegment(go.PathSegment.Bezier,E,.3*z,.55*E,0,E,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*E,z,E,.5*z,.9*E,.8*z).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(.5*E,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*E,.01*z)).add(new go.PathSegment(go.PathSegment.Bezier,E,.5*z,.6*E,.2*z,E,.25*z)).add(new go.PathSegment(go.PathSegment.Bezier,.55*E,.7*z,E,.8*z,.6*E,.8*z)).add(new go.PathSegment(go.PathSegment.Bezier,.75*E,z,.5*E,.75*z,.55*E,.95*z)).add(new go.PathSegment(go.PathSegment.Line,.25*E,z)).add(new go.PathSegment(go.PathSegment.Bezier,.45*E,.7*z,.45*E,.95*z,.5*E,.75*z)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*z,.4*E,.8*z,0,.8*z)).add(new go.PathSegment(go.PathSegment.Bezier,.49*E,.01*z,0,.25*z,.4*E,.2*z).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.4*E,.6*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,.15*E,z,.5*E,.75*z,.45*E,.95*z)),it.add(new go.PathSegment(go.PathSegment.Line,.85*E,z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.6*E,.6*z,.55*E,.95*z,.5*E,.75*z));var at=.2,ut=.3,wt=0,Et=at*pt;return it.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*E,(.5+at+wt)*z,(.5-at+ut)*E,(.5+Et+wt)*z,(.5-Et+ut)*E,(.5+at+wt)*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+at+ut)*E,(.5+wt)*z,(.5+Et+ut)*E,(.5+at+wt)*z,(.5+at+ut)*E,(.5+Et+wt)*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*E,(.5-at+wt)*z,(1-.5+at+ut)*E,(.5-Et+wt)*z,(.5+Et+ut)*E,(.5-at+wt)*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.65*E,.36771243*z,(.5-Et+ut)*E,(.5-at+wt)*z,(.5-at+ut+.05)*E,(.5-Et+wt-.02)*z)),at=.2,ut=0,wt=-.3,Et=at*pt,it.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+at+ut)*E,(.5+wt)*z,(.5+Et+ut)*E,(.5+at+wt)*z,(.5+at+ut)*E,(.5+Et+wt)*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*E,(.5-at+wt)*z,(1-.5+at+ut)*E,(.5-Et+wt)*z,(.5+Et+ut)*E,(.5-at+wt)*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,(.5-at+ut)*E,(.5+wt)*z,(.5-Et+ut)*E,(.5-at+wt)*z,(.5-at+ut)*E,(.5-Et+wt)*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Et+ut)*E,(.5+at+wt)*z,(.5-at+ut)*E,(.5+Et+wt)*z,(.5-Et+ut)*E,(.5+at+wt)*z)),at=.2,ut=-.3,wt=0,Et=at*pt,it.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*E,(.5-at+wt)*z,(1-.5+at+ut-.05)*E,(.5-Et+wt-.02)*z,(.5+Et+ut)*E,(.5-at+wt)*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,(.5-at+ut)*E,(.5+wt)*z,(.5-Et+ut)*E,(.5-at+wt)*z,(.5-at+ut)*E,(.5-Et+wt)*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*E,(.5+at+wt)*z,(.5-at+ut)*E,(.5+Et+wt)*z,(.5-Et+ut)*E,(.5+at+wt)*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,.6*z,(.5+Et+ut)*E,(.5+at+wt)*z,(.5+at+ut)*E,(.5+Et+wt)*z).close()),ot.setSpots(.06,.33,.93,.68),ot}),go.Shape.defineFigureGenerator("YinYang",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E*.5,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Arc,270,180,E*.5,E*.5,E*.5,E*.5)),it.add(new go.PathSegment(go.PathSegment.Arc,90,-180,E*.5,E*.75,E*.25,E*.25)),it.add(new go.PathSegment(go.PathSegment.Arc,90,180,E*.5,E*.25,E*.25,E*.25));var at=.1,ut=.5,wt=.25;return it.add(new go.PathSegment(go.PathSegment.Move,(ut+at)*E,wt*z)),it.add(new go.PathSegment(go.PathSegment.Arc,0,-360,E*ut,z*wt,at*E,at*E).close()),it=new go.PathFigure(E*.5,0,!1),ot.add(it),it.add(new go.PathSegment(go.PathSegment.Arc,270,-180,E*.5,E*.5,E*.5,E*.5)),wt=.75,it=new go.PathFigure((ut+at)*E,wt*z,!0),ot.add(it),it.add(new go.PathSegment(go.PathSegment.Arc,0,360,E*ut,z*wt,at*E,at*E).close()),ot.defaultStretch=go.GraphObject.Uniform,ot}),go.Shape.defineFigureGenerator("Peace",function(lt,E,z){var ot=.8535533905932737,it=.5*E,at=.5*z;return new go.Geometry().add(new go.PathFigure(it,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,it,at,it,at)).add(new go.PathSegment(go.PathSegment.Line,it,z)).add(new go.PathSegment(go.PathSegment.Move,it,at)).add(new go.PathSegment(go.PathSegment.Line,(1-ot)*E,ot*z)).add(new go.PathSegment(go.PathSegment.Move,it,at)).add(new go.PathSegment(go.PathSegment.Line,ot*E,ot*z)))}),go.Shape.defineFigureGenerator("NotAllowed",function(lt,E,z){var ot=new go.Geometry,it=pt*.5,at=.5,ut=.5,wt=.5,Et=new go.PathFigure(ut*E,(wt-at)*z);ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut-at)*E,wt*z,(ut-it)*E,(wt-at)*z,(ut-at)*E,(wt-it)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+at)*z,(ut-at)*E,(wt+it)*z,(ut-it)*E,(wt+at)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut+at)*E,wt*z,(ut+it)*E,(wt+at)*z,(ut+at)*E,(wt+it)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt-at)*z,(ut+at)*E,(wt-it)*z,(ut+it)*E,(wt-at)*z)),at=.4,it=pt*.4;var At=Ft(),_t=Ft(),Mt=Ft(),jt=Ft();kt(ut,wt-at,ut+it,wt-at,ut+at,wt-it,ut+at,wt,.42,At,_t,Mt,jt,jt);var Lt=Ft(),It=Ft(),Ut=Ft();kt(ut,wt-at,ut+it,wt-at,ut+at,wt-it,ut+at,wt,.58,jt,jt,Ut,Lt,It);var Xt=Ft(),Gt=Ft(),Vt=Ft();kt(ut,wt+at,ut-it,wt+at,ut-at,wt+it,ut-at,wt,.42,Xt,Gt,Vt,jt,jt);var Ht=Ft(),ne=Ft(),se=Ft();return kt(ut,wt+at,ut-it,wt+at,ut-at,wt+it,ut-at,wt,.58,jt,jt,se,Ht,ne),Et.add(new go.PathSegment(go.PathSegment.Move,se.x*E,se.y*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut-at)*E,wt*z,Ht.x*E,Ht.y*z,ne.x*E,ne.y*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt-at)*z,(ut-at)*E,(wt-it)*z,(ut-it)*E,(wt-at)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,Mt.x*E,Mt.y*z,At.x*E,At.y*z,_t.x*E,_t.y*z)),Et.add(new go.PathSegment(go.PathSegment.Line,se.x*E,se.y*z).close()),Et.add(new go.PathSegment(go.PathSegment.Move,Vt.x*E,Vt.y*z)),Et.add(new go.PathSegment(go.PathSegment.Line,Ut.x*E,Ut.y*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut+at)*E,wt*z,Lt.x*E,Lt.y*z,It.x*E,It.y*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+at)*z,(ut+at)*E,(wt+it)*z,(ut+it)*E,(wt+at)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,Vt.x*E,Vt.y*z,Xt.x*E,Xt.y*z,Gt.x*E,Gt.y*z).close()),ie(At),ie(_t),ie(Mt),ie(jt),ie(Lt),ie(It),ie(Ut),ie(Xt),ie(Gt),ie(Vt),ie(Ht),ie(ne),ie(se),ot.defaultStretch=go.GraphObject.Uniform,ot}),go.Shape.defineFigureGenerator("Fragile",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*E,0)).add(new go.PathSegment(go.PathSegment.Line,.2*E,.15*z)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.25*z)).add(new go.PathSegment(go.PathSegment.Line,.29*E,.33*z)).add(new go.PathSegment(go.PathSegment.Line,.35*E,.25*z)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.15*z)).add(new go.PathSegment(go.PathSegment.Line,.4*E,0)).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*E,.5*z,E,.25*z,.75*E,.5*z)).add(new go.PathSegment(go.PathSegment.Line,.55*E,.9*z)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.9*z)).add(new go.PathSegment(go.PathSegment.Line,.7*E,z)).add(new go.PathSegment(go.PathSegment.Line,.3*E,z)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.9*z)).add(new go.PathSegment(go.PathSegment.Line,.45*E,.9*z)).add(new go.PathSegment(go.PathSegment.Line,.45*E,.5*z)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.5*z,0,.25*z).close()))}),go.Shape.setFigureParameter("HourGlass",0,new tn("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(lt,E,z){var ot=lt?lt.parameter1:NaN;(isNaN(ot)||ot<0)&&(ot=30),ot>E&&(ot=E);var it=(E-ot)/2,at=it+ot;return new go.Geometry().add(new go.PathFigure(at,.5*z).add(new go.PathSegment(go.PathSegment.Line,E,z)).add(new go.PathSegment(go.PathSegment.Line,0,z)).add(new go.PathSegment(go.PathSegment.Line,it,.5*z)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,E,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,.55*z).add(new go.PathSegment(go.PathSegment.Line,.6*E,0)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.45*z)).add(new go.PathSegment(go.PathSegment.Line,E,.45*z)).add(new go.PathSegment(go.PathSegment.Line,.4*E,z)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.55*z).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(lt,E,z){var ot=new go.Geometry,it=pt*.4,at=.4,ut=.5,wt=.5,Et=Ft(),At=Ft(),_t=Ft(),Mt=Ft(),jt=new go.PathFigure((ut-at)*E,wt*z,!1);ot.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt-at)*z,(ut-at)*E,(wt-it)*z,(ut-it)*E,(wt-at)*z)),kt(ut,wt-at,ut+it,wt-at,ut+at,wt-it,ut+at,wt,.44,_t,Mt,At,Et,Et),jt.add(new go.PathSegment(go.PathSegment.Bezier,At.x*E,At.y*z,_t.x*E,_t.y*z,Mt.x*E,Mt.y*z));var Lt=Rt(At.x,At.y);kt(ut,wt-at,ut+it,wt-at,ut+at,wt-it,ut+at,wt,.56,Et,Et,At,_t,Mt);var It=Rt(At.x,At.y);jt.add(new go.PathSegment(go.PathSegment.Line,(Lt.x*.1+.95*.9)*E,Lt.y*.1*z)),jt.add(new go.PathSegment(go.PathSegment.Line,.85*E,Lt.y*.1*z)),jt.add(new go.PathSegment(go.PathSegment.Line,.85*E,0)),jt.add(new go.PathSegment(go.PathSegment.Line,E,0)),jt.add(new go.PathSegment(go.PathSegment.Line,E,.15*z)),jt.add(new go.PathSegment(go.PathSegment.Line,(It.x*.1+.9)*E,.15*z)),jt.add(new go.PathSegment(go.PathSegment.Line,(It.x*.1+.9)*E,(It.y*.1+.05*.9)*z)),jt.add(new go.PathSegment(go.PathSegment.Line,It.x*E,It.y*z)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+at)*E,wt*z,_t.x*E,_t.y*z,Mt.x*E,Mt.y*z)),jt.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+at)*z,(ut+at)*E,(wt+it)*z,(ut+it)*E,(wt+at)*z)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(ut-at)*E,wt*z,(ut-it)*E,(wt+at)*z,(ut-at)*E,(wt+it)*z)),at=.35,it=pt*.35;var Ut=new go.PathFigure(ut*E,(wt-at)*z,!1);ot.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(ut-at)*E,wt*z,(ut-it)*E,(wt-at)*z,(ut-at)*E,(wt-it)*z)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+at)*z,(ut-at)*E,(wt+it)*z,(ut-it)*E,(wt+at)*z)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(ut+at)*E,wt*z,(ut+it)*E,(wt+at)*z,(ut+at)*E,(wt+it)*z)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt-at)*z,(ut+at)*E,(wt-it)*z,(ut+it)*E,(wt-at)*z));var Xt=new go.PathFigure((ut-at)*E,wt*z,!1);return ot.add(Xt),ie(Et),ie(At),ie(_t),ie(Mt),ie(Lt),ie(It),ot.spot1=new go.Spot(.202,.257),ot.spot2=new go.Spot(.792,.739),ot.defaultStretch=go.GraphObject.Uniform,ot}),go.Shape.defineFigureGenerator("GenderFemale",function(lt,E,z){var ot=new go.Geometry,it=.375,at=0,ut=-.125,wt=it*pt,Et=new go.PathFigure((.525+at)*E,(.5+it+ut)*z,!1);ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+it+at)*E,(.5+ut)*z,(.5+wt+at)*E,(.5+it+ut)*z,(.5+it+at)*E,(.5+wt+ut)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(.5+at)*E,(.5-it+ut)*z,(1-.5+it+at)*E,(.5-wt+ut)*z,(.5+wt+at)*E,(.5-it+ut)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(.5-it+at)*E,(.5+ut)*z,(.5-wt+at)*E,(.5-it+ut)*z,(.5-it+at)*E,(.5-wt+ut)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(.475+at)*E,(.5+it+ut)*z,(.5-it+at)*E,(.5+wt+ut)*z,(.5-wt+at)*E,(.5+it+ut)*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.475*E,.85*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.425*E,.85*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.425*E,.9*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.475*E,.9*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.475*E,z)),Et.add(new go.PathSegment(go.PathSegment.Line,.525*E,z)),Et.add(new go.PathSegment(go.PathSegment.Line,.525*E,.9*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.575*E,.9*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.575*E,.85*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.525*E,.85*z).close()),it=.325,at=0,ut=-.125,wt=it*pt;var Et=new go.PathFigure((1-.5+it+at)*E,(.5+ut)*z,!1);ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,(.5+at)*E,(.5+it+ut)*z,(.5+it+at)*E,(.5+wt+ut)*z,(.5+wt+at)*E,(.5+it+ut)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(.5-it+at)*E,(.5+ut)*z,(.5-wt+at)*E,(.5+it+ut)*z,(.5-it+at)*E,(.5+wt+ut)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(.5+at)*E,(.5-it+ut)*z,(.5-it+at)*E,(.5-wt+ut)*z,(.5-wt+at)*E,(.5-it+ut)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+it+at)*E,(.5+ut)*z,(.5+wt+at)*E,(.5-it+ut)*z,(1-.5+it+at)*E,(.5-wt+ut)*z));var Et=new go.PathFigure((.525+at)*E,(.5+it+ut)*z,!1);return ot.add(Et),ot.spot1=new go.Spot(.232,.136),ot.spot2=new go.Spot(.682,.611),ot.defaultStretch=go.GraphObject.Uniform,ot}),go.Shape.defineFigureGenerator("LogicImplies",function(lt,E,z){var ot=lt?lt.parameter1:NaN;return isNaN(ot)&&(ot=.2),new go.Geometry().add(new go.PathFigure((1-ot)*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,.5*z)).add(new go.PathSegment(go.PathSegment.Line,(1-ot)*E,z)).add(new go.PathSegment(go.PathSegment.Move,0,.5*z)).add(new go.PathSegment(go.PathSegment.Line,E,.5*z))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(lt,E,z){var ot=lt?lt.parameter1:NaN;return isNaN(ot)&&(ot=.2),new go.Geometry().add(new go.PathFigure((1-ot)*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,.5*z)).add(new go.PathSegment(go.PathSegment.Line,(1-ot)*E,z)).add(new go.PathSegment(go.PathSegment.Move,0,.5*z)).add(new go.PathSegment(go.PathSegment.Line,E,.5*z)).add(new go.PathSegment(go.PathSegment.Move,ot*E,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*z)).add(new go.PathSegment(go.PathSegment.Line,ot*E,z))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,z)))}),go.Shape.defineFigureGenerator("LogicAnd",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,z,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,0)).add(new go.PathSegment(go.PathSegment.Line,E,z))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,z)).add(new go.PathSegment(go.PathSegment.Line,E,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(lt,E,z){var ot=new go.Geometry().add(new go.PathFigure(.5*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,z)).add(new go.PathSegment(go.PathSegment.Move,0,.5*z)).add(new go.PathSegment(go.PathSegment.Line,E,.5*z)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*E,.5*z,.5*E,.5*z)));return ot.defaultStretch=go.GraphObject.Uniform,ot}),go.Shape.defineFigureGenerator("LogicTruth",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,.5*E,0)).add(new go.PathSegment(go.PathSegment.Line,.5*E,z)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,z,!1).add(new go.PathSegment(go.PathSegment.Line,E,z)).add(new go.PathSegment(go.PathSegment.Move,.5*E,z)).add(new go.PathSegment(go.PathSegment.Line,.5*E,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,.5*z)).add(new go.PathSegment(go.PathSegment.Line,0,.5*z)).add(new go.PathSegment(go.PathSegment.Move,E,.5*z)).add(new go.PathSegment(go.PathSegment.Line,E,z)).add(new go.PathSegment(go.PathSegment.Line,0,z)))}),go.Shape.defineFigureGenerator("LogicForAll",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,z)).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,.25*E,.5*z)).add(new go.PathSegment(go.PathSegment.Line,.75*E,.5*z))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*z)).add(new go.PathSegment(go.PathSegment.Line,E,.5*z)).add(new go.PathSegment(go.PathSegment.Move,0,z)).add(new go.PathSegment(go.PathSegment.Line,E,z))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(lt,E,z){var ot=.5;return new go.Geometry().add(new go.PathFigure(0,z,!1).add(new go.PathSegment(go.PathSegment.Line,0,ot*z)).add(new go.PathSegment(go.PathSegment.Arc,180,180,ot*E,ot*z,ot*E,ot*z)).add(new go.PathSegment(go.PathSegment.Line,E,z))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(lt,E,z){var ot=.5;return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,ot*z)).add(new go.PathSegment(go.PathSegment.Arc,0,180,ot*E,ot*z,ot*E,ot*z)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new tn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new tn("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=.3);var it=lt?lt.parameter2:NaN;isNaN(it)&&(it=.3);var at=(1-ot)*E,ut=(.5-it/2)*z,wt=(.5+it/2)*z,Et=new go.Geometry,At=new go.PathFigure(0,ut,!0);Et.add(At),At.add(new go.PathSegment(go.PathSegment.Line,at,ut)),At.add(new go.PathSegment(go.PathSegment.Line,at,0)),At.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),At.add(new go.PathSegment(go.PathSegment.Line,at,z)),At.add(new go.PathSegment(go.PathSegment.Line,at,wt)),At.add(new go.PathSegment(go.PathSegment.Line,0,wt).close()),Et.spot1=new go.Spot(0,ut/z);var _t=rt(0,wt/z,1,wt/z,at/E,1,1,.5,Ft());return Et.spot2=new go.Spot(_t.x,_t.y),ie(_t),Et}),go.Shape.setFigureParameter("Arrow2",0,new tn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new tn("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=30),ot>E&&(ot=E);var it=lt?lt.parameter2:NaN;isNaN(it)&&(it=30),it=Math.min(it,z/2);var at=E-ot,ut=(z-it)/2,wt=ut+it,Et=new go.Geometry,At=new go.PathFigure(0,ut,!0);Et.add(At),At.add(new go.PathSegment(go.PathSegment.Line,at,ut)),At.add(new go.PathSegment(go.PathSegment.Line,at,0)),At.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),At.add(new go.PathSegment(go.PathSegment.Line,at,z)),At.add(new go.PathSegment(go.PathSegment.Line,at,wt)),At.add(new go.PathSegment(go.PathSegment.Line,0,wt).close()),Et.spot1=new go.Spot(0,ut/z);var _t=rt(0,wt/z,1,wt/z,at/E,1,1,.5,Ft());return Et.spot2=new go.Spot(_t.x,_t.y),ie(_t),Et}),go.Shape.defineFigureGenerator("Chevron",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*z).close()),ot}),go.Shape.defineFigureGenerator("DoubleArrow",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.3*E,.214*z)),it.add(new go.PathSegment(go.PathSegment.Line,.3*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,1*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.3*E,1*z)),it.add(new go.PathSegment(go.PathSegment.Line,.3*E,.786*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,1*z).close()),ot}),go.Shape.setFigureParameter("DoubleEndArrow",0,new tn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=.3);var it=(.5-ot/2)*z,at=(.5+ot/2)*z,ut=new go.Geometry,wt=new go.PathFigure(E,.5*z,!0);ut.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,at)),wt.add(new go.PathSegment(go.PathSegment.Line,.3*E,at)),wt.add(new go.PathSegment(go.PathSegment.Line,.3*E,z)),wt.add(new go.PathSegment(go.PathSegment.Line,0,.5*z)),wt.add(new go.PathSegment(go.PathSegment.Line,.3*E,0)),wt.add(new go.PathSegment(go.PathSegment.Line,.3*E,it)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,it)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close());var Et=rt(0,.5,.3,0,0,it/z,.1,it/z,Ft());return ut.spot1=new go.Spot(Et.x,Et.y),Et=rt(.7,1,1,.5,0,at/z,1,at/z,Et),ut.spot2=new go.Spot(Et.x,Et.y),ie(Et),ut}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new tn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new tn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=40);var it=lt?lt.parameter2:NaN;isNaN(it)&&(it=100);var at=(z-ot)/2,ut=at+ot,wt=(z-it)/2,Et=wt+it;(ot>z||it>z)&&(it>ot?(ot=ot*z/it,at=(z-ot)/2,ut=at+ot,wt=0,Et=z):(at=0,ut=z,wt=0,Et=z));var At=new go.Geometry,_t=new go.PathFigure(E,.5*z,!0);At.add(_t),_t.add(new go.PathSegment(go.PathSegment.Line,.7*E,Et)),_t.add(new go.PathSegment(go.PathSegment.Line,.7*E,ut)),_t.add(new go.PathSegment(go.PathSegment.Line,.3*E,ut)),_t.add(new go.PathSegment(go.PathSegment.Line,.3*E,Et)),_t.add(new go.PathSegment(go.PathSegment.Line,0,.5*z)),_t.add(new go.PathSegment(go.PathSegment.Line,.3*E,wt)),_t.add(new go.PathSegment(go.PathSegment.Line,.3*E,at)),_t.add(new go.PathSegment(go.PathSegment.Line,.7*E,at)),_t.add(new go.PathSegment(go.PathSegment.Line,.7*E,wt).close());var Mt=rt(0,.5,.3,wt/z,0,at/z,1,at/z,Ft());return At.spot1=new go.Spot(Mt.x,Mt.y),Mt=rt(.7,Et/z,1,.5,0,ut/z,1,ut/z,Mt),At.spot2=new go.Spot(Mt.x,Mt.y),ie(Mt),At}),go.Shape.setFigureParameter("IBeamArrow",0,new tn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=.3);var it=(.5-ot/2)*z,at=(.5+ot/2)*z,ut=new go.Geometry,wt=new go.PathFigure(E,.5*z,!0);ut.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,at)),wt.add(new go.PathSegment(go.PathSegment.Line,.2*E,at)),wt.add(new go.PathSegment(go.PathSegment.Line,.2*E,z)),wt.add(new go.PathSegment(go.PathSegment.Line,0,z)),wt.add(new go.PathSegment(go.PathSegment.Line,0,0)),wt.add(new go.PathSegment(go.PathSegment.Line,.2*E,0)),wt.add(new go.PathSegment(go.PathSegment.Line,.2*E,it)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,it)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close()),ut.spot1=new go.Spot(0,it/z);var Et=rt(.7,1,1,.5,0,at/z,1,at/z,Ft());return ut.spot2=new go.Spot(Et.x,Et.y),ie(Et),ut}),go.Shape.setFigureParameter("IBeamArrow2",0,new tn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new tn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=40);var it=lt?lt.parameter2:NaN;isNaN(it)&&(it=100);var at=(z-ot)/2,ut=at+ot,wt=(z-it)/2,Et=wt+it;(ot>z||it>z)&&(it>ot?(ot=ot*z/it,at=(z-ot)/2,ut=at+ot,wt=0,Et=z):(at=0,ut=z,wt=0,Et=z));var At=new go.Geometry,_t=new go.PathFigure(E,.5*z,!0);At.add(_t),_t.add(new go.PathSegment(go.PathSegment.Line,.7*E,Et)),_t.add(new go.PathSegment(go.PathSegment.Line,.7*E,ut)),_t.add(new go.PathSegment(go.PathSegment.Line,.2*E,ut)),_t.add(new go.PathSegment(go.PathSegment.Line,.2*E,Et)),_t.add(new go.PathSegment(go.PathSegment.Line,0,Et)),_t.add(new go.PathSegment(go.PathSegment.Line,0,wt)),_t.add(new go.PathSegment(go.PathSegment.Line,.2*E,wt)),_t.add(new go.PathSegment(go.PathSegment.Line,.2*E,at)),_t.add(new go.PathSegment(go.PathSegment.Line,.7*E,at)),_t.add(new go.PathSegment(go.PathSegment.Line,.7*E,wt).close()),At.spot1=new go.Spot(0,at/z);var Mt=rt(.7,Et/z,1,.5,0,ut/z,1,ut/z,Ft());return At.spot2=new go.Spot(Mt.x,Mt.y),ie(Mt),At}),go.Shape.setFigureParameter("Pointer",0,new tn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=.1);var it=new go.Geometry,at=new go.PathFigure(E,.5*z,!0);it.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,z)),at.add(new go.PathSegment(go.PathSegment.Line,ot*E,.5*z)),at.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),it.spot1=new go.Spot(ot,.35);var ut=rt(.2,.65,1,.65,0,1,1,.5,Ft());return it.spot2=new go.Spot(ut.x,ut.y),ie(ut),it}),go.Shape.setFigureParameter("RoundedPointer",0,new tn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=.3);var it=new go.Geometry,at=new go.PathFigure(E,.5*z,!0);it.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,z)),at.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ot*E,.75*z,ot*E,.25*z).close()),it.spot1=new go.Spot(ot,.35);var ut=rt(0,.65,1,.65,0,1,1,.5,Ft());return it.spot2=new go.Spot(ut.x,ut.y),ie(ut),it}),go.Shape.setFigureParameter("SplitEndArrow",0,new tn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=.4);var it=(.5-ot/2)*z,at=(.5+ot/2)*z,ut=new go.Geometry,wt=new go.PathFigure(E,.5*z,!0);ut.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,at)),wt.add(new go.PathSegment(go.PathSegment.Line,0,at)),wt.add(new go.PathSegment(go.PathSegment.Line,.2*E,.5*z)),wt.add(new go.PathSegment(go.PathSegment.Line,0,it)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,it)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close()),ut.spot1=new go.Spot(.2,.3);var Et=rt(.7,1,1,.5,0,at/z,1,at/z,Ft());return ut.spot2=new go.Spot(Et.x,Et.y),ie(Et),ut}),go.Shape.setFigureParameter("SplitEndArrow2",0,new tn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=50);var it=(z-ot)/2,at=it+ot;ot>z&&(it=0,at=z);var ut=new go.Geometry,wt=new go.PathFigure(E,.5*z,!0);ut.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,at)),wt.add(new go.PathSegment(go.PathSegment.Line,0,at)),wt.add(new go.PathSegment(go.PathSegment.Line,.2*E,.5*z)),wt.add(new go.PathSegment(go.PathSegment.Line,0,it)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,it)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close()),ut.spot1=new go.Spot(.2,it/z);var Et=rt(.7,1,1,.5,0,at/z,1,at/z,Ft());return ut.spot2=new go.Spot(Et.x,Et.y),ie(Et),ut}),go.Shape.setFigureParameter("SquareArrow",0,new tn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=.7);var it=new go.Geometry,at=new go.PathFigure(E,.5*z,!0);return it.add(at),at.add(new go.PathSegment(go.PathSegment.Line,ot*E,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,0)),at.add(new go.PathSegment(go.PathSegment.Line,ot*E,0).close()),it.spot1=go.Spot.TopLeft,it.spot2=new go.Spot(ot,1),it}),go.Shape.defineFigureGenerator("Cone1",function(lt,E,z){var ot=new go.Geometry,it=pt*.5,at=pt*.1,ut=new go.PathFigure(0,.9*z,!0);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),ut.add(new go.PathSegment(go.PathSegment.Line,E,.9*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,z,E,(.9+at)*z,(.5+it)*E,z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*z,(.5-it)*E,z,0,(.9+at)*z).close()),ot.spot1=new go.Spot(.25,.5),ot.spot2=new go.Spot(.75,.97),ot}),go.Shape.defineFigureGenerator("Cone2",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.9*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,E,.9*z,(1-.85/.9)*E,z,.85/.9*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,0,.9*z).close());var at=new go.PathFigure(0,.9*z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Bezier,E,.9*z,(1-.85/.9)*E,.8*z,.85/.9*E,.8*z)),ot.spot1=new go.Spot(.25,.5),ot.spot2=new go.Spot(.75,.82),ot}),go.Shape.defineFigureGenerator("Cube1",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.5*E,z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,.85*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.15*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,0,.15*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.85*z).close());var at=new go.PathFigure(.5*E,z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,.3*z)),at.add(new go.PathSegment(go.PathSegment.Line,0,.15*z)),at.add(new go.PathSegment(go.PathSegment.Move,.5*E,.3*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,.15*z)),ot.spot1=new go.Spot(0,.3),ot.spot2=new go.Spot(.5,.85),ot}),go.Shape.defineFigureGenerator("Cube2",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.3*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.7*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.3*E,0).close());var at=new go.PathFigure(0,.3*z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.7*E,.3*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,0)),at.add(new go.PathSegment(go.PathSegment.Move,.7*E,.3*z)),at.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),ot.spot1=new go.Spot(0,.3),ot.spot2=new go.Spot(.7,1),ot}),go.Shape.defineFigureGenerator("Cylinder1",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=5),ot=Math.min(ot,z/3);var it=new go.Geometry,at=pt*.5,ut=new go.PathFigure(0,ot,!0);it.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,pt*ot,(.5-at)*E,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,1*E,ot,(.5+at)*E,0,1*E,pt*ot)),ut.add(new go.PathSegment(go.PathSegment.Line,E,z-ot)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,1*z,1*E,z-pt*ot,(.5+at)*E,1*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,z-ot,(.5-at)*E,1*z,0,z-pt*ot)),ut.add(new go.PathSegment(go.PathSegment.Line,0,ot));var wt=new go.PathFigure(E,ot,!1);return it.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,2*ot,1*E,2*ot-pt*ot,(.5+at)*E,2*ot)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,ot,(.5-at)*E,2*ot,0,2*ot-pt*ot)),it.spot1=new go.Spot(0,0,0,2*ot),it.spot2=new go.Spot(1,1),it}),go.Shape.defineFigureGenerator("Cylinder2",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=5),ot=Math.min(ot,z/3);var it=new go.Geometry,at=pt*.5,ut=new go.PathFigure(0,z-ot,!0);it.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,ot)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,pt*ot,(.5-at)*E,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E,ot,(.5+at)*E,0,E,pt*ot)),ut.add(new go.PathSegment(go.PathSegment.Line,E,z-ot)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,z,E,z-pt*ot,(.5+at)*E,z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,z-ot,(.5-at)*E,z,0,z-pt*ot));var wt=new go.PathFigure(0,z-ot,!1);return it.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,z-2*ot,0,z-ot-pt*ot,(.5-at)*E,z-2*ot)),wt.add(new go.PathSegment(go.PathSegment.Bezier,E,z-ot,(.5+at)*E,z-2*ot,E,z-ot-pt*ot)),it.spot1=new go.Spot(0,0),it.spot2=new go.Spot(1,1,0,-2*ot),it}),go.Shape.defineFigureGenerator("Cylinder3",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=5),ot=Math.min(ot,E/3);var it=new go.Geometry,at=pt*.5,ut=new go.PathFigure(ot,0,!0);it.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E-ot,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*z,E-pt*ot,0,E,(.5-at)*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E-ot,z,E,(.5+at)*z,E-pt*ot,z)),ut.add(new go.PathSegment(go.PathSegment.Line,ot,z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*z,pt*ot,z,0,(.5+at)*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,ot,0,0,(.5-at)*z,pt*ot,0));var wt=new go.PathFigure(ot,0,!1);return it.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,2*ot,.5*z,ot+pt*ot,0,2*ot,(.5-at)*z)),wt.add(new go.PathSegment(go.PathSegment.Bezier,ot,z,2*ot,(.5+at)*z,ot+pt*ot,z)),it.spot1=new go.Spot(0,0,2*ot,0),it.spot2=new go.Spot(1,1),it}),go.Shape.defineFigureGenerator("Cylinder4",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=5),ot=Math.min(ot,E/3);var it=new go.Geometry,at=pt*.5,ut=new go.PathFigure(E-ot,0,!0);it.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*z,E-pt*ot,0,E,(.5-at)*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E-ot,z,E,(.5+at)*z,E-pt*ot,z)),ut.add(new go.PathSegment(go.PathSegment.Line,ot,z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*z,pt*ot,z,0,(.5+at)*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,ot,0,0,(.5-at)*z,pt*ot,0)),ut.add(new go.PathSegment(go.PathSegment.Line,E-ot,0));var wt=new go.PathFigure(E-ot,0,!1);return it.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,E-2*ot,.5*z,E-ot-pt*ot,0,E-2*ot,(.5-at)*z)),wt.add(new go.PathSegment(go.PathSegment.Bezier,E-ot,z,E-2*ot,(.5+at)*z,E-ot-pt*ot,z)),it.spot1=new go.Spot(0,0),it.spot2=new go.Spot(1,1,-2*ot,0),it}),go.Shape.defineFigureGenerator("Prism1",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.25*E,.25*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z).close());var at=new go.PathFigure(.25*E,.25*z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),ot.spot1=new go.Spot(.408,.172),ot.spot2=new go.Spot(.833,.662),ot}),go.Shape.defineFigureGenerator("Prism2",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.25*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.25*z)),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,.75*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z).close());var at=new go.PathFigure(0,z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.25*E,.5*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,.25*z)),at.add(new go.PathSegment(go.PathSegment.Move,0,.25*z)),at.add(new go.PathSegment(go.PathSegment.Line,.25*E,.5*z)),ot.spot1=new go.Spot(.25,.5),ot.spot2=new go.Spot(.75,.75),ot}),go.Shape.defineFigureGenerator("Pyramid1",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.5*E,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,.75*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.75*z).close());var at=new go.PathFigure(.5*E,0,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),ot.spot1=new go.Spot(.25,.367),ot.spot2=new go.Spot(.75,.875),ot}),go.Shape.defineFigureGenerator("Pyramid2",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.5*E,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,.85*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.85*z).close());var at=new go.PathFigure(.5*E,0,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,.7*z)),at.add(new go.PathSegment(go.PathSegment.Line,0,.85*z)),at.add(new go.PathSegment(go.PathSegment.Move,.5*E,.7*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,.85*z)),ot.spot1=new go.Spot(.25,.367),ot.spot2=new go.Spot(.75,.875),ot}),go.Shape.defineFigureGenerator("Actor",function(lt,E,z){var ot=new go.Geometry,it=.2,at=.1,ut=pt*it,wt=pt*at,Et=.5,At=.1,_t=new go.PathFigure(Et*E,(At+at)*z,!0);ot.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Et-it)*E,At*z,(Et-ut)*E,(At+at)*z,(Et-it)*E,(At+wt)*z)),_t.add(new go.PathSegment(go.PathSegment.Bezier,Et*E,(At-at)*z,(Et-it)*E,(At-wt)*z,(Et-ut)*E,(At-at)*z)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Et+it)*E,At*z,(Et+ut)*E,(At-at)*z,(Et+it)*E,(At-wt)*z)),_t.add(new go.PathSegment(go.PathSegment.Bezier,Et*E,(At+at)*z,(Et+it)*E,(At+wt)*z,(Et+ut)*E,(At+at)*z));var Mt=.05,jt=pt*Mt;Et=.05,At=.25;var Lt=new go.PathFigure(.5*E,.2*z,!0);return ot.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,.95*E,.2*z)),Et=.95,At=.25,Lt.add(new go.PathSegment(go.PathSegment.Bezier,(Et+Mt)*E,At*z,(Et+jt)*E,(At-Mt)*z,(Et+Mt)*E,(At-jt)*z)),Lt.add(new go.PathSegment(go.PathSegment.Line,E,.6*z)),Lt.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*z)),Lt.add(new go.PathSegment(go.PathSegment.Line,.85*E,.35*z)),Mt=.025,jt=pt*Mt,Et=.825,At=.35,Lt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E,(At-Mt)*z,(Et+Mt)*E,(At-jt)*z,(Et+jt)*E,(At-Mt)*z)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-Mt)*E,At*z,(Et-jt)*E,(At-Mt)*z,(Et-Mt)*E,(At-jt)*z)),Lt.add(new go.PathSegment(go.PathSegment.Line,.8*E,z)),Lt.add(new go.PathSegment(go.PathSegment.Line,.55*E,z)),Lt.add(new go.PathSegment(go.PathSegment.Line,.55*E,.7*z)),Mt=.05,jt=pt*Mt,Et=.5,At=.7,Lt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E,(At-Mt)*z,(Et+Mt)*E,(At-jt)*z,(Et+jt)*E,(At-Mt)*z)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-Mt)*E,At*z,(Et-jt)*E,(At-Mt)*z,(Et-Mt)*E,(At-jt)*z)),Lt.add(new go.PathSegment(go.PathSegment.Line,.45*E,z)),Lt.add(new go.PathSegment(go.PathSegment.Line,.2*E,z)),Lt.add(new go.PathSegment(go.PathSegment.Line,.2*E,.35*z)),Mt=.025,jt=pt*Mt,Et=.175,At=.35,Lt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E,(At-Mt)*z,(Et+Mt)*E,(At-jt)*z,(Et+jt)*E,(At-Mt)*z)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-Mt)*E,At*z,(Et-jt)*E,(At-Mt)*z,(Et-Mt)*E,(At-jt)*z)),Lt.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*z)),Lt.add(new go.PathSegment(go.PathSegment.Line,0,.6*z)),Lt.add(new go.PathSegment(go.PathSegment.Line,0,.25*z)),Mt=.05,jt=pt*Mt,Et=.05,At=.25,Lt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E,(At-Mt)*z,(Et-Mt)*E,(At-jt)*z,(Et-jt)*E,(At-Mt)*z)),Lt.add(new go.PathSegment(go.PathSegment.Line,.5*E,.2*z)),ot.spot1=new go.Spot(.2,.2),ot.spot2=new go.Spot(.8,.65),ot}),go.Shape.setFigureParameter("Card",0,new tn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(lt,E,z){var ot=lt?lt.parameter1:NaN;isNaN(ot)&&(ot=.2);var it=new go.Geometry,at=new go.PathFigure(E,0,!0);return it.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,ot*z)),at.add(new go.PathSegment(go.PathSegment.Line,ot*E,0).close()),it.spot1=new go.Spot(0,ot),it.spot2=go.Spot.BottomRight,it}),go.Shape.defineFigureGenerator("Collate",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.5*E,.5*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*z));var at=new go.PathFigure(.5*E,.5*z,!0);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z)),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*z)),ot.spot1=new go.Spot(.25,0),ot.spot2=new go.Spot(.75,.25),ot}),go.Shape.defineFigureGenerator("CreateRequest",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN;isNaN(it)&&(it=.1);var at=new go.PathFigure(0,0,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,0)),at.add(new go.PathSegment(go.PathSegment.Line,E,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z).close());var ut=new go.PathFigure(0,it*z,!1);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E,it*z)),ut.add(new go.PathSegment(go.PathSegment.Move,0,(1-it)*z)),ut.add(new go.PathSegment(go.PathSegment.Line,E,(1-it)*z)),ot}),go.Shape.defineFigureGenerator("Database",function(lt,E,z){var ot=new go.Geometry,it=pt*.5,at=pt*.1,ut=new go.PathFigure(E,.1*z,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E,.9*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,z,E,(.9+at)*z,(.5+it)*E,z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*z,(.5-it)*E,z,0,(.9+at)*z)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.1*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,(.1-at)*z,(.5-it)*E,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E,.1*z,(.5+it)*E,0,E,(.1-at)*z));var wt=new go.PathFigure(E,.1*z,!1);return ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*z,E,(.1+at)*z,(.5+it)*E,.2*z)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*z,(.5-it)*E,.2*z,0,(.1+at)*z)),wt.add(new go.PathSegment(go.PathSegment.Move,E,.2*z)),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.3*z,E,(.2+at)*z,(.5+it)*E,.3*z)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*z,(.5-it)*E,.3*z,0,(.2+at)*z)),wt.add(new go.PathSegment(go.PathSegment.Move,E,.3*z)),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.4*z,E,(.3+at)*z,(.5+it)*E,.4*z)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*z,(.5-it)*E,.4*z,0,(.3+at)*z)),ot.spot1=new go.Spot(0,.4),ot.spot2=new go.Spot(1,.9),ot}),go.Shape.defineFigureGenerator("DataStorage",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),it.add(new go.PathSegment(go.PathSegment.Bezier,.75*E,z,E,0,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.9*z,.25*E,.1*z).close()),ot.spot1=new go.Spot(.226,0),ot.spot2=new go.Spot(.81,1),ot}),go.Shape.defineFigureGenerator("DiskStorage",function(lt,E,z){var ot=new go.Geometry,it=pt*.5,at=pt*.1,ut=new go.PathFigure(E,.1*z,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E,.9*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,z,E,(.9+at)*z,(.5+it)*E,z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*z,(.5-it)*E,z,0,(.9+at)*z)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.1*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,(.1-at)*z,(.5-it)*E,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E,.1*z,(.5+it)*E,0,E,(.1-at)*z));var wt=new go.PathFigure(E,.1*z,!1);return ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*z,E,(.1+at)*z,(.5+it)*E,.2*z)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*z,(.5-it)*E,.2*z,0,(.1+at)*z)),wt.add(new go.PathSegment(go.PathSegment.Move,E,.2*z)),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.3*z,E,(.2+at)*z,(.5+it)*E,.3*z)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*z,(.5-it)*E,.3*z,0,(.2+at)*z)),ot.spot1=new go.Spot(0,.3),ot.spot2=new go.Spot(1,.9),ot}),go.Shape.defineFigureGenerator("Display",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.25*E,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),it.add(new go.PathSegment(go.PathSegment.Bezier,.75*E,z,E,0,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.25*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.5*z).close()),ot.spot1=new go.Spot(.25,0),ot.spot2=new go.Spot(.75,1),ot}),go.Shape.defineFigureGenerator("DividedEvent",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN;isNaN(it)?it=.2:it<.15&&(it=.15);var at=pt*.2,ut=new go.PathFigure(0,.2*z,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,0,(.2-at)*z,(.2-at)*E,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*E,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E,.2*z,(.8+at)*E,0,E,(.2-at)*z)),ut.add(new go.PathSegment(go.PathSegment.Line,E,.8*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,z,E,(.8+at)*z,(.8+at)*E,z)),ut.add(new go.PathSegment(go.PathSegment.Line,.2*E,z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*z,(.2-at)*E,z,0,(.8+at)*z)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.2*z));var wt=new go.PathFigure(0,it*z,!1);return ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,E,it*z)),ot}),go.Shape.defineFigureGenerator("DividedProcess",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN;(isNaN(it)||it<.1)&&(it=.1);var at=new go.PathFigure(0,0,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,0)),at.add(new go.PathSegment(go.PathSegment.Line,E,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z).close());var ut=new go.PathFigure(0,it*z,!1);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E,it*z)),ot}),go.Shape.defineFigureGenerator("Document",function(lt,E,z){var ot=new go.Geometry;z=z/.8;var it=new go.PathFigure(0,.7*z,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.7*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*z,.5*E,.4*z,.5*E,z).close()),ot.spot1=go.Spot.TopLeft,ot.spot2=new go.Spot(1,.6),ot}),go.Shape.defineFigureGenerator("ExternalOrganization",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN;(isNaN(it)||it<.2)&&(it=.2);var at=new go.PathFigure(0,0,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,0)),at.add(new go.PathSegment(go.PathSegment.Line,E,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z).close());var ut=new go.PathFigure(it*E,0,!1);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,it*z)),ut.add(new go.PathSegment(go.PathSegment.Move,E,it*z)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-it)*E,0)),ut.add(new go.PathSegment(go.PathSegment.Move,0,(1-it)*z)),ut.add(new go.PathSegment(go.PathSegment.Line,it*E,z)),ut.add(new go.PathSegment(go.PathSegment.Move,(1-it)*E,z)),ut.add(new go.PathSegment(go.PathSegment.Line,E,(1-it)*z)),ot}),go.Shape.defineFigureGenerator("ExternalProcess",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.5*E,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.5*z).close());var at=new go.PathFigure(.1*E,.4*z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.1*E,.6*z)),at.add(new go.PathSegment(go.PathSegment.Move,.9*E,.6*z)),at.add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*z)),at.add(new go.PathSegment(go.PathSegment.Move,.6*E,.1*z)),at.add(new go.PathSegment(go.PathSegment.Line,.4*E,.1*z)),at.add(new go.PathSegment(go.PathSegment.Move,.4*E,.9*z)),at.add(new go.PathSegment(go.PathSegment.Line,.6*E,.9*z)),ot.spot1=new go.Spot(.25,.25),ot.spot2=new go.Spot(.75,.75),ot}),go.Shape.defineFigureGenerator("File",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.25*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z).close());var at=new go.PathFigure(.75*E,0,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.75*E,.25*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,.25*z)),ot.spot1=new go.Spot(0,.25),ot.spot2=go.Spot.BottomRight,ot}),go.Shape.defineFigureGenerator("Interrupt",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E,.5*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z));var at=new go.PathFigure(E,.5*z,!1);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,z));var ut=new go.PathFigure(E,.5*z,!1);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E,0)),ot.spot1=new go.Spot(0,.25),ot.spot2=new go.Spot(.5,.75),ot}),go.Shape.defineFigureGenerator("InternalStorage",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN,at=lt?lt.parameter2:NaN;isNaN(it)&&(it=.1),isNaN(at)&&(at=.1);var ut=new go.PathFigure(0,0,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E,0)),ut.add(new go.PathSegment(go.PathSegment.Line,E,z)),ut.add(new go.PathSegment(go.PathSegment.Line,0,z).close());var wt=new go.PathFigure(it*E,0,!1);return ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,it*E,z)),wt.add(new go.PathSegment(go.PathSegment.Move,0,at*z)),wt.add(new go.PathSegment(go.PathSegment.Line,E,at*z)),ot}),go.Shape.defineFigureGenerator("Junction",function(lt,E,z){var ot=new go.Geometry,it=1/Math.SQRT2,at=(1-1/Math.SQRT2)/2,ut=pt*.5,wt=.5,Et=new go.PathFigure(E,wt*z,!0);ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,wt*E,z,E,(wt+ut)*z,(wt+ut)*E,z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,0,wt*z,(wt-ut)*E,z,0,(wt+ut)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,wt*E,0,0,(wt-ut)*z,(wt-ut)*E,0)),Et.add(new go.PathSegment(go.PathSegment.Bezier,E,wt*z,(wt+ut)*E,0,E,(wt-ut)*z));var At=new go.PathFigure((at+it)*E,(at+it)*z,!1);return ot.add(At),At.add(new go.PathSegment(go.PathSegment.Line,at*E,at*z)),At.add(new go.PathSegment(go.PathSegment.Move,at*E,(at+it)*z)),At.add(new go.PathSegment(go.PathSegment.Line,(at+it)*E,at*z)),ot}),go.Shape.defineFigureGenerator("LinedDocument",function(lt,E,z){var ot=new go.Geometry;z=z/.8;var it=new go.PathFigure(0,.7*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.7*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*z,.5*E,.4*z,.5*E,z).close());var at=new go.PathFigure(.1*E,0,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.1*E,.75*z)),ot.spot1=new go.Spot(.1,0),ot.spot2=new go.Spot(1,.6),ot}),go.Shape.defineFigureGenerator("LoopLimit",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,z,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,.25*z)),it.add(new go.PathSegment(go.PathSegment.Line,.25*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.25*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z).close()),ot.spot1=new go.Spot(0,.25),ot.spot2=go.Spot.BottomRight,ot}),go.Shape.defineFigureGenerator("MagneticTape",function(lt,E,z){var ot=new go.Geometry,it=pt*.5,at=.5,ut=new go.PathFigure(.5*E,z,!0);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,at*z,(at-it)*E,z,0,(at+it)*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,at*E,0,0,(at-it)*z,(at-it)*E,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E,at*z,(at+it)*E,0,E,(at-it)*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(at+.1)*E,.9*z,E,(at+it)*z,(at+it)*E,.9*z)),ut.add(new go.PathSegment(go.PathSegment.Line,E,.9*z)),ut.add(new go.PathSegment(go.PathSegment.Line,E,z)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),ot.spot1=new go.Spot(.15,.15),ot.spot2=new go.Spot(.85,.8),ot}),go.Shape.defineFigureGenerator("ManualInput",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.25*z).close()),ot.spot1=new go.Spot(0,.25),ot.spot2=go.Spot.BottomRight,ot}),go.Shape.defineFigureGenerator("MessageFromUser",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN;isNaN(it)&&(it=.7);var at=new go.PathFigure(0,0,!0);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,0)),at.add(new go.PathSegment(go.PathSegment.Line,it*E,.5*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z).close()),ot.spot1=go.Spot.TopLeft,ot}),go.Shape.defineFigureGenerator("MicroformProcessing",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN;isNaN(it)&&(it=.25);var at=new go.PathFigure(0,0,!0);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,it*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,0)),at.add(new go.PathSegment(go.PathSegment.Line,E,z)),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,(1-it)*z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z).close()),ot}),go.Shape.defineFigureGenerator("MicroformRecording",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,.25*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.15*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.85*z)),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,.75*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z).close()),ot.spot1=new go.Spot(0,.25),ot.spot2=new go.Spot(1,.75),ot}),go.Shape.defineFigureGenerator("MultiDocument",function(lt,E,z){var ot=new go.Geometry;z=z/.8;var it=new go.PathFigure(E,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,.44*z,.96*E,.47*z,.93*E,.45*z)),it.add(new go.PathSegment(go.PathSegment.Line,.9*E,.6*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.54*z,.86*E,.57*z,.83*E,.55*z)),it.add(new go.PathSegment(go.PathSegment.Line,.8*E,.7*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*z,.4*E,.4*z,.4*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.2*z)),it.add(new go.PathSegment(go.PathSegment.Line,.1*E,.2*z)),it.add(new go.PathSegment(go.PathSegment.Line,.1*E,.1*z)),it.add(new go.PathSegment(go.PathSegment.Line,.2*E,.1*z)),it.add(new go.PathSegment(go.PathSegment.Line,.2*E,0).close());var at=new go.PathFigure(.1*E,.2*z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*z)),at.add(new go.PathSegment(go.PathSegment.Line,.8*E,.54*z)),at.add(new go.PathSegment(go.PathSegment.Move,.2*E,.1*z)),at.add(new go.PathSegment(go.PathSegment.Line,.9*E,.1*z)),at.add(new go.PathSegment(go.PathSegment.Line,.9*E,.44*z)),ot.spot1=new go.Spot(0,.25),ot.spot2=new go.Spot(.8,.77),ot}),go.Shape.defineFigureGenerator("MultiProcess",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.1*E,.1*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.2*E,.1*z)),it.add(new go.PathSegment(go.PathSegment.Line,.2*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,.9*E,.9*z)),it.add(new go.PathSegment(go.PathSegment.Line,.8*E,.9*z)),it.add(new go.PathSegment(go.PathSegment.Line,.8*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.2*z)),it.add(new go.PathSegment(go.PathSegment.Line,.1*E,.2*z).close());var at=new go.PathFigure(.2*E,.1*z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.9*E,.1*z)),at.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*z)),at.add(new go.PathSegment(go.PathSegment.Move,.1*E,.2*z)),at.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*z)),at.add(new go.PathSegment(go.PathSegment.Line,.8*E,.9*z)),ot.spot1=new go.Spot(0,.2),ot.spot2=new go.Spot(.8,1),ot}),go.Shape.defineFigureGenerator("OfflineStorage",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN;isNaN(it)&&(it=.1);var at=1-it,ut=new go.PathFigure(0,0,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*E,z).close());var wt=new go.PathFigure(.5*it*E,it*z,!1);return ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,(1-.5*it)*E,it*z)),ot}),go.Shape.defineFigureGenerator("OffPageConnector",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z).close()),ot.spot1=go.Spot.TopLeft,ot.spot2=new go.Spot(.75,1),ot}),go.Shape.defineFigureGenerator("Or",function(lt,E,z){var ot=new go.Geometry,it=pt*.5,at=.5,ut=new go.PathFigure(E,at*z,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,at*E,z,E,(at+it)*z,(at+it)*E,z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,at*z,(at-it)*E,z,0,(at+it)*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,at*E,0,0,(at-it)*z,(at-it)*E,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E,at*z,(at+it)*E,0,E,(at-it)*z));var wt=new go.PathFigure(E,.5*z,!1);return ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,0,.5*z)),wt.add(new go.PathSegment(go.PathSegment.Move,.5*E,z)),wt.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),ot}),go.Shape.defineFigureGenerator("PaperTape",function(lt,E,z){var ot=new go.Geometry;z=z/.8;var it=new go.PathFigure(0,.7*z,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,.3*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,E,.3*z,.5*E,.6*z,.5*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.7*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*z,.5*E,.4*z,.5*E,z).close()),ot.spot1=new go.Spot(0,.49),ot.spot2=new go.Spot(1,.75),ot}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN,at=lt?lt.parameter2:NaN;isNaN(it)&&(it=.1),isNaN(at)&&(at=.3);var ut=new go.PathFigure(0,0,!0);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E,0)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-at)*E,.5*z)),ut.add(new go.PathSegment(go.PathSegment.Line,E,z)),ut.add(new go.PathSegment(go.PathSegment.Line,0,z).close()),ot}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN,at=lt?lt.parameter2:NaN;isNaN(it)&&(it=.1),isNaN(at)&&(at=.3);var ut=new go.PathFigure(0,0,!0);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,(1-at)*E,0)),ut.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-at)*E,z)),ut.add(new go.PathSegment(go.PathSegment.Line,0,z).close()),ot}),go.Shape.defineFigureGenerator("Procedure",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN;isNaN(it)&&(it=.1);var at=new go.PathFigure(0,0,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,0)),at.add(new go.PathSegment(go.PathSegment.Line,E,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z).close());var ut=new go.PathFigure((1-it)*E,0,!1);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,(1-it)*E,z)),ut.add(new go.PathSegment(go.PathSegment.Move,it*E,0)),ut.add(new go.PathSegment(go.PathSegment.Line,it*E,z)),ot}),go.Shape.defineFigureGenerator("Process",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN;isNaN(it)&&(it=.1);var at=new go.PathFigure(0,0,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,0)),at.add(new go.PathSegment(go.PathSegment.Line,E,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z).close());var ut=new go.PathFigure(it*E,0,!1);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,it*E,z)),ot.spot2=go.Spot.BottomRight,ot}),go.Shape.defineFigureGenerator("Sort",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.5*E,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.5*z).close());var at=new go.PathFigure(0,.5*z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),ot.spot1=new go.Spot(.25,.25),ot.spot2=new go.Spot(.75,.5),ot}),go.Shape.defineFigureGenerator("Start",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN;isNaN(it)&&(it=.25);var at=new go.PathFigure(it*E,0,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*E,.5*z,.25*E,.5*z)),at.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*E,.5*z,.25*E,.5*z));var ut=new go.PathFigure(it*E,0,!1);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,it*E,z)),ut.add(new go.PathSegment(go.PathSegment.Move,(1-it)*E,0)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-it)*E,z)),ot.spot1=new go.Spot(it,0),ot.spot2=new go.Spot(1-it,1),ot}),go.Shape.defineFigureGenerator("Terminator",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.25*E,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*E,.5*z,.25*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*E,.5*z,.25*E,.5*z)),ot.spot1=new go.Spot(.23,0),ot.spot2=new go.Spot(.77,1),ot}),go.Shape.defineFigureGenerator("TransmittalTape",function(lt,E,z){var ot=new go.Geometry,it=lt?lt.parameter1:NaN;isNaN(it)&&(it=.1);var at=new go.PathFigure(0,0,!0);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,0)),at.add(new go.PathSegment(go.PathSegment.Line,E,z)),at.add(new go.PathSegment(go.PathSegment.Line,.75*E,(1-it)*z)),at.add(new go.PathSegment(go.PathSegment.Line,0,(1-it)*z).close()),ot.spot1=go.Spot.TopLeft,ot}),go.Shape.defineFigureGenerator("AndGate",function(lt,E,z){var ot=new go.Geometry,it=pt*.5,at=new go.PathFigure(0,0,!0);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),at.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*z,(.5+it)*E,0,E,(.5-it)*z)),at.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,z,E,(.5+it)*z,(.5+it)*E,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z).close()),ot.spot1=go.Spot.TopLeft,ot.spot2=new go.Spot(.55,1),ot}),go.Shape.defineFigureGenerator("Buffer",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z).close()),ot.spot1=new go.Spot(0,.25),ot.spot2=new go.Spot(.5,.75),ot}),go.Shape.defineFigureGenerator("Clock",function(lt,E,z){var ot=new go.Geometry,it=pt*.5,at=.5,ut=new go.PathFigure(E,at*z,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,at*E,z,E,(at+it)*z,(at+it)*E,z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,at*z,(at-it)*E,z,0,(at+it)*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,at*E,0,0,(at-it)*z,(at-it)*E,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E,at*z,(at+it)*E,0,E,(at-it)*z));var wt=new go.PathFigure(E,at*z,!1);ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,E,at*z));var Et=new go.PathFigure(.8*E,.75*z,!1);return ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,.8*E,.25*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.6*E,.25*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.6*E,.75*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.4*E,.75*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.4*E,.25*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.2*E,.25*z)),Et.add(new go.PathSegment(go.PathSegment.Line,.2*E,.75*z)),ot}),go.Shape.defineFigureGenerator("Ground",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.5*E,0,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.4*z)),it.add(new go.PathSegment(go.PathSegment.Move,.2*E,.6*z)),it.add(new go.PathSegment(go.PathSegment.Line,.8*E,.6*z)),it.add(new go.PathSegment(go.PathSegment.Move,.3*E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,.7*E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Move,.4*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.6*E,z)),ot}),go.Shape.defineFigureGenerator("Inverter",function(lt,E,z){var ot=new go.Geometry,it=pt*.1,at=.1,ut=.9,wt=.5,Et=new go.PathFigure(.8*E,.5*z,!0);ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,0,z)),Et.add(new go.PathSegment(go.PathSegment.Line,0,0)),Et.add(new go.PathSegment(go.PathSegment.Line,.8*E,.5*z));var At=new go.PathFigure((ut+at)*E,wt*z,!0);return ot.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+at)*z,(ut+at)*E,(wt+it)*z,(ut+it)*E,(wt+at)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,(ut-at)*E,wt*z,(ut-it)*E,(wt+at)*z,(ut-at)*E,(wt+it)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt-at)*z,(ut-at)*E,(wt-it)*z,(ut-it)*E,(wt-at)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,(ut+at)*E,wt*z,(ut+it)*E,(wt-at)*z,(ut+at)*E,(wt-it)*z)),ot.spot1=new go.Spot(0,.25),ot.spot2=new go.Spot(.4,.75),ot}),go.Shape.defineFigureGenerator("NandGate",function(lt,E,z){var ot=new go.Geometry,it=pt*.5,at=pt*.4,ut=pt*.1,wt=.1,Et=.9,At=.5,_t=new go.PathFigure(.8*E,.5*z,!0);ot.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,z,.8*E,(.5+at)*z,(.4+it)*E,z)),_t.add(new go.PathSegment(go.PathSegment.Line,0,z)),_t.add(new go.PathSegment(go.PathSegment.Line,0,0)),_t.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),_t.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.5*z,(.4+it)*E,0,.8*E,(.5-at)*z));var Mt=new go.PathFigure((Et+wt)*E,At*z,!0);return ot.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E,(At+wt)*z,(Et+wt)*E,(At+ut)*z,(Et+ut)*E,(At+wt)*z)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-wt)*E,At*z,(Et-ut)*E,(At+wt)*z,(Et-wt)*E,(At+ut)*z)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E,(At-wt)*z,(Et-wt)*E,(At-ut)*z,(Et-ut)*E,(At-wt)*z)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(Et+wt)*E,At*z,(Et+ut)*E,(At-wt)*z,(Et+wt)*E,(At-ut)*z)),ot.spot1=new go.Spot(0,.05),ot.spot2=new go.Spot(.55,.95),ot}),go.Shape.defineFigureGenerator("NorGate",function(lt,E,z){var ot=new go.Geometry,it=.5,at=pt*it,ut=0,wt=.5,Et=new go.PathFigure(.8*E,.5*z,!0);ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,0,z,.7*E,(wt+at)*z,(ut+at)*E,(wt+it)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.75*z,.25*E,.25*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.5*z,(ut+at)*E,(wt-it)*z,.7*E,(wt-at)*z)),it=.1,at=pt*.1,ut=.9,wt=.5;var At=new go.PathFigure((ut-it)*E,wt*z,!0);return ot.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt-it)*z,(ut-it)*E,(wt-at)*z,(ut-at)*E,(wt-it)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,(ut+it)*E,wt*z,(ut+at)*E,(wt-it)*z,(ut+it)*E,(wt-at)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+it)*z,(ut+it)*E,(wt+at)*z,(ut+at)*E,(wt+it)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,(ut-it)*E,wt*z,(ut-at)*E,(wt+it)*z,(ut-it)*E,(wt+at)*z)),ot.spot1=new go.Spot(.2,.25),ot.spot2=new go.Spot(.6,.75),ot}),go.Shape.defineFigureGenerator("OrGate",function(lt,E,z){var ot=new go.Geometry,it=.5,at=pt*it,ut=0,wt=.5,Et=new go.PathFigure(0,0,!0);return ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*z,(ut+at+at)*E,(wt-it)*z,.8*E,(wt-at)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,0,z,.8*E,(wt+at)*z,(ut+at+at)*E,(wt+it)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.75*z,.25*E,.25*z).close()),ot.spot1=new go.Spot(.2,.25),ot.spot2=new go.Spot(.75,.75),ot}),go.Shape.defineFigureGenerator("XnorGate",function(lt,E,z){var ot=new go.Geometry,it=.5,at=pt*it,ut=.2,wt=.5,Et=new go.PathFigure(.1*E,0,!1);ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,z,.35*E,.25*z,.35*E,.75*z));var At=new go.PathFigure(.8*E,.5*z,!0);ot.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,z,.7*E,(wt+at)*z,(ut+at)*E,(wt+it)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,.45*E,.75*z,.45*E,.25*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.5*z,(ut+at)*E,(wt-it)*z,.7*E,(wt-at)*z)),it=.1,at=pt*.1,ut=.9,wt=.5;var _t=new go.PathFigure((ut-it)*E,wt*z,!0);return ot.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt-it)*z,(ut-it)*E,(wt-at)*z,(ut-at)*E,(wt-it)*z)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(ut+it)*E,wt*z,(ut+at)*E,(wt-it)*z,(ut+it)*E,(wt-at)*z)),_t.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+it)*z,(ut+it)*E,(wt+at)*z,(ut+at)*E,(wt+it)*z)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(ut-it)*E,wt*z,(ut-at)*E,(wt+it)*z,(ut-it)*E,(wt+at)*z)),ot.spot1=new go.Spot(.4,.25),ot.spot2=new go.Spot(.65,.75),ot}),go.Shape.defineFigureGenerator("XorGate",function(lt,E,z){var ot=new go.Geometry,it=.5,at=pt*it,ut=.2,wt=.5,Et=new go.PathFigure(.1*E,0,!1);ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,z,.35*E,.25*z,.35*E,.75*z));var At=new go.PathFigure(.2*E,0,!0);return ot.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*z,(ut+at)*E,(wt-it)*z,.9*E,(wt-at)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,z,.9*E,(wt+at)*z,(ut+at)*E,(wt+it)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,.45*E,.75*z,.45*E,.25*z).close()),ot.spot1=new go.Spot(.4,.25),ot.spot2=new go.Spot(.8,.75),ot}),go.Shape.defineFigureGenerator("Capacitor",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Move,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),ot}),go.Shape.defineFigureGenerator("Resistor",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.5*z,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.1*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.2*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.3*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.4*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.6*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.7*E,.5*z)),ot}),go.Shape.defineFigureGenerator("Inductor",function(lt,E,z){var ot=new go.Geometry,it=pt*.1,at=.1,ut=.1,wt=.5,Et=new go.PathFigure((ut-it*.5)*E,z,!1);return ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut+at)*E,0,(ut-it)*E,z,(ut-at)*E,0)),ut=.3,Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,z,(ut+at)*E,0,(ut+it)*E,z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut+at)*E,0,(ut-it)*E,z,(ut-at)*E,0)),ut=.5,Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,z,(ut+at)*E,0,(ut+it)*E,z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut+at)*E,0,(ut-it)*E,z,(ut-at)*E,0)),ut=.7,Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,z,(ut+at)*E,0,(ut+it)*E,z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut+at)*E,0,(ut-it)*E,z,(ut-at)*E,0)),ut=.9,Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut+it*.5)*E,z,(ut+at)*E,0,(ut+it)*E,z)),ot}),go.Shape.defineFigureGenerator("ACvoltageSource",function(lt,E,z){var ot=new go.Geometry,it=pt*.5,at=.5,ut=.5,wt=.5,Et=new go.PathFigure((ut-at)*E,wt*z,!1);return ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt-at)*z,(ut-at)*E,(wt-it)*z,(ut-it)*E,(wt-at)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut+at)*E,wt*z,(ut+it)*E,(wt-at)*z,(ut+at)*E,(wt-it)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+at)*z,(ut+at)*E,(wt+it)*z,(ut+it)*E,(wt+at)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut-at)*E,wt*z,(ut-it)*E,(wt+at)*z,(ut-at)*E,(wt+it)*z)),Et.add(new go.PathSegment(go.PathSegment.Move,(ut-at+.1)*E,wt*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut+at-.1)*E,wt*z,ut*E,(wt-at)*z,ut*E,(wt+at)*z)),ot}),go.Shape.defineFigureGenerator("DCvoltageSource",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.75*z,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,.25*z)),it.add(new go.PathSegment(go.PathSegment.Move,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),ot}),go.Shape.defineFigureGenerator("Diode",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E,0,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),ot.spot1=new go.Spot(0,.25),ot.spot2=new go.Spot(.5,.75),ot}),go.Shape.defineFigureGenerator("Wifi",function(lt,E,z){var ot=new go.Geometry,it=E,at=z;E=E*.38,z=z*.6;var ut=pt*.8,wt=.8,Et=0,At=.5,_t=(it-E)/2,Mt=(at-z)/2,jt=new go.PathFigure(Et*E+_t,(At+wt)*z+Mt,!0);ot.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-wt)*E+_t,At*z+Mt,(Et-ut)*E+_t,(At+wt)*z+Mt,(Et-wt)*E+_t,(At+ut)*z+Mt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E+_t,(At-wt)*z+Mt,(Et-wt)*E+_t,(At-ut)*z+Mt,(Et-ut)*E+_t,(At-wt)*z+Mt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-wt+ut*.5)*E+_t,At*z+Mt,Et*E+_t,(At-wt)*z+Mt,(Et-wt+ut*.5)*E+_t,(At-ut)*z+Mt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E+_t,(At+wt)*z+Mt,(Et-wt+ut*.5)*E+_t,(At+ut)*z+Mt,Et*E+_t,(At+wt)*z+Mt).close()),ut=pt*.4,wt=.4,Et=.2,At=.5;var Lt=new go.PathFigure(Et*E+_t,(At+wt)*z+Mt,!0);ot.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-wt)*E+_t,At*z+Mt,(Et-ut)*E+_t,(At+wt)*z+Mt,(Et-wt)*E+_t,(At+ut)*z+Mt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E+_t,(At-wt)*z+Mt,(Et-wt)*E+_t,(At-ut)*z+Mt,(Et-ut)*E+_t,(At-wt)*z+Mt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-wt+ut*.5)*E+_t,At*z+Mt,Et*E+_t,(At-wt)*z+Mt,(Et-wt+ut*.5)*E+_t,(At-ut)*z+Mt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E+_t,(At+wt)*z+Mt,(Et-wt+ut*.5)*E+_t,(At+ut)*z+Mt,Et*E+_t,(At+wt)*z+Mt).close()),ut=pt*.2,wt=.2,Et=.5,At=.5;var It=new go.PathFigure((Et-wt)*E+_t,At*z+Mt,!0);ot.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,Et*E+_t,(At-wt)*z+Mt,(Et-wt)*E+_t,(At-ut)*z+Mt,(Et-ut)*E+_t,(At-wt)*z+Mt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(Et+wt)*E+_t,At*z+Mt,(Et+ut)*E+_t,(At-wt)*z+Mt,(Et+wt)*E+_t,(At-ut)*z+Mt)),It.add(new go.PathSegment(go.PathSegment.Bezier,Et*E+_t,(At+wt)*z+Mt,(Et+wt)*E+_t,(At+ut)*z+Mt,(Et+ut)*E+_t,(At+wt)*z+Mt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(Et-wt)*E+_t,At*z+Mt,(Et-ut)*E+_t,(At+wt)*z+Mt,(Et-wt)*E+_t,(At+ut)*z+Mt)),ut=pt*.4,wt=.4,Et=.8,At=.5;var Ut=new go.PathFigure(Et*E+_t,(At-wt)*z+Mt,!0);ot.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Et+wt)*E+_t,At*z+Mt,(Et+ut)*E+_t,(At-wt)*z+Mt,(Et+wt)*E+_t,(At-ut)*z+Mt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,Et*E+_t,(At+wt)*z+Mt,(Et+wt)*E+_t,(At+ut)*z+Mt,(Et+ut)*E+_t,(At+wt)*z+Mt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Et+wt-ut*.5)*E+_t,At*z+Mt,Et*E+_t,(At+wt)*z+Mt,(Et+wt-ut*.5)*E+_t,(At+ut)*z+Mt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,Et*E+_t,(At-wt)*z+Mt,(Et+wt-ut*.5)*E+_t,(At-ut)*z+Mt,Et*E+_t,(At-wt)*z+Mt).close()),ut=pt*.8,wt=.8,Et=1,At=.5;var Xt=new go.PathFigure(Et*E+_t,(At-wt)*z+Mt,!0);return ot.add(Xt),Xt.add(new go.PathSegment(go.PathSegment.Bezier,(Et+wt)*E+_t,At*z+Mt,(Et+ut)*E+_t,(At-wt)*z+Mt,(Et+wt)*E+_t,(At-ut)*z+Mt)),Xt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E+_t,(At+wt)*z+Mt,(Et+wt)*E+_t,(At+ut)*z+Mt,(Et+ut)*E+_t,(At+wt)*z+Mt)),Xt.add(new go.PathSegment(go.PathSegment.Bezier,(Et+wt-ut*.5)*E+_t,At*z+Mt,Et*E+_t,(At+wt)*z+Mt,(Et+wt-ut*.5)*E+_t,(At+ut)*z+Mt)),Xt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E+_t,(At-wt)*z+Mt,(Et+wt-ut*.5)*E+_t,(At-ut)*z+Mt,Et*E+_t,(At-wt)*z+Mt).close()),ot}),go.Shape.defineFigureGenerator("Email",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var at=new go.PathFigure(0,0,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,0)),at.add(new go.PathSegment(go.PathSegment.Move,0,z)),at.add(new go.PathSegment(go.PathSegment.Line,.45*E,.54*z)),at.add(new go.PathSegment(go.PathSegment.Move,E,z)),at.add(new go.PathSegment(go.PathSegment.Line,.55*E,.54*z)),ot}),go.Shape.defineFigureGenerator("Ethernet",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.35*E,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.65*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.65*E,.4*z)),it.add(new go.PathSegment(go.PathSegment.Line,.35*E,.4*z)),it.add(new go.PathSegment(go.PathSegment.Line,.35*E,0).close());var at=new go.PathFigure(.1*E,z,!0,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.4*E,z)),at.add(new go.PathSegment(go.PathSegment.Line,.4*E,.6*z)),at.add(new go.PathSegment(go.PathSegment.Line,.1*E,.6*z)),at.add(new go.PathSegment(go.PathSegment.Line,.1*E,z).close());var ut=new go.PathFigure(.6*E,z,!0,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.9*E,z)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*E,.6*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*E,.6*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*E,z).close());var wt=new go.PathFigure(0,.5*z,!1);return ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),wt.add(new go.PathSegment(go.PathSegment.Move,.5*E,.5*z)),wt.add(new go.PathSegment(go.PathSegment.Line,.5*E,.4*z)),wt.add(new go.PathSegment(go.PathSegment.Move,.75*E,.5*z)),wt.add(new go.PathSegment(go.PathSegment.Line,.75*E,.6*z)),wt.add(new go.PathSegment(go.PathSegment.Move,.25*E,.5*z)),wt.add(new go.PathSegment(go.PathSegment.Line,.25*E,.6*z)),ot}),go.Shape.defineFigureGenerator("Power",function(lt,E,z){var ot=new go.Geometry,it=pt*.4,at=.4,ut=.5,wt=.5,Et=Ft(),At=Ft(),_t=Ft(),Mt=Ft();kt(ut,wt-at,ut+it,wt-at,ut+at,wt-it,ut+at,wt,.5,Et,Et,At,_t,Mt);var jt=Rt(At.x,At.y),Lt=new go.PathFigure(At.x*E,At.y*z,!0);ot.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+at)*E,wt*z,_t.x*E,_t.y*z,Mt.x*E,Mt.y*z)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+at)*z,(ut+at)*E,(wt+it)*z,(ut+it)*E,(wt+at)*z)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(ut-at)*E,wt*z,(ut-it)*E,(wt+at)*z,(ut-at)*E,(wt+it)*z)),kt(ut-at,wt,ut-at,wt-it,ut-it,wt-at,ut,wt-at,.5,_t,Mt,At,Et,Et),Lt.add(new go.PathSegment(go.PathSegment.Bezier,At.x*E,At.y*z,_t.x*E,_t.y*z,Mt.x*E,Mt.y*z)),it=pt*.3,at=.3,kt(ut-at,wt,ut-at,wt-it,ut-it,wt-at,ut,wt-at,.5,_t,Mt,At,Et,Et),Lt.add(new go.PathSegment(go.PathSegment.Line,At.x*E,At.y*z)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(ut-at)*E,wt*z,Mt.x*E,Mt.y*z,_t.x*E,_t.y*z)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+at)*z,(ut-at)*E,(wt+it)*z,(ut-it)*E,(wt+at)*z)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+at)*E,wt*z,(ut+it)*E,(wt+at)*z,(ut+at)*E,(wt+it)*z)),kt(ut,wt-at,ut+it,wt-at,ut+at,wt-it,ut+at,wt,.5,Et,Et,At,_t,Mt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,At.x*E,At.y*z,Mt.x*E,Mt.y*z,_t.x*E,_t.y*z).close());var Lt=new go.PathFigure(.45*E,0,!0);return ot.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,.45*E,.5*z)),Lt.add(new go.PathSegment(go.PathSegment.Line,.55*E,.5*z)),Lt.add(new go.PathSegment(go.PathSegment.Line,.55*E,0).close()),ie(Et),ie(At),ie(_t),ie(Mt),ie(jt),ot.spot1=new go.Spot(.25,.45),ot.spot2=new go.Spot(.75,.8),ot}),go.Shape.defineFigureGenerator("Fallout",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,z/2,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Arc,180,360,E/2,z/2,E/2,z/2));function at(ut,wt,Et){ut.add(new go.PathSegment(go.PathSegment.Move,(.3+wt)*E,(.8+Et)*z)),ut.add(new go.PathSegment(go.PathSegment.Line,(.5+wt)*E,(.5+Et)*z)),ut.add(new go.PathSegment(go.PathSegment.Line,(.1+wt)*E,(.5+Et)*z)),ut.add(new go.PathSegment(go.PathSegment.Line,(.3+wt)*E,(.8+Et)*z).close())}return at(it,0,0),at(it,.4,0),at(it,.2,-.3),ot}),go.Shape.defineFigureGenerator("IrritationHazard",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.2*E,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.3*z)),it.add(new go.PathSegment(go.PathSegment.Line,.8*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.2*z)),it.add(new go.PathSegment(go.PathSegment.Line,.7*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,.8*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.7*z)),it.add(new go.PathSegment(go.PathSegment.Line,.2*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,.3*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.2*z).close()),ot.spot1=new go.Spot(.3,.3),ot.spot2=new go.Spot(.7,.7),ot}),go.Shape.defineFigureGenerator("ElectricalHazard",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.37*E,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.11*z)),it.add(new go.PathSegment(go.PathSegment.Line,.77*E,.04*z)),it.add(new go.PathSegment(go.PathSegment.Line,.33*E,.49*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.37*z)),it.add(new go.PathSegment(go.PathSegment.Line,.63*E,.86*z)),it.add(new go.PathSegment(go.PathSegment.Line,.77*E,.91*z)),it.add(new go.PathSegment(go.PathSegment.Line,.34*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.34*E,.78*z)),it.add(new go.PathSegment(go.PathSegment.Line,.44*E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,.65*E,.56*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.68*z).close()),ot}),go.Shape.defineFigureGenerator("FireHazard",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.1*E,z,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,.29*E,0,-.25*E,.63*z,.45*E,.44*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.51*E,.42*z,.48*E,.17*z,.54*E,.35*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.59*E,.18*z,.59*E,.29*z,.58*E,.28*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.75*E,.6*z,.8*E,.34*z,.88*E,.43*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.88*E,.31*z,.87*E,.48*z,.88*E,.43*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,z,1.17*E,.76*z,.82*E,.8*z).close()),ot.spot1=new go.Spot(.07,.445),ot.spot2=new go.Spot(.884,.958),ot}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(lt,E,z){var ot=new go.Geometry,it=.5,at=0,ut=0,wt=it*pt,Et=.4*Math.SQRT2/2+.5,At=.5-.5*Math.SQRT2/2,_t=1,Mt=.5,jt=.5,Lt=0,It=new go.PathFigure(Et*E,(1-At)*z,!1);return ot.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,_t*E,Mt*z,_t*E,.7*z,_t*E,Mt*z)),It.add(new go.PathSegment(go.PathSegment.Bezier,(jt+at)*E,(Lt+at)*z,(.5+it+at)*E,(.5-wt+at)*z,(.5+wt+at)*E,(.5-it+at)*z)),It.add(new go.PathSegment(go.PathSegment.Bezier,(.5-it+at)*E,(.5+ut)*z,(.5-wt+at)*E,(.5-it+ut)*z,(.5-it+at)*E,(.5-wt+ut)*z)),It.add(new go.PathSegment(go.PathSegment.Bezier,(.35+at)*E,.9*z,(.5-it+at)*E,(.5+wt+ut)*z,(.5-wt+at)*E,.9*z)),It.add(new go.PathSegment(go.PathSegment.Move,(.25+at)*E,.8*z)),It.add(new go.PathSegment(go.PathSegment.Line,(.35+at)*E,.9*z)),It.add(new go.PathSegment(go.PathSegment.Line,(.2+at)*E,.95*z)),ot}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Move,.5*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),it.add(new go.PathSegment(go.PathSegment.Move,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),ot}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Move,0,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Move,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),ot}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!1);ot.add(it);var at=new go.PathFigure(E,z,!1);ot.add(at);var ut=new go.PathFigure(0,.5*z,!1);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.5*z,.2*E,.35*z,.3*E,.35*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*z,.7*E,.65*z,.8*E,.65*z)),ot}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.5*z,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z).close()),ot}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.2*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,.2*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.8*z).close());var it=new go.PathFigure(0,.2*z,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.2*z)),ot}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.7*E,z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.3*E,z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,0,.6*E,.5*z,0,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.7*E,0)),it.add(new go.PathSegment(go.PathSegment.Bezier,.7*E,z,.4*E,.5*z,E,.5*z).close());var at=new go.PathFigure(.45*E,.73*z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.7*E,.73*z)),at.add(new go.PathSegment(go.PathSegment.Move,.38*E,.5*z)),at.add(new go.PathSegment(go.PathSegment.Line,.63*E,.5*z)),at.add(new go.PathSegment(go.PathSegment.Move,.31*E,.27*z)),at.add(new go.PathSegment(go.PathSegment.Line,.56*E,.27*z)),ot}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!1);ot.add(it);var at=new go.PathFigure(.335*E,(1-.555)*z,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.335*E,(1-.405)*z)),at.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.405)*z)),at.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.555)*z)),at.add(new go.PathSegment(go.PathSegment.Bezier,E,.68*z,(1-.12)*E,.46*z,(1-.02)*E,.54*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,z)),at.add(new go.PathSegment(go.PathSegment.Line,0,.68*z)),at.add(new go.PathSegment(go.PathSegment.Bezier,.335*E,(1-.555)*z,.02*E,.54*z,.12*E,.46*z)),at.add(new go.PathSegment(go.PathSegment.Line,.365*E,(1-.595)*z));var ut=.5-.285,wt=.5,Et=ut,At=Math.PI/4,_t=4*(1-Math.cos(At))/(3*Math.sin(At)),Mt=_t*.5,jt=ut,Lt=ut,It=_t*jt,Ut=_t*Lt;at.add(new go.PathSegment(go.PathSegment.Bezier,(wt-jt)*E,Et*z,(wt-(It+jt)/2)*E,(Et+(Lt+Ut)/2)*z,(wt-jt)*E,(Et+Ut)*z)),at.add(new go.PathSegment(go.PathSegment.Bezier,wt*E,(Et-Lt)*z,(wt-jt)*E,(Et-Ut)*z,(wt-It)*E,(Et-Lt)*z)),at.add(new go.PathSegment(go.PathSegment.Bezier,(wt+jt)*E,Et*z,(wt+It)*E,(Et-Lt)*z,(wt+jt)*E,(Et-Ut)*z)),at.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*E,(1-.595)*z,(wt+jt)*E,(Et+Ut)*z,(wt+(It+jt)/2)*E,(Et+(Lt+Ut)/2)*z)),at.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*E,(1-.595)*z)),at.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.555)*z)),at.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.405)*z)),at.add(new go.PathSegment(go.PathSegment.Line,.335*E,(1-.405)*z));var Xt=new go.PathFigure(.2*E,z,!1);ot.add(Xt),Xt.add(new go.PathSegment(go.PathSegment.Line,.2*E,.8*z));var Gt=new go.PathFigure(.8*E,z,!1);return ot.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Line,.8*E,.8*z)),ot}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.1*E,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.9*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.9*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.1*E,z).close());var at=new go.PathFigure(.2*E,.2*z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*z)),at.add(new go.PathSegment(go.PathSegment.Move,.2*E,.4*z)),at.add(new go.PathSegment(go.PathSegment.Line,.8*E,.4*z)),at.add(new go.PathSegment(go.PathSegment.Move,.2*E,.6*z)),at.add(new go.PathSegment(go.PathSegment.Line,.8*E,.6*z)),at.add(new go.PathSegment(go.PathSegment.Move,.2*E,.8*z)),at.add(new go.PathSegment(go.PathSegment.Line,.8*E,.8*z)),ot}),go.Shape.defineFigureGenerator("BpmnEventError",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,z,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.33*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.66*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.66*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.33*E,.5*z).close()),ot}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!1);ot.add(it);var at=new go.PathFigure(E,z,!1);ot.add(at);var ut=new go.PathFigure(.1*E,z,!0);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*E,z)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*z).close()),ot}),go.Shape.defineFigureGenerator("Caution",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.05*E,z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,.8*z,0,z,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,.45*E,.1*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.55*E,.1*z,.5*E,0,.5*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.95*E,.9*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,z,E,z,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.05*E,z));var at=.05;return it.add(new go.PathSegment(go.PathSegment.Move,(.5-at)*E,.875*z)),it.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*E,.875*z,at*E,at*z)),it.add(new go.PathSegment(go.PathSegment.Move,.5*E,.75*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.325*z,.575*E,.725*z,.625*E,.375*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.75*z,.375*E,.375*z,.425*E,.725*z)),ot}),go.Shape.defineFigureGenerator("Recycle",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.45*E,.95*z,!1);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.2*E,.95*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.185*E,.85*z,.17*E,.95*z,.15*E,.9*z)),it.add(new go.PathSegment(go.PathSegment.Line,.235*E,.75*z)),it.add(new go.PathSegment(go.PathSegment.Line,.3*E,.625*z)),it.add(new go.PathSegment(go.PathSegment.Line,.35*E,.65*z)),it.add(new go.PathSegment(go.PathSegment.Line,.275*E,.45*z)),it.add(new go.PathSegment(go.PathSegment.Line,.05*E,.45*z)),it.add(new go.PathSegment(go.PathSegment.Line,.1*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.05*E,.575*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.1875*E,.95*z,0,.675*z,0,.7*z)),it.add(new go.PathSegment(go.PathSegment.Move,.45*E,.95*z)),it.add(new go.PathSegment(go.PathSegment.Line,.45*E,.775*z)),it.add(new go.PathSegment(go.PathSegment.Line,.22*E,.775*z));var at=new go.PathFigure(.475*E,.2*z,!1);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.4*E,.4*z)),at.add(new go.PathSegment(go.PathSegment.Line,.225*E,.3*z)),at.add(new go.PathSegment(go.PathSegment.Line,.275*E,.175*z)),at.add(new go.PathSegment(go.PathSegment.Line,.325*E,.05*z)),at.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,.05*z,.35*E,0,.375*E,0)),at.add(new go.PathSegment(go.PathSegment.Line,.575*E,.375*z)),at.add(new go.PathSegment(go.PathSegment.Line,.525*E,.4*z)),at.add(new go.PathSegment(go.PathSegment.Line,.75*E,.475*z)),at.add(new go.PathSegment(go.PathSegment.Line,.85*E,.315*z)),at.add(new go.PathSegment(go.PathSegment.Line,.8*E,.32*z)),at.add(new go.PathSegment(go.PathSegment.Line,.65*E,.05*z)),at.add(new go.PathSegment(go.PathSegment.Bezier,.575*E,0,.65*E,.05*z,.625*E,0)),at.add(new go.PathSegment(go.PathSegment.Line,.38*E,.0105*z));var ut=new go.PathFigure(.675*E,.575*z,!1);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.875*E,.525*z)),ut.add(new go.PathSegment(go.PathSegment.Line,E,.775*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.85*E,.95*z,E,.8*z,E,.85*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.65*E,.95*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.65*E,z)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*E,.85*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.65*E,.725*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.65*E,.775*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.7*E,.775*z)),ut.add(new go.PathSegment(go.PathSegment.Line,E,.775*z)),ut.add(new go.PathSegment(go.PathSegment.Move,.675*E,.575*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.775*E,.775*z)),ot}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(lt,E,z){var ot=new go.Geometry,it=.5,at=pt*.5,ut=new go.PathFigure(E,it*z,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,it*E,z,E,(it+at)*z,(it+at)*E,z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,it*z,(it-at)*E,z,0,(it+at)*z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,it*E,0,0,(it-at)*z,(it-at)*E,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E,it*z,(it+at)*E,0,E,(it-at)*z));var wt=new go.PathFigure(it*E,0,!1);return ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,it*E,.15*z)),wt.add(new go.PathSegment(go.PathSegment.Move,it*E,z)),wt.add(new go.PathSegment(go.PathSegment.Line,it*E,.85*z)),wt.add(new go.PathSegment(go.PathSegment.Move,0,it*z)),wt.add(new go.PathSegment(go.PathSegment.Line,.15*E,it*z)),wt.add(new go.PathSegment(go.PathSegment.Move,E,it*z)),wt.add(new go.PathSegment(go.PathSegment.Line,.85*E,it*z)),wt.add(new go.PathSegment(go.PathSegment.Move,it*E,it*z)),wt.add(new go.PathSegment(go.PathSegment.Line,.58*E,.1*z)),wt.add(new go.PathSegment(go.PathSegment.Move,it*E,it*z)),wt.add(new go.PathSegment(go.PathSegment.Line,.78*E,.54*z)),ot}),go.Shape.defineFigureGenerator("Package",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.15*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,.15*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z).close());var at=new go.PathFigure(0,.15*z,!0);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,0)),at.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),at.add(new go.PathSegment(go.PathSegment.Line,.65*E,.15*z).close()),ot.spot1=new go.Spot(0,.1),ot.spot2=new go.Spot(1,1),ot}),go.Shape.defineFigureGenerator("Class",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var at=new go.PathFigure(0,.2*z,!1);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,.2*z).close());var ut=new go.PathFigure(0,.5*z,!1);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E,.5*z).close()),ot}),go.Shape.defineFigureGenerator("Component",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E,z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.15*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.15*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z).close());var at=new go.PathFigure(0,.2*z,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.45*E,.2*z)),at.add(new go.PathSegment(go.PathSegment.Line,.45*E,.4*z)),at.add(new go.PathSegment(go.PathSegment.Line,0,.4*z)),at.add(new go.PathSegment(go.PathSegment.Line,0,.2*z).close());var ut=new go.PathFigure(0,.6*z,!0);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.45*E,.6*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.45*E,.8*z)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.8*z)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.6*z).close()),ot}),go.Shape.defineFigureGenerator("Boat Shipment",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.15*E,.6*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.6*z)),it.add(new go.PathSegment(go.PathSegment.Line,.15*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.85*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.6*z)),it.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*z));var at=new go.PathFigure(.15*E,.6*z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*z)),ot}),go.Shape.defineFigureGenerator("Customer/Supplier",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E,z,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.66*E,.33*z)),it.add(new go.PathSegment(go.PathSegment.Line,.66*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.33*E,.33*z)),it.add(new go.PathSegment(go.PathSegment.Line,.33*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,0,.33*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z).close()),ot}),go.Shape.defineFigureGenerator("Workcell",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,z,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.65*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.65*E,.4*z)),it.add(new go.PathSegment(go.PathSegment.Line,.35*E,.4*z)),it.add(new go.PathSegment(go.PathSegment.Line,.35*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z).close()),ot}),go.Shape.defineFigureGenerator("Supermarket",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.33*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.33*z)),it.add(new go.PathSegment(go.PathSegment.Move,E,.33*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.66*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.66*z)),it.add(new go.PathSegment(go.PathSegment.Move,E,.66*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),ot}),go.Shape.defineFigureGenerator("TruckShipment",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.6*E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var at=new go.PathFigure(E,.8*z,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,.4*z)),at.add(new go.PathSegment(go.PathSegment.Line,.6*E,.4*z)),at.add(new go.PathSegment(go.PathSegment.Line,.6*E,.8*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,.8*z).close());var ut=.1,wt=pt*.1,Et=.2,At=.9,_t=new go.PathFigure((Et-ut)*E,At*z,!0);ot.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,Et*E,(At-ut)*z,(Et-ut)*E,(At-wt)*z,(Et-wt)*E,(At-ut)*z)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Et+ut)*E,At*z,(Et+wt)*E,(At-ut)*z,(Et+ut)*E,(At-wt)*z)),_t.add(new go.PathSegment(go.PathSegment.Bezier,Et*E,(At+ut)*z,(Et+ut)*E,(At+wt)*z,(Et+wt)*E,(At+ut)*z)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Et-ut)*E,At*z,(Et-wt)*E,(At+ut)*z,(Et-ut)*E,(At+wt)*z).close()),ut=.1,wt=pt*.1,Et=.8,At=.9;var Mt=new go.PathFigure((Et-ut)*E,At*z,!0);return ot.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E,(At-ut)*z,(Et-ut)*E,(At-wt)*z,(Et-wt)*E,(At-ut)*z)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(Et+ut)*E,At*z,(Et+wt)*E,(At-ut)*z,(Et+ut)*E,(At-wt)*z)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,Et*E,(At+ut)*z,(Et+ut)*E,(At+wt)*z,(Et+wt)*E,(At+ut)*z)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-ut)*E,At*z,(Et-wt)*E,(At+ut)*z,(Et-ut)*E,(At+wt)*z).close()),ot}),go.Shape.defineFigureGenerator("KanbanPost",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.2*E,0,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.2*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.8*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.8*E,0)),it.add(new go.PathSegment(go.PathSegment.Move,.5*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.2*E,z)),it.add(new go.PathSegment(go.PathSegment.Move,.5*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.8*E,z)),ot}),go.Shape.defineFigureGenerator("Forklift",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,0,0));var at=new go.PathFigure(0,.5*z,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,.8*z)),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,.8*z)),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*z)),at.add(new go.PathSegment(go.PathSegment.Line,0,.5*z));var ut=new go.PathFigure(.5*E,.8*z,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*E,.1*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*E,.1*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*E,.8*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*E,.8*z));var wt=new go.PathFigure(.5*E,.7*z,!1);ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,E,.7*z));var Et=.1,At=pt*.1,_t=.1,Mt=.9,jt=new go.PathFigure((_t-Et)*E,Mt*z,!0);ot.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,_t*E,(Mt-Et)*z,(_t-Et)*E,(Mt-At)*z,(_t-At)*E,(Mt-Et)*z)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(_t+Et)*E,Mt*z,(_t+At)*E,(Mt-Et)*z,(_t+Et)*E,(Mt-At)*z)),jt.add(new go.PathSegment(go.PathSegment.Bezier,_t*E,(Mt+Et)*z,(_t+Et)*E,(Mt+At)*z,(_t+At)*E,(Mt+Et)*z)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(_t-Et)*E,Mt*z,(_t-At)*E,(Mt+Et)*z,(_t-Et)*E,(Mt+At)*z)),Et=.1,At=pt*.1,_t=.4,Mt=.9;var Lt=new go.PathFigure((_t-Et)*E,Mt*z,!0);return ot.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,_t*E,(Mt-Et)*z,(_t-Et)*E,(Mt-At)*z,(_t-At)*E,(Mt-Et)*z)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(_t+Et)*E,Mt*z,(_t+At)*E,(Mt-Et)*z,(_t+Et)*E,(Mt-At)*z)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,_t*E,(Mt+Et)*z,(_t+Et)*E,(Mt+At)*z,(_t+At)*E,(Mt+Et)*z)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(_t-Et)*E,Mt*z,(_t-At)*E,(Mt+Et)*z,(_t-Et)*E,(Mt+At)*z)),ot}),go.Shape.defineFigureGenerator("RailShipment",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.1*E,.4*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.45*E,.4*z)),it.add(new go.PathSegment(go.PathSegment.Line,.45*E,.9*z)),it.add(new go.PathSegment(go.PathSegment.Line,.1*E,.9*z)),it.add(new go.PathSegment(go.PathSegment.Line,.1*E,.4*z).close());var at=new go.PathFigure(.45*E,.7*z,!1);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.55*E,.7*z));var ut=new go.PathFigure(.55*E,.4*z,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*E,.9*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*E,.9*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*E,.4*z).close());var _t=.05,Mt=pt*.05,jt=.175,Lt=.95,wt=new go.PathFigure((jt-_t)*E,Lt*z,!0);ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,jt*E,(Lt-_t)*z,(jt-_t)*E,(Lt-Mt)*z,(jt-Mt)*E,(Lt-_t)*z)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(jt+_t)*E,Lt*z,(jt+Mt)*E,(Lt-_t)*z,(jt+_t)*E,(Lt-Mt)*z)),wt.add(new go.PathSegment(go.PathSegment.Bezier,jt*E,(Lt+_t)*z,(jt+_t)*E,(Lt+Mt)*z,(jt+Mt)*E,(Lt+_t)*z)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(jt-_t)*E,Lt*z,(jt-Mt)*E,(Lt+_t)*z,(jt-_t)*E,(Lt+Mt)*z));var _t=.05,Mt=pt*.05,jt=.375,Lt=.95,Et=new go.PathFigure((jt-_t)*E,Lt*z,!0);ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,jt*E,(Lt-_t)*z,(jt-_t)*E,(Lt-Mt)*z,(jt-Mt)*E,(Lt-_t)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(jt+_t)*E,Lt*z,(jt+Mt)*E,(Lt-_t)*z,(jt+_t)*E,(Lt-Mt)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,jt*E,(Lt+_t)*z,(jt+_t)*E,(Lt+Mt)*z,(jt+Mt)*E,(Lt+_t)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(jt-_t)*E,Lt*z,(jt-Mt)*E,(Lt+_t)*z,(jt-_t)*E,(Lt+Mt)*z));var _t=.05,Mt=pt*.05,jt=.625,Lt=.95,At=new go.PathFigure((jt-_t)*E,Lt*z,!0);ot.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,jt*E,(Lt-_t)*z,(jt-_t)*E,(Lt-Mt)*z,(jt-Mt)*E,(Lt-_t)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,(jt+_t)*E,Lt*z,(jt+Mt)*E,(Lt-_t)*z,(jt+_t)*E,(Lt-Mt)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,jt*E,(Lt+_t)*z,(jt+_t)*E,(Lt+Mt)*z,(jt+Mt)*E,(Lt+_t)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,(jt-_t)*E,Lt*z,(jt-Mt)*E,(Lt+_t)*z,(jt-_t)*E,(Lt+Mt)*z));var _t=.05,Mt=pt*.05,jt=.825,Lt=.95,It=new go.PathFigure((jt-_t)*E,Lt*z,!0);ot.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,jt*E,(Lt-_t)*z,(jt-_t)*E,(Lt-Mt)*z,(jt-Mt)*E,(Lt-_t)*z)),It.add(new go.PathSegment(go.PathSegment.Bezier,(jt+_t)*E,Lt*z,(jt+Mt)*E,(Lt-_t)*z,(jt+_t)*E,(Lt-Mt)*z)),It.add(new go.PathSegment(go.PathSegment.Bezier,jt*E,(Lt+_t)*z,(jt+_t)*E,(Lt+Mt)*z,(jt+Mt)*E,(Lt+_t)*z)),It.add(new go.PathSegment(go.PathSegment.Bezier,(jt-_t)*E,Lt*z,(jt-Mt)*E,(Lt+_t)*z,(jt-_t)*E,(Lt+Mt)*z).close());var Ut=new go.PathFigure(0,z,!1);return ot.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Line,E,z).close()),ot}),go.Shape.defineFigureGenerator("Warehouse",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var at=new go.PathFigure(0,.2*z,!1);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,.2*z).close());var ut=new go.PathFigure(.15*E,z,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.15*E,.5*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*E,.5*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*E,z)),ut.add(new go.PathSegment(go.PathSegment.Line,.15*E,z).close());var wt=.05,Et=pt*.05,At=.35,_t=.775,Mt=new go.PathFigure((At-wt)*E,_t*z,!0);return ot.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,At*E,(_t-wt)*z,(At-wt)*E,(_t-Et)*z,(At-Et)*E,(_t-wt)*z)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(At+wt)*E,_t*z,(At+Et)*E,(_t-wt)*z,(At+wt)*E,(_t-Et)*z)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,At*E,(_t+wt)*z,(At+wt)*E,(_t+Et)*z,(At+Et)*E,(_t+wt)*z)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(At-wt)*E,_t*z,(At-Et)*E,(_t+wt)*z,(At-wt)*E,(_t+Et)*z).close()),ot}),go.Shape.defineFigureGenerator("ControlCenter",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,z,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,.1*E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,.1*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.9*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Move,.1*E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*z).close()),ot}),go.Shape.defineFigureGenerator("Bluetooth",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.75*z,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,.75*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.25*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.75*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.25*z)),ot}),go.Shape.defineFigureGenerator("Bookmark",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,0,0)),it.add(new go.PathSegment(go.PathSegment.Move,.2*E,.2*z)),it.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*z)),it.add(new go.PathSegment(go.PathSegment.Move,.2*E,.4*z)),it.add(new go.PathSegment(go.PathSegment.Line,.8*E,.4*z)),ot}),go.Shape.defineFigureGenerator("Bookmark",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),it.add(new go.PathSegment(go.PathSegment.Line,0,0)),it.add(new go.PathSegment(go.PathSegment.Move,.2*E,.2*z)),it.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*z)),it.add(new go.PathSegment(go.PathSegment.Move,.2*E,.4*z)),it.add(new go.PathSegment(go.PathSegment.Line,.8*E,.4*z)),ot}),go.Shape.defineFigureGenerator("Globe",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.5*E,0,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),it.add(new go.PathSegment(go.PathSegment.Move,0,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Move,.5*E,0)),it.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*z,.75*E,0,E,.25*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,z,E,.75*z,.75*E,z)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*z,.25*E,z,0,.75*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,.25*z,.25*E,0)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,z,.15*E,.25*z,.15*E,.75*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,.85*E,.75*z,.85*E,.25*z)),it.add(new go.PathSegment(go.PathSegment.Move,.1675*E,.15*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.8325*E,.15*z,.35*E,.3*z,.65*E,.3*z)),it.add(new go.PathSegment(go.PathSegment.Move,.1675*E,.85*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.8325*E,.85*z,.35*E,.7*z,.65*E,.7*z)),ot}),go.Shape.defineFigureGenerator("Wave",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.25*z,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.25*z,.1*E,0,.2*E,0)),it.add(new go.PathSegment(go.PathSegment.Bezier,.7*E,.25*z,.425*E,.5*z,.575*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,E,.25*z,.8*E,0,.9*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.75*z)),it.add(new go.PathSegment(go.PathSegment.Move,0,.25*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.75*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.75*z,.1*E,.5*z,.2*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.7*E,.75*z,.425*E,z,.575*E,z)),it.add(new go.PathSegment(go.PathSegment.Bezier,E,.75*z,.8*E,.5*z,.9*E,.5*z)),ot}),go.Shape.defineFigureGenerator("Operator",function(lt,E,z){var ot=new go.Geometry,it=.3,at=pt*.3,ut=.5,wt=.7,Et=new go.PathFigure((ut-it)*E,wt*z,!0);ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt-it)*z,(ut-it)*E,(wt-at)*z,(ut-at)*E,(wt-it)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut+it)*E,wt*z,(ut+at)*E,(wt-it)*z,(ut+it)*E,(wt-at)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+it)*z,(ut+it)*E,(wt+at)*z,(ut+at)*E,(wt+it)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut-it)*E,wt*z,(ut-at)*E,(wt+it)*z,(ut-it)*E,(wt+at)*z));var At=new go.PathFigure(0,.7*z,!1);return ot.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,E,.7*z,0,0,E,0)),ot}),go.Shape.defineFigureGenerator("TripleFanBlades",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.5*E,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.65*z,.65*E,.3*z,.65*E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,.35*E,.5*z,.35*E,.3*z)),it.add(new go.PathSegment(go.PathSegment.Move,.5*E,.65*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,z,.3*E,.6*z,.1*E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.65*z,.2*E,z,.35*E,.95*z)),it.add(new go.PathSegment(go.PathSegment.Move,.5*E,.65*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,E,z,.7*E,.6*z,.9*E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.65*z,.8*E,z,.65*E,.95*z)),ot}),go.Shape.defineFigureGenerator("CentrifugalPump",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E,0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*z,0,.075*z,0,.5*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,z,0,z,.4*E,z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.4*z,.8*E,z,.85*E,.6*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.4*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,0)),ot}),go.Shape.defineFigureGenerator("Battery",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,.1*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.1*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Move,.4*E,.1*z)),it.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.6*E,.1*z));var at=new go.PathFigure(0,.6*z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Move,0,.4*z)),at.add(new go.PathSegment(go.PathSegment.Line,E,.4*z)),ot}),go.Shape.defineFigureGenerator("Delete",function(lt,E,z){var ot=new go.Geometry,it=.5,at=pt*.5,ut=.5,wt=.5,Et=new go.PathFigure((ut-it)*E,wt*z,!0);ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt-it)*z,(ut-it)*E,(wt-at)*z,(ut-at)*E,(wt-it)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut+it)*E,wt*z,(ut+at)*E,(wt-it)*z,(ut+it)*E,(wt-at)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+it)*z,(ut+it)*E,(wt+at)*z,(ut+at)*E,(wt+it)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut-it)*E,wt*z,(ut-at)*E,(wt+it)*z,(ut-it)*E,(wt+at)*z));var At=new go.PathFigure(.15*E,.5*z,!1);return ot.add(At),At.add(new go.PathSegment(go.PathSegment.Line,.85*E,.5*z)),ot}),go.Shape.defineFigureGenerator("Flag",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.1*z,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Move,0,.1*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.1*z,.15*E,0,.35*E,0)),it.add(new go.PathSegment(go.PathSegment.Bezier,E,.1*z,.65*E,.2*z,.85*E,.2*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.5*z,.85*E,.6*z,.65*E,.6*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*z,.35*E,.4*z,.15*E,.4*z).close()),ot}),go.Shape.defineFigureGenerator("Help",function(lt,E,z){var ot=new go.Geometry,it=.5,at=pt*.5,ut=.5,wt=.5,Et=new go.PathFigure((ut-it)*E,wt*z,!1);ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt-it)*z,(ut-it)*E,(wt-at)*z,(ut-at)*E,(wt-it)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut+it)*E,wt*z,(ut+at)*E,(wt-it)*z,(ut+it)*E,(wt-at)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+it)*z,(ut+it)*E,(wt+at)*z,(ut+at)*E,(wt+it)*z)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ut-it)*E,wt*z,(ut-at)*E,(wt+it)*z,(ut-it)*E,(wt+at)*z).close()),it=.05,at=pt*.05,ut=.5,wt=.8;var At=new go.PathFigure((ut-it)*E,wt*z,!1);return ot.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt-it)*z,(ut-it)*E,(wt-at)*z,(ut-at)*E,(wt-it)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,(ut+it)*E,wt*z,(ut+at)*E,(wt-it)*z,(ut+it)*E,(wt-at)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,ut*E,(wt+it)*z,(ut+it)*E,(wt+at)*z,(ut+at)*E,(wt+it)*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,(ut-it)*E,wt*z,(ut-at)*E,(wt+it)*z,(ut-it)*E,(wt+at)*z).close()),At.add(new go.PathSegment(go.PathSegment.Move,.5*E,.7*z)),At.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*z,.75*E,.475*z,.75*E,.225*z)),At.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.35*z,.4*E,.2*z,.3*E,.25*z)),ot}),go.Shape.defineFigureGenerator("Location",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(.5*E,z,!0).add(new go.PathSegment(go.PathSegment.Line,.75*E,.5*z)).add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,.975*E,.025*z,.5*E,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*E,.5*z,.5*E,0,.025*E,.025*z).close()).add(new go.PathSegment(go.PathSegment.Move,.5*E,.2*z)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*E,.3*z,.1*E,.1*z).close()))}),go.Shape.defineFigureGenerator("Lock",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.5*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.5*z));var at=new go.PathFigure(.2*E,.5*z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Move,.2*E,.5*z)),at.add(new go.PathSegment(go.PathSegment.Line,.2*E,.3*z)),at.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.3*z,.25*E,0,.75*E,0)),at.add(new go.PathSegment(go.PathSegment.Line,.8*E,.5*z)),at.add(new go.PathSegment(go.PathSegment.Line,.8*E,.3*z)),ot}),go.Shape.defineFigureGenerator("Unlocked",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.5*z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,.5*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.5*z));var at=new go.PathFigure(.2*E,.5*z,!1);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Move,.2*E,.5*z)),at.add(new go.PathSegment(go.PathSegment.Line,.2*E,.3*z)),at.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.3*z,.25*E,0,.75*E,0)),at.add(new go.PathSegment(go.PathSegment.Line,.8*E,.35*z)),ot}),go.Shape.defineFigureGenerator("Gear",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(.9375*E,.56246875*z,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*E,.4375*z)).add(new go.PathSegment(go.PathSegment.Line,.80621875*E,.4375*z)).add(new go.PathSegment(go.PathSegment.Bezier,.763*E,.3316875*z,.79840625*E,.39915625*z,.7834375*E,.3635*z)).add(new go.PathSegment(go.PathSegment.Line,.8566875*E,.23796875*z)).add(new go.PathSegment(go.PathSegment.Line,.76825*E,.14959375*z)).add(new go.PathSegment(go.PathSegment.Line,.67596875*E,.24184375*z)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*E,.19378125*z,.64228125*E,.2188125*z,.603875*E,.2021875*z)).add(new go.PathSegment(go.PathSegment.Line,.5625*E,.0625*z)).add(new go.PathSegment(go.PathSegment.Line,.4375*E,.0625*z)).add(new go.PathSegment(go.PathSegment.Line,.4375*E,.19378125*z)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*E,.239375*z,.39759375*E,.20190625*z,.36053125*E,.2176875*z)).add(new go.PathSegment(go.PathSegment.Line,.2379375*E,.14959375*z)).add(new go.PathSegment(go.PathSegment.Line,.14953125*E,.2379375*z)).add(new go.PathSegment(go.PathSegment.Line,.23934375*E,.3278125*z)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*E,.4375*z,.21765625*E,.36059375*z,.201875*E,.397625*z)).add(new go.PathSegment(go.PathSegment.Line,.0625*E,.4375*z)).add(new go.PathSegment(go.PathSegment.Line,.0625*E,.5625*z)).add(new go.PathSegment(go.PathSegment.Line,.1938125*E,.5625*z)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*E,.67596875*z,.20221875*E,.603875*z,.21884375*E,.64228125*z)).add(new go.PathSegment(go.PathSegment.Line,.1495625*E,.76825*z)).add(new go.PathSegment(go.PathSegment.Line,.238*E,.8566875*z)).add(new go.PathSegment(go.PathSegment.Line,.3316875*E,.76296875*z)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*E,.80621875*z,.36353125*E,.78340625*z,.3991875*E,.79840625*z)).add(new go.PathSegment(go.PathSegment.Line,.43753125*E,.9375*z)).add(new go.PathSegment(go.PathSegment.Line,.5625*E,.9375*z)).add(new go.PathSegment(go.PathSegment.Line,.5625*E,.80621875*z)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*E,.760625*z,.602375*E,.79809375*z,.63946875*E,.78234375*z)).add(new go.PathSegment(go.PathSegment.Line,.76828125*E,.8566875*z)).add(new go.PathSegment(go.PathSegment.Line,.85671875*E,.76825*z)).add(new go.PathSegment(go.PathSegment.Line,.76065625*E,.67221875*z)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*E,.56246875*z,.78234375*E,.63940625*z,.798125*E,.602375*z)).add(new go.PathSegment(go.PathSegment.Line,.9375*E,.56246875*z).close()).add(new go.PathSegment(go.PathSegment.Move,.5*E,.6*z)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*E,.5*z,.1*E,.1*z).close()))}),go.Shape.defineFigureGenerator("Hand",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.5*z,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,.3*z,0,.375*z,.05*E,.325*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.45*E,.075*z,.3*E,.225*z,.4*E,.175*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.525*E,.075*z,.46*E,.05*z,.525*E,.05*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.4*z,.525*E,.275*z,.475*E,.325*z)),it.add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,.55*z,E,.4*z,E,.55*z)),it.add(new go.PathSegment(go.PathSegment.Line,.425*E,.55*z)),it.add(new go.PathSegment(go.PathSegment.Line,.6*E,.55*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.6*E,.7*z,.675*E,.55*z,.675*E,.7*z)),it.add(new go.PathSegment(go.PathSegment.Line,.4*E,.7*z)),it.add(new go.PathSegment(go.PathSegment.Line,.575*E,.7*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.575*E,.85*z,.65*E,.7*z,.65*E,.85*z)),it.add(new go.PathSegment(go.PathSegment.Line,.4*E,.85*z)),it.add(new go.PathSegment(go.PathSegment.Line,.525*E,.85*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.535*E,z,.61*E,.85*z,.61*E,z)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*z,.435*E,z,0,z).close()),ot}),go.Shape.defineFigureGenerator("Map",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,.2*z,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.25*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.2*z)),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,E,.2*z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),it.add(new go.PathSegment(go.PathSegment.Line,.25*E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,z).close()),it.add(new go.PathSegment(go.PathSegment.Move,.25*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.25*E,.8*z)),it.add(new go.PathSegment(go.PathSegment.Move,.5*E,.2*z)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z)),it.add(new go.PathSegment(go.PathSegment.Move,.75*E,0)),it.add(new go.PathSegment(go.PathSegment.Line,.75*E,.8*z)),ot}),go.Shape.defineFigureGenerator("Eject",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,z,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E,z)),it.add(new go.PathSegment(go.PathSegment.Line,E,z*.7)),it.add(new go.PathSegment(go.PathSegment.Line,0,z*.7).close());var at=new go.PathFigure(0,z*.6,!0);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E,.6*z)),at.add(new go.PathSegment(go.PathSegment.Line,.5*E,0).close()),ot}),go.Shape.defineFigureGenerator("Pencil",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*E,.1*z)).add(new go.PathSegment(go.PathSegment.Line,E,.9*z)).add(new go.PathSegment(go.PathSegment.Line,.9*E,z)).add(new go.PathSegment(go.PathSegment.Line,.1*E,.2*z).close()))}),go.Shape.defineFigureGenerator("Building",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E*1,z*1,!1);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,0,z*.85)),it.add(new go.PathSegment(go.PathSegment.Line,.046*E,z*.85)),it.add(new go.PathSegment(go.PathSegment.Line,.046*E,z*.45)),it.add(new go.PathSegment(go.PathSegment.Line,0,z*.45)),it.add(new go.PathSegment(go.PathSegment.Line,0,z*.3)),it.add(new go.PathSegment(go.PathSegment.Line,.046*E,z*.3)),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,z*0)),it.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*E,z*.3)),it.add(new go.PathSegment(go.PathSegment.Line,E,z*.3)),it.add(new go.PathSegment(go.PathSegment.Line,E,z*.45)),it.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*E,z*.45)),it.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*E,z*.85)),it.add(new go.PathSegment(go.PathSegment.Line,E,z*.85).close());var at=new go.PathFigure(.126*E,.85*z,!1);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.126*E,.45*z)),at.add(new go.PathSegment(go.PathSegment.Line,.322*E,.45*z)),at.add(new go.PathSegment(go.PathSegment.Line,.322*E,.85*z).close());var ut=new go.PathFigure(.402*E,.85*z,!1);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.402*E,.45*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.598*E,.45*z)),ut.add(new go.PathSegment(go.PathSegment.Line,.598*E,.85*z).close());var wt=new go.PathFigure(.678*E,.85*z,!1);ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.678*E,.45*z)),wt.add(new go.PathSegment(go.PathSegment.Line,.874*E,.45*z)),wt.add(new go.PathSegment(go.PathSegment.Line,.874*E,.85*z).close());var Et=new go.PathFigure(.5*E,.1*z,!1);return ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*E,.3*z)),Et.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*E,.3*z).close()),ot}),go.Shape.defineFigureGenerator("Staircase",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,z*1,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E*.2,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*.2,z*.8)),it.add(new go.PathSegment(go.PathSegment.Line,E*.4,z*.8)),it.add(new go.PathSegment(go.PathSegment.Line,E*.4,z*.6)),it.add(new go.PathSegment(go.PathSegment.Line,E*.6,z*.6)),it.add(new go.PathSegment(go.PathSegment.Line,E*.6,z*.4)),it.add(new go.PathSegment(go.PathSegment.Line,E*.8,z*.4)),it.add(new go.PathSegment(go.PathSegment.Line,E*.8,z*.2)),it.add(new go.PathSegment(go.PathSegment.Line,E*1,z*.2)),it.add(new go.PathSegment(go.PathSegment.Line,E*1,z*.15)),it.add(new go.PathSegment(go.PathSegment.Line,E*.75,z*.15)),it.add(new go.PathSegment(go.PathSegment.Line,E*.75,z*.35)),it.add(new go.PathSegment(go.PathSegment.Line,E*.55,z*.35)),it.add(new go.PathSegment(go.PathSegment.Line,E*.55,z*.55)),it.add(new go.PathSegment(go.PathSegment.Line,E*.35,z*.55)),it.add(new go.PathSegment(go.PathSegment.Line,E*.35,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.15,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.15,z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,0,z*.95).close()),ot}),go.Shape.defineFigureGenerator("5Bars",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,z*1,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E*.184,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*.184,z*(1-.184)).close());var at=new go.PathFigure(E*.204,z,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E*.204,z*(1-.184))),at.add(new go.PathSegment(go.PathSegment.Line,E*.388,z*(1-.184*2))),at.add(new go.PathSegment(go.PathSegment.Line,E*.388,z*1).close());var ut=new go.PathFigure(E*.408,z,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E*.408,z*(1-.184*2))),ut.add(new go.PathSegment(go.PathSegment.Line,E*.592,z*(1-.184*3))),ut.add(new go.PathSegment(go.PathSegment.Line,E*.592,z*1).close());var wt=new go.PathFigure(E*.612,z,!0);ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,E*.612,z*(1-.184*3))),wt.add(new go.PathSegment(go.PathSegment.Line,E*.796,z*(1-.184*4))),wt.add(new go.PathSegment(go.PathSegment.Line,E*.796,z*1).close());var Et=new go.PathFigure(E*.816,z,!0);return ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,E*.816,z*(1-.184*4))),Et.add(new go.PathSegment(go.PathSegment.Line,E*1,z*(1-.184*5))),Et.add(new go.PathSegment(go.PathSegment.Line,E*1,z*1).close()),ot}),go.Shape.defineFigureGenerator("PC",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*.3,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*.3,0).close());var at=new go.PathFigure(E*.055,.07*z,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E*.245,z*.07)),at.add(new go.PathSegment(go.PathSegment.Line,E*.245,z*.1)),at.add(new go.PathSegment(go.PathSegment.Line,E*.055,z*.1).close());var ut=new go.PathFigure(E*.055,.13*z,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E*.245,z*.13)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.245,z*.16)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.055,z*.16).close());var wt=new go.PathFigure(E*.055,.18*z,!0);ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,E*.245,z*.18)),wt.add(new go.PathSegment(go.PathSegment.Line,E*.245,z*.21)),wt.add(new go.PathSegment(go.PathSegment.Line,E*.055,z*.21).close());var Et=new go.PathFigure(E*1,0,!0);return ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,E*.4,0)),Et.add(new go.PathSegment(go.PathSegment.Line,E*.4,z*.65)),Et.add(new go.PathSegment(go.PathSegment.Line,E*1,z*.65).close()),ot}),go.Shape.defineFigureGenerator("Plane",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(.55*E,z,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*z)),it.add(new go.PathSegment(go.PathSegment.Line,.4*E,.7*z)),it.add(new go.PathSegment(go.PathSegment.Line,.1*E,.475*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.35*E,.525*z,0,.4*z,.225*E,.45*z)),it.add(new go.PathSegment(go.PathSegment.Line,.4*E,.475*z)),it.add(new go.PathSegment(go.PathSegment.Line,.15*E,.35*z)),it.add(new go.PathSegment(go.PathSegment.Line,.2*E,.325*z)),it.add(new go.PathSegment(go.PathSegment.Line,.6*E,.325*z)),it.add(new go.PathSegment(go.PathSegment.Line,.85*E,.1*z)),it.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,.2*z,.975*E,0,E,.08*z)),it.add(new go.PathSegment(go.PathSegment.Line,.7*E,.45*z)),it.add(new go.PathSegment(go.PathSegment.Line,.6*E,.95*z)),it.add(new go.PathSegment(go.PathSegment.Line,.55*E,z).close()),ot}),go.Shape.defineFigureGenerator("Key",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E*1,z*.5,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E*.9,.4*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.5,.4*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.5,.35*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.45,.35*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.3,.2*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.15,.2*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.35*z)),it.add(new go.PathSegment(go.PathSegment.Line,0,.65*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.15,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.3,.8*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.45,.65*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.5,.65*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.5,.6*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.6,.6*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.65,.55*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.7,.6*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.75,.55*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.8,.6*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.85,.575*z)),it.add(new go.PathSegment(go.PathSegment.Line,E*.9,.6*z).close()),it.add(new go.PathSegment(go.PathSegment.Move,.17*E,.425*z)),it.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*E,.5*z,.075*E,.075*z).close()),ot}),go.Shape.defineFigureGenerator("FilmTape",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(0,0,!1);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Arc,270,180,E*0,E*.3,E*.055)),it.add(new go.PathSegment(go.PathSegment.Line,0,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*.08,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*.08,z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*1),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*1),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*2),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*2),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*3),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*3),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*4),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*4),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*5),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*5),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*6),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*6),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*7),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*7),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*8),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*8),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*9),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*9),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*10),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*10),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*11),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*11),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*12),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*12),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*13),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*13),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*14),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*14),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*15),z*.95)),it.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*15),z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*1,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*1,z*1));var at=new go.PathFigure(0,0,!1);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E*1,z*0)),at.add(new go.PathSegment(go.PathSegment.Arc,270,-180,E*1,E*.3,E*.055)),at.add(new go.PathSegment(go.PathSegment.Line,E*1,z*1));var ut=new go.PathFigure(E*.11,z*.1,!1);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*1+.028*0),z*.1)),ut.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*1+.028*0),z*.8)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.11,z*.8).close());var wt=new go.PathFigure(E*(.11+.24133333*1+.028*1),z*.1,!1);ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*2+.028*1),z*.1)),wt.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*2+.028*1),z*.8)),wt.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*1+.028*1),z*.8).close());var Et=new go.PathFigure(E*(.11+.24133333*2+.028*2),z*.1,!1);return ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*3+.028*2),z*.1)),Et.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*3+.028*2),z*.8)),Et.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*2+.028*2),z*.8).close()),ot}),go.Shape.defineFigureGenerator("FloppyDisk",function(lt,E,z){var ot=new go.Geometry,it=8,at=it*pt,ut=new go.PathFigure(it,0,!1);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E*.86,0)),ut.add(new go.PathSegment(go.PathSegment.Line,E*1,z*.14)),ut.add(new go.PathSegment(go.PathSegment.Line,E,z-it)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E-it,z,E,z-at,E-at,z)),ut.add(new go.PathSegment(go.PathSegment.Line,it,z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,z-it,at,z,0,z-at)),ut.add(new go.PathSegment(go.PathSegment.Line,0,it)),ut.add(new go.PathSegment(go.PathSegment.Bezier,it,0,0,at,at,0).close());var wt=new go.PathFigure(E*.83,0,!1);ot.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,E*.83,z*.3)),wt.add(new go.PathSegment(go.PathSegment.Line,E*.17,z*.3)),wt.add(new go.PathSegment(go.PathSegment.Line,E*.17,z*0).close());var Et=new go.PathFigure(E*.83,z*1,!1);ot.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,E*.83,z*.5)),Et.add(new go.PathSegment(go.PathSegment.Line,E*.17,z*.5)),Et.add(new go.PathSegment(go.PathSegment.Line,E*.17,z*1).close());var At=new go.PathFigure(E*.78,z*.05,!1);return ot.add(At),At.add(new go.PathSegment(go.PathSegment.Line,E*.66,z*.05)),At.add(new go.PathSegment(go.PathSegment.Line,E*.66,z*.25)),At.add(new go.PathSegment(go.PathSegment.Line,E*.78,z*.25).close()),ot}),go.Shape.defineFigureGenerator("SpeechBubble",function(lt,E,z){var ot=lt?lt.parameter1:NaN;(isNaN(ot)||ot<0)&&(ot=15),ot=Math.min(ot,E/3),ot=Math.min(ot,z/3);var it=ot*pt,at=z*.8,ut=new go.Geometry,wt=new go.PathFigure(ot,0,!0);return ut.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,E-ot,0)),wt.add(new go.PathSegment(go.PathSegment.Bezier,E,ot,E-it,0,E,it)),wt.add(new go.PathSegment(go.PathSegment.Line,E,at-ot)),wt.add(new go.PathSegment(go.PathSegment.Bezier,E-ot,at,E,at-it,E-it,at)),wt.add(new go.PathSegment(go.PathSegment.Line,E*.7,at)),wt.add(new go.PathSegment(go.PathSegment.Line,E*.7,z)),wt.add(new go.PathSegment(go.PathSegment.Line,E*.55,at)),wt.add(new go.PathSegment(go.PathSegment.Line,ot,at)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,at-ot,it,at,0,at-it)),wt.add(new go.PathSegment(go.PathSegment.Line,0,ot)),wt.add(new go.PathSegment(go.PathSegment.Bezier,ot,0,0,it,it,0).close()),it>1?(ut.spot1=new go.Spot(0,0,it,it),ut.spot2=new go.Spot(1,.8,-it,-it)):(ut.spot1=go.Spot.TopLeft,ut.spot2=new go.Spot(1,.8)),ut}),go.Shape.defineFigureGenerator("Repeat",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E*0,z*.45,!0);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E*.25,z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*.5,z*.45)),it.add(new go.PathSegment(go.PathSegment.Line,E*.3,z*.45)),it.add(new go.PathSegment(go.PathSegment.Line,E*.3,z*.9)),it.add(new go.PathSegment(go.PathSegment.Line,E*.6,z*.9)),it.add(new go.PathSegment(go.PathSegment.Line,E*.65,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*.2,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*.2,z*.45).close());var at=new go.PathFigure(E*1,z*.55,!0);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E*.75,z*1)),at.add(new go.PathSegment(go.PathSegment.Line,E*.5,z*.55)),at.add(new go.PathSegment(go.PathSegment.Line,E*.7,z*.55)),at.add(new go.PathSegment(go.PathSegment.Line,E*.7,z*.1)),at.add(new go.PathSegment(go.PathSegment.Line,E*.4,z*.1)),at.add(new go.PathSegment(go.PathSegment.Line,E*.35,z*0)),at.add(new go.PathSegment(go.PathSegment.Line,E*.8,z*0)),at.add(new go.PathSegment(go.PathSegment.Line,E*.8,z*.55).close()),ot}),go.Shape.defineFigureGenerator("Windows",function(lt,E,z){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,z)).add(new go.PathSegment(go.PathSegment.Line,0,z).close()).add(new go.PathSegment(go.PathSegment.Move,.4*E,.4*z)).add(new go.PathSegment(go.PathSegment.Line,.4*E,.8*z)).add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*z)).add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*z).close()).add(new go.PathSegment(go.PathSegment.Move,.2*E,.1*z)).add(new go.PathSegment(go.PathSegment.Line,.2*E,.6*z)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.6*z)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.1*z).close()).add(new go.PathSegment(go.PathSegment.Move,.1*E,.6*z)).add(new go.PathSegment(go.PathSegment.Line,.1*E,.9*z)).add(new go.PathSegment(go.PathSegment.Line,.5*E,.9*z)).add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*z).close()))}),go.Shape.defineFigureGenerator("Terminal",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E*0,z*.1,!1);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E*1,z*.1)),it.add(new go.PathSegment(go.PathSegment.Line,E*1,z*.9)),it.add(new go.PathSegment(go.PathSegment.Line,E*0,z*.9).close());var at=new go.PathFigure(E*.1,z*.2,!0);ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E*.1,z*.25)),at.add(new go.PathSegment(go.PathSegment.Line,E*.22,z*.285)),at.add(new go.PathSegment(go.PathSegment.Line,E*.1,z*.32)),at.add(new go.PathSegment(go.PathSegment.Line,E*.1,z*.37)),at.add(new go.PathSegment(go.PathSegment.Line,E*.275,z*.32)),at.add(new go.PathSegment(go.PathSegment.Line,E*.275,z*.25).close());var ut=new go.PathFigure(E*.28,z*.37,!0);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E*.45,z*.37)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.45,z*.41)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.28,z*.41).close()),ot}),go.Shape.defineFigureGenerator("Beaker",function(lt,E,z){var ot=new go.Geometry,it=15,at=it*pt,ut=new go.PathFigure(E*.62,z*.475,!0);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E,z-it)),ut.add(new go.PathSegment(go.PathSegment.Bezier,E-it,z,E,z-at,E-at,z)),ut.add(new go.PathSegment(go.PathSegment.Line,it,z)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,z-it,at,z,0,z-at)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.38,z*.475)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.38,z*.03)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.36,z*0)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.64,z*0)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.62,z*.03).close()),at>1?(ot.spot1=new go.Spot(0,0,at,at),ot.spot2=new go.Spot(1,1,-at,-at)):(ot.spot1=go.Spot.TopLeft,ot.spot2=go.Spot.BottomRight),ot}),go.Shape.defineFigureGenerator("Download",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E*0,z*1,!0);ot.add(it);var at=.1/.3;it.add(new go.PathSegment(go.PathSegment.Line,E*1,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*1,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*.8,z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*.66,z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*.66,z*.055)),it.add(new go.PathSegment(go.PathSegment.Line,E*.755,z*.055)),it.add(new go.PathSegment(go.PathSegment.Line,E*.93,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*.64,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*.61,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.5,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.39,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.36,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*.07,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*(1-.755),z*.055)),it.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),z*.055)),it.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*(1-.8),z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*0,z*(1-at)).close());var ut=new go.PathFigure(E*.4,z*0,!0);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E*.4,z*.44)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.26,z*.44)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.5,z*.66)),ut.add(new go.PathSegment(go.PathSegment.Line,E*(1-.26),z*.44)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.6,z*.44)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.6,z*0).close()),ot}),go.Shape.defineFigureGenerator("Bin",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E*0,z*1,!0);ot.add(it);var at=.1/.3;return it.add(new go.PathSegment(go.PathSegment.Line,E*1,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*1,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*.8,z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*.66,z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*.66,z*.055)),it.add(new go.PathSegment(go.PathSegment.Line,E*.755,z*.055)),it.add(new go.PathSegment(go.PathSegment.Line,E*.93,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*.64,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*.61,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.5,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.39,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.36,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*.07,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*(1-.755),z*.055)),it.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),z*.055)),it.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*(1-.8),z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*0,z*(1-at)).close()),ot}),go.Shape.defineFigureGenerator("Upload",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E*0,z*1,!0);ot.add(it);var at=.1/.3;it.add(new go.PathSegment(go.PathSegment.Line,E*1,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*1,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*.8,z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*.66,z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*.66,z*.055)),it.add(new go.PathSegment(go.PathSegment.Line,E*.755,z*.055)),it.add(new go.PathSegment(go.PathSegment.Line,E*.93,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*.64,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*.61,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.5,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.39,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.36,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*.07,z*(1-at))),it.add(new go.PathSegment(go.PathSegment.Line,E*(1-.755),z*.055)),it.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),z*.055)),it.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*(1-.8),z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*0,z*(1-at)).close());var ut=new go.PathFigure(E*.5,z*0,!0);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,E*.26,z*.25)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.4,z*.25)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.4,z*.63)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.6,z*.63)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.6,z*.25)),ut.add(new go.PathSegment(go.PathSegment.Line,E*.74,z*.25).close()),ot}),go.Shape.defineFigureGenerator("EmptyDrink",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E*.15,z*0,!1);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E*.85,z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*.7,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*.3,z*1).close()),ot}),go.Shape.defineFigureGenerator("Drink",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E*.15,z*0,!1);ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E*.85,z*0)),it.add(new go.PathSegment(go.PathSegment.Line,E*.7,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*.3,z*1).close());var at=new go.PathFigure(E*.235,z*.28,!0);return ot.add(at),at.add(new go.PathSegment(go.PathSegment.Line,E*.765,z*.28)),at.add(new go.PathSegment(go.PathSegment.Line,E*.655,z*.97)),at.add(new go.PathSegment(go.PathSegment.Line,E*.345,z*.97).close()),ot}),go.Shape.defineFigureGenerator("4Arrows",function(lt,E,z){var ot=new go.Geometry,it=new go.PathFigure(E*.5,z*0,!0);return ot.add(it),it.add(new go.PathSegment(go.PathSegment.Line,E*.65,z*.25)),it.add(new go.PathSegment(go.PathSegment.Line,E*.55,z*.25)),it.add(new go.PathSegment(go.PathSegment.Line,E*.55,z*.45)),it.add(new go.PathSegment(go.PathSegment.Line,E*.75,z*.45)),it.add(new go.PathSegment(go.PathSegment.Line,E*.75,z*.35)),it.add(new go.PathSegment(go.PathSegment.Line,E*1,z*.5)),it.add(new go.PathSegment(go.PathSegment.Line,E*.75,z*.65)),it.add(new go.PathSegment(go.PathSegment.Line,E*.75,z*.55)),it.add(new go.PathSegment(go.PathSegment.Line,E*.55,z*.55)),it.add(new go.PathSegment(go.PathSegment.Line,E*.55,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.65,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.5,z*1)),it.add(new go.PathSegment(go.PathSegment.Line,E*.35,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.45,z*.75)),it.add(new go.PathSegment(go.PathSegment.Line,E*.45,z*.55)),it.add(new go.PathSegment(go.PathSegment.Line,E*.25,z*.55)),it.add(new go.PathSegment(go.PathSegment.Line,E*.25,z*.65)),it.add(new go.PathSegment(go.PathSegment.Line,E*0,z*.5)),it.add(new go.PathSegment(go.PathSegment.Line,E*.25,z*.35)),it.add(new go.PathSegment(go.PathSegment.Line,E*.25,z*.45)),it.add(new go.PathSegment(go.PathSegment.Line,E*.45,z*.45)),it.add(new go.PathSegment(go.PathSegment.Line,E*.45,z*.25)),it.add(new go.PathSegment(go.PathSegment.Line,E*.35,z*.25).close()),ot}),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")},80727: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 tn={},Ke="5.0",Rt={},Ft=null,ie=!1,rt=!1,kt=null,Ct=!1,St=null,pt=null,vt=0;vt4?parseFloat(ge):5};tn.setHTML5Codebase=function(ge,fe){pt=ge,we(ge,fe)},tn.setJavaCodebase=tn.setJavaCodebaseVersion=tn.isCompiledInstalled=tn.setPreCompiledScriptPath=tn.setPreCompiledResourcePath=function(){},tn.setHTML5CodebaseVersion=function(ge,fe){var de=parseFloat(ge);if(de!==NaN&&de<5){console.log("The GeoGebra HTML5 codebase version "+de+" is deprecated. Using version latest instead.");return}St=ge,re(ge,fe)},tn.getHTML5CodebaseVersion=function(){return lt},tn.getParameters=function(){return Rt},tn.setFontsCSSURL=function(ge){ut=ge},tn.setGiacJSURL=function(ge){},tn.setJNLPFile=function(ge){xt=ge},tn.setJNLPBaseDir=function(ge){},tn.inject=function(){function ge(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var fe="auto",de=Rt.id,_e,Oe=!1,He=0;He=5)return!0;var ge=tn.getAppletObject();return ge&&typeof ge.recalculateEnvironments=="function"?(ge.recalculateEnvironments(),!0):!1},tn.startAnimation=function(){var ge=tn.getAppletObject();return ge&&typeof ge.startAnimation=="function"?(ge.startAnimation(),!0):!1},tn.stopAnimation=function(){var ge=tn.getAppletObject();return ge&&typeof ge.stopAnimation=="function"?(ge.stopAnimation(),!0):!1},tn.getAppletObject=function(){var ge=Rt.id!==void 0?Rt.id:"ggbApplet";return window[ge]},tn.resize=function(){};var It=function(ge,fe,de){var _e=document.createElement("param");_e.setAttribute("name",fe),_e.setAttribute("value",de),ge.appendChild(_e)},Ut=function(ge){return ge&&ge!=="false"},Xt=function(ge,fe,de){Et(lt)<=4.2&&(de=!0);var _e=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==lt||ggbHTML5LoadedCodebaseIsWebSimple&&!z)&&(_e=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Oe=document.createElement("div");Oe.classList.add("appletParameters","notranslate");var He=fe.width,Se=fe.height;if(fe.disableAutoScale=fe.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():fe.disableAutoScale,fe.width!==void 0)if(Et(lt)<=4.4)Ut(fe.showToolBar)&&(fe.height-=7),Ut(fe.showAlgebraInput)&&(fe.height-=37),fe.width<605&&Ut(fe.showToolBar)&&(fe.width=605,He=605);else{var xe=100;(Ut(fe.showToolBar)||Ut(fe.showMenuBar))&&(fe.hasOwnProperty("customToolBar")&&(fe.customToolbar=fe.customToolBar),xe=Ut(fe.showMenuBar)?245:155),He=5?(fe.appletOnLoad=function(Bt){var te=ge.querySelector(".ggb_preview");te&&te.parentNode.removeChild(te),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ae),window.GGBT_wsf_view&&$(window).trigger("resize"),Ne(Bt)},Ae||ae.appendChild(Xe)):Oe.appendChild(Xe),ae.appendChild(Oe),Ae||ge.appendChild(ae),setTimeout(function(){tn.resize()},1)}else{var Be=document.createElement("div");Be.className="applet_scaler",Be.style.position="relative",Be.style.display="block",Be.appendChild(Oe),ge.appendChild(Be),fe.appletOnLoad=function(Bt){tn.resize(),Ne(Bt)}}function Te(Bt,te){te&&typeof te.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Bt,te.appletOnLoad):renderGGBElement(Bt),ke("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",te)}function ue(Bt,te){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Bt,params:te}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(me){Te(me.article,me.params)}),html5AppletsToProcess=null)},Et(lt)<5&&(Bt.className+=" geogebraweb")):Te(Bt,te)}if(_e){scriptLoadStarted=!0;for(var $t=0;$t0?(le.remove(),ae.attr("id","fullscreencontent").show(),jQuery(Ne).append(ae),window.dispatchEvent(new Event("resize"))):Xt(le,fe,!1),window.GGBT_wsf_view.launchFullScreen(Ne)}else ct=_e,Xt(ge,fe,!1);if(!window.GGBT_wsf_view)for(Se=0;Sege/4*3&&(le=ge/4*3),Ne=le/5.8,xe.setAttribute("src",it),xe.setAttribute("width",le),xe.setAttribute("height",Ne);var ae=(ge-le)/2,Ae=(fe-Ne)/2;xe.style.left=ae+"px",xe.style.top=Ae+"px",Oe.appendChild(xe)}}return Oe.appendChild(Se),Oe},ve=function(ge){return ge=ge.toLowerCase(),ge==="html5"||ge==="screenshot"?ge:"html5"},Kt=["web","webSimple","web3d","tablet","tablet3d","phone"],re=function(ge,fe){if(lt=ge,fe){we(lt,!0);return}var de=!ie;if(de){var _e=Et(lt);!isNaN(_e)&&_e<4.4&&(de=!1)}var Oe,He;window.location.protocol.substr(0,4)==="http"?Oe=window.location.protocol:Oe="http:";var Se=lt.indexOf("//");Se>0?He=lt:Se===0?He=Oe+lt:He="https://www.geogebra.org/apps/5.2.814.0/";for(var xe in Kt)if(lt.slice(Kt[xe].length*-1)===Kt[xe]||lt.slice((Kt[xe].length+1)*-1)===Kt[xe]+"/"){we(He,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&de&&!Ft.is3D&&!Ft.AV&&!Ft.SV&&!Ft.CV&&!Ft.EV2&&!Ft.CP&&!Ft.PC&&!Ft.DA&&!Ft.FI&&!Ft.PV&&!Ut(Rt.showToolBar)&&!Ut(Rt.showMenuBar)&&!Ut(Rt.showAlgebraInput)&&!Ut(Rt.enableRightClick)&&(!Rt.appName||Rt.appName=="classic")?He+="webSimple/":He+="web3d/",we(He,!1)},we=function(ge,fe){if(ge.requirejs){dt=ge;return}ge.slice(-1)!=="/"&&(ge+="/"),dt=ge,fe===null&&(fe=ge.indexOf("http")===-1),ft=fe,E="web.nocache.js",z=!1;var de=dt.split("/");de.length>1&&(!fe&&de[de.length-2]==="webSimple"?(E="webSimple.nocache.js",z=!0):Kt.indexOf(de[de.length-2])>=0&&(E=de[de.length-2]+".nocache.js")),de=ge.split("/"),lt=de[de.length-3],lt.substr(0,4)==="test"?lt=lt.substr(4,1)+"."+lt.substr(5,1):(lt.substr(0,3)==="war"||lt.substr(0,4)==="beta")&&(lt="5.0");var _e=parseFloat(lt);_e!==NaN&&_e<5&&ge.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+_e+" is deprecated. Using version latest instead."),re("5.0",fe))},ke=function(ge,fe){window.console&&window.console.log&&(!fe||typeof fe.showLogging=="undefined"||fe.showLogging&&fe.showLogging!=="false")&&console.log(ge)};Rt.material_id!==void 0?Mt(Me):Me();function Me(){var ge=Ke;St!==null?ge=St:parseFloat(ge)<5&&(ge="5.0"),re(ge,!1),pt!==null&&we(pt,ft),Ct=!0}return tn},GGBAppletUtils=function(){"use strict";function tn(){return window.GGBT_wsf_edit!==void 0}function Ke(Ct,St){St!=1?(Ct.style.transformOrigin="0% 0% 0px",Ct.style.webkitTransformOrigin="0% 0% 0px",Ct.style.transform="scale("+St+","+St+")",Ct.style.webkitTransform="scale("+St+","+St+")",Ct.style.maxWidth="initial",Ct.querySelector(".ggb_preview")!==null&&(Ct.querySelector(".ggb_preview").style.maxWidth="initial"),Ct.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Ct.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Ct.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Ct.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Ct.style.transform="none",Ct.style.webkitTransform="none")}function Rt(Ct,St,pt,vt,yt,xt){var dt=null;if(xt!=null&&xt!="")for(var ft=Ct.parentNode;ft!=null;)if((" "+ft.className+" ").indexOf(" "+xt+" ")>-1){dt=ft;break}else ft=ft.parentNode;var ct=0,lt=0,E=0,z=0,ot=0,it=0,at=0;if(dt)ct=dt.offsetWidth,lt=Math.max(vt?dt.offsetWidth:0,dt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(ct=Math.min(window.innerWidth,document.documentElement.clientWidth),lt=Math.min(window.innerHeight,document.documentElement.clientHeight),E=ct):(ct=window.innerWidth,lt=window.innerHeight,E=window.innerWidth),Ct){var ut=Ct.getBoundingClientRect();ut.left>0&&ut.left<=ct&&(yt===void 0||!yt)&&(document.dir==="rtl"?(ot=ct-ut.width-ut.left,it=E<=480?10:30):(it=ut.left,ot=E<=480?10:30),z=it+ot)}if(Ct&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var wt=Ct.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(z=40,at=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(z=0,at=40)}}return Ct&&((pt===void 0||!pt)&&St>0&&St+z1&&(xt=!0)),St&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(xt=!0),!(Ct.hasOwnProperty("disableAutoScale")&&Ct.disableAutoScale))yt=Ft(Ct,St,xt,pt,Ct.scaleContainerClass);else return vt;return xt&&(!Ct.hasOwnProperty("scale")||vt===1)?yt:Math.min(vt,yt)}function rt(Ct){var St=Math.min(window.innerWidth,document.documentElement.clientWidth),pt=Math.min(window.innerHeight,document.documentElement.clientHeight),vt=Ct.getBoundingClientRect(),yt=(St-vt.width)/2,xt=(pt-vt.height)/2;xt<0&&(xt=0),Ct.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(yt<40?Ct.style.left="40px":Ct.style.left=yt+"px",Ct.style.top=xt+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(xt<40?Ct.style.top="40px":Ct.style.top=xt+"px",Ct.style.left=yt+"px")}function kt(Ct,St){var pt=Ct.querySelector(".appletParameters");if(pt){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(St.id!==pt.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Ct)}if(pt.parentElement&&/fullscreen/.test(pt.parentElement.className))return;var vt=ie(St,Ct);tn()&&pt.setAttribute("data-param-scale",vt);for(var yt=null,xt=0;xt=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(tn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(tn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(tn){var Ke=c[tn];return Ke==null?null:Ke},r=d,webModule.__errFn=e}function B(){function tn(Ct){var St=Ct.lastIndexOf(rb);St==-1&&(St=Ct.length);var pt=Ct.indexOf(sb);pt==-1&&(pt=Ct.length);var vt=Ct.lastIndexOf(tb,Math.min(pt,St));return vt>=O?Ct.substring(O,vt+P):W}function Ke(Ct){if(!Ct.match(/^\w+:\/\//)){var St=o.createElement(ub);St.src=Ct+vb,Ct=tn(St.src)}return Ct}function Rt(){var Ct=__gwt_getMetaProperty(wb);return Ct!=null?Ct:W}function Ft(){for(var Ct=o.getElementsByTagName(_),St=O;StO?Ct[Ct.length-P].href:W}function rt(){var Ct=o.location;return Ct.href==Ct.protocol+zb+Ct.host+Ct.pathname+Ct.search+Ct.hash}var kt=Rt();return kt==W&&(kt=Ft()),kt==W&&(kt=ie()),kt==W&&rt()&&(kt=tn(o.location.href)),kt=Ke(kt),kt}function C(tn){return tn.match(/^\//)||tn.match(/^[a-zA-Z]+:\/\//)?tn:webModule.__moduleBase+tn}function D(){var tn=[],Ke=O,Rt=[],Ft=[];function ie(Ct){var St=Ft[Ct](),pt=Rt[Ct];if(St in pt)return St;var vt=[];for(var yt in pt)vt[pt[yt]]=yt;throw r&&r(Ct,vt,St),null}if(__gwt_isKnownPropertyValue=function(Ct,St){return St in Rt[Ct]},webModule.__getPropMap=function(){var Ct={};for(var St in Rt)Rt.hasOwnProperty(St)&&(Ct[St]=ie(St));return Ct},webModule.__computePropValue=ie,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var rt;try{rt=Cb;var kt=rt.indexOf(Db);kt!=-1&&(Ke=parseInt(rt.substring(kt+P),$),rt=rt.substring(O,kt))}catch(Ct){}return webModule.__softPermutationId=Ke,C(rt+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})()},77903:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Ax:function(){return kt},Ds:function(){return Ct},KI:function(){return pt},SI:function(){return rt},f1:function(){return ie}});var Ft=Rt(3294);function ie(vt){let yt=!0;if(vt.length>0){for(let xt=0;xtyt in vt?rt(vt,yt,{enumerable:!0,configurable:!0,writable:!0,value:xt}):vt[yt]=xt,Ct=(vt,yt,xt)=>kt(vt,typeof yt!="symbol"?yt+"":yt,xt),St=(vt,yt,xt)=>new Promise((dt,ft)=>{var ct=z=>{try{E(xt.next(z))}catch(ot){ft(ot)}},lt=z=>{try{E(xt.throw(z))}catch(ot){ft(ot)}},E=z=>z.done?dt(z.value):Promise.resolve(z.value).then(ct,lt);E((xt=xt.apply(vt,yt)).next())});class pt extends Ft.EventEmitter{constructor(yt,xt){super(),Ct(this,"url"),Ct(this,"body"),Ct(this,"fullContent",""),Ct(this,"controller",null),this.url=yt,this.body=xt}startStream(){return St(this,null,function*(){this.controller=new AbortController;const{signal:yt}=this.controller;try{const xt=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:yt});if(!xt.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${xt.status}`);const dt=xt.headers.get("content-type");if(!dt)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(dt.includes("application/json")){const lt=yield xt.json();this.emit("error",lt);return}if(!dt.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const ft=xt.body.getReader(),ct=new TextDecoder("utf-8");for(;;){const{done:lt,value:E}=yield ft.read();if(lt)break;const ot=ct.decode(E,{stream:!0}).split(` +`);for(const it of ot)if(it.startsWith("data:")){const at=it.slice(5).trim();if(at==="[DONE]")break;try{const ut=JSON.parse(at);ut.data&&this.handleData(ut.data)}catch(ut){console.error("\u89E3\u6790 JSON \u5931\u8D25:",ut)}}}this.emit("done",this.fullContent)}catch(xt){xt.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",xt.message)}})}handleData(yt){yt.content&&(this.fullContent+=yt.content,this.emit("data",{chunk:yt,full:this.fullContent}))}cancelRequest(){var yt;(yt=this.controller)==null||yt.abort()}}Ke.Z=pt},43276:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return Et}});var Ft=Rt(59301),ie=Rt(72719),rt=Rt(77596),kt=Rt(93772),Ct=Rt(14179),St=Rt(56102),pt={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm"},vt=Rt(8591),yt=Rt(11611),xt=Rt(35328),dt=Rt(30084),ft=Rt(10787),ct=Rt(50304),lt=Object.defineProperty,E=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,it=(At,_t,Mt)=>_t in At?lt(At,_t,{enumerable:!0,configurable:!0,writable:!0,value:Mt}):At[_t]=Mt,at=(At,_t)=>{for(var Mt in _t||(_t={}))z.call(_t,Mt)&&it(At,Mt,_t[Mt]);if(E)for(var Mt of E(_t))ot.call(_t,Mt)&&it(At,Mt,_t[Mt]);return At},ut=(At,_t)=>{var Mt={};for(var jt in At)z.call(At,jt)&&_t.indexOf(jt)<0&&(Mt[jt]=At[jt]);if(At!=null&&E)for(var jt of E(At))_t.indexOf(jt)<0&&ot.call(At,jt)&&(Mt[jt]=At[jt]);return Mt},Et=({onFinish:At,value:_t,streamingStatus:Mt,cancelIndex:jt,loadImage:Lt})=>{const[It,Ut]=(0,Ft.useState)(""),[Xt,Gt]=(0,Ft.useState)(0),[Vt,Ht]=(0,Ft.useState)(!1),ne=Kt=>Kt.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(re,we)=>`$$${we.trim()}$$`).replace(/\\\(([\s\S]*?)\\\)/g,'$$$$$1$$$$').replace(/\\\[([\s\S]*?)\\\]/g,'$$$$$1$$$$').replace(/_{2,}/g,"`$&`"),se=()=>{Ht(!0),At==null||At()};return(0,Ft.useEffect)(()=>{const Kt=Lt?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A -${_t}`:_t,re=ne(Kt);if(!Yt)if(Lt||!Mt||jt>0){Ut(re),Gt(re.length),(!Mt||jt>0)&&!Lt&&ae();return}else if(Xt{Ut(re.slice(0,Xt+2)),Gt(ke=>ke+2)},we>10?Math.max(500/(we/2),20):50);return()=>clearInterval(Me)}else Mt||ae()},[_t,Mt,jt,Lt,Xt]),(0,Ft.useMemo)(()=>Ft.createElement("section",{className:`${pt.answer} fadeIn animated edu_md`},Ft.createElement(ie.UG,{remarkPlugins:[dt.Z,ft.Z],rehypePlugins:[xt.Z,kt.Z],components:{code(Kt){var re=Kt,{node:we,inline:Me,className:ke,children:me}=re,fe=ut(re,["node","inline","className","children"]);const pe=/language-(\w+)/.exec(ke||""),_e=String(me).trim();return Me||!pe?Ft.createElement("code",at({className:ke},fe),me):Ft.createElement("code",{className:pt.codeCopy,"data-text":`\`\`\`${pe?pe[1]:""} -${me} -\`\`\``},Ft.createElement(St.CopyToClipboard,{text:_e,onCopy:()=>vt.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},Ft.createElement("button",null,"\u590D\u5236")),Ft.createElement(rt.Z,at({style:Ct.Z,language:pe[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},fe),_e))},img({node:Kt}){var re;const we=(re=Kt.properties)==null?void 0:re.src;return Ft.createElement(yt.Z,{src:we,width:320,"data-text":we,onLoad:()=>Lt&&setTimeout(()=>ae(),500)})}}},Yt?It:`${It}__`)),[It])}},31707:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return it}});var Ft=Rt(59301),ie=Rt(19909),rt={bigTips:"bigTips___uPRW3",item:"item___KMGDu"},kt=Rt(8591),Ct=Rt(95237),St=Rt(99064),pt=Object.defineProperty,vt=Object.defineProperties,yt=Object.getOwnPropertyDescriptors,xt=Object.getOwnPropertySymbols,dt=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,ct=(at,ut,wt)=>ut in at?pt(at,ut,{enumerable:!0,configurable:!0,writable:!0,value:wt}):at[ut]=wt,lt=(at,ut)=>{for(var wt in ut||(ut={}))dt.call(ut,wt)&&ct(at,wt,ut[wt]);if(xt)for(var wt of xt(ut))ft.call(ut,wt)&&ct(at,wt,ut[wt]);return at},E=(at,ut)=>vt(at,yt(ut)),z=(at,ut,wt)=>new Promise((Et,At)=>{var _t=Lt=>{try{jt(wt.next(Lt))}catch(It){At(It)}},Mt=Lt=>{try{jt(wt.throw(Lt))}catch(It){At(It)}},jt=Lt=>Lt.done?Et(Lt.value):Promise.resolve(Lt.value).then(_t,Mt);jt((wt=wt.apply(at,ut)).next())}),it=({description:at,code:ut,showData:wt={},sendParams:Et={},allShow:At=!1,draggableExtraNode:_t})=>{const Mt=[{img:Rt(58427),name:"\u667A\u80FD\u5BA1\u9898",des:"\u5FEB\u901F\u667A\u80FD\u62C6\u89E3\u4EFB\u52A1\uFF0C\u63D0\u4F9B\u89E3\u9898\u601D\u8DEF",description:"",query:at,show:wt==null?void 0:wt.ai_exam_question,type:1},{img:Rt(68427),name:"\u8BED\u6CD5\u68C0\u67E5",des:"\u68C0\u6D4B\u4EE3\u7801\u4E2D\u7684\u8BED\u6CD5\u9519\u8BEF\uFF0C\u63D0\u4F9B\u4FEE\u590D\u5EFA\u8BAE",description:"",query:ut,show:wt==null?void 0:wt.ai_syntax_check,type:5},{img:Rt(2195),name:"\u4EE3\u7801\u8BCA\u65AD",des:"\u7CFB\u7EDF\u667A\u80FD\u4EE3\u7801\u5206\u6790\uFF0C\u63D0\u4F9B\u4FEE\u6B63\u5EFA\u8BAE",description:at,query:ut,show:wt==null?void 0:wt.ai_code_diagnosis,type:2},{img:Rt(62849),name:"AI\u8F85\u5BFC",des:"\u4E3A\u5B66\u751F\u63D0\u4F9B\u4E2A\u6027\u5316\u667A\u80FD\u5B66\u4E60\u8F85\u5BFC",description:at,query:ut,show:wt==null?void 0:wt.ai_guidance,type:3},{img:Rt(9515),name:"\u4EE3\u7801\u8BC4\u4EF7",des:"\u4ECE\u591A\u4E2A\u7EF4\u5EA6\u5BF9\u4EE3\u7801\u8FDB\u884C\u8BC4\u4EF7\uFF0C\u4E86\u89E3\u4EE3\u7801\u7F3A\u9677",description:at,query:ut,show:wt==null?void 0:wt.ai_code_evaluation,type:9},{img:Rt(43214),name:"\u4EE3\u7801\u4F18\u5316",des:"\u5BF9\u4EE3\u7801\u8FDB\u884C\u667A\u80FD\u4F18\u5316\uFF0C\u5E2E\u52A9\u63D0\u5347\u4EE3\u7801\u8D28\u91CF",description:at,query:ut,show:wt==null?void 0:wt.ai_code_optimization,type:7},{img:Rt(54269),name:"\u4EE3\u7801\u6CE8\u91CA",des:"\u81EA\u52A8\u5BF9\u5DF2\u6709\u4EE3\u7801\u6DFB\u52A0\u6CE8\u91CA\uFF0C\u8282\u7701\u4EE3\u7801\u7F16\u5199\u65F6\u95F4",description:at,query:ut,show:wt==null?void 0:wt.ai_code_comment,type:8}],jt=It=>{const{setChatData:Ut,setLoading:Xt,getData:Gt,clearStatus:Yt,typing:Ht,setImageGenerator:ne,renderChatItems:ae,setSceneAwareness:ve}=It;let Kt=Mt;return At||(Kt=Mt.filter(re=>re.show)),Ft.createElement("div",{className:`${rt.bigTips} mt10`},Kt.map((re,we)=>Ft.createElement("div",{onClick:()=>z(void 0,null,function*(){if(Ht){kt.ZP.warning("\u8BF7\u7B49\u5F85\u4EFB\u52A1\u5B8C\u6210");return}ve(!1),ne(!1),Xt(!0),Yt();const Me=ae(re.query);Me[0].show=!1,Me[1].imageGenerator=!1,Ut(Me),Gt("",E(lt({type:re.type,description:re.description,query:re.query,file_ids:[],history:[],is_chat:!1,image_generator:!1,scene_awareness:!1},Et),{prompt:wt==null?void 0:wt.ai_code_evaluation_promote}))}),key:we,className:rt.item},Ft.createElement(Ct.Z,{align:"middle"},Ft.createElement("img",{className:"mr10",src:re.img}),Ft.createElement("span",{style:{color:"#232B40",fontSize:16,fontWeight:600}},re.name)),Ft.createElement("div",{className:"mt10",style:{color:"#434D6C"}},re.des))))},Lt=It=>z(void 0,[It],function*({type:Ut,value:Xt,index:Gt,identifier:Yt,objectIndex:Ht}){const ne={index:Ht,identifier:Yt};if(Ut==="like"&&(yield(0,St.ZP)("/api/course_qna_records/like.json",{method:"post",body:ne})).status!==0||Ut==="dislike"&&(yield(0,St.ZP)("/api/course_qna_records/dislike.json",{method:"post",body:ne})).status!==0)return Promise.reject()});return Ft.createElement(ie.Z,{title:"\u667A\u80FD\u52A9\u6559",hideInputBox:At?!1:!(wt!=null&&wt.ai_q_and_a),headFunctionNode:jt,showSwitchingModel:!0,showImageGenerator:!0,showSceneAwareness:!0,fetchData:E(lt({},Et),{is_chat:!0}),topPercentage:(Et==null?void 0:Et.source)==="hack"?.52:void 0,headNode:Ft.createElement(Ft.Fragment,null,Ft.createElement("div",{className:"c-grey-333 font22"},Ft.createElement("span",{className:"mr5"},"\u{1F44B}"),"\u55E8\uFF0C\u6211\u662F\u5934\u6B4C\u667A\u80FD\u52A9\u6559\uFF0C\u60A8\u7684\u6559\u5B66\u597D\u5E2E\u624B\u3002"),Ft.createElement("div",{className:"font16 mt20",style:{color:"#434D6C"}},"\u6211\u53EF\u4EE5\u8FD0\u7528\u667A\u80FD\u5BA1\u9898\u7684\u529F\u80FD\uFF0C\u5E2E\u52A9\u60A8\u8F7B\u677E\u7406\u89E3\u5E76\u62C6\u89E3\u5B9E\u8DF5\u4EFB\u52A1\uFF0C\u63D0\u4F9B\u6E05\u6670\u660E\u4E86\u7684\u89E3\u9898\u601D\u8DEF\u3002\u5F53\u60A8\u5728\u7F16\u5199\u4EE3\u7801\u8FC7\u7A0B\u4E2D\u9047\u5230\u95EE\u9898\u65F6\uFF0C\u6211\u53EF\u4EE5\u63D0\u4F9B\u4EE3\u7801\u8BCA\u65AD\u670D\u52A1\uFF0C\u5206\u6790\u60A8\u7684\u4EE3\u7801\u5E76\u7ED9\u51FA\u5177\u4F53\u7684\u4FEE\u6B63\u5EFA\u8BAE\u3002\u5982\u679C\u60A8\u9700\u8981\u8FDB\u4E00\u6B65\u7684\u5E2E\u52A9\uFF0C\u6211\u8FD8\u53EF\u4EE5\u63D0\u4F9B\u8BE6\u7EC6\u7684AI\u6307\u5BFC\uFF0C\u4E3A\u60A8\u91CF\u8EAB\u5B9A\u5236\u53C2\u8003\u7684\u89E3\u51B3\u65B9\u6848\u3002\u671F\u5F85\u4E0E\u60A8\u643A\u624B\u5171\u8FDB\uFF0C\u9AD8\u6548\u3001\u4F18\u8D28\u5730\u5B8C\u6210\u6BCF\u4E00\u9879\u5B9E\u8DF5\u4EFB\u52A1\uFF01"),Ft.createElement("div",{className:"font16 mt20",style:{color:"#434d6c"}},"\u5FEB\u6765\u8BD5\u4E00\u4E0B\u5427\uFF5E")),fetchUrl:"/api/stream/intelligent_imports/chat_messages.json",draggableExtraNode:_t})}},19909:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return Ie}});var Ft=Rt(59301),ie=Rt(8591),rt=Rt(54580),kt=Rt(43418),Ct=Rt(6848),St=Rt(92832),pt=Rt(3113),vt=Rt(71418),yt=Rt(64165),xt=Rt(14478),dt=Rt(43428),ft=Rt(38854),ct=Rt(92310),lt=Rt.n(ct),E=Rt(43276),z={reasoning:"reasoning___S0mKl",btn:"btn____CIJG",content:"content___CIAh9"},ot=Rt(59301),it=(Ue,Je,Ze)=>new Promise((nn,fn)=>{var An=ii=>{try{Dn(Ze.next(ii))}catch(mi){fn(mi)}},En=ii=>{try{Dn(Ze.throw(ii))}catch(mi){fn(mi)}},Dn=ii=>ii.done?nn(ii.value):Promise.resolve(ii.value).then(An,En);Dn((Ze=Ze.apply(Ue,Je)).next())}),ut=({value:Ue="",streamingStatus:Je,onFinish:Ze,cancelIndex:nn,time:fn,loading:An,loadAll:En})=>{const[Dn,ii]=(0,Ft.useState)(""),[mi,Ti]=(0,Ft.useState)(!0),Oi=(0,Ft.useRef)(Ue),ki=(0,Ft.useRef)(Je),pi=(0,Ft.useRef)(0),Bi=(0,Ft.useRef)(null),[Or,yr]=(0,Ft.useState)(!1),lr=70;(0,Ft.useEffect)(()=>{ki.current=Je},[Je]),(0,Ft.useEffect)(()=>{Oi.current=Ue},[Ue]),(0,Ft.useEffect)(()=>{if(!Je){ii(Oi.current);return}return yr(!0),Bi.current=setInterval(Si,lr),()=>{clearInterval(Bi.current)}},[]),(0,Ft.useEffect)(()=>{Or&&(ii(Oi.current),clearInterval(Bi.current),yr(!1),Ze())},[nn]);const Si=()=>it(void 0,null,function*(){const ee=Oi.current[pi.current];ee!==void 0?(ii(Ds=>Ds+ee),pi.current++,clearInterval(Bi.current),Bi.current=setInterval(Si,280/(Oi.current.length-pi.current))):ki.current===!1&&(ii(Oi.current),clearInterval(Bi.current),yr(!1),Ze())});return ot.createElement("div",{className:`${z.reasoning} fadeIn animated`},ot.createElement("div",{className:z.btn,onClick:()=>Ti(!mi)},ot.createElement("i",{className:"iconfont icon-shendusikao"}),fn?ot.createElement("span",null,"\u5DF2\u6DF1\u5EA6\u601D\u8003\uFF08\u7528\u65F6 ",fn," \u79D2\uFF09"):ot.createElement("span",null,"\u601D\u8003\u4E2D..."),mi?ot.createElement("b",{className:"iconfont icon-shouqi6"}):ot.createElement("b",{className:"iconfont icon-zhankai6"})),An&&ot.createElement(vt.Z,{spinning:!0,className:"mt20"}),mi&&!An&&ot.createElement("div",{className:z.content},Dn,Or?ot.createElement("span",{className:"aiBlink"},"__"):""))},wt={select:"select___Kt_GE",box:"box___S5_ly",text:"text___dtZDv",itemWrap:"itemWrap___xmw7x",item:"item___io6Bx",active:"active___nHRTI"},Et=Rt(81327),At=Object.defineProperty,_t=Object.getOwnPropertySymbols,Mt=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,Lt=(Ue,Je,Ze)=>Je in Ue?At(Ue,Je,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):Ue[Je]=Ze,It=(Ue,Je)=>{for(var Ze in Je||(Je={}))Mt.call(Je,Ze)&&Lt(Ue,Ze,Je[Ze]);if(_t)for(var Ze of _t(Je))jt.call(Je,Ze)&&Lt(Ue,Ze,Je[Ze]);return Ue};const Ut=Ue=>React.createElement("svg",It({className:"logo1_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},Ue),React.createElement("path",{d:"M1019.407 620.8 891.834 397.781 946.49 293.12a29.099 29.099 0 0 0 6.4-36.395l-70.187-126.592a30.08 30.08 0 0 0-24.576-13.653H597.519L539.194 14.507a27.35 27.35 0 0 0-20.907-14.55H380.644a29.141 29.141 0 0 0-24.618 14.55v5.546L225.806 243.03H100.923a29.184 29.184 0 0 0-25.515 13.654L3.428 384.085a32.768 32.768 0 0 0 0 29.184L132.836 638.08 74.511 740.053a32.768 32.768 0 0 0 0 29.056l66.517 116.566a29.907 29.907 0 0 0 25.515 14.506H427.15l62.848 109.227A30.08 30.08 0 0 0 512.783 1024H660.41a29.141 29.141 0 0 0 24.576-14.55l128.469-224.853h114.773a31.915 31.915 0 0 0 24.662-15.445l66.474-117.419a28.16 28.16 0 0 0 0-30.976l.043.043zm-161.28 14.592L791.61 512.469 518.287 993.963l-74.752-122.88h-273.28l65.621-119.211h139.392L101.86 272.213h143.062L380.687 30.08l68.352 119.253-70.187 122.88H925.54l-69.205 121.942 137.6 241.194H858.17z",fill:"#605BEC"}),React.createElement("path",{d:"m499.983 699.307 174.379-274.731H324.708z",fill:"#605BEC"}));var Xt="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0d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g2IDI3Mi4yMTNoMTQzLjA2MkwzODAuNjg3IDMwLjA4bDY4LjM1MiAxMTkuMjUzLTcwLjE4NyAxMjIuODhIOTI1LjU0bC02OS4yMDUgMTIxLjk0MiAxMzcuNiAyNDEuMTk0SDg1OC4xN3oiIGZpbGw9IiM2MDVCRUMiLz48cGF0aCBkPSJtNDk5Ljk4MyA2OTkuMzA3IDE3NC4zNzktMjc0LjczMUgzMjQuNzA4eiIgZmlsbD0iIzYwNUJFQyIvPjwvc3ZnPg==",Gt=Object.defineProperty,Yt=Object.getOwnPropertySymbols,Ht=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,ae=(Ue,Je,Ze)=>Je in Ue?Gt(Ue,Je,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):Ue[Je]=Ze,ve=(Ue,Je)=>{for(var Ze in Je||(Je={}))Ht.call(Je,Ze)&&ae(Ue,Ze,Je[Ze]);if(Yt)for(var Ze of Yt(Je))ne.call(Je,Ze)&&ae(Ue,Ze,Je[Ze]);return Ue};const Kt=Ue=>React.createElement("svg",ve({className:"logo2_svg__icon",viewBox:"0 0 1417 1024",xmlns:"http://www.w3.org/2000/svg",width:276.758,height:200},Ue),React.createElement("path",{d:"M1364.44 118.705c-14.178-6.695-20.322 6.065-28.593 12.525-2.914 2.048-5.277 4.726-7.64 7.246-20.717 21.268-44.899 35.21-76.643 33.556a152.576 152.576 0 0 0-120.674 45.371c-7.404-41.826-32.06-66.875-69.553-82.865-19.693-8.35-39.543-16.7-53.248-34.737-9.61-12.919-12.288-27.333-17.015-41.512-3.15-8.507-6.144-17.25-16.384-18.668-11.185-1.733-15.517 7.247-19.928 14.73a189.125 189.125 0 0 0-23.552 98.461c1.575 76.88 35.446 138.083 102.636 181.642 7.562 4.963 9.531 9.925 7.09 17.25-4.49 14.967-9.926 29.54-14.81 44.584-2.992 9.61-7.561 11.658-18.274 7.483a309.484 309.484 0 0 1-96.886-63.015c-47.813-44.426-91.057-93.342-144.935-131.702a635.825 635.825 0 0 0-38.36-25.207c-54.982-51.2 7.167-93.262 21.582-98.225 14.966-5.199 5.277-23.158-43.402-22.922-48.68.237-93.184 15.833-149.977 36.628-8.428 3.15-17.092 5.514-25.993 7.326a557.844 557.844 0 0 0-160.768-5.436c-105.157 11.264-189.204 58.92-250.96 140.367-74.2 97.832-91.687 208.975-70.261 325.002 22.449 122.25 87.434 223.468 187.47 302.631 103.582 82 222.917 122.172 359.188 114.452 82.708-4.568 174.79-15.202 278.686-99.485 26.151 12.445 53.642 17.486 99.249 21.267 35.131 3.072 69.002-1.733 95.153-6.931 40.96-8.35 38.203-44.741 23.316-51.437-120.202-53.72-93.814-31.822-117.839-49.624 61.125-69.317 153.206-141.312 189.204-374.706 2.835-18.51.472-30.168 0-45.213-.237-9.137 1.969-12.603 12.918-13.706a240.089 240.089 0 0 0 86.173-25.442c77.982-40.803 109.332-107.914 116.736-188.259 1.103-12.288-.236-24.97-13.705-31.429zM685.45 842.043C569.108 754.215 512.55 725.307 489.157 726.49c-21.82 1.26-17.96 25.206-13.155 40.802 5.042 15.439 11.58 26.073 20.717 39.621 6.301 8.9 10.791 22.213-6.302 32.295-37.494 22.213-102.794-7.561-105.787-8.98-76.012-42.929-139.421-99.564-184.241-176.994a523.894 523.894 0 0 1-72.468-239.93c-1.024-20.56 5.278-27.885 26.703-31.587a272.148 272.148 0 0 1 85.307-2.127c118.942 16.699 220.16 67.741 305.073 148.48 48.443 46.001 85.071 100.982 122.88 154.703 40.173 57.029 83.338 111.458 138.32 155.963 19.376 15.675 34.894 27.569 49.781 36.234-44.74 4.805-119.414 5.829-170.456-32.926zm55.926-344.615c0-5.357 2.757-10.398 7.326-13.47a17.723 17.723 0 0 1 22.134 2.048c3.072 2.915 4.805 7.09 4.805 11.422a16.778 16.778 0 0 1-17.25 16.541 17.33 17.33 0 0 1-12.131-4.883 15.911 15.911 0 0 1-4.884-11.658zm173.529 85.464a104.37 104.37 0 0 1-33.005 8.586 71.444 71.444 0 0 1-44.504-13.548c-15.282-12.288-26.23-19.141-30.72-40.645a89.167 89.167 0 0 1 .787-31.429c3.939-17.487-.393-28.75-13.312-38.912-10.476-8.35-23.71-10.634-38.36-10.634a32.06 32.06 0 0 1-14.179-4.175c-6.144-2.914-11.106-10.24-6.301-19.14a60.18 60.18 0 0 1 10.712-11.265c19.85-10.79 42.693-7.246 63.882.788 19.693 7.798 34.501 21.898 55.926 41.905 21.74 24.183 25.68 30.8 38.125 48.916 9.846 14.179 18.747 28.75 24.89 45.45 3.703 10.397-1.102 18.905-13.941 24.103z",fill:"#4D6BFE"}));var re="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDE0MTcgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjc2Ljc1OCIgaGVpZ2h0PSIyMDAiPjxwYXRoIGQ9Ik0xMzY0LjQ0IDExOC43MDVjLTE0LjE3OC02LjY5NS0yMC4zMjIgNi4wNjUtMjguNTkzIDEyLjUyNS0yLjkxNCAyLjA0OC01LjI3NyA0LjcyNi03LjY0IDcuMjQ2LTIwLjcxNyAyMS4yNjgtNDQuODk5IDM1LjIxLTc2LjY0MyAzMy41NTZhMTUyLjU3NiAxNTIuNTc2IDAgMCAwLTEyMC42NzQgNDUuMzcxYy03LjQwNC00MS44MjYtMzIuMDYtNjYuODc1LTY5LjU1My04Mi44NjUtMTkuNjkzLTguMzUtMzkuNTQzLTE2LjctNTMuMjQ4LTM0LjczNy05LjYxLTEyLjkxOS0xMi4yODgtMjcuMzMzLTE3LjAxNS00MS41MTItMy4xNS04LjUwNy02LjE0NC0xNy4yNS0xNi4zODQtMTguNjY4LTExLjE4NS0xLjczMy0xNS41MTcgNy4yNDctMTkuOTI4IDE0LjczYTE4OS4xMjUgMTg5LjEyNSAwIDAgMC0yMy41NTIgOTguNDYxYzEuNTc1IDc2Ljg4IDM1LjQ0NiAxMzguMDgzIDEwMi42MzYgMT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eiIgZmlsbD0iIzRENkJGRSIvPjwvc3ZnPg==",we=Rt(59301),ke=({value:Ue,onChange:Je})=>{const[Ze,nn]=(0,Ft.useState)(!1),fn=[{name:"\u901A\u4E49\u5343\u95EE",key:"qwen-max",img:Xt},{name:"DeepSeek R1-671B",key:"deepseek-r1",img:re}],An=fn.find(En=>En.key===Ue);return we.createElement("div",{className:wt.select},we.createElement(Et.Z,{size:10},we.createElement("span",{className:"c-grey-333 font16"},"\u6A21\u578B"),we.createElement("div",{className:wt.box,onMouseLeave:()=>nn(!1)},we.createElement("div",{className:wt.text,onClick:()=>nn(!0)},we.createElement("img",{src:An.img,width:20}),we.createElement("span",null,An.name),we.createElement("b",{className:"iconfont icon-zhankai6"})),Ze&&we.createElement("div",{className:wt.itemWrap},we.createElement("aside",null,fn.map(En=>we.createElement("div",{key:En.key,className:`${wt.item} ${En.key===Ue?wt.active:""}`,onClick:Dn=>{Dn.stopPropagation(),Je(En.key),nn(!1)}},we.createElement("img",{src:En.img,width:20}),we.createElement("span",null,En.name))))))))},me={loadingPic:"loadingPic___y2kKZ",loading:"loading___UEUk1",dot:"dot___TYXFV","dot-fade":"dot-fade___KWn1a",wrap:"wrap___nU3cS",chatContainer:"chatContainer___PNe3Q",footerContainer:"footerContainer___hQATV",btnWrp:"btnWrp___mS8l6",btn:"btn___3za5U",btnActive:"btnActive____jzfb",inputContainer:"inputContainer___iCQ3u",uploadBtn:"uploadBtn___OHHJF",sendBtn:"sendBtn___ktaQl",sendBtnDisabled:"sendBtnDisabled___DVncF",cancelBtn:"cancelBtn___bzMDI",lineFour:"lineFour___Lhbz5",fullIcon:"fullIcon___YWXTV",footerContainerSelected:"footerContainerSelected___pGBh3",full:"full___dZLXo",li:"li___PjMV3",avatarIcon:"avatarIcon___ztGQ3",img:"img___wZqEA",content:"content___OlYYG",borderBox:"borderBox___tjHwt",text:"text___yWTCV",fileWrap:"fileWrap___IX778",file:"file___fxAKb",fileName:"fileName___RA8nu",source:"source___nkLC0",action:"action___I2zGy",disabledInput:"disabledInput___Buork",backBottom:"backBottom___SMuL2",head:"head___v8Eom",headBtn:"headBtn___IS7xR",menuWarp:"menuWarp___G6yj0",menu:"menu___M8VWP",menuText:"menuText___gRpb5",menuDel:"menuDel___eH_wg",active:"active___KWwPV"},fe=Rt(99064),pe=Rt(955),_e={draggableImage:"draggableImage___vcTso",img:"img___xAyno",close:"close___WUtfj"},He=({src:Ue,onClick:Je,topPercentage:Ze=.62,draggableExtraNode:nn})=>{const fn=(0,Ft.useRef)(null),An=(0,Ft.useRef)(!1),En=(0,Ft.useRef)(!1),[Dn,ii]=(0,Ft.useState)(window.innerHeight*Ze),[mi,Ti]=(0,Ft.useState)(!1),Oi=10;return(0,Ft.useEffect)(()=>{if(fn.current){let ki=function(lr){var Si;An.current=!0,yr=lr.pageY,Or=lr.pageY-(((Si=fn.current)==null?void 0:Si.getBoundingClientRect().top)||0),(0,pe.kk)("none"),document.onselectstart=function(){return!1}},pi=function(){An.current&&!En.current&&Je&&Je(),An.current=!1,En.current=!1,(0,pe.kk)("auto"),document.onselectstart=null},Bi=function(lr){var Si;if(An.current){const Ds=lr.pageY-Or,mr=window.innerHeight-(((Si=fn.current)==null?void 0:Si.offsetHeight)||0)-50,ms=50;if(!En.current&&Math.abs(yr-lr.pageY)>Oi&&(En.current=!0),En.current){let Xs=Math.max(ms,Math.min(Ds,mr));ii(Xs)}}},Or=0,yr=0;return fn.current.addEventListener("mousedown",ki),document.addEventListener("mousemove",Bi),document.addEventListener("mouseup",pi),()=>{var lr,Si;(Si=(lr=fn==null?void 0:fn.current)==null?void 0:lr.removeEventListener)==null||Si.call(lr,"mousedown",ki),document.removeEventListener("mousemove",Bi),document.removeEventListener("mouseup",pi)}}},[Je]),(0,Ft.useEffect)(()=>{const ki=()=>{ii(window.innerHeight*Ze)};return window.addEventListener("resize",ki),()=>{window.removeEventListener("resize",ki)}},[Ze]),Ft.createElement("div",{className:_e.draggableImage,style:{top:`${Dn}px`,display:mi?"none":"block",cursor:An.current?"grabbing":"grab"},ref:fn},nn,Ft.createElement("img",{className:_e.img,src:Ue,width:60,draggable:"false"}),Ft.createElement("i",{className:`iconfont icon-tupianguanbi ${_e.close}`,onMouseUp:ki=>{ki.stopPropagation(),Ti(!0)}}))},Se="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAIABJREFUeF6VnQmAnGV9/z/vMffeV3azuRMCSUgCSQggiCBFEE9UvFpqW6utFopa71bx6GHRWq31xKtSFS0eqICV+wwSIJKQkDvZJJvsObOzO/d7PH9/z/O+s5sY2/4XhpmdnXln3u/7/f1+39/xPFj8H39Wr742GRaOXaYs65WWnVhtuc58y7Lmh4oWZYFv2fpIgdxZFtg2oZMgdByU7eA7Npbt6L958rttUXMsQtsCyyawLEI5gC0HMMcCpf8193ILIVT6ZoUhlgqxw5BEoLAD87ulAuxQkZC/h4ogDHBCX79eXivHsfShQizkOJQsFR63FMdVGO6yHfWz1s4FD+za9V+N/ws01v/2otVLzuv36tZHwfpDlN1m2w6W62LLiVpyLhahpQixNRiBxkPAE+BcQtvRj+Veyd8dG99x8CyLIOESuC4qlPcJ6BH48lgOHoMnXzIMIAJA7gUQ/VwQ4obgBgGOgBiGOAiIIY4fEqoQFXoazEQIlrwnuhhKLoB8hgZXPlH/IhdsGmV911HpTxwef3Dkf8Lo9wL40hUvTR0uTfxtiHpPYFk527KxQhfLtbGdhAZJoQiEEChC+V1AsS0sR8AU0ISB8pwLtkPg2niuTaAZaBO4CXwBUL6hMFiA0zdDuuYDfcLyQQJaBJwG0QAo906gcAXMiInCOtuPQQ80gI4GKgYQ/dhSShNbPtDRdwGhsFw+z6JswWdTbV3/sH//3fXTAXlaAIV1qmr9RKnwAmGVsmxsLCxLgLA0eFiOBkyflzDQEWDknB3Qj11CxyVwxGxdlDAvIaZs4dsODcfFd1yU62hw5bgngRhZrkZSgxabcARiIOD5+m8CoO2H2EFAMgg1E1Gefs4Vc1cC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QQNqQfQwmaY808Zz8UXHIlnWpSWRbjv76t5vjbI5uo6OvpWICtLIRxFHqo8oYAPW2FiBXQ0YayppnjTOia6kgMrghTn22yubue5t9+eZSTs86r5N4we9hBASml2tq6+pnvzipsaNnaFXnxuGWWlOWzckKC2Nk1Jbh+au+K8/uk75BgR4l6SfnkljNmnkF/992kIK0hZv3z+8tdPeOvTTuaHBmAUFWCFgrjhPGLDB5MYFIWQg0gGKJq/kVC6AzfWTaqpmf+IdDNuRF66ra3r19fcf+2dnzeT9VWs9B4FINP89sSP3lz1UHtd16SVK9vZvDlNLGaQJ4p0cfzZJa9g6Wk8Q89nnHjYQC754dGYwTBVQ/vw3D83MG/hZmQmiekFsHOjLN+cwczvy6rD9sfOyaO0O8E+bz1NjimYNLIUy1FDb8bCwr6hS39298++tfHhXiKsePbm4CdrzP9csyp+3dat6f52xiKfPqRthzmr5hK3u5CeIJxjcPbUcZx07HcIRMKU9S1iyRsp1s0V1CXqWd6xgWGFVSxoa6cqL6BbO6VFebpNU5IfYvnqFFPLv1PXUb7qDoPOx25+7uZvf0B8e9bfdd5/5aza6E5vaU5evk/JyLHddlysaVrOmoZqDAJUlORy/eXHU1FaSCg3gkhFWT3bZM7y1azt3ki/gjJC0RysYIa059LeGaeqJJ94Ii6H9Kv8NNcovk+uKXvqF8un/N/+CcBu5N24Yb8H9pfF6XOW1M+bUtNYP6yoIGRccPphjBrZT7dBcosjtC2PsnRBnNUNDdiik5I+BeREQnpsMZm2VQt7vcR+PRoJPC1mtc2/mZv///ojj90punz2WfN/nntvQHFezmRXpPcdP3bIqIL8whGWF6xc+04oL7kqQ2Pfpu5omAZThNY6GWuV4waWOp6xcGg0UDPtuWn/lj/j+X+Lbso4jJUfOwAAAABJRU5ErkJggg==",Ne=Rt(3294),se=Rt(56102),Ae=Rt(24544),Xe=Rt(58617),Be=Rt(32050),Te=Object.defineProperty,ue=Object.defineProperties,$t=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,Qt=Object.prototype.propertyIsEnumerable,Wt=(Ue,Je,Ze)=>Je in Ue?Te(Ue,Je,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):Ue[Je]=Ze,Bt=(Ue,Je)=>{for(var Ze in Je||(Je={}))ye.call(Je,Ze)&&Wt(Ue,Ze,Je[Ze]);if(he)for(var Ze of he(Je))Qt.call(Je,Ze)&&Wt(Ue,Ze,Je[Ze]);return Ue},te=(Ue,Je)=>ue(Ue,$t(Je)),ge=(Ue,Je,Ze)=>new Promise((nn,fn)=>{var An=ii=>{try{Dn(Ze.next(ii))}catch(mi){fn(mi)}},En=ii=>{try{Dn(Ze.throw(ii))}catch(mi){fn(mi)}},Dn=ii=>ii.done?nn(ii.value):Promise.resolve(ii.value).then(An,En);Dn((Ze=Ze.apply(Ue,Je)).next())}),Ie=({title:Ue="\u5934\u6B4CAI",placeholder:Je,hideUpload:Ze,hideInputBox:nn,aiIcon:fn=Se,userIcon:An=xe,dragIcon:En=le,children:Dn,fetchUrl:ii,fetchData:mi={},extraAnswerAction:Ti,showDefaultTips:Oi=!0,onOpen:ki,onClose:pi,loadingOption:Bi,showPreference:Or=!1,initMessage:yr,customRequest:lr,visible:Si,width:ee=1200,isCheckRestrictNumber:Ds=!1,headNode:mr,headFunctionNode:ms,showRedraw:Xs,showEdit:Do,promptPropName:Oo="prompt",topPercentage:Gr,showSwitchingModel:sa=!1,showImageGenerator:dn=!1,showLookHistory:en=!1,fetchListObject:qe,customPreference:zn,customDataNode:Jn,showAddSession:hi,historyId:bn,draggableExtraNode:Bn,drawerExtraNode:Xi,menuExtraFunctionNode:dr,showSceneAwareness:ir=!1})=>{var We,Nn;const[ti,pr]=(0,Ft.useState)(!1),[on,Cn]=(0,Ft.useState)("qwen-max"),[xi,Zi]=(0,Ft.useState)([]),[Wi,oi]=(0,Ft.useState)([]),[ri,Zn]=(0,Ft.useState)(!1),[ur,Yr]=(0,Ft.useState)(!1),[br,mn]=(0,Ft.useState)(!1),[er,cr]=(0,Ft.useState)([]),[Mi,sn]=(0,Ft.useState)(""),[On,Qn]=(0,Ft.useState)(0),[si,ei]=(0,Ft.useState)(void 0),[Li,hr]=(0,Ft.useState)(!1),[Vi,Yi]=(0,Ft.useState)(null),[fr,vn]=(0,Ft.useState)(""),Qi=(0,Ft.useRef)(),gn=(0,Ft.useRef)(null),qi=(0,Ft.useRef)(null),[Io,Kr]=(0,Ft.useState)(!1),[Zo,Xr]=(0,Ft.useState)(!1),[Ri,Cr]=(0,Ft.useState)(!1),[ba,uo]=(0,Ft.useState)(!1),[Rn,Ee]=(0,Ft.useState)(0),jo=(0,Ft.useRef)(null),Qo=(0,Ft.useRef)(!1),Tl=(0,Ft.useRef)(null),[Pa,_l]=(0,Ft.useState)(void 0),[bu,ec]=(0,Ft.useState)(!0),[nc,Er]=(0,Ft.useState)(ee-28),[Zr,aa]=(0,Ft.useState)(!1),[vi,qn]=(0,Ft.useState)(!0),[xn,ai]=(0,Ft.useState)([]),zi=(0,Ft.useRef)([]),jr=(0,Ft.useRef)(null),Qr=(0,Ft.useRef)(null),Ur=(0,Ft.useRef)(!1),mo=nc-22,Jr=Mi==null?void 0:Mi.split(` -`).length,{onAdd:Ca,onGetList:Is,onListClick:Ol,onListDelete:$e,onListDealData:Es}=qe||{},Pu=50,Ba=10,Cu={maxCount:Pu,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:xi,multiple:!0,accept:".doc,.docx,.md,.txt,.pdf,.xlsx,.xls",beforeUpload:yn=>ge(void 0,null,function*(){var ci,Ei,Ii,rr;const ji=(rr=(Ii=(Ei=(ci=yn==null?void 0:yn.name)==null?void 0:ci.split("."))==null?void 0:Ei.slice(-1))==null?void 0:Ii[0])==null?void 0:rr.toLowerCase(),Nr=["doc","docx","md","pdf","txt","xlsx","xls"].includes(ji);return yn.size==0?(ie.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),rt.default.LIST_IGNORE):Nr?yn.size/1024/1024>100?(ie.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u5236100MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),rt.default.LIST_IGNORE):!0:(ie.ZP.warning("\u76EE\u524D\u652F\u6301txt\u3001md\u3001doc\u3001docx\u3001pdf\u3001xlsx\u3001xls\u6587\u4EF6"),rt.default.LIST_IGNORE)}),onChange:({fileList:yn})=>{Zi(yn)},action:`${(We=Ne.Z)==null?void 0:We.API_SERVER}/api/intelligent_imports/upload_file.json`},qr={maxCount:Ba,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:Wi,multiple:!0,accept:".jpg,.png,",beforeUpload:yn=>{var ci,Ei,Ii,rr;const ji=(rr=(Ii=(Ei=(ci=yn==null?void 0:yn.name)==null?void 0:ci.split("."))==null?void 0:Ei.slice(-1))==null?void 0:Ii[0])==null?void 0:rr.toLowerCase(),Nr=["jpg","png"].includes(ji);return yn.size==0?(ie.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),rt.default.LIST_IGNORE):Nr?yn.size/1024/1024>10?(ie.ZP.warning("\u4E0A\u4F20\u7684\u56FE\u7247\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),rt.default.LIST_IGNORE):!0:(ie.ZP.warning("\u76EE\u524D\u652F\u6301jpg\u3001png"),rt.default.LIST_IGNORE)},onChange:({fileList:yn})=>{oi(yn)},action:`${(Nn=Ne.Z)==null?void 0:Nn.API_SERVER}/api/ai/generals/update_file.json`};(0,Ft.useEffect)(()=>{if(!er.length||!Qi.current)return;const yn=er[er.length-1];yn!=null&&yn.loading&&(Qi.current.scrollTop=Qi.current.scrollHeight)},[er.length]),(0,Ft.useEffect)(()=>{if(!Qi.current||!jo.current)return;const yn=new IntersectionObserver(([ci])=>{ec(ci.isIntersecting)},{root:Qi.current,rootMargin:"70px",threshold:0});return yn.observe(jo.current),()=>{jo.current&&yn.unobserve(jo.current)}},[Qi.current,jo.current]),(0,Ft.useEffect)(()=>{if(!Io)return;const yn=Qi.current,ci=Tl.current;Qo.current=!1;let Ei=yn.scrollTop;const Ii=()=>{const{scrollTop:ji,scrollHeight:Ir,clientHeight:Nr}=yn;ji>Ei?ji+Nr>=Ir-50&&(yn.scrollTop=yn.scrollHeight,Qo.current=!1):ji{Qo.current||(yn.scrollTop=yn.scrollHeight)});return rr.observe(ci),()=>{var ji;rr.unobserve(ci),(ji=yn==null?void 0:yn.removeEventListener)==null||ji.call(yn,"scroll",Ii)}},[Io]),(0,Ft.useEffect)(()=>{!Io&&zi.current.length&&(cr([...er,...zi.current]),zi.current=[])},[Io]),(0,Ft.useEffect)(()=>{if(!Qi.current)return;const yn=new ResizeObserver(()=>{Er(Qi.current.offsetWidth)});return yn.observe(Qi.current),()=>{Qi.current&&yn.unobserve(Qi.current)}},[Qi.current]),(0,Ft.useEffect)(()=>{typeof Si=="boolean"&&pr(Si)},[Si]),(0,Ft.useEffect)(()=>{var yn;if(gn.current&&Vi!==null){gn.current.focus();const ci=(yn=gn.current.resizableTextArea)==null?void 0:yn.textArea;ci&&(ci.selectionStart=ci.selectionEnd=ci.value.length)}},[Vi]),(0,Ft.useEffect)(()=>{Jr<5&&hr(!1)},[Jr]),(0,Ft.useEffect)(()=>{ti&&yr&&(cr($a(yr)),Zn(!0),Yn(yr,{history:[]})),ti&&(Jo(),bn?jl(bn):hi&&!Pa&&Zs()),ti||tl()},[ti]);const $a=(yn="",ci=[],Ei=[])=>{const Ii=Date.now();return[{text:yn,key:Ii,sender:"user",fileList:ci,imageList:Ei,show:!0},{loading:!0,key:Ii,sender:"AI",show:!0,model:on,imageGenerator:Ri,thinkingEnabled:Zo}]},tl=()=>{vn(""),Yi(null),Zi([]),oi([]),sn("")},xr=()=>{if(ki){ki({chatData:er,setChatData:cr,setLoading:Zn,getData:Yn,renderChatItems:$a,handleAdd:Zs,identifier:Pa});return}pr(!0)},Eo=()=>{if(qn(!0),pi){pi();return}pr(!1)},Eu=()=>{hr(!Li)},Jo=()=>ge(void 0,null,function*(){if(!Ds)return;const yn=yield(0,fe.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});(yn==null?void 0:yn.status)===0&&(yn==null?void 0:yn.total_number)!==-1&&(Qn((yn==null?void 0:yn.total_number)-(yn==null?void 0:yn.remaining_number)),ei(yn==null?void 0:yn.total_number))}),ch=()=>{kt.default.info({title:"\u63D0\u793A",icon:null,okText:"\u6211\u77E5\u9053\u4E86",width:510,centered:!0,content:Ft.createElement("div",null,Ft.createElement("div",{style:{color:"#FA6400"}},"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),Ft.createElement("div",{className:"c-grey-333 mt5"},"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F\u7528",si,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))})},la=yn=>yn.reduce((Ei,Ii)=>{if(Ii.sender==="user"){const rr=yn.find(ji=>ji.key===Ii.key&&ji.sender==="AI");rr&&(rr!=null&&rr.text)&&!(rr!=null&&rr.error)&&Ei.push({question:Ii.text,answer:rr.text})}return Ei},[]),Yn=(...yn)=>ge(void 0,[...yn],function*(ci="",Ei={},Ii=er){if(lr&&(yield lr({mes:ci,setChatData:cr,fileList:xi,body:Ei,checkNum:Jo,setLoading:Zn,bodyChatData:Ii,setTyping:Kr,setImageGenerator:Cr,renderChatItems:$a})),!lr){const rr=xi==null?void 0:xi.map(bo=>{var Ms;return(Ms=bo==null?void 0:bo.response)==null?void 0:Ms.file_id}),ji=Wi==null?void 0:Wi.map(bo=>{var Ms;return(Ms=bo==null?void 0:bo.response)==null?void 0:Ms.data}),Ir=Ei.history||la(Ii),Nr=Bt(Bt({identifier:Pa,response_mode:"streaming",model:on,scene_awareness:ba,thinking_enabled:Zo,image_generator:Ri,file_ids:rr,image_list:ji,history:Ir,[Oo]:ci},mi),Ei),$o=Object.fromEntries(Object.entries(Nr).filter(([bo,Ms])=>Ms!==void 0));qi.current=new Ae.Z(Ne.Z.API_SERVER+ii,$o),yield new Promise((bo,Ms)=>{let oo=null,rc=null;qi.current.on("data",dh=>{Kr(!0);const{chunk:{content:vl,type:nl,created:Fo,msg:vs}}=dh,Ao=vs==="error";nl==="thinking"&&(oo=oo||Fo,cr(Po=>[...Po].map((il,tu)=>tu===Po.length-1?te(Bt({},il),{reasoning:(il.reasoning||"")+vl,loading:!1,hideAnswer:!0,error:Ao}):il))),nl==="text"&&(rc=rc||Fo,cr(Po=>[...Po].map((il,tu)=>tu===Po.length-1?te(Bt({},il),{text:(il.text||"")+vl,loading:!1,startTime:oo,endTime:rc,error:Ao}):il)))}),qi.current.on("done",()=>{bo()}),qi.current.on("error",()=>{const dh="\u62B1\u6B49\uFF0C\u6211\u521A\u521A\u9047\u5230\u4E86\u4E00\u70B9\u95EE\u9898\uFF0C\u6CA1\u80FD\u5B8C\u6210\u60A8\u7684\u8BF7\u6C42\u3002\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\u4E00\u6B21\uFF0C\u6216\u8005\u8054\u7CFB\u6280\u672F\u652F\u6301\u5E2E\u5FD9\u89E3\u51B3!";cr(vl=>[...vl].map((nl,Fo)=>Fo===vl.length-1?te(Bt({},nl),{text:dh,loading:!1,error:!0}):nl)),bo()}),qi.current.on("cancelled",()=>{bo()}),qi.current.startStream()})}Jo(),Zn(!1)}),If=yn=>{sn(yn.target.value)},ic=(yn,ci)=>{if(tl(),Zn(!0),yn==="edit"){zi.current=er.slice(ci+2);const Ei=er.splice(ci),{fileList:Ii,imageList:rr}=(Ei==null?void 0:Ei[0])||{},ji=Ii.map($o=>{var bo;return(bo=$o.response)==null?void 0:bo.file_id}),Ir=rr.map($o=>{var bo;return(bo=$o.response)==null?void 0:bo.data}),Nr={history:la(er),file_ids:ji,image_list:Ir,edit:!0};cr([...er,...$a(fr,Ii,rr)]),Yn(fr,Nr,er)}if(yn==="redraw"){zi.current=er.slice(ci+1);const Ei=er.splice(ci-1),{text:Ii,fileList:rr,imageList:ji}=(Ei==null?void 0:Ei[0])||{},Ir=rr.map(bo=>{var Ms;return(Ms=bo.response)==null?void 0:Ms.file_id}),Nr=ji.map(bo=>{var Ms;return(Ms=bo.response)==null?void 0:Ms.data}),$o={history:la(er),file_ids:Ir,image_list:Nr,edit:!0};cr([...er,...$a(Ii,rr,ji)]),Yn(Ii,$o,er)}},Ra=()=>{if(Mi.trim()!==""){tl(),Zn(!0);const yn=xi.filter(Ei=>Ei.status==="done"),ci=Wi.filter(Ei=>Ei.status==="done");cr([...er,...$a(Mi,yn,ci)]),Yn(Mi)}},Gc=yn=>{if(yn.shiftKey){if(yn.key==="Enter")return}else if(yn.key==="Enter"){if(yn.preventDefault(),gl||Ur.current)return;Ra()}},Uc=(yn,ci)=>{let Ei=!1;Do===!0?Ei=!0:Do==="last"&&(Ei=er.reduce((Ir,Nr,$o)=>Nr.sender==="user"?$o:Ir,-1)===ci);const Ii=ci===Vi,rr=[...(yn==null?void 0:yn.fileList)||[],...(yn==null?void 0:yn.imageList)||[]];return Ft.createElement("div",{className:me.li,style:{width:mo}},Ft.createElement("div",{className:me.avatarIcon},Ft.createElement("img",{className:me.img,src:An})),Ft.createElement("div",{className:me.content},!!(rr!=null&&rr.length)&&Ft.createElement("div",{className:me.fileWrap},rr==null?void 0:rr.map((ji,Ir)=>{var Nr,$o;return Ft.createElement("div",{key:Ir,className:me.file},Ft.createElement("img",{src:Rt(90034)(`./${(($o=(Nr=ji==null?void 0:ji.name)==null?void 0:Nr.split("."))==null?void 0:$o.pop())||"txt"}.png`),width:20,className:"mr10"}),Ft.createElement("aside",null,Ft.createElement(Ct.Z,{title:ji==null?void 0:ji.name},Ft.createElement("div",{className:me.fileName},ji==null?void 0:ji.name)),Ft.createElement("div",{className:"c-grey-999 font12"},(0,pe.RD)(ji==null?void 0:ji.size))))})),Ft.createElement("div",{className:me.borderBox},Ii?Ft.createElement(St.default.TextArea,{value:fr,ref:gn,autoSize:!0,placeholder:"\u8BF7\u8F93\u5165",bordered:!1,onChange:ji=>vn(ji.target.value)}):Ft.createElement("div",{className:me.text},yn==null?void 0:yn.text)),Ii?Ft.createElement("div",{className:me.action},Ft.createElement(pt.ZP,{onClick:()=>{vn(""),Yi(null)},size:"small"},"\u53D6\u6D88"),Ft.createElement(pt.ZP,{disabled:!fr.trim(),onClick:()=>ic("edit",ci),type:"primary",size:"small"},"\u786E\u8BA4")):Ft.createElement("div",{className:me.action},Ft.createElement(se.CopyToClipboard,{text:(yn==null?void 0:yn.text)||"",onCopy:()=>ie.ZP.success("\u590D\u5236\u6210\u529F")},Ft.createElement(Ct.Z,{title:"\u590D\u5236"},Ft.createElement("i",{className:"iconfont icon-fuzhi8 font13"}))),Ei&&!ri&&Ft.createElement(Ct.Z,{title:"\u7F16\u8F91"},Ft.createElement("i",{onClick:()=>{Yi(ci),vn((yn==null?void 0:yn.text)||"")},className:"iconfont icon-bianji10 font14"})))))},jn=(yn,ci)=>{let Ei=!1;Xs===!0?Ei=!0:Xs==="last"&&(Ei=er.reduce((ji,Ir,Nr)=>Ir.sender==="AI"?Nr:ji,-1)===ci);let Ii="";return yn!=null&&yn.source?Ii=yn==null?void 0:yn.source:(yn==null?void 0:yn.model)==="deepseek-r1"?Ii="\u7531deepseek\u751F\u6210":(yn==null?void 0:yn.model)==="qwen-max"&&(Ii="\u7531\u901A\u4E49\u5343\u95EE\u751F\u6210"),Ft.createElement("div",{className:me.li,style:{width:mo}},Ft.createElement("div",{className:me.avatarIcon},Ft.createElement("img",{className:me.img,src:fn})),Ft.createElement("div",{className:me.content},Ft.createElement("div",{className:me.borderBox},yn.loading&&Ft.createElement(Ft.Fragment,null,yn!=null&&yn.imageGenerator?Ft.createElement("div",{className:me.loadingPic},"\u6B63\u5728\u751F\u6210\u4E2D",Ft.createElement("div",{className:"ai-loading"})):!(yn!=null&&yn.thinkingEnabled)&&Ft.createElement("div",null,Ft.createElement("div",{className:me.loading},Ft.createElement("div",{className:me.dot}),Ft.createElement("div",{className:me.dot}),Ft.createElement("div",{className:me.dot})),Ft.createElement("div",{style:{marginTop:10,color:"#9096A3"}},(Bi==null?void 0:Bi.text)||"\u8BF7\u8010\u5FC3\u7B49\u5F85\uFF0C\u76EE\u524D\u9AD8\u5CF0\u671F\u4F53\u9A8C\u4EBA\u6570\u8FC7\u591A\uFF0C\u6211\u4EEC\u5DF2\u8BB0\u5F55\u4E0B\u60A8\u7684\u9700\u6C42\uFF0C\u7A0D\u540E\u5C06\u81EA\u52A8\u4E3A\u60A8\u751F\u6210\u7B54\u6848\u3002"))),(yn==null?void 0:yn.thinkingEnabled)&&Ft.createElement(ut,{time:yn==null?void 0:yn.time,cancelIndex:Rn,loading:yn.loading,streamingStatus:!(yn!=null&&yn.text),onFinish:()=>{Ee(0),cr(rr=>[...rr].map((ji,Ir)=>Ir===rr.length-1?te(Bt({},ji),{hideAnswer:!1,time:ji.startTime?ji.endTime-ji.startTime:null}):ji))},value:yn==null?void 0:yn.reasoning}),!!(yn!=null&&yn.text)&&!yn.hideAnswer&&Ft.createElement(E.Z,{cancelIndex:Rn,streamingStatus:ri,loadImage:!!(yn!=null&&yn.imageGenerator),onFinish:()=>ge(void 0,null,function*(){Ee(0),setTimeout(()=>Kr(!1),0)}),value:yn==null?void 0:yn.text})),!!(yn!=null&&yn.text)&&Ii&&Ft.createElement("div",{className:me.source},Ii),Ft.createElement("div",{className:me.action},Ti==null?void 0:Ti(yn,ci,{onMenuClick:jl}),Ft.createElement(se.CopyToClipboard,{text:String((yn==null?void 0:yn.text)||""),onCopy:()=>ie.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},Ft.createElement(Ct.Z,{title:"\u590D\u5236"},Ft.createElement("i",{className:"iconfot icon-fuzhi8 font13"}))),Or&&!ri&&Ft.createElement(Ft.Fragment,null,Ft.createElement(Ct.Z,{title:"\u559C\u6B22"},Ft.createElement("i",{style:yn!=null&&yn.like?{color:"#FA8D30"}:{},onClick:()=>$r("like",!(yn!=null&&yn.like),ci),className:"iconfot icon-yijiejue font15"})),Ft.createElement(Ct.Z,{title:"\u4E0D\u559C\u6B22"},Ft.createElement("i",{style:yn!=null&&yn.dislike?{color:"#e86d7c"}:{},onClick:()=>$r("dislike",!(yn!=null&&yn.dislike),ci),className:"iconfot icon-weijiejuezhengchang font15"}))),Ei&&!ri&&Ft.createElement(Ct.Z,{title:"\u91CD\u65B0\u751F\u6210"},Ft.createElement("i",{onClick:()=>ic("redraw",ci),className:"iconfot icon-gengxin-genghuan-tihuan"})))))},$r=(yn,ci,Ei)=>ge(void 0,null,function*(){if(zn){const Ii=er.slice(0,Ei+1),ji=la(Ii).length;yield zn({type:yn,value:ci,index:Ei,identifier:Pa,objectIndex:ji})}cr(Ii=>(Ii[Ei][yn]=ci,ci&&(Ii[Ei][yn==="like"?"dislike":"like"]=!1),[...Ii]))}),vo=()=>{var yn,ci;Ee(1),(ci=(yn=qi.current)==null?void 0:yn.cancelRequest)==null||ci.call(yn),Zn(!1),Kr(!1)},Zs=()=>ge(void 0,null,function*(){var yn,ci,Ei;(ci=(yn=qi.current)==null?void 0:yn.cancelRequest)==null||ci.call(yn),tl(),cr([]),Zn(!0);const Ii=yield Ca();(Ii==null?void 0:Ii.status)===0&&_l((Ei=Ii==null?void 0:Ii.data)==null?void 0:Ei.identifier),Zn(!1),Kr(!1)}),$l=()=>ge(void 0,null,function*(){var yn;mn(!0);const ci=yield Is();(ci==null?void 0:ci.status)===0&&ai(((yn=ci==null?void 0:ci.data)==null?void 0:yn.list)||[]),mn(!1)}),jl=(...yn)=>ge(void 0,[...yn],function*(ci=Pa){var Ei,Ii,rr,ji;(Ii=(Ei=qi.current)==null?void 0:Ei.cancelRequest)==null||Ii.call(Ei),tl(),Yr(!0);const Ir=yield Ol(ci);if(Ir.status===0){const Nr=Es(((rr=Ir==null?void 0:Ir.data)==null?void 0:rr.messages)||[]);cr(Nr),Yr(!1),_l((ji=Ir==null?void 0:Ir.data)==null?void 0:ji.identifier);return}cr([]),Yr(!1)}),wi=(yn,ci)=>ge(void 0,null,function*(){(yield $e(yn)).status===0&&(ie.ZP.success("\u5220\u9664\u6210\u529F"),ci===Pa&&Zs(),$l())}),fh=()=>Ft.createElement("div",{className:me.menuWarp},Ft.createElement("h4",null,"\u5386\u53F2\u5BF9\u8BDD"),Ft.createElement(vt.Z,{spinning:br},!xn.length&&Ft.createElement(yt.Z,{style:{width:250,paddingBottom:30},image:yt.Z.PRESENTED_IMAGE_SIMPLE}),!!xn.length&&Ft.createElement("div",{className:me.menu},xn.map(function(yn,ci){return Ft.createElement("aside",{className:lt()(Pa===yn.identifier&&me.active),key:yn.id,onClick:()=>jl(yn.id)},Ft.createElement("div",{className:me.menuText},Ft.createElement(Ct.Z,{title:yn==null?void 0:yn.question},Ft.createElement("span",null,yn==null?void 0:yn.question)),dr&&dr(yn)),Ft.createElement("div",{className:me.menuDel,onClick:Ei=>Ei.stopPropagation()},Ft.createElement(xt.Z,{title:"\u63D0\u793A",description:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u672C\u6761\u5BF9\u8BDD\u5417\uFF1F",onConfirm:()=>wi(yn.id,yn.identifier),okText:"\u786E\u8BA4",zIndex:1100,cancelText:"\u53D6\u6D88"},Ft.createElement("i",{className:"iconfont icon-shanchu14 delete-hover font14"}))))})))),el=yn=>{if(yn==="file"){if(Wi.length){kt.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4\u8986\u76D6",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5DF2\u5B58\u5728\u56FE\u7247\uFF0C\u4E0A\u4F20\u6587\u4EF6\u540E\u56FE\u7247\u5C06\u4F1A\u88AB\u8986\u76D6?",onOk:()=>{oi([]),jr.current.upload.uploader.fileInput.click()}});return}jr.current.upload.uploader.fileInput.click()}if(yn==="image"){if(xi.length){kt.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4\u8986\u76D6",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5DF2\u5B58\u5728\u6587\u4EF6\uFF0C\u4E0A\u4F20\u56FE\u7247\u540E\u6587\u4EF6\u5C06\u4F1A\u88AB\u8986\u76D6?",onOk:()=>{Zi([]),Qr.current.upload.uploader.fileInput.click()}});return}Qr.current.upload.uploader.fileInput.click()}},Fs=[{key:"file",disabled:xi.length>=Pu,label:Ft.createElement(Ct.Z,{placement:"right",title:Ft.createElement("div",null,Ft.createElement("b",null,"\u4E0A\u4F20\u9644\u4EF6\uFF08\u4EC5\u8BC6\u522B\u6587\u5B57\uFF09"),Ft.createElement("div",null,"\u6700\u591A 50 \u4E2A\uFF0C\u6BCF\u4E2A 100 MB\uFF0C\u652F\u6301\u5404\u7C7B\u578B\u6587\u6863"))},Ft.createElement("span",null,Ft.createElement("i",{className:"iconfont icon-fujian3 font14 mr5"}),"\u4E0A\u4F20\u6587\u6863"))},on!=="deepseek-r1"&&{key:"image",disabled:Wi.length>=Ba,label:Ft.createElement(Ct.Z,{placement:"right",title:"\u652F\u6301\u4E0D\u8D85\u8FC710M\u7684PNG/JPG\u56FE\u7247\uFF0C\u6700\u591A10\u4E2A"},Ft.createElement("span",null,Ft.createElement("i",{className:"iconfont icon-tupianshangchuan font14 mr5"}),"\u4E0A\u4F20\u56FE\u7247"))}].filter(Boolean),qo=[...xi,...Wi],gl=qo.some(yn=>yn.status==="uploading")||ri||Io,ml=On>=si,As=Ze||xi.length>=Pu||Wi.length>=Ba,Ea=Ri||Zo||ba||!!qo.length;return console.log(qo,"fileAndImageList"),Ft.createElement("div",null,Dn?Ft.createElement("div",{onClick:xr},Dn):Ft.createElement(He,{draggableExtraNode:Bn,src:En,onClick:xr,topPercentage:Gr}),Ft.createElement(dt.Z,{open:ti,width:Zr?"100%":ee,afterOpenChange:yn=>{yn&&qn(!1)},push:!1,contentWrapperStyle:vi?{}:{transition:"none"},extra:Ft.createElement("div",{className:me.head},Xi,sa&&Ft.createElement(ke,{value:on,onChange:yn=>{Xr(!1),Cr(!1),Cn(yn),oi([]),Zi([])}}),en&&Ft.createElement(Ft.Fragment,null,Ft.createElement(ft.Z,{dropdownRender:fh,onOpenChange:yn=>{yn&&$l()},placement:"bottomLeft",arrow:!0},Ft.createElement("div",{className:me.headBtn},Ft.createElement("i",{className:"icon-lishiduihua1 font14 mr10"}),"\u5386\u53F2\u5BF9\u8BDD"))),hi&&Ft.createElement(Ft.Fragment,null,Ft.createElement("div",{className:me.headBtn,onClick:Zs},Ft.createElement("i",{className:"icon-xinjianduihua font14 mr10"}),"\u65B0\u5EFA\u5BF9\u8BDD")),Ft.createElement(Ct.Z,{title:Zr?"\u9000\u51FA\u5168\u5C4F":"\u5168\u5C4F"},Ft.createElement("div",{className:me.headBtn,style:{padding:"0 12px"},onClick:()=>aa(!Zr)},Zr&&Ft.createElement("i",{className:"iconfont icon-tuichuquanping3"}),!Zr&&Ft.createElement("i",{className:"iconfont icon-quanping4"})))),title:Ft.createElement("span",{className:"c-grey-333 font16"},Ue),onClose:Eo,bodyStyle:{paddingRight:4}},Ft.createElement("div",{className:lt()(me.wrap,ti&&"body-overflow-hidden")},Ft.createElement("div",{ref:Qi,className:me.chatContainer},Oi&&Ft.createElement("div",{className:`${me.li} mb20`,style:{width:mo}},Ft.createElement("div",{className:me.avatarIcon},Ft.createElement("img",{className:me.img,src:fn})),Ft.createElement("div",{className:me.content},Ft.createElement("div",{className:me.borderBox},mr,ms==null?void 0:ms({isDisabledNum:ml,checkNumModal:ch,checkNum:Jo,onClose:Eo,setChatData:cr,setLoading:Zn,getData:Yn,clearStatus:tl,typing:Io,setImageGenerator:Cr,renderChatItems:$a,setSceneAwareness:uo})))),Ft.createElement("div",{ref:Tl},Ft.createElement(vt.Z,{spinning:ur,className:"mt20"},er==null?void 0:er.map((yn,ci)=>Ft.createElement(Ft.Fragment,{key:yn.key+ci},yn.show&&Ft.createElement(Ft.Fragment,null,yn.sender==="user"&&Uc(yn,ci),yn.sender==="AI"&&jn(yn,ci),Jn&&!["AI","user"].includes(yn.sender)&&Jn(yn,ci,{width:mo})))))),!bu&&Ft.createElement("div",{className:me.backBottom,onClick:()=>{Qi.current.scrollTop=Qi.current.scrollHeight}},Ft.createElement("i",{className:"iconfont icon-huidaodibu"})),Ft.createElement("div",{ref:jo})),!nn&&Ft.createElement("div",{className:lt()(me.footerContainer,Li&&me.full,Ea&&me.footerContainerSelected)},Ft.createElement("div",{className:me.btnWrp},ir&&Ft.createElement(Ct.Z,{title:"\u667A\u80FD\u611F\u77E5\u5F53\u524D\u60C5\u5883\uFF0C\u63D0\u4F9B\u9488\u5BF9\u6027\u89E3\u7B54"},Ft.createElement("div",{onClick:()=>uo(!ba),className:lt()(me.btn,ba&&me.btnActive)},Ft.createElement("i",{className:"iconfont icon-changjingganzhi mr10 font12"}),"\u573A\u666F\u611F\u77E5")),on==="deepseek-r1"&&Ft.createElement(Ct.Z,{title:"\u8C03\u7528\u65B0\u6A21\u578B DeepSeek-R1\uFF0C\u89E3\u51B3\u63A8\u7406\u95EE\u9898"},Ft.createElement("div",{onClick:()=>Xr(!Zo),className:lt()(me.btn,Zo&&me.btnActive)},Ft.createElement("i",{className:"iconfont icon-shendusikao mr10 font12"}),"\u6DF1\u5EA6\u601D\u8003\uFF08R1\uFF09")),dn&&on==="qwen-max"&&Ft.createElement("div",{onClick:()=>Cr(!Ri),className:lt()(me.btn,Ri&&me.btnActive)},Ft.createElement("i",{className:"iconfont icon-shangchuantupian2 mr10 font12"}),"\u56FE\u50CF\u751F\u6210"),qo.map(yn=>Ft.createElement("div",{key:yn.uid},(yn==null?void 0:yn.status)==="uploading"&&Ft.createElement(vt.Z,{indicator:Ft.createElement(Xe.Z,{spin:!0}),className:"mr10",size:"small",spinning:!0}),Ft.createElement("span",{title:yn==null?void 0:yn.name,className:"mr10"},(0,pe.Pq)(yn.name,20)),Ft.createElement("i",{onClick:()=>{Zi(ci=>ci.filter(Ei=>Ei.uid!==yn.uid)),oi(ci=>ci.filter(Ei=>Ei.uid!==yn.uid))},className:"iconfont current icon-shanchu15 delete-hover c-red-ee4 font12"})))),Ft.createElement(Ct.Z,{title:ml&&Ft.createElement("div",null,Ft.createElement("div",null,"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),Ft.createElement("div",null,"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F",si,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))},Ft.createElement("div",{className:lt()(me.inputContainer,Jr>4&&me.lineFour,ml&&me.disabledInput)},Ft.createElement(rt.default,Bt({ref:jr},Cu)),Ft.createElement(rt.default,Bt({ref:Qr},qr)),Ft.createElement(ft.Z,{className:`${As&&"hide"}`,menu:{items:Fs,onClick:yn=>el(yn.key)},placement:"top"},Ft.createElement(pt.ZP,{className:me.uploadBtn,icon:Ft.createElement(Be.Z,{style:{fontSize:18,color:"#FFF"}})})),Ft.createElement(St.default.TextArea,{rows:Jr>4?4:Jr,placeholder:Je||"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u95EE\u9898\u5427,Shift+Enter\u6362\u884C\uFF5E",value:Mi,bordered:!1,style:As?{paddingLeft:0,marginLeft:0}:{},onChange:If,onPressEnter:Gc,onCompositionStart:()=>{Ur.current=!0},onCompositionEnd:()=>{Ur.current=!1}}),Io?Ft.createElement(Ct.Z,{title:"\u505C\u6B62\u751F\u6210"},Ft.createElement("div",{className:`iconfont icon-tingzhihuida ${me.cancelBtn}`,onClick:vo})):Ft.createElement(pt.ZP,{className:(Mi==null?void 0:Mi.trim())===""?me.sendBtnDisabled:me.sendBtn,icon:Ft.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:gl,onClick:Ra}),Jr>4&&Ft.createElement("span",{className:me.fullIcon,onClick:Eu},Li&&Ft.createElement("span",{className:"iconfont icon-shousuo"}),!Li&&Ft.createElement("span",{className:"iconfont icon-zhankai"}))))))))}},67054:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return Ut},U:function(){return jt}});var Ft=Rt(59301),ie=Rt(31797),rt=Rt(43418),kt=Rt(1710),Ct=Rt(4901),St=Rt(94941),pt=Rt(61186),vt=Rt.n(pt),yt={exitFullScreenModalWrapper:"exitFullScreenModalWrapper___aNB9Q",exitFullScreenModal:"exitFullScreenModal___HIMyY",warningIcon:"warningIcon___xEURa",warningText:"warningText___W6NPJ",countdownWrapper:"countdownWrapper___n8g1M",forcedModalWrapper:"forcedModalWrapper___JPMQ2",forcedModalContent:"forcedModalContent___uY5FV",forcedText:"forcedText___C3CrF",screenNumText:"screenNumText___oljHN"},xt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJwAAACwCAYAAAD61gcAAAAAAXNSR0IArs4c6QAAIABJREFUeF7tnQd4XHeZ7n9/zUgzkkZdsiX3XmM7xWlONYE0AsuyEMizwAKbDcuFAMvCXvbuEpwsZeksBNilLZBLKIGQUC+EVEKSTYN0O8W9W26SrK4593nP+X/jvyd2LCeOZMbR88gjz5w59T3v933vV47jpZ+XzsAIngE3gtsqiU3tiaJxFYNMzufZk6ngEZyLSuLARuggXgLcME90FN2aHST34fTQjDeQqplOfqibsp4/QOqjztXcMczVHPWLvQS4g0IgclH0eDm7HvsBmca/pBvI5/OUVZRRXQ9l1bupqHq9c+NvOuiqXlqAlwA3DBBEe655J71lX2F3T0Q64yjLQFkVuHREqttRXfkYVa2nO3fcrmGs7qhe5CXAHeTyR7eSpmHJvQxWH0dqLJSPgXQjpFuIgTe4ISLT42ia8XKXe+vNRzWahnHwLwHuYID7ERWkWUk540k7yNZDZi6kp0OqHIa2RFT1OSa+/H2u7kP/MYxzflQv8hLgDga4X5Ghi6epYAJpIAtk5kB6JpRlIWqPqBp0THrlP7v6D/37UY2mYRz8S4A7KOBmZNjzdAK4lACXhuwCKJ8KzgOuetAx5cJ/drkPvAS4g5zPlwB3MMA9NSPDQ08/TbkxXAYyx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uD2zoDSocAS/0cRPTjAaw7/rOjJeR1bvOlaAPgdMjdr4St0/FgcIG5YoAtDUb37G1bzrDZX2UNrxIE6TkwoL/8d0321TbvzKSI5Z4CW8Gpzby/NrFk89H0N9C9S6shR23b9dUsq+oSKaJcyg7Wl/tXjVLachi+/gIhz/gBjfH0lKftjF+DBZypz5n7yNYnrZGlVAOWpXpfqt+5XVHVlOOXzYLaes6cp7lsT0KLM6h/2lnqtw8RX/QYumE+Y7XXy6xth/8if6ImB6BgJdpDQ2ujdGnOonKuwunsf2//79VZiDt+futsxb/2re3v1fPQ1TTTant/5lqvbvcZ3dWg/99cOe54/O2Ptf31b2/83OetvD93rpmxapp/vuPXJp9c98j23mXcU3cgy23lQ6qdgowgNPwCCYtZKRJmPlKmFd/M4C19WyTQWCXw/2FPRE8ZCmprAAAAAElFTkSuQmCC",ft=Rt(955),ct=Rt(89070),lt=Rt(37518),E=Rt(59301),z=Object.defineProperty,ot=Object.defineProperties,it=Object.getOwnPropertyDescriptors,at=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,Et=(Xt,Gt,Yt)=>Gt in Xt?z(Xt,Gt,{enumerable:!0,configurable:!0,writable:!0,value:Yt}):Xt[Gt]=Yt,At=(Xt,Gt)=>{for(var Yt in Gt||(Gt={}))ut.call(Gt,Yt)&&Et(Xt,Yt,Gt[Yt]);if(at)for(var Yt of at(Gt))wt.call(Gt,Yt)&&Et(Xt,Yt,Gt[Yt]);return Xt},_t=(Xt,Gt)=>ot(Xt,it(Gt)),Mt=(Xt,Gt,Yt)=>new Promise((Ht,ne)=>{var ae=re=>{try{Kt(Yt.next(re))}catch(we){ne(we)}},ve=re=>{try{Kt(Yt.throw(re))}catch(we){ne(we)}},Kt=re=>re.done?Ht(re.value):Promise.resolve(re.value).then(ae,ve);Kt((Yt=Yt.apply(Xt,Gt)).next())});const jt=["fullscreenchange","msfullscreenchange","webkitfullscreenchange","mozfullscreenchange"],{Countdown:Lt}=ie.default,It=({exercise:Xt,socket:Gt,dispatch:Yt,onStartScreenshot:Ht,onCloseScreenshot:ne,handleToDetail:ae})=>{const[ve,Kt]=rt.default.useModal(),re=(0,Ft.useRef)(),[we,Me]=(0,Ft.useState)(!0),ke=(0,Ft.useRef)(!1),me=(0,ct.useParams)();(0,Ft.useEffect)(()=>{var he,ye,Qt;if(document.addEventListener((0,Ct.gH)(),ue,!1),window.addEventListener("blur",Be,!1),(he=Xt.exerciseUserInfo)!=null&&he.screen_open&&(0,Ct.vp)()&&Me(!1),(ye=Xt.exerciseUserInfo)!=null&&ye.screen_open&&!(0,Ct.vp)()){(0,ft.RG)(" ",!0);const Wt=document.domain==="kepukehuan.educoder.net"?30:localStorage.getItem("Refresh")==="1"?Xt.exerciseUserInfo.screen_sec+3:Xt.exerciseUserInfo.screen_sec+10+1;re.current=rt.default.info({icon:null,centered:!0,width:444,title:(0,lt._V)(lt.CP.recordScreen1),keyboard:!1,content:E.createElement("div",null,(0,lt._V)(lt.CP.recordScreen2),E.createElement("span",{style:{color:"#FF9849"}},Xt.exerciseUserInfo.screen_num-Xt.exerciseUserInfo.used_screen_num),(0,lt._V)(lt.CP.recordScreen3)),okText:E.createElement("span",null,(0,lt._V)(lt.CP.recordScreen4),"\uFF08",E.createElement("span",{style:{display:"inline-block"}},E.createElement(Lt,{onFinish:()=>Mt(void 0,null,function*(){var Bt;const te=yield Te();(Bt=re.current)==null||Bt.destroy(),te.used_screen_num&&se(te.used_screen_num+1)}),valueStyle:{fontSize:14,lineHeight:1.4,color:"#FFF",display:"inline-block"},format:"ss",value:Date.now()+Wt*1e3})),"S\uFF09"),onOk:()=>{var Bt;(0,ft.RG)(" ",!0),(Bt=re.current)==null||Bt.destroy(),Me(!1),(0,Ct.Dj)(document.body),document.getElementById("root").addEventListener("click",pe,!1)}})}return(Qt=Xt.exerciseUserInfo)!=null&&Qt.screen_open&&!(0,Ct.vp)()||document.getElementById("root").addEventListener("click",pe,!1),()=>{document.getElementById("root").removeEventListener("click",pe,!1),document.removeEventListener((0,Ct.gH)(),ue,!1),window.removeEventListener("blur",Be,!1)}},[]),(0,Ft.useEffect)(()=>{setTimeout(()=>{Xt.actionTabs.removeEventListenerExitScreen&&(document.getElementById("root").removeEventListener("click",pe,!1),document.removeEventListener((0,Ct.gH)(),ue,!1))},500),_e()},[Xt.actionTabs]),(0,Ft.useEffect)(()=>{setTimeout(()=>{Xt.exerciseUserInfo.used_screen_num>Xt.exerciseUserInfo.screen_num&&Ae()},500)},[Xt.exerciseUserInfo]);const fe=()=>Mt(void 0,null,function*(){const he=yield Te();setTimeout(()=>{var ye,Qt;(ye=re.current)==null||ye.destroy(),re.current=rt.default.info({okText:E.createElement("span",null,"\u56DE\u5230\u8003\u8BD5"),content:E.createElement("div",null,"\u60A8\u5DF2\u5207\u5C4F",E.createElement("span",{className:"c-red"},he.used_screen_num),"\u6B21\uFF0C\u5207\u5C4F\u8D85\u8FC7",E.createElement("span",{className:"c-red"},(Qt=Xt.exerciseUserInfo)==null?void 0:Qt.screen_num),"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377"),onOk:()=>Mt(void 0,null,function*(){(0,Ct.Dj)(document.body)})})},1e3)}),pe=he=>{!(0,Ct.vp)()&&he.target.nodeName!=="A"&&he.target.nodeName!=="BUTTON"&&he.target.innerHTML!=="\u786E \u5B9A"&&(0,Ct.Dj)(document.body)},_e=()=>Mt(void 0,null,function*(){const he=yield Yt({type:"exercise/getExerciseUserInfo",payload:At({},me)});return he==null?void 0:he.data}),je=he=>Mt(void 0,null,function*(){var ye;if((ye=Xt.exerciseUserInfo)!=null&&ye.screen_at){const Wt=yield(0,St.ck)(_t(At({},me),{reset:!0}));if((Wt==null?void 0:Wt.status)===-6)return}const Qt=yield(0,St.oy)({id:me.categoryId});if(Qt!=null&&Qt.is_commit){rt.default.destroyAll(),yield He(),Xe(!0);return}else se(he+1)}),He=()=>Mt(void 0,null,function*(){var he;const ye=vt()(),Qt=Xt.exerciseUserInfo.screen_sec;if(le.current.length>0){const Wt=ye.format("YYYY-MM-DD HH:mm:ss");let Bt=Math.floor(ye.diff(vt()(le.current[0].start))/1e3);const te=le.current.length;Bt/Qt>>0>te&&(Bt=(te+1)*Qt-1),yield(0,St.P8)(me.categoryId,{exercise_user_id:(he=Xt.exerciseUserInfo)==null?void 0:he.exercise_user_id,time:Wt,time_long:Bt,count:te})}le.current=[]}),Se=(0,Ft.useRef)(0),xe=(0,Ft.useRef)(0),le=(0,Ft.useRef)([]),Ne=(0,Ft.useRef)(!1),se=he=>Mt(void 0,null,function*(){var ye;ke.current||(Ht(),rt.default.destroyAll(),Se.current=vt()().valueOf(),Ne.current=!0,re.current=rt.default.info({icon:null,maskClosable:!1,width:1080,keyboard:!1,centered:!0,className:yt.exitFullScreenModalWrapper,okText:E.createElement("span",null,(0,lt._V)(lt.CP.recordScreen8)),content:E.createElement("div",{className:yt.exitFullScreenModal},E.createElement("img",{src:xt,alt:"",className:yt.warningIcon}),E.createElement("div",{className:yt.warningText,style:{marginBottom:50,fontWeight:500}},(0,lt._V)(lt.CP.recordScreen9)),E.createElement("div",{style:{marginBottom:40}},(0,lt._V)(lt.CP.recordScreen10)),E.createElement("div",{style:{marginBottom:40}},(0,lt._V)(lt.CP.recordScreen11),E.createElement("span",{className:yt.warningText},((ye=Xt.exerciseUserInfo)==null?void 0:ye.screen_num)+1),(0,lt._V)(lt.CP.recordScreen12),E.createElement("span",{className:yt.warningText,style:{fontWeight:600}},(0,lt._V)(lt.CP.recordScreen13)),",",(0,lt._V)(lt.CP.recordScreen14),E.createElement("span",{className:yt.warningText},he-1),(0,lt._V)(lt.CP.recordScreen15)),E.createElement("div",null,E.createElement("span",null,E.createElement(Lt,{className:yt.countdownWrapper,onFinish:()=>{xe.current=vt()().valueOf(),le.current.push({start:Se.current,end:xe.current}),je(he)},valueStyle:{fontSize:30,color:"#165DFF"},format:"ss",value:Date.now()+(Xt.exerciseUserInfo.screen_sec+1)*1e3}),(0,lt._V)(lt.CP.recordScreen25)),(0,lt._V)(lt.CP.recordScreen16))),onOk:()=>{(0,ft.RG)(" ",!0),He(),(0,Ct.Dj)(document.body),ne(),re.current.destroy(),Ne.current=!1}}))}),Ae=()=>Mt(void 0,null,function*(){rt.default.destroyAll(),(yield(0,St.VL)({categoryId:me.categoryId,commit_method:1}))&&Xe()}),Xe=(he=!1)=>Mt(void 0,null,function*(){var ye,Qt;if(document.removeEventListener((0,Ct.gH)(),ue,!1),(0,Ct.BU)(),rt.default.destroyAll(),ke.current=!0,he){const Wt=yield(0,St.Yu)(me.categoryId,{exercise_user_id:(ye=Xt.exerciseUserInfo)==null?void 0:ye.exercise_user_id});ve.confirm({icon:null,closable:!1,maskClosable:!1,okText:"\u7533\u8BF7\u7EE7\u7EED\u8003\u8BD5",cancelText:"\u8FD4\u56DE",width:616,className:yt.forcedModalWrapper,centered:!0,content:E.createElement("div",{className:yt.forcedModalContent},E.createElement("img",{src:dt,alt:""}),E.createElement("div",{className:yt.forcedText},(0,lt._V)(lt.CP.recordScreen17)),E.createElement("div",{className:yt.screenNumText},(0,lt._V)(lt.CP.recordScreen18),(Qt=Xt.exerciseUserInfo)==null?void 0:Qt.screen_num,(0,lt._V)(lt.CP.recordScreen19)),E.createElement(kt.default,{dataSource:Wt==null?void 0:Wt.data,pagination:!1,rowKey:"time",bordered:!0,columns:[{title:(0,lt._V)(lt.CP.recordScreen20),align:"center",dataIndex:"time"},{title:(0,lt._V)(lt.CP.recordScreen21),align:"center",dataIndex:"time_long"},{title:(0,lt._V)(lt.CP.recordScreen22),align:"center",dataIndex:"count"}]})),onCancel:()=>{ne(),ae()},onOk:()=>{ct.history.push(`/classrooms/${me.coursesId}/exercisenotice/${me.categoryId}/users/${me.login}?isShowApply=true`)}})}else ve.info({content:E.createElement("div",{className:"tc font16"},(0,lt._V)(lt.CP.recordScreen23),E.createElement("br",null),(0,lt._V)(lt.CP.recordScreen24)),onOk:()=>{ae()}})}),Be=he=>{(0,Ct.vp)()&&document.getElementById("iframeShixuns").style.display=="none"&&!Ne.current&&(0,Ct.BU)()},Te=()=>Mt(void 0,null,function*(){var he;if((he=Xt.exerciseUserInfo)!=null&&he.screen_at){const Wt=yield(0,St.ck)(_t(At({},me),{reset:!0}));if((Wt==null?void 0:Wt.status)===-6)return}const ye=yield(0,St.oy)({id:me.categoryId});if(ye!=null&&ye.is_commit){Xe();return}return yield _e()}),ue=()=>Mt(void 0,null,function*(){var he;if((0,ft.RG)(" ",!0),(0,Ct.vp)()){if((he=Xt.exerciseUserInfo)!=null&&he.screen_at){var ye=yield(0,St.ck)(_t(At({},me),{reset:!0}));if((ye==null?void 0:ye.status)===-6)return}}else if(!Ne.current){var ye=yield(0,St.ck)(At({},me));if((ye==null?void 0:ye.status)===-6)return;const Wt=yield _e();se(Wt.used_screen_num+1),window.frames.length!=parent.frames.length&&window.parent.postMessage("backExercise","*")}}),$t=()=>Mt(void 0,null,function*(){(0,St.ck)(At({},me));const he=yield _e();se(he.used_screen_num+1),window.frames.length!=parent.frames.length&&window.parent.postMessage("backExercise","*")});return E.createElement("div",null,Kt)};var Ut=(0,ct.connect)(({exercise:Xt,globalSetting:Gt})=>({globalSetting:Gt,exercise:Xt}))(It)},23960:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{X:function(){return kt},y:function(){return rt}});var Ft=Rt(59301),ie=Rt(8591);const rt=Ct=>{(0,Ft.useEffect)(()=>{if(Ct){const St=vt=>{vt.key==="F12"&&(vt.preventDefault(),console.log("F12\u88AB\u7981\u7528"))},pt=vt=>{vt.preventDefault()};return document.addEventListener("keydown",St),document.addEventListener("contextmenu",pt),()=>{document.removeEventListener("keydown",St),document.removeEventListener("contextmenu",pt)}}},[Ct])},kt=()=>{const[Ct,St]=(0,Ft.useState)(!1),pt=vt=>{const{keyCode:yt,ctrlKey:xt,metaKey:dt,type:ft}=vt;(ft==="paste"||(yt===67||yt===86)&&(dt||xt))&&(ie.ZP.warning("\u8001\u5E08\u5DF2\u8BBE\u7F6E\u7B54\u9898\u65F6\u4E0D\u5141\u8BB8\u8FDB\u884C\u590D\u5236\u7C98\u8D34"),vt.preventDefault(),vt.stopPropagation())};return(0,Ft.useEffect)(()=>(Ct&&(window.addEventListener("keydown",pt,!0),window.addEventListener("paste",pt,!0)),()=>{window.removeEventListener("keydown",pt,!0),window.removeEventListener("paste",pt,!0)}),[Ct]),{setOpenDisableCopyAndPaste:St,disableCopyAndPaste:Ct}}},16406:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return ye}});var Ft=Rt(59301),ie={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},rt=Rt(92310),kt=Rt.n(rt),Ct=Rt(71418);var St=function(Qt,Wt){return(St=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Bt,te){Bt.__proto__=te}||function(Bt,te){for(var ge in te)Object.prototype.hasOwnProperty.call(te,ge)&&(Bt[ge]=te[ge])})(Qt,Wt)};function pt(Qt,Wt){function Bt(){this.constructor=Qt}St(Qt,Wt),Qt.prototype=Wt===null?Object.create(Wt):(Bt.prototype=Wt.prototype,new Bt)}function vt(Qt,Wt,Bt,te){return new(Bt||(Bt=Promise))(function(ge,Jt){function Ie(Ze){try{Je(te.next(Ze))}catch(nn){Jt(nn)}}function Ue(Ze){try{Je(te.throw(Ze))}catch(nn){Jt(nn)}}function Je(Ze){var nn;Ze.done?ge(Ze.value):(nn=Ze.value,nn instanceof Bt?nn:new Bt(function(fn){fn(nn)})).then(Ie,Ue)}Je((te=te.apply(Qt,Wt||[])).next())})}function yt(Qt,Wt){var Bt,te,ge,Jt,Ie={label:0,sent:function(){if(1&ge[0])throw ge[1];return ge[1]},trys:[],ops:[]};return Jt={next:Ue(0),throw:Ue(1),return:Ue(2)},typeof Symbol=="function"&&(Jt[Symbol.iterator]=function(){return this}),Jt;function Ue(Je){return function(Ze){return function(nn){if(Bt)throw new TypeError("Generator is already executing.");for(;Ie;)try{if(Bt=1,te&&(ge=2&nn[0]?te.return:nn[0]?te.throw||((ge=te.return)&&ge.call(te),0):te.next)&&!(ge=ge.call(te,nn[1])).done)return ge;switch(te=0,ge&&(nn=[2&nn[0],ge.value]),nn[0]){case 0:case 1:ge=nn;break;case 4:return Ie.label++,{value:nn[1],done:!1};case 5:Ie.label++,te=nn[1],nn=[0];continue;case 7:nn=Ie.ops.pop(),Ie.trys.pop();continue;default:if(ge=Ie.trys,!((ge=ge.length>0&&ge[ge.length-1])||nn[0]!==6&&nn[0]!==2)){Ie=0;continue}if(nn[0]===3&&(!ge||nn[1]>ge[0]&&nn[1]0){Ut(re),Gt(re.length),(!Mt||jt>0)&&!Lt&&se();return}else if(Xt{Ut(re.slice(0,Xt+2)),Gt(Me=>Me+2)},we>10?Math.max(500/(we/2),20):50);return()=>clearInterval(ke)}else Mt||se()},[_t,Mt,jt,Lt,Xt]),(0,Ft.useMemo)(()=>Ft.createElement("section",{className:`${pt.answer} fadeIn animated edu_md`},Ft.createElement(ie.UG,{remarkPlugins:[dt.Z,ft.Z],rehypePlugins:[xt.Z,kt.Z],components:{code(Kt){var re=Kt,{node:we,inline:ke,className:Me,children:ge}=re,fe=ut(re,["node","inline","className","children"]);const de=/language-(\w+)/.exec(Me||""),_e=String(ge).trim();return ke||!de?Ft.createElement("code",at({className:Me},fe),ge):Ft.createElement("code",{className:pt.codeCopy,"data-text":`\`\`\`${de?de[1]:""} +${ge} +\`\`\``},Ft.createElement(St.CopyToClipboard,{text:_e,onCopy:()=>vt.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},Ft.createElement("button",null,"\u590D\u5236")),Ft.createElement(rt.Z,at({style:Ct.Z,language:de[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},fe),_e))},img({node:Kt}){var re;const we=(re=Kt.properties)==null?void 0:re.src;return Ft.createElement(yt.Z,{src:we,width:320,"data-text":we,onLoad:()=>Lt&&setTimeout(()=>se(),500)})}}},Vt?It:`${It}__`)),[It])}},31707:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return it}});var Ft=Rt(59301),ie=Rt(19909),rt={bigTips:"bigTips___uPRW3",item:"item___KMGDu"},kt=Rt(8591),Ct=Rt(95237),St=Rt(99064),pt=Object.defineProperty,vt=Object.defineProperties,yt=Object.getOwnPropertyDescriptors,xt=Object.getOwnPropertySymbols,dt=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,ct=(at,ut,wt)=>ut in at?pt(at,ut,{enumerable:!0,configurable:!0,writable:!0,value:wt}):at[ut]=wt,lt=(at,ut)=>{for(var wt in ut||(ut={}))dt.call(ut,wt)&&ct(at,wt,ut[wt]);if(xt)for(var wt of xt(ut))ft.call(ut,wt)&&ct(at,wt,ut[wt]);return at},E=(at,ut)=>vt(at,yt(ut)),z=(at,ut,wt)=>new Promise((Et,At)=>{var _t=Lt=>{try{jt(wt.next(Lt))}catch(It){At(It)}},Mt=Lt=>{try{jt(wt.throw(Lt))}catch(It){At(It)}},jt=Lt=>Lt.done?Et(Lt.value):Promise.resolve(Lt.value).then(_t,Mt);jt((wt=wt.apply(at,ut)).next())}),it=({description:at,code:ut,showData:wt={},sendParams:Et={},allShow:At=!1,draggableExtraNode:_t})=>{const Mt=[{img:Rt(58427),name:"\u667A\u80FD\u5BA1\u9898",des:"\u5FEB\u901F\u667A\u80FD\u62C6\u89E3\u4EFB\u52A1\uFF0C\u63D0\u4F9B\u89E3\u9898\u601D\u8DEF",description:"",query:at,show:wt==null?void 0:wt.ai_exam_question,type:1},{img:Rt(68427),name:"\u8BED\u6CD5\u68C0\u67E5",des:"\u68C0\u6D4B\u4EE3\u7801\u4E2D\u7684\u8BED\u6CD5\u9519\u8BEF\uFF0C\u63D0\u4F9B\u4FEE\u590D\u5EFA\u8BAE",description:"",query:ut,show:wt==null?void 0:wt.ai_syntax_check,type:5},{img:Rt(2195),name:"\u4EE3\u7801\u8BCA\u65AD",des:"\u7CFB\u7EDF\u667A\u80FD\u4EE3\u7801\u5206\u6790\uFF0C\u63D0\u4F9B\u4FEE\u6B63\u5EFA\u8BAE",description:at,query:ut,show:wt==null?void 0:wt.ai_code_diagnosis,type:2},{img:Rt(62849),name:"AI\u8F85\u5BFC",des:"\u4E3A\u5B66\u751F\u63D0\u4F9B\u4E2A\u6027\u5316\u667A\u80FD\u5B66\u4E60\u8F85\u5BFC",description:at,query:ut,show:wt==null?void 0:wt.ai_guidance,type:3},{img:Rt(9515),name:"\u4EE3\u7801\u8BC4\u4EF7",des:"\u4ECE\u591A\u4E2A\u7EF4\u5EA6\u5BF9\u4EE3\u7801\u8FDB\u884C\u8BC4\u4EF7\uFF0C\u4E86\u89E3\u4EE3\u7801\u7F3A\u9677",description:at,query:ut,show:wt==null?void 0:wt.ai_code_evaluation,type:9},{img:Rt(43214),name:"\u4EE3\u7801\u4F18\u5316",des:"\u5BF9\u4EE3\u7801\u8FDB\u884C\u667A\u80FD\u4F18\u5316\uFF0C\u5E2E\u52A9\u63D0\u5347\u4EE3\u7801\u8D28\u91CF",description:at,query:ut,show:wt==null?void 0:wt.ai_code_optimization,type:7},{img:Rt(54269),name:"\u4EE3\u7801\u6CE8\u91CA",des:"\u81EA\u52A8\u5BF9\u5DF2\u6709\u4EE3\u7801\u6DFB\u52A0\u6CE8\u91CA\uFF0C\u8282\u7701\u4EE3\u7801\u7F16\u5199\u65F6\u95F4",description:at,query:ut,show:wt==null?void 0:wt.ai_code_comment,type:8}],jt=Xt=>{const{setChatData:Gt,setLoading:Vt,getData:Ht,clearStatus:ne,typing:se,setImageGenerator:ve,renderChatItems:Kt,setSceneAwareness:re,setIdentifier:we}=Xt;let ke=Mt;return At||(ke=Mt.filter(Me=>Me.show)),Ft.createElement("div",{className:`${rt.bigTips} mt10`},ke.map((Me,ge)=>Ft.createElement("div",{onClick:()=>z(void 0,null,function*(){var fe;if(se){kt.ZP.warning("\u8BF7\u7B49\u5F85\u4EFB\u52A1\u5B8C\u6210");return}re(!1),ve(!1),Vt(!0),ne();const de=Kt(Me.query);de[0].show=!1,de[1].imageGenerator=!1,Gt(de);const _e=yield Ut.onAdd(),Oe=(fe=_e==null?void 0:_e.data)==null?void 0:fe.identifier;we(Oe),Ht("",E(lt({type:Me.type,description:Me.description,query:Me.query,file_ids:[],history:[],is_chat:!1,image_generator:!1,scene_awareness:!1,identifier:Oe},Et),{prompt:wt==null?void 0:wt.ai_code_evaluation_promote}))}),key:ge,className:rt.item},Ft.createElement(Ct.Z,{align:"middle"},Ft.createElement("img",{className:"mr10",src:Me.img}),Ft.createElement("span",{style:{color:"#232B40",fontSize:16,fontWeight:600}},Me.name)),Ft.createElement("div",{className:"mt10",style:{color:"#434D6C"}},Me.des))))},Lt=Xt=>z(void 0,[Xt],function*({type:Gt,value:Vt,index:Ht,identifier:ne,objectIndex:se}){const ve={index:se,identifier:ne};if(Gt==="like"&&(yield(0,St.ZP)("/api/course_qna_records/like.json",{method:"post",body:ve})).status!==0||Gt==="dislike"&&(yield(0,St.ZP)("/api/course_qna_records/dislike.json",{method:"post",body:ve})).status!==0)return Promise.reject()}),Ut={onAdd:()=>(0,St.ZP)("/api/course_qna_sessions/create_session.json",{method:"get"}),onGetList:()=>(0,St.ZP)("/api/course_qna_sessions.json",{method:"get",params:{questionable_type:"Game",by_self:!0}}),onListClick:Xt=>(0,St.ZP)(`/api/course_qna_sessions/${Xt}.json`,{method:"get"}),onListDelete:Xt=>(0,St.ZP)(`/api/course_qna_sessions/${Xt}.json`,{method:"delete"}),onListDealData:Xt=>{let Gt=[];return Xt==null||Xt.forEach(Vt=>{const Ht=Vt.id,ne=Vt.think?{reasoning:Vt.think,thinkingEnabled:!0}:{},se=[{text:Vt.question,key:Ht,sender:"user",fileList:[],show:!0},lt({key:Ht,loading:!1,sender:"AI",show:!0,source:Vt.answer_source,text:Vt.answer,like:Vt.like,dislike:Vt.dislike,time:Vt.think_time,id:Vt.id},ne)];Gt=[...Gt,...se]}),Gt}};return Ft.createElement(ie.Z,{title:"\u667A\u80FD\u52A9\u6559",hideInputBox:At?!1:!(wt!=null&&wt.ai_q_and_a),headFunctionNode:jt,showSwitchingModel:!0,showImageGenerator:!0,showSceneAwareness:!0,showPreference:!0,showLookHistory:!0,showAddSession:!0,fetchListObject:Ut,customPreference:Lt,fetchData:E(lt({},Et),{questionable_type:"Game",is_chat:!0}),topPercentage:(Et==null?void 0:Et.source)==="hack"?.52:void 0,headNode:Ft.createElement(Ft.Fragment,null,Ft.createElement("div",{className:"c-grey-333 font22"},Ft.createElement("span",{className:"mr5"},"\u{1F44B}"),"\u55E8\uFF0C\u6211\u662F\u5934\u6B4C\u667A\u80FD\u52A9\u6559\uFF0C\u60A8\u7684\u6559\u5B66\u597D\u5E2E\u624B\u3002"),Ft.createElement("div",{className:"font16 mt20",style:{color:"#434D6C"}},"\u6211\u53EF\u4EE5\u8FD0\u7528\u667A\u80FD\u5BA1\u9898\u7684\u529F\u80FD\uFF0C\u5E2E\u52A9\u60A8\u8F7B\u677E\u7406\u89E3\u5E76\u62C6\u89E3\u5B9E\u8DF5\u4EFB\u52A1\uFF0C\u63D0\u4F9B\u6E05\u6670\u660E\u4E86\u7684\u89E3\u9898\u601D\u8DEF\u3002\u5F53\u60A8\u5728\u7F16\u5199\u4EE3\u7801\u8FC7\u7A0B\u4E2D\u9047\u5230\u95EE\u9898\u65F6\uFF0C\u6211\u53EF\u4EE5\u63D0\u4F9B\u4EE3\u7801\u8BCA\u65AD\u670D\u52A1\uFF0C\u5206\u6790\u60A8\u7684\u4EE3\u7801\u5E76\u7ED9\u51FA\u5177\u4F53\u7684\u4FEE\u6B63\u5EFA\u8BAE\u3002\u5982\u679C\u60A8\u9700\u8981\u8FDB\u4E00\u6B65\u7684\u5E2E\u52A9\uFF0C\u6211\u8FD8\u53EF\u4EE5\u63D0\u4F9B\u8BE6\u7EC6\u7684AI\u6307\u5BFC\uFF0C\u4E3A\u60A8\u91CF\u8EAB\u5B9A\u5236\u53C2\u8003\u7684\u89E3\u51B3\u65B9\u6848\u3002\u671F\u5F85\u4E0E\u60A8\u643A\u624B\u5171\u8FDB\uFF0C\u9AD8\u6548\u3001\u4F18\u8D28\u5730\u5B8C\u6210\u6BCF\u4E00\u9879\u5B9E\u8DF5\u4EFB\u52A1\uFF01"),Ft.createElement("div",{className:"font16 mt20",style:{color:"#434d6c"}},"\u5FEB\u6765\u8BD5\u4E00\u4E0B\u5427\uFF5E")),fetchUrl:"/api/stream/intelligent_imports/chat_messages.json",draggableExtraNode:_t})}},19909:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return Ie}});var Ft=Rt(59301),ie=Rt(8591),rt=Rt(54580),kt=Rt(43418),Ct=Rt(6848),St=Rt(92832),pt=Rt(3113),vt=Rt(71418),yt=Rt(64165),xt=Rt(14478),dt=Rt(43428),ft=Rt(38854),ct=Rt(92310),lt=Rt.n(ct),E=Rt(43276),z={reasoning:"reasoning___S0mKl",btn:"btn____CIJG",content:"content___CIAh9"},ot=Rt(59301),it=(Ue,Je,Ze)=>new Promise((nn,fn)=>{var An=ii=>{try{Dn(Ze.next(ii))}catch(mi){fn(mi)}},En=ii=>{try{Dn(Ze.throw(ii))}catch(mi){fn(mi)}},Dn=ii=>ii.done?nn(ii.value):Promise.resolve(ii.value).then(An,En);Dn((Ze=Ze.apply(Ue,Je)).next())}),ut=({value:Ue="",streamingStatus:Je,onFinish:Ze,cancelIndex:nn,time:fn,loading:An,loadAll:En})=>{const[Dn,ii]=(0,Ft.useState)(""),[mi,Ti]=(0,Ft.useState)(!0),Oi=(0,Ft.useRef)(Ue),ki=(0,Ft.useRef)(Je),pi=(0,Ft.useRef)(0),Bi=(0,Ft.useRef)(null),[Or,yr]=(0,Ft.useState)(!1),lr=70;(0,Ft.useEffect)(()=>{ki.current=Je},[Je]),(0,Ft.useEffect)(()=>{Oi.current=Ue},[Ue]),(0,Ft.useEffect)(()=>{if(!Je){ii(Oi.current);return}return yr(!0),Bi.current=setInterval(Si,lr),()=>{clearInterval(Bi.current)}},[]),(0,Ft.useEffect)(()=>{Or&&(ii(Oi.current),clearInterval(Bi.current),yr(!1),Ze())},[nn]);const Si=()=>it(void 0,null,function*(){const ee=Oi.current[pi.current];ee!==void 0?(ii(Ds=>Ds+ee),pi.current++,clearInterval(Bi.current),Bi.current=setInterval(Si,280/(Oi.current.length-pi.current))):ki.current===!1&&(ii(Oi.current),clearInterval(Bi.current),yr(!1),Ze())});return ot.createElement("div",{className:`${z.reasoning} fadeIn animated`},ot.createElement("div",{className:z.btn,onClick:()=>Ti(!mi)},ot.createElement("i",{className:"iconfont icon-shendusikao"}),fn?ot.createElement("span",null,"\u5DF2\u6DF1\u5EA6\u601D\u8003\uFF08\u7528\u65F6 ",fn," \u79D2\uFF09"):ot.createElement("span",null,"\u601D\u8003\u4E2D..."),mi?ot.createElement("b",{className:"iconfont icon-shouqi6"}):ot.createElement("b",{className:"iconfont icon-zhankai6"})),An&&ot.createElement(vt.Z,{spinning:!0,className:"mt20"}),mi&&!An&&ot.createElement("div",{className:z.content},Dn,Or?ot.createElement("span",{className:"aiBlink"},"__"):""))},wt={select:"select___Kt_GE",box:"box___S5_ly",text:"text___dtZDv",itemWrap:"itemWrap___xmw7x",item:"item___io6Bx",active:"active___nHRTI"},Et=Rt(81327),At=Object.defineProperty,_t=Object.getOwnPropertySymbols,Mt=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,Lt=(Ue,Je,Ze)=>Je in Ue?At(Ue,Je,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):Ue[Je]=Ze,It=(Ue,Je)=>{for(var Ze in Je||(Je={}))Mt.call(Je,Ze)&&Lt(Ue,Ze,Je[Ze]);if(_t)for(var Ze of _t(Je))jt.call(Je,Ze)&&Lt(Ue,Ze,Je[Ze]);return Ue};const Ut=Ue=>React.createElement("svg",It({className:"logo1_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},Ue),React.createElement("path",{d:"M1019.407 620.8 891.834 397.781 946.49 293.12a29.099 29.099 0 0 0 6.4-36.395l-70.187-126.592a30.08 30.08 0 0 0-24.576-13.653H597.519L539.194 14.507a27.35 27.35 0 0 0-20.907-14.55H380.644a29.141 29.141 0 0 0-24.618 14.55v5.546L225.806 243.03H100.923a29.184 29.184 0 0 0-25.515 13.654L3.428 384.085a32.768 32.768 0 0 0 0 29.184L132.836 638.08 74.511 740.053a32.768 32.768 0 0 0 0 29.056l66.517 116.566a29.907 29.907 0 0 0 25.515 14.506H427.15l62.848 109.227A30.08 30.08 0 0 0 512.783 1024H660.41a29.141 29.141 0 0 0 24.576-14.55l128.469-224.853h114.773a31.915 31.915 0 0 0 24.662-15.445l66.474-117.419a28.16 28.16 0 0 0 0-30.976l.043.043zm-161.28 14.592L791.61 512.469 518.287 993.963l-74.752-122.88h-273.28l65.621-119.211h139.392L101.86 272.213h143.062L380.687 30.08l68.352 119.253-70.187 122.88H925.54l-69.205 121.942 137.6 241.194H858.17z",fill:"#605BEC"}),React.createElement("path",{d:"m499.983 699.307 174.379-274.731H324.708z",fill:"#605BEC"}));var Xt="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTEwMTkuNDA3IDYyMC44IDg5MS44MzQgMzk3Ljc4MSA5NDYuNDkgMjkzLjEyYTI5LjA5OSAyOS4wOTkgMCAwIDAgNi40LTM2LjM5NWwtNzAuMTg3LTEyNi41OTJhMzAuMDggMzAuMDggMCAwIDAtMjQuNTc2LTEzLjY1M0g1OTcuNTE5TDUzOS4xOTQgMTQuNTA3YTI3LjM1IDI3LjM1IDAgMCAwLTIwLjkwNy0xNC41NUgzODAuNjQ0YTI5LjE0MSAyOS4xNDEgMCAwIDAtMjQuNjE4IDE0LjU1djUuNTQ2TDIyNS44MDYgMjQzLjAzSDEwMC45MjNhMjkuMTg0IDI5LjE4NCAwIDAgMC0yNS41MTUgMTMuNjU0TDMuNDI4IDM4NC4wODVhMzIuNzY4IDMyLjc2OCAwIDAgMCAwIDI5LjE4NEwxMzIuODM2IDYzOC4wOCA3NC41MTEgNzQwLjA1M2EzMi43NjggMzIuNzY4IDAgMCAwIDAgMjkuMDU2bDY2LjUxNyAxMTYuNTY2YTI5LjkwNyAyOS45MDcgMCAwIDAgMjUuNTE1IDE0LjUwNkg0MjcuMTVsNjIuODQ4IDEwOS4yMjdBMzAuMDggMzAuMDggMCAwIDAgNTEyLjc4MyAxMDI0SDY2MC40MWEyOS4xNDEgMjkuMTQxIDAgMCAwIDI0LjU3Ni0xNC41NWwxMjguNDY5LTIyNC44NTNoMTE0Ljc3M2EzMS45MTUgMzEuOTE1IDAgMCAwIDI0LjY2Mi0xNS40NDVsNjYuNDc0LTExNy40MTlhMjguMTYgMjguMTYgMCAwIDAgMC0zMC45NzZsLjA0My4wNDN6bS0xNjEuMjggMTQuNTkyTDc5MS42MSA1MTIuNDY5IDUxOC4yODcgOTkzLjk2M2wtNzQuNzUyLTEyMi44OGgtMjczLjI4bDY1LjYyMS0xMTkuMjExaDEzOS4zOTJMMTAxLjg2IDI3Mi4yMTNoMTQzLjA2MkwzODAuNjg3IDMwLjA4bDY4LjM1MiAxMTkuMjUzLTcwLjE4NyAxMjIuODhIOTI1LjU0bC02OS4yMDUgMTIxLjk0MiAxMzcuNiAyNDEuMTk0SDg1OC4xN3oiIGZpbGw9IiM2MDVCRUMiLz48cGF0aCBkPSJtNDk5Ljk4MyA2OTkuMzA3IDE3NC4zNzktMjc0LjczMUgzMjQuNzA4eiIgZmlsbD0iIzYwNUJFQyIvPjwvc3ZnPg==",Gt=Object.defineProperty,Vt=Object.getOwnPropertySymbols,Ht=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,se=(Ue,Je,Ze)=>Je in Ue?Gt(Ue,Je,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):Ue[Je]=Ze,ve=(Ue,Je)=>{for(var Ze in Je||(Je={}))Ht.call(Je,Ze)&&se(Ue,Ze,Je[Ze]);if(Vt)for(var Ze of Vt(Je))ne.call(Je,Ze)&&se(Ue,Ze,Je[Ze]);return Ue};const Kt=Ue=>React.createElement("svg",ve({className:"logo2_svg__icon",viewBox:"0 0 1417 1024",xmlns:"http://www.w3.org/2000/svg",width:276.758,height:200},Ue),React.createElement("path",{d:"M1364.44 118.705c-14.178-6.695-20.322 6.065-28.593 12.525-2.914 2.048-5.277 4.726-7.64 7.246-20.717 21.268-44.899 35.21-76.643 33.556a152.576 152.576 0 0 0-120.674 45.371c-7.404-41.826-32.06-66.875-69.553-82.865-19.693-8.35-39.543-16.7-53.248-34.737-9.61-12.919-12.288-27.333-17.015-41.512-3.15-8.507-6.144-17.25-16.384-18.668-11.185-1.733-15.517 7.247-19.928 14.73a189.125 189.125 0 0 0-23.552 98.461c1.575 76.88 35.446 138.083 102.636 181.642 7.562 4.963 9.531 9.925 7.09 17.25-4.49 14.967-9.926 29.54-14.81 44.584-2.992 9.61-7.561 11.658-18.274 7.483a309.484 309.484 0 0 1-96.886-63.015c-47.813-44.426-91.057-93.342-144.935-131.702a635.825 635.825 0 0 0-38.36-25.207c-54.982-51.2 7.167-93.262 21.582-98.225 14.966-5.199 5.277-23.158-43.402-22.922-48.68.237-93.184 15.833-149.977 36.628-8.428 3.15-17.092 5.514-25.993 7.326a557.844 557.844 0 0 0-160.768-5.436c-105.157 11.264-189.204 58.92-250.96 140.367-74.2 97.832-91.687 208.975-70.261 325.002 22.449 122.25 87.434 223.468 187.47 302.631 103.582 82 222.917 122.172 359.188 114.452 82.708-4.568 174.79-15.202 278.686-99.485 26.151 12.445 53.642 17.486 99.249 21.267 35.131 3.072 69.002-1.733 95.153-6.931 40.96-8.35 38.203-44.741 23.316-51.437-120.202-53.72-93.814-31.822-117.839-49.624 61.125-69.317 153.206-141.312 189.204-374.706 2.835-18.51.472-30.168 0-45.213-.237-9.137 1.969-12.603 12.918-13.706a240.089 240.089 0 0 0 86.173-25.442c77.982-40.803 109.332-107.914 116.736-188.259 1.103-12.288-.236-24.97-13.705-31.429zM685.45 842.043C569.108 754.215 512.55 725.307 489.157 726.49c-21.82 1.26-17.96 25.206-13.155 40.802 5.042 15.439 11.58 26.073 20.717 39.621 6.301 8.9 10.791 22.213-6.302 32.295-37.494 22.213-102.794-7.561-105.787-8.98-76.012-42.929-139.421-99.564-184.241-176.994a523.894 523.894 0 0 1-72.468-239.93c-1.024-20.56 5.278-27.885 26.703-31.587a272.148 272.148 0 0 1 85.307-2.127c118.942 16.699 220.16 67.741 305.073 148.48 48.443 46.001 85.071 100.982 122.88 154.703 40.173 57.029 83.338 111.458 138.32 155.963 19.376 15.675 34.894 27.569 49.781 36.234-44.74 4.805-119.414 5.829-170.456-32.926zm55.926-344.615c0-5.357 2.757-10.398 7.326-13.47a17.723 17.723 0 0 1 22.134 2.048c3.072 2.915 4.805 7.09 4.805 11.422a16.778 16.778 0 0 1-17.25 16.541 17.33 17.33 0 0 1-12.131-4.883 15.911 15.911 0 0 1-4.884-11.658zm173.529 85.464a104.37 104.37 0 0 1-33.005 8.586 71.444 71.444 0 0 1-44.504-13.548c-15.282-12.288-26.23-19.141-30.72-40.645a89.167 89.167 0 0 1 .787-31.429c3.939-17.487-.393-28.75-13.312-38.912-10.476-8.35-23.71-10.634-38.36-10.634a32.06 32.06 0 0 1-14.179-4.175c-6.144-2.914-11.106-10.24-6.301-19.14a60.18 60.18 0 0 1 10.712-11.265c19.85-10.79 42.693-7.246 63.882.788 19.693 7.798 34.501 21.898 55.926 41.905 21.74 24.183 25.68 30.8 38.125 48.916 9.846 14.179 18.747 28.75 24.89 45.45 3.703 10.397-1.102 18.905-13.941 24.103z",fill:"#4D6BFE"}));var re="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDE0MTcgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjc2Ljc1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IDEtNDQuNTA0LTEzLjU0OGMtMTUuMjgyLTEyLjI4OC0yNi4yMy0xOS4xNDEtMzAuNzItNDAuNjQ1YTg5LjE2NyA4OS4xNjcgMCAwIDEgLjc4Ny0zMS40MjljMy45MzktMTcuNDg3LS4zOTMtMjguNzUtMTMuMzEyLTM4LjkxMi0xMC40NzYtOC4zNS0yMy43MS0xMC42MzQtMzguMzYtMTAuNjM0YTMyLjA2IDMyLjA2IDAgMCAxLTE0LjE3OS00LjE3NWMtNi4xNDQtMi45MTQtMTEuMTA2LTEwLjI0LTYuMzAxLTE5LjE0YTYwLjE4IDYwLjE4IDAgMCAxIDEwLjcxMi0xMS4yNjVjMTkuODUtMTAuNzkgNDIuNjkzLTcuMjQ2IDYzLjg4Mi43ODggMTkuNjkzIDcuNzk4IDM0LjUwMSAyMS44OTggNTUuOTI2IDQxLjkwNSAyMS43NCAyNC4xODMgMjUuNjggMzAuOCAzOC4xMjUgNDguOTE2IDkuODQ2IDE0LjE3OSAxOC43NDcgMjguNzUgMjQuODkgNDUuNDUgMy43MDMgMTAuMzk3LTEuMTAyIDE4LjkwNS0xMy45NDEgMjQuMTAzeiIgZmlsbD0iIzRENkJGRSIvPjwvc3ZnPg==",we=Rt(59301),Me=({value:Ue,onChange:Je})=>{const[Ze,nn]=(0,Ft.useState)(!1),fn=[{name:"\u901A\u4E49\u5343\u95EE",key:"qwen-max",img:Xt},{name:"DeepSeek R1-671B",key:"deepseek-r1",img:re}],An=fn.find(En=>En.key===Ue);return we.createElement("div",{className:wt.select},we.createElement(Et.Z,{size:10},we.createElement("span",{className:"c-grey-333 font16"},"\u6A21\u578B"),we.createElement("div",{className:wt.box,onMouseLeave:()=>nn(!1)},we.createElement("div",{className:wt.text,onClick:()=>nn(!0)},we.createElement("img",{src:An.img,width:20}),we.createElement("span",null,An.name),we.createElement("b",{className:"iconfont icon-zhankai6"})),Ze&&we.createElement("div",{className:wt.itemWrap},we.createElement("aside",null,fn.map(En=>we.createElement("div",{key:En.key,className:`${wt.item} ${En.key===Ue?wt.active:""}`,onClick:Dn=>{Dn.stopPropagation(),Je(En.key),nn(!1)}},we.createElement("img",{src:En.img,width:20}),we.createElement("span",null,En.name))))))))},ge={loadingPic:"loadingPic___y2kKZ",loading:"loading___UEUk1",dot:"dot___TYXFV","dot-fade":"dot-fade___KWn1a",wrap:"wrap___nU3cS",chatContainer:"chatContainer___PNe3Q",footerContainer:"footerContainer___hQATV",btnWrp:"btnWrp___mS8l6",btn:"btn___3za5U",btnActive:"btnActive____jzfb",inputContainer:"inputContainer___iCQ3u",uploadBtn:"uploadBtn___OHHJF",sendBtn:"sendBtn___ktaQl",sendBtnDisabled:"sendBtnDisabled___DVncF",cancelBtn:"cancelBtn___bzMDI",lineFour:"lineFour___Lhbz5",fullIcon:"fullIcon___YWXTV",footerContainerSelected:"footerContainerSelected___pGBh3",full:"full___dZLXo",li:"li___PjMV3",avatarIcon:"avatarIcon___ztGQ3",img:"img___wZqEA",content:"content___OlYYG",borderBox:"borderBox___tjHwt",text:"text___yWTCV",fileWrap:"fileWrap___IX778",file:"file___fxAKb",fileName:"fileName___RA8nu",source:"source___nkLC0",action:"action___I2zGy",disabledInput:"disabledInput___Buork",backBottom:"backBottom___SMuL2",head:"head___v8Eom",headBtn:"headBtn___IS7xR",menuWarp:"menuWarp___G6yj0",menu:"menu___M8VWP",menuText:"menuText___gRpb5",menuDel:"menuDel___eH_wg",active:"active___KWwPV"},fe=Rt(99064),de=Rt(955),_e={draggableImage:"draggableImage___vcTso",img:"img___xAyno",close:"close___WUtfj"},He=({src:Ue,onClick:Je,topPercentage:Ze=.62,draggableExtraNode:nn})=>{const fn=(0,Ft.useRef)(null),An=(0,Ft.useRef)(!1),En=(0,Ft.useRef)(!1),[Dn,ii]=(0,Ft.useState)(window.innerHeight*Ze),[mi,Ti]=(0,Ft.useState)(!1),Oi=10;return(0,Ft.useEffect)(()=>{if(fn.current){let ki=function(lr){var Si;An.current=!0,yr=lr.pageY,Or=lr.pageY-(((Si=fn.current)==null?void 0:Si.getBoundingClientRect().top)||0),(0,de.kk)("none"),document.onselectstart=function(){return!1}},pi=function(){An.current&&!En.current&&Je&&Je(),An.current=!1,En.current=!1,(0,de.kk)("auto"),document.onselectstart=null},Bi=function(lr){var Si;if(An.current){const Ds=lr.pageY-Or,mr=window.innerHeight-(((Si=fn.current)==null?void 0:Si.offsetHeight)||0)-50,gs=50;if(!En.current&&Math.abs(yr-lr.pageY)>Oi&&(En.current=!0),En.current){let Xs=Math.max(gs,Math.min(Ds,mr));ii(Xs)}}},Or=0,yr=0;return fn.current.addEventListener("mousedown",ki),document.addEventListener("mousemove",Bi),document.addEventListener("mouseup",pi),()=>{var lr,Si;(Si=(lr=fn==null?void 0:fn.current)==null?void 0:lr.removeEventListener)==null||Si.call(lr,"mousedown",ki),document.removeEventListener("mousemove",Bi),document.removeEventListener("mouseup",pi)}}},[Je]),(0,Ft.useEffect)(()=>{const ki=()=>{ii(window.innerHeight*Ze)};return window.addEventListener("resize",ki),()=>{window.removeEventListener("resize",ki)}},[Ze]),Ft.createElement("div",{className:_e.draggableImage,style:{top:`${Dn}px`,display:mi?"none":"block",cursor:An.current?"grabbing":"grab"},ref:fn},nn,Ft.createElement("img",{className:_e.img,src:Ue,width:60,draggable:"false"}),Ft.createElement("i",{className:`iconfont icon-tupianguanbi ${_e.close}`,onMouseUp:ki=>{ki.stopPropagation(),Ti(!0)}}))},Se="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAIABJREFUeF6VnQmAnGV9/z/vMffeV3azuRMCSUgCSQggiCBFEE9UvFpqW6utFopa71bx6GHRWq31xKtSFS0eqICV+wwSIJKQkDvZJJvsObOzO/d7PH9/z/O+s5sY2/4XhpmdnXln3u/7/f1+39/xPFj8H39Wr742GRaOXaYs65WWnVhtuc58y7Lmh4oWZYFv2fpIgdxZFtg2oZMgdByU7eA7Npbt6L958rttUXMsQtsCyyawLEI5gC0HMMc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dat6f52xiKfPqRthzmr5hK3u5CeIJxjcPbUcZx07HcIRMKU9S1iyRsp1s0V1CXqWd6xgWGFVSxoa6cqL6BbO6VFebpNU5IfYvnqFFPLv1PXUb7qDoPOx25+7uZvf0B8e9bfdd5/5aza6E5vaU5evk/JyLHddlysaVrOmoZqDAJUlORy/eXHU1FaSCg3gkhFWT3bZM7y1azt3ki/gjJC0RysYIa059LeGaeqJJ94Ii6H9Kv8NNcovk+uKXvqF8un/N/+CcBu5N24Yb8H9pfF6XOW1M+bUtNYP6yoIGRccPphjBrZT7dBcosjtC2PsnRBnNUNDdiik5I+BeREQnpsMZm2VQt7vcR+PRoJPC1mtc2/mZv///ojj90punz2WfN/nntvQHFezmRXpPcdP3bIqIL8whGWF6xc+04oL7kqQ2Pfpu5omAZThNY6GWuV4waWOp6xcGg0UDPtuWn/lj/j+X+Lbso4jJUfOwAAAABJRU5ErkJggg==",Ne=Rt(3294),ae=Rt(56102),Ae=Rt(24544),Xe=Rt(58617),Be=Rt(32050),Te=Object.defineProperty,ue=Object.defineProperties,$t=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,Qt=Object.prototype.propertyIsEnumerable,Wt=(Ue,Je,Ze)=>Je in Ue?Te(Ue,Je,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):Ue[Je]=Ze,Bt=(Ue,Je)=>{for(var Ze in Je||(Je={}))ye.call(Je,Ze)&&Wt(Ue,Ze,Je[Ze]);if(he)for(var Ze of he(Je))Qt.call(Je,Ze)&&Wt(Ue,Ze,Je[Ze]);return Ue},te=(Ue,Je)=>ue(Ue,$t(Je)),me=(Ue,Je,Ze)=>new Promise((nn,fn)=>{var An=ii=>{try{Dn(Ze.next(ii))}catch(mi){fn(mi)}},En=ii=>{try{Dn(Ze.throw(ii))}catch(mi){fn(mi)}},Dn=ii=>ii.done?nn(ii.value):Promise.resolve(ii.value).then(An,En);Dn((Ze=Ze.apply(Ue,Je)).next())}),Ie=({title:Ue="\u5934\u6B4CAI",placeholder:Je,hideUpload:Ze,hideInputBox:nn,aiIcon:fn=Se,userIcon:An=xe,dragIcon:En=le,children:Dn,fetchUrl:ii,fetchData:mi={},extraAnswerAction:Ti,showDefaultTips:Oi=!0,onOpen:ki,onClose:pi,loadingOption:Bi,showPreference:Or=!1,initMessage:yr,customRequest:lr,visible:Si,width:ee=1200,isCheckRestrictNumber:Ds=!1,headNode:mr,headFunctionNode:gs,showRedraw:Xs,showEdit:Do,promptPropName:Oo="prompt",topPercentage:Gr,showSwitchingModel:sa=!1,showImageGenerator:dn=!1,showLookHistory:en=!1,fetchListObject:qe,customPreference:zn,customDataNode:Jn,showAddSession:hi,historyId:bn,draggableExtraNode:Bn,drawerExtraNode:Xi,menuExtraFunctionNode:dr,showSceneAwareness:ir=!1})=>{var We,Nn;const[ti,pr]=(0,Ft.useState)(!1),[on,Cn]=(0,Ft.useState)("qwen-max"),[xi,Zi]=(0,Ft.useState)([]),[Wi,oi]=(0,Ft.useState)([]),[ri,Zn]=(0,Ft.useState)(!1),[ur,Yr]=(0,Ft.useState)(!1),[br,mn]=(0,Ft.useState)(!1),[er,cr]=(0,Ft.useState)([]),[Mi,sn]=(0,Ft.useState)(""),[On,Qn]=(0,Ft.useState)(0),[si,ei]=(0,Ft.useState)(void 0),[Li,hr]=(0,Ft.useState)(!1),[Vi,Yi]=(0,Ft.useState)(null),[fr,vn]=(0,Ft.useState)(""),Qi=(0,Ft.useRef)(),gn=(0,Ft.useRef)(null),qi=(0,Ft.useRef)(null),[Io,Kr]=(0,Ft.useState)(!1),[Zo,Xr]=(0,Ft.useState)(!1),[Ri,Cr]=(0,Ft.useState)(!1),[ba,uo]=(0,Ft.useState)(!1),[Rn,Ee]=(0,Ft.useState)(0),jo=(0,Ft.useRef)(null),Qo=(0,Ft.useRef)(!1),_l=(0,Ft.useRef)(null),[Pa,gl]=(0,Ft.useState)(void 0),[bu,ec]=(0,Ft.useState)(!0),[nc,Er]=(0,Ft.useState)(ee-28),[Zr,aa]=(0,Ft.useState)(!1),[vi,qn]=(0,Ft.useState)(!0),[xn,ai]=(0,Ft.useState)([]),zi=(0,Ft.useRef)([]),jr=(0,Ft.useRef)(null),Qr=(0,Ft.useRef)(null),Ur=(0,Ft.useRef)(!1),mo=nc-22,Jr=Mi==null?void 0:Mi.split(` +`).length,{onAdd:Ca,onGetList:Is,onListClick:Ol,onListDelete:$e,onListDealData:Es}=qe||{},Pu=50,Ba=10,Cu={maxCount:Pu,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:xi,multiple:!0,accept:".doc,.docx,.md,.txt,.pdf,.xlsx,.xls",beforeUpload:yn=>me(void 0,null,function*(){var ci,Ei,Ii,rr;const ji=(rr=(Ii=(Ei=(ci=yn==null?void 0:yn.name)==null?void 0:ci.split("."))==null?void 0:Ei.slice(-1))==null?void 0:Ii[0])==null?void 0:rr.toLowerCase(),Nr=["doc","docx","md","pdf","txt","xlsx","xls"].includes(ji);return yn.size==0?(ie.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),rt.default.LIST_IGNORE):Nr?yn.size/1024/1024>100?(ie.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u5236100MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),rt.default.LIST_IGNORE):!0:(ie.ZP.warning("\u76EE\u524D\u652F\u6301txt\u3001md\u3001doc\u3001docx\u3001pdf\u3001xlsx\u3001xls\u6587\u4EF6"),rt.default.LIST_IGNORE)}),onChange:({fileList:yn})=>{Zi(yn)},action:`${(We=Ne.Z)==null?void 0:We.API_SERVER}/api/intelligent_imports/upload_file.json`},qr={maxCount:Ba,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:Wi,multiple:!0,accept:".jpg,.png,",beforeUpload:yn=>{var ci,Ei,Ii,rr;const ji=(rr=(Ii=(Ei=(ci=yn==null?void 0:yn.name)==null?void 0:ci.split("."))==null?void 0:Ei.slice(-1))==null?void 0:Ii[0])==null?void 0:rr.toLowerCase(),Nr=["jpg","png"].includes(ji);return yn.size==0?(ie.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),rt.default.LIST_IGNORE):Nr?yn.size/1024/1024>10?(ie.ZP.warning("\u4E0A\u4F20\u7684\u56FE\u7247\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),rt.default.LIST_IGNORE):!0:(ie.ZP.warning("\u76EE\u524D\u652F\u6301jpg\u3001png"),rt.default.LIST_IGNORE)},onChange:({fileList:yn})=>{oi(yn)},action:`${(Nn=Ne.Z)==null?void 0:Nn.API_SERVER}/api/ai/generals/update_file.json`};(0,Ft.useEffect)(()=>{if(!er.length||!Qi.current)return;const yn=er[er.length-1];yn!=null&&yn.loading&&(Qi.current.scrollTop=Qi.current.scrollHeight)},[er.length]),(0,Ft.useEffect)(()=>{if(!Qi.current||!jo.current)return;const yn=new IntersectionObserver(([ci])=>{ec(ci.isIntersecting)},{root:Qi.current,rootMargin:"70px",threshold:0});return yn.observe(jo.current),()=>{jo.current&&yn.unobserve(jo.current)}},[Qi.current,jo.current]),(0,Ft.useEffect)(()=>{if(!Io)return;const yn=Qi.current,ci=_l.current;Qo.current=!1;let Ei=yn.scrollTop;const Ii=()=>{const{scrollTop:ji,scrollHeight:Ir,clientHeight:Nr}=yn;ji>Ei?ji+Nr>=Ir-50&&(yn.scrollTop=yn.scrollHeight,Qo.current=!1):ji{Qo.current||(yn.scrollTop=yn.scrollHeight)});return rr.observe(ci),()=>{var ji;rr.unobserve(ci),(ji=yn==null?void 0:yn.removeEventListener)==null||ji.call(yn,"scroll",Ii)}},[Io]),(0,Ft.useEffect)(()=>{!Io&&zi.current.length&&(cr([...er,...zi.current]),zi.current=[])},[Io]),(0,Ft.useEffect)(()=>{if(!Qi.current)return;const yn=new ResizeObserver(()=>{Er(Qi.current.offsetWidth)});return yn.observe(Qi.current),()=>{Qi.current&&yn.unobserve(Qi.current)}},[Qi.current]),(0,Ft.useEffect)(()=>{typeof Si=="boolean"&&pr(Si)},[Si]),(0,Ft.useEffect)(()=>{var yn;if(gn.current&&Vi!==null){gn.current.focus();const ci=(yn=gn.current.resizableTextArea)==null?void 0:yn.textArea;ci&&(ci.selectionStart=ci.selectionEnd=ci.value.length)}},[Vi]),(0,Ft.useEffect)(()=>{Jr<5&&hr(!1)},[Jr]),(0,Ft.useEffect)(()=>{ti&&yr&&(cr($a(yr)),Zn(!0),Yn(yr,{history:[]})),ti&&(Jo(),bn?jl(bn):hi&&!Pa&&Zs()),ti||tl()},[ti]);const $a=(yn="",ci=[],Ei=[])=>{const Ii=Date.now();return[{text:yn,key:Ii,sender:"user",fileList:ci,imageList:Ei,show:!0},{loading:!0,key:Ii,sender:"AI",show:!0,model:on,imageGenerator:Ri,thinkingEnabled:Zo}]},tl=()=>{vn(""),Yi(null),Zi([]),oi([]),sn("")},xr=()=>{if(ki){ki({chatData:er,setChatData:cr,setLoading:Zn,getData:Yn,renderChatItems:$a,handleAdd:Zs,identifier:Pa});return}pr(!0)},Eo=()=>{if(qn(!0),pi){pi();return}pr(!1)},Eu=()=>{hr(!Li)},Jo=()=>me(void 0,null,function*(){if(!Ds)return;const yn=yield(0,fe.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});(yn==null?void 0:yn.status)===0&&(yn==null?void 0:yn.total_number)!==-1&&(Qn((yn==null?void 0:yn.total_number)-(yn==null?void 0:yn.remaining_number)),ei(yn==null?void 0:yn.total_number))}),ch=()=>{kt.default.info({title:"\u63D0\u793A",icon:null,okText:"\u6211\u77E5\u9053\u4E86",width:510,centered:!0,content:Ft.createElement("div",null,Ft.createElement("div",{style:{color:"#FA6400"}},"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),Ft.createElement("div",{className:"c-grey-333 mt5"},"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F\u7528",si,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))})},la=yn=>yn.reduce((Ei,Ii)=>{if(Ii.sender==="user"){const rr=yn.find(ji=>ji.key===Ii.key&&ji.sender==="AI");rr&&(rr!=null&&rr.text)&&!(rr!=null&&rr.error)&&Ei.push({question:Ii.text,answer:rr.text})}return Ei},[]),Yn=(...yn)=>me(void 0,[...yn],function*(ci="",Ei={},Ii=er){if(lr&&(yield lr({mes:ci,setChatData:cr,fileList:xi,body:Ei,checkNum:Jo,setLoading:Zn,bodyChatData:Ii,setTyping:Kr,setImageGenerator:Cr,renderChatItems:$a})),!lr){const rr=xi==null?void 0:xi.map(bo=>{var Ms;return(Ms=bo==null?void 0:bo.response)==null?void 0:Ms.file_id}),ji=Wi==null?void 0:Wi.map(bo=>{var Ms;return(Ms=bo==null?void 0:bo.response)==null?void 0:Ms.data}),Ir=Ei.history||la(Ii),Nr=Bt(Bt({identifier:Pa,response_mode:"streaming",model:on,scene_awareness:ba,thinking_enabled:Zo,image_generator:Ri,file_ids:rr,image_list:ji,history:Ir,[Oo]:ci},mi),Ei),qo=Object.fromEntries(Object.entries(Nr).filter(([bo,Ms])=>Ms!==void 0));qi.current=new Ae.Z(Ne.Z.API_SERVER+ii,qo),yield new Promise((bo,Ms)=>{let oo=null,rc=null;qi.current.on("data",dh=>{Kr(!0);const{chunk:{content:yl,type:nl,created:Fo,msg:vs}}=dh,Ao=vs==="error";nl==="thinking"&&(oo=oo||Fo,cr(Po=>[...Po].map((il,tu)=>tu===Po.length-1?te(Bt({},il),{reasoning:(il.reasoning||"")+yl,loading:!1,hideAnswer:!0,error:Ao}):il))),nl==="text"&&(rc=rc||Fo,cr(Po=>[...Po].map((il,tu)=>tu===Po.length-1?te(Bt({},il),{text:(il.text||"")+yl,loading:!1,startTime:oo,endTime:rc,error:Ao}):il)))}),qi.current.on("done",()=>{bo()}),qi.current.on("error",()=>{const dh="\u62B1\u6B49\uFF0C\u6211\u521A\u521A\u9047\u5230\u4E86\u4E00\u70B9\u95EE\u9898\uFF0C\u6CA1\u80FD\u5B8C\u6210\u60A8\u7684\u8BF7\u6C42\u3002\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\u4E00\u6B21\uFF0C\u6216\u8005\u8054\u7CFB\u6280\u672F\u652F\u6301\u5E2E\u5FD9\u89E3\u51B3!";cr(yl=>[...yl].map((nl,Fo)=>Fo===yl.length-1?te(Bt({},nl),{text:dh,loading:!1,error:!0}):nl)),bo()}),qi.current.on("cancelled",()=>{bo()}),qi.current.startStream()})}Jo(),Zn(!1)}),If=yn=>{sn(yn.target.value)},ic=(yn,ci)=>{if(tl(),Zn(!0),yn==="edit"){zi.current=er.slice(ci+2);const Ei=er.splice(ci),{fileList:Ii,imageList:rr}=(Ei==null?void 0:Ei[0])||{},ji=Ii.map(qo=>{var bo;return(bo=qo.response)==null?void 0:bo.file_id}),Ir=rr.map(qo=>{var bo;return(bo=qo.response)==null?void 0:bo.data}),Nr={history:la(er),file_ids:ji,image_list:Ir,edit:!0};cr([...er,...$a(fr,Ii,rr)]),Yn(fr,Nr,er)}if(yn==="redraw"){zi.current=er.slice(ci+1);const Ei=er.splice(ci-1),{text:Ii,fileList:rr,imageList:ji}=(Ei==null?void 0:Ei[0])||{},Ir=rr.map(bo=>{var Ms;return(Ms=bo.response)==null?void 0:Ms.file_id}),Nr=ji.map(bo=>{var Ms;return(Ms=bo.response)==null?void 0:Ms.data}),qo={history:la(er),file_ids:Ir,image_list:Nr,edit:!0};cr([...er,...$a(Ii,rr,ji)]),Yn(Ii,qo,er)}},Ra=()=>{if(Mi.trim()!==""){tl(),Zn(!0);const yn=xi.filter(Ei=>Ei.status==="done"),ci=Wi.filter(Ei=>Ei.status==="done");cr([...er,...$a(Mi,yn,ci)]),Yn(Mi)}},Gc=yn=>{if(yn.shiftKey){if(yn.key==="Enter")return}else if(yn.key==="Enter"){if(yn.preventDefault(),ml||Ur.current)return;Ra()}},Uc=(yn,ci)=>{let Ei=!1;Do===!0?Ei=!0:Do==="last"&&(Ei=er.reduce((Ir,Nr,qo)=>Nr.sender==="user"?qo:Ir,-1)===ci);const Ii=ci===Vi,rr=[...(yn==null?void 0:yn.fileList)||[],...(yn==null?void 0:yn.imageList)||[]];return Ft.createElement("div",{className:ge.li,style:{width:mo}},Ft.createElement("div",{className:ge.avatarIcon},Ft.createElement("img",{className:ge.img,src:An})),Ft.createElement("div",{className:ge.content},!!(rr!=null&&rr.length)&&Ft.createElement("div",{className:ge.fileWrap},rr==null?void 0:rr.map((ji,Ir)=>{var Nr,qo;return Ft.createElement("div",{key:Ir,className:ge.file},Ft.createElement("img",{src:Rt(90034)(`./${((qo=(Nr=ji==null?void 0:ji.name)==null?void 0:Nr.split("."))==null?void 0:qo.pop())||"txt"}.png`),width:20,className:"mr10"}),Ft.createElement("aside",null,Ft.createElement(Ct.Z,{title:ji==null?void 0:ji.name},Ft.createElement("div",{className:ge.fileName},ji==null?void 0:ji.name)),Ft.createElement("div",{className:"c-grey-999 font12"},(0,de.RD)(ji==null?void 0:ji.size))))})),Ft.createElement("div",{className:ge.borderBox},Ii?Ft.createElement(St.default.TextArea,{value:fr,ref:gn,autoSize:!0,placeholder:"\u8BF7\u8F93\u5165",bordered:!1,onChange:ji=>vn(ji.target.value)}):Ft.createElement("div",{className:ge.text},yn==null?void 0:yn.text)),Ii?Ft.createElement("div",{className:ge.action},Ft.createElement(pt.ZP,{onClick:()=>{vn(""),Yi(null)},size:"small"},"\u53D6\u6D88"),Ft.createElement(pt.ZP,{disabled:!fr.trim(),onClick:()=>ic("edit",ci),type:"primary",size:"small"},"\u786E\u8BA4")):Ft.createElement("div",{className:ge.action},Ft.createElement(ae.CopyToClipboard,{text:(yn==null?void 0:yn.text)||"",onCopy:()=>ie.ZP.success("\u590D\u5236\u6210\u529F")},Ft.createElement(Ct.Z,{title:"\u590D\u5236"},Ft.createElement("i",{className:"iconfont icon-fuzhi8 font13"}))),Ei&&!ri&&Ft.createElement(Ct.Z,{title:"\u7F16\u8F91"},Ft.createElement("i",{onClick:()=>{Yi(ci),vn((yn==null?void 0:yn.text)||"")},className:"iconfont icon-bianji10 font14"})))))},jn=(yn,ci)=>{let Ei=!1;Xs===!0?Ei=!0:Xs==="last"&&(Ei=er.reduce((ji,Ir,Nr)=>Ir.sender==="AI"?Nr:ji,-1)===ci);let Ii="";return yn!=null&&yn.source?Ii=yn==null?void 0:yn.source:(yn==null?void 0:yn.model)==="deepseek-r1"?Ii="\u7531deepseek\u751F\u6210":(yn==null?void 0:yn.model)==="qwen-max"&&(Ii="\u7531\u901A\u4E49\u5343\u95EE\u751F\u6210"),Ft.createElement("div",{className:ge.li,style:{width:mo}},Ft.createElement("div",{className:ge.avatarIcon},Ft.createElement("img",{className:ge.img,src:fn})),Ft.createElement("div",{className:ge.content},Ft.createElement("div",{className:ge.borderBox},yn.loading&&Ft.createElement(Ft.Fragment,null,yn!=null&&yn.imageGenerator?Ft.createElement("div",{className:ge.loadingPic},"\u6B63\u5728\u751F\u6210\u4E2D",Ft.createElement("div",{className:"ai-loading"})):!(yn!=null&&yn.thinkingEnabled)&&Ft.createElement("div",null,Ft.createElement("div",{className:ge.loading},Ft.createElement("div",{className:ge.dot}),Ft.createElement("div",{className:ge.dot}),Ft.createElement("div",{className:ge.dot})),Ft.createElement("div",{style:{marginTop:10,color:"#9096A3"}},(Bi==null?void 0:Bi.text)||"\u8BF7\u8010\u5FC3\u7B49\u5F85\uFF0C\u76EE\u524D\u9AD8\u5CF0\u671F\u4F53\u9A8C\u4EBA\u6570\u8FC7\u591A\uFF0C\u6211\u4EEC\u5DF2\u8BB0\u5F55\u4E0B\u60A8\u7684\u9700\u6C42\uFF0C\u7A0D\u540E\u5C06\u81EA\u52A8\u4E3A\u60A8\u751F\u6210\u7B54\u6848\u3002"))),(yn==null?void 0:yn.thinkingEnabled)&&Ft.createElement(ut,{time:yn==null?void 0:yn.time,cancelIndex:Rn,loading:yn.loading,streamingStatus:!(yn!=null&&yn.text),onFinish:()=>{Ee(0),cr(rr=>[...rr].map((ji,Ir)=>Ir===rr.length-1?te(Bt({},ji),{hideAnswer:!1,time:ji.startTime?ji.endTime-ji.startTime:null}):ji))},value:yn==null?void 0:yn.reasoning}),!!(yn!=null&&yn.text)&&!yn.hideAnswer&&Ft.createElement(E.Z,{cancelIndex:Rn,streamingStatus:ri,loadImage:!!(yn!=null&&yn.imageGenerator),onFinish:()=>me(void 0,null,function*(){Ee(0),setTimeout(()=>Kr(!1),0)}),value:yn==null?void 0:yn.text})),!!(yn!=null&&yn.text)&&Ii&&Ft.createElement("div",{className:ge.source},Ii),Ft.createElement("div",{className:ge.action},Ti==null?void 0:Ti(yn,ci,{onMenuClick:jl}),Ft.createElement(ae.CopyToClipboard,{text:String((yn==null?void 0:yn.text)||""),onCopy:()=>ie.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},Ft.createElement(Ct.Z,{title:"\u590D\u5236"},Ft.createElement("i",{className:"iconfot icon-fuzhi8 font13"}))),Or&&!ri&&Ft.createElement(Ft.Fragment,null,Ft.createElement(Ct.Z,{title:"\u559C\u6B22"},Ft.createElement("i",{style:yn!=null&&yn.like?{color:"#FA8D30"}:{},onClick:()=>$r("like",!(yn!=null&&yn.like),ci),className:"iconfot icon-yijiejue font15"})),Ft.createElement(Ct.Z,{title:"\u4E0D\u559C\u6B22"},Ft.createElement("i",{style:yn!=null&&yn.dislike?{color:"#e86d7c"}:{},onClick:()=>$r("dislike",!(yn!=null&&yn.dislike),ci),className:"iconfot icon-weijiejuezhengchang font15"}))),Ei&&!ri&&Ft.createElement(Ct.Z,{title:"\u91CD\u65B0\u751F\u6210"},Ft.createElement("i",{onClick:()=>ic("redraw",ci),className:"iconfot icon-gengxin-genghuan-tihuan"})))))},$r=(yn,ci,Ei)=>me(void 0,null,function*(){if(zn){const Ii=er.slice(0,Ei+1),ji=la(Ii).length;yield zn({type:yn,value:ci,index:Ei,identifier:Pa,objectIndex:ji})}cr(Ii=>(Ii[Ei][yn]=ci,ci&&(Ii[Ei][yn==="like"?"dislike":"like"]=!1),[...Ii]))}),vo=()=>{var yn,ci;Ee(1),(ci=(yn=qi.current)==null?void 0:yn.cancelRequest)==null||ci.call(yn),Zn(!1),Kr(!1)},Zs=()=>me(void 0,null,function*(){var yn,ci,Ei;(ci=(yn=qi.current)==null?void 0:yn.cancelRequest)==null||ci.call(yn),tl(),cr([]),Zn(!0);const Ii=yield Ca();(Ii==null?void 0:Ii.status)===0&&gl((Ei=Ii==null?void 0:Ii.data)==null?void 0:Ei.identifier),Zn(!1),Kr(!1)}),$l=()=>me(void 0,null,function*(){var yn;mn(!0);const ci=yield Is();(ci==null?void 0:ci.status)===0&&ai(((yn=ci==null?void 0:ci.data)==null?void 0:yn.list)||[]),mn(!1)}),jl=(...yn)=>me(void 0,[...yn],function*(ci=Pa){var Ei,Ii,rr,ji;(Ii=(Ei=qi.current)==null?void 0:Ei.cancelRequest)==null||Ii.call(Ei),tl(),Yr(!0);const Ir=yield Ol(ci);if(Ir.status===0){const Nr=Es(((rr=Ir==null?void 0:Ir.data)==null?void 0:rr.messages)||[]);cr(Nr),Yr(!1),gl((ji=Ir==null?void 0:Ir.data)==null?void 0:ji.identifier);return}cr([]),Yr(!1)}),wi=(yn,ci)=>me(void 0,null,function*(){(yield $e(yn)).status===0&&(ie.ZP.success("\u5220\u9664\u6210\u529F"),ci===Pa&&Zs(),$l())}),fh=()=>Ft.createElement("div",{className:ge.menuWarp},Ft.createElement("h4",null,"\u5386\u53F2\u5BF9\u8BDD"),Ft.createElement(vt.Z,{spinning:br},!xn.length&&Ft.createElement(yt.Z,{style:{width:250,paddingBottom:30},image:yt.Z.PRESENTED_IMAGE_SIMPLE}),!!xn.length&&Ft.createElement("div",{className:ge.menu},xn.map(function(yn,ci){return Ft.createElement("aside",{className:lt()(Pa===yn.identifier&&ge.active),key:yn.id,onClick:()=>jl(yn.id)},Ft.createElement("div",{className:ge.menuText},Ft.createElement(Ct.Z,{title:yn==null?void 0:yn.question},Ft.createElement("span",null,yn==null?void 0:yn.question)),dr&&dr(yn)),Ft.createElement("div",{className:ge.menuDel,onClick:Ei=>Ei.stopPropagation()},Ft.createElement(xt.Z,{title:"\u63D0\u793A",description:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u672C\u6761\u5BF9\u8BDD\u5417\uFF1F",onConfirm:()=>wi(yn.id,yn.identifier),okText:"\u786E\u8BA4",zIndex:1100,cancelText:"\u53D6\u6D88"},Ft.createElement("i",{className:"iconfont icon-shanchu14 delete-hover font14"}))))})))),el=yn=>{if(yn==="file"){if(Wi.length){kt.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4\u8986\u76D6",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5DF2\u5B58\u5728\u56FE\u7247\uFF0C\u4E0A\u4F20\u6587\u4EF6\u540E\u56FE\u7247\u5C06\u4F1A\u88AB\u8986\u76D6?",onOk:()=>{oi([]),jr.current.upload.uploader.fileInput.click()}});return}jr.current.upload.uploader.fileInput.click()}if(yn==="image"){if(xi.length){kt.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4\u8986\u76D6",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5DF2\u5B58\u5728\u6587\u4EF6\uFF0C\u4E0A\u4F20\u56FE\u7247\u540E\u6587\u4EF6\u5C06\u4F1A\u88AB\u8986\u76D6?",onOk:()=>{Zi([]),Qr.current.upload.uploader.fileInput.click()}});return}Qr.current.upload.uploader.fileInput.click()}},Fs=[{key:"file",disabled:xi.length>=Pu,label:Ft.createElement(Ct.Z,{placement:"right",title:Ft.createElement("div",null,Ft.createElement("b",null,"\u4E0A\u4F20\u9644\u4EF6\uFF08\u4EC5\u8BC6\u522B\u6587\u5B57\uFF09"),Ft.createElement("div",null,"\u6700\u591A 50 \u4E2A\uFF0C\u6BCF\u4E2A 100 MB\uFF0C\u652F\u6301\u5404\u7C7B\u578B\u6587\u6863"))},Ft.createElement("span",null,Ft.createElement("i",{className:"iconfont icon-fujian3 font14 mr5"}),"\u4E0A\u4F20\u6587\u6863"))},on!=="deepseek-r1"&&{key:"image",disabled:Wi.length>=Ba,label:Ft.createElement(Ct.Z,{placement:"right",title:"\u652F\u6301\u4E0D\u8D85\u8FC710M\u7684PNG/JPG\u56FE\u7247\uFF0C\u6700\u591A10\u4E2A"},Ft.createElement("span",null,Ft.createElement("i",{className:"iconfont icon-tupianshangchuan font14 mr5"}),"\u4E0A\u4F20\u56FE\u7247"))}].filter(Boolean),ms=[...xi,...Wi],ml=ms.some(yn=>yn.status==="uploading")||ri||Io,vl=On>=si,As=Ze||xi.length>=Pu||Wi.length>=Ba,Ea=Ri||Zo||ba||!!ms.length;return Ft.createElement("div",null,Dn?Ft.createElement("div",{onClick:xr},Dn):Ft.createElement(He,{draggableExtraNode:Bn,src:En,onClick:xr,topPercentage:Gr}),Ft.createElement(dt.Z,{open:ti,width:Zr?"100%":ee,afterOpenChange:yn=>{yn&&qn(!1)},push:!1,contentWrapperStyle:vi?{}:{transition:"none"},extra:Ft.createElement("div",{className:ge.head},Xi,sa&&Ft.createElement(Me,{value:on,onChange:yn=>{Xr(!1),Cr(!1),Cn(yn),oi([]),Zi([])}}),en&&Ft.createElement(Ft.Fragment,null,Ft.createElement(ft.Z,{dropdownRender:fh,onOpenChange:yn=>{yn&&$l()},placement:"bottomLeft",arrow:!0},Ft.createElement("div",{className:ge.headBtn},Ft.createElement("i",{className:"icon-lishiduihua1 font14 mr10"}),"\u5386\u53F2\u5BF9\u8BDD"))),hi&&Ft.createElement(Ft.Fragment,null,Ft.createElement("div",{className:ge.headBtn,onClick:Zs},Ft.createElement("i",{className:"icon-xinjianduihua font14 mr10"}),"\u65B0\u5EFA\u5BF9\u8BDD")),Ft.createElement(Ct.Z,{title:Zr?"\u9000\u51FA\u5168\u5C4F":"\u5168\u5C4F"},Ft.createElement("div",{className:ge.headBtn,style:{padding:"0 12px"},onClick:()=>aa(!Zr)},Zr&&Ft.createElement("i",{className:"iconfont icon-tuichuquanping3"}),!Zr&&Ft.createElement("i",{className:"iconfont icon-quanping4"})))),title:Ft.createElement("span",{className:"c-grey-333 font16"},Ue),onClose:Eo,bodyStyle:{paddingRight:4}},Ft.createElement("div",{className:lt()(ge.wrap,ti&&"body-overflow-hidden")},Ft.createElement("div",{ref:Qi,className:ge.chatContainer},Oi&&Ft.createElement("div",{className:`${ge.li} mb20`,style:{width:mo}},Ft.createElement("div",{className:ge.avatarIcon},Ft.createElement("img",{className:ge.img,src:fn})),Ft.createElement("div",{className:ge.content},Ft.createElement("div",{className:ge.borderBox},mr,gs==null?void 0:gs({isDisabledNum:vl,checkNumModal:ch,checkNum:Jo,onClose:Eo,setChatData:cr,setLoading:Zn,getData:Yn,clearStatus:tl,typing:Io,setImageGenerator:Cr,renderChatItems:$a,setSceneAwareness:uo,setIdentifier:gl})))),Ft.createElement("div",{ref:_l},Ft.createElement(vt.Z,{spinning:ur,className:"mt20"},er==null?void 0:er.map((yn,ci)=>Ft.createElement(Ft.Fragment,{key:yn.key+ci},yn.show&&Ft.createElement(Ft.Fragment,null,yn.sender==="user"&&Uc(yn,ci),yn.sender==="AI"&&jn(yn,ci),Jn&&!["AI","user"].includes(yn.sender)&&Jn(yn,ci,{width:mo})))))),!bu&&Ft.createElement("div",{className:ge.backBottom,onClick:()=>{Qi.current.scrollTop=Qi.current.scrollHeight}},Ft.createElement("i",{className:"iconfont icon-huidaodibu"})),Ft.createElement("div",{ref:jo})),!nn&&Ft.createElement("div",{className:lt()(ge.footerContainer,Li&&ge.full,Ea&&ge.footerContainerSelected)},Ft.createElement("div",{className:ge.btnWrp},ir&&Ft.createElement(Ct.Z,{title:"\u667A\u80FD\u611F\u77E5\u5F53\u524D\u60C5\u5883\uFF0C\u63D0\u4F9B\u9488\u5BF9\u6027\u89E3\u7B54"},Ft.createElement("div",{onClick:()=>uo(!ba),className:lt()(ge.btn,ba&&ge.btnActive)},Ft.createElement("i",{className:"iconfont icon-changjingganzhi mr10 font12"}),"\u573A\u666F\u611F\u77E5")),on==="deepseek-r1"&&Ft.createElement(Ct.Z,{title:"\u8C03\u7528\u65B0\u6A21\u578B DeepSeek-R1\uFF0C\u89E3\u51B3\u63A8\u7406\u95EE\u9898"},Ft.createElement("div",{onClick:()=>Xr(!Zo),className:lt()(ge.btn,Zo&&ge.btnActive)},Ft.createElement("i",{className:"iconfont icon-shendusikao mr10 font12"}),"\u6DF1\u5EA6\u601D\u8003\uFF08R1\uFF09")),dn&&on==="qwen-max"&&Ft.createElement("div",{onClick:()=>Cr(!Ri),className:lt()(ge.btn,Ri&&ge.btnActive)},Ft.createElement("i",{className:"iconfont icon-shangchuantupian2 mr10 font12"}),"\u56FE\u50CF\u751F\u6210"),ms.map(yn=>Ft.createElement("div",{key:yn.uid},(yn==null?void 0:yn.status)==="uploading"&&Ft.createElement(vt.Z,{indicator:Ft.createElement(Xe.Z,{spin:!0}),className:"mr10",size:"small",spinning:!0}),Ft.createElement("span",{title:yn==null?void 0:yn.name,className:"mr10"},(0,de.Pq)(yn.name,20)),Ft.createElement("i",{onClick:()=>{Zi(ci=>ci.filter(Ei=>Ei.uid!==yn.uid)),oi(ci=>ci.filter(Ei=>Ei.uid!==yn.uid))},className:"iconfont current icon-shanchu15 delete-hover c-red-ee4 font12"})))),Ft.createElement(Ct.Z,{title:vl&&Ft.createElement("div",null,Ft.createElement("div",null,"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),Ft.createElement("div",null,"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F",si,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))},Ft.createElement("div",{className:lt()(ge.inputContainer,Jr>4&&ge.lineFour,vl&&ge.disabledInput)},Ft.createElement(rt.default,Bt({ref:jr},Cu)),Ft.createElement(rt.default,Bt({ref:Qr},qr)),Ft.createElement(ft.Z,{className:`${As&&"hide"}`,menu:{items:Fs,onClick:yn=>el(yn.key)},placement:"top"},Ft.createElement(pt.ZP,{className:ge.uploadBtn,icon:Ft.createElement(Be.Z,{style:{fontSize:18,color:"#FFF"}})})),Ft.createElement(St.default.TextArea,{rows:Jr>4?4:Jr,placeholder:Je||"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u95EE\u9898\u5427,Shift+Enter\u6362\u884C\uFF5E",value:Mi,bordered:!1,style:As?{paddingLeft:0,marginLeft:0}:{},onChange:If,onPressEnter:Gc,onCompositionStart:()=>{Ur.current=!0},onCompositionEnd:()=>{Ur.current=!1}}),Io?Ft.createElement(Ct.Z,{title:"\u505C\u6B62\u751F\u6210"},Ft.createElement("div",{className:`iconfont icon-tingzhihuida ${ge.cancelBtn}`,onClick:vo})):Ft.createElement(pt.ZP,{className:(Mi==null?void 0:Mi.trim())===""?ge.sendBtnDisabled:ge.sendBtn,icon:Ft.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:ml,onClick:Ra}),Jr>4&&Ft.createElement("span",{className:ge.fullIcon,onClick:Eu},Li&&Ft.createElement("span",{className:"iconfont icon-shousuo"}),!Li&&Ft.createElement("span",{className:"iconfont icon-zhankai"}))))))))}},67054:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return Ut},U:function(){return jt}});var Ft=Rt(59301),ie=Rt(31797),rt=Rt(43418),kt=Rt(1710),Ct=Rt(4901),St=Rt(94941),pt=Rt(61186),vt=Rt.n(pt),yt={exitFullScreenModalWrapper:"exitFullScreenModalWrapper___aNB9Q",exitFullScreenModal:"exitFullScreenModal___HIMyY",warningIcon:"warningIcon___xEURa",warningText:"warningText___W6NPJ",countdownWrapper:"countdownWrapper___n8g1M",forcedModalWrapper:"forcedModalWrapper___JPMQ2",forcedModalContent:"forcedModalContent___uY5FV",forcedText:"forcedText___C3CrF",screenNumText:"screenNumText___oljHN"},xt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJwA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d/M4C19WyTQWCXw/2FPRE8ZCmprAAAAAElFTkSuQmCC",ft=Rt(955),ct=Rt(89070),lt=Rt(37518),E=Rt(59301),z=Object.defineProperty,ot=Object.defineProperties,it=Object.getOwnPropertyDescriptors,at=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,Et=(Xt,Gt,Vt)=>Gt in Xt?z(Xt,Gt,{enumerable:!0,configurable:!0,writable:!0,value:Vt}):Xt[Gt]=Vt,At=(Xt,Gt)=>{for(var Vt in Gt||(Gt={}))ut.call(Gt,Vt)&&Et(Xt,Vt,Gt[Vt]);if(at)for(var Vt of at(Gt))wt.call(Gt,Vt)&&Et(Xt,Vt,Gt[Vt]);return Xt},_t=(Xt,Gt)=>ot(Xt,it(Gt)),Mt=(Xt,Gt,Vt)=>new Promise((Ht,ne)=>{var se=re=>{try{Kt(Vt.next(re))}catch(we){ne(we)}},ve=re=>{try{Kt(Vt.throw(re))}catch(we){ne(we)}},Kt=re=>re.done?Ht(re.value):Promise.resolve(re.value).then(se,ve);Kt((Vt=Vt.apply(Xt,Gt)).next())});const jt=["fullscreenchange","msfullscreenchange","webkitfullscreenchange","mozfullscreenchange"],{Countdown:Lt}=ie.default,It=({exercise:Xt,socket:Gt,dispatch:Vt,onStartScreenshot:Ht,onCloseScreenshot:ne,handleToDetail:se})=>{const[ve,Kt]=rt.default.useModal(),re=(0,Ft.useRef)(),[we,ke]=(0,Ft.useState)(!0),Me=(0,Ft.useRef)(!1),ge=(0,ct.useParams)();(0,Ft.useEffect)(()=>{var he,ye,Qt;if(document.addEventListener((0,Ct.gH)(),ue,!1),window.addEventListener("blur",Be,!1),(he=Xt.exerciseUserInfo)!=null&&he.screen_open&&(0,Ct.vp)()&&ke(!1),(ye=Xt.exerciseUserInfo)!=null&&ye.screen_open&&!(0,Ct.vp)()){(0,ft.RG)(" ",!0);const Wt=document.domain==="kepukehuan.educoder.net"?30:localStorage.getItem("Refresh")==="1"?Xt.exerciseUserInfo.screen_sec+3:Xt.exerciseUserInfo.screen_sec+10+1;re.current=rt.default.info({icon:null,centered:!0,width:444,title:(0,lt._V)(lt.CP.recordScreen1),keyboard:!1,content:E.createElement("div",null,(0,lt._V)(lt.CP.recordScreen2),E.createElement("span",{style:{color:"#FF9849"}},Xt.exerciseUserInfo.screen_num-Xt.exerciseUserInfo.used_screen_num),(0,lt._V)(lt.CP.recordScreen3)),okText:E.createElement("span",null,(0,lt._V)(lt.CP.recordScreen4),"\uFF08",E.createElement("span",{style:{display:"inline-block"}},E.createElement(Lt,{onFinish:()=>Mt(void 0,null,function*(){var Bt;const te=yield Te();(Bt=re.current)==null||Bt.destroy(),te.used_screen_num&&ae(te.used_screen_num+1)}),valueStyle:{fontSize:14,lineHeight:1.4,color:"#FFF",display:"inline-block"},format:"ss",value:Date.now()+Wt*1e3})),"S\uFF09"),onOk:()=>{var Bt;(0,ft.RG)(" ",!0),(Bt=re.current)==null||Bt.destroy(),ke(!1),(0,Ct.Dj)(document.body),document.getElementById("root").addEventListener("click",de,!1)}})}return(Qt=Xt.exerciseUserInfo)!=null&&Qt.screen_open&&!(0,Ct.vp)()||document.getElementById("root").addEventListener("click",de,!1),()=>{document.getElementById("root").removeEventListener("click",de,!1),document.removeEventListener((0,Ct.gH)(),ue,!1),window.removeEventListener("blur",Be,!1)}},[]),(0,Ft.useEffect)(()=>{setTimeout(()=>{Xt.actionTabs.removeEventListenerExitScreen&&(document.getElementById("root").removeEventListener("click",de,!1),document.removeEventListener((0,Ct.gH)(),ue,!1))},500),_e()},[Xt.actionTabs]),(0,Ft.useEffect)(()=>{setTimeout(()=>{Xt.exerciseUserInfo.used_screen_num>Xt.exerciseUserInfo.screen_num&&Ae()},500)},[Xt.exerciseUserInfo]);const fe=()=>Mt(void 0,null,function*(){const he=yield Te();setTimeout(()=>{var ye,Qt;(ye=re.current)==null||ye.destroy(),re.current=rt.default.info({okText:E.createElement("span",null,"\u56DE\u5230\u8003\u8BD5"),content:E.createElement("div",null,"\u60A8\u5DF2\u5207\u5C4F",E.createElement("span",{className:"c-red"},he.used_screen_num),"\u6B21\uFF0C\u5207\u5C4F\u8D85\u8FC7",E.createElement("span",{className:"c-red"},(Qt=Xt.exerciseUserInfo)==null?void 0:Qt.screen_num),"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377"),onOk:()=>Mt(void 0,null,function*(){(0,Ct.Dj)(document.body)})})},1e3)}),de=he=>{!(0,Ct.vp)()&&he.target.nodeName!=="A"&&he.target.nodeName!=="BUTTON"&&he.target.innerHTML!=="\u786E \u5B9A"&&(0,Ct.Dj)(document.body)},_e=()=>Mt(void 0,null,function*(){const he=yield Vt({type:"exercise/getExerciseUserInfo",payload:At({},ge)});return he==null?void 0:he.data}),Oe=he=>Mt(void 0,null,function*(){var ye;if((ye=Xt.exerciseUserInfo)!=null&&ye.screen_at){const Wt=yield(0,St.ck)(_t(At({},ge),{reset:!0}));if((Wt==null?void 0:Wt.status)===-6)return}const Qt=yield(0,St.oy)({id:ge.categoryId});if(Qt!=null&&Qt.is_commit){rt.default.destroyAll(),yield He(),Xe(!0);return}else ae(he+1)}),He=()=>Mt(void 0,null,function*(){var he;const ye=vt()(),Qt=Xt.exerciseUserInfo.screen_sec;if(le.current.length>0){const Wt=ye.format("YYYY-MM-DD HH:mm:ss");let Bt=Math.floor(ye.diff(vt()(le.current[0].start))/1e3);const te=le.current.length;Bt/Qt>>0>te&&(Bt=(te+1)*Qt-1),yield(0,St.P8)(ge.categoryId,{exercise_user_id:(he=Xt.exerciseUserInfo)==null?void 0:he.exercise_user_id,time:Wt,time_long:Bt,count:te})}le.current=[]}),Se=(0,Ft.useRef)(0),xe=(0,Ft.useRef)(0),le=(0,Ft.useRef)([]),Ne=(0,Ft.useRef)(!1),ae=he=>Mt(void 0,null,function*(){var ye;Me.current||(Ht(),rt.default.destroyAll(),Se.current=vt()().valueOf(),Ne.current=!0,re.current=rt.default.info({icon:null,maskClosable:!1,width:1080,keyboard:!1,centered:!0,className:yt.exitFullScreenModalWrapper,okText:E.createElement("span",null,(0,lt._V)(lt.CP.recordScreen8)),content:E.createElement("div",{className:yt.exitFullScreenModal},E.createElement("img",{src:xt,alt:"",className:yt.warningIcon}),E.createElement("div",{className:yt.warningText,style:{marginBottom:50,fontWeight:500}},(0,lt._V)(lt.CP.recordScreen9)),E.createElement("div",{style:{marginBottom:40}},(0,lt._V)(lt.CP.recordScreen10)),E.createElement("div",{style:{marginBottom:40}},(0,lt._V)(lt.CP.recordScreen11),E.createElement("span",{className:yt.warningText},((ye=Xt.exerciseUserInfo)==null?void 0:ye.screen_num)+1),(0,lt._V)(lt.CP.recordScreen12),E.createElement("span",{className:yt.warningText,style:{fontWeight:600}},(0,lt._V)(lt.CP.recordScreen13)),",",(0,lt._V)(lt.CP.recordScreen14),E.createElement("span",{className:yt.warningText},he-1),(0,lt._V)(lt.CP.recordScreen15)),E.createElement("div",null,E.createElement("span",null,E.createElement(Lt,{className:yt.countdownWrapper,onFinish:()=>{xe.current=vt()().valueOf(),le.current.push({start:Se.current,end:xe.current}),Oe(he)},valueStyle:{fontSize:30,color:"#165DFF"},format:"ss",value:Date.now()+(Xt.exerciseUserInfo.screen_sec+1)*1e3}),(0,lt._V)(lt.CP.recordScreen25)),(0,lt._V)(lt.CP.recordScreen16))),onOk:()=>{(0,ft.RG)(" ",!0),He(),(0,Ct.Dj)(document.body),ne(),re.current.destroy(),Ne.current=!1}}))}),Ae=()=>Mt(void 0,null,function*(){rt.default.destroyAll(),(yield(0,St.VL)({categoryId:ge.categoryId,commit_method:1}))&&Xe()}),Xe=(he=!1)=>Mt(void 0,null,function*(){var ye,Qt;if(document.removeEventListener((0,Ct.gH)(),ue,!1),(0,Ct.BU)(),rt.default.destroyAll(),Me.current=!0,he){const Wt=yield(0,St.Yu)(ge.categoryId,{exercise_user_id:(ye=Xt.exerciseUserInfo)==null?void 0:ye.exercise_user_id});ve.confirm({icon:null,closable:!1,maskClosable:!1,okText:"\u7533\u8BF7\u7EE7\u7EED\u8003\u8BD5",cancelText:"\u8FD4\u56DE",width:616,className:yt.forcedModalWrapper,centered:!0,content:E.createElement("div",{className:yt.forcedModalContent},E.createElement("img",{src:dt,alt:""}),E.createElement("div",{className:yt.forcedText},(0,lt._V)(lt.CP.recordScreen17)),E.createElement("div",{className:yt.screenNumText},(0,lt._V)(lt.CP.recordScreen18),(Qt=Xt.exerciseUserInfo)==null?void 0:Qt.screen_num,(0,lt._V)(lt.CP.recordScreen19)),E.createElement(kt.default,{dataSource:Wt==null?void 0:Wt.data,pagination:!1,rowKey:"time",bordered:!0,columns:[{title:(0,lt._V)(lt.CP.recordScreen20),align:"center",dataIndex:"time"},{title:(0,lt._V)(lt.CP.recordScreen21),align:"center",dataIndex:"time_long"},{title:(0,lt._V)(lt.CP.recordScreen22),align:"center",dataIndex:"count"}]})),onCancel:()=>{ne(),se()},onOk:()=>{ct.history.push(`/classrooms/${ge.coursesId}/exercisenotice/${ge.categoryId}/users/${ge.login}?isShowApply=true`)}})}else ve.info({content:E.createElement("div",{className:"tc font16"},(0,lt._V)(lt.CP.recordScreen23),E.createElement("br",null),(0,lt._V)(lt.CP.recordScreen24)),onOk:()=>{se()}})}),Be=he=>{(0,Ct.vp)()&&document.getElementById("iframeShixuns").style.display=="none"&&!Ne.current&&(0,Ct.BU)()},Te=()=>Mt(void 0,null,function*(){var he;if((he=Xt.exerciseUserInfo)!=null&&he.screen_at){const Wt=yield(0,St.ck)(_t(At({},ge),{reset:!0}));if((Wt==null?void 0:Wt.status)===-6)return}const ye=yield(0,St.oy)({id:ge.categoryId});if(ye!=null&&ye.is_commit){Xe();return}return yield _e()}),ue=()=>Mt(void 0,null,function*(){var he;if((0,ft.RG)(" ",!0),(0,Ct.vp)()){if((he=Xt.exerciseUserInfo)!=null&&he.screen_at){var ye=yield(0,St.ck)(_t(At({},ge),{reset:!0}));if((ye==null?void 0:ye.status)===-6)return}}else if(!Ne.current){var ye=yield(0,St.ck)(At({},ge));if((ye==null?void 0:ye.status)===-6)return;const Wt=yield _e();ae(Wt.used_screen_num+1),window.frames.length!=parent.frames.length&&window.parent.postMessage("backExercise","*")}}),$t=()=>Mt(void 0,null,function*(){(0,St.ck)(At({},ge));const he=yield _e();ae(he.used_screen_num+1),window.frames.length!=parent.frames.length&&window.parent.postMessage("backExercise","*")});return E.createElement("div",null,Kt)};var Ut=(0,ct.connect)(({exercise:Xt,globalSetting:Gt})=>({globalSetting:Gt,exercise:Xt}))(It)},23960:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{X:function(){return kt},y:function(){return rt}});var Ft=Rt(59301),ie=Rt(8591);const rt=Ct=>{(0,Ft.useEffect)(()=>{if(Ct){const St=vt=>{vt.key==="F12"&&(vt.preventDefault(),console.log("F12\u88AB\u7981\u7528"))},pt=vt=>{vt.preventDefault()};return document.addEventListener("keydown",St),document.addEventListener("contextmenu",pt),()=>{document.removeEventListener("keydown",St),document.removeEventListener("contextmenu",pt)}}},[Ct])},kt=()=>{const[Ct,St]=(0,Ft.useState)(!1),pt=vt=>{const{keyCode:yt,ctrlKey:xt,metaKey:dt,type:ft}=vt;(ft==="paste"||(yt===67||yt===86)&&(dt||xt))&&(ie.ZP.warning("\u8001\u5E08\u5DF2\u8BBE\u7F6E\u7B54\u9898\u65F6\u4E0D\u5141\u8BB8\u8FDB\u884C\u590D\u5236\u7C98\u8D34"),vt.preventDefault(),vt.stopPropagation())};return(0,Ft.useEffect)(()=>(Ct&&(window.addEventListener("keydown",pt,!0),window.addEventListener("paste",pt,!0)),()=>{window.removeEventListener("keydown",pt,!0),window.removeEventListener("paste",pt,!0)}),[Ct]),{setOpenDisableCopyAndPaste:St,disableCopyAndPaste:Ct}}},16406:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return ye}});var Ft=Rt(59301),ie={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},rt=Rt(92310),kt=Rt.n(rt),Ct=Rt(71418);var St=function(Qt,Wt){return(St=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Bt,te){Bt.__proto__=te}||function(Bt,te){for(var me in te)Object.prototype.hasOwnProperty.call(te,me)&&(Bt[me]=te[me])})(Qt,Wt)};function pt(Qt,Wt){function Bt(){this.constructor=Qt}St(Qt,Wt),Qt.prototype=Wt===null?Object.create(Wt):(Bt.prototype=Wt.prototype,new Bt)}function vt(Qt,Wt,Bt,te){return new(Bt||(Bt=Promise))(function(me,Jt){function Ie(Ze){try{Je(te.next(Ze))}catch(nn){Jt(nn)}}function Ue(Ze){try{Je(te.throw(Ze))}catch(nn){Jt(nn)}}function Je(Ze){var nn;Ze.done?me(Ze.value):(nn=Ze.value,nn instanceof Bt?nn:new Bt(function(fn){fn(nn)})).then(Ie,Ue)}Je((te=te.apply(Qt,Wt||[])).next())})}function yt(Qt,Wt){var Bt,te,me,Jt,Ie={label:0,sent:function(){if(1&me[0])throw me[1];return me[1]},trys:[],ops:[]};return Jt={next:Ue(0),throw:Ue(1),return:Ue(2)},typeof Symbol=="function"&&(Jt[Symbol.iterator]=function(){return this}),Jt;function Ue(Je){return function(Ze){return function(nn){if(Bt)throw new TypeError("Generator is already executing.");for(;Ie;)try{if(Bt=1,te&&(me=2&nn[0]?te.return:nn[0]?te.throw||((me=te.return)&&me.call(te),0):te.next)&&!(me=me.call(te,nn[1])).done)return me;switch(te=0,me&&(nn=[2&nn[0],me.value]),nn[0]){case 0:case 1:me=nn;break;case 4:return Ie.label++,{value:nn[1],done:!1};case 5:Ie.label++,te=nn[1],nn=[0];continue;case 7:nn=Ie.ops.pop(),Ie.trys.pop();continue;default:if(me=Ie.trys,!((me=me.length>0&&me[me.length-1])||nn[0]!==6&&nn[0]!==2)){Ie=0;continue}if(nn[0]===3&&(!me||nn[1]>me[0]&&nn[1]',"select"),this.addActionButton(te,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(te,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(te,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(te,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(te,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(te,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(te,'',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(Jt){var Ie=document.createElement("div");Ie.className=""+Bt.toolbarButtonStyleClass.name,Ie.setAttribute("data-type-name",Jt.typeName),Ie.innerHTML=Jt.icon,Ie.addEventListener("click",function(){Bt.markerToolbarButtonClicked(Ie,Jt)}),Bt.buttons.push(Ie),Bt.markerButtons.push(Ie)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var ge=document.createElement("div");ge.className=this.toolbarBlockStyleClass.name,ge.style.whiteSpace="nowrap",ge.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ge),this.addActionButton(ge,'',"render"),this.addActionButton(ge,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},Qt.prototype.addButtonClickListener=function(Wt){this.buttonClickListeners.push(Wt)},Qt.prototype.removeButtonClickListener=function(Wt){this.buttonClickListeners.indexOf(Wt)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Wt),1)},Qt.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Qt.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Wt=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var Bt=0;Bt',"select"),this.addActionButton(te,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(te,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(te,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(te,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(te,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(te,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(te,'',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(Jt){var Ie=document.createElement("div");Ie.className=""+Bt.toolbarButtonStyleClass.name,Ie.setAttribute("data-type-name",Jt.typeName),Ie.innerHTML=Jt.icon,Ie.addEventListener("click",function(){Bt.markerToolbarButtonClicked(Ie,Jt)}),Bt.buttons.push(Ie),Bt.markerButtons.push(Ie)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var me=document.createElement("div");me.className=this.toolbarBlockStyleClass.name,me.style.whiteSpace="nowrap",me.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(me),this.addActionButton(me,'',"render"),this.addActionButton(me,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},Qt.prototype.addButtonClickListener=function(Wt){this.buttonClickListeners.push(Wt)},Qt.prototype.removeButtonClickListener=function(Wt){this.buttonClickListeners.indexOf(Wt)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Wt),1)},Qt.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Qt.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Wt=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var Bt=0;Bt0&&this.buttonClickListeners.forEach(function(te){return te("marker",Bt)}),this.markerButtonOverflowBlock.style.display="none"},Qt.prototype.actionToolbarButtonClicked=function(Wt,Bt){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(te){return te("action",Bt)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Qt.prototype.setActiveButton=function(Wt){this.resetButtonStyles(),Wt.className=Wt.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Wt.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Qt.prototype.setActiveMarkerButton=function(Wt){var Bt=this.markerButtons.find(function(te){return te.getAttribute("data-type-name")===Wt});Bt&&this.setActiveButton(Bt)},Qt.prototype.setCurrentMarker=function(Wt){var Bt=this;this.currentMarker=Wt,this.buttons.filter(function(te){return/delete|notes/.test(te.getAttribute("data-action"))}).forEach(function(te){Bt.currentMarker===void 0?(te.style.fillOpacity="0.4",te.style.pointerEvents="none"):(te.style.fillOpacity="1",te.style.pointerEvents="all")})},Qt}(),at=function(){function Qt(Wt,Bt,te,ge){this.panels=[],this.panelButtons=[],this.markerjsContainer=Wt,this.displayMode=Bt,this.uiStyleSettings=te,this.styles=ge,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Qt.prototype.addStyles=function(){var Wt;this.toolboxStyleClass=this.styles.addClass(new ot("toolbox",` + `))},Qt.prototype.markerToolbarButtonClicked=function(Wt,Bt){this.setActiveButton(Wt),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(te){return te("marker",Bt)}),this.markerButtonOverflowBlock.style.display="none"},Qt.prototype.actionToolbarButtonClicked=function(Wt,Bt){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(te){return te("action",Bt)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Qt.prototype.setActiveButton=function(Wt){this.resetButtonStyles(),Wt.className=Wt.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Wt.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Qt.prototype.setActiveMarkerButton=function(Wt){var Bt=this.markerButtons.find(function(te){return te.getAttribute("data-type-name")===Wt});Bt&&this.setActiveButton(Bt)},Qt.prototype.setCurrentMarker=function(Wt){var Bt=this;this.currentMarker=Wt,this.buttons.filter(function(te){return/delete|notes/.test(te.getAttribute("data-action"))}).forEach(function(te){Bt.currentMarker===void 0?(te.style.fillOpacity="0.4",te.style.pointerEvents="none"):(te.style.fillOpacity="1",te.style.pointerEvents="all")})},Qt}(),at=function(){function Qt(Wt,Bt,te,me){this.panels=[],this.panelButtons=[],this.markerjsContainer=Wt,this.displayMode=Bt,this.uiStyleSettings=te,this.styles=me,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Qt.prototype.addStyles=function(){var Wt;this.toolboxStyleClass=this.styles.addClass(new ot("toolbox",` width: 100%; flex-shrink: 0; display: flex; @@ -109,15 +109,15 @@ ${me} background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+` `)),this.styles.addRule(new z("."+this.toolboxButtonStyleClass.name+" svg",` height: `+this.uiStyleSettings.toolbarHeight/2+`px; - `))},Qt.prototype.show=function(Wt){var Bt;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Wt,this.uiContainer.className=this.toolboxStyleClass.name+" "+((Bt=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&Bt!==void 0?Bt:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Qt.prototype.setPanelButtons=function(Wt){var Bt,te,ge=this;this.panels=Wt,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((Bt=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&Bt!==void 0?Bt:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((te=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&te!==void 0?te:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Jt){var Ie;Jt.uiStyleSettings=ge.uiStyleSettings;var Ue=document.createElement("div");Ue.className=ge.toolboxButtonStyleClass.name+" "+((Ie=ge.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ie!==void 0?Ie:ge.toolboxButtonStyleColorsClass.name),Ue.innerHTML=Jt.icon,Ue.title=Jt.title,Ue.addEventListener("click",function(){ge.panelButtonClick(Jt)}),ge.panelButtons.push(Ue),ge.buttonRow.appendChild(Ue)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Qt.prototype.panelButtonClick=function(Wt){var Bt=this,te=-1;if(Wt!==this.activePanel){te=this.panels.indexOf(Wt),this.panelRow.innerHTML="";var ge=Wt.getUi();ge.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ge),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=Wt}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){Bt.displayMode==="inline"?Bt.panelRow.style.display="none":Bt.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Jt,Ie){var Ue,Je;Jt.className=Bt.toolboxButtonStyleClass.name+" "+(Ie===te?""+((Ue=Bt.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ue!==void 0?Ue:Bt.toolboxActiveButtonStyleColorsClass.name):""+((Je=Bt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Je!==void 0?Je:Bt.toolboxButtonStyleColorsClass.name))})},Qt}(),ut=function(Qt,Wt){this.title=Qt,this.icon=Wt},wt=function(Qt){function Wt(Bt,te,ge,Jt){var Ie=Qt.call(this,Bt,Jt||'')||this;return Ie.colors=[],Ie.addTransparent=!1,Ie.colorBoxes=[],Ie.colors=te,Ie.currentColor=ge,Ie.setCurrentColor=Ie.setCurrentColor.bind(Ie),Ie.getColorBox=Ie.getColorBox.bind(Ie),Ie}return pt(Wt,Qt),Wt.prototype.getUi=function(){var Bt=this,te=document.createElement("div");return te.style.overflow="hidden",te.style.whiteSpace="nowrap",this.colors.forEach(function(ge){var Jt=Bt.getColorBox(ge);te.appendChild(Jt),Bt.colorBoxes.push(Jt)}),te},Wt.prototype.getColorBox=function(Bt){var te=this,ge=this.uiStyleSettings.toolbarHeight/4,Jt=this.uiStyleSettings.toolbarHeight-ge,Ie=document.createElement("div");Ie.style.display="inline-block",Ie.style.boxSizing="content-box",Ie.style.width=Jt-2+"px",Ie.style.height=Jt-2+"px",Ie.style.padding="1px",Ie.style.marginRight="2px",Ie.style.marginBottom="2px",Ie.style.borderWidth="2px",Ie.style.borderStyle="solid",Ie.style.borderRadius=(Jt+2)/2+"px",Ie.style.borderColor=Bt===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Ie.addEventListener("click",function(){te.setCurrentColor(Bt,Ie)});var Ue=document.createElement("div");return Ue.style.display="inline-block",Ue.style.width=Jt-2+"px",Ue.style.height=Jt-2+"px",Ue.style.backgroundColor=Bt,Ue.style.borderRadius=Jt/2+"px",Bt==="transparent"&&(Ue.style.fill=this.uiStyleSettings.toolboxAccentColor,Ue.innerHTML=` + `))},Qt.prototype.show=function(Wt){var Bt;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Wt,this.uiContainer.className=this.toolboxStyleClass.name+" "+((Bt=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&Bt!==void 0?Bt:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Qt.prototype.setPanelButtons=function(Wt){var Bt,te,me=this;this.panels=Wt,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((Bt=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&Bt!==void 0?Bt:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((te=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&te!==void 0?te:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Jt){var Ie;Jt.uiStyleSettings=me.uiStyleSettings;var Ue=document.createElement("div");Ue.className=me.toolboxButtonStyleClass.name+" "+((Ie=me.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ie!==void 0?Ie:me.toolboxButtonStyleColorsClass.name),Ue.innerHTML=Jt.icon,Ue.title=Jt.title,Ue.addEventListener("click",function(){me.panelButtonClick(Jt)}),me.panelButtons.push(Ue),me.buttonRow.appendChild(Ue)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Qt.prototype.panelButtonClick=function(Wt){var Bt=this,te=-1;if(Wt!==this.activePanel){te=this.panels.indexOf(Wt),this.panelRow.innerHTML="";var me=Wt.getUi();me.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(me),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=Wt}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){Bt.displayMode==="inline"?Bt.panelRow.style.display="none":Bt.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Jt,Ie){var Ue,Je;Jt.className=Bt.toolboxButtonStyleClass.name+" "+(Ie===te?""+((Ue=Bt.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ue!==void 0?Ue:Bt.toolboxActiveButtonStyleColorsClass.name):""+((Je=Bt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Je!==void 0?Je:Bt.toolboxButtonStyleColorsClass.name))})},Qt}(),ut=function(Qt,Wt){this.title=Qt,this.icon=Wt},wt=function(Qt){function Wt(Bt,te,me,Jt){var Ie=Qt.call(this,Bt,Jt||'')||this;return Ie.colors=[],Ie.addTransparent=!1,Ie.colorBoxes=[],Ie.colors=te,Ie.currentColor=me,Ie.setCurrentColor=Ie.setCurrentColor.bind(Ie),Ie.getColorBox=Ie.getColorBox.bind(Ie),Ie}return pt(Wt,Qt),Wt.prototype.getUi=function(){var Bt=this,te=document.createElement("div");return te.style.overflow="hidden",te.style.whiteSpace="nowrap",this.colors.forEach(function(me){var Jt=Bt.getColorBox(me);te.appendChild(Jt),Bt.colorBoxes.push(Jt)}),te},Wt.prototype.getColorBox=function(Bt){var te=this,me=this.uiStyleSettings.toolbarHeight/4,Jt=this.uiStyleSettings.toolbarHeight-me,Ie=document.createElement("div");Ie.style.display="inline-block",Ie.style.boxSizing="content-box",Ie.style.width=Jt-2+"px",Ie.style.height=Jt-2+"px",Ie.style.padding="1px",Ie.style.marginRight="2px",Ie.style.marginBottom="2px",Ie.style.borderWidth="2px",Ie.style.borderStyle="solid",Ie.style.borderRadius=(Jt+2)/2+"px",Ie.style.borderColor=Bt===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Ie.addEventListener("click",function(){te.setCurrentColor(Bt,Ie)});var Ue=document.createElement("div");return Ue.style.display="inline-block",Ue.style.width=Jt-2+"px",Ue.style.height=Jt-2+"px",Ue.style.backgroundColor=Bt,Ue.style.borderRadius=Jt/2+"px",Bt==="transparent"&&(Ue.style.fill=this.uiStyleSettings.toolboxAccentColor,Ue.innerHTML=` - `),Ie.appendChild(Ue),Ie},Wt.prototype.setCurrentColor=function(Bt,te){var ge=this;this.currentColor=Bt,this.colorBoxes.forEach(function(Jt){Jt.style.borderColor=Jt===te?ge.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(Bt)},Wt}(ut),Et=function(){function Qt(Wt,Bt,te){this._state="new",this._isSelected=!1,this._container=Wt,this._overlayContainer=Bt,this.globalSettings=te,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Qt.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Qt.prototype.ownsTarget=function(Wt){return!1},Object.defineProperty(Qt.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Qt.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Qt.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Qt.prototype.pointerDown=function(Wt,Bt){},Qt.prototype.dblClick=function(Wt,Bt){},Qt.prototype.manipulate=function(Wt){},Qt.prototype.pointerUp=function(Wt){this.stateChanged()},Qt.prototype.dispose=function(){},Qt.prototype.addMarkerVisualToContainer=function(Wt){this.container.childNodes.length>0?this.container.insertBefore(Wt,this.container.childNodes[0]):this.container.appendChild(Wt)},Qt.prototype.getState=function(){return{typeName:Qt.typeName,state:this.state,notes:this.notes}},Qt.prototype.restoreState=function(Wt){this._state=Wt.state,this.notes=Wt.notes},Qt.prototype.scale=function(Wt,Bt){},Qt.prototype.colorChanged=function(Wt){this.onColorChanged&&this.onColorChanged(Wt),this.stateChanged()},Qt.prototype.fillColorChanged=function(Wt){this.onFillColorChanged&&this.onFillColorChanged(Wt),this.stateChanged()},Qt.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Wt=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Wt.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Wt)&&this.onStateChanged(this)}},Qt.typeName="MarkerBase",Qt}(),At=function(){function Qt(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Qt.prototype.findGripByVisual=function(Wt){return this.topLeft.ownsTarget(Wt)?this.topLeft:this.topCenter.ownsTarget(Wt)?this.topCenter:this.topRight.ownsTarget(Wt)?this.topRight:this.centerLeft.ownsTarget(Wt)?this.centerLeft:this.centerRight.ownsTarget(Wt)?this.centerRight:this.bottomLeft.ownsTarget(Wt)?this.bottomLeft:this.bottomCenter.ownsTarget(Wt)?this.bottomCenter:this.bottomRight.ownsTarget(Wt)?this.bottomRight:void 0},Qt}(),_t=function(){function Qt(){this.GRIP_SIZE=10,this.visual=dt.createGroup(),this.visual.appendChild(dt.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(dt.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Qt.prototype.ownsTarget=function(Wt){return Wt===this.visual||Wt===this.visual.childNodes[0]||Wt===this.visual.childNodes[1]},Qt}(),Mt=function(){function Qt(){}return Qt.toITransformMatrix=function(Wt){return{a:Wt.a,b:Wt.b,c:Wt.c,d:Wt.d,e:Wt.e,f:Wt.f}},Qt.toSVGMatrix=function(Wt,Bt){return Wt.a=Bt.a,Wt.b=Bt.b,Wt.c=Bt.c,Wt.d=Bt.d,Wt.e=Bt.e,Wt.f=Bt.f,Wt},Qt}(),jt=function(Qt){function Wt(Bt,te,ge){var Jt=Qt.call(this,Bt,te,ge)||this;return Jt.left=0,Jt.top=0,Jt.width=0,Jt.height=0,Jt.defaultSize={x:50,y:20},Jt.offsetX=0,Jt.offsetY=0,Jt.rotationAngle=0,Jt.CB_DISTANCE=10,Jt._suppressMarkerCreateEvent=!1,Jt.container.transform.baseVal.appendItem(dt.createTransform()),Jt.setupControlBox(),Jt}return pt(Wt,Qt),Object.defineProperty(Wt.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Wt.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Wt.prototype,"visual",{get:function(){return this._visual},set:function(Bt){this._visual=Bt;var te=dt.createTransform();this._visual.transform.baseVal.appendItem(te)},enumerable:!1,configurable:!0}),Wt.prototype.ownsTarget=function(Bt){return!!Qt.prototype.ownsTarget.call(this,Bt)||!!(this.controlGrips.findGripByVisual(Bt)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Bt))},Wt.prototype.pointerDown=function(Bt,te){Qt.prototype.pointerDown.call(this,Bt,te),this.state==="new"&&(this.left=Bt.x,this.top=Bt.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ge=this.unrotatePoint(Bt);if(this.manipulationStartX=ge.x,this.manipulationStartY=ge.y,this.offsetX=ge.x-this.left,this.offsetY=ge.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(te),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(te)){this.activeGrip=this.rotatorGrip;var Jt=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Jt.x-this.width/2,this.top=Jt.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Ie=this.container.transform.baseVal.getItem(0);Ie.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Ie,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Wt.prototype.pointerUp=function(Bt){var te=this.state;Qt.prototype.pointerUp.call(this,Bt),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(Bt),this._state="select",te==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Wt.prototype.moveVisual=function(Bt){this.visual.style.transform="translate("+Bt.x+"px, "+Bt.y+"px)"},Wt.prototype.manipulate=function(Bt){var te=this.unrotatePoint(Bt);this.state==="creating"?this.resize(Bt):this.state==="move"?(this.left=this.manipulationStartLeft+(te.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(te.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(te):this.state==="rotate"&&this.rotate(Bt)},Wt.prototype.resize=function(Bt){var te=this.manipulationStartLeft,ge=this.manipulationStartWidth,Jt=this.manipulationStartTop,Ie=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:te=this.manipulationStartLeft+Bt.x-this.manipulationStartX,ge=this.manipulationStartWidth+this.manipulationStartLeft-te;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ge=this.manipulationStartWidth+Bt.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Jt=this.manipulationStartTop+Bt.y-this.manipulationStartY,Ie=this.manipulationStartHeight+this.manipulationStartTop-Jt;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Ie=this.manipulationStartHeight+Bt.y-this.manipulationStartY}ge>=0?(this.left=te,this.width=ge):(this.left=te+ge,this.width=-ge),Ie>=0?(this.top=Jt,this.height=Ie):(this.top=Jt+Ie,this.height=-Ie),this.setSize()},Wt.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Wt.prototype.rotate=function(Bt){if(Math.abs(Bt.x-this.centerX)>.1){var te=Math.sign(Bt.x-this.centerX);this.rotationAngle=180*Math.atan((Bt.y-this.centerY)/(Bt.x-this.centerX))/Math.PI+90*te,this.applyRotation()}},Wt.prototype.applyRotation=function(){var Bt=this.container.transform.baseVal.getItem(0);Bt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Bt,0)},Wt.prototype.rotatePoint=function(Bt){if(this.rotationAngle===0)return Bt;var te=this.container.getCTM(),ge=dt.createPoint(Bt.x,Bt.y);return{x:(ge=ge.matrixTransform(te)).x,y:ge.y}},Wt.prototype.unrotatePoint=function(Bt){if(this.rotationAngle===0)return Bt;var te=this.container.getCTM();te=te.inverse();var ge=dt.createPoint(Bt.x,Bt.y);return{x:(ge=ge.matrixTransform(te)).x,y:ge.y}},Wt.prototype.select=function(){Qt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Wt.prototype.deselect=function(){Qt.prototype.deselect.call(this),this.controlBox.style.display="none"},Wt.prototype.setupControlBox=function(){this.controlBox=dt.createGroup();var Bt=dt.createTransform();Bt.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(Bt),this.container.appendChild(this.controlBox),this.controlRect=dt.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=dt.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new At,this.addControlGrips(),this.controlBox.style.display="none"},Wt.prototype.adjustControlBox=function(){var Bt=this.controlBox.transform.baseVal.getItem(0);Bt.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(Bt,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},Wt.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},Wt.prototype.createGrip=function(){var Bt=new _t;return Bt.visual.transform.baseVal.appendItem(dt.createTransform()),this.controlBox.appendChild(Bt.visual),Bt},Wt.prototype.positionGrips=function(){var Bt=this.controlGrips.topLeft.GRIP_SIZE,te=-Bt/2,ge=te,Jt=(this.width+this.CB_DISTANCE)/2-Bt/2,Ie=(this.height+this.CB_DISTANCE)/2-Bt/2,Ue=this.height+this.CB_DISTANCE-Bt/2,Je=this.width+this.CB_DISTANCE-Bt/2;this.positionGrip(this.controlGrips.topLeft.visual,te,ge),this.positionGrip(this.controlGrips.topCenter.visual,Jt,ge),this.positionGrip(this.controlGrips.topRight.visual,Je,ge),this.positionGrip(this.controlGrips.centerLeft.visual,te,Ie),this.positionGrip(this.controlGrips.centerRight.visual,Je,Ie),this.positionGrip(this.controlGrips.bottomLeft.visual,te,Ue),this.positionGrip(this.controlGrips.bottomCenter.visual,Jt,Ue),this.positionGrip(this.controlGrips.bottomRight.visual,Je,Ue),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Jt,ge-3*this.CB_DISTANCE)},Wt.prototype.positionGrip=function(Bt,te,ge){var Jt=Bt.transform.baseVal.getItem(0);Jt.setTranslate(te,ge),Bt.transform.baseVal.replaceItem(Jt,0)},Wt.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Wt.prototype.showControlBox=function(){this.controlBox.style.display=""},Wt.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Mt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Mt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Qt.prototype.getState.call(this))},Wt.prototype.restoreState=function(Bt){Qt.prototype.restoreState.call(this,Bt);var te=Bt;this.left=te.left,this.top=te.top,this.width=te.width,this.height=te.height,this.rotationAngle=te.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Mt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,te.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Mt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,te.containerTransformMatrix))},Wt.prototype.scale=function(Bt,te){Qt.prototype.scale.call(this,Bt,te);var ge=this.rotatePoint({x:this.left,y:this.top}),Jt=this.unrotatePoint({x:ge.x*Bt,y:ge.y*te});this.left=Jt.x,this.top=Jt.y,this.width=this.width*Bt,this.height=this.height*te,this.adjustControlBox()},Wt}(Et),Lt=function(Qt){function Wt(Bt,te,ge){var Jt=Qt.call(this,Bt,te,ge)||this;return Jt.fillColor="transparent",Jt.strokeColor="transparent",Jt.strokeWidth=0,Jt.strokeDasharray="",Jt.opacity=1,Jt.setStrokeColor=Jt.setStrokeColor.bind(Jt),Jt.setFillColor=Jt.setFillColor.bind(Jt),Jt.setStrokeWidth=Jt.setStrokeWidth.bind(Jt),Jt.setStrokeDasharray=Jt.setStrokeDasharray.bind(Jt),Jt.createVisual=Jt.createVisual.bind(Jt),Jt}return pt(Wt,Qt),Wt.prototype.ownsTarget=function(Bt){return!(!Qt.prototype.ownsTarget.call(this,Bt)&&Bt!==this.visual)},Wt.prototype.createVisual=function(){this.visual=dt.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},Wt.prototype.pointerDown=function(Bt,te){Qt.prototype.pointerDown.call(this,Bt,te),this.state==="new"&&(this.createVisual(),this.moveVisual(Bt),this._state="creating")},Wt.prototype.manipulate=function(Bt){Qt.prototype.manipulate.call(this,Bt)},Wt.prototype.resize=function(Bt){Qt.prototype.resize.call(this,Bt),this.setSize()},Wt.prototype.setSize=function(){Qt.prototype.setSize.call(this),dt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Wt.prototype.pointerUp=function(Bt){Qt.prototype.pointerUp.call(this,Bt),this.setSize()},Wt.prototype.setStrokeColor=function(Bt){this.strokeColor=Bt,this.visual&&dt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Bt),this.stateChanged()},Wt.prototype.setFillColor=function(Bt){this.fillColor=Bt,this.visual&&dt.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Wt.prototype.setStrokeWidth=function(Bt){this.strokeWidth=Bt,this.visual&&dt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Wt.prototype.setStrokeDasharray=function(Bt){this.strokeDasharray=Bt,this.visual&&dt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Wt.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Qt.prototype.getState.call(this))},Wt.prototype.restoreState=function(Bt){var te=Bt;this.fillColor=te.fillColor,this.strokeColor=te.strokeColor,this.strokeWidth=te.strokeWidth,this.strokeDasharray=te.strokeDasharray,this.opacity=te.opacity,this.createVisual(),Qt.prototype.restoreState.call(this,Bt),this.setSize()},Wt.prototype.scale=function(Bt,te){Qt.prototype.scale.call(this,Bt,te),this.setSize()},Wt.title="Rectangle marker",Wt}(jt),It=function(Qt){function Wt(Bt,te,ge,Jt){var Ie=Qt.call(this,Bt,Jt||'')||this;return Ie.widths=[],Ie.widthBoxes=[],Ie.widths=te,Ie.currentWidth=ge,Ie.setCurrentWidth=Ie.setCurrentWidth.bind(Ie),Ie}return pt(Wt,Qt),Wt.prototype.getUi=function(){var Bt=this,te=document.createElement("div");return te.style.display="flex",te.style.overflow="hidden",te.style.flexGrow="2",this.widths.forEach(function(ge){var Jt=document.createElement("div");Jt.style.display="flex",Jt.style.flexGrow="2",Jt.style.alignItems="center",Jt.style.justifyContent="space-between",Jt.style.padding="5px",Jt.style.borderWidth="2px",Jt.style.borderStyle="solid",Jt.style.borderColor=ge===Bt.currentWidth?Bt.uiStyleSettings.toolboxAccentColor:"transparent",Jt.addEventListener("click",function(){Bt.setCurrentWidth(ge,Jt)}),te.appendChild(Jt);var Ie=document.createElement("div");Ie.innerText=ge.toString(),Ie.style.marginRight="5px",Jt.appendChild(Ie);var Ue=document.createElement("div");Ue.style.minHeight="20px",Ue.style.flexGrow="2",Ue.style.display="flex",Ue.style.alignItems="center";var Je=document.createElement("hr");Je.style.minWidth="20px",Je.style.border="0px",Je.style.borderTop=ge+"px solid "+Bt.uiStyleSettings.toolboxColor,Je.style.flexGrow="2",Ue.appendChild(Je),Jt.appendChild(Ue),Bt.widthBoxes.push(Jt)}),te},Wt.prototype.setCurrentWidth=function(Bt,te){var ge=this;this.currentWidth=Bt,this.widthBoxes.forEach(function(Jt){Jt.style.borderColor=Jt===te?ge.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Wt}(ut),Ut=function(Qt){function Wt(Bt,te,ge,Jt){var Ie=Qt.call(this,Bt,Jt||'')||this;return Ie.styles=[],Ie.styleBoxes=[],Ie.styles=te,Ie.currentStyle=ge,Ie.setCurrentStyle=Ie.setCurrentStyle.bind(Ie),Ie}return pt(Wt,Qt),Wt.prototype.getUi=function(){var Bt=this,te=document.createElement("div");return te.style.display="flex",te.style.overflow="hidden",te.style.flexGrow="2",this.styles.forEach(function(ge){var Jt=document.createElement("div");Jt.style.display="flex",Jt.style.alignItems="center",Jt.style.justifyContent="space-between",Jt.style.padding="5px",Jt.style.borderWidth="2px",Jt.style.borderStyle="solid",Jt.style.overflow="hidden",Jt.style.maxWidth=100/Bt.styles.length-5+"%",Jt.style.borderColor=ge===Bt.currentStyle?Bt.uiStyleSettings.toolboxAccentColor:"transparent",Jt.addEventListener("click",function(){Bt.setCurrentStyle(ge,Jt)}),te.appendChild(Jt);var Ie=document.createElement("div");Ie.style.minHeight="20px",Ie.style.flexGrow="2",Ie.style.overflow="hidden";var Ue=` - - `;Ie.innerHTML=Ue,Jt.appendChild(Ie),Bt.styleBoxes.push(Jt)}),te},Wt.prototype.setCurrentStyle=function(Bt,te){var ge=this;this.currentStyle=Bt,this.styleBoxes.forEach(function(Jt){Jt.style.borderColor=Jt===te?ge.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Wt}(ut),Xt=function(Qt){function Wt(Bt,te,ge){var Jt=Qt.call(this,Bt,te,ge)||this;return Jt.strokeColor=ge.defaultColor,Jt.strokeWidth=ge.defaultStrokeWidth,Jt.strokeDasharray=ge.defaultStrokeDasharray,Jt.strokePanel=new wt("Line color",ge.defaultColorSet,ge.defaultColor),Jt.strokePanel.onColorChanged=Jt.setStrokeColor,Jt.strokeWidthPanel=new It("Line width",ge.defaultStrokeWidths,ge.defaultStrokeWidth),Jt.strokeWidthPanel.onWidthChanged=Jt.setStrokeWidth,Jt.strokeStylePanel=new Ut("Line style",ge.defaultStrokeDasharrays,ge.defaultStrokeDasharray),Jt.strokeStylePanel.onStyleChanged=Jt.setStrokeDasharray,Jt}return pt(Wt,Qt),Object.defineProperty(Wt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Wt.prototype.getState=function(){var Bt=Qt.prototype.getState.call(this);return Bt.typeName=Wt.typeName,Bt},Wt.typeName="FrameMarker",Wt.title="Frame marker",Wt.icon='',Wt}(Lt),Gt=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},Yt=function(Qt){function Wt(Bt,te,ge){var Jt=Qt.call(this,Bt,te,ge)||this;return Jt.x1=0,Jt.y1=0,Jt.x2=0,Jt.y2=0,Jt.defaultLength=50,Jt.manipulationStartX=0,Jt.manipulationStartY=0,Jt.manipulationStartX1=0,Jt.manipulationStartY1=0,Jt.manipulationStartX2=0,Jt.manipulationStartY2=0,Jt.setupControlBox(),Jt}return pt(Wt,Qt),Wt.prototype.ownsTarget=function(Bt){return!!Qt.prototype.ownsTarget.call(this,Bt)||!(!this.grip1.ownsTarget(Bt)&&!this.grip2.ownsTarget(Bt))},Wt.prototype.pointerDown=function(Bt,te){Qt.prototype.pointerDown.call(this,Bt,te),this.manipulationStartX=Bt.x,this.manipulationStartY=Bt.y,this.state==="new"&&(this.x1=Bt.x,this.y1=Bt.y,this.x2=Bt.x,this.y2=Bt.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(te)?this.activeGrip=this.grip1:this.grip2.ownsTarget(te)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Wt.prototype.pointerUp=function(Bt){var te=this.state;Qt.prototype.pointerUp.call(this,Bt),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(Bt),this._state="select",te==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Wt.prototype.adjustVisual=function(){},Wt.prototype.manipulate=function(Bt){this.state==="creating"?this.resize(Bt):this.state==="move"?(this.x1=this.manipulationStartX1+Bt.x-this.manipulationStartX,this.y1=this.manipulationStartY1+Bt.y-this.manipulationStartY,this.x2=this.manipulationStartX2+Bt.x-this.manipulationStartX,this.y2=this.manipulationStartY2+Bt.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(Bt)},Wt.prototype.resize=function(Bt){switch(this.activeGrip){case this.grip1:this.x1=Bt.x,this.y1=Bt.y;break;case this.grip2:case void 0:this.x2=Bt.x,this.y2=Bt.y}this.adjustVisual(),this.adjustControlBox()},Wt.prototype.select=function(){Qt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Wt.prototype.deselect=function(){Qt.prototype.deselect.call(this),this.controlBox.style.display="none"},Wt.prototype.setupControlBox=function(){this.controlBox=dt.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Wt.prototype.adjustControlBox=function(){this.positionGrips()},Wt.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Wt.prototype.createGrip=function(){var Bt=new _t;return Bt.visual.transform.baseVal.appendItem(dt.createTransform()),this.controlBox.appendChild(Bt.visual),Bt},Wt.prototype.positionGrips=function(){var Bt=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-Bt/2,this.y1-Bt/2),this.positionGrip(this.grip2.visual,this.x2-Bt/2,this.y2-Bt/2)},Wt.prototype.positionGrip=function(Bt,te,ge){var Jt=Bt.transform.baseVal.getItem(0);Jt.setTranslate(te,ge),Bt.transform.baseVal.replaceItem(Jt,0)},Wt.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Qt.prototype.getState.call(this))},Wt.prototype.restoreState=function(Bt){Qt.prototype.restoreState.call(this,Bt);var te=Bt;this.x1=te.x1,this.y1=te.y1,this.x2=te.x2,this.y2=te.y2},Wt.prototype.scale=function(Bt,te){Qt.prototype.scale.call(this,Bt,te),this.x1=this.x1*Bt,this.y1=this.y1*te,this.x2=this.x2*Bt,this.y2=this.y2*te,this.adjustVisual(),this.adjustControlBox()},Wt}(Et),Ht=function(Qt){function Wt(Bt,te,ge){var Jt=Qt.call(this,Bt,te,ge)||this;return Jt.strokeColor="transparent",Jt.strokeWidth=0,Jt.strokeDasharray="",Jt.setStrokeColor=Jt.setStrokeColor.bind(Jt),Jt.setStrokeWidth=Jt.setStrokeWidth.bind(Jt),Jt.setStrokeDasharray=Jt.setStrokeDasharray.bind(Jt),Jt.strokeColor=ge.defaultColor,Jt.strokeWidth=ge.defaultStrokeWidth,Jt.strokeDasharray=ge.defaultStrokeDasharray,Jt.strokePanel=new wt("Line color",ge.defaultColorSet,ge.defaultColor),Jt.strokePanel.onColorChanged=Jt.setStrokeColor,Jt.strokeWidthPanel=new It("Line width",ge.defaultStrokeWidths,ge.defaultStrokeWidth),Jt.strokeWidthPanel.onWidthChanged=Jt.setStrokeWidth,Jt.strokeStylePanel=new Ut("Line style",ge.defaultStrokeDasharrays,ge.defaultStrokeDasharray),Jt.strokeStylePanel.onStyleChanged=Jt.setStrokeDasharray,Jt}return pt(Wt,Qt),Wt.prototype.ownsTarget=function(Bt){return!(!Qt.prototype.ownsTarget.call(this,Bt)&&Bt!==this.visual&&Bt!==this.selectorLine&&Bt!==this.visibleLine)},Wt.prototype.createVisual=function(){this.visual=dt.createGroup(),this.selectorLine=dt.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=dt.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},Wt.prototype.pointerDown=function(Bt,te){Qt.prototype.pointerDown.call(this,Bt,te),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Wt.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),dt.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),dt.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),dt.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Wt.prototype.setStrokeColor=function(Bt){this.strokeColor=Bt,this.adjustVisual(),this.colorChanged(Bt)},Wt.prototype.setStrokeWidth=function(Bt){this.strokeWidth=Bt,this.adjustVisual()},Wt.prototype.setStrokeDasharray=function(Bt){this.strokeDasharray=Bt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Wt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Wt.prototype.getState=function(){var Bt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Qt.prototype.getState.call(this));return Bt.typeName=Wt.typeName,Bt},Wt.prototype.restoreState=function(Bt){Qt.prototype.restoreState.call(this,Bt);var te=Bt;this.strokeColor=te.strokeColor,this.strokeWidth=te.strokeWidth,this.strokeDasharray=te.strokeDasharray,this.createVisual(),this.adjustVisual()},Wt.typeName="LineMarker",Wt.title="Line marker",Wt.icon='',Wt}(Yt),ne=function(Qt){function Wt(Bt,te,ge,Jt){var Ie=Qt.call(this,Bt,Jt||'')||this;return Ie.fonts=[],Ie.fontBoxes=[],Ie.fonts=te,Ie.currentFont=ge,Ie.setCurrentFont=Ie.setCurrentFont.bind(Ie),Ie}return pt(Wt,Qt),Wt.prototype.getUi=function(){var Bt=this,te=document.createElement("div");return te.style.overflow="hidden",te.style.flexGrow="2",this.fonts.forEach(function(ge){var Jt=document.createElement("div");Jt.style.display="inline-block",Jt.style.alignItems="center",Jt.style.justifyContent="space-between",Jt.style.padding="5px",Jt.style.borderWidth="2px",Jt.style.borderStyle="solid",Jt.style.overflow="hidden",Jt.style.maxWidth=100/Bt.fonts.length-5+"%",Jt.style.borderColor=ge===Bt.currentFont?Bt.uiStyleSettings.toolboxAccentColor:"transparent",Jt.addEventListener("click",function(){Bt.setCurrentFont(ge,Jt)}),te.appendChild(Jt);var Ie=document.createElement("div");Ie.style.display="flex",Ie.style.minHeight="20px",Ie.style.flexGrow="2",Ie.style.fontFamily=ge,Ie.style.overflow="hidden";var Ue=document.createElement("div");Ue.style.whiteSpace="nowrap",Ue.style.overflow="hidden",Ue.style.textOverflow="ellipsis",Ue.innerHTML="The quick brown fox jumps over the lazy dog",Ie.appendChild(Ue),Jt.appendChild(Ie),Bt.fontBoxes.push(Jt)}),te},Wt.prototype.setCurrentFont=function(Bt,te){var ge=this;this.currentFont=Bt,this.fontBoxes.forEach(function(Jt){Jt.style.borderColor=Jt===te?ge.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Wt}(ut),ae=function(Qt){function Wt(Bt,te,ge){var Jt=Qt.call(this,Bt,te,ge)||this;return Jt.color="transparent",Jt.padding=5,Jt.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Jt.text=Jt.DEFAULT_TEXT,Jt.isMoved=!1,Jt.color=ge.defaultColor,Jt.fontFamily=ge.defaultFontFamily,Jt.defaultSize={x:100,y:30},Jt.setColor=Jt.setColor.bind(Jt),Jt.setFont=Jt.setFont.bind(Jt),Jt.renderText=Jt.renderText.bind(Jt),Jt.sizeText=Jt.sizeText.bind(Jt),Jt.textEditDivClicked=Jt.textEditDivClicked.bind(Jt),Jt.showTextEditor=Jt.showTextEditor.bind(Jt),Jt.setSize=Jt.setSize.bind(Jt),Jt.positionTextEditor=Jt.positionTextEditor.bind(Jt),Jt.colorPanel=new wt("Color",ge.defaultColorSet,ge.defaultColor),Jt.colorPanel.onColorChanged=Jt.setColor,Jt.fontFamilyPanel=new ne("Font",ge.defaultFontFamilies,ge.defaultFontFamily),Jt.fontFamilyPanel.onFontChanged=Jt.setFont,Jt}return pt(Wt,Qt),Wt.prototype.ownsTarget=function(Bt){if(Qt.prototype.ownsTarget.call(this,Bt)||Bt===this.visual||Bt===this.textElement||Bt===this.bgRectangle)return!0;var te=!1;return this.textElement.childNodes.forEach(function(ge){ge===Bt&&(te=!0)}),te},Wt.prototype.createVisual=function(){this.visual=dt.createGroup(),this.bgRectangle=dt.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=dt.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(dt.createTransform()),this.textElement.transform.baseVal.appendItem(dt.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Wt.prototype.pointerDown=function(Bt,te){Qt.prototype.pointerDown.call(this,Bt,te),this.isMoved=!1,this.pointerDownPoint=Bt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Bt),this._state="creating")},Wt.prototype.renderText=function(){var Bt=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(te){Bt.textElement.appendChild(dt.createTSpan(te.trim()===""?" ":te.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Wt.prototype.getTextScale=function(){var Bt=this.textElement.getBBox(),te=1;if(Bt.width>0&&Bt.height>0){var ge=(1*this.width-this.width*this.padding*2/100)/Bt.width,Jt=(1*this.height-this.height*this.padding*2/100)/Bt.height;te=Math.min(ge,Jt)}return te},Wt.prototype.getTextPosition=function(Bt){var te=this.textElement.getBBox(),ge=0,Jt=0;return te.width>0&&te.height>0&&(ge=(this.width-te.width*Bt)/2,Jt=this.height/2-te.height*Bt/2),{x:ge,y:Jt}},Wt.prototype.sizeText=function(){var Bt=this.textElement.getBBox(),te=this.getTextScale(),ge=this.getTextPosition(te);ge.y-=Bt.y*te,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ge.x+"px, "+ge.y+"px) scale("+te+", "+te+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ge.x,ge.y),this.textElement.transform.baseVal.getItem(1).setScale(te,te))},Wt.prototype.manipulate=function(Bt){Qt.prototype.manipulate.call(this,Bt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Bt.x-this.pointerDownPoint.x)>5||Math.abs(Bt.y-this.pointerDownPoint.y)>5)},Wt.prototype.resize=function(Bt){Qt.prototype.resize.call(this,Bt),this.isMoved=!0,this.setSize(),this.sizeText()},Wt.prototype.setSize=function(){Qt.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(dt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),dt.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Wt.prototype.pointerUp=function(Bt){var te=this.state;te==="creating"&&(this._suppressMarkerCreateEvent=!0),Qt.prototype.pointerUp.call(this,Bt),this.setSize(),(te==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Wt.prototype.showTextEditor=function(){var Bt=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(te){te.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var te=Number.parseFloat(Bt.textEditor.style.fontSize);Bt.textEditor.clientWidth>=Number.parseInt(Bt.textEditor.style.maxWidth)&&te>.9;)te-=.1,Bt.textEditor.style.fontSize=Math.max(te,.9)+"em"}),this.textEditor.addEventListener("keyup",function(te){te.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(te){if(te.clipboardData){var ge=te.clipboardData.getData("text"),Jt=window.getSelection();if(!Jt.rangeCount)return!1;Jt.deleteFromDocument(),Jt.getRangeAt(0).insertNode(document.createTextNode(ge)),te.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){Bt.textEditDivClicked(Bt.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},Wt.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var Bt=this.getTextScale(),te=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ge=this.textElement.getBBox(),Jt={x:ge.width*Bt,y:ge.height*Bt};te.x-=Jt.x/2,te.y-=Jt.y/2,this.textEditor.style.top=te.y+"px",this.textEditor.style.left=te.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-te.x+"px",this.textEditor.style.fontSize=Math.max(16*Bt,12)+"px",this.textElement.style.display="none"}},Wt.prototype.textEditDivClicked=function(Bt){this.text=Bt.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Wt.prototype.select=function(){Qt.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Wt.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Qt.prototype.deselect.call(this)},Wt.prototype.dblClick=function(Bt,te){Qt.prototype.dblClick.call(this,Bt,te),this.showTextEditor()},Wt.prototype.setColor=function(Bt){this.textElement&&dt.setAttributes(this.textElement,[["fill",Bt]]),this.color=Bt,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(Bt)},Wt.prototype.setFont=function(Bt){this.textElement&&dt.setAttributes(this.textElement,[["font-family",Bt]]),this.fontFamily=Bt,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Wt.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Wt.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Wt.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Wt.prototype.getState=function(){var Bt=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Qt.prototype.getState.call(this));return Bt.typeName=Wt.typeName,Bt},Wt.prototype.restoreState=function(Bt){var te=Bt;this.color=te.color,this.fontFamily=te.fontFamily,this.padding=te.padding,this.text=te.text,this.createVisual(),Qt.prototype.restoreState.call(this,Bt),this.setSize()},Wt.prototype.scale=function(Bt,te){Qt.prototype.scale.call(this,Bt,te),this.setSize(),this.sizeText(),this.positionTextEditor()},Wt.typeName="TextMarker",Wt.title="Text marker",Wt.icon='',Wt}(jt),ve=function(Qt){function Wt(Bt,te,ge){var Jt=Qt.call(this,Bt,te,ge)||this;return Jt.color="transparent",Jt.lineWidth=3,Jt.drawing=!1,Jt.pixelRatio=1,Jt.color=ge.defaultColor,Jt.lineWidth=ge.defaultStrokeWidth,Jt.pixelRatio=ge.freehandPixelRatio,Jt.setColor=Jt.setColor.bind(Jt),Jt.addCanvas=Jt.addCanvas.bind(Jt),Jt.finishCreation=Jt.finishCreation.bind(Jt),Jt.setLineWidth=Jt.setLineWidth.bind(Jt),Jt.colorPanel=new wt("Color",ge.defaultColorSet,ge.defaultColor),Jt.colorPanel.onColorChanged=Jt.setColor,Jt.lineWidthPanel=new It("Line width",ge.defaultStrokeWidths,ge.defaultStrokeWidth),Jt.lineWidthPanel.onWidthChanged=Jt.setLineWidth,Jt}return pt(Wt,Qt),Wt.prototype.ownsTarget=function(Bt){return!(!Qt.prototype.ownsTarget.call(this,Bt)&&Bt!==this.visual&&Bt!==this.drawingImage)},Wt.prototype.createVisual=function(){this.visual=dt.createGroup(),this.drawingImage=dt.createImage(),this.visual.appendChild(this.drawingImage);var Bt=dt.createTransform();this.visual.transform.baseVal.appendItem(Bt),this.addMarkerVisualToContainer(this.visual)},Wt.prototype.pointerDown=function(Bt,te){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(Bt.x,Bt.y),this.drawing=!0):Qt.prototype.pointerDown.call(this,Bt,te)},Wt.prototype.manipulate=function(Bt){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(Bt.x,Bt.y),this.canvasContext.stroke()):Qt.prototype.manipulate.call(this,Bt)},Wt.prototype.resize=function(Bt){Qt.prototype.resize.call(this,Bt),dt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),dt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Wt.prototype.pointerUp=function(Bt){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Qt.prototype.pointerUp.call(this,Bt)},Wt.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},Wt.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Qt.prototype.select.call(this)},Wt.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Qt.prototype.deselect.call(this)},Wt.prototype.finishCreation=function(){for(var Bt=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),te=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ge=te[0],Jt=te[1],Ie=te[2],Ue=te[3],Je=!1,Ze=0;Ze0&&(Je=!0,ZeUe&&(Ue=Ze),nn>Ie&&(Ie=nn));if(Je){this.left=ge/this.pixelRatio,this.top=Jt/this.pixelRatio,this.width=(Ie-ge)/this.pixelRatio,this.height=(Ue-Jt)/this.pixelRatio;var fn=document.createElement("canvas");fn.width=Ie-ge,fn.height=Ue-Jt,fn.getContext("2d").putImageData(this.canvasContext.getImageData(ge,Jt,Ie-ge,Ue-Jt),0,0),this.drawingImgUrl=fn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Wt.prototype.setDrawingImage=function(){dt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),dt.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Wt.prototype.setColor=function(Bt){this.color=Bt,this.colorChanged(Bt)},Wt.prototype.setLineWidth=function(Bt){this.lineWidth=Bt},Object.defineProperty(Wt.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Wt.prototype.getState=function(){var Bt=Object.assign({drawingImgUrl:this.drawingImgUrl},Qt.prototype.getState.call(this));return Bt.typeName=Wt.typeName,Bt},Wt.prototype.restoreState=function(Bt){this.createVisual(),Qt.prototype.restoreState.call(this,Bt),this.drawingImgUrl=Bt.drawingImgUrl,this.setDrawingImage()},Wt.prototype.scale=function(Bt,te){Qt.prototype.scale.call(this,Bt,te),this.setDrawingImage()},Wt.typeName="FreehandMarker",Wt.title="Freehand marker",Wt.icon='',Wt}(jt),Kt=function(Qt){function Wt(Bt,te,ge){var Jt=Qt.call(this,Bt,ge||'')||this;return Jt.typeBoxes=[],Jt.currentType=te,Jt.setCurrentType=Jt.setCurrentType.bind(Jt),Jt}return pt(Wt,Qt),Wt.prototype.getUi=function(){var Bt=this,te=document.createElement("div");te.style.display="flex",te.style.overflow="hidden",te.style.flexGrow="2";for(var ge=function(Ue){var Je="both";switch(Ue){case 0:Je="both";break;case 1:Je="start";break;case 2:Je="end";break;case 3:Je="none"}var Ze=document.createElement("div");if(Ze.style.display="flex",Ze.style.flexGrow="2",Ze.style.alignItems="center",Ze.style.justifyContent="space-between",Ze.style.padding="5px",Ze.style.borderWidth="2px",Ze.style.borderStyle="solid",Ze.style.borderColor=Je===Jt.currentType?Jt.uiStyleSettings.toolboxAccentColor:"transparent",Ze.addEventListener("click",function(){Bt.setCurrentType(Je,Ze)}),te.appendChild(Ze),Je==="both"||Je==="start"){var nn=document.createElement("div");nn.style.display="flex",nn.style.alignItems="center",nn.style.minHeight="20px",nn.innerHTML=` + `),Ie.appendChild(Ue),Ie},Wt.prototype.setCurrentColor=function(Bt,te){var me=this;this.currentColor=Bt,this.colorBoxes.forEach(function(Jt){Jt.style.borderColor=Jt===te?me.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(Bt)},Wt}(ut),Et=function(){function Qt(Wt,Bt,te){this._state="new",this._isSelected=!1,this._container=Wt,this._overlayContainer=Bt,this.globalSettings=te,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Qt.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Qt.prototype.ownsTarget=function(Wt){return!1},Object.defineProperty(Qt.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Qt.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Qt.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Qt.prototype.pointerDown=function(Wt,Bt){},Qt.prototype.dblClick=function(Wt,Bt){},Qt.prototype.manipulate=function(Wt){},Qt.prototype.pointerUp=function(Wt){this.stateChanged()},Qt.prototype.dispose=function(){},Qt.prototype.addMarkerVisualToContainer=function(Wt){this.container.childNodes.length>0?this.container.insertBefore(Wt,this.container.childNodes[0]):this.container.appendChild(Wt)},Qt.prototype.getState=function(){return{typeName:Qt.typeName,state:this.state,notes:this.notes}},Qt.prototype.restoreState=function(Wt){this._state=Wt.state,this.notes=Wt.notes},Qt.prototype.scale=function(Wt,Bt){},Qt.prototype.colorChanged=function(Wt){this.onColorChanged&&this.onColorChanged(Wt),this.stateChanged()},Qt.prototype.fillColorChanged=function(Wt){this.onFillColorChanged&&this.onFillColorChanged(Wt),this.stateChanged()},Qt.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Wt=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Wt.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Wt)&&this.onStateChanged(this)}},Qt.typeName="MarkerBase",Qt}(),At=function(){function Qt(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Qt.prototype.findGripByVisual=function(Wt){return this.topLeft.ownsTarget(Wt)?this.topLeft:this.topCenter.ownsTarget(Wt)?this.topCenter:this.topRight.ownsTarget(Wt)?this.topRight:this.centerLeft.ownsTarget(Wt)?this.centerLeft:this.centerRight.ownsTarget(Wt)?this.centerRight:this.bottomLeft.ownsTarget(Wt)?this.bottomLeft:this.bottomCenter.ownsTarget(Wt)?this.bottomCenter:this.bottomRight.ownsTarget(Wt)?this.bottomRight:void 0},Qt}(),_t=function(){function Qt(){this.GRIP_SIZE=10,this.visual=dt.createGroup(),this.visual.appendChild(dt.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(dt.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Qt.prototype.ownsTarget=function(Wt){return Wt===this.visual||Wt===this.visual.childNodes[0]||Wt===this.visual.childNodes[1]},Qt}(),Mt=function(){function Qt(){}return Qt.toITransformMatrix=function(Wt){return{a:Wt.a,b:Wt.b,c:Wt.c,d:Wt.d,e:Wt.e,f:Wt.f}},Qt.toSVGMatrix=function(Wt,Bt){return Wt.a=Bt.a,Wt.b=Bt.b,Wt.c=Bt.c,Wt.d=Bt.d,Wt.e=Bt.e,Wt.f=Bt.f,Wt},Qt}(),jt=function(Qt){function Wt(Bt,te,me){var Jt=Qt.call(this,Bt,te,me)||this;return Jt.left=0,Jt.top=0,Jt.width=0,Jt.height=0,Jt.defaultSize={x:50,y:20},Jt.offsetX=0,Jt.offsetY=0,Jt.rotationAngle=0,Jt.CB_DISTANCE=10,Jt._suppressMarkerCreateEvent=!1,Jt.container.transform.baseVal.appendItem(dt.createTransform()),Jt.setupControlBox(),Jt}return pt(Wt,Qt),Object.defineProperty(Wt.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Wt.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Wt.prototype,"visual",{get:function(){return this._visual},set:function(Bt){this._visual=Bt;var te=dt.createTransform();this._visual.transform.baseVal.appendItem(te)},enumerable:!1,configurable:!0}),Wt.prototype.ownsTarget=function(Bt){return!!Qt.prototype.ownsTarget.call(this,Bt)||!!(this.controlGrips.findGripByVisual(Bt)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Bt))},Wt.prototype.pointerDown=function(Bt,te){Qt.prototype.pointerDown.call(this,Bt,te),this.state==="new"&&(this.left=Bt.x,this.top=Bt.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var me=this.unrotatePoint(Bt);if(this.manipulationStartX=me.x,this.manipulationStartY=me.y,this.offsetX=me.x-this.left,this.offsetY=me.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(te),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(te)){this.activeGrip=this.rotatorGrip;var Jt=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Jt.x-this.width/2,this.top=Jt.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Ie=this.container.transform.baseVal.getItem(0);Ie.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Ie,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Wt.prototype.pointerUp=function(Bt){var te=this.state;Qt.prototype.pointerUp.call(this,Bt),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(Bt),this._state="select",te==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Wt.prototype.moveVisual=function(Bt){this.visual.style.transform="translate("+Bt.x+"px, "+Bt.y+"px)"},Wt.prototype.manipulate=function(Bt){var te=this.unrotatePoint(Bt);this.state==="creating"?this.resize(Bt):this.state==="move"?(this.left=this.manipulationStartLeft+(te.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(te.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(te):this.state==="rotate"&&this.rotate(Bt)},Wt.prototype.resize=function(Bt){var te=this.manipulationStartLeft,me=this.manipulationStartWidth,Jt=this.manipulationStartTop,Ie=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:te=this.manipulationStartLeft+Bt.x-this.manipulationStartX,me=this.manipulationStartWidth+this.manipulationStartLeft-te;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:me=this.manipulationStartWidth+Bt.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Jt=this.manipulationStartTop+Bt.y-this.manipulationStartY,Ie=this.manipulationStartHeight+this.manipulationStartTop-Jt;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Ie=this.manipulationStartHeight+Bt.y-this.manipulationStartY}me>=0?(this.left=te,this.width=me):(this.left=te+me,this.width=-me),Ie>=0?(this.top=Jt,this.height=Ie):(this.top=Jt+Ie,this.height=-Ie),this.setSize()},Wt.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Wt.prototype.rotate=function(Bt){if(Math.abs(Bt.x-this.centerX)>.1){var te=Math.sign(Bt.x-this.centerX);this.rotationAngle=180*Math.atan((Bt.y-this.centerY)/(Bt.x-this.centerX))/Math.PI+90*te,this.applyRotation()}},Wt.prototype.applyRotation=function(){var Bt=this.container.transform.baseVal.getItem(0);Bt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Bt,0)},Wt.prototype.rotatePoint=function(Bt){if(this.rotationAngle===0)return Bt;var te=this.container.getCTM(),me=dt.createPoint(Bt.x,Bt.y);return{x:(me=me.matrixTransform(te)).x,y:me.y}},Wt.prototype.unrotatePoint=function(Bt){if(this.rotationAngle===0)return Bt;var te=this.container.getCTM();te=te.inverse();var me=dt.createPoint(Bt.x,Bt.y);return{x:(me=me.matrixTransform(te)).x,y:me.y}},Wt.prototype.select=function(){Qt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Wt.prototype.deselect=function(){Qt.prototype.deselect.call(this),this.controlBox.style.display="none"},Wt.prototype.setupControlBox=function(){this.controlBox=dt.createGroup();var Bt=dt.createTransform();Bt.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(Bt),this.container.appendChild(this.controlBox),this.controlRect=dt.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=dt.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new At,this.addControlGrips(),this.controlBox.style.display="none"},Wt.prototype.adjustControlBox=function(){var Bt=this.controlBox.transform.baseVal.getItem(0);Bt.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(Bt,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},Wt.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},Wt.prototype.createGrip=function(){var Bt=new _t;return Bt.visual.transform.baseVal.appendItem(dt.createTransform()),this.controlBox.appendChild(Bt.visual),Bt},Wt.prototype.positionGrips=function(){var Bt=this.controlGrips.topLeft.GRIP_SIZE,te=-Bt/2,me=te,Jt=(this.width+this.CB_DISTANCE)/2-Bt/2,Ie=(this.height+this.CB_DISTANCE)/2-Bt/2,Ue=this.height+this.CB_DISTANCE-Bt/2,Je=this.width+this.CB_DISTANCE-Bt/2;this.positionGrip(this.controlGrips.topLeft.visual,te,me),this.positionGrip(this.controlGrips.topCenter.visual,Jt,me),this.positionGrip(this.controlGrips.topRight.visual,Je,me),this.positionGrip(this.controlGrips.centerLeft.visual,te,Ie),this.positionGrip(this.controlGrips.centerRight.visual,Je,Ie),this.positionGrip(this.controlGrips.bottomLeft.visual,te,Ue),this.positionGrip(this.controlGrips.bottomCenter.visual,Jt,Ue),this.positionGrip(this.controlGrips.bottomRight.visual,Je,Ue),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Jt,me-3*this.CB_DISTANCE)},Wt.prototype.positionGrip=function(Bt,te,me){var Jt=Bt.transform.baseVal.getItem(0);Jt.setTranslate(te,me),Bt.transform.baseVal.replaceItem(Jt,0)},Wt.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Wt.prototype.showControlBox=function(){this.controlBox.style.display=""},Wt.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Mt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Mt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Qt.prototype.getState.call(this))},Wt.prototype.restoreState=function(Bt){Qt.prototype.restoreState.call(this,Bt);var te=Bt;this.left=te.left,this.top=te.top,this.width=te.width,this.height=te.height,this.rotationAngle=te.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Mt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,te.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Mt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,te.containerTransformMatrix))},Wt.prototype.scale=function(Bt,te){Qt.prototype.scale.call(this,Bt,te);var me=this.rotatePoint({x:this.left,y:this.top}),Jt=this.unrotatePoint({x:me.x*Bt,y:me.y*te});this.left=Jt.x,this.top=Jt.y,this.width=this.width*Bt,this.height=this.height*te,this.adjustControlBox()},Wt}(Et),Lt=function(Qt){function Wt(Bt,te,me){var Jt=Qt.call(this,Bt,te,me)||this;return Jt.fillColor="transparent",Jt.strokeColor="transparent",Jt.strokeWidth=0,Jt.strokeDasharray="",Jt.opacity=1,Jt.setStrokeColor=Jt.setStrokeColor.bind(Jt),Jt.setFillColor=Jt.setFillColor.bind(Jt),Jt.setStrokeWidth=Jt.setStrokeWidth.bind(Jt),Jt.setStrokeDasharray=Jt.setStrokeDasharray.bind(Jt),Jt.createVisual=Jt.createVisual.bind(Jt),Jt}return pt(Wt,Qt),Wt.prototype.ownsTarget=function(Bt){return!(!Qt.prototype.ownsTarget.call(this,Bt)&&Bt!==this.visual)},Wt.prototype.createVisual=function(){this.visual=dt.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},Wt.prototype.pointerDown=function(Bt,te){Qt.prototype.pointerDown.call(this,Bt,te),this.state==="new"&&(this.createVisual(),this.moveVisual(Bt),this._state="creating")},Wt.prototype.manipulate=function(Bt){Qt.prototype.manipulate.call(this,Bt)},Wt.prototype.resize=function(Bt){Qt.prototype.resize.call(this,Bt),this.setSize()},Wt.prototype.setSize=function(){Qt.prototype.setSize.call(this),dt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Wt.prototype.pointerUp=function(Bt){Qt.prototype.pointerUp.call(this,Bt),this.setSize()},Wt.prototype.setStrokeColor=function(Bt){this.strokeColor=Bt,this.visual&&dt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Bt),this.stateChanged()},Wt.prototype.setFillColor=function(Bt){this.fillColor=Bt,this.visual&&dt.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Wt.prototype.setStrokeWidth=function(Bt){this.strokeWidth=Bt,this.visual&&dt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Wt.prototype.setStrokeDasharray=function(Bt){this.strokeDasharray=Bt,this.visual&&dt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Wt.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Qt.prototype.getState.call(this))},Wt.prototype.restoreState=function(Bt){var te=Bt;this.fillColor=te.fillColor,this.strokeColor=te.strokeColor,this.strokeWidth=te.strokeWidth,this.strokeDasharray=te.strokeDasharray,this.opacity=te.opacity,this.createVisual(),Qt.prototype.restoreState.call(this,Bt),this.setSize()},Wt.prototype.scale=function(Bt,te){Qt.prototype.scale.call(this,Bt,te),this.setSize()},Wt.title="Rectangle marker",Wt}(jt),It=function(Qt){function Wt(Bt,te,me,Jt){var Ie=Qt.call(this,Bt,Jt||'')||this;return Ie.widths=[],Ie.widthBoxes=[],Ie.widths=te,Ie.currentWidth=me,Ie.setCurrentWidth=Ie.setCurrentWidth.bind(Ie),Ie}return pt(Wt,Qt),Wt.prototype.getUi=function(){var Bt=this,te=document.createElement("div");return te.style.display="flex",te.style.overflow="hidden",te.style.flexGrow="2",this.widths.forEach(function(me){var Jt=document.createElement("div");Jt.style.display="flex",Jt.style.flexGrow="2",Jt.style.alignItems="center",Jt.style.justifyContent="space-between",Jt.style.padding="5px",Jt.style.borderWidth="2px",Jt.style.borderStyle="solid",Jt.style.borderColor=me===Bt.currentWidth?Bt.uiStyleSettings.toolboxAccentColor:"transparent",Jt.addEventListener("click",function(){Bt.setCurrentWidth(me,Jt)}),te.appendChild(Jt);var Ie=document.createElement("div");Ie.innerText=me.toString(),Ie.style.marginRight="5px",Jt.appendChild(Ie);var Ue=document.createElement("div");Ue.style.minHeight="20px",Ue.style.flexGrow="2",Ue.style.display="flex",Ue.style.alignItems="center";var Je=document.createElement("hr");Je.style.minWidth="20px",Je.style.border="0px",Je.style.borderTop=me+"px solid "+Bt.uiStyleSettings.toolboxColor,Je.style.flexGrow="2",Ue.appendChild(Je),Jt.appendChild(Ue),Bt.widthBoxes.push(Jt)}),te},Wt.prototype.setCurrentWidth=function(Bt,te){var me=this;this.currentWidth=Bt,this.widthBoxes.forEach(function(Jt){Jt.style.borderColor=Jt===te?me.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Wt}(ut),Ut=function(Qt){function Wt(Bt,te,me,Jt){var Ie=Qt.call(this,Bt,Jt||'')||this;return Ie.styles=[],Ie.styleBoxes=[],Ie.styles=te,Ie.currentStyle=me,Ie.setCurrentStyle=Ie.setCurrentStyle.bind(Ie),Ie}return pt(Wt,Qt),Wt.prototype.getUi=function(){var Bt=this,te=document.createElement("div");return te.style.display="flex",te.style.overflow="hidden",te.style.flexGrow="2",this.styles.forEach(function(me){var Jt=document.createElement("div");Jt.style.display="flex",Jt.style.alignItems="center",Jt.style.justifyContent="space-between",Jt.style.padding="5px",Jt.style.borderWidth="2px",Jt.style.borderStyle="solid",Jt.style.overflow="hidden",Jt.style.maxWidth=100/Bt.styles.length-5+"%",Jt.style.borderColor=me===Bt.currentStyle?Bt.uiStyleSettings.toolboxAccentColor:"transparent",Jt.addEventListener("click",function(){Bt.setCurrentStyle(me,Jt)}),te.appendChild(Jt);var Ie=document.createElement("div");Ie.style.minHeight="20px",Ie.style.flexGrow="2",Ie.style.overflow="hidden";var Ue=` + + `;Ie.innerHTML=Ue,Jt.appendChild(Ie),Bt.styleBoxes.push(Jt)}),te},Wt.prototype.setCurrentStyle=function(Bt,te){var me=this;this.currentStyle=Bt,this.styleBoxes.forEach(function(Jt){Jt.style.borderColor=Jt===te?me.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Wt}(ut),Xt=function(Qt){function Wt(Bt,te,me){var Jt=Qt.call(this,Bt,te,me)||this;return Jt.strokeColor=me.defaultColor,Jt.strokeWidth=me.defaultStrokeWidth,Jt.strokeDasharray=me.defaultStrokeDasharray,Jt.strokePanel=new wt("Line color",me.defaultColorSet,me.defaultColor),Jt.strokePanel.onColorChanged=Jt.setStrokeColor,Jt.strokeWidthPanel=new It("Line width",me.defaultStrokeWidths,me.defaultStrokeWidth),Jt.strokeWidthPanel.onWidthChanged=Jt.setStrokeWidth,Jt.strokeStylePanel=new Ut("Line style",me.defaultStrokeDasharrays,me.defaultStrokeDasharray),Jt.strokeStylePanel.onStyleChanged=Jt.setStrokeDasharray,Jt}return pt(Wt,Qt),Object.defineProperty(Wt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Wt.prototype.getState=function(){var Bt=Qt.prototype.getState.call(this);return Bt.typeName=Wt.typeName,Bt},Wt.typeName="FrameMarker",Wt.title="Frame marker",Wt.icon='',Wt}(Lt),Gt=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},Vt=function(Qt){function Wt(Bt,te,me){var Jt=Qt.call(this,Bt,te,me)||this;return Jt.x1=0,Jt.y1=0,Jt.x2=0,Jt.y2=0,Jt.defaultLength=50,Jt.manipulationStartX=0,Jt.manipulationStartY=0,Jt.manipulationStartX1=0,Jt.manipulationStartY1=0,Jt.manipulationStartX2=0,Jt.manipulationStartY2=0,Jt.setupControlBox(),Jt}return pt(Wt,Qt),Wt.prototype.ownsTarget=function(Bt){return!!Qt.prototype.ownsTarget.call(this,Bt)||!(!this.grip1.ownsTarget(Bt)&&!this.grip2.ownsTarget(Bt))},Wt.prototype.pointerDown=function(Bt,te){Qt.prototype.pointerDown.call(this,Bt,te),this.manipulationStartX=Bt.x,this.manipulationStartY=Bt.y,this.state==="new"&&(this.x1=Bt.x,this.y1=Bt.y,this.x2=Bt.x,this.y2=Bt.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(te)?this.activeGrip=this.grip1:this.grip2.ownsTarget(te)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Wt.prototype.pointerUp=function(Bt){var te=this.state;Qt.prototype.pointerUp.call(this,Bt),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(Bt),this._state="select",te==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Wt.prototype.adjustVisual=function(){},Wt.prototype.manipulate=function(Bt){this.state==="creating"?this.resize(Bt):this.state==="move"?(this.x1=this.manipulationStartX1+Bt.x-this.manipulationStartX,this.y1=this.manipulationStartY1+Bt.y-this.manipulationStartY,this.x2=this.manipulationStartX2+Bt.x-this.manipulationStartX,this.y2=this.manipulationStartY2+Bt.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(Bt)},Wt.prototype.resize=function(Bt){switch(this.activeGrip){case this.grip1:this.x1=Bt.x,this.y1=Bt.y;break;case this.grip2:case void 0:this.x2=Bt.x,this.y2=Bt.y}this.adjustVisual(),this.adjustControlBox()},Wt.prototype.select=function(){Qt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Wt.prototype.deselect=function(){Qt.prototype.deselect.call(this),this.controlBox.style.display="none"},Wt.prototype.setupControlBox=function(){this.controlBox=dt.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Wt.prototype.adjustControlBox=function(){this.positionGrips()},Wt.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Wt.prototype.createGrip=function(){var Bt=new _t;return Bt.visual.transform.baseVal.appendItem(dt.createTransform()),this.controlBox.appendChild(Bt.visual),Bt},Wt.prototype.positionGrips=function(){var Bt=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-Bt/2,this.y1-Bt/2),this.positionGrip(this.grip2.visual,this.x2-Bt/2,this.y2-Bt/2)},Wt.prototype.positionGrip=function(Bt,te,me){var Jt=Bt.transform.baseVal.getItem(0);Jt.setTranslate(te,me),Bt.transform.baseVal.replaceItem(Jt,0)},Wt.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Qt.prototype.getState.call(this))},Wt.prototype.restoreState=function(Bt){Qt.prototype.restoreState.call(this,Bt);var te=Bt;this.x1=te.x1,this.y1=te.y1,this.x2=te.x2,this.y2=te.y2},Wt.prototype.scale=function(Bt,te){Qt.prototype.scale.call(this,Bt,te),this.x1=this.x1*Bt,this.y1=this.y1*te,this.x2=this.x2*Bt,this.y2=this.y2*te,this.adjustVisual(),this.adjustControlBox()},Wt}(Et),Ht=function(Qt){function Wt(Bt,te,me){var Jt=Qt.call(this,Bt,te,me)||this;return Jt.strokeColor="transparent",Jt.strokeWidth=0,Jt.strokeDasharray="",Jt.setStrokeColor=Jt.setStrokeColor.bind(Jt),Jt.setStrokeWidth=Jt.setStrokeWidth.bind(Jt),Jt.setStrokeDasharray=Jt.setStrokeDasharray.bind(Jt),Jt.strokeColor=me.defaultColor,Jt.strokeWidth=me.defaultStrokeWidth,Jt.strokeDasharray=me.defaultStrokeDasharray,Jt.strokePanel=new wt("Line color",me.defaultColorSet,me.defaultColor),Jt.strokePanel.onColorChanged=Jt.setStrokeColor,Jt.strokeWidthPanel=new It("Line width",me.defaultStrokeWidths,me.defaultStrokeWidth),Jt.strokeWidthPanel.onWidthChanged=Jt.setStrokeWidth,Jt.strokeStylePanel=new Ut("Line style",me.defaultStrokeDasharrays,me.defaultStrokeDasharray),Jt.strokeStylePanel.onStyleChanged=Jt.setStrokeDasharray,Jt}return pt(Wt,Qt),Wt.prototype.ownsTarget=function(Bt){return!(!Qt.prototype.ownsTarget.call(this,Bt)&&Bt!==this.visual&&Bt!==this.selectorLine&&Bt!==this.visibleLine)},Wt.prototype.createVisual=function(){this.visual=dt.createGroup(),this.selectorLine=dt.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=dt.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},Wt.prototype.pointerDown=function(Bt,te){Qt.prototype.pointerDown.call(this,Bt,te),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Wt.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),dt.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),dt.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),dt.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Wt.prototype.setStrokeColor=function(Bt){this.strokeColor=Bt,this.adjustVisual(),this.colorChanged(Bt)},Wt.prototype.setStrokeWidth=function(Bt){this.strokeWidth=Bt,this.adjustVisual()},Wt.prototype.setStrokeDasharray=function(Bt){this.strokeDasharray=Bt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Wt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Wt.prototype.getState=function(){var Bt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Qt.prototype.getState.call(this));return Bt.typeName=Wt.typeName,Bt},Wt.prototype.restoreState=function(Bt){Qt.prototype.restoreState.call(this,Bt);var te=Bt;this.strokeColor=te.strokeColor,this.strokeWidth=te.strokeWidth,this.strokeDasharray=te.strokeDasharray,this.createVisual(),this.adjustVisual()},Wt.typeName="LineMarker",Wt.title="Line marker",Wt.icon='',Wt}(Vt),ne=function(Qt){function Wt(Bt,te,me,Jt){var Ie=Qt.call(this,Bt,Jt||'')||this;return Ie.fonts=[],Ie.fontBoxes=[],Ie.fonts=te,Ie.currentFont=me,Ie.setCurrentFont=Ie.setCurrentFont.bind(Ie),Ie}return pt(Wt,Qt),Wt.prototype.getUi=function(){var Bt=this,te=document.createElement("div");return te.style.overflow="hidden",te.style.flexGrow="2",this.fonts.forEach(function(me){var Jt=document.createElement("div");Jt.style.display="inline-block",Jt.style.alignItems="center",Jt.style.justifyContent="space-between",Jt.style.padding="5px",Jt.style.borderWidth="2px",Jt.style.borderStyle="solid",Jt.style.overflow="hidden",Jt.style.maxWidth=100/Bt.fonts.length-5+"%",Jt.style.borderColor=me===Bt.currentFont?Bt.uiStyleSettings.toolboxAccentColor:"transparent",Jt.addEventListener("click",function(){Bt.setCurrentFont(me,Jt)}),te.appendChild(Jt);var Ie=document.createElement("div");Ie.style.display="flex",Ie.style.minHeight="20px",Ie.style.flexGrow="2",Ie.style.fontFamily=me,Ie.style.overflow="hidden";var Ue=document.createElement("div");Ue.style.whiteSpace="nowrap",Ue.style.overflow="hidden",Ue.style.textOverflow="ellipsis",Ue.innerHTML="The quick brown fox jumps over the lazy dog",Ie.appendChild(Ue),Jt.appendChild(Ie),Bt.fontBoxes.push(Jt)}),te},Wt.prototype.setCurrentFont=function(Bt,te){var me=this;this.currentFont=Bt,this.fontBoxes.forEach(function(Jt){Jt.style.borderColor=Jt===te?me.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Wt}(ut),se=function(Qt){function Wt(Bt,te,me){var Jt=Qt.call(this,Bt,te,me)||this;return Jt.color="transparent",Jt.padding=5,Jt.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Jt.text=Jt.DEFAULT_TEXT,Jt.isMoved=!1,Jt.color=me.defaultColor,Jt.fontFamily=me.defaultFontFamily,Jt.defaultSize={x:100,y:30},Jt.setColor=Jt.setColor.bind(Jt),Jt.setFont=Jt.setFont.bind(Jt),Jt.renderText=Jt.renderText.bind(Jt),Jt.sizeText=Jt.sizeText.bind(Jt),Jt.textEditDivClicked=Jt.textEditDivClicked.bind(Jt),Jt.showTextEditor=Jt.showTextEditor.bind(Jt),Jt.setSize=Jt.setSize.bind(Jt),Jt.positionTextEditor=Jt.positionTextEditor.bind(Jt),Jt.colorPanel=new wt("Color",me.defaultColorSet,me.defaultColor),Jt.colorPanel.onColorChanged=Jt.setColor,Jt.fontFamilyPanel=new ne("Font",me.defaultFontFamilies,me.defaultFontFamily),Jt.fontFamilyPanel.onFontChanged=Jt.setFont,Jt}return pt(Wt,Qt),Wt.prototype.ownsTarget=function(Bt){if(Qt.prototype.ownsTarget.call(this,Bt)||Bt===this.visual||Bt===this.textElement||Bt===this.bgRectangle)return!0;var te=!1;return this.textElement.childNodes.forEach(function(me){me===Bt&&(te=!0)}),te},Wt.prototype.createVisual=function(){this.visual=dt.createGroup(),this.bgRectangle=dt.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=dt.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(dt.createTransform()),this.textElement.transform.baseVal.appendItem(dt.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Wt.prototype.pointerDown=function(Bt,te){Qt.prototype.pointerDown.call(this,Bt,te),this.isMoved=!1,this.pointerDownPoint=Bt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Bt),this._state="creating")},Wt.prototype.renderText=function(){var Bt=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(te){Bt.textElement.appendChild(dt.createTSpan(te.trim()===""?" ":te.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Wt.prototype.getTextScale=function(){var Bt=this.textElement.getBBox(),te=1;if(Bt.width>0&&Bt.height>0){var me=(1*this.width-this.width*this.padding*2/100)/Bt.width,Jt=(1*this.height-this.height*this.padding*2/100)/Bt.height;te=Math.min(me,Jt)}return te},Wt.prototype.getTextPosition=function(Bt){var te=this.textElement.getBBox(),me=0,Jt=0;return te.width>0&&te.height>0&&(me=(this.width-te.width*Bt)/2,Jt=this.height/2-te.height*Bt/2),{x:me,y:Jt}},Wt.prototype.sizeText=function(){var Bt=this.textElement.getBBox(),te=this.getTextScale(),me=this.getTextPosition(te);me.y-=Bt.y*te,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+me.x+"px, "+me.y+"px) scale("+te+", "+te+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(me.x,me.y),this.textElement.transform.baseVal.getItem(1).setScale(te,te))},Wt.prototype.manipulate=function(Bt){Qt.prototype.manipulate.call(this,Bt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Bt.x-this.pointerDownPoint.x)>5||Math.abs(Bt.y-this.pointerDownPoint.y)>5)},Wt.prototype.resize=function(Bt){Qt.prototype.resize.call(this,Bt),this.isMoved=!0,this.setSize(),this.sizeText()},Wt.prototype.setSize=function(){Qt.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(dt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),dt.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Wt.prototype.pointerUp=function(Bt){var te=this.state;te==="creating"&&(this._suppressMarkerCreateEvent=!0),Qt.prototype.pointerUp.call(this,Bt),this.setSize(),(te==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Wt.prototype.showTextEditor=function(){var Bt=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(te){te.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var te=Number.parseFloat(Bt.textEditor.style.fontSize);Bt.textEditor.clientWidth>=Number.parseInt(Bt.textEditor.style.maxWidth)&&te>.9;)te-=.1,Bt.textEditor.style.fontSize=Math.max(te,.9)+"em"}),this.textEditor.addEventListener("keyup",function(te){te.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(te){if(te.clipboardData){var me=te.clipboardData.getData("text"),Jt=window.getSelection();if(!Jt.rangeCount)return!1;Jt.deleteFromDocument(),Jt.getRangeAt(0).insertNode(document.createTextNode(me)),te.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){Bt.textEditDivClicked(Bt.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},Wt.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var Bt=this.getTextScale(),te=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),me=this.textElement.getBBox(),Jt={x:me.width*Bt,y:me.height*Bt};te.x-=Jt.x/2,te.y-=Jt.y/2,this.textEditor.style.top=te.y+"px",this.textEditor.style.left=te.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-te.x+"px",this.textEditor.style.fontSize=Math.max(16*Bt,12)+"px",this.textElement.style.display="none"}},Wt.prototype.textEditDivClicked=function(Bt){this.text=Bt.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Wt.prototype.select=function(){Qt.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Wt.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Qt.prototype.deselect.call(this)},Wt.prototype.dblClick=function(Bt,te){Qt.prototype.dblClick.call(this,Bt,te),this.showTextEditor()},Wt.prototype.setColor=function(Bt){this.textElement&&dt.setAttributes(this.textElement,[["fill",Bt]]),this.color=Bt,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(Bt)},Wt.prototype.setFont=function(Bt){this.textElement&&dt.setAttributes(this.textElement,[["font-family",Bt]]),this.fontFamily=Bt,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Wt.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Wt.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Wt.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Wt.prototype.getState=function(){var Bt=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Qt.prototype.getState.call(this));return Bt.typeName=Wt.typeName,Bt},Wt.prototype.restoreState=function(Bt){var te=Bt;this.color=te.color,this.fontFamily=te.fontFamily,this.padding=te.padding,this.text=te.text,this.createVisual(),Qt.prototype.restoreState.call(this,Bt),this.setSize()},Wt.prototype.scale=function(Bt,te){Qt.prototype.scale.call(this,Bt,te),this.setSize(),this.sizeText(),this.positionTextEditor()},Wt.typeName="TextMarker",Wt.title="Text marker",Wt.icon='',Wt}(jt),ve=function(Qt){function Wt(Bt,te,me){var Jt=Qt.call(this,Bt,te,me)||this;return Jt.color="transparent",Jt.lineWidth=3,Jt.drawing=!1,Jt.pixelRatio=1,Jt.color=me.defaultColor,Jt.lineWidth=me.defaultStrokeWidth,Jt.pixelRatio=me.freehandPixelRatio,Jt.setColor=Jt.setColor.bind(Jt),Jt.addCanvas=Jt.addCanvas.bind(Jt),Jt.finishCreation=Jt.finishCreation.bind(Jt),Jt.setLineWidth=Jt.setLineWidth.bind(Jt),Jt.colorPanel=new wt("Color",me.defaultColorSet,me.defaultColor),Jt.colorPanel.onColorChanged=Jt.setColor,Jt.lineWidthPanel=new It("Line width",me.defaultStrokeWidths,me.defaultStrokeWidth),Jt.lineWidthPanel.onWidthChanged=Jt.setLineWidth,Jt}return pt(Wt,Qt),Wt.prototype.ownsTarget=function(Bt){return!(!Qt.prototype.ownsTarget.call(this,Bt)&&Bt!==this.visual&&Bt!==this.drawingImage)},Wt.prototype.createVisual=function(){this.visual=dt.createGroup(),this.drawingImage=dt.createImage(),this.visual.appendChild(this.drawingImage);var Bt=dt.createTransform();this.visual.transform.baseVal.appendItem(Bt),this.addMarkerVisualToContainer(this.visual)},Wt.prototype.pointerDown=function(Bt,te){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(Bt.x,Bt.y),this.drawing=!0):Qt.prototype.pointerDown.call(this,Bt,te)},Wt.prototype.manipulate=function(Bt){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(Bt.x,Bt.y),this.canvasContext.stroke()):Qt.prototype.manipulate.call(this,Bt)},Wt.prototype.resize=function(Bt){Qt.prototype.resize.call(this,Bt),dt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),dt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Wt.prototype.pointerUp=function(Bt){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Qt.prototype.pointerUp.call(this,Bt)},Wt.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},Wt.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Qt.prototype.select.call(this)},Wt.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Qt.prototype.deselect.call(this)},Wt.prototype.finishCreation=function(){for(var Bt=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),te=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],me=te[0],Jt=te[1],Ie=te[2],Ue=te[3],Je=!1,Ze=0;Ze0&&(Je=!0,ZeUe&&(Ue=Ze),nn>Ie&&(Ie=nn));if(Je){this.left=me/this.pixelRatio,this.top=Jt/this.pixelRatio,this.width=(Ie-me)/this.pixelRatio,this.height=(Ue-Jt)/this.pixelRatio;var fn=document.createElement("canvas");fn.width=Ie-me,fn.height=Ue-Jt,fn.getContext("2d").putImageData(this.canvasContext.getImageData(me,Jt,Ie-me,Ue-Jt),0,0),this.drawingImgUrl=fn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Wt.prototype.setDrawingImage=function(){dt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),dt.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Wt.prototype.setColor=function(Bt){this.color=Bt,this.colorChanged(Bt)},Wt.prototype.setLineWidth=function(Bt){this.lineWidth=Bt},Object.defineProperty(Wt.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Wt.prototype.getState=function(){var Bt=Object.assign({drawingImgUrl:this.drawingImgUrl},Qt.prototype.getState.call(this));return Bt.typeName=Wt.typeName,Bt},Wt.prototype.restoreState=function(Bt){this.createVisual(),Qt.prototype.restoreState.call(this,Bt),this.drawingImgUrl=Bt.drawingImgUrl,this.setDrawingImage()},Wt.prototype.scale=function(Bt,te){Qt.prototype.scale.call(this,Bt,te),this.setDrawingImage()},Wt.typeName="FreehandMarker",Wt.title="Freehand marker",Wt.icon='',Wt}(jt),Kt=function(Qt){function Wt(Bt,te,me){var Jt=Qt.call(this,Bt,me||'')||this;return Jt.typeBoxes=[],Jt.currentType=te,Jt.setCurrentType=Jt.setCurrentType.bind(Jt),Jt}return pt(Wt,Qt),Wt.prototype.getUi=function(){var Bt=this,te=document.createElement("div");te.style.display="flex",te.style.overflow="hidden",te.style.flexGrow="2";for(var me=function(Ue){var Je="both";switch(Ue){case 0:Je="both";break;case 1:Je="start";break;case 2:Je="end";break;case 3:Je="none"}var Ze=document.createElement("div");if(Ze.style.display="flex",Ze.style.flexGrow="2",Ze.style.alignItems="center",Ze.style.justifyContent="space-between",Ze.style.padding="5px",Ze.style.borderWidth="2px",Ze.style.borderStyle="solid",Ze.style.borderColor=Je===Jt.currentType?Jt.uiStyleSettings.toolboxAccentColor:"transparent",Ze.addEventListener("click",function(){Bt.setCurrentType(Je,Ze)}),te.appendChild(Ze),Je==="both"||Je==="start"){var nn=document.createElement("div");nn.style.display="flex",nn.style.alignItems="center",nn.style.minHeight="20px",nn.innerHTML=` `,nn.style.marginLeft="5px",Ze.appendChild(nn)}var fn=document.createElement("div");fn.style.display="flex",fn.style.alignItems="center",fn.style.minHeight="20px",fn.style.flexGrow="2";var An=document.createElement("hr");if(An.style.minWidth="20px",An.style.border="0px",An.style.borderTop="3px solid "+(Jt.uiStyleSettings!==void 0?Jt.uiStyleSettings.toolboxColor:"#eeeeee"),An.style.flexGrow="2",fn.appendChild(An),Ze.appendChild(fn),Je==="both"||Je==="end"){var En=document.createElement("div");En.style.display="flex",En.style.alignItems="center",En.style.minHeight="20px",En.innerHTML=` - `,En.style.marginRight="5px",Ze.appendChild(En)}Jt.typeBoxes.push(Ze)},Jt=this,Ie=0;Ie<4;Ie++)ge(Ie);return te},Wt.prototype.setCurrentType=function(Bt,te){var ge=this;this.currentType=Bt,this.typeBoxes.forEach(function(Jt){Jt.style.borderColor=Jt===te?ge.uiStyleSettings!==void 0?ge.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Wt}(ut),re=function(Qt){function Wt(Bt,te,ge){var Jt=Qt.call(this,Bt,te,ge)||this;return Jt.arrowType="end",Jt.arrowBaseHeight=10,Jt.arrowBaseWidth=10,Jt.getArrowPoints=Jt.getArrowPoints.bind(Jt),Jt.setArrowType=Jt.setArrowType.bind(Jt),Jt.arrowTypePanel=new Kt("Arrow type","end"),Jt.arrowTypePanel.onArrowTypeChanged=Jt.setArrowType,Jt}return pt(Wt,Qt),Wt.prototype.ownsTarget=function(Bt){return!(!Qt.prototype.ownsTarget.call(this,Bt)&&Bt!==this.arrow1&&Bt!==this.arrow2)},Wt.prototype.getArrowPoints=function(Bt,te){var ge=this.arrowBaseWidth+2*this.strokeWidth,Jt=this.arrowBaseHeight+2*this.strokeWidth;return Bt-ge/2+","+(te+Jt/2)+" "+Bt+","+(te-Jt/2)+" "+(Bt+ge/2)+","+(te+Jt/2)},Wt.prototype.createTips=function(){this.arrow1=dt.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(dt.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=dt.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(dt.createTransform()),this.visual.appendChild(this.arrow2)},Wt.prototype.pointerDown=function(Bt,te){Qt.prototype.pointerDown.call(this,Bt,te),this.state==="creating"&&this.createTips()},Wt.prototype.adjustVisual=function(){if(Qt.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",dt.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),dt.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var Bt=0;Math.abs(this.x1-this.x2)>.1&&(Bt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var te=this.arrow1.transform.baseVal.getItem(0);te.setRotate(Bt,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(te,0);var ge=this.arrow2.transform.baseVal.getItem(0);ge.setRotate(Bt+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ge,0)}},Wt.prototype.setArrowType=function(Bt){this.arrowType=Bt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Wt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Wt.prototype.getState=function(){var Bt=Object.assign({arrowType:this.arrowType},Qt.prototype.getState.call(this));return Bt.typeName=Wt.typeName,Bt},Wt.prototype.restoreState=function(Bt){Qt.prototype.restoreState.call(this,Bt);var te=Bt;this.arrowType=te.arrowType,this.createTips(),this.adjustVisual()},Wt.typeName="ArrowMarker",Wt.title="Arrow marker",Wt.icon='',Wt}(Ht),we=function(Qt){function Wt(Bt,te,ge){var Jt=Qt.call(this,Bt,te,ge)||this;return Jt.fillColor=ge.defaultFillColor,Jt.strokeWidth=0,Jt.fillPanel=new wt("Color",ge.defaultColorSet,ge.defaultFillColor),Jt.fillPanel.onColorChanged=Jt.setFillColor,Jt}return pt(Wt,Qt),Object.defineProperty(Wt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Wt.prototype.getState=function(){var Bt=Qt.prototype.getState.call(this);return Bt.typeName=Wt.typeName,Bt},Wt.typeName="CoverMarker",Wt.title="Cover marker",Wt.icon='',Wt}(Lt),Me=function(Qt){function Wt(Bt,te,ge,Jt){var Ie=Qt.call(this,Bt,Jt||'')||this;return Ie.opacities=[],Ie.opacityBoxes=[],Ie.opacities=te,Ie.currentOpacity=ge,Ie.setCurrentOpacity=Ie.setCurrentOpacity.bind(Ie),Ie}return pt(Wt,Qt),Wt.prototype.getUi=function(){var Bt=this,te=document.createElement("div");return te.style.display="flex",te.style.overflow="hidden",te.style.flexGrow="2",te.style.justifyContent="space-between",this.opacities.forEach(function(ge){var Jt=document.createElement("div");Jt.style.display="flex",Jt.style.alignItems="center",Jt.style.justifyContent="center",Jt.style.padding="5px",Jt.style.borderWidth="2px",Jt.style.borderStyle="solid",Jt.style.borderColor=ge===Bt.currentOpacity?Bt.uiStyleSettings.toolboxAccentColor:"transparent",Jt.addEventListener("click",function(){Bt.setCurrentOpacity(ge,Jt)}),te.appendChild(Jt);var Ie=document.createElement("div");Ie.innerText=100*ge+"%",Jt.appendChild(Ie),Bt.opacityBoxes.push(Jt)}),te},Wt.prototype.setCurrentOpacity=function(Bt,te){var ge=this;this.currentOpacity=Bt,this.opacityBoxes.forEach(function(Jt){Jt.style.borderColor=Jt===te?ge.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Wt}(ut),ke=function(Qt){function Wt(Bt,te,ge){var Jt=Qt.call(this,Bt,te,ge)||this;return Jt.setOpacity=Jt.setOpacity.bind(Jt),Jt.fillColor=ge.defaultHighlightColor,Jt.strokeWidth=0,Jt.opacity=ge.defaultHighlightOpacity,Jt.fillPanel=new wt("Color",ge.defaultColorSet,Jt.fillColor),Jt.fillPanel.onColorChanged=Jt.setFillColor,Jt.opacityPanel=new Me("Opacity",ge.defaultOpacitySteps,Jt.opacity),Jt.opacityPanel.onOpacityChanged=Jt.setOpacity,Jt}return pt(Wt,Qt),Wt.prototype.setOpacity=function(Bt){this.opacity=Bt,this.visual&&dt.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Wt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Wt.prototype.getState=function(){var Bt=Qt.prototype.getState.call(this);return Bt.typeName=Wt.typeName,Bt},Wt.typeName="HighlightMarker",Wt.title="Highlight marker",Wt.icon='',Wt}(we),me='',fe='',pe=function(Qt){function Wt(Bt,te,ge){var Jt=Qt.call(this,Bt,te,ge)||this;return Jt.bgColor="transparent",Jt.tipPosition={x:0,y:0},Jt.tipBase1Position={x:0,y:0},Jt.tipBase2Position={x:0,y:0},Jt.tipMoving=!1,Jt.color=ge.defaultStrokeColor,Jt.bgColor=ge.defaultFillColor,Jt.fontFamily=ge.defaultFontFamily,Jt.defaultSize={x:100,y:30},Jt.setBgColor=Jt.setBgColor.bind(Jt),Jt.getTipPoints=Jt.getTipPoints.bind(Jt),Jt.positionTip=Jt.positionTip.bind(Jt),Jt.setTipPoints=Jt.setTipPoints.bind(Jt),Jt.colorPanel=new wt("Text color",ge.defaultColorSet,Jt.color,me),Jt.colorPanel.onColorChanged=Jt.setColor,Jt.bgColorPanel=new wt("Fill color",ge.defaultColorSet,Jt.bgColor,fe),Jt.bgColorPanel.onColorChanged=Jt.setBgColor,Jt.fontFamilyPanel=new ne("Font",ge.defaultFontFamilies,ge.defaultFontFamily),Jt.fontFamilyPanel.onFontChanged=Jt.setFont,Jt.tipGrip=new _t,Jt.tipGrip.visual.transform.baseVal.appendItem(dt.createTransform()),Jt.controlBox.appendChild(Jt.tipGrip.visual),Jt}return pt(Wt,Qt),Wt.prototype.ownsTarget=function(Bt){return Qt.prototype.ownsTarget.call(this,Bt)||this.tipGrip.ownsTarget(Bt)||this.tip===Bt},Wt.prototype.createTip=function(){dt.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=dt.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Wt.prototype.pointerDown=function(Bt,te){this.state==="new"&&Qt.prototype.pointerDown.call(this,Bt,te),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(te)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Qt.prototype.pointerDown.call(this,Bt,te)},Wt.prototype.pointerUp=function(Bt){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Qt.prototype.pointerUp.call(this,Bt);else{var te=this.state==="creating";Qt.prototype.pointerUp.call(this,Bt),this.setTipPoints(te),this.positionTip()}},Wt.prototype.manipulate=function(Bt){if(this.tipMoving){var te=this.unrotatePoint(Bt);this.tipPosition={x:te.x-this.manipulationStartLeft,y:te.y-this.manipulationStartTop},this.positionTip()}else Qt.prototype.manipulate.call(this,Bt)},Wt.prototype.setBgColor=function(Bt){this.bgRectangle&&this.tip&&(dt.setAttributes(this.bgRectangle,[["fill",Bt]]),dt.setAttributes(this.tip,[["fill",Bt]])),this.bgColor=Bt,this.fillColorChanged(Bt)},Wt.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},Wt.prototype.setTipPoints=function(Bt){Bt===void 0&&(Bt=!1);var te=Math.min(this.height/2,15),ge=this.height/5;Bt&&(this.tipPosition={x:te+ge/2,y:this.height+20});var Jt=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?Jt.1)){var Bt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),te=this.tip1.transform.baseVal.getItem(0);te.setRotate(Bt,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(te,0);var ge=this.tip2.transform.baseVal.getItem(0);ge.setRotate(Bt+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ge,0)}},Object.defineProperty(Wt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Wt.prototype.getState=function(){var Bt=Qt.prototype.getState.call(this);return Bt.typeName=Wt.typeName,Bt},Wt.prototype.restoreState=function(Bt){Qt.prototype.restoreState.call(this,Bt),this.createTips(),this.adjustVisual()},Wt.typeName="MeasurementMarker",Wt.title="Measurement marker",Wt.icon='',Wt}(Ht),He=function(Qt){function Wt(Bt,te,ge){var Jt=Qt.call(this,Bt,te,ge)||this;return Jt.strokePanel.colors=ge.defaultColorSet,Jt.fillColor="transparent",Jt}return pt(Wt,Qt),Object.defineProperty(Wt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Wt.prototype.getState=function(){var Bt=Qt.prototype.getState.call(this);return Bt.typeName=Wt.typeName,Bt},Wt.typeName="EllipseFrameMarker",Wt.title="Ellipse frame marker",Wt.icon='',Wt}(_e),Se=function(){function Qt(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Qt.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Qt.prototype.addUndoStep=function(Wt){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Wt)||(this.undoStack.push(Wt),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Wt)&&this.redoStack.splice(0,this.redoStack.length))},Qt.prototype.replaceLastUndoStep=function(Wt){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Wt)},Qt.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Qt.prototype.undo=function(){if(this.undoStack.length>1){var Wt=this.undoStack.pop();return Wt!==void 0&&this.redoStack.push(Wt),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Qt.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Qt}(),xe=function(Qt){function Wt(Bt,te,ge){var Jt=Qt.call(this,Bt,te,ge)||this;return Jt.strokeColor="transparent",Jt.strokeWidth=0,Jt.strokeDasharray="",Jt.curveX=0,Jt.curveY=0,Jt.manipulationStartCurveX=0,Jt.manipulationStartCurveY=0,Jt.setStrokeColor=Jt.setStrokeColor.bind(Jt),Jt.setStrokeWidth=Jt.setStrokeWidth.bind(Jt),Jt.setStrokeDasharray=Jt.setStrokeDasharray.bind(Jt),Jt.positionGrips=Jt.positionGrips.bind(Jt),Jt.addControlGrips=Jt.addControlGrips.bind(Jt),Jt.adjustVisual=Jt.adjustVisual.bind(Jt),Jt.setupControlBox=Jt.setupControlBox.bind(Jt),Jt.resize=Jt.resize.bind(Jt),Jt.strokeColor=ge.defaultColor,Jt.strokeWidth=ge.defaultStrokeWidth,Jt.strokeDasharray=ge.defaultStrokeDasharray,Jt.strokePanel=new wt("Line color",ge.defaultColorSet,ge.defaultColor),Jt.strokePanel.onColorChanged=Jt.setStrokeColor,Jt.strokeWidthPanel=new It("Line width",ge.defaultStrokeWidths,ge.defaultStrokeWidth),Jt.strokeWidthPanel.onWidthChanged=Jt.setStrokeWidth,Jt.strokeStylePanel=new Ut("Line style",ge.defaultStrokeDasharrays,ge.defaultStrokeDasharray),Jt.strokeStylePanel.onStyleChanged=Jt.setStrokeDasharray,Jt}return pt(Wt,Qt),Wt.prototype.ownsTarget=function(Bt){return!(!Qt.prototype.ownsTarget.call(this,Bt)&&Bt!==this.visual&&Bt!==this.selectorCurve&&Bt!==this.visibleCurve&&!this.curveGrip.ownsTarget(Bt))},Wt.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Wt.prototype.createVisual=function(){this.visual=dt.createGroup(),this.selectorCurve=dt.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=dt.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},Wt.prototype.pointerDown=function(Bt,te){Qt.prototype.pointerDown.call(this,Bt,te),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=Bt.x,this.curveY=Bt.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(te)&&(this.activeGrip=this.curveGrip,this._state="resize")},Wt.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),dt.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),dt.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),dt.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Wt.prototype.setupControlBox=function(){Qt.prototype.setupControlBox.call(this),this.curveControlLine1=dt.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=dt.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},Wt.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Qt.prototype.addControlGrips.call(this)},Wt.prototype.positionGrips=function(){Qt.prototype.positionGrips.call(this);var Bt=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-Bt/2,this.curveY-Bt/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},Wt.prototype.manipulate=function(Bt){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+Bt.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+Bt.y-this.manipulationStartY),Qt.prototype.manipulate.call(this,Bt)},Wt.prototype.resize=function(Bt){this.activeGrip===this.curveGrip&&(this.curveX=Bt.x,this.curveY=Bt.y),Qt.prototype.resize.call(this,Bt),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},Wt.prototype.setStrokeColor=function(Bt){this.strokeColor=Bt,this.adjustVisual(),this.colorChanged(Bt)},Wt.prototype.setStrokeWidth=function(Bt){this.strokeWidth=Bt,this.adjustVisual()},Wt.prototype.setStrokeDasharray=function(Bt){this.strokeDasharray=Bt,this.adjustVisual()},Wt.prototype.scale=function(Bt,te){this.curveX=this.curveX*Bt,this.curveY=this.curveY*te,Qt.prototype.scale.call(this,Bt,te)},Object.defineProperty(Wt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Wt.prototype.getState=function(){var Bt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Qt.prototype.getState.call(this));return Bt.typeName=Wt.typeName,Bt},Wt.prototype.restoreState=function(Bt){Qt.prototype.restoreState.call(this,Bt);var te=Bt;this.strokeColor=te.strokeColor,this.strokeWidth=te.strokeWidth,this.strokeDasharray=te.strokeDasharray,this.curveX=te.curveX,this.curveY=te.curveY,this.createVisual(),this.adjustVisual()},Wt.typeName="CurveMarker",Wt.title="Curve marker",Wt.icon='',Wt}(Yt),le=function(Qt){function Wt(Bt,te,ge){var Jt=Qt.call(this,Bt,te,ge)||this;return Jt.fillColor="transparent",Jt.strokeColor="transparent",Jt.strokeWidth=0,Jt.strokeDasharray="",Jt.textColor="transparent",Jt.fontSize="1rem",Jt.isMoved=!1,Jt.captionText="Caption",Jt.PADDING=5,Jt.captionBoxWidth=0,Jt.captionBoxHeight=0,Jt.strokeColor=ge.defaultColor,Jt.strokeWidth=ge.defaultStrokeWidth,Jt.strokeDasharray=ge.defaultStrokeDasharray,Jt.fillColor=ge.defaultFillColor,Jt.textColor=ge.defaultStrokeColor,Jt.fontFamily=ge.defaultFontFamily,Jt.fontSize=ge.defaultCaptionFontSize,Jt.captionText=ge.defaultCaptionText,Jt.setStrokeColor=Jt.setStrokeColor.bind(Jt),Jt.setFillColor=Jt.setFillColor.bind(Jt),Jt.setStrokeWidth=Jt.setStrokeWidth.bind(Jt),Jt.setStrokeDasharray=Jt.setStrokeDasharray.bind(Jt),Jt.createVisual=Jt.createVisual.bind(Jt),Jt.sizeCaption=Jt.sizeCaption.bind(Jt),Jt.setCaptionText=Jt.setCaptionText.bind(Jt),Jt.showTextEditor=Jt.showTextEditor.bind(Jt),Jt.positionTextEditor=Jt.positionTextEditor.bind(Jt),Jt.finishTextEditing=Jt.finishTextEditing.bind(Jt),Jt.setFont=Jt.setFont.bind(Jt),Jt.setTextColor=Jt.setTextColor.bind(Jt),Jt.strokePanel=new wt("Line color",xt(ge.defaultColorSet,["transparent"]),Jt.strokeColor),Jt.strokePanel.onColorChanged=Jt.setStrokeColor,Jt.fillPanel=new wt("Fill color",xt(ge.defaultColorSet,["transparent"]),Jt.fillColor,fe),Jt.fillPanel.onColorChanged=Jt.setFillColor,Jt.strokeWidthPanel=new It("Line width",ge.defaultStrokeWidths,ge.defaultStrokeWidth),Jt.strokeWidthPanel.onWidthChanged=Jt.setStrokeWidth,Jt.strokeStylePanel=new Ut("Line style",ge.defaultStrokeDasharrays,ge.defaultStrokeDasharray),Jt.strokeStylePanel.onStyleChanged=Jt.setStrokeDasharray,Jt.fontFamilyPanel=new ne("Font",ge.defaultFontFamilies,ge.defaultFontFamily),Jt.fontFamilyPanel.onFontChanged=Jt.setFont,Jt.textColorPanel=new wt("Text color",ge.defaultColorSet,Jt.textColor,me),Jt.textColorPanel.onColorChanged=Jt.setTextColor,Jt}return pt(Wt,Qt),Wt.prototype.ownsTarget=function(Bt){return!(!Qt.prototype.ownsTarget.call(this,Bt)&&Bt!==this.visual&&Bt!==this.frame&&Bt!==this.captionBg&&Bt!==this.captionElement)},Wt.prototype.createVisual=function(){this.visual=dt.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=dt.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=dt.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=dt.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},Wt.prototype.setCaptionText=function(Bt){this.captionText=Bt,this.captionElement.textContent=this.captionText,this.sizeCaption()},Wt.prototype.pointerDown=function(Bt,te){Qt.prototype.pointerDown.call(this,Bt,te),this.isMoved=!1,this.pointerDownPoint=Bt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Bt),this._state="creating")},Wt.prototype.manipulate=function(Bt){Qt.prototype.manipulate.call(this,Bt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Bt.x-this.pointerDownPoint.x)>5||Math.abs(Bt.y-this.pointerDownPoint.y)>5)},Wt.prototype.resize=function(Bt){Qt.prototype.resize.call(this,Bt),this.setSize()},Wt.prototype.sizeCaption=function(){var Bt=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=Bt.width+2*this.PADDING,this.captionBoxHeight=Bt.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),dt.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),dt.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},Wt.prototype.showTextEditor=function(){var Bt=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(te){te.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(te){te.key==="Enter"&&Bt.finishTextEditing(Bt.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(te){te.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){Bt.finishTextEditing(Bt.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){Bt.finishTextEditing(Bt.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},Wt.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},Wt.prototype.finishTextEditing=function(Bt){this.setCaptionText(Bt.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Wt.prototype.setFont=function(Bt){this.captionElement&&dt.setAttributes(this.captionElement,[["font-family",Bt]]),this.fontFamily=Bt,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Wt.prototype.setTextColor=function(Bt){this.captionElement&&dt.setAttributes(this.captionElement,[["fill",Bt]]),this.textColor=Bt,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Wt.prototype.setSize=function(){Qt.prototype.setSize.call(this),dt.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Wt.prototype.pointerUp=function(Bt){Qt.prototype.pointerUp.call(this,Bt),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Wt.prototype.dblClick=function(Bt,te){Qt.prototype.dblClick.call(this,Bt,te),this.showTextEditor()},Wt.prototype.setStrokeColor=function(Bt){this.strokeColor=Bt,this.frame&&dt.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(Bt),this.stateChanged()},Wt.prototype.setFillColor=function(Bt){this.fillColor=Bt,this.captionBg&&dt.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(Bt),this.stateChanged()},Wt.prototype.setStrokeWidth=function(Bt){this.strokeWidth=Bt,this.frame&&dt.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Wt.prototype.setStrokeDasharray=function(Bt){this.strokeDasharray=Bt,this.frame&&dt.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Wt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Wt.prototype.getState=function(){var Bt=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},Qt.prototype.getState.call(this));return Bt.typeName=this.typeName,Bt},Wt.prototype.restoreState=function(Bt){var te=Bt;this.fillColor=te.fillColor,this.strokeColor=te.strokeColor,this.strokeWidth=te.strokeWidth,this.strokeDasharray=te.strokeDasharray,this.textColor=te.textColor,this.fontFamily=te.fontFamily,this.captionText=te.captionText,this.fontSize=te.fontSize,this.createVisual(),Qt.prototype.restoreState.call(this,Bt),this.setSize()},Wt.prototype.scale=function(Bt,te){Qt.prototype.scale.call(this,Bt,te),this.setSize()},Wt.typeName="CaptionFrameMarker",Wt.title="Caption frame marker",Wt.icon='',Wt}(jt),Ne=function(){function Qt(Wt,Bt){Bt===void 0&&(Bt=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Wt,this.cancelable=Bt}return Object.defineProperty(Qt.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Qt.prototype.preventDefault=function(){this._defaultPrevented=!0},Qt}(),se=function(Qt){function Wt(Bt,te,ge){var Jt=Qt.call(this,Bt,!1)||this;return Jt.dataUrl=te,Jt.state=ge,Jt}return pt(Wt,Qt),Wt}(Ne),Ae=function(Qt){function Wt(Bt,te,ge){ge===void 0&&(ge=!1);var Jt=Qt.call(this,Bt,ge)||this;return Jt.marker=te,Jt}return pt(Wt,Qt),Wt}(Ne),Xe=function(){function Qt(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return Qt.prototype.addEventListener=function(Wt,Bt){this[Wt].push(Bt)},Qt.prototype.removeEventListener=function(Wt,Bt){var te=this[Wt].indexOf(Bt);te>-1&&this[Wt].splice(te,1)},Qt}(),Be=function(){function Qt(Wt){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Gt,this._isOpen=!1,this.undoRedoManager=new Se,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new Xe,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Qt.instanceCounter++,this.styles=new E(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Wt,this.targetRoot=document.body,this.width=Wt.clientWidth,this.height=Wt.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(Qt.prototype,"ALL_MARKER_TYPES",{get:function(){return[Xt,ve,re,ae,He,_e,ke,pe,je,we,Ht,xe,le]},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Xt,ve,re,ae,_e,ke,pe]},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Xt,ve,re,ae,ke]},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Wt){var Bt=this;this._availableMarkerTypes.splice(0),Wt.forEach(function(te){if(typeof te=="string"){var ge=Bt.ALL_MARKER_TYPES.find(function(Jt){return Jt.typeName===te});ge!==void 0&&Bt._availableMarkerTypes.push(ge)}else Bt._availableMarkerTypes.push(te)})},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Wt){this._zoomLevel=Wt,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Qt.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),ft.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Qt.prototype.show=function(){var Wt=this;this.styles.styleSheetRoot===void 0&<.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=lt.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(Bt){return Bt(new Ne(Wt))})},Qt.prototype.render=function(){return vt(this,void 0,void 0,function(){var Wt;return yt(this,function(Bt){switch(Bt.label){case 0:return this.setCurrentMarker(),(Wt=new ct).naturalSize=this.renderAtNaturalSize,Wt.imageType=this.renderImageType,Wt.imageQuality=this.renderImageQuality,Wt.markersOnly=this.renderMarkersOnly,Wt.width=this.renderWidth,Wt.height=this.renderHeight,[4,Wt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return Bt.sent(),[4,Wt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,Bt.sent()]}})})},Qt.prototype.close=function(Wt){var Bt=this;if(Wt===void 0&&(Wt=!1),this.isOpen){var te=!1;Wt||this.eventListeners.beforeclose.forEach(function(ge){var Jt=new Ne(Bt,!0);ge(Jt),Jt.defaultPrevented&&(te=!0)}),te||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(ge){return ge(new Ne(Bt))}),this.detachEvents(),this._isOpen=!1)}},Qt.prototype.addMarkersToToolbar=function(){for(var Wt,Bt=[],te=0;tethis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Wt:this.editorCanvas.clientWidth,te=Bt',Wt.title="Powered by marker.js",Wt.style.display="grid",Wt.style.alignItems="center",Wt.style.justifyItems="center",Wt.style.padding="3px",Wt.style.width="20px",Wt.style.height="20px",this.logoUI.appendChild(Wt),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Qt.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},Qt.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},Qt.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Qt.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var Wt=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Wt+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new it(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop-1&&this.markers.splice(this.markers.indexOf(Wt),1),Wt.dispose()},Qt.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},Qt.prototype.toolbarButtonClicked=function(Wt,Bt){if(Wt==="marker"&&Bt!==void 0)this.createNewMarker(Bt);else if(Wt==="action")switch(Bt){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},Qt.prototype.deleteSelectedMarker=function(){var Wt=this;if(this._currentMarker!==void 0){var Bt=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ge){var Jt=new Ae(Wt,Wt._currentMarker,!0);ge(Jt),Jt.defaultPrevented&&(Bt=!0)}),!Bt){var te=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(ge){return ge(new Ae(Wt,te))})}}},Qt.prototype.clear=function(){var Wt=this,Bt=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Ie){var Ue=new Ae(Wt,void 0,!0);Ie(Ue),Ue.defaultPrevented&&(Bt=!0)}),!Bt)){this.setCurrentMarker();for(var te=function(Ie){var Ue=ge.markers[Ie];ge.setCurrentMarker(ge.markers[Ie]),ge._currentMarker.dispose(),ge.markerImage.removeChild(ge._currentMarker.container),ge.markers.splice(ge.markers.indexOf(ge._currentMarker),1),ge.eventListeners.markerdelete.forEach(function(Je){return Je(new Ae(Wt,Ue))})},ge=this,Jt=this.markers.length-1;Jt>=0;Jt--)te(Jt);this.addUndoStep()}},Object.defineProperty(Qt.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Qt.prototype.showNotesEditor=function(){var Wt;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(Wt=this._currentMarker.notes)!==null&&Wt!==void 0?Wt:"",this.overlayContainer.appendChild(this.notesArea))},Qt.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},Qt.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Qt.prototype.addUndoStep=function(){var Wt=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var Bt=this.getState(),te=this.undoRedoManager.getLastUndoStep();if(!te||te.width===Bt.width&&te.height===Bt.height){var ge=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(Bt),ge1&&this.panTo({x:Wt.clientX,y:Wt.clientY}))},Qt.prototype.onPointerUp=function(Wt){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Wt.clientX,Wt.clientY)),this.isDragging=!1,this.addUndoStep()},Qt.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Qt.prototype.onKeyUp=function(Wt){this._currentMarker===void 0||this.notesArea!==void 0||Wt.key!=="Delete"&&Wt.key!=="Backspace"||this.deleteSelectedMarker()},Qt.prototype.clientToLocalCoordinates=function(Wt,Bt){var te=this.markerImage.getBoundingClientRect();return{x:(Wt-te.left)/this.zoomLevel,y:(Bt-te.top)/this.zoomLevel}},Qt.prototype.onWindowResize=function(){this.positionUI()},Qt.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Wt=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Wt+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},Qt.prototype.addLicenseKey=function(Wt){ft.addKey(Wt)},Qt.prototype.addEventListener=function(Wt,Bt){this.eventListeners.addEventListener(Wt,Bt)},Qt.prototype.removeEventListener=function(Wt,Bt){this.eventListeners.removeEventListener(Wt,Bt)},Qt.prototype.renderState=function(Wt){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Wt),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Qt.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Qt.prototype.focus=function(){var Wt=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(Bt){return Bt(new Ne(Wt))}))},Qt.prototype.blur=function(){var Wt=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(Bt){return Bt(new Ne(Wt))}))},Qt.instanceCounter=0,Qt}(),Te=Rt(99064),ue=Rt(955),$t=(Qt,Wt,Bt)=>new Promise((te,ge)=>{var Jt=Je=>{try{Ue(Bt.next(Je))}catch(Ze){ge(Ze)}},Ie=Je=>{try{Ue(Bt.throw(Je))}catch(Ze){ge(Ze)}},Ue=Je=>Je.done?te(Je.value):Promise.resolve(Je.value).then(Jt,Ie);Ue((Bt=Bt.apply(Qt,Wt)).next())}),ye=({data:Qt,className:Wt,fullWidth:Bt,style:te={},onClose:ge,onOk:Jt,showFullTools:Ie,noAssociationId:Ue})=>{const Je=(0,Ft.useRef)(null),Ze=(0,Ft.useRef)(null),nn=(0,Ft.useRef)(null),fn=(0,Ft.useRef)(null),[An,En]=(0,Ft.useState)(!1),[Dn,ii]=(0,Ft.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,Ft.useEffect)(()=>(nn.current||(nn.current=document.createElement("style"),document.head.appendChild(nn.current)),Qt!=null&&Qt.visible?(document.body.setAttribute("data-custom","y-hidden"),nn.current.innerHTML=" html { overflow-y: hidden; }",Qt!=null&&Qt.src&&mi()):(document.body.removeAttribute("data-custom"),nn.current&&(document.head.removeChild(nn.current),nn.current=null)),()=>{document.body.removeAttribute("data-custom"),nn.current&&(document.head.removeChild(nn.current),nn.current=null)}),[Qt==null?void 0:Qt.visible]);const mi=()=>$t(void 0,null,function*(){En(!0),ii("\u6B63\u5728\u52A0\u8F7D\u4E2D");const pi=yield(0,ue.ZJ)(Qt==null?void 0:Qt.src);Je.current.src="",Je.current.src=pi,Je.current.onload=function(){ki()},En(!1),ii("")}),Ti=pi=>$t(void 0,null,function*(){En(!0),ii("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Bi=yield(0,Te.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Qt.title,file:pi.dataUrl}});Bi!=null&&Bi.id&&!Ue?(yield(0,Te.ZP)(`/api/attachments/${Qt.id}/add_subitem.json`,{method:"post",body:{subitem_id:Bi==null?void 0:Bi.id,settings:JSON.stringify(pi.state)}})).status===0&&Jt():Bi!=null&&Bi.id&&Jt(Bi),En(!1),ii("")}),Oi=()=>{const pi=document.querySelector('a[href="https://markerjs.com/"]');pi&&pi.parentNode&&(pi.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(Or=>{const yr=document.querySelector(Or.name);yr&&yr.setAttribute("title",Or.title)})},ki=()=>{Ze.current=new Be(Je.current),Ze.current.targetRoot=fn.current,Ze.current.addEventListener("render",Ti),Ze.current.addEventListener("beforeclose",ge),Ie&&(Ze.current.availableMarkerTypes=Ze.current.ALL_MARKER_TYPES,Ze.current.uiStyleSettings.redoButtonVisible=!0,Ze.current.uiStyleSettings.notesButtonVisible=!0,Ze.current.uiStyleSettings.zoomButtonVisible=!0,Ze.current.uiStyleSettings.zoomOutButtonVisible=!0,Ze.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Ze.current.uiStyleSettings,Ze.current.show(),Qt!=null&&Qt.snapshotData&&Ze.current.restoreState(Qt.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Oi()},300)};return Ft.createElement(Ft.Fragment,null,(Qt==null?void 0:Qt.visible)&&Ft.createElement(Ct.Z,{spinning:An,tip:Dn,style:{position:"absolute",width:"100vw"}},Ft.createElement("div",{ref:fn,className:kt()(ie.imageDimensions,Wt,Bt?ie.fullWidth:""),style:te},Ft.createElement("img",{className:ie.img,ref:Je}))))}},41588:function(tn,Ke,Rt){"use strict";var Ft=Rt(59301),ie=Rt(95237),rt=Rt(43604),kt=Rt(99313),Ct=Rt(3113),St=Rt(85149),pt=Rt(88010),vt=Rt(48136),yt=Rt(59301);const xt=(0,Ft.forwardRef)(({callback:dt,showSaveButton:ft,value:ct=""},lt)=>{const E=(0,Ft.useRef)(),z=[{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 "}]}]}],ot=[{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 + `,En.style.marginRight="5px",Ze.appendChild(En)}Jt.typeBoxes.push(Ze)},Jt=this,Ie=0;Ie<4;Ie++)me(Ie);return te},Wt.prototype.setCurrentType=function(Bt,te){var me=this;this.currentType=Bt,this.typeBoxes.forEach(function(Jt){Jt.style.borderColor=Jt===te?me.uiStyleSettings!==void 0?me.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Wt}(ut),re=function(Qt){function Wt(Bt,te,me){var Jt=Qt.call(this,Bt,te,me)||this;return Jt.arrowType="end",Jt.arrowBaseHeight=10,Jt.arrowBaseWidth=10,Jt.getArrowPoints=Jt.getArrowPoints.bind(Jt),Jt.setArrowType=Jt.setArrowType.bind(Jt),Jt.arrowTypePanel=new Kt("Arrow type","end"),Jt.arrowTypePanel.onArrowTypeChanged=Jt.setArrowType,Jt}return pt(Wt,Qt),Wt.prototype.ownsTarget=function(Bt){return!(!Qt.prototype.ownsTarget.call(this,Bt)&&Bt!==this.arrow1&&Bt!==this.arrow2)},Wt.prototype.getArrowPoints=function(Bt,te){var me=this.arrowBaseWidth+2*this.strokeWidth,Jt=this.arrowBaseHeight+2*this.strokeWidth;return Bt-me/2+","+(te+Jt/2)+" "+Bt+","+(te-Jt/2)+" "+(Bt+me/2)+","+(te+Jt/2)},Wt.prototype.createTips=function(){this.arrow1=dt.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(dt.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=dt.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(dt.createTransform()),this.visual.appendChild(this.arrow2)},Wt.prototype.pointerDown=function(Bt,te){Qt.prototype.pointerDown.call(this,Bt,te),this.state==="creating"&&this.createTips()},Wt.prototype.adjustVisual=function(){if(Qt.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",dt.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),dt.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var Bt=0;Math.abs(this.x1-this.x2)>.1&&(Bt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var te=this.arrow1.transform.baseVal.getItem(0);te.setRotate(Bt,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(te,0);var me=this.arrow2.transform.baseVal.getItem(0);me.setRotate(Bt+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(me,0)}},Wt.prototype.setArrowType=function(Bt){this.arrowType=Bt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Wt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Wt.prototype.getState=function(){var Bt=Object.assign({arrowType:this.arrowType},Qt.prototype.getState.call(this));return Bt.typeName=Wt.typeName,Bt},Wt.prototype.restoreState=function(Bt){Qt.prototype.restoreState.call(this,Bt);var te=Bt;this.arrowType=te.arrowType,this.createTips(),this.adjustVisual()},Wt.typeName="ArrowMarker",Wt.title="Arrow marker",Wt.icon='',Wt}(Ht),we=function(Qt){function Wt(Bt,te,me){var Jt=Qt.call(this,Bt,te,me)||this;return Jt.fillColor=me.defaultFillColor,Jt.strokeWidth=0,Jt.fillPanel=new wt("Color",me.defaultColorSet,me.defaultFillColor),Jt.fillPanel.onColorChanged=Jt.setFillColor,Jt}return pt(Wt,Qt),Object.defineProperty(Wt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Wt.prototype.getState=function(){var Bt=Qt.prototype.getState.call(this);return Bt.typeName=Wt.typeName,Bt},Wt.typeName="CoverMarker",Wt.title="Cover marker",Wt.icon='',Wt}(Lt),ke=function(Qt){function Wt(Bt,te,me,Jt){var Ie=Qt.call(this,Bt,Jt||'')||this;return Ie.opacities=[],Ie.opacityBoxes=[],Ie.opacities=te,Ie.currentOpacity=me,Ie.setCurrentOpacity=Ie.setCurrentOpacity.bind(Ie),Ie}return pt(Wt,Qt),Wt.prototype.getUi=function(){var Bt=this,te=document.createElement("div");return te.style.display="flex",te.style.overflow="hidden",te.style.flexGrow="2",te.style.justifyContent="space-between",this.opacities.forEach(function(me){var Jt=document.createElement("div");Jt.style.display="flex",Jt.style.alignItems="center",Jt.style.justifyContent="center",Jt.style.padding="5px",Jt.style.borderWidth="2px",Jt.style.borderStyle="solid",Jt.style.borderColor=me===Bt.currentOpacity?Bt.uiStyleSettings.toolboxAccentColor:"transparent",Jt.addEventListener("click",function(){Bt.setCurrentOpacity(me,Jt)}),te.appendChild(Jt);var Ie=document.createElement("div");Ie.innerText=100*me+"%",Jt.appendChild(Ie),Bt.opacityBoxes.push(Jt)}),te},Wt.prototype.setCurrentOpacity=function(Bt,te){var me=this;this.currentOpacity=Bt,this.opacityBoxes.forEach(function(Jt){Jt.style.borderColor=Jt===te?me.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Wt}(ut),Me=function(Qt){function Wt(Bt,te,me){var Jt=Qt.call(this,Bt,te,me)||this;return Jt.setOpacity=Jt.setOpacity.bind(Jt),Jt.fillColor=me.defaultHighlightColor,Jt.strokeWidth=0,Jt.opacity=me.defaultHighlightOpacity,Jt.fillPanel=new wt("Color",me.defaultColorSet,Jt.fillColor),Jt.fillPanel.onColorChanged=Jt.setFillColor,Jt.opacityPanel=new ke("Opacity",me.defaultOpacitySteps,Jt.opacity),Jt.opacityPanel.onOpacityChanged=Jt.setOpacity,Jt}return pt(Wt,Qt),Wt.prototype.setOpacity=function(Bt){this.opacity=Bt,this.visual&&dt.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Wt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Wt.prototype.getState=function(){var Bt=Qt.prototype.getState.call(this);return Bt.typeName=Wt.typeName,Bt},Wt.typeName="HighlightMarker",Wt.title="Highlight marker",Wt.icon='',Wt}(we),ge='',fe='',de=function(Qt){function Wt(Bt,te,me){var Jt=Qt.call(this,Bt,te,me)||this;return Jt.bgColor="transparent",Jt.tipPosition={x:0,y:0},Jt.tipBase1Position={x:0,y:0},Jt.tipBase2Position={x:0,y:0},Jt.tipMoving=!1,Jt.color=me.defaultStrokeColor,Jt.bgColor=me.defaultFillColor,Jt.fontFamily=me.defaultFontFamily,Jt.defaultSize={x:100,y:30},Jt.setBgColor=Jt.setBgColor.bind(Jt),Jt.getTipPoints=Jt.getTipPoints.bind(Jt),Jt.positionTip=Jt.positionTip.bind(Jt),Jt.setTipPoints=Jt.setTipPoints.bind(Jt),Jt.colorPanel=new wt("Text color",me.defaultColorSet,Jt.color,ge),Jt.colorPanel.onColorChanged=Jt.setColor,Jt.bgColorPanel=new wt("Fill color",me.defaultColorSet,Jt.bgColor,fe),Jt.bgColorPanel.onColorChanged=Jt.setBgColor,Jt.fontFamilyPanel=new ne("Font",me.defaultFontFamilies,me.defaultFontFamily),Jt.fontFamilyPanel.onFontChanged=Jt.setFont,Jt.tipGrip=new _t,Jt.tipGrip.visual.transform.baseVal.appendItem(dt.createTransform()),Jt.controlBox.appendChild(Jt.tipGrip.visual),Jt}return pt(Wt,Qt),Wt.prototype.ownsTarget=function(Bt){return Qt.prototype.ownsTarget.call(this,Bt)||this.tipGrip.ownsTarget(Bt)||this.tip===Bt},Wt.prototype.createTip=function(){dt.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=dt.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Wt.prototype.pointerDown=function(Bt,te){this.state==="new"&&Qt.prototype.pointerDown.call(this,Bt,te),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(te)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Qt.prototype.pointerDown.call(this,Bt,te)},Wt.prototype.pointerUp=function(Bt){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Qt.prototype.pointerUp.call(this,Bt);else{var te=this.state==="creating";Qt.prototype.pointerUp.call(this,Bt),this.setTipPoints(te),this.positionTip()}},Wt.prototype.manipulate=function(Bt){if(this.tipMoving){var te=this.unrotatePoint(Bt);this.tipPosition={x:te.x-this.manipulationStartLeft,y:te.y-this.manipulationStartTop},this.positionTip()}else Qt.prototype.manipulate.call(this,Bt)},Wt.prototype.setBgColor=function(Bt){this.bgRectangle&&this.tip&&(dt.setAttributes(this.bgRectangle,[["fill",Bt]]),dt.setAttributes(this.tip,[["fill",Bt]])),this.bgColor=Bt,this.fillColorChanged(Bt)},Wt.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},Wt.prototype.setTipPoints=function(Bt){Bt===void 0&&(Bt=!1);var te=Math.min(this.height/2,15),me=this.height/5;Bt&&(this.tipPosition={x:te+me/2,y:this.height+20});var Jt=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?Jt.1)){var Bt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),te=this.tip1.transform.baseVal.getItem(0);te.setRotate(Bt,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(te,0);var me=this.tip2.transform.baseVal.getItem(0);me.setRotate(Bt+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(me,0)}},Object.defineProperty(Wt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Wt.prototype.getState=function(){var Bt=Qt.prototype.getState.call(this);return Bt.typeName=Wt.typeName,Bt},Wt.prototype.restoreState=function(Bt){Qt.prototype.restoreState.call(this,Bt),this.createTips(),this.adjustVisual()},Wt.typeName="MeasurementMarker",Wt.title="Measurement marker",Wt.icon='',Wt}(Ht),He=function(Qt){function Wt(Bt,te,me){var Jt=Qt.call(this,Bt,te,me)||this;return Jt.strokePanel.colors=me.defaultColorSet,Jt.fillColor="transparent",Jt}return pt(Wt,Qt),Object.defineProperty(Wt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Wt.prototype.getState=function(){var Bt=Qt.prototype.getState.call(this);return Bt.typeName=Wt.typeName,Bt},Wt.typeName="EllipseFrameMarker",Wt.title="Ellipse frame marker",Wt.icon='',Wt}(_e),Se=function(){function Qt(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Qt.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Qt.prototype.addUndoStep=function(Wt){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Wt)||(this.undoStack.push(Wt),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Wt)&&this.redoStack.splice(0,this.redoStack.length))},Qt.prototype.replaceLastUndoStep=function(Wt){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Wt)},Qt.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Qt.prototype.undo=function(){if(this.undoStack.length>1){var Wt=this.undoStack.pop();return Wt!==void 0&&this.redoStack.push(Wt),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Qt.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Qt}(),xe=function(Qt){function Wt(Bt,te,me){var Jt=Qt.call(this,Bt,te,me)||this;return Jt.strokeColor="transparent",Jt.strokeWidth=0,Jt.strokeDasharray="",Jt.curveX=0,Jt.curveY=0,Jt.manipulationStartCurveX=0,Jt.manipulationStartCurveY=0,Jt.setStrokeColor=Jt.setStrokeColor.bind(Jt),Jt.setStrokeWidth=Jt.setStrokeWidth.bind(Jt),Jt.setStrokeDasharray=Jt.setStrokeDasharray.bind(Jt),Jt.positionGrips=Jt.positionGrips.bind(Jt),Jt.addControlGrips=Jt.addControlGrips.bind(Jt),Jt.adjustVisual=Jt.adjustVisual.bind(Jt),Jt.setupControlBox=Jt.setupControlBox.bind(Jt),Jt.resize=Jt.resize.bind(Jt),Jt.strokeColor=me.defaultColor,Jt.strokeWidth=me.defaultStrokeWidth,Jt.strokeDasharray=me.defaultStrokeDasharray,Jt.strokePanel=new wt("Line color",me.defaultColorSet,me.defaultColor),Jt.strokePanel.onColorChanged=Jt.setStrokeColor,Jt.strokeWidthPanel=new It("Line width",me.defaultStrokeWidths,me.defaultStrokeWidth),Jt.strokeWidthPanel.onWidthChanged=Jt.setStrokeWidth,Jt.strokeStylePanel=new Ut("Line style",me.defaultStrokeDasharrays,me.defaultStrokeDasharray),Jt.strokeStylePanel.onStyleChanged=Jt.setStrokeDasharray,Jt}return pt(Wt,Qt),Wt.prototype.ownsTarget=function(Bt){return!(!Qt.prototype.ownsTarget.call(this,Bt)&&Bt!==this.visual&&Bt!==this.selectorCurve&&Bt!==this.visibleCurve&&!this.curveGrip.ownsTarget(Bt))},Wt.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Wt.prototype.createVisual=function(){this.visual=dt.createGroup(),this.selectorCurve=dt.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=dt.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},Wt.prototype.pointerDown=function(Bt,te){Qt.prototype.pointerDown.call(this,Bt,te),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=Bt.x,this.curveY=Bt.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(te)&&(this.activeGrip=this.curveGrip,this._state="resize")},Wt.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),dt.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),dt.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),dt.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Wt.prototype.setupControlBox=function(){Qt.prototype.setupControlBox.call(this),this.curveControlLine1=dt.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=dt.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},Wt.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Qt.prototype.addControlGrips.call(this)},Wt.prototype.positionGrips=function(){Qt.prototype.positionGrips.call(this);var Bt=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-Bt/2,this.curveY-Bt/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},Wt.prototype.manipulate=function(Bt){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+Bt.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+Bt.y-this.manipulationStartY),Qt.prototype.manipulate.call(this,Bt)},Wt.prototype.resize=function(Bt){this.activeGrip===this.curveGrip&&(this.curveX=Bt.x,this.curveY=Bt.y),Qt.prototype.resize.call(this,Bt),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},Wt.prototype.setStrokeColor=function(Bt){this.strokeColor=Bt,this.adjustVisual(),this.colorChanged(Bt)},Wt.prototype.setStrokeWidth=function(Bt){this.strokeWidth=Bt,this.adjustVisual()},Wt.prototype.setStrokeDasharray=function(Bt){this.strokeDasharray=Bt,this.adjustVisual()},Wt.prototype.scale=function(Bt,te){this.curveX=this.curveX*Bt,this.curveY=this.curveY*te,Qt.prototype.scale.call(this,Bt,te)},Object.defineProperty(Wt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Wt.prototype.getState=function(){var Bt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Qt.prototype.getState.call(this));return Bt.typeName=Wt.typeName,Bt},Wt.prototype.restoreState=function(Bt){Qt.prototype.restoreState.call(this,Bt);var te=Bt;this.strokeColor=te.strokeColor,this.strokeWidth=te.strokeWidth,this.strokeDasharray=te.strokeDasharray,this.curveX=te.curveX,this.curveY=te.curveY,this.createVisual(),this.adjustVisual()},Wt.typeName="CurveMarker",Wt.title="Curve marker",Wt.icon='',Wt}(Vt),le=function(Qt){function Wt(Bt,te,me){var Jt=Qt.call(this,Bt,te,me)||this;return Jt.fillColor="transparent",Jt.strokeColor="transparent",Jt.strokeWidth=0,Jt.strokeDasharray="",Jt.textColor="transparent",Jt.fontSize="1rem",Jt.isMoved=!1,Jt.captionText="Caption",Jt.PADDING=5,Jt.captionBoxWidth=0,Jt.captionBoxHeight=0,Jt.strokeColor=me.defaultColor,Jt.strokeWidth=me.defaultStrokeWidth,Jt.strokeDasharray=me.defaultStrokeDasharray,Jt.fillColor=me.defaultFillColor,Jt.textColor=me.defaultStrokeColor,Jt.fontFamily=me.defaultFontFamily,Jt.fontSize=me.defaultCaptionFontSize,Jt.captionText=me.defaultCaptionText,Jt.setStrokeColor=Jt.setStrokeColor.bind(Jt),Jt.setFillColor=Jt.setFillColor.bind(Jt),Jt.setStrokeWidth=Jt.setStrokeWidth.bind(Jt),Jt.setStrokeDasharray=Jt.setStrokeDasharray.bind(Jt),Jt.createVisual=Jt.createVisual.bind(Jt),Jt.sizeCaption=Jt.sizeCaption.bind(Jt),Jt.setCaptionText=Jt.setCaptionText.bind(Jt),Jt.showTextEditor=Jt.showTextEditor.bind(Jt),Jt.positionTextEditor=Jt.positionTextEditor.bind(Jt),Jt.finishTextEditing=Jt.finishTextEditing.bind(Jt),Jt.setFont=Jt.setFont.bind(Jt),Jt.setTextColor=Jt.setTextColor.bind(Jt),Jt.strokePanel=new wt("Line color",xt(me.defaultColorSet,["transparent"]),Jt.strokeColor),Jt.strokePanel.onColorChanged=Jt.setStrokeColor,Jt.fillPanel=new wt("Fill color",xt(me.defaultColorSet,["transparent"]),Jt.fillColor,fe),Jt.fillPanel.onColorChanged=Jt.setFillColor,Jt.strokeWidthPanel=new It("Line width",me.defaultStrokeWidths,me.defaultStrokeWidth),Jt.strokeWidthPanel.onWidthChanged=Jt.setStrokeWidth,Jt.strokeStylePanel=new Ut("Line style",me.defaultStrokeDasharrays,me.defaultStrokeDasharray),Jt.strokeStylePanel.onStyleChanged=Jt.setStrokeDasharray,Jt.fontFamilyPanel=new ne("Font",me.defaultFontFamilies,me.defaultFontFamily),Jt.fontFamilyPanel.onFontChanged=Jt.setFont,Jt.textColorPanel=new wt("Text color",me.defaultColorSet,Jt.textColor,ge),Jt.textColorPanel.onColorChanged=Jt.setTextColor,Jt}return pt(Wt,Qt),Wt.prototype.ownsTarget=function(Bt){return!(!Qt.prototype.ownsTarget.call(this,Bt)&&Bt!==this.visual&&Bt!==this.frame&&Bt!==this.captionBg&&Bt!==this.captionElement)},Wt.prototype.createVisual=function(){this.visual=dt.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=dt.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=dt.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=dt.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},Wt.prototype.setCaptionText=function(Bt){this.captionText=Bt,this.captionElement.textContent=this.captionText,this.sizeCaption()},Wt.prototype.pointerDown=function(Bt,te){Qt.prototype.pointerDown.call(this,Bt,te),this.isMoved=!1,this.pointerDownPoint=Bt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Bt),this._state="creating")},Wt.prototype.manipulate=function(Bt){Qt.prototype.manipulate.call(this,Bt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Bt.x-this.pointerDownPoint.x)>5||Math.abs(Bt.y-this.pointerDownPoint.y)>5)},Wt.prototype.resize=function(Bt){Qt.prototype.resize.call(this,Bt),this.setSize()},Wt.prototype.sizeCaption=function(){var Bt=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=Bt.width+2*this.PADDING,this.captionBoxHeight=Bt.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),dt.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),dt.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},Wt.prototype.showTextEditor=function(){var Bt=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(te){te.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(te){te.key==="Enter"&&Bt.finishTextEditing(Bt.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(te){te.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){Bt.finishTextEditing(Bt.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){Bt.finishTextEditing(Bt.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},Wt.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},Wt.prototype.finishTextEditing=function(Bt){this.setCaptionText(Bt.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Wt.prototype.setFont=function(Bt){this.captionElement&&dt.setAttributes(this.captionElement,[["font-family",Bt]]),this.fontFamily=Bt,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Wt.prototype.setTextColor=function(Bt){this.captionElement&&dt.setAttributes(this.captionElement,[["fill",Bt]]),this.textColor=Bt,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Wt.prototype.setSize=function(){Qt.prototype.setSize.call(this),dt.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Wt.prototype.pointerUp=function(Bt){Qt.prototype.pointerUp.call(this,Bt),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Wt.prototype.dblClick=function(Bt,te){Qt.prototype.dblClick.call(this,Bt,te),this.showTextEditor()},Wt.prototype.setStrokeColor=function(Bt){this.strokeColor=Bt,this.frame&&dt.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(Bt),this.stateChanged()},Wt.prototype.setFillColor=function(Bt){this.fillColor=Bt,this.captionBg&&dt.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(Bt),this.stateChanged()},Wt.prototype.setStrokeWidth=function(Bt){this.strokeWidth=Bt,this.frame&&dt.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Wt.prototype.setStrokeDasharray=function(Bt){this.strokeDasharray=Bt,this.frame&&dt.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Wt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Wt.prototype.getState=function(){var Bt=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},Qt.prototype.getState.call(this));return Bt.typeName=this.typeName,Bt},Wt.prototype.restoreState=function(Bt){var te=Bt;this.fillColor=te.fillColor,this.strokeColor=te.strokeColor,this.strokeWidth=te.strokeWidth,this.strokeDasharray=te.strokeDasharray,this.textColor=te.textColor,this.fontFamily=te.fontFamily,this.captionText=te.captionText,this.fontSize=te.fontSize,this.createVisual(),Qt.prototype.restoreState.call(this,Bt),this.setSize()},Wt.prototype.scale=function(Bt,te){Qt.prototype.scale.call(this,Bt,te),this.setSize()},Wt.typeName="CaptionFrameMarker",Wt.title="Caption frame marker",Wt.icon='',Wt}(jt),Ne=function(){function Qt(Wt,Bt){Bt===void 0&&(Bt=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Wt,this.cancelable=Bt}return Object.defineProperty(Qt.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Qt.prototype.preventDefault=function(){this._defaultPrevented=!0},Qt}(),ae=function(Qt){function Wt(Bt,te,me){var Jt=Qt.call(this,Bt,!1)||this;return Jt.dataUrl=te,Jt.state=me,Jt}return pt(Wt,Qt),Wt}(Ne),Ae=function(Qt){function Wt(Bt,te,me){me===void 0&&(me=!1);var Jt=Qt.call(this,Bt,me)||this;return Jt.marker=te,Jt}return pt(Wt,Qt),Wt}(Ne),Xe=function(){function Qt(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return Qt.prototype.addEventListener=function(Wt,Bt){this[Wt].push(Bt)},Qt.prototype.removeEventListener=function(Wt,Bt){var te=this[Wt].indexOf(Bt);te>-1&&this[Wt].splice(te,1)},Qt}(),Be=function(){function Qt(Wt){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Gt,this._isOpen=!1,this.undoRedoManager=new Se,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new Xe,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Qt.instanceCounter++,this.styles=new E(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Wt,this.targetRoot=document.body,this.width=Wt.clientWidth,this.height=Wt.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(Qt.prototype,"ALL_MARKER_TYPES",{get:function(){return[Xt,ve,re,se,He,_e,Me,de,Oe,we,Ht,xe,le]},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Xt,ve,re,se,_e,Me,de]},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Xt,ve,re,se,Me]},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Wt){var Bt=this;this._availableMarkerTypes.splice(0),Wt.forEach(function(te){if(typeof te=="string"){var me=Bt.ALL_MARKER_TYPES.find(function(Jt){return Jt.typeName===te});me!==void 0&&Bt._availableMarkerTypes.push(me)}else Bt._availableMarkerTypes.push(te)})},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Wt){this._zoomLevel=Wt,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(Qt.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Qt.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),ft.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Qt.prototype.show=function(){var Wt=this;this.styles.styleSheetRoot===void 0&<.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=lt.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(Bt){return Bt(new Ne(Wt))})},Qt.prototype.render=function(){return vt(this,void 0,void 0,function(){var Wt;return yt(this,function(Bt){switch(Bt.label){case 0:return this.setCurrentMarker(),(Wt=new ct).naturalSize=this.renderAtNaturalSize,Wt.imageType=this.renderImageType,Wt.imageQuality=this.renderImageQuality,Wt.markersOnly=this.renderMarkersOnly,Wt.width=this.renderWidth,Wt.height=this.renderHeight,[4,Wt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return Bt.sent(),[4,Wt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,Bt.sent()]}})})},Qt.prototype.close=function(Wt){var Bt=this;if(Wt===void 0&&(Wt=!1),this.isOpen){var te=!1;Wt||this.eventListeners.beforeclose.forEach(function(me){var Jt=new Ne(Bt,!0);me(Jt),Jt.defaultPrevented&&(te=!0)}),te||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(me){return me(new Ne(Bt))}),this.detachEvents(),this._isOpen=!1)}},Qt.prototype.addMarkersToToolbar=function(){for(var Wt,Bt=[],te=0;tethis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Wt:this.editorCanvas.clientWidth,te=Bt',Wt.title="Powered by marker.js",Wt.style.display="grid",Wt.style.alignItems="center",Wt.style.justifyItems="center",Wt.style.padding="3px",Wt.style.width="20px",Wt.style.height="20px",this.logoUI.appendChild(Wt),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Qt.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},Qt.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},Qt.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Qt.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var Wt=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Wt+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new it(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop-1&&this.markers.splice(this.markers.indexOf(Wt),1),Wt.dispose()},Qt.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},Qt.prototype.toolbarButtonClicked=function(Wt,Bt){if(Wt==="marker"&&Bt!==void 0)this.createNewMarker(Bt);else if(Wt==="action")switch(Bt){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},Qt.prototype.deleteSelectedMarker=function(){var Wt=this;if(this._currentMarker!==void 0){var Bt=!1;if(this.eventListeners.markerbeforedelete.forEach(function(me){var Jt=new Ae(Wt,Wt._currentMarker,!0);me(Jt),Jt.defaultPrevented&&(Bt=!0)}),!Bt){var te=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(me){return me(new Ae(Wt,te))})}}},Qt.prototype.clear=function(){var Wt=this,Bt=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Ie){var Ue=new Ae(Wt,void 0,!0);Ie(Ue),Ue.defaultPrevented&&(Bt=!0)}),!Bt)){this.setCurrentMarker();for(var te=function(Ie){var Ue=me.markers[Ie];me.setCurrentMarker(me.markers[Ie]),me._currentMarker.dispose(),me.markerImage.removeChild(me._currentMarker.container),me.markers.splice(me.markers.indexOf(me._currentMarker),1),me.eventListeners.markerdelete.forEach(function(Je){return Je(new Ae(Wt,Ue))})},me=this,Jt=this.markers.length-1;Jt>=0;Jt--)te(Jt);this.addUndoStep()}},Object.defineProperty(Qt.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Qt.prototype.showNotesEditor=function(){var Wt;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(Wt=this._currentMarker.notes)!==null&&Wt!==void 0?Wt:"",this.overlayContainer.appendChild(this.notesArea))},Qt.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},Qt.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Qt.prototype.addUndoStep=function(){var Wt=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var Bt=this.getState(),te=this.undoRedoManager.getLastUndoStep();if(!te||te.width===Bt.width&&te.height===Bt.height){var me=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(Bt),me1&&this.panTo({x:Wt.clientX,y:Wt.clientY}))},Qt.prototype.onPointerUp=function(Wt){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Wt.clientX,Wt.clientY)),this.isDragging=!1,this.addUndoStep()},Qt.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Qt.prototype.onKeyUp=function(Wt){this._currentMarker===void 0||this.notesArea!==void 0||Wt.key!=="Delete"&&Wt.key!=="Backspace"||this.deleteSelectedMarker()},Qt.prototype.clientToLocalCoordinates=function(Wt,Bt){var te=this.markerImage.getBoundingClientRect();return{x:(Wt-te.left)/this.zoomLevel,y:(Bt-te.top)/this.zoomLevel}},Qt.prototype.onWindowResize=function(){this.positionUI()},Qt.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Wt=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Wt+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},Qt.prototype.addLicenseKey=function(Wt){ft.addKey(Wt)},Qt.prototype.addEventListener=function(Wt,Bt){this.eventListeners.addEventListener(Wt,Bt)},Qt.prototype.removeEventListener=function(Wt,Bt){this.eventListeners.removeEventListener(Wt,Bt)},Qt.prototype.renderState=function(Wt){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Wt),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Qt.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Qt.prototype.focus=function(){var Wt=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(Bt){return Bt(new Ne(Wt))}))},Qt.prototype.blur=function(){var Wt=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(Bt){return Bt(new Ne(Wt))}))},Qt.instanceCounter=0,Qt}(),Te=Rt(99064),ue=Rt(955),$t=(Qt,Wt,Bt)=>new Promise((te,me)=>{var Jt=Je=>{try{Ue(Bt.next(Je))}catch(Ze){me(Ze)}},Ie=Je=>{try{Ue(Bt.throw(Je))}catch(Ze){me(Ze)}},Ue=Je=>Je.done?te(Je.value):Promise.resolve(Je.value).then(Jt,Ie);Ue((Bt=Bt.apply(Qt,Wt)).next())}),ye=({data:Qt,className:Wt,fullWidth:Bt,style:te={},onClose:me,onOk:Jt,showFullTools:Ie,noAssociationId:Ue})=>{const Je=(0,Ft.useRef)(null),Ze=(0,Ft.useRef)(null),nn=(0,Ft.useRef)(null),fn=(0,Ft.useRef)(null),[An,En]=(0,Ft.useState)(!1),[Dn,ii]=(0,Ft.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,Ft.useEffect)(()=>(nn.current||(nn.current=document.createElement("style"),document.head.appendChild(nn.current)),Qt!=null&&Qt.visible?(document.body.setAttribute("data-custom","y-hidden"),nn.current.innerHTML=" html { overflow-y: hidden; }",Qt!=null&&Qt.src&&mi()):(document.body.removeAttribute("data-custom"),nn.current&&(document.head.removeChild(nn.current),nn.current=null)),()=>{document.body.removeAttribute("data-custom"),nn.current&&(document.head.removeChild(nn.current),nn.current=null)}),[Qt==null?void 0:Qt.visible]);const mi=()=>$t(void 0,null,function*(){En(!0),ii("\u6B63\u5728\u52A0\u8F7D\u4E2D");const pi=yield(0,ue.ZJ)(Qt==null?void 0:Qt.src);Je.current.src="",Je.current.src=pi,Je.current.onload=function(){ki()},En(!1),ii("")}),Ti=pi=>$t(void 0,null,function*(){En(!0),ii("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Bi=yield(0,Te.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Qt.title,file:pi.dataUrl}});Bi!=null&&Bi.id&&!Ue?(yield(0,Te.ZP)(`/api/attachments/${Qt.id}/add_subitem.json`,{method:"post",body:{subitem_id:Bi==null?void 0:Bi.id,settings:JSON.stringify(pi.state)}})).status===0&&Jt():Bi!=null&&Bi.id&&Jt(Bi),En(!1),ii("")}),Oi=()=>{const pi=document.querySelector('a[href="https://markerjs.com/"]');pi&&pi.parentNode&&(pi.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(Or=>{const yr=document.querySelector(Or.name);yr&&yr.setAttribute("title",Or.title)})},ki=()=>{Ze.current=new Be(Je.current),Ze.current.targetRoot=fn.current,Ze.current.addEventListener("render",Ti),Ze.current.addEventListener("beforeclose",me),Ie&&(Ze.current.availableMarkerTypes=Ze.current.ALL_MARKER_TYPES,Ze.current.uiStyleSettings.redoButtonVisible=!0,Ze.current.uiStyleSettings.notesButtonVisible=!0,Ze.current.uiStyleSettings.zoomButtonVisible=!0,Ze.current.uiStyleSettings.zoomOutButtonVisible=!0,Ze.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Ze.current.uiStyleSettings,Ze.current.show(),Qt!=null&&Qt.snapshotData&&Ze.current.restoreState(Qt.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Oi()},300)};return Ft.createElement(Ft.Fragment,null,(Qt==null?void 0:Qt.visible)&&Ft.createElement(Ct.Z,{spinning:An,tip:Dn,style:{position:"absolute",width:"100vw"}},Ft.createElement("div",{ref:fn,className:kt()(ie.imageDimensions,Wt,Bt?ie.fullWidth:""),style:te},Ft.createElement("img",{className:ie.img,ref:Je}))))}},41588:function(tn,Ke,Rt){"use strict";var Ft=Rt(59301),ie=Rt(95237),rt=Rt(43604),kt=Rt(99313),Ct=Rt(3113),St=Rt(85149),pt=Rt(88010),vt=Rt(48136),yt=Rt(59301);const xt=(0,Ft.forwardRef)(({callback:dt,showSaveButton:ft,value:ct=""},lt)=>{const E=(0,Ft.useRef)(),z=[{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 "}]}]}],ot=[{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 @@ -185,7 +185,7 @@ ${me} \\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}`}]}]}],it=wt=>{E.current.setValue(E.current.getValue()+" "+wt.value+" ")},at=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:yt.createElement(ie.Z,{className:pt.Z.lists,gutter:[10,10]},z.map((wt,Et)=>yt.createElement(rt.Z,{flex:"110px",className:pt.Z.item},yt.createElement("div",null,yt.createElement(St.Z,{value:`$$${wt.value}$$`}),wt.name),yt.createElement("div",{className:pt.Z.children},wt.children.map((At,_t)=>yt.createElement("div",{key:_t},yt.createElement("h1",null,At.name),yt.createElement(ie.Z,{gutter:[10,10]},At.data.map((Mt,jt)=>yt.createElement(rt.Z,{key:jt,onClick:()=>it(Mt),className:pt.Z.diamond},yt.createElement(St.Z,{value:"`$$"+Mt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:yt.createElement(ie.Z,{className:pt.Z.lists,gutter:[10,10]},ot.map((wt,Et)=>yt.createElement(rt.Z,{flex:"110px",className:pt.Z.item},yt.createElement("div",null,yt.createElement(St.Z,{value:"`$$"+wt.value+"$$`"}),wt.name),yt.createElement("div",{className:pt.Z.children},wt.children.map((At,_t)=>yt.createElement("div",{key:_t},At.name&&yt.createElement("h1",null,At.name),yt.createElement(ie.Z,{gutter:[10,10]},At.data.map((Mt,jt)=>yt.createElement(rt.Z,{key:jt,onClick:()=>it(Mt),className:pt.Z.diamond},yt.createElement(St.Z,{value:"`$$"+Mt.value+"$$`"}))))))))))}],ut=()=>{var wt=document.createElement("div");wt.innerHTML=E.current.getValue();var Et=wt.innerText;return dt&&dt(Et),Et};return(0,Ft.useImperativeHandle)(lt,()=>({getData:ut})),yt.createElement("div",{className:pt.Z.mathWrap},yt.createElement(kt.default,{defaultActiveKey:"1",items:at}),yt.createElement("math-field",{locale:"zh_cn",className:pt.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:E,style:{width:800,marginTop:30,fontSize:18}},ct||""),ft&&yt.createElement("div",{className:pt.Z.button},yt.createElement(Ct.ZP,{size:"large",onClick:ut,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Ke.Z=xt},8797:function(tn,Ke,Rt){"use strict";var Ft=Rt(59301),ie=Rt(93314),rt=Rt(3113),kt=Object.defineProperty,Ct=Object.defineProperties,St=Object.getOwnPropertyDescriptors,pt=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable,xt=(lt,E,z)=>E in lt?kt(lt,E,{enumerable:!0,configurable:!0,writable:!0,value:z}):lt[E]=z,dt=(lt,E)=>{for(var z in E||(E={}))vt.call(E,z)&&xt(lt,z,E[z]);if(pt)for(var z of pt(E))yt.call(E,z)&&xt(lt,z,E[z]);return lt},ft=(lt,E)=>Ct(lt,St(E));const ct=({img:lt,buttonProps:E={},styles:z={},customText:ot,ButtonText:it,ButtonClick:at,Buttonclass:ut,ButtonTwo:wt,imgStyles:Et,loading:At=!1,className:_t=""})=>Ft.createElement("section",{className:`tc animated fadeIn ${_t}`,style:dt({color:"#999",margin:"100px auto",visibility:At?"hidden":"visible"},z)},Ft.createElement("img",{src:lt||ie,style:ft(dt({},Et),{pointerEvents:"none",userSelect:"none"})}),Ft.createElement("p",{className:"mt20 font14"},ot||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),it&&Ft.createElement(rt.ZP,dt({className:ut,onClick:at},E),it),wt&&wt);Ke.Z=ct},23210:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return ut}});var Ft=Rt(59301),ie={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},rt=Rt(3113),kt=Rt(70557),Ct=Rt(23954),St=Rt(6848),pt=Rt(955),vt=Rt(94941),yt=Rt(8797),xt=Rt(3294),dt=Rt(19381),ft=Rt(59301),ct=Object.defineProperty,lt=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ot=(wt,Et,At)=>Et in wt?ct(wt,Et,{enumerable:!0,configurable:!0,writable:!0,value:At}):wt[Et]=At,it=(wt,Et)=>{for(var At in Et||(Et={}))E.call(Et,At)&&ot(wt,At,Et[At]);if(lt)for(var At of lt(Et))z.call(Et,At)&&ot(wt,At,Et[At]);return wt},at=(wt,Et,At)=>new Promise((_t,Mt)=>{var jt=Ut=>{try{It(At.next(Ut))}catch(Xt){Mt(Xt)}},Lt=Ut=>{try{It(At.throw(Ut))}catch(Xt){Mt(Xt)}},It=Ut=>Ut.done?_t(Ut.value):Promise.resolve(Ut.value).then(jt,Lt);It((At=At.apply(wt,Et)).next())}),ut=({editOffice:wt="view",data:Et,theme:At,type:_t,filename:Mt,monacoEditor:jt,className:Lt,style:It,close:Ut,onClose:Xt,hasMask:Gt,disabledDownload:Yt,onImgDimensions:Ht,showNodata:ne,recordInfo:ae})=>{const[ve,Kt]=(0,Ft.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[re,we]=(0,Ft.useState)(""),[Me,ke]=(0,Ft.useState)(),me=window.ENV==="build"?"/react/build":"",fe=location.host.startsWith("localhost")?xt.Z.PROXY_SERVER:xt.Z.API_SERVER,_e=10*(1024*1024),je=(0,Ft.useRef)();Et!=null&&Et.startsWith("/api")&&_t!=="txt"&&(Et=xt.Z.API_SERVER+Et);const He=Ne=>Ne.substring(Ne.lastIndexOf("/")+1).split(".").pop();Mt&&jt&&(jt.filename=Mt),(0,Ft.useEffect)(()=>{var Ne,se;const Ae=(se=(Ne=document.cookie)==null?void 0:Ne.replace(/\s/g,""))==null?void 0:se.split(";");Ae==null||Ae.map(Xe=>{let Be=Xe.split("=");Be[0]==="_educoder_session"&&we(Be[1])})},[]),(0,Ft.useEffect)(()=>{_t==="office"&&(Et.indexOf("bigfilescdn.")>-1||Et.indexOf("bigfiles1")>-1?ke({url:Et,fileType:He(Et),model:Et.indexOf("model=edit")?"edit":"view"}):Se())},[_t,Et]);const Se=()=>at(void 0,null,function*(){console.log("data:",Et);let Ne=Et;Et.startsWith("http")||(Ne=location.origin+Ne);let se=new URL(Ne).pathname.split("/").pop();const Ae=yield(0,vt.gJ)({attachment_id:se});Ae.url=fe+Ae.url,ke(Ae)}),xe=()=>{if(Et.startsWith("http")||Et.startsWith("blob:")){le();return}(0,pt.Sv)(Mt||"educoder",Et,Mt)},le=()=>{ae&&(0,dt.fc)({id:ae==null?void 0:ae.id,watch_type:1,course_id:ae==null?void 0:ae.course_id}),(0,pt.Nd)(Mt||"educoder",decodeURIComponent(Et))};return ft.createElement("div",{style:it({},It||{}),className:`${Gt&&ie.bgBlack} ${_t?ie.wrp:"hide"}`},Ut&&ft.createElement("div",{className:ie.close,ref:je},!!Ht&&ft.createElement(St.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>je.current},ft.createElement("span",{onClick:()=>{Xt(),Ht()}},ft.createElement("i",{className:"icon-yulanpizhu"}))),!Yt&&ft.createElement(St.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>je.current},ft.createElement("span",{onClick:le},ft.createElement("i",{className:"icon-quxiaozhiding"}))),ft.createElement(St.Z,{title:"\u5173\u95ED",getPopupContainer:()=>je.current},ft.createElement("span",{className:"",onClick:Xt},ft.createElement("i",{className:"icon-guanbi1"})))),ft.createElement("div",{className:`${ie[Lt]} ${Lt} ${ie.monaco} ${_t==="txt"?"show":"hide"}`},_t==="txt"&&ft.createElement(ft.Fragment,null,ft.createElement(Ct.ZP,it({},jt)))),_t==="audio"&&ft.createElement("audio",{src:`${(Et==null?void 0:Et.indexOf("http://"))>-1||(Et==null?void 0:Et.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Et}`,autoPlay:!0}),_t==="video"&&ft.createElement(ft.Fragment,null,(Et==null?void 0:Et.indexOf("http"))>-1?ft.createElement("video",{controls:!0,src:`${Et}`,autoPlay:!0}):ft.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Et}`,autoPlay:!0})),_t==="office"&&Me&&ft.createElement("iframe",{src:`${me}/office.html?key=${Me.key}&url=${btoa(Me.url)}&callbackUrl=${fe+(Me.callbackUrl||"")}&fileType=${Me.fileType}&title=${Me.title||""}&model=${wt}&officeServer=${xt.Z.ONLYOFFICE}&disabledDownload=${!!Yt}`}),_t==="html"&&ft.createElement("iframe",{src:Et+"&disposition=inline"}),_t==="pdf"&&ft.createElement("iframe",{src:`${me}/js/pdfview/index.html?filename=${Mt||"educoder.pdf"}&url=${encodeURIComponent(Et)}&disabledDownload=${!!Yt}`}),_t==="image"&&ft.createElement("img",{src:`${(Et==null?void 0:Et.indexOf("http://"))>-1||(Et==null?void 0:Et.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Et}`}),(_t==="other"||_t==="download")&&ft.createElement(ft.Fragment,null,ne?ft.createElement(yt.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:ft.createElement(rt.ZP,{icon:ft.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:xe,disabled:Yt},"\u4E0B\u8F7D")}):ft.createElement(rt.ZP,{type:"primary",size:"middle",onClick:xe,disabled:Yt},ft.createElement(kt.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{z:function(){return _t},Z:function(){return Mt}});var Ft=Rt(59301),ie=Rt(50304),rt=Rt(24768),kt=Rt(64018),Ct=Rt(65157),St=Rt(3294),pt=Rt(955),vt=Rt(15342),yt=Rt(1012),xt=Rt(23210),dt=Rt(59301),ct=({html:jt})=>{const Lt=(0,Ft.useRef)(null),It=(0,Ft.useRef)(null),Ut=`.markdown-body p { +\\end{array}`}]}]}],it=wt=>{E.current.setValue(E.current.getValue()+" "+wt.value+" ")},at=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:yt.createElement(ie.Z,{className:pt.Z.lists,gutter:[10,10]},z.map((wt,Et)=>yt.createElement(rt.Z,{flex:"110px",className:pt.Z.item},yt.createElement("div",null,yt.createElement(St.Z,{value:`$$${wt.value}$$`}),wt.name),yt.createElement("div",{className:pt.Z.children},wt.children.map((At,_t)=>yt.createElement("div",{key:_t},yt.createElement("h1",null,At.name),yt.createElement(ie.Z,{gutter:[10,10]},At.data.map((Mt,jt)=>yt.createElement(rt.Z,{key:jt,onClick:()=>it(Mt),className:pt.Z.diamond},yt.createElement(St.Z,{value:"`$$"+Mt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:yt.createElement(ie.Z,{className:pt.Z.lists,gutter:[10,10]},ot.map((wt,Et)=>yt.createElement(rt.Z,{flex:"110px",className:pt.Z.item},yt.createElement("div",null,yt.createElement(St.Z,{value:"`$$"+wt.value+"$$`"}),wt.name),yt.createElement("div",{className:pt.Z.children},wt.children.map((At,_t)=>yt.createElement("div",{key:_t},At.name&&yt.createElement("h1",null,At.name),yt.createElement(ie.Z,{gutter:[10,10]},At.data.map((Mt,jt)=>yt.createElement(rt.Z,{key:jt,onClick:()=>it(Mt),className:pt.Z.diamond},yt.createElement(St.Z,{value:"`$$"+Mt.value+"$$`"}))))))))))}],ut=()=>{var wt=document.createElement("div");wt.innerHTML=E.current.getValue();var Et=wt.innerText;return dt&&dt(Et),Et};return(0,Ft.useImperativeHandle)(lt,()=>({getData:ut})),yt.createElement("div",{className:pt.Z.mathWrap},yt.createElement(kt.default,{defaultActiveKey:"1",items:at}),yt.createElement("math-field",{locale:"zh_cn",className:pt.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:E,style:{width:800,marginTop:30,fontSize:18}},ct||""),ft&&yt.createElement("div",{className:pt.Z.button},yt.createElement(Ct.ZP,{size:"large",onClick:ut,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Ke.Z=xt},8797:function(tn,Ke,Rt){"use strict";var Ft=Rt(59301),ie=Rt(93314),rt=Rt(3113),kt=Object.defineProperty,Ct=Object.defineProperties,St=Object.getOwnPropertyDescriptors,pt=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable,xt=(lt,E,z)=>E in lt?kt(lt,E,{enumerable:!0,configurable:!0,writable:!0,value:z}):lt[E]=z,dt=(lt,E)=>{for(var z in E||(E={}))vt.call(E,z)&&xt(lt,z,E[z]);if(pt)for(var z of pt(E))yt.call(E,z)&&xt(lt,z,E[z]);return lt},ft=(lt,E)=>Ct(lt,St(E));const ct=({img:lt,buttonProps:E={},styles:z={},customText:ot,ButtonText:it,ButtonClick:at,Buttonclass:ut,ButtonTwo:wt,imgStyles:Et,loading:At=!1,className:_t=""})=>Ft.createElement("section",{className:`tc animated fadeIn ${_t}`,style:dt({color:"#999",margin:"100px auto",visibility:At?"hidden":"visible"},z)},Ft.createElement("img",{src:lt||ie,style:ft(dt({},Et),{pointerEvents:"none",userSelect:"none"})}),Ft.createElement("p",{className:"mt20 font14"},ot||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),it&&Ft.createElement(rt.ZP,dt({className:ut,onClick:at},E),it),wt&&wt);Ke.Z=ct},23210:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return ut}});var Ft=Rt(59301),ie={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},rt=Rt(3113),kt=Rt(70557),Ct=Rt(23954),St=Rt(6848),pt=Rt(955),vt=Rt(94941),yt=Rt(8797),xt=Rt(3294),dt=Rt(19381),ft=Rt(59301),ct=Object.defineProperty,lt=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ot=(wt,Et,At)=>Et in wt?ct(wt,Et,{enumerable:!0,configurable:!0,writable:!0,value:At}):wt[Et]=At,it=(wt,Et)=>{for(var At in Et||(Et={}))E.call(Et,At)&&ot(wt,At,Et[At]);if(lt)for(var At of lt(Et))z.call(Et,At)&&ot(wt,At,Et[At]);return wt},at=(wt,Et,At)=>new Promise((_t,Mt)=>{var jt=Ut=>{try{It(At.next(Ut))}catch(Xt){Mt(Xt)}},Lt=Ut=>{try{It(At.throw(Ut))}catch(Xt){Mt(Xt)}},It=Ut=>Ut.done?_t(Ut.value):Promise.resolve(Ut.value).then(jt,Lt);It((At=At.apply(wt,Et)).next())}),ut=({editOffice:wt="view",data:Et,theme:At,type:_t,filename:Mt,monacoEditor:jt,className:Lt,style:It,close:Ut,onClose:Xt,hasMask:Gt,disabledDownload:Vt,onImgDimensions:Ht,showNodata:ne,recordInfo:se})=>{const[ve,Kt]=(0,Ft.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[re,we]=(0,Ft.useState)(""),[ke,Me]=(0,Ft.useState)(),ge=window.ENV==="build"?"/react/build":"",fe=location.host.startsWith("localhost")?xt.Z.PROXY_SERVER:xt.Z.API_SERVER,_e=10*(1024*1024),Oe=(0,Ft.useRef)();Et!=null&&Et.startsWith("/api")&&_t!=="txt"&&(Et=xt.Z.API_SERVER+Et);const He=Ne=>Ne.substring(Ne.lastIndexOf("/")+1).split(".").pop();Mt&&jt&&(jt.filename=Mt),(0,Ft.useEffect)(()=>{var Ne,ae;const Ae=(ae=(Ne=document.cookie)==null?void 0:Ne.replace(/\s/g,""))==null?void 0:ae.split(";");Ae==null||Ae.map(Xe=>{let Be=Xe.split("=");Be[0]==="_educoder_session"&&we(Be[1])})},[]),(0,Ft.useEffect)(()=>{_t==="office"&&(Et.indexOf("bigfilescdn.")>-1||Et.indexOf("bigfiles1")>-1?Me({url:Et,fileType:He(Et),model:Et.indexOf("model=edit")?"edit":"view"}):Se())},[_t,Et]);const Se=()=>at(void 0,null,function*(){console.log("data:",Et);let Ne=Et;Et.startsWith("http")||(Ne=location.origin+Ne);let ae=new URL(Ne).pathname.split("/").pop();const Ae=yield(0,vt.gJ)({attachment_id:ae});Ae.url=fe+Ae.url,Me(Ae)}),xe=()=>{if(Et.startsWith("http")||Et.startsWith("blob:")){le();return}(0,pt.Sv)(Mt||"educoder",Et,Mt)},le=()=>{se&&(0,dt.fc)({id:se==null?void 0:se.id,watch_type:1,course_id:se==null?void 0:se.course_id}),(0,pt.Nd)(Mt||"educoder",decodeURIComponent(Et))};return ft.createElement("div",{style:it({},It||{}),className:`${Gt&&ie.bgBlack} ${_t?ie.wrp:"hide"}`},Ut&&ft.createElement("div",{className:ie.close,ref:Oe},!!Ht&&ft.createElement(St.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Oe.current},ft.createElement("span",{onClick:()=>{Xt(),Ht()}},ft.createElement("i",{className:"icon-yulanpizhu"}))),!Vt&&ft.createElement(St.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Oe.current},ft.createElement("span",{onClick:le},ft.createElement("i",{className:"icon-quxiaozhiding"}))),ft.createElement(St.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Oe.current},ft.createElement("span",{className:"",onClick:Xt},ft.createElement("i",{className:"icon-guanbi1"})))),ft.createElement("div",{className:`${ie[Lt]} ${Lt} ${ie.monaco} ${_t==="txt"?"show":"hide"}`},_t==="txt"&&ft.createElement(ft.Fragment,null,ft.createElement(Ct.ZP,it({},jt)))),_t==="audio"&&ft.createElement("audio",{src:`${(Et==null?void 0:Et.indexOf("http://"))>-1||(Et==null?void 0:Et.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Et}`,autoPlay:!0}),_t==="video"&&ft.createElement(ft.Fragment,null,(Et==null?void 0:Et.indexOf("http"))>-1?ft.createElement("video",{controls:!0,src:`${Et}`,autoPlay:!0}):ft.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Et}`,autoPlay:!0})),_t==="office"&&ke&&ft.createElement("iframe",{src:`${ge}/office.html?key=${ke.key}&url=${btoa(ke.url)}&callbackUrl=${fe+(ke.callbackUrl||"")}&fileType=${ke.fileType}&title=${ke.title||""}&model=${wt}&officeServer=${xt.Z.ONLYOFFICE}&disabledDownload=${!!Vt}`}),_t==="html"&&ft.createElement("iframe",{src:Et+"&disposition=inline"}),_t==="pdf"&&ft.createElement("iframe",{src:`${ge}/js/pdfview/index.html?filename=${Mt||"educoder.pdf"}&url=${encodeURIComponent(Et)}&disabledDownload=${!!Vt}`}),_t==="image"&&ft.createElement("img",{src:`${(Et==null?void 0:Et.indexOf("http://"))>-1||(Et==null?void 0:Et.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Et}`}),(_t==="other"||_t==="download")&&ft.createElement(ft.Fragment,null,ne?ft.createElement(yt.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:ft.createElement(rt.ZP,{icon:ft.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:xe,disabled:Vt},"\u4E0B\u8F7D")}):ft.createElement(rt.ZP,{type:"primary",size:"middle",onClick:xe,disabled:Vt},ft.createElement(kt.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{z:function(){return _t},Z:function(){return Mt}});var Ft=Rt(59301),ie=Rt(50304),rt=Rt(24768),kt=Rt(64018),Ct=Rt(65157),St=Rt(3294),pt=Rt(955),vt=Rt(15342),yt=Rt(1012),xt=Rt(23210),dt=Rt(59301),ct=({html:jt})=>{const Lt=(0,Ft.useRef)(null),It=(0,Ft.useRef)(null),Ut=`.markdown-body p { margin: 0 0 16px 0 !important; line-height: 28px; white-space: pre-wrap; @@ -1032,9 +1032,9 @@ ${me} .markdown-body pre { margin-top: 0; margin-bottom: 16px; - }`;return(0,Ft.useEffect)(()=>{const Xt=Lt.current.attachShadow({mode:"open"});It.current=document.createElement("div"),It.current.className="markdown-body",It.current.innerHTML=jt,Xt.appendChild(It.current);const Gt=document.createElement("style");return Gt.textContent=Ut,Xt.appendChild(Gt),()=>{Xt.innerHTML=""}},[]),(0,Ft.useEffect)(()=>{It.current&&(It.current.innerHTML=jt)},[jt]),dt.createElement("div",{ref:Lt})},lt=Object.defineProperty,E=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,it=(jt,Lt,It)=>Lt in jt?lt(jt,Lt,{enumerable:!0,configurable:!0,writable:!0,value:It}):jt[Lt]=It,at=(jt,Lt)=>{for(var It in Lt||(Lt={}))z.call(Lt,It)&&it(jt,It,Lt[It]);if(E)for(var It of E(Lt))ot.call(Lt,It)&&it(jt,It,Lt[It]);return jt};const ut="@\u2581\u2581@",wt="@\u2581@",Et=/]*>/g;function At(jt){let Lt=document.createElement("div");return Lt.innerHTML=jt,Lt.childNodes.length===0?"":Lt.childNodes[0].nodeValue}const _t=(jt,Lt)=>{jt=jt||"";const It=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ut=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Xt=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Gt=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Lt?jt.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(It,(Yt,Ht,ne,ae,ve,Kt,re)=>{const we=Ht||ae||Kt,Me=ne||ve||re||"?";return St.Z.API_SERVER+"/api/attachments/"+we+Me+"&t="+(0,pt.Jn)(we,Date.now())+(Yt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(jt=jt.replace(Gt,(Yt,Ht,ne,ae,ve,Kt,re)=>{const we=Ht||ae||Kt,Me=ne||ve||re||"?";return St.Z.API_SERVER+"/attachments/download/"+we+Me+"&t="+(0,pt.Jn)(we,Date.now())+(Yt.indexOf(")")>-1?")":"&")}).replace(It,(Yt,Ht,ne,ae,ve,Kt,re)=>{const we=Ht||ae||Kt,Me=ne||ve||re||"?";return St.Z.API_SERVER+"/api/attachments/"+we+Me+"&t="+(0,pt.Jn)(we,Date.now())+(Yt.indexOf(")")>-1?")":"&")}).replace(Ut,(Yt,Ht,ne,ae,ve)=>{const Kt=Ht||ae,re=ne||ve||"";return'"'+St.Z.API_SERVER+"/api/attachments/"+Kt+re+Kt+re+"&t="+(0,pt.Jn)(Kt,Date.now())}).replace(Xt,(Yt,Ht,ne,ae,ve)=>{const Kt=Ht||ae,re=ne||ve||"";return"("+St.Z.API_SERVER+"/files/uploads/"+Kt+re+Kt+re+"&t="+(0,pt.Jn)(Kt,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,` -`),jt)};var Mt=({value:jt="",className:Lt,showTextOnly:It,showLines:Ut,style:Xt={},stylesPrev:Gt={},highlightKeywords:Yt,showProgramFill:Ht,isProgramFill:ne,disabledFill:ae=!1,programFillValue:ve,onFillChange:Kt=Me=>{},onFillBlur:re=()=>{},onFillFocus:we=()=>{}})=>{let Me=String(jt);const[ke,me]=(0,Ft.useState)(""),[fe,pe]=(0,Ft.useState)("office"),[_e,je]=(0,Ft.useState)([]),He=(0,Ft.useRef)("a"+(0,yt.Z)()),Se={},xe=(Qt,Wt,Bt)=>{const te=document.createElement(Qt===wt?"input":"textarea");te.style.width="100%",te.style.height=Qt===wt?"40px":"151px",te.rows=5,te.spellcheck=!1,te.name="edu-program-fill",te.placeholder="\u8BF7\u8F93\u5165",te.dataset.id=Wt;const ge=Object.keys(Se).length;return Se[ge]=te,`${te.outerHTML}`};function le(Qt){return Qt=Qt.replace(/!\[.*?\]\(.*?\)/g,""),Qt=Qt.replace(/\[.*?\]\(.*?\)/g,""),Qt=Qt.replace(new RegExp("","gs"),""),Qt=Qt.replace(//g,""),Qt=Qt.replace(//g,""),Qt=Qt.replace(new RegExp(".*?<\\/video>","gs"),""),Qt=Qt.replace(new RegExp(".*?<\\/audio>","gs"),""),Qt=Qt.replace(new RegExp(".*?<\\/style>","gs"),""),Qt=Qt.replace(new RegExp(".*?<\\/script>","gs"),""),Qt}const Ne=Qt=>Qt.replace(/([\s\S]+?)<\/style>/gim,function(Wt,Bt){let te=Bt.replace(/(\n|\r)/g,"").split("}"),ge=[];return te.map(Jt=>{Jt!=""&&ge.push(`.${He.current} ${Jt}`)}),``}),se=(0,Ft.useMemo)(()=>{try{const te=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,ge=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Jt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Ie=/\(\/attachments\/download\//g;Me=Me.replace(Ie,"("+St.Z.API_SERVER+"/attachments/download/").replace(te,"("+St.Z.API_SERVER+"/api/attachments/").replace(ge,'"'+St.Z.API_SERVER+"/api/attachments/").replace(Jt,'"'+St.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(te){}if(Ht){let te=-1;return Me=Me.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(ge,Jt,Ie){var Ue;return++te,xe(ge,te,(Ue=ve==null?void 0:ve[te])==null?void 0:Ue.value.replaceAll("<","<").replaceAll(">",">"))}),`
${Ne(Me||"")}
`}let Qt=Ne(Me);Qt=(0,rt.ZP)(Qt);const Wt=(0,rt.ez)();Me.match(/\[TOC\]/)&&(Qt=Qt.replace("

[TOC]

",(0,rt.Qv)()),(0,rt.Iy)()),Qt=Qt.replace(/(__special_katext_id_\d+__)/g,(te,ge)=>{const{type:Jt,expression:Ie}=Wt[ge];return(0,vt.renderToString)(At(Ie)||"",{displayMode:Jt==="block",throwOnError:!1,output:"html"})}),Qt=Qt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,rt.AL)();const Bt=document.createElement("div");if(Bt.innerHTML=Qt,It)return Bt.innerText;if(Yt){const te=Yt.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Te(Bt,te),Bt.innerHTML}return setTimeout(()=>he(),500),Bt.innerHTML},[Me,Yt]);(0,Ft.useEffect)(()=>{ue.current&&ue.current.querySelectorAll(["input","textarea"]).forEach(Wt=>{Wt.oninput=Ae,Wt.onblur=Xe,Wt.onfocus=Be})},[_e]),(0,Ft.useEffect)(()=>{var Qt,Wt,Bt,te,ge;if(ve!=null&&ve.length)try{const Jt=ue.current.querySelectorAll(".edu-program-fill-score"),Ie=ue.current.querySelectorAll('[name="edu-program-fill"]');for(const[Ue,Je]of Ie.entries())Je.value=((Qt=ve==null?void 0:ve[Ue])==null?void 0:Qt.value)||"",((Wt=ve==null?void 0:ve[Ue])==null?void 0:Wt.type)==="warning"?Je.className="program-fill-warning":((Bt=ve==null?void 0:ve[Ue])==null?void 0:Bt.type)==="success"?Je.className="program-fill-success":Je.className="";for(const[Ue,Je]of Jt.entries())Je.innerHTML=(te=ve==null?void 0:ve[Ue])!=null&&te.score?`${(ge=ve==null?void 0:ve[Ue])==null?void 0:ge.score}\u5206`:"";je(ve)}catch(Jt){console.log(Jt,"error")}},[ve]);const Ae=Qt=>{_e[Qt.target.dataset.id]=_e[Qt.target.dataset.id]||{},_e[Qt.target.dataset.id].value=Qt.target.value,je([..._e]),Kt(_e,Qt.target.dataset.id)},Xe=Qt=>{_e[Qt.target.dataset.id]=_e[Qt.target.dataset.id]||{},_e[Qt.target.dataset.id].value=Qt.target.value,je([..._e]),re(_e,Qt.target.dataset.id)},Be=Qt=>{_e[Qt.target.dataset.id]=_e[Qt.target.dataset.id]||{},_e[Qt.target.dataset.id].value=Qt.target.value,je([..._e]),we(_e,Qt.target.dataset.id)};function Te(Qt,Wt){return Qt.childNodes.forEach(Bt=>{var te;if(Bt.childNodes.length>0)Te(Bt,Wt);else if(Bt.nodeName!=="IMG")if(Bt.innerHTML)Bt.innerHTML=(te=Bt.innerHTML)==null?void 0:te.replace(new RegExp(Wt,"gi"),'$&');else{const ge=document.createElement("span");ge.innerHTML=Bt.textContent.replace(new RegExp(Wt,"gi"),'$&'),Bt.replaceWith(ge)}})}const ue=(0,Ft.useRef)();rt.jb.WebkitLineClamp=Ut,Ut&&(Xt=at(at({},Xt),rt.jb));function $t(Qt){let Wt=Qt.target;if(Wt.tagName.toUpperCase()==="A"){let Bt=Wt.getAttribute("href");if(Bt.indexOf("office")>-1)Qt.preventDefault(),me(Bt),pe("office");else if(Bt.indexOf("application/pdf")>-1)Qt.preventDefault(),me(Bt),pe("pdf");else if(Bt.indexOf("text/html")>-1)Qt.preventDefault(),me(Bt),pe("html");else if(Bt.startsWith("#")){Qt.preventDefault();let te=document.getElementById(Bt.replace("#",""));te&&te.scrollIntoView(!0)}}}const he=()=>{var Qt;const Wt=(Qt=ue.current)==null?void 0:Qt.querySelectorAll("video");Wt==null||Wt.forEach(Bt=>{if(Bt.oncontextmenu=()=>!1,Bt.src.indexOf(".m3u8")>-1&&!Bt.canPlayType("application/vnd.apple.mpegurl")){if(Ct.ZP.isSupported()){var te=new Ct.ZP;te.loadSource(Bt.src),te.attachMedia(Bt)}}})};(0,Ft.useEffect)(()=>{if(ue.current&&se&&se.match(Et)&&window.PR.prettyPrint(),ue.current)return ue.current.addEventListener("click",$t),()=>{var Qt;(Qt=ue.current)==null||Qt.removeEventListener("click",$t),(0,rt.AL)(),(0,rt.Iy)()}},[se,ue.current,$t]),(0,Ft.useEffect)(()=>{var Qt;const Wt=Bt=>{Bt.preventDefault(),Bt.clipboardData.setData("text",window.getSelection().toString())};return(Qt=ue.current)==null||Qt.addEventListener("copy",Wt),()=>{var Bt;(Bt=ue.current)==null||Bt.removeEventListener("copy",Wt)}},[ue.current]);const ye=Qt=>//i.test(Qt||"");return Ft.createElement(Ft.Fragment,null,It&&Ft.createElement("div",{ref:ue},se),!It&&!ye(se)&&Ft.createElement("div",{ref:ue,style:at({},Xt),className:`${Lt||""} ${ae?"disabled-fill":""} markdown-body ${He.current}`,dangerouslySetInnerHTML:{__html:se}}),!It&&ye(se)&&Ft.createElement(ct,{html:se}),Ft.createElement(xt.Z,{close:!0,data:ke,type:ke!=null&&ke.length?fe:"",style:at({},Gt),onClose:()=>me("")}))}},33538:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return kt}});var Ft=Rt(89070),ie={ldsRing:"ldsRing___mpBZC",idsRingWrapper:"idsRingWrapper___Of9_n",ldsring:"ldsring___o0w2t"},rt=Rt(59301),kt=({message:Ct,className:St,children:pt,style:vt={}})=>rt.createElement("div",{className:`custom-spinner ${ie.idsRingWrapper} ${St}`},rt.createElement("div",{className:ie.ldsRing},rt.createElement("div",null),rt.createElement("div",null),rt.createElement("div",null),rt.createElement("div",null)),Ct?rt.createElement("p",{style:vt},Ct):null,pt,rt.createElement(Ft.Outlet,null))},13787:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return St}});var Ft=Rt(59301),ie={flex_box_center:"flex_box_center___Gc4dd",flex_space_between:"flex_space_between___K2f1v",flex_box_vertical_center:"flex_box_vertical_center___pupRp",flex_box_center_end:"flex_box_center_end___UDLRC",flex_box_column:"flex_box_column___a5uDo",result:"result___gu5zt",title:"title___xrnx2",left:"left___IAxp9",leftNode:"leftNode___HL8fG",right:"right___ZXYmw",rightNode:"rightNode___jYL5_"},rt=Rt(92310),kt=Rt.n(rt),St=({className:pt,style:vt={},leftNode:yt,leftTitle:xt="\u81EA\u6D4B\u8F93\u5165",rightNode:dt,rightTitle:ft="\u8FD0\u884C\u7ED3\u679C"})=>Ft.createElement("div",{className:kt()(ie.result,pt),style:vt},Ft.createElement("div",{className:ie.left},Ft.createElement("div",{className:ie.title},Ft.createElement("i",{style:{color:"#08CF76"},className:"iconfont iconfont icon-zidingyiceshiyongli font14 mr5"}),Ft.createElement("span",null,xt)),Ft.createElement("div",{className:ie.leftNode},yt)),Ft.createElement("div",{className:ie.right},Ft.createElement("div",{className:ie.title},Ft.createElement("i",{style:{color:"#00DFFF"},className:"iconfont iconfont icon-daimazhihangjieguo font14 mr5"}),Ft.createElement("span",null,ft)),Ft.createElement("div",{className:ie.rightNode},dt)))},81939:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{cT:function(){return jt},pe:function(){return At}});var Ft=Rt(59301),ie=Rt(54580),rt=Rt(8591),kt=Rt(99064),Ct=Rt(28209),St=Rt.n(Ct),pt=Rt(1012),vt=Rt(89070),yt=Rt(47257),xt=Rt.n(yt),dt=Object.defineProperty,ft=Object.defineProperties,ct=Object.getOwnPropertyDescriptors,lt=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ot=(It,Ut,Xt)=>Ut in It?dt(It,Ut,{enumerable:!0,configurable:!0,writable:!0,value:Xt}):It[Ut]=Xt,it=(It,Ut)=>{for(var Xt in Ut||(Ut={}))E.call(Ut,Xt)&&ot(It,Xt,Ut[Xt]);if(lt)for(var Xt of lt(Ut))z.call(Ut,Xt)&&ot(It,Xt,Ut[Xt]);return It},at=(It,Ut)=>ft(It,ct(Ut)),ut=(It,Ut)=>{var Xt={};for(var Gt in It)E.call(It,Gt)&&Ut.indexOf(Gt)<0&&(Xt[Gt]=It[Gt]);if(It!=null&<)for(var Gt of lt(It))Ut.indexOf(Gt)<0&&z.call(It,Gt)&&(Xt[Gt]=It[Gt]);return Xt},wt=(It,Ut,Xt)=>new Promise((Gt,Yt)=>{var Ht=ve=>{try{ae(Xt.next(ve))}catch(Kt){Yt(Kt)}},ne=ve=>{try{ae(Xt.throw(ve))}catch(Kt){Yt(Kt)}},ae=ve=>ve.done?Gt(ve.value):Promise.resolve(ve.value).then(Ht,ne);ae((Xt=Xt.apply(It,Ut)).next())});const{Dragger:Et}=ie.default,At=It=>{const Ut="bf3c199c2470cb477d907b1e0917c17b",Xt="5183666c72eec9e4";var Gt=St().enc.Utf8.parse(Ut);let Yt=St().enc.Utf8.parse(Xt);var Ht=St().AES.decrypt(It,Gt,{iv:Yt,mode:St().mode.CBC});return Ht.toString(St().enc.Utf8)};let _t;const Mt=It=>wt(void 0,[It],function*({identifier:Ut,oldFilename:Xt,newFilename:Gt}){var Yt,Ht,ne,ae,ve,Kt;const re=yield Fetch("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});re.data=JSON.parse(At(re.data));const we=new OSS({endpoint:(Yt=re==null?void 0:re.data)==null?void 0:Yt.end_point,region:(Ht=re==null?void 0:re.data)==null?void 0:Ht.region,accessKeyId:(ne=re==null?void 0:re.data)==null?void 0:ne.access_key_id,accessKeySecret:(ae=re==null?void 0:re.data)==null?void 0:ae.access_key_secret,bucket:(ve=re==null?void 0:re.data)==null?void 0:ve.bucket,stsToken:(Kt=re==null?void 0:re.data)==null?void 0:Kt.security_token});return new Promise((Me,ke)=>{console.log(11111,`${Ut}/${Xt}`,`${Ut}/${Gt}`,re.data),we.copy(`/${Ut}/${Xt}`,`/${Ut}/${Gt}`).then(me=>{console.log("\u62F7\u8D1D\u6210\u529F",me)}).catch(me=>{console.log(me)})})}),jt=(It,Ut,Xt)=>wt(void 0,null,function*(){var Gt,Yt,Ht,ne,ae,ve;Ut.file_name=It.name;const Kt=yield(0,kt.ZP)("/api/buckets/get_upload_token.json",{method:"get"});console.log("decrypt(res.data):",At(Kt.data)),Kt.data=JSON.parse(At(Kt.data));const re=It.name.split(".");re.pop();const we=Ut.realFileName?re.join(""):(0,pt.Z)(),Me=new(xt())({endpoint:(Gt=Kt==null?void 0:Kt.data)==null?void 0:Gt.end_point,region:(Yt=Kt==null?void 0:Kt.data)==null?void 0:Yt.region,accessKeyId:(Ht=Kt==null?void 0:Kt.data)==null?void 0:Ht.access_key_id,accessKeySecret:(ne=Kt==null?void 0:Kt.data)==null?void 0:ne.access_key_secret,bucket:(ae=Kt==null?void 0:Kt.data)==null?void 0:ae.bucket,stsToken:(ve=Kt==null?void 0:Kt.data)==null?void 0:ve.security_token});return new Promise((ke,me)=>{var fe;Me.multipartUpload(`${we}`,new Blob([It],{type:It.type}),at(it({timeout:200*1e3,partSize:102400},Xt),{callback:{url:(fe=Kt==null?void 0:Kt.data)==null?void 0:fe.callback_url,host:Kt==null?void 0:Kt.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,kt.rz)(Ut)}})).then(function(pe){var _e;It.response=(_e=pe.data)==null?void 0:_e.data,ke(pe==null?void 0:pe.data)}).catch(function(pe){me(pe),console.log("err:",pe)})})}),Lt=It=>{var Ut=It,{user:Xt,cancelUpload:Gt}=Ut,Yt=ut(Ut,["user","cancelUpload"]);const[Ht,ne]=(0,Ft.useState)([]);let[ae,ve]=(0,Ft.useState)();const Kt={onRemove:we=>{ne([...Ht.filter(Me=>Me.name!==we.name)]),Yt.onChange(Ht.filter(Me=>Me.name!==we.name))},disabled:Yt.disabled,multiple:!0,fileList:Ht==null?void 0:Ht.map(we=>we.file),customRequest:()=>{},beforeUpload:we=>wt(void 0,null,function*(){let Me=Yt.maxSize||1073741824;if(Ht.filter(ke=>ke.name===we.name).length){rt.ZP.info(`${we.name}\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`);return}return(we==null?void 0:we.size)>Me?(rt.ZP.info(`\u6587\u4EF6\u8D85\u8FC7${Me/1024/1024/1024}GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42`),!1):(Ht.push({name:we.name,file:we}),ne([...Ht]),Yt.onChange(Ht),!1)})},re=(we,Me)=>wt(void 0,null,function*(){var ke,me,fe,pe,_e,je;Me.file_name=we.name;const He=we.name,Se=yield(0,kt.ZP)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});if(Se.data=JSON.parse(At(Se.data)),(Se==null?void 0:Se.status)!==0){Ht[Ht.findIndex(Ne=>Ne.name===He)].status="error",Ht[Ht.findIndex(Ne=>Ne.name===He)].file.status="error",Yt.onChange(Ht),rt.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}ae=new(xt())({endpoint:(ke=Se==null?void 0:Se.data)==null?void 0:ke.end_point,region:(me=Se==null?void 0:Se.data)==null?void 0:me.region,accessKeyId:(fe=Se==null?void 0:Se.data)==null?void 0:fe.access_key_id,accessKeySecret:(pe=Se==null?void 0:Se.data)==null?void 0:pe.access_key_secret,bucket:(_e=Se==null?void 0:Se.data)==null?void 0:_e.bucket,stsToken:(je=Se==null?void 0:Se.data)==null?void 0:je.security_token}),console.log(we,"file"),ve(ae);const xe=we.name.split(".");xe.pop();const le=He.indexOf(".")>-1?Me.realFileName?xe.join("."):(0,pt.Z)():He;return new Promise((Ne,se)=>{var Ae;try{ae.multipartUpload(`${Yt.identifier}/${le}${He.indexOf(".")>-1?"."+He.split(".").pop():""}`,new Blob([we.file],{type:we.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(Xe,Be,Te)=>{try{console.log("\u8FDB\u5EA6",Xe,Be,Te);const ue=Ht.findIndex($t=>$t.name===He);Ht[ue].file.percent=Xe*100,Ht[ue].tempCheckpoint=Be,ne([...Ht])}catch(ue){}},checkpoint:Ht[Ht.findIndex(Xe=>Xe.name===He)].tempCheckpoint,callback:{customValue:{id:He+""},url:(Ae=Se==null?void 0:Se.data)==null?void 0:Ae.callback_url,host:Se==null?void 0:Se.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,kt.rz)(Me)}}).then(function(Xe){var Be,Te,ue;const $t=Ht.findIndex(ye=>ye.name===He);let he="done";if(((Be=Xe.data)==null?void 0:Be.status)===0){we.response=(Te=Xe.data)==null?void 0:Te.data;const ye=Ht.findIndex(Qt=>Qt.name===He);Ht[ye].status="done",Ht[ye].file.status="done"}else rt.ZP.warning((ue=Xe.data)==null?void 0:ue.message),he="error";Ht[$t].status=he,Ht[$t].file.status=he,Yt.onChange(Ht),Ne(Xe==null?void 0:Xe.data)}).catch(function(Xe){Ht[Ht.findIndex(Be=>Be.name===He)].status="error",Ht[Ht.findIndex(Be=>Be.name===He)].file.status="error",rt.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),ne([...Ht]),Yt.onChange(Ht),se(Xe),console.log("err:",Xe)})}catch(Xe){}})});return(0,Ft.useEffect)(()=>{Ht.every(we=>we==="done"||we==="error")&&Yt.onComplete(Ht)},[Ht]),(0,Ft.useEffect)(()=>{Gt&&(ae==null||ae.cancel())},[Gt]),(0,Ft.useEffect)(()=>{Yt.uploading&&Ht.map(we=>wt(void 0,null,function*(){var Me;if((!we.status||we.status==="error")&&!Gt){we.status="uploading",we.file.status="uploading";const ke=yield re(we,{login:(Me=Xt==null?void 0:Xt.userInfo)==null?void 0:Me.login,container_type:Yt.container_type,container_id:Yt.container_id,description:Yt.description,realFileName:Yt.realFileName})}}))},[Yt.uploading]),Ft.createElement(Et,at(it({},Kt),{height:Yt.height,className:Yt.className}),Ft.createElement("p",{className:"ant-upload-hint"},Yt.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};Ke.ZP=(0,vt.connect)(({loading:It,globalSetting:Ut,user:Xt})=>({globalSetting:Ut,loading:It.models.competitions,user:Xt}))(Lt)},61398:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return kt}});var Ft=Rt(59301),ie=Rt(34604),rt=Rt(11611),kt=()=>{const[Ct,St]=(0,Ft.useState)(""),[pt,vt]=(0,Ft.useState)(0);let[yt,xt]=(0,Ft.useState)(),[dt,ft]=(0,Ft.useState)();const[ct,lt]=(0,Ft.useState)(!1),E=(0,Ft.useRef)("");(0,Ft.useEffect)(()=>ie.Z.subscribe("preview-image",jt=>{St(jt),console.log(At.current),document.body.style.overflow="hidden"}),[]),(0,Ft.useEffect)(()=>(document.addEventListener("keydown",z),()=>{document.removeEventListener("keydown",z)}),[]),(0,Ft.useEffect)(()=>{E.current=Ct},[Ct]);function z(Mt){Mt.keyCode==27&&E.current&&ot()}function ot(){document.body.style.overflow="auto",xt(void 0),ft(void 0),vt(0),St("")}function it(){vt(pt+90)}function at(){yt=At.current.width*1.1,dt=At.current.height*1.1,ft(dt),xt(yt)}function ut(){yt=At.current.width/1.1,dt=At.current.height/1.1,ft(dt),xt(yt)}const wt=(0,Ft.useRef)(),Et=(0,Ft.useRef)(),At=(0,Ft.useRef)(),_t=Mt=>{(Mt.nativeEvent.target===wt.current||Mt.nativeEvent.target===Et.current)&&ot()};return Ft.createElement(Ft.Fragment,null,Ct?Ft.createElement("div",null,Ft.createElement("div",{className:"preview-wrp-group",ref:Et},Ft.createElement(rt.Z,{className:"image-preview",src:Ct,style:{display:"none"},preview:{visible:!0,src:Ct,onVisibleChange:Mt=>{St("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},53932:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{h:function(){return wt},Z:function(){return ut}});var Ft=Rt(59301),ie=Rt(57809),rt=Rt(78241),kt=Rt(3113),Ct=Rt(89780),St=Rt.n(Ct),pt=Rt(37036),vt=Object.defineProperty,yt=Object.defineProperties,xt=Object.getOwnPropertyDescriptors,dt=Object.getOwnPropertySymbols,ft=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,lt=(Et,At,_t)=>At in Et?vt(Et,At,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Et[At]=_t,E=(Et,At)=>{for(var _t in At||(At={}))ft.call(At,_t)&<(Et,_t,At[_t]);if(dt)for(var _t of dt(At))ct.call(At,_t)&<(Et,_t,At[_t]);return Et},z=(Et,At)=>yt(Et,xt(At));const ot=ie.default.Option,it={labelCol:{span:4},wrapperCol:{span:20}},at={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"]};var ut=({callback:Et,onCancel:At})=>{const[_t,Mt]=(0,Ft.useState)("python");function jt(It){Mt(at[It][1])}function Lt(It){Et(It)}return Ft.createElement(rt.default,z(E({},it),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Lt,style:{width:500}}),Ft.createElement(rt.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},Ft.createElement(ie.default,{getPopupContainer:It=>It.parentNode,onChange:jt},Object.keys(at).map(It=>Ft.createElement(ot,{key:It,value:It},at[It][0])))),Ft.createElement(rt.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},Ft.createElement(wt,{mode:_t})),Ft.createElement("div",{className:"flex-container flex-end"},Ft.createElement(kt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ft.createElement(kt.ZP,{type:"ghost",onClick:At},"\u53D6\u6D88")))};function wt({value:Et,onChange:At,mode:_t,options:Mt={}}){const jt=(0,Ft.useRef)(),[Lt,It]=(0,Ft.useState)();return(0,Ft.useEffect)(()=>{if(Lt){let Ut=function(Xt){const Gt=Xt.getValue();At&&At(Gt)};return Lt.on("change",Ut),()=>{Lt.off("change",Ut)}}},[Lt,At]),(0,Ft.useEffect)(()=>{Lt&&Lt.setOption("mode",_t)},[Lt,_t]),(0,Ft.useEffect)(()=>{Lt&&(Et!==Lt.getValue()||Et==="")&&setTimeout(()=>{Lt.setValue(Et||"")},300)},[Lt,Et]),(0,Ft.useEffect)(()=>{if(jt.current&&!Lt){const Ut=St().fromTextArea(jt.current,E({mode:_t,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Mt));It(Ut)}},[jt.current,Lt]),Ft.createElement("div",{className:"my-codemirror-container"},Ft.createElement("textarea",{ref:jt}))}},12290:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return sa}});var Ft=Rt(59301),ie=Rt(89780),rt=Rt.n(ie),kt=Rt(76374),Ct=Rt(37036),St=Rt(6313),pt=Rt(25717),vt=Rt(99498),yt=Rt(25419),xt=Rt(67549),dt=Rt(85149),ft=({value:dn="",className:en,showTextOnly:qe,showLines:zn,style:Jn={}})=>{const hi=(0,Ft.useMemo)(()=>"",[dn]);return Ft.createElement(Ft.Fragment,null,Ft.createElement("div",{dangerouslySetInnerHTML:{__html:hi}}))},ct=Rt(59301),lt=Object.defineProperty,E=Object.defineProperties,z=Object.getOwnPropertyDescriptors,ot=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable,ut=(dn,en,qe)=>en in dn?lt(dn,en,{enumerable:!0,configurable:!0,writable:!0,value:qe}):dn[en]=qe,wt=(dn,en)=>{for(var qe in en||(en={}))it.call(en,qe)&&ut(dn,qe,en[qe]);if(ot)for(var qe of ot(en))at.call(en,qe)&&ut(dn,qe,en[qe]);return dn},Et=(dn,en)=>E(dn,z(en));let At=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function _t({onActionCallback:dn,title:en,icon:qe,actionName:zn,className:Jn="",children:hi}){function bn(){dn(zn)}return ct.createElement("a",{title:en,className:Jn,onClick:bn},ct.createElement("i",{className:`${qe}`}),hi)}var Mt=({watch:dn,showNullButton:en,showNullProgramButton:qe,onActionCallback:zn,fullScreen:Jn,insertTemp:hi,hidetoolBar:bn,extraUse:Bn})=>{const Xi=[...At,{title:`${dn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${dn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return ct.createElement("ul",{className:"markdown-toolbar-container"},!bn&&Xi.map((dr,ir)=>ct.createElement("li",{key:ir},dr.actionName?ct.createElement(_t,Et(wt({},dr),{onActionCallback:zn})):ct.createElement("span",{className:"v-line"}))),en?ct.createElement("li",null,ct.createElement(_t,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:zn},ct.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,qe?ct.createElement(ct.Fragment,null,ct.createElement("li",null,ct.createElement(_t,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:zn},ct.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),ct.createElement("li",null,ct.createElement(_t,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:zn},ct.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,hi&&ct.createElement("li",null,ct.createElement(_t,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${hi}`,onActionCallback:zn},ct.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Bn&&ct.createElement("li",null,Bn),ct.createElement("li",{className:"btn-full-screen"},ct.createElement(_t,{icon:`${Jn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Jn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:zn})))},jt=Rt(79346),Lt=Rt(78241),It=Rt(92832),Ut=Rt(3113),Xt=Object.defineProperty,Gt=Object.defineProperties,Yt=Object.getOwnPropertyDescriptors,Ht=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,ve=(dn,en,qe)=>en in dn?Xt(dn,en,{enumerable:!0,configurable:!0,writable:!0,value:qe}):dn[en]=qe,Kt=(dn,en)=>{for(var qe in en||(en={}))ne.call(en,qe)&&ve(dn,qe,en[qe]);if(Ht)for(var qe of Ht(en))ae.call(en,qe)&&ve(dn,qe,en[qe]);return dn},re=(dn,en)=>Gt(dn,Yt(en));const we={labelCol:{span:4},wrapperCol:{span:20}};var Me=({callback:dn,onCancel:en})=>{function qe(zn){dn(zn)}return Ft.createElement(Lt.default,re(Kt({},we),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:qe,style:{width:500}}),Ft.createElement(Lt.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},Ft.createElement(It.default,null)),Ft.createElement(Lt.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},Ft.createElement(It.default,null)),Ft.createElement("div",{className:"flex-container flex-end"},Ft.createElement(Ut.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ft.createElement(Ut.ZP,{type:"ghost",onClick:en},"\u53D6\u6D88")))},ke=Rt(53932),me=Rt(28451),fe=Rt(43418),pe=Rt(95237),_e=Rt(16406),je=Rt(59301),He=({callback:dn,onCancel:en})=>{const qe=document.createElement("canvas"),zn=qe.getContext("2d");qe.width=1e3,qe.height=800,zn.fillStyle="#ffffff",zn.fillRect(0,0,qe.width,qe.height);const Jn=qe.toDataURL("image/png");return je.createElement(fe.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},je.createElement(pe.Z,{style:{height:"100vh"}},je.createElement(_e.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Jn,visible:!0,title:String(Date.now())},onOk:hi=>{dn({src:hi.url})},onClose:en})))},Se=Rt(12378);function xe(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(xe,go.CommandHandler),xe.prototype.canAlignSelection=function(){var dn=this.diagram;return!(dn===null||dn.isReadOnly||dn.isModelReadOnly||dn.selection.count<2)},xe.prototype.alignLeft=function(){var dn=this.diagram;dn.startTransaction("aligning left");var en=1/0;dn.selection.each(function(qe){qe instanceof go.Link||(en=Math.min(qe.position.x,en))}),dn.selection.each(function(qe){qe instanceof go.Link||qe.move(new go.Point(en,qe.position.y))}),dn.commitTransaction("aligning left")},xe.prototype.alignRight=function(){var dn=this.diagram;dn.startTransaction("aligning right");var en=-1/0;dn.selection.each(function(qe){if(!(qe instanceof go.Link)){var zn=qe.actualBounds.x+qe.actualBounds.width;en=Math.max(zn,en)}}),dn.selection.each(function(qe){qe instanceof go.Link||qe.move(new go.Point(en-qe.actualBounds.width,qe.position.y))}),dn.commitTransaction("aligning right")},xe.prototype.alignTop=function(){var dn=this.diagram;dn.startTransaction("alignTop");var en=1/0;dn.selection.each(function(qe){qe instanceof go.Link||(en=Math.min(qe.position.y,en))}),dn.selection.each(function(qe){qe instanceof go.Link||qe.move(new go.Point(qe.position.x,en))}),dn.commitTransaction("alignTop")},xe.prototype.alignBottom=function(){var dn=this.diagram;dn.startTransaction("aligning bottom");var en=-1/0;dn.selection.each(function(qe){if(!(qe instanceof go.Link)){var zn=qe.actualBounds.y+qe.actualBounds.height;en=Math.max(zn,en)}}),dn.selection.each(function(qe){qe instanceof go.Link||qe.move(new go.Point(qe.actualBounds.x,en-qe.actualBounds.height))}),dn.commitTransaction("aligning bottom")},xe.prototype.alignCenterX=function(){var dn=this.diagram,en=dn.selection.first();if(en){dn.startTransaction("aligning Center X");var qe=en.actualBounds.x+en.actualBounds.width/2;dn.selection.each(function(zn){zn instanceof go.Link||zn.move(new go.Point(qe-zn.actualBounds.width/2,zn.actualBounds.y))}),dn.commitTransaction("aligning Center X")}},xe.prototype.alignCenterY=function(){var dn=this.diagram,en=dn.selection.first();if(en){dn.startTransaction("aligning Center Y");var qe=en.actualBounds.y+en.actualBounds.height/2;dn.selection.each(function(zn){zn instanceof go.Link||zn.move(new go.Point(zn.actualBounds.x,qe-zn.actualBounds.height/2))}),dn.commitTransaction("aligning Center Y")}},xe.prototype.alignColumn=function(dn){var en=this.diagram;en.startTransaction("align Column"),dn===void 0&&(dn=0),dn=parseFloat(dn);var qe=new Array;en.selection.each(function(Bn){Bn instanceof go.Link||qe.push(Bn)});for(var zn=0;zn0){for(var Bn=hi.elt(bn-1);Bn!==null&&Bn.isTreeExpanded&&!Bn.isTreeLeaf;){var Xi=this._sortTreeChildrenByY(Bn);Bn=Xi.last()}Bn!==null&&dn.select(Bn)}else dn.select(Jn)}}else if(qe.key==="Down")if(en.isTreeExpanded&&!en.isTreeLeaf){var zn=this._sortTreeChildrenByY(en).first();zn!==null&&dn.select(zn)}else for(;en!==null;){var Jn=en.findTreeParentNode();if(Jn===null)break;var hi=this._sortTreeChildrenByY(Jn),bn=hi.indexOf(en);if(bnhi.y?1:Jn.xhi.x?1:0}),en},xe.prototype.copyToClipboard=function(dn){go.CommandHandler.prototype.copyToClipboard.call(this,dn),this._lastPasteOffset.set(this.pasteOffset)},xe.prototype.pasteFromClipboard=function(){var dn=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(dn,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),dn},Object.defineProperty(xe.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(dn){if(dn!=="move"&&dn!=="select"&&dn!=="scroll"&&dn!=="tree"&&dn!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+dn);this._arrowKeyBehavior=dn}}),Object.defineProperty(xe.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(dn){if(!(dn instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+dn);this._pasteOffset.set(dn)}});var le=xe,Ne=Rt(74413),se=Rt(43604),Ae=Rt(99064),Xe={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Be=Rt(24065),Te=Rt(59301),ue=(dn,en,qe)=>new Promise((zn,Jn)=>{var hi=Xi=>{try{Bn(qe.next(Xi))}catch(dr){Jn(dr)}},bn=Xi=>{try{Bn(qe.throw(Xi))}catch(dr){Jn(dr)}},Bn=Xi=>Xi.done?zn(Xi.value):Promise.resolve(Xi.value).then(hi,bn);Bn((qe=qe.apply(dn,en)).next())});function $t({onCancel:dn,callback:en}){let qe=(0,Ft.useRef)(),zn=(0,Ft.useRef)(),Jn=(0,Ft.useRef)(),hi=(0,Ft.useRef)(!1);const bn=(0,Ft.useRef)(!1),[Bn,Xi]=(0,Ft.useState)(0);function dr(){const We=Se.bx.make,Nn={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"};qe.current=new Se.S0(zn.current,{padding:20,grid:We(Se.s_,"Grid",We(Se.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),We(Se.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:On=>{var Qn=On.diagram.commandHandler.addTopLevelParts(On.diagram.selection,!0);Qn||On.diagram.currentTool.doCancel()},commandHandler:We(le),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:On=>{var Qn=On.subject;Qn.location=Qn.location.copy().snapToGridPoint(On.diagram.grid.gridOrigin,On.diagram.grid.gridCellSize),setTimeout(()=>{On.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:On=>{var Qn=On.subject;setTimeout(()=>{On.diagram.commandHandler.editTextBlock()})},LinkRelinked:On=>{var Qn=On.parameter.part;Qn.invalidateConnectedLinks();var si=On.subject;On.diagram.toolManager.linkingTool.isForwards?si.toNode.invalidateConnectedLinks():si.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),qe.current.nodeTemplate=We(Se.NB,"Auto",{locationSpot:Se.z6.Center,locationObjectName:"SHAPE",desiredSize:new Se.$u(120,60),minSize:new Se.$u(40,40),resizable:!0,resizeCellSize:new Se.$u(10,10),rotatable:!0},new Se.KX("location","loc",Se.E9.parse).makeTwoWay(Se.E9.stringify),new Se.KX("desiredSize","size",Se.$u.parse).makeTwoWay(Se.$u.stringify),We(Se.bn,{name:"SHAPE",fill:Nn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Se.z6.AllSides,toSpot:Se.z6.AllSides},new Se.KX("figure"),new Se.KX("fill"),new Se.KX("stroke","borderColor"),new Se.KX("strokeWidth","thickness"),new Se.KX("strokeDashArray","dash")),We(Se.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),We(Se.al,{margin:1,textAlign:"center",overflow:Se.al.OverflowEllipsis,editable:!0},new Se.KX("text").makeTwoWay(),new Se.KX("stroke","color"))),qe.current.nodeTemplate.toolTip=We("ToolTip",We(Se.s_,"Vertical",{maxSize:new Se.$u(200,NaN)},We(Se.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Se.KX("text")),We(Se.al,{font:"10pt sans-serif",textAlign:"center"},new Se.KX("text","details"))));function ti(On,Qn){var si=(ei,Li)=>{ei.handled=!0,ei.diagram.model.commit(hr=>{var Vi=Li.part.adornedPart,Yi=new Se.E9().setRectSpot(Vi.actualBounds,On);Yi.subtract(Vi.location),Yi.scale(2,2),Yi.x+=Math.sign(Yi.x)*130,Yi.y+=Math.sign(Yi.y)*130,Yi.add(Vi.location),Yi.snapToGridPoint(ei.diagram.grid.gridOrigin,ei.diagram.grid.gridCellSize);var fr=hr.copyNodeData(Vi.data);hr.setGroupKeyForNodeData(fr,hr.getGroupKeyForNodeData(Vi.data)),hr.addNodeData(fr);var vn={from:Vi.key,to:hr.getKeyForNodeData(fr)};hr.addLinkData(vn);var Qi=ei.diagram.findNodeForData(fr);Qi.location=Yi,ei.diagram.select(Qi),setTimeout(()=>{ei.diagram.commandHandler.editTextBlock()},20)})};return We(Se.bn,{figure:Qn,alignment:On,alignmentFocus:On.opposite(),width:On.equals(Se.z6.Top)||On.equals(Se.z6.Bottom)?25:18,height:On.equals(Se.z6.Top)||On.equals(Se.z6.Bottom)?18:25,fill:"orange",stroke:Nn.white,strokeWidth:4,mouseEnter:(ei,Li)=>Li.fill="dodgerblue",mouseLeave:(ei,Li)=>Li.fill="orange",isActionable:!0,click:si,contextClick:si})}function pr(On){return We(Se.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:(Qn,si)=>si.fill="dodgerblue",mouseLeave:(Qn,si)=>si.fill="orange",click:(Qn,si)=>{Qn.diagram.commandHandler.showContextMenu(si.part.adornedPart)}},On||{})}qe.current.nodeTemplate.selectionAdornmentTemplate=We(Se.uz,"Spot",We(Se.Vm,{padding:10}),ti(Se.z6.Top,"TriangleUp"),ti(Se.z6.Left,"TriangleLeft"),ti(Se.z6.Right,"TriangleRight"),ti(Se.z6.Bottom,"TriangleDown"),pr({alignment:new Se.z6(.75,0)}));function on(On,Qn){return(si,ei)=>{si.handled=!0,si.diagram.model.commit(Li=>{Li.set(ei.part.adornedPart.data,On,Qn)})}}function Cn(On,Qn){return Qn||(Qn="color"),We(Se.bn,{width:16,height:16,stroke:"lightgray",fill:On,margin:1,background:"transparent",mouseEnter:(si,ei)=>ei.stroke="dodgerblue",mouseLeave:(si,ei)=>ei.stroke="lightgray",click:on(Qn,On),contextClick:on(Qn,On)})}function xi(){return[We("ContextMenuButton",We(Se.s_,"Horizontal",Cn(Nn.white,"fill"),Cn(Nn.beige,"fill"),Cn(Nn.extralightblue,"fill"),Cn(Nn.extralightred,"fill"))),We("ContextMenuButton",We(Se.s_,"Horizontal",Cn(Nn.lightgray,"fill"),Cn(Nn.lightgreen,"fill"),Cn(Nn.lightblue,"fill"),Cn(Nn.lightred,"fill")))]}function Zi(){return[We("ContextMenuButton",We(Se.s_,"Horizontal",Cn(Nn.black),Cn(Nn.green),Cn(Nn.blue),Cn(Nn.red))),We("ContextMenuButton",We(Se.s_,"Horizontal",Cn(Nn.white),Cn(Nn.magenta),Cn(Nn.purple),Cn(Nn.orange)))]}function Wi(On,Qn){return Qn||(Qn="thickness"),We(Se.bn,"LineH",{width:16,height:16,strokeWidth:On,margin:1,background:"transparent",mouseEnter:(si,ei)=>ei.background="dodgerblue",mouseLeave:(si,ei)=>ei.background="transparent",click:on(Qn,On),contextClick:on(Qn,On)})}function oi(On,Qn){return Qn||(Qn="dash"),We(Se.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:On,margin:1,background:"transparent",mouseEnter:(si,ei)=>ei.background="dodgerblue",mouseLeave:(si,ei)=>ei.background="transparent",click:on(Qn,On),contextClick:on(Qn,On)})}function ri(){return[We("ContextMenuButton",We(Se.s_,"Horizontal",Wi(1),Wi(2),Wi(3),Wi(4))),We("ContextMenuButton",We(Se.s_,"Horizontal",oi(null),oi([2,4]),oi([4,4])))]}function Zn(On,Qn){return Qn||(Qn="figure"),We(Se.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:On,margin:1,background:"transparent",mouseEnter:(si,ei)=>ei.fill="dodgerblue",mouseLeave:(si,ei)=>ei.fill="lightgray",click:on(Qn,On),contextClick:on(Qn,On)})}qe.current.nodeTemplate.contextMenu=We("ContextMenu",We("ContextMenuButton",We(Se.s_,"Horizontal",Zn("Rectangle"),Zn("RoundedRectangle"),Zn("Ellipse"),Zn("Diamond"))),We("ContextMenuButton",We(Se.s_,"Horizontal",Zn("Parallelogram2"),Zn("ManualOperation"),Zn("Procedure"),Zn("Cylinder1"))),We("ContextMenuButton",We(Se.s_,"Horizontal",Zn("Terminator"),Zn("CreateRequest"),Zn("Document"),Zn("TriangleDown"))),xi(),Zi(),ri()),qe.current.groupTemplate=We(Se.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Se.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(On,Qn)=>{var si=Qn.addMembers(Qn.diagram.selection,!0);si||Qn.diagram.currentTool.doCancel()},avoidable:!1},new Se.KX("location","loc",Se.E9.parse).makeTwoWay(Se.E9.stringify),We(Se.s_,"Auto",{name:"BODY"},We(Se.bn,{parameter1:10,fill:Nn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Se.z6.AllSides,toSpot:Se.z6.AllSides},new Se.KX("fill"),new Se.KX("stroke","color"),new Se.KX("strokeWidth","thickness"),new Se.KX("strokeDashArray","dash")),We(Se.Vm,{background:"transparent",margin:20})),We(Se.al,{alignment:Se.z6.Top,alignmentFocus:Se.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Se.KX("text"),new Se.KX("stroke","color"))),qe.current.groupTemplate.selectionAdornmentTemplate=We(Se.uz,"Spot",We(Se.s_,"Auto",We(Se.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),We(Se.Vm,{margin:1.5})),pr({alignment:Se.z6.TopRight,alignmentFocus:Se.z6.BottomRight})),qe.current.groupTemplate.contextMenu=We("ContextMenu",xi(),Zi(),ri()),qe.current.linkTemplate=We(Se.rU,{layerName:"Foreground",routing:Se.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Se.KX("fromSpot","fromSpot",Se.z6.parse),new Se.KX("toSpot","toSpot",Se.z6.parse),new Se.KX("fromShortLength","dir",On=>On>=1?10:0),new Se.KX("toShortLength","dir",On=>On>=1?10:0),new Se.KX("points").makeTwoWay(),We(Se.bn,{strokeWidth:2},new Se.KX("stroke","color"),new Se.KX("strokeWidth","thickness"),new Se.KX("strokeDashArray","dash")),We(Se.bn,{segmentIndex:0,segmentOffset:new Se.E9(15,0),segmentOrientation:Se.rU.OrientAlong,alignmentFocus:Se.z6.Right,figure:"circle",width:10,strokeWidth:0},new Se.KX("fill","color"),new Se.KX("visible","dir",On=>On===1)),We(Se.bn,{segmentIndex:-1,segmentOffset:new Se.E9(-10,6),segmentOrientation:Se.rU.OrientPlus90,alignmentFocus:Se.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Se.KX("fill","color"),new Se.KX("visible","dir",On=>On>=1),new Se.KX("width","thickness",On=>7+3*On),new Se.KX("height","thickness",On=>7+3*On),new Se.KX("segmentOffset","thickness",On=>new Se.E9(-15,4+1.5*On))),We(Se.bn,{segmentIndex:0,segmentOffset:new Se.E9(15,-6),segmentOrientation:Se.rU.OrientMinus90,alignmentFocus:Se.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Se.KX("fill","color"),new Se.KX("visible","dir",On=>On===2),new Se.KX("width","thickness",On=>7+3*On),new Se.KX("height","thickness",On=>7+3*On),new Se.KX("segmentOffset","thickness",On=>new Se.E9(-15,4+1.5*On))),We(Se.al,{alignmentFocus:new Se.z6(0,1,-4,0),editable:!0},new Se.KX("text").makeTwoWay(),new Se.KX("stroke","color"))),qe.current.linkTemplate.selectionAdornmentTemplate=We(Se.uz,We(Se.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:ur(2)},new Se.KX("pathPattern","thickness",ur)),pr({alignmentFocus:new Se.z6(0,0,-6,-4)}));function ur(On){return We(Se.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(On+4).toString()+" H3"})}function Yr(On){var Qn="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return On===0?Qn="M0 0 M16 16 M0 8 L16 8":On===2&&(Qn="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),We(Se.bn,{geometryString:Qn,margin:2,background:"transparent",mouseEnter:(si,ei)=>ei.background="dodgerblue",mouseLeave:(si,ei)=>ei.background="transparent",click:on("dir",On),contextClick:on("dir",On)})}function br(On){var Qn=(si,ei)=>{si.handled=!0,si.diagram.model.commit(Li=>{var hr=ei.part.adornedPart;Li.set(hr.data,On?"toSpot":"fromSpot",Se.z6.stringify(Se.z6.AllSides)),(On?hr.toNode:hr.fromNode).invalidateConnectedLinks()})};return We(Se.bn,{width:12,height:12,fill:"transparent",mouseEnter:(si,ei)=>ei.background="dodgerblue",mouseLeave:(si,ei)=>ei.background="transparent",click:Qn,contextClick:Qn})}function mn(On,Qn){var si=0,ei=Se.z6.RightSide;On.equals(Se.z6.Top)?(si=270,ei=Se.z6.TopSide):On.equals(Se.z6.Left)?(si=180,ei=Se.z6.LeftSide):On.equals(Se.z6.Bottom)&&(si=90,ei=Se.z6.BottomSide),Qn||(si-=180);var Li=(hr,Vi)=>{hr.handled=!0,hr.diagram.model.commit(Yi=>{var fr=Vi.part.adornedPart;Yi.set(fr.data,Qn?"toSpot":"fromSpot",Se.z6.stringify(ei)),(Qn?fr.toNode:fr.fromNode).invalidateConnectedLinks()})};return We(Se.bn,{alignment:On,alignmentFocus:On.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:si,background:"transparent",mouseEnter:(hr,Vi)=>Vi.background="dodgerblue",mouseLeave:(hr,Vi)=>Vi.background="transparent",click:Li,contextClick:Li})}qe.current.linkTemplate.contextMenu=We("ContextMenu",Zi(),ri(),We("ContextMenuButton",We(Se.s_,"Horizontal",Yr(0),Yr(1),Yr(2))),We("ContextMenuButton",We(Se.s_,"Horizontal",We(Se.s_,"Spot",br(!1),mn(Se.z6.Top,!1),mn(Se.z6.Left,!1),mn(Se.z6.Right,!1),mn(Se.z6.Bottom,!1)),We(Se.s_,"Spot",{margin:new Se.Zt(0,0,0,2)},br(!0),mn(Se.z6.Top,!0),mn(Se.z6.Left,!0),mn(Se.z6.Right,!0),mn(Se.z6.Bottom,!0)))));const er=`{ "class": "GraphLinksModel", + }`;return(0,Ft.useEffect)(()=>{const Xt=Lt.current.attachShadow({mode:"open"});It.current=document.createElement("div"),It.current.className="markdown-body",It.current.innerHTML=jt,Xt.appendChild(It.current);const Gt=document.createElement("style");return Gt.textContent=Ut,Xt.appendChild(Gt),()=>{Xt.innerHTML=""}},[]),(0,Ft.useEffect)(()=>{It.current&&(It.current.innerHTML=jt)},[jt]),dt.createElement("div",{ref:Lt})},lt=Object.defineProperty,E=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,it=(jt,Lt,It)=>Lt in jt?lt(jt,Lt,{enumerable:!0,configurable:!0,writable:!0,value:It}):jt[Lt]=It,at=(jt,Lt)=>{for(var It in Lt||(Lt={}))z.call(Lt,It)&&it(jt,It,Lt[It]);if(E)for(var It of E(Lt))ot.call(Lt,It)&&it(jt,It,Lt[It]);return jt};const ut="@\u2581\u2581@",wt="@\u2581@",Et=/]*>/g;function At(jt){let Lt=document.createElement("div");return Lt.innerHTML=jt,Lt.childNodes.length===0?"":Lt.childNodes[0].nodeValue}const _t=(jt,Lt)=>{jt=jt||"";const It=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ut=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Xt=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Gt=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Lt?jt.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(It,(Vt,Ht,ne,se,ve,Kt,re)=>{const we=Ht||se||Kt,ke=ne||ve||re||"?";return St.Z.API_SERVER+"/api/attachments/"+we+ke+"&t="+(0,pt.Jn)(we,Date.now())+(Vt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(jt=jt.replace(Gt,(Vt,Ht,ne,se,ve,Kt,re)=>{const we=Ht||se||Kt,ke=ne||ve||re||"?";return St.Z.API_SERVER+"/attachments/download/"+we+ke+"&t="+(0,pt.Jn)(we,Date.now())+(Vt.indexOf(")")>-1?")":"&")}).replace(It,(Vt,Ht,ne,se,ve,Kt,re)=>{const we=Ht||se||Kt,ke=ne||ve||re||"?";return St.Z.API_SERVER+"/api/attachments/"+we+ke+"&t="+(0,pt.Jn)(we,Date.now())+(Vt.indexOf(")")>-1?")":"&")}).replace(Ut,(Vt,Ht,ne,se,ve)=>{const Kt=Ht||se,re=ne||ve||"";return'"'+St.Z.API_SERVER+"/api/attachments/"+Kt+re+Kt+re+"&t="+(0,pt.Jn)(Kt,Date.now())}).replace(Xt,(Vt,Ht,ne,se,ve)=>{const Kt=Ht||se,re=ne||ve||"";return"("+St.Z.API_SERVER+"/files/uploads/"+Kt+re+Kt+re+"&t="+(0,pt.Jn)(Kt,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,` +`),jt)};var Mt=({value:jt="",className:Lt,showTextOnly:It,showLines:Ut,style:Xt={},stylesPrev:Gt={},highlightKeywords:Vt,showProgramFill:Ht,isProgramFill:ne,disabledFill:se=!1,programFillValue:ve,onFillChange:Kt=ke=>{},onFillBlur:re=()=>{},onFillFocus:we=()=>{}})=>{let ke=String(jt);const[Me,ge]=(0,Ft.useState)(""),[fe,de]=(0,Ft.useState)("office"),[_e,Oe]=(0,Ft.useState)([]),He=(0,Ft.useRef)("a"+(0,yt.Z)()),Se={},xe=(Qt,Wt,Bt)=>{const te=document.createElement(Qt===wt?"input":"textarea");te.style.width="100%",te.style.height=Qt===wt?"40px":"151px",te.rows=5,te.spellcheck=!1,te.name="edu-program-fill",te.placeholder="\u8BF7\u8F93\u5165",te.dataset.id=Wt;const me=Object.keys(Se).length;return Se[me]=te,`${te.outerHTML}`};function le(Qt){return Qt=Qt.replace(/!\[.*?\]\(.*?\)/g,""),Qt=Qt.replace(/\[.*?\]\(.*?\)/g,""),Qt=Qt.replace(new RegExp("","gs"),""),Qt=Qt.replace(//g,""),Qt=Qt.replace(//g,""),Qt=Qt.replace(new RegExp(".*?<\\/video>","gs"),""),Qt=Qt.replace(new RegExp(".*?<\\/audio>","gs"),""),Qt=Qt.replace(new RegExp(".*?<\\/style>","gs"),""),Qt=Qt.replace(new RegExp(".*?<\\/script>","gs"),""),Qt}const Ne=Qt=>Qt.replace(/([\s\S]+?)<\/style>/gim,function(Wt,Bt){let te=Bt.replace(/(\n|\r)/g,"").split("}"),me=[];return te.map(Jt=>{Jt!=""&&me.push(`.${He.current} ${Jt}`)}),``}),ae=(0,Ft.useMemo)(()=>{try{const te=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,me=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Jt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Ie=/\(\/attachments\/download\//g;ke=ke.replace(Ie,"("+St.Z.API_SERVER+"/attachments/download/").replace(te,"("+St.Z.API_SERVER+"/api/attachments/").replace(me,'"'+St.Z.API_SERVER+"/api/attachments/").replace(Jt,'"'+St.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(te){}if(Ht){let te=-1;return ke=ke.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(me,Jt,Ie){var Ue;return++te,xe(me,te,(Ue=ve==null?void 0:ve[te])==null?void 0:Ue.value.replaceAll("<","<").replaceAll(">",">"))}),`
${Ne(ke||"")}
`}let Qt=Ne(ke);Qt=(0,rt.ZP)(Qt);const Wt=(0,rt.ez)();ke.match(/\[TOC\]/)&&(Qt=Qt.replace("

[TOC]

",(0,rt.Qv)()),(0,rt.Iy)()),Qt=Qt.replace(/(__special_katext_id_\d+__)/g,(te,me)=>{const{type:Jt,expression:Ie}=Wt[me];return(0,vt.renderToString)(At(Ie)||"",{displayMode:Jt==="block",throwOnError:!1,output:"html"})}),Qt=Qt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,rt.AL)();const Bt=document.createElement("div");if(Bt.innerHTML=Qt,It)return Bt.innerText;if(Vt){const te=Vt.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Te(Bt,te),Bt.innerHTML}return setTimeout(()=>he(),500),Bt.innerHTML},[ke,Vt]);(0,Ft.useEffect)(()=>{ue.current&&ue.current.querySelectorAll(["input","textarea"]).forEach(Wt=>{Wt.oninput=Ae,Wt.onblur=Xe,Wt.onfocus=Be})},[_e]),(0,Ft.useEffect)(()=>{var Qt,Wt,Bt,te,me;if(ve!=null&&ve.length)try{const Jt=ue.current.querySelectorAll(".edu-program-fill-score"),Ie=ue.current.querySelectorAll('[name="edu-program-fill"]');for(const[Ue,Je]of Ie.entries())Je.value=((Qt=ve==null?void 0:ve[Ue])==null?void 0:Qt.value)||"",((Wt=ve==null?void 0:ve[Ue])==null?void 0:Wt.type)==="warning"?Je.className="program-fill-warning":((Bt=ve==null?void 0:ve[Ue])==null?void 0:Bt.type)==="success"?Je.className="program-fill-success":Je.className="";for(const[Ue,Je]of Jt.entries())Je.innerHTML=(te=ve==null?void 0:ve[Ue])!=null&&te.score?`${(me=ve==null?void 0:ve[Ue])==null?void 0:me.score}\u5206`:"";Oe(ve)}catch(Jt){console.log(Jt,"error")}},[ve]);const Ae=Qt=>{_e[Qt.target.dataset.id]=_e[Qt.target.dataset.id]||{},_e[Qt.target.dataset.id].value=Qt.target.value,Oe([..._e]),Kt(_e,Qt.target.dataset.id)},Xe=Qt=>{_e[Qt.target.dataset.id]=_e[Qt.target.dataset.id]||{},_e[Qt.target.dataset.id].value=Qt.target.value,Oe([..._e]),re(_e,Qt.target.dataset.id)},Be=Qt=>{_e[Qt.target.dataset.id]=_e[Qt.target.dataset.id]||{},_e[Qt.target.dataset.id].value=Qt.target.value,Oe([..._e]),we(_e,Qt.target.dataset.id)};function Te(Qt,Wt){return Qt.childNodes.forEach(Bt=>{var te;if(Bt.childNodes.length>0)Te(Bt,Wt);else if(Bt.nodeName!=="IMG")if(Bt.innerHTML)Bt.innerHTML=(te=Bt.innerHTML)==null?void 0:te.replace(new RegExp(Wt,"gi"),'$&');else{const me=document.createElement("span");me.innerHTML=Bt.textContent.replace(new RegExp(Wt,"gi"),'$&'),Bt.replaceWith(me)}})}const ue=(0,Ft.useRef)();rt.jb.WebkitLineClamp=Ut,Ut&&(Xt=at(at({},Xt),rt.jb));function $t(Qt){let Wt=Qt.target;if(Wt.tagName.toUpperCase()==="A"){let Bt=Wt.getAttribute("href");if(Bt.indexOf("office")>-1)Qt.preventDefault(),ge(Bt),de("office");else if(Bt.indexOf("application/pdf")>-1)Qt.preventDefault(),ge(Bt),de("pdf");else if(Bt.indexOf("text/html")>-1)Qt.preventDefault(),ge(Bt),de("html");else if(Bt.startsWith("#")){Qt.preventDefault();let te=document.getElementById(Bt.replace("#",""));te&&te.scrollIntoView(!0)}}}const he=()=>{var Qt;const Wt=(Qt=ue.current)==null?void 0:Qt.querySelectorAll("video");Wt==null||Wt.forEach(Bt=>{if(Bt.oncontextmenu=()=>!1,Bt.src.indexOf(".m3u8")>-1&&!Bt.canPlayType("application/vnd.apple.mpegurl")){if(Ct.ZP.isSupported()){var te=new Ct.ZP;te.loadSource(Bt.src),te.attachMedia(Bt)}}})};(0,Ft.useEffect)(()=>{if(ue.current&&ae&&ae.match(Et)&&window.PR.prettyPrint(),ue.current)return ue.current.addEventListener("click",$t),()=>{var Qt;(Qt=ue.current)==null||Qt.removeEventListener("click",$t),(0,rt.AL)(),(0,rt.Iy)()}},[ae,ue.current,$t]),(0,Ft.useEffect)(()=>{var Qt;const Wt=Bt=>{Bt.preventDefault(),Bt.clipboardData.setData("text",window.getSelection().toString())};return(Qt=ue.current)==null||Qt.addEventListener("copy",Wt),()=>{var Bt;(Bt=ue.current)==null||Bt.removeEventListener("copy",Wt)}},[ue.current]);const ye=Qt=>//i.test(Qt||"");return Ft.createElement(Ft.Fragment,null,It&&Ft.createElement("div",{ref:ue},ae),!It&&!ye(ae)&&Ft.createElement("div",{ref:ue,style:at({},Xt),className:`${Lt||""} ${se?"disabled-fill":""} markdown-body ${He.current}`,dangerouslySetInnerHTML:{__html:ae}}),!It&&ye(ae)&&Ft.createElement(ct,{html:ae}),Ft.createElement(xt.Z,{close:!0,data:Me,type:Me!=null&&Me.length?fe:"",style:at({},Gt),onClose:()=>ge("")}))}},33538:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return kt}});var Ft=Rt(89070),ie={ldsRing:"ldsRing___mpBZC",idsRingWrapper:"idsRingWrapper___Of9_n",ldsring:"ldsring___o0w2t"},rt=Rt(59301),kt=({message:Ct,className:St,children:pt,style:vt={}})=>rt.createElement("div",{className:`custom-spinner ${ie.idsRingWrapper} ${St}`},rt.createElement("div",{className:ie.ldsRing},rt.createElement("div",null),rt.createElement("div",null),rt.createElement("div",null),rt.createElement("div",null)),Ct?rt.createElement("p",{style:vt},Ct):null,pt,rt.createElement(Ft.Outlet,null))},13787:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return St}});var Ft=Rt(59301),ie={flex_box_center:"flex_box_center___Gc4dd",flex_space_between:"flex_space_between___K2f1v",flex_box_vertical_center:"flex_box_vertical_center___pupRp",flex_box_center_end:"flex_box_center_end___UDLRC",flex_box_column:"flex_box_column___a5uDo",result:"result___gu5zt",title:"title___xrnx2",left:"left___IAxp9",leftNode:"leftNode___HL8fG",right:"right___ZXYmw",rightNode:"rightNode___jYL5_"},rt=Rt(92310),kt=Rt.n(rt),St=({className:pt,style:vt={},leftNode:yt,leftTitle:xt="\u81EA\u6D4B\u8F93\u5165",rightNode:dt,rightTitle:ft="\u8FD0\u884C\u7ED3\u679C"})=>Ft.createElement("div",{className:kt()(ie.result,pt),style:vt},Ft.createElement("div",{className:ie.left},Ft.createElement("div",{className:ie.title},Ft.createElement("i",{style:{color:"#08CF76"},className:"iconfont iconfont icon-zidingyiceshiyongli font14 mr5"}),Ft.createElement("span",null,xt)),Ft.createElement("div",{className:ie.leftNode},yt)),Ft.createElement("div",{className:ie.right},Ft.createElement("div",{className:ie.title},Ft.createElement("i",{style:{color:"#00DFFF"},className:"iconfont iconfont icon-daimazhihangjieguo font14 mr5"}),Ft.createElement("span",null,ft)),Ft.createElement("div",{className:ie.rightNode},dt)))},81939:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{cT:function(){return jt},pe:function(){return At}});var Ft=Rt(59301),ie=Rt(54580),rt=Rt(8591),kt=Rt(99064),Ct=Rt(28209),St=Rt.n(Ct),pt=Rt(1012),vt=Rt(89070),yt=Rt(47257),xt=Rt.n(yt),dt=Object.defineProperty,ft=Object.defineProperties,ct=Object.getOwnPropertyDescriptors,lt=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ot=(It,Ut,Xt)=>Ut in It?dt(It,Ut,{enumerable:!0,configurable:!0,writable:!0,value:Xt}):It[Ut]=Xt,it=(It,Ut)=>{for(var Xt in Ut||(Ut={}))E.call(Ut,Xt)&&ot(It,Xt,Ut[Xt]);if(lt)for(var Xt of lt(Ut))z.call(Ut,Xt)&&ot(It,Xt,Ut[Xt]);return It},at=(It,Ut)=>ft(It,ct(Ut)),ut=(It,Ut)=>{var Xt={};for(var Gt in It)E.call(It,Gt)&&Ut.indexOf(Gt)<0&&(Xt[Gt]=It[Gt]);if(It!=null&<)for(var Gt of lt(It))Ut.indexOf(Gt)<0&&z.call(It,Gt)&&(Xt[Gt]=It[Gt]);return Xt},wt=(It,Ut,Xt)=>new Promise((Gt,Vt)=>{var Ht=ve=>{try{se(Xt.next(ve))}catch(Kt){Vt(Kt)}},ne=ve=>{try{se(Xt.throw(ve))}catch(Kt){Vt(Kt)}},se=ve=>ve.done?Gt(ve.value):Promise.resolve(ve.value).then(Ht,ne);se((Xt=Xt.apply(It,Ut)).next())});const{Dragger:Et}=ie.default,At=It=>{const Ut="bf3c199c2470cb477d907b1e0917c17b",Xt="5183666c72eec9e4";var Gt=St().enc.Utf8.parse(Ut);let Vt=St().enc.Utf8.parse(Xt);var Ht=St().AES.decrypt(It,Gt,{iv:Vt,mode:St().mode.CBC});return Ht.toString(St().enc.Utf8)};let _t;const Mt=It=>wt(void 0,[It],function*({identifier:Ut,oldFilename:Xt,newFilename:Gt}){var Vt,Ht,ne,se,ve,Kt;const re=yield Fetch("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});re.data=JSON.parse(At(re.data));const we=new OSS({endpoint:(Vt=re==null?void 0:re.data)==null?void 0:Vt.end_point,region:(Ht=re==null?void 0:re.data)==null?void 0:Ht.region,accessKeyId:(ne=re==null?void 0:re.data)==null?void 0:ne.access_key_id,accessKeySecret:(se=re==null?void 0:re.data)==null?void 0:se.access_key_secret,bucket:(ve=re==null?void 0:re.data)==null?void 0:ve.bucket,stsToken:(Kt=re==null?void 0:re.data)==null?void 0:Kt.security_token});return new Promise((ke,Me)=>{console.log(11111,`${Ut}/${Xt}`,`${Ut}/${Gt}`,re.data),we.copy(`/${Ut}/${Xt}`,`/${Ut}/${Gt}`).then(ge=>{console.log("\u62F7\u8D1D\u6210\u529F",ge)}).catch(ge=>{console.log(ge)})})}),jt=(It,Ut,Xt)=>wt(void 0,null,function*(){var Gt,Vt,Ht,ne,se,ve;Ut.file_name=It.name;const Kt=yield(0,kt.ZP)("/api/buckets/get_upload_token.json",{method:"get"});console.log("decrypt(res.data):",At(Kt.data)),Kt.data=JSON.parse(At(Kt.data));const re=It.name.split(".");re.pop();const we=Ut.realFileName?re.join(""):(0,pt.Z)(),ke=new(xt())({endpoint:(Gt=Kt==null?void 0:Kt.data)==null?void 0:Gt.end_point,region:(Vt=Kt==null?void 0:Kt.data)==null?void 0:Vt.region,accessKeyId:(Ht=Kt==null?void 0:Kt.data)==null?void 0:Ht.access_key_id,accessKeySecret:(ne=Kt==null?void 0:Kt.data)==null?void 0:ne.access_key_secret,bucket:(se=Kt==null?void 0:Kt.data)==null?void 0:se.bucket,stsToken:(ve=Kt==null?void 0:Kt.data)==null?void 0:ve.security_token});return new Promise((Me,ge)=>{var fe;ke.multipartUpload(`${we}`,new Blob([It],{type:It.type}),at(it({timeout:200*1e3,partSize:102400},Xt),{callback:{url:(fe=Kt==null?void 0:Kt.data)==null?void 0:fe.callback_url,host:Kt==null?void 0:Kt.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,kt.rz)(Ut)}})).then(function(de){var _e;It.response=(_e=de.data)==null?void 0:_e.data,Me(de==null?void 0:de.data)}).catch(function(de){ge(de),console.log("err:",de)})})}),Lt=It=>{var Ut=It,{user:Xt,cancelUpload:Gt}=Ut,Vt=ut(Ut,["user","cancelUpload"]);const[Ht,ne]=(0,Ft.useState)([]);let[se,ve]=(0,Ft.useState)();const Kt={onRemove:we=>{ne([...Ht.filter(ke=>ke.name!==we.name)]),Vt.onChange(Ht.filter(ke=>ke.name!==we.name))},disabled:Vt.disabled,multiple:!0,fileList:Ht==null?void 0:Ht.map(we=>we.file),customRequest:()=>{},beforeUpload:we=>wt(void 0,null,function*(){let ke=Vt.maxSize||1073741824;if(Ht.filter(Me=>Me.name===we.name).length){rt.ZP.info(`${we.name}\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`);return}return(we==null?void 0:we.size)>ke?(rt.ZP.info(`\u6587\u4EF6\u8D85\u8FC7${ke/1024/1024/1024}GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42`),!1):(Ht.push({name:we.name,file:we}),ne([...Ht]),Vt.onChange(Ht),!1)})},re=(we,ke)=>wt(void 0,null,function*(){var Me,ge,fe,de,_e,Oe;ke.file_name=we.name;const He=we.name,Se=yield(0,kt.ZP)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});if(Se.data=JSON.parse(At(Se.data)),(Se==null?void 0:Se.status)!==0){Ht[Ht.findIndex(Ne=>Ne.name===He)].status="error",Ht[Ht.findIndex(Ne=>Ne.name===He)].file.status="error",Vt.onChange(Ht),rt.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}se=new(xt())({endpoint:(Me=Se==null?void 0:Se.data)==null?void 0:Me.end_point,region:(ge=Se==null?void 0:Se.data)==null?void 0:ge.region,accessKeyId:(fe=Se==null?void 0:Se.data)==null?void 0:fe.access_key_id,accessKeySecret:(de=Se==null?void 0:Se.data)==null?void 0:de.access_key_secret,bucket:(_e=Se==null?void 0:Se.data)==null?void 0:_e.bucket,stsToken:(Oe=Se==null?void 0:Se.data)==null?void 0:Oe.security_token}),console.log(we,"file"),ve(se);const xe=we.name.split(".");xe.pop();const le=He.indexOf(".")>-1?ke.realFileName?xe.join("."):(0,pt.Z)():He;return new Promise((Ne,ae)=>{var Ae;try{se.multipartUpload(`${Vt.identifier}/${le}${He.indexOf(".")>-1?"."+He.split(".").pop():""}`,new Blob([we.file],{type:we.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(Xe,Be,Te)=>{try{console.log("\u8FDB\u5EA6",Xe,Be,Te);const ue=Ht.findIndex($t=>$t.name===He);Ht[ue].file.percent=Xe*100,Ht[ue].tempCheckpoint=Be,ne([...Ht])}catch(ue){}},checkpoint:Ht[Ht.findIndex(Xe=>Xe.name===He)].tempCheckpoint,callback:{customValue:{id:He+""},url:(Ae=Se==null?void 0:Se.data)==null?void 0:Ae.callback_url,host:Se==null?void 0:Se.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,kt.rz)(ke)}}).then(function(Xe){var Be,Te,ue;const $t=Ht.findIndex(ye=>ye.name===He);let he="done";if(((Be=Xe.data)==null?void 0:Be.status)===0){we.response=(Te=Xe.data)==null?void 0:Te.data;const ye=Ht.findIndex(Qt=>Qt.name===He);Ht[ye].status="done",Ht[ye].file.status="done"}else rt.ZP.warning((ue=Xe.data)==null?void 0:ue.message),he="error";Ht[$t].status=he,Ht[$t].file.status=he,Vt.onChange(Ht),Ne(Xe==null?void 0:Xe.data)}).catch(function(Xe){Ht[Ht.findIndex(Be=>Be.name===He)].status="error",Ht[Ht.findIndex(Be=>Be.name===He)].file.status="error",rt.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),ne([...Ht]),Vt.onChange(Ht),ae(Xe),console.log("err:",Xe)})}catch(Xe){}})});return(0,Ft.useEffect)(()=>{Ht.every(we=>we==="done"||we==="error")&&Vt.onComplete(Ht)},[Ht]),(0,Ft.useEffect)(()=>{Gt&&(se==null||se.cancel())},[Gt]),(0,Ft.useEffect)(()=>{Vt.uploading&&Ht.map(we=>wt(void 0,null,function*(){var ke;if((!we.status||we.status==="error")&&!Gt){we.status="uploading",we.file.status="uploading";const Me=yield re(we,{login:(ke=Xt==null?void 0:Xt.userInfo)==null?void 0:ke.login,container_type:Vt.container_type,container_id:Vt.container_id,description:Vt.description,realFileName:Vt.realFileName})}}))},[Vt.uploading]),Ft.createElement(Et,at(it({},Kt),{height:Vt.height,className:Vt.className}),Ft.createElement("p",{className:"ant-upload-hint"},Vt.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};Ke.ZP=(0,vt.connect)(({loading:It,globalSetting:Ut,user:Xt})=>({globalSetting:Ut,loading:It.models.competitions,user:Xt}))(Lt)},61398:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return kt}});var Ft=Rt(59301),ie=Rt(34604),rt=Rt(11611),kt=()=>{const[Ct,St]=(0,Ft.useState)(""),[pt,vt]=(0,Ft.useState)(0);let[yt,xt]=(0,Ft.useState)(),[dt,ft]=(0,Ft.useState)();const[ct,lt]=(0,Ft.useState)(!1),E=(0,Ft.useRef)("");(0,Ft.useEffect)(()=>ie.Z.subscribe("preview-image",jt=>{St(jt),console.log(At.current),document.body.style.overflow="hidden"}),[]),(0,Ft.useEffect)(()=>(document.addEventListener("keydown",z),()=>{document.removeEventListener("keydown",z)}),[]),(0,Ft.useEffect)(()=>{E.current=Ct},[Ct]);function z(Mt){Mt.keyCode==27&&E.current&&ot()}function ot(){document.body.style.overflow="auto",xt(void 0),ft(void 0),vt(0),St("")}function it(){vt(pt+90)}function at(){yt=At.current.width*1.1,dt=At.current.height*1.1,ft(dt),xt(yt)}function ut(){yt=At.current.width/1.1,dt=At.current.height/1.1,ft(dt),xt(yt)}const wt=(0,Ft.useRef)(),Et=(0,Ft.useRef)(),At=(0,Ft.useRef)(),_t=Mt=>{(Mt.nativeEvent.target===wt.current||Mt.nativeEvent.target===Et.current)&&ot()};return Ft.createElement(Ft.Fragment,null,Ct?Ft.createElement("div",null,Ft.createElement("div",{className:"preview-wrp-group",ref:Et},Ft.createElement(rt.Z,{className:"image-preview",src:Ct,style:{display:"none"},preview:{visible:!0,src:Ct,onVisibleChange:Mt=>{St("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},53932:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{h:function(){return wt},Z:function(){return ut}});var Ft=Rt(59301),ie=Rt(57809),rt=Rt(78241),kt=Rt(3113),Ct=Rt(89780),St=Rt.n(Ct),pt=Rt(37036),vt=Object.defineProperty,yt=Object.defineProperties,xt=Object.getOwnPropertyDescriptors,dt=Object.getOwnPropertySymbols,ft=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,lt=(Et,At,_t)=>At in Et?vt(Et,At,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Et[At]=_t,E=(Et,At)=>{for(var _t in At||(At={}))ft.call(At,_t)&<(Et,_t,At[_t]);if(dt)for(var _t of dt(At))ct.call(At,_t)&<(Et,_t,At[_t]);return Et},z=(Et,At)=>yt(Et,xt(At));const ot=ie.default.Option,it={labelCol:{span:4},wrapperCol:{span:20}},at={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"]};var ut=({callback:Et,onCancel:At})=>{const[_t,Mt]=(0,Ft.useState)("python");function jt(It){Mt(at[It][1])}function Lt(It){Et(It)}return Ft.createElement(rt.default,z(E({},it),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Lt,style:{width:500}}),Ft.createElement(rt.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},Ft.createElement(ie.default,{getPopupContainer:It=>It.parentNode,onChange:jt},Object.keys(at).map(It=>Ft.createElement(ot,{key:It,value:It},at[It][0])))),Ft.createElement(rt.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},Ft.createElement(wt,{mode:_t})),Ft.createElement("div",{className:"flex-container flex-end"},Ft.createElement(kt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ft.createElement(kt.ZP,{type:"ghost",onClick:At},"\u53D6\u6D88")))};function wt({value:Et,onChange:At,mode:_t,options:Mt={}}){const jt=(0,Ft.useRef)(),[Lt,It]=(0,Ft.useState)();return(0,Ft.useEffect)(()=>{if(Lt){let Ut=function(Xt){const Gt=Xt.getValue();At&&At(Gt)};return Lt.on("change",Ut),()=>{Lt.off("change",Ut)}}},[Lt,At]),(0,Ft.useEffect)(()=>{Lt&&Lt.setOption("mode",_t)},[Lt,_t]),(0,Ft.useEffect)(()=>{Lt&&(Et!==Lt.getValue()||Et==="")&&setTimeout(()=>{Lt.setValue(Et||"")},300)},[Lt,Et]),(0,Ft.useEffect)(()=>{if(jt.current&&!Lt){const Ut=St().fromTextArea(jt.current,E({mode:_t,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Mt));It(Ut)}},[jt.current,Lt]),Ft.createElement("div",{className:"my-codemirror-container"},Ft.createElement("textarea",{ref:jt}))}},12290:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return sa}});var Ft=Rt(59301),ie=Rt(89780),rt=Rt.n(ie),kt=Rt(76374),Ct=Rt(37036),St=Rt(6313),pt=Rt(25717),vt=Rt(99498),yt=Rt(25419),xt=Rt(67549),dt=Rt(85149),ft=({value:dn="",className:en,showTextOnly:qe,showLines:zn,style:Jn={}})=>{const hi=(0,Ft.useMemo)(()=>"",[dn]);return Ft.createElement(Ft.Fragment,null,Ft.createElement("div",{dangerouslySetInnerHTML:{__html:hi}}))},ct=Rt(59301),lt=Object.defineProperty,E=Object.defineProperties,z=Object.getOwnPropertyDescriptors,ot=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable,ut=(dn,en,qe)=>en in dn?lt(dn,en,{enumerable:!0,configurable:!0,writable:!0,value:qe}):dn[en]=qe,wt=(dn,en)=>{for(var qe in en||(en={}))it.call(en,qe)&&ut(dn,qe,en[qe]);if(ot)for(var qe of ot(en))at.call(en,qe)&&ut(dn,qe,en[qe]);return dn},Et=(dn,en)=>E(dn,z(en));let At=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function _t({onActionCallback:dn,title:en,icon:qe,actionName:zn,className:Jn="",children:hi}){function bn(){dn(zn)}return ct.createElement("a",{title:en,className:Jn,onClick:bn},ct.createElement("i",{className:`${qe}`}),hi)}var Mt=({watch:dn,showNullButton:en,showNullProgramButton:qe,onActionCallback:zn,fullScreen:Jn,insertTemp:hi,hidetoolBar:bn,extraUse:Bn})=>{const Xi=[...At,{title:`${dn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${dn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return ct.createElement("ul",{className:"markdown-toolbar-container"},!bn&&Xi.map((dr,ir)=>ct.createElement("li",{key:ir},dr.actionName?ct.createElement(_t,Et(wt({},dr),{onActionCallback:zn})):ct.createElement("span",{className:"v-line"}))),en?ct.createElement("li",null,ct.createElement(_t,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:zn},ct.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,qe?ct.createElement(ct.Fragment,null,ct.createElement("li",null,ct.createElement(_t,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:zn},ct.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),ct.createElement("li",null,ct.createElement(_t,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:zn},ct.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,hi&&ct.createElement("li",null,ct.createElement(_t,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${hi}`,onActionCallback:zn},ct.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Bn&&ct.createElement("li",null,Bn),ct.createElement("li",{className:"btn-full-screen"},ct.createElement(_t,{icon:`${Jn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Jn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:zn})))},jt=Rt(79346),Lt=Rt(78241),It=Rt(92832),Ut=Rt(3113),Xt=Object.defineProperty,Gt=Object.defineProperties,Vt=Object.getOwnPropertyDescriptors,Ht=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,ve=(dn,en,qe)=>en in dn?Xt(dn,en,{enumerable:!0,configurable:!0,writable:!0,value:qe}):dn[en]=qe,Kt=(dn,en)=>{for(var qe in en||(en={}))ne.call(en,qe)&&ve(dn,qe,en[qe]);if(Ht)for(var qe of Ht(en))se.call(en,qe)&&ve(dn,qe,en[qe]);return dn},re=(dn,en)=>Gt(dn,Vt(en));const we={labelCol:{span:4},wrapperCol:{span:20}};var ke=({callback:dn,onCancel:en})=>{function qe(zn){dn(zn)}return Ft.createElement(Lt.default,re(Kt({},we),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:qe,style:{width:500}}),Ft.createElement(Lt.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},Ft.createElement(It.default,null)),Ft.createElement(Lt.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},Ft.createElement(It.default,null)),Ft.createElement("div",{className:"flex-container flex-end"},Ft.createElement(Ut.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ft.createElement(Ut.ZP,{type:"ghost",onClick:en},"\u53D6\u6D88")))},Me=Rt(53932),ge=Rt(28451),fe=Rt(43418),de=Rt(95237),_e=Rt(16406),Oe=Rt(59301),He=({callback:dn,onCancel:en})=>{const qe=document.createElement("canvas"),zn=qe.getContext("2d");qe.width=1e3,qe.height=800,zn.fillStyle="#ffffff",zn.fillRect(0,0,qe.width,qe.height);const Jn=qe.toDataURL("image/png");return Oe.createElement(fe.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Oe.createElement(de.Z,{style:{height:"100vh"}},Oe.createElement(_e.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Jn,visible:!0,title:String(Date.now())},onOk:hi=>{dn({src:hi.url})},onClose:en})))},Se=Rt(12378);function xe(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(xe,go.CommandHandler),xe.prototype.canAlignSelection=function(){var dn=this.diagram;return!(dn===null||dn.isReadOnly||dn.isModelReadOnly||dn.selection.count<2)},xe.prototype.alignLeft=function(){var dn=this.diagram;dn.startTransaction("aligning left");var en=1/0;dn.selection.each(function(qe){qe instanceof go.Link||(en=Math.min(qe.position.x,en))}),dn.selection.each(function(qe){qe instanceof go.Link||qe.move(new go.Point(en,qe.position.y))}),dn.commitTransaction("aligning left")},xe.prototype.alignRight=function(){var dn=this.diagram;dn.startTransaction("aligning right");var en=-1/0;dn.selection.each(function(qe){if(!(qe instanceof go.Link)){var zn=qe.actualBounds.x+qe.actualBounds.width;en=Math.max(zn,en)}}),dn.selection.each(function(qe){qe instanceof go.Link||qe.move(new go.Point(en-qe.actualBounds.width,qe.position.y))}),dn.commitTransaction("aligning right")},xe.prototype.alignTop=function(){var dn=this.diagram;dn.startTransaction("alignTop");var en=1/0;dn.selection.each(function(qe){qe instanceof go.Link||(en=Math.min(qe.position.y,en))}),dn.selection.each(function(qe){qe instanceof go.Link||qe.move(new go.Point(qe.position.x,en))}),dn.commitTransaction("alignTop")},xe.prototype.alignBottom=function(){var dn=this.diagram;dn.startTransaction("aligning bottom");var en=-1/0;dn.selection.each(function(qe){if(!(qe instanceof go.Link)){var zn=qe.actualBounds.y+qe.actualBounds.height;en=Math.max(zn,en)}}),dn.selection.each(function(qe){qe instanceof go.Link||qe.move(new go.Point(qe.actualBounds.x,en-qe.actualBounds.height))}),dn.commitTransaction("aligning bottom")},xe.prototype.alignCenterX=function(){var dn=this.diagram,en=dn.selection.first();if(en){dn.startTransaction("aligning Center X");var qe=en.actualBounds.x+en.actualBounds.width/2;dn.selection.each(function(zn){zn instanceof go.Link||zn.move(new go.Point(qe-zn.actualBounds.width/2,zn.actualBounds.y))}),dn.commitTransaction("aligning Center X")}},xe.prototype.alignCenterY=function(){var dn=this.diagram,en=dn.selection.first();if(en){dn.startTransaction("aligning Center Y");var qe=en.actualBounds.y+en.actualBounds.height/2;dn.selection.each(function(zn){zn instanceof go.Link||zn.move(new go.Point(zn.actualBounds.x,qe-zn.actualBounds.height/2))}),dn.commitTransaction("aligning Center Y")}},xe.prototype.alignColumn=function(dn){var en=this.diagram;en.startTransaction("align Column"),dn===void 0&&(dn=0),dn=parseFloat(dn);var qe=new Array;en.selection.each(function(Bn){Bn instanceof go.Link||qe.push(Bn)});for(var zn=0;zn0){for(var Bn=hi.elt(bn-1);Bn!==null&&Bn.isTreeExpanded&&!Bn.isTreeLeaf;){var Xi=this._sortTreeChildrenByY(Bn);Bn=Xi.last()}Bn!==null&&dn.select(Bn)}else dn.select(Jn)}}else if(qe.key==="Down")if(en.isTreeExpanded&&!en.isTreeLeaf){var zn=this._sortTreeChildrenByY(en).first();zn!==null&&dn.select(zn)}else for(;en!==null;){var Jn=en.findTreeParentNode();if(Jn===null)break;var hi=this._sortTreeChildrenByY(Jn),bn=hi.indexOf(en);if(bnhi.y?1:Jn.xhi.x?1:0}),en},xe.prototype.copyToClipboard=function(dn){go.CommandHandler.prototype.copyToClipboard.call(this,dn),this._lastPasteOffset.set(this.pasteOffset)},xe.prototype.pasteFromClipboard=function(){var dn=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(dn,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),dn},Object.defineProperty(xe.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(dn){if(dn!=="move"&&dn!=="select"&&dn!=="scroll"&&dn!=="tree"&&dn!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+dn);this._arrowKeyBehavior=dn}}),Object.defineProperty(xe.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(dn){if(!(dn instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+dn);this._pasteOffset.set(dn)}});var le=xe,Ne=Rt(74413),ae=Rt(43604),Ae=Rt(99064),Xe={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Be=Rt(24065),Te=Rt(59301),ue=(dn,en,qe)=>new Promise((zn,Jn)=>{var hi=Xi=>{try{Bn(qe.next(Xi))}catch(dr){Jn(dr)}},bn=Xi=>{try{Bn(qe.throw(Xi))}catch(dr){Jn(dr)}},Bn=Xi=>Xi.done?zn(Xi.value):Promise.resolve(Xi.value).then(hi,bn);Bn((qe=qe.apply(dn,en)).next())});function $t({onCancel:dn,callback:en}){let qe=(0,Ft.useRef)(),zn=(0,Ft.useRef)(),Jn=(0,Ft.useRef)(),hi=(0,Ft.useRef)(!1);const bn=(0,Ft.useRef)(!1),[Bn,Xi]=(0,Ft.useState)(0);function dr(){const We=Se.bx.make,Nn={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"};qe.current=new Se.S0(zn.current,{padding:20,grid:We(Se.s_,"Grid",We(Se.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),We(Se.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:On=>{var Qn=On.diagram.commandHandler.addTopLevelParts(On.diagram.selection,!0);Qn||On.diagram.currentTool.doCancel()},commandHandler:We(le),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:On=>{var Qn=On.subject;Qn.location=Qn.location.copy().snapToGridPoint(On.diagram.grid.gridOrigin,On.diagram.grid.gridCellSize),setTimeout(()=>{On.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:On=>{var Qn=On.subject;setTimeout(()=>{On.diagram.commandHandler.editTextBlock()})},LinkRelinked:On=>{var Qn=On.parameter.part;Qn.invalidateConnectedLinks();var si=On.subject;On.diagram.toolManager.linkingTool.isForwards?si.toNode.invalidateConnectedLinks():si.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),qe.current.nodeTemplate=We(Se.NB,"Auto",{locationSpot:Se.z6.Center,locationObjectName:"SHAPE",desiredSize:new Se.$u(120,60),minSize:new Se.$u(40,40),resizable:!0,resizeCellSize:new Se.$u(10,10),rotatable:!0},new Se.KX("location","loc",Se.E9.parse).makeTwoWay(Se.E9.stringify),new Se.KX("desiredSize","size",Se.$u.parse).makeTwoWay(Se.$u.stringify),We(Se.bn,{name:"SHAPE",fill:Nn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Se.z6.AllSides,toSpot:Se.z6.AllSides},new Se.KX("figure"),new Se.KX("fill"),new Se.KX("stroke","borderColor"),new Se.KX("strokeWidth","thickness"),new Se.KX("strokeDashArray","dash")),We(Se.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),We(Se.al,{margin:1,textAlign:"center",overflow:Se.al.OverflowEllipsis,editable:!0},new Se.KX("text").makeTwoWay(),new Se.KX("stroke","color"))),qe.current.nodeTemplate.toolTip=We("ToolTip",We(Se.s_,"Vertical",{maxSize:new Se.$u(200,NaN)},We(Se.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Se.KX("text")),We(Se.al,{font:"10pt sans-serif",textAlign:"center"},new Se.KX("text","details"))));function ti(On,Qn){var si=(ei,Li)=>{ei.handled=!0,ei.diagram.model.commit(hr=>{var Vi=Li.part.adornedPart,Yi=new Se.E9().setRectSpot(Vi.actualBounds,On);Yi.subtract(Vi.location),Yi.scale(2,2),Yi.x+=Math.sign(Yi.x)*130,Yi.y+=Math.sign(Yi.y)*130,Yi.add(Vi.location),Yi.snapToGridPoint(ei.diagram.grid.gridOrigin,ei.diagram.grid.gridCellSize);var fr=hr.copyNodeData(Vi.data);hr.setGroupKeyForNodeData(fr,hr.getGroupKeyForNodeData(Vi.data)),hr.addNodeData(fr);var vn={from:Vi.key,to:hr.getKeyForNodeData(fr)};hr.addLinkData(vn);var Qi=ei.diagram.findNodeForData(fr);Qi.location=Yi,ei.diagram.select(Qi),setTimeout(()=>{ei.diagram.commandHandler.editTextBlock()},20)})};return We(Se.bn,{figure:Qn,alignment:On,alignmentFocus:On.opposite(),width:On.equals(Se.z6.Top)||On.equals(Se.z6.Bottom)?25:18,height:On.equals(Se.z6.Top)||On.equals(Se.z6.Bottom)?18:25,fill:"orange",stroke:Nn.white,strokeWidth:4,mouseEnter:(ei,Li)=>Li.fill="dodgerblue",mouseLeave:(ei,Li)=>Li.fill="orange",isActionable:!0,click:si,contextClick:si})}function pr(On){return We(Se.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:(Qn,si)=>si.fill="dodgerblue",mouseLeave:(Qn,si)=>si.fill="orange",click:(Qn,si)=>{Qn.diagram.commandHandler.showContextMenu(si.part.adornedPart)}},On||{})}qe.current.nodeTemplate.selectionAdornmentTemplate=We(Se.uz,"Spot",We(Se.Vm,{padding:10}),ti(Se.z6.Top,"TriangleUp"),ti(Se.z6.Left,"TriangleLeft"),ti(Se.z6.Right,"TriangleRight"),ti(Se.z6.Bottom,"TriangleDown"),pr({alignment:new Se.z6(.75,0)}));function on(On,Qn){return(si,ei)=>{si.handled=!0,si.diagram.model.commit(Li=>{Li.set(ei.part.adornedPart.data,On,Qn)})}}function Cn(On,Qn){return Qn||(Qn="color"),We(Se.bn,{width:16,height:16,stroke:"lightgray",fill:On,margin:1,background:"transparent",mouseEnter:(si,ei)=>ei.stroke="dodgerblue",mouseLeave:(si,ei)=>ei.stroke="lightgray",click:on(Qn,On),contextClick:on(Qn,On)})}function xi(){return[We("ContextMenuButton",We(Se.s_,"Horizontal",Cn(Nn.white,"fill"),Cn(Nn.beige,"fill"),Cn(Nn.extralightblue,"fill"),Cn(Nn.extralightred,"fill"))),We("ContextMenuButton",We(Se.s_,"Horizontal",Cn(Nn.lightgray,"fill"),Cn(Nn.lightgreen,"fill"),Cn(Nn.lightblue,"fill"),Cn(Nn.lightred,"fill")))]}function Zi(){return[We("ContextMenuButton",We(Se.s_,"Horizontal",Cn(Nn.black),Cn(Nn.green),Cn(Nn.blue),Cn(Nn.red))),We("ContextMenuButton",We(Se.s_,"Horizontal",Cn(Nn.white),Cn(Nn.magenta),Cn(Nn.purple),Cn(Nn.orange)))]}function Wi(On,Qn){return Qn||(Qn="thickness"),We(Se.bn,"LineH",{width:16,height:16,strokeWidth:On,margin:1,background:"transparent",mouseEnter:(si,ei)=>ei.background="dodgerblue",mouseLeave:(si,ei)=>ei.background="transparent",click:on(Qn,On),contextClick:on(Qn,On)})}function oi(On,Qn){return Qn||(Qn="dash"),We(Se.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:On,margin:1,background:"transparent",mouseEnter:(si,ei)=>ei.background="dodgerblue",mouseLeave:(si,ei)=>ei.background="transparent",click:on(Qn,On),contextClick:on(Qn,On)})}function ri(){return[We("ContextMenuButton",We(Se.s_,"Horizontal",Wi(1),Wi(2),Wi(3),Wi(4))),We("ContextMenuButton",We(Se.s_,"Horizontal",oi(null),oi([2,4]),oi([4,4])))]}function Zn(On,Qn){return Qn||(Qn="figure"),We(Se.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:On,margin:1,background:"transparent",mouseEnter:(si,ei)=>ei.fill="dodgerblue",mouseLeave:(si,ei)=>ei.fill="lightgray",click:on(Qn,On),contextClick:on(Qn,On)})}qe.current.nodeTemplate.contextMenu=We("ContextMenu",We("ContextMenuButton",We(Se.s_,"Horizontal",Zn("Rectangle"),Zn("RoundedRectangle"),Zn("Ellipse"),Zn("Diamond"))),We("ContextMenuButton",We(Se.s_,"Horizontal",Zn("Parallelogram2"),Zn("ManualOperation"),Zn("Procedure"),Zn("Cylinder1"))),We("ContextMenuButton",We(Se.s_,"Horizontal",Zn("Terminator"),Zn("CreateRequest"),Zn("Document"),Zn("TriangleDown"))),xi(),Zi(),ri()),qe.current.groupTemplate=We(Se.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Se.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(On,Qn)=>{var si=Qn.addMembers(Qn.diagram.selection,!0);si||Qn.diagram.currentTool.doCancel()},avoidable:!1},new Se.KX("location","loc",Se.E9.parse).makeTwoWay(Se.E9.stringify),We(Se.s_,"Auto",{name:"BODY"},We(Se.bn,{parameter1:10,fill:Nn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Se.z6.AllSides,toSpot:Se.z6.AllSides},new Se.KX("fill"),new Se.KX("stroke","color"),new Se.KX("strokeWidth","thickness"),new Se.KX("strokeDashArray","dash")),We(Se.Vm,{background:"transparent",margin:20})),We(Se.al,{alignment:Se.z6.Top,alignmentFocus:Se.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Se.KX("text"),new Se.KX("stroke","color"))),qe.current.groupTemplate.selectionAdornmentTemplate=We(Se.uz,"Spot",We(Se.s_,"Auto",We(Se.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),We(Se.Vm,{margin:1.5})),pr({alignment:Se.z6.TopRight,alignmentFocus:Se.z6.BottomRight})),qe.current.groupTemplate.contextMenu=We("ContextMenu",xi(),Zi(),ri()),qe.current.linkTemplate=We(Se.rU,{layerName:"Foreground",routing:Se.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Se.KX("fromSpot","fromSpot",Se.z6.parse),new Se.KX("toSpot","toSpot",Se.z6.parse),new Se.KX("fromShortLength","dir",On=>On>=1?10:0),new Se.KX("toShortLength","dir",On=>On>=1?10:0),new Se.KX("points").makeTwoWay(),We(Se.bn,{strokeWidth:2},new Se.KX("stroke","color"),new Se.KX("strokeWidth","thickness"),new Se.KX("strokeDashArray","dash")),We(Se.bn,{segmentIndex:0,segmentOffset:new Se.E9(15,0),segmentOrientation:Se.rU.OrientAlong,alignmentFocus:Se.z6.Right,figure:"circle",width:10,strokeWidth:0},new Se.KX("fill","color"),new Se.KX("visible","dir",On=>On===1)),We(Se.bn,{segmentIndex:-1,segmentOffset:new Se.E9(-10,6),segmentOrientation:Se.rU.OrientPlus90,alignmentFocus:Se.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Se.KX("fill","color"),new Se.KX("visible","dir",On=>On>=1),new Se.KX("width","thickness",On=>7+3*On),new Se.KX("height","thickness",On=>7+3*On),new Se.KX("segmentOffset","thickness",On=>new Se.E9(-15,4+1.5*On))),We(Se.bn,{segmentIndex:0,segmentOffset:new Se.E9(15,-6),segmentOrientation:Se.rU.OrientMinus90,alignmentFocus:Se.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Se.KX("fill","color"),new Se.KX("visible","dir",On=>On===2),new Se.KX("width","thickness",On=>7+3*On),new Se.KX("height","thickness",On=>7+3*On),new Se.KX("segmentOffset","thickness",On=>new Se.E9(-15,4+1.5*On))),We(Se.al,{alignmentFocus:new Se.z6(0,1,-4,0),editable:!0},new Se.KX("text").makeTwoWay(),new Se.KX("stroke","color"))),qe.current.linkTemplate.selectionAdornmentTemplate=We(Se.uz,We(Se.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:ur(2)},new Se.KX("pathPattern","thickness",ur)),pr({alignmentFocus:new Se.z6(0,0,-6,-4)}));function ur(On){return We(Se.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(On+4).toString()+" H3"})}function Yr(On){var Qn="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return On===0?Qn="M0 0 M16 16 M0 8 L16 8":On===2&&(Qn="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),We(Se.bn,{geometryString:Qn,margin:2,background:"transparent",mouseEnter:(si,ei)=>ei.background="dodgerblue",mouseLeave:(si,ei)=>ei.background="transparent",click:on("dir",On),contextClick:on("dir",On)})}function br(On){var Qn=(si,ei)=>{si.handled=!0,si.diagram.model.commit(Li=>{var hr=ei.part.adornedPart;Li.set(hr.data,On?"toSpot":"fromSpot",Se.z6.stringify(Se.z6.AllSides)),(On?hr.toNode:hr.fromNode).invalidateConnectedLinks()})};return We(Se.bn,{width:12,height:12,fill:"transparent",mouseEnter:(si,ei)=>ei.background="dodgerblue",mouseLeave:(si,ei)=>ei.background="transparent",click:Qn,contextClick:Qn})}function mn(On,Qn){var si=0,ei=Se.z6.RightSide;On.equals(Se.z6.Top)?(si=270,ei=Se.z6.TopSide):On.equals(Se.z6.Left)?(si=180,ei=Se.z6.LeftSide):On.equals(Se.z6.Bottom)&&(si=90,ei=Se.z6.BottomSide),Qn||(si-=180);var Li=(hr,Vi)=>{hr.handled=!0,hr.diagram.model.commit(Yi=>{var fr=Vi.part.adornedPart;Yi.set(fr.data,Qn?"toSpot":"fromSpot",Se.z6.stringify(ei)),(Qn?fr.toNode:fr.fromNode).invalidateConnectedLinks()})};return We(Se.bn,{alignment:On,alignmentFocus:On.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:si,background:"transparent",mouseEnter:(hr,Vi)=>Vi.background="dodgerblue",mouseLeave:(hr,Vi)=>Vi.background="transparent",click:Li,contextClick:Li})}qe.current.linkTemplate.contextMenu=We("ContextMenu",Zi(),ri(),We("ContextMenuButton",We(Se.s_,"Horizontal",Yr(0),Yr(1),Yr(2))),We("ContextMenuButton",We(Se.s_,"Horizontal",We(Se.s_,"Spot",br(!1),mn(Se.z6.Top,!1),mn(Se.z6.Left,!1),mn(Se.z6.Right,!1),mn(Se.z6.Bottom,!1)),We(Se.s_,"Spot",{margin:new Se.Zt(0,0,0,2)},br(!0),mn(Se.z6.Top,!0),mn(Se.z6.Left,!0),mn(Se.z6.Right,!0),mn(Se.z6.Bottom,!0)))));const er=`{ "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"}, @@ -1054,18 +1054,18 @@ ${me} {"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 cr=["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 Mi(On){return console.log("shapeName:",On),cr.indexOf(On)>=0}var sn=new Se.YI(Jn.current,{maxSelectionCount:1,linkTemplate:We(Se.rU,{locationSpot:Se.z6.Center,selectionAdornmentTemplate:We(Se.uz,"Link",{locationSpot:Se.z6.Center},We(Se.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),We(Se.bn,{toArrow:"Standard",stroke:null}))},{routing:Se.rU.AvoidsNodes,curve:Se.rU.JumpOver,corner:5,toShortLength:4},new Se.KX("points"),We(Se.bn,{isPanelMain:!0,strokeWidth:2}),We(Se.bn,{toArrow:"Standard",stroke:null})),model:new Se.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Se.bn.getFigureGenerators().toArray().map(On=>({text:"\u672A\u547D\u540D",size:"100 100",figure:On.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return qe.current.addDiagramListener("TextEdited",function(On){var Qn;const si=On.subject.part;var ei=(Qn=document.activeElement)==null?void 0:Qn.value;typeof ei=="string"&&ei.trim()===""&&qe.current.model.commit(function(Li){Li.set(si.data,"text","\u672A\u547D\u540D"),qe.current.commandHandler.stopCommand()},"increment")}),sn.nodeTemplate=We(Se.NB,"Auto",{locationSpot:Se.z6.Center},new Se.KX("location","location",Se.E9.parse).makeTwoWay(Se.E9.stringify),We(Se.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 Se.KX("stroke").makeTwoWay(),new Se.KX("fill").makeTwoWay(),new Se.KX("figure")),We(Se.al,{margin:new Se.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Se.$u(16,16),maxSize:new Se.$u(10,NaN),textAlign:"center",editable:!0},new Se.KX("key").makeTwoWay())),setTimeout(()=>{qe.current.grid=We(Se.s_,"Grid",We(Se.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),We(Se.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),qe.current.grid.visible=!0,qe.current.grid.gridCellStroke="darkgray",qe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=qe.current,qe.current}const ir=()=>ue(this,null,function*(){var We,Nn=qe.current.makeImage();const ti=yield(0,Ae.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Nn.src,file_data:JSON.stringify({login:(We=(0,Be.eY)())==null?void 0:We.login,data:JSON.parse(qe.current.model.toJson())})}});en({src:ti.url})});return(0,Ft.useEffect)(()=>(setTimeout(()=>{dr()},500),Xi(Bn+1),()=>{qe.current=null}),[]),Te.createElement("div",{ref:bn,className:hi.current?`${Xe.maxH60} body-overflow-initial`:"body-overflow-initial"},Te.createElement(fe.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Bn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Te.createElement(pe.Z,null,Te.createElement(se.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Te.createElement(se.Z,{onClick:()=>{var We,Nn,ti=qe.current.selection.first();if(hi.current=!hi.current,document.activeElement&&ti){let pr=(Nn=(We=document.activeElement)==null?void 0:We.value)==null?void 0:Nn.trim();typeof pr=="string"&&qe.current.model.commit(function(on){on.set(ti.data,"text",pr||"\u672A\u547D\u540D"),qe.current.commandHandler.stopCommand()},"increment")}Xi(Bn+1)}},Te.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:dn},Te.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Xe.flowChartWrp},Te.createElement("div",{style:{display:"flex",height:"100%"}},Te.createElement("div",{style:{width:"300px",height:"100%"}},Te.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Te.createElement("div",{style:{height:"calc(100% - 50px)"},className:Xe.myPaletteDiv,ref:Jn})),Te.createElement("div",{style:{flex:1,position:"relative"}},Te.createElement("div",{ref:zn,style:{height:"80vh"}}))),Te.createElement("div",{className:"tr"},Te.createElement(Ut.ZP,{size:"large",onClick:ir,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var he=$t,ye=Rt(5112),Qt=Rt(5871);const Wt=ye.ZP.Group,Bt={margin:"0 8px"};var te=({callback:dn,onCancel:en})=>{function qe(zn){dn(zn)}return Ft.createElement(Lt.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:qe},Ft.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},Ft.createElement("span",{style:Bt},"\u5355\u5143\u683C\u6570\uFF1A"),Ft.createElement("span",{style:Bt},"\u884C\u6570"),Ft.createElement(Lt.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},Ft.createElement(Qt.Z,null)),Ft.createElement("span",{style:Bt},"\u5217\u6570"),Ft.createElement(Lt.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},Ft.createElement(Qt.Z,null))),Ft.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},Ft.createElement("span",{style:Bt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),Ft.createElement(Lt.default.Item,{name:"align"},Ft.createElement(Wt,null,Ft.createElement(ye.ZP,{value:"default"},Ft.createElement("i",{className:"fa fa-align-justify"})),Ft.createElement(ye.ZP,{value:"left"},Ft.createElement("i",{className:"fa fa-align-left"})),Ft.createElement(ye.ZP,{value:"center"},Ft.createElement("i",{className:"fa fa-align-center"})),Ft.createElement(ye.ZP,{value:"right"},Ft.createElement("i",{className:"fa fa-align-right"}))))),Ft.createElement("div",{className:"flex-container flex-end"},Ft.createElement(Ut.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ft.createElement(Ut.ZP,{type:"ghost",onClick:en},"\u53D6\u6D88")))},ge=Rt(78673),Jt=Rt(80727),Ie=Rt.n(Jt),Je=(0,Ft.forwardRef)(({use3d:dn,width:en,height:qe,callback:zn,showSaveButton:Jn},hi)=>{const bn=(0,Ft.useRef)(),Bn=(0,Ft.useRef)(),[Xi,dr]=(0,Ft.useState)(!1),ir=(0,Ft.useRef)({id:bn,appName:"graphing",width:en||1e3,height:qe||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,Ft.useEffect)(()=>{Bn.current=new(Ie())(ir.current,!0),window.onload=function(){Bn.current.inject("applet_container")}},[]);const We=()=>{var Nn=window.ggbApplet.getPNGBase64(1,!0,72);return zn&&zn(Nn),Nn};return(0,Ft.useEffect)(()=>{ir.current.appName=Xi?"3D":"graphing",Bn.current.inject("applet_container")},[Xi]),(0,Ft.useEffect)(()=>{dr(dn)},[dn]),(0,Ft.useImperativeHandle)(hi,()=>({getImgData:We})),Ft.createElement(Ft.Fragment,null,Ft.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:bn}),Ft.createElement(pe.Z,{align:"middle"},Ft.createElement(se.Z,{flex:1},Ft.createElement(ge.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Xi,onChange:Nn=>dr(Nn)})),Ft.createElement(se.Z,null,Ft.createElement(Ut.ZP,{size:"large",onClick:We,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Ze=Rt(41588),nn=Rt(8591);const fn="link",An="upload-image",En="add-flowchart",Dn="draw-image",ii="add-flowchart",mi="code-block",Ti="add-table",Oi="------------",ki={default:Oi,left:`:${Oi}`,center:`:${Oi}:`,right:`${Oi}:`};var pi=Rt(58856);function Bi(){}let Or=0;const yr=1e4,lr="\u2581",Si="@\u2581\u2581@",ee="@\u2581@",Ds=` +]}`;var cr=["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 Mi(On){return console.log("shapeName:",On),cr.indexOf(On)>=0}var sn=new Se.YI(Jn.current,{maxSelectionCount:1,linkTemplate:We(Se.rU,{locationSpot:Se.z6.Center,selectionAdornmentTemplate:We(Se.uz,"Link",{locationSpot:Se.z6.Center},We(Se.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),We(Se.bn,{toArrow:"Standard",stroke:null}))},{routing:Se.rU.AvoidsNodes,curve:Se.rU.JumpOver,corner:5,toShortLength:4},new Se.KX("points"),We(Se.bn,{isPanelMain:!0,strokeWidth:2}),We(Se.bn,{toArrow:"Standard",stroke:null})),model:new Se.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Se.bn.getFigureGenerators().toArray().map(On=>({text:"\u672A\u547D\u540D",size:"100 100",figure:On.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return qe.current.addDiagramListener("TextEdited",function(On){var Qn;const si=On.subject.part;var ei=(Qn=document.activeElement)==null?void 0:Qn.value;typeof ei=="string"&&ei.trim()===""&&qe.current.model.commit(function(Li){Li.set(si.data,"text","\u672A\u547D\u540D"),qe.current.commandHandler.stopCommand()},"increment")}),sn.nodeTemplate=We(Se.NB,"Auto",{locationSpot:Se.z6.Center},new Se.KX("location","location",Se.E9.parse).makeTwoWay(Se.E9.stringify),We(Se.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 Se.KX("stroke").makeTwoWay(),new Se.KX("fill").makeTwoWay(),new Se.KX("figure")),We(Se.al,{margin:new Se.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Se.$u(16,16),maxSize:new Se.$u(10,NaN),textAlign:"center",editable:!0},new Se.KX("key").makeTwoWay())),setTimeout(()=>{qe.current.grid=We(Se.s_,"Grid",We(Se.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),We(Se.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),qe.current.grid.visible=!0,qe.current.grid.gridCellStroke="darkgray",qe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=qe.current,qe.current}const ir=()=>ue(this,null,function*(){var We,Nn=qe.current.makeImage();const ti=yield(0,Ae.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Nn.src,file_data:JSON.stringify({login:(We=(0,Be.eY)())==null?void 0:We.login,data:JSON.parse(qe.current.model.toJson())})}});en({src:ti.url})});return(0,Ft.useEffect)(()=>(setTimeout(()=>{dr()},500),Xi(Bn+1),()=>{qe.current=null}),[]),Te.createElement("div",{ref:bn,className:hi.current?`${Xe.maxH60} body-overflow-initial`:"body-overflow-initial"},Te.createElement(fe.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Bn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Te.createElement(de.Z,null,Te.createElement(ae.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Te.createElement(ae.Z,{onClick:()=>{var We,Nn,ti=qe.current.selection.first();if(hi.current=!hi.current,document.activeElement&&ti){let pr=(Nn=(We=document.activeElement)==null?void 0:We.value)==null?void 0:Nn.trim();typeof pr=="string"&&qe.current.model.commit(function(on){on.set(ti.data,"text",pr||"\u672A\u547D\u540D"),qe.current.commandHandler.stopCommand()},"increment")}Xi(Bn+1)}},Te.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:dn},Te.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Xe.flowChartWrp},Te.createElement("div",{style:{display:"flex",height:"100%"}},Te.createElement("div",{style:{width:"300px",height:"100%"}},Te.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Te.createElement("div",{style:{height:"calc(100% - 50px)"},className:Xe.myPaletteDiv,ref:Jn})),Te.createElement("div",{style:{flex:1,position:"relative"}},Te.createElement("div",{ref:zn,style:{height:"80vh"}}))),Te.createElement("div",{className:"tr"},Te.createElement(Ut.ZP,{size:"large",onClick:ir,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var he=$t,ye=Rt(5112),Qt=Rt(5871);const Wt=ye.ZP.Group,Bt={margin:"0 8px"};var te=({callback:dn,onCancel:en})=>{function qe(zn){dn(zn)}return Ft.createElement(Lt.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:qe},Ft.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},Ft.createElement("span",{style:Bt},"\u5355\u5143\u683C\u6570\uFF1A"),Ft.createElement("span",{style:Bt},"\u884C\u6570"),Ft.createElement(Lt.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},Ft.createElement(Qt.Z,null)),Ft.createElement("span",{style:Bt},"\u5217\u6570"),Ft.createElement(Lt.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},Ft.createElement(Qt.Z,null))),Ft.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},Ft.createElement("span",{style:Bt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),Ft.createElement(Lt.default.Item,{name:"align"},Ft.createElement(Wt,null,Ft.createElement(ye.ZP,{value:"default"},Ft.createElement("i",{className:"fa fa-align-justify"})),Ft.createElement(ye.ZP,{value:"left"},Ft.createElement("i",{className:"fa fa-align-left"})),Ft.createElement(ye.ZP,{value:"center"},Ft.createElement("i",{className:"fa fa-align-center"})),Ft.createElement(ye.ZP,{value:"right"},Ft.createElement("i",{className:"fa fa-align-right"}))))),Ft.createElement("div",{className:"flex-container flex-end"},Ft.createElement(Ut.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ft.createElement(Ut.ZP,{type:"ghost",onClick:en},"\u53D6\u6D88")))},me=Rt(78673),Jt=Rt(80727),Ie=Rt.n(Jt),Je=(0,Ft.forwardRef)(({use3d:dn,width:en,height:qe,callback:zn,showSaveButton:Jn},hi)=>{const bn=(0,Ft.useRef)(),Bn=(0,Ft.useRef)(),[Xi,dr]=(0,Ft.useState)(!1),ir=(0,Ft.useRef)({id:bn,appName:"graphing",width:en||1e3,height:qe||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,Ft.useEffect)(()=>{Bn.current=new(Ie())(ir.current,!0),window.onload=function(){Bn.current.inject("applet_container")}},[]);const We=()=>{var Nn=window.ggbApplet.getPNGBase64(1,!0,72);return zn&&zn(Nn),Nn};return(0,Ft.useEffect)(()=>{ir.current.appName=Xi?"3D":"graphing",Bn.current.inject("applet_container")},[Xi]),(0,Ft.useEffect)(()=>{dr(dn)},[dn]),(0,Ft.useImperativeHandle)(hi,()=>({getImgData:We})),Ft.createElement(Ft.Fragment,null,Ft.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:bn}),Ft.createElement(de.Z,{align:"middle"},Ft.createElement(ae.Z,{flex:1},Ft.createElement(me.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Xi,onChange:Nn=>dr(Nn)})),Ft.createElement(ae.Z,null,Ft.createElement(Ut.ZP,{size:"large",onClick:We,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Ze=Rt(41588),nn=Rt(8591);const fn="link",An="upload-image",En="add-flowchart",Dn="draw-image",ii="add-flowchart",mi="code-block",Ti="add-table",Oi="------------",ki={default:Oi,left:`:${Oi}`,center:`:${Oi}:`,right:`${Oi}:`};var pi=Rt(58856);function Bi(){}let Or=0;const yr=1e4,lr="\u2581",Si="@\u2581\u2581@",ee="@\u2581@",Ds=` **\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`,mr=["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 ms(dn){return/^\d+$/.test(dn)?`${dn}px`:dn}const Do=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Oo={[Do+"-B"]:"bold",[Do+"-I"]:"italic"},Gr={[fn]:"\u6DFB\u52A0\u94FE\u63A5",[mi]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[An]:"\u6DFB\u52A0\u56FE\u7247",[Dn]:"\u6DFB\u52A0\u753B\u56FE",[En]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Ti]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var sa=({defaultValue:dn="",onChange:en,width:qe="100%",height:zn=400,miniToolbar:Jn=!1,isFocus:hi=!1,watch:bn,insertTemp:Bn,mode:Xi="markdown",id:dr="markdown-editor-id",showResizeBar:ir=!1,noStorage:We=!1,showNullButton:Nn=!1,showNullProgramButton:ti=!1,hidetoolBar:pr=!1,fullScreen:on=!1,onBlur:Cn,onCMBeforeChange:xi,onFullScreen:Zi,className:Wi="",disablePaste:oi=!1,disabled:ri=!1,disabledFill:Zn=!1,placeholder:ur="",values:Yr="",extraUse:br})=>{const[mn,er]=(0,Ft.useState)(null),[cr,Mi]=(0,Ft.useState)(dn),[sn,On]=(0,Ft.useState)(bn),[Qn,si]=(0,Ft.useState)(on),[ei,Li]=(0,Ft.useState)(""),[hr,Vi]=(0,Ft.useState)(0),[Yi,fr]=(0,Ft.useState)(zn),[vn,Qi]=(0,Ft.useState)(!1),[gn,qi]=(0,Ft.useState)(0),[Io,Kr]=(0,Ft.useState)(0),Zo=(0,Ft.useRef)(),Xr=(0,Ft.useRef)(),Ri=(0,Ft.useRef)(),Cr=(0,Ft.useRef)();(0,Ft.useEffect)(()=>{const vi=window.scrollY||window.pageYOffset;Mi(Yr),mn==null||mn.setValue(Yr),window.scrollTo(0,vi)},[Yr]),(0,Ft.useEffect)(()=>{Zi==null||Zi(Qn)},[Qn]),(0,Ft.useEffect)(()=>{if(Zo.current){let vi=function(xn,ai){var zi;if(oi){ai.preventDefault();return}const jr=ai.clipboardData;if(jr){const Qr=jr.types.toString(),Ur=jr.items;if(Qr==="Files"||jr.types.indexOf("Files")>-1){if(ai.preventDefault(),Xi=="stex")return;try{let mo=Ur[1];((zi=Ur[0])==null?void 0:zi.kind)==="file"&&(mo=Ur[0]);const Jr=mo.getAsFile(),Ca=Jr.name.split(".").pop();(0,me.I)(Jr,Is=>{var Ol,$e,Es;Is.id?((Ol=Jr==null?void 0:Jr.type)==null?void 0:Ol.indexOf("image"))>-1?qn.replaceSelection(``):(($e=Jr==null?void 0:Jr.type)==null?void 0:$e.indexOf("video"))>-1?qn.replaceSelection(``):((Es=Jr==null?void 0:Jr.type)==null?void 0:Es.indexOf("pdf"))>-1?qn.replaceSelection(`${Jr.name}`):mr.includes(Ca)?qn.replaceSelection(`${Jr.name}`):qn.replaceSelection(`[${Jr.name}](/api/attachments/${Is.id}?type=${Is.content_type})`):(Is==null?void 0:Is.status)===401&&(document.location.href="/user/login")})}catch(mo){nn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const qn=rt().fromTextArea(Zo.current,{mode:Xi,lineNumbers:!Jn,lineWrapping:!0,value:dn,autoCloseTags:!0,autoCloseBrackets:!0});return qn.on("keyup",function(xn,ai){ai.keyCode===8&&(xn.getValue()==""?qn.setOption("placeholder",ur):qn.setOption("placeholder",null))}),qn.on("keydown",function(xn,ai){if(ai.keyCode===8){var zi=uo(xn);zi&&ai.preventDefault()}}),hi&&qn.focus(),qn.on("paste",vi),ri&&qn.on("beforeChange",function(xn,ai){(ai.origin==="paste"||ai.origin==="+input")&&ai.cancel()}),er(qn),()=>{qn.off("paste",vi)}}},[]);const ba=(0,Ft.useCallback)(()=>{if(Xr.current)try{}catch(vi){console.log(vi,"---- to set md editor body height")}},[Yi,Xr,Qn]);(0,Ft.useEffect)(()=>{function vi(){let qn=new kt.Z(xn=>{for(let ai of xn)(ai.target.offsetHeight>0||ai.target.offsetWidth>0)&&(ba(),mn.setSize("100%","100%"),mn.refresh())});return qn.observe(Zo.current.parentElement),qn}if(mn){const qn=vi();return()=>{var xn,ai;(xn=Zo.current)!=null&&xn.parentElement&&qn.unobserve((ai=Zo.current)==null?void 0:ai.parentElement)}}},[mn,ba]),(0,Ft.useEffect)(()=>{if(mn){let vi=[];for(const[qn,xn]of Object.entries(Oo)){let ai={[qn]:()=>{Rn(xn)}};vi.push(ai),mn.addKeyMap(ai)}return()=>{for(let qn of vi)mn.removeKeyMap(qn)}}},[mn]),(0,Ft.useEffect)(()=>{on!==Qn&&si(on)},[on]),(0,pi.Z)(()=>{if(!We&&hr>0){let vi=new Date().getTime(),qn=window.sessionStorage.getItem(dr);vi>=hr+yr&&(!qn||qn!==cr)&&(window.sessionStorage.setItem(dr,cr),Qi(!0))}},yr),(0,Ft.useEffect)(()=>{On(bn)},[mn,bn]),(0,Ft.useEffect)(()=>{mn&&hi&&mn.focus()},[mn,hi]),(0,Ft.useEffect)(()=>{if(sn&&mn){let vi=function(xn){let ai=xn.target;if(Cr.current){let zi=ai.scrollTop/ai.scrollHeight;Cr.current.scrollTop=Cr.current.scrollHeight*zi}};const qn=mn.getScrollerElement();return qn.addEventListener("scroll",vi),()=>{qn.removeEventListener("scroll",vi)}}},[mn,sn]),(0,Ft.useEffect)(()=>{if(mn&&xi){let vi=function(qn,xn){xi(qn,xn)};return mn.on("beforeChange",vi),()=>{mn.off("beforeChange",vi)}}},[mn,xi]),(0,Ft.useEffect)(()=>{if(mn&&Cn){let vi=function(){Cn(mn.getValue())};return mn.on("blur",vi),()=>{mn.off("blur",vi)}}},[mn,Cn]);function uo(vi,qn){var xn=vi.getDoc(),ai=xn.getCursor(),zi=xn.getLine(ai.line),jr=zi.charAt(ai.ch-1),Qr=zi.lastIndexOf("@\u2581@",ai.ch),Ur=zi.lastIndexOf("@\u2581\u2581@",ai.ch),mo=Qr>Ur?Qr:Ur,Jr=Qr>Ur?3:4;if(Si.indexOf(jr)===-1)return null;if(console.log("change1:",qn,vi,zi,ai,mo,Qr,Ur,jr),mo>=0&&ai.ch-mo<5){var Ca=mo+Jr;return xn.replaceRange("",{line:ai.line,ch:mo},{line:ai.line,ch:Ca}),{line:ai.line,ch:Ca}}return null}(0,Ft.useEffect)(()=>{if(mn){let vi=function(qn,xn){const ai=qn.getValue();Mi(ai),Vi(new Date().getTime()),qn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),en&&(ti?en(ai,ec(ai)):en(ai))};return mn.on("change",vi),()=>{mn.off("change",vi)}}},[mn,en]),(0,Ft.useEffect)(()=>{if(mn)if(dn==null)mn.setValue(""),Mi("");else{const vi=window.scrollY||window.pageYOffset;dn!==mn.getValue()&&(mn.setValue(dn),Mi(dn),mn.setCursor(ri?1:mn.lineCount(),0),window.scrollTo(0,vi))}},[mn,dn]);const Rn=(0,Ft.useCallback)(vi=>{const qn=mn.getCursor(),xn=mn.getSelection();let ai=xn.split(` +\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,mr=["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 gs(dn){return/^\d+$/.test(dn)?`${dn}px`:dn}const Do=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Oo={[Do+"-B"]:"bold",[Do+"-I"]:"italic"},Gr={[fn]:"\u6DFB\u52A0\u94FE\u63A5",[mi]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[An]:"\u6DFB\u52A0\u56FE\u7247",[Dn]:"\u6DFB\u52A0\u753B\u56FE",[En]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Ti]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var sa=({defaultValue:dn="",onChange:en,width:qe="100%",height:zn=400,miniToolbar:Jn=!1,isFocus:hi=!1,watch:bn,insertTemp:Bn,mode:Xi="markdown",id:dr="markdown-editor-id",showResizeBar:ir=!1,noStorage:We=!1,showNullButton:Nn=!1,showNullProgramButton:ti=!1,hidetoolBar:pr=!1,fullScreen:on=!1,onBlur:Cn,onCMBeforeChange:xi,onFullScreen:Zi,className:Wi="",disablePaste:oi=!1,disabled:ri=!1,disabledFill:Zn=!1,placeholder:ur="",values:Yr="",extraUse:br})=>{const[mn,er]=(0,Ft.useState)(null),[cr,Mi]=(0,Ft.useState)(dn),[sn,On]=(0,Ft.useState)(bn),[Qn,si]=(0,Ft.useState)(on),[ei,Li]=(0,Ft.useState)(""),[hr,Vi]=(0,Ft.useState)(0),[Yi,fr]=(0,Ft.useState)(zn),[vn,Qi]=(0,Ft.useState)(!1),[gn,qi]=(0,Ft.useState)(0),[Io,Kr]=(0,Ft.useState)(0),Zo=(0,Ft.useRef)(),Xr=(0,Ft.useRef)(),Ri=(0,Ft.useRef)(),Cr=(0,Ft.useRef)();(0,Ft.useEffect)(()=>{const vi=window.scrollY||window.pageYOffset;Mi(Yr),mn==null||mn.setValue(Yr),window.scrollTo(0,vi)},[Yr]),(0,Ft.useEffect)(()=>{Zi==null||Zi(Qn)},[Qn]),(0,Ft.useEffect)(()=>{if(Zo.current){let vi=function(xn,ai){var zi;if(oi){ai.preventDefault();return}const jr=ai.clipboardData;if(jr){const Qr=jr.types.toString(),Ur=jr.items;if(Qr==="Files"||jr.types.indexOf("Files")>-1){if(ai.preventDefault(),Xi=="stex")return;try{let mo=Ur[1];((zi=Ur[0])==null?void 0:zi.kind)==="file"&&(mo=Ur[0]);const Jr=mo.getAsFile(),Ca=Jr.name.split(".").pop();(0,ge.I)(Jr,Is=>{var Ol,$e,Es;Is.id?((Ol=Jr==null?void 0:Jr.type)==null?void 0:Ol.indexOf("image"))>-1?qn.replaceSelection(``):(($e=Jr==null?void 0:Jr.type)==null?void 0:$e.indexOf("video"))>-1?qn.replaceSelection(``):((Es=Jr==null?void 0:Jr.type)==null?void 0:Es.indexOf("pdf"))>-1?qn.replaceSelection(`${Jr.name}`):mr.includes(Ca)?qn.replaceSelection(`${Jr.name}`):qn.replaceSelection(`[${Jr.name}](/api/attachments/${Is.id}?type=${Is.content_type})`):(Is==null?void 0:Is.status)===401&&(document.location.href="/user/login")})}catch(mo){nn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const qn=rt().fromTextArea(Zo.current,{mode:Xi,lineNumbers:!Jn,lineWrapping:!0,value:dn,autoCloseTags:!0,autoCloseBrackets:!0});return qn.on("keyup",function(xn,ai){ai.keyCode===8&&(xn.getValue()==""?qn.setOption("placeholder",ur):qn.setOption("placeholder",null))}),qn.on("keydown",function(xn,ai){if(ai.keyCode===8){var zi=uo(xn);zi&&ai.preventDefault()}}),hi&&qn.focus(),qn.on("paste",vi),ri&&qn.on("beforeChange",function(xn,ai){(ai.origin==="paste"||ai.origin==="+input")&&ai.cancel()}),er(qn),()=>{qn.off("paste",vi)}}},[]);const ba=(0,Ft.useCallback)(()=>{if(Xr.current)try{}catch(vi){console.log(vi,"---- to set md editor body height")}},[Yi,Xr,Qn]);(0,Ft.useEffect)(()=>{function vi(){let qn=new kt.Z(xn=>{for(let ai of xn)(ai.target.offsetHeight>0||ai.target.offsetWidth>0)&&(ba(),mn.setSize("100%","100%"),mn.refresh())});return qn.observe(Zo.current.parentElement),qn}if(mn){const qn=vi();return()=>{var xn,ai;(xn=Zo.current)!=null&&xn.parentElement&&qn.unobserve((ai=Zo.current)==null?void 0:ai.parentElement)}}},[mn,ba]),(0,Ft.useEffect)(()=>{if(mn){let vi=[];for(const[qn,xn]of Object.entries(Oo)){let ai={[qn]:()=>{Rn(xn)}};vi.push(ai),mn.addKeyMap(ai)}return()=>{for(let qn of vi)mn.removeKeyMap(qn)}}},[mn]),(0,Ft.useEffect)(()=>{on!==Qn&&si(on)},[on]),(0,pi.Z)(()=>{if(!We&&hr>0){let vi=new Date().getTime(),qn=window.sessionStorage.getItem(dr);vi>=hr+yr&&(!qn||qn!==cr)&&(window.sessionStorage.setItem(dr,cr),Qi(!0))}},yr),(0,Ft.useEffect)(()=>{On(bn)},[mn,bn]),(0,Ft.useEffect)(()=>{mn&&hi&&mn.focus()},[mn,hi]),(0,Ft.useEffect)(()=>{if(sn&&mn){let vi=function(xn){let ai=xn.target;if(Cr.current){let zi=ai.scrollTop/ai.scrollHeight;Cr.current.scrollTop=Cr.current.scrollHeight*zi}};const qn=mn.getScrollerElement();return qn.addEventListener("scroll",vi),()=>{qn.removeEventListener("scroll",vi)}}},[mn,sn]),(0,Ft.useEffect)(()=>{if(mn&&xi){let vi=function(qn,xn){xi(qn,xn)};return mn.on("beforeChange",vi),()=>{mn.off("beforeChange",vi)}}},[mn,xi]),(0,Ft.useEffect)(()=>{if(mn&&Cn){let vi=function(){Cn(mn.getValue())};return mn.on("blur",vi),()=>{mn.off("blur",vi)}}},[mn,Cn]);function uo(vi,qn){var xn=vi.getDoc(),ai=xn.getCursor(),zi=xn.getLine(ai.line),jr=zi.charAt(ai.ch-1),Qr=zi.lastIndexOf("@\u2581@",ai.ch),Ur=zi.lastIndexOf("@\u2581\u2581@",ai.ch),mo=Qr>Ur?Qr:Ur,Jr=Qr>Ur?3:4;if(Si.indexOf(jr)===-1)return null;if(console.log("change1:",qn,vi,zi,ai,mo,Qr,Ur,jr),mo>=0&&ai.ch-mo<5){var Ca=mo+Jr;return xn.replaceRange("",{line:ai.line,ch:mo},{line:ai.line,ch:Ca}),{line:ai.line,ch:Ca}}return null}(0,Ft.useEffect)(()=>{if(mn){let vi=function(qn,xn){const ai=qn.getValue();Mi(ai),Vi(new Date().getTime()),qn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),en&&(ti?en(ai,ec(ai)):en(ai))};return mn.on("change",vi),()=>{mn.off("change",vi)}}},[mn,en]),(0,Ft.useEffect)(()=>{if(mn)if(dn==null)mn.setValue(""),Mi("");else{const vi=window.scrollY||window.pageYOffset;dn!==mn.getValue()&&(mn.setValue(dn),Mi(dn),mn.setCursor(ri?1:mn.lineCount(),0),window.scrollTo(0,vi))}},[mn,dn]);const Rn=(0,Ft.useCallback)(vi=>{const qn=mn.getCursor(),xn=mn.getSelection();let ai=xn.split(` `);switch(vi){case"bold":return mn.replaceSelection("**"+xn+"**"),xn===""&&mn.setCursor(qn.line,qn.ch+2),mn.focus();case"italic":return mn.replaceSelection("*"+xn+"*"),xn===""&&mn.setCursor(qn.line,qn.ch+1),mn.focus();case"code":return mn.replaceSelection("`"+xn+"`"),xn===""&&mn.setCursor(qn.line,qn.ch+1),mn.focus();case"inline-latex":return Li("inline-latex"),mn.focus();case"latex":return mn.replaceSelection("```latex\n"+xn+"\n```"),mn.setCursor(qn.line+1,xn.length+1),mn.focus();case"line-break":return mn.replaceSelection(`
`),mn.focus();case"list-ul":return xn===""?mn.replaceSelection("- "+xn):mn.replaceSelection(ai.map(zi=>zi===""?"":`- ${zi}`).join(` `)),mn.focus();case"list-ol":return xn===""?mn.replaceSelection("1. "+xn):mn.replaceSelection(ai.map((zi,jr)=>zi===""?"":`${jr+1}. ${zi}`).join(` `)),mn.focus();case"add-null-ch":return xn===""&&mn.setCursor(qn.line,qn.ch),mn.replaceSelection(lr),mn.focus();case"add-signal":return xn===""&&mn.setCursor(qn.line,qn.ch),mn.replaceSelection(ee),mn.focus();case"add-multiple":return xn===""&&mn.setCursor(qn.line,qn.ch),mn.replaceSelection(Si),mn.focus();case"inster-template-1":return xn===""&&mn.setCursor(qn.line,qn.ch),mn.replaceSelection(Ds),mn.focus();case"eraser":return mn.setValue(""),mn.focus();case"trigger-watch":return On(!sn),mn.focus();case"trigger-full-screen":return si(!Qn),mn.focus();case fn:Li(fn);return;case mi:Li(mi);return;case An:Li(An);return;case Dn:Li(Dn);return;case"maths-latex":Li("maths-latex");return;case En:Li(En);return;case Ti:Li(Ti);return;default:throw new Error}},[mn,sn,Qn]),Ee=(0,Ft.useCallback)((vi,qn)=>{var xn,ai,zi,jr,Qr,Ur;switch(Li(""),ei){case fn:const{title:Ol,link:$e}=vi;return mn.replaceSelection(`[${Ol}](${$e})`),mn.focus();case mi:const{language:Es,content:Pu}=vi;return mn.replaceSelection(["```"+Es,Pu,"```"].join(` -`)),mn.focus();case"maths-latex":for(var mo=atob(vi),Jr=new Uint8Array(mo.length),Ca=0;Ca{Jo.id?mn.replaceSelection(`![,](/api/attachments/${Jo.id}?type=${Jo.content_type})`):(Jo==null?void 0:Jo.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":mn.replaceSelection("`$$"+vi+"$$`");break;case An:case Dn:case ii:const{src:Ba,alt:Cu}=vi,qr=qn,$a=(zi=(ai=(xn=qr==null?void 0:qr.name)==null?void 0:xn.split("."))==null?void 0:ai.pop)==null?void 0:zi.call(ai);return((jr=qr==null?void 0:qr.type)==null?void 0:jr.indexOf("image"))>-1||!(qr!=null&&qr.type)?qr!=null&&qr.align||qr!=null&&qr.width?mn.replaceSelection(`

${Cu||

`):mn.replaceSelection(`${Cu||`):((Qr=qr==null?void 0:qr.type)==null?void 0:Qr.indexOf("video"))>-1?mn.replaceSelection(``):((Ur=qr==null?void 0:qr.type)==null?void 0:Ur.indexOf("pdf"))>-1?mn.replaceSelection(`${qr.name}`):mr.includes($a)?mn.replaceSelection(`${qr.name}`):mn.replaceSelection(`[${qr.name}](${Ba})`),mn.focus();case Ti:const{row:tl,col:xr,align:Eo}=vi;let Eu=` +`)),mn.focus();case"maths-latex":for(var mo=atob(vi),Jr=new Uint8Array(mo.length),Ca=0;Ca{Jo.id?mn.replaceSelection(`![,](/api/attachments/${Jo.id}?type=${Jo.content_type})`):(Jo==null?void 0:Jo.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":mn.replaceSelection("`$$"+vi+"$$`");break;case An:case Dn:case ii:const{src:Ba,alt:Cu}=vi,qr=qn,$a=(zi=(ai=(xn=qr==null?void 0:qr.name)==null?void 0:xn.split("."))==null?void 0:ai.pop)==null?void 0:zi.call(ai);return((jr=qr==null?void 0:qr.type)==null?void 0:jr.indexOf("image"))>-1||!(qr!=null&&qr.type)?qr!=null&&qr.align||qr!=null&&qr.width?mn.replaceSelection(`

${Cu||

`):mn.replaceSelection(`${Cu||`):((Qr=qr==null?void 0:qr.type)==null?void 0:Qr.indexOf("video"))>-1?mn.replaceSelection(``):((Ur=qr==null?void 0:qr.type)==null?void 0:Ur.indexOf("pdf"))>-1?mn.replaceSelection(`${qr.name}`):mr.includes($a)?mn.replaceSelection(`${qr.name}`):mn.replaceSelection(`[${qr.name}](${Ba})`),mn.focus();case Ti:const{row:tl,col:xr,align:Eo}=vi;let Eu=` `;for(let Jo=0;Jo{switch(ei){case fn:return Ft.createElement(Me,{callback:Ee,onCancel:Qo});case mi:return Ft.createElement(ke.Z,{callback:Ee,onCancel:Qo});case An:return Ft.createElement(me.Z,{callback:Ee,onCancel:Qo});case En:return Ft.createElement(he,{callback:Ee,onCancel:Qo});case Ti:return Ft.createElement(te,{callback:Ee,onCancel:Qo});case"maths-latex":return Ft.createElement(Je,{showSaveButton:!0,callback:Ee});case"inline-latex":return Ft.createElement(Ze.Z,{showSaveButton:!0,callback:Ee});default:return null}},[ei]);function Qo(){Li("")}(0,Ft.useEffect)(()=>{if(Ri.current){let vi=function(Qr){zi=!0,jr=Qr.pageY},qn=function(){zi=!1},xn=function(Qr){if(zi){let Ur=Qr.pageY-jr;Ur<0&&(Ur=0),Ur>300&&(Ur=300);let mo=zn+Ur+"px";fr(mo)}},ai=Ri.current,zi=!1,jr=0;return ai.addEventListener("mousedown",vi),document.addEventListener("mousemove",xn),document.addEventListener("mouseup",qn),()=>{ai.removeEventListener("mousedown",vi),document.removeEventListener("mousemove",xn),document.removeEventListener("mouseup",qn)}}},[mn,Ri]),(0,Ft.useEffect)(()=>{fr(zn)},[zn]);const Tl=ms(qe),Pa=ms(Yi),_l={width:Tl,height:Pa},bu=(0,Ft.useMemo)(()=>{if(hr){let vi=new Date(hr),qn=vi.getHours(),xn=vi.getMinutes(),ai=vi.getSeconds();return qn=qn<10?"0"+qn:qn,xn=xn<10?"0"+xn:xn,ai=ai<10?"0"+ai:ai,`${qn}:${xn}:${ai}`}return 0},[hr]),ec=vi=>{const qn=[];if(ti){let xn=-1;vi=vi.replace(/(@▁▁@|@▁@)/g,function(ai,zi,jr){qn.push({multiLine:ai!==ee})})}return qn};function nc(){window.sessionStorage.removeItem(dr),Qi(!1),Vi(0)}function Er(){Qi(!1),Vi(0),mn.setValue(window.sessionStorage.getItem(dr))}(0,Ft.useEffect)(()=>{Gr[ei]&&ei!==Dn&&ei!==En&&setTimeout(()=>{const vi=document.getElementsByClassName("markdown-popup-form")[0],qn=window.innerWidth/2-vi.offsetWidth/2,xn=window.innerHeight/2-vi.offsetHeight/2;qi(qn),Kr(xn)},0)},[ei]);const Zr=vi=>{vi.preventDefault();const qn=vi.clientX-gn,xn=vi.clientY-Io;document.body.onmousemove=ai=>{let zi=ai.clientX-qn,jr=ai.clientY-xn;const Qr=document.getElementsByClassName("markdown-popup-form")[0],Ur=window.innerWidth-Qr.offsetWidth,mo=window.innerHeight-Qr.offsetHeight;zi=Math.max(0,Math.min(zi,Ur)),jr=Math.max(0,Math.min(jr,mo)),aa(ai.clientX,ai.clientY,qn,xn)&&(qi(zi),Kr(jr))},document.body.onmouseup=function(){document.body.onmousemove=null}},aa=(vi,qn,xn,ai)=>{const zi=document.body.clientHeight,jr=document.body.clientWidth;return vi<20&&xn>vi||vi>jr-20&&xnqn||qn>zi-20&&aiLt in jt?dt(jt,Lt,{enumerable:!0,configurable:!0,writable:!0,value:It}):jt[Lt]=It,it=(jt,Lt)=>{for(var It in Lt||(Lt={}))E.call(Lt,It)&&ot(jt,It,Lt[It]);if(lt)for(var It of lt(Lt))z.call(Lt,It)&&ot(jt,It,Lt[It]);return jt},at=(jt,Lt)=>ft(jt,ct(Lt));const{useForm:ut}=Ft.default,wt={width:280,marginRight:10},Et={labelCol:{span:5},wrapperCol:{span:19}};var At=({callback:jt,onCancel:Lt})=>{const[It]=ut();let Ut=(0,yt.useRef)();function Xt(Ht){Ut.current.width=It.getFieldValue("width"),Ut.current.align=It.getFieldValue("align"),jt(Ht,Ut.current)}function Gt(Ht,ne){if(Ht.status===-1){ie.ZP.error(Ht.message);return}It.setFieldsValue({src:`/api/attachments/${Ht.id}`,type:ne.type})}function Yt(Ht){let ne=Ht.target.files[0];Ut.current=ne,Mt(ne,Gt)}return xt.createElement(Ft.default,at(it({form:It},Et),{className:"upload-image-panel",onFinish:Xt,style:{width:470,overflow:"hidden"}}),xt.createElement(Ft.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},xt.createElement("div",{className:"flex-container"},xt.createElement(Ft.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},xt.createElement(rt.default,{style:wt})),xt.createElement(_t,{onFileChange:Yt}))),xt.createElement(Ft.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},xt.createElement(rt.default,{style:{width:264}})),xt.createElement(Ft.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},xt.createElement(kt.Z,null,xt.createElement(Ft.default.Item,{name:"width",style:{margin:0}},xt.createElement(Ct.Z,{style:{width:264}})),xt.createElement("span",{className:"ml8"},"%"))),xt.createElement(Ft.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},xt.createElement(St.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"}]})),xt.createElement("aside",null,xt.createElement(Ft.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},xt.createElement(pt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),xt.createElement(pt.ZP,{type:"default",onClick:Lt},"\u53D6\u6D88"))))};function _t({onFileChange:jt}){return xt.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",xt.createElement("input",{type:"file",onChange:jt}))}function Mt(jt,Lt){if(!jt)throw new String("\u6CA1\u6709\u6587\u4EF6");let It=new FormData;It.append("editormd-image-file",jt),It.append("file_param_name","editormd-image-file"),It.append("byxhr","true");var Ut=new window.XMLHttpRequest;Ut.withCredentials=!0,Ut.addEventListener("load",function(Xt){Lt(JSON.parse(Xt.target.responseText),jt)},!1),Ut.addEventListener("error",function(Xt){console.error(Xt)},!1),Ut.open("POST",`${vt.KI}/api/attachments.json`),Ut.send(It)}},79346:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return rt}});var Ft=Rt(59301),ie=Rt(4676);class rt extends Ft.Component{constructor(Ct){super(Ct);const St=window.document;this.node=St.createElement("div"),St.body.appendChild(this.node)}render(){const{children:Ct}=this.props;return(0,ie.createPortal)(Ct,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23954:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{SV:function(){return ue},ZP:function(){return Te}});var Ft=Rt(59301),ie=Rt(76374);const rt={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"]},kt={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(` +`),mn.focus();default:throw new Error}},[mn,ei]),jo=(0,Ft.useMemo)(()=>{switch(ei){case fn:return Ft.createElement(ke,{callback:Ee,onCancel:Qo});case mi:return Ft.createElement(Me.Z,{callback:Ee,onCancel:Qo});case An:return Ft.createElement(ge.Z,{callback:Ee,onCancel:Qo});case En:return Ft.createElement(he,{callback:Ee,onCancel:Qo});case Ti:return Ft.createElement(te,{callback:Ee,onCancel:Qo});case"maths-latex":return Ft.createElement(Je,{showSaveButton:!0,callback:Ee});case"inline-latex":return Ft.createElement(Ze.Z,{showSaveButton:!0,callback:Ee});default:return null}},[ei]);function Qo(){Li("")}(0,Ft.useEffect)(()=>{if(Ri.current){let vi=function(Qr){zi=!0,jr=Qr.pageY},qn=function(){zi=!1},xn=function(Qr){if(zi){let Ur=Qr.pageY-jr;Ur<0&&(Ur=0),Ur>300&&(Ur=300);let mo=zn+Ur+"px";fr(mo)}},ai=Ri.current,zi=!1,jr=0;return ai.addEventListener("mousedown",vi),document.addEventListener("mousemove",xn),document.addEventListener("mouseup",qn),()=>{ai.removeEventListener("mousedown",vi),document.removeEventListener("mousemove",xn),document.removeEventListener("mouseup",qn)}}},[mn,Ri]),(0,Ft.useEffect)(()=>{fr(zn)},[zn]);const _l=gs(qe),Pa=gs(Yi),gl={width:_l,height:Pa},bu=(0,Ft.useMemo)(()=>{if(hr){let vi=new Date(hr),qn=vi.getHours(),xn=vi.getMinutes(),ai=vi.getSeconds();return qn=qn<10?"0"+qn:qn,xn=xn<10?"0"+xn:xn,ai=ai<10?"0"+ai:ai,`${qn}:${xn}:${ai}`}return 0},[hr]),ec=vi=>{const qn=[];if(ti){let xn=-1;vi=vi.replace(/(@▁▁@|@▁@)/g,function(ai,zi,jr){qn.push({multiLine:ai!==ee})})}return qn};function nc(){window.sessionStorage.removeItem(dr),Qi(!1),Vi(0)}function Er(){Qi(!1),Vi(0),mn.setValue(window.sessionStorage.getItem(dr))}(0,Ft.useEffect)(()=>{Gr[ei]&&ei!==Dn&&ei!==En&&setTimeout(()=>{const vi=document.getElementsByClassName("markdown-popup-form")[0],qn=window.innerWidth/2-vi.offsetWidth/2,xn=window.innerHeight/2-vi.offsetHeight/2;qi(qn),Kr(xn)},0)},[ei]);const Zr=vi=>{vi.preventDefault();const qn=vi.clientX-gn,xn=vi.clientY-Io;document.body.onmousemove=ai=>{let zi=ai.clientX-qn,jr=ai.clientY-xn;const Qr=document.getElementsByClassName("markdown-popup-form")[0],Ur=window.innerWidth-Qr.offsetWidth,mo=window.innerHeight-Qr.offsetHeight;zi=Math.max(0,Math.min(zi,Ur)),jr=Math.max(0,Math.min(jr,mo)),aa(ai.clientX,ai.clientY,qn,xn)&&(qi(zi),Kr(jr))},document.body.onmouseup=function(){document.body.onmousemove=null}},aa=(vi,qn,xn,ai)=>{const zi=document.body.clientHeight,jr=document.body.clientWidth;return vi<20&&xn>vi||vi>jr-20&&xnqn||qn>zi-20&&aiLt in jt?dt(jt,Lt,{enumerable:!0,configurable:!0,writable:!0,value:It}):jt[Lt]=It,it=(jt,Lt)=>{for(var It in Lt||(Lt={}))E.call(Lt,It)&&ot(jt,It,Lt[It]);if(lt)for(var It of lt(Lt))z.call(Lt,It)&&ot(jt,It,Lt[It]);return jt},at=(jt,Lt)=>ft(jt,ct(Lt));const{useForm:ut}=Ft.default,wt={width:280,marginRight:10},Et={labelCol:{span:5},wrapperCol:{span:19}};var At=({callback:jt,onCancel:Lt})=>{const[It]=ut();let Ut=(0,yt.useRef)();function Xt(Ht){Ut.current.width=It.getFieldValue("width"),Ut.current.align=It.getFieldValue("align"),jt(Ht,Ut.current)}function Gt(Ht,ne){if(Ht.status===-1){ie.ZP.error(Ht.message);return}It.setFieldsValue({src:`/api/attachments/${Ht.id}`,type:ne.type})}function Vt(Ht){let ne=Ht.target.files[0];Ut.current=ne,Mt(ne,Gt)}return xt.createElement(Ft.default,at(it({form:It},Et),{className:"upload-image-panel",onFinish:Xt,style:{width:470,overflow:"hidden"}}),xt.createElement(Ft.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},xt.createElement("div",{className:"flex-container"},xt.createElement(Ft.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},xt.createElement(rt.default,{style:wt})),xt.createElement(_t,{onFileChange:Vt}))),xt.createElement(Ft.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},xt.createElement(rt.default,{style:{width:264}})),xt.createElement(Ft.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},xt.createElement(kt.Z,null,xt.createElement(Ft.default.Item,{name:"width",style:{margin:0}},xt.createElement(Ct.Z,{style:{width:264}})),xt.createElement("span",{className:"ml8"},"%"))),xt.createElement(Ft.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},xt.createElement(St.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"}]})),xt.createElement("aside",null,xt.createElement(Ft.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},xt.createElement(pt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),xt.createElement(pt.ZP,{type:"default",onClick:Lt},"\u53D6\u6D88"))))};function _t({onFileChange:jt}){return xt.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",xt.createElement("input",{type:"file",onChange:jt}))}function Mt(jt,Lt){if(!jt)throw new String("\u6CA1\u6709\u6587\u4EF6");let It=new FormData;It.append("editormd-image-file",jt),It.append("file_param_name","editormd-image-file"),It.append("byxhr","true");var Ut=new window.XMLHttpRequest;Ut.withCredentials=!0,Ut.addEventListener("load",function(Xt){Lt(JSON.parse(Xt.target.responseText),jt)},!1),Ut.addEventListener("error",function(Xt){console.error(Xt)},!1),Ut.open("POST",`${vt.KI}/api/attachments.json`),Ut.send(It)}},79346:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return rt}});var Ft=Rt(59301),ie=Rt(4676);class rt extends Ft.Component{constructor(Ct){super(Ct);const St=window.document;this.node=St.createElement("div"),St.body.appendChild(this.node)}render(){const{children:Ct}=this.props;return(0,ie.createPortal)(Ct,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23954:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{SV:function(){return ue},ZP:function(){return Te}});var Ft=Rt(59301),ie=Rt(76374);const rt={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"]},kt={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"]},Ct={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(` @@ -1085,110 +1085,110 @@ ${me} `)},{label:"include ",content:["#include "].join(` `)}]},St={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(` `)}]},pt={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 vt=Rt(53184),yt=Rt.n(vt),xt=Object.defineProperty,dt=Object.defineProperties,ft=Object.getOwnPropertyDescriptors,ct=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=($t,he,ye)=>he in $t?xt($t,he,{enumerable:!0,configurable:!0,writable:!0,value:ye}):$t[he]=ye,ot=($t,he)=>{for(var ye in he||(he={}))lt.call(he,ye)&&z($t,ye,he[ye]);if(ct)for(var ye of ct(he))E.call(he,ye)&&z($t,ye,he[ye]);return $t},it=($t,he)=>dt($t,ft(he)),at=($t,he,ye)=>new Promise((Qt,Wt)=>{var Bt=Jt=>{try{ge(ye.next(Jt))}catch(Ie){Wt(Ie)}},te=Jt=>{try{ge(ye.throw(Jt))}catch(Ie){Wt(Ie)}},ge=Jt=>Jt.done?Qt(Jt.value):Promise.resolve(Jt.value).then(Bt,te);ge((ye=ye.apply($t,he)).next())});const ut={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"]}},wt=($t,he)=>he.map(ye=>({label:ye,kind:$t.languages.CompletionItemKind.Keyword,insertText:ye})),Et=$t=>Object.keys(ut.tables).map(he=>({label:he,kind:$t.languages.CompletionItemKind.Variable,insertText:he})),At=($t,he)=>{const ye=ut.tables[$t];return ye?ye.map(Qt=>({label:Qt,kind:he.languages.CompletionItemKind.Field,insertText:Qt})):[]};function _t($t,he,ye,Qt,Wt){let Bt=he.getWordUntilPosition(ye),te={startLineNumber:ye.lineNumber,endLineNumber:ye.lineNumber,startColumn:Bt.startColumn,endColumn:Bt.endColumn},ge=Qt.map(Jt=>({label:Jt,kind:$t.languages.CompletionItemKind.Keyword,insertText:Jt,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:te}));return Wt.map(Jt=>{ge.push(it(ot({},Jt),{range:te}))}),ge}var Mt=$t=>{ut.languages.map(Wt=>($t.languages.registerDocumentFormattingEditProvider(Wt,{provideDocumentFormattingEdits(Bt,te,ge){return at(this,null,function*(){const Jt=yt()(Bt.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:Bt.getFullModelRange(),text:Jt}]})}}),Wt));const he=Ct.quickKey.map(Wt=>({label:Wt.label,kind:$t.languages.CompletionItemKind.Method,insertText:Wt.content,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet})),ye=St.quickKey.map(Wt=>({label:Wt.label,kind:$t.languages.CompletionItemKind.Method,insertText:Wt.content,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Qt=kt.quickKey.map(Wt=>({label:Wt.label,kind:$t.languages.CompletionItemKind.Method,insertText:Wt.content,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet}));$t.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Wt,Bt){var te=Wt.getWordUntilPosition(Bt),ge={startLineNumber:Bt.lineNumber,endLineNumber:Bt.lineNumber,startColumn:te.startColumn,endColumn:te.endColumn},Jt=Wt.getLineContent(Bt.lineNumber).substring(te.startColumn-2,te.endColumn);return{suggestions:[...Ct.keywords.map(Ie=>({label:Ie,kind:$t.languages.CompletionItemKind.Function,documentation:Ie,insertText:Ie,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ge})),...Ct.quickKey.map(Ie=>({label:Ie.label,kind:$t.languages.CompletionItemKind.Function,documentation:Ie.content,insertText:Jt.startsWith("#")?Ie.content.replace(/#/,""):Ie.content,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ge}))]}}}),$t.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Wt,Bt){var te=Wt.getWordUntilPosition(Bt),ge={startLineNumber:Bt.lineNumber,endLineNumber:Bt.lineNumber,startColumn:te.startColumn,endColumn:te.endColumn};return{suggestions:[...rt.keywords.map(Jt=>({label:Jt,kind:$t.languages.CompletionItemKind.Function,documentation:Jt,insertText:Jt,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ge}))]}}}),$t.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Wt,Bt){var te=Wt.getWordUntilPosition(Bt),ge={startLineNumber:Bt.lineNumber,endLineNumber:Bt.lineNumber,startColumn:te.startColumn,endColumn:te.endColumn},Jt=Wt.getLineContent(Bt.lineNumber).substring(te.startColumn-2,te.endColumn);return{suggestions:[...kt.keywords.map(Ie=>({label:Ie,kind:$t.languages.CompletionItemKind.Function,documentation:Ie,insertText:Ie,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ge})),...kt.quickKey.map(Ie=>({label:Ie.label,kind:$t.languages.CompletionItemKind.Function,documentation:Ie.content,insertText:Jt.startsWith("#")?Ie.content.replace(/#/,""):Ie.content,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ge}))]}}}),$t.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Wt,Bt){var te=Wt.getWordUntilPosition(Bt),ge={startLineNumber:Bt.lineNumber,endLineNumber:Bt.lineNumber,startColumn:te.startColumn,endColumn:te.endColumn},Jt=Wt.getLineContent(Bt.lineNumber).substring(te.startColumn-2,te.endColumn);return{suggestions:[...pt.keywords.map(Ie=>({label:Ie,kind:$t.languages.CompletionItemKind.Function,documentation:Ie,insertText:Ie,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ge})),...pt.quickKey.map(Ie=>({label:Ie.label,kind:$t.languages.CompletionItemKind.Function,documentation:Ie.content,insertText:Jt.startsWith("#")?Ie.content.replace(/#/,""):Ie.content,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ge}))]}}}),$t.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Wt,Bt){var te=Wt.getWordUntilPosition(Bt),ge={startLineNumber:Bt.lineNumber,endLineNumber:Bt.lineNumber,startColumn:te.startColumn,endColumn:te.endColumn},Jt=Wt.getLineContent(Bt.lineNumber).substring(te.startColumn-2,te.endColumn);return{suggestions:[...St.keywords.map(Ie=>({label:Ie,kind:$t.languages.CompletionItemKind.Function,documentation:Ie,insertText:Ie,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ge})),...St.quickKey.map(Ie=>({label:Ie.label,kind:$t.languages.CompletionItemKind.Function,documentation:Ie.content,insertText:Jt.startsWith("#")?Ie.content.replace(/#/,""):Ie.content,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ge}))]}}})};const jt="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Lt=Object.defineProperty,It=($t,he,ye)=>he in $t?Lt($t,he,{enumerable:!0,configurable:!0,writable:!0,value:ye}):$t[he]=ye,Ut=($t,he,ye)=>It($t,typeof he!="symbol"?he+"":he,ye);const Xt=class mw{constructor(he,ye,Qt){this.placeholder=he,this.editor=ye,this.monaco=Qt,ye.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return mw.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)}};Ut(Xt,"ID","editor.widget.placeholderHint");var Yt=Xt,Ht=Rt(96236),ne=Rt(8591),ae=Rt(6848),ve=Rt(89392),Kt=Rt(34604),re=Rt(56102),we=Object.defineProperty,Me=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,me=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,_e=($t,he,ye)=>he in $t?we($t,he,{enumerable:!0,configurable:!0,writable:!0,value:ye}):$t[he]=ye,je=($t,he)=>{for(var ye in he||(he={}))fe.call(he,ye)&&_e($t,ye,he[ye]);if(me)for(var ye of me(he))pe.call(he,ye)&&_e($t,ye,he[ye]);return $t},He=($t,he)=>Me($t,ke(he)),Se=($t,he)=>{var ye={};for(var Qt in $t)fe.call($t,Qt)&&he.indexOf(Qt)<0&&(ye[Qt]=$t[Qt]);if($t!=null&&me)for(var Qt of me($t))he.indexOf(Qt)<0&&pe.call($t,Qt)&&(ye[Qt]=$t[Qt]);return ye},xe=($t,he,ye)=>new Promise((Qt,Wt)=>{var Bt=Jt=>{try{ge(ye.next(Jt))}catch(Ie){Wt(Ie)}},te=Jt=>{try{ge(ye.throw(Jt))}catch(Ie){Wt(Ie)}},ge=Jt=>Jt.done?Qt(Jt.value):Promise.resolve(Jt.value).then(Bt,te);ge((ye=ye.apply($t,he)).next())});function le($t){return/^\d+$/.test($t)?`${$t}px`:$t}function Ne(){}let se=!1;const Ae={"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 Xe($t=[]){let he=$t;if(Array.isArray($t)){for(let ye=0;ye<$t.length;ye++){let Qt=Ae[$t[ye]];if(Qt)return Qt}return he[0]}return Ae[he]||he}let Be=null;var Te=$t=>{var he=$t,{width:ye="100%",height:Qt="100%",value:Wt,language:Bt="javascript",style:te={},options:ge={},overrideServices:Jt={},theme:Ie="vs-dark",onEditBlur:Ue,isCopy:Je=!1,onSave:Ze,autoHeight:nn=!1,forbidCopy:fn=!1,onChange:An=Ne,editorDidMount:En=Ne,onFocus:Dn=Ne,onBreakPoint:ii=Ne,breakPointValue:mi=[],filename:Ti="educoder.txt",errorLine:Oi,errorContent:ki="",highlightLine:pi,openBreakPoint:Bi=!1,placeholder:Or=""}=he,yr=Se(he,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder"]);const lr=(0,Ft.useRef)(),Si=(0,Ft.useRef)({}),ee=(0,Ft.useRef)(),Ds=(0,Ft.useRef)(),mr=(0,Ft.useRef)([]),ms=(0,Ft.useRef)(!1),Xs=(0,Ft.useRef)(),Do=(0,Ft.useRef)(),Oo=(0,Ft.useRef)(!1),[Gr,sa]=(0,Ft.useState)(!1);function dn(){let on;return lr.current&&(on=new ie.Z(Cn=>{for(let xi of Cn)(xi.target.offsetHeight>0||xi.target.offsetWidth>0)&&Si.current.instance.layout()}),on.observe(lr.current)),on}function en(){ne.ZP.warning({content:decodeURIComponent(jt),key:"monaco-editor-tip"})}const qe=()=>{let on=Si.current.instance;if(Wt!=null&&on&&Gr){const Cn=on.getModel();Cn&&Wt!==Cn.getValue()&&(se=!0,Cn.setValue(Wt),on.layout(),se=!1)}};(0,Ft.useEffect)(()=>{const on=Kt.Z.subscribe("formatDocument",Cn=>{var xi;let Zi=Si.current.instance;(xi=Zi==null?void 0:Zi.getAction)==null||xi.call(Zi,"editor.action.formatDocument").run()});return window.updateMonacoValue=Cn=>{An(Cn)},on},[]),(0,Ft.useEffect)(()=>{var on;let Cn=Si.current.instance;Ds.current&&clearTimeout(Ds.current),Ds.current=setTimeout(()=>{qe()},500),Wt&&(Wt!=null&&Wt.length)&&((on=Cn==null?void 0:Cn.updateOptions)==null||on.call(Cn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Wt.split(/\r\n|\r|\n/g).length))+3,5)}))},[Wt,Gr,Si.current]),(0,Ft.useEffect)(()=>{if(Oi&&Si.current&&Si.current.instance){let Cn=Si.current.instance;Cn.changeViewZones(function(xi){var Zi=document.createElement("div");Zi.style.padding="10px 20px",Zi.style.width="calc(100% - 20px)",Zi.className="my-error-line-wrp",Zi.innerHTML=ki,xi.addZone({afterLineNumber:Oi||11,heightInLines:3,domNode:Zi})});var on={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};Cn.addOverlayWidget(on),Cn.revealPositionInCenter({lineNumber:20,column:1})}},[Oi,Si.current,Gr]);const zn=(on="",Cn)=>{if(!on||on.trim()==="")return!0;const Zi=Si.current.instance.getModel().getLineTokens(Cn);let Wi=!1;for(let oi=0;oi<2;oi++)Zi.getStandardTokenType(oi)===1&&(Wi=!0);return Wi};(0,Ft.useEffect)(()=>{var on;const Cn=(on=Si.current)==null?void 0:on.instance;if(Cn&&Gr&&fn){const xi=Cn.onDidBlurEditorWidget(()=>{Oo.current=!1}),Zi=Cn.onDidFocusEditorText(()=>{Oo.current=!0});return()=>{xi.dispose(),Zi.dispose()}}},[Si.current,Gr,fn]),(0,Ft.useEffect)(()=>{var on;if((on=Si.current)!=null&&on.instance&&Gr&&Bi){let Cn=Si.current.instance,xi=Cn.getModel();if(!xi)return;(()=>{var Mi;let sn=[],On=[];const Qn=xi.getAllDecorations();for(let ei of Qn)ei.options.className==="highlighted-line"&&(sn.push((Mi=ei==null?void 0:ei.range)==null?void 0:Mi.startLineNumber),On.push(ei==null?void 0:ei.id));if(pi===sn[0])return;xi.deltaDecorations(On,[]);const si=xi.getLineCount();pi&&pi<=si&&(Cn.deltaDecorations([],[{range:new Be.Range(pi,1,pi,xi.getLineMaxColumn(pi)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Cn.revealLineInCenter(pi))})();const Wi=(Mi=!1)=>{var sn;let On=[],Qn=[];const si=xi.getAllDecorations();for(let ei of si)ei.options.linesDecorationsClassName==="breakpoints-select"&&(On.push((sn=ei==null?void 0:ei.range)==null?void 0:sn.startLineNumber),Qn.push(ei==null?void 0:ei.id));if(Mi)return{lines:On,ids:Qn};ii(On)},oi=Mi=>xe(void 0,null,function*(){let sn={range:new Be.Range(Mi,1,Mi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield xi.deltaDecorations([],[sn]),Wi()}),ri=Mi=>xe(void 0,null,function*(){let sn=[];const On=Cn.getLineDecorations(Mi);for(let Qn of On)Qn.options.linesDecorationsClassName==="breakpoints-select"&&sn.push(Qn.id);yield xi.deltaDecorations(sn,[]),Wi()}),Zn=Mi=>{let sn=Cn.getLineDecorations(Mi);for(let On of sn)if(On.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,ve.isEqual)(mi,Wi(!0).lines)){xi.deltaDecorations(Wi(!0).ids,[]);const Mi=mi.map(sn=>({range:new Be.Range(sn,1,sn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));xi.deltaDecorations([],Mi)}const ur=Cn.onDidChangeModelContent(Mi=>{let sn=Cn.getPosition();if(sn){let On=sn.lineNumber;clearTimeout(Do.current),Do.current=setTimeout(()=>{zn(xi.getLineContent(On),On)?ri(On):Zn(On)?(ri(On),oi(On)):Wi()},100)}}),Yr=Cn.onMouseDown(Mi=>{var sn,On,Qn;if(Mi.target.detail&&((Qn=(On=(sn=Mi.target)==null?void 0:sn.element)==null?void 0:On.className)!=null&&Qn.includes("line-numbers"))){let si=Mi.target.position.lineNumber;if(zn(xi.getLineContent(si),si))return;Zn(si)?ri(si):oi(si)}}),br=Mi=>{let sn={range:new Be.Range(Mi,1,Mi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};mr.current=Cn.deltaDecorations(mr.current,[sn])},mn=()=>{mr.current=Cn.deltaDecorations(mr.current,[])},er=Cn.onMouseMove(Mi=>{var sn,On,Qn;if(mn(),Mi.target.detail&&((Qn=(On=(sn=Mi.target)==null?void 0:sn.element)==null?void 0:On.className)!=null&&Qn.includes("line-numbers"))){let si=Mi.target.position.lineNumber;if(zn(xi.getLineContent(si),si))return;br(si)}}),cr=Cn.onMouseLeave(()=>{mn()});return()=>{ur.dispose(),Yr.dispose(),er.dispose(),cr.dispose()}}},[Si.current,Gr,mi,pi,Bi,Bt]),(0,Ft.useEffect)(()=>{var on;(on=Si.current)!=null&&on.instance&&Bi&&Si.current.instance.setPosition({lineNumber:0,column:0})},[pi]);function Jn(){let on=Si.current.instance;if(on){const Cn=on.getSelection(),xi=Si.current.pastePos||{},Zi=new Be.Range(xi.startLineNumber||Cn.endLineNumber,xi.startColumn||Cn.endColumn,xi.endLineNumber||Cn.endLineNumber,xi.endColumn||Cn.endColumn);setTimeout(()=>{on.executeEdits("",[{range:Zi,text:""}])},300)}}function hi(on){(window.navigator.platform.match("Mac")?on.metaKey:on.ctrlKey)&&on.keyCode==83&&(on.preventDefault(),Ze())}const bn=()=>{if(nn&&Si.current.instance){const on=Si.current.instance.getContentHeight();ti(on{if(!Oo.current)return;const{keyCode:Cn,ctrlKey:xi,metaKey:Zi,target:Wi,type:oi}=on;return(oi==="paste"||(Cn===67||Cn===86)&&(Zi||xi))&&Wi.nodeName==="TEXTAREA"&&(en(),on.preventDefault()),!1};function dr(on,Cn){var xi=window.URL||window.webkitURL||window,Zi=new Blob([Cn]),Wi=document.createElementNS("http://www.w3.org/1999/xhtml","a");Wi.href=xi.createObjectURL(Zi),Wi.download=on,Bn(Wi)}(0,Ft.useEffect)(()=>{bn()},[bn]),(0,Ft.useEffect)(()=>{lr.current&&!Gr&&Promise.all([Rt.e(8909),Rt.e(3267)]).then(Rt.bind(Rt,71448)).then(on=>{try{Be=on,Si.current.instance=Be.editor.create(lr.current,{value:Wt,language:Xe(Bt),theme:Ie,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Jt);const Cn=Si.current.instance;let Wi=[...Ht.BH._menuItems].find(ur=>ur[0]._debugName=="EditorContext")[1],oi=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],ri=(ur,Yr)=>{var br,mn;let er=ur._first;do Yr.includes((mn=(br=er.element)==null?void 0:br.command)==null?void 0:mn.id)&&ur._remove(er);while(er=er.next)};if(En(Cn,Be),setTimeout(()=>{bn(),Si.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{dr(Ti||"educoder.txt",Cn.getValue())}})},500),Si.current.subscription=Cn.onDidChangeModelContent(ur=>{ms.current?clearTimeout(Xs.current):(bn(),An(Cn.getValue(),ur)),Xs.current=setTimeout(()=>{ms.current=!1},500)}),window.Monaco||Mt(Be,Xe(Bt)),fn&&(ri(Wi,oi),lr.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Xi),window.removeEventListener("paste",Xi),window.addEventListener("keydown",Xi),window.addEventListener("paste",Xi)),window.Monaco=Be,Ue&&Cn.onDidBlurEditorWidget(()=>{Ue(Cn.getValue())}),Dn&&Cn.onDidFocusEditorText(()=>{Dn(Cn.getValue())}),fn)try{Cn.onDidPaste(ur=>{const Yr=Cn.getSelection(),br=Si.current.pastePos||{},mn=new Be.Range(br.startLineNumber||Yr.endLineNumber,br.startColumn||Yr.endColumn,br.endLineNumber||Yr.endLineNumber,br.endColumn||Yr.endColumn);Cn.executeEdits("",[{range:ur.range,text:""}])})}catch(ur){}let Zn=dn();return Or&&typeof Or=="string"&&new Yt(Or,Cn,Be),sa(!0),()=>{const ur=Si.current.instance;ur.dispose();const Yr=ur.getModel();Yr&&Yr.dispose(),Si.current.subscription&&Si.current.subscription.dispose(),Zn.unobserve(lr.current)}}catch(Cn){}})},[]),(0,Ft.useEffect)(()=>{if(Si.current.instance&&Gr)return document.addEventListener("keydown",hi,!1),()=>{document.removeEventListener("keydown",hi)}},[Ze,Gr]),(0,Ft.useEffect)(()=>{let on=Si.current.instance;if(on&&Gr){let Cn=Xe(Bt);Be.editor.setModelLanguage(on.getModel(),Cn)}},[Bt,Gr]),(0,Ft.useEffect)(()=>{Si.current.instance&&Gr&&Be.editor.setTheme(Ie)},[Ie,Gr]),(0,Ft.useEffect)(()=>{let on=Si.current.instance;ee.current=ge,on&&Gr&&(on.updateOptions(je({},ge)),setTimeout(()=>{on.getModel().updateOptions(je({},ge))},200))},[JSON.stringify(ge),Gr]),(0,Ft.useEffect)(()=>{let on=Si.current.instance;on&&Gr&&on.layout()},[ye,Qt,Gr]);const[ir,We]=(0,Ft.useState)(le(ye)),[Nn,ti]=(0,Ft.useState)(le(Qt)),pr=He(je({},te),{width:ir,height:Nn,position:"relative"});return Ft.createElement("div",{className:"my-monaco-editor",ref:lr,style:pr},Je&&Ft.createElement(re.CopyToClipboard,{text:Wt,onCopy:()=>ne.ZP.success("\u590D\u5236\u6210\u529F")},Ft.createElement(ae.Z,{title:"\u590D\u5236\u4EE3\u7801"},Ft.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},Ft.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function ue({width:$t="100%",height:he="100%",original:ye,modified:Qt,language:Wt,options:Bt={}}){const te=(0,Ft.useRef)(),[ge,Jt]=(0,Ft.useState)(null);function Ie(nn){let fn;return te.current&&(fn=new ie.Z(An=>{for(let En of An)(En.target.offsetHeight>0||En.target.offsetWidth>0)&&nn.layout()}),fn.observe(te.current)),fn}(0,Ft.useEffect)(()=>(te.current&&Promise.all([Rt.e(8909),Rt.e(9404)]).then(Rt.bind(Rt,2550)).then(nn=>{Be=nn;const fn=Be.editor.createDiffEditor(te.current,He(je({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},Bt),{wordWrap:!0}));Jt(fn);let An=Ie(fn);return()=>{fn.dispose();const En=fn.getModel();En&&En.dispose(),An.unobserve(te.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,Ft.useEffect)(()=>{ge&&ge.setModel({original:Be.editor.createModel(ye,Wt),modified:Be.editor.createModel(Qt,Wt)})},[ye,Qt,Wt,ge]);const Ue=le($t),Je=le(he),Ze={width:Ue,height:Je};return Ft.createElement("div",{className:"my-diff-editor",ref:te,style:Ze})}},16869:function(tn,Ke,Rt){"use strict";var Ft=Rt(38476),ie=Rt(57809),rt=Rt(78673),kt=Rt(59301);const Ct=ie.default.Option;Ke.Z=({isTheoretical:St,onFontSizeChange:pt,cmFontSize:vt,cmCodeMode:yt,autoFormat:xt,onCodeModeChange:dt,onTabToSpace:ft,onAutoFormat:ct,formatDocument:lt,className:E="",tabToSpace:z,children:ot,code_editor:it,challenge:at})=>{const ut={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"};return kt.createElement("div",{className:`tpi-code-setting ${E}`},kt.createElement("h3",null,"\u4EE3\u7801\u683C\u5F0F"),kt.createElement("section",null,kt.createElement("div",{className:"file-item"},kt.createElement("b",null,"\u663E\u793A\u6A21\u5F0F"),kt.createElement(ie.default,{bordered:!1,size:"small",value:yt,onChange:dt},kt.createElement(Ct,{value:"vs"},"\u767D\u8272\u80CC\u666F"),kt.createElement(Ct,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),!St&&kt.createElement(kt.Fragment,null,kt.createElement("div",{className:"file-item"},kt.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),kt.createElement(ie.default,{bordered:!1,size:"small",value:vt,onChange:pt},kt.createElement(Ct,{value:12},"12px"),kt.createElement(Ct,{value:14},"14px"),kt.createElement(Ct,{value:16},"16px"),kt.createElement(Ct,{value:18},"18px"),kt.createElement(Ct,{value:20},"20px"),kt.createElement(Ct,{value:22},"22px"))),kt.createElement("div",{className:"file-item"},kt.createElement("b",null,"Tab\u8F6C\u6362"),kt.createElement(rt.Z,{checked:z,onChange:ft})),kt.createElement("div",{className:"file-item",onClick:lt},kt.createElement("b",{style:{cursor:"pointer"}},"\u683C\u5F0F\u5316\u4EE3\u7801")))),!St&&kt.createElement(kt.Fragment,null,kt.createElement("h3",null,"\u5FEB\u6377\u952E"),kt.createElement("section",null,kt.createElement("div",{className:"file-item"},kt.createElement("b",null,"\u4FDD\u5B58\u4EE3\u7801"),kt.createElement("span",null,"Ctrl + S")),kt.createElement("div",{className:"file-item"},kt.createElement("b",null,"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"),kt.createElement("span",null,"F1 / Alt + F1")),kt.createElement("div",{className:"file-item"},kt.createElement("b",null,"\u5DE6\u53F3\u7F29\u8FDB"),kt.createElement("span",null,"Ctrl + ]/[")),kt.createElement("div",{className:"file-item"},kt.createElement("b",null,"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"),kt.createElement("span",null,"Ctrl + Shift + \\")),kt.createElement("div",{className:"file-item"},kt.createElement("b",null,"\u8F6C\u5230\u884C\u9996"),kt.createElement("span",null,"Home")),kt.createElement("div",{className:"file-item"},kt.createElement("b",null,"\u8F6C\u5230\u884C\u5C3E"),kt.createElement("span",null,"End"))),ot),!St&&kt.createElement(kt.Fragment,null,kt.createElement("h3",null,"\u5FEB\u6377\u952E"),kt.createElement("section",null,kt.createElement("div",{className:"file-item"},kt.createElement("b",null,"\u5B9E\u8BAD\u96BE\u6613\u5EA6"),kt.createElement("span",null,ut[at==null?void 0:at.difficulty])),kt.createElement("div",{className:"file-item"},kt.createElement("b",null,"\u5B9E\u9A8C\u73AF\u5883"),kt.createElement("span",null,it==null?void 0:it.name)),kt.createElement("div",{className:"file-item"},kt.createElement("b",null,"\u5B9E\u9A8C\u5BB9\u5668\u7F51\u7EDC"),kt.createElement("span",null,it!=null&&it.close_internet?"\u5173\u95ED\u5916\u7F51":"\u5F00\u542F\u5916\u7F51")))))}},58856:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return ie}});var Ft=Rt(59301);function ie(rt,kt){const Ct=(0,Ft.useRef)();(0,Ft.useEffect)(()=>{Ct.current=rt}),(0,Ft.useEffect)(()=>{function St(){Ct.current()}if(kt!==null){let pt=setInterval(St,kt);return()=>clearInterval(pt)}},[kt])}},31947:function(tn,Ke,Rt){"use strict";var Ft=Rt(59301),ie=Rt(31797),rt=Rt(5871),kt=Rt(78241),Ct=Rt(43418),St=Rt(71418),pt=Rt(1710),vt=Rt(92832),yt=Rt(95237),xt=Rt(43604),dt=Rt(3113),ft=Rt(94941),ct=Rt(61186),lt=Rt.n(ct),E=Rt(89070),z=Rt(955),ot=Rt(16209),it=Rt(24065),at=Rt(83312),ut=Rt(59301),wt=(Mt,jt,Lt)=>new Promise((It,Ut)=>{var Xt=Ht=>{try{Yt(Lt.next(Ht))}catch(ne){Ut(ne)}},Gt=Ht=>{try{Yt(Lt.throw(Ht))}catch(ne){Ut(ne)}},Yt=Ht=>Ht.done?It(Ht.value):Promise.resolve(Ht.value).then(Xt,Gt);Yt((Lt=Lt.apply(Mt,jt)).next())});const{Countdown:Et}=ie.default,At=({value:Mt,onChange:jt,MaxMinutes:Lt})=>ut.createElement(ut.Fragment,null,ut.createElement("div",{className:"p10 mb20",style:{background:"#F6F7F9"}},"1.\u53EA\u6709\u5F53\u8003\u8BD5\u622A\u6B62\u65F6\u95F4\u665A\u4E8E\u5B66\u751F\u7684\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\u65F6\uFF0C\u624D\u652F\u6301\u5BF9\u5B66\u751F\u8FDB\u884C\u5EF6\u65F6\u64CD\u4F5C\uFF1B",ut.createElement("br",null),"2.\u6BCF\u4E2A\u5B66\u751F\u7684\u6700\u5927\u53EF\u5EF6\u65F6\u65F6\u95F4=\u8003\u8BD5\u622A\u6B62\u65F6\u95F4-\u5B66\u751F\u5F53\u524D\u7684\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\u3002",ut.createElement("br",null)),ut.createElement(rt.Z,{value:Mt,onChange:jt,min:0,precision:0,max:Lt,style:{width:"100%"},placeholder:`\u6700\u5927\u53EF\u5EF6\u957F\u65F6\u95F4\u4E3A${Lt}\u5206\u949F\uFF0C\u5728\u5B66\u751F\u5269\u4F59\u65F6\u95F4\u57FA\u7840\u4E0A\u5EF6\u65F6`,addonAfter:"\u5206\u949F"})),_t=({exercise:Mt,successCb:jt,dispatch:Lt})=>{var It,Ut,Xt,Gt;const Yt=(0,E.useParams)(),[Ht]=kt.default.useForm(),ne=kt.default.useWatch("time",Ht),[ae,ve]=(0,Ft.useState)(!1),Kt=(0,Ft.useRef)(),{actionTabs:re}=Mt,[we,Me]=(0,Ft.useState)(),[,ke,me,fe]=(0,at.U)(ft.n7,{id:Yt.categoryId}),[,pe,_e]=(0,at.U)(ft.Cd,{});(0,Ft.useEffect)(()=>{Mt.actionTabs.key==="student-unlock"&&(ve(!1),Ht.resetFields())},[Mt.actionTabs.key]);const je=()=>new Promise(Be=>wt(void 0,null,function*(){var Te,ue;return Kt.current=yield(0,ot.y)({ip_limit:(Te=re==null?void 0:re.exerciseParams)==null?void 0:Te.ip_limit,ip_bind:(ue=re==null?void 0:re.exerciseParams)==null?void 0:ue.ip_bind_type}),Be()})),He=()=>wt(void 0,null,function*(){var Be,Te,ue,$t,he;yield Ht.validateFields();const ye=Ht.getFieldsValue();if(ve(!0),(((Be=re==null?void 0:re.exerciseParams)==null?void 0:Be.ip_limit)!=="no"||(Te=re==null?void 0:re.exerciseParams)!=null&&Te.ip_bind_type)&&(yield je()),(yield(0,ft.ZD)((ue=re==null?void 0:re.exerciseParams)==null?void 0:ue.id,{exercise_user_id:($t=re==null?void 0:re.exerciseParams)==null?void 0:$t.exercise_user_id,unlock_key:ye.unlock_key,time:ye.time,ip:Kt.current})).status===0){if(jt){Lt({type:"exercise/setActionTabs",payload:{}}),jt();return}const Wt=re==null?void 0:re.exerciseParams;(0,z.nr)({inner_ip:Wt.inner_ip,public_ip:Wt.public_ip,open_camera:Wt.open_camera,ip_limit:Wt.ip_limit,ip_bind:Wt.ip_bind,ip_bind_type:Wt.ip_bind_type,exercise_tips:Wt.exercise_tips,exerciseId:Wt.id,screen_open:Wt.screen_open,screen_num:Wt.screen_num,screen_sec:Wt.screen_sec,coursesId:Yt.coursesId,login:(he=(0,it.eY)())==null?void 0:he.login,history,identity_verify:Wt.identity_verify,open_phone_video_recording:Wt.open_phone_video_recording,current_status:Wt.current_status}),Lt({type:"exercise/setActionTabs",payload:{}})}ve(!1)}),Se=[{title:"IP\u5730\u5740",dataIndex:"ip",key:"ip",render:Be=>ut.createElement("span",{className:Be.indexOf("\u5F02\u5E38")>-1?"c-red":"c-green"},Be)},{title:"\u6D4F\u89C8\u5668",dataIndex:"browser",key:"browser",render:Be=>ut.createElement("span",{className:Be.indexOf("\u5F02\u5E38")>-1?"c-red":"c-green"},Be)},{title:"\u4E0A\u6B21\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_time",key:"last_login_time"}],xe=((It=re==null?void 0:re.exerciseParams)==null?void 0:It.errorMessage)&&typeof((Ut=re==null?void 0:re.exerciseParams)==null?void 0:Ut.errorMessage)=="object";(0,Ft.useEffect)(()=>{Mt.actionTabs.key==="student-unlock"&&wt(void 0,null,function*(){const Be=yield _e(Yt);yield me({}),Be.status||Me(Be)})},[Mt.actionTabs.key]);const{time:le,end_time:Ne}=(we==null?void 0:we.exercise)||{},se=fe!=null&&fe.user_end_time?lt()(fe==null?void 0:fe.user_end_time).add(1,"minutes"):lt()(),Ae=lt()(fe==null?void 0:fe.user_total_end_time)>se?Math.round(lt().duration(lt()(fe==null?void 0:fe.user_total_end_time).diff(se.startOf("minute"))).asMinutes()):0,Xe=((fe==null?void 0:fe.student_left_minutes)||0)+(ne||0);return ut.createElement(ut.Fragment,null,ut.createElement(Ct.default,{width:514,centered:!0,closable:!!((Xt=re==null?void 0:re.exerciseParams)!=null&&Xt.unlockClose),maskClosable:!1,keyboard:!1,maskStyle:{background:"#000"},title:"\u63D0\u793A",open:Mt.actionTabs.key==="student-unlock",footer:null,onCancel:()=>{Lt({type:"exercise/setActionTabs",payload:{}})}},ut.createElement(St.Z,{spinning:ke||pe},xe&&ut.createElement("div",{style:{marginBottom:16}},"\u8BE5\u8D26\u53F7\u5DF2\u7ECF\u5B58\u5728\u5F02\u5E38\u60C5\u51B5\uFF0C\u82E5\u975E\u672C\u4EBA\u64CD\u4F5C\uFF0C\u8BF7\u8054\u7CFB\u76D1\u8003\u8001\u5E08\u8BF4\u660E\u60C5\u51B5\u3002 "),!xe&&ut.createElement("div",{style:{marginBottom:16}},"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u60A8\u5728\u8003\u8BD5\u65F6\u4E2D\u9014\u9000\u51FA\uFF0C\u73B0\u5DF2\u5C06\u8003\u8BD5\u9501\u5B9A\u3002\u5982\u9700\u7EE7\u7EED\u8FDB\u884C\u8003\u8BD5\uFF0C \u8BF7\u5C3D\u5FEB\u8054\u7CFB\u8BFE\u5802\u8001\u5E08\u8FDB\u884C\u89E3\u9501\uFF01"),xe&&ut.createElement(pt.default,{className:"mb20",pagination:{hideOnSinglePage:!0},dataSource:[((Gt=re==null?void 0:re.exerciseParams)==null?void 0:Gt.errorMessage)||{}],columns:Se}),ut.createElement("div",{className:""},ut.createElement(kt.default,{form:Ht,layout:"vertical",autoComplete:"off"},ut.createElement(kt.default.Item,{label:"\u8003\u8BD5\u89E3\u9501\u7801",name:"unlock_key",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801"}]},ut.createElement(vt.default.Password,{autoComplete:"off",placeholder:"\u8BF7\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801",visibilityToggle:!1})),le!==-1?ut.createElement(ut.Fragment,null,ut.createElement(kt.default.Item,{name:"time",label:ut.createElement("span",null,"\u5EF6\u957F\u65F6\u95F4\uFF08",ut.createElement("span",{style:{color:"#9096A3"}},"\u5F53\u524D\u8003\u8BD5\u622A\u6B62\u65F6\u95F4",lt()(fe==null?void 0:fe.user_total_end_time).format("YYYY-MM-DD HH:mm")),"\uFF09")},ut.createElement(At,{MaxMinutes:Ae})),ut.createElement("div",{className:"mb20",style:{color:"#FA6400"}},"\u8BE5\u5B66\u751F\u5269\u4F59\u8003\u8BD5\u65F6\u95F4\uFF1A",ut.createElement("span",{className:"ml5"},ke||pe?"--":Xe),"\u5206\u949F",Xe!==0&&(fe==null?void 0:fe.user_end_time)&&ut.createElement("span",null,"\uFF0C\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\uFF1A",ut.createElement("span",{className:"ml5"},lt()(fe==null?void 0:fe.user_end_time).add(ne||0,"m").format("YYYY-MM-DD HH:mm:ss"))))):ut.createElement("span",{style:{color:"#F6A53B"}}," \u5F53\u524D\u8003\u8BD5\u672A\u9650\u5236\u8003\u751F\u7B54\u9898\u65F6\u957F\uFF0C\u8003\u8BD5\u622A\u6B62\u65F6\u95F4\u4E3A ",lt()(Ne).format("YYYY-MM-DD HH:mm")))),ut.createElement(yt.Z,{justify:"space-between",align:"middle"},ut.createElement(xt.Z,null),ut.createElement(xt.Z,null,ut.createElement(dt.ZP,{loading:ae,onClick:He},"\u8FDB\u5165\u8003\u8BD5"))))))};Ke.Z=(0,E.connect)(({exercise:Mt})=>({exercise:Mt}))(_t)},34362:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return ct}});var Ft=Rt(59301),ie=Rt(8591),rt=Rt(6848),kt=Rt(71418),Ct=Rt(95237),St=Rt(43604),pt=Rt(58421),vt=Rt(3113),yt=Rt(12290),xt=Rt(99064),dt=Rt(85149),ft=(E,z,ot)=>new Promise((it,at)=>{var ut=At=>{try{Et(ot.next(At))}catch(_t){at(_t)}},wt=At=>{try{Et(ot.throw(At))}catch(_t){at(_t)}},Et=At=>At.done?it(At.value):Promise.resolve(At.value).then(ut,wt);Et((ot=ot.apply(E,z)).next())}),ct=({id:E,activeDiscussIndex:z,onReplyDiscuss:ot,adminOrOperator:it})=>{const[at,ut]=(0,Ft.useState)(""),[wt,Et]=(0,Ft.useState)(!1);function At(Mt){ut(Mt)}function _t(){if(!at){ie.ZP.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A!");return}ot(E,at),ut("")}return(0,Ft.useEffect)(()=>{z!=E&&Et(!1)},[z]),Ft.createElement("div",{key:E,className:"discuss-item-editor",style:{display:z===E?"block":"none",width:"100%"}},Ft.createElement(yt.Z,{miniToolbar:!0,startInit:z===E,defaultValue:at,id:E,noStorage:!0,watch:!1,height:155,placeholder:"\u6211\u8981\u56DE\u590D",showResizeBar:!0,onChange:At,extraUse:it&&Ft.createElement(rt.Z,{color:"#fff",open:wt,destroyTooltipOnHide:!0,title:lt({id:E,isOpen:wt,activeDiscussIndex:z,onChange:At,setIsOpen:Et}),overlayStyle:{maxWidth:600}},Ft.createElement("a",{title:wt?"\u5173\u95ED\u63A8\u8350":"\u6253\u5F00\u63A8\u8350",onClick:()=>Et(!wt)},Ft.createElement("i",{className:"iconfont icon-dianzan11"})))}),Ft.createElement("a",{onClick:_t,className:"btn-send"},"\u53D1\u9001"))};const lt=E=>{const[z,ot]=(0,Ft.useState)(!1),[it,at]=(0,Ft.useState)([]),[ut,wt]=(0,Ft.useState)(1);(0,Ft.useEffect)(()=>{E!=null&&E.isOpen?Et():(wt(1),at([]))},[E==null?void 0:E.isOpen]);const Et=()=>ft(void 0,null,function*(){ot(!0);const At=yield(0,xt.ZP)(`/api/discusses/${E==null?void 0:E.id}/recommend_answer.json`,{method:"get"});(At==null?void 0:At.status)==0&&at(At==null?void 0:At.answer),ot(!1)});return Ft.createElement(kt.Z,{spinning:z},Ft.createElement("div",{style:{color:"#000"}},Ft.createElement(dt.Z,{className:"font14",style:{maxHeight:500,overflow:"auto"},value:(it==null?void 0:it[ut-1])||""}),Ft.createElement(Ct.Z,{justify:"end",align:"middle"},Ft.createElement(St.Z,null,Ft.createElement(pt.Z,{simple:!0,current:ut,pageSize:1,total:(it==null?void 0:it.length)||0,onChange:At=>{wt(At)}})),Ft.createElement(St.Z,null,Ft.createElement(vt.ZP,{onClick:()=>ft(void 0,null,function*(){E==null||E.onChange(it==null?void 0:it[ut-1]),E==null||E.setIsOpen(!1)})},"\u586B\u5165\u6587\u672C\u6846")))))}},37518:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{CP:function(){return rt},_V:function(){return St}});var Ft=Rt(28209),ie=Rt.n(Ft);const rt={secret:Ft.enc.Utf8.parse("0a18e199b87f1a8d"),iv:Ft.enc.Utf8.parse("6e7b11a2d8475a3c"),recordScreen1:"8Cl7udD6KTt8HPYOZOopZQ==",recordScreen2:"2OizCBkuJOsBhw8rNenXhYCv3XTIsgM5YB4rOmXz7tSksBaXYYyAirzxs7TSR1vRsyWPVAt4owje5yiTfFsxAA==",recordScreen3:"neJjLaAaeW/dFCOx/cRGopZHNvjZTB0x8p9/TcYCsAGn0mWINwybT7VQlqzmJ55DjVgOrmi/iclg/G6uBGjm/Q==",recordScreen4:"SGYXWA9MzSO+02aOU0lf0g==",recordScreen5:"oCICX8dGCYMnb+4d1CTCTQ==",recordScreen6:"5MlFeP+Uwb/T5ADmGmB6NpaUgOJy3MlJ4WpA38wds8U=",recordScreen7:"TEQF1ezPIxvVVMQNJ08HIiHpj1mXdcVt5qmr6+ALw8Y=",recordScreen8:"9a9QOkgLXlgDq14d3ZEWzA==",recordScreen9:"O0prHhH+rDoUVnpw8acqwRQvRL7fh32v1bLyv4qv71U=",recordScreen10:"nfkbhFR34HkBQLpjlbNkk3FgEdBomIsnFLVgHA1RZVBeN/H3vWJpt0re6w4cjtaKmIkNgpJhxaFgyEkcJ7Z99GCAgC0CgxaaXNQNiDmz2MygiesZVZ9laQvHFQhZehEEaFKUozvNVQMkRw0MV0eoPg==",recordScreen11:"jarJWElZmu7HFZnjOTPwNx44FImKQVf8Bx2Jrm74G44=",recordScreen12:"e7Q/zr1KcI3oVpnQ3JeDgA==",recordScreen13:"pm38jjAC3l2p/JR8E3kDWg==",recordScreen14:"/mTQurqh9htD7+PNrTooMJgdPOE914grpIKomFnikk8=",recordScreen15:"bEPsKA+wwGyQEDShAMuQmQ==",recordScreen16:"uitMDSXWhi/tOOfbtHNmyNh8e9PCLJ0naA02kzBCOD/mdg+1g9ScswIEDpdHuE1l",recordScreen17:"4+bY5u3lx+VxRA/PjP/r3Tl9C0SmKM8CRtCpmkAJq+M=",recordScreen18:"L3Tz5XdvbIAqzHw/XxJnmrx8R+v3cPrYaho0/yDug6M=",recordScreen19:"bo+SiWR7f4uhJXP1wk3oQxBEFmQdbpZPV1in12O3jaj14CuNU2kP2g2MKMTFmRqE12Di4jS3RKzRI14yWpi6Zw==",recordScreen20:"9zp6SENXwO+8GNr4+g+xIzt6s/Gf38ukabRJjhQhQoY=",recordScreen21:"9zp6SENXwO+8GNr4+g+xIy36f4lSwnfFtW0weuO6Gj8=",recordScreen22:"JrbzlyV7pBS7Yw/W1geouw==",recordScreen23:"HBRPVLqnAH9kbzQ7clr8JsTgjT3nCOaP6D+q1lrMX0T6z7vU1Nh5XljgB+Qw/Hs8",recordScreen24:"bq3vruZCtCaGLs7egAWDrgXjmyW8iQX5L+nEwqCeguM=",recordScreen25:"CjveXk9FHEWiBbhwyVRzPQ==",recordScreen26:"FxZnr4aTDDJTcRMUEb3SfA==",answer1:"YXOzThjf+mcj1OALSFqA8A==",answer2:"iyOS4uLz85NAsAWdMjWs6A==",answer3:"cnZErv6FfE02OBkLzlWAeDAW3+ysEYfgoPhcC707e9kJN3PHMP7E05NC7nRf5ESWhemykQ0Y+JYQAd1PGsIJVIZFsA7OlceUwyOfid7oTeg=",answer4:"xXjNeCMbPG5xznAfVbSmjvHn/2xVBArzvsRXJZVk7yY=",answer5:"8Cl7udD6KTt8HPYOZOopZQ==",answer6:"r4qWdIzOZoUDAHIC6Rkiz3KJVZoKCNj9MmeR76VANv90Zyj57hrKtRcOipt3SZUPfZlt17GKyBf504lj5ROxVg==",answer7:"t1d0b8j3bdsJoH9adhzqOQ==",answer8:"0TBptfONacS/9JDvt/q9BO9S0+Jv0m1glMCiAQweO4E=",answer9:"2DA7p8Fws9TWo+O5djurjrORgQjZjMrKtuIbjfCoAI8ZpLy4+sq9PFZuua40lLxjTVb7vhKqm6exT5/R19YdjnUTh6Kyt+6Px8xr6JnEHVw=",answer10:"xcjM1HNI8s6ckETto63Gq83vw68ATty2i534hkfjKAa+izWStVVH5fvCEpQxd8rYYki3IW9Qy0NU8cLJsHQXWOsYtYD70yB44qG5j3fnlDahQUcsDWEBXzx2NlAp6x5R",answer11:"0/t7yKZD1CFg6kerAPJksqJATDsJMtkB06datFVfwac=",answer12:"SJ4yd9DEs9YHnGhybPplEg=="},kt={exam:rt};function Ct(pt="",vt="exam"){const{secret:yt,iv:xt}=kt[vt];return AES.encrypt(pt,yt,{iv:xt,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7}).toString()}function St(pt="",vt="exam"){const{secret:yt,iv:xt}=kt[vt];return Ft.AES.decrypt(pt,yt,{iv:xt,mode:ie().mode.CBC,padding:ie().pad.Pkcs7}).toString(Ft.enc.Utf8)}},4901:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{BU:function(){return ie},Dj:function(){return Ft},gH:function(){return rt},vp:function(){return kt}});function Ft(Ct){try{Ct.mozRequestFullScreen?Ct.mozRequestFullScreen():Ct.webkitRequestFullScreen&&Ct.webkitRequestFullScreen()}catch(St){console.log(St,":e")}}function ie(){window.top.document.webkitExitFullscreen?window.top.document.webkitExitFullscreen():document.exitFullscreen?window.top.document.exitFullscreen():document.msExitFullscreen?window.top.document.msExitFullscreen():document.mozCancelFullScreen&&window.top.document.mozCancelFullScreen()}const rt=()=>{if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function kt(){var Ct=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,St=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",Ct),window.isFullScreen?window.isFullScreen:Ct!=null}},83312:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{U:function(){return yt}});var Ft=Rt(59301),ie=Object.defineProperty,rt=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,St=(xt,dt,ft)=>dt in xt?ie(xt,dt,{enumerable:!0,configurable:!0,writable:!0,value:ft}):xt[dt]=ft,pt=(xt,dt)=>{for(var ft in dt||(dt={}))kt.call(dt,ft)&&St(xt,ft,dt[ft]);if(rt)for(var ft of rt(dt))Ct.call(dt,ft)&&St(xt,ft,dt[ft]);return xt},vt=(xt,dt,ft)=>new Promise((ct,lt)=>{var E=it=>{try{ot(ft.next(it))}catch(at){lt(at)}},z=it=>{try{ot(ft.throw(it))}catch(at){lt(at)}},ot=it=>it.done?ct(it.value):Promise.resolve(it.value).then(E,z);ot((ft=ft.apply(xt,dt)).next())});function yt(xt,dt){const[ft,ct]=(0,Ft.useState)(dt),[lt,E]=(0,Ft.useState)(!1),[z,ot]=(0,Ft.useState)();return[ft,lt,(at,ut=!1)=>vt(this,null,function*(){const wt=ut?dt:pt(pt({},ft),at);E(!0),ct(wt);const Et=yield xt(wt);return E(!1),ot(Et),Et}),z,ot]}},85219:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{_:function(){return rt}});var Ft=Rt(59301),ie=Rt(43418);const rt=kt=>{var Ct,St;const pt=(0,Ft.useRef)([]),vt=()=>{for(const yt of pt.current)clearTimeout(yt);pt.current=[]};return(0,Ft.useEffect)(()=>{var yt,xt,dt,ft,ct,lt;if(vt(),(yt=kt==null?void 0:kt.exercise)!=null&&yt.left_time&&((dt=(xt=kt==null?void 0:kt.exercise)==null?void 0:xt.exercise_events)==null?void 0:dt.length)>0){for(const E of(ft=kt==null?void 0:kt.exercise)==null?void 0:ft.exercise_events)if(((ct=kt==null?void 0:kt.exercise)==null?void 0:ct.left_time)>(E==null?void 0:E.reminder_time)*60){let z=(((lt=kt==null?void 0:kt.exercise)==null?void 0:lt.left_time)-(E==null?void 0:E.reminder_time)*60)*1e3;z=z>2147483647?2147483647:z;const ot=setTimeout(()=>{ie.default.info({content:`${E==null?void 0:E.reminder_content}`,icon:null,title:"\u63D0\u793A",centered:!0,okText:"\u77E5\u9053\u4E86"})},z);pt.current.push(ot)}}},[(Ct=kt==null?void 0:kt.exercise)==null?void 0:Ct.left_time,(St=kt==null?void 0:kt.exercise)==null?void 0:St.exercise_events]),vt}},24768:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{AL:function(){return wt},Iy:function(){return dt},Qv:function(){return lt},ez:function(){return ut},jb:function(){return ft}});var Ft=Rt(32834),ie=Rt.n(Ft),rt=Rt(11690),kt=Rt.n(rt);let Ct=1;function St(jt,Lt){const It=jt.match(/^(\s+)(?:```)/);if(It===null)return Lt;const Ut=It[1];return Lt.split(` -`).map(Xt=>{const Gt=Xt.match(/^\s+/);if(Gt===null)return Xt;const[Yt]=Gt;return Yt.length>=Ut.length?Xt.slice(Ut.length):Xt}).join(` -`)}let pt=[],vt=["
    "];const yt=new(ie()).Renderer,xt=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function dt(){pt.length=0,vt=["
      "]}const ft={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function ct(jt,Lt,It,Ut){if(Lt>=jt.length||jt[Lt].level<=It)return Lt;var Xt=jt[Lt];Ut.push("
    • "+Xt.text+""),Lt++;var Gt=[];return Lt=ct(jt,Lt,Xt.level,Gt),Gt.length>0&&(Ut.push("
        "),Gt.forEach(function(Yt){Ut.push(Yt)}),Ut.push("
      ")),Ut.push("
    • "),Lt=ct(jt,Lt,It,Ut),Lt}function lt(){return ct(pt,0,0,vt),vt.push("
    "),vt.join("")}const E={heading(jt){const Lt=xt.exec(jt);if(Ct+=1,Lt)return{type:"heading",raw:Lt[0],depth:Lt[1].length,text:Lt[2]}},fences(jt){const Lt=this.rules.block.fences.exec(jt);if(Lt){const It=Lt[0];let Ut=St(It,Lt[3]||"");const Xt=Lt[2]?Lt[2].trim():Lt[2];if(["latex","katex","math"].indexOf(Xt)>=0){const Gt=it(),Yt=Ut;Ut=Gt,at[Gt]={type:"block",expression:Yt}}return{type:"code",raw:It,lang:Xt,text:Ut}}}},z=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ot=0;const it=()=>`__special_katext_id_${ot++}__`;let at={};function ut(){return at}function wt(){ot=0,at={}}function Et(jt){return jt=jt.replace(z,(Lt,It)=>{const Ut=it();return at[Ut]={type:"inline",expression:It},Ut}),jt}const At=yt.listitem;yt.listitem=function(jt){return At(Et(jt))};const _t=yt.paragraph;yt.paragraph=function(jt){return _t(Et(jt))};const Mt=yt.tablecell;yt.tablecell=function(jt,Lt){return Mt(Et(jt),Lt)},yt.code=function(jt,Lt,It){const Ut=(Lt||"").match(/\S*/)[0];return Ut?["latex","katex","math"].indexOf(Ut)>=0?`

    ${jt}

    `:`
    ${It?jt:(0,rt.escape)(jt,!0)}
    +`)}]};var vt=Rt(53184),yt=Rt.n(vt),xt=Object.defineProperty,dt=Object.defineProperties,ft=Object.getOwnPropertyDescriptors,ct=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=($t,he,ye)=>he in $t?xt($t,he,{enumerable:!0,configurable:!0,writable:!0,value:ye}):$t[he]=ye,ot=($t,he)=>{for(var ye in he||(he={}))lt.call(he,ye)&&z($t,ye,he[ye]);if(ct)for(var ye of ct(he))E.call(he,ye)&&z($t,ye,he[ye]);return $t},it=($t,he)=>dt($t,ft(he)),at=($t,he,ye)=>new Promise((Qt,Wt)=>{var Bt=Jt=>{try{me(ye.next(Jt))}catch(Ie){Wt(Ie)}},te=Jt=>{try{me(ye.throw(Jt))}catch(Ie){Wt(Ie)}},me=Jt=>Jt.done?Qt(Jt.value):Promise.resolve(Jt.value).then(Bt,te);me((ye=ye.apply($t,he)).next())});const ut={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"]}},wt=($t,he)=>he.map(ye=>({label:ye,kind:$t.languages.CompletionItemKind.Keyword,insertText:ye})),Et=$t=>Object.keys(ut.tables).map(he=>({label:he,kind:$t.languages.CompletionItemKind.Variable,insertText:he})),At=($t,he)=>{const ye=ut.tables[$t];return ye?ye.map(Qt=>({label:Qt,kind:he.languages.CompletionItemKind.Field,insertText:Qt})):[]};function _t($t,he,ye,Qt,Wt){let Bt=he.getWordUntilPosition(ye),te={startLineNumber:ye.lineNumber,endLineNumber:ye.lineNumber,startColumn:Bt.startColumn,endColumn:Bt.endColumn},me=Qt.map(Jt=>({label:Jt,kind:$t.languages.CompletionItemKind.Keyword,insertText:Jt,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:te}));return Wt.map(Jt=>{me.push(it(ot({},Jt),{range:te}))}),me}var Mt=$t=>{ut.languages.map(Wt=>($t.languages.registerDocumentFormattingEditProvider(Wt,{provideDocumentFormattingEdits(Bt,te,me){return at(this,null,function*(){const Jt=yt()(Bt.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:Bt.getFullModelRange(),text:Jt}]})}}),Wt));const he=Ct.quickKey.map(Wt=>({label:Wt.label,kind:$t.languages.CompletionItemKind.Method,insertText:Wt.content,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet})),ye=St.quickKey.map(Wt=>({label:Wt.label,kind:$t.languages.CompletionItemKind.Method,insertText:Wt.content,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Qt=kt.quickKey.map(Wt=>({label:Wt.label,kind:$t.languages.CompletionItemKind.Method,insertText:Wt.content,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet}));$t.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Wt,Bt){var te=Wt.getWordUntilPosition(Bt),me={startLineNumber:Bt.lineNumber,endLineNumber:Bt.lineNumber,startColumn:te.startColumn,endColumn:te.endColumn},Jt=Wt.getLineContent(Bt.lineNumber).substring(te.startColumn-2,te.endColumn);return{suggestions:[...Ct.keywords.map(Ie=>({label:Ie,kind:$t.languages.CompletionItemKind.Function,documentation:Ie,insertText:Ie,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:me})),...Ct.quickKey.map(Ie=>({label:Ie.label,kind:$t.languages.CompletionItemKind.Function,documentation:Ie.content,insertText:Jt.startsWith("#")?Ie.content.replace(/#/,""):Ie.content,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:me}))]}}}),$t.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Wt,Bt){var te=Wt.getWordUntilPosition(Bt),me={startLineNumber:Bt.lineNumber,endLineNumber:Bt.lineNumber,startColumn:te.startColumn,endColumn:te.endColumn};return{suggestions:[...rt.keywords.map(Jt=>({label:Jt,kind:$t.languages.CompletionItemKind.Function,documentation:Jt,insertText:Jt,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:me}))]}}}),$t.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Wt,Bt){var te=Wt.getWordUntilPosition(Bt),me={startLineNumber:Bt.lineNumber,endLineNumber:Bt.lineNumber,startColumn:te.startColumn,endColumn:te.endColumn},Jt=Wt.getLineContent(Bt.lineNumber).substring(te.startColumn-2,te.endColumn);return{suggestions:[...kt.keywords.map(Ie=>({label:Ie,kind:$t.languages.CompletionItemKind.Function,documentation:Ie,insertText:Ie,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:me})),...kt.quickKey.map(Ie=>({label:Ie.label,kind:$t.languages.CompletionItemKind.Function,documentation:Ie.content,insertText:Jt.startsWith("#")?Ie.content.replace(/#/,""):Ie.content,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:me}))]}}}),$t.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Wt,Bt){var te=Wt.getWordUntilPosition(Bt),me={startLineNumber:Bt.lineNumber,endLineNumber:Bt.lineNumber,startColumn:te.startColumn,endColumn:te.endColumn},Jt=Wt.getLineContent(Bt.lineNumber).substring(te.startColumn-2,te.endColumn);return{suggestions:[...pt.keywords.map(Ie=>({label:Ie,kind:$t.languages.CompletionItemKind.Function,documentation:Ie,insertText:Ie,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:me})),...pt.quickKey.map(Ie=>({label:Ie.label,kind:$t.languages.CompletionItemKind.Function,documentation:Ie.content,insertText:Jt.startsWith("#")?Ie.content.replace(/#/,""):Ie.content,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:me}))]}}}),$t.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Wt,Bt){var te=Wt.getWordUntilPosition(Bt),me={startLineNumber:Bt.lineNumber,endLineNumber:Bt.lineNumber,startColumn:te.startColumn,endColumn:te.endColumn},Jt=Wt.getLineContent(Bt.lineNumber).substring(te.startColumn-2,te.endColumn);return{suggestions:[...St.keywords.map(Ie=>({label:Ie,kind:$t.languages.CompletionItemKind.Function,documentation:Ie,insertText:Ie,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:me})),...St.quickKey.map(Ie=>({label:Ie.label,kind:$t.languages.CompletionItemKind.Function,documentation:Ie.content,insertText:Jt.startsWith("#")?Ie.content.replace(/#/,""):Ie.content,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:me}))]}}})};const jt="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Lt=Object.defineProperty,It=($t,he,ye)=>he in $t?Lt($t,he,{enumerable:!0,configurable:!0,writable:!0,value:ye}):$t[he]=ye,Ut=($t,he,ye)=>It($t,typeof he!="symbol"?he+"":he,ye);const Xt=class mw{constructor(he,ye,Qt){this.placeholder=he,this.editor=ye,this.monaco=Qt,ye.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return mw.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)}};Ut(Xt,"ID","editor.widget.placeholderHint");var Vt=Xt,Ht=Rt(96236),ne=Rt(8591),se=Rt(6848),ve=Rt(89392),Kt=Rt(34604),re=Rt(56102),we=Object.defineProperty,ke=Object.defineProperties,Me=Object.getOwnPropertyDescriptors,ge=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,_e=($t,he,ye)=>he in $t?we($t,he,{enumerable:!0,configurable:!0,writable:!0,value:ye}):$t[he]=ye,Oe=($t,he)=>{for(var ye in he||(he={}))fe.call(he,ye)&&_e($t,ye,he[ye]);if(ge)for(var ye of ge(he))de.call(he,ye)&&_e($t,ye,he[ye]);return $t},He=($t,he)=>ke($t,Me(he)),Se=($t,he)=>{var ye={};for(var Qt in $t)fe.call($t,Qt)&&he.indexOf(Qt)<0&&(ye[Qt]=$t[Qt]);if($t!=null&&ge)for(var Qt of ge($t))he.indexOf(Qt)<0&&de.call($t,Qt)&&(ye[Qt]=$t[Qt]);return ye},xe=($t,he,ye)=>new Promise((Qt,Wt)=>{var Bt=Jt=>{try{me(ye.next(Jt))}catch(Ie){Wt(Ie)}},te=Jt=>{try{me(ye.throw(Jt))}catch(Ie){Wt(Ie)}},me=Jt=>Jt.done?Qt(Jt.value):Promise.resolve(Jt.value).then(Bt,te);me((ye=ye.apply($t,he)).next())});function le($t){return/^\d+$/.test($t)?`${$t}px`:$t}function Ne(){}let ae=!1;const Ae={"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 Xe($t=[]){let he=$t;if(Array.isArray($t)){for(let ye=0;ye<$t.length;ye++){let Qt=Ae[$t[ye]];if(Qt)return Qt}return he[0]}return Ae[he]||he}let Be=null;var Te=$t=>{var he=$t,{width:ye="100%",height:Qt="100%",value:Wt,language:Bt="javascript",style:te={},options:me={},overrideServices:Jt={},theme:Ie="vs-dark",onEditBlur:Ue,isCopy:Je=!1,onSave:Ze,autoHeight:nn=!1,forbidCopy:fn=!1,onChange:An=Ne,editorDidMount:En=Ne,onFocus:Dn=Ne,onBreakPoint:ii=Ne,breakPointValue:mi=[],filename:Ti="educoder.txt",errorLine:Oi,errorContent:ki="",highlightLine:pi,openBreakPoint:Bi=!1,placeholder:Or=""}=he,yr=Se(he,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder"]);const lr=(0,Ft.useRef)(),Si=(0,Ft.useRef)({}),ee=(0,Ft.useRef)(),Ds=(0,Ft.useRef)(),mr=(0,Ft.useRef)([]),gs=(0,Ft.useRef)(!1),Xs=(0,Ft.useRef)(),Do=(0,Ft.useRef)(),Oo=(0,Ft.useRef)(!1),[Gr,sa]=(0,Ft.useState)(!1);function dn(){let on;return lr.current&&(on=new ie.Z(Cn=>{for(let xi of Cn)(xi.target.offsetHeight>0||xi.target.offsetWidth>0)&&Si.current.instance.layout()}),on.observe(lr.current)),on}function en(){ne.ZP.warning({content:decodeURIComponent(jt),key:"monaco-editor-tip"})}const qe=()=>{let on=Si.current.instance;if(Wt!=null&&on&&Gr){const Cn=on.getModel();Cn&&Wt!==Cn.getValue()&&(ae=!0,Cn.setValue(Wt),on.layout(),ae=!1)}};(0,Ft.useEffect)(()=>{const on=Kt.Z.subscribe("formatDocument",Cn=>{var xi;let Zi=Si.current.instance;(xi=Zi==null?void 0:Zi.getAction)==null||xi.call(Zi,"editor.action.formatDocument").run()});return window.updateMonacoValue=Cn=>{An(Cn)},on},[]),(0,Ft.useEffect)(()=>{var on;let Cn=Si.current.instance;Ds.current&&clearTimeout(Ds.current),Ds.current=setTimeout(()=>{qe()},500),Wt&&(Wt!=null&&Wt.length)&&((on=Cn==null?void 0:Cn.updateOptions)==null||on.call(Cn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Wt.split(/\r\n|\r|\n/g).length))+3,5)}))},[Wt,Gr,Si.current]),(0,Ft.useEffect)(()=>{if(Oi&&Si.current&&Si.current.instance){let Cn=Si.current.instance;Cn.changeViewZones(function(xi){var Zi=document.createElement("div");Zi.style.padding="10px 20px",Zi.style.width="calc(100% - 20px)",Zi.className="my-error-line-wrp",Zi.innerHTML=ki,xi.addZone({afterLineNumber:Oi||11,heightInLines:3,domNode:Zi})});var on={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};Cn.addOverlayWidget(on),Cn.revealPositionInCenter({lineNumber:20,column:1})}},[Oi,Si.current,Gr]);const zn=(on="",Cn)=>{if(!on||on.trim()==="")return!0;const Zi=Si.current.instance.getModel().getLineTokens(Cn);let Wi=!1;for(let oi=0;oi<2;oi++)Zi.getStandardTokenType(oi)===1&&(Wi=!0);return Wi};(0,Ft.useEffect)(()=>{var on;const Cn=(on=Si.current)==null?void 0:on.instance;if(Cn&&Gr&&fn){const xi=Cn.onDidBlurEditorWidget(()=>{Oo.current=!1}),Zi=Cn.onDidFocusEditorText(()=>{Oo.current=!0});return()=>{xi.dispose(),Zi.dispose()}}},[Si.current,Gr,fn]),(0,Ft.useEffect)(()=>{var on;if((on=Si.current)!=null&&on.instance&&Gr&&Bi){let Cn=Si.current.instance,xi=Cn.getModel();if(!xi)return;(()=>{var Mi;let sn=[],On=[];const Qn=xi.getAllDecorations();for(let ei of Qn)ei.options.className==="highlighted-line"&&(sn.push((Mi=ei==null?void 0:ei.range)==null?void 0:Mi.startLineNumber),On.push(ei==null?void 0:ei.id));if(pi===sn[0])return;xi.deltaDecorations(On,[]);const si=xi.getLineCount();pi&&pi<=si&&(Cn.deltaDecorations([],[{range:new Be.Range(pi,1,pi,xi.getLineMaxColumn(pi)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Cn.revealLineInCenter(pi))})();const Wi=(Mi=!1)=>{var sn;let On=[],Qn=[];const si=xi.getAllDecorations();for(let ei of si)ei.options.linesDecorationsClassName==="breakpoints-select"&&(On.push((sn=ei==null?void 0:ei.range)==null?void 0:sn.startLineNumber),Qn.push(ei==null?void 0:ei.id));if(Mi)return{lines:On,ids:Qn};ii(On)},oi=Mi=>xe(void 0,null,function*(){let sn={range:new Be.Range(Mi,1,Mi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield xi.deltaDecorations([],[sn]),Wi()}),ri=Mi=>xe(void 0,null,function*(){let sn=[];const On=Cn.getLineDecorations(Mi);for(let Qn of On)Qn.options.linesDecorationsClassName==="breakpoints-select"&&sn.push(Qn.id);yield xi.deltaDecorations(sn,[]),Wi()}),Zn=Mi=>{let sn=Cn.getLineDecorations(Mi);for(let On of sn)if(On.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,ve.isEqual)(mi,Wi(!0).lines)){xi.deltaDecorations(Wi(!0).ids,[]);const Mi=mi.map(sn=>({range:new Be.Range(sn,1,sn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));xi.deltaDecorations([],Mi)}const ur=Cn.onDidChangeModelContent(Mi=>{let sn=Cn.getPosition();if(sn){let On=sn.lineNumber;clearTimeout(Do.current),Do.current=setTimeout(()=>{zn(xi.getLineContent(On),On)?ri(On):Zn(On)?(ri(On),oi(On)):Wi()},100)}}),Yr=Cn.onMouseDown(Mi=>{var sn,On,Qn;if(Mi.target.detail&&((Qn=(On=(sn=Mi.target)==null?void 0:sn.element)==null?void 0:On.className)!=null&&Qn.includes("line-numbers"))){let si=Mi.target.position.lineNumber;if(zn(xi.getLineContent(si),si))return;Zn(si)?ri(si):oi(si)}}),br=Mi=>{let sn={range:new Be.Range(Mi,1,Mi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};mr.current=Cn.deltaDecorations(mr.current,[sn])},mn=()=>{mr.current=Cn.deltaDecorations(mr.current,[])},er=Cn.onMouseMove(Mi=>{var sn,On,Qn;if(mn(),Mi.target.detail&&((Qn=(On=(sn=Mi.target)==null?void 0:sn.element)==null?void 0:On.className)!=null&&Qn.includes("line-numbers"))){let si=Mi.target.position.lineNumber;if(zn(xi.getLineContent(si),si))return;br(si)}}),cr=Cn.onMouseLeave(()=>{mn()});return()=>{ur.dispose(),Yr.dispose(),er.dispose(),cr.dispose()}}},[Si.current,Gr,mi,pi,Bi,Bt]),(0,Ft.useEffect)(()=>{var on;(on=Si.current)!=null&&on.instance&&Bi&&Si.current.instance.setPosition({lineNumber:0,column:0})},[pi]);function Jn(){let on=Si.current.instance;if(on){const Cn=on.getSelection(),xi=Si.current.pastePos||{},Zi=new Be.Range(xi.startLineNumber||Cn.endLineNumber,xi.startColumn||Cn.endColumn,xi.endLineNumber||Cn.endLineNumber,xi.endColumn||Cn.endColumn);setTimeout(()=>{on.executeEdits("",[{range:Zi,text:""}])},300)}}function hi(on){(window.navigator.platform.match("Mac")?on.metaKey:on.ctrlKey)&&on.keyCode==83&&(on.preventDefault(),Ze())}const bn=()=>{if(nn&&Si.current.instance){const on=Si.current.instance.getContentHeight();ti(on{if(!Oo.current)return;const{keyCode:Cn,ctrlKey:xi,metaKey:Zi,target:Wi,type:oi}=on;return(oi==="paste"||(Cn===67||Cn===86)&&(Zi||xi))&&Wi.nodeName==="TEXTAREA"&&(en(),on.preventDefault()),!1};function dr(on,Cn){var xi=window.URL||window.webkitURL||window,Zi=new Blob([Cn]),Wi=document.createElementNS("http://www.w3.org/1999/xhtml","a");Wi.href=xi.createObjectURL(Zi),Wi.download=on,Bn(Wi)}(0,Ft.useEffect)(()=>{bn()},[bn]),(0,Ft.useEffect)(()=>{lr.current&&!Gr&&Promise.all([Rt.e(8909),Rt.e(3267)]).then(Rt.bind(Rt,71448)).then(on=>{try{Be=on,Si.current.instance=Be.editor.create(lr.current,{value:Wt,language:Xe(Bt),theme:Ie,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Jt);const Cn=Si.current.instance;let Wi=[...Ht.BH._menuItems].find(ur=>ur[0]._debugName=="EditorContext")[1],oi=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],ri=(ur,Yr)=>{var br,mn;let er=ur._first;do Yr.includes((mn=(br=er.element)==null?void 0:br.command)==null?void 0:mn.id)&&ur._remove(er);while(er=er.next)};if(En(Cn,Be),setTimeout(()=>{bn(),Si.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{dr(Ti||"educoder.txt",Cn.getValue())}})},500),Si.current.subscription=Cn.onDidChangeModelContent(ur=>{gs.current?clearTimeout(Xs.current):(bn(),An(Cn.getValue(),ur)),Xs.current=setTimeout(()=>{gs.current=!1},500)}),window.Monaco||Mt(Be,Xe(Bt)),fn&&(ri(Wi,oi),lr.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Xi),window.removeEventListener("paste",Xi),window.addEventListener("keydown",Xi),window.addEventListener("paste",Xi)),window.Monaco=Be,Ue&&Cn.onDidBlurEditorWidget(()=>{Ue(Cn.getValue())}),Dn&&Cn.onDidFocusEditorText(()=>{Dn(Cn.getValue())}),fn)try{Cn.onDidPaste(ur=>{const Yr=Cn.getSelection(),br=Si.current.pastePos||{},mn=new Be.Range(br.startLineNumber||Yr.endLineNumber,br.startColumn||Yr.endColumn,br.endLineNumber||Yr.endLineNumber,br.endColumn||Yr.endColumn);Cn.executeEdits("",[{range:ur.range,text:""}])})}catch(ur){}let Zn=dn();return Or&&typeof Or=="string"&&new Vt(Or,Cn,Be),sa(!0),()=>{const ur=Si.current.instance;ur.dispose();const Yr=ur.getModel();Yr&&Yr.dispose(),Si.current.subscription&&Si.current.subscription.dispose(),Zn.unobserve(lr.current)}}catch(Cn){}})},[]),(0,Ft.useEffect)(()=>{if(Si.current.instance&&Gr)return document.addEventListener("keydown",hi,!1),()=>{document.removeEventListener("keydown",hi)}},[Ze,Gr]),(0,Ft.useEffect)(()=>{let on=Si.current.instance;if(on&&Gr){let Cn=Xe(Bt);Be.editor.setModelLanguage(on.getModel(),Cn)}},[Bt,Gr]),(0,Ft.useEffect)(()=>{Si.current.instance&&Gr&&Be.editor.setTheme(Ie)},[Ie,Gr]),(0,Ft.useEffect)(()=>{let on=Si.current.instance;ee.current=me,on&&Gr&&(on.updateOptions(Oe({},me)),setTimeout(()=>{on.getModel().updateOptions(Oe({},me))},200))},[JSON.stringify(me),Gr]),(0,Ft.useEffect)(()=>{let on=Si.current.instance;on&&Gr&&on.layout()},[ye,Qt,Gr]);const[ir,We]=(0,Ft.useState)(le(ye)),[Nn,ti]=(0,Ft.useState)(le(Qt)),pr=He(Oe({},te),{width:ir,height:Nn,position:"relative"});return Ft.createElement("div",{className:"my-monaco-editor",ref:lr,style:pr},Je&&Ft.createElement(re.CopyToClipboard,{text:Wt,onCopy:()=>ne.ZP.success("\u590D\u5236\u6210\u529F")},Ft.createElement(se.Z,{title:"\u590D\u5236\u4EE3\u7801"},Ft.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},Ft.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function ue({width:$t="100%",height:he="100%",original:ye,modified:Qt,language:Wt,options:Bt={}}){const te=(0,Ft.useRef)(),[me,Jt]=(0,Ft.useState)(null);function Ie(nn){let fn;return te.current&&(fn=new ie.Z(An=>{for(let En of An)(En.target.offsetHeight>0||En.target.offsetWidth>0)&&nn.layout()}),fn.observe(te.current)),fn}(0,Ft.useEffect)(()=>(te.current&&Promise.all([Rt.e(8909),Rt.e(9404)]).then(Rt.bind(Rt,2550)).then(nn=>{Be=nn;const fn=Be.editor.createDiffEditor(te.current,He(Oe({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},Bt),{wordWrap:!0}));Jt(fn);let An=Ie(fn);return()=>{fn.dispose();const En=fn.getModel();En&&En.dispose(),An.unobserve(te.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,Ft.useEffect)(()=>{me&&me.setModel({original:Be.editor.createModel(ye,Wt),modified:Be.editor.createModel(Qt,Wt)})},[ye,Qt,Wt,me]);const Ue=le($t),Je=le(he),Ze={width:Ue,height:Je};return Ft.createElement("div",{className:"my-diff-editor",ref:te,style:Ze})}},16869:function(tn,Ke,Rt){"use strict";var Ft=Rt(38476),ie=Rt(57809),rt=Rt(78673),kt=Rt(59301);const Ct=ie.default.Option;Ke.Z=({isTheoretical:St,onFontSizeChange:pt,cmFontSize:vt,cmCodeMode:yt,autoFormat:xt,onCodeModeChange:dt,onTabToSpace:ft,onAutoFormat:ct,formatDocument:lt,className:E="",tabToSpace:z,children:ot,code_editor:it,challenge:at})=>{const ut={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"};return kt.createElement("div",{className:`tpi-code-setting ${E}`},kt.createElement("h3",null,"\u4EE3\u7801\u683C\u5F0F"),kt.createElement("section",null,kt.createElement("div",{className:"file-item"},kt.createElement("b",null,"\u663E\u793A\u6A21\u5F0F"),kt.createElement(ie.default,{bordered:!1,size:"small",value:yt,onChange:dt},kt.createElement(Ct,{value:"vs"},"\u767D\u8272\u80CC\u666F"),kt.createElement(Ct,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),!St&&kt.createElement(kt.Fragment,null,kt.createElement("div",{className:"file-item"},kt.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),kt.createElement(ie.default,{bordered:!1,size:"small",value:vt,onChange:pt},kt.createElement(Ct,{value:12},"12px"),kt.createElement(Ct,{value:14},"14px"),kt.createElement(Ct,{value:16},"16px"),kt.createElement(Ct,{value:18},"18px"),kt.createElement(Ct,{value:20},"20px"),kt.createElement(Ct,{value:22},"22px"))),kt.createElement("div",{className:"file-item"},kt.createElement("b",null,"Tab\u8F6C\u6362"),kt.createElement(rt.Z,{checked:z,onChange:ft})),kt.createElement("div",{className:"file-item",onClick:lt},kt.createElement("b",{style:{cursor:"pointer"}},"\u683C\u5F0F\u5316\u4EE3\u7801")))),!St&&kt.createElement(kt.Fragment,null,kt.createElement("h3",null,"\u5FEB\u6377\u952E"),kt.createElement("section",null,kt.createElement("div",{className:"file-item"},kt.createElement("b",null,"\u4FDD\u5B58\u4EE3\u7801"),kt.createElement("span",null,"Ctrl + S")),kt.createElement("div",{className:"file-item"},kt.createElement("b",null,"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"),kt.createElement("span",null,"F1 / Alt + F1")),kt.createElement("div",{className:"file-item"},kt.createElement("b",null,"\u5DE6\u53F3\u7F29\u8FDB"),kt.createElement("span",null,"Ctrl + ]/[")),kt.createElement("div",{className:"file-item"},kt.createElement("b",null,"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"),kt.createElement("span",null,"Ctrl + Shift + \\")),kt.createElement("div",{className:"file-item"},kt.createElement("b",null,"\u8F6C\u5230\u884C\u9996"),kt.createElement("span",null,"Home")),kt.createElement("div",{className:"file-item"},kt.createElement("b",null,"\u8F6C\u5230\u884C\u5C3E"),kt.createElement("span",null,"End"))),ot),!St&&kt.createElement(kt.Fragment,null,kt.createElement("h3",null,"\u5FEB\u6377\u952E"),kt.createElement("section",null,kt.createElement("div",{className:"file-item"},kt.createElement("b",null,"\u5B9E\u8BAD\u96BE\u6613\u5EA6"),kt.createElement("span",null,ut[at==null?void 0:at.difficulty])),kt.createElement("div",{className:"file-item"},kt.createElement("b",null,"\u5B9E\u9A8C\u73AF\u5883"),kt.createElement("span",null,it==null?void 0:it.name)),kt.createElement("div",{className:"file-item"},kt.createElement("b",null,"\u5B9E\u9A8C\u5BB9\u5668\u7F51\u7EDC"),kt.createElement("span",null,it!=null&&it.close_internet?"\u5173\u95ED\u5916\u7F51":"\u5F00\u542F\u5916\u7F51")))))}},58856:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return ie}});var Ft=Rt(59301);function ie(rt,kt){const Ct=(0,Ft.useRef)();(0,Ft.useEffect)(()=>{Ct.current=rt}),(0,Ft.useEffect)(()=>{function St(){Ct.current()}if(kt!==null){let pt=setInterval(St,kt);return()=>clearInterval(pt)}},[kt])}},31947:function(tn,Ke,Rt){"use strict";var Ft=Rt(59301),ie=Rt(31797),rt=Rt(5871),kt=Rt(78241),Ct=Rt(43418),St=Rt(71418),pt=Rt(1710),vt=Rt(92832),yt=Rt(95237),xt=Rt(43604),dt=Rt(3113),ft=Rt(94941),ct=Rt(61186),lt=Rt.n(ct),E=Rt(89070),z=Rt(955),ot=Rt(16209),it=Rt(24065),at=Rt(83312),ut=Rt(59301),wt=(Mt,jt,Lt)=>new Promise((It,Ut)=>{var Xt=Ht=>{try{Vt(Lt.next(Ht))}catch(ne){Ut(ne)}},Gt=Ht=>{try{Vt(Lt.throw(Ht))}catch(ne){Ut(ne)}},Vt=Ht=>Ht.done?It(Ht.value):Promise.resolve(Ht.value).then(Xt,Gt);Vt((Lt=Lt.apply(Mt,jt)).next())});const{Countdown:Et}=ie.default,At=({value:Mt,onChange:jt,MaxMinutes:Lt})=>ut.createElement(ut.Fragment,null,ut.createElement("div",{className:"p10 mb20",style:{background:"#F6F7F9"}},"1.\u53EA\u6709\u5F53\u8003\u8BD5\u622A\u6B62\u65F6\u95F4\u665A\u4E8E\u5B66\u751F\u7684\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\u65F6\uFF0C\u624D\u652F\u6301\u5BF9\u5B66\u751F\u8FDB\u884C\u5EF6\u65F6\u64CD\u4F5C\uFF1B",ut.createElement("br",null),"2.\u6BCF\u4E2A\u5B66\u751F\u7684\u6700\u5927\u53EF\u5EF6\u65F6\u65F6\u95F4=\u8003\u8BD5\u622A\u6B62\u65F6\u95F4-\u5B66\u751F\u5F53\u524D\u7684\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\u3002",ut.createElement("br",null)),ut.createElement(rt.Z,{value:Mt,onChange:jt,min:0,precision:0,max:Lt,style:{width:"100%"},placeholder:`\u6700\u5927\u53EF\u5EF6\u957F\u65F6\u95F4\u4E3A${Lt}\u5206\u949F\uFF0C\u5728\u5B66\u751F\u5269\u4F59\u65F6\u95F4\u57FA\u7840\u4E0A\u5EF6\u65F6`,addonAfter:"\u5206\u949F"})),_t=({exercise:Mt,successCb:jt,dispatch:Lt})=>{var It,Ut,Xt,Gt;const Vt=(0,E.useParams)(),[Ht]=kt.default.useForm(),ne=kt.default.useWatch("time",Ht),[se,ve]=(0,Ft.useState)(!1),Kt=(0,Ft.useRef)(),{actionTabs:re}=Mt,[we,ke]=(0,Ft.useState)(),[,Me,ge,fe]=(0,at.U)(ft.n7,{id:Vt.categoryId}),[,de,_e]=(0,at.U)(ft.Cd,{});(0,Ft.useEffect)(()=>{Mt.actionTabs.key==="student-unlock"&&(ve(!1),Ht.resetFields())},[Mt.actionTabs.key]);const Oe=()=>new Promise(Be=>wt(void 0,null,function*(){var Te,ue;return Kt.current=yield(0,ot.y)({ip_limit:(Te=re==null?void 0:re.exerciseParams)==null?void 0:Te.ip_limit,ip_bind:(ue=re==null?void 0:re.exerciseParams)==null?void 0:ue.ip_bind_type}),Be()})),He=()=>wt(void 0,null,function*(){var Be,Te,ue,$t,he;yield Ht.validateFields();const ye=Ht.getFieldsValue();if(ve(!0),(((Be=re==null?void 0:re.exerciseParams)==null?void 0:Be.ip_limit)!=="no"||(Te=re==null?void 0:re.exerciseParams)!=null&&Te.ip_bind_type)&&(yield Oe()),(yield(0,ft.ZD)((ue=re==null?void 0:re.exerciseParams)==null?void 0:ue.id,{exercise_user_id:($t=re==null?void 0:re.exerciseParams)==null?void 0:$t.exercise_user_id,unlock_key:ye.unlock_key,time:ye.time,ip:Kt.current})).status===0){if(jt){Lt({type:"exercise/setActionTabs",payload:{}}),jt();return}const Wt=re==null?void 0:re.exerciseParams;(0,z.nr)({inner_ip:Wt.inner_ip,public_ip:Wt.public_ip,open_camera:Wt.open_camera,ip_limit:Wt.ip_limit,ip_bind:Wt.ip_bind,ip_bind_type:Wt.ip_bind_type,exercise_tips:Wt.exercise_tips,exerciseId:Wt.id,screen_open:Wt.screen_open,screen_num:Wt.screen_num,screen_sec:Wt.screen_sec,coursesId:Vt.coursesId,login:(he=(0,it.eY)())==null?void 0:he.login,history,identity_verify:Wt.identity_verify,open_phone_video_recording:Wt.open_phone_video_recording,current_status:Wt.current_status}),Lt({type:"exercise/setActionTabs",payload:{}})}ve(!1)}),Se=[{title:"IP\u5730\u5740",dataIndex:"ip",key:"ip",render:Be=>ut.createElement("span",{className:Be.indexOf("\u5F02\u5E38")>-1?"c-red":"c-green"},Be)},{title:"\u6D4F\u89C8\u5668",dataIndex:"browser",key:"browser",render:Be=>ut.createElement("span",{className:Be.indexOf("\u5F02\u5E38")>-1?"c-red":"c-green"},Be)},{title:"\u4E0A\u6B21\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_time",key:"last_login_time"}],xe=((It=re==null?void 0:re.exerciseParams)==null?void 0:It.errorMessage)&&typeof((Ut=re==null?void 0:re.exerciseParams)==null?void 0:Ut.errorMessage)=="object";(0,Ft.useEffect)(()=>{Mt.actionTabs.key==="student-unlock"&&wt(void 0,null,function*(){const Be=yield _e(Vt);yield ge({}),Be.status||ke(Be)})},[Mt.actionTabs.key]);const{time:le,end_time:Ne}=(we==null?void 0:we.exercise)||{},ae=fe!=null&&fe.user_end_time?lt()(fe==null?void 0:fe.user_end_time).add(1,"minutes"):lt()(),Ae=lt()(fe==null?void 0:fe.user_total_end_time)>ae?Math.round(lt().duration(lt()(fe==null?void 0:fe.user_total_end_time).diff(ae.startOf("minute"))).asMinutes()):0,Xe=((fe==null?void 0:fe.student_left_minutes)||0)+(ne||0);return ut.createElement(ut.Fragment,null,ut.createElement(Ct.default,{width:514,centered:!0,closable:!!((Xt=re==null?void 0:re.exerciseParams)!=null&&Xt.unlockClose),maskClosable:!1,keyboard:!1,maskStyle:{background:"#000"},title:"\u63D0\u793A",open:Mt.actionTabs.key==="student-unlock",footer:null,onCancel:()=>{Lt({type:"exercise/setActionTabs",payload:{}})}},ut.createElement(St.Z,{spinning:Me||de},xe&&ut.createElement("div",{style:{marginBottom:16}},"\u8BE5\u8D26\u53F7\u5DF2\u7ECF\u5B58\u5728\u5F02\u5E38\u60C5\u51B5\uFF0C\u82E5\u975E\u672C\u4EBA\u64CD\u4F5C\uFF0C\u8BF7\u8054\u7CFB\u76D1\u8003\u8001\u5E08\u8BF4\u660E\u60C5\u51B5\u3002 "),!xe&&ut.createElement("div",{style:{marginBottom:16}},"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u60A8\u5728\u8003\u8BD5\u65F6\u4E2D\u9014\u9000\u51FA\uFF0C\u73B0\u5DF2\u5C06\u8003\u8BD5\u9501\u5B9A\u3002\u5982\u9700\u7EE7\u7EED\u8FDB\u884C\u8003\u8BD5\uFF0C \u8BF7\u5C3D\u5FEB\u8054\u7CFB\u8BFE\u5802\u8001\u5E08\u8FDB\u884C\u89E3\u9501\uFF01"),xe&&ut.createElement(pt.default,{className:"mb20",pagination:{hideOnSinglePage:!0},dataSource:[((Gt=re==null?void 0:re.exerciseParams)==null?void 0:Gt.errorMessage)||{}],columns:Se}),ut.createElement("div",{className:""},ut.createElement(kt.default,{form:Ht,layout:"vertical",autoComplete:"off"},ut.createElement(kt.default.Item,{label:"\u8003\u8BD5\u89E3\u9501\u7801",name:"unlock_key",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801"}]},ut.createElement(vt.default.Password,{autoComplete:"off",placeholder:"\u8BF7\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801",visibilityToggle:!1})),le!==-1?ut.createElement(ut.Fragment,null,ut.createElement(kt.default.Item,{name:"time",label:ut.createElement("span",null,"\u5EF6\u957F\u65F6\u95F4\uFF08",ut.createElement("span",{style:{color:"#9096A3"}},"\u5F53\u524D\u8003\u8BD5\u622A\u6B62\u65F6\u95F4",lt()(fe==null?void 0:fe.user_total_end_time).format("YYYY-MM-DD HH:mm")),"\uFF09")},ut.createElement(At,{MaxMinutes:Ae})),ut.createElement("div",{className:"mb20",style:{color:"#FA6400"}},"\u8BE5\u5B66\u751F\u5269\u4F59\u8003\u8BD5\u65F6\u95F4\uFF1A",ut.createElement("span",{className:"ml5"},Me||de?"--":Xe),"\u5206\u949F",Xe!==0&&(fe==null?void 0:fe.user_end_time)&&ut.createElement("span",null,"\uFF0C\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\uFF1A",ut.createElement("span",{className:"ml5"},lt()(fe==null?void 0:fe.user_end_time).add(ne||0,"m").format("YYYY-MM-DD HH:mm:ss"))))):ut.createElement("span",{style:{color:"#F6A53B"}}," \u5F53\u524D\u8003\u8BD5\u672A\u9650\u5236\u8003\u751F\u7B54\u9898\u65F6\u957F\uFF0C\u8003\u8BD5\u622A\u6B62\u65F6\u95F4\u4E3A ",lt()(Ne).format("YYYY-MM-DD HH:mm")))),ut.createElement(yt.Z,{justify:"space-between",align:"middle"},ut.createElement(xt.Z,null),ut.createElement(xt.Z,null,ut.createElement(dt.ZP,{loading:se,onClick:He},"\u8FDB\u5165\u8003\u8BD5"))))))};Ke.Z=(0,E.connect)(({exercise:Mt})=>({exercise:Mt}))(_t)},34362:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return ct}});var Ft=Rt(59301),ie=Rt(8591),rt=Rt(6848),kt=Rt(71418),Ct=Rt(95237),St=Rt(43604),pt=Rt(58421),vt=Rt(3113),yt=Rt(12290),xt=Rt(99064),dt=Rt(85149),ft=(E,z,ot)=>new Promise((it,at)=>{var ut=At=>{try{Et(ot.next(At))}catch(_t){at(_t)}},wt=At=>{try{Et(ot.throw(At))}catch(_t){at(_t)}},Et=At=>At.done?it(At.value):Promise.resolve(At.value).then(ut,wt);Et((ot=ot.apply(E,z)).next())}),ct=({id:E,activeDiscussIndex:z,onReplyDiscuss:ot,adminOrOperator:it})=>{const[at,ut]=(0,Ft.useState)(""),[wt,Et]=(0,Ft.useState)(!1);function At(Mt){ut(Mt)}function _t(){if(!at){ie.ZP.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A!");return}ot(E,at),ut("")}return(0,Ft.useEffect)(()=>{z!=E&&Et(!1)},[z]),Ft.createElement("div",{key:E,className:"discuss-item-editor",style:{display:z===E?"block":"none",width:"100%"}},Ft.createElement(yt.Z,{miniToolbar:!0,startInit:z===E,defaultValue:at,id:E,noStorage:!0,watch:!1,height:155,placeholder:"\u6211\u8981\u56DE\u590D",showResizeBar:!0,onChange:At,extraUse:it&&Ft.createElement(rt.Z,{color:"#fff",open:wt,destroyTooltipOnHide:!0,title:lt({id:E,isOpen:wt,activeDiscussIndex:z,onChange:At,setIsOpen:Et}),overlayStyle:{maxWidth:600}},Ft.createElement("a",{title:wt?"\u5173\u95ED\u63A8\u8350":"\u6253\u5F00\u63A8\u8350",onClick:()=>Et(!wt)},Ft.createElement("i",{className:"iconfont icon-dianzan11"})))}),Ft.createElement("a",{onClick:_t,className:"btn-send"},"\u53D1\u9001"))};const lt=E=>{const[z,ot]=(0,Ft.useState)(!1),[it,at]=(0,Ft.useState)([]),[ut,wt]=(0,Ft.useState)(1);(0,Ft.useEffect)(()=>{E!=null&&E.isOpen?Et():(wt(1),at([]))},[E==null?void 0:E.isOpen]);const Et=()=>ft(void 0,null,function*(){ot(!0);const At=yield(0,xt.ZP)(`/api/discusses/${E==null?void 0:E.id}/recommend_answer.json`,{method:"get"});(At==null?void 0:At.status)==0&&at(At==null?void 0:At.answer),ot(!1)});return Ft.createElement(kt.Z,{spinning:z},Ft.createElement("div",{style:{color:"#000"}},Ft.createElement(dt.Z,{className:"font14",style:{maxHeight:500,overflow:"auto"},value:(it==null?void 0:it[ut-1])||""}),Ft.createElement(Ct.Z,{justify:"end",align:"middle"},Ft.createElement(St.Z,null,Ft.createElement(pt.Z,{simple:!0,current:ut,pageSize:1,total:(it==null?void 0:it.length)||0,onChange:At=>{wt(At)}})),Ft.createElement(St.Z,null,Ft.createElement(vt.ZP,{onClick:()=>ft(void 0,null,function*(){E==null||E.onChange(it==null?void 0:it[ut-1]),E==null||E.setIsOpen(!1)})},"\u586B\u5165\u6587\u672C\u6846")))))}},37518:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{CP:function(){return rt},_V:function(){return St}});var Ft=Rt(28209),ie=Rt.n(Ft);const rt={secret:Ft.enc.Utf8.parse("0a18e199b87f1a8d"),iv:Ft.enc.Utf8.parse("6e7b11a2d8475a3c"),recordScreen1:"8Cl7udD6KTt8HPYOZOopZQ==",recordScreen2:"2OizCBkuJOsBhw8rNenXhYCv3XTIsgM5YB4rOmXz7tSksBaXYYyAirzxs7TSR1vRsyWPVAt4owje5yiTfFsxAA==",recordScreen3:"neJjLaAaeW/dFCOx/cRGopZHNvjZTB0x8p9/TcYCsAGn0mWINwybT7VQlqzmJ55DjVgOrmi/iclg/G6uBGjm/Q==",recordScreen4:"SGYXWA9MzSO+02aOU0lf0g==",recordScreen5:"oCICX8dGCYMnb+4d1CTCTQ==",recordScreen6:"5MlFeP+Uwb/T5ADmGmB6NpaUgOJy3MlJ4WpA38wds8U=",recordScreen7:"TEQF1ezPIxvVVMQNJ08HIiHpj1mXdcVt5qmr6+ALw8Y=",recordScreen8:"9a9QOkgLXlgDq14d3ZEWzA==",recordScreen9:"O0prHhH+rDoUVnpw8acqwRQvRL7fh32v1bLyv4qv71U=",recordScreen10:"nfkbhFR34HkBQLpjlbNkk3FgEdBomIsnFLVgHA1RZVBeN/H3vWJpt0re6w4cjtaKmIkNgpJhxaFgyEkcJ7Z99GCAgC0CgxaaXNQNiDmz2MygiesZVZ9laQvHFQhZehEEaFKUozvNVQMkRw0MV0eoPg==",recordScreen11:"jarJWElZmu7HFZnjOTPwNx44FImKQVf8Bx2Jrm74G44=",recordScreen12:"e7Q/zr1KcI3oVpnQ3JeDgA==",recordScreen13:"pm38jjAC3l2p/JR8E3kDWg==",recordScreen14:"/mTQurqh9htD7+PNrTooMJgdPOE914grpIKomFnikk8=",recordScreen15:"bEPsKA+wwGyQEDShAMuQmQ==",recordScreen16:"uitMDSXWhi/tOOfbtHNmyNh8e9PCLJ0naA02kzBCOD/mdg+1g9ScswIEDpdHuE1l",recordScreen17:"4+bY5u3lx+VxRA/PjP/r3Tl9C0SmKM8CRtCpmkAJq+M=",recordScreen18:"L3Tz5XdvbIAqzHw/XxJnmrx8R+v3cPrYaho0/yDug6M=",recordScreen19:"bo+SiWR7f4uhJXP1wk3oQxBEFmQdbpZPV1in12O3jaj14CuNU2kP2g2MKMTFmRqE12Di4jS3RKzRI14yWpi6Zw==",recordScreen20:"9zp6SENXwO+8GNr4+g+xIzt6s/Gf38ukabRJjhQhQoY=",recordScreen21:"9zp6SENXwO+8GNr4+g+xIy36f4lSwnfFtW0weuO6Gj8=",recordScreen22:"JrbzlyV7pBS7Yw/W1geouw==",recordScreen23:"HBRPVLqnAH9kbzQ7clr8JsTgjT3nCOaP6D+q1lrMX0T6z7vU1Nh5XljgB+Qw/Hs8",recordScreen24:"bq3vruZCtCaGLs7egAWDrgXjmyW8iQX5L+nEwqCeguM=",recordScreen25:"CjveXk9FHEWiBbhwyVRzPQ==",recordScreen26:"FxZnr4aTDDJTcRMUEb3SfA==",answer1:"YXOzThjf+mcj1OALSFqA8A==",answer2:"iyOS4uLz85NAsAWdMjWs6A==",answer3:"cnZErv6FfE02OBkLzlWAeDAW3+ysEYfgoPhcC707e9kJN3PHMP7E05NC7nRf5ESWhemykQ0Y+JYQAd1PGsIJVIZFsA7OlceUwyOfid7oTeg=",answer4:"xXjNeCMbPG5xznAfVbSmjvHn/2xVBArzvsRXJZVk7yY=",answer5:"8Cl7udD6KTt8HPYOZOopZQ==",answer6:"r4qWdIzOZoUDAHIC6Rkiz3KJVZoKCNj9MmeR76VANv90Zyj57hrKtRcOipt3SZUPfZlt17GKyBf504lj5ROxVg==",answer7:"t1d0b8j3bdsJoH9adhzqOQ==",answer8:"0TBptfONacS/9JDvt/q9BO9S0+Jv0m1glMCiAQweO4E=",answer9:"2DA7p8Fws9TWo+O5djurjrORgQjZjMrKtuIbjfCoAI8ZpLy4+sq9PFZuua40lLxjTVb7vhKqm6exT5/R19YdjnUTh6Kyt+6Px8xr6JnEHVw=",answer10:"xcjM1HNI8s6ckETto63Gq83vw68ATty2i534hkfjKAa+izWStVVH5fvCEpQxd8rYYki3IW9Qy0NU8cLJsHQXWOsYtYD70yB44qG5j3fnlDahQUcsDWEBXzx2NlAp6x5R",answer11:"0/t7yKZD1CFg6kerAPJksqJATDsJMtkB06datFVfwac=",answer12:"SJ4yd9DEs9YHnGhybPplEg=="},kt={exam:rt};function Ct(pt="",vt="exam"){const{secret:yt,iv:xt}=kt[vt];return AES.encrypt(pt,yt,{iv:xt,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7}).toString()}function St(pt="",vt="exam"){const{secret:yt,iv:xt}=kt[vt];return Ft.AES.decrypt(pt,yt,{iv:xt,mode:ie().mode.CBC,padding:ie().pad.Pkcs7}).toString(Ft.enc.Utf8)}},4901:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{BU:function(){return ie},Dj:function(){return Ft},gH:function(){return rt},vp:function(){return kt}});function Ft(Ct){try{Ct.mozRequestFullScreen?Ct.mozRequestFullScreen():Ct.webkitRequestFullScreen&&Ct.webkitRequestFullScreen()}catch(St){console.log(St,":e")}}function ie(){window.top.document.webkitExitFullscreen?window.top.document.webkitExitFullscreen():document.exitFullscreen?window.top.document.exitFullscreen():document.msExitFullscreen?window.top.document.msExitFullscreen():document.mozCancelFullScreen&&window.top.document.mozCancelFullScreen()}const rt=()=>{if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function kt(){var Ct=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,St=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",Ct),window.isFullScreen?window.isFullScreen:Ct!=null}},83312:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{U:function(){return yt}});var Ft=Rt(59301),ie=Object.defineProperty,rt=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,St=(xt,dt,ft)=>dt in xt?ie(xt,dt,{enumerable:!0,configurable:!0,writable:!0,value:ft}):xt[dt]=ft,pt=(xt,dt)=>{for(var ft in dt||(dt={}))kt.call(dt,ft)&&St(xt,ft,dt[ft]);if(rt)for(var ft of rt(dt))Ct.call(dt,ft)&&St(xt,ft,dt[ft]);return xt},vt=(xt,dt,ft)=>new Promise((ct,lt)=>{var E=it=>{try{ot(ft.next(it))}catch(at){lt(at)}},z=it=>{try{ot(ft.throw(it))}catch(at){lt(at)}},ot=it=>it.done?ct(it.value):Promise.resolve(it.value).then(E,z);ot((ft=ft.apply(xt,dt)).next())});function yt(xt,dt){const[ft,ct]=(0,Ft.useState)(dt),[lt,E]=(0,Ft.useState)(!1),[z,ot]=(0,Ft.useState)();return[ft,lt,(at,ut=!1)=>vt(this,null,function*(){const wt=ut?dt:pt(pt({},ft),at);E(!0),ct(wt);const Et=yield xt(wt);return E(!1),ot(Et),Et}),z,ot]}},85219:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{_:function(){return rt}});var Ft=Rt(59301),ie=Rt(43418);const rt=kt=>{var Ct,St;const pt=(0,Ft.useRef)([]),vt=()=>{for(const yt of pt.current)clearTimeout(yt);pt.current=[]};return(0,Ft.useEffect)(()=>{var yt,xt,dt,ft,ct,lt;if(vt(),(yt=kt==null?void 0:kt.exercise)!=null&&yt.left_time&&((dt=(xt=kt==null?void 0:kt.exercise)==null?void 0:xt.exercise_events)==null?void 0:dt.length)>0){for(const E of(ft=kt==null?void 0:kt.exercise)==null?void 0:ft.exercise_events)if(((ct=kt==null?void 0:kt.exercise)==null?void 0:ct.left_time)>(E==null?void 0:E.reminder_time)*60){let z=(((lt=kt==null?void 0:kt.exercise)==null?void 0:lt.left_time)-(E==null?void 0:E.reminder_time)*60)*1e3;z=z>2147483647?2147483647:z;const ot=setTimeout(()=>{ie.default.info({content:`${E==null?void 0:E.reminder_content}`,icon:null,title:"\u63D0\u793A",centered:!0,okText:"\u77E5\u9053\u4E86"})},z);pt.current.push(ot)}}},[(Ct=kt==null?void 0:kt.exercise)==null?void 0:Ct.left_time,(St=kt==null?void 0:kt.exercise)==null?void 0:St.exercise_events]),vt}},24768:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{AL:function(){return wt},Iy:function(){return dt},Qv:function(){return lt},ez:function(){return ut},jb:function(){return ft}});var Ft=Rt(32834),ie=Rt.n(Ft),rt=Rt(11690),kt=Rt.n(rt);let Ct=1;function St(jt,Lt){const It=jt.match(/^(\s+)(?:```)/);if(It===null)return Lt;const Ut=It[1];return Lt.split(` +`).map(Xt=>{const Gt=Xt.match(/^\s+/);if(Gt===null)return Xt;const[Vt]=Gt;return Vt.length>=Ut.length?Xt.slice(Ut.length):Xt}).join(` +`)}let pt=[],vt=["
      "];const yt=new(ie()).Renderer,xt=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function dt(){pt.length=0,vt=["
        "]}const ft={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function ct(jt,Lt,It,Ut){if(Lt>=jt.length||jt[Lt].level<=It)return Lt;var Xt=jt[Lt];Ut.push("
      • "+Xt.text+""),Lt++;var Gt=[];return Lt=ct(jt,Lt,Xt.level,Gt),Gt.length>0&&(Ut.push("
          "),Gt.forEach(function(Vt){Ut.push(Vt)}),Ut.push("
        ")),Ut.push("
      • "),Lt=ct(jt,Lt,It,Ut),Lt}function lt(){return ct(pt,0,0,vt),vt.push("
      "),vt.join("")}const E={heading(jt){const Lt=xt.exec(jt);if(Ct+=1,Lt)return{type:"heading",raw:Lt[0],depth:Lt[1].length,text:Lt[2]}},fences(jt){const Lt=this.rules.block.fences.exec(jt);if(Lt){const It=Lt[0];let Ut=St(It,Lt[3]||"");const Xt=Lt[2]?Lt[2].trim():Lt[2];if(["latex","katex","math"].indexOf(Xt)>=0){const Gt=it(),Vt=Ut;Ut=Gt,at[Gt]={type:"block",expression:Vt}}return{type:"code",raw:It,lang:Xt,text:Ut}}}},z=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ot=0;const it=()=>`__special_katext_id_${ot++}__`;let at={};function ut(){return at}function wt(){ot=0,at={}}function Et(jt){return jt=jt.replace(z,(Lt,It)=>{const Ut=it();return at[Ut]={type:"inline",expression:It},Ut}),jt}const At=yt.listitem;yt.listitem=function(jt){return At(Et(jt))};const _t=yt.paragraph;yt.paragraph=function(jt){return _t(Et(jt))};const Mt=yt.tablecell;yt.tablecell=function(jt,Lt){return Mt(Et(jt),Lt)},yt.code=function(jt,Lt,It){const Ut=(Lt||"").match(/\S*/)[0];return Ut?["latex","katex","math"].indexOf(Ut)>=0?`

      ${jt}

      `:`
      ${It?jt:(0,rt.escape)(jt,!0)}
      `:'
      '+(It?jt:(0,rt.escape)(jt,!0))+"
      "},yt.heading=function(jt,Lt,It){let Ut=this.options.headerPrefix+It.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return pt.push({anchor:Ut,level:Lt,text:jt}),"'+jt+""},ie().setOptions({silent:!0,gfm:!0,pedantic:!1}),ie().use({tokenizer:E,renderer:yt}),Ke.ZP=ie()},16479:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{G:function(){return Ct},t:function(){return kt}});var Ft=Rt(7062),ie=Rt.n(Ft);const rt=null;function kt(St,pt){let vt=ie().get("__ec");vt||(vt={}),vt[St]=pt,ie().set("__ec",vt)}function Ct(St,pt){let vt=ie().get("__ec");return vt?vt[St]===void 0?pt:vt[St]:pt}},47257:function(tn){(function(Ke){(function(Rt){if(1)tn.exports=Rt();else var Ft})(function(){var Rt,Ft,ie;return function(){function rt(kt,Ct,St){function pt(xt,dt){if(!Ct[xt]){if(!kt[xt]){var ft=void 0;if(!dt&&ft)return require(xt,!0);if(vt)return vt(xt,!0);var ct=new Error("Cannot find module '"+xt+"'");throw ct.code="MODULE_NOT_FOUND",ct}var lt=Ct[xt]={exports:{}};kt[xt][0].call(lt.exports,function(E){var z=kt[xt][1][E];return pt(z||E)},lt,lt.exports,rt,kt,Ct,St)}return Ct[xt].exports}for(var vt=void 0,yt=0;yt `.concat(it,` `),at&&(Et+="".concat(at,` `)),Et+=` -`,wt.content=Et,wt.mime="xml",wt.successStatuses=[200],Mt.next=9,this.request(wt);case 9:return At=Mt.sent,Mt.abrupt("return",{res:At.res});case 11:case"end":return Mt.stop()}},ot,this)}));function z(ot,it,at){return E.apply(this,arguments)}return z}(),ft.getBucketLogging=function(){var E=(0,vt.default)(pt.default.mark(function ot(it,at){var ut,wt,Et;return pt.default.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return ut=this._bucketRequestParams("GET",it,"logging",at),ut.successStatuses=[200],ut.xmlResponse=!0,_t.next=5,this.request(ut);case 5:return wt=_t.sent,Et=wt.data.LoggingEnabled,_t.abrupt("return",{enable:!!Et,prefix:Et&&Et.TargetPrefix||null,res:wt.res});case 8:case"end":return _t.stop()}},ot,this)}));function z(ot,it){return E.apply(this,arguments)}return z}(),ft.deleteBucketLogging=function(){var E=(0,vt.default)(pt.default.mark(function ot(it,at){var ut,wt;return pt.default.wrap(function(At){for(;;)switch(At.prev=At.next){case 0:return ut=this._bucketRequestParams("DELETE",it,"logging",at),ut.successStatuses=[204,200],At.next=4,this.request(ut);case 4:return wt=At.sent,At.abrupt("return",{res:wt.res});case 6:case"end":return At.stop()}},ot,this)}));function z(ot,it){return E.apply(this,arguments)}return z}(),ft.putBucketCORS=function(){var E=(0,vt.default)(pt.default.mark(function ot(it,at,ut){var wt,Et,At,_t,Mt,jt,Lt,It,Ut,Xt;return pt.default.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:for(at=at||[],yt(at.length,"rules is required"),at.forEach(function(Ht){yt(Ht.allowedOrigin,"allowedOrigin is required"),yt(Ht.allowedMethod,"allowedMethod is required")}),wt=this._bucketRequestParams("PUT",it,"cors",ut),Et=` -`,At=function(ne){Et+="".concat(ne,"")},_t=function(ne){Et+="".concat(ne,"")},Mt=function(ne){Et+="".concat(ne,"")},jt=function(ne){Et+="".concat(ne,"")},Lt=0,It=at.length;Lt",lt(Ut.allowedOrigin).forEach(At),lt(Ut.allowedMethod).forEach(_t),lt(Ut.allowedHeader).forEach(Mt),lt(Ut.exposeHeader).forEach(jt),Ut.maxAgeSeconds&&(Et+="".concat(Ut.maxAgeSeconds,"")),Et+="";return Et+="",wt.content=Et,wt.mime="xml",wt.successStatuses=[200],Yt.next=16,this.request(wt);case 16:return Xt=Yt.sent,Yt.abrupt("return",{res:Xt.res});case 18:case"end":return Yt.stop()}},ot,this)}));function z(ot,it,at){return E.apply(this,arguments)}return z}(),ft.getBucketCORS=function(){var E=(0,vt.default)(pt.default.mark(function ot(it,at){var ut,wt,Et,At;return pt.default.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return ut=this._bucketRequestParams("GET",it,"cors",at),ut.successStatuses=[200],ut.xmlResponse=!0,Mt.next=5,this.request(ut);case 5:return wt=Mt.sent,Et=[],wt.data&&wt.data.CORSRule&&(At=wt.data.CORSRule,ct(At)||(At=[At]),At.forEach(function(jt){var Lt={};Object.keys(jt).forEach(function(It){Lt[It.slice(0,1).toLowerCase()+It.slice(1,It.length)]=jt[It]}),Et.push(Lt)})),Mt.abrupt("return",{rules:Et,res:wt.res});case 9:case"end":return Mt.stop()}},ot,this)}));function z(ot,it){return E.apply(this,arguments)}return z}(),ft.deleteBucketCORS=function(){var E=(0,vt.default)(pt.default.mark(function ot(it,at){var ut,wt;return pt.default.wrap(function(At){for(;;)switch(At.prev=At.next){case 0:return ut=this._bucketRequestParams("DELETE",it,"cors",at),ut.successStatuses=[204],At.next=4,this.request(ut);case 4:return wt=At.sent,At.abrupt("return",{res:wt.res});case 6:case"end":return At.stop()}},ot,this)}));function z(ot,it){return E.apply(this,arguments)}return z}(),ft.putBucketReferer=function(){var E=(0,vt.default)(pt.default.mark(function ot(it,at,ut,wt){var Et,At,_t,Mt;return pt.default.wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:if(Et=this._bucketRequestParams("PUT",it,"referer",wt),At=` +`,wt.content=Et,wt.mime="xml",wt.successStatuses=[200],Mt.next=9,this.request(wt);case 9:return At=Mt.sent,Mt.abrupt("return",{res:At.res});case 11:case"end":return Mt.stop()}},ot,this)}));function z(ot,it,at){return E.apply(this,arguments)}return z}(),ft.getBucketLogging=function(){var E=(0,vt.default)(pt.default.mark(function ot(it,at){var ut,wt,Et;return pt.default.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return ut=this._bucketRequestParams("GET",it,"logging",at),ut.successStatuses=[200],ut.xmlResponse=!0,_t.next=5,this.request(ut);case 5:return wt=_t.sent,Et=wt.data.LoggingEnabled,_t.abrupt("return",{enable:!!Et,prefix:Et&&Et.TargetPrefix||null,res:wt.res});case 8:case"end":return _t.stop()}},ot,this)}));function z(ot,it){return E.apply(this,arguments)}return z}(),ft.deleteBucketLogging=function(){var E=(0,vt.default)(pt.default.mark(function ot(it,at){var ut,wt;return pt.default.wrap(function(At){for(;;)switch(At.prev=At.next){case 0:return ut=this._bucketRequestParams("DELETE",it,"logging",at),ut.successStatuses=[204,200],At.next=4,this.request(ut);case 4:return wt=At.sent,At.abrupt("return",{res:wt.res});case 6:case"end":return At.stop()}},ot,this)}));function z(ot,it){return E.apply(this,arguments)}return z}(),ft.putBucketCORS=function(){var E=(0,vt.default)(pt.default.mark(function ot(it,at,ut){var wt,Et,At,_t,Mt,jt,Lt,It,Ut,Xt;return pt.default.wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:for(at=at||[],yt(at.length,"rules is required"),at.forEach(function(Ht){yt(Ht.allowedOrigin,"allowedOrigin is required"),yt(Ht.allowedMethod,"allowedMethod is required")}),wt=this._bucketRequestParams("PUT",it,"cors",ut),Et=` +`,At=function(ne){Et+="".concat(ne,"")},_t=function(ne){Et+="".concat(ne,"")},Mt=function(ne){Et+="".concat(ne,"")},jt=function(ne){Et+="".concat(ne,"")},Lt=0,It=at.length;Lt",lt(Ut.allowedOrigin).forEach(At),lt(Ut.allowedMethod).forEach(_t),lt(Ut.allowedHeader).forEach(Mt),lt(Ut.exposeHeader).forEach(jt),Ut.maxAgeSeconds&&(Et+="".concat(Ut.maxAgeSeconds,"")),Et+="";return Et+="",wt.content=Et,wt.mime="xml",wt.successStatuses=[200],Vt.next=16,this.request(wt);case 16:return Xt=Vt.sent,Vt.abrupt("return",{res:Xt.res});case 18:case"end":return Vt.stop()}},ot,this)}));function z(ot,it,at){return E.apply(this,arguments)}return z}(),ft.getBucketCORS=function(){var E=(0,vt.default)(pt.default.mark(function ot(it,at){var ut,wt,Et,At;return pt.default.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return ut=this._bucketRequestParams("GET",it,"cors",at),ut.successStatuses=[200],ut.xmlResponse=!0,Mt.next=5,this.request(ut);case 5:return wt=Mt.sent,Et=[],wt.data&&wt.data.CORSRule&&(At=wt.data.CORSRule,ct(At)||(At=[At]),At.forEach(function(jt){var Lt={};Object.keys(jt).forEach(function(It){Lt[It.slice(0,1).toLowerCase()+It.slice(1,It.length)]=jt[It]}),Et.push(Lt)})),Mt.abrupt("return",{rules:Et,res:wt.res});case 9:case"end":return Mt.stop()}},ot,this)}));function z(ot,it){return E.apply(this,arguments)}return z}(),ft.deleteBucketCORS=function(){var E=(0,vt.default)(pt.default.mark(function ot(it,at){var ut,wt;return pt.default.wrap(function(At){for(;;)switch(At.prev=At.next){case 0:return ut=this._bucketRequestParams("DELETE",it,"cors",at),ut.successStatuses=[204],At.next=4,this.request(ut);case 4:return wt=At.sent,At.abrupt("return",{res:wt.res});case 6:case"end":return At.stop()}},ot,this)}));function z(ot,it){return E.apply(this,arguments)}return z}(),ft.putBucketReferer=function(){var E=(0,vt.default)(pt.default.mark(function ot(it,at,ut,wt){var Et,At,_t,Mt;return pt.default.wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:if(Et=this._bucketRequestParams("PUT",it,"referer",wt),At=` `,At+=" ".concat(at?"true":"false",` `),ut&&ut.length>0){for(At+=` `,_t=0;_t".concat(ut[_t],` `);At+=` `}else At+=` -`;return At+="",Et.content=At,Et.mime="xml",Et.successStatuses=[200],Lt.next=10,this.request(Et);case 10:return Mt=Lt.sent,Lt.abrupt("return",{res:Mt.res});case 12:case"end":return Lt.stop()}},ot,this)}));function z(ot,it,at,ut){return E.apply(this,arguments)}return z}(),ft.getBucketReferer=function(){var E=(0,vt.default)(pt.default.mark(function ot(it,at){var ut,wt,Et;return pt.default.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return ut=this._bucketRequestParams("GET",it,"referer",at),ut.successStatuses=[200],ut.xmlResponse=!0,_t.next=5,this.request(ut);case 5:return wt=_t.sent,Et=wt.data.RefererList.Referer||null,Et&&(ct(Et)||(Et=[Et])),_t.abrupt("return",{allowEmpty:wt.data.AllowEmptyReferer==="true",referers:Et,res:wt.res});case 9:case"end":return _t.stop()}},ot,this)}));function z(ot,it){return E.apply(this,arguments)}return z}(),ft.deleteBucketReferer=function(){var E=(0,vt.default)(pt.default.mark(function ot(it,at){return pt.default.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:return wt.next=2,this.putBucketReferer(it,!0,null,at);case 2:return wt.abrupt("return",wt.sent);case 3:case"end":return wt.stop()}},ot,this)}));function z(ot,it){return E.apply(this,arguments)}return z}(),ft._bucketRequestParams=function(z,ot,it,at){return{method:z,bucket:ot,subres:it,timeout:at&&at.timeout,ctx:at&&at.ctx}}},{"../common/utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,assert:82,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],3:[function(rt,kt,Ct){(function(St,pt){(function(){"use strict";var vt=rt("@babel/runtime/helpers/interopRequireDefault"),yt=vt(rt("@babel/runtime/regenerator")),xt=vt(rt("@babel/runtime/helpers/asyncToGenerator"));rt("core-js/modules/es.function.name.js"),rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.split.js"),rt("core-js/modules/es.object.assign.js"),rt("core-js/modules/es.array.includes.js"),rt("core-js/modules/es.string.replace.js"),rt("core-js/modules/es.array.concat.js"),rt("core-js/modules/es.symbol.js"),rt("core-js/modules/es.symbol.description.js"),rt("core-js/modules/es.array.slice.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/es.promise.js"),rt("core-js/modules/es.regexp.to-string.js");var dt=rt("debug")("ali-oss"),ft=rt("xml2js"),ct=rt("agentkeepalive"),lt=rt("merge-descriptors"),E=rt("platform"),z=rt("utility"),ot=rt("urllib"),it=rt("./version"),at=rt("bowser"),ut=rt("../common/signUtils"),wt=rt("../common/client/initOptions"),Et=rt("../common/utils/createRequest"),At=Et.createRequest,_t=rt("../common/utils/encoder"),Mt=_t.encoder,jt=rt("../common/client/getReqUrl"),Lt=jt.getReqUrl,It=rt("../common/utils/setSTSToken"),Ut=It.setSTSToken,Xt=rt("../common/utils/retry"),Gt=Xt.retry,Yt=rt("../common/utils/isFunction"),Ht=Yt.isFunction,ne=new ct;function ae(){var ke=E.name,me=E.version;ke&&ke.toLowerCase&&ke.toLowerCase()==="ie"&&me.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function ve(){return location&&location.protocol==="https:"}function Kt(ke,me){if(ae(),!(this instanceof Kt))return new Kt(ke,me);ke&&ke.inited?this.options=ke:this.options=Kt.initOptions(ke),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=ot,this.agent=this.options.agent||ne),this.ctx=me,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}kt.exports=Kt,Kt.initOptions=function(me){me.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var fe=Object.assign({secure:ve(),useFetch:!1},me);return wt(fe)};var re=Kt.prototype;re.debug=dt,lt(re,rt("./object")),lt(re,rt("./bucket")),lt(re,rt("../common/bucket/getBucketWebsite")),lt(re,rt("../common/bucket/putBucketWebsite")),lt(re,rt("../common/bucket/deleteBucketWebsite")),lt(re,rt("../common/bucket/getBucketLifecycle")),lt(re,rt("../common/bucket/putBucketLifecycle")),lt(re,rt("../common/bucket/deleteBucketLifecycle")),lt(re,rt("../common/bucket/putBucketVersioning")),lt(re,rt("../common/bucket/getBucketVersioning")),lt(re,rt("../common/bucket/getBucketInventory")),lt(re,rt("../common/bucket/deleteBucketInventory")),lt(re,rt("../common/bucket/listBucketInventory")),lt(re,rt("../common/bucket/putBucketInventory")),lt(re,rt("../common/bucket/abortBucketWorm")),lt(re,rt("../common/bucket/completeBucketWorm")),lt(re,rt("../common/bucket/extendBucketWorm")),lt(re,rt("../common/bucket/getBucketWorm")),lt(re,rt("../common/bucket/initiateBucketWorm")),lt(re,rt("./managed-upload")),lt(re,rt("../common/multipart-copy")),lt(re,rt("../common/multipart")),lt(re,rt("../common/parallel")),re.signature=function(me){return this.debug("authorization stringToSign: %s",me,"info"),ut.computeSignature(this.options.accessKeySecret,me,this.options.headerEncoding)},re._getReqUrl=Lt,re.authorization=function(me,fe,pe,_e){var je=ut.buildCanonicalString(me.toUpperCase(),fe,{headers:_e,parameters:pe});return ut.authorization(this.options.accessKeyId,this.options.accessKeySecret,je,this.options.headerEncoding)},re.request=function(){var ke=(0,xt.default)(yt.default.mark(function me(fe){var pe=this;return yt.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:if(!this.options.retryMax){je.next=6;break}return je.next=3,Gt(we.bind(this),this.options.retryMax,{errorHandler:function(Se){var xe=function(Ne){if(fe.stream)return!1;var se=[-1,-2].includes(Ne.status),Ae=pe.options.requestErrorRetryHandle||function(){return!0};return se&&Ae(Ne)};return!!xe(Se)}})(fe);case 3:return je.abrupt("return",je.sent);case 6:return je.abrupt("return",we.call(this,fe));case 7:case"end":return je.stop()}},me,this)}));return function(me){return ke.apply(this,arguments)}}();function we(ke){return Me.apply(this,arguments)}function Me(){return Me=(0,xt.default)(yt.default.mark(function ke(me){var fe,pe,_e,je,He,Se;return yt.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:if(!(this.options.stsToken&&Ht(this.options.refreshSTSToken))){le.next=3;break}return le.next=3,Ut.call(this);case 3:return fe=At.call(this,me),this.options.useFetch||(fe.params.mode="disable-fetch"),je=!!me.stream,le.prev=6,le.next=9,this.urllib.request(fe.url,fe.params);case 9:pe=le.sent,this.debug("response %s %s, got %s, headers: %j",me.method,fe.url,pe.status,pe.headers,"info"),le.next=16;break;case 13:le.prev=13,le.t0=le.catch(6),_e=le.t0;case 16:if(!(pe&&me.successStatuses&&me.successStatuses.indexOf(pe.status)===-1)){le.next=28;break}return le.next=19,this.requestError(pe);case 19:if(He=le.sent,!(He.code==="RequestTimeTooSkewed"&&!je)){le.next=25;break}return this.options.amendTimeSkewed=+new Date(He.serverTime)-new Date,le.next=24,this.request(me);case 24:return le.abrupt("return",le.sent);case 25:He.params=me,le.next=32;break;case 28:if(!_e){le.next=32;break}return le.next=31,this.requestError(_e);case 31:He=le.sent;case 32:if(!He){le.next=34;break}throw He;case 34:if(!me.xmlResponse){le.next=39;break}return le.next=37,this.parseXML(pe.data);case 37:Se=le.sent,pe.data=Se;case 39:return le.abrupt("return",pe);case 40:case"end":return le.stop()}},ke,this,[[6,13]])})),Me.apply(this,arguments)}re._getResource=function(me){var fe="/";return me.bucket&&(fe+="".concat(me.bucket,"/")),me.object&&(fe+=Mt(me.object,this.options.headerEncoding)),fe},re._escape=function(me){return z.encodeURIComponent(me).replace(/%2F/g,"/")},re._getUserAgent=function(){var me=pt&&pt.browser?"js":"nodejs",fe="aliyun-sdk-".concat(me,"/").concat(it.version),pe=E.description;return!pe&&pt&&(pe="Node.js ".concat(pt.version.slice(1)," on ").concat(pt.platform," ").concat(pt.arch)),this._checkUserAgent("".concat(fe," ").concat(pe))},re._checkUserAgent=function(me){var fe=me.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return fe},re.checkBrowserAndVersion=function(me,fe){return at.name===me&&at.version.split(".")[0]===fe},re.parseXML=function(me){return new Promise(function(fe,pe){St.isBuffer(me)&&(me=me.toString()),ft.parseString(me,{explicitRoot:!1,explicitArray:!1},function(_e,je){_e?pe(_e):fe(je)})})},re.requestError=function(){var ke=(0,xt.default)(yt.default.mark(function fe(pe){var _e,je,He,Se;return yt.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:if(_e=null,!(!pe.data||!pe.data.length)){le.next=5;break}pe.status===-1||pe.status===-2?(_e=new Error(pe.message),_e.name=pe.name,_e.status=pe.status,_e.code=pe.name):(pe.status===404?(_e=new Error("Object not exists"),_e.name="NoSuchKeyError",_e.status=404,_e.code="NoSuchKey"):pe.status===412?(_e=new Error("Pre condition failed"),_e.name="PreconditionFailedError",_e.status=412,_e.code="PreconditionFailed"):(_e=new Error("Unknow error, status: ".concat(pe.status)),_e.name="UnknownError",_e.status=pe.status),_e.requestId=pe.headers["x-oss-request-id"],_e.host=""),le.next=32;break;case 5:return je=String(pe.data),this.debug("request response error data: %s",je,"error"),le.prev=7,le.next=10,this.parseXML(je);case 10:if(le.t0=le.sent,le.t0){le.next=13;break}le.t0={};case 13:He=le.t0,le.next=23;break;case 16:return le.prev=16,le.t1=le.catch(7),this.debug(je,"error"),le.t1.message+=` -raw xml: `.concat(je),le.t1.status=pe.status,le.t1.requestId=pe.headers["x-oss-request-id"],le.abrupt("return",le.t1);case 23:Se=He.Message||"unknow request error, status: ".concat(pe.status),He.Condition&&(Se+=" (condition: ".concat(He.Condition,")")),_e=new Error(Se),_e.name=He.Code?"".concat(He.Code,"Error"):"UnknownError",_e.status=pe.status,_e.code=He.Code,_e.requestId=He.RequestId,_e.hostId=He.HostId,_e.serverTime=He.ServerTime;case 32:return this.debug("generate error %j",_e,"error"),le.abrupt("return",_e);case 34:case"end":return le.stop()}},fe,this,[[7,16]])}));function me(fe){return ke.apply(this,arguments)}return me}()}).call(this)}).call(this,{isBuffer:rt("../../node_modules/is-buffer/index.js")},rt("_process"))},{"../../node_modules/is-buffer/index.js":366,"../common/bucket/abortBucketWorm":7,"../common/bucket/completeBucketWorm":8,"../common/bucket/deleteBucketInventory":9,"../common/bucket/deleteBucketLifecycle":10,"../common/bucket/deleteBucketWebsite":11,"../common/bucket/extendBucketWorm":12,"../common/bucket/getBucketInventory":13,"../common/bucket/getBucketLifecycle":14,"../common/bucket/getBucketVersioning":15,"../common/bucket/getBucketWebsite":16,"../common/bucket/getBucketWorm":17,"../common/bucket/initiateBucketWorm":18,"../common/bucket/listBucketInventory":19,"../common/bucket/putBucketInventory":20,"../common/bucket/putBucketLifecycle":21,"../common/bucket/putBucketVersioning":22,"../common/bucket/putBucketWebsite":23,"../common/client/getReqUrl":25,"../common/client/initOptions":26,"../common/multipart":30,"../common/multipart-copy":29,"../common/parallel":49,"../common/signUtils":50,"../common/utils/createRequest":56,"../common/utils/encoder":59,"../common/utils/isFunction":68,"../common/utils/retry":74,"../common/utils/setSTSToken":76,"./bucket":2,"./managed-upload":4,"./object":5,"./version":6,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,agentkeepalive:81,bowser:88,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/es.string.split.js":307,"core-js/modules/es.symbol.description.js":310,"core-js/modules/es.symbol.js":313,debug:465,"merge-descriptors":372,platform:379,urllib:475,utility:474,xml2js:426}],4:[function(rt,kt,Ct){(function(St){(function(){"use strict";var pt=rt("@babel/runtime/helpers/interopRequireDefault"),vt=pt(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.function.name.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/es.promise.js"),rt("core-js/modules/es.array.from.js"),rt("core-js/modules/es.string.iterator.js"),rt("core-js/modules/es.array.map.js"),rt("core-js/modules/es.array.filter.js"),rt("core-js/modules/es.array.find.js"),rt("core-js/modules/es.array.concat.js"),rt("core-js/modules/es.regexp.to-string.js"),rt("core-js/modules/es.array.slice.js"),rt("core-js/modules/es.array.iterator.js"),rt("core-js/modules/es.array-buffer.slice.js"),rt("core-js/modules/es.typed-array.uint8-array.js"),rt("core-js/modules/es.typed-array.copy-within.js"),rt("core-js/modules/es.typed-array.every.js"),rt("core-js/modules/es.typed-array.fill.js"),rt("core-js/modules/es.typed-array.filter.js"),rt("core-js/modules/es.typed-array.find.js"),rt("core-js/modules/es.typed-array.find-index.js"),rt("core-js/modules/es.typed-array.for-each.js"),rt("core-js/modules/es.typed-array.includes.js"),rt("core-js/modules/es.typed-array.index-of.js"),rt("core-js/modules/es.typed-array.iterator.js"),rt("core-js/modules/es.typed-array.join.js"),rt("core-js/modules/es.typed-array.last-index-of.js"),rt("core-js/modules/es.typed-array.map.js"),rt("core-js/modules/es.typed-array.reduce.js"),rt("core-js/modules/es.typed-array.reduce-right.js"),rt("core-js/modules/es.typed-array.reverse.js"),rt("core-js/modules/es.typed-array.set.js"),rt("core-js/modules/es.typed-array.slice.js"),rt("core-js/modules/es.typed-array.some.js"),rt("core-js/modules/es.typed-array.sort.js"),rt("core-js/modules/es.typed-array.subarray.js"),rt("core-js/modules/es.typed-array.to-locale-string.js"),rt("core-js/modules/es.typed-array.to-string.js");var yt=pt(rt("@babel/runtime/helpers/asyncToGenerator")),xt=rt("util"),dt=rt("path"),ft=rt("mime"),ct=rt("copy-to"),lt=rt("../common/utils/isBlob"),E=lt.isBlob,z=rt("../common/utils/isFile"),ot=z.isFile,it=rt("../common/utils/isBuffer"),at=it.isBuffer,ut=Ct;ut.multipartUpload=function(){var Mt=(0,yt.default)(vt.default.mark(function Lt(It,Ut){var Xt,Gt,Yt,Ht,ne,ae,ve,Kt,re,we=arguments;return vt.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:if(Xt=we.length>2&&we[2]!==void 0?we[2]:{},this.resetCancelFlag(),Xt.disabledMD5=Xt.disabledMD5===void 0?!0:!!Xt.disabledMD5,!(Xt.checkpoint&&Xt.checkpoint.uploadId)){ke.next=8;break}return Ut&&ot(Ut)&&(Xt.checkpoint.file=Ut),ke.next=7,this._resumeMultipart(Xt.checkpoint,Xt);case 7:return ke.abrupt("return",ke.sent);case 8:return Gt=102400,Xt.mime||(ot(Ut)?Xt.mime=ft.getType(dt.extname(Ut.name)):E(Ut)?Xt.mime=Ut.type:at(Ut)?Xt.mime="":Xt.mime=ft.getType(dt.extname(Ut))),Xt.headers=Xt.headers||{},this._convertMetaToHeaders(Xt.meta,Xt.headers),ke.next=14,this._getFileSize(Ut);case 14:if(Yt=ke.sent,!(Yt0&&ct(ae).to(Kt),re=this._divideParts(Yt,Ht),we=re.length,Me=!1,ke=function(se,Ae){return new Promise(function(){var Xe=(0,yt.default)(vt.default.mark(function Be(Te,ue){var $t,he,ye,Qt,Wt;return vt.default.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:if(te.prev=0,se.isCancel()){te.next=29;break}return $t=re[Ae-1],te.next=5,se._createBuffer(Gt,$t.start,$t.end);case 5:return he=te.sent,ye={content:he,size:$t.end-$t.start},te.prev=7,te.next=10,se._uploadPart(ve,ne,Ae,ye,Ut);case 10:Qt=te.sent,te.next=18;break;case 13:if(te.prev=13,te.t0=te.catch(7),te.t0.status!==404){te.next=17;break}throw se._makeAbortEvent();case 17:throw te.t0;case 18:if(!(!se.isCancel()&&!Me)){te.next=26;break}if(It.doneParts.push({number:Ae,etag:Qt.res.headers.etag}),!Ut.progress){te.next=23;break}return te.next=23,Ut.progress(ae.length/(we+1),It,Qt.res);case 23:Te({number:Ae,etag:Qt.res.headers.etag}),te.next=27;break;case 26:Te();case 27:te.next=30;break;case 29:Te();case 30:te.next=41;break;case 32:te.prev=32,te.t1=te.catch(0),Wt=new Error,Wt.name=te.t1.name,Wt.message=te.t1.message,Wt.stack=te.t1.stack,Wt.partNum=Ae,ct(te.t1).to(Wt),ue(Wt);case 41:case"end":return te.stop()}},Be,null,[[0,32],[7,13]])}));return function(Be,Te){return Xe.apply(this,arguments)}}())},me=Array.from(new Array(we),function(Ne,se){return se+1}),fe=Kt.map(function(Ne){return Ne.number}),pe=me.filter(function(Ne){return fe.indexOf(Ne)<0}),_e=5,je=Ut.parallel||_e,le.next=17,this._parallel(pe,je,function(Ne){return new Promise(function(se,Ae){ke(Xt,Ne).then(function(Xe){Xe&&Kt.push(Xe),se()}).catch(function(Xe){Ae(Xe)})})});case 17:if(He=le.sent,Me=!0,Se=He.find(function(Ne){return Ne.name==="abort"}),!Se){le.next=22;break}throw Se;case 22:if(!this.isCancel()){le.next=25;break}throw ke=null,this._makeCancelEvent();case 25:if(!(He&&He.length>0)){le.next=28;break}throw He[0].message="Failed to upload some parts with error: ".concat(He[0].toString()," part_num: ").concat(He[0].partNum),He[0];case 28:return le.next=30,this.completeMultipartUpload(ve,ne,Kt,Ut);case 30:return le.abrupt("return",le.sent);case 31:case"end":return le.stop()}},Lt,this)}));function jt(Lt,It){return Mt.apply(this,arguments)}return jt}(),ut._getFileSize=function(){var Mt=(0,yt.default)(vt.default.mark(function Lt(It){return vt.default.wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:if(!at(It)){Xt.next=4;break}return Xt.abrupt("return",It.length);case 4:if(!(E(It)||ot(It))){Xt.next=6;break}return Xt.abrupt("return",It.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return Xt.stop()}},Lt)}));function jt(Lt){return Mt.apply(this,arguments)}return jt}();var wt=rt("stream"),Et=wt.Readable;function At(Mt,jt){if(!(this instanceof At))return new At(Mt,jt);Et.call(this,jt),this.file=Mt,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}xt.inherits(At,Et),At.prototype.readFileAndPush=function(jt){if(this.fileBuffer)for(var Lt=!0;Lt&&this.fileBuffer&&this.startthis.fileBuffer.length?this.fileBuffer.length:Ut,this.start=Ut,Lt=this.push(this.fileBuffer.slice(It,Ut))}},At.prototype._read=function(jt){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file){this.finish||(this.fileBuffer=null,this.finish=!0),this.push(null);return}var Lt=16*1024;jt=jt||Lt;var It=this;this.reader.onload=function(Xt){It.fileBuffer=St.from(new Uint8Array(Xt.target.result)),It.file=null,It.readFileAndPush(jt)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(jt)};function _t(Mt){return Mt.arrayBuffer?Mt.arrayBuffer():new Promise(function(jt,Lt){var It=new FileReader;It.onload=function(Ut){jt(Ut.target.result)},It.onerror=function(Ut){Lt(Ut)},It.readAsArrayBuffer(Mt)})}ut._createBuffer=function(){var Mt=(0,yt.default)(vt.default.mark(function Lt(It,Ut,Xt){var Gt,Yt;return vt.default.wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:if(!(E(It)||ot(It))){ne.next=8;break}return Gt=It.slice(Ut,Xt),ne.next=4,_t(Gt);case 4:return Yt=ne.sent,ne.abrupt("return",St.from(Yt));case 8:if(!at(It)){ne.next=12;break}return ne.abrupt("return",It.subarray(Ut,Xt));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return ne.stop()}},Lt)}));function jt(Lt,It,Ut){return Mt.apply(this,arguments)}return jt}(),ut._getPartSize=function(jt,Lt){var It=1e4,Ut=1*1024*1024;Lt||(Lt=Ut);var Xt=Math.ceil(jt/It);return Lt1&&ae[1]!==void 0?ae[1]:{},Ut=Lt["continuation-token"]||Lt.continuationToken,Ut&&(It.subres=Object.assign({"continuation-token":Ut},It.subres)),Xt=this._objectRequestParams("GET","",It),Xt.query=Object.assign({"list-type":2},Lt),delete Xt.query["continuation-token"],delete Xt.query.continuationToken,Xt.xmlResponse=!0,Xt.successStatuses=[200],Kt.next=11,this.request(Xt);case 11:return Gt=Kt.sent,Yt=Gt.data.Contents||[],Ht=this,Yt&&(Array.isArray(Yt)||(Yt=[Yt]),Yt=Yt.map(function(re){var we=null;return re.Owner&&(we={id:re.Owner.ID,displayName:re.Owner.DisplayName}),{name:re.Key,url:Ht._objectUrl(re.Key),lastModified:re.LastModified,etag:re.ETag,type:re.Type,size:Number(re.Size),storageClass:re.StorageClass,owner:we}})),ne=Gt.data.CommonPrefixes||null,ne&&(Array.isArray(ne)||(ne=[ne]),ne=ne.map(function(re){return re.Prefix})),Kt.abrupt("return",{res:Gt.res,objects:Yt,prefixes:ne,isTruncated:Gt.data.IsTruncated==="true",keyCount:+Gt.data.KeyCount,continuationToken:Gt.data.ContinuationToken||null,nextContinuationToken:Gt.data.NextContinuationToken||null});case 18:case"end":return Kt.stop()}},jt,this)}));function Mt(jt){return _t.apply(this,arguments)}return Mt}(),At.restore=function(){var _t=(0,vt.default)(pt.default.mark(function jt(Lt){var It,Ut,Xt,Gt,Yt=arguments;return pt.default.wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return It=Yt.length>1&&Yt[1]!==void 0?Yt[1]:{type:"Archive"},It=It||{},It.subres=Object.assign({restore:""},It.subres),It.versionId&&(It.subres.versionId=It.versionId),Ut=this._objectRequestParams("POST",Lt,It),It.type==="ColdArchive"&&(Xt={RestoreRequest:{Days:It.Days?It.Days:2,JobParameters:{Tier:It.JobParameters?It.JobParameters:"Standard"}}},Ut.content=Et(Xt,{headers:!0}),Ut.mime="xml"),Ut.successStatuses=[202],ne.next=9,this.request(Ut);case 9:return Gt=ne.sent,ne.abrupt("return",{res:Gt.res});case 11:case"end":return ne.stop()}},jt,this)}));function Mt(jt){return _t.apply(this,arguments)}return Mt}(),At._objectUrl=function(Mt){return this._getReqUrl({bucket:this.options.bucket,object:Mt})},At._objectRequestParams=function(Mt,jt,Lt){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");Lt=Lt||{},jt=this._objectName(jt);var It={object:jt,bucket:this.options.bucket,method:Mt,subres:Lt&&Lt.subres,timeout:Lt&&Lt.timeout,ctx:Lt&&Lt.ctx};return Lt.headers&&(It.headers={},xt(Lt.headers).to(It.headers)),It},At._objectName=function(Mt){return Mt.replace(/^\/+/,"")},At._convertMetaToHeaders=function(Mt,jt){Mt&&Object.keys(Mt).forEach(function(Lt){jt["x-oss-meta-".concat(Lt)]=Mt[Lt]})},At._deleteFileSafe=function(Mt){var jt=this;return new Promise(function(Lt){yt.exists(Mt,function(It){It?yt.unlink(Mt,function(Ut){Ut&&jt.debug("unlink %j error: %s",Mt,Ut,"error"),Lt()}):Lt()})})}},{"../common/callback":24,"../common/image":27,"../common/object/asyncSignatureUrl":31,"../common/object/copyObject":32,"../common/object/delete":33,"../common/object/deleteMulti":34,"../common/object/deleteObjectTagging":35,"../common/object/generateObjectUrl":36,"../common/object/get":37,"../common/object/getACL":38,"../common/object/getBucketVersions":39,"../common/object/getObjectMeta":40,"../common/object/getObjectTagging":41,"../common/object/getObjectUrl":42,"../common/object/getSymlink":43,"../common/object/head":44,"../common/object/putACL":45,"../common/object/putObjectTagging":46,"../common/object/putSymlink":47,"../common/object/signatureUrl":48,"../common/utils/isBlob":64,"../common/utils/isBuffer":65,"../common/utils/isFile":67,"../common/utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.number.constructor.js":286,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339,fs:89,"merge-descriptors":372,mime:374,path:378}],6:[function(rt,kt,Ct){"use strict";Ct.version="6.18.1"},{}],7:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator")),vt=St(rt("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.abortBucketWorm=void 0;var yt=rt("../utils/checkBucketName");function xt(ft,ct){return dt.apply(this,arguments)}function dt(){return dt=(0,vt.default)(pt.default.mark(function ft(ct,lt){var E,z;return pt.default.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:return yt.checkBucketName(ct),E=this._bucketRequestParams("DELETE",ct,"worm",lt),it.next=4,this.request(E);case 4:return z=it.sent,it.abrupt("return",{res:z.res,status:z.status});case 6:case"end":return it.stop()}},ft,this)})),dt.apply(this,arguments)}Ct.abortBucketWorm=xt},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],8:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator")),vt=St(rt("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.completeBucketWorm=void 0;var yt=rt("../utils/checkBucketName");function xt(ft,ct,lt){return dt.apply(this,arguments)}function dt(){return dt=(0,vt.default)(pt.default.mark(function ft(ct,lt,E){var z,ot;return pt.default.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return yt.checkBucketName(ct),z=this._bucketRequestParams("POST",ct,{wormId:lt},E),at.next=4,this.request(z);case 4:return ot=at.sent,at.abrupt("return",{res:ot.res,status:ot.status});case 6:case"end":return at.stop()}},ft,this)})),dt.apply(this,arguments)}Ct.completeBucketWorm=xt},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],9:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.deleteBucketInventory=void 0;var yt=rt("../utils/checkBucketName");function xt(ft,ct){return dt.apply(this,arguments)}function dt(){return dt=(0,vt.default)(pt.default.mark(function ft(ct,lt){var E,z,ot,it,at=arguments;return pt.default.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:return E=at.length>2&&at[2]!==void 0?at[2]:{},z=Object.assign({inventory:"",inventoryId:lt},E.subres),yt.checkBucketName(ct),ot=this._bucketRequestParams("DELETE",ct,z,E),ot.successStatuses=[204],wt.next=7,this.request(ot);case 7:return it=wt.sent,wt.abrupt("return",{status:it.status,res:it.res});case 9:case"end":return wt.stop()}},ft,this)})),dt.apply(this,arguments)}Ct.deleteBucketInventory=xt},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],10:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator")),vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("../utils/checkBucketName"),xt=yt.checkBucketName,dt=Ct;dt.deleteBucketLifecycle=function(){var ft=(0,vt.default)(pt.default.mark(function lt(E,z){var ot,it;return pt.default.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return xt(E),ot=this._bucketRequestParams("DELETE",E,"lifecycle",z),ot.successStatuses=[204],ut.next=5,this.request(ot);case 5:return it=ut.sent,ut.abrupt("return",{res:it.res});case 7:case"end":return ut.stop()}},lt,this)}));function ct(lt,E){return ft.apply(this,arguments)}return ct}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],11:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator")),vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("../utils/checkBucketName"),xt=yt.checkBucketName,dt=Ct;dt.deleteBucketWebsite=function(){var ft=(0,vt.default)(pt.default.mark(function lt(E,z){var ot,it;return pt.default.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return xt(E),ot=this._bucketRequestParams("DELETE",E,"website",z),ot.successStatuses=[204],ut.next=5,this.request(ot);case 5:return it=ut.sent,ut.abrupt("return",{res:it.res});case 7:case"end":return ut.stop()}},lt,this)}));function ct(lt,E){return ft.apply(this,arguments)}return ct}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],12:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator")),vt=St(rt("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.extendBucketWorm=void 0;var yt=rt("../utils/checkBucketName"),xt=rt("../utils/obj2xml");function dt(ct,lt,E,z){return ft.apply(this,arguments)}function ft(){return ft=(0,vt.default)(pt.default.mark(function ct(lt,E,z,ot){var it,at,ut;return pt.default.wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:return yt.checkBucketName(lt),it=this._bucketRequestParams("POST",lt,{wormExtend:"",wormId:E},ot),at={ExtendWormConfiguration:{RetentionPeriodInDays:z}},it.mime="xml",it.content=xt.obj2xml(at,{headers:!0}),it.successStatuses=[200],Et.next=8,this.request(it);case 8:return ut=Et.sent,Et.abrupt("return",{res:ut.res,status:ut.status});case 10:case"end":return Et.stop()}},ct,this)})),ft.apply(this,arguments)}Ct.extendBucketWorm=dt},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],13:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.getBucketInventory=void 0;var yt=rt("../utils/checkBucketName"),xt=rt("../utils/formatInventoryConfig");function dt(ct,lt){return ft.apply(this,arguments)}function ft(){return ft=(0,vt.default)(pt.default.mark(function ct(lt,E){var z,ot,it,at,ut=arguments;return pt.default.wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:return z=ut.length>2&&ut[2]!==void 0?ut[2]:{},ot=Object.assign({inventory:"",inventoryId:E},z.subres),yt.checkBucketName(lt),it=this._bucketRequestParams("GET",lt,ot,z),it.successStatuses=[200],it.xmlResponse=!0,Et.next=8,this.request(it);case 8:return at=Et.sent,Et.abrupt("return",{status:at.status,res:at.res,inventory:xt.formatInventoryConfig(at.data)});case 10:case"end":return Et.stop()}},ct,this)})),ft.apply(this,arguments)}Ct.getBucketInventory=dt},{"../utils/checkBucketName":51,"../utils/formatInventoryConfig":60,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],14:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.array.map.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("../utils/checkBucketName"),xt=yt.checkBucketName,dt=rt("../utils/isArray"),ft=dt.isArray,ct=rt("../utils/formatObjKey"),lt=ct.formatObjKey,E=Ct;E.getBucketLifecycle=function(){var z=(0,vt.default)(pt.default.mark(function it(at,ut){var wt,Et,At;return pt.default.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return xt(at),wt=this._bucketRequestParams("GET",at,"lifecycle",ut),wt.successStatuses=[200],wt.xmlResponse=!0,Mt.next=6,this.request(wt);case 6:return Et=Mt.sent,At=Et.data.Rule||null,At&&(ft(At)||(At=[At]),At=At.map(function(jt){return jt.ID&&(jt.id=jt.ID,delete jt.ID),jt.Tag&&!ft(jt.Tag)&&(jt.Tag=[jt.Tag]),lt(jt,"firstLowerCase")})),Mt.abrupt("return",{rules:At,res:Et.res});case 10:case"end":return Mt.stop()}},it,this)}));function ot(it,at){return z.apply(this,arguments)}return ot}()},{"../utils/checkBucketName":51,"../utils/formatObjKey":61,"../utils/isArray":63,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280}],15:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator")),vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("../utils/checkBucketName"),xt=yt.checkBucketName,dt=Ct;dt.getBucketVersioning=function(){var ft=(0,vt.default)(pt.default.mark(function lt(E,z){var ot,it,at;return pt.default.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:return xt(E),ot=this._bucketRequestParams("GET",E,"versioning",z),ot.xmlResponse=!0,ot.successStatuses=[200],wt.next=6,this.request(ot);case 6:return it=wt.sent,at=it.data.Status,wt.abrupt("return",{status:it.status,versionStatus:at,res:it.res});case 9:case"end":return wt.stop()}},lt,this)}));function ct(lt,E){return ft.apply(this,arguments)}return ct}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],16:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator")),vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("../utils/checkBucketName"),xt=yt.checkBucketName,dt=rt("../utils/isObject"),ft=dt.isObject,ct=Ct;ct.getBucketWebsite=function(){var lt=(0,vt.default)(pt.default.mark(function z(ot,it){var at,ut,wt;return pt.default.wrap(function(At){for(;;)switch(At.prev=At.next){case 0:return xt(ot),at=this._bucketRequestParams("GET",ot,"website",it),at.successStatuses=[200],at.xmlResponse=!0,At.next=6,this.request(at);case 6:return ut=At.sent,wt=[],ut.data.RoutingRules&&ut.data.RoutingRules.RoutingRule&&(ft(ut.data.RoutingRules.RoutingRule)?wt=[ut.data.RoutingRules.RoutingRule]:wt=ut.data.RoutingRules.RoutingRule),At.abrupt("return",{index:ut.data.IndexDocument&&ut.data.IndexDocument.Suffix||"",supportSubDir:ut.data.IndexDocument&&ut.data.IndexDocument.SupportSubDir||"false",type:ut.data.IndexDocument&&ut.data.IndexDocument.Type,routingRules:wt,error:ut.data.ErrorDocument&&ut.data.ErrorDocument.Key||null,res:ut.res});case 10:case"end":return At.stop()}},z,this)}));function E(z,ot){return lt.apply(this,arguments)}return E}()},{"../utils/checkBucketName":51,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],17:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.getBucketWorm=void 0;var yt=rt("../utils/checkBucketName"),xt=rt("../utils/dataFix");function dt(ct,lt){return ft.apply(this,arguments)}function ft(){return ft=(0,vt.default)(pt.default.mark(function ct(lt,E){var z,ot;return pt.default.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return yt.checkBucketName(lt),z=this._bucketRequestParams("GET",lt,"worm",E),z.successStatuses=[200],z.xmlResponse=!0,at.next=6,this.request(z);case 6:return ot=at.sent,xt.dataFix(ot.data,{lowerFirst:!0,rename:{RetentionPeriodInDays:"days"}}),at.abrupt("return",Object.assign(Object.assign({},ot.data),{res:ot.res,status:ot.status}));case 9:case"end":return at.stop()}},ct,this)})),ft.apply(this,arguments)}Ct.getBucketWorm=dt},{"../utils/checkBucketName":51,"../utils/dataFix":57,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],18:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator")),vt=St(rt("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.initiateBucketWorm=void 0;var yt=rt("../utils/obj2xml"),xt=rt("../utils/checkBucketName");function dt(ct,lt,E){return ft.apply(this,arguments)}function ft(){return ft=(0,vt.default)(pt.default.mark(function ct(lt,E,z){var ot,it,at;return pt.default.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:return xt.checkBucketName(lt),ot=this._bucketRequestParams("POST",lt,"worm",z),it={InitiateWormConfiguration:{RetentionPeriodInDays:E}},ot.mime="xml",ot.content=yt.obj2xml(it,{headers:!0}),ot.successStatuses=[200],wt.next=8,this.request(ot);case 8:return at=wt.sent,wt.abrupt("return",{res:at.res,wormId:at.res.headers["x-oss-worm-id"],status:at.status});case 10:case"end":return wt.stop()}},ct,this)})),ft.apply(this,arguments)}Ct.initiateBucketWorm=dt},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],19:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.listBucketInventory=void 0;var yt=rt("../utils/checkBucketName"),xt=rt("../utils/formatInventoryConfig");function dt(ct){return ft.apply(this,arguments)}function ft(){return ft=(0,vt.default)(pt.default.mark(function ct(lt){var E,z,ot,it,at,ut,wt,Et,At=arguments;return pt.default.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return E=At.length>1&&At[1]!==void 0?At[1]:{},z=E.continuationToken,ot=Object.assign({inventory:""},z&&{"continuation-token":z},E.subres),yt.checkBucketName(lt),it=this._bucketRequestParams("GET",lt,ot,E),it.successStatuses=[200],it.xmlResponse=!0,Mt.next=9,this.request(it);case 9:return at=Mt.sent,ut=at.data,wt=at.res,Et=at.status,Mt.abrupt("return",{isTruncated:ut.IsTruncated==="true",nextContinuationToken:ut.NextContinuationToken,inventoryList:xt.formatInventoryConfig(ut.InventoryConfiguration,!0),status:Et,res:wt});case 12:case"end":return Mt.stop()}},ct,this)})),ft.apply(this,arguments)}Ct.listBucketInventory=dt},{"../utils/checkBucketName":51,"../utils/formatInventoryConfig":60,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],20:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js"),rt("core-js/modules/es.array.concat.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.putBucketInventory=void 0;var yt=rt("../utils/checkBucketName"),xt=rt("../utils/obj2xml");function dt(ct,lt){return ft.apply(this,arguments)}function ft(){return ft=(0,vt.default)(pt.default.mark(function ct(lt,E){var z,ot,it,at,ut,wt,Et,At,_t,Mt,jt,Lt=arguments;return pt.default.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:return z=Lt.length>2&&Lt[2]!==void 0?Lt[2]:{},ot=Object.assign({inventory:"",inventoryId:E.id},z.subres),yt.checkBucketName(lt),it=E.OSSBucketDestination,at=E.optionalFields,ut=E.includedObjectVersions,wt="acs:oss:::",Et="acs:ram::".concat(it.accountId,":role/"),At={InventoryConfiguration:{Id:E.id,IsEnabled:E.isEnabled,Filter:{Prefix:E.prefix||""},Destination:{OSSBucketDestination:{Format:it.format,AccountId:it.accountId,RoleArn:"".concat(Et).concat(it.rolename),Bucket:"".concat(wt).concat(it.bucket),Prefix:it.prefix||"",Encryption:it.encryption||""}},Schedule:{Frequency:E.frequency},IncludedObjectVersions:ut,OptionalFields:{Field:(at==null?void 0:at.field)||[]}}},_t=xt.obj2xml(At,{headers:!0,firstUpperCase:!0}),Mt=this._bucketRequestParams("PUT",lt,ot,z),Mt.successStatuses=[200],Mt.mime="xml",Mt.content=_t,Ut.next=14,this.request(Mt);case 14:return jt=Ut.sent,Ut.abrupt("return",{status:jt.status,res:jt.res});case 16:case"end":return Ut.stop()}},ct,this)})),ft.apply(this,arguments)}Ct.putBucketInventory=dt},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.assign.js":287}],21:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.array.includes.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("../utils/checkBucketName"),xt=yt.checkBucketName,dt=rt("../utils/isArray"),ft=dt.isArray,ct=rt("../utils/deepCopy"),lt=ct.deepCopy,E=rt("../utils/isObject"),z=E.isObject,ot=rt("../utils/obj2xml"),it=ot.obj2xml,at=rt("../utils/checkObjectTag"),ut=at.checkObjectTag,wt=rt("../utils/getStrBytesCount"),Et=wt.getStrBytesCount,At=Ct;At.putBucketLifecycle=function(){var It=(0,vt.default)(pt.default.mark(function Xt(Gt,Yt,Ht){var ne,ae,ve,Kt,re;return pt.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:if(xt(Gt),ft(Yt)){Me.next=3;break}throw new Error("rules must be Array");case 3:return ne=this._bucketRequestParams("PUT",Gt,"lifecycle",Ht),ae=[],ve={LifecycleConfiguration:{Rule:ae}},Yt.forEach(function(ke){_t(ke),Lt(ke),ke.id&&(ke.ID=ke.id,delete ke.id),ae.push(ke)}),Kt=it(ve,{headers:!0,firstUpperCase:!0}),ne.content=Kt,ne.mime="xml",ne.successStatuses=[200],Me.next=13,this.request(ne);case 13:return re=Me.sent,Me.abrupt("return",{res:re.res});case 15:case"end":return Me.stop()}},Xt,this)}));function Ut(Xt,Gt,Yt){return It.apply(this,arguments)}return Ut}();function _t(It){It.days&&(It.expiration={days:It.days}),It.date&&(It.expiration={createdBeforeDate:It.date})}function Mt(It,Ut){var Xt=It.days,Gt=It.createdBeforeDate;if(!Xt&&!Gt)throw new Error("".concat(Ut," must includes days or createdBeforeDate"));if(Xt&&!/^[1-9][0-9]*$/.test(Xt))throw new Error("days must be a positive integer");if(Gt&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(Gt))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function jt(It){if(!ft(It)&&!z(It))throw new Error("tag must be Object or Array");It=z(It)?[It]:It;var Ut={},Xt=lt(It);Xt.forEach(function(Gt){Ut[Gt.key]=Gt.value}),ut(Ut)}function Lt(It){if(It.id&&Et(It.id)>255)throw new Error("ID is composed of 255 bytes at most");if(It.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(It.status))throw new Error("Status must be Enabled or Disabled");if(It.transition){if(!["IA","Archive"].includes(It.transition.storageClass))throw new Error("StorageClass must be IA or Archive");Mt(It.transition,"Transition")}if(It.expiration){if(!It.expiration.expiredObjectDeleteMarker)Mt(It.expiration,"Expiration");else if(It.expiration.days||It.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(It.abortMultipartUpload&&Mt(It.abortMultipartUpload,"AbortMultipartUpload"),!It.expiration&&!It.abortMultipartUpload&&!It.transition&&!It.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(It.tag){if(It.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");jt(It.tag)}}},{"../utils/checkBucketName":51,"../utils/checkObjectTag":54,"../utils/deepCopy":58,"../utils/getStrBytesCount":62,"../utils/isArray":63,"../utils/isObject":70,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/web.dom-collections.for-each.js":339}],22:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.array.includes.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("../utils/checkBucketName"),xt=yt.checkBucketName,dt=rt("../utils/obj2xml"),ft=dt.obj2xml,ct=Ct;ct.putBucketVersioning=function(){var lt=(0,vt.default)(pt.default.mark(function z(ot,it){var at,ut,wt,Et,At=arguments;return pt.default.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:if(at=At.length>2&&At[2]!==void 0?At[2]:{},xt(ot),["Enabled","Suspended"].includes(it)){Mt.next=4;break}throw new Error("status must be Enabled or Suspended");case 4:return ut=this._bucketRequestParams("PUT",ot,"versioning",at),wt={VersioningConfiguration:{Status:it}},ut.mime="xml",ut.content=ft(wt,{headers:!0}),Mt.next=10,this.request(ut);case 10:return Et=Mt.sent,Mt.abrupt("return",{res:Et.res,status:Et.status});case 12:case"end":return Mt.stop()}},z,this)}));function E(z,ot){return lt.apply(this,arguments)}return E}()},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.includes.js":277}],23:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator")),vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("../utils/checkBucketName"),xt=yt.checkBucketName,dt=rt("../utils/obj2xml"),ft=dt.obj2xml,ct=rt("../utils/isArray"),lt=ct.isArray,E=Ct;E.putBucketWebsite=function(){var z=(0,vt.default)(pt.default.mark(function it(at){var ut,wt,Et,At,_t,Mt,jt,Lt=arguments;return pt.default.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:if(ut=Lt.length>1&&Lt[1]!==void 0?Lt[1]:{},wt=Lt.length>2?Lt[2]:void 0,xt(at),Et=this._bucketRequestParams("PUT",at,"website",wt),At={Suffix:ut.index||"index.html"},_t={IndexDocument:At},Mt={WebsiteConfiguration:_t},ut.supportSubDir&&(At.SupportSubDir=ut.supportSubDir),ut.type&&(At.Type=ut.type),ut.error&&(_t.ErrorDocument={Key:ut.error}),ut.routingRules===void 0){Ut.next=14;break}if(lt(ut.routingRules)){Ut.next=13;break}throw new Error("RoutingRules must be Array");case 13:_t.RoutingRules={RoutingRule:ut.routingRules};case 14:return Mt=ft(Mt),Et.content=Mt,Et.mime="xml",Et.successStatuses=[200],Ut.next=20,this.request(Et);case 20:return jt=Ut.sent,Ut.abrupt("return",{res:jt.res});case 22:case"end":return Ut.stop()}},it,this)}));function ot(it){return z.apply(this,arguments)}return ot}()},{"../utils/checkBucketName":51,"../utils/isArray":63,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],24:[function(rt,kt,Ct){(function(St){(function(){"use strict";rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/es.regexp.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.object.keys.js"),Ct.encodeCallback=function(vt,yt){if(vt.headers=vt.headers||{},!Object.prototype.hasOwnProperty.call(vt.headers,"x-oss-callback")&&yt.callback){var xt={callbackUrl:encodeURI(yt.callback.url),callbackBody:yt.callback.body};yt.callback.host&&(xt.callbackHost=yt.callback.host),yt.callback.contentType&&(xt.callbackBodyType=yt.callback.contentType);var dt=St.from(JSON.stringify(xt)).toString("base64");if(vt.headers["x-oss-callback"]=dt,yt.callback.customValue){var ft={};Object.keys(yt.callback.customValue).forEach(function(ct){ft["x:".concat(ct)]=yt.callback.customValue[ct].toString()}),vt.headers["x-oss-callback-var"]=St.from(JSON.stringify(ft)).toString("base64")}}}}).call(this)}).call(this,rt("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/web.dom-collections.for-each.js":339}],25:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.array.concat.js"),rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.replace.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js");var St=function(lt){return lt&<.__esModule?lt:{default:lt}};Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.getReqUrl=void 0;var pt=St(rt("copy-to")),vt=St(rt("url")),yt=St(rt("merge-descriptors")),xt=St(rt("is-type-of")),dt=rt("../utils/isIP"),ft=rt("../utils/checkConfigValid");function ct(lt){var E={},z=this.options.cname;ft.checkConfigValid(this.options.endpoint,"endpoint"),pt.default(this.options.endpoint,!1).to(E),lt.bucket&&!z&&!dt.isIP(E.hostname)&&!this.options.sldEnable&&(E.host="".concat(lt.bucket,".").concat(E.host));var ot="/";lt.bucket&&this.options.sldEnable&&(ot+="".concat(lt.bucket,"/")),lt.object&&(ot+=this._escape(lt.object).replace(/\+/g,"%2B")),E.pathname=ot;var it={};if(lt.query&&yt.default(it,lt.query),lt.subres){var at={};xt.default.string(lt.subres)?at[lt.subres]="":xt.default.array(lt.subres)?lt.subres.forEach(function(ut){at[ut]=""}):at=lt.subres,yt.default(it,at)}return E.query=it,vt.default.format(E)}Ct.getReqUrl=ct},{"../utils/checkConfigValid":52,"../utils/isIP":69,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339,"is-type-of":466,"merge-descriptors":372,url:472}],26:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.array.concat.js"),rt("core-js/modules/es.object.assign.js"),rt("core-js/modules/es.string.trim.js");var St=rt("humanize-ms"),pt=rt("url"),vt=rt("../utils/checkBucketName"),yt=vt.checkBucketName,xt=rt("../utils/setRegion"),dt=xt.setRegion,ft=rt("../utils/checkConfigValid"),ct=ft.checkConfigValid;function lt(E,z){ct(E,"endpoint");var ot=pt.parse(E);if(ot.protocol||(ot=pt.parse("http".concat(z?"s":"","://").concat(E))),ot.protocol!=="http:"&&ot.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return ot}kt.exports=function(E){if(!E||!E.accessKeyId||!E.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");E.stsToken&&!E.refreshSTSToken&&!E.refreshSTSTokenInterval&&console.warn("It's recommended to set 'refreshSTSToken' and 'refreshSTSTokenInterval' to refresh stsToken\u3001accessKeyId\u3001accessKeySecret automatically when sts token has expired"),E.bucket&&yt(E.bucket);var z=Object.assign({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1,headerEncoding:"utf-8",refreshSTSToken:null,refreshSTSTokenInterval:6e4*5,retryMax:0},E);if(z.accessKeyId=z.accessKeyId.trim(),z.accessKeySecret=z.accessKeySecret.trim(),z.timeout&&(z.timeout=St(z.timeout)),z.endpoint)z.endpoint=lt(z.endpoint,z.secure);else if(z.region)z.endpoint=dt(z.region,z.internal,z.secure);else throw new Error("require options.endpoint or options.region");return z.inited=!0,z}},{"../utils/checkBucketName":51,"../utils/checkConfigValid":52,"../utils/setRegion":75,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.string.trim.js":308,"humanize-ms":356,url:472}],27:[function(rt,kt,Ct){"use strict";var St=rt("merge-descriptors"),pt=Ct;St(pt,rt("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":372}],28:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.array.concat.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("../utils/checkBucketName"),xt=yt.checkBucketName,dt=rt("querystring"),ft=rt("js-base64"),ct=ft.Base64.encode,lt=Ct;lt.processObjectSave=function(){var z=(0,vt.default)(pt.default.mark(function it(at,ut,wt,Et){var At,_t,Mt,jt;return pt.default.wrap(function(It){for(;;)switch(It.prev=It.next){case 0:return E(at,"sourceObject"),E(ut,"targetObject"),E(wt,"process"),ut=this._objectName(ut),Et&&xt(Et),At=this._objectRequestParams("POST",at,{subres:"x-oss-process"}),_t=Et?",b_".concat(ct(Et)):"",ut=ct(ut),Mt={"x-oss-process":"".concat(wt,"|sys/saveas,o_").concat(ut).concat(_t)},At.content=dt.stringify(Mt),It.next=12,this.request(At);case 12:return jt=It.sent,It.abrupt("return",{res:jt.res,status:jt.res.status});case 14:case"end":return It.stop()}},it,this)}));function ot(it,at,ut,wt){return z.apply(this,arguments)}return ot}();function E(z,ot){if(!z)throw new Error("".concat(ot," is required"));if(typeof z!="string")throw new Error("".concat(ot," must be String"))}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"js-base64":371,querystring:385}],29:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.array.concat.js"),rt("core-js/modules/es.function.name.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/es.promise.js"),rt("core-js/modules/es.array.from.js"),rt("core-js/modules/es.string.iterator.js"),rt("core-js/modules/es.array.map.js"),rt("core-js/modules/es.array.filter.js"),rt("core-js/modules/es.array.find.js"),rt("core-js/modules/es.regexp.to-string.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("debug")("ali-oss:multipart-copy"),xt=rt("copy-to"),dt=Ct;dt.uploadPartCopy=function(){var ft=(0,vt.default)(pt.default.mark(function lt(E,z,ot,it,at){var ut,wt,Et,At,_t,Mt=arguments;return pt.default.wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:return ut=Mt.length>5&&Mt[5]!==void 0?Mt[5]:{},ut.headers=ut.headers||{},wt=ut.versionId||ut.subres&&ut.subres.versionId||null,wt?Et="/".concat(at.sourceBucketName,"/").concat(encodeURIComponent(at.sourceKey),"?versionId=").concat(wt):Et="/".concat(at.sourceBucketName,"/").concat(encodeURIComponent(at.sourceKey)),ut.headers["x-oss-copy-source"]=Et,it&&(ut.headers["x-oss-copy-source-range"]="bytes=".concat(it)),ut.subres={partNumber:ot,uploadId:z},At=this._objectRequestParams("PUT",E,ut),At.mime=ut.mime,At.successStatuses=[200],Lt.next=12,this.request(At);case 12:return _t=Lt.sent,Lt.abrupt("return",{name:E,etag:_t.res.headers.etag,res:_t.res});case 14:case"end":return Lt.stop()}},lt,this)}));function ct(lt,E,z,ot,it){return ft.apply(this,arguments)}return ct}(),dt.multipartUploadCopy=function(){var ft=(0,vt.default)(pt.default.mark(function lt(E,z){var ot,it,at,ut,wt,Et,At,_t,Mt,jt,Lt,It,Ut=arguments;return pt.default.wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:return ot=Ut.length>2&&Ut[2]!==void 0?Ut[2]:{},this.resetCancelFlag(),it=ot.versionId,at=it===void 0?null:it,ut={versionId:at},Gt.next=6,this._getObjectMeta(z.sourceBucketName,z.sourceKey,ut);case 6:if(wt=Gt.sent,Et=wt.res.headers["content-length"],z.startOffset=z.startOffset||0,z.endOffset=z.endOffset||Et,!(ot.checkpoint&&ot.checkpoint.uploadId)){Gt.next=14;break}return Gt.next=13,this._resumeMultipartCopy(ot.checkpoint,z,ot);case 13:return Gt.abrupt("return",Gt.sent);case 14:if(At=102400,_t=z.endOffset-z.startOffset,!(_t0)){Me.next=40;break}throw re=ve[0],re.message="Failed to copy some parts with error: ".concat(re.toString()," part_num: ").concat(re.partNum),re;case 40:return Me.next=42,this.completeMultipartUpload(Mt,At,_t,ot);case 42:return Me.abrupt("return",Me.sent);case 43:case"end":return Me.stop()}},lt,this)}));function ct(lt,E,z){return ft.apply(this,arguments)}return ct}(),dt._divideMultipartCopyParts=function(ct,lt,E){for(var z=Math.ceil(ct/lt),ot=[],it=0;it +`;return At+="",Et.content=At,Et.mime="xml",Et.successStatuses=[200],Lt.next=10,this.request(Et);case 10:return Mt=Lt.sent,Lt.abrupt("return",{res:Mt.res});case 12:case"end":return Lt.stop()}},ot,this)}));function z(ot,it,at,ut){return E.apply(this,arguments)}return z}(),ft.getBucketReferer=function(){var E=(0,vt.default)(pt.default.mark(function ot(it,at){var ut,wt,Et;return pt.default.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return ut=this._bucketRequestParams("GET",it,"referer",at),ut.successStatuses=[200],ut.xmlResponse=!0,_t.next=5,this.request(ut);case 5:return wt=_t.sent,Et=wt.data.RefererList.Referer||null,Et&&(ct(Et)||(Et=[Et])),_t.abrupt("return",{allowEmpty:wt.data.AllowEmptyReferer==="true",referers:Et,res:wt.res});case 9:case"end":return _t.stop()}},ot,this)}));function z(ot,it){return E.apply(this,arguments)}return z}(),ft.deleteBucketReferer=function(){var E=(0,vt.default)(pt.default.mark(function ot(it,at){return pt.default.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:return wt.next=2,this.putBucketReferer(it,!0,null,at);case 2:return wt.abrupt("return",wt.sent);case 3:case"end":return wt.stop()}},ot,this)}));function z(ot,it){return E.apply(this,arguments)}return z}(),ft._bucketRequestParams=function(z,ot,it,at){return{method:z,bucket:ot,subres:it,timeout:at&&at.timeout,ctx:at&&at.ctx}}},{"../common/utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,assert:82,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],3:[function(rt,kt,Ct){(function(St,pt){(function(){"use strict";var vt=rt("@babel/runtime/helpers/interopRequireDefault"),yt=vt(rt("@babel/runtime/regenerator")),xt=vt(rt("@babel/runtime/helpers/asyncToGenerator"));rt("core-js/modules/es.function.name.js"),rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.split.js"),rt("core-js/modules/es.object.assign.js"),rt("core-js/modules/es.array.includes.js"),rt("core-js/modules/es.string.replace.js"),rt("core-js/modules/es.array.concat.js"),rt("core-js/modules/es.symbol.js"),rt("core-js/modules/es.symbol.description.js"),rt("core-js/modules/es.array.slice.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/es.promise.js"),rt("core-js/modules/es.regexp.to-string.js");var dt=rt("debug")("ali-oss"),ft=rt("xml2js"),ct=rt("agentkeepalive"),lt=rt("merge-descriptors"),E=rt("platform"),z=rt("utility"),ot=rt("urllib"),it=rt("./version"),at=rt("bowser"),ut=rt("../common/signUtils"),wt=rt("../common/client/initOptions"),Et=rt("../common/utils/createRequest"),At=Et.createRequest,_t=rt("../common/utils/encoder"),Mt=_t.encoder,jt=rt("../common/client/getReqUrl"),Lt=jt.getReqUrl,It=rt("../common/utils/setSTSToken"),Ut=It.setSTSToken,Xt=rt("../common/utils/retry"),Gt=Xt.retry,Vt=rt("../common/utils/isFunction"),Ht=Vt.isFunction,ne=new ct;function se(){var Me=E.name,ge=E.version;Me&&Me.toLowerCase&&Me.toLowerCase()==="ie"&&ge.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function ve(){return location&&location.protocol==="https:"}function Kt(Me,ge){if(se(),!(this instanceof Kt))return new Kt(Me,ge);Me&&Me.inited?this.options=Me:this.options=Kt.initOptions(Me),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=ot,this.agent=this.options.agent||ne),this.ctx=ge,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}kt.exports=Kt,Kt.initOptions=function(ge){ge.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var fe=Object.assign({secure:ve(),useFetch:!1},ge);return wt(fe)};var re=Kt.prototype;re.debug=dt,lt(re,rt("./object")),lt(re,rt("./bucket")),lt(re,rt("../common/bucket/getBucketWebsite")),lt(re,rt("../common/bucket/putBucketWebsite")),lt(re,rt("../common/bucket/deleteBucketWebsite")),lt(re,rt("../common/bucket/getBucketLifecycle")),lt(re,rt("../common/bucket/putBucketLifecycle")),lt(re,rt("../common/bucket/deleteBucketLifecycle")),lt(re,rt("../common/bucket/putBucketVersioning")),lt(re,rt("../common/bucket/getBucketVersioning")),lt(re,rt("../common/bucket/getBucketInventory")),lt(re,rt("../common/bucket/deleteBucketInventory")),lt(re,rt("../common/bucket/listBucketInventory")),lt(re,rt("../common/bucket/putBucketInventory")),lt(re,rt("../common/bucket/abortBucketWorm")),lt(re,rt("../common/bucket/completeBucketWorm")),lt(re,rt("../common/bucket/extendBucketWorm")),lt(re,rt("../common/bucket/getBucketWorm")),lt(re,rt("../common/bucket/initiateBucketWorm")),lt(re,rt("./managed-upload")),lt(re,rt("../common/multipart-copy")),lt(re,rt("../common/multipart")),lt(re,rt("../common/parallel")),re.signature=function(ge){return this.debug("authorization stringToSign: %s",ge,"info"),ut.computeSignature(this.options.accessKeySecret,ge,this.options.headerEncoding)},re._getReqUrl=Lt,re.authorization=function(ge,fe,de,_e){var Oe=ut.buildCanonicalString(ge.toUpperCase(),fe,{headers:_e,parameters:de});return ut.authorization(this.options.accessKeyId,this.options.accessKeySecret,Oe,this.options.headerEncoding)},re.request=function(){var Me=(0,xt.default)(yt.default.mark(function ge(fe){var de=this;return yt.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(!this.options.retryMax){Oe.next=6;break}return Oe.next=3,Gt(we.bind(this),this.options.retryMax,{errorHandler:function(Se){var xe=function(Ne){if(fe.stream)return!1;var ae=[-1,-2].includes(Ne.status),Ae=de.options.requestErrorRetryHandle||function(){return!0};return ae&&Ae(Ne)};return!!xe(Se)}})(fe);case 3:return Oe.abrupt("return",Oe.sent);case 6:return Oe.abrupt("return",we.call(this,fe));case 7:case"end":return Oe.stop()}},ge,this)}));return function(ge){return Me.apply(this,arguments)}}();function we(Me){return ke.apply(this,arguments)}function ke(){return ke=(0,xt.default)(yt.default.mark(function Me(ge){var fe,de,_e,Oe,He,Se;return yt.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:if(!(this.options.stsToken&&Ht(this.options.refreshSTSToken))){le.next=3;break}return le.next=3,Ut.call(this);case 3:return fe=At.call(this,ge),this.options.useFetch||(fe.params.mode="disable-fetch"),Oe=!!ge.stream,le.prev=6,le.next=9,this.urllib.request(fe.url,fe.params);case 9:de=le.sent,this.debug("response %s %s, got %s, headers: %j",ge.method,fe.url,de.status,de.headers,"info"),le.next=16;break;case 13:le.prev=13,le.t0=le.catch(6),_e=le.t0;case 16:if(!(de&&ge.successStatuses&&ge.successStatuses.indexOf(de.status)===-1)){le.next=28;break}return le.next=19,this.requestError(de);case 19:if(He=le.sent,!(He.code==="RequestTimeTooSkewed"&&!Oe)){le.next=25;break}return this.options.amendTimeSkewed=+new Date(He.serverTime)-new Date,le.next=24,this.request(ge);case 24:return le.abrupt("return",le.sent);case 25:He.params=ge,le.next=32;break;case 28:if(!_e){le.next=32;break}return le.next=31,this.requestError(_e);case 31:He=le.sent;case 32:if(!He){le.next=34;break}throw He;case 34:if(!ge.xmlResponse){le.next=39;break}return le.next=37,this.parseXML(de.data);case 37:Se=le.sent,de.data=Se;case 39:return le.abrupt("return",de);case 40:case"end":return le.stop()}},Me,this,[[6,13]])})),ke.apply(this,arguments)}re._getResource=function(ge){var fe="/";return ge.bucket&&(fe+="".concat(ge.bucket,"/")),ge.object&&(fe+=Mt(ge.object,this.options.headerEncoding)),fe},re._escape=function(ge){return z.encodeURIComponent(ge).replace(/%2F/g,"/")},re._getUserAgent=function(){var ge=pt&&pt.browser?"js":"nodejs",fe="aliyun-sdk-".concat(ge,"/").concat(it.version),de=E.description;return!de&&pt&&(de="Node.js ".concat(pt.version.slice(1)," on ").concat(pt.platform," ").concat(pt.arch)),this._checkUserAgent("".concat(fe," ").concat(de))},re._checkUserAgent=function(ge){var fe=ge.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return fe},re.checkBrowserAndVersion=function(ge,fe){return at.name===ge&&at.version.split(".")[0]===fe},re.parseXML=function(ge){return new Promise(function(fe,de){St.isBuffer(ge)&&(ge=ge.toString()),ft.parseString(ge,{explicitRoot:!1,explicitArray:!1},function(_e,Oe){_e?de(_e):fe(Oe)})})},re.requestError=function(){var Me=(0,xt.default)(yt.default.mark(function fe(de){var _e,Oe,He,Se;return yt.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:if(_e=null,!(!de.data||!de.data.length)){le.next=5;break}de.status===-1||de.status===-2?(_e=new Error(de.message),_e.name=de.name,_e.status=de.status,_e.code=de.name):(de.status===404?(_e=new Error("Object not exists"),_e.name="NoSuchKeyError",_e.status=404,_e.code="NoSuchKey"):de.status===412?(_e=new Error("Pre condition failed"),_e.name="PreconditionFailedError",_e.status=412,_e.code="PreconditionFailed"):(_e=new Error("Unknow error, status: ".concat(de.status)),_e.name="UnknownError",_e.status=de.status),_e.requestId=de.headers["x-oss-request-id"],_e.host=""),le.next=32;break;case 5:return Oe=String(de.data),this.debug("request response error data: %s",Oe,"error"),le.prev=7,le.next=10,this.parseXML(Oe);case 10:if(le.t0=le.sent,le.t0){le.next=13;break}le.t0={};case 13:He=le.t0,le.next=23;break;case 16:return le.prev=16,le.t1=le.catch(7),this.debug(Oe,"error"),le.t1.message+=` +raw xml: `.concat(Oe),le.t1.status=de.status,le.t1.requestId=de.headers["x-oss-request-id"],le.abrupt("return",le.t1);case 23:Se=He.Message||"unknow request error, status: ".concat(de.status),He.Condition&&(Se+=" (condition: ".concat(He.Condition,")")),_e=new Error(Se),_e.name=He.Code?"".concat(He.Code,"Error"):"UnknownError",_e.status=de.status,_e.code=He.Code,_e.requestId=He.RequestId,_e.hostId=He.HostId,_e.serverTime=He.ServerTime;case 32:return this.debug("generate error %j",_e,"error"),le.abrupt("return",_e);case 34:case"end":return le.stop()}},fe,this,[[7,16]])}));function ge(fe){return Me.apply(this,arguments)}return ge}()}).call(this)}).call(this,{isBuffer:rt("../../node_modules/is-buffer/index.js")},rt("_process"))},{"../../node_modules/is-buffer/index.js":366,"../common/bucket/abortBucketWorm":7,"../common/bucket/completeBucketWorm":8,"../common/bucket/deleteBucketInventory":9,"../common/bucket/deleteBucketLifecycle":10,"../common/bucket/deleteBucketWebsite":11,"../common/bucket/extendBucketWorm":12,"../common/bucket/getBucketInventory":13,"../common/bucket/getBucketLifecycle":14,"../common/bucket/getBucketVersioning":15,"../common/bucket/getBucketWebsite":16,"../common/bucket/getBucketWorm":17,"../common/bucket/initiateBucketWorm":18,"../common/bucket/listBucketInventory":19,"../common/bucket/putBucketInventory":20,"../common/bucket/putBucketLifecycle":21,"../common/bucket/putBucketVersioning":22,"../common/bucket/putBucketWebsite":23,"../common/client/getReqUrl":25,"../common/client/initOptions":26,"../common/multipart":30,"../common/multipart-copy":29,"../common/parallel":49,"../common/signUtils":50,"../common/utils/createRequest":56,"../common/utils/encoder":59,"../common/utils/isFunction":68,"../common/utils/retry":74,"../common/utils/setSTSToken":76,"./bucket":2,"./managed-upload":4,"./object":5,"./version":6,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,agentkeepalive:81,bowser:88,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/es.string.split.js":307,"core-js/modules/es.symbol.description.js":310,"core-js/modules/es.symbol.js":313,debug:465,"merge-descriptors":372,platform:379,urllib:475,utility:474,xml2js:426}],4:[function(rt,kt,Ct){(function(St){(function(){"use strict";var pt=rt("@babel/runtime/helpers/interopRequireDefault"),vt=pt(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.function.name.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/es.promise.js"),rt("core-js/modules/es.array.from.js"),rt("core-js/modules/es.string.iterator.js"),rt("core-js/modules/es.array.map.js"),rt("core-js/modules/es.array.filter.js"),rt("core-js/modules/es.array.find.js"),rt("core-js/modules/es.array.concat.js"),rt("core-js/modules/es.regexp.to-string.js"),rt("core-js/modules/es.array.slice.js"),rt("core-js/modules/es.array.iterator.js"),rt("core-js/modules/es.array-buffer.slice.js"),rt("core-js/modules/es.typed-array.uint8-array.js"),rt("core-js/modules/es.typed-array.copy-within.js"),rt("core-js/modules/es.typed-array.every.js"),rt("core-js/modules/es.typed-array.fill.js"),rt("core-js/modules/es.typed-array.filter.js"),rt("core-js/modules/es.typed-array.find.js"),rt("core-js/modules/es.typed-array.find-index.js"),rt("core-js/modules/es.typed-array.for-each.js"),rt("core-js/modules/es.typed-array.includes.js"),rt("core-js/modules/es.typed-array.index-of.js"),rt("core-js/modules/es.typed-array.iterator.js"),rt("core-js/modules/es.typed-array.join.js"),rt("core-js/modules/es.typed-array.last-index-of.js"),rt("core-js/modules/es.typed-array.map.js"),rt("core-js/modules/es.typed-array.reduce.js"),rt("core-js/modules/es.typed-array.reduce-right.js"),rt("core-js/modules/es.typed-array.reverse.js"),rt("core-js/modules/es.typed-array.set.js"),rt("core-js/modules/es.typed-array.slice.js"),rt("core-js/modules/es.typed-array.some.js"),rt("core-js/modules/es.typed-array.sort.js"),rt("core-js/modules/es.typed-array.subarray.js"),rt("core-js/modules/es.typed-array.to-locale-string.js"),rt("core-js/modules/es.typed-array.to-string.js");var yt=pt(rt("@babel/runtime/helpers/asyncToGenerator")),xt=rt("util"),dt=rt("path"),ft=rt("mime"),ct=rt("copy-to"),lt=rt("../common/utils/isBlob"),E=lt.isBlob,z=rt("../common/utils/isFile"),ot=z.isFile,it=rt("../common/utils/isBuffer"),at=it.isBuffer,ut=Ct;ut.multipartUpload=function(){var Mt=(0,yt.default)(vt.default.mark(function Lt(It,Ut){var Xt,Gt,Vt,Ht,ne,se,ve,Kt,re,we=arguments;return vt.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:if(Xt=we.length>2&&we[2]!==void 0?we[2]:{},this.resetCancelFlag(),Xt.disabledMD5=Xt.disabledMD5===void 0?!0:!!Xt.disabledMD5,!(Xt.checkpoint&&Xt.checkpoint.uploadId)){Me.next=8;break}return Ut&&ot(Ut)&&(Xt.checkpoint.file=Ut),Me.next=7,this._resumeMultipart(Xt.checkpoint,Xt);case 7:return Me.abrupt("return",Me.sent);case 8:return Gt=102400,Xt.mime||(ot(Ut)?Xt.mime=ft.getType(dt.extname(Ut.name)):E(Ut)?Xt.mime=Ut.type:at(Ut)?Xt.mime="":Xt.mime=ft.getType(dt.extname(Ut))),Xt.headers=Xt.headers||{},this._convertMetaToHeaders(Xt.meta,Xt.headers),Me.next=14,this._getFileSize(Ut);case 14:if(Vt=Me.sent,!(Vt0&&ct(se).to(Kt),re=this._divideParts(Vt,Ht),we=re.length,ke=!1,Me=function(ae,Ae){return new Promise(function(){var Xe=(0,yt.default)(vt.default.mark(function Be(Te,ue){var $t,he,ye,Qt,Wt;return vt.default.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:if(te.prev=0,ae.isCancel()){te.next=29;break}return $t=re[Ae-1],te.next=5,ae._createBuffer(Gt,$t.start,$t.end);case 5:return he=te.sent,ye={content:he,size:$t.end-$t.start},te.prev=7,te.next=10,ae._uploadPart(ve,ne,Ae,ye,Ut);case 10:Qt=te.sent,te.next=18;break;case 13:if(te.prev=13,te.t0=te.catch(7),te.t0.status!==404){te.next=17;break}throw ae._makeAbortEvent();case 17:throw te.t0;case 18:if(!(!ae.isCancel()&&!ke)){te.next=26;break}if(It.doneParts.push({number:Ae,etag:Qt.res.headers.etag}),!Ut.progress){te.next=23;break}return te.next=23,Ut.progress(se.length/(we+1),It,Qt.res);case 23:Te({number:Ae,etag:Qt.res.headers.etag}),te.next=27;break;case 26:Te();case 27:te.next=30;break;case 29:Te();case 30:te.next=41;break;case 32:te.prev=32,te.t1=te.catch(0),Wt=new Error,Wt.name=te.t1.name,Wt.message=te.t1.message,Wt.stack=te.t1.stack,Wt.partNum=Ae,ct(te.t1).to(Wt),ue(Wt);case 41:case"end":return te.stop()}},Be,null,[[0,32],[7,13]])}));return function(Be,Te){return Xe.apply(this,arguments)}}())},ge=Array.from(new Array(we),function(Ne,ae){return ae+1}),fe=Kt.map(function(Ne){return Ne.number}),de=ge.filter(function(Ne){return fe.indexOf(Ne)<0}),_e=5,Oe=Ut.parallel||_e,le.next=17,this._parallel(de,Oe,function(Ne){return new Promise(function(ae,Ae){Me(Xt,Ne).then(function(Xe){Xe&&Kt.push(Xe),ae()}).catch(function(Xe){Ae(Xe)})})});case 17:if(He=le.sent,ke=!0,Se=He.find(function(Ne){return Ne.name==="abort"}),!Se){le.next=22;break}throw Se;case 22:if(!this.isCancel()){le.next=25;break}throw Me=null,this._makeCancelEvent();case 25:if(!(He&&He.length>0)){le.next=28;break}throw He[0].message="Failed to upload some parts with error: ".concat(He[0].toString()," part_num: ").concat(He[0].partNum),He[0];case 28:return le.next=30,this.completeMultipartUpload(ve,ne,Kt,Ut);case 30:return le.abrupt("return",le.sent);case 31:case"end":return le.stop()}},Lt,this)}));function jt(Lt,It){return Mt.apply(this,arguments)}return jt}(),ut._getFileSize=function(){var Mt=(0,yt.default)(vt.default.mark(function Lt(It){return vt.default.wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:if(!at(It)){Xt.next=4;break}return Xt.abrupt("return",It.length);case 4:if(!(E(It)||ot(It))){Xt.next=6;break}return Xt.abrupt("return",It.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return Xt.stop()}},Lt)}));function jt(Lt){return Mt.apply(this,arguments)}return jt}();var wt=rt("stream"),Et=wt.Readable;function At(Mt,jt){if(!(this instanceof At))return new At(Mt,jt);Et.call(this,jt),this.file=Mt,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}xt.inherits(At,Et),At.prototype.readFileAndPush=function(jt){if(this.fileBuffer)for(var Lt=!0;Lt&&this.fileBuffer&&this.startthis.fileBuffer.length?this.fileBuffer.length:Ut,this.start=Ut,Lt=this.push(this.fileBuffer.slice(It,Ut))}},At.prototype._read=function(jt){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file){this.finish||(this.fileBuffer=null,this.finish=!0),this.push(null);return}var Lt=16*1024;jt=jt||Lt;var It=this;this.reader.onload=function(Xt){It.fileBuffer=St.from(new Uint8Array(Xt.target.result)),It.file=null,It.readFileAndPush(jt)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(jt)};function _t(Mt){return Mt.arrayBuffer?Mt.arrayBuffer():new Promise(function(jt,Lt){var It=new FileReader;It.onload=function(Ut){jt(Ut.target.result)},It.onerror=function(Ut){Lt(Ut)},It.readAsArrayBuffer(Mt)})}ut._createBuffer=function(){var Mt=(0,yt.default)(vt.default.mark(function Lt(It,Ut,Xt){var Gt,Vt;return vt.default.wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:if(!(E(It)||ot(It))){ne.next=8;break}return Gt=It.slice(Ut,Xt),ne.next=4,_t(Gt);case 4:return Vt=ne.sent,ne.abrupt("return",St.from(Vt));case 8:if(!at(It)){ne.next=12;break}return ne.abrupt("return",It.subarray(Ut,Xt));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return ne.stop()}},Lt)}));function jt(Lt,It,Ut){return Mt.apply(this,arguments)}return jt}(),ut._getPartSize=function(jt,Lt){var It=1e4,Ut=1*1024*1024;Lt||(Lt=Ut);var Xt=Math.ceil(jt/It);return Lt1&&se[1]!==void 0?se[1]:{},Ut=Lt["continuation-token"]||Lt.continuationToken,Ut&&(It.subres=Object.assign({"continuation-token":Ut},It.subres)),Xt=this._objectRequestParams("GET","",It),Xt.query=Object.assign({"list-type":2},Lt),delete Xt.query["continuation-token"],delete Xt.query.continuationToken,Xt.xmlResponse=!0,Xt.successStatuses=[200],Kt.next=11,this.request(Xt);case 11:return Gt=Kt.sent,Vt=Gt.data.Contents||[],Ht=this,Vt&&(Array.isArray(Vt)||(Vt=[Vt]),Vt=Vt.map(function(re){var we=null;return re.Owner&&(we={id:re.Owner.ID,displayName:re.Owner.DisplayName}),{name:re.Key,url:Ht._objectUrl(re.Key),lastModified:re.LastModified,etag:re.ETag,type:re.Type,size:Number(re.Size),storageClass:re.StorageClass,owner:we}})),ne=Gt.data.CommonPrefixes||null,ne&&(Array.isArray(ne)||(ne=[ne]),ne=ne.map(function(re){return re.Prefix})),Kt.abrupt("return",{res:Gt.res,objects:Vt,prefixes:ne,isTruncated:Gt.data.IsTruncated==="true",keyCount:+Gt.data.KeyCount,continuationToken:Gt.data.ContinuationToken||null,nextContinuationToken:Gt.data.NextContinuationToken||null});case 18:case"end":return Kt.stop()}},jt,this)}));function Mt(jt){return _t.apply(this,arguments)}return Mt}(),At.restore=function(){var _t=(0,vt.default)(pt.default.mark(function jt(Lt){var It,Ut,Xt,Gt,Vt=arguments;return pt.default.wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return It=Vt.length>1&&Vt[1]!==void 0?Vt[1]:{type:"Archive"},It=It||{},It.subres=Object.assign({restore:""},It.subres),It.versionId&&(It.subres.versionId=It.versionId),Ut=this._objectRequestParams("POST",Lt,It),It.type==="ColdArchive"&&(Xt={RestoreRequest:{Days:It.Days?It.Days:2,JobParameters:{Tier:It.JobParameters?It.JobParameters:"Standard"}}},Ut.content=Et(Xt,{headers:!0}),Ut.mime="xml"),Ut.successStatuses=[202],ne.next=9,this.request(Ut);case 9:return Gt=ne.sent,ne.abrupt("return",{res:Gt.res});case 11:case"end":return ne.stop()}},jt,this)}));function Mt(jt){return _t.apply(this,arguments)}return Mt}(),At._objectUrl=function(Mt){return this._getReqUrl({bucket:this.options.bucket,object:Mt})},At._objectRequestParams=function(Mt,jt,Lt){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");Lt=Lt||{},jt=this._objectName(jt);var It={object:jt,bucket:this.options.bucket,method:Mt,subres:Lt&&Lt.subres,timeout:Lt&&Lt.timeout,ctx:Lt&&Lt.ctx};return Lt.headers&&(It.headers={},xt(Lt.headers).to(It.headers)),It},At._objectName=function(Mt){return Mt.replace(/^\/+/,"")},At._convertMetaToHeaders=function(Mt,jt){Mt&&Object.keys(Mt).forEach(function(Lt){jt["x-oss-meta-".concat(Lt)]=Mt[Lt]})},At._deleteFileSafe=function(Mt){var jt=this;return new Promise(function(Lt){yt.exists(Mt,function(It){It?yt.unlink(Mt,function(Ut){Ut&&jt.debug("unlink %j error: %s",Mt,Ut,"error"),Lt()}):Lt()})})}},{"../common/callback":24,"../common/image":27,"../common/object/asyncSignatureUrl":31,"../common/object/copyObject":32,"../common/object/delete":33,"../common/object/deleteMulti":34,"../common/object/deleteObjectTagging":35,"../common/object/generateObjectUrl":36,"../common/object/get":37,"../common/object/getACL":38,"../common/object/getBucketVersions":39,"../common/object/getObjectMeta":40,"../common/object/getObjectTagging":41,"../common/object/getObjectUrl":42,"../common/object/getSymlink":43,"../common/object/head":44,"../common/object/putACL":45,"../common/object/putObjectTagging":46,"../common/object/putSymlink":47,"../common/object/signatureUrl":48,"../common/utils/isBlob":64,"../common/utils/isBuffer":65,"../common/utils/isFile":67,"../common/utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.number.constructor.js":286,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339,fs:89,"merge-descriptors":372,mime:374,path:378}],6:[function(rt,kt,Ct){"use strict";Ct.version="6.18.1"},{}],7:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator")),vt=St(rt("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.abortBucketWorm=void 0;var yt=rt("../utils/checkBucketName");function xt(ft,ct){return dt.apply(this,arguments)}function dt(){return dt=(0,vt.default)(pt.default.mark(function ft(ct,lt){var E,z;return pt.default.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:return yt.checkBucketName(ct),E=this._bucketRequestParams("DELETE",ct,"worm",lt),it.next=4,this.request(E);case 4:return z=it.sent,it.abrupt("return",{res:z.res,status:z.status});case 6:case"end":return it.stop()}},ft,this)})),dt.apply(this,arguments)}Ct.abortBucketWorm=xt},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],8:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator")),vt=St(rt("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.completeBucketWorm=void 0;var yt=rt("../utils/checkBucketName");function xt(ft,ct,lt){return dt.apply(this,arguments)}function dt(){return dt=(0,vt.default)(pt.default.mark(function ft(ct,lt,E){var z,ot;return pt.default.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return yt.checkBucketName(ct),z=this._bucketRequestParams("POST",ct,{wormId:lt},E),at.next=4,this.request(z);case 4:return ot=at.sent,at.abrupt("return",{res:ot.res,status:ot.status});case 6:case"end":return at.stop()}},ft,this)})),dt.apply(this,arguments)}Ct.completeBucketWorm=xt},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],9:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.deleteBucketInventory=void 0;var yt=rt("../utils/checkBucketName");function xt(ft,ct){return dt.apply(this,arguments)}function dt(){return dt=(0,vt.default)(pt.default.mark(function ft(ct,lt){var E,z,ot,it,at=arguments;return pt.default.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:return E=at.length>2&&at[2]!==void 0?at[2]:{},z=Object.assign({inventory:"",inventoryId:lt},E.subres),yt.checkBucketName(ct),ot=this._bucketRequestParams("DELETE",ct,z,E),ot.successStatuses=[204],wt.next=7,this.request(ot);case 7:return it=wt.sent,wt.abrupt("return",{status:it.status,res:it.res});case 9:case"end":return wt.stop()}},ft,this)})),dt.apply(this,arguments)}Ct.deleteBucketInventory=xt},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],10:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator")),vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("../utils/checkBucketName"),xt=yt.checkBucketName,dt=Ct;dt.deleteBucketLifecycle=function(){var ft=(0,vt.default)(pt.default.mark(function lt(E,z){var ot,it;return pt.default.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return xt(E),ot=this._bucketRequestParams("DELETE",E,"lifecycle",z),ot.successStatuses=[204],ut.next=5,this.request(ot);case 5:return it=ut.sent,ut.abrupt("return",{res:it.res});case 7:case"end":return ut.stop()}},lt,this)}));function ct(lt,E){return ft.apply(this,arguments)}return ct}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],11:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator")),vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("../utils/checkBucketName"),xt=yt.checkBucketName,dt=Ct;dt.deleteBucketWebsite=function(){var ft=(0,vt.default)(pt.default.mark(function lt(E,z){var ot,it;return pt.default.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return xt(E),ot=this._bucketRequestParams("DELETE",E,"website",z),ot.successStatuses=[204],ut.next=5,this.request(ot);case 5:return it=ut.sent,ut.abrupt("return",{res:it.res});case 7:case"end":return ut.stop()}},lt,this)}));function ct(lt,E){return ft.apply(this,arguments)}return ct}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],12:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator")),vt=St(rt("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.extendBucketWorm=void 0;var yt=rt("../utils/checkBucketName"),xt=rt("../utils/obj2xml");function dt(ct,lt,E,z){return ft.apply(this,arguments)}function ft(){return ft=(0,vt.default)(pt.default.mark(function ct(lt,E,z,ot){var it,at,ut;return pt.default.wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:return yt.checkBucketName(lt),it=this._bucketRequestParams("POST",lt,{wormExtend:"",wormId:E},ot),at={ExtendWormConfiguration:{RetentionPeriodInDays:z}},it.mime="xml",it.content=xt.obj2xml(at,{headers:!0}),it.successStatuses=[200],Et.next=8,this.request(it);case 8:return ut=Et.sent,Et.abrupt("return",{res:ut.res,status:ut.status});case 10:case"end":return Et.stop()}},ct,this)})),ft.apply(this,arguments)}Ct.extendBucketWorm=dt},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],13:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.getBucketInventory=void 0;var yt=rt("../utils/checkBucketName"),xt=rt("../utils/formatInventoryConfig");function dt(ct,lt){return ft.apply(this,arguments)}function ft(){return ft=(0,vt.default)(pt.default.mark(function ct(lt,E){var z,ot,it,at,ut=arguments;return pt.default.wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:return z=ut.length>2&&ut[2]!==void 0?ut[2]:{},ot=Object.assign({inventory:"",inventoryId:E},z.subres),yt.checkBucketName(lt),it=this._bucketRequestParams("GET",lt,ot,z),it.successStatuses=[200],it.xmlResponse=!0,Et.next=8,this.request(it);case 8:return at=Et.sent,Et.abrupt("return",{status:at.status,res:at.res,inventory:xt.formatInventoryConfig(at.data)});case 10:case"end":return Et.stop()}},ct,this)})),ft.apply(this,arguments)}Ct.getBucketInventory=dt},{"../utils/checkBucketName":51,"../utils/formatInventoryConfig":60,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],14:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.array.map.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("../utils/checkBucketName"),xt=yt.checkBucketName,dt=rt("../utils/isArray"),ft=dt.isArray,ct=rt("../utils/formatObjKey"),lt=ct.formatObjKey,E=Ct;E.getBucketLifecycle=function(){var z=(0,vt.default)(pt.default.mark(function it(at,ut){var wt,Et,At;return pt.default.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return xt(at),wt=this._bucketRequestParams("GET",at,"lifecycle",ut),wt.successStatuses=[200],wt.xmlResponse=!0,Mt.next=6,this.request(wt);case 6:return Et=Mt.sent,At=Et.data.Rule||null,At&&(ft(At)||(At=[At]),At=At.map(function(jt){return jt.ID&&(jt.id=jt.ID,delete jt.ID),jt.Tag&&!ft(jt.Tag)&&(jt.Tag=[jt.Tag]),lt(jt,"firstLowerCase")})),Mt.abrupt("return",{rules:At,res:Et.res});case 10:case"end":return Mt.stop()}},it,this)}));function ot(it,at){return z.apply(this,arguments)}return ot}()},{"../utils/checkBucketName":51,"../utils/formatObjKey":61,"../utils/isArray":63,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280}],15:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator")),vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("../utils/checkBucketName"),xt=yt.checkBucketName,dt=Ct;dt.getBucketVersioning=function(){var ft=(0,vt.default)(pt.default.mark(function lt(E,z){var ot,it,at;return pt.default.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:return xt(E),ot=this._bucketRequestParams("GET",E,"versioning",z),ot.xmlResponse=!0,ot.successStatuses=[200],wt.next=6,this.request(ot);case 6:return it=wt.sent,at=it.data.Status,wt.abrupt("return",{status:it.status,versionStatus:at,res:it.res});case 9:case"end":return wt.stop()}},lt,this)}));function ct(lt,E){return ft.apply(this,arguments)}return ct}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],16:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator")),vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("../utils/checkBucketName"),xt=yt.checkBucketName,dt=rt("../utils/isObject"),ft=dt.isObject,ct=Ct;ct.getBucketWebsite=function(){var lt=(0,vt.default)(pt.default.mark(function z(ot,it){var at,ut,wt;return pt.default.wrap(function(At){for(;;)switch(At.prev=At.next){case 0:return xt(ot),at=this._bucketRequestParams("GET",ot,"website",it),at.successStatuses=[200],at.xmlResponse=!0,At.next=6,this.request(at);case 6:return ut=At.sent,wt=[],ut.data.RoutingRules&&ut.data.RoutingRules.RoutingRule&&(ft(ut.data.RoutingRules.RoutingRule)?wt=[ut.data.RoutingRules.RoutingRule]:wt=ut.data.RoutingRules.RoutingRule),At.abrupt("return",{index:ut.data.IndexDocument&&ut.data.IndexDocument.Suffix||"",supportSubDir:ut.data.IndexDocument&&ut.data.IndexDocument.SupportSubDir||"false",type:ut.data.IndexDocument&&ut.data.IndexDocument.Type,routingRules:wt,error:ut.data.ErrorDocument&&ut.data.ErrorDocument.Key||null,res:ut.res});case 10:case"end":return At.stop()}},z,this)}));function E(z,ot){return lt.apply(this,arguments)}return E}()},{"../utils/checkBucketName":51,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],17:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.getBucketWorm=void 0;var yt=rt("../utils/checkBucketName"),xt=rt("../utils/dataFix");function dt(ct,lt){return ft.apply(this,arguments)}function ft(){return ft=(0,vt.default)(pt.default.mark(function ct(lt,E){var z,ot;return pt.default.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return yt.checkBucketName(lt),z=this._bucketRequestParams("GET",lt,"worm",E),z.successStatuses=[200],z.xmlResponse=!0,at.next=6,this.request(z);case 6:return ot=at.sent,xt.dataFix(ot.data,{lowerFirst:!0,rename:{RetentionPeriodInDays:"days"}}),at.abrupt("return",Object.assign(Object.assign({},ot.data),{res:ot.res,status:ot.status}));case 9:case"end":return at.stop()}},ct,this)})),ft.apply(this,arguments)}Ct.getBucketWorm=dt},{"../utils/checkBucketName":51,"../utils/dataFix":57,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],18:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator")),vt=St(rt("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.initiateBucketWorm=void 0;var yt=rt("../utils/obj2xml"),xt=rt("../utils/checkBucketName");function dt(ct,lt,E){return ft.apply(this,arguments)}function ft(){return ft=(0,vt.default)(pt.default.mark(function ct(lt,E,z){var ot,it,at;return pt.default.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:return xt.checkBucketName(lt),ot=this._bucketRequestParams("POST",lt,"worm",z),it={InitiateWormConfiguration:{RetentionPeriodInDays:E}},ot.mime="xml",ot.content=yt.obj2xml(it,{headers:!0}),ot.successStatuses=[200],wt.next=8,this.request(ot);case 8:return at=wt.sent,wt.abrupt("return",{res:at.res,wormId:at.res.headers["x-oss-worm-id"],status:at.status});case 10:case"end":return wt.stop()}},ct,this)})),ft.apply(this,arguments)}Ct.initiateBucketWorm=dt},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],19:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.listBucketInventory=void 0;var yt=rt("../utils/checkBucketName"),xt=rt("../utils/formatInventoryConfig");function dt(ct){return ft.apply(this,arguments)}function ft(){return ft=(0,vt.default)(pt.default.mark(function ct(lt){var E,z,ot,it,at,ut,wt,Et,At=arguments;return pt.default.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return E=At.length>1&&At[1]!==void 0?At[1]:{},z=E.continuationToken,ot=Object.assign({inventory:""},z&&{"continuation-token":z},E.subres),yt.checkBucketName(lt),it=this._bucketRequestParams("GET",lt,ot,E),it.successStatuses=[200],it.xmlResponse=!0,Mt.next=9,this.request(it);case 9:return at=Mt.sent,ut=at.data,wt=at.res,Et=at.status,Mt.abrupt("return",{isTruncated:ut.IsTruncated==="true",nextContinuationToken:ut.NextContinuationToken,inventoryList:xt.formatInventoryConfig(ut.InventoryConfiguration,!0),status:Et,res:wt});case 12:case"end":return Mt.stop()}},ct,this)})),ft.apply(this,arguments)}Ct.listBucketInventory=dt},{"../utils/checkBucketName":51,"../utils/formatInventoryConfig":60,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],20:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js"),rt("core-js/modules/es.array.concat.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.putBucketInventory=void 0;var yt=rt("../utils/checkBucketName"),xt=rt("../utils/obj2xml");function dt(ct,lt){return ft.apply(this,arguments)}function ft(){return ft=(0,vt.default)(pt.default.mark(function ct(lt,E){var z,ot,it,at,ut,wt,Et,At,_t,Mt,jt,Lt=arguments;return pt.default.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:return z=Lt.length>2&&Lt[2]!==void 0?Lt[2]:{},ot=Object.assign({inventory:"",inventoryId:E.id},z.subres),yt.checkBucketName(lt),it=E.OSSBucketDestination,at=E.optionalFields,ut=E.includedObjectVersions,wt="acs:oss:::",Et="acs:ram::".concat(it.accountId,":role/"),At={InventoryConfiguration:{Id:E.id,IsEnabled:E.isEnabled,Filter:{Prefix:E.prefix||""},Destination:{OSSBucketDestination:{Format:it.format,AccountId:it.accountId,RoleArn:"".concat(Et).concat(it.rolename),Bucket:"".concat(wt).concat(it.bucket),Prefix:it.prefix||"",Encryption:it.encryption||""}},Schedule:{Frequency:E.frequency},IncludedObjectVersions:ut,OptionalFields:{Field:(at==null?void 0:at.field)||[]}}},_t=xt.obj2xml(At,{headers:!0,firstUpperCase:!0}),Mt=this._bucketRequestParams("PUT",lt,ot,z),Mt.successStatuses=[200],Mt.mime="xml",Mt.content=_t,Ut.next=14,this.request(Mt);case 14:return jt=Ut.sent,Ut.abrupt("return",{status:jt.status,res:jt.res});case 16:case"end":return Ut.stop()}},ct,this)})),ft.apply(this,arguments)}Ct.putBucketInventory=dt},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.assign.js":287}],21:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.array.includes.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("../utils/checkBucketName"),xt=yt.checkBucketName,dt=rt("../utils/isArray"),ft=dt.isArray,ct=rt("../utils/deepCopy"),lt=ct.deepCopy,E=rt("../utils/isObject"),z=E.isObject,ot=rt("../utils/obj2xml"),it=ot.obj2xml,at=rt("../utils/checkObjectTag"),ut=at.checkObjectTag,wt=rt("../utils/getStrBytesCount"),Et=wt.getStrBytesCount,At=Ct;At.putBucketLifecycle=function(){var It=(0,vt.default)(pt.default.mark(function Xt(Gt,Vt,Ht){var ne,se,ve,Kt,re;return pt.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:if(xt(Gt),ft(Vt)){ke.next=3;break}throw new Error("rules must be Array");case 3:return ne=this._bucketRequestParams("PUT",Gt,"lifecycle",Ht),se=[],ve={LifecycleConfiguration:{Rule:se}},Vt.forEach(function(Me){_t(Me),Lt(Me),Me.id&&(Me.ID=Me.id,delete Me.id),se.push(Me)}),Kt=it(ve,{headers:!0,firstUpperCase:!0}),ne.content=Kt,ne.mime="xml",ne.successStatuses=[200],ke.next=13,this.request(ne);case 13:return re=ke.sent,ke.abrupt("return",{res:re.res});case 15:case"end":return ke.stop()}},Xt,this)}));function Ut(Xt,Gt,Vt){return It.apply(this,arguments)}return Ut}();function _t(It){It.days&&(It.expiration={days:It.days}),It.date&&(It.expiration={createdBeforeDate:It.date})}function Mt(It,Ut){var Xt=It.days,Gt=It.createdBeforeDate;if(!Xt&&!Gt)throw new Error("".concat(Ut," must includes days or createdBeforeDate"));if(Xt&&!/^[1-9][0-9]*$/.test(Xt))throw new Error("days must be a positive integer");if(Gt&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(Gt))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function jt(It){if(!ft(It)&&!z(It))throw new Error("tag must be Object or Array");It=z(It)?[It]:It;var Ut={},Xt=lt(It);Xt.forEach(function(Gt){Ut[Gt.key]=Gt.value}),ut(Ut)}function Lt(It){if(It.id&&Et(It.id)>255)throw new Error("ID is composed of 255 bytes at most");if(It.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(It.status))throw new Error("Status must be Enabled or Disabled");if(It.transition){if(!["IA","Archive"].includes(It.transition.storageClass))throw new Error("StorageClass must be IA or Archive");Mt(It.transition,"Transition")}if(It.expiration){if(!It.expiration.expiredObjectDeleteMarker)Mt(It.expiration,"Expiration");else if(It.expiration.days||It.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(It.abortMultipartUpload&&Mt(It.abortMultipartUpload,"AbortMultipartUpload"),!It.expiration&&!It.abortMultipartUpload&&!It.transition&&!It.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(It.tag){if(It.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");jt(It.tag)}}},{"../utils/checkBucketName":51,"../utils/checkObjectTag":54,"../utils/deepCopy":58,"../utils/getStrBytesCount":62,"../utils/isArray":63,"../utils/isObject":70,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/web.dom-collections.for-each.js":339}],22:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.array.includes.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("../utils/checkBucketName"),xt=yt.checkBucketName,dt=rt("../utils/obj2xml"),ft=dt.obj2xml,ct=Ct;ct.putBucketVersioning=function(){var lt=(0,vt.default)(pt.default.mark(function z(ot,it){var at,ut,wt,Et,At=arguments;return pt.default.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:if(at=At.length>2&&At[2]!==void 0?At[2]:{},xt(ot),["Enabled","Suspended"].includes(it)){Mt.next=4;break}throw new Error("status must be Enabled or Suspended");case 4:return ut=this._bucketRequestParams("PUT",ot,"versioning",at),wt={VersioningConfiguration:{Status:it}},ut.mime="xml",ut.content=ft(wt,{headers:!0}),Mt.next=10,this.request(ut);case 10:return Et=Mt.sent,Mt.abrupt("return",{res:Et.res,status:Et.status});case 12:case"end":return Mt.stop()}},z,this)}));function E(z,ot){return lt.apply(this,arguments)}return E}()},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.includes.js":277}],23:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator")),vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("../utils/checkBucketName"),xt=yt.checkBucketName,dt=rt("../utils/obj2xml"),ft=dt.obj2xml,ct=rt("../utils/isArray"),lt=ct.isArray,E=Ct;E.putBucketWebsite=function(){var z=(0,vt.default)(pt.default.mark(function it(at){var ut,wt,Et,At,_t,Mt,jt,Lt=arguments;return pt.default.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:if(ut=Lt.length>1&&Lt[1]!==void 0?Lt[1]:{},wt=Lt.length>2?Lt[2]:void 0,xt(at),Et=this._bucketRequestParams("PUT",at,"website",wt),At={Suffix:ut.index||"index.html"},_t={IndexDocument:At},Mt={WebsiteConfiguration:_t},ut.supportSubDir&&(At.SupportSubDir=ut.supportSubDir),ut.type&&(At.Type=ut.type),ut.error&&(_t.ErrorDocument={Key:ut.error}),ut.routingRules===void 0){Ut.next=14;break}if(lt(ut.routingRules)){Ut.next=13;break}throw new Error("RoutingRules must be Array");case 13:_t.RoutingRules={RoutingRule:ut.routingRules};case 14:return Mt=ft(Mt),Et.content=Mt,Et.mime="xml",Et.successStatuses=[200],Ut.next=20,this.request(Et);case 20:return jt=Ut.sent,Ut.abrupt("return",{res:jt.res});case 22:case"end":return Ut.stop()}},it,this)}));function ot(it){return z.apply(this,arguments)}return ot}()},{"../utils/checkBucketName":51,"../utils/isArray":63,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],24:[function(rt,kt,Ct){(function(St){(function(){"use strict";rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/es.regexp.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.object.keys.js"),Ct.encodeCallback=function(vt,yt){if(vt.headers=vt.headers||{},!Object.prototype.hasOwnProperty.call(vt.headers,"x-oss-callback")&&yt.callback){var xt={callbackUrl:encodeURI(yt.callback.url),callbackBody:yt.callback.body};yt.callback.host&&(xt.callbackHost=yt.callback.host),yt.callback.contentType&&(xt.callbackBodyType=yt.callback.contentType);var dt=St.from(JSON.stringify(xt)).toString("base64");if(vt.headers["x-oss-callback"]=dt,yt.callback.customValue){var ft={};Object.keys(yt.callback.customValue).forEach(function(ct){ft["x:".concat(ct)]=yt.callback.customValue[ct].toString()}),vt.headers["x-oss-callback-var"]=St.from(JSON.stringify(ft)).toString("base64")}}}}).call(this)}).call(this,rt("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/web.dom-collections.for-each.js":339}],25:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.array.concat.js"),rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.replace.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js");var St=function(lt){return lt&<.__esModule?lt:{default:lt}};Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.getReqUrl=void 0;var pt=St(rt("copy-to")),vt=St(rt("url")),yt=St(rt("merge-descriptors")),xt=St(rt("is-type-of")),dt=rt("../utils/isIP"),ft=rt("../utils/checkConfigValid");function ct(lt){var E={},z=this.options.cname;ft.checkConfigValid(this.options.endpoint,"endpoint"),pt.default(this.options.endpoint,!1).to(E),lt.bucket&&!z&&!dt.isIP(E.hostname)&&!this.options.sldEnable&&(E.host="".concat(lt.bucket,".").concat(E.host));var ot="/";lt.bucket&&this.options.sldEnable&&(ot+="".concat(lt.bucket,"/")),lt.object&&(ot+=this._escape(lt.object).replace(/\+/g,"%2B")),E.pathname=ot;var it={};if(lt.query&&yt.default(it,lt.query),lt.subres){var at={};xt.default.string(lt.subres)?at[lt.subres]="":xt.default.array(lt.subres)?lt.subres.forEach(function(ut){at[ut]=""}):at=lt.subres,yt.default(it,at)}return E.query=it,vt.default.format(E)}Ct.getReqUrl=ct},{"../utils/checkConfigValid":52,"../utils/isIP":69,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339,"is-type-of":466,"merge-descriptors":372,url:472}],26:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.array.concat.js"),rt("core-js/modules/es.object.assign.js"),rt("core-js/modules/es.string.trim.js");var St=rt("humanize-ms"),pt=rt("url"),vt=rt("../utils/checkBucketName"),yt=vt.checkBucketName,xt=rt("../utils/setRegion"),dt=xt.setRegion,ft=rt("../utils/checkConfigValid"),ct=ft.checkConfigValid;function lt(E,z){ct(E,"endpoint");var ot=pt.parse(E);if(ot.protocol||(ot=pt.parse("http".concat(z?"s":"","://").concat(E))),ot.protocol!=="http:"&&ot.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return ot}kt.exports=function(E){if(!E||!E.accessKeyId||!E.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");E.stsToken&&!E.refreshSTSToken&&!E.refreshSTSTokenInterval&&console.warn("It's recommended to set 'refreshSTSToken' and 'refreshSTSTokenInterval' to refresh stsToken\u3001accessKeyId\u3001accessKeySecret automatically when sts token has expired"),E.bucket&&yt(E.bucket);var z=Object.assign({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1,headerEncoding:"utf-8",refreshSTSToken:null,refreshSTSTokenInterval:6e4*5,retryMax:0},E);if(z.accessKeyId=z.accessKeyId.trim(),z.accessKeySecret=z.accessKeySecret.trim(),z.timeout&&(z.timeout=St(z.timeout)),z.endpoint)z.endpoint=lt(z.endpoint,z.secure);else if(z.region)z.endpoint=dt(z.region,z.internal,z.secure);else throw new Error("require options.endpoint or options.region");return z.inited=!0,z}},{"../utils/checkBucketName":51,"../utils/checkConfigValid":52,"../utils/setRegion":75,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.string.trim.js":308,"humanize-ms":356,url:472}],27:[function(rt,kt,Ct){"use strict";var St=rt("merge-descriptors"),pt=Ct;St(pt,rt("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":372}],28:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.array.concat.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("../utils/checkBucketName"),xt=yt.checkBucketName,dt=rt("querystring"),ft=rt("js-base64"),ct=ft.Base64.encode,lt=Ct;lt.processObjectSave=function(){var z=(0,vt.default)(pt.default.mark(function it(at,ut,wt,Et){var At,_t,Mt,jt;return pt.default.wrap(function(It){for(;;)switch(It.prev=It.next){case 0:return E(at,"sourceObject"),E(ut,"targetObject"),E(wt,"process"),ut=this._objectName(ut),Et&&xt(Et),At=this._objectRequestParams("POST",at,{subres:"x-oss-process"}),_t=Et?",b_".concat(ct(Et)):"",ut=ct(ut),Mt={"x-oss-process":"".concat(wt,"|sys/saveas,o_").concat(ut).concat(_t)},At.content=dt.stringify(Mt),It.next=12,this.request(At);case 12:return jt=It.sent,It.abrupt("return",{res:jt.res,status:jt.res.status});case 14:case"end":return It.stop()}},it,this)}));function ot(it,at,ut,wt){return z.apply(this,arguments)}return ot}();function E(z,ot){if(!z)throw new Error("".concat(ot," is required"));if(typeof z!="string")throw new Error("".concat(ot," must be String"))}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"js-base64":371,querystring:385}],29:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.array.concat.js"),rt("core-js/modules/es.function.name.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/es.promise.js"),rt("core-js/modules/es.array.from.js"),rt("core-js/modules/es.string.iterator.js"),rt("core-js/modules/es.array.map.js"),rt("core-js/modules/es.array.filter.js"),rt("core-js/modules/es.array.find.js"),rt("core-js/modules/es.regexp.to-string.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("debug")("ali-oss:multipart-copy"),xt=rt("copy-to"),dt=Ct;dt.uploadPartCopy=function(){var ft=(0,vt.default)(pt.default.mark(function lt(E,z,ot,it,at){var ut,wt,Et,At,_t,Mt=arguments;return pt.default.wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:return ut=Mt.length>5&&Mt[5]!==void 0?Mt[5]:{},ut.headers=ut.headers||{},wt=ut.versionId||ut.subres&&ut.subres.versionId||null,wt?Et="/".concat(at.sourceBucketName,"/").concat(encodeURIComponent(at.sourceKey),"?versionId=").concat(wt):Et="/".concat(at.sourceBucketName,"/").concat(encodeURIComponent(at.sourceKey)),ut.headers["x-oss-copy-source"]=Et,it&&(ut.headers["x-oss-copy-source-range"]="bytes=".concat(it)),ut.subres={partNumber:ot,uploadId:z},At=this._objectRequestParams("PUT",E,ut),At.mime=ut.mime,At.successStatuses=[200],Lt.next=12,this.request(At);case 12:return _t=Lt.sent,Lt.abrupt("return",{name:E,etag:_t.res.headers.etag,res:_t.res});case 14:case"end":return Lt.stop()}},lt,this)}));function ct(lt,E,z,ot,it){return ft.apply(this,arguments)}return ct}(),dt.multipartUploadCopy=function(){var ft=(0,vt.default)(pt.default.mark(function lt(E,z){var ot,it,at,ut,wt,Et,At,_t,Mt,jt,Lt,It,Ut=arguments;return pt.default.wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:return ot=Ut.length>2&&Ut[2]!==void 0?Ut[2]:{},this.resetCancelFlag(),it=ot.versionId,at=it===void 0?null:it,ut={versionId:at},Gt.next=6,this._getObjectMeta(z.sourceBucketName,z.sourceKey,ut);case 6:if(wt=Gt.sent,Et=wt.res.headers["content-length"],z.startOffset=z.startOffset||0,z.endOffset=z.endOffset||Et,!(ot.checkpoint&&ot.checkpoint.uploadId)){Gt.next=14;break}return Gt.next=13,this._resumeMultipartCopy(ot.checkpoint,z,ot);case 13:return Gt.abrupt("return",Gt.sent);case 14:if(At=102400,_t=z.endOffset-z.startOffset,!(_t0)){ke.next=40;break}throw re=ve[0],re.message="Failed to copy some parts with error: ".concat(re.toString()," part_num: ").concat(re.partNum),re;case 40:return ke.next=42,this.completeMultipartUpload(Mt,At,_t,ot);case 42:return ke.abrupt("return",ke.sent);case 43:case"end":return ke.stop()}},lt,this)}));function ct(lt,E,z){return ft.apply(this,arguments)}return ct}(),dt._divideMultipartCopyParts=function(ct,lt,E){for(var z=Math.ceil(ct/lt),ot=[],it=0;it `,It=0;It `,Lt+="".concat(Ut.number,` `),Lt+="".concat(Ut.etag,` `),Lt+=` -`;return Lt+="",Mt=Mt||{},Xt={},Xt=ct(Mt,function(ve){if(E(ve))return null}),Xt.subres={uploadId:At},Xt.headers=ot(Xt.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),Gt=this._objectRequestParams("POST",Et,Xt),dt.encodeCallback(Gt,Xt),Gt.mime="xml",Gt.content=Lt,Gt.headers&&Gt.headers["x-oss-callback"]||(Gt.xmlResponse=!0),Gt.successStatuses=[200],ae.next=17,this.request(Gt);case 17:if(Yt=ae.sent,!Mt.progress){ae.next=21;break}return ae.next=21,Mt.progress(1,null,Yt.res);case 21:return Ht={res:Yt.res,bucket:Gt.bucket,name:Et,etag:Yt.res.headers.etag},Gt.headers&&Gt.headers["x-oss-callback"]&&(Ht.data=JSON.parse(Yt.data.toString())),ae.abrupt("return",Ht);case 24:case"end":return ae.stop()}},wt,this)}));function ut(wt,Et,At,_t){return at.apply(this,arguments)}return ut}(),it._uploadPart=function(){var at=(0,yt.default)(vt.default.mark(function wt(Et,At,_t,Mt,jt){var Lt,It,Ut,Xt;return vt.default.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:return jt=jt||{},Lt={},xt(jt).to(Lt),Lt.headers=Lt.headers||{},Lt.headers["Content-Length"]=Mt.size,Lt.headers=ot(Lt.headers,["x-oss-server-side-encryption"]),Lt.subres={partNumber:_t,uploadId:At},It=this._objectRequestParams("PUT",Et,Lt),It.mime=Lt.mime,Ut=St&&St.browser,Ut?It.content=Mt.content:It.stream=Mt.stream,It.successStatuses=[200],It.disabledMD5=jt.disabledMD5,Yt.next=15,this.request(It);case 15:if(Xt=Yt.sent,Xt.res.headers.etag){Yt.next=18;break}throw new Error(`Please set the etag of expose-headers in OSS - https://help.aliyun.com/document_detail/32069.html`);case 18:return Mt.stream&&(Mt.stream=null,It.stream=null),Yt.abrupt("return",{name:Et,etag:Xt.res.headers.etag,res:Xt.res});case 20:case"end":return Yt.stop()}},wt,this)}));function ut(wt,Et,At,_t,Mt){return at.apply(this,arguments)}return ut}()}).call(this)}).call(this,rt("_process"))},{"./callback":24,"./utils/deepCopy":58,"./utils/isBuffer":65,"./utils/omit":73,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.map.js":280,"core-js/modules/es.array.sort.js":282,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],31:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator")),vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("url"),xt=rt("utility"),dt=rt("copy-to"),ft=rt("../../common/signUtils"),ct=rt("../utils/isIP"),lt=ct.isIP,E=rt("../utils/setSTSToken"),z=E.setSTSToken,ot=rt("../utils/isFunction"),it=ot.isFunction,at=Ct;at.asyncSignatureUrl=function(){var ut=(0,vt.default)(pt.default.mark(function Et(At,_t){var Mt,jt,Lt,It,Ut;return pt.default.wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:if(!lt(this.options.endpoint.hostname)){Gt.next=2;break}throw new Error("can not get the object URL when endpoint is IP");case 2:if(_t=_t||{},At=this._objectName(At),_t.method=_t.method||"GET",Mt=xt.timestamp()+(_t.expires||1800),jt={bucket:this.options.bucket,object:At},Lt=this._getResource(jt),!(this.options.stsToken&&it(this.options.refreshSTSToken))){Gt.next=11;break}return Gt.next=11,z.call(this);case 11:return this.options.stsToken&&(_t["security-token"]=this.options.stsToken),It=ft._signatureForURL(this.options.accessKeySecret,_t,Lt,Mt),Ut=yt.parse(this._getReqUrl(jt)),Ut.query={OSSAccessKeyId:this.options.accessKeyId,Expires:Mt,Signature:It.Signature},dt(It.subResource).to(Ut.query),Gt.abrupt("return",Ut.format());case 17:case"end":return Gt.stop()}},Et,this)}));function wt(Et,At){return ut.apply(this,arguments)}return wt}()},{"../../common/signUtils":50,"../utils/isFunction":68,"../utils/isIP":69,"../utils/setSTSToken":76,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,url:472,utility:474}],32:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.object.keys.js"),rt("core-js/modules/es.array.find.js"),rt("core-js/modules/es.array.includes.js"),rt("core-js/modules/es.array.concat.js"),rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.replace.js");var vt=St(rt("@babel/runtime/helpers/typeof")),yt=St(rt("@babel/runtime/helpers/asyncToGenerator")),xt=rt("../utils/checkBucketName"),dt=xt.checkBucketName,ft=Ct,ct=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];ft.copy=function(){var lt=(0,yt.default)(pt.default.mark(function z(ot,it,at,ut){var wt,Et,At;return pt.default.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return(0,vt.default)(at)==="object"&&(ut=at),ut=ut||{},ut.headers=ut.headers||{},Object.keys(ut.headers).forEach(function(jt){ut.headers["x-oss-copy-source-".concat(jt.toLowerCase())]=ut.headers[jt]}),(ut.meta||Object.keys(ut.headers).find(function(jt){return ct.includes(jt.toLowerCase())}))&&(ut.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(ut.meta,ut.headers),it=this._getSourceName(it,at),ut.versionId&&(it="".concat(it,"?versionId=").concat(ut.versionId)),ut.headers["x-oss-copy-source"]=it,wt=this._objectRequestParams("PUT",ot,ut),wt.xmlResponse=!0,wt.successStatuses=[200,304],Mt.next=14,this.request(wt);case 14:return Et=Mt.sent,At=Et.data,At&&(At={etag:At.ETag,lastModified:At.LastModified}),Mt.abrupt("return",{data:At,res:Et.res});case 18:case"end":return Mt.stop()}},z,this)}));function E(z,ot,it,at){return lt.apply(this,arguments)}return E}(),ft._getSourceName=function(E,z){return typeof z=="string"?E=this._objectName(E):E[0]!=="/"?z=this.options.bucket:(z=E.replace(/\/(.+?)(\/.*)/,"$1"),E=E.replace(/(\/.+?\/)(.*)/,"$2")),dt(z),E=encodeURIComponent(E),E="/".concat(z,"/").concat(E),E}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],33:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=Ct;yt.delete=function(){var xt=(0,vt.default)(pt.default.mark(function ft(ct){var lt,E,z,ot=arguments;return pt.default.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return lt=ot.length>1&&ot[1]!==void 0?ot[1]:{},lt.subres=Object.assign({},lt.subres),lt.versionId&&(lt.subres.versionId=lt.versionId),E=this._objectRequestParams("DELETE",ct,lt),E.successStatuses=[204],at.next=7,this.request(E);case 7:return z=at.sent,at.abrupt("return",{res:z.res});case 9:case"end":return at.stop()}},ft,this)}));function dt(ft){return xt.apply(this,arguments)}return dt}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],34:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("utility"),xt=rt("../utils/obj2xml"),dt=xt.obj2xml,ft=Ct;ft.deleteMulti=function(){var ct=(0,vt.default)(pt.default.mark(function E(z){var ot,it,at,ut,wt,Et,At,_t,Mt,jt,Lt,It,Ut,Xt=arguments;return pt.default.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:if(ot=Xt.length>1&&Xt[1]!==void 0?Xt[1]:{},it=[],!(!z||!z.length)){Yt.next=4;break}throw new Error("names is required");case 4:for(at=0;at1&&ot[1]!==void 0?ot[1]:{},lt.subres=Object.assign({tagging:""},lt.subres),lt.versionId&&(lt.subres.versionId=lt.versionId),ct=this._objectName(ct),E=this._objectRequestParams("DELETE",ct,lt),E.successStatuses=[204],at.next=8,this.request(E);case 8:return z=at.sent,at.abrupt("return",{status:z.status,res:z.res});case 10:case"end":return at.stop()}},ft,this)}));function dt(ft){return xt.apply(this,arguments)}return dt}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],36:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.array.concat.js");var St=rt("url"),pt=rt("../utils/isIP"),vt=pt.isIP,yt=Ct;yt.generateObjectUrl=function(dt,ft){if(vt(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");if(ft)ft[ft.length-1]!=="/"&&(ft+="/");else{ft=this.options.endpoint.format();var ct=St.parse(ft),lt=this.options.bucket;ct.hostname="".concat(lt,".").concat(ct.hostname),ct.host="".concat(lt,".").concat(ct.host),ft=ct.format()}return ft+this._escape(this._objectName(dt))}},{"../utils/isIP":69,"core-js/modules/es.array.concat.js":272,url:472}],37:[function(rt,kt,Ct){(function(St){(function(){"use strict";var pt=rt("@babel/runtime/helpers/interopRequireDefault"),vt=pt(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js");var yt=pt(rt("@babel/runtime/helpers/asyncToGenerator")),xt=rt("fs"),dt=rt("is-type-of"),ft=Ct;ft.get=function(){var ct=(0,yt.default)(vt.default.mark(function E(z,ot){var it,at,ut,wt,Et,At,_t,Mt,jt=arguments;return vt.default.wrap(function(It){for(;;)switch(It.prev=It.next){case 0:return it=jt.length>2&&jt[2]!==void 0?jt[2]:{},at=null,ut=!1,dt.writableStream(ot)?at=ot:dt.string(ot)?(at=xt.createWriteStream(ot),ut=!0):it=ot,it=it||{},wt=St&&St.browser,Et=it.responseCacheControl===null?"":"no-cache",At=wt&&Et?{"response-cache-control":Et}:{},it.subres=Object.assign(At,it.subres),it.versionId&&(it.subres.versionId=it.versionId),it.process&&(it.subres["x-oss-process"]=it.process),It.prev=11,Mt=this._objectRequestParams("GET",z,it),Mt.writeStream=at,Mt.successStatuses=[200,206,304],It.next=17,this.request(Mt);case 17:_t=It.sent,ut&&at.destroy(),It.next=28;break;case 21:if(It.prev=21,It.t0=It.catch(11),!ut){It.next=27;break}return at.destroy(),It.next=27,this._deleteFileSafe(ot);case 27:throw It.t0;case 28:return It.abrupt("return",{res:_t.res,content:_t.data});case 29:case"end":return It.stop()}},E,this,[[11,21]])}));function lt(E,z){return ct.apply(this,arguments)}return lt}()}).call(this)}).call(this,rt("_process"))},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,"core-js/modules/es.object.assign.js":287,fs:89,"is-type-of":466}],38:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=Ct;yt.getACL=function(){var xt=(0,vt.default)(pt.default.mark(function ft(ct){var lt,E,z,ot=arguments;return pt.default.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return lt=ot.length>1&&ot[1]!==void 0?ot[1]:{},lt.subres=Object.assign({acl:""},lt.subres),lt.versionId&&(lt.subres.versionId=lt.versionId),ct=this._objectName(ct),E=this._objectRequestParams("GET",ct,lt),E.successStatuses=[200],E.xmlResponse=!0,at.next=9,this.request(E);case 9:return z=at.sent,at.abrupt("return",{acl:z.data.AccessControlList.Grant,owner:{id:z.data.Owner.ID,displayName:z.data.Owner.DisplayName},res:z.res});case 11:case"end":return at.stop()}},ft,this)}));function dt(ft){return xt.apply(this,arguments)}return dt}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],39:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.replace.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.object.keys.js"),rt("core-js/modules/es.object.assign.js"),rt("core-js/modules/es.array.map.js"),rt("core-js/modules/es.number.constructor.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=Ct,xt=rt("../utils/isObject"),dt=xt.isObject,ft=rt("../utils/isArray"),ct=ft.isArray;yt.getBucketVersions=lt,yt.listObjectVersions=lt;function lt(){return E.apply(this,arguments)}function E(){return E=(0,vt.default)(pt.default.mark(function it(){var at,ut,wt,Et,At,_t,Mt,jt,Lt=arguments;return pt.default.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:if(at=Lt.length>0&&Lt[0]!==void 0?Lt[0]:{},ut=Lt.length>1&&Lt[1]!==void 0?Lt[1]:{},!(at.versionIdMarker&&at.keyMarker===void 0)){Ut.next=4;break}throw new Error("A version-id marker cannot be specified without a key marker");case 4:return ut.subres=Object.assign({versions:""},ut.subres),ut.versionId&&(ut.subres.versionId=ut.versionId),wt=this._objectRequestParams("GET","",ut),wt.xmlResponse=!0,wt.successStatuses=[200],wt.query=ot(at),Ut.next=12,this.request(wt);case 12:return Et=Ut.sent,At=Et.data.Version||[],_t=Et.data.DeleteMarker||[],Mt=this,At&&(Array.isArray(At)||(At=[At]),At=At.map(function(Xt){return{name:Xt.Key,url:Mt._objectUrl(Xt.Key),lastModified:Xt.LastModified,isLatest:Xt.IsLatest==="true",versionId:Xt.VersionId,etag:Xt.ETag,type:Xt.Type,size:Number(Xt.Size),storageClass:Xt.StorageClass,owner:{id:Xt.Owner.ID,displayName:Xt.Owner.DisplayName}}})),_t&&(ct(_t)||(_t=[_t]),_t=_t.map(function(Xt){return{name:Xt.Key,lastModified:Xt.LastModified,versionId:Xt.VersionId,owner:{id:Xt.Owner.ID,displayName:Xt.Owner.DisplayName}}})),jt=Et.data.CommonPrefixes||null,jt&&(ct(jt)||(jt=[jt]),jt=jt.map(function(Xt){return Xt.Prefix})),Ut.abrupt("return",{res:Et.res,objects:At,deleteMarker:_t,prefixes:jt,nextMarker:Et.data.NextKeyMarker||null,NextVersionIdMarker:Et.data.NextVersionIdMarker||null,nextKeyMarker:Et.data.NextKeyMarker||null,nextVersionIdMarker:Et.data.NextVersionIdMarker||null,isTruncated:Et.data.IsTruncated==="true"});case 21:case"end":return Ut.stop()}},it,this)})),E.apply(this,arguments)}function z(it){return it.replace(/([A-Z])/g,"-$1").toLowerCase()}function ot(){var it=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},at={};return dt(it)&&Object.keys(it).forEach(function(ut){at[z(ut)]=it[ut]}),at}},{"../utils/isArray":63,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280,"core-js/modules/es.number.constructor.js":286,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],40:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=Ct;yt.getObjectMeta=function(){var xt=(0,vt.default)(pt.default.mark(function ft(ct,lt){var E,z;return pt.default.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:return lt=lt||{},ct=this._objectName(ct),lt.subres=Object.assign({objectMeta:""},lt.subres),lt.versionId&&(lt.subres.versionId=lt.versionId),E=this._objectRequestParams("HEAD",ct,lt),E.successStatuses=[200],it.next=8,this.request(E);case 8:return z=it.sent,it.abrupt("return",{status:z.status,res:z.res});case 10:case"end":return it.stop()}},ft,this)}));function dt(ft,ct){return xt.apply(this,arguments)}return dt}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],41:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=Ct,xt=rt("../utils/isObject"),dt=xt.isObject;yt.getObjectTagging=function(){var ft=(0,vt.default)(pt.default.mark(function lt(E){var z,ot,it,at,ut,wt,Et=arguments;return pt.default.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return z=Et.length>1&&Et[1]!==void 0?Et[1]:{},z.subres=Object.assign({tagging:""},z.subres),z.versionId&&(z.subres.versionId=z.versionId),E=this._objectName(E),ot=this._objectRequestParams("GET",E,z),ot.successStatuses=[200],_t.next=8,this.request(ot);case 8:return it=_t.sent,_t.next=11,this.parseXML(it.data);case 11:return at=_t.sent,ut=at.TagSet.Tag,ut=ut&&dt(ut)?[ut]:ut||[],wt={},ut.forEach(function(Mt){wt[Mt.Key]=Mt.Value}),_t.abrupt("return",{status:it.status,res:it.res,tag:wt});case 17:case"end":return _t.stop()}},lt,this)}));function ct(lt){return ft.apply(this,arguments)}return ct}()},{"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],42:[function(rt,kt,Ct){"use strict";var St=rt("../utils/isIP"),pt=St.isIP,vt=Ct;vt.getObjectUrl=function(xt,dt){if(pt(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return dt?dt[dt.length-1]!=="/"&&(dt+="/"):dt=this.options.endpoint.format(),dt+this._escape(this._objectName(xt))}},{"../utils/isIP":69}],43:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=Ct;yt.getSymlink=function(){var xt=(0,vt.default)(pt.default.mark(function ft(ct){var lt,E,z,ot,it=arguments;return pt.default.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return lt=it.length>1&&it[1]!==void 0?it[1]:{},lt.subres=Object.assign({symlink:""},lt.subres),lt.versionId&&(lt.subres.versionId=lt.versionId),ct=this._objectName(ct),E=this._objectRequestParams("GET",ct,lt),E.successStatuses=[200],ut.next=8,this.request(E);case 8:return z=ut.sent,ot=z.res.headers["x-oss-symlink-target"],ut.abrupt("return",{targetName:decodeURIComponent(ot),res:z.res});case 11:case"end":return ut.stop()}},ft,this)}));function dt(ft){return xt.apply(this,arguments)}return dt}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],44:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.object.keys.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("../utils/checkEnv"),xt=yt.checkEnv,dt=Ct;dt.head=function(){var ft=(0,vt.default)(pt.default.mark(function lt(E){var z,ot,it,at,ut=arguments;return pt.default.wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:return z=ut.length>1&&ut[1]!==void 0?ut[1]:{},xt("Because HeadObject has gzip enabled, head cannot get the file size correctly. If you need to get the file size, please use getObjectMeta"),z.subres=Object.assign({},z.subres),z.versionId&&(z.subres.versionId=z.versionId),ot=this._objectRequestParams("HEAD",E,z),ot.successStatuses=[200,304],Et.next=8,this.request(ot);case 8:return it=Et.sent,at={meta:null,res:it.res,status:it.status},it.status===200&&Object.keys(it.headers).forEach(function(At){At.indexOf("x-oss-meta-")===0&&(at.meta||(at.meta={}),at.meta[At.substring(11)]=it.headers[At])}),Et.abrupt("return",at);case 12:case"end":return Et.stop()}},lt,this)}));function ct(lt){return ft.apply(this,arguments)}return ct}()},{"../utils/checkEnv":53,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],45:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=Ct;yt.putACL=function(){var xt=(0,vt.default)(pt.default.mark(function ft(ct,lt,E){var z,ot;return pt.default.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return E=E||{},E.subres=Object.assign({acl:""},E.subres),E.versionId&&(E.subres.versionId=E.versionId),E.headers=E.headers||{},E.headers["x-oss-object-acl"]=lt,ct=this._objectName(ct),z=this._objectRequestParams("PUT",ct,E),z.successStatuses=[200],at.next=10,this.request(z);case 10:return ot=at.sent,at.abrupt("return",{res:ot.res});case 12:case"end":return at.stop()}},ft,this)}));function dt(ft,ct,lt){return xt.apply(this,arguments)}return dt}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],46:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js"),rt("core-js/modules/es.array.map.js"),rt("core-js/modules/es.object.keys.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("../utils/obj2xml"),xt=yt.obj2xml,dt=rt("../utils/checkObjectTag"),ft=dt.checkObjectTag,ct=Ct;ct.putObjectTagging=function(){var lt=(0,vt.default)(pt.default.mark(function z(ot,it){var at,ut,wt,Et,At=arguments;return pt.default.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return at=At.length>2&&At[2]!==void 0?At[2]:{},ft(it),at.subres=Object.assign({tagging:""},at.subres),at.versionId&&(at.subres.versionId=at.versionId),ot=this._objectName(ot),ut=this._objectRequestParams("PUT",ot,at),ut.successStatuses=[200],it=Object.keys(it).map(function(jt){return{Key:jt,Value:it[jt]}}),wt={Tagging:{TagSet:{Tag:it}}},ut.mime="xml",ut.content=xt(wt),Mt.next=13,this.request(ut);case 13:return Et=Mt.sent,Mt.abrupt("return",{res:Et.res,status:Et.status});case 15:case"end":return Mt.stop()}},z,this)}));function E(z,ot){return lt.apply(this,arguments)}return E}()},{"../utils/checkObjectTag":54,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290}],47:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=Ct;yt.putSymlink=function(){var xt=(0,vt.default)(pt.default.mark(function ft(ct,lt,E){var z,ot;return pt.default.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return E=E||{},E.headers=E.headers||{},lt=this._escape(this._objectName(lt)),this._convertMetaToHeaders(E.meta,E.headers),E.headers["x-oss-symlink-target"]=lt,E.subres=Object.assign({symlink:""},E.subres),E.versionId&&(E.subres.versionId=E.versionId),E.storageClass&&(E.headers["x-oss-storage-class"]=E.storageClass),ct=this._objectName(ct),z=this._objectRequestParams("PUT",ct,E),z.successStatuses=[200],at.next=13,this.request(z);case 13:return ot=at.sent,at.abrupt("return",{res:ot.res});case 15:case"end":return at.stop()}},ft,this)}));function dt(ft,ct,lt){return xt.apply(this,arguments)}return dt}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],48:[function(rt,kt,Ct){"use strict";var St=rt("url"),pt=rt("utility"),vt=rt("copy-to"),yt=rt("../../common/signUtils"),xt=rt("../utils/isIP"),dt=xt.isIP,ft=Ct;ft.signatureUrl=function(lt,E){if(dt(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");E=E||{},lt=this._objectName(lt),E.method=E.method||"GET";var z=pt.timestamp()+(E.expires||1800),ot={bucket:this.options.bucket,object:lt},it=this._getResource(ot);this.options.stsToken&&(E["security-token"]=this.options.stsToken);var at=yt._signatureForURL(this.options.accessKeySecret,E,it,z),ut=St.parse(this._getReqUrl(ot));return ut.query={OSSAccessKeyId:this.options.accessKeyId,Expires:z,Signature:at.Signature},vt(at.subResource).to(ut.query),ut.format()}},{"../../common/signUtils":50,"../utils/isIP":69,"copy-to":94,url:472,utility:474}],49:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.array.iterator.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/es.promise.js"),rt("core-js/modules/es.string.iterator.js"),rt("core-js/modules/web.dom-collections.iterator.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.function.name.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("./utils/isArray"),xt=yt.isArray,dt=Ct;dt._parallelNode=function(){var ft=(0,vt.default)(pt.default.mark(function lt(E,z,ot,it){var at,ut,wt,Et,At,_t,Mt,jt;return pt.default.wrap(function(It){for(;;)switch(It.prev=It.next){case 0:at=this,ut=[],wt=[],Et=E.length/z,At=E.length%z,_t=At===0?Et:(E.length-At)/z+1,Mt=1,jt=0;case 8:if(!(jt0){Et=!0,At<=0&&ot(it);return}At+=1,jt(It.value,at(Mt))}_t=!1}Lt()})},dt.cancel=function(ct){this.options.cancelFlag=!0,xt(this.multipartUploadStreams)&&this.multipartUploadStreams.forEach(function(lt){if(lt.destroyed===!1){var E={name:"cancel",message:"cancel"};lt.destroy(E)}}),this.multipartUploadStreams=[],ct&&this.abortMultipartUpload(ct.name,ct.uploadId,ct.options)},dt.isCancel=function(){return this.options.cancelFlag},dt.resetCancelFlag=function(){this.options.cancelFlag=!1},dt._stop=function(){this.options.cancelFlag=!0},dt._makeCancelEvent=function(){var ct={status:0,name:"cancel"};return ct},dt._makeAbortEvent=function(){var ct={status:0,name:"abort",message:"upload task has been abort"};return ct}},{"./utils/isArray":63,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.string.iterator.js":303,"core-js/modules/web.dom-collections.for-each.js":339,"core-js/modules/web.dom-collections.iterator.js":340}],50:[function(rt,kt,Ct){(function(St){(function(){"use strict";rt("core-js/modules/es.string.trim.js"),rt("core-js/modules/es.array.sort.js"),rt("core-js/modules/es.array.join.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.object.keys.js"),rt("core-js/modules/es.array.concat.js"),rt("core-js/modules/es.regexp.to-string.js");var pt=rt("./../../shims/crypto/crypto.js"),vt=rt("is-type-of"),yt=rt("./utils/lowercaseKeyHeader"),xt=yt.lowercaseKeyHeader;Ct.buildCanonicalizedResource=function(ft,ct){var lt="".concat(ft),E="?";if(vt.string(ct)&&ct.trim()!=="")lt+=E+ct;else if(vt.array(ct))ct.sort(),lt+=E+ct.join("&");else if(ct){var z=function(at,ut){return at[0]>ut[0]?1:at[0]2&&arguments[2]!==void 0?arguments[2]:"utf-8",E=pt.createHmac("sha1",ft);return E.update(St.from(ct,lt)).digest("base64")},Ct.authorization=function(ft,ct,lt,E){return"OSS ".concat(ft,":").concat(this.computeSignature(ct,lt,E))},Ct._signatureForURL=function(ft){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},lt=arguments.length>2?arguments[2]:void 0,E=arguments.length>3?arguments[3]:void 0,z=arguments.length>4?arguments[4]:void 0,ot={},it=ct.subResource,at=it===void 0?{}:it;if(ct.process){var ut="x-oss-process";at[ut]=ct.process}if(ct.trafficLimit){var wt="x-oss-traffic-limit";at[wt]=ct.trafficLimit}if(ct.response&&Object.keys(ct.response).forEach(function(Mt){var jt="response-".concat(Mt.toLowerCase());at[jt]=ct.response[Mt]}),Object.keys(ct).forEach(function(Mt){var jt=Mt.toLowerCase(),Lt=ct[Mt];jt.indexOf("x-oss-")===0?ot[jt]=Lt:(jt.indexOf("content-md5")===0||jt.indexOf("content-type")===0)&&(ot[Mt]=Lt)}),Object.prototype.hasOwnProperty.call(ct,"security-token")&&(at["security-token"]=ct["security-token"]),Object.prototype.hasOwnProperty.call(ct,"callback")){var Et={callbackUrl:encodeURI(ct.callback.url),callbackBody:ct.callback.body};if(ct.callback.host&&(Et.callbackHost=ct.callback.host),ct.callback.contentType&&(Et.callbackBodyType=ct.callback.contentType),at.callback=St.from(JSON.stringify(Et)).toString("base64"),ct.callback.customValue){var At={};Object.keys(ct.callback.customValue).forEach(function(Mt){At["x:".concat(Mt)]=ct.callback.customValue[Mt]}),at["callback-var"]=St.from(JSON.stringify(At)).toString("base64")}}var _t=this.buildCanonicalString(ct.method,lt,{headers:ot,parameters:at},E.toString());return{Signature:this.computeSignature(ft,_t,z),subResource:at}}}).call(this)}).call(this,rt("buffer").Buffer)},{"./../../shims/crypto/crypto.js":461,"./utils/lowercaseKeyHeader":71,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.sort.js":282,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.trim.js":308,"core-js/modules/web.dom-collections.for-each.js":339,"is-type-of":466}],51:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.regexp.exec.js"),Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.checkBucketName=void 0,Ct.checkBucketName=function(St){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,vt=pt?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!vt.test(St))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.exec.js":300}],52:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.regexp.exec.js"),Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.checkConfigValid=void 0;var St={endpoint:pt,region:/^[a-zA-Z0-9\-_]+$/};function pt(vt){return typeof vt=="string"?/^[a-zA-Z0-9._:/-]+$/.test(vt):vt.host?/^[a-zA-Z0-9._:/-]+$/.test(vt.host):!1}Ct.checkConfigValid=function(vt,yt){if(St[yt]){var xt=!0;if(St[yt]instanceof Function?xt=St[yt](vt):xt=St[yt].test(vt),!xt)throw new Error("The ".concat(yt," must be conform to the specifications"))}}},{"core-js/modules/es.regexp.exec.js":300}],53:[function(rt,kt,Ct){(function(St){(function(){"use strict";Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.checkEnv=void 0;function pt(vt){St.browser&&console.warn(vt)}Ct.checkEnv=pt}).call(this)}).call(this,rt("_process"))},{_process:467}],54:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.array.concat.js"),rt("core-js/modules/es.object.entries.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.checkObjectTag=void 0;var St=rt("./checkValid"),pt=St.checkValid,vt=rt("./isObject"),yt=vt.isObject,xt=[{validator:function(lt){if(typeof lt!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],dt={key:[].concat(xt,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(xt,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function ft(ct){if(!yt(ct))throw new Error("tag must be Object");var lt=Object.entries(ct);if(lt.length>10)throw new Error("maximum of 10 tags for a object");var E=["key","value"];lt.forEach(function(z){z.forEach(function(ot,it){pt(ot,dt[E[it]])})})}Ct.checkObjectTag=ft},{"./checkValid":55,"./isObject":70,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.entries.js":288,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],55:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.regexp.exec.js"),Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.checkValid=void 0;function St(pt,vt){vt.forEach(function(yt){if(yt.validator)yt.validator(pt);else if(yt.pattern&&!yt.pattern.test(pt))throw new Error(yt.msg)})}Ct.checkValid=St},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/web.dom-collections.for-each.js":339}],56:[function(rt,kt,Ct){(function(St){(function(){"use strict";rt("core-js/modules/es.array.includes.js"),rt("core-js/modules/es.string.includes.js"),rt("core-js/modules/es.object.assign.js"),rt("core-js/modules/es.array.concat.js"),Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.createRequest=void 0;var pt=rt("./../../../shims/crypto/crypto.js"),vt=rt("debug")("ali-oss"),yt=rt("mime"),xt=rt("dateformat"),dt=rt("copy-to"),ft=rt("path"),ct=rt("./encoder"),lt=ct.encoder,E=rt("./isIP"),z=E.isIP,ot=rt("./setRegion"),it=ot.setRegion,at=rt("../client/getReqUrl"),ut=at.getReqUrl,wt=rt("./isDingTalk"),Et=wt.isDingTalk;function At(jt,Lt){return jt[Lt]||jt[Lt.toLowerCase()]}function _t(jt,Lt){delete jt[Lt],delete jt[Lt.toLowerCase()]}function Mt(jt){var Lt=new Date;this.options.amendTimeSkewed&&(Lt=+new Date+this.options.amendTimeSkewed);var It={"x-oss-date":xt(Lt,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'")};typeof window!="undefined"&&(It["x-oss-user-agent"]=this.userAgent),this.userAgent.includes("nodejs")&&(It["User-Agent"]=this.userAgent),this.options.isRequestPay&&Object.assign(It,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(It["x-oss-security-token"]=this.options.stsToken),dt(jt.headers).to(It),At(It,"Content-Type")||(jt.mime&&jt.mime.indexOf("/")>0?It["Content-Type"]=jt.mime:Et()?It["Content-Type"]="application/octet-stream":It["Content-Type"]=yt.getType(jt.mime||ft.extname(jt.object||""))),At(It,"Content-Type")||_t(It,"Content-Type"),jt.content&&(jt.disabledMD5||(!jt.headers||!jt.headers["Content-MD5"]?It["Content-MD5"]=pt.createHash("md5").update(St.from(jt.content,"utf8")).digest("base64"):It["Content-MD5"]=jt.headers["Content-MD5"]),It["Content-Length"]||(It["Content-Length"]=jt.content.length));var Ut=Object.prototype.hasOwnProperty;for(var Xt in It)It[Xt]&&Ut.call(It,Xt)&&(It[Xt]=lt(String(It[Xt]),this.options.headerEncoding));var Gt=this._getResource(jt);if(It.authorization=this.authorization(jt.method,Gt,jt.subres,It,this.options.headerEncoding),z(this.options.endpoint.hostname)){var Yt=this.options,Ht=Yt.region,ne=Yt.internal,ae=Yt.secure,ve=it(Ht,ne,ae);It.host="".concat(jt.bucket,".").concat(ve.host)}var Kt=ut.bind(this)(jt);vt("request %s %s, with headers %j, !!stream: %s",jt.method,Kt,It,!!jt.stream);var re=jt.timeout||this.options.timeout,we={method:jt.method,content:jt.content,stream:jt.stream,headers:It,timeout:re,writeStream:jt.writeStream,customResponse:jt.customResponse,ctx:jt.ctx||this.ctx};return this.agent&&(we.agent=this.agent),this.httpsAgent&&(we.httpsAgent=this.httpsAgent),we.enableProxy=!!this.options.enableProxy,we.proxy=this.options.proxy?this.options.proxy:null,{url:Kt,params:we}}Ct.createRequest=Mt}).call(this)}).call(this,rt("buffer").Buffer)},{"../client/getReqUrl":25,"./../../../shims/crypto/crypto.js":461,"./encoder":59,"./isDingTalk":66,"./isIP":69,"./setRegion":75,buffer:90,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.string.includes.js":302,dateformat:342,debug:465,mime:374,path:378}],57:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.object.entries.js"),rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.replace.js"),rt("core-js/modules/es.array.includes.js"),rt("core-js/modules/es.object.keys.js"),Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.dataFix=void 0;var St=rt("./isObject"),pt=["true","TRUE","1",1],vt=["false","FALSE","0",0];function yt(ft,ct,lt){if(St.isObject(ft)){var E=ct.remove,z=E===void 0?[]:E,ot=ct.rename,it=ot===void 0?{}:ot,at=ct.camel,ut=at===void 0?[]:at,wt=ct.bool,Et=wt===void 0?[]:wt,At=ct.lowerFirst,_t=At===void 0?!1:At;return z.forEach(function(Mt){return delete ft[Mt]}),Object.entries(it).forEach(function(Mt){ft[Mt[0]]&&(ft[Mt[1]]||(ft[Mt[1]]=ft[Mt[0]],delete ft[Mt[0]]))}),ut.forEach(function(Mt){if(ft[Mt]){var jt=Mt.replace(/^(.)/,function(Lt){return Lt.toLowerCase()}).replace(/-(\w)/g,function(Lt,It){return It.toUpperCase()});ft[jt]||(ft[jt]=ft[Mt])}}),Et.forEach(function(Mt){ft[Mt]=xt(ft[Mt])}),typeof lt=="function"&<(ft),dt(ft,_t),yt}}Ct.dataFix=yt;function xt(ft){return ft?pt.includes(ft)?!0:vt.includes(ft)?!1:ft:!1}function dt(ft,ct){ct&&Object.keys(ft).forEach(function(lt){var E=lt.replace(/^\w/,function(z){return z.toLowerCase()});typeof ft[E]=="undefined"&&(ft[E]=ft[lt],delete ft[lt])})}},{"./isObject":70,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.entries.js":288,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],58:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault");rt("core-js/modules/es.array.slice.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.object.keys.js");var pt=St(rt("@babel/runtime/helpers/typeof"));Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.deepCopyWith=Ct.deepCopy=void 0;var vt=rt("./isBuffer");Ct.deepCopy=function(yt){if(yt===null||(0,pt.default)(yt)!=="object")return yt;if(vt.isBuffer(yt))return yt.slice();var xt=Array.isArray(yt)?[]:{};return Object.keys(yt).forEach(function(dt){xt[dt]=Ct.deepCopy(yt[dt])}),xt},Ct.deepCopyWith=function(yt,xt){function dt(ft,ct,lt){var E=xt(ft,ct,lt);if(E!==void 0)return E;if(ft===null||(0,pt.default)(ft)!=="object")return ft;if(vt.isBuffer(ft))return ft.slice();var z=Array.isArray(ft)?[]:{};return Object.keys(ft).forEach(function(ot){z[ot]=dt(ft[ot],ot,ft)}),z}return xt?dt(yt,"",null):Ct.deepCopy(yt)}},{"./isBuffer":65,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],59:[function(rt,kt,Ct){(function(St){(function(){"use strict";rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.encoder=void 0;function pt(vt){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"utf-8";return yt==="utf-8"?vt:St.from(vt).toString("latin1")}Ct.encoder=pt}).call(this)}).call(this,rt("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],60:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.array.map.js"),rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.replace.js"),Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.formatInventoryConfig=void 0;var St=rt("../utils/dataFix"),pt=rt("../utils/isObject"),vt=rt("../utils/isArray"),yt=rt("../utils/formatObjKey");function xt(ft){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ct&&pt.isObject(ft)&&(ft=[ft]),vt.isArray(ft)?ft=ft.map(dt):ft=dt(ft),ft}Ct.formatInventoryConfig=xt;function dt(ft){return St.dataFix(ft,{bool:["IsEnabled"]},function(ct){var lt,E;ct.prefix=ct.Filter.Prefix,delete ct.Filter,ct.OSSBucketDestination=ct.Destination.OSSBucketDestination,ct.OSSBucketDestination.rolename=ct.OSSBucketDestination.RoleArn.replace(/.*\//,""),delete ct.OSSBucketDestination.RoleArn,ct.OSSBucketDestination.bucket=ct.OSSBucketDestination.Bucket.replace(/.*:::/,""),delete ct.OSSBucketDestination.Bucket,delete ct.Destination,ct.frequency=ct.Schedule.Frequency,delete ct.Schedule.Frequency,!((lt=ct==null?void 0:ct.OptionalFields)===null||lt===void 0)&<.Field&&!vt.isArray((E=ct.OptionalFields)===null||E===void 0?void 0:E.Field)&&(ct.OptionalFields.Field=[ct.OptionalFields.Field])}),ft=yt.formatObjKey(ft,"firstLowerCase",{exclude:["OSSBucketDestination","SSE-OSS","SSE-KMS"]}),ft}},{"../utils/dataFix":57,"../utils/formatObjKey":61,"../utils/isArray":63,"../utils/isObject":70,"core-js/modules/es.array.map.js":280,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305}],61:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault");rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.object.keys.js"),rt("core-js/modules/es.array.includes.js"),rt("core-js/modules/es.string.includes.js"),rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.replace.js");var pt=St(rt("@babel/runtime/helpers/typeof"));Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.formatObjKey=void 0;function vt(xt,dt,ft){if(xt===null||(0,pt.default)(xt)!=="object")return xt;var ct;if(Array.isArray(xt)){ct=[];for(var lt=0;lt +`;return Lt+="",Mt=Mt||{},Xt={},Xt=ct(Mt,function(ve){if(E(ve))return null}),Xt.subres={uploadId:At},Xt.headers=ot(Xt.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),Gt=this._objectRequestParams("POST",Et,Xt),dt.encodeCallback(Gt,Xt),Gt.mime="xml",Gt.content=Lt,Gt.headers&&Gt.headers["x-oss-callback"]||(Gt.xmlResponse=!0),Gt.successStatuses=[200],se.next=17,this.request(Gt);case 17:if(Vt=se.sent,!Mt.progress){se.next=21;break}return se.next=21,Mt.progress(1,null,Vt.res);case 21:return Ht={res:Vt.res,bucket:Gt.bucket,name:Et,etag:Vt.res.headers.etag},Gt.headers&&Gt.headers["x-oss-callback"]&&(Ht.data=JSON.parse(Vt.data.toString())),se.abrupt("return",Ht);case 24:case"end":return se.stop()}},wt,this)}));function ut(wt,Et,At,_t){return at.apply(this,arguments)}return ut}(),it._uploadPart=function(){var at=(0,yt.default)(vt.default.mark(function wt(Et,At,_t,Mt,jt){var Lt,It,Ut,Xt;return vt.default.wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:return jt=jt||{},Lt={},xt(jt).to(Lt),Lt.headers=Lt.headers||{},Lt.headers["Content-Length"]=Mt.size,Lt.headers=ot(Lt.headers,["x-oss-server-side-encryption"]),Lt.subres={partNumber:_t,uploadId:At},It=this._objectRequestParams("PUT",Et,Lt),It.mime=Lt.mime,Ut=St&&St.browser,Ut?It.content=Mt.content:It.stream=Mt.stream,It.successStatuses=[200],It.disabledMD5=jt.disabledMD5,Vt.next=15,this.request(It);case 15:if(Xt=Vt.sent,Xt.res.headers.etag){Vt.next=18;break}throw new Error(`Please set the etag of expose-headers in OSS + https://help.aliyun.com/document_detail/32069.html`);case 18:return Mt.stream&&(Mt.stream=null,It.stream=null),Vt.abrupt("return",{name:Et,etag:Xt.res.headers.etag,res:Xt.res});case 20:case"end":return Vt.stop()}},wt,this)}));function ut(wt,Et,At,_t,Mt){return at.apply(this,arguments)}return ut}()}).call(this)}).call(this,rt("_process"))},{"./callback":24,"./utils/deepCopy":58,"./utils/isBuffer":65,"./utils/omit":73,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.map.js":280,"core-js/modules/es.array.sort.js":282,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],31:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator")),vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("url"),xt=rt("utility"),dt=rt("copy-to"),ft=rt("../../common/signUtils"),ct=rt("../utils/isIP"),lt=ct.isIP,E=rt("../utils/setSTSToken"),z=E.setSTSToken,ot=rt("../utils/isFunction"),it=ot.isFunction,at=Ct;at.asyncSignatureUrl=function(){var ut=(0,vt.default)(pt.default.mark(function Et(At,_t){var Mt,jt,Lt,It,Ut;return pt.default.wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:if(!lt(this.options.endpoint.hostname)){Gt.next=2;break}throw new Error("can not get the object URL when endpoint is IP");case 2:if(_t=_t||{},At=this._objectName(At),_t.method=_t.method||"GET",Mt=xt.timestamp()+(_t.expires||1800),jt={bucket:this.options.bucket,object:At},Lt=this._getResource(jt),!(this.options.stsToken&&it(this.options.refreshSTSToken))){Gt.next=11;break}return Gt.next=11,z.call(this);case 11:return this.options.stsToken&&(_t["security-token"]=this.options.stsToken),It=ft._signatureForURL(this.options.accessKeySecret,_t,Lt,Mt),Ut=yt.parse(this._getReqUrl(jt)),Ut.query={OSSAccessKeyId:this.options.accessKeyId,Expires:Mt,Signature:It.Signature},dt(It.subResource).to(Ut.query),Gt.abrupt("return",Ut.format());case 17:case"end":return Gt.stop()}},Et,this)}));function wt(Et,At){return ut.apply(this,arguments)}return wt}()},{"../../common/signUtils":50,"../utils/isFunction":68,"../utils/isIP":69,"../utils/setSTSToken":76,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,url:472,utility:474}],32:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.object.keys.js"),rt("core-js/modules/es.array.find.js"),rt("core-js/modules/es.array.includes.js"),rt("core-js/modules/es.array.concat.js"),rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.replace.js");var vt=St(rt("@babel/runtime/helpers/typeof")),yt=St(rt("@babel/runtime/helpers/asyncToGenerator")),xt=rt("../utils/checkBucketName"),dt=xt.checkBucketName,ft=Ct,ct=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];ft.copy=function(){var lt=(0,yt.default)(pt.default.mark(function z(ot,it,at,ut){var wt,Et,At;return pt.default.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return(0,vt.default)(at)==="object"&&(ut=at),ut=ut||{},ut.headers=ut.headers||{},Object.keys(ut.headers).forEach(function(jt){ut.headers["x-oss-copy-source-".concat(jt.toLowerCase())]=ut.headers[jt]}),(ut.meta||Object.keys(ut.headers).find(function(jt){return ct.includes(jt.toLowerCase())}))&&(ut.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(ut.meta,ut.headers),it=this._getSourceName(it,at),ut.versionId&&(it="".concat(it,"?versionId=").concat(ut.versionId)),ut.headers["x-oss-copy-source"]=it,wt=this._objectRequestParams("PUT",ot,ut),wt.xmlResponse=!0,wt.successStatuses=[200,304],Mt.next=14,this.request(wt);case 14:return Et=Mt.sent,At=Et.data,At&&(At={etag:At.ETag,lastModified:At.LastModified}),Mt.abrupt("return",{data:At,res:Et.res});case 18:case"end":return Mt.stop()}},z,this)}));function E(z,ot,it,at){return lt.apply(this,arguments)}return E}(),ft._getSourceName=function(E,z){return typeof z=="string"?E=this._objectName(E):E[0]!=="/"?z=this.options.bucket:(z=E.replace(/\/(.+?)(\/.*)/,"$1"),E=E.replace(/(\/.+?\/)(.*)/,"$2")),dt(z),E=encodeURIComponent(E),E="/".concat(z,"/").concat(E),E}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],33:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=Ct;yt.delete=function(){var xt=(0,vt.default)(pt.default.mark(function ft(ct){var lt,E,z,ot=arguments;return pt.default.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return lt=ot.length>1&&ot[1]!==void 0?ot[1]:{},lt.subres=Object.assign({},lt.subres),lt.versionId&&(lt.subres.versionId=lt.versionId),E=this._objectRequestParams("DELETE",ct,lt),E.successStatuses=[204],at.next=7,this.request(E);case 7:return z=at.sent,at.abrupt("return",{res:z.res});case 9:case"end":return at.stop()}},ft,this)}));function dt(ft){return xt.apply(this,arguments)}return dt}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],34:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("utility"),xt=rt("../utils/obj2xml"),dt=xt.obj2xml,ft=Ct;ft.deleteMulti=function(){var ct=(0,vt.default)(pt.default.mark(function E(z){var ot,it,at,ut,wt,Et,At,_t,Mt,jt,Lt,It,Ut,Xt=arguments;return pt.default.wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:if(ot=Xt.length>1&&Xt[1]!==void 0?Xt[1]:{},it=[],!(!z||!z.length)){Vt.next=4;break}throw new Error("names is required");case 4:for(at=0;at1&&ot[1]!==void 0?ot[1]:{},lt.subres=Object.assign({tagging:""},lt.subres),lt.versionId&&(lt.subres.versionId=lt.versionId),ct=this._objectName(ct),E=this._objectRequestParams("DELETE",ct,lt),E.successStatuses=[204],at.next=8,this.request(E);case 8:return z=at.sent,at.abrupt("return",{status:z.status,res:z.res});case 10:case"end":return at.stop()}},ft,this)}));function dt(ft){return xt.apply(this,arguments)}return dt}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],36:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.array.concat.js");var St=rt("url"),pt=rt("../utils/isIP"),vt=pt.isIP,yt=Ct;yt.generateObjectUrl=function(dt,ft){if(vt(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");if(ft)ft[ft.length-1]!=="/"&&(ft+="/");else{ft=this.options.endpoint.format();var ct=St.parse(ft),lt=this.options.bucket;ct.hostname="".concat(lt,".").concat(ct.hostname),ct.host="".concat(lt,".").concat(ct.host),ft=ct.format()}return ft+this._escape(this._objectName(dt))}},{"../utils/isIP":69,"core-js/modules/es.array.concat.js":272,url:472}],37:[function(rt,kt,Ct){(function(St){(function(){"use strict";var pt=rt("@babel/runtime/helpers/interopRequireDefault"),vt=pt(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js");var yt=pt(rt("@babel/runtime/helpers/asyncToGenerator")),xt=rt("fs"),dt=rt("is-type-of"),ft=Ct;ft.get=function(){var ct=(0,yt.default)(vt.default.mark(function E(z,ot){var it,at,ut,wt,Et,At,_t,Mt,jt=arguments;return vt.default.wrap(function(It){for(;;)switch(It.prev=It.next){case 0:return it=jt.length>2&&jt[2]!==void 0?jt[2]:{},at=null,ut=!1,dt.writableStream(ot)?at=ot:dt.string(ot)?(at=xt.createWriteStream(ot),ut=!0):it=ot,it=it||{},wt=St&&St.browser,Et=it.responseCacheControl===null?"":"no-cache",At=wt&&Et?{"response-cache-control":Et}:{},it.subres=Object.assign(At,it.subres),it.versionId&&(it.subres.versionId=it.versionId),it.process&&(it.subres["x-oss-process"]=it.process),It.prev=11,Mt=this._objectRequestParams("GET",z,it),Mt.writeStream=at,Mt.successStatuses=[200,206,304],It.next=17,this.request(Mt);case 17:_t=It.sent,ut&&at.destroy(),It.next=28;break;case 21:if(It.prev=21,It.t0=It.catch(11),!ut){It.next=27;break}return at.destroy(),It.next=27,this._deleteFileSafe(ot);case 27:throw It.t0;case 28:return It.abrupt("return",{res:_t.res,content:_t.data});case 29:case"end":return It.stop()}},E,this,[[11,21]])}));function lt(E,z){return ct.apply(this,arguments)}return lt}()}).call(this)}).call(this,rt("_process"))},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,"core-js/modules/es.object.assign.js":287,fs:89,"is-type-of":466}],38:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=Ct;yt.getACL=function(){var xt=(0,vt.default)(pt.default.mark(function ft(ct){var lt,E,z,ot=arguments;return pt.default.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return lt=ot.length>1&&ot[1]!==void 0?ot[1]:{},lt.subres=Object.assign({acl:""},lt.subres),lt.versionId&&(lt.subres.versionId=lt.versionId),ct=this._objectName(ct),E=this._objectRequestParams("GET",ct,lt),E.successStatuses=[200],E.xmlResponse=!0,at.next=9,this.request(E);case 9:return z=at.sent,at.abrupt("return",{acl:z.data.AccessControlList.Grant,owner:{id:z.data.Owner.ID,displayName:z.data.Owner.DisplayName},res:z.res});case 11:case"end":return at.stop()}},ft,this)}));function dt(ft){return xt.apply(this,arguments)}return dt}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],39:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.replace.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.object.keys.js"),rt("core-js/modules/es.object.assign.js"),rt("core-js/modules/es.array.map.js"),rt("core-js/modules/es.number.constructor.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=Ct,xt=rt("../utils/isObject"),dt=xt.isObject,ft=rt("../utils/isArray"),ct=ft.isArray;yt.getBucketVersions=lt,yt.listObjectVersions=lt;function lt(){return E.apply(this,arguments)}function E(){return E=(0,vt.default)(pt.default.mark(function it(){var at,ut,wt,Et,At,_t,Mt,jt,Lt=arguments;return pt.default.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:if(at=Lt.length>0&&Lt[0]!==void 0?Lt[0]:{},ut=Lt.length>1&&Lt[1]!==void 0?Lt[1]:{},!(at.versionIdMarker&&at.keyMarker===void 0)){Ut.next=4;break}throw new Error("A version-id marker cannot be specified without a key marker");case 4:return ut.subres=Object.assign({versions:""},ut.subres),ut.versionId&&(ut.subres.versionId=ut.versionId),wt=this._objectRequestParams("GET","",ut),wt.xmlResponse=!0,wt.successStatuses=[200],wt.query=ot(at),Ut.next=12,this.request(wt);case 12:return Et=Ut.sent,At=Et.data.Version||[],_t=Et.data.DeleteMarker||[],Mt=this,At&&(Array.isArray(At)||(At=[At]),At=At.map(function(Xt){return{name:Xt.Key,url:Mt._objectUrl(Xt.Key),lastModified:Xt.LastModified,isLatest:Xt.IsLatest==="true",versionId:Xt.VersionId,etag:Xt.ETag,type:Xt.Type,size:Number(Xt.Size),storageClass:Xt.StorageClass,owner:{id:Xt.Owner.ID,displayName:Xt.Owner.DisplayName}}})),_t&&(ct(_t)||(_t=[_t]),_t=_t.map(function(Xt){return{name:Xt.Key,lastModified:Xt.LastModified,versionId:Xt.VersionId,owner:{id:Xt.Owner.ID,displayName:Xt.Owner.DisplayName}}})),jt=Et.data.CommonPrefixes||null,jt&&(ct(jt)||(jt=[jt]),jt=jt.map(function(Xt){return Xt.Prefix})),Ut.abrupt("return",{res:Et.res,objects:At,deleteMarker:_t,prefixes:jt,nextMarker:Et.data.NextKeyMarker||null,NextVersionIdMarker:Et.data.NextVersionIdMarker||null,nextKeyMarker:Et.data.NextKeyMarker||null,nextVersionIdMarker:Et.data.NextVersionIdMarker||null,isTruncated:Et.data.IsTruncated==="true"});case 21:case"end":return Ut.stop()}},it,this)})),E.apply(this,arguments)}function z(it){return it.replace(/([A-Z])/g,"-$1").toLowerCase()}function ot(){var it=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},at={};return dt(it)&&Object.keys(it).forEach(function(ut){at[z(ut)]=it[ut]}),at}},{"../utils/isArray":63,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280,"core-js/modules/es.number.constructor.js":286,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],40:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=Ct;yt.getObjectMeta=function(){var xt=(0,vt.default)(pt.default.mark(function ft(ct,lt){var E,z;return pt.default.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:return lt=lt||{},ct=this._objectName(ct),lt.subres=Object.assign({objectMeta:""},lt.subres),lt.versionId&&(lt.subres.versionId=lt.versionId),E=this._objectRequestParams("HEAD",ct,lt),E.successStatuses=[200],it.next=8,this.request(E);case 8:return z=it.sent,it.abrupt("return",{status:z.status,res:z.res});case 10:case"end":return it.stop()}},ft,this)}));function dt(ft,ct){return xt.apply(this,arguments)}return dt}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],41:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=Ct,xt=rt("../utils/isObject"),dt=xt.isObject;yt.getObjectTagging=function(){var ft=(0,vt.default)(pt.default.mark(function lt(E){var z,ot,it,at,ut,wt,Et=arguments;return pt.default.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return z=Et.length>1&&Et[1]!==void 0?Et[1]:{},z.subres=Object.assign({tagging:""},z.subres),z.versionId&&(z.subres.versionId=z.versionId),E=this._objectName(E),ot=this._objectRequestParams("GET",E,z),ot.successStatuses=[200],_t.next=8,this.request(ot);case 8:return it=_t.sent,_t.next=11,this.parseXML(it.data);case 11:return at=_t.sent,ut=at.TagSet.Tag,ut=ut&&dt(ut)?[ut]:ut||[],wt={},ut.forEach(function(Mt){wt[Mt.Key]=Mt.Value}),_t.abrupt("return",{status:it.status,res:it.res,tag:wt});case 17:case"end":return _t.stop()}},lt,this)}));function ct(lt){return ft.apply(this,arguments)}return ct}()},{"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],42:[function(rt,kt,Ct){"use strict";var St=rt("../utils/isIP"),pt=St.isIP,vt=Ct;vt.getObjectUrl=function(xt,dt){if(pt(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return dt?dt[dt.length-1]!=="/"&&(dt+="/"):dt=this.options.endpoint.format(),dt+this._escape(this._objectName(xt))}},{"../utils/isIP":69}],43:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=Ct;yt.getSymlink=function(){var xt=(0,vt.default)(pt.default.mark(function ft(ct){var lt,E,z,ot,it=arguments;return pt.default.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return lt=it.length>1&&it[1]!==void 0?it[1]:{},lt.subres=Object.assign({symlink:""},lt.subres),lt.versionId&&(lt.subres.versionId=lt.versionId),ct=this._objectName(ct),E=this._objectRequestParams("GET",ct,lt),E.successStatuses=[200],ut.next=8,this.request(E);case 8:return z=ut.sent,ot=z.res.headers["x-oss-symlink-target"],ut.abrupt("return",{targetName:decodeURIComponent(ot),res:z.res});case 11:case"end":return ut.stop()}},ft,this)}));function dt(ft){return xt.apply(this,arguments)}return dt}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],44:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.object.keys.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("../utils/checkEnv"),xt=yt.checkEnv,dt=Ct;dt.head=function(){var ft=(0,vt.default)(pt.default.mark(function lt(E){var z,ot,it,at,ut=arguments;return pt.default.wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:return z=ut.length>1&&ut[1]!==void 0?ut[1]:{},xt("Because HeadObject has gzip enabled, head cannot get the file size correctly. If you need to get the file size, please use getObjectMeta"),z.subres=Object.assign({},z.subres),z.versionId&&(z.subres.versionId=z.versionId),ot=this._objectRequestParams("HEAD",E,z),ot.successStatuses=[200,304],Et.next=8,this.request(ot);case 8:return it=Et.sent,at={meta:null,res:it.res,status:it.status},it.status===200&&Object.keys(it.headers).forEach(function(At){At.indexOf("x-oss-meta-")===0&&(at.meta||(at.meta={}),at.meta[At.substring(11)]=it.headers[At])}),Et.abrupt("return",at);case 12:case"end":return Et.stop()}},lt,this)}));function ct(lt){return ft.apply(this,arguments)}return ct}()},{"../utils/checkEnv":53,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],45:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=Ct;yt.putACL=function(){var xt=(0,vt.default)(pt.default.mark(function ft(ct,lt,E){var z,ot;return pt.default.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return E=E||{},E.subres=Object.assign({acl:""},E.subres),E.versionId&&(E.subres.versionId=E.versionId),E.headers=E.headers||{},E.headers["x-oss-object-acl"]=lt,ct=this._objectName(ct),z=this._objectRequestParams("PUT",ct,E),z.successStatuses=[200],at.next=10,this.request(z);case 10:return ot=at.sent,at.abrupt("return",{res:ot.res});case 12:case"end":return at.stop()}},ft,this)}));function dt(ft,ct,lt){return xt.apply(this,arguments)}return dt}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],46:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js"),rt("core-js/modules/es.array.map.js"),rt("core-js/modules/es.object.keys.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("../utils/obj2xml"),xt=yt.obj2xml,dt=rt("../utils/checkObjectTag"),ft=dt.checkObjectTag,ct=Ct;ct.putObjectTagging=function(){var lt=(0,vt.default)(pt.default.mark(function z(ot,it){var at,ut,wt,Et,At=arguments;return pt.default.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return at=At.length>2&&At[2]!==void 0?At[2]:{},ft(it),at.subres=Object.assign({tagging:""},at.subres),at.versionId&&(at.subres.versionId=at.versionId),ot=this._objectName(ot),ut=this._objectRequestParams("PUT",ot,at),ut.successStatuses=[200],it=Object.keys(it).map(function(jt){return{Key:jt,Value:it[jt]}}),wt={Tagging:{TagSet:{Tag:it}}},ut.mime="xml",ut.content=xt(wt),Mt.next=13,this.request(ut);case 13:return Et=Mt.sent,Mt.abrupt("return",{res:Et.res,status:Et.status});case 15:case"end":return Mt.stop()}},z,this)}));function E(z,ot){return lt.apply(this,arguments)}return E}()},{"../utils/checkObjectTag":54,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290}],47:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.assign.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=Ct;yt.putSymlink=function(){var xt=(0,vt.default)(pt.default.mark(function ft(ct,lt,E){var z,ot;return pt.default.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return E=E||{},E.headers=E.headers||{},lt=this._escape(this._objectName(lt)),this._convertMetaToHeaders(E.meta,E.headers),E.headers["x-oss-symlink-target"]=lt,E.subres=Object.assign({symlink:""},E.subres),E.versionId&&(E.subres.versionId=E.versionId),E.storageClass&&(E.headers["x-oss-storage-class"]=E.storageClass),ct=this._objectName(ct),z=this._objectRequestParams("PUT",ct,E),z.successStatuses=[200],at.next=13,this.request(z);case 13:return ot=at.sent,at.abrupt("return",{res:ot.res});case 15:case"end":return at.stop()}},ft,this)}));function dt(ft,ct,lt){return xt.apply(this,arguments)}return dt}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],48:[function(rt,kt,Ct){"use strict";var St=rt("url"),pt=rt("utility"),vt=rt("copy-to"),yt=rt("../../common/signUtils"),xt=rt("../utils/isIP"),dt=xt.isIP,ft=Ct;ft.signatureUrl=function(lt,E){if(dt(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");E=E||{},lt=this._objectName(lt),E.method=E.method||"GET";var z=pt.timestamp()+(E.expires||1800),ot={bucket:this.options.bucket,object:lt},it=this._getResource(ot);this.options.stsToken&&(E["security-token"]=this.options.stsToken);var at=yt._signatureForURL(this.options.accessKeySecret,E,it,z),ut=St.parse(this._getReqUrl(ot));return ut.query={OSSAccessKeyId:this.options.accessKeyId,Expires:z,Signature:at.Signature},vt(at.subResource).to(ut.query),ut.format()}},{"../../common/signUtils":50,"../utils/isIP":69,"copy-to":94,url:472,utility:474}],49:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.array.iterator.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/es.promise.js"),rt("core-js/modules/es.string.iterator.js"),rt("core-js/modules/web.dom-collections.iterator.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.function.name.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator")),yt=rt("./utils/isArray"),xt=yt.isArray,dt=Ct;dt._parallelNode=function(){var ft=(0,vt.default)(pt.default.mark(function lt(E,z,ot,it){var at,ut,wt,Et,At,_t,Mt,jt;return pt.default.wrap(function(It){for(;;)switch(It.prev=It.next){case 0:at=this,ut=[],wt=[],Et=E.length/z,At=E.length%z,_t=At===0?Et:(E.length-At)/z+1,Mt=1,jt=0;case 8:if(!(jt0){Et=!0,At<=0&&ot(it);return}At+=1,jt(It.value,at(Mt))}_t=!1}Lt()})},dt.cancel=function(ct){this.options.cancelFlag=!0,xt(this.multipartUploadStreams)&&this.multipartUploadStreams.forEach(function(lt){if(lt.destroyed===!1){var E={name:"cancel",message:"cancel"};lt.destroy(E)}}),this.multipartUploadStreams=[],ct&&this.abortMultipartUpload(ct.name,ct.uploadId,ct.options)},dt.isCancel=function(){return this.options.cancelFlag},dt.resetCancelFlag=function(){this.options.cancelFlag=!1},dt._stop=function(){this.options.cancelFlag=!0},dt._makeCancelEvent=function(){var ct={status:0,name:"cancel"};return ct},dt._makeAbortEvent=function(){var ct={status:0,name:"abort",message:"upload task has been abort"};return ct}},{"./utils/isArray":63,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.string.iterator.js":303,"core-js/modules/web.dom-collections.for-each.js":339,"core-js/modules/web.dom-collections.iterator.js":340}],50:[function(rt,kt,Ct){(function(St){(function(){"use strict";rt("core-js/modules/es.string.trim.js"),rt("core-js/modules/es.array.sort.js"),rt("core-js/modules/es.array.join.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.object.keys.js"),rt("core-js/modules/es.array.concat.js"),rt("core-js/modules/es.regexp.to-string.js");var pt=rt("./../../shims/crypto/crypto.js"),vt=rt("is-type-of"),yt=rt("./utils/lowercaseKeyHeader"),xt=yt.lowercaseKeyHeader;Ct.buildCanonicalizedResource=function(ft,ct){var lt="".concat(ft),E="?";if(vt.string(ct)&&ct.trim()!=="")lt+=E+ct;else if(vt.array(ct))ct.sort(),lt+=E+ct.join("&");else if(ct){var z=function(at,ut){return at[0]>ut[0]?1:at[0]2&&arguments[2]!==void 0?arguments[2]:"utf-8",E=pt.createHmac("sha1",ft);return E.update(St.from(ct,lt)).digest("base64")},Ct.authorization=function(ft,ct,lt,E){return"OSS ".concat(ft,":").concat(this.computeSignature(ct,lt,E))},Ct._signatureForURL=function(ft){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},lt=arguments.length>2?arguments[2]:void 0,E=arguments.length>3?arguments[3]:void 0,z=arguments.length>4?arguments[4]:void 0,ot={},it=ct.subResource,at=it===void 0?{}:it;if(ct.process){var ut="x-oss-process";at[ut]=ct.process}if(ct.trafficLimit){var wt="x-oss-traffic-limit";at[wt]=ct.trafficLimit}if(ct.response&&Object.keys(ct.response).forEach(function(Mt){var jt="response-".concat(Mt.toLowerCase());at[jt]=ct.response[Mt]}),Object.keys(ct).forEach(function(Mt){var jt=Mt.toLowerCase(),Lt=ct[Mt];jt.indexOf("x-oss-")===0?ot[jt]=Lt:(jt.indexOf("content-md5")===0||jt.indexOf("content-type")===0)&&(ot[Mt]=Lt)}),Object.prototype.hasOwnProperty.call(ct,"security-token")&&(at["security-token"]=ct["security-token"]),Object.prototype.hasOwnProperty.call(ct,"callback")){var Et={callbackUrl:encodeURI(ct.callback.url),callbackBody:ct.callback.body};if(ct.callback.host&&(Et.callbackHost=ct.callback.host),ct.callback.contentType&&(Et.callbackBodyType=ct.callback.contentType),at.callback=St.from(JSON.stringify(Et)).toString("base64"),ct.callback.customValue){var At={};Object.keys(ct.callback.customValue).forEach(function(Mt){At["x:".concat(Mt)]=ct.callback.customValue[Mt]}),at["callback-var"]=St.from(JSON.stringify(At)).toString("base64")}}var _t=this.buildCanonicalString(ct.method,lt,{headers:ot,parameters:at},E.toString());return{Signature:this.computeSignature(ft,_t,z),subResource:at}}}).call(this)}).call(this,rt("buffer").Buffer)},{"./../../shims/crypto/crypto.js":461,"./utils/lowercaseKeyHeader":71,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.sort.js":282,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.trim.js":308,"core-js/modules/web.dom-collections.for-each.js":339,"is-type-of":466}],51:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.regexp.exec.js"),Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.checkBucketName=void 0,Ct.checkBucketName=function(St){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,vt=pt?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!vt.test(St))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.exec.js":300}],52:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.regexp.exec.js"),Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.checkConfigValid=void 0;var St={endpoint:pt,region:/^[a-zA-Z0-9\-_]+$/};function pt(vt){return typeof vt=="string"?/^[a-zA-Z0-9._:/-]+$/.test(vt):vt.host?/^[a-zA-Z0-9._:/-]+$/.test(vt.host):!1}Ct.checkConfigValid=function(vt,yt){if(St[yt]){var xt=!0;if(St[yt]instanceof Function?xt=St[yt](vt):xt=St[yt].test(vt),!xt)throw new Error("The ".concat(yt," must be conform to the specifications"))}}},{"core-js/modules/es.regexp.exec.js":300}],53:[function(rt,kt,Ct){(function(St){(function(){"use strict";Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.checkEnv=void 0;function pt(vt){St.browser&&console.warn(vt)}Ct.checkEnv=pt}).call(this)}).call(this,rt("_process"))},{_process:467}],54:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.array.concat.js"),rt("core-js/modules/es.object.entries.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.checkObjectTag=void 0;var St=rt("./checkValid"),pt=St.checkValid,vt=rt("./isObject"),yt=vt.isObject,xt=[{validator:function(lt){if(typeof lt!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],dt={key:[].concat(xt,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(xt,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function ft(ct){if(!yt(ct))throw new Error("tag must be Object");var lt=Object.entries(ct);if(lt.length>10)throw new Error("maximum of 10 tags for a object");var E=["key","value"];lt.forEach(function(z){z.forEach(function(ot,it){pt(ot,dt[E[it]])})})}Ct.checkObjectTag=ft},{"./checkValid":55,"./isObject":70,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.entries.js":288,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],55:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.regexp.exec.js"),Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.checkValid=void 0;function St(pt,vt){vt.forEach(function(yt){if(yt.validator)yt.validator(pt);else if(yt.pattern&&!yt.pattern.test(pt))throw new Error(yt.msg)})}Ct.checkValid=St},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/web.dom-collections.for-each.js":339}],56:[function(rt,kt,Ct){(function(St){(function(){"use strict";rt("core-js/modules/es.array.includes.js"),rt("core-js/modules/es.string.includes.js"),rt("core-js/modules/es.object.assign.js"),rt("core-js/modules/es.array.concat.js"),Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.createRequest=void 0;var pt=rt("./../../../shims/crypto/crypto.js"),vt=rt("debug")("ali-oss"),yt=rt("mime"),xt=rt("dateformat"),dt=rt("copy-to"),ft=rt("path"),ct=rt("./encoder"),lt=ct.encoder,E=rt("./isIP"),z=E.isIP,ot=rt("./setRegion"),it=ot.setRegion,at=rt("../client/getReqUrl"),ut=at.getReqUrl,wt=rt("./isDingTalk"),Et=wt.isDingTalk;function At(jt,Lt){return jt[Lt]||jt[Lt.toLowerCase()]}function _t(jt,Lt){delete jt[Lt],delete jt[Lt.toLowerCase()]}function Mt(jt){var Lt=new Date;this.options.amendTimeSkewed&&(Lt=+new Date+this.options.amendTimeSkewed);var It={"x-oss-date":xt(Lt,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'")};typeof window!="undefined"&&(It["x-oss-user-agent"]=this.userAgent),this.userAgent.includes("nodejs")&&(It["User-Agent"]=this.userAgent),this.options.isRequestPay&&Object.assign(It,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(It["x-oss-security-token"]=this.options.stsToken),dt(jt.headers).to(It),At(It,"Content-Type")||(jt.mime&&jt.mime.indexOf("/")>0?It["Content-Type"]=jt.mime:Et()?It["Content-Type"]="application/octet-stream":It["Content-Type"]=yt.getType(jt.mime||ft.extname(jt.object||""))),At(It,"Content-Type")||_t(It,"Content-Type"),jt.content&&(jt.disabledMD5||(!jt.headers||!jt.headers["Content-MD5"]?It["Content-MD5"]=pt.createHash("md5").update(St.from(jt.content,"utf8")).digest("base64"):It["Content-MD5"]=jt.headers["Content-MD5"]),It["Content-Length"]||(It["Content-Length"]=jt.content.length));var Ut=Object.prototype.hasOwnProperty;for(var Xt in It)It[Xt]&&Ut.call(It,Xt)&&(It[Xt]=lt(String(It[Xt]),this.options.headerEncoding));var Gt=this._getResource(jt);if(It.authorization=this.authorization(jt.method,Gt,jt.subres,It,this.options.headerEncoding),z(this.options.endpoint.hostname)){var Vt=this.options,Ht=Vt.region,ne=Vt.internal,se=Vt.secure,ve=it(Ht,ne,se);It.host="".concat(jt.bucket,".").concat(ve.host)}var Kt=ut.bind(this)(jt);vt("request %s %s, with headers %j, !!stream: %s",jt.method,Kt,It,!!jt.stream);var re=jt.timeout||this.options.timeout,we={method:jt.method,content:jt.content,stream:jt.stream,headers:It,timeout:re,writeStream:jt.writeStream,customResponse:jt.customResponse,ctx:jt.ctx||this.ctx};return this.agent&&(we.agent=this.agent),this.httpsAgent&&(we.httpsAgent=this.httpsAgent),we.enableProxy=!!this.options.enableProxy,we.proxy=this.options.proxy?this.options.proxy:null,{url:Kt,params:we}}Ct.createRequest=Mt}).call(this)}).call(this,rt("buffer").Buffer)},{"../client/getReqUrl":25,"./../../../shims/crypto/crypto.js":461,"./encoder":59,"./isDingTalk":66,"./isIP":69,"./setRegion":75,buffer:90,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.string.includes.js":302,dateformat:342,debug:465,mime:374,path:378}],57:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.object.entries.js"),rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.replace.js"),rt("core-js/modules/es.array.includes.js"),rt("core-js/modules/es.object.keys.js"),Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.dataFix=void 0;var St=rt("./isObject"),pt=["true","TRUE","1",1],vt=["false","FALSE","0",0];function yt(ft,ct,lt){if(St.isObject(ft)){var E=ct.remove,z=E===void 0?[]:E,ot=ct.rename,it=ot===void 0?{}:ot,at=ct.camel,ut=at===void 0?[]:at,wt=ct.bool,Et=wt===void 0?[]:wt,At=ct.lowerFirst,_t=At===void 0?!1:At;return z.forEach(function(Mt){return delete ft[Mt]}),Object.entries(it).forEach(function(Mt){ft[Mt[0]]&&(ft[Mt[1]]||(ft[Mt[1]]=ft[Mt[0]],delete ft[Mt[0]]))}),ut.forEach(function(Mt){if(ft[Mt]){var jt=Mt.replace(/^(.)/,function(Lt){return Lt.toLowerCase()}).replace(/-(\w)/g,function(Lt,It){return It.toUpperCase()});ft[jt]||(ft[jt]=ft[Mt])}}),Et.forEach(function(Mt){ft[Mt]=xt(ft[Mt])}),typeof lt=="function"&<(ft),dt(ft,_t),yt}}Ct.dataFix=yt;function xt(ft){return ft?pt.includes(ft)?!0:vt.includes(ft)?!1:ft:!1}function dt(ft,ct){ct&&Object.keys(ft).forEach(function(lt){var E=lt.replace(/^\w/,function(z){return z.toLowerCase()});typeof ft[E]=="undefined"&&(ft[E]=ft[lt],delete ft[lt])})}},{"./isObject":70,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.entries.js":288,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],58:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault");rt("core-js/modules/es.array.slice.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.object.keys.js");var pt=St(rt("@babel/runtime/helpers/typeof"));Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.deepCopyWith=Ct.deepCopy=void 0;var vt=rt("./isBuffer");Ct.deepCopy=function(yt){if(yt===null||(0,pt.default)(yt)!=="object")return yt;if(vt.isBuffer(yt))return yt.slice();var xt=Array.isArray(yt)?[]:{};return Object.keys(yt).forEach(function(dt){xt[dt]=Ct.deepCopy(yt[dt])}),xt},Ct.deepCopyWith=function(yt,xt){function dt(ft,ct,lt){var E=xt(ft,ct,lt);if(E!==void 0)return E;if(ft===null||(0,pt.default)(ft)!=="object")return ft;if(vt.isBuffer(ft))return ft.slice();var z=Array.isArray(ft)?[]:{};return Object.keys(ft).forEach(function(ot){z[ot]=dt(ft[ot],ot,ft)}),z}return xt?dt(yt,"",null):Ct.deepCopy(yt)}},{"./isBuffer":65,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],59:[function(rt,kt,Ct){(function(St){(function(){"use strict";rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.encoder=void 0;function pt(vt){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"utf-8";return yt==="utf-8"?vt:St.from(vt).toString("latin1")}Ct.encoder=pt}).call(this)}).call(this,rt("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],60:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.array.map.js"),rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.replace.js"),Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.formatInventoryConfig=void 0;var St=rt("../utils/dataFix"),pt=rt("../utils/isObject"),vt=rt("../utils/isArray"),yt=rt("../utils/formatObjKey");function xt(ft){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ct&&pt.isObject(ft)&&(ft=[ft]),vt.isArray(ft)?ft=ft.map(dt):ft=dt(ft),ft}Ct.formatInventoryConfig=xt;function dt(ft){return St.dataFix(ft,{bool:["IsEnabled"]},function(ct){var lt,E;ct.prefix=ct.Filter.Prefix,delete ct.Filter,ct.OSSBucketDestination=ct.Destination.OSSBucketDestination,ct.OSSBucketDestination.rolename=ct.OSSBucketDestination.RoleArn.replace(/.*\//,""),delete ct.OSSBucketDestination.RoleArn,ct.OSSBucketDestination.bucket=ct.OSSBucketDestination.Bucket.replace(/.*:::/,""),delete ct.OSSBucketDestination.Bucket,delete ct.Destination,ct.frequency=ct.Schedule.Frequency,delete ct.Schedule.Frequency,!((lt=ct==null?void 0:ct.OptionalFields)===null||lt===void 0)&<.Field&&!vt.isArray((E=ct.OptionalFields)===null||E===void 0?void 0:E.Field)&&(ct.OptionalFields.Field=[ct.OptionalFields.Field])}),ft=yt.formatObjKey(ft,"firstLowerCase",{exclude:["OSSBucketDestination","SSE-OSS","SSE-KMS"]}),ft}},{"../utils/dataFix":57,"../utils/formatObjKey":61,"../utils/isArray":63,"../utils/isObject":70,"core-js/modules/es.array.map.js":280,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305}],61:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault");rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.object.keys.js"),rt("core-js/modules/es.array.includes.js"),rt("core-js/modules/es.string.includes.js"),rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.replace.js");var pt=St(rt("@babel/runtime/helpers/typeof"));Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.formatObjKey=void 0;function vt(xt,dt,ft){if(xt===null||(0,pt.default)(xt)!=="object")return xt;var ct;if(Array.isArray(xt)){ct=[];for(var lt=0;lt `),xt&&xt.firstUpperCase&&(yt=St.formatObjKey(yt,"firstUpperCase")),pt(yt)==="object"?Object.keys(yt).forEach(function(ft){pt(yt[ft])!=="undefined"&&pt(yt[ft])!=="null"&&(pt(yt[ft])==="string"||pt(yt[ft])==="number"?dt+="<".concat(ft,">").concat(yt[ft],""):pt(yt[ft])==="object"?dt+="<".concat(ft,">").concat(vt(yt[ft]),""):pt(yt[ft])==="array"?dt+=yt[ft].map(function(ct){return"<".concat(ft,">").concat(vt(ct),"")}).join(""):dt+="<".concat(ft,">").concat(yt[ft].toString(),""))}):dt+=yt.toString(),dt}Ct.obj2xml=vt},{"./formatObjKey":61,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.map.js":280,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],73:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.array.slice.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/es.function.name.js"),rt("core-js/modules/es.array.from.js"),rt("core-js/modules/es.string.iterator.js"),rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.symbol.js"),rt("core-js/modules/es.symbol.description.js"),rt("core-js/modules/es.symbol.iterator.js"),rt("core-js/modules/es.array.iterator.js"),rt("core-js/modules/web.dom-collections.iterator.js"),rt("core-js/modules/es.object.assign.js");function St(xt,dt){var ft=typeof Symbol!="undefined"&&xt[Symbol.iterator]||xt["@@iterator"];if(!ft){if(Array.isArray(xt)||(ft=pt(xt))||dt&&xt&&typeof xt.length=="number"){ft&&(xt=ft);var ct=0,lt=function(){};return{s:lt,n:function(){return ct>=xt.length?{done:!0}:{done:!1,value:xt[ct++]}},e:function(at){throw at},f:lt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=!0,z=!1,ot;return{s:function(){ft=ft.call(xt)},n:function(){var at=ft.next();return E=at.done,at},e:function(at){z=!0,ot=at},f:function(){try{!E&&ft.return!=null&&ft.return()}finally{if(z)throw ot}}}}function pt(xt,dt){if(xt){if(typeof xt=="string")return vt(xt,dt);var ft=Object.prototype.toString.call(xt).slice(8,-1);if(ft==="Object"&&xt.constructor&&(ft=xt.constructor.name),ft==="Map"||ft==="Set")return Array.from(xt);if(ft==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ft))return vt(xt,dt)}}function vt(xt,dt){(dt==null||dt>xt.length)&&(dt=xt.length);for(var ft=0,ct=new Array(dt);ft2&&arguments[2]!==void 0?arguments[2]:{},xt=0,dt=yt.retryDelay,ft=dt===void 0?500:dt,ct=yt.errorHandler,lt=ct===void 0?function(){return!0}:ct,E=function z(){for(var ot=arguments.length,it=new Array(ot),at=0;at1&&arguments[1]!==void 0?arguments[1]:!1,ft=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;vt.checkConfigValid(xt,"region");var ct=ft?"https://":"http://",lt=dt?"-internal.aliyuncs.com":".aliyuncs.com",E="vpc100-oss-cn-";return xt.substr(0,E.length)===E&&(lt=".aliyuncs.com"),pt.default.parse(ct+xt+lt)}Ct.setRegion=yt},{"./checkConfigValid":52,url:472}],76:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.keys.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/es.array.find.js"),rt("core-js/modules/es.object.assign.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.checkCredentials=Ct.setSTSToken=void 0;var yt=rt("./formatObjKey");function xt(){return dt.apply(this,arguments)}function dt(){return dt=(0,vt.default)(pt.default.mark(function ct(){var lt,E;return pt.default.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:if(this.options||(this.options={}),lt=new Date,!this.stsTokenFreshTime){ot.next=14;break}if(!(+lt-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)){ot.next=12;break}return this.stsTokenFreshTime=lt,ot.next=7,this.options.refreshSTSToken();case 7:E=ot.sent,E=yt.formatObjKey(E,"firstLowerCase"),E.securityToken&&(E.stsToken=E.securityToken),ft(E),Object.assign(this.options,E);case 12:ot.next=15;break;case 14:this.stsTokenFreshTime=lt;case 15:return ot.abrupt("return",null);case 16:case"end":return ot.stop()}},ct,this)})),dt.apply(this,arguments)}Ct.setSTSToken=xt;function ft(ct){var lt=["accessKeySecret","accessKeyId","stsToken"],E=Object.keys(ct);lt.forEach(function(z){if(!E.find(function(ot){return ot===z}))throw Error("refreshSTSToken must return contains ".concat(z))})}Ct.checkCredentials=ft},{"./formatObjKey":61,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.find.js":275,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291}],77:[function(rt,kt,Ct){function St(vt,yt,xt,dt,ft,ct,lt){try{var E=vt[ct](lt),z=E.value}catch(ot){xt(ot);return}E.done?yt(z):Promise.resolve(z).then(dt,ft)}function pt(vt){return function(){var yt=this,xt=arguments;return new Promise(function(dt,ft){var ct=vt.apply(yt,xt);function lt(z){St(ct,dt,ft,lt,E,"next",z)}function E(z){St(ct,dt,ft,lt,E,"throw",z)}lt(void 0)})}}kt.exports=pt,kt.exports.__esModule=!0,kt.exports.default=kt.exports},{}],78:[function(rt,kt,Ct){function St(pt){return pt&&pt.__esModule?pt:{default:pt}}kt.exports=St,kt.exports.__esModule=!0,kt.exports.default=kt.exports},{}],79:[function(rt,kt,Ct){function St(pt){"@babel/helpers - typeof";return kt.exports=St=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(vt){return typeof vt}:function(vt){return vt&&typeof Symbol=="function"&&vt.constructor===Symbol&&vt!==Symbol.prototype?"symbol":typeof vt},kt.exports.__esModule=!0,kt.exports.default=kt.exports,St(pt)}kt.exports=St,kt.exports.__esModule=!0,kt.exports.default=kt.exports},{}],80:[function(rt,kt,Ct){kt.exports=rt("regenerator-runtime")},{"regenerator-runtime":395}],81:[function(rt,kt,Ct){kt.exports=St,kt.exports.HttpsAgent=St;function St(){}},{}],82:[function(rt,kt,Ct){(function(St){(function(){"use strict";var pt=rt("object-assign");function vt(Ht,ne){if(Ht===ne)return 0;for(var ae=Ht.length,ve=ne.length,Kt=0,re=Math.min(ae,ve);Kt=0){var Me=Kt.indexOf(` -`,we+1);Kt=Kt.substring(Me+1)}this.stack=Kt}}},xt.inherits(z.AssertionError,Error);function at(Ht,ne){return typeof Ht=="string"?Ht.length=0;me--)if(we[me]!==Me[me])return!1;for(me=we.length-1;me>=0;me--)if(ke=we[me],!_t(Ht[ke],ne[ke],ae,ve))return!1;return!0}z.notDeepEqual=function(ne,ae,ve){_t(ne,ae,!1)&&Et(ne,ae,ve,"notDeepEqual",z.notDeepEqual)},z.notDeepStrictEqual=Lt;function Lt(Ht,ne,ae){_t(Ht,ne,!0)&&Et(Ht,ne,ae,"notDeepStrictEqual",Lt)}z.strictEqual=function(ne,ae,ve){ne!==ae&&Et(ne,ae,ve,"===",z.strictEqual)},z.notStrictEqual=function(ne,ae,ve){ne===ae&&Et(ne,ae,ve,"!==",z.notStrictEqual)};function It(Ht,ne){if(!Ht||!ne)return!1;if(Object.prototype.toString.call(ne)=="[object RegExp]")return ne.test(Ht);try{if(Ht instanceof ne)return!0}catch(ae){}return Error.isPrototypeOf(ne)?!1:ne.call({},Ht)===!0}function Ut(Ht){var ne;try{Ht()}catch(ae){ne=ae}return ne}function Xt(Ht,ne,ae,ve){var Kt;if(typeof ne!="function")throw new TypeError('"block" argument must be a function');typeof ae=="string"&&(ve=ae,ae=null),Kt=Ut(ne),ve=(ae&&ae.name?" ("+ae.name+").":".")+(ve?" "+ve:"."),Ht&&!Kt&&Et(Kt,ae,"Missing expected exception"+ve);var re=typeof ve=="string",we=!Ht&&xt.isError(Kt),Me=!Ht&&Kt&&!ae;if((we&&re&&It(Kt,ae)||Me)&&Et(Kt,ae,"Got unwanted exception"+ve),Ht&&Kt&&ae&&!It(Kt,ae)||!Ht&&Kt)throw Kt}z.throws=function(Ht,ne,ae){Xt(!0,Ht,ne,ae)},z.doesNotThrow=function(Ht,ne,ae){Xt(!1,Ht,ne,ae)},z.ifError=function(Ht){if(Ht)throw Ht};function Gt(Ht,ne){Ht||Et(Ht,!0,ne,"==",Gt)}z.strict=pt(Gt,z,{equal:z.strictEqual,deepEqual:z.deepStrictEqual,notEqual:z.notStrictEqual,notDeepEqual:z.notDeepStrictEqual}),z.strict.strict=z.strict;var Yt=Object.keys||function(Ht){var ne=[];for(var ae in Ht)dt.call(Ht,ae)&&ne.push(ae);return ne}}).call(this)}).call(this,typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"object-assign":377,"util/":85}],83:[function(rt,kt,Ct){typeof Object.create=="function"?kt.exports=function(pt,vt){pt.super_=vt,pt.prototype=Object.create(vt.prototype,{constructor:{value:pt,enumerable:!1,writable:!0,configurable:!0}})}:kt.exports=function(pt,vt){pt.super_=vt;var yt=function(){};yt.prototype=vt.prototype,pt.prototype=new yt,pt.prototype.constructor=pt}},{}],84:[function(rt,kt,Ct){kt.exports=function(pt){return pt&&typeof pt=="object"&&typeof pt.copy=="function"&&typeof pt.fill=="function"&&typeof pt.readUInt8=="function"}},{}],85:[function(rt,kt,Ct){(function(St,pt){(function(){var vt=/%[sdj%]/g;Ct.format=function(Me){if(!jt(Me)){for(var ke=[],me=0;me=pe)return He;switch(He){case"%s":return String(fe[me++]);case"%d":return Number(fe[me++]);case"%j":try{return JSON.stringify(fe[me++])}catch(Se){return"[Circular]"}default:return He}}),je=fe[me];me=3&&(me.depth=arguments[2]),arguments.length>=4&&(me.colors=arguments[3]),Et(ke)?me.showHidden=ke:ke&&Ct._extend(me,ke),It(me.showHidden)&&(me.showHidden=!1),It(me.depth)&&(me.depth=2),It(me.colors)&&(me.colors=!1),It(me.customInspect)&&(me.customInspect=!0),me.colors&&(me.stylize=ft),E(me,Me,me.depth)}Ct.inspect=dt,dt.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},dt.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function ft(Me,ke){var me=dt.styles[ke];return me?"\x1B["+dt.colors[me][0]+"m"+Me+"\x1B["+dt.colors[me][1]+"m":Me}function ct(Me,ke){return Me}function lt(Me){var ke={};return Me.forEach(function(me,fe){ke[me]=!0}),ke}function E(Me,ke,me){if(Me.customInspect&&ke&&Ht(ke.inspect)&&ke.inspect!==Ct.inspect&&!(ke.constructor&&ke.constructor.prototype===ke)){var fe=ke.inspect(me,Me);return jt(fe)||(fe=E(Me,fe,me)),fe}var pe=z(Me,ke);if(pe)return pe;var _e=Object.keys(ke),je=lt(_e);if(Me.showHidden&&(_e=Object.getOwnPropertyNames(ke)),Yt(ke)&&(_e.indexOf("message")>=0||_e.indexOf("description")>=0))return ot(ke);if(_e.length===0){if(Ht(ke)){var He=ke.name?": "+ke.name:"";return Me.stylize("[Function"+He+"]","special")}if(Ut(ke))return Me.stylize(RegExp.prototype.toString.call(ke),"regexp");if(Gt(ke))return Me.stylize(Date.prototype.toString.call(ke),"date");if(Yt(ke))return ot(ke)}var Se="",xe=!1,le=["{","}"];if(wt(ke)&&(xe=!0,le=["[","]"]),Ht(ke)){var Ne=ke.name?": "+ke.name:"";Se=" [Function"+Ne+"]"}if(Ut(ke)&&(Se=" "+RegExp.prototype.toString.call(ke)),Gt(ke)&&(Se=" "+Date.prototype.toUTCString.call(ke)),Yt(ke)&&(Se=" "+ot(ke)),_e.length===0&&(!xe||ke.length==0))return le[0]+Se+le[1];if(me<0)return Ut(ke)?Me.stylize(RegExp.prototype.toString.call(ke),"regexp"):Me.stylize("[Object]","special");Me.seen.push(ke);var se;return xe?se=it(Me,ke,me,je,_e):se=_e.map(function(Ae){return at(Me,ke,me,je,Ae,xe)}),Me.seen.pop(),ut(se,Se,le)}function z(Me,ke){if(It(ke))return Me.stylize("undefined","undefined");if(jt(ke)){var me="'"+JSON.stringify(ke).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Me.stylize(me,"string")}if(Mt(ke))return Me.stylize(""+ke,"number");if(Et(ke))return Me.stylize(""+ke,"boolean");if(At(ke))return Me.stylize("null","null")}function ot(Me){return"["+Error.prototype.toString.call(Me)+"]"}function it(Me,ke,me,fe,pe){for(var _e=[],je=0,He=ke.length;jext.length)&&(dt=xt.length);for(var ft=0,ct=new Array(dt);ft2&&arguments[2]!==void 0?arguments[2]:{},xt=0,dt=yt.retryDelay,ft=dt===void 0?500:dt,ct=yt.errorHandler,lt=ct===void 0?function(){return!0}:ct,E=function z(){for(var ot=arguments.length,it=new Array(ot),at=0;at1&&arguments[1]!==void 0?arguments[1]:!1,ft=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;vt.checkConfigValid(xt,"region");var ct=ft?"https://":"http://",lt=dt?"-internal.aliyuncs.com":".aliyuncs.com",E="vpc100-oss-cn-";return xt.substr(0,E.length)===E&&(lt=".aliyuncs.com"),pt.default.parse(ct+xt+lt)}Ct.setRegion=yt},{"./checkConfigValid":52,url:472}],76:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/regenerator"));rt("core-js/modules/es.object.keys.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/es.array.find.js"),rt("core-js/modules/es.object.assign.js");var vt=St(rt("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.checkCredentials=Ct.setSTSToken=void 0;var yt=rt("./formatObjKey");function xt(){return dt.apply(this,arguments)}function dt(){return dt=(0,vt.default)(pt.default.mark(function ct(){var lt,E;return pt.default.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:if(this.options||(this.options={}),lt=new Date,!this.stsTokenFreshTime){ot.next=14;break}if(!(+lt-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)){ot.next=12;break}return this.stsTokenFreshTime=lt,ot.next=7,this.options.refreshSTSToken();case 7:E=ot.sent,E=yt.formatObjKey(E,"firstLowerCase"),E.securityToken&&(E.stsToken=E.securityToken),ft(E),Object.assign(this.options,E);case 12:ot.next=15;break;case 14:this.stsTokenFreshTime=lt;case 15:return ot.abrupt("return",null);case 16:case"end":return ot.stop()}},ct,this)})),dt.apply(this,arguments)}Ct.setSTSToken=xt;function ft(ct){var lt=["accessKeySecret","accessKeyId","stsToken"],E=Object.keys(ct);lt.forEach(function(z){if(!E.find(function(ot){return ot===z}))throw Error("refreshSTSToken must return contains ".concat(z))})}Ct.checkCredentials=ft},{"./formatObjKey":61,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.find.js":275,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291}],77:[function(rt,kt,Ct){function St(vt,yt,xt,dt,ft,ct,lt){try{var E=vt[ct](lt),z=E.value}catch(ot){xt(ot);return}E.done?yt(z):Promise.resolve(z).then(dt,ft)}function pt(vt){return function(){var yt=this,xt=arguments;return new Promise(function(dt,ft){var ct=vt.apply(yt,xt);function lt(z){St(ct,dt,ft,lt,E,"next",z)}function E(z){St(ct,dt,ft,lt,E,"throw",z)}lt(void 0)})}}kt.exports=pt,kt.exports.__esModule=!0,kt.exports.default=kt.exports},{}],78:[function(rt,kt,Ct){function St(pt){return pt&&pt.__esModule?pt:{default:pt}}kt.exports=St,kt.exports.__esModule=!0,kt.exports.default=kt.exports},{}],79:[function(rt,kt,Ct){function St(pt){"@babel/helpers - typeof";return kt.exports=St=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(vt){return typeof vt}:function(vt){return vt&&typeof Symbol=="function"&&vt.constructor===Symbol&&vt!==Symbol.prototype?"symbol":typeof vt},kt.exports.__esModule=!0,kt.exports.default=kt.exports,St(pt)}kt.exports=St,kt.exports.__esModule=!0,kt.exports.default=kt.exports},{}],80:[function(rt,kt,Ct){kt.exports=rt("regenerator-runtime")},{"regenerator-runtime":395}],81:[function(rt,kt,Ct){kt.exports=St,kt.exports.HttpsAgent=St;function St(){}},{}],82:[function(rt,kt,Ct){(function(St){(function(){"use strict";var pt=rt("object-assign");function vt(Ht,ne){if(Ht===ne)return 0;for(var se=Ht.length,ve=ne.length,Kt=0,re=Math.min(se,ve);Kt=0){var ke=Kt.indexOf(` +`,we+1);Kt=Kt.substring(ke+1)}this.stack=Kt}}},xt.inherits(z.AssertionError,Error);function at(Ht,ne){return typeof Ht=="string"?Ht.length=0;ge--)if(we[ge]!==ke[ge])return!1;for(ge=we.length-1;ge>=0;ge--)if(Me=we[ge],!_t(Ht[Me],ne[Me],se,ve))return!1;return!0}z.notDeepEqual=function(ne,se,ve){_t(ne,se,!1)&&Et(ne,se,ve,"notDeepEqual",z.notDeepEqual)},z.notDeepStrictEqual=Lt;function Lt(Ht,ne,se){_t(Ht,ne,!0)&&Et(Ht,ne,se,"notDeepStrictEqual",Lt)}z.strictEqual=function(ne,se,ve){ne!==se&&Et(ne,se,ve,"===",z.strictEqual)},z.notStrictEqual=function(ne,se,ve){ne===se&&Et(ne,se,ve,"!==",z.notStrictEqual)};function It(Ht,ne){if(!Ht||!ne)return!1;if(Object.prototype.toString.call(ne)=="[object RegExp]")return ne.test(Ht);try{if(Ht instanceof ne)return!0}catch(se){}return Error.isPrototypeOf(ne)?!1:ne.call({},Ht)===!0}function Ut(Ht){var ne;try{Ht()}catch(se){ne=se}return ne}function Xt(Ht,ne,se,ve){var Kt;if(typeof ne!="function")throw new TypeError('"block" argument must be a function');typeof se=="string"&&(ve=se,se=null),Kt=Ut(ne),ve=(se&&se.name?" ("+se.name+").":".")+(ve?" "+ve:"."),Ht&&!Kt&&Et(Kt,se,"Missing expected exception"+ve);var re=typeof ve=="string",we=!Ht&&xt.isError(Kt),ke=!Ht&&Kt&&!se;if((we&&re&&It(Kt,se)||ke)&&Et(Kt,se,"Got unwanted exception"+ve),Ht&&Kt&&se&&!It(Kt,se)||!Ht&&Kt)throw Kt}z.throws=function(Ht,ne,se){Xt(!0,Ht,ne,se)},z.doesNotThrow=function(Ht,ne,se){Xt(!1,Ht,ne,se)},z.ifError=function(Ht){if(Ht)throw Ht};function Gt(Ht,ne){Ht||Et(Ht,!0,ne,"==",Gt)}z.strict=pt(Gt,z,{equal:z.strictEqual,deepEqual:z.deepStrictEqual,notEqual:z.notStrictEqual,notDeepEqual:z.notDeepStrictEqual}),z.strict.strict=z.strict;var Vt=Object.keys||function(Ht){var ne=[];for(var se in Ht)dt.call(Ht,se)&&ne.push(se);return ne}}).call(this)}).call(this,typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"object-assign":377,"util/":85}],83:[function(rt,kt,Ct){typeof Object.create=="function"?kt.exports=function(pt,vt){pt.super_=vt,pt.prototype=Object.create(vt.prototype,{constructor:{value:pt,enumerable:!1,writable:!0,configurable:!0}})}:kt.exports=function(pt,vt){pt.super_=vt;var yt=function(){};yt.prototype=vt.prototype,pt.prototype=new yt,pt.prototype.constructor=pt}},{}],84:[function(rt,kt,Ct){kt.exports=function(pt){return pt&&typeof pt=="object"&&typeof pt.copy=="function"&&typeof pt.fill=="function"&&typeof pt.readUInt8=="function"}},{}],85:[function(rt,kt,Ct){(function(St,pt){(function(){var vt=/%[sdj%]/g;Ct.format=function(ke){if(!jt(ke)){for(var Me=[],ge=0;ge=de)return He;switch(He){case"%s":return String(fe[ge++]);case"%d":return Number(fe[ge++]);case"%j":try{return JSON.stringify(fe[ge++])}catch(Se){return"[Circular]"}default:return He}}),Oe=fe[ge];ge=3&&(ge.depth=arguments[2]),arguments.length>=4&&(ge.colors=arguments[3]),Et(Me)?ge.showHidden=Me:Me&&Ct._extend(ge,Me),It(ge.showHidden)&&(ge.showHidden=!1),It(ge.depth)&&(ge.depth=2),It(ge.colors)&&(ge.colors=!1),It(ge.customInspect)&&(ge.customInspect=!0),ge.colors&&(ge.stylize=ft),E(ge,ke,ge.depth)}Ct.inspect=dt,dt.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},dt.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function ft(ke,Me){var ge=dt.styles[Me];return ge?"\x1B["+dt.colors[ge][0]+"m"+ke+"\x1B["+dt.colors[ge][1]+"m":ke}function ct(ke,Me){return ke}function lt(ke){var Me={};return ke.forEach(function(ge,fe){Me[ge]=!0}),Me}function E(ke,Me,ge){if(ke.customInspect&&Me&&Ht(Me.inspect)&&Me.inspect!==Ct.inspect&&!(Me.constructor&&Me.constructor.prototype===Me)){var fe=Me.inspect(ge,ke);return jt(fe)||(fe=E(ke,fe,ge)),fe}var de=z(ke,Me);if(de)return de;var _e=Object.keys(Me),Oe=lt(_e);if(ke.showHidden&&(_e=Object.getOwnPropertyNames(Me)),Vt(Me)&&(_e.indexOf("message")>=0||_e.indexOf("description")>=0))return ot(Me);if(_e.length===0){if(Ht(Me)){var He=Me.name?": "+Me.name:"";return ke.stylize("[Function"+He+"]","special")}if(Ut(Me))return ke.stylize(RegExp.prototype.toString.call(Me),"regexp");if(Gt(Me))return ke.stylize(Date.prototype.toString.call(Me),"date");if(Vt(Me))return ot(Me)}var Se="",xe=!1,le=["{","}"];if(wt(Me)&&(xe=!0,le=["[","]"]),Ht(Me)){var Ne=Me.name?": "+Me.name:"";Se=" [Function"+Ne+"]"}if(Ut(Me)&&(Se=" "+RegExp.prototype.toString.call(Me)),Gt(Me)&&(Se=" "+Date.prototype.toUTCString.call(Me)),Vt(Me)&&(Se=" "+ot(Me)),_e.length===0&&(!xe||Me.length==0))return le[0]+Se+le[1];if(ge<0)return Ut(Me)?ke.stylize(RegExp.prototype.toString.call(Me),"regexp"):ke.stylize("[Object]","special");ke.seen.push(Me);var ae;return xe?ae=it(ke,Me,ge,Oe,_e):ae=_e.map(function(Ae){return at(ke,Me,ge,Oe,Ae,xe)}),ke.seen.pop(),ut(ae,Se,le)}function z(ke,Me){if(It(Me))return ke.stylize("undefined","undefined");if(jt(Me)){var ge="'"+JSON.stringify(Me).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return ke.stylize(ge,"string")}if(Mt(Me))return ke.stylize(""+Me,"number");if(Et(Me))return ke.stylize(""+Me,"boolean");if(At(Me))return ke.stylize("null","null")}function ot(ke){return"["+Error.prototype.toString.call(ke)+"]"}function it(ke,Me,ge,fe,de){for(var _e=[],Oe=0,He=Me.length;Oe-1&&(_e?He=He.split(` `).map(function(xe){return" "+xe}).join(` `).substr(2):He=` `+He.split(` `).map(function(xe){return" "+xe}).join(` -`))):He=Me.stylize("[Circular]","special")),It(je)){if(_e&&pe.match(/^\d+$/))return He;je=JSON.stringify(""+pe),je.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(je=je.substr(1,je.length-2),je=Me.stylize(je,"name")):(je=je.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),je=Me.stylize(je,"string"))}return je+": "+He}function ut(Me,ke,me){var fe=0,pe=Me.reduce(function(_e,je){return fe++,je.indexOf(` -`)>=0&&fe++,_e+je.replace(/\u001b\[\d\d?m/g,"").length+1},0);return pe>60?me[0]+(ke===""?"":ke+` - `)+" "+Me.join(`, - `)+" "+me[1]:me[0]+ke+" "+Me.join(", ")+" "+me[1]}function wt(Me){return Array.isArray(Me)}Ct.isArray=wt;function Et(Me){return typeof Me=="boolean"}Ct.isBoolean=Et;function At(Me){return Me===null}Ct.isNull=At;function _t(Me){return Me==null}Ct.isNullOrUndefined=_t;function Mt(Me){return typeof Me=="number"}Ct.isNumber=Mt;function jt(Me){return typeof Me=="string"}Ct.isString=jt;function Lt(Me){return typeof Me=="symbol"}Ct.isSymbol=Lt;function It(Me){return Me===void 0}Ct.isUndefined=It;function Ut(Me){return Xt(Me)&&ae(Me)==="[object RegExp]"}Ct.isRegExp=Ut;function Xt(Me){return typeof Me=="object"&&Me!==null}Ct.isObject=Xt;function Gt(Me){return Xt(Me)&&ae(Me)==="[object Date]"}Ct.isDate=Gt;function Yt(Me){return Xt(Me)&&(ae(Me)==="[object Error]"||Me instanceof Error)}Ct.isError=Yt;function Ht(Me){return typeof Me=="function"}Ct.isFunction=Ht;function ne(Me){return Me===null||typeof Me=="boolean"||typeof Me=="number"||typeof Me=="string"||typeof Me=="symbol"||typeof Me=="undefined"}Ct.isPrimitive=ne,Ct.isBuffer=rt("./support/isBuffer");function ae(Me){return Object.prototype.toString.call(Me)}function ve(Me){return Me<10?"0"+Me.toString(10):Me.toString(10)}var Kt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function re(){var Me=new Date,ke=[ve(Me.getHours()),ve(Me.getMinutes()),ve(Me.getSeconds())].join(":");return[Me.getDate(),Kt[Me.getMonth()],ke].join(" ")}Ct.log=function(){console.log("%s - %s",re(),Ct.format.apply(Ct,arguments))},Ct.inherits=rt("inherits"),Ct._extend=function(Me,ke){if(!ke||!Xt(ke))return Me;for(var me=Object.keys(ke),fe=me.length;fe--;)Me[me[fe]]=ke[me[fe]];return Me};function we(Me,ke){return Object.prototype.hasOwnProperty.call(Me,ke)}}).call(this)}).call(this,rt("_process"),typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":84,_process:467,inherits:83}],86:[function(rt,kt,Ct){(function(St){(function(){"use strict";var pt=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],vt=typeof globalThis=="undefined"?St:globalThis;kt.exports=function(){for(var xt=[],dt=0;dt0)throw new Error("Invalid string. Length must be a multiple of 4");var wt=at.indexOf("=");wt===-1&&(wt=ut);var Et=wt===ut?0:4-wt%4;return[wt,Et]}function ct(at){var ut=ft(at),wt=ut[0],Et=ut[1];return(wt+Et)*3/4-Et}function lt(at,ut,wt){return(ut+wt)*3/4-wt}function E(at){var ut,wt=ft(at),Et=wt[0],At=wt[1],_t=new vt(lt(at,Et,At)),Mt=0,jt=At>0?Et-4:Et,Lt;for(Lt=0;Lt>16&255,_t[Mt++]=ut>>8&255,_t[Mt++]=ut&255;return At===2&&(ut=pt[at.charCodeAt(Lt)]<<2|pt[at.charCodeAt(Lt+1)]>>4,_t[Mt++]=ut&255),At===1&&(ut=pt[at.charCodeAt(Lt)]<<10|pt[at.charCodeAt(Lt+1)]<<4|pt[at.charCodeAt(Lt+2)]>>2,_t[Mt++]=ut>>8&255,_t[Mt++]=ut&255),_t}function z(at){return St[at>>18&63]+St[at>>12&63]+St[at>>6&63]+St[at&63]}function ot(at,ut,wt){for(var Et,At=[],_t=ut;_tjt?jt:Mt+_t));return Et===1?(ut=at[wt-1],At.push(St[ut>>2]+St[ut<<4&63]+"==")):Et===2&&(ut=(at[wt-2]<<8)+at[wt-1],At.push(St[ut>>10]+St[ut>>4&63]+St[ut<<2&63]+"=")),At.join("")}},{}],88:[function(rt,kt,Ct){(function(St,pt,vt){typeof kt!="undefined"&&kt.exports?kt.exports=vt():typeof Rt=="function"&&Rt.amd?Rt(pt,vt):St[pt]=vt()})(this,"bowser",function(){var St=!0;function pt(lt){function E(ke){var me=lt.match(ke);return me&&me.length>1&&me[1]||""}function z(ke){var me=lt.match(ke);return me&&me.length>1&&me[2]||""}var ot=E(/(ipod|iphone|ipad)/i).toLowerCase(),it=/like android/i.test(lt),at=!it&&/android/i.test(lt),ut=/nexus\s*[0-6]\s*/i.test(lt),wt=!ut&&/nexus\s*[0-9]+/i.test(lt),Et=/CrOS/.test(lt),At=/silk/i.test(lt),_t=/sailfish/i.test(lt),Mt=/tizen/i.test(lt),jt=/(web|hpw)(o|0)s/i.test(lt),Lt=/windows phone/i.test(lt),It=/SamsungBrowser/i.test(lt),Ut=!Lt&&/windows/i.test(lt),Xt=!ot&&!At&&/macintosh/i.test(lt),Gt=!at&&!_t&&!Mt&&!jt&&/linux/i.test(lt),Yt=z(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),Ht=E(/version\/(\d+(\.\d+)?)/i),ne=/tablet/i.test(lt)&&!/tablet pc/i.test(lt),ae=!ne&&/[^-]mobi/i.test(lt),ve=/xbox/i.test(lt),Kt;/opera/i.test(lt)?Kt={name:"Opera",opera:St,version:Ht||E(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(lt)?Kt={name:"Opera",opera:St,version:E(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||Ht}:/SamsungBrowser/i.test(lt)?Kt={name:"Samsung Internet for Android",samsungBrowser:St,version:Ht||E(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(lt)?Kt={name:"NAVER Whale browser",whale:St,version:E(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(lt)?Kt={name:"MZ Browser",mzbrowser:St,version:E(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(lt)?Kt={name:"Opera Coast",coast:St,version:Ht||E(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(lt)?Kt={name:"Focus",focus:St,version:E(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(lt)?Kt={name:"Yandex Browser",yandexbrowser:St,version:Ht||E(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(lt)?Kt={name:"UC Browser",ucbrowser:St,version:E(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(lt)?Kt={name:"Maxthon",maxthon:St,version:E(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(lt)?Kt={name:"Epiphany",epiphany:St,version:E(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(lt)?Kt={name:"Puffin",puffin:St,version:E(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(lt)?Kt={name:"Sleipnir",sleipnir:St,version:E(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(lt)?Kt={name:"K-Meleon",kMeleon:St,version:E(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:Lt?(Kt={name:"Windows Phone",osname:"Windows Phone",windowsphone:St},Yt?(Kt.msedge=St,Kt.version=Yt):(Kt.msie=St,Kt.version=E(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(lt)?Kt={name:"Internet Explorer",msie:St,version:E(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:Et?Kt={name:"Chrome",osname:"Chrome OS",chromeos:St,chromeBook:St,chrome:St,version:E(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(lt)?Kt={name:"Microsoft Edge",msedge:St,version:Yt}:/vivaldi/i.test(lt)?Kt={name:"Vivaldi",vivaldi:St,version:E(/vivaldi\/(\d+(\.\d+)?)/i)||Ht}:_t?Kt={name:"Sailfish",osname:"Sailfish OS",sailfish:St,version:E(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(lt)?Kt={name:"SeaMonkey",seamonkey:St,version:E(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(lt)?(Kt={name:"Firefox",firefox:St,version:E(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(lt)&&(Kt.firefoxos=St,Kt.osname="Firefox OS")):At?Kt={name:"Amazon Silk",silk:St,version:E(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(lt)?Kt={name:"PhantomJS",phantom:St,version:E(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(lt)?Kt={name:"SlimerJS",slimer:St,version:E(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(lt)||/rim\stablet/i.test(lt)?Kt={name:"BlackBerry",osname:"BlackBerry OS",blackberry:St,version:Ht||E(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:jt?(Kt={name:"WebOS",osname:"WebOS",webos:St,version:Ht||E(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(lt)&&(Kt.touchpad=St)):/bada/i.test(lt)?Kt={name:"Bada",osname:"Bada",bada:St,version:E(/dolfin\/(\d+(\.\d+)?)/i)}:Mt?Kt={name:"Tizen",osname:"Tizen",tizen:St,version:E(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||Ht}:/qupzilla/i.test(lt)?Kt={name:"QupZilla",qupzilla:St,version:E(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||Ht}:/chromium/i.test(lt)?Kt={name:"Chromium",chromium:St,version:E(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||Ht}:/chrome|crios|crmo/i.test(lt)?Kt={name:"Chrome",chrome:St,version:E(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:at?Kt={name:"Android",version:Ht}:/safari|applewebkit/i.test(lt)?(Kt={name:"Safari",safari:St},Ht&&(Kt.version=Ht)):ot?(Kt={name:ot=="iphone"?"iPhone":ot=="ipad"?"iPad":"iPod"},Ht&&(Kt.version=Ht)):/googlebot/i.test(lt)?Kt={name:"Googlebot",googlebot:St,version:E(/googlebot\/(\d+(\.\d+))/i)||Ht}:Kt={name:E(/^(.*)\/(.*) /),version:z(/^(.*)\/(.*) /)},!Kt.msedge&&/(apple)?webkit/i.test(lt)?(/(apple)?webkit\/537\.36/i.test(lt)?(Kt.name=Kt.name||"Blink",Kt.blink=St):(Kt.name=Kt.name||"Webkit",Kt.webkit=St),!Kt.version&&Ht&&(Kt.version=Ht)):!Kt.opera&&/gecko\//i.test(lt)&&(Kt.name=Kt.name||"Gecko",Kt.gecko=St,Kt.version=Kt.version||E(/gecko\/(\d+(\.\d+)?)/i)),!Kt.windowsphone&&(at||Kt.silk)?(Kt.android=St,Kt.osname="Android"):!Kt.windowsphone&&ot?(Kt[ot]=St,Kt.ios=St,Kt.osname="iOS"):Xt?(Kt.mac=St,Kt.osname="macOS"):ve?(Kt.xbox=St,Kt.osname="Xbox"):Ut?(Kt.windows=St,Kt.osname="Windows"):Gt&&(Kt.linux=St,Kt.osname="Linux");function re(ke){switch(ke){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}}var we="";Kt.windows?we=re(E(/Windows ((NT|XP)( \d\d?.\d)?)/i)):Kt.windowsphone?we=E(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):Kt.mac?(we=E(/Mac OS X (\d+([_\.\s]\d+)*)/i),we=we.replace(/[_\s]/g,".")):ot?(we=E(/os (\d+([_\s]\d+)*) like mac os x/i),we=we.replace(/[_\s]/g,".")):at?we=E(/android[ \/-](\d+(\.\d+)*)/i):Kt.webos?we=E(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):Kt.blackberry?we=E(/rim\stablet\sos\s(\d+(\.\d+)*)/i):Kt.bada?we=E(/bada\/(\d+(\.\d+)*)/i):Kt.tizen&&(we=E(/tizen[\/\s](\d+(\.\d+)*)/i)),we&&(Kt.osversion=we);var Me=!Kt.windows&&we.split(".")[0];return ne||wt||ot=="ipad"||at&&(Me==3||Me>=4&&!ae)||Kt.silk?Kt.tablet=St:(ae||ot=="iphone"||ot=="ipod"||at||ut||Kt.blackberry||Kt.webos||Kt.bada)&&(Kt.mobile=St),Kt.msedge||Kt.msie&&Kt.version>=10||Kt.yandexbrowser&&Kt.version>=15||Kt.vivaldi&&Kt.version>=1||Kt.chrome&&Kt.version>=20||Kt.samsungBrowser&&Kt.version>=4||Kt.whale&&dt([Kt.version,"1.0"])===1||Kt.mzbrowser&&dt([Kt.version,"6.0"])===1||Kt.focus&&dt([Kt.version,"1.0"])===1||Kt.firefox&&Kt.version>=20||Kt.safari&&Kt.version>=6||Kt.opera&&Kt.version>=10||Kt.ios&&Kt.osversion&&Kt.osversion.split(".")[0]>=6||Kt.blackberry&&Kt.version>=10.1||Kt.chromium&&Kt.version>=20?Kt.a=St:Kt.msie&&Kt.version<10||Kt.chrome&&Kt.version<20||Kt.firefox&&Kt.version<20||Kt.safari&&Kt.version<6||Kt.opera&&Kt.version<10||Kt.ios&&Kt.osversion&&Kt.osversion.split(".")[0]<6||Kt.chromium&&Kt.version<20?Kt.c=St:Kt.x=St,Kt}var vt=pt(typeof navigator!="undefined"&&navigator.userAgent||"");vt.test=function(lt){for(var E=0;E=0;){if(z[0][E]>z[1][E])return 1;if(z[0][E]===z[1][E]){if(E===0)return 0}else return-1}}function ft(lt,E,z){var ot=vt;typeof E=="string"&&(z=E,E=void 0),E===void 0&&(E=!1),z&&(ot=pt(z));var it=""+ot.version;for(var at in lt)if(lt.hasOwnProperty(at)&&ot[at]){if(typeof lt[at]!="string")throw new Error("Browser version in the minVersion map should be a string: "+at+": "+String(lt));return dt([it,lt[at]])<0}return E}function ct(lt,E,z){return!ft(lt,E,z)}return vt.isUnsupportedBrowser=ft,vt.compareVersions=dt,vt.check=ct,vt._detect=pt,vt.detect=pt,vt})},{}],89:[function(rt,kt,Ct){},{}],90:[function(rt,kt,Ct){(function(St){(function(){"use strict";var pt=rt("base64-js"),vt=rt("ieee754");Ct.Buffer=ft,Ct.SlowBuffer=Et,Ct.INSPECT_MAX_BYTES=50;var yt=2147483647;Ct.kMaxLength=yt,ft.TYPED_ARRAY_SUPPORT=xt(),!ft.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function xt(){try{var ue=new Uint8Array(1);return ue.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},ue.foo()===42}catch($t){return!1}}Object.defineProperty(ft.prototype,"parent",{enumerable:!0,get:function(){if(ft.isBuffer(this))return this.buffer}}),Object.defineProperty(ft.prototype,"offset",{enumerable:!0,get:function(){if(ft.isBuffer(this))return this.byteOffset}});function dt(ue){if(ue>yt)throw new RangeError('The value "'+ue+'" is invalid for option "size"');var $t=new Uint8Array(ue);return $t.__proto__=ft.prototype,$t}function ft(ue,$t,he){if(typeof ue=="number"){if(typeof $t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return z(ue)}return ct(ue,$t,he)}typeof Symbol!="undefined"&&Symbol.species!=null&&ft[Symbol.species]===ft&&Object.defineProperty(ft,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),ft.poolSize=8192;function ct(ue,$t,he){if(typeof ue=="string")return ot(ue,$t);if(ArrayBuffer.isView(ue))return it(ue);if(ue==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ue);if(Be(ue,ArrayBuffer)||ue&&Be(ue.buffer,ArrayBuffer))return at(ue,$t,he);if(typeof ue=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var ye=ue.valueOf&&ue.valueOf();if(ye!=null&&ye!==ue)return ft.from(ye,$t,he);var Qt=ut(ue);if(Qt)return Qt;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof ue[Symbol.toPrimitive]=="function")return ft.from(ue[Symbol.toPrimitive]("string"),$t,he);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ue)}ft.from=function(ue,$t,he){return ct(ue,$t,he)},ft.prototype.__proto__=Uint8Array.prototype,ft.__proto__=Uint8Array;function lt(ue){if(typeof ue!="number")throw new TypeError('"size" argument must be of type number');if(ue<0)throw new RangeError('The value "'+ue+'" is invalid for option "size"')}function E(ue,$t,he){return lt(ue),ue<=0?dt(ue):$t!==void 0?typeof he=="string"?dt(ue).fill($t,he):dt(ue).fill($t):dt(ue)}ft.alloc=function(ue,$t,he){return E(ue,$t,he)};function z(ue){return lt(ue),dt(ue<0?0:wt(ue)|0)}ft.allocUnsafe=function(ue){return z(ue)},ft.allocUnsafeSlow=function(ue){return z(ue)};function ot(ue,$t){if((typeof $t!="string"||$t==="")&&($t="utf8"),!ft.isEncoding($t))throw new TypeError("Unknown encoding: "+$t);var he=At(ue,$t)|0,ye=dt(he),Qt=ye.write(ue,$t);return Qt!==he&&(ye=ye.slice(0,Qt)),ye}function it(ue){for(var $t=ue.length<0?0:wt(ue.length)|0,he=dt($t),ye=0;ye<$t;ye+=1)he[ye]=ue[ye]&255;return he}function at(ue,$t,he){if($t<0||ue.byteLength<$t)throw new RangeError('"offset" is outside of buffer bounds');if(ue.byteLength<$t+(he||0))throw new RangeError('"length" is outside of buffer bounds');var ye;return $t===void 0&&he===void 0?ye=new Uint8Array(ue):he===void 0?ye=new Uint8Array(ue,$t):ye=new Uint8Array(ue,$t,he),ye.__proto__=ft.prototype,ye}function ut(ue){if(ft.isBuffer(ue)){var $t=wt(ue.length)|0,he=dt($t);return he.length===0||ue.copy(he,0,0,$t),he}if(ue.length!==void 0)return typeof ue.length!="number"||Te(ue.length)?dt(0):it(ue);if(ue.type==="Buffer"&&Array.isArray(ue.data))return it(ue.data)}function wt(ue){if(ue>=yt)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+yt.toString(16)+" bytes");return ue|0}function Et(ue){return+ue!=ue&&(ue=0),ft.alloc(+ue)}ft.isBuffer=function($t){return $t!=null&&$t._isBuffer===!0&&$t!==ft.prototype},ft.compare=function($t,he){if(Be($t,Uint8Array)&&($t=ft.from($t,$t.offset,$t.byteLength)),Be(he,Uint8Array)&&(he=ft.from(he,he.offset,he.byteLength)),!ft.isBuffer($t)||!ft.isBuffer(he))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if($t===he)return 0;for(var ye=$t.length,Qt=he.length,Wt=0,Bt=Math.min(ye,Qt);Wt2&&arguments[2]===!0;if(!ye&&he===0)return 0;for(var Qt=!1;;)switch($t){case"ascii":case"latin1":case"binary":return he;case"utf8":case"utf-8":return le(ue).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return he*2;case"hex":return he>>>1;case"base64":return Ae(ue).length;default:if(Qt)return ye?-1:le(ue).length;$t=(""+$t).toLowerCase(),Qt=!0}}ft.byteLength=At;function _t(ue,$t,he){var ye=!1;if(($t===void 0||$t<0)&&($t=0),$t>this.length||((he===void 0||he>this.length)&&(he=this.length),he<=0)||(he>>>=0,$t>>>=0,he<=$t))return"";for(ue||(ue="utf8");;)switch(ue){case"hex":return Me(this,$t,he);case"utf8":case"utf-8":return ae(this,$t,he);case"ascii":return re(this,$t,he);case"latin1":case"binary":return we(this,$t,he);case"base64":return ne(this,$t,he);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ke(this,$t,he);default:if(ye)throw new TypeError("Unknown encoding: "+ue);ue=(ue+"").toLowerCase(),ye=!0}}ft.prototype._isBuffer=!0;function Mt(ue,$t,he){var ye=ue[$t];ue[$t]=ue[he],ue[he]=ye}ft.prototype.swap16=function(){var $t=this.length;if($t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var he=0;he<$t;he+=2)Mt(this,he,he+1);return this},ft.prototype.swap32=function(){var $t=this.length;if($t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var he=0;he<$t;he+=4)Mt(this,he,he+3),Mt(this,he+1,he+2);return this},ft.prototype.swap64=function(){var $t=this.length;if($t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var he=0;he<$t;he+=8)Mt(this,he,he+7),Mt(this,he+1,he+6),Mt(this,he+2,he+5),Mt(this,he+3,he+4);return this},ft.prototype.toString=function(){var $t=this.length;return $t===0?"":arguments.length===0?ae(this,0,$t):_t.apply(this,arguments)},ft.prototype.toLocaleString=ft.prototype.toString,ft.prototype.equals=function($t){if(!ft.isBuffer($t))throw new TypeError("Argument must be a Buffer");return this===$t?!0:ft.compare(this,$t)===0},ft.prototype.inspect=function(){var $t="",he=Ct.INSPECT_MAX_BYTES;return $t=this.toString("hex",0,he).replace(/(.{2})/g,"$1 ").trim(),this.length>he&&($t+=" ... "),""},ft.prototype.compare=function($t,he,ye,Qt,Wt){if(Be($t,Uint8Array)&&($t=ft.from($t,$t.offset,$t.byteLength)),!ft.isBuffer($t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof $t);if(he===void 0&&(he=0),ye===void 0&&(ye=$t?$t.length:0),Qt===void 0&&(Qt=0),Wt===void 0&&(Wt=this.length),he<0||ye>$t.length||Qt<0||Wt>this.length)throw new RangeError("out of range index");if(Qt>=Wt&&he>=ye)return 0;if(Qt>=Wt)return-1;if(he>=ye)return 1;if(he>>>=0,ye>>>=0,Qt>>>=0,Wt>>>=0,this===$t)return 0;for(var Bt=Wt-Qt,te=ye-he,ge=Math.min(Bt,te),Jt=this.slice(Qt,Wt),Ie=$t.slice(he,ye),Ue=0;Ue2147483647?he=2147483647:he<-2147483648&&(he=-2147483648),he=+he,Te(he)&&(he=Qt?0:ue.length-1),he<0&&(he=ue.length+he),he>=ue.length){if(Qt)return-1;he=ue.length-1}else if(he<0)if(Qt)he=0;else return-1;if(typeof $t=="string"&&($t=ft.from($t,ye)),ft.isBuffer($t))return $t.length===0?-1:Lt(ue,$t,he,ye,Qt);if(typeof $t=="number")return $t=$t&255,typeof Uint8Array.prototype.indexOf=="function"?Qt?Uint8Array.prototype.indexOf.call(ue,$t,he):Uint8Array.prototype.lastIndexOf.call(ue,$t,he):Lt(ue,[$t],he,ye,Qt);throw new TypeError("val must be string, number or Buffer")}function Lt(ue,$t,he,ye,Qt){var Wt=1,Bt=ue.length,te=$t.length;if(ye!==void 0&&(ye=String(ye).toLowerCase(),ye==="ucs2"||ye==="ucs-2"||ye==="utf16le"||ye==="utf-16le")){if(ue.length<2||$t.length<2)return-1;Wt=2,Bt/=2,te/=2,he/=2}function ge(Ze,nn){return Wt===1?Ze[nn]:Ze.readUInt16BE(nn*Wt)}var Jt;if(Qt){var Ie=-1;for(Jt=he;JtBt&&(he=Bt-te),Jt=he;Jt>=0;Jt--){for(var Ue=!0,Je=0;JeQt&&(ye=Qt)):ye=Qt;var Wt=$t.length;ye>Wt/2&&(ye=Wt/2);for(var Bt=0;Bt>>0,isFinite(ye)?(ye=ye>>>0,Qt===void 0&&(Qt="utf8")):(Qt=ye,ye=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Wt=this.length-he;if((ye===void 0||ye>Wt)&&(ye=Wt),$t.length>0&&(ye<0||he<0)||he>this.length)throw new RangeError("Attempt to write outside buffer bounds");Qt||(Qt="utf8");for(var Bt=!1;;)switch(Qt){case"hex":return It(this,$t,he,ye);case"utf8":case"utf-8":return Ut(this,$t,he,ye);case"ascii":return Xt(this,$t,he,ye);case"latin1":case"binary":return Gt(this,$t,he,ye);case"base64":return Yt(this,$t,he,ye);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ht(this,$t,he,ye);default:if(Bt)throw new TypeError("Unknown encoding: "+Qt);Qt=(""+Qt).toLowerCase(),Bt=!0}},ft.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ne(ue,$t,he){return $t===0&&he===ue.length?pt.fromByteArray(ue):pt.fromByteArray(ue.slice($t,he))}function ae(ue,$t,he){he=Math.min(ue.length,he);for(var ye=[],Qt=$t;Qt239?4:Wt>223?3:Wt>191?2:1;if(Qt+te<=he){var ge,Jt,Ie,Ue;switch(te){case 1:Wt<128&&(Bt=Wt);break;case 2:ge=ue[Qt+1],(ge&192)===128&&(Ue=(Wt&31)<<6|ge&63,Ue>127&&(Bt=Ue));break;case 3:ge=ue[Qt+1],Jt=ue[Qt+2],(ge&192)===128&&(Jt&192)===128&&(Ue=(Wt&15)<<12|(ge&63)<<6|Jt&63,Ue>2047&&(Ue<55296||Ue>57343)&&(Bt=Ue));break;case 4:ge=ue[Qt+1],Jt=ue[Qt+2],Ie=ue[Qt+3],(ge&192)===128&&(Jt&192)===128&&(Ie&192)===128&&(Ue=(Wt&15)<<18|(ge&63)<<12|(Jt&63)<<6|Ie&63,Ue>65535&&Ue<1114112&&(Bt=Ue))}}Bt===null?(Bt=65533,te=1):Bt>65535&&(Bt-=65536,ye.push(Bt>>>10&1023|55296),Bt=56320|Bt&1023),ye.push(Bt),Qt+=te}return Kt(ye)}var ve=4096;function Kt(ue){var $t=ue.length;if($t<=ve)return String.fromCharCode.apply(String,ue);for(var he="",ye=0;ye<$t;)he+=String.fromCharCode.apply(String,ue.slice(ye,ye+=ve));return he}function re(ue,$t,he){var ye="";he=Math.min(ue.length,he);for(var Qt=$t;Qtye)&&(he=ye);for(var Qt="",Wt=$t;Wtye&&($t=ye),he<0?(he+=ye,he<0&&(he=0)):he>ye&&(he=ye),he<$t&&(he=$t);var Qt=this.subarray($t,he);return Qt.__proto__=ft.prototype,Qt};function me(ue,$t,he){if(ue%1!==0||ue<0)throw new RangeError("offset is not uint");if(ue+$t>he)throw new RangeError("Trying to access beyond buffer length")}ft.prototype.readUIntLE=function($t,he,ye){$t=$t>>>0,he=he>>>0,ye||me($t,he,this.length);for(var Qt=this[$t],Wt=1,Bt=0;++Bt>>0,he=he>>>0,ye||me($t,he,this.length);for(var Qt=this[$t+--he],Wt=1;he>0&&(Wt*=256);)Qt+=this[$t+--he]*Wt;return Qt},ft.prototype.readUInt8=function($t,he){return $t=$t>>>0,he||me($t,1,this.length),this[$t]},ft.prototype.readUInt16LE=function($t,he){return $t=$t>>>0,he||me($t,2,this.length),this[$t]|this[$t+1]<<8},ft.prototype.readUInt16BE=function($t,he){return $t=$t>>>0,he||me($t,2,this.length),this[$t]<<8|this[$t+1]},ft.prototype.readUInt32LE=function($t,he){return $t=$t>>>0,he||me($t,4,this.length),(this[$t]|this[$t+1]<<8|this[$t+2]<<16)+this[$t+3]*16777216},ft.prototype.readUInt32BE=function($t,he){return $t=$t>>>0,he||me($t,4,this.length),this[$t]*16777216+(this[$t+1]<<16|this[$t+2]<<8|this[$t+3])},ft.prototype.readIntLE=function($t,he,ye){$t=$t>>>0,he=he>>>0,ye||me($t,he,this.length);for(var Qt=this[$t],Wt=1,Bt=0;++Bt=Wt&&(Qt-=Math.pow(2,8*he)),Qt},ft.prototype.readIntBE=function($t,he,ye){$t=$t>>>0,he=he>>>0,ye||me($t,he,this.length);for(var Qt=he,Wt=1,Bt=this[$t+--Qt];Qt>0&&(Wt*=256);)Bt+=this[$t+--Qt]*Wt;return Wt*=128,Bt>=Wt&&(Bt-=Math.pow(2,8*he)),Bt},ft.prototype.readInt8=function($t,he){return $t=$t>>>0,he||me($t,1,this.length),this[$t]&128?(255-this[$t]+1)*-1:this[$t]},ft.prototype.readInt16LE=function($t,he){$t=$t>>>0,he||me($t,2,this.length);var ye=this[$t]|this[$t+1]<<8;return ye&32768?ye|4294901760:ye},ft.prototype.readInt16BE=function($t,he){$t=$t>>>0,he||me($t,2,this.length);var ye=this[$t+1]|this[$t]<<8;return ye&32768?ye|4294901760:ye},ft.prototype.readInt32LE=function($t,he){return $t=$t>>>0,he||me($t,4,this.length),this[$t]|this[$t+1]<<8|this[$t+2]<<16|this[$t+3]<<24},ft.prototype.readInt32BE=function($t,he){return $t=$t>>>0,he||me($t,4,this.length),this[$t]<<24|this[$t+1]<<16|this[$t+2]<<8|this[$t+3]},ft.prototype.readFloatLE=function($t,he){return $t=$t>>>0,he||me($t,4,this.length),vt.read(this,$t,!0,23,4)},ft.prototype.readFloatBE=function($t,he){return $t=$t>>>0,he||me($t,4,this.length),vt.read(this,$t,!1,23,4)},ft.prototype.readDoubleLE=function($t,he){return $t=$t>>>0,he||me($t,8,this.length),vt.read(this,$t,!0,52,8)},ft.prototype.readDoubleBE=function($t,he){return $t=$t>>>0,he||me($t,8,this.length),vt.read(this,$t,!1,52,8)};function fe(ue,$t,he,ye,Qt,Wt){if(!ft.isBuffer(ue))throw new TypeError('"buffer" argument must be a Buffer instance');if($t>Qt||$tue.length)throw new RangeError("Index out of range")}ft.prototype.writeUIntLE=function($t,he,ye,Qt){if($t=+$t,he=he>>>0,ye=ye>>>0,!Qt){var Wt=Math.pow(2,8*ye)-1;fe(this,$t,he,ye,Wt,0)}var Bt=1,te=0;for(this[he]=$t&255;++te>>0,ye=ye>>>0,!Qt){var Wt=Math.pow(2,8*ye)-1;fe(this,$t,he,ye,Wt,0)}var Bt=ye-1,te=1;for(this[he+Bt]=$t&255;--Bt>=0&&(te*=256);)this[he+Bt]=$t/te&255;return he+ye},ft.prototype.writeUInt8=function($t,he,ye){return $t=+$t,he=he>>>0,ye||fe(this,$t,he,1,255,0),this[he]=$t&255,he+1},ft.prototype.writeUInt16LE=function($t,he,ye){return $t=+$t,he=he>>>0,ye||fe(this,$t,he,2,65535,0),this[he]=$t&255,this[he+1]=$t>>>8,he+2},ft.prototype.writeUInt16BE=function($t,he,ye){return $t=+$t,he=he>>>0,ye||fe(this,$t,he,2,65535,0),this[he]=$t>>>8,this[he+1]=$t&255,he+2},ft.prototype.writeUInt32LE=function($t,he,ye){return $t=+$t,he=he>>>0,ye||fe(this,$t,he,4,4294967295,0),this[he+3]=$t>>>24,this[he+2]=$t>>>16,this[he+1]=$t>>>8,this[he]=$t&255,he+4},ft.prototype.writeUInt32BE=function($t,he,ye){return $t=+$t,he=he>>>0,ye||fe(this,$t,he,4,4294967295,0),this[he]=$t>>>24,this[he+1]=$t>>>16,this[he+2]=$t>>>8,this[he+3]=$t&255,he+4},ft.prototype.writeIntLE=function($t,he,ye,Qt){if($t=+$t,he=he>>>0,!Qt){var Wt=Math.pow(2,8*ye-1);fe(this,$t,he,ye,Wt-1,-Wt)}var Bt=0,te=1,ge=0;for(this[he]=$t&255;++Bt>0)-ge&255;return he+ye},ft.prototype.writeIntBE=function($t,he,ye,Qt){if($t=+$t,he=he>>>0,!Qt){var Wt=Math.pow(2,8*ye-1);fe(this,$t,he,ye,Wt-1,-Wt)}var Bt=ye-1,te=1,ge=0;for(this[he+Bt]=$t&255;--Bt>=0&&(te*=256);)$t<0&&ge===0&&this[he+Bt+1]!==0&&(ge=1),this[he+Bt]=($t/te>>0)-ge&255;return he+ye},ft.prototype.writeInt8=function($t,he,ye){return $t=+$t,he=he>>>0,ye||fe(this,$t,he,1,127,-128),$t<0&&($t=255+$t+1),this[he]=$t&255,he+1},ft.prototype.writeInt16LE=function($t,he,ye){return $t=+$t,he=he>>>0,ye||fe(this,$t,he,2,32767,-32768),this[he]=$t&255,this[he+1]=$t>>>8,he+2},ft.prototype.writeInt16BE=function($t,he,ye){return $t=+$t,he=he>>>0,ye||fe(this,$t,he,2,32767,-32768),this[he]=$t>>>8,this[he+1]=$t&255,he+2},ft.prototype.writeInt32LE=function($t,he,ye){return $t=+$t,he=he>>>0,ye||fe(this,$t,he,4,2147483647,-2147483648),this[he]=$t&255,this[he+1]=$t>>>8,this[he+2]=$t>>>16,this[he+3]=$t>>>24,he+4},ft.prototype.writeInt32BE=function($t,he,ye){return $t=+$t,he=he>>>0,ye||fe(this,$t,he,4,2147483647,-2147483648),$t<0&&($t=4294967295+$t+1),this[he]=$t>>>24,this[he+1]=$t>>>16,this[he+2]=$t>>>8,this[he+3]=$t&255,he+4};function pe(ue,$t,he,ye,Qt,Wt){if(he+ye>ue.length)throw new RangeError("Index out of range");if(he<0)throw new RangeError("Index out of range")}function _e(ue,$t,he,ye,Qt){return $t=+$t,he=he>>>0,Qt||pe(ue,$t,he,4,34028234663852886e22,-34028234663852886e22),vt.write(ue,$t,he,ye,23,4),he+4}ft.prototype.writeFloatLE=function($t,he,ye){return _e(this,$t,he,!0,ye)},ft.prototype.writeFloatBE=function($t,he,ye){return _e(this,$t,he,!1,ye)};function je(ue,$t,he,ye,Qt){return $t=+$t,he=he>>>0,Qt||pe(ue,$t,he,8,17976931348623157e292,-17976931348623157e292),vt.write(ue,$t,he,ye,52,8),he+8}ft.prototype.writeDoubleLE=function($t,he,ye){return je(this,$t,he,!0,ye)},ft.prototype.writeDoubleBE=function($t,he,ye){return je(this,$t,he,!1,ye)},ft.prototype.copy=function($t,he,ye,Qt){if(!ft.isBuffer($t))throw new TypeError("argument should be a Buffer");if(ye||(ye=0),!Qt&&Qt!==0&&(Qt=this.length),he>=$t.length&&(he=$t.length),he||(he=0),Qt>0&&Qt=this.length)throw new RangeError("Index out of range");if(Qt<0)throw new RangeError("sourceEnd out of bounds");Qt>this.length&&(Qt=this.length),$t.length-he=0;--Bt)$t[Bt+he]=this[Bt+ye];else Uint8Array.prototype.set.call($t,this.subarray(ye,Qt),he);return Wt},ft.prototype.fill=function($t,he,ye,Qt){if(typeof $t=="string"){if(typeof he=="string"?(Qt=he,he=0,ye=this.length):typeof ye=="string"&&(Qt=ye,ye=this.length),Qt!==void 0&&typeof Qt!="string")throw new TypeError("encoding must be a string");if(typeof Qt=="string"&&!ft.isEncoding(Qt))throw new TypeError("Unknown encoding: "+Qt);if($t.length===1){var Wt=$t.charCodeAt(0);(Qt==="utf8"&&Wt<128||Qt==="latin1")&&($t=Wt)}}else typeof $t=="number"&&($t=$t&255);if(he<0||this.length>>0,ye=ye===void 0?this.length:ye>>>0,$t||($t=0);var Bt;if(typeof $t=="number")for(Bt=he;Bt55295&&he<57344){if(!Qt){if(he>56319){($t-=3)>-1&&Wt.push(239,191,189);continue}else if(Bt+1===ye){($t-=3)>-1&&Wt.push(239,191,189);continue}Qt=he;continue}if(he<56320){($t-=3)>-1&&Wt.push(239,191,189),Qt=he;continue}he=(Qt-55296<<10|he-56320)+65536}else Qt&&($t-=3)>-1&&Wt.push(239,191,189);if(Qt=null,he<128){if(($t-=1)<0)break;Wt.push(he)}else if(he<2048){if(($t-=2)<0)break;Wt.push(he>>6|192,he&63|128)}else if(he<65536){if(($t-=3)<0)break;Wt.push(he>>12|224,he>>6&63|128,he&63|128)}else if(he<1114112){if(($t-=4)<0)break;Wt.push(he>>18|240,he>>12&63|128,he>>6&63|128,he&63|128)}else throw new Error("Invalid code point")}return Wt}function Ne(ue){for(var $t=[],he=0;he>8,Qt=he%256,Wt.push(Qt),Wt.push(ye);return Wt}function Ae(ue){return pt.toByteArray(Se(ue))}function Xe(ue,$t,he,ye){for(var Qt=0;Qt=$t.length||Qt>=ue.length);++Qt)$t[Qt+he]=ue[Qt];return Qt}function Be(ue,$t){return ue instanceof $t||ue!=null&&ue.constructor!=null&&ue.constructor.name!=null&&ue.constructor.name===$t.name}function Te(ue){return ue!==ue}}).call(this)}).call(this,rt("buffer").Buffer)},{"base64-js":87,buffer:90,ieee754:357}],91:[function(rt,kt,Ct){kt.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],92:[function(rt,kt,Ct){"use strict";var St=rt("get-intrinsic"),pt=rt("./"),vt=pt(St("String.prototype.indexOf"));kt.exports=function(xt,dt){var ft=St(xt,!!dt);return typeof ft=="function"&&vt(xt,".prototype.")>-1?pt(ft):ft}},{"./":93,"get-intrinsic":348}],93:[function(rt,kt,Ct){"use strict";var St=rt("function-bind"),pt=rt("get-intrinsic"),vt=pt("%Function.prototype.apply%"),yt=pt("%Function.prototype.call%"),xt=pt("%Reflect.apply%",!0)||St.call(yt,vt),dt=pt("%Object.getOwnPropertyDescriptor%",!0),ft=pt("%Object.defineProperty%",!0),ct=pt("%Math.max%");if(ft)try{ft({},"a",{value:1})}catch(E){ft=null}kt.exports=function(z){var ot=xt(St,yt,arguments);if(dt&&ft){var it=dt(ot,"length");it.configurable&&ft(ot,"length",{value:1+ct(0,z.length-(arguments.length-1))})}return ot};var lt=function(){return xt(St,vt,arguments)};ft?ft(kt.exports,"apply",{value:lt}):kt.exports.apply=lt},{"function-bind":347,"get-intrinsic":348}],94:[function(rt,kt,Ct){"use strict";var St=Array.prototype.slice;kt.exports=pt;function pt(yt,xt){if(!(this instanceof pt))return new pt(yt,xt);this.src=yt,this._withAccess=xt}pt.prototype.withAccess=function(yt){return this._withAccess=yt!==!1,this},pt.prototype.pick=function(yt){return Array.isArray(yt)||(yt=St.call(arguments)),yt.length&&(this.keys=yt),this},pt.prototype.to=function(yt){if(yt=yt||{},!this.src)return yt;var xt=this.keys||Object.keys(this.src);if(!this._withAccess){for(var dt=0;dt>8&255]},le=function(Bt){return[Bt&255,Bt>>8&255,Bt>>16&255,Bt>>24&255]},Ne=function(Bt){return Bt[3]<<24|Bt[2]<<16|Bt[1]<<8|Bt[0]},se=function(Bt){return je(Bt,23,4)},Ae=function(Bt){return je(Bt,52,8)},Xe=function(Bt,te){Et(Bt[Ht],te,{get:function(){return Ut(this)[te]}})},Be=function(Bt,te,ge,Jt){var Ie=ot(ge),Ue=Ut(Bt);if(Ie+te>Ue.byteLength)throw fe(ae);var Je=Ut(Ue.buffer).bytes,Ze=Ie+Ue.byteOffset,nn=_t(Je,Ze,Ze+te);return Jt?nn:_e(nn)},Te=function(Bt,te,ge,Jt,Ie,Ue){var Je=ot(ge),Ze=Ut(Bt);if(Je+te>Ze.byteLength)throw fe(ae);for(var nn=Ut(Ze.buffer).bytes,fn=Je+Ze.byteOffset,An=Jt(+Ie),En=0;EnIe)throw fe("Wrong offset");if(Jt=Jt===void 0?Ie-Ue:z(Jt),Ue+Jt>Ie)throw fe(ne);Xt(this,{buffer:te,byteLength:Jt,byteOffset:Ue}),vt||(this.buffer=te,this.byteLength=Jt,this.byteOffset=Ue)},Me=we[Ht],vt&&(Xe(Kt,"byteLength"),Xe(we,"buffer"),Xe(we,"byteLength"),Xe(we,"byteOffset")),ft(Me,{getInt8:function(te){return Be(this,1,te)[0]<<24>>24},getUint8:function(te){return Be(this,1,te)[0]},getInt16:function(te){var ge=Be(this,2,te,arguments.length>1?arguments[1]:void 0);return(ge[1]<<8|ge[0])<<16>>16},getUint16:function(te){var ge=Be(this,2,te,arguments.length>1?arguments[1]:void 0);return ge[1]<<8|ge[0]},getInt32:function(te){return Ne(Be(this,4,te,arguments.length>1?arguments[1]:void 0))},getUint32:function(te){return Ne(Be(this,4,te,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(te){return He(Be(this,4,te,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(te){return He(Be(this,8,te,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(te,ge){Te(this,1,te,Se,ge)},setUint8:function(te,ge){Te(this,1,te,Se,ge)},setInt16:function(te,ge){Te(this,2,te,xe,ge,arguments.length>2?arguments[2]:void 0)},setUint16:function(te,ge){Te(this,2,te,xe,ge,arguments.length>2?arguments[2]:void 0)},setInt32:function(te,ge){Te(this,4,te,le,ge,arguments.length>2?arguments[2]:void 0)},setUint32:function(te,ge){Te(this,4,te,le,ge,arguments.length>2?arguments[2]:void 0)},setFloat32:function(te,ge){Te(this,4,te,se,ge,arguments.length>2?arguments[2]:void 0)},setFloat64:function(te,ge){Te(this,8,te,Ae,ge,arguments.length>2?arguments[2]:void 0)}});else{var ue=Lt&&ve.name!==Gt;if(!ct(function(){ve(1)})||!ct(function(){new ve(-1)})||ct(function(){return new ve,new ve(1.5),new ve(NaN),ue&&!It})){Kt=function(te){return lt(this,re),new ve(ot(te))},Kt[Ht]=re;for(var $t=wt(ve),he=0,ye;$t.length>he;)(ye=$t[he++])in Kt||dt(Kt,ye,ve[ye]);re.constructor=Kt}else ue&&It&&dt(ve,"name",Gt);ut&&at(Me)!==ke&&ut(Me,ke);var Qt=new we(new Kt(2)),Wt=pt(Me.setInt8);Qt.setInt8(0,2147483648),Qt.setInt8(1,2147483649),(Qt.getInt8(0)||!Qt.getInt8(1))&&ft(Me,{setInt8:function(te,ge){Wt(this,te,ge<<24>>24)},setUint8:function(te,ge){Wt(this,te,ge<<24>>24)}},{unsafe:!0})}Mt(Kt,Gt),Mt(we,Yt),kt.exports={ArrayBuffer:Kt,DataView:we}},{"../internals/an-instance":100,"../internals/array-buffer-native":102,"../internals/array-fill":106,"../internals/array-slice-simple":116,"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/fails":150,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/ieee754":169,"../internals/internal-state":173,"../internals/object-define-property":198,"../internals/object-get-own-property-names":201,"../internals/object-get-prototype-of":203,"../internals/object-set-prototype-of":208,"../internals/redefine-all":221,"../internals/set-to-string-tag":234,"../internals/to-index":246,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],105:[function(rt,kt,Ct){"use strict";var St=rt("../internals/to-object"),pt=rt("../internals/to-absolute-index"),vt=rt("../internals/length-of-array-like"),yt=Math.min;kt.exports=[].copyWithin||function(dt,ft){var ct=St(this),lt=vt(ct),E=pt(dt,lt),z=pt(ft,lt),ot=arguments.length>2?arguments[2]:void 0,it=yt((ot===void 0?lt:pt(ot,lt))-z,lt-E),at=1;for(z0;)z in ct?ct[E]=ct[z]:delete ct[E],E+=at,z+=at;return ct}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],106:[function(rt,kt,Ct){"use strict";var St=rt("../internals/to-object"),pt=rt("../internals/to-absolute-index"),vt=rt("../internals/length-of-array-like");kt.exports=function(xt){for(var dt=St(this),ft=vt(dt),ct=arguments.length,lt=pt(ct>1?arguments[1]:void 0,ft),E=ct>2?arguments[2]:void 0,z=E===void 0?ft:pt(E,ft);z>lt;)dt[lt++]=xt;return dt}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],107:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-iteration").forEach,pt=rt("../internals/array-method-is-strict"),vt=pt("forEach");kt.exports=vt?[].forEach:function(xt){return St(this,xt,arguments.length>1?arguments[1]:void 0)}},{"../internals/array-iteration":111,"../internals/array-method-is-strict":114}],108:[function(rt,kt,Ct){var St=rt("../internals/length-of-array-like");kt.exports=function(pt,vt){for(var yt=0,xt=St(vt),dt=new pt(xt);xt>yt;)dt[yt]=vt[yt++];return dt}},{"../internals/length-of-array-like":188}],109:[function(rt,kt,Ct){"use strict";var St=rt("../internals/global"),pt=rt("../internals/function-bind-context"),vt=rt("../internals/function-call"),yt=rt("../internals/to-object"),xt=rt("../internals/call-with-safe-iteration-closing"),dt=rt("../internals/is-array-iterator-method"),ft=rt("../internals/is-constructor"),ct=rt("../internals/length-of-array-like"),lt=rt("../internals/create-property"),E=rt("../internals/get-iterator"),z=rt("../internals/get-iterator-method"),ot=St.Array;kt.exports=function(at){var ut=yt(at),wt=ft(this),Et=arguments.length,At=Et>1?arguments[1]:void 0,_t=At!==void 0;_t&&(At=pt(At,Et>2?arguments[2]:void 0));var Mt=z(ut),jt=0,Lt,It,Ut,Xt,Gt,Yt;if(Mt&&!(this==ot&&dt(Mt)))for(Xt=E(ut,Mt),Gt=Xt.next,It=wt?new this:[];!(Ut=vt(Gt,Xt)).done;jt++)Yt=_t?xt(Xt,At,[Ut.value,jt],!0):Ut.value,lt(It,jt,Yt);else for(Lt=ct(ut),It=wt?new this(Lt):ot(Lt);Lt>jt;jt++)Yt=_t?At(ut[jt],jt):ut[jt],lt(It,jt,Yt);return It.length=jt,It}},{"../internals/call-with-safe-iteration-closing":121,"../internals/create-property":131,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/is-array-iterator-method":174,"../internals/is-constructor":177,"../internals/length-of-array-like":188,"../internals/to-object":250}],110:[function(rt,kt,Ct){var St=rt("../internals/to-indexed-object"),pt=rt("../internals/to-absolute-index"),vt=rt("../internals/length-of-array-like"),yt=function(xt){return function(dt,ft,ct){var lt=St(dt),E=vt(lt),z=pt(ct,E),ot;if(xt&&ft!=ft){for(;E>z;)if(ot=lt[z++],ot!=ot)return!0}else for(;E>z;z++)if((xt||z in lt)&<[z]===ft)return xt||z||0;return!xt&&-1}};kt.exports={includes:yt(!0),indexOf:yt(!1)}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247}],111:[function(rt,kt,Ct){var St=rt("../internals/function-bind-context"),pt=rt("../internals/function-uncurry-this"),vt=rt("../internals/indexed-object"),yt=rt("../internals/to-object"),xt=rt("../internals/length-of-array-like"),dt=rt("../internals/array-species-create"),ft=pt([].push),ct=function(lt){var E=lt==1,z=lt==2,ot=lt==3,it=lt==4,at=lt==6,ut=lt==7,wt=lt==5||at;return function(Et,At,_t,Mt){for(var jt=yt(Et),Lt=vt(jt),It=St(At,_t),Ut=xt(Lt),Xt=0,Gt=Mt||dt,Yt=E?Gt(Et,Ut):z||ut?Gt(Et,0):void 0,Ht,ne;Ut>Xt;Xt++)if((wt||Xt in Lt)&&(Ht=Lt[Xt],ne=It(Ht,Xt,jt),lt))if(E)Yt[Xt]=ne;else if(ne)switch(lt){case 3:return!0;case 5:return Ht;case 6:return Xt;case 2:ft(Yt,Ht)}else switch(lt){case 4:return!1;case 7:ft(Yt,Ht)}return at?-1:ot||it?it:Yt}};kt.exports={forEach:ct(0),map:ct(1),filter:ct(2),some:ct(3),every:ct(4),find:ct(5),findIndex:ct(6),filterReject:ct(7)}},{"../internals/array-species-create":120,"../internals/function-bind-context":153,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],112:[function(rt,kt,Ct){"use strict";var St=rt("../internals/function-apply"),pt=rt("../internals/to-indexed-object"),vt=rt("../internals/to-integer-or-infinity"),yt=rt("../internals/length-of-array-like"),xt=rt("../internals/array-method-is-strict"),dt=Math.min,ft=[].lastIndexOf,ct=!!ft&&1/[1].lastIndexOf(1,-0)<0,lt=xt("lastIndexOf"),E=ct||!lt;kt.exports=E?function(ot){if(ct)return St(ft,this,arguments)||0;var it=pt(this),at=yt(it),ut=at-1;for(arguments.length>1&&(ut=dt(ut,vt(arguments[1]))),ut<0&&(ut=at+ut);ut>=0;ut--)if(ut in it&&it[ut]===ot)return ut||0;return-1}:ft},{"../internals/array-method-is-strict":114,"../internals/function-apply":152,"../internals/length-of-array-like":188,"../internals/to-indexed-object":247,"../internals/to-integer-or-infinity":248}],113:[function(rt,kt,Ct){var St=rt("../internals/fails"),pt=rt("../internals/well-known-symbol"),vt=rt("../internals/engine-v8-version"),yt=pt("species");kt.exports=function(xt){return vt>=51||!St(function(){var dt=[],ft=dt.constructor={};return ft[yt]=function(){return{foo:1}},dt[xt](Boolean).foo!==1})}},{"../internals/engine-v8-version":146,"../internals/fails":150,"../internals/well-known-symbol":268}],114:[function(rt,kt,Ct){"use strict";var St=rt("../internals/fails");kt.exports=function(pt,vt){var yt=[][pt];return!!yt&&St(function(){yt.call(null,vt||function(){return 1},1)})}},{"../internals/fails":150}],115:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/a-callable"),vt=rt("../internals/to-object"),yt=rt("../internals/indexed-object"),xt=rt("../internals/length-of-array-like"),dt=St.TypeError,ft=function(ct){return function(lt,E,z,ot){pt(E);var it=vt(lt),at=yt(it),ut=xt(it),wt=ct?ut-1:0,Et=ct?-1:1;if(z<2)for(;;){if(wt in at){ot=at[wt],wt+=Et;break}if(wt+=Et,ct?wt<0:ut<=wt)throw dt("Reduce of empty array with no initial value")}for(;ct?wt>=0:ut>wt;wt+=Et)wt in at&&(ot=E(ot,at[wt],wt,it));return ot}};kt.exports={left:ft(!1),right:ft(!0)}},{"../internals/a-callable":95,"../internals/global":163,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],116:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/to-absolute-index"),vt=rt("../internals/length-of-array-like"),yt=rt("../internals/create-property"),xt=St.Array,dt=Math.max;kt.exports=function(ft,ct,lt){for(var E=vt(ft),z=pt(ct,E),ot=pt(lt===void 0?E:lt,E),it=xt(dt(ot-z,0)),at=0;z0;)dt[z]=dt[--z];z!==lt++&&(dt[z]=E)}return dt},xt=function(dt,ft,ct,lt){for(var E=ft.length,z=ct.length,ot=0,it=0;ot0&&ft[0]<4?1:+(ft[0]+ft[1])),!ct&&pt&&(ft=pt.match(/Edge\/(\d+)/),(!ft||ft[1]>=74)&&(ft=pt.match(/Chrome\/(\d+)/),ft&&(ct=+ft[1]))),kt.exports=ct},{"../internals/engine-user-agent":145,"../internals/global":163}],147:[function(rt,kt,Ct){var St=rt("../internals/engine-user-agent"),pt=St.match(/AppleWebKit\/(\d+)\./);kt.exports=!!pt&&+pt[1]},{"../internals/engine-user-agent":145}],148:[function(rt,kt,Ct){kt.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],149:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/object-get-own-property-descriptor").f,vt=rt("../internals/create-non-enumerable-property"),yt=rt("../internals/redefine"),xt=rt("../internals/set-global"),dt=rt("../internals/copy-constructor-properties"),ft=rt("../internals/is-forced");kt.exports=function(ct,lt){var E=ct.target,z=ct.global,ot=ct.stat,it,at,ut,wt,Et,At;if(z?at=St:ot?at=St[E]||xt(E,{}):at=(St[E]||{}).prototype,at)for(ut in lt){if(Et=lt[ut],ct.noTargetGet?(At=pt(at,ut),wt=At&&At.value):wt=at[ut],it=ft(z?ut:E+(ot?".":"#")+ut,ct.forced),!it&&wt!==void 0){if(typeof Et==typeof wt)continue;dt(Et,wt)}(ct.sham||wt&&wt.sham)&&vt(Et,"sham",!0),yt(at,ut,Et,ct)}}},{"../internals/copy-constructor-properties":125,"../internals/create-non-enumerable-property":129,"../internals/global":163,"../internals/is-forced":178,"../internals/object-get-own-property-descriptor":199,"../internals/redefine":222,"../internals/set-global":232}],150:[function(rt,kt,Ct){kt.exports=function(St){try{return!!St()}catch(pt){return!0}}},{}],151:[function(rt,kt,Ct){"use strict";rt("../modules/es.regexp.exec");var St=rt("../internals/function-uncurry-this"),pt=rt("../internals/redefine"),vt=rt("../internals/regexp-exec"),yt=rt("../internals/fails"),xt=rt("../internals/well-known-symbol"),dt=rt("../internals/create-non-enumerable-property"),ft=xt("species"),ct=RegExp.prototype;kt.exports=function(lt,E,z,ot){var it=xt(lt),at=!yt(function(){var At={};return At[it]=function(){return 7},""[lt](At)!=7}),ut=at&&!yt(function(){var At=!1,_t=/a/;return lt==="split"&&(_t={},_t.constructor={},_t.constructor[ft]=function(){return _t},_t.flags="",_t[it]=/./[it]),_t.exec=function(){return At=!0,null},_t[it](""),!At});if(!at||!ut||z){var wt=St(/./[it]),Et=E(it,""[lt],function(At,_t,Mt,jt,Lt){var It=St(At),Ut=_t.exec;return Ut===vt||Ut===ct.exec?at&&!Lt?{done:!0,value:wt(_t,Mt,jt)}:{done:!0,value:It(Mt,_t,jt)}:{done:!1}});pt(String.prototype,lt,Et[0]),pt(ct,it,Et[1])}ot&&dt(ct[it],"sham",!0)}},{"../internals/create-non-enumerable-property":129,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/redefine":222,"../internals/regexp-exec":224,"../internals/well-known-symbol":268,"../modules/es.regexp.exec":300}],152:[function(rt,kt,Ct){var St=rt("../internals/function-bind-native"),pt=Function.prototype,vt=pt.apply,yt=pt.call;kt.exports=typeof Reflect=="object"&&Reflect.apply||(St?yt.bind(vt):function(){return yt.apply(vt,arguments)})},{"../internals/function-bind-native":154}],153:[function(rt,kt,Ct){var St=rt("../internals/function-uncurry-this"),pt=rt("../internals/a-callable"),vt=rt("../internals/function-bind-native"),yt=St(St.bind);kt.exports=function(xt,dt){return pt(xt),dt===void 0?xt:vt?yt(xt,dt):function(){return xt.apply(dt,arguments)}}},{"../internals/a-callable":95,"../internals/function-bind-native":154,"../internals/function-uncurry-this":157}],154:[function(rt,kt,Ct){var St=rt("../internals/fails");kt.exports=!St(function(){var pt=function(){}.bind();return typeof pt!="function"||pt.hasOwnProperty("prototype")})},{"../internals/fails":150}],155:[function(rt,kt,Ct){var St=rt("../internals/function-bind-native"),pt=Function.prototype.call;kt.exports=St?pt.bind(pt):function(){return pt.apply(pt,arguments)}},{"../internals/function-bind-native":154}],156:[function(rt,kt,Ct){var St=rt("../internals/descriptors"),pt=rt("../internals/has-own-property"),vt=Function.prototype,yt=St&&Object.getOwnPropertyDescriptor,xt=pt(vt,"name"),dt=xt&&function(){}.name==="something",ft=xt&&(!St||St&&yt(vt,"name").configurable);kt.exports={EXISTS:xt,PROPER:dt,CONFIGURABLE:ft}},{"../internals/descriptors":134,"../internals/has-own-property":164}],157:[function(rt,kt,Ct){var St=rt("../internals/function-bind-native"),pt=Function.prototype,vt=pt.bind,yt=pt.call,xt=St&&vt.bind(yt,yt);kt.exports=St?function(dt){return dt&&xt(dt)}:function(dt){return dt&&function(){return yt.apply(dt,arguments)}}},{"../internals/function-bind-native":154}],158:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/is-callable"),vt=function(yt){return pt(yt)?yt:void 0};kt.exports=function(yt,xt){return arguments.length<2?vt(St[yt]):St[yt]&&St[yt][xt]}},{"../internals/global":163,"../internals/is-callable":176}],159:[function(rt,kt,Ct){var St=rt("../internals/classof"),pt=rt("../internals/get-method"),vt=rt("../internals/iterators"),yt=rt("../internals/well-known-symbol"),xt=yt("iterator");kt.exports=function(dt){if(dt!=null)return pt(dt,xt)||pt(dt,"@@iterator")||vt[St(dt)]}},{"../internals/classof":124,"../internals/get-method":161,"../internals/iterators":187,"../internals/well-known-symbol":268}],160:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/function-call"),vt=rt("../internals/a-callable"),yt=rt("../internals/an-object"),xt=rt("../internals/try-to-string"),dt=rt("../internals/get-iterator-method"),ft=St.TypeError;kt.exports=function(ct,lt){var E=arguments.length<2?dt(ct):lt;if(vt(E))return yt(pt(E,ct));throw ft(xt(ct)+" is not iterable")}},{"../internals/a-callable":95,"../internals/an-object":101,"../internals/function-call":155,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/try-to-string":257}],161:[function(rt,kt,Ct){var St=rt("../internals/a-callable");kt.exports=function(pt,vt){var yt=pt[vt];return yt==null?void 0:St(yt)}},{"../internals/a-callable":95}],162:[function(rt,kt,Ct){var St=rt("../internals/function-uncurry-this"),pt=rt("../internals/to-object"),vt=Math.floor,yt=St("".charAt),xt=St("".replace),dt=St("".slice),ft=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ct=/\$([$&'`]|\d{1,2})/g;kt.exports=function(lt,E,z,ot,it,at){var ut=z+lt.length,wt=ot.length,Et=ct;return it!==void 0&&(it=pt(it),Et=ft),xt(at,Et,function(At,_t){var Mt;switch(yt(_t,0)){case"$":return"$";case"&":return lt;case"`":return dt(E,0,z);case"'":return dt(E,ut);case"<":Mt=it[dt(_t,1,-1)];break;default:var jt=+_t;if(jt===0)return At;if(jt>wt){var Lt=vt(jt/10);return Lt===0?At:Lt<=wt?ot[Lt-1]===void 0?yt(_t,1):ot[Lt-1]+yt(_t,1):At}Mt=ot[jt-1]}return Mt===void 0?"":Mt})}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],163:[function(rt,kt,Ct){(function(St){(function(){var pt=function(vt){return vt&&vt.Math==Math&&vt};kt.exports=pt(typeof globalThis=="object"&&globalThis)||pt(typeof window=="object"&&window)||pt(typeof self=="object"&&self)||pt(typeof St=="object"&&St)||function(){return this}()||Function("return this")()}).call(this)}).call(this,typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],164:[function(rt,kt,Ct){var St=rt("../internals/function-uncurry-this"),pt=rt("../internals/to-object"),vt=St({}.hasOwnProperty);kt.exports=Object.hasOwn||function(xt,dt){return vt(pt(xt),dt)}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],165:[function(rt,kt,Ct){kt.exports={}},{}],166:[function(rt,kt,Ct){var St=rt("../internals/global");kt.exports=function(pt,vt){var yt=St.console;yt&&yt.error&&(arguments.length==1?yt.error(pt):yt.error(pt,vt))}},{"../internals/global":163}],167:[function(rt,kt,Ct){var St=rt("../internals/get-built-in");kt.exports=St("document","documentElement")},{"../internals/get-built-in":158}],168:[function(rt,kt,Ct){var St=rt("../internals/descriptors"),pt=rt("../internals/fails"),vt=rt("../internals/document-create-element");kt.exports=!St&&!pt(function(){return Object.defineProperty(vt("div"),"a",{get:function(){return 7}}).a!=7})},{"../internals/descriptors":134,"../internals/document-create-element":135,"../internals/fails":150}],169:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=St.Array,vt=Math.abs,yt=Math.pow,xt=Math.floor,dt=Math.log,ft=Math.LN2,ct=function(E,z,ot){var it=pt(ot),at=ot*8-z-1,ut=(1<>1,Et=z===23?yt(2,-24)-yt(2,-77):0,At=E<0||E===0&&1/E<0?1:0,_t=0,Mt,jt,Lt;for(E=vt(E),E!=E||E===1/0?(jt=E!=E?1:0,Mt=ut):(Mt=xt(dt(E)/ft),Lt=yt(2,-Mt),E*Lt<1&&(Mt--,Lt*=2),Mt+wt>=1?E+=Et/Lt:E+=Et*yt(2,1-wt),E*Lt>=2&&(Mt++,Lt/=2),Mt+wt>=ut?(jt=0,Mt=ut):Mt+wt>=1?(jt=(E*Lt-1)*yt(2,z),Mt=Mt+wt):(jt=E*yt(2,wt-1)*yt(2,z),Mt=0));z>=8;)it[_t++]=jt&255,jt/=256,z-=8;for(Mt=Mt<0;)it[_t++]=Mt&255,Mt/=256,at-=8;return it[--_t]|=At*128,it},lt=function(E,z){var ot=E.length,it=ot*8-z-1,at=(1<>1,wt=it-7,Et=ot-1,At=E[Et--],_t=At&127,Mt;for(At>>=7;wt>0;)_t=_t*256+E[Et--],wt-=8;for(Mt=_t&(1<<-wt)-1,_t>>=-wt,wt+=z;wt>0;)Mt=Mt*256+E[Et--],wt-=8;if(_t===0)_t=1-ut;else{if(_t===at)return Mt?NaN:At?-1/0:1/0;Mt=Mt+yt(2,z),_t=_t-ut}return(At?-1:1)*Mt*yt(2,_t-z)};kt.exports={pack:ct,unpack:lt}},{"../internals/global":163}],170:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/function-uncurry-this"),vt=rt("../internals/fails"),yt=rt("../internals/classof-raw"),xt=St.Object,dt=pt("".split);kt.exports=vt(function(){return!xt("z").propertyIsEnumerable(0)})?function(ft){return yt(ft)=="String"?dt(ft,""):xt(ft)}:xt},{"../internals/classof-raw":123,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],171:[function(rt,kt,Ct){var St=rt("../internals/is-callable"),pt=rt("../internals/is-object"),vt=rt("../internals/object-set-prototype-of");kt.exports=function(yt,xt,dt){var ft,ct;return vt&&St(ft=xt.constructor)&&ft!==dt&&pt(ct=ft.prototype)&&ct!==dt.prototype&&vt(yt,ct),yt}},{"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-set-prototype-of":208}],172:[function(rt,kt,Ct){var St=rt("../internals/function-uncurry-this"),pt=rt("../internals/is-callable"),vt=rt("../internals/shared-store"),yt=St(Function.toString);pt(vt.inspectSource)||(vt.inspectSource=function(xt){return yt(xt)}),kt.exports=vt.inspectSource},{"../internals/function-uncurry-this":157,"../internals/is-callable":176,"../internals/shared-store":236}],173:[function(rt,kt,Ct){var St=rt("../internals/native-weak-map"),pt=rt("../internals/global"),vt=rt("../internals/function-uncurry-this"),yt=rt("../internals/is-object"),xt=rt("../internals/create-non-enumerable-property"),dt=rt("../internals/has-own-property"),ft=rt("../internals/shared-store"),ct=rt("../internals/shared-key"),lt=rt("../internals/hidden-keys"),E="Object already initialized",z=pt.TypeError,ot=pt.WeakMap,it,at,ut,wt=function(It){return ut(It)?at(It):it(It,{})},Et=function(It){return function(Ut){var Xt;if(!yt(Ut)||(Xt=at(Ut)).type!==It)throw z("Incompatible receiver, "+It+" required");return Xt}};if(St||ft.state){var At=ft.state||(ft.state=new ot),_t=vt(At.get),Mt=vt(At.has),jt=vt(At.set);it=function(It,Ut){if(Mt(At,It))throw new z(E);return Ut.facade=It,jt(At,It,Ut),Ut},at=function(It){return _t(At,It)||{}},ut=function(It){return Mt(At,It)}}else{var Lt=ct("state");lt[Lt]=!0,it=function(It,Ut){if(dt(It,Lt))throw new z(E);return Ut.facade=It,xt(It,Lt,Ut),Ut},at=function(It){return dt(It,Lt)?It[Lt]:{}},ut=function(It){return dt(It,Lt)}}kt.exports={set:it,get:at,has:ut,enforce:wt,getterFor:Et}},{"../internals/create-non-enumerable-property":129,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/is-object":180,"../internals/native-weak-map":192,"../internals/shared-key":235,"../internals/shared-store":236}],174:[function(rt,kt,Ct){var St=rt("../internals/well-known-symbol"),pt=rt("../internals/iterators"),vt=St("iterator"),yt=Array.prototype;kt.exports=function(xt){return xt!==void 0&&(pt.Array===xt||yt[vt]===xt)}},{"../internals/iterators":187,"../internals/well-known-symbol":268}],175:[function(rt,kt,Ct){var St=rt("../internals/classof-raw");kt.exports=Array.isArray||function(vt){return St(vt)=="Array"}},{"../internals/classof-raw":123}],176:[function(rt,kt,Ct){kt.exports=function(St){return typeof St=="function"}},{}],177:[function(rt,kt,Ct){var St=rt("../internals/function-uncurry-this"),pt=rt("../internals/fails"),vt=rt("../internals/is-callable"),yt=rt("../internals/classof"),xt=rt("../internals/get-built-in"),dt=rt("../internals/inspect-source"),ft=function(){},ct=[],lt=xt("Reflect","construct"),E=/^\s*(?:class|function)\b/,z=St(E.exec),ot=!E.exec(ft),it=function(wt){if(!vt(wt))return!1;try{return lt(ft,ct,wt),!0}catch(Et){return!1}},at=function(wt){if(!vt(wt))return!1;switch(yt(wt)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ot||!!z(E,dt(wt))}catch(Et){return!0}};at.sham=!0,kt.exports=!lt||pt(function(){var ut;return it(it.call)||!it(Object)||!it(function(){ut=!0})||ut})?at:it},{"../internals/classof":124,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/inspect-source":172,"../internals/is-callable":176}],178:[function(rt,kt,Ct){var St=rt("../internals/fails"),pt=rt("../internals/is-callable"),vt=/#|\.prototype\./,yt=function(lt,E){var z=dt[xt(lt)];return z==ct?!0:z==ft?!1:pt(E)?St(E):!!E},xt=yt.normalize=function(lt){return String(lt).replace(vt,".").toLowerCase()},dt=yt.data={},ft=yt.NATIVE="N",ct=yt.POLYFILL="P";kt.exports=yt},{"../internals/fails":150,"../internals/is-callable":176}],179:[function(rt,kt,Ct){var St=rt("../internals/is-object"),pt=Math.floor;kt.exports=Number.isInteger||function(yt){return!St(yt)&&isFinite(yt)&&pt(yt)===yt}},{"../internals/is-object":180}],180:[function(rt,kt,Ct){var St=rt("../internals/is-callable");kt.exports=function(pt){return typeof pt=="object"?pt!==null:St(pt)}},{"../internals/is-callable":176}],181:[function(rt,kt,Ct){kt.exports=!1},{}],182:[function(rt,kt,Ct){var St=rt("../internals/is-object"),pt=rt("../internals/classof-raw"),vt=rt("../internals/well-known-symbol"),yt=vt("match");kt.exports=function(xt){var dt;return St(xt)&&((dt=xt[yt])!==void 0?!!dt:pt(xt)=="RegExp")}},{"../internals/classof-raw":123,"../internals/is-object":180,"../internals/well-known-symbol":268}],183:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/get-built-in"),vt=rt("../internals/is-callable"),yt=rt("../internals/object-is-prototype-of"),xt=rt("../internals/use-symbol-as-uid"),dt=St.Object;kt.exports=xt?function(ft){return typeof ft=="symbol"}:function(ft){var ct=pt("Symbol");return vt(ct)&&yt(ct.prototype,dt(ft))}},{"../internals/get-built-in":158,"../internals/global":163,"../internals/is-callable":176,"../internals/object-is-prototype-of":204,"../internals/use-symbol-as-uid":264}],184:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/function-bind-context"),vt=rt("../internals/function-call"),yt=rt("../internals/an-object"),xt=rt("../internals/try-to-string"),dt=rt("../internals/is-array-iterator-method"),ft=rt("../internals/length-of-array-like"),ct=rt("../internals/object-is-prototype-of"),lt=rt("../internals/get-iterator"),E=rt("../internals/get-iterator-method"),z=rt("../internals/iterator-close"),ot=St.TypeError,it=function(ut,wt){this.stopped=ut,this.result=wt},at=it.prototype;kt.exports=function(ut,wt,Et){var At=Et&&Et.that,_t=!!(Et&&Et.AS_ENTRIES),Mt=!!(Et&&Et.IS_ITERATOR),jt=!!(Et&&Et.INTERRUPTED),Lt=pt(wt,At),It,Ut,Xt,Gt,Yt,Ht,ne,ae=function(Kt){return It&&z(It,"normal",Kt),new it(!0,Kt)},ve=function(Kt){return _t?(yt(Kt),jt?Lt(Kt[0],Kt[1],ae):Lt(Kt[0],Kt[1])):jt?Lt(Kt,ae):Lt(Kt)};if(Mt)It=ut;else{if(Ut=E(ut),!Ut)throw ot(xt(ut)+" is not iterable");if(dt(Ut)){for(Xt=0,Gt=ft(ut);Gt>Xt;Xt++)if(Yt=ve(ut[Xt]),Yt&&ct(at,Yt))return Yt;return new it(!1)}It=lt(ut,Ut)}for(Ht=It.next;!(ne=vt(Ht,It)).done;){try{Yt=ve(ne.value)}catch(Kt){z(It,"throw",Kt)}if(typeof Yt=="object"&&Yt&&ct(at,Yt))return Yt}return new it(!1)}},{"../internals/an-object":101,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/is-array-iterator-method":174,"../internals/iterator-close":185,"../internals/length-of-array-like":188,"../internals/object-is-prototype-of":204,"../internals/try-to-string":257}],185:[function(rt,kt,Ct){var St=rt("../internals/function-call"),pt=rt("../internals/an-object"),vt=rt("../internals/get-method");kt.exports=function(yt,xt,dt){var ft,ct;pt(yt);try{if(ft=vt(yt,"return"),!ft){if(xt==="throw")throw dt;return dt}ft=St(ft,yt)}catch(lt){ct=!0,ft=lt}if(xt==="throw")throw dt;if(ct)throw ft;return pt(ft),dt}},{"../internals/an-object":101,"../internals/function-call":155,"../internals/get-method":161}],186:[function(rt,kt,Ct){"use strict";var St=rt("../internals/fails"),pt=rt("../internals/is-callable"),vt=rt("../internals/object-create"),yt=rt("../internals/object-get-prototype-of"),xt=rt("../internals/redefine"),dt=rt("../internals/well-known-symbol"),ft=rt("../internals/is-pure"),ct=dt("iterator"),lt=!1,E,z,ot;[].keys&&(ot=[].keys(),"next"in ot?(z=yt(yt(ot)),z!==Object.prototype&&(E=z)):lt=!0);var it=E==null||St(function(){var at={};return E[ct].call(at)!==at});it?E={}:ft&&(E=vt(E)),pt(E[ct])||xt(E,ct,function(){return this}),kt.exports={IteratorPrototype:E,BUGGY_SAFARI_ITERATORS:lt}},{"../internals/fails":150,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/object-create":196,"../internals/object-get-prototype-of":203,"../internals/redefine":222,"../internals/well-known-symbol":268}],187:[function(rt,kt,Ct){arguments[4][165][0].apply(Ct,arguments)},{dup:165}],188:[function(rt,kt,Ct){var St=rt("../internals/to-length");kt.exports=function(pt){return St(pt.length)}},{"../internals/to-length":249}],189:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/function-bind-context"),vt=rt("../internals/object-get-own-property-descriptor").f,yt=rt("../internals/task").set,xt=rt("../internals/engine-is-ios"),dt=rt("../internals/engine-is-ios-pebble"),ft=rt("../internals/engine-is-webos-webkit"),ct=rt("../internals/engine-is-node"),lt=St.MutationObserver||St.WebKitMutationObserver,E=St.document,z=St.process,ot=St.Promise,it=vt(St,"queueMicrotask"),at=it&&it.value,ut,wt,Et,At,_t,Mt,jt,Lt;at||(ut=function(){var It,Ut;for(ct&&(It=z.domain)&&It.exit();wt;){Ut=wt.fn,wt=wt.next;try{Ut()}catch(Xt){throw wt?At():Et=void 0,Xt}}Et=void 0,It&&It.enter()},!xt&&!ct&&!ft&<&&E?(_t=!0,Mt=E.createTextNode(""),new lt(ut).observe(Mt,{characterData:!0}),At=function(){Mt.data=_t=!_t}):!dt&&ot&&ot.resolve?(jt=ot.resolve(void 0),jt.constructor=ot,Lt=pt(jt.then,jt),At=function(){Lt(ut)}):ct?At=function(){z.nextTick(ut)}:(yt=pt(yt,St),At=function(){yt(ut)})),kt.exports=at||function(It){var Ut={fn:It,next:void 0};Et&&(Et.next=Ut),wt||(wt=Ut,At()),Et=Ut}},{"../internals/engine-is-ios":142,"../internals/engine-is-ios-pebble":141,"../internals/engine-is-node":143,"../internals/engine-is-webos-webkit":144,"../internals/function-bind-context":153,"../internals/global":163,"../internals/object-get-own-property-descriptor":199,"../internals/task":243}],190:[function(rt,kt,Ct){var St=rt("../internals/native-symbol");kt.exports=St&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/native-symbol":191}],191:[function(rt,kt,Ct){var St=rt("../internals/engine-v8-version"),pt=rt("../internals/fails");kt.exports=!!Object.getOwnPropertySymbols&&!pt(function(){var vt=Symbol();return!String(vt)||!(Object(vt)instanceof Symbol)||!Symbol.sham&&St&&St<41})},{"../internals/engine-v8-version":146,"../internals/fails":150}],192:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/is-callable"),vt=rt("../internals/inspect-source"),yt=St.WeakMap;kt.exports=pt(yt)&&/native code/.test(vt(yt))},{"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176}],193:[function(rt,kt,Ct){"use strict";var St=rt("../internals/a-callable"),pt=function(vt){var yt,xt;this.promise=new vt(function(dt,ft){if(yt!==void 0||xt!==void 0)throw TypeError("Bad Promise constructor");yt=dt,xt=ft}),this.resolve=St(yt),this.reject=St(xt)};kt.exports.f=function(vt){return new pt(vt)}},{"../internals/a-callable":95}],194:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/is-regexp"),vt=St.TypeError;kt.exports=function(yt){if(pt(yt))throw vt("The method doesn't accept regular expressions");return yt}},{"../internals/global":163,"../internals/is-regexp":182}],195:[function(rt,kt,Ct){"use strict";var St=rt("../internals/descriptors"),pt=rt("../internals/function-uncurry-this"),vt=rt("../internals/function-call"),yt=rt("../internals/fails"),xt=rt("../internals/object-keys"),dt=rt("../internals/object-get-own-property-symbols"),ft=rt("../internals/object-property-is-enumerable"),ct=rt("../internals/to-object"),lt=rt("../internals/indexed-object"),E=Object.assign,z=Object.defineProperty,ot=pt([].concat);kt.exports=!E||yt(function(){if(St&&E({b:1},E(z({},"a",{enumerable:!0,get:function(){z(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var it={},at={},ut=Symbol(),wt="abcdefghijklmnopqrst";return it[ut]=7,wt.split("").forEach(function(Et){at[Et]=Et}),E({},it)[ut]!=7||xt(E({},at)).join("")!=wt})?function(at,ut){for(var wt=ct(at),Et=arguments.length,At=1,_t=dt.f,Mt=ft.f;Et>At;)for(var jt=lt(arguments[At++]),Lt=_t?ot(xt(jt),_t(jt)):xt(jt),It=Lt.length,Ut=0,Xt;It>Ut;)Xt=Lt[Ut++],(!St||vt(Mt,jt,Xt))&&(wt[Xt]=jt[Xt]);return wt}:E},{"../internals/descriptors":134,"../internals/fails":150,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/object-get-own-property-symbols":202,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/to-object":250}],196:[function(rt,kt,Ct){var St=rt("../internals/an-object"),pt=rt("../internals/object-define-properties"),vt=rt("../internals/enum-bug-keys"),yt=rt("../internals/hidden-keys"),xt=rt("../internals/html"),dt=rt("../internals/document-create-element"),ft=rt("../internals/shared-key"),ct=">",lt="<",E="prototype",z="script",ot=ft("IE_PROTO"),it=function(){},at=function(_t){return lt+z+ct+_t+lt+"/"+z+ct},ut=function(_t){_t.write(at("")),_t.close();var Mt=_t.parentWindow.Object;return _t=null,Mt},wt=function(){var _t=dt("iframe"),Mt="java"+z+":",jt;return _t.style.display="none",xt.appendChild(_t),_t.src=String(Mt),jt=_t.contentWindow.document,jt.open(),jt.write(at("document.F=Object")),jt.close(),jt.F},Et,At=function(){try{Et=new ActiveXObject("htmlfile")}catch(Mt){}At=typeof document!="undefined"?document.domain&&Et?ut(Et):wt():ut(Et);for(var _t=vt.length;_t--;)delete At[E][vt[_t]];return At()};yt[ot]=!0,kt.exports=Object.create||function(Mt,jt){var Lt;return Mt!==null?(it[E]=St(Mt),Lt=new it,it[E]=null,Lt[ot]=Mt):Lt=At(),jt===void 0?Lt:pt.f(Lt,jt)}},{"../internals/an-object":101,"../internals/document-create-element":135,"../internals/enum-bug-keys":148,"../internals/hidden-keys":165,"../internals/html":167,"../internals/object-define-properties":197,"../internals/shared-key":235}],197:[function(rt,kt,Ct){var St=rt("../internals/descriptors"),pt=rt("../internals/v8-prototype-define-bug"),vt=rt("../internals/object-define-property"),yt=rt("../internals/an-object"),xt=rt("../internals/to-indexed-object"),dt=rt("../internals/object-keys");Ct.f=St&&!pt?Object.defineProperties:function(ct,lt){yt(ct);for(var E=xt(lt),z=dt(lt),ot=z.length,it=0,at;ot>it;)vt.f(ct,at=z[it++],E[at]);return ct}},{"../internals/an-object":101,"../internals/descriptors":134,"../internals/object-define-property":198,"../internals/object-keys":206,"../internals/to-indexed-object":247,"../internals/v8-prototype-define-bug":265}],198:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/descriptors"),vt=rt("../internals/ie8-dom-define"),yt=rt("../internals/v8-prototype-define-bug"),xt=rt("../internals/an-object"),dt=rt("../internals/to-property-key"),ft=St.TypeError,ct=Object.defineProperty,lt=Object.getOwnPropertyDescriptor,E="enumerable",z="configurable",ot="writable";Ct.f=pt?yt?function(at,ut,wt){if(xt(at),ut=dt(ut),xt(wt),typeof at=="function"&&ut==="prototype"&&"value"in wt&&ot in wt&&!wt[ot]){var Et=lt(at,ut);Et&&Et[ot]&&(at[ut]=wt.value,wt={configurable:z in wt?wt[z]:Et[z],enumerable:E in wt?wt[E]:Et[E],writable:!1})}return ct(at,ut,wt)}:ct:function(at,ut,wt){if(xt(at),ut=dt(ut),xt(wt),vt)try{return ct(at,ut,wt)}catch(Et){}if("get"in wt||"set"in wt)throw ft("Accessors not supported");return"value"in wt&&(at[ut]=wt.value),at}},{"../internals/an-object":101,"../internals/descriptors":134,"../internals/global":163,"../internals/ie8-dom-define":168,"../internals/to-property-key":254,"../internals/v8-prototype-define-bug":265}],199:[function(rt,kt,Ct){var St=rt("../internals/descriptors"),pt=rt("../internals/function-call"),vt=rt("../internals/object-property-is-enumerable"),yt=rt("../internals/create-property-descriptor"),xt=rt("../internals/to-indexed-object"),dt=rt("../internals/to-property-key"),ft=rt("../internals/has-own-property"),ct=rt("../internals/ie8-dom-define"),lt=Object.getOwnPropertyDescriptor;Ct.f=St?lt:function(z,ot){if(z=xt(z),ot=dt(ot),ct)try{return lt(z,ot)}catch(it){}if(ft(z,ot))return yt(!pt(vt.f,z,ot),z[ot])}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/function-call":155,"../internals/has-own-property":164,"../internals/ie8-dom-define":168,"../internals/object-property-is-enumerable":207,"../internals/to-indexed-object":247,"../internals/to-property-key":254}],200:[function(rt,kt,Ct){var St=rt("../internals/classof-raw"),pt=rt("../internals/to-indexed-object"),vt=rt("../internals/object-get-own-property-names").f,yt=rt("../internals/array-slice-simple"),xt=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],dt=function(ft){try{return vt(ft)}catch(ct){return yt(xt)}};kt.exports.f=function(ct){return xt&&St(ct)=="Window"?dt(ct):vt(pt(ct))}},{"../internals/array-slice-simple":116,"../internals/classof-raw":123,"../internals/object-get-own-property-names":201,"../internals/to-indexed-object":247}],201:[function(rt,kt,Ct){var St=rt("../internals/object-keys-internal"),pt=rt("../internals/enum-bug-keys"),vt=pt.concat("length","prototype");Ct.f=Object.getOwnPropertyNames||function(xt){return St(xt,vt)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],202:[function(rt,kt,Ct){Ct.f=Object.getOwnPropertySymbols},{}],203:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/has-own-property"),vt=rt("../internals/is-callable"),yt=rt("../internals/to-object"),xt=rt("../internals/shared-key"),dt=rt("../internals/correct-prototype-getter"),ft=xt("IE_PROTO"),ct=St.Object,lt=ct.prototype;kt.exports=dt?ct.getPrototypeOf:function(E){var z=yt(E);if(pt(z,ft))return z[ft];var ot=z.constructor;return vt(ot)&&z instanceof ot?ot.prototype:z instanceof ct?lt:null}},{"../internals/correct-prototype-getter":127,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/shared-key":235,"../internals/to-object":250}],204:[function(rt,kt,Ct){var St=rt("../internals/function-uncurry-this");kt.exports=St({}.isPrototypeOf)},{"../internals/function-uncurry-this":157}],205:[function(rt,kt,Ct){var St=rt("../internals/function-uncurry-this"),pt=rt("../internals/has-own-property"),vt=rt("../internals/to-indexed-object"),yt=rt("../internals/array-includes").indexOf,xt=rt("../internals/hidden-keys"),dt=St([].push);kt.exports=function(ft,ct){var lt=vt(ft),E=0,z=[],ot;for(ot in lt)!pt(xt,ot)&&pt(lt,ot)&&dt(z,ot);for(;ct.length>E;)pt(lt,ot=ct[E++])&&(~yt(z,ot)||dt(z,ot));return z}},{"../internals/array-includes":110,"../internals/function-uncurry-this":157,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/to-indexed-object":247}],206:[function(rt,kt,Ct){var St=rt("../internals/object-keys-internal"),pt=rt("../internals/enum-bug-keys");kt.exports=Object.keys||function(yt){return St(yt,pt)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],207:[function(rt,kt,Ct){"use strict";var St={}.propertyIsEnumerable,pt=Object.getOwnPropertyDescriptor,vt=pt&&!St.call({1:2},1);Ct.f=vt?function(xt){var dt=pt(this,xt);return!!dt&&dt.enumerable}:St},{}],208:[function(rt,kt,Ct){var St=rt("../internals/function-uncurry-this"),pt=rt("../internals/an-object"),vt=rt("../internals/a-possible-prototype");kt.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var yt=!1,xt={},dt;try{dt=St(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),dt(xt,[]),yt=xt instanceof Array}catch(ft){}return function(ct,lt){return pt(ct),vt(lt),yt?dt(ct,lt):ct.__proto__=lt,ct}}():void 0)},{"../internals/a-possible-prototype":97,"../internals/an-object":101,"../internals/function-uncurry-this":157}],209:[function(rt,kt,Ct){var St=rt("../internals/descriptors"),pt=rt("../internals/function-uncurry-this"),vt=rt("../internals/object-keys"),yt=rt("../internals/to-indexed-object"),xt=rt("../internals/object-property-is-enumerable").f,dt=pt(xt),ft=pt([].push),ct=function(lt){return function(E){for(var z=yt(E),ot=vt(z),it=ot.length,at=0,ut=[],wt;it>at;)wt=ot[at++],(!St||dt(z,wt))&&ft(ut,lt?[wt,z[wt]]:z[wt]);return ut}};kt.exports={entries:ct(!0),values:ct(!1)}},{"../internals/descriptors":134,"../internals/function-uncurry-this":157,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/to-indexed-object":247}],210:[function(rt,kt,Ct){"use strict";var St=rt("../internals/to-string-tag-support"),pt=rt("../internals/classof");kt.exports=St?{}.toString:function(){return"[object "+pt(this)+"]"}},{"../internals/classof":124,"../internals/to-string-tag-support":255}],211:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/function-call"),vt=rt("../internals/is-callable"),yt=rt("../internals/is-object"),xt=St.TypeError;kt.exports=function(dt,ft){var ct,lt;if(ft==="string"&&vt(ct=dt.toString)&&!yt(lt=pt(ct,dt))||vt(ct=dt.valueOf)&&!yt(lt=pt(ct,dt))||ft!=="string"&&vt(ct=dt.toString)&&!yt(lt=pt(ct,dt)))return lt;throw xt("Can't convert object to primitive value")}},{"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/is-object":180}],212:[function(rt,kt,Ct){var St=rt("../internals/get-built-in"),pt=rt("../internals/function-uncurry-this"),vt=rt("../internals/object-get-own-property-names"),yt=rt("../internals/object-get-own-property-symbols"),xt=rt("../internals/an-object"),dt=pt([].concat);kt.exports=St("Reflect","ownKeys")||function(ct){var lt=vt.f(xt(ct)),E=yt.f;return E?dt(lt,E(ct)):lt}},{"../internals/an-object":101,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/object-get-own-property-names":201,"../internals/object-get-own-property-symbols":202}],213:[function(rt,kt,Ct){var St=rt("../internals/global");kt.exports=St},{"../internals/global":163}],214:[function(rt,kt,Ct){kt.exports=function(St){try{return{error:!1,value:St()}}catch(pt){return{error:!0,value:pt}}}},{}],215:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/promise-native-constructor"),vt=rt("../internals/is-callable"),yt=rt("../internals/is-forced"),xt=rt("../internals/inspect-source"),dt=rt("../internals/well-known-symbol"),ft=rt("../internals/engine-is-browser"),ct=rt("../internals/is-pure"),lt=rt("../internals/engine-v8-version"),E=pt&&pt.prototype,z=dt("species"),ot=!1,it=vt(St.PromiseRejectionEvent),at=yt("Promise",function(){var ut=xt(pt),wt=ut!==String(pt);if(!wt&<===66||ct&&!(E.catch&&E.finally))return!0;if(lt>=51&&/native code/.test(ut))return!1;var Et=new pt(function(Mt){Mt(1)}),At=function(Mt){Mt(function(){},function(){})},_t=Et.constructor={};return _t[z]=At,ot=Et.then(function(){})instanceof At,ot?!wt&&ft&&!it:!0});kt.exports={CONSTRUCTOR:at,REJECTION_EVENT:it,SUBCLASSING:ot}},{"../internals/engine-is-browser":139,"../internals/engine-v8-version":146,"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176,"../internals/is-forced":178,"../internals/is-pure":181,"../internals/promise-native-constructor":216,"../internals/well-known-symbol":268}],216:[function(rt,kt,Ct){var St=rt("../internals/global");kt.exports=St.Promise},{"../internals/global":163}],217:[function(rt,kt,Ct){var St=rt("../internals/an-object"),pt=rt("../internals/is-object"),vt=rt("../internals/new-promise-capability");kt.exports=function(yt,xt){if(St(yt),pt(xt)&&xt.constructor===yt)return xt;var dt=vt.f(yt),ft=dt.resolve;return ft(xt),dt.promise}},{"../internals/an-object":101,"../internals/is-object":180,"../internals/new-promise-capability":193}],218:[function(rt,kt,Ct){var St=rt("../internals/promise-native-constructor"),pt=rt("../internals/check-correctness-of-iteration"),vt=rt("../internals/promise-constructor-detection").CONSTRUCTOR;kt.exports=vt||!pt(function(yt){St.all(yt).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":122,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216}],219:[function(rt,kt,Ct){var St=rt("../internals/object-define-property").f;kt.exports=function(pt,vt,yt){yt in pt||St(pt,yt,{configurable:!0,get:function(){return vt[yt]},set:function(xt){vt[yt]=xt}})}},{"../internals/object-define-property":198}],220:[function(rt,kt,Ct){var St=function(){this.head=null,this.tail=null};St.prototype={add:function(pt){var vt={item:pt,next:null};this.head?this.tail.next=vt:this.head=vt,this.tail=vt},get:function(){var pt=this.head;if(pt)return this.head=pt.next,this.tail===pt&&(this.tail=null),pt.item}},kt.exports=St},{}],221:[function(rt,kt,Ct){var St=rt("../internals/redefine");kt.exports=function(pt,vt,yt){for(var xt in vt)St(pt,xt,vt[xt],yt);return pt}},{"../internals/redefine":222}],222:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/is-callable"),vt=rt("../internals/has-own-property"),yt=rt("../internals/create-non-enumerable-property"),xt=rt("../internals/set-global"),dt=rt("../internals/inspect-source"),ft=rt("../internals/internal-state"),ct=rt("../internals/function-name").CONFIGURABLE,lt=ft.get,E=ft.enforce,z=String(String).split("String");(kt.exports=function(ot,it,at,ut){var wt=ut?!!ut.unsafe:!1,Et=ut?!!ut.enumerable:!1,At=ut?!!ut.noTargetGet:!1,_t=ut&&ut.name!==void 0?ut.name:it,Mt;if(pt(at)&&(String(_t).slice(0,7)==="Symbol("&&(_t="["+String(_t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!vt(at,"name")||ct&&at.name!==_t)&&yt(at,"name",_t),Mt=E(at),Mt.source||(Mt.source=z.join(typeof _t=="string"?_t:""))),ot===St){Et?ot[it]=at:xt(it,at);return}else wt?!At&&ot[it]&&(Et=!0):delete ot[it];Et?ot[it]=at:yt(ot,it,at)})(Function.prototype,"toString",function(){return pt(this)&<(this).source||dt(this)})},{"../internals/create-non-enumerable-property":129,"../internals/function-name":156,"../internals/global":163,"../internals/has-own-property":164,"../internals/inspect-source":172,"../internals/internal-state":173,"../internals/is-callable":176,"../internals/set-global":232}],223:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/function-call"),vt=rt("../internals/an-object"),yt=rt("../internals/is-callable"),xt=rt("../internals/classof-raw"),dt=rt("../internals/regexp-exec"),ft=St.TypeError;kt.exports=function(ct,lt){var E=ct.exec;if(yt(E)){var z=pt(E,ct,lt);return z!==null&&vt(z),z}if(xt(ct)==="RegExp")return pt(dt,ct,lt);throw ft("RegExp#exec called on incompatible receiver")}},{"../internals/an-object":101,"../internals/classof-raw":123,"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/regexp-exec":224}],224:[function(rt,kt,Ct){"use strict";var St=rt("../internals/function-call"),pt=rt("../internals/function-uncurry-this"),vt=rt("../internals/to-string"),yt=rt("../internals/regexp-flags"),xt=rt("../internals/regexp-sticky-helpers"),dt=rt("../internals/shared"),ft=rt("../internals/object-create"),ct=rt("../internals/internal-state").get,lt=rt("../internals/regexp-unsupported-dot-all"),E=rt("../internals/regexp-unsupported-ncg"),z=dt("native-string-replace",String.prototype.replace),ot=RegExp.prototype.exec,it=ot,at=pt("".charAt),ut=pt("".indexOf),wt=pt("".replace),Et=pt("".slice),At=function(){var Lt=/a/,It=/b*/g;return St(ot,Lt,"a"),St(ot,It,"a"),Lt.lastIndex!==0||It.lastIndex!==0}(),_t=xt.BROKEN_CARET,Mt=/()??/.exec("")[1]!==void 0,jt=At||Mt||_t||lt||E;jt&&(it=function(It){var Ut=this,Xt=ct(Ut),Gt=vt(It),Yt=Xt.raw,Ht,ne,ae,ve,Kt,re,we;if(Yt)return Yt.lastIndex=Ut.lastIndex,Ht=St(it,Yt,Gt),Ut.lastIndex=Yt.lastIndex,Ht;var Me=Xt.groups,ke=_t&&Ut.sticky,me=St(yt,Ut),fe=Ut.source,pe=0,_e=Gt;if(ke&&(me=wt(me,"y",""),ut(me,"g")===-1&&(me+="g"),_e=Et(Gt,Ut.lastIndex),Ut.lastIndex>0&&(!Ut.multiline||Ut.multiline&&at(Gt,Ut.lastIndex-1)!==` -`)&&(fe="(?: "+fe+")",_e=" "+_e,pe++),ne=new RegExp("^(?:"+fe+")",me)),Mt&&(ne=new RegExp("^"+fe+"$(?!\\s)",me)),At&&(ae=Ut.lastIndex),ve=St(ot,ke?ne:Ut,_e),ke?ve?(ve.input=Et(ve.input,pe),ve[0]=Et(ve[0],pe),ve.index=Ut.lastIndex,Ut.lastIndex+=ve[0].length):Ut.lastIndex=0:At&&ve&&(Ut.lastIndex=Ut.global?ve.index+ve[0].length:ae),Mt&&ve&&ve.length>1&&St(z,ve[0],ne,function(){for(Kt=1;Ktb)","g");return yt.exec("b").groups.a!=="b"||"b".replace(yt,"$c")!=="bc"})},{"../internals/fails":150,"../internals/global":163}],230:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=St.TypeError;kt.exports=function(vt){if(vt==null)throw pt("Can't call method on "+vt);return vt}},{"../internals/global":163}],231:[function(rt,kt,Ct){kt.exports=Object.is||function(pt,vt){return pt===vt?pt!==0||1/pt===1/vt:pt!=pt&&vt!=vt}},{}],232:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=Object.defineProperty;kt.exports=function(vt,yt){try{pt(St,vt,{value:yt,configurable:!0,writable:!0})}catch(xt){St[vt]=yt}return yt}},{"../internals/global":163}],233:[function(rt,kt,Ct){"use strict";var St=rt("../internals/get-built-in"),pt=rt("../internals/object-define-property"),vt=rt("../internals/well-known-symbol"),yt=rt("../internals/descriptors"),xt=vt("species");kt.exports=function(dt){var ft=St(dt),ct=pt.f;yt&&ft&&!ft[xt]&&ct(ft,xt,{configurable:!0,get:function(){return this}})}},{"../internals/descriptors":134,"../internals/get-built-in":158,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],234:[function(rt,kt,Ct){var St=rt("../internals/object-define-property").f,pt=rt("../internals/has-own-property"),vt=rt("../internals/well-known-symbol"),yt=vt("toStringTag");kt.exports=function(xt,dt,ft){xt&&!ft&&(xt=xt.prototype),xt&&!pt(xt,yt)&&St(xt,yt,{configurable:!0,value:dt})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],235:[function(rt,kt,Ct){var St=rt("../internals/shared"),pt=rt("../internals/uid"),vt=St("keys");kt.exports=function(yt){return vt[yt]||(vt[yt]=pt(yt))}},{"../internals/shared":237,"../internals/uid":263}],236:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/set-global"),vt="__core-js_shared__",yt=St[vt]||pt(vt,{});kt.exports=yt},{"../internals/global":163,"../internals/set-global":232}],237:[function(rt,kt,Ct){var St=rt("../internals/is-pure"),pt=rt("../internals/shared-store");(kt.exports=function(vt,yt){return pt[vt]||(pt[vt]=yt!==void 0?yt:{})})("versions",[]).push({version:"3.22.1",mode:St?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.1/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":181,"../internals/shared-store":236}],238:[function(rt,kt,Ct){var St=rt("../internals/an-object"),pt=rt("../internals/a-constructor"),vt=rt("../internals/well-known-symbol"),yt=vt("species");kt.exports=function(xt,dt){var ft=St(xt).constructor,ct;return ft===void 0||(ct=St(ft)[yt])==null?dt:pt(ct)}},{"../internals/a-constructor":96,"../internals/an-object":101,"../internals/well-known-symbol":268}],239:[function(rt,kt,Ct){var St=rt("../internals/function-uncurry-this"),pt=rt("../internals/to-integer-or-infinity"),vt=rt("../internals/to-string"),yt=rt("../internals/require-object-coercible"),xt=St("".charAt),dt=St("".charCodeAt),ft=St("".slice),ct=function(lt){return function(E,z){var ot=vt(yt(E)),it=pt(z),at=ot.length,ut,wt;return it<0||it>=at?lt?"":void 0:(ut=dt(ot,it),ut<55296||ut>56319||it+1===at||(wt=dt(ot,it+1))<56320||wt>57343?lt?xt(ot,it):ut:lt?ft(ot,it,it+2):(ut-55296<<10)+(wt-56320)+65536)}};kt.exports={codeAt:ct(!1),charAt:ct(!0)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-string":256}],240:[function(rt,kt,Ct){var St=rt("../internals/function-name").PROPER,pt=rt("../internals/fails"),vt=rt("../internals/whitespaces"),yt="\u200B\x85\u180E";kt.exports=function(xt){return pt(function(){return!!vt[xt]()||yt[xt]()!==yt||St&&vt[xt].name!==xt})}},{"../internals/fails":150,"../internals/function-name":156,"../internals/whitespaces":269}],241:[function(rt,kt,Ct){var St=rt("../internals/function-uncurry-this"),pt=rt("../internals/require-object-coercible"),vt=rt("../internals/to-string"),yt=rt("../internals/whitespaces"),xt=St("".replace),dt="["+yt+"]",ft=RegExp("^"+dt+dt+"*"),ct=RegExp(dt+dt+"*$"),lt=function(E){return function(z){var ot=vt(pt(z));return E&1&&(ot=xt(ot,ft,"")),E&2&&(ot=xt(ot,ct,"")),ot}};kt.exports={start:lt(1),end:lt(2),trim:lt(3)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-string":256,"../internals/whitespaces":269}],242:[function(rt,kt,Ct){var St=rt("../internals/function-call"),pt=rt("../internals/get-built-in"),vt=rt("../internals/well-known-symbol"),yt=rt("../internals/redefine");kt.exports=function(){var xt=pt("Symbol"),dt=xt&&xt.prototype,ft=dt&&dt.valueOf,ct=vt("toPrimitive");dt&&!dt[ct]&&yt(dt,ct,function(lt){return St(ft,this)})}},{"../internals/function-call":155,"../internals/get-built-in":158,"../internals/redefine":222,"../internals/well-known-symbol":268}],243:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/function-apply"),vt=rt("../internals/function-bind-context"),yt=rt("../internals/is-callable"),xt=rt("../internals/has-own-property"),dt=rt("../internals/fails"),ft=rt("../internals/html"),ct=rt("../internals/array-slice"),lt=rt("../internals/document-create-element"),E=rt("../internals/validate-arguments-length"),z=rt("../internals/engine-is-ios"),ot=rt("../internals/engine-is-node"),it=St.setImmediate,at=St.clearImmediate,ut=St.process,wt=St.Dispatch,Et=St.Function,At=St.MessageChannel,_t=St.String,Mt=0,jt={},Lt="onreadystatechange",It,Ut,Xt,Gt;try{It=St.location}catch(ve){}var Yt=function(ve){if(xt(jt,ve)){var Kt=jt[ve];delete jt[ve],Kt()}},Ht=function(ve){return function(){Yt(ve)}},ne=function(ve){Yt(ve.data)},ae=function(ve){St.postMessage(_t(ve),It.protocol+"//"+It.host)};(!it||!at)&&(it=function(Kt){E(arguments.length,1);var re=yt(Kt)?Kt:Et(Kt),we=ct(arguments,1);return jt[++Mt]=function(){pt(re,void 0,we)},Ut(Mt),Mt},at=function(Kt){delete jt[Kt]},ot?Ut=function(ve){ut.nextTick(Ht(ve))}:wt&&wt.now?Ut=function(ve){wt.now(Ht(ve))}:At&&!z?(Xt=new At,Gt=Xt.port2,Xt.port1.onmessage=ne,Ut=vt(Gt.postMessage,Gt)):St.addEventListener&&yt(St.postMessage)&&!St.importScripts&&It&&It.protocol!=="file:"&&!dt(ae)?(Ut=ae,St.addEventListener("message",ne,!1)):Lt in lt("script")?Ut=function(ve){ft.appendChild(lt("script"))[Lt]=function(){ft.removeChild(this),Yt(ve)}}:Ut=function(ve){setTimeout(Ht(ve),0)}),kt.exports={set:it,clear:at}},{"../internals/array-slice":117,"../internals/document-create-element":135,"../internals/engine-is-ios":142,"../internals/engine-is-node":143,"../internals/fails":150,"../internals/function-apply":152,"../internals/function-bind-context":153,"../internals/global":163,"../internals/has-own-property":164,"../internals/html":167,"../internals/is-callable":176,"../internals/validate-arguments-length":266}],244:[function(rt,kt,Ct){var St=rt("../internals/function-uncurry-this");kt.exports=St(1 .valueOf)},{"../internals/function-uncurry-this":157}],245:[function(rt,kt,Ct){var St=rt("../internals/to-integer-or-infinity"),pt=Math.max,vt=Math.min;kt.exports=function(yt,xt){var dt=St(yt);return dt<0?pt(dt+xt,0):vt(dt,xt)}},{"../internals/to-integer-or-infinity":248}],246:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/to-integer-or-infinity"),vt=rt("../internals/to-length"),yt=St.RangeError;kt.exports=function(xt){if(xt===void 0)return 0;var dt=pt(xt),ft=vt(dt);if(dt!==ft)throw yt("Wrong length or index");return ft}},{"../internals/global":163,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],247:[function(rt,kt,Ct){var St=rt("../internals/indexed-object"),pt=rt("../internals/require-object-coercible");kt.exports=function(vt){return St(pt(vt))}},{"../internals/indexed-object":170,"../internals/require-object-coercible":230}],248:[function(rt,kt,Ct){var St=Math.ceil,pt=Math.floor;kt.exports=function(vt){var yt=+vt;return yt!==yt||yt===0?0:(yt>0?pt:St)(yt)}},{}],249:[function(rt,kt,Ct){var St=rt("../internals/to-integer-or-infinity"),pt=Math.min;kt.exports=function(vt){return vt>0?pt(St(vt),9007199254740991):0}},{"../internals/to-integer-or-infinity":248}],250:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/require-object-coercible"),vt=St.Object;kt.exports=function(yt){return vt(pt(yt))}},{"../internals/global":163,"../internals/require-object-coercible":230}],251:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/to-positive-integer"),vt=St.RangeError;kt.exports=function(yt,xt){var dt=pt(yt);if(dt%xt)throw vt("Wrong offset");return dt}},{"../internals/global":163,"../internals/to-positive-integer":252}],252:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/to-integer-or-infinity"),vt=St.RangeError;kt.exports=function(yt){var xt=pt(yt);if(xt<0)throw vt("The argument can't be less than 0");return xt}},{"../internals/global":163,"../internals/to-integer-or-infinity":248}],253:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/function-call"),vt=rt("../internals/is-object"),yt=rt("../internals/is-symbol"),xt=rt("../internals/get-method"),dt=rt("../internals/ordinary-to-primitive"),ft=rt("../internals/well-known-symbol"),ct=St.TypeError,lt=ft("toPrimitive");kt.exports=function(E,z){if(!vt(E)||yt(E))return E;var ot=xt(E,lt),it;if(ot){if(z===void 0&&(z="default"),it=pt(ot,E,z),!vt(it)||yt(it))return it;throw ct("Can't convert object to primitive value")}return z===void 0&&(z="number"),dt(E,z)}},{"../internals/function-call":155,"../internals/get-method":161,"../internals/global":163,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/ordinary-to-primitive":211,"../internals/well-known-symbol":268}],254:[function(rt,kt,Ct){var St=rt("../internals/to-primitive"),pt=rt("../internals/is-symbol");kt.exports=function(vt){var yt=St(vt,"string");return pt(yt)?yt:yt+""}},{"../internals/is-symbol":183,"../internals/to-primitive":253}],255:[function(rt,kt,Ct){var St=rt("../internals/well-known-symbol"),pt=St("toStringTag"),vt={};vt[pt]="z",kt.exports=String(vt)==="[object z]"},{"../internals/well-known-symbol":268}],256:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/classof"),vt=St.String;kt.exports=function(yt){if(pt(yt)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return vt(yt)}},{"../internals/classof":124,"../internals/global":163}],257:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=St.String;kt.exports=function(vt){try{return pt(vt)}catch(yt){return"Object"}}},{"../internals/global":163}],258:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/global"),vt=rt("../internals/function-call"),yt=rt("../internals/descriptors"),xt=rt("../internals/typed-array-constructors-require-wrappers"),dt=rt("../internals/array-buffer-view-core"),ft=rt("../internals/array-buffer"),ct=rt("../internals/an-instance"),lt=rt("../internals/create-property-descriptor"),E=rt("../internals/create-non-enumerable-property"),z=rt("../internals/is-integral-number"),ot=rt("../internals/to-length"),it=rt("../internals/to-index"),at=rt("../internals/to-offset"),ut=rt("../internals/to-property-key"),wt=rt("../internals/has-own-property"),Et=rt("../internals/classof"),At=rt("../internals/is-object"),_t=rt("../internals/is-symbol"),Mt=rt("../internals/object-create"),jt=rt("../internals/object-is-prototype-of"),Lt=rt("../internals/object-set-prototype-of"),It=rt("../internals/object-get-own-property-names").f,Ut=rt("../internals/typed-array-from"),Xt=rt("../internals/array-iteration").forEach,Gt=rt("../internals/set-species"),Yt=rt("../internals/object-define-property"),Ht=rt("../internals/object-get-own-property-descriptor"),ne=rt("../internals/internal-state"),ae=rt("../internals/inherit-if-required"),ve=ne.get,Kt=ne.set,re=Yt.f,we=Ht.f,Me=Math.round,ke=pt.RangeError,me=ft.ArrayBuffer,fe=me.prototype,pe=ft.DataView,_e=dt.NATIVE_ARRAY_BUFFER_VIEWS,je=dt.TYPED_ARRAY_CONSTRUCTOR,He=dt.TYPED_ARRAY_TAG,Se=dt.TypedArray,xe=dt.TypedArrayPrototype,le=dt.aTypedArrayConstructor,Ne=dt.isTypedArray,se="BYTES_PER_ELEMENT",Ae="Wrong length",Xe=function(ye,Qt){le(ye);for(var Wt=0,Bt=Qt.length,te=new ye(Bt);Bt>Wt;)te[Wt]=Qt[Wt++];return te},Be=function(ye,Qt){re(ye,Qt,{get:function(){return ve(this)[Qt]}})},Te=function(ye){var Qt;return jt(fe,ye)||(Qt=Et(ye))=="ArrayBuffer"||Qt=="SharedArrayBuffer"},ue=function(ye,Qt){return Ne(ye)&&!_t(Qt)&&Qt in ye&&z(+Qt)&&Qt>=0},$t=function(Qt,Wt){return Wt=ut(Wt),ue(Qt,Wt)?lt(2,Qt[Wt]):we(Qt,Wt)},he=function(Qt,Wt,Bt){return Wt=ut(Wt),ue(Qt,Wt)&&At(Bt)&&wt(Bt,"value")&&!wt(Bt,"get")&&!wt(Bt,"set")&&!Bt.configurable&&(!wt(Bt,"writable")||Bt.writable)&&(!wt(Bt,"enumerable")||Bt.enumerable)?(Qt[Wt]=Bt.value,Qt):re(Qt,Wt,Bt)};yt?(_e||(Ht.f=$t,Yt.f=he,Be(xe,"buffer"),Be(xe,"byteOffset"),Be(xe,"byteLength"),Be(xe,"length")),St({target:"Object",stat:!0,forced:!_e},{getOwnPropertyDescriptor:$t,defineProperty:he}),kt.exports=function(ye,Qt,Wt){var Bt=ye.match(/\d+$/)[0]/8,te=ye+(Wt?"Clamped":"")+"Array",ge="get"+ye,Jt="set"+ye,Ie=pt[te],Ue=Ie,Je=Ue&&Ue.prototype,Ze={},nn=function(En,Dn){var ii=ve(En);return ii.view[ge](Dn*Bt+ii.byteOffset,!0)},fn=function(En,Dn,ii){var mi=ve(En);Wt&&(ii=(ii=Me(ii))<0?0:ii>255?255:ii&255),mi.view[Jt](Dn*Bt+mi.byteOffset,ii,!0)},An=function(En,Dn){re(En,Dn,{get:function(){return nn(this,Dn)},set:function(ii){return fn(this,Dn,ii)},enumerable:!0})};_e?xt&&(Ue=Qt(function(En,Dn,ii,mi){return ct(En,Je),ae(function(){return At(Dn)?Te(Dn)?mi!==void 0?new Ie(Dn,at(ii,Bt),mi):ii!==void 0?new Ie(Dn,at(ii,Bt)):new Ie(Dn):Ne(Dn)?Xe(Ue,Dn):vt(Ut,Ue,Dn):new Ie(it(Dn))}(),En,Ue)}),Lt&&Lt(Ue,Se),Xt(It(Ie),function(En){En in Ue||E(Ue,En,Ie[En])}),Ue.prototype=Je):(Ue=Qt(function(En,Dn,ii,mi){ct(En,Je);var Ti=0,Oi=0,ki,pi,Bi;if(!At(Dn))Bi=it(Dn),pi=Bi*Bt,ki=new me(pi);else if(Te(Dn)){ki=Dn,Oi=at(ii,Bt);var Or=Dn.byteLength;if(mi===void 0){if(Or%Bt||(pi=Or-Oi,pi<0))throw ke(Ae)}else if(pi=ot(mi)*Bt,pi+Oi>Or)throw ke(Ae);Bi=pi/Bt}else return Ne(Dn)?Xe(Ue,Dn):vt(Ut,Ue,Dn);for(Kt(En,{buffer:ki,byteOffset:Oi,byteLength:pi,length:Bi,view:new pe(ki)});Ti1?arguments[1]:void 0,wt=ut!==void 0,Et=ft(it),At,_t,Mt,jt,Lt,It;if(Et&&!ct(Et))for(Lt=dt(it,Et),It=Lt.next,it=[];!(jt=pt(It,Lt)).done;)it.push(jt.value);for(wt&&at>2&&(ut=St(ut,arguments[2])),_t=xt(it),Mt=new(lt(ot))(_t),At=0;_t>At;At++)Mt[At]=wt?ut(it[At],At):it[At];return Mt}},{"../internals/a-constructor":96,"../internals/array-buffer-view-core":103,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/is-array-iterator-method":174,"../internals/length-of-array-like":188,"../internals/to-object":250}],262:[function(rt,kt,Ct){var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/species-constructor"),vt=St.TYPED_ARRAY_CONSTRUCTOR,yt=St.aTypedArrayConstructor;kt.exports=function(xt){return yt(pt(xt,xt[vt]))}},{"../internals/array-buffer-view-core":103,"../internals/species-constructor":238}],263:[function(rt,kt,Ct){var St=rt("../internals/function-uncurry-this"),pt=0,vt=Math.random(),yt=St(1 .toString);kt.exports=function(xt){return"Symbol("+(xt===void 0?"":xt)+")_"+yt(++pt+vt,36)}},{"../internals/function-uncurry-this":157}],264:[function(rt,kt,Ct){var St=rt("../internals/native-symbol");kt.exports=St&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/native-symbol":191}],265:[function(rt,kt,Ct){var St=rt("../internals/descriptors"),pt=rt("../internals/fails");kt.exports=St&&pt(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},{"../internals/descriptors":134,"../internals/fails":150}],266:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=St.TypeError;kt.exports=function(vt,yt){if(vt=51||!vt(function(){var jt=[];return jt[it]=!1,jt.concat()[0]!==jt}),At=E("concat"),_t=function(jt){if(!xt(jt))return!1;var Lt=jt[it];return Lt!==void 0?!!Lt:yt(jt)},Mt=!Et||!At;St({target:"Array",proto:!0,forced:Mt},{concat:function(Lt){var It=dt(this),Ut=lt(It,0),Xt=0,Gt,Yt,Ht,ne,ae;for(Gt=-1,Ht=arguments.length;Gtat)throw wt(ut);for(Yt=0;Yt=at)throw wt(ut);ct(Ut,Xt++,ae)}return Ut.length=Xt,Ut}})},{"../internals/array-method-has-species-support":113,"../internals/array-species-create":120,"../internals/create-property":131,"../internals/engine-v8-version":146,"../internals/export":149,"../internals/fails":150,"../internals/global":163,"../internals/is-array":175,"../internals/is-object":180,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/well-known-symbol":268}],273:[function(rt,kt,Ct){var St=rt("../internals/export"),pt=rt("../internals/array-fill"),vt=rt("../internals/add-to-unscopables");St({target:"Array",proto:!0},{fill:pt}),vt("fill")},{"../internals/add-to-unscopables":98,"../internals/array-fill":106,"../internals/export":149}],274:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/array-iteration").filter,vt=rt("../internals/array-method-has-species-support"),yt=vt("filter");St({target:"Array",proto:!0,forced:!yt},{filter:function(dt){return pt(this,dt,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],275:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/array-iteration").find,vt=rt("../internals/add-to-unscopables"),yt="find",xt=!0;yt in[]&&Array(1)[yt](function(){xt=!1}),St({target:"Array",proto:!0,forced:xt},{find:function(ft){return pt(this,ft,arguments.length>1?arguments[1]:void 0)}}),vt(yt)},{"../internals/add-to-unscopables":98,"../internals/array-iteration":111,"../internals/export":149}],276:[function(rt,kt,Ct){var St=rt("../internals/export"),pt=rt("../internals/array-from"),vt=rt("../internals/check-correctness-of-iteration"),yt=!vt(function(xt){Array.from(xt)});St({target:"Array",stat:!0,forced:yt},{from:pt})},{"../internals/array-from":109,"../internals/check-correctness-of-iteration":122,"../internals/export":149}],277:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/array-includes").includes,vt=rt("../internals/add-to-unscopables");St({target:"Array",proto:!0},{includes:function(xt){return pt(this,xt,arguments.length>1?arguments[1]:void 0)}}),vt("includes")},{"../internals/add-to-unscopables":98,"../internals/array-includes":110,"../internals/export":149}],278:[function(rt,kt,Ct){"use strict";var St=rt("../internals/to-indexed-object"),pt=rt("../internals/add-to-unscopables"),vt=rt("../internals/iterators"),yt=rt("../internals/internal-state"),xt=rt("../internals/object-define-property").f,dt=rt("../internals/define-iterator"),ft=rt("../internals/is-pure"),ct=rt("../internals/descriptors"),lt="Array Iterator",E=yt.set,z=yt.getterFor(lt);kt.exports=dt(Array,"Array",function(it,at){E(this,{type:lt,target:St(it),index:0,kind:at})},function(){var it=z(this),at=it.target,ut=it.kind,wt=it.index++;return!at||wt>=at.length?(it.target=void 0,{value:void 0,done:!0}):ut=="keys"?{value:wt,done:!1}:ut=="values"?{value:at[wt],done:!1}:{value:[wt,at[wt]],done:!1}},"values");var ot=vt.Arguments=vt.Array;if(pt("keys"),pt("values"),pt("entries"),!ft&&ct&&ot.name!=="values")try{xt(ot,"name",{value:"values"})}catch(it){}},{"../internals/add-to-unscopables":98,"../internals/define-iterator":132,"../internals/descriptors":134,"../internals/internal-state":173,"../internals/is-pure":181,"../internals/iterators":187,"../internals/object-define-property":198,"../internals/to-indexed-object":247}],279:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/function-uncurry-this"),vt=rt("../internals/indexed-object"),yt=rt("../internals/to-indexed-object"),xt=rt("../internals/array-method-is-strict"),dt=pt([].join),ft=vt!=Object,ct=xt("join",",");St({target:"Array",proto:!0,forced:ft||!ct},{join:function(E){return dt(yt(this),E===void 0?",":E)}})},{"../internals/array-method-is-strict":114,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/to-indexed-object":247}],280:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/array-iteration").map,vt=rt("../internals/array-method-has-species-support"),yt=vt("map");St({target:"Array",proto:!0,forced:!yt},{map:function(dt){return pt(this,dt,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],281:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/global"),vt=rt("../internals/is-array"),yt=rt("../internals/is-constructor"),xt=rt("../internals/is-object"),dt=rt("../internals/to-absolute-index"),ft=rt("../internals/length-of-array-like"),ct=rt("../internals/to-indexed-object"),lt=rt("../internals/create-property"),E=rt("../internals/well-known-symbol"),z=rt("../internals/array-method-has-species-support"),ot=rt("../internals/array-slice"),it=z("slice"),at=E("species"),ut=pt.Array,wt=Math.max;St({target:"Array",proto:!0,forced:!it},{slice:function(At,_t){var Mt=ct(this),jt=ft(Mt),Lt=dt(At,jt),It=dt(_t===void 0?jt:_t,jt),Ut,Xt,Gt;if(vt(Mt)&&(Ut=Mt.constructor,yt(Ut)&&(Ut===ut||vt(Ut.prototype))?Ut=void 0:xt(Ut)&&(Ut=Ut[at],Ut===null&&(Ut=void 0)),Ut===ut||Ut===void 0))return ot(Mt,Lt,It);for(Xt=new(Ut===void 0?ut:Ut)(wt(It-Lt,0)),Gt=0;Lt3)){if(z)return!0;if(it)return it<603;var It="",Ut,Xt,Gt,Yt;for(Ut=65;Ut<76;Ut++){switch(Xt=String.fromCharCode(Ut),Ut){case 66:case 69:case 70:case 72:Gt=3;break;case 68:case 71:Gt=4;break;default:Gt=2}for(Yt=0;Yt<47;Yt++)at.push({k:Xt+Yt,v:Gt})}for(at.sort(function(Ht,ne){return ne.v-Ht.v}),Yt=0;Ytdt(Xt)?1:-1}};St({target:"Array",proto:!0,forced:jt},{sort:function(Ut){Ut!==void 0&&vt(Ut);var Xt=yt(this);if(Mt)return Ut===void 0?ut(Xt):ut(Xt,Ut);var Gt=[],Yt=xt(Xt),Ht,ne;for(ne=0;neat)throw z(ut);for(Xt=ft(_t,Ut),Gt=0;GtMt-Ut+It;Gt--)delete _t[Gt-1]}else if(It>Ut)for(Gt=Mt-Ut;Gt>jt;Gt--)Yt=Gt+Ut-1,Ht=Gt+It-1,Yt in _t?_t[Ht]=_t[Yt]:delete _t[Ht];for(Gt=0;Gt2){if(ae=wt(ae),ve=Lt(ae,0),ve===43||ve===45){if(Kt=Lt(ae,2),Kt===88||Kt===120)return NaN}else if(ve===48){switch(Lt(ae,1)){case 66:case 98:re=2,we=49;break;case 79:case 111:re=8,we=55;break;default:return+ae}for(Me=jt(ae,2),ke=Me.length,me=0;mewe)return NaN;return parseInt(Me,re)}}return+ae};if(yt(Et,!At(" 0o1")||!At("0b1")||At("+0x1"))){for(var Xt=function(ae){var ve=arguments.length<1?0:At(It(ae)),Kt=this;return ct(_t,Kt)&&z(function(){ut(Kt)})?ft(Object(ve),Kt,Xt):ve},Gt=St?ot(At):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),Yt=0,Ht;Gt.length>Yt;Yt++)dt(At,Ht=Gt[Yt])&&!dt(Xt,Ht)&&at(Xt,Ht,it(At,Ht));Xt.prototype=_t,_t.constructor=Xt,xt(pt,Et,Xt)}},{"../internals/descriptors":134,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/is-forced":178,"../internals/is-symbol":183,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/redefine":222,"../internals/string-trim":241,"../internals/this-number-value":244,"../internals/to-primitive":253}],287:[function(rt,kt,Ct){var St=rt("../internals/export"),pt=rt("../internals/object-assign");St({target:"Object",stat:!0,forced:Object.assign!==pt},{assign:pt})},{"../internals/export":149,"../internals/object-assign":195}],288:[function(rt,kt,Ct){var St=rt("../internals/export"),pt=rt("../internals/object-to-array").entries;St({target:"Object",stat:!0},{entries:function(yt){return pt(yt)}})},{"../internals/export":149,"../internals/object-to-array":209}],289:[function(rt,kt,Ct){var St=rt("../internals/export"),pt=rt("../internals/native-symbol"),vt=rt("../internals/fails"),yt=rt("../internals/object-get-own-property-symbols"),xt=rt("../internals/to-object"),dt=!pt||vt(function(){yt.f(1)});St({target:"Object",stat:!0,forced:dt},{getOwnPropertySymbols:function(ct){var lt=yt.f;return lt?lt(xt(ct)):[]}})},{"../internals/export":149,"../internals/fails":150,"../internals/native-symbol":191,"../internals/object-get-own-property-symbols":202,"../internals/to-object":250}],290:[function(rt,kt,Ct){var St=rt("../internals/export"),pt=rt("../internals/to-object"),vt=rt("../internals/object-keys"),yt=rt("../internals/fails"),xt=yt(function(){vt(1)});St({target:"Object",stat:!0,forced:xt},{keys:function(ft){return vt(pt(ft))}})},{"../internals/export":149,"../internals/fails":150,"../internals/object-keys":206,"../internals/to-object":250}],291:[function(rt,kt,Ct){var St=rt("../internals/to-string-tag-support"),pt=rt("../internals/redefine"),vt=rt("../internals/object-to-string");St||pt(Object.prototype,"toString",vt,{unsafe:!0})},{"../internals/object-to-string":210,"../internals/redefine":222,"../internals/to-string-tag-support":255}],292:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/function-call"),vt=rt("../internals/a-callable"),yt=rt("../internals/new-promise-capability"),xt=rt("../internals/perform"),dt=rt("../internals/iterate"),ft=rt("../internals/promise-statics-incorrect-iteration");St({target:"Promise",stat:!0,forced:ft},{all:function(lt){var E=this,z=yt.f(E),ot=z.resolve,it=z.reject,at=xt(function(){var ut=vt(E.resolve),wt=[],Et=0,At=1;dt(lt,function(_t){var Mt=Et++,jt=!1;At++,pt(ut,E,_t).then(function(Lt){jt||(jt=!0,wt[Mt]=Lt,--At||ot(wt))},it)}),--At||ot(wt)});return at.error&&it(at.value),z.promise}})},{"../internals/a-callable":95,"../internals/export":149,"../internals/function-call":155,"../internals/iterate":184,"../internals/new-promise-capability":193,"../internals/perform":214,"../internals/promise-statics-incorrect-iteration":218}],293:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/is-pure"),vt=rt("../internals/promise-constructor-detection").CONSTRUCTOR,yt=rt("../internals/promise-native-constructor"),xt=rt("../internals/get-built-in"),dt=rt("../internals/is-callable"),ft=rt("../internals/redefine"),ct=yt&&yt.prototype;if(St({target:"Promise",proto:!0,forced:vt,real:!0},{catch:function(E){return this.then(void 0,E)}}),!pt&&dt(yt)){var lt=xt("Promise").prototype.catch;ct.catch!==lt&&ft(ct,"catch",lt,{unsafe:!0})}},{"../internals/export":149,"../internals/get-built-in":158,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/redefine":222}],294:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/is-pure"),vt=rt("../internals/engine-is-node"),yt=rt("../internals/global"),xt=rt("../internals/function-call"),dt=rt("../internals/redefine"),ft=rt("../internals/redefine-all"),ct=rt("../internals/object-set-prototype-of"),lt=rt("../internals/set-to-string-tag"),E=rt("../internals/set-species"),z=rt("../internals/a-callable"),ot=rt("../internals/is-callable"),it=rt("../internals/is-object"),at=rt("../internals/an-instance"),ut=rt("../internals/species-constructor"),wt=rt("../internals/task").set,Et=rt("../internals/microtask"),At=rt("../internals/host-report-errors"),_t=rt("../internals/perform"),Mt=rt("../internals/queue"),jt=rt("../internals/internal-state"),Lt=rt("../internals/promise-native-constructor"),It=rt("../internals/promise-constructor-detection"),Ut=rt("../internals/new-promise-capability"),Xt="Promise",Gt=It.CONSTRUCTOR,Yt=It.REJECTION_EVENT,Ht=It.SUBCLASSING,ne=jt.getterFor(Xt),ae=jt.set,ve=Lt&&Lt.prototype,Kt=Lt,re=ve,we=yt.TypeError,Me=yt.document,ke=yt.process,me=Ut.f,fe=me,pe=!!(Me&&Me.createEvent&&yt.dispatchEvent),_e="unhandledrejection",je="rejectionhandled",He=0,Se=1,xe=2,le=1,Ne=2,se,Ae,Xe,Be,Te=function(Jt){var Ie;return it(Jt)&&ot(Ie=Jt.then)?Ie:!1},ue=function(Jt,Ie){var Ue=Ie.value,Je=Ie.state==Se,Ze=Je?Jt.ok:Jt.fail,nn=Jt.resolve,fn=Jt.reject,An=Jt.domain,En,Dn,ii;try{Ze?(Je||(Ie.rejection===Ne&&Wt(Ie),Ie.rejection=le),Ze===!0?En=Ue:(An&&An.enter(),En=Ze(Ue),An&&(An.exit(),ii=!0)),En===Jt.promise?fn(we("Promise-chain cycle")):(Dn=Te(En))?xt(Dn,En,nn,fn):nn(En)):fn(Ue)}catch(mi){An&&!ii&&An.exit(),fn(mi)}},$t=function(Jt,Ie){Jt.notified||(Jt.notified=!0,Et(function(){for(var Ue=Jt.reactions,Je;Je=Ue.get();)ue(Je,Jt);Jt.notified=!1,Ie&&!Jt.rejection&&ye(Jt)}))},he=function(Jt,Ie,Ue){var Je,Ze;pe?(Je=Me.createEvent("Event"),Je.promise=Ie,Je.reason=Ue,Je.initEvent(Jt,!1,!0),yt.dispatchEvent(Je)):Je={promise:Ie,reason:Ue},!Yt&&(Ze=yt["on"+Jt])?Ze(Je):Jt===_e&&At("Unhandled promise rejection",Ue)},ye=function(Jt){xt(wt,yt,function(){var Ie=Jt.facade,Ue=Jt.value,Je=Qt(Jt),Ze;if(Je&&(Ze=_t(function(){vt?ke.emit("unhandledRejection",Ue,Ie):he(_e,Ie,Ue)}),Jt.rejection=vt||Qt(Jt)?Ne:le,Ze.error))throw Ze.value})},Qt=function(Jt){return Jt.rejection!==le&&!Jt.parent},Wt=function(Jt){xt(wt,yt,function(){var Ie=Jt.facade;vt?ke.emit("rejectionHandled",Ie):he(je,Ie,Jt.value)})},Bt=function(Jt,Ie,Ue){return function(Je){Jt(Ie,Je,Ue)}},te=function(Jt,Ie,Ue){Jt.done||(Jt.done=!0,Ue&&(Jt=Ue),Jt.value=Ie,Jt.state=xe,$t(Jt,!0))},ge=function(Jt,Ie,Ue){if(!Jt.done){Jt.done=!0,Ue&&(Jt=Ue);try{if(Jt.facade===Ie)throw we("Promise can't be resolved itself");var Je=Te(Ie);Je?Et(function(){var Ze={done:!1};try{xt(Je,Ie,Bt(ge,Ze,Jt),Bt(te,Ze,Jt))}catch(nn){te(Ze,nn,Jt)}}):(Jt.value=Ie,Jt.state=Se,$t(Jt,!1))}catch(Ze){te({done:!1},Ze,Jt)}}};if(Gt&&(Kt=function(Ie){at(this,re),z(Ie),xt(se,this);var Ue=ne(this);try{Ie(Bt(ge,Ue),Bt(te,Ue))}catch(Je){te(Ue,Je)}},re=Kt.prototype,se=function(Ie){ae(this,{type:Xt,done:!1,notified:!1,parent:!1,reactions:new Mt,rejection:!1,state:He,value:void 0})},se.prototype=ft(re,{then:function(Ie,Ue){var Je=ne(this),Ze=me(ut(this,Kt));return Je.parent=!0,Ze.ok=ot(Ie)?Ie:!0,Ze.fail=ot(Ue)&&Ue,Ze.domain=vt?ke.domain:void 0,Je.state==He?Je.reactions.add(Ze):Et(function(){ue(Ze,Je)}),Ze.promise}}),Ae=function(){var Jt=new se,Ie=ne(Jt);this.promise=Jt,this.resolve=Bt(ge,Ie),this.reject=Bt(te,Ie)},Ut.f=me=function(Jt){return Jt===Kt||Jt===Xe?new Ae(Jt):fe(Jt)},!pt&&ot(Lt)&&ve!==Object.prototype)){Be=ve.then,Ht||dt(ve,"then",function(Ie,Ue){var Je=this;return new Kt(function(Ze,nn){xt(Be,Je,Ze,nn)}).then(Ie,Ue)},{unsafe:!0});try{delete ve.constructor}catch(Jt){}ct&&ct(ve,re)}St({global:!0,wrap:!0,forced:Gt},{Promise:Kt}),lt(Kt,Xt,!1,!0),E(Xt)},{"../internals/a-callable":95,"../internals/an-instance":100,"../internals/engine-is-node":143,"../internals/export":149,"../internals/function-call":155,"../internals/global":163,"../internals/host-report-errors":166,"../internals/internal-state":173,"../internals/is-callable":176,"../internals/is-object":180,"../internals/is-pure":181,"../internals/microtask":189,"../internals/new-promise-capability":193,"../internals/object-set-prototype-of":208,"../internals/perform":214,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/queue":220,"../internals/redefine":222,"../internals/redefine-all":221,"../internals/set-species":233,"../internals/set-to-string-tag":234,"../internals/species-constructor":238,"../internals/task":243}],295:[function(rt,kt,Ct){rt("../modules/es.promise.constructor"),rt("../modules/es.promise.all"),rt("../modules/es.promise.catch"),rt("../modules/es.promise.race"),rt("../modules/es.promise.reject"),rt("../modules/es.promise.resolve")},{"../modules/es.promise.all":292,"../modules/es.promise.catch":293,"../modules/es.promise.constructor":294,"../modules/es.promise.race":296,"../modules/es.promise.reject":297,"../modules/es.promise.resolve":298}],296:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/function-call"),vt=rt("../internals/a-callable"),yt=rt("../internals/new-promise-capability"),xt=rt("../internals/perform"),dt=rt("../internals/iterate"),ft=rt("../internals/promise-statics-incorrect-iteration");St({target:"Promise",stat:!0,forced:ft},{race:function(lt){var E=this,z=yt.f(E),ot=z.reject,it=xt(function(){var at=vt(E.resolve);dt(lt,function(ut){pt(at,E,ut).then(z.resolve,ot)})});return it.error&&ot(it.value),z.promise}})},{"../internals/a-callable":95,"../internals/export":149,"../internals/function-call":155,"../internals/iterate":184,"../internals/new-promise-capability":193,"../internals/perform":214,"../internals/promise-statics-incorrect-iteration":218}],297:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/function-call"),vt=rt("../internals/new-promise-capability"),yt=rt("../internals/promise-constructor-detection").CONSTRUCTOR;St({target:"Promise",stat:!0,forced:yt},{reject:function(dt){var ft=vt.f(this);return pt(ft.reject,void 0,dt),ft.promise}})},{"../internals/export":149,"../internals/function-call":155,"../internals/new-promise-capability":193,"../internals/promise-constructor-detection":215}],298:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/get-built-in"),vt=rt("../internals/is-pure"),yt=rt("../internals/promise-native-constructor"),xt=rt("../internals/promise-constructor-detection").CONSTRUCTOR,dt=rt("../internals/promise-resolve"),ft=pt("Promise"),ct=vt&&!xt;St({target:"Promise",stat:!0,forced:vt||xt},{resolve:function(E){return dt(ct&&this===ft?yt:this,E)}})},{"../internals/export":149,"../internals/get-built-in":158,"../internals/is-pure":181,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/promise-resolve":217}],299:[function(rt,kt,Ct){var St=rt("../internals/descriptors"),pt=rt("../internals/global"),vt=rt("../internals/function-uncurry-this"),yt=rt("../internals/is-forced"),xt=rt("../internals/inherit-if-required"),dt=rt("../internals/create-non-enumerable-property"),ft=rt("../internals/object-get-own-property-names").f,ct=rt("../internals/object-is-prototype-of"),lt=rt("../internals/is-regexp"),E=rt("../internals/to-string"),z=rt("../internals/regexp-get-flags"),ot=rt("../internals/regexp-sticky-helpers"),it=rt("../internals/proxy-accessor"),at=rt("../internals/redefine"),ut=rt("../internals/fails"),wt=rt("../internals/has-own-property"),Et=rt("../internals/internal-state").enforce,At=rt("../internals/set-species"),_t=rt("../internals/well-known-symbol"),Mt=rt("../internals/regexp-unsupported-dot-all"),jt=rt("../internals/regexp-unsupported-ncg"),Lt=_t("match"),It=pt.RegExp,Ut=It.prototype,Xt=pt.SyntaxError,Gt=vt(Ut.exec),Yt=vt("".charAt),Ht=vt("".replace),ne=vt("".indexOf),ae=vt("".slice),ve=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Kt=/a/g,re=/a/g,we=new It(Kt)!==Kt,Me=ot.MISSED_STICKY,ke=ot.UNSUPPORTED_Y,me=St&&(!we||Me||Mt||jt||ut(function(){return re[Lt]=!1,It(Kt)!=Kt||It(re)==re||It(Kt,"i")!="/a/i"})),fe=function(Se){for(var xe=Se.length,le=0,Ne="",se=!1,Ae;le<=xe;le++){if(Ae=Yt(Se,le),Ae==="\\"){Ne+=Ae+Yt(Se,++le);continue}!se&&Ae==="."?Ne+="[\\s\\S]":(Ae==="["?se=!0:Ae==="]"&&(se=!1),Ne+=Ae)}return Ne},pe=function(Se){for(var xe=Se.length,le=0,Ne="",se=[],Ae={},Xe=!1,Be=!1,Te=0,ue="",$t;le<=xe;le++){if($t=Yt(Se,le),$t==="\\")$t=$t+Yt(Se,++le);else if($t==="]")Xe=!1;else if(!Xe)switch(!0){case $t==="[":Xe=!0;break;case $t==="(":Gt(ve,ae(Se,le+1))&&(le+=2,Be=!0),Ne+=$t,Te++;continue;case($t===">"&&Be):if(ue===""||wt(Ae,ue))throw new Xt("Invalid capture group name");Ae[ue]=!0,se[se.length]=[ue,Te],Be=!1,ue="";continue}Be?ue+=$t:Ne+=$t}return[Ne,se]};if(yt("RegExp",me)){for(var _e=function(xe,le){var Ne=ct(Ut,this),se=lt(xe),Ae=le===void 0,Xe=[],Be=xe,Te,ue,$t,he,ye,Qt;if(!Ne&&se&&Ae&&xe.constructor===_e)return xe;if((se||ct(Ut,xe))&&(xe=xe.source,Ae&&(le=z(Be))),xe=xe===void 0?"":E(xe),le=le===void 0?"":E(le),Be=xe,Mt&&"dotAll"in Kt&&(ue=!!le&&ne(le,"s")>-1,ue&&(le=Ht(le,/s/g,""))),Te=le,Me&&"sticky"in Kt&&($t=!!le&&ne(le,"y")>-1,$t&&ke&&(le=Ht(le,/y/g,""))),jt&&(he=pe(xe),xe=he[0],Xe=he[1]),ye=xt(It(xe,le),Ne?this:Ut,_e),(ue||$t||Xe.length)&&(Qt=Et(ye),ue&&(Qt.dotAll=!0,Qt.raw=_e(fe(xe),Te)),$t&&(Qt.sticky=!0),Xe.length&&(Qt.groups=Xe)),xe!==Be)try{dt(ye,"source",Be===""?"(?:)":Be)}catch(Wt){}return ye},je=ft(It),He=0;je.length>He;)it(_e,It,je[He++]);Ut.constructor=_e,_e.prototype=Ut,at(pt,"RegExp",_e)}At("RegExp")},{"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/internal-state":173,"../internals/is-forced":178,"../internals/is-regexp":182,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/proxy-accessor":219,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/regexp-sticky-helpers":227,"../internals/regexp-unsupported-dot-all":228,"../internals/regexp-unsupported-ncg":229,"../internals/set-species":233,"../internals/to-string":256,"../internals/well-known-symbol":268}],300:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/regexp-exec");St({target:"RegExp",proto:!0,forced:/./.exec!==pt},{exec:pt})},{"../internals/export":149,"../internals/regexp-exec":224}],301:[function(rt,kt,Ct){"use strict";var St=rt("../internals/function-name").PROPER,pt=rt("../internals/redefine"),vt=rt("../internals/an-object"),yt=rt("../internals/to-string"),xt=rt("../internals/fails"),dt=rt("../internals/regexp-get-flags"),ft="toString",ct=RegExp.prototype,lt=ct[ft],E=xt(function(){return lt.call({source:"a",flags:"b"})!="/a/b"}),z=St&<.name!=ft;(E||z)&&pt(RegExp.prototype,ft,function(){var it=vt(this),at=yt(it.source),ut=yt(dt(it));return"/"+at+"/"+ut},{unsafe:!0})},{"../internals/an-object":101,"../internals/fails":150,"../internals/function-name":156,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/to-string":256}],302:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/function-uncurry-this"),vt=rt("../internals/not-a-regexp"),yt=rt("../internals/require-object-coercible"),xt=rt("../internals/to-string"),dt=rt("../internals/correct-is-regexp-logic"),ft=pt("".indexOf);St({target:"String",proto:!0,forced:!dt("includes")},{includes:function(lt){return!!~ft(xt(yt(this)),xt(vt(lt)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":126,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/not-a-regexp":194,"../internals/require-object-coercible":230,"../internals/to-string":256}],303:[function(rt,kt,Ct){"use strict";var St=rt("../internals/string-multibyte").charAt,pt=rt("../internals/to-string"),vt=rt("../internals/internal-state"),yt=rt("../internals/define-iterator"),xt="String Iterator",dt=vt.set,ft=vt.getterFor(xt);yt(String,"String",function(ct){dt(this,{type:xt,string:pt(ct),index:0})},function(){var lt=ft(this),E=lt.string,z=lt.index,ot;return z>=E.length?{value:void 0,done:!0}:(ot=St(E,z),lt.index+=ot.length,{value:ot,done:!1})})},{"../internals/define-iterator":132,"../internals/internal-state":173,"../internals/string-multibyte":239,"../internals/to-string":256}],304:[function(rt,kt,Ct){"use strict";var St=rt("../internals/function-call"),pt=rt("../internals/fix-regexp-well-known-symbol-logic"),vt=rt("../internals/an-object"),yt=rt("../internals/to-length"),xt=rt("../internals/to-string"),dt=rt("../internals/require-object-coercible"),ft=rt("../internals/get-method"),ct=rt("../internals/advance-string-index"),lt=rt("../internals/regexp-exec-abstract");pt("match",function(E,z,ot){return[function(at){var ut=dt(this),wt=at==null?void 0:ft(at,E);return wt?St(wt,at,ut):new RegExp(at)[E](xt(ut))},function(it){var at=vt(this),ut=xt(it),wt=ot(z,at,ut);if(wt.done)return wt.value;if(!at.global)return lt(at,ut);var Et=at.unicode;at.lastIndex=0;for(var At=[],_t=0,Mt;(Mt=lt(at,ut))!==null;){var jt=xt(Mt[0]);At[_t]=jt,jt===""&&(at.lastIndex=ct(ut,yt(at.lastIndex),Et)),_t++}return _t===0?null:At}]})},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-call":155,"../internals/get-method":161,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/to-length":249,"../internals/to-string":256}],305:[function(rt,kt,Ct){"use strict";var St=rt("../internals/function-apply"),pt=rt("../internals/function-call"),vt=rt("../internals/function-uncurry-this"),yt=rt("../internals/fix-regexp-well-known-symbol-logic"),xt=rt("../internals/fails"),dt=rt("../internals/an-object"),ft=rt("../internals/is-callable"),ct=rt("../internals/to-integer-or-infinity"),lt=rt("../internals/to-length"),E=rt("../internals/to-string"),z=rt("../internals/require-object-coercible"),ot=rt("../internals/advance-string-index"),it=rt("../internals/get-method"),at=rt("../internals/get-substitution"),ut=rt("../internals/regexp-exec-abstract"),wt=rt("../internals/well-known-symbol"),Et=wt("replace"),At=Math.max,_t=Math.min,Mt=vt([].concat),jt=vt([].push),Lt=vt("".indexOf),It=vt("".slice),Ut=function(Ht){return Ht===void 0?Ht:String(Ht)},Xt=function(){return"a".replace(/./,"$0")==="$0"}(),Gt=function(){return/./[Et]?/./[Et]("a","$0")==="":!1}(),Yt=!xt(function(){var Ht=/./;return Ht.exec=function(){var ne=[];return ne.groups={a:"7"},ne},"".replace(Ht,"$")!=="7"});yt("replace",function(Ht,ne,ae){var ve=Gt?"$":"$0";return[function(re,we){var Me=z(this),ke=re==null?void 0:it(re,Et);return ke?pt(ke,re,Me,we):pt(ne,E(Me),re,we)},function(Kt,re){var we=dt(this),Me=E(Kt);if(typeof re=="string"&&Lt(re,ve)===-1&&Lt(re,"$<")===-1){var ke=ae(ne,we,Me,re);if(ke.done)return ke.value}var me=ft(re);me||(re=E(re));var fe=we.global;if(fe){var pe=we.unicode;we.lastIndex=0}for(var _e=[];;){var je=ut(we,Me);if(je===null||(jt(_e,je),!fe))break;var He=E(je[0]);He===""&&(we.lastIndex=ot(Me,lt(we.lastIndex),pe))}for(var Se="",xe=0,le=0;le<_e.length;le++){je=_e[le];for(var Ne=E(je[0]),se=At(_t(ct(je.index),Me.length),0),Ae=[],Xe=1;Xe=xe&&(Se+=It(Me,xe,se)+ue,xe=se+Ne.length)}return Se+It(Me,xe)}]},!Yt||!Xt||Gt)},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/fails":150,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-method":161,"../internals/get-substitution":162,"../internals/is-callable":176,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-length":249,"../internals/to-string":256,"../internals/well-known-symbol":268}],306:[function(rt,kt,Ct){"use strict";var St=rt("../internals/function-call"),pt=rt("../internals/fix-regexp-well-known-symbol-logic"),vt=rt("../internals/an-object"),yt=rt("../internals/require-object-coercible"),xt=rt("../internals/same-value"),dt=rt("../internals/to-string"),ft=rt("../internals/get-method"),ct=rt("../internals/regexp-exec-abstract");pt("search",function(lt,E,z){return[function(it){var at=yt(this),ut=it==null?void 0:ft(it,lt);return ut?St(ut,it,at):new RegExp(it)[lt](dt(at))},function(ot){var it=vt(this),at=dt(ot),ut=z(E,it,at);if(ut.done)return ut.value;var wt=it.lastIndex;xt(wt,0)||(it.lastIndex=0);var Et=ct(it,at);return xt(it.lastIndex,wt)||(it.lastIndex=wt),Et===null?-1:Et.index}]})},{"../internals/an-object":101,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-call":155,"../internals/get-method":161,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/same-value":231,"../internals/to-string":256}],307:[function(rt,kt,Ct){"use strict";var St=rt("../internals/function-apply"),pt=rt("../internals/function-call"),vt=rt("../internals/function-uncurry-this"),yt=rt("../internals/fix-regexp-well-known-symbol-logic"),xt=rt("../internals/is-regexp"),dt=rt("../internals/an-object"),ft=rt("../internals/require-object-coercible"),ct=rt("../internals/species-constructor"),lt=rt("../internals/advance-string-index"),E=rt("../internals/to-length"),z=rt("../internals/to-string"),ot=rt("../internals/get-method"),it=rt("../internals/array-slice-simple"),at=rt("../internals/regexp-exec-abstract"),ut=rt("../internals/regexp-exec"),wt=rt("../internals/regexp-sticky-helpers"),Et=rt("../internals/fails"),At=wt.UNSUPPORTED_Y,_t=4294967295,Mt=Math.min,jt=[].push,Lt=vt(/./.exec),It=vt(jt),Ut=vt("".slice),Xt=!Et(function(){var Gt=/(?:)/,Yt=Gt.exec;Gt.exec=function(){return Yt.apply(this,arguments)};var Ht="ab".split(Gt);return Ht.length!==2||Ht[0]!=="a"||Ht[1]!=="b"});yt("split",function(Gt,Yt,Ht){var ne;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?ne=function(ae,ve){var Kt=z(ft(this)),re=ve===void 0?_t:ve>>>0;if(re===0)return[];if(ae===void 0)return[Kt];if(!xt(ae))return pt(Yt,Kt,ae,re);for(var we=[],Me=(ae.ignoreCase?"i":"")+(ae.multiline?"m":"")+(ae.unicode?"u":"")+(ae.sticky?"y":""),ke=0,me=new RegExp(ae.source,Me+"g"),fe,pe,_e;(fe=pt(ut,me,Kt))&&(pe=me.lastIndex,!(pe>ke&&(It(we,Ut(Kt,ke,fe.index)),fe.length>1&&fe.index=re)));)me.lastIndex===fe.index&&me.lastIndex++;return ke===Kt.length?(_e||!Lt(me,""))&&It(we,""):It(we,Ut(Kt,ke)),we.length>re?it(we,0,re):we}:"0".split(void 0,0).length?ne=function(ae,ve){return ae===void 0&&ve===0?[]:pt(Yt,this,ae,ve)}:ne=Yt,[function(ve,Kt){var re=ft(this),we=ve==null?void 0:ot(ve,Gt);return we?pt(we,ve,re,Kt):pt(ne,z(re),ve,Kt)},function(ae,ve){var Kt=dt(this),re=z(ae),we=Ht(ne,Kt,re,ve,ne!==Yt);if(we.done)return we.value;var Me=ct(Kt,RegExp),ke=Kt.unicode,me=(Kt.ignoreCase?"i":"")+(Kt.multiline?"m":"")+(Kt.unicode?"u":"")+(At?"g":"y"),fe=new Me(At?"^(?:"+Kt.source+")":Kt,me),pe=ve===void 0?_t:ve>>>0;if(pe===0)return[];if(re.length===0)return at(fe,re)===null?[re]:[];for(var _e=0,je=0,He=[];je2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-copy-within":105,"../internals/function-uncurry-this":157}],316:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/array-iteration").every,vt=St.aTypedArray,yt=St.exportTypedArrayMethod;yt("every",function(dt){return pt(vt(this),dt,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],317:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/function-call"),vt=rt("../internals/array-fill"),yt=St.aTypedArray,xt=St.exportTypedArrayMethod;xt("fill",function(ft){var ct=arguments.length;return pt(vt,yt(this),ft,ct>1?arguments[1]:void 0,ct>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-fill":106,"../internals/function-call":155}],318:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/array-iteration").filter,vt=rt("../internals/typed-array-from-species-and-list"),yt=St.aTypedArray,xt=St.exportTypedArrayMethod;xt("filter",function(ft){var ct=pt(yt(this),ft,arguments.length>1?arguments[1]:void 0);return vt(this,ct)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-from-species-and-list":260}],319:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/array-iteration").findIndex,vt=St.aTypedArray,yt=St.exportTypedArrayMethod;yt("findIndex",function(dt){return pt(vt(this),dt,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],320:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/array-iteration").find,vt=St.aTypedArray,yt=St.exportTypedArrayMethod;yt("find",function(dt){return pt(vt(this),dt,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],321:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/array-iteration").forEach,vt=St.aTypedArray,yt=St.exportTypedArrayMethod;yt("forEach",function(dt){pt(vt(this),dt,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],322:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/array-includes").includes,vt=St.aTypedArray,yt=St.exportTypedArrayMethod;yt("includes",function(dt){return pt(vt(this),dt,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],323:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/array-includes").indexOf,vt=St.aTypedArray,yt=St.exportTypedArrayMethod;yt("indexOf",function(dt){return pt(vt(this),dt,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],324:[function(rt,kt,Ct){"use strict";var St=rt("../internals/global"),pt=rt("../internals/fails"),vt=rt("../internals/function-uncurry-this"),yt=rt("../internals/array-buffer-view-core"),xt=rt("../modules/es.array.iterator"),dt=rt("../internals/well-known-symbol"),ft=dt("iterator"),ct=St.Uint8Array,lt=vt(xt.values),E=vt(xt.keys),z=vt(xt.entries),ot=yt.aTypedArray,it=yt.exportTypedArrayMethod,at=ct&&ct.prototype,ut=!pt(function(){at[ft].call([1])}),wt=!!at&&at.values&&at[ft]===at.values&&at.values.name==="values",Et=function(){return lt(ot(this))};it("entries",function(){return z(ot(this))},ut),it("keys",function(){return E(ot(this))},ut),it("values",Et,ut||!wt,{name:"values"}),it(ft,Et,ut||!wt,{name:"values"})},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/well-known-symbol":268,"../modules/es.array.iterator":278}],325:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/function-uncurry-this"),vt=St.aTypedArray,yt=St.exportTypedArrayMethod,xt=pt([].join);yt("join",function(ft){return xt(vt(this),ft)})},{"../internals/array-buffer-view-core":103,"../internals/function-uncurry-this":157}],326:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/function-apply"),vt=rt("../internals/array-last-index-of"),yt=St.aTypedArray,xt=St.exportTypedArrayMethod;xt("lastIndexOf",function(ft){var ct=arguments.length;return pt(vt,yt(this),ct>1?[ft,arguments[1]]:[ft])})},{"../internals/array-buffer-view-core":103,"../internals/array-last-index-of":112,"../internals/function-apply":152}],327:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/array-iteration").map,vt=rt("../internals/typed-array-species-constructor"),yt=St.aTypedArray,xt=St.exportTypedArrayMethod;xt("map",function(ft){return pt(yt(this),ft,arguments.length>1?arguments[1]:void 0,function(ct,lt){return new(vt(ct))(lt)})})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-species-constructor":262}],328:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/array-reduce").right,vt=St.aTypedArray,yt=St.exportTypedArrayMethod;yt("reduceRight",function(dt){var ft=arguments.length;return pt(vt(this),dt,ft,ft>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],329:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/array-reduce").left,vt=St.aTypedArray,yt=St.exportTypedArrayMethod;yt("reduce",function(dt){var ft=arguments.length;return pt(vt(this),dt,ft,ft>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],330:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=St.aTypedArray,vt=St.exportTypedArrayMethod,yt=Math.floor;vt("reverse",function(){for(var dt=this,ft=pt(dt).length,ct=yt(ft/2),lt=0,E;lt1?arguments[1]:void 0,1),_t=dt(Et);if(at)return pt(z,this,_t,At);var Mt=this.length,jt=yt(_t),Lt=0;if(jt+At>Mt)throw ct("Wrong length");for(;Ltit;)ut[it]=z[it++];return ut},ft)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/typed-array-species-constructor":262}],333:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/array-iteration").some,vt=St.aTypedArray,yt=St.exportTypedArrayMethod;yt("some",function(dt){return pt(vt(this),dt,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],334:[function(rt,kt,Ct){"use strict";var St=rt("../internals/global"),pt=rt("../internals/function-uncurry-this"),vt=rt("../internals/fails"),yt=rt("../internals/a-callable"),xt=rt("../internals/array-sort"),dt=rt("../internals/array-buffer-view-core"),ft=rt("../internals/engine-ff-version"),ct=rt("../internals/engine-is-ie-or-edge"),lt=rt("../internals/engine-v8-version"),E=rt("../internals/engine-webkit-version"),z=dt.aTypedArray,ot=dt.exportTypedArrayMethod,it=St.Uint16Array,at=it&&pt(it.prototype.sort),ut=!!at&&!(vt(function(){at(new it(2),null)})&&vt(function(){at(new it(2),{})})),wt=!!at&&!vt(function(){if(lt)return lt<74;if(ft)return ft<67;if(ct)return!0;if(E)return E<602;var At=new it(516),_t=Array(516),Mt,jt;for(Mt=0;Mt<516;Mt++)jt=Mt%4,At[Mt]=515-Mt,_t[Mt]=Mt-2*jt+3;for(at(At,function(Lt,It){return(Lt/4|0)-(It/4|0)}),Mt=0;Mt<516;Mt++)if(At[Mt]!==_t[Mt])return!0}),Et=function(At){return function(_t,Mt){return At!==void 0?+At(_t,Mt)||0:Mt!==Mt?-1:_t!==_t?1:_t===0&&Mt===0?1/_t>0&&1/Mt<0?1:-1:_t>Mt}};ot("sort",function(_t){return _t!==void 0&&yt(_t),wt?at(this,_t):xt(z(this),Et(_t))},!wt||ut)},{"../internals/a-callable":95,"../internals/array-buffer-view-core":103,"../internals/array-sort":118,"../internals/engine-ff-version":138,"../internals/engine-is-ie-or-edge":140,"../internals/engine-v8-version":146,"../internals/engine-webkit-version":147,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],335:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/to-length"),vt=rt("../internals/to-absolute-index"),yt=rt("../internals/typed-array-species-constructor"),xt=St.aTypedArray,dt=St.exportTypedArrayMethod;dt("subarray",function(ct,lt){var E=xt(this),z=E.length,ot=vt(ct,z),it=yt(E);return new it(E.buffer,E.byteOffset+ot*E.BYTES_PER_ELEMENT,pt((lt===void 0?z:vt(lt,z))-ot))})},{"../internals/array-buffer-view-core":103,"../internals/to-absolute-index":245,"../internals/to-length":249,"../internals/typed-array-species-constructor":262}],336:[function(rt,kt,Ct){"use strict";var St=rt("../internals/global"),pt=rt("../internals/function-apply"),vt=rt("../internals/array-buffer-view-core"),yt=rt("../internals/fails"),xt=rt("../internals/array-slice"),dt=St.Int8Array,ft=vt.aTypedArray,ct=vt.exportTypedArrayMethod,lt=[].toLocaleString,E=!!dt&&yt(function(){lt.call(new dt(1))}),z=yt(function(){return[1,2].toLocaleString()!=new dt([1,2]).toLocaleString()})||!yt(function(){dt.prototype.toLocaleString.call([1,2])});ct("toLocaleString",function(){return pt(lt,E?xt(ft(this)):ft(this),xt(arguments))},z)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/function-apply":152,"../internals/global":163}],337:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core").exportTypedArrayMethod,pt=rt("../internals/fails"),vt=rt("../internals/global"),yt=rt("../internals/function-uncurry-this"),xt=vt.Uint8Array,dt=xt&&xt.prototype||{},ft=[].toString,ct=yt([].join);pt(function(){ft.call({})})&&(ft=function(){return ct(this)});var lt=dt.toString!=ft;St("toString",ft,lt)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],338:[function(rt,kt,Ct){var St=rt("../internals/typed-array-constructor");St("Uint8",function(pt){return function(yt,xt,dt){return pt(this,yt,xt,dt)}})},{"../internals/typed-array-constructor":258}],339:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/dom-iterables"),vt=rt("../internals/dom-token-list-prototype"),yt=rt("../internals/array-for-each"),xt=rt("../internals/create-non-enumerable-property"),dt=function(ct){if(ct&&ct.forEach!==yt)try{xt(ct,"forEach",yt)}catch(lt){ct.forEach=yt}};for(var ft in pt)pt[ft]&&dt(St[ft]&&St[ft].prototype);dt(vt)},{"../internals/array-for-each":107,"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163}],340:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/dom-iterables"),vt=rt("../internals/dom-token-list-prototype"),yt=rt("../modules/es.array.iterator"),xt=rt("../internals/create-non-enumerable-property"),dt=rt("../internals/well-known-symbol"),ft=dt("iterator"),ct=dt("toStringTag"),lt=yt.values,E=function(ot,it){if(ot){if(ot[ft]!==lt)try{xt(ot,ft,lt)}catch(ut){ot[ft]=lt}if(ot[ct]||xt(ot,ct,it),pt[it]){for(var at in yt)if(ot[at]!==yt[at])try{xt(ot,at,yt[at])}catch(ut){ot[at]=yt[at]}}}};for(var z in pt)E(St[z]&&St[z].prototype,z);E(vt,"DOMTokenList")},{"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163,"../internals/well-known-symbol":268,"../modules/es.array.iterator":278}],341:[function(rt,kt,Ct){function St(wt){return Array.isArray?Array.isArray(wt):ut(wt)==="[object Array]"}Ct.isArray=St;function pt(wt){return typeof wt=="boolean"}Ct.isBoolean=pt;function vt(wt){return wt===null}Ct.isNull=vt;function yt(wt){return wt==null}Ct.isNullOrUndefined=yt;function xt(wt){return typeof wt=="number"}Ct.isNumber=xt;function dt(wt){return typeof wt=="string"}Ct.isString=dt;function ft(wt){return typeof wt=="symbol"}Ct.isSymbol=ft;function ct(wt){return wt===void 0}Ct.isUndefined=ct;function lt(wt){return ut(wt)==="[object RegExp]"}Ct.isRegExp=lt;function E(wt){return typeof wt=="object"&&wt!==null}Ct.isObject=E;function z(wt){return ut(wt)==="[object Date]"}Ct.isDate=z;function ot(wt){return ut(wt)==="[object Error]"||wt instanceof Error}Ct.isError=ot;function it(wt){return typeof wt=="function"}Ct.isFunction=it;function at(wt){return wt===null||typeof wt=="boolean"||typeof wt=="number"||typeof wt=="string"||typeof wt=="symbol"||typeof wt=="undefined"}Ct.isPrimitive=at,Ct.isBuffer=rt("buffer").Buffer.isBuffer;function ut(wt){return Object.prototype.toString.call(wt)}},{buffer:90}],342:[function(rt,kt,Ct){(function(St){"use strict";var pt=function(){var ft=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,ct=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,lt=/[^-+\dA-Z]/g;return function(E,z,ot,it){if(arguments.length===1&&dt(E)==="string"&&!/\d/.test(E)&&(z=E,E=void 0),E=E||new Date,E instanceof Date||(E=new Date(E)),isNaN(E))throw TypeError("Invalid date");z=String(pt.masks[z]||z||pt.masks.default);var at=z.slice(0,4);(at==="UTC:"||at==="GMT:")&&(z=z.slice(4),ot=!0,at==="GMT:"&&(it=!0));var ut=ot?"getUTC":"get",wt=E[ut+"Date"](),Et=E[ut+"Day"](),At=E[ut+"Month"](),_t=E[ut+"FullYear"](),Mt=E[ut+"Hours"](),jt=E[ut+"Minutes"](),Lt=E[ut+"Seconds"](),It=E[ut+"Milliseconds"](),Ut=ot?0:E.getTimezoneOffset(),Xt=yt(E),Gt=xt(E),Yt={d:wt,dd:vt(wt),ddd:pt.i18n.dayNames[Et],dddd:pt.i18n.dayNames[Et+7],m:At+1,mm:vt(At+1),mmm:pt.i18n.monthNames[At],mmmm:pt.i18n.monthNames[At+12],yy:String(_t).slice(2),yyyy:_t,h:Mt%12||12,hh:vt(Mt%12||12),H:Mt,HH:vt(Mt),M:jt,MM:vt(jt),s:Lt,ss:vt(Lt),l:vt(It,3),L:vt(Math.round(It/10)),t:Mt<12?"a":"p",tt:Mt<12?"am":"pm",T:Mt<12?"A":"P",TT:Mt<12?"AM":"PM",Z:it?"GMT":ot?"UTC":(String(E).match(ct)||[""]).pop().replace(lt,""),o:(Ut>0?"-":"+")+vt(Math.floor(Math.abs(Ut)/60)*100+Math.abs(Ut)%60,4),S:["th","st","nd","rd"][wt%10>3?0:(wt%100-wt%10!=10)*wt%10],W:Xt,N:Gt};return z.replace(ft,function(Ht){return Ht in Yt?Yt[Ht]:Ht.slice(1,Ht.length-1)})}}();pt.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},pt.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};function vt(ft,ct){for(ft=String(ft),ct=ct||2;ft.length]/;kt.exports=pt;function pt(vt){var yt=""+vt,xt=St.exec(yt);if(!xt)return yt;var dt,ft="",ct=0,lt=0;for(ct=xt.index;ct0&&(Yt=It[0]),Yt instanceof Error)throw Yt;var Ht=new Error("Unhandled error."+(Yt?" ("+Yt.message+")":""));throw Ht.context=Yt,Ht}var ne=Gt[Lt];if(ne===void 0)return!1;if(typeof ne=="function")pt(ne,this,It);else for(var ae=ne.length,ve=ut(ne,ae),Ut=0;Ut0&&Yt.length>Xt&&!Yt.warned){Yt.warned=!0;var Ht=new Error("Possible EventEmitter memory leak detected. "+Yt.length+" "+String(Lt)+" listeners added. Use emitter.setMaxListeners() to increase limit");Ht.name="MaxListenersExceededWarning",Ht.emitter=jt,Ht.type=Lt,Ht.count=Yt.length,yt(Ht)}return jt}dt.prototype.addListener=function(Lt,It){return E(this,Lt,It,!1)},dt.prototype.on=dt.prototype.addListener,dt.prototype.prependListener=function(Lt,It){return E(this,Lt,It,!0)};function z(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function ot(jt,Lt,It){var Ut={fired:!1,wrapFn:void 0,target:jt,type:Lt,listener:It},Xt=z.bind(Ut);return Xt.listener=It,Ut.wrapFn=Xt,Xt}dt.prototype.once=function(Lt,It){return ct(It),this.on(Lt,ot(this,Lt,It)),this},dt.prototype.prependOnceListener=function(Lt,It){return ct(It),this.prependListener(Lt,ot(this,Lt,It)),this},dt.prototype.removeListener=function(Lt,It){var Ut,Xt,Gt,Yt,Ht;if(ct(It),Xt=this._events,Xt===void 0)return this;if(Ut=Xt[Lt],Ut===void 0)return this;if(Ut===It||Ut.listener===It)--this._eventsCount===0?this._events=Object.create(null):(delete Xt[Lt],Xt.removeListener&&this.emit("removeListener",Lt,Ut.listener||It));else if(typeof Ut!="function"){for(Gt=-1,Yt=Ut.length-1;Yt>=0;Yt--)if(Ut[Yt]===It||Ut[Yt].listener===It){Ht=Ut[Yt].listener,Gt=Yt;break}if(Gt<0)return this;Gt===0?Ut.shift():wt(Ut,Gt),Ut.length===1&&(Xt[Lt]=Ut[0]),Xt.removeListener!==void 0&&this.emit("removeListener",Lt,Ht||It)}return this},dt.prototype.off=dt.prototype.removeListener,dt.prototype.removeAllListeners=function(Lt){var It,Ut,Xt;if(Ut=this._events,Ut===void 0)return this;if(Ut.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Ut[Lt]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Ut[Lt]),this;if(arguments.length===0){var Gt=Object.keys(Ut),Yt;for(Xt=0;Xt=0;Xt--)this.removeListener(Lt,It[Xt]);return this};function it(jt,Lt,It){var Ut=jt._events;if(Ut===void 0)return[];var Xt=Ut[Lt];return Xt===void 0?[]:typeof Xt=="function"?It?[Xt.listener||Xt]:[Xt]:It?Et(Xt):ut(Xt,Xt.length)}dt.prototype.listeners=function(Lt){return it(this,Lt,!0)},dt.prototype.rawListeners=function(Lt){return it(this,Lt,!1)},dt.listenerCount=function(jt,Lt){return typeof jt.listenerCount=="function"?jt.listenerCount(Lt):at.call(jt,Lt)},dt.prototype.listenerCount=at;function at(jt){var Lt=this._events;if(Lt!==void 0){var It=Lt[jt];if(typeof It=="function")return 1;if(It!==void 0)return It.length}return 0}dt.prototype.eventNames=function(){return this._eventsCount>0?vt(this._events):[]};function ut(jt,Lt){for(var It=new Array(Lt),Ut=0;Ut=3&&(ot=z),pt.call(lt)==="[object Array]"?yt(lt,E,ot):typeof lt=="string"?xt(lt,E,ot):dt(lt,E,ot)};kt.exports=ft},{"is-callable":367}],346:[function(rt,kt,Ct){"use strict";var St="Function.prototype.bind called on incompatible ",pt=Array.prototype.slice,vt=Object.prototype.toString,yt="[object Function]";kt.exports=function(dt){var ft=this;if(typeof ft!="function"||vt.call(ft)!==yt)throw new TypeError(St+ft);for(var ct=pt.call(arguments,1),lt,E=function(){if(this instanceof lt){var ut=ft.apply(this,ct.concat(pt.call(arguments)));return Object(ut)===ut?ut:this}else return ft.apply(dt,ct.concat(pt.call(arguments)))},z=Math.max(0,ft.length-ct.length),ot=[],it=0;it1&&typeof ve!="boolean")throw new yt('"allowMissing" argument must be a boolean');if(Ut(/^%?[^%]*%?$/,ae)===null)throw new pt("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Kt=Yt(ae),re=Kt.length>0?Kt[0]:"",we=Ht("%"+re+"%",ve),Me=we.name,ke=we.value,me=!1,fe=we.alias;fe&&(re=fe[0],jt(Kt,Mt([0,1],fe)));for(var pe=1,_e=!0;pe=Kt.length){var xe=dt(ke,je);_e=!!xe,_e&&"get"in xe&&!("originalValue"in xe.get)?ke=xe.get:ke=ke[je]}else _e=_t(ke,je),ke=ke[je];_e&&!me&&(at[Me]=ke)}}return ke}},{"function-bind":347,has:354,"has-proto":350,"has-symbols":351}],349:[function(rt,kt,Ct){"use strict";var St=rt("get-intrinsic"),pt=St("%Object.getOwnPropertyDescriptor%",!0);if(pt)try{pt([],"length")}catch(vt){pt=null}kt.exports=pt},{"get-intrinsic":348}],350:[function(rt,kt,Ct){"use strict";var St={foo:{}},pt=Object;kt.exports=function(){return{__proto__:St}.foo===St.foo&&!({__proto__:null}instanceof pt)}},{}],351:[function(rt,kt,Ct){"use strict";var St=typeof Symbol!="undefined"&&Symbol,pt=rt("./shams");kt.exports=function(){return typeof St!="function"||typeof Symbol!="function"||typeof St("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:pt()}},{"./shams":352}],352:[function(rt,kt,Ct){"use strict";kt.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var pt={},vt=Symbol("test"),yt=Object(vt);if(typeof vt=="string"||Object.prototype.toString.call(vt)!=="[object Symbol]"||Object.prototype.toString.call(yt)!=="[object Symbol]")return!1;var xt=42;pt[vt]=xt;for(vt in pt)return!1;if(typeof Object.keys=="function"&&Object.keys(pt).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(pt).length!==0)return!1;var dt=Object.getOwnPropertySymbols(pt);if(dt.length!==1||dt[0]!==vt||!Object.prototype.propertyIsEnumerable.call(pt,vt))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var ft=Object.getOwnPropertyDescriptor(pt,vt);if(ft.value!==xt||ft.enumerable!==!0)return!1}return!0}},{}],353:[function(rt,kt,Ct){"use strict";var St=rt("has-symbols/shams");kt.exports=function(){return St()&&!!Symbol.toStringTag}},{"has-symbols/shams":352}],354:[function(rt,kt,Ct){"use strict";var St=rt("function-bind");kt.exports=St.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":347}],355:[function(rt,kt,Ct){var St=rt("http"),pt=rt("url"),vt=kt.exports;for(var yt in St)St.hasOwnProperty(yt)&&(vt[yt]=St[yt]);vt.request=function(dt,ft){return dt=xt(dt),St.request.call(this,dt,ft)},vt.get=function(dt,ft){return dt=xt(dt),St.get.call(this,dt,ft)};function xt(dt){if(typeof dt=="string"&&(dt=pt.parse(dt)),dt.protocol||(dt.protocol="https:"),dt.protocol!=="https:")throw new Error('Protocol "'+dt.protocol+'" not supported. Expected "https:"');return dt}},{http:468,url:472}],356:[function(rt,kt,Ct){"use strict";var St=rt("util"),pt=rt("ms");kt.exports=function(vt){if(typeof vt=="number")return vt;var yt=pt(vt);if(yt===void 0){var xt=new Error(St.format("humanize-ms(%j) result undefined",vt));console.warn(xt.stack)}return yt}},{ms:376,util:419}],357:[function(rt,kt,Ct){Ct.read=function(St,pt,vt,yt,xt){var dt,ft,ct=xt*8-yt-1,lt=(1<>1,z=-7,ot=vt?xt-1:0,it=vt?-1:1,at=St[pt+ot];for(ot+=it,dt=at&(1<<-z)-1,at>>=-z,z+=ct;z>0;dt=dt*256+St[pt+ot],ot+=it,z-=8);for(ft=dt&(1<<-z)-1,dt>>=-z,z+=yt;z>0;ft=ft*256+St[pt+ot],ot+=it,z-=8);if(dt===0)dt=1-E;else{if(dt===lt)return ft?NaN:(at?-1:1)*(1/0);ft=ft+Math.pow(2,yt),dt=dt-E}return(at?-1:1)*ft*Math.pow(2,dt-yt)},Ct.write=function(St,pt,vt,yt,xt,dt){var ft,ct,lt,E=dt*8-xt-1,z=(1<>1,it=xt===23?Math.pow(2,-24)-Math.pow(2,-77):0,at=yt?0:dt-1,ut=yt?1:-1,wt=pt<0||pt===0&&1/pt<0?1:0;for(pt=Math.abs(pt),isNaN(pt)||pt===1/0?(ct=isNaN(pt)?1:0,ft=z):(ft=Math.floor(Math.log(pt)/Math.LN2),pt*(lt=Math.pow(2,-ft))<1&&(ft--,lt*=2),ft+ot>=1?pt+=it/lt:pt+=it*Math.pow(2,1-ot),pt*lt>=2&&(ft++,lt/=2),ft+ot>=z?(ct=0,ft=z):ft+ot>=1?(ct=(pt*lt-1)*Math.pow(2,xt),ft=ft+ot):(ct=pt*Math.pow(2,ot-1)*Math.pow(2,xt),ft=0));xt>=8;St[vt+at]=ct&255,at+=ut,ct/=256,xt-=8);for(ft=ft<0;St[vt+at]=ft&255,at+=ut,ft/=256,E-=8);St[vt+at-ut]|=wt*128}},{}],358:[function(rt,kt,Ct){"use strict";var St=[rt("./nextTick"),rt("./queueMicrotask"),rt("./mutation.js"),rt("./messageChannel"),rt("./stateChange"),rt("./timeout")],pt,vt,yt=-1,xt=[],dt=!1;function ft(){!pt||!vt||(pt=!1,vt.length?xt=vt.concat(xt):yt=-1,xt.length&&ct())}function ct(){if(!pt){dt=!1,pt=!0;for(var at=xt.length,ut=setTimeout(ft);at;){for(vt=xt,xt=[];vt&&++yt1)for(var wt=1;wt=0&&vt(ct)!=="[object Array]"&&vt(ct.callee)==="[object Function]"},dt=function(){return yt(arguments)}();yt.isLegacyArguments=xt,kt.exports=dt?yt:xt},{"call-bind/callBound":92,"has-tostringtag/shams":353}],366:[function(rt,kt,Ct){kt.exports=function(vt){return vt!=null&&(St(vt)||pt(vt)||!!vt._isBuffer)};function St(vt){return!!vt.constructor&&typeof vt.constructor.isBuffer=="function"&&vt.constructor.isBuffer(vt)}function pt(vt){return typeof vt.readFloatLE=="function"&&typeof vt.slice=="function"&&St(vt.slice(0,0))}},{}],367:[function(rt,kt,Ct){"use strict";var St=Function.prototype.toString,pt=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,vt,yt;if(typeof pt=="function"&&typeof Object.defineProperty=="function")try{vt=Object.defineProperty({},"length",{get:function(){throw yt}}),yt={},pt(function(){throw 42},null,vt)}catch(_t){_t!==yt&&(pt=null)}else pt=null;var xt=/^\s*class\b/,dt=function(Mt){try{var jt=St.call(Mt);return xt.test(jt)}catch(Lt){return!1}},ft=function(Mt){try{return dt(Mt)?!1:(St.call(Mt),!0)}catch(jt){return!1}},ct=Object.prototype.toString,lt="[object Object]",E="[object Function]",z="[object GeneratorFunction]",ot="[object HTMLAllCollection]",it="[object HTML document.all class]",at="[object HTMLCollection]",ut=typeof Symbol=="function"&&!!Symbol.toStringTag,wt=!(0 in[,]),Et=function(){return!1};if(typeof document=="object"){var At=document.all;ct.call(At)===ct.call(document.all)&&(Et=function(Mt){if((wt||!Mt)&&(typeof Mt=="undefined"||typeof Mt=="object"))try{var jt=ct.call(Mt);return(jt===ot||jt===it||jt===at||jt===lt)&&Mt("")==null}catch(Lt){}return!1})}kt.exports=pt?function(Mt){if(Et(Mt))return!0;if(!Mt||typeof Mt!="function"&&typeof Mt!="object")return!1;try{pt(Mt,null,vt)}catch(jt){if(jt!==yt)return!1}return!dt(Mt)&&ft(Mt)}:function(Mt){if(Et(Mt))return!0;if(!Mt||typeof Mt!="function"&&typeof Mt!="object")return!1;if(ut)return ft(Mt);if(dt(Mt))return!1;var jt=ct.call(Mt);return jt!==E&&jt!==z&&!/^\[object HTML/.test(jt)?!1:ft(Mt)}},{}],368:[function(rt,kt,Ct){"use strict";var St=Object.prototype.toString,pt=Function.prototype.toString,vt=/^\s*(?:function)?\*/,yt=rt("has-tostringtag/shams")(),xt=Object.getPrototypeOf,dt=function(){if(!yt)return!1;try{return Function("return function*() {}")()}catch(ct){}},ft;kt.exports=function(lt){if(typeof lt!="function")return!1;if(vt.test(pt.call(lt)))return!0;if(!yt){var E=St.call(lt);return E==="[object GeneratorFunction]"}if(!xt)return!1;if(typeof ft=="undefined"){var z=dt();ft=z?xt(z):!1}return xt(lt)===ft}},{"has-tostringtag/shams":353}],369:[function(rt,kt,Ct){"use strict";var St=rt("which-typed-array");kt.exports=function(vt){return!!St(vt)}},{"which-typed-array":420}],370:[function(rt,kt,Ct){var St={}.toString;kt.exports=Array.isArray||function(pt){return St.call(pt)=="[object Array]"}},{}],371:[function(rt,kt,Ct){(function(St){(function(){(function(pt,vt){typeof Ct=="object"&&typeof kt!="undefined"?kt.exports=vt(pt):typeof Rt=="function"&&Rt.amd?Rt(vt):vt(pt)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof St!="undefined"?St:this,function(pt){"use strict";pt=pt||{};var vt=pt.Base64,yt="2.6.4",xt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",dt=function(ae){for(var ve={},Kt=0,re=ae.length;Kt>>6)+ft(128|ve&63):ft(224|ve>>>12&15)+ft(128|ve>>>6&63)+ft(128|ve&63)}else{var ve=65536+(ae.charCodeAt(0)-55296)*1024+(ae.charCodeAt(1)-56320);return ft(240|ve>>>18&7)+ft(128|ve>>>12&63)+ft(128|ve>>>6&63)+ft(128|ve&63)}},lt=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,E=function(ae){return ae.replace(lt,ct)},z=function(ae){var ve=[0,2,1][ae.length%3],Kt=ae.charCodeAt(0)<<16|(ae.length>1?ae.charCodeAt(1):0)<<8|(ae.length>2?ae.charCodeAt(2):0),re=[xt.charAt(Kt>>>18),xt.charAt(Kt>>>12&63),ve>=2?"=":xt.charAt(Kt>>>6&63),ve>=1?"=":xt.charAt(Kt&63)];return re.join("")},ot=pt.btoa&&typeof pt.btoa=="function"?function(ae){return pt.btoa(ae)}:function(ae){if(ae.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return ae.replace(/[\s\S]{1,3}/g,z)},it=function(ae){return ot(E(String(ae)))},at=function(ae){return ae.replace(/[+\/]/g,function(ve){return ve=="+"?"-":"_"}).replace(/=/g,"")},ut=function(ae,ve){return ve?at(it(ae)):it(ae)},wt=function(ae){return ut(ae,!0)},Et;pt.Uint8Array&&(Et=function(ae,ve){for(var Kt="",re=0,we=ae.length;re>>18)+xt.charAt(fe>>>12&63)+(typeof ke!="undefined"?xt.charAt(fe>>>6&63):"=")+(typeof me!="undefined"?xt.charAt(fe&63):"=")}return ve?at(Kt):Kt});var At=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,_t=function(ae){switch(ae.length){case 4:var ve=(7&ae.charCodeAt(0))<<18|(63&ae.charCodeAt(1))<<12|(63&ae.charCodeAt(2))<<6|63&ae.charCodeAt(3),Kt=ve-65536;return ft((Kt>>>10)+55296)+ft((Kt&1023)+56320);case 3:return ft((15&ae.charCodeAt(0))<<12|(63&ae.charCodeAt(1))<<6|63&ae.charCodeAt(2));default:return ft((31&ae.charCodeAt(0))<<6|63&ae.charCodeAt(1))}},Mt=function(ae){return ae.replace(At,_t)},jt=function(ae){var ve=ae.length,Kt=ve%4,re=(ve>0?dt[ae.charAt(0)]<<18:0)|(ve>1?dt[ae.charAt(1)]<<12:0)|(ve>2?dt[ae.charAt(2)]<<6:0)|(ve>3?dt[ae.charAt(3)]:0),we=[ft(re>>>16),ft(re>>>8&255),ft(re&255)];return we.length-=[0,0,2,1][Kt],we.join("")},Lt=pt.atob&&typeof pt.atob=="function"?function(ae){return pt.atob(ae)}:function(ae){return ae.replace(/\S{1,4}/g,jt)},It=function(ae){return Lt(String(ae).replace(/[^A-Za-z0-9\+\/]/g,""))},Ut=function(ae){return Mt(Lt(ae))},Xt=function(ae){return String(ae).replace(/[-_]/g,function(ve){return ve=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Gt=function(ae){return Ut(Xt(ae))},Yt;pt.Uint8Array&&(Yt=function(ae){return Uint8Array.from(It(Xt(ae)),function(ve){return ve.charCodeAt(0)})});var Ht=function(){var ae=pt.Base64;return pt.Base64=vt,ae};if(pt.Base64={VERSION:yt,atob:It,btoa:ot,fromBase64:Gt,toBase64:ut,utob:E,encode:ut,encodeURI:wt,btou:Mt,decode:Gt,noConflict:Ht,fromUint8Array:Et,toUint8Array:Yt},typeof Object.defineProperty=="function"){var ne=function(ae){return{value:ae,enumerable:!1,writable:!0,configurable:!0}};pt.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",ne(function(){return Gt(this)})),Object.defineProperty(String.prototype,"toBase64",ne(function(ae){return ut(this,ae)})),Object.defineProperty(String.prototype,"toBase64URI",ne(function(){return ut(this,!0)}))}}return pt.Meteor&&(Base64=pt.Base64),typeof kt!="undefined"&&kt.exports?kt.exports.Base64=pt.Base64:typeof Rt=="function"&&Rt.amd&&Rt([],function(){return pt.Base64}),{Base64:pt.Base64}})}).call(this)}).call(this,typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],372:[function(rt,kt,Ct){"use strict";kt.exports=pt;var St=Object.prototype.hasOwnProperty;function pt(vt,yt,xt){if(!vt)throw new TypeError("argument dest is required");if(!yt)throw new TypeError("argument src is required");return xt===void 0&&(xt=!0),Object.getOwnPropertyNames(yt).forEach(function(ft){if(!(!xt&&St.call(vt,ft))){var ct=Object.getOwnPropertyDescriptor(yt,ft);Object.defineProperty(vt,ft,ct)}}),vt}},{}],373:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.array.map.js"),rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.replace.js"),rt("core-js/modules/es.regexp.constructor.js"),rt("core-js/modules/es.regexp.to-string.js");function St(){this._types=Object.create(null),this._extensions=Object.create(null);for(var pt=0;pt0)return ft(z);if(it==="number"&&isFinite(z))return ot.long?lt(z):ct(z);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(z))};function ft(z){if(z=String(z),!(z.length>100)){var ot=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(z);if(ot){var it=parseFloat(ot[1]),at=(ot[2]||"ms").toLowerCase();switch(at){case"years":case"year":case"yrs":case"yr":case"y":return it*dt;case"weeks":case"week":case"w":return it*xt;case"days":case"day":case"d":return it*yt;case"hours":case"hour":case"hrs":case"hr":case"h":return it*vt;case"minutes":case"minute":case"mins":case"min":case"m":return it*pt;case"seconds":case"second":case"secs":case"sec":case"s":return it*St;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return it;default:return}}}}function ct(z){var ot=Math.abs(z);return ot>=yt?Math.round(z/yt)+"d":ot>=vt?Math.round(z/vt)+"h":ot>=pt?Math.round(z/pt)+"m":ot>=St?Math.round(z/St)+"s":z+"ms"}function lt(z){var ot=Math.abs(z);return ot>=yt?E(z,ot,yt,"day"):ot>=vt?E(z,ot,vt,"hour"):ot>=pt?E(z,ot,pt,"minute"):ot>=St?E(z,ot,St,"second"):z+" ms"}function E(z,ot,it,at){var ut=ot>=it*1.5;return Math.round(z/it)+" "+at+(ut?"s":"")}},{}],377:[function(rt,kt,Ct){"use strict";var St=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable;function yt(dt){if(dt==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(dt)}function xt(){try{if(!Object.assign)return!1;var dt=new String("abc");if(dt[5]="de",Object.getOwnPropertyNames(dt)[0]==="5")return!1;for(var ft={},ct=0;ct<10;ct++)ft["_"+String.fromCharCode(ct)]=ct;var lt=Object.getOwnPropertyNames(ft).map(function(z){return ft[z]});if(lt.join("")!=="0123456789")return!1;var E={};return"abcdefghijklmnopqrst".split("").forEach(function(z){E[z]=z}),Object.keys(Object.assign({},E)).join("")==="abcdefghijklmnopqrst"}catch(z){return!1}}kt.exports=xt()?Object.assign:function(dt,ft){for(var ct,lt=yt(dt),E,z=1;z2){var at=ct.lastIndexOf("/");if(at!==ct.length-1){at===-1?(ct="",lt=0):(ct=ct.slice(0,at),lt=ct.length-1-ct.lastIndexOf("/")),E=it,z=0;continue}}else if(ct.length===2||ct.length===1){ct="",lt=0,E=it,z=0;continue}}ft&&(ct.length>0?ct+="/..":ct="..",lt=2)}else ct.length>0?ct+="/"+dt.slice(E+1,it):ct=dt.slice(E+1,it),lt=it-E-1;E=it,z=0}else ot===46&&z!==-1?++z:z=-1}return ct}function yt(dt,ft){var ct=ft.dir||ft.root,lt=ft.base||(ft.name||"")+(ft.ext||"");return ct?ct===ft.root?ct+lt:ct+dt+lt:lt}var xt={resolve:function(){for(var ft="",ct=!1,lt,E=arguments.length-1;E>=-1&&!ct;E--){var z;E>=0?z=arguments[E]:(lt===void 0&&(lt=St.cwd()),z=lt),pt(z),z.length!==0&&(ft=z+"/"+ft,ct=z.charCodeAt(0)===47)}return ft=vt(ft,!ct),ct?ft.length>0?"/"+ft:"/":ft.length>0?ft:"."},normalize:function(ft){if(pt(ft),ft.length===0)return".";var ct=ft.charCodeAt(0)===47,lt=ft.charCodeAt(ft.length-1)===47;return ft=vt(ft,!ct),ft.length===0&&!ct&&(ft="."),ft.length>0&<&&(ft+="/"),ct?"/"+ft:ft},isAbsolute:function(ft){return pt(ft),ft.length>0&&ft.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var ft,ct=0;ct0&&(ft===void 0?ft=lt:ft+="/"+lt)}return ft===void 0?".":xt.normalize(ft)},relative:function(ft,ct){if(pt(ft),pt(ct),ft===ct||(ft=xt.resolve(ft),ct=xt.resolve(ct),ft===ct))return"";for(var lt=1;ltut){if(ct.charCodeAt(ot+Et)===47)return ct.slice(ot+Et+1);if(Et===0)return ct.slice(ot+Et)}else z>ut&&(ft.charCodeAt(lt+Et)===47?wt=Et:Et===0&&(wt=0));break}var At=ft.charCodeAt(lt+Et),_t=ct.charCodeAt(ot+Et);if(At!==_t)break;At===47&&(wt=Et)}var Mt="";for(Et=lt+wt+1;Et<=E;++Et)(Et===E||ft.charCodeAt(Et)===47)&&(Mt.length===0?Mt+="..":Mt+="/..");return Mt.length>0?Mt+ct.slice(ot+wt):(ot+=wt,ct.charCodeAt(ot)===47&&++ot,ct.slice(ot))},_makeLong:function(ft){return ft},dirname:function(ft){if(pt(ft),ft.length===0)return".";for(var ct=ft.charCodeAt(0),lt=ct===47,E=-1,z=!0,ot=ft.length-1;ot>=1;--ot)if(ct=ft.charCodeAt(ot),ct===47){if(!z){E=ot;break}}else z=!1;return E===-1?lt?"/":".":lt&&E===1?"//":ft.slice(0,E)},basename:function(ft,ct){if(ct!==void 0&&typeof ct!="string")throw new TypeError('"ext" argument must be a string');pt(ft);var lt=0,E=-1,z=!0,ot;if(ct!==void 0&&ct.length>0&&ct.length<=ft.length){if(ct.length===ft.length&&ct===ft)return"";var it=ct.length-1,at=-1;for(ot=ft.length-1;ot>=0;--ot){var ut=ft.charCodeAt(ot);if(ut===47){if(!z){lt=ot+1;break}}else at===-1&&(z=!1,at=ot+1),it>=0&&(ut===ct.charCodeAt(it)?--it===-1&&(E=ot):(it=-1,E=at))}return lt===E?E=at:E===-1&&(E=ft.length),ft.slice(lt,E)}else{for(ot=ft.length-1;ot>=0;--ot)if(ft.charCodeAt(ot)===47){if(!z){lt=ot+1;break}}else E===-1&&(z=!1,E=ot+1);return E===-1?"":ft.slice(lt,E)}},extname:function(ft){pt(ft);for(var ct=-1,lt=0,E=-1,z=!0,ot=0,it=ft.length-1;it>=0;--it){var at=ft.charCodeAt(it);if(at===47){if(!z){lt=it+1;break}continue}E===-1&&(z=!1,E=it+1),at===46?ct===-1?ct=it:ot!==1&&(ot=1):ct!==-1&&(ot=-1)}return ct===-1||E===-1||ot===0||ot===1&&ct===E-1&&ct===lt+1?"":ft.slice(ct,E)},format:function(ft){if(ft===null||typeof ft!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof ft);return yt("/",ft)},parse:function(ft){pt(ft);var ct={root:"",dir:"",base:"",ext:"",name:""};if(ft.length===0)return ct;var lt=ft.charCodeAt(0),E=lt===47,z;E?(ct.root="/",z=1):z=0;for(var ot=-1,it=0,at=-1,ut=!0,wt=ft.length-1,Et=0;wt>=z;--wt){if(lt=ft.charCodeAt(wt),lt===47){if(!ut){it=wt+1;break}continue}at===-1&&(ut=!1,at=wt+1),lt===46?ot===-1?ot=wt:Et!==1&&(Et=1):ot!==-1&&(Et=-1)}return ot===-1||at===-1||Et===0||Et===1&&ot===at-1&&ot===it+1?at!==-1&&(it===0&&E?ct.base=ct.name=ft.slice(1,at):ct.base=ct.name=ft.slice(it,at)):(it===0&&E?(ct.name=ft.slice(1,ot),ct.base=ft.slice(1,at)):(ct.name=ft.slice(it,ot),ct.base=ft.slice(it,at)),ct.ext=ft.slice(ot,at)),it>0?ct.dir=ft.slice(0,it-1):E&&(ct.dir="/"),ct},sep:"/",delimiter:":",win32:null,posix:null};xt.posix=xt,kt.exports=xt}).call(this)}).call(this,rt("_process"))},{_process:467}],379:[function(rt,kt,Ct){(function(St){(function(){(function(){"use strict";var pt={function:!0,object:!0},vt=pt[typeof window]&&window||this,yt=vt,xt=pt[typeof Ct]&&Ct,dt=pt[typeof kt]&&kt&&!kt.nodeType&&kt,ft=xt&&dt&&typeof St=="object"&&St;ft&&(ft.global===ft||ft.window===ft||ft.self===ft)&&(vt=ft);var ct=Math.pow(2,53)-1,lt=/\bOpera/,E=this,z=Object.prototype,ot=z.hasOwnProperty,it=z.toString;function at(Gt){return Gt=String(Gt),Gt.charAt(0).toUpperCase()+Gt.slice(1)}function ut(Gt,Yt,Ht){var ne={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return Yt&&Ht&&/^Win/i.test(Gt)&&!/^Windows Phone /i.test(Gt)&&(ne=ne[/[\d.]+$/.exec(Gt)])&&(Gt="Windows "+ne),Gt=String(Gt),Yt&&Ht&&(Gt=Gt.replace(RegExp(Yt,"i"),Ht)),Gt=Et(Gt.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),Gt}function wt(Gt,Yt){var Ht=-1,ne=Gt?Gt.length:0;if(typeof ne=="number"&&ne>-1&&ne<=ct)for(;++Ht3&&"WebKit"||/\bOpera\b/.test($t)&&(/\bOPR\b/.test(Gt)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(Gt)&&!/^(?:Trident|EdgeHTML)$/.test(ue)&&"WebKit"||!ue&&/\bMSIE\b/i.test(Gt)&&(Qt=="Mac OS"?"Tasman":"Trident")||ue=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test($t)&&"NetFront")&&(ue=[le]),$t=="IE"&&(le=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(Gt)||0)[1])?($t+=" Mobile",Qt="Windows Phone "+(/\+$/.test(le)?le:le+".x"),se.unshift("desktop mode")):/\bWPDesktop\b/i.test(Gt)?($t="IE Mobile",Qt="Windows Phone 8.x",se.unshift("desktop mode"),Be||(Be=(/\brv:([\d.]+)/.exec(Gt)||0)[1])):$t!="IE"&&ue=="Trident"&&(le=/\brv:([\d.]+)/.exec(Gt))&&($t&&se.push("identifying as "+$t+(Be?" "+Be:"")),$t="IE",Be=le[1]),Xe){if(Mt(Yt,"global"))if(fe&&(le=fe.lang.System,Ne=le.getProperty("os.arch"),Qt=Qt||le.getProperty("os.name")+" "+le.getProperty("os.version")),pe){try{Be=Yt.require("ringo/engine").version.join("."),$t="RingoJS"}catch(Ze){(le=Yt.system)&&le.global.system==Yt.system&&($t="Narwhal",Qt||(Qt=le[0].os||null))}$t||($t="Rhino")}else typeof Yt.process=="object"&&!Yt.process.browser&&(le=Yt.process)&&(typeof le.versions=="object"&&(typeof le.versions.electron=="string"?(se.push("Node "+le.versions.node),$t="Electron",Be=le.versions.electron):typeof le.versions.nw=="string"&&(se.push("Chromium "+Be,"Node "+le.versions.node),$t="NW.js",Be=le.versions.nw)),$t||($t="Node.js",Ne=le.arch,Qt=le.platform,Be=/[\d.]+/.exec(le.version),Be=Be?Be[0]:null));else _t(le=Yt.runtime)==we?($t="Adobe AIR",Qt=le.flash.system.Capabilities.os):_t(le=Yt.phantom)==me?($t="PhantomJS",Be=(le=le.version||null)&&le.major+"."+le.minor+"."+le.patch):typeof He.documentMode=="number"&&(le=/\bTrident\/(\d+)/i.exec(Gt))?(Be=[Be,He.documentMode],(le=+le[1]+4)!=Be[1]&&(se.push("IE "+Be[1]+" mode"),ue&&(ue[1]=""),Be[1]=le),Be=$t=="IE"?String(Be[1].toFixed(1)):Be[0]):typeof He.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test($t)&&(se.push("masking as "+$t+" "+Be),$t="IE",Be="11.0",ue=["Trident"],Qt="Windows");Qt=Qt&&Et(Qt)}if(Be&&(le=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(Be)||/(?:alpha|beta)(?: ?\d)?/i.exec(Gt+";"+(Xe&&ne.appMinorVersion))||/\bMinefield\b/i.test(Gt)&&"a")&&(Ae=/b/i.test(le)?"beta":"alpha",Be=Be.replace(RegExp(le+"\\+?$"),"")+(Ae=="beta"?je:_e)+(/\d+\+?/.exec(le)||"")),$t=="Fennec"||$t=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(Qt))$t="Firefox Mobile";else if($t=="Maxthon"&&Be)Be=Be.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(he))he=="Xbox 360"&&(Qt=null),he=="Xbox 360"&&/\bIEMobile\b/.test(Gt)&&se.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test($t)||$t&&!he&&!/Browser|Mobi/.test($t))&&(Qt=="Windows CE"||/Mobi/i.test(Gt)))$t+=" Mobile";else if($t=="IE"&&Xe)try{Yt.external===null&&se.unshift("platform preview")}catch(Ze){se.unshift("embedded")}else(/\bBlackBerry\b/.test(he)||/\bBB10\b/.test(Gt))&&(le=(RegExp(he.replace(/ +/g," *")+"/([.\\d]+)","i").exec(Gt)||0)[1]||Be)?(le=[le,/BB10/.test(Gt)],Qt=(le[1]?(he=null,ye="BlackBerry"):"Device Software")+" "+le[0],Be=null):this!=At&&he!="Wii"&&(Xe&&Se||/Opera/.test($t)&&/\b(?:MSIE|Firefox)\b/i.test(Gt)||$t=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(Qt)||$t=="IE"&&(Qt&&!/^Win/.test(Qt)&&Be>5.5||/\bWindows XP\b/.test(Qt)&&Be>8||Be==8&&!/\bTrident\b/.test(Gt)))&&!lt.test(le=Ut.call(At,Gt.replace(lt,"")+";"))&&le.name&&(le="ing as "+le.name+((le=le.version)?" "+le:""),lt.test($t)?(/\bIE\b/.test(le)&&Qt=="Mac OS"&&(Qt=null),le="identify"+le):(le="mask"+le,xe?$t=Et(xe.replace(/([a-z])([A-Z])/g,"$1 $2")):$t="Opera",/\bIE\b/.test(le)&&(Qt=null),Xe||(Be=null)),ue=["Presto"],se.push(le));(le=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(Gt)||0)[1])&&(le=[parseFloat(le.replace(/\.(\d)$/,".0$1")),le],$t=="Safari"&&le[1].slice(-1)=="+"?($t="WebKit Nightly",Ae="alpha",Be=le[1].slice(0,-1)):(Be==le[1]||Be==(le[2]=(/\bSafari\/([\d.]+\+?)/i.exec(Gt)||0)[1]))&&(Be=null),le[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(Gt)||0)[1],le[0]==537.36&&le[2]==537.36&&parseFloat(le[1])>=28&&ue=="WebKit"&&(ue=["Blink"]),!Xe||!Kt&&!le[1]?(ue&&(ue[1]="like Safari"),le=(le=le[0],le<400?1:le<500?2:le<526?3:le<533?4:le<534?"4+":le<535?5:le<537?6:le<538?7:le<601?8:le<602?9:le<604?10:le<606?11:le<608?12:"12")):(ue&&(ue[1]="like Chrome"),le=le[1]||(le=le[0],le<530?1:le<532?2:le<532.05?3:le<533?4:le<534.03?5:le<534.07?6:le<534.1?7:le<534.13?8:le<534.16?9:le<534.24?10:le<534.3?11:le<535.01?12:le<535.02?"13+":le<535.07?15:le<535.11?16:le<535.19?17:le<536.05?18:le<536.1?19:le<537.01?20:le<537.11?"21+":le<537.13?23:le<537.18?24:le<537.24?25:le<537.36?26:ue!="Blink"?"27":"28")),ue&&(ue[1]+=" "+(le+=typeof le=="number"?".x":/[.+]/.test(le)?"":"+")),$t=="Safari"&&(!Be||parseInt(Be)>45)?Be=le:$t=="Chrome"&&/\bHeadlessChrome/i.test(Gt)&&se.unshift("headless")),$t=="Opera"&&(le=/\bzbov|zvav$/.exec(Qt))?($t+=" ",se.unshift("desktop mode"),le=="zvav"?($t+="Mini",Be=null):$t+="Mobile",Qt=Qt.replace(RegExp(" *"+le+"$"),"")):$t=="Safari"&&/\bChrome\b/.exec(ue&&ue[1])?(se.unshift("desktop mode"),$t="Chrome Mobile",Be=null,/\bOS X\b/.test(Qt)?(ye="Apple",Qt="iOS 4.3+"):Qt=null):/\bSRWare Iron\b/.test($t)&&!Be&&(Be=Ie("Chrome")),Be&&Be.indexOf(le=/[\d.]+$/.exec(Qt))==0&&Gt.indexOf("/"+le+"-")>-1&&(Qt=It(Qt.replace(le,""))),Qt&&Qt.indexOf($t)!=-1&&!RegExp($t+" OS").test(Qt)&&(Qt=Qt.replace(RegExp(" *"+jt($t)+" *"),"")),ue&&!/\b(?:Avant|Nook)\b/.test($t)&&(/Browser|Lunascape|Maxthon/.test($t)||$t!="Safari"&&/^iOS/.test(Qt)&&/\bSafari\b/.test(ue[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test($t)&&ue[1])&&(le=ue[ue.length-1])&&se.push(le),se.length&&(se=["("+se.join("; ")+")"]),ye&&he&&he.indexOf(ye)<0&&se.push("on "+ye),he&&se.push((/^on /.test(se[se.length-1])?"":"on ")+he),Qt&&(le=/ ([\d.+]+)$/.exec(Qt),Te=le&&Qt.charAt(Qt.length-le[0].length-1)=="/",Qt={architecture:32,family:le&&!Te?Qt.replace(le[0],""):Qt,version:le?le[1]:null,toString:function(){var Ze=this.version;return this.family+(Ze&&!Te?" "+Ze:"")+(this.architecture==64?" 64-bit":"")}}),(le=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Ne))&&!/\bi686\b/i.test(Ne)?(Qt&&(Qt.architecture=64,Qt.family=Qt.family.replace(RegExp(" *"+le),"")),$t&&(/\bWOW64\b/i.test(Gt)||Xe&&/\w(?:86|32)$/.test(ne.cpuClass||ne.platform)&&!/\bWin64; x64\b/i.test(Gt))&&se.unshift("32-bit")):Qt&&/^OS X/.test(Qt.family)&&$t=="Chrome"&&parseFloat(Be)>=39&&(Qt.architecture=64),Gt||(Gt=null);var Je={};return Je.description=Gt,Je.layout=ue&&ue[0],Je.manufacturer=ye,Je.name=$t,Je.prerelease=Ae,Je.product=he,Je.ua=Gt,Je.version=$t&&Be,Je.os=Qt||{architecture:null,family:null,version:null,toString:function(){return"null"}},Je.parse=Ut,Je.toString=Ue,Je.version&&se.unshift(Be),Je.name&&se.unshift($t),Qt&&$t&&!(Qt==String(Qt).split(" ")[0]&&(Qt==$t.split(" ")[0]||he))&&se.push(he?"("+Qt+")":"on "+Qt),se.length&&(Je.description=se.join(" ")),Je}var Xt=Ut();typeof Rt=="function"&&typeof Rt.amd=="object"&&Rt.amd?(vt.platform=Xt,Rt(function(){return Xt})):xt&&dt?At(Xt,function(Gt,Yt){xt[Yt]=Gt}):vt.platform=Xt}).call(this)}).call(this)}).call(this,typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],380:[function(rt,kt,Ct){(function(St){(function(){"use strict";typeof St=="undefined"||!St.version||St.version.indexOf("v0.")===0||St.version.indexOf("v1.")===0&&St.version.indexOf("v1.8.")!==0?kt.exports={nextTick:pt}:kt.exports=St;function pt(vt,yt,xt,dt){if(typeof vt!="function")throw new TypeError('"callback" argument must be a function');var ft=arguments.length,ct,lt;switch(ft){case 0:case 1:return St.nextTick(vt);case 2:return St.nextTick(function(){vt.call(null,yt)});case 3:return St.nextTick(function(){vt.call(null,yt,xt)});case 4:return St.nextTick(function(){vt.call(null,yt,xt,dt)});default:for(ct=new Array(ft-1),lt=0;lt1)for(var At=1;At= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Mt=ct-lt,jt=Math.floor,Lt=String.fromCharCode,It;function Ut(ke){throw new RangeError(_t[ke])}function Xt(ke,me){for(var fe=ke.length,pe=[];fe--;)pe[fe]=me(ke[fe]);return pe}function Gt(ke,me){var fe=ke.split("@"),pe="";fe.length>1&&(pe=fe[0]+"@",ke=fe[1]),ke=ke.replace(At,".");var _e=ke.split("."),je=Xt(_e,me).join(".");return pe+je}function Yt(ke){for(var me=[],fe=0,pe=ke.length,_e,je;fe=55296&&_e<=56319&&fe65535&&(me-=65536,fe+=Lt(me>>>10&1023|55296),me=56320|me&1023),fe+=Lt(me),fe}).join("")}function ne(ke){return ke-48<10?ke-22:ke-65<26?ke-65:ke-97<26?ke-97:ct}function ae(ke,me){return ke+22+75*(ke<26)-((me!=0)<<5)}function ve(ke,me,fe){var pe=0;for(ke=fe?jt(ke/ot):ke>>1,ke+=jt(ke/me);ke>Mt*E>>1;pe+=ct)ke=jt(ke/Mt);return jt(pe+(Mt+1)*ke/(ke+z))}function Kt(ke){var me=[],fe=ke.length,pe,_e=0,je=at,He=it,Se,xe,le,Ne,se,Ae,Xe,Be,Te;for(Se=ke.lastIndexOf(ut),Se<0&&(Se=0),xe=0;xe=128&&Ut("not-basic"),me.push(ke.charCodeAt(xe));for(le=Se>0?Se+1:0;le=fe&&Ut("invalid-input"),Xe=ne(ke.charCodeAt(le++)),(Xe>=ct||Xe>jt((ft-_e)/se))&&Ut("overflow"),_e+=Xe*se,Be=Ae<=He?lt:Ae>=He+E?E:Ae-He,!(Xejt(ft/Te)&&Ut("overflow"),se*=Te;pe=me.length+1,He=ve(_e-Ne,pe,Ne==0),jt(_e/pe)>ft-je&&Ut("overflow"),je+=jt(_e/pe),_e%=pe,me.splice(_e++,0,je)}return Ht(me)}function re(ke){var me,fe,pe,_e,je,He,Se,xe,le,Ne,se,Ae=[],Xe,Be,Te,ue;for(ke=Yt(ke),Xe=ke.length,me=at,fe=0,je=it,He=0;He=me&&sejt((ft-fe)/Be)&&Ut("overflow"),fe+=(Se-me)*Be,me=Se,He=0;Heft&&Ut("overflow"),se==me){for(xe=fe,le=ct;Ne=le<=je?lt:le>=je+E?E:le-je,!(xe0&&E>lt&&(E=lt);for(var z=0;z=0?(at=ot.substr(0,it),ut=ot.substr(it+1)):(at=ot,ut=""),wt=decodeURIComponent(at),Et=decodeURIComponent(ut),St(ft,wt)?pt(ft[wt])?ft[wt].push(Et):ft[wt]=[ft[wt],Et]:ft[wt]=Et}return ft};var pt=Array.isArray||function(vt){return Object.prototype.toString.call(vt)==="[object Array]"}},{}],384:[function(rt,kt,Ct){"use strict";var St=function(xt){switch(typeof xt){case"string":return xt;case"boolean":return xt?"true":"false";case"number":return isFinite(xt)?xt:"";default:return""}};kt.exports=function(xt,dt,ft,ct){return dt=dt||"&",ft=ft||"=",xt===null&&(xt=void 0),typeof xt=="object"?vt(yt(xt),function(lt){var E=encodeURIComponent(St(lt))+ft;return pt(xt[lt])?vt(xt[lt],function(z){return E+encodeURIComponent(St(z))}).join(dt):E+encodeURIComponent(St(xt[lt]))}).join(dt):ct?encodeURIComponent(St(ct))+ft+encodeURIComponent(St(xt)):""};var pt=Array.isArray||function(xt){return Object.prototype.toString.call(xt)==="[object Array]"};function vt(xt,dt){if(xt.map)return xt.map(dt);for(var ft=[],ct=0;ct0?(typeof Ae!="string"&&!ue.objectMode&&Object.getPrototypeOf(Ae)!==lt.prototype&&(Ae=z(Ae)),Be?ue.endEmitted?se.emit("error",new Error("stream.unshift() after end event")):Ut(se,ue,Ae,!0):ue.ended?se.emit("error",new Error("stream.push() after EOF")):(ue.reading=!1,ue.decoder&&!Xe?(Ae=ue.decoder.write(Ae),ue.objectMode||Ae.length!==0?Ut(se,ue,Ae,!1):re(se,ue)):Ut(se,ue,Ae,!1))):Be||(ue.reading=!1)}return Gt(ue)}function Ut(se,Ae,Xe,Be){Ae.flowing&&Ae.length===0&&!Ae.sync?(se.emit("data",Xe),se.read(0)):(Ae.length+=Ae.objectMode?1:Xe.length,Be?Ae.buffer.unshift(Xe):Ae.buffer.push(Xe),Ae.needReadable&&ve(se)),re(se,Ae)}function Xt(se,Ae){var Xe;return!ot(Ae)&&typeof Ae!="string"&&Ae!==void 0&&!se.objectMode&&(Xe=new TypeError("Invalid non-string/buffer chunk")),Xe}function Gt(se){return!se.ended&&(se.needReadable||se.length=Yt?se=Yt:(se--,se|=se>>>1,se|=se>>>2,se|=se>>>4,se|=se>>>8,se|=se>>>16,se++),se}function ne(se,Ae){return se<=0||Ae.length===0&&Ae.ended?0:Ae.objectMode?1:se!==se?Ae.flowing&&Ae.length?Ae.buffer.head.data.length:Ae.length:(se>Ae.highWaterMark&&(Ae.highWaterMark=Ht(se)),se<=Ae.length?se:Ae.ended?Ae.length:(Ae.needReadable=!0,0))}Lt.prototype.read=function(se){ut("read",se),se=parseInt(se,10);var Ae=this._readableState,Xe=se;if(se!==0&&(Ae.emittedReadable=!1),se===0&&Ae.needReadable&&(Ae.length>=Ae.highWaterMark||Ae.ended))return ut("read: emitReadable",Ae.length,Ae.ended),Ae.length===0&&Ae.ended?xe(this):ve(this),null;if(se=ne(se,Ae),se===0&&Ae.ended)return Ae.length===0&&xe(this),null;var Be=Ae.needReadable;ut("need readable",Be),(Ae.length===0||Ae.length-se0?Te=_e(se,Ae):Te=null,Te===null?(Ae.needReadable=!0,se=0):Ae.length-=se,Ae.length===0&&(Ae.ended||(Ae.needReadable=!0),Xe!==se&&Ae.ended&&xe(this)),Te!==null&&this.emit("data",Te),Te};function ae(se,Ae){if(!Ae.ended){if(Ae.decoder){var Xe=Ae.decoder.end();Xe&&Xe.length&&(Ae.buffer.push(Xe),Ae.length+=Ae.objectMode?1:Xe.length)}Ae.ended=!0,ve(se)}}function ve(se){var Ae=se._readableState;Ae.needReadable=!1,Ae.emittedReadable||(ut("emitReadable",Ae.flowing),Ae.emittedReadable=!0,Ae.sync?vt.nextTick(Kt,se):Kt(se))}function Kt(se){ut("emit readable"),se.emit("readable"),pe(se)}function re(se,Ae){Ae.readingMore||(Ae.readingMore=!0,vt.nextTick(we,se,Ae))}function we(se,Ae){for(var Xe=Ae.length;!Ae.reading&&!Ae.flowing&&!Ae.ended&&Ae.length1&&Ne(Be.pipes,se)!==-1)&&!Qt&&(ut("false write response, pause",Xe._readableState.awaitDrain),Xe._readableState.awaitDrain++,Bt=!0),Xe.pause())}function ge(Je){ut("onerror",Je),Ue(),se.removeListener("error",ge),ft(se,"error")===0&&se.emit("error",Je)}Mt(se,"error",ge);function Jt(){se.removeListener("finish",Ie),Ue()}se.once("close",Jt);function Ie(){ut("onfinish"),se.removeListener("close",Jt),Ue()}se.once("finish",Ie);function Ue(){ut("unpipe"),Xe.unpipe(se)}return se.emit("pipe",Xe),Be.flowing||(ut("pipe resume"),Xe.resume()),se};function Me(se){return function(){var Ae=se._readableState;ut("pipeOnDrain",Ae.awaitDrain),Ae.awaitDrain&&Ae.awaitDrain--,Ae.awaitDrain===0&&ft(se,"data")&&(Ae.flowing=!0,pe(se))}}Lt.prototype.unpipe=function(se){var Ae=this._readableState,Xe={hasUnpiped:!1};if(Ae.pipesCount===0)return this;if(Ae.pipesCount===1)return se&&se!==Ae.pipes?this:(se||(se=Ae.pipes),Ae.pipes=null,Ae.pipesCount=0,Ae.flowing=!1,se&&se.emit("unpipe",this,Xe),this);if(!se){var Be=Ae.pipes,Te=Ae.pipesCount;Ae.pipes=null,Ae.pipesCount=0,Ae.flowing=!1;for(var ue=0;ue=Ae.length?(Ae.decoder?Xe=Ae.buffer.join(""):Ae.buffer.length===1?Xe=Ae.buffer.head.data:Xe=Ae.buffer.concat(Ae.length),Ae.buffer.clear()):Xe=je(se,Ae.buffer,Ae.decoder),Xe}function je(se,Ae,Xe){var Be;return seue.length?ue.length:se;if($t===ue.length?Te+=ue:Te+=ue.slice(0,se),se-=$t,se===0){$t===ue.length?(++Be,Xe.next?Ae.head=Xe.next:Ae.head=Ae.tail=null):(Ae.head=Xe,Xe.data=ue.slice($t));break}++Be}return Ae.length-=Be,Te}function Se(se,Ae){var Xe=lt.allocUnsafe(se),Be=Ae.head,Te=1;for(Be.data.copy(Xe),se-=Be.data.length;Be=Be.next;){var ue=Be.data,$t=se>ue.length?ue.length:se;if(ue.copy(Xe,Xe.length-se,0,$t),se-=$t,se===0){$t===ue.length?(++Te,Be.next?Ae.head=Be.next:Ae.head=Ae.tail=null):(Ae.head=Be,Be.data=ue.slice($t));break}++Te}return Ae.length-=Te,Xe}function xe(se){var Ae=se._readableState;if(Ae.length>0)throw new Error('"endReadable()" called on non-empty stream');Ae.endEmitted||(Ae.ended=!0,vt.nextTick(le,Ae,se))}function le(se,Ae){!se.endEmitted&&se.length===0&&(se.endEmitted=!0,Ae.readable=!1,Ae.emit("end"))}function Ne(se,Ae){for(var Xe=0,Be=se.length;Xe-1?vt:yt.nextTick,ct;Mt.WritableState=At;var lt=Object.create(rt("core-util-is"));lt.inherits=rt("inherits");var E={deprecate:rt("util-deprecate")},z=rt("./internal/streams/stream"),ot=rt("safe-buffer").Buffer,it=pt.Uint8Array||function(){};function at(fe){return ot.from(fe)}function ut(fe){return ot.isBuffer(fe)||fe instanceof it}var wt=rt("./internal/streams/destroy");lt.inherits(Mt,z);function Et(){}function At(fe,pe){ct=ct||rt("./_stream_duplex"),fe=fe||{};var _e=pe instanceof ct;this.objectMode=!!fe.objectMode,_e&&(this.objectMode=this.objectMode||!!fe.writableObjectMode);var je=fe.highWaterMark,He=fe.writableHighWaterMark,Se=this.objectMode?16:16*1024;je||je===0?this.highWaterMark=je:_e&&(He||He===0)?this.highWaterMark=He:this.highWaterMark=Se,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var xe=fe.decodeStrings===!1;this.decodeStrings=!xe,this.defaultEncoding=fe.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(le){Ht(pe,le)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new dt(this)}At.prototype.getBuffer=function(){for(var pe=this.bufferedRequest,_e=[];pe;)_e.push(pe),pe=pe.next;return _e},function(){try{Object.defineProperty(At.prototype,"buffer",{get:E.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(fe){}}();var _t;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(_t=Function.prototype[Symbol.hasInstance],Object.defineProperty(Mt,Symbol.hasInstance,{value:function(fe){return _t.call(this,fe)?!0:this!==Mt?!1:fe&&fe._writableState instanceof At}})):_t=function(fe){return fe instanceof this};function Mt(fe){if(ct=ct||rt("./_stream_duplex"),!_t.call(Mt,this)&&!(this instanceof ct))return new Mt(fe);this._writableState=new At(fe,this),this.writable=!0,fe&&(typeof fe.write=="function"&&(this._write=fe.write),typeof fe.writev=="function"&&(this._writev=fe.writev),typeof fe.destroy=="function"&&(this._destroy=fe.destroy),typeof fe.final=="function"&&(this._final=fe.final)),z.call(this)}Mt.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function jt(fe,pe){var _e=new Error("write after end");fe.emit("error",_e),yt.nextTick(pe,_e)}function Lt(fe,pe,_e,je){var He=!0,Se=!1;return _e===null?Se=new TypeError("May not write null values to stream"):typeof _e!="string"&&_e!==void 0&&!pe.objectMode&&(Se=new TypeError("Invalid non-string/buffer chunk")),Se&&(fe.emit("error",Se),yt.nextTick(je,Se),He=!1),He}Mt.prototype.write=function(fe,pe,_e){var je=this._writableState,He=!1,Se=!je.objectMode&&ut(fe);return Se&&!ot.isBuffer(fe)&&(fe=at(fe)),typeof pe=="function"&&(_e=pe,pe=null),Se?pe="buffer":pe||(pe=je.defaultEncoding),typeof _e!="function"&&(_e=Et),je.ended?jt(this,_e):(Se||Lt(this,je,fe,_e))&&(je.pendingcb++,He=Ut(this,je,Se,fe,pe,_e)),He},Mt.prototype.cork=function(){var fe=this._writableState;fe.corked++},Mt.prototype.uncork=function(){var fe=this._writableState;fe.corked&&(fe.corked--,!fe.writing&&!fe.corked&&!fe.finished&&!fe.bufferProcessing&&fe.bufferedRequest&&ve(this,fe))},Mt.prototype.setDefaultEncoding=function(pe){if(typeof pe=="string"&&(pe=pe.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((pe+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+pe);return this._writableState.defaultEncoding=pe,this};function It(fe,pe,_e){return!fe.objectMode&&fe.decodeStrings!==!1&&typeof pe=="string"&&(pe=ot.from(pe,_e)),pe}Object.defineProperty(Mt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Ut(fe,pe,_e,je,He,Se){if(!_e){var xe=It(pe,je,He);je!==xe&&(_e=!0,He="buffer",je=xe)}var le=pe.objectMode?1:je.length;pe.length+=le;var Ne=pe.length0?this.tail.next=ct:this.head=ct,this.tail=ct,++this.length},xt.prototype.unshift=function(ft){var ct={data:ft,next:this.head};this.length===0&&(this.tail=ct),this.head=ct,++this.length},xt.prototype.shift=function(){if(this.length!==0){var ft=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,ft}},xt.prototype.clear=function(){this.head=this.tail=null,this.length=0},xt.prototype.join=function(ft){if(this.length===0)return"";for(var ct=this.head,lt=""+ct.data;ct=ct.next;)lt+=ft+ct.data;return lt},xt.prototype.concat=function(ft){if(this.length===0)return pt.alloc(0);if(this.length===1)return this.head.data;for(var ct=pt.allocUnsafe(ft>>>0),lt=this.head,E=0;lt;)yt(lt.data,ct,E),E+=lt.data.length,lt=lt.next;return ct},xt}(),vt&&vt.inspect&&vt.inspect.custom&&(kt.exports.prototype[vt.inspect.custom]=function(){var xt=vt.inspect({length:this.length});return this.constructor.name+" "+xt})},{"safe-buffer":396,util:89}],392:[function(rt,kt,Ct){"use strict";var St=rt("process-nextick-args");function pt(xt,dt){var ft=this,ct=this._readableState&&this._readableState.destroyed,lt=this._writableState&&this._writableState.destroyed;return ct||lt?(dt?dt(xt):xt&&(!this._writableState||!this._writableState.errorEmitted)&&St.nextTick(yt,this,xt),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(xt||null,function(E){!dt&&E?(St.nextTick(yt,ft,E),ft._writableState&&(ft._writableState.errorEmitted=!0)):dt&&dt(E)}),this)}function vt(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function yt(xt,dt){xt.emit("error",dt)}kt.exports={destroy:pt,undestroy:vt}},{"process-nextick-args":380}],393:[function(rt,kt,Ct){kt.exports=rt("events").EventEmitter},{events:344}],394:[function(rt,kt,Ct){Ct=kt.exports=rt("./lib/_stream_readable.js"),Ct.Stream=Ct,Ct.Readable=Ct,Ct.Writable=rt("./lib/_stream_writable.js"),Ct.Duplex=rt("./lib/_stream_duplex.js"),Ct.Transform=rt("./lib/_stream_transform.js"),Ct.PassThrough=rt("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":386,"./lib/_stream_passthrough.js":387,"./lib/_stream_readable.js":388,"./lib/_stream_transform.js":389,"./lib/_stream_writable.js":390}],395:[function(rt,kt,Ct){var St=function(pt){"use strict";var vt=Object.prototype,yt=vt.hasOwnProperty,xt,dt=typeof Symbol=="function"?Symbol:{},ft=dt.iterator||"@@iterator",ct=dt.asyncIterator||"@@asyncIterator",lt=dt.toStringTag||"@@toStringTag";function E(we,Me,ke){return Object.defineProperty(we,Me,{value:ke,enumerable:!0,configurable:!0,writable:!0}),we[Me]}try{E({},"")}catch(we){E=function(Me,ke,me){return Me[ke]=me}}function z(we,Me,ke,me){var fe=Me&&Me.prototype instanceof At?Me:At,pe=Object.create(fe.prototype),_e=new ve(me||[]);return pe._invoke=Yt(we,ke,_e),pe}pt.wrap=z;function ot(we,Me,ke){try{return{type:"normal",arg:we.call(Me,ke)}}catch(me){return{type:"throw",arg:me}}}var it="suspendedStart",at="suspendedYield",ut="executing",wt="completed",Et={};function At(){}function _t(){}function Mt(){}var jt={};E(jt,ft,function(){return this});var Lt=Object.getPrototypeOf,It=Lt&&Lt(Lt(Kt([])));It&&It!==vt&&yt.call(It,ft)&&(jt=It);var Ut=Mt.prototype=At.prototype=Object.create(jt);_t.prototype=Mt,E(Ut,"constructor",Mt),E(Mt,"constructor",_t),_t.displayName=E(Mt,lt,"GeneratorFunction");function Xt(we){["next","throw","return"].forEach(function(Me){E(we,Me,function(ke){return this._invoke(Me,ke)})})}pt.isGeneratorFunction=function(we){var Me=typeof we=="function"&&we.constructor;return Me?Me===_t||(Me.displayName||Me.name)==="GeneratorFunction":!1},pt.mark=function(we){return Object.setPrototypeOf?Object.setPrototypeOf(we,Mt):(we.__proto__=Mt,E(we,lt,"GeneratorFunction")),we.prototype=Object.create(Ut),we},pt.awrap=function(we){return{__await:we}};function Gt(we,Me){function ke(pe,_e,je,He){var Se=ot(we[pe],we,_e);if(Se.type==="throw")He(Se.arg);else{var xe=Se.arg,le=xe.value;return le&&typeof le=="object"&&yt.call(le,"__await")?Me.resolve(le.__await).then(function(Ne){ke("next",Ne,je,He)},function(Ne){ke("throw",Ne,je,He)}):Me.resolve(le).then(function(Ne){xe.value=Ne,je(xe)},function(Ne){return ke("throw",Ne,je,He)})}}var me;function fe(pe,_e){function je(){return new Me(function(He,Se){ke(pe,_e,He,Se)})}return me=me?me.then(je,je):je()}this._invoke=fe}Xt(Gt.prototype),E(Gt.prototype,ct,function(){return this}),pt.AsyncIterator=Gt,pt.async=function(we,Me,ke,me,fe){fe===void 0&&(fe=Promise);var pe=new Gt(z(we,Me,ke,me),fe);return pt.isGeneratorFunction(Me)?pe:pe.next().then(function(_e){return _e.done?_e.value:pe.next()})};function Yt(we,Me,ke){var me=it;return function(pe,_e){if(me===ut)throw new Error("Generator is already running");if(me===wt){if(pe==="throw")throw _e;return re()}for(ke.method=pe,ke.arg=_e;;){var je=ke.delegate;if(je){var He=Ht(je,ke);if(He){if(He===Et)continue;return He}}if(ke.method==="next")ke.sent=ke._sent=ke.arg;else if(ke.method==="throw"){if(me===it)throw me=wt,ke.arg;ke.dispatchException(ke.arg)}else ke.method==="return"&&ke.abrupt("return",ke.arg);me=ut;var Se=ot(we,Me,ke);if(Se.type==="normal"){if(me=ke.done?wt:at,Se.arg===Et)continue;return{value:Se.arg,done:ke.done}}else Se.type==="throw"&&(me=wt,ke.method="throw",ke.arg=Se.arg)}}}function Ht(we,Me){var ke=we.iterator[Me.method];if(ke===xt){if(Me.delegate=null,Me.method==="throw"){if(we.iterator.return&&(Me.method="return",Me.arg=xt,Ht(we,Me),Me.method==="throw"))return Et;Me.method="throw",Me.arg=new TypeError("The iterator does not provide a 'throw' method")}return Et}var me=ot(ke,we.iterator,Me.arg);if(me.type==="throw")return Me.method="throw",Me.arg=me.arg,Me.delegate=null,Et;var fe=me.arg;if(!fe)return Me.method="throw",Me.arg=new TypeError("iterator result is not an object"),Me.delegate=null,Et;if(fe.done)Me[we.resultName]=fe.value,Me.next=we.nextLoc,Me.method!=="return"&&(Me.method="next",Me.arg=xt);else return fe;return Me.delegate=null,Et}Xt(Ut),E(Ut,lt,"Generator"),E(Ut,ft,function(){return this}),E(Ut,"toString",function(){return"[object Generator]"});function ne(we){var Me={tryLoc:we[0]};1 in we&&(Me.catchLoc=we[1]),2 in we&&(Me.finallyLoc=we[2],Me.afterLoc=we[3]),this.tryEntries.push(Me)}function ae(we){var Me=we.completion||{};Me.type="normal",delete Me.arg,we.completion=Me}function ve(we){this.tryEntries=[{tryLoc:"root"}],we.forEach(ne,this),this.reset(!0)}pt.keys=function(we){var Me=[];for(var ke in we)Me.push(ke);return Me.reverse(),function me(){for(;Me.length;){var fe=Me.pop();if(fe in we)return me.value=fe,me.done=!1,me}return me.done=!0,me}};function Kt(we){if(we){var Me=we[ft];if(Me)return Me.call(we);if(typeof we.next=="function")return we;if(!isNaN(we.length)){var ke=-1,me=function fe(){for(;++ke=0;--me){var fe=this.tryEntries[me],pe=fe.completion;if(fe.tryLoc==="root")return ke("end");if(fe.tryLoc<=this.prev){var _e=yt.call(fe,"catchLoc"),je=yt.call(fe,"finallyLoc");if(_e&&je){if(this.prev=0;--ke){var me=this.tryEntries[ke];if(me.tryLoc<=this.prev&&yt.call(me,"finallyLoc")&&this.prev=0;--Me){var ke=this.tryEntries[Me];if(ke.finallyLoc===we)return this.complete(ke.completion,ke.afterLoc),ae(ke),Et}},catch:function(we){for(var Me=this.tryEntries.length-1;Me>=0;--Me){var ke=this.tryEntries[Me];if(ke.tryLoc===we){var me=ke.completion;if(me.type==="throw"){var fe=me.arg;ae(ke)}return fe}}throw new Error("illegal catch attempt")},delegateYield:function(we,Me,ke){return this.delegate={iterator:Kt(we),resultName:Me,nextLoc:ke},this.method==="next"&&(this.arg=xt),Et}},pt}(typeof kt=="object"?kt.exports:{});try{regeneratorRuntime=St}catch(pt){typeof globalThis=="object"?globalThis.regeneratorRuntime=St:Function("r","regeneratorRuntime = r")(St)}},{}],396:[function(rt,kt,Ct){var St=rt("buffer"),pt=St.Buffer;function vt(xt,dt){for(var ft in xt)dt[ft]=xt[ft]}pt.from&&pt.alloc&&pt.allocUnsafe&&pt.allocUnsafeSlow?kt.exports=St:(vt(St,Ct),Ct.Buffer=yt);function yt(xt,dt,ft){return pt(xt,dt,ft)}vt(pt,yt),yt.from=function(xt,dt,ft){if(typeof xt=="number")throw new TypeError("Argument must not be a number");return pt(xt,dt,ft)},yt.alloc=function(xt,dt,ft){if(typeof xt!="number")throw new TypeError("Argument must be a number");var ct=pt(xt);return dt!==void 0?typeof ft=="string"?ct.fill(dt,ft):ct.fill(dt):ct.fill(0),ct},yt.allocUnsafe=function(xt){if(typeof xt!="number")throw new TypeError("Argument must be a number");return pt(xt)},yt.allocUnsafeSlow=function(xt){if(typeof xt!="number")throw new TypeError("Argument must be a number");return St.SlowBuffer(xt)}},{buffer:90}],397:[function(rt,kt,Ct){(function(St){(function(){(function(pt){pt.parser=function(xe,le){return new yt(xe,le)},pt.SAXParser=yt,pt.SAXStream=z,pt.createStream=E,pt.MAX_BUFFER_LENGTH=64*1024;var vt=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];pt.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function yt(xe,le){if(!(this instanceof yt))return new yt(xe,le);var Ne=this;dt(Ne),Ne.q=Ne.c="",Ne.bufferCheckPosition=pt.MAX_BUFFER_LENGTH,Ne.opt=le||{},Ne.opt.lowercase=Ne.opt.lowercase||Ne.opt.lowercasetags,Ne.looseCase=Ne.opt.lowercase?"toLowerCase":"toUpperCase",Ne.tags=[],Ne.closed=Ne.closedRoot=Ne.sawRoot=!1,Ne.tag=Ne.error=null,Ne.strict=!!xe,Ne.noscript=!!(xe||Ne.opt.noscript),Ne.state=Gt.BEGIN,Ne.strictEntities=Ne.opt.strictEntities,Ne.ENTITIES=Ne.strictEntities?Object.create(pt.XML_ENTITIES):Object.create(pt.ENTITIES),Ne.attribList=[],Ne.opt.xmlns&&(Ne.ns=Object.create(wt)),Ne.trackPosition=Ne.opt.position!==!1,Ne.trackPosition&&(Ne.position=Ne.line=Ne.column=0),Ht(Ne,"onready")}Object.create||(Object.create=function(xe){function le(){}le.prototype=xe;var Ne=new le;return Ne}),Object.keys||(Object.keys=function(xe){var le=[];for(var Ne in xe)xe.hasOwnProperty(Ne)&&le.push(Ne);return le});function xt(xe){for(var le=Math.max(pt.MAX_BUFFER_LENGTH,10),Ne=0,se=0,Ae=vt.length;sele)switch(vt[se]){case"textNode":ae(xe);break;case"cdata":ne(xe,"oncdata",xe.cdata),xe.cdata="";break;case"script":ne(xe,"onscript",xe.script),xe.script="";break;default:Kt(xe,"Max buffer length exceeded: "+vt[se])}Ne=Math.max(Ne,Xe)}var Be=pt.MAX_BUFFER_LENGTH-Ne;xe.bufferCheckPosition=Be+xe.position}function dt(xe){for(var le=0,Ne=vt.length;le"||jt(xe)}function Ut(xe,le){return xe.test(le)}function Xt(xe,le){return!Ut(xe,le)}var Gt=0;pt.STATE={BEGIN:Gt++,BEGIN_WHITESPACE:Gt++,TEXT:Gt++,TEXT_ENTITY:Gt++,OPEN_WAKA:Gt++,SGML_DECL:Gt++,SGML_DECL_QUOTED:Gt++,DOCTYPE:Gt++,DOCTYPE_QUOTED:Gt++,DOCTYPE_DTD:Gt++,DOCTYPE_DTD_QUOTED:Gt++,COMMENT_STARTING:Gt++,COMMENT:Gt++,COMMENT_ENDING:Gt++,COMMENT_ENDED:Gt++,CDATA:Gt++,CDATA_ENDING:Gt++,CDATA_ENDING_2:Gt++,PROC_INST:Gt++,PROC_INST_BODY:Gt++,PROC_INST_ENDING:Gt++,OPEN_TAG:Gt++,OPEN_TAG_SLASH:Gt++,ATTRIB:Gt++,ATTRIB_NAME:Gt++,ATTRIB_NAME_SAW_WHITE:Gt++,ATTRIB_VALUE:Gt++,ATTRIB_VALUE_QUOTED:Gt++,ATTRIB_VALUE_CLOSED:Gt++,ATTRIB_VALUE_UNQUOTED:Gt++,ATTRIB_VALUE_ENTITY_Q:Gt++,ATTRIB_VALUE_ENTITY_U:Gt++,CLOSE_TAG:Gt++,CLOSE_TAG_SAW_WHITE:Gt++,SCRIPT:Gt++,SCRIPT_ENDING:Gt++},pt.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},pt.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(pt.ENTITIES).forEach(function(xe){var le=pt.ENTITIES[xe],Ne=typeof le=="number"?String.fromCharCode(le):le;pt.ENTITIES[xe]=Ne});for(var Yt in pt.STATE)pt.STATE[pt.STATE[Yt]]=Yt;Gt=pt.STATE;function Ht(xe,le,Ne){xe[le]&&xe[le](Ne)}function ne(xe,le,Ne){xe.textNode&&ae(xe),Ht(xe,le,Ne)}function ae(xe){xe.textNode=ve(xe.opt,xe.textNode),xe.textNode&&Ht(xe,"ontext",xe.textNode),xe.textNode=""}function ve(xe,le){return xe.trim&&(le=le.trim()),xe.normalize&&(le=le.replace(/\s+/g," ")),le}function Kt(xe,le){return ae(xe),xe.trackPosition&&(le+=` +`))):He=ke.stylize("[Circular]","special")),It(Oe)){if(_e&&de.match(/^\d+$/))return He;Oe=JSON.stringify(""+de),Oe.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Oe=Oe.substr(1,Oe.length-2),Oe=ke.stylize(Oe,"name")):(Oe=Oe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Oe=ke.stylize(Oe,"string"))}return Oe+": "+He}function ut(ke,Me,ge){var fe=0,de=ke.reduce(function(_e,Oe){return fe++,Oe.indexOf(` +`)>=0&&fe++,_e+Oe.replace(/\u001b\[\d\d?m/g,"").length+1},0);return de>60?ge[0]+(Me===""?"":Me+` + `)+" "+ke.join(`, + `)+" "+ge[1]:ge[0]+Me+" "+ke.join(", ")+" "+ge[1]}function wt(ke){return Array.isArray(ke)}Ct.isArray=wt;function Et(ke){return typeof ke=="boolean"}Ct.isBoolean=Et;function At(ke){return ke===null}Ct.isNull=At;function _t(ke){return ke==null}Ct.isNullOrUndefined=_t;function Mt(ke){return typeof ke=="number"}Ct.isNumber=Mt;function jt(ke){return typeof ke=="string"}Ct.isString=jt;function Lt(ke){return typeof ke=="symbol"}Ct.isSymbol=Lt;function It(ke){return ke===void 0}Ct.isUndefined=It;function Ut(ke){return Xt(ke)&&se(ke)==="[object RegExp]"}Ct.isRegExp=Ut;function Xt(ke){return typeof ke=="object"&&ke!==null}Ct.isObject=Xt;function Gt(ke){return Xt(ke)&&se(ke)==="[object Date]"}Ct.isDate=Gt;function Vt(ke){return Xt(ke)&&(se(ke)==="[object Error]"||ke instanceof Error)}Ct.isError=Vt;function Ht(ke){return typeof ke=="function"}Ct.isFunction=Ht;function ne(ke){return ke===null||typeof ke=="boolean"||typeof ke=="number"||typeof ke=="string"||typeof ke=="symbol"||typeof ke=="undefined"}Ct.isPrimitive=ne,Ct.isBuffer=rt("./support/isBuffer");function se(ke){return Object.prototype.toString.call(ke)}function ve(ke){return ke<10?"0"+ke.toString(10):ke.toString(10)}var Kt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function re(){var ke=new Date,Me=[ve(ke.getHours()),ve(ke.getMinutes()),ve(ke.getSeconds())].join(":");return[ke.getDate(),Kt[ke.getMonth()],Me].join(" ")}Ct.log=function(){console.log("%s - %s",re(),Ct.format.apply(Ct,arguments))},Ct.inherits=rt("inherits"),Ct._extend=function(ke,Me){if(!Me||!Xt(Me))return ke;for(var ge=Object.keys(Me),fe=ge.length;fe--;)ke[ge[fe]]=Me[ge[fe]];return ke};function we(ke,Me){return Object.prototype.hasOwnProperty.call(ke,Me)}}).call(this)}).call(this,rt("_process"),typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":84,_process:467,inherits:83}],86:[function(rt,kt,Ct){(function(St){(function(){"use strict";var pt=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],vt=typeof globalThis=="undefined"?St:globalThis;kt.exports=function(){for(var xt=[],dt=0;dt0)throw new Error("Invalid string. Length must be a multiple of 4");var wt=at.indexOf("=");wt===-1&&(wt=ut);var Et=wt===ut?0:4-wt%4;return[wt,Et]}function ct(at){var ut=ft(at),wt=ut[0],Et=ut[1];return(wt+Et)*3/4-Et}function lt(at,ut,wt){return(ut+wt)*3/4-wt}function E(at){var ut,wt=ft(at),Et=wt[0],At=wt[1],_t=new vt(lt(at,Et,At)),Mt=0,jt=At>0?Et-4:Et,Lt;for(Lt=0;Lt>16&255,_t[Mt++]=ut>>8&255,_t[Mt++]=ut&255;return At===2&&(ut=pt[at.charCodeAt(Lt)]<<2|pt[at.charCodeAt(Lt+1)]>>4,_t[Mt++]=ut&255),At===1&&(ut=pt[at.charCodeAt(Lt)]<<10|pt[at.charCodeAt(Lt+1)]<<4|pt[at.charCodeAt(Lt+2)]>>2,_t[Mt++]=ut>>8&255,_t[Mt++]=ut&255),_t}function z(at){return St[at>>18&63]+St[at>>12&63]+St[at>>6&63]+St[at&63]}function ot(at,ut,wt){for(var Et,At=[],_t=ut;_tjt?jt:Mt+_t));return Et===1?(ut=at[wt-1],At.push(St[ut>>2]+St[ut<<4&63]+"==")):Et===2&&(ut=(at[wt-2]<<8)+at[wt-1],At.push(St[ut>>10]+St[ut>>4&63]+St[ut<<2&63]+"=")),At.join("")}},{}],88:[function(rt,kt,Ct){(function(St,pt,vt){typeof kt!="undefined"&&kt.exports?kt.exports=vt():typeof Rt=="function"&&Rt.amd?Rt(pt,vt):St[pt]=vt()})(this,"bowser",function(){var St=!0;function pt(lt){function E(Me){var ge=lt.match(Me);return ge&&ge.length>1&&ge[1]||""}function z(Me){var ge=lt.match(Me);return ge&&ge.length>1&&ge[2]||""}var ot=E(/(ipod|iphone|ipad)/i).toLowerCase(),it=/like android/i.test(lt),at=!it&&/android/i.test(lt),ut=/nexus\s*[0-6]\s*/i.test(lt),wt=!ut&&/nexus\s*[0-9]+/i.test(lt),Et=/CrOS/.test(lt),At=/silk/i.test(lt),_t=/sailfish/i.test(lt),Mt=/tizen/i.test(lt),jt=/(web|hpw)(o|0)s/i.test(lt),Lt=/windows phone/i.test(lt),It=/SamsungBrowser/i.test(lt),Ut=!Lt&&/windows/i.test(lt),Xt=!ot&&!At&&/macintosh/i.test(lt),Gt=!at&&!_t&&!Mt&&!jt&&/linux/i.test(lt),Vt=z(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),Ht=E(/version\/(\d+(\.\d+)?)/i),ne=/tablet/i.test(lt)&&!/tablet pc/i.test(lt),se=!ne&&/[^-]mobi/i.test(lt),ve=/xbox/i.test(lt),Kt;/opera/i.test(lt)?Kt={name:"Opera",opera:St,version:Ht||E(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(lt)?Kt={name:"Opera",opera:St,version:E(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||Ht}:/SamsungBrowser/i.test(lt)?Kt={name:"Samsung Internet for Android",samsungBrowser:St,version:Ht||E(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(lt)?Kt={name:"NAVER Whale browser",whale:St,version:E(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(lt)?Kt={name:"MZ Browser",mzbrowser:St,version:E(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(lt)?Kt={name:"Opera Coast",coast:St,version:Ht||E(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(lt)?Kt={name:"Focus",focus:St,version:E(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(lt)?Kt={name:"Yandex Browser",yandexbrowser:St,version:Ht||E(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(lt)?Kt={name:"UC Browser",ucbrowser:St,version:E(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(lt)?Kt={name:"Maxthon",maxthon:St,version:E(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(lt)?Kt={name:"Epiphany",epiphany:St,version:E(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(lt)?Kt={name:"Puffin",puffin:St,version:E(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(lt)?Kt={name:"Sleipnir",sleipnir:St,version:E(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(lt)?Kt={name:"K-Meleon",kMeleon:St,version:E(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:Lt?(Kt={name:"Windows Phone",osname:"Windows Phone",windowsphone:St},Vt?(Kt.msedge=St,Kt.version=Vt):(Kt.msie=St,Kt.version=E(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(lt)?Kt={name:"Internet Explorer",msie:St,version:E(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:Et?Kt={name:"Chrome",osname:"Chrome OS",chromeos:St,chromeBook:St,chrome:St,version:E(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(lt)?Kt={name:"Microsoft Edge",msedge:St,version:Vt}:/vivaldi/i.test(lt)?Kt={name:"Vivaldi",vivaldi:St,version:E(/vivaldi\/(\d+(\.\d+)?)/i)||Ht}:_t?Kt={name:"Sailfish",osname:"Sailfish OS",sailfish:St,version:E(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(lt)?Kt={name:"SeaMonkey",seamonkey:St,version:E(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(lt)?(Kt={name:"Firefox",firefox:St,version:E(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(lt)&&(Kt.firefoxos=St,Kt.osname="Firefox OS")):At?Kt={name:"Amazon Silk",silk:St,version:E(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(lt)?Kt={name:"PhantomJS",phantom:St,version:E(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(lt)?Kt={name:"SlimerJS",slimer:St,version:E(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(lt)||/rim\stablet/i.test(lt)?Kt={name:"BlackBerry",osname:"BlackBerry OS",blackberry:St,version:Ht||E(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:jt?(Kt={name:"WebOS",osname:"WebOS",webos:St,version:Ht||E(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(lt)&&(Kt.touchpad=St)):/bada/i.test(lt)?Kt={name:"Bada",osname:"Bada",bada:St,version:E(/dolfin\/(\d+(\.\d+)?)/i)}:Mt?Kt={name:"Tizen",osname:"Tizen",tizen:St,version:E(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||Ht}:/qupzilla/i.test(lt)?Kt={name:"QupZilla",qupzilla:St,version:E(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||Ht}:/chromium/i.test(lt)?Kt={name:"Chromium",chromium:St,version:E(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||Ht}:/chrome|crios|crmo/i.test(lt)?Kt={name:"Chrome",chrome:St,version:E(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:at?Kt={name:"Android",version:Ht}:/safari|applewebkit/i.test(lt)?(Kt={name:"Safari",safari:St},Ht&&(Kt.version=Ht)):ot?(Kt={name:ot=="iphone"?"iPhone":ot=="ipad"?"iPad":"iPod"},Ht&&(Kt.version=Ht)):/googlebot/i.test(lt)?Kt={name:"Googlebot",googlebot:St,version:E(/googlebot\/(\d+(\.\d+))/i)||Ht}:Kt={name:E(/^(.*)\/(.*) /),version:z(/^(.*)\/(.*) /)},!Kt.msedge&&/(apple)?webkit/i.test(lt)?(/(apple)?webkit\/537\.36/i.test(lt)?(Kt.name=Kt.name||"Blink",Kt.blink=St):(Kt.name=Kt.name||"Webkit",Kt.webkit=St),!Kt.version&&Ht&&(Kt.version=Ht)):!Kt.opera&&/gecko\//i.test(lt)&&(Kt.name=Kt.name||"Gecko",Kt.gecko=St,Kt.version=Kt.version||E(/gecko\/(\d+(\.\d+)?)/i)),!Kt.windowsphone&&(at||Kt.silk)?(Kt.android=St,Kt.osname="Android"):!Kt.windowsphone&&ot?(Kt[ot]=St,Kt.ios=St,Kt.osname="iOS"):Xt?(Kt.mac=St,Kt.osname="macOS"):ve?(Kt.xbox=St,Kt.osname="Xbox"):Ut?(Kt.windows=St,Kt.osname="Windows"):Gt&&(Kt.linux=St,Kt.osname="Linux");function re(Me){switch(Me){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}}var we="";Kt.windows?we=re(E(/Windows ((NT|XP)( \d\d?.\d)?)/i)):Kt.windowsphone?we=E(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):Kt.mac?(we=E(/Mac OS X (\d+([_\.\s]\d+)*)/i),we=we.replace(/[_\s]/g,".")):ot?(we=E(/os (\d+([_\s]\d+)*) like mac os x/i),we=we.replace(/[_\s]/g,".")):at?we=E(/android[ \/-](\d+(\.\d+)*)/i):Kt.webos?we=E(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):Kt.blackberry?we=E(/rim\stablet\sos\s(\d+(\.\d+)*)/i):Kt.bada?we=E(/bada\/(\d+(\.\d+)*)/i):Kt.tizen&&(we=E(/tizen[\/\s](\d+(\.\d+)*)/i)),we&&(Kt.osversion=we);var ke=!Kt.windows&&we.split(".")[0];return ne||wt||ot=="ipad"||at&&(ke==3||ke>=4&&!se)||Kt.silk?Kt.tablet=St:(se||ot=="iphone"||ot=="ipod"||at||ut||Kt.blackberry||Kt.webos||Kt.bada)&&(Kt.mobile=St),Kt.msedge||Kt.msie&&Kt.version>=10||Kt.yandexbrowser&&Kt.version>=15||Kt.vivaldi&&Kt.version>=1||Kt.chrome&&Kt.version>=20||Kt.samsungBrowser&&Kt.version>=4||Kt.whale&&dt([Kt.version,"1.0"])===1||Kt.mzbrowser&&dt([Kt.version,"6.0"])===1||Kt.focus&&dt([Kt.version,"1.0"])===1||Kt.firefox&&Kt.version>=20||Kt.safari&&Kt.version>=6||Kt.opera&&Kt.version>=10||Kt.ios&&Kt.osversion&&Kt.osversion.split(".")[0]>=6||Kt.blackberry&&Kt.version>=10.1||Kt.chromium&&Kt.version>=20?Kt.a=St:Kt.msie&&Kt.version<10||Kt.chrome&&Kt.version<20||Kt.firefox&&Kt.version<20||Kt.safari&&Kt.version<6||Kt.opera&&Kt.version<10||Kt.ios&&Kt.osversion&&Kt.osversion.split(".")[0]<6||Kt.chromium&&Kt.version<20?Kt.c=St:Kt.x=St,Kt}var vt=pt(typeof navigator!="undefined"&&navigator.userAgent||"");vt.test=function(lt){for(var E=0;E=0;){if(z[0][E]>z[1][E])return 1;if(z[0][E]===z[1][E]){if(E===0)return 0}else return-1}}function ft(lt,E,z){var ot=vt;typeof E=="string"&&(z=E,E=void 0),E===void 0&&(E=!1),z&&(ot=pt(z));var it=""+ot.version;for(var at in lt)if(lt.hasOwnProperty(at)&&ot[at]){if(typeof lt[at]!="string")throw new Error("Browser version in the minVersion map should be a string: "+at+": "+String(lt));return dt([it,lt[at]])<0}return E}function ct(lt,E,z){return!ft(lt,E,z)}return vt.isUnsupportedBrowser=ft,vt.compareVersions=dt,vt.check=ct,vt._detect=pt,vt.detect=pt,vt})},{}],89:[function(rt,kt,Ct){},{}],90:[function(rt,kt,Ct){(function(St){(function(){"use strict";var pt=rt("base64-js"),vt=rt("ieee754");Ct.Buffer=ft,Ct.SlowBuffer=Et,Ct.INSPECT_MAX_BYTES=50;var yt=2147483647;Ct.kMaxLength=yt,ft.TYPED_ARRAY_SUPPORT=xt(),!ft.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function xt(){try{var ue=new Uint8Array(1);return ue.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},ue.foo()===42}catch($t){return!1}}Object.defineProperty(ft.prototype,"parent",{enumerable:!0,get:function(){if(ft.isBuffer(this))return this.buffer}}),Object.defineProperty(ft.prototype,"offset",{enumerable:!0,get:function(){if(ft.isBuffer(this))return this.byteOffset}});function dt(ue){if(ue>yt)throw new RangeError('The value "'+ue+'" is invalid for option "size"');var $t=new Uint8Array(ue);return $t.__proto__=ft.prototype,$t}function ft(ue,$t,he){if(typeof ue=="number"){if(typeof $t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return z(ue)}return ct(ue,$t,he)}typeof Symbol!="undefined"&&Symbol.species!=null&&ft[Symbol.species]===ft&&Object.defineProperty(ft,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),ft.poolSize=8192;function ct(ue,$t,he){if(typeof ue=="string")return ot(ue,$t);if(ArrayBuffer.isView(ue))return it(ue);if(ue==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ue);if(Be(ue,ArrayBuffer)||ue&&Be(ue.buffer,ArrayBuffer))return at(ue,$t,he);if(typeof ue=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var ye=ue.valueOf&&ue.valueOf();if(ye!=null&&ye!==ue)return ft.from(ye,$t,he);var Qt=ut(ue);if(Qt)return Qt;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof ue[Symbol.toPrimitive]=="function")return ft.from(ue[Symbol.toPrimitive]("string"),$t,he);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ue)}ft.from=function(ue,$t,he){return ct(ue,$t,he)},ft.prototype.__proto__=Uint8Array.prototype,ft.__proto__=Uint8Array;function lt(ue){if(typeof ue!="number")throw new TypeError('"size" argument must be of type number');if(ue<0)throw new RangeError('The value "'+ue+'" is invalid for option "size"')}function E(ue,$t,he){return lt(ue),ue<=0?dt(ue):$t!==void 0?typeof he=="string"?dt(ue).fill($t,he):dt(ue).fill($t):dt(ue)}ft.alloc=function(ue,$t,he){return E(ue,$t,he)};function z(ue){return lt(ue),dt(ue<0?0:wt(ue)|0)}ft.allocUnsafe=function(ue){return z(ue)},ft.allocUnsafeSlow=function(ue){return z(ue)};function ot(ue,$t){if((typeof $t!="string"||$t==="")&&($t="utf8"),!ft.isEncoding($t))throw new TypeError("Unknown encoding: "+$t);var he=At(ue,$t)|0,ye=dt(he),Qt=ye.write(ue,$t);return Qt!==he&&(ye=ye.slice(0,Qt)),ye}function it(ue){for(var $t=ue.length<0?0:wt(ue.length)|0,he=dt($t),ye=0;ye<$t;ye+=1)he[ye]=ue[ye]&255;return he}function at(ue,$t,he){if($t<0||ue.byteLength<$t)throw new RangeError('"offset" is outside of buffer bounds');if(ue.byteLength<$t+(he||0))throw new RangeError('"length" is outside of buffer bounds');var ye;return $t===void 0&&he===void 0?ye=new Uint8Array(ue):he===void 0?ye=new Uint8Array(ue,$t):ye=new Uint8Array(ue,$t,he),ye.__proto__=ft.prototype,ye}function ut(ue){if(ft.isBuffer(ue)){var $t=wt(ue.length)|0,he=dt($t);return he.length===0||ue.copy(he,0,0,$t),he}if(ue.length!==void 0)return typeof ue.length!="number"||Te(ue.length)?dt(0):it(ue);if(ue.type==="Buffer"&&Array.isArray(ue.data))return it(ue.data)}function wt(ue){if(ue>=yt)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+yt.toString(16)+" bytes");return ue|0}function Et(ue){return+ue!=ue&&(ue=0),ft.alloc(+ue)}ft.isBuffer=function($t){return $t!=null&&$t._isBuffer===!0&&$t!==ft.prototype},ft.compare=function($t,he){if(Be($t,Uint8Array)&&($t=ft.from($t,$t.offset,$t.byteLength)),Be(he,Uint8Array)&&(he=ft.from(he,he.offset,he.byteLength)),!ft.isBuffer($t)||!ft.isBuffer(he))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if($t===he)return 0;for(var ye=$t.length,Qt=he.length,Wt=0,Bt=Math.min(ye,Qt);Wt2&&arguments[2]===!0;if(!ye&&he===0)return 0;for(var Qt=!1;;)switch($t){case"ascii":case"latin1":case"binary":return he;case"utf8":case"utf-8":return le(ue).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return he*2;case"hex":return he>>>1;case"base64":return Ae(ue).length;default:if(Qt)return ye?-1:le(ue).length;$t=(""+$t).toLowerCase(),Qt=!0}}ft.byteLength=At;function _t(ue,$t,he){var ye=!1;if(($t===void 0||$t<0)&&($t=0),$t>this.length||((he===void 0||he>this.length)&&(he=this.length),he<=0)||(he>>>=0,$t>>>=0,he<=$t))return"";for(ue||(ue="utf8");;)switch(ue){case"hex":return ke(this,$t,he);case"utf8":case"utf-8":return se(this,$t,he);case"ascii":return re(this,$t,he);case"latin1":case"binary":return we(this,$t,he);case"base64":return ne(this,$t,he);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Me(this,$t,he);default:if(ye)throw new TypeError("Unknown encoding: "+ue);ue=(ue+"").toLowerCase(),ye=!0}}ft.prototype._isBuffer=!0;function Mt(ue,$t,he){var ye=ue[$t];ue[$t]=ue[he],ue[he]=ye}ft.prototype.swap16=function(){var $t=this.length;if($t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var he=0;he<$t;he+=2)Mt(this,he,he+1);return this},ft.prototype.swap32=function(){var $t=this.length;if($t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var he=0;he<$t;he+=4)Mt(this,he,he+3),Mt(this,he+1,he+2);return this},ft.prototype.swap64=function(){var $t=this.length;if($t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var he=0;he<$t;he+=8)Mt(this,he,he+7),Mt(this,he+1,he+6),Mt(this,he+2,he+5),Mt(this,he+3,he+4);return this},ft.prototype.toString=function(){var $t=this.length;return $t===0?"":arguments.length===0?se(this,0,$t):_t.apply(this,arguments)},ft.prototype.toLocaleString=ft.prototype.toString,ft.prototype.equals=function($t){if(!ft.isBuffer($t))throw new TypeError("Argument must be a Buffer");return this===$t?!0:ft.compare(this,$t)===0},ft.prototype.inspect=function(){var $t="",he=Ct.INSPECT_MAX_BYTES;return $t=this.toString("hex",0,he).replace(/(.{2})/g,"$1 ").trim(),this.length>he&&($t+=" ... "),""},ft.prototype.compare=function($t,he,ye,Qt,Wt){if(Be($t,Uint8Array)&&($t=ft.from($t,$t.offset,$t.byteLength)),!ft.isBuffer($t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof $t);if(he===void 0&&(he=0),ye===void 0&&(ye=$t?$t.length:0),Qt===void 0&&(Qt=0),Wt===void 0&&(Wt=this.length),he<0||ye>$t.length||Qt<0||Wt>this.length)throw new RangeError("out of range index");if(Qt>=Wt&&he>=ye)return 0;if(Qt>=Wt)return-1;if(he>=ye)return 1;if(he>>>=0,ye>>>=0,Qt>>>=0,Wt>>>=0,this===$t)return 0;for(var Bt=Wt-Qt,te=ye-he,me=Math.min(Bt,te),Jt=this.slice(Qt,Wt),Ie=$t.slice(he,ye),Ue=0;Ue2147483647?he=2147483647:he<-2147483648&&(he=-2147483648),he=+he,Te(he)&&(he=Qt?0:ue.length-1),he<0&&(he=ue.length+he),he>=ue.length){if(Qt)return-1;he=ue.length-1}else if(he<0)if(Qt)he=0;else return-1;if(typeof $t=="string"&&($t=ft.from($t,ye)),ft.isBuffer($t))return $t.length===0?-1:Lt(ue,$t,he,ye,Qt);if(typeof $t=="number")return $t=$t&255,typeof Uint8Array.prototype.indexOf=="function"?Qt?Uint8Array.prototype.indexOf.call(ue,$t,he):Uint8Array.prototype.lastIndexOf.call(ue,$t,he):Lt(ue,[$t],he,ye,Qt);throw new TypeError("val must be string, number or Buffer")}function Lt(ue,$t,he,ye,Qt){var Wt=1,Bt=ue.length,te=$t.length;if(ye!==void 0&&(ye=String(ye).toLowerCase(),ye==="ucs2"||ye==="ucs-2"||ye==="utf16le"||ye==="utf-16le")){if(ue.length<2||$t.length<2)return-1;Wt=2,Bt/=2,te/=2,he/=2}function me(Ze,nn){return Wt===1?Ze[nn]:Ze.readUInt16BE(nn*Wt)}var Jt;if(Qt){var Ie=-1;for(Jt=he;JtBt&&(he=Bt-te),Jt=he;Jt>=0;Jt--){for(var Ue=!0,Je=0;JeQt&&(ye=Qt)):ye=Qt;var Wt=$t.length;ye>Wt/2&&(ye=Wt/2);for(var Bt=0;Bt>>0,isFinite(ye)?(ye=ye>>>0,Qt===void 0&&(Qt="utf8")):(Qt=ye,ye=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Wt=this.length-he;if((ye===void 0||ye>Wt)&&(ye=Wt),$t.length>0&&(ye<0||he<0)||he>this.length)throw new RangeError("Attempt to write outside buffer bounds");Qt||(Qt="utf8");for(var Bt=!1;;)switch(Qt){case"hex":return It(this,$t,he,ye);case"utf8":case"utf-8":return Ut(this,$t,he,ye);case"ascii":return Xt(this,$t,he,ye);case"latin1":case"binary":return Gt(this,$t,he,ye);case"base64":return Vt(this,$t,he,ye);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ht(this,$t,he,ye);default:if(Bt)throw new TypeError("Unknown encoding: "+Qt);Qt=(""+Qt).toLowerCase(),Bt=!0}},ft.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ne(ue,$t,he){return $t===0&&he===ue.length?pt.fromByteArray(ue):pt.fromByteArray(ue.slice($t,he))}function se(ue,$t,he){he=Math.min(ue.length,he);for(var ye=[],Qt=$t;Qt239?4:Wt>223?3:Wt>191?2:1;if(Qt+te<=he){var me,Jt,Ie,Ue;switch(te){case 1:Wt<128&&(Bt=Wt);break;case 2:me=ue[Qt+1],(me&192)===128&&(Ue=(Wt&31)<<6|me&63,Ue>127&&(Bt=Ue));break;case 3:me=ue[Qt+1],Jt=ue[Qt+2],(me&192)===128&&(Jt&192)===128&&(Ue=(Wt&15)<<12|(me&63)<<6|Jt&63,Ue>2047&&(Ue<55296||Ue>57343)&&(Bt=Ue));break;case 4:me=ue[Qt+1],Jt=ue[Qt+2],Ie=ue[Qt+3],(me&192)===128&&(Jt&192)===128&&(Ie&192)===128&&(Ue=(Wt&15)<<18|(me&63)<<12|(Jt&63)<<6|Ie&63,Ue>65535&&Ue<1114112&&(Bt=Ue))}}Bt===null?(Bt=65533,te=1):Bt>65535&&(Bt-=65536,ye.push(Bt>>>10&1023|55296),Bt=56320|Bt&1023),ye.push(Bt),Qt+=te}return Kt(ye)}var ve=4096;function Kt(ue){var $t=ue.length;if($t<=ve)return String.fromCharCode.apply(String,ue);for(var he="",ye=0;ye<$t;)he+=String.fromCharCode.apply(String,ue.slice(ye,ye+=ve));return he}function re(ue,$t,he){var ye="";he=Math.min(ue.length,he);for(var Qt=$t;Qtye)&&(he=ye);for(var Qt="",Wt=$t;Wtye&&($t=ye),he<0?(he+=ye,he<0&&(he=0)):he>ye&&(he=ye),he<$t&&(he=$t);var Qt=this.subarray($t,he);return Qt.__proto__=ft.prototype,Qt};function ge(ue,$t,he){if(ue%1!==0||ue<0)throw new RangeError("offset is not uint");if(ue+$t>he)throw new RangeError("Trying to access beyond buffer length")}ft.prototype.readUIntLE=function($t,he,ye){$t=$t>>>0,he=he>>>0,ye||ge($t,he,this.length);for(var Qt=this[$t],Wt=1,Bt=0;++Bt>>0,he=he>>>0,ye||ge($t,he,this.length);for(var Qt=this[$t+--he],Wt=1;he>0&&(Wt*=256);)Qt+=this[$t+--he]*Wt;return Qt},ft.prototype.readUInt8=function($t,he){return $t=$t>>>0,he||ge($t,1,this.length),this[$t]},ft.prototype.readUInt16LE=function($t,he){return $t=$t>>>0,he||ge($t,2,this.length),this[$t]|this[$t+1]<<8},ft.prototype.readUInt16BE=function($t,he){return $t=$t>>>0,he||ge($t,2,this.length),this[$t]<<8|this[$t+1]},ft.prototype.readUInt32LE=function($t,he){return $t=$t>>>0,he||ge($t,4,this.length),(this[$t]|this[$t+1]<<8|this[$t+2]<<16)+this[$t+3]*16777216},ft.prototype.readUInt32BE=function($t,he){return $t=$t>>>0,he||ge($t,4,this.length),this[$t]*16777216+(this[$t+1]<<16|this[$t+2]<<8|this[$t+3])},ft.prototype.readIntLE=function($t,he,ye){$t=$t>>>0,he=he>>>0,ye||ge($t,he,this.length);for(var Qt=this[$t],Wt=1,Bt=0;++Bt=Wt&&(Qt-=Math.pow(2,8*he)),Qt},ft.prototype.readIntBE=function($t,he,ye){$t=$t>>>0,he=he>>>0,ye||ge($t,he,this.length);for(var Qt=he,Wt=1,Bt=this[$t+--Qt];Qt>0&&(Wt*=256);)Bt+=this[$t+--Qt]*Wt;return Wt*=128,Bt>=Wt&&(Bt-=Math.pow(2,8*he)),Bt},ft.prototype.readInt8=function($t,he){return $t=$t>>>0,he||ge($t,1,this.length),this[$t]&128?(255-this[$t]+1)*-1:this[$t]},ft.prototype.readInt16LE=function($t,he){$t=$t>>>0,he||ge($t,2,this.length);var ye=this[$t]|this[$t+1]<<8;return ye&32768?ye|4294901760:ye},ft.prototype.readInt16BE=function($t,he){$t=$t>>>0,he||ge($t,2,this.length);var ye=this[$t+1]|this[$t]<<8;return ye&32768?ye|4294901760:ye},ft.prototype.readInt32LE=function($t,he){return $t=$t>>>0,he||ge($t,4,this.length),this[$t]|this[$t+1]<<8|this[$t+2]<<16|this[$t+3]<<24},ft.prototype.readInt32BE=function($t,he){return $t=$t>>>0,he||ge($t,4,this.length),this[$t]<<24|this[$t+1]<<16|this[$t+2]<<8|this[$t+3]},ft.prototype.readFloatLE=function($t,he){return $t=$t>>>0,he||ge($t,4,this.length),vt.read(this,$t,!0,23,4)},ft.prototype.readFloatBE=function($t,he){return $t=$t>>>0,he||ge($t,4,this.length),vt.read(this,$t,!1,23,4)},ft.prototype.readDoubleLE=function($t,he){return $t=$t>>>0,he||ge($t,8,this.length),vt.read(this,$t,!0,52,8)},ft.prototype.readDoubleBE=function($t,he){return $t=$t>>>0,he||ge($t,8,this.length),vt.read(this,$t,!1,52,8)};function fe(ue,$t,he,ye,Qt,Wt){if(!ft.isBuffer(ue))throw new TypeError('"buffer" argument must be a Buffer instance');if($t>Qt||$tue.length)throw new RangeError("Index out of range")}ft.prototype.writeUIntLE=function($t,he,ye,Qt){if($t=+$t,he=he>>>0,ye=ye>>>0,!Qt){var Wt=Math.pow(2,8*ye)-1;fe(this,$t,he,ye,Wt,0)}var Bt=1,te=0;for(this[he]=$t&255;++te>>0,ye=ye>>>0,!Qt){var Wt=Math.pow(2,8*ye)-1;fe(this,$t,he,ye,Wt,0)}var Bt=ye-1,te=1;for(this[he+Bt]=$t&255;--Bt>=0&&(te*=256);)this[he+Bt]=$t/te&255;return he+ye},ft.prototype.writeUInt8=function($t,he,ye){return $t=+$t,he=he>>>0,ye||fe(this,$t,he,1,255,0),this[he]=$t&255,he+1},ft.prototype.writeUInt16LE=function($t,he,ye){return $t=+$t,he=he>>>0,ye||fe(this,$t,he,2,65535,0),this[he]=$t&255,this[he+1]=$t>>>8,he+2},ft.prototype.writeUInt16BE=function($t,he,ye){return $t=+$t,he=he>>>0,ye||fe(this,$t,he,2,65535,0),this[he]=$t>>>8,this[he+1]=$t&255,he+2},ft.prototype.writeUInt32LE=function($t,he,ye){return $t=+$t,he=he>>>0,ye||fe(this,$t,he,4,4294967295,0),this[he+3]=$t>>>24,this[he+2]=$t>>>16,this[he+1]=$t>>>8,this[he]=$t&255,he+4},ft.prototype.writeUInt32BE=function($t,he,ye){return $t=+$t,he=he>>>0,ye||fe(this,$t,he,4,4294967295,0),this[he]=$t>>>24,this[he+1]=$t>>>16,this[he+2]=$t>>>8,this[he+3]=$t&255,he+4},ft.prototype.writeIntLE=function($t,he,ye,Qt){if($t=+$t,he=he>>>0,!Qt){var Wt=Math.pow(2,8*ye-1);fe(this,$t,he,ye,Wt-1,-Wt)}var Bt=0,te=1,me=0;for(this[he]=$t&255;++Bt>0)-me&255;return he+ye},ft.prototype.writeIntBE=function($t,he,ye,Qt){if($t=+$t,he=he>>>0,!Qt){var Wt=Math.pow(2,8*ye-1);fe(this,$t,he,ye,Wt-1,-Wt)}var Bt=ye-1,te=1,me=0;for(this[he+Bt]=$t&255;--Bt>=0&&(te*=256);)$t<0&&me===0&&this[he+Bt+1]!==0&&(me=1),this[he+Bt]=($t/te>>0)-me&255;return he+ye},ft.prototype.writeInt8=function($t,he,ye){return $t=+$t,he=he>>>0,ye||fe(this,$t,he,1,127,-128),$t<0&&($t=255+$t+1),this[he]=$t&255,he+1},ft.prototype.writeInt16LE=function($t,he,ye){return $t=+$t,he=he>>>0,ye||fe(this,$t,he,2,32767,-32768),this[he]=$t&255,this[he+1]=$t>>>8,he+2},ft.prototype.writeInt16BE=function($t,he,ye){return $t=+$t,he=he>>>0,ye||fe(this,$t,he,2,32767,-32768),this[he]=$t>>>8,this[he+1]=$t&255,he+2},ft.prototype.writeInt32LE=function($t,he,ye){return $t=+$t,he=he>>>0,ye||fe(this,$t,he,4,2147483647,-2147483648),this[he]=$t&255,this[he+1]=$t>>>8,this[he+2]=$t>>>16,this[he+3]=$t>>>24,he+4},ft.prototype.writeInt32BE=function($t,he,ye){return $t=+$t,he=he>>>0,ye||fe(this,$t,he,4,2147483647,-2147483648),$t<0&&($t=4294967295+$t+1),this[he]=$t>>>24,this[he+1]=$t>>>16,this[he+2]=$t>>>8,this[he+3]=$t&255,he+4};function de(ue,$t,he,ye,Qt,Wt){if(he+ye>ue.length)throw new RangeError("Index out of range");if(he<0)throw new RangeError("Index out of range")}function _e(ue,$t,he,ye,Qt){return $t=+$t,he=he>>>0,Qt||de(ue,$t,he,4,34028234663852886e22,-34028234663852886e22),vt.write(ue,$t,he,ye,23,4),he+4}ft.prototype.writeFloatLE=function($t,he,ye){return _e(this,$t,he,!0,ye)},ft.prototype.writeFloatBE=function($t,he,ye){return _e(this,$t,he,!1,ye)};function Oe(ue,$t,he,ye,Qt){return $t=+$t,he=he>>>0,Qt||de(ue,$t,he,8,17976931348623157e292,-17976931348623157e292),vt.write(ue,$t,he,ye,52,8),he+8}ft.prototype.writeDoubleLE=function($t,he,ye){return Oe(this,$t,he,!0,ye)},ft.prototype.writeDoubleBE=function($t,he,ye){return Oe(this,$t,he,!1,ye)},ft.prototype.copy=function($t,he,ye,Qt){if(!ft.isBuffer($t))throw new TypeError("argument should be a Buffer");if(ye||(ye=0),!Qt&&Qt!==0&&(Qt=this.length),he>=$t.length&&(he=$t.length),he||(he=0),Qt>0&&Qt=this.length)throw new RangeError("Index out of range");if(Qt<0)throw new RangeError("sourceEnd out of bounds");Qt>this.length&&(Qt=this.length),$t.length-he=0;--Bt)$t[Bt+he]=this[Bt+ye];else Uint8Array.prototype.set.call($t,this.subarray(ye,Qt),he);return Wt},ft.prototype.fill=function($t,he,ye,Qt){if(typeof $t=="string"){if(typeof he=="string"?(Qt=he,he=0,ye=this.length):typeof ye=="string"&&(Qt=ye,ye=this.length),Qt!==void 0&&typeof Qt!="string")throw new TypeError("encoding must be a string");if(typeof Qt=="string"&&!ft.isEncoding(Qt))throw new TypeError("Unknown encoding: "+Qt);if($t.length===1){var Wt=$t.charCodeAt(0);(Qt==="utf8"&&Wt<128||Qt==="latin1")&&($t=Wt)}}else typeof $t=="number"&&($t=$t&255);if(he<0||this.length>>0,ye=ye===void 0?this.length:ye>>>0,$t||($t=0);var Bt;if(typeof $t=="number")for(Bt=he;Bt55295&&he<57344){if(!Qt){if(he>56319){($t-=3)>-1&&Wt.push(239,191,189);continue}else if(Bt+1===ye){($t-=3)>-1&&Wt.push(239,191,189);continue}Qt=he;continue}if(he<56320){($t-=3)>-1&&Wt.push(239,191,189),Qt=he;continue}he=(Qt-55296<<10|he-56320)+65536}else Qt&&($t-=3)>-1&&Wt.push(239,191,189);if(Qt=null,he<128){if(($t-=1)<0)break;Wt.push(he)}else if(he<2048){if(($t-=2)<0)break;Wt.push(he>>6|192,he&63|128)}else if(he<65536){if(($t-=3)<0)break;Wt.push(he>>12|224,he>>6&63|128,he&63|128)}else if(he<1114112){if(($t-=4)<0)break;Wt.push(he>>18|240,he>>12&63|128,he>>6&63|128,he&63|128)}else throw new Error("Invalid code point")}return Wt}function Ne(ue){for(var $t=[],he=0;he>8,Qt=he%256,Wt.push(Qt),Wt.push(ye);return Wt}function Ae(ue){return pt.toByteArray(Se(ue))}function Xe(ue,$t,he,ye){for(var Qt=0;Qt=$t.length||Qt>=ue.length);++Qt)$t[Qt+he]=ue[Qt];return Qt}function Be(ue,$t){return ue instanceof $t||ue!=null&&ue.constructor!=null&&ue.constructor.name!=null&&ue.constructor.name===$t.name}function Te(ue){return ue!==ue}}).call(this)}).call(this,rt("buffer").Buffer)},{"base64-js":87,buffer:90,ieee754:357}],91:[function(rt,kt,Ct){kt.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],92:[function(rt,kt,Ct){"use strict";var St=rt("get-intrinsic"),pt=rt("./"),vt=pt(St("String.prototype.indexOf"));kt.exports=function(xt,dt){var ft=St(xt,!!dt);return typeof ft=="function"&&vt(xt,".prototype.")>-1?pt(ft):ft}},{"./":93,"get-intrinsic":348}],93:[function(rt,kt,Ct){"use strict";var St=rt("function-bind"),pt=rt("get-intrinsic"),vt=pt("%Function.prototype.apply%"),yt=pt("%Function.prototype.call%"),xt=pt("%Reflect.apply%",!0)||St.call(yt,vt),dt=pt("%Object.getOwnPropertyDescriptor%",!0),ft=pt("%Object.defineProperty%",!0),ct=pt("%Math.max%");if(ft)try{ft({},"a",{value:1})}catch(E){ft=null}kt.exports=function(z){var ot=xt(St,yt,arguments);if(dt&&ft){var it=dt(ot,"length");it.configurable&&ft(ot,"length",{value:1+ct(0,z.length-(arguments.length-1))})}return ot};var lt=function(){return xt(St,vt,arguments)};ft?ft(kt.exports,"apply",{value:lt}):kt.exports.apply=lt},{"function-bind":347,"get-intrinsic":348}],94:[function(rt,kt,Ct){"use strict";var St=Array.prototype.slice;kt.exports=pt;function pt(yt,xt){if(!(this instanceof pt))return new pt(yt,xt);this.src=yt,this._withAccess=xt}pt.prototype.withAccess=function(yt){return this._withAccess=yt!==!1,this},pt.prototype.pick=function(yt){return Array.isArray(yt)||(yt=St.call(arguments)),yt.length&&(this.keys=yt),this},pt.prototype.to=function(yt){if(yt=yt||{},!this.src)return yt;var xt=this.keys||Object.keys(this.src);if(!this._withAccess){for(var dt=0;dt>8&255]},le=function(Bt){return[Bt&255,Bt>>8&255,Bt>>16&255,Bt>>24&255]},Ne=function(Bt){return Bt[3]<<24|Bt[2]<<16|Bt[1]<<8|Bt[0]},ae=function(Bt){return Oe(Bt,23,4)},Ae=function(Bt){return Oe(Bt,52,8)},Xe=function(Bt,te){Et(Bt[Ht],te,{get:function(){return Ut(this)[te]}})},Be=function(Bt,te,me,Jt){var Ie=ot(me),Ue=Ut(Bt);if(Ie+te>Ue.byteLength)throw fe(se);var Je=Ut(Ue.buffer).bytes,Ze=Ie+Ue.byteOffset,nn=_t(Je,Ze,Ze+te);return Jt?nn:_e(nn)},Te=function(Bt,te,me,Jt,Ie,Ue){var Je=ot(me),Ze=Ut(Bt);if(Je+te>Ze.byteLength)throw fe(se);for(var nn=Ut(Ze.buffer).bytes,fn=Je+Ze.byteOffset,An=Jt(+Ie),En=0;EnIe)throw fe("Wrong offset");if(Jt=Jt===void 0?Ie-Ue:z(Jt),Ue+Jt>Ie)throw fe(ne);Xt(this,{buffer:te,byteLength:Jt,byteOffset:Ue}),vt||(this.buffer=te,this.byteLength=Jt,this.byteOffset=Ue)},ke=we[Ht],vt&&(Xe(Kt,"byteLength"),Xe(we,"buffer"),Xe(we,"byteLength"),Xe(we,"byteOffset")),ft(ke,{getInt8:function(te){return Be(this,1,te)[0]<<24>>24},getUint8:function(te){return Be(this,1,te)[0]},getInt16:function(te){var me=Be(this,2,te,arguments.length>1?arguments[1]:void 0);return(me[1]<<8|me[0])<<16>>16},getUint16:function(te){var me=Be(this,2,te,arguments.length>1?arguments[1]:void 0);return me[1]<<8|me[0]},getInt32:function(te){return Ne(Be(this,4,te,arguments.length>1?arguments[1]:void 0))},getUint32:function(te){return Ne(Be(this,4,te,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(te){return He(Be(this,4,te,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(te){return He(Be(this,8,te,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(te,me){Te(this,1,te,Se,me)},setUint8:function(te,me){Te(this,1,te,Se,me)},setInt16:function(te,me){Te(this,2,te,xe,me,arguments.length>2?arguments[2]:void 0)},setUint16:function(te,me){Te(this,2,te,xe,me,arguments.length>2?arguments[2]:void 0)},setInt32:function(te,me){Te(this,4,te,le,me,arguments.length>2?arguments[2]:void 0)},setUint32:function(te,me){Te(this,4,te,le,me,arguments.length>2?arguments[2]:void 0)},setFloat32:function(te,me){Te(this,4,te,ae,me,arguments.length>2?arguments[2]:void 0)},setFloat64:function(te,me){Te(this,8,te,Ae,me,arguments.length>2?arguments[2]:void 0)}});else{var ue=Lt&&ve.name!==Gt;if(!ct(function(){ve(1)})||!ct(function(){new ve(-1)})||ct(function(){return new ve,new ve(1.5),new ve(NaN),ue&&!It})){Kt=function(te){return lt(this,re),new ve(ot(te))},Kt[Ht]=re;for(var $t=wt(ve),he=0,ye;$t.length>he;)(ye=$t[he++])in Kt||dt(Kt,ye,ve[ye]);re.constructor=Kt}else ue&&It&&dt(ve,"name",Gt);ut&&at(ke)!==Me&&ut(ke,Me);var Qt=new we(new Kt(2)),Wt=pt(ke.setInt8);Qt.setInt8(0,2147483648),Qt.setInt8(1,2147483649),(Qt.getInt8(0)||!Qt.getInt8(1))&&ft(ke,{setInt8:function(te,me){Wt(this,te,me<<24>>24)},setUint8:function(te,me){Wt(this,te,me<<24>>24)}},{unsafe:!0})}Mt(Kt,Gt),Mt(we,Vt),kt.exports={ArrayBuffer:Kt,DataView:we}},{"../internals/an-instance":100,"../internals/array-buffer-native":102,"../internals/array-fill":106,"../internals/array-slice-simple":116,"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/fails":150,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/ieee754":169,"../internals/internal-state":173,"../internals/object-define-property":198,"../internals/object-get-own-property-names":201,"../internals/object-get-prototype-of":203,"../internals/object-set-prototype-of":208,"../internals/redefine-all":221,"../internals/set-to-string-tag":234,"../internals/to-index":246,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],105:[function(rt,kt,Ct){"use strict";var St=rt("../internals/to-object"),pt=rt("../internals/to-absolute-index"),vt=rt("../internals/length-of-array-like"),yt=Math.min;kt.exports=[].copyWithin||function(dt,ft){var ct=St(this),lt=vt(ct),E=pt(dt,lt),z=pt(ft,lt),ot=arguments.length>2?arguments[2]:void 0,it=yt((ot===void 0?lt:pt(ot,lt))-z,lt-E),at=1;for(z0;)z in ct?ct[E]=ct[z]:delete ct[E],E+=at,z+=at;return ct}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],106:[function(rt,kt,Ct){"use strict";var St=rt("../internals/to-object"),pt=rt("../internals/to-absolute-index"),vt=rt("../internals/length-of-array-like");kt.exports=function(xt){for(var dt=St(this),ft=vt(dt),ct=arguments.length,lt=pt(ct>1?arguments[1]:void 0,ft),E=ct>2?arguments[2]:void 0,z=E===void 0?ft:pt(E,ft);z>lt;)dt[lt++]=xt;return dt}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],107:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-iteration").forEach,pt=rt("../internals/array-method-is-strict"),vt=pt("forEach");kt.exports=vt?[].forEach:function(xt){return St(this,xt,arguments.length>1?arguments[1]:void 0)}},{"../internals/array-iteration":111,"../internals/array-method-is-strict":114}],108:[function(rt,kt,Ct){var St=rt("../internals/length-of-array-like");kt.exports=function(pt,vt){for(var yt=0,xt=St(vt),dt=new pt(xt);xt>yt;)dt[yt]=vt[yt++];return dt}},{"../internals/length-of-array-like":188}],109:[function(rt,kt,Ct){"use strict";var St=rt("../internals/global"),pt=rt("../internals/function-bind-context"),vt=rt("../internals/function-call"),yt=rt("../internals/to-object"),xt=rt("../internals/call-with-safe-iteration-closing"),dt=rt("../internals/is-array-iterator-method"),ft=rt("../internals/is-constructor"),ct=rt("../internals/length-of-array-like"),lt=rt("../internals/create-property"),E=rt("../internals/get-iterator"),z=rt("../internals/get-iterator-method"),ot=St.Array;kt.exports=function(at){var ut=yt(at),wt=ft(this),Et=arguments.length,At=Et>1?arguments[1]:void 0,_t=At!==void 0;_t&&(At=pt(At,Et>2?arguments[2]:void 0));var Mt=z(ut),jt=0,Lt,It,Ut,Xt,Gt,Vt;if(Mt&&!(this==ot&&dt(Mt)))for(Xt=E(ut,Mt),Gt=Xt.next,It=wt?new this:[];!(Ut=vt(Gt,Xt)).done;jt++)Vt=_t?xt(Xt,At,[Ut.value,jt],!0):Ut.value,lt(It,jt,Vt);else for(Lt=ct(ut),It=wt?new this(Lt):ot(Lt);Lt>jt;jt++)Vt=_t?At(ut[jt],jt):ut[jt],lt(It,jt,Vt);return It.length=jt,It}},{"../internals/call-with-safe-iteration-closing":121,"../internals/create-property":131,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/is-array-iterator-method":174,"../internals/is-constructor":177,"../internals/length-of-array-like":188,"../internals/to-object":250}],110:[function(rt,kt,Ct){var St=rt("../internals/to-indexed-object"),pt=rt("../internals/to-absolute-index"),vt=rt("../internals/length-of-array-like"),yt=function(xt){return function(dt,ft,ct){var lt=St(dt),E=vt(lt),z=pt(ct,E),ot;if(xt&&ft!=ft){for(;E>z;)if(ot=lt[z++],ot!=ot)return!0}else for(;E>z;z++)if((xt||z in lt)&<[z]===ft)return xt||z||0;return!xt&&-1}};kt.exports={includes:yt(!0),indexOf:yt(!1)}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247}],111:[function(rt,kt,Ct){var St=rt("../internals/function-bind-context"),pt=rt("../internals/function-uncurry-this"),vt=rt("../internals/indexed-object"),yt=rt("../internals/to-object"),xt=rt("../internals/length-of-array-like"),dt=rt("../internals/array-species-create"),ft=pt([].push),ct=function(lt){var E=lt==1,z=lt==2,ot=lt==3,it=lt==4,at=lt==6,ut=lt==7,wt=lt==5||at;return function(Et,At,_t,Mt){for(var jt=yt(Et),Lt=vt(jt),It=St(At,_t),Ut=xt(Lt),Xt=0,Gt=Mt||dt,Vt=E?Gt(Et,Ut):z||ut?Gt(Et,0):void 0,Ht,ne;Ut>Xt;Xt++)if((wt||Xt in Lt)&&(Ht=Lt[Xt],ne=It(Ht,Xt,jt),lt))if(E)Vt[Xt]=ne;else if(ne)switch(lt){case 3:return!0;case 5:return Ht;case 6:return Xt;case 2:ft(Vt,Ht)}else switch(lt){case 4:return!1;case 7:ft(Vt,Ht)}return at?-1:ot||it?it:Vt}};kt.exports={forEach:ct(0),map:ct(1),filter:ct(2),some:ct(3),every:ct(4),find:ct(5),findIndex:ct(6),filterReject:ct(7)}},{"../internals/array-species-create":120,"../internals/function-bind-context":153,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],112:[function(rt,kt,Ct){"use strict";var St=rt("../internals/function-apply"),pt=rt("../internals/to-indexed-object"),vt=rt("../internals/to-integer-or-infinity"),yt=rt("../internals/length-of-array-like"),xt=rt("../internals/array-method-is-strict"),dt=Math.min,ft=[].lastIndexOf,ct=!!ft&&1/[1].lastIndexOf(1,-0)<0,lt=xt("lastIndexOf"),E=ct||!lt;kt.exports=E?function(ot){if(ct)return St(ft,this,arguments)||0;var it=pt(this),at=yt(it),ut=at-1;for(arguments.length>1&&(ut=dt(ut,vt(arguments[1]))),ut<0&&(ut=at+ut);ut>=0;ut--)if(ut in it&&it[ut]===ot)return ut||0;return-1}:ft},{"../internals/array-method-is-strict":114,"../internals/function-apply":152,"../internals/length-of-array-like":188,"../internals/to-indexed-object":247,"../internals/to-integer-or-infinity":248}],113:[function(rt,kt,Ct){var St=rt("../internals/fails"),pt=rt("../internals/well-known-symbol"),vt=rt("../internals/engine-v8-version"),yt=pt("species");kt.exports=function(xt){return vt>=51||!St(function(){var dt=[],ft=dt.constructor={};return ft[yt]=function(){return{foo:1}},dt[xt](Boolean).foo!==1})}},{"../internals/engine-v8-version":146,"../internals/fails":150,"../internals/well-known-symbol":268}],114:[function(rt,kt,Ct){"use strict";var St=rt("../internals/fails");kt.exports=function(pt,vt){var yt=[][pt];return!!yt&&St(function(){yt.call(null,vt||function(){return 1},1)})}},{"../internals/fails":150}],115:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/a-callable"),vt=rt("../internals/to-object"),yt=rt("../internals/indexed-object"),xt=rt("../internals/length-of-array-like"),dt=St.TypeError,ft=function(ct){return function(lt,E,z,ot){pt(E);var it=vt(lt),at=yt(it),ut=xt(it),wt=ct?ut-1:0,Et=ct?-1:1;if(z<2)for(;;){if(wt in at){ot=at[wt],wt+=Et;break}if(wt+=Et,ct?wt<0:ut<=wt)throw dt("Reduce of empty array with no initial value")}for(;ct?wt>=0:ut>wt;wt+=Et)wt in at&&(ot=E(ot,at[wt],wt,it));return ot}};kt.exports={left:ft(!1),right:ft(!0)}},{"../internals/a-callable":95,"../internals/global":163,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],116:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/to-absolute-index"),vt=rt("../internals/length-of-array-like"),yt=rt("../internals/create-property"),xt=St.Array,dt=Math.max;kt.exports=function(ft,ct,lt){for(var E=vt(ft),z=pt(ct,E),ot=pt(lt===void 0?E:lt,E),it=xt(dt(ot-z,0)),at=0;z0;)dt[z]=dt[--z];z!==lt++&&(dt[z]=E)}return dt},xt=function(dt,ft,ct,lt){for(var E=ft.length,z=ct.length,ot=0,it=0;ot0&&ft[0]<4?1:+(ft[0]+ft[1])),!ct&&pt&&(ft=pt.match(/Edge\/(\d+)/),(!ft||ft[1]>=74)&&(ft=pt.match(/Chrome\/(\d+)/),ft&&(ct=+ft[1]))),kt.exports=ct},{"../internals/engine-user-agent":145,"../internals/global":163}],147:[function(rt,kt,Ct){var St=rt("../internals/engine-user-agent"),pt=St.match(/AppleWebKit\/(\d+)\./);kt.exports=!!pt&&+pt[1]},{"../internals/engine-user-agent":145}],148:[function(rt,kt,Ct){kt.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],149:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/object-get-own-property-descriptor").f,vt=rt("../internals/create-non-enumerable-property"),yt=rt("../internals/redefine"),xt=rt("../internals/set-global"),dt=rt("../internals/copy-constructor-properties"),ft=rt("../internals/is-forced");kt.exports=function(ct,lt){var E=ct.target,z=ct.global,ot=ct.stat,it,at,ut,wt,Et,At;if(z?at=St:ot?at=St[E]||xt(E,{}):at=(St[E]||{}).prototype,at)for(ut in lt){if(Et=lt[ut],ct.noTargetGet?(At=pt(at,ut),wt=At&&At.value):wt=at[ut],it=ft(z?ut:E+(ot?".":"#")+ut,ct.forced),!it&&wt!==void 0){if(typeof Et==typeof wt)continue;dt(Et,wt)}(ct.sham||wt&&wt.sham)&&vt(Et,"sham",!0),yt(at,ut,Et,ct)}}},{"../internals/copy-constructor-properties":125,"../internals/create-non-enumerable-property":129,"../internals/global":163,"../internals/is-forced":178,"../internals/object-get-own-property-descriptor":199,"../internals/redefine":222,"../internals/set-global":232}],150:[function(rt,kt,Ct){kt.exports=function(St){try{return!!St()}catch(pt){return!0}}},{}],151:[function(rt,kt,Ct){"use strict";rt("../modules/es.regexp.exec");var St=rt("../internals/function-uncurry-this"),pt=rt("../internals/redefine"),vt=rt("../internals/regexp-exec"),yt=rt("../internals/fails"),xt=rt("../internals/well-known-symbol"),dt=rt("../internals/create-non-enumerable-property"),ft=xt("species"),ct=RegExp.prototype;kt.exports=function(lt,E,z,ot){var it=xt(lt),at=!yt(function(){var At={};return At[it]=function(){return 7},""[lt](At)!=7}),ut=at&&!yt(function(){var At=!1,_t=/a/;return lt==="split"&&(_t={},_t.constructor={},_t.constructor[ft]=function(){return _t},_t.flags="",_t[it]=/./[it]),_t.exec=function(){return At=!0,null},_t[it](""),!At});if(!at||!ut||z){var wt=St(/./[it]),Et=E(it,""[lt],function(At,_t,Mt,jt,Lt){var It=St(At),Ut=_t.exec;return Ut===vt||Ut===ct.exec?at&&!Lt?{done:!0,value:wt(_t,Mt,jt)}:{done:!0,value:It(Mt,_t,jt)}:{done:!1}});pt(String.prototype,lt,Et[0]),pt(ct,it,Et[1])}ot&&dt(ct[it],"sham",!0)}},{"../internals/create-non-enumerable-property":129,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/redefine":222,"../internals/regexp-exec":224,"../internals/well-known-symbol":268,"../modules/es.regexp.exec":300}],152:[function(rt,kt,Ct){var St=rt("../internals/function-bind-native"),pt=Function.prototype,vt=pt.apply,yt=pt.call;kt.exports=typeof Reflect=="object"&&Reflect.apply||(St?yt.bind(vt):function(){return yt.apply(vt,arguments)})},{"../internals/function-bind-native":154}],153:[function(rt,kt,Ct){var St=rt("../internals/function-uncurry-this"),pt=rt("../internals/a-callable"),vt=rt("../internals/function-bind-native"),yt=St(St.bind);kt.exports=function(xt,dt){return pt(xt),dt===void 0?xt:vt?yt(xt,dt):function(){return xt.apply(dt,arguments)}}},{"../internals/a-callable":95,"../internals/function-bind-native":154,"../internals/function-uncurry-this":157}],154:[function(rt,kt,Ct){var St=rt("../internals/fails");kt.exports=!St(function(){var pt=function(){}.bind();return typeof pt!="function"||pt.hasOwnProperty("prototype")})},{"../internals/fails":150}],155:[function(rt,kt,Ct){var St=rt("../internals/function-bind-native"),pt=Function.prototype.call;kt.exports=St?pt.bind(pt):function(){return pt.apply(pt,arguments)}},{"../internals/function-bind-native":154}],156:[function(rt,kt,Ct){var St=rt("../internals/descriptors"),pt=rt("../internals/has-own-property"),vt=Function.prototype,yt=St&&Object.getOwnPropertyDescriptor,xt=pt(vt,"name"),dt=xt&&function(){}.name==="something",ft=xt&&(!St||St&&yt(vt,"name").configurable);kt.exports={EXISTS:xt,PROPER:dt,CONFIGURABLE:ft}},{"../internals/descriptors":134,"../internals/has-own-property":164}],157:[function(rt,kt,Ct){var St=rt("../internals/function-bind-native"),pt=Function.prototype,vt=pt.bind,yt=pt.call,xt=St&&vt.bind(yt,yt);kt.exports=St?function(dt){return dt&&xt(dt)}:function(dt){return dt&&function(){return yt.apply(dt,arguments)}}},{"../internals/function-bind-native":154}],158:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/is-callable"),vt=function(yt){return pt(yt)?yt:void 0};kt.exports=function(yt,xt){return arguments.length<2?vt(St[yt]):St[yt]&&St[yt][xt]}},{"../internals/global":163,"../internals/is-callable":176}],159:[function(rt,kt,Ct){var St=rt("../internals/classof"),pt=rt("../internals/get-method"),vt=rt("../internals/iterators"),yt=rt("../internals/well-known-symbol"),xt=yt("iterator");kt.exports=function(dt){if(dt!=null)return pt(dt,xt)||pt(dt,"@@iterator")||vt[St(dt)]}},{"../internals/classof":124,"../internals/get-method":161,"../internals/iterators":187,"../internals/well-known-symbol":268}],160:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/function-call"),vt=rt("../internals/a-callable"),yt=rt("../internals/an-object"),xt=rt("../internals/try-to-string"),dt=rt("../internals/get-iterator-method"),ft=St.TypeError;kt.exports=function(ct,lt){var E=arguments.length<2?dt(ct):lt;if(vt(E))return yt(pt(E,ct));throw ft(xt(ct)+" is not iterable")}},{"../internals/a-callable":95,"../internals/an-object":101,"../internals/function-call":155,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/try-to-string":257}],161:[function(rt,kt,Ct){var St=rt("../internals/a-callable");kt.exports=function(pt,vt){var yt=pt[vt];return yt==null?void 0:St(yt)}},{"../internals/a-callable":95}],162:[function(rt,kt,Ct){var St=rt("../internals/function-uncurry-this"),pt=rt("../internals/to-object"),vt=Math.floor,yt=St("".charAt),xt=St("".replace),dt=St("".slice),ft=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ct=/\$([$&'`]|\d{1,2})/g;kt.exports=function(lt,E,z,ot,it,at){var ut=z+lt.length,wt=ot.length,Et=ct;return it!==void 0&&(it=pt(it),Et=ft),xt(at,Et,function(At,_t){var Mt;switch(yt(_t,0)){case"$":return"$";case"&":return lt;case"`":return dt(E,0,z);case"'":return dt(E,ut);case"<":Mt=it[dt(_t,1,-1)];break;default:var jt=+_t;if(jt===0)return At;if(jt>wt){var Lt=vt(jt/10);return Lt===0?At:Lt<=wt?ot[Lt-1]===void 0?yt(_t,1):ot[Lt-1]+yt(_t,1):At}Mt=ot[jt-1]}return Mt===void 0?"":Mt})}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],163:[function(rt,kt,Ct){(function(St){(function(){var pt=function(vt){return vt&&vt.Math==Math&&vt};kt.exports=pt(typeof globalThis=="object"&&globalThis)||pt(typeof window=="object"&&window)||pt(typeof self=="object"&&self)||pt(typeof St=="object"&&St)||function(){return this}()||Function("return this")()}).call(this)}).call(this,typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],164:[function(rt,kt,Ct){var St=rt("../internals/function-uncurry-this"),pt=rt("../internals/to-object"),vt=St({}.hasOwnProperty);kt.exports=Object.hasOwn||function(xt,dt){return vt(pt(xt),dt)}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],165:[function(rt,kt,Ct){kt.exports={}},{}],166:[function(rt,kt,Ct){var St=rt("../internals/global");kt.exports=function(pt,vt){var yt=St.console;yt&&yt.error&&(arguments.length==1?yt.error(pt):yt.error(pt,vt))}},{"../internals/global":163}],167:[function(rt,kt,Ct){var St=rt("../internals/get-built-in");kt.exports=St("document","documentElement")},{"../internals/get-built-in":158}],168:[function(rt,kt,Ct){var St=rt("../internals/descriptors"),pt=rt("../internals/fails"),vt=rt("../internals/document-create-element");kt.exports=!St&&!pt(function(){return Object.defineProperty(vt("div"),"a",{get:function(){return 7}}).a!=7})},{"../internals/descriptors":134,"../internals/document-create-element":135,"../internals/fails":150}],169:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=St.Array,vt=Math.abs,yt=Math.pow,xt=Math.floor,dt=Math.log,ft=Math.LN2,ct=function(E,z,ot){var it=pt(ot),at=ot*8-z-1,ut=(1<>1,Et=z===23?yt(2,-24)-yt(2,-77):0,At=E<0||E===0&&1/E<0?1:0,_t=0,Mt,jt,Lt;for(E=vt(E),E!=E||E===1/0?(jt=E!=E?1:0,Mt=ut):(Mt=xt(dt(E)/ft),Lt=yt(2,-Mt),E*Lt<1&&(Mt--,Lt*=2),Mt+wt>=1?E+=Et/Lt:E+=Et*yt(2,1-wt),E*Lt>=2&&(Mt++,Lt/=2),Mt+wt>=ut?(jt=0,Mt=ut):Mt+wt>=1?(jt=(E*Lt-1)*yt(2,z),Mt=Mt+wt):(jt=E*yt(2,wt-1)*yt(2,z),Mt=0));z>=8;)it[_t++]=jt&255,jt/=256,z-=8;for(Mt=Mt<0;)it[_t++]=Mt&255,Mt/=256,at-=8;return it[--_t]|=At*128,it},lt=function(E,z){var ot=E.length,it=ot*8-z-1,at=(1<>1,wt=it-7,Et=ot-1,At=E[Et--],_t=At&127,Mt;for(At>>=7;wt>0;)_t=_t*256+E[Et--],wt-=8;for(Mt=_t&(1<<-wt)-1,_t>>=-wt,wt+=z;wt>0;)Mt=Mt*256+E[Et--],wt-=8;if(_t===0)_t=1-ut;else{if(_t===at)return Mt?NaN:At?-1/0:1/0;Mt=Mt+yt(2,z),_t=_t-ut}return(At?-1:1)*Mt*yt(2,_t-z)};kt.exports={pack:ct,unpack:lt}},{"../internals/global":163}],170:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/function-uncurry-this"),vt=rt("../internals/fails"),yt=rt("../internals/classof-raw"),xt=St.Object,dt=pt("".split);kt.exports=vt(function(){return!xt("z").propertyIsEnumerable(0)})?function(ft){return yt(ft)=="String"?dt(ft,""):xt(ft)}:xt},{"../internals/classof-raw":123,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],171:[function(rt,kt,Ct){var St=rt("../internals/is-callable"),pt=rt("../internals/is-object"),vt=rt("../internals/object-set-prototype-of");kt.exports=function(yt,xt,dt){var ft,ct;return vt&&St(ft=xt.constructor)&&ft!==dt&&pt(ct=ft.prototype)&&ct!==dt.prototype&&vt(yt,ct),yt}},{"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-set-prototype-of":208}],172:[function(rt,kt,Ct){var St=rt("../internals/function-uncurry-this"),pt=rt("../internals/is-callable"),vt=rt("../internals/shared-store"),yt=St(Function.toString);pt(vt.inspectSource)||(vt.inspectSource=function(xt){return yt(xt)}),kt.exports=vt.inspectSource},{"../internals/function-uncurry-this":157,"../internals/is-callable":176,"../internals/shared-store":236}],173:[function(rt,kt,Ct){var St=rt("../internals/native-weak-map"),pt=rt("../internals/global"),vt=rt("../internals/function-uncurry-this"),yt=rt("../internals/is-object"),xt=rt("../internals/create-non-enumerable-property"),dt=rt("../internals/has-own-property"),ft=rt("../internals/shared-store"),ct=rt("../internals/shared-key"),lt=rt("../internals/hidden-keys"),E="Object already initialized",z=pt.TypeError,ot=pt.WeakMap,it,at,ut,wt=function(It){return ut(It)?at(It):it(It,{})},Et=function(It){return function(Ut){var Xt;if(!yt(Ut)||(Xt=at(Ut)).type!==It)throw z("Incompatible receiver, "+It+" required");return Xt}};if(St||ft.state){var At=ft.state||(ft.state=new ot),_t=vt(At.get),Mt=vt(At.has),jt=vt(At.set);it=function(It,Ut){if(Mt(At,It))throw new z(E);return Ut.facade=It,jt(At,It,Ut),Ut},at=function(It){return _t(At,It)||{}},ut=function(It){return Mt(At,It)}}else{var Lt=ct("state");lt[Lt]=!0,it=function(It,Ut){if(dt(It,Lt))throw new z(E);return Ut.facade=It,xt(It,Lt,Ut),Ut},at=function(It){return dt(It,Lt)?It[Lt]:{}},ut=function(It){return dt(It,Lt)}}kt.exports={set:it,get:at,has:ut,enforce:wt,getterFor:Et}},{"../internals/create-non-enumerable-property":129,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/is-object":180,"../internals/native-weak-map":192,"../internals/shared-key":235,"../internals/shared-store":236}],174:[function(rt,kt,Ct){var St=rt("../internals/well-known-symbol"),pt=rt("../internals/iterators"),vt=St("iterator"),yt=Array.prototype;kt.exports=function(xt){return xt!==void 0&&(pt.Array===xt||yt[vt]===xt)}},{"../internals/iterators":187,"../internals/well-known-symbol":268}],175:[function(rt,kt,Ct){var St=rt("../internals/classof-raw");kt.exports=Array.isArray||function(vt){return St(vt)=="Array"}},{"../internals/classof-raw":123}],176:[function(rt,kt,Ct){kt.exports=function(St){return typeof St=="function"}},{}],177:[function(rt,kt,Ct){var St=rt("../internals/function-uncurry-this"),pt=rt("../internals/fails"),vt=rt("../internals/is-callable"),yt=rt("../internals/classof"),xt=rt("../internals/get-built-in"),dt=rt("../internals/inspect-source"),ft=function(){},ct=[],lt=xt("Reflect","construct"),E=/^\s*(?:class|function)\b/,z=St(E.exec),ot=!E.exec(ft),it=function(wt){if(!vt(wt))return!1;try{return lt(ft,ct,wt),!0}catch(Et){return!1}},at=function(wt){if(!vt(wt))return!1;switch(yt(wt)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ot||!!z(E,dt(wt))}catch(Et){return!0}};at.sham=!0,kt.exports=!lt||pt(function(){var ut;return it(it.call)||!it(Object)||!it(function(){ut=!0})||ut})?at:it},{"../internals/classof":124,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/inspect-source":172,"../internals/is-callable":176}],178:[function(rt,kt,Ct){var St=rt("../internals/fails"),pt=rt("../internals/is-callable"),vt=/#|\.prototype\./,yt=function(lt,E){var z=dt[xt(lt)];return z==ct?!0:z==ft?!1:pt(E)?St(E):!!E},xt=yt.normalize=function(lt){return String(lt).replace(vt,".").toLowerCase()},dt=yt.data={},ft=yt.NATIVE="N",ct=yt.POLYFILL="P";kt.exports=yt},{"../internals/fails":150,"../internals/is-callable":176}],179:[function(rt,kt,Ct){var St=rt("../internals/is-object"),pt=Math.floor;kt.exports=Number.isInteger||function(yt){return!St(yt)&&isFinite(yt)&&pt(yt)===yt}},{"../internals/is-object":180}],180:[function(rt,kt,Ct){var St=rt("../internals/is-callable");kt.exports=function(pt){return typeof pt=="object"?pt!==null:St(pt)}},{"../internals/is-callable":176}],181:[function(rt,kt,Ct){kt.exports=!1},{}],182:[function(rt,kt,Ct){var St=rt("../internals/is-object"),pt=rt("../internals/classof-raw"),vt=rt("../internals/well-known-symbol"),yt=vt("match");kt.exports=function(xt){var dt;return St(xt)&&((dt=xt[yt])!==void 0?!!dt:pt(xt)=="RegExp")}},{"../internals/classof-raw":123,"../internals/is-object":180,"../internals/well-known-symbol":268}],183:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/get-built-in"),vt=rt("../internals/is-callable"),yt=rt("../internals/object-is-prototype-of"),xt=rt("../internals/use-symbol-as-uid"),dt=St.Object;kt.exports=xt?function(ft){return typeof ft=="symbol"}:function(ft){var ct=pt("Symbol");return vt(ct)&&yt(ct.prototype,dt(ft))}},{"../internals/get-built-in":158,"../internals/global":163,"../internals/is-callable":176,"../internals/object-is-prototype-of":204,"../internals/use-symbol-as-uid":264}],184:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/function-bind-context"),vt=rt("../internals/function-call"),yt=rt("../internals/an-object"),xt=rt("../internals/try-to-string"),dt=rt("../internals/is-array-iterator-method"),ft=rt("../internals/length-of-array-like"),ct=rt("../internals/object-is-prototype-of"),lt=rt("../internals/get-iterator"),E=rt("../internals/get-iterator-method"),z=rt("../internals/iterator-close"),ot=St.TypeError,it=function(ut,wt){this.stopped=ut,this.result=wt},at=it.prototype;kt.exports=function(ut,wt,Et){var At=Et&&Et.that,_t=!!(Et&&Et.AS_ENTRIES),Mt=!!(Et&&Et.IS_ITERATOR),jt=!!(Et&&Et.INTERRUPTED),Lt=pt(wt,At),It,Ut,Xt,Gt,Vt,Ht,ne,se=function(Kt){return It&&z(It,"normal",Kt),new it(!0,Kt)},ve=function(Kt){return _t?(yt(Kt),jt?Lt(Kt[0],Kt[1],se):Lt(Kt[0],Kt[1])):jt?Lt(Kt,se):Lt(Kt)};if(Mt)It=ut;else{if(Ut=E(ut),!Ut)throw ot(xt(ut)+" is not iterable");if(dt(Ut)){for(Xt=0,Gt=ft(ut);Gt>Xt;Xt++)if(Vt=ve(ut[Xt]),Vt&&ct(at,Vt))return Vt;return new it(!1)}It=lt(ut,Ut)}for(Ht=It.next;!(ne=vt(Ht,It)).done;){try{Vt=ve(ne.value)}catch(Kt){z(It,"throw",Kt)}if(typeof Vt=="object"&&Vt&&ct(at,Vt))return Vt}return new it(!1)}},{"../internals/an-object":101,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/is-array-iterator-method":174,"../internals/iterator-close":185,"../internals/length-of-array-like":188,"../internals/object-is-prototype-of":204,"../internals/try-to-string":257}],185:[function(rt,kt,Ct){var St=rt("../internals/function-call"),pt=rt("../internals/an-object"),vt=rt("../internals/get-method");kt.exports=function(yt,xt,dt){var ft,ct;pt(yt);try{if(ft=vt(yt,"return"),!ft){if(xt==="throw")throw dt;return dt}ft=St(ft,yt)}catch(lt){ct=!0,ft=lt}if(xt==="throw")throw dt;if(ct)throw ft;return pt(ft),dt}},{"../internals/an-object":101,"../internals/function-call":155,"../internals/get-method":161}],186:[function(rt,kt,Ct){"use strict";var St=rt("../internals/fails"),pt=rt("../internals/is-callable"),vt=rt("../internals/object-create"),yt=rt("../internals/object-get-prototype-of"),xt=rt("../internals/redefine"),dt=rt("../internals/well-known-symbol"),ft=rt("../internals/is-pure"),ct=dt("iterator"),lt=!1,E,z,ot;[].keys&&(ot=[].keys(),"next"in ot?(z=yt(yt(ot)),z!==Object.prototype&&(E=z)):lt=!0);var it=E==null||St(function(){var at={};return E[ct].call(at)!==at});it?E={}:ft&&(E=vt(E)),pt(E[ct])||xt(E,ct,function(){return this}),kt.exports={IteratorPrototype:E,BUGGY_SAFARI_ITERATORS:lt}},{"../internals/fails":150,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/object-create":196,"../internals/object-get-prototype-of":203,"../internals/redefine":222,"../internals/well-known-symbol":268}],187:[function(rt,kt,Ct){arguments[4][165][0].apply(Ct,arguments)},{dup:165}],188:[function(rt,kt,Ct){var St=rt("../internals/to-length");kt.exports=function(pt){return St(pt.length)}},{"../internals/to-length":249}],189:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/function-bind-context"),vt=rt("../internals/object-get-own-property-descriptor").f,yt=rt("../internals/task").set,xt=rt("../internals/engine-is-ios"),dt=rt("../internals/engine-is-ios-pebble"),ft=rt("../internals/engine-is-webos-webkit"),ct=rt("../internals/engine-is-node"),lt=St.MutationObserver||St.WebKitMutationObserver,E=St.document,z=St.process,ot=St.Promise,it=vt(St,"queueMicrotask"),at=it&&it.value,ut,wt,Et,At,_t,Mt,jt,Lt;at||(ut=function(){var It,Ut;for(ct&&(It=z.domain)&&It.exit();wt;){Ut=wt.fn,wt=wt.next;try{Ut()}catch(Xt){throw wt?At():Et=void 0,Xt}}Et=void 0,It&&It.enter()},!xt&&!ct&&!ft&<&&E?(_t=!0,Mt=E.createTextNode(""),new lt(ut).observe(Mt,{characterData:!0}),At=function(){Mt.data=_t=!_t}):!dt&&ot&&ot.resolve?(jt=ot.resolve(void 0),jt.constructor=ot,Lt=pt(jt.then,jt),At=function(){Lt(ut)}):ct?At=function(){z.nextTick(ut)}:(yt=pt(yt,St),At=function(){yt(ut)})),kt.exports=at||function(It){var Ut={fn:It,next:void 0};Et&&(Et.next=Ut),wt||(wt=Ut,At()),Et=Ut}},{"../internals/engine-is-ios":142,"../internals/engine-is-ios-pebble":141,"../internals/engine-is-node":143,"../internals/engine-is-webos-webkit":144,"../internals/function-bind-context":153,"../internals/global":163,"../internals/object-get-own-property-descriptor":199,"../internals/task":243}],190:[function(rt,kt,Ct){var St=rt("../internals/native-symbol");kt.exports=St&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/native-symbol":191}],191:[function(rt,kt,Ct){var St=rt("../internals/engine-v8-version"),pt=rt("../internals/fails");kt.exports=!!Object.getOwnPropertySymbols&&!pt(function(){var vt=Symbol();return!String(vt)||!(Object(vt)instanceof Symbol)||!Symbol.sham&&St&&St<41})},{"../internals/engine-v8-version":146,"../internals/fails":150}],192:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/is-callable"),vt=rt("../internals/inspect-source"),yt=St.WeakMap;kt.exports=pt(yt)&&/native code/.test(vt(yt))},{"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176}],193:[function(rt,kt,Ct){"use strict";var St=rt("../internals/a-callable"),pt=function(vt){var yt,xt;this.promise=new vt(function(dt,ft){if(yt!==void 0||xt!==void 0)throw TypeError("Bad Promise constructor");yt=dt,xt=ft}),this.resolve=St(yt),this.reject=St(xt)};kt.exports.f=function(vt){return new pt(vt)}},{"../internals/a-callable":95}],194:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/is-regexp"),vt=St.TypeError;kt.exports=function(yt){if(pt(yt))throw vt("The method doesn't accept regular expressions");return yt}},{"../internals/global":163,"../internals/is-regexp":182}],195:[function(rt,kt,Ct){"use strict";var St=rt("../internals/descriptors"),pt=rt("../internals/function-uncurry-this"),vt=rt("../internals/function-call"),yt=rt("../internals/fails"),xt=rt("../internals/object-keys"),dt=rt("../internals/object-get-own-property-symbols"),ft=rt("../internals/object-property-is-enumerable"),ct=rt("../internals/to-object"),lt=rt("../internals/indexed-object"),E=Object.assign,z=Object.defineProperty,ot=pt([].concat);kt.exports=!E||yt(function(){if(St&&E({b:1},E(z({},"a",{enumerable:!0,get:function(){z(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var it={},at={},ut=Symbol(),wt="abcdefghijklmnopqrst";return it[ut]=7,wt.split("").forEach(function(Et){at[Et]=Et}),E({},it)[ut]!=7||xt(E({},at)).join("")!=wt})?function(at,ut){for(var wt=ct(at),Et=arguments.length,At=1,_t=dt.f,Mt=ft.f;Et>At;)for(var jt=lt(arguments[At++]),Lt=_t?ot(xt(jt),_t(jt)):xt(jt),It=Lt.length,Ut=0,Xt;It>Ut;)Xt=Lt[Ut++],(!St||vt(Mt,jt,Xt))&&(wt[Xt]=jt[Xt]);return wt}:E},{"../internals/descriptors":134,"../internals/fails":150,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/object-get-own-property-symbols":202,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/to-object":250}],196:[function(rt,kt,Ct){var St=rt("../internals/an-object"),pt=rt("../internals/object-define-properties"),vt=rt("../internals/enum-bug-keys"),yt=rt("../internals/hidden-keys"),xt=rt("../internals/html"),dt=rt("../internals/document-create-element"),ft=rt("../internals/shared-key"),ct=">",lt="<",E="prototype",z="script",ot=ft("IE_PROTO"),it=function(){},at=function(_t){return lt+z+ct+_t+lt+"/"+z+ct},ut=function(_t){_t.write(at("")),_t.close();var Mt=_t.parentWindow.Object;return _t=null,Mt},wt=function(){var _t=dt("iframe"),Mt="java"+z+":",jt;return _t.style.display="none",xt.appendChild(_t),_t.src=String(Mt),jt=_t.contentWindow.document,jt.open(),jt.write(at("document.F=Object")),jt.close(),jt.F},Et,At=function(){try{Et=new ActiveXObject("htmlfile")}catch(Mt){}At=typeof document!="undefined"?document.domain&&Et?ut(Et):wt():ut(Et);for(var _t=vt.length;_t--;)delete At[E][vt[_t]];return At()};yt[ot]=!0,kt.exports=Object.create||function(Mt,jt){var Lt;return Mt!==null?(it[E]=St(Mt),Lt=new it,it[E]=null,Lt[ot]=Mt):Lt=At(),jt===void 0?Lt:pt.f(Lt,jt)}},{"../internals/an-object":101,"../internals/document-create-element":135,"../internals/enum-bug-keys":148,"../internals/hidden-keys":165,"../internals/html":167,"../internals/object-define-properties":197,"../internals/shared-key":235}],197:[function(rt,kt,Ct){var St=rt("../internals/descriptors"),pt=rt("../internals/v8-prototype-define-bug"),vt=rt("../internals/object-define-property"),yt=rt("../internals/an-object"),xt=rt("../internals/to-indexed-object"),dt=rt("../internals/object-keys");Ct.f=St&&!pt?Object.defineProperties:function(ct,lt){yt(ct);for(var E=xt(lt),z=dt(lt),ot=z.length,it=0,at;ot>it;)vt.f(ct,at=z[it++],E[at]);return ct}},{"../internals/an-object":101,"../internals/descriptors":134,"../internals/object-define-property":198,"../internals/object-keys":206,"../internals/to-indexed-object":247,"../internals/v8-prototype-define-bug":265}],198:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/descriptors"),vt=rt("../internals/ie8-dom-define"),yt=rt("../internals/v8-prototype-define-bug"),xt=rt("../internals/an-object"),dt=rt("../internals/to-property-key"),ft=St.TypeError,ct=Object.defineProperty,lt=Object.getOwnPropertyDescriptor,E="enumerable",z="configurable",ot="writable";Ct.f=pt?yt?function(at,ut,wt){if(xt(at),ut=dt(ut),xt(wt),typeof at=="function"&&ut==="prototype"&&"value"in wt&&ot in wt&&!wt[ot]){var Et=lt(at,ut);Et&&Et[ot]&&(at[ut]=wt.value,wt={configurable:z in wt?wt[z]:Et[z],enumerable:E in wt?wt[E]:Et[E],writable:!1})}return ct(at,ut,wt)}:ct:function(at,ut,wt){if(xt(at),ut=dt(ut),xt(wt),vt)try{return ct(at,ut,wt)}catch(Et){}if("get"in wt||"set"in wt)throw ft("Accessors not supported");return"value"in wt&&(at[ut]=wt.value),at}},{"../internals/an-object":101,"../internals/descriptors":134,"../internals/global":163,"../internals/ie8-dom-define":168,"../internals/to-property-key":254,"../internals/v8-prototype-define-bug":265}],199:[function(rt,kt,Ct){var St=rt("../internals/descriptors"),pt=rt("../internals/function-call"),vt=rt("../internals/object-property-is-enumerable"),yt=rt("../internals/create-property-descriptor"),xt=rt("../internals/to-indexed-object"),dt=rt("../internals/to-property-key"),ft=rt("../internals/has-own-property"),ct=rt("../internals/ie8-dom-define"),lt=Object.getOwnPropertyDescriptor;Ct.f=St?lt:function(z,ot){if(z=xt(z),ot=dt(ot),ct)try{return lt(z,ot)}catch(it){}if(ft(z,ot))return yt(!pt(vt.f,z,ot),z[ot])}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/function-call":155,"../internals/has-own-property":164,"../internals/ie8-dom-define":168,"../internals/object-property-is-enumerable":207,"../internals/to-indexed-object":247,"../internals/to-property-key":254}],200:[function(rt,kt,Ct){var St=rt("../internals/classof-raw"),pt=rt("../internals/to-indexed-object"),vt=rt("../internals/object-get-own-property-names").f,yt=rt("../internals/array-slice-simple"),xt=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],dt=function(ft){try{return vt(ft)}catch(ct){return yt(xt)}};kt.exports.f=function(ct){return xt&&St(ct)=="Window"?dt(ct):vt(pt(ct))}},{"../internals/array-slice-simple":116,"../internals/classof-raw":123,"../internals/object-get-own-property-names":201,"../internals/to-indexed-object":247}],201:[function(rt,kt,Ct){var St=rt("../internals/object-keys-internal"),pt=rt("../internals/enum-bug-keys"),vt=pt.concat("length","prototype");Ct.f=Object.getOwnPropertyNames||function(xt){return St(xt,vt)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],202:[function(rt,kt,Ct){Ct.f=Object.getOwnPropertySymbols},{}],203:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/has-own-property"),vt=rt("../internals/is-callable"),yt=rt("../internals/to-object"),xt=rt("../internals/shared-key"),dt=rt("../internals/correct-prototype-getter"),ft=xt("IE_PROTO"),ct=St.Object,lt=ct.prototype;kt.exports=dt?ct.getPrototypeOf:function(E){var z=yt(E);if(pt(z,ft))return z[ft];var ot=z.constructor;return vt(ot)&&z instanceof ot?ot.prototype:z instanceof ct?lt:null}},{"../internals/correct-prototype-getter":127,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/shared-key":235,"../internals/to-object":250}],204:[function(rt,kt,Ct){var St=rt("../internals/function-uncurry-this");kt.exports=St({}.isPrototypeOf)},{"../internals/function-uncurry-this":157}],205:[function(rt,kt,Ct){var St=rt("../internals/function-uncurry-this"),pt=rt("../internals/has-own-property"),vt=rt("../internals/to-indexed-object"),yt=rt("../internals/array-includes").indexOf,xt=rt("../internals/hidden-keys"),dt=St([].push);kt.exports=function(ft,ct){var lt=vt(ft),E=0,z=[],ot;for(ot in lt)!pt(xt,ot)&&pt(lt,ot)&&dt(z,ot);for(;ct.length>E;)pt(lt,ot=ct[E++])&&(~yt(z,ot)||dt(z,ot));return z}},{"../internals/array-includes":110,"../internals/function-uncurry-this":157,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/to-indexed-object":247}],206:[function(rt,kt,Ct){var St=rt("../internals/object-keys-internal"),pt=rt("../internals/enum-bug-keys");kt.exports=Object.keys||function(yt){return St(yt,pt)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],207:[function(rt,kt,Ct){"use strict";var St={}.propertyIsEnumerable,pt=Object.getOwnPropertyDescriptor,vt=pt&&!St.call({1:2},1);Ct.f=vt?function(xt){var dt=pt(this,xt);return!!dt&&dt.enumerable}:St},{}],208:[function(rt,kt,Ct){var St=rt("../internals/function-uncurry-this"),pt=rt("../internals/an-object"),vt=rt("../internals/a-possible-prototype");kt.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var yt=!1,xt={},dt;try{dt=St(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),dt(xt,[]),yt=xt instanceof Array}catch(ft){}return function(ct,lt){return pt(ct),vt(lt),yt?dt(ct,lt):ct.__proto__=lt,ct}}():void 0)},{"../internals/a-possible-prototype":97,"../internals/an-object":101,"../internals/function-uncurry-this":157}],209:[function(rt,kt,Ct){var St=rt("../internals/descriptors"),pt=rt("../internals/function-uncurry-this"),vt=rt("../internals/object-keys"),yt=rt("../internals/to-indexed-object"),xt=rt("../internals/object-property-is-enumerable").f,dt=pt(xt),ft=pt([].push),ct=function(lt){return function(E){for(var z=yt(E),ot=vt(z),it=ot.length,at=0,ut=[],wt;it>at;)wt=ot[at++],(!St||dt(z,wt))&&ft(ut,lt?[wt,z[wt]]:z[wt]);return ut}};kt.exports={entries:ct(!0),values:ct(!1)}},{"../internals/descriptors":134,"../internals/function-uncurry-this":157,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/to-indexed-object":247}],210:[function(rt,kt,Ct){"use strict";var St=rt("../internals/to-string-tag-support"),pt=rt("../internals/classof");kt.exports=St?{}.toString:function(){return"[object "+pt(this)+"]"}},{"../internals/classof":124,"../internals/to-string-tag-support":255}],211:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/function-call"),vt=rt("../internals/is-callable"),yt=rt("../internals/is-object"),xt=St.TypeError;kt.exports=function(dt,ft){var ct,lt;if(ft==="string"&&vt(ct=dt.toString)&&!yt(lt=pt(ct,dt))||vt(ct=dt.valueOf)&&!yt(lt=pt(ct,dt))||ft!=="string"&&vt(ct=dt.toString)&&!yt(lt=pt(ct,dt)))return lt;throw xt("Can't convert object to primitive value")}},{"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/is-object":180}],212:[function(rt,kt,Ct){var St=rt("../internals/get-built-in"),pt=rt("../internals/function-uncurry-this"),vt=rt("../internals/object-get-own-property-names"),yt=rt("../internals/object-get-own-property-symbols"),xt=rt("../internals/an-object"),dt=pt([].concat);kt.exports=St("Reflect","ownKeys")||function(ct){var lt=vt.f(xt(ct)),E=yt.f;return E?dt(lt,E(ct)):lt}},{"../internals/an-object":101,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/object-get-own-property-names":201,"../internals/object-get-own-property-symbols":202}],213:[function(rt,kt,Ct){var St=rt("../internals/global");kt.exports=St},{"../internals/global":163}],214:[function(rt,kt,Ct){kt.exports=function(St){try{return{error:!1,value:St()}}catch(pt){return{error:!0,value:pt}}}},{}],215:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/promise-native-constructor"),vt=rt("../internals/is-callable"),yt=rt("../internals/is-forced"),xt=rt("../internals/inspect-source"),dt=rt("../internals/well-known-symbol"),ft=rt("../internals/engine-is-browser"),ct=rt("../internals/is-pure"),lt=rt("../internals/engine-v8-version"),E=pt&&pt.prototype,z=dt("species"),ot=!1,it=vt(St.PromiseRejectionEvent),at=yt("Promise",function(){var ut=xt(pt),wt=ut!==String(pt);if(!wt&<===66||ct&&!(E.catch&&E.finally))return!0;if(lt>=51&&/native code/.test(ut))return!1;var Et=new pt(function(Mt){Mt(1)}),At=function(Mt){Mt(function(){},function(){})},_t=Et.constructor={};return _t[z]=At,ot=Et.then(function(){})instanceof At,ot?!wt&&ft&&!it:!0});kt.exports={CONSTRUCTOR:at,REJECTION_EVENT:it,SUBCLASSING:ot}},{"../internals/engine-is-browser":139,"../internals/engine-v8-version":146,"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176,"../internals/is-forced":178,"../internals/is-pure":181,"../internals/promise-native-constructor":216,"../internals/well-known-symbol":268}],216:[function(rt,kt,Ct){var St=rt("../internals/global");kt.exports=St.Promise},{"../internals/global":163}],217:[function(rt,kt,Ct){var St=rt("../internals/an-object"),pt=rt("../internals/is-object"),vt=rt("../internals/new-promise-capability");kt.exports=function(yt,xt){if(St(yt),pt(xt)&&xt.constructor===yt)return xt;var dt=vt.f(yt),ft=dt.resolve;return ft(xt),dt.promise}},{"../internals/an-object":101,"../internals/is-object":180,"../internals/new-promise-capability":193}],218:[function(rt,kt,Ct){var St=rt("../internals/promise-native-constructor"),pt=rt("../internals/check-correctness-of-iteration"),vt=rt("../internals/promise-constructor-detection").CONSTRUCTOR;kt.exports=vt||!pt(function(yt){St.all(yt).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":122,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216}],219:[function(rt,kt,Ct){var St=rt("../internals/object-define-property").f;kt.exports=function(pt,vt,yt){yt in pt||St(pt,yt,{configurable:!0,get:function(){return vt[yt]},set:function(xt){vt[yt]=xt}})}},{"../internals/object-define-property":198}],220:[function(rt,kt,Ct){var St=function(){this.head=null,this.tail=null};St.prototype={add:function(pt){var vt={item:pt,next:null};this.head?this.tail.next=vt:this.head=vt,this.tail=vt},get:function(){var pt=this.head;if(pt)return this.head=pt.next,this.tail===pt&&(this.tail=null),pt.item}},kt.exports=St},{}],221:[function(rt,kt,Ct){var St=rt("../internals/redefine");kt.exports=function(pt,vt,yt){for(var xt in vt)St(pt,xt,vt[xt],yt);return pt}},{"../internals/redefine":222}],222:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/is-callable"),vt=rt("../internals/has-own-property"),yt=rt("../internals/create-non-enumerable-property"),xt=rt("../internals/set-global"),dt=rt("../internals/inspect-source"),ft=rt("../internals/internal-state"),ct=rt("../internals/function-name").CONFIGURABLE,lt=ft.get,E=ft.enforce,z=String(String).split("String");(kt.exports=function(ot,it,at,ut){var wt=ut?!!ut.unsafe:!1,Et=ut?!!ut.enumerable:!1,At=ut?!!ut.noTargetGet:!1,_t=ut&&ut.name!==void 0?ut.name:it,Mt;if(pt(at)&&(String(_t).slice(0,7)==="Symbol("&&(_t="["+String(_t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!vt(at,"name")||ct&&at.name!==_t)&&yt(at,"name",_t),Mt=E(at),Mt.source||(Mt.source=z.join(typeof _t=="string"?_t:""))),ot===St){Et?ot[it]=at:xt(it,at);return}else wt?!At&&ot[it]&&(Et=!0):delete ot[it];Et?ot[it]=at:yt(ot,it,at)})(Function.prototype,"toString",function(){return pt(this)&<(this).source||dt(this)})},{"../internals/create-non-enumerable-property":129,"../internals/function-name":156,"../internals/global":163,"../internals/has-own-property":164,"../internals/inspect-source":172,"../internals/internal-state":173,"../internals/is-callable":176,"../internals/set-global":232}],223:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/function-call"),vt=rt("../internals/an-object"),yt=rt("../internals/is-callable"),xt=rt("../internals/classof-raw"),dt=rt("../internals/regexp-exec"),ft=St.TypeError;kt.exports=function(ct,lt){var E=ct.exec;if(yt(E)){var z=pt(E,ct,lt);return z!==null&&vt(z),z}if(xt(ct)==="RegExp")return pt(dt,ct,lt);throw ft("RegExp#exec called on incompatible receiver")}},{"../internals/an-object":101,"../internals/classof-raw":123,"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/regexp-exec":224}],224:[function(rt,kt,Ct){"use strict";var St=rt("../internals/function-call"),pt=rt("../internals/function-uncurry-this"),vt=rt("../internals/to-string"),yt=rt("../internals/regexp-flags"),xt=rt("../internals/regexp-sticky-helpers"),dt=rt("../internals/shared"),ft=rt("../internals/object-create"),ct=rt("../internals/internal-state").get,lt=rt("../internals/regexp-unsupported-dot-all"),E=rt("../internals/regexp-unsupported-ncg"),z=dt("native-string-replace",String.prototype.replace),ot=RegExp.prototype.exec,it=ot,at=pt("".charAt),ut=pt("".indexOf),wt=pt("".replace),Et=pt("".slice),At=function(){var Lt=/a/,It=/b*/g;return St(ot,Lt,"a"),St(ot,It,"a"),Lt.lastIndex!==0||It.lastIndex!==0}(),_t=xt.BROKEN_CARET,Mt=/()??/.exec("")[1]!==void 0,jt=At||Mt||_t||lt||E;jt&&(it=function(It){var Ut=this,Xt=ct(Ut),Gt=vt(It),Vt=Xt.raw,Ht,ne,se,ve,Kt,re,we;if(Vt)return Vt.lastIndex=Ut.lastIndex,Ht=St(it,Vt,Gt),Ut.lastIndex=Vt.lastIndex,Ht;var ke=Xt.groups,Me=_t&&Ut.sticky,ge=St(yt,Ut),fe=Ut.source,de=0,_e=Gt;if(Me&&(ge=wt(ge,"y",""),ut(ge,"g")===-1&&(ge+="g"),_e=Et(Gt,Ut.lastIndex),Ut.lastIndex>0&&(!Ut.multiline||Ut.multiline&&at(Gt,Ut.lastIndex-1)!==` +`)&&(fe="(?: "+fe+")",_e=" "+_e,de++),ne=new RegExp("^(?:"+fe+")",ge)),Mt&&(ne=new RegExp("^"+fe+"$(?!\\s)",ge)),At&&(se=Ut.lastIndex),ve=St(ot,Me?ne:Ut,_e),Me?ve?(ve.input=Et(ve.input,de),ve[0]=Et(ve[0],de),ve.index=Ut.lastIndex,Ut.lastIndex+=ve[0].length):Ut.lastIndex=0:At&&ve&&(Ut.lastIndex=Ut.global?ve.index+ve[0].length:se),Mt&&ve&&ve.length>1&&St(z,ve[0],ne,function(){for(Kt=1;Ktb)","g");return yt.exec("b").groups.a!=="b"||"b".replace(yt,"$c")!=="bc"})},{"../internals/fails":150,"../internals/global":163}],230:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=St.TypeError;kt.exports=function(vt){if(vt==null)throw pt("Can't call method on "+vt);return vt}},{"../internals/global":163}],231:[function(rt,kt,Ct){kt.exports=Object.is||function(pt,vt){return pt===vt?pt!==0||1/pt===1/vt:pt!=pt&&vt!=vt}},{}],232:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=Object.defineProperty;kt.exports=function(vt,yt){try{pt(St,vt,{value:yt,configurable:!0,writable:!0})}catch(xt){St[vt]=yt}return yt}},{"../internals/global":163}],233:[function(rt,kt,Ct){"use strict";var St=rt("../internals/get-built-in"),pt=rt("../internals/object-define-property"),vt=rt("../internals/well-known-symbol"),yt=rt("../internals/descriptors"),xt=vt("species");kt.exports=function(dt){var ft=St(dt),ct=pt.f;yt&&ft&&!ft[xt]&&ct(ft,xt,{configurable:!0,get:function(){return this}})}},{"../internals/descriptors":134,"../internals/get-built-in":158,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],234:[function(rt,kt,Ct){var St=rt("../internals/object-define-property").f,pt=rt("../internals/has-own-property"),vt=rt("../internals/well-known-symbol"),yt=vt("toStringTag");kt.exports=function(xt,dt,ft){xt&&!ft&&(xt=xt.prototype),xt&&!pt(xt,yt)&&St(xt,yt,{configurable:!0,value:dt})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],235:[function(rt,kt,Ct){var St=rt("../internals/shared"),pt=rt("../internals/uid"),vt=St("keys");kt.exports=function(yt){return vt[yt]||(vt[yt]=pt(yt))}},{"../internals/shared":237,"../internals/uid":263}],236:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/set-global"),vt="__core-js_shared__",yt=St[vt]||pt(vt,{});kt.exports=yt},{"../internals/global":163,"../internals/set-global":232}],237:[function(rt,kt,Ct){var St=rt("../internals/is-pure"),pt=rt("../internals/shared-store");(kt.exports=function(vt,yt){return pt[vt]||(pt[vt]=yt!==void 0?yt:{})})("versions",[]).push({version:"3.22.1",mode:St?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.1/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":181,"../internals/shared-store":236}],238:[function(rt,kt,Ct){var St=rt("../internals/an-object"),pt=rt("../internals/a-constructor"),vt=rt("../internals/well-known-symbol"),yt=vt("species");kt.exports=function(xt,dt){var ft=St(xt).constructor,ct;return ft===void 0||(ct=St(ft)[yt])==null?dt:pt(ct)}},{"../internals/a-constructor":96,"../internals/an-object":101,"../internals/well-known-symbol":268}],239:[function(rt,kt,Ct){var St=rt("../internals/function-uncurry-this"),pt=rt("../internals/to-integer-or-infinity"),vt=rt("../internals/to-string"),yt=rt("../internals/require-object-coercible"),xt=St("".charAt),dt=St("".charCodeAt),ft=St("".slice),ct=function(lt){return function(E,z){var ot=vt(yt(E)),it=pt(z),at=ot.length,ut,wt;return it<0||it>=at?lt?"":void 0:(ut=dt(ot,it),ut<55296||ut>56319||it+1===at||(wt=dt(ot,it+1))<56320||wt>57343?lt?xt(ot,it):ut:lt?ft(ot,it,it+2):(ut-55296<<10)+(wt-56320)+65536)}};kt.exports={codeAt:ct(!1),charAt:ct(!0)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-string":256}],240:[function(rt,kt,Ct){var St=rt("../internals/function-name").PROPER,pt=rt("../internals/fails"),vt=rt("../internals/whitespaces"),yt="\u200B\x85\u180E";kt.exports=function(xt){return pt(function(){return!!vt[xt]()||yt[xt]()!==yt||St&&vt[xt].name!==xt})}},{"../internals/fails":150,"../internals/function-name":156,"../internals/whitespaces":269}],241:[function(rt,kt,Ct){var St=rt("../internals/function-uncurry-this"),pt=rt("../internals/require-object-coercible"),vt=rt("../internals/to-string"),yt=rt("../internals/whitespaces"),xt=St("".replace),dt="["+yt+"]",ft=RegExp("^"+dt+dt+"*"),ct=RegExp(dt+dt+"*$"),lt=function(E){return function(z){var ot=vt(pt(z));return E&1&&(ot=xt(ot,ft,"")),E&2&&(ot=xt(ot,ct,"")),ot}};kt.exports={start:lt(1),end:lt(2),trim:lt(3)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-string":256,"../internals/whitespaces":269}],242:[function(rt,kt,Ct){var St=rt("../internals/function-call"),pt=rt("../internals/get-built-in"),vt=rt("../internals/well-known-symbol"),yt=rt("../internals/redefine");kt.exports=function(){var xt=pt("Symbol"),dt=xt&&xt.prototype,ft=dt&&dt.valueOf,ct=vt("toPrimitive");dt&&!dt[ct]&&yt(dt,ct,function(lt){return St(ft,this)})}},{"../internals/function-call":155,"../internals/get-built-in":158,"../internals/redefine":222,"../internals/well-known-symbol":268}],243:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/function-apply"),vt=rt("../internals/function-bind-context"),yt=rt("../internals/is-callable"),xt=rt("../internals/has-own-property"),dt=rt("../internals/fails"),ft=rt("../internals/html"),ct=rt("../internals/array-slice"),lt=rt("../internals/document-create-element"),E=rt("../internals/validate-arguments-length"),z=rt("../internals/engine-is-ios"),ot=rt("../internals/engine-is-node"),it=St.setImmediate,at=St.clearImmediate,ut=St.process,wt=St.Dispatch,Et=St.Function,At=St.MessageChannel,_t=St.String,Mt=0,jt={},Lt="onreadystatechange",It,Ut,Xt,Gt;try{It=St.location}catch(ve){}var Vt=function(ve){if(xt(jt,ve)){var Kt=jt[ve];delete jt[ve],Kt()}},Ht=function(ve){return function(){Vt(ve)}},ne=function(ve){Vt(ve.data)},se=function(ve){St.postMessage(_t(ve),It.protocol+"//"+It.host)};(!it||!at)&&(it=function(Kt){E(arguments.length,1);var re=yt(Kt)?Kt:Et(Kt),we=ct(arguments,1);return jt[++Mt]=function(){pt(re,void 0,we)},Ut(Mt),Mt},at=function(Kt){delete jt[Kt]},ot?Ut=function(ve){ut.nextTick(Ht(ve))}:wt&&wt.now?Ut=function(ve){wt.now(Ht(ve))}:At&&!z?(Xt=new At,Gt=Xt.port2,Xt.port1.onmessage=ne,Ut=vt(Gt.postMessage,Gt)):St.addEventListener&&yt(St.postMessage)&&!St.importScripts&&It&&It.protocol!=="file:"&&!dt(se)?(Ut=se,St.addEventListener("message",ne,!1)):Lt in lt("script")?Ut=function(ve){ft.appendChild(lt("script"))[Lt]=function(){ft.removeChild(this),Vt(ve)}}:Ut=function(ve){setTimeout(Ht(ve),0)}),kt.exports={set:it,clear:at}},{"../internals/array-slice":117,"../internals/document-create-element":135,"../internals/engine-is-ios":142,"../internals/engine-is-node":143,"../internals/fails":150,"../internals/function-apply":152,"../internals/function-bind-context":153,"../internals/global":163,"../internals/has-own-property":164,"../internals/html":167,"../internals/is-callable":176,"../internals/validate-arguments-length":266}],244:[function(rt,kt,Ct){var St=rt("../internals/function-uncurry-this");kt.exports=St(1 .valueOf)},{"../internals/function-uncurry-this":157}],245:[function(rt,kt,Ct){var St=rt("../internals/to-integer-or-infinity"),pt=Math.max,vt=Math.min;kt.exports=function(yt,xt){var dt=St(yt);return dt<0?pt(dt+xt,0):vt(dt,xt)}},{"../internals/to-integer-or-infinity":248}],246:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/to-integer-or-infinity"),vt=rt("../internals/to-length"),yt=St.RangeError;kt.exports=function(xt){if(xt===void 0)return 0;var dt=pt(xt),ft=vt(dt);if(dt!==ft)throw yt("Wrong length or index");return ft}},{"../internals/global":163,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],247:[function(rt,kt,Ct){var St=rt("../internals/indexed-object"),pt=rt("../internals/require-object-coercible");kt.exports=function(vt){return St(pt(vt))}},{"../internals/indexed-object":170,"../internals/require-object-coercible":230}],248:[function(rt,kt,Ct){var St=Math.ceil,pt=Math.floor;kt.exports=function(vt){var yt=+vt;return yt!==yt||yt===0?0:(yt>0?pt:St)(yt)}},{}],249:[function(rt,kt,Ct){var St=rt("../internals/to-integer-or-infinity"),pt=Math.min;kt.exports=function(vt){return vt>0?pt(St(vt),9007199254740991):0}},{"../internals/to-integer-or-infinity":248}],250:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/require-object-coercible"),vt=St.Object;kt.exports=function(yt){return vt(pt(yt))}},{"../internals/global":163,"../internals/require-object-coercible":230}],251:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/to-positive-integer"),vt=St.RangeError;kt.exports=function(yt,xt){var dt=pt(yt);if(dt%xt)throw vt("Wrong offset");return dt}},{"../internals/global":163,"../internals/to-positive-integer":252}],252:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/to-integer-or-infinity"),vt=St.RangeError;kt.exports=function(yt){var xt=pt(yt);if(xt<0)throw vt("The argument can't be less than 0");return xt}},{"../internals/global":163,"../internals/to-integer-or-infinity":248}],253:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/function-call"),vt=rt("../internals/is-object"),yt=rt("../internals/is-symbol"),xt=rt("../internals/get-method"),dt=rt("../internals/ordinary-to-primitive"),ft=rt("../internals/well-known-symbol"),ct=St.TypeError,lt=ft("toPrimitive");kt.exports=function(E,z){if(!vt(E)||yt(E))return E;var ot=xt(E,lt),it;if(ot){if(z===void 0&&(z="default"),it=pt(ot,E,z),!vt(it)||yt(it))return it;throw ct("Can't convert object to primitive value")}return z===void 0&&(z="number"),dt(E,z)}},{"../internals/function-call":155,"../internals/get-method":161,"../internals/global":163,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/ordinary-to-primitive":211,"../internals/well-known-symbol":268}],254:[function(rt,kt,Ct){var St=rt("../internals/to-primitive"),pt=rt("../internals/is-symbol");kt.exports=function(vt){var yt=St(vt,"string");return pt(yt)?yt:yt+""}},{"../internals/is-symbol":183,"../internals/to-primitive":253}],255:[function(rt,kt,Ct){var St=rt("../internals/well-known-symbol"),pt=St("toStringTag"),vt={};vt[pt]="z",kt.exports=String(vt)==="[object z]"},{"../internals/well-known-symbol":268}],256:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/classof"),vt=St.String;kt.exports=function(yt){if(pt(yt)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return vt(yt)}},{"../internals/classof":124,"../internals/global":163}],257:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=St.String;kt.exports=function(vt){try{return pt(vt)}catch(yt){return"Object"}}},{"../internals/global":163}],258:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/global"),vt=rt("../internals/function-call"),yt=rt("../internals/descriptors"),xt=rt("../internals/typed-array-constructors-require-wrappers"),dt=rt("../internals/array-buffer-view-core"),ft=rt("../internals/array-buffer"),ct=rt("../internals/an-instance"),lt=rt("../internals/create-property-descriptor"),E=rt("../internals/create-non-enumerable-property"),z=rt("../internals/is-integral-number"),ot=rt("../internals/to-length"),it=rt("../internals/to-index"),at=rt("../internals/to-offset"),ut=rt("../internals/to-property-key"),wt=rt("../internals/has-own-property"),Et=rt("../internals/classof"),At=rt("../internals/is-object"),_t=rt("../internals/is-symbol"),Mt=rt("../internals/object-create"),jt=rt("../internals/object-is-prototype-of"),Lt=rt("../internals/object-set-prototype-of"),It=rt("../internals/object-get-own-property-names").f,Ut=rt("../internals/typed-array-from"),Xt=rt("../internals/array-iteration").forEach,Gt=rt("../internals/set-species"),Vt=rt("../internals/object-define-property"),Ht=rt("../internals/object-get-own-property-descriptor"),ne=rt("../internals/internal-state"),se=rt("../internals/inherit-if-required"),ve=ne.get,Kt=ne.set,re=Vt.f,we=Ht.f,ke=Math.round,Me=pt.RangeError,ge=ft.ArrayBuffer,fe=ge.prototype,de=ft.DataView,_e=dt.NATIVE_ARRAY_BUFFER_VIEWS,Oe=dt.TYPED_ARRAY_CONSTRUCTOR,He=dt.TYPED_ARRAY_TAG,Se=dt.TypedArray,xe=dt.TypedArrayPrototype,le=dt.aTypedArrayConstructor,Ne=dt.isTypedArray,ae="BYTES_PER_ELEMENT",Ae="Wrong length",Xe=function(ye,Qt){le(ye);for(var Wt=0,Bt=Qt.length,te=new ye(Bt);Bt>Wt;)te[Wt]=Qt[Wt++];return te},Be=function(ye,Qt){re(ye,Qt,{get:function(){return ve(this)[Qt]}})},Te=function(ye){var Qt;return jt(fe,ye)||(Qt=Et(ye))=="ArrayBuffer"||Qt=="SharedArrayBuffer"},ue=function(ye,Qt){return Ne(ye)&&!_t(Qt)&&Qt in ye&&z(+Qt)&&Qt>=0},$t=function(Qt,Wt){return Wt=ut(Wt),ue(Qt,Wt)?lt(2,Qt[Wt]):we(Qt,Wt)},he=function(Qt,Wt,Bt){return Wt=ut(Wt),ue(Qt,Wt)&&At(Bt)&&wt(Bt,"value")&&!wt(Bt,"get")&&!wt(Bt,"set")&&!Bt.configurable&&(!wt(Bt,"writable")||Bt.writable)&&(!wt(Bt,"enumerable")||Bt.enumerable)?(Qt[Wt]=Bt.value,Qt):re(Qt,Wt,Bt)};yt?(_e||(Ht.f=$t,Vt.f=he,Be(xe,"buffer"),Be(xe,"byteOffset"),Be(xe,"byteLength"),Be(xe,"length")),St({target:"Object",stat:!0,forced:!_e},{getOwnPropertyDescriptor:$t,defineProperty:he}),kt.exports=function(ye,Qt,Wt){var Bt=ye.match(/\d+$/)[0]/8,te=ye+(Wt?"Clamped":"")+"Array",me="get"+ye,Jt="set"+ye,Ie=pt[te],Ue=Ie,Je=Ue&&Ue.prototype,Ze={},nn=function(En,Dn){var ii=ve(En);return ii.view[me](Dn*Bt+ii.byteOffset,!0)},fn=function(En,Dn,ii){var mi=ve(En);Wt&&(ii=(ii=ke(ii))<0?0:ii>255?255:ii&255),mi.view[Jt](Dn*Bt+mi.byteOffset,ii,!0)},An=function(En,Dn){re(En,Dn,{get:function(){return nn(this,Dn)},set:function(ii){return fn(this,Dn,ii)},enumerable:!0})};_e?xt&&(Ue=Qt(function(En,Dn,ii,mi){return ct(En,Je),se(function(){return At(Dn)?Te(Dn)?mi!==void 0?new Ie(Dn,at(ii,Bt),mi):ii!==void 0?new Ie(Dn,at(ii,Bt)):new Ie(Dn):Ne(Dn)?Xe(Ue,Dn):vt(Ut,Ue,Dn):new Ie(it(Dn))}(),En,Ue)}),Lt&&Lt(Ue,Se),Xt(It(Ie),function(En){En in Ue||E(Ue,En,Ie[En])}),Ue.prototype=Je):(Ue=Qt(function(En,Dn,ii,mi){ct(En,Je);var Ti=0,Oi=0,ki,pi,Bi;if(!At(Dn))Bi=it(Dn),pi=Bi*Bt,ki=new ge(pi);else if(Te(Dn)){ki=Dn,Oi=at(ii,Bt);var Or=Dn.byteLength;if(mi===void 0){if(Or%Bt||(pi=Or-Oi,pi<0))throw Me(Ae)}else if(pi=ot(mi)*Bt,pi+Oi>Or)throw Me(Ae);Bi=pi/Bt}else return Ne(Dn)?Xe(Ue,Dn):vt(Ut,Ue,Dn);for(Kt(En,{buffer:ki,byteOffset:Oi,byteLength:pi,length:Bi,view:new de(ki)});Ti1?arguments[1]:void 0,wt=ut!==void 0,Et=ft(it),At,_t,Mt,jt,Lt,It;if(Et&&!ct(Et))for(Lt=dt(it,Et),It=Lt.next,it=[];!(jt=pt(It,Lt)).done;)it.push(jt.value);for(wt&&at>2&&(ut=St(ut,arguments[2])),_t=xt(it),Mt=new(lt(ot))(_t),At=0;_t>At;At++)Mt[At]=wt?ut(it[At],At):it[At];return Mt}},{"../internals/a-constructor":96,"../internals/array-buffer-view-core":103,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/is-array-iterator-method":174,"../internals/length-of-array-like":188,"../internals/to-object":250}],262:[function(rt,kt,Ct){var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/species-constructor"),vt=St.TYPED_ARRAY_CONSTRUCTOR,yt=St.aTypedArrayConstructor;kt.exports=function(xt){return yt(pt(xt,xt[vt]))}},{"../internals/array-buffer-view-core":103,"../internals/species-constructor":238}],263:[function(rt,kt,Ct){var St=rt("../internals/function-uncurry-this"),pt=0,vt=Math.random(),yt=St(1 .toString);kt.exports=function(xt){return"Symbol("+(xt===void 0?"":xt)+")_"+yt(++pt+vt,36)}},{"../internals/function-uncurry-this":157}],264:[function(rt,kt,Ct){var St=rt("../internals/native-symbol");kt.exports=St&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/native-symbol":191}],265:[function(rt,kt,Ct){var St=rt("../internals/descriptors"),pt=rt("../internals/fails");kt.exports=St&&pt(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},{"../internals/descriptors":134,"../internals/fails":150}],266:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=St.TypeError;kt.exports=function(vt,yt){if(vt=51||!vt(function(){var jt=[];return jt[it]=!1,jt.concat()[0]!==jt}),At=E("concat"),_t=function(jt){if(!xt(jt))return!1;var Lt=jt[it];return Lt!==void 0?!!Lt:yt(jt)},Mt=!Et||!At;St({target:"Array",proto:!0,forced:Mt},{concat:function(Lt){var It=dt(this),Ut=lt(It,0),Xt=0,Gt,Vt,Ht,ne,se;for(Gt=-1,Ht=arguments.length;Gtat)throw wt(ut);for(Vt=0;Vt=at)throw wt(ut);ct(Ut,Xt++,se)}return Ut.length=Xt,Ut}})},{"../internals/array-method-has-species-support":113,"../internals/array-species-create":120,"../internals/create-property":131,"../internals/engine-v8-version":146,"../internals/export":149,"../internals/fails":150,"../internals/global":163,"../internals/is-array":175,"../internals/is-object":180,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/well-known-symbol":268}],273:[function(rt,kt,Ct){var St=rt("../internals/export"),pt=rt("../internals/array-fill"),vt=rt("../internals/add-to-unscopables");St({target:"Array",proto:!0},{fill:pt}),vt("fill")},{"../internals/add-to-unscopables":98,"../internals/array-fill":106,"../internals/export":149}],274:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/array-iteration").filter,vt=rt("../internals/array-method-has-species-support"),yt=vt("filter");St({target:"Array",proto:!0,forced:!yt},{filter:function(dt){return pt(this,dt,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],275:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/array-iteration").find,vt=rt("../internals/add-to-unscopables"),yt="find",xt=!0;yt in[]&&Array(1)[yt](function(){xt=!1}),St({target:"Array",proto:!0,forced:xt},{find:function(ft){return pt(this,ft,arguments.length>1?arguments[1]:void 0)}}),vt(yt)},{"../internals/add-to-unscopables":98,"../internals/array-iteration":111,"../internals/export":149}],276:[function(rt,kt,Ct){var St=rt("../internals/export"),pt=rt("../internals/array-from"),vt=rt("../internals/check-correctness-of-iteration"),yt=!vt(function(xt){Array.from(xt)});St({target:"Array",stat:!0,forced:yt},{from:pt})},{"../internals/array-from":109,"../internals/check-correctness-of-iteration":122,"../internals/export":149}],277:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/array-includes").includes,vt=rt("../internals/add-to-unscopables");St({target:"Array",proto:!0},{includes:function(xt){return pt(this,xt,arguments.length>1?arguments[1]:void 0)}}),vt("includes")},{"../internals/add-to-unscopables":98,"../internals/array-includes":110,"../internals/export":149}],278:[function(rt,kt,Ct){"use strict";var St=rt("../internals/to-indexed-object"),pt=rt("../internals/add-to-unscopables"),vt=rt("../internals/iterators"),yt=rt("../internals/internal-state"),xt=rt("../internals/object-define-property").f,dt=rt("../internals/define-iterator"),ft=rt("../internals/is-pure"),ct=rt("../internals/descriptors"),lt="Array Iterator",E=yt.set,z=yt.getterFor(lt);kt.exports=dt(Array,"Array",function(it,at){E(this,{type:lt,target:St(it),index:0,kind:at})},function(){var it=z(this),at=it.target,ut=it.kind,wt=it.index++;return!at||wt>=at.length?(it.target=void 0,{value:void 0,done:!0}):ut=="keys"?{value:wt,done:!1}:ut=="values"?{value:at[wt],done:!1}:{value:[wt,at[wt]],done:!1}},"values");var ot=vt.Arguments=vt.Array;if(pt("keys"),pt("values"),pt("entries"),!ft&&ct&&ot.name!=="values")try{xt(ot,"name",{value:"values"})}catch(it){}},{"../internals/add-to-unscopables":98,"../internals/define-iterator":132,"../internals/descriptors":134,"../internals/internal-state":173,"../internals/is-pure":181,"../internals/iterators":187,"../internals/object-define-property":198,"../internals/to-indexed-object":247}],279:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/function-uncurry-this"),vt=rt("../internals/indexed-object"),yt=rt("../internals/to-indexed-object"),xt=rt("../internals/array-method-is-strict"),dt=pt([].join),ft=vt!=Object,ct=xt("join",",");St({target:"Array",proto:!0,forced:ft||!ct},{join:function(E){return dt(yt(this),E===void 0?",":E)}})},{"../internals/array-method-is-strict":114,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/to-indexed-object":247}],280:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/array-iteration").map,vt=rt("../internals/array-method-has-species-support"),yt=vt("map");St({target:"Array",proto:!0,forced:!yt},{map:function(dt){return pt(this,dt,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],281:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/global"),vt=rt("../internals/is-array"),yt=rt("../internals/is-constructor"),xt=rt("../internals/is-object"),dt=rt("../internals/to-absolute-index"),ft=rt("../internals/length-of-array-like"),ct=rt("../internals/to-indexed-object"),lt=rt("../internals/create-property"),E=rt("../internals/well-known-symbol"),z=rt("../internals/array-method-has-species-support"),ot=rt("../internals/array-slice"),it=z("slice"),at=E("species"),ut=pt.Array,wt=Math.max;St({target:"Array",proto:!0,forced:!it},{slice:function(At,_t){var Mt=ct(this),jt=ft(Mt),Lt=dt(At,jt),It=dt(_t===void 0?jt:_t,jt),Ut,Xt,Gt;if(vt(Mt)&&(Ut=Mt.constructor,yt(Ut)&&(Ut===ut||vt(Ut.prototype))?Ut=void 0:xt(Ut)&&(Ut=Ut[at],Ut===null&&(Ut=void 0)),Ut===ut||Ut===void 0))return ot(Mt,Lt,It);for(Xt=new(Ut===void 0?ut:Ut)(wt(It-Lt,0)),Gt=0;Lt3)){if(z)return!0;if(it)return it<603;var It="",Ut,Xt,Gt,Vt;for(Ut=65;Ut<76;Ut++){switch(Xt=String.fromCharCode(Ut),Ut){case 66:case 69:case 70:case 72:Gt=3;break;case 68:case 71:Gt=4;break;default:Gt=2}for(Vt=0;Vt<47;Vt++)at.push({k:Xt+Vt,v:Gt})}for(at.sort(function(Ht,ne){return ne.v-Ht.v}),Vt=0;Vtdt(Xt)?1:-1}};St({target:"Array",proto:!0,forced:jt},{sort:function(Ut){Ut!==void 0&&vt(Ut);var Xt=yt(this);if(Mt)return Ut===void 0?ut(Xt):ut(Xt,Ut);var Gt=[],Vt=xt(Xt),Ht,ne;for(ne=0;neat)throw z(ut);for(Xt=ft(_t,Ut),Gt=0;GtMt-Ut+It;Gt--)delete _t[Gt-1]}else if(It>Ut)for(Gt=Mt-Ut;Gt>jt;Gt--)Vt=Gt+Ut-1,Ht=Gt+It-1,Vt in _t?_t[Ht]=_t[Vt]:delete _t[Ht];for(Gt=0;Gt2){if(se=wt(se),ve=Lt(se,0),ve===43||ve===45){if(Kt=Lt(se,2),Kt===88||Kt===120)return NaN}else if(ve===48){switch(Lt(se,1)){case 66:case 98:re=2,we=49;break;case 79:case 111:re=8,we=55;break;default:return+se}for(ke=jt(se,2),Me=ke.length,ge=0;gewe)return NaN;return parseInt(ke,re)}}return+se};if(yt(Et,!At(" 0o1")||!At("0b1")||At("+0x1"))){for(var Xt=function(se){var ve=arguments.length<1?0:At(It(se)),Kt=this;return ct(_t,Kt)&&z(function(){ut(Kt)})?ft(Object(ve),Kt,Xt):ve},Gt=St?ot(At):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),Vt=0,Ht;Gt.length>Vt;Vt++)dt(At,Ht=Gt[Vt])&&!dt(Xt,Ht)&&at(Xt,Ht,it(At,Ht));Xt.prototype=_t,_t.constructor=Xt,xt(pt,Et,Xt)}},{"../internals/descriptors":134,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/is-forced":178,"../internals/is-symbol":183,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/redefine":222,"../internals/string-trim":241,"../internals/this-number-value":244,"../internals/to-primitive":253}],287:[function(rt,kt,Ct){var St=rt("../internals/export"),pt=rt("../internals/object-assign");St({target:"Object",stat:!0,forced:Object.assign!==pt},{assign:pt})},{"../internals/export":149,"../internals/object-assign":195}],288:[function(rt,kt,Ct){var St=rt("../internals/export"),pt=rt("../internals/object-to-array").entries;St({target:"Object",stat:!0},{entries:function(yt){return pt(yt)}})},{"../internals/export":149,"../internals/object-to-array":209}],289:[function(rt,kt,Ct){var St=rt("../internals/export"),pt=rt("../internals/native-symbol"),vt=rt("../internals/fails"),yt=rt("../internals/object-get-own-property-symbols"),xt=rt("../internals/to-object"),dt=!pt||vt(function(){yt.f(1)});St({target:"Object",stat:!0,forced:dt},{getOwnPropertySymbols:function(ct){var lt=yt.f;return lt?lt(xt(ct)):[]}})},{"../internals/export":149,"../internals/fails":150,"../internals/native-symbol":191,"../internals/object-get-own-property-symbols":202,"../internals/to-object":250}],290:[function(rt,kt,Ct){var St=rt("../internals/export"),pt=rt("../internals/to-object"),vt=rt("../internals/object-keys"),yt=rt("../internals/fails"),xt=yt(function(){vt(1)});St({target:"Object",stat:!0,forced:xt},{keys:function(ft){return vt(pt(ft))}})},{"../internals/export":149,"../internals/fails":150,"../internals/object-keys":206,"../internals/to-object":250}],291:[function(rt,kt,Ct){var St=rt("../internals/to-string-tag-support"),pt=rt("../internals/redefine"),vt=rt("../internals/object-to-string");St||pt(Object.prototype,"toString",vt,{unsafe:!0})},{"../internals/object-to-string":210,"../internals/redefine":222,"../internals/to-string-tag-support":255}],292:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/function-call"),vt=rt("../internals/a-callable"),yt=rt("../internals/new-promise-capability"),xt=rt("../internals/perform"),dt=rt("../internals/iterate"),ft=rt("../internals/promise-statics-incorrect-iteration");St({target:"Promise",stat:!0,forced:ft},{all:function(lt){var E=this,z=yt.f(E),ot=z.resolve,it=z.reject,at=xt(function(){var ut=vt(E.resolve),wt=[],Et=0,At=1;dt(lt,function(_t){var Mt=Et++,jt=!1;At++,pt(ut,E,_t).then(function(Lt){jt||(jt=!0,wt[Mt]=Lt,--At||ot(wt))},it)}),--At||ot(wt)});return at.error&&it(at.value),z.promise}})},{"../internals/a-callable":95,"../internals/export":149,"../internals/function-call":155,"../internals/iterate":184,"../internals/new-promise-capability":193,"../internals/perform":214,"../internals/promise-statics-incorrect-iteration":218}],293:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/is-pure"),vt=rt("../internals/promise-constructor-detection").CONSTRUCTOR,yt=rt("../internals/promise-native-constructor"),xt=rt("../internals/get-built-in"),dt=rt("../internals/is-callable"),ft=rt("../internals/redefine"),ct=yt&&yt.prototype;if(St({target:"Promise",proto:!0,forced:vt,real:!0},{catch:function(E){return this.then(void 0,E)}}),!pt&&dt(yt)){var lt=xt("Promise").prototype.catch;ct.catch!==lt&&ft(ct,"catch",lt,{unsafe:!0})}},{"../internals/export":149,"../internals/get-built-in":158,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/redefine":222}],294:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/is-pure"),vt=rt("../internals/engine-is-node"),yt=rt("../internals/global"),xt=rt("../internals/function-call"),dt=rt("../internals/redefine"),ft=rt("../internals/redefine-all"),ct=rt("../internals/object-set-prototype-of"),lt=rt("../internals/set-to-string-tag"),E=rt("../internals/set-species"),z=rt("../internals/a-callable"),ot=rt("../internals/is-callable"),it=rt("../internals/is-object"),at=rt("../internals/an-instance"),ut=rt("../internals/species-constructor"),wt=rt("../internals/task").set,Et=rt("../internals/microtask"),At=rt("../internals/host-report-errors"),_t=rt("../internals/perform"),Mt=rt("../internals/queue"),jt=rt("../internals/internal-state"),Lt=rt("../internals/promise-native-constructor"),It=rt("../internals/promise-constructor-detection"),Ut=rt("../internals/new-promise-capability"),Xt="Promise",Gt=It.CONSTRUCTOR,Vt=It.REJECTION_EVENT,Ht=It.SUBCLASSING,ne=jt.getterFor(Xt),se=jt.set,ve=Lt&&Lt.prototype,Kt=Lt,re=ve,we=yt.TypeError,ke=yt.document,Me=yt.process,ge=Ut.f,fe=ge,de=!!(ke&&ke.createEvent&&yt.dispatchEvent),_e="unhandledrejection",Oe="rejectionhandled",He=0,Se=1,xe=2,le=1,Ne=2,ae,Ae,Xe,Be,Te=function(Jt){var Ie;return it(Jt)&&ot(Ie=Jt.then)?Ie:!1},ue=function(Jt,Ie){var Ue=Ie.value,Je=Ie.state==Se,Ze=Je?Jt.ok:Jt.fail,nn=Jt.resolve,fn=Jt.reject,An=Jt.domain,En,Dn,ii;try{Ze?(Je||(Ie.rejection===Ne&&Wt(Ie),Ie.rejection=le),Ze===!0?En=Ue:(An&&An.enter(),En=Ze(Ue),An&&(An.exit(),ii=!0)),En===Jt.promise?fn(we("Promise-chain cycle")):(Dn=Te(En))?xt(Dn,En,nn,fn):nn(En)):fn(Ue)}catch(mi){An&&!ii&&An.exit(),fn(mi)}},$t=function(Jt,Ie){Jt.notified||(Jt.notified=!0,Et(function(){for(var Ue=Jt.reactions,Je;Je=Ue.get();)ue(Je,Jt);Jt.notified=!1,Ie&&!Jt.rejection&&ye(Jt)}))},he=function(Jt,Ie,Ue){var Je,Ze;de?(Je=ke.createEvent("Event"),Je.promise=Ie,Je.reason=Ue,Je.initEvent(Jt,!1,!0),yt.dispatchEvent(Je)):Je={promise:Ie,reason:Ue},!Vt&&(Ze=yt["on"+Jt])?Ze(Je):Jt===_e&&At("Unhandled promise rejection",Ue)},ye=function(Jt){xt(wt,yt,function(){var Ie=Jt.facade,Ue=Jt.value,Je=Qt(Jt),Ze;if(Je&&(Ze=_t(function(){vt?Me.emit("unhandledRejection",Ue,Ie):he(_e,Ie,Ue)}),Jt.rejection=vt||Qt(Jt)?Ne:le,Ze.error))throw Ze.value})},Qt=function(Jt){return Jt.rejection!==le&&!Jt.parent},Wt=function(Jt){xt(wt,yt,function(){var Ie=Jt.facade;vt?Me.emit("rejectionHandled",Ie):he(Oe,Ie,Jt.value)})},Bt=function(Jt,Ie,Ue){return function(Je){Jt(Ie,Je,Ue)}},te=function(Jt,Ie,Ue){Jt.done||(Jt.done=!0,Ue&&(Jt=Ue),Jt.value=Ie,Jt.state=xe,$t(Jt,!0))},me=function(Jt,Ie,Ue){if(!Jt.done){Jt.done=!0,Ue&&(Jt=Ue);try{if(Jt.facade===Ie)throw we("Promise can't be resolved itself");var Je=Te(Ie);Je?Et(function(){var Ze={done:!1};try{xt(Je,Ie,Bt(me,Ze,Jt),Bt(te,Ze,Jt))}catch(nn){te(Ze,nn,Jt)}}):(Jt.value=Ie,Jt.state=Se,$t(Jt,!1))}catch(Ze){te({done:!1},Ze,Jt)}}};if(Gt&&(Kt=function(Ie){at(this,re),z(Ie),xt(ae,this);var Ue=ne(this);try{Ie(Bt(me,Ue),Bt(te,Ue))}catch(Je){te(Ue,Je)}},re=Kt.prototype,ae=function(Ie){se(this,{type:Xt,done:!1,notified:!1,parent:!1,reactions:new Mt,rejection:!1,state:He,value:void 0})},ae.prototype=ft(re,{then:function(Ie,Ue){var Je=ne(this),Ze=ge(ut(this,Kt));return Je.parent=!0,Ze.ok=ot(Ie)?Ie:!0,Ze.fail=ot(Ue)&&Ue,Ze.domain=vt?Me.domain:void 0,Je.state==He?Je.reactions.add(Ze):Et(function(){ue(Ze,Je)}),Ze.promise}}),Ae=function(){var Jt=new ae,Ie=ne(Jt);this.promise=Jt,this.resolve=Bt(me,Ie),this.reject=Bt(te,Ie)},Ut.f=ge=function(Jt){return Jt===Kt||Jt===Xe?new Ae(Jt):fe(Jt)},!pt&&ot(Lt)&&ve!==Object.prototype)){Be=ve.then,Ht||dt(ve,"then",function(Ie,Ue){var Je=this;return new Kt(function(Ze,nn){xt(Be,Je,Ze,nn)}).then(Ie,Ue)},{unsafe:!0});try{delete ve.constructor}catch(Jt){}ct&&ct(ve,re)}St({global:!0,wrap:!0,forced:Gt},{Promise:Kt}),lt(Kt,Xt,!1,!0),E(Xt)},{"../internals/a-callable":95,"../internals/an-instance":100,"../internals/engine-is-node":143,"../internals/export":149,"../internals/function-call":155,"../internals/global":163,"../internals/host-report-errors":166,"../internals/internal-state":173,"../internals/is-callable":176,"../internals/is-object":180,"../internals/is-pure":181,"../internals/microtask":189,"../internals/new-promise-capability":193,"../internals/object-set-prototype-of":208,"../internals/perform":214,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/queue":220,"../internals/redefine":222,"../internals/redefine-all":221,"../internals/set-species":233,"../internals/set-to-string-tag":234,"../internals/species-constructor":238,"../internals/task":243}],295:[function(rt,kt,Ct){rt("../modules/es.promise.constructor"),rt("../modules/es.promise.all"),rt("../modules/es.promise.catch"),rt("../modules/es.promise.race"),rt("../modules/es.promise.reject"),rt("../modules/es.promise.resolve")},{"../modules/es.promise.all":292,"../modules/es.promise.catch":293,"../modules/es.promise.constructor":294,"../modules/es.promise.race":296,"../modules/es.promise.reject":297,"../modules/es.promise.resolve":298}],296:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/function-call"),vt=rt("../internals/a-callable"),yt=rt("../internals/new-promise-capability"),xt=rt("../internals/perform"),dt=rt("../internals/iterate"),ft=rt("../internals/promise-statics-incorrect-iteration");St({target:"Promise",stat:!0,forced:ft},{race:function(lt){var E=this,z=yt.f(E),ot=z.reject,it=xt(function(){var at=vt(E.resolve);dt(lt,function(ut){pt(at,E,ut).then(z.resolve,ot)})});return it.error&&ot(it.value),z.promise}})},{"../internals/a-callable":95,"../internals/export":149,"../internals/function-call":155,"../internals/iterate":184,"../internals/new-promise-capability":193,"../internals/perform":214,"../internals/promise-statics-incorrect-iteration":218}],297:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/function-call"),vt=rt("../internals/new-promise-capability"),yt=rt("../internals/promise-constructor-detection").CONSTRUCTOR;St({target:"Promise",stat:!0,forced:yt},{reject:function(dt){var ft=vt.f(this);return pt(ft.reject,void 0,dt),ft.promise}})},{"../internals/export":149,"../internals/function-call":155,"../internals/new-promise-capability":193,"../internals/promise-constructor-detection":215}],298:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/get-built-in"),vt=rt("../internals/is-pure"),yt=rt("../internals/promise-native-constructor"),xt=rt("../internals/promise-constructor-detection").CONSTRUCTOR,dt=rt("../internals/promise-resolve"),ft=pt("Promise"),ct=vt&&!xt;St({target:"Promise",stat:!0,forced:vt||xt},{resolve:function(E){return dt(ct&&this===ft?yt:this,E)}})},{"../internals/export":149,"../internals/get-built-in":158,"../internals/is-pure":181,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/promise-resolve":217}],299:[function(rt,kt,Ct){var St=rt("../internals/descriptors"),pt=rt("../internals/global"),vt=rt("../internals/function-uncurry-this"),yt=rt("../internals/is-forced"),xt=rt("../internals/inherit-if-required"),dt=rt("../internals/create-non-enumerable-property"),ft=rt("../internals/object-get-own-property-names").f,ct=rt("../internals/object-is-prototype-of"),lt=rt("../internals/is-regexp"),E=rt("../internals/to-string"),z=rt("../internals/regexp-get-flags"),ot=rt("../internals/regexp-sticky-helpers"),it=rt("../internals/proxy-accessor"),at=rt("../internals/redefine"),ut=rt("../internals/fails"),wt=rt("../internals/has-own-property"),Et=rt("../internals/internal-state").enforce,At=rt("../internals/set-species"),_t=rt("../internals/well-known-symbol"),Mt=rt("../internals/regexp-unsupported-dot-all"),jt=rt("../internals/regexp-unsupported-ncg"),Lt=_t("match"),It=pt.RegExp,Ut=It.prototype,Xt=pt.SyntaxError,Gt=vt(Ut.exec),Vt=vt("".charAt),Ht=vt("".replace),ne=vt("".indexOf),se=vt("".slice),ve=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Kt=/a/g,re=/a/g,we=new It(Kt)!==Kt,ke=ot.MISSED_STICKY,Me=ot.UNSUPPORTED_Y,ge=St&&(!we||ke||Mt||jt||ut(function(){return re[Lt]=!1,It(Kt)!=Kt||It(re)==re||It(Kt,"i")!="/a/i"})),fe=function(Se){for(var xe=Se.length,le=0,Ne="",ae=!1,Ae;le<=xe;le++){if(Ae=Vt(Se,le),Ae==="\\"){Ne+=Ae+Vt(Se,++le);continue}!ae&&Ae==="."?Ne+="[\\s\\S]":(Ae==="["?ae=!0:Ae==="]"&&(ae=!1),Ne+=Ae)}return Ne},de=function(Se){for(var xe=Se.length,le=0,Ne="",ae=[],Ae={},Xe=!1,Be=!1,Te=0,ue="",$t;le<=xe;le++){if($t=Vt(Se,le),$t==="\\")$t=$t+Vt(Se,++le);else if($t==="]")Xe=!1;else if(!Xe)switch(!0){case $t==="[":Xe=!0;break;case $t==="(":Gt(ve,se(Se,le+1))&&(le+=2,Be=!0),Ne+=$t,Te++;continue;case($t===">"&&Be):if(ue===""||wt(Ae,ue))throw new Xt("Invalid capture group name");Ae[ue]=!0,ae[ae.length]=[ue,Te],Be=!1,ue="";continue}Be?ue+=$t:Ne+=$t}return[Ne,ae]};if(yt("RegExp",ge)){for(var _e=function(xe,le){var Ne=ct(Ut,this),ae=lt(xe),Ae=le===void 0,Xe=[],Be=xe,Te,ue,$t,he,ye,Qt;if(!Ne&&ae&&Ae&&xe.constructor===_e)return xe;if((ae||ct(Ut,xe))&&(xe=xe.source,Ae&&(le=z(Be))),xe=xe===void 0?"":E(xe),le=le===void 0?"":E(le),Be=xe,Mt&&"dotAll"in Kt&&(ue=!!le&&ne(le,"s")>-1,ue&&(le=Ht(le,/s/g,""))),Te=le,ke&&"sticky"in Kt&&($t=!!le&&ne(le,"y")>-1,$t&&Me&&(le=Ht(le,/y/g,""))),jt&&(he=de(xe),xe=he[0],Xe=he[1]),ye=xt(It(xe,le),Ne?this:Ut,_e),(ue||$t||Xe.length)&&(Qt=Et(ye),ue&&(Qt.dotAll=!0,Qt.raw=_e(fe(xe),Te)),$t&&(Qt.sticky=!0),Xe.length&&(Qt.groups=Xe)),xe!==Be)try{dt(ye,"source",Be===""?"(?:)":Be)}catch(Wt){}return ye},Oe=ft(It),He=0;Oe.length>He;)it(_e,It,Oe[He++]);Ut.constructor=_e,_e.prototype=Ut,at(pt,"RegExp",_e)}At("RegExp")},{"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/internal-state":173,"../internals/is-forced":178,"../internals/is-regexp":182,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/proxy-accessor":219,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/regexp-sticky-helpers":227,"../internals/regexp-unsupported-dot-all":228,"../internals/regexp-unsupported-ncg":229,"../internals/set-species":233,"../internals/to-string":256,"../internals/well-known-symbol":268}],300:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/regexp-exec");St({target:"RegExp",proto:!0,forced:/./.exec!==pt},{exec:pt})},{"../internals/export":149,"../internals/regexp-exec":224}],301:[function(rt,kt,Ct){"use strict";var St=rt("../internals/function-name").PROPER,pt=rt("../internals/redefine"),vt=rt("../internals/an-object"),yt=rt("../internals/to-string"),xt=rt("../internals/fails"),dt=rt("../internals/regexp-get-flags"),ft="toString",ct=RegExp.prototype,lt=ct[ft],E=xt(function(){return lt.call({source:"a",flags:"b"})!="/a/b"}),z=St&<.name!=ft;(E||z)&&pt(RegExp.prototype,ft,function(){var it=vt(this),at=yt(it.source),ut=yt(dt(it));return"/"+at+"/"+ut},{unsafe:!0})},{"../internals/an-object":101,"../internals/fails":150,"../internals/function-name":156,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/to-string":256}],302:[function(rt,kt,Ct){"use strict";var St=rt("../internals/export"),pt=rt("../internals/function-uncurry-this"),vt=rt("../internals/not-a-regexp"),yt=rt("../internals/require-object-coercible"),xt=rt("../internals/to-string"),dt=rt("../internals/correct-is-regexp-logic"),ft=pt("".indexOf);St({target:"String",proto:!0,forced:!dt("includes")},{includes:function(lt){return!!~ft(xt(yt(this)),xt(vt(lt)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":126,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/not-a-regexp":194,"../internals/require-object-coercible":230,"../internals/to-string":256}],303:[function(rt,kt,Ct){"use strict";var St=rt("../internals/string-multibyte").charAt,pt=rt("../internals/to-string"),vt=rt("../internals/internal-state"),yt=rt("../internals/define-iterator"),xt="String Iterator",dt=vt.set,ft=vt.getterFor(xt);yt(String,"String",function(ct){dt(this,{type:xt,string:pt(ct),index:0})},function(){var lt=ft(this),E=lt.string,z=lt.index,ot;return z>=E.length?{value:void 0,done:!0}:(ot=St(E,z),lt.index+=ot.length,{value:ot,done:!1})})},{"../internals/define-iterator":132,"../internals/internal-state":173,"../internals/string-multibyte":239,"../internals/to-string":256}],304:[function(rt,kt,Ct){"use strict";var St=rt("../internals/function-call"),pt=rt("../internals/fix-regexp-well-known-symbol-logic"),vt=rt("../internals/an-object"),yt=rt("../internals/to-length"),xt=rt("../internals/to-string"),dt=rt("../internals/require-object-coercible"),ft=rt("../internals/get-method"),ct=rt("../internals/advance-string-index"),lt=rt("../internals/regexp-exec-abstract");pt("match",function(E,z,ot){return[function(at){var ut=dt(this),wt=at==null?void 0:ft(at,E);return wt?St(wt,at,ut):new RegExp(at)[E](xt(ut))},function(it){var at=vt(this),ut=xt(it),wt=ot(z,at,ut);if(wt.done)return wt.value;if(!at.global)return lt(at,ut);var Et=at.unicode;at.lastIndex=0;for(var At=[],_t=0,Mt;(Mt=lt(at,ut))!==null;){var jt=xt(Mt[0]);At[_t]=jt,jt===""&&(at.lastIndex=ct(ut,yt(at.lastIndex),Et)),_t++}return _t===0?null:At}]})},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-call":155,"../internals/get-method":161,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/to-length":249,"../internals/to-string":256}],305:[function(rt,kt,Ct){"use strict";var St=rt("../internals/function-apply"),pt=rt("../internals/function-call"),vt=rt("../internals/function-uncurry-this"),yt=rt("../internals/fix-regexp-well-known-symbol-logic"),xt=rt("../internals/fails"),dt=rt("../internals/an-object"),ft=rt("../internals/is-callable"),ct=rt("../internals/to-integer-or-infinity"),lt=rt("../internals/to-length"),E=rt("../internals/to-string"),z=rt("../internals/require-object-coercible"),ot=rt("../internals/advance-string-index"),it=rt("../internals/get-method"),at=rt("../internals/get-substitution"),ut=rt("../internals/regexp-exec-abstract"),wt=rt("../internals/well-known-symbol"),Et=wt("replace"),At=Math.max,_t=Math.min,Mt=vt([].concat),jt=vt([].push),Lt=vt("".indexOf),It=vt("".slice),Ut=function(Ht){return Ht===void 0?Ht:String(Ht)},Xt=function(){return"a".replace(/./,"$0")==="$0"}(),Gt=function(){return/./[Et]?/./[Et]("a","$0")==="":!1}(),Vt=!xt(function(){var Ht=/./;return Ht.exec=function(){var ne=[];return ne.groups={a:"7"},ne},"".replace(Ht,"$")!=="7"});yt("replace",function(Ht,ne,se){var ve=Gt?"$":"$0";return[function(re,we){var ke=z(this),Me=re==null?void 0:it(re,Et);return Me?pt(Me,re,ke,we):pt(ne,E(ke),re,we)},function(Kt,re){var we=dt(this),ke=E(Kt);if(typeof re=="string"&&Lt(re,ve)===-1&&Lt(re,"$<")===-1){var Me=se(ne,we,ke,re);if(Me.done)return Me.value}var ge=ft(re);ge||(re=E(re));var fe=we.global;if(fe){var de=we.unicode;we.lastIndex=0}for(var _e=[];;){var Oe=ut(we,ke);if(Oe===null||(jt(_e,Oe),!fe))break;var He=E(Oe[0]);He===""&&(we.lastIndex=ot(ke,lt(we.lastIndex),de))}for(var Se="",xe=0,le=0;le<_e.length;le++){Oe=_e[le];for(var Ne=E(Oe[0]),ae=At(_t(ct(Oe.index),ke.length),0),Ae=[],Xe=1;Xe=xe&&(Se+=It(ke,xe,ae)+ue,xe=ae+Ne.length)}return Se+It(ke,xe)}]},!Vt||!Xt||Gt)},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/fails":150,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-method":161,"../internals/get-substitution":162,"../internals/is-callable":176,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-length":249,"../internals/to-string":256,"../internals/well-known-symbol":268}],306:[function(rt,kt,Ct){"use strict";var St=rt("../internals/function-call"),pt=rt("../internals/fix-regexp-well-known-symbol-logic"),vt=rt("../internals/an-object"),yt=rt("../internals/require-object-coercible"),xt=rt("../internals/same-value"),dt=rt("../internals/to-string"),ft=rt("../internals/get-method"),ct=rt("../internals/regexp-exec-abstract");pt("search",function(lt,E,z){return[function(it){var at=yt(this),ut=it==null?void 0:ft(it,lt);return ut?St(ut,it,at):new RegExp(it)[lt](dt(at))},function(ot){var it=vt(this),at=dt(ot),ut=z(E,it,at);if(ut.done)return ut.value;var wt=it.lastIndex;xt(wt,0)||(it.lastIndex=0);var Et=ct(it,at);return xt(it.lastIndex,wt)||(it.lastIndex=wt),Et===null?-1:Et.index}]})},{"../internals/an-object":101,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-call":155,"../internals/get-method":161,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/same-value":231,"../internals/to-string":256}],307:[function(rt,kt,Ct){"use strict";var St=rt("../internals/function-apply"),pt=rt("../internals/function-call"),vt=rt("../internals/function-uncurry-this"),yt=rt("../internals/fix-regexp-well-known-symbol-logic"),xt=rt("../internals/is-regexp"),dt=rt("../internals/an-object"),ft=rt("../internals/require-object-coercible"),ct=rt("../internals/species-constructor"),lt=rt("../internals/advance-string-index"),E=rt("../internals/to-length"),z=rt("../internals/to-string"),ot=rt("../internals/get-method"),it=rt("../internals/array-slice-simple"),at=rt("../internals/regexp-exec-abstract"),ut=rt("../internals/regexp-exec"),wt=rt("../internals/regexp-sticky-helpers"),Et=rt("../internals/fails"),At=wt.UNSUPPORTED_Y,_t=4294967295,Mt=Math.min,jt=[].push,Lt=vt(/./.exec),It=vt(jt),Ut=vt("".slice),Xt=!Et(function(){var Gt=/(?:)/,Vt=Gt.exec;Gt.exec=function(){return Vt.apply(this,arguments)};var Ht="ab".split(Gt);return Ht.length!==2||Ht[0]!=="a"||Ht[1]!=="b"});yt("split",function(Gt,Vt,Ht){var ne;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?ne=function(se,ve){var Kt=z(ft(this)),re=ve===void 0?_t:ve>>>0;if(re===0)return[];if(se===void 0)return[Kt];if(!xt(se))return pt(Vt,Kt,se,re);for(var we=[],ke=(se.ignoreCase?"i":"")+(se.multiline?"m":"")+(se.unicode?"u":"")+(se.sticky?"y":""),Me=0,ge=new RegExp(se.source,ke+"g"),fe,de,_e;(fe=pt(ut,ge,Kt))&&(de=ge.lastIndex,!(de>Me&&(It(we,Ut(Kt,Me,fe.index)),fe.length>1&&fe.index=re)));)ge.lastIndex===fe.index&&ge.lastIndex++;return Me===Kt.length?(_e||!Lt(ge,""))&&It(we,""):It(we,Ut(Kt,Me)),we.length>re?it(we,0,re):we}:"0".split(void 0,0).length?ne=function(se,ve){return se===void 0&&ve===0?[]:pt(Vt,this,se,ve)}:ne=Vt,[function(ve,Kt){var re=ft(this),we=ve==null?void 0:ot(ve,Gt);return we?pt(we,ve,re,Kt):pt(ne,z(re),ve,Kt)},function(se,ve){var Kt=dt(this),re=z(se),we=Ht(ne,Kt,re,ve,ne!==Vt);if(we.done)return we.value;var ke=ct(Kt,RegExp),Me=Kt.unicode,ge=(Kt.ignoreCase?"i":"")+(Kt.multiline?"m":"")+(Kt.unicode?"u":"")+(At?"g":"y"),fe=new ke(At?"^(?:"+Kt.source+")":Kt,ge),de=ve===void 0?_t:ve>>>0;if(de===0)return[];if(re.length===0)return at(fe,re)===null?[re]:[];for(var _e=0,Oe=0,He=[];Oe2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-copy-within":105,"../internals/function-uncurry-this":157}],316:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/array-iteration").every,vt=St.aTypedArray,yt=St.exportTypedArrayMethod;yt("every",function(dt){return pt(vt(this),dt,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],317:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/function-call"),vt=rt("../internals/array-fill"),yt=St.aTypedArray,xt=St.exportTypedArrayMethod;xt("fill",function(ft){var ct=arguments.length;return pt(vt,yt(this),ft,ct>1?arguments[1]:void 0,ct>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-fill":106,"../internals/function-call":155}],318:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/array-iteration").filter,vt=rt("../internals/typed-array-from-species-and-list"),yt=St.aTypedArray,xt=St.exportTypedArrayMethod;xt("filter",function(ft){var ct=pt(yt(this),ft,arguments.length>1?arguments[1]:void 0);return vt(this,ct)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-from-species-and-list":260}],319:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/array-iteration").findIndex,vt=St.aTypedArray,yt=St.exportTypedArrayMethod;yt("findIndex",function(dt){return pt(vt(this),dt,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],320:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/array-iteration").find,vt=St.aTypedArray,yt=St.exportTypedArrayMethod;yt("find",function(dt){return pt(vt(this),dt,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],321:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/array-iteration").forEach,vt=St.aTypedArray,yt=St.exportTypedArrayMethod;yt("forEach",function(dt){pt(vt(this),dt,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],322:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/array-includes").includes,vt=St.aTypedArray,yt=St.exportTypedArrayMethod;yt("includes",function(dt){return pt(vt(this),dt,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],323:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/array-includes").indexOf,vt=St.aTypedArray,yt=St.exportTypedArrayMethod;yt("indexOf",function(dt){return pt(vt(this),dt,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],324:[function(rt,kt,Ct){"use strict";var St=rt("../internals/global"),pt=rt("../internals/fails"),vt=rt("../internals/function-uncurry-this"),yt=rt("../internals/array-buffer-view-core"),xt=rt("../modules/es.array.iterator"),dt=rt("../internals/well-known-symbol"),ft=dt("iterator"),ct=St.Uint8Array,lt=vt(xt.values),E=vt(xt.keys),z=vt(xt.entries),ot=yt.aTypedArray,it=yt.exportTypedArrayMethod,at=ct&&ct.prototype,ut=!pt(function(){at[ft].call([1])}),wt=!!at&&at.values&&at[ft]===at.values&&at.values.name==="values",Et=function(){return lt(ot(this))};it("entries",function(){return z(ot(this))},ut),it("keys",function(){return E(ot(this))},ut),it("values",Et,ut||!wt,{name:"values"}),it(ft,Et,ut||!wt,{name:"values"})},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/well-known-symbol":268,"../modules/es.array.iterator":278}],325:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/function-uncurry-this"),vt=St.aTypedArray,yt=St.exportTypedArrayMethod,xt=pt([].join);yt("join",function(ft){return xt(vt(this),ft)})},{"../internals/array-buffer-view-core":103,"../internals/function-uncurry-this":157}],326:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/function-apply"),vt=rt("../internals/array-last-index-of"),yt=St.aTypedArray,xt=St.exportTypedArrayMethod;xt("lastIndexOf",function(ft){var ct=arguments.length;return pt(vt,yt(this),ct>1?[ft,arguments[1]]:[ft])})},{"../internals/array-buffer-view-core":103,"../internals/array-last-index-of":112,"../internals/function-apply":152}],327:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/array-iteration").map,vt=rt("../internals/typed-array-species-constructor"),yt=St.aTypedArray,xt=St.exportTypedArrayMethod;xt("map",function(ft){return pt(yt(this),ft,arguments.length>1?arguments[1]:void 0,function(ct,lt){return new(vt(ct))(lt)})})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-species-constructor":262}],328:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/array-reduce").right,vt=St.aTypedArray,yt=St.exportTypedArrayMethod;yt("reduceRight",function(dt){var ft=arguments.length;return pt(vt(this),dt,ft,ft>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],329:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/array-reduce").left,vt=St.aTypedArray,yt=St.exportTypedArrayMethod;yt("reduce",function(dt){var ft=arguments.length;return pt(vt(this),dt,ft,ft>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],330:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=St.aTypedArray,vt=St.exportTypedArrayMethod,yt=Math.floor;vt("reverse",function(){for(var dt=this,ft=pt(dt).length,ct=yt(ft/2),lt=0,E;lt1?arguments[1]:void 0,1),_t=dt(Et);if(at)return pt(z,this,_t,At);var Mt=this.length,jt=yt(_t),Lt=0;if(jt+At>Mt)throw ct("Wrong length");for(;Ltit;)ut[it]=z[it++];return ut},ft)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/typed-array-species-constructor":262}],333:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/array-iteration").some,vt=St.aTypedArray,yt=St.exportTypedArrayMethod;yt("some",function(dt){return pt(vt(this),dt,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],334:[function(rt,kt,Ct){"use strict";var St=rt("../internals/global"),pt=rt("../internals/function-uncurry-this"),vt=rt("../internals/fails"),yt=rt("../internals/a-callable"),xt=rt("../internals/array-sort"),dt=rt("../internals/array-buffer-view-core"),ft=rt("../internals/engine-ff-version"),ct=rt("../internals/engine-is-ie-or-edge"),lt=rt("../internals/engine-v8-version"),E=rt("../internals/engine-webkit-version"),z=dt.aTypedArray,ot=dt.exportTypedArrayMethod,it=St.Uint16Array,at=it&&pt(it.prototype.sort),ut=!!at&&!(vt(function(){at(new it(2),null)})&&vt(function(){at(new it(2),{})})),wt=!!at&&!vt(function(){if(lt)return lt<74;if(ft)return ft<67;if(ct)return!0;if(E)return E<602;var At=new it(516),_t=Array(516),Mt,jt;for(Mt=0;Mt<516;Mt++)jt=Mt%4,At[Mt]=515-Mt,_t[Mt]=Mt-2*jt+3;for(at(At,function(Lt,It){return(Lt/4|0)-(It/4|0)}),Mt=0;Mt<516;Mt++)if(At[Mt]!==_t[Mt])return!0}),Et=function(At){return function(_t,Mt){return At!==void 0?+At(_t,Mt)||0:Mt!==Mt?-1:_t!==_t?1:_t===0&&Mt===0?1/_t>0&&1/Mt<0?1:-1:_t>Mt}};ot("sort",function(_t){return _t!==void 0&&yt(_t),wt?at(this,_t):xt(z(this),Et(_t))},!wt||ut)},{"../internals/a-callable":95,"../internals/array-buffer-view-core":103,"../internals/array-sort":118,"../internals/engine-ff-version":138,"../internals/engine-is-ie-or-edge":140,"../internals/engine-v8-version":146,"../internals/engine-webkit-version":147,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],335:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core"),pt=rt("../internals/to-length"),vt=rt("../internals/to-absolute-index"),yt=rt("../internals/typed-array-species-constructor"),xt=St.aTypedArray,dt=St.exportTypedArrayMethod;dt("subarray",function(ct,lt){var E=xt(this),z=E.length,ot=vt(ct,z),it=yt(E);return new it(E.buffer,E.byteOffset+ot*E.BYTES_PER_ELEMENT,pt((lt===void 0?z:vt(lt,z))-ot))})},{"../internals/array-buffer-view-core":103,"../internals/to-absolute-index":245,"../internals/to-length":249,"../internals/typed-array-species-constructor":262}],336:[function(rt,kt,Ct){"use strict";var St=rt("../internals/global"),pt=rt("../internals/function-apply"),vt=rt("../internals/array-buffer-view-core"),yt=rt("../internals/fails"),xt=rt("../internals/array-slice"),dt=St.Int8Array,ft=vt.aTypedArray,ct=vt.exportTypedArrayMethod,lt=[].toLocaleString,E=!!dt&&yt(function(){lt.call(new dt(1))}),z=yt(function(){return[1,2].toLocaleString()!=new dt([1,2]).toLocaleString()})||!yt(function(){dt.prototype.toLocaleString.call([1,2])});ct("toLocaleString",function(){return pt(lt,E?xt(ft(this)):ft(this),xt(arguments))},z)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/function-apply":152,"../internals/global":163}],337:[function(rt,kt,Ct){"use strict";var St=rt("../internals/array-buffer-view-core").exportTypedArrayMethod,pt=rt("../internals/fails"),vt=rt("../internals/global"),yt=rt("../internals/function-uncurry-this"),xt=vt.Uint8Array,dt=xt&&xt.prototype||{},ft=[].toString,ct=yt([].join);pt(function(){ft.call({})})&&(ft=function(){return ct(this)});var lt=dt.toString!=ft;St("toString",ft,lt)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],338:[function(rt,kt,Ct){var St=rt("../internals/typed-array-constructor");St("Uint8",function(pt){return function(yt,xt,dt){return pt(this,yt,xt,dt)}})},{"../internals/typed-array-constructor":258}],339:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/dom-iterables"),vt=rt("../internals/dom-token-list-prototype"),yt=rt("../internals/array-for-each"),xt=rt("../internals/create-non-enumerable-property"),dt=function(ct){if(ct&&ct.forEach!==yt)try{xt(ct,"forEach",yt)}catch(lt){ct.forEach=yt}};for(var ft in pt)pt[ft]&&dt(St[ft]&&St[ft].prototype);dt(vt)},{"../internals/array-for-each":107,"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163}],340:[function(rt,kt,Ct){var St=rt("../internals/global"),pt=rt("../internals/dom-iterables"),vt=rt("../internals/dom-token-list-prototype"),yt=rt("../modules/es.array.iterator"),xt=rt("../internals/create-non-enumerable-property"),dt=rt("../internals/well-known-symbol"),ft=dt("iterator"),ct=dt("toStringTag"),lt=yt.values,E=function(ot,it){if(ot){if(ot[ft]!==lt)try{xt(ot,ft,lt)}catch(ut){ot[ft]=lt}if(ot[ct]||xt(ot,ct,it),pt[it]){for(var at in yt)if(ot[at]!==yt[at])try{xt(ot,at,yt[at])}catch(ut){ot[at]=yt[at]}}}};for(var z in pt)E(St[z]&&St[z].prototype,z);E(vt,"DOMTokenList")},{"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163,"../internals/well-known-symbol":268,"../modules/es.array.iterator":278}],341:[function(rt,kt,Ct){function St(wt){return Array.isArray?Array.isArray(wt):ut(wt)==="[object Array]"}Ct.isArray=St;function pt(wt){return typeof wt=="boolean"}Ct.isBoolean=pt;function vt(wt){return wt===null}Ct.isNull=vt;function yt(wt){return wt==null}Ct.isNullOrUndefined=yt;function xt(wt){return typeof wt=="number"}Ct.isNumber=xt;function dt(wt){return typeof wt=="string"}Ct.isString=dt;function ft(wt){return typeof wt=="symbol"}Ct.isSymbol=ft;function ct(wt){return wt===void 0}Ct.isUndefined=ct;function lt(wt){return ut(wt)==="[object RegExp]"}Ct.isRegExp=lt;function E(wt){return typeof wt=="object"&&wt!==null}Ct.isObject=E;function z(wt){return ut(wt)==="[object Date]"}Ct.isDate=z;function ot(wt){return ut(wt)==="[object Error]"||wt instanceof Error}Ct.isError=ot;function it(wt){return typeof wt=="function"}Ct.isFunction=it;function at(wt){return wt===null||typeof wt=="boolean"||typeof wt=="number"||typeof wt=="string"||typeof wt=="symbol"||typeof wt=="undefined"}Ct.isPrimitive=at,Ct.isBuffer=rt("buffer").Buffer.isBuffer;function ut(wt){return Object.prototype.toString.call(wt)}},{buffer:90}],342:[function(rt,kt,Ct){(function(St){"use strict";var pt=function(){var ft=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,ct=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,lt=/[^-+\dA-Z]/g;return function(E,z,ot,it){if(arguments.length===1&&dt(E)==="string"&&!/\d/.test(E)&&(z=E,E=void 0),E=E||new Date,E instanceof Date||(E=new Date(E)),isNaN(E))throw TypeError("Invalid date");z=String(pt.masks[z]||z||pt.masks.default);var at=z.slice(0,4);(at==="UTC:"||at==="GMT:")&&(z=z.slice(4),ot=!0,at==="GMT:"&&(it=!0));var ut=ot?"getUTC":"get",wt=E[ut+"Date"](),Et=E[ut+"Day"](),At=E[ut+"Month"](),_t=E[ut+"FullYear"](),Mt=E[ut+"Hours"](),jt=E[ut+"Minutes"](),Lt=E[ut+"Seconds"](),It=E[ut+"Milliseconds"](),Ut=ot?0:E.getTimezoneOffset(),Xt=yt(E),Gt=xt(E),Vt={d:wt,dd:vt(wt),ddd:pt.i18n.dayNames[Et],dddd:pt.i18n.dayNames[Et+7],m:At+1,mm:vt(At+1),mmm:pt.i18n.monthNames[At],mmmm:pt.i18n.monthNames[At+12],yy:String(_t).slice(2),yyyy:_t,h:Mt%12||12,hh:vt(Mt%12||12),H:Mt,HH:vt(Mt),M:jt,MM:vt(jt),s:Lt,ss:vt(Lt),l:vt(It,3),L:vt(Math.round(It/10)),t:Mt<12?"a":"p",tt:Mt<12?"am":"pm",T:Mt<12?"A":"P",TT:Mt<12?"AM":"PM",Z:it?"GMT":ot?"UTC":(String(E).match(ct)||[""]).pop().replace(lt,""),o:(Ut>0?"-":"+")+vt(Math.floor(Math.abs(Ut)/60)*100+Math.abs(Ut)%60,4),S:["th","st","nd","rd"][wt%10>3?0:(wt%100-wt%10!=10)*wt%10],W:Xt,N:Gt};return z.replace(ft,function(Ht){return Ht in Vt?Vt[Ht]:Ht.slice(1,Ht.length-1)})}}();pt.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},pt.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};function vt(ft,ct){for(ft=String(ft),ct=ct||2;ft.length]/;kt.exports=pt;function pt(vt){var yt=""+vt,xt=St.exec(yt);if(!xt)return yt;var dt,ft="",ct=0,lt=0;for(ct=xt.index;ct0&&(Vt=It[0]),Vt instanceof Error)throw Vt;var Ht=new Error("Unhandled error."+(Vt?" ("+Vt.message+")":""));throw Ht.context=Vt,Ht}var ne=Gt[Lt];if(ne===void 0)return!1;if(typeof ne=="function")pt(ne,this,It);else for(var se=ne.length,ve=ut(ne,se),Ut=0;Ut0&&Vt.length>Xt&&!Vt.warned){Vt.warned=!0;var Ht=new Error("Possible EventEmitter memory leak detected. "+Vt.length+" "+String(Lt)+" listeners added. Use emitter.setMaxListeners() to increase limit");Ht.name="MaxListenersExceededWarning",Ht.emitter=jt,Ht.type=Lt,Ht.count=Vt.length,yt(Ht)}return jt}dt.prototype.addListener=function(Lt,It){return E(this,Lt,It,!1)},dt.prototype.on=dt.prototype.addListener,dt.prototype.prependListener=function(Lt,It){return E(this,Lt,It,!0)};function z(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function ot(jt,Lt,It){var Ut={fired:!1,wrapFn:void 0,target:jt,type:Lt,listener:It},Xt=z.bind(Ut);return Xt.listener=It,Ut.wrapFn=Xt,Xt}dt.prototype.once=function(Lt,It){return ct(It),this.on(Lt,ot(this,Lt,It)),this},dt.prototype.prependOnceListener=function(Lt,It){return ct(It),this.prependListener(Lt,ot(this,Lt,It)),this},dt.prototype.removeListener=function(Lt,It){var Ut,Xt,Gt,Vt,Ht;if(ct(It),Xt=this._events,Xt===void 0)return this;if(Ut=Xt[Lt],Ut===void 0)return this;if(Ut===It||Ut.listener===It)--this._eventsCount===0?this._events=Object.create(null):(delete Xt[Lt],Xt.removeListener&&this.emit("removeListener",Lt,Ut.listener||It));else if(typeof Ut!="function"){for(Gt=-1,Vt=Ut.length-1;Vt>=0;Vt--)if(Ut[Vt]===It||Ut[Vt].listener===It){Ht=Ut[Vt].listener,Gt=Vt;break}if(Gt<0)return this;Gt===0?Ut.shift():wt(Ut,Gt),Ut.length===1&&(Xt[Lt]=Ut[0]),Xt.removeListener!==void 0&&this.emit("removeListener",Lt,Ht||It)}return this},dt.prototype.off=dt.prototype.removeListener,dt.prototype.removeAllListeners=function(Lt){var It,Ut,Xt;if(Ut=this._events,Ut===void 0)return this;if(Ut.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Ut[Lt]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Ut[Lt]),this;if(arguments.length===0){var Gt=Object.keys(Ut),Vt;for(Xt=0;Xt=0;Xt--)this.removeListener(Lt,It[Xt]);return this};function it(jt,Lt,It){var Ut=jt._events;if(Ut===void 0)return[];var Xt=Ut[Lt];return Xt===void 0?[]:typeof Xt=="function"?It?[Xt.listener||Xt]:[Xt]:It?Et(Xt):ut(Xt,Xt.length)}dt.prototype.listeners=function(Lt){return it(this,Lt,!0)},dt.prototype.rawListeners=function(Lt){return it(this,Lt,!1)},dt.listenerCount=function(jt,Lt){return typeof jt.listenerCount=="function"?jt.listenerCount(Lt):at.call(jt,Lt)},dt.prototype.listenerCount=at;function at(jt){var Lt=this._events;if(Lt!==void 0){var It=Lt[jt];if(typeof It=="function")return 1;if(It!==void 0)return It.length}return 0}dt.prototype.eventNames=function(){return this._eventsCount>0?vt(this._events):[]};function ut(jt,Lt){for(var It=new Array(Lt),Ut=0;Ut=3&&(ot=z),pt.call(lt)==="[object Array]"?yt(lt,E,ot):typeof lt=="string"?xt(lt,E,ot):dt(lt,E,ot)};kt.exports=ft},{"is-callable":367}],346:[function(rt,kt,Ct){"use strict";var St="Function.prototype.bind called on incompatible ",pt=Array.prototype.slice,vt=Object.prototype.toString,yt="[object Function]";kt.exports=function(dt){var ft=this;if(typeof ft!="function"||vt.call(ft)!==yt)throw new TypeError(St+ft);for(var ct=pt.call(arguments,1),lt,E=function(){if(this instanceof lt){var ut=ft.apply(this,ct.concat(pt.call(arguments)));return Object(ut)===ut?ut:this}else return ft.apply(dt,ct.concat(pt.call(arguments)))},z=Math.max(0,ft.length-ct.length),ot=[],it=0;it1&&typeof ve!="boolean")throw new yt('"allowMissing" argument must be a boolean');if(Ut(/^%?[^%]*%?$/,se)===null)throw new pt("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Kt=Vt(se),re=Kt.length>0?Kt[0]:"",we=Ht("%"+re+"%",ve),ke=we.name,Me=we.value,ge=!1,fe=we.alias;fe&&(re=fe[0],jt(Kt,Mt([0,1],fe)));for(var de=1,_e=!0;de=Kt.length){var xe=dt(Me,Oe);_e=!!xe,_e&&"get"in xe&&!("originalValue"in xe.get)?Me=xe.get:Me=Me[Oe]}else _e=_t(Me,Oe),Me=Me[Oe];_e&&!ge&&(at[ke]=Me)}}return Me}},{"function-bind":347,has:354,"has-proto":350,"has-symbols":351}],349:[function(rt,kt,Ct){"use strict";var St=rt("get-intrinsic"),pt=St("%Object.getOwnPropertyDescriptor%",!0);if(pt)try{pt([],"length")}catch(vt){pt=null}kt.exports=pt},{"get-intrinsic":348}],350:[function(rt,kt,Ct){"use strict";var St={foo:{}},pt=Object;kt.exports=function(){return{__proto__:St}.foo===St.foo&&!({__proto__:null}instanceof pt)}},{}],351:[function(rt,kt,Ct){"use strict";var St=typeof Symbol!="undefined"&&Symbol,pt=rt("./shams");kt.exports=function(){return typeof St!="function"||typeof Symbol!="function"||typeof St("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:pt()}},{"./shams":352}],352:[function(rt,kt,Ct){"use strict";kt.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var pt={},vt=Symbol("test"),yt=Object(vt);if(typeof vt=="string"||Object.prototype.toString.call(vt)!=="[object Symbol]"||Object.prototype.toString.call(yt)!=="[object Symbol]")return!1;var xt=42;pt[vt]=xt;for(vt in pt)return!1;if(typeof Object.keys=="function"&&Object.keys(pt).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(pt).length!==0)return!1;var dt=Object.getOwnPropertySymbols(pt);if(dt.length!==1||dt[0]!==vt||!Object.prototype.propertyIsEnumerable.call(pt,vt))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var ft=Object.getOwnPropertyDescriptor(pt,vt);if(ft.value!==xt||ft.enumerable!==!0)return!1}return!0}},{}],353:[function(rt,kt,Ct){"use strict";var St=rt("has-symbols/shams");kt.exports=function(){return St()&&!!Symbol.toStringTag}},{"has-symbols/shams":352}],354:[function(rt,kt,Ct){"use strict";var St=rt("function-bind");kt.exports=St.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":347}],355:[function(rt,kt,Ct){var St=rt("http"),pt=rt("url"),vt=kt.exports;for(var yt in St)St.hasOwnProperty(yt)&&(vt[yt]=St[yt]);vt.request=function(dt,ft){return dt=xt(dt),St.request.call(this,dt,ft)},vt.get=function(dt,ft){return dt=xt(dt),St.get.call(this,dt,ft)};function xt(dt){if(typeof dt=="string"&&(dt=pt.parse(dt)),dt.protocol||(dt.protocol="https:"),dt.protocol!=="https:")throw new Error('Protocol "'+dt.protocol+'" not supported. Expected "https:"');return dt}},{http:468,url:472}],356:[function(rt,kt,Ct){"use strict";var St=rt("util"),pt=rt("ms");kt.exports=function(vt){if(typeof vt=="number")return vt;var yt=pt(vt);if(yt===void 0){var xt=new Error(St.format("humanize-ms(%j) result undefined",vt));console.warn(xt.stack)}return yt}},{ms:376,util:419}],357:[function(rt,kt,Ct){Ct.read=function(St,pt,vt,yt,xt){var dt,ft,ct=xt*8-yt-1,lt=(1<>1,z=-7,ot=vt?xt-1:0,it=vt?-1:1,at=St[pt+ot];for(ot+=it,dt=at&(1<<-z)-1,at>>=-z,z+=ct;z>0;dt=dt*256+St[pt+ot],ot+=it,z-=8);for(ft=dt&(1<<-z)-1,dt>>=-z,z+=yt;z>0;ft=ft*256+St[pt+ot],ot+=it,z-=8);if(dt===0)dt=1-E;else{if(dt===lt)return ft?NaN:(at?-1:1)*(1/0);ft=ft+Math.pow(2,yt),dt=dt-E}return(at?-1:1)*ft*Math.pow(2,dt-yt)},Ct.write=function(St,pt,vt,yt,xt,dt){var ft,ct,lt,E=dt*8-xt-1,z=(1<>1,it=xt===23?Math.pow(2,-24)-Math.pow(2,-77):0,at=yt?0:dt-1,ut=yt?1:-1,wt=pt<0||pt===0&&1/pt<0?1:0;for(pt=Math.abs(pt),isNaN(pt)||pt===1/0?(ct=isNaN(pt)?1:0,ft=z):(ft=Math.floor(Math.log(pt)/Math.LN2),pt*(lt=Math.pow(2,-ft))<1&&(ft--,lt*=2),ft+ot>=1?pt+=it/lt:pt+=it*Math.pow(2,1-ot),pt*lt>=2&&(ft++,lt/=2),ft+ot>=z?(ct=0,ft=z):ft+ot>=1?(ct=(pt*lt-1)*Math.pow(2,xt),ft=ft+ot):(ct=pt*Math.pow(2,ot-1)*Math.pow(2,xt),ft=0));xt>=8;St[vt+at]=ct&255,at+=ut,ct/=256,xt-=8);for(ft=ft<0;St[vt+at]=ft&255,at+=ut,ft/=256,E-=8);St[vt+at-ut]|=wt*128}},{}],358:[function(rt,kt,Ct){"use strict";var St=[rt("./nextTick"),rt("./queueMicrotask"),rt("./mutation.js"),rt("./messageChannel"),rt("./stateChange"),rt("./timeout")],pt,vt,yt=-1,xt=[],dt=!1;function ft(){!pt||!vt||(pt=!1,vt.length?xt=vt.concat(xt):yt=-1,xt.length&&ct())}function ct(){if(!pt){dt=!1,pt=!0;for(var at=xt.length,ut=setTimeout(ft);at;){for(vt=xt,xt=[];vt&&++yt1)for(var wt=1;wt=0&&vt(ct)!=="[object Array]"&&vt(ct.callee)==="[object Function]"},dt=function(){return yt(arguments)}();yt.isLegacyArguments=xt,kt.exports=dt?yt:xt},{"call-bind/callBound":92,"has-tostringtag/shams":353}],366:[function(rt,kt,Ct){kt.exports=function(vt){return vt!=null&&(St(vt)||pt(vt)||!!vt._isBuffer)};function St(vt){return!!vt.constructor&&typeof vt.constructor.isBuffer=="function"&&vt.constructor.isBuffer(vt)}function pt(vt){return typeof vt.readFloatLE=="function"&&typeof vt.slice=="function"&&St(vt.slice(0,0))}},{}],367:[function(rt,kt,Ct){"use strict";var St=Function.prototype.toString,pt=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,vt,yt;if(typeof pt=="function"&&typeof Object.defineProperty=="function")try{vt=Object.defineProperty({},"length",{get:function(){throw yt}}),yt={},pt(function(){throw 42},null,vt)}catch(_t){_t!==yt&&(pt=null)}else pt=null;var xt=/^\s*class\b/,dt=function(Mt){try{var jt=St.call(Mt);return xt.test(jt)}catch(Lt){return!1}},ft=function(Mt){try{return dt(Mt)?!1:(St.call(Mt),!0)}catch(jt){return!1}},ct=Object.prototype.toString,lt="[object Object]",E="[object Function]",z="[object GeneratorFunction]",ot="[object HTMLAllCollection]",it="[object HTML document.all class]",at="[object HTMLCollection]",ut=typeof Symbol=="function"&&!!Symbol.toStringTag,wt=!(0 in[,]),Et=function(){return!1};if(typeof document=="object"){var At=document.all;ct.call(At)===ct.call(document.all)&&(Et=function(Mt){if((wt||!Mt)&&(typeof Mt=="undefined"||typeof Mt=="object"))try{var jt=ct.call(Mt);return(jt===ot||jt===it||jt===at||jt===lt)&&Mt("")==null}catch(Lt){}return!1})}kt.exports=pt?function(Mt){if(Et(Mt))return!0;if(!Mt||typeof Mt!="function"&&typeof Mt!="object")return!1;try{pt(Mt,null,vt)}catch(jt){if(jt!==yt)return!1}return!dt(Mt)&&ft(Mt)}:function(Mt){if(Et(Mt))return!0;if(!Mt||typeof Mt!="function"&&typeof Mt!="object")return!1;if(ut)return ft(Mt);if(dt(Mt))return!1;var jt=ct.call(Mt);return jt!==E&&jt!==z&&!/^\[object HTML/.test(jt)?!1:ft(Mt)}},{}],368:[function(rt,kt,Ct){"use strict";var St=Object.prototype.toString,pt=Function.prototype.toString,vt=/^\s*(?:function)?\*/,yt=rt("has-tostringtag/shams")(),xt=Object.getPrototypeOf,dt=function(){if(!yt)return!1;try{return Function("return function*() {}")()}catch(ct){}},ft;kt.exports=function(lt){if(typeof lt!="function")return!1;if(vt.test(pt.call(lt)))return!0;if(!yt){var E=St.call(lt);return E==="[object GeneratorFunction]"}if(!xt)return!1;if(typeof ft=="undefined"){var z=dt();ft=z?xt(z):!1}return xt(lt)===ft}},{"has-tostringtag/shams":353}],369:[function(rt,kt,Ct){"use strict";var St=rt("which-typed-array");kt.exports=function(vt){return!!St(vt)}},{"which-typed-array":420}],370:[function(rt,kt,Ct){var St={}.toString;kt.exports=Array.isArray||function(pt){return St.call(pt)=="[object Array]"}},{}],371:[function(rt,kt,Ct){(function(St){(function(){(function(pt,vt){typeof Ct=="object"&&typeof kt!="undefined"?kt.exports=vt(pt):typeof Rt=="function"&&Rt.amd?Rt(vt):vt(pt)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof St!="undefined"?St:this,function(pt){"use strict";pt=pt||{};var vt=pt.Base64,yt="2.6.4",xt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",dt=function(se){for(var ve={},Kt=0,re=se.length;Kt>>6)+ft(128|ve&63):ft(224|ve>>>12&15)+ft(128|ve>>>6&63)+ft(128|ve&63)}else{var ve=65536+(se.charCodeAt(0)-55296)*1024+(se.charCodeAt(1)-56320);return ft(240|ve>>>18&7)+ft(128|ve>>>12&63)+ft(128|ve>>>6&63)+ft(128|ve&63)}},lt=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,E=function(se){return se.replace(lt,ct)},z=function(se){var ve=[0,2,1][se.length%3],Kt=se.charCodeAt(0)<<16|(se.length>1?se.charCodeAt(1):0)<<8|(se.length>2?se.charCodeAt(2):0),re=[xt.charAt(Kt>>>18),xt.charAt(Kt>>>12&63),ve>=2?"=":xt.charAt(Kt>>>6&63),ve>=1?"=":xt.charAt(Kt&63)];return re.join("")},ot=pt.btoa&&typeof pt.btoa=="function"?function(se){return pt.btoa(se)}:function(se){if(se.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return se.replace(/[\s\S]{1,3}/g,z)},it=function(se){return ot(E(String(se)))},at=function(se){return se.replace(/[+\/]/g,function(ve){return ve=="+"?"-":"_"}).replace(/=/g,"")},ut=function(se,ve){return ve?at(it(se)):it(se)},wt=function(se){return ut(se,!0)},Et;pt.Uint8Array&&(Et=function(se,ve){for(var Kt="",re=0,we=se.length;re>>18)+xt.charAt(fe>>>12&63)+(typeof Me!="undefined"?xt.charAt(fe>>>6&63):"=")+(typeof ge!="undefined"?xt.charAt(fe&63):"=")}return ve?at(Kt):Kt});var At=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,_t=function(se){switch(se.length){case 4:var ve=(7&se.charCodeAt(0))<<18|(63&se.charCodeAt(1))<<12|(63&se.charCodeAt(2))<<6|63&se.charCodeAt(3),Kt=ve-65536;return ft((Kt>>>10)+55296)+ft((Kt&1023)+56320);case 3:return ft((15&se.charCodeAt(0))<<12|(63&se.charCodeAt(1))<<6|63&se.charCodeAt(2));default:return ft((31&se.charCodeAt(0))<<6|63&se.charCodeAt(1))}},Mt=function(se){return se.replace(At,_t)},jt=function(se){var ve=se.length,Kt=ve%4,re=(ve>0?dt[se.charAt(0)]<<18:0)|(ve>1?dt[se.charAt(1)]<<12:0)|(ve>2?dt[se.charAt(2)]<<6:0)|(ve>3?dt[se.charAt(3)]:0),we=[ft(re>>>16),ft(re>>>8&255),ft(re&255)];return we.length-=[0,0,2,1][Kt],we.join("")},Lt=pt.atob&&typeof pt.atob=="function"?function(se){return pt.atob(se)}:function(se){return se.replace(/\S{1,4}/g,jt)},It=function(se){return Lt(String(se).replace(/[^A-Za-z0-9\+\/]/g,""))},Ut=function(se){return Mt(Lt(se))},Xt=function(se){return String(se).replace(/[-_]/g,function(ve){return ve=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Gt=function(se){return Ut(Xt(se))},Vt;pt.Uint8Array&&(Vt=function(se){return Uint8Array.from(It(Xt(se)),function(ve){return ve.charCodeAt(0)})});var Ht=function(){var se=pt.Base64;return pt.Base64=vt,se};if(pt.Base64={VERSION:yt,atob:It,btoa:ot,fromBase64:Gt,toBase64:ut,utob:E,encode:ut,encodeURI:wt,btou:Mt,decode:Gt,noConflict:Ht,fromUint8Array:Et,toUint8Array:Vt},typeof Object.defineProperty=="function"){var ne=function(se){return{value:se,enumerable:!1,writable:!0,configurable:!0}};pt.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",ne(function(){return Gt(this)})),Object.defineProperty(String.prototype,"toBase64",ne(function(se){return ut(this,se)})),Object.defineProperty(String.prototype,"toBase64URI",ne(function(){return ut(this,!0)}))}}return pt.Meteor&&(Base64=pt.Base64),typeof kt!="undefined"&&kt.exports?kt.exports.Base64=pt.Base64:typeof Rt=="function"&&Rt.amd&&Rt([],function(){return pt.Base64}),{Base64:pt.Base64}})}).call(this)}).call(this,typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],372:[function(rt,kt,Ct){"use strict";kt.exports=pt;var St=Object.prototype.hasOwnProperty;function pt(vt,yt,xt){if(!vt)throw new TypeError("argument dest is required");if(!yt)throw new TypeError("argument src is required");return xt===void 0&&(xt=!0),Object.getOwnPropertyNames(yt).forEach(function(ft){if(!(!xt&&St.call(vt,ft))){var ct=Object.getOwnPropertyDescriptor(yt,ft);Object.defineProperty(vt,ft,ct)}}),vt}},{}],373:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.array.map.js"),rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.replace.js"),rt("core-js/modules/es.regexp.constructor.js"),rt("core-js/modules/es.regexp.to-string.js");function St(){this._types=Object.create(null),this._extensions=Object.create(null);for(var pt=0;pt0)return ft(z);if(it==="number"&&isFinite(z))return ot.long?lt(z):ct(z);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(z))};function ft(z){if(z=String(z),!(z.length>100)){var ot=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(z);if(ot){var it=parseFloat(ot[1]),at=(ot[2]||"ms").toLowerCase();switch(at){case"years":case"year":case"yrs":case"yr":case"y":return it*dt;case"weeks":case"week":case"w":return it*xt;case"days":case"day":case"d":return it*yt;case"hours":case"hour":case"hrs":case"hr":case"h":return it*vt;case"minutes":case"minute":case"mins":case"min":case"m":return it*pt;case"seconds":case"second":case"secs":case"sec":case"s":return it*St;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return it;default:return}}}}function ct(z){var ot=Math.abs(z);return ot>=yt?Math.round(z/yt)+"d":ot>=vt?Math.round(z/vt)+"h":ot>=pt?Math.round(z/pt)+"m":ot>=St?Math.round(z/St)+"s":z+"ms"}function lt(z){var ot=Math.abs(z);return ot>=yt?E(z,ot,yt,"day"):ot>=vt?E(z,ot,vt,"hour"):ot>=pt?E(z,ot,pt,"minute"):ot>=St?E(z,ot,St,"second"):z+" ms"}function E(z,ot,it,at){var ut=ot>=it*1.5;return Math.round(z/it)+" "+at+(ut?"s":"")}},{}],377:[function(rt,kt,Ct){"use strict";var St=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable;function yt(dt){if(dt==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(dt)}function xt(){try{if(!Object.assign)return!1;var dt=new String("abc");if(dt[5]="de",Object.getOwnPropertyNames(dt)[0]==="5")return!1;for(var ft={},ct=0;ct<10;ct++)ft["_"+String.fromCharCode(ct)]=ct;var lt=Object.getOwnPropertyNames(ft).map(function(z){return ft[z]});if(lt.join("")!=="0123456789")return!1;var E={};return"abcdefghijklmnopqrst".split("").forEach(function(z){E[z]=z}),Object.keys(Object.assign({},E)).join("")==="abcdefghijklmnopqrst"}catch(z){return!1}}kt.exports=xt()?Object.assign:function(dt,ft){for(var ct,lt=yt(dt),E,z=1;z2){var at=ct.lastIndexOf("/");if(at!==ct.length-1){at===-1?(ct="",lt=0):(ct=ct.slice(0,at),lt=ct.length-1-ct.lastIndexOf("/")),E=it,z=0;continue}}else if(ct.length===2||ct.length===1){ct="",lt=0,E=it,z=0;continue}}ft&&(ct.length>0?ct+="/..":ct="..",lt=2)}else ct.length>0?ct+="/"+dt.slice(E+1,it):ct=dt.slice(E+1,it),lt=it-E-1;E=it,z=0}else ot===46&&z!==-1?++z:z=-1}return ct}function yt(dt,ft){var ct=ft.dir||ft.root,lt=ft.base||(ft.name||"")+(ft.ext||"");return ct?ct===ft.root?ct+lt:ct+dt+lt:lt}var xt={resolve:function(){for(var ft="",ct=!1,lt,E=arguments.length-1;E>=-1&&!ct;E--){var z;E>=0?z=arguments[E]:(lt===void 0&&(lt=St.cwd()),z=lt),pt(z),z.length!==0&&(ft=z+"/"+ft,ct=z.charCodeAt(0)===47)}return ft=vt(ft,!ct),ct?ft.length>0?"/"+ft:"/":ft.length>0?ft:"."},normalize:function(ft){if(pt(ft),ft.length===0)return".";var ct=ft.charCodeAt(0)===47,lt=ft.charCodeAt(ft.length-1)===47;return ft=vt(ft,!ct),ft.length===0&&!ct&&(ft="."),ft.length>0&<&&(ft+="/"),ct?"/"+ft:ft},isAbsolute:function(ft){return pt(ft),ft.length>0&&ft.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var ft,ct=0;ct0&&(ft===void 0?ft=lt:ft+="/"+lt)}return ft===void 0?".":xt.normalize(ft)},relative:function(ft,ct){if(pt(ft),pt(ct),ft===ct||(ft=xt.resolve(ft),ct=xt.resolve(ct),ft===ct))return"";for(var lt=1;ltut){if(ct.charCodeAt(ot+Et)===47)return ct.slice(ot+Et+1);if(Et===0)return ct.slice(ot+Et)}else z>ut&&(ft.charCodeAt(lt+Et)===47?wt=Et:Et===0&&(wt=0));break}var At=ft.charCodeAt(lt+Et),_t=ct.charCodeAt(ot+Et);if(At!==_t)break;At===47&&(wt=Et)}var Mt="";for(Et=lt+wt+1;Et<=E;++Et)(Et===E||ft.charCodeAt(Et)===47)&&(Mt.length===0?Mt+="..":Mt+="/..");return Mt.length>0?Mt+ct.slice(ot+wt):(ot+=wt,ct.charCodeAt(ot)===47&&++ot,ct.slice(ot))},_makeLong:function(ft){return ft},dirname:function(ft){if(pt(ft),ft.length===0)return".";for(var ct=ft.charCodeAt(0),lt=ct===47,E=-1,z=!0,ot=ft.length-1;ot>=1;--ot)if(ct=ft.charCodeAt(ot),ct===47){if(!z){E=ot;break}}else z=!1;return E===-1?lt?"/":".":lt&&E===1?"//":ft.slice(0,E)},basename:function(ft,ct){if(ct!==void 0&&typeof ct!="string")throw new TypeError('"ext" argument must be a string');pt(ft);var lt=0,E=-1,z=!0,ot;if(ct!==void 0&&ct.length>0&&ct.length<=ft.length){if(ct.length===ft.length&&ct===ft)return"";var it=ct.length-1,at=-1;for(ot=ft.length-1;ot>=0;--ot){var ut=ft.charCodeAt(ot);if(ut===47){if(!z){lt=ot+1;break}}else at===-1&&(z=!1,at=ot+1),it>=0&&(ut===ct.charCodeAt(it)?--it===-1&&(E=ot):(it=-1,E=at))}return lt===E?E=at:E===-1&&(E=ft.length),ft.slice(lt,E)}else{for(ot=ft.length-1;ot>=0;--ot)if(ft.charCodeAt(ot)===47){if(!z){lt=ot+1;break}}else E===-1&&(z=!1,E=ot+1);return E===-1?"":ft.slice(lt,E)}},extname:function(ft){pt(ft);for(var ct=-1,lt=0,E=-1,z=!0,ot=0,it=ft.length-1;it>=0;--it){var at=ft.charCodeAt(it);if(at===47){if(!z){lt=it+1;break}continue}E===-1&&(z=!1,E=it+1),at===46?ct===-1?ct=it:ot!==1&&(ot=1):ct!==-1&&(ot=-1)}return ct===-1||E===-1||ot===0||ot===1&&ct===E-1&&ct===lt+1?"":ft.slice(ct,E)},format:function(ft){if(ft===null||typeof ft!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof ft);return yt("/",ft)},parse:function(ft){pt(ft);var ct={root:"",dir:"",base:"",ext:"",name:""};if(ft.length===0)return ct;var lt=ft.charCodeAt(0),E=lt===47,z;E?(ct.root="/",z=1):z=0;for(var ot=-1,it=0,at=-1,ut=!0,wt=ft.length-1,Et=0;wt>=z;--wt){if(lt=ft.charCodeAt(wt),lt===47){if(!ut){it=wt+1;break}continue}at===-1&&(ut=!1,at=wt+1),lt===46?ot===-1?ot=wt:Et!==1&&(Et=1):ot!==-1&&(Et=-1)}return ot===-1||at===-1||Et===0||Et===1&&ot===at-1&&ot===it+1?at!==-1&&(it===0&&E?ct.base=ct.name=ft.slice(1,at):ct.base=ct.name=ft.slice(it,at)):(it===0&&E?(ct.name=ft.slice(1,ot),ct.base=ft.slice(1,at)):(ct.name=ft.slice(it,ot),ct.base=ft.slice(it,at)),ct.ext=ft.slice(ot,at)),it>0?ct.dir=ft.slice(0,it-1):E&&(ct.dir="/"),ct},sep:"/",delimiter:":",win32:null,posix:null};xt.posix=xt,kt.exports=xt}).call(this)}).call(this,rt("_process"))},{_process:467}],379:[function(rt,kt,Ct){(function(St){(function(){(function(){"use strict";var pt={function:!0,object:!0},vt=pt[typeof window]&&window||this,yt=vt,xt=pt[typeof Ct]&&Ct,dt=pt[typeof kt]&&kt&&!kt.nodeType&&kt,ft=xt&&dt&&typeof St=="object"&&St;ft&&(ft.global===ft||ft.window===ft||ft.self===ft)&&(vt=ft);var ct=Math.pow(2,53)-1,lt=/\bOpera/,E=this,z=Object.prototype,ot=z.hasOwnProperty,it=z.toString;function at(Gt){return Gt=String(Gt),Gt.charAt(0).toUpperCase()+Gt.slice(1)}function ut(Gt,Vt,Ht){var ne={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return Vt&&Ht&&/^Win/i.test(Gt)&&!/^Windows Phone /i.test(Gt)&&(ne=ne[/[\d.]+$/.exec(Gt)])&&(Gt="Windows "+ne),Gt=String(Gt),Vt&&Ht&&(Gt=Gt.replace(RegExp(Vt,"i"),Ht)),Gt=Et(Gt.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),Gt}function wt(Gt,Vt){var Ht=-1,ne=Gt?Gt.length:0;if(typeof ne=="number"&&ne>-1&&ne<=ct)for(;++Ht3&&"WebKit"||/\bOpera\b/.test($t)&&(/\bOPR\b/.test(Gt)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(Gt)&&!/^(?:Trident|EdgeHTML)$/.test(ue)&&"WebKit"||!ue&&/\bMSIE\b/i.test(Gt)&&(Qt=="Mac OS"?"Tasman":"Trident")||ue=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test($t)&&"NetFront")&&(ue=[le]),$t=="IE"&&(le=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(Gt)||0)[1])?($t+=" Mobile",Qt="Windows Phone "+(/\+$/.test(le)?le:le+".x"),ae.unshift("desktop mode")):/\bWPDesktop\b/i.test(Gt)?($t="IE Mobile",Qt="Windows Phone 8.x",ae.unshift("desktop mode"),Be||(Be=(/\brv:([\d.]+)/.exec(Gt)||0)[1])):$t!="IE"&&ue=="Trident"&&(le=/\brv:([\d.]+)/.exec(Gt))&&($t&&ae.push("identifying as "+$t+(Be?" "+Be:"")),$t="IE",Be=le[1]),Xe){if(Mt(Vt,"global"))if(fe&&(le=fe.lang.System,Ne=le.getProperty("os.arch"),Qt=Qt||le.getProperty("os.name")+" "+le.getProperty("os.version")),de){try{Be=Vt.require("ringo/engine").version.join("."),$t="RingoJS"}catch(Ze){(le=Vt.system)&&le.global.system==Vt.system&&($t="Narwhal",Qt||(Qt=le[0].os||null))}$t||($t="Rhino")}else typeof Vt.process=="object"&&!Vt.process.browser&&(le=Vt.process)&&(typeof le.versions=="object"&&(typeof le.versions.electron=="string"?(ae.push("Node "+le.versions.node),$t="Electron",Be=le.versions.electron):typeof le.versions.nw=="string"&&(ae.push("Chromium "+Be,"Node "+le.versions.node),$t="NW.js",Be=le.versions.nw)),$t||($t="Node.js",Ne=le.arch,Qt=le.platform,Be=/[\d.]+/.exec(le.version),Be=Be?Be[0]:null));else _t(le=Vt.runtime)==we?($t="Adobe AIR",Qt=le.flash.system.Capabilities.os):_t(le=Vt.phantom)==ge?($t="PhantomJS",Be=(le=le.version||null)&&le.major+"."+le.minor+"."+le.patch):typeof He.documentMode=="number"&&(le=/\bTrident\/(\d+)/i.exec(Gt))?(Be=[Be,He.documentMode],(le=+le[1]+4)!=Be[1]&&(ae.push("IE "+Be[1]+" mode"),ue&&(ue[1]=""),Be[1]=le),Be=$t=="IE"?String(Be[1].toFixed(1)):Be[0]):typeof He.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test($t)&&(ae.push("masking as "+$t+" "+Be),$t="IE",Be="11.0",ue=["Trident"],Qt="Windows");Qt=Qt&&Et(Qt)}if(Be&&(le=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(Be)||/(?:alpha|beta)(?: ?\d)?/i.exec(Gt+";"+(Xe&&ne.appMinorVersion))||/\bMinefield\b/i.test(Gt)&&"a")&&(Ae=/b/i.test(le)?"beta":"alpha",Be=Be.replace(RegExp(le+"\\+?$"),"")+(Ae=="beta"?Oe:_e)+(/\d+\+?/.exec(le)||"")),$t=="Fennec"||$t=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(Qt))$t="Firefox Mobile";else if($t=="Maxthon"&&Be)Be=Be.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(he))he=="Xbox 360"&&(Qt=null),he=="Xbox 360"&&/\bIEMobile\b/.test(Gt)&&ae.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test($t)||$t&&!he&&!/Browser|Mobi/.test($t))&&(Qt=="Windows CE"||/Mobi/i.test(Gt)))$t+=" Mobile";else if($t=="IE"&&Xe)try{Vt.external===null&&ae.unshift("platform preview")}catch(Ze){ae.unshift("embedded")}else(/\bBlackBerry\b/.test(he)||/\bBB10\b/.test(Gt))&&(le=(RegExp(he.replace(/ +/g," *")+"/([.\\d]+)","i").exec(Gt)||0)[1]||Be)?(le=[le,/BB10/.test(Gt)],Qt=(le[1]?(he=null,ye="BlackBerry"):"Device Software")+" "+le[0],Be=null):this!=At&&he!="Wii"&&(Xe&&Se||/Opera/.test($t)&&/\b(?:MSIE|Firefox)\b/i.test(Gt)||$t=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(Qt)||$t=="IE"&&(Qt&&!/^Win/.test(Qt)&&Be>5.5||/\bWindows XP\b/.test(Qt)&&Be>8||Be==8&&!/\bTrident\b/.test(Gt)))&&!lt.test(le=Ut.call(At,Gt.replace(lt,"")+";"))&&le.name&&(le="ing as "+le.name+((le=le.version)?" "+le:""),lt.test($t)?(/\bIE\b/.test(le)&&Qt=="Mac OS"&&(Qt=null),le="identify"+le):(le="mask"+le,xe?$t=Et(xe.replace(/([a-z])([A-Z])/g,"$1 $2")):$t="Opera",/\bIE\b/.test(le)&&(Qt=null),Xe||(Be=null)),ue=["Presto"],ae.push(le));(le=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(Gt)||0)[1])&&(le=[parseFloat(le.replace(/\.(\d)$/,".0$1")),le],$t=="Safari"&&le[1].slice(-1)=="+"?($t="WebKit Nightly",Ae="alpha",Be=le[1].slice(0,-1)):(Be==le[1]||Be==(le[2]=(/\bSafari\/([\d.]+\+?)/i.exec(Gt)||0)[1]))&&(Be=null),le[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(Gt)||0)[1],le[0]==537.36&&le[2]==537.36&&parseFloat(le[1])>=28&&ue=="WebKit"&&(ue=["Blink"]),!Xe||!Kt&&!le[1]?(ue&&(ue[1]="like Safari"),le=(le=le[0],le<400?1:le<500?2:le<526?3:le<533?4:le<534?"4+":le<535?5:le<537?6:le<538?7:le<601?8:le<602?9:le<604?10:le<606?11:le<608?12:"12")):(ue&&(ue[1]="like Chrome"),le=le[1]||(le=le[0],le<530?1:le<532?2:le<532.05?3:le<533?4:le<534.03?5:le<534.07?6:le<534.1?7:le<534.13?8:le<534.16?9:le<534.24?10:le<534.3?11:le<535.01?12:le<535.02?"13+":le<535.07?15:le<535.11?16:le<535.19?17:le<536.05?18:le<536.1?19:le<537.01?20:le<537.11?"21+":le<537.13?23:le<537.18?24:le<537.24?25:le<537.36?26:ue!="Blink"?"27":"28")),ue&&(ue[1]+=" "+(le+=typeof le=="number"?".x":/[.+]/.test(le)?"":"+")),$t=="Safari"&&(!Be||parseInt(Be)>45)?Be=le:$t=="Chrome"&&/\bHeadlessChrome/i.test(Gt)&&ae.unshift("headless")),$t=="Opera"&&(le=/\bzbov|zvav$/.exec(Qt))?($t+=" ",ae.unshift("desktop mode"),le=="zvav"?($t+="Mini",Be=null):$t+="Mobile",Qt=Qt.replace(RegExp(" *"+le+"$"),"")):$t=="Safari"&&/\bChrome\b/.exec(ue&&ue[1])?(ae.unshift("desktop mode"),$t="Chrome Mobile",Be=null,/\bOS X\b/.test(Qt)?(ye="Apple",Qt="iOS 4.3+"):Qt=null):/\bSRWare Iron\b/.test($t)&&!Be&&(Be=Ie("Chrome")),Be&&Be.indexOf(le=/[\d.]+$/.exec(Qt))==0&&Gt.indexOf("/"+le+"-")>-1&&(Qt=It(Qt.replace(le,""))),Qt&&Qt.indexOf($t)!=-1&&!RegExp($t+" OS").test(Qt)&&(Qt=Qt.replace(RegExp(" *"+jt($t)+" *"),"")),ue&&!/\b(?:Avant|Nook)\b/.test($t)&&(/Browser|Lunascape|Maxthon/.test($t)||$t!="Safari"&&/^iOS/.test(Qt)&&/\bSafari\b/.test(ue[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test($t)&&ue[1])&&(le=ue[ue.length-1])&&ae.push(le),ae.length&&(ae=["("+ae.join("; ")+")"]),ye&&he&&he.indexOf(ye)<0&&ae.push("on "+ye),he&&ae.push((/^on /.test(ae[ae.length-1])?"":"on ")+he),Qt&&(le=/ ([\d.+]+)$/.exec(Qt),Te=le&&Qt.charAt(Qt.length-le[0].length-1)=="/",Qt={architecture:32,family:le&&!Te?Qt.replace(le[0],""):Qt,version:le?le[1]:null,toString:function(){var Ze=this.version;return this.family+(Ze&&!Te?" "+Ze:"")+(this.architecture==64?" 64-bit":"")}}),(le=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Ne))&&!/\bi686\b/i.test(Ne)?(Qt&&(Qt.architecture=64,Qt.family=Qt.family.replace(RegExp(" *"+le),"")),$t&&(/\bWOW64\b/i.test(Gt)||Xe&&/\w(?:86|32)$/.test(ne.cpuClass||ne.platform)&&!/\bWin64; x64\b/i.test(Gt))&&ae.unshift("32-bit")):Qt&&/^OS X/.test(Qt.family)&&$t=="Chrome"&&parseFloat(Be)>=39&&(Qt.architecture=64),Gt||(Gt=null);var Je={};return Je.description=Gt,Je.layout=ue&&ue[0],Je.manufacturer=ye,Je.name=$t,Je.prerelease=Ae,Je.product=he,Je.ua=Gt,Je.version=$t&&Be,Je.os=Qt||{architecture:null,family:null,version:null,toString:function(){return"null"}},Je.parse=Ut,Je.toString=Ue,Je.version&&ae.unshift(Be),Je.name&&ae.unshift($t),Qt&&$t&&!(Qt==String(Qt).split(" ")[0]&&(Qt==$t.split(" ")[0]||he))&&ae.push(he?"("+Qt+")":"on "+Qt),ae.length&&(Je.description=ae.join(" ")),Je}var Xt=Ut();typeof Rt=="function"&&typeof Rt.amd=="object"&&Rt.amd?(vt.platform=Xt,Rt(function(){return Xt})):xt&&dt?At(Xt,function(Gt,Vt){xt[Vt]=Gt}):vt.platform=Xt}).call(this)}).call(this)}).call(this,typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],380:[function(rt,kt,Ct){(function(St){(function(){"use strict";typeof St=="undefined"||!St.version||St.version.indexOf("v0.")===0||St.version.indexOf("v1.")===0&&St.version.indexOf("v1.8.")!==0?kt.exports={nextTick:pt}:kt.exports=St;function pt(vt,yt,xt,dt){if(typeof vt!="function")throw new TypeError('"callback" argument must be a function');var ft=arguments.length,ct,lt;switch(ft){case 0:case 1:return St.nextTick(vt);case 2:return St.nextTick(function(){vt.call(null,yt)});case 3:return St.nextTick(function(){vt.call(null,yt,xt)});case 4:return St.nextTick(function(){vt.call(null,yt,xt,dt)});default:for(ct=new Array(ft-1),lt=0;lt1)for(var At=1;At= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Mt=ct-lt,jt=Math.floor,Lt=String.fromCharCode,It;function Ut(Me){throw new RangeError(_t[Me])}function Xt(Me,ge){for(var fe=Me.length,de=[];fe--;)de[fe]=ge(Me[fe]);return de}function Gt(Me,ge){var fe=Me.split("@"),de="";fe.length>1&&(de=fe[0]+"@",Me=fe[1]),Me=Me.replace(At,".");var _e=Me.split("."),Oe=Xt(_e,ge).join(".");return de+Oe}function Vt(Me){for(var ge=[],fe=0,de=Me.length,_e,Oe;fe=55296&&_e<=56319&&fe65535&&(ge-=65536,fe+=Lt(ge>>>10&1023|55296),ge=56320|ge&1023),fe+=Lt(ge),fe}).join("")}function ne(Me){return Me-48<10?Me-22:Me-65<26?Me-65:Me-97<26?Me-97:ct}function se(Me,ge){return Me+22+75*(Me<26)-((ge!=0)<<5)}function ve(Me,ge,fe){var de=0;for(Me=fe?jt(Me/ot):Me>>1,Me+=jt(Me/ge);Me>Mt*E>>1;de+=ct)Me=jt(Me/Mt);return jt(de+(Mt+1)*Me/(Me+z))}function Kt(Me){var ge=[],fe=Me.length,de,_e=0,Oe=at,He=it,Se,xe,le,Ne,ae,Ae,Xe,Be,Te;for(Se=Me.lastIndexOf(ut),Se<0&&(Se=0),xe=0;xe=128&&Ut("not-basic"),ge.push(Me.charCodeAt(xe));for(le=Se>0?Se+1:0;le=fe&&Ut("invalid-input"),Xe=ne(Me.charCodeAt(le++)),(Xe>=ct||Xe>jt((ft-_e)/ae))&&Ut("overflow"),_e+=Xe*ae,Be=Ae<=He?lt:Ae>=He+E?E:Ae-He,!(Xejt(ft/Te)&&Ut("overflow"),ae*=Te;de=ge.length+1,He=ve(_e-Ne,de,Ne==0),jt(_e/de)>ft-Oe&&Ut("overflow"),Oe+=jt(_e/de),_e%=de,ge.splice(_e++,0,Oe)}return Ht(ge)}function re(Me){var ge,fe,de,_e,Oe,He,Se,xe,le,Ne,ae,Ae=[],Xe,Be,Te,ue;for(Me=Vt(Me),Xe=Me.length,ge=at,fe=0,Oe=it,He=0;He=ge&&aejt((ft-fe)/Be)&&Ut("overflow"),fe+=(Se-ge)*Be,ge=Se,He=0;Heft&&Ut("overflow"),ae==ge){for(xe=fe,le=ct;Ne=le<=Oe?lt:le>=Oe+E?E:le-Oe,!(xe0&&E>lt&&(E=lt);for(var z=0;z=0?(at=ot.substr(0,it),ut=ot.substr(it+1)):(at=ot,ut=""),wt=decodeURIComponent(at),Et=decodeURIComponent(ut),St(ft,wt)?pt(ft[wt])?ft[wt].push(Et):ft[wt]=[ft[wt],Et]:ft[wt]=Et}return ft};var pt=Array.isArray||function(vt){return Object.prototype.toString.call(vt)==="[object Array]"}},{}],384:[function(rt,kt,Ct){"use strict";var St=function(xt){switch(typeof xt){case"string":return xt;case"boolean":return xt?"true":"false";case"number":return isFinite(xt)?xt:"";default:return""}};kt.exports=function(xt,dt,ft,ct){return dt=dt||"&",ft=ft||"=",xt===null&&(xt=void 0),typeof xt=="object"?vt(yt(xt),function(lt){var E=encodeURIComponent(St(lt))+ft;return pt(xt[lt])?vt(xt[lt],function(z){return E+encodeURIComponent(St(z))}).join(dt):E+encodeURIComponent(St(xt[lt]))}).join(dt):ct?encodeURIComponent(St(ct))+ft+encodeURIComponent(St(xt)):""};var pt=Array.isArray||function(xt){return Object.prototype.toString.call(xt)==="[object Array]"};function vt(xt,dt){if(xt.map)return xt.map(dt);for(var ft=[],ct=0;ct0?(typeof Ae!="string"&&!ue.objectMode&&Object.getPrototypeOf(Ae)!==lt.prototype&&(Ae=z(Ae)),Be?ue.endEmitted?ae.emit("error",new Error("stream.unshift() after end event")):Ut(ae,ue,Ae,!0):ue.ended?ae.emit("error",new Error("stream.push() after EOF")):(ue.reading=!1,ue.decoder&&!Xe?(Ae=ue.decoder.write(Ae),ue.objectMode||Ae.length!==0?Ut(ae,ue,Ae,!1):re(ae,ue)):Ut(ae,ue,Ae,!1))):Be||(ue.reading=!1)}return Gt(ue)}function Ut(ae,Ae,Xe,Be){Ae.flowing&&Ae.length===0&&!Ae.sync?(ae.emit("data",Xe),ae.read(0)):(Ae.length+=Ae.objectMode?1:Xe.length,Be?Ae.buffer.unshift(Xe):Ae.buffer.push(Xe),Ae.needReadable&&ve(ae)),re(ae,Ae)}function Xt(ae,Ae){var Xe;return!ot(Ae)&&typeof Ae!="string"&&Ae!==void 0&&!ae.objectMode&&(Xe=new TypeError("Invalid non-string/buffer chunk")),Xe}function Gt(ae){return!ae.ended&&(ae.needReadable||ae.length=Vt?ae=Vt:(ae--,ae|=ae>>>1,ae|=ae>>>2,ae|=ae>>>4,ae|=ae>>>8,ae|=ae>>>16,ae++),ae}function ne(ae,Ae){return ae<=0||Ae.length===0&&Ae.ended?0:Ae.objectMode?1:ae!==ae?Ae.flowing&&Ae.length?Ae.buffer.head.data.length:Ae.length:(ae>Ae.highWaterMark&&(Ae.highWaterMark=Ht(ae)),ae<=Ae.length?ae:Ae.ended?Ae.length:(Ae.needReadable=!0,0))}Lt.prototype.read=function(ae){ut("read",ae),ae=parseInt(ae,10);var Ae=this._readableState,Xe=ae;if(ae!==0&&(Ae.emittedReadable=!1),ae===0&&Ae.needReadable&&(Ae.length>=Ae.highWaterMark||Ae.ended))return ut("read: emitReadable",Ae.length,Ae.ended),Ae.length===0&&Ae.ended?xe(this):ve(this),null;if(ae=ne(ae,Ae),ae===0&&Ae.ended)return Ae.length===0&&xe(this),null;var Be=Ae.needReadable;ut("need readable",Be),(Ae.length===0||Ae.length-ae0?Te=_e(ae,Ae):Te=null,Te===null?(Ae.needReadable=!0,ae=0):Ae.length-=ae,Ae.length===0&&(Ae.ended||(Ae.needReadable=!0),Xe!==ae&&Ae.ended&&xe(this)),Te!==null&&this.emit("data",Te),Te};function se(ae,Ae){if(!Ae.ended){if(Ae.decoder){var Xe=Ae.decoder.end();Xe&&Xe.length&&(Ae.buffer.push(Xe),Ae.length+=Ae.objectMode?1:Xe.length)}Ae.ended=!0,ve(ae)}}function ve(ae){var Ae=ae._readableState;Ae.needReadable=!1,Ae.emittedReadable||(ut("emitReadable",Ae.flowing),Ae.emittedReadable=!0,Ae.sync?vt.nextTick(Kt,ae):Kt(ae))}function Kt(ae){ut("emit readable"),ae.emit("readable"),de(ae)}function re(ae,Ae){Ae.readingMore||(Ae.readingMore=!0,vt.nextTick(we,ae,Ae))}function we(ae,Ae){for(var Xe=Ae.length;!Ae.reading&&!Ae.flowing&&!Ae.ended&&Ae.length1&&Ne(Be.pipes,ae)!==-1)&&!Qt&&(ut("false write response, pause",Xe._readableState.awaitDrain),Xe._readableState.awaitDrain++,Bt=!0),Xe.pause())}function me(Je){ut("onerror",Je),Ue(),ae.removeListener("error",me),ft(ae,"error")===0&&ae.emit("error",Je)}Mt(ae,"error",me);function Jt(){ae.removeListener("finish",Ie),Ue()}ae.once("close",Jt);function Ie(){ut("onfinish"),ae.removeListener("close",Jt),Ue()}ae.once("finish",Ie);function Ue(){ut("unpipe"),Xe.unpipe(ae)}return ae.emit("pipe",Xe),Be.flowing||(ut("pipe resume"),Xe.resume()),ae};function ke(ae){return function(){var Ae=ae._readableState;ut("pipeOnDrain",Ae.awaitDrain),Ae.awaitDrain&&Ae.awaitDrain--,Ae.awaitDrain===0&&ft(ae,"data")&&(Ae.flowing=!0,de(ae))}}Lt.prototype.unpipe=function(ae){var Ae=this._readableState,Xe={hasUnpiped:!1};if(Ae.pipesCount===0)return this;if(Ae.pipesCount===1)return ae&&ae!==Ae.pipes?this:(ae||(ae=Ae.pipes),Ae.pipes=null,Ae.pipesCount=0,Ae.flowing=!1,ae&&ae.emit("unpipe",this,Xe),this);if(!ae){var Be=Ae.pipes,Te=Ae.pipesCount;Ae.pipes=null,Ae.pipesCount=0,Ae.flowing=!1;for(var ue=0;ue=Ae.length?(Ae.decoder?Xe=Ae.buffer.join(""):Ae.buffer.length===1?Xe=Ae.buffer.head.data:Xe=Ae.buffer.concat(Ae.length),Ae.buffer.clear()):Xe=Oe(ae,Ae.buffer,Ae.decoder),Xe}function Oe(ae,Ae,Xe){var Be;return aeue.length?ue.length:ae;if($t===ue.length?Te+=ue:Te+=ue.slice(0,ae),ae-=$t,ae===0){$t===ue.length?(++Be,Xe.next?Ae.head=Xe.next:Ae.head=Ae.tail=null):(Ae.head=Xe,Xe.data=ue.slice($t));break}++Be}return Ae.length-=Be,Te}function Se(ae,Ae){var Xe=lt.allocUnsafe(ae),Be=Ae.head,Te=1;for(Be.data.copy(Xe),ae-=Be.data.length;Be=Be.next;){var ue=Be.data,$t=ae>ue.length?ue.length:ae;if(ue.copy(Xe,Xe.length-ae,0,$t),ae-=$t,ae===0){$t===ue.length?(++Te,Be.next?Ae.head=Be.next:Ae.head=Ae.tail=null):(Ae.head=Be,Be.data=ue.slice($t));break}++Te}return Ae.length-=Te,Xe}function xe(ae){var Ae=ae._readableState;if(Ae.length>0)throw new Error('"endReadable()" called on non-empty stream');Ae.endEmitted||(Ae.ended=!0,vt.nextTick(le,Ae,ae))}function le(ae,Ae){!ae.endEmitted&&ae.length===0&&(ae.endEmitted=!0,Ae.readable=!1,Ae.emit("end"))}function Ne(ae,Ae){for(var Xe=0,Be=ae.length;Xe-1?vt:yt.nextTick,ct;Mt.WritableState=At;var lt=Object.create(rt("core-util-is"));lt.inherits=rt("inherits");var E={deprecate:rt("util-deprecate")},z=rt("./internal/streams/stream"),ot=rt("safe-buffer").Buffer,it=pt.Uint8Array||function(){};function at(fe){return ot.from(fe)}function ut(fe){return ot.isBuffer(fe)||fe instanceof it}var wt=rt("./internal/streams/destroy");lt.inherits(Mt,z);function Et(){}function At(fe,de){ct=ct||rt("./_stream_duplex"),fe=fe||{};var _e=de instanceof ct;this.objectMode=!!fe.objectMode,_e&&(this.objectMode=this.objectMode||!!fe.writableObjectMode);var Oe=fe.highWaterMark,He=fe.writableHighWaterMark,Se=this.objectMode?16:16*1024;Oe||Oe===0?this.highWaterMark=Oe:_e&&(He||He===0)?this.highWaterMark=He:this.highWaterMark=Se,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var xe=fe.decodeStrings===!1;this.decodeStrings=!xe,this.defaultEncoding=fe.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(le){Ht(de,le)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new dt(this)}At.prototype.getBuffer=function(){for(var de=this.bufferedRequest,_e=[];de;)_e.push(de),de=de.next;return _e},function(){try{Object.defineProperty(At.prototype,"buffer",{get:E.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(fe){}}();var _t;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(_t=Function.prototype[Symbol.hasInstance],Object.defineProperty(Mt,Symbol.hasInstance,{value:function(fe){return _t.call(this,fe)?!0:this!==Mt?!1:fe&&fe._writableState instanceof At}})):_t=function(fe){return fe instanceof this};function Mt(fe){if(ct=ct||rt("./_stream_duplex"),!_t.call(Mt,this)&&!(this instanceof ct))return new Mt(fe);this._writableState=new At(fe,this),this.writable=!0,fe&&(typeof fe.write=="function"&&(this._write=fe.write),typeof fe.writev=="function"&&(this._writev=fe.writev),typeof fe.destroy=="function"&&(this._destroy=fe.destroy),typeof fe.final=="function"&&(this._final=fe.final)),z.call(this)}Mt.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function jt(fe,de){var _e=new Error("write after end");fe.emit("error",_e),yt.nextTick(de,_e)}function Lt(fe,de,_e,Oe){var He=!0,Se=!1;return _e===null?Se=new TypeError("May not write null values to stream"):typeof _e!="string"&&_e!==void 0&&!de.objectMode&&(Se=new TypeError("Invalid non-string/buffer chunk")),Se&&(fe.emit("error",Se),yt.nextTick(Oe,Se),He=!1),He}Mt.prototype.write=function(fe,de,_e){var Oe=this._writableState,He=!1,Se=!Oe.objectMode&&ut(fe);return Se&&!ot.isBuffer(fe)&&(fe=at(fe)),typeof de=="function"&&(_e=de,de=null),Se?de="buffer":de||(de=Oe.defaultEncoding),typeof _e!="function"&&(_e=Et),Oe.ended?jt(this,_e):(Se||Lt(this,Oe,fe,_e))&&(Oe.pendingcb++,He=Ut(this,Oe,Se,fe,de,_e)),He},Mt.prototype.cork=function(){var fe=this._writableState;fe.corked++},Mt.prototype.uncork=function(){var fe=this._writableState;fe.corked&&(fe.corked--,!fe.writing&&!fe.corked&&!fe.finished&&!fe.bufferProcessing&&fe.bufferedRequest&&ve(this,fe))},Mt.prototype.setDefaultEncoding=function(de){if(typeof de=="string"&&(de=de.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((de+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+de);return this._writableState.defaultEncoding=de,this};function It(fe,de,_e){return!fe.objectMode&&fe.decodeStrings!==!1&&typeof de=="string"&&(de=ot.from(de,_e)),de}Object.defineProperty(Mt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Ut(fe,de,_e,Oe,He,Se){if(!_e){var xe=It(de,Oe,He);Oe!==xe&&(_e=!0,He="buffer",Oe=xe)}var le=de.objectMode?1:Oe.length;de.length+=le;var Ne=de.length0?this.tail.next=ct:this.head=ct,this.tail=ct,++this.length},xt.prototype.unshift=function(ft){var ct={data:ft,next:this.head};this.length===0&&(this.tail=ct),this.head=ct,++this.length},xt.prototype.shift=function(){if(this.length!==0){var ft=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,ft}},xt.prototype.clear=function(){this.head=this.tail=null,this.length=0},xt.prototype.join=function(ft){if(this.length===0)return"";for(var ct=this.head,lt=""+ct.data;ct=ct.next;)lt+=ft+ct.data;return lt},xt.prototype.concat=function(ft){if(this.length===0)return pt.alloc(0);if(this.length===1)return this.head.data;for(var ct=pt.allocUnsafe(ft>>>0),lt=this.head,E=0;lt;)yt(lt.data,ct,E),E+=lt.data.length,lt=lt.next;return ct},xt}(),vt&&vt.inspect&&vt.inspect.custom&&(kt.exports.prototype[vt.inspect.custom]=function(){var xt=vt.inspect({length:this.length});return this.constructor.name+" "+xt})},{"safe-buffer":396,util:89}],392:[function(rt,kt,Ct){"use strict";var St=rt("process-nextick-args");function pt(xt,dt){var ft=this,ct=this._readableState&&this._readableState.destroyed,lt=this._writableState&&this._writableState.destroyed;return ct||lt?(dt?dt(xt):xt&&(!this._writableState||!this._writableState.errorEmitted)&&St.nextTick(yt,this,xt),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(xt||null,function(E){!dt&&E?(St.nextTick(yt,ft,E),ft._writableState&&(ft._writableState.errorEmitted=!0)):dt&&dt(E)}),this)}function vt(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function yt(xt,dt){xt.emit("error",dt)}kt.exports={destroy:pt,undestroy:vt}},{"process-nextick-args":380}],393:[function(rt,kt,Ct){kt.exports=rt("events").EventEmitter},{events:344}],394:[function(rt,kt,Ct){Ct=kt.exports=rt("./lib/_stream_readable.js"),Ct.Stream=Ct,Ct.Readable=Ct,Ct.Writable=rt("./lib/_stream_writable.js"),Ct.Duplex=rt("./lib/_stream_duplex.js"),Ct.Transform=rt("./lib/_stream_transform.js"),Ct.PassThrough=rt("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":386,"./lib/_stream_passthrough.js":387,"./lib/_stream_readable.js":388,"./lib/_stream_transform.js":389,"./lib/_stream_writable.js":390}],395:[function(rt,kt,Ct){var St=function(pt){"use strict";var vt=Object.prototype,yt=vt.hasOwnProperty,xt,dt=typeof Symbol=="function"?Symbol:{},ft=dt.iterator||"@@iterator",ct=dt.asyncIterator||"@@asyncIterator",lt=dt.toStringTag||"@@toStringTag";function E(we,ke,Me){return Object.defineProperty(we,ke,{value:Me,enumerable:!0,configurable:!0,writable:!0}),we[ke]}try{E({},"")}catch(we){E=function(ke,Me,ge){return ke[Me]=ge}}function z(we,ke,Me,ge){var fe=ke&&ke.prototype instanceof At?ke:At,de=Object.create(fe.prototype),_e=new ve(ge||[]);return de._invoke=Vt(we,Me,_e),de}pt.wrap=z;function ot(we,ke,Me){try{return{type:"normal",arg:we.call(ke,Me)}}catch(ge){return{type:"throw",arg:ge}}}var it="suspendedStart",at="suspendedYield",ut="executing",wt="completed",Et={};function At(){}function _t(){}function Mt(){}var jt={};E(jt,ft,function(){return this});var Lt=Object.getPrototypeOf,It=Lt&&Lt(Lt(Kt([])));It&&It!==vt&&yt.call(It,ft)&&(jt=It);var Ut=Mt.prototype=At.prototype=Object.create(jt);_t.prototype=Mt,E(Ut,"constructor",Mt),E(Mt,"constructor",_t),_t.displayName=E(Mt,lt,"GeneratorFunction");function Xt(we){["next","throw","return"].forEach(function(ke){E(we,ke,function(Me){return this._invoke(ke,Me)})})}pt.isGeneratorFunction=function(we){var ke=typeof we=="function"&&we.constructor;return ke?ke===_t||(ke.displayName||ke.name)==="GeneratorFunction":!1},pt.mark=function(we){return Object.setPrototypeOf?Object.setPrototypeOf(we,Mt):(we.__proto__=Mt,E(we,lt,"GeneratorFunction")),we.prototype=Object.create(Ut),we},pt.awrap=function(we){return{__await:we}};function Gt(we,ke){function Me(de,_e,Oe,He){var Se=ot(we[de],we,_e);if(Se.type==="throw")He(Se.arg);else{var xe=Se.arg,le=xe.value;return le&&typeof le=="object"&&yt.call(le,"__await")?ke.resolve(le.__await).then(function(Ne){Me("next",Ne,Oe,He)},function(Ne){Me("throw",Ne,Oe,He)}):ke.resolve(le).then(function(Ne){xe.value=Ne,Oe(xe)},function(Ne){return Me("throw",Ne,Oe,He)})}}var ge;function fe(de,_e){function Oe(){return new ke(function(He,Se){Me(de,_e,He,Se)})}return ge=ge?ge.then(Oe,Oe):Oe()}this._invoke=fe}Xt(Gt.prototype),E(Gt.prototype,ct,function(){return this}),pt.AsyncIterator=Gt,pt.async=function(we,ke,Me,ge,fe){fe===void 0&&(fe=Promise);var de=new Gt(z(we,ke,Me,ge),fe);return pt.isGeneratorFunction(ke)?de:de.next().then(function(_e){return _e.done?_e.value:de.next()})};function Vt(we,ke,Me){var ge=it;return function(de,_e){if(ge===ut)throw new Error("Generator is already running");if(ge===wt){if(de==="throw")throw _e;return re()}for(Me.method=de,Me.arg=_e;;){var Oe=Me.delegate;if(Oe){var He=Ht(Oe,Me);if(He){if(He===Et)continue;return He}}if(Me.method==="next")Me.sent=Me._sent=Me.arg;else if(Me.method==="throw"){if(ge===it)throw ge=wt,Me.arg;Me.dispatchException(Me.arg)}else Me.method==="return"&&Me.abrupt("return",Me.arg);ge=ut;var Se=ot(we,ke,Me);if(Se.type==="normal"){if(ge=Me.done?wt:at,Se.arg===Et)continue;return{value:Se.arg,done:Me.done}}else Se.type==="throw"&&(ge=wt,Me.method="throw",Me.arg=Se.arg)}}}function Ht(we,ke){var Me=we.iterator[ke.method];if(Me===xt){if(ke.delegate=null,ke.method==="throw"){if(we.iterator.return&&(ke.method="return",ke.arg=xt,Ht(we,ke),ke.method==="throw"))return Et;ke.method="throw",ke.arg=new TypeError("The iterator does not provide a 'throw' method")}return Et}var ge=ot(Me,we.iterator,ke.arg);if(ge.type==="throw")return ke.method="throw",ke.arg=ge.arg,ke.delegate=null,Et;var fe=ge.arg;if(!fe)return ke.method="throw",ke.arg=new TypeError("iterator result is not an object"),ke.delegate=null,Et;if(fe.done)ke[we.resultName]=fe.value,ke.next=we.nextLoc,ke.method!=="return"&&(ke.method="next",ke.arg=xt);else return fe;return ke.delegate=null,Et}Xt(Ut),E(Ut,lt,"Generator"),E(Ut,ft,function(){return this}),E(Ut,"toString",function(){return"[object Generator]"});function ne(we){var ke={tryLoc:we[0]};1 in we&&(ke.catchLoc=we[1]),2 in we&&(ke.finallyLoc=we[2],ke.afterLoc=we[3]),this.tryEntries.push(ke)}function se(we){var ke=we.completion||{};ke.type="normal",delete ke.arg,we.completion=ke}function ve(we){this.tryEntries=[{tryLoc:"root"}],we.forEach(ne,this),this.reset(!0)}pt.keys=function(we){var ke=[];for(var Me in we)ke.push(Me);return ke.reverse(),function ge(){for(;ke.length;){var fe=ke.pop();if(fe in we)return ge.value=fe,ge.done=!1,ge}return ge.done=!0,ge}};function Kt(we){if(we){var ke=we[ft];if(ke)return ke.call(we);if(typeof we.next=="function")return we;if(!isNaN(we.length)){var Me=-1,ge=function fe(){for(;++Me=0;--ge){var fe=this.tryEntries[ge],de=fe.completion;if(fe.tryLoc==="root")return Me("end");if(fe.tryLoc<=this.prev){var _e=yt.call(fe,"catchLoc"),Oe=yt.call(fe,"finallyLoc");if(_e&&Oe){if(this.prev=0;--Me){var ge=this.tryEntries[Me];if(ge.tryLoc<=this.prev&&yt.call(ge,"finallyLoc")&&this.prev=0;--ke){var Me=this.tryEntries[ke];if(Me.finallyLoc===we)return this.complete(Me.completion,Me.afterLoc),se(Me),Et}},catch:function(we){for(var ke=this.tryEntries.length-1;ke>=0;--ke){var Me=this.tryEntries[ke];if(Me.tryLoc===we){var ge=Me.completion;if(ge.type==="throw"){var fe=ge.arg;se(Me)}return fe}}throw new Error("illegal catch attempt")},delegateYield:function(we,ke,Me){return this.delegate={iterator:Kt(we),resultName:ke,nextLoc:Me},this.method==="next"&&(this.arg=xt),Et}},pt}(typeof kt=="object"?kt.exports:{});try{regeneratorRuntime=St}catch(pt){typeof globalThis=="object"?globalThis.regeneratorRuntime=St:Function("r","regeneratorRuntime = r")(St)}},{}],396:[function(rt,kt,Ct){var St=rt("buffer"),pt=St.Buffer;function vt(xt,dt){for(var ft in xt)dt[ft]=xt[ft]}pt.from&&pt.alloc&&pt.allocUnsafe&&pt.allocUnsafeSlow?kt.exports=St:(vt(St,Ct),Ct.Buffer=yt);function yt(xt,dt,ft){return pt(xt,dt,ft)}vt(pt,yt),yt.from=function(xt,dt,ft){if(typeof xt=="number")throw new TypeError("Argument must not be a number");return pt(xt,dt,ft)},yt.alloc=function(xt,dt,ft){if(typeof xt!="number")throw new TypeError("Argument must be a number");var ct=pt(xt);return dt!==void 0?typeof ft=="string"?ct.fill(dt,ft):ct.fill(dt):ct.fill(0),ct},yt.allocUnsafe=function(xt){if(typeof xt!="number")throw new TypeError("Argument must be a number");return pt(xt)},yt.allocUnsafeSlow=function(xt){if(typeof xt!="number")throw new TypeError("Argument must be a number");return St.SlowBuffer(xt)}},{buffer:90}],397:[function(rt,kt,Ct){(function(St){(function(){(function(pt){pt.parser=function(xe,le){return new yt(xe,le)},pt.SAXParser=yt,pt.SAXStream=z,pt.createStream=E,pt.MAX_BUFFER_LENGTH=64*1024;var vt=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];pt.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function yt(xe,le){if(!(this instanceof yt))return new yt(xe,le);var Ne=this;dt(Ne),Ne.q=Ne.c="",Ne.bufferCheckPosition=pt.MAX_BUFFER_LENGTH,Ne.opt=le||{},Ne.opt.lowercase=Ne.opt.lowercase||Ne.opt.lowercasetags,Ne.looseCase=Ne.opt.lowercase?"toLowerCase":"toUpperCase",Ne.tags=[],Ne.closed=Ne.closedRoot=Ne.sawRoot=!1,Ne.tag=Ne.error=null,Ne.strict=!!xe,Ne.noscript=!!(xe||Ne.opt.noscript),Ne.state=Gt.BEGIN,Ne.strictEntities=Ne.opt.strictEntities,Ne.ENTITIES=Ne.strictEntities?Object.create(pt.XML_ENTITIES):Object.create(pt.ENTITIES),Ne.attribList=[],Ne.opt.xmlns&&(Ne.ns=Object.create(wt)),Ne.trackPosition=Ne.opt.position!==!1,Ne.trackPosition&&(Ne.position=Ne.line=Ne.column=0),Ht(Ne,"onready")}Object.create||(Object.create=function(xe){function le(){}le.prototype=xe;var Ne=new le;return Ne}),Object.keys||(Object.keys=function(xe){var le=[];for(var Ne in xe)xe.hasOwnProperty(Ne)&&le.push(Ne);return le});function xt(xe){for(var le=Math.max(pt.MAX_BUFFER_LENGTH,10),Ne=0,ae=0,Ae=vt.length;aele)switch(vt[ae]){case"textNode":se(xe);break;case"cdata":ne(xe,"oncdata",xe.cdata),xe.cdata="";break;case"script":ne(xe,"onscript",xe.script),xe.script="";break;default:Kt(xe,"Max buffer length exceeded: "+vt[ae])}Ne=Math.max(Ne,Xe)}var Be=pt.MAX_BUFFER_LENGTH-Ne;xe.bufferCheckPosition=Be+xe.position}function dt(xe){for(var le=0,Ne=vt.length;le"||jt(xe)}function Ut(xe,le){return xe.test(le)}function Xt(xe,le){return!Ut(xe,le)}var Gt=0;pt.STATE={BEGIN:Gt++,BEGIN_WHITESPACE:Gt++,TEXT:Gt++,TEXT_ENTITY:Gt++,OPEN_WAKA:Gt++,SGML_DECL:Gt++,SGML_DECL_QUOTED:Gt++,DOCTYPE:Gt++,DOCTYPE_QUOTED:Gt++,DOCTYPE_DTD:Gt++,DOCTYPE_DTD_QUOTED:Gt++,COMMENT_STARTING:Gt++,COMMENT:Gt++,COMMENT_ENDING:Gt++,COMMENT_ENDED:Gt++,CDATA:Gt++,CDATA_ENDING:Gt++,CDATA_ENDING_2:Gt++,PROC_INST:Gt++,PROC_INST_BODY:Gt++,PROC_INST_ENDING:Gt++,OPEN_TAG:Gt++,OPEN_TAG_SLASH:Gt++,ATTRIB:Gt++,ATTRIB_NAME:Gt++,ATTRIB_NAME_SAW_WHITE:Gt++,ATTRIB_VALUE:Gt++,ATTRIB_VALUE_QUOTED:Gt++,ATTRIB_VALUE_CLOSED:Gt++,ATTRIB_VALUE_UNQUOTED:Gt++,ATTRIB_VALUE_ENTITY_Q:Gt++,ATTRIB_VALUE_ENTITY_U:Gt++,CLOSE_TAG:Gt++,CLOSE_TAG_SAW_WHITE:Gt++,SCRIPT:Gt++,SCRIPT_ENDING:Gt++},pt.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},pt.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(pt.ENTITIES).forEach(function(xe){var le=pt.ENTITIES[xe],Ne=typeof le=="number"?String.fromCharCode(le):le;pt.ENTITIES[xe]=Ne});for(var Vt in pt.STATE)pt.STATE[pt.STATE[Vt]]=Vt;Gt=pt.STATE;function Ht(xe,le,Ne){xe[le]&&xe[le](Ne)}function ne(xe,le,Ne){xe.textNode&&se(xe),Ht(xe,le,Ne)}function se(xe){xe.textNode=ve(xe.opt,xe.textNode),xe.textNode&&Ht(xe,"ontext",xe.textNode),xe.textNode=""}function ve(xe,le){return xe.trim&&(le=le.trim()),xe.normalize&&(le=le.replace(/\s+/g," ")),le}function Kt(xe,le){return se(xe),xe.trackPosition&&(le+=` Line: `+xe.line+` Column: `+xe.column+` -Char: `+xe.c),le=new Error(le),xe.error=le,Ht(xe,"onerror",le),xe}function re(xe){return xe.sawRoot&&!xe.closedRoot&&we(xe,"Unclosed root tag"),xe.state!==Gt.BEGIN&&xe.state!==Gt.BEGIN_WHITESPACE&&xe.state!==Gt.TEXT&&Kt(xe,"Unexpected end"),ae(xe),xe.c="",xe.closed=!0,Ht(xe,"onend"),yt.call(xe,xe.strict,xe.opt),xe}function we(xe,le){if(typeof xe!="object"||!(xe instanceof yt))throw new Error("bad call to strictFail");xe.strict&&Kt(xe,le)}function Me(xe){xe.strict||(xe.tagName=xe.tagName[xe.looseCase]());var le=xe.tags[xe.tags.length-1]||xe,Ne=xe.tag={name:xe.tagName,attributes:{}};xe.opt.xmlns&&(Ne.ns=le.ns),xe.attribList.length=0,ne(xe,"onopentagstart",Ne)}function ke(xe,le){var Ne=xe.indexOf(":"),se=Ne<0?["",xe]:xe.split(":"),Ae=se[0],Xe=se[1];return le&&xe==="xmlns"&&(Ae="xmlns",Xe=""),{prefix:Ae,local:Xe}}function me(xe){if(xe.strict||(xe.attribName=xe.attribName[xe.looseCase]()),xe.attribList.indexOf(xe.attribName)!==-1||xe.tag.attributes.hasOwnProperty(xe.attribName)){xe.attribName=xe.attribValue="";return}if(xe.opt.xmlns){var le=ke(xe.attribName,!0),Ne=le.prefix,se=le.local;if(Ne==="xmlns")if(se==="xml"&&xe.attribValue!==at)we(xe,"xml: prefix must be bound to "+at+` -Actual: `+xe.attribValue);else if(se==="xmlns"&&xe.attribValue!==ut)we(xe,"xmlns: prefix must be bound to "+ut+` -Actual: `+xe.attribValue);else{var Ae=xe.tag,Xe=xe.tags[xe.tags.length-1]||xe;Ae.ns===Xe.ns&&(Ae.ns=Object.create(Xe.ns)),Ae.ns[se]=xe.attribValue}xe.attribList.push([xe.attribName,xe.attribValue])}else xe.tag.attributes[xe.attribName]=xe.attribValue,ne(xe,"onattribute",{name:xe.attribName,value:xe.attribValue});xe.attribName=xe.attribValue=""}function fe(xe,le){if(xe.opt.xmlns){var Ne=xe.tag,se=ke(xe.tagName);Ne.prefix=se.prefix,Ne.local=se.local,Ne.uri=Ne.ns[se.prefix]||"",Ne.prefix&&!Ne.uri&&(we(xe,"Unbound namespace prefix: "+JSON.stringify(xe.tagName)),Ne.uri=se.prefix);var Ae=xe.tags[xe.tags.length-1]||xe;Ne.ns&&Ae.ns!==Ne.ns&&Object.keys(Ne.ns).forEach(function(te){ne(xe,"onopennamespace",{prefix:te,uri:Ne.ns[te]})});for(var Xe=0,Be=xe.attribList.length;Xe",xe.tagName="",xe.state=Gt.SCRIPT;return}ne(xe,"onscript",xe.script),xe.script=""}var le=xe.tags.length,Ne=xe.tagName;xe.strict||(Ne=Ne[xe.looseCase]());for(var se=Ne;le--;){var Ae=xe.tags[le];if(Ae.name!==se)we(xe,"Unexpected close tag");else break}if(le<0){we(xe,"Unmatched closing tag: "+xe.tagName),xe.textNode+="",xe.state=Gt.TEXT;return}xe.tagName=Ne;for(var Xe=xe.tags.length;Xe-- >le;){var Be=xe.tag=xe.tags.pop();xe.tagName=xe.tag.name,ne(xe,"onclosetag",xe.tagName);var Te={};for(var ue in Be.ns)Te[ue]=Be.ns[ue];var $t=xe.tags[xe.tags.length-1]||xe;xe.opt.xmlns&&Be.ns!==$t.ns&&Object.keys(Be.ns).forEach(function(he){var ye=Be.ns[he];ne(xe,"onclosenamespace",{prefix:he,uri:ye})})}le===0&&(xe.closedRoot=!0),xe.tagName=xe.attribValue=xe.attribName="",xe.attribList.length=0,xe.state=Gt.TEXT}function _e(xe){var le=xe.entity,Ne=le.toLowerCase(),se,Ae="";return xe.ENTITIES[le]?xe.ENTITIES[le]:xe.ENTITIES[Ne]?xe.ENTITIES[Ne]:(le=Ne,le.charAt(0)==="#"&&(le.charAt(1)==="x"?(le=le.slice(2),se=parseInt(le,16),Ae=se.toString(16)):(le=le.slice(1),se=parseInt(le,10),Ae=se.toString(10))),le=le.replace(/^0+/,""),isNaN(se)||Ae.toLowerCase()!==le?(we(xe,"Invalid character entity"),"&"+xe.entity+";"):String.fromCodePoint(se))}function je(xe,le){le==="<"?(xe.state=Gt.OPEN_WAKA,xe.startTagPosition=xe.position):jt(le)||(we(xe,"Non-whitespace before first tag."),xe.textNode=le,xe.state=Gt.TEXT)}function He(xe,le){var Ne="";return le"?(ne(le,"onsgmldeclaration",le.sgmlDecl),le.sgmlDecl="",le.state=Gt.TEXT):(Lt(se)&&(le.state=Gt.SGML_DECL_QUOTED),le.sgmlDecl+=se);continue;case Gt.SGML_DECL_QUOTED:se===le.q&&(le.state=Gt.SGML_DECL,le.q=""),le.sgmlDecl+=se;continue;case Gt.DOCTYPE:se===">"?(le.state=Gt.TEXT,ne(le,"ondoctype",le.doctype),le.doctype=!0):(le.doctype+=se,se==="["?le.state=Gt.DOCTYPE_DTD:Lt(se)&&(le.state=Gt.DOCTYPE_QUOTED,le.q=se));continue;case Gt.DOCTYPE_QUOTED:le.doctype+=se,se===le.q&&(le.q="",le.state=Gt.DOCTYPE);continue;case Gt.DOCTYPE_DTD:le.doctype+=se,se==="]"?le.state=Gt.DOCTYPE:Lt(se)&&(le.state=Gt.DOCTYPE_DTD_QUOTED,le.q=se);continue;case Gt.DOCTYPE_DTD_QUOTED:le.doctype+=se,se===le.q&&(le.state=Gt.DOCTYPE_DTD,le.q="");continue;case Gt.COMMENT:se==="-"?le.state=Gt.COMMENT_ENDING:le.comment+=se;continue;case Gt.COMMENT_ENDING:se==="-"?(le.state=Gt.COMMENT_ENDED,le.comment=ve(le.opt,le.comment),le.comment&&ne(le,"oncomment",le.comment),le.comment=""):(le.comment+="-"+se,le.state=Gt.COMMENT);continue;case Gt.COMMENT_ENDED:se!==">"?(we(le,"Malformed comment"),le.comment+="--"+se,le.state=Gt.COMMENT):le.state=Gt.TEXT;continue;case Gt.CDATA:se==="]"?le.state=Gt.CDATA_ENDING:le.cdata+=se;continue;case Gt.CDATA_ENDING:se==="]"?le.state=Gt.CDATA_ENDING_2:(le.cdata+="]"+se,le.state=Gt.CDATA);continue;case Gt.CDATA_ENDING_2:se===">"?(le.cdata&&ne(le,"oncdata",le.cdata),ne(le,"onclosecdata"),le.cdata="",le.state=Gt.TEXT):se==="]"?le.cdata+="]":(le.cdata+="]]"+se,le.state=Gt.CDATA);continue;case Gt.PROC_INST:se==="?"?le.state=Gt.PROC_INST_ENDING:jt(se)?le.state=Gt.PROC_INST_BODY:le.procInstName+=se;continue;case Gt.PROC_INST_BODY:if(!le.procInstBody&&jt(se))continue;se==="?"?le.state=Gt.PROC_INST_ENDING:le.procInstBody+=se;continue;case Gt.PROC_INST_ENDING:se===">"?(ne(le,"onprocessinginstruction",{name:le.procInstName,body:le.procInstBody}),le.procInstName=le.procInstBody="",le.state=Gt.TEXT):(le.procInstBody+="?"+se,le.state=Gt.PROC_INST_BODY);continue;case Gt.OPEN_TAG:Ut(At,se)?le.tagName+=se:(Me(le),se===">"?fe(le):se==="/"?le.state=Gt.OPEN_TAG_SLASH:(jt(se)||we(le,"Invalid character in tag name"),le.state=Gt.ATTRIB));continue;case Gt.OPEN_TAG_SLASH:se===">"?(fe(le,!0),pe(le)):(we(le,"Forward-slash in opening tag not followed by >"),le.state=Gt.ATTRIB);continue;case Gt.ATTRIB:if(jt(se))continue;se===">"?fe(le):se==="/"?le.state=Gt.OPEN_TAG_SLASH:Ut(Et,se)?(le.attribName=se,le.attribValue="",le.state=Gt.ATTRIB_NAME):we(le,"Invalid attribute name");continue;case Gt.ATTRIB_NAME:se==="="?le.state=Gt.ATTRIB_VALUE:se===">"?(we(le,"Attribute without value"),le.attribValue=le.attribName,me(le),fe(le)):jt(se)?le.state=Gt.ATTRIB_NAME_SAW_WHITE:Ut(At,se)?le.attribName+=se:we(le,"Invalid attribute name");continue;case Gt.ATTRIB_NAME_SAW_WHITE:if(se==="=")le.state=Gt.ATTRIB_VALUE;else{if(jt(se))continue;we(le,"Attribute without value"),le.tag.attributes[le.attribName]="",le.attribValue="",ne(le,"onattribute",{name:le.attribName,value:""}),le.attribName="",se===">"?fe(le):Ut(Et,se)?(le.attribName=se,le.state=Gt.ATTRIB_NAME):(we(le,"Invalid attribute name"),le.state=Gt.ATTRIB)}continue;case Gt.ATTRIB_VALUE:if(jt(se))continue;Lt(se)?(le.q=se,le.state=Gt.ATTRIB_VALUE_QUOTED):(we(le,"Unquoted attribute value"),le.state=Gt.ATTRIB_VALUE_UNQUOTED,le.attribValue=se);continue;case Gt.ATTRIB_VALUE_QUOTED:if(se!==le.q){se==="&"?le.state=Gt.ATTRIB_VALUE_ENTITY_Q:le.attribValue+=se;continue}me(le),le.q="",le.state=Gt.ATTRIB_VALUE_CLOSED;continue;case Gt.ATTRIB_VALUE_CLOSED:jt(se)?le.state=Gt.ATTRIB:se===">"?fe(le):se==="/"?le.state=Gt.OPEN_TAG_SLASH:Ut(Et,se)?(we(le,"No whitespace between attributes"),le.attribName=se,le.attribValue="",le.state=Gt.ATTRIB_NAME):we(le,"Invalid attribute name");continue;case Gt.ATTRIB_VALUE_UNQUOTED:if(!It(se)){se==="&"?le.state=Gt.ATTRIB_VALUE_ENTITY_U:le.attribValue+=se;continue}me(le),se===">"?fe(le):le.state=Gt.ATTRIB;continue;case Gt.CLOSE_TAG:if(le.tagName)se===">"?pe(le):Ut(At,se)?le.tagName+=se:le.script?(le.script+=""?pe(le):we(le,"Invalid characters in closing tag");continue;case Gt.TEXT_ENTITY:case Gt.ATTRIB_VALUE_ENTITY_Q:case Gt.ATTRIB_VALUE_ENTITY_U:var Be,Te;switch(le.state){case Gt.TEXT_ENTITY:Be=Gt.TEXT,Te="textNode";break;case Gt.ATTRIB_VALUE_ENTITY_Q:Be=Gt.ATTRIB_VALUE_QUOTED,Te="attribValue";break;case Gt.ATTRIB_VALUE_ENTITY_U:Be=Gt.ATTRIB_VALUE_UNQUOTED,Te="attribValue";break}se===";"?(le[Te]+=_e(le),le.entity="",le.state=Be):Ut(le.entity.length?Mt:_t,se)?le.entity+=se:(we(le,"Invalid character in entity name"),le[Te]+="&"+le.entity+se,le.entity="",le.state=Be);continue;default:throw new Error(le,"Unknown state: "+le.state)}return le.position>=le.bufferCheckPosition&&xt(le),le}String.fromCodePoint||function(){var xe=String.fromCharCode,le=Math.floor,Ne=function(){var se=16384,Ae=[],Xe,Be,Te=-1,ue=arguments.length;if(!ue)return"";for(var $t="";++Te1114111||le(he)!==he)throw RangeError("Invalid code point: "+he);he<=65535?Ae.push(he):(he-=65536,Xe=(he>>10)+55296,Be=he%1024+56320,Ae.push(Xe,Be)),(Te+1===ue||Ae.length>se)&&($t+=xe.apply(null,Ae),Ae.length=0)}return $t};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Ne,configurable:!0,writable:!0}):String.fromCodePoint=Ne}()})(typeof Ct=="undefined"?this.sax={}:Ct)}).call(this)}).call(this,rt("buffer").Buffer)},{buffer:90,stream:398,string_decoder:413}],398:[function(rt,kt,Ct){kt.exports=vt;var St=rt("events").EventEmitter,pt=rt("inherits");pt(vt,St),vt.Readable=rt("readable-stream/lib/_stream_readable.js"),vt.Writable=rt("readable-stream/lib/_stream_writable.js"),vt.Duplex=rt("readable-stream/lib/_stream_duplex.js"),vt.Transform=rt("readable-stream/lib/_stream_transform.js"),vt.PassThrough=rt("readable-stream/lib/_stream_passthrough.js"),vt.finished=rt("readable-stream/lib/internal/streams/end-of-stream.js"),vt.pipeline=rt("readable-stream/lib/internal/streams/pipeline.js"),vt.Stream=vt;function vt(){St.call(this)}vt.prototype.pipe=function(yt,xt){var dt=this;function ft(at){yt.writable&&yt.write(at)===!1&&dt.pause&&dt.pause()}dt.on("data",ft);function ct(){dt.readable&&dt.resume&&dt.resume()}yt.on("drain",ct),!yt._isStdio&&(!xt||xt.end!==!1)&&(dt.on("end",E),dt.on("close",z));var lt=!1;function E(){lt||(lt=!0,yt.end())}function z(){lt||(lt=!0,typeof yt.destroy=="function"&&yt.destroy())}function ot(at){if(it(),St.listenerCount(this,"error")===0)throw at}dt.on("error",ot),yt.on("error",ot);function it(){dt.removeListener("data",ft),yt.removeListener("drain",ct),dt.removeListener("end",E),dt.removeListener("close",z),dt.removeListener("error",ot),yt.removeListener("error",ot),dt.removeListener("end",it),dt.removeListener("close",it),yt.removeListener("close",it)}return dt.on("end",it),dt.on("close",it),yt.on("close",it),yt.emit("pipe",dt),yt}},{events:344,inherits:364,"readable-stream/lib/_stream_duplex.js":400,"readable-stream/lib/_stream_passthrough.js":401,"readable-stream/lib/_stream_readable.js":402,"readable-stream/lib/_stream_transform.js":403,"readable-stream/lib/_stream_writable.js":404,"readable-stream/lib/internal/streams/end-of-stream.js":408,"readable-stream/lib/internal/streams/pipeline.js":410}],399:[function(rt,kt,Ct){"use strict";function St(ct,lt){ct.prototype=Object.create(lt.prototype),ct.prototype.constructor=ct,ct.__proto__=lt}var pt={};function vt(ct,lt,E){E||(E=Error);function z(it,at,ut){return typeof lt=="string"?lt:lt(it,at,ut)}var ot=function(it){St(at,it);function at(ut,wt,Et){return it.call(this,z(ut,wt,Et))||this}return at}(E);ot.prototype.name=E.name,ot.prototype.code=ct,pt[ct]=ot}function yt(ct,lt){if(Array.isArray(ct)){var E=ct.length;return ct=ct.map(function(z){return String(z)}),E>2?"one of ".concat(lt," ").concat(ct.slice(0,E-1).join(", "),", or ")+ct[E-1]:E===2?"one of ".concat(lt," ").concat(ct[0]," or ").concat(ct[1]):"of ".concat(lt," ").concat(ct[0])}else return"of ".concat(lt," ").concat(String(ct))}function xt(ct,lt,E){return ct.substr(!E||E<0?0:+E,lt.length)===lt}function dt(ct,lt,E){return(E===void 0||E>ct.length)&&(E=ct.length),ct.substring(E-lt.length,E)===lt}function ft(ct,lt,E){return typeof E!="number"&&(E=0),E+lt.length>ct.length?!1:ct.indexOf(lt,E)!==-1}vt("ERR_INVALID_OPT_VALUE",function(ct,lt){return'The value "'+lt+'" is invalid for option "'+ct+'"'},TypeError),vt("ERR_INVALID_ARG_TYPE",function(ct,lt,E){var z;typeof lt=="string"&&xt(lt,"not ")?(z="must not be",lt=lt.replace(/^not /,"")):z="must be";var ot;if(dt(ct," argument"))ot="The ".concat(ct," ").concat(z," ").concat(yt(lt,"type"));else{var it=ft(ct,".")?"property":"argument";ot='The "'.concat(ct,'" ').concat(it," ").concat(z," ").concat(yt(lt,"type"))}return ot+=". Received type ".concat(typeof E),ot},TypeError),vt("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),vt("ERR_METHOD_NOT_IMPLEMENTED",function(ct){return"The "+ct+" method is not implemented"}),vt("ERR_STREAM_PREMATURE_CLOSE","Premature close"),vt("ERR_STREAM_DESTROYED",function(ct){return"Cannot call "+ct+" after a stream was destroyed"}),vt("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),vt("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),vt("ERR_STREAM_WRITE_AFTER_END","write after end"),vt("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),vt("ERR_UNKNOWN_ENCODING",function(ct){return"Unknown encoding: "+ct},TypeError),vt("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),kt.exports.codes=pt},{}],400:[function(rt,kt,Ct){(function(St){(function(){"use strict";var pt=Object.keys||function(z){var ot=[];for(var it in z)ot.push(it);return ot};kt.exports=ct;var vt=rt("./_stream_readable"),yt=rt("./_stream_writable");rt("inherits")(ct,vt);for(var xt=pt(yt.prototype),dt=0;dt0)if(typeof ue!="string"&&!Qt.objectMode&&Object.getPrototypeOf(ue)!==ft.prototype&&(ue=lt(ue)),he)Qt.endEmitted?Xt(Te,new jt):ve(Te,Qt,ue,!0);else if(Qt.ended)Xt(Te,new _t);else{if(Qt.destroyed)return!1;Qt.reading=!1,Qt.decoder&&!$t?(ue=Qt.decoder.write(ue),Qt.objectMode||ue.length!==0?ve(Te,Qt,ue,!1):pe(Te,Qt)):ve(Te,Qt,ue,!1)}else he||(Qt.reading=!1,pe(Te,Qt))}return!Qt.ended&&(Qt.length=re?Te=re:(Te--,Te|=Te>>>1,Te|=Te>>>2,Te|=Te>>>4,Te|=Te>>>8,Te|=Te>>>16,Te++),Te}function Me(Te,ue){return Te<=0||ue.length===0&&ue.ended?0:ue.objectMode?1:Te!==Te?ue.flowing&&ue.length?ue.buffer.head.data.length:ue.length:(Te>ue.highWaterMark&&(ue.highWaterMark=we(Te)),Te<=ue.length?Te:ue.ended?ue.length:(ue.needReadable=!0,0))}ne.prototype.read=function(Te){ot("read",Te),Te=parseInt(Te,10);var ue=this._readableState,$t=Te;if(Te!==0&&(ue.emittedReadable=!1),Te===0&&ue.needReadable&&((ue.highWaterMark!==0?ue.length>=ue.highWaterMark:ue.length>0)||ue.ended))return ot("read: emitReadable",ue.length,ue.ended),ue.length===0&&ue.ended?Ae(this):me(this),null;if(Te=Me(Te,ue),Te===0&&ue.ended)return ue.length===0&&Ae(this),null;var he=ue.needReadable;ot("need readable",he),(ue.length===0||ue.length-Te0?ye=se(Te,ue):ye=null,ye===null?(ue.needReadable=ue.length<=ue.highWaterMark,Te=0):(ue.length-=Te,ue.awaitDrain=0),ue.length===0&&(ue.ended||(ue.needReadable=!0),$t!==Te&&ue.ended&&Ae(this)),ye!==null&&this.emit("data",ye),ye};function ke(Te,ue){if(ot("onEofChunk"),!ue.ended){if(ue.decoder){var $t=ue.decoder.end();$t&&$t.length&&(ue.buffer.push($t),ue.length+=ue.objectMode?1:$t.length)}ue.ended=!0,ue.sync?me(Te):(ue.needReadable=!1,ue.emittedReadable||(ue.emittedReadable=!0,fe(Te)))}}function me(Te){var ue=Te._readableState;ot("emitReadable",ue.needReadable,ue.emittedReadable),ue.needReadable=!1,ue.emittedReadable||(ot("emitReadable",ue.flowing),ue.emittedReadable=!0,St.nextTick(fe,Te))}function fe(Te){var ue=Te._readableState;ot("emitReadable_",ue.destroyed,ue.length,ue.ended),!ue.destroyed&&(ue.length||ue.ended)&&(Te.emit("readable"),ue.emittedReadable=!1),ue.needReadable=!ue.flowing&&!ue.ended&&ue.length<=ue.highWaterMark,Ne(Te)}function pe(Te,ue){ue.readingMore||(ue.readingMore=!0,St.nextTick(_e,Te,ue))}function _e(Te,ue){for(;!ue.reading&&!ue.ended&&(ue.length1&&Be(he.pipes,Te)!==-1)&&!ge&&(ot("false write response, pause",he.awaitDrain),he.awaitDrain++),$t.pause())}function Ue(fn){ot("onerror",fn),nn(),Te.removeListener("error",Ue),xt(Te,"error")===0&&Xt(Te,fn)}Yt(Te,"error",Ue);function Je(){Te.removeListener("finish",Ze),nn()}Te.once("close",Je);function Ze(){ot("onfinish"),Te.removeListener("close",Je),nn()}Te.once("finish",Ze);function nn(){ot("unpipe"),$t.unpipe(Te)}return Te.emit("pipe",$t),he.flowing||(ot("pipe resume"),$t.resume()),Te};function je(Te){return function(){var $t=Te._readableState;ot("pipeOnDrain",$t.awaitDrain),$t.awaitDrain&&$t.awaitDrain--,$t.awaitDrain===0&&xt(Te,"data")&&($t.flowing=!0,Ne(Te))}}ne.prototype.unpipe=function(Te){var ue=this._readableState,$t={hasUnpiped:!1};if(ue.pipesCount===0)return this;if(ue.pipesCount===1)return Te&&Te!==ue.pipes?this:(Te||(Te=ue.pipes),ue.pipes=null,ue.pipesCount=0,ue.flowing=!1,Te&&Te.emit("unpipe",this,$t),this);if(!Te){var he=ue.pipes,ye=ue.pipesCount;ue.pipes=null,ue.pipesCount=0,ue.flowing=!1;for(var Qt=0;Qt0,he.flowing!==!1&&this.resume()):Te==="readable"&&!he.endEmitted&&!he.readableListening&&(he.readableListening=he.needReadable=!0,he.flowing=!1,he.emittedReadable=!1,ot("on readable",he.length,he.reading),he.length?me(this):he.reading||St.nextTick(Se,this)),$t},ne.prototype.addListener=ne.prototype.on,ne.prototype.removeListener=function(Te,ue){var $t=dt.prototype.removeListener.call(this,Te,ue);return Te==="readable"&&St.nextTick(He,this),$t},ne.prototype.removeAllListeners=function(Te){var ue=dt.prototype.removeAllListeners.apply(this,arguments);return(Te==="readable"||Te===void 0)&&St.nextTick(He,this),ue};function He(Te){var ue=Te._readableState;ue.readableListening=Te.listenerCount("readable")>0,ue.resumeScheduled&&!ue.paused?ue.flowing=!0:Te.listenerCount("data")>0&&Te.resume()}function Se(Te){ot("readable nexttick read 0"),Te.read(0)}ne.prototype.resume=function(){var Te=this._readableState;return Te.flowing||(ot("resume"),Te.flowing=!Te.readableListening,xe(this,Te)),Te.paused=!1,this};function xe(Te,ue){ue.resumeScheduled||(ue.resumeScheduled=!0,St.nextTick(le,Te,ue))}function le(Te,ue){ot("resume",ue.reading),ue.reading||Te.read(0),ue.resumeScheduled=!1,Te.emit("resume"),Ne(Te),ue.flowing&&!ue.reading&&Te.read(0)}ne.prototype.pause=function(){return ot("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ot("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Ne(Te){var ue=Te._readableState;for(ot("flow",ue.flowing);ue.flowing&&Te.read()!==null;);}ne.prototype.wrap=function(Te){var ue=this,$t=this._readableState,he=!1;Te.on("end",function(){if(ot("wrapped end"),$t.decoder&&!$t.ended){var Wt=$t.decoder.end();Wt&&Wt.length&&ue.push(Wt)}ue.push(null)}),Te.on("data",function(Wt){if(ot("wrapped data"),$t.decoder&&(Wt=$t.decoder.write(Wt)),!($t.objectMode&&Wt==null)&&!(!$t.objectMode&&(!Wt||!Wt.length))){var Bt=ue.push(Wt);Bt||(he=!0,Te.pause())}});for(var ye in Te)this[ye]===void 0&&typeof Te[ye]=="function"&&(this[ye]=function(Bt){return function(){return Te[Bt].apply(Te,arguments)}}(ye));for(var Qt=0;Qt=ue.length?(ue.decoder?$t=ue.buffer.join(""):ue.buffer.length===1?$t=ue.buffer.first():$t=ue.buffer.concat(ue.length),ue.buffer.clear()):$t=ue.buffer.consume(Te,ue.decoder),$t}function Ae(Te){var ue=Te._readableState;ot("endReadable",ue.endEmitted),ue.endEmitted||(ue.ended=!0,St.nextTick(Xe,ue,Te))}function Xe(Te,ue){if(ot("endReadableNT",Te.endEmitted,Te.length),!Te.endEmitted&&Te.length===0&&(Te.endEmitted=!0,ue.readable=!1,ue.emit("end"),Te.autoDestroy)){var $t=ue._writableState;(!$t||$t.autoDestroy&&$t.finished)&&ue.destroy()}}typeof Symbol=="function"&&(ne.from=function(Te,ue){return Ut===void 0&&(Ut=rt("./internal/streams/from")),Ut(ne,Te,ue)});function Be(Te,ue){for(var $t=0,he=Te.length;$t-1))throw new It(se);return this._writableState.defaultEncoding=se,this},Object.defineProperty(Ht.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function ve(Ne,se,Ae){return!Ne.objectMode&&Ne.decodeStrings!==!1&&typeof se=="string"&&(se=ct.from(se,Ae)),se}Object.defineProperty(Ht.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Kt(Ne,se,Ae,Xe,Be,Te){if(!Ae){var ue=ve(se,Xe,Be);Xe!==ue&&(Ae=!0,Be="buffer",Xe=ue)}var $t=se.objectMode?1:Xe.length;se.length+=$t;var he=se.length0?this.tail.next=At:this.head=At,this.tail=At,++this.length}},{key:"unshift",value:function(Et){var At={data:Et,next:this.head};this.length===0&&(this.tail=At),this.head=At,++this.length}},{key:"shift",value:function(){if(this.length!==0){var Et=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,Et}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Et){if(this.length===0)return"";for(var At=this.head,_t=""+At.data;At=At.next;)_t+=Et+At.data;return _t}},{key:"concat",value:function(Et){if(this.length===0)return E.alloc(0);for(var At=E.allocUnsafe(Et>>>0),_t=this.head,Mt=0;_t;)at(_t.data,At,Mt),Mt+=_t.data.length,_t=_t.next;return At}},{key:"consume",value:function(Et,At){var _t;return Etjt.length?jt.length:Et;if(Lt===jt.length?Mt+=jt:Mt+=jt.slice(0,Et),Et-=Lt,Et===0){Lt===jt.length?(++_t,At.next?this.head=At.next:this.head=this.tail=null):(this.head=At,At.data=jt.slice(Lt));break}++_t}return this.length-=_t,Mt}},{key:"_getBuffer",value:function(Et){var At=E.allocUnsafe(Et),_t=this.head,Mt=1;for(_t.data.copy(At),Et-=_t.data.length;_t=_t.next;){var jt=_t.data,Lt=Et>jt.length?jt.length:Et;if(jt.copy(At,At.length-Et,0,Lt),Et-=Lt,Et===0){Lt===jt.length?(++Mt,_t.next?this.head=_t.next:this.head=this.tail=null):(this.head=_t,_t.data=jt.slice(Lt));break}++Mt}return this.length-=Mt,At}},{key:it,value:function(Et,At){return ot(this,pt(pt({},At),{},{depth:0,customInspect:!1}))}}]),ut}()},{buffer:90,util:89}],407:[function(rt,kt,Ct){(function(St){(function(){"use strict";function pt(ct,lt){var E=this,z=this._readableState&&this._readableState.destroyed,ot=this._writableState&&this._writableState.destroyed;return z||ot?(lt?lt(ct):ct&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,St.nextTick(dt,this,ct)):St.nextTick(dt,this,ct)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(ct||null,function(it){!lt&&it?E._writableState?E._writableState.errorEmitted?St.nextTick(yt,E):(E._writableState.errorEmitted=!0,St.nextTick(vt,E,it)):St.nextTick(vt,E,it):lt?(St.nextTick(yt,E),lt(it)):St.nextTick(yt,E)}),this)}function vt(ct,lt){dt(ct,lt),yt(ct)}function yt(ct){ct._writableState&&!ct._writableState.emitClose||ct._readableState&&!ct._readableState.emitClose||ct.emit("close")}function xt(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function dt(ct,lt){ct.emit("error",lt)}function ft(ct,lt){var E=ct._readableState,z=ct._writableState;E&&E.autoDestroy||z&&z.autoDestroy?ct.destroy(lt):ct.emit("error",lt)}kt.exports={destroy:pt,undestroy:xt,errorOrDestroy:ft}}).call(this)}).call(this,rt("_process"))},{_process:467}],408:[function(rt,kt,Ct){"use strict";var St=rt("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function pt(dt){var ft=!1;return function(){if(!ft){ft=!0;for(var ct=arguments.length,lt=new Array(ct),E=0;E0;return ct(_t,jt,Lt,function(It){Et||(Et=It),It&&At.forEach(lt),!jt&&(At.forEach(lt),wt(Et))})});return at.reduce(E)}kt.exports=ot},{"../../../errors":399,"./end-of-stream":408}],411:[function(rt,kt,Ct){"use strict";var St=rt("../../../errors").codes.ERR_INVALID_OPT_VALUE;function pt(yt,xt,dt){return yt.highWaterMark!=null?yt.highWaterMark:xt?yt[dt]:null}function vt(yt,xt,dt,ft){var ct=pt(xt,ft,dt);if(ct!=null){if(!(isFinite(ct)&&Math.floor(ct)===ct)||ct<0){var lt=ft?dt:"highWaterMark";throw new St(lt,ct)}return Math.floor(ct)}return yt.objectMode?16:16*1024}kt.exports={getHighWaterMark:vt}},{"../../../errors":399}],412:[function(rt,kt,Ct){arguments[4][393][0].apply(Ct,arguments)},{dup:393,events:344}],413:[function(rt,kt,Ct){"use strict";var St=rt("safe-buffer").Buffer,pt=St.isEncoding||function(At){switch(At=""+At,At&&At.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function vt(At){if(!At)return"utf8";for(var _t;;)switch(At){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return At;default:if(_t)return;At=(""+At).toLowerCase(),_t=!0}}function yt(At){var _t=vt(At);if(typeof _t!="string"&&(St.isEncoding===pt||!pt(At)))throw new Error("Unknown encoding: "+At);return _t||At}Ct.StringDecoder=xt;function xt(At){this.encoding=yt(At);var _t;switch(this.encoding){case"utf16le":this.text=ot,this.end=it,_t=4;break;case"utf8":this.fillLast=lt,_t=4;break;case"base64":this.text=at,this.end=ut,_t=3;break;default:this.write=wt,this.end=Et;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=St.allocUnsafe(_t)}xt.prototype.write=function(At){if(At.length===0)return"";var _t,Mt;if(this.lastNeed){if(_t=this.fillLast(At),_t===void 0)return"";Mt=this.lastNeed,this.lastNeed=0}else Mt=0;return Mt>5===6?2:At>>4===14?3:At>>3===30?4:At>>6===2?-1:-2}function ft(At,_t,Mt){var jt=_t.length-1;if(jt=0?(Lt>0&&(At.lastNeed=Lt-1),Lt):--jt=0?(Lt>0&&(At.lastNeed=Lt-2),Lt):--jt=0?(Lt>0&&(Lt===2?Lt=0:At.lastNeed=Lt-3),Lt):0))}function ct(At,_t,Mt){if((_t[0]&192)!==128)return At.lastNeed=0,"\uFFFD";if(At.lastNeed>1&&_t.length>1){if((_t[1]&192)!==128)return At.lastNeed=1,"\uFFFD";if(At.lastNeed>2&&_t.length>2&&(_t[2]&192)!==128)return At.lastNeed=2,"\uFFFD"}}function lt(At){var _t=this.lastTotal-this.lastNeed,Mt=ct(this,At,_t);if(Mt!==void 0)return Mt;if(this.lastNeed<=At.length)return At.copy(this.lastChar,_t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);At.copy(this.lastChar,_t,0,At.length),this.lastNeed-=At.length}function E(At,_t){var Mt=ft(this,At,_t);if(!this.lastNeed)return At.toString("utf8",_t);this.lastTotal=Mt;var jt=At.length-(Mt-this.lastNeed);return At.copy(this.lastChar,0,jt),At.toString("utf8",_t,jt)}function z(At){var _t=At&&At.length?this.write(At):"";return this.lastNeed?_t+"\uFFFD":_t}function ot(At,_t){if((At.length-_t)%2===0){var Mt=At.toString("utf16le",_t);if(Mt){var jt=Mt.charCodeAt(Mt.length-1);if(jt>=55296&&jt<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=At[At.length-2],this.lastChar[1]=At[At.length-1],Mt.slice(0,-1)}return Mt}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=At[At.length-1],At.toString("utf16le",_t,At.length-1)}function it(At){var _t=At&&At.length?this.write(At):"";if(this.lastNeed){var Mt=this.lastTotal-this.lastNeed;return _t+this.lastChar.toString("utf16le",0,Mt)}return _t}function at(At,_t){var Mt=(At.length-_t)%3;return Mt===0?At.toString("base64",_t):(this.lastNeed=3-Mt,this.lastTotal=3,Mt===1?this.lastChar[0]=At[At.length-1]:(this.lastChar[0]=At[At.length-2],this.lastChar[1]=At[At.length-1]),At.toString("base64",_t,At.length-Mt))}function ut(At){var _t=At&&At.length?this.write(At):"";return this.lastNeed?_t+this.lastChar.toString("base64",0,3-this.lastNeed):_t}function wt(At){return At.toString(this.encoding)}function Et(At){return At&&At.length?this.write(At):""}},{"safe-buffer":396}],414:[function(rt,kt,Ct){(function(St,pt){(function(){var vt=rt("process/browser.js").nextTick,yt=Function.prototype.apply,xt=Array.prototype.slice,dt={},ft=0;Ct.setTimeout=function(){return new ct(yt.call(setTimeout,window,arguments),clearTimeout)},Ct.setInterval=function(){return new ct(yt.call(setInterval,window,arguments),clearInterval)},Ct.clearTimeout=Ct.clearInterval=function(lt){lt.close()};function ct(lt,E){this._id=lt,this._clearFn=E}ct.prototype.unref=ct.prototype.ref=function(){},ct.prototype.close=function(){this._clearFn.call(window,this._id)},Ct.enroll=function(lt,E){clearTimeout(lt._idleTimeoutId),lt._idleTimeout=E},Ct.unenroll=function(lt){clearTimeout(lt._idleTimeoutId),lt._idleTimeout=-1},Ct._unrefActive=Ct.active=function(lt){clearTimeout(lt._idleTimeoutId);var E=lt._idleTimeout;E>=0&&(lt._idleTimeoutId=setTimeout(function(){lt._onTimeout&<._onTimeout()},E))},Ct.setImmediate=typeof St=="function"?St:function(lt){var E=ft++,z=arguments.length<2?!1:xt.call(arguments,1);return dt[E]=!0,vt(function(){dt[E]&&(z?lt.apply(null,z):lt.call(null),Ct.clearImmediate(E))}),E},Ct.clearImmediate=typeof pt=="function"?pt:function(lt){delete dt[lt]}}).call(this)}).call(this,rt("timers").setImmediate,rt("timers").clearImmediate)},{"process/browser.js":381,timers:414}],415:[function(rt,kt,Ct){var St=rt("buffer").Buffer;kt.exports=function(pt){if(pt instanceof Uint8Array){if(pt.byteOffset===0&&pt.byteLength===pt.buffer.byteLength)return pt.buffer;if(typeof pt.buffer.slice=="function")return pt.buffer.slice(pt.byteOffset,pt.byteOffset+pt.byteLength)}if(St.isBuffer(pt)){for(var vt=new Uint8Array(pt.length),yt=pt.length,xt=0;xt=Se)return Ne;switch(Ne){case"%s":return String(He[je++]);case"%d":return Number(He[je++]);case"%j":try{return JSON.stringify(He[je++])}catch(se){return"[Circular]"}default:return Ne}}),le=He[je];je=3&&(je.depth=arguments[2]),arguments.length>=4&&(je.colors=arguments[3]),At(_e)?je.showHidden=_e:_e&&Ct._extend(je,_e),Ut(je.showHidden)&&(je.showHidden=!1),Ut(je.depth)&&(je.depth=2),Ut(je.colors)&&(je.colors=!1),Ut(je.customInspect)&&(je.customInspect=!0),je.colors&&(je.stylize=ct),z(je,pe,je.depth)}Ct.inspect=ft,ft.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},ft.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function ct(pe,_e){var je=ft.styles[_e];return je?"\x1B["+ft.colors[je][0]+"m"+pe+"\x1B["+ft.colors[je][1]+"m":pe}function lt(pe,_e){return pe}function E(pe){var _e={};return pe.forEach(function(je,He){_e[je]=!0}),_e}function z(pe,_e,je){if(pe.customInspect&&_e&&ne(_e.inspect)&&_e.inspect!==Ct.inspect&&!(_e.constructor&&_e.constructor.prototype===_e)){var He=_e.inspect(je,pe);return Lt(He)||(He=z(pe,He,je)),He}var Se=ot(pe,_e);if(Se)return Se;var xe=Object.keys(_e),le=E(xe);if(pe.showHidden&&(xe=Object.getOwnPropertyNames(_e)),Ht(_e)&&(xe.indexOf("message")>=0||xe.indexOf("description")>=0))return it(_e);if(xe.length===0){if(ne(_e)){var Ne=_e.name?": "+_e.name:"";return pe.stylize("[Function"+Ne+"]","special")}if(Xt(_e))return pe.stylize(RegExp.prototype.toString.call(_e),"regexp");if(Yt(_e))return pe.stylize(Date.prototype.toString.call(_e),"date");if(Ht(_e))return it(_e)}var se="",Ae=!1,Xe=["{","}"];if(Et(_e)&&(Ae=!0,Xe=["[","]"]),ne(_e)){var Be=_e.name?": "+_e.name:"";se=" [Function"+Be+"]"}if(Xt(_e)&&(se=" "+RegExp.prototype.toString.call(_e)),Yt(_e)&&(se=" "+Date.prototype.toUTCString.call(_e)),Ht(_e)&&(se=" "+it(_e)),xe.length===0&&(!Ae||_e.length==0))return Xe[0]+se+Xe[1];if(je<0)return Xt(_e)?pe.stylize(RegExp.prototype.toString.call(_e),"regexp"):pe.stylize("[Object]","special");pe.seen.push(_e);var Te;return Ae?Te=at(pe,_e,je,le,xe):Te=xe.map(function(ue){return ut(pe,_e,je,le,ue,Ae)}),pe.seen.pop(),wt(Te,se,Xe)}function ot(pe,_e){if(Ut(_e))return pe.stylize("undefined","undefined");if(Lt(_e)){var je="'"+JSON.stringify(_e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return pe.stylize(je,"string")}if(jt(_e))return pe.stylize(""+_e,"number");if(At(_e))return pe.stylize(""+_e,"boolean");if(_t(_e))return pe.stylize("null","null")}function it(pe){return"["+Error.prototype.toString.call(pe)+"]"}function at(pe,_e,je,He,Se){for(var xe=[],le=0,Ne=_e.length;le",xe.tagName="",xe.state=Gt.SCRIPT;return}ne(xe,"onscript",xe.script),xe.script=""}var le=xe.tags.length,Ne=xe.tagName;xe.strict||(Ne=Ne[xe.looseCase]());for(var ae=Ne;le--;){var Ae=xe.tags[le];if(Ae.name!==ae)we(xe,"Unexpected close tag");else break}if(le<0){we(xe,"Unmatched closing tag: "+xe.tagName),xe.textNode+="",xe.state=Gt.TEXT;return}xe.tagName=Ne;for(var Xe=xe.tags.length;Xe-- >le;){var Be=xe.tag=xe.tags.pop();xe.tagName=xe.tag.name,ne(xe,"onclosetag",xe.tagName);var Te={};for(var ue in Be.ns)Te[ue]=Be.ns[ue];var $t=xe.tags[xe.tags.length-1]||xe;xe.opt.xmlns&&Be.ns!==$t.ns&&Object.keys(Be.ns).forEach(function(he){var ye=Be.ns[he];ne(xe,"onclosenamespace",{prefix:he,uri:ye})})}le===0&&(xe.closedRoot=!0),xe.tagName=xe.attribValue=xe.attribName="",xe.attribList.length=0,xe.state=Gt.TEXT}function _e(xe){var le=xe.entity,Ne=le.toLowerCase(),ae,Ae="";return xe.ENTITIES[le]?xe.ENTITIES[le]:xe.ENTITIES[Ne]?xe.ENTITIES[Ne]:(le=Ne,le.charAt(0)==="#"&&(le.charAt(1)==="x"?(le=le.slice(2),ae=parseInt(le,16),Ae=ae.toString(16)):(le=le.slice(1),ae=parseInt(le,10),Ae=ae.toString(10))),le=le.replace(/^0+/,""),isNaN(ae)||Ae.toLowerCase()!==le?(we(xe,"Invalid character entity"),"&"+xe.entity+";"):String.fromCodePoint(ae))}function Oe(xe,le){le==="<"?(xe.state=Gt.OPEN_WAKA,xe.startTagPosition=xe.position):jt(le)||(we(xe,"Non-whitespace before first tag."),xe.textNode=le,xe.state=Gt.TEXT)}function He(xe,le){var Ne="";return le"?(ne(le,"onsgmldeclaration",le.sgmlDecl),le.sgmlDecl="",le.state=Gt.TEXT):(Lt(ae)&&(le.state=Gt.SGML_DECL_QUOTED),le.sgmlDecl+=ae);continue;case Gt.SGML_DECL_QUOTED:ae===le.q&&(le.state=Gt.SGML_DECL,le.q=""),le.sgmlDecl+=ae;continue;case Gt.DOCTYPE:ae===">"?(le.state=Gt.TEXT,ne(le,"ondoctype",le.doctype),le.doctype=!0):(le.doctype+=ae,ae==="["?le.state=Gt.DOCTYPE_DTD:Lt(ae)&&(le.state=Gt.DOCTYPE_QUOTED,le.q=ae));continue;case Gt.DOCTYPE_QUOTED:le.doctype+=ae,ae===le.q&&(le.q="",le.state=Gt.DOCTYPE);continue;case Gt.DOCTYPE_DTD:le.doctype+=ae,ae==="]"?le.state=Gt.DOCTYPE:Lt(ae)&&(le.state=Gt.DOCTYPE_DTD_QUOTED,le.q=ae);continue;case Gt.DOCTYPE_DTD_QUOTED:le.doctype+=ae,ae===le.q&&(le.state=Gt.DOCTYPE_DTD,le.q="");continue;case Gt.COMMENT:ae==="-"?le.state=Gt.COMMENT_ENDING:le.comment+=ae;continue;case Gt.COMMENT_ENDING:ae==="-"?(le.state=Gt.COMMENT_ENDED,le.comment=ve(le.opt,le.comment),le.comment&&ne(le,"oncomment",le.comment),le.comment=""):(le.comment+="-"+ae,le.state=Gt.COMMENT);continue;case Gt.COMMENT_ENDED:ae!==">"?(we(le,"Malformed comment"),le.comment+="--"+ae,le.state=Gt.COMMENT):le.state=Gt.TEXT;continue;case Gt.CDATA:ae==="]"?le.state=Gt.CDATA_ENDING:le.cdata+=ae;continue;case Gt.CDATA_ENDING:ae==="]"?le.state=Gt.CDATA_ENDING_2:(le.cdata+="]"+ae,le.state=Gt.CDATA);continue;case Gt.CDATA_ENDING_2:ae===">"?(le.cdata&&ne(le,"oncdata",le.cdata),ne(le,"onclosecdata"),le.cdata="",le.state=Gt.TEXT):ae==="]"?le.cdata+="]":(le.cdata+="]]"+ae,le.state=Gt.CDATA);continue;case Gt.PROC_INST:ae==="?"?le.state=Gt.PROC_INST_ENDING:jt(ae)?le.state=Gt.PROC_INST_BODY:le.procInstName+=ae;continue;case Gt.PROC_INST_BODY:if(!le.procInstBody&&jt(ae))continue;ae==="?"?le.state=Gt.PROC_INST_ENDING:le.procInstBody+=ae;continue;case Gt.PROC_INST_ENDING:ae===">"?(ne(le,"onprocessinginstruction",{name:le.procInstName,body:le.procInstBody}),le.procInstName=le.procInstBody="",le.state=Gt.TEXT):(le.procInstBody+="?"+ae,le.state=Gt.PROC_INST_BODY);continue;case Gt.OPEN_TAG:Ut(At,ae)?le.tagName+=ae:(ke(le),ae===">"?fe(le):ae==="/"?le.state=Gt.OPEN_TAG_SLASH:(jt(ae)||we(le,"Invalid character in tag name"),le.state=Gt.ATTRIB));continue;case Gt.OPEN_TAG_SLASH:ae===">"?(fe(le,!0),de(le)):(we(le,"Forward-slash in opening tag not followed by >"),le.state=Gt.ATTRIB);continue;case Gt.ATTRIB:if(jt(ae))continue;ae===">"?fe(le):ae==="/"?le.state=Gt.OPEN_TAG_SLASH:Ut(Et,ae)?(le.attribName=ae,le.attribValue="",le.state=Gt.ATTRIB_NAME):we(le,"Invalid attribute name");continue;case Gt.ATTRIB_NAME:ae==="="?le.state=Gt.ATTRIB_VALUE:ae===">"?(we(le,"Attribute without value"),le.attribValue=le.attribName,ge(le),fe(le)):jt(ae)?le.state=Gt.ATTRIB_NAME_SAW_WHITE:Ut(At,ae)?le.attribName+=ae:we(le,"Invalid attribute name");continue;case Gt.ATTRIB_NAME_SAW_WHITE:if(ae==="=")le.state=Gt.ATTRIB_VALUE;else{if(jt(ae))continue;we(le,"Attribute without value"),le.tag.attributes[le.attribName]="",le.attribValue="",ne(le,"onattribute",{name:le.attribName,value:""}),le.attribName="",ae===">"?fe(le):Ut(Et,ae)?(le.attribName=ae,le.state=Gt.ATTRIB_NAME):(we(le,"Invalid attribute name"),le.state=Gt.ATTRIB)}continue;case Gt.ATTRIB_VALUE:if(jt(ae))continue;Lt(ae)?(le.q=ae,le.state=Gt.ATTRIB_VALUE_QUOTED):(we(le,"Unquoted attribute value"),le.state=Gt.ATTRIB_VALUE_UNQUOTED,le.attribValue=ae);continue;case Gt.ATTRIB_VALUE_QUOTED:if(ae!==le.q){ae==="&"?le.state=Gt.ATTRIB_VALUE_ENTITY_Q:le.attribValue+=ae;continue}ge(le),le.q="",le.state=Gt.ATTRIB_VALUE_CLOSED;continue;case Gt.ATTRIB_VALUE_CLOSED:jt(ae)?le.state=Gt.ATTRIB:ae===">"?fe(le):ae==="/"?le.state=Gt.OPEN_TAG_SLASH:Ut(Et,ae)?(we(le,"No whitespace between attributes"),le.attribName=ae,le.attribValue="",le.state=Gt.ATTRIB_NAME):we(le,"Invalid attribute name");continue;case Gt.ATTRIB_VALUE_UNQUOTED:if(!It(ae)){ae==="&"?le.state=Gt.ATTRIB_VALUE_ENTITY_U:le.attribValue+=ae;continue}ge(le),ae===">"?fe(le):le.state=Gt.ATTRIB;continue;case Gt.CLOSE_TAG:if(le.tagName)ae===">"?de(le):Ut(At,ae)?le.tagName+=ae:le.script?(le.script+=""?de(le):we(le,"Invalid characters in closing tag");continue;case Gt.TEXT_ENTITY:case Gt.ATTRIB_VALUE_ENTITY_Q:case Gt.ATTRIB_VALUE_ENTITY_U:var Be,Te;switch(le.state){case Gt.TEXT_ENTITY:Be=Gt.TEXT,Te="textNode";break;case Gt.ATTRIB_VALUE_ENTITY_Q:Be=Gt.ATTRIB_VALUE_QUOTED,Te="attribValue";break;case Gt.ATTRIB_VALUE_ENTITY_U:Be=Gt.ATTRIB_VALUE_UNQUOTED,Te="attribValue";break}ae===";"?(le[Te]+=_e(le),le.entity="",le.state=Be):Ut(le.entity.length?Mt:_t,ae)?le.entity+=ae:(we(le,"Invalid character in entity name"),le[Te]+="&"+le.entity+ae,le.entity="",le.state=Be);continue;default:throw new Error(le,"Unknown state: "+le.state)}return le.position>=le.bufferCheckPosition&&xt(le),le}String.fromCodePoint||function(){var xe=String.fromCharCode,le=Math.floor,Ne=function(){var ae=16384,Ae=[],Xe,Be,Te=-1,ue=arguments.length;if(!ue)return"";for(var $t="";++Te1114111||le(he)!==he)throw RangeError("Invalid code point: "+he);he<=65535?Ae.push(he):(he-=65536,Xe=(he>>10)+55296,Be=he%1024+56320,Ae.push(Xe,Be)),(Te+1===ue||Ae.length>ae)&&($t+=xe.apply(null,Ae),Ae.length=0)}return $t};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Ne,configurable:!0,writable:!0}):String.fromCodePoint=Ne}()})(typeof Ct=="undefined"?this.sax={}:Ct)}).call(this)}).call(this,rt("buffer").Buffer)},{buffer:90,stream:398,string_decoder:413}],398:[function(rt,kt,Ct){kt.exports=vt;var St=rt("events").EventEmitter,pt=rt("inherits");pt(vt,St),vt.Readable=rt("readable-stream/lib/_stream_readable.js"),vt.Writable=rt("readable-stream/lib/_stream_writable.js"),vt.Duplex=rt("readable-stream/lib/_stream_duplex.js"),vt.Transform=rt("readable-stream/lib/_stream_transform.js"),vt.PassThrough=rt("readable-stream/lib/_stream_passthrough.js"),vt.finished=rt("readable-stream/lib/internal/streams/end-of-stream.js"),vt.pipeline=rt("readable-stream/lib/internal/streams/pipeline.js"),vt.Stream=vt;function vt(){St.call(this)}vt.prototype.pipe=function(yt,xt){var dt=this;function ft(at){yt.writable&&yt.write(at)===!1&&dt.pause&&dt.pause()}dt.on("data",ft);function ct(){dt.readable&&dt.resume&&dt.resume()}yt.on("drain",ct),!yt._isStdio&&(!xt||xt.end!==!1)&&(dt.on("end",E),dt.on("close",z));var lt=!1;function E(){lt||(lt=!0,yt.end())}function z(){lt||(lt=!0,typeof yt.destroy=="function"&&yt.destroy())}function ot(at){if(it(),St.listenerCount(this,"error")===0)throw at}dt.on("error",ot),yt.on("error",ot);function it(){dt.removeListener("data",ft),yt.removeListener("drain",ct),dt.removeListener("end",E),dt.removeListener("close",z),dt.removeListener("error",ot),yt.removeListener("error",ot),dt.removeListener("end",it),dt.removeListener("close",it),yt.removeListener("close",it)}return dt.on("end",it),dt.on("close",it),yt.on("close",it),yt.emit("pipe",dt),yt}},{events:344,inherits:364,"readable-stream/lib/_stream_duplex.js":400,"readable-stream/lib/_stream_passthrough.js":401,"readable-stream/lib/_stream_readable.js":402,"readable-stream/lib/_stream_transform.js":403,"readable-stream/lib/_stream_writable.js":404,"readable-stream/lib/internal/streams/end-of-stream.js":408,"readable-stream/lib/internal/streams/pipeline.js":410}],399:[function(rt,kt,Ct){"use strict";function St(ct,lt){ct.prototype=Object.create(lt.prototype),ct.prototype.constructor=ct,ct.__proto__=lt}var pt={};function vt(ct,lt,E){E||(E=Error);function z(it,at,ut){return typeof lt=="string"?lt:lt(it,at,ut)}var ot=function(it){St(at,it);function at(ut,wt,Et){return it.call(this,z(ut,wt,Et))||this}return at}(E);ot.prototype.name=E.name,ot.prototype.code=ct,pt[ct]=ot}function yt(ct,lt){if(Array.isArray(ct)){var E=ct.length;return ct=ct.map(function(z){return String(z)}),E>2?"one of ".concat(lt," ").concat(ct.slice(0,E-1).join(", "),", or ")+ct[E-1]:E===2?"one of ".concat(lt," ").concat(ct[0]," or ").concat(ct[1]):"of ".concat(lt," ").concat(ct[0])}else return"of ".concat(lt," ").concat(String(ct))}function xt(ct,lt,E){return ct.substr(!E||E<0?0:+E,lt.length)===lt}function dt(ct,lt,E){return(E===void 0||E>ct.length)&&(E=ct.length),ct.substring(E-lt.length,E)===lt}function ft(ct,lt,E){return typeof E!="number"&&(E=0),E+lt.length>ct.length?!1:ct.indexOf(lt,E)!==-1}vt("ERR_INVALID_OPT_VALUE",function(ct,lt){return'The value "'+lt+'" is invalid for option "'+ct+'"'},TypeError),vt("ERR_INVALID_ARG_TYPE",function(ct,lt,E){var z;typeof lt=="string"&&xt(lt,"not ")?(z="must not be",lt=lt.replace(/^not /,"")):z="must be";var ot;if(dt(ct," argument"))ot="The ".concat(ct," ").concat(z," ").concat(yt(lt,"type"));else{var it=ft(ct,".")?"property":"argument";ot='The "'.concat(ct,'" ').concat(it," ").concat(z," ").concat(yt(lt,"type"))}return ot+=". Received type ".concat(typeof E),ot},TypeError),vt("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),vt("ERR_METHOD_NOT_IMPLEMENTED",function(ct){return"The "+ct+" method is not implemented"}),vt("ERR_STREAM_PREMATURE_CLOSE","Premature close"),vt("ERR_STREAM_DESTROYED",function(ct){return"Cannot call "+ct+" after a stream was destroyed"}),vt("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),vt("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),vt("ERR_STREAM_WRITE_AFTER_END","write after end"),vt("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),vt("ERR_UNKNOWN_ENCODING",function(ct){return"Unknown encoding: "+ct},TypeError),vt("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),kt.exports.codes=pt},{}],400:[function(rt,kt,Ct){(function(St){(function(){"use strict";var pt=Object.keys||function(z){var ot=[];for(var it in z)ot.push(it);return ot};kt.exports=ct;var vt=rt("./_stream_readable"),yt=rt("./_stream_writable");rt("inherits")(ct,vt);for(var xt=pt(yt.prototype),dt=0;dt0)if(typeof ue!="string"&&!Qt.objectMode&&Object.getPrototypeOf(ue)!==ft.prototype&&(ue=lt(ue)),he)Qt.endEmitted?Xt(Te,new jt):ve(Te,Qt,ue,!0);else if(Qt.ended)Xt(Te,new _t);else{if(Qt.destroyed)return!1;Qt.reading=!1,Qt.decoder&&!$t?(ue=Qt.decoder.write(ue),Qt.objectMode||ue.length!==0?ve(Te,Qt,ue,!1):de(Te,Qt)):ve(Te,Qt,ue,!1)}else he||(Qt.reading=!1,de(Te,Qt))}return!Qt.ended&&(Qt.length=re?Te=re:(Te--,Te|=Te>>>1,Te|=Te>>>2,Te|=Te>>>4,Te|=Te>>>8,Te|=Te>>>16,Te++),Te}function ke(Te,ue){return Te<=0||ue.length===0&&ue.ended?0:ue.objectMode?1:Te!==Te?ue.flowing&&ue.length?ue.buffer.head.data.length:ue.length:(Te>ue.highWaterMark&&(ue.highWaterMark=we(Te)),Te<=ue.length?Te:ue.ended?ue.length:(ue.needReadable=!0,0))}ne.prototype.read=function(Te){ot("read",Te),Te=parseInt(Te,10);var ue=this._readableState,$t=Te;if(Te!==0&&(ue.emittedReadable=!1),Te===0&&ue.needReadable&&((ue.highWaterMark!==0?ue.length>=ue.highWaterMark:ue.length>0)||ue.ended))return ot("read: emitReadable",ue.length,ue.ended),ue.length===0&&ue.ended?Ae(this):ge(this),null;if(Te=ke(Te,ue),Te===0&&ue.ended)return ue.length===0&&Ae(this),null;var he=ue.needReadable;ot("need readable",he),(ue.length===0||ue.length-Te0?ye=ae(Te,ue):ye=null,ye===null?(ue.needReadable=ue.length<=ue.highWaterMark,Te=0):(ue.length-=Te,ue.awaitDrain=0),ue.length===0&&(ue.ended||(ue.needReadable=!0),$t!==Te&&ue.ended&&Ae(this)),ye!==null&&this.emit("data",ye),ye};function Me(Te,ue){if(ot("onEofChunk"),!ue.ended){if(ue.decoder){var $t=ue.decoder.end();$t&&$t.length&&(ue.buffer.push($t),ue.length+=ue.objectMode?1:$t.length)}ue.ended=!0,ue.sync?ge(Te):(ue.needReadable=!1,ue.emittedReadable||(ue.emittedReadable=!0,fe(Te)))}}function ge(Te){var ue=Te._readableState;ot("emitReadable",ue.needReadable,ue.emittedReadable),ue.needReadable=!1,ue.emittedReadable||(ot("emitReadable",ue.flowing),ue.emittedReadable=!0,St.nextTick(fe,Te))}function fe(Te){var ue=Te._readableState;ot("emitReadable_",ue.destroyed,ue.length,ue.ended),!ue.destroyed&&(ue.length||ue.ended)&&(Te.emit("readable"),ue.emittedReadable=!1),ue.needReadable=!ue.flowing&&!ue.ended&&ue.length<=ue.highWaterMark,Ne(Te)}function de(Te,ue){ue.readingMore||(ue.readingMore=!0,St.nextTick(_e,Te,ue))}function _e(Te,ue){for(;!ue.reading&&!ue.ended&&(ue.length1&&Be(he.pipes,Te)!==-1)&&!me&&(ot("false write response, pause",he.awaitDrain),he.awaitDrain++),$t.pause())}function Ue(fn){ot("onerror",fn),nn(),Te.removeListener("error",Ue),xt(Te,"error")===0&&Xt(Te,fn)}Vt(Te,"error",Ue);function Je(){Te.removeListener("finish",Ze),nn()}Te.once("close",Je);function Ze(){ot("onfinish"),Te.removeListener("close",Je),nn()}Te.once("finish",Ze);function nn(){ot("unpipe"),$t.unpipe(Te)}return Te.emit("pipe",$t),he.flowing||(ot("pipe resume"),$t.resume()),Te};function Oe(Te){return function(){var $t=Te._readableState;ot("pipeOnDrain",$t.awaitDrain),$t.awaitDrain&&$t.awaitDrain--,$t.awaitDrain===0&&xt(Te,"data")&&($t.flowing=!0,Ne(Te))}}ne.prototype.unpipe=function(Te){var ue=this._readableState,$t={hasUnpiped:!1};if(ue.pipesCount===0)return this;if(ue.pipesCount===1)return Te&&Te!==ue.pipes?this:(Te||(Te=ue.pipes),ue.pipes=null,ue.pipesCount=0,ue.flowing=!1,Te&&Te.emit("unpipe",this,$t),this);if(!Te){var he=ue.pipes,ye=ue.pipesCount;ue.pipes=null,ue.pipesCount=0,ue.flowing=!1;for(var Qt=0;Qt0,he.flowing!==!1&&this.resume()):Te==="readable"&&!he.endEmitted&&!he.readableListening&&(he.readableListening=he.needReadable=!0,he.flowing=!1,he.emittedReadable=!1,ot("on readable",he.length,he.reading),he.length?ge(this):he.reading||St.nextTick(Se,this)),$t},ne.prototype.addListener=ne.prototype.on,ne.prototype.removeListener=function(Te,ue){var $t=dt.prototype.removeListener.call(this,Te,ue);return Te==="readable"&&St.nextTick(He,this),$t},ne.prototype.removeAllListeners=function(Te){var ue=dt.prototype.removeAllListeners.apply(this,arguments);return(Te==="readable"||Te===void 0)&&St.nextTick(He,this),ue};function He(Te){var ue=Te._readableState;ue.readableListening=Te.listenerCount("readable")>0,ue.resumeScheduled&&!ue.paused?ue.flowing=!0:Te.listenerCount("data")>0&&Te.resume()}function Se(Te){ot("readable nexttick read 0"),Te.read(0)}ne.prototype.resume=function(){var Te=this._readableState;return Te.flowing||(ot("resume"),Te.flowing=!Te.readableListening,xe(this,Te)),Te.paused=!1,this};function xe(Te,ue){ue.resumeScheduled||(ue.resumeScheduled=!0,St.nextTick(le,Te,ue))}function le(Te,ue){ot("resume",ue.reading),ue.reading||Te.read(0),ue.resumeScheduled=!1,Te.emit("resume"),Ne(Te),ue.flowing&&!ue.reading&&Te.read(0)}ne.prototype.pause=function(){return ot("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ot("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Ne(Te){var ue=Te._readableState;for(ot("flow",ue.flowing);ue.flowing&&Te.read()!==null;);}ne.prototype.wrap=function(Te){var ue=this,$t=this._readableState,he=!1;Te.on("end",function(){if(ot("wrapped end"),$t.decoder&&!$t.ended){var Wt=$t.decoder.end();Wt&&Wt.length&&ue.push(Wt)}ue.push(null)}),Te.on("data",function(Wt){if(ot("wrapped data"),$t.decoder&&(Wt=$t.decoder.write(Wt)),!($t.objectMode&&Wt==null)&&!(!$t.objectMode&&(!Wt||!Wt.length))){var Bt=ue.push(Wt);Bt||(he=!0,Te.pause())}});for(var ye in Te)this[ye]===void 0&&typeof Te[ye]=="function"&&(this[ye]=function(Bt){return function(){return Te[Bt].apply(Te,arguments)}}(ye));for(var Qt=0;Qt=ue.length?(ue.decoder?$t=ue.buffer.join(""):ue.buffer.length===1?$t=ue.buffer.first():$t=ue.buffer.concat(ue.length),ue.buffer.clear()):$t=ue.buffer.consume(Te,ue.decoder),$t}function Ae(Te){var ue=Te._readableState;ot("endReadable",ue.endEmitted),ue.endEmitted||(ue.ended=!0,St.nextTick(Xe,ue,Te))}function Xe(Te,ue){if(ot("endReadableNT",Te.endEmitted,Te.length),!Te.endEmitted&&Te.length===0&&(Te.endEmitted=!0,ue.readable=!1,ue.emit("end"),Te.autoDestroy)){var $t=ue._writableState;(!$t||$t.autoDestroy&&$t.finished)&&ue.destroy()}}typeof Symbol=="function"&&(ne.from=function(Te,ue){return Ut===void 0&&(Ut=rt("./internal/streams/from")),Ut(ne,Te,ue)});function Be(Te,ue){for(var $t=0,he=Te.length;$t-1))throw new It(ae);return this._writableState.defaultEncoding=ae,this},Object.defineProperty(Ht.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function ve(Ne,ae,Ae){return!Ne.objectMode&&Ne.decodeStrings!==!1&&typeof ae=="string"&&(ae=ct.from(ae,Ae)),ae}Object.defineProperty(Ht.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Kt(Ne,ae,Ae,Xe,Be,Te){if(!Ae){var ue=ve(ae,Xe,Be);Xe!==ue&&(Ae=!0,Be="buffer",Xe=ue)}var $t=ae.objectMode?1:Xe.length;ae.length+=$t;var he=ae.length0?this.tail.next=At:this.head=At,this.tail=At,++this.length}},{key:"unshift",value:function(Et){var At={data:Et,next:this.head};this.length===0&&(this.tail=At),this.head=At,++this.length}},{key:"shift",value:function(){if(this.length!==0){var Et=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,Et}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Et){if(this.length===0)return"";for(var At=this.head,_t=""+At.data;At=At.next;)_t+=Et+At.data;return _t}},{key:"concat",value:function(Et){if(this.length===0)return E.alloc(0);for(var At=E.allocUnsafe(Et>>>0),_t=this.head,Mt=0;_t;)at(_t.data,At,Mt),Mt+=_t.data.length,_t=_t.next;return At}},{key:"consume",value:function(Et,At){var _t;return Etjt.length?jt.length:Et;if(Lt===jt.length?Mt+=jt:Mt+=jt.slice(0,Et),Et-=Lt,Et===0){Lt===jt.length?(++_t,At.next?this.head=At.next:this.head=this.tail=null):(this.head=At,At.data=jt.slice(Lt));break}++_t}return this.length-=_t,Mt}},{key:"_getBuffer",value:function(Et){var At=E.allocUnsafe(Et),_t=this.head,Mt=1;for(_t.data.copy(At),Et-=_t.data.length;_t=_t.next;){var jt=_t.data,Lt=Et>jt.length?jt.length:Et;if(jt.copy(At,At.length-Et,0,Lt),Et-=Lt,Et===0){Lt===jt.length?(++Mt,_t.next?this.head=_t.next:this.head=this.tail=null):(this.head=_t,_t.data=jt.slice(Lt));break}++Mt}return this.length-=Mt,At}},{key:it,value:function(Et,At){return ot(this,pt(pt({},At),{},{depth:0,customInspect:!1}))}}]),ut}()},{buffer:90,util:89}],407:[function(rt,kt,Ct){(function(St){(function(){"use strict";function pt(ct,lt){var E=this,z=this._readableState&&this._readableState.destroyed,ot=this._writableState&&this._writableState.destroyed;return z||ot?(lt?lt(ct):ct&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,St.nextTick(dt,this,ct)):St.nextTick(dt,this,ct)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(ct||null,function(it){!lt&&it?E._writableState?E._writableState.errorEmitted?St.nextTick(yt,E):(E._writableState.errorEmitted=!0,St.nextTick(vt,E,it)):St.nextTick(vt,E,it):lt?(St.nextTick(yt,E),lt(it)):St.nextTick(yt,E)}),this)}function vt(ct,lt){dt(ct,lt),yt(ct)}function yt(ct){ct._writableState&&!ct._writableState.emitClose||ct._readableState&&!ct._readableState.emitClose||ct.emit("close")}function xt(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function dt(ct,lt){ct.emit("error",lt)}function ft(ct,lt){var E=ct._readableState,z=ct._writableState;E&&E.autoDestroy||z&&z.autoDestroy?ct.destroy(lt):ct.emit("error",lt)}kt.exports={destroy:pt,undestroy:xt,errorOrDestroy:ft}}).call(this)}).call(this,rt("_process"))},{_process:467}],408:[function(rt,kt,Ct){"use strict";var St=rt("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function pt(dt){var ft=!1;return function(){if(!ft){ft=!0;for(var ct=arguments.length,lt=new Array(ct),E=0;E0;return ct(_t,jt,Lt,function(It){Et||(Et=It),It&&At.forEach(lt),!jt&&(At.forEach(lt),wt(Et))})});return at.reduce(E)}kt.exports=ot},{"../../../errors":399,"./end-of-stream":408}],411:[function(rt,kt,Ct){"use strict";var St=rt("../../../errors").codes.ERR_INVALID_OPT_VALUE;function pt(yt,xt,dt){return yt.highWaterMark!=null?yt.highWaterMark:xt?yt[dt]:null}function vt(yt,xt,dt,ft){var ct=pt(xt,ft,dt);if(ct!=null){if(!(isFinite(ct)&&Math.floor(ct)===ct)||ct<0){var lt=ft?dt:"highWaterMark";throw new St(lt,ct)}return Math.floor(ct)}return yt.objectMode?16:16*1024}kt.exports={getHighWaterMark:vt}},{"../../../errors":399}],412:[function(rt,kt,Ct){arguments[4][393][0].apply(Ct,arguments)},{dup:393,events:344}],413:[function(rt,kt,Ct){"use strict";var St=rt("safe-buffer").Buffer,pt=St.isEncoding||function(At){switch(At=""+At,At&&At.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function vt(At){if(!At)return"utf8";for(var _t;;)switch(At){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return At;default:if(_t)return;At=(""+At).toLowerCase(),_t=!0}}function yt(At){var _t=vt(At);if(typeof _t!="string"&&(St.isEncoding===pt||!pt(At)))throw new Error("Unknown encoding: "+At);return _t||At}Ct.StringDecoder=xt;function xt(At){this.encoding=yt(At);var _t;switch(this.encoding){case"utf16le":this.text=ot,this.end=it,_t=4;break;case"utf8":this.fillLast=lt,_t=4;break;case"base64":this.text=at,this.end=ut,_t=3;break;default:this.write=wt,this.end=Et;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=St.allocUnsafe(_t)}xt.prototype.write=function(At){if(At.length===0)return"";var _t,Mt;if(this.lastNeed){if(_t=this.fillLast(At),_t===void 0)return"";Mt=this.lastNeed,this.lastNeed=0}else Mt=0;return Mt>5===6?2:At>>4===14?3:At>>3===30?4:At>>6===2?-1:-2}function ft(At,_t,Mt){var jt=_t.length-1;if(jt=0?(Lt>0&&(At.lastNeed=Lt-1),Lt):--jt=0?(Lt>0&&(At.lastNeed=Lt-2),Lt):--jt=0?(Lt>0&&(Lt===2?Lt=0:At.lastNeed=Lt-3),Lt):0))}function ct(At,_t,Mt){if((_t[0]&192)!==128)return At.lastNeed=0,"\uFFFD";if(At.lastNeed>1&&_t.length>1){if((_t[1]&192)!==128)return At.lastNeed=1,"\uFFFD";if(At.lastNeed>2&&_t.length>2&&(_t[2]&192)!==128)return At.lastNeed=2,"\uFFFD"}}function lt(At){var _t=this.lastTotal-this.lastNeed,Mt=ct(this,At,_t);if(Mt!==void 0)return Mt;if(this.lastNeed<=At.length)return At.copy(this.lastChar,_t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);At.copy(this.lastChar,_t,0,At.length),this.lastNeed-=At.length}function E(At,_t){var Mt=ft(this,At,_t);if(!this.lastNeed)return At.toString("utf8",_t);this.lastTotal=Mt;var jt=At.length-(Mt-this.lastNeed);return At.copy(this.lastChar,0,jt),At.toString("utf8",_t,jt)}function z(At){var _t=At&&At.length?this.write(At):"";return this.lastNeed?_t+"\uFFFD":_t}function ot(At,_t){if((At.length-_t)%2===0){var Mt=At.toString("utf16le",_t);if(Mt){var jt=Mt.charCodeAt(Mt.length-1);if(jt>=55296&&jt<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=At[At.length-2],this.lastChar[1]=At[At.length-1],Mt.slice(0,-1)}return Mt}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=At[At.length-1],At.toString("utf16le",_t,At.length-1)}function it(At){var _t=At&&At.length?this.write(At):"";if(this.lastNeed){var Mt=this.lastTotal-this.lastNeed;return _t+this.lastChar.toString("utf16le",0,Mt)}return _t}function at(At,_t){var Mt=(At.length-_t)%3;return Mt===0?At.toString("base64",_t):(this.lastNeed=3-Mt,this.lastTotal=3,Mt===1?this.lastChar[0]=At[At.length-1]:(this.lastChar[0]=At[At.length-2],this.lastChar[1]=At[At.length-1]),At.toString("base64",_t,At.length-Mt))}function ut(At){var _t=At&&At.length?this.write(At):"";return this.lastNeed?_t+this.lastChar.toString("base64",0,3-this.lastNeed):_t}function wt(At){return At.toString(this.encoding)}function Et(At){return At&&At.length?this.write(At):""}},{"safe-buffer":396}],414:[function(rt,kt,Ct){(function(St,pt){(function(){var vt=rt("process/browser.js").nextTick,yt=Function.prototype.apply,xt=Array.prototype.slice,dt={},ft=0;Ct.setTimeout=function(){return new ct(yt.call(setTimeout,window,arguments),clearTimeout)},Ct.setInterval=function(){return new ct(yt.call(setInterval,window,arguments),clearInterval)},Ct.clearTimeout=Ct.clearInterval=function(lt){lt.close()};function ct(lt,E){this._id=lt,this._clearFn=E}ct.prototype.unref=ct.prototype.ref=function(){},ct.prototype.close=function(){this._clearFn.call(window,this._id)},Ct.enroll=function(lt,E){clearTimeout(lt._idleTimeoutId),lt._idleTimeout=E},Ct.unenroll=function(lt){clearTimeout(lt._idleTimeoutId),lt._idleTimeout=-1},Ct._unrefActive=Ct.active=function(lt){clearTimeout(lt._idleTimeoutId);var E=lt._idleTimeout;E>=0&&(lt._idleTimeoutId=setTimeout(function(){lt._onTimeout&<._onTimeout()},E))},Ct.setImmediate=typeof St=="function"?St:function(lt){var E=ft++,z=arguments.length<2?!1:xt.call(arguments,1);return dt[E]=!0,vt(function(){dt[E]&&(z?lt.apply(null,z):lt.call(null),Ct.clearImmediate(E))}),E},Ct.clearImmediate=typeof pt=="function"?pt:function(lt){delete dt[lt]}}).call(this)}).call(this,rt("timers").setImmediate,rt("timers").clearImmediate)},{"process/browser.js":381,timers:414}],415:[function(rt,kt,Ct){var St=rt("buffer").Buffer;kt.exports=function(pt){if(pt instanceof Uint8Array){if(pt.byteOffset===0&&pt.byteLength===pt.buffer.byteLength)return pt.buffer;if(typeof pt.buffer.slice=="function")return pt.buffer.slice(pt.byteOffset,pt.byteOffset+pt.byteLength)}if(St.isBuffer(pt)){for(var vt=new Uint8Array(pt.length),yt=pt.length,xt=0;xt=Se)return Ne;switch(Ne){case"%s":return String(He[Oe++]);case"%d":return Number(He[Oe++]);case"%j":try{return JSON.stringify(He[Oe++])}catch(ae){return"[Circular]"}default:return Ne}}),le=He[Oe];Oe=3&&(Oe.depth=arguments[2]),arguments.length>=4&&(Oe.colors=arguments[3]),At(_e)?Oe.showHidden=_e:_e&&Ct._extend(Oe,_e),Ut(Oe.showHidden)&&(Oe.showHidden=!1),Ut(Oe.depth)&&(Oe.depth=2),Ut(Oe.colors)&&(Oe.colors=!1),Ut(Oe.customInspect)&&(Oe.customInspect=!0),Oe.colors&&(Oe.stylize=ct),z(Oe,de,Oe.depth)}Ct.inspect=ft,ft.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},ft.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function ct(de,_e){var Oe=ft.styles[_e];return Oe?"\x1B["+ft.colors[Oe][0]+"m"+de+"\x1B["+ft.colors[Oe][1]+"m":de}function lt(de,_e){return de}function E(de){var _e={};return de.forEach(function(Oe,He){_e[Oe]=!0}),_e}function z(de,_e,Oe){if(de.customInspect&&_e&&ne(_e.inspect)&&_e.inspect!==Ct.inspect&&!(_e.constructor&&_e.constructor.prototype===_e)){var He=_e.inspect(Oe,de);return Lt(He)||(He=z(de,He,Oe)),He}var Se=ot(de,_e);if(Se)return Se;var xe=Object.keys(_e),le=E(xe);if(de.showHidden&&(xe=Object.getOwnPropertyNames(_e)),Ht(_e)&&(xe.indexOf("message")>=0||xe.indexOf("description")>=0))return it(_e);if(xe.length===0){if(ne(_e)){var Ne=_e.name?": "+_e.name:"";return de.stylize("[Function"+Ne+"]","special")}if(Xt(_e))return de.stylize(RegExp.prototype.toString.call(_e),"regexp");if(Vt(_e))return de.stylize(Date.prototype.toString.call(_e),"date");if(Ht(_e))return it(_e)}var ae="",Ae=!1,Xe=["{","}"];if(Et(_e)&&(Ae=!0,Xe=["[","]"]),ne(_e)){var Be=_e.name?": "+_e.name:"";ae=" [Function"+Be+"]"}if(Xt(_e)&&(ae=" "+RegExp.prototype.toString.call(_e)),Vt(_e)&&(ae=" "+Date.prototype.toUTCString.call(_e)),Ht(_e)&&(ae=" "+it(_e)),xe.length===0&&(!Ae||_e.length==0))return Xe[0]+ae+Xe[1];if(Oe<0)return Xt(_e)?de.stylize(RegExp.prototype.toString.call(_e),"regexp"):de.stylize("[Object]","special");de.seen.push(_e);var Te;return Ae?Te=at(de,_e,Oe,le,xe):Te=xe.map(function(ue){return ut(de,_e,Oe,le,ue,Ae)}),de.seen.pop(),wt(Te,ae,Xe)}function ot(de,_e){if(Ut(_e))return de.stylize("undefined","undefined");if(Lt(_e)){var Oe="'"+JSON.stringify(_e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return de.stylize(Oe,"string")}if(jt(_e))return de.stylize(""+_e,"number");if(At(_e))return de.stylize(""+_e,"boolean");if(_t(_e))return de.stylize("null","null")}function it(de){return"["+Error.prototype.toString.call(de)+"]"}function at(de,_e,Oe,He,Se){for(var xe=[],le=0,Ne=_e.length;le-1&&(xe?Ne=Ne.split(` `).map(function(Ae){return" "+Ae}).join(` `).slice(2):Ne=` `+Ne.split(` `).map(function(Ae){return" "+Ae}).join(` -`))):Ne=pe.stylize("[Circular]","special")),Ut(le)){if(xe&&Se.match(/^\d+$/))return Ne;le=JSON.stringify(""+Se),le.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(le=le.slice(1,-1),le=pe.stylize(le,"name")):(le=le.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),le=pe.stylize(le,"string"))}return le+": "+Ne}function wt(pe,_e,je){var He=0,Se=pe.reduce(function(xe,le){return He++,le.indexOf(` -`)>=0&&He++,xe+le.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Se>60?je[0]+(_e===""?"":_e+` - `)+" "+pe.join(`, - `)+" "+je[1]:je[0]+_e+" "+pe.join(", ")+" "+je[1]}Ct.types=rt("./support/types");function Et(pe){return Array.isArray(pe)}Ct.isArray=Et;function At(pe){return typeof pe=="boolean"}Ct.isBoolean=At;function _t(pe){return pe===null}Ct.isNull=_t;function Mt(pe){return pe==null}Ct.isNullOrUndefined=Mt;function jt(pe){return typeof pe=="number"}Ct.isNumber=jt;function Lt(pe){return typeof pe=="string"}Ct.isString=Lt;function It(pe){return typeof pe=="symbol"}Ct.isSymbol=It;function Ut(pe){return pe===void 0}Ct.isUndefined=Ut;function Xt(pe){return Gt(pe)&&ve(pe)==="[object RegExp]"}Ct.isRegExp=Xt,Ct.types.isRegExp=Xt;function Gt(pe){return typeof pe=="object"&&pe!==null}Ct.isObject=Gt;function Yt(pe){return Gt(pe)&&ve(pe)==="[object Date]"}Ct.isDate=Yt,Ct.types.isDate=Yt;function Ht(pe){return Gt(pe)&&(ve(pe)==="[object Error]"||pe instanceof Error)}Ct.isError=Ht,Ct.types.isNativeError=Ht;function ne(pe){return typeof pe=="function"}Ct.isFunction=ne;function ae(pe){return pe===null||typeof pe=="boolean"||typeof pe=="number"||typeof pe=="string"||typeof pe=="symbol"||typeof pe=="undefined"}Ct.isPrimitive=ae,Ct.isBuffer=rt("./support/isBuffer");function ve(pe){return Object.prototype.toString.call(pe)}function Kt(pe){return pe<10?"0"+pe.toString(10):pe.toString(10)}var re=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function we(){var pe=new Date,_e=[Kt(pe.getHours()),Kt(pe.getMinutes()),Kt(pe.getSeconds())].join(":");return[pe.getDate(),re[pe.getMonth()],_e].join(" ")}Ct.log=function(){console.log("%s - %s",we(),Ct.format.apply(Ct,arguments))},Ct.inherits=rt("inherits"),Ct._extend=function(pe,_e){if(!_e||!Gt(_e))return pe;for(var je=Object.keys(_e),He=je.length;He--;)pe[je[He]]=_e[je[He]];return pe};function Me(pe,_e){return Object.prototype.hasOwnProperty.call(pe,_e)}var ke=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;Ct.promisify=function(_e){if(typeof _e!="function")throw new TypeError('The "original" argument must be of type Function');if(ke&&_e[ke]){var je=_e[ke];if(typeof je!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(je,ke,{value:je,enumerable:!1,writable:!1,configurable:!0}),je}function je(){for(var He,Se,xe=new Promise(function(se,Ae){He=se,Se=Ae}),le=[],Ne=0;Ne-1?_t:_t!=="Object"?!1:wt(At)}return dt?ut(At):null}}).call(this)}).call(this,typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"available-typed-arrays":86,"call-bind":93,"call-bind/callBound":92,"for-each":345,gopd:349,"has-tostringtag/shams":353}],421:[function(rt,kt,Ct){(function(){"use strict";Ct.stripBOM=function(St){return St[0]==="\uFEFF"?St.substring(1):St}}).call(this)},{}],422:[function(rt,kt,Ct){(function(){"use strict";var St,pt,vt,yt,xt,dt={}.hasOwnProperty;St=rt("xmlbuilder"),pt=rt("./defaults").defaults,yt=function(ft){return typeof ft=="string"&&(ft.indexOf("&")>=0||ft.indexOf(">")>=0||ft.indexOf("<")>=0)},xt=function(ft){return""},vt=function(ft){return ft.replace("]]>","]]]]>")},Ct.Builder=function(){function ft(ct){var lt,E,z;this.options={},E=pt["0.2"];for(lt in E)dt.call(E,lt)&&(z=E[lt],this.options[lt]=z);for(lt in ct)dt.call(ct,lt)&&(z=ct[lt],this.options[lt]=z)}return ft.prototype.buildObject=function(ct){var lt,E,z,ot,it;return lt=this.options.attrkey,E=this.options.charkey,Object.keys(ct).length===1&&this.options.rootName===pt["0.2"].rootName?(it=Object.keys(ct)[0],ct=ct[it]):it=this.options.rootName,z=function(at){return function(ut,wt){var Et,At,_t,Mt,jt,Lt;if(typeof wt!="object")at.options.cdata&&yt(wt)?ut.raw(xt(wt)):ut.txt(wt);else if(Array.isArray(wt)){for(Mt in wt)if(dt.call(wt,Mt)){At=wt[Mt];for(jt in At)_t=At[jt],ut=z(ut.ele(jt),_t).up()}}else for(jt in wt)if(dt.call(wt,jt))if(At=wt[jt],jt===lt){if(typeof At=="object")for(Et in At)Lt=At[Et],ut=ut.att(Et,Lt)}else if(jt===E)at.options.cdata&&yt(At)?ut=ut.raw(xt(At)):ut=ut.txt(At);else if(Array.isArray(At))for(Mt in At)dt.call(At,Mt)&&(_t=At[Mt],typeof _t=="string"?at.options.cdata&&yt(_t)?ut=ut.ele(jt).raw(xt(_t)).up():ut=ut.ele(jt,_t).up():ut=z(ut.ele(jt),_t).up());else typeof At=="object"?ut=z(ut.ele(jt),At).up():typeof At=="string"&&at.options.cdata&&yt(At)?ut=ut.ele(jt).raw(xt(At)).up():(At==null&&(At=""),ut=ut.ele(jt,At.toString()).up());return ut}}(this),ot=St.create(it,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),z(ot,ct).end(this.options.renderOpts)},ft}()}).call(this)},{"./defaults":423,xmlbuilder:459}],423:[function(rt,kt,Ct){(function(){Ct.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:` -`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},{}],424:[function(rt,kt,Ct){(function(){"use strict";var St,pt,vt,yt,xt,dt,ft,ct,lt,E=function(it,at){return function(){return it.apply(at,arguments)}},z=function(it,at){for(var ut in at)ot.call(at,ut)&&(it[ut]=at[ut]);function wt(){this.constructor=it}return wt.prototype=at.prototype,it.prototype=new wt,it.__super__=at.prototype,it},ot={}.hasOwnProperty;ct=rt("sax"),yt=rt("events"),St=rt("./bom"),ft=rt("./processors"),lt=rt("timers").setImmediate,pt=rt("./defaults").defaults,xt=function(it){return typeof it=="object"&&it!=null&&Object.keys(it).length===0},dt=function(it,at,ut){var wt,Et,At;for(wt=0,Et=it.length;wt0&&(It[_t.options.childkey]=Xt),Xt=It;else if(Ht){Ht[_t.options.childkey]=Ht[_t.options.childkey]||[],Gt={};for(Lt in Xt)ot.call(Xt,Lt)&&vt(Gt,Lt,Xt[Lt]);Ht[_t.options.childkey].push(Gt),delete Xt["#name"],Object.keys(Xt).length===1&&wt in Xt&&!_t.EXPLICIT_CHARKEY&&(Xt=Xt[wt])}}return At.length>0?_t.assignOrPush(Ht,Ut,Xt):(_t.options.explicitRoot&&(Yt=Xt,Xt={},vt(Xt,Ut,Yt)),_t.resultObject=Xt,_t.saxParser.ended=!0,_t.emit("end",_t.resultObject))}}(this),Et=function(_t){return function(Mt){var jt,Lt;if(Lt=At[At.length-1],Lt)return Lt[wt]+=Mt,_t.options.explicitChildren&&_t.options.preserveChildrenOrder&&_t.options.charsAsChildren&&(_t.options.includeWhiteChars||Mt.replace(/\\n/g,"").trim()!=="")&&(Lt[_t.options.childkey]=Lt[_t.options.childkey]||[],jt={"#name":"__text__"},jt[wt]=Mt,_t.options.normalize&&(jt[wt]=jt[wt].replace(/\s{2,}/g," ").trim()),Lt[_t.options.childkey].push(jt)),Lt}}(this),this.saxParser.ontext=Et,this.saxParser.oncdata=function(_t){return function(Mt){var jt;if(jt=Et(Mt),jt)return jt.cdata=!0}}(this)},at.prototype.parseString=function(ut,wt){var Et;wt!=null&&typeof wt=="function"&&(this.on("end",function(At){return this.reset(),wt(null,At)}),this.on("error",function(At){return this.reset(),wt(At)}));try{return ut=ut.toString(),ut.trim()===""?(this.emit("end",null),!0):(ut=St.stripBOM(ut),this.options.async?(this.remaining=ut,lt(this.processAsync),this.saxParser):this.saxParser.write(ut).close())}catch(At){if(Et=At,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw Et}else return this.emit("error",Et),this.saxParser.errThrown=!0}},at.prototype.parseStringPromise=function(ut){return new Promise(function(wt){return function(Et,At){return wt.parseString(ut,function(_t,Mt){return _t?At(_t):Et(Mt)})}}(this))},at}(yt),Ct.parseString=function(it,at,ut){var wt,Et,At;return ut!=null?(typeof ut=="function"&&(wt=ut),typeof at=="object"&&(Et=at)):(typeof at=="function"&&(wt=at),Et={}),At=new Ct.Parser(Et),At.parseString(it,wt)},Ct.parseStringPromise=function(it,at){var ut,wt;return typeof at=="object"&&(ut=at),wt=new Ct.Parser(ut),wt.parseStringPromise(it)}}).call(this)},{"./bom":421,"./defaults":423,"./processors":425,events:344,sax:397,timers:414}],425:[function(rt,kt,Ct){(function(){"use strict";var St;St=new RegExp(/(?!xmlns)^.*:/),Ct.normalize=function(pt){return pt.toLowerCase()},Ct.firstCharLowerCase=function(pt){return pt.charAt(0).toLowerCase()+pt.slice(1)},Ct.stripPrefix=function(pt){return pt.replace(St,"")},Ct.parseNumbers=function(pt){return isNaN(pt)||(pt=pt%1===0?parseInt(pt,10):parseFloat(pt)),pt},Ct.parseBooleans=function(pt){return/^(?:true|false)$/i.test(pt)&&(pt=pt.toLowerCase()==="true"),pt}}).call(this)},{}],426:[function(rt,kt,Ct){(function(){"use strict";var St,pt,vt,yt,xt=function(ft,ct){for(var lt in ct)dt.call(ct,lt)&&(ft[lt]=ct[lt]);function E(){this.constructor=ft}return E.prototype=ct.prototype,ft.prototype=new E,ft.__super__=ct.prototype,ft},dt={}.hasOwnProperty;pt=rt("./defaults"),St=rt("./builder"),vt=rt("./parser"),yt=rt("./processors"),Ct.defaults=pt.defaults,Ct.processors=yt,Ct.ValidationError=function(ft){xt(ct,ft);function ct(lt){this.message=lt}return ct}(Error),Ct.Builder=St.Builder,Ct.Parser=vt.Parser,Ct.parseString=vt.parseString,Ct.parseStringPromise=vt.parseStringPromise}).call(this)},{"./builder":422,"./defaults":423,"./parser":424,"./processors":425}],427:[function(rt,kt,Ct){(function(){kt.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],428:[function(rt,kt,Ct){(function(){kt.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},{}],429:[function(rt,kt,Ct){(function(){var St,pt,vt,yt,xt,dt,ft,ct=[].slice,lt={}.hasOwnProperty;St=function(){var E,z,ot,it,at,ut;if(ut=arguments[0],at=2<=arguments.length?ct.call(arguments,1):[],xt(Object.assign))Object.assign.apply(null,arguments);else for(E=0,ot=at.length;E":"attribute: {"+xt+"}, parent: <"+this.parent.name+">"},yt.prototype.isEqualNode=function(xt){return!(xt.namespaceURI!==this.namespaceURI||xt.prefix!==this.prefix||xt.localName!==this.localName||xt.value!==this.value)},yt}()}).call(this)},{"./NodeType":428,"./XMLNode":450}],432:[function(rt,kt,Ct){(function(){var St,pt,vt,yt=function(dt,ft){for(var ct in ft)xt.call(ft,ct)&&(dt[ct]=ft[ct]);function lt(){this.constructor=dt}return lt.prototype=ft.prototype,dt.prototype=new lt,dt.__super__=ft.prototype,dt},xt={}.hasOwnProperty;St=rt("./NodeType"),vt=rt("./XMLCharacterData"),kt.exports=pt=function(dt){yt(ft,dt);function ft(ct,lt){if(ft.__super__.constructor.call(this,ct),lt==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=St.CData,this.value=this.stringify.cdata(lt)}return ft.prototype.clone=function(){return Object.create(this)},ft.prototype.toString=function(ct){return this.options.writer.cdata(this,this.options.writer.filterOptions(ct))},ft}(vt)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],433:[function(rt,kt,Ct){(function(){var St,pt,vt=function(xt,dt){for(var ft in dt)yt.call(dt,ft)&&(xt[ft]=dt[ft]);function ct(){this.constructor=xt}return ct.prototype=dt.prototype,xt.prototype=new ct,xt.__super__=dt.prototype,xt},yt={}.hasOwnProperty;pt=rt("./XMLNode"),kt.exports=St=function(xt){vt(dt,xt);function dt(ft){dt.__super__.constructor.call(this,ft),this.value=""}return Object.defineProperty(dt.prototype,"data",{get:function(){return this.value},set:function(ft){return this.value=ft||""}}),Object.defineProperty(dt.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(dt.prototype,"textContent",{get:function(){return this.value},set:function(ft){return this.value=ft||""}}),dt.prototype.clone=function(){return Object.create(this)},dt.prototype.substringData=function(ft,ct){throw new Error("This DOM method is not implemented."+this.debugInfo())},dt.prototype.appendData=function(ft){throw new Error("This DOM method is not implemented."+this.debugInfo())},dt.prototype.insertData=function(ft,ct){throw new Error("This DOM method is not implemented."+this.debugInfo())},dt.prototype.deleteData=function(ft,ct){throw new Error("This DOM method is not implemented."+this.debugInfo())},dt.prototype.replaceData=function(ft,ct,lt){throw new Error("This DOM method is not implemented."+this.debugInfo())},dt.prototype.isEqualNode=function(ft){return!(!dt.__super__.isEqualNode.apply(this,arguments).isEqualNode(ft)||ft.data!==this.data)},dt}(pt)}).call(this)},{"./XMLNode":450}],434:[function(rt,kt,Ct){(function(){var St,pt,vt,yt=function(dt,ft){for(var ct in ft)xt.call(ft,ct)&&(dt[ct]=ft[ct]);function lt(){this.constructor=dt}return lt.prototype=ft.prototype,dt.prototype=new lt,dt.__super__=ft.prototype,dt},xt={}.hasOwnProperty;St=rt("./NodeType"),pt=rt("./XMLCharacterData"),kt.exports=vt=function(dt){yt(ft,dt);function ft(ct,lt){if(ft.__super__.constructor.call(this,ct),lt==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=St.Comment,this.value=this.stringify.comment(lt)}return ft.prototype.clone=function(){return Object.create(this)},ft.prototype.toString=function(ct){return this.options.writer.comment(this,this.options.writer.filterOptions(ct))},ft}(pt)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],435:[function(rt,kt,Ct){(function(){var St,pt,vt;pt=rt("./XMLDOMErrorHandler"),vt=rt("./XMLDOMStringList"),kt.exports=St=function(){function yt(){var xt;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new pt,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=xt=Object.create(this.defaultParams)}return Object.defineProperty(yt.prototype,"parameterNames",{get:function(){return new vt(Object.keys(this.defaultParams))}}),yt.prototype.getParameter=function(xt){return this.params.hasOwnProperty(xt)?this.params[xt]:null},yt.prototype.canSetParameter=function(xt,dt){return!0},yt.prototype.setParameter=function(xt,dt){return dt!=null?this.params[xt]=dt:delete this.params[xt]},yt}()}).call(this)},{"./XMLDOMErrorHandler":436,"./XMLDOMStringList":438}],436:[function(rt,kt,Ct){(function(){var St;kt.exports=St=function(){function pt(){}return pt.prototype.handleError=function(vt){throw new Error(vt)},pt}()}).call(this)},{}],437:[function(rt,kt,Ct){(function(){var St;kt.exports=St=function(){function pt(){}return pt.prototype.hasFeature=function(vt,yt){return!0},pt.prototype.createDocumentType=function(vt,yt,xt){throw new Error("This DOM method is not implemented.")},pt.prototype.createDocument=function(vt,yt,xt){throw new Error("This DOM method is not implemented.")},pt.prototype.createHTMLDocument=function(vt){throw new Error("This DOM method is not implemented.")},pt.prototype.getFeature=function(vt,yt){throw new Error("This DOM method is not implemented.")},pt}()}).call(this)},{}],438:[function(rt,kt,Ct){(function(){var St;kt.exports=St=function(){function pt(vt){this.arr=vt||[]}return Object.defineProperty(pt.prototype,"length",{get:function(){return this.arr.length}}),pt.prototype.item=function(vt){return this.arr[vt]||null},pt.prototype.contains=function(vt){return this.arr.indexOf(vt)!==-1},pt}()}).call(this)},{}],439:[function(rt,kt,Ct){(function(){var St,pt,vt,yt=function(dt,ft){for(var ct in ft)xt.call(ft,ct)&&(dt[ct]=ft[ct]);function lt(){this.constructor=dt}return lt.prototype=ft.prototype,dt.prototype=new lt,dt.__super__=ft.prototype,dt},xt={}.hasOwnProperty;vt=rt("./XMLNode"),St=rt("./NodeType"),kt.exports=pt=function(dt){yt(ft,dt);function ft(ct,lt,E,z,ot,it){if(ft.__super__.constructor.call(this,ct),lt==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(E==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(lt));if(!z)throw new Error("Missing DTD attribute type. "+this.debugInfo(lt));if(!ot)throw new Error("Missing DTD attribute default. "+this.debugInfo(lt));if(ot.indexOf("#")!==0&&(ot="#"+ot),!ot.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(lt));if(it&&!ot.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(lt));this.elementName=this.stringify.name(lt),this.type=St.AttributeDeclaration,this.attributeName=this.stringify.name(E),this.attributeType=this.stringify.dtdAttType(z),it&&(this.defaultValue=this.stringify.dtdAttDefault(it)),this.defaultValueType=ot}return ft.prototype.toString=function(ct){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(ct))},ft}(vt)}).call(this)},{"./NodeType":428,"./XMLNode":450}],440:[function(rt,kt,Ct){(function(){var St,pt,vt,yt=function(dt,ft){for(var ct in ft)xt.call(ft,ct)&&(dt[ct]=ft[ct]);function lt(){this.constructor=dt}return lt.prototype=ft.prototype,dt.prototype=new lt,dt.__super__=ft.prototype,dt},xt={}.hasOwnProperty;vt=rt("./XMLNode"),St=rt("./NodeType"),kt.exports=pt=function(dt){yt(ft,dt);function ft(ct,lt,E){if(ft.__super__.constructor.call(this,ct),lt==null)throw new Error("Missing DTD element name. "+this.debugInfo());E||(E="(#PCDATA)"),Array.isArray(E)&&(E="("+E.join(",")+")"),this.name=this.stringify.name(lt),this.type=St.ElementDeclaration,this.value=this.stringify.dtdElementValue(E)}return ft.prototype.toString=function(ct){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(ct))},ft}(vt)}).call(this)},{"./NodeType":428,"./XMLNode":450}],441:[function(rt,kt,Ct){(function(){var St,pt,vt,yt,xt=function(ft,ct){for(var lt in ct)dt.call(ct,lt)&&(ft[lt]=ct[lt]);function E(){this.constructor=ft}return E.prototype=ct.prototype,ft.prototype=new E,ft.__super__=ct.prototype,ft},dt={}.hasOwnProperty;yt=rt("./Utility").isObject,vt=rt("./XMLNode"),St=rt("./NodeType"),kt.exports=pt=function(ft){xt(ct,ft);function ct(lt,E,z,ot){if(ct.__super__.constructor.call(this,lt),z==null)throw new Error("Missing DTD entity name. "+this.debugInfo(z));if(ot==null)throw new Error("Missing DTD entity value. "+this.debugInfo(z));if(this.pe=!!E,this.name=this.stringify.name(z),this.type=St.EntityDeclaration,!yt(ot))this.value=this.stringify.dtdEntityValue(ot),this.internal=!0;else{if(!ot.pubID&&!ot.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(z));if(ot.pubID&&!ot.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(z));if(this.internal=!1,ot.pubID!=null&&(this.pubID=this.stringify.dtdPubID(ot.pubID)),ot.sysID!=null&&(this.sysID=this.stringify.dtdSysID(ot.sysID)),ot.nData!=null&&(this.nData=this.stringify.dtdNData(ot.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(z))}}return Object.defineProperty(ct.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(ct.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(ct.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(ct.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(ct.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(ct.prototype,"xmlVersion",{get:function(){return null}}),ct.prototype.toString=function(lt){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(lt))},ct}(vt)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],442:[function(rt,kt,Ct){(function(){var St,pt,vt,yt=function(dt,ft){for(var ct in ft)xt.call(ft,ct)&&(dt[ct]=ft[ct]);function lt(){this.constructor=dt}return lt.prototype=ft.prototype,dt.prototype=new lt,dt.__super__=ft.prototype,dt},xt={}.hasOwnProperty;vt=rt("./XMLNode"),St=rt("./NodeType"),kt.exports=pt=function(dt){yt(ft,dt);function ft(ct,lt,E){if(ft.__super__.constructor.call(this,ct),lt==null)throw new Error("Missing DTD notation name. "+this.debugInfo(lt));if(!E.pubID&&!E.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(lt));this.name=this.stringify.name(lt),this.type=St.NotationDeclaration,E.pubID!=null&&(this.pubID=this.stringify.dtdPubID(E.pubID)),E.sysID!=null&&(this.sysID=this.stringify.dtdSysID(E.sysID))}return Object.defineProperty(ft.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(ft.prototype,"systemId",{get:function(){return this.sysID}}),ft.prototype.toString=function(ct){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(ct))},ft}(vt)}).call(this)},{"./NodeType":428,"./XMLNode":450}],443:[function(rt,kt,Ct){(function(){var St,pt,vt,yt,xt=function(ft,ct){for(var lt in ct)dt.call(ct,lt)&&(ft[lt]=ct[lt]);function E(){this.constructor=ft}return E.prototype=ct.prototype,ft.prototype=new E,ft.__super__=ct.prototype,ft},dt={}.hasOwnProperty;yt=rt("./Utility").isObject,vt=rt("./XMLNode"),St=rt("./NodeType"),kt.exports=pt=function(ft){xt(ct,ft);function ct(lt,E,z,ot){var it;ct.__super__.constructor.call(this,lt),yt(E)&&(it=E,E=it.version,z=it.encoding,ot=it.standalone),E||(E="1.0"),this.type=St.Declaration,this.version=this.stringify.xmlVersion(E),z!=null&&(this.encoding=this.stringify.xmlEncoding(z)),ot!=null&&(this.standalone=this.stringify.xmlStandalone(ot))}return ct.prototype.toString=function(lt){return this.options.writer.declaration(this,this.options.writer.filterOptions(lt))},ct}(vt)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],444:[function(rt,kt,Ct){(function(){var St,pt,vt,yt,xt,dt,ft,ct,lt,E=function(ot,it){for(var at in it)z.call(it,at)&&(ot[at]=it[at]);function ut(){this.constructor=ot}return ut.prototype=it.prototype,ot.prototype=new ut,ot.__super__=it.prototype,ot},z={}.hasOwnProperty;lt=rt("./Utility").isObject,ct=rt("./XMLNode"),St=rt("./NodeType"),pt=rt("./XMLDTDAttList"),yt=rt("./XMLDTDEntity"),vt=rt("./XMLDTDElement"),xt=rt("./XMLDTDNotation"),ft=rt("./XMLNamedNodeMap"),kt.exports=dt=function(ot){E(it,ot);function it(at,ut,wt){var Et,At,_t,Mt,jt,Lt;if(it.__super__.constructor.call(this,at),this.type=St.DocType,at.children){for(Mt=at.children,At=0,_t=Mt.length;At<_t;At++)if(Et=Mt[At],Et.type===St.Element){this.name=Et.name;break}}this.documentObject=at,lt(ut)&&(jt=ut,ut=jt.pubID,wt=jt.sysID),wt==null&&(Lt=[ut,wt],wt=Lt[0],ut=Lt[1]),ut!=null&&(this.pubID=this.stringify.dtdPubID(ut)),wt!=null&&(this.sysID=this.stringify.dtdSysID(wt))}return Object.defineProperty(it.prototype,"entities",{get:function(){var at,ut,wt,Et,At;for(Et={},At=this.children,ut=0,wt=At.length;ut=0;)this.up();return this.onEnd()},Gt.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},Gt.prototype.openNode=function(Yt){var Ht,ne,ae,ve;if(!Yt.isOpen){if(!this.root&&this.currentLevel===0&&Yt.type===St.Element&&(this.root=Yt),ne="",Yt.type===St.Element){this.writerOptions.state=pt.OpenTag,ne=this.writer.indent(Yt,this.writerOptions,this.currentLevel)+"<"+Yt.name,ve=Yt.attribs;for(ae in ve)Xt.call(ve,ae)&&(Ht=ve[ae],ne+=this.writer.attribute(Ht,this.writerOptions,this.currentLevel));ne+=(Yt.children?">":"/>")+this.writer.endline(Yt,this.writerOptions,this.currentLevel),this.writerOptions.state=pt.InsideTag}else this.writerOptions.state=pt.OpenTag,ne=this.writer.indent(Yt,this.writerOptions,this.currentLevel)+""),ne+=this.writer.endline(Yt,this.writerOptions,this.currentLevel);return this.onData(ne,this.currentLevel),Yt.isOpen=!0}},Gt.prototype.closeNode=function(Yt){var Ht;if(!Yt.isClosed)return Ht="",this.writerOptions.state=pt.CloseTag,Yt.type===St.Element?Ht=this.writer.indent(Yt,this.writerOptions,this.currentLevel)+""+this.writer.endline(Yt,this.writerOptions,this.currentLevel):Ht=this.writer.indent(Yt,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(Yt,this.writerOptions,this.currentLevel),this.writerOptions.state=pt.None,this.onData(Ht,this.currentLevel),Yt.isClosed=!0},Gt.prototype.onData=function(Yt,Ht){return this.documentStarted=!0,this.onDataCallback(Yt,Ht+1)},Gt.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},Gt.prototype.debugInfo=function(Yt){return Yt==null?"":"node: <"+Yt+">"},Gt.prototype.ele=function(){return this.element.apply(this,arguments)},Gt.prototype.nod=function(Yt,Ht,ne){return this.node(Yt,Ht,ne)},Gt.prototype.txt=function(Yt){return this.text(Yt)},Gt.prototype.dat=function(Yt){return this.cdata(Yt)},Gt.prototype.com=function(Yt){return this.comment(Yt)},Gt.prototype.ins=function(Yt,Ht){return this.instruction(Yt,Ht)},Gt.prototype.dec=function(Yt,Ht,ne){return this.declaration(Yt,Ht,ne)},Gt.prototype.dtd=function(Yt,Ht,ne){return this.doctype(Yt,Ht,ne)},Gt.prototype.e=function(Yt,Ht,ne){return this.element(Yt,Ht,ne)},Gt.prototype.n=function(Yt,Ht,ne){return this.node(Yt,Ht,ne)},Gt.prototype.t=function(Yt){return this.text(Yt)},Gt.prototype.d=function(Yt){return this.cdata(Yt)},Gt.prototype.c=function(Yt){return this.comment(Yt)},Gt.prototype.r=function(Yt){return this.raw(Yt)},Gt.prototype.i=function(Yt,Ht){return this.instruction(Yt,Ht)},Gt.prototype.att=function(){return this.currentNode&&this.currentNode.type===St.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Gt.prototype.a=function(){return this.currentNode&&this.currentNode.type===St.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Gt.prototype.ent=function(Yt,Ht){return this.entity(Yt,Ht)},Gt.prototype.pent=function(Yt,Ht){return this.pEntity(Yt,Ht)},Gt.prototype.not=function(Yt,Ht){return this.notation(Yt,Ht)},Gt}()}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLAttribute":431,"./XMLCData":432,"./XMLComment":434,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDocument":445,"./XMLElement":448,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLStringWriter":455,"./XMLStringifier":456,"./XMLText":457}],447:[function(rt,kt,Ct){(function(){var St,pt,vt,yt=function(dt,ft){for(var ct in ft)xt.call(ft,ct)&&(dt[ct]=ft[ct]);function lt(){this.constructor=dt}return lt.prototype=ft.prototype,dt.prototype=new lt,dt.__super__=ft.prototype,dt},xt={}.hasOwnProperty;vt=rt("./XMLNode"),St=rt("./NodeType"),kt.exports=pt=function(dt){yt(ft,dt);function ft(ct){ft.__super__.constructor.call(this,ct),this.type=St.Dummy}return ft.prototype.clone=function(){return Object.create(this)},ft.prototype.toString=function(ct){return""},ft}(vt)}).call(this)},{"./NodeType":428,"./XMLNode":450}],448:[function(rt,kt,Ct){(function(){var St,pt,vt,yt,xt,dt,ft,ct,lt,E=function(ot,it){for(var at in it)z.call(it,at)&&(ot[at]=it[at]);function ut(){this.constructor=ot}return ut.prototype=it.prototype,ot.prototype=new ut,ot.__super__=it.prototype,ot},z={}.hasOwnProperty;lt=rt("./Utility"),ct=lt.isObject,ft=lt.isFunction,dt=lt.getValue,xt=rt("./XMLNode"),St=rt("./NodeType"),pt=rt("./XMLAttribute"),yt=rt("./XMLNamedNodeMap"),kt.exports=vt=function(ot){E(it,ot);function it(at,ut,wt){var Et,At,_t,Mt;if(it.__super__.constructor.call(this,at),ut==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(ut),this.type=St.Element,this.attribs={},this.schemaTypeInfo=null,wt!=null&&this.attribute(wt),at.type===St.Document&&(this.isRoot=!0,this.documentObject=at,at.rootObject=this,at.children)){for(Mt=at.children,At=0,_t=Mt.length;At<_t;At++)if(Et=Mt[At],Et.type===St.DocType){Et.name=this.name;break}}}return Object.defineProperty(it.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(it.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(it.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(it.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(it.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(it.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(it.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(it.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new yt(this.attribs)),this.attributeMap}}),it.prototype.clone=function(){var at,ut,wt,Et;wt=Object.create(this),wt.isRoot&&(wt.documentObject=null),wt.attribs={},Et=this.attribs;for(ut in Et)z.call(Et,ut)&&(at=Et[ut],wt.attribs[ut]=at.clone());return wt.children=[],this.children.forEach(function(At){var _t;return _t=At.clone(),_t.parent=wt,wt.children.push(_t)}),wt},it.prototype.attribute=function(at,ut){var wt,Et;if(at!=null&&(at=dt(at)),ct(at))for(wt in at)z.call(at,wt)&&(Et=at[wt],this.attribute(wt,Et));else ft(ut)&&(ut=ut.apply()),this.options.keepNullAttributes&&ut==null?this.attribs[at]=new pt(this,at,""):ut!=null&&(this.attribs[at]=new pt(this,at,ut));return this},it.prototype.removeAttribute=function(at){var ut,wt,Et;if(at==null)throw new Error("Missing attribute name. "+this.debugInfo());if(at=dt(at),Array.isArray(at))for(wt=0,Et=at.length;wt=Et;ut=0<=Et?++wt:--wt)if(!this.attribs[ut].isEqualNode(at.attribs[ut]))return!1;return!0},it}(xt)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLAttribute":431,"./XMLNamedNodeMap":449,"./XMLNode":450}],449:[function(rt,kt,Ct){(function(){var St;kt.exports=St=function(){function pt(vt){this.nodes=vt}return Object.defineProperty(pt.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),pt.prototype.clone=function(){return this.nodes=null},pt.prototype.getNamedItem=function(vt){return this.nodes[vt]},pt.prototype.setNamedItem=function(vt){var yt;return yt=this.nodes[vt.nodeName],this.nodes[vt.nodeName]=vt,yt||null},pt.prototype.removeNamedItem=function(vt){var yt;return yt=this.nodes[vt],delete this.nodes[vt],yt||null},pt.prototype.item=function(vt){return this.nodes[Object.keys(this.nodes)[vt]]||null},pt.prototype.getNamedItemNS=function(vt,yt){throw new Error("This DOM method is not implemented.")},pt.prototype.setNamedItemNS=function(vt){throw new Error("This DOM method is not implemented.")},pt.prototype.removeNamedItemNS=function(vt,yt){throw new Error("This DOM method is not implemented.")},pt}()}).call(this)},{}],450:[function(rt,kt,Ct){(function(){var St,pt,vt,yt,xt,dt,ft,ct,lt,E,z,ot,it,at,ut,wt,Et,At,_t,Mt={}.hasOwnProperty;_t=rt("./Utility"),At=_t.isObject,Et=_t.isFunction,wt=_t.isEmpty,ut=_t.getValue,ct=null,vt=null,yt=null,xt=null,dt=null,it=null,at=null,ot=null,ft=null,pt=null,z=null,lt=null,St=null,kt.exports=E=function(){function jt(Lt){this.parent=Lt,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,ct||(ct=rt("./XMLElement"),vt=rt("./XMLCData"),yt=rt("./XMLComment"),xt=rt("./XMLDeclaration"),dt=rt("./XMLDocType"),it=rt("./XMLRaw"),at=rt("./XMLText"),ot=rt("./XMLProcessingInstruction"),ft=rt("./XMLDummy"),pt=rt("./NodeType"),z=rt("./XMLNodeList"),lt=rt("./XMLNamedNodeMap"),St=rt("./DocumentPosition"))}return Object.defineProperty(jt.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(jt.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(jt.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(jt.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(jt.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new z(this.children)),this.childNodeList}}),Object.defineProperty(jt.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(jt.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(jt.prototype,"previousSibling",{get:function(){var Lt;return Lt=this.parent.children.indexOf(this),this.parent.children[Lt-1]||null}}),Object.defineProperty(jt.prototype,"nextSibling",{get:function(){var Lt;return Lt=this.parent.children.indexOf(this),this.parent.children[Lt+1]||null}}),Object.defineProperty(jt.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(jt.prototype,"textContent",{get:function(){var Lt,It,Ut,Xt,Gt;if(this.nodeType===pt.Element||this.nodeType===pt.DocumentFragment){for(Gt="",Xt=this.children,It=0,Ut=Xt.length;It":(Ut=this.parent)!=null&&Ut.name?"node: <"+Lt+">, parent: <"+this.parent.name+">":"node: <"+Lt+">"},jt.prototype.ele=function(Lt,It,Ut){return this.element(Lt,It,Ut)},jt.prototype.nod=function(Lt,It,Ut){return this.node(Lt,It,Ut)},jt.prototype.txt=function(Lt){return this.text(Lt)},jt.prototype.dat=function(Lt){return this.cdata(Lt)},jt.prototype.com=function(Lt){return this.comment(Lt)},jt.prototype.ins=function(Lt,It){return this.instruction(Lt,It)},jt.prototype.doc=function(){return this.document()},jt.prototype.dec=function(Lt,It,Ut){return this.declaration(Lt,It,Ut)},jt.prototype.e=function(Lt,It,Ut){return this.element(Lt,It,Ut)},jt.prototype.n=function(Lt,It,Ut){return this.node(Lt,It,Ut)},jt.prototype.t=function(Lt){return this.text(Lt)},jt.prototype.d=function(Lt){return this.cdata(Lt)},jt.prototype.c=function(Lt){return this.comment(Lt)},jt.prototype.r=function(Lt){return this.raw(Lt)},jt.prototype.i=function(Lt,It){return this.instruction(Lt,It)},jt.prototype.u=function(){return this.up()},jt.prototype.importXMLBuilder=function(Lt){return this.importDocument(Lt)},jt.prototype.replaceChild=function(Lt,It){throw new Error("This DOM method is not implemented."+this.debugInfo())},jt.prototype.removeChild=function(Lt){throw new Error("This DOM method is not implemented."+this.debugInfo())},jt.prototype.appendChild=function(Lt){throw new Error("This DOM method is not implemented."+this.debugInfo())},jt.prototype.hasChildNodes=function(){return this.children.length!==0},jt.prototype.cloneNode=function(Lt){throw new Error("This DOM method is not implemented."+this.debugInfo())},jt.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},jt.prototype.isSupported=function(Lt,It){return!0},jt.prototype.hasAttributes=function(){return this.attribs.length!==0},jt.prototype.compareDocumentPosition=function(Lt){var It,Ut;return It=this,It===Lt?0:this.document()!==Lt.document()?(Ut=St.Disconnected|St.ImplementationSpecific,Math.random()<.5?Ut|=St.Preceding:Ut|=St.Following,Ut):It.isAncestor(Lt)?St.Contains|St.Preceding:It.isDescendant(Lt)?St.Contains|St.Following:It.isPreceding(Lt)?St.Preceding:St.Following},jt.prototype.isSameNode=function(Lt){throw new Error("This DOM method is not implemented."+this.debugInfo())},jt.prototype.lookupPrefix=function(Lt){throw new Error("This DOM method is not implemented."+this.debugInfo())},jt.prototype.isDefaultNamespace=function(Lt){throw new Error("This DOM method is not implemented."+this.debugInfo())},jt.prototype.lookupNamespaceURI=function(Lt){throw new Error("This DOM method is not implemented."+this.debugInfo())},jt.prototype.isEqualNode=function(Lt){var It,Ut,Xt;if(Lt.nodeType!==this.nodeType||Lt.children.length!==this.children.length)return!1;for(It=Ut=0,Xt=this.children.length-1;0<=Xt?Ut<=Xt:Ut>=Xt;It=0<=Xt?++Ut:--Ut)if(!this.children[It].isEqualNode(Lt.children[It]))return!1;return!0},jt.prototype.getFeature=function(Lt,It){throw new Error("This DOM method is not implemented."+this.debugInfo())},jt.prototype.setUserData=function(Lt,It,Ut){throw new Error("This DOM method is not implemented."+this.debugInfo())},jt.prototype.getUserData=function(Lt){throw new Error("This DOM method is not implemented."+this.debugInfo())},jt.prototype.contains=function(Lt){return Lt?Lt===this||this.isDescendant(Lt):!1},jt.prototype.isDescendant=function(Lt){var It,Ut,Xt,Gt,Yt;for(Yt=this.children,Xt=0,Gt=Yt.length;XtUt},jt.prototype.treePosition=function(Lt){var It,Ut;return Ut=0,It=!1,this.foreachTreeNode(this.document(),function(Xt){if(Ut++,!It&&Xt===Lt)return It=!0}),It?Ut:-1},jt.prototype.foreachTreeNode=function(Lt,It){var Ut,Xt,Gt,Yt,Ht;for(Lt||(Lt=this.document()),Yt=Lt.children,Xt=0,Gt=Yt.length;Xt0){for(this.stream.write(" ["),this.stream.write(this.endline(lt,E,z)),E.state=pt.InsideTag,ut=lt.children,it=0,at=ut.length;it"),this.stream.write(this.endline(lt,E,z)),E.state=pt.None,this.closeNode(lt,E,z)},ct.prototype.element=function(lt,E,z){var ot,it,at,ut,wt,Et,At,_t,Mt,jt;z||(z=0),this.openNode(lt,E,z),E.state=pt.OpenTag,this.stream.write(this.indent(lt,E,z)+"<"+lt.name),Mt=lt.attribs;for(At in Mt)dt.call(Mt,At)&&(ot=Mt[At],this.attribute(ot,E,z));if(at=lt.children.length,ut=at===0?null:lt.children[0],at===0||lt.children.every(function(Lt){return(Lt.type===St.Text||Lt.type===St.Raw)&&Lt.value===""}))E.allowEmpty?(this.stream.write(">"),E.state=pt.CloseTag,this.stream.write("")):(E.state=pt.CloseTag,this.stream.write(E.spaceBeforeSlash+"/>"));else if(E.pretty&&at===1&&(ut.type===St.Text||ut.type===St.Raw)&&ut.value!=null)this.stream.write(">"),E.state=pt.InsideTag,E.suppressPrettyCount++,_t=!0,this.writeChildNode(ut,E,z+1),E.suppressPrettyCount--,_t=!1,E.state=pt.CloseTag,this.stream.write("");else{for(this.stream.write(">"+this.endline(lt,E,z)),E.state=pt.InsideTag,jt=lt.children,wt=0,Et=jt.length;wt")}return this.stream.write(this.endline(lt,E,z)),E.state=pt.None,this.closeNode(lt,E,z)},ct.prototype.processingInstruction=function(lt,E,z){return this.stream.write(ct.__super__.processingInstruction.call(this,lt,E,z))},ct.prototype.raw=function(lt,E,z){return this.stream.write(ct.__super__.raw.call(this,lt,E,z))},ct.prototype.text=function(lt,E,z){return this.stream.write(ct.__super__.text.call(this,lt,E,z))},ct.prototype.dtdAttList=function(lt,E,z){return this.stream.write(ct.__super__.dtdAttList.call(this,lt,E,z))},ct.prototype.dtdElement=function(lt,E,z){return this.stream.write(ct.__super__.dtdElement.call(this,lt,E,z))},ct.prototype.dtdEntity=function(lt,E,z){return this.stream.write(ct.__super__.dtdEntity.call(this,lt,E,z))},ct.prototype.dtdNotation=function(lt,E,z){return this.stream.write(ct.__super__.dtdNotation.call(this,lt,E,z))},ct}(yt)}).call(this)},{"./NodeType":428,"./WriterState":430,"./XMLWriterBase":458}],455:[function(rt,kt,Ct){(function(){var St,pt,vt=function(xt,dt){for(var ft in dt)yt.call(dt,ft)&&(xt[ft]=dt[ft]);function ct(){this.constructor=xt}return ct.prototype=dt.prototype,xt.prototype=new ct,xt.__super__=dt.prototype,xt},yt={}.hasOwnProperty;pt=rt("./XMLWriterBase"),kt.exports=St=function(xt){vt(dt,xt);function dt(ft){dt.__super__.constructor.call(this,ft)}return dt.prototype.document=function(ft,ct){var lt,E,z,ot,it;for(ct=this.filterOptions(ct),ot="",it=ft.children,E=0,z=it.length;E","]]]]>"),this.assertLegalChar(xt))},yt.prototype.comment=function(xt){if(this.options.noValidation)return xt;if(xt=""+xt||"",xt.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+xt);return this.assertLegalChar(xt)},yt.prototype.raw=function(xt){return this.options.noValidation?xt:""+xt||""},yt.prototype.attValue=function(xt){return this.options.noValidation?xt:this.assertLegalChar(this.attEscape(xt=""+xt||""))},yt.prototype.insTarget=function(xt){return this.options.noValidation?xt:this.assertLegalChar(""+xt||"")},yt.prototype.insValue=function(xt){if(this.options.noValidation)return xt;if(xt=""+xt||"",xt.match(/\?>/))throw new Error("Invalid processing instruction value: "+xt);return this.assertLegalChar(xt)},yt.prototype.xmlVersion=function(xt){if(this.options.noValidation)return xt;if(xt=""+xt||"",!xt.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+xt);return xt},yt.prototype.xmlEncoding=function(xt){if(this.options.noValidation)return xt;if(xt=""+xt||"",!xt.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+xt);return this.assertLegalChar(xt)},yt.prototype.xmlStandalone=function(xt){return this.options.noValidation?xt:xt?"yes":"no"},yt.prototype.dtdPubID=function(xt){return this.options.noValidation?xt:this.assertLegalChar(""+xt||"")},yt.prototype.dtdSysID=function(xt){return this.options.noValidation?xt:this.assertLegalChar(""+xt||"")},yt.prototype.dtdElementValue=function(xt){return this.options.noValidation?xt:this.assertLegalChar(""+xt||"")},yt.prototype.dtdAttType=function(xt){return this.options.noValidation?xt:this.assertLegalChar(""+xt||"")},yt.prototype.dtdAttDefault=function(xt){return this.options.noValidation?xt:this.assertLegalChar(""+xt||"")},yt.prototype.dtdEntityValue=function(xt){return this.options.noValidation?xt:this.assertLegalChar(""+xt||"")},yt.prototype.dtdNData=function(xt){return this.options.noValidation?xt:this.assertLegalChar(""+xt||"")},yt.prototype.convertAttKey="@",yt.prototype.convertPIKey="?",yt.prototype.convertTextKey="#text",yt.prototype.convertCDataKey="#cdata",yt.prototype.convertCommentKey="#comment",yt.prototype.convertRawKey="#raw",yt.prototype.assertLegalChar=function(xt){var dt,ft;if(this.options.noValidation)return xt;if(dt="",this.options.version==="1.0"){if(dt=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ft=xt.match(dt))throw new Error("Invalid character in string: "+xt+" at index "+ft.index)}else if(this.options.version==="1.1"&&(dt=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ft=xt.match(dt)))throw new Error("Invalid character in string: "+xt+" at index "+ft.index);return xt},yt.prototype.assertLegalName=function(xt){var dt;if(this.options.noValidation)return xt;if(this.assertLegalChar(xt),dt=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!xt.match(dt))throw new Error("Invalid character in name");return xt},yt.prototype.textEscape=function(xt){var dt;return this.options.noValidation?xt:(dt=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,xt.replace(dt,"&").replace(//g,">").replace(/\r/g," "))},yt.prototype.attEscape=function(xt){var dt;return this.options.noValidation?xt:(dt=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,xt.replace(dt,"&").replace(/0)?new Array(It).join(jt.indent):""},_t.prototype.endline=function(Mt,jt,Lt){return!jt.pretty||jt.suppressPrettyCount?"":jt.newline},_t.prototype.attribute=function(Mt,jt,Lt){var It;return this.openAttribute(Mt,jt,Lt),It=" "+Mt.name+'="'+Mt.value+'"',this.closeAttribute(Mt,jt,Lt),It},_t.prototype.cdata=function(Mt,jt,Lt){var It;return this.openNode(Mt,jt,Lt),jt.state=pt.OpenTag,It=this.indent(Mt,jt,Lt)+""+this.endline(Mt,jt,Lt),jt.state=pt.None,this.closeNode(Mt,jt,Lt),It},_t.prototype.comment=function(Mt,jt,Lt){var It;return this.openNode(Mt,jt,Lt),jt.state=pt.OpenTag,It=this.indent(Mt,jt,Lt)+""+this.endline(Mt,jt,Lt),jt.state=pt.None,this.closeNode(Mt,jt,Lt),It},_t.prototype.declaration=function(Mt,jt,Lt){var It;return this.openNode(Mt,jt,Lt),jt.state=pt.OpenTag,It=this.indent(Mt,jt,Lt)+"",It+=this.endline(Mt,jt,Lt),jt.state=pt.None,this.closeNode(Mt,jt,Lt),It},_t.prototype.docType=function(Mt,jt,Lt){var It,Ut,Xt,Gt,Yt;if(Lt||(Lt=0),this.openNode(Mt,jt,Lt),jt.state=pt.OpenTag,Gt=this.indent(Mt,jt,Lt),Gt+="0){for(Gt+=" [",Gt+=this.endline(Mt,jt,Lt),jt.state=pt.InsideTag,Yt=Mt.children,Ut=0,Xt=Yt.length;Ut",Gt+=this.endline(Mt,jt,Lt),jt.state=pt.None,this.closeNode(Mt,jt,Lt),Gt},_t.prototype.element=function(Mt,jt,Lt){var It,Ut,Xt,Gt,Yt,Ht,ne,ae,ve,Kt,re,we,Me,ke;Lt||(Lt=0),Kt=!1,re="",this.openNode(Mt,jt,Lt),jt.state=pt.OpenTag,re+=this.indent(Mt,jt,Lt)+"<"+Mt.name,we=Mt.attribs;for(ve in we)At.call(we,ve)&&(It=we[ve],re+=this.attribute(It,jt,Lt));if(Xt=Mt.children.length,Gt=Xt===0?null:Mt.children[0],Xt===0||Mt.children.every(function(me){return(me.type===St.Text||me.type===St.Raw)&&me.value===""}))jt.allowEmpty?(re+=">",jt.state=pt.CloseTag,re+=""+this.endline(Mt,jt,Lt)):(jt.state=pt.CloseTag,re+=jt.spaceBeforeSlash+"/>"+this.endline(Mt,jt,Lt));else if(jt.pretty&&Xt===1&&(Gt.type===St.Text||Gt.type===St.Raw)&&Gt.value!=null)re+=">",jt.state=pt.InsideTag,jt.suppressPrettyCount++,Kt=!0,re+=this.writeChildNode(Gt,jt,Lt+1),jt.suppressPrettyCount--,Kt=!1,jt.state=pt.CloseTag,re+=""+this.endline(Mt,jt,Lt);else{if(jt.dontPrettyTextNodes){for(Me=Mt.children,Yt=0,ne=Me.length;Yt"+this.endline(Mt,jt,Lt),jt.state=pt.InsideTag,ke=Mt.children,Ht=0,ae=ke.length;Ht",Kt&&jt.suppressPrettyCount--,re+=this.endline(Mt,jt,Lt),jt.state=pt.None}return this.closeNode(Mt,jt,Lt),re},_t.prototype.writeChildNode=function(Mt,jt,Lt){switch(Mt.type){case St.CData:return this.cdata(Mt,jt,Lt);case St.Comment:return this.comment(Mt,jt,Lt);case St.Element:return this.element(Mt,jt,Lt);case St.Raw:return this.raw(Mt,jt,Lt);case St.Text:return this.text(Mt,jt,Lt);case St.ProcessingInstruction:return this.processingInstruction(Mt,jt,Lt);case St.Dummy:return"";case St.Declaration:return this.declaration(Mt,jt,Lt);case St.DocType:return this.docType(Mt,jt,Lt);case St.AttributeDeclaration:return this.dtdAttList(Mt,jt,Lt);case St.ElementDeclaration:return this.dtdElement(Mt,jt,Lt);case St.EntityDeclaration:return this.dtdEntity(Mt,jt,Lt);case St.NotationDeclaration:return this.dtdNotation(Mt,jt,Lt);default:throw new Error("Unknown XML node type: "+Mt.constructor.name)}},_t.prototype.processingInstruction=function(Mt,jt,Lt){var It;return this.openNode(Mt,jt,Lt),jt.state=pt.OpenTag,It=this.indent(Mt,jt,Lt)+"",It+=this.endline(Mt,jt,Lt),jt.state=pt.None,this.closeNode(Mt,jt,Lt),It},_t.prototype.raw=function(Mt,jt,Lt){var It;return this.openNode(Mt,jt,Lt),jt.state=pt.OpenTag,It=this.indent(Mt,jt,Lt),jt.state=pt.InsideTag,It+=Mt.value,jt.state=pt.CloseTag,It+=this.endline(Mt,jt,Lt),jt.state=pt.None,this.closeNode(Mt,jt,Lt),It},_t.prototype.text=function(Mt,jt,Lt){var It;return this.openNode(Mt,jt,Lt),jt.state=pt.OpenTag,It=this.indent(Mt,jt,Lt),jt.state=pt.InsideTag,It+=Mt.value,jt.state=pt.CloseTag,It+=this.endline(Mt,jt,Lt),jt.state=pt.None,this.closeNode(Mt,jt,Lt),It},_t.prototype.dtdAttList=function(Mt,jt,Lt){var It;return this.openNode(Mt,jt,Lt),jt.state=pt.OpenTag,It=this.indent(Mt,jt,Lt)+""+this.endline(Mt,jt,Lt),jt.state=pt.None,this.closeNode(Mt,jt,Lt),It},_t.prototype.dtdElement=function(Mt,jt,Lt){var It;return this.openNode(Mt,jt,Lt),jt.state=pt.OpenTag,It=this.indent(Mt,jt,Lt)+""+this.endline(Mt,jt,Lt),jt.state=pt.None,this.closeNode(Mt,jt,Lt),It},_t.prototype.dtdEntity=function(Mt,jt,Lt){var It;return this.openNode(Mt,jt,Lt),jt.state=pt.OpenTag,It=this.indent(Mt,jt,Lt)+""+this.endline(Mt,jt,Lt),jt.state=pt.None,this.closeNode(Mt,jt,Lt),It},_t.prototype.dtdNotation=function(Mt,jt,Lt){var It;return this.openNode(Mt,jt,Lt),jt.state=pt.OpenTag,It=this.indent(Mt,jt,Lt)+""+this.endline(Mt,jt,Lt),jt.state=pt.None,this.closeNode(Mt,jt,Lt),It},_t.prototype.openNode=function(Mt,jt,Lt){},_t.prototype.closeNode=function(Mt,jt,Lt){},_t.prototype.openAttribute=function(Mt,jt,Lt){},_t.prototype.closeAttribute=function(Mt,jt,Lt){},_t}()}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLCData":432,"./XMLComment":434,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDummy":447,"./XMLElement":448,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLText":457}],459:[function(rt,kt,Ct){(function(){var St,pt,vt,yt,xt,dt,ft,ct,lt,E;E=rt("./Utility"),ct=E.assign,lt=E.isFunction,vt=rt("./XMLDOMImplementation"),yt=rt("./XMLDocument"),xt=rt("./XMLDocumentCB"),ft=rt("./XMLStringWriter"),dt=rt("./XMLStreamWriter"),St=rt("./NodeType"),pt=rt("./WriterState"),kt.exports.create=function(z,ot,it,at){var ut,wt;if(z==null)throw new Error("Root element needs a name.");return at=ct({},ot,it,at),ut=new yt(at),wt=ut.element(z),at.headless||(ut.declaration(at),(at.pubID!=null||at.sysID!=null)&&ut.dtd(at)),wt},kt.exports.begin=function(z,ot,it){var at;return lt(z)&&(at=[z,ot],ot=at[0],it=at[1],z={}),ot?new xt(z,ot,it):new yt(z)},kt.exports.stringWriter=function(z){return new ft(z)},kt.exports.streamWriter=function(z,ot){return new dt(z,ot)},kt.exports.implementation=new vt,kt.exports.nodeType=St,kt.exports.writerState=pt}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLDOMImplementation":437,"./XMLDocument":445,"./XMLDocumentCB":446,"./XMLStreamWriter":454,"./XMLStringWriter":455}],460:[function(rt,kt,Ct){kt.exports=pt;var St=Object.prototype.hasOwnProperty;function pt(){for(var vt={},yt=0;ytxt?z=E(z):z.length>5]|=128<>>9<<4)+14]=ot;for(var it=1732584193,at=-271733879,ut=-1732584194,wt=271733878,Et=0;Et>16)+(ot>>16)+(it>>16);return at<<16|it&65535}function E(z,ot){return z<>>32-ot}kt.exports=function(ot){return St.hash(ot,vt,16)}},{"./helpers":462}],464:[function(rt,kt,Ct){"use strict";var St=rt("./helpers");function pt(ft,ct){ft[ct>>5]|=128<<24-ct%32,ft[(ct+64>>9<<4)+15]=ct;for(var lt=Array(80),E=1732584193,z=-271733879,ot=-1732584194,it=271733878,at=-1009589776,ut=0;ut>16)+(ct>>16)+(lt>>16);return E<<16|lt&65535}function dt(ft,ct){return ft<>>32-ct}kt.exports=function(ct){return St.hash(ct,pt,20,!0)}},{"./helpers":462}],465:[function(rt,kt,Ct){"use strict";kt.exports=function(){return function(){}}},{}],466:[function(rt,kt,Ct){(function(St){(function(){"use strict";var pt=rt("@babel/runtime/helpers/interopRequireDefault"),vt=pt(rt("@babel/runtime/helpers/typeof")),yt=rt("stream"),xt=yt.Stream,dt=rt("../lib/common/utils/isArray"),ft=dt.isArray;kt.exports.string=function(E){return typeof E=="string"},kt.exports.array=ft,kt.exports.buffer=St.isBuffer;function ct(lt){return lt instanceof xt}kt.exports.writableStream=function(E){return ct(E)&&typeof E._write=="function"&&(0,vt.default)(E._writableState)==="object"}}).call(this)}).call(this,{isBuffer:rt("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":63,"../node_modules/is-buffer/index.js":366,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,stream:398}],467:[function(rt,kt,Ct){"use strict";var St=rt("immediate"),pt=kt.exports={};pt.nextTick=St,pt.title="browser",pt.browser=!0,pt.env={},pt.argv=[],pt.version="",pt.versions={};function vt(){}pt.on=vt,pt.addListener=vt,pt.once=vt,pt.off=vt,pt.removeListener=vt,pt.removeAllListeners=vt,pt.emit=vt,pt.prependListener=vt,pt.prependOnceListener=vt,pt.listeners=function(yt){return[]},pt.binding=function(yt){throw new Error("process.binding is not supported")},pt.cwd=function(){return"/"},pt.chdir=function(yt){throw new Error("process.chdir is not supported")},pt.umask=function(){return 0}},{immediate:358}],468:[function(rt,kt,Ct){(function(St){(function(){"use strict";rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.search.js");var pt=rt("./lib/request"),vt=rt("./lib/response"),yt=rt("xtend"),xt=rt("builtin-status-codes"),dt=rt("url"),ft=Ct;ft.request=function(ct,lt){typeof ct=="string"?ct=dt.parse(ct):ct=yt(ct);var E=St.location.protocol.search(/^https?:$/)===-1?"http:":"",z=ct.protocol||E,ot=ct.hostname||ct.host,it=ct.port,at=ct.path||"/";ot&&ot.indexOf(":")!==-1&&(ot="["+ot+"]"),ct.url=(ot?z+"//"+ot:"")+(it?":"+it:"")+at,ct.method=(ct.method||"GET").toUpperCase(),ct.headers=ct.headers||{};var ut=new pt(ct);return lt&&ut.on("response",lt),ut},ft.get=function(lt,E){var z=ft.request(lt,E);return z.end(),z},ft.ClientRequest=pt,ft.IncomingMessage=vt.IncomingMessage,ft.Agent=function(){},ft.Agent.defaultMaxSockets=4,ft.globalAgent=new ft.Agent,ft.STATUS_CODES=xt,ft.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this)}).call(this,typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":470,"./lib/response":471,"builtin-status-codes":91,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.search.js":306,url:472,xtend:460}],469:[function(rt,kt,Ct){(function(St){(function(){"use strict";rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/es.promise.js"),rt("core-js/modules/es.array-buffer.constructor.js"),rt("core-js/modules/es.array-buffer.slice.js"),rt("core-js/modules/es.array.slice.js"),Ct.fetch=ft(St.fetch)&&ft(St.ReadableStream),Ct.writableStream=ft(St.WritableStream),Ct.abortController=ft(St.AbortController),Ct.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),Ct.blobConstructor=!0}catch(ct){}var pt;function vt(){if(pt!==void 0)return pt;if(St.XMLHttpRequest){pt=new St.XMLHttpRequest;try{pt.open("GET",St.XDomainRequest?"/":"https://example.com")}catch(ct){pt=null}}else pt=null;return pt}function yt(ct){var lt=vt();if(!lt)return!1;try{return lt.responseType=ct,lt.responseType===ct}catch(E){}return!1}var xt=typeof St.ArrayBuffer!="undefined",dt=xt&&ft(St.ArrayBuffer.prototype.slice);Ct.arraybuffer=Ct.fetch||xt&&yt("arraybuffer"),Ct.msstream=!Ct.fetch&&dt&&yt("ms-stream"),Ct.mozchunkedarraybuffer=!Ct.fetch&&xt&&yt("moz-chunked-arraybuffer"),Ct.overrideMimeType=Ct.fetch||(vt()?ft(vt().overrideMimeType):!1),Ct.vbArray=ft(St.VBArray);function ft(ct){return typeof ct=="function"}pt=null}).call(this)}).call(this,typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"core-js/modules/es.array-buffer.constructor.js":270,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],470:[function(rt,kt,Ct){(function(St,pt,vt){(function(){"use strict";rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/es.regexp.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.object.keys.js"),rt("core-js/modules/es.array.concat.js"),rt("core-js/modules/es.array.map.js"),rt("core-js/modules/es.function.name.js"),rt("core-js/modules/es.promise.js"),rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.split.js");var yt=rt("./capability"),xt=rt("inherits"),dt=rt("./response"),ft=rt("readable-stream"),ct=rt("to-arraybuffer"),lt=dt.IncomingMessage,E=dt.readyStates;function z(ut,wt){return yt.fetch&&wt?"fetch":yt.mozchunkedarraybuffer?"moz-chunked-arraybuffer":yt.msstream?"ms-stream":yt.arraybuffer&&ut?"arraybuffer":yt.vbArray&&ut?"text:vbarray":"text"}var ot=kt.exports=function(ut){var wt=this;ft.Writable.call(wt),wt._opts=ut,wt._body=[],wt._headers={},ut.auth&&wt.setHeader("Authorization","Basic "+new vt(ut.auth).toString("base64")),Object.keys(ut.headers).forEach(function(_t){wt.setHeader(_t,ut.headers[_t])});var Et,At=!0;if(ut.mode==="disable-fetch"||"requestTimeout"in ut&&!yt.abortController)At=!1,Et=!0;else if(ut.mode==="prefer-streaming")Et=!1;else if(ut.mode==="allow-wrong-content-type")Et=!yt.overrideMimeType;else if(!ut.mode||ut.mode==="default"||ut.mode==="prefer-fast")Et=!0;else throw new Error("Invalid value for opts.mode");wt._mode=z(Et,At),wt._fetchTimer=null,wt.on("finish",function(){wt._onFinish()})};xt(ot,ft.Writable),ot.prototype.setHeader=function(ut,wt){var Et=this,At=ut.toLowerCase();at.indexOf(At)===-1&&(Et._headers[At]={name:ut,value:wt})},ot.prototype.getHeader=function(ut){var wt=this._headers[ut.toLowerCase()];return wt?wt.value:null},ot.prototype.removeHeader=function(ut){var wt=this;delete wt._headers[ut.toLowerCase()]},ot.prototype._onFinish=function(){var ut=this;if(!ut._destroyed){var wt=ut._opts,Et=ut._headers,At=null;wt.method!=="GET"&&wt.method!=="HEAD"&&(yt.arraybuffer?At=ct(vt.concat(ut._body)):yt.blobConstructor?At=new pt.Blob(ut._body.map(function(Ut){return ct(Ut)}),{type:(Et["content-type"]||{}).value||""}):At=vt.concat(ut._body).toString());var _t=[];if(Object.keys(Et).forEach(function(Ut){var Xt=Et[Ut].name,Gt=Et[Ut].value;Array.isArray(Gt)?Gt.forEach(function(Yt){_t.push([Xt,Yt])}):_t.push([Xt,Gt])}),ut._mode==="fetch"){var Mt=null,jt=null;if(yt.abortController){var Lt=new AbortController;Mt=Lt.signal,ut._fetchAbortController=Lt,"requestTimeout"in wt&&wt.requestTimeout!==0&&(ut._fetchTimer=pt.setTimeout(function(){ut.emit("requestTimeout"),ut._fetchAbortController&&ut._fetchAbortController.abort()},wt.requestTimeout))}pt.fetch(ut._opts.url,{method:ut._opts.method,headers:_t,body:At||void 0,mode:"cors",credentials:wt.withCredentials?"include":"same-origin",signal:Mt}).then(function(Ut){ut._fetchResponse=Ut,ut._connect()},function(Ut){pt.clearTimeout(ut._fetchTimer),ut._destroyed||ut.emit("error",Ut)})}else{var It=ut._xhr=new pt.XMLHttpRequest;try{It.open(ut._opts.method,ut._opts.url,!0)}catch(Ut){St.nextTick(function(){ut.emit("error",Ut)});return}"responseType"in It&&(It.responseType=ut._mode.split(":")[0]),"withCredentials"in It&&(It.withCredentials=!!wt.withCredentials),ut._mode==="text"&&"overrideMimeType"in It&&It.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in wt&&(It.timeout=wt.requestTimeout,It.ontimeout=function(){ut.emit("requestTimeout")}),_t.forEach(function(Ut){It.setRequestHeader(Ut[0],Ut[1])}),ut._response=null,It.onreadystatechange=function(){switch(It.readyState){case E.LOADING:case E.DONE:ut._onXHRProgress();break}},ut._mode==="moz-chunked-arraybuffer"&&(It.onprogress=function(){ut._onXHRProgress()}),It.onerror=function(){ut._destroyed||ut.emit("error",new Error("XHR error"))};try{It.send(At)}catch(Ut){St.nextTick(function(){ut.emit("error",Ut)});return}}}};function it(ut){try{var wt=ut.status;return wt!==null&&wt!==0}catch(Et){return!1}}ot.prototype._onXHRProgress=function(){var ut=this;!it(ut._xhr)||ut._destroyed||(ut._response||ut._connect(),ut._response._onXHRProgress())},ot.prototype._connect=function(){var ut=this;ut._destroyed||(ut._response=new lt(ut._xhr,ut._fetchResponse,ut._mode,ut._fetchTimer),ut._response.on("error",function(wt){ut.emit("error",wt)}),ut.emit("response",ut._response))},ot.prototype._write=function(ut,wt,Et){var At=this;At._body.push(ut),Et()},ot.prototype.abort=ot.prototype.destroy=function(){var ut=this;ut._destroyed=!0,pt.clearTimeout(ut._fetchTimer),ut._response&&(ut._response._destroyed=!0),ut._xhr?ut._xhr.abort():ut._fetchAbortController&&ut._fetchAbortController.abort()},ot.prototype.end=function(ut,wt,Et){var At=this;typeof ut=="function"&&(Et=ut,ut=void 0),ft.Writable.prototype.end.call(At,ut,wt,Et)},ot.prototype.flushHeaders=function(){},ot.prototype.setTimeout=function(){},ot.prototype.setNoDelay=function(){},ot.prototype.setSocketKeepAlive=function(){};var at=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this)}).call(this,rt("_process"),typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{},rt("buffer").Buffer)},{"./capability":469,"./response":471,_process:467,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.split.js":307,"core-js/modules/web.dom-collections.for-each.js":339,inherits:364,"readable-stream":394,"to-arraybuffer":415}],471:[function(rt,kt,Ct){(function(St,pt,vt){(function(){"use strict";rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.promise.js"),rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.split.js"),rt("core-js/modules/es.string.match.js"),rt("core-js/modules/es.array.iterator.js"),rt("core-js/modules/es.array-buffer.slice.js"),rt("core-js/modules/es.typed-array.uint8-array.js"),rt("core-js/modules/es.typed-array.copy-within.js"),rt("core-js/modules/es.typed-array.every.js"),rt("core-js/modules/es.typed-array.fill.js"),rt("core-js/modules/es.typed-array.filter.js"),rt("core-js/modules/es.typed-array.find.js"),rt("core-js/modules/es.typed-array.find-index.js"),rt("core-js/modules/es.typed-array.for-each.js"),rt("core-js/modules/es.typed-array.includes.js"),rt("core-js/modules/es.typed-array.index-of.js"),rt("core-js/modules/es.typed-array.iterator.js"),rt("core-js/modules/es.typed-array.join.js"),rt("core-js/modules/es.typed-array.last-index-of.js"),rt("core-js/modules/es.typed-array.map.js"),rt("core-js/modules/es.typed-array.reduce.js"),rt("core-js/modules/es.typed-array.reduce-right.js"),rt("core-js/modules/es.typed-array.reverse.js"),rt("core-js/modules/es.typed-array.set.js"),rt("core-js/modules/es.typed-array.slice.js"),rt("core-js/modules/es.typed-array.some.js"),rt("core-js/modules/es.typed-array.sort.js"),rt("core-js/modules/es.typed-array.subarray.js"),rt("core-js/modules/es.typed-array.to-locale-string.js"),rt("core-js/modules/es.typed-array.to-string.js"),rt("core-js/modules/es.array.slice.js");var yt=rt("./capability"),xt=rt("inherits"),dt=rt("readable-stream"),ft=Ct.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},ct=Ct.IncomingMessage=function(lt,E,z,ot){var it=this;if(dt.Readable.call(it),it._mode=z,it.headers={},it.rawHeaders=[],it.trailers={},it.rawTrailers=[],it.on("end",function(){St.nextTick(function(){it.emit("close")})}),z==="fetch"){var at=function Mt(){wt.read().then(function(jt){if(!it._destroyed){if(jt.done){pt.clearTimeout(ot),it.push(null);return}it.push(new vt(jt.value)),Mt()}}).catch(function(jt){pt.clearTimeout(ot),it._destroyed||it.emit("error",jt)})};if(it._fetchResponse=E,it.url=E.url,it.statusCode=E.status,it.statusMessage=E.statusText,E.headers.forEach(function(Mt,jt){it.headers[jt.toLowerCase()]=Mt,it.rawHeaders.push(jt,Mt)}),yt.writableStream){var ut=new WritableStream({write:function(jt){return new Promise(function(Lt,It){it._destroyed?It():it.push(new vt(jt))?Lt():it._resumeFetch=Lt})},close:function(){pt.clearTimeout(ot),it._destroyed||it.push(null)},abort:function(jt){it._destroyed||it.emit("error",jt)}});try{E.body.pipeTo(ut).catch(function(Mt){pt.clearTimeout(ot),it._destroyed||it.emit("error",Mt)});return}catch(Mt){}}var wt=E.body.getReader();at()}else{it._xhr=lt,it._pos=0,it.url=lt.responseURL,it.statusCode=lt.status,it.statusMessage=lt.statusText;var Et=lt.getAllResponseHeaders().split(/\r?\n/);if(Et.forEach(function(Mt){var jt=Mt.match(/^([^:]+):\s*(.*)/);if(jt){var Lt=jt[1].toLowerCase();Lt==="set-cookie"?(it.headers[Lt]===void 0&&(it.headers[Lt]=[]),it.headers[Lt].push(jt[2])):it.headers[Lt]!==void 0?it.headers[Lt]+=", "+jt[2]:it.headers[Lt]=jt[2],it.rawHeaders.push(jt[1],jt[2])}}),it._charset="x-user-defined",!yt.overrideMimeType){var At=it.rawHeaders["mime-type"];if(At){var _t=At.match(/;\s*charset=([^;])(;|$)/);_t&&(it._charset=_t[1].toLowerCase())}it._charset||(it._charset="utf-8")}}};xt(ct,dt.Readable),ct.prototype._read=function(){var lt=this,E=lt._resumeFetch;E&&(lt._resumeFetch=null,E())},ct.prototype._onXHRProgress=function(){var lt=this,E=lt._xhr,z=null;switch(lt._mode){case"text:vbarray":if(E.readyState!==ft.DONE)break;try{z=new pt.VBArray(E.responseBody).toArray()}catch(wt){}if(z!==null){lt.push(new vt(z));break}case"text":try{z=E.responseText}catch(wt){lt._mode="text:vbarray";break}if(z.length>lt._pos){var ot=z.substr(lt._pos);if(lt._charset==="x-user-defined"){for(var it=new vt(ot.length),at=0;atlt._pos&&(lt.push(new vt(new Uint8Array(ut.result.slice(lt._pos)))),lt._pos=ut.result.byteLength)},ut.onload=function(){lt.push(null)},ut.readAsArrayBuffer(z);break}lt._xhr.readyState===ft.DONE&<._mode!=="ms-stream"&<.push(null)}}).call(this)}).call(this,rt("_process"),typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{},rt("buffer").Buffer)},{"./capability":469,_process:467,buffer:90,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.match.js":304,"core-js/modules/es.string.split.js":307,"core-js/modules/es.typed-array.copy-within.js":315,"core-js/modules/es.typed-array.every.js":316,"core-js/modules/es.typed-array.fill.js":317,"core-js/modules/es.typed-array.filter.js":318,"core-js/modules/es.typed-array.find-index.js":319,"core-js/modules/es.typed-array.find.js":320,"core-js/modules/es.typed-array.for-each.js":321,"core-js/modules/es.typed-array.includes.js":322,"core-js/modules/es.typed-array.index-of.js":323,"core-js/modules/es.typed-array.iterator.js":324,"core-js/modules/es.typed-array.join.js":325,"core-js/modules/es.typed-array.last-index-of.js":326,"core-js/modules/es.typed-array.map.js":327,"core-js/modules/es.typed-array.reduce-right.js":328,"core-js/modules/es.typed-array.reduce.js":329,"core-js/modules/es.typed-array.reverse.js":330,"core-js/modules/es.typed-array.set.js":331,"core-js/modules/es.typed-array.slice.js":332,"core-js/modules/es.typed-array.some.js":333,"core-js/modules/es.typed-array.sort.js":334,"core-js/modules/es.typed-array.subarray.js":335,"core-js/modules/es.typed-array.to-locale-string.js":336,"core-js/modules/es.typed-array.to-string.js":337,"core-js/modules/es.typed-array.uint8-array.js":338,"core-js/modules/web.dom-collections.for-each.js":339,inherits:364,"readable-stream":394}],472:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/helpers/typeof"));rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.search.js"),rt("core-js/modules/es.array.concat.js"),rt("core-js/modules/es.string.split.js"),rt("core-js/modules/es.string.replace.js"),rt("core-js/modules/es.array.join.js"),rt("core-js/modules/es.string.trim.js"),rt("core-js/modules/es.string.match.js"),rt("core-js/modules/es.array.slice.js"),rt("core-js/modules/es.object.keys.js"),rt("core-js/modules/es.array.splice.js");var vt=rt("punycode"),yt=rt("./util");Ct.parse=jt,Ct.resolve=It,Ct.resolveObject=Ut,Ct.format=Lt,Ct.Url=xt;function xt(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var dt=/^([a-z0-9.+-]+:)/i,ft=/:[0-9]*$/,ct=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,lt=["<",">",'"',"`"," ","\r",` -`," "],E=["{","}","|","\\","^","`"].concat(lt),z=["'"].concat(E),ot=["%","/","?",";","#"].concat(z),it=["/","?","#"],at=255,ut=/^[+a-z0-9A-Z_-]{0,63}$/,wt=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Et={javascript:!0,"javascript:":!0},At={javascript:!0,"javascript:":!0},_t={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Mt=rt("querystring");function jt(Xt,Gt,Yt){if(Xt&&yt.isObject(Xt)&&Xt instanceof xt)return Xt;var Ht=new xt;return Ht.parse(Xt,Gt,Yt),Ht}xt.prototype.parse=function(Xt,Gt,Yt){if(!yt.isString(Xt))throw new TypeError("Parameter 'url' must be a string, not "+(0,pt.default)(Xt));var Ht=Xt.indexOf("?"),ne=Ht!==-1&&Ht127?Ne+="x":Ne+=le[se];if(!Ne.match(ut)){var Xe=Se.slice(0,fe),Be=Se.slice(fe+1),Te=le.match(wt);Te&&(Xe.push(Te[1]),Be.unshift(Te[2])),Be.length&&(Kt="/"+Be.join(".")+Kt),this.hostname=Xe.join(".");break}}}this.hostname.length>at?this.hostname="":this.hostname=this.hostname.toLowerCase(),He||(this.hostname=vt.toASCII(this.hostname));var ue=this.port?":"+this.port:"",$t=this.hostname||"";this.host=$t+ue,this.href+=this.host,He&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Kt[0]!=="/"&&(Kt="/"+Kt))}if(!Et[Me])for(var fe=0,xe=z.length;fe0?Yt.host.split("@"):!1;Ne&&(Yt.auth=Ne.shift(),Yt.host=Yt.hostname=Ne.shift())}return Yt.search=Xt.search,Yt.query=Xt.query,(!yt.isNull(Yt.pathname)||!yt.isNull(Yt.search))&&(Yt.path=(Yt.pathname?Yt.pathname:"")+(Yt.search?Yt.search:"")),Yt.href=Yt.format(),Yt}if(!Se.length)return Yt.pathname=null,Yt.search?Yt.path="/"+Yt.search:Yt.path=null,Yt.href=Yt.format(),Yt;for(var se=Se.slice(-1)[0],Ae=(Yt.host||Xt.host||Se.length>1)&&(se==="."||se==="..")||se==="",Xe=0,Be=Se.length;Be>=0;Be--)se=Se[Be],se==="."?Se.splice(Be,1):se===".."?(Se.splice(Be,1),Xe++):Xe&&(Se.splice(Be,1),Xe--);if(!je&&!He)for(;Xe--;Xe)Se.unshift("..");je&&Se[0]!==""&&(!Se[0]||Se[0].charAt(0)!=="/")&&Se.unshift(""),Ae&&Se.join("/").substr(-1)!=="/"&&Se.push("");var Te=Se[0]===""||Se[0]&&Se[0].charAt(0)==="/";if(le){Yt.hostname=Yt.host=Te?"":Se.length?Se.shift():"";var Ne=Yt.host&&Yt.host.indexOf("@")>0?Yt.host.split("@"):!1;Ne&&(Yt.auth=Ne.shift(),Yt.host=Yt.hostname=Ne.shift())}return je=je||Yt.host&&Se.length,je&&!Te&&Se.unshift(""),Se.length?Yt.pathname=Se.join("/"):(Yt.pathname=null,Yt.path=null),(!yt.isNull(Yt.pathname)||!yt.isNull(Yt.search))&&(Yt.path=(Yt.pathname?Yt.pathname:"")+(Yt.search?Yt.search:"")),Yt.auth=Xt.auth||Yt.auth,Yt.slashes=Yt.slashes||Xt.slashes,Yt.href=Yt.format(),Yt},xt.prototype.parseHost=function(){var Xt=this.host,Gt=ft.exec(Xt);Gt&&(Gt=Gt[0],Gt!==":"&&(this.port=Gt.substr(1)),Xt=Xt.substr(0,Xt.length-Gt.length)),Xt&&(this.hostname=Xt)}},{"./util":473,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.array.splice.js":283,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.match.js":304,"core-js/modules/es.string.replace.js":305,"core-js/modules/es.string.search.js":306,"core-js/modules/es.string.split.js":307,"core-js/modules/es.string.trim.js":308,punycode:382,querystring:385}],473:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/helpers/typeof"));kt.exports={isString:function(yt){return typeof yt=="string"},isObject:function(yt){return(0,pt.default)(yt)==="object"&&yt!==null},isNull:function(yt){return yt===null},isNullOrUndefined:function(yt){return yt==null}}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79}],474:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.number.constructor.js"),Ct.encodeURIComponent=function(St){try{return encodeURIComponent(St)}catch(pt){return St}},Ct.escape=rt("escape-html"),Ct.timestamp=function(pt){if(pt){var vt=pt;return typeof vt=="string"&&(vt=Number(vt)),String(pt).length===10&&(vt*=1e3),new Date(vt)}return Math.round(Date.now()/1e3)}},{"core-js/modules/es.number.constructor.js":286,"escape-html":343}],475:[function(rt,kt,Ct){(function(St,pt){(function(){"use strict";var vt=rt("@babel/runtime/helpers/interopRequireDefault"),yt=vt(rt("@babel/runtime/helpers/typeof"));rt("core-js/modules/es.string.trim.js"),rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.split.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/es.promise.js"),rt("core-js/modules/es.function.name.js"),rt("core-js/modules/es.array.concat.js");var xt=rt("util"),dt=rt("url"),ft=rt("http"),ct=rt("https"),lt=rt("debug")("urllib"),E=rt("humanize-ms"),z=0,ot=Math.pow(2,31)-10,it=/^https?:\/\//i;function at(At,_t){return At===void 0?_t:At}function ut(At){return At?At.split(";")[0].trim().toLowerCase():""}function wt(At,_t){return function(Mt,jt,Lt){if(Mt)return _t(Mt);At({data:jt,status:Lt.statusCode,headers:Lt.headers,res:Lt})}}Ct.TIMEOUTS=[E("300s"),E("300s")];var Et=["json","text"];Ct.request=function(_t,Mt,jt){return arguments.length===2&&typeof Mt=="function"&&(jt=Mt,Mt=null),typeof jt=="function"?Ct.requestWithCallback(_t,Mt,jt):new Promise(function(Lt,It){Ct.requestWithCallback(_t,Mt,wt(Lt,It))})},Ct.requestWithCallback=function(_t,Mt,jt){if(!_t||typeof _t!="string"&&(0,yt.default)(_t)!=="object"){var Lt=xt.format("expect request url to be a string or a http request options, but got %j",_t);throw new Error(Lt)}arguments.length===2&&typeof Mt=="function"&&(jt=Mt,Mt=null),Mt=Mt||{},z>=ot&&(z=0);var It=++z;Mt.requestUrls=Mt.requestUrls||[];var Ut={requestId:It,url:_t,args:Mt,ctx:Mt.ctx};Mt.emitter&&Mt.emitter.emit("request",Ut),Mt.timeout=Mt.timeout||Ct.TIMEOUTS,Mt.maxRedirects=Mt.maxRedirects||10,Mt.streaming=Mt.streaming||Mt.customResponse;var Xt=Date.now(),Gt;typeof _t=="string"?(it.test(_t)||(_t="https://"+_t),Gt=dt.parse(_t)):Gt=_t;var Yt=(Mt.type||Mt.method||Gt.method||"GET").toUpperCase(),Ht=Gt.port||80,ne=ft,ae=at(Mt.agent,Ct.agent),ve=Mt.fixJSONCtlChars;Gt.protocol==="https:"&&(ne=ct,ae=at(Mt.httpsAgent,Ct.httpsAgent),Gt.port||(Ht=443));var Kt={host:Gt.hostname||Gt.host||"localhost",path:Gt.path||"/",method:Yt,port:Ht,agent:ae,headers:Mt.headers||{},lookup:Mt.lookup};Array.isArray(Mt.timeout)?Kt.requestTimeout=Mt.timeout[Mt.timeout.length-1]:typeof Mt.timeout!="undefined"&&(Kt.requestTimeout=Mt.timeout);var re=Mt.auth||Gt.auth;re&&(Kt.auth=re);var we=Mt.content||Mt.data,Me=Yt==="GET"||Yt==="HEAD"||Mt.dataAsQueryString;if(!Mt.content&&we&&!(typeof we=="string"||pt.isBuffer(we)))if(Me)we=Mt.nestedQuerystring?qs.stringify(we):querystring.stringify(we);else{var ke=Kt.headers["Content-Type"]||Kt.headers["content-type"];ke||(Mt.contentType==="json"?ke="application/json":ke="application/x-www-form-urlencoded",Kt.headers["Content-Type"]=ke),ut(ke)==="application/json"?we=JSON.stringify(we):we=Mt.nestedQuerystring?qs.stringify(we):querystring.stringify(we)}Me&&we&&(Kt.path+=(Gt.query?"&":"?")+we,we=null);var me=0;if(we){var fe=we.length;pt.isBuffer(we)||(fe=pt.byteLength(we)),me=Kt.headers["Content-Length"]=fe}Mt.dataType==="json"&&(Kt.headers.Accept="application/json"),typeof Mt.beforeRequest=="function"&&Mt.beforeRequest(Kt);var pe=null,_e=null,je=null,He=!1,Se=!1,xe=0,le=-1,Ne=!1,se="",Ae="",Xe=null;Mt.timing&&(Xe={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function Be(){pe&&(clearTimeout(pe),pe=null)}function Te(){_e&&(clearTimeout(_e),_e=null)}function ue(Ue,Je,Ze){if(Te(),!jt){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),It,St.pid,Kt.method,_t),Ue&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s -stack: %s`,Date(),It,St.pid,Ue.name,Ue.message,Ue.stack);return}var nn=jt;jt=null;var fn={};Ze&&(le=Ze.statusCode,fn=Ze.headers);var An=Date.now()-Xt;Xe&&(Xe.contentDownload=An),lt("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",An,xe,le,Kt.method,Kt.host,Kt.path,Se,Xe);var En={status:le,statusCode:le,headers:fn,size:xe,aborted:Ne,rt:An,keepAliveSocket:Se,data:Je,requestUrls:Mt.requestUrls,timing:Xe,remoteAddress:se,remotePort:Ae};if(Ue){var Dn="";ae&&typeof ae.getCurrentStatus=="function"&&(Dn=", agent status: "+JSON.stringify(ae.getCurrentStatus())),Ue.message+=", "+Kt.method+" "+_t+" "+le+" (connected: "+He+", keepalive socket: "+Se+Dn+`) -headers: `+JSON.stringify(fn),Ue.data=Je,Ue.path=Kt.path,Ue.status=le,Ue.headers=fn,Ue.res=En}nn(Ue,Je,Mt.streaming?Ze:En),Mt.emitter&&(Ut.url=_t,Ut.socket=Jt&&Jt.connection,Ut.options=Kt,Ut.size=me,Mt.emitter.emit("response",{requestId:It,error:Ue,ctx:Mt.ctx,req:Ut,res:En}))}function $t(Ue){var Je=null;if(Mt.followRedirect&&statuses.redirect[Ue.statusCode]){Mt._followRedirectCount=(Mt._followRedirectCount||0)+1;var Ze=Ue.headers.location;if(!Ze)Je=new Error("Got statusCode "+Ue.statusCode+" but cannot resolve next location from headers"),Je.name="FollowRedirectError";else if(Mt._followRedirectCount>Mt.maxRedirects)Je=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+_t),Je.name="MaxRedirectError";else{var nn=Mt.formatRedirectUrl?Mt.formatRedirectUrl(_t,Ze):dt.resolve(_t,Ze);lt("Request#%d %s: `redirected` from %s to %s",It,Kt.path,_t,nn),Te(),Mt.headers&&Mt.headers.Host&&it.test(Ze)&&(Mt.headers.Host=null);var fn=jt;return jt=null,Ct.requestWithCallback(nn,Mt,fn),{redirect:!0,error:null}}}return{redirect:!1,error:Je}}Mt.gzip&&!Kt.headers["Accept-Encoding"]&&!Kt.headers["accept-encoding"]&&(Kt.headers["Accept-Encoding"]="gzip");function he(Ue,Je,Ze){var nn=Ue.headers["content-encoding"];return Ze(null,Je,nn)}var ye=Mt.writeStream;lt("Request#%d %s %s with headers %j, options.path: %s",It,Yt,_t,Kt.headers,Kt.path),Mt.requestUrls.push(_t);function Qt(Ue){if(Xe&&(Xe.waiting=Date.now()-Xt),lt("Request#%d %s `req response` event emit: status %d, headers: %j",It,_t,Ue.statusCode,Ue.headers),Mt.streaming){var Je=$t(Ue);if(Je.redirect){Ue.resume();return}return Je.error?(Ue.resume(),ue(Je.error,null,Ue)):ue(null,null,Ue)}if(Ue.on("close",function(){lt("Request#%d %s: `res close` event emit, total size %d",It,_t,xe)}),Ue.on("error",function(){lt("Request#%d %s: `res error` event emit, total size %d",It,_t,xe)}),Ue.on("aborted",function(){Ne=!0,lt("Request#%d %s: `res aborted` event emit, total size %d",It,_t,xe)}),ye){var Ze=$t(Ue);if(Ze.redirect){Ue.resume();return}return Ze.error?(Ue.resume(),ye.end(),ue(Ze.error,null,Ue)):(Mt.consumeWriteStream===!1?Ue.on("end",ue.bind(null,null,null,Ue)):ye.on("close",function(){lt("Request#%d %s: writeStream close event emitted",It,_t),ue(je||null,null,Ue)}),Ue.pipe(ye))}var nn=[];Ue.on("data",function(fn){lt("Request#%d %s: `res data` event emit, size %d",It,_t,fn.length),xe+=fn.length,nn.push(fn)}),Ue.on("end",function(){var fn=pt.concat(nn,xe);if(lt("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",It,_t,xe,Ue._dumped),je)return ue(je,fn,Ue);var An=$t(Ue);if(An.error)return ue(An.error,fn,Ue);An.redirect||he(Ue,fn,function(En,Dn,ii){if(En)return ue(En,fn,Ue);if(!ii&&Et.indexOf(Mt.dataType)>=0){try{Dn=decodeBodyByCharset(Dn,Ue)}catch(Ti){return lt("decodeBodyByCharset error: %s",Ti),ue(null,Dn,Ue)}if(Mt.dataType==="json")if(xe===0)Dn=null;else{var mi=parseJSON(Dn,ve);mi.error?En=mi.error:Dn=mi.data}}Ne&<("Request#%d %s: Remote socket was terminated before `response.end()` was called",It,_t),ue(En,Dn,Ue)})})}var Wt,Bt;Array.isArray(Mt.timeout)?(Wt=E(Mt.timeout[0]),Bt=E(Mt.timeout[1])):Wt=Bt=E(Mt.timeout),lt("ConnectTimeout: %d, ResponseTimeout: %d",Wt,Bt);function te(){lt("Connect timer ticking, timeout: %d",Wt),pe=setTimeout(function(){pe=null,le===-1&&(le=-2);var Ue="Connect timeout for "+Wt+"ms",Je="ConnectionTimeoutError";Jt.socket||(Je="SocketAssignTimeoutError",Ue+=", working sockets is full"),je=new Error(Ue),je.name=Je,je.requestId=It,lt("ConnectTimeout: Request#%d %s %s: %s, connected: %s",It,_t,je.name,Ue,He),Ie()},Wt)}function ge(){lt("Response timer ticking, timeout: %d",Bt),_e=setTimeout(function(){_e=null;var Ue="Response timeout for "+Bt+"ms",Je="ResponseTimeoutError";je=new Error(Ue),je.name=Je,je.requestId=It,lt("ResponseTimeout: Request#%d %s %s: %s, connected: %s",It,_t,je.name,Ue,He),Ie()},Bt)}var Jt;Kt.mode=Mt.mode?Mt.mode:"";try{Jt=ne.request(Kt,Qt)}catch(Ue){return ue(Ue)}typeof window=="undefined"?te():Jt.on("requestTimeout",function(){le===-1&&(le=-2);var Ue="Connect timeout for "+Wt+"ms",Je="ConnectionTimeoutError";je=new Error(Ue),je.name=Je,je.requestId=It,Ie()});function Ie(){lt("Request#%d %s abort, connected: %s",It,_t,He),Jt.socket||(je.noSocket=!0,ue(je)),Jt.abort()}return Xe&&Jt.on("finish",function(){Xe.requestSent=Date.now()-Xt}),Jt.once("socket",function(Ue){Xe&&(Xe.queuing=Date.now()-Xt);var Je=Ue.readyState;if(Je==="opening"){Ue.once("lookup",function(Ze,nn,fn){lt("Request#%d %s lookup: %s, %s, %s",It,_t,Ze,nn,fn),Xe&&(Xe.dnslookup=Date.now()-Xt),nn&&(se=nn)}),Ue.once("connect",function(){Xe&&(Xe.connected=Date.now()-Xt),Be(),ge(),lt("Request#%d %s new socket connected",It,_t),He=!0,se||(se=Ue.remoteAddress),Ae=Ue.remotePort});return}lt("Request#%d %s reuse socket connected, readyState: %s",It,_t,Je),He=!0,Se=!0,se||(se=Ue.remoteAddress),Ae=Ue.remotePort,Be(),ge()}),Jt.on("error",function(Ue){(Ue.name==="Error"||Ue.name==="TypeError")&&(Ue.name=He?"ResponseError":"RequestError"),Ue.message+=' (req "error")',lt("Request#%d %s `req error` event emit, %s: %s",It,_t,Ue.name,Ue.message),ue(je||Ue)}),ye&&ye.once("error",function(Ue){Ue.message+=' (writeStream "error")',je=Ue,lt("Request#%d %s `writeStream error` event emit, %s: %s",It,_t,Ue.name,Ue.message),Ie()}),Mt.stream?(Mt.stream.pipe(Jt),Mt.stream.once("error",function(Ue){Ue.message+=' (stream "error")',je=Ue,lt("Request#%d %s `readStream error` event emit, %s: %s",It,_t,Ue.name,Ue.message),Ie()})):Jt.end(we),Jt.requestId=It,Jt}}).call(this)}).call(this,rt("_process"),rt("buffer").Buffer)},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,_process:467,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.split.js":307,"core-js/modules/es.string.trim.js":308,debug:465,http:468,https:355,"humanize-ms":356,url:472,util:419}]},{},[1])(1)})})(window)},77578:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return Ft}});const Ft=ie=>ie?typeof ie=="function"?ie():ie:null},14478:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return Lt}});var Ft=Rt(96512),ie=Rt(92310),rt=Rt.n(ie),kt=Rt(10228),Ct=Rt(18929),St=Rt(2738),pt=Rt(59301),vt=Rt(92343),yt=Rt(36355),xt=Rt(60324),dt=Rt(92806),ft=Rt(77578),ct=Rt(3113),lt=Rt(67797),E=Rt(9763),z=Rt(31724),ot=Rt(39722),it=Rt(83116);const at=It=>{const{componentCls:Ut,iconCls:Xt,antCls:Gt,zIndexPopup:Yt,colorText:Ht,colorWarning:ne,marginXXS:ae,marginXS:ve,fontSize:Kt,fontWeightStrong:re,colorTextHeading:we}=It;return{[Ut]:{zIndex:Yt,[`&${Gt}-popover`]:{fontSize:Kt},[`${Ut}-message`]:{marginBottom:ve,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${Ut}-message-icon ${Xt}`]:{color:ne,fontSize:Kt,lineHeight:1,marginInlineEnd:ve},[`${Ut}-title`]:{fontWeight:re,color:we,"&:only-child":{fontWeight:"normal"}},[`${Ut}-description`]:{marginTop:ae,color:Ht}},[`${Ut}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:ve}}}}};var ut=(0,it.Z)("Popconfirm",It=>at(It),It=>{const{zIndexPopupBase:Ut}=It;return{zIndexPopup:Ut+60}},{resetStyle:!1}),wt=function(It,Ut){var Xt={};for(var Gt in It)Object.prototype.hasOwnProperty.call(It,Gt)&&Ut.indexOf(Gt)<0&&(Xt[Gt]=It[Gt]);if(It!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,Gt=Object.getOwnPropertySymbols(It);Yt{const{prefixCls:Ut,okButtonProps:Xt,cancelButtonProps:Gt,title:Yt,description:Ht,cancelText:ne,okText:ae,okType:ve="primary",icon:Kt=pt.createElement(Ft.Z,null),showCancel:re=!0,close:we,onConfirm:Me,onCancel:ke,onPopupClick:me}=It,{getPrefixCls:fe}=pt.useContext(yt.E_),[pe]=(0,E.Z)("Popconfirm",z.Z.Popconfirm),_e=(0,ft.Z)(Yt),je=(0,ft.Z)(Ht);return pt.createElement("div",{className:`${Ut}-inner-content`,onClick:me},pt.createElement("div",{className:`${Ut}-message`},Kt&&pt.createElement("span",{className:`${Ut}-message-icon`},Kt),pt.createElement("div",{className:`${Ut}-message-text`},_e&&pt.createElement("div",{className:rt()(`${Ut}-title`)},_e),je&&pt.createElement("div",{className:`${Ut}-description`},je))),pt.createElement("div",{className:`${Ut}-buttons`},re&&pt.createElement(ct.ZP,Object.assign({onClick:ke,size:"small"},Gt),ne!=null?ne:pe==null?void 0:pe.cancelText),pt.createElement(dt.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,lt.n)(ve)),Xt),actionFn:Me,close:we,prefixCls:fe("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},ae!=null?ae:pe==null?void 0:pe.okText)))};var _t=It=>{const{prefixCls:Ut,placement:Xt,className:Gt,style:Yt}=It,Ht=wt(It,["prefixCls","placement","className","style"]),{getPrefixCls:ne}=pt.useContext(yt.E_),ae=ne("popconfirm",Ut),[ve]=ut(ae);return ve(pt.createElement(ot.ZP,{placement:Xt,className:rt()(ae,Gt),style:Yt,content:pt.createElement(Et,Object.assign({prefixCls:ae},Ht))}))},Mt=function(It,Ut){var Xt={};for(var Gt in It)Object.prototype.hasOwnProperty.call(It,Gt)&&Ut.indexOf(Gt)<0&&(Xt[Gt]=It[Gt]);if(It!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,Gt=Object.getOwnPropertySymbols(It);Yt{const{prefixCls:Xt,placement:Gt="top",trigger:Yt="click",okType:Ht="primary",icon:ne=pt.createElement(Ft.Z,null),children:ae,overlayClassName:ve,onOpenChange:Kt,onVisibleChange:re}=It,we=Mt(It,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:Me}=pt.useContext(yt.E_),[ke,me]=(0,Ct.Z)(!1,{value:It.open,defaultValue:It.defaultOpen}),fe=(se,Ae)=>{me(se,!0),re==null||re(se),Kt==null||Kt(se,Ae)},pe=se=>{fe(!1,se)},_e=se=>{var Ae;return(Ae=It.onConfirm)===null||Ae===void 0?void 0:Ae.call(void 0,se)},je=se=>{var Ae;fe(!1,se),(Ae=It.onCancel)===null||Ae===void 0||Ae.call(void 0,se)},He=se=>{se.keyCode===kt.Z.ESC&&ke&&fe(!1,se)},Se=se=>{const{disabled:Ae=!1}=It;Ae||fe(se)},xe=Me("popconfirm",Xt),le=rt()(xe,ve),[Ne]=ut(xe);return Ne(pt.createElement(xt.Z,Object.assign({},(0,St.Z)(we,["title"]),{trigger:Yt,placement:Gt,onOpenChange:Se,open:ke,ref:Ut,overlayClassName:le,content:pt.createElement(Et,Object.assign({okType:Ht,icon:ne},It,{prefixCls:xe,close:pe,onConfirm:_e,onCancel:je})),"data-popover-inject":!0}),(0,vt.Tm)(ae,{onKeyDown:se=>{var Ae,Xe;pt.isValidElement(ae)&&((Xe=ae==null?void 0:(Ae=ae.props).onKeyDown)===null||Xe===void 0||Xe.call(Ae,se)),He(se)}})))});jt._InternalPanelDoNotUseOrYouWillBeFired=_t;var Lt=jt},39722:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{t5:function(){return xt}});var Ft=Rt(92310),ie=Rt.n(Ft),rt=Rt(55477),kt=Rt(59301),Ct=Rt(36355),St=Rt(77578),pt=Rt(17356),vt=function(ft,ct){var lt={};for(var E in ft)Object.prototype.hasOwnProperty.call(ft,E)&&ct.indexOf(E)<0&&(lt[E]=ft[E]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,E=Object.getOwnPropertySymbols(ft);z{if(!(!ct&&!lt))return kt.createElement(kt.Fragment,null,ct&&kt.createElement("div",{className:`${ft}-title`},(0,St.Z)(ct)),kt.createElement("div",{className:`${ft}-inner-content`},(0,St.Z)(lt)))},xt=ft=>{const{hashId:ct,prefixCls:lt,className:E,style:z,placement:ot="top",title:it,content:at,children:ut}=ft;return kt.createElement("div",{className:ie()(ct,lt,`${lt}-pure`,`${lt}-placement-${ot}`,E),style:z},kt.createElement("div",{className:`${lt}-arrow`}),kt.createElement(rt.G,Object.assign({},ft,{className:ct,prefixCls:lt}),ut||yt(lt,it,at)))},dt=ft=>{const{prefixCls:ct}=ft,lt=vt(ft,["prefixCls"]),{getPrefixCls:E}=kt.useContext(Ct.E_),z=E("popover",ct),[ot,it]=(0,pt.Z)(z);return ot(kt.createElement(xt,Object.assign({},lt,{prefixCls:z,hashId:it})))};Ke.ZP=dt},60324:function(tn,Ke,Rt){"use strict";var Ft=Rt(92310),ie=Rt.n(Ft),rt=Rt(59301),kt=Rt(77578),Ct=Rt(62892),St=Rt(36355),pt=Rt(6848),vt=Rt(39722),yt=Rt(17356),xt=function(ct,lt){var E={};for(var z in ct)Object.prototype.hasOwnProperty.call(ct,z)&<.indexOf(z)<0&&(E[z]=ct[z]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,z=Object.getOwnPropertySymbols(ct);ot{let{title:lt,content:E,prefixCls:z}=ct;return rt.createElement(rt.Fragment,null,lt&&rt.createElement("div",{className:`${z}-title`},(0,kt.Z)(lt)),rt.createElement("div",{className:`${z}-inner-content`},(0,kt.Z)(E)))},ft=rt.forwardRef((ct,lt)=>{const{prefixCls:E,title:z,content:ot,overlayClassName:it,placement:at="top",trigger:ut="hover",mouseEnterDelay:wt=.1,mouseLeaveDelay:Et=.1,overlayStyle:At={}}=ct,_t=xt(ct,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:Mt}=rt.useContext(St.E_),jt=Mt("popover",E),[Lt,It]=(0,yt.Z)(jt),Ut=Mt(),Xt=ie()(it,It);return Lt(rt.createElement(pt.Z,Object.assign({placement:at,trigger:ut,mouseEnterDelay:wt,mouseLeaveDelay:Et,overlayStyle:At},_t,{prefixCls:jt,overlayClassName:Xt,ref:lt,overlay:z||ot?rt.createElement(dt,{prefixCls:jt,title:z,content:ot}):null,transitionName:(0,Ct.m)(Ut,"zoom-big",_t.transitionName),"data-popover-inject":!0})))});ft._InternalPanelDoNotUseOrYouWillBeFired=vt.ZP,Ke.Z=ft},17356:function(tn,Ke,Rt){"use strict";var Ft=Rt(17313),ie=Rt(29878),rt=Rt(19447),kt=Rt(33166),Ct=Rt(83116),St=Rt(37613);const pt=xt=>{const{componentCls:dt,popoverColor:ft,minWidth:ct,fontWeightStrong:lt,popoverPadding:E,boxShadowSecondary:z,colorTextHeading:ot,borderRadiusLG:it,zIndexPopup:at,marginXS:ut,colorBgElevated:wt,popoverBg:Et}=xt;return[{[dt]:Object.assign(Object.assign({},(0,Ft.Wf)(xt)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:at,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":wt,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${dt}-content`]:{position:"relative"},[`${dt}-inner`]:{backgroundColor:Et,backgroundClip:"padding-box",borderRadius:it,boxShadow:z,padding:E},[`${dt}-title`]:{minWidth:ct,marginBottom:ut,color:ot,fontWeight:lt},[`${dt}-inner-content`]:{color:ft}})},(0,rt.ZP)(xt,{colorBg:"var(--antd-arrow-background-color)"}),{[`${dt}-pure`]:{position:"relative",maxWidth:"none",margin:xt.sizePopupArrow,display:"inline-block",[`${dt}-content`]:{display:"inline-block"}}}]},vt=xt=>{const{componentCls:dt}=xt;return{[dt]:kt.i.map(ft=>{const ct=xt[`${ft}6`];return{[`&${dt}-${ft}`]:{"--antd-arrow-background-color":ct,[`${dt}-inner`]:{backgroundColor:ct},[`${dt}-arrow`]:{background:"transparent"}}}})}},yt=xt=>{const{componentCls:dt,lineWidth:ft,lineType:ct,colorSplit:lt,paddingSM:E,controlHeight:z,fontSize:ot,lineHeight:it,padding:at}=xt,ut=z-Math.round(ot*it),wt=ut/2,Et=ut/2-ft,At=at;return{[dt]:{[`${dt}-inner`]:{padding:0},[`${dt}-title`]:{margin:0,padding:`${wt}px ${At}px ${Et}px`,borderBottom:`${ft}px ${ct} ${lt}`},[`${dt}-inner-content`]:{padding:`${E}px ${At}px`}}}};Ke.Z=(0,Ct.Z)("Popover",xt=>{const{colorBgElevated:dt,colorText:ft,wireframe:ct}=xt,lt=(0,St.TS)(xt,{popoverPadding:12,popoverBg:dt,popoverColor:ft});return[pt(lt),vt(lt),ct&&yt(lt),(0,ie._y)(lt,"zoom-big")]},xt=>({width:177,minWidth:177,zIndexPopup:xt.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},61621:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return Xe}});var Ft=Rt(92310),ie=Rt.n(Ft),rt=Rt(59301),kt=Rt(36355),Ct=Rt(2738),pt=Be=>{const{prefixCls:Te,className:ue,style:$t,size:he,shape:ye}=Be,Qt=ie()({[`${Te}-lg`]:he==="large",[`${Te}-sm`]:he==="small"}),Wt=ie()({[`${Te}-circle`]:ye==="circle",[`${Te}-square`]:ye==="square",[`${Te}-round`]:ye==="round"}),Bt=rt.useMemo(()=>typeof he=="number"?{width:he,height:he,lineHeight:`${he}px`}:{},[he]);return rt.createElement("span",{className:ie()(Te,Qt,Wt,ue),style:Object.assign(Object.assign({},Bt),$t)})},vt=Rt(93083),yt=Rt(83116),xt=Rt(37613);const dt=new vt.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),ft=Be=>({height:Be,lineHeight:`${Be}px`}),ct=Be=>Object.assign({width:Be},ft(Be)),lt=Be=>({background:Be.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:dt,animationDuration:Be.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),E=Be=>Object.assign({width:Be*5,minWidth:Be*5},ft(Be)),z=Be=>{const{skeletonAvatarCls:Te,gradientFromColor:ue,controlHeight:$t,controlHeightLG:he,controlHeightSM:ye}=Be;return{[`${Te}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ue},ct($t)),[`${Te}${Te}-circle`]:{borderRadius:"50%"},[`${Te}${Te}-lg`]:Object.assign({},ct(he)),[`${Te}${Te}-sm`]:Object.assign({},ct(ye))}},ot=Be=>{const{controlHeight:Te,borderRadiusSM:ue,skeletonInputCls:$t,controlHeightLG:he,controlHeightSM:ye,gradientFromColor:Qt}=Be;return{[`${$t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Qt,borderRadius:ue},E(Te)),[`${$t}-lg`]:Object.assign({},E(he)),[`${$t}-sm`]:Object.assign({},E(ye))}},it=Be=>Object.assign({width:Be},ft(Be)),at=Be=>{const{skeletonImageCls:Te,imageSizeBase:ue,gradientFromColor:$t,borderRadiusSM:he}=Be;return{[`${Te}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:$t,borderRadius:he},it(ue*2)),{[`${Te}-path`]:{fill:"#bfbfbf"},[`${Te}-svg`]:Object.assign(Object.assign({},it(ue)),{maxWidth:ue*4,maxHeight:ue*4}),[`${Te}-svg${Te}-svg-circle`]:{borderRadius:"50%"}}),[`${Te}${Te}-circle`]:{borderRadius:"50%"}}},ut=(Be,Te,ue)=>{const{skeletonButtonCls:$t}=Be;return{[`${ue}${$t}-circle`]:{width:Te,minWidth:Te,borderRadius:"50%"},[`${ue}${$t}-round`]:{borderRadius:Te}}},wt=Be=>Object.assign({width:Be*2,minWidth:Be*2},ft(Be)),Et=Be=>{const{borderRadiusSM:Te,skeletonButtonCls:ue,controlHeight:$t,controlHeightLG:he,controlHeightSM:ye,gradientFromColor:Qt}=Be;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${ue}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Qt,borderRadius:Te,width:$t*2,minWidth:$t*2},wt($t))},ut(Be,$t,ue)),{[`${ue}-lg`]:Object.assign({},wt(he))}),ut(Be,he,`${ue}-lg`)),{[`${ue}-sm`]:Object.assign({},wt(ye))}),ut(Be,ye,`${ue}-sm`))},At=Be=>{const{componentCls:Te,skeletonAvatarCls:ue,skeletonTitleCls:$t,skeletonParagraphCls:he,skeletonButtonCls:ye,skeletonInputCls:Qt,skeletonImageCls:Wt,controlHeight:Bt,controlHeightLG:te,controlHeightSM:ge,gradientFromColor:Jt,padding:Ie,marginSM:Ue,borderRadius:Je,titleHeight:Ze,blockRadius:nn,paragraphLiHeight:fn,controlHeightXS:An,paragraphMarginTop:En}=Be;return{[`${Te}`]:{display:"table",width:"100%",[`${Te}-header`]:{display:"table-cell",paddingInlineEnd:Ie,verticalAlign:"top",[`${ue}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Jt},ct(Bt)),[`${ue}-circle`]:{borderRadius:"50%"},[`${ue}-lg`]:Object.assign({},ct(te)),[`${ue}-sm`]:Object.assign({},ct(ge))},[`${Te}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${$t}`]:{width:"100%",height:Ze,background:Jt,borderRadius:nn,[`+ ${he}`]:{marginBlockStart:ge}},[`${he}`]:{padding:0,"> li":{width:"100%",height:fn,listStyle:"none",background:Jt,borderRadius:nn,"+ li":{marginBlockStart:An}}},[`${he}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${Te}-content`]:{[`${$t}, ${he} > li`]:{borderRadius:Je}}},[`${Te}-with-avatar ${Te}-content`]:{[`${$t}`]:{marginBlockStart:Ue,[`+ ${he}`]:{marginBlockStart:En}}},[`${Te}${Te}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Et(Be)),z(Be)),ot(Be)),at(Be)),[`${Te}${Te}-block`]:{width:"100%",[`${ye}`]:{width:"100%"},[`${Qt}`]:{width:"100%"}},[`${Te}${Te}-active`]:{[` +`))):Ne=de.stylize("[Circular]","special")),Ut(le)){if(xe&&Se.match(/^\d+$/))return Ne;le=JSON.stringify(""+Se),le.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(le=le.slice(1,-1),le=de.stylize(le,"name")):(le=le.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),le=de.stylize(le,"string"))}return le+": "+Ne}function wt(de,_e,Oe){var He=0,Se=de.reduce(function(xe,le){return He++,le.indexOf(` +`)>=0&&He++,xe+le.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Se>60?Oe[0]+(_e===""?"":_e+` + `)+" "+de.join(`, + `)+" "+Oe[1]:Oe[0]+_e+" "+de.join(", ")+" "+Oe[1]}Ct.types=rt("./support/types");function Et(de){return Array.isArray(de)}Ct.isArray=Et;function At(de){return typeof de=="boolean"}Ct.isBoolean=At;function _t(de){return de===null}Ct.isNull=_t;function Mt(de){return de==null}Ct.isNullOrUndefined=Mt;function jt(de){return typeof de=="number"}Ct.isNumber=jt;function Lt(de){return typeof de=="string"}Ct.isString=Lt;function It(de){return typeof de=="symbol"}Ct.isSymbol=It;function Ut(de){return de===void 0}Ct.isUndefined=Ut;function Xt(de){return Gt(de)&&ve(de)==="[object RegExp]"}Ct.isRegExp=Xt,Ct.types.isRegExp=Xt;function Gt(de){return typeof de=="object"&&de!==null}Ct.isObject=Gt;function Vt(de){return Gt(de)&&ve(de)==="[object Date]"}Ct.isDate=Vt,Ct.types.isDate=Vt;function Ht(de){return Gt(de)&&(ve(de)==="[object Error]"||de instanceof Error)}Ct.isError=Ht,Ct.types.isNativeError=Ht;function ne(de){return typeof de=="function"}Ct.isFunction=ne;function se(de){return de===null||typeof de=="boolean"||typeof de=="number"||typeof de=="string"||typeof de=="symbol"||typeof de=="undefined"}Ct.isPrimitive=se,Ct.isBuffer=rt("./support/isBuffer");function ve(de){return Object.prototype.toString.call(de)}function Kt(de){return de<10?"0"+de.toString(10):de.toString(10)}var re=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function we(){var de=new Date,_e=[Kt(de.getHours()),Kt(de.getMinutes()),Kt(de.getSeconds())].join(":");return[de.getDate(),re[de.getMonth()],_e].join(" ")}Ct.log=function(){console.log("%s - %s",we(),Ct.format.apply(Ct,arguments))},Ct.inherits=rt("inherits"),Ct._extend=function(de,_e){if(!_e||!Gt(_e))return de;for(var Oe=Object.keys(_e),He=Oe.length;He--;)de[Oe[He]]=_e[Oe[He]];return de};function ke(de,_e){return Object.prototype.hasOwnProperty.call(de,_e)}var Me=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;Ct.promisify=function(_e){if(typeof _e!="function")throw new TypeError('The "original" argument must be of type Function');if(Me&&_e[Me]){var Oe=_e[Me];if(typeof Oe!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Oe,Me,{value:Oe,enumerable:!1,writable:!1,configurable:!0}),Oe}function Oe(){for(var He,Se,xe=new Promise(function(ae,Ae){He=ae,Se=Ae}),le=[],Ne=0;Ne-1?_t:_t!=="Object"?!1:wt(At)}return dt?ut(At):null}}).call(this)}).call(this,typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"available-typed-arrays":86,"call-bind":93,"call-bind/callBound":92,"for-each":345,gopd:349,"has-tostringtag/shams":353}],421:[function(rt,kt,Ct){(function(){"use strict";Ct.stripBOM=function(St){return St[0]==="\uFEFF"?St.substring(1):St}}).call(this)},{}],422:[function(rt,kt,Ct){(function(){"use strict";var St,pt,vt,yt,xt,dt={}.hasOwnProperty;St=rt("xmlbuilder"),pt=rt("./defaults").defaults,yt=function(ft){return typeof ft=="string"&&(ft.indexOf("&")>=0||ft.indexOf(">")>=0||ft.indexOf("<")>=0)},xt=function(ft){return""},vt=function(ft){return ft.replace("]]>","]]]]>")},Ct.Builder=function(){function ft(ct){var lt,E,z;this.options={},E=pt["0.2"];for(lt in E)dt.call(E,lt)&&(z=E[lt],this.options[lt]=z);for(lt in ct)dt.call(ct,lt)&&(z=ct[lt],this.options[lt]=z)}return ft.prototype.buildObject=function(ct){var lt,E,z,ot,it;return lt=this.options.attrkey,E=this.options.charkey,Object.keys(ct).length===1&&this.options.rootName===pt["0.2"].rootName?(it=Object.keys(ct)[0],ct=ct[it]):it=this.options.rootName,z=function(at){return function(ut,wt){var Et,At,_t,Mt,jt,Lt;if(typeof wt!="object")at.options.cdata&&yt(wt)?ut.raw(xt(wt)):ut.txt(wt);else if(Array.isArray(wt)){for(Mt in wt)if(dt.call(wt,Mt)){At=wt[Mt];for(jt in At)_t=At[jt],ut=z(ut.ele(jt),_t).up()}}else for(jt in wt)if(dt.call(wt,jt))if(At=wt[jt],jt===lt){if(typeof At=="object")for(Et in At)Lt=At[Et],ut=ut.att(Et,Lt)}else if(jt===E)at.options.cdata&&yt(At)?ut=ut.raw(xt(At)):ut=ut.txt(At);else if(Array.isArray(At))for(Mt in At)dt.call(At,Mt)&&(_t=At[Mt],typeof _t=="string"?at.options.cdata&&yt(_t)?ut=ut.ele(jt).raw(xt(_t)).up():ut=ut.ele(jt,_t).up():ut=z(ut.ele(jt),_t).up());else typeof At=="object"?ut=z(ut.ele(jt),At).up():typeof At=="string"&&at.options.cdata&&yt(At)?ut=ut.ele(jt).raw(xt(At)).up():(At==null&&(At=""),ut=ut.ele(jt,At.toString()).up());return ut}}(this),ot=St.create(it,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),z(ot,ct).end(this.options.renderOpts)},ft}()}).call(this)},{"./defaults":423,xmlbuilder:459}],423:[function(rt,kt,Ct){(function(){Ct.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:` +`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},{}],424:[function(rt,kt,Ct){(function(){"use strict";var St,pt,vt,yt,xt,dt,ft,ct,lt,E=function(it,at){return function(){return it.apply(at,arguments)}},z=function(it,at){for(var ut in at)ot.call(at,ut)&&(it[ut]=at[ut]);function wt(){this.constructor=it}return wt.prototype=at.prototype,it.prototype=new wt,it.__super__=at.prototype,it},ot={}.hasOwnProperty;ct=rt("sax"),yt=rt("events"),St=rt("./bom"),ft=rt("./processors"),lt=rt("timers").setImmediate,pt=rt("./defaults").defaults,xt=function(it){return typeof it=="object"&&it!=null&&Object.keys(it).length===0},dt=function(it,at,ut){var wt,Et,At;for(wt=0,Et=it.length;wt0&&(It[_t.options.childkey]=Xt),Xt=It;else if(Ht){Ht[_t.options.childkey]=Ht[_t.options.childkey]||[],Gt={};for(Lt in Xt)ot.call(Xt,Lt)&&vt(Gt,Lt,Xt[Lt]);Ht[_t.options.childkey].push(Gt),delete Xt["#name"],Object.keys(Xt).length===1&&wt in Xt&&!_t.EXPLICIT_CHARKEY&&(Xt=Xt[wt])}}return At.length>0?_t.assignOrPush(Ht,Ut,Xt):(_t.options.explicitRoot&&(Vt=Xt,Xt={},vt(Xt,Ut,Vt)),_t.resultObject=Xt,_t.saxParser.ended=!0,_t.emit("end",_t.resultObject))}}(this),Et=function(_t){return function(Mt){var jt,Lt;if(Lt=At[At.length-1],Lt)return Lt[wt]+=Mt,_t.options.explicitChildren&&_t.options.preserveChildrenOrder&&_t.options.charsAsChildren&&(_t.options.includeWhiteChars||Mt.replace(/\\n/g,"").trim()!=="")&&(Lt[_t.options.childkey]=Lt[_t.options.childkey]||[],jt={"#name":"__text__"},jt[wt]=Mt,_t.options.normalize&&(jt[wt]=jt[wt].replace(/\s{2,}/g," ").trim()),Lt[_t.options.childkey].push(jt)),Lt}}(this),this.saxParser.ontext=Et,this.saxParser.oncdata=function(_t){return function(Mt){var jt;if(jt=Et(Mt),jt)return jt.cdata=!0}}(this)},at.prototype.parseString=function(ut,wt){var Et;wt!=null&&typeof wt=="function"&&(this.on("end",function(At){return this.reset(),wt(null,At)}),this.on("error",function(At){return this.reset(),wt(At)}));try{return ut=ut.toString(),ut.trim()===""?(this.emit("end",null),!0):(ut=St.stripBOM(ut),this.options.async?(this.remaining=ut,lt(this.processAsync),this.saxParser):this.saxParser.write(ut).close())}catch(At){if(Et=At,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw Et}else return this.emit("error",Et),this.saxParser.errThrown=!0}},at.prototype.parseStringPromise=function(ut){return new Promise(function(wt){return function(Et,At){return wt.parseString(ut,function(_t,Mt){return _t?At(_t):Et(Mt)})}}(this))},at}(yt),Ct.parseString=function(it,at,ut){var wt,Et,At;return ut!=null?(typeof ut=="function"&&(wt=ut),typeof at=="object"&&(Et=at)):(typeof at=="function"&&(wt=at),Et={}),At=new Ct.Parser(Et),At.parseString(it,wt)},Ct.parseStringPromise=function(it,at){var ut,wt;return typeof at=="object"&&(ut=at),wt=new Ct.Parser(ut),wt.parseStringPromise(it)}}).call(this)},{"./bom":421,"./defaults":423,"./processors":425,events:344,sax:397,timers:414}],425:[function(rt,kt,Ct){(function(){"use strict";var St;St=new RegExp(/(?!xmlns)^.*:/),Ct.normalize=function(pt){return pt.toLowerCase()},Ct.firstCharLowerCase=function(pt){return pt.charAt(0).toLowerCase()+pt.slice(1)},Ct.stripPrefix=function(pt){return pt.replace(St,"")},Ct.parseNumbers=function(pt){return isNaN(pt)||(pt=pt%1===0?parseInt(pt,10):parseFloat(pt)),pt},Ct.parseBooleans=function(pt){return/^(?:true|false)$/i.test(pt)&&(pt=pt.toLowerCase()==="true"),pt}}).call(this)},{}],426:[function(rt,kt,Ct){(function(){"use strict";var St,pt,vt,yt,xt=function(ft,ct){for(var lt in ct)dt.call(ct,lt)&&(ft[lt]=ct[lt]);function E(){this.constructor=ft}return E.prototype=ct.prototype,ft.prototype=new E,ft.__super__=ct.prototype,ft},dt={}.hasOwnProperty;pt=rt("./defaults"),St=rt("./builder"),vt=rt("./parser"),yt=rt("./processors"),Ct.defaults=pt.defaults,Ct.processors=yt,Ct.ValidationError=function(ft){xt(ct,ft);function ct(lt){this.message=lt}return ct}(Error),Ct.Builder=St.Builder,Ct.Parser=vt.Parser,Ct.parseString=vt.parseString,Ct.parseStringPromise=vt.parseStringPromise}).call(this)},{"./builder":422,"./defaults":423,"./parser":424,"./processors":425}],427:[function(rt,kt,Ct){(function(){kt.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],428:[function(rt,kt,Ct){(function(){kt.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},{}],429:[function(rt,kt,Ct){(function(){var St,pt,vt,yt,xt,dt,ft,ct=[].slice,lt={}.hasOwnProperty;St=function(){var E,z,ot,it,at,ut;if(ut=arguments[0],at=2<=arguments.length?ct.call(arguments,1):[],xt(Object.assign))Object.assign.apply(null,arguments);else for(E=0,ot=at.length;E":"attribute: {"+xt+"}, parent: <"+this.parent.name+">"},yt.prototype.isEqualNode=function(xt){return!(xt.namespaceURI!==this.namespaceURI||xt.prefix!==this.prefix||xt.localName!==this.localName||xt.value!==this.value)},yt}()}).call(this)},{"./NodeType":428,"./XMLNode":450}],432:[function(rt,kt,Ct){(function(){var St,pt,vt,yt=function(dt,ft){for(var ct in ft)xt.call(ft,ct)&&(dt[ct]=ft[ct]);function lt(){this.constructor=dt}return lt.prototype=ft.prototype,dt.prototype=new lt,dt.__super__=ft.prototype,dt},xt={}.hasOwnProperty;St=rt("./NodeType"),vt=rt("./XMLCharacterData"),kt.exports=pt=function(dt){yt(ft,dt);function ft(ct,lt){if(ft.__super__.constructor.call(this,ct),lt==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=St.CData,this.value=this.stringify.cdata(lt)}return ft.prototype.clone=function(){return Object.create(this)},ft.prototype.toString=function(ct){return this.options.writer.cdata(this,this.options.writer.filterOptions(ct))},ft}(vt)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],433:[function(rt,kt,Ct){(function(){var St,pt,vt=function(xt,dt){for(var ft in dt)yt.call(dt,ft)&&(xt[ft]=dt[ft]);function ct(){this.constructor=xt}return ct.prototype=dt.prototype,xt.prototype=new ct,xt.__super__=dt.prototype,xt},yt={}.hasOwnProperty;pt=rt("./XMLNode"),kt.exports=St=function(xt){vt(dt,xt);function dt(ft){dt.__super__.constructor.call(this,ft),this.value=""}return Object.defineProperty(dt.prototype,"data",{get:function(){return this.value},set:function(ft){return this.value=ft||""}}),Object.defineProperty(dt.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(dt.prototype,"textContent",{get:function(){return this.value},set:function(ft){return this.value=ft||""}}),dt.prototype.clone=function(){return Object.create(this)},dt.prototype.substringData=function(ft,ct){throw new Error("This DOM method is not implemented."+this.debugInfo())},dt.prototype.appendData=function(ft){throw new Error("This DOM method is not implemented."+this.debugInfo())},dt.prototype.insertData=function(ft,ct){throw new Error("This DOM method is not implemented."+this.debugInfo())},dt.prototype.deleteData=function(ft,ct){throw new Error("This DOM method is not implemented."+this.debugInfo())},dt.prototype.replaceData=function(ft,ct,lt){throw new Error("This DOM method is not implemented."+this.debugInfo())},dt.prototype.isEqualNode=function(ft){return!(!dt.__super__.isEqualNode.apply(this,arguments).isEqualNode(ft)||ft.data!==this.data)},dt}(pt)}).call(this)},{"./XMLNode":450}],434:[function(rt,kt,Ct){(function(){var St,pt,vt,yt=function(dt,ft){for(var ct in ft)xt.call(ft,ct)&&(dt[ct]=ft[ct]);function lt(){this.constructor=dt}return lt.prototype=ft.prototype,dt.prototype=new lt,dt.__super__=ft.prototype,dt},xt={}.hasOwnProperty;St=rt("./NodeType"),pt=rt("./XMLCharacterData"),kt.exports=vt=function(dt){yt(ft,dt);function ft(ct,lt){if(ft.__super__.constructor.call(this,ct),lt==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=St.Comment,this.value=this.stringify.comment(lt)}return ft.prototype.clone=function(){return Object.create(this)},ft.prototype.toString=function(ct){return this.options.writer.comment(this,this.options.writer.filterOptions(ct))},ft}(pt)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],435:[function(rt,kt,Ct){(function(){var St,pt,vt;pt=rt("./XMLDOMErrorHandler"),vt=rt("./XMLDOMStringList"),kt.exports=St=function(){function yt(){var xt;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new pt,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=xt=Object.create(this.defaultParams)}return Object.defineProperty(yt.prototype,"parameterNames",{get:function(){return new vt(Object.keys(this.defaultParams))}}),yt.prototype.getParameter=function(xt){return this.params.hasOwnProperty(xt)?this.params[xt]:null},yt.prototype.canSetParameter=function(xt,dt){return!0},yt.prototype.setParameter=function(xt,dt){return dt!=null?this.params[xt]=dt:delete this.params[xt]},yt}()}).call(this)},{"./XMLDOMErrorHandler":436,"./XMLDOMStringList":438}],436:[function(rt,kt,Ct){(function(){var St;kt.exports=St=function(){function pt(){}return pt.prototype.handleError=function(vt){throw new Error(vt)},pt}()}).call(this)},{}],437:[function(rt,kt,Ct){(function(){var St;kt.exports=St=function(){function pt(){}return pt.prototype.hasFeature=function(vt,yt){return!0},pt.prototype.createDocumentType=function(vt,yt,xt){throw new Error("This DOM method is not implemented.")},pt.prototype.createDocument=function(vt,yt,xt){throw new Error("This DOM method is not implemented.")},pt.prototype.createHTMLDocument=function(vt){throw new Error("This DOM method is not implemented.")},pt.prototype.getFeature=function(vt,yt){throw new Error("This DOM method is not implemented.")},pt}()}).call(this)},{}],438:[function(rt,kt,Ct){(function(){var St;kt.exports=St=function(){function pt(vt){this.arr=vt||[]}return Object.defineProperty(pt.prototype,"length",{get:function(){return this.arr.length}}),pt.prototype.item=function(vt){return this.arr[vt]||null},pt.prototype.contains=function(vt){return this.arr.indexOf(vt)!==-1},pt}()}).call(this)},{}],439:[function(rt,kt,Ct){(function(){var St,pt,vt,yt=function(dt,ft){for(var ct in ft)xt.call(ft,ct)&&(dt[ct]=ft[ct]);function lt(){this.constructor=dt}return lt.prototype=ft.prototype,dt.prototype=new lt,dt.__super__=ft.prototype,dt},xt={}.hasOwnProperty;vt=rt("./XMLNode"),St=rt("./NodeType"),kt.exports=pt=function(dt){yt(ft,dt);function ft(ct,lt,E,z,ot,it){if(ft.__super__.constructor.call(this,ct),lt==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(E==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(lt));if(!z)throw new Error("Missing DTD attribute type. "+this.debugInfo(lt));if(!ot)throw new Error("Missing DTD attribute default. "+this.debugInfo(lt));if(ot.indexOf("#")!==0&&(ot="#"+ot),!ot.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(lt));if(it&&!ot.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(lt));this.elementName=this.stringify.name(lt),this.type=St.AttributeDeclaration,this.attributeName=this.stringify.name(E),this.attributeType=this.stringify.dtdAttType(z),it&&(this.defaultValue=this.stringify.dtdAttDefault(it)),this.defaultValueType=ot}return ft.prototype.toString=function(ct){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(ct))},ft}(vt)}).call(this)},{"./NodeType":428,"./XMLNode":450}],440:[function(rt,kt,Ct){(function(){var St,pt,vt,yt=function(dt,ft){for(var ct in ft)xt.call(ft,ct)&&(dt[ct]=ft[ct]);function lt(){this.constructor=dt}return lt.prototype=ft.prototype,dt.prototype=new lt,dt.__super__=ft.prototype,dt},xt={}.hasOwnProperty;vt=rt("./XMLNode"),St=rt("./NodeType"),kt.exports=pt=function(dt){yt(ft,dt);function ft(ct,lt,E){if(ft.__super__.constructor.call(this,ct),lt==null)throw new Error("Missing DTD element name. "+this.debugInfo());E||(E="(#PCDATA)"),Array.isArray(E)&&(E="("+E.join(",")+")"),this.name=this.stringify.name(lt),this.type=St.ElementDeclaration,this.value=this.stringify.dtdElementValue(E)}return ft.prototype.toString=function(ct){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(ct))},ft}(vt)}).call(this)},{"./NodeType":428,"./XMLNode":450}],441:[function(rt,kt,Ct){(function(){var St,pt,vt,yt,xt=function(ft,ct){for(var lt in ct)dt.call(ct,lt)&&(ft[lt]=ct[lt]);function E(){this.constructor=ft}return E.prototype=ct.prototype,ft.prototype=new E,ft.__super__=ct.prototype,ft},dt={}.hasOwnProperty;yt=rt("./Utility").isObject,vt=rt("./XMLNode"),St=rt("./NodeType"),kt.exports=pt=function(ft){xt(ct,ft);function ct(lt,E,z,ot){if(ct.__super__.constructor.call(this,lt),z==null)throw new Error("Missing DTD entity name. "+this.debugInfo(z));if(ot==null)throw new Error("Missing DTD entity value. "+this.debugInfo(z));if(this.pe=!!E,this.name=this.stringify.name(z),this.type=St.EntityDeclaration,!yt(ot))this.value=this.stringify.dtdEntityValue(ot),this.internal=!0;else{if(!ot.pubID&&!ot.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(z));if(ot.pubID&&!ot.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(z));if(this.internal=!1,ot.pubID!=null&&(this.pubID=this.stringify.dtdPubID(ot.pubID)),ot.sysID!=null&&(this.sysID=this.stringify.dtdSysID(ot.sysID)),ot.nData!=null&&(this.nData=this.stringify.dtdNData(ot.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(z))}}return Object.defineProperty(ct.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(ct.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(ct.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(ct.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(ct.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(ct.prototype,"xmlVersion",{get:function(){return null}}),ct.prototype.toString=function(lt){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(lt))},ct}(vt)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],442:[function(rt,kt,Ct){(function(){var St,pt,vt,yt=function(dt,ft){for(var ct in ft)xt.call(ft,ct)&&(dt[ct]=ft[ct]);function lt(){this.constructor=dt}return lt.prototype=ft.prototype,dt.prototype=new lt,dt.__super__=ft.prototype,dt},xt={}.hasOwnProperty;vt=rt("./XMLNode"),St=rt("./NodeType"),kt.exports=pt=function(dt){yt(ft,dt);function ft(ct,lt,E){if(ft.__super__.constructor.call(this,ct),lt==null)throw new Error("Missing DTD notation name. "+this.debugInfo(lt));if(!E.pubID&&!E.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(lt));this.name=this.stringify.name(lt),this.type=St.NotationDeclaration,E.pubID!=null&&(this.pubID=this.stringify.dtdPubID(E.pubID)),E.sysID!=null&&(this.sysID=this.stringify.dtdSysID(E.sysID))}return Object.defineProperty(ft.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(ft.prototype,"systemId",{get:function(){return this.sysID}}),ft.prototype.toString=function(ct){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(ct))},ft}(vt)}).call(this)},{"./NodeType":428,"./XMLNode":450}],443:[function(rt,kt,Ct){(function(){var St,pt,vt,yt,xt=function(ft,ct){for(var lt in ct)dt.call(ct,lt)&&(ft[lt]=ct[lt]);function E(){this.constructor=ft}return E.prototype=ct.prototype,ft.prototype=new E,ft.__super__=ct.prototype,ft},dt={}.hasOwnProperty;yt=rt("./Utility").isObject,vt=rt("./XMLNode"),St=rt("./NodeType"),kt.exports=pt=function(ft){xt(ct,ft);function ct(lt,E,z,ot){var it;ct.__super__.constructor.call(this,lt),yt(E)&&(it=E,E=it.version,z=it.encoding,ot=it.standalone),E||(E="1.0"),this.type=St.Declaration,this.version=this.stringify.xmlVersion(E),z!=null&&(this.encoding=this.stringify.xmlEncoding(z)),ot!=null&&(this.standalone=this.stringify.xmlStandalone(ot))}return ct.prototype.toString=function(lt){return this.options.writer.declaration(this,this.options.writer.filterOptions(lt))},ct}(vt)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],444:[function(rt,kt,Ct){(function(){var St,pt,vt,yt,xt,dt,ft,ct,lt,E=function(ot,it){for(var at in it)z.call(it,at)&&(ot[at]=it[at]);function ut(){this.constructor=ot}return ut.prototype=it.prototype,ot.prototype=new ut,ot.__super__=it.prototype,ot},z={}.hasOwnProperty;lt=rt("./Utility").isObject,ct=rt("./XMLNode"),St=rt("./NodeType"),pt=rt("./XMLDTDAttList"),yt=rt("./XMLDTDEntity"),vt=rt("./XMLDTDElement"),xt=rt("./XMLDTDNotation"),ft=rt("./XMLNamedNodeMap"),kt.exports=dt=function(ot){E(it,ot);function it(at,ut,wt){var Et,At,_t,Mt,jt,Lt;if(it.__super__.constructor.call(this,at),this.type=St.DocType,at.children){for(Mt=at.children,At=0,_t=Mt.length;At<_t;At++)if(Et=Mt[At],Et.type===St.Element){this.name=Et.name;break}}this.documentObject=at,lt(ut)&&(jt=ut,ut=jt.pubID,wt=jt.sysID),wt==null&&(Lt=[ut,wt],wt=Lt[0],ut=Lt[1]),ut!=null&&(this.pubID=this.stringify.dtdPubID(ut)),wt!=null&&(this.sysID=this.stringify.dtdSysID(wt))}return Object.defineProperty(it.prototype,"entities",{get:function(){var at,ut,wt,Et,At;for(Et={},At=this.children,ut=0,wt=At.length;ut=0;)this.up();return this.onEnd()},Gt.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},Gt.prototype.openNode=function(Vt){var Ht,ne,se,ve;if(!Vt.isOpen){if(!this.root&&this.currentLevel===0&&Vt.type===St.Element&&(this.root=Vt),ne="",Vt.type===St.Element){this.writerOptions.state=pt.OpenTag,ne=this.writer.indent(Vt,this.writerOptions,this.currentLevel)+"<"+Vt.name,ve=Vt.attribs;for(se in ve)Xt.call(ve,se)&&(Ht=ve[se],ne+=this.writer.attribute(Ht,this.writerOptions,this.currentLevel));ne+=(Vt.children?">":"/>")+this.writer.endline(Vt,this.writerOptions,this.currentLevel),this.writerOptions.state=pt.InsideTag}else this.writerOptions.state=pt.OpenTag,ne=this.writer.indent(Vt,this.writerOptions,this.currentLevel)+""),ne+=this.writer.endline(Vt,this.writerOptions,this.currentLevel);return this.onData(ne,this.currentLevel),Vt.isOpen=!0}},Gt.prototype.closeNode=function(Vt){var Ht;if(!Vt.isClosed)return Ht="",this.writerOptions.state=pt.CloseTag,Vt.type===St.Element?Ht=this.writer.indent(Vt,this.writerOptions,this.currentLevel)+""+this.writer.endline(Vt,this.writerOptions,this.currentLevel):Ht=this.writer.indent(Vt,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(Vt,this.writerOptions,this.currentLevel),this.writerOptions.state=pt.None,this.onData(Ht,this.currentLevel),Vt.isClosed=!0},Gt.prototype.onData=function(Vt,Ht){return this.documentStarted=!0,this.onDataCallback(Vt,Ht+1)},Gt.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},Gt.prototype.debugInfo=function(Vt){return Vt==null?"":"node: <"+Vt+">"},Gt.prototype.ele=function(){return this.element.apply(this,arguments)},Gt.prototype.nod=function(Vt,Ht,ne){return this.node(Vt,Ht,ne)},Gt.prototype.txt=function(Vt){return this.text(Vt)},Gt.prototype.dat=function(Vt){return this.cdata(Vt)},Gt.prototype.com=function(Vt){return this.comment(Vt)},Gt.prototype.ins=function(Vt,Ht){return this.instruction(Vt,Ht)},Gt.prototype.dec=function(Vt,Ht,ne){return this.declaration(Vt,Ht,ne)},Gt.prototype.dtd=function(Vt,Ht,ne){return this.doctype(Vt,Ht,ne)},Gt.prototype.e=function(Vt,Ht,ne){return this.element(Vt,Ht,ne)},Gt.prototype.n=function(Vt,Ht,ne){return this.node(Vt,Ht,ne)},Gt.prototype.t=function(Vt){return this.text(Vt)},Gt.prototype.d=function(Vt){return this.cdata(Vt)},Gt.prototype.c=function(Vt){return this.comment(Vt)},Gt.prototype.r=function(Vt){return this.raw(Vt)},Gt.prototype.i=function(Vt,Ht){return this.instruction(Vt,Ht)},Gt.prototype.att=function(){return this.currentNode&&this.currentNode.type===St.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Gt.prototype.a=function(){return this.currentNode&&this.currentNode.type===St.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Gt.prototype.ent=function(Vt,Ht){return this.entity(Vt,Ht)},Gt.prototype.pent=function(Vt,Ht){return this.pEntity(Vt,Ht)},Gt.prototype.not=function(Vt,Ht){return this.notation(Vt,Ht)},Gt}()}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLAttribute":431,"./XMLCData":432,"./XMLComment":434,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDocument":445,"./XMLElement":448,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLStringWriter":455,"./XMLStringifier":456,"./XMLText":457}],447:[function(rt,kt,Ct){(function(){var St,pt,vt,yt=function(dt,ft){for(var ct in ft)xt.call(ft,ct)&&(dt[ct]=ft[ct]);function lt(){this.constructor=dt}return lt.prototype=ft.prototype,dt.prototype=new lt,dt.__super__=ft.prototype,dt},xt={}.hasOwnProperty;vt=rt("./XMLNode"),St=rt("./NodeType"),kt.exports=pt=function(dt){yt(ft,dt);function ft(ct){ft.__super__.constructor.call(this,ct),this.type=St.Dummy}return ft.prototype.clone=function(){return Object.create(this)},ft.prototype.toString=function(ct){return""},ft}(vt)}).call(this)},{"./NodeType":428,"./XMLNode":450}],448:[function(rt,kt,Ct){(function(){var St,pt,vt,yt,xt,dt,ft,ct,lt,E=function(ot,it){for(var at in it)z.call(it,at)&&(ot[at]=it[at]);function ut(){this.constructor=ot}return ut.prototype=it.prototype,ot.prototype=new ut,ot.__super__=it.prototype,ot},z={}.hasOwnProperty;lt=rt("./Utility"),ct=lt.isObject,ft=lt.isFunction,dt=lt.getValue,xt=rt("./XMLNode"),St=rt("./NodeType"),pt=rt("./XMLAttribute"),yt=rt("./XMLNamedNodeMap"),kt.exports=vt=function(ot){E(it,ot);function it(at,ut,wt){var Et,At,_t,Mt;if(it.__super__.constructor.call(this,at),ut==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(ut),this.type=St.Element,this.attribs={},this.schemaTypeInfo=null,wt!=null&&this.attribute(wt),at.type===St.Document&&(this.isRoot=!0,this.documentObject=at,at.rootObject=this,at.children)){for(Mt=at.children,At=0,_t=Mt.length;At<_t;At++)if(Et=Mt[At],Et.type===St.DocType){Et.name=this.name;break}}}return Object.defineProperty(it.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(it.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(it.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(it.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(it.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(it.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(it.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(it.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new yt(this.attribs)),this.attributeMap}}),it.prototype.clone=function(){var at,ut,wt,Et;wt=Object.create(this),wt.isRoot&&(wt.documentObject=null),wt.attribs={},Et=this.attribs;for(ut in Et)z.call(Et,ut)&&(at=Et[ut],wt.attribs[ut]=at.clone());return wt.children=[],this.children.forEach(function(At){var _t;return _t=At.clone(),_t.parent=wt,wt.children.push(_t)}),wt},it.prototype.attribute=function(at,ut){var wt,Et;if(at!=null&&(at=dt(at)),ct(at))for(wt in at)z.call(at,wt)&&(Et=at[wt],this.attribute(wt,Et));else ft(ut)&&(ut=ut.apply()),this.options.keepNullAttributes&&ut==null?this.attribs[at]=new pt(this,at,""):ut!=null&&(this.attribs[at]=new pt(this,at,ut));return this},it.prototype.removeAttribute=function(at){var ut,wt,Et;if(at==null)throw new Error("Missing attribute name. "+this.debugInfo());if(at=dt(at),Array.isArray(at))for(wt=0,Et=at.length;wt=Et;ut=0<=Et?++wt:--wt)if(!this.attribs[ut].isEqualNode(at.attribs[ut]))return!1;return!0},it}(xt)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLAttribute":431,"./XMLNamedNodeMap":449,"./XMLNode":450}],449:[function(rt,kt,Ct){(function(){var St;kt.exports=St=function(){function pt(vt){this.nodes=vt}return Object.defineProperty(pt.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),pt.prototype.clone=function(){return this.nodes=null},pt.prototype.getNamedItem=function(vt){return this.nodes[vt]},pt.prototype.setNamedItem=function(vt){var yt;return yt=this.nodes[vt.nodeName],this.nodes[vt.nodeName]=vt,yt||null},pt.prototype.removeNamedItem=function(vt){var yt;return yt=this.nodes[vt],delete this.nodes[vt],yt||null},pt.prototype.item=function(vt){return this.nodes[Object.keys(this.nodes)[vt]]||null},pt.prototype.getNamedItemNS=function(vt,yt){throw new Error("This DOM method is not implemented.")},pt.prototype.setNamedItemNS=function(vt){throw new Error("This DOM method is not implemented.")},pt.prototype.removeNamedItemNS=function(vt,yt){throw new Error("This DOM method is not implemented.")},pt}()}).call(this)},{}],450:[function(rt,kt,Ct){(function(){var St,pt,vt,yt,xt,dt,ft,ct,lt,E,z,ot,it,at,ut,wt,Et,At,_t,Mt={}.hasOwnProperty;_t=rt("./Utility"),At=_t.isObject,Et=_t.isFunction,wt=_t.isEmpty,ut=_t.getValue,ct=null,vt=null,yt=null,xt=null,dt=null,it=null,at=null,ot=null,ft=null,pt=null,z=null,lt=null,St=null,kt.exports=E=function(){function jt(Lt){this.parent=Lt,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,ct||(ct=rt("./XMLElement"),vt=rt("./XMLCData"),yt=rt("./XMLComment"),xt=rt("./XMLDeclaration"),dt=rt("./XMLDocType"),it=rt("./XMLRaw"),at=rt("./XMLText"),ot=rt("./XMLProcessingInstruction"),ft=rt("./XMLDummy"),pt=rt("./NodeType"),z=rt("./XMLNodeList"),lt=rt("./XMLNamedNodeMap"),St=rt("./DocumentPosition"))}return Object.defineProperty(jt.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(jt.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(jt.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(jt.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(jt.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new z(this.children)),this.childNodeList}}),Object.defineProperty(jt.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(jt.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(jt.prototype,"previousSibling",{get:function(){var Lt;return Lt=this.parent.children.indexOf(this),this.parent.children[Lt-1]||null}}),Object.defineProperty(jt.prototype,"nextSibling",{get:function(){var Lt;return Lt=this.parent.children.indexOf(this),this.parent.children[Lt+1]||null}}),Object.defineProperty(jt.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(jt.prototype,"textContent",{get:function(){var Lt,It,Ut,Xt,Gt;if(this.nodeType===pt.Element||this.nodeType===pt.DocumentFragment){for(Gt="",Xt=this.children,It=0,Ut=Xt.length;It":(Ut=this.parent)!=null&&Ut.name?"node: <"+Lt+">, parent: <"+this.parent.name+">":"node: <"+Lt+">"},jt.prototype.ele=function(Lt,It,Ut){return this.element(Lt,It,Ut)},jt.prototype.nod=function(Lt,It,Ut){return this.node(Lt,It,Ut)},jt.prototype.txt=function(Lt){return this.text(Lt)},jt.prototype.dat=function(Lt){return this.cdata(Lt)},jt.prototype.com=function(Lt){return this.comment(Lt)},jt.prototype.ins=function(Lt,It){return this.instruction(Lt,It)},jt.prototype.doc=function(){return this.document()},jt.prototype.dec=function(Lt,It,Ut){return this.declaration(Lt,It,Ut)},jt.prototype.e=function(Lt,It,Ut){return this.element(Lt,It,Ut)},jt.prototype.n=function(Lt,It,Ut){return this.node(Lt,It,Ut)},jt.prototype.t=function(Lt){return this.text(Lt)},jt.prototype.d=function(Lt){return this.cdata(Lt)},jt.prototype.c=function(Lt){return this.comment(Lt)},jt.prototype.r=function(Lt){return this.raw(Lt)},jt.prototype.i=function(Lt,It){return this.instruction(Lt,It)},jt.prototype.u=function(){return this.up()},jt.prototype.importXMLBuilder=function(Lt){return this.importDocument(Lt)},jt.prototype.replaceChild=function(Lt,It){throw new Error("This DOM method is not implemented."+this.debugInfo())},jt.prototype.removeChild=function(Lt){throw new Error("This DOM method is not implemented."+this.debugInfo())},jt.prototype.appendChild=function(Lt){throw new Error("This DOM method is not implemented."+this.debugInfo())},jt.prototype.hasChildNodes=function(){return this.children.length!==0},jt.prototype.cloneNode=function(Lt){throw new Error("This DOM method is not implemented."+this.debugInfo())},jt.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},jt.prototype.isSupported=function(Lt,It){return!0},jt.prototype.hasAttributes=function(){return this.attribs.length!==0},jt.prototype.compareDocumentPosition=function(Lt){var It,Ut;return It=this,It===Lt?0:this.document()!==Lt.document()?(Ut=St.Disconnected|St.ImplementationSpecific,Math.random()<.5?Ut|=St.Preceding:Ut|=St.Following,Ut):It.isAncestor(Lt)?St.Contains|St.Preceding:It.isDescendant(Lt)?St.Contains|St.Following:It.isPreceding(Lt)?St.Preceding:St.Following},jt.prototype.isSameNode=function(Lt){throw new Error("This DOM method is not implemented."+this.debugInfo())},jt.prototype.lookupPrefix=function(Lt){throw new Error("This DOM method is not implemented."+this.debugInfo())},jt.prototype.isDefaultNamespace=function(Lt){throw new Error("This DOM method is not implemented."+this.debugInfo())},jt.prototype.lookupNamespaceURI=function(Lt){throw new Error("This DOM method is not implemented."+this.debugInfo())},jt.prototype.isEqualNode=function(Lt){var It,Ut,Xt;if(Lt.nodeType!==this.nodeType||Lt.children.length!==this.children.length)return!1;for(It=Ut=0,Xt=this.children.length-1;0<=Xt?Ut<=Xt:Ut>=Xt;It=0<=Xt?++Ut:--Ut)if(!this.children[It].isEqualNode(Lt.children[It]))return!1;return!0},jt.prototype.getFeature=function(Lt,It){throw new Error("This DOM method is not implemented."+this.debugInfo())},jt.prototype.setUserData=function(Lt,It,Ut){throw new Error("This DOM method is not implemented."+this.debugInfo())},jt.prototype.getUserData=function(Lt){throw new Error("This DOM method is not implemented."+this.debugInfo())},jt.prototype.contains=function(Lt){return Lt?Lt===this||this.isDescendant(Lt):!1},jt.prototype.isDescendant=function(Lt){var It,Ut,Xt,Gt,Vt;for(Vt=this.children,Xt=0,Gt=Vt.length;XtUt},jt.prototype.treePosition=function(Lt){var It,Ut;return Ut=0,It=!1,this.foreachTreeNode(this.document(),function(Xt){if(Ut++,!It&&Xt===Lt)return It=!0}),It?Ut:-1},jt.prototype.foreachTreeNode=function(Lt,It){var Ut,Xt,Gt,Vt,Ht;for(Lt||(Lt=this.document()),Vt=Lt.children,Xt=0,Gt=Vt.length;Xt0){for(this.stream.write(" ["),this.stream.write(this.endline(lt,E,z)),E.state=pt.InsideTag,ut=lt.children,it=0,at=ut.length;it"),this.stream.write(this.endline(lt,E,z)),E.state=pt.None,this.closeNode(lt,E,z)},ct.prototype.element=function(lt,E,z){var ot,it,at,ut,wt,Et,At,_t,Mt,jt;z||(z=0),this.openNode(lt,E,z),E.state=pt.OpenTag,this.stream.write(this.indent(lt,E,z)+"<"+lt.name),Mt=lt.attribs;for(At in Mt)dt.call(Mt,At)&&(ot=Mt[At],this.attribute(ot,E,z));if(at=lt.children.length,ut=at===0?null:lt.children[0],at===0||lt.children.every(function(Lt){return(Lt.type===St.Text||Lt.type===St.Raw)&&Lt.value===""}))E.allowEmpty?(this.stream.write(">"),E.state=pt.CloseTag,this.stream.write("")):(E.state=pt.CloseTag,this.stream.write(E.spaceBeforeSlash+"/>"));else if(E.pretty&&at===1&&(ut.type===St.Text||ut.type===St.Raw)&&ut.value!=null)this.stream.write(">"),E.state=pt.InsideTag,E.suppressPrettyCount++,_t=!0,this.writeChildNode(ut,E,z+1),E.suppressPrettyCount--,_t=!1,E.state=pt.CloseTag,this.stream.write("");else{for(this.stream.write(">"+this.endline(lt,E,z)),E.state=pt.InsideTag,jt=lt.children,wt=0,Et=jt.length;wt")}return this.stream.write(this.endline(lt,E,z)),E.state=pt.None,this.closeNode(lt,E,z)},ct.prototype.processingInstruction=function(lt,E,z){return this.stream.write(ct.__super__.processingInstruction.call(this,lt,E,z))},ct.prototype.raw=function(lt,E,z){return this.stream.write(ct.__super__.raw.call(this,lt,E,z))},ct.prototype.text=function(lt,E,z){return this.stream.write(ct.__super__.text.call(this,lt,E,z))},ct.prototype.dtdAttList=function(lt,E,z){return this.stream.write(ct.__super__.dtdAttList.call(this,lt,E,z))},ct.prototype.dtdElement=function(lt,E,z){return this.stream.write(ct.__super__.dtdElement.call(this,lt,E,z))},ct.prototype.dtdEntity=function(lt,E,z){return this.stream.write(ct.__super__.dtdEntity.call(this,lt,E,z))},ct.prototype.dtdNotation=function(lt,E,z){return this.stream.write(ct.__super__.dtdNotation.call(this,lt,E,z))},ct}(yt)}).call(this)},{"./NodeType":428,"./WriterState":430,"./XMLWriterBase":458}],455:[function(rt,kt,Ct){(function(){var St,pt,vt=function(xt,dt){for(var ft in dt)yt.call(dt,ft)&&(xt[ft]=dt[ft]);function ct(){this.constructor=xt}return ct.prototype=dt.prototype,xt.prototype=new ct,xt.__super__=dt.prototype,xt},yt={}.hasOwnProperty;pt=rt("./XMLWriterBase"),kt.exports=St=function(xt){vt(dt,xt);function dt(ft){dt.__super__.constructor.call(this,ft)}return dt.prototype.document=function(ft,ct){var lt,E,z,ot,it;for(ct=this.filterOptions(ct),ot="",it=ft.children,E=0,z=it.length;E","]]]]>"),this.assertLegalChar(xt))},yt.prototype.comment=function(xt){if(this.options.noValidation)return xt;if(xt=""+xt||"",xt.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+xt);return this.assertLegalChar(xt)},yt.prototype.raw=function(xt){return this.options.noValidation?xt:""+xt||""},yt.prototype.attValue=function(xt){return this.options.noValidation?xt:this.assertLegalChar(this.attEscape(xt=""+xt||""))},yt.prototype.insTarget=function(xt){return this.options.noValidation?xt:this.assertLegalChar(""+xt||"")},yt.prototype.insValue=function(xt){if(this.options.noValidation)return xt;if(xt=""+xt||"",xt.match(/\?>/))throw new Error("Invalid processing instruction value: "+xt);return this.assertLegalChar(xt)},yt.prototype.xmlVersion=function(xt){if(this.options.noValidation)return xt;if(xt=""+xt||"",!xt.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+xt);return xt},yt.prototype.xmlEncoding=function(xt){if(this.options.noValidation)return xt;if(xt=""+xt||"",!xt.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+xt);return this.assertLegalChar(xt)},yt.prototype.xmlStandalone=function(xt){return this.options.noValidation?xt:xt?"yes":"no"},yt.prototype.dtdPubID=function(xt){return this.options.noValidation?xt:this.assertLegalChar(""+xt||"")},yt.prototype.dtdSysID=function(xt){return this.options.noValidation?xt:this.assertLegalChar(""+xt||"")},yt.prototype.dtdElementValue=function(xt){return this.options.noValidation?xt:this.assertLegalChar(""+xt||"")},yt.prototype.dtdAttType=function(xt){return this.options.noValidation?xt:this.assertLegalChar(""+xt||"")},yt.prototype.dtdAttDefault=function(xt){return this.options.noValidation?xt:this.assertLegalChar(""+xt||"")},yt.prototype.dtdEntityValue=function(xt){return this.options.noValidation?xt:this.assertLegalChar(""+xt||"")},yt.prototype.dtdNData=function(xt){return this.options.noValidation?xt:this.assertLegalChar(""+xt||"")},yt.prototype.convertAttKey="@",yt.prototype.convertPIKey="?",yt.prototype.convertTextKey="#text",yt.prototype.convertCDataKey="#cdata",yt.prototype.convertCommentKey="#comment",yt.prototype.convertRawKey="#raw",yt.prototype.assertLegalChar=function(xt){var dt,ft;if(this.options.noValidation)return xt;if(dt="",this.options.version==="1.0"){if(dt=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ft=xt.match(dt))throw new Error("Invalid character in string: "+xt+" at index "+ft.index)}else if(this.options.version==="1.1"&&(dt=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ft=xt.match(dt)))throw new Error("Invalid character in string: "+xt+" at index "+ft.index);return xt},yt.prototype.assertLegalName=function(xt){var dt;if(this.options.noValidation)return xt;if(this.assertLegalChar(xt),dt=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!xt.match(dt))throw new Error("Invalid character in name");return xt},yt.prototype.textEscape=function(xt){var dt;return this.options.noValidation?xt:(dt=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,xt.replace(dt,"&").replace(//g,">").replace(/\r/g," "))},yt.prototype.attEscape=function(xt){var dt;return this.options.noValidation?xt:(dt=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,xt.replace(dt,"&").replace(/0)?new Array(It).join(jt.indent):""},_t.prototype.endline=function(Mt,jt,Lt){return!jt.pretty||jt.suppressPrettyCount?"":jt.newline},_t.prototype.attribute=function(Mt,jt,Lt){var It;return this.openAttribute(Mt,jt,Lt),It=" "+Mt.name+'="'+Mt.value+'"',this.closeAttribute(Mt,jt,Lt),It},_t.prototype.cdata=function(Mt,jt,Lt){var It;return this.openNode(Mt,jt,Lt),jt.state=pt.OpenTag,It=this.indent(Mt,jt,Lt)+""+this.endline(Mt,jt,Lt),jt.state=pt.None,this.closeNode(Mt,jt,Lt),It},_t.prototype.comment=function(Mt,jt,Lt){var It;return this.openNode(Mt,jt,Lt),jt.state=pt.OpenTag,It=this.indent(Mt,jt,Lt)+""+this.endline(Mt,jt,Lt),jt.state=pt.None,this.closeNode(Mt,jt,Lt),It},_t.prototype.declaration=function(Mt,jt,Lt){var It;return this.openNode(Mt,jt,Lt),jt.state=pt.OpenTag,It=this.indent(Mt,jt,Lt)+"",It+=this.endline(Mt,jt,Lt),jt.state=pt.None,this.closeNode(Mt,jt,Lt),It},_t.prototype.docType=function(Mt,jt,Lt){var It,Ut,Xt,Gt,Vt;if(Lt||(Lt=0),this.openNode(Mt,jt,Lt),jt.state=pt.OpenTag,Gt=this.indent(Mt,jt,Lt),Gt+="0){for(Gt+=" [",Gt+=this.endline(Mt,jt,Lt),jt.state=pt.InsideTag,Vt=Mt.children,Ut=0,Xt=Vt.length;Ut",Gt+=this.endline(Mt,jt,Lt),jt.state=pt.None,this.closeNode(Mt,jt,Lt),Gt},_t.prototype.element=function(Mt,jt,Lt){var It,Ut,Xt,Gt,Vt,Ht,ne,se,ve,Kt,re,we,ke,Me;Lt||(Lt=0),Kt=!1,re="",this.openNode(Mt,jt,Lt),jt.state=pt.OpenTag,re+=this.indent(Mt,jt,Lt)+"<"+Mt.name,we=Mt.attribs;for(ve in we)At.call(we,ve)&&(It=we[ve],re+=this.attribute(It,jt,Lt));if(Xt=Mt.children.length,Gt=Xt===0?null:Mt.children[0],Xt===0||Mt.children.every(function(ge){return(ge.type===St.Text||ge.type===St.Raw)&&ge.value===""}))jt.allowEmpty?(re+=">",jt.state=pt.CloseTag,re+=""+this.endline(Mt,jt,Lt)):(jt.state=pt.CloseTag,re+=jt.spaceBeforeSlash+"/>"+this.endline(Mt,jt,Lt));else if(jt.pretty&&Xt===1&&(Gt.type===St.Text||Gt.type===St.Raw)&&Gt.value!=null)re+=">",jt.state=pt.InsideTag,jt.suppressPrettyCount++,Kt=!0,re+=this.writeChildNode(Gt,jt,Lt+1),jt.suppressPrettyCount--,Kt=!1,jt.state=pt.CloseTag,re+=""+this.endline(Mt,jt,Lt);else{if(jt.dontPrettyTextNodes){for(ke=Mt.children,Vt=0,ne=ke.length;Vt"+this.endline(Mt,jt,Lt),jt.state=pt.InsideTag,Me=Mt.children,Ht=0,se=Me.length;Ht",Kt&&jt.suppressPrettyCount--,re+=this.endline(Mt,jt,Lt),jt.state=pt.None}return this.closeNode(Mt,jt,Lt),re},_t.prototype.writeChildNode=function(Mt,jt,Lt){switch(Mt.type){case St.CData:return this.cdata(Mt,jt,Lt);case St.Comment:return this.comment(Mt,jt,Lt);case St.Element:return this.element(Mt,jt,Lt);case St.Raw:return this.raw(Mt,jt,Lt);case St.Text:return this.text(Mt,jt,Lt);case St.ProcessingInstruction:return this.processingInstruction(Mt,jt,Lt);case St.Dummy:return"";case St.Declaration:return this.declaration(Mt,jt,Lt);case St.DocType:return this.docType(Mt,jt,Lt);case St.AttributeDeclaration:return this.dtdAttList(Mt,jt,Lt);case St.ElementDeclaration:return this.dtdElement(Mt,jt,Lt);case St.EntityDeclaration:return this.dtdEntity(Mt,jt,Lt);case St.NotationDeclaration:return this.dtdNotation(Mt,jt,Lt);default:throw new Error("Unknown XML node type: "+Mt.constructor.name)}},_t.prototype.processingInstruction=function(Mt,jt,Lt){var It;return this.openNode(Mt,jt,Lt),jt.state=pt.OpenTag,It=this.indent(Mt,jt,Lt)+"",It+=this.endline(Mt,jt,Lt),jt.state=pt.None,this.closeNode(Mt,jt,Lt),It},_t.prototype.raw=function(Mt,jt,Lt){var It;return this.openNode(Mt,jt,Lt),jt.state=pt.OpenTag,It=this.indent(Mt,jt,Lt),jt.state=pt.InsideTag,It+=Mt.value,jt.state=pt.CloseTag,It+=this.endline(Mt,jt,Lt),jt.state=pt.None,this.closeNode(Mt,jt,Lt),It},_t.prototype.text=function(Mt,jt,Lt){var It;return this.openNode(Mt,jt,Lt),jt.state=pt.OpenTag,It=this.indent(Mt,jt,Lt),jt.state=pt.InsideTag,It+=Mt.value,jt.state=pt.CloseTag,It+=this.endline(Mt,jt,Lt),jt.state=pt.None,this.closeNode(Mt,jt,Lt),It},_t.prototype.dtdAttList=function(Mt,jt,Lt){var It;return this.openNode(Mt,jt,Lt),jt.state=pt.OpenTag,It=this.indent(Mt,jt,Lt)+""+this.endline(Mt,jt,Lt),jt.state=pt.None,this.closeNode(Mt,jt,Lt),It},_t.prototype.dtdElement=function(Mt,jt,Lt){var It;return this.openNode(Mt,jt,Lt),jt.state=pt.OpenTag,It=this.indent(Mt,jt,Lt)+""+this.endline(Mt,jt,Lt),jt.state=pt.None,this.closeNode(Mt,jt,Lt),It},_t.prototype.dtdEntity=function(Mt,jt,Lt){var It;return this.openNode(Mt,jt,Lt),jt.state=pt.OpenTag,It=this.indent(Mt,jt,Lt)+""+this.endline(Mt,jt,Lt),jt.state=pt.None,this.closeNode(Mt,jt,Lt),It},_t.prototype.dtdNotation=function(Mt,jt,Lt){var It;return this.openNode(Mt,jt,Lt),jt.state=pt.OpenTag,It=this.indent(Mt,jt,Lt)+""+this.endline(Mt,jt,Lt),jt.state=pt.None,this.closeNode(Mt,jt,Lt),It},_t.prototype.openNode=function(Mt,jt,Lt){},_t.prototype.closeNode=function(Mt,jt,Lt){},_t.prototype.openAttribute=function(Mt,jt,Lt){},_t.prototype.closeAttribute=function(Mt,jt,Lt){},_t}()}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLCData":432,"./XMLComment":434,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDummy":447,"./XMLElement":448,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLText":457}],459:[function(rt,kt,Ct){(function(){var St,pt,vt,yt,xt,dt,ft,ct,lt,E;E=rt("./Utility"),ct=E.assign,lt=E.isFunction,vt=rt("./XMLDOMImplementation"),yt=rt("./XMLDocument"),xt=rt("./XMLDocumentCB"),ft=rt("./XMLStringWriter"),dt=rt("./XMLStreamWriter"),St=rt("./NodeType"),pt=rt("./WriterState"),kt.exports.create=function(z,ot,it,at){var ut,wt;if(z==null)throw new Error("Root element needs a name.");return at=ct({},ot,it,at),ut=new yt(at),wt=ut.element(z),at.headless||(ut.declaration(at),(at.pubID!=null||at.sysID!=null)&&ut.dtd(at)),wt},kt.exports.begin=function(z,ot,it){var at;return lt(z)&&(at=[z,ot],ot=at[0],it=at[1],z={}),ot?new xt(z,ot,it):new yt(z)},kt.exports.stringWriter=function(z){return new ft(z)},kt.exports.streamWriter=function(z,ot){return new dt(z,ot)},kt.exports.implementation=new vt,kt.exports.nodeType=St,kt.exports.writerState=pt}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLDOMImplementation":437,"./XMLDocument":445,"./XMLDocumentCB":446,"./XMLStreamWriter":454,"./XMLStringWriter":455}],460:[function(rt,kt,Ct){kt.exports=pt;var St=Object.prototype.hasOwnProperty;function pt(){for(var vt={},yt=0;ytxt?z=E(z):z.length>5]|=128<>>9<<4)+14]=ot;for(var it=1732584193,at=-271733879,ut=-1732584194,wt=271733878,Et=0;Et>16)+(ot>>16)+(it>>16);return at<<16|it&65535}function E(z,ot){return z<>>32-ot}kt.exports=function(ot){return St.hash(ot,vt,16)}},{"./helpers":462}],464:[function(rt,kt,Ct){"use strict";var St=rt("./helpers");function pt(ft,ct){ft[ct>>5]|=128<<24-ct%32,ft[(ct+64>>9<<4)+15]=ct;for(var lt=Array(80),E=1732584193,z=-271733879,ot=-1732584194,it=271733878,at=-1009589776,ut=0;ut>16)+(ct>>16)+(lt>>16);return E<<16|lt&65535}function dt(ft,ct){return ft<>>32-ct}kt.exports=function(ct){return St.hash(ct,pt,20,!0)}},{"./helpers":462}],465:[function(rt,kt,Ct){"use strict";kt.exports=function(){return function(){}}},{}],466:[function(rt,kt,Ct){(function(St){(function(){"use strict";var pt=rt("@babel/runtime/helpers/interopRequireDefault"),vt=pt(rt("@babel/runtime/helpers/typeof")),yt=rt("stream"),xt=yt.Stream,dt=rt("../lib/common/utils/isArray"),ft=dt.isArray;kt.exports.string=function(E){return typeof E=="string"},kt.exports.array=ft,kt.exports.buffer=St.isBuffer;function ct(lt){return lt instanceof xt}kt.exports.writableStream=function(E){return ct(E)&&typeof E._write=="function"&&(0,vt.default)(E._writableState)==="object"}}).call(this)}).call(this,{isBuffer:rt("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":63,"../node_modules/is-buffer/index.js":366,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,stream:398}],467:[function(rt,kt,Ct){"use strict";var St=rt("immediate"),pt=kt.exports={};pt.nextTick=St,pt.title="browser",pt.browser=!0,pt.env={},pt.argv=[],pt.version="",pt.versions={};function vt(){}pt.on=vt,pt.addListener=vt,pt.once=vt,pt.off=vt,pt.removeListener=vt,pt.removeAllListeners=vt,pt.emit=vt,pt.prependListener=vt,pt.prependOnceListener=vt,pt.listeners=function(yt){return[]},pt.binding=function(yt){throw new Error("process.binding is not supported")},pt.cwd=function(){return"/"},pt.chdir=function(yt){throw new Error("process.chdir is not supported")},pt.umask=function(){return 0}},{immediate:358}],468:[function(rt,kt,Ct){(function(St){(function(){"use strict";rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.search.js");var pt=rt("./lib/request"),vt=rt("./lib/response"),yt=rt("xtend"),xt=rt("builtin-status-codes"),dt=rt("url"),ft=Ct;ft.request=function(ct,lt){typeof ct=="string"?ct=dt.parse(ct):ct=yt(ct);var E=St.location.protocol.search(/^https?:$/)===-1?"http:":"",z=ct.protocol||E,ot=ct.hostname||ct.host,it=ct.port,at=ct.path||"/";ot&&ot.indexOf(":")!==-1&&(ot="["+ot+"]"),ct.url=(ot?z+"//"+ot:"")+(it?":"+it:"")+at,ct.method=(ct.method||"GET").toUpperCase(),ct.headers=ct.headers||{};var ut=new pt(ct);return lt&&ut.on("response",lt),ut},ft.get=function(lt,E){var z=ft.request(lt,E);return z.end(),z},ft.ClientRequest=pt,ft.IncomingMessage=vt.IncomingMessage,ft.Agent=function(){},ft.Agent.defaultMaxSockets=4,ft.globalAgent=new ft.Agent,ft.STATUS_CODES=xt,ft.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this)}).call(this,typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":470,"./lib/response":471,"builtin-status-codes":91,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.search.js":306,url:472,xtend:460}],469:[function(rt,kt,Ct){(function(St){(function(){"use strict";rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/es.promise.js"),rt("core-js/modules/es.array-buffer.constructor.js"),rt("core-js/modules/es.array-buffer.slice.js"),rt("core-js/modules/es.array.slice.js"),Ct.fetch=ft(St.fetch)&&ft(St.ReadableStream),Ct.writableStream=ft(St.WritableStream),Ct.abortController=ft(St.AbortController),Ct.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),Ct.blobConstructor=!0}catch(ct){}var pt;function vt(){if(pt!==void 0)return pt;if(St.XMLHttpRequest){pt=new St.XMLHttpRequest;try{pt.open("GET",St.XDomainRequest?"/":"https://example.com")}catch(ct){pt=null}}else pt=null;return pt}function yt(ct){var lt=vt();if(!lt)return!1;try{return lt.responseType=ct,lt.responseType===ct}catch(E){}return!1}var xt=typeof St.ArrayBuffer!="undefined",dt=xt&&ft(St.ArrayBuffer.prototype.slice);Ct.arraybuffer=Ct.fetch||xt&&yt("arraybuffer"),Ct.msstream=!Ct.fetch&&dt&&yt("ms-stream"),Ct.mozchunkedarraybuffer=!Ct.fetch&&xt&&yt("moz-chunked-arraybuffer"),Ct.overrideMimeType=Ct.fetch||(vt()?ft(vt().overrideMimeType):!1),Ct.vbArray=ft(St.VBArray);function ft(ct){return typeof ct=="function"}pt=null}).call(this)}).call(this,typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"core-js/modules/es.array-buffer.constructor.js":270,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],470:[function(rt,kt,Ct){(function(St,pt,vt){(function(){"use strict";rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/es.regexp.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.object.keys.js"),rt("core-js/modules/es.array.concat.js"),rt("core-js/modules/es.array.map.js"),rt("core-js/modules/es.function.name.js"),rt("core-js/modules/es.promise.js"),rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.split.js");var yt=rt("./capability"),xt=rt("inherits"),dt=rt("./response"),ft=rt("readable-stream"),ct=rt("to-arraybuffer"),lt=dt.IncomingMessage,E=dt.readyStates;function z(ut,wt){return yt.fetch&&wt?"fetch":yt.mozchunkedarraybuffer?"moz-chunked-arraybuffer":yt.msstream?"ms-stream":yt.arraybuffer&&ut?"arraybuffer":yt.vbArray&&ut?"text:vbarray":"text"}var ot=kt.exports=function(ut){var wt=this;ft.Writable.call(wt),wt._opts=ut,wt._body=[],wt._headers={},ut.auth&&wt.setHeader("Authorization","Basic "+new vt(ut.auth).toString("base64")),Object.keys(ut.headers).forEach(function(_t){wt.setHeader(_t,ut.headers[_t])});var Et,At=!0;if(ut.mode==="disable-fetch"||"requestTimeout"in ut&&!yt.abortController)At=!1,Et=!0;else if(ut.mode==="prefer-streaming")Et=!1;else if(ut.mode==="allow-wrong-content-type")Et=!yt.overrideMimeType;else if(!ut.mode||ut.mode==="default"||ut.mode==="prefer-fast")Et=!0;else throw new Error("Invalid value for opts.mode");wt._mode=z(Et,At),wt._fetchTimer=null,wt.on("finish",function(){wt._onFinish()})};xt(ot,ft.Writable),ot.prototype.setHeader=function(ut,wt){var Et=this,At=ut.toLowerCase();at.indexOf(At)===-1&&(Et._headers[At]={name:ut,value:wt})},ot.prototype.getHeader=function(ut){var wt=this._headers[ut.toLowerCase()];return wt?wt.value:null},ot.prototype.removeHeader=function(ut){var wt=this;delete wt._headers[ut.toLowerCase()]},ot.prototype._onFinish=function(){var ut=this;if(!ut._destroyed){var wt=ut._opts,Et=ut._headers,At=null;wt.method!=="GET"&&wt.method!=="HEAD"&&(yt.arraybuffer?At=ct(vt.concat(ut._body)):yt.blobConstructor?At=new pt.Blob(ut._body.map(function(Ut){return ct(Ut)}),{type:(Et["content-type"]||{}).value||""}):At=vt.concat(ut._body).toString());var _t=[];if(Object.keys(Et).forEach(function(Ut){var Xt=Et[Ut].name,Gt=Et[Ut].value;Array.isArray(Gt)?Gt.forEach(function(Vt){_t.push([Xt,Vt])}):_t.push([Xt,Gt])}),ut._mode==="fetch"){var Mt=null,jt=null;if(yt.abortController){var Lt=new AbortController;Mt=Lt.signal,ut._fetchAbortController=Lt,"requestTimeout"in wt&&wt.requestTimeout!==0&&(ut._fetchTimer=pt.setTimeout(function(){ut.emit("requestTimeout"),ut._fetchAbortController&&ut._fetchAbortController.abort()},wt.requestTimeout))}pt.fetch(ut._opts.url,{method:ut._opts.method,headers:_t,body:At||void 0,mode:"cors",credentials:wt.withCredentials?"include":"same-origin",signal:Mt}).then(function(Ut){ut._fetchResponse=Ut,ut._connect()},function(Ut){pt.clearTimeout(ut._fetchTimer),ut._destroyed||ut.emit("error",Ut)})}else{var It=ut._xhr=new pt.XMLHttpRequest;try{It.open(ut._opts.method,ut._opts.url,!0)}catch(Ut){St.nextTick(function(){ut.emit("error",Ut)});return}"responseType"in It&&(It.responseType=ut._mode.split(":")[0]),"withCredentials"in It&&(It.withCredentials=!!wt.withCredentials),ut._mode==="text"&&"overrideMimeType"in It&&It.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in wt&&(It.timeout=wt.requestTimeout,It.ontimeout=function(){ut.emit("requestTimeout")}),_t.forEach(function(Ut){It.setRequestHeader(Ut[0],Ut[1])}),ut._response=null,It.onreadystatechange=function(){switch(It.readyState){case E.LOADING:case E.DONE:ut._onXHRProgress();break}},ut._mode==="moz-chunked-arraybuffer"&&(It.onprogress=function(){ut._onXHRProgress()}),It.onerror=function(){ut._destroyed||ut.emit("error",new Error("XHR error"))};try{It.send(At)}catch(Ut){St.nextTick(function(){ut.emit("error",Ut)});return}}}};function it(ut){try{var wt=ut.status;return wt!==null&&wt!==0}catch(Et){return!1}}ot.prototype._onXHRProgress=function(){var ut=this;!it(ut._xhr)||ut._destroyed||(ut._response||ut._connect(),ut._response._onXHRProgress())},ot.prototype._connect=function(){var ut=this;ut._destroyed||(ut._response=new lt(ut._xhr,ut._fetchResponse,ut._mode,ut._fetchTimer),ut._response.on("error",function(wt){ut.emit("error",wt)}),ut.emit("response",ut._response))},ot.prototype._write=function(ut,wt,Et){var At=this;At._body.push(ut),Et()},ot.prototype.abort=ot.prototype.destroy=function(){var ut=this;ut._destroyed=!0,pt.clearTimeout(ut._fetchTimer),ut._response&&(ut._response._destroyed=!0),ut._xhr?ut._xhr.abort():ut._fetchAbortController&&ut._fetchAbortController.abort()},ot.prototype.end=function(ut,wt,Et){var At=this;typeof ut=="function"&&(Et=ut,ut=void 0),ft.Writable.prototype.end.call(At,ut,wt,Et)},ot.prototype.flushHeaders=function(){},ot.prototype.setTimeout=function(){},ot.prototype.setNoDelay=function(){},ot.prototype.setSocketKeepAlive=function(){};var at=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this)}).call(this,rt("_process"),typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{},rt("buffer").Buffer)},{"./capability":469,"./response":471,_process:467,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.split.js":307,"core-js/modules/web.dom-collections.for-each.js":339,inherits:364,"readable-stream":394,"to-arraybuffer":415}],471:[function(rt,kt,Ct){(function(St,pt,vt){(function(){"use strict";rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/web.dom-collections.for-each.js"),rt("core-js/modules/es.promise.js"),rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.split.js"),rt("core-js/modules/es.string.match.js"),rt("core-js/modules/es.array.iterator.js"),rt("core-js/modules/es.array-buffer.slice.js"),rt("core-js/modules/es.typed-array.uint8-array.js"),rt("core-js/modules/es.typed-array.copy-within.js"),rt("core-js/modules/es.typed-array.every.js"),rt("core-js/modules/es.typed-array.fill.js"),rt("core-js/modules/es.typed-array.filter.js"),rt("core-js/modules/es.typed-array.find.js"),rt("core-js/modules/es.typed-array.find-index.js"),rt("core-js/modules/es.typed-array.for-each.js"),rt("core-js/modules/es.typed-array.includes.js"),rt("core-js/modules/es.typed-array.index-of.js"),rt("core-js/modules/es.typed-array.iterator.js"),rt("core-js/modules/es.typed-array.join.js"),rt("core-js/modules/es.typed-array.last-index-of.js"),rt("core-js/modules/es.typed-array.map.js"),rt("core-js/modules/es.typed-array.reduce.js"),rt("core-js/modules/es.typed-array.reduce-right.js"),rt("core-js/modules/es.typed-array.reverse.js"),rt("core-js/modules/es.typed-array.set.js"),rt("core-js/modules/es.typed-array.slice.js"),rt("core-js/modules/es.typed-array.some.js"),rt("core-js/modules/es.typed-array.sort.js"),rt("core-js/modules/es.typed-array.subarray.js"),rt("core-js/modules/es.typed-array.to-locale-string.js"),rt("core-js/modules/es.typed-array.to-string.js"),rt("core-js/modules/es.array.slice.js");var yt=rt("./capability"),xt=rt("inherits"),dt=rt("readable-stream"),ft=Ct.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},ct=Ct.IncomingMessage=function(lt,E,z,ot){var it=this;if(dt.Readable.call(it),it._mode=z,it.headers={},it.rawHeaders=[],it.trailers={},it.rawTrailers=[],it.on("end",function(){St.nextTick(function(){it.emit("close")})}),z==="fetch"){var at=function Mt(){wt.read().then(function(jt){if(!it._destroyed){if(jt.done){pt.clearTimeout(ot),it.push(null);return}it.push(new vt(jt.value)),Mt()}}).catch(function(jt){pt.clearTimeout(ot),it._destroyed||it.emit("error",jt)})};if(it._fetchResponse=E,it.url=E.url,it.statusCode=E.status,it.statusMessage=E.statusText,E.headers.forEach(function(Mt,jt){it.headers[jt.toLowerCase()]=Mt,it.rawHeaders.push(jt,Mt)}),yt.writableStream){var ut=new WritableStream({write:function(jt){return new Promise(function(Lt,It){it._destroyed?It():it.push(new vt(jt))?Lt():it._resumeFetch=Lt})},close:function(){pt.clearTimeout(ot),it._destroyed||it.push(null)},abort:function(jt){it._destroyed||it.emit("error",jt)}});try{E.body.pipeTo(ut).catch(function(Mt){pt.clearTimeout(ot),it._destroyed||it.emit("error",Mt)});return}catch(Mt){}}var wt=E.body.getReader();at()}else{it._xhr=lt,it._pos=0,it.url=lt.responseURL,it.statusCode=lt.status,it.statusMessage=lt.statusText;var Et=lt.getAllResponseHeaders().split(/\r?\n/);if(Et.forEach(function(Mt){var jt=Mt.match(/^([^:]+):\s*(.*)/);if(jt){var Lt=jt[1].toLowerCase();Lt==="set-cookie"?(it.headers[Lt]===void 0&&(it.headers[Lt]=[]),it.headers[Lt].push(jt[2])):it.headers[Lt]!==void 0?it.headers[Lt]+=", "+jt[2]:it.headers[Lt]=jt[2],it.rawHeaders.push(jt[1],jt[2])}}),it._charset="x-user-defined",!yt.overrideMimeType){var At=it.rawHeaders["mime-type"];if(At){var _t=At.match(/;\s*charset=([^;])(;|$)/);_t&&(it._charset=_t[1].toLowerCase())}it._charset||(it._charset="utf-8")}}};xt(ct,dt.Readable),ct.prototype._read=function(){var lt=this,E=lt._resumeFetch;E&&(lt._resumeFetch=null,E())},ct.prototype._onXHRProgress=function(){var lt=this,E=lt._xhr,z=null;switch(lt._mode){case"text:vbarray":if(E.readyState!==ft.DONE)break;try{z=new pt.VBArray(E.responseBody).toArray()}catch(wt){}if(z!==null){lt.push(new vt(z));break}case"text":try{z=E.responseText}catch(wt){lt._mode="text:vbarray";break}if(z.length>lt._pos){var ot=z.substr(lt._pos);if(lt._charset==="x-user-defined"){for(var it=new vt(ot.length),at=0;atlt._pos&&(lt.push(new vt(new Uint8Array(ut.result.slice(lt._pos)))),lt._pos=ut.result.byteLength)},ut.onload=function(){lt.push(null)},ut.readAsArrayBuffer(z);break}lt._xhr.readyState===ft.DONE&<._mode!=="ms-stream"&<.push(null)}}).call(this)}).call(this,rt("_process"),typeof Ke!="undefined"?Ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{},rt("buffer").Buffer)},{"./capability":469,_process:467,buffer:90,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.match.js":304,"core-js/modules/es.string.split.js":307,"core-js/modules/es.typed-array.copy-within.js":315,"core-js/modules/es.typed-array.every.js":316,"core-js/modules/es.typed-array.fill.js":317,"core-js/modules/es.typed-array.filter.js":318,"core-js/modules/es.typed-array.find-index.js":319,"core-js/modules/es.typed-array.find.js":320,"core-js/modules/es.typed-array.for-each.js":321,"core-js/modules/es.typed-array.includes.js":322,"core-js/modules/es.typed-array.index-of.js":323,"core-js/modules/es.typed-array.iterator.js":324,"core-js/modules/es.typed-array.join.js":325,"core-js/modules/es.typed-array.last-index-of.js":326,"core-js/modules/es.typed-array.map.js":327,"core-js/modules/es.typed-array.reduce-right.js":328,"core-js/modules/es.typed-array.reduce.js":329,"core-js/modules/es.typed-array.reverse.js":330,"core-js/modules/es.typed-array.set.js":331,"core-js/modules/es.typed-array.slice.js":332,"core-js/modules/es.typed-array.some.js":333,"core-js/modules/es.typed-array.sort.js":334,"core-js/modules/es.typed-array.subarray.js":335,"core-js/modules/es.typed-array.to-locale-string.js":336,"core-js/modules/es.typed-array.to-string.js":337,"core-js/modules/es.typed-array.uint8-array.js":338,"core-js/modules/web.dom-collections.for-each.js":339,inherits:364,"readable-stream":394}],472:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/helpers/typeof"));rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.search.js"),rt("core-js/modules/es.array.concat.js"),rt("core-js/modules/es.string.split.js"),rt("core-js/modules/es.string.replace.js"),rt("core-js/modules/es.array.join.js"),rt("core-js/modules/es.string.trim.js"),rt("core-js/modules/es.string.match.js"),rt("core-js/modules/es.array.slice.js"),rt("core-js/modules/es.object.keys.js"),rt("core-js/modules/es.array.splice.js");var vt=rt("punycode"),yt=rt("./util");Ct.parse=jt,Ct.resolve=It,Ct.resolveObject=Ut,Ct.format=Lt,Ct.Url=xt;function xt(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var dt=/^([a-z0-9.+-]+:)/i,ft=/:[0-9]*$/,ct=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,lt=["<",">",'"',"`"," ","\r",` +`," "],E=["{","}","|","\\","^","`"].concat(lt),z=["'"].concat(E),ot=["%","/","?",";","#"].concat(z),it=["/","?","#"],at=255,ut=/^[+a-z0-9A-Z_-]{0,63}$/,wt=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Et={javascript:!0,"javascript:":!0},At={javascript:!0,"javascript:":!0},_t={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Mt=rt("querystring");function jt(Xt,Gt,Vt){if(Xt&&yt.isObject(Xt)&&Xt instanceof xt)return Xt;var Ht=new xt;return Ht.parse(Xt,Gt,Vt),Ht}xt.prototype.parse=function(Xt,Gt,Vt){if(!yt.isString(Xt))throw new TypeError("Parameter 'url' must be a string, not "+(0,pt.default)(Xt));var Ht=Xt.indexOf("?"),ne=Ht!==-1&&Ht127?Ne+="x":Ne+=le[ae];if(!Ne.match(ut)){var Xe=Se.slice(0,fe),Be=Se.slice(fe+1),Te=le.match(wt);Te&&(Xe.push(Te[1]),Be.unshift(Te[2])),Be.length&&(Kt="/"+Be.join(".")+Kt),this.hostname=Xe.join(".");break}}}this.hostname.length>at?this.hostname="":this.hostname=this.hostname.toLowerCase(),He||(this.hostname=vt.toASCII(this.hostname));var ue=this.port?":"+this.port:"",$t=this.hostname||"";this.host=$t+ue,this.href+=this.host,He&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Kt[0]!=="/"&&(Kt="/"+Kt))}if(!Et[ke])for(var fe=0,xe=z.length;fe0?Vt.host.split("@"):!1;Ne&&(Vt.auth=Ne.shift(),Vt.host=Vt.hostname=Ne.shift())}return Vt.search=Xt.search,Vt.query=Xt.query,(!yt.isNull(Vt.pathname)||!yt.isNull(Vt.search))&&(Vt.path=(Vt.pathname?Vt.pathname:"")+(Vt.search?Vt.search:"")),Vt.href=Vt.format(),Vt}if(!Se.length)return Vt.pathname=null,Vt.search?Vt.path="/"+Vt.search:Vt.path=null,Vt.href=Vt.format(),Vt;for(var ae=Se.slice(-1)[0],Ae=(Vt.host||Xt.host||Se.length>1)&&(ae==="."||ae==="..")||ae==="",Xe=0,Be=Se.length;Be>=0;Be--)ae=Se[Be],ae==="."?Se.splice(Be,1):ae===".."?(Se.splice(Be,1),Xe++):Xe&&(Se.splice(Be,1),Xe--);if(!Oe&&!He)for(;Xe--;Xe)Se.unshift("..");Oe&&Se[0]!==""&&(!Se[0]||Se[0].charAt(0)!=="/")&&Se.unshift(""),Ae&&Se.join("/").substr(-1)!=="/"&&Se.push("");var Te=Se[0]===""||Se[0]&&Se[0].charAt(0)==="/";if(le){Vt.hostname=Vt.host=Te?"":Se.length?Se.shift():"";var Ne=Vt.host&&Vt.host.indexOf("@")>0?Vt.host.split("@"):!1;Ne&&(Vt.auth=Ne.shift(),Vt.host=Vt.hostname=Ne.shift())}return Oe=Oe||Vt.host&&Se.length,Oe&&!Te&&Se.unshift(""),Se.length?Vt.pathname=Se.join("/"):(Vt.pathname=null,Vt.path=null),(!yt.isNull(Vt.pathname)||!yt.isNull(Vt.search))&&(Vt.path=(Vt.pathname?Vt.pathname:"")+(Vt.search?Vt.search:"")),Vt.auth=Xt.auth||Vt.auth,Vt.slashes=Vt.slashes||Xt.slashes,Vt.href=Vt.format(),Vt},xt.prototype.parseHost=function(){var Xt=this.host,Gt=ft.exec(Xt);Gt&&(Gt=Gt[0],Gt!==":"&&(this.port=Gt.substr(1)),Xt=Xt.substr(0,Xt.length-Gt.length)),Xt&&(this.hostname=Xt)}},{"./util":473,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.array.splice.js":283,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.match.js":304,"core-js/modules/es.string.replace.js":305,"core-js/modules/es.string.search.js":306,"core-js/modules/es.string.split.js":307,"core-js/modules/es.string.trim.js":308,punycode:382,querystring:385}],473:[function(rt,kt,Ct){"use strict";var St=rt("@babel/runtime/helpers/interopRequireDefault"),pt=St(rt("@babel/runtime/helpers/typeof"));kt.exports={isString:function(yt){return typeof yt=="string"},isObject:function(yt){return(0,pt.default)(yt)==="object"&&yt!==null},isNull:function(yt){return yt===null},isNullOrUndefined:function(yt){return yt==null}}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79}],474:[function(rt,kt,Ct){"use strict";rt("core-js/modules/es.number.constructor.js"),Ct.encodeURIComponent=function(St){try{return encodeURIComponent(St)}catch(pt){return St}},Ct.escape=rt("escape-html"),Ct.timestamp=function(pt){if(pt){var vt=pt;return typeof vt=="string"&&(vt=Number(vt)),String(pt).length===10&&(vt*=1e3),new Date(vt)}return Math.round(Date.now()/1e3)}},{"core-js/modules/es.number.constructor.js":286,"escape-html":343}],475:[function(rt,kt,Ct){(function(St,pt){(function(){"use strict";var vt=rt("@babel/runtime/helpers/interopRequireDefault"),yt=vt(rt("@babel/runtime/helpers/typeof"));rt("core-js/modules/es.string.trim.js"),rt("core-js/modules/es.regexp.exec.js"),rt("core-js/modules/es.string.split.js"),rt("core-js/modules/es.object.to-string.js"),rt("core-js/modules/es.promise.js"),rt("core-js/modules/es.function.name.js"),rt("core-js/modules/es.array.concat.js");var xt=rt("util"),dt=rt("url"),ft=rt("http"),ct=rt("https"),lt=rt("debug")("urllib"),E=rt("humanize-ms"),z=0,ot=Math.pow(2,31)-10,it=/^https?:\/\//i;function at(At,_t){return At===void 0?_t:At}function ut(At){return At?At.split(";")[0].trim().toLowerCase():""}function wt(At,_t){return function(Mt,jt,Lt){if(Mt)return _t(Mt);At({data:jt,status:Lt.statusCode,headers:Lt.headers,res:Lt})}}Ct.TIMEOUTS=[E("300s"),E("300s")];var Et=["json","text"];Ct.request=function(_t,Mt,jt){return arguments.length===2&&typeof Mt=="function"&&(jt=Mt,Mt=null),typeof jt=="function"?Ct.requestWithCallback(_t,Mt,jt):new Promise(function(Lt,It){Ct.requestWithCallback(_t,Mt,wt(Lt,It))})},Ct.requestWithCallback=function(_t,Mt,jt){if(!_t||typeof _t!="string"&&(0,yt.default)(_t)!=="object"){var Lt=xt.format("expect request url to be a string or a http request options, but got %j",_t);throw new Error(Lt)}arguments.length===2&&typeof Mt=="function"&&(jt=Mt,Mt=null),Mt=Mt||{},z>=ot&&(z=0);var It=++z;Mt.requestUrls=Mt.requestUrls||[];var Ut={requestId:It,url:_t,args:Mt,ctx:Mt.ctx};Mt.emitter&&Mt.emitter.emit("request",Ut),Mt.timeout=Mt.timeout||Ct.TIMEOUTS,Mt.maxRedirects=Mt.maxRedirects||10,Mt.streaming=Mt.streaming||Mt.customResponse;var Xt=Date.now(),Gt;typeof _t=="string"?(it.test(_t)||(_t="https://"+_t),Gt=dt.parse(_t)):Gt=_t;var Vt=(Mt.type||Mt.method||Gt.method||"GET").toUpperCase(),Ht=Gt.port||80,ne=ft,se=at(Mt.agent,Ct.agent),ve=Mt.fixJSONCtlChars;Gt.protocol==="https:"&&(ne=ct,se=at(Mt.httpsAgent,Ct.httpsAgent),Gt.port||(Ht=443));var Kt={host:Gt.hostname||Gt.host||"localhost",path:Gt.path||"/",method:Vt,port:Ht,agent:se,headers:Mt.headers||{},lookup:Mt.lookup};Array.isArray(Mt.timeout)?Kt.requestTimeout=Mt.timeout[Mt.timeout.length-1]:typeof Mt.timeout!="undefined"&&(Kt.requestTimeout=Mt.timeout);var re=Mt.auth||Gt.auth;re&&(Kt.auth=re);var we=Mt.content||Mt.data,ke=Vt==="GET"||Vt==="HEAD"||Mt.dataAsQueryString;if(!Mt.content&&we&&!(typeof we=="string"||pt.isBuffer(we)))if(ke)we=Mt.nestedQuerystring?qs.stringify(we):querystring.stringify(we);else{var Me=Kt.headers["Content-Type"]||Kt.headers["content-type"];Me||(Mt.contentType==="json"?Me="application/json":Me="application/x-www-form-urlencoded",Kt.headers["Content-Type"]=Me),ut(Me)==="application/json"?we=JSON.stringify(we):we=Mt.nestedQuerystring?qs.stringify(we):querystring.stringify(we)}ke&&we&&(Kt.path+=(Gt.query?"&":"?")+we,we=null);var ge=0;if(we){var fe=we.length;pt.isBuffer(we)||(fe=pt.byteLength(we)),ge=Kt.headers["Content-Length"]=fe}Mt.dataType==="json"&&(Kt.headers.Accept="application/json"),typeof Mt.beforeRequest=="function"&&Mt.beforeRequest(Kt);var de=null,_e=null,Oe=null,He=!1,Se=!1,xe=0,le=-1,Ne=!1,ae="",Ae="",Xe=null;Mt.timing&&(Xe={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function Be(){de&&(clearTimeout(de),de=null)}function Te(){_e&&(clearTimeout(_e),_e=null)}function ue(Ue,Je,Ze){if(Te(),!jt){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),It,St.pid,Kt.method,_t),Ue&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s +stack: %s`,Date(),It,St.pid,Ue.name,Ue.message,Ue.stack);return}var nn=jt;jt=null;var fn={};Ze&&(le=Ze.statusCode,fn=Ze.headers);var An=Date.now()-Xt;Xe&&(Xe.contentDownload=An),lt("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",An,xe,le,Kt.method,Kt.host,Kt.path,Se,Xe);var En={status:le,statusCode:le,headers:fn,size:xe,aborted:Ne,rt:An,keepAliveSocket:Se,data:Je,requestUrls:Mt.requestUrls,timing:Xe,remoteAddress:ae,remotePort:Ae};if(Ue){var Dn="";se&&typeof se.getCurrentStatus=="function"&&(Dn=", agent status: "+JSON.stringify(se.getCurrentStatus())),Ue.message+=", "+Kt.method+" "+_t+" "+le+" (connected: "+He+", keepalive socket: "+Se+Dn+`) +headers: `+JSON.stringify(fn),Ue.data=Je,Ue.path=Kt.path,Ue.status=le,Ue.headers=fn,Ue.res=En}nn(Ue,Je,Mt.streaming?Ze:En),Mt.emitter&&(Ut.url=_t,Ut.socket=Jt&&Jt.connection,Ut.options=Kt,Ut.size=ge,Mt.emitter.emit("response",{requestId:It,error:Ue,ctx:Mt.ctx,req:Ut,res:En}))}function $t(Ue){var Je=null;if(Mt.followRedirect&&statuses.redirect[Ue.statusCode]){Mt._followRedirectCount=(Mt._followRedirectCount||0)+1;var Ze=Ue.headers.location;if(!Ze)Je=new Error("Got statusCode "+Ue.statusCode+" but cannot resolve next location from headers"),Je.name="FollowRedirectError";else if(Mt._followRedirectCount>Mt.maxRedirects)Je=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+_t),Je.name="MaxRedirectError";else{var nn=Mt.formatRedirectUrl?Mt.formatRedirectUrl(_t,Ze):dt.resolve(_t,Ze);lt("Request#%d %s: `redirected` from %s to %s",It,Kt.path,_t,nn),Te(),Mt.headers&&Mt.headers.Host&&it.test(Ze)&&(Mt.headers.Host=null);var fn=jt;return jt=null,Ct.requestWithCallback(nn,Mt,fn),{redirect:!0,error:null}}}return{redirect:!1,error:Je}}Mt.gzip&&!Kt.headers["Accept-Encoding"]&&!Kt.headers["accept-encoding"]&&(Kt.headers["Accept-Encoding"]="gzip");function he(Ue,Je,Ze){var nn=Ue.headers["content-encoding"];return Ze(null,Je,nn)}var ye=Mt.writeStream;lt("Request#%d %s %s with headers %j, options.path: %s",It,Vt,_t,Kt.headers,Kt.path),Mt.requestUrls.push(_t);function Qt(Ue){if(Xe&&(Xe.waiting=Date.now()-Xt),lt("Request#%d %s `req response` event emit: status %d, headers: %j",It,_t,Ue.statusCode,Ue.headers),Mt.streaming){var Je=$t(Ue);if(Je.redirect){Ue.resume();return}return Je.error?(Ue.resume(),ue(Je.error,null,Ue)):ue(null,null,Ue)}if(Ue.on("close",function(){lt("Request#%d %s: `res close` event emit, total size %d",It,_t,xe)}),Ue.on("error",function(){lt("Request#%d %s: `res error` event emit, total size %d",It,_t,xe)}),Ue.on("aborted",function(){Ne=!0,lt("Request#%d %s: `res aborted` event emit, total size %d",It,_t,xe)}),ye){var Ze=$t(Ue);if(Ze.redirect){Ue.resume();return}return Ze.error?(Ue.resume(),ye.end(),ue(Ze.error,null,Ue)):(Mt.consumeWriteStream===!1?Ue.on("end",ue.bind(null,null,null,Ue)):ye.on("close",function(){lt("Request#%d %s: writeStream close event emitted",It,_t),ue(Oe||null,null,Ue)}),Ue.pipe(ye))}var nn=[];Ue.on("data",function(fn){lt("Request#%d %s: `res data` event emit, size %d",It,_t,fn.length),xe+=fn.length,nn.push(fn)}),Ue.on("end",function(){var fn=pt.concat(nn,xe);if(lt("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",It,_t,xe,Ue._dumped),Oe)return ue(Oe,fn,Ue);var An=$t(Ue);if(An.error)return ue(An.error,fn,Ue);An.redirect||he(Ue,fn,function(En,Dn,ii){if(En)return ue(En,fn,Ue);if(!ii&&Et.indexOf(Mt.dataType)>=0){try{Dn=decodeBodyByCharset(Dn,Ue)}catch(Ti){return lt("decodeBodyByCharset error: %s",Ti),ue(null,Dn,Ue)}if(Mt.dataType==="json")if(xe===0)Dn=null;else{var mi=parseJSON(Dn,ve);mi.error?En=mi.error:Dn=mi.data}}Ne&<("Request#%d %s: Remote socket was terminated before `response.end()` was called",It,_t),ue(En,Dn,Ue)})})}var Wt,Bt;Array.isArray(Mt.timeout)?(Wt=E(Mt.timeout[0]),Bt=E(Mt.timeout[1])):Wt=Bt=E(Mt.timeout),lt("ConnectTimeout: %d, ResponseTimeout: %d",Wt,Bt);function te(){lt("Connect timer ticking, timeout: %d",Wt),de=setTimeout(function(){de=null,le===-1&&(le=-2);var Ue="Connect timeout for "+Wt+"ms",Je="ConnectionTimeoutError";Jt.socket||(Je="SocketAssignTimeoutError",Ue+=", working sockets is full"),Oe=new Error(Ue),Oe.name=Je,Oe.requestId=It,lt("ConnectTimeout: Request#%d %s %s: %s, connected: %s",It,_t,Oe.name,Ue,He),Ie()},Wt)}function me(){lt("Response timer ticking, timeout: %d",Bt),_e=setTimeout(function(){_e=null;var Ue="Response timeout for "+Bt+"ms",Je="ResponseTimeoutError";Oe=new Error(Ue),Oe.name=Je,Oe.requestId=It,lt("ResponseTimeout: Request#%d %s %s: %s, connected: %s",It,_t,Oe.name,Ue,He),Ie()},Bt)}var Jt;Kt.mode=Mt.mode?Mt.mode:"";try{Jt=ne.request(Kt,Qt)}catch(Ue){return ue(Ue)}typeof window=="undefined"?te():Jt.on("requestTimeout",function(){le===-1&&(le=-2);var Ue="Connect timeout for "+Wt+"ms",Je="ConnectionTimeoutError";Oe=new Error(Ue),Oe.name=Je,Oe.requestId=It,Ie()});function Ie(){lt("Request#%d %s abort, connected: %s",It,_t,He),Jt.socket||(Oe.noSocket=!0,ue(Oe)),Jt.abort()}return Xe&&Jt.on("finish",function(){Xe.requestSent=Date.now()-Xt}),Jt.once("socket",function(Ue){Xe&&(Xe.queuing=Date.now()-Xt);var Je=Ue.readyState;if(Je==="opening"){Ue.once("lookup",function(Ze,nn,fn){lt("Request#%d %s lookup: %s, %s, %s",It,_t,Ze,nn,fn),Xe&&(Xe.dnslookup=Date.now()-Xt),nn&&(ae=nn)}),Ue.once("connect",function(){Xe&&(Xe.connected=Date.now()-Xt),Be(),me(),lt("Request#%d %s new socket connected",It,_t),He=!0,ae||(ae=Ue.remoteAddress),Ae=Ue.remotePort});return}lt("Request#%d %s reuse socket connected, readyState: %s",It,_t,Je),He=!0,Se=!0,ae||(ae=Ue.remoteAddress),Ae=Ue.remotePort,Be(),me()}),Jt.on("error",function(Ue){(Ue.name==="Error"||Ue.name==="TypeError")&&(Ue.name=He?"ResponseError":"RequestError"),Ue.message+=' (req "error")',lt("Request#%d %s `req error` event emit, %s: %s",It,_t,Ue.name,Ue.message),ue(Oe||Ue)}),ye&&ye.once("error",function(Ue){Ue.message+=' (writeStream "error")',Oe=Ue,lt("Request#%d %s `writeStream error` event emit, %s: %s",It,_t,Ue.name,Ue.message),Ie()}),Mt.stream?(Mt.stream.pipe(Jt),Mt.stream.once("error",function(Ue){Ue.message+=' (stream "error")',Oe=Ue,lt("Request#%d %s `readStream error` event emit, %s: %s",It,_t,Ue.name,Ue.message),Ie()})):Jt.end(we),Jt.requestId=It,Jt}}).call(this)}).call(this,rt("_process"),rt("buffer").Buffer)},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,_process:467,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.split.js":307,"core-js/modules/es.string.trim.js":308,debug:465,http:468,https:355,"humanize-ms":356,url:472,util:419}]},{},[1])(1)})})(window)},77578:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return Ft}});const Ft=ie=>ie?typeof ie=="function"?ie():ie:null},14478:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return Lt}});var Ft=Rt(96512),ie=Rt(92310),rt=Rt.n(ie),kt=Rt(10228),Ct=Rt(18929),St=Rt(2738),pt=Rt(59301),vt=Rt(92343),yt=Rt(36355),xt=Rt(60324),dt=Rt(92806),ft=Rt(77578),ct=Rt(3113),lt=Rt(67797),E=Rt(9763),z=Rt(31724),ot=Rt(39722),it=Rt(83116);const at=It=>{const{componentCls:Ut,iconCls:Xt,antCls:Gt,zIndexPopup:Vt,colorText:Ht,colorWarning:ne,marginXXS:se,marginXS:ve,fontSize:Kt,fontWeightStrong:re,colorTextHeading:we}=It;return{[Ut]:{zIndex:Vt,[`&${Gt}-popover`]:{fontSize:Kt},[`${Ut}-message`]:{marginBottom:ve,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${Ut}-message-icon ${Xt}`]:{color:ne,fontSize:Kt,lineHeight:1,marginInlineEnd:ve},[`${Ut}-title`]:{fontWeight:re,color:we,"&:only-child":{fontWeight:"normal"}},[`${Ut}-description`]:{marginTop:se,color:Ht}},[`${Ut}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:ve}}}}};var ut=(0,it.Z)("Popconfirm",It=>at(It),It=>{const{zIndexPopupBase:Ut}=It;return{zIndexPopup:Ut+60}},{resetStyle:!1}),wt=function(It,Ut){var Xt={};for(var Gt in It)Object.prototype.hasOwnProperty.call(It,Gt)&&Ut.indexOf(Gt)<0&&(Xt[Gt]=It[Gt]);if(It!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Vt=0,Gt=Object.getOwnPropertySymbols(It);Vt{const{prefixCls:Ut,okButtonProps:Xt,cancelButtonProps:Gt,title:Vt,description:Ht,cancelText:ne,okText:se,okType:ve="primary",icon:Kt=pt.createElement(Ft.Z,null),showCancel:re=!0,close:we,onConfirm:ke,onCancel:Me,onPopupClick:ge}=It,{getPrefixCls:fe}=pt.useContext(yt.E_),[de]=(0,E.Z)("Popconfirm",z.Z.Popconfirm),_e=(0,ft.Z)(Vt),Oe=(0,ft.Z)(Ht);return pt.createElement("div",{className:`${Ut}-inner-content`,onClick:ge},pt.createElement("div",{className:`${Ut}-message`},Kt&&pt.createElement("span",{className:`${Ut}-message-icon`},Kt),pt.createElement("div",{className:`${Ut}-message-text`},_e&&pt.createElement("div",{className:rt()(`${Ut}-title`)},_e),Oe&&pt.createElement("div",{className:`${Ut}-description`},Oe))),pt.createElement("div",{className:`${Ut}-buttons`},re&&pt.createElement(ct.ZP,Object.assign({onClick:Me,size:"small"},Gt),ne!=null?ne:de==null?void 0:de.cancelText),pt.createElement(dt.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,lt.n)(ve)),Xt),actionFn:ke,close:we,prefixCls:fe("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},se!=null?se:de==null?void 0:de.okText)))};var _t=It=>{const{prefixCls:Ut,placement:Xt,className:Gt,style:Vt}=It,Ht=wt(It,["prefixCls","placement","className","style"]),{getPrefixCls:ne}=pt.useContext(yt.E_),se=ne("popconfirm",Ut),[ve]=ut(se);return ve(pt.createElement(ot.ZP,{placement:Xt,className:rt()(se,Gt),style:Vt,content:pt.createElement(Et,Object.assign({prefixCls:se},Ht))}))},Mt=function(It,Ut){var Xt={};for(var Gt in It)Object.prototype.hasOwnProperty.call(It,Gt)&&Ut.indexOf(Gt)<0&&(Xt[Gt]=It[Gt]);if(It!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Vt=0,Gt=Object.getOwnPropertySymbols(It);Vt{const{prefixCls:Xt,placement:Gt="top",trigger:Vt="click",okType:Ht="primary",icon:ne=pt.createElement(Ft.Z,null),children:se,overlayClassName:ve,onOpenChange:Kt,onVisibleChange:re}=It,we=Mt(It,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:ke}=pt.useContext(yt.E_),[Me,ge]=(0,Ct.Z)(!1,{value:It.open,defaultValue:It.defaultOpen}),fe=(ae,Ae)=>{ge(ae,!0),re==null||re(ae),Kt==null||Kt(ae,Ae)},de=ae=>{fe(!1,ae)},_e=ae=>{var Ae;return(Ae=It.onConfirm)===null||Ae===void 0?void 0:Ae.call(void 0,ae)},Oe=ae=>{var Ae;fe(!1,ae),(Ae=It.onCancel)===null||Ae===void 0||Ae.call(void 0,ae)},He=ae=>{ae.keyCode===kt.Z.ESC&&Me&&fe(!1,ae)},Se=ae=>{const{disabled:Ae=!1}=It;Ae||fe(ae)},xe=ke("popconfirm",Xt),le=rt()(xe,ve),[Ne]=ut(xe);return Ne(pt.createElement(xt.Z,Object.assign({},(0,St.Z)(we,["title"]),{trigger:Vt,placement:Gt,onOpenChange:Se,open:Me,ref:Ut,overlayClassName:le,content:pt.createElement(Et,Object.assign({okType:Ht,icon:ne},It,{prefixCls:xe,close:de,onConfirm:_e,onCancel:Oe})),"data-popover-inject":!0}),(0,vt.Tm)(se,{onKeyDown:ae=>{var Ae,Xe;pt.isValidElement(se)&&((Xe=se==null?void 0:(Ae=se.props).onKeyDown)===null||Xe===void 0||Xe.call(Ae,ae)),He(ae)}})))});jt._InternalPanelDoNotUseOrYouWillBeFired=_t;var Lt=jt},39722:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{t5:function(){return xt}});var Ft=Rt(92310),ie=Rt.n(Ft),rt=Rt(55477),kt=Rt(59301),Ct=Rt(36355),St=Rt(77578),pt=Rt(17356),vt=function(ft,ct){var lt={};for(var E in ft)Object.prototype.hasOwnProperty.call(ft,E)&&ct.indexOf(E)<0&&(lt[E]=ft[E]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,E=Object.getOwnPropertySymbols(ft);z{if(!(!ct&&!lt))return kt.createElement(kt.Fragment,null,ct&&kt.createElement("div",{className:`${ft}-title`},(0,St.Z)(ct)),kt.createElement("div",{className:`${ft}-inner-content`},(0,St.Z)(lt)))},xt=ft=>{const{hashId:ct,prefixCls:lt,className:E,style:z,placement:ot="top",title:it,content:at,children:ut}=ft;return kt.createElement("div",{className:ie()(ct,lt,`${lt}-pure`,`${lt}-placement-${ot}`,E),style:z},kt.createElement("div",{className:`${lt}-arrow`}),kt.createElement(rt.G,Object.assign({},ft,{className:ct,prefixCls:lt}),ut||yt(lt,it,at)))},dt=ft=>{const{prefixCls:ct}=ft,lt=vt(ft,["prefixCls"]),{getPrefixCls:E}=kt.useContext(Ct.E_),z=E("popover",ct),[ot,it]=(0,pt.Z)(z);return ot(kt.createElement(xt,Object.assign({},lt,{prefixCls:z,hashId:it})))};Ke.ZP=dt},60324:function(tn,Ke,Rt){"use strict";var Ft=Rt(92310),ie=Rt.n(Ft),rt=Rt(59301),kt=Rt(77578),Ct=Rt(62892),St=Rt(36355),pt=Rt(6848),vt=Rt(39722),yt=Rt(17356),xt=function(ct,lt){var E={};for(var z in ct)Object.prototype.hasOwnProperty.call(ct,z)&<.indexOf(z)<0&&(E[z]=ct[z]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,z=Object.getOwnPropertySymbols(ct);ot{let{title:lt,content:E,prefixCls:z}=ct;return rt.createElement(rt.Fragment,null,lt&&rt.createElement("div",{className:`${z}-title`},(0,kt.Z)(lt)),rt.createElement("div",{className:`${z}-inner-content`},(0,kt.Z)(E)))},ft=rt.forwardRef((ct,lt)=>{const{prefixCls:E,title:z,content:ot,overlayClassName:it,placement:at="top",trigger:ut="hover",mouseEnterDelay:wt=.1,mouseLeaveDelay:Et=.1,overlayStyle:At={}}=ct,_t=xt(ct,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:Mt}=rt.useContext(St.E_),jt=Mt("popover",E),[Lt,It]=(0,yt.Z)(jt),Ut=Mt(),Xt=ie()(it,It);return Lt(rt.createElement(pt.Z,Object.assign({placement:at,trigger:ut,mouseEnterDelay:wt,mouseLeaveDelay:Et,overlayStyle:At},_t,{prefixCls:jt,overlayClassName:Xt,ref:lt,overlay:z||ot?rt.createElement(dt,{prefixCls:jt,title:z,content:ot}):null,transitionName:(0,Ct.m)(Ut,"zoom-big",_t.transitionName),"data-popover-inject":!0})))});ft._InternalPanelDoNotUseOrYouWillBeFired=vt.ZP,Ke.Z=ft},17356:function(tn,Ke,Rt){"use strict";var Ft=Rt(17313),ie=Rt(29878),rt=Rt(19447),kt=Rt(33166),Ct=Rt(83116),St=Rt(37613);const pt=xt=>{const{componentCls:dt,popoverColor:ft,minWidth:ct,fontWeightStrong:lt,popoverPadding:E,boxShadowSecondary:z,colorTextHeading:ot,borderRadiusLG:it,zIndexPopup:at,marginXS:ut,colorBgElevated:wt,popoverBg:Et}=xt;return[{[dt]:Object.assign(Object.assign({},(0,Ft.Wf)(xt)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:at,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":wt,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${dt}-content`]:{position:"relative"},[`${dt}-inner`]:{backgroundColor:Et,backgroundClip:"padding-box",borderRadius:it,boxShadow:z,padding:E},[`${dt}-title`]:{minWidth:ct,marginBottom:ut,color:ot,fontWeight:lt},[`${dt}-inner-content`]:{color:ft}})},(0,rt.ZP)(xt,{colorBg:"var(--antd-arrow-background-color)"}),{[`${dt}-pure`]:{position:"relative",maxWidth:"none",margin:xt.sizePopupArrow,display:"inline-block",[`${dt}-content`]:{display:"inline-block"}}}]},vt=xt=>{const{componentCls:dt}=xt;return{[dt]:kt.i.map(ft=>{const ct=xt[`${ft}6`];return{[`&${dt}-${ft}`]:{"--antd-arrow-background-color":ct,[`${dt}-inner`]:{backgroundColor:ct},[`${dt}-arrow`]:{background:"transparent"}}}})}},yt=xt=>{const{componentCls:dt,lineWidth:ft,lineType:ct,colorSplit:lt,paddingSM:E,controlHeight:z,fontSize:ot,lineHeight:it,padding:at}=xt,ut=z-Math.round(ot*it),wt=ut/2,Et=ut/2-ft,At=at;return{[dt]:{[`${dt}-inner`]:{padding:0},[`${dt}-title`]:{margin:0,padding:`${wt}px ${At}px ${Et}px`,borderBottom:`${ft}px ${ct} ${lt}`},[`${dt}-inner-content`]:{padding:`${E}px ${At}px`}}}};Ke.Z=(0,Ct.Z)("Popover",xt=>{const{colorBgElevated:dt,colorText:ft,wireframe:ct}=xt,lt=(0,St.TS)(xt,{popoverPadding:12,popoverBg:dt,popoverColor:ft});return[pt(lt),vt(lt),ct&&yt(lt),(0,ie._y)(lt,"zoom-big")]},xt=>({width:177,minWidth:177,zIndexPopup:xt.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},61621:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return Xe}});var Ft=Rt(92310),ie=Rt.n(Ft),rt=Rt(59301),kt=Rt(36355),Ct=Rt(2738),pt=Be=>{const{prefixCls:Te,className:ue,style:$t,size:he,shape:ye}=Be,Qt=ie()({[`${Te}-lg`]:he==="large",[`${Te}-sm`]:he==="small"}),Wt=ie()({[`${Te}-circle`]:ye==="circle",[`${Te}-square`]:ye==="square",[`${Te}-round`]:ye==="round"}),Bt=rt.useMemo(()=>typeof he=="number"?{width:he,height:he,lineHeight:`${he}px`}:{},[he]);return rt.createElement("span",{className:ie()(Te,Qt,Wt,ue),style:Object.assign(Object.assign({},Bt),$t)})},vt=Rt(93083),yt=Rt(83116),xt=Rt(37613);const dt=new vt.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),ft=Be=>({height:Be,lineHeight:`${Be}px`}),ct=Be=>Object.assign({width:Be},ft(Be)),lt=Be=>({background:Be.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:dt,animationDuration:Be.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),E=Be=>Object.assign({width:Be*5,minWidth:Be*5},ft(Be)),z=Be=>{const{skeletonAvatarCls:Te,gradientFromColor:ue,controlHeight:$t,controlHeightLG:he,controlHeightSM:ye}=Be;return{[`${Te}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ue},ct($t)),[`${Te}${Te}-circle`]:{borderRadius:"50%"},[`${Te}${Te}-lg`]:Object.assign({},ct(he)),[`${Te}${Te}-sm`]:Object.assign({},ct(ye))}},ot=Be=>{const{controlHeight:Te,borderRadiusSM:ue,skeletonInputCls:$t,controlHeightLG:he,controlHeightSM:ye,gradientFromColor:Qt}=Be;return{[`${$t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Qt,borderRadius:ue},E(Te)),[`${$t}-lg`]:Object.assign({},E(he)),[`${$t}-sm`]:Object.assign({},E(ye))}},it=Be=>Object.assign({width:Be},ft(Be)),at=Be=>{const{skeletonImageCls:Te,imageSizeBase:ue,gradientFromColor:$t,borderRadiusSM:he}=Be;return{[`${Te}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:$t,borderRadius:he},it(ue*2)),{[`${Te}-path`]:{fill:"#bfbfbf"},[`${Te}-svg`]:Object.assign(Object.assign({},it(ue)),{maxWidth:ue*4,maxHeight:ue*4}),[`${Te}-svg${Te}-svg-circle`]:{borderRadius:"50%"}}),[`${Te}${Te}-circle`]:{borderRadius:"50%"}}},ut=(Be,Te,ue)=>{const{skeletonButtonCls:$t}=Be;return{[`${ue}${$t}-circle`]:{width:Te,minWidth:Te,borderRadius:"50%"},[`${ue}${$t}-round`]:{borderRadius:Te}}},wt=Be=>Object.assign({width:Be*2,minWidth:Be*2},ft(Be)),Et=Be=>{const{borderRadiusSM:Te,skeletonButtonCls:ue,controlHeight:$t,controlHeightLG:he,controlHeightSM:ye,gradientFromColor:Qt}=Be;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${ue}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Qt,borderRadius:Te,width:$t*2,minWidth:$t*2},wt($t))},ut(Be,$t,ue)),{[`${ue}-lg`]:Object.assign({},wt(he))}),ut(Be,he,`${ue}-lg`)),{[`${ue}-sm`]:Object.assign({},wt(ye))}),ut(Be,ye,`${ue}-sm`))},At=Be=>{const{componentCls:Te,skeletonAvatarCls:ue,skeletonTitleCls:$t,skeletonParagraphCls:he,skeletonButtonCls:ye,skeletonInputCls:Qt,skeletonImageCls:Wt,controlHeight:Bt,controlHeightLG:te,controlHeightSM:me,gradientFromColor:Jt,padding:Ie,marginSM:Ue,borderRadius:Je,titleHeight:Ze,blockRadius:nn,paragraphLiHeight:fn,controlHeightXS:An,paragraphMarginTop:En}=Be;return{[`${Te}`]:{display:"table",width:"100%",[`${Te}-header`]:{display:"table-cell",paddingInlineEnd:Ie,verticalAlign:"top",[`${ue}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Jt},ct(Bt)),[`${ue}-circle`]:{borderRadius:"50%"},[`${ue}-lg`]:Object.assign({},ct(te)),[`${ue}-sm`]:Object.assign({},ct(me))},[`${Te}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${$t}`]:{width:"100%",height:Ze,background:Jt,borderRadius:nn,[`+ ${he}`]:{marginBlockStart:me}},[`${he}`]:{padding:0,"> li":{width:"100%",height:fn,listStyle:"none",background:Jt,borderRadius:nn,"+ li":{marginBlockStart:An}}},[`${he}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${Te}-content`]:{[`${$t}, ${he} > li`]:{borderRadius:Je}}},[`${Te}-with-avatar ${Te}-content`]:{[`${$t}`]:{marginBlockStart:Ue,[`+ ${he}`]:{marginBlockStart:En}}},[`${Te}${Te}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Et(Be)),z(Be)),ot(Be)),at(Be)),[`${Te}${Te}-block`]:{width:"100%",[`${ye}`]:{width:"100%"},[`${Qt}`]:{width:"100%"}},[`${Te}${Te}-active`]:{[` ${$t}, ${he} > li, ${ue}, ${ye}, ${Qt}, ${Wt} - `]:Object.assign({},lt(Be))}}};var _t=(0,yt.Z)("Skeleton",Be=>{const{componentCls:Te}=Be,ue=(0,xt.TS)(Be,{skeletonAvatarCls:`${Te}-avatar`,skeletonTitleCls:`${Te}-title`,skeletonParagraphCls:`${Te}-paragraph`,skeletonButtonCls:`${Te}-button`,skeletonInputCls:`${Te}-input`,skeletonImageCls:`${Te}-image`,imageSizeBase:Be.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${Be.gradientFromColor} 25%, ${Be.gradientToColor} 37%, ${Be.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[At(ue)]},Be=>{const{colorFillContent:Te,colorFill:ue}=Be,$t=Te,he=ue;return{color:$t,colorGradientEnd:he,gradientFromColor:$t,gradientToColor:he,titleHeight:Be.controlHeight/2,blockRadius:Be.borderRadiusSM,paragraphMarginTop:Be.marginLG+Be.marginXXS,paragraphLiHeight:Be.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),jt=Be=>{const{prefixCls:Te,className:ue,rootClassName:$t,active:he,shape:ye="circle",size:Qt="default"}=Be,{getPrefixCls:Wt}=rt.useContext(kt.E_),Bt=Wt("skeleton",Te),[te,ge]=_t(Bt),Jt=(0,Ct.Z)(Be,["prefixCls","className"]),Ie=ie()(Bt,`${Bt}-element`,{[`${Bt}-active`]:he},ue,$t,ge);return te(rt.createElement("div",{className:Ie},rt.createElement(pt,Object.assign({prefixCls:`${Bt}-avatar`,shape:ye,size:Qt},Jt))))},It=Be=>{const{prefixCls:Te,className:ue,rootClassName:$t,active:he,block:ye=!1,size:Qt="default"}=Be,{getPrefixCls:Wt}=rt.useContext(kt.E_),Bt=Wt("skeleton",Te),[te,ge]=_t(Bt),Jt=(0,Ct.Z)(Be,["prefixCls"]),Ie=ie()(Bt,`${Bt}-element`,{[`${Bt}-active`]:he,[`${Bt}-block`]:ye},ue,$t,ge);return te(rt.createElement("div",{className:Ie},rt.createElement(pt,Object.assign({prefixCls:`${Bt}-button`,size:Qt},Jt))))};const Ut="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var Gt=Be=>{const{prefixCls:Te,className:ue,rootClassName:$t,style:he,active:ye}=Be,{getPrefixCls:Qt}=rt.useContext(kt.E_),Wt=Qt("skeleton",Te),[Bt,te]=_t(Wt),ge=ie()(Wt,`${Wt}-element`,{[`${Wt}-active`]:ye},ue,$t,te);return Bt(rt.createElement("div",{className:ge},rt.createElement("div",{className:ie()(`${Wt}-image`,ue),style:he},rt.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Wt}-image-svg`},rt.createElement("path",{d:Ut,className:`${Wt}-image-path`})))))},Ht=Be=>{const{prefixCls:Te,className:ue,rootClassName:$t,active:he,block:ye,size:Qt="default"}=Be,{getPrefixCls:Wt}=rt.useContext(kt.E_),Bt=Wt("skeleton",Te),[te,ge]=_t(Bt),Jt=(0,Ct.Z)(Be,["prefixCls"]),Ie=ie()(Bt,`${Bt}-element`,{[`${Bt}-active`]:he,[`${Bt}-block`]:ye},ue,$t,ge);return te(rt.createElement("div",{className:Ie},rt.createElement(pt,Object.assign({prefixCls:`${Bt}-input`,size:Qt},Jt))))},ne=Rt(72308),ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},ve=ae,Kt=Rt(7657),re=function(Te,ue){return rt.createElement(Kt.Z,(0,ne.Z)({},Te,{ref:ue,icon:ve}))},we=rt.forwardRef(re),Me=we,me=Be=>{const{prefixCls:Te,className:ue,rootClassName:$t,style:he,active:ye,children:Qt}=Be,{getPrefixCls:Wt}=rt.useContext(kt.E_),Bt=Wt("skeleton",Te),[te,ge]=_t(Bt),Jt=ie()(Bt,`${Bt}-element`,{[`${Bt}-active`]:ye},ge,ue,$t),Ie=Qt!=null?Qt:rt.createElement(Me,null);return te(rt.createElement("div",{className:Jt},rt.createElement("div",{className:ie()(`${Bt}-image`,ue),style:he},Ie)))},fe=Rt(80702),_e=Be=>{const Te=Wt=>{const{width:Bt,rows:te=2}=Be;if(Array.isArray(Bt))return Bt[Wt];if(te-1===Wt)return Bt},{prefixCls:ue,className:$t,style:he,rows:ye}=Be,Qt=(0,fe.Z)(Array(ye)).map((Wt,Bt)=>rt.createElement("li",{key:Bt,style:{width:Te(Bt)}}));return rt.createElement("ul",{className:ie()(ue,$t),style:he},Qt)},He=Be=>{let{prefixCls:Te,className:ue,width:$t,style:he}=Be;return rt.createElement("h3",{className:ie()(Te,ue),style:Object.assign({width:$t},he)})};function Se(Be){return Be&&typeof Be=="object"?Be:{}}function xe(Be,Te){return Be&&!Te?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function le(Be,Te){return!Be&&Te?{width:"38%"}:Be&&Te?{width:"50%"}:{}}function Ne(Be,Te){const ue={};return(!Be||!Te)&&(ue.width="61%"),!Be&&Te?ue.rows=3:ue.rows=2,ue}const se=Be=>{const{prefixCls:Te,loading:ue,className:$t,rootClassName:he,style:ye,children:Qt,avatar:Wt=!1,title:Bt=!0,paragraph:te=!0,active:ge,round:Jt}=Be,{getPrefixCls:Ie,direction:Ue,skeleton:Je}=rt.useContext(kt.E_),Ze=Ie("skeleton",Te),[nn,fn]=_t(Ze);if(ue||!("loading"in Be)){const An=!!Wt,En=!!Bt,Dn=!!te;let ii;if(An){const Oi=Object.assign(Object.assign({prefixCls:`${Ze}-avatar`},xe(En,Dn)),Se(Wt));ii=rt.createElement("div",{className:`${Ze}-header`},rt.createElement(pt,Object.assign({},Oi)))}let mi;if(En||Dn){let Oi;if(En){const pi=Object.assign(Object.assign({prefixCls:`${Ze}-title`},le(An,Dn)),Se(Bt));Oi=rt.createElement(He,Object.assign({},pi))}let ki;if(Dn){const pi=Object.assign(Object.assign({prefixCls:`${Ze}-paragraph`},Ne(An,En)),Se(te));ki=rt.createElement(_e,Object.assign({},pi))}mi=rt.createElement("div",{className:`${Ze}-content`},Oi,ki)}const Ti=ie()(Ze,{[`${Ze}-with-avatar`]:An,[`${Ze}-active`]:ge,[`${Ze}-rtl`]:Ue==="rtl",[`${Ze}-round`]:Jt},Je==null?void 0:Je.className,$t,he,fn);return nn(rt.createElement("div",{className:Ti,style:Object.assign(Object.assign({},Je==null?void 0:Je.style),ye)},ii,mi))}return typeof Qt!="undefined"?Qt:null};se.Button=It,se.Avatar=jt,se.Input=Ht,se.Image=Gt,se.Node=me;var Ae=se,Xe=Ae},31797:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{default:function(){return _t}});var Ft=Rt(59301),ie=Rt(56762),rt=Rt(92343),kt=Rt(92310),Ct=Rt.n(kt),St=Rt(36355),pt=Rt(61621),yt=Mt=>{const{value:jt,formatter:Lt,precision:It,decimalSeparator:Ut,groupSeparator:Xt="",prefixCls:Gt}=Mt;let Yt;if(typeof Lt=="function")Yt=Lt(jt);else{const Ht=String(jt),ne=Ht.match(/^(-?)(\d*)(\.(\d+))?$/);if(!ne||Ht==="-")Yt=Ht;else{const ae=ne[1];let ve=ne[2]||"0",Kt=ne[4]||"";ve=ve.replace(/\B(?=(\d{3})+(?!\d))/g,Xt),typeof It=="number"&&(Kt=Kt.padEnd(It,"0").slice(0,It>0?It:0)),Kt&&(Kt=`${Ut}${Kt}`),Yt=[Ft.createElement("span",{key:"int",className:`${Gt}-content-value-int`},ae,ve),Kt&&Ft.createElement("span",{key:"decimal",className:`${Gt}-content-value-decimal`},Kt)]}}return Ft.createElement("span",{className:`${Gt}-content-value`},Yt)},xt=Rt(17313),dt=Rt(83116),ft=Rt(37613);const ct=Mt=>{const{componentCls:jt,marginXXS:Lt,padding:It,colorTextDescription:Ut,titleFontSize:Xt,colorTextHeading:Gt,contentFontSize:Yt,fontFamily:Ht}=Mt;return{[`${jt}`]:Object.assign(Object.assign({},(0,xt.Wf)(Mt)),{[`${jt}-title`]:{marginBottom:Lt,color:Ut,fontSize:Xt},[`${jt}-skeleton`]:{paddingTop:It},[`${jt}-content`]:{color:Gt,fontSize:Yt,fontFamily:Ht,[`${jt}-content-value`]:{display:"inline-block",direction:"ltr"},[`${jt}-content-prefix, ${jt}-content-suffix`]:{display:"inline-block"},[`${jt}-content-prefix`]:{marginInlineEnd:Lt},[`${jt}-content-suffix`]:{marginInlineStart:Lt}}})}};var lt=(0,dt.Z)("Statistic",Mt=>{const jt=(0,ft.TS)(Mt,{});return[ct(jt)]},Mt=>{const{fontSizeHeading3:jt,fontSize:Lt}=Mt;return{titleFontSize:Lt,contentFontSize:jt}}),z=Mt=>{const{prefixCls:jt,className:Lt,rootClassName:It,style:Ut,valueStyle:Xt,value:Gt=0,title:Yt,valueRender:Ht,prefix:ne,suffix:ae,loading:ve=!1,onMouseEnter:Kt,onMouseLeave:re,decimalSeparator:we=".",groupSeparator:Me=","}=Mt,{getPrefixCls:ke,direction:me,statistic:fe}=Ft.useContext(St.E_),pe=ke("statistic",jt),[_e,je]=lt(pe),He=Ft.createElement(yt,Object.assign({decimalSeparator:we,groupSeparator:Me,prefixCls:pe},Mt,{value:Gt})),Se=Ct()(pe,{[`${pe}-rtl`]:me==="rtl"},fe==null?void 0:fe.className,Lt,It,je);return _e(Ft.createElement("div",{className:Se,style:Object.assign(Object.assign({},fe==null?void 0:fe.style),Ut),onMouseEnter:Kt,onMouseLeave:re},Yt&&Ft.createElement("div",{className:`${pe}-title`},Yt),Ft.createElement(pt.Z,{paragraph:!1,loading:ve,className:`${pe}-skeleton`},Ft.createElement("div",{style:Xt,className:`${pe}-content`},ne&&Ft.createElement("span",{className:`${pe}-content-prefix`},ne),Ht?Ht(He):He,ae&&Ft.createElement("span",{className:`${pe}-content-suffix`},ae)))))};const ot=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function it(Mt,jt){let Lt=Mt;const It=/\[[^\]]*]/g,Ut=(jt.match(It)||[]).map(Ht=>Ht.slice(1,-1)),Xt=jt.replace(It,"[]"),Gt=ot.reduce((Ht,ne)=>{let[ae,ve]=ne;if(Ht.includes(ae)){const Kt=Math.floor(Lt/ve);return Lt-=Kt*ve,Ht.replace(new RegExp(`${ae}+`,"g"),re=>{const we=re.length;return Kt.toString().padStart(we,"0")})}return Ht},Xt);let Yt=0;return Gt.replace(It,()=>{const Ht=Ut[Yt];return Yt+=1,Ht})}function at(Mt,jt){const{format:Lt=""}=jt,It=new Date(Mt).getTime(),Ut=Date.now(),Xt=Math.max(It-Ut,0);return it(Xt,Lt)}const ut=1e3/30;function wt(Mt){return new Date(Mt).getTime()}const Et=Mt=>{const{value:jt,format:Lt="HH:mm:ss",onChange:It,onFinish:Ut}=Mt,Xt=(0,ie.Z)(),Gt=Ft.useRef(null),Yt=()=>{Ut==null||Ut(),Gt.current&&(clearInterval(Gt.current),Gt.current=null)},Ht=()=>{const ve=wt(jt);ve>=Date.now()&&(Gt.current=setInterval(()=>{Xt(),It==null||It(ve-Date.now()),ve(Ht(),()=>{Gt.current&&(clearInterval(Gt.current),Gt.current=null)}),[jt]);const ne=(ve,Kt)=>at(ve,Object.assign(Object.assign({},Kt),{format:Lt})),ae=ve=>(0,rt.Tm)(ve,{title:void 0});return Ft.createElement(z,Object.assign({},Mt,{valueRender:ae,formatter:ne}))};var At=Ft.memo(Et);z.Countdown=At;var _t=z},78673:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return Xt}});var Ft=Rt(58617),ie=Rt(92310),rt=Rt.n(ie),kt=Rt(72308),Ct=Rt(49618),St=Rt(52487),pt=Rt(74416),vt=Rt(59301),yt=Rt(18929),xt=Rt(10228),dt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ft=vt.forwardRef(function(Gt,Yt){var Ht,ne=Gt.prefixCls,ae=ne===void 0?"rc-switch":ne,ve=Gt.className,Kt=Gt.checked,re=Gt.defaultChecked,we=Gt.disabled,Me=Gt.loadingIcon,ke=Gt.checkedChildren,me=Gt.unCheckedChildren,fe=Gt.onClick,pe=Gt.onChange,_e=Gt.onKeyDown,je=(0,pt.Z)(Gt,dt),He=(0,yt.Z)(!1,{value:Kt,defaultValue:re}),Se=(0,St.Z)(He,2),xe=Se[0],le=Se[1];function Ne(Be,Te){var ue=xe;return we||(ue=Be,le(ue),pe==null||pe(ue,Te)),ue}function se(Be){Be.which===xt.Z.LEFT?Ne(!1,Be):Be.which===xt.Z.RIGHT&&Ne(!0,Be),_e==null||_e(Be)}function Ae(Be){var Te=Ne(!xe,Be);fe==null||fe(Te,Be)}var Xe=rt()(ae,ve,(Ht={},(0,Ct.Z)(Ht,"".concat(ae,"-checked"),xe),(0,Ct.Z)(Ht,"".concat(ae,"-disabled"),we),Ht));return vt.createElement("button",(0,kt.Z)({},je,{type:"button",role:"switch","aria-checked":xe,disabled:we,className:Xe,ref:Yt,onKeyDown:se,onClick:Ae}),Me,vt.createElement("span",{className:"".concat(ae,"-inner")},vt.createElement("span",{className:"".concat(ae,"-inner-checked")},ke),vt.createElement("span",{className:"".concat(ae,"-inner-unchecked")},me)))});ft.displayName="Switch";var ct=ft,lt=Rt(14088),E=Rt(36355),z=Rt(1684),ot=Rt(19716),it=Rt(64993),at=Rt(17313),ut=Rt(83116),wt=Rt(37613);const Et=Gt=>{const{componentCls:Yt,trackHeightSM:Ht,trackPadding:ne,trackMinWidthSM:ae,innerMinMarginSM:ve,innerMaxMarginSM:Kt,handleSizeSM:re}=Gt,we=`${Yt}-inner`;return{[Yt]:{[`&${Yt}-small`]:{minWidth:ae,height:Ht,lineHeight:`${Ht}px`,[`${Yt}-inner`]:{paddingInlineStart:Kt,paddingInlineEnd:ve,[`${we}-checked`]:{marginInlineStart:`calc(-100% + ${re+ne*2}px - ${Kt*2}px)`,marginInlineEnd:`calc(100% - ${re+ne*2}px + ${Kt*2}px)`},[`${we}-unchecked`]:{marginTop:-Ht,marginInlineStart:0,marginInlineEnd:0}},[`${Yt}-handle`]:{width:re,height:re},[`${Yt}-loading-icon`]:{top:(re-Gt.switchLoadingIconSize)/2,fontSize:Gt.switchLoadingIconSize},[`&${Yt}-checked`]:{[`${Yt}-inner`]:{paddingInlineStart:ve,paddingInlineEnd:Kt,[`${we}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${we}-unchecked`]:{marginInlineStart:`calc(100% - ${re+ne*2}px + ${Kt*2}px)`,marginInlineEnd:`calc(-100% + ${re+ne*2}px - ${Kt*2}px)`}},[`${Yt}-handle`]:{insetInlineStart:`calc(100% - ${re+ne}px)`}},[`&:not(${Yt}-disabled):active`]:{[`&:not(${Yt}-checked) ${we}`]:{[`${we}-unchecked`]:{marginInlineStart:Gt.marginXXS/2,marginInlineEnd:-Gt.marginXXS/2}},[`&${Yt}-checked ${we}`]:{[`${we}-checked`]:{marginInlineStart:-Gt.marginXXS/2,marginInlineEnd:Gt.marginXXS/2}}}}}}},At=Gt=>{const{componentCls:Yt,handleSize:Ht}=Gt;return{[Yt]:{[`${Yt}-loading-icon${Gt.iconCls}`]:{position:"relative",top:(Ht-Gt.fontSize)/2,color:Gt.switchLoadingIconColor,verticalAlign:"top"},[`&${Yt}-checked ${Yt}-loading-icon`]:{color:Gt.switchColor}}}},_t=Gt=>{const{componentCls:Yt,motion:Ht,trackPadding:ne,handleBg:ae,handleShadow:ve,handleSize:Kt}=Gt,re=`${Yt}-handle`;return{[Yt]:{[re]:{position:"absolute",top:ne,insetInlineStart:ne,width:Kt,height:Kt,transition:`all ${Gt.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:ae,borderRadius:Kt/2,boxShadow:ve,transition:`all ${Gt.switchDuration} ease-in-out`,content:'""'}},[`&${Yt}-checked ${re}`]:{insetInlineStart:`calc(100% - ${Kt+ne}px)`},[`&:not(${Yt}-disabled):active`]:Ht?{[`${re}::before`]:{insetInlineEnd:Gt.switchHandleActiveInset,insetInlineStart:0},[`&${Yt}-checked ${re}::before`]:{insetInlineEnd:0,insetInlineStart:Gt.switchHandleActiveInset}}:{}}}},Mt=Gt=>{const{componentCls:Yt,trackHeight:Ht,trackPadding:ne,innerMinMargin:ae,innerMaxMargin:ve,handleSize:Kt}=Gt,re=`${Yt}-inner`;return{[Yt]:{[re]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:ve,paddingInlineEnd:ae,transition:`padding-inline-start ${Gt.switchDuration} ease-in-out, padding-inline-end ${Gt.switchDuration} ease-in-out`,[`${re}-checked, ${re}-unchecked`]:{display:"block",color:Gt.colorTextLightSolid,fontSize:Gt.fontSizeSM,transition:`margin-inline-start ${Gt.switchDuration} ease-in-out, margin-inline-end ${Gt.switchDuration} ease-in-out`,pointerEvents:"none"},[`${re}-checked`]:{marginInlineStart:`calc(-100% + ${Kt+ne*2}px - ${ve*2}px)`,marginInlineEnd:`calc(100% - ${Kt+ne*2}px + ${ve*2}px)`},[`${re}-unchecked`]:{marginTop:-Ht,marginInlineStart:0,marginInlineEnd:0}},[`&${Yt}-checked ${re}`]:{paddingInlineStart:ae,paddingInlineEnd:ve,[`${re}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${re}-unchecked`]:{marginInlineStart:`calc(100% - ${Kt+ne*2}px + ${ve*2}px)`,marginInlineEnd:`calc(-100% + ${Kt+ne*2}px - ${ve*2}px)`}},[`&:not(${Yt}-disabled):active`]:{[`&:not(${Yt}-checked) ${re}`]:{[`${re}-unchecked`]:{marginInlineStart:ne*2,marginInlineEnd:-ne*2}},[`&${Yt}-checked ${re}`]:{[`${re}-checked`]:{marginInlineStart:-ne*2,marginInlineEnd:ne*2}}}}}},jt=Gt=>{const{componentCls:Yt,trackHeight:Ht,trackMinWidth:ne}=Gt;return{[Yt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,at.Wf)(Gt)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:ne,height:Ht,lineHeight:`${Ht}px`,verticalAlign:"middle",background:Gt.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Gt.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Yt}-disabled)`]:{background:Gt.colorTextTertiary}}),(0,at.Qy)(Gt)),{[`&${Yt}-checked`]:{background:Gt.switchColor,[`&:hover:not(${Yt}-disabled)`]:{background:Gt.colorPrimaryHover}},[`&${Yt}-loading, &${Yt}-disabled`]:{cursor:"not-allowed",opacity:Gt.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Yt}-rtl`]:{direction:"rtl"}})}};var Lt=(0,ut.Z)("Switch",Gt=>{const Yt=(0,wt.TS)(Gt,{switchDuration:Gt.motionDurationMid,switchColor:Gt.colorPrimary,switchDisabledOpacity:Gt.opacityLoading,switchLoadingIconSize:Gt.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${Gt.opacityLoading})`,switchHandleActiveInset:"-30%"});return[jt(Yt),Mt(Yt),_t(Yt),At(Yt),Et(Yt)]},Gt=>{const{fontSize:Yt,lineHeight:Ht,controlHeight:ne,colorWhite:ae}=Gt,ve=Yt*Ht,Kt=ne/2,re=2,we=ve-re*2,Me=Kt-re*2;return{trackHeight:ve,trackHeightSM:Kt,trackMinWidth:we*2+re*4,trackMinWidthSM:Me*2+re*2,trackPadding:re,handleBg:ae,handleSize:we,handleSizeSM:Me,handleShadow:`0 2px 4px 0 ${new it.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:we/2,innerMaxMargin:we+re+re*2,innerMinMarginSM:Me/2,innerMaxMarginSM:Me+re+re*2}}),It=function(Gt,Yt){var Ht={};for(var ne in Gt)Object.prototype.hasOwnProperty.call(Gt,ne)&&Yt.indexOf(ne)<0&&(Ht[ne]=Gt[ne]);if(Gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,ne=Object.getOwnPropertySymbols(Gt);ae{const{prefixCls:Ht,size:ne,disabled:ae,loading:ve,className:Kt,rootClassName:re,style:we}=Gt,Me=It(Gt,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:ke,direction:me,switch:fe}=vt.useContext(E.E_),pe=vt.useContext(z.Z),_e=(ae!=null?ae:pe)||ve,je=ke("switch",Ht),He=vt.createElement("div",{className:`${je}-handle`},ve&&vt.createElement(Ft.Z,{className:`${je}-loading-icon`})),[Se,xe]=Lt(je),le=(0,ot.Z)(ne),Ne=rt()(fe==null?void 0:fe.className,{[`${je}-small`]:le==="small",[`${je}-loading`]:ve,[`${je}-rtl`]:me==="rtl"},Kt,re,xe),se=Object.assign(Object.assign({},fe==null?void 0:fe.style),we);return Se(vt.createElement(lt.Z,{component:"Switch"},vt.createElement(ct,Object.assign({},Me,{prefixCls:je,className:Ne,style:se,disabled:_e,ref:Yt,loadingIcon:He}))))});Ut.__ANT_SWITCH=!0;var Xt=Ut},65615:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return Wt}});var Ft=Rt(59301),ie=Rt(77321),rt=Rt(72308),kt=Rt(62853),Ct=Rt(52487),St=Rt(74416),pt=Rt(43403),vt=Rt(35593),yt=Rt(92310),xt=Rt.n(yt),dt=Rt(34280),ft=Rt(18929),ct=Rt(6089);function lt(Bt){var te=window.innerWidth||document.documentElement.clientWidth,ge=window.innerHeight||document.documentElement.clientHeight,Jt=Bt.getBoundingClientRect(),Ie=Jt.top,Ue=Jt.right,Je=Jt.bottom,Ze=Jt.left;return Ie>=0&&Ze>=0&&Ue<=te&&Je<=ge}function E(Bt,te,ge){var Jt;return(Jt=ge!=null?ge:te)!==null&&Jt!==void 0?Jt:Bt===null?"center":"bottom"}function z(Bt,te,ge,Jt){var Ie=(0,Ft.useState)(void 0),Ue=(0,Ct.Z)(Ie,2),Je=Ue[0],Ze=Ue[1];(0,dt.Z)(function(){var Ti=typeof Bt=="function"?Bt():Bt;Ze(Ti||null)});var nn=(0,Ft.useState)(null),fn=(0,Ct.Z)(nn,2),An=fn[0],En=fn[1],Dn=(0,ct.Z)(function(){if(Je){!lt(Je)&&te&&Je.scrollIntoView(Jt);var Ti=Je.getBoundingClientRect(),Oi=Ti.left,ki=Ti.top,pi=Ti.width,Bi=Ti.height,Or={left:Oi,top:ki,width:pi,height:Bi,radius:0};En(function(yr){return JSON.stringify(yr)!==JSON.stringify(Or)?Or:yr})}else En(null)}),ii=function(Oi){var ki;return(ki=Array.isArray(ge==null?void 0:ge.offset)?ge==null?void 0:ge.offset[Oi]:ge==null?void 0:ge.offset)!==null&&ki!==void 0?ki:6};(0,dt.Z)(function(){return Dn(),window.addEventListener("resize",Dn),function(){window.removeEventListener("resize",Dn)}},[Je,te,Dn]);var mi=(0,Ft.useMemo)(function(){if(!An)return An;var Ti=ii(0),Oi=ii(1),ki=(ge==null?void 0:ge.radius)||2;return{left:An.left-Ti,top:An.top-Oi,width:An.width+Ti*2,height:An.height+Oi*2,radius:ki}},[An,ge]);return[mi,Je]}var ot=Rt(80402),it={fill:"transparent",pointerEvents:"auto"},at=function(te){var ge=te.prefixCls,Jt=te.rootClassName,Ie=te.pos,Ue=te.showMask,Je=te.style,Ze=Je===void 0?{}:Je,nn=te.fill,fn=nn===void 0?"rgba(0,0,0,0.5)":nn,An=te.open,En=te.animated,Dn=te.zIndex,ii=(0,ot.Z)(),mi="".concat(ge,"-mask-").concat(ii),Ti=(0,kt.Z)(En)==="object"?En==null?void 0:En.placeholder:En;return Ft.createElement(pt.Z,{open:An,autoLock:!0},Ft.createElement("div",{className:xt()("".concat(ge,"-mask"),Jt),style:(0,ie.Z)({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:Dn,pointerEvents:"none"},Ze)},Ue?Ft.createElement("svg",{style:{width:"100%",height:"100%"}},Ft.createElement("defs",null,Ft.createElement("mask",{id:mi},Ft.createElement("rect",{x:"0",y:"0",width:"100vw",height:"100vh",fill:"white"}),Ie&&Ft.createElement("rect",{x:Ie.left,y:Ie.top,rx:Ie.radius,width:Ie.width,height:Ie.height,fill:"black",className:Ti?"".concat(ge,"-placeholder-animated"):""}))),Ft.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:fn,mask:"url(#".concat(mi,")")}),Ie&&Ft.createElement(Ft.Fragment,null,Ft.createElement("rect",(0,rt.Z)({},it,{x:"0",y:"0",width:"100%",height:Ie.top})),Ft.createElement("rect",(0,rt.Z)({},it,{x:"0",y:"0",width:Ie.left,height:"100%"})),Ft.createElement("rect",(0,rt.Z)({},it,{x:"0",y:Ie.top+Ie.height,width:"100%",height:"calc(100vh - ".concat(Ie.top+Ie.height,"px)")})),Ft.createElement("rect",(0,rt.Z)({},it,{x:Ie.left+Ie.width,y:"0",width:"calc(100vw - ".concat(Ie.left+Ie.width,"px)"),height:"100%"})))):null))},ut=at,wt={adjustX:1,adjustY:1},Et=[0,0],At={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function _t(){var Bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,te={};return Object.keys(At).forEach(function(ge){te[ge]=(0,ie.Z)((0,ie.Z)({},At[ge]),{},{autoArrow:Bt,targetOffset:Et})}),te}var Mt=_t(),jt=Rt(80702);function Lt(Bt){var te=Bt.prefixCls,ge=Bt.current,Jt=Bt.total,Ie=Bt.title,Ue=Bt.description,Je=Bt.onClose,Ze=Bt.onPrev,nn=Bt.onNext,fn=Bt.onFinish,An=Bt.className,En=Bt.closeIcon,Dn=En!==!1&&En!==null,ii=En!==void 0&&En!==!0?En:Ft.createElement("span",{className:"".concat(te,"-close-x")},"\xD7");return Ft.createElement("div",{className:xt()("".concat(te,"-content"),An)},Ft.createElement("div",{className:"".concat(te,"-inner")},Dn&&Ft.createElement("button",{type:"button",onClick:Je,"aria-label":"Close",className:"".concat(te,"-close")},ii),Ft.createElement("div",{className:"".concat(te,"-header")},Ft.createElement("div",{className:"".concat(te,"-title")},Ie)),Ft.createElement("div",{className:"".concat(te,"-description")},Ue),Ft.createElement("div",{className:"".concat(te,"-footer")},Ft.createElement("div",{className:"".concat(te,"-sliders")},Jt>1?(0,jt.Z)(Array.from({length:Jt}).keys()).map(function(mi,Ti){return Ft.createElement("span",{key:mi,className:Ti===ge?"active":""})}):null),Ft.createElement("div",{className:"".concat(te,"-buttons")},ge!==0?Ft.createElement("button",{className:"".concat(te,"-prev-btn"),onClick:Ze},"Prev"):null,ge===Jt-1?Ft.createElement("button",{className:"".concat(te,"-finish-btn"),onClick:fn},"Finish"):Ft.createElement("button",{className:"".concat(te,"-next-btn"),onClick:nn},"Next")))))}var It=function(te){var ge=te.current,Jt=te.renderPanel;return Ft.createElement(Ft.Fragment,null,typeof Jt=="function"?Jt(te,ge):Ft.createElement(Lt,te))},Ut=It,Xt=["prefixCls","steps","defaultCurrent","current","onChange","onClose","onFinish","open","mask","arrow","rootClassName","placement","renderPanel","gap","animated","scrollIntoViewOptions","zIndex","closeIcon"],Gt={left:"50%",top:"50%",width:1,height:1},Yt=function(te){var ge=te.prefixCls,Jt=ge===void 0?"rc-tour":ge,Ie=te.steps,Ue=Ie===void 0?[]:Ie,Je=te.defaultCurrent,Ze=te.current,nn=te.onChange,fn=te.onClose,An=te.onFinish,En=te.open,Dn=te.mask,ii=Dn===void 0?!0:Dn,mi=te.arrow,Ti=mi===void 0?!0:mi,Oi=te.rootClassName,ki=te.placement,pi=te.renderPanel,Bi=te.gap,Or=te.animated,yr=te.scrollIntoViewOptions,lr=yr===void 0?!0:yr,Si=te.zIndex,ee=Si===void 0?1001:Si,Ds=te.closeIcon,mr=(0,St.Z)(te,Xt),ms=Ft.useRef(),Xs=(0,ft.Z)(0,{value:Ze,defaultValue:Je}),Do=(0,Ct.Z)(Xs,2),Oo=Do[0],Gr=Do[1],sa=(0,ft.Z)(void 0,{value:En,postState:function(sn){return Oo<0||Oo>=Ue.length?!1:sn!=null?sn:!0}}),dn=(0,Ct.Z)(sa,2),en=dn[0],qe=dn[1],zn=Ft.useRef(en);(0,dt.Z)(function(){en&&!zn.current&&Gr(0),zn.current=en},[en]);var Jn=Ue[Oo]||{},hi=Jn.target,bn=Jn.placement,Bn=Jn.style,Xi=Jn.arrow,dr=Jn.className,ir=Jn.mask,We=Jn.scrollIntoViewOptions,Nn=Jn.closeIcon,ti=en&&(ir!=null?ir:ii),pr=Nn!=null?Nn:Ds,on=We!=null?We:lr,Cn=z(hi,En,Bi,on),xi=(0,Ct.Z)(Cn,2),Zi=xi[0],Wi=xi[1],oi=E(Wi,ki,bn),ri=Wi?typeof Xi=="undefined"?Ti:Xi:!1,Zn=(0,kt.Z)(ri)==="object"?ri.pointAtCenter:!1;(0,dt.Z)(function(){var Mi;(Mi=ms.current)===null||Mi===void 0||Mi.forceAlign()},[Zn,Oo]);var ur=function(sn){Gr(sn),nn==null||nn(sn)};if(Wi===void 0)return null;var Yr=function(){qe(!1),fn==null||fn(Oo)},br=function(){return Ft.createElement(Ut,(0,rt.Z)({arrow:ri,key:"content",prefixCls:Jt,total:Ue.length,renderPanel:pi,onPrev:function(){ur(Oo-1)},onNext:function(){ur(Oo+1)},onClose:Yr,current:Oo,onFinish:function(){Yr(),An==null||An()},closeIcon:pr},Ue[Oo]))},mn=typeof ti=="boolean"?ti:!!ti,er=typeof ti=="boolean"?void 0:ti,cr=function(sn){return sn||Wi||document.body};return Ft.createElement(Ft.Fragment,null,Ft.createElement(ut,{zIndex:ee,prefixCls:Jt,pos:Zi,showMask:mn,style:er==null?void 0:er.style,fill:er==null?void 0:er.color,open:en,animated:Or,rootClassName:Oi}),Ft.createElement(vt.Z,(0,rt.Z)({builtinPlacements:_t(Zn)},mr,{ref:ms,popupStyle:Bn,popupPlacement:oi,popupVisible:en,popupClassName:xt()(Oi,dr),prefixCls:Jt,popup:br,forceRender:!1,destroyPopupOnHide:!0,zIndex:ee,getTriggerDOMNode:cr,arrow:!!ri}),Ft.createElement(pt.Z,{open:en,autoLock:!0},Ft.createElement("div",{className:xt()(Oi,"".concat(Jt,"-target-placeholder")),style:(0,ie.Z)((0,ie.Z)({},Zi||Gt),{},{position:"fixed",pointerEvents:"none"})}))))},Ht=Yt,ne=Ht,ae=Rt(79676),ve=Rt(36355),Kt=Rt(88088),re=Rt(99267),we=Rt(3113),Me=Rt(9763),ke=Rt(31724),me=Rt(47729);function fe(Bt){return Bt!=null}var _e=Bt=>{let{stepProps:te,current:ge,type:Jt,indicatorsRender:Ie,closeIcon:Ue}=Bt;var Je,Ze;const{prefixCls:nn,total:fn=1,title:An,onClose:En,onPrev:Dn,onNext:ii,onFinish:mi,cover:Ti,description:Oi,nextButtonProps:ki,prevButtonProps:pi,type:Bi,className:Or,closeIcon:yr}=te,lr=Bi!=null?Bi:Jt,Si=yr!=null?yr:Ue,ee=Si!==!1&&Si!==null,[Ds,mr]=(0,me.Z)(ee,Si,Jn=>Ft.createElement("span",{onClick:En,"aria-label":"Close",className:`${nn}-close`},Jn),Ft.createElement(re.Z,{className:`${nn}-close-icon`}),!0),ms=ge===fn-1,Xs=()=>{var Jn;Dn==null||Dn(),(Jn=pi==null?void 0:pi.onClick)===null||Jn===void 0||Jn.call(pi)},Do=()=>{var Jn;ms?mi==null||mi():ii==null||ii(),(Jn=ki==null?void 0:ki.onClick)===null||Jn===void 0||Jn.call(ki)},Oo=fe(An)?Ft.createElement("div",{className:`${nn}-header`},Ft.createElement("div",{className:`${nn}-title`},An)):null,Gr=fe(Oi)?Ft.createElement("div",{className:`${nn}-description`},Oi):null,sa=fe(Ti)?Ft.createElement("div",{className:`${nn}-cover`},Ti):null;let dn;Ie?dn=Ie(ge,fn):dn=(0,jt.Z)(Array.from({length:fn}).keys()).map((Jn,hi)=>Ft.createElement("span",{key:Jn,className:xt()(hi===ge&&`${nn}-indicator-active`,`${nn}-indicator`)}));const en=lr==="primary"?"default":"primary",qe={type:"default",ghost:lr==="primary"},[zn]=(0,Me.Z)("Tour",ke.Z.Tour);return Ft.createElement("div",{className:xt()(Or,`${nn}-content`)},Ft.createElement("div",{className:`${nn}-inner`},Ds&&mr,sa,Oo,Gr,Ft.createElement("div",{className:`${nn}-footer`},fn>1&&Ft.createElement("div",{className:`${nn}-indicators`},dn),Ft.createElement("div",{className:`${nn}-buttons`},ge!==0?Ft.createElement(we.ZP,Object.assign({},qe,pi,{onClick:Xs,size:"small",className:xt()(`${nn}-prev-btn`,pi==null?void 0:pi.className)}),(Je=pi==null?void 0:pi.children)!==null&&Je!==void 0?Je:zn==null?void 0:zn.Previous):null,Ft.createElement(we.ZP,Object.assign({type:en},ki,{onClick:Do,size:"small",className:xt()(`${nn}-next-btn`,ki==null?void 0:ki.className)}),(Ze=ki==null?void 0:ki.children)!==null&&Ze!==void 0?Ze:ms?zn==null?void 0:zn.Finish:zn==null?void 0:zn.Next)))))},je=Rt(39722),He=Rt(64993),Se=Rt(17313),xe=Rt(19447),le=Rt(83116),Ne=Rt(37613);const se=Bt=>{const{componentCls:te,lineHeight:ge,padding:Jt,paddingXS:Ie,borderRadius:Ue,borderRadiusXS:Je,colorPrimary:Ze,colorText:nn,colorFill:fn,indicatorHeight:An,indicatorWidth:En,boxShadowTertiary:Dn,tourZIndexPopup:ii,fontSize:mi,colorBgElevated:Ti,fontWeightStrong:Oi,marginXS:ki,colorTextLightSolid:pi,tourBorderRadius:Bi,colorWhite:Or,colorBgTextHover:yr,tourCloseSize:lr,motionDurationSlow:Si,antCls:ee}=Bt;return[{[te]:Object.assign(Object.assign({},(0,Se.Wf)(Bt)),{color:nn,position:"absolute",zIndex:ii,display:"block",visibility:"visible",fontSize:mi,lineHeight:ge,width:520,"--antd-arrow-background-color":Ti,"&-pure":{maxWidth:"100%",position:"relative"},[`&${te}-hidden`]:{display:"none"},[`${te}-content`]:{position:"relative"},[`${te}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:Bi,boxShadow:Dn,position:"relative",backgroundColor:Ti,border:"none",backgroundClip:"padding-box",[`${te}-close`]:{position:"absolute",top:Jt,insetInlineEnd:Jt,color:Bt.colorIcon,outline:"none",width:lr,height:lr,borderRadius:Bt.borderRadiusSM,transition:`background-color ${Bt.motionDurationMid}, color ${Bt.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:Bt.colorIconHover,backgroundColor:Bt.wireframe?"transparent":Bt.colorFillContent}},[`${te}-cover`]:{textAlign:"center",padding:`${Jt+lr+Ie}px ${Jt}px 0`,img:{width:"100%"}},[`${te}-header`]:{padding:`${Jt}px ${Jt}px ${Ie}px`,[`${te}-title`]:{lineHeight:ge,fontSize:mi,fontWeight:Oi}},[`${te}-description`]:{padding:`0 ${Jt}px`,lineHeight:ge,wordWrap:"break-word"},[`${te}-footer`]:{padding:`${Ie}px ${Jt}px ${Jt}px`,textAlign:"end",borderRadius:`0 0 ${Je}px ${Je}px`,display:"flex",[`${te}-indicators`]:{display:"inline-block",[`${te}-indicator`]:{width:En,height:An,display:"inline-block",borderRadius:"50%",background:fn,"&:not(:last-child)":{marginInlineEnd:An},"&-active":{background:Ze}}},[`${te}-buttons`]:{marginInlineStart:"auto",[`${ee}-btn`]:{marginInlineStart:ki}}}},[`${te}-primary, &${te}-primary`]:{"--antd-arrow-background-color":Ze,[`${te}-inner`]:{color:pi,textAlign:"start",textDecoration:"none",backgroundColor:Ze,borderRadius:Ue,boxShadow:Dn,[`${te}-close`]:{color:pi},[`${te}-indicators`]:{[`${te}-indicator`]:{background:new He.C(pi).setAlpha(.15).toRgbString(),"&-active":{background:pi}}},[`${te}-prev-btn`]:{color:pi,borderColor:new He.C(pi).setAlpha(.15).toRgbString(),backgroundColor:Ze,"&:hover":{backgroundColor:new He.C(pi).setAlpha(.15).toRgbString(),borderColor:"transparent"}},[`${te}-next-btn`]:{color:Ze,borderColor:"transparent",background:Or,"&:hover":{background:new He.C(yr).onBackground(Or).toRgbString()}}}}}),[`${te}-mask`]:{[`${te}-placeholder-animated`]:{transition:`all ${Si}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${te}-inner`]:{borderRadius:Math.min(Bi,xe.qN)}}},(0,xe.ZP)(Bt,{colorBg:"var(--antd-arrow-background-color)",contentRadius:Bi,limitVerticalRadius:!0})]};var Ae=(0,le.Z)("Tour",Bt=>{const{borderRadiusLG:te,fontSize:ge,lineHeight:Jt}=Bt,Ie=(0,Ne.TS)(Bt,{tourZIndexPopup:Bt.zIndexPopupBase+70,indicatorWidth:6,indicatorHeight:6,tourBorderRadius:te,tourCloseSize:ge*Jt});return[se(Ie)]}),Xe=Rt(53487),Be=function(Bt,te){var ge={};for(var Jt in Bt)Object.prototype.hasOwnProperty.call(Bt,Jt)&&te.indexOf(Jt)<0&&(ge[Jt]=Bt[Jt]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,Jt=Object.getOwnPropertySymbols(Bt);Ie{const{prefixCls:te,current:ge=0,total:Jt=6,className:Ie,style:Ue,type:Je}=Bt,Ze=Be(Bt,["prefixCls","current","total","className","style","type"]),{getPrefixCls:nn}=Ft.useContext(ve.E_),fn=nn("tour",te),[An,En]=Ae(fn);return An(Ft.createElement(je.t5,{prefixCls:fn,hashId:En,className:xt()(Ie,`${fn}-pure`,Je&&`${fn}-${Je}`),style:Ue},Ft.createElement(_e,{stepProps:Object.assign(Object.assign({},Ze),{prefixCls:fn,total:Jt}),current:ge,type:Je})))};var ue=(0,Xe.i)(Te),he=Bt=>{let{defaultType:te,steps:ge=[],current:Jt,defaultCurrent:Ie}=Bt;var Ue;const[Je,Ze]=(0,ft.Z)(Ie,{value:Jt});(0,Ft.useLayoutEffect)(()=>{Jt!==void 0&&Ze(Jt)},[Jt]);const nn=typeof Je=="number"?(Ue=ge[Je])===null||Ue===void 0?void 0:Ue.type:te;return{currentMergedType:nn!=null?nn:te,updateInnerCurrent:Ze}},ye=function(Bt,te){var ge={};for(var Jt in Bt)Object.prototype.hasOwnProperty.call(Bt,Jt)&&te.indexOf(Jt)<0&&(ge[Jt]=Bt[Jt]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,Jt=Object.getOwnPropertySymbols(Bt);Ie{const{prefixCls:te,current:ge,defaultCurrent:Jt,type:Ie,rootClassName:Ue,indicatorsRender:Je,steps:Ze}=Bt,nn=ye(Bt,["prefixCls","current","defaultCurrent","type","rootClassName","indicatorsRender","steps"]),{getPrefixCls:fn,direction:An}=(0,Ft.useContext)(ve.E_),En=fn("tour",te),[Dn,ii]=Ae(En),[,mi]=(0,Kt.Z)(),{currentMergedType:Ti,updateInnerCurrent:Oi}=he({defaultType:Ie,steps:Ze,current:ge,defaultCurrent:Jt}),ki=(0,ae.Z)({arrowPointAtCenter:!0,autoAdjustOverflow:!0,offset:mi.marginXXS,arrowWidth:mi.sizePopupArrow,borderRadius:mi.borderRadius}),pi=xt()({[`${En}-primary`]:Ti==="primary",[`${En}-rtl`]:An==="rtl"},ii,Ue),Bi=(yr,lr)=>Ft.createElement(_e,{type:Ie,stepProps:yr,current:lr,indicatorsRender:Je}),Or=yr=>{var lr;Oi(yr),(lr=Bt.onChange)===null||lr===void 0||lr.call(Bt,yr)};return Dn(Ft.createElement(ne,Object.assign({},nn,{rootClassName:pi,prefixCls:En,current:ge,defaultCurrent:Jt,animated:!0,renderPanel:Bi,builtinPlacements:ki,onChange:Or,steps:Ze})))};Qt._InternalPanelDoNotUseOrYouWillBeFired=ue;var Wt=Qt},99498:function(tn,Ke,Rt){(function(Ft){Ft(Rt(89780))})(function(Ft){Ft.defineOption("placeholder","",function(vt,yt,xt){var dt=xt&&xt!=Ft.Init;if(yt&&!dt)vt.on("blur",Ct),vt.on("change",St),vt.on("swapDoc",St),Ft.on(vt.getInputField(),"compositionupdate",vt.state.placeholderCompose=function(){kt(vt)}),St(vt);else if(!yt&&dt){vt.off("blur",Ct),vt.off("change",St),vt.off("swapDoc",St),Ft.off(vt.getInputField(),"compositionupdate",vt.state.placeholderCompose),ie(vt);var ft=vt.getWrapperElement();ft.className=ft.className.replace(" CodeMirror-empty","")}yt&&!vt.hasFocus()&&Ct(vt)});function ie(vt){vt.state.placeholder&&(vt.state.placeholder.parentNode.removeChild(vt.state.placeholder),vt.state.placeholder=null)}function rt(vt){ie(vt);var yt=vt.state.placeholder=document.createElement("pre");yt.style.cssText="height: 0; overflow: visible",yt.style.direction=vt.getOption("direction"),yt.className="CodeMirror-placeholder CodeMirror-line-like";var xt=vt.getOption("placeholder");typeof xt=="string"&&(xt=document.createTextNode(xt)),yt.appendChild(xt),vt.display.lineSpace.insertBefore(yt,vt.display.lineSpace.firstChild)}function kt(vt){setTimeout(function(){var yt=!1,xt=vt.getInputField();xt.nodeName=="TEXTAREA"?yt=!xt.value:vt.lineCount()==1&&(yt=!/[^\u200b]/.test(xt.querySelector(".CodeMirror-line").textContent)),yt?rt(vt):ie(vt)},20)}function Ct(vt){pt(vt)&&rt(vt)}function St(vt){var yt=vt.getWrapperElement(),xt=pt(vt);yt.className=yt.className.replace(" CodeMirror-empty","")+(xt?" CodeMirror-empty":""),xt?rt(vt):ie(vt)}function pt(vt){return vt.lineCount()===1&&vt.getLine(0)===""}})},25717:function(tn,Ke,Rt){(function(Ft){Ft(Rt(89780))})(function(Ft){var ie={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},rt=Ft.Pos;Ft.defineOption("autoCloseBrackets",!1,function(E,z,ot){ot&&ot!=Ft.Init&&(E.removeKeyMap(Ct),E.state.closeBrackets=null),z&&(St(kt(z,"pairs")),E.state.closeBrackets=z,E.addKeyMap(Ct))});function kt(E,z){return z=="pairs"&&typeof E=="string"?E:typeof E=="object"&&E[z]!=null?E[z]:ie[z]}var Ct={Backspace:yt,Enter:xt};function St(E){for(var z=0;z=0;at--){var wt=it[at].head;E.replaceRange("",rt(wt.line,wt.ch-1),rt(wt.line,wt.ch+1),"+delete")}}function xt(E){var z=vt(E),ot=z&&kt(z,"explode");if(!ot||E.getOption("disableInput"))return Ft.Pass;for(var it=E.listSelections(),at=0;at0;return{anchor:new rt(E.anchor.line,E.anchor.ch+(z?-1:1)),head:new rt(E.head.line,E.head.ch+(z?1:-1))}}function ft(E,z){var ot=vt(E);if(!ot||E.getOption("disableInput"))return Ft.Pass;var it=kt(ot,"pairs"),at=it.indexOf(z);if(at==-1)return Ft.Pass;for(var ut=kt(ot,"closeBefore"),wt=kt(ot,"triples"),Et=it.charAt(at+1)==z,At=E.listSelections(),_t=at%2==0,Mt,jt=0;jt=0&&E.getRange(It,rt(It.line,It.ch+3))==z+z+z?Ut="skipThree":Ut="skip";else if(Et&&It.ch>1&&wt.indexOf(z)>=0&&E.getRange(rt(It.line,It.ch-2),It)==z+z){if(It.ch>2&&/\bstring/.test(E.getTokenTypeAt(rt(It.line,It.ch-2))))return Ft.Pass;Ut="addFour"}else if(Et){var Gt=It.ch==0?" ":E.getRange(rt(It.line,It.ch-1),It);if(!Ft.isWordChar(Xt)&&Gt!=z&&!Ft.isWordChar(Gt))Ut="both";else return Ft.Pass}else if(_t&&(Xt.length===0||/\s/.test(Xt)||ut.indexOf(Xt)>-1))Ut="both";else return Ft.Pass;if(!Mt)Mt=Ut;else if(Mt!=Ut)return Ft.Pass}var Yt=at%2?it.charAt(at-1):z,Ht=at%2?z:it.charAt(at+1);E.operation(function(){if(Mt=="skip")E.execCommand("goCharRight");else if(Mt=="skipThree")for(var ne=0;ne<3;ne++)E.execCommand("goCharRight");else if(Mt=="surround"){for(var ae=E.getSelections(),ne=0;ne'"]=function(ct){return kt(ct)}),yt.addKeyMap(ft)}});var ie=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],rt=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function kt(yt){if(yt.getOption("disableInput"))return Ft.Pass;for(var xt=yt.listSelections(),dt=[],ft=yt.getOption("autoCloseTags"),ct=0;ctlt.ch&&(at=at.slice(0,at.length-E.end+lt.ch));var At=at.toLowerCase();if(!at||E.type=="string"&&(E.end!=lt.ch||!/[\"\']/.test(E.string.charAt(E.string.length-1))||E.string.length==1)||E.type=="tag"&&it.close||E.string.indexOf("/")==lt.ch-E.start-1||wt&&pt(wt,At)>-1||vt(yt,z.mode.xmlCurrentContext&&z.mode.xmlCurrentContext(ot)||[],at,lt,!0))return Ft.Pass;var _t=typeof ft=="object"&&ft.emptyTags;if(_t&&pt(_t,at)>-1){dt[ct]={text:"/>",newPos:Ft.Pos(lt.line,lt.ch+2)};continue}var Mt=Et&&pt(Et,At)>-1;dt[ct]={indent:Mt,text:">"+(Mt?` + `]:Object.assign({},lt(Be))}}};var _t=(0,yt.Z)("Skeleton",Be=>{const{componentCls:Te}=Be,ue=(0,xt.TS)(Be,{skeletonAvatarCls:`${Te}-avatar`,skeletonTitleCls:`${Te}-title`,skeletonParagraphCls:`${Te}-paragraph`,skeletonButtonCls:`${Te}-button`,skeletonInputCls:`${Te}-input`,skeletonImageCls:`${Te}-image`,imageSizeBase:Be.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${Be.gradientFromColor} 25%, ${Be.gradientToColor} 37%, ${Be.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[At(ue)]},Be=>{const{colorFillContent:Te,colorFill:ue}=Be,$t=Te,he=ue;return{color:$t,colorGradientEnd:he,gradientFromColor:$t,gradientToColor:he,titleHeight:Be.controlHeight/2,blockRadius:Be.borderRadiusSM,paragraphMarginTop:Be.marginLG+Be.marginXXS,paragraphLiHeight:Be.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),jt=Be=>{const{prefixCls:Te,className:ue,rootClassName:$t,active:he,shape:ye="circle",size:Qt="default"}=Be,{getPrefixCls:Wt}=rt.useContext(kt.E_),Bt=Wt("skeleton",Te),[te,me]=_t(Bt),Jt=(0,Ct.Z)(Be,["prefixCls","className"]),Ie=ie()(Bt,`${Bt}-element`,{[`${Bt}-active`]:he},ue,$t,me);return te(rt.createElement("div",{className:Ie},rt.createElement(pt,Object.assign({prefixCls:`${Bt}-avatar`,shape:ye,size:Qt},Jt))))},It=Be=>{const{prefixCls:Te,className:ue,rootClassName:$t,active:he,block:ye=!1,size:Qt="default"}=Be,{getPrefixCls:Wt}=rt.useContext(kt.E_),Bt=Wt("skeleton",Te),[te,me]=_t(Bt),Jt=(0,Ct.Z)(Be,["prefixCls"]),Ie=ie()(Bt,`${Bt}-element`,{[`${Bt}-active`]:he,[`${Bt}-block`]:ye},ue,$t,me);return te(rt.createElement("div",{className:Ie},rt.createElement(pt,Object.assign({prefixCls:`${Bt}-button`,size:Qt},Jt))))};const Ut="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var Gt=Be=>{const{prefixCls:Te,className:ue,rootClassName:$t,style:he,active:ye}=Be,{getPrefixCls:Qt}=rt.useContext(kt.E_),Wt=Qt("skeleton",Te),[Bt,te]=_t(Wt),me=ie()(Wt,`${Wt}-element`,{[`${Wt}-active`]:ye},ue,$t,te);return Bt(rt.createElement("div",{className:me},rt.createElement("div",{className:ie()(`${Wt}-image`,ue),style:he},rt.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Wt}-image-svg`},rt.createElement("path",{d:Ut,className:`${Wt}-image-path`})))))},Ht=Be=>{const{prefixCls:Te,className:ue,rootClassName:$t,active:he,block:ye,size:Qt="default"}=Be,{getPrefixCls:Wt}=rt.useContext(kt.E_),Bt=Wt("skeleton",Te),[te,me]=_t(Bt),Jt=(0,Ct.Z)(Be,["prefixCls"]),Ie=ie()(Bt,`${Bt}-element`,{[`${Bt}-active`]:he,[`${Bt}-block`]:ye},ue,$t,me);return te(rt.createElement("div",{className:Ie},rt.createElement(pt,Object.assign({prefixCls:`${Bt}-input`,size:Qt},Jt))))},ne=Rt(72308),se={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},ve=se,Kt=Rt(7657),re=function(Te,ue){return rt.createElement(Kt.Z,(0,ne.Z)({},Te,{ref:ue,icon:ve}))},we=rt.forwardRef(re),ke=we,ge=Be=>{const{prefixCls:Te,className:ue,rootClassName:$t,style:he,active:ye,children:Qt}=Be,{getPrefixCls:Wt}=rt.useContext(kt.E_),Bt=Wt("skeleton",Te),[te,me]=_t(Bt),Jt=ie()(Bt,`${Bt}-element`,{[`${Bt}-active`]:ye},me,ue,$t),Ie=Qt!=null?Qt:rt.createElement(ke,null);return te(rt.createElement("div",{className:Jt},rt.createElement("div",{className:ie()(`${Bt}-image`,ue),style:he},Ie)))},fe=Rt(80702),_e=Be=>{const Te=Wt=>{const{width:Bt,rows:te=2}=Be;if(Array.isArray(Bt))return Bt[Wt];if(te-1===Wt)return Bt},{prefixCls:ue,className:$t,style:he,rows:ye}=Be,Qt=(0,fe.Z)(Array(ye)).map((Wt,Bt)=>rt.createElement("li",{key:Bt,style:{width:Te(Bt)}}));return rt.createElement("ul",{className:ie()(ue,$t),style:he},Qt)},He=Be=>{let{prefixCls:Te,className:ue,width:$t,style:he}=Be;return rt.createElement("h3",{className:ie()(Te,ue),style:Object.assign({width:$t},he)})};function Se(Be){return Be&&typeof Be=="object"?Be:{}}function xe(Be,Te){return Be&&!Te?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function le(Be,Te){return!Be&&Te?{width:"38%"}:Be&&Te?{width:"50%"}:{}}function Ne(Be,Te){const ue={};return(!Be||!Te)&&(ue.width="61%"),!Be&&Te?ue.rows=3:ue.rows=2,ue}const ae=Be=>{const{prefixCls:Te,loading:ue,className:$t,rootClassName:he,style:ye,children:Qt,avatar:Wt=!1,title:Bt=!0,paragraph:te=!0,active:me,round:Jt}=Be,{getPrefixCls:Ie,direction:Ue,skeleton:Je}=rt.useContext(kt.E_),Ze=Ie("skeleton",Te),[nn,fn]=_t(Ze);if(ue||!("loading"in Be)){const An=!!Wt,En=!!Bt,Dn=!!te;let ii;if(An){const Oi=Object.assign(Object.assign({prefixCls:`${Ze}-avatar`},xe(En,Dn)),Se(Wt));ii=rt.createElement("div",{className:`${Ze}-header`},rt.createElement(pt,Object.assign({},Oi)))}let mi;if(En||Dn){let Oi;if(En){const pi=Object.assign(Object.assign({prefixCls:`${Ze}-title`},le(An,Dn)),Se(Bt));Oi=rt.createElement(He,Object.assign({},pi))}let ki;if(Dn){const pi=Object.assign(Object.assign({prefixCls:`${Ze}-paragraph`},Ne(An,En)),Se(te));ki=rt.createElement(_e,Object.assign({},pi))}mi=rt.createElement("div",{className:`${Ze}-content`},Oi,ki)}const Ti=ie()(Ze,{[`${Ze}-with-avatar`]:An,[`${Ze}-active`]:me,[`${Ze}-rtl`]:Ue==="rtl",[`${Ze}-round`]:Jt},Je==null?void 0:Je.className,$t,he,fn);return nn(rt.createElement("div",{className:Ti,style:Object.assign(Object.assign({},Je==null?void 0:Je.style),ye)},ii,mi))}return typeof Qt!="undefined"?Qt:null};ae.Button=It,ae.Avatar=jt,ae.Input=Ht,ae.Image=Gt,ae.Node=ge;var Ae=ae,Xe=Ae},31797:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{default:function(){return _t}});var Ft=Rt(59301),ie=Rt(56762),rt=Rt(92343),kt=Rt(92310),Ct=Rt.n(kt),St=Rt(36355),pt=Rt(61621),yt=Mt=>{const{value:jt,formatter:Lt,precision:It,decimalSeparator:Ut,groupSeparator:Xt="",prefixCls:Gt}=Mt;let Vt;if(typeof Lt=="function")Vt=Lt(jt);else{const Ht=String(jt),ne=Ht.match(/^(-?)(\d*)(\.(\d+))?$/);if(!ne||Ht==="-")Vt=Ht;else{const se=ne[1];let ve=ne[2]||"0",Kt=ne[4]||"";ve=ve.replace(/\B(?=(\d{3})+(?!\d))/g,Xt),typeof It=="number"&&(Kt=Kt.padEnd(It,"0").slice(0,It>0?It:0)),Kt&&(Kt=`${Ut}${Kt}`),Vt=[Ft.createElement("span",{key:"int",className:`${Gt}-content-value-int`},se,ve),Kt&&Ft.createElement("span",{key:"decimal",className:`${Gt}-content-value-decimal`},Kt)]}}return Ft.createElement("span",{className:`${Gt}-content-value`},Vt)},xt=Rt(17313),dt=Rt(83116),ft=Rt(37613);const ct=Mt=>{const{componentCls:jt,marginXXS:Lt,padding:It,colorTextDescription:Ut,titleFontSize:Xt,colorTextHeading:Gt,contentFontSize:Vt,fontFamily:Ht}=Mt;return{[`${jt}`]:Object.assign(Object.assign({},(0,xt.Wf)(Mt)),{[`${jt}-title`]:{marginBottom:Lt,color:Ut,fontSize:Xt},[`${jt}-skeleton`]:{paddingTop:It},[`${jt}-content`]:{color:Gt,fontSize:Vt,fontFamily:Ht,[`${jt}-content-value`]:{display:"inline-block",direction:"ltr"},[`${jt}-content-prefix, ${jt}-content-suffix`]:{display:"inline-block"},[`${jt}-content-prefix`]:{marginInlineEnd:Lt},[`${jt}-content-suffix`]:{marginInlineStart:Lt}}})}};var lt=(0,dt.Z)("Statistic",Mt=>{const jt=(0,ft.TS)(Mt,{});return[ct(jt)]},Mt=>{const{fontSizeHeading3:jt,fontSize:Lt}=Mt;return{titleFontSize:Lt,contentFontSize:jt}}),z=Mt=>{const{prefixCls:jt,className:Lt,rootClassName:It,style:Ut,valueStyle:Xt,value:Gt=0,title:Vt,valueRender:Ht,prefix:ne,suffix:se,loading:ve=!1,onMouseEnter:Kt,onMouseLeave:re,decimalSeparator:we=".",groupSeparator:ke=","}=Mt,{getPrefixCls:Me,direction:ge,statistic:fe}=Ft.useContext(St.E_),de=Me("statistic",jt),[_e,Oe]=lt(de),He=Ft.createElement(yt,Object.assign({decimalSeparator:we,groupSeparator:ke,prefixCls:de},Mt,{value:Gt})),Se=Ct()(de,{[`${de}-rtl`]:ge==="rtl"},fe==null?void 0:fe.className,Lt,It,Oe);return _e(Ft.createElement("div",{className:Se,style:Object.assign(Object.assign({},fe==null?void 0:fe.style),Ut),onMouseEnter:Kt,onMouseLeave:re},Vt&&Ft.createElement("div",{className:`${de}-title`},Vt),Ft.createElement(pt.Z,{paragraph:!1,loading:ve,className:`${de}-skeleton`},Ft.createElement("div",{style:Xt,className:`${de}-content`},ne&&Ft.createElement("span",{className:`${de}-content-prefix`},ne),Ht?Ht(He):He,se&&Ft.createElement("span",{className:`${de}-content-suffix`},se)))))};const ot=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function it(Mt,jt){let Lt=Mt;const It=/\[[^\]]*]/g,Ut=(jt.match(It)||[]).map(Ht=>Ht.slice(1,-1)),Xt=jt.replace(It,"[]"),Gt=ot.reduce((Ht,ne)=>{let[se,ve]=ne;if(Ht.includes(se)){const Kt=Math.floor(Lt/ve);return Lt-=Kt*ve,Ht.replace(new RegExp(`${se}+`,"g"),re=>{const we=re.length;return Kt.toString().padStart(we,"0")})}return Ht},Xt);let Vt=0;return Gt.replace(It,()=>{const Ht=Ut[Vt];return Vt+=1,Ht})}function at(Mt,jt){const{format:Lt=""}=jt,It=new Date(Mt).getTime(),Ut=Date.now(),Xt=Math.max(It-Ut,0);return it(Xt,Lt)}const ut=1e3/30;function wt(Mt){return new Date(Mt).getTime()}const Et=Mt=>{const{value:jt,format:Lt="HH:mm:ss",onChange:It,onFinish:Ut}=Mt,Xt=(0,ie.Z)(),Gt=Ft.useRef(null),Vt=()=>{Ut==null||Ut(),Gt.current&&(clearInterval(Gt.current),Gt.current=null)},Ht=()=>{const ve=wt(jt);ve>=Date.now()&&(Gt.current=setInterval(()=>{Xt(),It==null||It(ve-Date.now()),ve(Ht(),()=>{Gt.current&&(clearInterval(Gt.current),Gt.current=null)}),[jt]);const ne=(ve,Kt)=>at(ve,Object.assign(Object.assign({},Kt),{format:Lt})),se=ve=>(0,rt.Tm)(ve,{title:void 0});return Ft.createElement(z,Object.assign({},Mt,{valueRender:se,formatter:ne}))};var At=Ft.memo(Et);z.Countdown=At;var _t=z},78673:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return Xt}});var Ft=Rt(58617),ie=Rt(92310),rt=Rt.n(ie),kt=Rt(72308),Ct=Rt(49618),St=Rt(52487),pt=Rt(74416),vt=Rt(59301),yt=Rt(18929),xt=Rt(10228),dt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ft=vt.forwardRef(function(Gt,Vt){var Ht,ne=Gt.prefixCls,se=ne===void 0?"rc-switch":ne,ve=Gt.className,Kt=Gt.checked,re=Gt.defaultChecked,we=Gt.disabled,ke=Gt.loadingIcon,Me=Gt.checkedChildren,ge=Gt.unCheckedChildren,fe=Gt.onClick,de=Gt.onChange,_e=Gt.onKeyDown,Oe=(0,pt.Z)(Gt,dt),He=(0,yt.Z)(!1,{value:Kt,defaultValue:re}),Se=(0,St.Z)(He,2),xe=Se[0],le=Se[1];function Ne(Be,Te){var ue=xe;return we||(ue=Be,le(ue),de==null||de(ue,Te)),ue}function ae(Be){Be.which===xt.Z.LEFT?Ne(!1,Be):Be.which===xt.Z.RIGHT&&Ne(!0,Be),_e==null||_e(Be)}function Ae(Be){var Te=Ne(!xe,Be);fe==null||fe(Te,Be)}var Xe=rt()(se,ve,(Ht={},(0,Ct.Z)(Ht,"".concat(se,"-checked"),xe),(0,Ct.Z)(Ht,"".concat(se,"-disabled"),we),Ht));return vt.createElement("button",(0,kt.Z)({},Oe,{type:"button",role:"switch","aria-checked":xe,disabled:we,className:Xe,ref:Vt,onKeyDown:ae,onClick:Ae}),ke,vt.createElement("span",{className:"".concat(se,"-inner")},vt.createElement("span",{className:"".concat(se,"-inner-checked")},Me),vt.createElement("span",{className:"".concat(se,"-inner-unchecked")},ge)))});ft.displayName="Switch";var ct=ft,lt=Rt(14088),E=Rt(36355),z=Rt(1684),ot=Rt(19716),it=Rt(64993),at=Rt(17313),ut=Rt(83116),wt=Rt(37613);const Et=Gt=>{const{componentCls:Vt,trackHeightSM:Ht,trackPadding:ne,trackMinWidthSM:se,innerMinMarginSM:ve,innerMaxMarginSM:Kt,handleSizeSM:re}=Gt,we=`${Vt}-inner`;return{[Vt]:{[`&${Vt}-small`]:{minWidth:se,height:Ht,lineHeight:`${Ht}px`,[`${Vt}-inner`]:{paddingInlineStart:Kt,paddingInlineEnd:ve,[`${we}-checked`]:{marginInlineStart:`calc(-100% + ${re+ne*2}px - ${Kt*2}px)`,marginInlineEnd:`calc(100% - ${re+ne*2}px + ${Kt*2}px)`},[`${we}-unchecked`]:{marginTop:-Ht,marginInlineStart:0,marginInlineEnd:0}},[`${Vt}-handle`]:{width:re,height:re},[`${Vt}-loading-icon`]:{top:(re-Gt.switchLoadingIconSize)/2,fontSize:Gt.switchLoadingIconSize},[`&${Vt}-checked`]:{[`${Vt}-inner`]:{paddingInlineStart:ve,paddingInlineEnd:Kt,[`${we}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${we}-unchecked`]:{marginInlineStart:`calc(100% - ${re+ne*2}px + ${Kt*2}px)`,marginInlineEnd:`calc(-100% + ${re+ne*2}px - ${Kt*2}px)`}},[`${Vt}-handle`]:{insetInlineStart:`calc(100% - ${re+ne}px)`}},[`&:not(${Vt}-disabled):active`]:{[`&:not(${Vt}-checked) ${we}`]:{[`${we}-unchecked`]:{marginInlineStart:Gt.marginXXS/2,marginInlineEnd:-Gt.marginXXS/2}},[`&${Vt}-checked ${we}`]:{[`${we}-checked`]:{marginInlineStart:-Gt.marginXXS/2,marginInlineEnd:Gt.marginXXS/2}}}}}}},At=Gt=>{const{componentCls:Vt,handleSize:Ht}=Gt;return{[Vt]:{[`${Vt}-loading-icon${Gt.iconCls}`]:{position:"relative",top:(Ht-Gt.fontSize)/2,color:Gt.switchLoadingIconColor,verticalAlign:"top"},[`&${Vt}-checked ${Vt}-loading-icon`]:{color:Gt.switchColor}}}},_t=Gt=>{const{componentCls:Vt,motion:Ht,trackPadding:ne,handleBg:se,handleShadow:ve,handleSize:Kt}=Gt,re=`${Vt}-handle`;return{[Vt]:{[re]:{position:"absolute",top:ne,insetInlineStart:ne,width:Kt,height:Kt,transition:`all ${Gt.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:se,borderRadius:Kt/2,boxShadow:ve,transition:`all ${Gt.switchDuration} ease-in-out`,content:'""'}},[`&${Vt}-checked ${re}`]:{insetInlineStart:`calc(100% - ${Kt+ne}px)`},[`&:not(${Vt}-disabled):active`]:Ht?{[`${re}::before`]:{insetInlineEnd:Gt.switchHandleActiveInset,insetInlineStart:0},[`&${Vt}-checked ${re}::before`]:{insetInlineEnd:0,insetInlineStart:Gt.switchHandleActiveInset}}:{}}}},Mt=Gt=>{const{componentCls:Vt,trackHeight:Ht,trackPadding:ne,innerMinMargin:se,innerMaxMargin:ve,handleSize:Kt}=Gt,re=`${Vt}-inner`;return{[Vt]:{[re]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:ve,paddingInlineEnd:se,transition:`padding-inline-start ${Gt.switchDuration} ease-in-out, padding-inline-end ${Gt.switchDuration} ease-in-out`,[`${re}-checked, ${re}-unchecked`]:{display:"block",color:Gt.colorTextLightSolid,fontSize:Gt.fontSizeSM,transition:`margin-inline-start ${Gt.switchDuration} ease-in-out, margin-inline-end ${Gt.switchDuration} ease-in-out`,pointerEvents:"none"},[`${re}-checked`]:{marginInlineStart:`calc(-100% + ${Kt+ne*2}px - ${ve*2}px)`,marginInlineEnd:`calc(100% - ${Kt+ne*2}px + ${ve*2}px)`},[`${re}-unchecked`]:{marginTop:-Ht,marginInlineStart:0,marginInlineEnd:0}},[`&${Vt}-checked ${re}`]:{paddingInlineStart:se,paddingInlineEnd:ve,[`${re}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${re}-unchecked`]:{marginInlineStart:`calc(100% - ${Kt+ne*2}px + ${ve*2}px)`,marginInlineEnd:`calc(-100% + ${Kt+ne*2}px - ${ve*2}px)`}},[`&:not(${Vt}-disabled):active`]:{[`&:not(${Vt}-checked) ${re}`]:{[`${re}-unchecked`]:{marginInlineStart:ne*2,marginInlineEnd:-ne*2}},[`&${Vt}-checked ${re}`]:{[`${re}-checked`]:{marginInlineStart:-ne*2,marginInlineEnd:ne*2}}}}}},jt=Gt=>{const{componentCls:Vt,trackHeight:Ht,trackMinWidth:ne}=Gt;return{[Vt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,at.Wf)(Gt)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:ne,height:Ht,lineHeight:`${Ht}px`,verticalAlign:"middle",background:Gt.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Gt.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Vt}-disabled)`]:{background:Gt.colorTextTertiary}}),(0,at.Qy)(Gt)),{[`&${Vt}-checked`]:{background:Gt.switchColor,[`&:hover:not(${Vt}-disabled)`]:{background:Gt.colorPrimaryHover}},[`&${Vt}-loading, &${Vt}-disabled`]:{cursor:"not-allowed",opacity:Gt.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Vt}-rtl`]:{direction:"rtl"}})}};var Lt=(0,ut.Z)("Switch",Gt=>{const Vt=(0,wt.TS)(Gt,{switchDuration:Gt.motionDurationMid,switchColor:Gt.colorPrimary,switchDisabledOpacity:Gt.opacityLoading,switchLoadingIconSize:Gt.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${Gt.opacityLoading})`,switchHandleActiveInset:"-30%"});return[jt(Vt),Mt(Vt),_t(Vt),At(Vt),Et(Vt)]},Gt=>{const{fontSize:Vt,lineHeight:Ht,controlHeight:ne,colorWhite:se}=Gt,ve=Vt*Ht,Kt=ne/2,re=2,we=ve-re*2,ke=Kt-re*2;return{trackHeight:ve,trackHeightSM:Kt,trackMinWidth:we*2+re*4,trackMinWidthSM:ke*2+re*2,trackPadding:re,handleBg:se,handleSize:we,handleSizeSM:ke,handleShadow:`0 2px 4px 0 ${new it.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:we/2,innerMaxMargin:we+re+re*2,innerMinMarginSM:ke/2,innerMaxMarginSM:ke+re+re*2}}),It=function(Gt,Vt){var Ht={};for(var ne in Gt)Object.prototype.hasOwnProperty.call(Gt,ne)&&Vt.indexOf(ne)<0&&(Ht[ne]=Gt[ne]);if(Gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,ne=Object.getOwnPropertySymbols(Gt);se{const{prefixCls:Ht,size:ne,disabled:se,loading:ve,className:Kt,rootClassName:re,style:we}=Gt,ke=It(Gt,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Me,direction:ge,switch:fe}=vt.useContext(E.E_),de=vt.useContext(z.Z),_e=(se!=null?se:de)||ve,Oe=Me("switch",Ht),He=vt.createElement("div",{className:`${Oe}-handle`},ve&&vt.createElement(Ft.Z,{className:`${Oe}-loading-icon`})),[Se,xe]=Lt(Oe),le=(0,ot.Z)(ne),Ne=rt()(fe==null?void 0:fe.className,{[`${Oe}-small`]:le==="small",[`${Oe}-loading`]:ve,[`${Oe}-rtl`]:ge==="rtl"},Kt,re,xe),ae=Object.assign(Object.assign({},fe==null?void 0:fe.style),we);return Se(vt.createElement(lt.Z,{component:"Switch"},vt.createElement(ct,Object.assign({},ke,{prefixCls:Oe,className:Ne,style:ae,disabled:_e,ref:Vt,loadingIcon:He}))))});Ut.__ANT_SWITCH=!0;var Xt=Ut},65615:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{Z:function(){return Wt}});var Ft=Rt(59301),ie=Rt(77321),rt=Rt(72308),kt=Rt(62853),Ct=Rt(52487),St=Rt(74416),pt=Rt(43403),vt=Rt(35593),yt=Rt(92310),xt=Rt.n(yt),dt=Rt(34280),ft=Rt(18929),ct=Rt(6089);function lt(Bt){var te=window.innerWidth||document.documentElement.clientWidth,me=window.innerHeight||document.documentElement.clientHeight,Jt=Bt.getBoundingClientRect(),Ie=Jt.top,Ue=Jt.right,Je=Jt.bottom,Ze=Jt.left;return Ie>=0&&Ze>=0&&Ue<=te&&Je<=me}function E(Bt,te,me){var Jt;return(Jt=me!=null?me:te)!==null&&Jt!==void 0?Jt:Bt===null?"center":"bottom"}function z(Bt,te,me,Jt){var Ie=(0,Ft.useState)(void 0),Ue=(0,Ct.Z)(Ie,2),Je=Ue[0],Ze=Ue[1];(0,dt.Z)(function(){var Ti=typeof Bt=="function"?Bt():Bt;Ze(Ti||null)});var nn=(0,Ft.useState)(null),fn=(0,Ct.Z)(nn,2),An=fn[0],En=fn[1],Dn=(0,ct.Z)(function(){if(Je){!lt(Je)&&te&&Je.scrollIntoView(Jt);var Ti=Je.getBoundingClientRect(),Oi=Ti.left,ki=Ti.top,pi=Ti.width,Bi=Ti.height,Or={left:Oi,top:ki,width:pi,height:Bi,radius:0};En(function(yr){return JSON.stringify(yr)!==JSON.stringify(Or)?Or:yr})}else En(null)}),ii=function(Oi){var ki;return(ki=Array.isArray(me==null?void 0:me.offset)?me==null?void 0:me.offset[Oi]:me==null?void 0:me.offset)!==null&&ki!==void 0?ki:6};(0,dt.Z)(function(){return Dn(),window.addEventListener("resize",Dn),function(){window.removeEventListener("resize",Dn)}},[Je,te,Dn]);var mi=(0,Ft.useMemo)(function(){if(!An)return An;var Ti=ii(0),Oi=ii(1),ki=(me==null?void 0:me.radius)||2;return{left:An.left-Ti,top:An.top-Oi,width:An.width+Ti*2,height:An.height+Oi*2,radius:ki}},[An,me]);return[mi,Je]}var ot=Rt(80402),it={fill:"transparent",pointerEvents:"auto"},at=function(te){var me=te.prefixCls,Jt=te.rootClassName,Ie=te.pos,Ue=te.showMask,Je=te.style,Ze=Je===void 0?{}:Je,nn=te.fill,fn=nn===void 0?"rgba(0,0,0,0.5)":nn,An=te.open,En=te.animated,Dn=te.zIndex,ii=(0,ot.Z)(),mi="".concat(me,"-mask-").concat(ii),Ti=(0,kt.Z)(En)==="object"?En==null?void 0:En.placeholder:En;return Ft.createElement(pt.Z,{open:An,autoLock:!0},Ft.createElement("div",{className:xt()("".concat(me,"-mask"),Jt),style:(0,ie.Z)({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:Dn,pointerEvents:"none"},Ze)},Ue?Ft.createElement("svg",{style:{width:"100%",height:"100%"}},Ft.createElement("defs",null,Ft.createElement("mask",{id:mi},Ft.createElement("rect",{x:"0",y:"0",width:"100vw",height:"100vh",fill:"white"}),Ie&&Ft.createElement("rect",{x:Ie.left,y:Ie.top,rx:Ie.radius,width:Ie.width,height:Ie.height,fill:"black",className:Ti?"".concat(me,"-placeholder-animated"):""}))),Ft.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:fn,mask:"url(#".concat(mi,")")}),Ie&&Ft.createElement(Ft.Fragment,null,Ft.createElement("rect",(0,rt.Z)({},it,{x:"0",y:"0",width:"100%",height:Ie.top})),Ft.createElement("rect",(0,rt.Z)({},it,{x:"0",y:"0",width:Ie.left,height:"100%"})),Ft.createElement("rect",(0,rt.Z)({},it,{x:"0",y:Ie.top+Ie.height,width:"100%",height:"calc(100vh - ".concat(Ie.top+Ie.height,"px)")})),Ft.createElement("rect",(0,rt.Z)({},it,{x:Ie.left+Ie.width,y:"0",width:"calc(100vw - ".concat(Ie.left+Ie.width,"px)"),height:"100%"})))):null))},ut=at,wt={adjustX:1,adjustY:1},Et=[0,0],At={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function _t(){var Bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,te={};return Object.keys(At).forEach(function(me){te[me]=(0,ie.Z)((0,ie.Z)({},At[me]),{},{autoArrow:Bt,targetOffset:Et})}),te}var Mt=_t(),jt=Rt(80702);function Lt(Bt){var te=Bt.prefixCls,me=Bt.current,Jt=Bt.total,Ie=Bt.title,Ue=Bt.description,Je=Bt.onClose,Ze=Bt.onPrev,nn=Bt.onNext,fn=Bt.onFinish,An=Bt.className,En=Bt.closeIcon,Dn=En!==!1&&En!==null,ii=En!==void 0&&En!==!0?En:Ft.createElement("span",{className:"".concat(te,"-close-x")},"\xD7");return Ft.createElement("div",{className:xt()("".concat(te,"-content"),An)},Ft.createElement("div",{className:"".concat(te,"-inner")},Dn&&Ft.createElement("button",{type:"button",onClick:Je,"aria-label":"Close",className:"".concat(te,"-close")},ii),Ft.createElement("div",{className:"".concat(te,"-header")},Ft.createElement("div",{className:"".concat(te,"-title")},Ie)),Ft.createElement("div",{className:"".concat(te,"-description")},Ue),Ft.createElement("div",{className:"".concat(te,"-footer")},Ft.createElement("div",{className:"".concat(te,"-sliders")},Jt>1?(0,jt.Z)(Array.from({length:Jt}).keys()).map(function(mi,Ti){return Ft.createElement("span",{key:mi,className:Ti===me?"active":""})}):null),Ft.createElement("div",{className:"".concat(te,"-buttons")},me!==0?Ft.createElement("button",{className:"".concat(te,"-prev-btn"),onClick:Ze},"Prev"):null,me===Jt-1?Ft.createElement("button",{className:"".concat(te,"-finish-btn"),onClick:fn},"Finish"):Ft.createElement("button",{className:"".concat(te,"-next-btn"),onClick:nn},"Next")))))}var It=function(te){var me=te.current,Jt=te.renderPanel;return Ft.createElement(Ft.Fragment,null,typeof Jt=="function"?Jt(te,me):Ft.createElement(Lt,te))},Ut=It,Xt=["prefixCls","steps","defaultCurrent","current","onChange","onClose","onFinish","open","mask","arrow","rootClassName","placement","renderPanel","gap","animated","scrollIntoViewOptions","zIndex","closeIcon"],Gt={left:"50%",top:"50%",width:1,height:1},Vt=function(te){var me=te.prefixCls,Jt=me===void 0?"rc-tour":me,Ie=te.steps,Ue=Ie===void 0?[]:Ie,Je=te.defaultCurrent,Ze=te.current,nn=te.onChange,fn=te.onClose,An=te.onFinish,En=te.open,Dn=te.mask,ii=Dn===void 0?!0:Dn,mi=te.arrow,Ti=mi===void 0?!0:mi,Oi=te.rootClassName,ki=te.placement,pi=te.renderPanel,Bi=te.gap,Or=te.animated,yr=te.scrollIntoViewOptions,lr=yr===void 0?!0:yr,Si=te.zIndex,ee=Si===void 0?1001:Si,Ds=te.closeIcon,mr=(0,St.Z)(te,Xt),gs=Ft.useRef(),Xs=(0,ft.Z)(0,{value:Ze,defaultValue:Je}),Do=(0,Ct.Z)(Xs,2),Oo=Do[0],Gr=Do[1],sa=(0,ft.Z)(void 0,{value:En,postState:function(sn){return Oo<0||Oo>=Ue.length?!1:sn!=null?sn:!0}}),dn=(0,Ct.Z)(sa,2),en=dn[0],qe=dn[1],zn=Ft.useRef(en);(0,dt.Z)(function(){en&&!zn.current&&Gr(0),zn.current=en},[en]);var Jn=Ue[Oo]||{},hi=Jn.target,bn=Jn.placement,Bn=Jn.style,Xi=Jn.arrow,dr=Jn.className,ir=Jn.mask,We=Jn.scrollIntoViewOptions,Nn=Jn.closeIcon,ti=en&&(ir!=null?ir:ii),pr=Nn!=null?Nn:Ds,on=We!=null?We:lr,Cn=z(hi,En,Bi,on),xi=(0,Ct.Z)(Cn,2),Zi=xi[0],Wi=xi[1],oi=E(Wi,ki,bn),ri=Wi?typeof Xi=="undefined"?Ti:Xi:!1,Zn=(0,kt.Z)(ri)==="object"?ri.pointAtCenter:!1;(0,dt.Z)(function(){var Mi;(Mi=gs.current)===null||Mi===void 0||Mi.forceAlign()},[Zn,Oo]);var ur=function(sn){Gr(sn),nn==null||nn(sn)};if(Wi===void 0)return null;var Yr=function(){qe(!1),fn==null||fn(Oo)},br=function(){return Ft.createElement(Ut,(0,rt.Z)({arrow:ri,key:"content",prefixCls:Jt,total:Ue.length,renderPanel:pi,onPrev:function(){ur(Oo-1)},onNext:function(){ur(Oo+1)},onClose:Yr,current:Oo,onFinish:function(){Yr(),An==null||An()},closeIcon:pr},Ue[Oo]))},mn=typeof ti=="boolean"?ti:!!ti,er=typeof ti=="boolean"?void 0:ti,cr=function(sn){return sn||Wi||document.body};return Ft.createElement(Ft.Fragment,null,Ft.createElement(ut,{zIndex:ee,prefixCls:Jt,pos:Zi,showMask:mn,style:er==null?void 0:er.style,fill:er==null?void 0:er.color,open:en,animated:Or,rootClassName:Oi}),Ft.createElement(vt.Z,(0,rt.Z)({builtinPlacements:_t(Zn)},mr,{ref:gs,popupStyle:Bn,popupPlacement:oi,popupVisible:en,popupClassName:xt()(Oi,dr),prefixCls:Jt,popup:br,forceRender:!1,destroyPopupOnHide:!0,zIndex:ee,getTriggerDOMNode:cr,arrow:!!ri}),Ft.createElement(pt.Z,{open:en,autoLock:!0},Ft.createElement("div",{className:xt()(Oi,"".concat(Jt,"-target-placeholder")),style:(0,ie.Z)((0,ie.Z)({},Zi||Gt),{},{position:"fixed",pointerEvents:"none"})}))))},Ht=Vt,ne=Ht,se=Rt(79676),ve=Rt(36355),Kt=Rt(88088),re=Rt(99267),we=Rt(3113),ke=Rt(9763),Me=Rt(31724),ge=Rt(47729);function fe(Bt){return Bt!=null}var _e=Bt=>{let{stepProps:te,current:me,type:Jt,indicatorsRender:Ie,closeIcon:Ue}=Bt;var Je,Ze;const{prefixCls:nn,total:fn=1,title:An,onClose:En,onPrev:Dn,onNext:ii,onFinish:mi,cover:Ti,description:Oi,nextButtonProps:ki,prevButtonProps:pi,type:Bi,className:Or,closeIcon:yr}=te,lr=Bi!=null?Bi:Jt,Si=yr!=null?yr:Ue,ee=Si!==!1&&Si!==null,[Ds,mr]=(0,ge.Z)(ee,Si,Jn=>Ft.createElement("span",{onClick:En,"aria-label":"Close",className:`${nn}-close`},Jn),Ft.createElement(re.Z,{className:`${nn}-close-icon`}),!0),gs=me===fn-1,Xs=()=>{var Jn;Dn==null||Dn(),(Jn=pi==null?void 0:pi.onClick)===null||Jn===void 0||Jn.call(pi)},Do=()=>{var Jn;gs?mi==null||mi():ii==null||ii(),(Jn=ki==null?void 0:ki.onClick)===null||Jn===void 0||Jn.call(ki)},Oo=fe(An)?Ft.createElement("div",{className:`${nn}-header`},Ft.createElement("div",{className:`${nn}-title`},An)):null,Gr=fe(Oi)?Ft.createElement("div",{className:`${nn}-description`},Oi):null,sa=fe(Ti)?Ft.createElement("div",{className:`${nn}-cover`},Ti):null;let dn;Ie?dn=Ie(me,fn):dn=(0,jt.Z)(Array.from({length:fn}).keys()).map((Jn,hi)=>Ft.createElement("span",{key:Jn,className:xt()(hi===me&&`${nn}-indicator-active`,`${nn}-indicator`)}));const en=lr==="primary"?"default":"primary",qe={type:"default",ghost:lr==="primary"},[zn]=(0,ke.Z)("Tour",Me.Z.Tour);return Ft.createElement("div",{className:xt()(Or,`${nn}-content`)},Ft.createElement("div",{className:`${nn}-inner`},Ds&&mr,sa,Oo,Gr,Ft.createElement("div",{className:`${nn}-footer`},fn>1&&Ft.createElement("div",{className:`${nn}-indicators`},dn),Ft.createElement("div",{className:`${nn}-buttons`},me!==0?Ft.createElement(we.ZP,Object.assign({},qe,pi,{onClick:Xs,size:"small",className:xt()(`${nn}-prev-btn`,pi==null?void 0:pi.className)}),(Je=pi==null?void 0:pi.children)!==null&&Je!==void 0?Je:zn==null?void 0:zn.Previous):null,Ft.createElement(we.ZP,Object.assign({type:en},ki,{onClick:Do,size:"small",className:xt()(`${nn}-next-btn`,ki==null?void 0:ki.className)}),(Ze=ki==null?void 0:ki.children)!==null&&Ze!==void 0?Ze:gs?zn==null?void 0:zn.Finish:zn==null?void 0:zn.Next)))))},Oe=Rt(39722),He=Rt(64993),Se=Rt(17313),xe=Rt(19447),le=Rt(83116),Ne=Rt(37613);const ae=Bt=>{const{componentCls:te,lineHeight:me,padding:Jt,paddingXS:Ie,borderRadius:Ue,borderRadiusXS:Je,colorPrimary:Ze,colorText:nn,colorFill:fn,indicatorHeight:An,indicatorWidth:En,boxShadowTertiary:Dn,tourZIndexPopup:ii,fontSize:mi,colorBgElevated:Ti,fontWeightStrong:Oi,marginXS:ki,colorTextLightSolid:pi,tourBorderRadius:Bi,colorWhite:Or,colorBgTextHover:yr,tourCloseSize:lr,motionDurationSlow:Si,antCls:ee}=Bt;return[{[te]:Object.assign(Object.assign({},(0,Se.Wf)(Bt)),{color:nn,position:"absolute",zIndex:ii,display:"block",visibility:"visible",fontSize:mi,lineHeight:me,width:520,"--antd-arrow-background-color":Ti,"&-pure":{maxWidth:"100%",position:"relative"},[`&${te}-hidden`]:{display:"none"},[`${te}-content`]:{position:"relative"},[`${te}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:Bi,boxShadow:Dn,position:"relative",backgroundColor:Ti,border:"none",backgroundClip:"padding-box",[`${te}-close`]:{position:"absolute",top:Jt,insetInlineEnd:Jt,color:Bt.colorIcon,outline:"none",width:lr,height:lr,borderRadius:Bt.borderRadiusSM,transition:`background-color ${Bt.motionDurationMid}, color ${Bt.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:Bt.colorIconHover,backgroundColor:Bt.wireframe?"transparent":Bt.colorFillContent}},[`${te}-cover`]:{textAlign:"center",padding:`${Jt+lr+Ie}px ${Jt}px 0`,img:{width:"100%"}},[`${te}-header`]:{padding:`${Jt}px ${Jt}px ${Ie}px`,[`${te}-title`]:{lineHeight:me,fontSize:mi,fontWeight:Oi}},[`${te}-description`]:{padding:`0 ${Jt}px`,lineHeight:me,wordWrap:"break-word"},[`${te}-footer`]:{padding:`${Ie}px ${Jt}px ${Jt}px`,textAlign:"end",borderRadius:`0 0 ${Je}px ${Je}px`,display:"flex",[`${te}-indicators`]:{display:"inline-block",[`${te}-indicator`]:{width:En,height:An,display:"inline-block",borderRadius:"50%",background:fn,"&:not(:last-child)":{marginInlineEnd:An},"&-active":{background:Ze}}},[`${te}-buttons`]:{marginInlineStart:"auto",[`${ee}-btn`]:{marginInlineStart:ki}}}},[`${te}-primary, &${te}-primary`]:{"--antd-arrow-background-color":Ze,[`${te}-inner`]:{color:pi,textAlign:"start",textDecoration:"none",backgroundColor:Ze,borderRadius:Ue,boxShadow:Dn,[`${te}-close`]:{color:pi},[`${te}-indicators`]:{[`${te}-indicator`]:{background:new He.C(pi).setAlpha(.15).toRgbString(),"&-active":{background:pi}}},[`${te}-prev-btn`]:{color:pi,borderColor:new He.C(pi).setAlpha(.15).toRgbString(),backgroundColor:Ze,"&:hover":{backgroundColor:new He.C(pi).setAlpha(.15).toRgbString(),borderColor:"transparent"}},[`${te}-next-btn`]:{color:Ze,borderColor:"transparent",background:Or,"&:hover":{background:new He.C(yr).onBackground(Or).toRgbString()}}}}}),[`${te}-mask`]:{[`${te}-placeholder-animated`]:{transition:`all ${Si}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${te}-inner`]:{borderRadius:Math.min(Bi,xe.qN)}}},(0,xe.ZP)(Bt,{colorBg:"var(--antd-arrow-background-color)",contentRadius:Bi,limitVerticalRadius:!0})]};var Ae=(0,le.Z)("Tour",Bt=>{const{borderRadiusLG:te,fontSize:me,lineHeight:Jt}=Bt,Ie=(0,Ne.TS)(Bt,{tourZIndexPopup:Bt.zIndexPopupBase+70,indicatorWidth:6,indicatorHeight:6,tourBorderRadius:te,tourCloseSize:me*Jt});return[ae(Ie)]}),Xe=Rt(53487),Be=function(Bt,te){var me={};for(var Jt in Bt)Object.prototype.hasOwnProperty.call(Bt,Jt)&&te.indexOf(Jt)<0&&(me[Jt]=Bt[Jt]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,Jt=Object.getOwnPropertySymbols(Bt);Ie{const{prefixCls:te,current:me=0,total:Jt=6,className:Ie,style:Ue,type:Je}=Bt,Ze=Be(Bt,["prefixCls","current","total","className","style","type"]),{getPrefixCls:nn}=Ft.useContext(ve.E_),fn=nn("tour",te),[An,En]=Ae(fn);return An(Ft.createElement(Oe.t5,{prefixCls:fn,hashId:En,className:xt()(Ie,`${fn}-pure`,Je&&`${fn}-${Je}`),style:Ue},Ft.createElement(_e,{stepProps:Object.assign(Object.assign({},Ze),{prefixCls:fn,total:Jt}),current:me,type:Je})))};var ue=(0,Xe.i)(Te),he=Bt=>{let{defaultType:te,steps:me=[],current:Jt,defaultCurrent:Ie}=Bt;var Ue;const[Je,Ze]=(0,ft.Z)(Ie,{value:Jt});(0,Ft.useLayoutEffect)(()=>{Jt!==void 0&&Ze(Jt)},[Jt]);const nn=typeof Je=="number"?(Ue=me[Je])===null||Ue===void 0?void 0:Ue.type:te;return{currentMergedType:nn!=null?nn:te,updateInnerCurrent:Ze}},ye=function(Bt,te){var me={};for(var Jt in Bt)Object.prototype.hasOwnProperty.call(Bt,Jt)&&te.indexOf(Jt)<0&&(me[Jt]=Bt[Jt]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,Jt=Object.getOwnPropertySymbols(Bt);Ie{const{prefixCls:te,current:me,defaultCurrent:Jt,type:Ie,rootClassName:Ue,indicatorsRender:Je,steps:Ze}=Bt,nn=ye(Bt,["prefixCls","current","defaultCurrent","type","rootClassName","indicatorsRender","steps"]),{getPrefixCls:fn,direction:An}=(0,Ft.useContext)(ve.E_),En=fn("tour",te),[Dn,ii]=Ae(En),[,mi]=(0,Kt.Z)(),{currentMergedType:Ti,updateInnerCurrent:Oi}=he({defaultType:Ie,steps:Ze,current:me,defaultCurrent:Jt}),ki=(0,se.Z)({arrowPointAtCenter:!0,autoAdjustOverflow:!0,offset:mi.marginXXS,arrowWidth:mi.sizePopupArrow,borderRadius:mi.borderRadius}),pi=xt()({[`${En}-primary`]:Ti==="primary",[`${En}-rtl`]:An==="rtl"},ii,Ue),Bi=(yr,lr)=>Ft.createElement(_e,{type:Ie,stepProps:yr,current:lr,indicatorsRender:Je}),Or=yr=>{var lr;Oi(yr),(lr=Bt.onChange)===null||lr===void 0||lr.call(Bt,yr)};return Dn(Ft.createElement(ne,Object.assign({},nn,{rootClassName:pi,prefixCls:En,current:me,defaultCurrent:Jt,animated:!0,renderPanel:Bi,builtinPlacements:ki,onChange:Or,steps:Ze})))};Qt._InternalPanelDoNotUseOrYouWillBeFired=ue;var Wt=Qt},99498:function(tn,Ke,Rt){(function(Ft){Ft(Rt(89780))})(function(Ft){Ft.defineOption("placeholder","",function(vt,yt,xt){var dt=xt&&xt!=Ft.Init;if(yt&&!dt)vt.on("blur",Ct),vt.on("change",St),vt.on("swapDoc",St),Ft.on(vt.getInputField(),"compositionupdate",vt.state.placeholderCompose=function(){kt(vt)}),St(vt);else if(!yt&&dt){vt.off("blur",Ct),vt.off("change",St),vt.off("swapDoc",St),Ft.off(vt.getInputField(),"compositionupdate",vt.state.placeholderCompose),ie(vt);var ft=vt.getWrapperElement();ft.className=ft.className.replace(" CodeMirror-empty","")}yt&&!vt.hasFocus()&&Ct(vt)});function ie(vt){vt.state.placeholder&&(vt.state.placeholder.parentNode.removeChild(vt.state.placeholder),vt.state.placeholder=null)}function rt(vt){ie(vt);var yt=vt.state.placeholder=document.createElement("pre");yt.style.cssText="height: 0; overflow: visible",yt.style.direction=vt.getOption("direction"),yt.className="CodeMirror-placeholder CodeMirror-line-like";var xt=vt.getOption("placeholder");typeof xt=="string"&&(xt=document.createTextNode(xt)),yt.appendChild(xt),vt.display.lineSpace.insertBefore(yt,vt.display.lineSpace.firstChild)}function kt(vt){setTimeout(function(){var yt=!1,xt=vt.getInputField();xt.nodeName=="TEXTAREA"?yt=!xt.value:vt.lineCount()==1&&(yt=!/[^\u200b]/.test(xt.querySelector(".CodeMirror-line").textContent)),yt?rt(vt):ie(vt)},20)}function Ct(vt){pt(vt)&&rt(vt)}function St(vt){var yt=vt.getWrapperElement(),xt=pt(vt);yt.className=yt.className.replace(" CodeMirror-empty","")+(xt?" CodeMirror-empty":""),xt?rt(vt):ie(vt)}function pt(vt){return vt.lineCount()===1&&vt.getLine(0)===""}})},25717:function(tn,Ke,Rt){(function(Ft){Ft(Rt(89780))})(function(Ft){var ie={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},rt=Ft.Pos;Ft.defineOption("autoCloseBrackets",!1,function(E,z,ot){ot&&ot!=Ft.Init&&(E.removeKeyMap(Ct),E.state.closeBrackets=null),z&&(St(kt(z,"pairs")),E.state.closeBrackets=z,E.addKeyMap(Ct))});function kt(E,z){return z=="pairs"&&typeof E=="string"?E:typeof E=="object"&&E[z]!=null?E[z]:ie[z]}var Ct={Backspace:yt,Enter:xt};function St(E){for(var z=0;z=0;at--){var wt=it[at].head;E.replaceRange("",rt(wt.line,wt.ch-1),rt(wt.line,wt.ch+1),"+delete")}}function xt(E){var z=vt(E),ot=z&&kt(z,"explode");if(!ot||E.getOption("disableInput"))return Ft.Pass;for(var it=E.listSelections(),at=0;at0;return{anchor:new rt(E.anchor.line,E.anchor.ch+(z?-1:1)),head:new rt(E.head.line,E.head.ch+(z?1:-1))}}function ft(E,z){var ot=vt(E);if(!ot||E.getOption("disableInput"))return Ft.Pass;var it=kt(ot,"pairs"),at=it.indexOf(z);if(at==-1)return Ft.Pass;for(var ut=kt(ot,"closeBefore"),wt=kt(ot,"triples"),Et=it.charAt(at+1)==z,At=E.listSelections(),_t=at%2==0,Mt,jt=0;jt=0&&E.getRange(It,rt(It.line,It.ch+3))==z+z+z?Ut="skipThree":Ut="skip";else if(Et&&It.ch>1&&wt.indexOf(z)>=0&&E.getRange(rt(It.line,It.ch-2),It)==z+z){if(It.ch>2&&/\bstring/.test(E.getTokenTypeAt(rt(It.line,It.ch-2))))return Ft.Pass;Ut="addFour"}else if(Et){var Gt=It.ch==0?" ":E.getRange(rt(It.line,It.ch-1),It);if(!Ft.isWordChar(Xt)&&Gt!=z&&!Ft.isWordChar(Gt))Ut="both";else return Ft.Pass}else if(_t&&(Xt.length===0||/\s/.test(Xt)||ut.indexOf(Xt)>-1))Ut="both";else return Ft.Pass;if(!Mt)Mt=Ut;else if(Mt!=Ut)return Ft.Pass}var Vt=at%2?it.charAt(at-1):z,Ht=at%2?z:it.charAt(at+1);E.operation(function(){if(Mt=="skip")E.execCommand("goCharRight");else if(Mt=="skipThree")for(var ne=0;ne<3;ne++)E.execCommand("goCharRight");else if(Mt=="surround"){for(var se=E.getSelections(),ne=0;ne'"]=function(ct){return kt(ct)}),yt.addKeyMap(ft)}});var ie=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],rt=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function kt(yt){if(yt.getOption("disableInput"))return Ft.Pass;for(var xt=yt.listSelections(),dt=[],ft=yt.getOption("autoCloseTags"),ct=0;ctlt.ch&&(at=at.slice(0,at.length-E.end+lt.ch));var At=at.toLowerCase();if(!at||E.type=="string"&&(E.end!=lt.ch||!/[\"\']/.test(E.string.charAt(E.string.length-1))||E.string.length==1)||E.type=="tag"&&it.close||E.string.indexOf("/")==lt.ch-E.start-1||wt&&pt(wt,At)>-1||vt(yt,z.mode.xmlCurrentContext&&z.mode.xmlCurrentContext(ot)||[],at,lt,!0))return Ft.Pass;var _t=typeof ft=="object"&&ft.emptyTags;if(_t&&pt(_t,at)>-1){dt[ct]={text:"/>",newPos:Ft.Pos(lt.line,lt.ch+2)};continue}var Mt=Et&&pt(Et,At)>-1;dt[ct]={indent:Mt,text:">"+(Mt?` -`:"")+"",newPos:Mt?Ft.Pos(lt.line+1,0):Ft.Pos(lt.line,lt.ch+1)}}for(var jt=typeof ft=="object"&&ft.dontIndentOnAutoClose,ct=xt.length-1;ct>=0;ct--){var Lt=dt[ct];yt.replaceRange(Lt.text,xt[ct].head,xt[ct].anchor,"+insert");var It=yt.listSelections().slice(0);It[ct]={head:Lt.newPos,anchor:Lt.newPos},yt.setSelections(It),!jt&&Lt.indent&&(yt.indentLine(Lt.newPos.line,null,!0),yt.indentLine(Lt.newPos.line+1,null,!0))}}function Ct(yt,xt){for(var dt=yt.listSelections(),ft=[],ct=xt?"/":""&&(wt+=">"),ft[z]=wt}if(yt.replaceSelections(ft),dt=yt.listSelections(),!E)for(var z=0;z=0&&xt[ot]==dt;ot--)++z;ft=E.to;for(var ot=1;ot=ot.max))return ot.ch=0,ot.text=ot.cm.getLine(++ot.line),!0}function xt(ot){if(!(ot.line<=ot.min))return ot.text=ot.cm.getLine(--ot.line),ot.ch=ot.text.length,!0}function dt(ot){for(;;){var it=ot.text.indexOf(">",ot.ch);if(it==-1){if(yt(ot))continue;return}if(!vt(ot,it+1)){ot.ch=it+1;continue}var at=ot.text.lastIndexOf("/",it),ut=at>-1&&!/\S/.test(ot.text.slice(at+1,it));return ot.ch=it+1,ut?"selfClose":"regular"}}function ft(ot){for(;;){var it=ot.ch?ot.text.lastIndexOf("<",ot.ch-1):-1;if(it==-1){if(xt(ot))continue;return}if(!vt(ot,it+1)){ot.ch=it;continue}St.lastIndex=it,ot.ch=it;var at=St.exec(ot.text);if(at&&at.index==it)return at}}function ct(ot){for(;;){St.lastIndex=ot.ch;var it=St.exec(ot.text);if(!it){if(yt(ot))continue;return}if(!vt(ot,it.index+1)){ot.ch=it.index+1;continue}return ot.ch=it.index+it[0].length,it}}function lt(ot){for(;;){var it=ot.ch?ot.text.lastIndexOf(">",ot.ch-1):-1;if(it==-1){if(xt(ot))continue;return}if(!vt(ot,it+1)){ot.ch=it;continue}var at=ot.text.lastIndexOf("/",it),ut=at>-1&&!/\S/.test(ot.text.slice(at+1,it));return ot.ch=it+1,ut?"selfClose":"regular"}}function E(ot,it){for(var at=[];;){var ut=ct(ot),wt,Et=ot.line,At=ot.ch-(ut?ut[0].length:0);if(!ut||!(wt=dt(ot)))return;if(wt!="selfClose")if(ut[1]){for(var _t=at.length-1;_t>=0;--_t)if(at[_t]==ut[2]){at.length=_t;break}if(_t<0&&(!it||it==ut[2]))return{tag:ut[2],from:ie(Et,At),to:ie(ot.line,ot.ch)}}else at.push(ut[2])}}function z(ot,it){for(var at=[];;){var ut=lt(ot);if(!ut)return;if(ut=="selfClose"){ft(ot);continue}var wt=ot.line,Et=ot.ch,At=ft(ot);if(!At)return;if(At[1])at.push(At[2]);else{for(var _t=at.length-1;_t>=0;--_t)if(at[_t]==At[2]){at.length=_t;break}if(_t<0&&(!it||it==At[2]))return{tag:At[2],from:ie(ot.line,ot.ch),to:ie(wt,Et)}}}}Ft.registerHelper("fold","xml",function(ot,it){for(var at=new pt(ot,it.line,0);;){var ut=ct(at);if(!ut||at.line!=it.line)return;var wt=dt(at);if(!wt)return;if(!ut[1]&&wt!="selfClose"){var Et=ie(at.line,at.ch),At=E(at,ut[2]);return At&&rt(At.from,Et)>0?{from:Et,to:At.from}:null}}}),Ft.findMatchingTag=function(ot,it,at){var ut=new pt(ot,it.line,it.ch,at);if(!(ut.text.indexOf(">")==-1&&ut.text.indexOf("<")==-1)){var wt=dt(ut),Et=wt&&ie(ut.line,ut.ch),At=wt&&ft(ut);if(!(!wt||!At||rt(ut,it)>0)){var _t={from:ie(ut.line,ut.ch),to:Et,tag:At[2]};return wt=="selfClose"?{open:_t,close:null,at:"open"}:At[1]?{open:z(ut,At[2]),close:_t,at:"close"}:(ut=new pt(ot,Et.line,Et.ch,at),{open:_t,close:E(ut,At[2]),at:"open"})}}},Ft.findEnclosingTag=function(ot,it,at,ut){for(var wt=new pt(ot,it.line,it.ch,at);;){var Et=z(wt,ut);if(!Et)break;var At=new pt(ot,it.line,it.ch,at),_t=E(At,Et.tag);if(_t)return{open:Et,close:_t}}},Ft.scanForClosingTag=function(ot,it,at,ut){var wt=new pt(ot,it.line,it.ch,ut?{from:0,to:ut}:null);return E(wt,at)}})},89780:function(tn){(function(Ke,Rt){tn.exports=Rt()})(this,function(){"use strict";var Ke=navigator.userAgent,Rt=navigator.platform,Ft=/gecko\/\d/i.test(Ke),ie=/MSIE \d/.test(Ke),rt=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ke),kt=/Edge\/(\d+)/.exec(Ke),Ct=ie||rt||kt,St=Ct&&(ie?document.documentMode||6:+(kt||rt)[1]),pt=!kt&&/WebKit\//.test(Ke),vt=pt&&/Qt\/\d+\.\d+/.test(Ke),yt=!kt&&/Chrome\//.test(Ke),xt=/Opera\//.test(Ke),dt=/Apple Computer/.test(navigator.vendor),ft=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Ke),ct=/PhantomJS/.test(Ke),lt=!kt&&/AppleWebKit/.test(Ke)&&/Mobile\/\w+/.test(Ke),E=/Android/.test(Ke),z=lt||E||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Ke),ot=lt||/Mac/.test(Rt),it=/\bCrOS\b/.test(Ke),at=/win/i.test(Rt),ut=xt&&Ke.match(/Version\/(\d*\.\d*)/);ut&&(ut=Number(ut[1])),ut&&ut>=15&&(xt=!1,pt=!0);var wt=ot&&(vt||xt&&(ut==null||ut<12.11)),Et=Ft||Ct&&St>=9;function At(st){return new RegExp("(^|\\s)"+st+"(?:$|\\s)\\s*")}var _t=function(st,mt){var Ot=st.className,Tt=At(mt).exec(Ot);if(Tt){var Dt=Ot.slice(Tt.index+Tt[0].length);st.className=Ot.slice(0,Tt.index)+(Dt?Tt[1]+Dt:"")}};function Mt(st){for(var mt=st.childNodes.length;mt>0;--mt)st.removeChild(st.firstChild);return st}function jt(st,mt){return Mt(st).appendChild(mt)}function Lt(st,mt,Ot,Tt){var Dt=document.createElement(st);if(Ot&&(Dt.className=Ot),Tt&&(Dt.style.cssText=Tt),typeof mt=="string")Dt.appendChild(document.createTextNode(mt));else if(mt)for(var qt=0;qt=mt)return ce+(mt-qt);ce+=Ce-qt,ce+=Ot-ce%Ot,qt=Ce+1}}var re=function(){this.id=null,this.f=null,this.time=0,this.handler=ae(this.onTimeout,this)};re.prototype.onTimeout=function(st){st.id=0,st.time<=+new Date?st.f():setTimeout(st.handler,st.time-+new Date)},re.prototype.set=function(st,mt){this.f=mt;var Ot=+new Date+st;(!this.id||Ot=mt)return Tt+Math.min(ce,mt-Dt);if(Dt+=qt-Tt,Dt+=Ot-Dt%Ot,Tt=qt+1,Dt>=mt)return Tt}}var je=[""];function He(st){for(;je.length<=st;)je.push(Se(je)+" ");return je[st]}function Se(st){return st[st.length-1]}function xe(st,mt){for(var Ot=[],Tt=0;Tt"\x80"&&(st.toUpperCase()!=st.toLowerCase()||Ae.test(st))}function Be(st,mt){return mt?mt.source.indexOf("\\w")>-1&&Xe(st)?!0:mt.test(st):Xe(st)}function Te(st){for(var mt in st)if(st.hasOwnProperty(mt)&&st[mt])return!1;return!0}var ue=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function $t(st){return st.charCodeAt(0)>=768&&ue.test(st)}function he(st,mt,Ot){for(;(Ot<0?mt>0:mtOt?-1:1;;){if(mt==Ot)return mt;var Dt=(mt+Ot)/2,qt=Tt<0?Math.ceil(Dt):Math.floor(Dt);if(qt==mt)return st(qt)?mt:Ot;st(qt)?Ot=qt:mt=qt+Tt}}function Qt(st,mt,Ot,Tt){if(!st)return Tt(mt,Ot,"ltr",0);for(var Dt=!1,qt=0;qtmt||mt==Ot&&ce.to==mt)&&(Tt(Math.max(ce.from,mt),Math.min(ce.to,Ot),ce.level==1?"rtl":"ltr",qt),Dt=!0)}Dt||Tt(mt,Ot,"ltr")}var Wt=null;function Bt(st,mt,Ot){var Tt;Wt=null;for(var Dt=0;Dtmt)return Dt;qt.to==mt&&(qt.from!=qt.to&&Ot=="before"?Tt=Dt:Wt=Dt),qt.from==mt&&(qt.from!=qt.to&&Ot!="before"?Tt=Dt:Wt=Dt)}return Tt!=null?Tt:Wt}var te=function(){var st="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",mt="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function Ot(Fe){return Fe<=247?st.charAt(Fe):1424<=Fe&&Fe<=1524?"R":1536<=Fe&&Fe<=1785?mt.charAt(Fe-1536):1774<=Fe&&Fe<=2220?"r":8192<=Fe&&Fe<=8203?"w":Fe==8204?"b":"L"}var Tt=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,Dt=/[stwN]/,qt=/[LRr]/,ce=/[Lb1n]/,Ce=/[1n]/;function be(Fe,Qe,ze){this.level=Fe,this.from=Qe,this.to=ze}return function(Fe,Qe){var ze=Qe=="ltr"?"L":"R";if(Fe.length==0||Qe=="ltr"&&!Tt.test(Fe))return!1;for(var ln=Fe.length,an=[],kn=0;kn-1&&(Tt[mt]=Dt.slice(0,qt).concat(Dt.slice(qt+1)))}}}function Ze(st,mt){var Ot=Ue(st,mt);if(Ot.length)for(var Tt=Array.prototype.slice.call(arguments,2),Dt=0;Dt0}function En(st){st.prototype.on=function(mt,Ot){Ie(this,mt,Ot)},st.prototype.off=function(mt,Ot){Je(this,mt,Ot)}}function Dn(st){st.preventDefault?st.preventDefault():st.returnValue=!1}function ii(st){st.stopPropagation?st.stopPropagation():st.cancelBubble=!0}function mi(st){return st.defaultPrevented!=null?st.defaultPrevented:st.returnValue==!1}function Ti(st){Dn(st),ii(st)}function Oi(st){return st.target||st.srcElement}function ki(st){var mt=st.which;return mt==null&&(st.button&1?mt=1:st.button&2?mt=3:st.button&4&&(mt=2)),ot&&st.ctrlKey&&mt==1&&(mt=3),mt}var pi=function(){if(Ct&&St<9)return!1;var st=Lt("div");return"draggable"in st||"dragDrop"in st}(),Bi;function Or(st){if(Bi==null){var mt=Lt("span","\u200B");jt(st,Lt("span",[mt,document.createTextNode("x")])),st.firstChild.offsetHeight!=0&&(Bi=mt.offsetWidth<=1&&mt.offsetHeight>2&&!(Ct&&St<8))}var Ot=Bi?Lt("span","\u200B"):Lt("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return Ot.setAttribute("cm-text",""),Ot}var yr;function lr(st){if(yr!=null)return yr;var mt=jt(st,document.createTextNode("A\u062EA")),Ot=Ut(mt,0,1).getBoundingClientRect(),Tt=Ut(mt,1,2).getBoundingClientRect();return Mt(st),!Ot||Ot.left==Ot.right?!1:yr=Tt.right-Ot.right<3}var Si=` +`:"")+"",newPos:Mt?Ft.Pos(lt.line+1,0):Ft.Pos(lt.line,lt.ch+1)}}for(var jt=typeof ft=="object"&&ft.dontIndentOnAutoClose,ct=xt.length-1;ct>=0;ct--){var Lt=dt[ct];yt.replaceRange(Lt.text,xt[ct].head,xt[ct].anchor,"+insert");var It=yt.listSelections().slice(0);It[ct]={head:Lt.newPos,anchor:Lt.newPos},yt.setSelections(It),!jt&&Lt.indent&&(yt.indentLine(Lt.newPos.line,null,!0),yt.indentLine(Lt.newPos.line+1,null,!0))}}function Ct(yt,xt){for(var dt=yt.listSelections(),ft=[],ct=xt?"/":""&&(wt+=">"),ft[z]=wt}if(yt.replaceSelections(ft),dt=yt.listSelections(),!E)for(var z=0;z=0&&xt[ot]==dt;ot--)++z;ft=E.to;for(var ot=1;ot=ot.max))return ot.ch=0,ot.text=ot.cm.getLine(++ot.line),!0}function xt(ot){if(!(ot.line<=ot.min))return ot.text=ot.cm.getLine(--ot.line),ot.ch=ot.text.length,!0}function dt(ot){for(;;){var it=ot.text.indexOf(">",ot.ch);if(it==-1){if(yt(ot))continue;return}if(!vt(ot,it+1)){ot.ch=it+1;continue}var at=ot.text.lastIndexOf("/",it),ut=at>-1&&!/\S/.test(ot.text.slice(at+1,it));return ot.ch=it+1,ut?"selfClose":"regular"}}function ft(ot){for(;;){var it=ot.ch?ot.text.lastIndexOf("<",ot.ch-1):-1;if(it==-1){if(xt(ot))continue;return}if(!vt(ot,it+1)){ot.ch=it;continue}St.lastIndex=it,ot.ch=it;var at=St.exec(ot.text);if(at&&at.index==it)return at}}function ct(ot){for(;;){St.lastIndex=ot.ch;var it=St.exec(ot.text);if(!it){if(yt(ot))continue;return}if(!vt(ot,it.index+1)){ot.ch=it.index+1;continue}return ot.ch=it.index+it[0].length,it}}function lt(ot){for(;;){var it=ot.ch?ot.text.lastIndexOf(">",ot.ch-1):-1;if(it==-1){if(xt(ot))continue;return}if(!vt(ot,it+1)){ot.ch=it;continue}var at=ot.text.lastIndexOf("/",it),ut=at>-1&&!/\S/.test(ot.text.slice(at+1,it));return ot.ch=it+1,ut?"selfClose":"regular"}}function E(ot,it){for(var at=[];;){var ut=ct(ot),wt,Et=ot.line,At=ot.ch-(ut?ut[0].length:0);if(!ut||!(wt=dt(ot)))return;if(wt!="selfClose")if(ut[1]){for(var _t=at.length-1;_t>=0;--_t)if(at[_t]==ut[2]){at.length=_t;break}if(_t<0&&(!it||it==ut[2]))return{tag:ut[2],from:ie(Et,At),to:ie(ot.line,ot.ch)}}else at.push(ut[2])}}function z(ot,it){for(var at=[];;){var ut=lt(ot);if(!ut)return;if(ut=="selfClose"){ft(ot);continue}var wt=ot.line,Et=ot.ch,At=ft(ot);if(!At)return;if(At[1])at.push(At[2]);else{for(var _t=at.length-1;_t>=0;--_t)if(at[_t]==At[2]){at.length=_t;break}if(_t<0&&(!it||it==At[2]))return{tag:At[2],from:ie(ot.line,ot.ch),to:ie(wt,Et)}}}}Ft.registerHelper("fold","xml",function(ot,it){for(var at=new pt(ot,it.line,0);;){var ut=ct(at);if(!ut||at.line!=it.line)return;var wt=dt(at);if(!wt)return;if(!ut[1]&&wt!="selfClose"){var Et=ie(at.line,at.ch),At=E(at,ut[2]);return At&&rt(At.from,Et)>0?{from:Et,to:At.from}:null}}}),Ft.findMatchingTag=function(ot,it,at){var ut=new pt(ot,it.line,it.ch,at);if(!(ut.text.indexOf(">")==-1&&ut.text.indexOf("<")==-1)){var wt=dt(ut),Et=wt&&ie(ut.line,ut.ch),At=wt&&ft(ut);if(!(!wt||!At||rt(ut,it)>0)){var _t={from:ie(ut.line,ut.ch),to:Et,tag:At[2]};return wt=="selfClose"?{open:_t,close:null,at:"open"}:At[1]?{open:z(ut,At[2]),close:_t,at:"close"}:(ut=new pt(ot,Et.line,Et.ch,at),{open:_t,close:E(ut,At[2]),at:"open"})}}},Ft.findEnclosingTag=function(ot,it,at,ut){for(var wt=new pt(ot,it.line,it.ch,at);;){var Et=z(wt,ut);if(!Et)break;var At=new pt(ot,it.line,it.ch,at),_t=E(At,Et.tag);if(_t)return{open:Et,close:_t}}},Ft.scanForClosingTag=function(ot,it,at,ut){var wt=new pt(ot,it.line,it.ch,ut?{from:0,to:ut}:null);return E(wt,at)}})},89780:function(tn){(function(Ke,Rt){tn.exports=Rt()})(this,function(){"use strict";var Ke=navigator.userAgent,Rt=navigator.platform,Ft=/gecko\/\d/i.test(Ke),ie=/MSIE \d/.test(Ke),rt=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ke),kt=/Edge\/(\d+)/.exec(Ke),Ct=ie||rt||kt,St=Ct&&(ie?document.documentMode||6:+(kt||rt)[1]),pt=!kt&&/WebKit\//.test(Ke),vt=pt&&/Qt\/\d+\.\d+/.test(Ke),yt=!kt&&/Chrome\//.test(Ke),xt=/Opera\//.test(Ke),dt=/Apple Computer/.test(navigator.vendor),ft=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Ke),ct=/PhantomJS/.test(Ke),lt=!kt&&/AppleWebKit/.test(Ke)&&/Mobile\/\w+/.test(Ke),E=/Android/.test(Ke),z=lt||E||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Ke),ot=lt||/Mac/.test(Rt),it=/\bCrOS\b/.test(Ke),at=/win/i.test(Rt),ut=xt&&Ke.match(/Version\/(\d*\.\d*)/);ut&&(ut=Number(ut[1])),ut&&ut>=15&&(xt=!1,pt=!0);var wt=ot&&(vt||xt&&(ut==null||ut<12.11)),Et=Ft||Ct&&St>=9;function At(st){return new RegExp("(^|\\s)"+st+"(?:$|\\s)\\s*")}var _t=function(st,mt){var Ot=st.className,Tt=At(mt).exec(Ot);if(Tt){var Dt=Ot.slice(Tt.index+Tt[0].length);st.className=Ot.slice(0,Tt.index)+(Dt?Tt[1]+Dt:"")}};function Mt(st){for(var mt=st.childNodes.length;mt>0;--mt)st.removeChild(st.firstChild);return st}function jt(st,mt){return Mt(st).appendChild(mt)}function Lt(st,mt,Ot,Tt){var Dt=document.createElement(st);if(Ot&&(Dt.className=Ot),Tt&&(Dt.style.cssText=Tt),typeof mt=="string")Dt.appendChild(document.createTextNode(mt));else if(mt)for(var qt=0;qt=mt)return ce+(mt-qt);ce+=Ce-qt,ce+=Ot-ce%Ot,qt=Ce+1}}var re=function(){this.id=null,this.f=null,this.time=0,this.handler=se(this.onTimeout,this)};re.prototype.onTimeout=function(st){st.id=0,st.time<=+new Date?st.f():setTimeout(st.handler,st.time-+new Date)},re.prototype.set=function(st,mt){this.f=mt;var Ot=+new Date+st;(!this.id||Ot=mt)return Tt+Math.min(ce,mt-Dt);if(Dt+=qt-Tt,Dt+=Ot-Dt%Ot,Tt=qt+1,Dt>=mt)return Tt}}var Oe=[""];function He(st){for(;Oe.length<=st;)Oe.push(Se(Oe)+" ");return Oe[st]}function Se(st){return st[st.length-1]}function xe(st,mt){for(var Ot=[],Tt=0;Tt"\x80"&&(st.toUpperCase()!=st.toLowerCase()||Ae.test(st))}function Be(st,mt){return mt?mt.source.indexOf("\\w")>-1&&Xe(st)?!0:mt.test(st):Xe(st)}function Te(st){for(var mt in st)if(st.hasOwnProperty(mt)&&st[mt])return!1;return!0}var ue=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function $t(st){return st.charCodeAt(0)>=768&&ue.test(st)}function he(st,mt,Ot){for(;(Ot<0?mt>0:mtOt?-1:1;;){if(mt==Ot)return mt;var Dt=(mt+Ot)/2,qt=Tt<0?Math.ceil(Dt):Math.floor(Dt);if(qt==mt)return st(qt)?mt:Ot;st(qt)?Ot=qt:mt=qt+Tt}}function Qt(st,mt,Ot,Tt){if(!st)return Tt(mt,Ot,"ltr",0);for(var Dt=!1,qt=0;qtmt||mt==Ot&&ce.to==mt)&&(Tt(Math.max(ce.from,mt),Math.min(ce.to,Ot),ce.level==1?"rtl":"ltr",qt),Dt=!0)}Dt||Tt(mt,Ot,"ltr")}var Wt=null;function Bt(st,mt,Ot){var Tt;Wt=null;for(var Dt=0;Dtmt)return Dt;qt.to==mt&&(qt.from!=qt.to&&Ot=="before"?Tt=Dt:Wt=Dt),qt.from==mt&&(qt.from!=qt.to&&Ot!="before"?Tt=Dt:Wt=Dt)}return Tt!=null?Tt:Wt}var te=function(){var st="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",mt="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function Ot(Fe){return Fe<=247?st.charAt(Fe):1424<=Fe&&Fe<=1524?"R":1536<=Fe&&Fe<=1785?mt.charAt(Fe-1536):1774<=Fe&&Fe<=2220?"r":8192<=Fe&&Fe<=8203?"w":Fe==8204?"b":"L"}var Tt=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,Dt=/[stwN]/,qt=/[LRr]/,ce=/[Lb1n]/,Ce=/[1n]/;function be(Fe,Qe,ze){this.level=Fe,this.from=Qe,this.to=ze}return function(Fe,Qe){var ze=Qe=="ltr"?"L":"R";if(Fe.length==0||Qe=="ltr"&&!Tt.test(Fe))return!1;for(var ln=Fe.length,an=[],kn=0;kn-1&&(Tt[mt]=Dt.slice(0,qt).concat(Dt.slice(qt+1)))}}}function Ze(st,mt){var Ot=Ue(st,mt);if(Ot.length)for(var Tt=Array.prototype.slice.call(arguments,2),Dt=0;Dt0}function En(st){st.prototype.on=function(mt,Ot){Ie(this,mt,Ot)},st.prototype.off=function(mt,Ot){Je(this,mt,Ot)}}function Dn(st){st.preventDefault?st.preventDefault():st.returnValue=!1}function ii(st){st.stopPropagation?st.stopPropagation():st.cancelBubble=!0}function mi(st){return st.defaultPrevented!=null?st.defaultPrevented:st.returnValue==!1}function Ti(st){Dn(st),ii(st)}function Oi(st){return st.target||st.srcElement}function ki(st){var mt=st.which;return mt==null&&(st.button&1?mt=1:st.button&2?mt=3:st.button&4&&(mt=2)),ot&&st.ctrlKey&&mt==1&&(mt=3),mt}var pi=function(){if(Ct&&St<9)return!1;var st=Lt("div");return"draggable"in st||"dragDrop"in st}(),Bi;function Or(st){if(Bi==null){var mt=Lt("span","\u200B");jt(st,Lt("span",[mt,document.createTextNode("x")])),st.firstChild.offsetHeight!=0&&(Bi=mt.offsetWidth<=1&&mt.offsetHeight>2&&!(Ct&&St<8))}var Ot=Bi?Lt("span","\u200B"):Lt("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return Ot.setAttribute("cm-text",""),Ot}var yr;function lr(st){if(yr!=null)return yr;var mt=jt(st,document.createTextNode("A\u062EA")),Ot=Ut(mt,0,1).getBoundingClientRect(),Tt=Ut(mt,1,2).getBoundingClientRect();return Mt(st),!Ot||Ot.left==Ot.right?!1:yr=Tt.right-Ot.right<3}var Si=` b`.split(/\n/).length!=3?function(st){for(var mt=0,Ot=[],Tt=st.length;mt<=Tt;){var Dt=st.indexOf(` -`,mt);Dt==-1&&(Dt=st.length);var qt=st.slice(mt,st.charAt(Dt-1)=="\r"?Dt-1:Dt),ce=qt.indexOf("\r");ce!=-1?(Ot.push(qt.slice(0,ce)),mt+=ce+1):(Ot.push(qt),mt=Dt+1)}return Ot}:function(st){return st.split(/\r\n?|\n/)},ee=window.getSelection?function(st){try{return st.selectionStart!=st.selectionEnd}catch(mt){return!1}}:function(st){var mt;try{mt=st.ownerDocument.selection.createRange()}catch(Ot){}return!mt||mt.parentElement()!=st?!1:mt.compareEndPoints("StartToEnd",mt)!=0},Ds=function(){var st=Lt("div");return"oncopy"in st?!0:(st.setAttribute("oncopy","return;"),typeof st.oncopy=="function")}(),mr=null;function ms(st){if(mr!=null)return mr;var mt=jt(st,Lt("span","x")),Ot=mt.getBoundingClientRect(),Tt=Ut(mt,0,1).getBoundingClientRect();return mr=Math.abs(Ot.left-Tt.left)>1}var Xs={},Do={};function Oo(st,mt){arguments.length>2&&(mt.dependencies=Array.prototype.slice.call(arguments,2)),Xs[st]=mt}function Gr(st,mt){Do[st]=mt}function sa(st){if(typeof st=="string"&&Do.hasOwnProperty(st))st=Do[st];else if(st&&typeof st.name=="string"&&Do.hasOwnProperty(st.name)){var mt=Do[st.name];typeof mt=="string"&&(mt={name:mt}),st=se(mt,st),st.name=mt.name}else{if(typeof st=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(st))return sa("application/xml");if(typeof st=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(st))return sa("application/json")}return typeof st=="string"?{name:st}:st||{name:"null"}}function dn(st,mt){mt=sa(mt);var Ot=Xs[mt.name];if(!Ot)return dn(st,"text/plain");var Tt=Ot(st,mt);if(en.hasOwnProperty(mt.name)){var Dt=en[mt.name];for(var qt in Dt)Dt.hasOwnProperty(qt)&&(Tt.hasOwnProperty(qt)&&(Tt["_"+qt]=Tt[qt]),Tt[qt]=Dt[qt])}if(Tt.name=mt.name,mt.helperType&&(Tt.helperType=mt.helperType),mt.modeProps)for(var ce in mt.modeProps)Tt[ce]=mt.modeProps[ce];return Tt}var en={};function qe(st,mt){var Ot=en.hasOwnProperty(st)?en[st]:en[st]={};ve(mt,Ot)}function zn(st,mt){if(mt===!0)return mt;if(st.copyState)return st.copyState(mt);var Ot={};for(var Tt in mt){var Dt=mt[Tt];Dt instanceof Array&&(Dt=Dt.concat([])),Ot[Tt]=Dt}return Ot}function Jn(st,mt){for(var Ot;st.innerMode&&(Ot=st.innerMode(mt),!(!Ot||Ot.mode==st));)mt=Ot.state,st=Ot.mode;return Ot||{mode:st,state:mt}}function hi(st,mt,Ot){return st.startState?st.startState(mt,Ot):!0}var bn=function(st,mt,Ot){this.pos=this.start=0,this.string=st,this.tabSize=mt||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=Ot};bn.prototype.eol=function(){return this.pos>=this.string.length},bn.prototype.sol=function(){return this.pos==this.lineStart},bn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},bn.prototype.next=function(){if(this.posmt},bn.prototype.eatSpace=function(){for(var st=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>st},bn.prototype.skipToEnd=function(){this.pos=this.string.length},bn.prototype.skipTo=function(st){var mt=this.string.indexOf(st,this.pos);if(mt>-1)return this.pos=mt,!0},bn.prototype.backUp=function(st){this.pos-=st},bn.prototype.column=function(){return this.lastColumnPos0?null:(qt&&mt!==!1&&(this.pos+=qt[0].length),qt)}},bn.prototype.current=function(){return this.string.slice(this.start,this.pos)},bn.prototype.hideFirstChars=function(st,mt){this.lineStart+=st;try{return mt()}finally{this.lineStart-=st}},bn.prototype.lookAhead=function(st){var mt=this.lineOracle;return mt&&mt.lookAhead(st)},bn.prototype.baseToken=function(){var st=this.lineOracle;return st&&st.baseToken(this.pos)};function Bn(st,mt){if(mt-=st.first,mt<0||mt>=st.size)throw new Error("There is no line "+(mt+st.first)+" in the document.");for(var Ot=st;!Ot.lines;)for(var Tt=0;;++Tt){var Dt=Ot.children[Tt],qt=Dt.chunkSize();if(mt=st.first&&mtOt?on(Ot,Bn(st,Ot).text.length):ur(mt,Bn(st,mt.line).text.length)}function ur(st,mt){var Ot=st.ch;return Ot==null||Ot>mt?on(st.line,mt):Ot<0?on(st.line,0):st}function Yr(st,mt){for(var Ot=[],Tt=0;Ttthis.maxLookAhead&&(this.maxLookAhead=st),mt},mn.prototype.baseToken=function(st){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=st;)this.baseTokenPos+=2;var mt=this.baseTokens[this.baseTokenPos+1];return{type:mt&&mt.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-st}},mn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},mn.fromSaved=function(st,mt,Ot){return mt instanceof br?new mn(st,zn(st.mode,mt.state),Ot,mt.lookAhead):new mn(st,zn(st.mode,mt),Ot)},mn.prototype.save=function(st){var mt=st!==!1?zn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new br(mt,this.maxLookAhead):mt};function er(st,mt,Ot,Tt){var Dt=[st.state.modeGen],qt={};hr(st,mt.text,st.doc.mode,Ot,function(Fe,Qe){return Dt.push(Fe,Qe)},qt,Tt);for(var ce=Ot.state,Ce=function(Fe){Ot.baseTokens=Dt;var Qe=st.state.overlays[Fe],ze=1,ln=0;Ot.state=!0,hr(st,mt.text,Qe.mode,Ot,function(an,kn){for(var Tn=ze;lnan&&Dt.splice(ze,1,an,Dt[ze+1],In),ze+=2,ln=Math.min(an,In)}if(kn)if(Qe.opaque)Dt.splice(Tn,ze-Tn,an,"overlay "+kn),ze=Tn+2;else for(;Tnst.options.maxHighlightLength&&zn(st.doc.mode,Tt.state),qt=er(st,mt,Tt);Dt&&(Tt.state=Dt),mt.stateAfter=Tt.save(!Dt),mt.styles=qt.styles,qt.classes?mt.styleClasses=qt.classes:mt.styleClasses&&(mt.styleClasses=null),Ot===st.doc.highlightFrontier&&(st.doc.modeFrontier=Math.max(st.doc.modeFrontier,++st.doc.highlightFrontier))}return mt.styles}function Mi(st,mt,Ot){var Tt=st.doc,Dt=st.display;if(!Tt.mode.startState)return new mn(Tt,!0,mt);var qt=Vi(st,mt,Ot),ce=qt>Tt.first&&Bn(Tt,qt-1).stateAfter,Ce=ce?mn.fromSaved(Tt,ce,qt):new mn(Tt,hi(Tt.mode),qt);return Tt.iter(qt,mt,function(be){sn(st,be.text,Ce);var Fe=Ce.line;be.stateAfter=Fe==mt-1||Fe%5==0||Fe>=Dt.viewFrom&&Femt.start)return qt}throw new Error("Mode "+st.name+" failed to advance stream.")}var si=function(st,mt,Ot){this.start=st.start,this.end=st.pos,this.string=st.current(),this.type=mt||null,this.state=Ot};function ei(st,mt,Ot,Tt){var Dt=st.doc,qt=Dt.mode,ce;mt=Zn(Dt,mt);var Ce=Bn(Dt,mt.line),be=Mi(st,mt.line,Ot),Fe=new bn(Ce.text,st.options.tabSize,be),Qe;for(Tt&&(Qe=[]);(Tt||Fe.posst.options.maxHighlightLength?(Ce=!1,ce&&sn(st,mt,Tt,Qe.pos),Qe.pos=mt.length,ze=null):ze=Li(Qn(Ot,Qe,Tt.state,ln),qt),ln){var an=ln[0].name;an&&(ze="m-"+(ze?an+" "+ze:an))}if(!Ce||Fe!=ze){for(;bece;--Ce){if(Ce<=qt.first)return qt.first;var be=Bn(qt,Ce-1),Fe=be.stateAfter;if(Fe&&(!Ot||Ce+(Fe instanceof br?Fe.lookAhead:0)<=qt.modeFrontier))return Ce;var Qe=Kt(be.text,null,st.options.tabSize);(Dt==null||Tt>Qe)&&(Dt=Ce-1,Tt=Qe)}return Dt}function Yi(st,mt){if(st.modeFrontier=Math.min(st.modeFrontier,mt),!(st.highlightFrontierOt;Tt--){var Dt=Bn(st,Tt).stateAfter;if(Dt&&(!(Dt instanceof br)||Tt+Dt.lookAhead=mt:qt.to>mt);(Tt||(Tt=[])).push(new qi(ce,qt.from,be?null:qt.to))}}return Tt}function Ri(st,mt,Ot){var Tt;if(st)for(var Dt=0;Dt=mt:qt.to>mt);if(Ce||qt.from==mt&&ce.type=="bookmark"&&(!Ot||qt.marker.insertLeft)){var be=qt.from==null||(ce.inclusiveLeft?qt.from<=mt:qt.from0&&Ce)for(var ui=0;ui0)){var Qe=[be,1],ze=Cn(Fe.from,Ce.from),ln=Cn(Fe.to,Ce.to);(ze<0||!ce.inclusiveLeft&&!ze)&&Qe.push({from:Fe.from,to:Ce.from}),(ln>0||!ce.inclusiveRight&&!ln)&&Qe.push({from:Ce.to,to:Fe.to}),Dt.splice.apply(Dt,Qe),be+=Qe.length-3}}return Dt}function Rn(st){var mt=st.markedSpans;if(mt){for(var Ot=0;Otmt)&&(!Tt||Tl(Tt,qt.marker)<0)&&(Tt=qt.marker)}return Tt}function nc(st,mt,Ot,Tt,Dt){var qt=Bn(st,mt),ce=vn&&qt.markedSpans;if(ce)for(var Ce=0;Ce=0&&ze<=0||Qe<=0&&ze>=0)&&(Qe<=0&&(be.marker.inclusiveRight&&Dt.inclusiveLeft?Cn(Fe.to,Ot)>=0:Cn(Fe.to,Ot)>0)||Qe>=0&&(be.marker.inclusiveRight&&Dt.inclusiveLeft?Cn(Fe.from,Tt)<=0:Cn(Fe.from,Tt)<0)))return!0}}}function Er(st){for(var mt;mt=_l(st);)st=mt.find(-1,!0).line;return st}function Zr(st){for(var mt;mt=bu(st);)st=mt.find(1,!0).line;return st}function aa(st){for(var mt,Ot;mt=bu(st);)st=mt.find(1,!0).line,(Ot||(Ot=[])).push(st);return Ot}function vi(st,mt){var Ot=Bn(st,mt),Tt=Er(Ot);return Ot==Tt?mt:We(Tt)}function qn(st,mt){if(mt>st.lastLine())return mt;var Ot=Bn(st,mt),Tt;if(!xn(st,Ot))return mt;for(;Tt=bu(Ot);)Ot=Tt.find(1,!0).line;return We(Ot)+1}function xn(st,mt){var Ot=vn&&mt.markedSpans;if(Ot){for(var Tt=void 0,Dt=0;Dtmt.maxLineLength&&(mt.maxLineLength=Dt,mt.maxLine=Tt)})}var Ur=function(st,mt,Ot){this.text=st,Ee(this,mt),this.height=Ot?Ot(this):1};Ur.prototype.lineNo=function(){return We(this)},En(Ur);function mo(st,mt,Ot,Tt){st.text=mt,st.stateAfter&&(st.stateAfter=null),st.styles&&(st.styles=null),st.order!=null&&(st.order=null),Rn(st),Ee(st,Ot);var Dt=Tt?Tt(st):1;Dt!=st.height&&ir(st,Dt)}function Jr(st){st.parent=null,Rn(st)}var Ca={},Is={};function Ol(st,mt){if(!st||/^\s*$/.test(st))return null;var Ot=mt.addModeClass?Is:Ca;return Ot[st]||(Ot[st]=st.replace(/\S+/g,"cm-$&"))}function $e(st,mt){var Ot=It("span",null,null,pt?"padding-right: .1px":null),Tt={pre:It("pre",[Ot],"CodeMirror-line"),content:Ot,col:0,pos:0,cm:st,trailingSpace:!1,splitSpaces:st.getOption("lineWrapping")};mt.measure={};for(var Dt=0;Dt<=(mt.rest?mt.rest.length:0);Dt++){var qt=Dt?mt.rest[Dt-1]:mt.line,ce=void 0;Tt.pos=0,Tt.addToken=Pu,lr(st.display.measure)&&(ce=ge(qt,st.doc.direction))&&(Tt.addToken=Cu(Tt.addToken,ce)),Tt.map=[];var Ce=mt!=st.display.externalMeasured&&We(qt);$a(qt,Tt,cr(st,qt,Ce)),qt.styleClasses&&(qt.styleClasses.bgClass&&(Tt.bgClass=Ht(qt.styleClasses.bgClass,Tt.bgClass||"")),qt.styleClasses.textClass&&(Tt.textClass=Ht(qt.styleClasses.textClass,Tt.textClass||""))),Tt.map.length==0&&Tt.map.push(0,0,Tt.content.appendChild(Or(st.display.measure))),Dt==0?(mt.measure.map=Tt.map,mt.measure.cache={}):((mt.measure.maps||(mt.measure.maps=[])).push(Tt.map),(mt.measure.caches||(mt.measure.caches=[])).push({}))}if(pt){var be=Tt.content.lastChild;(/\bcm-tab\b/.test(be.className)||be.querySelector&&be.querySelector(".cm-tab"))&&(Tt.content.className="cm-tab-wrap-hack")}return Ze(st,"renderLine",st,mt.line,Tt.pre),Tt.pre.className&&(Tt.textClass=Ht(Tt.pre.className,Tt.textClass||"")),Tt}function Es(st){var mt=Lt("span","\u2022","cm-invalidchar");return mt.title="\\u"+st.charCodeAt(0).toString(16),mt.setAttribute("aria-label",mt.title),mt}function Pu(st,mt,Ot,Tt,Dt,qt,ce){if(mt){var Ce=st.splitSpaces?Ba(mt,st.trailingSpace):mt,be=st.cm.state.specialChars,Fe=!1,Qe;if(!be.test(mt))st.col+=mt.length,Qe=document.createTextNode(Ce),st.map.push(st.pos,st.pos+mt.length,Qe),Ct&&St<9&&(Fe=!0),st.pos+=mt.length;else{Qe=document.createDocumentFragment();for(var ze=0;;){be.lastIndex=ze;var ln=be.exec(mt),an=ln?ln.index-ze:mt.length-ze;if(an){var kn=document.createTextNode(Ce.slice(ze,ze+an));Ct&&St<9?Qe.appendChild(Lt("span",[kn])):Qe.appendChild(kn),st.map.push(st.pos,st.pos+an,kn),st.col+=an,st.pos+=an}if(!ln)break;ze+=an+1;var Tn=void 0;if(ln[0]==" "){var In=st.cm.options.tabSize,Hn=In-st.col%In;Tn=Qe.appendChild(Lt("span",He(Hn),"cm-tab")),Tn.setAttribute("role","presentation"),Tn.setAttribute("cm-text"," "),st.col+=Hn}else ln[0]=="\r"||ln[0]==` -`?(Tn=Qe.appendChild(Lt("span",ln[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Tn.setAttribute("cm-text",ln[0]),st.col+=1):(Tn=st.cm.options.specialCharPlaceholder(ln[0]),Tn.setAttribute("cm-text",ln[0]),Ct&&St<9?Qe.appendChild(Lt("span",[Tn])):Qe.appendChild(Tn),st.col+=1);st.map.push(st.pos,st.pos+1,Tn),st.pos++}}if(st.trailingSpace=Ce.charCodeAt(mt.length-1)==32,Ot||Tt||Dt||Fe||qt||ce){var ni=Ot||"";Tt&&(ni+=Tt),Dt&&(ni+=Dt);var Kn=Lt("span",[Qe],ni,qt);if(ce)for(var ui in ce)ce.hasOwnProperty(ui)&&ui!="style"&&ui!="class"&&Kn.setAttribute(ui,ce[ui]);return st.content.appendChild(Kn)}st.content.appendChild(Qe)}}function Ba(st,mt){if(st.length>1&&!/ /.test(st))return st;for(var Ot=mt,Tt="",Dt=0;DtFe&&ze.from<=Fe));ln++);if(ze.to>=Qe)return st(Ot,Tt,Dt,qt,ce,Ce,be);st(Ot,Tt.slice(0,ze.to-Fe),Dt,qt,null,Ce,be),qt=null,Tt=Tt.slice(ze.to-Fe),Fe=ze.to}}}function qr(st,mt,Ot,Tt){var Dt=!Tt&&Ot.widgetNode;Dt&&st.map.push(st.pos,st.pos+mt,Dt),!Tt&&st.cm.display.input.needsContentAttribute&&(Dt||(Dt=st.content.appendChild(document.createElement("span"))),Dt.setAttribute("cm-marker",Ot.id)),Dt&&(st.cm.display.input.setUneditable(Dt),st.content.appendChild(Dt)),st.pos+=mt,st.trailingSpace=!1}function $a(st,mt,Ot){var Tt=st.markedSpans,Dt=st.text,qt=0;if(!Tt){for(var ce=1;cebe||Hi.collapsed&&Vn.to==be&&Vn.from==be)){if(Vn.to!=null&&Vn.to!=be&&an>Vn.to&&(an=Vn.to,Tn=""),Hi.className&&(kn+=" "+Hi.className),Hi.css&&(ln=(ln?ln+";":"")+Hi.css),Hi.startStyle&&Vn.from==be&&(In+=" "+Hi.startStyle),Hi.endStyle&&Vn.to==an&&(ui||(ui=[])).push(Hi.endStyle,Vn.to),Hi.title&&((ni||(ni={})).title=Hi.title),Hi.attributes)for(var no in Hi.attributes)(ni||(ni={}))[no]=Hi.attributes[no];Hi.collapsed&&(!Hn||Tl(Hn.marker,Hi)<0)&&(Hn=Vn)}else Vn.from>be&&an>Vn.from&&(an=Vn.from)}if(ui)for(var Vo=0;Vo=Ce)break;for(var ta=Math.min(Ce,an);;){if(Qe){var Ls=be+Qe.length;if(!Hn){var Ro=Ls>ta?Qe.slice(0,ta-be):Qe;mt.addToken(mt,Ro,ze?ze+kn:kn,In,be+Ro.length==an?Tn:"",ln,ni)}if(Ls>=ta){Qe=Qe.slice(ta-be),be=ta;break}be=Ls,In=""}Qe=Dt.slice(qt,qt=Ot[Fe++]),ze=Ol(Ot[Fe++],mt.cm.options)}}}function tl(st,mt,Ot){this.line=mt,this.rest=aa(mt),this.size=this.rest?We(Se(this.rest))-Ot+1:1,this.node=this.text=null,this.hidden=xn(st,mt)}function xr(st,mt,Ot){for(var Tt=[],Dt,qt=mt;qt2&&qt.push((be.bottom+Fe.top)/2-Ot.top)}}qt.push(Ot.bottom-Ot.top)}}function Ei(st,mt,Ot){if(st.line==mt)return{map:st.measure.map,cache:st.measure.cache};for(var Tt=0;TtOt)return{map:st.measure.maps[Dt],cache:st.measure.caches[Dt],before:!0}}function Ii(st,mt){mt=Er(mt);var Ot=We(mt),Tt=st.display.externalMeasured=new tl(st.doc,mt,Ot);Tt.lineN=Ot;var Dt=Tt.built=$e(st,Tt);return Tt.text=Dt.pre,jt(st.display.lineMeasure,Dt.pre),Tt}function rr(st,mt,Ot,Tt){return Nr(st,Ir(st,mt),Ot,Tt)}function ji(st,mt){if(mt>=st.display.viewFrom&&mt=Ot.lineN&&mtmt)&&(qt=be-Ce,Dt=qt-1,mt>=be&&(ce="right")),Dt!=null){if(Tt=st[Fe+2],Ce==be&&Ot==(Tt.insertLeft?"left":"right")&&(ce=Ot),Ot=="left"&&Dt==0)for(;Fe&&st[Fe-2]==st[Fe-3]&&st[Fe-1].insertLeft;)Tt=st[(Fe-=3)+2],ce="left";if(Ot=="right"&&Dt==be-Ce)for(;Fe=0&&(Ot=st[Dt]).left==Ot.right;Dt--);return Ot}function oo(st,mt,Ot,Tt){var Dt=bo(mt.map,Ot,Tt),qt=Dt.node,ce=Dt.start,Ce=Dt.end,be=Dt.collapse,Fe;if(qt.nodeType==3){for(var Qe=0;Qe<4;Qe++){for(;ce&&$t(mt.line.text.charAt(Dt.coverStart+ce));)--ce;for(;Dt.coverStart+Ce0&&(be=Tt="right");var ze;st.options.lineWrapping&&(ze=qt.getClientRects()).length>1?Fe=ze[Tt=="right"?ze.length-1:0]:Fe=qt.getBoundingClientRect()}if(Ct&&St<9&&!ce&&(!Fe||!Fe.left&&!Fe.right)){var ln=qt.parentNode.getClientRects()[0];ln?Fe={left:ln.left,right:ln.left+ph(st.display),top:ln.top,bottom:ln.bottom}:Fe=$o}for(var an=Fe.top-mt.rect.top,kn=Fe.bottom-mt.rect.top,Tn=(an+kn)/2,In=mt.view.measure.heights,Hn=0;Hn=Tt.text.length?(be=Tt.text.length,Fe="before"):be<=0&&(be=0,Fe="after"),!Ce)return ce(Fe=="before"?be-1:be,Fe=="before");function Qe(kn,Tn,In){var Hn=Ce[Tn],ni=Hn.level==1;return ce(In?kn-1:kn,ni!=In)}var ze=Bt(Ce,be,Fe),ln=Wt,an=Qe(be,ze,Fe=="before");return ln!=null&&(an.other=Qe(be,ln,Fe!="before")),an}function Ff(st,mt){var Ot=0;mt=Zn(st.doc,mt),st.options.lineWrapping||(Ot=ph(st.display)*mt.ch);var Tt=Bn(st.doc,mt.line),Dt=zi(Tt)+qo(st.display);return{left:Ot,right:Ot,top:Dt,bottom:Dt+Tt.height}}function Bf(st,mt,Ot,Tt,Dt){var qt=on(st,mt,Ot);return qt.xRel=Dt,Tt&&(qt.outside=Tt),qt}function Rf(st,mt,Ot){var Tt=st.doc;if(Ot+=st.display.viewOffset,Ot<0)return Bf(Tt.first,0,null,-1,-1);var Dt=Nn(Tt,Ot),qt=Tt.first+Tt.size-1;if(Dt>qt)return Bf(Tt.first+Tt.size-1,Bn(Tt,qt).text.length,null,1,1);mt<0&&(mt=0);for(var ce=Bn(Tt,Dt);;){var Ce=pn(st,ce,Dt,mt,Ot),be=ec(ce,Ce.ch+(Ce.xRel>0||Ce.outside>0?1:0));if(!be)return Ce;var Fe=be.find(1);if(Fe.line==Dt)return Fe;ce=Bn(Tt,Dt=Fe.line)}}function Xn(st,mt,Ot,Tt){Tt-=Ao(mt);var Dt=mt.text.length,qt=ye(function(ce){return Nr(st,Ot,ce-1).bottom<=Tt},Dt,0);return Dt=ye(function(ce){return Nr(st,Ot,ce).top>Tt},qt,Dt),{begin:qt,end:Dt}}function qd(st,mt,Ot,Tt){Ot||(Ot=Ir(st,mt));var Dt=Po(st,mt,Nr(st,Ot,Tt),"line").top;return Xn(st,mt,Ot,Dt)}function Ge(st,mt,Ot,Tt){return st.bottom<=Ot?!1:st.top>Ot?!0:(Tt?st.left:st.right)>mt}function pn(st,mt,Ot,Tt,Dt){Dt-=zi(mt);var qt=Ir(st,mt),ce=Ao(mt),Ce=0,be=mt.text.length,Fe=!0,Qe=ge(mt,st.doc.direction);if(Qe){var ze=(st.options.lineWrapping?Ng:jg)(st,mt,Ot,qt,Qe,Tt,Dt);Fe=ze.level!=1,Ce=Fe?ze.from:ze.to-1,be=Fe?ze.to:ze.from-1}var ln=null,an=null,kn=ye(function(Ai){var Vn=Nr(st,qt,Ai);return Vn.top+=ce,Vn.bottom+=ce,Ge(Vn,Tt,Dt,!1)?(Vn.top<=Dt&&Vn.left<=Tt&&(ln=Ai,an=Vn),!0):!1},Ce,be),Tn,In,Hn=!1;if(an){var ni=Tt-an.left=ui.bottom?1:0}return kn=he(mt.text,kn,1),Bf(Ot,kn,In,Hn,Tt-Tn)}function jg(st,mt,Ot,Tt,Dt,qt,ce){var Ce=ye(function(ze){var ln=Dt[ze],an=ln.level!=1;return Ge(ho(st,on(Ot,an?ln.to:ln.from,an?"before":"after"),"line",mt,Tt),qt,ce,!0)},0,Dt.length-1),be=Dt[Ce];if(Ce>0){var Fe=be.level!=1,Qe=ho(st,on(Ot,Fe?be.from:be.to,Fe?"after":"before"),"line",mt,Tt);Ge(Qe,qt,ce,!0)&&Qe.top>ce&&(be=Dt[Ce-1])}return be}function Ng(st,mt,Ot,Tt,Dt,qt,ce){var Ce=Xn(st,mt,Tt,ce),be=Ce.begin,Fe=Ce.end;/\s/.test(mt.text.charAt(Fe-1))&&Fe--;for(var Qe=null,ze=null,ln=0;ln=Fe||an.to<=be)){var kn=an.level!=1,Tn=Nr(st,Tt,kn?Math.min(Fe,an.to)-1:Math.max(be,an.from)).right,In=TnIn)&&(Qe=an,ze=In)}}return Qe||(Qe=Dt[Dt.length-1]),Qe.fromFe&&(Qe={from:Qe.from,to:Fe,level:Qe.level}),Qe}var eu;function nu(st){if(st.cachedTextHeight!=null)return st.cachedTextHeight;if(eu==null){eu=Lt("pre",null,"CodeMirror-line-like");for(var mt=0;mt<49;++mt)eu.appendChild(document.createTextNode("x")),eu.appendChild(Lt("br"));eu.appendChild(document.createTextNode("x"))}jt(st.measure,eu);var Ot=eu.offsetHeight/50;return Ot>3&&(st.cachedTextHeight=Ot),Mt(st.measure),Ot||1}function ph(st){if(st.cachedCharWidth!=null)return st.cachedCharWidth;var mt=Lt("span","xxxxxxxxxx"),Ot=Lt("pre",[mt],"CodeMirror-line-like");jt(st.measure,Ot);var Tt=mt.getBoundingClientRect(),Dt=(Tt.right-Tt.left)/10;return Dt>2&&(st.cachedCharWidth=Dt),Dt||10}function zf(st){for(var mt=st.display,Ot={},Tt={},Dt=mt.gutters.clientLeft,qt=mt.gutters.firstChild,ce=0;qt;qt=qt.nextSibling,++ce){var Ce=st.display.gutterSpecs[ce].className;Ot[Ce]=qt.offsetLeft+qt.clientLeft+Dt,Tt[Ce]=qt.clientWidth}return{fixedPos:Hc(mt),gutterTotalWidth:mt.gutters.offsetWidth,gutterLeft:Ot,gutterWidth:Tt,wrapperWidth:mt.wrapper.clientWidth}}function Hc(st){return st.scroller.getBoundingClientRect().left-st.sizer.getBoundingClientRect().left}function to(st){var mt=nu(st.display),Ot=st.options.lineWrapping,Tt=Ot&&Math.max(5,st.display.scroller.clientWidth/ph(st.display)-3);return function(Dt){if(xn(st.doc,Dt))return 0;var qt=0;if(Dt.widgets)for(var ce=0;ce0&&(Fe=Bn(st.doc,be.line).text).length==be.ch){var Qe=Kt(Fe,Fe.length,st.options.tabSize)-Fe.length;be=on(be.line,Math.max(0,Math.round((qt-ml(st.display).left)/ph(st.display))-Qe))}return be}function Aa(st,mt){if(mt>=st.display.viewTo||(mt-=st.display.viewFrom,mt<0))return null;for(var Ot=st.display.view,Tt=0;Ttmt)&&(Dt.updateLineNumbers=mt),st.curOp.viewChanged=!0,mt>=Dt.viewTo)vn&&vi(st.doc,mt)Dt.viewFrom?Mo(st):(Dt.viewFrom+=Tt,Dt.viewTo+=Tt);else if(mt<=Dt.viewFrom&&Ot>=Dt.viewTo)Mo(st);else if(mt<=Dt.viewFrom){var qt=Qs(st,Ot,Ot+Tt,1);qt?(Dt.view=Dt.view.slice(qt.index),Dt.viewFrom=qt.lineN,Dt.viewTo+=Tt):Mo(st)}else if(Ot>=Dt.viewTo){var ce=Qs(st,mt,mt,-1);ce?(Dt.view=Dt.view.slice(0,ce.index),Dt.viewTo=ce.lineN):Mo(st)}else{var Ce=Qs(st,mt,mt,-1),be=Qs(st,Ot,Ot+Tt,1);Ce&&be?(Dt.view=Dt.view.slice(0,Ce.index).concat(xr(st,Ce.lineN,be.lineN)).concat(Dt.view.slice(be.index)),Dt.viewTo+=Tt):Mo(st)}var Fe=Dt.externalMeasured;Fe&&(Ot=Dt.lineN&&mt=Tt.viewTo)){var qt=Tt.view[Aa(st,mt)];if(qt.node!=null){var ce=qt.changes||(qt.changes=[]);we(ce,Ot)==-1&&ce.push(Ot)}}}function Mo(st){st.display.viewFrom=st.display.viewTo=st.doc.first,st.display.view=[],st.display.viewOffset=0}function Qs(st,mt,Ot,Tt){var Dt=Aa(st,mt),qt,ce=st.display.view;if(!vn||Ot==st.doc.first+st.doc.size)return{index:Dt,lineN:Ot};for(var Ce=st.display.viewFrom,be=0;be0){if(Dt==ce.length-1)return null;qt=Ce+ce[Dt].size-mt,Dt++}else qt=Ce-mt;mt+=qt,Ot+=qt}for(;vi(st.doc,Ot)!=Ot;){if(Dt==(Tt<0?0:ce.length-1))return null;Ot+=Tt*ce[Dt-(Tt<0?1:0)].size,Dt+=Tt}return{index:Dt,lineN:Ot}}function Dr(st,mt,Ot){var Tt=st.display,Dt=Tt.view;Dt.length==0||mt>=Tt.viewTo||Ot<=Tt.viewFrom?(Tt.view=xr(st,mt,Ot),Tt.viewFrom=mt):(Tt.viewFrom>mt?Tt.view=xr(st,mt,Tt.viewFrom).concat(Tt.view):Tt.viewFromOt&&(Tt.view=Tt.view.slice(0,Aa(st,Ot)))),Tt.viewTo=Ot}function ua(st){for(var mt=st.display.view,Ot=0,Tt=0;Tt=st.display.viewTo||Ce.to().line1}var Xs={},Do={};function Oo(st,mt){arguments.length>2&&(mt.dependencies=Array.prototype.slice.call(arguments,2)),Xs[st]=mt}function Gr(st,mt){Do[st]=mt}function sa(st){if(typeof st=="string"&&Do.hasOwnProperty(st))st=Do[st];else if(st&&typeof st.name=="string"&&Do.hasOwnProperty(st.name)){var mt=Do[st.name];typeof mt=="string"&&(mt={name:mt}),st=ae(mt,st),st.name=mt.name}else{if(typeof st=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(st))return sa("application/xml");if(typeof st=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(st))return sa("application/json")}return typeof st=="string"?{name:st}:st||{name:"null"}}function dn(st,mt){mt=sa(mt);var Ot=Xs[mt.name];if(!Ot)return dn(st,"text/plain");var Tt=Ot(st,mt);if(en.hasOwnProperty(mt.name)){var Dt=en[mt.name];for(var qt in Dt)Dt.hasOwnProperty(qt)&&(Tt.hasOwnProperty(qt)&&(Tt["_"+qt]=Tt[qt]),Tt[qt]=Dt[qt])}if(Tt.name=mt.name,mt.helperType&&(Tt.helperType=mt.helperType),mt.modeProps)for(var ce in mt.modeProps)Tt[ce]=mt.modeProps[ce];return Tt}var en={};function qe(st,mt){var Ot=en.hasOwnProperty(st)?en[st]:en[st]={};ve(mt,Ot)}function zn(st,mt){if(mt===!0)return mt;if(st.copyState)return st.copyState(mt);var Ot={};for(var Tt in mt){var Dt=mt[Tt];Dt instanceof Array&&(Dt=Dt.concat([])),Ot[Tt]=Dt}return Ot}function Jn(st,mt){for(var Ot;st.innerMode&&(Ot=st.innerMode(mt),!(!Ot||Ot.mode==st));)mt=Ot.state,st=Ot.mode;return Ot||{mode:st,state:mt}}function hi(st,mt,Ot){return st.startState?st.startState(mt,Ot):!0}var bn=function(st,mt,Ot){this.pos=this.start=0,this.string=st,this.tabSize=mt||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=Ot};bn.prototype.eol=function(){return this.pos>=this.string.length},bn.prototype.sol=function(){return this.pos==this.lineStart},bn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},bn.prototype.next=function(){if(this.posmt},bn.prototype.eatSpace=function(){for(var st=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>st},bn.prototype.skipToEnd=function(){this.pos=this.string.length},bn.prototype.skipTo=function(st){var mt=this.string.indexOf(st,this.pos);if(mt>-1)return this.pos=mt,!0},bn.prototype.backUp=function(st){this.pos-=st},bn.prototype.column=function(){return this.lastColumnPos0?null:(qt&&mt!==!1&&(this.pos+=qt[0].length),qt)}},bn.prototype.current=function(){return this.string.slice(this.start,this.pos)},bn.prototype.hideFirstChars=function(st,mt){this.lineStart+=st;try{return mt()}finally{this.lineStart-=st}},bn.prototype.lookAhead=function(st){var mt=this.lineOracle;return mt&&mt.lookAhead(st)},bn.prototype.baseToken=function(){var st=this.lineOracle;return st&&st.baseToken(this.pos)};function Bn(st,mt){if(mt-=st.first,mt<0||mt>=st.size)throw new Error("There is no line "+(mt+st.first)+" in the document.");for(var Ot=st;!Ot.lines;)for(var Tt=0;;++Tt){var Dt=Ot.children[Tt],qt=Dt.chunkSize();if(mt=st.first&&mtOt?on(Ot,Bn(st,Ot).text.length):ur(mt,Bn(st,mt.line).text.length)}function ur(st,mt){var Ot=st.ch;return Ot==null||Ot>mt?on(st.line,mt):Ot<0?on(st.line,0):st}function Yr(st,mt){for(var Ot=[],Tt=0;Ttthis.maxLookAhead&&(this.maxLookAhead=st),mt},mn.prototype.baseToken=function(st){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=st;)this.baseTokenPos+=2;var mt=this.baseTokens[this.baseTokenPos+1];return{type:mt&&mt.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-st}},mn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},mn.fromSaved=function(st,mt,Ot){return mt instanceof br?new mn(st,zn(st.mode,mt.state),Ot,mt.lookAhead):new mn(st,zn(st.mode,mt),Ot)},mn.prototype.save=function(st){var mt=st!==!1?zn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new br(mt,this.maxLookAhead):mt};function er(st,mt,Ot,Tt){var Dt=[st.state.modeGen],qt={};hr(st,mt.text,st.doc.mode,Ot,function(Fe,Qe){return Dt.push(Fe,Qe)},qt,Tt);for(var ce=Ot.state,Ce=function(Fe){Ot.baseTokens=Dt;var Qe=st.state.overlays[Fe],ze=1,ln=0;Ot.state=!0,hr(st,mt.text,Qe.mode,Ot,function(an,kn){for(var Tn=ze;lnan&&Dt.splice(ze,1,an,Dt[ze+1],In),ze+=2,ln=Math.min(an,In)}if(kn)if(Qe.opaque)Dt.splice(Tn,ze-Tn,an,"overlay "+kn),ze=Tn+2;else for(;Tnst.options.maxHighlightLength&&zn(st.doc.mode,Tt.state),qt=er(st,mt,Tt);Dt&&(Tt.state=Dt),mt.stateAfter=Tt.save(!Dt),mt.styles=qt.styles,qt.classes?mt.styleClasses=qt.classes:mt.styleClasses&&(mt.styleClasses=null),Ot===st.doc.highlightFrontier&&(st.doc.modeFrontier=Math.max(st.doc.modeFrontier,++st.doc.highlightFrontier))}return mt.styles}function Mi(st,mt,Ot){var Tt=st.doc,Dt=st.display;if(!Tt.mode.startState)return new mn(Tt,!0,mt);var qt=Vi(st,mt,Ot),ce=qt>Tt.first&&Bn(Tt,qt-1).stateAfter,Ce=ce?mn.fromSaved(Tt,ce,qt):new mn(Tt,hi(Tt.mode),qt);return Tt.iter(qt,mt,function(be){sn(st,be.text,Ce);var Fe=Ce.line;be.stateAfter=Fe==mt-1||Fe%5==0||Fe>=Dt.viewFrom&&Femt.start)return qt}throw new Error("Mode "+st.name+" failed to advance stream.")}var si=function(st,mt,Ot){this.start=st.start,this.end=st.pos,this.string=st.current(),this.type=mt||null,this.state=Ot};function ei(st,mt,Ot,Tt){var Dt=st.doc,qt=Dt.mode,ce;mt=Zn(Dt,mt);var Ce=Bn(Dt,mt.line),be=Mi(st,mt.line,Ot),Fe=new bn(Ce.text,st.options.tabSize,be),Qe;for(Tt&&(Qe=[]);(Tt||Fe.posst.options.maxHighlightLength?(Ce=!1,ce&&sn(st,mt,Tt,Qe.pos),Qe.pos=mt.length,ze=null):ze=Li(Qn(Ot,Qe,Tt.state,ln),qt),ln){var an=ln[0].name;an&&(ze="m-"+(ze?an+" "+ze:an))}if(!Ce||Fe!=ze){for(;bece;--Ce){if(Ce<=qt.first)return qt.first;var be=Bn(qt,Ce-1),Fe=be.stateAfter;if(Fe&&(!Ot||Ce+(Fe instanceof br?Fe.lookAhead:0)<=qt.modeFrontier))return Ce;var Qe=Kt(be.text,null,st.options.tabSize);(Dt==null||Tt>Qe)&&(Dt=Ce-1,Tt=Qe)}return Dt}function Yi(st,mt){if(st.modeFrontier=Math.min(st.modeFrontier,mt),!(st.highlightFrontierOt;Tt--){var Dt=Bn(st,Tt).stateAfter;if(Dt&&(!(Dt instanceof br)||Tt+Dt.lookAhead=mt:qt.to>mt);(Tt||(Tt=[])).push(new qi(ce,qt.from,be?null:qt.to))}}return Tt}function Ri(st,mt,Ot){var Tt;if(st)for(var Dt=0;Dt=mt:qt.to>mt);if(Ce||qt.from==mt&&ce.type=="bookmark"&&(!Ot||qt.marker.insertLeft)){var be=qt.from==null||(ce.inclusiveLeft?qt.from<=mt:qt.from0&&Ce)for(var ui=0;ui0)){var Qe=[be,1],ze=Cn(Fe.from,Ce.from),ln=Cn(Fe.to,Ce.to);(ze<0||!ce.inclusiveLeft&&!ze)&&Qe.push({from:Fe.from,to:Ce.from}),(ln>0||!ce.inclusiveRight&&!ln)&&Qe.push({from:Ce.to,to:Fe.to}),Dt.splice.apply(Dt,Qe),be+=Qe.length-3}}return Dt}function Rn(st){var mt=st.markedSpans;if(mt){for(var Ot=0;Otmt)&&(!Tt||_l(Tt,qt.marker)<0)&&(Tt=qt.marker)}return Tt}function nc(st,mt,Ot,Tt,Dt){var qt=Bn(st,mt),ce=vn&&qt.markedSpans;if(ce)for(var Ce=0;Ce=0&&ze<=0||Qe<=0&&ze>=0)&&(Qe<=0&&(be.marker.inclusiveRight&&Dt.inclusiveLeft?Cn(Fe.to,Ot)>=0:Cn(Fe.to,Ot)>0)||Qe>=0&&(be.marker.inclusiveRight&&Dt.inclusiveLeft?Cn(Fe.from,Tt)<=0:Cn(Fe.from,Tt)<0)))return!0}}}function Er(st){for(var mt;mt=gl(st);)st=mt.find(-1,!0).line;return st}function Zr(st){for(var mt;mt=bu(st);)st=mt.find(1,!0).line;return st}function aa(st){for(var mt,Ot;mt=bu(st);)st=mt.find(1,!0).line,(Ot||(Ot=[])).push(st);return Ot}function vi(st,mt){var Ot=Bn(st,mt),Tt=Er(Ot);return Ot==Tt?mt:We(Tt)}function qn(st,mt){if(mt>st.lastLine())return mt;var Ot=Bn(st,mt),Tt;if(!xn(st,Ot))return mt;for(;Tt=bu(Ot);)Ot=Tt.find(1,!0).line;return We(Ot)+1}function xn(st,mt){var Ot=vn&&mt.markedSpans;if(Ot){for(var Tt=void 0,Dt=0;Dtmt.maxLineLength&&(mt.maxLineLength=Dt,mt.maxLine=Tt)})}var Ur=function(st,mt,Ot){this.text=st,Ee(this,mt),this.height=Ot?Ot(this):1};Ur.prototype.lineNo=function(){return We(this)},En(Ur);function mo(st,mt,Ot,Tt){st.text=mt,st.stateAfter&&(st.stateAfter=null),st.styles&&(st.styles=null),st.order!=null&&(st.order=null),Rn(st),Ee(st,Ot);var Dt=Tt?Tt(st):1;Dt!=st.height&&ir(st,Dt)}function Jr(st){st.parent=null,Rn(st)}var Ca={},Is={};function Ol(st,mt){if(!st||/^\s*$/.test(st))return null;var Ot=mt.addModeClass?Is:Ca;return Ot[st]||(Ot[st]=st.replace(/\S+/g,"cm-$&"))}function $e(st,mt){var Ot=It("span",null,null,pt?"padding-right: .1px":null),Tt={pre:It("pre",[Ot],"CodeMirror-line"),content:Ot,col:0,pos:0,cm:st,trailingSpace:!1,splitSpaces:st.getOption("lineWrapping")};mt.measure={};for(var Dt=0;Dt<=(mt.rest?mt.rest.length:0);Dt++){var qt=Dt?mt.rest[Dt-1]:mt.line,ce=void 0;Tt.pos=0,Tt.addToken=Pu,lr(st.display.measure)&&(ce=me(qt,st.doc.direction))&&(Tt.addToken=Cu(Tt.addToken,ce)),Tt.map=[];var Ce=mt!=st.display.externalMeasured&&We(qt);$a(qt,Tt,cr(st,qt,Ce)),qt.styleClasses&&(qt.styleClasses.bgClass&&(Tt.bgClass=Ht(qt.styleClasses.bgClass,Tt.bgClass||"")),qt.styleClasses.textClass&&(Tt.textClass=Ht(qt.styleClasses.textClass,Tt.textClass||""))),Tt.map.length==0&&Tt.map.push(0,0,Tt.content.appendChild(Or(st.display.measure))),Dt==0?(mt.measure.map=Tt.map,mt.measure.cache={}):((mt.measure.maps||(mt.measure.maps=[])).push(Tt.map),(mt.measure.caches||(mt.measure.caches=[])).push({}))}if(pt){var be=Tt.content.lastChild;(/\bcm-tab\b/.test(be.className)||be.querySelector&&be.querySelector(".cm-tab"))&&(Tt.content.className="cm-tab-wrap-hack")}return Ze(st,"renderLine",st,mt.line,Tt.pre),Tt.pre.className&&(Tt.textClass=Ht(Tt.pre.className,Tt.textClass||"")),Tt}function Es(st){var mt=Lt("span","\u2022","cm-invalidchar");return mt.title="\\u"+st.charCodeAt(0).toString(16),mt.setAttribute("aria-label",mt.title),mt}function Pu(st,mt,Ot,Tt,Dt,qt,ce){if(mt){var Ce=st.splitSpaces?Ba(mt,st.trailingSpace):mt,be=st.cm.state.specialChars,Fe=!1,Qe;if(!be.test(mt))st.col+=mt.length,Qe=document.createTextNode(Ce),st.map.push(st.pos,st.pos+mt.length,Qe),Ct&&St<9&&(Fe=!0),st.pos+=mt.length;else{Qe=document.createDocumentFragment();for(var ze=0;;){be.lastIndex=ze;var ln=be.exec(mt),an=ln?ln.index-ze:mt.length-ze;if(an){var kn=document.createTextNode(Ce.slice(ze,ze+an));Ct&&St<9?Qe.appendChild(Lt("span",[kn])):Qe.appendChild(kn),st.map.push(st.pos,st.pos+an,kn),st.col+=an,st.pos+=an}if(!ln)break;ze+=an+1;var Tn=void 0;if(ln[0]==" "){var In=st.cm.options.tabSize,Hn=In-st.col%In;Tn=Qe.appendChild(Lt("span",He(Hn),"cm-tab")),Tn.setAttribute("role","presentation"),Tn.setAttribute("cm-text"," "),st.col+=Hn}else ln[0]=="\r"||ln[0]==` +`?(Tn=Qe.appendChild(Lt("span",ln[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Tn.setAttribute("cm-text",ln[0]),st.col+=1):(Tn=st.cm.options.specialCharPlaceholder(ln[0]),Tn.setAttribute("cm-text",ln[0]),Ct&&St<9?Qe.appendChild(Lt("span",[Tn])):Qe.appendChild(Tn),st.col+=1);st.map.push(st.pos,st.pos+1,Tn),st.pos++}}if(st.trailingSpace=Ce.charCodeAt(mt.length-1)==32,Ot||Tt||Dt||Fe||qt||ce){var ni=Ot||"";Tt&&(ni+=Tt),Dt&&(ni+=Dt);var Kn=Lt("span",[Qe],ni,qt);if(ce)for(var ui in ce)ce.hasOwnProperty(ui)&&ui!="style"&&ui!="class"&&Kn.setAttribute(ui,ce[ui]);return st.content.appendChild(Kn)}st.content.appendChild(Qe)}}function Ba(st,mt){if(st.length>1&&!/ /.test(st))return st;for(var Ot=mt,Tt="",Dt=0;DtFe&&ze.from<=Fe));ln++);if(ze.to>=Qe)return st(Ot,Tt,Dt,qt,ce,Ce,be);st(Ot,Tt.slice(0,ze.to-Fe),Dt,qt,null,Ce,be),qt=null,Tt=Tt.slice(ze.to-Fe),Fe=ze.to}}}function qr(st,mt,Ot,Tt){var Dt=!Tt&&Ot.widgetNode;Dt&&st.map.push(st.pos,st.pos+mt,Dt),!Tt&&st.cm.display.input.needsContentAttribute&&(Dt||(Dt=st.content.appendChild(document.createElement("span"))),Dt.setAttribute("cm-marker",Ot.id)),Dt&&(st.cm.display.input.setUneditable(Dt),st.content.appendChild(Dt)),st.pos+=mt,st.trailingSpace=!1}function $a(st,mt,Ot){var Tt=st.markedSpans,Dt=st.text,qt=0;if(!Tt){for(var ce=1;cebe||Hi.collapsed&&Vn.to==be&&Vn.from==be)){if(Vn.to!=null&&Vn.to!=be&&an>Vn.to&&(an=Vn.to,Tn=""),Hi.className&&(kn+=" "+Hi.className),Hi.css&&(ln=(ln?ln+";":"")+Hi.css),Hi.startStyle&&Vn.from==be&&(In+=" "+Hi.startStyle),Hi.endStyle&&Vn.to==an&&(ui||(ui=[])).push(Hi.endStyle,Vn.to),Hi.title&&((ni||(ni={})).title=Hi.title),Hi.attributes)for(var no in Hi.attributes)(ni||(ni={}))[no]=Hi.attributes[no];Hi.collapsed&&(!Hn||_l(Hn.marker,Hi)<0)&&(Hn=Vn)}else Vn.from>be&&an>Vn.from&&(an=Vn.from)}if(ui)for(var Vo=0;Vo=Ce)break;for(var ta=Math.min(Ce,an);;){if(Qe){var Ls=be+Qe.length;if(!Hn){var Ro=Ls>ta?Qe.slice(0,ta-be):Qe;mt.addToken(mt,Ro,ze?ze+kn:kn,In,be+Ro.length==an?Tn:"",ln,ni)}if(Ls>=ta){Qe=Qe.slice(ta-be),be=ta;break}be=Ls,In=""}Qe=Dt.slice(qt,qt=Ot[Fe++]),ze=Ol(Ot[Fe++],mt.cm.options)}}}function tl(st,mt,Ot){this.line=mt,this.rest=aa(mt),this.size=this.rest?We(Se(this.rest))-Ot+1:1,this.node=this.text=null,this.hidden=xn(st,mt)}function xr(st,mt,Ot){for(var Tt=[],Dt,qt=mt;qt2&&qt.push((be.bottom+Fe.top)/2-Ot.top)}}qt.push(Ot.bottom-Ot.top)}}function Ei(st,mt,Ot){if(st.line==mt)return{map:st.measure.map,cache:st.measure.cache};for(var Tt=0;TtOt)return{map:st.measure.maps[Dt],cache:st.measure.caches[Dt],before:!0}}function Ii(st,mt){mt=Er(mt);var Ot=We(mt),Tt=st.display.externalMeasured=new tl(st.doc,mt,Ot);Tt.lineN=Ot;var Dt=Tt.built=$e(st,Tt);return Tt.text=Dt.pre,jt(st.display.lineMeasure,Dt.pre),Tt}function rr(st,mt,Ot,Tt){return Nr(st,Ir(st,mt),Ot,Tt)}function ji(st,mt){if(mt>=st.display.viewFrom&&mt=Ot.lineN&&mtmt)&&(qt=be-Ce,Dt=qt-1,mt>=be&&(ce="right")),Dt!=null){if(Tt=st[Fe+2],Ce==be&&Ot==(Tt.insertLeft?"left":"right")&&(ce=Ot),Ot=="left"&&Dt==0)for(;Fe&&st[Fe-2]==st[Fe-3]&&st[Fe-1].insertLeft;)Tt=st[(Fe-=3)+2],ce="left";if(Ot=="right"&&Dt==be-Ce)for(;Fe=0&&(Ot=st[Dt]).left==Ot.right;Dt--);return Ot}function oo(st,mt,Ot,Tt){var Dt=bo(mt.map,Ot,Tt),qt=Dt.node,ce=Dt.start,Ce=Dt.end,be=Dt.collapse,Fe;if(qt.nodeType==3){for(var Qe=0;Qe<4;Qe++){for(;ce&&$t(mt.line.text.charAt(Dt.coverStart+ce));)--ce;for(;Dt.coverStart+Ce0&&(be=Tt="right");var ze;st.options.lineWrapping&&(ze=qt.getClientRects()).length>1?Fe=ze[Tt=="right"?ze.length-1:0]:Fe=qt.getBoundingClientRect()}if(Ct&&St<9&&!ce&&(!Fe||!Fe.left&&!Fe.right)){var ln=qt.parentNode.getClientRects()[0];ln?Fe={left:ln.left,right:ln.left+ph(st.display),top:ln.top,bottom:ln.bottom}:Fe=qo}for(var an=Fe.top-mt.rect.top,kn=Fe.bottom-mt.rect.top,Tn=(an+kn)/2,In=mt.view.measure.heights,Hn=0;Hn=Tt.text.length?(be=Tt.text.length,Fe="before"):be<=0&&(be=0,Fe="after"),!Ce)return ce(Fe=="before"?be-1:be,Fe=="before");function Qe(kn,Tn,In){var Hn=Ce[Tn],ni=Hn.level==1;return ce(In?kn-1:kn,ni!=In)}var ze=Bt(Ce,be,Fe),ln=Wt,an=Qe(be,ze,Fe=="before");return ln!=null&&(an.other=Qe(be,ln,Fe!="before")),an}function Ff(st,mt){var Ot=0;mt=Zn(st.doc,mt),st.options.lineWrapping||(Ot=ph(st.display)*mt.ch);var Tt=Bn(st.doc,mt.line),Dt=zi(Tt)+ms(st.display);return{left:Ot,right:Ot,top:Dt,bottom:Dt+Tt.height}}function Bf(st,mt,Ot,Tt,Dt){var qt=on(st,mt,Ot);return qt.xRel=Dt,Tt&&(qt.outside=Tt),qt}function Rf(st,mt,Ot){var Tt=st.doc;if(Ot+=st.display.viewOffset,Ot<0)return Bf(Tt.first,0,null,-1,-1);var Dt=Nn(Tt,Ot),qt=Tt.first+Tt.size-1;if(Dt>qt)return Bf(Tt.first+Tt.size-1,Bn(Tt,qt).text.length,null,1,1);mt<0&&(mt=0);for(var ce=Bn(Tt,Dt);;){var Ce=pn(st,ce,Dt,mt,Ot),be=ec(ce,Ce.ch+(Ce.xRel>0||Ce.outside>0?1:0));if(!be)return Ce;var Fe=be.find(1);if(Fe.line==Dt)return Fe;ce=Bn(Tt,Dt=Fe.line)}}function Xn(st,mt,Ot,Tt){Tt-=Ao(mt);var Dt=mt.text.length,qt=ye(function(ce){return Nr(st,Ot,ce-1).bottom<=Tt},Dt,0);return Dt=ye(function(ce){return Nr(st,Ot,ce).top>Tt},qt,Dt),{begin:qt,end:Dt}}function qd(st,mt,Ot,Tt){Ot||(Ot=Ir(st,mt));var Dt=Po(st,mt,Nr(st,Ot,Tt),"line").top;return Xn(st,mt,Ot,Dt)}function Ge(st,mt,Ot,Tt){return st.bottom<=Ot?!1:st.top>Ot?!0:(Tt?st.left:st.right)>mt}function pn(st,mt,Ot,Tt,Dt){Dt-=zi(mt);var qt=Ir(st,mt),ce=Ao(mt),Ce=0,be=mt.text.length,Fe=!0,Qe=me(mt,st.doc.direction);if(Qe){var ze=(st.options.lineWrapping?Ng:jg)(st,mt,Ot,qt,Qe,Tt,Dt);Fe=ze.level!=1,Ce=Fe?ze.from:ze.to-1,be=Fe?ze.to:ze.from-1}var ln=null,an=null,kn=ye(function(Ai){var Vn=Nr(st,qt,Ai);return Vn.top+=ce,Vn.bottom+=ce,Ge(Vn,Tt,Dt,!1)?(Vn.top<=Dt&&Vn.left<=Tt&&(ln=Ai,an=Vn),!0):!1},Ce,be),Tn,In,Hn=!1;if(an){var ni=Tt-an.left=ui.bottom?1:0}return kn=he(mt.text,kn,1),Bf(Ot,kn,In,Hn,Tt-Tn)}function jg(st,mt,Ot,Tt,Dt,qt,ce){var Ce=ye(function(ze){var ln=Dt[ze],an=ln.level!=1;return Ge(ho(st,on(Ot,an?ln.to:ln.from,an?"before":"after"),"line",mt,Tt),qt,ce,!0)},0,Dt.length-1),be=Dt[Ce];if(Ce>0){var Fe=be.level!=1,Qe=ho(st,on(Ot,Fe?be.from:be.to,Fe?"after":"before"),"line",mt,Tt);Ge(Qe,qt,ce,!0)&&Qe.top>ce&&(be=Dt[Ce-1])}return be}function Ng(st,mt,Ot,Tt,Dt,qt,ce){var Ce=Xn(st,mt,Tt,ce),be=Ce.begin,Fe=Ce.end;/\s/.test(mt.text.charAt(Fe-1))&&Fe--;for(var Qe=null,ze=null,ln=0;ln=Fe||an.to<=be)){var kn=an.level!=1,Tn=Nr(st,Tt,kn?Math.min(Fe,an.to)-1:Math.max(be,an.from)).right,In=TnIn)&&(Qe=an,ze=In)}}return Qe||(Qe=Dt[Dt.length-1]),Qe.fromFe&&(Qe={from:Qe.from,to:Fe,level:Qe.level}),Qe}var eu;function nu(st){if(st.cachedTextHeight!=null)return st.cachedTextHeight;if(eu==null){eu=Lt("pre",null,"CodeMirror-line-like");for(var mt=0;mt<49;++mt)eu.appendChild(document.createTextNode("x")),eu.appendChild(Lt("br"));eu.appendChild(document.createTextNode("x"))}jt(st.measure,eu);var Ot=eu.offsetHeight/50;return Ot>3&&(st.cachedTextHeight=Ot),Mt(st.measure),Ot||1}function ph(st){if(st.cachedCharWidth!=null)return st.cachedCharWidth;var mt=Lt("span","xxxxxxxxxx"),Ot=Lt("pre",[mt],"CodeMirror-line-like");jt(st.measure,Ot);var Tt=mt.getBoundingClientRect(),Dt=(Tt.right-Tt.left)/10;return Dt>2&&(st.cachedCharWidth=Dt),Dt||10}function zf(st){for(var mt=st.display,Ot={},Tt={},Dt=mt.gutters.clientLeft,qt=mt.gutters.firstChild,ce=0;qt;qt=qt.nextSibling,++ce){var Ce=st.display.gutterSpecs[ce].className;Ot[Ce]=qt.offsetLeft+qt.clientLeft+Dt,Tt[Ce]=qt.clientWidth}return{fixedPos:Hc(mt),gutterTotalWidth:mt.gutters.offsetWidth,gutterLeft:Ot,gutterWidth:Tt,wrapperWidth:mt.wrapper.clientWidth}}function Hc(st){return st.scroller.getBoundingClientRect().left-st.sizer.getBoundingClientRect().left}function to(st){var mt=nu(st.display),Ot=st.options.lineWrapping,Tt=Ot&&Math.max(5,st.display.scroller.clientWidth/ph(st.display)-3);return function(Dt){if(xn(st.doc,Dt))return 0;var qt=0;if(Dt.widgets)for(var ce=0;ce0&&(Fe=Bn(st.doc,be.line).text).length==be.ch){var Qe=Kt(Fe,Fe.length,st.options.tabSize)-Fe.length;be=on(be.line,Math.max(0,Math.round((qt-vl(st.display).left)/ph(st.display))-Qe))}return be}function Aa(st,mt){if(mt>=st.display.viewTo||(mt-=st.display.viewFrom,mt<0))return null;for(var Ot=st.display.view,Tt=0;Ttmt)&&(Dt.updateLineNumbers=mt),st.curOp.viewChanged=!0,mt>=Dt.viewTo)vn&&vi(st.doc,mt)Dt.viewFrom?Mo(st):(Dt.viewFrom+=Tt,Dt.viewTo+=Tt);else if(mt<=Dt.viewFrom&&Ot>=Dt.viewTo)Mo(st);else if(mt<=Dt.viewFrom){var qt=Qs(st,Ot,Ot+Tt,1);qt?(Dt.view=Dt.view.slice(qt.index),Dt.viewFrom=qt.lineN,Dt.viewTo+=Tt):Mo(st)}else if(Ot>=Dt.viewTo){var ce=Qs(st,mt,mt,-1);ce?(Dt.view=Dt.view.slice(0,ce.index),Dt.viewTo=ce.lineN):Mo(st)}else{var Ce=Qs(st,mt,mt,-1),be=Qs(st,Ot,Ot+Tt,1);Ce&&be?(Dt.view=Dt.view.slice(0,Ce.index).concat(xr(st,Ce.lineN,be.lineN)).concat(Dt.view.slice(be.index)),Dt.viewTo+=Tt):Mo(st)}var Fe=Dt.externalMeasured;Fe&&(Ot=Dt.lineN&&mt=Tt.viewTo)){var qt=Tt.view[Aa(st,mt)];if(qt.node!=null){var ce=qt.changes||(qt.changes=[]);we(ce,Ot)==-1&&ce.push(Ot)}}}function Mo(st){st.display.viewFrom=st.display.viewTo=st.doc.first,st.display.view=[],st.display.viewOffset=0}function Qs(st,mt,Ot,Tt){var Dt=Aa(st,mt),qt,ce=st.display.view;if(!vn||Ot==st.doc.first+st.doc.size)return{index:Dt,lineN:Ot};for(var Ce=st.display.viewFrom,be=0;be0){if(Dt==ce.length-1)return null;qt=Ce+ce[Dt].size-mt,Dt++}else qt=Ce-mt;mt+=qt,Ot+=qt}for(;vi(st.doc,Ot)!=Ot;){if(Dt==(Tt<0?0:ce.length-1))return null;Ot+=Tt*ce[Dt-(Tt<0?1:0)].size,Dt+=Tt}return{index:Dt,lineN:Ot}}function Dr(st,mt,Ot){var Tt=st.display,Dt=Tt.view;Dt.length==0||mt>=Tt.viewTo||Ot<=Tt.viewFrom?(Tt.view=xr(st,mt,Ot),Tt.viewFrom=mt):(Tt.viewFrom>mt?Tt.view=xr(st,mt,Tt.viewFrom).concat(Tt.view):Tt.viewFromOt&&(Tt.view=Tt.view.slice(0,Aa(st,Ot)))),Tt.viewTo=Ot}function ua(st){for(var mt=st.display.view,Ot=0,Tt=0;Tt=st.display.viewTo||Ce.to().line0?mt.blinker=setInterval(function(){st.hasFocus()||gh(st),mt.cursorDiv.style.visibility=(Ot=!Ot)?"":"hidden"},st.options.cursorBlinkRate):st.options.cursorBlinkRate<0&&(mt.cursorDiv.style.visibility="hidden")}}function Hr(st){st.state.focused||(st.display.input.focus(),or(st))}function so(st){st.state.delayingBlurEvent=!0,setTimeout(function(){st.state.delayingBlurEvent&&(st.state.delayingBlurEvent=!1,gh(st))},100)}function or(st,mt){st.state.delayingBlurEvent&&(st.state.delayingBlurEvent=!1),st.options.readOnly!="nocursor"&&(st.state.focused||(Ze(st,"focus",st,mt),st.state.focused=!0,Yt(st.display.wrapper,"CodeMirror-focused"),!st.curOp&&st.display.selForContextMenu!=st.doc.sel&&(st.display.input.reset(),pt&&setTimeout(function(){return st.display.input.reset(!0)},20)),st.display.input.receivedFocus()),Ar(st))}function gh(st,mt){st.state.delayingBlurEvent||(st.state.focused&&(Ze(st,"blur",st,mt),st.state.focused=!1,_t(st.display.wrapper,"CodeMirror-focused")),clearInterval(st.display.blinker),setTimeout(function(){st.state.focused||(st.display.shift=!1)},150))}function fi(st){for(var mt=st.display,Ot=mt.lineDiv.offsetTop,Tt=0;Tt.005||Qe<-.005)&&(ir(Dt.line,ce),Dg(Dt.line),Dt.rest))for(var ze=0;zest.display.sizerWidth){var ln=Math.ceil(Ce/ph(st.display));ln>st.display.maxLineLength&&(st.display.maxLineLength=ln,st.display.maxLine=Dt.line,st.display.maxLineChanged=!0)}}}}function Dg(st){if(st.widgets)for(var mt=0;mt=ce&&(qt=Nn(mt,zi(Bn(mt,be))-st.wrapper.clientHeight),ce=be)}return{from:qt,to:Math.max(ce,qt+1)}}function Ig(st,mt){if(!nn(st,"scrollCursorIntoView")){var Ot=st.display,Tt=Ot.sizer.getBoundingClientRect(),Dt=null;if(mt.top+Tt.top<0?Dt=!0:mt.bottom+Tt.top>(window.innerHeight||document.documentElement.clientHeight)&&(Dt=!1),Dt!=null&&!ct){var qt=Lt("div","\u200B",null,`position: absolute; - top: `+(mt.top-Ot.viewOffset-qo(st.display))+`px; + height: `+(Vn-ui)+"px"))}function ze(Kn,ui,Ai){var Vn=Bn(Dt,Kn),Hi=Vn.text.length,no,Vo;function fo(Ro,da){return tu(st,on(Kn,Ro),"div",Vn,da)}function ta(Ro,da,Ss){var zo=qd(st,Vn,null,Ro),vr=da=="ltr"==(Ss=="after")?"left":"right",So=Ss=="after"?zo.begin:zo.end-(/\s/.test(Vn.text.charAt(zo.end-1))?2:1);return fo(So,vr)[vr]}var Ls=me(Vn,Dt.direction);return Qt(Ls,ui||0,Ai==null?Hi:Ai,function(Ro,da,Ss,zo){var vr=Ss=="ltr",So=fo(Ro,vr?"left":"right"),rs=fo(da-1,vr?"right":"left"),ws=ui==null&&Ro==0,ol=Ai==null&&da==Hi,po=zo==0,Wa=!Ls||zo==Ls.length-1;if(rs.top-So.top<=3){var Co=(Fe?ws:ol)&&po,df=(Fe?ol:ws)&&Wa,Ta=Co?Ce:(vr?So:rs).left,pa=df?be:(vr?rs:So).right;Qe(Ta,So.top,pa-Ta,So.bottom)}else{var ea,Br,os,Rl;vr?(ea=Fe&&ws&&po?Ce:So.left,Br=Fe?be:ta(Ro,Ss,"before"),os=Fe?Ce:ta(da,Ss,"after"),Rl=Fe&&ol&&Wa?be:rs.right):(ea=Fe?ta(Ro,Ss,"before"):Ce,Br=!Fe&&ws&&po?be:So.right,os=!Fe&&ol&&Wa?Ce:rs.left,Rl=Fe?ta(da,Ss,"after"):be),Qe(ea,So.top,Br-ea,So.bottom),So.bottom0?mt.blinker=setInterval(function(){st.hasFocus()||gh(st),mt.cursorDiv.style.visibility=(Ot=!Ot)?"":"hidden"},st.options.cursorBlinkRate):st.options.cursorBlinkRate<0&&(mt.cursorDiv.style.visibility="hidden")}}function Hr(st){st.state.focused||(st.display.input.focus(),or(st))}function so(st){st.state.delayingBlurEvent=!0,setTimeout(function(){st.state.delayingBlurEvent&&(st.state.delayingBlurEvent=!1,gh(st))},100)}function or(st,mt){st.state.delayingBlurEvent&&(st.state.delayingBlurEvent=!1),st.options.readOnly!="nocursor"&&(st.state.focused||(Ze(st,"focus",st,mt),st.state.focused=!0,Vt(st.display.wrapper,"CodeMirror-focused"),!st.curOp&&st.display.selForContextMenu!=st.doc.sel&&(st.display.input.reset(),pt&&setTimeout(function(){return st.display.input.reset(!0)},20)),st.display.input.receivedFocus()),Ar(st))}function gh(st,mt){st.state.delayingBlurEvent||(st.state.focused&&(Ze(st,"blur",st,mt),st.state.focused=!1,_t(st.display.wrapper,"CodeMirror-focused")),clearInterval(st.display.blinker),setTimeout(function(){st.state.focused||(st.display.shift=!1)},150))}function fi(st){for(var mt=st.display,Ot=mt.lineDiv.offsetTop,Tt=0;Tt.005||Qe<-.005)&&(ir(Dt.line,ce),Dg(Dt.line),Dt.rest))for(var ze=0;zest.display.sizerWidth){var ln=Math.ceil(Ce/ph(st.display));ln>st.display.maxLineLength&&(st.display.maxLineLength=ln,st.display.maxLine=Dt.line,st.display.maxLineChanged=!0)}}}}function Dg(st){if(st.widgets)for(var mt=0;mt=ce&&(qt=Nn(mt,zi(Bn(mt,be))-st.wrapper.clientHeight),ce=be)}return{from:qt,to:Math.max(ce,qt+1)}}function Ig(st,mt){if(!nn(st,"scrollCursorIntoView")){var Ot=st.display,Tt=Ot.sizer.getBoundingClientRect(),Dt=null;if(mt.top+Tt.top<0?Dt=!0:mt.bottom+Tt.top>(window.innerHeight||document.documentElement.clientHeight)&&(Dt=!1),Dt!=null&&!ct){var qt=Lt("div","\u200B",null,`position: absolute; + top: `+(mt.top-Ot.viewOffset-ms(st.display))+`px; height: `+(mt.bottom-mt.top+As(st)+Ot.barHeight)+`px; - left: `+mt.left+"px; width: "+Math.max(2,mt.right-mt.left)+"px;");st.display.lineSpace.appendChild(qt),qt.scrollIntoView(Dt),st.display.lineSpace.removeChild(qt)}}}function oc(st,mt,Ot,Tt){Tt==null&&(Tt=0);var Dt;!st.options.lineWrapping&&mt==Ot&&(mt=mt.ch?on(mt.line,mt.sticky=="before"?mt.ch-1:mt.ch,"after"):mt,Ot=mt.sticky=="before"?on(mt.line,mt.ch+1,"before"):mt);for(var qt=0;qt<5;qt++){var ce=!1,Ce=ho(st,mt),be=!Ot||Ot==mt?Ce:ho(st,Ot);Dt={left:Math.min(Ce.left,be.left),top:Math.min(Ce.top,be.top)-Tt,right:Math.max(Ce.left,be.left),bottom:Math.max(Ce.bottom,be.bottom)+Tt};var Fe=$d(st,Dt),Qe=st.doc.scrollTop,ze=st.doc.scrollLeft;if(Fe.scrollTop!=null&&(vh(st,Fe.scrollTop),Math.abs(st.doc.scrollTop-Qe)>1&&(ce=!0)),Fe.scrollLeft!=null&&(ru(st,Fe.scrollLeft),Math.abs(st.doc.scrollLeft-ze)>1&&(ce=!0)),!ce)break}return Dt}function Wc(st,mt){var Ot=$d(st,mt);Ot.scrollTop!=null&&vh(st,Ot.scrollTop),Ot.scrollLeft!=null&&ru(st,Ot.scrollLeft)}function $d(st,mt){var Ot=st.display,Tt=nu(st.display);mt.top<0&&(mt.top=0);var Dt=st.curOp&&st.curOp.scrollTop!=null?st.curOp.scrollTop:Ot.scroller.scrollTop,qt=yn(st),ce={};mt.bottom-mt.top>qt&&(mt.bottom=mt.top+qt);var Ce=st.doc.height+gl(Ot),be=mt.topCe-Tt;if(mt.topDt+qt){var Qe=Math.min(mt.top,(Fe?Ce:mt.bottom)-qt);Qe!=Dt&&(ce.scrollTop=Qe)}var ze=st.options.fixedGutter?0:Ot.gutters.offsetWidth,ln=st.curOp&&st.curOp.scrollLeft!=null?st.curOp.scrollLeft:Ot.scroller.scrollLeft-ze,an=Ea(st)-Ot.gutters.offsetWidth,kn=mt.right-mt.left>an;return kn&&(mt.right=mt.left+an),mt.left<10?ce.scrollLeft=0:mt.leftan+ln-3&&(ce.scrollLeft=mt.right+(kn?0:10)-an),ce}function Gf(st,mt){mt!=null&&(Nl(st),st.curOp.scrollTop=(st.curOp.scrollTop==null?st.doc.scrollTop:st.curOp.scrollTop)+mt)}function iu(st){Nl(st);var mt=st.getCursor();st.curOp.scrollToPos={from:mt,to:mt,margin:st.options.cursorScrollMargin}}function mh(st,mt,Ot){(mt!=null||Ot!=null)&&Nl(st),mt!=null&&(st.curOp.scrollLeft=mt),Ot!=null&&(st.curOp.scrollTop=Ot)}function sr(st,mt){Nl(st),st.curOp.scrollToPos=mt}function Nl(st){var mt=st.curOp.scrollToPos;if(mt){st.curOp.scrollToPos=null;var Ot=Ff(st,mt.from),Tt=Ff(st,mt.to);Uf(st,Ot,Tt,mt.margin)}}function Uf(st,mt,Ot,Tt){var Dt=$d(st,{left:Math.min(mt.left,Ot.left),top:Math.min(mt.top,Ot.top)-Tt,right:Math.max(mt.right,Ot.right),bottom:Math.max(mt.bottom,Ot.bottom)+Tt});mh(st,Dt.scrollLeft,Dt.scrollTop)}function vh(st,mt){Math.abs(st.doc.scrollTop-mt)<2||(Ft||Ou(st,{top:mt}),tp(st,mt,!0),Ft&&Ou(st),sc(st,100))}function tp(st,mt,Ot){mt=Math.max(0,Math.min(st.display.scroller.scrollHeight-st.display.scroller.clientHeight,mt)),!(st.display.scroller.scrollTop==mt&&!Ot)&&(st.doc.scrollTop=mt,st.display.scrollbars.setScrollTop(mt),st.display.scroller.scrollTop!=mt&&(st.display.scroller.scrollTop=mt))}function ru(st,mt,Ot,Tt){mt=Math.max(0,Math.min(mt,st.display.scroller.scrollWidth-st.display.scroller.clientWidth)),!((Ot?mt==st.doc.scrollLeft:Math.abs(st.doc.scrollLeft-mt)<2)&&!Tt)&&(st.doc.scrollLeft=mt,Vf(st),st.display.scroller.scrollLeft!=mt&&(st.display.scroller.scrollLeft=mt),st.display.scrollbars.setScrollLeft(mt))}function za(st){var mt=st.display,Ot=mt.gutters.offsetWidth,Tt=Math.round(st.doc.height+gl(st.display));return{clientHeight:mt.scroller.clientHeight,viewHeight:mt.wrapper.clientHeight,scrollWidth:mt.scroller.scrollWidth,clientWidth:mt.scroller.clientWidth,viewWidth:mt.wrapper.clientWidth,barLeft:st.options.fixedGutter?Ot:0,docHeight:Tt,scrollHeight:Tt+As(st)+mt.barHeight,nativeBarWidth:mt.nativeBarWidth,gutterWidth:Ot}}var Mu=function(st,mt,Ot){this.cm=Ot;var Tt=this.vert=Lt("div",[Lt("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Dt=this.horiz=Lt("div",[Lt("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");Tt.tabIndex=Dt.tabIndex=-1,st(Tt),st(Dt),Ie(Tt,"scroll",function(){Tt.clientHeight&&mt(Tt.scrollTop,"vertical")}),Ie(Dt,"scroll",function(){Dt.clientWidth&&mt(Dt.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Ct&&St<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Mu.prototype.update=function(st){var mt=st.scrollWidth>st.clientWidth+1,Ot=st.scrollHeight>st.clientHeight+1,Tt=st.nativeBarWidth;if(Ot){this.vert.style.display="block",this.vert.style.bottom=mt?Tt+"px":"0";var Dt=st.viewHeight-(mt?Tt:0);this.vert.firstChild.style.height=Math.max(0,st.scrollHeight-st.clientHeight+Dt)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(mt){this.horiz.style.display="block",this.horiz.style.right=Ot?Tt+"px":"0",this.horiz.style.left=st.barLeft+"px";var qt=st.viewWidth-st.barLeft-(Ot?Tt:0);this.horiz.firstChild.style.width=Math.max(0,st.scrollWidth-st.clientWidth+qt)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&st.clientHeight>0&&(Tt==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:Ot?Tt:0,bottom:mt?Tt:0}},Mu.prototype.setScrollLeft=function(st){this.horiz.scrollLeft!=st&&(this.horiz.scrollLeft=st),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Mu.prototype.setScrollTop=function(st){this.vert.scrollTop!=st&&(this.vert.scrollTop=st),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Mu.prototype.zeroWidthHack=function(){var st=ot&&!ft?"12px":"18px";this.horiz.style.height=this.vert.style.width=st,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new re,this.disableVert=new re},Mu.prototype.enableZeroWidthBar=function(st,mt,Ot){st.style.pointerEvents="auto";function Tt(){var Dt=st.getBoundingClientRect(),qt=Ot=="vert"?document.elementFromPoint(Dt.right-1,(Dt.top+Dt.bottom)/2):document.elementFromPoint((Dt.right+Dt.left)/2,Dt.bottom-1);qt!=st?st.style.pointerEvents="none":mt.set(1e3,Tt)}mt.set(1e3,Tt)},Mu.prototype.clear=function(){var st=this.horiz.parentNode;st.removeChild(this.horiz),st.removeChild(this.vert)};var yl=function(){};yl.prototype.update=function(){return{bottom:0,right:0}},yl.prototype.setScrollLeft=function(){},yl.prototype.setScrollTop=function(){},yl.prototype.clear=function(){};function ku(st,mt){mt||(mt=za(st));var Ot=st.display.barWidth,Tt=st.display.barHeight;Hf(st,mt);for(var Dt=0;Dt<4&&Ot!=st.display.barWidth||Tt!=st.display.barHeight;Dt++)Ot!=st.display.barWidth&&st.options.lineWrapping&&fi(st),Hf(st,za(st)),Ot=st.display.barWidth,Tt=st.display.barHeight}function Hf(st,mt){var Ot=st.display,Tt=Ot.scrollbars.update(mt);Ot.sizer.style.paddingRight=(Ot.barWidth=Tt.right)+"px",Ot.sizer.style.paddingBottom=(Ot.barHeight=Tt.bottom)+"px",Ot.heightForcer.style.borderBottom=Tt.bottom+"px solid transparent",Tt.right&&Tt.bottom?(Ot.scrollbarFiller.style.display="block",Ot.scrollbarFiller.style.height=Tt.bottom+"px",Ot.scrollbarFiller.style.width=Tt.right+"px"):Ot.scrollbarFiller.style.display="",Tt.bottom&&st.options.coverGutterNextToScrollbar&&st.options.fixedGutter?(Ot.gutterFiller.style.display="block",Ot.gutterFiller.style.height=Tt.bottom+"px",Ot.gutterFiller.style.width=mt.gutterWidth+"px"):Ot.gutterFiller.style.display=""}var ep={native:Mu,null:yl};function np(st){st.display.scrollbars&&(st.display.scrollbars.clear(),st.display.scrollbars.addClass&&_t(st.display.wrapper,st.display.scrollbars.addClass)),st.display.scrollbars=new ep[st.options.scrollbarStyle](function(mt){st.display.wrapper.insertBefore(mt,st.display.scrollbarFiller),Ie(mt,"mousedown",function(){st.state.focused&&setTimeout(function(){return st.display.input.focus()},0)}),mt.setAttribute("cm-not-content","true")},function(mt,Ot){Ot=="horizontal"?ru(st,mt):vh(st,mt)},st),st.display.scrollbars.addClass&&Yt(st.display.wrapper,st.display.scrollbars.addClass)}var Fg=0;function Lu(st){st.curOp={cm:st,viewChanged:!1,startHeight:st.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Fg},Eu(st.curOp)}function Tu(st){var mt=st.curOp;mt&&ch(mt,function(Ot){for(var Tt=0;Tt=Ot.viewTo)||Ot.maxLineChanged&&mt.options.lineWrapping,st.update=st.mustUpdate&&new yh(mt,st.mustUpdate&&{top:st.scrollTop,ensure:st.scrollToPos},st.forceUpdate)}function $0(st){st.updatedDisplay=st.mustUpdate&&Wf(st.cm,st.update)}function Bg(st){var mt=st.cm,Ot=mt.display;st.updatedDisplay&&fi(mt),st.barMeasure=za(mt),Ot.maxLineChanged&&!mt.options.lineWrapping&&(st.adjustWidthTo=rr(mt,Ot.maxLine,Ot.maxLine.text.length).left+3,mt.display.sizerWidth=st.adjustWidthTo,st.barMeasure.scrollWidth=Math.max(Ot.scroller.clientWidth,Ot.sizer.offsetLeft+st.adjustWidthTo+As(mt)+mt.display.barWidth),st.maxScrollLeft=Math.max(0,Ot.sizer.offsetLeft+st.adjustWidthTo-Ea(mt))),(st.updatedDisplay||st.selectionChanged)&&(st.preparedSelection=Ot.input.prepareSelection())}function yo(st){var mt=st.cm;st.adjustWidthTo!=null&&(mt.display.sizer.style.minWidth=st.adjustWidthTo+"px",st.maxScrollLeft=st.display.viewTo)){var Ot=+new Date+st.options.workTime,Tt=Mi(st,mt.highlightFrontier),Dt=[];mt.iter(Tt.line,Math.min(mt.first+mt.size,st.display.viewTo+500),function(qt){if(Tt.line>=st.display.viewFrom){var ce=qt.styles,Ce=qt.text.length>st.options.maxHighlightLength?zn(mt.mode,Tt.state):null,be=er(st,qt,Tt,!0);Ce&&(Tt.state=Ce),qt.styles=be.styles;var Fe=qt.styleClasses,Qe=be.classes;Qe?qt.styleClasses=Qe:Fe&&(qt.styleClasses=null);for(var ze=!ce||ce.length!=qt.styles.length||Fe!=Qe&&(!Fe||!Qe||Fe.bgClass!=Qe.bgClass||Fe.textClass!=Qe.textClass),ln=0;!ze&&lnOt)return sc(st,st.options.workDelay),!0}),mt.highlightFrontier=Tt.line,mt.modeFrontier=Math.max(mt.modeFrontier,Tt.line),Dt.length&&Sr(st,function(){for(var qt=0;qt=Ot.viewFrom&&mt.visible.to<=Ot.viewTo&&(Ot.updateLineNumbers==null||Ot.updateLineNumbers>=Ot.viewTo)&&Ot.renderedView==Ot.view&&ua(st)==0)return!1;No(st)&&(Mo(st),mt.dims=zf(st));var Dt=Tt.first+Tt.size,qt=Math.max(mt.visible.from-st.options.viewportMargin,Tt.first),ce=Math.min(Dt,mt.visible.to+st.options.viewportMargin);Ot.viewFromce&&Ot.viewTo-ce<20&&(ce=Math.min(Dt,Ot.viewTo)),vn&&(qt=vi(st.doc,qt),ce=qn(st.doc,ce));var Ce=qt!=Ot.viewFrom||ce!=Ot.viewTo||Ot.lastWrapHeight!=mt.wrapperHeight||Ot.lastWrapWidth!=mt.wrapperWidth;Dr(st,qt,ce),Ot.viewOffset=zi(Bn(st.doc,Ot.viewFrom)),st.display.mover.style.top=Ot.viewOffset+"px";var be=ua(st);if(!Ce&&be==0&&!mt.force&&Ot.renderedView==Ot.view&&(Ot.updateLineNumbers==null||Ot.updateLineNumbers>=Ot.viewTo))return!1;var Fe=zg(st);return be>4&&(Ot.lineDiv.style.display="none"),ip(st,Ot.updateLineNumbers,mt.dims),be>4&&(Ot.lineDiv.style.display=""),Ot.renderedView=Ot.view,Js(Fe),Mt(Ot.cursorDiv),Mt(Ot.selectionDiv),Ot.gutters.style.height=Ot.sizer.style.minHeight=0,Ce&&(Ot.lastWrapHeight=mt.wrapperHeight,Ot.lastWrapWidth=mt.wrapperWidth,sc(st,400)),Ot.updateLineNumbers=null,!0}function Mr(st,mt){for(var Ot=mt.viewport,Tt=!0;;Tt=!1){if(!Tt||!st.options.lineWrapping||mt.oldDisplayWidth==Ea(st)){if(Ot&&Ot.top!=null&&(Ot={top:Math.min(st.doc.height+gl(st.display)-yn(st),Ot.top)}),mt.visible=$i(st.display,st.doc,Ot),mt.visible.from>=st.display.viewFrom&&mt.visible.to<=st.display.viewTo)break}else Tt&&(mt.visible=$i(st.display,st.doc,Ot));if(!Wf(st,mt))break;fi(st);var Dt=za(st);Uo(st),ku(st,Dt),Nu(st,Dt),mt.force=!1}mt.signal(st,"update",st),(st.display.viewFrom!=st.display.reportedViewFrom||st.display.viewTo!=st.display.reportedViewTo)&&(mt.signal(st,"viewportChange",st,st.display.viewFrom,st.display.viewTo),st.display.reportedViewFrom=st.display.viewFrom,st.display.reportedViewTo=st.display.viewTo)}function Ou(st,mt){var Ot=new yh(st,mt);if(Wf(st,Ot)){fi(st),Mr(st,Ot);var Tt=za(st);Uo(st),ku(st,Tt),Nu(st,Tt),Ot.finish()}}function ip(st,mt,Ot){var Tt=st.display,Dt=st.options.lineNumbers,qt=Tt.lineDiv,ce=qt.firstChild;function Ce(kn){var Tn=kn.nextSibling;return pt&&ot&&st.display.currentWheelTarget==kn?kn.style.display="none":kn.parentNode.removeChild(kn),Tn}for(var be=Tt.view,Fe=Tt.viewFrom,Qe=0;Qe-1&&(an=!1),ic(st,ze,Fe,Ot)),an&&(Mt(ze.lineNumber),ze.lineNumber.appendChild(document.createTextNode(pr(st.options,Fe)))),ce=ze.node.nextSibling}Fe+=ze.size}for(;ce;)ce=Ce(ce)}function ju(st){var mt=st.gutters.offsetWidth;st.sizer.style.marginLeft=mt+"px"}function Nu(st,mt){st.display.sizer.style.minHeight=mt.docHeight+"px",st.display.heightForcer.style.top=mt.docHeight+"px",st.display.gutters.style.height=mt.docHeight+st.display.barHeight+As(st)+"px"}function Vf(st){var mt=st.display,Ot=mt.view;if(!(!mt.alignWidgets&&(!mt.gutters.firstChild||!st.options.fixedGutter))){for(var Tt=Hc(mt)-mt.scroller.scrollLeft+st.doc.scrollLeft,Dt=mt.gutters.offsetWidth,qt=Tt+"px",ce=0;cece.clientWidth,be=ce.scrollHeight>ce.clientHeight;if(Tt&&Ce||Dt&&be){if(Dt&&ot&&pt){t:for(var Fe=mt.target,Qe=qt.view;Fe!=ce;Fe=Fe.parentNode)for(var ze=0;ze=0&&Cn(st,Tt.to())<=0)return Ot}return-1};var kr=function(st,mt){this.anchor=st,this.head=mt};kr.prototype.from=function(){return oi(this.anchor,this.head)},kr.prototype.to=function(){return Wi(this.anchor,this.head)},kr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function rl(st,mt,Ot){var Tt=st&&st.options.selectionsMayTouch,Dt=mt[Ot];mt.sort(function(ln,an){return Cn(ln.from(),an.from())}),Ot=we(mt,Dt);for(var qt=1;qt0:be>=0){var Fe=oi(Ce.from(),ce.from()),Qe=Wi(Ce.to(),ce.to()),ze=Ce.empty()?ce.from()==ce.head:Ce.from()==Ce.head;qt<=Ot&&--Ot,mt.splice(--qt,2,new kr(ze?Qe:Fe,ze?Fe:Qe))}}return new Ga(mt,Ot)}function ou(st,mt){return new Ga([new kr(st,mt||st)],0)}function Iu(st){return st.text?on(st.from.line+st.text.length-1,Se(st.text).length+(st.text.length==1?st.from.ch:0)):st.to}function wh(st,mt){if(Cn(st,mt.from)<0)return st;if(Cn(st,mt.to)<=0)return Iu(mt);var Ot=st.line+mt.text.length-(mt.to.line-mt.from.line)-1,Tt=st.ch;return st.line==mt.to.line&&(Tt+=Iu(mt).ch-mt.to.ch),on(Ot,Tt)}function Vc(st,mt){for(var Ot=[],Tt=0;Tt1&&st.remove(Ce.line+1,kn-1),st.insert(Ce.line+1,Hn)}Yn(st,"change",st,mt)}function wl(st,mt,Ot){function Tt(Dt,qt,ce){if(Dt.linked)for(var Ce=0;Ce1&&!st.done[st.done.length-2].ranges)return st.done.pop(),Se(st.done)}function Qc(st,mt,Ot,Tt){var Dt=st.history;Dt.undone.length=0;var qt=+new Date,ce,Ce;if((Dt.lastOp==Tt||Dt.lastOrigin==mt.origin&&mt.origin&&(mt.origin.charAt(0)=="+"&&Dt.lastModTime>qt-(st.cm?st.cm.options.historyEventDelay:500)||mt.origin.charAt(0)=="*"))&&(ce=Zc(Dt,Dt.lastOp==Tt)))Ce=Se(ce.changes),Cn(mt.from,mt.to)==0&&Cn(mt.from,Ce.to)==0?Ce.to=Iu(mt):ce.changes.push(Xf(st,mt));else{var be=Se(Dt.done);for((!be||!be.ranges)&&hc(st.sel,Dt.done),ce={changes:[Xf(st,mt)],generation:Dt.generation},Dt.done.push(ce);Dt.done.length>Dt.undoDepth;)Dt.done.shift(),Dt.done[0].ranges||Dt.done.shift()}Dt.done.push(Ot),Dt.generation=++Dt.maxGeneration,Dt.lastModTime=Dt.lastSelTime=qt,Dt.lastOp=Dt.lastSelOp=Tt,Dt.lastOrigin=Dt.lastSelOrigin=mt.origin,Ce||Ze(st,"historyAdded")}function op(st,mt,Ot,Tt){var Dt=mt.charAt(0);return Dt=="*"||Dt=="+"&&Ot.ranges.length==Tt.ranges.length&&Ot.somethingSelected()==Tt.somethingSelected()&&new Date-st.history.lastSelTime<=(st.cm?st.cm.options.historyEventDelay:500)}function Jc(st,mt,Ot,Tt){var Dt=st.history,qt=Tt&&Tt.origin;Ot==Dt.lastSelOp||qt&&Dt.lastSelOrigin==qt&&(Dt.lastModTime==Dt.lastSelTime&&Dt.lastOrigin==qt||op(st,qt,Se(Dt.done),mt))?Dt.done[Dt.done.length-1]=mt:hc(mt,Dt.done),Dt.lastSelTime=+new Date,Dt.lastSelOrigin=qt,Dt.lastSelOp=Ot,Tt&&Tt.clearRedo!==!1&&uc(Dt.undone)}function hc(st,mt){var Ot=Se(mt);Ot&&Ot.ranges&&Ot.equals(st)||mt.push(st)}function Fu(st,mt,Ot,Tt){var Dt=mt["spans_"+st.id],qt=0;st.iter(Math.max(st.first,Ot),Math.min(st.first+st.size,Tt),function(ce){ce.markedSpans&&((Dt||(Dt=mt["spans_"+st.id]={}))[qt]=ce.markedSpans),++qt})}function zs(st){if(!st)return null;for(var mt,Ot=0;Ot-1&&(Se(Ce)[ze]=Fe[ze],delete Fe[ze])}}return Tt}function Qf(st,mt,Ot,Tt){if(Tt){var Dt=st.anchor;if(Ot){var qt=Cn(mt,Dt)<0;qt!=Cn(Ot,Dt)<0?(Dt=mt,mt=Ot):qt!=Cn(mt,Ot)<0&&(mt=Ot)}return new kr(Dt,mt)}else return new kr(Ot||mt,mt)}function Jf(st,mt,Ot,Tt,Dt){Dt==null&&(Dt=st.cm&&(st.cm.display.shift||st.extend)),ks(st,new Ga([Qf(st.sel.primary(),mt,Ot,Dt)],0),Tt)}function Gg(st,mt,Ot){for(var Tt=[],Dt=st.cm&&(st.cm.display.shift||st.extend),qt=0;qt=mt.ch:Ce.to>mt.ch))){if(Dt&&(Ze(be,"beforeCursorEnter"),be.explicitlyCleared))if(qt.markedSpans){--ce;continue}else break;if(!be.atomic)continue;if(Ot){var ze=be.find(Tt<0?1:-1),ln=void 0;if((Tt<0?Qe:Fe)&&(ze=ap(st,ze,-Tt,ze&&ze.line==mt.line?qt:null)),ze&&ze.line==mt.line&&(ln=Cn(ze,Ot))&&(Tt<0?ln<0:ln>0))return au(st,ze,mt,Tt,Dt)}var an=be.find(Tt<0?-1:1);return(Tt<0?Fe:Qe)&&(an=ap(st,an,Tt,an.line==mt.line?qt:null)),an?au(st,an,mt,Tt,Dt):null}}return mt}function tf(st,mt,Ot,Tt,Dt){var qt=Tt||1,ce=au(st,mt,Ot,qt,Dt)||!Dt&&au(st,mt,Ot,qt,!0)||au(st,mt,Ot,-qt,Dt)||!Dt&&au(st,mt,Ot,-qt,!0);return ce||(st.cantEdit=!0,on(st.first,0))}function ap(st,mt,Ot,Tt){return Ot<0&&mt.ch==0?mt.line>st.first?Zn(st,on(mt.line-1)):null:Ot>0&&mt.ch==(Tt||Bn(st,mt.line)).text.length?mt.line=0;--Dt)Ph(st,{from:Tt[Dt].from,to:Tt[Dt].to,text:Dt?[""]:mt.text,origin:mt.origin});else Ph(st,mt)}}function Ph(st,mt){if(!(mt.text.length==1&&mt.text[0]==""&&Cn(mt.from,mt.to)==0)){var Ot=Vc(st,mt);Qc(st,mt,Ot,st.cm?st.cm.curOp.id:NaN),cc(st,mt,Ot,Cr(st,mt));var Tt=[];wl(st,function(Dt,qt){!qt&&we(Tt,Dt.history)==-1&&(up(Dt.history,mt),Tt.push(Dt.history)),cc(Dt,mt,null,Cr(Dt,mt))})}}function nf(st,mt,Ot){var Tt=st.cm&&st.cm.state.suppressEdits;if(!(Tt&&!Ot)){for(var Dt=st.history,qt,ce=st.sel,Ce=mt=="undo"?Dt.done:Dt.undone,be=mt=="undo"?Dt.undone:Dt.done,Fe=0;Fe=0;--an){var kn=ln(an);if(kn)return kn.v}}}}function lp(st,mt){if(mt!=0&&(st.first+=mt,st.sel=new Ga(xe(st.sel.ranges,function(Dt){return new kr(on(Dt.anchor.line+mt,Dt.anchor.ch),on(Dt.head.line+mt,Dt.head.ch))}),st.sel.primIndex),st.cm)){eo(st.cm,st.first,st.first-mt,mt);for(var Ot=st.cm.display,Tt=Ot.viewFrom;Ttst.lastLine())){if(mt.from.lineqt&&(mt={from:mt.from,to:on(qt,Bn(st,qt).text.length),text:[mt.text[0]],origin:mt.origin}),mt.removed=Xi(st,mt.from,mt.to),Ot||(Ot=Vc(st,mt)),st.cm?Hg(st.cm,mt,Tt):Yf(st,mt,Tt),bh(st,Ot,me),st.cantEdit&&tf(st,on(st.firstLine(),0))&&(st.cantEdit=!1)}}function Hg(st,mt,Ot){var Tt=st.doc,Dt=st.display,qt=mt.from,ce=mt.to,Ce=!1,be=qt.line;st.options.lineWrapping||(be=We(Er(Bn(Tt,qt.line))),Tt.iter(be,ce.line+1,function(an){if(an==Dt.maxLine)return Ce=!0,!0})),Tt.sel.contains(mt.from,mt.to)>-1&&fn(st),Yf(Tt,mt,Ot,to(st)),st.options.lineWrapping||(Tt.iter(be,qt.line+mt.text.length,function(an){var kn=jr(an);kn>Dt.maxLineLength&&(Dt.maxLine=an,Dt.maxLineLength=kn,Dt.maxLineChanged=!0,Ce=!1)}),Ce&&(st.curOp.updateMaxLine=!0)),Yi(Tt,qt.line),sc(st,400);var Fe=mt.text.length-(ce.line-qt.line)-1;mt.full?eo(st):qt.line==ce.line&&mt.text.length==1&&!rp(st.doc,mt)?Gi(st,qt.line,"text"):eo(st,qt.line,ce.line+1,Fe);var Qe=An(st,"changes"),ze=An(st,"change");if(ze||Qe){var ln={from:qt,to:ce,text:mt.text,removed:mt.removed,origin:mt.origin};ze&&Yn(st,"change",st,ln),Qe&&(st.curOp.changeObjs||(st.curOp.changeObjs=[])).push(ln)}st.display.selForContextMenu=null}function Ch(st,mt,Ot,Tt,Dt){var qt;Tt||(Tt=Ot),Cn(Tt,Ot)<0&&(qt=[Tt,Ot],Ot=qt[0],Tt=qt[1]),typeof mt=="string"&&(mt=st.splitLines(mt)),Ru(st,{from:Ot,to:Tt,text:mt,origin:Dt})}function Ua(st,mt,Ot,Tt){Ot1||!(this.children[0]instanceof fc))){var Ce=[];this.collapse(Ce),this.children=[new fc(Ce)],this.children[0].parent=this}},collapse:function(st){for(var mt=0;mt50){for(var ce=Dt.lines.length%25+25,Ce=ce;Ce10);st.parent.maybeSpill()}},iterN:function(st,mt,Ot){for(var Tt=0;Ttst.display.maxLineLength&&(st.display.maxLine=Fe,st.display.maxLineLength=Qe,st.display.maxLineChanged=!0)}Tt!=null&&st&&this.collapsed&&eo(st,Tt,Dt+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,st&&qc(st.doc)),st&&Yn(st,"markerCleared",st,this,Tt,Dt),mt&&Tu(st),this.parent&&this.parent.clear()}},Ye.prototype.find=function(st,mt){st==null&&this.type=="bookmark"&&(st=1);for(var Ot,Tt,Dt=0;Dt0||ce==0&&qt.clearWhenEmpty!==!1)return qt;if(qt.replacedWith&&(qt.collapsed=!0,qt.widgetNode=It("span",[qt.replacedWith],"CodeMirror-widget"),Tt.handleMouseEvents||qt.widgetNode.setAttribute("cm-ignore-events","true"),Tt.insertLeft&&(qt.widgetNode.insertLeft=!0)),qt.collapsed){if(nc(st,mt.line,mt,Ot,qt)||mt.line!=Ot.line&&nc(st,Ot.line,mt,Ot,qt))throw new Error("Inserting collapsed marker partially overlapping an existing one");gn()}qt.addToHistory&&Qc(st,{from:mt,to:Ot,origin:"markText"},st.sel,NaN);var Ce=mt.line,be=st.cm,Fe;if(st.iter(Ce,Ot.line+1,function(ze){be&&qt.collapsed&&!be.options.lineWrapping&&Er(ze)==be.display.maxLine&&(Fe=!0),qt.collapsed&&Ce!=mt.line&&ir(ze,0),Zo(ze,new qi(qt,Ce==mt.line?mt.ch:null,Ce==Ot.line?Ot.ch:null)),++Ce}),qt.collapsed&&st.iter(mt.line,Ot.line+1,function(ze){xn(st,ze)&&ir(ze,0)}),qt.clearOnEnter&&Ie(qt,"beforeCursorEnter",function(){return qt.clear()}),qt.readOnly&&(Qi(),(st.history.done.length||st.history.undone.length)&&st.clearHistory()),qt.collapsed&&(qt.id=++Yg,qt.atomic=!0),be){if(Fe&&(be.curOp.updateMaxLine=!0),qt.collapsed)eo(be,mt.line,Ot.line+1);else if(qt.className||qt.startStyle||qt.endStyle||qt.css||qt.attributes||qt.title)for(var Qe=mt.line;Qe<=Ot.line;Qe++)Gi(be,Qe,"text");qt.atomic&&qc(be.doc),Yn(be,"markerAdded",be,qt)}return qt}var Il=function(st,mt){this.markers=st,this.primary=mt;for(var Ot=0;Ot=0;be--)Ru(this,Tt[be]);Ce?qf(this,Ce):this.cm&&iu(this.cm)}),undo:es(function(){nf(this,"undo")}),redo:es(function(){nf(this,"redo")}),undoSelection:es(function(){nf(this,"undo",!0)}),redoSelection:es(function(){nf(this,"redo",!0)}),setExtending:function(st){this.extend=st},getExtending:function(){return this.extend},historySize:function(){for(var st=this.history,mt=0,Ot=0,Tt=0;Tt=st.ch)&&mt.push(Dt.marker.parent||Dt.marker)}return mt},findMarks:function(st,mt,Ot){st=Zn(this,st),mt=Zn(this,mt);var Tt=[],Dt=st.line;return this.iter(st.line,mt.line+1,function(qt){var ce=qt.markedSpans;if(ce)for(var Ce=0;Ce=be.to||be.from==null&&Dt!=st.line||be.from!=null&&Dt==mt.line&&be.from>=mt.ch)&&(!Ot||Ot(be.marker))&&Tt.push(be.marker.parent||be.marker)}++Dt}),Tt},getAllMarks:function(){var st=[];return this.iter(function(mt){var Ot=mt.markedSpans;if(Ot)for(var Tt=0;Ttst)return mt=st,!0;st-=qt,++Ot}),Zn(this,on(Ot,mt))},indexFromPos:function(st){st=Zn(this,st);var mt=st.ch;if(st.linemt&&(mt=st.from),st.to!=null&&st.to-1){mt.state.draggingText(st),setTimeout(function(){return mt.display.input.focus()},20);return}try{var Qe=st.dataTransfer.getData("Text");if(Qe){var ze;if(mt.state.draggingText&&!mt.state.draggingText.copy&&(ze=mt.listSelections()),bh(mt.doc,ou(Ot,Ot)),ze)for(var ln=0;ln=0;Ce--)Ch(st.doc,"",Tt[Ce].from,Tt[Ce].to,"+delete");iu(st)})}function yp(st,mt,Ot){var Tt=he(st.text,mt+Ot,Ot);return Tt<0||Tt>st.text.length?null:Tt}function To(st,mt,Ot){var Tt=yp(st,mt.ch,Ot);return Tt==null?null:new on(mt.line,Tt,Ot<0?"after":"before")}function af(st,mt,Ot,Tt,Dt){if(st){mt.doc.direction=="rtl"&&(Dt=-Dt);var qt=ge(Ot,mt.doc.direction);if(qt){var ce=Dt<0?Se(qt):qt[0],Ce=Dt<0==(ce.level==1),be=Ce?"after":"before",Fe;if(ce.level>0||mt.doc.direction=="rtl"){var Qe=Ir(mt,Ot);Fe=Dt<0?Ot.text.length-1:0;var ze=Nr(mt,Qe,Fe).top;Fe=ye(function(ln){return Nr(mt,Qe,ln).top==ze},Dt<0==(ce.level==1)?ce.from:ce.to-1,Fe),be=="before"&&(Fe=yp(Ot,Fe,1))}else Fe=Dt<0?ce.to:ce.from;return new on(Tt,Fe,be)}}return new on(Tt,Dt<0?Ot.text.length:0,Dt<0?"before":"after")}function ed(st,mt,Ot,Tt){var Dt=ge(mt,st.doc.direction);if(!Dt)return To(mt,Ot,Tt);Ot.ch>=mt.text.length?(Ot.ch=mt.text.length,Ot.sticky="before"):Ot.ch<=0&&(Ot.ch=0,Ot.sticky="after");var qt=Bt(Dt,Ot.ch,Ot.sticky),ce=Dt[qt];if(st.doc.direction=="ltr"&&ce.level%2==0&&(Tt>0?ce.to>Ot.ch:ce.from=ce.from&&ln>=Qe.begin)){var an=ze?"before":"after";return new on(Ot.line,ln,an)}}var kn=function(Hn,ni,Kn){for(var ui=function(no,Vo){return Vo?new on(Ot.line,Ce(no,1),"before"):new on(Ot.line,no,"after")};Hn>=0&&Hn0==(Ai.level!=1),Hi=Vn?Kn.begin:Ce(Kn.end,-1);if(Ai.from<=Hi&&Hi0?Qe.end:Ce(Qe.begin,-1);return In!=null&&!(Tt>0&&In==mt.text.length)&&(Tn=kn(Tt>0?0:Dt.length-1,Tt,Fe(In)),Tn)?Tn:null}var zu={selectAll:Lo,singleSelection:function(st){return st.setSelection(st.getCursor("anchor"),st.getCursor("head"),me)},killLine:function(st){return fa(st,function(mt){if(mt.empty()){var Ot=Bn(st.doc,mt.head.line).text.length;return mt.head.ch==Ot&&mt.head.line0)Dt=new on(Dt.line,Dt.ch+1),st.replaceRange(qt.charAt(Dt.ch-1)+qt.charAt(Dt.ch-2),on(Dt.line,Dt.ch-2),Dt,"+transpose");else if(Dt.line>st.doc.first){var ce=Bn(st.doc,Dt.line-1).text;ce&&(Dt=new on(Dt.line,1),st.replaceRange(qt.charAt(0)+st.doc.lineSeparator()+ce.charAt(ce.length-1),on(Dt.line-1,ce.length-1),Dt,"+transpose"))}}Ot.push(new kr(Dt,Dt))}st.setSelections(Ot)})},newlineAndIndent:function(st){return Sr(st,function(){for(var mt=st.listSelections(),Ot=mt.length-1;Ot>=0;Ot--)st.replaceRange(st.doc.lineSeparator(),mt[Ot].anchor,mt[Ot].head,"+input");mt=st.listSelections();for(var Tt=0;Ttst&&Cn(mt,this.pos)==0&&Ot==this.button};var yc,Th;function Ep(st,mt){var Ot=+new Date;return Th&&Th.compare(Ot,st,mt)?(yc=Th=null,"triple"):yc&&yc.compare(Ot,st,mt)?(Th=new Cp(Ot,st,mt),yc=null,"double"):(yc=new Cp(Ot,st,mt),Th=null,"single")}function bl(st){var mt=this,Ot=mt.display;if(!(nn(mt,st)||Ot.activeTouch&&Ot.input.supportsTouch())){if(Ot.input.ensurePolled(),Ot.shift=st.shiftKey,Fs(Ot,st)){pt||(Ot.scroller.draggable=!1,setTimeout(function(){return Ot.scroller.draggable=!0},100));return}if(!ad(mt,st)){var Tt=Bs(mt,st),Dt=ki(st),qt=Tt?Ep(Tt,Dt):"single";window.focus(),Dt==1&&mt.state.selectingText&&mt.state.selectingText(st),!(Tt&&Ap(mt,Dt,Tt,qt,st))&&(Dt==1?Tt?em(mt,Tt,qt,st):Oi(st)==Ot.scroller&&Dn(st):Dt==2?(Tt&&Jf(mt.doc,Tt),setTimeout(function(){return Ot.input.focus()},20)):Dt==3&&(Et?mt.display.input.onContextMenu(st):so(mt)))}}}function Ap(st,mt,Ot,Tt,Dt){var qt="Click";return Tt=="double"?qt="Double"+qt:Tt=="triple"&&(qt="Triple"+qt),qt=(mt==1?"Left":mt==2?"Middle":"Right")+qt,kh(st,vp(qt,Dt),Dt,function(ce){if(typeof ce=="string"&&(ce=zu[ce]),!ce)return!1;var Ce=!1;try{st.isReadOnly()&&(st.state.suppressEdits=!0),Ce=ce(st,Ot)!=ke}finally{st.state.suppressEdits=!1}return Ce})}function od(st,mt,Ot){var Tt=st.getOption("configureMouse"),Dt=Tt?Tt(st,mt,Ot):{};if(Dt.unit==null){var qt=it?Ot.shiftKey&&Ot.metaKey:Ot.altKey;Dt.unit=qt?"rectangle":mt=="single"?"char":mt=="double"?"word":"line"}return(Dt.extend==null||st.doc.extend)&&(Dt.extend=st.doc.extend||Ot.shiftKey),Dt.addNew==null&&(Dt.addNew=ot?Ot.metaKey:Ot.ctrlKey),Dt.moveOnDrag==null&&(Dt.moveOnDrag=!(ot?Ot.altKey:Ot.ctrlKey)),Dt}function em(st,mt,Ot,Tt){Ct?setTimeout(ae(Hr,st),0):st.curOp.focus=Gt();var Dt=od(st,Ot,Tt),qt=st.doc.sel,ce;st.options.dragDrop&&pi&&!st.isReadOnly()&&Ot=="single"&&(ce=qt.contains(mt))>-1&&(Cn((ce=qt.ranges[ce]).from(),mt)<0||mt.xRel>0)&&(Cn(ce.to(),mt)>0||mt.xRel<0)?Mp(st,Tt,mt,Dt):nv(st,Tt,mt,Dt)}function Mp(st,mt,Ot,Tt){var Dt=st.display,qt=!1,ce=Ho(st,function(Fe){pt&&(Dt.scroller.draggable=!1),st.state.draggingText=!1,Je(Dt.wrapper.ownerDocument,"mouseup",ce),Je(Dt.wrapper.ownerDocument,"mousemove",Ce),Je(Dt.scroller,"dragstart",be),Je(Dt.scroller,"drop",ce),qt||(Dn(Fe),Tt.addNew||Jf(st.doc,Ot,null,null,Tt.extend),pt&&!dt||Ct&&St==9?setTimeout(function(){Dt.wrapper.ownerDocument.body.focus({preventScroll:!0}),Dt.input.focus()},20):Dt.input.focus())}),Ce=function(Fe){qt=qt||Math.abs(mt.clientX-Fe.clientX)+Math.abs(mt.clientY-Fe.clientY)>=10},be=function(){return qt=!0};pt&&(Dt.scroller.draggable=!0),st.state.draggingText=ce,ce.copy=!Tt.moveOnDrag,Dt.scroller.dragDrop&&Dt.scroller.dragDrop(),Ie(Dt.wrapper.ownerDocument,"mouseup",ce),Ie(Dt.wrapper.ownerDocument,"mousemove",Ce),Ie(Dt.scroller,"dragstart",be),Ie(Dt.scroller,"drop",ce),so(st),setTimeout(function(){return Dt.input.focus()},20)}function kp(st,mt,Ot){if(Ot=="char")return new kr(mt,mt);if(Ot=="word")return st.findWordAt(mt);if(Ot=="line")return new kr(on(mt.line,0),Zn(st.doc,on(mt.line+1,0)));var Tt=Ot(st,mt);return new kr(Tt.from,Tt.to)}function nv(st,mt,Ot,Tt){var Dt=st.display,qt=st.doc;Dn(mt);var ce,Ce,be=qt.sel,Fe=be.ranges;if(Tt.addNew&&!Tt.extend?(Ce=qt.sel.contains(Ot),Ce>-1?ce=Fe[Ce]:ce=new kr(Ot,Ot)):(ce=qt.sel.primary(),Ce=qt.sel.primIndex),Tt.unit=="rectangle")Tt.addNew||(ce=new kr(Ot,Ot)),Ot=Bs(st,mt,!0,!0),Ce=-1;else{var Qe=kp(st,Ot,Tt.unit);Tt.extend?ce=Qf(ce,Qe.anchor,Qe.head,Tt.extend):ce=Qe}Tt.addNew?Ce==-1?(Ce=Fe.length,ks(qt,rl(st,Fe.concat([ce]),Ce),{scroll:!1,origin:"*mouse"})):Fe.length>1&&Fe[Ce].empty()&&Tt.unit=="char"&&!Tt.extend?(ks(qt,rl(st,Fe.slice(0,Ce).concat(Fe.slice(Ce+1)),0),{scroll:!1,origin:"*mouse"}),be=qt.sel):Bu(qt,Ce,ce,fe):(Ce=0,ks(qt,new Ga([ce],0),fe),be=qt.sel);var ze=Ot;function ln(Kn){if(Cn(ze,Kn)!=0)if(ze=Kn,Tt.unit=="rectangle"){for(var ui=[],Ai=st.options.tabSize,Vn=Kt(Bn(qt,Ot.line).text,Ot.ch,Ai),Hi=Kt(Bn(qt,Kn.line).text,Kn.ch,Ai),no=Math.min(Vn,Hi),Vo=Math.max(Vn,Hi),fo=Math.min(Ot.line,Kn.line),ta=Math.min(st.lastLine(),Math.max(Ot.line,Kn.line));fo<=ta;fo++){var Ls=Bn(qt,fo).text,Ro=_e(Ls,no,Ai);no==Vo?ui.push(new kr(on(fo,Ro),on(fo,Ro))):Ls.length>Ro&&ui.push(new kr(on(fo,Ro),on(fo,_e(Ls,Vo,Ai))))}ui.length||ui.push(new kr(Ot,Ot)),ks(qt,rl(st,be.ranges.slice(0,Ce).concat(ui),Ce),{origin:"*mouse",scroll:!1}),st.scrollIntoView(Kn)}else{var da=ce,Ss=kp(st,Kn,Tt.unit),zo=da.anchor,vr;Cn(Ss.anchor,zo)>0?(vr=Ss.head,zo=oi(da.from(),Ss.anchor)):(vr=Ss.anchor,zo=Wi(da.to(),Ss.head));var So=be.ranges.slice(0);So[Ce]=nm(st,new kr(Zn(qt,zo),vr)),ks(qt,rl(st,So,Ce),fe)}}var an=Dt.wrapper.getBoundingClientRect(),kn=0;function Tn(Kn){var ui=++kn,Ai=Bs(st,Kn,!0,Tt.unit=="rectangle");if(Ai)if(Cn(Ai,ze)!=0){st.curOp.focus=Gt(),ln(Ai);var Vn=$i(Dt,qt);(Ai.line>=Vn.to||Ai.linean.bottom?20:0;Hi&&setTimeout(Ho(st,function(){kn==ui&&(Dt.scroller.scrollTop+=Hi,Tn(Kn))}),50)}}function In(Kn){st.state.selectingText=!1,kn=1/0,Kn&&(Dn(Kn),Dt.input.focus()),Je(Dt.wrapper.ownerDocument,"mousemove",Hn),Je(Dt.wrapper.ownerDocument,"mouseup",ni),qt.history.lastSelOrigin=null}var Hn=Ho(st,function(Kn){Kn.buttons===0||!ki(Kn)?In(Kn):Tn(Kn)}),ni=Ho(st,In);st.state.selectingText=ni,Ie(Dt.wrapper.ownerDocument,"mousemove",Hn),Ie(Dt.wrapper.ownerDocument,"mouseup",ni)}function nm(st,mt){var Ot=mt.anchor,Tt=mt.head,Dt=Bn(st.doc,Ot.line);if(Cn(Ot,Tt)==0&&Ot.sticky==Tt.sticky)return mt;var qt=ge(Dt);if(!qt)return mt;var ce=Bt(qt,Ot.ch,Ot.sticky),Ce=qt[ce];if(Ce.from!=Ot.ch&&Ce.to!=Ot.ch)return mt;var be=ce+(Ce.from==Ot.ch==(Ce.level!=1)?0:1);if(be==0||be==qt.length)return mt;var Fe;if(Tt.line!=Ot.line)Fe=(Tt.line-Ot.line)*(st.doc.direction=="ltr"?1:-1)>0;else{var Qe=Bt(qt,Tt.ch,Tt.sticky),ze=Qe-ce||(Tt.ch-Ot.ch)*(Ce.level==1?-1:1);Qe==be-1||Qe==be?Fe=ze<0:Fe=ze>0}var ln=qt[be+(Fe?-1:0)],an=Fe==(ln.level==1),kn=an?ln.from:ln.to,Tn=an?"after":"before";return Ot.ch==kn&&Ot.sticky==Tn?mt:new kr(new on(Ot.line,kn,Tn),Tt)}function sd(st,mt,Ot,Tt){var Dt,qt;if(mt.touches)Dt=mt.touches[0].clientX,qt=mt.touches[0].clientY;else try{Dt=mt.clientX,qt=mt.clientY}catch(ln){return!1}if(Dt>=Math.floor(st.display.gutters.getBoundingClientRect().right))return!1;Tt&&Dn(mt);var ce=st.display,Ce=ce.lineDiv.getBoundingClientRect();if(qt>Ce.bottom||!An(st,Ot))return mi(mt);qt-=Ce.top-ce.viewOffset;for(var be=0;be=Dt){var Qe=Nn(st.doc,qt),ze=st.display.gutterSpecs[be];return Ze(st,Ot,st,Qe,ze.className,mt),mi(mt)}}}function ad(st,mt){return sd(st,mt,"gutterClick",!0)}function ld(st,mt){Fs(st.display,mt)||im(st,mt)||nn(st,mt,"contextmenu")||Et||st.display.input.onContextMenu(mt)}function im(st,mt){return An(st,"gutterContextMenu")?sd(st,mt,"gutterContextMenu",!1):!1}function ud(st){st.display.wrapper.className=st.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+st.options.theme.replace(/(^|\s)\s*/g," cm-s-"),nl(st)}var Gu={toString:function(){return"CodeMirror.Init"}},Lp={},lf={};function rm(st){var mt=st.optionHandlers;function Ot(Tt,Dt,qt,ce){st.defaults[Tt]=Dt,qt&&(mt[Tt]=ce?function(Ce,be,Fe){Fe!=Gu&&qt(Ce,be,Fe)}:qt)}st.defineOption=Ot,st.Init=Gu,Ot("value","",function(Tt,Dt){return Tt.setValue(Dt)},!0),Ot("mode",null,function(Tt,Dt){Tt.doc.modeOption=Dt,Ui(Tt)},!0),Ot("indentUnit",2,Ui,!0),Ot("indentWithTabs",!1),Ot("smartIndent",!0),Ot("tabSize",4,function(Tt){Kc(Tt),nl(Tt),eo(Tt)},!0),Ot("lineSeparator",null,function(Tt,Dt){if(Tt.doc.lineSep=Dt,!!Dt){var qt=[],ce=Tt.doc.first;Tt.doc.iter(function(be){for(var Fe=0;;){var Qe=be.text.indexOf(Dt,Fe);if(Qe==-1)break;Fe=Qe+Dt.length,qt.push(on(ce,Qe))}ce++});for(var Ce=qt.length-1;Ce>=0;Ce--)Ch(Tt.doc,Dt,qt[Ce],on(qt[Ce].line,qt[Ce].ch+Dt.length))}}),Ot("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(Tt,Dt,qt){Tt.state.specialChars=new RegExp(Dt.source+(Dt.test(" ")?"":"| "),"g"),qt!=Gu&&Tt.refresh()}),Ot("specialCharPlaceholder",Es,function(Tt){return Tt.refresh()},!0),Ot("electricChars",!0),Ot("inputStyle",z?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),Ot("spellcheck",!1,function(Tt,Dt){return Tt.getInputField().spellcheck=Dt},!0),Ot("autocorrect",!1,function(Tt,Dt){return Tt.getInputField().autocorrect=Dt},!0),Ot("autocapitalize",!1,function(Tt,Dt){return Tt.getInputField().autocapitalize=Dt},!0),Ot("rtlMoveVisually",!at),Ot("wholeLineUpdateBefore",!0),Ot("theme","default",function(Tt){ud(Tt),Ma(Tt)},!0),Ot("keyMap","default",function(Tt,Dt,qt){var ce=Mh(Dt),Ce=qt!=Gu&&Mh(qt);Ce&&Ce.detach&&Ce.detach(Tt,ce),ce.attach&&ce.attach(Tt,Ce||null)}),Ot("extraKeys",null),Ot("configureMouse",null),Ot("lineWrapping",!1,om,!0),Ot("gutters",[],function(Tt,Dt){Tt.display.gutterSpecs=is(Dt,Tt.options.lineNumbers),Ma(Tt)},!0),Ot("fixedGutter",!0,function(Tt,Dt){Tt.display.gutters.style.left=Dt?Hc(Tt.display)+"px":"0",Tt.refresh()},!0),Ot("coverGutterNextToScrollbar",!1,function(Tt){return ku(Tt)},!0),Ot("scrollbarStyle","native",function(Tt){np(Tt),ku(Tt),Tt.display.scrollbars.setScrollTop(Tt.doc.scrollTop),Tt.display.scrollbars.setScrollLeft(Tt.doc.scrollLeft)},!0),Ot("lineNumbers",!1,function(Tt,Dt){Tt.display.gutterSpecs=is(Tt.options.gutters,Dt),Ma(Tt)},!0),Ot("firstLineNumber",1,Ma,!0),Ot("lineNumberFormatter",function(Tt){return Tt},Ma,!0),Ot("showCursorWhenSelecting",!1,Uo,!0),Ot("resetSelectionOnContextMenu",!0),Ot("lineWiseCopyCut",!0),Ot("pasteLinesPerSelection",!0),Ot("selectionsMayTouch",!1),Ot("readOnly",!1,function(Tt,Dt){Dt=="nocursor"&&(gh(Tt),Tt.display.input.blur()),Tt.display.input.readOnlyChanged(Dt)}),Ot("screenReaderLabel",null,function(Tt,Dt){Dt=Dt===""?null:Dt,Tt.display.input.screenReaderLabelChanged(Dt)}),Ot("disableInput",!1,function(Tt,Dt){Dt||Tt.display.input.reset()},!0),Ot("dragDrop",!0,hd),Ot("allowDropFileTypes",null),Ot("cursorBlinkRate",530),Ot("cursorScrollMargin",0),Ot("cursorHeight",1,Uo,!0),Ot("singleCursorHeightPerLine",!0,Uo,!0),Ot("workTime",100),Ot("workDelay",100),Ot("flattenSpans",!0,Kc,!0),Ot("addModeClass",!1,Kc,!0),Ot("pollInterval",100),Ot("undoDepth",200,function(Tt,Dt){return Tt.doc.history.undoDepth=Dt}),Ot("historyEventDelay",1250),Ot("viewportMargin",10,function(Tt){return Tt.refresh()},!0),Ot("maxHighlightLength",1e4,Kc,!0),Ot("moveInputWithCursor",!0,function(Tt,Dt){Dt||Tt.display.input.resetPosition()}),Ot("tabindex",null,function(Tt,Dt){return Tt.display.input.getField().tabIndex=Dt||""}),Ot("autofocus",null),Ot("direction","ltr",function(Tt,Dt){return Tt.doc.setDirection(Dt)},!0),Ot("phrases",null)}function hd(st,mt,Ot){var Tt=Ot&&Ot!=Gu;if(!mt!=!Tt){var Dt=st.display.dragFunctions,qt=mt?Ie:Je;qt(st.display.scroller,"dragstart",Dt.start),qt(st.display.scroller,"dragenter",Dt.enter),qt(st.display.scroller,"dragover",Dt.over),qt(st.display.scroller,"dragleave",Dt.leave),qt(st.display.scroller,"drop",Dt.drop)}}function om(st){st.options.lineWrapping?(Yt(st.display.wrapper,"CodeMirror-wrap"),st.display.sizer.style.minWidth="",st.display.sizerWidth=null):(_t(st.display.wrapper,"CodeMirror-wrap"),Qr(st)),gi(st),eo(st),nl(st),setTimeout(function(){return ku(st)},100)}function gr(st,mt){var Ot=this;if(!(this instanceof gr))return new gr(st,mt);this.options=mt=mt?ve(mt):{},ve(Lp,mt,!1);var Tt=mt.value;typeof Tt=="string"?Tt=new ys(Tt,mt.mode,null,mt.lineSeparator,mt.direction):mt.mode&&(Tt.modeOption=mt.mode),this.doc=Tt;var Dt=new gr.inputStyles[mt.inputStyle](this),qt=this.display=new Du(st,Tt,Dt,mt);qt.wrapper.CodeMirror=this,ud(this),mt.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),np(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new re,keySeq:null,specialChars:null},mt.autofocus&&!z&&qt.input.focus(),Ct&&St<11&&setTimeout(function(){return Ot.display.input.reset(!0)},20),Sc(this),La(),Lu(this),this.curOp.forceUpdate=!0,Kf(this,Tt),mt.autofocus&&!z||this.hasFocus()?setTimeout(function(){Ot.hasFocus()&&!Ot.state.focused&&or(Ot)},20):gh(this);for(var ce in lf)lf.hasOwnProperty(ce)&&lf[ce](this,mt[ce],Gu);No(this),mt.finishInit&&mt.finishInit(this);for(var Ce=0;Ce<_h.length;++Ce)_h[Ce](this);Tu(this),pt&&mt.lineWrapping&&getComputedStyle(qt.lineDiv).textRendering=="optimizelegibility"&&(qt.lineDiv.style.textRendering="auto")}gr.defaults=Lp,gr.optionHandlers=lf;function Sc(st){var mt=st.display;Ie(mt.scroller,"mousedown",Ho(st,bl)),Ct&&St<11?Ie(mt.scroller,"dblclick",Ho(st,function(be){if(!nn(st,be)){var Fe=Bs(st,be);if(!(!Fe||ad(st,be)||Fs(st.display,be))){Dn(be);var Qe=st.findWordAt(Fe);Jf(st.doc,Qe.anchor,Qe.head)}}})):Ie(mt.scroller,"dblclick",function(be){return nn(st,be)||Dn(be)}),Ie(mt.scroller,"contextmenu",function(be){return ld(st,be)}),Ie(mt.input.getField(),"contextmenu",function(be){mt.scroller.contains(be.target)||ld(st,be)});var Ot,Tt={end:0};function Dt(){mt.activeTouch&&(Ot=setTimeout(function(){return mt.activeTouch=null},1e3),Tt=mt.activeTouch,Tt.end=+new Date)}function qt(be){if(be.touches.length!=1)return!1;var Fe=be.touches[0];return Fe.radiusX<=1&&Fe.radiusY<=1}function ce(be,Fe){if(Fe.left==null)return!0;var Qe=Fe.left-be.left,ze=Fe.top-be.top;return Qe*Qe+ze*ze>20*20}Ie(mt.scroller,"touchstart",function(be){if(!nn(st,be)&&!qt(be)&&!ad(st,be)){mt.input.ensurePolled(),clearTimeout(Ot);var Fe=+new Date;mt.activeTouch={start:Fe,moved:!1,prev:Fe-Tt.end<=300?Tt:null},be.touches.length==1&&(mt.activeTouch.left=be.touches[0].pageX,mt.activeTouch.top=be.touches[0].pageY)}}),Ie(mt.scroller,"touchmove",function(){mt.activeTouch&&(mt.activeTouch.moved=!0)}),Ie(mt.scroller,"touchend",function(be){var Fe=mt.activeTouch;if(Fe&&!Fs(mt,be)&&Fe.left!=null&&!Fe.moved&&new Date-Fe.start<300){var Qe=st.coordsChar(mt.activeTouch,"page"),ze;!Fe.prev||ce(Fe,Fe.prev)?ze=new kr(Qe,Qe):!Fe.prev.prev||ce(Fe,Fe.prev.prev)?ze=st.findWordAt(Qe):ze=new kr(on(Qe.line,0),Zn(st.doc,on(Qe.line+1,0))),st.setSelection(ze.anchor,ze.head),st.focus(),Dn(be)}Dt()}),Ie(mt.scroller,"touchcancel",Dt),Ie(mt.scroller,"scroll",function(){mt.scroller.clientHeight&&(vh(st,mt.scroller.scrollTop),ru(st,mt.scroller.scrollLeft,!0),Ze(st,"scroll",st))}),Ie(mt.scroller,"mousewheel",function(be){return rs(st,be)}),Ie(mt.scroller,"DOMMouseScroll",function(be){return rs(st,be)}),Ie(mt.wrapper,"scroll",function(){return mt.wrapper.scrollTop=mt.wrapper.scrollLeft=0}),mt.dragFunctions={enter:function(be){nn(st,be)||Ti(be)},over:function(be){nn(st,be)||(Qg(st,be),Ti(be))},start:function(be){return Zg(st,be)},drop:Ho(st,fp),leave:function(be){nn(st,be)||Jg(st)}};var Ce=mt.input.getField();Ie(Ce,"keyup",function(be){return Pp.call(st,be)}),Ie(Ce,"keydown",Ho(st,xp)),Ie(Ce,"keypress",Ho(st,xl)),Ie(Ce,"focus",function(be){return or(st,be)}),Ie(Ce,"blur",function(be){return gh(st,be)})}var _h=[];gr.defineInitHook=function(st){return _h.push(st)};function Wo(st,mt,Ot,Tt){var Dt=st.doc,qt;Ot==null&&(Ot="add"),Ot=="smart"&&(Dt.mode.indent?qt=Mi(st,mt).state:Ot="prev");var ce=st.options.tabSize,Ce=Bn(Dt,mt),be=Kt(Ce.text,null,ce);Ce.stateAfter&&(Ce.stateAfter=null);var Fe=Ce.text.match(/^\s*/)[0],Qe;if(!Tt&&!/\S/.test(Ce.text))Qe=0,Ot="not";else if(Ot=="smart"&&(Qe=Dt.mode.indent(qt,Ce.text.slice(Fe.length),Ce.text),Qe==ke||Qe>150)){if(!Tt)return;Ot="prev"}Ot=="prev"?mt>Dt.first?Qe=Kt(Bn(Dt,mt-1).text,null,ce):Qe=0:Ot=="add"?Qe=be+st.options.indentUnit:Ot=="subtract"?Qe=be-st.options.indentUnit:typeof Ot=="number"&&(Qe=be+Ot),Qe=Math.max(0,Qe);var ze="",ln=0;if(st.options.indentWithTabs)for(var an=Math.floor(Qe/ce);an;--an)ln+=ce,ze+=" ";if(lnce,be=Si(mt),Fe=null;if(Ce&&Tt.ranges.length>1)if($s&&$s.text.join(` + left: `+mt.left+"px; width: "+Math.max(2,mt.right-mt.left)+"px;");st.display.lineSpace.appendChild(qt),qt.scrollIntoView(Dt),st.display.lineSpace.removeChild(qt)}}}function oc(st,mt,Ot,Tt){Tt==null&&(Tt=0);var Dt;!st.options.lineWrapping&&mt==Ot&&(mt=mt.ch?on(mt.line,mt.sticky=="before"?mt.ch-1:mt.ch,"after"):mt,Ot=mt.sticky=="before"?on(mt.line,mt.ch+1,"before"):mt);for(var qt=0;qt<5;qt++){var ce=!1,Ce=ho(st,mt),be=!Ot||Ot==mt?Ce:ho(st,Ot);Dt={left:Math.min(Ce.left,be.left),top:Math.min(Ce.top,be.top)-Tt,right:Math.max(Ce.left,be.left),bottom:Math.max(Ce.bottom,be.bottom)+Tt};var Fe=$d(st,Dt),Qe=st.doc.scrollTop,ze=st.doc.scrollLeft;if(Fe.scrollTop!=null&&(vh(st,Fe.scrollTop),Math.abs(st.doc.scrollTop-Qe)>1&&(ce=!0)),Fe.scrollLeft!=null&&(ru(st,Fe.scrollLeft),Math.abs(st.doc.scrollLeft-ze)>1&&(ce=!0)),!ce)break}return Dt}function Wc(st,mt){var Ot=$d(st,mt);Ot.scrollTop!=null&&vh(st,Ot.scrollTop),Ot.scrollLeft!=null&&ru(st,Ot.scrollLeft)}function $d(st,mt){var Ot=st.display,Tt=nu(st.display);mt.top<0&&(mt.top=0);var Dt=st.curOp&&st.curOp.scrollTop!=null?st.curOp.scrollTop:Ot.scroller.scrollTop,qt=yn(st),ce={};mt.bottom-mt.top>qt&&(mt.bottom=mt.top+qt);var Ce=st.doc.height+ml(Ot),be=mt.topCe-Tt;if(mt.topDt+qt){var Qe=Math.min(mt.top,(Fe?Ce:mt.bottom)-qt);Qe!=Dt&&(ce.scrollTop=Qe)}var ze=st.options.fixedGutter?0:Ot.gutters.offsetWidth,ln=st.curOp&&st.curOp.scrollLeft!=null?st.curOp.scrollLeft:Ot.scroller.scrollLeft-ze,an=Ea(st)-Ot.gutters.offsetWidth,kn=mt.right-mt.left>an;return kn&&(mt.right=mt.left+an),mt.left<10?ce.scrollLeft=0:mt.leftan+ln-3&&(ce.scrollLeft=mt.right+(kn?0:10)-an),ce}function Gf(st,mt){mt!=null&&(Nl(st),st.curOp.scrollTop=(st.curOp.scrollTop==null?st.doc.scrollTop:st.curOp.scrollTop)+mt)}function iu(st){Nl(st);var mt=st.getCursor();st.curOp.scrollToPos={from:mt,to:mt,margin:st.options.cursorScrollMargin}}function mh(st,mt,Ot){(mt!=null||Ot!=null)&&Nl(st),mt!=null&&(st.curOp.scrollLeft=mt),Ot!=null&&(st.curOp.scrollTop=Ot)}function sr(st,mt){Nl(st),st.curOp.scrollToPos=mt}function Nl(st){var mt=st.curOp.scrollToPos;if(mt){st.curOp.scrollToPos=null;var Ot=Ff(st,mt.from),Tt=Ff(st,mt.to);Uf(st,Ot,Tt,mt.margin)}}function Uf(st,mt,Ot,Tt){var Dt=$d(st,{left:Math.min(mt.left,Ot.left),top:Math.min(mt.top,Ot.top)-Tt,right:Math.max(mt.right,Ot.right),bottom:Math.max(mt.bottom,Ot.bottom)+Tt});mh(st,Dt.scrollLeft,Dt.scrollTop)}function vh(st,mt){Math.abs(st.doc.scrollTop-mt)<2||(Ft||Ou(st,{top:mt}),tp(st,mt,!0),Ft&&Ou(st),sc(st,100))}function tp(st,mt,Ot){mt=Math.max(0,Math.min(st.display.scroller.scrollHeight-st.display.scroller.clientHeight,mt)),!(st.display.scroller.scrollTop==mt&&!Ot)&&(st.doc.scrollTop=mt,st.display.scrollbars.setScrollTop(mt),st.display.scroller.scrollTop!=mt&&(st.display.scroller.scrollTop=mt))}function ru(st,mt,Ot,Tt){mt=Math.max(0,Math.min(mt,st.display.scroller.scrollWidth-st.display.scroller.clientWidth)),!((Ot?mt==st.doc.scrollLeft:Math.abs(st.doc.scrollLeft-mt)<2)&&!Tt)&&(st.doc.scrollLeft=mt,Vf(st),st.display.scroller.scrollLeft!=mt&&(st.display.scroller.scrollLeft=mt),st.display.scrollbars.setScrollLeft(mt))}function za(st){var mt=st.display,Ot=mt.gutters.offsetWidth,Tt=Math.round(st.doc.height+ml(st.display));return{clientHeight:mt.scroller.clientHeight,viewHeight:mt.wrapper.clientHeight,scrollWidth:mt.scroller.scrollWidth,clientWidth:mt.scroller.clientWidth,viewWidth:mt.wrapper.clientWidth,barLeft:st.options.fixedGutter?Ot:0,docHeight:Tt,scrollHeight:Tt+As(st)+mt.barHeight,nativeBarWidth:mt.nativeBarWidth,gutterWidth:Ot}}var Mu=function(st,mt,Ot){this.cm=Ot;var Tt=this.vert=Lt("div",[Lt("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Dt=this.horiz=Lt("div",[Lt("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");Tt.tabIndex=Dt.tabIndex=-1,st(Tt),st(Dt),Ie(Tt,"scroll",function(){Tt.clientHeight&&mt(Tt.scrollTop,"vertical")}),Ie(Dt,"scroll",function(){Dt.clientWidth&&mt(Dt.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Ct&&St<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Mu.prototype.update=function(st){var mt=st.scrollWidth>st.clientWidth+1,Ot=st.scrollHeight>st.clientHeight+1,Tt=st.nativeBarWidth;if(Ot){this.vert.style.display="block",this.vert.style.bottom=mt?Tt+"px":"0";var Dt=st.viewHeight-(mt?Tt:0);this.vert.firstChild.style.height=Math.max(0,st.scrollHeight-st.clientHeight+Dt)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(mt){this.horiz.style.display="block",this.horiz.style.right=Ot?Tt+"px":"0",this.horiz.style.left=st.barLeft+"px";var qt=st.viewWidth-st.barLeft-(Ot?Tt:0);this.horiz.firstChild.style.width=Math.max(0,st.scrollWidth-st.clientWidth+qt)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&st.clientHeight>0&&(Tt==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:Ot?Tt:0,bottom:mt?Tt:0}},Mu.prototype.setScrollLeft=function(st){this.horiz.scrollLeft!=st&&(this.horiz.scrollLeft=st),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Mu.prototype.setScrollTop=function(st){this.vert.scrollTop!=st&&(this.vert.scrollTop=st),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Mu.prototype.zeroWidthHack=function(){var st=ot&&!ft?"12px":"18px";this.horiz.style.height=this.vert.style.width=st,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new re,this.disableVert=new re},Mu.prototype.enableZeroWidthBar=function(st,mt,Ot){st.style.pointerEvents="auto";function Tt(){var Dt=st.getBoundingClientRect(),qt=Ot=="vert"?document.elementFromPoint(Dt.right-1,(Dt.top+Dt.bottom)/2):document.elementFromPoint((Dt.right+Dt.left)/2,Dt.bottom-1);qt!=st?st.style.pointerEvents="none":mt.set(1e3,Tt)}mt.set(1e3,Tt)},Mu.prototype.clear=function(){var st=this.horiz.parentNode;st.removeChild(this.horiz),st.removeChild(this.vert)};var Sl=function(){};Sl.prototype.update=function(){return{bottom:0,right:0}},Sl.prototype.setScrollLeft=function(){},Sl.prototype.setScrollTop=function(){},Sl.prototype.clear=function(){};function ku(st,mt){mt||(mt=za(st));var Ot=st.display.barWidth,Tt=st.display.barHeight;Hf(st,mt);for(var Dt=0;Dt<4&&Ot!=st.display.barWidth||Tt!=st.display.barHeight;Dt++)Ot!=st.display.barWidth&&st.options.lineWrapping&&fi(st),Hf(st,za(st)),Ot=st.display.barWidth,Tt=st.display.barHeight}function Hf(st,mt){var Ot=st.display,Tt=Ot.scrollbars.update(mt);Ot.sizer.style.paddingRight=(Ot.barWidth=Tt.right)+"px",Ot.sizer.style.paddingBottom=(Ot.barHeight=Tt.bottom)+"px",Ot.heightForcer.style.borderBottom=Tt.bottom+"px solid transparent",Tt.right&&Tt.bottom?(Ot.scrollbarFiller.style.display="block",Ot.scrollbarFiller.style.height=Tt.bottom+"px",Ot.scrollbarFiller.style.width=Tt.right+"px"):Ot.scrollbarFiller.style.display="",Tt.bottom&&st.options.coverGutterNextToScrollbar&&st.options.fixedGutter?(Ot.gutterFiller.style.display="block",Ot.gutterFiller.style.height=Tt.bottom+"px",Ot.gutterFiller.style.width=mt.gutterWidth+"px"):Ot.gutterFiller.style.display=""}var ep={native:Mu,null:Sl};function np(st){st.display.scrollbars&&(st.display.scrollbars.clear(),st.display.scrollbars.addClass&&_t(st.display.wrapper,st.display.scrollbars.addClass)),st.display.scrollbars=new ep[st.options.scrollbarStyle](function(mt){st.display.wrapper.insertBefore(mt,st.display.scrollbarFiller),Ie(mt,"mousedown",function(){st.state.focused&&setTimeout(function(){return st.display.input.focus()},0)}),mt.setAttribute("cm-not-content","true")},function(mt,Ot){Ot=="horizontal"?ru(st,mt):vh(st,mt)},st),st.display.scrollbars.addClass&&Vt(st.display.wrapper,st.display.scrollbars.addClass)}var Fg=0;function Lu(st){st.curOp={cm:st,viewChanged:!1,startHeight:st.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Fg},Eu(st.curOp)}function Tu(st){var mt=st.curOp;mt&&ch(mt,function(Ot){for(var Tt=0;Tt=Ot.viewTo)||Ot.maxLineChanged&&mt.options.lineWrapping,st.update=st.mustUpdate&&new yh(mt,st.mustUpdate&&{top:st.scrollTop,ensure:st.scrollToPos},st.forceUpdate)}function $0(st){st.updatedDisplay=st.mustUpdate&&Wf(st.cm,st.update)}function Bg(st){var mt=st.cm,Ot=mt.display;st.updatedDisplay&&fi(mt),st.barMeasure=za(mt),Ot.maxLineChanged&&!mt.options.lineWrapping&&(st.adjustWidthTo=rr(mt,Ot.maxLine,Ot.maxLine.text.length).left+3,mt.display.sizerWidth=st.adjustWidthTo,st.barMeasure.scrollWidth=Math.max(Ot.scroller.clientWidth,Ot.sizer.offsetLeft+st.adjustWidthTo+As(mt)+mt.display.barWidth),st.maxScrollLeft=Math.max(0,Ot.sizer.offsetLeft+st.adjustWidthTo-Ea(mt))),(st.updatedDisplay||st.selectionChanged)&&(st.preparedSelection=Ot.input.prepareSelection())}function yo(st){var mt=st.cm;st.adjustWidthTo!=null&&(mt.display.sizer.style.minWidth=st.adjustWidthTo+"px",st.maxScrollLeft=st.display.viewTo)){var Ot=+new Date+st.options.workTime,Tt=Mi(st,mt.highlightFrontier),Dt=[];mt.iter(Tt.line,Math.min(mt.first+mt.size,st.display.viewTo+500),function(qt){if(Tt.line>=st.display.viewFrom){var ce=qt.styles,Ce=qt.text.length>st.options.maxHighlightLength?zn(mt.mode,Tt.state):null,be=er(st,qt,Tt,!0);Ce&&(Tt.state=Ce),qt.styles=be.styles;var Fe=qt.styleClasses,Qe=be.classes;Qe?qt.styleClasses=Qe:Fe&&(qt.styleClasses=null);for(var ze=!ce||ce.length!=qt.styles.length||Fe!=Qe&&(!Fe||!Qe||Fe.bgClass!=Qe.bgClass||Fe.textClass!=Qe.textClass),ln=0;!ze&&lnOt)return sc(st,st.options.workDelay),!0}),mt.highlightFrontier=Tt.line,mt.modeFrontier=Math.max(mt.modeFrontier,Tt.line),Dt.length&&Sr(st,function(){for(var qt=0;qt=Ot.viewFrom&&mt.visible.to<=Ot.viewTo&&(Ot.updateLineNumbers==null||Ot.updateLineNumbers>=Ot.viewTo)&&Ot.renderedView==Ot.view&&ua(st)==0)return!1;No(st)&&(Mo(st),mt.dims=zf(st));var Dt=Tt.first+Tt.size,qt=Math.max(mt.visible.from-st.options.viewportMargin,Tt.first),ce=Math.min(Dt,mt.visible.to+st.options.viewportMargin);Ot.viewFromce&&Ot.viewTo-ce<20&&(ce=Math.min(Dt,Ot.viewTo)),vn&&(qt=vi(st.doc,qt),ce=qn(st.doc,ce));var Ce=qt!=Ot.viewFrom||ce!=Ot.viewTo||Ot.lastWrapHeight!=mt.wrapperHeight||Ot.lastWrapWidth!=mt.wrapperWidth;Dr(st,qt,ce),Ot.viewOffset=zi(Bn(st.doc,Ot.viewFrom)),st.display.mover.style.top=Ot.viewOffset+"px";var be=ua(st);if(!Ce&&be==0&&!mt.force&&Ot.renderedView==Ot.view&&(Ot.updateLineNumbers==null||Ot.updateLineNumbers>=Ot.viewTo))return!1;var Fe=zg(st);return be>4&&(Ot.lineDiv.style.display="none"),ip(st,Ot.updateLineNumbers,mt.dims),be>4&&(Ot.lineDiv.style.display=""),Ot.renderedView=Ot.view,Js(Fe),Mt(Ot.cursorDiv),Mt(Ot.selectionDiv),Ot.gutters.style.height=Ot.sizer.style.minHeight=0,Ce&&(Ot.lastWrapHeight=mt.wrapperHeight,Ot.lastWrapWidth=mt.wrapperWidth,sc(st,400)),Ot.updateLineNumbers=null,!0}function Mr(st,mt){for(var Ot=mt.viewport,Tt=!0;;Tt=!1){if(!Tt||!st.options.lineWrapping||mt.oldDisplayWidth==Ea(st)){if(Ot&&Ot.top!=null&&(Ot={top:Math.min(st.doc.height+ml(st.display)-yn(st),Ot.top)}),mt.visible=$i(st.display,st.doc,Ot),mt.visible.from>=st.display.viewFrom&&mt.visible.to<=st.display.viewTo)break}else Tt&&(mt.visible=$i(st.display,st.doc,Ot));if(!Wf(st,mt))break;fi(st);var Dt=za(st);Uo(st),ku(st,Dt),Nu(st,Dt),mt.force=!1}mt.signal(st,"update",st),(st.display.viewFrom!=st.display.reportedViewFrom||st.display.viewTo!=st.display.reportedViewTo)&&(mt.signal(st,"viewportChange",st,st.display.viewFrom,st.display.viewTo),st.display.reportedViewFrom=st.display.viewFrom,st.display.reportedViewTo=st.display.viewTo)}function Ou(st,mt){var Ot=new yh(st,mt);if(Wf(st,Ot)){fi(st),Mr(st,Ot);var Tt=za(st);Uo(st),ku(st,Tt),Nu(st,Tt),Ot.finish()}}function ip(st,mt,Ot){var Tt=st.display,Dt=st.options.lineNumbers,qt=Tt.lineDiv,ce=qt.firstChild;function Ce(kn){var Tn=kn.nextSibling;return pt&&ot&&st.display.currentWheelTarget==kn?kn.style.display="none":kn.parentNode.removeChild(kn),Tn}for(var be=Tt.view,Fe=Tt.viewFrom,Qe=0;Qe-1&&(an=!1),ic(st,ze,Fe,Ot)),an&&(Mt(ze.lineNumber),ze.lineNumber.appendChild(document.createTextNode(pr(st.options,Fe)))),ce=ze.node.nextSibling}Fe+=ze.size}for(;ce;)ce=Ce(ce)}function ju(st){var mt=st.gutters.offsetWidth;st.sizer.style.marginLeft=mt+"px"}function Nu(st,mt){st.display.sizer.style.minHeight=mt.docHeight+"px",st.display.heightForcer.style.top=mt.docHeight+"px",st.display.gutters.style.height=mt.docHeight+st.display.barHeight+As(st)+"px"}function Vf(st){var mt=st.display,Ot=mt.view;if(!(!mt.alignWidgets&&(!mt.gutters.firstChild||!st.options.fixedGutter))){for(var Tt=Hc(mt)-mt.scroller.scrollLeft+st.doc.scrollLeft,Dt=mt.gutters.offsetWidth,qt=Tt+"px",ce=0;cece.clientWidth,be=ce.scrollHeight>ce.clientHeight;if(Tt&&Ce||Dt&&be){if(Dt&&ot&&pt){t:for(var Fe=mt.target,Qe=qt.view;Fe!=ce;Fe=Fe.parentNode)for(var ze=0;ze=0&&Cn(st,Tt.to())<=0)return Ot}return-1};var kr=function(st,mt){this.anchor=st,this.head=mt};kr.prototype.from=function(){return oi(this.anchor,this.head)},kr.prototype.to=function(){return Wi(this.anchor,this.head)},kr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function rl(st,mt,Ot){var Tt=st&&st.options.selectionsMayTouch,Dt=mt[Ot];mt.sort(function(ln,an){return Cn(ln.from(),an.from())}),Ot=we(mt,Dt);for(var qt=1;qt0:be>=0){var Fe=oi(Ce.from(),ce.from()),Qe=Wi(Ce.to(),ce.to()),ze=Ce.empty()?ce.from()==ce.head:Ce.from()==Ce.head;qt<=Ot&&--Ot,mt.splice(--qt,2,new kr(ze?Qe:Fe,ze?Fe:Qe))}}return new Ga(mt,Ot)}function ou(st,mt){return new Ga([new kr(st,mt||st)],0)}function Iu(st){return st.text?on(st.from.line+st.text.length-1,Se(st.text).length+(st.text.length==1?st.from.ch:0)):st.to}function wh(st,mt){if(Cn(st,mt.from)<0)return st;if(Cn(st,mt.to)<=0)return Iu(mt);var Ot=st.line+mt.text.length-(mt.to.line-mt.from.line)-1,Tt=st.ch;return st.line==mt.to.line&&(Tt+=Iu(mt).ch-mt.to.ch),on(Ot,Tt)}function Vc(st,mt){for(var Ot=[],Tt=0;Tt1&&st.remove(Ce.line+1,kn-1),st.insert(Ce.line+1,Hn)}Yn(st,"change",st,mt)}function xl(st,mt,Ot){function Tt(Dt,qt,ce){if(Dt.linked)for(var Ce=0;Ce1&&!st.done[st.done.length-2].ranges)return st.done.pop(),Se(st.done)}function Qc(st,mt,Ot,Tt){var Dt=st.history;Dt.undone.length=0;var qt=+new Date,ce,Ce;if((Dt.lastOp==Tt||Dt.lastOrigin==mt.origin&&mt.origin&&(mt.origin.charAt(0)=="+"&&Dt.lastModTime>qt-(st.cm?st.cm.options.historyEventDelay:500)||mt.origin.charAt(0)=="*"))&&(ce=Zc(Dt,Dt.lastOp==Tt)))Ce=Se(ce.changes),Cn(mt.from,mt.to)==0&&Cn(mt.from,Ce.to)==0?Ce.to=Iu(mt):ce.changes.push(Xf(st,mt));else{var be=Se(Dt.done);for((!be||!be.ranges)&&hc(st.sel,Dt.done),ce={changes:[Xf(st,mt)],generation:Dt.generation},Dt.done.push(ce);Dt.done.length>Dt.undoDepth;)Dt.done.shift(),Dt.done[0].ranges||Dt.done.shift()}Dt.done.push(Ot),Dt.generation=++Dt.maxGeneration,Dt.lastModTime=Dt.lastSelTime=qt,Dt.lastOp=Dt.lastSelOp=Tt,Dt.lastOrigin=Dt.lastSelOrigin=mt.origin,Ce||Ze(st,"historyAdded")}function op(st,mt,Ot,Tt){var Dt=mt.charAt(0);return Dt=="*"||Dt=="+"&&Ot.ranges.length==Tt.ranges.length&&Ot.somethingSelected()==Tt.somethingSelected()&&new Date-st.history.lastSelTime<=(st.cm?st.cm.options.historyEventDelay:500)}function Jc(st,mt,Ot,Tt){var Dt=st.history,qt=Tt&&Tt.origin;Ot==Dt.lastSelOp||qt&&Dt.lastSelOrigin==qt&&(Dt.lastModTime==Dt.lastSelTime&&Dt.lastOrigin==qt||op(st,qt,Se(Dt.done),mt))?Dt.done[Dt.done.length-1]=mt:hc(mt,Dt.done),Dt.lastSelTime=+new Date,Dt.lastSelOrigin=qt,Dt.lastSelOp=Ot,Tt&&Tt.clearRedo!==!1&&uc(Dt.undone)}function hc(st,mt){var Ot=Se(mt);Ot&&Ot.ranges&&Ot.equals(st)||mt.push(st)}function Fu(st,mt,Ot,Tt){var Dt=mt["spans_"+st.id],qt=0;st.iter(Math.max(st.first,Ot),Math.min(st.first+st.size,Tt),function(ce){ce.markedSpans&&((Dt||(Dt=mt["spans_"+st.id]={}))[qt]=ce.markedSpans),++qt})}function zs(st){if(!st)return null;for(var mt,Ot=0;Ot-1&&(Se(Ce)[ze]=Fe[ze],delete Fe[ze])}}return Tt}function Qf(st,mt,Ot,Tt){if(Tt){var Dt=st.anchor;if(Ot){var qt=Cn(mt,Dt)<0;qt!=Cn(Ot,Dt)<0?(Dt=mt,mt=Ot):qt!=Cn(mt,Ot)<0&&(mt=Ot)}return new kr(Dt,mt)}else return new kr(Ot||mt,mt)}function Jf(st,mt,Ot,Tt,Dt){Dt==null&&(Dt=st.cm&&(st.cm.display.shift||st.extend)),ks(st,new Ga([Qf(st.sel.primary(),mt,Ot,Dt)],0),Tt)}function Gg(st,mt,Ot){for(var Tt=[],Dt=st.cm&&(st.cm.display.shift||st.extend),qt=0;qt=mt.ch:Ce.to>mt.ch))){if(Dt&&(Ze(be,"beforeCursorEnter"),be.explicitlyCleared))if(qt.markedSpans){--ce;continue}else break;if(!be.atomic)continue;if(Ot){var ze=be.find(Tt<0?1:-1),ln=void 0;if((Tt<0?Qe:Fe)&&(ze=ap(st,ze,-Tt,ze&&ze.line==mt.line?qt:null)),ze&&ze.line==mt.line&&(ln=Cn(ze,Ot))&&(Tt<0?ln<0:ln>0))return au(st,ze,mt,Tt,Dt)}var an=be.find(Tt<0?-1:1);return(Tt<0?Fe:Qe)&&(an=ap(st,an,Tt,an.line==mt.line?qt:null)),an?au(st,an,mt,Tt,Dt):null}}return mt}function tf(st,mt,Ot,Tt,Dt){var qt=Tt||1,ce=au(st,mt,Ot,qt,Dt)||!Dt&&au(st,mt,Ot,qt,!0)||au(st,mt,Ot,-qt,Dt)||!Dt&&au(st,mt,Ot,-qt,!0);return ce||(st.cantEdit=!0,on(st.first,0))}function ap(st,mt,Ot,Tt){return Ot<0&&mt.ch==0?mt.line>st.first?Zn(st,on(mt.line-1)):null:Ot>0&&mt.ch==(Tt||Bn(st,mt.line)).text.length?mt.line=0;--Dt)Ph(st,{from:Tt[Dt].from,to:Tt[Dt].to,text:Dt?[""]:mt.text,origin:mt.origin});else Ph(st,mt)}}function Ph(st,mt){if(!(mt.text.length==1&&mt.text[0]==""&&Cn(mt.from,mt.to)==0)){var Ot=Vc(st,mt);Qc(st,mt,Ot,st.cm?st.cm.curOp.id:NaN),cc(st,mt,Ot,Cr(st,mt));var Tt=[];xl(st,function(Dt,qt){!qt&&we(Tt,Dt.history)==-1&&(up(Dt.history,mt),Tt.push(Dt.history)),cc(Dt,mt,null,Cr(Dt,mt))})}}function nf(st,mt,Ot){var Tt=st.cm&&st.cm.state.suppressEdits;if(!(Tt&&!Ot)){for(var Dt=st.history,qt,ce=st.sel,Ce=mt=="undo"?Dt.done:Dt.undone,be=mt=="undo"?Dt.undone:Dt.done,Fe=0;Fe=0;--an){var kn=ln(an);if(kn)return kn.v}}}}function lp(st,mt){if(mt!=0&&(st.first+=mt,st.sel=new Ga(xe(st.sel.ranges,function(Dt){return new kr(on(Dt.anchor.line+mt,Dt.anchor.ch),on(Dt.head.line+mt,Dt.head.ch))}),st.sel.primIndex),st.cm)){eo(st.cm,st.first,st.first-mt,mt);for(var Ot=st.cm.display,Tt=Ot.viewFrom;Ttst.lastLine())){if(mt.from.lineqt&&(mt={from:mt.from,to:on(qt,Bn(st,qt).text.length),text:[mt.text[0]],origin:mt.origin}),mt.removed=Xi(st,mt.from,mt.to),Ot||(Ot=Vc(st,mt)),st.cm?Hg(st.cm,mt,Tt):Yf(st,mt,Tt),bh(st,Ot,ge),st.cantEdit&&tf(st,on(st.firstLine(),0))&&(st.cantEdit=!1)}}function Hg(st,mt,Ot){var Tt=st.doc,Dt=st.display,qt=mt.from,ce=mt.to,Ce=!1,be=qt.line;st.options.lineWrapping||(be=We(Er(Bn(Tt,qt.line))),Tt.iter(be,ce.line+1,function(an){if(an==Dt.maxLine)return Ce=!0,!0})),Tt.sel.contains(mt.from,mt.to)>-1&&fn(st),Yf(Tt,mt,Ot,to(st)),st.options.lineWrapping||(Tt.iter(be,qt.line+mt.text.length,function(an){var kn=jr(an);kn>Dt.maxLineLength&&(Dt.maxLine=an,Dt.maxLineLength=kn,Dt.maxLineChanged=!0,Ce=!1)}),Ce&&(st.curOp.updateMaxLine=!0)),Yi(Tt,qt.line),sc(st,400);var Fe=mt.text.length-(ce.line-qt.line)-1;mt.full?eo(st):qt.line==ce.line&&mt.text.length==1&&!rp(st.doc,mt)?Gi(st,qt.line,"text"):eo(st,qt.line,ce.line+1,Fe);var Qe=An(st,"changes"),ze=An(st,"change");if(ze||Qe){var ln={from:qt,to:ce,text:mt.text,removed:mt.removed,origin:mt.origin};ze&&Yn(st,"change",st,ln),Qe&&(st.curOp.changeObjs||(st.curOp.changeObjs=[])).push(ln)}st.display.selForContextMenu=null}function Ch(st,mt,Ot,Tt,Dt){var qt;Tt||(Tt=Ot),Cn(Tt,Ot)<0&&(qt=[Tt,Ot],Ot=qt[0],Tt=qt[1]),typeof mt=="string"&&(mt=st.splitLines(mt)),Ru(st,{from:Ot,to:Tt,text:mt,origin:Dt})}function Ua(st,mt,Ot,Tt){Ot1||!(this.children[0]instanceof fc))){var Ce=[];this.collapse(Ce),this.children=[new fc(Ce)],this.children[0].parent=this}},collapse:function(st){for(var mt=0;mt50){for(var ce=Dt.lines.length%25+25,Ce=ce;Ce10);st.parent.maybeSpill()}},iterN:function(st,mt,Ot){for(var Tt=0;Ttst.display.maxLineLength&&(st.display.maxLine=Fe,st.display.maxLineLength=Qe,st.display.maxLineChanged=!0)}Tt!=null&&st&&this.collapsed&&eo(st,Tt,Dt+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,st&&qc(st.doc)),st&&Yn(st,"markerCleared",st,this,Tt,Dt),mt&&Tu(st),this.parent&&this.parent.clear()}},Ye.prototype.find=function(st,mt){st==null&&this.type=="bookmark"&&(st=1);for(var Ot,Tt,Dt=0;Dt0||ce==0&&qt.clearWhenEmpty!==!1)return qt;if(qt.replacedWith&&(qt.collapsed=!0,qt.widgetNode=It("span",[qt.replacedWith],"CodeMirror-widget"),Tt.handleMouseEvents||qt.widgetNode.setAttribute("cm-ignore-events","true"),Tt.insertLeft&&(qt.widgetNode.insertLeft=!0)),qt.collapsed){if(nc(st,mt.line,mt,Ot,qt)||mt.line!=Ot.line&&nc(st,Ot.line,mt,Ot,qt))throw new Error("Inserting collapsed marker partially overlapping an existing one");gn()}qt.addToHistory&&Qc(st,{from:mt,to:Ot,origin:"markText"},st.sel,NaN);var Ce=mt.line,be=st.cm,Fe;if(st.iter(Ce,Ot.line+1,function(ze){be&&qt.collapsed&&!be.options.lineWrapping&&Er(ze)==be.display.maxLine&&(Fe=!0),qt.collapsed&&Ce!=mt.line&&ir(ze,0),Zo(ze,new qi(qt,Ce==mt.line?mt.ch:null,Ce==Ot.line?Ot.ch:null)),++Ce}),qt.collapsed&&st.iter(mt.line,Ot.line+1,function(ze){xn(st,ze)&&ir(ze,0)}),qt.clearOnEnter&&Ie(qt,"beforeCursorEnter",function(){return qt.clear()}),qt.readOnly&&(Qi(),(st.history.done.length||st.history.undone.length)&&st.clearHistory()),qt.collapsed&&(qt.id=++Yg,qt.atomic=!0),be){if(Fe&&(be.curOp.updateMaxLine=!0),qt.collapsed)eo(be,mt.line,Ot.line+1);else if(qt.className||qt.startStyle||qt.endStyle||qt.css||qt.attributes||qt.title)for(var Qe=mt.line;Qe<=Ot.line;Qe++)Gi(be,Qe,"text");qt.atomic&&qc(be.doc),Yn(be,"markerAdded",be,qt)}return qt}var Il=function(st,mt){this.markers=st,this.primary=mt;for(var Ot=0;Ot=0;be--)Ru(this,Tt[be]);Ce?qf(this,Ce):this.cm&&iu(this.cm)}),undo:ts(function(){nf(this,"undo")}),redo:ts(function(){nf(this,"redo")}),undoSelection:ts(function(){nf(this,"undo",!0)}),redoSelection:ts(function(){nf(this,"redo",!0)}),setExtending:function(st){this.extend=st},getExtending:function(){return this.extend},historySize:function(){for(var st=this.history,mt=0,Ot=0,Tt=0;Tt=st.ch)&&mt.push(Dt.marker.parent||Dt.marker)}return mt},findMarks:function(st,mt,Ot){st=Zn(this,st),mt=Zn(this,mt);var Tt=[],Dt=st.line;return this.iter(st.line,mt.line+1,function(qt){var ce=qt.markedSpans;if(ce)for(var Ce=0;Ce=be.to||be.from==null&&Dt!=st.line||be.from!=null&&Dt==mt.line&&be.from>=mt.ch)&&(!Ot||Ot(be.marker))&&Tt.push(be.marker.parent||be.marker)}++Dt}),Tt},getAllMarks:function(){var st=[];return this.iter(function(mt){var Ot=mt.markedSpans;if(Ot)for(var Tt=0;Ttst)return mt=st,!0;st-=qt,++Ot}),Zn(this,on(Ot,mt))},indexFromPos:function(st){st=Zn(this,st);var mt=st.ch;if(st.linemt&&(mt=st.from),st.to!=null&&st.to-1){mt.state.draggingText(st),setTimeout(function(){return mt.display.input.focus()},20);return}try{var Qe=st.dataTransfer.getData("Text");if(Qe){var ze;if(mt.state.draggingText&&!mt.state.draggingText.copy&&(ze=mt.listSelections()),bh(mt.doc,ou(Ot,Ot)),ze)for(var ln=0;ln=0;Ce--)Ch(st.doc,"",Tt[Ce].from,Tt[Ce].to,"+delete");iu(st)})}function yp(st,mt,Ot){var Tt=he(st.text,mt+Ot,Ot);return Tt<0||Tt>st.text.length?null:Tt}function To(st,mt,Ot){var Tt=yp(st,mt.ch,Ot);return Tt==null?null:new on(mt.line,Tt,Ot<0?"after":"before")}function af(st,mt,Ot,Tt,Dt){if(st){mt.doc.direction=="rtl"&&(Dt=-Dt);var qt=me(Ot,mt.doc.direction);if(qt){var ce=Dt<0?Se(qt):qt[0],Ce=Dt<0==(ce.level==1),be=Ce?"after":"before",Fe;if(ce.level>0||mt.doc.direction=="rtl"){var Qe=Ir(mt,Ot);Fe=Dt<0?Ot.text.length-1:0;var ze=Nr(mt,Qe,Fe).top;Fe=ye(function(ln){return Nr(mt,Qe,ln).top==ze},Dt<0==(ce.level==1)?ce.from:ce.to-1,Fe),be=="before"&&(Fe=yp(Ot,Fe,1))}else Fe=Dt<0?ce.to:ce.from;return new on(Tt,Fe,be)}}return new on(Tt,Dt<0?Ot.text.length:0,Dt<0?"before":"after")}function ed(st,mt,Ot,Tt){var Dt=me(mt,st.doc.direction);if(!Dt)return To(mt,Ot,Tt);Ot.ch>=mt.text.length?(Ot.ch=mt.text.length,Ot.sticky="before"):Ot.ch<=0&&(Ot.ch=0,Ot.sticky="after");var qt=Bt(Dt,Ot.ch,Ot.sticky),ce=Dt[qt];if(st.doc.direction=="ltr"&&ce.level%2==0&&(Tt>0?ce.to>Ot.ch:ce.from=ce.from&&ln>=Qe.begin)){var an=ze?"before":"after";return new on(Ot.line,ln,an)}}var kn=function(Hn,ni,Kn){for(var ui=function(no,Vo){return Vo?new on(Ot.line,Ce(no,1),"before"):new on(Ot.line,no,"after")};Hn>=0&&Hn0==(Ai.level!=1),Hi=Vn?Kn.begin:Ce(Kn.end,-1);if(Ai.from<=Hi&&Hi0?Qe.end:Ce(Qe.begin,-1);return In!=null&&!(Tt>0&&In==mt.text.length)&&(Tn=kn(Tt>0?0:Dt.length-1,Tt,Fe(In)),Tn)?Tn:null}var zu={selectAll:Lo,singleSelection:function(st){return st.setSelection(st.getCursor("anchor"),st.getCursor("head"),ge)},killLine:function(st){return fa(st,function(mt){if(mt.empty()){var Ot=Bn(st.doc,mt.head.line).text.length;return mt.head.ch==Ot&&mt.head.line0)Dt=new on(Dt.line,Dt.ch+1),st.replaceRange(qt.charAt(Dt.ch-1)+qt.charAt(Dt.ch-2),on(Dt.line,Dt.ch-2),Dt,"+transpose");else if(Dt.line>st.doc.first){var ce=Bn(st.doc,Dt.line-1).text;ce&&(Dt=new on(Dt.line,1),st.replaceRange(qt.charAt(0)+st.doc.lineSeparator()+ce.charAt(ce.length-1),on(Dt.line-1,ce.length-1),Dt,"+transpose"))}}Ot.push(new kr(Dt,Dt))}st.setSelections(Ot)})},newlineAndIndent:function(st){return Sr(st,function(){for(var mt=st.listSelections(),Ot=mt.length-1;Ot>=0;Ot--)st.replaceRange(st.doc.lineSeparator(),mt[Ot].anchor,mt[Ot].head,"+input");mt=st.listSelections();for(var Tt=0;Ttst&&Cn(mt,this.pos)==0&&Ot==this.button};var yc,Th;function Ep(st,mt){var Ot=+new Date;return Th&&Th.compare(Ot,st,mt)?(yc=Th=null,"triple"):yc&&yc.compare(Ot,st,mt)?(Th=new Cp(Ot,st,mt),yc=null,"double"):(yc=new Cp(Ot,st,mt),Th=null,"single")}function Pl(st){var mt=this,Ot=mt.display;if(!(nn(mt,st)||Ot.activeTouch&&Ot.input.supportsTouch())){if(Ot.input.ensurePolled(),Ot.shift=st.shiftKey,Fs(Ot,st)){pt||(Ot.scroller.draggable=!1,setTimeout(function(){return Ot.scroller.draggable=!0},100));return}if(!ad(mt,st)){var Tt=Bs(mt,st),Dt=ki(st),qt=Tt?Ep(Tt,Dt):"single";window.focus(),Dt==1&&mt.state.selectingText&&mt.state.selectingText(st),!(Tt&&Ap(mt,Dt,Tt,qt,st))&&(Dt==1?Tt?em(mt,Tt,qt,st):Oi(st)==Ot.scroller&&Dn(st):Dt==2?(Tt&&Jf(mt.doc,Tt),setTimeout(function(){return Ot.input.focus()},20)):Dt==3&&(Et?mt.display.input.onContextMenu(st):so(mt)))}}}function Ap(st,mt,Ot,Tt,Dt){var qt="Click";return Tt=="double"?qt="Double"+qt:Tt=="triple"&&(qt="Triple"+qt),qt=(mt==1?"Left":mt==2?"Middle":"Right")+qt,kh(st,vp(qt,Dt),Dt,function(ce){if(typeof ce=="string"&&(ce=zu[ce]),!ce)return!1;var Ce=!1;try{st.isReadOnly()&&(st.state.suppressEdits=!0),Ce=ce(st,Ot)!=Me}finally{st.state.suppressEdits=!1}return Ce})}function od(st,mt,Ot){var Tt=st.getOption("configureMouse"),Dt=Tt?Tt(st,mt,Ot):{};if(Dt.unit==null){var qt=it?Ot.shiftKey&&Ot.metaKey:Ot.altKey;Dt.unit=qt?"rectangle":mt=="single"?"char":mt=="double"?"word":"line"}return(Dt.extend==null||st.doc.extend)&&(Dt.extend=st.doc.extend||Ot.shiftKey),Dt.addNew==null&&(Dt.addNew=ot?Ot.metaKey:Ot.ctrlKey),Dt.moveOnDrag==null&&(Dt.moveOnDrag=!(ot?Ot.altKey:Ot.ctrlKey)),Dt}function em(st,mt,Ot,Tt){Ct?setTimeout(se(Hr,st),0):st.curOp.focus=Gt();var Dt=od(st,Ot,Tt),qt=st.doc.sel,ce;st.options.dragDrop&&pi&&!st.isReadOnly()&&Ot=="single"&&(ce=qt.contains(mt))>-1&&(Cn((ce=qt.ranges[ce]).from(),mt)<0||mt.xRel>0)&&(Cn(ce.to(),mt)>0||mt.xRel<0)?Mp(st,Tt,mt,Dt):nv(st,Tt,mt,Dt)}function Mp(st,mt,Ot,Tt){var Dt=st.display,qt=!1,ce=Ho(st,function(Fe){pt&&(Dt.scroller.draggable=!1),st.state.draggingText=!1,Je(Dt.wrapper.ownerDocument,"mouseup",ce),Je(Dt.wrapper.ownerDocument,"mousemove",Ce),Je(Dt.scroller,"dragstart",be),Je(Dt.scroller,"drop",ce),qt||(Dn(Fe),Tt.addNew||Jf(st.doc,Ot,null,null,Tt.extend),pt&&!dt||Ct&&St==9?setTimeout(function(){Dt.wrapper.ownerDocument.body.focus({preventScroll:!0}),Dt.input.focus()},20):Dt.input.focus())}),Ce=function(Fe){qt=qt||Math.abs(mt.clientX-Fe.clientX)+Math.abs(mt.clientY-Fe.clientY)>=10},be=function(){return qt=!0};pt&&(Dt.scroller.draggable=!0),st.state.draggingText=ce,ce.copy=!Tt.moveOnDrag,Dt.scroller.dragDrop&&Dt.scroller.dragDrop(),Ie(Dt.wrapper.ownerDocument,"mouseup",ce),Ie(Dt.wrapper.ownerDocument,"mousemove",Ce),Ie(Dt.scroller,"dragstart",be),Ie(Dt.scroller,"drop",ce),so(st),setTimeout(function(){return Dt.input.focus()},20)}function kp(st,mt,Ot){if(Ot=="char")return new kr(mt,mt);if(Ot=="word")return st.findWordAt(mt);if(Ot=="line")return new kr(on(mt.line,0),Zn(st.doc,on(mt.line+1,0)));var Tt=Ot(st,mt);return new kr(Tt.from,Tt.to)}function nv(st,mt,Ot,Tt){var Dt=st.display,qt=st.doc;Dn(mt);var ce,Ce,be=qt.sel,Fe=be.ranges;if(Tt.addNew&&!Tt.extend?(Ce=qt.sel.contains(Ot),Ce>-1?ce=Fe[Ce]:ce=new kr(Ot,Ot)):(ce=qt.sel.primary(),Ce=qt.sel.primIndex),Tt.unit=="rectangle")Tt.addNew||(ce=new kr(Ot,Ot)),Ot=Bs(st,mt,!0,!0),Ce=-1;else{var Qe=kp(st,Ot,Tt.unit);Tt.extend?ce=Qf(ce,Qe.anchor,Qe.head,Tt.extend):ce=Qe}Tt.addNew?Ce==-1?(Ce=Fe.length,ks(qt,rl(st,Fe.concat([ce]),Ce),{scroll:!1,origin:"*mouse"})):Fe.length>1&&Fe[Ce].empty()&&Tt.unit=="char"&&!Tt.extend?(ks(qt,rl(st,Fe.slice(0,Ce).concat(Fe.slice(Ce+1)),0),{scroll:!1,origin:"*mouse"}),be=qt.sel):Bu(qt,Ce,ce,fe):(Ce=0,ks(qt,new Ga([ce],0),fe),be=qt.sel);var ze=Ot;function ln(Kn){if(Cn(ze,Kn)!=0)if(ze=Kn,Tt.unit=="rectangle"){for(var ui=[],Ai=st.options.tabSize,Vn=Kt(Bn(qt,Ot.line).text,Ot.ch,Ai),Hi=Kt(Bn(qt,Kn.line).text,Kn.ch,Ai),no=Math.min(Vn,Hi),Vo=Math.max(Vn,Hi),fo=Math.min(Ot.line,Kn.line),ta=Math.min(st.lastLine(),Math.max(Ot.line,Kn.line));fo<=ta;fo++){var Ls=Bn(qt,fo).text,Ro=_e(Ls,no,Ai);no==Vo?ui.push(new kr(on(fo,Ro),on(fo,Ro))):Ls.length>Ro&&ui.push(new kr(on(fo,Ro),on(fo,_e(Ls,Vo,Ai))))}ui.length||ui.push(new kr(Ot,Ot)),ks(qt,rl(st,be.ranges.slice(0,Ce).concat(ui),Ce),{origin:"*mouse",scroll:!1}),st.scrollIntoView(Kn)}else{var da=ce,Ss=kp(st,Kn,Tt.unit),zo=da.anchor,vr;Cn(Ss.anchor,zo)>0?(vr=Ss.head,zo=oi(da.from(),Ss.anchor)):(vr=Ss.anchor,zo=Wi(da.to(),Ss.head));var So=be.ranges.slice(0);So[Ce]=nm(st,new kr(Zn(qt,zo),vr)),ks(qt,rl(st,So,Ce),fe)}}var an=Dt.wrapper.getBoundingClientRect(),kn=0;function Tn(Kn){var ui=++kn,Ai=Bs(st,Kn,!0,Tt.unit=="rectangle");if(Ai)if(Cn(Ai,ze)!=0){st.curOp.focus=Gt(),ln(Ai);var Vn=$i(Dt,qt);(Ai.line>=Vn.to||Ai.linean.bottom?20:0;Hi&&setTimeout(Ho(st,function(){kn==ui&&(Dt.scroller.scrollTop+=Hi,Tn(Kn))}),50)}}function In(Kn){st.state.selectingText=!1,kn=1/0,Kn&&(Dn(Kn),Dt.input.focus()),Je(Dt.wrapper.ownerDocument,"mousemove",Hn),Je(Dt.wrapper.ownerDocument,"mouseup",ni),qt.history.lastSelOrigin=null}var Hn=Ho(st,function(Kn){Kn.buttons===0||!ki(Kn)?In(Kn):Tn(Kn)}),ni=Ho(st,In);st.state.selectingText=ni,Ie(Dt.wrapper.ownerDocument,"mousemove",Hn),Ie(Dt.wrapper.ownerDocument,"mouseup",ni)}function nm(st,mt){var Ot=mt.anchor,Tt=mt.head,Dt=Bn(st.doc,Ot.line);if(Cn(Ot,Tt)==0&&Ot.sticky==Tt.sticky)return mt;var qt=me(Dt);if(!qt)return mt;var ce=Bt(qt,Ot.ch,Ot.sticky),Ce=qt[ce];if(Ce.from!=Ot.ch&&Ce.to!=Ot.ch)return mt;var be=ce+(Ce.from==Ot.ch==(Ce.level!=1)?0:1);if(be==0||be==qt.length)return mt;var Fe;if(Tt.line!=Ot.line)Fe=(Tt.line-Ot.line)*(st.doc.direction=="ltr"?1:-1)>0;else{var Qe=Bt(qt,Tt.ch,Tt.sticky),ze=Qe-ce||(Tt.ch-Ot.ch)*(Ce.level==1?-1:1);Qe==be-1||Qe==be?Fe=ze<0:Fe=ze>0}var ln=qt[be+(Fe?-1:0)],an=Fe==(ln.level==1),kn=an?ln.from:ln.to,Tn=an?"after":"before";return Ot.ch==kn&&Ot.sticky==Tn?mt:new kr(new on(Ot.line,kn,Tn),Tt)}function sd(st,mt,Ot,Tt){var Dt,qt;if(mt.touches)Dt=mt.touches[0].clientX,qt=mt.touches[0].clientY;else try{Dt=mt.clientX,qt=mt.clientY}catch(ln){return!1}if(Dt>=Math.floor(st.display.gutters.getBoundingClientRect().right))return!1;Tt&&Dn(mt);var ce=st.display,Ce=ce.lineDiv.getBoundingClientRect();if(qt>Ce.bottom||!An(st,Ot))return mi(mt);qt-=Ce.top-ce.viewOffset;for(var be=0;be=Dt){var Qe=Nn(st.doc,qt),ze=st.display.gutterSpecs[be];return Ze(st,Ot,st,Qe,ze.className,mt),mi(mt)}}}function ad(st,mt){return sd(st,mt,"gutterClick",!0)}function ld(st,mt){Fs(st.display,mt)||im(st,mt)||nn(st,mt,"contextmenu")||Et||st.display.input.onContextMenu(mt)}function im(st,mt){return An(st,"gutterContextMenu")?sd(st,mt,"gutterContextMenu",!1):!1}function ud(st){st.display.wrapper.className=st.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+st.options.theme.replace(/(^|\s)\s*/g," cm-s-"),nl(st)}var Gu={toString:function(){return"CodeMirror.Init"}},Lp={},lf={};function rm(st){var mt=st.optionHandlers;function Ot(Tt,Dt,qt,ce){st.defaults[Tt]=Dt,qt&&(mt[Tt]=ce?function(Ce,be,Fe){Fe!=Gu&&qt(Ce,be,Fe)}:qt)}st.defineOption=Ot,st.Init=Gu,Ot("value","",function(Tt,Dt){return Tt.setValue(Dt)},!0),Ot("mode",null,function(Tt,Dt){Tt.doc.modeOption=Dt,Ui(Tt)},!0),Ot("indentUnit",2,Ui,!0),Ot("indentWithTabs",!1),Ot("smartIndent",!0),Ot("tabSize",4,function(Tt){Kc(Tt),nl(Tt),eo(Tt)},!0),Ot("lineSeparator",null,function(Tt,Dt){if(Tt.doc.lineSep=Dt,!!Dt){var qt=[],ce=Tt.doc.first;Tt.doc.iter(function(be){for(var Fe=0;;){var Qe=be.text.indexOf(Dt,Fe);if(Qe==-1)break;Fe=Qe+Dt.length,qt.push(on(ce,Qe))}ce++});for(var Ce=qt.length-1;Ce>=0;Ce--)Ch(Tt.doc,Dt,qt[Ce],on(qt[Ce].line,qt[Ce].ch+Dt.length))}}),Ot("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(Tt,Dt,qt){Tt.state.specialChars=new RegExp(Dt.source+(Dt.test(" ")?"":"| "),"g"),qt!=Gu&&Tt.refresh()}),Ot("specialCharPlaceholder",Es,function(Tt){return Tt.refresh()},!0),Ot("electricChars",!0),Ot("inputStyle",z?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),Ot("spellcheck",!1,function(Tt,Dt){return Tt.getInputField().spellcheck=Dt},!0),Ot("autocorrect",!1,function(Tt,Dt){return Tt.getInputField().autocorrect=Dt},!0),Ot("autocapitalize",!1,function(Tt,Dt){return Tt.getInputField().autocapitalize=Dt},!0),Ot("rtlMoveVisually",!at),Ot("wholeLineUpdateBefore",!0),Ot("theme","default",function(Tt){ud(Tt),Ma(Tt)},!0),Ot("keyMap","default",function(Tt,Dt,qt){var ce=Mh(Dt),Ce=qt!=Gu&&Mh(qt);Ce&&Ce.detach&&Ce.detach(Tt,ce),ce.attach&&ce.attach(Tt,Ce||null)}),Ot("extraKeys",null),Ot("configureMouse",null),Ot("lineWrapping",!1,om,!0),Ot("gutters",[],function(Tt,Dt){Tt.display.gutterSpecs=ns(Dt,Tt.options.lineNumbers),Ma(Tt)},!0),Ot("fixedGutter",!0,function(Tt,Dt){Tt.display.gutters.style.left=Dt?Hc(Tt.display)+"px":"0",Tt.refresh()},!0),Ot("coverGutterNextToScrollbar",!1,function(Tt){return ku(Tt)},!0),Ot("scrollbarStyle","native",function(Tt){np(Tt),ku(Tt),Tt.display.scrollbars.setScrollTop(Tt.doc.scrollTop),Tt.display.scrollbars.setScrollLeft(Tt.doc.scrollLeft)},!0),Ot("lineNumbers",!1,function(Tt,Dt){Tt.display.gutterSpecs=ns(Tt.options.gutters,Dt),Ma(Tt)},!0),Ot("firstLineNumber",1,Ma,!0),Ot("lineNumberFormatter",function(Tt){return Tt},Ma,!0),Ot("showCursorWhenSelecting",!1,Uo,!0),Ot("resetSelectionOnContextMenu",!0),Ot("lineWiseCopyCut",!0),Ot("pasteLinesPerSelection",!0),Ot("selectionsMayTouch",!1),Ot("readOnly",!1,function(Tt,Dt){Dt=="nocursor"&&(gh(Tt),Tt.display.input.blur()),Tt.display.input.readOnlyChanged(Dt)}),Ot("screenReaderLabel",null,function(Tt,Dt){Dt=Dt===""?null:Dt,Tt.display.input.screenReaderLabelChanged(Dt)}),Ot("disableInput",!1,function(Tt,Dt){Dt||Tt.display.input.reset()},!0),Ot("dragDrop",!0,hd),Ot("allowDropFileTypes",null),Ot("cursorBlinkRate",530),Ot("cursorScrollMargin",0),Ot("cursorHeight",1,Uo,!0),Ot("singleCursorHeightPerLine",!0,Uo,!0),Ot("workTime",100),Ot("workDelay",100),Ot("flattenSpans",!0,Kc,!0),Ot("addModeClass",!1,Kc,!0),Ot("pollInterval",100),Ot("undoDepth",200,function(Tt,Dt){return Tt.doc.history.undoDepth=Dt}),Ot("historyEventDelay",1250),Ot("viewportMargin",10,function(Tt){return Tt.refresh()},!0),Ot("maxHighlightLength",1e4,Kc,!0),Ot("moveInputWithCursor",!0,function(Tt,Dt){Dt||Tt.display.input.resetPosition()}),Ot("tabindex",null,function(Tt,Dt){return Tt.display.input.getField().tabIndex=Dt||""}),Ot("autofocus",null),Ot("direction","ltr",function(Tt,Dt){return Tt.doc.setDirection(Dt)},!0),Ot("phrases",null)}function hd(st,mt,Ot){var Tt=Ot&&Ot!=Gu;if(!mt!=!Tt){var Dt=st.display.dragFunctions,qt=mt?Ie:Je;qt(st.display.scroller,"dragstart",Dt.start),qt(st.display.scroller,"dragenter",Dt.enter),qt(st.display.scroller,"dragover",Dt.over),qt(st.display.scroller,"dragleave",Dt.leave),qt(st.display.scroller,"drop",Dt.drop)}}function om(st){st.options.lineWrapping?(Vt(st.display.wrapper,"CodeMirror-wrap"),st.display.sizer.style.minWidth="",st.display.sizerWidth=null):(_t(st.display.wrapper,"CodeMirror-wrap"),Qr(st)),gi(st),eo(st),nl(st),setTimeout(function(){return ku(st)},100)}function gr(st,mt){var Ot=this;if(!(this instanceof gr))return new gr(st,mt);this.options=mt=mt?ve(mt):{},ve(Lp,mt,!1);var Tt=mt.value;typeof Tt=="string"?Tt=new ys(Tt,mt.mode,null,mt.lineSeparator,mt.direction):mt.mode&&(Tt.modeOption=mt.mode),this.doc=Tt;var Dt=new gr.inputStyles[mt.inputStyle](this),qt=this.display=new Du(st,Tt,Dt,mt);qt.wrapper.CodeMirror=this,ud(this),mt.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),np(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new re,keySeq:null,specialChars:null},mt.autofocus&&!z&&qt.input.focus(),Ct&&St<11&&setTimeout(function(){return Ot.display.input.reset(!0)},20),Sc(this),La(),Lu(this),this.curOp.forceUpdate=!0,Kf(this,Tt),mt.autofocus&&!z||this.hasFocus()?setTimeout(function(){Ot.hasFocus()&&!Ot.state.focused&&or(Ot)},20):gh(this);for(var ce in lf)lf.hasOwnProperty(ce)&&lf[ce](this,mt[ce],Gu);No(this),mt.finishInit&&mt.finishInit(this);for(var Ce=0;Ce<_h.length;++Ce)_h[Ce](this);Tu(this),pt&&mt.lineWrapping&&getComputedStyle(qt.lineDiv).textRendering=="optimizelegibility"&&(qt.lineDiv.style.textRendering="auto")}gr.defaults=Lp,gr.optionHandlers=lf;function Sc(st){var mt=st.display;Ie(mt.scroller,"mousedown",Ho(st,Pl)),Ct&&St<11?Ie(mt.scroller,"dblclick",Ho(st,function(be){if(!nn(st,be)){var Fe=Bs(st,be);if(!(!Fe||ad(st,be)||Fs(st.display,be))){Dn(be);var Qe=st.findWordAt(Fe);Jf(st.doc,Qe.anchor,Qe.head)}}})):Ie(mt.scroller,"dblclick",function(be){return nn(st,be)||Dn(be)}),Ie(mt.scroller,"contextmenu",function(be){return ld(st,be)}),Ie(mt.input.getField(),"contextmenu",function(be){mt.scroller.contains(be.target)||ld(st,be)});var Ot,Tt={end:0};function Dt(){mt.activeTouch&&(Ot=setTimeout(function(){return mt.activeTouch=null},1e3),Tt=mt.activeTouch,Tt.end=+new Date)}function qt(be){if(be.touches.length!=1)return!1;var Fe=be.touches[0];return Fe.radiusX<=1&&Fe.radiusY<=1}function ce(be,Fe){if(Fe.left==null)return!0;var Qe=Fe.left-be.left,ze=Fe.top-be.top;return Qe*Qe+ze*ze>20*20}Ie(mt.scroller,"touchstart",function(be){if(!nn(st,be)&&!qt(be)&&!ad(st,be)){mt.input.ensurePolled(),clearTimeout(Ot);var Fe=+new Date;mt.activeTouch={start:Fe,moved:!1,prev:Fe-Tt.end<=300?Tt:null},be.touches.length==1&&(mt.activeTouch.left=be.touches[0].pageX,mt.activeTouch.top=be.touches[0].pageY)}}),Ie(mt.scroller,"touchmove",function(){mt.activeTouch&&(mt.activeTouch.moved=!0)}),Ie(mt.scroller,"touchend",function(be){var Fe=mt.activeTouch;if(Fe&&!Fs(mt,be)&&Fe.left!=null&&!Fe.moved&&new Date-Fe.start<300){var Qe=st.coordsChar(mt.activeTouch,"page"),ze;!Fe.prev||ce(Fe,Fe.prev)?ze=new kr(Qe,Qe):!Fe.prev.prev||ce(Fe,Fe.prev.prev)?ze=st.findWordAt(Qe):ze=new kr(on(Qe.line,0),Zn(st.doc,on(Qe.line+1,0))),st.setSelection(ze.anchor,ze.head),st.focus(),Dn(be)}Dt()}),Ie(mt.scroller,"touchcancel",Dt),Ie(mt.scroller,"scroll",function(){mt.scroller.clientHeight&&(vh(st,mt.scroller.scrollTop),ru(st,mt.scroller.scrollLeft,!0),Ze(st,"scroll",st))}),Ie(mt.scroller,"mousewheel",function(be){return is(st,be)}),Ie(mt.scroller,"DOMMouseScroll",function(be){return is(st,be)}),Ie(mt.wrapper,"scroll",function(){return mt.wrapper.scrollTop=mt.wrapper.scrollLeft=0}),mt.dragFunctions={enter:function(be){nn(st,be)||Ti(be)},over:function(be){nn(st,be)||(Qg(st,be),Ti(be))},start:function(be){return Zg(st,be)},drop:Ho(st,fp),leave:function(be){nn(st,be)||Jg(st)}};var Ce=mt.input.getField();Ie(Ce,"keyup",function(be){return Pp.call(st,be)}),Ie(Ce,"keydown",Ho(st,xp)),Ie(Ce,"keypress",Ho(st,bl)),Ie(Ce,"focus",function(be){return or(st,be)}),Ie(Ce,"blur",function(be){return gh(st,be)})}var _h=[];gr.defineInitHook=function(st){return _h.push(st)};function Wo(st,mt,Ot,Tt){var Dt=st.doc,qt;Ot==null&&(Ot="add"),Ot=="smart"&&(Dt.mode.indent?qt=Mi(st,mt).state:Ot="prev");var ce=st.options.tabSize,Ce=Bn(Dt,mt),be=Kt(Ce.text,null,ce);Ce.stateAfter&&(Ce.stateAfter=null);var Fe=Ce.text.match(/^\s*/)[0],Qe;if(!Tt&&!/\S/.test(Ce.text))Qe=0,Ot="not";else if(Ot=="smart"&&(Qe=Dt.mode.indent(qt,Ce.text.slice(Fe.length),Ce.text),Qe==Me||Qe>150)){if(!Tt)return;Ot="prev"}Ot=="prev"?mt>Dt.first?Qe=Kt(Bn(Dt,mt-1).text,null,ce):Qe=0:Ot=="add"?Qe=be+st.options.indentUnit:Ot=="subtract"?Qe=be-st.options.indentUnit:typeof Ot=="number"&&(Qe=be+Ot),Qe=Math.max(0,Qe);var ze="",ln=0;if(st.options.indentWithTabs)for(var an=Math.floor(Qe/ce);an;--an)ln+=ce,ze+=" ";if(lnce,be=Si(mt),Fe=null;if(Ce&&Tt.ranges.length>1)if($s&&$s.text.join(` `)==mt){if(Tt.ranges.length%$s.text.length==0){Fe=[];for(var Qe=0;Qe<$s.text.length;Qe++)Fe.push(qt.splitLines($s.text[Qe]))}}else be.length==Tt.ranges.length&&st.options.pasteLinesPerSelection&&(Fe=xe(be,function(Hn){return[Hn]}));for(var ze=st.curOp.updateInput,ln=Tt.ranges.length-1;ln>=0;ln--){var an=Tt.ranges[ln],kn=an.from(),Tn=an.to();an.empty()&&(Ot&&Ot>0?kn=on(kn.line,kn.ch-Ot):st.state.overwrite&&!Ce?Tn=on(Tn.line,Math.min(Bn(qt,Tn.line).text.length,Tn.ch+Se(be).length)):Ce&&$s&&$s.lineWise&&$s.text.join(` `)==be.join(` -`)&&(kn=Tn=on(kn.line,0)));var In={from:kn,to:Tn,text:Fe?Fe[ln%Fe.length]:be,origin:Dt||(Ce?"paste":st.state.cutIncoming>ce?"cut":"+input")};Ru(st.doc,In),Yn(st,"inputRead",st,In)}mt&&!Ce&&_p(st,mt),iu(st),st.curOp.updateInput<2&&(st.curOp.updateInput=ze),st.curOp.typing=!0,st.state.pasteIncoming=st.state.cutIncoming=-1}function Tp(st,mt){var Ot=st.clipboardData&&st.clipboardData.getData("Text");if(Ot)return st.preventDefault(),!mt.isReadOnly()&&!mt.options.disableInput&&Sr(mt,function(){return uf(mt,Ot,0,null,"paste")}),!0}function _p(st,mt){if(!(!st.options.electricChars||!st.options.smartIndent))for(var Ot=st.doc.sel,Tt=Ot.ranges.length-1;Tt>=0;Tt--){var Dt=Ot.ranges[Tt];if(!(Dt.head.ch>100||Tt&&Ot.ranges[Tt-1].head.line==Dt.head.line)){var qt=st.getModeAt(Dt.head),ce=!1;if(qt.electricChars){for(var Ce=0;Ce-1){ce=Wo(st,Dt.head.line,"smart");break}}else qt.electricInput&&qt.electricInput.test(Bn(st.doc,Dt.head.line).text.slice(0,Dt.head.ch))&&(ce=Wo(st,Dt.head.line,"smart"));ce&&Yn(st,"electricInput",st,Dt.head.line)}}}function Op(st){for(var mt=[],Ot=[],Tt=0;Ttqt&&(Wo(this,Ce.head.line,Tt,!0),qt=Ce.head.line,ce==this.doc.sel.primIndex&&iu(this));else{var be=Ce.from(),Fe=Ce.to(),Qe=Math.max(qt,be.line);qt=Math.min(this.lastLine(),Fe.line-(Fe.ch?0:1))+1;for(var ze=Qe;ze0&&Bu(this.doc,ce,new kr(be,ln[ce].to()),me)}}}),getTokenAt:function(Tt,Dt){return ei(this,Tt,Dt)},getLineTokens:function(Tt,Dt){return ei(this,on(Tt),Dt,!0)},getTokenTypeAt:function(Tt){Tt=Zn(this.doc,Tt);var Dt=cr(this,Bn(this.doc,Tt.line)),qt=0,ce=(Dt.length-1)/2,Ce=Tt.ch,be;if(Ce==0)be=Dt[2];else for(;;){var Fe=qt+ce>>1;if((Fe?Dt[Fe*2-1]:0)>=Ce)ce=Fe;else if(Dt[Fe*2+1]be&&(Tt=be,ce=!0),Ce=Bn(this.doc,Tt)}else Ce=Tt;return Po(this,Ce,{top:0,left:0},Dt||"page",qt||ce).top+(ce?this.doc.height-zi(Ce):0)},defaultTextHeight:function(){return nu(this.display)},defaultCharWidth:function(){return ph(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(Tt,Dt,qt,ce,Ce){var be=this.display;Tt=ho(this,Zn(this.doc,Tt));var Fe=Tt.bottom,Qe=Tt.left;if(Dt.style.position="absolute",Dt.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Dt),be.sizer.appendChild(Dt),ce=="over")Fe=Tt.top;else if(ce=="above"||ce=="near"){var ze=Math.max(be.wrapper.clientHeight,this.doc.height),ln=Math.max(be.sizer.clientWidth,be.lineSpace.clientWidth);(ce=="above"||Tt.bottom+Dt.offsetHeight>ze)&&Tt.top>Dt.offsetHeight?Fe=Tt.top-Dt.offsetHeight:Tt.bottom+Dt.offsetHeight<=ze&&(Fe=Tt.bottom),Qe+Dt.offsetWidth>ln&&(Qe=ln-Dt.offsetWidth)}Dt.style.top=Fe+"px",Dt.style.left=Dt.style.right="",Ce=="right"?(Qe=be.sizer.clientWidth-Dt.offsetWidth,Dt.style.right="0px"):(Ce=="left"?Qe=0:Ce=="middle"&&(Qe=(be.sizer.clientWidth-Dt.offsetWidth)/2),Dt.style.left=Qe+"px"),qt&&Wc(this,{left:Qe,top:Fe,right:Qe+Dt.offsetWidth,bottom:Fe+Dt.offsetHeight})},triggerOnKeyDown:ts(xp),triggerOnKeyPress:ts(xl),triggerOnKeyUp:Pp,triggerOnMouseDown:ts(bl),execCommand:function(Tt){if(zu.hasOwnProperty(Tt))return zu[Tt].call(null,this)},triggerElectric:ts(function(Tt){_p(this,Tt)}),findPosH:function(Tt,Dt,qt,ce){var Ce=1;Dt<0&&(Ce=-1,Dt=-Dt);for(var be=Zn(this.doc,Tt),Fe=0;Fe0&&Qe(qt.charAt(ce-1));)--ce;for(;Ce.5||this.options.lineWrapping)&&gi(this),Ze(this,"refresh",this)}),swapDoc:ts(function(Tt){var Dt=this.doc;return Dt.cm=null,this.state.selectingText&&this.state.selectingText(),Kf(this,Tt),nl(this),this.display.input.reset(),mh(this,Tt.scrollLeft,Tt.scrollTop),this.curOp.forceScroll=!0,Yn(this,"swapDoc",this,Dt),Dt}),phrase:function(Tt){var Dt=this.options.phrases;return Dt&&Object.prototype.hasOwnProperty.call(Dt,Tt)?Dt[Tt]:Tt},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},En(st),st.registerHelper=function(Tt,Dt,qt){Ot.hasOwnProperty(Tt)||(Ot[Tt]=st[Tt]={_global:[]}),Ot[Tt][Dt]=qt},st.registerGlobalHelper=function(Tt,Dt,qt,ce){st.registerHelper(Tt,Dt,ce),Ot[Tt]._global.push({pred:qt,val:ce})}}function hf(st,mt,Ot,Tt,Dt){var qt=mt,ce=Ot,Ce=Bn(st,mt.line),be=Dt&&st.direction=="rtl"?-Ot:Ot;function Fe(){var ni=mt.line+be;return ni=st.first+st.size?!1:(mt=new on(ni,mt.ch,mt.sticky),Ce=Bn(st,ni))}function Qe(ni){var Kn;if(Tt=="codepoint"){var ui=Ce.text.charCodeAt(mt.ch+(Tt>0?0:-1));isNaN(ui)?Kn=null:Kn=new on(mt.line,Math.max(0,Math.min(Ce.text.length,mt.ch+Ot*(ui>=55296&&ui<56320?2:1))),-Ot)}else Dt?Kn=ed(st.cm,Ce,mt,Ot):Kn=To(Ce,mt,Ot);if(Kn==null)if(!ni&&Fe())mt=af(Dt,st.cm,Ce,mt.line,be);else return!1;else mt=Kn;return!0}if(Tt=="char"||Tt=="codepoint")Qe();else if(Tt=="column")Qe(!0);else if(Tt=="word"||Tt=="group")for(var ze=null,ln=Tt=="group",an=st.cm&&st.cm.getHelper(mt,"wordChars"),kn=!0;!(Ot<0&&!Qe(!kn));kn=!1){var Tn=Ce.text.charAt(mt.ch)||` +`)&&(kn=Tn=on(kn.line,0)));var In={from:kn,to:Tn,text:Fe?Fe[ln%Fe.length]:be,origin:Dt||(Ce?"paste":st.state.cutIncoming>ce?"cut":"+input")};Ru(st.doc,In),Yn(st,"inputRead",st,In)}mt&&!Ce&&_p(st,mt),iu(st),st.curOp.updateInput<2&&(st.curOp.updateInput=ze),st.curOp.typing=!0,st.state.pasteIncoming=st.state.cutIncoming=-1}function Tp(st,mt){var Ot=st.clipboardData&&st.clipboardData.getData("Text");if(Ot)return st.preventDefault(),!mt.isReadOnly()&&!mt.options.disableInput&&Sr(mt,function(){return uf(mt,Ot,0,null,"paste")}),!0}function _p(st,mt){if(!(!st.options.electricChars||!st.options.smartIndent))for(var Ot=st.doc.sel,Tt=Ot.ranges.length-1;Tt>=0;Tt--){var Dt=Ot.ranges[Tt];if(!(Dt.head.ch>100||Tt&&Ot.ranges[Tt-1].head.line==Dt.head.line)){var qt=st.getModeAt(Dt.head),ce=!1;if(qt.electricChars){for(var Ce=0;Ce-1){ce=Wo(st,Dt.head.line,"smart");break}}else qt.electricInput&&qt.electricInput.test(Bn(st.doc,Dt.head.line).text.slice(0,Dt.head.ch))&&(ce=Wo(st,Dt.head.line,"smart"));ce&&Yn(st,"electricInput",st,Dt.head.line)}}}function Op(st){for(var mt=[],Ot=[],Tt=0;Ttqt&&(Wo(this,Ce.head.line,Tt,!0),qt=Ce.head.line,ce==this.doc.sel.primIndex&&iu(this));else{var be=Ce.from(),Fe=Ce.to(),Qe=Math.max(qt,be.line);qt=Math.min(this.lastLine(),Fe.line-(Fe.ch?0:1))+1;for(var ze=Qe;ze0&&Bu(this.doc,ce,new kr(be,ln[ce].to()),ge)}}}),getTokenAt:function(Tt,Dt){return ei(this,Tt,Dt)},getLineTokens:function(Tt,Dt){return ei(this,on(Tt),Dt,!0)},getTokenTypeAt:function(Tt){Tt=Zn(this.doc,Tt);var Dt=cr(this,Bn(this.doc,Tt.line)),qt=0,ce=(Dt.length-1)/2,Ce=Tt.ch,be;if(Ce==0)be=Dt[2];else for(;;){var Fe=qt+ce>>1;if((Fe?Dt[Fe*2-1]:0)>=Ce)ce=Fe;else if(Dt[Fe*2+1]be&&(Tt=be,ce=!0),Ce=Bn(this.doc,Tt)}else Ce=Tt;return Po(this,Ce,{top:0,left:0},Dt||"page",qt||ce).top+(ce?this.doc.height-zi(Ce):0)},defaultTextHeight:function(){return nu(this.display)},defaultCharWidth:function(){return ph(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(Tt,Dt,qt,ce,Ce){var be=this.display;Tt=ho(this,Zn(this.doc,Tt));var Fe=Tt.bottom,Qe=Tt.left;if(Dt.style.position="absolute",Dt.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Dt),be.sizer.appendChild(Dt),ce=="over")Fe=Tt.top;else if(ce=="above"||ce=="near"){var ze=Math.max(be.wrapper.clientHeight,this.doc.height),ln=Math.max(be.sizer.clientWidth,be.lineSpace.clientWidth);(ce=="above"||Tt.bottom+Dt.offsetHeight>ze)&&Tt.top>Dt.offsetHeight?Fe=Tt.top-Dt.offsetHeight:Tt.bottom+Dt.offsetHeight<=ze&&(Fe=Tt.bottom),Qe+Dt.offsetWidth>ln&&(Qe=ln-Dt.offsetWidth)}Dt.style.top=Fe+"px",Dt.style.left=Dt.style.right="",Ce=="right"?(Qe=be.sizer.clientWidth-Dt.offsetWidth,Dt.style.right="0px"):(Ce=="left"?Qe=0:Ce=="middle"&&(Qe=(be.sizer.clientWidth-Dt.offsetWidth)/2),Dt.style.left=Qe+"px"),qt&&Wc(this,{left:Qe,top:Fe,right:Qe+Dt.offsetWidth,bottom:Fe+Dt.offsetHeight})},triggerOnKeyDown:$o(xp),triggerOnKeyPress:$o(bl),triggerOnKeyUp:Pp,triggerOnMouseDown:$o(Pl),execCommand:function(Tt){if(zu.hasOwnProperty(Tt))return zu[Tt].call(null,this)},triggerElectric:$o(function(Tt){_p(this,Tt)}),findPosH:function(Tt,Dt,qt,ce){var Ce=1;Dt<0&&(Ce=-1,Dt=-Dt);for(var be=Zn(this.doc,Tt),Fe=0;Fe0&&Qe(qt.charAt(ce-1));)--ce;for(;Ce.5||this.options.lineWrapping)&&gi(this),Ze(this,"refresh",this)}),swapDoc:$o(function(Tt){var Dt=this.doc;return Dt.cm=null,this.state.selectingText&&this.state.selectingText(),Kf(this,Tt),nl(this),this.display.input.reset(),mh(this,Tt.scrollLeft,Tt.scrollTop),this.curOp.forceScroll=!0,Yn(this,"swapDoc",this,Dt),Dt}),phrase:function(Tt){var Dt=this.options.phrases;return Dt&&Object.prototype.hasOwnProperty.call(Dt,Tt)?Dt[Tt]:Tt},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},En(st),st.registerHelper=function(Tt,Dt,qt){Ot.hasOwnProperty(Tt)||(Ot[Tt]=st[Tt]={_global:[]}),Ot[Tt][Dt]=qt},st.registerGlobalHelper=function(Tt,Dt,qt,ce){st.registerHelper(Tt,Dt,ce),Ot[Tt]._global.push({pred:qt,val:ce})}}function hf(st,mt,Ot,Tt,Dt){var qt=mt,ce=Ot,Ce=Bn(st,mt.line),be=Dt&&st.direction=="rtl"?-Ot:Ot;function Fe(){var ni=mt.line+be;return ni=st.first+st.size?!1:(mt=new on(ni,mt.ch,mt.sticky),Ce=Bn(st,ni))}function Qe(ni){var Kn;if(Tt=="codepoint"){var ui=Ce.text.charCodeAt(mt.ch+(Tt>0?0:-1));isNaN(ui)?Kn=null:Kn=new on(mt.line,Math.max(0,Math.min(Ce.text.length,mt.ch+Ot*(ui>=55296&&ui<56320?2:1))),-Ot)}else Dt?Kn=ed(st.cm,Ce,mt,Ot):Kn=To(Ce,mt,Ot);if(Kn==null)if(!ni&&Fe())mt=af(Dt,st.cm,Ce,mt.line,be);else return!1;else mt=Kn;return!0}if(Tt=="char"||Tt=="codepoint")Qe();else if(Tt=="column")Qe(!0);else if(Tt=="word"||Tt=="group")for(var ze=null,ln=Tt=="group",an=st.cm&&st.cm.getHelper(mt,"wordChars"),kn=!0;!(Ot<0&&!Qe(!kn));kn=!1){var Tn=Ce.text.charAt(mt.ch)||` `,In=Be(Tn,an)?"w":ln&&Tn==` -`?"n":!ln||/\s/.test(Tn)?null:"p";if(ln&&!kn&&!In&&(In="s"),ze&&ze!=In){Ot<0&&(Ot=1,Qe(),mt.sticky="after");break}if(In&&(ze=In),Ot>0&&!Qe(!kn))break}var Hn=tf(st,mt,qt,ce,!0);return xi(qt,Hn)&&(Hn.hitSide=!0),Hn}function Hu(st,mt,Ot,Tt){var Dt=st.doc,qt=mt.left,ce;if(Tt=="page"){var Ce=Math.min(st.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),be=Math.max(Ce-.5*nu(st.display),3);ce=(Ot>0?mt.bottom:mt.top)+Ot*be}else Tt=="line"&&(ce=Ot>0?mt.bottom+3:mt.top-3);for(var Fe;Fe=Rf(st,qt,ce),!!Fe.outside;){if(Ot<0?ce<=0:ce>=Dt.height){Fe.hitSide=!0;break}ce+=Ot*5}return Fe}var Fr=function(st){this.cm=st,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new re,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Fr.prototype.init=function(st){var mt=this,Ot=this,Tt=Ot.cm,Dt=Ot.div=st.lineDiv;jp(Dt,Tt.options.spellcheck,Tt.options.autocorrect,Tt.options.autocapitalize);function qt(Ce){for(var be=Ce.target;be;be=be.parentNode){if(be==Dt)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(be.className))break}return!1}Ie(Dt,"paste",function(Ce){!qt(Ce)||nn(Tt,Ce)||Tp(Ce,Tt)||St<=11&&setTimeout(Ho(Tt,function(){return mt.updateFromDOM()}),20)}),Ie(Dt,"compositionstart",function(Ce){mt.composing={data:Ce.data,done:!1}}),Ie(Dt,"compositionupdate",function(Ce){mt.composing||(mt.composing={data:Ce.data,done:!1})}),Ie(Dt,"compositionend",function(Ce){mt.composing&&(Ce.data!=mt.composing.data&&mt.readFromDOMSoon(),mt.composing.done=!0)}),Ie(Dt,"touchstart",function(){return Ot.forceCompositionEnd()}),Ie(Dt,"input",function(){mt.composing||mt.readFromDOMSoon()});function ce(Ce){if(!(!qt(Ce)||nn(Tt,Ce))){if(Tt.somethingSelected())Oh({lineWise:!1,text:Tt.getSelections()}),Ce.type=="cut"&&Tt.replaceSelection("",null,"cut");else if(Tt.options.lineWiseCopyCut){var be=Op(Tt);Oh({lineWise:!0,text:be.text}),Ce.type=="cut"&&Tt.operation(function(){Tt.setSelections(be.ranges,0,me),Tt.replaceSelection("",null,"cut")})}else return;if(Ce.clipboardData){Ce.clipboardData.clearData();var Fe=$s.text.join(` +`?"n":!ln||/\s/.test(Tn)?null:"p";if(ln&&!kn&&!In&&(In="s"),ze&&ze!=In){Ot<0&&(Ot=1,Qe(),mt.sticky="after");break}if(In&&(ze=In),Ot>0&&!Qe(!kn))break}var Hn=tf(st,mt,qt,ce,!0);return xi(qt,Hn)&&(Hn.hitSide=!0),Hn}function Hu(st,mt,Ot,Tt){var Dt=st.doc,qt=mt.left,ce;if(Tt=="page"){var Ce=Math.min(st.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),be=Math.max(Ce-.5*nu(st.display),3);ce=(Ot>0?mt.bottom:mt.top)+Ot*be}else Tt=="line"&&(ce=Ot>0?mt.bottom+3:mt.top-3);for(var Fe;Fe=Rf(st,qt,ce),!!Fe.outside;){if(Ot<0?ce<=0:ce>=Dt.height){Fe.hitSide=!0;break}ce+=Ot*5}return Fe}var Fr=function(st){this.cm=st,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new re,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Fr.prototype.init=function(st){var mt=this,Ot=this,Tt=Ot.cm,Dt=Ot.div=st.lineDiv;jp(Dt,Tt.options.spellcheck,Tt.options.autocorrect,Tt.options.autocapitalize);function qt(Ce){for(var be=Ce.target;be;be=be.parentNode){if(be==Dt)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(be.className))break}return!1}Ie(Dt,"paste",function(Ce){!qt(Ce)||nn(Tt,Ce)||Tp(Ce,Tt)||St<=11&&setTimeout(Ho(Tt,function(){return mt.updateFromDOM()}),20)}),Ie(Dt,"compositionstart",function(Ce){mt.composing={data:Ce.data,done:!1}}),Ie(Dt,"compositionupdate",function(Ce){mt.composing||(mt.composing={data:Ce.data,done:!1})}),Ie(Dt,"compositionend",function(Ce){mt.composing&&(Ce.data!=mt.composing.data&&mt.readFromDOMSoon(),mt.composing.done=!0)}),Ie(Dt,"touchstart",function(){return Ot.forceCompositionEnd()}),Ie(Dt,"input",function(){mt.composing||mt.readFromDOMSoon()});function ce(Ce){if(!(!qt(Ce)||nn(Tt,Ce))){if(Tt.somethingSelected())Oh({lineWise:!1,text:Tt.getSelections()}),Ce.type=="cut"&&Tt.replaceSelection("",null,"cut");else if(Tt.options.lineWiseCopyCut){var be=Op(Tt);Oh({lineWise:!0,text:be.text}),Ce.type=="cut"&&Tt.operation(function(){Tt.setSelections(be.ranges,0,ge),Tt.replaceSelection("",null,"cut")})}else return;if(Ce.clipboardData){Ce.clipboardData.clearData();var Fe=$s.text.join(` `);if(Ce.clipboardData.setData("Text",Fe),Ce.clipboardData.getData("Text")==Fe){Ce.preventDefault();return}}var Qe=Np(),ze=Qe.firstChild;Tt.display.lineSpace.insertBefore(Qe,Tt.display.lineSpace.firstChild),ze.value=$s.text.join(` -`);var ln=document.activeElement;ne(ze),setTimeout(function(){Tt.display.lineSpace.removeChild(Qe),ln.focus(),ln==Dt&&Ot.showPrimarySelection()},50)}}Ie(Dt,"copy",ce),Ie(Dt,"cut",ce)},Fr.prototype.screenReaderLabelChanged=function(st){st?this.div.setAttribute("aria-label",st):this.div.removeAttribute("aria-label")},Fr.prototype.prepareSelection=function(){var st=Au(this.cm,!1);return st.focus=document.activeElement==this.div,st},Fr.prototype.showSelection=function(st,mt){!st||!this.cm.display.view.length||((st.focus||mt)&&this.showPrimarySelection(),this.showMultipleSelections(st))},Fr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Fr.prototype.showPrimarySelection=function(){var st=this.getSelection(),mt=this.cm,Ot=mt.doc.sel.primary(),Tt=Ot.from(),Dt=Ot.to();if(mt.display.viewTo==mt.display.viewFrom||Tt.line>=mt.display.viewTo||Dt.line=mt.display.viewFrom&&cd(mt,Tt)||{node:Ce[0].measure.map[2],offset:0},Fe=Dt.linest.firstLine()&&(Tt=on(Tt.line-1,Bn(st.doc,Tt.line-1).length)),Dt.ch==Bn(st.doc,Dt.line).text.length&&Dt.linemt.viewTo-1)return!1;var qt,ce,Ce;Tt.line==mt.viewFrom||(qt=Aa(st,Tt.line))==0?(ce=We(mt.view[0].line),Ce=mt.view[0].node):(ce=We(mt.view[qt].line),Ce=mt.view[qt-1].node.nextSibling);var be=Aa(st,Dt.line),Fe,Qe;if(be==mt.view.length-1?(Fe=mt.viewTo-1,Qe=mt.lineDiv.lastChild):(Fe=We(mt.view[be+1].line)-1,Qe=mt.view[be+1].node.previousSibling),!Ce)return!1;for(var ze=st.doc.splitLines(xc(st,Ce,Qe,ce,Fe)),ln=Xi(st.doc,on(ce,0),on(Fe,Bn(st.doc,Fe).text.length));ze.length>1&&ln.length>1;)if(Se(ze)==Se(ln))ze.pop(),ln.pop(),Fe--;else if(ze[0]==ln[0])ze.shift(),ln.shift(),ce++;else break;for(var an=0,kn=0,Tn=ze[0],In=ln[0],Hn=Math.min(Tn.length,In.length);anTt.ch&&ni.charCodeAt(ni.length-kn-1)==Kn.charCodeAt(Kn.length-kn-1);)an--,kn++;ze[ze.length-1]=ni.slice(0,ni.length-kn).replace(/^\u200b+/,""),ze[0]=ze[0].slice(an).replace(/\u200b+$/,"");var Ai=on(ce,an),Vn=on(Fe,ln.length?Se(ln).length-kn:0);if(ze.length>1||ze[0]||Cn(Ai,Vn))return Ch(st.doc,ze,Ai,Vn,"+input"),!0},Fr.prototype.ensurePolled=function(){this.forceCompositionEnd()},Fr.prototype.reset=function(){this.forceCompositionEnd()},Fr.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Fr.prototype.readFromDOMSoon=function(){var st=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(st.readDOMTimeout=null,st.composing)if(st.composing.done)st.composing=null;else return;st.updateFromDOM()},80))},Fr.prototype.updateFromDOM=function(){var st=this;(this.cm.isReadOnly()||!this.pollContent())&&Sr(this.cm,function(){return eo(st.cm)})},Fr.prototype.setUneditable=function(st){st.contentEditable="false"},Fr.prototype.onKeyPress=function(st){st.charCode==0||this.composing||(st.preventDefault(),this.cm.isReadOnly()||Ho(this.cm,uf)(this.cm,String.fromCharCode(st.charCode==null?st.keyCode:st.charCode),0))},Fr.prototype.readOnlyChanged=function(st){this.div.contentEditable=String(st!="nocursor")},Fr.prototype.onContextMenu=function(){},Fr.prototype.resetPosition=function(){},Fr.prototype.needsContentAttribute=!0;function cd(st,mt){var Ot=ji(st,mt.line);if(!Ot||Ot.hidden)return null;var Tt=Bn(st.doc,mt.line),Dt=Ei(Ot,Tt,mt.line),qt=ge(Tt,st.doc.direction),ce="left";if(qt){var Ce=Bt(qt,mt.ch);ce=Ce%2?"right":"left"}var be=bo(Dt.map,mt.ch,ce);return be.offset=be.collapse=="right"?be.end:be.start,be}function Dp(st){for(var mt=st;mt;mt=mt.parentNode)if(/CodeMirror-gutter-wrapper/.test(mt.className))return!0;return!1}function wc(st,mt){return mt&&(st.bad=!0),st}function xc(st,mt,Ot,Tt,Dt){var qt="",ce=!1,Ce=st.doc.lineSeparator(),be=!1;function Fe(an){return function(kn){return kn.id==an}}function Qe(){ce&&(qt+=Ce,be&&(qt+=Ce),ce=be=!1)}function ze(an){an&&(Qe(),qt+=an)}function ln(an){if(an.nodeType==1){var kn=an.getAttribute("cm-text");if(kn){ze(kn);return}var Tn=an.getAttribute("cm-marker"),In;if(Tn){var Hn=st.findMarks(on(Tt,0),on(Dt+1,0),Fe(+Tn));Hn.length&&(In=Hn[0].find(0))&&ze(Xi(st.doc,In.from,In.to).join(Ce));return}if(an.getAttribute("contenteditable")=="false")return;var ni=/^(pre|div|p|li|table|br)$/i.test(an.nodeName);if(!/^br$/i.test(an.nodeName)&&an.textContent.length==0)return;ni&&Qe();for(var Kn=0;Kn=9&&mt.hasSelection&&(mt.hasSelection=null),Ot.poll()}),Ie(Dt,"paste",function(ce){nn(Tt,ce)||Tp(ce,Tt)||(Tt.state.pasteIncoming=+new Date,Ot.fastPoll())});function qt(ce){if(!nn(Tt,ce)){if(Tt.somethingSelected())Oh({lineWise:!1,text:Tt.getSelections()});else if(Tt.options.lineWiseCopyCut){var Ce=Op(Tt);Oh({lineWise:!0,text:Ce.text}),ce.type=="cut"?Tt.setSelections(Ce.ranges,null,me):(Ot.prevInput="",Dt.value=Ce.text.join(` +`);var ln=document.activeElement;ne(ze),setTimeout(function(){Tt.display.lineSpace.removeChild(Qe),ln.focus(),ln==Dt&&Ot.showPrimarySelection()},50)}}Ie(Dt,"copy",ce),Ie(Dt,"cut",ce)},Fr.prototype.screenReaderLabelChanged=function(st){st?this.div.setAttribute("aria-label",st):this.div.removeAttribute("aria-label")},Fr.prototype.prepareSelection=function(){var st=Au(this.cm,!1);return st.focus=document.activeElement==this.div,st},Fr.prototype.showSelection=function(st,mt){!st||!this.cm.display.view.length||((st.focus||mt)&&this.showPrimarySelection(),this.showMultipleSelections(st))},Fr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Fr.prototype.showPrimarySelection=function(){var st=this.getSelection(),mt=this.cm,Ot=mt.doc.sel.primary(),Tt=Ot.from(),Dt=Ot.to();if(mt.display.viewTo==mt.display.viewFrom||Tt.line>=mt.display.viewTo||Dt.line=mt.display.viewFrom&&cd(mt,Tt)||{node:Ce[0].measure.map[2],offset:0},Fe=Dt.linest.firstLine()&&(Tt=on(Tt.line-1,Bn(st.doc,Tt.line-1).length)),Dt.ch==Bn(st.doc,Dt.line).text.length&&Dt.linemt.viewTo-1)return!1;var qt,ce,Ce;Tt.line==mt.viewFrom||(qt=Aa(st,Tt.line))==0?(ce=We(mt.view[0].line),Ce=mt.view[0].node):(ce=We(mt.view[qt].line),Ce=mt.view[qt-1].node.nextSibling);var be=Aa(st,Dt.line),Fe,Qe;if(be==mt.view.length-1?(Fe=mt.viewTo-1,Qe=mt.lineDiv.lastChild):(Fe=We(mt.view[be+1].line)-1,Qe=mt.view[be+1].node.previousSibling),!Ce)return!1;for(var ze=st.doc.splitLines(xc(st,Ce,Qe,ce,Fe)),ln=Xi(st.doc,on(ce,0),on(Fe,Bn(st.doc,Fe).text.length));ze.length>1&&ln.length>1;)if(Se(ze)==Se(ln))ze.pop(),ln.pop(),Fe--;else if(ze[0]==ln[0])ze.shift(),ln.shift(),ce++;else break;for(var an=0,kn=0,Tn=ze[0],In=ln[0],Hn=Math.min(Tn.length,In.length);anTt.ch&&ni.charCodeAt(ni.length-kn-1)==Kn.charCodeAt(Kn.length-kn-1);)an--,kn++;ze[ze.length-1]=ni.slice(0,ni.length-kn).replace(/^\u200b+/,""),ze[0]=ze[0].slice(an).replace(/\u200b+$/,"");var Ai=on(ce,an),Vn=on(Fe,ln.length?Se(ln).length-kn:0);if(ze.length>1||ze[0]||Cn(Ai,Vn))return Ch(st.doc,ze,Ai,Vn,"+input"),!0},Fr.prototype.ensurePolled=function(){this.forceCompositionEnd()},Fr.prototype.reset=function(){this.forceCompositionEnd()},Fr.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Fr.prototype.readFromDOMSoon=function(){var st=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(st.readDOMTimeout=null,st.composing)if(st.composing.done)st.composing=null;else return;st.updateFromDOM()},80))},Fr.prototype.updateFromDOM=function(){var st=this;(this.cm.isReadOnly()||!this.pollContent())&&Sr(this.cm,function(){return eo(st.cm)})},Fr.prototype.setUneditable=function(st){st.contentEditable="false"},Fr.prototype.onKeyPress=function(st){st.charCode==0||this.composing||(st.preventDefault(),this.cm.isReadOnly()||Ho(this.cm,uf)(this.cm,String.fromCharCode(st.charCode==null?st.keyCode:st.charCode),0))},Fr.prototype.readOnlyChanged=function(st){this.div.contentEditable=String(st!="nocursor")},Fr.prototype.onContextMenu=function(){},Fr.prototype.resetPosition=function(){},Fr.prototype.needsContentAttribute=!0;function cd(st,mt){var Ot=ji(st,mt.line);if(!Ot||Ot.hidden)return null;var Tt=Bn(st.doc,mt.line),Dt=Ei(Ot,Tt,mt.line),qt=me(Tt,st.doc.direction),ce="left";if(qt){var Ce=Bt(qt,mt.ch);ce=Ce%2?"right":"left"}var be=bo(Dt.map,mt.ch,ce);return be.offset=be.collapse=="right"?be.end:be.start,be}function Dp(st){for(var mt=st;mt;mt=mt.parentNode)if(/CodeMirror-gutter-wrapper/.test(mt.className))return!0;return!1}function wc(st,mt){return mt&&(st.bad=!0),st}function xc(st,mt,Ot,Tt,Dt){var qt="",ce=!1,Ce=st.doc.lineSeparator(),be=!1;function Fe(an){return function(kn){return kn.id==an}}function Qe(){ce&&(qt+=Ce,be&&(qt+=Ce),ce=be=!1)}function ze(an){an&&(Qe(),qt+=an)}function ln(an){if(an.nodeType==1){var kn=an.getAttribute("cm-text");if(kn){ze(kn);return}var Tn=an.getAttribute("cm-marker"),In;if(Tn){var Hn=st.findMarks(on(Tt,0),on(Dt+1,0),Fe(+Tn));Hn.length&&(In=Hn[0].find(0))&&ze(Xi(st.doc,In.from,In.to).join(Ce));return}if(an.getAttribute("contenteditable")=="false")return;var ni=/^(pre|div|p|li|table|br)$/i.test(an.nodeName);if(!/^br$/i.test(an.nodeName)&&an.textContent.length==0)return;ni&&Qe();for(var Kn=0;Kn=9&&mt.hasSelection&&(mt.hasSelection=null),Ot.poll()}),Ie(Dt,"paste",function(ce){nn(Tt,ce)||Tp(ce,Tt)||(Tt.state.pasteIncoming=+new Date,Ot.fastPoll())});function qt(ce){if(!nn(Tt,ce)){if(Tt.somethingSelected())Oh({lineWise:!1,text:Tt.getSelections()});else if(Tt.options.lineWiseCopyCut){var Ce=Op(Tt);Oh({lineWise:!0,text:Ce.text}),ce.type=="cut"?Tt.setSelections(Ce.ranges,null,ge):(Ot.prevInput="",Dt.value=Ce.text.join(` `),ne(Dt))}else return;ce.type=="cut"&&(Tt.state.cutIncoming=+new Date)}}Ie(Dt,"cut",qt),Ie(Dt,"copy",qt),Ie(st.scroller,"paste",function(ce){if(!(Fs(st,ce)||nn(Tt,ce))){if(!Dt.dispatchEvent){Tt.state.pasteIncoming=+new Date,Ot.focus();return}var Ce=new Event("paste");Ce.clipboardData=ce.clipboardData,Dt.dispatchEvent(Ce)}}),Ie(st.lineSpace,"selectstart",function(ce){Fs(st,ce)||Dn(ce)}),Ie(Dt,"compositionstart",function(){var ce=Tt.getCursor("from");Ot.composing&&Ot.composing.range.clear(),Ot.composing={start:ce,range:Tt.markText(ce,Tt.getCursor("to"),{className:"CodeMirror-composing"})}}),Ie(Dt,"compositionend",function(){Ot.composing&&(Ot.poll(),Ot.composing.range.clear(),Ot.composing=null)})},Bo.prototype.createField=function(st){this.wrapper=Np(),this.textarea=this.wrapper.firstChild},Bo.prototype.screenReaderLabelChanged=function(st){st?this.textarea.setAttribute("aria-label",st):this.textarea.removeAttribute("aria-label")},Bo.prototype.prepareSelection=function(){var st=this.cm,mt=st.display,Ot=st.doc,Tt=Au(st);if(st.options.moveInputWithCursor){var Dt=ho(st,Ot.sel.primary().head,"div"),qt=mt.wrapper.getBoundingClientRect(),ce=mt.lineDiv.getBoundingClientRect();Tt.teTop=Math.max(0,Math.min(mt.wrapper.clientHeight-10,Dt.top+ce.top-qt.top)),Tt.teLeft=Math.max(0,Math.min(mt.wrapper.clientWidth-10,Dt.left+ce.left-qt.left))}return Tt},Bo.prototype.showSelection=function(st){var mt=this.cm,Ot=mt.display;jt(Ot.cursorDiv,st.cursors),jt(Ot.selectionDiv,st.selection),st.teTop!=null&&(this.wrapper.style.top=st.teTop+"px",this.wrapper.style.left=st.teLeft+"px")},Bo.prototype.reset=function(st){if(!(this.contextMenuPending||this.composing)){var mt=this.cm;if(mt.somethingSelected()){this.prevInput="";var Ot=mt.getSelection();this.textarea.value=Ot,mt.state.focused&&ne(this.textarea),Ct&&St>=9&&(this.hasSelection=Ot)}else st||(this.prevInput=this.textarea.value="",Ct&&St>=9&&(this.hasSelection=null))}},Bo.prototype.getField=function(){return this.textarea},Bo.prototype.supportsTouch=function(){return!1},Bo.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!z||Gt()!=this.textarea))try{this.textarea.focus()}catch(st){}},Bo.prototype.blur=function(){this.textarea.blur()},Bo.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Bo.prototype.receivedFocus=function(){this.slowPoll()},Bo.prototype.slowPoll=function(){var st=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){st.poll(),st.cm.state.focused&&st.slowPoll()})},Bo.prototype.fastPoll=function(){var st=!1,mt=this;mt.pollingFast=!0;function Ot(){var Tt=mt.poll();!Tt&&!st?(st=!0,mt.polling.set(60,Ot)):(mt.pollingFast=!1,mt.slowPoll())}mt.polling.set(20,Ot)},Bo.prototype.poll=function(){var st=this,mt=this.cm,Ot=this.textarea,Tt=this.prevInput;if(this.contextMenuPending||!mt.state.focused||ee(Ot)&&!Tt&&!this.composing||mt.isReadOnly()||mt.options.disableInput||mt.state.keySeq)return!1;var Dt=Ot.value;if(Dt==Tt&&!mt.somethingSelected())return!1;if(Ct&&St>=9&&this.hasSelection===Dt||ot&&/[\uf700-\uf7ff]/.test(Dt))return mt.display.input.reset(),!1;if(mt.doc.sel==mt.display.selForContextMenu){var qt=Dt.charCodeAt(0);if(qt==8203&&!Tt&&(Tt="\u200B"),qt==8666)return this.reset(),this.cm.execCommand("undo")}for(var ce=0,Ce=Math.min(Tt.length,Dt.length);ce1e3||Dt.indexOf(` -`)>-1?Ot.value=st.prevInput="":st.prevInput=Dt,st.composing&&(st.composing.range.clear(),st.composing.range=mt.markText(st.composing.start,mt.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Bo.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Bo.prototype.onKeyPress=function(){Ct&&St>=9&&(this.hasSelection=null),this.fastPoll()},Bo.prototype.onContextMenu=function(st){var mt=this,Ot=mt.cm,Tt=Ot.display,Dt=mt.textarea;mt.contextMenuPending&&mt.contextMenuPending();var qt=Bs(Ot,st),ce=Tt.scroller.scrollTop;if(!qt||xt)return;var Ce=Ot.options.resetSelectionOnContextMenu;Ce&&Ot.doc.sel.contains(qt)==-1&&Ho(Ot,ks)(Ot.doc,ou(qt),me);var be=Dt.style.cssText,Fe=mt.wrapper.style.cssText,Qe=mt.wrapper.offsetParent.getBoundingClientRect();mt.wrapper.style.cssText="position: static",Dt.style.cssText=`position: absolute; width: 30px; height: 30px; +`)>-1?Ot.value=st.prevInput="":st.prevInput=Dt,st.composing&&(st.composing.range.clear(),st.composing.range=mt.markText(st.composing.start,mt.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Bo.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Bo.prototype.onKeyPress=function(){Ct&&St>=9&&(this.hasSelection=null),this.fastPoll()},Bo.prototype.onContextMenu=function(st){var mt=this,Ot=mt.cm,Tt=Ot.display,Dt=mt.textarea;mt.contextMenuPending&&mt.contextMenuPending();var qt=Bs(Ot,st),ce=Tt.scroller.scrollTop;if(!qt||xt)return;var Ce=Ot.options.resetSelectionOnContextMenu;Ce&&Ot.doc.sel.contains(qt)==-1&&Ho(Ot,ks)(Ot.doc,ou(qt),ge);var be=Dt.style.cssText,Fe=mt.wrapper.style.cssText,Qe=mt.wrapper.offsetParent.getBoundingClientRect();mt.wrapper.style.cssText="position: static",Dt.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(st.clientY-Qe.top-5)+"px; left: "+(st.clientX-Qe.left-5)+`px; z-index: 1000; background: `+(Ct?"rgba(255, 255, 255, .05)":"transparent")+`; - outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var ze;pt&&(ze=window.scrollY),Tt.input.focus(),pt&&window.scrollTo(null,ze),Tt.input.reset(),Ot.somethingSelected()||(Dt.value=mt.prevInput=" "),mt.contextMenuPending=an,Tt.selForContextMenu=Ot.doc.sel,clearTimeout(Tt.detectingSelectAll);function ln(){if(Dt.selectionStart!=null){var Tn=Ot.somethingSelected(),In="\u200B"+(Tn?Dt.value:"");Dt.value="\u21DA",Dt.value=In,mt.prevInput=Tn?"":"\u200B",Dt.selectionStart=1,Dt.selectionEnd=In.length,Tt.selForContextMenu=Ot.doc.sel}}function an(){if(mt.contextMenuPending==an&&(mt.contextMenuPending=!1,mt.wrapper.style.cssText=Fe,Dt.style.cssText=be,Ct&&St<9&&Tt.scrollbars.setScrollTop(Tt.scroller.scrollTop=ce),Dt.selectionStart!=null)){(!Ct||Ct&&St<9)&&ln();var Tn=0,In=function(){Tt.selForContextMenu==Ot.doc.sel&&Dt.selectionStart==0&&Dt.selectionEnd>0&&mt.prevInput=="\u200B"?Ho(Ot,Lo)(Ot):Tn++<10?Tt.detectingSelectAll=setTimeout(In,500):(Tt.selForContextMenu=null,Tt.input.reset())};Tt.detectingSelectAll=setTimeout(In,200)}}if(Ct&&St>=9&&ln(),Et){Ti(st);var kn=function(){Je(window,"mouseup",kn),setTimeout(an,20)};Ie(window,"mouseup",kn)}else setTimeout(an,50)},Bo.prototype.readOnlyChanged=function(st){st||this.reset(),this.textarea.disabled=st=="nocursor",this.textarea.readOnly=!!st},Bo.prototype.setUneditable=function(){},Bo.prototype.needsContentAttribute=!1;function am(st,mt){if(mt=mt?ve(mt):{},mt.value=st.value,!mt.tabindex&&st.tabIndex&&(mt.tabindex=st.tabIndex),!mt.placeholder&&st.placeholder&&(mt.placeholder=st.placeholder),mt.autofocus==null){var Ot=Gt();mt.autofocus=Ot==st||st.getAttribute("autofocus")!=null&&Ot==document.body}function Tt(){st.value=Ce.getValue()}var Dt;if(st.form&&(Ie(st.form,"submit",Tt),!mt.leaveSubmitMethodAlone)){var qt=st.form;Dt=qt.submit;try{var ce=qt.submit=function(){Tt(),qt.submit=Dt,qt.submit(),qt.submit=ce}}catch(be){}}mt.finishInit=function(be){be.save=Tt,be.getTextArea=function(){return st},be.toTextArea=function(){be.toTextArea=isNaN,Tt(),st.parentNode.removeChild(be.getWrapperElement()),st.style.display="",st.form&&(Je(st.form,"submit",Tt),!mt.leaveSubmitMethodAlone&&typeof st.form.submit=="function"&&(st.form.submit=Dt))}},st.style.display="none";var Ce=gr(function(be){return st.parentNode.insertBefore(be,st.nextSibling)},mt);return Ce}function bc(st){st.off=Je,st.on=Ie,st.wheelEventPixels=ka,st.Doc=ys,st.splitLines=Si,st.countColumn=Kt,st.findColumn=_e,st.isWordChar=Xe,st.Pass=ke,st.signal=Ze,st.Line=Ur,st.changeEnd=Iu,st.scrollbarModel=ep,st.Pos=on,st.cmpPos=Cn,st.modes=Xs,st.mimeModes=Do,st.resolveMode=sa,st.getMode=dn,st.modeExtensions=en,st.extendMode=qe,st.copyState=zn,st.startState=hi,st.innerMode=Jn,st.commands=zu,st.keyMap=ca,st.keyName=$g,st.isModifierKey=pc,st.lookupKey=Ha,st.normalizeKeyMap=mp,st.StringStream=bn,st.SharedTextMarker=Il,st.TextMarker=Ye,st.LineWidget=lu,st.e_preventDefault=Dn,st.e_stopPropagation=ii,st.e_stop=Ti,st.addClass=Yt,st.contains=Xt,st.rmClass=_t,st.keyNames=Fl}rm(gr),Uu(gr);var uu="iter insert remove copy getEditor constructor".split(" ");for(var ff in ys.prototype)ys.prototype.hasOwnProperty(ff)&&we(uu,ff)<0&&(gr.prototype[ff]=function(st){return function(){return st.apply(this.doc,arguments)}}(ys.prototype[ff]));return En(ys),gr.inputStyles={textarea:Bo,contenteditable:Fr},gr.defineMode=function(st){!gr.defaults.mode&&st!="null"&&(gr.defaults.mode=st),Oo.apply(this,arguments)},gr.defineMIME=Gr,gr.defineMode("null",function(){return{token:function(st){return st.skipToEnd()}}}),gr.defineMIME("text/plain","null"),gr.defineExtension=function(st,mt){gr.prototype[st]=mt},gr.defineDocExtension=function(st,mt){ys.prototype[st]=mt},gr.fromTextArea=am,bc(gr),gr.version="5.58.2",gr})},25419:function(tn,Ke,Rt){(function(Ft){Ft(Rt(89780),Rt(15525),Rt(98101))})(function(Ft){"use strict";Ft.defineMode("markdown",function(ie,rt){var kt=Ft.getMode(ie,"text/html"),Ct=kt.name=="null";function St(Kt){if(Ft.findModeByName){var re=Ft.findModeByName(Kt);re&&(Kt=re.mime||re.mimes[0])}var we=Ft.getMode(ie,Kt);return we.name=="null"?null:we}rt.highlightFormatting===void 0&&(rt.highlightFormatting=!1),rt.maxBlockquoteDepth===void 0&&(rt.maxBlockquoteDepth=0),rt.taskLists===void 0&&(rt.taskLists=!1),rt.strikethrough===void 0&&(rt.strikethrough=!1),rt.emoji===void 0&&(rt.emoji=!1),rt.fencedCodeBlockHighlighting===void 0&&(rt.fencedCodeBlockHighlighting=!0),rt.fencedCodeBlockDefaultMode===void 0&&(rt.fencedCodeBlockDefaultMode="text/plain"),rt.xml===void 0&&(rt.xml=!0),rt.tokenTypeOverrides===void 0&&(rt.tokenTypeOverrides={});var pt={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var vt in pt)pt.hasOwnProperty(vt)&&rt.tokenTypeOverrides[vt]&&(pt[vt]=rt.tokenTypeOverrides[vt]);var yt=/^([*\-_])(?:\s*\1){2,}\s*$/,xt=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,dt=/^\[(x| )\](?=\s)/i,ft=rt.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,ct=/^ {0,3}(?:\={1,}|-{2,})\s*$/,lt=/^[^#!\[\]*_\\<>` "'(~:]+/,E=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,z=/^\s*\[[^\]]+?\]:.*$/,ot=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,it=" ";function at(Kt,re,we){return re.f=re.inline=we,we(Kt,re)}function ut(Kt,re,we){return re.f=re.block=we,we(Kt,re)}function wt(Kt){return!Kt||!/\S/.test(Kt.string)}function Et(Kt){if(Kt.linkTitle=!1,Kt.linkHref=!1,Kt.linkText=!1,Kt.em=!1,Kt.strong=!1,Kt.strikethrough=!1,Kt.quote=0,Kt.indentedCode=!1,Kt.f==_t){var re=Ct;if(!re){var we=Ft.innerMode(kt,Kt.htmlState);re=we.mode.name=="xml"&&we.state.tagStart===null&&!we.state.context&&we.state.tokenize.isInText}re&&(Kt.f=It,Kt.block=At,Kt.htmlState=null)}return Kt.trailingSpace=0,Kt.trailingSpaceNewLine=!1,Kt.prevLine=Kt.thisLine,Kt.thisLine={stream:null},null}function At(Kt,re){var we=Kt.column()===re.indentation,Me=wt(re.prevLine.stream),ke=re.indentedCode,me=re.prevLine.hr,fe=re.list!==!1,pe=(re.listStack[re.listStack.length-1]||0)+3;re.indentedCode=!1;var _e=re.indentation;if(re.indentationDiff===null&&(re.indentationDiff=re.indentation,fe)){for(re.list=null;_e=4&&(ke||re.prevLine.fencedCodeEnd||re.prevLine.header||Me))return Kt.skipToEnd(),re.indentedCode=!0,pt.code;if(Kt.eatSpace())return null;if(we&&re.indentation<=pe&&(Se=Kt.match(ft))&&Se[1].length<=6)return re.quote=0,re.header=Se[1].length,re.thisLine.header=!0,rt.highlightFormatting&&(re.formatting="header"),re.f=re.inline,jt(re);if(re.indentation<=pe&&Kt.eat(">"))return re.quote=we?1:re.quote+1,rt.highlightFormatting&&(re.formatting="quote"),Kt.eatSpace(),jt(re);if(!He&&!re.setext&&we&&re.indentation<=pe&&(Se=Kt.match(xt))){var xe=Se[1]?"ol":"ul";return re.indentation=_e+Kt.current().length,re.list=!0,re.quote=0,re.listStack.push(re.indentation),re.em=!1,re.strong=!1,re.code=!1,re.strikethrough=!1,rt.taskLists&&Kt.match(dt,!1)&&(re.taskList=!0),re.f=re.inline,rt.highlightFormatting&&(re.formatting=["list","list-"+xe]),jt(re)}else{if(we&&re.indentation<=pe&&(Se=Kt.match(E,!0)))return re.quote=0,re.fencedEndRE=new RegExp(Se[1]+"+ *$"),re.localMode=rt.fencedCodeBlockHighlighting&&St(Se[2]||rt.fencedCodeBlockDefaultMode),re.localMode&&(re.localState=Ft.startState(re.localMode)),re.f=re.block=Mt,rt.highlightFormatting&&(re.formatting="code-block"),re.code=-1,jt(re);if(re.setext||(!je||!fe)&&!re.quote&&re.list===!1&&!re.code&&!He&&!z.test(Kt.string)&&(Se=Kt.lookAhead(1))&&(Se=Se.match(ct)))return re.setext?(re.header=re.setext,re.setext=0,Kt.skipToEnd(),rt.highlightFormatting&&(re.formatting="header")):(re.header=Se[0].charAt(0)=="="?1:2,re.setext=re.header),re.thisLine.header=!0,re.f=re.inline,jt(re);if(He)return Kt.skipToEnd(),re.hr=!0,re.thisLine.hr=!0,pt.hr;if(Kt.peek()==="[")return at(Kt,re,Ht)}return at(Kt,re,re.inline)}function _t(Kt,re){var we=kt.token(Kt,re.htmlState);if(!Ct){var Me=Ft.innerMode(kt,re.htmlState);(Me.mode.name=="xml"&&Me.state.tagStart===null&&!Me.state.context&&Me.state.tokenize.isInText||re.md_inside&&Kt.current().indexOf(">")>-1)&&(re.f=It,re.block=At,re.htmlState=null)}return we}function Mt(Kt,re){var we=re.listStack[re.listStack.length-1]||0,Me=re.indentation=Kt.quote?re.push(pt.formatting+"-"+Kt.formatting[we]+"-"+Kt.quote):re.push("error"))}if(Kt.taskOpen)return re.push("meta"),re.length?re.join(" "):null;if(Kt.taskClosed)return re.push("property"),re.length?re.join(" "):null;if(Kt.linkHref?re.push(pt.linkHref,"url"):(Kt.strong&&re.push(pt.strong),Kt.em&&re.push(pt.em),Kt.strikethrough&&re.push(pt.strikethrough),Kt.emoji&&re.push(pt.emoji),Kt.linkText&&re.push(pt.linkText),Kt.code&&re.push(pt.code),Kt.image&&re.push(pt.image),Kt.imageAltText&&re.push(pt.imageAltText,"link"),Kt.imageMarker&&re.push(pt.imageMarker)),Kt.header&&re.push(pt.header,pt.header+"-"+Kt.header),Kt.quote&&(re.push(pt.quote),!rt.maxBlockquoteDepth||rt.maxBlockquoteDepth>=Kt.quote?re.push(pt.quote+"-"+Kt.quote):re.push(pt.quote+"-"+rt.maxBlockquoteDepth)),Kt.list!==!1){var Me=(Kt.listStack.length-1)%3;Me?Me===1?re.push(pt.list2):re.push(pt.list3):re.push(pt.list1)}return Kt.trailingSpaceNewLine?re.push("trailing-space-new-line"):Kt.trailingSpace&&re.push("trailing-space-"+(Kt.trailingSpace%2?"a":"b")),re.length?re.join(" "):null}function Lt(Kt,re){if(Kt.match(lt,!0))return jt(re)}function It(Kt,re){var we=re.text(Kt,re);if(typeof we!="undefined")return we;if(re.list)return re.list=null,jt(re);if(re.taskList){var Me=Kt.match(dt,!0)[1]===" ";return Me?re.taskOpen=!0:re.taskClosed=!0,rt.highlightFormatting&&(re.formatting="task"),re.taskList=!1,jt(re)}if(re.taskOpen=!1,re.taskClosed=!1,re.header&&Kt.match(/^#+$/,!0))return rt.highlightFormatting&&(re.formatting="header"),jt(re);var ke=Kt.next();if(re.linkTitle){re.linkTitle=!1;var me=ke;ke==="("&&(me=")"),me=(me+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var fe="^\\s*(?:[^"+me+"\\\\]+|\\\\\\\\|\\\\.)"+me;if(Kt.match(new RegExp(fe),!0))return pt.linkHref}if(ke==="`"){var pe=re.formatting;rt.highlightFormatting&&(re.formatting="code"),Kt.eatWhile("`");var _e=Kt.current().length;if(re.code==0&&(!re.quote||_e==1))return re.code=_e,jt(re);if(_e==re.code){var je=jt(re);return re.code=0,je}else return re.formatting=pe,jt(re)}else if(re.code)return jt(re);if(ke==="\\"&&(Kt.next(),rt.highlightFormatting)){var He=jt(re),Se=pt.formatting+"-escape";return He?He+" "+Se:Se}if(ke==="!"&&Kt.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return re.imageMarker=!0,re.image=!0,rt.highlightFormatting&&(re.formatting="image"),jt(re);if(ke==="["&&re.imageMarker&&Kt.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return re.imageMarker=!1,re.imageAltText=!0,rt.highlightFormatting&&(re.formatting="image"),jt(re);if(ke==="]"&&re.imageAltText){rt.highlightFormatting&&(re.formatting="image");var He=jt(re);return re.imageAltText=!1,re.image=!1,re.inline=re.f=Xt,He}if(ke==="["&&!re.image)return re.linkText&&Kt.match(/^.*?\]/)||(re.linkText=!0,rt.highlightFormatting&&(re.formatting="link")),jt(re);if(ke==="]"&&re.linkText){rt.highlightFormatting&&(re.formatting="link");var He=jt(re);return re.linkText=!1,re.inline=re.f=Kt.match(/\(.*?\)| ?\[.*?\]/,!1)?Xt:It,He}if(ke==="<"&&Kt.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){re.f=re.inline=Ut,rt.highlightFormatting&&(re.formatting="link");var He=jt(re);return He?He+=" ":He="",He+pt.linkInline}if(ke==="<"&&Kt.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){re.f=re.inline=Ut,rt.highlightFormatting&&(re.formatting="link");var He=jt(re);return He?He+=" ":He="",He+pt.linkEmail}if(rt.xml&&ke==="<"&&Kt.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var xe=Kt.string.indexOf(">",Kt.pos);if(xe!=-1){var le=Kt.string.substring(Kt.start,xe);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(le)&&(re.md_inside=!0)}return Kt.backUp(1),re.htmlState=Ft.startState(kt),ut(Kt,re,_t)}if(rt.xml&&ke==="<"&&Kt.match(/^\/\w*?>/))return re.md_inside=!1,"tag";if(ke==="*"||ke==="_"){for(var Ne=1,se=Kt.pos==1?" ":Kt.string.charAt(Kt.pos-2);Ne<3&&Kt.eat(ke);)Ne++;var Ae=Kt.peek()||" ",Xe=!/\s/.test(Ae)&&(!ot.test(Ae)||/\s/.test(se)||ot.test(se)),Be=!/\s/.test(se)&&(!ot.test(se)||/\s/.test(Ae)||ot.test(Ae)),Te=null,ue=null;if(Ne%2&&(!re.em&&Xe&&(ke==="*"||!Be||ot.test(se))?Te=!0:re.em==ke&&Be&&(ke==="*"||!Xe||ot.test(Ae))&&(Te=!1)),Ne>1&&(!re.strong&&Xe&&(ke==="*"||!Be||ot.test(se))?ue=!0:re.strong==ke&&Be&&(ke==="*"||!Xe||ot.test(Ae))&&(ue=!1)),ue!=null||Te!=null){rt.highlightFormatting&&(re.formatting=Te==null?"strong":ue==null?"em":"strong em"),Te===!0&&(re.em=ke),ue===!0&&(re.strong=ke);var je=jt(re);return Te===!1&&(re.em=!1),ue===!1&&(re.strong=!1),je}}else if(ke===" "&&(Kt.eat("*")||Kt.eat("_"))){if(Kt.peek()===" ")return jt(re);Kt.backUp(1)}if(rt.strikethrough){if(ke==="~"&&Kt.eatWhile(ke)){if(re.strikethrough){rt.highlightFormatting&&(re.formatting="strikethrough");var je=jt(re);return re.strikethrough=!1,je}else if(Kt.match(/^[^\s]/,!1))return re.strikethrough=!0,rt.highlightFormatting&&(re.formatting="strikethrough"),jt(re)}else if(ke===" "&&Kt.match(/^~~/,!0)){if(Kt.peek()===" ")return jt(re);Kt.backUp(2)}}if(rt.emoji&&ke===":"&&Kt.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){re.emoji=!0,rt.highlightFormatting&&(re.formatting="emoji");var $t=jt(re);return re.emoji=!1,$t}return ke===" "&&(Kt.match(/^ +$/,!1)?re.trailingSpace++:re.trailingSpace&&(re.trailingSpaceNewLine=!0)),jt(re)}function Ut(Kt,re){var we=Kt.next();if(we===">"){re.f=re.inline=It,rt.highlightFormatting&&(re.formatting="link");var Me=jt(re);return Me?Me+=" ":Me="",Me+pt.linkInline}return Kt.match(/^[^>]+/,!0),pt.linkInline}function Xt(Kt,re){if(Kt.eatSpace())return null;var we=Kt.next();return we==="("||we==="["?(re.f=re.inline=Yt(we==="("?")":"]"),rt.highlightFormatting&&(re.formatting="link-string"),re.linkHref=!0,jt(re)):"error"}var Gt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Yt(Kt){return function(re,we){var Me=re.next();if(Me===Kt){we.f=we.inline=It,rt.highlightFormatting&&(we.formatting="link-string");var ke=jt(we);return we.linkHref=!1,ke}return re.match(Gt[Kt]),we.linkHref=!0,jt(we)}}function Ht(Kt,re){return Kt.match(/^([^\]\\]|\\.)*\]:/,!1)?(re.f=ne,Kt.next(),rt.highlightFormatting&&(re.formatting="link"),re.linkText=!0,jt(re)):at(Kt,re,It)}function ne(Kt,re){if(Kt.match(/^\]:/,!0)){re.f=re.inline=ae,rt.highlightFormatting&&(re.formatting="link");var we=jt(re);return re.linkText=!1,we}return Kt.match(/^([^\]\\]|\\.)+/,!0),pt.linkText}function ae(Kt,re){return Kt.eatSpace()?null:(Kt.match(/^[^\s]+/,!0),Kt.peek()===void 0?re.linkTitle=!0:Kt.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),re.f=re.inline=It,pt.linkHref+" url")}var ve={startState:function(){return{f:At,prevLine:{stream:null},thisLine:{stream:null},block:At,htmlState:null,indentation:0,inline:It,text:Lt,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(Kt){return{f:Kt.f,prevLine:Kt.prevLine,thisLine:Kt.thisLine,block:Kt.block,htmlState:Kt.htmlState&&Ft.copyState(kt,Kt.htmlState),indentation:Kt.indentation,localMode:Kt.localMode,localState:Kt.localMode?Ft.copyState(Kt.localMode,Kt.localState):null,inline:Kt.inline,text:Kt.text,formatting:!1,linkText:Kt.linkText,linkTitle:Kt.linkTitle,linkHref:Kt.linkHref,code:Kt.code,em:Kt.em,strong:Kt.strong,strikethrough:Kt.strikethrough,emoji:Kt.emoji,header:Kt.header,setext:Kt.setext,hr:Kt.hr,taskList:Kt.taskList,list:Kt.list,listStack:Kt.listStack.slice(0),quote:Kt.quote,indentedCode:Kt.indentedCode,trailingSpace:Kt.trailingSpace,trailingSpaceNewLine:Kt.trailingSpaceNewLine,md_inside:Kt.md_inside,fencedEndRE:Kt.fencedEndRE}},token:function(Kt,re){if(re.formatting=!1,Kt!=re.thisLine.stream){if(re.header=0,re.hr=!1,Kt.match(/^\s*$/,!0))return Et(re),null;if(re.prevLine=re.thisLine,re.thisLine={stream:Kt},re.taskList=!1,re.trailingSpace=0,re.trailingSpaceNewLine=!1,!re.localState&&(re.f=re.block,re.f!=_t)){var we=Kt.match(/^\s*/,!0)[0].replace(/\t/g,it).length;if(re.indentation=we,re.indentationDiff=null,we>0)return null}}return re.f(Kt,re)},innerMode:function(Kt){return Kt.block==_t?{state:Kt.htmlState,mode:kt}:Kt.localState?{state:Kt.localState,mode:Kt.localMode}:{state:Kt,mode:ve}},indent:function(Kt,re,we){return Kt.block==_t&&kt.indent?kt.indent(Kt.htmlState,re,we):Kt.localState&&Kt.localMode.indent?Kt.localMode.indent(Kt.localState,re,we):Ft.Pass},blankLine:Et,getType:jt,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return ve},"xml"),Ft.defineMIME("text/markdown","markdown"),Ft.defineMIME("text/x-markdown","markdown")})},98101:function(tn,Ke,Rt){(function(Ft){Ft(Rt(89780))})(function(Ft){"use strict";Ft.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var ie=0;ie-1&&kt.substring(pt+1,kt.length);if(vt)return Ft.findModeByExtension(vt)},Ft.findModeByName=function(kt){kt=kt.toLowerCase();for(var Ct=0;Ct0?lt.cmdState[lt.cmdState.length-1]:null}function St(lt){var E=lt.cmdState.pop();E&&E.closeBracket()}function pt(lt){for(var E=lt.cmdState,z=E.length-1;z>=0;z--){var ot=E[z];if(ot.name!="DEFAULT")return ot}return{styleIdentifier:function(){return null}}}function vt(lt,E,z){return function(){this.name=lt,this.bracketNo=0,this.style=E,this.styles=z,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var yt={};yt.importmodule=vt("importmodule","tag",["string","builtin"]),yt.documentclass=vt("documentclass","tag",["","atom"]),yt.usepackage=vt("usepackage","tag",["atom"]),yt.begin=vt("begin","tag",["atom"]),yt.end=vt("end","tag",["atom"]),yt.label=vt("label","tag",["atom"]),yt.ref=vt("ref","tag",["atom"]),yt.eqref=vt("eqref","tag",["atom"]),yt.cite=vt("cite","tag",["atom"]),yt.bibitem=vt("bibitem","tag",["atom"]),yt.Bibitem=vt("Bibitem","tag",["atom"]),yt.RBibitem=vt("RBibitem","tag",["atom"]),yt.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function xt(lt,E){lt.f=E}function dt(lt,E){var z;if(lt.match(/^\\[a-zA-Z@]+/)){var ot=lt.current().slice(1);return z=yt.hasOwnProperty(ot)?yt[ot]:yt.DEFAULT,z=new z,kt(E,z),xt(E,ct),z.style}if(lt.match(/^\\[$&%#{}_]/)||lt.match(/^\\[,;!\/\\]/))return"tag";if(lt.match("\\["))return xt(E,function(at,ut){return ft(at,ut,"\\]")}),"keyword";if(lt.match("\\("))return xt(E,function(at,ut){return ft(at,ut,"\\)")}),"keyword";if(lt.match("$$"))return xt(E,function(at,ut){return ft(at,ut,"$$")}),"keyword";if(lt.match("$"))return xt(E,function(at,ut){return ft(at,ut,"$")}),"keyword";var it=lt.next();if(it=="%")return lt.skipToEnd(),"comment";if(it=="}"||it=="]"){if(z=Ct(E),z)z.closeBracket(it),xt(E,ct);else return"error";return"bracket"}else return it=="{"||it=="["?(z=yt.DEFAULT,z=new z,kt(E,z),"bracket"):/\d/.test(it)?(lt.eatWhile(/[\w.%]/),"atom"):(lt.eatWhile(/[\w\-_]/),z=pt(E),z.name=="begin"&&(z.argument=lt.current()),z.styleIdentifier())}function ft(lt,E,z){if(lt.eatSpace())return null;if(z&<.match(z))return xt(E,dt),"keyword";if(lt.match(/^\\[a-zA-Z@]+/))return"tag";if(lt.match(/^[a-zA-Z]+/))return"variable-2";if(lt.match(/^\\[$&%#{}_]/)||lt.match(/^\\[,;!\/]/)||lt.match(/^[\^_&]/))return"tag";if(lt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(lt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ot=lt.next();return ot=="{"||ot=="}"||ot=="["||ot=="]"||ot=="("||ot==")"?"bracket":ot=="%"?(lt.skipToEnd(),"comment"):"error"}function ct(lt,E){var z=lt.peek(),ot;return z=="{"||z=="["?(ot=Ct(E),ot.openBracket(z),lt.eat(z),xt(E,dt),"bracket"):/[ \t\r]/.test(z)?(lt.eat(z),null):(xt(E,dt),St(E),dt(lt,E))}return{startState:function(){var lt=rt.inMathMode?function(E,z){return ft(E,z)}:dt;return{cmdState:[],f:lt}},copyState:function(lt){return{cmdState:lt.cmdState.slice(),f:lt.f}},token:function(lt,E){return E.f(lt,E)},blankLine:function(lt){lt.f=dt,lt.cmdState.length=0},lineComment:"%"}}),Ft.defineMIME("text/x-stex","stex"),Ft.defineMIME("text/x-latex","stex")})},15525:function(tn,Ke,Rt){(function(Ft){Ft(Rt(89780))})(function(Ft){"use strict";var ie={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},rt={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};Ft.defineMode("xml",function(kt,Ct){var St=kt.indentUnit,pt={},vt=Ct.htmlMode?ie:rt;for(var yt in vt)pt[yt]=vt[yt];for(var yt in Ct)pt[yt]=Ct[yt];var xt,dt;function ft(Ut,Xt){function Gt(ne){return Xt.tokenize=ne,ne(Ut,Xt)}var Yt=Ut.next();if(Yt=="<")return Ut.eat("!")?Ut.eat("[")?Ut.match("CDATA[")?Gt(E("atom","]]>")):null:Ut.match("--")?Gt(E("comment","-->")):Ut.match("DOCTYPE",!0,!0)?(Ut.eatWhile(/[\w\._\-]/),Gt(z(1))):null:Ut.eat("?")?(Ut.eatWhile(/[\w\._\-]/),Xt.tokenize=E("meta","?>"),"meta"):(xt=Ut.eat("/")?"closeTag":"openTag",Xt.tokenize=ct,"tag bracket");if(Yt=="&"){var Ht;return Ut.eat("#")?Ut.eat("x")?Ht=Ut.eatWhile(/[a-fA-F\d]/)&&Ut.eat(";"):Ht=Ut.eatWhile(/[\d]/)&&Ut.eat(";"):Ht=Ut.eatWhile(/[\w\.\-:]/)&&Ut.eat(";"),Ht?"atom":"error"}else return Ut.eatWhile(/[^&<]/),null}ft.isInText=!0;function ct(Ut,Xt){var Gt=Ut.next();if(Gt==">"||Gt=="/"&&Ut.eat(">"))return Xt.tokenize=ft,xt=Gt==">"?"endTag":"selfcloseTag","tag bracket";if(Gt=="=")return xt="equals",null;if(Gt=="<"){Xt.tokenize=ft,Xt.state=ut,Xt.tagName=Xt.tagStart=null;var Yt=Xt.tokenize(Ut,Xt);return Yt?Yt+" tag error":"tag error"}else return/[\'\"]/.test(Gt)?(Xt.tokenize=lt(Gt),Xt.stringStartCol=Ut.column(),Xt.tokenize(Ut,Xt)):(Ut.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function lt(Ut){var Xt=function(Gt,Yt){for(;!Gt.eol();)if(Gt.next()==Ut){Yt.tokenize=ct;break}return"string"};return Xt.isInAttribute=!0,Xt}function E(Ut,Xt){return function(Gt,Yt){for(;!Gt.eol();){if(Gt.match(Xt)){Yt.tokenize=ft;break}Gt.next()}return Ut}}function z(Ut){return function(Xt,Gt){for(var Yt;(Yt=Xt.next())!=null;){if(Yt=="<")return Gt.tokenize=z(Ut+1),Gt.tokenize(Xt,Gt);if(Yt==">")if(Ut==1){Gt.tokenize=ft;break}else return Gt.tokenize=z(Ut-1),Gt.tokenize(Xt,Gt)}return"meta"}}function ot(Ut,Xt,Gt){this.prev=Ut.context,this.tagName=Xt,this.indent=Ut.indented,this.startOfLine=Gt,(pt.doNotIndent.hasOwnProperty(Xt)||Ut.context&&Ut.context.noIndent)&&(this.noIndent=!0)}function it(Ut){Ut.context&&(Ut.context=Ut.context.prev)}function at(Ut,Xt){for(var Gt;;){if(!Ut.context||(Gt=Ut.context.tagName,!pt.contextGrabbers.hasOwnProperty(Gt)||!pt.contextGrabbers[Gt].hasOwnProperty(Xt)))return;it(Ut)}}function ut(Ut,Xt,Gt){return Ut=="openTag"?(Gt.tagStart=Xt.column(),wt):Ut=="closeTag"?Et:ut}function wt(Ut,Xt,Gt){return Ut=="word"?(Gt.tagName=Xt.current(),dt="tag",Mt):pt.allowMissingTagName&&Ut=="endTag"?(dt="tag bracket",Mt(Ut,Xt,Gt)):(dt="error",wt)}function Et(Ut,Xt,Gt){if(Ut=="word"){var Yt=Xt.current();return Gt.context&&Gt.context.tagName!=Yt&&pt.implicitlyClosed.hasOwnProperty(Gt.context.tagName)&&it(Gt),Gt.context&&Gt.context.tagName==Yt||pt.matchClosing===!1?(dt="tag",At):(dt="tag error",_t)}else return pt.allowMissingTagName&&Ut=="endTag"?(dt="tag bracket",At(Ut,Xt,Gt)):(dt="error",_t)}function At(Ut,Xt,Gt){return Ut!="endTag"?(dt="error",At):(it(Gt),ut)}function _t(Ut,Xt,Gt){return dt="error",At(Ut,Xt,Gt)}function Mt(Ut,Xt,Gt){if(Ut=="word")return dt="attribute",jt;if(Ut=="endTag"||Ut=="selfcloseTag"){var Yt=Gt.tagName,Ht=Gt.tagStart;return Gt.tagName=Gt.tagStart=null,Ut=="selfcloseTag"||pt.autoSelfClosers.hasOwnProperty(Yt)?at(Gt,Yt):(at(Gt,Yt),Gt.context=new ot(Gt,Yt,Ht==Gt.indented)),ut}return dt="error",Mt}function jt(Ut,Xt,Gt){return Ut=="equals"?Lt:(pt.allowMissing||(dt="error"),Mt(Ut,Xt,Gt))}function Lt(Ut,Xt,Gt){return Ut=="string"?It:Ut=="word"&&pt.allowUnquoted?(dt="string",Mt):(dt="error",Mt(Ut,Xt,Gt))}function It(Ut,Xt,Gt){return Ut=="string"?It:Mt(Ut,Xt,Gt)}return{startState:function(Ut){var Xt={tokenize:ft,state:ut,indented:Ut||0,tagName:null,tagStart:null,context:null};return Ut!=null&&(Xt.baseIndent=Ut),Xt},token:function(Ut,Xt){if(!Xt.tagName&&Ut.sol()&&(Xt.indented=Ut.indentation()),Ut.eatSpace())return null;xt=null;var Gt=Xt.tokenize(Ut,Xt);return(Gt||xt)&&Gt!="comment"&&(dt=null,Xt.state=Xt.state(xt||Gt,Ut,Xt),dt&&(Gt=dt=="error"?Gt+" error":dt)),Gt},indent:function(Ut,Xt,Gt){var Yt=Ut.context;if(Ut.tokenize.isInAttribute)return Ut.tagStart==Ut.indented?Ut.stringStartCol+1:Ut.indented+St;if(Yt&&Yt.noIndent)return Ft.Pass;if(Ut.tokenize!=ct&&Ut.tokenize!=ft)return Gt?Gt.match(/^(\s*)/)[0].length:0;if(Ut.tagName)return pt.multilineTagIndentPastTag!==!1?Ut.tagStart+Ut.tagName.length+2:Ut.tagStart+St*(pt.multilineTagIndentFactor||1);if(pt.alignCDATA&&/$/,blockCommentStart:"",configuration:pt.htmlMode?"html":"xml",helperType:pt.htmlMode?"html":"xml",skipAttribute:function(Ut){Ut.state==Lt&&(Ut.state=Mt)},xmlCurrentTag:function(Ut){return Ut.tagName?{name:Ut.tagName,close:Ut.type=="closeTag"}:null},xmlCurrentContext:function(Ut){for(var Xt=[],Gt=Ut.context;Gt;Gt=Gt.prev)Gt.tagName&&Xt.push(Gt.tagName);return Xt.reverse()}}}),Ft.defineMIME("text/xml","xml"),Ft.defineMIME("application/xml","xml"),Ft.mimeModes.hasOwnProperty("text/html")||Ft.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{$u:function(){return yt},BD:function(){return Ne},E9:function(){return vt},FF:function(){return Bi},FJ:function(){return ut},Hn:function(){return at},KX:function(){return Et},NB:function(){return Qt},S0:function(){return Se},UL:function(){return xt},Vk:function(){return it},Vm:function(){return Bt},YI:function(){return xe},ZA:function(){return rt},Zt:function(){return dt},al:function(){return Te},bn:function(){return Be},bx:function(){return se},g2:function(){return le},h1:function(){return Lt},hD:function(){return En},l4:function(){return St},rU:function(){return Wt},s_:function(){return Ae},uz:function(){return ye},z6:function(){return ft}}),tn=Rt.hmd(tn),function(){var ee;function Ds(a){var y=0;return function(){return yx&&(x=Math.max(0,tt+x)),(b==null||b>tt)&&(b=tt),b=Number(b),0>b&&(b=Math.max(0,tt+b)),x=Number(x||0);x=a.length?a.push(x):a.splice(y,0,x):We("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function Wi(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):We("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function oi(){var a=Mi.pop();return a===void 0?[]:a}function ri(a){a.length=0,Mi.push(a)}function Zn(a){if(typeof a=="function"){if(a.className)return a.className;if(a.name)return a.name;var y=a.toString();if(y=y.substring(9,y.indexOf("(")).trim(),y!=="")return a._className=y}else if(on(a)&&a.constructor)return Zn(a.constructor);return typeof a}function ur(a){var y=a;return on(a)&&(a.text?y=a.text:a.name?y=a.name:a.key!==void 0?y=a.key:a.id!==void 0?y=a.id:a.constructor===Object&&(a.Text?y=a.Text:a.Name?y=a.Name:a.Key!==void 0?y=a.Key:a.Id!==void 0?y=a.Id:a.ID!==void 0&&(y=a.ID))),y===void 0?"undefined":y===null?"null":y.toString()}function Yr(a,y){if(a.hasOwnProperty(y))return!0;for(a=Object.getPrototypeOf(a);a&&a!==Function;){if(a.hasOwnProperty(y))return!0;var x=a.CA;if(x&&x[y])return!0;a=Object.getPrototypeOf(a)}return!1}function br(a,y,x){Object.defineProperty($i.prototype,a,{get:y,set:x})}function mn(a){for(var y=[],x=0;256>x;x++)y["0123456789abcdef".charAt(x>>4)+"0123456789abcdef".charAt(x&15)]=String.fromCharCode(x);a.length%2&&(a="0"+a),x=[];for(var b=0,tt=0;ttx;x++)y[x]=x;for(x=b=0;256>x;x++)b=(b+y[x]+119)%256,tt=y[x],y[x]=y[b],y[b]=tt;b=x=0;for(var et="",nt=0;nt-1||et.indexOf("\xA9 1998-2021 Northwoods Software")>-1||et.indexOf("Not for distribution or production use")>-1||et.indexOf("gojs.net")>-1?"":et}var er=bn.navigator!==void 0&&0this.key)return!1;a=a.s;var y=a.length,x=++this.Za,b=this.qf;if(b!==null)for(;xthis.key)return!1;var y=--this.Za;return 0<=y?(this.key=y,this.value=a.s[y],!0):(this.de(),!1)},fr.prototype.Ad=function(){return this.next()},fr.prototype.first=function(){var a=this.Bb;this.qa=a.Ja;var y=a.s;return this.Za=a=y.length-1,0<=a?(y=y[a],this.key=a,this.value=y):null},fr.prototype.any=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(a(y[x]))return!0;return!1},fr.prototype.all=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(!a(y[x]))return!1;return!0},fr.prototype.each=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)a(y[x]);return this},fr.prototype.map=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--)x.push(a(y[b]));return a=new vn,a.s=x,a.xb(),a.iterator},fr.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--){var tt=y[b];a(tt)&&x.push(tt)}return a=new vn,a.s=x,a.xb(),a.iterator},fr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},fr.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},qe.Object.defineProperties(fr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),fr.prototype.first=fr.prototype.first,fr.prototype.hasNext=fr.prototype.Ad,fr.prototype.next=fr.prototype.next,fr.prototype.reset=fr.prototype.reset,fr.className="ListIteratorBackwards";function vn(a){qi(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&We("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}ee=vn.prototype,ee.xb=function(){var a=this.Ja;a++,999999999a||a>=y.length)&&ti(a,"0 <= i < length",vn,"elt:i"),y[a]},ee.get=function(a){return this.M(a)},ee.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&ti(a,"0 <= i < length",vn,"setElt:i"),this._isFrozen&&Nn(this,a),x[a]=y},ee.set=function(a,y){this.cd(a,y)},ee.first=function(){var a=this.s;return a.length===0?null:a[0]},ee.jc=function(){var a=this.s,y=a.length;return 0a&&ti(a,">= 0",vn,"insertAt:i"),this._isFrozen&&Nn(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},ee.remove=function(a){if(a===null)return!1;this._isFrozen&&Nn(this,a);var y=this.s;return a=y.indexOf(a),a===-1?!1:(a===y.length-1?y.pop():y.splice(a,1),this.xb(),!0)},ee.delete=function(a){return this.remove(a)},ee.mb=function(a){var y=this.s;(0>a||a>=y.length)&&ti(a,"0 <= i < length",vn,"removeAt:i"),this._isFrozen&&Nn(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},ee.removeRange=function(a,y){var x=this.s,b=x.length;if(0>a)a=0;else if(a>=b)return this;if(0>y)return this;if(y>=b&&(y=b-1),a>y)return this;this._isFrozen&&Nn(this);for(var tt=a,et=y+1;et=et)return this;if((0>y||y>=tt-1)&&ti(y,"0 <= from < length",vn,"sortRange:from"),et===2)return x=b[y],tt=b[y+1],0=tt)b.sort(a);else for(y=b.slice(0,x),y.sort(a),a=0;a=tt)for(x=b.slice(y),x.sort(a),a=y;a=this.s.length)return hr;var a=this.Sa;return a!==null?(a.reset(),a):new Yi(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return hr;var a=this.Hg;return a!==null?(a.reset(),a):new fr(this)}}}),vn.prototype.reverse=vn.prototype.reverse,vn.prototype.sortRange=vn.prototype.zi,vn.prototype.sort=vn.prototype.sort,vn.prototype.toSet=vn.prototype.Iv,vn.prototype.toArray=vn.prototype.Fa,vn.prototype.removeRange=vn.prototype.removeRange,vn.prototype.removeAt=vn.prototype.mb,vn.prototype.delete=vn.prototype.delete,vn.prototype.remove=vn.prototype.remove,vn.prototype.insertAt=vn.prototype.Gb,vn.prototype.pop=vn.prototype.pop,vn.prototype.last=vn.prototype.jc,vn.prototype.first=vn.prototype.first,vn.prototype.set=vn.prototype.set,vn.prototype.setElt=vn.prototype.cd,vn.prototype.get=vn.prototype.get,vn.prototype.elt=vn.prototype.M,vn.prototype.indexOf=vn.prototype.indexOf,vn.prototype.has=vn.prototype.has,vn.prototype.contains=vn.prototype.contains,vn.prototype.clear=vn.prototype.clear,vn.prototype.addAll=vn.prototype.addAll,vn.prototype.push=vn.prototype.push,vn.prototype.add=vn.prototype.add,vn.prototype.thaw=vn.prototype.ka,vn.prototype.freeze=vn.prototype.freeze,vn.className="List";function Qi(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Qi.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},Qi.prototype.next=function(){var a=this.eg;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},Qi.prototype.Ad=function(){return this.next()},Qi.prototype.first=function(){var a=this.eg;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},Qi.prototype.any=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Qi.prototype.all=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Qi.prototype.each=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},Qi.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new vn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Qi.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new vn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},Qi.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},Qi.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},qe.Object.defineProperties(Qi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),Qi.prototype.first=Qi.prototype.first,Qi.prototype.hasNext=Qi.prototype.Ad,Qi.prototype.next=Qi.prototype.next,Qi.prototype.reset=Qi.prototype.reset,Qi.className="SetIterator";function gn(a){qi(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&We("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}ee=gn.prototype,ee.xb=function(){var a=this.Ja;a++,999999999=this.Sb)return hr;var a=this.Sa;return a!==null?(a.reset(),a):new Qi(this)}}}),gn.prototype.toList=gn.prototype.Hv,gn.prototype.toArray=gn.prototype.Fa,gn.prototype.clear=gn.prototype.clear,gn.prototype.retainAll=gn.prototype.pA,gn.prototype.removeAll=gn.prototype.hp,gn.prototype.delete=gn.prototype.delete,gn.prototype.remove=gn.prototype.remove,gn.prototype.first=gn.prototype.first,gn.prototype.containsAny=gn.prototype.Ty,gn.prototype.containsAll=gn.prototype.Sy,gn.prototype.has=gn.prototype.has,gn.prototype.contains=gn.prototype.contains,gn.prototype.addAll=gn.prototype.addAll,gn.prototype.add=gn.prototype.add,gn.prototype.thaw=gn.prototype.ka,gn.prototype.freeze=gn.prototype.freeze;var Zo=1;gn.className="Set",gn.uniqueHash=qi,gn.hashIdUnique=Io,gn.hashId=Kr;function Xr(a){this.ma=a,this.qa=a.Ja,this.sa=null}Xr.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Xr.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=this.key=a=y.key,!0):(this.de(),!1)},Xr.prototype.Ad=function(){return this.next()},Xr.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.value=this.key=a=a.key):null},Xr.prototype.any=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Xr.prototype.all=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Xr.prototype.each=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;)a(y.key),y=y.va;return this},Xr.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new vn;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},Xr.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new vn;for(y=y.ea;y!==null;){var b=y.key;a(b)&&x.add(b),y=y.va}return x.iterator},Xr.prototype.de=function(){this.value=this.key=null,this.qa=-1},Xr.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},qe.Object.defineProperties(Xr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Xr.prototype.first=Xr.prototype.first,Xr.prototype.hasNext=Xr.prototype.Ad,Xr.prototype.next=Xr.prototype.next,Xr.prototype.reset=Xr.prototype.reset,Xr.className="MapKeySetIterator";function Ri(a){gn.call(this),qi(this),this._isFrozen=!0,this.ma=a}en(Ri,gn),ee=Ri.prototype,ee.freeze=function(){return this},ee.ka=function(){return this},ee.toString=function(){return"MapKeySet("+this.ma.toString()+")"},ee.add=function(){We("This Set is read-only: "+this.toString())},ee.contains=function(a){return this.ma.contains(a)},ee.has=function(a){return this.contains(a)},ee.remove=function(){We("This Set is read-only: "+this.toString())},ee.delete=function(a){return this.remove(a)},ee.clear=function(){We("This Set is read-only: "+this.toString())},ee.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Ri.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Ri.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Ri.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Ri.prototype.map=function(a){for(var y=new gn,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},Ri.prototype.filter=function(a){for(var y=new gn,x=this.ma.ea;x!==null;){var b=x.key;a(b)&&y.add(b),x=x.va}return y},Ri.prototype.copy=function(){return new Ri(this.ma)},Ri.prototype.Iv=function(){var a=new gn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Ri.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),x=0,b;for(b in a)y[x]=a[b].key,x++;return y},Ri.prototype.Hv=function(){var a=new vn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},qe.Object.defineProperties(Ri.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?hr:new Xr(this.ma)}}}),Ri.prototype.toList=Ri.prototype.Hv,Ri.prototype.toArray=Ri.prototype.Fa,Ri.prototype.toSet=Ri.prototype.Iv,Ri.prototype.first=Ri.prototype.first,Ri.prototype.clear=Ri.prototype.clear,Ri.prototype.delete=Ri.prototype.delete,Ri.prototype.remove=Ri.prototype.remove,Ri.prototype.has=Ri.prototype.has,Ri.prototype.contains=Ri.prototype.contains,Ri.prototype.add=Ri.prototype.add,Ri.prototype.thaw=Ri.prototype.ka,Ri.prototype.freeze=Ri.prototype.freeze,Ri.className="MapKeySet";function Cr(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}Cr.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},Cr.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},Cr.prototype.Ad=function(){return this.next()},Cr.prototype.first=function(){var a=this.ma;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},Cr.prototype.any=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Cr.prototype.all=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Cr.prototype.each=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},Cr.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new vn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Cr.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new vn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},Cr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},Cr.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},qe.Object.defineProperties(Cr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Cr.prototype.first=Cr.prototype.first,Cr.prototype.hasNext=Cr.prototype.Ad,Cr.prototype.next=Cr.prototype.next,Cr.prototype.reset=Cr.prototype.reset,Cr.className="MapValueSetIterator";function ba(a,y){this.key=a,this.value=y,this.ll=this.va=null}ba.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},ba.className="KeyValuePair";function uo(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}uo.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},uo.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.key=y.key,this.value=y.value,!0):(this.de(),!1)},uo.prototype.Ad=function(){return this.next()},uo.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.key=a.key,this.value=a.value,a):null},uo.prototype.any=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},uo.prototype.all=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},uo.prototype.each=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y),y=y.va;return this},uo.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new vn;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},uo.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new vn;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},uo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},uo.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},qe.Object.defineProperties(uo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),uo.prototype.first=uo.prototype.first,uo.prototype.hasNext=uo.prototype.Ad,uo.prototype.next=uo.prototype.next,uo.prototype.reset=uo.prototype.reset,uo.className="MapIterator";function Rn(a){qi(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.jf=this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&We("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}ee=Rn.prototype,ee.xb=function(){var a=this.Ja;a++,999999999=this.count)return hr;var a=this.Sa;return a!==null?(a.reset(),a):new uo(this)}},iteratorKeys:{get:function(){return 0>=this.count?hr:new Xr(this)}},iteratorValues:{get:function(){if(0>=this.count)return hr;var a=this.jf;return a!==null?(a.reset(),a):new Cr(this)}}}),Rn.prototype.toKeySet=Rn.prototype.Lf,Rn.prototype.toArray=Rn.prototype.Fa,Rn.prototype.clear=Rn.prototype.clear,Rn.prototype.delete=Rn.prototype.delete,Rn.prototype.remove=Rn.prototype.remove,Rn.prototype.get=Rn.prototype.get,Rn.prototype.getValue=Rn.prototype.I,Rn.prototype.has=Rn.prototype.has,Rn.prototype.contains=Rn.prototype.contains,Rn.prototype.first=Rn.prototype.first,Rn.prototype.addAll=Rn.prototype.addAll,Rn.prototype.set=Rn.prototype.set,Rn.prototype.add=Rn.prototype.add,Rn.prototype.thaw=Rn.prototype.ka,Rn.prototype.freeze=Rn.prototype.freeze,Rn.className="Map";function Ee(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):We("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var jo,Qo,Tl,Pa,_l;Ee.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Ee.prototype.h=function(a,y){return this.x=a,this.y=y,this},Ee.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Ee.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Ee.prototype.copy=function(){var a=new Ee;return a.x=this.x,a.y=this.y,a},ee=Ee.prototype,ee.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},ee.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},ee.freeze=function(){return this._isFrozen=!0,this},ee.ka=function(){return Object.isFrozen(this)&&We("cannot thaw constant: "+this),this._isFrozen=!1,this};function bu(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var tt=0;a[y]==="";)y++;return(b=a[y++])&&(tt=parseFloat(b)),new Ee(x,tt)}return new Ee}function ec(a){return a.x.toString()+" "+a.y.toString()}ee.toString=function(){return"Point("+this.x+","+this.y+")"},ee.D=function(a){return a instanceof Ee?this.x===a.x&&this.y===a.y:!1},ee.hi=function(a,y){return this.x===a&&this.y===y},ee.Xa=function(a){return Ge.B(this.x,a.x)&&Ge.B(this.y,a.y)},ee.add=function(a){return this.x+=a.x,this.y+=a.y,this},ee.re=function(a){return this.x-=a.x,this.y-=a.y,this},ee.offset=function(a,y){return this.x+=a,this.y+=y,this},Ee.prototype.rotate=function(a){if(a===0)return this;var y=this.x,x=this.y;if(y===0&&x===0)return this;if(360<=a?a-=360:0>a&&(a+=360),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));return this.x=a*y-b*x,this.y=b*y+a*x,this},ee=Ee.prototype,ee.scale=function(a,y){return this.x*=a,this.y*=y,this},ee.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},ee.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},ee.normalize=function(){var a=this.x,y=this.y,x=Math.sqrt(a*a+y*y);return 0y?270:0;if(y===0)return 0a?x=0>y?x+180:180-x:0>y&&(x=360-x),x}ee.Ry=function(a,y){return Ge.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},ee.fA=function(a,y,x,b){return Ge.qh(a,y,x,b,this.x,this.y,this),this},ee.gA=function(a,y){return Ge.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},ee.uA=function(a,y,x,b){return Ge.No(this.x,this.y,a,y,x,b,this),this},ee.vA=function(a,y){return Ge.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},ee.xi=function(a,y){return this.x=a.x+y.x*a.width+y.offsetX,this.y=a.y+y.y*a.height+y.offsetY,this},ee.yi=function(a,y,x,b,tt){return this.x=a+tt.x*x+tt.offsetX,this.y=y+tt.y*b+tt.offsetY,this},ee.transform=function(a){return a.Ga(this),this};function Er(a,y){return y.Cd(a),a}function Zr(a,y,x,b,tt,et){var nt=tt-x,ht=et-b,gt=nt*nt+ht*ht;x-=a,b-=y;var bt=-x*nt-b*ht;return 0>=bt||bt>=gt?(nt=tt-a,ht=et-y,Math.min(x*x+b*b,nt*nt+ht*ht)):(a=nt*b-ht*x,a*a/gt)}function aa(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function vi(a,y,x,b){return a=x-a,y=b-y,a===0?0y?270:0:y===0?0a?b=0>y?b+180:180-b:0>y&&(b=360-b),b)}ee.w=function(){return isFinite(this.x)&&isFinite(this.y)},Ee.alloc=function(){var a=qn.pop();return a===void 0?new Ee:a},Ee.allocAt=function(a,y){var x=qn.pop();return x===void 0?new Ee(a,y):(x.x=a,x.y=y,x)},Ee.free=function(a){qn.push(a)},Ee.prototype.isReal=Ee.prototype.w,Ee.prototype.setSpot=Ee.prototype.yi,Ee.prototype.setRectSpot=Ee.prototype.xi,Ee.prototype.snapToGridPoint=Ee.prototype.vA,Ee.prototype.snapToGrid=Ee.prototype.uA,Ee.prototype.projectOntoLineSegmentPoint=Ee.prototype.gA,Ee.prototype.projectOntoLineSegment=Ee.prototype.fA,Ee.intersectingLineSegments=function(a,y,x,b,tt,et,nt,ht){return Ge.Rl(a,y,x,b,tt,et,nt,ht)},Ee.prototype.compareWithLineSegmentPoint=Ee.prototype.Ry,Ee.compareWithLineSegment=function(a,y,x,b,tt,et){return Ge.Fl(a,y,x,b,tt,et)},Ee.prototype.direction=Ee.prototype.direction,Ee.prototype.directionPoint=Ee.prototype.ab,Ee.prototype.normalize=Ee.prototype.normalize,Ee.prototype.distanceSquared=Ee.prototype.zd,Ee.prototype.distanceSquaredPoint=Ee.prototype.Bf,Ee.prototype.scale=Ee.prototype.scale,Ee.prototype.rotate=Ee.prototype.rotate,Ee.prototype.offset=Ee.prototype.offset,Ee.prototype.subtract=Ee.prototype.re,Ee.prototype.add=Ee.prototype.add,Ee.prototype.equalsApprox=Ee.prototype.Xa,Ee.prototype.equalTo=Ee.prototype.hi,Ee.prototype.equals=Ee.prototype.D,Ee.prototype.set=Ee.prototype.set,Ee.prototype.setTo=Ee.prototype.sg;var qn=[];Ee.className="Point",Ee.parse=bu,Ee.stringify=ec,Ee.distanceLineSegmentSquared=Zr,Ee.distanceSquared=aa,Ee.direction=vi,Ee.Origin=jo=new Ee(0,0).ja(),Ee.InfiniteTopLeft=Qo=new Ee(-1/0,-1/0).ja(),Ee.InfiniteBottomRight=Tl=new Ee(1/0,1/0).ja(),Ee.SixPoint=Pa=new Ee(6,6).ja(),Ee.NoPoint=_l=new Ee(NaN,NaN).ja(),Ee.parse=bu,Ee.stringify=ec,Ee.distanceLineSegmentSquared=Zr,Ee.distanceSquared=aa,Ee.direction=vi;function xn(a,y){a===void 0?this.height=this.width=0:typeof a=="number"&&(0<=a||isNaN(a))&&typeof y=="number"&&(0<=y||isNaN(y))?(this.width=a,this.height=y):We("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var ai,zi,jr,Qr,Ur,mo,Jr;xn.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},xn.prototype.h=function(a,y){return this.width=a,this.height=y,this},xn.prototype.sg=function(a,y){return this.width=a,this.height=y,this},xn.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},xn.prototype.copy=function(){var a=new xn;return a.width=this.width,a.height=this.height,a},ee=xn.prototype,ee.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},ee.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},ee.freeze=function(){return this._isFrozen=!0,this},ee.ka=function(){return Object.isFrozen(this)&&We("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ca(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var tt=0;a[y]==="";)y++;return(b=a[y++])&&(tt=parseFloat(b)),new xn(x,tt)}return new xn}function Is(a){return a.width.toString()+" "+a.height.toString()}ee.toString=function(){return"Size("+this.width+","+this.height+")"},ee.D=function(a){return a instanceof xn?this.width===a.width&&this.height===a.height:!1},ee.hi=function(a,y){return this.width===a&&this.height===y},ee.Xa=function(a){return Ge.B(this.width,a.width)&&Ge.B(this.height,a.height)},ee.Bc=function(a,y){return a=this.width+a,this.width=0<=a?a:0,y=this.height+y,this.height=0<=y?y:0,this},ee.w=function(){return isFinite(this.width)&&isFinite(this.height)},xn.alloc=function(){var a=Ol.pop();return a===void 0?new xn:a},xn.free=function(a){Ol.push(a)},xn.prototype.isReal=xn.prototype.w,xn.prototype.inflate=xn.prototype.Bc,xn.prototype.equalsApprox=xn.prototype.Xa,xn.prototype.equalTo=xn.prototype.hi,xn.prototype.equals=xn.prototype.D,xn.prototype.set=xn.prototype.set,xn.prototype.setTo=xn.prototype.sg;var Ol=[];xn.className="Size",xn.parse=Ca,xn.stringify=Is,xn.ZeroSize=ai=new xn(0,0).ja(),xn.OneSize=zi=new xn(1,1).ja(),xn.SixSize=jr=new xn(6,6).ja(),xn.EightSize=Qr=new xn(8,8).ja(),xn.TenSize=Ur=new xn(10,10).ja(),xn.InfiniteSize=mo=new xn(1/0,1/0).ja(),xn.NoSize=Jr=new xn(NaN,NaN).ja(),xn.parse=Ca,xn.stringify=Is;function $e(a,y,x,b){a===void 0?this.height=this.width=this.y=this.x=0:typeof a=="number"&&typeof y=="number"&&typeof x=="number"&&(0<=x||isNaN(x))&&typeof b=="number"&&(0<=b||isNaN(b))?(this.x=a,this.y=y,this.width=x,this.height=b):a instanceof Ee?(x=a.x,a=a.y,y instanceof Ee?(b=y.x,y=y.y,this.x=Math.min(x,b),this.y=Math.min(a,y),this.width=Math.abs(x-b),this.height=Math.abs(a-y)):y instanceof xn?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):We("Incorrect second argument supplied to Rect constructor "+y)):We("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}ee=$e.prototype,ee.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},ee.h=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this};function Es(a,y,x){a.width=y,a.height=x}ee.sg=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this},ee.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},ee.dd=function(a){return this.x=a.x,this.y=a.y,this},ee.tA=function(a){return this.width=a.width,this.height=a.height,this},$e.prototype.copy=function(){var a=new $e;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},ee=$e.prototype,ee.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},ee.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},ee.freeze=function(){return this._isFrozen=!0,this},ee.ka=function(){return Object.isFrozen(this)&&We("cannot thaw constant: "+this),this._isFrozen=!1,this};function Pu(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var tt=0;a[y]==="";)y++;(b=a[y++])&&(tt=parseFloat(b));for(var et=0;a[y]==="";)y++;(b=a[y++])&&(et=parseFloat(b));for(var nt=0;a[y]==="";)y++;return(b=a[y++])&&(nt=parseFloat(b)),new $e(x,tt,et,nt)}return new $e}function Ba(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}ee.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},ee.D=function(a){return a instanceof $e?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},ee.hi=function(a,y,x,b){return this.x===a&&this.y===y&&this.width===x&&this.height===b},ee.Xa=function(a){return Ge.B(this.x,a.x)&&Ge.B(this.y,a.y)&&Ge.B(this.width,a.width)&&Ge.B(this.height,a.height)};function Cu(a,y){return Ge.$(a.x,y.x)&&Ge.$(a.y,y.y)&&Ge.$(a.width,y.width)&&Ge.$(a.height,y.height)}ee.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},ee.Re=function(a){return this.x<=a.x&&a.x+a.width<=this.x+this.width&&this.y<=a.y&&a.y+a.height<=this.y+this.height},ee.contains=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),this.x<=a&&a+x<=this.x+this.width&&this.y<=y&&y+b<=this.y+this.height},ee.offset=function(a,y){return this.x+=a,this.y+=y,this},ee.Bc=function(a,y){return qr(this,y,a,y,a)},ee.Co=function(a){return qr(this,a.top,a.right,a.bottom,a.left)},ee.Fv=function(a){return qr(this,-a.top,-a.right,-a.bottom,-a.left)},ee.Hz=function(a,y,x,b){return qr(this,a,y,x,b)};function qr(a,y,x,b,tt){var et=a.width;return x+tt<=-et?(a.x+=et/2,a.width=0):(a.x-=tt,a.width+=x+tt),x=a.height,y+b<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+b),a}ee.Ex=function(a){return $a(this,a.x,a.y,a.width,a.height)},ee.Uu=function(a,y,x,b){return $a(this,a,y,x,b)};function $a(a,y,x,b,tt){var et=Math.max(a.x,y),nt=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+b),x=Math.min(a.y+a.height,x+tt),a.x=et,a.y=nt,a.width=Math.max(0,y-et),a.height=Math.max(0,x-nt),a}ee.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},ee.Vu=function(a,y,x,b){var tt=this.width,et=this.x;return tt!==1/0&&x!==1/0&&(tt+=et,x+=a,isNaN(x)||isNaN(tt)||et>x||a>tt)?!1:(a=this.height,x=this.y,!(a!==1/0&&b!==1/0&&(a+=x,b+=y,isNaN(b)||isNaN(a)||x>b||y>a)))};function tl(a,y){var x=a.width,b=a.x,tt=y.x-10;return b>y.width+10+10+tt||tt>x+b?!1:(x=a.height,a=a.y,b=y.y-10,!(a>y.height+10+10+b||b>x+a))}ee.Ye=function(a){return xr(this,a.x,a.y,0,0)},ee.ed=function(a){return xr(this,a.x,a.y,a.width,a.height)},ee.Kv=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),xr(this,a,y,x,b)};function xr(a,y,x,b,tt){var et=Math.min(a.x,y),nt=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+b),x=Math.max(a.y+a.height,x+tt),a.x=et,a.y=nt,a.width=y-et,a.height=x-nt,a}ee.yi=function(a,y,x){return this.x=a-x.offsetX-x.x*this.width,this.y=y-x.offsetY-x.y*this.height,this};function Eo(a,y,x,b,tt,et,nt,ht){return nt===void 0&&(nt=0),ht===void 0&&(ht=0),a<=tt&&tt+nt<=a+x&&y<=et&&et+ht<=y+b}function Eu(a,y,x,b,tt,et,nt,ht){return a>nt+tt||tt>x+a?!1:!(y>ht+et||et>b+y)}ee.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},ee.Mz=function(){return this.width===0&&this.height===0},$e.alloc=function(){var a=la.pop();return a===void 0?new $e:a},$e.allocAt=function(a,y,x,b){var tt=la.pop();return tt===void 0?new $e(a,y,x,b):tt.h(a,y,x,b)},$e.free=function(a){la.push(a)},qe.Object.defineProperties($e.prototype,{left:{get:function(){return this.x},set:function(a){this.x=a}},top:{get:function(){return this.y},set:function(a){this.y=a}},right:{get:function(){return this.x+this.width},set:function(a){this.x+=a-(this.x+this.width)}},bottom:{get:function(){return this.y+this.height},set:function(a){this.y+=a-(this.y+this.height)}},position:{get:function(){return new Ee(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new xn(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Ee(this.x+this.width/2,this.y+this.height/2)},set:function(a){this.x=a.x-this.width/2,this.y=a.y-this.height/2}},centerX:{get:function(){return this.x+this.width/2},set:function(a){this.x=a-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(a){this.y=a-this.height/2}}}),$e.prototype.isEmpty=$e.prototype.Mz,$e.prototype.isReal=$e.prototype.w,$e.intersectsLineSegment=function(a,y,x,b,tt,et,nt,ht){return Ge.Fx(a,y,x,b,tt,et,nt,ht)},$e.prototype.setSpot=$e.prototype.yi,$e.prototype.union=$e.prototype.Kv,$e.prototype.unionRect=$e.prototype.ed,$e.prototype.unionPoint=$e.prototype.Ye,$e.prototype.intersects=$e.prototype.Vu,$e.prototype.intersectsRect=$e.prototype.Yc,$e.prototype.intersect=$e.prototype.Uu,$e.prototype.intersectRect=$e.prototype.Ex,$e.prototype.grow=$e.prototype.Hz,$e.prototype.subtractMargin=$e.prototype.Fv,$e.prototype.addMargin=$e.prototype.Co,$e.prototype.inflate=$e.prototype.Bc,$e.prototype.offset=$e.prototype.offset,$e.prototype.contains=$e.prototype.contains,$e.prototype.containsRect=$e.prototype.Re,$e.prototype.containsPoint=$e.prototype.ca,$e.prototype.equalsApprox=$e.prototype.Xa,$e.prototype.equalTo=$e.prototype.hi,$e.prototype.equals=$e.prototype.D,$e.prototype.setSize=$e.prototype.tA,$e.prototype.setPoint=$e.prototype.dd,$e.prototype.set=$e.prototype.set,$e.prototype.setTo=$e.prototype.sg;var Jo=null,ch=null,la=[];$e.className="Rect",$e.parse=Pu,$e.stringify=Ba,$e.contains=Eo,$e.intersects=Eu,$e.ZeroRect=Jo=new $e(0,0,0,0).ja(),$e.NoRect=ch=new $e(NaN,NaN,NaN,NaN).ja(),$e.parse=Pu,$e.stringify=Ba,$e.contains=Eo,$e.intersects=Eu;function Yn(a,y,x,b){a===void 0?this.left=this.bottom=this.right=this.top=0:y===void 0?this.left=this.bottom=this.right=this.top=a:x===void 0?(this.top=a,this.right=y,this.bottom=a,this.left=y):b!==void 0?(this.top=a,this.right=y,this.bottom=x,this.left=b):We("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}Yn.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Yn.prototype.sg=function(a,y,x,b){return this.top=a,this.right=y,this.bottom=x,this.left=b,this},Yn.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Yn.prototype.copy=function(){var a=new Yn;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},ee=Yn.prototype,ee.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},ee.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},ee.freeze=function(){return this._isFrozen=!0,this},ee.ka=function(){return Object.isFrozen(this)&&We("cannot thaw constant: "+this),this._isFrozen=!1,this};function If(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=NaN;a[y]==="";)y++;var b=a[y++];if(b&&(x=parseFloat(b)),isNaN(x))return new Yn;for(var tt=NaN;a[y]==="";)y++;if((b=a[y++])&&(tt=parseFloat(b)),isNaN(tt))return new Yn(x);for(var et=NaN;a[y]==="";)y++;if((b=a[y++])&&(et=parseFloat(b)),isNaN(et))return new Yn(x,tt);for(var nt=NaN;a[y]==="";)y++;return(b=a[y++])&&(nt=parseFloat(b)),isNaN(nt)?new Yn(x,tt):new Yn(x,tt,et,nt)}return new Yn}function ic(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}ee.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},ee.D=function(a){return a instanceof Yn?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},ee.hi=function(a,y,x,b){return this.top===a&&this.right===y&&this.bottom===x&&this.left===b},ee.Xa=function(a){return Ge.B(this.top,a.top)&&Ge.B(this.right,a.right)&&Ge.B(this.bottom,a.bottom)&&Ge.B(this.left,a.left)},ee.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Yn.alloc=function(){var a=Uc.pop();return a===void 0?new Yn:a},Yn.free=function(a){Uc.push(a)},Yn.prototype.isReal=Yn.prototype.w,Yn.prototype.equalsApprox=Yn.prototype.Xa,Yn.prototype.equalTo=Yn.prototype.hi,Yn.prototype.equals=Yn.prototype.D,Yn.prototype.set=Yn.prototype.set,Yn.prototype.setTo=Yn.prototype.sg;var Ra=null,Gc=null,Uc=[];Yn.className="Margin",Yn.parse=If,Yn.stringify=ic,Yn.ZeroMargin=Ra=new Yn(0,0,0,0).ja(),Yn.TwoMargin=Gc=new Yn(2,2,2,2).ja(),Yn.parse=If,Yn.stringify=ic;function jn(a,y,x,b){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),b===void 0&&(b=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=b),this._isFrozen=!1}var $r,vo,Zs,$l,jl,wi,fh,el,Fs,qo,gl,ml,As,Ea,yn,ci,Ei,Ii,rr,ji,Ir,Nr,$o,bo,Ms,oo,rc,dh,vl,nl,Fo,vs,Ao,Po,il,tu;jn.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},jn.prototype.sg=function(a,y,x,b){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=b,this},jn.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},jn.prototype.copy=function(){var a=new jn;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},ee=jn.prototype,ee.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},ee.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},ee.freeze=function(){return this._isFrozen=!0,this},ee.ka=function(){return Object.isFrozen(this)&&We("cannot thaw constant: "+this),this._isFrozen=!1,this};function ho(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function Ff(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return $r;if(a==="TopLeft")return vo;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Zs;if(a==="TopRight")return $l;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return jl;if(a==="Center")return wi;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return fh;if(a==="BottomLeft")return el;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return Fs;if(a==="BottomRight")return qo;if(a==="TopSide")return gl;if(a==="LeftSide")return ml;if(a==="RightSide")return As;if(a==="BottomSide")return Ea;if(a==="TopBottomSides")return yn;if(a==="LeftRightSides")return ci;if(a==="TopLeftSides")return Ei;if(a==="TopRightSides")return Ii;if(a==="BottomLeftSides")return rr;if(a==="BottomRightSides")return ji;if(a==="NotTopSide")return Ir;if(a==="NotLeftSide")return Nr;if(a==="NotRightSide")return $o;if(a==="NotBottomSide")return bo;if(a==="AllSides")return Ms;if(a==="Default")return oo;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b!==void 0&&0a&&(a+=360),a===0)return this;if(this.translate(y,x),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var tt=this.m12*a+this.m22*b,et=this.m11*-b+this.m21*a,nt=this.m12*-b+this.m22*a;return this.m11=this.m11*a+this.m21*b,this.m12=tt,this.m21=et,this.m22=nt,this.translate(-y,-x),this},ee=Xn.prototype,ee.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},ee.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},ee.Ga=function(a){var y=a.x,x=a.y;return a.h(y*this.m11+x*this.m21+this.dx,y*this.m12+x*this.m22+this.dy)},ee.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=a.x,b=a.y;return a.h(x*this.m22*y+b*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+b*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},ee.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=1.25*a.x,b=1.2*a.y;return a.h(x*this.m22*y+b*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+b*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},ee.pp=function(a){var y=a.x,x=a.y,b=y+a.width,tt=x+a.height,et=this.m11,nt=this.m12,ht=this.m21,gt=this.m22,bt=this.dx,Pt=this.dy,Nt=y*et+x*ht+bt,zt=y*nt+x*gt+Pt,Vt=b*et+x*ht+bt,Zt=b*nt+x*gt+Pt;return x=y*et+tt*ht+bt,y=y*nt+tt*gt+Pt,et=b*et+tt*ht+bt,b=b*nt+tt*gt+Pt,tt=Math.min(Nt,Vt),Nt=Math.max(Nt,Vt),Vt=Math.min(zt,Zt),zt=Math.max(zt,Zt),tt=Math.min(tt,x),Nt=Math.max(Nt,x),Vt=Math.min(Vt,y),zt=Math.max(zt,y),tt=Math.min(tt,et),Nt=Math.max(Nt,et),Vt=Math.min(Vt,b),zt=Math.max(zt,b),a.h(tt,Vt,Nt-tt,zt-Vt),a},Xn.alloc=function(){var a=qd.pop();return a===void 0?new Xn:a},Xn.free=function(a){qd.push(a)},Xn.prototype.transformRect=Xn.prototype.pp,Xn.prototype.transformPoint=Xn.prototype.Ga,Xn.prototype.scale=Xn.prototype.scale,Xn.prototype.translate=Xn.prototype.translate,Xn.prototype.rotate=Xn.prototype.rotate,Xn.prototype.invert=Xn.prototype.Vj,Xn.prototype.multiplyInverted=Xn.prototype.bv,Xn.prototype.multiply=Xn.prototype.multiply,Xn.prototype.reset=Xn.prototype.reset,Xn.prototype.isIdentity=Xn.prototype.ws,Xn.prototype.equals=Xn.prototype.D,Xn.prototype.setTransform=Xn.prototype.setTransform,Xn.prototype.set=Xn.prototype.set;var qd=[];Xn.className="Transform",Xn.xF="54a702f3e53909c447824c6706603faf4c";var Ge={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Ge.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);Ge.Uv=y}return 1>a?(x=1/a,2e3>=x?1/y[x|0]:Math.sqrt(a)):2e3>=a?y[a|0]:Math.sqrt(a)},B:function(a,y){return a-=y,.5>a&&-.5a&&-5e-8=tt&&(tt=1e-6),aPt-bt)if(a-x>tt||x-a>tt){if(et=(b-y)/(x-a)*(et-a)+y,et-tt<=nt&&nt<=et+tt)return!0}else return!0;else if(y-b>tt||b-y>tt){if(nt=(x-a)/(b-y)*(nt-y)+a,nt-tt<=et&&et<=nt+tt)return!0}else return!0;return!1},cs:function(a,y,x,b,tt,et,nt,ht,gt,bt,Pt,Nt){if(Ge.Yb(a,y,nt,ht,Nt,x,b)&&Ge.Yb(a,y,nt,ht,Nt,tt,et))return Ge.Yb(a,y,nt,ht,Nt,bt,Pt);var zt=(a+x)/2,Vt=(y+b)/2,Zt=(x+tt)/2,oe=(b+et)/2;tt=(tt+nt)/2,et=(et+ht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;var Zt=(b+zt)/2,oe=(x+Vt)/2;Ge.Qe(a,y,Pt,Nt,b,x,Zt,oe,gt,bt),Ge.Qe(Zt,oe,zt,Vt,tt,et,nt,ht,gt,bt)}return bt},jv:function(a,y,x,b,tt,et,nt,ht,gt,bt){if(Ge.Yb(a,y,tt,et,bt,x,b))return Ge.Yb(a,y,tt,et,bt,ht,gt);var Pt=(a+x)/2,Nt=(y+b)/2;x=(x+tt)/2,b=(b+et)/2;var zt=(Pt+x)/2,Vt=(Nt+b)/2;return Ge.jv(a,y,Pt,Nt,zt,Vt,nt,ht,gt,bt)||Ge.jv(zt,Vt,x,b,tt,et,nt,ht,gt,bt)},OA:function(a,y,x,b,tt,et,nt){return nt.h(((a+x)/2+(x+tt)/2)/2,((y+b)/2+(b+et)/2)/2),nt},iv:function(a,y,x,b,tt,et,nt,ht){if(Ge.Yb(a,y,tt,et,nt,x,b))xr(ht,a,y,0,0),xr(ht,tt,et,0,0);else{var gt=(a+x)/2,bt=(y+b)/2;x=(x+tt)/2,b=(b+et)/2;var Pt=(gt+x)/2,Nt=(bt+b)/2;Ge.iv(a,y,gt,bt,Pt,Nt,nt,ht),Ge.iv(Pt,Nt,x,b,tt,et,nt,ht)}return ht},ep:function(a,y,x,b,tt,et,nt,ht){if(Ge.Yb(a,y,tt,et,nt,x,b))ht.length===0&&(ht.push(a),ht.push(y)),ht.push(tt),ht.push(et);else{var gt=(a+x)/2,bt=(y+b)/2;x=(x+tt)/2,b=(b+et)/2;var Pt=(gt+x)/2,Nt=(bt+b)/2;Ge.ep(a,y,gt,bt,Pt,Nt,nt,ht),Ge.ep(Pt,Nt,x,b,tt,et,nt,ht)}return ht},Eo:function(a,y,x,b,tt,et,nt,ht,gt,bt,Pt,Nt,zt,Vt){if(Ge.Yb(a,y,nt,ht,zt,x,b)&&Ge.Yb(a,y,nt,ht,zt,tt,et))return!Ge.Rl(a,y,nt,ht,gt,bt,Pt,Nt)||(zt=(a-nt)*(bt-Nt)-(y-ht)*(gt-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et-y)/(nt-ht),Ge.$(nt,0)?(aa?(gt.h(a,y),!1):(gt.h(tt,y),!0)):Ge.qh(a,y,x,b,tt,nt*(tt-a)+y,gt))))},MA:function(a,y,x,b,tt){return Ge.Ve(x.x,x.y,b.x,b.y,a.x,a.y,y.x,y.y,tt)},KA:function(a,y,x,b,tt,et,nt,ht,gt,bt){function Pt(Pe,de){var Le=(Pe-a)*(Pe-a)+(de-y)*(de-y);Le(x>a?x-a:a-x)){if(zt=1-(x-tt)*(x-tt)/(zt*zt),0>zt)return gt;zt=Math.sqrt(zt),b=-bt*zt+et,Pt(x,bt*zt+et),Pt(x,b)}else{if(x=(b-y)/(x-a),b=1/(zt*zt)+x*x/(bt*bt),ht=2*x*(y-x*a)/(bt*bt)-2*x*et/(bt*bt)-2*tt/(zt*zt),zt=ht*ht-4*b*(2*x*a*et/(bt*bt)-2*y*et/(bt*bt)+et*et/(bt*bt)+tt*tt/(zt*zt)-1+(y-x*a)*(y-x*a)/(bt*bt)),0>zt)return gt;zt=Math.sqrt(zt),bt=(-ht+zt)/(2*b),Pt(bt,x*bt-x*a+y),zt=(-ht-zt)/(2*b),Pt(zt,x*zt-x*a+y)}return gt},Ff:function(a,y,x,b,tt,et,nt,ht,gt){var bt=1e21,Pt=a,Nt=y;if(Ge.Ve(a,y,a,b,tt,et,nt,ht,gt)){var zt=(gt.x-tt)*(gt.x-tt)+(gt.y-et)*(gt.y-et);ztbt},us:function(a,y,x){return Ge.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,b,tt,et,nt,ht){var gt=a+x,bt=y+b;return tt===nt?(et=y):et===ht?(tt=a):!!(Eo(a,y,x,b,tt,et)||Eo(a,y,x,b,nt,ht)||Ge.Rl(a,y,gt,y,tt,et,nt,ht)||Ge.Rl(gt,y,gt,bt,tt,et,nt,ht)||Ge.Rl(gt,bt,a,bt,tt,et,nt,ht)||Ge.Rl(a,bt,a,y,tt,et,nt,ht))},Rl:function(a,y,x,b,tt,et,nt,ht){return a===x&&y===b&&tt===nt&&et===ht?a===tt&&y===et:0>=Ge.Fl(a,y,x,b,tt,et)*Ge.Fl(a,y,x,b,nt,ht)&&0>=Ge.Fl(tt,et,nt,ht,a,y)*Ge.Fl(tt,et,nt,ht,x,b)},Fl:function(a,y,x,b,tt,et){return x-=a,b-=y,a=tt-a,y=et-y,et=a*b-y*x,et===0&&(et=a*x+y*b,0et&&(et=0))),et},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,b,tt,et){var nt=Math.PI;et||(b*=nt/180,tt*=nt/180);var ht=b>tt?-1:1;et=[];var gt=nt/2,bt=b;if(b=Math.min(2*nt,Math.abs(tt-b)),1e-5>b)return gt=bt+ht*Math.min(b,gt),ht=a+x*Math.cos(bt),bt=y+x*Math.sin(bt),a+=x*Math.cos(gt),y+=x*Math.sin(gt),x=(ht+a)/2,gt=(bt+y)/2,et.push([ht,bt,x,gt,x,gt,a,y]),et;for(;1e-5x,et=0>b;if(abt&&(y=.5*(ht+gt),!(y===ht||y===gt));++bt){var Pt=a/(y+tt),Nt=nt/(y+et);if(Pt=Pt*Pt+Nt*Nt-1,0Pt)gt=y;else break}x=tt*x/(y+tt)-x,b=et*b/(y+et)-b,x=Math.sqrt(x*x+b*b)}else x=Math.abs(b-y);else b=a*a-y*y,et=a*x,eta?"M"+this.startX.toString()+" "+this.startY.toString()+"L"+this.endX.toString()+" "+this.endY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a)+"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);case pn.u:var y=new $e(this.startX,this.startY,0,0);return y.Kv(this.endX,this.endY,0,0),0>a?"M"+y.x.toString()+" "+y.y.toString()+"H"+y.right.toString()+"V"+y.bottom.toString()+"H"+y.left.toString()+"z":"M"+y.x.toFixed(a)+" "+y.y.toFixed(a)+"H"+y.right.toFixed(a)+"V"+y.bottom.toFixed(a)+"H"+y.left.toFixed(a)+"z";case pn.F:if(y=new $e(this.startX,this.startY,0,0),y.Kv(this.endX,this.endY,0,0),0>a)return a=y.left.toString()+" "+(y.y+y.height/2).toString(),"M"+a+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+(y.right.toString()+" "+(y.y+y.height/2).toString())+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+a;var x=y.left.toFixed(a)+" "+(y.y+y.height/2).toFixed(a);return"M"+x+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+(y.right.toFixed(a)+" "+(y.y+y.height/2).toFixed(a))+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+x;case pn.o:y="",x=this.figures.s;for(var b=x.length,tt=0;tt=De-1?!0:bt[oe+1].match(Re)!==null}function b(){return oe++,bt[oe]}function tt(Gn){var Fn=parseFloat(b()),yi=parseFloat(b());Pe===Pe.toLowerCase()&&(Fn=Oe.x+Fn,yi=Oe.y+yi),Gn.h(Fn,yi)}function et(){return tt(Oe),Oe}function nt(){return tt(Le),Le}function ht(){var Gn=de.toLowerCase();return Gn!=="c"&&Gn!=="s"&&Gn!=="q"&&Gn!=="t"?Oe:new Ee(2*Oe.x-Le.x,2*Oe.y-Le.y)}y===void 0&&(y=!1);var gt=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(gt,"$1 $2"),a=a.replace(gt,"$1 $2"),a=a.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),a=a.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),a=a.replace(/([0-9])([+\-])/gm,"$1 $2"),a=a.replace(/[\s\r\t\n]+/gm," "),a=a.replace(/^\s+|\s+$/g,"");var bt=a.split(" ");for(a=0;a=De-1);)if(de=Pe,Pe=b(),Pe!=="")switch(Pe.toUpperCase()){case"X":Vt=!0,Nt=Pt=!1;break;case"M":for(Zt=et(),a.mc===null||Vt===!0?(Ed(a,Zt.x,Zt.y,Pt,!Nt,zt),Vt=!1):a.moveTo(Zt.x,Zt.y),gt.assign(Oe);!x();)Zt=et(),a.lineTo(Zt.x,Zt.y);break;case"L":for(;!x();)Zt=et(),a.lineTo(Zt.x,Zt.y);break;case"H":for(;!x();)Oe=new Ee((Pe===Pe.toLowerCase()?Oe.x:0)+parseFloat(b()),Oe.y),a.lineTo(Oe.x,Oe.y);break;case"V":for(;!x();)Oe=new Ee(Oe.x,(Pe===Pe.toLowerCase()?Oe.y:0)+parseFloat(b())),a.lineTo(Oe.x,Oe.y);break;case"C":for(;!x();){Zt=new Ee,tt(Zt);var Ve=nt(),Sn=et();Ku(a,Zt.x,Zt.y,Ve.x,Ve.y,Sn.x,Sn.y)}break;case"S":for(;!x();)Zt=ht(),Ve=nt(),Sn=et(),Ku(a,Zt.x,Zt.y,Ve.x,Ve.y,Sn.x,Sn.y);break;case"Q":for(;!x();)Zt=nt(),Ve=et(),Fm(a,Zt.x,Zt.y,Ve.x,Ve.y);break;case"T":for(;!x();)Le=Zt=ht(),Ve=et(),Fm(a,Zt.x,Zt.y,Ve.x,Ve.y);break;case"B":for(;!x();){Zt=parseFloat(b()),Ve=parseFloat(b()),Sn=parseFloat(b());var Mn=parseFloat(b()),Pn=parseFloat(b()),hn=Pn,rn=!1;x()||(hn=parseFloat(b()),x()||(rn=parseFloat(b())!==0)),Pe===Pe.toLowerCase()&&(Sn+=Oe.x,Mn+=Oe.y),a.arcTo(Zt,Ve,Sn,Mn,Pn,hn,rn)}break;case"A":for(;!x();)Zt=Math.abs(parseFloat(b())),Ve=Math.abs(parseFloat(b())),Sn=parseFloat(b()),Pn=Mn=!1,rn=hn=0,hn=b(),hn.length===1?(Mn=!!parseFloat(hn),Pn=!!parseFloat(b()),hn=parseFloat(b())):hn.length===2?(Mn=!!parseFloat(hn[0]),Pn=!!parseFloat(hn[1]),hn=parseFloat(b())):(Mn=!!parseFloat(hn[0]),Pn=!!parseFloat(hn[1]),hn=parseFloat(hn.slice(2))),rn=parseFloat(b()),Pe===Pe.toLowerCase()&&(hn=Oe.x+hn,rn=Oe.y+rn),Oe.h(hn,rn),Pw(a,Zt,Ve,Sn,Mn,Pn,hn,rn);break;case"Z":bw(a),Oe.assign(gt);break;case"F":for(Zt="",Ve=1;bt[oe+Ve];)if(bt[oe+Ve]==="0")zt=!0,Ve++;else if(bt[oe+Ve].match(/[Uu]/)!==null)Ve++;else if(bt[oe+Ve].match(Re)===null)Ve++;else{Zt=bt[oe+Ve];break}Zt.match(/[Mm]/)?Pt=!0:0nt&&(nt+=360),Zt.startAngle+=nt),0>a&&(Zt.startAngle=180-Zt.startAngle,Zt.sweepAngle=-Zt.sweepAngle),0>b&&(Zt.startAngle=-Zt.startAngle,Zt.sweepAngle=-Zt.sweepAngle),Zt.radiusX*=Math.sqrt(a*a+x*x),Zt.radiusY!==void 0&&(Zt.radiusY*=Math.sqrt(y*y+b*b));break;case ua:if(nt=Zt.endX,ht=Zt.endY,Zt.endX=nt*a+ht*x+tt,Zt.endY=nt*y+ht*b+et,Zt.radiusX===0||Zt.radiusY===0)break;y!==0&&(nt=180*Math.atan2(y,a)/Math.PI,0>nt&&(nt+=360),Zt.xAxisRotation+=nt),0>a&&(Zt.xAxisRotation=180-Zt.xAxisRotation,Zt.isClockwiseArc=!Zt.isClockwiseArc),0>b&&(Zt.xAxisRotation=-Zt.xAxisRotation,Zt.isClockwiseArc=!Zt.isClockwiseArc),Zt.radiusX*=Math.sqrt(a*a+x*x),Zt.radiusY*=Math.sqrt(y*y+b*b);break;default:We("Unknown Segment type: "+Zt.type)}}}}return this._isInvalidBounds=!0,this},ee.ca=function(a,y){y===void 0&&(y=0);var x=this.od,b=this.pd,tt=this.Dc,et=this.Ec;switch(this.type){case pn.j:return Ge.Yb(x,b,tt,et,y,a.x,a.y);case pn.u:var nt=$e.allocAt(Math.min(x,tt)-y,Math.min(b,et)-y,Math.abs(tt-x)+2*y,Math.abs(et-b)+2*y);return a=nt.ca(a),$e.free(nt),a;case pn.F:nt=Math.min(x,tt)-y;var ht=Math.min(b,et)-y;return x=(Math.abs(tt-x)+2*y)/2,y=(Math.abs(et-b)+2*y)/2,0>=x||0>=y?!1:(nt=a.x-(nt+x),ht=a.y-(ht+y),1>=nt*nt/(x*x)+ht*ht/(y*y));case pn.o:return eu(this,a,y,!0,!1);default:return!1}};function eu(a,y,x,b,tt){var et=y.x;y=y.y;for(var nt=a.bounds.x-20,ht=0,gt,bt,Pt,Nt,zt=a.figures.s,Vt=zt.length,Zt=0;Zt=a)return 0;if((tt>nt?tt-nt:nt-tt)<(et>ht?et-ht:ht-et)){if(etht)return 0}else if(yet)return 0}else if(ttnt)return 0}else if(bttt)return 0;return 0a?a=0:1=et)return b=et-nt,b=Pt===0?0:b/Pt,x=x[ht],ht=x[2*a],tt=x[2*a+1],y.h(ht+(x[2*a+2]-ht)*b,tt+(x[2*a+3]-tt)*b),y;nt+=Pt}}return y},ee.wx=function(a){if(0>a?a=0:1=tt)return tt=y[nt],y=tt[2*a],x=tt[2*a+1],b=tt[2*a+2],a=tt[2*a+3],1>Math.abs(b-y)&&1>Math.abs(a-x)?0:1>Math.abs(b-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=b-y?0:180:180*Math.atan2(a-x,b-y)/Math.PI;et+=bt}}return NaN},ee.Qu=function(a,y){if(0>a?a=0:1=et)return b=et-nt,b=Pt===0?0:b/Pt,Pt=x[ht],x=Pt[2*a],ht=Pt[2*a+1],tt=Pt[2*a+2],a=Pt[2*a+3],y[0]=x+(tt-x)*b,y[1]=ht+(a-ht)*b,y[2]=1>Math.abs(tt-x)&&1>Math.abs(a-ht)?0:1>Math.abs(tt-x)?0<=a-ht?90:270:1>Math.abs(a-ht)?0<=tt-x?0:180:180*Math.atan2(a-ht,tt-x)/Math.PI,y;nt+=Pt}}return y},ee.xx=function(a){if(this.type===pn.j){var y=this.startX,x=this.startY,b=this.endX,tt=this.endY;if(y!==b||x!==tt){var et=a.x;if(a=a.y,y===b){if(x=b?b===x?0:1:Math.abs(a-x)/(b-nt)}if(x===tt)return y=b?b===y?0:1:Math.abs(et-y)/(b-nt);nt=(b-y)*(b-y)+(tt-x)*(tt-x);var ht=Ee.alloc();return Ge.qh(y,x,b,tt,et,a,ht),a=ht.x,et=ht.y,Ee.free(ht),Math.sqrt(((a-y)*(a-y)+(et-x)*(et-x))/nt)}}else if(this.type===pn.u){nt=this.startX,ht=this.startY;var gt=this.endX;if(tt=this.endY,nt!==gt||ht!==tt){y=gt-nt,x=tt-ht,et=2*y+2*x,b=a.x,a=a.y,b=Math.min(Math.max(b,nt),gt),a=Math.min(Math.max(a,ht),tt),nt=Math.abs(b-nt),gt=Math.abs(b-gt),ht=Math.abs(a-ht),tt=Math.abs(a-tt);var bt=Math.min(nt,gt,ht,tt);if(bt===ht)return b/et;if(bt===gt)return(y+a)/et;if(bt===tt)return(2*y+x-b)/et;if(bt===nt)return(2*y+2*x-a)/et}}else{y=this.flattenedSegments,x=this.flattenedLengths,et=this.flattenedTotalLength,b=Ee.alloc(),tt=1/0,ht=nt=0,gt=y.length;for(var Pt=bt=0,Nt=0;Nta?0:1a?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a),x=this.segments.s,b=x.length,tt=0;tta&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(b,0),this.Pg=Math.max(tt,0),typeof nt=="boolean"?nt&&(this.isLargeArc=!0):typeof nt=="number"&&nt&&(this.isLargeArc=!0),ht&&(this.isClockwiseArc=!0)):(this.Ne=b,this.Vh=tt,a===Dr&&(et=Math.max(et,0)),this.Wh=et,typeof nt=="number"?(a===Dr&&(nt=Math.max(nt,0)),this.Pg=nt):this.Pg=0),this.ae=null}gi.prototype.copy=function(){var a=new gi;return a.na=this.na,a.l=this.l&-2,a.Dc=this.Dc,a.Ec=this.Ec,a.Ne=this.Ne,a.Vh=this.Vh,a.Wh=this.Wh,a.Pg=this.Pg,a},ee=gi.prototype,ee.Xa=function(a){if(!(a instanceof gi)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case eo:case Gi:return Ge.B(this.endX,a.endX)&&Ge.B(this.endY,a.endY);case Mo:return Ge.B(this.endX,a.endX)&&Ge.B(this.endY,a.endY)&&Ge.B(this.point1X,a.point1X)&&Ge.B(this.point1Y,a.point1Y)&&Ge.B(this.point2X,a.point2X)&&Ge.B(this.point2Y,a.point2Y);case Qs:return Ge.B(this.endX,a.endX)&&Ge.B(this.endY,a.endY)&&Ge.B(this.point1X,a.point1X)&&Ge.B(this.point1Y,a.point1Y);case Dr:return Ge.B(this.startAngle,a.startAngle)&&Ge.B(this.sweepAngle,a.sweepAngle)&&Ge.B(this.centerX,a.centerX)&&Ge.B(this.centerY,a.centerY)&&Ge.B(this.radiusX,a.radiusX)&&Ge.B(this.radiusY,a.radiusY);case ua:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Ge.B(this.xAxisRotation,a.xAxisRotation)&&Ge.B(this.endX,a.endX)&&Ge.B(this.endY,a.endY)&&Ge.B(this.radiusX,a.radiusX)&&Ge.B(this.radiusY,a.radiusY);default:return!1}},ee.qb=function(a){a.classType===gi&&(this.type=a)},ee.toString=function(a){switch(a===void 0&&(a=-1),this.type){case eo:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Gi:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Mo:a=0>a?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.point2X.toFixed(a)+" "+this.point2Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Qs:a=0>a?"Q"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"Q"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Dr:a=0>a?"B"+this.startAngle.toString()+" "+this.sweepAngle.toString()+" "+this.centerX.toString()+" "+this.centerY.toString()+" "+this.radiusX.toString()+" "+this.radiusY.toString():"B"+this.startAngle.toFixed(a)+" "+this.sweepAngle.toFixed(a)+" "+this.centerX.toFixed(a)+" "+this.centerY.toFixed(a)+" "+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a);break;case ua:a=0>a?"A"+this.radiusX.toString()+" "+this.radiusY.toString()+" "+this.xAxisRotation.toString()+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toString()+" "+this.endY.toString():"A"+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a)+" "+this.xAxisRotation.toFixed(a)+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;default:a=this.type.toString()}return a+(this.isClosed?"z":"")},ee.freeze=function(){return this._isFrozen=!0,this},ee.ka=function(){return this._isFrozen=!1,this},ee.close=function(){return this.isClosed=!0,this};function Bs(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var x=a.radiusX,b=a.radiusY;if(b===void 0&&(b=x),x===0||b===0)return a.ae=[],a.ae;y=a.Ne;var tt=a.Vh,et=Ge.jx(0,0,x=Vt?nt=Math.PI:1<=Vt&&(nt=0),!gt&&0nt&&(nt+=2*Math.PI),gt=y>et?1:y/et,Vt=y>et?et/y:1,y=Ge.jx(0,0,y>et?y:et,Pt,Pt+nt,!0),et=Xn.alloc(),et.reset(),et.translate(x,b),et.rotate(a.Ne,0,0),et.scale(gt,Vt),pn.Ha(y,et),Xn.free(et),a.ae=y,a.ae}qe.Object.defineProperties(gi.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},isClosed:{get:function(){return(this.l&8)!==0},set:function(a){this.isClosed!==a&&(this.l=a?this.l|8:this.l&-9,this._isInvalidBounds=!0)}},type:{get:function(){return this.na},set:function(a){this._isFrozen&&Nn(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Nn(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&Nn(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Nn(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Nn(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&Nn(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&Nn(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Nn(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Nn(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&ti(a,">= zero",gi,"radiusX"),this._isFrozen&&Nn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&ti(a,">= zero",gi,"radiusY"),this._isFrozen&&Nn(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Nn(this,a),a%=360,0>a&&(a+=360),this.Dc=a,this._isInvalidBounds=!0}},sweepAngle:{get:function(){return this.Ec},set:function(a){this._isFrozen&&Nn(this,a),360a&&(a=-360),this.Ec=a,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&Nn(this,a),this.l=a?this.l|4:this.l&-5,this._isInvalidBounds=!0}},isLargeArc:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&Nn(this,a),this.l=a?this.l|16:this.l&-17,this._isInvalidBounds=!0}},xAxisRotation:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Nn(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),gi.prototype.equalsApprox=gi.prototype.Xa;var eo=new sn(gi,"Move",0),Gi=new sn(gi,"Line",1),Mo=new sn(gi,"Bezier",2),Qs=new sn(gi,"QuadraticBezier",3),Dr=new sn(gi,"Arc",4),ua=new sn(gi,"SvgArc",4);gi.className="PathSegment",gi.Move=eo,gi.Line=Gi,gi.Bezier=Mo,gi.QuadraticBezier=Qs,gi.Arc=Dr,gi.SvgArc=ua;function Uo(){this.H=null,this.xu=new Ee(0,0).freeze(),this.mt=new Ee(0,0).freeze(),this.Bp=this.Rq=0,this.Cp=1,this.xq="",this.Wr=this.Tp=!1,this.Rp=this.Ep=0,this.xg=this.nq=this.tq=!1,this.Zp=null,this.Rr=0,this.xd=this.Nr=null}Uo.prototype.copy=function(){var a=new Uo;return this.clone(a)},Uo.prototype.clone=function(a){return a.H=this.H,a.xu.assign(this.viewPoint),a.mt.assign(this.documentPoint),a.Rq=this.Rq,a.Bp=this.Bp,a.Cp=this.Cp,a.xq=this.xq,a.Tp=this.Tp,a.Wr=this.Wr,a.Ep=this.Ep,a.Rp=this.Rp,a.tq=this.tq,a.nq=this.nq,a.xg=this.xg,a.Zp=this.Zp,a.Rr=this.Rr,a.Nr=this.Nr,a.xd=this.xd,a},Uo.prototype.toString=function(){var a="^";return this.modifiers!==0&&(a+="M:"+this.modifiers),this.button!==0&&(a+="B:"+this.button),this.key!==""&&(a+="K:"+this.key),this.clickCount!==0&&(a+="C:"+this.clickCount),this.delta!==0&&(a+="D:"+this.delta),this.handled&&(a+="h"),this.bubbles&&(a+="b"),this.documentPoint!==null&&(a+="@"+this.documentPoint.toString()),a},Uo.prototype.So=function(a,y){var x=this.diagram;return x===null||vp(x,a,y),y},Uo.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(vp(x,a,y),y.assign(x.Ps(y))),y},qe.Object.defineProperties(Uo.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},viewPoint:{get:function(){return this.xu},set:function(a){this.xu.assign(a)}},documentPoint:{get:function(){return this.mt},set:function(a){this.mt.assign(a)}},modifiers:{get:function(){return this.Rq},set:function(a){this.Rq=a}},button:{get:function(){return this.Bp},set:function(a){if(this.Bp=a,this.event===null)switch(a){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2}}},buttons:{get:function(){return this.Cp},set:function(a){this.Cp=a}},key:{get:function(){return this.xq},set:function(a){this.xq=a}},down:{get:function(){return this.Tp},set:function(a){this.Tp=a}},up:{get:function(){return this.Wr},set:function(a){this.Wr=a}},clickCount:{get:function(){return this.Ep},set:function(a){this.Ep=a}},delta:{get:function(){return this.Rp},set:function(a){this.Rp=a}},isMultiTouch:{get:function(){return this.tq},set:function(a){this.tq=a}},handled:{get:function(){return this.nq},set:function(a){this.nq=a}},bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},event:{get:function(){return this.Zp},set:function(a){this.Zp=a}},isTouchEvent:{get:function(){var a=this.event;return a===null?!1:a.pointerType==="touch"||a.pointerType==="pen"}},timestamp:{get:function(){return this.Rr},set:function(a){this.Rr=a}},targetDiagram:{get:function(){return this.Nr},set:function(a){this.Nr=a}},targetObject:{get:function(){return this.xd},set:function(a){this.xd=a}},control:{get:function(){return(this.modifiers&1)!==0},set:function(a){this.modifiers=a?this.modifiers|1:this.modifiers&-2}},shift:{get:function(){return(this.modifiers&4)!==0},set:function(a){this.modifiers=a?this.modifiers|4:this.modifiers&-5}},alt:{get:function(){return(this.modifiers&2)!==0},set:function(a){this.modifiers=a?this.modifiers|2:this.modifiers&-3}},meta:{get:function(){return(this.modifiers&8)!==0},set:function(a){this.modifiers=a?this.modifiers|8:this.modifiers&-9}},left:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&1)!==0:this.button===0},set:function(a){this.buttons=a?this.buttons|1:this.buttons&-2}},right:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&2)!==0:this.button===2},set:function(a){this.buttons=a?this.buttons|2:this.buttons&-3}},middle:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&4)!==0:this.button===1},set:function(a){this.buttons=a?this.buttons|4:this.buttons&-5}}}),Uo.prototype.getMultiTouchDocumentPoint=Uo.prototype.Bz,Uo.prototype.getMultiTouchViewPoint=Uo.prototype.So,Uo.className="InputEvent";function Au(){this.H=null,this.xa="",this.ar=this.Lr=null}Au.prototype.copy=function(){var a=new Au;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},Au.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},qe.Object.defineProperties(Au.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},subject:{get:function(){return this.Lr},set:function(a){this.Lr=a}},parameter:{get:function(){return this.ar},set:function(a){this.ar=a}}}),Au.className="DiagramEvent";function nr(){this.Fm=tr,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}nr.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},nr.prototype.copy=function(){var a=new nr;a.Fm=this.Fm,a.Qq=this.Qq,a.rf=this.rf,a.cc=this.cc,a.H=this.H,a.Qn=this.Qn;var y=this.Sn;return a.Sn=on(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=on(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=on(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=on(y)&&typeof y.J=="function"?y.J():y,a},nr.prototype.qb=function(a){a.classType===nr&&(this.change=a)},nr.prototype.toString=function(){var a="";return a=this.change===Rs?a+"* ":this.change===tr?a+(this.model!==null?"!m":"!d"):a+((this.model!==null?"!m":"!d")+this.change),this.propertyName&&typeof this.propertyName=="string"&&(a+=" "+this.propertyName),this.modelChange&&this.modelChange!==this.propertyName&&(a+=" "+this.modelChange),a+=": ",this.change===Rs?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=ur(this.object)),this.oldValue!==null&&(a+=" old: "+ur(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+ur(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},nr.prototype.I=function(a){return a?this.oldValue:this.newValue},nr.prototype.Dz=function(a){return a?this.oldParam:this.newParam},nr.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},nr.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},nr.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},nr.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},qe.Object.defineProperties(nr.prototype,{model:{get:function(){return this.cc},set:function(a){this.cc=a}},diagram:{get:function(){return this.H},set:function(a){this.H=a}},change:{get:function(){return this.Fm},set:function(a){this.Fm=a}},modelChange:{get:function(){return this.Qq},set:function(a){this.Qq=a}},propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},isTransactionFinished:{get:function(){return this.Fm===Rs&&(this.rf==="CommittedTransaction"||this.rf==="FinishedUndo"||this.rf==="FinishedRedo")}},object:{get:function(){return this.Qn},set:function(a){this.Qn=a}},oldValue:{get:function(){return this.Sn},set:function(a){this.Sn=a}},oldParam:{get:function(){return this.Rn},set:function(a){this.Rn=a}},newValue:{get:function(){return this.Mn},set:function(a){this.Mn=a}},newParam:{get:function(){return this.Ln},set:function(a){this.Ln=a}}}),nr.prototype.redo=nr.prototype.redo,nr.prototype.canRedo=nr.prototype.canRedo,nr.prototype.undo=nr.prototype.undo,nr.prototype.canUndo=nr.prototype.canUndo,nr.prototype.getParam=nr.prototype.Dz,nr.prototype.getValue=nr.prototype.I,nr.prototype.clear=nr.prototype.clear;var Rs=new sn(nr,"Transaction",-1),tr=new sn(nr,"Property",0),Ar=new sn(nr,"Insert",1),Hr=new sn(nr,"Remove",2);nr.className="ChangedEvent",nr.Transaction=Rs,nr.Property=tr,nr.Insert=Ar,nr.Remove=Hr;function so(){this.o=new vn().freeze(),this.xa="",this.j=!1}so.prototype.toString=function(a){var y="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(a!==void 0&&00&&mt.prevInput=="\u200B"?Ho(Ot,Lo)(Ot):Tn++<10?Tt.detectingSelectAll=setTimeout(In,500):(Tt.selForContextMenu=null,Tt.input.reset())};Tt.detectingSelectAll=setTimeout(In,200)}}if(Ct&&St>=9&&ln(),Et){Ti(st);var kn=function(){Je(window,"mouseup",kn),setTimeout(an,20)};Ie(window,"mouseup",kn)}else setTimeout(an,50)},Bo.prototype.readOnlyChanged=function(st){st||this.reset(),this.textarea.disabled=st=="nocursor",this.textarea.readOnly=!!st},Bo.prototype.setUneditable=function(){},Bo.prototype.needsContentAttribute=!1;function am(st,mt){if(mt=mt?ve(mt):{},mt.value=st.value,!mt.tabindex&&st.tabIndex&&(mt.tabindex=st.tabIndex),!mt.placeholder&&st.placeholder&&(mt.placeholder=st.placeholder),mt.autofocus==null){var Ot=Gt();mt.autofocus=Ot==st||st.getAttribute("autofocus")!=null&&Ot==document.body}function Tt(){st.value=Ce.getValue()}var Dt;if(st.form&&(Ie(st.form,"submit",Tt),!mt.leaveSubmitMethodAlone)){var qt=st.form;Dt=qt.submit;try{var ce=qt.submit=function(){Tt(),qt.submit=Dt,qt.submit(),qt.submit=ce}}catch(be){}}mt.finishInit=function(be){be.save=Tt,be.getTextArea=function(){return st},be.toTextArea=function(){be.toTextArea=isNaN,Tt(),st.parentNode.removeChild(be.getWrapperElement()),st.style.display="",st.form&&(Je(st.form,"submit",Tt),!mt.leaveSubmitMethodAlone&&typeof st.form.submit=="function"&&(st.form.submit=Dt))}},st.style.display="none";var Ce=gr(function(be){return st.parentNode.insertBefore(be,st.nextSibling)},mt);return Ce}function bc(st){st.off=Je,st.on=Ie,st.wheelEventPixels=ka,st.Doc=ys,st.splitLines=Si,st.countColumn=Kt,st.findColumn=_e,st.isWordChar=Xe,st.Pass=Me,st.signal=Ze,st.Line=Ur,st.changeEnd=Iu,st.scrollbarModel=ep,st.Pos=on,st.cmpPos=Cn,st.modes=Xs,st.mimeModes=Do,st.resolveMode=sa,st.getMode=dn,st.modeExtensions=en,st.extendMode=qe,st.copyState=zn,st.startState=hi,st.innerMode=Jn,st.commands=zu,st.keyMap=ca,st.keyName=$g,st.isModifierKey=pc,st.lookupKey=Ha,st.normalizeKeyMap=mp,st.StringStream=bn,st.SharedTextMarker=Il,st.TextMarker=Ye,st.LineWidget=lu,st.e_preventDefault=Dn,st.e_stopPropagation=ii,st.e_stop=Ti,st.addClass=Vt,st.contains=Xt,st.rmClass=_t,st.keyNames=Fl}rm(gr),Uu(gr);var uu="iter insert remove copy getEditor constructor".split(" ");for(var ff in ys.prototype)ys.prototype.hasOwnProperty(ff)&&we(uu,ff)<0&&(gr.prototype[ff]=function(st){return function(){return st.apply(this.doc,arguments)}}(ys.prototype[ff]));return En(ys),gr.inputStyles={textarea:Bo,contenteditable:Fr},gr.defineMode=function(st){!gr.defaults.mode&&st!="null"&&(gr.defaults.mode=st),Oo.apply(this,arguments)},gr.defineMIME=Gr,gr.defineMode("null",function(){return{token:function(st){return st.skipToEnd()}}}),gr.defineMIME("text/plain","null"),gr.defineExtension=function(st,mt){gr.prototype[st]=mt},gr.defineDocExtension=function(st,mt){ys.prototype[st]=mt},gr.fromTextArea=am,bc(gr),gr.version="5.58.2",gr})},25419:function(tn,Ke,Rt){(function(Ft){Ft(Rt(89780),Rt(15525),Rt(98101))})(function(Ft){"use strict";Ft.defineMode("markdown",function(ie,rt){var kt=Ft.getMode(ie,"text/html"),Ct=kt.name=="null";function St(Kt){if(Ft.findModeByName){var re=Ft.findModeByName(Kt);re&&(Kt=re.mime||re.mimes[0])}var we=Ft.getMode(ie,Kt);return we.name=="null"?null:we}rt.highlightFormatting===void 0&&(rt.highlightFormatting=!1),rt.maxBlockquoteDepth===void 0&&(rt.maxBlockquoteDepth=0),rt.taskLists===void 0&&(rt.taskLists=!1),rt.strikethrough===void 0&&(rt.strikethrough=!1),rt.emoji===void 0&&(rt.emoji=!1),rt.fencedCodeBlockHighlighting===void 0&&(rt.fencedCodeBlockHighlighting=!0),rt.fencedCodeBlockDefaultMode===void 0&&(rt.fencedCodeBlockDefaultMode="text/plain"),rt.xml===void 0&&(rt.xml=!0),rt.tokenTypeOverrides===void 0&&(rt.tokenTypeOverrides={});var pt={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var vt in pt)pt.hasOwnProperty(vt)&&rt.tokenTypeOverrides[vt]&&(pt[vt]=rt.tokenTypeOverrides[vt]);var yt=/^([*\-_])(?:\s*\1){2,}\s*$/,xt=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,dt=/^\[(x| )\](?=\s)/i,ft=rt.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,ct=/^ {0,3}(?:\={1,}|-{2,})\s*$/,lt=/^[^#!\[\]*_\\<>` "'(~:]+/,E=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,z=/^\s*\[[^\]]+?\]:.*$/,ot=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,it=" ";function at(Kt,re,we){return re.f=re.inline=we,we(Kt,re)}function ut(Kt,re,we){return re.f=re.block=we,we(Kt,re)}function wt(Kt){return!Kt||!/\S/.test(Kt.string)}function Et(Kt){if(Kt.linkTitle=!1,Kt.linkHref=!1,Kt.linkText=!1,Kt.em=!1,Kt.strong=!1,Kt.strikethrough=!1,Kt.quote=0,Kt.indentedCode=!1,Kt.f==_t){var re=Ct;if(!re){var we=Ft.innerMode(kt,Kt.htmlState);re=we.mode.name=="xml"&&we.state.tagStart===null&&!we.state.context&&we.state.tokenize.isInText}re&&(Kt.f=It,Kt.block=At,Kt.htmlState=null)}return Kt.trailingSpace=0,Kt.trailingSpaceNewLine=!1,Kt.prevLine=Kt.thisLine,Kt.thisLine={stream:null},null}function At(Kt,re){var we=Kt.column()===re.indentation,ke=wt(re.prevLine.stream),Me=re.indentedCode,ge=re.prevLine.hr,fe=re.list!==!1,de=(re.listStack[re.listStack.length-1]||0)+3;re.indentedCode=!1;var _e=re.indentation;if(re.indentationDiff===null&&(re.indentationDiff=re.indentation,fe)){for(re.list=null;_e=4&&(Me||re.prevLine.fencedCodeEnd||re.prevLine.header||ke))return Kt.skipToEnd(),re.indentedCode=!0,pt.code;if(Kt.eatSpace())return null;if(we&&re.indentation<=de&&(Se=Kt.match(ft))&&Se[1].length<=6)return re.quote=0,re.header=Se[1].length,re.thisLine.header=!0,rt.highlightFormatting&&(re.formatting="header"),re.f=re.inline,jt(re);if(re.indentation<=de&&Kt.eat(">"))return re.quote=we?1:re.quote+1,rt.highlightFormatting&&(re.formatting="quote"),Kt.eatSpace(),jt(re);if(!He&&!re.setext&&we&&re.indentation<=de&&(Se=Kt.match(xt))){var xe=Se[1]?"ol":"ul";return re.indentation=_e+Kt.current().length,re.list=!0,re.quote=0,re.listStack.push(re.indentation),re.em=!1,re.strong=!1,re.code=!1,re.strikethrough=!1,rt.taskLists&&Kt.match(dt,!1)&&(re.taskList=!0),re.f=re.inline,rt.highlightFormatting&&(re.formatting=["list","list-"+xe]),jt(re)}else{if(we&&re.indentation<=de&&(Se=Kt.match(E,!0)))return re.quote=0,re.fencedEndRE=new RegExp(Se[1]+"+ *$"),re.localMode=rt.fencedCodeBlockHighlighting&&St(Se[2]||rt.fencedCodeBlockDefaultMode),re.localMode&&(re.localState=Ft.startState(re.localMode)),re.f=re.block=Mt,rt.highlightFormatting&&(re.formatting="code-block"),re.code=-1,jt(re);if(re.setext||(!Oe||!fe)&&!re.quote&&re.list===!1&&!re.code&&!He&&!z.test(Kt.string)&&(Se=Kt.lookAhead(1))&&(Se=Se.match(ct)))return re.setext?(re.header=re.setext,re.setext=0,Kt.skipToEnd(),rt.highlightFormatting&&(re.formatting="header")):(re.header=Se[0].charAt(0)=="="?1:2,re.setext=re.header),re.thisLine.header=!0,re.f=re.inline,jt(re);if(He)return Kt.skipToEnd(),re.hr=!0,re.thisLine.hr=!0,pt.hr;if(Kt.peek()==="[")return at(Kt,re,Ht)}return at(Kt,re,re.inline)}function _t(Kt,re){var we=kt.token(Kt,re.htmlState);if(!Ct){var ke=Ft.innerMode(kt,re.htmlState);(ke.mode.name=="xml"&&ke.state.tagStart===null&&!ke.state.context&&ke.state.tokenize.isInText||re.md_inside&&Kt.current().indexOf(">")>-1)&&(re.f=It,re.block=At,re.htmlState=null)}return we}function Mt(Kt,re){var we=re.listStack[re.listStack.length-1]||0,ke=re.indentation=Kt.quote?re.push(pt.formatting+"-"+Kt.formatting[we]+"-"+Kt.quote):re.push("error"))}if(Kt.taskOpen)return re.push("meta"),re.length?re.join(" "):null;if(Kt.taskClosed)return re.push("property"),re.length?re.join(" "):null;if(Kt.linkHref?re.push(pt.linkHref,"url"):(Kt.strong&&re.push(pt.strong),Kt.em&&re.push(pt.em),Kt.strikethrough&&re.push(pt.strikethrough),Kt.emoji&&re.push(pt.emoji),Kt.linkText&&re.push(pt.linkText),Kt.code&&re.push(pt.code),Kt.image&&re.push(pt.image),Kt.imageAltText&&re.push(pt.imageAltText,"link"),Kt.imageMarker&&re.push(pt.imageMarker)),Kt.header&&re.push(pt.header,pt.header+"-"+Kt.header),Kt.quote&&(re.push(pt.quote),!rt.maxBlockquoteDepth||rt.maxBlockquoteDepth>=Kt.quote?re.push(pt.quote+"-"+Kt.quote):re.push(pt.quote+"-"+rt.maxBlockquoteDepth)),Kt.list!==!1){var ke=(Kt.listStack.length-1)%3;ke?ke===1?re.push(pt.list2):re.push(pt.list3):re.push(pt.list1)}return Kt.trailingSpaceNewLine?re.push("trailing-space-new-line"):Kt.trailingSpace&&re.push("trailing-space-"+(Kt.trailingSpace%2?"a":"b")),re.length?re.join(" "):null}function Lt(Kt,re){if(Kt.match(lt,!0))return jt(re)}function It(Kt,re){var we=re.text(Kt,re);if(typeof we!="undefined")return we;if(re.list)return re.list=null,jt(re);if(re.taskList){var ke=Kt.match(dt,!0)[1]===" ";return ke?re.taskOpen=!0:re.taskClosed=!0,rt.highlightFormatting&&(re.formatting="task"),re.taskList=!1,jt(re)}if(re.taskOpen=!1,re.taskClosed=!1,re.header&&Kt.match(/^#+$/,!0))return rt.highlightFormatting&&(re.formatting="header"),jt(re);var Me=Kt.next();if(re.linkTitle){re.linkTitle=!1;var ge=Me;Me==="("&&(ge=")"),ge=(ge+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var fe="^\\s*(?:[^"+ge+"\\\\]+|\\\\\\\\|\\\\.)"+ge;if(Kt.match(new RegExp(fe),!0))return pt.linkHref}if(Me==="`"){var de=re.formatting;rt.highlightFormatting&&(re.formatting="code"),Kt.eatWhile("`");var _e=Kt.current().length;if(re.code==0&&(!re.quote||_e==1))return re.code=_e,jt(re);if(_e==re.code){var Oe=jt(re);return re.code=0,Oe}else return re.formatting=de,jt(re)}else if(re.code)return jt(re);if(Me==="\\"&&(Kt.next(),rt.highlightFormatting)){var He=jt(re),Se=pt.formatting+"-escape";return He?He+" "+Se:Se}if(Me==="!"&&Kt.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return re.imageMarker=!0,re.image=!0,rt.highlightFormatting&&(re.formatting="image"),jt(re);if(Me==="["&&re.imageMarker&&Kt.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return re.imageMarker=!1,re.imageAltText=!0,rt.highlightFormatting&&(re.formatting="image"),jt(re);if(Me==="]"&&re.imageAltText){rt.highlightFormatting&&(re.formatting="image");var He=jt(re);return re.imageAltText=!1,re.image=!1,re.inline=re.f=Xt,He}if(Me==="["&&!re.image)return re.linkText&&Kt.match(/^.*?\]/)||(re.linkText=!0,rt.highlightFormatting&&(re.formatting="link")),jt(re);if(Me==="]"&&re.linkText){rt.highlightFormatting&&(re.formatting="link");var He=jt(re);return re.linkText=!1,re.inline=re.f=Kt.match(/\(.*?\)| ?\[.*?\]/,!1)?Xt:It,He}if(Me==="<"&&Kt.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){re.f=re.inline=Ut,rt.highlightFormatting&&(re.formatting="link");var He=jt(re);return He?He+=" ":He="",He+pt.linkInline}if(Me==="<"&&Kt.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){re.f=re.inline=Ut,rt.highlightFormatting&&(re.formatting="link");var He=jt(re);return He?He+=" ":He="",He+pt.linkEmail}if(rt.xml&&Me==="<"&&Kt.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var xe=Kt.string.indexOf(">",Kt.pos);if(xe!=-1){var le=Kt.string.substring(Kt.start,xe);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(le)&&(re.md_inside=!0)}return Kt.backUp(1),re.htmlState=Ft.startState(kt),ut(Kt,re,_t)}if(rt.xml&&Me==="<"&&Kt.match(/^\/\w*?>/))return re.md_inside=!1,"tag";if(Me==="*"||Me==="_"){for(var Ne=1,ae=Kt.pos==1?" ":Kt.string.charAt(Kt.pos-2);Ne<3&&Kt.eat(Me);)Ne++;var Ae=Kt.peek()||" ",Xe=!/\s/.test(Ae)&&(!ot.test(Ae)||/\s/.test(ae)||ot.test(ae)),Be=!/\s/.test(ae)&&(!ot.test(ae)||/\s/.test(Ae)||ot.test(Ae)),Te=null,ue=null;if(Ne%2&&(!re.em&&Xe&&(Me==="*"||!Be||ot.test(ae))?Te=!0:re.em==Me&&Be&&(Me==="*"||!Xe||ot.test(Ae))&&(Te=!1)),Ne>1&&(!re.strong&&Xe&&(Me==="*"||!Be||ot.test(ae))?ue=!0:re.strong==Me&&Be&&(Me==="*"||!Xe||ot.test(Ae))&&(ue=!1)),ue!=null||Te!=null){rt.highlightFormatting&&(re.formatting=Te==null?"strong":ue==null?"em":"strong em"),Te===!0&&(re.em=Me),ue===!0&&(re.strong=Me);var Oe=jt(re);return Te===!1&&(re.em=!1),ue===!1&&(re.strong=!1),Oe}}else if(Me===" "&&(Kt.eat("*")||Kt.eat("_"))){if(Kt.peek()===" ")return jt(re);Kt.backUp(1)}if(rt.strikethrough){if(Me==="~"&&Kt.eatWhile(Me)){if(re.strikethrough){rt.highlightFormatting&&(re.formatting="strikethrough");var Oe=jt(re);return re.strikethrough=!1,Oe}else if(Kt.match(/^[^\s]/,!1))return re.strikethrough=!0,rt.highlightFormatting&&(re.formatting="strikethrough"),jt(re)}else if(Me===" "&&Kt.match(/^~~/,!0)){if(Kt.peek()===" ")return jt(re);Kt.backUp(2)}}if(rt.emoji&&Me===":"&&Kt.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){re.emoji=!0,rt.highlightFormatting&&(re.formatting="emoji");var $t=jt(re);return re.emoji=!1,$t}return Me===" "&&(Kt.match(/^ +$/,!1)?re.trailingSpace++:re.trailingSpace&&(re.trailingSpaceNewLine=!0)),jt(re)}function Ut(Kt,re){var we=Kt.next();if(we===">"){re.f=re.inline=It,rt.highlightFormatting&&(re.formatting="link");var ke=jt(re);return ke?ke+=" ":ke="",ke+pt.linkInline}return Kt.match(/^[^>]+/,!0),pt.linkInline}function Xt(Kt,re){if(Kt.eatSpace())return null;var we=Kt.next();return we==="("||we==="["?(re.f=re.inline=Vt(we==="("?")":"]"),rt.highlightFormatting&&(re.formatting="link-string"),re.linkHref=!0,jt(re)):"error"}var Gt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Vt(Kt){return function(re,we){var ke=re.next();if(ke===Kt){we.f=we.inline=It,rt.highlightFormatting&&(we.formatting="link-string");var Me=jt(we);return we.linkHref=!1,Me}return re.match(Gt[Kt]),we.linkHref=!0,jt(we)}}function Ht(Kt,re){return Kt.match(/^([^\]\\]|\\.)*\]:/,!1)?(re.f=ne,Kt.next(),rt.highlightFormatting&&(re.formatting="link"),re.linkText=!0,jt(re)):at(Kt,re,It)}function ne(Kt,re){if(Kt.match(/^\]:/,!0)){re.f=re.inline=se,rt.highlightFormatting&&(re.formatting="link");var we=jt(re);return re.linkText=!1,we}return Kt.match(/^([^\]\\]|\\.)+/,!0),pt.linkText}function se(Kt,re){return Kt.eatSpace()?null:(Kt.match(/^[^\s]+/,!0),Kt.peek()===void 0?re.linkTitle=!0:Kt.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),re.f=re.inline=It,pt.linkHref+" url")}var ve={startState:function(){return{f:At,prevLine:{stream:null},thisLine:{stream:null},block:At,htmlState:null,indentation:0,inline:It,text:Lt,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(Kt){return{f:Kt.f,prevLine:Kt.prevLine,thisLine:Kt.thisLine,block:Kt.block,htmlState:Kt.htmlState&&Ft.copyState(kt,Kt.htmlState),indentation:Kt.indentation,localMode:Kt.localMode,localState:Kt.localMode?Ft.copyState(Kt.localMode,Kt.localState):null,inline:Kt.inline,text:Kt.text,formatting:!1,linkText:Kt.linkText,linkTitle:Kt.linkTitle,linkHref:Kt.linkHref,code:Kt.code,em:Kt.em,strong:Kt.strong,strikethrough:Kt.strikethrough,emoji:Kt.emoji,header:Kt.header,setext:Kt.setext,hr:Kt.hr,taskList:Kt.taskList,list:Kt.list,listStack:Kt.listStack.slice(0),quote:Kt.quote,indentedCode:Kt.indentedCode,trailingSpace:Kt.trailingSpace,trailingSpaceNewLine:Kt.trailingSpaceNewLine,md_inside:Kt.md_inside,fencedEndRE:Kt.fencedEndRE}},token:function(Kt,re){if(re.formatting=!1,Kt!=re.thisLine.stream){if(re.header=0,re.hr=!1,Kt.match(/^\s*$/,!0))return Et(re),null;if(re.prevLine=re.thisLine,re.thisLine={stream:Kt},re.taskList=!1,re.trailingSpace=0,re.trailingSpaceNewLine=!1,!re.localState&&(re.f=re.block,re.f!=_t)){var we=Kt.match(/^\s*/,!0)[0].replace(/\t/g,it).length;if(re.indentation=we,re.indentationDiff=null,we>0)return null}}return re.f(Kt,re)},innerMode:function(Kt){return Kt.block==_t?{state:Kt.htmlState,mode:kt}:Kt.localState?{state:Kt.localState,mode:Kt.localMode}:{state:Kt,mode:ve}},indent:function(Kt,re,we){return Kt.block==_t&&kt.indent?kt.indent(Kt.htmlState,re,we):Kt.localState&&Kt.localMode.indent?Kt.localMode.indent(Kt.localState,re,we):Ft.Pass},blankLine:Et,getType:jt,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return ve},"xml"),Ft.defineMIME("text/markdown","markdown"),Ft.defineMIME("text/x-markdown","markdown")})},98101:function(tn,Ke,Rt){(function(Ft){Ft(Rt(89780))})(function(Ft){"use strict";Ft.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var ie=0;ie-1&&kt.substring(pt+1,kt.length);if(vt)return Ft.findModeByExtension(vt)},Ft.findModeByName=function(kt){kt=kt.toLowerCase();for(var Ct=0;Ct0?lt.cmdState[lt.cmdState.length-1]:null}function St(lt){var E=lt.cmdState.pop();E&&E.closeBracket()}function pt(lt){for(var E=lt.cmdState,z=E.length-1;z>=0;z--){var ot=E[z];if(ot.name!="DEFAULT")return ot}return{styleIdentifier:function(){return null}}}function vt(lt,E,z){return function(){this.name=lt,this.bracketNo=0,this.style=E,this.styles=z,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var yt={};yt.importmodule=vt("importmodule","tag",["string","builtin"]),yt.documentclass=vt("documentclass","tag",["","atom"]),yt.usepackage=vt("usepackage","tag",["atom"]),yt.begin=vt("begin","tag",["atom"]),yt.end=vt("end","tag",["atom"]),yt.label=vt("label","tag",["atom"]),yt.ref=vt("ref","tag",["atom"]),yt.eqref=vt("eqref","tag",["atom"]),yt.cite=vt("cite","tag",["atom"]),yt.bibitem=vt("bibitem","tag",["atom"]),yt.Bibitem=vt("Bibitem","tag",["atom"]),yt.RBibitem=vt("RBibitem","tag",["atom"]),yt.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function xt(lt,E){lt.f=E}function dt(lt,E){var z;if(lt.match(/^\\[a-zA-Z@]+/)){var ot=lt.current().slice(1);return z=yt.hasOwnProperty(ot)?yt[ot]:yt.DEFAULT,z=new z,kt(E,z),xt(E,ct),z.style}if(lt.match(/^\\[$&%#{}_]/)||lt.match(/^\\[,;!\/\\]/))return"tag";if(lt.match("\\["))return xt(E,function(at,ut){return ft(at,ut,"\\]")}),"keyword";if(lt.match("\\("))return xt(E,function(at,ut){return ft(at,ut,"\\)")}),"keyword";if(lt.match("$$"))return xt(E,function(at,ut){return ft(at,ut,"$$")}),"keyword";if(lt.match("$"))return xt(E,function(at,ut){return ft(at,ut,"$")}),"keyword";var it=lt.next();if(it=="%")return lt.skipToEnd(),"comment";if(it=="}"||it=="]"){if(z=Ct(E),z)z.closeBracket(it),xt(E,ct);else return"error";return"bracket"}else return it=="{"||it=="["?(z=yt.DEFAULT,z=new z,kt(E,z),"bracket"):/\d/.test(it)?(lt.eatWhile(/[\w.%]/),"atom"):(lt.eatWhile(/[\w\-_]/),z=pt(E),z.name=="begin"&&(z.argument=lt.current()),z.styleIdentifier())}function ft(lt,E,z){if(lt.eatSpace())return null;if(z&<.match(z))return xt(E,dt),"keyword";if(lt.match(/^\\[a-zA-Z@]+/))return"tag";if(lt.match(/^[a-zA-Z]+/))return"variable-2";if(lt.match(/^\\[$&%#{}_]/)||lt.match(/^\\[,;!\/]/)||lt.match(/^[\^_&]/))return"tag";if(lt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(lt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ot=lt.next();return ot=="{"||ot=="}"||ot=="["||ot=="]"||ot=="("||ot==")"?"bracket":ot=="%"?(lt.skipToEnd(),"comment"):"error"}function ct(lt,E){var z=lt.peek(),ot;return z=="{"||z=="["?(ot=Ct(E),ot.openBracket(z),lt.eat(z),xt(E,dt),"bracket"):/[ \t\r]/.test(z)?(lt.eat(z),null):(xt(E,dt),St(E),dt(lt,E))}return{startState:function(){var lt=rt.inMathMode?function(E,z){return ft(E,z)}:dt;return{cmdState:[],f:lt}},copyState:function(lt){return{cmdState:lt.cmdState.slice(),f:lt.f}},token:function(lt,E){return E.f(lt,E)},blankLine:function(lt){lt.f=dt,lt.cmdState.length=0},lineComment:"%"}}),Ft.defineMIME("text/x-stex","stex"),Ft.defineMIME("text/x-latex","stex")})},15525:function(tn,Ke,Rt){(function(Ft){Ft(Rt(89780))})(function(Ft){"use strict";var ie={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},rt={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};Ft.defineMode("xml",function(kt,Ct){var St=kt.indentUnit,pt={},vt=Ct.htmlMode?ie:rt;for(var yt in vt)pt[yt]=vt[yt];for(var yt in Ct)pt[yt]=Ct[yt];var xt,dt;function ft(Ut,Xt){function Gt(ne){return Xt.tokenize=ne,ne(Ut,Xt)}var Vt=Ut.next();if(Vt=="<")return Ut.eat("!")?Ut.eat("[")?Ut.match("CDATA[")?Gt(E("atom","]]>")):null:Ut.match("--")?Gt(E("comment","-->")):Ut.match("DOCTYPE",!0,!0)?(Ut.eatWhile(/[\w\._\-]/),Gt(z(1))):null:Ut.eat("?")?(Ut.eatWhile(/[\w\._\-]/),Xt.tokenize=E("meta","?>"),"meta"):(xt=Ut.eat("/")?"closeTag":"openTag",Xt.tokenize=ct,"tag bracket");if(Vt=="&"){var Ht;return Ut.eat("#")?Ut.eat("x")?Ht=Ut.eatWhile(/[a-fA-F\d]/)&&Ut.eat(";"):Ht=Ut.eatWhile(/[\d]/)&&Ut.eat(";"):Ht=Ut.eatWhile(/[\w\.\-:]/)&&Ut.eat(";"),Ht?"atom":"error"}else return Ut.eatWhile(/[^&<]/),null}ft.isInText=!0;function ct(Ut,Xt){var Gt=Ut.next();if(Gt==">"||Gt=="/"&&Ut.eat(">"))return Xt.tokenize=ft,xt=Gt==">"?"endTag":"selfcloseTag","tag bracket";if(Gt=="=")return xt="equals",null;if(Gt=="<"){Xt.tokenize=ft,Xt.state=ut,Xt.tagName=Xt.tagStart=null;var Vt=Xt.tokenize(Ut,Xt);return Vt?Vt+" tag error":"tag error"}else return/[\'\"]/.test(Gt)?(Xt.tokenize=lt(Gt),Xt.stringStartCol=Ut.column(),Xt.tokenize(Ut,Xt)):(Ut.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function lt(Ut){var Xt=function(Gt,Vt){for(;!Gt.eol();)if(Gt.next()==Ut){Vt.tokenize=ct;break}return"string"};return Xt.isInAttribute=!0,Xt}function E(Ut,Xt){return function(Gt,Vt){for(;!Gt.eol();){if(Gt.match(Xt)){Vt.tokenize=ft;break}Gt.next()}return Ut}}function z(Ut){return function(Xt,Gt){for(var Vt;(Vt=Xt.next())!=null;){if(Vt=="<")return Gt.tokenize=z(Ut+1),Gt.tokenize(Xt,Gt);if(Vt==">")if(Ut==1){Gt.tokenize=ft;break}else return Gt.tokenize=z(Ut-1),Gt.tokenize(Xt,Gt)}return"meta"}}function ot(Ut,Xt,Gt){this.prev=Ut.context,this.tagName=Xt,this.indent=Ut.indented,this.startOfLine=Gt,(pt.doNotIndent.hasOwnProperty(Xt)||Ut.context&&Ut.context.noIndent)&&(this.noIndent=!0)}function it(Ut){Ut.context&&(Ut.context=Ut.context.prev)}function at(Ut,Xt){for(var Gt;;){if(!Ut.context||(Gt=Ut.context.tagName,!pt.contextGrabbers.hasOwnProperty(Gt)||!pt.contextGrabbers[Gt].hasOwnProperty(Xt)))return;it(Ut)}}function ut(Ut,Xt,Gt){return Ut=="openTag"?(Gt.tagStart=Xt.column(),wt):Ut=="closeTag"?Et:ut}function wt(Ut,Xt,Gt){return Ut=="word"?(Gt.tagName=Xt.current(),dt="tag",Mt):pt.allowMissingTagName&&Ut=="endTag"?(dt="tag bracket",Mt(Ut,Xt,Gt)):(dt="error",wt)}function Et(Ut,Xt,Gt){if(Ut=="word"){var Vt=Xt.current();return Gt.context&&Gt.context.tagName!=Vt&&pt.implicitlyClosed.hasOwnProperty(Gt.context.tagName)&&it(Gt),Gt.context&&Gt.context.tagName==Vt||pt.matchClosing===!1?(dt="tag",At):(dt="tag error",_t)}else return pt.allowMissingTagName&&Ut=="endTag"?(dt="tag bracket",At(Ut,Xt,Gt)):(dt="error",_t)}function At(Ut,Xt,Gt){return Ut!="endTag"?(dt="error",At):(it(Gt),ut)}function _t(Ut,Xt,Gt){return dt="error",At(Ut,Xt,Gt)}function Mt(Ut,Xt,Gt){if(Ut=="word")return dt="attribute",jt;if(Ut=="endTag"||Ut=="selfcloseTag"){var Vt=Gt.tagName,Ht=Gt.tagStart;return Gt.tagName=Gt.tagStart=null,Ut=="selfcloseTag"||pt.autoSelfClosers.hasOwnProperty(Vt)?at(Gt,Vt):(at(Gt,Vt),Gt.context=new ot(Gt,Vt,Ht==Gt.indented)),ut}return dt="error",Mt}function jt(Ut,Xt,Gt){return Ut=="equals"?Lt:(pt.allowMissing||(dt="error"),Mt(Ut,Xt,Gt))}function Lt(Ut,Xt,Gt){return Ut=="string"?It:Ut=="word"&&pt.allowUnquoted?(dt="string",Mt):(dt="error",Mt(Ut,Xt,Gt))}function It(Ut,Xt,Gt){return Ut=="string"?It:Mt(Ut,Xt,Gt)}return{startState:function(Ut){var Xt={tokenize:ft,state:ut,indented:Ut||0,tagName:null,tagStart:null,context:null};return Ut!=null&&(Xt.baseIndent=Ut),Xt},token:function(Ut,Xt){if(!Xt.tagName&&Ut.sol()&&(Xt.indented=Ut.indentation()),Ut.eatSpace())return null;xt=null;var Gt=Xt.tokenize(Ut,Xt);return(Gt||xt)&&Gt!="comment"&&(dt=null,Xt.state=Xt.state(xt||Gt,Ut,Xt),dt&&(Gt=dt=="error"?Gt+" error":dt)),Gt},indent:function(Ut,Xt,Gt){var Vt=Ut.context;if(Ut.tokenize.isInAttribute)return Ut.tagStart==Ut.indented?Ut.stringStartCol+1:Ut.indented+St;if(Vt&&Vt.noIndent)return Ft.Pass;if(Ut.tokenize!=ct&&Ut.tokenize!=ft)return Gt?Gt.match(/^(\s*)/)[0].length:0;if(Ut.tagName)return pt.multilineTagIndentPastTag!==!1?Ut.tagStart+Ut.tagName.length+2:Ut.tagStart+St*(pt.multilineTagIndentFactor||1);if(pt.alignCDATA&&/$/,blockCommentStart:"",configuration:pt.htmlMode?"html":"xml",helperType:pt.htmlMode?"html":"xml",skipAttribute:function(Ut){Ut.state==Lt&&(Ut.state=Mt)},xmlCurrentTag:function(Ut){return Ut.tagName?{name:Ut.tagName,close:Ut.type=="closeTag"}:null},xmlCurrentContext:function(Ut){for(var Xt=[],Gt=Ut.context;Gt;Gt=Gt.prev)Gt.tagName&&Xt.push(Gt.tagName);return Xt.reverse()}}}),Ft.defineMIME("text/xml","xml"),Ft.defineMIME("application/xml","xml"),Ft.mimeModes.hasOwnProperty("text/html")||Ft.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(tn,Ke,Rt){"use strict";Rt.d(Ke,{$u:function(){return yt},BD:function(){return Ne},E9:function(){return vt},FF:function(){return Bi},FJ:function(){return ut},Hn:function(){return at},KX:function(){return Et},NB:function(){return Qt},S0:function(){return Se},UL:function(){return xt},Vk:function(){return it},Vm:function(){return Bt},YI:function(){return xe},ZA:function(){return rt},Zt:function(){return dt},al:function(){return Te},bn:function(){return Be},bx:function(){return ae},g2:function(){return le},h1:function(){return Lt},hD:function(){return En},l4:function(){return St},rU:function(){return Wt},s_:function(){return Ae},uz:function(){return ye},z6:function(){return ft}}),tn=Rt.hmd(tn),function(){var ee;function Ds(a){var y=0;return function(){return yx&&(x=Math.max(0,tt+x)),(b==null||b>tt)&&(b=tt),b=Number(b),0>b&&(b=Math.max(0,tt+b)),x=Number(x||0);x=a.length?a.push(x):a.splice(y,0,x):We("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function Wi(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):We("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function oi(){var a=Mi.pop();return a===void 0?[]:a}function ri(a){a.length=0,Mi.push(a)}function Zn(a){if(typeof a=="function"){if(a.className)return a.className;if(a.name)return a.name;var y=a.toString();if(y=y.substring(9,y.indexOf("(")).trim(),y!=="")return a._className=y}else if(on(a)&&a.constructor)return Zn(a.constructor);return typeof a}function ur(a){var y=a;return on(a)&&(a.text?y=a.text:a.name?y=a.name:a.key!==void 0?y=a.key:a.id!==void 0?y=a.id:a.constructor===Object&&(a.Text?y=a.Text:a.Name?y=a.Name:a.Key!==void 0?y=a.Key:a.Id!==void 0?y=a.Id:a.ID!==void 0&&(y=a.ID))),y===void 0?"undefined":y===null?"null":y.toString()}function Yr(a,y){if(a.hasOwnProperty(y))return!0;for(a=Object.getPrototypeOf(a);a&&a!==Function;){if(a.hasOwnProperty(y))return!0;var x=a.CA;if(x&&x[y])return!0;a=Object.getPrototypeOf(a)}return!1}function br(a,y,x){Object.defineProperty($i.prototype,a,{get:y,set:x})}function mn(a){for(var y=[],x=0;256>x;x++)y["0123456789abcdef".charAt(x>>4)+"0123456789abcdef".charAt(x&15)]=String.fromCharCode(x);a.length%2&&(a="0"+a),x=[];for(var b=0,tt=0;ttx;x++)y[x]=x;for(x=b=0;256>x;x++)b=(b+y[x]+119)%256,tt=y[x],y[x]=y[b],y[b]=tt;b=x=0;for(var et="",nt=0;nt-1||et.indexOf("\xA9 1998-2021 Northwoods Software")>-1||et.indexOf("Not for distribution or production use")>-1||et.indexOf("gojs.net")>-1?"":et}var er=bn.navigator!==void 0&&0this.key)return!1;a=a.s;var y=a.length,x=++this.Za,b=this.qf;if(b!==null)for(;xthis.key)return!1;var y=--this.Za;return 0<=y?(this.key=y,this.value=a.s[y],!0):(this.de(),!1)},fr.prototype.Ad=function(){return this.next()},fr.prototype.first=function(){var a=this.Bb;this.qa=a.Ja;var y=a.s;return this.Za=a=y.length-1,0<=a?(y=y[a],this.key=a,this.value=y):null},fr.prototype.any=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(a(y[x]))return!0;return!1},fr.prototype.all=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(!a(y[x]))return!1;return!0},fr.prototype.each=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)a(y[x]);return this},fr.prototype.map=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--)x.push(a(y[b]));return a=new vn,a.s=x,a.xb(),a.iterator},fr.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--){var tt=y[b];a(tt)&&x.push(tt)}return a=new vn,a.s=x,a.xb(),a.iterator},fr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},fr.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},qe.Object.defineProperties(fr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),fr.prototype.first=fr.prototype.first,fr.prototype.hasNext=fr.prototype.Ad,fr.prototype.next=fr.prototype.next,fr.prototype.reset=fr.prototype.reset,fr.className="ListIteratorBackwards";function vn(a){qi(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&We("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}ee=vn.prototype,ee.xb=function(){var a=this.Ja;a++,999999999a||a>=y.length)&&ti(a,"0 <= i < length",vn,"elt:i"),y[a]},ee.get=function(a){return this.M(a)},ee.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&ti(a,"0 <= i < length",vn,"setElt:i"),this._isFrozen&&Nn(this,a),x[a]=y},ee.set=function(a,y){this.cd(a,y)},ee.first=function(){var a=this.s;return a.length===0?null:a[0]},ee.jc=function(){var a=this.s,y=a.length;return 0a&&ti(a,">= 0",vn,"insertAt:i"),this._isFrozen&&Nn(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},ee.remove=function(a){if(a===null)return!1;this._isFrozen&&Nn(this,a);var y=this.s;return a=y.indexOf(a),a===-1?!1:(a===y.length-1?y.pop():y.splice(a,1),this.xb(),!0)},ee.delete=function(a){return this.remove(a)},ee.mb=function(a){var y=this.s;(0>a||a>=y.length)&&ti(a,"0 <= i < length",vn,"removeAt:i"),this._isFrozen&&Nn(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},ee.removeRange=function(a,y){var x=this.s,b=x.length;if(0>a)a=0;else if(a>=b)return this;if(0>y)return this;if(y>=b&&(y=b-1),a>y)return this;this._isFrozen&&Nn(this);for(var tt=a,et=y+1;et=et)return this;if((0>y||y>=tt-1)&&ti(y,"0 <= from < length",vn,"sortRange:from"),et===2)return x=b[y],tt=b[y+1],0=tt)b.sort(a);else for(y=b.slice(0,x),y.sort(a),a=0;a=tt)for(x=b.slice(y),x.sort(a),a=y;a=this.s.length)return hr;var a=this.Sa;return a!==null?(a.reset(),a):new Yi(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return hr;var a=this.Hg;return a!==null?(a.reset(),a):new fr(this)}}}),vn.prototype.reverse=vn.prototype.reverse,vn.prototype.sortRange=vn.prototype.zi,vn.prototype.sort=vn.prototype.sort,vn.prototype.toSet=vn.prototype.Iv,vn.prototype.toArray=vn.prototype.Fa,vn.prototype.removeRange=vn.prototype.removeRange,vn.prototype.removeAt=vn.prototype.mb,vn.prototype.delete=vn.prototype.delete,vn.prototype.remove=vn.prototype.remove,vn.prototype.insertAt=vn.prototype.Gb,vn.prototype.pop=vn.prototype.pop,vn.prototype.last=vn.prototype.jc,vn.prototype.first=vn.prototype.first,vn.prototype.set=vn.prototype.set,vn.prototype.setElt=vn.prototype.cd,vn.prototype.get=vn.prototype.get,vn.prototype.elt=vn.prototype.M,vn.prototype.indexOf=vn.prototype.indexOf,vn.prototype.has=vn.prototype.has,vn.prototype.contains=vn.prototype.contains,vn.prototype.clear=vn.prototype.clear,vn.prototype.addAll=vn.prototype.addAll,vn.prototype.push=vn.prototype.push,vn.prototype.add=vn.prototype.add,vn.prototype.thaw=vn.prototype.ka,vn.prototype.freeze=vn.prototype.freeze,vn.className="List";function Qi(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Qi.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},Qi.prototype.next=function(){var a=this.eg;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},Qi.prototype.Ad=function(){return this.next()},Qi.prototype.first=function(){var a=this.eg;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},Qi.prototype.any=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Qi.prototype.all=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Qi.prototype.each=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},Qi.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new vn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Qi.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new vn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},Qi.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},Qi.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},qe.Object.defineProperties(Qi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),Qi.prototype.first=Qi.prototype.first,Qi.prototype.hasNext=Qi.prototype.Ad,Qi.prototype.next=Qi.prototype.next,Qi.prototype.reset=Qi.prototype.reset,Qi.className="SetIterator";function gn(a){qi(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&We("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}ee=gn.prototype,ee.xb=function(){var a=this.Ja;a++,999999999=this.Sb)return hr;var a=this.Sa;return a!==null?(a.reset(),a):new Qi(this)}}}),gn.prototype.toList=gn.prototype.Hv,gn.prototype.toArray=gn.prototype.Fa,gn.prototype.clear=gn.prototype.clear,gn.prototype.retainAll=gn.prototype.pA,gn.prototype.removeAll=gn.prototype.hp,gn.prototype.delete=gn.prototype.delete,gn.prototype.remove=gn.prototype.remove,gn.prototype.first=gn.prototype.first,gn.prototype.containsAny=gn.prototype.Ty,gn.prototype.containsAll=gn.prototype.Sy,gn.prototype.has=gn.prototype.has,gn.prototype.contains=gn.prototype.contains,gn.prototype.addAll=gn.prototype.addAll,gn.prototype.add=gn.prototype.add,gn.prototype.thaw=gn.prototype.ka,gn.prototype.freeze=gn.prototype.freeze;var Zo=1;gn.className="Set",gn.uniqueHash=qi,gn.hashIdUnique=Io,gn.hashId=Kr;function Xr(a){this.ma=a,this.qa=a.Ja,this.sa=null}Xr.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Xr.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=this.key=a=y.key,!0):(this.de(),!1)},Xr.prototype.Ad=function(){return this.next()},Xr.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.value=this.key=a=a.key):null},Xr.prototype.any=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Xr.prototype.all=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Xr.prototype.each=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;)a(y.key),y=y.va;return this},Xr.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new vn;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},Xr.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new vn;for(y=y.ea;y!==null;){var b=y.key;a(b)&&x.add(b),y=y.va}return x.iterator},Xr.prototype.de=function(){this.value=this.key=null,this.qa=-1},Xr.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},qe.Object.defineProperties(Xr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Xr.prototype.first=Xr.prototype.first,Xr.prototype.hasNext=Xr.prototype.Ad,Xr.prototype.next=Xr.prototype.next,Xr.prototype.reset=Xr.prototype.reset,Xr.className="MapKeySetIterator";function Ri(a){gn.call(this),qi(this),this._isFrozen=!0,this.ma=a}en(Ri,gn),ee=Ri.prototype,ee.freeze=function(){return this},ee.ka=function(){return this},ee.toString=function(){return"MapKeySet("+this.ma.toString()+")"},ee.add=function(){We("This Set is read-only: "+this.toString())},ee.contains=function(a){return this.ma.contains(a)},ee.has=function(a){return this.contains(a)},ee.remove=function(){We("This Set is read-only: "+this.toString())},ee.delete=function(a){return this.remove(a)},ee.clear=function(){We("This Set is read-only: "+this.toString())},ee.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Ri.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Ri.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Ri.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Ri.prototype.map=function(a){for(var y=new gn,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},Ri.prototype.filter=function(a){for(var y=new gn,x=this.ma.ea;x!==null;){var b=x.key;a(b)&&y.add(b),x=x.va}return y},Ri.prototype.copy=function(){return new Ri(this.ma)},Ri.prototype.Iv=function(){var a=new gn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Ri.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),x=0,b;for(b in a)y[x]=a[b].key,x++;return y},Ri.prototype.Hv=function(){var a=new vn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},qe.Object.defineProperties(Ri.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?hr:new Xr(this.ma)}}}),Ri.prototype.toList=Ri.prototype.Hv,Ri.prototype.toArray=Ri.prototype.Fa,Ri.prototype.toSet=Ri.prototype.Iv,Ri.prototype.first=Ri.prototype.first,Ri.prototype.clear=Ri.prototype.clear,Ri.prototype.delete=Ri.prototype.delete,Ri.prototype.remove=Ri.prototype.remove,Ri.prototype.has=Ri.prototype.has,Ri.prototype.contains=Ri.prototype.contains,Ri.prototype.add=Ri.prototype.add,Ri.prototype.thaw=Ri.prototype.ka,Ri.prototype.freeze=Ri.prototype.freeze,Ri.className="MapKeySet";function Cr(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}Cr.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},Cr.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},Cr.prototype.Ad=function(){return this.next()},Cr.prototype.first=function(){var a=this.ma;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},Cr.prototype.any=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Cr.prototype.all=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Cr.prototype.each=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},Cr.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new vn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Cr.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new vn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},Cr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},Cr.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},qe.Object.defineProperties(Cr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Cr.prototype.first=Cr.prototype.first,Cr.prototype.hasNext=Cr.prototype.Ad,Cr.prototype.next=Cr.prototype.next,Cr.prototype.reset=Cr.prototype.reset,Cr.className="MapValueSetIterator";function ba(a,y){this.key=a,this.value=y,this.ll=this.va=null}ba.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},ba.className="KeyValuePair";function uo(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}uo.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},uo.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.key=y.key,this.value=y.value,!0):(this.de(),!1)},uo.prototype.Ad=function(){return this.next()},uo.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.key=a.key,this.value=a.value,a):null},uo.prototype.any=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},uo.prototype.all=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},uo.prototype.each=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y),y=y.va;return this},uo.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new vn;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},uo.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new vn;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},uo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},uo.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},qe.Object.defineProperties(uo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),uo.prototype.first=uo.prototype.first,uo.prototype.hasNext=uo.prototype.Ad,uo.prototype.next=uo.prototype.next,uo.prototype.reset=uo.prototype.reset,uo.className="MapIterator";function Rn(a){qi(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.jf=this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&We("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}ee=Rn.prototype,ee.xb=function(){var a=this.Ja;a++,999999999=this.count)return hr;var a=this.Sa;return a!==null?(a.reset(),a):new uo(this)}},iteratorKeys:{get:function(){return 0>=this.count?hr:new Xr(this)}},iteratorValues:{get:function(){if(0>=this.count)return hr;var a=this.jf;return a!==null?(a.reset(),a):new Cr(this)}}}),Rn.prototype.toKeySet=Rn.prototype.Lf,Rn.prototype.toArray=Rn.prototype.Fa,Rn.prototype.clear=Rn.prototype.clear,Rn.prototype.delete=Rn.prototype.delete,Rn.prototype.remove=Rn.prototype.remove,Rn.prototype.get=Rn.prototype.get,Rn.prototype.getValue=Rn.prototype.I,Rn.prototype.has=Rn.prototype.has,Rn.prototype.contains=Rn.prototype.contains,Rn.prototype.first=Rn.prototype.first,Rn.prototype.addAll=Rn.prototype.addAll,Rn.prototype.set=Rn.prototype.set,Rn.prototype.add=Rn.prototype.add,Rn.prototype.thaw=Rn.prototype.ka,Rn.prototype.freeze=Rn.prototype.freeze,Rn.className="Map";function Ee(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):We("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var jo,Qo,_l,Pa,gl;Ee.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Ee.prototype.h=function(a,y){return this.x=a,this.y=y,this},Ee.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Ee.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Ee.prototype.copy=function(){var a=new Ee;return a.x=this.x,a.y=this.y,a},ee=Ee.prototype,ee.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},ee.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},ee.freeze=function(){return this._isFrozen=!0,this},ee.ka=function(){return Object.isFrozen(this)&&We("cannot thaw constant: "+this),this._isFrozen=!1,this};function bu(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var tt=0;a[y]==="";)y++;return(b=a[y++])&&(tt=parseFloat(b)),new Ee(x,tt)}return new Ee}function ec(a){return a.x.toString()+" "+a.y.toString()}ee.toString=function(){return"Point("+this.x+","+this.y+")"},ee.D=function(a){return a instanceof Ee?this.x===a.x&&this.y===a.y:!1},ee.hi=function(a,y){return this.x===a&&this.y===y},ee.Xa=function(a){return Ge.B(this.x,a.x)&&Ge.B(this.y,a.y)},ee.add=function(a){return this.x+=a.x,this.y+=a.y,this},ee.re=function(a){return this.x-=a.x,this.y-=a.y,this},ee.offset=function(a,y){return this.x+=a,this.y+=y,this},Ee.prototype.rotate=function(a){if(a===0)return this;var y=this.x,x=this.y;if(y===0&&x===0)return this;if(360<=a?a-=360:0>a&&(a+=360),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));return this.x=a*y-b*x,this.y=b*y+a*x,this},ee=Ee.prototype,ee.scale=function(a,y){return this.x*=a,this.y*=y,this},ee.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},ee.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},ee.normalize=function(){var a=this.x,y=this.y,x=Math.sqrt(a*a+y*y);return 0y?270:0;if(y===0)return 0a?x=0>y?x+180:180-x:0>y&&(x=360-x),x}ee.Ry=function(a,y){return Ge.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},ee.fA=function(a,y,x,b){return Ge.qh(a,y,x,b,this.x,this.y,this),this},ee.gA=function(a,y){return Ge.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},ee.uA=function(a,y,x,b){return Ge.No(this.x,this.y,a,y,x,b,this),this},ee.vA=function(a,y){return Ge.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},ee.xi=function(a,y){return this.x=a.x+y.x*a.width+y.offsetX,this.y=a.y+y.y*a.height+y.offsetY,this},ee.yi=function(a,y,x,b,tt){return this.x=a+tt.x*x+tt.offsetX,this.y=y+tt.y*b+tt.offsetY,this},ee.transform=function(a){return a.Ga(this),this};function Er(a,y){return y.Cd(a),a}function Zr(a,y,x,b,tt,et){var nt=tt-x,ht=et-b,gt=nt*nt+ht*ht;x-=a,b-=y;var bt=-x*nt-b*ht;return 0>=bt||bt>=gt?(nt=tt-a,ht=et-y,Math.min(x*x+b*b,nt*nt+ht*ht)):(a=nt*b-ht*x,a*a/gt)}function aa(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function vi(a,y,x,b){return a=x-a,y=b-y,a===0?0y?270:0:y===0?0a?b=0>y?b+180:180-b:0>y&&(b=360-b),b)}ee.w=function(){return isFinite(this.x)&&isFinite(this.y)},Ee.alloc=function(){var a=qn.pop();return a===void 0?new Ee:a},Ee.allocAt=function(a,y){var x=qn.pop();return x===void 0?new Ee(a,y):(x.x=a,x.y=y,x)},Ee.free=function(a){qn.push(a)},Ee.prototype.isReal=Ee.prototype.w,Ee.prototype.setSpot=Ee.prototype.yi,Ee.prototype.setRectSpot=Ee.prototype.xi,Ee.prototype.snapToGridPoint=Ee.prototype.vA,Ee.prototype.snapToGrid=Ee.prototype.uA,Ee.prototype.projectOntoLineSegmentPoint=Ee.prototype.gA,Ee.prototype.projectOntoLineSegment=Ee.prototype.fA,Ee.intersectingLineSegments=function(a,y,x,b,tt,et,nt,ht){return Ge.Rl(a,y,x,b,tt,et,nt,ht)},Ee.prototype.compareWithLineSegmentPoint=Ee.prototype.Ry,Ee.compareWithLineSegment=function(a,y,x,b,tt,et){return Ge.Fl(a,y,x,b,tt,et)},Ee.prototype.direction=Ee.prototype.direction,Ee.prototype.directionPoint=Ee.prototype.ab,Ee.prototype.normalize=Ee.prototype.normalize,Ee.prototype.distanceSquared=Ee.prototype.zd,Ee.prototype.distanceSquaredPoint=Ee.prototype.Bf,Ee.prototype.scale=Ee.prototype.scale,Ee.prototype.rotate=Ee.prototype.rotate,Ee.prototype.offset=Ee.prototype.offset,Ee.prototype.subtract=Ee.prototype.re,Ee.prototype.add=Ee.prototype.add,Ee.prototype.equalsApprox=Ee.prototype.Xa,Ee.prototype.equalTo=Ee.prototype.hi,Ee.prototype.equals=Ee.prototype.D,Ee.prototype.set=Ee.prototype.set,Ee.prototype.setTo=Ee.prototype.sg;var qn=[];Ee.className="Point",Ee.parse=bu,Ee.stringify=ec,Ee.distanceLineSegmentSquared=Zr,Ee.distanceSquared=aa,Ee.direction=vi,Ee.Origin=jo=new Ee(0,0).ja(),Ee.InfiniteTopLeft=Qo=new Ee(-1/0,-1/0).ja(),Ee.InfiniteBottomRight=_l=new Ee(1/0,1/0).ja(),Ee.SixPoint=Pa=new Ee(6,6).ja(),Ee.NoPoint=gl=new Ee(NaN,NaN).ja(),Ee.parse=bu,Ee.stringify=ec,Ee.distanceLineSegmentSquared=Zr,Ee.distanceSquared=aa,Ee.direction=vi;function xn(a,y){a===void 0?this.height=this.width=0:typeof a=="number"&&(0<=a||isNaN(a))&&typeof y=="number"&&(0<=y||isNaN(y))?(this.width=a,this.height=y):We("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var ai,zi,jr,Qr,Ur,mo,Jr;xn.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},xn.prototype.h=function(a,y){return this.width=a,this.height=y,this},xn.prototype.sg=function(a,y){return this.width=a,this.height=y,this},xn.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},xn.prototype.copy=function(){var a=new xn;return a.width=this.width,a.height=this.height,a},ee=xn.prototype,ee.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},ee.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},ee.freeze=function(){return this._isFrozen=!0,this},ee.ka=function(){return Object.isFrozen(this)&&We("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ca(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var tt=0;a[y]==="";)y++;return(b=a[y++])&&(tt=parseFloat(b)),new xn(x,tt)}return new xn}function Is(a){return a.width.toString()+" "+a.height.toString()}ee.toString=function(){return"Size("+this.width+","+this.height+")"},ee.D=function(a){return a instanceof xn?this.width===a.width&&this.height===a.height:!1},ee.hi=function(a,y){return this.width===a&&this.height===y},ee.Xa=function(a){return Ge.B(this.width,a.width)&&Ge.B(this.height,a.height)},ee.Bc=function(a,y){return a=this.width+a,this.width=0<=a?a:0,y=this.height+y,this.height=0<=y?y:0,this},ee.w=function(){return isFinite(this.width)&&isFinite(this.height)},xn.alloc=function(){var a=Ol.pop();return a===void 0?new xn:a},xn.free=function(a){Ol.push(a)},xn.prototype.isReal=xn.prototype.w,xn.prototype.inflate=xn.prototype.Bc,xn.prototype.equalsApprox=xn.prototype.Xa,xn.prototype.equalTo=xn.prototype.hi,xn.prototype.equals=xn.prototype.D,xn.prototype.set=xn.prototype.set,xn.prototype.setTo=xn.prototype.sg;var Ol=[];xn.className="Size",xn.parse=Ca,xn.stringify=Is,xn.ZeroSize=ai=new xn(0,0).ja(),xn.OneSize=zi=new xn(1,1).ja(),xn.SixSize=jr=new xn(6,6).ja(),xn.EightSize=Qr=new xn(8,8).ja(),xn.TenSize=Ur=new xn(10,10).ja(),xn.InfiniteSize=mo=new xn(1/0,1/0).ja(),xn.NoSize=Jr=new xn(NaN,NaN).ja(),xn.parse=Ca,xn.stringify=Is;function $e(a,y,x,b){a===void 0?this.height=this.width=this.y=this.x=0:typeof a=="number"&&typeof y=="number"&&typeof x=="number"&&(0<=x||isNaN(x))&&typeof b=="number"&&(0<=b||isNaN(b))?(this.x=a,this.y=y,this.width=x,this.height=b):a instanceof Ee?(x=a.x,a=a.y,y instanceof Ee?(b=y.x,y=y.y,this.x=Math.min(x,b),this.y=Math.min(a,y),this.width=Math.abs(x-b),this.height=Math.abs(a-y)):y instanceof xn?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):We("Incorrect second argument supplied to Rect constructor "+y)):We("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}ee=$e.prototype,ee.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},ee.h=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this};function Es(a,y,x){a.width=y,a.height=x}ee.sg=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this},ee.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},ee.dd=function(a){return this.x=a.x,this.y=a.y,this},ee.tA=function(a){return this.width=a.width,this.height=a.height,this},$e.prototype.copy=function(){var a=new $e;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},ee=$e.prototype,ee.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},ee.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},ee.freeze=function(){return this._isFrozen=!0,this},ee.ka=function(){return Object.isFrozen(this)&&We("cannot thaw constant: "+this),this._isFrozen=!1,this};function Pu(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var tt=0;a[y]==="";)y++;(b=a[y++])&&(tt=parseFloat(b));for(var et=0;a[y]==="";)y++;(b=a[y++])&&(et=parseFloat(b));for(var nt=0;a[y]==="";)y++;return(b=a[y++])&&(nt=parseFloat(b)),new $e(x,tt,et,nt)}return new $e}function Ba(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}ee.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},ee.D=function(a){return a instanceof $e?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},ee.hi=function(a,y,x,b){return this.x===a&&this.y===y&&this.width===x&&this.height===b},ee.Xa=function(a){return Ge.B(this.x,a.x)&&Ge.B(this.y,a.y)&&Ge.B(this.width,a.width)&&Ge.B(this.height,a.height)};function Cu(a,y){return Ge.$(a.x,y.x)&&Ge.$(a.y,y.y)&&Ge.$(a.width,y.width)&&Ge.$(a.height,y.height)}ee.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},ee.Re=function(a){return this.x<=a.x&&a.x+a.width<=this.x+this.width&&this.y<=a.y&&a.y+a.height<=this.y+this.height},ee.contains=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),this.x<=a&&a+x<=this.x+this.width&&this.y<=y&&y+b<=this.y+this.height},ee.offset=function(a,y){return this.x+=a,this.y+=y,this},ee.Bc=function(a,y){return qr(this,y,a,y,a)},ee.Co=function(a){return qr(this,a.top,a.right,a.bottom,a.left)},ee.Fv=function(a){return qr(this,-a.top,-a.right,-a.bottom,-a.left)},ee.Hz=function(a,y,x,b){return qr(this,a,y,x,b)};function qr(a,y,x,b,tt){var et=a.width;return x+tt<=-et?(a.x+=et/2,a.width=0):(a.x-=tt,a.width+=x+tt),x=a.height,y+b<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+b),a}ee.Ex=function(a){return $a(this,a.x,a.y,a.width,a.height)},ee.Uu=function(a,y,x,b){return $a(this,a,y,x,b)};function $a(a,y,x,b,tt){var et=Math.max(a.x,y),nt=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+b),x=Math.min(a.y+a.height,x+tt),a.x=et,a.y=nt,a.width=Math.max(0,y-et),a.height=Math.max(0,x-nt),a}ee.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},ee.Vu=function(a,y,x,b){var tt=this.width,et=this.x;return tt!==1/0&&x!==1/0&&(tt+=et,x+=a,isNaN(x)||isNaN(tt)||et>x||a>tt)?!1:(a=this.height,x=this.y,!(a!==1/0&&b!==1/0&&(a+=x,b+=y,isNaN(b)||isNaN(a)||x>b||y>a)))};function tl(a,y){var x=a.width,b=a.x,tt=y.x-10;return b>y.width+10+10+tt||tt>x+b?!1:(x=a.height,a=a.y,b=y.y-10,!(a>y.height+10+10+b||b>x+a))}ee.Ye=function(a){return xr(this,a.x,a.y,0,0)},ee.ed=function(a){return xr(this,a.x,a.y,a.width,a.height)},ee.Kv=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),xr(this,a,y,x,b)};function xr(a,y,x,b,tt){var et=Math.min(a.x,y),nt=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+b),x=Math.max(a.y+a.height,x+tt),a.x=et,a.y=nt,a.width=y-et,a.height=x-nt,a}ee.yi=function(a,y,x){return this.x=a-x.offsetX-x.x*this.width,this.y=y-x.offsetY-x.y*this.height,this};function Eo(a,y,x,b,tt,et,nt,ht){return nt===void 0&&(nt=0),ht===void 0&&(ht=0),a<=tt&&tt+nt<=a+x&&y<=et&&et+ht<=y+b}function Eu(a,y,x,b,tt,et,nt,ht){return a>nt+tt||tt>x+a?!1:!(y>ht+et||et>b+y)}ee.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},ee.Mz=function(){return this.width===0&&this.height===0},$e.alloc=function(){var a=la.pop();return a===void 0?new $e:a},$e.allocAt=function(a,y,x,b){var tt=la.pop();return tt===void 0?new $e(a,y,x,b):tt.h(a,y,x,b)},$e.free=function(a){la.push(a)},qe.Object.defineProperties($e.prototype,{left:{get:function(){return this.x},set:function(a){this.x=a}},top:{get:function(){return this.y},set:function(a){this.y=a}},right:{get:function(){return this.x+this.width},set:function(a){this.x+=a-(this.x+this.width)}},bottom:{get:function(){return this.y+this.height},set:function(a){this.y+=a-(this.y+this.height)}},position:{get:function(){return new Ee(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new xn(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Ee(this.x+this.width/2,this.y+this.height/2)},set:function(a){this.x=a.x-this.width/2,this.y=a.y-this.height/2}},centerX:{get:function(){return this.x+this.width/2},set:function(a){this.x=a-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(a){this.y=a-this.height/2}}}),$e.prototype.isEmpty=$e.prototype.Mz,$e.prototype.isReal=$e.prototype.w,$e.intersectsLineSegment=function(a,y,x,b,tt,et,nt,ht){return Ge.Fx(a,y,x,b,tt,et,nt,ht)},$e.prototype.setSpot=$e.prototype.yi,$e.prototype.union=$e.prototype.Kv,$e.prototype.unionRect=$e.prototype.ed,$e.prototype.unionPoint=$e.prototype.Ye,$e.prototype.intersects=$e.prototype.Vu,$e.prototype.intersectsRect=$e.prototype.Yc,$e.prototype.intersect=$e.prototype.Uu,$e.prototype.intersectRect=$e.prototype.Ex,$e.prototype.grow=$e.prototype.Hz,$e.prototype.subtractMargin=$e.prototype.Fv,$e.prototype.addMargin=$e.prototype.Co,$e.prototype.inflate=$e.prototype.Bc,$e.prototype.offset=$e.prototype.offset,$e.prototype.contains=$e.prototype.contains,$e.prototype.containsRect=$e.prototype.Re,$e.prototype.containsPoint=$e.prototype.ca,$e.prototype.equalsApprox=$e.prototype.Xa,$e.prototype.equalTo=$e.prototype.hi,$e.prototype.equals=$e.prototype.D,$e.prototype.setSize=$e.prototype.tA,$e.prototype.setPoint=$e.prototype.dd,$e.prototype.set=$e.prototype.set,$e.prototype.setTo=$e.prototype.sg;var Jo=null,ch=null,la=[];$e.className="Rect",$e.parse=Pu,$e.stringify=Ba,$e.contains=Eo,$e.intersects=Eu,$e.ZeroRect=Jo=new $e(0,0,0,0).ja(),$e.NoRect=ch=new $e(NaN,NaN,NaN,NaN).ja(),$e.parse=Pu,$e.stringify=Ba,$e.contains=Eo,$e.intersects=Eu;function Yn(a,y,x,b){a===void 0?this.left=this.bottom=this.right=this.top=0:y===void 0?this.left=this.bottom=this.right=this.top=a:x===void 0?(this.top=a,this.right=y,this.bottom=a,this.left=y):b!==void 0?(this.top=a,this.right=y,this.bottom=x,this.left=b):We("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}Yn.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Yn.prototype.sg=function(a,y,x,b){return this.top=a,this.right=y,this.bottom=x,this.left=b,this},Yn.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Yn.prototype.copy=function(){var a=new Yn;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},ee=Yn.prototype,ee.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},ee.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},ee.freeze=function(){return this._isFrozen=!0,this},ee.ka=function(){return Object.isFrozen(this)&&We("cannot thaw constant: "+this),this._isFrozen=!1,this};function If(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=NaN;a[y]==="";)y++;var b=a[y++];if(b&&(x=parseFloat(b)),isNaN(x))return new Yn;for(var tt=NaN;a[y]==="";)y++;if((b=a[y++])&&(tt=parseFloat(b)),isNaN(tt))return new Yn(x);for(var et=NaN;a[y]==="";)y++;if((b=a[y++])&&(et=parseFloat(b)),isNaN(et))return new Yn(x,tt);for(var nt=NaN;a[y]==="";)y++;return(b=a[y++])&&(nt=parseFloat(b)),isNaN(nt)?new Yn(x,tt):new Yn(x,tt,et,nt)}return new Yn}function ic(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}ee.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},ee.D=function(a){return a instanceof Yn?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},ee.hi=function(a,y,x,b){return this.top===a&&this.right===y&&this.bottom===x&&this.left===b},ee.Xa=function(a){return Ge.B(this.top,a.top)&&Ge.B(this.right,a.right)&&Ge.B(this.bottom,a.bottom)&&Ge.B(this.left,a.left)},ee.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Yn.alloc=function(){var a=Uc.pop();return a===void 0?new Yn:a},Yn.free=function(a){Uc.push(a)},Yn.prototype.isReal=Yn.prototype.w,Yn.prototype.equalsApprox=Yn.prototype.Xa,Yn.prototype.equalTo=Yn.prototype.hi,Yn.prototype.equals=Yn.prototype.D,Yn.prototype.set=Yn.prototype.set,Yn.prototype.setTo=Yn.prototype.sg;var Ra=null,Gc=null,Uc=[];Yn.className="Margin",Yn.parse=If,Yn.stringify=ic,Yn.ZeroMargin=Ra=new Yn(0,0,0,0).ja(),Yn.TwoMargin=Gc=new Yn(2,2,2,2).ja(),Yn.parse=If,Yn.stringify=ic;function jn(a,y,x,b){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),b===void 0&&(b=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=b),this._isFrozen=!1}var $r,vo,Zs,$l,jl,wi,fh,el,Fs,ms,ml,vl,As,Ea,yn,ci,Ei,Ii,rr,ji,Ir,Nr,qo,bo,Ms,oo,rc,dh,yl,nl,Fo,vs,Ao,Po,il,tu;jn.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},jn.prototype.sg=function(a,y,x,b){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=b,this},jn.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},jn.prototype.copy=function(){var a=new jn;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},ee=jn.prototype,ee.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},ee.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},ee.freeze=function(){return this._isFrozen=!0,this},ee.ka=function(){return Object.isFrozen(this)&&We("cannot thaw constant: "+this),this._isFrozen=!1,this};function ho(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function Ff(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return $r;if(a==="TopLeft")return vo;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Zs;if(a==="TopRight")return $l;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return jl;if(a==="Center")return wi;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return fh;if(a==="BottomLeft")return el;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return Fs;if(a==="BottomRight")return ms;if(a==="TopSide")return ml;if(a==="LeftSide")return vl;if(a==="RightSide")return As;if(a==="BottomSide")return Ea;if(a==="TopBottomSides")return yn;if(a==="LeftRightSides")return ci;if(a==="TopLeftSides")return Ei;if(a==="TopRightSides")return Ii;if(a==="BottomLeftSides")return rr;if(a==="BottomRightSides")return ji;if(a==="NotTopSide")return Ir;if(a==="NotLeftSide")return Nr;if(a==="NotRightSide")return qo;if(a==="NotBottomSide")return bo;if(a==="AllSides")return Ms;if(a==="Default")return oo;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b!==void 0&&0a&&(a+=360),a===0)return this;if(this.translate(y,x),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var tt=this.m12*a+this.m22*b,et=this.m11*-b+this.m21*a,nt=this.m12*-b+this.m22*a;return this.m11=this.m11*a+this.m21*b,this.m12=tt,this.m21=et,this.m22=nt,this.translate(-y,-x),this},ee=Xn.prototype,ee.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},ee.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},ee.Ga=function(a){var y=a.x,x=a.y;return a.h(y*this.m11+x*this.m21+this.dx,y*this.m12+x*this.m22+this.dy)},ee.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=a.x,b=a.y;return a.h(x*this.m22*y+b*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+b*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},ee.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=1.25*a.x,b=1.2*a.y;return a.h(x*this.m22*y+b*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+b*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},ee.pp=function(a){var y=a.x,x=a.y,b=y+a.width,tt=x+a.height,et=this.m11,nt=this.m12,ht=this.m21,gt=this.m22,bt=this.dx,Pt=this.dy,Nt=y*et+x*ht+bt,zt=y*nt+x*gt+Pt,Yt=b*et+x*ht+bt,Zt=b*nt+x*gt+Pt;return x=y*et+tt*ht+bt,y=y*nt+tt*gt+Pt,et=b*et+tt*ht+bt,b=b*nt+tt*gt+Pt,tt=Math.min(Nt,Yt),Nt=Math.max(Nt,Yt),Yt=Math.min(zt,Zt),zt=Math.max(zt,Zt),tt=Math.min(tt,x),Nt=Math.max(Nt,x),Yt=Math.min(Yt,y),zt=Math.max(zt,y),tt=Math.min(tt,et),Nt=Math.max(Nt,et),Yt=Math.min(Yt,b),zt=Math.max(zt,b),a.h(tt,Yt,Nt-tt,zt-Yt),a},Xn.alloc=function(){var a=qd.pop();return a===void 0?new Xn:a},Xn.free=function(a){qd.push(a)},Xn.prototype.transformRect=Xn.prototype.pp,Xn.prototype.transformPoint=Xn.prototype.Ga,Xn.prototype.scale=Xn.prototype.scale,Xn.prototype.translate=Xn.prototype.translate,Xn.prototype.rotate=Xn.prototype.rotate,Xn.prototype.invert=Xn.prototype.Vj,Xn.prototype.multiplyInverted=Xn.prototype.bv,Xn.prototype.multiply=Xn.prototype.multiply,Xn.prototype.reset=Xn.prototype.reset,Xn.prototype.isIdentity=Xn.prototype.ws,Xn.prototype.equals=Xn.prototype.D,Xn.prototype.setTransform=Xn.prototype.setTransform,Xn.prototype.set=Xn.prototype.set;var qd=[];Xn.className="Transform",Xn.xF="54a702f3e53909c447824c6706603faf4c";var Ge={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Ge.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);Ge.Uv=y}return 1>a?(x=1/a,2e3>=x?1/y[x|0]:Math.sqrt(a)):2e3>=a?y[a|0]:Math.sqrt(a)},B:function(a,y){return a-=y,.5>a&&-.5a&&-5e-8=tt&&(tt=1e-6),aPt-bt)if(a-x>tt||x-a>tt){if(et=(b-y)/(x-a)*(et-a)+y,et-tt<=nt&&nt<=et+tt)return!0}else return!0;else if(y-b>tt||b-y>tt){if(nt=(x-a)/(b-y)*(nt-y)+a,nt-tt<=et&&et<=nt+tt)return!0}else return!0;return!1},cs:function(a,y,x,b,tt,et,nt,ht,gt,bt,Pt,Nt){if(Ge.Yb(a,y,nt,ht,Nt,x,b)&&Ge.Yb(a,y,nt,ht,Nt,tt,et))return Ge.Yb(a,y,nt,ht,Nt,bt,Pt);var zt=(a+x)/2,Yt=(y+b)/2,Zt=(x+tt)/2,oe=(b+et)/2;tt=(tt+nt)/2,et=(et+ht)/2,b=(zt+Zt)/2,x=(Yt+oe)/2,Zt=(Zt+tt)/2,oe=(oe+et)/2;var Pe=(b+Zt)/2,pe=(x+oe)/2;return Ge.cs(a,y,zt,Yt,b,x,Pe,pe,gt,bt,Pt,Nt)||Ge.cs(Pe,pe,Zt,oe,tt,et,nt,ht,gt,bt,Pt,Nt)},ax:function(a,y,x,b,tt,et,nt,ht,gt){var bt=(x+tt)/2,Pt=(b+et)/2;return gt.h((((a+x)/2+bt)/2+(bt+(tt+nt)/2)/2)/2,(((y+b)/2+Pt)/2+(Pt+(et+ht)/2)/2)/2),gt},My:function(a,y,x,b,tt,et,nt,ht){var gt=(x+tt)/2,bt=(b+et)/2;return vi(((a+x)/2+gt)/2,((y+b)/2+bt)/2,(gt+(tt+nt)/2)/2,(bt+(et+ht)/2)/2)},Dl:function(a,y,x,b,tt,et,nt,ht,gt,bt){if(Ge.Yb(a,y,nt,ht,gt,x,b)&&Ge.Yb(a,y,nt,ht,gt,tt,et))xr(bt,a,y,0,0),xr(bt,nt,ht,0,0);else{var Pt=(a+x)/2,Nt=(y+b)/2,zt=(x+tt)/2,Yt=(b+et)/2;tt=(tt+nt)/2,et=(et+ht)/2,b=(Pt+zt)/2,x=(Nt+Yt)/2,zt=(zt+tt)/2,Yt=(Yt+et)/2;var Zt=(b+zt)/2,oe=(x+Yt)/2;Ge.Dl(a,y,Pt,Nt,b,x,Zt,oe,gt,bt),Ge.Dl(Zt,oe,zt,Yt,tt,et,nt,ht,gt,bt)}return bt},Qe:function(a,y,x,b,tt,et,nt,ht,gt,bt){if(Ge.Yb(a,y,nt,ht,gt,x,b)&&Ge.Yb(a,y,nt,ht,gt,tt,et))bt.length===0&&(bt.push(a),bt.push(y)),bt.push(nt),bt.push(ht);else{var Pt=(a+x)/2,Nt=(y+b)/2,zt=(x+tt)/2,Yt=(b+et)/2;tt=(tt+nt)/2,et=(et+ht)/2,b=(Pt+zt)/2,x=(Nt+Yt)/2,zt=(zt+tt)/2,Yt=(Yt+et)/2;var Zt=(b+zt)/2,oe=(x+Yt)/2;Ge.Qe(a,y,Pt,Nt,b,x,Zt,oe,gt,bt),Ge.Qe(Zt,oe,zt,Yt,tt,et,nt,ht,gt,bt)}return bt},jv:function(a,y,x,b,tt,et,nt,ht,gt,bt){if(Ge.Yb(a,y,tt,et,bt,x,b))return Ge.Yb(a,y,tt,et,bt,ht,gt);var Pt=(a+x)/2,Nt=(y+b)/2;x=(x+tt)/2,b=(b+et)/2;var zt=(Pt+x)/2,Yt=(Nt+b)/2;return Ge.jv(a,y,Pt,Nt,zt,Yt,nt,ht,gt,bt)||Ge.jv(zt,Yt,x,b,tt,et,nt,ht,gt,bt)},OA:function(a,y,x,b,tt,et,nt){return nt.h(((a+x)/2+(x+tt)/2)/2,((y+b)/2+(b+et)/2)/2),nt},iv:function(a,y,x,b,tt,et,nt,ht){if(Ge.Yb(a,y,tt,et,nt,x,b))xr(ht,a,y,0,0),xr(ht,tt,et,0,0);else{var gt=(a+x)/2,bt=(y+b)/2;x=(x+tt)/2,b=(b+et)/2;var Pt=(gt+x)/2,Nt=(bt+b)/2;Ge.iv(a,y,gt,bt,Pt,Nt,nt,ht),Ge.iv(Pt,Nt,x,b,tt,et,nt,ht)}return ht},ep:function(a,y,x,b,tt,et,nt,ht){if(Ge.Yb(a,y,tt,et,nt,x,b))ht.length===0&&(ht.push(a),ht.push(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e,pe,tt,et,nt,ht,gt,bt,Pt,Nt,zt)}return Yt},qh:function(a,y,x,b,tt,et,nt){return Ge.$(a,x)?(yy?(nt.h(a,y),!1):(nt.h(a,et),!0)):Ge.$(y,b)?(aa?(nt.h(a,y),!1):(nt.h(tt,y),!0)):(tt=((a-tt)*(a-x)+(y-et)*(y-b))/((x-a)*(x-a)+(b-y)*(b-y)),-5e-6>tt?(nt.h(a,y),!1):1.000005y?(gt.h(a,y),!1):(gt.h(a,x),!0)):(nt=(b-y)/(x-a),Ge.$(ht,nt)?(Ge.qh(a,y,x,b,tt,et,gt),!1):(tt=(nt*a-ht*tt+et-y)/(nt-ht),Ge.$(nt,0)?(aa?(gt.h(a,y),!1):(gt.h(tt,y),!0)):Ge.qh(a,y,x,b,tt,nt*(tt-a)+y,gt))))},MA:function(a,y,x,b,tt){return Ge.Ve(x.x,x.y,b.x,b.y,a.x,a.y,y.x,y.y,tt)},KA:function(a,y,x,b,tt,et,nt,ht,gt,bt){function Pt(Pe,pe){var Le=(Pe-a)*(Pe-a)+(pe-y)*(pe-y);Le(x>a?x-a:a-x)){if(zt=1-(x-tt)*(x-tt)/(zt*zt),0>zt)return gt;zt=Math.sqrt(zt),b=-bt*zt+et,Pt(x,bt*zt+et),Pt(x,b)}else{if(x=(b-y)/(x-a),b=1/(zt*zt)+x*x/(bt*bt),ht=2*x*(y-x*a)/(bt*bt)-2*x*et/(bt*bt)-2*tt/(zt*zt),zt=ht*ht-4*b*(2*x*a*et/(bt*bt)-2*y*et/(bt*bt)+et*et/(bt*bt)+tt*tt/(zt*zt)-1+(y-x*a)*(y-x*a)/(bt*bt)),0>zt)return gt;zt=Math.sqrt(zt),bt=(-ht+zt)/(2*b),Pt(bt,x*bt-x*a+y),zt=(-ht-zt)/(2*b),Pt(zt,x*zt-x*a+y)}return gt},Ff:function(a,y,x,b,tt,et,nt,ht,gt){var bt=1e21,Pt=a,Nt=y;if(Ge.Ve(a,y,a,b,tt,et,nt,ht,gt)){var zt=(gt.x-tt)*(gt.x-tt)+(gt.y-et)*(gt.y-et);ztbt},us:function(a,y,x){return Ge.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,b,tt,et,nt,ht){var gt=a+x,bt=y+b;return tt===nt?(et=y):et===ht?(tt=a):!!(Eo(a,y,x,b,tt,et)||Eo(a,y,x,b,nt,ht)||Ge.Rl(a,y,gt,y,tt,et,nt,ht)||Ge.Rl(gt,y,gt,bt,tt,et,nt,ht)||Ge.Rl(gt,bt,a,bt,tt,et,nt,ht)||Ge.Rl(a,bt,a,y,tt,et,nt,ht))},Rl:function(a,y,x,b,tt,et,nt,ht){return a===x&&y===b&&tt===nt&&et===ht?a===tt&&y===et:0>=Ge.Fl(a,y,x,b,tt,et)*Ge.Fl(a,y,x,b,nt,ht)&&0>=Ge.Fl(tt,et,nt,ht,a,y)*Ge.Fl(tt,et,nt,ht,x,b)},Fl:function(a,y,x,b,tt,et){return x-=a,b-=y,a=tt-a,y=et-y,et=a*b-y*x,et===0&&(et=a*x+y*b,0et&&(et=0))),et},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,b,tt,et){var nt=Math.PI;et||(b*=nt/180,tt*=nt/180);var ht=b>tt?-1:1;et=[];var gt=nt/2,bt=b;if(b=Math.min(2*nt,Math.abs(tt-b)),1e-5>b)return gt=bt+ht*Math.min(b,gt),ht=a+x*Math.cos(bt),bt=y+x*Math.sin(bt),a+=x*Math.cos(gt),y+=x*Math.sin(gt),x=(ht+a)/2,gt=(bt+y)/2,et.push([ht,bt,x,gt,x,gt,a,y]),et;for(;1e-5x,et=0>b;if(abt&&(y=.5*(ht+gt),!(y===ht||y===gt));++bt){var Pt=a/(y+tt),Nt=nt/(y+et);if(Pt=Pt*Pt+Nt*Nt-1,0Pt)gt=y;else break}x=tt*x/(y+tt)-x,b=et*b/(y+et)-b,x=Math.sqrt(x*x+b*b)}else x=Math.abs(b-y);else b=a*a-y*y,et=a*x,eta?"M"+this.startX.toString()+" "+this.startY.toString()+"L"+this.endX.toString()+" "+this.endY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a)+"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);case pn.u:var y=new $e(this.startX,this.startY,0,0);return y.Kv(this.endX,this.endY,0,0),0>a?"M"+y.x.toString()+" "+y.y.toString()+"H"+y.right.toString()+"V"+y.bottom.toString()+"H"+y.left.toString()+"z":"M"+y.x.toFixed(a)+" "+y.y.toFixed(a)+"H"+y.right.toFixed(a)+"V"+y.bottom.toFixed(a)+"H"+y.left.toFixed(a)+"z";case pn.F:if(y=new $e(this.startX,this.startY,0,0),y.Kv(this.endX,this.endY,0,0),0>a)return a=y.left.toString()+" "+(y.y+y.height/2).toString(),"M"+a+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+(y.right.toString()+" "+(y.y+y.height/2).toString())+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+a;var x=y.left.toFixed(a)+" "+(y.y+y.height/2).toFixed(a);return"M"+x+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+(y.right.toFixed(a)+" "+(y.y+y.height/2).toFixed(a))+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+x;case pn.o:y="",x=this.figures.s;for(var b=x.length,tt=0;tt=De-1?!0:bt[oe+1].match(Re)!==null}function b(){return oe++,bt[oe]}function tt(Gn){var Fn=parseFloat(b()),yi=parseFloat(b());Pe===Pe.toLowerCase()&&(Fn=je.x+Fn,yi=je.y+yi),Gn.h(Fn,yi)}function et(){return tt(je),je}function nt(){return tt(Le),Le}function ht(){var Gn=pe.toLowerCase();return Gn!=="c"&&Gn!=="s"&&Gn!=="q"&&Gn!=="t"?je:new Ee(2*je.x-Le.x,2*je.y-Le.y)}y===void 0&&(y=!1);var gt=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(gt,"$1 $2"),a=a.replace(gt,"$1 $2"),a=a.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),a=a.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),a=a.replace(/([0-9])([+\-])/gm,"$1 $2"),a=a.replace(/[\s\r\t\n]+/gm," "),a=a.replace(/^\s+|\s+$/g,"");var bt=a.split(" ");for(a=0;a=De-1);)if(pe=Pe,Pe=b(),Pe!=="")switch(Pe.toUpperCase()){case"X":Yt=!0,Nt=Pt=!1;break;case"M":for(Zt=et(),a.mc===null||Yt===!0?(Ed(a,Zt.x,Zt.y,Pt,!Nt,zt),Yt=!1):a.moveTo(Zt.x,Zt.y),gt.assign(je);!x();)Zt=et(),a.lineTo(Zt.x,Zt.y);break;case"L":for(;!x();)Zt=et(),a.lineTo(Zt.x,Zt.y);break;case"H":for(;!x();)je=new Ee((Pe===Pe.toLowerCase()?je.x:0)+parseFloat(b()),je.y),a.lineTo(je.x,je.y);break;case"V":for(;!x();)je=new Ee(je.x,(Pe===Pe.toLowerCase()?je.y:0)+parseFloat(b())),a.lineTo(je.x,je.y);break;case"C":for(;!x();){Zt=new Ee,tt(Zt);var Ve=nt(),Sn=et();Ku(a,Zt.x,Zt.y,Ve.x,Ve.y,Sn.x,Sn.y)}break;case"S":for(;!x();)Zt=ht(),Ve=nt(),Sn=et(),Ku(a,Zt.x,Zt.y,Ve.x,Ve.y,Sn.x,Sn.y);break;case"Q":for(;!x();)Zt=nt(),Ve=et(),Fm(a,Zt.x,Zt.y,Ve.x,Ve.y);break;case"T":for(;!x();)Le=Zt=ht(),Ve=et(),Fm(a,Zt.x,Zt.y,Ve.x,Ve.y);break;case"B":for(;!x();){Zt=parseFloat(b()),Ve=parseFloat(b()),Sn=parseFloat(b());var Mn=parseFloat(b()),Pn=parseFloat(b()),hn=Pn,rn=!1;x()||(hn=parseFloat(b()),x()||(rn=parseFloat(b())!==0)),Pe===Pe.toLowerCase()&&(Sn+=je.x,Mn+=je.y),a.arcTo(Zt,Ve,Sn,Mn,Pn,hn,rn)}break;case"A":for(;!x();)Zt=Math.abs(parseFloat(b())),Ve=Math.abs(parseFloat(b())),Sn=parseFloat(b()),Pn=Mn=!1,rn=hn=0,hn=b(),hn.length===1?(Mn=!!parseFloat(hn),Pn=!!parseFloat(b()),hn=parseFloat(b())):hn.length===2?(Mn=!!parseFloat(hn[0]),Pn=!!parseFloat(hn[1]),hn=parseFloat(b())):(Mn=!!parseFloat(hn[0]),Pn=!!parseFloat(hn[1]),hn=parseFloat(hn.slice(2))),rn=parseFloat(b()),Pe===Pe.toLowerCase()&&(hn=je.x+hn,rn=je.y+rn),je.h(hn,rn),Pw(a,Zt,Ve,Sn,Mn,Pn,hn,rn);break;case"Z":bw(a),je.assign(gt);break;case"F":for(Zt="",Ve=1;bt[oe+Ve];)if(bt[oe+Ve]==="0")zt=!0,Ve++;else if(bt[oe+Ve].match(/[Uu]/)!==null)Ve++;else if(bt[oe+Ve].match(Re)===null)Ve++;else{Zt=bt[oe+Ve];break}Zt.match(/[Mm]/)?Pt=!0:0nt&&(nt+=360),Zt.startAngle+=nt),0>a&&(Zt.startAngle=180-Zt.startAngle,Zt.sweepAngle=-Zt.sweepAngle),0>b&&(Zt.startAngle=-Zt.startAngle,Zt.sweepAngle=-Zt.sweepAngle),Zt.radiusX*=Math.sqrt(a*a+x*x),Zt.radiusY!==void 0&&(Zt.radiusY*=Math.sqrt(y*y+b*b));break;case ua:if(nt=Zt.endX,ht=Zt.endY,Zt.endX=nt*a+ht*x+tt,Zt.endY=nt*y+ht*b+et,Zt.radiusX===0||Zt.radiusY===0)break;y!==0&&(nt=180*Math.atan2(y,a)/Math.PI,0>nt&&(nt+=360),Zt.xAxisRotation+=nt),0>a&&(Zt.xAxisRotation=180-Zt.xAxisRotation,Zt.isClockwiseArc=!Zt.isClockwiseArc),0>b&&(Zt.xAxisRotation=-Zt.xAxisRotation,Zt.isClockwiseArc=!Zt.isClockwiseArc),Zt.radiusX*=Math.sqrt(a*a+x*x),Zt.radiusY*=Math.sqrt(y*y+b*b);break;default:We("Unknown Segment type: "+Zt.type)}}}}return this._isInvalidBounds=!0,this},ee.ca=function(a,y){y===void 0&&(y=0);var x=this.od,b=this.pd,tt=this.Dc,et=this.Ec;switch(this.type){case pn.j:return Ge.Yb(x,b,tt,et,y,a.x,a.y);case pn.u:var nt=$e.allocAt(Math.min(x,tt)-y,Math.min(b,et)-y,Math.abs(tt-x)+2*y,Math.abs(et-b)+2*y);return a=nt.ca(a),$e.free(nt),a;case pn.F:nt=Math.min(x,tt)-y;var ht=Math.min(b,et)-y;return x=(Math.abs(tt-x)+2*y)/2,y=(Math.abs(et-b)+2*y)/2,0>=x||0>=y?!1:(nt=a.x-(nt+x),ht=a.y-(ht+y),1>=nt*nt/(x*x)+ht*ht/(y*y));case pn.o:return eu(this,a,y,!0,!1);default:return!1}};function eu(a,y,x,b,tt){var et=y.x;y=y.y;for(var nt=a.bounds.x-20,ht=0,gt,bt,Pt,Nt,zt=a.figures.s,Yt=zt.length,Zt=0;Zt=a)return 0;if((tt>nt?tt-nt:nt-tt)<(et>ht?et-ht:ht-et)){if(etht)return 0}else if(yet)return 0}else if(ttnt)return 0}else if(bttt)return 0;return 0a?a=0:1=et)return b=et-nt,b=Pt===0?0:b/Pt,x=x[ht],ht=x[2*a],tt=x[2*a+1],y.h(ht+(x[2*a+2]-ht)*b,tt+(x[2*a+3]-tt)*b),y;nt+=Pt}}return y},ee.wx=function(a){if(0>a?a=0:1=tt)return tt=y[nt],y=tt[2*a],x=tt[2*a+1],b=tt[2*a+2],a=tt[2*a+3],1>Math.abs(b-y)&&1>Math.abs(a-x)?0:1>Math.abs(b-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=b-y?0:180:180*Math.atan2(a-x,b-y)/Math.PI;et+=bt}}return NaN},ee.Qu=function(a,y){if(0>a?a=0:1=et)return b=et-nt,b=Pt===0?0:b/Pt,Pt=x[ht],x=Pt[2*a],ht=Pt[2*a+1],tt=Pt[2*a+2],a=Pt[2*a+3],y[0]=x+(tt-x)*b,y[1]=ht+(a-ht)*b,y[2]=1>Math.abs(tt-x)&&1>Math.abs(a-ht)?0:1>Math.abs(tt-x)?0<=a-ht?90:270:1>Math.abs(a-ht)?0<=tt-x?0:180:180*Math.atan2(a-ht,tt-x)/Math.PI,y;nt+=Pt}}return y},ee.xx=function(a){if(this.type===pn.j){var y=this.startX,x=this.startY,b=this.endX,tt=this.endY;if(y!==b||x!==tt){var et=a.x;if(a=a.y,y===b){if(x=b?b===x?0:1:Math.abs(a-x)/(b-nt)}if(x===tt)return y=b?b===y?0:1:Math.abs(et-y)/(b-nt);nt=(b-y)*(b-y)+(tt-x)*(tt-x);var ht=Ee.alloc();return Ge.qh(y,x,b,tt,et,a,ht),a=ht.x,et=ht.y,Ee.free(ht),Math.sqrt(((a-y)*(a-y)+(et-x)*(et-x))/nt)}}else if(this.type===pn.u){nt=this.startX,ht=this.startY;var gt=this.endX;if(tt=this.endY,nt!==gt||ht!==tt){y=gt-nt,x=tt-ht,et=2*y+2*x,b=a.x,a=a.y,b=Math.min(Math.max(b,nt),gt),a=Math.min(Math.max(a,ht),tt),nt=Math.abs(b-nt),gt=Math.abs(b-gt),ht=Math.abs(a-ht),tt=Math.abs(a-tt);var bt=Math.min(nt,gt,ht,tt);if(bt===ht)return b/et;if(bt===gt)return(y+a)/et;if(bt===tt)return(2*y+x-b)/et;if(bt===nt)return(2*y+2*x-a)/et}}else{y=this.flattenedSegments,x=this.flattenedLengths,et=this.flattenedTotalLength,b=Ee.alloc(),tt=1/0,ht=nt=0,gt=y.length;for(var Pt=bt=0,Nt=0;Nta?0:1a?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a),x=this.segments.s,b=x.length,tt=0;tta&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(b,0),this.Pg=Math.max(tt,0),typeof nt=="boolean"?nt&&(this.isLargeArc=!0):typeof nt=="number"&&nt&&(this.isLargeArc=!0),ht&&(this.isClockwiseArc=!0)):(this.Ne=b,this.Vh=tt,a===Dr&&(et=Math.max(et,0)),this.Wh=et,typeof nt=="number"?(a===Dr&&(nt=Math.max(nt,0)),this.Pg=nt):this.Pg=0),this.ae=null}gi.prototype.copy=function(){var a=new gi;return a.na=this.na,a.l=this.l&-2,a.Dc=this.Dc,a.Ec=this.Ec,a.Ne=this.Ne,a.Vh=this.Vh,a.Wh=this.Wh,a.Pg=this.Pg,a},ee=gi.prototype,ee.Xa=function(a){if(!(a instanceof gi)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case eo:case Gi:return Ge.B(this.endX,a.endX)&&Ge.B(this.endY,a.endY);case Mo:return Ge.B(this.endX,a.endX)&&Ge.B(this.endY,a.endY)&&Ge.B(this.point1X,a.point1X)&&Ge.B(this.point1Y,a.point1Y)&&Ge.B(this.point2X,a.point2X)&&Ge.B(this.point2Y,a.point2Y);case Qs:return Ge.B(this.endX,a.endX)&&Ge.B(this.endY,a.endY)&&Ge.B(this.point1X,a.point1X)&&Ge.B(this.point1Y,a.point1Y);case Dr:return Ge.B(this.startAngle,a.startAngle)&&Ge.B(this.sweepAngle,a.sweepAngle)&&Ge.B(this.centerX,a.centerX)&&Ge.B(this.centerY,a.centerY)&&Ge.B(this.radiusX,a.radiusX)&&Ge.B(this.radiusY,a.radiusY);case ua:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Ge.B(this.xAxisRotation,a.xAxisRotation)&&Ge.B(this.endX,a.endX)&&Ge.B(this.endY,a.endY)&&Ge.B(this.radiusX,a.radiusX)&&Ge.B(this.radiusY,a.radiusY);default:return!1}},ee.qb=function(a){a.classType===gi&&(this.type=a)},ee.toString=function(a){switch(a===void 0&&(a=-1),this.type){case eo:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Gi:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Mo:a=0>a?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.point2X.toFixed(a)+" "+this.point2Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Qs:a=0>a?"Q"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"Q"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Dr:a=0>a?"B"+this.startAngle.toString()+" "+this.sweepAngle.toString()+" "+this.centerX.toString()+" "+this.centerY.toString()+" "+this.radiusX.toString()+" "+this.radiusY.toString():"B"+this.startAngle.toFixed(a)+" "+this.sweepAngle.toFixed(a)+" "+this.centerX.toFixed(a)+" "+this.centerY.toFixed(a)+" "+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a);break;case ua:a=0>a?"A"+this.radiusX.toString()+" "+this.radiusY.toString()+" "+this.xAxisRotation.toString()+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toString()+" "+this.endY.toString():"A"+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a)+" "+this.xAxisRotation.toFixed(a)+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;default:a=this.type.toString()}return a+(this.isClosed?"z":"")},ee.freeze=function(){return this._isFrozen=!0,this},ee.ka=function(){return this._isFrozen=!1,this},ee.close=function(){return this.isClosed=!0,this};function Bs(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var x=a.radiusX,b=a.radiusY;if(b===void 0&&(b=x),x===0||b===0)return a.ae=[],a.ae;y=a.Ne;var tt=a.Vh,et=Ge.jx(0,0,x=Yt?nt=Math.PI:1<=Yt&&(nt=0),!gt&&0nt&&(nt+=2*Math.PI),gt=y>et?1:y/et,Yt=y>et?et/y:1,y=Ge.jx(0,0,y>et?y:et,Pt,Pt+nt,!0),et=Xn.alloc(),et.reset(),et.translate(x,b),et.rotate(a.Ne,0,0),et.scale(gt,Yt),pn.Ha(y,et),Xn.free(et),a.ae=y,a.ae}qe.Object.defineProperties(gi.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},isClosed:{get:function(){return(this.l&8)!==0},set:function(a){this.isClosed!==a&&(this.l=a?this.l|8:this.l&-9,this._isInvalidBounds=!0)}},type:{get:function(){return this.na},set:function(a){this._isFrozen&&Nn(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Nn(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&Nn(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Nn(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Nn(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&Nn(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&Nn(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Nn(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Nn(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&ti(a,">= zero",gi,"radiusX"),this._isFrozen&&Nn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&ti(a,">= zero",gi,"radiusY"),this._isFrozen&&Nn(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Nn(this,a),a%=360,0>a&&(a+=360),this.Dc=a,this._isInvalidBounds=!0}},sweepAngle:{get:function(){return this.Ec},set:function(a){this._isFrozen&&Nn(this,a),360a&&(a=-360),this.Ec=a,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&Nn(this,a),this.l=a?this.l|4:this.l&-5,this._isInvalidBounds=!0}},isLargeArc:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&Nn(this,a),this.l=a?this.l|16:this.l&-17,this._isInvalidBounds=!0}},xAxisRotation:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Nn(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),gi.prototype.equalsApprox=gi.prototype.Xa;var eo=new sn(gi,"Move",0),Gi=new sn(gi,"Line",1),Mo=new sn(gi,"Bezier",2),Qs=new sn(gi,"QuadraticBezier",3),Dr=new sn(gi,"Arc",4),ua=new sn(gi,"SvgArc",4);gi.className="PathSegment",gi.Move=eo,gi.Line=Gi,gi.Bezier=Mo,gi.QuadraticBezier=Qs,gi.Arc=Dr,gi.SvgArc=ua;function Uo(){this.H=null,this.xu=new Ee(0,0).freeze(),this.mt=new Ee(0,0).freeze(),this.Bp=this.Rq=0,this.Cp=1,this.xq="",this.Wr=this.Tp=!1,this.Rp=this.Ep=0,this.xg=this.nq=this.tq=!1,this.Zp=null,this.Rr=0,this.xd=this.Nr=null}Uo.prototype.copy=function(){var a=new Uo;return this.clone(a)},Uo.prototype.clone=function(a){return a.H=this.H,a.xu.assign(this.viewPoint),a.mt.assign(this.documentPoint),a.Rq=this.Rq,a.Bp=this.Bp,a.Cp=this.Cp,a.xq=this.xq,a.Tp=this.Tp,a.Wr=this.Wr,a.Ep=this.Ep,a.Rp=this.Rp,a.tq=this.tq,a.nq=this.nq,a.xg=this.xg,a.Zp=this.Zp,a.Rr=this.Rr,a.Nr=this.Nr,a.xd=this.xd,a},Uo.prototype.toString=function(){var a="^";return this.modifiers!==0&&(a+="M:"+this.modifiers),this.button!==0&&(a+="B:"+this.button),this.key!==""&&(a+="K:"+this.key),this.clickCount!==0&&(a+="C:"+this.clickCount),this.delta!==0&&(a+="D:"+this.delta),this.handled&&(a+="h"),this.bubbles&&(a+="b"),this.documentPoint!==null&&(a+="@"+this.documentPoint.toString()),a},Uo.prototype.So=function(a,y){var x=this.diagram;return x===null||vp(x,a,y),y},Uo.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(vp(x,a,y),y.assign(x.Ps(y))),y},qe.Object.defineProperties(Uo.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},viewPoint:{get:function(){return this.xu},set:function(a){this.xu.assign(a)}},documentPoint:{get:function(){return this.mt},set:function(a){this.mt.assign(a)}},modifiers:{get:function(){return this.Rq},set:function(a){this.Rq=a}},button:{get:function(){return this.Bp},set:function(a){if(this.Bp=a,this.event===null)switch(a){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2}}},buttons:{get:function(){return this.Cp},set:function(a){this.Cp=a}},key:{get:function(){return this.xq},set:function(a){this.xq=a}},down:{get:function(){return this.Tp},set:function(a){this.Tp=a}},up:{get:function(){return this.Wr},set:function(a){this.Wr=a}},clickCount:{get:function(){return this.Ep},set:function(a){this.Ep=a}},delta:{get:function(){return this.Rp},set:function(a){this.Rp=a}},isMultiTouch:{get:function(){return this.tq},set:function(a){this.tq=a}},handled:{get:function(){return this.nq},set:function(a){this.nq=a}},bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},event:{get:function(){return this.Zp},set:function(a){this.Zp=a}},isTouchEvent:{get:function(){var a=this.event;return a===null?!1:a.pointerType==="touch"||a.pointerType==="pen"}},timestamp:{get:function(){return this.Rr},set:function(a){this.Rr=a}},targetDiagram:{get:function(){return this.Nr},set:function(a){this.Nr=a}},targetObject:{get:function(){return this.xd},set:function(a){this.xd=a}},control:{get:function(){return(this.modifiers&1)!==0},set:function(a){this.modifiers=a?this.modifiers|1:this.modifiers&-2}},shift:{get:function(){return(this.modifiers&4)!==0},set:function(a){this.modifiers=a?this.modifiers|4:this.modifiers&-5}},alt:{get:function(){return(this.modifiers&2)!==0},set:function(a){this.modifiers=a?this.modifiers|2:this.modifiers&-3}},meta:{get:function(){return(this.modifiers&8)!==0},set:function(a){this.modifiers=a?this.modifiers|8:this.modifiers&-9}},left:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&1)!==0:this.button===0},set:function(a){this.buttons=a?this.buttons|1:this.buttons&-2}},right:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&2)!==0:this.button===2},set:function(a){this.buttons=a?this.buttons|2:this.buttons&-3}},middle:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&4)!==0:this.button===1},set:function(a){this.buttons=a?this.buttons|4:this.buttons&-5}}}),Uo.prototype.getMultiTouchDocumentPoint=Uo.prototype.Bz,Uo.prototype.getMultiTouchViewPoint=Uo.prototype.So,Uo.className="InputEvent";function Au(){this.H=null,this.xa="",this.ar=this.Lr=null}Au.prototype.copy=function(){var a=new Au;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},Au.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},qe.Object.defineProperties(Au.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},subject:{get:function(){return this.Lr},set:function(a){this.Lr=a}},parameter:{get:function(){return this.ar},set:function(a){this.ar=a}}}),Au.className="DiagramEvent";function nr(){this.Fm=tr,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}nr.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},nr.prototype.copy=function(){var a=new nr;a.Fm=this.Fm,a.Qq=this.Qq,a.rf=this.rf,a.cc=this.cc,a.H=this.H,a.Qn=this.Qn;var y=this.Sn;return a.Sn=on(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=on(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=on(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=on(y)&&typeof y.J=="function"?y.J():y,a},nr.prototype.qb=function(a){a.classType===nr&&(this.change=a)},nr.prototype.toString=function(){var a="";return a=this.change===Rs?a+"* ":this.change===tr?a+(this.model!==null?"!m":"!d"):a+((this.model!==null?"!m":"!d")+this.change),this.propertyName&&typeof this.propertyName=="string"&&(a+=" "+this.propertyName),this.modelChange&&this.modelChange!==this.propertyName&&(a+=" "+this.modelChange),a+=": ",this.change===Rs?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=ur(this.object)),this.oldValue!==null&&(a+=" old: "+ur(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+ur(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},nr.prototype.I=function(a){return a?this.oldValue:this.newValue},nr.prototype.Dz=function(a){return a?this.oldParam:this.newParam},nr.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},nr.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},nr.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},nr.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},qe.Object.defineProperties(nr.prototype,{model:{get:function(){return this.cc},set:function(a){this.cc=a}},diagram:{get:function(){return this.H},set:function(a){this.H=a}},change:{get:function(){return this.Fm},set:function(a){this.Fm=a}},modelChange:{get:function(){return this.Qq},set:function(a){this.Qq=a}},propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},isTransactionFinished:{get:function(){return this.Fm===Rs&&(this.rf==="CommittedTransaction"||this.rf==="FinishedUndo"||this.rf==="FinishedRedo")}},object:{get:function(){return this.Qn},set:function(a){this.Qn=a}},oldValue:{get:function(){return this.Sn},set:function(a){this.Sn=a}},oldParam:{get:function(){return this.Rn},set:function(a){this.Rn=a}},newValue:{get:function(){return this.Mn},set:function(a){this.Mn=a}},newParam:{get:function(){return this.Ln},set:function(a){this.Ln=a}}}),nr.prototype.redo=nr.prototype.redo,nr.prototype.canRedo=nr.prototype.canRedo,nr.prototype.undo=nr.prototype.undo,nr.prototype.canUndo=nr.prototype.canUndo,nr.prototype.getParam=nr.prototype.Dz,nr.prototype.getValue=nr.prototype.I,nr.prototype.clear=nr.prototype.clear;var Rs=new sn(nr,"Transaction",-1),tr=new sn(nr,"Property",0),Ar=new sn(nr,"Insert",1),Hr=new sn(nr,"Remove",2);nr.className="ChangedEvent",nr.Transaction=Rs,nr.Property=tr,nr.Insert=Ar,nr.Remove=Hr;function so(){this.o=new vn().freeze(),this.xa="",this.j=!1}so.prototype.toString=function(a){var y="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(a!==void 0&&0y&&a.cd(y,b),y++);for(;a.length>y;)a.pop();a.freeze()}},qe.Object.defineProperties(so.prototype,{changes:{get:function(){return this.o}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isComplete:{get:function(){return this.j},set:function(a){this.j=a}}}),so.prototype.optimize=so.prototype.ak,so.prototype.redo=so.prototype.redo,so.prototype.canRedo=so.prototype.canRedo,so.prototype.undo=so.prototype.undo,so.prototype.canUndo=so.prototype.canUndo,so.prototype.clear=so.prototype.clear,so.className="Transaction";function or(){this.Pt=new gn,this.Jd=!1,this.u=new vn().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new vn().freeze(),this.hl=new vn,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}or.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var x=this.nestedTransactionNames.count,b=0;ba.transactionLevel&&pr("Ending transaction without having started a transaction: "+x);var b=a.transactionLevel===1,tt=a.currentTransaction;b&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,tt));var et=0;if(0=b&&(et=y.M(0),et!==null&&et.clear(),y.mb(0),a.Ce--)),b===0||y.count!==0&&y.get(y.count-1)===tt||(y.add(tt),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,tt);else{a.Fe=!0;try{a.isEnabled&&tt!==null&&(tt.isComplete=!0,tt.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,tt),a.Fe=!1}tt!==null&&tt.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&tt!==null){for(a=et,x=tt.changes,tt=x.count-1;tt>=a;tt--)y=x.M(tt),y!==null&&y.undo(),x.ka(),x.mb(tt);x.freeze()}return!1}ee.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var a=this.history;a.ka();for(var y=a.count-1;y>this.historyIndex;y--){var x=a.M(y);x!==null&&x.clear(),a.mb(y),this.rq=!0}a.freeze()}},or.prototype.canUndo=function(){if(!this.isEnabled||0=this.transactionLevel&&!this.tt&&(a=a.diagram,a!==null&&a.pi===!1||pr("Change not within a transaction: "+x.toString()))}},or.prototype.skipsEvent=function(a){if(a===null||0>a.change.value)return!0;if(a=a.object,a===null)return!1;if(a.layer!==void 0){if(a=a.layer,a!==null&&a.isTemporary)return!0}else if(a.isTemporary)return!0;return!1},qe.Object.defineProperties(or.prototype,{models:{get:function(){return this.Pt.iterator}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},transactionToUndo:{get:function(){return 0<=this.historyIndex&&this.historyIndex<=this.history.count-1?this.history.M(this.historyIndex):null}},transactionToRedo:{get:function(){return this.historyIndextt||Math.abs(y.y-a.y)>b},qe.Object.defineProperties(fi.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof Ye&&(this.H=a)}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},isActive:{get:function(){return this.nb},set:function(a){this.nb=a}},transactionResult:{get:function(){return this.wm},set:function(a){this.wm=a}}}),fi.prototype.startTransaction=fi.prototype.Ea,fi.className="Tool";function $i(){fi.call(this),this.name="ToolManager",this.hb=new vn,this.ob=new vn,this.Hb=new vn,this.F=this.V=850,this.o=new xn(2,2).ja(),this.Ha=5e3,this.ia=oc,this.u=Gf,this.Mp=this.j=null,this.zj=-1}en($i,fi),$i.prototype.initializeStandardTools=function(){},$i.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof di&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},$i.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===iu&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===mh){y.bubbles=!0;return}if(this.gestureBehavior===iu)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,b=0;btt.right&&(x.x-=b.width+5/y.scale),x.xtt.bottom?x.y-(b.height+5/y.scale):x.y+20/y.scale,x.yx.pointsCount)){var b=a.diagram;if(!b.isReadOnly){var tt=a.Oe;if(tt!==null){var et=null,nt=null;x.fromNode===null&&(et=Fg(a,x.i(0),!1),et!==null&&(nt=et.part));var ht=null,gt=null;x.toNode===null&&(ht=Fg(a,x.i(x.pointsCount-1),!0),ht!==null&&(gt=ht.part)),tt.isValidLink(nt,et,gt,ht)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=nt,et!==null&&(x.fromPortId=et.portId),x.toNode=gt,ht!==null&&(x.toPortId=ht.portId),x.fromPort!==b.Mx&&b.R("LinkRelinked",x,b.Mx),x.toPort!==b.Nx&&b.R("LinkRelinked",x,b.Nx)):Wf(tt,nt,et,gt,ht):Wf(tt,null,null,null,null)}}}}sr.prototype.doDragOver=function(){};function Tu(a,y){var x=a.diagram;a.dragsLink&&Lu(a,!0),vh(a);var b=a.findDragOverObject(y),tt=x.lastInput;if(tt.targetObject=b,b!==null){tt.handled=!1;for(var et=b;et!==null;){var nt=et.mouseDrop;if(nt!==null&&(nt(tt,et),tt.handled))break;J0(a,tt,et),et=np(et)}}else et=x.mouseDrop,et!==null&&et(tt);if(a.isActive||yo!==null){for(tt=(a.copiedParts||a.draggedParts).iterator;tt.next();)et=tt.key,et instanceof wn&&et.linksConnected.each(function(ht){ht.suspendsRouting=!1});if(a.doDropOnto(y,b),a.isActive||yo!==null){for(a=$e.alloc(),y=x.selection.iterator;y.next();)b=y.value,b instanceof wn&&q0(x,b,a);$e.free(a)}}}function J0(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof Un||(x=a.mouseDrop,x!==null&&x(y))}function q0(a,y,x){var b=!1;if(x=y.getAvoidableRect(x),a.viewportBounds.Re(x)&&(b=!0),a=a.Nu(x,function(tt){return tt.part},function(tt){return tt instanceof cn},!0,function(tt){return tt instanceof cn},b),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}sr.prototype.doDropOnto=function(){},sr.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;this.simulatedMouseMove(y.event,y.documentPoint,y.targetDiagram)||this.currentPart===null||this.draggedParts===null||(this.mayCopy()?(ru(this,!1),rd(a,this.copiedParts),yl(this,this.copiedParts,!1),Lh(a,this.copiedParts)):this.mayMove()?(za(this),yl(this,this.draggedParts,!0)):this.mayDragOut()?(ru(this,!1),yl(this,this.copiedParts,!1)):za(this),Hf(this,a.lastInput.documentPoint))}},sr.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;if(!this.simulatedMouseUp(y.event,y.documentPoint,y.targetDiagram)){y=!1;var x=this.mayCopy();if(x&&this.copiedParts!==null?(za(this),ru(this,!0),rd(a,this.copiedParts),yl(this,this.copiedParts,!1),Lh(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(tt){tt.isSelected=!0}))):(y=!0,za(this),this.mayMove()&&(yl(this,this.draggedParts,!0),Hf(this,a.lastInput.documentPoint))),this.Ym=!0,Tu(this,a.lastInput.documentPoint),this.isActive){var b=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&$0(this),a.Ya(),Lh(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",b)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},sr.prototype.simulatedMouseMove=function(a,y,x){if(yo===null)return!1;var b=yo.diagram;x instanceof Ye||(x=null);var tt=_u;return x!==tt&&(tt!==null&&tt!==b&&(tt.ug(),yo.isDragOutStarted=!1,tt=tt.toolManager.findTool("Dragging"),tt!==null&&tt.doSimulatedDragLeave()),_u=x,x!==null&&x!==b&&(tp(),tt=x.toolManager.findTool("Dragging"),tt!==null&&(Nl.contains(tt)||Nl.add(tt),tt.doSimulatedDragEnter())),this.doUpdateCursor(null)),x===null||x===b||!x.allowDrop||x.isReadOnly||!x.allowInsert?!1:(b=x.toolManager.findTool("Dragging"),b!==null&&(a!==null&&(a.targetTouches!==void 0&&(0nt&&(nt=bt),Pt>ht&&(ht=Pt))}}for(b===1/0?et.h(0,0,0,0):et.h(b,tt,nt-b,ht-tt),b=et.x+et.width/2,tt=et.y+et.height/2,$e.free(et),et=a.Fr,nt=new Rn,ht=Ee.alloc(),gt=y.iterator;gt.next();)bt=gt.value,bt instanceof cn&&bt.canCopy()&&(Pt=x.I(bt),Pt!==null&&(Pt.points=bt.points,Qu(Pt,et.x-b,et.y-tt),Pt.suspendsRouting=!0,nt.add(Pt,a.Pd())));for(y=y.iterator;y.next();)bt=y.value,bt.Zc()&&bt.canCopy()&&(gt=x.I(bt),gt!==null&&(bt=bt.location,ht.h(et.x-(b-bt.x),et.y-(tt-bt.y)),gt.location=ht,gt.Va(),nt.add(gt,a.Pd(ht))));Ee.free(ht),a.copiedParts=nt,Uf(a,nt.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Qu(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}sr.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},sr.prototype.computeMove=function(a,y,x,b){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,b):new Ee},qe.Object.defineProperties(sr.prototype,{isCopyEnabled:{get:function(){return this.ob},set:function(a){this.ob=a}},copiesEffectiveCollection:{get:function(){return this.u},set:function(a){this.u=a}},dragOptions:{get:function(){return this.ia},set:function(a){this.ia=a}},isGridSnapEnabled:{get:function(){return this.dragOptions.isGridSnapEnabled},set:function(a){this.dragOptions.isGridSnapEnabled=a}},isComplexRoutingRealtime:{get:function(){return this.hb},set:function(a){this.hb=a}},isGridSnapRealtime:{get:function(){return this.dragOptions.isGridSnapRealtime},set:function(a){this.dragOptions.isGridSnapRealtime=a}},gridSnapCellSize:{get:function(){return this.dragOptions.gridSnapCellSize},set:function(a){this.dragOptions.gridSnapCellSize.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSize=a)}},gridSnapCellSpot:{get:function(){return this.dragOptions.gridSnapCellSpot},set:function(a){this.dragOptions.gridSnapCellSpot.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSpot=a)}},gridSnapOrigin:{get:function(){return this.dragOptions.gridSnapOrigin},set:function(a){this.dragOptions.gridSnapOrigin.D(a)||(a=a.J(),this.dragOptions.gridSnapOrigin=a)}},dragsLink:{get:function(){return this.dragOptions.dragsLink},set:function(a){this.dragOptions.dragsLink=a}},dragsTree:{get:function(){return this.dragOptions.dragsTree},set:function(a){this.dragOptions.dragsTree=a}},copyCursor:{get:function(){return this.F},set:function(a){this.F=a}},moveCursor:{get:function(){return this.Oc},set:function(a){this.Oc=a}},nodropCursor:{get:function(){return this.Pc},set:function(a){this.Pc=a}},currentPart:{get:function(){return this.V},set:function(a){this.V=a}},copiedParts:{get:function(){return this.o},set:function(a){this.o=a}},draggedParts:{get:function(){return this.Ha},set:function(a){this.Ha=a}},draggingParts:{get:function(){return this.copiedParts!==null?this.copiedParts.Lf():this.draggedParts!==null?this.draggedParts.Lf():this.te}},draggedLink:{get:function(){return this.diagram.draggedLink},set:function(a){this.diagram.draggedLink=a}},isDragOutStarted:{get:function(){return this.Hb},set:function(a){this.Hb=a}},startPoint:{get:function(){return this.Fr},set:function(a){this.Fr.D(a)||this.Fr.assign(a)}},delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}}}),sr.prototype.getDraggingSource=sr.prototype.Az;var yo=null,_u=null;sr.className="DraggingTool",Nl=new vn,br("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),$i.prototype.doCancel=function(){yo!==null&&yo.doCancel(),fi.prototype.doCancel.call(this)};function Sr(){fi.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new cn,y=new Wn;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Wn,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new wn,y=new Wn,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=zi,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new wn,y=new Wn,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=zi,a.add(y),a.selectable=!1,a.layerName="Tool",this.Di=a,this.o=y,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new Rn,this.Of=this.gj=this.Pf=null}en(Sr,fi),Sr.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},Sr.prototype.copyPortProperties=function(a,y,x,b,tt){if(a!==null&&y!==null&&x!==null&&b!==null){var et=y.Df(),nt=xn.alloc();nt.width=y.naturalBounds.width*et,nt.height=y.naturalBounds.height*et,b.desiredSize=nt,xn.free(nt),tt?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=wi,et=Ee.alloc(),x.location=y.ga(wi,et),Ee.free(et),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,b,tt)}},Sr.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=zi,y.fromSpot=$r,y.toSpot=$r),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},Sr.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},Sr.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof wn){var y=this.targetPort.part;this.isForwards?this.copyPortProperties(y,this.targetPort,this.temporaryToNode,this.temporaryToPort,!0):this.copyPortProperties(y,this.targetPort,this.temporaryFromNode,this.temporaryFromPort,!1)}else this.isForwards?this.setNoTargetPortProperties(this.temporaryToNode,this.temporaryToPort,!0):this.setNoTargetPortProperties(this.temporaryFromNode,this.temporaryFromPort,!1);(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},Sr.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof wn))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof wn)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(b===!1)break;a=a.panel}return null},Sr.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,b=this.portGravity;0>=b&&(b=.1);var tt=this,et=y.og(x,b,function(Nt){return tt.findValidLinkablePort(Nt,a)},null,!0);for(b=1/0,y=null,et=et.iterator;et.next();){var nt=et.value,ht=nt.part;if(ht instanceof wn){var gt=nt.ga(wi,Ee.alloc()),bt=x.x-gt.x,Pt=x.y-gt.y;Ee.free(gt),gt=bt*bt+Pt*Pt,gtx){if(this.originalLink!==null&&a===this.originalFromNode&&y===this.originalFromPort)return!0;if(y=y.portId,y===null&&(y=""),a.Mo(y).count>=x)return!1}return!0},Sr.prototype.isValidTo=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.toLinkable!==!0))return!1;var x=y.toMaxLinks;if(1/0>x){if(this.originalLink!==null&&a===this.originalToNode&&y===this.originalToPort)return!0;if(y=y.portId,y===null&&(y=""),a.Sd(y).count>=x)return!1}return!0},Sr.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},Sr.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof wn))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof wn))return!1;for(y=y.portId,y===null&&(y=""),y=b.Sd(y);y.next();)if(b=y.value,b.fromNode===x&&b.fromPortId===a)return!0;return!1},Sr.prototype.isValidLink=function(a,y,x,b){if(!this.isValidFrom(a,y)||!this.isValidTo(x,b)||!(y===null||b===null||(y.fromLinkableSelfNode&&b.toLinkableSelfNode||!this.isInSameNode(y,b))&&(y.fromLinkableDuplicates&&b.toLinkableDuplicates||!this.isLinked(y,b)))||this.originalLink!==null&&(a!==null&&this.isLabelDependentOnLink(a,this.originalLink)||x!==null&&this.isLabelDependentOnLink(x,this.originalLink))||a!==null&&x!==null&&(a.data===null&&x.data!==null||a.data!==null&&x.data===null)||!this.isValidCycle(a,x,this.originalLink))return!1;if(a!==null){var tt=a.linkValidation;if(tt!==null&&!tt(a,y,x,b,this.originalLink))return!1}return x!==null&&(tt=x.linkValidation,tt!==null&&!tt(a,y,x,b,this.originalLink))?!1:(tt=this.linkValidation,tt!==null?tt(a,y,x,b,this.originalLink):!0)},Sr.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var x=a.labeledLink;if(x===null)return!1;if(x===y)return!0;var b=new gn;return b.add(a),Ho(this,x,y,b)};function Ho(a,y,x,b){if(y===x)return!0;var tt=y.fromNode;return tt!==null&&tt.isLinkLabel&&(b.add(tt),Ho(a,tt.labeledLink,x,b))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(b.add(y),Ho(a,y.labeledLink,x,b))))}Sr.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var b=this.diagram.validCycle;if(b!==uf){if(b===jp){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=y.linksConnected;b.next();){var tt=b.value;if(tt!==x&&tt.isTreeLink&&tt.toNode===y)return!1}return!ts(this,a,y,x,!0)}if(b===Np){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=a.linksConnected;b.next();)if(tt=b.value,tt!==x&&tt.isTreeLink&&tt.fromNode===a)return!1;return!ts(this,a,y,x,!0)}if(b===Tp)return a===y?a=!0:(b=new gn,b.add(y),a=es(this,b,a,y,x)),!a;if(b===_p)return!ts(this,a,y,x,!1);if(b===Op)return a===y?a=!0:(b=new gn,b.add(y),a=sc(this,b,a,y,x)),!a}return!0};function ts(a,y,x,b,tt){if(y===x)return!0;if(y===null||x===null)return!1;for(var et=y.linksConnected;et.next();){var nt=et.value;if(nt!==b&&(!tt||nt.isTreeLink)&&nt.toNode===y&&(nt=nt.fromNode,nt!==y&&ts(a,nt,x,b,tt)))return!0}return!1}function es(a,y,x,b,tt){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var et=x.linksConnected;et.next();){var nt=et.value;if(nt!==tt&&nt.toNode===x&&(nt=nt.fromNode,nt!==x&&es(a,y,nt,b,tt)))return!0}return!1}function sc(a,y,x,b,tt){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var et=x.linksConnected;et.next();){var nt=et.value;if(nt!==tt){var ht=nt.fromNode;if(nt=nt.toNode,ht=ht===x?nt:ht,ht!==x&&sc(a,y,ht,b,tt))return!0}}return!1}qe.Object.defineProperties(Sr.prototype,{portGravity:{get:function(){return this.te},set:function(a){0<=a&&(this.te=a)}},isUnconnectedLinkValid:{get:function(){return this.Ha},set:function(a){this.Ha=a}},linkingCursor:{get:function(){return this.u},set:function(a){this.u=a}},temporaryLink:{get:function(){return this.Ci},set:function(a){this.Ci=a}},temporaryFromNode:{get:function(){return this.Bi},set:function(a){(this.Bi=a)&&(this.j=a.port)}},temporaryFromPort:{get:function(){return this.j},set:function(a){if(this.j!==null){var y=this.j.panel;if(y!==null){var x=y.O.indexOf(this.j);y.mb(x),y.Gb(x,a)}}this.j=a}},temporaryToNode:{get:function(){return this.Di},set:function(a){(this.Di=a)&&(this.o=a.port)}},temporaryToPort:{get:function(){return this.o},set:function(a){if(this.o!==null){var y=this.o.panel;if(y!==null){var x=y.O.indexOf(this.o);y.mb(x),y.Gb(x,a)}}this.o=a}},originalLink:{get:function(){return this.Hb},set:function(a){this.Hb=a}},originalFromNode:{get:function(){return this.hb},set:function(a){this.hb=a}},originalFromPort:{get:function(){return this.ob},set:function(a){this.ob=a}},originalToNode:{get:function(){return this.Oc},set:function(a){this.Oc=a}},originalToPort:{get:function(){return this.Pc},set:function(a){this.Pc=a}},isForwards:{get:function(){return this.ia},set:function(a){this.ia=a}},validPortsCache:{get:function(){return this.hy}},targetPort:{get:function(){return this.Pf},set:function(a){this.Pf=a}},linkValidation:{get:function(){return this.gj},set:function(a){this.gj=a}},portTargeted:{get:function(){return this.Of},set:function(a){this.Of=a}}}),Sr.className="LinkingBaseTool";function ns(){Sr.call(this),this.name="Linking",this.V={},this.F=null,this.K=yh,this.Xd=null}en(ns,Sr),ns.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return a.isReadOnly||a.isModelReadOnly||!a.allowLink||!a.model.xs()||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize()?!1:this.findLinkablePort()!==null},ns.prototype.findLinkablePort=function(){var a=this.diagram,y=this.startObject;if(y===null&&(y=a.ic(a.firstInput.documentPoint,null,null)),y===null||(a=y.part,!(a instanceof wn)))return null;var x=this.direction;if(x===yh||x===Rg){var b=this.findValidLinkablePort(y,!1);if(b!==null||this.startObject===a&&(b=a.port,this.findValidLinkablePort(b,!1)))return this.isForwards=!0,b}return(x===yh||x===zg)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},ns.prototype.doActivate=function(){var a=this.diagram,y=this.findLinkablePort();y===null?this.stopTool():(this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.isForwards?(this.temporaryToNode!==null&&(this.temporaryToNode.location=a.lastInput.documentPoint),this.originalFromPort=y,y=this.originalFromPort.part,y instanceof wn&&(this.originalFromNode=y),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(this.temporaryFromNode!==null&&(this.temporaryFromNode.location=a.lastInput.documentPoint),this.originalToPort=y,y=this.originalToPort.part,y instanceof wn&&(this.originalToNode=y),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),a.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),a.add(this.temporaryToNode),this.temporaryToNode&&this.temporaryToNode.Va(),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0)},ns.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},ns.prototype.doStop=function(){Sr.prototype.doStop.call(this),this.startObject=null},ns.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,b=null,tt=null,et=null;try{var nt=this.targetPort=this.findTargetPort(this.isForwards);if(nt!==null){var ht=nt.part;ht instanceof wn&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),b=ht,tt=nt):(y=ht,x=nt,this.originalToNode!==null&&(b=this.originalToNode,tt=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(b=this.originalToNode,tt=this.originalToPort);y!==null||b!==null?(et=this.insertLink(y,x,b,tt),et!==null?(nt===null&&(this.isForwards?et.defaultToPoint=a.lastInput.documentPoint:et.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),et.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",et)):this.doNoLink(y,x,b,tt)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),et&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},ns.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof cn)return a.isTreeLink;var y=this.diagram;return y===null?!0:(a=y.partManager.getLinkCategoryForData(a),y=y.partManager.findLinkTemplateForCategory(a),y!==null?y.isTreeLink:!0)},ns.prototype.insertLink=function(a,y,x,b){return this.diagram.partManager.insertLink(a,y,x,b)},ns.prototype.doNoLink=function(){},qe.Object.defineProperties(ns.prototype,{archetypeLinkData:{get:function(){return this.V},set:function(a){this.V=a}},archetypeLabelNodeData:{get:function(){return this.F},set:function(a){this.F=a}},direction:{get:function(){return this.K},set:function(a){this.K=a}},startObject:{get:function(){return this.Xd},set:function(a){this.Xd=a}}});var yh=new sn(ns,"Either",0),Rg=new sn(ns,"ForwardsOnly",0),zg=new sn(ns,"BackwardsOnly",0);ns.className="LinkingTool",ns.Either=yh,ns.ForwardsOnly=Rg,ns.BackwardsOnly=zg;function Js(){Sr.call(this),this.name="Relinking";var a=new Wn;a.figure="Diamond",a.desiredSize=Qr,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Wn,a.figure="Diamond",a.desiredSize=Qr,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new $e}en(Js,Sr),Js.prototype.updateAdornments=function(a){if(a!==null&&a instanceof cn){var y="RelinkFrom",x=null;if(a.isSelected&&!this.diagram.isReadOnly){var b=a.selectionObject;b!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&b.actualBounds.w()&&b.Ed()&&(x=a.Pj(y),x===null&&(x=this.makeAdornment(b,!1),a.bh(y,x)))}x===null&&a.Jf(y),y="RelinkTo",x=null,a.isSelected&&!this.diagram.isReadOnly&&(b=a.selectionObject,b!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&b.actualBounds.w()&&b.Ed()&&(x=a.Pj(y),x===null?(x=this.makeAdornment(b,!0),a.bh(y,x)):x.v())),x===null&&a.Jf(y)}},Js.prototype.makeAdornment=function(a,y){var x=new di;return x.type=un.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},Js.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowRelink||!a.model.xs()||!a.lastInput.left)return!1;var y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom");return y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo")),y!==null},Js.prototype.doActivate=function(){var a=this.diagram;if(this.originalLink===null){var y=this.handle;if(y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom"),y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo"))),y===null)return;var x=y.part;if(!(x instanceof di&&x.adornedPart instanceof cn))return;this.handle=y,this.isForwards=x===null||x.category==="RelinkTo",this.originalLink=x.adornedPart}this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.originalFromPort=this.originalLink.fromPort,this.originalFromNode=this.originalLink.fromNode,this.originalToPort=this.originalLink.toPort,this.originalToNode=this.originalLink.toNode,this.Ew.set(this.originalLink.actualBounds),this.originalLink!==null&&0y.firstPickIndex+1&&x=x.x)y=0>=x.y?y+225:1<=x.y?y+135:y+180;else if(1<=x.x)0>=x.y?y+=315:1<=x.y&&(y+=45);else if(0>=x.y)y+=270;else if(1<=x.y)y+=90;else break t;0>y?y+=360:360<=y&&(y-=360),a.cursor=22.5>y?"e-resize":67.5>y?"se-resize":112.5>y?"s-resize":157.5>y?"sw-resize":202.5>y?"w-resize":247.5>y?"nw-resize":292.5>y?"n-resize":337.5>y?"ne-resize":"e-resize"}else if(a instanceof un)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},No.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowResize&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},No.prototype.doActivate=function(){var a=this.diagram;this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null&&(this.adornedObject=this.handle.part.adornedObject,this.adornedObject!==null&&(a.isMouseCaptured=!0,a.animationManager.Cc(),this.Ea(this.name),this.Xq.set(this.adornedObject.ga(this.handle.alignment.gv())),this.Tn.set(this.adornedObject.part.location),this.Dw.set(this.adornedObject.desiredSize),this.pt=this.computeCellSize(),this.rt=this.computeMinSize(),this.qt=this.computeMaxSize(),this.isActive=!0))},No.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},No.prototype.stopTransaction=function(){var a=this.diagram,y=fi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},No.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},No.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,tt=this.adornedObject.qs(a.lastInput.documentPoint,Ee.alloc()),et=this.computeReshape();y=this.computeResize(tt,this.handle.alignment,y,x,b,et),this.resize(y),a.bd(),Ee.free(tt)}},No.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,tt=this.adornedObject.qs(a.lastInput.documentPoint,Ee.alloc()),et=this.computeReshape();y=this.computeResize(tt,this.handle.alignment,y,x,b,et),this.resize(y),Ee.free(tt),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},No.prototype.resize=function(a){var y=this.diagram,x=this.adornedObject;if(x!==null){if(x.desiredSize=a.size,a=x.part,a.Va(),x=x.ga(this.handle.alignment.gv()),a instanceof Un){var b=new vn;if(b.add(a),!this.dragsMembers&&a.placeholder===null){var tt=new mt;tt.dragsMembers=!1}y.moveParts(b,this.oppositePoint.copy().re(x),!0,tt)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},No.prototype.computeResize=function(a,y,x,b,tt,et){y.Mc()&&(y=wi);var nt=this.adornedObject.naturalBounds,ht=nt.x,gt=nt.y,bt=nt.x+nt.width,Pt=nt.y+nt.height,Nt=1;if(!et){Nt=nt.width;var zt=nt.height;0>=Nt&&(Nt=1),0>=zt&&(zt=1),Nt=zt/Nt}return zt=Ee.alloc(),Ge.No(a.x,a.y,ht,gt,tt.width,tt.height,zt),a=nt.copy(),0>=y.x?0>=y.y?(a.x=Math.max(zt.x,bt-b.width),a.x=Math.min(a.x,bt-x.width),a.width=Math.max(bt-a.x,x.width),a.y=Math.max(zt.y,Pt-b.height),a.y=Math.min(a.y,Pt-x.height),a.height=Math.max(Pt-a.y,x.height),et||(1<=a.height/a.width?(a.height=Math.max(Math.min(Nt*a.width,b.height),x.height),a.width=a.height/Nt):(a.width=Math.max(Math.min(a.height/Nt,b.width),x.width),a.height=Nt*a.width),a.x=bt-a.width,a.y=Pt-a.height)):1<=y.y?(a.x=Math.max(zt.x,bt-b.width),a.x=Math.min(a.x,bt-x.width),a.width=Math.max(bt-a.x,x.width),a.height=Math.max(Math.min(zt.y-gt,b.height),x.height),et||(1<=a.height/a.width?(a.height=Math.max(Math.min(Nt*a.width,b.height),x.height),a.width=a.height/Nt):(a.width=Math.max(Math.min(a.height/Nt,b.width),x.width),a.height=Nt*a.width),a.x=bt-a.width)):(a.x=Math.max(zt.x,bt-b.width),a.x=Math.min(a.x,bt-x.width),a.width=bt-a.x,et||(a.height=Math.max(Math.min(Nt*a.width,b.height),x.height),a.width=a.height/Nt,a.y=gt+.5*(Pt-gt-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(zt.x-ht,b.width),x.width),a.y=Math.max(zt.y,Pt-b.height),a.y=Math.min(a.y,Pt-x.height),a.height=Math.max(Pt-a.y,x.height),et||(1<=a.height/a.width?(a.height=Math.max(Math.min(Nt*a.width,b.height),x.height),a.width=a.height/Nt):(a.width=Math.max(Math.min(a.height/Nt,b.width),x.width),a.height=Nt*a.width),a.y=Pt-a.height)):1<=y.y?(a.width=Math.max(Math.min(zt.x-ht,b.width),x.width),a.height=Math.max(Math.min(zt.y-gt,b.height),x.height),et||(1<=a.height/a.width?(a.height=Math.max(Math.min(Nt*a.width,b.height),x.height),a.width=a.height/Nt):(a.width=Math.max(Math.min(a.height/Nt,b.width),x.width),a.height=Nt*a.width))):(a.width=Math.max(Math.min(zt.x-ht,b.width),x.width),et||(a.height=Math.max(Math.min(Nt*a.width,b.height),x.height),a.width=a.height/Nt,a.y=gt+.5*(Pt-gt-a.height))):0>=y.y?(a.y=Math.max(zt.y,Pt-b.height),a.y=Math.min(a.y,Pt-x.height),a.height=Pt-a.y,et||(a.width=Math.max(Math.min(a.height/Nt,b.width),x.width),a.height=Nt*a.width,a.x=ht+.5*(bt-ht-a.width))):1<=y.y&&(a.height=Math.max(Math.min(zt.y-gt,b.height),x.height),et||(a.width=Math.max(Math.min(a.height/Nt,b.width),x.width),a.height=Nt*a.width,a.x=ht+.5*(bt-ht-a.width))),Ee.free(zt),a},No.prototype.computeReshape=function(){var a=an;return this.adornedObject instanceof Wn&&(a=Ev(this.adornedObject)),!(a===kn||this.diagram.lastInput.shift)},No.prototype.computeMinSize=function(){var a=this.adornedObject.minSize.copy(),y=this.minSize;return!isNaN(y.width)&&y.width>a.width&&(a.width=y.width),!isNaN(y.height)&&y.height>a.height&&(a.height=y.height),a},No.prototype.computeMaxSize=function(){var a=this.adornedObject.maxSize.copy(),y=this.maxSize;return!isNaN(y.width)&&y.widthx?x+=360:360<=x&&(x-=360),x=Math.round(45*Math.round(x/45));var b=this.handleDistance;return x===0?y.x=a.naturalBounds.width+b:x===45?(y.x=a.naturalBounds.width+b,y.y=a.naturalBounds.height+b):x===90?y.y=a.naturalBounds.height+b:x===135?(y.x=-b,y.y=a.naturalBounds.height+b):x===180?y.x=-b:x===225?(y.x=-b,y.y=-b):x===270?y.y=-b:x===315&&(y.x=a.naturalBounds.width+b,y.y=-b),a.ga(y)},is.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Ee(NaN,NaN),this.isActive=a.isMouseCaptured=!1},is.prototype.stopTransaction=function(){var a=this.diagram,y=fi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},is.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},is.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},is.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){a.delaysLayout=!1;var y=this.computeRotate(a.lastInput.documentPoint);this.rotate(y),a.Ya(),this.transactionResult=this.name,a.R("PartRotated",this.adornedObject,this.originalAngle)}this.stopTool()},is.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var x=y.locationObject,b=y.rotateObject;(x===b||x.rg(b))&&(x=this.Tn.copy(),y.location=x.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},is.prototype.computeRotate=function(a){a=this.rotationPoint.ab(a)-this.handleAngle;var y=this.adornedObject.panel;y!==null&&(a-=y.li()),360<=a?a-=360:0>a&&(a+=360),y=Math.min(Math.abs(this.snapAngleMultiple),180);var x=Math.min(Math.abs(this.snapAngleEpsilon),y/2);return!this.diagram.lastInput.shift&&0y-x&&(a=(Math.floor(a/y)+1)*y)),360<=a?a-=360:0>a&&(a+=360),a},qe.Object.defineProperties(is.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof di))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof di)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},snapAngleMultiple:{get:function(){return this.ia},set:function(a){this.ia=a}},snapAngleEpsilon:{get:function(){return this.V},set:function(a){this.V=a}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(a){this.kr=a.copy()}},handleAngle:{get:function(){return this.u},set:function(a){this.u=a}},handleDistance:{get:function(){return this.F},set:function(a){this.F=a}}}),is.className="RotatingTool",br("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function Sh(){fi.call(this),this.name="ClickSelecting"}en(Sh,fi),Sh.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Sh.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Sh.className="ClickSelectingTool";function Ma(){fi.call(this),this.name="Action",this.pk=null}en(Ma,fi),Ma.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,x=a.ic(y.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b});return x!==null&&x.isActionable?(this.pk=x,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},Ma.prototype.doMouseDown=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionDown!==null&&y.actionDown(a,y))}else this.canStart()&&this.doActivate()},Ma.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionMove!==null&&y.actionMove(a,y))}},Ma.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;if(y===null)return;a.targetObject=y,y.actionUp!==null&&y.actionUp(a,y),this.standardMouseClick(function(x){for(;x.panel!==null&&(!x.isActionable||x!==y);)x=x.panel;return x},function(x){return x===y})}this.stopTool()},Ma.prototype.doCancel=function(){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionCancel!==null&&y.actionCancel(a,y),this.stopTool())},Ma.prototype.doStop=function(){this.pk=null},Ma.className="ActionTool";function Du(){fi.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Ee(0,0)}en(Du,fi),Du.prototype.canStart=function(){if(!this.isEnabled||this.archetypeNodeData===null)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.lastInput.left||this.isBeyondDragSize())return!1;if(this.isDoubleClick){if(a.lastInput.clickCount===1&&(this.mw=a.lastInput.viewPoint.copy()),a.lastInput.clickCount!==2||this.isBeyondDragSize(this.mw))return!1}else if(a.lastInput.clickCount!==1)return!1;return!(a.currentTool!==this&&a.Ol(a.lastInput.documentPoint,!0)!==null)},Du.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},Du.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var b=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof _n)x.Zc()&&(Oa(x),b=x.copy(),b!==null&&y.add(b));else if(x!==null){var tt=y.model.copyNodeData(x);on(tt)&&(y.model.xf(tt),b=y.Lc(tt))}if(b!==null){var et=Ee.allocAt(a.x,a.y);this.isGridSnapEnabled&&id(this.diagram,b,a,et),b.location=et,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),Ee.free(et)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},qe.Object.defineProperties(Du.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){this.Ri=a}},isDoubleClick:{get:function(){return this.o},set:function(a){this.o=a}},isGridSnapEnabled:{get:function(){return this.j},set:function(a){this.j=a}}}),Du.className="ClickCreatingTool";function ha(){fi.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new _n;a.layerName="Tool",a.selectable=!1;var y=new Wn;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}en(ha,fi),ha.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(!a.allowSelect)return!1;var y=a.lastInput;return!(!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.timestamp-a.firstInput.timestamptt.right&&(x.x-=b.width+5/y.scale),x.xtt.bottom&&(x.y-=b.height+5/y.scale),x.ya.lastInput.clickCount)):!1},Ui.prototype.doStart=function(){Fu=this,this.textBlock!==null&&this.doActivate()},Ui.prototype.doActivate=function(){if(!this.isActive){var a=this.diagram;if(a!==null){var y=this.textBlock;if(y===null&&(y=a.ic(a.lastInput.documentPoint)),y!==null&&y instanceof Ni&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=Zc;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var b=new $e(this.textBlock.ga(vo),this.textBlock.ga(qo));a.tv(b),x.show(y,a,this),this.currentTextEditor=x}}}},Ui.prototype.doCancel=function(){this.stopTool()},Ui.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Ui.prototype.doMouseDown=function(){this.isActive&&this.acceptText(wl)},Ui.prototype.acceptText=function(a){switch(a){case wl:this.qa===hc?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===Zc||this.qa===Jc||this.qa===Qc)&&(this.qa=op,rp(this));break;case Yf:case Xc:case Kf:(Xc!==a||this.textBlock.isMultiline!==!0)&&(this.qa===Zc||this.qa===Jc||this.qa===Qc)&&(this.qa=op,rp(this))}};function rp(a){var y=a.textBlock,x=a.diagram,b=a.currentTextEditor;if(y!==null&&b!==null){var tt=y.text,et="";b.valueFunction!==null&&(et=b.valueFunction()),a.isValidText(y,tt,et)?(a.Ea(a.name),a.qa=hc,a.transactionResult=a.name,y.text=et,a.doSuccess(tt,et),x!==null&&x.R("TextEdited",y,tt),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=Jc,a.doError(tt,et))}}Ui.prototype.doError=function(a,y){var x=this.textBlock;x.errorFunction!==null&&x.errorFunction(this,a,y),(a=this.currentTextEditor)&&a.show(x,this.diagram,this)},Ui.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},Ui.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=uc,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},Ui.prototype.doStop=function(){Fu=null},Ui.prototype.isValidText=function(a,y,x){var b=this.textValidation;return b!==null&&!b(a,y,x)?!1:(b=a.textValidation,!!(b===null||b(a,y,x)))},Ui.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},qe.Object.defineProperties(Ui.prototype,{textBlock:{get:function(){return this.ia},set:function(a){this.ia=a}},currentTextEditor:{get:function(){return this.o},set:function(a){this.o=a}},defaultTextEditor:{get:function(){return this.j},set:function(a){this.j=a}},starting:{get:function(){return this.V},set:function(a){this.V=a}},textValidation:{get:function(){return this.vj},set:function(a){this.vj=a}},minimumEditorScale:{get:function(){return this.u},set:function(a){this.u=a}},selectsTextOnActivate:{get:function(){return this.F},set:function(a){this.F=a}},state:{get:function(){return this.qa},set:function(a){this.qa!==a&&(this.qa=a)}}}),Ui.prototype.measureTemporaryTextBlock=Ui.prototype.Lx;var Yf=new sn(Ui,"LostFocus",0),wl=new sn(Ui,"MouseDown",1),Kf=new sn(Ui,"Tab",2),Xc=new sn(Ui,"Enter",3),tv=new sn(Ui,"SingleClick",0),lc=new sn(Ui,"SingleClickSelected",1),Xf=new sn(Ui,"DoubleClick",2),uc=new sn(Ui,"StateNone",0),Zc=new sn(Ui,"StateActive",1),Qc=new sn(Ui,"StateEditing",2),op=new sn(Ui,"StateValidating",3),Jc=new sn(Ui,"StateInvalid",4),hc=new sn(Ui,"StateValidated",5),Fu=null;Ui.className="TextEditingTool",Ui.LostFocus=Yf,Ui.MouseDown=wl,Ui.Tab=Kf,Ui.Enter=Xc,Ui.SingleClick=tv,Ui.SingleClickSelected=lc,Ui.DoubleClick=Xf,Ui.StateNone=uc,Ui.StateActive=Zc,Ui.StateEditing=Qc,Ui.StateValidating=op,Ui.StateInvalid=Jc,Ui.StateValidated=hc,br("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function zs(a){$c||(sp(),$c=!0),this.H=Il,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=au,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new gn,this.ce=new Lo,this.ce.Yd=this,this.Ei=new gn,this.pu=new gn,this.Sr=new gn,this.pr=new gn,a&&Object.assign(this,a)}zs.prototype.Xe=function(a){this.H=a},zs.prototype.canStart=function(){return!0};function Dl(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),To(a.H),a.zb=!0)}function Zf(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,b=a.Zd.contains("Model");b&&(a.Ok=!0,a.Pk===au?(y.isViewportUnconstrained=!0,y.vc.clear(),y.add(x,"position",x.position.copy().offset(0,-200),x.position),y.add(x,"opacity",0,1)):a.Pk===ap&&y.vc.clear(),a.Qw=!!(a.Pk===tf&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),b&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),ef(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,b=y.vc.get(x),x.autoScale!==Wo&&b!==null&&(delete b.start.scale,delete b.end.scale),bn.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&ys(x),fp(x),a.zb=!1,y.start(),y.bc&&(Bu(a),x.Ya(),lp(y,0),fa(x,!0),xh(a),x.R("AnimationStarting",a)))}))}}function su(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function Qf(a,y,x,b){a.isTicking||su(a)||y instanceof cn&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,b,!1)}ee=zs.prototype,ee.fv=function(a){return this.ce.fv(a)},ee.Xu=function(a){return this.ce.Xu(a)};function Jf(a,y){function x(){if(0et?et+=360:gt+=360),et=tt(x,et,gt-et,b)%360,nt=tt(x,nt,bt-nt,b),ht=tt(x,ht,Pt-ht,b),x=tt(x,a,y-a,b),"hsla("+et+", "+nt+"%, "+ht+"%, "+x+")"}function sp(){function a(x,b,tt,et,nt,ht){x.position=new Ee(et(nt,b.x,tt.x-b.x,ht),et(nt,b.y,tt.y-b.y,ht))}var y=new Rn;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,b,tt,et,nt,ht){nta&&ti(a,">= 1",zs,"duration"),this.Dg=a}},isAnimating:{get:function(){return this.bc}},isTicking:{get:function(){return this.vq}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a}},defaultAnimation:{get:function(){return this.ce}},activeAnimations:{get:function(){return this.Ei}},initialAnimationStyle:{get:function(){return this.Pk},set:function(a){this.Pk=a}}}),zs.prototype.stopAnimation=zs.prototype.Cc;var qc=null,$c=!1,au=new sn(zs,"Default",1),tf=new sn(zs,"AnimateLocations",2),ap=new sn(zs,"None",3);zs.className="AnimationManager",zs.defineAnimationEffect=function(a,y){$c||(sp(),$c=!0),qc.add(a,y)},zs.Default=au,zs.AnimateLocations=tf,zs.None=ap;function Lo(a){this.vu=this.Nw=this.Yd=this.H=null,this.Xk=this.bc=this.j=!1,this.cn=this.Qd=0,this.Lp=this.ot=cc,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=jo,this.vc=new Rn,this.Tt=new Rn,this.yl=new gn,this.Ut=new gn,this.dw=Uu,a&&Object.assign(this,a)}Lo.prototype.suspend=function(){this.Xk=!0},Lo.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,nf(this,!0),Bu(this.Yd),fa(this.H),xh(this.Yd),this.H.redraw()};function ef(a,y){if(a.Tt.clear(),a.Wk=!1,a.au=0,a.Gd=NaN,0a.cn?a.Gd:b-a.Qd;y&&(tt=a.gw,tta.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function lp(a,y){for(var x=a.Gd,b=a.vc.iterator,tt=a.Wk;b.next();){var et=b.key;if(!(et instanceof ze&&et.diagram===null)){var nt=b.value,ht=tt?nt.end:nt.start;nt=tt?nt.start:nt.end;var gt=qc,bt;for(bt in nt)bt==="position"&&(nt["position:placeholder"]||nt["position:nodeCollapse"])||gt.get(bt)===null||gt.get(bt)(et,ht[bt],nt[bt],a.Lp,y,x,a)}}}ee.stop=function(){return this.bc?(this.Ml(!0),this):this},ee.Ml=function(a){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var y=this.H,x=this.Yd;this.Xk=this.bc=x.Ok=!1,Bu(x);for(var b=this.vc,tt=this.yl.iterator;tt.next();)y.remove(tt.value);for(tt=this.Ut.iterator;tt.next();)tt.value.v();tt=this.ho,b=b.iterator;for(var et=qc;b.next();){var nt=b.key,ht=b.value,gt=tt?ht.end:ht.start,bt=tt?ht.start:ht.end,Pt=ht.Ku,Nt;for(Nt in bt)if(et.get(Nt)!==null){var zt=Nt;!ht.Hu||zt!=="position:nodeCollapse"&&zt!=="position:placeholder"||(zt="position"),et.get(zt)(nt,gt[Nt],Pt[Nt]!==void 0?Pt[Nt]:ht.Hu?gt[Nt]:bt[Nt],this.Lp,this.Gd,this.Gd,this)}ht.Hu&&Pt.location!==void 0&&nt instanceof _n&&(nt.location=Pt.location),ht.nv&&nt instanceof _n&&nt.Zb(!1)}if(y.As.clear(),rf(y,!1),y.Ya(),y.N(),fa(y,!0),x.defaultAnimation===this){for(Nt=x.pr.iterator;Nt.next();)tt=Nt.value,tt.Tg!==null&&(tt.points=tt.Tg,tt.Tg=null);x.pr.clear()}fa(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),xh(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),ef(this,null),x.Ml(this),y.$b())}},ee.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof Un&&(b=y.placeholder),b!==null?(x=b.ga(vo),b=b.padding,x.x+=b.left,x.y+=b.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Ee(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof Un)for(a=a.memberParts;a.next();)b=a.value,b instanceof wn&&this.Cj(b,y)},ee.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof Un&&(x=y.placeholder),x!==null){var b=x.ga(vo);x=x.padding,b.x+=x.left,b.y+=x.top,this.add(a,"position:placeholder",a.position,b,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),b=this.vc,b.contains(a)&&(b.I(a).nv=!0),a instanceof Un)for(a=a.memberParts;a.next();)b=a.value,b instanceof wn&&this.Aj(b,y)}},ee.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},qe.Object.defineProperties(Lo.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&ti(a,">= 1",Lo,"duration"),this.Dg=a}},reversible:{get:function(){return this.ho},set:function(a){this.ho=a}},runCount:{get:function(){return this.cu},set:function(a){0a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Hg(a,y,x,b){return a===b?y+x:x*(-Math.pow(2,-10*a/b)+1)+y}Lo.className="Animation",Lo.EaseLinear=function(a,y,x,b){return x*a/b+y},Lo.EaseInOutQuad=cc,Lo.EaseInQuad=function(a,y,x,b){return x*(a/=b)*a+y},Lo.EaseOutQuad=function(a,y,x,b){return-x*(a/=b)*(a-2)+y},Lo.EaseInExpo=function(a,y,x,b){return a===0?y:x*Math.pow(2,10*(a/b-1))+y},Lo.EaseOutExpo=Hg;function Ch(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}Ch.className="AnimationState";function Ua(a,y,x){this.xd=null,this.rf=a,this.so=x||up,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=Eh))}Ua.prototype.copy=function(){var a=new Ua(this.rf);a.so=this.so;var y=this.uk;if(y!==null){var x={};y.duration!==void 0&&(x.duration=y.duration),y.finished!==void 0&&(x.finished=y.finished),y.easing!==void 0&&(x.easing=y.easing),a.uk=x}return a};function Wg(a,y){a=a.uk,a!==null&&(a.duration&&(y.duration=a.duration),a.finished&&(y.finished=a.finished),a.easing&&(y.easing=a.easing))}qe.Object.defineProperties(Ua.prototype,{propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},animationSettings:{get:function(){return this.uk},set:function(a){this.uk=a}},startCondition:{get:function(){return this.so},set:function(a){this.so=a}}});var up=new sn(Ua,"Default",1),Eh=new sn(Ua,"Immediate",2),fc=new sn(Ua,"Bundled",3);Ua.className="AnimationTrigger",Ua.Default=up,Ua.Immediate=Eh,Ua.Bundled=fc;function co(a){qi(this),this.H=null,this.Pa=new vn,this.xa="",this.pb=1,this.o=!1,this.j=this.Uh=this.u=this.Oi=this.Ni=this.Mi=this.Li=this.Ji=this.Ki=this.Ii=this.Qi=this.Hi=this.Pi=this.Gi=this.Fi=!0,this.Zq=[],a&&Object.assign(this,a)}ee=co.prototype,ee.clear=function(){for(var a=this.Pa,y=0;y=a)return y;for(var x=0,b=0,tt=0,et=0,nt=0,ht=this.Pa.iterator;ht.next();){var gt=ht.value;gt instanceof Un?tt++:gt instanceof wn?b++:gt instanceof cn?et++:gt instanceof di?nt++:x++}if(ht="",0x.Oq||ht.height*tt>x.Oq?y.gc(a,x):(tt=y.actualBounds,et=y.naturalBounds,tt.width===0||tt.height===0||isNaN(tt.x)||isNaN(tt.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(vr(y,a,y.areaBackground,!0,!0,et,tt),a.fillRect(tt.x,tt.y,tt.width,tt.height)),y.areaBackground===null&&y.background===null&&(vr(y,a,"rgba(0,0,0,0.3)",!0,!1,et,tt),a.fillRect(tt.x,tt.y,tt.width,tt.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),vr(y,a,y.background,!0,!1,et,tt),a.fillRect(0,0,et.width/2,et.height/2),x.ws()||(y=1/(x.m11*x.m22-x.m12*x.m21),a.transform(x.m22*y,-x.m12*y,-x.m21*y,x.m11*y,y*(x.m21*x.dy-x.m22*x.dx),y*(x.m12*x.dx-x.m11*x.dy)))))),b&&(a.restore(),a.Vc(!0))}},ee.g=function(a,y,x,b,tt){var et=this.diagram;et!==null&&et.cb(tr,a,this,y,x,b,tt)},ee.oi=function(a,y,x){var b=this.Pa;if(y.Ig=this,this===null&&zo(y),a>=b.count)a=b.count;else if(b.M(a)===y)return-1;return b.Gb(a,y),y.Vo(x),b=this.diagram,b!==null&&(x?b.N():b.oi(y)),$f(this,a,y),a},ee.pc=function(a,y,x){if(!x&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,x);var b=this.Pa;if(0>a||a>=b.length){if(a=b.indexOf(y),0>a)return-1}else if(b.M(a)!==y&&(a=b.indexOf(y),0>a))return-1;return y.Wo(x),b.mb(a),b=this.diagram,b!==null&&(x?b.N():b.pc(y)),y.Ig=null,zo(y),a};function $f(a,y,x){if(y=Yg(a,y,x),x instanceof Un&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var b=-1,tt=a.Pa.s,et=tt.length,nt=0;ntb&&ht.containingGroup===x&&(b=nt,0<=y))break}!(0>b)&&b=tt)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var et=y-1,nt=NaN;0<=et&&(nt=a.M(et).zOrder,!!isNaN(nt));)et--;for(var ht=y+1,gt=NaN;htb)for(;;){if(et===-1||nt<=b){if(et++,et===y)break;return a.mb(y),a.Gb(et,x),et}for(nt=NaN;0<=--et&&(nt=a.M(et).zOrder,isNaN(nt)););}else if(!isNaN(gt)&>=b){if(ht--,ht===y)break;return a.mb(y),a.Gb(ht,x),ht}for(gt=NaN;++hta||1=a)return y;for(var x=this.Wa.iterator;x.next();)y+=` - `+x.value.toString(a-1);return y};function cp(a,y){if(gr){if(y!=null||We("Diagram setup requires an argument DIV."),a.Ka!==null&&We("Diagram has already completed setup."),typeof y=="string"?a.Ka=bn.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:We("No DIV or DIV id supplied: "+y),a.Ka===null&&We("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&We("Invalid div id; div already has a Diagram associated with it."),!a.ol&&bn.ResizeObserver){var x=Xi(function(){a.$b()},250);a.ol=new bn.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}bn.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var b="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=b,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=bn.go;var tt=new _a(a);if(tt.style!==void 0&&(tt.style.position="absolute",tt.style.top="0px",tt.style.left="0px",bn.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),tt.style.zIndex="2",tt.style.userSelect="none",tt.style.MozUserSelect="none",tt.style.touchAction="none",tt.style.letterSpacing="normal !important",tt.style.wordSpacing="normal !important"),a.ta=tt,a.ib=tt.context,b=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),Sp(a,a.Aa,a.ya),a.Ka.insertBefore(tt.Oa,a.Ka.firstChild),tt=new _a(null),tt.width=1,tt.height=1,a.jw=tt,a.oy=tt.context,gr){tt=ir("div");var et=ir("div");tt.style.position="absolute",tt.style.overflow="auto",tt.style.width=a.Aa+"px",tt.style.height=a.ya+"px",tt.style.zIndex="1",et.style.position="absolute",et.style.width="1px",et.style.height="1px",a.Ka.appendChild(tt),tt.appendChild(et),tt.onscroll=Jg,tt.addEventListener("pointerdown",qg),tt.H=a,tt.uy=!0,tt.vy=!0,a.ku=tt,a.hu=et}a.hk=Xi(function(){a.Yh=null,a.N()},300),a.Ov=Xi(function(){fp(a)},250),a.preventDefault=function(nt){return nt.preventDefault(),!1},a.$j=function(nt){if(a.isEnabled){var ht=ca(a,nt,!0);ht.bubbles=!0;var gt=0,bt=0;ht.delta=0,nt.deltaX!==void 0?(nt.deltaX!==0&&(gt=0Math.abs(nt.deltaY)?-gt:-bt):nt.wheelDeltaX!==void 0?(nt.wheelDeltaX!==0&&(gt=0Math.abs(nt.wheelDeltaY)?-gt:-bt):nt.wheelDelta!==void 0&&nt.wheelDelta!==0&&(ht.delta=0ht||Math.abs(bt.y-nt.screenY)>ht)?a.yq++:a.yq=1,gt.clickCount=a.yq,a.tw=nt.timeStamp,a.uw.sg(nt.screenX,nt.screenY),a.doMouseDown(),nt.button===1?nt.preventDefault():Ha(gt,nt)}},a.dk=function(nt){if(a.isEnabled){a.Vk=!0;var ht=a.oj;if(ht[0]===null||ht[0].pointerId!==nt.pointerId&&ht[0].pointerType===nt.pointerType){if(ht[1]!==null&&ht[1].pointerId===nt.pointerId){ht[1]=nt;return}if(ht[0]===null)ht[0]=nt;else return}else ht[0]=nt;if(ht[0].pointerId===nt.pointerId){ht=mp(a,nt,!1,!1,!1,ht[1]!==null);var gt=bn.document.elementFromPoint(nt.clientX,nt.clientY)||null;gt!==null&>.shadowRoot!==void 0&>.shadowRoot!==null&&(gt=gt.shadowRoot.elementFromPoint(nt.clientX,nt.clientY));var bt=a,Pt=nt;gt&>.H&&(Pt=nt,bt=gt.H),ht.targetDiagram=bt,pc(a,Pt,ht),ht.targetObject=null,a.doMouseMove(),Ha(ht,nt)}}},a.fk=function(nt){if(a.isEnabled){a.Vk=!0;var ht=nt.pointerType==="touch"||nt.pointerType==="pen",gt=a.Yt;if(ht&&a.qu)delete gt[nt.pointerId],nt.preventDefault();else if(gt=a.oj,gt[0]===null||gt[0].pointerId!==nt.pointerId&>[0].pointerType===nt.pointerType)gt[1]!==null&>[1].pointerId===nt.pointerId&&(gt[1]=null);else{gt[0]=null,gt=mp(a,nt,!1,!0,!0,!1);var bt=bn.document.elementFromPoint(nt.clientX,nt.clientY)||null;bt!==null&&bt.shadowRoot!==void 0&&bt.shadowRoot!==null&&(bt=bt.shadowRoot.elementFromPoint(nt.clientX,nt.clientY)),bt!==null&&bt.H instanceof Ye&&bt.H!==a&&pc(bt.H,nt,gt),bt===null&&(bt=nt.target),pc(a,nt,gt),gt.clickCount=a.yq,gt.targetDiagram=gp(nt,bt),gt.targetObject=null,a.doMouseUp(),Ha(gt,nt),ht&&(a.wq=!1)}}},a.ek=function(nt){if(a.isEnabled){a.Vk=!1;var ht=a.Yt;ht[nt.pointerId]&&delete ht[nt.pointerId],ht=a.oj,ht[0]!==null&&ht[0].pointerId===nt.pointerId&&(ht[0]=null),ht[1]!==null&&ht[1].pointerId===nt.pointerId&&(ht[1]=null),nt.pointerType!=="touch"&&nt.pointerType!=="pen"&&(nt=a.currentTool,nt.cancelWaitAfter(),nt.standardMouseOver())}},a.ck=function(nt){var ht=a.oj;ht[0]!==null&&ht[0].pointerId===nt.pointerId?(ht[0]=null,a.wq=!1):ht[1]!==null&&ht[1].pointerId===nt.pointerId&&(ht[1]=null)},a.Vp=b.Z["d"+ff[1]+ff[2]+"wI"+xc.slice(1,5)]["b"+jw.slice(1,y)](b.Z,cf,y,y),b.Vc(!0),ev(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}Ye.prototype.addEventListener=function(a,y,x,b){a.addEventListener(y,x,{capture:b,passive:!1})},Ye.prototype.removeEventListener=function(a,y,x,b){a.removeEventListener(y,x,{capture:b})};function ev(a){var y=a.ta.Oa;y instanceof HTMLCanvasElement||(y=a.div),a.addEventListener(y,"pointerdown",a.ui,!1),a.addEventListener(y,"pointermove",a.dk,!1),a.addEventListener(y,"pointerup",a.fk,!1),a.addEventListener(y,"pointerout",a.ek,!1),a.addEventListener(y,"pointercancel",a.ck,!1),a.addEventListener(y,"pointerenter",a.bz,!1),a.addEventListener(y,"pointerleave",a.cz,!1),a.addEventListener(y,"wheel",a.$j,!1),a.addEventListener(y,"keydown",a.Qz,!1),a.addEventListener(y,"keyup",a.Rz,!1),a.addEventListener(y,"blur",a.Ny,!1),a.addEventListener(y,"focus",a.Oy,!1),a.addEventListener(y,"selectstart",function(x){return x.preventDefault(),!1},!1),a.addEventListener(y,"contextmenu",function(x){return x.preventDefault(),!1},!1),a.addEventListener(bn,"resize",a.Ov,!1)}function ys(a){30Zt&&(this.position=Pe.h(-(y.scrollWidth-this.Aa)+de-this.Aa/tt+Pt,this.position.y))),a.vy&&this.allowVerticalScroll&&(htoe&&(this.position=Pe.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/tt+et))),Ee.free(Pe),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,tt=this.viewportBounds,Pt=b.right,Zt=tt.right,et=b.bottom,oe=tt.bottom,nt=b.x,Nt=tt.x,ht=b.y,b=tt.y,zt>=gt&&nt>=Nt&&Pt<=Zt&&(x.style.width="1px"),Vt>=bt&&ht>=b&&et<=oe&&(x.style.height="1px"))}},Ye.prototype.computeBounds=function(a){return a===void 0&&(a=new $e),To(this),dp(this,a)};function dp(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,b=a.Wa.s,tt=b.length,et=0;etx&&(y=x),ya.maxScale&&(y=a.maxScale),y):y===Oh?(y=gt>ht?(nt-a.Db)/b:(et-a.Db)/tt,y>x&&(y=x),ya.maxScale&&(y=a.maxScale),y):a.scale}Ye.prototype.zoomToFit=function(){var a=this.sj;this.sj=Uu,this.scale=dc(this,$s),a!==Uu&&(La(this,!1),pp(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},ee=Ye.prototype,ee.BA=function(a,y){y===void 0&&(y=$s);var x=a.width,b=a.height;if(!(x===0||b===0||isNaN(x)&&isNaN(b))){var tt=1;if(y===$s||y===Oh)if(isNaN(x))tt=this.viewportBounds.height*this.scale/b;else if(isNaN(b))tt=this.viewportBounds.width*this.scale/x;else{tt=this.Aa;var et=this.ya;tt=y===Oh?et/b>tt/x?(et-(this.Be?this.Db:0))/b:(tt-(this.gf?this.Db:0))/x:Math.min(et/b,tt/x)}this.scale=tt,this.position=new Ee(a.x,a.y)}},ee.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new Ee(x.x+(a.x*x.width+a.offsetX)-(y.x*b.width-y.offsetX),x.y+(a.y*x.height+a.offsetY)-(y.y*b.height-y.offsetY))},ee.zz=function(a){if(a instanceof ze){this.eq=a;var y=Ee.alloc();this.fq=this.op(a.ga(vo,y)),Ee.free(y)}else this.eq=null,this.fq=_l};function pp(a,y,x,b,tt,et){var nt=Ee.allocAt(a.pa.x,a.pa.y),ht=nt.x,gt=nt.y;if(a.eq!==null){var bt=Ee.alloc();bt=a.eq.ga(vo,bt),ht=bt.x-a.fq.x/a.scale,gt=bt.y-a.fq.y/a.scale,tt=$r,Ee.free(bt)}(et||a.scrollMode===Uu)&&(tt.sb()&&(x>y.width&&(ht=y.x+(tt.x*y.width+tt.offsetX)-(tt.x*x-tt.offsetX)),b>y.height&&(gt=y.y+(tt.y*y.height+tt.offsetY)-(tt.y*b-tt.offsetY))),tt=a.rj,et=x-y.width,xy.left?ht=y.left:hty.top?gt=y.top:gty;y++){var x=a.De.iterator;if(x===null||a.De.count===0)break;a.De=new gn,a.Nv(x,a.De)}a.nodes.each(function(b){b instanceof Un&&b.U&65536&&(b.U=b.U^65536)})}}ee.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof Un||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof Un&&x.isVisible()&&af(this,x);for(a.reset();a.next();)x=a.value,x instanceof cn&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x));for(a.reset();a.next();)x=a.value,x instanceof di&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function af(a,y){for(var x=oi(),b=oi(),tt=y.memberParts;tt.next();){var et=tt.value;et.isVisible()&&(et instanceof Un?(ea(et)||ss(et)||Nh(et))&&af(a,et):et instanceof cn?et.fromNode===y||et.toNode===y?b.push(et):x.push(et):(et.measure(1/0,1/0),et.arrange()))}for(a=x.length,tt=0;ttRe&&(de=Sn.left,Le=Sn.right),Pe.height>Ve&&(Oe=Sn.top,De=Sn.bottom)):(de=Sn.left,Le=Sn.right,Oe=Sn.top,De=Sn.bottom);var Mn=Pe.width+de+Le,Pn=Pe.height+Oe+De;Sn=a.scale;var hn=Mn>gt/Sn,rn=Pn>bt/Sn;if(!(et||a.gf||a.Be||hn||rn))return!0;de=Pe.x-de,gt=Pt.x,Le=Pe.right+Le,bt=Pt.right+nt,Oe=Pe.y-Oe;var Gn=Pt.y;Pe=Pe.bottom+De,Pt=Pt.bottom+ht;var Fn="1px";if(De="1px",a.scrollMode===Uu&&(hn||rn)&&(hn&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(hn=1,de+1bt+1&&(hn=Math.max((Le-bt)*Sn+a.Aa,hn)),Re+nt+1Pt+1&&(hn=Math.max((Pe-Pt)*Sn+a.ya,hn)),Ve+ht+1bt+1&&(nt=Math.max((Le-bt)*Sn+a.Aa,nt)),Re+1Pt+1&&(ht=Math.max((Pe-Pt)*Sn+nt,ht)),Ve+1bt+1&&(y=a.position.x*Sn)),a.tn)switch(a.bu){case"negative":y=-(Zt.scrollWidth-y-Zt.clientWidth);break;case"reverse":y=Zt.scrollWidth-y-Zt.clientWidth}return Zt.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Ve+1Pt+1&&(Zt.scrollTop=a.position.y*Sn)),gt=a.Aa,bt=a.ya,Zt.style.width=gt+(a.gf?a.Db:0)+"px",Zt.style.height=bt+(a.Be?a.Db:0)+"px",x!==gt||b!==bt||a.animationManager.zb?(x=$e.allocAt(tt,Nt,zt,Vt),a.onViewportBoundsChanged(x,a.viewportBounds,Sn,et),$e.free(x),!1):!0}ee=Ye.prototype,ee.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&We("Cannot add part "+a.toString()+" to "+this.toString()+". It is already a part of "+y.toString()),y=this.Qj(a.layerName),y===null&&(y=this.Qj("")),y===null&&We('Cannot add a Part when unable find a Layer named "'+a.layerName+'" and there is no default Layer'),a.layer!==y)){var x=y.oi(99999999,a,a.diagram===this);0<=x&&this.cb(Ar,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},ee.oi=function(a){this.partManager.oi(a);var y=this;Ac(a,function(x){yc(y,x)}),(a instanceof di||a instanceof Un&&a.placeholder!==null)&&a.v(),a.data!==null&&Ac(a,function(x){ly(y.partManager,x)}),ss(a)!==!0&&Nh(a)!==!0||this.De.add(a),B1(a,!0,this),z1(a)?(a.actualBounds.w()&&this.N(Lc(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Lc(a,a.actualBounds)),this.$b()},ee.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Ac(a,function(x){uy(y.partManager,x,y)}),this.De.remove(a),z1(a)?(a.actualBounds.w()&&this.N(Lc(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Lc(a,a.actualBounds)),this.$b()},ee.remove=function(a){wp(this,a,!0)};function wp(a,y,x){var b=y.layer;b!==null&&b.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),x&&y.Lj(),x=b.pc(-1,y,!1),0<=x&&a.cb(Hr,"parts",b,y,null,x,null),a=y.layerChanged,a!==null&&a(y,b,null))}ee.Is=function(a,y){if(y===void 0&&(y=!1),Cn(a))for(var x=a.length,b=0;bb&&this.Ya(),this},ee.Cy=function(a,y){bp(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(Hr,"layers",this,a,null,b,null));var tt=x.count,et;for(et=0;etb&&this.Ya(),this},ee.kA=function(a){if(a.diagram!==this&&We("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,x=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var b=y.value,tt=b.layerName;tt!==a.name?b.layerName=tt:b.layerName=""}this.cc!==null&&this.cb(Hr,"layers",this,a,null,x,null),this.N(),this.Ya()}}},ee.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},ee.Yw=function(a){return this.pf===null&&(this.pf=new vn),this.pf.add(a),this.model.Pe(a),this},ee.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},ee.Pe=function(a){return this.zg===null&&(this.zg=new vn),this.zg.add(a),this},ee.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},ee.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==Rs&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,b=0;bNt.Pa.indexOf(Vt)&&Nt.oi(zt,Vt,Zt):(Vt.isSelected=!1,Vt.isHighlighted=!1,Vt.Wb(),Nt.pc(Zt?zt:-1,Vt,Zt)))}else Nt instanceof Ye?typeof zt=="number"&&Vt instanceof co&&(y?(Vt.Xe(this),this.Wa.Gb(zt,Vt)):this.Wa.mb(zt)):We("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==Rs&&We("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},Ye.prototype.Ea=function(a){return this.undoManager.Ea(a)},Ye.prototype.eb=function(a){return this.undoManager.eb(a)},Ye.prototype.Kf=function(){return this.undoManager.Kf()},Ye.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var b=!1;try{a(this),b=!0}finally{b?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},Ye.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},Ye.prototype.rp=function(){this.partManager.rp()};function Pp(a,y,x){var b=a.animationManager;if(a.vb||a.ld)a.Ca=x,bl(a),a.N(),a.Ee=!0,b.zb&&(su(b)||b.ce.add(b.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,bl(a);else{a.vb=!0;var tt=a.viewportBounds.copy(),et=a.Aa,nt=a.ya,ht=a.zoomPoint.x,gt=a.zoomPoint.y,bt=a.contentAlignment;isNaN(ht)&&(bt.$c()?bt.Hf(ml)?ht=0:bt.Hf(As)&&(ht=et-1):ht=bt.sb()?bt.x*(et-1):et/2),isNaN(gt)&&(bt.$c()?bt.Hf(gl)?gt=0:bt.Hf(Ea)&&(gt=nt-1):gt=bt.sb()?bt.y*(nt-1):nt/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(x=a.scaleComputation(a,x)),xa.maxScale&&(x=a.maxScale),et=Ee.allocAt(a.pa.x+ht/y-ht/x,a.pa.y+gt/y-gt/x),a.position=et,Ee.free(et),a.Ca=x,bl(a),a.vb=!1,a.onViewportBoundsChanged(tt,a.viewportBounds,y,!1),La(a,!1),b.zb&&(su(b)||b.ce.add(b.H,"scale",y,a.Ca))}}Ye.prototype.onViewportBoundsChanged=function(a,y,x,b){if(!a.D(y)){b===void 0&&(b=!1),b||(this.Ee=!0),this.vd=!0;var tt=this.layout;tt===null||!tt.isViewportSized||this.autoScale!==Wo||a.width===y.width&&a.height===y.height||tt.C(),tt=this.currentTool,this.Vk===!0&&tt instanceof $i&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Ig(tt,this)),this.vb||this.invalidateViewport(a,y),xl(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.canvasSize.width=Math.round(a.width*x),this.fc.canvasSize.height=Math.round(a.height*x),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=b,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(et){et.isAvoiding&&et.actualBounds.Yc(y)&&et.bb()})}};function xl(a,y){var x=a.fe;if(x!==null&&x.visible){for(var b=xn.alloc(),tt=1,et=1,nt=x.O.s,ht=nt.length,gt=0;gtPt||(mv(bt.figure)?et=et*Pt/Ge.vx(et,Pt):tt=tt*Pt/Ge.vx(tt,Pt))}if(nt=x.gridCellSize,b.h(et*nt.width,tt*nt.height),y!==void 0)tt=y.width,et=y.height,a=y.x,nt=y.y;else{if(y=$e.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){$e.free(y);return}tt=y.width,et=y.height,a=y.x,nt=y.y,$e.free(y)}x.width=tt+2*b.width,x.height=et+2*b.height,y=Ee.alloc(),Ge.No(a,nt,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),xn.free(b),x.part.location=y,Ee.free(y)}}Ye.prototype.clearSelection=function(a){a===void 0&&(a=!1);var y=this.selection;if(y.count!==0){a||this.R("ChangingSelection",y);for(var x=y.Fa(),b=x.length,tt=0;tt=b&&!et.defaultAnimation.isAnimating&&!et.zb&&(y||Dl(et,"Layout")),a.xh=!1;for(var nt=a.ai.iterator;nt.next();)kp(a,nt.value,y,b);tt.isValidLayout||(!y||tt.isRealtime||tt.isRealtime===null||b===0?(tt.doLayout(a),To(a),tt.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,b===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||b!==0&&b!==1||Zf(et),a.aa=x}}}function kp(a,y,x,b){if(y!==null){for(var tt=y.gl.iterator;tt.next();)kp(a,tt.value,x,b);tt=y.layout,tt===null||tt.isValidLayout||(!x||tt.isRealtime||b===0?(y.rh=!y.location.w(),tt.doLayout(y),y.C(32),af(a,y),tt.isValidLayout=!0):a.xh=!0)}}ee.yz=function(){for(var a=new vn,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function nv(a){function y(tt){var et=tt.toLowerCase(),nt=new vn;x.add(tt,nt),x.add(et,nt),b.add(tt,tt),b.add(et,tt)}var x=new Rn,b=new Rn;y("InitialAnimationStarting"),y("AnimationStarting"),y("AnimationFinished"),y("BackgroundSingleClicked"),y("BackgroundDoubleClicked"),y("BackgroundContextClicked"),y("ClipboardChanged"),y("ClipboardPasted"),y("DocumentBoundsChanged"),y("ExternalObjectsDropped"),y("GainedFocus"),y("InitialLayoutCompleted"),y("LayoutCompleted"),y("LinkDrawn"),y("LinkRelinked"),y("LinkReshaped"),y("LostFocus"),y("Modified"),y("ObjectSingleClicked"),y("ObjectDoubleClicked"),y("ObjectContextClicked"),y("PartCreated"),y("PartResized"),y("PartRotated"),y("SelectionMoved"),y("SelectionCopied"),y("SelectionDeleting"),y("SelectionDeleted"),y("SelectionGrouped"),y("SelectionUngrouped"),y("ChangingSelection"),y("ChangedSelection"),y("SubGraphCollapsed"),y("SubGraphExpanded"),y("TextEdited"),y("TreeCollapsed"),y("TreeExpanded"),y("ViewportBoundsChanged"),y("InvalidateDraw"),a.iw=x,a.hw=b}function nm(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function sd(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;We("Unknown DiagramEvent name: "+y)}ee.Bj=function(a,y){return a=sd(this,a),a!==null&&a.add(y),this},ee.am=function(a,y){a=sd(this,a),a!==null&&a.remove(y)},ee.R=function(a,y,x){var b=sd(this,a),tt=new Au;if(tt.diagram=this,a=nm(this,a),a!==null&&(tt.name=a),y!==void 0&&(tt.subject=y),x!==void 0&&(tt.parameter=x),y=b.length,y===1)b.M(0)(tt);else if(y!==0)for(b=b.Fa(),x=0;x=x.top&&0>=x.left&&0>=x.right&&0>=x.bottom)return y;var b=this.viewportBounds,tt=this.scale;b=$e.allocAt(0,0,b.width*tt,b.height*tt);var et=Ee.allocAt(0,0);if(a.x>=b.x&&a.xb.x+b.width-x.right&&this.allowHorizontalScroll&&(nt=Math.max(this.scrollHorizontalLineChange,1),nt|=0,et.x+=nt,a.x>b.x+b.width-x.right/2&&(et.x+=nt),a.x>b.x+b.width-x.right/4&&(et.x+=4*nt));return a.y>=b.y&&a.yb.y+b.height-x.bottom&&this.allowVerticalScroll&&(nt=Math.max(this.scrollVerticalLineChange,1),nt|=0,et.y+=nt,a.y>b.y+b.height-x.bottom/2&&(et.y+=nt),a.y>b.y+b.height-x.bottom/4&&(et.y+=4*nt)),et.Xa(jo)||(y=new Ee(y.x+et.x/tt,y.y+et.y/tt)),$e.free(b),Ee.free(et),y},ee=Ye.prototype,ee.Cs=function(){return null},ee.av=function(){return null},ee.bs=function(a,y){this.pj.add(a,y)},ee.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Un&&(y.$p=null)})};function lf(a,y,x){function b(){var Pt=+new Date;for(et=!0,nt.reset();nt.next();)if(!nt.value[0].al){et=!1;break}et||Pt-bt>gt?y(x,tt,ht):bn.requestAnimationFrame(b)}for(var tt=x.callback,et=!0,nt=a.Og.iterator;nt.next();)if(!nt.value[0].al){et=!1;break}if(typeof tt!="function"||et)return y(x,tt,a);var ht=a,gt=x.callbackTimeout||300,bt=+new Date;return bn.requestAnimationFrame(function(){b()}),null}ee.Wz=function(a){return gr?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},ee.Jx=function(a){return a===void 0&&(a={}),lf(this,this.Xz,a)},ee.Xz=function(a,y,x){var b=rm(x,a,"canvas",null);if(b===null)return null;x=b.Z.canvas;var tt=null;if(x!==null)switch(tt=a.returnType,tt===void 0?tt="string":tt=tt.toLowerCase(),tt){case xc+"data":tt=b.getImageData(0,0,x.width,x.height);break;case xc:b=(a.document||document).createElement("img"),b.src=x.toDataURL(a.type,a.details),tt=b;break;case"blob":return typeof y!="function"&&We('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof x.toBlob=="function"?(x.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:tt=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(tt),null):tt};function rm(a,y,x,b){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&We("properties argument must be an Object.");var tt=y.size||null,et=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(et="NaN");var nt=y.maxSize;y.maxSize===void 0&&(nt=x==="SVG"?new xn(1/0,1/0):new xn(2e3,2e3));var ht=y.position||null,gt=y.parts||null,bt=y.padding===void 0?1:y.padding,Pt=y.background||null,Nt=y.omitTemporary;Nt===void 0&&(Nt=!0);var zt=y.document||document,Vt=y.elementFinished||null,Zt=y.showTemporary;Zt===void 0&&(Zt=!Nt),y=y.showGrid,y===void 0&&(y=Zt),tt!==null&&isNaN(tt.width)&&isNaN(tt.height)&&(tt=null),typeof bt=="number"?bt=new Yn(bt):bt instanceof Yn||We("MakeImage padding must be a Margin or a number."),bt.left=Math.max(bt.left,0),bt.right=Math.max(bt.right,0),bt.top=Math.max(bt.top,0),bt.bottom=Math.max(bt.bottom,0),a.ib.Vc(!0),Nt=new _a(null,zt,void 0,!0);var oe=Nt.context;if(!(tt||et||gt||ht))return Nt.width=a.Aa+Math.ceil(bt.left+bt.right),Nt.height=a.ya+Math.ceil(bt.top+bt.bottom),x==="SVG"?b===null?null:(b.resize(Nt.width,Nt.height,Nt.width,Nt.height),b.ownerDocument=zt,b.hs=Vt,ed(a,b.context,bt,new xn(Nt.width,Nt.height),a.Ca,a.pa,gt,Pt,Zt,y),b.context):(a.Xm=!1,ed(a,oe,bt,new xn(Nt.width,Nt.height),a.Ca,a.pa,gt,Pt,Zt,y),a.Xm=!0,Nt.context);var Pe=a.Pp,de=a.documentBounds.copy();if(de.Fv(a.yb),Zt)for(var Le=a.Wa.s,Oe=Le.length,De=0;DePe?(et=Pe,tt=de.width,de=de.height):(tt=nt.width,de=nt.height)):(tt=de.width*et,de=de.height*et):(et=Pe,tt=de.width,de=de.height),bt!==null?(tt+=ht,de+=Oe):bt=new Yn(0),nt!==null&&(Pe=nt.width,nt=nt.height,isNaN(Pe)&&(Pe=2e3),isNaN(nt)&&(nt=2e3),isFinite(Pe)&&(tt=Math.min(tt,Pe)),isFinite(nt)&&(de=Math.min(de,nt))),Nt.width=Math.ceil(tt),Nt.height=Math.ceil(de),x==="SVG"?b===null?null:(b.resize(Nt.width,Nt.height,Nt.width,Nt.height),b.ownerDocument=zt,b.hs=Vt,ed(a,b.context,bt,new xn(Math.ceil(tt),Math.ceil(de)),et,Le,gt,Pt,Zt,y),b.context):(a.Xm=!1,ed(a,oe,bt,new xn(Math.ceil(tt),Math.ceil(de)),et,Le,gt,Pt,Zt,y),a.Xm=!0,Nt.context)}qe.Object.defineProperties(Ye.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof Dt||(a===""&&(a="default"),a=a.toLowerCase(),a!==this.nl&&(this.nl=a,a==="default"||a==="canvas"?(a=this.pj.get("svg"),a!==null&&a.Oa.remove(),this.ta&&(this.ib=this.ta.context)):a==="svg"?(this.pj.contains("svg")?a=this.pj.get("svg"):(a=new Pl(this,bn.document),this.bs("svg",a)),this.div!==null&&this.div.appendChild(a.Oa),this.ib=a.context,this.ta&&(this.ta.context.setTransform(this.Mb,0,0,this.Mb,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya))):a!=="debug"||this.pj.contains("SVG")||(a=new Pl(this,bn.document),this.bs("SVG",a),a.Oa.style.backgroundColor="whitesmoke",this.div!==null&&this.div.after(a.Oa)),this.hk()))}},div:{get:function(){return this.Ka},set:function(a){if(this.Ka!==a){var y=this.Ka;y!==null?(y.H=void 0,y.goDiagram=void 0,y.go=void 0,y.innerHTML="",this.ta!==null&&(y=this.ta.Oa,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.ta.mx()),this.ol&&(this.ol.disconnect(),this.ol=null),y=this.toolManager,y!==null&&(y.mouseDownTools.each(function(x){x.cancelWaitAfter()}),y.mouseMoveTools.each(function(x){x.cancelWaitAfter()}),y.mouseUpTools.each(function(x){x.cancelWaitAfter()})),y.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(bn,"resize",this.Ov,!1),this.removeEventListener(bn,"wheel",this.$j,!0),Il===this&&(Il=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),cp(this,a),this.hk())}}},$w:{get:function(){return this.Sq}},pi:{get:function(){return this.hf}},draggedLink:{get:function(){return this.nt},set:function(a){this.nt!==a&&(this.nt=a,a!==null&&(this.Vt=a.fromPort,this.Wt=a.toPort))}},Mx:{get:function(){return this.Vt},set:function(a){this.Vt=a}},Nx:{get:function(){return this.Wt},set:function(a){this.Wt=a}},animationManager:{get:function(){return this.Yd}},undoManager:{get:function(){return this.cc.undoManager}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a,this.cc.skipsUndoManager=a}},delaysLayout:{get:function(){return this.lt},set:function(a){this.lt=a}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1a&&ti(a,">= 0",Ye,"scrollHorizontalLineChange"),this.iu=a,this.g("scrollHorizontalLineChange",y,a))}},scrollVerticalLineChange:{get:function(){return this.mu},set:function(a){var y=this.mu;y!==a&&(0>a&&ti(a,">= 0",Ye,"scrollVerticalLineChange"),this.mu=a,this.g("scrollVerticalLineChange",y,a))}},lastInput:{get:function(){return this.cj},set:function(a){this.cj=a}},previousInput:{get:function(){return this.Qg},set:function(a){this.Qg=a}},firstInput:{get:function(){return this.bq},set:function(a){this.bq=a}},currentCursor:{get:function(){return this.it},set:function(a){if(a===""&&(a=this.Op),this.it!==a){var y=this.ta,x=this.Ka;if(y!==null&&x!==null){this.it=a;var b=y.style.cursor;y.style.cursor=a,x.style.cursor=a,y.style.cursor===b&&(y.style.cursor="-webkit-"+a,x.style.cursor="-webkit-"+a,y.style.cursor===b&&(y.style.cursor="-moz-"+a,x.style.cursor="-moz-"+a,y.style.cursor===b&&(y.style.cursor=a,x.style.cursor=a)))}}}},defaultCursor:{get:function(){return this.Op},set:function(a){a===""&&(a="auto");var y=this.Op;y!==a&&(this.Op=a,this.g("defaultCursor",y,a))}},click:{get:function(){return this.zh},set:function(a){var y=this.zh;y!==a&&(this.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.Fh},set:function(a){var y=this.Fh;y!==a&&(this.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.Bh},set:function(a){var y=this.Bh;y!==a&&(this.Bh=a,this.g("contextClick",y,a))}},mouseOver:{get:function(){return this.Qh},set:function(a){var y=this.Qh;y!==a&&(this.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.Oh},set:function(a){var y=this.Oh;y!==a&&(this.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.Nh},set:function(a){var y=this.Nh;y!==a&&(this.Nh=a,this.g("mouseHold",y,a))}},mouseDragOver:{get:function(){return this.Qt},set:function(a){var y=this.Qt;y!==a&&(this.Qt=a,this.g("mouseDragOver",y,a))}},mouseDrop:{get:function(){return this.Lh},set:function(a){var y=this.Lh;y!==a&&(this.Lh=a,this.g("mouseDrop",y,a))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(a){var y=this.xt;y!==a&&(this.xt=a,this.g("handlesDragDropForTopLevelParts",y,a))}},mouseEnter:{get:function(){return this.Mh},set:function(a){var y=this.Mh;y!==a&&(this.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.Ph},set:function(a){var y=this.Ph;y!==a&&(this.Ph=a,this.g("mouseLeave",y,a))}},toolTip:{get:function(){return this.$h},set:function(a){var y=this.$h;y!==a&&(this.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.Ch},set:function(a){var y=this.Ch;y!==a&&(this.Ch=a,this.g("contextMenu",y,a))}},commandHandler:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a,a.Xe(this))}},toolManager:{get:function(){return this.te},set:function(a){this.te!==a&&(this.te=a,a.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(a){var y=this.ob;y!==a&&(this.ob=a,a.diagram=this,this.currentTool===y&&(this.currentTool=a))}},currentTool:{get:function(){return this.hb},set:function(a){var y=this.hb;y&&(y.isActive&&y.doDeactivate(),y.cancelWaitAfter(),y.doStop()),a===null&&(a=this.defaultTool),a!==null&&(this.hb=a,a.diagram=this,a.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(a){var y=this.Nt;if(y!==a)if(0<=a&&!isNaN(a)){if(this.Nt=a,this.g("maxSelectionCount",y,a),!this.undoManager.isUndoingRedoing&&(a=this.selection.count-a,0= 0",Ye,"maxSelectionCount")}},nodeSelectionAdornmentTemplate:{get:function(){return this.St},set:function(a){var y=this.St;y!==a&&(this.St=a,this.g("nodeSelectionAdornmentTemplate",y,a))}},groupSelectionAdornmentTemplate:{get:function(){return this.wt},set:function(a){var y=this.wt;y!==a&&(this.wt=a,this.g("groupSelectionAdornmentTemplate",y,a))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kt},set:function(a){var y=this.Kt;y!==a&&(this.Kt=a,this.g("linkSelectionAdornmentTemplate",y,a))}},highlighteds:{get:function(){return this.nw}},isModified:{get:function(){var a=this.undoManager;return a.isEnabled?a.currentTransaction!==null?!0:this.rn&&this.Ce!==a.historyIndex:this.rn},set:function(a){if(this.rn!==a){this.rn=a;var y=this.undoManager;!a&&y.isEnabled&&(this.Ce=y.historyIndex),a||tm(this)}}},model:{get:function(){return this.cc},set:function(a){var y=this.cc;if(y!==a){this.currentTool.doCancel(),y&&y.undoManager!==a.undoManager&&y.undoManager.isInTransaction&&We("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=hp(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var b=this.vb;this.vb=!0,Dl(this.animationManager,"Model"),y&&(this.pf!==null&&this.pf.each(function(et){return y.ik(et)}),y.ik(this.Oc)),this.cc=a,this.partManager=Cp(this.cc.type);for(var tt=0;ttthis.scale&&(this.scale=a)):ti(a,"> 0",Ye,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(a){var y=this.Mt;y!==a&&(0 0",Ye,"maxScale"))}},zoomPoint:{get:function(){return this.zu},set:function(a){this.zu.D(a)||(this.zu=a=a.J())}},contentAlignment:{get:function(){return this.zk},set:function(a){var y=this.zk;y.D(a)||(this.zk=a=a.J(),this.g("contentAlignment",y,a),La(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(a){var y=this.pq;y.D(a)||(this.pq=a=a.J(),this.g("initialContentAlignment",y,a))}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Yn(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.Ya(),this.g("padding",y,a))}},partManager:{get:function(){return this.Pc},set:function(a){var y=this.Pc;y!==a&&(a.diagram!==null&&We("Cannot share PartManagers between Diagrams: "+a.toString()),y&&y.Xe(null),this.Pc=a,a.Xe(this))}},nodes:{get:function(){return this.partManager.nodes.iterator}},links:{get:function(){return this.partManager.links.iterator}},parts:{get:function(){return this.partManager.parts.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;y!==a&&(this.Sc=a,a.diagram=this,a.group=null,this.xh=!0,this.g("layout",y,a),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(a){var y=this.Ht;if(y!==a&&(this.Ht=a,this.g("isTreePathToChildren",y,a),!this.undoManager.isUndoingRedoing))for(a=this.nodes;a.next();)Kp(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==Hu&&a!==Fr&&a!==cd&&We("Unknown Diagram.treeCollapsePolicy: "+a),this.uu=a,this.g("treeCollapsePolicy",y,a))}},Ue:{get:function(){return this.pw},set:function(a){this.pw=a}},avoidanceCellSize:{get:function(){return this.aw},set:function(a){this.Xh=null,this.aw=new xn(Math.max(1,a.width),Math.max(1,a.height))}},avoidanceLimit:{get:function(){return this.bw},set:function(a){this.bw=Math.max(1,a)}},autoScrollInterval:{get:function(){return this.vp},set:function(a){var y=this.vp;y!==a&&(this.vp=a,this.g("autoScrollInterval",y,a))}},autoScrollRegion:{get:function(){return this.xp},set:function(a){typeof a=="number"&&(a=new Yn(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),qe.Object.defineProperties(Ye,{licenseKey:{get:function(){return Dp.jc()},set:function(a){Dp.add(a.replace(/\s/g,""))}},version:{get:function(){return wc}}}),Ye.prototype.makeImageData=Ye.prototype.Jx,Ye.prototype.makeImage=Ye.prototype.Wz,Ye.prototype.cacheGroupExternalLinks=Ye.prototype.Fu,Ye.prototype.addRenderer=Ye.prototype.bs,Ye.prototype.makeSVG=Ye.prototype.av,Ye.prototype.makeSvg=Ye.prototype.Cs,Ye.prototype.stopAutoScroll=Ye.prototype.ug,Ye.prototype.doAutoScroll=Ye.prototype.gs,Ye.prototype.isUnoccupied=Ye.prototype.Yj,Ye.prototype.raiseDiagramEvent=Ye.prototype.R,Ye.prototype.removeDiagramListener=Ye.prototype.am,Ye.prototype.addDiagramListener=Ye.prototype.Bj,Ye.prototype.findTreeRoots=Ye.prototype.yz,Ye.prototype.layoutDiagram=Ye.prototype.Uz,Ye.prototype.findTopLevelGroups=Ye.prototype.qz,Ye.prototype.findTopLevelNodesAndLinks=Ye.prototype.rz,Ye.prototype.ensureBounds=Ye.prototype.Va,Ye.prototype.findLinksByExample=Ye.prototype.ls,Ye.prototype.findNodesByExample=Ye.prototype.ms,Ye.prototype.findLinkForData=Ye.prototype.Kc,Ye.prototype.findNodeForData=Ye.prototype.ii,Ye.prototype.findPartForData=Ye.prototype.Lc,Ye.prototype.findLinkForKey=Ye.prototype.findLinkForKey,Ye.prototype.findNodeForKey=Ye.prototype.Vb,Ye.prototype.findPartForKey=Ye.prototype.findPartForKey,Ye.prototype.rebuildParts=Ye.prototype.Wd,Ye.prototype.transformViewToDoc=Ye.prototype.Ps,Ye.prototype.transformRectDocToView=Ye.prototype.zA,Ye.prototype.transformDocToView=Ye.prototype.op,Ye.prototype.centerRect=Ye.prototype.es,Ye.prototype.scrollToRect=Ye.prototype.tv,Ye.prototype.scroll=Ye.prototype.scroll,Ye.prototype.highlightCollection=Ye.prototype.Jz,Ye.prototype.highlight=Ye.prototype.Iz,Ye.prototype.selectCollection=Ye.prototype.rA,Ye.prototype.select=Ye.prototype.select,Ye.prototype.updateAllRelationshipsFromData=Ye.prototype.rp,Ye.prototype.updateAllTargetBindings=Ye.prototype.updateAllTargetBindings,Ye.prototype.commit=Ye.prototype.commit,Ye.prototype.rollbackTransaction=Ye.prototype.Kf,Ye.prototype.commitTransaction=Ye.prototype.eb,Ye.prototype.startTransaction=Ye.prototype.Ea,Ye.prototype.raiseChanged=Ye.prototype.g,Ye.prototype.raiseChangedEvent=Ye.prototype.cb,Ye.prototype.removeChangedListener=Ye.prototype.ik,Ye.prototype.addChangedListener=Ye.prototype.Pe,Ye.prototype.removeModelChangedListener=Ye.prototype.mA,Ye.prototype.addModelChangedListener=Ye.prototype.Yw,Ye.prototype.findLayer=Ye.prototype.Qj,Ye.prototype.removeLayer=Ye.prototype.kA,Ye.prototype.addLayerAfter=Ye.prototype.Cy,Ye.prototype.addLayerBefore=Ye.prototype.Ww,Ye.prototype.addLayer=Ye.prototype.Al,Ye.prototype.moveParts=Ye.prototype.moveParts,Ye.prototype.copyParts=Ye.prototype.Kj,Ye.prototype.removeParts=Ye.prototype.Is,Ye.prototype.remove=Ye.prototype.remove,Ye.prototype.add=Ye.prototype.add,Ye.prototype.clearDelayedGeometries=Ye.prototype.bx,Ye.prototype.setProperties=Ye.prototype.nm,Ye.prototype.attach=Ye.prototype.Du,Ye.prototype.set=Ye.prototype.set,Ye.prototype.resetInputOptions=Ye.prototype.Sx,Ye.prototype.setInputOption=Ye.prototype.sA,Ye.prototype.getInputOption=Ye.prototype.Ql,Ye.prototype.resetRenderingHints=Ye.prototype.Tx,Ye.prototype.setRenderingHint=Ye.prototype.Xx,Ye.prototype.getRenderingHint=Ye.prototype.Gf,Ye.prototype.maybeUpdate=Ye.prototype.bd,Ye.prototype.requestUpdate=Ye.prototype.$b,Ye.prototype.delayInitialization=Ye.prototype.Xy,Ye.prototype.isUpdateRequested=Ye.prototype.Pz,Ye.prototype.invalidateDocumentBounds=Ye.prototype.Ya,Ye.prototype.findObjectsNear=Ye.prototype.og,Ye.prototype.findPartsNear=Ye.prototype.mz,Ye.prototype.findObjectsIn=Ye.prototype.Cf,Ye.prototype.findPartsIn=Ye.prototype.ux,Ye.prototype.findObjectsAt=Ye.prototype.ji,Ye.prototype.findPartsAt=Ye.prototype.lz,Ye.prototype.findObjectAt=Ye.prototype.ic,Ye.prototype.findPartAt=Ye.prototype.Ol,Ye.prototype.focusObject=Ye.prototype.zz,Ye.prototype.alignDocument=Ye.prototype.Jy,Ye.prototype.zoomToRect=Ye.prototype.BA,Ye.prototype.zoomToFit=Ye.prototype.zoomToFit,Ye.prototype.diagramScroll=Ye.prototype.kx,Ye.prototype.focus=Ye.prototype.focus;var hd=new Rn,om=null,gr=bn.document!==void 0,Sc=null,_h="",Wo=new sn(Ye,"None",0),$s=new sn(Ye,"Uniform",1),Oh=new sn(Ye,"UniformToFill",2),uf=new sn(Ye,"CycleAll",10),Tp=new sn(Ye,"CycleNotDirected",11),_p=new sn(Ye,"CycleNotDirectedFast",12),Op=new sn(Ye,"CycleNotUndirected",13),jp=new sn(Ye,"CycleDestinationTree",14),Np=new sn(Ye,"CycleSourceTree",15),Uu=new sn(Ye,"DocumentScroll",1),hf=new sn(Ye,"InfiniteScroll",2),Hu=new sn(Ye,"TreeParentCollapsed",21),Fr=new sn(Ye,"AllParentsCollapsed",22),cd=new sn(Ye,"AnyParentsCollapsed",23),Dp=new vn,wc="2.3.10",xc="image",cf=null,sm=!1;function Bo(){if(gr){var a=bn.document.createElement("canvas"),y=a.getContext("2d"),x=mn("7ca11abfd022028846");y[x]=mn("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",Bn.Dx+"4ae6247590da4bb21c324ba3a84e385776",Xn.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Ge.za],tt=1;5>tt;tt++)y[mn("7ca11abfd7330390")](mn(b[tt-1]),10,15*tt);for(y[x]=mn("39f046ebb36e4b"),x=1;5>x;x++)y[mn("7ca11abfd7330390")](mn(b[x-1]),10,15*x);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(Xn.prototype.Cd=Xn.prototype.Eu),cf=a}}Ye.className="Diagram",Ye.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=bn.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof Ye?y.H:null},Ye.inherit=function(a,y){function x(){}if(Object.getPrototypeOf(a).prototype)throw Error(`Used go.Diagram.inherit defining already defined class -`+a);x.prototype=y.prototype,a.prototype=new x,a.prototype.constructor=a},Ye.useDOM=function(a){gr=a?bn.document!==void 0:!1},Ye.isUsingDOM=function(){return gr},Ye.None=Wo,Ye.Uniform=$s,Ye.UniformToFill=Oh,Ye.CycleAll=uf,Ye.CycleNotDirected=Tp,Ye.CycleNotDirectedFast=_p,Ye.CycleNotUndirected=Op,Ye.CycleDestinationTree=jp,Ye.CycleSourceTree=Np,Ye.DocumentScroll=Uu,Ye.InfiniteScroll=hf,Ye.TreeParentCollapsed=Hu,Ye.AllParentsCollapsed=Fr,Ye.AnyParentsCollapsed=cd;function am(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function bc(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)t:{y="f";var x=bn[mn("76a715b2f73f148a")][mn("72ba13b5")]||"";if(a.Rc=!0,gr){var b=Ye[mn("76a115b6ed251eaf4692")];if(b)for(var tt=Dp.iterator;tt.next()&&(b=tt.value,b=mn(b).split(mn("39e9")),!(6>b.length));){var et=mn(b[1]).split(".");if(b[4]!=="7da71ca0")break;var nt=mn(Bn[mn("6cae19")]).split(".");if(et[0]>nt[0]||et[0]===nt[0]&&et[1]>=nt[1]){var ht=bn[mn("74a900bae4370f8b51")][mn("6fbb13a1c2311e8a57")].toLowerCase();if(nt=ht[mn("73a612b6fb191d")](mn("3aad1ab6e022098b4dc4")),et=mn(b[2]),-1nt&&et!==mn("7da71ca0ad381e90")&&(nt=y[mn("73a612b6fb191d")](mn("76a715b2ef3e149757"))),0>nt&&(nt=y[mn("73a612b6fb191d")](mn("76a715b2ef3e149757"))),0>nt&&(nt=y[mn("73a612b6fb191d")](mn("2bfa41fdb3784bca12"))),0>nt&&(nt=x[mn("73a612b6fb191d")](mn("7baa19a6f76c1988428554"))),a.Rc=!(0<=nt&&ntht),!a.Rc)))break;if(et[0]==="#"){nt=bn.document.createElement("div");for(var gt=b[0].replace(/[A-Za-z]/g,"");4>gt.length;)gt+="9";if(ht=gt,gt=gt.substr(gt.length-4),b="",b+=["gsh","gsf"][parseInt(gt.substr(0,1),10)%2],b+=["Header","Background","Display","Feedback"][parseInt(gt.substr(0,1),10)%4],nt[mn("79a417a0f0181a8946")]=b,bn.document[mn("78a712aa")]){bn.document[mn("78a712aa")][mn("7bb806b6ed32388c4a875b")](nt),gt=bn.getComputedStyle(nt).getPropertyValue(mn("78a704b7e62456904c9b12701b6532a8"));var bt=bn.getComputedStyle(nt).getPropertyValue(mn("75b817b0ea2202"));if(bn.document[mn("78a712aa")][mn("68ad1bbcf533388c4a875b")](nt),gt){if(nt=bn[mn("77a902b0eb1b1e804a8a")],bt==="0."+parseInt(ht,10)%100||gt.indexOf(parseInt(et[1]+et[2],16))!==-1&>.indexOf(parseInt(et[3]+et[4],16))!==-1){a.Rc=!1;break}else if(nt&&nt(mn("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(b="."+b,et=0;etb.updateDelay?b.N():b.o||(b.o=!0,setTimeout(function(){return b.redraw()},b.updateDelay))},x.Of=function(){b.observed!==null&&ce(b)},x.autoScale=$s,x.vb=!1,y&&Object.assign(x,y),x}en(Dt,Ye),Dt.prototype.computePixelRatio=function(){return 1},Dt.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var a=this.ta,y=this.ib;if(a!==null&&y!==null){if(mc(this),this.ql===null){var x=new _a(null);x.width=a.width,x.height=a.height,this.ql=x}try{this.ta=this.ql,this.ib=this.ta.context,this.ib.Vc(!0),this.ib.setTransform(1,0,0,1,0,0),this.ib.clearRect(0,0,this.ta.width,this.ta.height),qt(this)}finally{this.ta=a,this.ib=y}}}Ye.prototype.redraw.call(this)},Dt.prototype.gc=function(){if(this.Ka===null&&We("No div specified"),this.ta===null&&We("No canvas specified"),!(this.ta instanceof Pl)&&(Iv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){mc(this);var y=this.ta;a=this.ib,a.Vc(!0),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,y.width,y.height),1>this.updateDelay?qt(this):this.ql!==null&&(a.drawImage(this.ql.Oa,0,0),y=this.Ab,y.reset(),this.scale!==1&&y.scale(this.scale),this.position.x===0&&this.position.y===0||y.translate(-this.position.x,-this.position.y),a.scale(this.Mb,this.Mb),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.yc()),y=this.Wa.s;for(var x=y.length,b=0;ba&&(a=0),this.ia!==a&&(this.ia=a)}}}),Dt.className="Overview";function Ce(){sr.call(this),this.j=null}en(Ce,sr),Ce.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||!a.allowMove||!a.allowSelect)return!1;var y=a.observed;if(y===null)return!1;var x=a.lastInput;return!x.left||a.currentTool!==this&&(!this.isBeyondDragSize()||x.isTouchEvent&&x.timestamp-a.firstInput.timestampy.maxScale||(y.scale=a))},be.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==Wo?!1:(a=y.scale*a,ay.maxScale?!1:y.allowZoom)},be.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===Wo&&(a=y.scale*a,ay.maxScale||(y.scale=a))},be.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==Wo?!1:(a=y.scale*a,ay.maxScale?!1:y.allowZoom)},be.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;ay.maxScale||(y.scale=a)},be.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return ay.maxScale?!1:y.allowZoom},be.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,b=a.scale;Dl(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&b===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=Jo):(this.Jt=b,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),Zf(y)},be.prototype.canZoomToFit=function(){return this.diagram.allowZoom},be.prototype.scrollToPart=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.Va(),a===null){try{this.cg!==null&&(this.cg.next()?a=this.cg.value:this.cg=null)}catch(gt){this.cg=null}a===null&&(0a&&(a+=360)),a},ee.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},ee.qs=function(a,y){return y===void 0&&(y=new Ee),y.assign(a),this.oe.Cd(y),y},ee.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},ee.Sj=function(a,y,x,b,tt){var et=this.transform,nt=1/(et.m11*et.m22-et.m12*et.m21),ht=et.m22*nt,gt=-et.m12*nt,bt=-et.m21*nt,Pt=et.m11*nt,Nt=nt*(et.m21*et.dy-et.m22*et.dx),zt=nt*(et.m12*et.dx-et.m11*et.dy);return this.areaBackground!==null?(et=this.actualBounds,Ge.Ff(et.left,et.top,et.right,et.bottom,a,y,x,b,tt)):(nt=a*ht+y*bt+Nt,a=a*gt+y*Pt+zt,y=x*ht+b*bt+Nt,x=x*gt+b*Pt+zt,tt.h(0,0),b=this.naturalBounds,x=Ge.Ff(0,0,b.width,b.height,nt,a,y,x,tt),tt.transform(et),x)},ze.prototype.measure=function(a,y,x,b){if(ea(this)!==!1){var tt=this.Kg,et=tt.right+tt.left;tt=tt.top+tt.bottom,a=Math.max(a-et,0),y=Math.max(y-tt,0),x=Math.max((x||0)-et,0),b=Math.max((b||0)-tt,0),et=this.angle,tt=this.desiredSize;var nt=this.kq();et===90||et===270?(a=isFinite(tt.height)?tt.height+nt:a,y=isFinite(tt.width)?tt.width+nt:y):(a=isFinite(tt.width)?tt.width+nt:a,y=isFinite(tt.height)?tt.height+nt:y),tt=x||0,nt=b||0;var ht=this instanceof un;switch(ws(this,!0)){case an:nt=tt=0,ht&&(y=a=1/0);break;case ln:isFinite(a)&&a>x&&(tt=a),isFinite(y)&&y>b&&(nt=y);break;case Tn:isFinite(a)&&a>x&&(tt=a),nt=0,ht&&(y=1/0);break;case In:isFinite(y)&&y>b&&(nt=y),tt=0,ht&&(a=1/0)}ht=this.maxSize;var gt=this.minSize;tt>ht.width&>.widthht.height&>.heighta.height||this.Cb>a.width))&&(x=!0)),this.l=x?this.l|256:this.l&-257,this.Ib.w()||We("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(et,this.Ib),Rl(this,!1),$e.free(et)},ee=ze.prototype,ee.eh=function(){};function Vo(a,y,x,b,tt){if(a.Ib.h(y,x,b,tt),!a.desiredSize.w()){var et=a.uc;x=a.Kg,y=x.right+x.left;var nt=x.top+x.bottom;switch(x=et.width+y,et=et.height+nt,b+=y,tt+=nt,y=ws(a,!0),x===b&&et===tt&&(y=an),y){case an:(x>b||et>tt)&&(Br(a,!0),a.measure(x>b?b:x,et>tt?tt:et,0,0));break;case ln:Br(a,!0),a.measure(b,tt,0,0);break;case Tn:Br(a,!0),a.measure(b,et,0,0);break;case In:Br(a,!0),a.measure(x,tt,0,0)}}}ee.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||Rv(x,!0),this.N(),Cu(a,y)||(x.oh(),this.Pn(x)))},ee.Pn=function(a){this.portId!==null&&(Rv(a,!0),a instanceof wn&&W1(a,this))},ee.gc=function(a,y){if(!da(this,a,y)&&this.visible){var x=this.opacity;if(x!==0){var b=1;x!==1&&(b=a.globalAlpha,a.globalAlpha=b*x);var tt="";this.filter!==""&&(tt=a.filter,a.filter=this.filter);var et=this instanceof un&&Yu(this),nt=this.Ib;if(et){var ht=this.Ib,gt=this.dc,bt=this.areaBackground,Pt=this.Ma;bt===null&&Pt===null||a.yc(),bt!==null&&(vr(this,a,bt,!0,!0,gt,ht),bt instanceof bi&&bt.type===ma?(a.beginPath(),a.rect(ht.x,ht.y,ht.width,ht.height),a.ng(bt)):a.fillRect(ht.x,ht.y,ht.width,ht.height)),Pt!==null&&(vr(this,a,Pt,!0,!1,gt,ht),Pt instanceof bi&&Pt.type===ma?(a.beginPath(),a.rect(ht.x,ht.y,ht.width,ht.height),a.ng(Pt)):a.fillRect(ht.x,ht.y,ht.width,ht.height)),this.hh(a,y)}if(!et&&(et||nt.width!==0&&nt.height!==0&&!isNaN(nt.x)&&!isNaN(nt.y))){et=this.transform,ht=this.panel,this.l&4096&&So(this),bt=this.part,gt=!1;var Nt=0;bt&&y.Gf("drawShadows")&&(gt=bt.isShadowed)&&(Pt=bt.shadowOffset,Nt=Math.max(Pt.y,Pt.x)*y.scale*y.Mb),Pt=this.Dd();var zt;if(!(zt=y.$i||!Pt)){var Vt=this.naturalBounds;zt=this.wh;var Zt=zt.m11,oe=zt.m21,Pe=zt.dx,de=zt.m12,Le=zt.m22,Oe=zt.dy,De,Re=De=0;zt=De*Zt+Re*oe+Pe;var Ve=De*de+Re*Le+Oe;De=Vt.width+Nt,Re=0;var Sn=De*Zt+Re*oe+Pe;De=De*de+Re*Le+Oe,Re=Math.min(zt,Sn);var Mn=Math.min(Ve,De),Pn=Math.max(zt+0,Sn)-Re,hn=Math.max(Ve+0,De)-Mn;zt=Re,Ve=Mn,De=Vt.width+Nt,Re=Vt.height+Nt,Sn=De*Zt+Re*oe+Pe,De=De*de+Re*Le+Oe,Re=Math.min(zt,Sn),Mn=Math.min(Ve,De),Pn=Math.max(zt+Pn,Sn)-Re,hn=Math.max(Ve+hn,De)-Mn,zt=Re,Ve=Mn,De=0,Re=Vt.height+Nt,Sn=De*Zt+Re*oe+Pe,De=De*de+Re*Le+Oe,Re=Math.min(zt,Sn),Mn=Math.min(Ve,De),Pn=Math.max(zt+Pn,Sn)-Re,hn=Math.max(Ve+hn,De)-Mn,zt=Re,Ve=Mn,Nt=y.viewportBounds,Vt=Nt.x,Zt=Nt.y,zt=!(zt>Nt.width+Vt||Vt>Pn+zt||Ve>Nt.height+Zt||Zt>hn+Ve)}if(zt){if(zt=(this.l&256)!==0,a.clipInsteadOfFill&&(zt=!1),this instanceof Ni&&(a.font=this.font),zt){if(Ve=ht.se()?ht.naturalBounds:ht.actualBounds,Pn=Math.max(nt.x,Ve.x),hn=Math.max(nt.y,Ve.y),Nt=Math.min(nt.right,Ve.right)-Pn,Vt=Math.min(nt.bottom,Ve.bottom)-hn,Zt=this.tb,Zt!==null&&(Pn=Zt.x,hn=Zt.y,Nt=Zt.width,Vt=Zt.height),Pn>nt.width+nt.x||nt.x>Ve.width+Ve.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=tt);return}a.save(),a.beginPath(),a.rect(Pn,hn,Nt,Vt),a.clip()}if(Pt){if(!bt.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=tt);return}gt&&(Ve=bt.shadowOffset,a.Ev(Ve.x*y.scale*this.scale*y.Mb,Ve.y*y.scale*this.scale*y.Mb,bt.shadowBlur),hu(a),a.shadowColor=bt.shadowColor)}gt&&this.shadowVisible===!0?hu(a):gt&&this.shadowVisible===!1&&zl(a),bt=this.naturalBounds,this.areaBackground!==null&&(a.yc(),ta(this,a,bt,nt)),a.transform(et.m11,et.m12,et.m21,et.m22,et.dx,et.dy),gt&&fo(this,ht)&&this.shadowVisible===null&&zl(a),this.Ma!==null&&(a.yc(),Ls(this,a,bt,nt)),gt&&(this.Ma!==null||this.areaBackground!==null||fo(this,ht))?(Wa(this,!0),this.shadowVisible===null&&zl(a)):Wa(this,!1),this.hh(a,y),gt&&this.l&512&&hu(a),Pt&>&&zl(a),zt&&(a.restore(),a.Vc(this instanceof un)),et.ws()||(y=1/(et.m11*et.m22-et.m12*et.m21),a.transform(et.m22*y,-et.m12*y,-et.m21*y,et.m11*y,y*(et.m21*et.dy-et.m22*et.dx),y*(et.m12*et.dx-et.m11*et.dy)))}}x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=tt)}}};function fo(a,y){return y===null?!1:(Yu(y)&&(y=y.panel),(y.l&512)!==0||(y.type===un.Auto||y.type===un.Spot)&&y.Pb()!==a)}ee.Dv=function(){};function ta(a,y,x,b){vr(a,y,a.areaBackground,!0,!0,x,b),a.areaBackground instanceof bi&&a.areaBackground.type===ma?(y.beginPath(),y.rect(b.x,b.y,b.width,b.height),y.ng(a.areaBackground)):y.fillRect(b.x,b.y,b.width,b.height)}function Ls(a,y,x,b){var tt=a.kq(),et=x.x,nt=x.y,ht=x.width+tt,gt=x.height+tt;vr(a,y,a.Ma,!0,!1,x,b),a.Ma instanceof bi&&a.Ma.type===ma?(y.beginPath(),y.rect(et-tt/2,nt-tt/2,ht,gt),y.ng(a.Ma)):y.fillRect(et-tt/2,nt-tt/2,ht,gt)}function Ro(a,y,x){for(var b=y.O.s,tt=b.length,et=-1,nt=0;nttt)&&We("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+tt),a.isRow=!0,a.index=tt):y.column!==void 0&&(tt=y.column,(tt==null||tt===1/0||isNaN(tt)||0>tt)&&We("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+tt),a.isRow=!1,a.index=tt),tt=new si;for(x in y)x!=="row"&&x!=="column"&&(tt[x]=y[x]);gc(a,tt)}else gc(a,y);else We('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function Wu(a,y){fd.add(a,y)}function lm(a,y,x){x===void 0&&(x=null);var b=a[1];if(typeof x=="function"?x(b):typeof b=="string")return a.splice(1,1),b;if(y===void 0)throw Error("no "+(typeof x=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}qe.Object.defineProperties(ze.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new pf),this.A.zp=a)}},localBindings:{get:function(){return this.A!==null?this.A.te:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new pf),this.A.te=a)}},srcBindings:{get:function(){return this.A!==null?this.A.wm:null},set:function(a){this.srcBindings!==a&&(this.A===null&&(this.A=new pf),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(Vn(this),this.A.Ci=a,this.Uc=!0,this.N(),this.g("shadowVisible",y,a))}},enabledChanged:{get:function(){return this.A!==null?this.A.Hb:null},set:function(a){var y=this.enabledChanged;y!==a&&(Vn(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:us},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new jh),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===us&&(this.angle=0))}},segmentIndex:{get:function(){return this.Ua!==null?this.Ua.u:-1/0},set:function(a){a=Math.round(a);var y=this.segmentIndex;y!==a&&(this.Ua===null&&(this.Ua=new jh),this.Ua.u=a,this.v(),this.g("segmentIndex",y,a))}},segmentFraction:{get:function(){return this.Ua!==null?this.Ua.o:0},set:function(a){isNaN(a)||0>a?a=0:1a||1=a&&We("GraphObject.scale for "+this+" must be greater than zero, not: "+a),this.Ca=a,this.v(),this.g("scale",y,a))}},angle:{get:function(){return this.Kb},set:function(a){var y=this.Kb;y!==a&&(a%=360,0>a&&(a+=360),y!==a&&(this.Kb=a,Xy(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,b=this.jd,tt=b.width,et=b.height;(tt===y||isNaN(tt)&&isNaN(y))&&(et===x||isNaN(et)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof Wn&&this.qc(),this.g("desiredSize",b,a),Co(this)&&(a=this.part,a!==null&&(Hi(this,a,"width"),Hi(this,a,"height"))))}},width:{get:function(){return this.jd.width},set:function(a){var y=this.jd.width;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new xn(a,this.jd.height).freeze(),this.v(),this instanceof Wn&&this.qc(),this.g("desiredSize",y,a),Co(this)&&(a=this.part,a!==null&&Hi(this,a,"width")))}},height:{get:function(){return this.jd.height},set:function(a){var y=this.jd.height;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new xn(this.jd.width,a).freeze(),this.v(),this instanceof Wn&&this.qc(),this.g("desiredSize",y,a),Co(this)&&(a=this.part,a!==null&&Hi(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:ai},set:function(a){var y=this.minSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=0),isNaN(a.height)&&(a.height=0),a.freeze(),Vn(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:mo},set:function(a){var y=this.maxSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=1/0),isNaN(a.height)&&(a.height=1/0),a.freeze(),Vn(this),this.A.o=a,this.v(),this.g("maxSize",y,a))}},measuredBounds:{get:function(){return this.uc}},naturalBounds:{get:function(){return this.dc}},margin:{get:function(){return this.Kg},set:function(a){typeof a=="number"&&(a=new Yn(a));var y=this.Kg;y.D(a)||(this.Kg=a=a.J(),this.v(),this.g("margin",y,a))}},transform:{get:function(){return this.l&2048&&So(this),this.Ab}},oe:{get:function(){return this.l&4096&&So(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(Vn(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:an},set:function(a){this.reshapingBehavior!==a&&(Vn(this),this.A.Pf=a)}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(a.Mc()&&!a.Xb()&&We("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),os(this),this.g("alignment",y,a))}},column:{get:function(){return this.Ag},set:function(a){a=Math.round(a);var y=this.Ag;y!==a&&(0>a&&ti(a,">= 0",ze,"column"),this.Ag=a,this.v(),this.g("column",y,a),this.svg!==null&&this.svg.remove())}},columnSpan:{get:function(){return this.A!==null?this.A.ob:1},set:function(a){a=Math.round(a);var y=this.columnSpan;y!==a&&(1>a&&ti(a,">= 1",ze,"columnSpan"),Vn(this),this.A.ob=a,this.v(),this.g("columnSpan",y,a))}},row:{get:function(){return this.io},set:function(a){a=Math.round(a);var y=this.io;y!==a&&(0>a&&ti(a,">= 0",ze,"row"),this.io=a,this.v(),this.g("row",y,a),this.svg!==null&&this.svg.remove())}},rowSpan:{get:function(){return this.A!==null?this.A.Bi:1},set:function(a){a=Math.round(a);var y=this.rowSpan;y!==a&&(1>a&&ti(a,">= 1",ze,"rowSpan"),Vn(this),this.A.Bi=a,this.v(),this.g("rowSpan",y,a))}},spanAllocation:{get:function(){return this.A!==null?this.A.Di:null},set:function(a){var y=this.spanAllocation;y!==a&&(Vn(this),this.A.Di=a,this.v(),this.g("spanAllocation",y,a))}},alignmentFocus:{get:function(){return this.sk},set:function(a){var y=this.sk;y.D(a)||(this.sk=a=a.J(),this.v(),this.g("alignmentFocus",y,a))}},portId:{get:function(){return this.Yn},set:function(a){var y=this.Yn;if(y!==a){var x=this.part;x===null||x instanceof wn||We("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Hv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,K1(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:$r},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Pc(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&ti(a,">= 0",ze,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Pc(this))}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:0},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.g("toShortLength",y,a),Pc(this))}},toLinkable:{get:function(){return this.ba!==null?this.ba.Tr:null},set:function(a){var y=this.toLinkable;y!==a&&(this.Xc(),this.ba.Tr=a,this.g("toLinkable",y,a))}},toMaxLinks:{get:function(){return this.ba!==null?this.ba.Ur:1/0},set:function(a){var y=this.toMaxLinks;y!==a&&(0>a&&ti(a,">= 0",ze,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:$r},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Pc(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&ti(a,">= 0",ze,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Pc(this))}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:0},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.g("fromShortLength",y,a),Pc(this))}},fromLinkable:{get:function(){return this.ba!==null?this.ba.hq:null},set:function(a){var y=this.fromLinkable;y!==a&&(this.Xc(),this.ba.hq=a,this.g("fromLinkable",y,a))}},fromMaxLinks:{get:function(){return this.ba!==null?this.ba.iq:1/0},set:function(a){var y=this.fromMaxLinks;y!==a&&(0>a&&ti(a,">= 0",ze,"fromMaxLinks"),this.Xc(),this.ba.iq=a,this.g("fromMaxLinks",y,a))}},cursor:{get:function(){return this.A!==null?this.A.j:""},set:function(a){var y=this.cursor;y!==a&&(Vn(this),this.A.j=a,this.g("cursor",y,a))}},click:{get:function(){return this.A!==null?this.A.zh:null},set:function(a){var y=this.click;y!==a&&(Vn(this),this.A.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.A!==null?this.A.Fh:null},set:function(a){var y=this.doubleClick;y!==a&&(Vn(this),this.A.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.A!==null?this.A.Bh:null},set:function(a){var y=this.contextClick;y!==a&&(Vn(this),this.A.Bh=a,this.g("contextClick",y,a))}},mouseEnter:{get:function(){return this.A!==null?this.A.Mh:null},set:function(a){var y=this.mouseEnter;y!==a&&(Vn(this),this.A.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.A!==null?this.A.Ph:null},set:function(a){var y=this.mouseLeave;y!==a&&(Vn(this),this.A.Ph=a,this.g("mouseLeave",y,a))}},mouseOver:{get:function(){return this.A!==null?this.A.Qh:null},set:function(a){var y=this.mouseOver;y!==a&&(Vn(this),this.A.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.A!==null?this.A.Oh:null},set:function(a){var y=this.mouseHover;y!==a&&(Vn(this),this.A.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.A!==null?this.A.Nh:null},set:function(a){var y=this.mouseHold;y!==a&&(Vn(this),this.A.Nh=a,this.g("mouseHold",y,a))}},mouseDragEnter:{get:function(){return this.A!==null?this.A.Of:null},set:function(a){var y=this.mouseDragEnter;y!==a&&(Vn(this),this.A.Of=a,this.g("mouseDragEnter",y,a))}},mouseDragLeave:{get:function(){return this.A!==null?this.A.Xd:null},set:function(a){var y=this.mouseDragLeave;y!==a&&(Vn(this),this.A.Xd=a,this.g("mouseDragLeave",y,a))}},mouseDrop:{get:function(){return this.A!==null?this.A.Lh:null},set:function(a){var y=this.mouseDrop;y!==a&&(Vn(this),this.A.Lh=a,this.g("mouseDrop",y,a))}},actionDown:{get:function(){return this.A!==null?this.A.V:null},set:function(a){var y=this.actionDown;y!==a&&(Vn(this),this.A.V=a,this.g("actionDown",y,a))}},actionMove:{get:function(){return this.A!==null?this.A.ia:null},set:function(a){var y=this.actionMove;y!==a&&(Vn(this),this.A.ia=a,this.g("actionMove",y,a))}},actionUp:{get:function(){return this.A!==null?this.A.Ha:null},set:function(a){var y=this.actionUp;y!==a&&(Vn(this),this.A.Ha=a,this.g("actionUp",y,a))}},actionCancel:{get:function(){return this.A!==null?this.A.F:null},set:function(a){var y=this.actionCancel;y!==a&&(Vn(this),this.A.F=a,this.g("actionCancel",y,a))}},toolTip:{get:function(){return this.A!==null?this.A.$h:null},set:function(a){var y=this.toolTip;y!==a&&(Vn(this),this.A.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.A!==null?this.A.Ch:null},set:function(a){var y=this.contextMenu;y!==a&&(Vn(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),ze.prototype.trigger=ze.prototype.Jv,ze.prototype.findBindingPanel=ze.prototype.ih,ze.prototype.findTemplateBinder=ze.prototype.pz,ze.prototype.setProperties=ze.prototype.nm,ze.prototype.apply=ze.prototype.apply,ze.prototype.attach=ze.prototype.Du,ze.prototype.set=ze.prototype.set,ze.prototype.isEnabledObject=ze.prototype.If,ze.prototype.isVisibleObject=ze.prototype.Ed,ze.prototype.isContainedBy=ze.prototype.rg,ze.prototype.getNearestIntersectionPoint=ze.prototype.rs,ze.prototype.getLocalPoint=ze.prototype.qs,ze.prototype.getDocumentScale=ze.prototype.Df,ze.prototype.getDocumentAngle=ze.prototype.li,ze.prototype.getDocumentBounds=ze.prototype.mi,ze.prototype.getDocumentPoint=ze.prototype.ga,ze.prototype.intersectsRect=ze.prototype.Yc,ze.prototype.containedInRect=ze.prototype.fh,ze.prototype.containsRect=ze.prototype.Re,ze.prototype.containsPoint=ze.prototype.ca,ze.prototype.raiseChanged=ze.prototype.g,ze.prototype.raiseChangedEvent=ze.prototype.cb,ze.prototype.addCopyProperty=ze.prototype.Vw;var fd=null;ze.className="GraphObject",fd=new Rn,Wu("Button",function(){function a(x,b){return x.diagram.ic(x.documentPoint,function(tt){for(;tt.panel!==null&&!tt.isActionable;)tt=tt.panel;return tt},function(tt){return tt===b})!==null}var y=ga(un,un.Auto,{isActionable:!0,enabledChanged:function(x,b){if(x instanceof un){var tt=x.fb("ButtonBorder");tt!==null&&(tt.fill=b?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},ga(Wn,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new jn(0,0,2.76142374915397,2.761423749153969),spot2:new jn(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,b){if(b.If()&&b instanceof un&&(x=b.fb("ButtonBorder"),x instanceof Wn)){var tt=b._buttonFillOver;b._buttonFillNormal=x.fill,x.fill=tt,tt=b._buttonStrokeOver,b._buttonStrokeNormal=x.stroke,x.stroke=tt}},y.mouseLeave=function(x,b){b.If()&&b instanceof un&&(x=b.fb("ButtonBorder"),x instanceof Wn&&(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal))},y.actionDown=function(x,b){if(b.If()&&b instanceof un&&b._buttonFillPressed!==null&&x.button===0){var tt=b.fb("ButtonBorder");if(tt instanceof Wn){x=x.diagram;var et=x.skipsUndoManager;x.skipsUndoManager=!0;var nt=b._buttonFillPressed;b._buttonFillOver=tt.fill,tt.fill=nt,nt=b._buttonStrokePressed,b._buttonStrokeOver=tt.stroke,tt.stroke=nt,x.skipsUndoManager=et}}},y.actionUp=function(x,b){if(b.If()&&b instanceof un&&b._buttonFillPressed!==null&&x.button===0){var tt=b.fb("ButtonBorder");if(tt instanceof Wn){var et=x.diagram,nt=et.skipsUndoManager;et.skipsUndoManager=!0,a(x,b)?(tt.fill=b._buttonFillOver,tt.stroke=b._buttonStrokeOver):(tt.fill=b._buttonFillNormal,tt.stroke=b._buttonStrokeNormal),et.skipsUndoManager=nt}}},y.actionCancel=function(x,b){if(b.If()&&b instanceof un&&b._buttonFillPressed!==null){var tt=b.fb("ButtonBorder");if(tt instanceof Wn){var et=x.diagram,nt=et.skipsUndoManager;et.skipsUndoManager=!0,a(x,b)?(tt.fill=b._buttonFillOver,tt.stroke=b._buttonStrokeOver):(tt.fill=b._buttonFillNormal,tt.stroke=b._buttonStrokeNormal),et.skipsUndoManager=nt}}},y.actionMove=function(x,b){if(b.If()&&b instanceof un&&b._buttonFillPressed!==null){var tt=x.diagram;if(tt.firstInput.button===0&&(tt.currentTool.standardMouseOver(),a(x,b)&&(x=b.fb("ButtonBorder"),x instanceof Wn))){var et=tt.skipsUndoManager;tt.skipsUndoManager=!0;var nt=b._buttonFillPressed;x.fill!==nt&&(x.fill=nt),nt=b._buttonStrokePressed,x.stroke!==nt&&(x.stroke=nt),tt.skipsUndoManager=et}}},y}),Wu("TreeExpanderButton",function(){var a=ga("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},ga(Wn,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Qr},new Lr("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new Lr("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof di&&(x=x.adornedPart),x instanceof wn){var b=x.diagram;if(b!==null){if(b=b.commandHandler,x.isTreeExpanded){if(!b.canCollapseTree(x))return}else if(!b.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?b.collapseTree(x):b.expandTree(x)}}},a}),Wu("SubGraphExpanderButton",function(){var a=ga("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},ga(Wn,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Qr},new Lr("figure","isSubGraphExpanded",function(y,x){return x=x.panel,y?x._subGraphExpandedFigure:x._subGraphCollapsedFigure}).cp()));return a.click=function(y,x){if(x=x.part,x instanceof di&&(x=x.adornedPart),x instanceof Un){var b=x.diagram;if(b!==null){if(b=b.commandHandler,x.isSubGraphExpanded){if(!b.canCollapseSubGraph(x))return}else if(!b.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?b.collapseSubGraph(x):b.expandSubGraph(x)}}},a}),Wu("ToolTip",function(){return ga(di,un.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Ee(0,3),shadowBlur:5},ga(Wn,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new jn(0,0,4,6),spot2:new jn(1,1,-4,-4)}))}),Wu("ContextMenu",function(){return ga(di,un.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Ee(0,3),shadowBlur:5},new Lr("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),Wu("ContextMenuButton",function(){var a=ga("Button");a.stretch=Tn;var y=a.fb("ButtonBorder");return y instanceof Wn&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new jn(0,0,2,3),y.spot2=new jn(1,1,-2,-2)),a}),Wu("PanelExpanderButton",function(a){var y=lm(a,"COLLAPSIBLE"),x=ga("Button",{_buttonExpandedFigure:"M0 0 M0 6 L4 2 8 6 M8 8",_buttonCollapsedFigure:"M0 0 M0 2 L4 6 8 2 M8 8",_buttonFillNormal:"rgba(0, 0, 0, 0)",_buttonStrokeNormal:null,_buttonFillOver:"rgba(0, 0, 0, .2)",_buttonStrokeOver:null,_buttonFillPressed:"rgba(0, 0, 0, .4)",_buttonStrokePressed:null},ga(Wn,{name:"ButtonIcon",strokeWidth:2},new Lr("geometryString","visible",function(b){return b?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof Wn&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(b,tt){var et=tt.diagram;if(et!==null&&!et.isReadOnly){var nt=tt.ih();nt===null&&(nt=tt.part),nt!==null&&(tt=nt.fb(y),tt!==null&&(b.handled=!0,et.Ea("Collapse/Expand Panel"),tt.visible=!tt.visible,et.eb("Collapse/Expand Panel")))}},x}),Wu("CheckBoxButton",function(a){var y=lm(a);return a=ga("Button",{desiredSize:new xn(14,14)},ga(Wn,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:ln,geometryStretch:kn,visible:!1},y!==""?new Lr("visible",y).Kx():[])),a.click=function(x,b){if(b instanceof un){var tt=x.diagram;if(!(tt===null||tt.isReadOnly||y!==""&&tt.model.isReadOnly)){x.handled=!0;var et=b.fb("ButtonIcon");tt.Ea("checkbox"),et.visible=!et.visible,typeof b._doClick=="function"&&b._doClick(x,b),tt.eb("checkbox")}}},a}),Wu("CheckBox",function(a){a=lm(a),a=ga("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new Yn(0,1,0,0)});var y=ga(un,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Yn(1),_buttonFillNormal:a._buttonFillNormal,_buttonStrokeNormal:a._buttonStrokeNormal,_buttonFillOver:a._buttonFillOver,_buttonStrokeOver:a._buttonStrokeOver,_buttonFillPressed:a._buttonFillPressed,_buttonStrokePressed:a._buttonStrokePressed,_buttonFillDisabled:a._buttonFillDisabled,mouseEnter:a.mouseEnter,mouseLeave:a.mouseLeave,actionDown:a.actionDown,actionUp:a.actionUp,actionCancel:a.actionCancel,actionMove:a.actionMove,click:a.click,_buttonClick:a.click});return a.mouseEnter=null,a.mouseLeave=null,a.actionDown=null,a.actionUp=null,a.actionCancel=null,a.actionMove=null,a.click=null,y}),ze.None=an=new sn(ze,"None",0),ze.Default=Hn=new sn(ze,"Default",0),ze.Vertical=In=new sn(ze,"Vertical",4),ze.Horizontal=Tn=new sn(ze,"Horizontal",5),ze.Fill=ln=new sn(ze,"Fill",3),ze.Uniform=kn=new sn(ze,"Uniform",1),ze.UniformToFill=ni=new sn(ze,"UniformToFill",2),ze.FlipVertical=Kn=new sn(ze,"FlipVertical",1),ze.FlipHorizontal=ui=new sn(ze,"FlipHorizontal",2),ze.FlipBoth=Ai=new sn(ze,"FlipBoth",3),ze.make=ga,ze.getBuilders=function(){var a=new Rn,y;for(y in fd)if(y!==y.toLowerCase()){var x=fd.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},ze.defineBuilder=Wu,ze.build=function(a,y,x){for(var b=[],tt=2;tta&&(a+=360),a!==0){if(this.translate(y,x),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var tt=this.ha[1]*a+this.ha[3]*b,et=this.ha[0]*-b+this.ha[2]*a,nt=this.ha[1]*-b+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*b,this.ha[1]=tt,this.ha[2]=et,this.ha[3]=nt,this.translate(-y,-x)}},Cc.className="STransform";function gf(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}gf.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},gf.className="SGradient";function Pl(a,y,x){this.ownerDocument=a=y===void 0?bn.document:y,this.cA="http://www.w3.org/2000/svg",a!==void 0&&(this.Oa=this.Ud("svg",{width:"1px",height:"1px",viewBox:"0 0 1 1"}),this.style.display="block",this.style.letterSpacing="normal",this.style.wordSpacing="normal",this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink")),this.hs=null,this.context=new Gs(this,x)}Pl.prototype.resize=function(a,y,x,b){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=b+"px",this.Oa.setAttributeNS(null,"width",x+"px"),this.Oa.setAttributeNS(null,"height",b+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+x+" "+b),this.context.ww.firstElementChild.setAttributeNS(null,"width",x+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",b+"px"),!0):!1},Pl.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),on(y))for(var b in y)a.setAttributeNS(b==="href"?"http://www.w3.org/1999/xlink":"",b,y[b]);return x!==void 0&&(a.textContent=x),a},Pl.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Pl.prototype.focus=function(){this.Oa.focus()},Pl.prototype.mx=function(){this.ownerDocument=null},qe.Object.defineProperties(Pl.prototype,{width:{get:function(){return this.Oa.width.baseVal.value},set:function(a){this.Oa.setAttribute("width",a+"px")}},height:{get:function(){return this.Oa.height.baseVal.value},set:function(a){this.Oa.setAttribute("height",a+"px")}},style:{get:function(){return this.Oa.style}}}),Pl.className="SVGSurface";function Gs(a,y){this.Gv=a,this.svg=a.Oa,this.stack=[],this.nh=[],this.fillStyle="#000000",this.font="10px sans-serif",this.globalAlpha=1,this.lineCap="butt",this.lineDashOffset=0,this.lineJoin="miter",this.lineWidth=1,this.miterLimit=10,this.shadowBlur=0,this.shadowColor="rgba(0, 0, 0, 0)",this.shadowOffsetY=this.shadowOffsetX=0,this.Il=!1,this.strokeStyle="#000000",this.textAlign="start",this.clipInsteadOfFill=!1,this.Vg=this.Br=this.Ar=0,this.yd=this.ad=null,this.path=[],this.Yl={},this.Ct=!1,this.Yg=null,this.uj=0,this.rb=new Cc,this.j=um(this),this.Nj=um(this,"gojs-diagram"),this.Hl=this.ti=null;var x=Zo++,b=this.Ud("clipPath",{id:"mainClip"+x});b.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=b,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(b),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function Zy(a,y,x,b,tt,et,nt){a.Nj===void 0?Fp(a,y,x,b,tt,et,nt):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+b+", "+tt+", "+et+", "+nt+")")}ee=Gs.prototype,ee.arc=function(a,y,x,b,tt,et,nt,ht){var gt=2*Math.PI,bt=gt-1e-6,Pt=x*Math.cos(b),Nt=x*Math.sin(b),zt=a+Pt,Vt=y+Nt,Zt=et?0:1;b=et?b-tt:tt-b,(1e-6b&&(b=b%gt+gt),b>bt?(this.path.push(["A",x,x,0,1,Zt,a-Pt,y-Nt]),this.path.push(["A",x,x,0,1,Zt,zt,Vt])):1e-6=Math.PI),Zt,a+x*Math.cos(tt),y+x*Math.sin(tt)])},ee.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},ee.Se=function(a){this.addPath(this.path,this.rb,a||0)},ee.bezierCurveTo=function(a,y,x,b,tt,et){this.path.push(["C",a,y,x,b,tt,et])},ee.clearRect=function(){},ee.clip=function(){this.Yl.clipPath=!0},ee.closePath=function(){this.path.push(["z"])},ee.createLinearGradient=function(a,y,x,b){var tt=new gf("linear");return tt.x1=a,tt.y1=y,tt.x2=x,tt.y2=b,tt},ee.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var x=this.eA;if(x[y])return"url(#"+x[y]+")";var b="PATTERN"+Zo++,tt={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:b,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(xc,tt)),this.svg.appendChild(a),x[y]=b,"url(#"+b+")"},ee.createRadialGradient=function(a,y,x,b,tt,et){var nt=new gf("radial");return nt.x1=a,nt.y1=y,nt.r1=x,nt.x2=b,nt.y2=tt,nt.r2=et,nt};function Qy(a,y,x,b,tt,et,nt,ht,gt){b=ht/b,tt=gt/tt,et===0&&nt===0||a.rb.translate(et,nt),b===1&&tt===1||a.rb.scale(b,tt),y===0&&x===0||a.rb.translate(-y,-x)}ee.drawImage=function(a,y,x,b,tt,et,nt,ht,gt){var bt="";a instanceof HTMLCanvasElement&&(bt=a.toDataURL()),a instanceof HTMLImageElement&&(bt=a.getAttribute("src"));var Pt=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,b===void 0&&(et=y,nt=x,ht=b=Pt,gt=tt=a),b=b||0,tt=tt||0,ht=ht||0,gt=gt||0,Qy(this,y,x,b,tt,et||0,nt||0,ht,gt),et={x:0,y:0,width:Pt||b,height:a||tt,href:bt},Ge.$(b,ht)&&Ge.$(tt,gt)?bt.toLowerCase().indexOf(".svg")===-1&&bt.toLowerCase().indexOf("data:image/svg")===-1&&(et.preserveAspectRatio="xMidYMid slice"):et.preserveAspectRatio="none",(y!==0||x!==0||b!==Pt||tt!==a)&&(b+=y,tt+=x,et["clip-path"]="path('M "+y+","+x+" L "+b+" "+x+" L "+b+" "+tt+" L "+y+" "+tt+" z')"),dd(this,xc,et,this.rb),this.addElement(xc,et)},ee.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),rv(this,this.Yl)},ee.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},ee.fillRect=function(a,y,x,b){a=[a,y,x,b],a={x:a[0],y:a[1],width:a[2],height:a[3]},dd(this,"fill",a,this.rb),this.addElement("rect",a)},ee.ox=function(a,y,x,b){a={x:a,y,width:x,height:b},dd(this,"fill",a,this.rb),rv(this,a),this.svg.prepend(this.Ud("rect",a))},ee.fillText=function(a,y,x){a=[a,y,x],y=this.textAlign,y==="left"?y="start":y==="right"?y="end":y==="center"&&(y="middle"),y={x:a[1],y:a[2],style:"font: "+this.font,"text-anchor":y},dd(this,"fill",y,this.rb),this.addElement("text",y,a[0])},ee.lineTo=function(a,y){this.path.push(["L",a,y])},ee.moveTo=function(a,y){this.path.push(["M",a,y])},ee.quadraticCurveTo=function(a,y,x,b){this.path.push(["Q",a,y,x,b])},ee.rect=function(a,y,x,b){this.path.push(["M",a,y],["L",a+x,y],["L",a+x,y+b],["L",a,y+b],["z"])},ee.restore=function(){this.rb=this.stack.pop(),this.path=this.stack.pop();var a=this.stack.pop();this.fillStyle=a.fillStyle,this.font=a.font,this.globalAlpha=a.globalAlpha,this.lineCap=a.lineCap,this.lineDashOffset=a.lineDashOffset,this.lineJoin=a.lineJoin,this.lineWidth=a.lineWidth,this.miterLimit=a.miterLimit,this.shadowBlur=a.shadowBlur,this.shadowColor=a.shadowColor,this.shadowOffsetX=a.shadowOffsetX,this.shadowOffsetY=a.shadowOffsetY,this.strokeStyle=a.strokeStyle,this.textAlign=a.textAlign,this.bk=a.bk},ee.save=function(){this.stack.push({fillStyle:this.fillStyle,font:this.font,globalAlpha:this.globalAlpha,lineCap:this.lineCap,lineDashOffset:this.lineDashOffset,lineJoin:this.lineJoin,lineWidth:this.lineWidth,miterLimit:this.miterLimit,shadowBlur:this.shadowBlur,shadowColor:this.shadowColor,shadowOffsetX:this.shadowOffsetX,shadowOffsetY:this.shadowOffsetY,strokeStyle:this.strokeStyle,textAlign:this.textAlign,bk:this.bk});for(var a=[],y=0;yPt.offset?1:-1}),tt=0;ttx?(this.scale(x/a,1),this.translate((a-x)/2,0)):x>a&&(this.scale(1,a/x),this.translate(0,(x-a)/2)),this.Hm?this.clip():this.fill(y),a>x?(this.translate(-(a-x)/2,0),this.scale(1/(x/a),1)):x>a&&(this.translate(0,-(x-a)/2),this.scale(1,1/(a/x)))}else this.Hm?this.clip():this.fill(y)},ee.jk=function(){this.Hm||this.stroke()},ee.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},ee.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},ee.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(vw),a.lineDashOffset=0)},ee.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},ee.Hs=function(){},qe.Object.defineProperties(Ec.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(a){this.ct!==a&&(this.ct=this.Z.fillStyle=a)}},font:{get:function(){return this.Z.font},set:function(a){this.dt!==a&&(this.dt=this.Z.font=a)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(a){this.Z.globalAlpha=a}},lineCap:{get:function(){return this.Z.lineCap},set:function(a){this.Z.lineCap=a}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(a){this.Z.lineDashOffset=a}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(a){this.Z.lineJoin=a}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(a){this.Z.lineWidth=a}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(a){this.Z.miterLimit=a}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(a){this.Z.shadowBlur=a}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(a){this.Z.shadowColor=a}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(a){this.Z.shadowOffsetX=a}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(a){this.Z.shadowOffsetY=a}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(a){this.et!==a&&(this.et=this.Z.strokeStyle=a)}},textAlign:{get:function(){return this.Z.textAlign},set:function(a){this.Z.textAlign=a}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(a){this.Z.imageSmoothingEnabled=a}},filter:{get:function(){return this.Z.filter},set:function(a){this.Z.filter=a===""?"none":a}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(a){this.Hm=a}}});var vw=Object.freeze([]);Ec.className="CanvasSurfaceContext";function Bp(){this.F=this.o=this.u=this.j=0}Bp.className="ColorNumbers";function bi(a,y){vd||(cv(),vd=!0),qi(this),this._isFrozen=!1,a===void 0?(this.na=Vu,this.xk="black"):typeof a=="string"?(this.na=Vu,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===fu?(this.Qd=Zs,this.Lk=Fs):this.Lk=a===ma?this.Qd=wi:this.Qd=$r,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}bi.prototype.copy=function(){var a=new bi;return a.na=this.na,a.xk=this.xk,a.Qd=this.Qd.J(),a.Lk=this.Lk.J(),a.Gr=this.Gr,a.Xp=this.Xp,this.we!==null&&(a.we=this.we.copy()),a.cr=this.cr,a},ee=bi.prototype,ee.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},ee.ka=function(){return Object.isFrozen(this)&&We("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},ee.qb=function(a){a.classType===bi&&(this.type=a)},ee.toString=function(){var a="Brush(";if(this.type===Vu)a+=this.color;else if(a=this.type===fu?a+"Linear ":this.type===ma?a+"Radial ":this.type===yd?a+"Pattern ":a+"(unknown) ",a+=this.start+" "+this.end,this.colorStops!==null)for(var y=this.colorStops.iterator;y.next();)a+=" "+y.key+":"+y.value;return a+")"},ee.addColorStop=function(a,y){return this._isFrozen&&Nn(this),(typeof a!="number"||!isFinite(a)||1a)&&ti(a,"0 <= loc <= 1",bi,"addColorStop:loc"),this.we===null&&(this.we=new Rn),this.we.add(a,y),this.na===Vu&&(this.type=fu),this.xe=null,this},ee.Vz=function(a,y){if(this._isFrozen&&Nn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Sd:y,this.type===Vu)cu(this.color),this.color=gd(a,y);else if((this.type===fu||this.type===ma)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)cu(x.value),this.addColorStop(x.key,gd(a,y));return this};function t1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Sd:x,cu(a),gd(y,x)}ee.Wy=function(a,y){if(this._isFrozen&&Nn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Sd:y,this.type===Vu)cu(this.color),this.color=gd(-a,y);else if((this.type===fu||this.type===ma)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)cu(x.value),this.addColorStop(x.key,gd(-a,y));return this};function e1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Sd:x,cu(a),gd(-y,x)}function sv(a,y,x){cu(a),a=Fi.j;var b=Fi.u,tt=Fi.o,et=Fi.F;return cu(y),x===void 0&&(x=.5),"rgba("+Math.round((Fi.j-a)*x+a)+", "+Math.round((Fi.u-b)*x+b)+", "+Math.round((Fi.o-tt)*x+tt)+", "+Math.round((Fi.F-et)*x+et)+")"}ee.Gx=function(){if(this.type===Vu)return pd(this.color);if((this.type===fu||this.type===ma)&&this.colorStops!==null){var a=this.colorStops;if(this.type===ma)return pd(a.first().value);if(a.get(.5)!==null)return pd(a.get(.5));if(a.count===2)return a=a.Fa(),pd(sv(a[0].value,a[1].value));for(var y=a.iterator,x=-1,b=-1,tt=1,et=1;y.next();){var nt=y.key,ht=Math.abs(.5-y.key);tt>et&&ht=tt&&htb&&(et=x,x=b,b=et,et=tt),tt=b-x,pd(sv(a.get(x),a.get(b),1-et/tt))}return!1};function pd(a){return a?a instanceof bi?a.Gx():(cu(a),128>(299*Fi.j+587*Fi.u+114*Fi.o)/1e3):!1}function gd(a,y){switch(y){case Sd:y=100*lv(Fi.j);var x=100*lv(Fi.u),b=100*lv(Fi.o);return as.j=.4124564*y+.3575761*x+.1804375*b,as.u=.2126729*y+.7151522*x+.072175*b,as.o=.0193339*y+.119192*x+.9503041*b,as.F=Fi.F,y=hv(as.j/md[0]),x=hv(as.u/md[1]),b=hv(as.o/md[2]),Gl.j=116*x-16,Gl.u=500*(y-x),Gl.o=200*(x-b),Gl.F=as.F,Gl.j=Math.min(100,Math.max(0,Gl.j+100*a)),a=(Gl.j+16)/116,y=a-Gl.o/200,as.j=md[0]*n1(Gl.u/500+a),as.u=md[1]*(Gl.j>cm*fv?Math.pow(a,3):Gl.j/cm),as.o=md[2]*n1(y),as.F=Gl.F,a=-.969266*as.j+1.8760108*as.u+.041556*as.o,y=.0556434*as.j+-.2040259*as.u+1.0572252*as.o,Fi.j=255*uv((3.2404542*as.j+-1.5371385*as.u+-.4985314*as.o)/100),Fi.u=255*uv(a/100),Fi.o=255*uv(y/100),Fi.F=as.F,Fi.j=Math.round(Fi.j),255Fi.j&&(Fi.j=0),Fi.u=Math.round(Fi.u),255Fi.u&&(Fi.u=0),Fi.o=Math.round(Fi.o),255Fi.o&&(Fi.o=0),"rgba("+Fi.j+", "+Fi.u+", "+Fi.o+", "+Fi.F+")";case i1:return av(),na.o=Math.min(100,Math.max(0,na.o+100*a)),"hsla("+na.j+", "+na.u+"%, "+na.o+"%, "+na.F+")";default:We("Unknown color space: "+y)}}function cu(a){vd||(cv(),vd=!0);var y=dv;if(y!==null){y.clearRect(0,0,1,1),y.fillStyle="#000000";var x=y.fillStyle;y.fillStyle=a,y.fillStyle!==x?(y.fillRect(0,0,1,1),a=y.getImageData(0,0,1,1).data,Fi.j=a[0],Fi.u=a[1],Fi.o=a[2],Fi.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,Fi.j=0,Fi.u=0,Fi.o=0,Fi.F=1)}}function av(){var a=Fi.j/255,y=Fi.u/255,x=Fi.o/255,b=Math.max(a,y,x),tt=Math.min(a,y,x),et=b-tt;if(tt=(b+tt)/2,et===0)var nt=a=0;else{switch(b){case a:nt=(y-x)/et%6;break;case y:nt=(x-a)/et+2;break;case x:nt=(a-y)/et+4}nt*=60,0>nt&&(nt+=360),a=et/(1-Math.abs(2*tt-1))}na.j=Math.round(nt),na.u=Math.round(100*a),na.o=Math.round(100*tt),na.F=Fi.F}function lv(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function uv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function hv(a){return a>fv?Math.pow(a,1/3):(cm*a+16)/116}function n1(a){var y=a*a*a;return y>fv?y:(116*a-16)/cm}function mf(a,y){typeof a!="string"&&(a instanceof bi||We("Value for "+y+" must be a color string or a Brush, not "+a))}function cv(){dv=gr?new _a(null,void 0,{willReadFrequently:!0}).context:null}qe.Object.defineProperties(bi.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&Nn(this,a),this.na=a,this.start.Mc()&&(a===fu?this.start=Zs:a===ma&&(this.start=wi)),this.end.Mc()&&(a===fu?this.end=Fs:a===ma&&(this.end=wi)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&Nn(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&Nn(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&Nn(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&Nn(this,a),0>a&&ti(a,">= zero",bi,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&Nn(this,a),0>a&&ti(a,">= zero",bi,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&Nn(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&Nn(this,a),this.cr=a,this.xe=null}}}),bi.prototype.isDark=bi.prototype.Gx,bi.prototype.darkenBy=bi.prototype.Wy,bi.prototype.lightenBy=bi.prototype.Vz,bi.prototype.addColorStop=bi.prototype.addColorStop;var fv=216/24389,cm=24389/27,md=[95.047,100,108.883],dv=null,Fi=new Bp,na=new Bp,as=new Bp,Gl=new Bp,vd=!1;bi.className="Brush";var Vu;bi.Solid=Vu=new sn(bi,"Solid",0);var fu;bi.Linear=fu=new sn(bi,"Linear",1);var ma;bi.Radial=ma=new sn(bi,"Radial",2);var yd;bi.Pattern=yd=new sn(bi,"Pattern",4);var Sd;bi.Lab=Sd=new sn(bi,"Lab",5);var i1;bi.HSL=i1=new sn(bi,"HSL",6),bi.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var x=Math.abs(y-a);y=Math.floor(a+Math.random()*x).toString(16);var b=Math.floor(a+Math.random()*x).toString(16);return a=Math.floor(a+Math.random()*x).toString(16),2>y.length&&(y="0"+y),2>b.length&&(b="0"+b),2>a.length&&(a="0"+a),"#"+y+b+a},bi.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;vd||(cv(),vd=!0);var y=dv;if(y===null)return!0;y.fillStyle="#000000";var x=y.fillStyle;return y.fillStyle=a,y.fillStyle!==x?!0:(y.fillStyle="#FFFFFF",x=y.fillStyle,y.fillStyle=a,y.fillStyle!==x)},bi.lighten=function(a){return t1(a)},bi.lightenBy=t1,bi.darken=function(a){return e1(a)},bi.darkenBy=e1,bi.mix=sv,bi.isDark=pd;function Wr(){this.xa="Base"}Wr.prototype.measure=function(){},Wr.prototype.Yz=function(a,y,x,b,tt){a.measure(y,x,b,tt)},Wr.prototype.arrange=function(){},Wr.prototype.Ly=function(a,y,x,b,tt,et){a.arrange(y,x,b,tt,et)},Wr.prototype.iA=function(a){a.Uj()},Wr.prototype.gc=function(){},qe.Object.defineProperties(Wr.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return un}}}),Wr.prototype.remeasureObject=Wr.prototype.iA,Wr.prototype.arrangeElement=Wr.prototype.Ly,Wr.prototype.measureElement=Wr.prototype.Yz,Wr.className="PanelLayout";function fm(){this.xa="Base"}en(fm,Wr),fm.prototype.measure=function(a,y,x,b,tt,et,nt){var ht=b.length;a=du(a);for(var gt=0;gtMn&&(ro=Math.max(Mn-Xh,0));var z0=rn.oa===0;rn.oc=rn.oc+ro,rn.actual=rn.oa+ro,Mn=Math.max(Mn-(ro+(z0?Xh:0)),0)}if(_s.columnSpan===1&&(Xo===an||Xo===In)){rn=a.Eb(Ko);var Ag=rn.Wc();ro=Math.max(Nc-rn.actual,0),ro+Ag>Sn&&(ro=Math.max(Sn-Ag,0));var Gy=rn.oa===0;rn.oc=rn.oc+ro,rn.actual=rn.oa+ro,Sn=Math.max(Sn-(ro+(Gy?Ag:0)),0)}Kh&&_s.Uj()}}}}}ri(Le);var Ql=0,mu=0;et=a.columnCount;for(var Lf=0;Lf=a.rowCount);sh++)rn=a.Fb(wr.row+sh),ro=0,ro=Xo===ln||Xo===In?Math.max(rn.minimum,dl[wr.row+sh]===0?rn.maximum:Math.min(dl[wr.row+sh],rn.maximum)):Math.max(rn.minimum,isNaN(rn.Hc)?rn.maximum:Math.min(rn.Hc,rn.maximum)),Su.height+=ro,Ks+=rn.minimum;for(var Fa=1;Fa=a.columnCount);Fa++)rn=a.Eb(wr.column+Fa),ro=0,ro=Xo===ln||Xo===Tn?Math.max(rn.minimum,xa[wr.column+Fa]===0?rn.maximum:Math.min(xa[wr.column+Fa],rn.maximum)):Math.max(rn.minimum,isNaN(rn.Hc)?rn.maximum:Math.min(rn.Hc,rn.maximum)),Su.width+=ro,W0+=rn.minimum;xo.width+=Su.width,xo.height+=Su.height;var Zd=wr.margin,$h=Zd.right+Zd.left,kg=Zd.top+Zd.bottom;wr.measure(xo.width,xo.height,W0,Ks);for(var Qd=wr.measuredBounds,Ll=Math.max(Qd.width+$h,0),Bc=Math.max(Qd.height+kg,0),tc=0,Jd=0;Jd=a.rowCount);Jd++)rn=a.Fb(wr.row+Jd),tc+=rn.total||0;if(tc=ah)&&!(wr.row+wu>=a.rowCount);wu++){rn=a.Fb(wr.row+wu);var uh=rn.oa||0,Rc=lh(wr,rn,ql);rn.actual=Math.min(rn.maximum,uh+Rc),rn.oa!==uh&&(ah-=rn.oa-uh)}for(;0pl&&(rn.actual=Math.min(rn.maximum,pl+ah),rn.oa!==pl&&(ah-=rn.oa-pl)),rn.index===0)break;rn=a.Fb(rn.index-1)}}for(var Of=0,hh=0;hh=a.columnCount);hh++)rn=a.Eb(wr.column+hh),Of+=rn.total||0;if(Of=jf)&&!(wr.column+zc>=a.columnCount);zc++){rn=a.Eb(wr.column+zc);var Lg=rn.oa||0,Wy=xu(wr,rn,Hy);rn.actual=Math.min(rn.maximum,Lg+Wy),rn.oa!==Lg&&(jf-=rn.oa-Lg)}for(;0V0&&(rn.actual=Math.min(rn.maximum,V0+jf),rn.oa!==V0&&(jf-=rn.oa-V0)),rn.index===0)break;rn=a.Eb(rn.index-1)}}}}ri(Oe),xn.free(Su),xn.free(xo),dl!==void 0&&ri(dl),xa!==void 0&&ri(xa);var Nf=0,Df=0,Y0=a.desiredSize,gw=a.maxSize;Xo=ws(a,!0);var Tg=mu=Ql=0,_g=0;et=a.columnCount;for(var K0=0;K0=a.rowCount);rn++){var Gn=a.Fb(Le+rn);Gn.oa!==0&&(de.height+=Gn.total)}for(rn=1;rn=a.columnCount);rn++)Gn=a.Eb(De+rn),Gn.oa!==0&&(de.width+=Gn.total);var Fn=Re.oa+de.width,yi=Oe.oa+de.height;rn=ht,Gn=gt;var _i=Fn,io=yi,lo=ht,Yo=gt,ro=Fn,nh=yi;ht+Fn>x.width&&(ro=Math.max(x.width-ht,0)),gt+yi>x.height&&(nh=Math.max(x.height-gt,0));var Tr=Pn.alignment;if(Tr.Xb()){Tr=a.defaultAlignment,Tr.sb()||(Tr=wi);var hl=Tr.x,Ko=Tr.y,ih=Tr.offsetX;Tr=Tr.offsetY;var oa=Re.alignment,Da=Oe.alignment;oa.sb()&&(hl=oa.x,ih=oa.offsetX),Da.sb()&&(Ko=Da.y,Tr=Da.offsetY)}else hl=Tr.x,Ko=Tr.y,ih=Tr.offsetX,Tr=Tr.offsetY;(isNaN(hl)||isNaN(Ko))&&(Ko=hl=.5,Tr=ih=0),oa=hn.width,Da=hn.height;var Ws=Pn.margin,_s=Ws.left+Ws.right,Kh=Ws.top+Ws.bottom,cl=ol(Pn,Oe,Re,!1);!isNaN(Pn.desiredSize.width)||cl!==ln&&cl!==Tn||(oa=Math.max(Fn-_s,0)),!isNaN(Pn.desiredSize.height)||cl!==ln&&cl!==In||(Da=Math.max(yi-Kh,0)),Fn=Pn.maxSize,yi=Pn.minSize,oa=Math.min(Fn.width,oa),Da=Math.min(Fn.height,Da),oa=Math.max(yi.width,oa),Da=Math.max(yi.height,Da),Fn=Da+Kh,rn+=_i*hl-(oa+_s)*hl+ih+Ws.left,Gn+=io*Ko-Fn*Ko+Tr+Ws.top,Pn.visible&&(Eo(lo,Yo,ro,nh,rn,Gn,hn.width,hn.height)?Pn.arrange(rn,Gn,oa,Da):Pn.arrange(rn,Gn,oa,Da,new $e(lo,Yo,ro,nh)))}}}for(xn.free(de),a=0;a=x&&(x=1);var b=a.gridCellSize,tt=b.width;b=b.height;var et=a.naturalBounds,nt=a.actualBounds,ht=et.width,gt=et.height,bt=Math.ceil(ht/tt),Pt=Math.ceil(gt/b),Nt=a.gridOrigin,zt=Nt.x;Nt=Nt.y,y.save(),y.beginPath(),y.rect(0,0,ht,gt),y.clip(),y.Se();for(var Vt=[],Zt=a.O.s,oe=Zt.length,Pe=0;PeOe)){de=mv(de.figure);for(var De=0;DeOe&&Le.push(Re))}}}}for(Zt=a.O.s,oe=Zt.length,Pe=0;Pett*de*x))){if(Oe=Ve.segmentIndex,(!isFinite(Oe)||isNaN(Oe))&&(Oe=0),0>Oe&&(Oe=de-Math.min(-Oe,de)),Oe=Math.round(Oe%de),de=Ve.opacity,De=1,de!==1){if(de===0)continue;De=y.globalAlpha,y.globalAlpha=De*de}Re=Vt[Pe];var Sn=!1,Mn=Ve.strokeDashArray;if(Mn!==null&&(Sn=!0,y.js(Mn,Ve.strokeDashOffset)),Ve.figure==="LineV"&&Ve.stroke!==null&&0y)return a%y===x;if(a%y!==x)return!1;y=b.length;for(var tt=0;ttNt)Le.measure(1/0,1/0,0,0),Oe=Le.measuredBounds,x.ed(Oe),Vt.push(Oe);else{var De=Le.segmentIndex,Re=Le.segmentFraction,Ve=Le.alignmentFocus;Ve.Mc()&&(Ve=wi);var Sn=Le.segmentOrientation,Mn=Le.segmentOffset;if(isNaN(De)){var Pn=gt.ua;Oe=oi(),Pn.Qu(Re,Oe);var hn=Ee.allocAt(Oe[0],Oe[1]);if(hn.add(gt.i(0)),Pn.type===pn.j?hn.offset(-Pn.startX,-Pn.startY):(Pn=Pn.figures.first(),Pn!==null&&hn.offset(-Pn.startX,-Pn.startY)),Pn=Oe[2],Sn!==us){var rn=gt.computeAngle(Le,Sn,Pn);Le.Kb=rn}rn=hn.x-y.x;var Gn=hn.y-y.y;Ee.free(hn),ri(Oe)}else if(De<-Nt||De>=Nt)Oe=Ee.alloc(),gt.vg(),gt.computeMidPoint(Oe),Pn=gt.midAngle,Sn!==us&&(rn=gt.computeAngle(Le,Sn,Pn),Le.Kb=rn),rn=Oe.x-y.x,Gn=Oe.y-y.y,Ee.free(Oe);else{if(rn=0,0<=De?(Gn=Pt.M(De),Oe=DeFn+10?0<=De?Pn.ab(Gn):Gn.ab(Pn):Fn>hn+10?0<=De?Oe.ab(rn):rn.ab(Oe):0<=De?Pn.ab(rn):rn.ab(Pn)}else Pn=0<=De?Gn.ab(Oe):Oe.ab(Gn);Sn!==us&&(rn=gt.computeAngle(Le,Sn,Pn),Le.Kb=rn),rn=Gn.x+(Oe.x-Gn.x)*Re-y.x,Gn=Gn.y+(Oe.y-Gn.y)*Re-y.y}Le.measure(1/0,1/0,0,0),Oe=Le.measuredBounds,hn=Le.naturalBounds;var yi=0;Le instanceof Wn&&(yi=Le.strokeWidth),Fn=hn.width+yi;var _i=hn.height+yi;Zt.reset(),Zt.translate(-Oe.x,-Oe.y),Zt.scale(Le.scale,Le.scale),Zt.rotate(Sn===us?Le.angle:Pn,Fn/2,_i/2),Sn!==qp&&Sn!==tg||Zt.rotate(90,Fn/2,_i/2),Sn!==$p&&Sn!==eg||Zt.rotate(-90,Fn/2,_i/2),Sn===qm&&(45Pn||225Pn)&&Zt.rotate(-Pn,Fn/2,_i/2),hn=new $e(0,0,Fn,_i),oe.xi(hn,Ve),Zt.Ga(oe),Ve=-oe.x+yi/2*Le.scale,Le=-oe.y+yi/2*Le.scale,Pe.assign(Mn),yi=isNaN(Mn.x);var io=isNaN(Mn.y);if(yi||io){Fn=Fn/2+3,_i=_i/2+3;var lo=45<=Pn&&135>=Pn,Yo=225<=Pn&&315>=Pn;Sn===us&&(lo||Yo)?(Pe.x=io?Fn:Mn.y,Pe.y=yi?_i:Mn.x,lo?0<=De||isNaN(De)&&.5>Re||!yi||(Pe.y=-_i):Yo&&((0<=De||isNaN(De)&&.5>Re)&&yi&&(Pe.y=-_i),io&&(Pe.x=-Fn))):(yi&&(Pe.x=0<=De||isNaN(De)&&.5>Re?Fn:-Fn),io&&(Pe.y=-_i),Pe.rotate(Pn))}else Pe.rotate(Pn);rn+=Pe.x,Gn+=Pe.y,hn.set(Oe),hn.h(rn+Ve,Gn+Le,Oe.width,Oe.height),Vt.push(hn),x.ed(hn)}}if(nt!==null)for(b=nt.labelNodes;b.next();)b.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),Es(tt,x.width||0,x.height||0),Xn.free(Zt),Ee.free(oe),Ee.free(Pe)}}}},bm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof di||a instanceof cn){var b=a,tt=null;a instanceof di&&(tt=a,b=tt.adornedPart);var et=a instanceof di?null:b.path,nt=a.j;if(nt.length!==0){var ht=0;if(et!==null&&ht=x)Zt=Ee.alloc(),Vt=Nt,Pe=Zt,Vt.vg(),Vt.computeMidPoint(Pe),Vt=Nt.midAngle,bt!==us&&(Nt=Nt.computeAngle(nt,bt,Vt),nt.angle=Nt),Nt=Zt.x,Pe=Zt.y,Ee.free(Zt);else{if(oe=0,0<=ht?(Zt=y.s[ht],Pe=htLe+10?0<=ht?Vt.ab(Zt):Zt.ab(Vt):Le>de+10?0<=ht?Pe.ab(oe):oe.ab(Pe):0<=ht?Vt.ab(oe):oe.ab(Vt)}else Vt=0<=ht?Zt.ab(Pe):Pe.ab(Zt);bt!==us&&(Nt=Nt.computeAngle(nt,bt,Vt),nt.angle=Nt),Nt=Zt.x+(Pe.x-Zt.x)*gt,Pe=Zt.y+(Pe.y-Zt.y)*gt}if(zt.ys())nt.location=new Ee(Nt,Pe);else{zt.Mc()&&(zt=wi),Zt=Xn.alloc(),Zt.reset(),Zt.scale(nt.scale,nt.scale),Zt.rotate(nt.angle,0,0);var Oe=nt.naturalBounds;oe=$e.allocAt(0,0,Oe.width,Oe.height),de=Ee.alloc(),de.xi(oe,zt),Zt.Ga(de),zt=-de.x,Le=-de.y;var De=Oe.width,Re=Oe.height;Oe=Ee.alloc(),Oe.assign(Pt);var Ve=isNaN(Pt.x),Sn=isNaN(Pt.y);if(Ve||Sn){De=De/2+3,Re=Re/2+3;var Mn=45<=Vt&&135>=Vt,Pn=225<=Vt&&315>=Vt;bt===us&&(Mn||Pn)?(Oe.x=Sn?De:Pt.y,Oe.y=Ve?Re:Pt.x,Mn?0<=ht||isNaN(ht)&&.5>gt||!Ve||(Oe.y=-Re):Pn&&((0<=ht||isNaN(ht)&&.5>gt)&&Ve&&(Oe.y=-Re),Sn&&(Oe.x=-De))):(Ve&&(Oe.x=0<=ht||isNaN(ht)&&.5>gt?De:-De),Sn&&(Oe.y=-Re),Oe.rotate(Vt))}else Oe.rotate(Vt);Nt+=Oe.x,Pe+=Oe.y,Zt.pp(oe),zt+=oe.x,Le+=oe.y,ht=Ee.allocAt(Nt+zt,Pe+Le),nt.move(ht),Ee.free(ht),Ee.free(Oe),Ee.free(de),$e.free(oe),Xn.free(Zt)}}tt!==null?tt.Ul(!1):b.Ul(!1),b=j1(a),a.location.h(a.position.x+b.x,a.position.y+b.y),Ee.free(b)}};function r1(a,y,x,b){if(ea(b)!==!1){var tt=b.strokeWidth;tt===0&&a instanceof di&&a.type===un.Link&&a.adornedObject instanceof Wn&&(tt=a.adornedObject.strokeWidth),tt*=b.Ca,a instanceof cn&&a.ua!==null?(a=a.geometry.bounds,b.Ge(a.x-tt/2,a.y-tt/2,a.width+tt,a.height+tt)):a instanceof di&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,b.Ge(a.x-tt/2,a.y-tt/2,a.width+tt,a.height+tt)):b.Ge(-(tt/2),-(tt/2),y+tt,x+tt),tt=b.desiredSize,tt.w()||b.ua===null?b.dc.h(0,0,tt.width,tt.height):b.dc.assign(b.ua.bounds),Br(b,!1)}}function zp(){this.xa="Base"}en(zp,Wr),zp.prototype.measure=function(a,y,x,b,tt,et,nt){var ht=a.Pb();a.graduatedBounds=[];var gt=ht.margin,bt=gt.right+gt.left,Pt=gt.top+gt.bottom;ht.measure(y,x,et,nt);var Nt=ht.measuredBounds,zt=new $e(-gt.left,-gt.top,Math.max(Nt.width+bt,0),Math.max(Nt.height+Pt,0));a.graduatedBounds.push(zt),tt.assign(zt);for(var Vt=ht.geometry,Zt=ht.strokeWidth,oe=Vt.flattenedSegments,Pe=Vt.flattenedLengths,de=Vt.flattenedTotalLength,Le=oe.length,Oe=0,De=0,Re=oi(),Ve=0;VeFn&&(Fn+=360),Mn.push(Fn)}Oe=rn,De=Gn}Re.push(Mn)}if(a.graduatedIntervals===null){for(var yi=[],_i=a.O.s,io=_i.length,lo=0;lonh)){for(var Tr=0;Trnh&&ro.push(Ko)}}}}}a.graduatedIntervals=yi}var ih=a.graduatedIntervals,oa=a.O.s,Da=oa.length,Ws=0,_s=0,Kh=de;a.graduatedMarks=[];for(var cl,Ud=0;UdEg*Xo*de/a.graduatedRange&&Vs.graduatedSkip===null)){var kf=Pe[0][0],Al=0,Os=0;_s=de*Vs.graduatedStart-1e-4,Kh=de*Vs.graduatedEnd+1e-4;var Nc=Eg*Xo,Ys=a.graduatedTickBase;if(Ysa.graduatedMin+Nc&&(Ys-=Math.floor((Ys-a.graduatedMin)/Nc)*Nc);for(var z0=ih[Ud],Ag=Ys,Gy=1e-6*a.graduatedMax,Ql=1;Ys<=a.graduatedMax+Gy;Ql++){t:{for(var mu=z0.length,Lf=0;Lf-Hd){var Qh=!1;break t}}Qh=!0}if(Qh&&(Ys>a.graduatedMax&&(Ys=a.graduatedMax),Vs.graduatedSkip===null||Vs instanceof Ni&&!Vs.graduatedSkip(Ys,Vs)||Vs instanceof Wn&&!Vs.graduatedSkip(Ys,Vs))&&(Ws=(Ys-a.graduatedMin)*de/a.graduatedRange,Ws>de&&(Ws=de),_s<=Ws&&Ws<=Kh)){for(var Jl=Re[Al][Os],rh=Pe[Al][Os];Alkf&&Osvu&&.4995vu?0vu||.9995Tf){var Vd=1-Math.abs(.5-vu);Jl=(fl*Vd+kl*(1-Vd))%360;break t}}}Jl=fl}if(Vs instanceof Ni){var Ja="";Vs.graduatedFunction!==null?(Ja=Vs.graduatedFunction(Ys,Vs),Ja=Ja!=null?Ja.toString():""):Ja=(+Ys.toFixed(2)).toString(),Ja!==""&&cl.push({$l:Wd,angle:Jl,text:Ja})}else cl.push({$l:Wd,angle:Jl})}Ys=Ag+Ql*Nc}}}a.graduatedMarks.push(cl)}ri(Re);var xo=a.graduatedMarks;if(xo!==null)for(var Mg=b.length,ps=0;psqa;qa++){switch(qa){case 0:Ns.h(Su,dl);break;case 1:Ns.h(Su+Yd,dl);break;case 2:Ns.h(Su,dl+Fc);break;case 3:Ns.h(Su+Yd,dl+Fc)}Ns.rotate(wr+_r.angle),Ns.offset(H0,Xd),Kd===0&&qa===0?xa.h(Ns.x,Ns.y,0,0):xa.Ye(Ns),Ns.offset(-H0,-Xd),Ns.rotate(-wr-_r.angle)}Ee.free(Ns),yu.graduatedBounds!==null&&yu.graduatedBounds.push(xa),xr(oh,xa.x,xa.y,xa.width,xa.height)}else if(_r instanceof Ni){var Ia=a,W0=tt;Ia.temporaryTextBlock===null&&(Ia.temporaryTextBlock=new Ni);var Ks=Ia.temporaryTextBlock;S1(Ks,_r);var sh=_r.alignmentFocus;sh.Mc()&&(sh=Zs);for(var Fa=_r.segmentOrientation,Zd=_r.segmentOffset,$h=new $e,kg=0,Qd=0,Ll=0,Bc=0,tc=0,Jd=gs.length,ah=0;ahLl||225Ll)&&pl.rotate(-Ll,uh/2,Rc/2);var Of=$e.allocAt(0,0,uh,Rc),hh=Ee.alloc();hh.xi(Of,sh),pl.Ga(hh);var jf=-hh.x,Hy=-hh.y,xu=Ee.alloc();xu.assign(Zd),isNaN(xu.x)&&(xu.x=uh/2+3),isNaN(xu.y)&&(xu.y=-(Rc/2+3)),xu.rotate(Ll),kg+=xu.x+jf,Qd+=xu.y+Hy;var zc=new $e(kg,Qd,lh.width,lh.height),Lg=new $e(lh.x,lh.y,lh.width,lh.height),Wy=new $e(wu.x,wu.y,wu.width,wu.height);ql.Sz=Bc,ql.lineCount=Ks.lineCount,ql.lines=[Ks.Cb,Ks.Ih,Ks.df,Ks.Le,Ks.Qc,Ks.Qb,Ks.ze],ql.actualBounds=zc,ql.measuredBounds=Lg,ql.naturalBounds=Wy,ah===0?$h.assign(zc):$h.ed(zc),Ee.free(xu),Ee.free(hh),$e.free(Of),Xn.free(pl)}Ia.graduatedBounds!==null&&Ia.graduatedBounds.push($h),xr(W0,$h.x,$h.y,$h.width,$h.height)}Br(_r,!1)}}},zp.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var b=a.Pb(),tt=a.graduatedMarks;if(tt!==null){var et=a.graduatedBounds,nt=0,ht=et[nt];nt++,b!==null&&b.arrange(ht.x-x.x,ht.y-x.y,ht.width,ht.height);for(var gt=y.length,bt=0;bt=nt&&(nt=1);for(var ht=et.actualBounds,gt=a.O.s,bt=a.graduatedMarks,Pt=gt.length,Nt=0;Nta.graduatedTickUnit*zt.interval*et.geometry.flattenedTotalLength/a.graduatedRange*nt&&zt.graduatedSkip===null)){var oe=zt.measuredBounds,Pe=zt.strokeWidth*zt.scale,de=zt.alignmentFocus;de.Mc()&&(de=Zs);for(var Le=0;Lent.height)continue}else if(bt.position>nt.width)continue;var Pt=bt.separatorStrokeWidth;isNaN(Pt)&&(Pt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Nt=bt.separatorStroke;if(Nt===null&&(Nt=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),Pt!==0&&Nt!==null){vr(a,y,Nt,!1,!1,nt,et),Nt=!1;var zt=bt.separatorDashArray;zt===null&&(zt=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),zt!==null&&(Nt=!0,y.js(zt,0)),y.beginPath(),zt=bt.position+Pt,x?zt>nt.height&&(Pt-=zt-nt.height):zt>nt.width&&(Pt-=zt-nt.width),bt=bt.position+Pt/2,y.lineWidth=Pt,Pt=a.yb,x?(bt+=Pt.top,zt=nt.width-Pt.right,y.moveTo(Pt.left,bt),y.lineTo(zt,bt)):(bt+=Pt.left,zt=nt.height-Pt.bottom,y.moveTo(bt,Pt.top),y.lineTo(bt,zt)),y.stroke(),y.Se(),Nt&&y.fs()}}}}function Pm(a,y,x,b,tt){for(var et=b.length,nt=a.actualBounds,ht=a.naturalBounds,gt=s1(a,!0),bt=s1(a,!1),Pt=0;Ptzt)){var Vt=Nt.Wc(),Zt=Nt.separatorStrokeWidth;isNaN(Zt)&&(Zt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var oe=Nt.separatorStroke;oe===null&&(oe=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(oe===null||Nt.index===(x?gt:bt))&&(Zt=0),Vt-=Zt,Zt=Nt.position+Zt,Vt+=Nt.actual,Zt+Vt>zt&&(Vt=zt-Zt),0>=Vt||(zt=a.yb,vr(a,y,Nt.background,!0,!1,ht,nt),x?y.fillRect(zt.left,Zt+zt.top,nt.width-(zt.left+zt.right),Vt):y.fillRect(Zt+zt.left,zt.top,Vt,nt.height-(zt.top+zt.bottom)))}}}}function s1(a,y){for(var x=y?a.rowCount:a.columnCount,b=0;bb&&tt.set(Zt),Ee.free(Zt)),Ee.free(Pt),et&&tt.transform(nt),bt},ee.Gj=function(){for(var a=this.O.s,y=a.length,x=0;xx||et>b)&&(this.v(),this.measure(y>x?x:y,et>b?b:et,0,0));break;case ln:this.v(!0),this.measure(x+ht,b+nt,0,0);break;case Tn:this.v(!0),this.measure(x+ht,et+nt,0,0);break;case In:this.v(!0),this.measure(y+ht,b+nt,0,0)}}this.na.arrange(this,tt,this.jg)}},ee.gh=function(a){var y=this.naturalBounds,x=du(this);if(Eo(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,tt=Ee.allocAt(0,0);b--;){var et=y[b];if((et.visible||et===x)&&(Er(tt.set(a),et.transform),et.ca(tt)))return Ee.free(tt),!0}return Ee.free(tt),!(this.Ma===null&&this.areaBackground===null)}return!1},ee.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,b=0;bzt.width||Nt.y>zt.height||0>Nt.x+Nt.width||0>Nt.y+Nt.height||(Nt=Pt,Pt=Pt instanceof un?Pt:null,zt=Xn.alloc(),zt.set(nt),(Pt!==null?Pt.Cf(a,y,x,b,tt,zt):no(Nt,a,b,zt))&&(y!==null&&(Nt=y(Nt)),Nt===null||x!==null&&!x(Nt)||tt.add(Nt)),Xn.free(zt))}}return et===void 0&&Xn.free(nt),b}return et===void 0&&Xn.free(nt),!1};function vv(a,y,x,b){for(var tt=a.O.s,et=tt.length;et--;){var nt=tt[et];if(nt.visible){var ht=nt.actualBounds,gt=a.naturalBounds;ht.x>gt.width||ht.y>gt.height||0>ht.x+ht.width||0>ht.y+ht.height||(nt instanceof un&&vv(nt,y,x,b),y!==null&&(nt=y(nt)),nt===null||x!==null&&!x(nt)||b.add(nt))}}}ee.og=function(a,y,x,b,tt,et){if(this.pickable===!1)return!1;x===void 0&&(x=null),b===void 0&&(b=null);var nt=this.naturalBounds,ht=this.se(),gt=ht?a:Er(Ee.allocAt(a.x,a.y),this.transform),bt=ht?y:Er(Ee.allocAt(y.x,y.y),this.transform),Pt=gt.Bf(bt),Nt=0Pe.width||oe.y>Pe.height||0>oe.x+oe.width||0>oe.y+oe.height))&&(Zt.se()?(oe=Zt.transform,Er(gt.set(a),oe),Er(bt.set(y),oe)):(gt.set(a),bt.set(y)),oe=Zt,Zt=Zt instanceof un?Zt:null,(Zt!==null?Zt.og(gt,bt,x,b,tt,et):oe.tx(gt,bt,tt))&&(x!==null&&(oe=x(oe)),oe===null||b!==null&&!b(oe)||et.add(oe)))}}Ee.free(gt),Ee.free(bt)}return tt?Nt:nt}return!1};function yv(a){var y=null;return a instanceof Wn&&(y=a.spot1,y===oo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=vo),y}function Sv(a){var y=null;return a instanceof Wn&&(y=a.spot2,y===oo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=qo),y}ee.add=function(a){for(var y=[],x=0;x=tt.count&&a>=tt.count)return;tt.mb(et),b=et}else We("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>tt.count)&&(a=tt.count),tt.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),ea(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof un&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Em(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof wn&&(x.Te=!0),x.Te&&x instanceof wn&&(x.wc=null),tt=this.diagram,tt!==null&&tt.undoManager.isUndoingRedoing||(b!==-1&&x.cb(Hr,"elements",this,y,null,b,null),x.cb(Ar,"elements",this,null,y,null,a)))};function wv(a,y){a.l=y?a.l|16777216:a.l&-16777217}ee.remove=function(a){for(var y=this.O.s,x=y.length,b=-1,tt=0;tta&&ti(a,">= 0",un,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Rr;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(Ar,"rowdefs",this,null,x,null,a)}return y[a]},ee.oA=function(a){if(0>a&&ti(a,">= 0",un,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,x=y[a];if(x){y[a]=void 0;for(var b=y.length-1;0<=b&&y[b--]===void 0;)y.length--;this.cb(Hr,"rowdefs",this,x,null,a,null),this.v()}}};function c1(a,y,x){var b=a.rowDefs;if(!(0>y)){if(b[y]=x instanceof Rr?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}ee.Eb=function(a){0>a&&ti(a,">= 0",un,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Rr;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(Ar,"coldefs",this,null,x,null,a)}return y[a]},ee.jA=function(a){if(0>a&&ti(a,">= 0",un,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,x=y[a];if(x){y[a]=void 0;for(var b=y.length-1;0<=b&&y[b--]===void 0;)y.length--;this.cb(Hr,"coldefs",this,x,null,a,null),this.v()}}};function f1(a,y,x){var b=a.colDefs;if(!(0>y)){if(b[y]=x instanceof Rr?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}ee.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Am(y,a),this},ee.Hy=function(a,y){return(a=this.Fb(a))&&Am(a,new Rr(y)),this},ee.By=function(a,y){return(a=this.Eb(a))&&Am(a,new Rr(y)),this},ee.nz=function(a){if(0>a||this.type!==un.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,b=x.length,tt=this.topIndex;tta||this.type!==un.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,b=x.length,tt=this.leftIndex;tta;)this.pc(this.O.length-1,!1);p1(this,this.itemArray)};function p1(a,y){var x=Gp(a);if(y===null||y.length===0)for(;a.O.length>x;)a.pc(a.O.length-1,!1);else if(a.O.length<=x){x=y.length;for(var b=0;bx)){var tt=bv(a,y);if(tt=Pv(a,tt),tt!==null){if(Oa(tt),tt=tt.copy(),tt.l&16777216){var et=a.ih();et!==null&&wv(et,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new Rn),a.ge.add(y,tt)),et=x+Gp(a),a.Gb(et,tt),b&&(tt.ub=y,xv(a,et,x),tt.ub=null),tt.data=y}}}function xv(a,y,x){for(a=a.O;ya&&ti(a,">= 0",un,"padding"),a=new Yn(a)):(0>a.left&&ti(a.left,">= 0",un,"padding:value.left"),0>a.right&&ti(a.right,">= 0",un,"padding:value.right"),0>a.top&&ti(a.top,">= 0",un,"padding:value.top"),0>a.bottom&&ti(a.bottom,">= 0",un,"padding:value.bottom"));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.v(),this.g("padding",y,a))}},defaultAlignment:{get:function(){return this.Tm},set:function(a){var y=this.Tm;y.D(a)||(this.Tm=a=a.J(),this.v(),this.g("defaultAlignment",y,a))}},defaultStretch:{get:function(){return this.Uf},set:function(a){var y=this.Uf;y!==a&&(this.Uf=a,this.v(),this.g("defaultStretch",y,a))}},defaultSeparatorPadding:{get:function(){return this.T!==null?this.T.Qp:Ra},set:function(a){typeof a=="number"&&(a=new Yn(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new va),this.T.Qp=a,this.v(),this.g("defaultSeparatorPadding",y,a))}},defaultRowSeparatorStroke:{get:function(){return this.T!==null?this.T.ia:null},set:function(a){var y=this.defaultRowSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof bi)&&(a instanceof bi&&a.freeze(),this.T===null&&(this.T=new va),this.T.ia=a,this.N(),this.g("defaultRowSeparatorStroke",y,a))}},defaultRowSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.Ha:1},set:function(a){var y=this.defaultRowSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new va),this.T.Ha=a,this.v(),this.g("defaultRowSeparatorStrokeWidth",y,a))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(a){var y=this.defaultRowSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,b=0,tt=0;tta)&&We("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new va),this.T.Hb=a,this.v(),this.g("topIndex",y,a))}},leftIndex:{get:function(){return this.T!==null?this.T.hb:0},set:function(a){var y=this.leftIndex;y!==a&&((!isFinite(a)||0>a)&&We("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new va),this.T.hb=a,this.v(),this.g("leftIndex",y,a))}},data:{get:function(){return this.ub},set:function(a){var y=this.ub;if(y!==a){var x=this instanceof _n&&!(this instanceof di);Oa(this),this.ub=a;var b=this.diagram;b!==null&&(x?(x=b.partManager,this instanceof cn?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof _n&&(y!==null&&x.cf.remove(y),a!==null&&x.cf.add(a,this))):(x=this.panel,x!==null&&x.ge!==null&&(y!==null&&x.ge.remove(y),a!==null&&x.ge.add(a,this)))),this.g("data",y,a),b!==null&&b.undoManager.isUndoingRedoing||a!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(a){var y=this.zn;y!==a&&(this.zn=a,this.g("itemIndex",y,a))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new pf),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&Sw(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&uy(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&ly(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||p1(this,a)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(a){if(this.itemTemplateMap===null){if(a===null)return;this.itemTemplateMap=new Rn}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof _n||a.isPanelMain)&&We("Panel.itemTemplate must not be a Part or be Panel.isPanelMain: "+a),this.itemTemplateMap.add("",a),this.g("itemTemplate",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv())}},itemTemplateMap:{get:function(){return this.A!==null?this.A.Pc:null},set:function(a){var y=this.itemTemplateMap;if(y!==a){for(var x=a.iterator;x.next(););Vn(this),this.A.Pc=a,this.g("itemTemplateMap",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv()}}},itemCategoryProperty:{get:function(){return this.A!==null?this.A.Oc:"category"},set:function(a){var y=this.itemCategoryProperty;y!==a&&(Vn(this),this.A.Oc=a,this.g("itemCategoryProperty",y,a))}},isAtomic:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("isAtomic",y,a))}},isClipping:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this instanceof Un&&(this.tb=null),this.v(),this.g("isClipping",y,a))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(a){var y=(this.l&33554432)!==0;y!==a&&(this.l^=33554432,this.v(),this.g("isOpposite",y,a))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;if(y!==a){var x=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",y,a),y=this.diagram,y!==null&&y.undoManager.isUndoingRedoing||x&&Em(this,this,a)}}},alignmentFocusName:{get:function(){return this.$e},set:function(a){var y=this.$e;y!==a&&(this.$e=a,this.v(),this.g("alignmentFocusName",y,a))}}}),qe.Object.defineProperties(un,{Position:{get:function(){return Va.I("Position")}},Horizontal:{get:function(){return Va.I("Horizontal")}},Vertical:{get:function(){return Va.I("Vertical")}},Spot:{get:function(){return Va.I("Spot")}},Auto:{get:function(){return Va.I("Auto")}},Table:{get:function(){return Va.I("Table")}},Viewbox:{get:function(){return Va.I("Viewbox")}},TableRow:{get:function(){return Va.I("TableRow")}},TableColumn:{get:function(){return Va.I("TableColumn")}},Link:{get:function(){return Va.I("Link")}},Grid:{get:function(){return Va.I("Grid")}},Graduated:{get:function(){return Va.I("Graduated")}}}),un.prototype.rebuildItemElements=un.prototype.mv,un.prototype.findItemPanelForData=un.prototype.sx,un.prototype.updateTargetBindings=un.prototype.La,un.prototype.copyTemplate=un.prototype.Uy,un.prototype.graduatedValueForPoint=un.prototype.Gz,un.prototype.graduatedPointForValue=un.prototype.Fz,un.prototype.findColumnForLocalX=un.prototype.fz,un.prototype.findRowForLocalY=un.prototype.nz,un.prototype.addColumnDefinition=un.prototype.By,un.prototype.addRowDefinition=un.prototype.Hy,un.prototype.addRowColumnDefinition=un.prototype.Gy,un.prototype.removeColumnDefinition=un.prototype.jA,un.prototype.getColumnDefinition=un.prototype.Eb,un.prototype.removeRowDefinition=un.prototype.oA,un.prototype.getRowDefinition=un.prototype.Fb,un.prototype.removeAt=un.prototype.mb,un.prototype.remove=un.prototype.remove,un.prototype.insertAt=un.prototype.Gb,un.prototype.elt=un.prototype.M,un.prototype.add=un.prototype.add,un.prototype.findObject=un.prototype.fb,un.prototype.findInVisualTree=un.prototype.Nl,un.prototype.walkVisualTreeFrom=un.prototype.qm,un.prototype.findMainElement=un.prototype.Pb;var g1=!1,m1=null,Va=new Rn;un.className="Panel",un.definePanelLayout=Cl,Cl("Position",new fm),Cl("Vertical",new pm),Cl("Auto",new mm),Cl("Link",new bm);function pu(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}pu.prototype.copy=function(){var a=new pu;return a.lq=this.lq,a.F=this.F,a.ia=this.ia,a.V=this.V,a.u=this.u,a.j=this.j,a.o=this.o,a.Zh=this.Zh,a},pu.className="GradPanelSettings";function va(){this.Pc=[],this.Oc=[],this.j=this.ob=km,this.hb=this.Hb=0,this.Qp=Ra,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}va.prototype.copy=function(a){for(var y=new va,x=this.Pc,b=x.length,tt=y.Pc,et=0;eta&&ti(a,">= 0",Rr,"height"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("height",y,a))}},width:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&ti(a,">= 0",Rr,"width"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("width",y,a))}},minimum:{get:function(){return this.jj},set:function(a){var y=this.jj;y!==a&&((0>a||!isFinite(a))&&ti(a,">= 0",Rr,"minimum"),this.jj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("minimum",y,a))}},maximum:{get:function(){return this.hj},set:function(a){var y=this.hj;y!==a&&(0>a&&ti(a,">= 0",Rr,"maximum"),this.hj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("maximum",y,a))}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(this.Jb=a.J(),this.panel!==null&&this.panel.v(),this.Ob("alignment",y,a))}},stretch:{get:function(){return this.hg},set:function(a){var y=this.hg;y!==a&&(this.hg=a,this.panel!==null&&this.panel.v(),this.Ob("stretch",y,a))}},separatorPadding:{get:function(){return this.dg},set:function(a){typeof a=="number"&&(a=new Yn(a));var y=this.dg;a!==null&&y!==null&&y.D(a)||(a!==null&&(a=a.J()),this.dg=a,this.panel!==null&&this.panel.v(),this.Ob("separatorPadding",y,a))}},separatorStroke:{get:function(){return this.lo},set:function(a){var y=this.lo;y!==a&&(a!==null&&mf(a,"RowColumnDefinition.separatorStroke"),a instanceof bi&&a.freeze(),this.lo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",y,a))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(a){var y=this.mo;y!==a&&(this.mo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",y,a))}},separatorDashArray:{get:function(){return this.tj},set:function(a){var y=this.tj;if(y!==a){if(a!==null){for(var x=a.length,b=0,tt=0;tttt)){var et=b.measuredBounds,nt=Math.max(1,et.width);et=et.height;for(var ht=x[0],gt=x[1],bt,Pt,Nt,zt,Vt,Zt,oe=0,Pe=oi(),de=2;deNt&&(Nt=1),tt=x=Nt,bt=nt/2,Pt=bt!==0,de=0,Zt=Pe[de],Nt=Zt[0],Vt=Zt[1],zt=Zt[2],Zt=Zt[3];for(var Le=0;.1<=oe;){if(Le===0&&(Pt?(tt=x,tt-=bt,oe-=bt,Pt=!1):tt=x,tt===0&&(tt=1)),tt>oe){ri(Pe);return}tt>Zt?(Le=tt-Zt,tt=Zt):Le=0;var Oe=Math.sqrt(tt*tt/(1+zt*zt));if(0>Nt&&(Oe=-Oe),ht+=Oe,gt+=zt*Oe,a.translate(ht,gt),a.rotate(Vt),a.translate(-(nt/2),-(et/2)),Le===0&&b.hh(a,y),a.translate(nt/2,et/2),a.rotate(-Vt),a.translate(-ht,-gt),oe-=tt,Zt-=tt,Le!==0){if(de++,de===Pe.length){ri(Pe);return}Zt=Pe[de],Nt=Zt[0],Vt=Zt[1],zt=Zt[2],Zt=Zt[3],tt=Le}}ri(Pe)}}ee.hh=function(a,y){var x=this.xc,b=this.Ui;if(x!==null||b!==null){var tt=this.ua;if(tt!==null){a.yc();var et=this.actualBounds,nt=this.naturalBounds;b!==null&&vr(this,a,b,!0,!1,nt,et);var ht=this.part,gt=this.ig;if(x===null||gt!==0||ht===null||!this.isPanelMain&&ht.Pb()!==this||(gt=ht.type===un.Link&&ht instanceof di&&ht.category==="Selection"&&ht.adornedObject instanceof Wn&&ht.adornedPart.Pb()===ht.adornedObject?ht.adornedObject.strokeWidth:0),gt===0&&(x=null),x!==null&>!==0&&(vr(this,a,x,!1,!1,nt,et),a.lineWidth=gt,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),et=!1,ht&&y.Gf("drawShadows")&&(et=ht.isShadowed),a.Il===!1&&(et=!1),ht=!0,x===null||b!==null&&b!=="transparent"||(ht=!1),nt=!1,gt=this.strokeDashArray,gt!==null&&(nt=!0,a.js(gt,this.strokeDashOffset)),tt.type===pn.j)a.beginPath(),a.moveTo(tt.startX,tt.startY),a.lineTo(tt.endX,tt.endY),x!==null&&a.jk(),a.Se();else if(tt.type===pn.u){var bt=tt.startX;gt=tt.startY;var Pt=tt.endX,Nt=tt.endY;tt=Math.min(bt,Pt);var zt=Math.min(gt,Nt);bt=Math.abs(Pt-bt),gt=Math.abs(Nt-gt),a.beginPath(),a.rect(tt,zt,bt,gt),b!==null&&a.ng(b),x!==null&&(ht&&et&&zl(a),a.jk(),ht&&et&&hu(a)),a.Se()}else if(tt.type===pn.F)bt=tt.startX,gt=tt.startY,Pt=tt.endX,Nt=tt.endY,tt=Math.abs(Pt-bt)/2,zt=Math.abs(Nt-gt)/2,bt=Math.min(bt,Pt)+tt,gt=Math.min(gt,Nt)+zt,a.beginPath(),a.moveTo(bt,gt-zt),a.bezierCurveTo(bt+Ge.wg*tt,gt-zt,bt+tt,gt-Ge.wg*zt,bt+tt,gt),a.bezierCurveTo(bt+tt,gt+Ge.wg*zt,bt+Ge.wg*tt,gt+zt,bt,gt+zt),a.bezierCurveTo(bt-Ge.wg*tt,gt+zt,bt-tt,gt+Ge.wg*zt,bt-tt,gt),a.bezierCurveTo(bt-tt,gt-Ge.wg*zt,bt-Ge.wg*tt,gt-zt,bt,gt-zt),a.closePath(),b!==null&&a.ng(b),x!==null&&(ht&&et&&zl(a),a.jk(),ht&&et&&hu(a)),a.Se();else if(tt.type===pn.o)for(tt=tt.figures,gt=tt.length,zt=0;ztoe.sweepAngle,Vt!==null?Vt.endX:bt.startX,Vt!==null?Vt.endY:bt.startY)}else if(Vt=Bs(oe,bt),Pe=Vt.length,Pe===0)a.lineTo(oe.centerX,oe.centerY);else for(var de=0;de(x.startX-x.endX)*(a.x-x.endX)+(x.startY-x.endY)*(a.y-x.endY)||0>b)?!1:($e.free(et),Ge.Yb(x.startX,x.startY,x.endX,x.endY,tt,a.x,a.y));if(x.type===pn.u){y=x.startX;var nt=x.startY,ht=x.endX;if(x=x.endY,et.x=Math.min(y,ht),et.y=Math.min(nt,x),et.width=Math.abs(ht-y),et.height=Math.abs(x-nt),this.fill===null){if(et.Bc(-b,-b),et.ca(a))return $e.free(et),!1;et.Bc(b,b)}return this.stroke!==null&&et.Bc(tt,tt),a=et.ca(a),$e.free(et),a}if(x.type===pn.F){nt=x.startX,tt=x.startY,ht=x.endX;var gt=x.endY;if(x=Math.min(nt,ht),y=Math.min(tt,gt),nt=Math.abs(ht-nt)/2,tt=Math.abs(gt-tt)/2,x=a.x-(x+nt),y=a.y-(y+tt),this.fill===null){if(nt-=b,tt-=b,0>=nt||0>=tt||1>=x*x/(nt*nt)+y*y/(tt*tt))return $e.free(et),!1;nt+=b,tt+=b}return this.stroke!==null&&(nt+=b,tt+=b),$e.free(et),0>=nt||0>=tt?!1:1>=x*x/(nt*nt)+y*y/(tt*tt)}if(x.type===pn.o)return $e.free(et),this.fill===null?ph(x,a.x,a.y,tt):eu(x,a,tt,1=this.strokeWidth)Pt=Ge.Ve(bt.startX,bt.startY,bt.endX,bt.endY,et,nt,ht,gt,tt);else{if(bt.startX===bt.endX?(b=Nt,Pt=0):(y=(bt.endY-bt.startY)/(bt.endX-bt.startX),Pt=Nt/Math.sqrt(1+y*y),b=Pt*y),y=oi(),a=new Ee,Ge.Ve(bt.startX+b,bt.startY+Pt,bt.endX+b,bt.endY+Pt,et,nt,ht,gt,a)&&y.push(a),a=new Ee,Ge.Ve(bt.startX-b,bt.startY-Pt,bt.endX-b,bt.endY-Pt,et,nt,ht,gt,a)&&y.push(a),a=new Ee,Ge.Ve(bt.startX+b,bt.startY+Pt,bt.startX-b,bt.startY-Pt,et,nt,ht,gt,a)&&y.push(a),a=new Ee,Ge.Ve(bt.endX+b,bt.endY+Pt,bt.endX-b,bt.endY-Pt,et,nt,ht,gt,a)&&y.push(a),ht=y.length,ht===0)return ri(y),!1;for(Pt=!0,gt=1/0,b=0;bMath.abs(x)){if(gt=nt-Pt-x*(et-b),0>a*a*x*x+bt*bt-gt*gt){tt.x=NaN,tt.y=NaN,Pt=!1;break t}Nt=Math.sqrt(a*a*x*x+bt*bt-gt*gt),ht=(-(a*a*x*gt)+a*bt*Nt)/(bt*bt+a*a*x*x)+b,a=(-(a*a*x*gt)-a*bt*Nt)/(bt*bt+a*a*x*x)+b,bt=x*(ht-b)+gt+Pt,gt=x*(a-b)+gt+Pt,Math.abs((et-ht)*(et-ht))+Math.abs((nt-bt)*(nt-bt))ht){tt.x=NaN,tt.y=NaN,Pt=!1;break t}gt=Math.sqrt(ht),ht=Pt+gt,gt=Pt-gt,Math.abs(ht-nt)Math.abs(Zt)?(oe*=.5/Zt,Zt=.5):oe!==0&&.5>Math.abs(oe)&&(Zt*=.5/oe,oe=.5),de-=Zt,Le-=oe;Vt.contains(de,Le);)de-=Zt,Le-=oe;for(tt.x=ht,tt.y=gt,oe=0;oex?a-x:x-a)<(y>b?y-b:b-y)?(a=ya||Ge.$(gt.y,a))&&(gt.yy||Ge.$(gt.x,y))&&(gt.x=a&&b<=y):(a=b&&x<=a)}ee.tx=function(a,y,x){function b(Pe,de){for(var Le=Pe.length,Oe=0;Oett)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var tt=a.Bf(y),et=tt;if(1.5=tt||aa(y,et,0,-Nt)>=tt||aa(y,et,0,Nt)>=tt||aa(y,et,Pt,0)>=tt)}else if(y.type===pn.o){if(bt=y.bounds,et=bt.x,ht=bt.y,gt=bt.x+bt.width,bt=bt.y+bt.height,a.x>gt&&a.xbt&&a.ytt&&Zr(a.x,a.y,et,ht,gt,ht)>tt&&Zr(a.x,a.y,gt,bt,et,bt)>tt&&Zr(a.x,a.y,gt,bt,gt,ht)>tt)return!1;if(et=Math.sqrt(tt),x){if(this.fill===null?ph(y,a.x,a.y,et):eu(y,a,et,!0,!1))return!0}else{for(x=y.figures,y=0;ytt)return!1;for(ht=et.segments.s,gt=ht.length,bt=0;bttt)return!1;break;case Mo:var zt=oi();if(Ge.Qe(nt,Pt,Nt.point1X,Nt.point1Y,Nt.point2X,Nt.point2Y,Nt.endX,Nt.endY,.8,zt),nt=b(zt,a),ri(zt),nt||(nt=Nt.endX,Pt=Nt.endY,a.zd(nt,Pt)>tt))return!1;break;case Qs:if(zt=oi(),Ge.ep(nt,Pt,Nt.point1X,Nt.point1Y,Nt.endX,Nt.endY,.8,zt),nt=b(zt,a),ri(zt),nt||(nt=Nt.endX,Pt=Nt.endY,a.zd(nt,Pt)>tt))return!1;break;case Dr:case ua:zt=Nt.type===Dr?Bs(Nt,et):Aa(Nt,et,nt,Pt);var Vt=zt.length;if(Vt===0){if(nt=Nt.type===Dr?Nt.centerX:Nt.endX,Pt=Nt.type===Dr?Nt.centerY:Nt.endY,a.zd(nt,Pt)>tt)return!1;break}Nt=null;for(var Zt=oi(),oe=0;oe= 0",Wn,"strokeWidth:value")}},strokeCap:{get:function(){return this.Na!==null?this.Na.Hr:"butt"},set:function(a){var y=this.strokeCap;y!==a&&(typeof a!="string"||a!=="butt"&&a!=="round"&&a!=="square"?ti(a,'"butt", "round", or "square"',Wn,"strokeCap"):(Mc(this),this.Na.Hr=a,this.N(),this.g("strokeCap",y,a)))}},strokeJoin:{get:function(){return this.Na!==null?this.Na.Ir:"miter"},set:function(a){var y=this.strokeJoin;y!==a&&(typeof a!="string"||a!=="miter"&&a!=="bevel"&&a!=="round"?ti(a,'"miter", "bevel", or "round"',Wn,"strokeJoin"):(Mc(this),this.Na.Ir=a,this.N(),this.g("strokeJoin",y,a)))}},strokeMiterLimit:{get:function(){return this.Na!==null?this.Na.Jr:10},set:function(a){var y=this.strokeMiterLimit;if(y!==a&&1<=a){Mc(this),this.Na.Jr=a,this.N();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeMiterLimit",y,a)}}},strokeDashArray:{get:function(){return this.Yg},set:function(a){var y=this.Yg;if(y!==a){if(a!==null){for(var x=a.length,b=0,tt=0;tta?a=0:1a?a=0:1(Nt*Nt+Pt*Pt)*zt*zt&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof Gs&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,Nt=this.spacingBelow,this.flip){case ui:a.translate(tt,0),a.scale(-1,1);break;case Kn:a.translate(0,et),a.scale(1,-1);break;case Ai:a.translate(tt,et),a.scale(-1,-1)}if(a.yc(),Pt=this.Gc,zt=(y+nt+Nt)*Pt,et>zt&&(b=this.verticalAlignment,b=b.y*et-b.y*zt+b.offsetY),Pt===1&&this.ze!==null)Nt=this.Cb,Nt>tt&&(Nt=tt),this.Oj(this.ze,a,0,b+y,tt,nt,Nt,x,ht,gt,bt);else if(this.Qc!==null&&this.Qb!==null)for(zt=0;zttt&&(Vt=tt),b+=y,this.Oj(this.Qb[zt],a,0,b,tt,nt,Vt,x,ht,gt,bt),b+=nt+Nt}switch(this.flip){case ui:a.scale(-1,1),a.translate(-tt,0);break;case Kn:a.scale(1,-1),a.translate(0,-et);break;case Ai:a.scale(-1,-1),a.translate(-tt,-et)}}},ee.Oj=function(a,y,x,b,tt,et,nt,ht,gt,bt,Pt){var Nt=0;if(ht)gt==="left"?Nt=0:gt==="right"?Nt=tt-nt:gt==="center"&&(Nt=(tt-nt)/2),y.fillRect(x+Nt,b+.25*et,nt,1);else{if(gt==="left"?Nt=0:gt==="right"?Nt=tt:gt==="center"&&(Nt=tt/2),tt=_m!==null?_m(this,et):.75*et,y.fillText(a,x+Nt,b+tt),a=et/20|0,a===0&&(a=1),gt==="right"?Nt-=nt:gt==="center"&&(Nt-=nt/2),bt){ht=Om!==null?Om(this,et):.8*et,gt=x+Nt,bt=b+ht,tt=x+Nt+nt,ht=b+ht;var zt=a;y.beginPath(),y.lineWidth=zt,y.moveTo(gt,bt),y.lineTo(tt,ht),y.stroke(),y.Se(),y instanceof Gs&&y.ad.classList.add("gojs-td")}Pt&&(Pt=b+et-et/2.2|0,a%2!==0&&(Pt+=.5),b=x+Nt,et=Pt,x=x+Nt+nt,nt=Pt,Nt=a,y.beginPath(),y.lineWidth=Nt,y.moveTo(b,et),y.lineTo(x,nt),y.stroke(),y.Se(),y instanceof Gs&&y.ad.classList.add("gojs-td"))}},ee.kk=function(a,y,x){if(!ze.prototype.kk.call(this,a,y,x))return!1;if(vr(this,a,this.xc,!0,!1,this.naturalBounds,this.actualBounds),x){if(this.svg.getElementsByTagName("text").length===0)return!0;for(y=this.svg.getElementsByClassName("gojs-td"),x=0;xa.transactionLevel&&pr("Ending transaction without having started a transaction: "+x);var b=a.transactionLevel===1,tt=a.currentTransaction;b&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,tt));var et=0;if(0=b&&(et=y.M(0),et!==null&&et.clear(),y.mb(0),a.Ce--)),b===0||y.count!==0&&y.get(y.count-1)===tt||(y.add(tt),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,tt);else{a.Fe=!0;try{a.isEnabled&&tt!==null&&(tt.isComplete=!0,tt.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,tt),a.Fe=!1}tt!==null&&tt.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&tt!==null){for(a=et,x=tt.changes,tt=x.count-1;tt>=a;tt--)y=x.M(tt),y!==null&&y.undo(),x.ka(),x.mb(tt);x.freeze()}return!1}ee.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var a=this.history;a.ka();for(var y=a.count-1;y>this.historyIndex;y--){var x=a.M(y);x!==null&&x.clear(),a.mb(y),this.rq=!0}a.freeze()}},or.prototype.canUndo=function(){if(!this.isEnabled||0=this.transactionLevel&&!this.tt&&(a=a.diagram,a!==null&&a.pi===!1||pr("Change not within a transaction: "+x.toString()))}},or.prototype.skipsEvent=function(a){if(a===null||0>a.change.value)return!0;if(a=a.object,a===null)return!1;if(a.layer!==void 0){if(a=a.layer,a!==null&&a.isTemporary)return!0}else if(a.isTemporary)return!0;return!1},qe.Object.defineProperties(or.prototype,{models:{get:function(){return this.Pt.iterator}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},transactionToUndo:{get:function(){return 0<=this.historyIndex&&this.historyIndex<=this.history.count-1?this.history.M(this.historyIndex):null}},transactionToRedo:{get:function(){return this.historyIndextt||Math.abs(y.y-a.y)>b},qe.Object.defineProperties(fi.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof Ye&&(this.H=a)}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},isActive:{get:function(){return this.nb},set:function(a){this.nb=a}},transactionResult:{get:function(){return this.wm},set:function(a){this.wm=a}}}),fi.prototype.startTransaction=fi.prototype.Ea,fi.className="Tool";function $i(){fi.call(this),this.name="ToolManager",this.hb=new vn,this.ob=new vn,this.Hb=new vn,this.F=this.V=850,this.o=new xn(2,2).ja(),this.Ha=5e3,this.ia=oc,this.u=Gf,this.Mp=this.j=null,this.zj=-1}en($i,fi),$i.prototype.initializeStandardTools=function(){},$i.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof di&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},$i.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===iu&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===mh){y.bubbles=!0;return}if(this.gestureBehavior===iu)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,b=0;btt.right&&(x.x-=b.width+5/y.scale),x.xtt.bottom?x.y-(b.height+5/y.scale):x.y+20/y.scale,x.yx.pointsCount)){var b=a.diagram;if(!b.isReadOnly){var tt=a.Oe;if(tt!==null){var et=null,nt=null;x.fromNode===null&&(et=Fg(a,x.i(0),!1),et!==null&&(nt=et.part));var ht=null,gt=null;x.toNode===null&&(ht=Fg(a,x.i(x.pointsCount-1),!0),ht!==null&&(gt=ht.part)),tt.isValidLink(nt,et,gt,ht)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=nt,et!==null&&(x.fromPortId=et.portId),x.toNode=gt,ht!==null&&(x.toPortId=ht.portId),x.fromPort!==b.Mx&&b.R("LinkRelinked",x,b.Mx),x.toPort!==b.Nx&&b.R("LinkRelinked",x,b.Nx)):Wf(tt,nt,et,gt,ht):Wf(tt,null,null,null,null)}}}}sr.prototype.doDragOver=function(){};function Tu(a,y){var x=a.diagram;a.dragsLink&&Lu(a,!0),vh(a);var b=a.findDragOverObject(y),tt=x.lastInput;if(tt.targetObject=b,b!==null){tt.handled=!1;for(var et=b;et!==null;){var nt=et.mouseDrop;if(nt!==null&&(nt(tt,et),tt.handled))break;J0(a,tt,et),et=np(et)}}else et=x.mouseDrop,et!==null&&et(tt);if(a.isActive||yo!==null){for(tt=(a.copiedParts||a.draggedParts).iterator;tt.next();)et=tt.key,et instanceof wn&&et.linksConnected.each(function(ht){ht.suspendsRouting=!1});if(a.doDropOnto(y,b),a.isActive||yo!==null){for(a=$e.alloc(),y=x.selection.iterator;y.next();)b=y.value,b instanceof wn&&q0(x,b,a);$e.free(a)}}}function J0(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof Un||(x=a.mouseDrop,x!==null&&x(y))}function q0(a,y,x){var b=!1;if(x=y.getAvoidableRect(x),a.viewportBounds.Re(x)&&(b=!0),a=a.Nu(x,function(tt){return tt.part},function(tt){return tt instanceof cn},!0,function(tt){return tt instanceof cn},b),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}sr.prototype.doDropOnto=function(){},sr.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;this.simulatedMouseMove(y.event,y.documentPoint,y.targetDiagram)||this.currentPart===null||this.draggedParts===null||(this.mayCopy()?(ru(this,!1),rd(a,this.copiedParts),Sl(this,this.copiedParts,!1),Lh(a,this.copiedParts)):this.mayMove()?(za(this),Sl(this,this.draggedParts,!0)):this.mayDragOut()?(ru(this,!1),Sl(this,this.copiedParts,!1)):za(this),Hf(this,a.lastInput.documentPoint))}},sr.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;if(!this.simulatedMouseUp(y.event,y.documentPoint,y.targetDiagram)){y=!1;var x=this.mayCopy();if(x&&this.copiedParts!==null?(za(this),ru(this,!0),rd(a,this.copiedParts),Sl(this,this.copiedParts,!1),Lh(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(tt){tt.isSelected=!0}))):(y=!0,za(this),this.mayMove()&&(Sl(this,this.draggedParts,!0),Hf(this,a.lastInput.documentPoint))),this.Ym=!0,Tu(this,a.lastInput.documentPoint),this.isActive){var b=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&$0(this),a.Ya(),Lh(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",b)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},sr.prototype.simulatedMouseMove=function(a,y,x){if(yo===null)return!1;var b=yo.diagram;x instanceof Ye||(x=null);var tt=_u;return x!==tt&&(tt!==null&&tt!==b&&(tt.ug(),yo.isDragOutStarted=!1,tt=tt.toolManager.findTool("Dragging"),tt!==null&&tt.doSimulatedDragLeave()),_u=x,x!==null&&x!==b&&(tp(),tt=x.toolManager.findTool("Dragging"),tt!==null&&(Nl.contains(tt)||Nl.add(tt),tt.doSimulatedDragEnter())),this.doUpdateCursor(null)),x===null||x===b||!x.allowDrop||x.isReadOnly||!x.allowInsert?!1:(b=x.toolManager.findTool("Dragging"),b!==null&&(a!==null&&(a.targetTouches!==void 0&&(0nt&&(nt=bt),Pt>ht&&(ht=Pt))}}for(b===1/0?et.h(0,0,0,0):et.h(b,tt,nt-b,ht-tt),b=et.x+et.width/2,tt=et.y+et.height/2,$e.free(et),et=a.Fr,nt=new Rn,ht=Ee.alloc(),gt=y.iterator;gt.next();)bt=gt.value,bt instanceof cn&&bt.canCopy()&&(Pt=x.I(bt),Pt!==null&&(Pt.points=bt.points,Qu(Pt,et.x-b,et.y-tt),Pt.suspendsRouting=!0,nt.add(Pt,a.Pd())));for(y=y.iterator;y.next();)bt=y.value,bt.Zc()&&bt.canCopy()&&(gt=x.I(bt),gt!==null&&(bt=bt.location,ht.h(et.x-(b-bt.x),et.y-(tt-bt.y)),gt.location=ht,gt.Va(),nt.add(gt,a.Pd(ht))));Ee.free(ht),a.copiedParts=nt,Uf(a,nt.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Qu(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}sr.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},sr.prototype.computeMove=function(a,y,x,b){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,b):new Ee},qe.Object.defineProperties(sr.prototype,{isCopyEnabled:{get:function(){return this.ob},set:function(a){this.ob=a}},copiesEffectiveCollection:{get:function(){return this.u},set:function(a){this.u=a}},dragOptions:{get:function(){return this.ia},set:function(a){this.ia=a}},isGridSnapEnabled:{get:function(){return this.dragOptions.isGridSnapEnabled},set:function(a){this.dragOptions.isGridSnapEnabled=a}},isComplexRoutingRealtime:{get:function(){return this.hb},set:function(a){this.hb=a}},isGridSnapRealtime:{get:function(){return this.dragOptions.isGridSnapRealtime},set:function(a){this.dragOptions.isGridSnapRealtime=a}},gridSnapCellSize:{get:function(){return this.dragOptions.gridSnapCellSize},set:function(a){this.dragOptions.gridSnapCellSize.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSize=a)}},gridSnapCellSpot:{get:function(){return this.dragOptions.gridSnapCellSpot},set:function(a){this.dragOptions.gridSnapCellSpot.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSpot=a)}},gridSnapOrigin:{get:function(){return this.dragOptions.gridSnapOrigin},set:function(a){this.dragOptions.gridSnapOrigin.D(a)||(a=a.J(),this.dragOptions.gridSnapOrigin=a)}},dragsLink:{get:function(){return this.dragOptions.dragsLink},set:function(a){this.dragOptions.dragsLink=a}},dragsTree:{get:function(){return this.dragOptions.dragsTree},set:function(a){this.dragOptions.dragsTree=a}},copyCursor:{get:function(){return this.F},set:function(a){this.F=a}},moveCursor:{get:function(){return this.Oc},set:function(a){this.Oc=a}},nodropCursor:{get:function(){return this.Pc},set:function(a){this.Pc=a}},currentPart:{get:function(){return this.V},set:function(a){this.V=a}},copiedParts:{get:function(){return this.o},set:function(a){this.o=a}},draggedParts:{get:function(){return this.Ha},set:function(a){this.Ha=a}},draggingParts:{get:function(){return this.copiedParts!==null?this.copiedParts.Lf():this.draggedParts!==null?this.draggedParts.Lf():this.te}},draggedLink:{get:function(){return this.diagram.draggedLink},set:function(a){this.diagram.draggedLink=a}},isDragOutStarted:{get:function(){return this.Hb},set:function(a){this.Hb=a}},startPoint:{get:function(){return this.Fr},set:function(a){this.Fr.D(a)||this.Fr.assign(a)}},delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}}}),sr.prototype.getDraggingSource=sr.prototype.Az;var yo=null,_u=null;sr.className="DraggingTool",Nl=new vn,br("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),$i.prototype.doCancel=function(){yo!==null&&yo.doCancel(),fi.prototype.doCancel.call(this)};function Sr(){fi.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new cn,y=new Wn;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Wn,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new wn,y=new Wn,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=zi,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new wn,y=new Wn,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=zi,a.add(y),a.selectable=!1,a.layerName="Tool",this.Di=a,this.o=y,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new Rn,this.Of=this.gj=this.Pf=null}en(Sr,fi),Sr.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},Sr.prototype.copyPortProperties=function(a,y,x,b,tt){if(a!==null&&y!==null&&x!==null&&b!==null){var et=y.Df(),nt=xn.alloc();nt.width=y.naturalBounds.width*et,nt.height=y.naturalBounds.height*et,b.desiredSize=nt,xn.free(nt),tt?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=wi,et=Ee.alloc(),x.location=y.ga(wi,et),Ee.free(et),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,b,tt)}},Sr.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=zi,y.fromSpot=$r,y.toSpot=$r),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},Sr.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},Sr.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof wn){var y=this.targetPort.part;this.isForwards?this.copyPortProperties(y,this.targetPort,this.temporaryToNode,this.temporaryToPort,!0):this.copyPortProperties(y,this.targetPort,this.temporaryFromNode,this.temporaryFromPort,!1)}else this.isForwards?this.setNoTargetPortProperties(this.temporaryToNode,this.temporaryToPort,!0):this.setNoTargetPortProperties(this.temporaryFromNode,this.temporaryFromPort,!1);(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},Sr.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof wn))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof wn)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(b===!1)break;a=a.panel}return null},Sr.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,b=this.portGravity;0>=b&&(b=.1);var tt=this,et=y.og(x,b,function(Nt){return tt.findValidLinkablePort(Nt,a)},null,!0);for(b=1/0,y=null,et=et.iterator;et.next();){var nt=et.value,ht=nt.part;if(ht instanceof wn){var gt=nt.ga(wi,Ee.alloc()),bt=x.x-gt.x,Pt=x.y-gt.y;Ee.free(gt),gt=bt*bt+Pt*Pt,gtx){if(this.originalLink!==null&&a===this.originalFromNode&&y===this.originalFromPort)return!0;if(y=y.portId,y===null&&(y=""),a.Mo(y).count>=x)return!1}return!0},Sr.prototype.isValidTo=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.toLinkable!==!0))return!1;var x=y.toMaxLinks;if(1/0>x){if(this.originalLink!==null&&a===this.originalToNode&&y===this.originalToPort)return!0;if(y=y.portId,y===null&&(y=""),a.Sd(y).count>=x)return!1}return!0},Sr.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},Sr.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof wn))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof wn))return!1;for(y=y.portId,y===null&&(y=""),y=b.Sd(y);y.next();)if(b=y.value,b.fromNode===x&&b.fromPortId===a)return!0;return!1},Sr.prototype.isValidLink=function(a,y,x,b){if(!this.isValidFrom(a,y)||!this.isValidTo(x,b)||!(y===null||b===null||(y.fromLinkableSelfNode&&b.toLinkableSelfNode||!this.isInSameNode(y,b))&&(y.fromLinkableDuplicates&&b.toLinkableDuplicates||!this.isLinked(y,b)))||this.originalLink!==null&&(a!==null&&this.isLabelDependentOnLink(a,this.originalLink)||x!==null&&this.isLabelDependentOnLink(x,this.originalLink))||a!==null&&x!==null&&(a.data===null&&x.data!==null||a.data!==null&&x.data===null)||!this.isValidCycle(a,x,this.originalLink))return!1;if(a!==null){var tt=a.linkValidation;if(tt!==null&&!tt(a,y,x,b,this.originalLink))return!1}return x!==null&&(tt=x.linkValidation,tt!==null&&!tt(a,y,x,b,this.originalLink))?!1:(tt=this.linkValidation,tt!==null?tt(a,y,x,b,this.originalLink):!0)},Sr.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var x=a.labeledLink;if(x===null)return!1;if(x===y)return!0;var b=new gn;return b.add(a),Ho(this,x,y,b)};function Ho(a,y,x,b){if(y===x)return!0;var tt=y.fromNode;return tt!==null&&tt.isLinkLabel&&(b.add(tt),Ho(a,tt.labeledLink,x,b))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(b.add(y),Ho(a,y.labeledLink,x,b))))}Sr.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var b=this.diagram.validCycle;if(b!==uf){if(b===jp){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=y.linksConnected;b.next();){var tt=b.value;if(tt!==x&&tt.isTreeLink&&tt.toNode===y)return!1}return!$o(this,a,y,x,!0)}if(b===Np){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=a.linksConnected;b.next();)if(tt=b.value,tt!==x&&tt.isTreeLink&&tt.fromNode===a)return!1;return!$o(this,a,y,x,!0)}if(b===Tp)return a===y?a=!0:(b=new gn,b.add(y),a=ts(this,b,a,y,x)),!a;if(b===_p)return!$o(this,a,y,x,!1);if(b===Op)return a===y?a=!0:(b=new gn,b.add(y),a=sc(this,b,a,y,x)),!a}return!0};function $o(a,y,x,b,tt){if(y===x)return!0;if(y===null||x===null)return!1;for(var et=y.linksConnected;et.next();){var nt=et.value;if(nt!==b&&(!tt||nt.isTreeLink)&&nt.toNode===y&&(nt=nt.fromNode,nt!==y&&$o(a,nt,x,b,tt)))return!0}return!1}function ts(a,y,x,b,tt){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var et=x.linksConnected;et.next();){var nt=et.value;if(nt!==tt&&nt.toNode===x&&(nt=nt.fromNode,nt!==x&&ts(a,y,nt,b,tt)))return!0}return!1}function sc(a,y,x,b,tt){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var et=x.linksConnected;et.next();){var nt=et.value;if(nt!==tt){var ht=nt.fromNode;if(nt=nt.toNode,ht=ht===x?nt:ht,ht!==x&&sc(a,y,ht,b,tt))return!0}}return!1}qe.Object.defineProperties(Sr.prototype,{portGravity:{get:function(){return this.te},set:function(a){0<=a&&(this.te=a)}},isUnconnectedLinkValid:{get:function(){return this.Ha},set:function(a){this.Ha=a}},linkingCursor:{get:function(){return this.u},set:function(a){this.u=a}},temporaryLink:{get:function(){return this.Ci},set:function(a){this.Ci=a}},temporaryFromNode:{get:function(){return this.Bi},set:function(a){(this.Bi=a)&&(this.j=a.port)}},temporaryFromPort:{get:function(){return this.j},set:function(a){if(this.j!==null){var y=this.j.panel;if(y!==null){var x=y.O.indexOf(this.j);y.mb(x),y.Gb(x,a)}}this.j=a}},temporaryToNode:{get:function(){return this.Di},set:function(a){(this.Di=a)&&(this.o=a.port)}},temporaryToPort:{get:function(){return this.o},set:function(a){if(this.o!==null){var y=this.o.panel;if(y!==null){var x=y.O.indexOf(this.o);y.mb(x),y.Gb(x,a)}}this.o=a}},originalLink:{get:function(){return this.Hb},set:function(a){this.Hb=a}},originalFromNode:{get:function(){return this.hb},set:function(a){this.hb=a}},originalFromPort:{get:function(){return this.ob},set:function(a){this.ob=a}},originalToNode:{get:function(){return this.Oc},set:function(a){this.Oc=a}},originalToPort:{get:function(){return this.Pc},set:function(a){this.Pc=a}},isForwards:{get:function(){return this.ia},set:function(a){this.ia=a}},validPortsCache:{get:function(){return this.hy}},targetPort:{get:function(){return this.Pf},set:function(a){this.Pf=a}},linkValidation:{get:function(){return this.gj},set:function(a){this.gj=a}},portTargeted:{get:function(){return this.Of},set:function(a){this.Of=a}}}),Sr.className="LinkingBaseTool";function es(){Sr.call(this),this.name="Linking",this.V={},this.F=null,this.K=yh,this.Xd=null}en(es,Sr),es.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return a.isReadOnly||a.isModelReadOnly||!a.allowLink||!a.model.xs()||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize()?!1:this.findLinkablePort()!==null},es.prototype.findLinkablePort=function(){var a=this.diagram,y=this.startObject;if(y===null&&(y=a.ic(a.firstInput.documentPoint,null,null)),y===null||(a=y.part,!(a instanceof wn)))return null;var x=this.direction;if(x===yh||x===Rg){var b=this.findValidLinkablePort(y,!1);if(b!==null||this.startObject===a&&(b=a.port,this.findValidLinkablePort(b,!1)))return this.isForwards=!0,b}return(x===yh||x===zg)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},es.prototype.doActivate=function(){var a=this.diagram,y=this.findLinkablePort();y===null?this.stopTool():(this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.isForwards?(this.temporaryToNode!==null&&(this.temporaryToNode.location=a.lastInput.documentPoint),this.originalFromPort=y,y=this.originalFromPort.part,y instanceof wn&&(this.originalFromNode=y),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(this.temporaryFromNode!==null&&(this.temporaryFromNode.location=a.lastInput.documentPoint),this.originalToPort=y,y=this.originalToPort.part,y instanceof wn&&(this.originalToNode=y),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),a.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),a.add(this.temporaryToNode),this.temporaryToNode&&this.temporaryToNode.Va(),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0)},es.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},es.prototype.doStop=function(){Sr.prototype.doStop.call(this),this.startObject=null},es.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,b=null,tt=null,et=null;try{var nt=this.targetPort=this.findTargetPort(this.isForwards);if(nt!==null){var ht=nt.part;ht instanceof wn&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),b=ht,tt=nt):(y=ht,x=nt,this.originalToNode!==null&&(b=this.originalToNode,tt=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(b=this.originalToNode,tt=this.originalToPort);y!==null||b!==null?(et=this.insertLink(y,x,b,tt),et!==null?(nt===null&&(this.isForwards?et.defaultToPoint=a.lastInput.documentPoint:et.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),et.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",et)):this.doNoLink(y,x,b,tt)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),et&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},es.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof cn)return a.isTreeLink;var y=this.diagram;return y===null?!0:(a=y.partManager.getLinkCategoryForData(a),y=y.partManager.findLinkTemplateForCategory(a),y!==null?y.isTreeLink:!0)},es.prototype.insertLink=function(a,y,x,b){return this.diagram.partManager.insertLink(a,y,x,b)},es.prototype.doNoLink=function(){},qe.Object.defineProperties(es.prototype,{archetypeLinkData:{get:function(){return this.V},set:function(a){this.V=a}},archetypeLabelNodeData:{get:function(){return this.F},set:function(a){this.F=a}},direction:{get:function(){return this.K},set:function(a){this.K=a}},startObject:{get:function(){return this.Xd},set:function(a){this.Xd=a}}});var yh=new sn(es,"Either",0),Rg=new sn(es,"ForwardsOnly",0),zg=new sn(es,"BackwardsOnly",0);es.className="LinkingTool",es.Either=yh,es.ForwardsOnly=Rg,es.BackwardsOnly=zg;function Js(){Sr.call(this),this.name="Relinking";var a=new Wn;a.figure="Diamond",a.desiredSize=Qr,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Wn,a.figure="Diamond",a.desiredSize=Qr,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new $e}en(Js,Sr),Js.prototype.updateAdornments=function(a){if(a!==null&&a instanceof cn){var y="RelinkFrom",x=null;if(a.isSelected&&!this.diagram.isReadOnly){var b=a.selectionObject;b!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&b.actualBounds.w()&&b.Ed()&&(x=a.Pj(y),x===null&&(x=this.makeAdornment(b,!1),a.bh(y,x)))}x===null&&a.Jf(y),y="RelinkTo",x=null,a.isSelected&&!this.diagram.isReadOnly&&(b=a.selectionObject,b!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&b.actualBounds.w()&&b.Ed()&&(x=a.Pj(y),x===null?(x=this.makeAdornment(b,!0),a.bh(y,x)):x.v())),x===null&&a.Jf(y)}},Js.prototype.makeAdornment=function(a,y){var x=new di;return x.type=un.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},Js.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowRelink||!a.model.xs()||!a.lastInput.left)return!1;var y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom");return y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo")),y!==null},Js.prototype.doActivate=function(){var a=this.diagram;if(this.originalLink===null){var y=this.handle;if(y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom"),y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo"))),y===null)return;var x=y.part;if(!(x instanceof di&&x.adornedPart instanceof cn))return;this.handle=y,this.isForwards=x===null||x.category==="RelinkTo",this.originalLink=x.adornedPart}this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.originalFromPort=this.originalLink.fromPort,this.originalFromNode=this.originalLink.fromNode,this.originalToPort=this.originalLink.toPort,this.originalToNode=this.originalLink.toNode,this.Ew.set(this.originalLink.actualBounds),this.originalLink!==null&&0y.firstPickIndex+1&&x=x.x)y=0>=x.y?y+225:1<=x.y?y+135:y+180;else if(1<=x.x)0>=x.y?y+=315:1<=x.y&&(y+=45);else if(0>=x.y)y+=270;else if(1<=x.y)y+=90;else break t;0>y?y+=360:360<=y&&(y-=360),a.cursor=22.5>y?"e-resize":67.5>y?"se-resize":112.5>y?"s-resize":157.5>y?"sw-resize":202.5>y?"w-resize":247.5>y?"nw-resize":292.5>y?"n-resize":337.5>y?"ne-resize":"e-resize"}else if(a instanceof un)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},No.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowResize&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},No.prototype.doActivate=function(){var a=this.diagram;this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null&&(this.adornedObject=this.handle.part.adornedObject,this.adornedObject!==null&&(a.isMouseCaptured=!0,a.animationManager.Cc(),this.Ea(this.name),this.Xq.set(this.adornedObject.ga(this.handle.alignment.gv())),this.Tn.set(this.adornedObject.part.location),this.Dw.set(this.adornedObject.desiredSize),this.pt=this.computeCellSize(),this.rt=this.computeMinSize(),this.qt=this.computeMaxSize(),this.isActive=!0))},No.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},No.prototype.stopTransaction=function(){var a=this.diagram,y=fi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},No.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},No.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,tt=this.adornedObject.qs(a.lastInput.documentPoint,Ee.alloc()),et=this.computeReshape();y=this.computeResize(tt,this.handle.alignment,y,x,b,et),this.resize(y),a.bd(),Ee.free(tt)}},No.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,tt=this.adornedObject.qs(a.lastInput.documentPoint,Ee.alloc()),et=this.computeReshape();y=this.computeResize(tt,this.handle.alignment,y,x,b,et),this.resize(y),Ee.free(tt),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},No.prototype.resize=function(a){var y=this.diagram,x=this.adornedObject;if(x!==null){if(x.desiredSize=a.size,a=x.part,a.Va(),x=x.ga(this.handle.alignment.gv()),a instanceof Un){var b=new vn;if(b.add(a),!this.dragsMembers&&a.placeholder===null){var tt=new mt;tt.dragsMembers=!1}y.moveParts(b,this.oppositePoint.copy().re(x),!0,tt)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},No.prototype.computeResize=function(a,y,x,b,tt,et){y.Mc()&&(y=wi);var nt=this.adornedObject.naturalBounds,ht=nt.x,gt=nt.y,bt=nt.x+nt.width,Pt=nt.y+nt.height,Nt=1;if(!et){Nt=nt.width;var zt=nt.height;0>=Nt&&(Nt=1),0>=zt&&(zt=1),Nt=zt/Nt}return zt=Ee.alloc(),Ge.No(a.x,a.y,ht,gt,tt.width,tt.height,zt),a=nt.copy(),0>=y.x?0>=y.y?(a.x=Math.max(zt.x,bt-b.width),a.x=Math.min(a.x,bt-x.width),a.width=Math.max(bt-a.x,x.width),a.y=Math.max(zt.y,Pt-b.height),a.y=Math.min(a.y,Pt-x.height),a.height=Math.max(Pt-a.y,x.height),et||(1<=a.height/a.width?(a.height=Math.max(Math.min(Nt*a.width,b.height),x.height),a.width=a.height/Nt):(a.width=Math.max(Math.min(a.height/Nt,b.width),x.width),a.height=Nt*a.width),a.x=bt-a.width,a.y=Pt-a.height)):1<=y.y?(a.x=Math.max(zt.x,bt-b.width),a.x=Math.min(a.x,bt-x.width),a.width=Math.max(bt-a.x,x.width),a.height=Math.max(Math.min(zt.y-gt,b.height),x.height),et||(1<=a.height/a.width?(a.height=Math.max(Math.min(Nt*a.width,b.height),x.height),a.width=a.height/Nt):(a.width=Math.max(Math.min(a.height/Nt,b.width),x.width),a.height=Nt*a.width),a.x=bt-a.width)):(a.x=Math.max(zt.x,bt-b.width),a.x=Math.min(a.x,bt-x.width),a.width=bt-a.x,et||(a.height=Math.max(Math.min(Nt*a.width,b.height),x.height),a.width=a.height/Nt,a.y=gt+.5*(Pt-gt-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(zt.x-ht,b.width),x.width),a.y=Math.max(zt.y,Pt-b.height),a.y=Math.min(a.y,Pt-x.height),a.height=Math.max(Pt-a.y,x.height),et||(1<=a.height/a.width?(a.height=Math.max(Math.min(Nt*a.width,b.height),x.height),a.width=a.height/Nt):(a.width=Math.max(Math.min(a.height/Nt,b.width),x.width),a.height=Nt*a.width),a.y=Pt-a.height)):1<=y.y?(a.width=Math.max(Math.min(zt.x-ht,b.width),x.width),a.height=Math.max(Math.min(zt.y-gt,b.height),x.height),et||(1<=a.height/a.width?(a.height=Math.max(Math.min(Nt*a.width,b.height),x.height),a.width=a.height/Nt):(a.width=Math.max(Math.min(a.height/Nt,b.width),x.width),a.height=Nt*a.width))):(a.width=Math.max(Math.min(zt.x-ht,b.width),x.width),et||(a.height=Math.max(Math.min(Nt*a.width,b.height),x.height),a.width=a.height/Nt,a.y=gt+.5*(Pt-gt-a.height))):0>=y.y?(a.y=Math.max(zt.y,Pt-b.height),a.y=Math.min(a.y,Pt-x.height),a.height=Pt-a.y,et||(a.width=Math.max(Math.min(a.height/Nt,b.width),x.width),a.height=Nt*a.width,a.x=ht+.5*(bt-ht-a.width))):1<=y.y&&(a.height=Math.max(Math.min(zt.y-gt,b.height),x.height),et||(a.width=Math.max(Math.min(a.height/Nt,b.width),x.width),a.height=Nt*a.width,a.x=ht+.5*(bt-ht-a.width))),Ee.free(zt),a},No.prototype.computeReshape=function(){var a=an;return this.adornedObject instanceof Wn&&(a=Ev(this.adornedObject)),!(a===kn||this.diagram.lastInput.shift)},No.prototype.computeMinSize=function(){var a=this.adornedObject.minSize.copy(),y=this.minSize;return!isNaN(y.width)&&y.width>a.width&&(a.width=y.width),!isNaN(y.height)&&y.height>a.height&&(a.height=y.height),a},No.prototype.computeMaxSize=function(){var a=this.adornedObject.maxSize.copy(),y=this.maxSize;return!isNaN(y.width)&&y.widthx?x+=360:360<=x&&(x-=360),x=Math.round(45*Math.round(x/45));var b=this.handleDistance;return x===0?y.x=a.naturalBounds.width+b:x===45?(y.x=a.naturalBounds.width+b,y.y=a.naturalBounds.height+b):x===90?y.y=a.naturalBounds.height+b:x===135?(y.x=-b,y.y=a.naturalBounds.height+b):x===180?y.x=-b:x===225?(y.x=-b,y.y=-b):x===270?y.y=-b:x===315&&(y.x=a.naturalBounds.width+b,y.y=-b),a.ga(y)},ns.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Ee(NaN,NaN),this.isActive=a.isMouseCaptured=!1},ns.prototype.stopTransaction=function(){var a=this.diagram,y=fi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},ns.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},ns.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},ns.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){a.delaysLayout=!1;var y=this.computeRotate(a.lastInput.documentPoint);this.rotate(y),a.Ya(),this.transactionResult=this.name,a.R("PartRotated",this.adornedObject,this.originalAngle)}this.stopTool()},ns.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var x=y.locationObject,b=y.rotateObject;(x===b||x.rg(b))&&(x=this.Tn.copy(),y.location=x.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},ns.prototype.computeRotate=function(a){a=this.rotationPoint.ab(a)-this.handleAngle;var y=this.adornedObject.panel;y!==null&&(a-=y.li()),360<=a?a-=360:0>a&&(a+=360),y=Math.min(Math.abs(this.snapAngleMultiple),180);var x=Math.min(Math.abs(this.snapAngleEpsilon),y/2);return!this.diagram.lastInput.shift&&0y-x&&(a=(Math.floor(a/y)+1)*y)),360<=a?a-=360:0>a&&(a+=360),a},qe.Object.defineProperties(ns.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof di))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof di)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},snapAngleMultiple:{get:function(){return this.ia},set:function(a){this.ia=a}},snapAngleEpsilon:{get:function(){return this.V},set:function(a){this.V=a}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(a){this.kr=a.copy()}},handleAngle:{get:function(){return this.u},set:function(a){this.u=a}},handleDistance:{get:function(){return this.F},set:function(a){this.F=a}}}),ns.className="RotatingTool",br("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function Sh(){fi.call(this),this.name="ClickSelecting"}en(Sh,fi),Sh.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Sh.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Sh.className="ClickSelectingTool";function Ma(){fi.call(this),this.name="Action",this.pk=null}en(Ma,fi),Ma.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,x=a.ic(y.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b});return x!==null&&x.isActionable?(this.pk=x,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},Ma.prototype.doMouseDown=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionDown!==null&&y.actionDown(a,y))}else this.canStart()&&this.doActivate()},Ma.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionMove!==null&&y.actionMove(a,y))}},Ma.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;if(y===null)return;a.targetObject=y,y.actionUp!==null&&y.actionUp(a,y),this.standardMouseClick(function(x){for(;x.panel!==null&&(!x.isActionable||x!==y);)x=x.panel;return x},function(x){return x===y})}this.stopTool()},Ma.prototype.doCancel=function(){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionCancel!==null&&y.actionCancel(a,y),this.stopTool())},Ma.prototype.doStop=function(){this.pk=null},Ma.className="ActionTool";function Du(){fi.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Ee(0,0)}en(Du,fi),Du.prototype.canStart=function(){if(!this.isEnabled||this.archetypeNodeData===null)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.lastInput.left||this.isBeyondDragSize())return!1;if(this.isDoubleClick){if(a.lastInput.clickCount===1&&(this.mw=a.lastInput.viewPoint.copy()),a.lastInput.clickCount!==2||this.isBeyondDragSize(this.mw))return!1}else if(a.lastInput.clickCount!==1)return!1;return!(a.currentTool!==this&&a.Ol(a.lastInput.documentPoint,!0)!==null)},Du.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},Du.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var b=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof _n)x.Zc()&&(Oa(x),b=x.copy(),b!==null&&y.add(b));else if(x!==null){var tt=y.model.copyNodeData(x);on(tt)&&(y.model.xf(tt),b=y.Lc(tt))}if(b!==null){var et=Ee.allocAt(a.x,a.y);this.isGridSnapEnabled&&id(this.diagram,b,a,et),b.location=et,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),Ee.free(et)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},qe.Object.defineProperties(Du.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){this.Ri=a}},isDoubleClick:{get:function(){return this.o},set:function(a){this.o=a}},isGridSnapEnabled:{get:function(){return this.j},set:function(a){this.j=a}}}),Du.className="ClickCreatingTool";function ha(){fi.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new _n;a.layerName="Tool",a.selectable=!1;var y=new Wn;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}en(ha,fi),ha.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(!a.allowSelect)return!1;var y=a.lastInput;return!(!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.timestamp-a.firstInput.timestamptt.right&&(x.x-=b.width+5/y.scale),x.xtt.bottom&&(x.y-=b.height+5/y.scale),x.ya.lastInput.clickCount)):!1},Ui.prototype.doStart=function(){Fu=this,this.textBlock!==null&&this.doActivate()},Ui.prototype.doActivate=function(){if(!this.isActive){var a=this.diagram;if(a!==null){var y=this.textBlock;if(y===null&&(y=a.ic(a.lastInput.documentPoint)),y!==null&&y instanceof Ni&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=Zc;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var b=new $e(this.textBlock.ga(vo),this.textBlock.ga(ms));a.tv(b),x.show(y,a,this),this.currentTextEditor=x}}}},Ui.prototype.doCancel=function(){this.stopTool()},Ui.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Ui.prototype.doMouseDown=function(){this.isActive&&this.acceptText(xl)},Ui.prototype.acceptText=function(a){switch(a){case xl:this.qa===hc?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===Zc||this.qa===Jc||this.qa===Qc)&&(this.qa=op,rp(this));break;case Yf:case Xc:case Kf:(Xc!==a||this.textBlock.isMultiline!==!0)&&(this.qa===Zc||this.qa===Jc||this.qa===Qc)&&(this.qa=op,rp(this))}};function rp(a){var y=a.textBlock,x=a.diagram,b=a.currentTextEditor;if(y!==null&&b!==null){var tt=y.text,et="";b.valueFunction!==null&&(et=b.valueFunction()),a.isValidText(y,tt,et)?(a.Ea(a.name),a.qa=hc,a.transactionResult=a.name,y.text=et,a.doSuccess(tt,et),x!==null&&x.R("TextEdited",y,tt),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=Jc,a.doError(tt,et))}}Ui.prototype.doError=function(a,y){var x=this.textBlock;x.errorFunction!==null&&x.errorFunction(this,a,y),(a=this.currentTextEditor)&&a.show(x,this.diagram,this)},Ui.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},Ui.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=uc,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},Ui.prototype.doStop=function(){Fu=null},Ui.prototype.isValidText=function(a,y,x){var b=this.textValidation;return b!==null&&!b(a,y,x)?!1:(b=a.textValidation,!!(b===null||b(a,y,x)))},Ui.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},qe.Object.defineProperties(Ui.prototype,{textBlock:{get:function(){return this.ia},set:function(a){this.ia=a}},currentTextEditor:{get:function(){return this.o},set:function(a){this.o=a}},defaultTextEditor:{get:function(){return this.j},set:function(a){this.j=a}},starting:{get:function(){return this.V},set:function(a){this.V=a}},textValidation:{get:function(){return this.vj},set:function(a){this.vj=a}},minimumEditorScale:{get:function(){return this.u},set:function(a){this.u=a}},selectsTextOnActivate:{get:function(){return this.F},set:function(a){this.F=a}},state:{get:function(){return this.qa},set:function(a){this.qa!==a&&(this.qa=a)}}}),Ui.prototype.measureTemporaryTextBlock=Ui.prototype.Lx;var Yf=new sn(Ui,"LostFocus",0),xl=new sn(Ui,"MouseDown",1),Kf=new sn(Ui,"Tab",2),Xc=new sn(Ui,"Enter",3),tv=new sn(Ui,"SingleClick",0),lc=new sn(Ui,"SingleClickSelected",1),Xf=new sn(Ui,"DoubleClick",2),uc=new sn(Ui,"StateNone",0),Zc=new sn(Ui,"StateActive",1),Qc=new sn(Ui,"StateEditing",2),op=new sn(Ui,"StateValidating",3),Jc=new sn(Ui,"StateInvalid",4),hc=new sn(Ui,"StateValidated",5),Fu=null;Ui.className="TextEditingTool",Ui.LostFocus=Yf,Ui.MouseDown=xl,Ui.Tab=Kf,Ui.Enter=Xc,Ui.SingleClick=tv,Ui.SingleClickSelected=lc,Ui.DoubleClick=Xf,Ui.StateNone=uc,Ui.StateActive=Zc,Ui.StateEditing=Qc,Ui.StateValidating=op,Ui.StateInvalid=Jc,Ui.StateValidated=hc,br("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function zs(a){$c||(sp(),$c=!0),this.H=Il,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=au,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new gn,this.ce=new Lo,this.ce.Yd=this,this.Ei=new gn,this.pu=new gn,this.Sr=new gn,this.pr=new gn,a&&Object.assign(this,a)}zs.prototype.Xe=function(a){this.H=a},zs.prototype.canStart=function(){return!0};function Dl(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),To(a.H),a.zb=!0)}function Zf(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,b=a.Zd.contains("Model");b&&(a.Ok=!0,a.Pk===au?(y.isViewportUnconstrained=!0,y.vc.clear(),y.add(x,"position",x.position.copy().offset(0,-200),x.position),y.add(x,"opacity",0,1)):a.Pk===ap&&y.vc.clear(),a.Qw=!!(a.Pk===tf&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),b&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),ef(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,b=y.vc.get(x),x.autoScale!==Wo&&b!==null&&(delete b.start.scale,delete b.end.scale),bn.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&ys(x),fp(x),a.zb=!1,y.start(),y.bc&&(Bu(a),x.Ya(),lp(y,0),fa(x,!0),xh(a),x.R("AnimationStarting",a)))}))}}function su(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function Qf(a,y,x,b){a.isTicking||su(a)||y instanceof cn&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,b,!1)}ee=zs.prototype,ee.fv=function(a){return this.ce.fv(a)},ee.Xu=function(a){return this.ce.Xu(a)};function Jf(a,y){function x(){if(0et?et+=360:gt+=360),et=tt(x,et,gt-et,b)%360,nt=tt(x,nt,bt-nt,b),ht=tt(x,ht,Pt-ht,b),x=tt(x,a,y-a,b),"hsla("+et+", "+nt+"%, "+ht+"%, "+x+")"}function sp(){function a(x,b,tt,et,nt,ht){x.position=new Ee(et(nt,b.x,tt.x-b.x,ht),et(nt,b.y,tt.y-b.y,ht))}var y=new Rn;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,b,tt,et,nt,ht){nta&&ti(a,">= 1",zs,"duration"),this.Dg=a}},isAnimating:{get:function(){return this.bc}},isTicking:{get:function(){return this.vq}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a}},defaultAnimation:{get:function(){return this.ce}},activeAnimations:{get:function(){return this.Ei}},initialAnimationStyle:{get:function(){return this.Pk},set:function(a){this.Pk=a}}}),zs.prototype.stopAnimation=zs.prototype.Cc;var qc=null,$c=!1,au=new sn(zs,"Default",1),tf=new sn(zs,"AnimateLocations",2),ap=new sn(zs,"None",3);zs.className="AnimationManager",zs.defineAnimationEffect=function(a,y){$c||(sp(),$c=!0),qc.add(a,y)},zs.Default=au,zs.AnimateLocations=tf,zs.None=ap;function Lo(a){this.vu=this.Nw=this.Yd=this.H=null,this.Xk=this.bc=this.j=!1,this.cn=this.Qd=0,this.Lp=this.ot=cc,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=jo,this.vc=new Rn,this.Tt=new Rn,this.yl=new gn,this.Ut=new gn,this.dw=Uu,a&&Object.assign(this,a)}Lo.prototype.suspend=function(){this.Xk=!0},Lo.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,nf(this,!0),Bu(this.Yd),fa(this.H),xh(this.Yd),this.H.redraw()};function ef(a,y){if(a.Tt.clear(),a.Wk=!1,a.au=0,a.Gd=NaN,0a.cn?a.Gd:b-a.Qd;y&&(tt=a.gw,tta.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function lp(a,y){for(var x=a.Gd,b=a.vc.iterator,tt=a.Wk;b.next();){var et=b.key;if(!(et instanceof ze&&et.diagram===null)){var nt=b.value,ht=tt?nt.end:nt.start;nt=tt?nt.start:nt.end;var gt=qc,bt;for(bt in nt)bt==="position"&&(nt["position:placeholder"]||nt["position:nodeCollapse"])||gt.get(bt)===null||gt.get(bt)(et,ht[bt],nt[bt],a.Lp,y,x,a)}}}ee.stop=function(){return this.bc?(this.Ml(!0),this):this},ee.Ml=function(a){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var y=this.H,x=this.Yd;this.Xk=this.bc=x.Ok=!1,Bu(x);for(var b=this.vc,tt=this.yl.iterator;tt.next();)y.remove(tt.value);for(tt=this.Ut.iterator;tt.next();)tt.value.v();tt=this.ho,b=b.iterator;for(var et=qc;b.next();){var nt=b.key,ht=b.value,gt=tt?ht.end:ht.start,bt=tt?ht.start:ht.end,Pt=ht.Ku,Nt;for(Nt in bt)if(et.get(Nt)!==null){var zt=Nt;!ht.Hu||zt!=="position:nodeCollapse"&&zt!=="position:placeholder"||(zt="position"),et.get(zt)(nt,gt[Nt],Pt[Nt]!==void 0?Pt[Nt]:ht.Hu?gt[Nt]:bt[Nt],this.Lp,this.Gd,this.Gd,this)}ht.Hu&&Pt.location!==void 0&&nt instanceof _n&&(nt.location=Pt.location),ht.nv&&nt instanceof _n&&nt.Zb(!1)}if(y.As.clear(),rf(y,!1),y.Ya(),y.N(),fa(y,!0),x.defaultAnimation===this){for(Nt=x.pr.iterator;Nt.next();)tt=Nt.value,tt.Tg!==null&&(tt.points=tt.Tg,tt.Tg=null);x.pr.clear()}fa(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),xh(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),ef(this,null),x.Ml(this),y.$b())}},ee.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof Un&&(b=y.placeholder),b!==null?(x=b.ga(vo),b=b.padding,x.x+=b.left,x.y+=b.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Ee(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof Un)for(a=a.memberParts;a.next();)b=a.value,b instanceof wn&&this.Cj(b,y)},ee.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof Un&&(x=y.placeholder),x!==null){var b=x.ga(vo);x=x.padding,b.x+=x.left,b.y+=x.top,this.add(a,"position:placeholder",a.position,b,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),b=this.vc,b.contains(a)&&(b.I(a).nv=!0),a instanceof Un)for(a=a.memberParts;a.next();)b=a.value,b instanceof wn&&this.Aj(b,y)}},ee.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},qe.Object.defineProperties(Lo.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&ti(a,">= 1",Lo,"duration"),this.Dg=a}},reversible:{get:function(){return this.ho},set:function(a){this.ho=a}},runCount:{get:function(){return this.cu},set:function(a){0a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Hg(a,y,x,b){return a===b?y+x:x*(-Math.pow(2,-10*a/b)+1)+y}Lo.className="Animation",Lo.EaseLinear=function(a,y,x,b){return x*a/b+y},Lo.EaseInOutQuad=cc,Lo.EaseInQuad=function(a,y,x,b){return x*(a/=b)*a+y},Lo.EaseOutQuad=function(a,y,x,b){return-x*(a/=b)*(a-2)+y},Lo.EaseInExpo=function(a,y,x,b){return a===0?y:x*Math.pow(2,10*(a/b-1))+y},Lo.EaseOutExpo=Hg;function Ch(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}Ch.className="AnimationState";function Ua(a,y,x){this.xd=null,this.rf=a,this.so=x||up,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=Eh))}Ua.prototype.copy=function(){var a=new Ua(this.rf);a.so=this.so;var y=this.uk;if(y!==null){var x={};y.duration!==void 0&&(x.duration=y.duration),y.finished!==void 0&&(x.finished=y.finished),y.easing!==void 0&&(x.easing=y.easing),a.uk=x}return a};function Wg(a,y){a=a.uk,a!==null&&(a.duration&&(y.duration=a.duration),a.finished&&(y.finished=a.finished),a.easing&&(y.easing=a.easing))}qe.Object.defineProperties(Ua.prototype,{propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},animationSettings:{get:function(){return this.uk},set:function(a){this.uk=a}},startCondition:{get:function(){return this.so},set:function(a){this.so=a}}});var up=new sn(Ua,"Default",1),Eh=new sn(Ua,"Immediate",2),fc=new sn(Ua,"Bundled",3);Ua.className="AnimationTrigger",Ua.Default=up,Ua.Immediate=Eh,Ua.Bundled=fc;function co(a){qi(this),this.H=null,this.Pa=new vn,this.xa="",this.pb=1,this.o=!1,this.j=this.Uh=this.u=this.Oi=this.Ni=this.Mi=this.Li=this.Ji=this.Ki=this.Ii=this.Qi=this.Hi=this.Pi=this.Gi=this.Fi=!0,this.Zq=[],a&&Object.assign(this,a)}ee=co.prototype,ee.clear=function(){for(var a=this.Pa,y=0;y=a)return y;for(var x=0,b=0,tt=0,et=0,nt=0,ht=this.Pa.iterator;ht.next();){var gt=ht.value;gt instanceof Un?tt++:gt instanceof wn?b++:gt instanceof cn?et++:gt instanceof di?nt++:x++}if(ht="",0x.Oq||ht.height*tt>x.Oq?y.gc(a,x):(tt=y.actualBounds,et=y.naturalBounds,tt.width===0||tt.height===0||isNaN(tt.x)||isNaN(tt.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(vr(y,a,y.areaBackground,!0,!0,et,tt),a.fillRect(tt.x,tt.y,tt.width,tt.height)),y.areaBackground===null&&y.background===null&&(vr(y,a,"rgba(0,0,0,0.3)",!0,!1,et,tt),a.fillRect(tt.x,tt.y,tt.width,tt.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),vr(y,a,y.background,!0,!1,et,tt),a.fillRect(0,0,et.width/2,et.height/2),x.ws()||(y=1/(x.m11*x.m22-x.m12*x.m21),a.transform(x.m22*y,-x.m12*y,-x.m21*y,x.m11*y,y*(x.m21*x.dy-x.m22*x.dx),y*(x.m12*x.dx-x.m11*x.dy)))))),b&&(a.restore(),a.Vc(!0))}},ee.g=function(a,y,x,b,tt){var et=this.diagram;et!==null&&et.cb(tr,a,this,y,x,b,tt)},ee.oi=function(a,y,x){var b=this.Pa;if(y.Ig=this,this===null&&zo(y),a>=b.count)a=b.count;else if(b.M(a)===y)return-1;return b.Gb(a,y),y.Vo(x),b=this.diagram,b!==null&&(x?b.N():b.oi(y)),$f(this,a,y),a},ee.pc=function(a,y,x){if(!x&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,x);var b=this.Pa;if(0>a||a>=b.length){if(a=b.indexOf(y),0>a)return-1}else if(b.M(a)!==y&&(a=b.indexOf(y),0>a))return-1;return y.Wo(x),b.mb(a),b=this.diagram,b!==null&&(x?b.N():b.pc(y)),y.Ig=null,zo(y),a};function $f(a,y,x){if(y=Yg(a,y,x),x instanceof Un&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var b=-1,tt=a.Pa.s,et=tt.length,nt=0;ntb&&ht.containingGroup===x&&(b=nt,0<=y))break}!(0>b)&&b=tt)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var et=y-1,nt=NaN;0<=et&&(nt=a.M(et).zOrder,!!isNaN(nt));)et--;for(var ht=y+1,gt=NaN;htb)for(;;){if(et===-1||nt<=b){if(et++,et===y)break;return a.mb(y),a.Gb(et,x),et}for(nt=NaN;0<=--et&&(nt=a.M(et).zOrder,isNaN(nt)););}else if(!isNaN(gt)&>=b){if(ht--,ht===y)break;return a.mb(y),a.Gb(ht,x),ht}for(gt=NaN;++hta||1=a)return y;for(var x=this.Wa.iterator;x.next();)y+=` + `+x.value.toString(a-1);return y};function cp(a,y){if(gr){if(y!=null||We("Diagram setup requires an argument DIV."),a.Ka!==null&&We("Diagram has already completed setup."),typeof y=="string"?a.Ka=bn.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:We("No DIV or DIV id supplied: "+y),a.Ka===null&&We("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&We("Invalid div id; div already has a Diagram associated with it."),!a.ol&&bn.ResizeObserver){var x=Xi(function(){a.$b()},250);a.ol=new bn.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}bn.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var b="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=b,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=bn.go;var tt=new _a(a);if(tt.style!==void 0&&(tt.style.position="absolute",tt.style.top="0px",tt.style.left="0px",bn.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),tt.style.zIndex="2",tt.style.userSelect="none",tt.style.MozUserSelect="none",tt.style.touchAction="none",tt.style.letterSpacing="normal !important",tt.style.wordSpacing="normal !important"),a.ta=tt,a.ib=tt.context,b=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),Sp(a,a.Aa,a.ya),a.Ka.insertBefore(tt.Oa,a.Ka.firstChild),tt=new _a(null),tt.width=1,tt.height=1,a.jw=tt,a.oy=tt.context,gr){tt=ir("div");var et=ir("div");tt.style.position="absolute",tt.style.overflow="auto",tt.style.width=a.Aa+"px",tt.style.height=a.ya+"px",tt.style.zIndex="1",et.style.position="absolute",et.style.width="1px",et.style.height="1px",a.Ka.appendChild(tt),tt.appendChild(et),tt.onscroll=Jg,tt.addEventListener("pointerdown",qg),tt.H=a,tt.uy=!0,tt.vy=!0,a.ku=tt,a.hu=et}a.hk=Xi(function(){a.Yh=null,a.N()},300),a.Ov=Xi(function(){fp(a)},250),a.preventDefault=function(nt){return nt.preventDefault(),!1},a.$j=function(nt){if(a.isEnabled){var ht=ca(a,nt,!0);ht.bubbles=!0;var gt=0,bt=0;ht.delta=0,nt.deltaX!==void 0?(nt.deltaX!==0&&(gt=0Math.abs(nt.deltaY)?-gt:-bt):nt.wheelDeltaX!==void 0?(nt.wheelDeltaX!==0&&(gt=0Math.abs(nt.wheelDeltaY)?-gt:-bt):nt.wheelDelta!==void 0&&nt.wheelDelta!==0&&(ht.delta=0ht||Math.abs(bt.y-nt.screenY)>ht)?a.yq++:a.yq=1,gt.clickCount=a.yq,a.tw=nt.timeStamp,a.uw.sg(nt.screenX,nt.screenY),a.doMouseDown(),nt.button===1?nt.preventDefault():Ha(gt,nt)}},a.dk=function(nt){if(a.isEnabled){a.Vk=!0;var ht=a.oj;if(ht[0]===null||ht[0].pointerId!==nt.pointerId&&ht[0].pointerType===nt.pointerType){if(ht[1]!==null&&ht[1].pointerId===nt.pointerId){ht[1]=nt;return}if(ht[0]===null)ht[0]=nt;else return}else ht[0]=nt;if(ht[0].pointerId===nt.pointerId){ht=mp(a,nt,!1,!1,!1,ht[1]!==null);var gt=bn.document.elementFromPoint(nt.clientX,nt.clientY)||null;gt!==null&>.shadowRoot!==void 0&>.shadowRoot!==null&&(gt=gt.shadowRoot.elementFromPoint(nt.clientX,nt.clientY));var bt=a,Pt=nt;gt&>.H&&(Pt=nt,bt=gt.H),ht.targetDiagram=bt,pc(a,Pt,ht),ht.targetObject=null,a.doMouseMove(),Ha(ht,nt)}}},a.fk=function(nt){if(a.isEnabled){a.Vk=!0;var ht=nt.pointerType==="touch"||nt.pointerType==="pen",gt=a.Yt;if(ht&&a.qu)delete gt[nt.pointerId],nt.preventDefault();else if(gt=a.oj,gt[0]===null||gt[0].pointerId!==nt.pointerId&>[0].pointerType===nt.pointerType)gt[1]!==null&>[1].pointerId===nt.pointerId&&(gt[1]=null);else{gt[0]=null,gt=mp(a,nt,!1,!0,!0,!1);var bt=bn.document.elementFromPoint(nt.clientX,nt.clientY)||null;bt!==null&&bt.shadowRoot!==void 0&&bt.shadowRoot!==null&&(bt=bt.shadowRoot.elementFromPoint(nt.clientX,nt.clientY)),bt!==null&&bt.H instanceof Ye&&bt.H!==a&&pc(bt.H,nt,gt),bt===null&&(bt=nt.target),pc(a,nt,gt),gt.clickCount=a.yq,gt.targetDiagram=gp(nt,bt),gt.targetObject=null,a.doMouseUp(),Ha(gt,nt),ht&&(a.wq=!1)}}},a.ek=function(nt){if(a.isEnabled){a.Vk=!1;var ht=a.Yt;ht[nt.pointerId]&&delete ht[nt.pointerId],ht=a.oj,ht[0]!==null&&ht[0].pointerId===nt.pointerId&&(ht[0]=null),ht[1]!==null&&ht[1].pointerId===nt.pointerId&&(ht[1]=null),nt.pointerType!=="touch"&&nt.pointerType!=="pen"&&(nt=a.currentTool,nt.cancelWaitAfter(),nt.standardMouseOver())}},a.ck=function(nt){var ht=a.oj;ht[0]!==null&&ht[0].pointerId===nt.pointerId?(ht[0]=null,a.wq=!1):ht[1]!==null&&ht[1].pointerId===nt.pointerId&&(ht[1]=null)},a.Vp=b.Z["d"+ff[1]+ff[2]+"wI"+xc.slice(1,5)]["b"+jw.slice(1,y)](b.Z,cf,y,y),b.Vc(!0),ev(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}Ye.prototype.addEventListener=function(a,y,x,b){a.addEventListener(y,x,{capture:b,passive:!1})},Ye.prototype.removeEventListener=function(a,y,x,b){a.removeEventListener(y,x,{capture:b})};function ev(a){var y=a.ta.Oa;y instanceof HTMLCanvasElement||(y=a.div),a.addEventListener(y,"pointerdown",a.ui,!1),a.addEventListener(y,"pointermove",a.dk,!1),a.addEventListener(y,"pointerup",a.fk,!1),a.addEventListener(y,"pointerout",a.ek,!1),a.addEventListener(y,"pointercancel",a.ck,!1),a.addEventListener(y,"pointerenter",a.bz,!1),a.addEventListener(y,"pointerleave",a.cz,!1),a.addEventListener(y,"wheel",a.$j,!1),a.addEventListener(y,"keydown",a.Qz,!1),a.addEventListener(y,"keyup",a.Rz,!1),a.addEventListener(y,"blur",a.Ny,!1),a.addEventListener(y,"focus",a.Oy,!1),a.addEventListener(y,"selectstart",function(x){return x.preventDefault(),!1},!1),a.addEventListener(y,"contextmenu",function(x){return x.preventDefault(),!1},!1),a.addEventListener(bn,"resize",a.Ov,!1)}function ys(a){30Zt&&(this.position=Pe.h(-(y.scrollWidth-this.Aa)+pe-this.Aa/tt+Pt,this.position.y))),a.vy&&this.allowVerticalScroll&&(htoe&&(this.position=Pe.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/tt+et))),Ee.free(Pe),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,tt=this.viewportBounds,Pt=b.right,Zt=tt.right,et=b.bottom,oe=tt.bottom,nt=b.x,Nt=tt.x,ht=b.y,b=tt.y,zt>=gt&&nt>=Nt&&Pt<=Zt&&(x.style.width="1px"),Yt>=bt&&ht>=b&&et<=oe&&(x.style.height="1px"))}},Ye.prototype.computeBounds=function(a){return a===void 0&&(a=new $e),To(this),dp(this,a)};function dp(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,b=a.Wa.s,tt=b.length,et=0;etx&&(y=x),ya.maxScale&&(y=a.maxScale),y):y===Oh?(y=gt>ht?(nt-a.Db)/b:(et-a.Db)/tt,y>x&&(y=x),ya.maxScale&&(y=a.maxScale),y):a.scale}Ye.prototype.zoomToFit=function(){var a=this.sj;this.sj=Uu,this.scale=dc(this,$s),a!==Uu&&(La(this,!1),pp(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},ee=Ye.prototype,ee.BA=function(a,y){y===void 0&&(y=$s);var x=a.width,b=a.height;if(!(x===0||b===0||isNaN(x)&&isNaN(b))){var tt=1;if(y===$s||y===Oh)if(isNaN(x))tt=this.viewportBounds.height*this.scale/b;else if(isNaN(b))tt=this.viewportBounds.width*this.scale/x;else{tt=this.Aa;var et=this.ya;tt=y===Oh?et/b>tt/x?(et-(this.Be?this.Db:0))/b:(tt-(this.gf?this.Db:0))/x:Math.min(et/b,tt/x)}this.scale=tt,this.position=new Ee(a.x,a.y)}},ee.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new Ee(x.x+(a.x*x.width+a.offsetX)-(y.x*b.width-y.offsetX),x.y+(a.y*x.height+a.offsetY)-(y.y*b.height-y.offsetY))},ee.zz=function(a){if(a instanceof ze){this.eq=a;var y=Ee.alloc();this.fq=this.op(a.ga(vo,y)),Ee.free(y)}else this.eq=null,this.fq=gl};function pp(a,y,x,b,tt,et){var nt=Ee.allocAt(a.pa.x,a.pa.y),ht=nt.x,gt=nt.y;if(a.eq!==null){var bt=Ee.alloc();bt=a.eq.ga(vo,bt),ht=bt.x-a.fq.x/a.scale,gt=bt.y-a.fq.y/a.scale,tt=$r,Ee.free(bt)}(et||a.scrollMode===Uu)&&(tt.sb()&&(x>y.width&&(ht=y.x+(tt.x*y.width+tt.offsetX)-(tt.x*x-tt.offsetX)),b>y.height&&(gt=y.y+(tt.y*y.height+tt.offsetY)-(tt.y*b-tt.offsetY))),tt=a.rj,et=x-y.width,xy.left?ht=y.left:hty.top?gt=y.top:gty;y++){var x=a.De.iterator;if(x===null||a.De.count===0)break;a.De=new gn,a.Nv(x,a.De)}a.nodes.each(function(b){b instanceof Un&&b.U&65536&&(b.U=b.U^65536)})}}ee.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof Un||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof Un&&x.isVisible()&&af(this,x);for(a.reset();a.next();)x=a.value,x instanceof cn&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x));for(a.reset();a.next();)x=a.value,x instanceof di&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function af(a,y){for(var x=oi(),b=oi(),tt=y.memberParts;tt.next();){var et=tt.value;et.isVisible()&&(et instanceof Un?(ea(et)||os(et)||Nh(et))&&af(a,et):et instanceof cn?et.fromNode===y||et.toNode===y?b.push(et):x.push(et):(et.measure(1/0,1/0),et.arrange()))}for(a=x.length,tt=0;ttRe&&(pe=Sn.left,Le=Sn.right),Pe.height>Ve&&(je=Sn.top,De=Sn.bottom)):(pe=Sn.left,Le=Sn.right,je=Sn.top,De=Sn.bottom);var Mn=Pe.width+pe+Le,Pn=Pe.height+je+De;Sn=a.scale;var hn=Mn>gt/Sn,rn=Pn>bt/Sn;if(!(et||a.gf||a.Be||hn||rn))return!0;pe=Pe.x-pe,gt=Pt.x,Le=Pe.right+Le,bt=Pt.right+nt,je=Pe.y-je;var Gn=Pt.y;Pe=Pe.bottom+De,Pt=Pt.bottom+ht;var Fn="1px";if(De="1px",a.scrollMode===Uu&&(hn||rn)&&(hn&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(hn=1,pe+1bt+1&&(hn=Math.max((Le-bt)*Sn+a.Aa,hn)),Re+nt+1Pt+1&&(hn=Math.max((Pe-Pt)*Sn+a.ya,hn)),Ve+ht+1bt+1&&(nt=Math.max((Le-bt)*Sn+a.Aa,nt)),Re+1Pt+1&&(ht=Math.max((Pe-Pt)*Sn+nt,ht)),Ve+1bt+1&&(y=a.position.x*Sn)),a.tn)switch(a.bu){case"negative":y=-(Zt.scrollWidth-y-Zt.clientWidth);break;case"reverse":y=Zt.scrollWidth-y-Zt.clientWidth}return Zt.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Ve+1Pt+1&&(Zt.scrollTop=a.position.y*Sn)),gt=a.Aa,bt=a.ya,Zt.style.width=gt+(a.gf?a.Db:0)+"px",Zt.style.height=bt+(a.Be?a.Db:0)+"px",x!==gt||b!==bt||a.animationManager.zb?(x=$e.allocAt(tt,Nt,zt,Yt),a.onViewportBoundsChanged(x,a.viewportBounds,Sn,et),$e.free(x),!1):!0}ee=Ye.prototype,ee.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&We("Cannot add part "+a.toString()+" to "+this.toString()+". It is already a part of "+y.toString()),y=this.Qj(a.layerName),y===null&&(y=this.Qj("")),y===null&&We('Cannot add a Part when unable find a Layer named "'+a.layerName+'" and there is no default Layer'),a.layer!==y)){var x=y.oi(99999999,a,a.diagram===this);0<=x&&this.cb(Ar,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},ee.oi=function(a){this.partManager.oi(a);var y=this;Ac(a,function(x){yc(y,x)}),(a instanceof di||a instanceof Un&&a.placeholder!==null)&&a.v(),a.data!==null&&Ac(a,function(x){ly(y.partManager,x)}),os(a)!==!0&&Nh(a)!==!0||this.De.add(a),B1(a,!0,this),z1(a)?(a.actualBounds.w()&&this.N(Lc(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Lc(a,a.actualBounds)),this.$b()},ee.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Ac(a,function(x){uy(y.partManager,x,y)}),this.De.remove(a),z1(a)?(a.actualBounds.w()&&this.N(Lc(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Lc(a,a.actualBounds)),this.$b()},ee.remove=function(a){wp(this,a,!0)};function wp(a,y,x){var b=y.layer;b!==null&&b.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),x&&y.Lj(),x=b.pc(-1,y,!1),0<=x&&a.cb(Hr,"parts",b,y,null,x,null),a=y.layerChanged,a!==null&&a(y,b,null))}ee.Is=function(a,y){if(y===void 0&&(y=!1),Cn(a))for(var x=a.length,b=0;bb&&this.Ya(),this},ee.Cy=function(a,y){bp(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(Hr,"layers",this,a,null,b,null));var tt=x.count,et;for(et=0;etb&&this.Ya(),this},ee.kA=function(a){if(a.diagram!==this&&We("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,x=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var b=y.value,tt=b.layerName;tt!==a.name?b.layerName=tt:b.layerName=""}this.cc!==null&&this.cb(Hr,"layers",this,a,null,x,null),this.N(),this.Ya()}}},ee.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},ee.Yw=function(a){return this.pf===null&&(this.pf=new vn),this.pf.add(a),this.model.Pe(a),this},ee.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},ee.Pe=function(a){return this.zg===null&&(this.zg=new vn),this.zg.add(a),this},ee.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},ee.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==Rs&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,b=0;bNt.Pa.indexOf(Yt)&&Nt.oi(zt,Yt,Zt):(Yt.isSelected=!1,Yt.isHighlighted=!1,Yt.Wb(),Nt.pc(Zt?zt:-1,Yt,Zt)))}else Nt instanceof Ye?typeof zt=="number"&&Yt instanceof co&&(y?(Yt.Xe(this),this.Wa.Gb(zt,Yt)):this.Wa.mb(zt)):We("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==Rs&&We("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},Ye.prototype.Ea=function(a){return this.undoManager.Ea(a)},Ye.prototype.eb=function(a){return this.undoManager.eb(a)},Ye.prototype.Kf=function(){return this.undoManager.Kf()},Ye.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var b=!1;try{a(this),b=!0}finally{b?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},Ye.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},Ye.prototype.rp=function(){this.partManager.rp()};function Pp(a,y,x){var b=a.animationManager;if(a.vb||a.ld)a.Ca=x,Pl(a),a.N(),a.Ee=!0,b.zb&&(su(b)||b.ce.add(b.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,Pl(a);else{a.vb=!0;var tt=a.viewportBounds.copy(),et=a.Aa,nt=a.ya,ht=a.zoomPoint.x,gt=a.zoomPoint.y,bt=a.contentAlignment;isNaN(ht)&&(bt.$c()?bt.Hf(vl)?ht=0:bt.Hf(As)&&(ht=et-1):ht=bt.sb()?bt.x*(et-1):et/2),isNaN(gt)&&(bt.$c()?bt.Hf(ml)?gt=0:bt.Hf(Ea)&&(gt=nt-1):gt=bt.sb()?bt.y*(nt-1):nt/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(x=a.scaleComputation(a,x)),xa.maxScale&&(x=a.maxScale),et=Ee.allocAt(a.pa.x+ht/y-ht/x,a.pa.y+gt/y-gt/x),a.position=et,Ee.free(et),a.Ca=x,Pl(a),a.vb=!1,a.onViewportBoundsChanged(tt,a.viewportBounds,y,!1),La(a,!1),b.zb&&(su(b)||b.ce.add(b.H,"scale",y,a.Ca))}}Ye.prototype.onViewportBoundsChanged=function(a,y,x,b){if(!a.D(y)){b===void 0&&(b=!1),b||(this.Ee=!0),this.vd=!0;var tt=this.layout;tt===null||!tt.isViewportSized||this.autoScale!==Wo||a.width===y.width&&a.height===y.height||tt.C(),tt=this.currentTool,this.Vk===!0&&tt instanceof $i&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Ig(tt,this)),this.vb||this.invalidateViewport(a,y),bl(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.canvasSize.width=Math.round(a.width*x),this.fc.canvasSize.height=Math.round(a.height*x),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=b,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(et){et.isAvoiding&&et.actualBounds.Yc(y)&&et.bb()})}};function bl(a,y){var x=a.fe;if(x!==null&&x.visible){for(var b=xn.alloc(),tt=1,et=1,nt=x.O.s,ht=nt.length,gt=0;gtPt||(mv(bt.figure)?et=et*Pt/Ge.vx(et,Pt):tt=tt*Pt/Ge.vx(tt,Pt))}if(nt=x.gridCellSize,b.h(et*nt.width,tt*nt.height),y!==void 0)tt=y.width,et=y.height,a=y.x,nt=y.y;else{if(y=$e.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){$e.free(y);return}tt=y.width,et=y.height,a=y.x,nt=y.y,$e.free(y)}x.width=tt+2*b.width,x.height=et+2*b.height,y=Ee.alloc(),Ge.No(a,nt,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),xn.free(b),x.part.location=y,Ee.free(y)}}Ye.prototype.clearSelection=function(a){a===void 0&&(a=!1);var y=this.selection;if(y.count!==0){a||this.R("ChangingSelection",y);for(var x=y.Fa(),b=x.length,tt=0;tt=b&&!et.defaultAnimation.isAnimating&&!et.zb&&(y||Dl(et,"Layout")),a.xh=!1;for(var nt=a.ai.iterator;nt.next();)kp(a,nt.value,y,b);tt.isValidLayout||(!y||tt.isRealtime||tt.isRealtime===null||b===0?(tt.doLayout(a),To(a),tt.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,b===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||b!==0&&b!==1||Zf(et),a.aa=x}}}function kp(a,y,x,b){if(y!==null){for(var tt=y.gl.iterator;tt.next();)kp(a,tt.value,x,b);tt=y.layout,tt===null||tt.isValidLayout||(!x||tt.isRealtime||b===0?(y.rh=!y.location.w(),tt.doLayout(y),y.C(32),af(a,y),tt.isValidLayout=!0):a.xh=!0)}}ee.yz=function(){for(var a=new vn,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function nv(a){function y(tt){var et=tt.toLowerCase(),nt=new vn;x.add(tt,nt),x.add(et,nt),b.add(tt,tt),b.add(et,tt)}var x=new Rn,b=new Rn;y("InitialAnimationStarting"),y("AnimationStarting"),y("AnimationFinished"),y("BackgroundSingleClicked"),y("BackgroundDoubleClicked"),y("BackgroundContextClicked"),y("ClipboardChanged"),y("ClipboardPasted"),y("DocumentBoundsChanged"),y("ExternalObjectsDropped"),y("GainedFocus"),y("InitialLayoutCompleted"),y("LayoutCompleted"),y("LinkDrawn"),y("LinkRelinked"),y("LinkReshaped"),y("LostFocus"),y("Modified"),y("ObjectSingleClicked"),y("ObjectDoubleClicked"),y("ObjectContextClicked"),y("PartCreated"),y("PartResized"),y("PartRotated"),y("SelectionMoved"),y("SelectionCopied"),y("SelectionDeleting"),y("SelectionDeleted"),y("SelectionGrouped"),y("SelectionUngrouped"),y("ChangingSelection"),y("ChangedSelection"),y("SubGraphCollapsed"),y("SubGraphExpanded"),y("TextEdited"),y("TreeCollapsed"),y("TreeExpanded"),y("ViewportBoundsChanged"),y("InvalidateDraw"),a.iw=x,a.hw=b}function nm(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function sd(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;We("Unknown DiagramEvent name: "+y)}ee.Bj=function(a,y){return a=sd(this,a),a!==null&&a.add(y),this},ee.am=function(a,y){a=sd(this,a),a!==null&&a.remove(y)},ee.R=function(a,y,x){var b=sd(this,a),tt=new Au;if(tt.diagram=this,a=nm(this,a),a!==null&&(tt.name=a),y!==void 0&&(tt.subject=y),x!==void 0&&(tt.parameter=x),y=b.length,y===1)b.M(0)(tt);else if(y!==0)for(b=b.Fa(),x=0;x=x.top&&0>=x.left&&0>=x.right&&0>=x.bottom)return y;var b=this.viewportBounds,tt=this.scale;b=$e.allocAt(0,0,b.width*tt,b.height*tt);var et=Ee.allocAt(0,0);if(a.x>=b.x&&a.xb.x+b.width-x.right&&this.allowHorizontalScroll&&(nt=Math.max(this.scrollHorizontalLineChange,1),nt|=0,et.x+=nt,a.x>b.x+b.width-x.right/2&&(et.x+=nt),a.x>b.x+b.width-x.right/4&&(et.x+=4*nt));return a.y>=b.y&&a.yb.y+b.height-x.bottom&&this.allowVerticalScroll&&(nt=Math.max(this.scrollVerticalLineChange,1),nt|=0,et.y+=nt,a.y>b.y+b.height-x.bottom/2&&(et.y+=nt),a.y>b.y+b.height-x.bottom/4&&(et.y+=4*nt)),et.Xa(jo)||(y=new Ee(y.x+et.x/tt,y.y+et.y/tt)),$e.free(b),Ee.free(et),y},ee=Ye.prototype,ee.Cs=function(){return null},ee.av=function(){return null},ee.bs=function(a,y){this.pj.add(a,y)},ee.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Un&&(y.$p=null)})};function lf(a,y,x){function b(){var Pt=+new Date;for(et=!0,nt.reset();nt.next();)if(!nt.value[0].al){et=!1;break}et||Pt-bt>gt?y(x,tt,ht):bn.requestAnimationFrame(b)}for(var tt=x.callback,et=!0,nt=a.Og.iterator;nt.next();)if(!nt.value[0].al){et=!1;break}if(typeof tt!="function"||et)return y(x,tt,a);var ht=a,gt=x.callbackTimeout||300,bt=+new Date;return bn.requestAnimationFrame(function(){b()}),null}ee.Wz=function(a){return gr?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},ee.Jx=function(a){return a===void 0&&(a={}),lf(this,this.Xz,a)},ee.Xz=function(a,y,x){var b=rm(x,a,"canvas",null);if(b===null)return null;x=b.Z.canvas;var tt=null;if(x!==null)switch(tt=a.returnType,tt===void 0?tt="string":tt=tt.toLowerCase(),tt){case xc+"data":tt=b.getImageData(0,0,x.width,x.height);break;case xc:b=(a.document||document).createElement("img"),b.src=x.toDataURL(a.type,a.details),tt=b;break;case"blob":return typeof y!="function"&&We('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof x.toBlob=="function"?(x.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:tt=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(tt),null):tt};function rm(a,y,x,b){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&We("properties argument must be an Object.");var tt=y.size||null,et=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(et="NaN");var nt=y.maxSize;y.maxSize===void 0&&(nt=x==="SVG"?new xn(1/0,1/0):new xn(2e3,2e3));var ht=y.position||null,gt=y.parts||null,bt=y.padding===void 0?1:y.padding,Pt=y.background||null,Nt=y.omitTemporary;Nt===void 0&&(Nt=!0);var zt=y.document||document,Yt=y.elementFinished||null,Zt=y.showTemporary;Zt===void 0&&(Zt=!Nt),y=y.showGrid,y===void 0&&(y=Zt),tt!==null&&isNaN(tt.width)&&isNaN(tt.height)&&(tt=null),typeof bt=="number"?bt=new Yn(bt):bt instanceof Yn||We("MakeImage padding must be a Margin or a number."),bt.left=Math.max(bt.left,0),bt.right=Math.max(bt.right,0),bt.top=Math.max(bt.top,0),bt.bottom=Math.max(bt.bottom,0),a.ib.Vc(!0),Nt=new _a(null,zt,void 0,!0);var oe=Nt.context;if(!(tt||et||gt||ht))return Nt.width=a.Aa+Math.ceil(bt.left+bt.right),Nt.height=a.ya+Math.ceil(bt.top+bt.bottom),x==="SVG"?b===null?null:(b.resize(Nt.width,Nt.height,Nt.width,Nt.height),b.ownerDocument=zt,b.hs=Yt,ed(a,b.context,bt,new xn(Nt.width,Nt.height),a.Ca,a.pa,gt,Pt,Zt,y),b.context):(a.Xm=!1,ed(a,oe,bt,new xn(Nt.width,Nt.height),a.Ca,a.pa,gt,Pt,Zt,y),a.Xm=!0,Nt.context);var Pe=a.Pp,pe=a.documentBounds.copy();if(pe.Fv(a.yb),Zt)for(var Le=a.Wa.s,je=Le.length,De=0;DePe?(et=Pe,tt=pe.width,pe=pe.height):(tt=nt.width,pe=nt.height)):(tt=pe.width*et,pe=pe.height*et):(et=Pe,tt=pe.width,pe=pe.height),bt!==null?(tt+=ht,pe+=je):bt=new Yn(0),nt!==null&&(Pe=nt.width,nt=nt.height,isNaN(Pe)&&(Pe=2e3),isNaN(nt)&&(nt=2e3),isFinite(Pe)&&(tt=Math.min(tt,Pe)),isFinite(nt)&&(pe=Math.min(pe,nt))),Nt.width=Math.ceil(tt),Nt.height=Math.ceil(pe),x==="SVG"?b===null?null:(b.resize(Nt.width,Nt.height,Nt.width,Nt.height),b.ownerDocument=zt,b.hs=Yt,ed(a,b.context,bt,new xn(Math.ceil(tt),Math.ceil(pe)),et,Le,gt,Pt,Zt,y),b.context):(a.Xm=!1,ed(a,oe,bt,new xn(Math.ceil(tt),Math.ceil(pe)),et,Le,gt,Pt,Zt,y),a.Xm=!0,Nt.context)}qe.Object.defineProperties(Ye.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof Dt||(a===""&&(a="default"),a=a.toLowerCase(),a!==this.nl&&(this.nl=a,a==="default"||a==="canvas"?(a=this.pj.get("svg"),a!==null&&a.Oa.remove(),this.ta&&(this.ib=this.ta.context)):a==="svg"?(this.pj.contains("svg")?a=this.pj.get("svg"):(a=new Cl(this,bn.document),this.bs("svg",a)),this.div!==null&&this.div.appendChild(a.Oa),this.ib=a.context,this.ta&&(this.ta.context.setTransform(this.Mb,0,0,this.Mb,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya))):a!=="debug"||this.pj.contains("SVG")||(a=new Cl(this,bn.document),this.bs("SVG",a),a.Oa.style.backgroundColor="whitesmoke",this.div!==null&&this.div.after(a.Oa)),this.hk()))}},div:{get:function(){return this.Ka},set:function(a){if(this.Ka!==a){var y=this.Ka;y!==null?(y.H=void 0,y.goDiagram=void 0,y.go=void 0,y.innerHTML="",this.ta!==null&&(y=this.ta.Oa,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.ta.mx()),this.ol&&(this.ol.disconnect(),this.ol=null),y=this.toolManager,y!==null&&(y.mouseDownTools.each(function(x){x.cancelWaitAfter()}),y.mouseMoveTools.each(function(x){x.cancelWaitAfter()}),y.mouseUpTools.each(function(x){x.cancelWaitAfter()})),y.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(bn,"resize",this.Ov,!1),this.removeEventListener(bn,"wheel",this.$j,!0),Il===this&&(Il=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),cp(this,a),this.hk())}}},$w:{get:function(){return this.Sq}},pi:{get:function(){return this.hf}},draggedLink:{get:function(){return this.nt},set:function(a){this.nt!==a&&(this.nt=a,a!==null&&(this.Vt=a.fromPort,this.Wt=a.toPort))}},Mx:{get:function(){return this.Vt},set:function(a){this.Vt=a}},Nx:{get:function(){return this.Wt},set:function(a){this.Wt=a}},animationManager:{get:function(){return this.Yd}},undoManager:{get:function(){return this.cc.undoManager}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a,this.cc.skipsUndoManager=a}},delaysLayout:{get:function(){return this.lt},set:function(a){this.lt=a}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1a&&ti(a,">= 0",Ye,"scrollHorizontalLineChange"),this.iu=a,this.g("scrollHorizontalLineChange",y,a))}},scrollVerticalLineChange:{get:function(){return this.mu},set:function(a){var y=this.mu;y!==a&&(0>a&&ti(a,">= 0",Ye,"scrollVerticalLineChange"),this.mu=a,this.g("scrollVerticalLineChange",y,a))}},lastInput:{get:function(){return this.cj},set:function(a){this.cj=a}},previousInput:{get:function(){return this.Qg},set:function(a){this.Qg=a}},firstInput:{get:function(){return this.bq},set:function(a){this.bq=a}},currentCursor:{get:function(){return this.it},set:function(a){if(a===""&&(a=this.Op),this.it!==a){var y=this.ta,x=this.Ka;if(y!==null&&x!==null){this.it=a;var b=y.style.cursor;y.style.cursor=a,x.style.cursor=a,y.style.cursor===b&&(y.style.cursor="-webkit-"+a,x.style.cursor="-webkit-"+a,y.style.cursor===b&&(y.style.cursor="-moz-"+a,x.style.cursor="-moz-"+a,y.style.cursor===b&&(y.style.cursor=a,x.style.cursor=a)))}}}},defaultCursor:{get:function(){return this.Op},set:function(a){a===""&&(a="auto");var y=this.Op;y!==a&&(this.Op=a,this.g("defaultCursor",y,a))}},click:{get:function(){return this.zh},set:function(a){var y=this.zh;y!==a&&(this.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.Fh},set:function(a){var y=this.Fh;y!==a&&(this.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.Bh},set:function(a){var y=this.Bh;y!==a&&(this.Bh=a,this.g("contextClick",y,a))}},mouseOver:{get:function(){return this.Qh},set:function(a){var y=this.Qh;y!==a&&(this.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.Oh},set:function(a){var y=this.Oh;y!==a&&(this.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.Nh},set:function(a){var y=this.Nh;y!==a&&(this.Nh=a,this.g("mouseHold",y,a))}},mouseDragOver:{get:function(){return this.Qt},set:function(a){var y=this.Qt;y!==a&&(this.Qt=a,this.g("mouseDragOver",y,a))}},mouseDrop:{get:function(){return this.Lh},set:function(a){var y=this.Lh;y!==a&&(this.Lh=a,this.g("mouseDrop",y,a))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(a){var y=this.xt;y!==a&&(this.xt=a,this.g("handlesDragDropForTopLevelParts",y,a))}},mouseEnter:{get:function(){return this.Mh},set:function(a){var y=this.Mh;y!==a&&(this.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.Ph},set:function(a){var y=this.Ph;y!==a&&(this.Ph=a,this.g("mouseLeave",y,a))}},toolTip:{get:function(){return this.$h},set:function(a){var y=this.$h;y!==a&&(this.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.Ch},set:function(a){var y=this.Ch;y!==a&&(this.Ch=a,this.g("contextMenu",y,a))}},commandHandler:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a,a.Xe(this))}},toolManager:{get:function(){return this.te},set:function(a){this.te!==a&&(this.te=a,a.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(a){var y=this.ob;y!==a&&(this.ob=a,a.diagram=this,this.currentTool===y&&(this.currentTool=a))}},currentTool:{get:function(){return this.hb},set:function(a){var y=this.hb;y&&(y.isActive&&y.doDeactivate(),y.cancelWaitAfter(),y.doStop()),a===null&&(a=this.defaultTool),a!==null&&(this.hb=a,a.diagram=this,a.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(a){var y=this.Nt;if(y!==a)if(0<=a&&!isNaN(a)){if(this.Nt=a,this.g("maxSelectionCount",y,a),!this.undoManager.isUndoingRedoing&&(a=this.selection.count-a,0= 0",Ye,"maxSelectionCount")}},nodeSelectionAdornmentTemplate:{get:function(){return this.St},set:function(a){var y=this.St;y!==a&&(this.St=a,this.g("nodeSelectionAdornmentTemplate",y,a))}},groupSelectionAdornmentTemplate:{get:function(){return this.wt},set:function(a){var y=this.wt;y!==a&&(this.wt=a,this.g("groupSelectionAdornmentTemplate",y,a))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kt},set:function(a){var y=this.Kt;y!==a&&(this.Kt=a,this.g("linkSelectionAdornmentTemplate",y,a))}},highlighteds:{get:function(){return this.nw}},isModified:{get:function(){var a=this.undoManager;return a.isEnabled?a.currentTransaction!==null?!0:this.rn&&this.Ce!==a.historyIndex:this.rn},set:function(a){if(this.rn!==a){this.rn=a;var y=this.undoManager;!a&&y.isEnabled&&(this.Ce=y.historyIndex),a||tm(this)}}},model:{get:function(){return this.cc},set:function(a){var y=this.cc;if(y!==a){this.currentTool.doCancel(),y&&y.undoManager!==a.undoManager&&y.undoManager.isInTransaction&&We("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=hp(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var b=this.vb;this.vb=!0,Dl(this.animationManager,"Model"),y&&(this.pf!==null&&this.pf.each(function(et){return y.ik(et)}),y.ik(this.Oc)),this.cc=a,this.partManager=Cp(this.cc.type);for(var tt=0;ttthis.scale&&(this.scale=a)):ti(a,"> 0",Ye,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(a){var y=this.Mt;y!==a&&(0 0",Ye,"maxScale"))}},zoomPoint:{get:function(){return this.zu},set:function(a){this.zu.D(a)||(this.zu=a=a.J())}},contentAlignment:{get:function(){return this.zk},set:function(a){var y=this.zk;y.D(a)||(this.zk=a=a.J(),this.g("contentAlignment",y,a),La(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(a){var y=this.pq;y.D(a)||(this.pq=a=a.J(),this.g("initialContentAlignment",y,a))}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Yn(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.Ya(),this.g("padding",y,a))}},partManager:{get:function(){return this.Pc},set:function(a){var y=this.Pc;y!==a&&(a.diagram!==null&&We("Cannot share PartManagers between Diagrams: "+a.toString()),y&&y.Xe(null),this.Pc=a,a.Xe(this))}},nodes:{get:function(){return this.partManager.nodes.iterator}},links:{get:function(){return this.partManager.links.iterator}},parts:{get:function(){return this.partManager.parts.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;y!==a&&(this.Sc=a,a.diagram=this,a.group=null,this.xh=!0,this.g("layout",y,a),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(a){var y=this.Ht;if(y!==a&&(this.Ht=a,this.g("isTreePathToChildren",y,a),!this.undoManager.isUndoingRedoing))for(a=this.nodes;a.next();)Kp(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==Hu&&a!==Fr&&a!==cd&&We("Unknown Diagram.treeCollapsePolicy: "+a),this.uu=a,this.g("treeCollapsePolicy",y,a))}},Ue:{get:function(){return this.pw},set:function(a){this.pw=a}},avoidanceCellSize:{get:function(){return this.aw},set:function(a){this.Xh=null,this.aw=new xn(Math.max(1,a.width),Math.max(1,a.height))}},avoidanceLimit:{get:function(){return this.bw},set:function(a){this.bw=Math.max(1,a)}},autoScrollInterval:{get:function(){return this.vp},set:function(a){var y=this.vp;y!==a&&(this.vp=a,this.g("autoScrollInterval",y,a))}},autoScrollRegion:{get:function(){return this.xp},set:function(a){typeof a=="number"&&(a=new Yn(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),qe.Object.defineProperties(Ye,{licenseKey:{get:function(){return Dp.jc()},set:function(a){Dp.add(a.replace(/\s/g,""))}},version:{get:function(){return wc}}}),Ye.prototype.makeImageData=Ye.prototype.Jx,Ye.prototype.makeImage=Ye.prototype.Wz,Ye.prototype.cacheGroupExternalLinks=Ye.prototype.Fu,Ye.prototype.addRenderer=Ye.prototype.bs,Ye.prototype.makeSVG=Ye.prototype.av,Ye.prototype.makeSvg=Ye.prototype.Cs,Ye.prototype.stopAutoScroll=Ye.prototype.ug,Ye.prototype.doAutoScroll=Ye.prototype.gs,Ye.prototype.isUnoccupied=Ye.prototype.Yj,Ye.prototype.raiseDiagramEvent=Ye.prototype.R,Ye.prototype.removeDiagramListener=Ye.prototype.am,Ye.prototype.addDiagramListener=Ye.prototype.Bj,Ye.prototype.findTreeRoots=Ye.prototype.yz,Ye.prototype.layoutDiagram=Ye.prototype.Uz,Ye.prototype.findTopLevelGroups=Ye.prototype.qz,Ye.prototype.findTopLevelNodesAndLinks=Ye.prototype.rz,Ye.prototype.ensureBounds=Ye.prototype.Va,Ye.prototype.findLinksByExample=Ye.prototype.ls,Ye.prototype.findNodesByExample=Ye.prototype.ms,Ye.prototype.findLinkForData=Ye.prototype.Kc,Ye.prototype.findNodeForData=Ye.prototype.ii,Ye.prototype.findPartForData=Ye.prototype.Lc,Ye.prototype.findLinkForKey=Ye.prototype.findLinkForKey,Ye.prototype.findNodeForKey=Ye.prototype.Vb,Ye.prototype.findPartForKey=Ye.prototype.findPartForKey,Ye.prototype.rebuildParts=Ye.prototype.Wd,Ye.prototype.transformViewToDoc=Ye.prototype.Ps,Ye.prototype.transformRectDocToView=Ye.prototype.zA,Ye.prototype.transformDocToView=Ye.prototype.op,Ye.prototype.centerRect=Ye.prototype.es,Ye.prototype.scrollToRect=Ye.prototype.tv,Ye.prototype.scroll=Ye.prototype.scroll,Ye.prototype.highlightCollection=Ye.prototype.Jz,Ye.prototype.highlight=Ye.prototype.Iz,Ye.prototype.selectCollection=Ye.prototype.rA,Ye.prototype.select=Ye.prototype.select,Ye.prototype.updateAllRelationshipsFromData=Ye.prototype.rp,Ye.prototype.updateAllTargetBindings=Ye.prototype.updateAllTargetBindings,Ye.prototype.commit=Ye.prototype.commit,Ye.prototype.rollbackTransaction=Ye.prototype.Kf,Ye.prototype.commitTransaction=Ye.prototype.eb,Ye.prototype.startTransaction=Ye.prototype.Ea,Ye.prototype.raiseChanged=Ye.prototype.g,Ye.prototype.raiseChangedEvent=Ye.prototype.cb,Ye.prototype.removeChangedListener=Ye.prototype.ik,Ye.prototype.addChangedListener=Ye.prototype.Pe,Ye.prototype.removeModelChangedListener=Ye.prototype.mA,Ye.prototype.addModelChangedListener=Ye.prototype.Yw,Ye.prototype.findLayer=Ye.prototype.Qj,Ye.prototype.removeLayer=Ye.prototype.kA,Ye.prototype.addLayerAfter=Ye.prototype.Cy,Ye.prototype.addLayerBefore=Ye.prototype.Ww,Ye.prototype.addLayer=Ye.prototype.Al,Ye.prototype.moveParts=Ye.prototype.moveParts,Ye.prototype.copyParts=Ye.prototype.Kj,Ye.prototype.removeParts=Ye.prototype.Is,Ye.prototype.remove=Ye.prototype.remove,Ye.prototype.add=Ye.prototype.add,Ye.prototype.clearDelayedGeometries=Ye.prototype.bx,Ye.prototype.setProperties=Ye.prototype.nm,Ye.prototype.attach=Ye.prototype.Du,Ye.prototype.set=Ye.prototype.set,Ye.prototype.resetInputOptions=Ye.prototype.Sx,Ye.prototype.setInputOption=Ye.prototype.sA,Ye.prototype.getInputOption=Ye.prototype.Ql,Ye.prototype.resetRenderingHints=Ye.prototype.Tx,Ye.prototype.setRenderingHint=Ye.prototype.Xx,Ye.prototype.getRenderingHint=Ye.prototype.Gf,Ye.prototype.maybeUpdate=Ye.prototype.bd,Ye.prototype.requestUpdate=Ye.prototype.$b,Ye.prototype.delayInitialization=Ye.prototype.Xy,Ye.prototype.isUpdateRequested=Ye.prototype.Pz,Ye.prototype.invalidateDocumentBounds=Ye.prototype.Ya,Ye.prototype.findObjectsNear=Ye.prototype.og,Ye.prototype.findPartsNear=Ye.prototype.mz,Ye.prototype.findObjectsIn=Ye.prototype.Cf,Ye.prototype.findPartsIn=Ye.prototype.ux,Ye.prototype.findObjectsAt=Ye.prototype.ji,Ye.prototype.findPartsAt=Ye.prototype.lz,Ye.prototype.findObjectAt=Ye.prototype.ic,Ye.prototype.findPartAt=Ye.prototype.Ol,Ye.prototype.focusObject=Ye.prototype.zz,Ye.prototype.alignDocument=Ye.prototype.Jy,Ye.prototype.zoomToRect=Ye.prototype.BA,Ye.prototype.zoomToFit=Ye.prototype.zoomToFit,Ye.prototype.diagramScroll=Ye.prototype.kx,Ye.prototype.focus=Ye.prototype.focus;var hd=new Rn,om=null,gr=bn.document!==void 0,Sc=null,_h="",Wo=new sn(Ye,"None",0),$s=new sn(Ye,"Uniform",1),Oh=new sn(Ye,"UniformToFill",2),uf=new sn(Ye,"CycleAll",10),Tp=new sn(Ye,"CycleNotDirected",11),_p=new sn(Ye,"CycleNotDirectedFast",12),Op=new sn(Ye,"CycleNotUndirected",13),jp=new sn(Ye,"CycleDestinationTree",14),Np=new sn(Ye,"CycleSourceTree",15),Uu=new sn(Ye,"DocumentScroll",1),hf=new sn(Ye,"InfiniteScroll",2),Hu=new sn(Ye,"TreeParentCollapsed",21),Fr=new sn(Ye,"AllParentsCollapsed",22),cd=new sn(Ye,"AnyParentsCollapsed",23),Dp=new vn,wc="2.3.10",xc="image",cf=null,sm=!1;function Bo(){if(gr){var a=bn.document.createElement("canvas"),y=a.getContext("2d"),x=mn("7ca11abfd022028846");y[x]=mn("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",Bn.Dx+"4ae6247590da4bb21c324ba3a84e385776",Xn.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Ge.za],tt=1;5>tt;tt++)y[mn("7ca11abfd7330390")](mn(b[tt-1]),10,15*tt);for(y[x]=mn("39f046ebb36e4b"),x=1;5>x;x++)y[mn("7ca11abfd7330390")](mn(b[x-1]),10,15*x);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(Xn.prototype.Cd=Xn.prototype.Eu),cf=a}}Ye.className="Diagram",Ye.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=bn.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof Ye?y.H:null},Ye.inherit=function(a,y){function x(){}if(Object.getPrototypeOf(a).prototype)throw Error(`Used go.Diagram.inherit defining already defined class +`+a);x.prototype=y.prototype,a.prototype=new x,a.prototype.constructor=a},Ye.useDOM=function(a){gr=a?bn.document!==void 0:!1},Ye.isUsingDOM=function(){return gr},Ye.None=Wo,Ye.Uniform=$s,Ye.UniformToFill=Oh,Ye.CycleAll=uf,Ye.CycleNotDirected=Tp,Ye.CycleNotDirectedFast=_p,Ye.CycleNotUndirected=Op,Ye.CycleDestinationTree=jp,Ye.CycleSourceTree=Np,Ye.DocumentScroll=Uu,Ye.InfiniteScroll=hf,Ye.TreeParentCollapsed=Hu,Ye.AllParentsCollapsed=Fr,Ye.AnyParentsCollapsed=cd;function am(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function bc(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)t:{y="f";var x=bn[mn("76a715b2f73f148a")][mn("72ba13b5")]||"";if(a.Rc=!0,gr){var b=Ye[mn("76a115b6ed251eaf4692")];if(b)for(var tt=Dp.iterator;tt.next()&&(b=tt.value,b=mn(b).split(mn("39e9")),!(6>b.length));){var et=mn(b[1]).split(".");if(b[4]!=="7da71ca0")break;var nt=mn(Bn[mn("6cae19")]).split(".");if(et[0]>nt[0]||et[0]===nt[0]&&et[1]>=nt[1]){var ht=bn[mn("74a900bae4370f8b51")][mn("6fbb13a1c2311e8a57")].toLowerCase();if(nt=ht[mn("73a612b6fb191d")](mn("3aad1ab6e022098b4dc4")),et=mn(b[2]),-1nt&&et!==mn("7da71ca0ad381e90")&&(nt=y[mn("73a612b6fb191d")](mn("76a715b2ef3e149757"))),0>nt&&(nt=y[mn("73a612b6fb191d")](mn("76a715b2ef3e149757"))),0>nt&&(nt=y[mn("73a612b6fb191d")](mn("2bfa41fdb3784bca12"))),0>nt&&(nt=x[mn("73a612b6fb191d")](mn("7baa19a6f76c1988428554"))),a.Rc=!(0<=nt&&ntht),!a.Rc)))break;if(et[0]==="#"){nt=bn.document.createElement("div");for(var gt=b[0].replace(/[A-Za-z]/g,"");4>gt.length;)gt+="9";if(ht=gt,gt=gt.substr(gt.length-4),b="",b+=["gsh","gsf"][parseInt(gt.substr(0,1),10)%2],b+=["Header","Background","Display","Feedback"][parseInt(gt.substr(0,1),10)%4],nt[mn("79a417a0f0181a8946")]=b,bn.document[mn("78a712aa")]){bn.document[mn("78a712aa")][mn("7bb806b6ed32388c4a875b")](nt),gt=bn.getComputedStyle(nt).getPropertyValue(mn("78a704b7e62456904c9b12701b6532a8"));var bt=bn.getComputedStyle(nt).getPropertyValue(mn("75b817b0ea2202"));if(bn.document[mn("78a712aa")][mn("68ad1bbcf533388c4a875b")](nt),gt){if(nt=bn[mn("77a902b0eb1b1e804a8a")],bt==="0."+parseInt(ht,10)%100||gt.indexOf(parseInt(et[1]+et[2],16))!==-1&>.indexOf(parseInt(et[3]+et[4],16))!==-1){a.Rc=!1;break}else if(nt&&nt(mn("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(b="."+b,et=0;etb.updateDelay?b.N():b.o||(b.o=!0,setTimeout(function(){return b.redraw()},b.updateDelay))},x.Of=function(){b.observed!==null&&ce(b)},x.autoScale=$s,x.vb=!1,y&&Object.assign(x,y),x}en(Dt,Ye),Dt.prototype.computePixelRatio=function(){return 1},Dt.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var a=this.ta,y=this.ib;if(a!==null&&y!==null){if(mc(this),this.ql===null){var x=new _a(null);x.width=a.width,x.height=a.height,this.ql=x}try{this.ta=this.ql,this.ib=this.ta.context,this.ib.Vc(!0),this.ib.setTransform(1,0,0,1,0,0),this.ib.clearRect(0,0,this.ta.width,this.ta.height),qt(this)}finally{this.ta=a,this.ib=y}}}Ye.prototype.redraw.call(this)},Dt.prototype.gc=function(){if(this.Ka===null&&We("No div specified"),this.ta===null&&We("No canvas specified"),!(this.ta instanceof Cl)&&(Iv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){mc(this);var y=this.ta;a=this.ib,a.Vc(!0),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,y.width,y.height),1>this.updateDelay?qt(this):this.ql!==null&&(a.drawImage(this.ql.Oa,0,0),y=this.Ab,y.reset(),this.scale!==1&&y.scale(this.scale),this.position.x===0&&this.position.y===0||y.translate(-this.position.x,-this.position.y),a.scale(this.Mb,this.Mb),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.yc()),y=this.Wa.s;for(var x=y.length,b=0;ba&&(a=0),this.ia!==a&&(this.ia=a)}}}),Dt.className="Overview";function Ce(){sr.call(this),this.j=null}en(Ce,sr),Ce.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||!a.allowMove||!a.allowSelect)return!1;var y=a.observed;if(y===null)return!1;var x=a.lastInput;return!x.left||a.currentTool!==this&&(!this.isBeyondDragSize()||x.isTouchEvent&&x.timestamp-a.firstInput.timestampy.maxScale||(y.scale=a))},be.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==Wo?!1:(a=y.scale*a,ay.maxScale?!1:y.allowZoom)},be.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===Wo&&(a=y.scale*a,ay.maxScale||(y.scale=a))},be.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==Wo?!1:(a=y.scale*a,ay.maxScale?!1:y.allowZoom)},be.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;ay.maxScale||(y.scale=a)},be.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return ay.maxScale?!1:y.allowZoom},be.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,b=a.scale;Dl(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&b===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=Jo):(this.Jt=b,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),Zf(y)},be.prototype.canZoomToFit=function(){return this.diagram.allowZoom},be.prototype.scrollToPart=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.Va(),a===null){try{this.cg!==null&&(this.cg.next()?a=this.cg.value:this.cg=null)}catch(gt){this.cg=null}a===null&&(0a&&(a+=360)),a},ee.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},ee.qs=function(a,y){return y===void 0&&(y=new Ee),y.assign(a),this.oe.Cd(y),y},ee.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},ee.Sj=function(a,y,x,b,tt){var et=this.transform,nt=1/(et.m11*et.m22-et.m12*et.m21),ht=et.m22*nt,gt=-et.m12*nt,bt=-et.m21*nt,Pt=et.m11*nt,Nt=nt*(et.m21*et.dy-et.m22*et.dx),zt=nt*(et.m12*et.dx-et.m11*et.dy);return this.areaBackground!==null?(et=this.actualBounds,Ge.Ff(et.left,et.top,et.right,et.bottom,a,y,x,b,tt)):(nt=a*ht+y*bt+Nt,a=a*gt+y*Pt+zt,y=x*ht+b*bt+Nt,x=x*gt+b*Pt+zt,tt.h(0,0),b=this.naturalBounds,x=Ge.Ff(0,0,b.width,b.height,nt,a,y,x,tt),tt.transform(et),x)},ze.prototype.measure=function(a,y,x,b){if(ea(this)!==!1){var tt=this.Kg,et=tt.right+tt.left;tt=tt.top+tt.bottom,a=Math.max(a-et,0),y=Math.max(y-tt,0),x=Math.max((x||0)-et,0),b=Math.max((b||0)-tt,0),et=this.angle,tt=this.desiredSize;var nt=this.kq();et===90||et===270?(a=isFinite(tt.height)?tt.height+nt:a,y=isFinite(tt.width)?tt.width+nt:y):(a=isFinite(tt.width)?tt.width+nt:a,y=isFinite(tt.height)?tt.height+nt:y),tt=x||0,nt=b||0;var ht=this instanceof un;switch(ws(this,!0)){case an:nt=tt=0,ht&&(y=a=1/0);break;case ln:isFinite(a)&&a>x&&(tt=a),isFinite(y)&&y>b&&(nt=y);break;case Tn:isFinite(a)&&a>x&&(tt=a),nt=0,ht&&(y=1/0);break;case In:isFinite(y)&&y>b&&(nt=y),tt=0,ht&&(a=1/0)}ht=this.maxSize;var gt=this.minSize;tt>ht.width&>.widthht.height&>.heighta.height||this.Cb>a.width))&&(x=!0)),this.l=x?this.l|256:this.l&-257,this.Ib.w()||We("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(et,this.Ib),Rl(this,!1),$e.free(et)},ee=ze.prototype,ee.eh=function(){};function Vo(a,y,x,b,tt){if(a.Ib.h(y,x,b,tt),!a.desiredSize.w()){var et=a.uc;x=a.Kg,y=x.right+x.left;var nt=x.top+x.bottom;switch(x=et.width+y,et=et.height+nt,b+=y,tt+=nt,y=ws(a,!0),x===b&&et===tt&&(y=an),y){case an:(x>b||et>tt)&&(Br(a,!0),a.measure(x>b?b:x,et>tt?tt:et,0,0));break;case ln:Br(a,!0),a.measure(b,tt,0,0);break;case Tn:Br(a,!0),a.measure(b,et,0,0);break;case In:Br(a,!0),a.measure(x,tt,0,0)}}}ee.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||Rv(x,!0),this.N(),Cu(a,y)||(x.oh(),this.Pn(x)))},ee.Pn=function(a){this.portId!==null&&(Rv(a,!0),a instanceof wn&&W1(a,this))},ee.gc=function(a,y){if(!da(this,a,y)&&this.visible){var x=this.opacity;if(x!==0){var b=1;x!==1&&(b=a.globalAlpha,a.globalAlpha=b*x);var tt="";this.filter!==""&&(tt=a.filter,a.filter=this.filter);var et=this instanceof un&&Yu(this),nt=this.Ib;if(et){var ht=this.Ib,gt=this.dc,bt=this.areaBackground,Pt=this.Ma;bt===null&&Pt===null||a.yc(),bt!==null&&(vr(this,a,bt,!0,!0,gt,ht),bt instanceof bi&&bt.type===ma?(a.beginPath(),a.rect(ht.x,ht.y,ht.width,ht.height),a.ng(bt)):a.fillRect(ht.x,ht.y,ht.width,ht.height)),Pt!==null&&(vr(this,a,Pt,!0,!1,gt,ht),Pt instanceof bi&&Pt.type===ma?(a.beginPath(),a.rect(ht.x,ht.y,ht.width,ht.height),a.ng(Pt)):a.fillRect(ht.x,ht.y,ht.width,ht.height)),this.hh(a,y)}if(!et&&(et||nt.width!==0&&nt.height!==0&&!isNaN(nt.x)&&!isNaN(nt.y))){et=this.transform,ht=this.panel,this.l&4096&&So(this),bt=this.part,gt=!1;var Nt=0;bt&&y.Gf("drawShadows")&&(gt=bt.isShadowed)&&(Pt=bt.shadowOffset,Nt=Math.max(Pt.y,Pt.x)*y.scale*y.Mb),Pt=this.Dd();var zt;if(!(zt=y.$i||!Pt)){var Yt=this.naturalBounds;zt=this.wh;var Zt=zt.m11,oe=zt.m21,Pe=zt.dx,pe=zt.m12,Le=zt.m22,je=zt.dy,De,Re=De=0;zt=De*Zt+Re*oe+Pe;var Ve=De*pe+Re*Le+je;De=Yt.width+Nt,Re=0;var Sn=De*Zt+Re*oe+Pe;De=De*pe+Re*Le+je,Re=Math.min(zt,Sn);var Mn=Math.min(Ve,De),Pn=Math.max(zt+0,Sn)-Re,hn=Math.max(Ve+0,De)-Mn;zt=Re,Ve=Mn,De=Yt.width+Nt,Re=Yt.height+Nt,Sn=De*Zt+Re*oe+Pe,De=De*pe+Re*Le+je,Re=Math.min(zt,Sn),Mn=Math.min(Ve,De),Pn=Math.max(zt+Pn,Sn)-Re,hn=Math.max(Ve+hn,De)-Mn,zt=Re,Ve=Mn,De=0,Re=Yt.height+Nt,Sn=De*Zt+Re*oe+Pe,De=De*pe+Re*Le+je,Re=Math.min(zt,Sn),Mn=Math.min(Ve,De),Pn=Math.max(zt+Pn,Sn)-Re,hn=Math.max(Ve+hn,De)-Mn,zt=Re,Ve=Mn,Nt=y.viewportBounds,Yt=Nt.x,Zt=Nt.y,zt=!(zt>Nt.width+Yt||Yt>Pn+zt||Ve>Nt.height+Zt||Zt>hn+Ve)}if(zt){if(zt=(this.l&256)!==0,a.clipInsteadOfFill&&(zt=!1),this instanceof Ni&&(a.font=this.font),zt){if(Ve=ht.se()?ht.naturalBounds:ht.actualBounds,Pn=Math.max(nt.x,Ve.x),hn=Math.max(nt.y,Ve.y),Nt=Math.min(nt.right,Ve.right)-Pn,Yt=Math.min(nt.bottom,Ve.bottom)-hn,Zt=this.tb,Zt!==null&&(Pn=Zt.x,hn=Zt.y,Nt=Zt.width,Yt=Zt.height),Pn>nt.width+nt.x||nt.x>Ve.width+Ve.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=tt);return}a.save(),a.beginPath(),a.rect(Pn,hn,Nt,Yt),a.clip()}if(Pt){if(!bt.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=tt);return}gt&&(Ve=bt.shadowOffset,a.Ev(Ve.x*y.scale*this.scale*y.Mb,Ve.y*y.scale*this.scale*y.Mb,bt.shadowBlur),hu(a),a.shadowColor=bt.shadowColor)}gt&&this.shadowVisible===!0?hu(a):gt&&this.shadowVisible===!1&&zl(a),bt=this.naturalBounds,this.areaBackground!==null&&(a.yc(),ta(this,a,bt,nt)),a.transform(et.m11,et.m12,et.m21,et.m22,et.dx,et.dy),gt&&fo(this,ht)&&this.shadowVisible===null&&zl(a),this.Ma!==null&&(a.yc(),Ls(this,a,bt,nt)),gt&&(this.Ma!==null||this.areaBackground!==null||fo(this,ht))?(Wa(this,!0),this.shadowVisible===null&&zl(a)):Wa(this,!1),this.hh(a,y),gt&&this.l&512&&hu(a),Pt&>&&zl(a),zt&&(a.restore(),a.Vc(this instanceof un)),et.ws()||(y=1/(et.m11*et.m22-et.m12*et.m21),a.transform(et.m22*y,-et.m12*y,-et.m21*y,et.m11*y,y*(et.m21*et.dy-et.m22*et.dx),y*(et.m12*et.dx-et.m11*et.dy)))}}x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=tt)}}};function fo(a,y){return y===null?!1:(Yu(y)&&(y=y.panel),(y.l&512)!==0||(y.type===un.Auto||y.type===un.Spot)&&y.Pb()!==a)}ee.Dv=function(){};function ta(a,y,x,b){vr(a,y,a.areaBackground,!0,!0,x,b),a.areaBackground instanceof bi&&a.areaBackground.type===ma?(y.beginPath(),y.rect(b.x,b.y,b.width,b.height),y.ng(a.areaBackground)):y.fillRect(b.x,b.y,b.width,b.height)}function Ls(a,y,x,b){var tt=a.kq(),et=x.x,nt=x.y,ht=x.width+tt,gt=x.height+tt;vr(a,y,a.Ma,!0,!1,x,b),a.Ma instanceof bi&&a.Ma.type===ma?(y.beginPath(),y.rect(et-tt/2,nt-tt/2,ht,gt),y.ng(a.Ma)):y.fillRect(et-tt/2,nt-tt/2,ht,gt)}function Ro(a,y,x){for(var b=y.O.s,tt=b.length,et=-1,nt=0;nttt)&&We("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+tt),a.isRow=!0,a.index=tt):y.column!==void 0&&(tt=y.column,(tt==null||tt===1/0||isNaN(tt)||0>tt)&&We("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+tt),a.isRow=!1,a.index=tt),tt=new si;for(x in y)x!=="row"&&x!=="column"&&(tt[x]=y[x]);gc(a,tt)}else gc(a,y);else We('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function Wu(a,y){fd.add(a,y)}function lm(a,y,x){x===void 0&&(x=null);var b=a[1];if(typeof x=="function"?x(b):typeof b=="string")return a.splice(1,1),b;if(y===void 0)throw Error("no "+(typeof x=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}qe.Object.defineProperties(ze.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new pf),this.A.zp=a)}},localBindings:{get:function(){return this.A!==null?this.A.te:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new pf),this.A.te=a)}},srcBindings:{get:function(){return this.A!==null?this.A.wm:null},set:function(a){this.srcBindings!==a&&(this.A===null&&(this.A=new pf),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(Vn(this),this.A.Ci=a,this.Uc=!0,this.N(),this.g("shadowVisible",y,a))}},enabledChanged:{get:function(){return this.A!==null?this.A.Hb:null},set:function(a){var y=this.enabledChanged;y!==a&&(Vn(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:ls},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new jh),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===ls&&(this.angle=0))}},segmentIndex:{get:function(){return this.Ua!==null?this.Ua.u:-1/0},set:function(a){a=Math.round(a);var y=this.segmentIndex;y!==a&&(this.Ua===null&&(this.Ua=new jh),this.Ua.u=a,this.v(),this.g("segmentIndex",y,a))}},segmentFraction:{get:function(){return this.Ua!==null?this.Ua.o:0},set:function(a){isNaN(a)||0>a?a=0:1a||1=a&&We("GraphObject.scale for "+this+" must be greater than zero, not: "+a),this.Ca=a,this.v(),this.g("scale",y,a))}},angle:{get:function(){return this.Kb},set:function(a){var y=this.Kb;y!==a&&(a%=360,0>a&&(a+=360),y!==a&&(this.Kb=a,Xy(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,b=this.jd,tt=b.width,et=b.height;(tt===y||isNaN(tt)&&isNaN(y))&&(et===x||isNaN(et)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof Wn&&this.qc(),this.g("desiredSize",b,a),Co(this)&&(a=this.part,a!==null&&(Hi(this,a,"width"),Hi(this,a,"height"))))}},width:{get:function(){return this.jd.width},set:function(a){var y=this.jd.width;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new xn(a,this.jd.height).freeze(),this.v(),this instanceof Wn&&this.qc(),this.g("desiredSize",y,a),Co(this)&&(a=this.part,a!==null&&Hi(this,a,"width")))}},height:{get:function(){return this.jd.height},set:function(a){var y=this.jd.height;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new xn(this.jd.width,a).freeze(),this.v(),this instanceof Wn&&this.qc(),this.g("desiredSize",y,a),Co(this)&&(a=this.part,a!==null&&Hi(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:ai},set:function(a){var y=this.minSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=0),isNaN(a.height)&&(a.height=0),a.freeze(),Vn(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:mo},set:function(a){var y=this.maxSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=1/0),isNaN(a.height)&&(a.height=1/0),a.freeze(),Vn(this),this.A.o=a,this.v(),this.g("maxSize",y,a))}},measuredBounds:{get:function(){return this.uc}},naturalBounds:{get:function(){return this.dc}},margin:{get:function(){return this.Kg},set:function(a){typeof a=="number"&&(a=new Yn(a));var y=this.Kg;y.D(a)||(this.Kg=a=a.J(),this.v(),this.g("margin",y,a))}},transform:{get:function(){return this.l&2048&&So(this),this.Ab}},oe:{get:function(){return this.l&4096&&So(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(Vn(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:an},set:function(a){this.reshapingBehavior!==a&&(Vn(this),this.A.Pf=a)}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(a.Mc()&&!a.Xb()&&We("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),rs(this),this.g("alignment",y,a))}},column:{get:function(){return this.Ag},set:function(a){a=Math.round(a);var y=this.Ag;y!==a&&(0>a&&ti(a,">= 0",ze,"column"),this.Ag=a,this.v(),this.g("column",y,a),this.svg!==null&&this.svg.remove())}},columnSpan:{get:function(){return this.A!==null?this.A.ob:1},set:function(a){a=Math.round(a);var y=this.columnSpan;y!==a&&(1>a&&ti(a,">= 1",ze,"columnSpan"),Vn(this),this.A.ob=a,this.v(),this.g("columnSpan",y,a))}},row:{get:function(){return this.io},set:function(a){a=Math.round(a);var y=this.io;y!==a&&(0>a&&ti(a,">= 0",ze,"row"),this.io=a,this.v(),this.g("row",y,a),this.svg!==null&&this.svg.remove())}},rowSpan:{get:function(){return this.A!==null?this.A.Bi:1},set:function(a){a=Math.round(a);var y=this.rowSpan;y!==a&&(1>a&&ti(a,">= 1",ze,"rowSpan"),Vn(this),this.A.Bi=a,this.v(),this.g("rowSpan",y,a))}},spanAllocation:{get:function(){return this.A!==null?this.A.Di:null},set:function(a){var y=this.spanAllocation;y!==a&&(Vn(this),this.A.Di=a,this.v(),this.g("spanAllocation",y,a))}},alignmentFocus:{get:function(){return this.sk},set:function(a){var y=this.sk;y.D(a)||(this.sk=a=a.J(),this.v(),this.g("alignmentFocus",y,a))}},portId:{get:function(){return this.Yn},set:function(a){var y=this.Yn;if(y!==a){var x=this.part;x===null||x instanceof wn||We("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Hv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,K1(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:$r},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Pc(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&ti(a,">= 0",ze,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Pc(this))}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:0},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.g("toShortLength",y,a),Pc(this))}},toLinkable:{get:function(){return this.ba!==null?this.ba.Tr:null},set:function(a){var y=this.toLinkable;y!==a&&(this.Xc(),this.ba.Tr=a,this.g("toLinkable",y,a))}},toMaxLinks:{get:function(){return this.ba!==null?this.ba.Ur:1/0},set:function(a){var y=this.toMaxLinks;y!==a&&(0>a&&ti(a,">= 0",ze,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:$r},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Pc(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&ti(a,">= 0",ze,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Pc(this))}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:0},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.g("fromShortLength",y,a),Pc(this))}},fromLinkable:{get:function(){return this.ba!==null?this.ba.hq:null},set:function(a){var y=this.fromLinkable;y!==a&&(this.Xc(),this.ba.hq=a,this.g("fromLinkable",y,a))}},fromMaxLinks:{get:function(){return this.ba!==null?this.ba.iq:1/0},set:function(a){var y=this.fromMaxLinks;y!==a&&(0>a&&ti(a,">= 0",ze,"fromMaxLinks"),this.Xc(),this.ba.iq=a,this.g("fromMaxLinks",y,a))}},cursor:{get:function(){return this.A!==null?this.A.j:""},set:function(a){var y=this.cursor;y!==a&&(Vn(this),this.A.j=a,this.g("cursor",y,a))}},click:{get:function(){return this.A!==null?this.A.zh:null},set:function(a){var y=this.click;y!==a&&(Vn(this),this.A.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.A!==null?this.A.Fh:null},set:function(a){var y=this.doubleClick;y!==a&&(Vn(this),this.A.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.A!==null?this.A.Bh:null},set:function(a){var y=this.contextClick;y!==a&&(Vn(this),this.A.Bh=a,this.g("contextClick",y,a))}},mouseEnter:{get:function(){return this.A!==null?this.A.Mh:null},set:function(a){var y=this.mouseEnter;y!==a&&(Vn(this),this.A.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.A!==null?this.A.Ph:null},set:function(a){var y=this.mouseLeave;y!==a&&(Vn(this),this.A.Ph=a,this.g("mouseLeave",y,a))}},mouseOver:{get:function(){return this.A!==null?this.A.Qh:null},set:function(a){var y=this.mouseOver;y!==a&&(Vn(this),this.A.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.A!==null?this.A.Oh:null},set:function(a){var y=this.mouseHover;y!==a&&(Vn(this),this.A.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.A!==null?this.A.Nh:null},set:function(a){var y=this.mouseHold;y!==a&&(Vn(this),this.A.Nh=a,this.g("mouseHold",y,a))}},mouseDragEnter:{get:function(){return this.A!==null?this.A.Of:null},set:function(a){var y=this.mouseDragEnter;y!==a&&(Vn(this),this.A.Of=a,this.g("mouseDragEnter",y,a))}},mouseDragLeave:{get:function(){return this.A!==null?this.A.Xd:null},set:function(a){var y=this.mouseDragLeave;y!==a&&(Vn(this),this.A.Xd=a,this.g("mouseDragLeave",y,a))}},mouseDrop:{get:function(){return this.A!==null?this.A.Lh:null},set:function(a){var y=this.mouseDrop;y!==a&&(Vn(this),this.A.Lh=a,this.g("mouseDrop",y,a))}},actionDown:{get:function(){return this.A!==null?this.A.V:null},set:function(a){var y=this.actionDown;y!==a&&(Vn(this),this.A.V=a,this.g("actionDown",y,a))}},actionMove:{get:function(){return this.A!==null?this.A.ia:null},set:function(a){var y=this.actionMove;y!==a&&(Vn(this),this.A.ia=a,this.g("actionMove",y,a))}},actionUp:{get:function(){return this.A!==null?this.A.Ha:null},set:function(a){var y=this.actionUp;y!==a&&(Vn(this),this.A.Ha=a,this.g("actionUp",y,a))}},actionCancel:{get:function(){return this.A!==null?this.A.F:null},set:function(a){var y=this.actionCancel;y!==a&&(Vn(this),this.A.F=a,this.g("actionCancel",y,a))}},toolTip:{get:function(){return this.A!==null?this.A.$h:null},set:function(a){var y=this.toolTip;y!==a&&(Vn(this),this.A.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.A!==null?this.A.Ch:null},set:function(a){var y=this.contextMenu;y!==a&&(Vn(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),ze.prototype.trigger=ze.prototype.Jv,ze.prototype.findBindingPanel=ze.prototype.ih,ze.prototype.findTemplateBinder=ze.prototype.pz,ze.prototype.setProperties=ze.prototype.nm,ze.prototype.apply=ze.prototype.apply,ze.prototype.attach=ze.prototype.Du,ze.prototype.set=ze.prototype.set,ze.prototype.isEnabledObject=ze.prototype.If,ze.prototype.isVisibleObject=ze.prototype.Ed,ze.prototype.isContainedBy=ze.prototype.rg,ze.prototype.getNearestIntersectionPoint=ze.prototype.rs,ze.prototype.getLocalPoint=ze.prototype.qs,ze.prototype.getDocumentScale=ze.prototype.Df,ze.prototype.getDocumentAngle=ze.prototype.li,ze.prototype.getDocumentBounds=ze.prototype.mi,ze.prototype.getDocumentPoint=ze.prototype.ga,ze.prototype.intersectsRect=ze.prototype.Yc,ze.prototype.containedInRect=ze.prototype.fh,ze.prototype.containsRect=ze.prototype.Re,ze.prototype.containsPoint=ze.prototype.ca,ze.prototype.raiseChanged=ze.prototype.g,ze.prototype.raiseChangedEvent=ze.prototype.cb,ze.prototype.addCopyProperty=ze.prototype.Vw;var fd=null;ze.className="GraphObject",fd=new Rn,Wu("Button",function(){function a(x,b){return x.diagram.ic(x.documentPoint,function(tt){for(;tt.panel!==null&&!tt.isActionable;)tt=tt.panel;return tt},function(tt){return tt===b})!==null}var y=ga(un,un.Auto,{isActionable:!0,enabledChanged:function(x,b){if(x instanceof un){var tt=x.fb("ButtonBorder");tt!==null&&(tt.fill=b?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},ga(Wn,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new jn(0,0,2.76142374915397,2.761423749153969),spot2:new jn(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,b){if(b.If()&&b instanceof un&&(x=b.fb("ButtonBorder"),x instanceof Wn)){var tt=b._buttonFillOver;b._buttonFillNormal=x.fill,x.fill=tt,tt=b._buttonStrokeOver,b._buttonStrokeNormal=x.stroke,x.stroke=tt}},y.mouseLeave=function(x,b){b.If()&&b instanceof un&&(x=b.fb("ButtonBorder"),x instanceof Wn&&(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal))},y.actionDown=function(x,b){if(b.If()&&b instanceof un&&b._buttonFillPressed!==null&&x.button===0){var tt=b.fb("ButtonBorder");if(tt instanceof Wn){x=x.diagram;var et=x.skipsUndoManager;x.skipsUndoManager=!0;var nt=b._buttonFillPressed;b._buttonFillOver=tt.fill,tt.fill=nt,nt=b._buttonStrokePressed,b._buttonStrokeOver=tt.stroke,tt.stroke=nt,x.skipsUndoManager=et}}},y.actionUp=function(x,b){if(b.If()&&b instanceof un&&b._buttonFillPressed!==null&&x.button===0){var tt=b.fb("ButtonBorder");if(tt instanceof Wn){var et=x.diagram,nt=et.skipsUndoManager;et.skipsUndoManager=!0,a(x,b)?(tt.fill=b._buttonFillOver,tt.stroke=b._buttonStrokeOver):(tt.fill=b._buttonFillNormal,tt.stroke=b._buttonStrokeNormal),et.skipsUndoManager=nt}}},y.actionCancel=function(x,b){if(b.If()&&b instanceof un&&b._buttonFillPressed!==null){var tt=b.fb("ButtonBorder");if(tt instanceof Wn){var et=x.diagram,nt=et.skipsUndoManager;et.skipsUndoManager=!0,a(x,b)?(tt.fill=b._buttonFillOver,tt.stroke=b._buttonStrokeOver):(tt.fill=b._buttonFillNormal,tt.stroke=b._buttonStrokeNormal),et.skipsUndoManager=nt}}},y.actionMove=function(x,b){if(b.If()&&b instanceof un&&b._buttonFillPressed!==null){var tt=x.diagram;if(tt.firstInput.button===0&&(tt.currentTool.standardMouseOver(),a(x,b)&&(x=b.fb("ButtonBorder"),x instanceof Wn))){var et=tt.skipsUndoManager;tt.skipsUndoManager=!0;var nt=b._buttonFillPressed;x.fill!==nt&&(x.fill=nt),nt=b._buttonStrokePressed,x.stroke!==nt&&(x.stroke=nt),tt.skipsUndoManager=et}}},y}),Wu("TreeExpanderButton",function(){var a=ga("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},ga(Wn,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Qr},new Lr("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new Lr("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof di&&(x=x.adornedPart),x instanceof wn){var b=x.diagram;if(b!==null){if(b=b.commandHandler,x.isTreeExpanded){if(!b.canCollapseTree(x))return}else if(!b.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?b.collapseTree(x):b.expandTree(x)}}},a}),Wu("SubGraphExpanderButton",function(){var a=ga("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},ga(Wn,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Qr},new Lr("figure","isSubGraphExpanded",function(y,x){return x=x.panel,y?x._subGraphExpandedFigure:x._subGraphCollapsedFigure}).cp()));return a.click=function(y,x){if(x=x.part,x instanceof di&&(x=x.adornedPart),x instanceof Un){var b=x.diagram;if(b!==null){if(b=b.commandHandler,x.isSubGraphExpanded){if(!b.canCollapseSubGraph(x))return}else if(!b.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?b.collapseSubGraph(x):b.expandSubGraph(x)}}},a}),Wu("ToolTip",function(){return ga(di,un.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Ee(0,3),shadowBlur:5},ga(Wn,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new jn(0,0,4,6),spot2:new jn(1,1,-4,-4)}))}),Wu("ContextMenu",function(){return ga(di,un.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Ee(0,3),shadowBlur:5},new Lr("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),Wu("ContextMenuButton",function(){var a=ga("Button");a.stretch=Tn;var y=a.fb("ButtonBorder");return y instanceof Wn&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new jn(0,0,2,3),y.spot2=new jn(1,1,-2,-2)),a}),Wu("PanelExpanderButton",function(a){var y=lm(a,"COLLAPSIBLE"),x=ga("Button",{_buttonExpandedFigure:"M0 0 M0 6 L4 2 8 6 M8 8",_buttonCollapsedFigure:"M0 0 M0 2 L4 6 8 2 M8 8",_buttonFillNormal:"rgba(0, 0, 0, 0)",_buttonStrokeNormal:null,_buttonFillOver:"rgba(0, 0, 0, .2)",_buttonStrokeOver:null,_buttonFillPressed:"rgba(0, 0, 0, .4)",_buttonStrokePressed:null},ga(Wn,{name:"ButtonIcon",strokeWidth:2},new Lr("geometryString","visible",function(b){return b?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof Wn&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(b,tt){var et=tt.diagram;if(et!==null&&!et.isReadOnly){var nt=tt.ih();nt===null&&(nt=tt.part),nt!==null&&(tt=nt.fb(y),tt!==null&&(b.handled=!0,et.Ea("Collapse/Expand Panel"),tt.visible=!tt.visible,et.eb("Collapse/Expand Panel")))}},x}),Wu("CheckBoxButton",function(a){var y=lm(a);return a=ga("Button",{desiredSize:new xn(14,14)},ga(Wn,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:ln,geometryStretch:kn,visible:!1},y!==""?new Lr("visible",y).Kx():[])),a.click=function(x,b){if(b instanceof un){var tt=x.diagram;if(!(tt===null||tt.isReadOnly||y!==""&&tt.model.isReadOnly)){x.handled=!0;var et=b.fb("ButtonIcon");tt.Ea("checkbox"),et.visible=!et.visible,typeof b._doClick=="function"&&b._doClick(x,b),tt.eb("checkbox")}}},a}),Wu("CheckBox",function(a){a=lm(a),a=ga("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new Yn(0,1,0,0)});var y=ga(un,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Yn(1),_buttonFillNormal:a._buttonFillNormal,_buttonStrokeNormal:a._buttonStrokeNormal,_buttonFillOver:a._buttonFillOver,_buttonStrokeOver:a._buttonStrokeOver,_buttonFillPressed:a._buttonFillPressed,_buttonStrokePressed:a._buttonStrokePressed,_buttonFillDisabled:a._buttonFillDisabled,mouseEnter:a.mouseEnter,mouseLeave:a.mouseLeave,actionDown:a.actionDown,actionUp:a.actionUp,actionCancel:a.actionCancel,actionMove:a.actionMove,click:a.click,_buttonClick:a.click});return a.mouseEnter=null,a.mouseLeave=null,a.actionDown=null,a.actionUp=null,a.actionCancel=null,a.actionMove=null,a.click=null,y}),ze.None=an=new sn(ze,"None",0),ze.Default=Hn=new sn(ze,"Default",0),ze.Vertical=In=new sn(ze,"Vertical",4),ze.Horizontal=Tn=new sn(ze,"Horizontal",5),ze.Fill=ln=new sn(ze,"Fill",3),ze.Uniform=kn=new sn(ze,"Uniform",1),ze.UniformToFill=ni=new sn(ze,"UniformToFill",2),ze.FlipVertical=Kn=new sn(ze,"FlipVertical",1),ze.FlipHorizontal=ui=new sn(ze,"FlipHorizontal",2),ze.FlipBoth=Ai=new sn(ze,"FlipBoth",3),ze.make=ga,ze.getBuilders=function(){var a=new Rn,y;for(y in fd)if(y!==y.toLowerCase()){var x=fd.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},ze.defineBuilder=Wu,ze.build=function(a,y,x){for(var b=[],tt=2;tta&&(a+=360),a!==0){if(this.translate(y,x),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var tt=this.ha[1]*a+this.ha[3]*b,et=this.ha[0]*-b+this.ha[2]*a,nt=this.ha[1]*-b+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*b,this.ha[1]=tt,this.ha[2]=et,this.ha[3]=nt,this.translate(-y,-x)}},Cc.className="STransform";function gf(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}gf.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},gf.className="SGradient";function Cl(a,y,x){this.ownerDocument=a=y===void 0?bn.document:y,this.cA="http://www.w3.org/2000/svg",a!==void 0&&(this.Oa=this.Ud("svg",{width:"1px",height:"1px",viewBox:"0 0 1 1"}),this.style.display="block",this.style.letterSpacing="normal",this.style.wordSpacing="normal",this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink")),this.hs=null,this.context=new Gs(this,x)}Cl.prototype.resize=function(a,y,x,b){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=b+"px",this.Oa.setAttributeNS(null,"width",x+"px"),this.Oa.setAttributeNS(null,"height",b+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+x+" "+b),this.context.ww.firstElementChild.setAttributeNS(null,"width",x+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",b+"px"),!0):!1},Cl.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),on(y))for(var b in y)a.setAttributeNS(b==="href"?"http://www.w3.org/1999/xlink":"",b,y[b]);return x!==void 0&&(a.textContent=x),a},Cl.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Cl.prototype.focus=function(){this.Oa.focus()},Cl.prototype.mx=function(){this.ownerDocument=null},qe.Object.defineProperties(Cl.prototype,{width:{get:function(){return this.Oa.width.baseVal.value},set:function(a){this.Oa.setAttribute("width",a+"px")}},height:{get:function(){return this.Oa.height.baseVal.value},set:function(a){this.Oa.setAttribute("height",a+"px")}},style:{get:function(){return this.Oa.style}}}),Cl.className="SVGSurface";function Gs(a,y){this.Gv=a,this.svg=a.Oa,this.stack=[],this.nh=[],this.fillStyle="#000000",this.font="10px sans-serif",this.globalAlpha=1,this.lineCap="butt",this.lineDashOffset=0,this.lineJoin="miter",this.lineWidth=1,this.miterLimit=10,this.shadowBlur=0,this.shadowColor="rgba(0, 0, 0, 0)",this.shadowOffsetY=this.shadowOffsetX=0,this.Il=!1,this.strokeStyle="#000000",this.textAlign="start",this.clipInsteadOfFill=!1,this.Vg=this.Br=this.Ar=0,this.yd=this.ad=null,this.path=[],this.Yl={},this.Ct=!1,this.Yg=null,this.uj=0,this.rb=new Cc,this.j=um(this),this.Nj=um(this,"gojs-diagram"),this.Hl=this.ti=null;var x=Zo++,b=this.Ud("clipPath",{id:"mainClip"+x});b.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=b,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(b),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function Zy(a,y,x,b,tt,et,nt){a.Nj===void 0?Fp(a,y,x,b,tt,et,nt):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+b+", "+tt+", "+et+", "+nt+")")}ee=Gs.prototype,ee.arc=function(a,y,x,b,tt,et,nt,ht){var gt=2*Math.PI,bt=gt-1e-6,Pt=x*Math.cos(b),Nt=x*Math.sin(b),zt=a+Pt,Yt=y+Nt,Zt=et?0:1;b=et?b-tt:tt-b,(1e-6b&&(b=b%gt+gt),b>bt?(this.path.push(["A",x,x,0,1,Zt,a-Pt,y-Nt]),this.path.push(["A",x,x,0,1,Zt,zt,Yt])):1e-6=Math.PI),Zt,a+x*Math.cos(tt),y+x*Math.sin(tt)])},ee.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},ee.Se=function(a){this.addPath(this.path,this.rb,a||0)},ee.bezierCurveTo=function(a,y,x,b,tt,et){this.path.push(["C",a,y,x,b,tt,et])},ee.clearRect=function(){},ee.clip=function(){this.Yl.clipPath=!0},ee.closePath=function(){this.path.push(["z"])},ee.createLinearGradient=function(a,y,x,b){var tt=new gf("linear");return tt.x1=a,tt.y1=y,tt.x2=x,tt.y2=b,tt},ee.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var x=this.eA;if(x[y])return"url(#"+x[y]+")";var b="PATTERN"+Zo++,tt={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:b,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(xc,tt)),this.svg.appendChild(a),x[y]=b,"url(#"+b+")"},ee.createRadialGradient=function(a,y,x,b,tt,et){var nt=new gf("radial");return nt.x1=a,nt.y1=y,nt.r1=x,nt.x2=b,nt.y2=tt,nt.r2=et,nt};function Qy(a,y,x,b,tt,et,nt,ht,gt){b=ht/b,tt=gt/tt,et===0&&nt===0||a.rb.translate(et,nt),b===1&&tt===1||a.rb.scale(b,tt),y===0&&x===0||a.rb.translate(-y,-x)}ee.drawImage=function(a,y,x,b,tt,et,nt,ht,gt){var bt="";a instanceof HTMLCanvasElement&&(bt=a.toDataURL()),a instanceof HTMLImageElement&&(bt=a.getAttribute("src"));var Pt=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,b===void 0&&(et=y,nt=x,ht=b=Pt,gt=tt=a),b=b||0,tt=tt||0,ht=ht||0,gt=gt||0,Qy(this,y,x,b,tt,et||0,nt||0,ht,gt),et={x:0,y:0,width:Pt||b,height:a||tt,href:bt},Ge.$(b,ht)&&Ge.$(tt,gt)?bt.toLowerCase().indexOf(".svg")===-1&&bt.toLowerCase().indexOf("data:image/svg")===-1&&(et.preserveAspectRatio="xMidYMid slice"):et.preserveAspectRatio="none",(y!==0||x!==0||b!==Pt||tt!==a)&&(b+=y,tt+=x,et["clip-path"]="path('M "+y+","+x+" L "+b+" "+x+" L "+b+" "+tt+" L "+y+" "+tt+" z')"),dd(this,xc,et,this.rb),this.addElement(xc,et)},ee.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),rv(this,this.Yl)},ee.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},ee.fillRect=function(a,y,x,b){a=[a,y,x,b],a={x:a[0],y:a[1],width:a[2],height:a[3]},dd(this,"fill",a,this.rb),this.addElement("rect",a)},ee.ox=function(a,y,x,b){a={x:a,y,width:x,height:b},dd(this,"fill",a,this.rb),rv(this,a),this.svg.prepend(this.Ud("rect",a))},ee.fillText=function(a,y,x){a=[a,y,x],y=this.textAlign,y==="left"?y="start":y==="right"?y="end":y==="center"&&(y="middle"),y={x:a[1],y:a[2],style:"font: "+this.font,"text-anchor":y},dd(this,"fill",y,this.rb),this.addElement("text",y,a[0])},ee.lineTo=function(a,y){this.path.push(["L",a,y])},ee.moveTo=function(a,y){this.path.push(["M",a,y])},ee.quadraticCurveTo=function(a,y,x,b){this.path.push(["Q",a,y,x,b])},ee.rect=function(a,y,x,b){this.path.push(["M",a,y],["L",a+x,y],["L",a+x,y+b],["L",a,y+b],["z"])},ee.restore=function(){this.rb=this.stack.pop(),this.path=this.stack.pop();var a=this.stack.pop();this.fillStyle=a.fillStyle,this.font=a.font,this.globalAlpha=a.globalAlpha,this.lineCap=a.lineCap,this.lineDashOffset=a.lineDashOffset,this.lineJoin=a.lineJoin,this.lineWidth=a.lineWidth,this.miterLimit=a.miterLimit,this.shadowBlur=a.shadowBlur,this.shadowColor=a.shadowColor,this.shadowOffsetX=a.shadowOffsetX,this.shadowOffsetY=a.shadowOffsetY,this.strokeStyle=a.strokeStyle,this.textAlign=a.textAlign,this.bk=a.bk},ee.save=function(){this.stack.push({fillStyle:this.fillStyle,font:this.font,globalAlpha:this.globalAlpha,lineCap:this.lineCap,lineDashOffset:this.lineDashOffset,lineJoin:this.lineJoin,lineWidth:this.lineWidth,miterLimit:this.miterLimit,shadowBlur:this.shadowBlur,shadowColor:this.shadowColor,shadowOffsetX:this.shadowOffsetX,shadowOffsetY:this.shadowOffsetY,strokeStyle:this.strokeStyle,textAlign:this.textAlign,bk:this.bk});for(var a=[],y=0;yPt.offset?1:-1}),tt=0;ttx?(this.scale(x/a,1),this.translate((a-x)/2,0)):x>a&&(this.scale(1,a/x),this.translate(0,(x-a)/2)),this.Hm?this.clip():this.fill(y),a>x?(this.translate(-(a-x)/2,0),this.scale(1/(x/a),1)):x>a&&(this.translate(0,-(x-a)/2),this.scale(1,1/(a/x)))}else this.Hm?this.clip():this.fill(y)},ee.jk=function(){this.Hm||this.stroke()},ee.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},ee.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},ee.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(vw),a.lineDashOffset=0)},ee.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},ee.Hs=function(){},qe.Object.defineProperties(Ec.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(a){this.ct!==a&&(this.ct=this.Z.fillStyle=a)}},font:{get:function(){return this.Z.font},set:function(a){this.dt!==a&&(this.dt=this.Z.font=a)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(a){this.Z.globalAlpha=a}},lineCap:{get:function(){return this.Z.lineCap},set:function(a){this.Z.lineCap=a}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(a){this.Z.lineDashOffset=a}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(a){this.Z.lineJoin=a}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(a){this.Z.lineWidth=a}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(a){this.Z.miterLimit=a}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(a){this.Z.shadowBlur=a}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(a){this.Z.shadowColor=a}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(a){this.Z.shadowOffsetX=a}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(a){this.Z.shadowOffsetY=a}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(a){this.et!==a&&(this.et=this.Z.strokeStyle=a)}},textAlign:{get:function(){return this.Z.textAlign},set:function(a){this.Z.textAlign=a}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(a){this.Z.imageSmoothingEnabled=a}},filter:{get:function(){return this.Z.filter},set:function(a){this.Z.filter=a===""?"none":a}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(a){this.Hm=a}}});var vw=Object.freeze([]);Ec.className="CanvasSurfaceContext";function Bp(){this.F=this.o=this.u=this.j=0}Bp.className="ColorNumbers";function bi(a,y){vd||(cv(),vd=!0),qi(this),this._isFrozen=!1,a===void 0?(this.na=Vu,this.xk="black"):typeof a=="string"?(this.na=Vu,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===fu?(this.Qd=Zs,this.Lk=Fs):this.Lk=a===ma?this.Qd=wi:this.Qd=$r,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}bi.prototype.copy=function(){var a=new bi;return a.na=this.na,a.xk=this.xk,a.Qd=this.Qd.J(),a.Lk=this.Lk.J(),a.Gr=this.Gr,a.Xp=this.Xp,this.we!==null&&(a.we=this.we.copy()),a.cr=this.cr,a},ee=bi.prototype,ee.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},ee.ka=function(){return Object.isFrozen(this)&&We("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},ee.qb=function(a){a.classType===bi&&(this.type=a)},ee.toString=function(){var a="Brush(";if(this.type===Vu)a+=this.color;else if(a=this.type===fu?a+"Linear ":this.type===ma?a+"Radial ":this.type===yd?a+"Pattern ":a+"(unknown) ",a+=this.start+" "+this.end,this.colorStops!==null)for(var y=this.colorStops.iterator;y.next();)a+=" "+y.key+":"+y.value;return a+")"},ee.addColorStop=function(a,y){return this._isFrozen&&Nn(this),(typeof a!="number"||!isFinite(a)||1a)&&ti(a,"0 <= loc <= 1",bi,"addColorStop:loc"),this.we===null&&(this.we=new Rn),this.we.add(a,y),this.na===Vu&&(this.type=fu),this.xe=null,this},ee.Vz=function(a,y){if(this._isFrozen&&Nn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Sd:y,this.type===Vu)cu(this.color),this.color=gd(a,y);else if((this.type===fu||this.type===ma)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)cu(x.value),this.addColorStop(x.key,gd(a,y));return this};function t1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Sd:x,cu(a),gd(y,x)}ee.Wy=function(a,y){if(this._isFrozen&&Nn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Sd:y,this.type===Vu)cu(this.color),this.color=gd(-a,y);else if((this.type===fu||this.type===ma)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)cu(x.value),this.addColorStop(x.key,gd(-a,y));return this};function e1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Sd:x,cu(a),gd(-y,x)}function sv(a,y,x){cu(a),a=Fi.j;var b=Fi.u,tt=Fi.o,et=Fi.F;return cu(y),x===void 0&&(x=.5),"rgba("+Math.round((Fi.j-a)*x+a)+", "+Math.round((Fi.u-b)*x+b)+", "+Math.round((Fi.o-tt)*x+tt)+", "+Math.round((Fi.F-et)*x+et)+")"}ee.Gx=function(){if(this.type===Vu)return pd(this.color);if((this.type===fu||this.type===ma)&&this.colorStops!==null){var a=this.colorStops;if(this.type===ma)return pd(a.first().value);if(a.get(.5)!==null)return pd(a.get(.5));if(a.count===2)return a=a.Fa(),pd(sv(a[0].value,a[1].value));for(var y=a.iterator,x=-1,b=-1,tt=1,et=1;y.next();){var nt=y.key,ht=Math.abs(.5-y.key);tt>et&&ht=tt&&htb&&(et=x,x=b,b=et,et=tt),tt=b-x,pd(sv(a.get(x),a.get(b),1-et/tt))}return!1};function pd(a){return a?a instanceof bi?a.Gx():(cu(a),128>(299*Fi.j+587*Fi.u+114*Fi.o)/1e3):!1}function gd(a,y){switch(y){case Sd:y=100*lv(Fi.j);var x=100*lv(Fi.u),b=100*lv(Fi.o);return ss.j=.4124564*y+.3575761*x+.1804375*b,ss.u=.2126729*y+.7151522*x+.072175*b,ss.o=.0193339*y+.119192*x+.9503041*b,ss.F=Fi.F,y=hv(ss.j/md[0]),x=hv(ss.u/md[1]),b=hv(ss.o/md[2]),Gl.j=116*x-16,Gl.u=500*(y-x),Gl.o=200*(x-b),Gl.F=ss.F,Gl.j=Math.min(100,Math.max(0,Gl.j+100*a)),a=(Gl.j+16)/116,y=a-Gl.o/200,ss.j=md[0]*n1(Gl.u/500+a),ss.u=md[1]*(Gl.j>cm*fv?Math.pow(a,3):Gl.j/cm),ss.o=md[2]*n1(y),ss.F=Gl.F,a=-.969266*ss.j+1.8760108*ss.u+.041556*ss.o,y=.0556434*ss.j+-.2040259*ss.u+1.0572252*ss.o,Fi.j=255*uv((3.2404542*ss.j+-1.5371385*ss.u+-.4985314*ss.o)/100),Fi.u=255*uv(a/100),Fi.o=255*uv(y/100),Fi.F=ss.F,Fi.j=Math.round(Fi.j),255Fi.j&&(Fi.j=0),Fi.u=Math.round(Fi.u),255Fi.u&&(Fi.u=0),Fi.o=Math.round(Fi.o),255Fi.o&&(Fi.o=0),"rgba("+Fi.j+", "+Fi.u+", "+Fi.o+", "+Fi.F+")";case i1:return av(),na.o=Math.min(100,Math.max(0,na.o+100*a)),"hsla("+na.j+", "+na.u+"%, "+na.o+"%, "+na.F+")";default:We("Unknown color space: "+y)}}function cu(a){vd||(cv(),vd=!0);var y=dv;if(y!==null){y.clearRect(0,0,1,1),y.fillStyle="#000000";var x=y.fillStyle;y.fillStyle=a,y.fillStyle!==x?(y.fillRect(0,0,1,1),a=y.getImageData(0,0,1,1).data,Fi.j=a[0],Fi.u=a[1],Fi.o=a[2],Fi.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,Fi.j=0,Fi.u=0,Fi.o=0,Fi.F=1)}}function av(){var a=Fi.j/255,y=Fi.u/255,x=Fi.o/255,b=Math.max(a,y,x),tt=Math.min(a,y,x),et=b-tt;if(tt=(b+tt)/2,et===0)var nt=a=0;else{switch(b){case a:nt=(y-x)/et%6;break;case y:nt=(x-a)/et+2;break;case x:nt=(a-y)/et+4}nt*=60,0>nt&&(nt+=360),a=et/(1-Math.abs(2*tt-1))}na.j=Math.round(nt),na.u=Math.round(100*a),na.o=Math.round(100*tt),na.F=Fi.F}function lv(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function uv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function hv(a){return a>fv?Math.pow(a,1/3):(cm*a+16)/116}function n1(a){var y=a*a*a;return y>fv?y:(116*a-16)/cm}function mf(a,y){typeof a!="string"&&(a instanceof bi||We("Value for "+y+" must be a color string or a Brush, not "+a))}function cv(){dv=gr?new _a(null,void 0,{willReadFrequently:!0}).context:null}qe.Object.defineProperties(bi.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&Nn(this,a),this.na=a,this.start.Mc()&&(a===fu?this.start=Zs:a===ma&&(this.start=wi)),this.end.Mc()&&(a===fu?this.end=Fs:a===ma&&(this.end=wi)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&Nn(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&Nn(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&Nn(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&Nn(this,a),0>a&&ti(a,">= zero",bi,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&Nn(this,a),0>a&&ti(a,">= zero",bi,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&Nn(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&Nn(this,a),this.cr=a,this.xe=null}}}),bi.prototype.isDark=bi.prototype.Gx,bi.prototype.darkenBy=bi.prototype.Wy,bi.prototype.lightenBy=bi.prototype.Vz,bi.prototype.addColorStop=bi.prototype.addColorStop;var fv=216/24389,cm=24389/27,md=[95.047,100,108.883],dv=null,Fi=new Bp,na=new Bp,ss=new Bp,Gl=new Bp,vd=!1;bi.className="Brush";var Vu;bi.Solid=Vu=new sn(bi,"Solid",0);var fu;bi.Linear=fu=new sn(bi,"Linear",1);var ma;bi.Radial=ma=new sn(bi,"Radial",2);var yd;bi.Pattern=yd=new sn(bi,"Pattern",4);var Sd;bi.Lab=Sd=new sn(bi,"Lab",5);var i1;bi.HSL=i1=new sn(bi,"HSL",6),bi.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var x=Math.abs(y-a);y=Math.floor(a+Math.random()*x).toString(16);var b=Math.floor(a+Math.random()*x).toString(16);return a=Math.floor(a+Math.random()*x).toString(16),2>y.length&&(y="0"+y),2>b.length&&(b="0"+b),2>a.length&&(a="0"+a),"#"+y+b+a},bi.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;vd||(cv(),vd=!0);var y=dv;if(y===null)return!0;y.fillStyle="#000000";var x=y.fillStyle;return y.fillStyle=a,y.fillStyle!==x?!0:(y.fillStyle="#FFFFFF",x=y.fillStyle,y.fillStyle=a,y.fillStyle!==x)},bi.lighten=function(a){return t1(a)},bi.lightenBy=t1,bi.darken=function(a){return e1(a)},bi.darkenBy=e1,bi.mix=sv,bi.isDark=pd;function Wr(){this.xa="Base"}Wr.prototype.measure=function(){},Wr.prototype.Yz=function(a,y,x,b,tt){a.measure(y,x,b,tt)},Wr.prototype.arrange=function(){},Wr.prototype.Ly=function(a,y,x,b,tt,et){a.arrange(y,x,b,tt,et)},Wr.prototype.iA=function(a){a.Uj()},Wr.prototype.gc=function(){},qe.Object.defineProperties(Wr.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return un}}}),Wr.prototype.remeasureObject=Wr.prototype.iA,Wr.prototype.arrangeElement=Wr.prototype.Ly,Wr.prototype.measureElement=Wr.prototype.Yz,Wr.className="PanelLayout";function fm(){this.xa="Base"}en(fm,Wr),fm.prototype.measure=function(a,y,x,b,tt,et,nt){var ht=b.length;a=du(a);for(var gt=0;gtMn&&(ro=Math.max(Mn-Xh,0));var z0=rn.oa===0;rn.oc=rn.oc+ro,rn.actual=rn.oa+ro,Mn=Math.max(Mn-(ro+(z0?Xh:0)),0)}if(_s.columnSpan===1&&(Xo===an||Xo===In)){rn=a.Eb(Ko);var Ag=rn.Wc();ro=Math.max(Nc-rn.actual,0),ro+Ag>Sn&&(ro=Math.max(Sn-Ag,0));var Gy=rn.oa===0;rn.oc=rn.oc+ro,rn.actual=rn.oa+ro,Sn=Math.max(Sn-(ro+(Gy?Ag:0)),0)}Kh&&_s.Uj()}}}}}ri(Le);var Ql=0,mu=0;et=a.columnCount;for(var Lf=0;Lf=a.rowCount);sh++)rn=a.Fb(wr.row+sh),ro=0,ro=Xo===ln||Xo===In?Math.max(rn.minimum,dl[wr.row+sh]===0?rn.maximum:Math.min(dl[wr.row+sh],rn.maximum)):Math.max(rn.minimum,isNaN(rn.Hc)?rn.maximum:Math.min(rn.Hc,rn.maximum)),Su.height+=ro,Ks+=rn.minimum;for(var Fa=1;Fa=a.columnCount);Fa++)rn=a.Eb(wr.column+Fa),ro=0,ro=Xo===ln||Xo===Tn?Math.max(rn.minimum,xa[wr.column+Fa]===0?rn.maximum:Math.min(xa[wr.column+Fa],rn.maximum)):Math.max(rn.minimum,isNaN(rn.Hc)?rn.maximum:Math.min(rn.Hc,rn.maximum)),Su.width+=ro,W0+=rn.minimum;xo.width+=Su.width,xo.height+=Su.height;var Zd=wr.margin,$h=Zd.right+Zd.left,kg=Zd.top+Zd.bottom;wr.measure(xo.width,xo.height,W0,Ks);for(var Qd=wr.measuredBounds,Tl=Math.max(Qd.width+$h,0),Bc=Math.max(Qd.height+kg,0),tc=0,Jd=0;Jd=a.rowCount);Jd++)rn=a.Fb(wr.row+Jd),tc+=rn.total||0;if(tc=ah)&&!(wr.row+wu>=a.rowCount);wu++){rn=a.Fb(wr.row+wu);var uh=rn.oa||0,Rc=lh(wr,rn,ql);rn.actual=Math.min(rn.maximum,uh+Rc),rn.oa!==uh&&(ah-=rn.oa-uh)}for(;0pl&&(rn.actual=Math.min(rn.maximum,pl+ah),rn.oa!==pl&&(ah-=rn.oa-pl)),rn.index===0)break;rn=a.Fb(rn.index-1)}}for(var Of=0,hh=0;hh=a.columnCount);hh++)rn=a.Eb(wr.column+hh),Of+=rn.total||0;if(Of=jf)&&!(wr.column+zc>=a.columnCount);zc++){rn=a.Eb(wr.column+zc);var Lg=rn.oa||0,Wy=xu(wr,rn,Hy);rn.actual=Math.min(rn.maximum,Lg+Wy),rn.oa!==Lg&&(jf-=rn.oa-Lg)}for(;0V0&&(rn.actual=Math.min(rn.maximum,V0+jf),rn.oa!==V0&&(jf-=rn.oa-V0)),rn.index===0)break;rn=a.Eb(rn.index-1)}}}}ri(je),xn.free(Su),xn.free(xo),dl!==void 0&&ri(dl),xa!==void 0&&ri(xa);var Nf=0,Df=0,Y0=a.desiredSize,gw=a.maxSize;Xo=ws(a,!0);var Tg=mu=Ql=0,_g=0;et=a.columnCount;for(var K0=0;K0=a.rowCount);rn++){var Gn=a.Fb(Le+rn);Gn.oa!==0&&(pe.height+=Gn.total)}for(rn=1;rn=a.columnCount);rn++)Gn=a.Eb(De+rn),Gn.oa!==0&&(pe.width+=Gn.total);var Fn=Re.oa+pe.width,yi=je.oa+pe.height;rn=ht,Gn=gt;var _i=Fn,io=yi,lo=ht,Yo=gt,ro=Fn,nh=yi;ht+Fn>x.width&&(ro=Math.max(x.width-ht,0)),gt+yi>x.height&&(nh=Math.max(x.height-gt,0));var Tr=Pn.alignment;if(Tr.Xb()){Tr=a.defaultAlignment,Tr.sb()||(Tr=wi);var hl=Tr.x,Ko=Tr.y,ih=Tr.offsetX;Tr=Tr.offsetY;var oa=Re.alignment,Da=je.alignment;oa.sb()&&(hl=oa.x,ih=oa.offsetX),Da.sb()&&(Ko=Da.y,Tr=Da.offsetY)}else hl=Tr.x,Ko=Tr.y,ih=Tr.offsetX,Tr=Tr.offsetY;(isNaN(hl)||isNaN(Ko))&&(Ko=hl=.5,Tr=ih=0),oa=hn.width,Da=hn.height;var Ws=Pn.margin,_s=Ws.left+Ws.right,Kh=Ws.top+Ws.bottom,cl=ol(Pn,je,Re,!1);!isNaN(Pn.desiredSize.width)||cl!==ln&&cl!==Tn||(oa=Math.max(Fn-_s,0)),!isNaN(Pn.desiredSize.height)||cl!==ln&&cl!==In||(Da=Math.max(yi-Kh,0)),Fn=Pn.maxSize,yi=Pn.minSize,oa=Math.min(Fn.width,oa),Da=Math.min(Fn.height,Da),oa=Math.max(yi.width,oa),Da=Math.max(yi.height,Da),Fn=Da+Kh,rn+=_i*hl-(oa+_s)*hl+ih+Ws.left,Gn+=io*Ko-Fn*Ko+Tr+Ws.top,Pn.visible&&(Eo(lo,Yo,ro,nh,rn,Gn,hn.width,hn.height)?Pn.arrange(rn,Gn,oa,Da):Pn.arrange(rn,Gn,oa,Da,new $e(lo,Yo,ro,nh)))}}}for(xn.free(pe),a=0;a=x&&(x=1);var b=a.gridCellSize,tt=b.width;b=b.height;var et=a.naturalBounds,nt=a.actualBounds,ht=et.width,gt=et.height,bt=Math.ceil(ht/tt),Pt=Math.ceil(gt/b),Nt=a.gridOrigin,zt=Nt.x;Nt=Nt.y,y.save(),y.beginPath(),y.rect(0,0,ht,gt),y.clip(),y.Se();for(var Yt=[],Zt=a.O.s,oe=Zt.length,Pe=0;Peje)){pe=mv(pe.figure);for(var De=0;Deje&&Le.push(Re))}}}}for(Zt=a.O.s,oe=Zt.length,Pe=0;Pett*pe*x))){if(je=Ve.segmentIndex,(!isFinite(je)||isNaN(je))&&(je=0),0>je&&(je=pe-Math.min(-je,pe)),je=Math.round(je%pe),pe=Ve.opacity,De=1,pe!==1){if(pe===0)continue;De=y.globalAlpha,y.globalAlpha=De*pe}Re=Yt[Pe];var Sn=!1,Mn=Ve.strokeDashArray;if(Mn!==null&&(Sn=!0,y.js(Mn,Ve.strokeDashOffset)),Ve.figure==="LineV"&&Ve.stroke!==null&&0y)return a%y===x;if(a%y!==x)return!1;y=b.length;for(var tt=0;ttNt)Le.measure(1/0,1/0,0,0),je=Le.measuredBounds,x.ed(je),Yt.push(je);else{var De=Le.segmentIndex,Re=Le.segmentFraction,Ve=Le.alignmentFocus;Ve.Mc()&&(Ve=wi);var Sn=Le.segmentOrientation,Mn=Le.segmentOffset;if(isNaN(De)){var Pn=gt.ua;je=oi(),Pn.Qu(Re,je);var hn=Ee.allocAt(je[0],je[1]);if(hn.add(gt.i(0)),Pn.type===pn.j?hn.offset(-Pn.startX,-Pn.startY):(Pn=Pn.figures.first(),Pn!==null&&hn.offset(-Pn.startX,-Pn.startY)),Pn=je[2],Sn!==ls){var rn=gt.computeAngle(Le,Sn,Pn);Le.Kb=rn}rn=hn.x-y.x;var Gn=hn.y-y.y;Ee.free(hn),ri(je)}else if(De<-Nt||De>=Nt)je=Ee.alloc(),gt.vg(),gt.computeMidPoint(je),Pn=gt.midAngle,Sn!==ls&&(rn=gt.computeAngle(Le,Sn,Pn),Le.Kb=rn),rn=je.x-y.x,Gn=je.y-y.y,Ee.free(je);else{if(rn=0,0<=De?(Gn=Pt.M(De),je=DeFn+10?0<=De?Pn.ab(Gn):Gn.ab(Pn):Fn>hn+10?0<=De?je.ab(rn):rn.ab(je):0<=De?Pn.ab(rn):rn.ab(Pn)}else Pn=0<=De?Gn.ab(je):je.ab(Gn);Sn!==ls&&(rn=gt.computeAngle(Le,Sn,Pn),Le.Kb=rn),rn=Gn.x+(je.x-Gn.x)*Re-y.x,Gn=Gn.y+(je.y-Gn.y)*Re-y.y}Le.measure(1/0,1/0,0,0),je=Le.measuredBounds,hn=Le.naturalBounds;var yi=0;Le instanceof Wn&&(yi=Le.strokeWidth),Fn=hn.width+yi;var _i=hn.height+yi;Zt.reset(),Zt.translate(-je.x,-je.y),Zt.scale(Le.scale,Le.scale),Zt.rotate(Sn===ls?Le.angle:Pn,Fn/2,_i/2),Sn!==qp&&Sn!==tg||Zt.rotate(90,Fn/2,_i/2),Sn!==$p&&Sn!==eg||Zt.rotate(-90,Fn/2,_i/2),Sn===qm&&(45Pn||225Pn)&&Zt.rotate(-Pn,Fn/2,_i/2),hn=new $e(0,0,Fn,_i),oe.xi(hn,Ve),Zt.Ga(oe),Ve=-oe.x+yi/2*Le.scale,Le=-oe.y+yi/2*Le.scale,Pe.assign(Mn),yi=isNaN(Mn.x);var io=isNaN(Mn.y);if(yi||io){Fn=Fn/2+3,_i=_i/2+3;var lo=45<=Pn&&135>=Pn,Yo=225<=Pn&&315>=Pn;Sn===ls&&(lo||Yo)?(Pe.x=io?Fn:Mn.y,Pe.y=yi?_i:Mn.x,lo?0<=De||isNaN(De)&&.5>Re||!yi||(Pe.y=-_i):Yo&&((0<=De||isNaN(De)&&.5>Re)&&yi&&(Pe.y=-_i),io&&(Pe.x=-Fn))):(yi&&(Pe.x=0<=De||isNaN(De)&&.5>Re?Fn:-Fn),io&&(Pe.y=-_i),Pe.rotate(Pn))}else Pe.rotate(Pn);rn+=Pe.x,Gn+=Pe.y,hn.set(je),hn.h(rn+Ve,Gn+Le,je.width,je.height),Yt.push(hn),x.ed(hn)}}if(nt!==null)for(b=nt.labelNodes;b.next();)b.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),Es(tt,x.width||0,x.height||0),Xn.free(Zt),Ee.free(oe),Ee.free(Pe)}}}},bm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof di||a instanceof cn){var b=a,tt=null;a instanceof di&&(tt=a,b=tt.adornedPart);var et=a instanceof di?null:b.path,nt=a.j;if(nt.length!==0){var ht=0;if(et!==null&&ht=x)Zt=Ee.alloc(),Yt=Nt,Pe=Zt,Yt.vg(),Yt.computeMidPoint(Pe),Yt=Nt.midAngle,bt!==ls&&(Nt=Nt.computeAngle(nt,bt,Yt),nt.angle=Nt),Nt=Zt.x,Pe=Zt.y,Ee.free(Zt);else{if(oe=0,0<=ht?(Zt=y.s[ht],Pe=htLe+10?0<=ht?Yt.ab(Zt):Zt.ab(Yt):Le>pe+10?0<=ht?Pe.ab(oe):oe.ab(Pe):0<=ht?Yt.ab(oe):oe.ab(Yt)}else Yt=0<=ht?Zt.ab(Pe):Pe.ab(Zt);bt!==ls&&(Nt=Nt.computeAngle(nt,bt,Yt),nt.angle=Nt),Nt=Zt.x+(Pe.x-Zt.x)*gt,Pe=Zt.y+(Pe.y-Zt.y)*gt}if(zt.ys())nt.location=new Ee(Nt,Pe);else{zt.Mc()&&(zt=wi),Zt=Xn.alloc(),Zt.reset(),Zt.scale(nt.scale,nt.scale),Zt.rotate(nt.angle,0,0);var je=nt.naturalBounds;oe=$e.allocAt(0,0,je.width,je.height),pe=Ee.alloc(),pe.xi(oe,zt),Zt.Ga(pe),zt=-pe.x,Le=-pe.y;var De=je.width,Re=je.height;je=Ee.alloc(),je.assign(Pt);var Ve=isNaN(Pt.x),Sn=isNaN(Pt.y);if(Ve||Sn){De=De/2+3,Re=Re/2+3;var Mn=45<=Yt&&135>=Yt,Pn=225<=Yt&&315>=Yt;bt===ls&&(Mn||Pn)?(je.x=Sn?De:Pt.y,je.y=Ve?Re:Pt.x,Mn?0<=ht||isNaN(ht)&&.5>gt||!Ve||(je.y=-Re):Pn&&((0<=ht||isNaN(ht)&&.5>gt)&&Ve&&(je.y=-Re),Sn&&(je.x=-De))):(Ve&&(je.x=0<=ht||isNaN(ht)&&.5>gt?De:-De),Sn&&(je.y=-Re),je.rotate(Yt))}else je.rotate(Yt);Nt+=je.x,Pe+=je.y,Zt.pp(oe),zt+=oe.x,Le+=oe.y,ht=Ee.allocAt(Nt+zt,Pe+Le),nt.move(ht),Ee.free(ht),Ee.free(je),Ee.free(pe),$e.free(oe),Xn.free(Zt)}}tt!==null?tt.Ul(!1):b.Ul(!1),b=j1(a),a.location.h(a.position.x+b.x,a.position.y+b.y),Ee.free(b)}};function r1(a,y,x,b){if(ea(b)!==!1){var tt=b.strokeWidth;tt===0&&a instanceof di&&a.type===un.Link&&a.adornedObject instanceof Wn&&(tt=a.adornedObject.strokeWidth),tt*=b.Ca,a instanceof cn&&a.ua!==null?(a=a.geometry.bounds,b.Ge(a.x-tt/2,a.y-tt/2,a.width+tt,a.height+tt)):a instanceof di&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,b.Ge(a.x-tt/2,a.y-tt/2,a.width+tt,a.height+tt)):b.Ge(-(tt/2),-(tt/2),y+tt,x+tt),tt=b.desiredSize,tt.w()||b.ua===null?b.dc.h(0,0,tt.width,tt.height):b.dc.assign(b.ua.bounds),Br(b,!1)}}function zp(){this.xa="Base"}en(zp,Wr),zp.prototype.measure=function(a,y,x,b,tt,et,nt){var ht=a.Pb();a.graduatedBounds=[];var gt=ht.margin,bt=gt.right+gt.left,Pt=gt.top+gt.bottom;ht.measure(y,x,et,nt);var Nt=ht.measuredBounds,zt=new $e(-gt.left,-gt.top,Math.max(Nt.width+bt,0),Math.max(Nt.height+Pt,0));a.graduatedBounds.push(zt),tt.assign(zt);for(var Yt=ht.geometry,Zt=ht.strokeWidth,oe=Yt.flattenedSegments,Pe=Yt.flattenedLengths,pe=Yt.flattenedTotalLength,Le=oe.length,je=0,De=0,Re=oi(),Ve=0;VeFn&&(Fn+=360),Mn.push(Fn)}je=rn,De=Gn}Re.push(Mn)}if(a.graduatedIntervals===null){for(var yi=[],_i=a.O.s,io=_i.length,lo=0;lonh)){for(var Tr=0;Trnh&&ro.push(Ko)}}}}}a.graduatedIntervals=yi}var ih=a.graduatedIntervals,oa=a.O.s,Da=oa.length,Ws=0,_s=0,Kh=pe;a.graduatedMarks=[];for(var cl,Ud=0;UdEg*Xo*pe/a.graduatedRange&&Vs.graduatedSkip===null)){var kf=Pe[0][0],Ml=0,Os=0;_s=pe*Vs.graduatedStart-1e-4,Kh=pe*Vs.graduatedEnd+1e-4;var Nc=Eg*Xo,Ys=a.graduatedTickBase;if(Ysa.graduatedMin+Nc&&(Ys-=Math.floor((Ys-a.graduatedMin)/Nc)*Nc);for(var z0=ih[Ud],Ag=Ys,Gy=1e-6*a.graduatedMax,Ql=1;Ys<=a.graduatedMax+Gy;Ql++){t:{for(var mu=z0.length,Lf=0;Lf-Hd){var Qh=!1;break t}}Qh=!0}if(Qh&&(Ys>a.graduatedMax&&(Ys=a.graduatedMax),Vs.graduatedSkip===null||Vs instanceof Ni&&!Vs.graduatedSkip(Ys,Vs)||Vs instanceof Wn&&!Vs.graduatedSkip(Ys,Vs))&&(Ws=(Ys-a.graduatedMin)*pe/a.graduatedRange,Ws>pe&&(Ws=pe),_s<=Ws&&Ws<=Kh)){for(var Jl=Re[Ml][Os],rh=Pe[Ml][Os];Mlkf&&Osvu&&.4995vu?0vu||.9995Tf){var Vd=1-Math.abs(.5-vu);Jl=(fl*Vd+Ll*(1-Vd))%360;break t}}}Jl=fl}if(Vs instanceof Ni){var Ja="";Vs.graduatedFunction!==null?(Ja=Vs.graduatedFunction(Ys,Vs),Ja=Ja!=null?Ja.toString():""):Ja=(+Ys.toFixed(2)).toString(),Ja!==""&&cl.push({$l:Wd,angle:Jl,text:Ja})}else cl.push({$l:Wd,angle:Jl})}Ys=Ag+Ql*Nc}}}a.graduatedMarks.push(cl)}ri(Re);var xo=a.graduatedMarks;if(xo!==null)for(var Mg=b.length,ds=0;dsqa;qa++){switch(qa){case 0:Ns.h(Su,dl);break;case 1:Ns.h(Su+Yd,dl);break;case 2:Ns.h(Su,dl+Fc);break;case 3:Ns.h(Su+Yd,dl+Fc)}Ns.rotate(wr+_r.angle),Ns.offset(H0,Xd),Kd===0&&qa===0?xa.h(Ns.x,Ns.y,0,0):xa.Ye(Ns),Ns.offset(-H0,-Xd),Ns.rotate(-wr-_r.angle)}Ee.free(Ns),yu.graduatedBounds!==null&&yu.graduatedBounds.push(xa),xr(oh,xa.x,xa.y,xa.width,xa.height)}else if(_r instanceof Ni){var Ia=a,W0=tt;Ia.temporaryTextBlock===null&&(Ia.temporaryTextBlock=new Ni);var Ks=Ia.temporaryTextBlock;S1(Ks,_r);var sh=_r.alignmentFocus;sh.Mc()&&(sh=Zs);for(var Fa=_r.segmentOrientation,Zd=_r.segmentOffset,$h=new $e,kg=0,Qd=0,Tl=0,Bc=0,tc=0,Jd=ps.length,ah=0;ahTl||225Tl)&&pl.rotate(-Tl,uh/2,Rc/2);var Of=$e.allocAt(0,0,uh,Rc),hh=Ee.alloc();hh.xi(Of,sh),pl.Ga(hh);var jf=-hh.x,Hy=-hh.y,xu=Ee.alloc();xu.assign(Zd),isNaN(xu.x)&&(xu.x=uh/2+3),isNaN(xu.y)&&(xu.y=-(Rc/2+3)),xu.rotate(Tl),kg+=xu.x+jf,Qd+=xu.y+Hy;var zc=new $e(kg,Qd,lh.width,lh.height),Lg=new $e(lh.x,lh.y,lh.width,lh.height),Wy=new $e(wu.x,wu.y,wu.width,wu.height);ql.Sz=Bc,ql.lineCount=Ks.lineCount,ql.lines=[Ks.Cb,Ks.Ih,Ks.df,Ks.Le,Ks.Qc,Ks.Qb,Ks.ze],ql.actualBounds=zc,ql.measuredBounds=Lg,ql.naturalBounds=Wy,ah===0?$h.assign(zc):$h.ed(zc),Ee.free(xu),Ee.free(hh),$e.free(Of),Xn.free(pl)}Ia.graduatedBounds!==null&&Ia.graduatedBounds.push($h),xr(W0,$h.x,$h.y,$h.width,$h.height)}Br(_r,!1)}}},zp.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var b=a.Pb(),tt=a.graduatedMarks;if(tt!==null){var et=a.graduatedBounds,nt=0,ht=et[nt];nt++,b!==null&&b.arrange(ht.x-x.x,ht.y-x.y,ht.width,ht.height);for(var gt=y.length,bt=0;bt=nt&&(nt=1);for(var ht=et.actualBounds,gt=a.O.s,bt=a.graduatedMarks,Pt=gt.length,Nt=0;Nta.graduatedTickUnit*zt.interval*et.geometry.flattenedTotalLength/a.graduatedRange*nt&&zt.graduatedSkip===null)){var oe=zt.measuredBounds,Pe=zt.strokeWidth*zt.scale,pe=zt.alignmentFocus;pe.Mc()&&(pe=Zs);for(var Le=0;Lent.height)continue}else if(bt.position>nt.width)continue;var Pt=bt.separatorStrokeWidth;isNaN(Pt)&&(Pt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Nt=bt.separatorStroke;if(Nt===null&&(Nt=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),Pt!==0&&Nt!==null){vr(a,y,Nt,!1,!1,nt,et),Nt=!1;var zt=bt.separatorDashArray;zt===null&&(zt=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),zt!==null&&(Nt=!0,y.js(zt,0)),y.beginPath(),zt=bt.position+Pt,x?zt>nt.height&&(Pt-=zt-nt.height):zt>nt.width&&(Pt-=zt-nt.width),bt=bt.position+Pt/2,y.lineWidth=Pt,Pt=a.yb,x?(bt+=Pt.top,zt=nt.width-Pt.right,y.moveTo(Pt.left,bt),y.lineTo(zt,bt)):(bt+=Pt.left,zt=nt.height-Pt.bottom,y.moveTo(bt,Pt.top),y.lineTo(bt,zt)),y.stroke(),y.Se(),Nt&&y.fs()}}}}function Pm(a,y,x,b,tt){for(var et=b.length,nt=a.actualBounds,ht=a.naturalBounds,gt=s1(a,!0),bt=s1(a,!1),Pt=0;Ptzt)){var Yt=Nt.Wc(),Zt=Nt.separatorStrokeWidth;isNaN(Zt)&&(Zt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var oe=Nt.separatorStroke;oe===null&&(oe=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(oe===null||Nt.index===(x?gt:bt))&&(Zt=0),Yt-=Zt,Zt=Nt.position+Zt,Yt+=Nt.actual,Zt+Yt>zt&&(Yt=zt-Zt),0>=Yt||(zt=a.yb,vr(a,y,Nt.background,!0,!1,ht,nt),x?y.fillRect(zt.left,Zt+zt.top,nt.width-(zt.left+zt.right),Yt):y.fillRect(Zt+zt.left,zt.top,Yt,nt.height-(zt.top+zt.bottom)))}}}}function s1(a,y){for(var x=y?a.rowCount:a.columnCount,b=0;bb&&tt.set(Zt),Ee.free(Zt)),Ee.free(Pt),et&&tt.transform(nt),bt},ee.Gj=function(){for(var a=this.O.s,y=a.length,x=0;xx||et>b)&&(this.v(),this.measure(y>x?x:y,et>b?b:et,0,0));break;case ln:this.v(!0),this.measure(x+ht,b+nt,0,0);break;case Tn:this.v(!0),this.measure(x+ht,et+nt,0,0);break;case In:this.v(!0),this.measure(y+ht,b+nt,0,0)}}this.na.arrange(this,tt,this.jg)}},ee.gh=function(a){var y=this.naturalBounds,x=du(this);if(Eo(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,tt=Ee.allocAt(0,0);b--;){var et=y[b];if((et.visible||et===x)&&(Er(tt.set(a),et.transform),et.ca(tt)))return Ee.free(tt),!0}return Ee.free(tt),!(this.Ma===null&&this.areaBackground===null)}return!1},ee.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,b=0;bzt.width||Nt.y>zt.height||0>Nt.x+Nt.width||0>Nt.y+Nt.height||(Nt=Pt,Pt=Pt instanceof un?Pt:null,zt=Xn.alloc(),zt.set(nt),(Pt!==null?Pt.Cf(a,y,x,b,tt,zt):no(Nt,a,b,zt))&&(y!==null&&(Nt=y(Nt)),Nt===null||x!==null&&!x(Nt)||tt.add(Nt)),Xn.free(zt))}}return et===void 0&&Xn.free(nt),b}return et===void 0&&Xn.free(nt),!1};function vv(a,y,x,b){for(var tt=a.O.s,et=tt.length;et--;){var nt=tt[et];if(nt.visible){var ht=nt.actualBounds,gt=a.naturalBounds;ht.x>gt.width||ht.y>gt.height||0>ht.x+ht.width||0>ht.y+ht.height||(nt instanceof un&&vv(nt,y,x,b),y!==null&&(nt=y(nt)),nt===null||x!==null&&!x(nt)||b.add(nt))}}}ee.og=function(a,y,x,b,tt,et){if(this.pickable===!1)return!1;x===void 0&&(x=null),b===void 0&&(b=null);var nt=this.naturalBounds,ht=this.se(),gt=ht?a:Er(Ee.allocAt(a.x,a.y),this.transform),bt=ht?y:Er(Ee.allocAt(y.x,y.y),this.transform),Pt=gt.Bf(bt),Nt=0Pe.width||oe.y>Pe.height||0>oe.x+oe.width||0>oe.y+oe.height))&&(Zt.se()?(oe=Zt.transform,Er(gt.set(a),oe),Er(bt.set(y),oe)):(gt.set(a),bt.set(y)),oe=Zt,Zt=Zt instanceof un?Zt:null,(Zt!==null?Zt.og(gt,bt,x,b,tt,et):oe.tx(gt,bt,tt))&&(x!==null&&(oe=x(oe)),oe===null||b!==null&&!b(oe)||et.add(oe)))}}Ee.free(gt),Ee.free(bt)}return tt?Nt:nt}return!1};function yv(a){var y=null;return a instanceof Wn&&(y=a.spot1,y===oo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=vo),y}function Sv(a){var y=null;return a instanceof Wn&&(y=a.spot2,y===oo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=ms),y}ee.add=function(a){for(var y=[],x=0;x=tt.count&&a>=tt.count)return;tt.mb(et),b=et}else We("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>tt.count)&&(a=tt.count),tt.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),ea(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof un&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Em(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof wn&&(x.Te=!0),x.Te&&x instanceof wn&&(x.wc=null),tt=this.diagram,tt!==null&&tt.undoManager.isUndoingRedoing||(b!==-1&&x.cb(Hr,"elements",this,y,null,b,null),x.cb(Ar,"elements",this,null,y,null,a)))};function wv(a,y){a.l=y?a.l|16777216:a.l&-16777217}ee.remove=function(a){for(var y=this.O.s,x=y.length,b=-1,tt=0;tta&&ti(a,">= 0",un,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Rr;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(Ar,"rowdefs",this,null,x,null,a)}return y[a]},ee.oA=function(a){if(0>a&&ti(a,">= 0",un,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,x=y[a];if(x){y[a]=void 0;for(var b=y.length-1;0<=b&&y[b--]===void 0;)y.length--;this.cb(Hr,"rowdefs",this,x,null,a,null),this.v()}}};function c1(a,y,x){var b=a.rowDefs;if(!(0>y)){if(b[y]=x instanceof Rr?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}ee.Eb=function(a){0>a&&ti(a,">= 0",un,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Rr;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(Ar,"coldefs",this,null,x,null,a)}return y[a]},ee.jA=function(a){if(0>a&&ti(a,">= 0",un,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,x=y[a];if(x){y[a]=void 0;for(var b=y.length-1;0<=b&&y[b--]===void 0;)y.length--;this.cb(Hr,"coldefs",this,x,null,a,null),this.v()}}};function f1(a,y,x){var b=a.colDefs;if(!(0>y)){if(b[y]=x instanceof Rr?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}ee.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Am(y,a),this},ee.Hy=function(a,y){return(a=this.Fb(a))&&Am(a,new Rr(y)),this},ee.By=function(a,y){return(a=this.Eb(a))&&Am(a,new Rr(y)),this},ee.nz=function(a){if(0>a||this.type!==un.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,b=x.length,tt=this.topIndex;tta||this.type!==un.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,b=x.length,tt=this.leftIndex;tta;)this.pc(this.O.length-1,!1);p1(this,this.itemArray)};function p1(a,y){var x=Gp(a);if(y===null||y.length===0)for(;a.O.length>x;)a.pc(a.O.length-1,!1);else if(a.O.length<=x){x=y.length;for(var b=0;bx)){var tt=bv(a,y);if(tt=Pv(a,tt),tt!==null){if(Oa(tt),tt=tt.copy(),tt.l&16777216){var et=a.ih();et!==null&&wv(et,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new Rn),a.ge.add(y,tt)),et=x+Gp(a),a.Gb(et,tt),b&&(tt.ub=y,xv(a,et,x),tt.ub=null),tt.data=y}}}function xv(a,y,x){for(a=a.O;ya&&ti(a,">= 0",un,"padding"),a=new Yn(a)):(0>a.left&&ti(a.left,">= 0",un,"padding:value.left"),0>a.right&&ti(a.right,">= 0",un,"padding:value.right"),0>a.top&&ti(a.top,">= 0",un,"padding:value.top"),0>a.bottom&&ti(a.bottom,">= 0",un,"padding:value.bottom"));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.v(),this.g("padding",y,a))}},defaultAlignment:{get:function(){return this.Tm},set:function(a){var y=this.Tm;y.D(a)||(this.Tm=a=a.J(),this.v(),this.g("defaultAlignment",y,a))}},defaultStretch:{get:function(){return this.Uf},set:function(a){var y=this.Uf;y!==a&&(this.Uf=a,this.v(),this.g("defaultStretch",y,a))}},defaultSeparatorPadding:{get:function(){return this.T!==null?this.T.Qp:Ra},set:function(a){typeof a=="number"&&(a=new Yn(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new va),this.T.Qp=a,this.v(),this.g("defaultSeparatorPadding",y,a))}},defaultRowSeparatorStroke:{get:function(){return this.T!==null?this.T.ia:null},set:function(a){var y=this.defaultRowSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof bi)&&(a instanceof bi&&a.freeze(),this.T===null&&(this.T=new va),this.T.ia=a,this.N(),this.g("defaultRowSeparatorStroke",y,a))}},defaultRowSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.Ha:1},set:function(a){var y=this.defaultRowSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new va),this.T.Ha=a,this.v(),this.g("defaultRowSeparatorStrokeWidth",y,a))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(a){var y=this.defaultRowSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,b=0,tt=0;tta)&&We("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new va),this.T.Hb=a,this.v(),this.g("topIndex",y,a))}},leftIndex:{get:function(){return this.T!==null?this.T.hb:0},set:function(a){var y=this.leftIndex;y!==a&&((!isFinite(a)||0>a)&&We("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new va),this.T.hb=a,this.v(),this.g("leftIndex",y,a))}},data:{get:function(){return this.ub},set:function(a){var y=this.ub;if(y!==a){var x=this instanceof _n&&!(this instanceof di);Oa(this),this.ub=a;var b=this.diagram;b!==null&&(x?(x=b.partManager,this instanceof cn?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof _n&&(y!==null&&x.cf.remove(y),a!==null&&x.cf.add(a,this))):(x=this.panel,x!==null&&x.ge!==null&&(y!==null&&x.ge.remove(y),a!==null&&x.ge.add(a,this)))),this.g("data",y,a),b!==null&&b.undoManager.isUndoingRedoing||a!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(a){var y=this.zn;y!==a&&(this.zn=a,this.g("itemIndex",y,a))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new pf),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&Sw(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&uy(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&ly(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||p1(this,a)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(a){if(this.itemTemplateMap===null){if(a===null)return;this.itemTemplateMap=new Rn}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof _n||a.isPanelMain)&&We("Panel.itemTemplate must not be a Part or be Panel.isPanelMain: "+a),this.itemTemplateMap.add("",a),this.g("itemTemplate",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv())}},itemTemplateMap:{get:function(){return this.A!==null?this.A.Pc:null},set:function(a){var y=this.itemTemplateMap;if(y!==a){for(var x=a.iterator;x.next(););Vn(this),this.A.Pc=a,this.g("itemTemplateMap",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv()}}},itemCategoryProperty:{get:function(){return this.A!==null?this.A.Oc:"category"},set:function(a){var y=this.itemCategoryProperty;y!==a&&(Vn(this),this.A.Oc=a,this.g("itemCategoryProperty",y,a))}},isAtomic:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("isAtomic",y,a))}},isClipping:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this instanceof Un&&(this.tb=null),this.v(),this.g("isClipping",y,a))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(a){var y=(this.l&33554432)!==0;y!==a&&(this.l^=33554432,this.v(),this.g("isOpposite",y,a))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;if(y!==a){var x=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",y,a),y=this.diagram,y!==null&&y.undoManager.isUndoingRedoing||x&&Em(this,this,a)}}},alignmentFocusName:{get:function(){return this.$e},set:function(a){var y=this.$e;y!==a&&(this.$e=a,this.v(),this.g("alignmentFocusName",y,a))}}}),qe.Object.defineProperties(un,{Position:{get:function(){return Va.I("Position")}},Horizontal:{get:function(){return Va.I("Horizontal")}},Vertical:{get:function(){return Va.I("Vertical")}},Spot:{get:function(){return Va.I("Spot")}},Auto:{get:function(){return Va.I("Auto")}},Table:{get:function(){return Va.I("Table")}},Viewbox:{get:function(){return Va.I("Viewbox")}},TableRow:{get:function(){return Va.I("TableRow")}},TableColumn:{get:function(){return Va.I("TableColumn")}},Link:{get:function(){return Va.I("Link")}},Grid:{get:function(){return Va.I("Grid")}},Graduated:{get:function(){return Va.I("Graduated")}}}),un.prototype.rebuildItemElements=un.prototype.mv,un.prototype.findItemPanelForData=un.prototype.sx,un.prototype.updateTargetBindings=un.prototype.La,un.prototype.copyTemplate=un.prototype.Uy,un.prototype.graduatedValueForPoint=un.prototype.Gz,un.prototype.graduatedPointForValue=un.prototype.Fz,un.prototype.findColumnForLocalX=un.prototype.fz,un.prototype.findRowForLocalY=un.prototype.nz,un.prototype.addColumnDefinition=un.prototype.By,un.prototype.addRowDefinition=un.prototype.Hy,un.prototype.addRowColumnDefinition=un.prototype.Gy,un.prototype.removeColumnDefinition=un.prototype.jA,un.prototype.getColumnDefinition=un.prototype.Eb,un.prototype.removeRowDefinition=un.prototype.oA,un.prototype.getRowDefinition=un.prototype.Fb,un.prototype.removeAt=un.prototype.mb,un.prototype.remove=un.prototype.remove,un.prototype.insertAt=un.prototype.Gb,un.prototype.elt=un.prototype.M,un.prototype.add=un.prototype.add,un.prototype.findObject=un.prototype.fb,un.prototype.findInVisualTree=un.prototype.Nl,un.prototype.walkVisualTreeFrom=un.prototype.qm,un.prototype.findMainElement=un.prototype.Pb;var g1=!1,m1=null,Va=new Rn;un.className="Panel",un.definePanelLayout=El,El("Position",new fm),El("Vertical",new pm),El("Auto",new mm),El("Link",new bm);function pu(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}pu.prototype.copy=function(){var a=new pu;return a.lq=this.lq,a.F=this.F,a.ia=this.ia,a.V=this.V,a.u=this.u,a.j=this.j,a.o=this.o,a.Zh=this.Zh,a},pu.className="GradPanelSettings";function va(){this.Pc=[],this.Oc=[],this.j=this.ob=km,this.hb=this.Hb=0,this.Qp=Ra,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}va.prototype.copy=function(a){for(var y=new va,x=this.Pc,b=x.length,tt=y.Pc,et=0;eta&&ti(a,">= 0",Rr,"height"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("height",y,a))}},width:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&ti(a,">= 0",Rr,"width"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("width",y,a))}},minimum:{get:function(){return this.jj},set:function(a){var y=this.jj;y!==a&&((0>a||!isFinite(a))&&ti(a,">= 0",Rr,"minimum"),this.jj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("minimum",y,a))}},maximum:{get:function(){return this.hj},set:function(a){var y=this.hj;y!==a&&(0>a&&ti(a,">= 0",Rr,"maximum"),this.hj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("maximum",y,a))}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(this.Jb=a.J(),this.panel!==null&&this.panel.v(),this.Ob("alignment",y,a))}},stretch:{get:function(){return this.hg},set:function(a){var y=this.hg;y!==a&&(this.hg=a,this.panel!==null&&this.panel.v(),this.Ob("stretch",y,a))}},separatorPadding:{get:function(){return this.dg},set:function(a){typeof a=="number"&&(a=new Yn(a));var y=this.dg;a!==null&&y!==null&&y.D(a)||(a!==null&&(a=a.J()),this.dg=a,this.panel!==null&&this.panel.v(),this.Ob("separatorPadding",y,a))}},separatorStroke:{get:function(){return this.lo},set:function(a){var y=this.lo;y!==a&&(a!==null&&mf(a,"RowColumnDefinition.separatorStroke"),a instanceof bi&&a.freeze(),this.lo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",y,a))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(a){var y=this.mo;y!==a&&(this.mo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",y,a))}},separatorDashArray:{get:function(){return this.tj},set:function(a){var y=this.tj;if(y!==a){if(a!==null){for(var x=a.length,b=0,tt=0;tttt)){var et=b.measuredBounds,nt=Math.max(1,et.width);et=et.height;for(var ht=x[0],gt=x[1],bt,Pt,Nt,zt,Yt,Zt,oe=0,Pe=oi(),pe=2;peNt&&(Nt=1),tt=x=Nt,bt=nt/2,Pt=bt!==0,pe=0,Zt=Pe[pe],Nt=Zt[0],Yt=Zt[1],zt=Zt[2],Zt=Zt[3];for(var Le=0;.1<=oe;){if(Le===0&&(Pt?(tt=x,tt-=bt,oe-=bt,Pt=!1):tt=x,tt===0&&(tt=1)),tt>oe){ri(Pe);return}tt>Zt?(Le=tt-Zt,tt=Zt):Le=0;var je=Math.sqrt(tt*tt/(1+zt*zt));if(0>Nt&&(je=-je),ht+=je,gt+=zt*je,a.translate(ht,gt),a.rotate(Yt),a.translate(-(nt/2),-(et/2)),Le===0&&b.hh(a,y),a.translate(nt/2,et/2),a.rotate(-Yt),a.translate(-ht,-gt),oe-=tt,Zt-=tt,Le!==0){if(pe++,pe===Pe.length){ri(Pe);return}Zt=Pe[pe],Nt=Zt[0],Yt=Zt[1],zt=Zt[2],Zt=Zt[3],tt=Le}}ri(Pe)}}ee.hh=function(a,y){var x=this.xc,b=this.Ui;if(x!==null||b!==null){var tt=this.ua;if(tt!==null){a.yc();var et=this.actualBounds,nt=this.naturalBounds;b!==null&&vr(this,a,b,!0,!1,nt,et);var ht=this.part,gt=this.ig;if(x===null||gt!==0||ht===null||!this.isPanelMain&&ht.Pb()!==this||(gt=ht.type===un.Link&&ht instanceof di&&ht.category==="Selection"&&ht.adornedObject instanceof Wn&&ht.adornedPart.Pb()===ht.adornedObject?ht.adornedObject.strokeWidth:0),gt===0&&(x=null),x!==null&>!==0&&(vr(this,a,x,!1,!1,nt,et),a.lineWidth=gt,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),et=!1,ht&&y.Gf("drawShadows")&&(et=ht.isShadowed),a.Il===!1&&(et=!1),ht=!0,x===null||b!==null&&b!=="transparent"||(ht=!1),nt=!1,gt=this.strokeDashArray,gt!==null&&(nt=!0,a.js(gt,this.strokeDashOffset)),tt.type===pn.j)a.beginPath(),a.moveTo(tt.startX,tt.startY),a.lineTo(tt.endX,tt.endY),x!==null&&a.jk(),a.Se();else if(tt.type===pn.u){var bt=tt.startX;gt=tt.startY;var Pt=tt.endX,Nt=tt.endY;tt=Math.min(bt,Pt);var zt=Math.min(gt,Nt);bt=Math.abs(Pt-bt),gt=Math.abs(Nt-gt),a.beginPath(),a.rect(tt,zt,bt,gt),b!==null&&a.ng(b),x!==null&&(ht&&et&&zl(a),a.jk(),ht&&et&&hu(a)),a.Se()}else if(tt.type===pn.F)bt=tt.startX,gt=tt.startY,Pt=tt.endX,Nt=tt.endY,tt=Math.abs(Pt-bt)/2,zt=Math.abs(Nt-gt)/2,bt=Math.min(bt,Pt)+tt,gt=Math.min(gt,Nt)+zt,a.beginPath(),a.moveTo(bt,gt-zt),a.bezierCurveTo(bt+Ge.wg*tt,gt-zt,bt+tt,gt-Ge.wg*zt,bt+tt,gt),a.bezierCurveTo(bt+tt,gt+Ge.wg*zt,bt+Ge.wg*tt,gt+zt,bt,gt+zt),a.bezierCurveTo(bt-Ge.wg*tt,gt+zt,bt-tt,gt+Ge.wg*zt,bt-tt,gt),a.bezierCurveTo(bt-tt,gt-Ge.wg*zt,bt-Ge.wg*tt,gt-zt,bt,gt-zt),a.closePath(),b!==null&&a.ng(b),x!==null&&(ht&&et&&zl(a),a.jk(),ht&&et&&hu(a)),a.Se();else if(tt.type===pn.o)for(tt=tt.figures,gt=tt.length,zt=0;ztoe.sweepAngle,Yt!==null?Yt.endX:bt.startX,Yt!==null?Yt.endY:bt.startY)}else if(Yt=Bs(oe,bt),Pe=Yt.length,Pe===0)a.lineTo(oe.centerX,oe.centerY);else for(var pe=0;pe(x.startX-x.endX)*(a.x-x.endX)+(x.startY-x.endY)*(a.y-x.endY)||0>b)?!1:($e.free(et),Ge.Yb(x.startX,x.startY,x.endX,x.endY,tt,a.x,a.y));if(x.type===pn.u){y=x.startX;var nt=x.startY,ht=x.endX;if(x=x.endY,et.x=Math.min(y,ht),et.y=Math.min(nt,x),et.width=Math.abs(ht-y),et.height=Math.abs(x-nt),this.fill===null){if(et.Bc(-b,-b),et.ca(a))return $e.free(et),!1;et.Bc(b,b)}return this.stroke!==null&&et.Bc(tt,tt),a=et.ca(a),$e.free(et),a}if(x.type===pn.F){nt=x.startX,tt=x.startY,ht=x.endX;var gt=x.endY;if(x=Math.min(nt,ht),y=Math.min(tt,gt),nt=Math.abs(ht-nt)/2,tt=Math.abs(gt-tt)/2,x=a.x-(x+nt),y=a.y-(y+tt),this.fill===null){if(nt-=b,tt-=b,0>=nt||0>=tt||1>=x*x/(nt*nt)+y*y/(tt*tt))return $e.free(et),!1;nt+=b,tt+=b}return this.stroke!==null&&(nt+=b,tt+=b),$e.free(et),0>=nt||0>=tt?!1:1>=x*x/(nt*nt)+y*y/(tt*tt)}if(x.type===pn.o)return $e.free(et),this.fill===null?ph(x,a.x,a.y,tt):eu(x,a,tt,1=this.strokeWidth)Pt=Ge.Ve(bt.startX,bt.startY,bt.endX,bt.endY,et,nt,ht,gt,tt);else{if(bt.startX===bt.endX?(b=Nt,Pt=0):(y=(bt.endY-bt.startY)/(bt.endX-bt.startX),Pt=Nt/Math.sqrt(1+y*y),b=Pt*y),y=oi(),a=new Ee,Ge.Ve(bt.startX+b,bt.startY+Pt,bt.endX+b,bt.endY+Pt,et,nt,ht,gt,a)&&y.push(a),a=new Ee,Ge.Ve(bt.startX-b,bt.startY-Pt,bt.endX-b,bt.endY-Pt,et,nt,ht,gt,a)&&y.push(a),a=new Ee,Ge.Ve(bt.startX+b,bt.startY+Pt,bt.startX-b,bt.startY-Pt,et,nt,ht,gt,a)&&y.push(a),a=new Ee,Ge.Ve(bt.endX+b,bt.endY+Pt,bt.endX-b,bt.endY-Pt,et,nt,ht,gt,a)&&y.push(a),ht=y.length,ht===0)return ri(y),!1;for(Pt=!0,gt=1/0,b=0;bMath.abs(x)){if(gt=nt-Pt-x*(et-b),0>a*a*x*x+bt*bt-gt*gt){tt.x=NaN,tt.y=NaN,Pt=!1;break t}Nt=Math.sqrt(a*a*x*x+bt*bt-gt*gt),ht=(-(a*a*x*gt)+a*bt*Nt)/(bt*bt+a*a*x*x)+b,a=(-(a*a*x*gt)-a*bt*Nt)/(bt*bt+a*a*x*x)+b,bt=x*(ht-b)+gt+Pt,gt=x*(a-b)+gt+Pt,Math.abs((et-ht)*(et-ht))+Math.abs((nt-bt)*(nt-bt))ht){tt.x=NaN,tt.y=NaN,Pt=!1;break t}gt=Math.sqrt(ht),ht=Pt+gt,gt=Pt-gt,Math.abs(ht-nt)Math.abs(Zt)?(oe*=.5/Zt,Zt=.5):oe!==0&&.5>Math.abs(oe)&&(Zt*=.5/oe,oe=.5),pe-=Zt,Le-=oe;Yt.contains(pe,Le);)pe-=Zt,Le-=oe;for(tt.x=ht,tt.y=gt,oe=0;oex?a-x:x-a)<(y>b?y-b:b-y)?(a=ya||Ge.$(gt.y,a))&&(gt.yy||Ge.$(gt.x,y))&&(gt.x=a&&b<=y):(a=b&&x<=a)}ee.tx=function(a,y,x){function b(Pe,pe){for(var Le=Pe.length,je=0;jett)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var tt=a.Bf(y),et=tt;if(1.5=tt||aa(y,et,0,-Nt)>=tt||aa(y,et,0,Nt)>=tt||aa(y,et,Pt,0)>=tt)}else if(y.type===pn.o){if(bt=y.bounds,et=bt.x,ht=bt.y,gt=bt.x+bt.width,bt=bt.y+bt.height,a.x>gt&&a.xbt&&a.ytt&&Zr(a.x,a.y,et,ht,gt,ht)>tt&&Zr(a.x,a.y,gt,bt,et,bt)>tt&&Zr(a.x,a.y,gt,bt,gt,ht)>tt)return!1;if(et=Math.sqrt(tt),x){if(this.fill===null?ph(y,a.x,a.y,et):eu(y,a,et,!0,!1))return!0}else{for(x=y.figures,y=0;ytt)return!1;for(ht=et.segments.s,gt=ht.length,bt=0;bttt)return!1;break;case Mo:var zt=oi();if(Ge.Qe(nt,Pt,Nt.point1X,Nt.point1Y,Nt.point2X,Nt.point2Y,Nt.endX,Nt.endY,.8,zt),nt=b(zt,a),ri(zt),nt||(nt=Nt.endX,Pt=Nt.endY,a.zd(nt,Pt)>tt))return!1;break;case Qs:if(zt=oi(),Ge.ep(nt,Pt,Nt.point1X,Nt.point1Y,Nt.endX,Nt.endY,.8,zt),nt=b(zt,a),ri(zt),nt||(nt=Nt.endX,Pt=Nt.endY,a.zd(nt,Pt)>tt))return!1;break;case Dr:case ua:zt=Nt.type===Dr?Bs(Nt,et):Aa(Nt,et,nt,Pt);var Yt=zt.length;if(Yt===0){if(nt=Nt.type===Dr?Nt.centerX:Nt.endX,Pt=Nt.type===Dr?Nt.centerY:Nt.endY,a.zd(nt,Pt)>tt)return!1;break}Nt=null;for(var Zt=oi(),oe=0;oe= 0",Wn,"strokeWidth:value")}},strokeCap:{get:function(){return this.Na!==null?this.Na.Hr:"butt"},set:function(a){var y=this.strokeCap;y!==a&&(typeof a!="string"||a!=="butt"&&a!=="round"&&a!=="square"?ti(a,'"butt", "round", or "square"',Wn,"strokeCap"):(Mc(this),this.Na.Hr=a,this.N(),this.g("strokeCap",y,a)))}},strokeJoin:{get:function(){return this.Na!==null?this.Na.Ir:"miter"},set:function(a){var y=this.strokeJoin;y!==a&&(typeof a!="string"||a!=="miter"&&a!=="bevel"&&a!=="round"?ti(a,'"miter", "bevel", or "round"',Wn,"strokeJoin"):(Mc(this),this.Na.Ir=a,this.N(),this.g("strokeJoin",y,a)))}},strokeMiterLimit:{get:function(){return this.Na!==null?this.Na.Jr:10},set:function(a){var y=this.strokeMiterLimit;if(y!==a&&1<=a){Mc(this),this.Na.Jr=a,this.N();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeMiterLimit",y,a)}}},strokeDashArray:{get:function(){return this.Yg},set:function(a){var y=this.Yg;if(y!==a){if(a!==null){for(var x=a.length,b=0,tt=0;tta?a=0:1a?a=0:1(Nt*Nt+Pt*Pt)*zt*zt&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof Gs&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,Nt=this.spacingBelow,this.flip){case ui:a.translate(tt,0),a.scale(-1,1);break;case Kn:a.translate(0,et),a.scale(1,-1);break;case Ai:a.translate(tt,et),a.scale(-1,-1)}if(a.yc(),Pt=this.Gc,zt=(y+nt+Nt)*Pt,et>zt&&(b=this.verticalAlignment,b=b.y*et-b.y*zt+b.offsetY),Pt===1&&this.ze!==null)Nt=this.Cb,Nt>tt&&(Nt=tt),this.Oj(this.ze,a,0,b+y,tt,nt,Nt,x,ht,gt,bt);else if(this.Qc!==null&&this.Qb!==null)for(zt=0;zttt&&(Yt=tt),b+=y,this.Oj(this.Qb[zt],a,0,b,tt,nt,Yt,x,ht,gt,bt),b+=nt+Nt}switch(this.flip){case ui:a.scale(-1,1),a.translate(-tt,0);break;case Kn:a.scale(1,-1),a.translate(0,-et);break;case Ai:a.scale(-1,-1),a.translate(-tt,-et)}}},ee.Oj=function(a,y,x,b,tt,et,nt,ht,gt,bt,Pt){var Nt=0;if(ht)gt==="left"?Nt=0:gt==="right"?Nt=tt-nt:gt==="center"&&(Nt=(tt-nt)/2),y.fillRect(x+Nt,b+.25*et,nt,1);else{if(gt==="left"?Nt=0:gt==="right"?Nt=tt:gt==="center"&&(Nt=tt/2),tt=_m!==null?_m(this,et):.75*et,y.fillText(a,x+Nt,b+tt),a=et/20|0,a===0&&(a=1),gt==="right"?Nt-=nt:gt==="center"&&(Nt-=nt/2),bt){ht=Om!==null?Om(this,et):.8*et,gt=x+Nt,bt=b+ht,tt=x+Nt+nt,ht=b+ht;var zt=a;y.beginPath(),y.lineWidth=zt,y.moveTo(gt,bt),y.lineTo(tt,ht),y.stroke(),y.Se(),y instanceof Gs&&y.ad.classList.add("gojs-td")}Pt&&(Pt=b+et-et/2.2|0,a%2!==0&&(Pt+=.5),b=x+Nt,et=Pt,x=x+Nt+nt,nt=Pt,Nt=a,y.beginPath(),y.lineWidth=Nt,y.moveTo(b,et),y.lineTo(x,nt),y.stroke(),y.Se(),y instanceof Gs&&y.ad.classList.add("gojs-td"))}},ee.kk=function(a,y,x){if(!ze.prototype.kk.call(this,a,y,x))return!1;if(vr(this,a,this.xc,!0,!1,this.naturalBounds,this.actualBounds),x){if(this.svg.getElementsByTagName("text").length===0)return!0;for(y=this.svg.getElementsByClassName("gojs-td"),x=0;xa?a=0:1a?a=0:1=a&&ti(a,"> 0",Ni,"maxLines"),El(this),this.da.Jq=a,this.v(),this.g("maxLines",y,a))}},metrics:{get:function(){return{arrSize:this.Qc!==null?this.Qc:[this.Cb],arrText:this.Qb!==null?this.Qb:[this.ze],maxLineWidth:this.Cb,fontHeight:this.df}}},choices:{get:function(){return this.Gm},set:function(a){var y=this.Gm;y!==a&&(this.Gm=a,this.g("choices",y,a))}}});var _m=null,Om=null,Lv=new sn(Ni,"None",0),b1=new sn(Ni,"WrapFit",1),Tv=new sn(Ni,"WrapDesiredSize",2),P1=new sn(Ni,"WrapBreakAll",3),_v=new sn(Ni,"OverflowClip",0),jm=new sn(Ni,"OverflowEllipsis",1),Vp=new sn(Ni,"FormatTrim",0),C1=new sn(Ni,"FormatNone",0),ww=/[ \u200b\u00ad]/,Ov=new si,E1=0,Nm=new si,jv=0,Yp="...",A1="",xs=null,Dm=!1;Ni.className="TextBlock";function Nv(){this.nc=!1,this.Hd=null,this.Xf=an,this.gq=Vp,this.Jq=1/0,this.$q=_v,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=vl,this.$r=Tv}Nv.prototype.copy=function(){var a=new Nv;return a.Hd=this.Hd,a.Xf=this.Xf,a.gq=this.gq,a.Jq=this.Jq,a.$q=this.$q,a.Dr=this.Dr,a.Er=this.Er,a.Or=this.Or,a.Pr=this.Pr,a.Qr=this.Qr,a.vj=this.vj,a.Yr=this.Yr,a.$r=this.$r,a},Ni.getEllipsis=function(){return Yp},Ni.setEllipsis=function(a){Yp=a,Nm=new si,jv=0},Ni.getBaseline=function(){return _m},Ni.setBaseline=function(a){_m=a},Ni.getUnderline=function(){return Om},Ni.setUnderline=function(a){Om=a},Ni.isValidFont=function(a){if(Dm||(xs=gr?new _a(null).context:null,Dm=!0),xs===null)return!0;var y=xs.font;if(a===y||a==="10px sans-serif")return!0;xs.font="10px sans-serif",xs.font=a;var x=xs.font;if(x!=="10px sans-serif")return xs.font=y,!0;xs.font="19px serif";var b=xs.font;return xs.font=a,x=xs.font,xs.font=y,x!==b},Ni.FormatNone=C1,Ni.FormatTrim=Vp,Ni.None=Lv,Ni.OverflowClip=_v,Ni.OverflowEllipsis=jm,Ni.WrapBreakAll=P1,Ni.WrapDesiredSize=Tv,Ni.WrapFit=b1;function Hl(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Hl.prototype.copy=function(){var a=new Hl;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},Hl.className="GradElementSettings";function bs(a,y){ze.call(this),this.Eg=null,this.qo="",this.Xg=ch,this.Nk=ln,this.Zg=this.Hd=null,this.Mk=wi,this.Xf=an,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,typeof a=="string"?this.source=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}var bd;en(bs,ze),bs.prototype.cloneProtected=function(a){ze.prototype.cloneProtected.call(this,a),a.qo=this.qo,a.element=this.Eg,a.Xg=this.Xg.J(),a.Nk=this.Nk,a.Xf=this.Xf,a.Hd=this.Hd,a.Zg=this.Zg,a.Mk=this.Mk.J(),a.en=this.en,a.rl=this.rl},bs.prototype.qb=function(a){a===an||a===kn||a===ni?this.imageStretch=a:ze.prototype.qb.call(this,a)},bs.prototype.toString=function(){return"Picture("+this.source+")#"+Kr(this)};function Pd(a){a===void 0&&(a=""),a!==""?bd[a]&&(delete bd[a],Im--):(bd=new si,Im=0)}function M1(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var tt=b.value;tt.N();var et=y.getAttribute("src")||"",nt=tt.Og.I(et);if(nt!==null)for(var ht=nt.length,gt=0;gt=b.width&&(et=et+Zt.offsetX+(Nt*Zt.x-b.width*Zt.x)),zt>=b.height&&(nt=nt+Zt.offsetY+(zt*Zt.y-b.height*Zt.y)),gt=Math.min(b.width,Nt),ht=Math.min(b.height,zt);break;case ln:Nt=b.width,zt=b.height;break;case kn:case ni:Vt===kn?(Vt=Math.min(b.height/zt,b.width/Nt),Nt*=Vt,zt*=Vt):Vt===ni&&(Vt=Math.max(b.height/zt,b.width/Nt),Nt*=Vt,zt*=Vt,Nt>=b.width&&(et=(et+Zt.offsetX+(Nt*Zt.x-b.width*Zt.x)/Nt)*gt),zt>=b.height&&(nt=(nt+Zt.offsetY+(zt*Zt.y-b.height*Zt.y)/zt)*ht),gt*=1/(Nt/b.width),ht*=1/(zt/b.height),Nt=b.width,zt=b.height)}Vt=this.Df()*y.scale;var oe=Nt*Vt*zt*Vt,Pe=gt*ht/oe,de=x.__goCache;Vt=null;var Le=xw;if(!tt){if(x.sq&&de!==void 0&&4Le*Le)for(de.gi===null&&(L1(de,4,bt,Pt,x),L1(de,16,bt,Pt,x)),tt=de.gi,bt=tt.length,Pt=0;Pta)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,x/3);var b="rr"+y+","+x+","+a,tt=Ge.Mf[b];if(tt!==void 0)return tt;var et=a*Ge.wg;return tt=new pn().add(new to(a,0,!0).add(new gi(Gi,y-a,0)).add(new gi(Mo,y,a,y-et,0,y,et)).add(new gi(Gi,y,x-a)).add(new gi(Mo,y-a,x,y,x-et,y-et,x)).add(new gi(Gi,a,x)).add(new gi(Mo,0,x-a,et,x,0,x-et)).add(new gi(Gi,0,a)).add(new gi(Mo,a,0,0,et,et,0).close())),1tt.x&&a.y>tt.y&&a.righttt.x&&y.y>tt.y&&y.right=x.maxSelectionCount)){this.G^=4096;var b=!1;if(x!==null){b=x.skipsUndoManager,x.skipsUndoManager=!0;var tt=x.selection;tt.ka(),a?tt.add(this):tt.remove(this),tt.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),x!==null&&(x.$b(),x.skipsUndoManager=b)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(a){var y=(this.G&524288)!==0;if(y!==a){this.G^=524288;var x=this.diagram;x!==null&&(x=x.highlighteds,x.ka(),a?x.add(this):x.remove(this),x.freeze()),this.g("isHighlighted",y,a),this.N(),a=this.highlightedChanged,a!==null&&a(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(a){var y=(this.G&8192)!==0;y!==a&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",y,a),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(a){var y=(this.G&262144)!==0;y!==a&&(this.G^=262144,this.g("isAnimated",y,a))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(a){var y=this.highlightedChanged;y!==a&&(Ps(this),this.P.oq=a,this.g("highlightedChanged",y,a))}},selectionObjectName:{get:function(){return this.P!==null?this.P.vr:""},set:function(a){var y=this.selectionObjectName;y!==a&&(Ps(this),this.P.vr=a,this.Ug=null,this.g("selectionObjectName",y,a))}},selectionAdornmentTemplate:{get:function(){return this.P!==null?this.P.tr:null},set:function(a){var y=this.selectionAdornmentTemplate;y!==a&&(Ps(this),this.P.tr=a,this.g("selectionAdornmentTemplate",y,a))}},selectionObject:{get:function(){if(this.Ug===null){var a=this.selectionObjectName;a!==null&&a!==""?(a=this.fb(a),a!==null?this.Ug=a:this.Ug=this):this instanceof cn?(a=this.path,a!==null?this.Ug=a:this.Ug=this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return this.P!==null?this.P.ur:null},set:function(a){var y=this.selectionChanged;y!==a&&(Ps(this),this.P.ur=a,this.g("selectionChanged",y,a))}},resizeAdornmentTemplate:{get:function(){return this.P!==null?this.P.fr:null},set:function(a){var y=this.resizeAdornmentTemplate;y!==a&&(Ps(this),this.P.fr=a,this.g("resizeAdornmentTemplate",y,a))}},resizeObjectName:{get:function(){return this.P!==null?this.P.hr:""},set:function(a){var y=this.resizeObjectName;y!==a&&(Ps(this),this.P.hr=a,this.g("resizeObjectName",y,a))}},resizeObject:{get:function(){var a=this.resizeObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},resizeCellSize:{get:function(){return this.P!==null?this.P.gr:Jr},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),Ps(this),this.P.gr=a,this.g("resizeCellSize",y,a))}},rotateAdornmentTemplate:{get:function(){return this.P!==null?this.P.ir:null},set:function(a){var y=this.rotateAdornmentTemplate;y!==a&&(Ps(this),this.P.ir=a,this.g("rotateAdornmentTemplate",y,a))}},rotateObjectName:{get:function(){return this.P!==null?this.P.jr:""},set:function(a){var y=this.rotateObjectName;y!==a&&(Ps(this),this.P.jr=a,this.g("rotateObjectName",y,a))}},rotateObject:{get:function(){var a=this.rotateObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},rotationSpot:{get:function(){return this.P!==null?this.P.lr:oo},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),Ps(this),this.P.lr=a,this.g("rotationSpot",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;y!==a&&(this.ec=a,this.g("text",y,a))}},containingGroup:{get:function(){return this.Ah},set:function(a){if(this.Zc()){var y=this.Ah;if(y!==a){a===null||this!==a&&!a.Td(this)||(this===a&&We("Cannot make a Group a member of itself: "+this.toString()),We("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?Yv(y,this):this instanceof Un&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Vv(a,this):this instanceof Un&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var b=this.data,tt=x.model;if(b!==null&&tt.Xj()){var et=tt.wa(a!==null?a.data:null);tt.mp(b,et)}}if(b=this.containingGroupChanged,b!==null&&(tt=!0,x!==null&&(tt=x.aa,x.aa=!0),b(this,y,a),x!==null&&(x.aa=tt)),this instanceof Un){for(x=new gn,Ih(x,this,!0,0,!0),x=x.iterator;x.next();)if(b=x.value,b instanceof wn)for(b=b.linksConnected;b.next();)Ad(b.value)}if(this instanceof wn){for(x=this.linksConnected;x.next();)Ad(x.value);x=this.labeledLink,x!==null&&Ad(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&$f(y,-1,a))}}else We("cannot set the Part.containingGroup of a Link or Adornment")}},containingGroupChanged:{get:function(){return this.P!==null?this.P.Kp:null},set:function(a){var y=this.containingGroupChanged;y!==a&&(Ps(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof wn&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(Ps(this),this.P.Cq=a,this.g("layoutConditions",y,a))}},dragComputation:{get:function(){return this.P!==null?this.P.Up:null},set:function(a){var y=this.dragComputation;y!==a&&(Ps(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:Pa},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),Ps(this),this.P.zr=a,this.N(),this.g("shadowOffset",y,a))}},shadowColor:{get:function(){return this.P!==null?this.P.yr:"gray"},set:function(a){var y=this.shadowColor;y!==a&&(Ps(this),this.P.yr=a,this.N(),this.g("shadowColor",y,a))}},shadowBlur:{get:function(){return this.P!==null?this.P.Vg:4},set:function(a){var y=this.shadowBlur;y!==a&&(Ps(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),_n.prototype.invalidateLayout=_n.prototype.C,_n.prototype.findCommonContainingGroup=_n.prototype.px,_n.prototype.isMemberOf=_n.prototype.Td,_n.prototype.findTopLevelPart=_n.prototype.sz,_n.prototype.findSubGraphLevel=_n.prototype.oz,_n.prototype.ensureBounds=_n.prototype.Va,_n.prototype.getDocumentBounds=_n.prototype.mi,_n.prototype.findObject=_n.prototype.fb,_n.prototype.moveTo=_n.prototype.moveTo,_n.prototype.invalidateAdornments=_n.prototype.Wb,_n.prototype.clearAdornments=_n.prototype.Ej,_n.prototype.removeAdornment=_n.prototype.Jf,_n.prototype.addAdornment=_n.prototype.bh,_n.prototype.findAdornment=_n.prototype.Pj,_n.prototype.updateTargetBindings=_n.prototype.La;var G1=!1;_n.className="Part",_n.LayoutNone=0,_n.LayoutAdded=1,_n.LayoutRemoved=2,_n.LayoutShown=4,_n.LayoutHidden=8,_n.LayoutNodeSized=16,_n.LayoutGroupLayout=32,_n.LayoutNodeReplaced=64,_n.LayoutStandard=127,_n.LayoutAll=16777215;function di(a,y){a===void 0||a instanceof Wr||typeof a=="string"?_n.call(this,a):(_n.call(this),a&&(y=a)),this.G&=-257,this.Jg="Adornment",this.ue=null,this.Aw=0,this.Uw=!1,this.j=this.$a=null,y&&Object.assign(this,y)}en(di,_n),di.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},di.prototype.updateRelationshipsFromData=function(){},di.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof cn&&y instanceof Wn){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var b=0;ba&&(a=1);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new gn;x.add(this),Z1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Hu),y.Ue=!1}};function Z1(a,y,x,b,tt,et,nt){if(1a&&(a=2);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new gn;x.add(this),J1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Hu),y.Ue=!1}};function J1(a,y,x,b,tt,et,nt){for(var ht=et===a?!1:a.isTreeExpanded,gt=x?a.Mo():a.Sd(),bt={};gt.next();){var Pt=gt.value;if(Pt.isTreeLink&&(ht||Pt.fd||Pt.bb(),Pt=Pt.To(a),Pt!==null&&Pt!==a&&!y.contains(Pt))){if(y.add(Pt),!ht){Pt.Zb(!0),Pt.oh();var Nt=x?Pt.Oo():Pt.Po();bt.vv=a,Nt.all(function(zt){return function(Vt){return Vt===zt.vv||!Vt.isTreeExpanded}}(bt))&&tt.Cj(Pt,et)}(2tt&&(tt=ht.right),ht.bottom>et&&(et=ht.bottom)}}return isFinite(x)&&isFinite(b)?a.h(x,b,tt-x,et-b):(y=y.location,a.h(y.x,y.y,0,0)),a},qe.Object.defineProperties(ls.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Yn(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),ls.className="Placeholder";function cn(a){_n.call(this,un.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=us,this.Om=0,this.Qm=us,this.Rm=NaN,this.qj=Jv,this.po=.5,this.wd=null,this.Nb=new vn().freeze(),this.Tg=this.Mg=null,this.ml=new $e,this.ua=new pn,this.u=this.o=this.Sf=this.Wf=null,this.su=new Ee,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}en(cn,_n),cn.prototype.cloneProtected=function(a){_n.prototype.cloneProtected.call(this,a),a.Qa=this.Qa&-113,a.ff=this.ff,a.gn=this.gn,a.vf=this.vf,a.uo=this.uo,a.qk=this.qk,a.Om=this.Om,a.Qm=this.Qm,a.Rm=this.Rm,a.qj=this.qj,a.po=this.po,this.ba!==null&&(a.ba=this.ba.copy())},ee=cn.prototype,ee.Af=function(a){_n.prototype.Af.call(this,a),this.ff=a.ff,this.vf=a.vf,a.Mg=null,a.bb(),a.Sf=this.Sf;var y=a.fromPort;y!==null&&Us(y),a=a.toPort,a!==null&&Us(a)},ee.qb=function(a){a.classType===cn?(a.value&2)===2?this.routing=a:a===ia||a===Ju||a===kd?this.curve=a:a===Qp||a===Zm||a===Qm?this.adjusting=a:a!==Jv&&a!==us&&We("Unknown Link enum value for a Link property: "+a):_n.prototype.qb.call(this,a)},ee.Xc=function(){this.ba===null&&(this.ba=new Ip)},ee.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),ss(a)||Nh(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),ss(a)||Nh(a)))},ee.zv=function(){return!1},ee.Av=function(){},ee.Zc=function(){return!1},cn.prototype.computeAngle=function(a,y,x){return cn.computeAngle(y,x)},cn.computeAngle=function(a,y){switch(a){default:case us:a=0;break;case Jp:a=y;break;case qp:a=y+90;break;case $p:a=y-90;break;case qv:a=y+180;break;case Jm:a=Ge.bp(y),90a&&(a-=180);break;case tg:a=Ge.bp(y+90),90a&&(a-=180);break;case eg:a=Ge.bp(y-90),90a&&(a-=180);break;case qm:if(a=Ge.bp(y),45a||225a)return 0;90a&&(a-=180)}return Ge.bp(a)};function Ad(a){var y=a.fromNode,x=a.toNode,b=null;if(y!==null?b=x!==null?y.px(x):y.containingGroup:x!==null?b=x.containingGroup:b=null,y=b,x=a.Ah,x!==y){x!==null&&Yv(x,a),a.Ah=y,y!==null&&Vv(y,a);var tt=a.containingGroupChanged;if(tt!==null){var et=!0,nt=a.diagram;nt!==null&&(et=nt.aa,nt.aa=!0),tt(a,x,y),nt!==null&&(nt.aa=et)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=b}ee=cn.prototype,ee.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&_n.prototype.oh.call(this)},ee.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},ee.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function tS(a,y){a.wd===null&&(a.wd=new gn),a.wd.add(y),a.v()}ee.Vo=function(a){if(_n.prototype.Vo.call(this,a),Tc(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Gm(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Gm(x,this,b)}Xp(this)}},ee.Wo=function(a){if(_n.prototype.Wo.call(this,a),Tc(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Um(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Um(x,this,b)}Zp(this)}},ee.Lj=function(){if(this.fd=!0,this.wd!==null){var a=this.diagram;if(a!==null)for(var y=this.wd.copy().iterator;y.next();)a.remove(y.value)}this.data!==null&&(a=this.diagram,a!==null&&a.partManager.removeDataForLink(this))},cn.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},cn.prototype.move=function(a,y){var x=y?this.location:this.position,b=x.x;isNaN(b)&&(b=0);var tt=x.y;for(isNaN(tt)&&(tt=0),b=a.x-b,tt=a.y-tt,y===!0?_n.prototype.move.call(this,a,!1):(a=Ee.allocAt(x.x+b,x.y+tt),_n.prototype.move.call(this,a,!1),Ee.free(a)),Qu(this,b,tt),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+b,x.y+tt)},cn.prototype.canRelinkFrom=function(){if(!this.relinkableFrom)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},cn.prototype.canRelinkTo=function(){if(!this.relinkableTo)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},cn.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(_l),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var x=this.i(0),b=this.i(1);return a.h((x.x+b.x)/2,(x.y+b.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===ia))return this.ua.Pu(.5,a),a.add(this.i(0)),x=this.ua.figures.first(),a.offset(-x.startX,-x.startY),a;if(this.computeCurve()===ia){if(y===3){x=this.i(0),b=this.i(1);var tt=this.i(2);return Ge.ax(x.x,x.y,b.x,b.y,b.x,b.y,tt.x,tt.y,a),a}if(b=(y-1)/3|0,x=3*(b/2|0),b%2===1){b=this.i(x),tt=this.i(x+1);var et=this.i(x+2);x=this.i(x+3),Ge.ax(b.x,b.y,tt.x,tt.y,et.x,et.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var nt=this.flattenedLengths;for(x=this.flattenedTotalLength,tt=et=b=0;bx/2));)b+=tt,et++;return y=this.i(et),et=this.i(et+1),1>Math.abs(y.x-et.x)?y.y>et.y?a.h(y.x,y.y-(x/2-b)):a.h(y.x,y.y+(x/2-b)):1>Math.abs(y.y-et.y)?y.x>et.x?a.h(y.x-(x/2-b),y.y):a.h(y.x+(x/2-b),y.y):(x=(x/2-b)/tt,a.h(y.x+x*(et.x-y.x),y.y+x*(et.y-y.y))),a},cn.prototype.computeMidAngle=function(){var a=this.pointsCount;if(2>a)return NaN;if(a===2)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===ia))return this.ua.wx(.5);if(this.computeCurve()===ia&&4<=a){var y=(a-1)/3|0,x=3*(y/2|0);if(y%2===1){x=Math.floor(x),a=this.i(x),y=this.i(x+1);var b=this.i(x+2);return x=this.i(x+3),Ge.My(a.x,a.y,y.x,y.y,b.x,b.y,x.x,x.y)}if(0b/2));)tt+=et,x++;if(y=this.i(x),b=this.i(x+1),1>Math.abs(y.x-b.x)&&1>Math.abs(y.y-b.y)){if(0Math.abs(y.x-b.x))return y.y>b.y?270:90;if(1>Math.abs(y.y-b.y))return y.x>b.x?180:0}return y.ab(b)},ee=cn.prototype,ee.i=function(a){return this.Nb.s[a]},ee.dd=function(a,y){this.Nb.cd(a,y)},ee.L=function(a,y,x){this.Nb.cd(a,new Ee(y,x))},ee.Kz=function(a,y){this.Nb.Gb(a,y)},ee.m=function(a,y,x){this.Nb.Gb(a,new Ee(y,x))},ee.ne=function(a){this.Nb.add(a)},ee.yf=function(a,y){this.Nb.add(new Ee(a,y))},ee.pv=function(a){this.Nb.mb(a)},ee.Fj=function(){this.Nb.clear()};function Qu(a,y,x){if(y!==0||x!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,x),a.defaultToPoint&&a.defaultToPoint.offset(y,x);else{for(var b=a.fd,tt=new vn,et=a.Nb.iterator;et.next();){var nt=et.value;tt.add(new Ee(nt.x+y,nt.y+x).freeze())}tt.freeze(),et=a.Nb,a.Nb=tt,nt=a.diagram,isNaN(y)||isNaN(x)||nt!==null&&nt.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+x),a.pa.h(a.pa.x+y,a.pa.y+x),os(a)),b?Wm(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),nt!==null&&nt.animationManager.zb&&qf(nt.animationManager,a,tt),a.g("points",et,tt)}}ee.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},ee.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,b=1/0,tt=a.s,et=tt.length,nt=0;ntbt&&(Nt=-Nt),oe=(0>gt?-1:1)*Nt+Vt,Pe=Pt*(oe-Vt)+Zt),Vt=et.x+2*ht/3,Zt=et.y+2*gt/3;var de=Vt,Le=Zt;Ge.B(gt,0)?Le=0gt?-1:1)*Nt+Vt,Le=Pt*(de-Vt)+Zt),this.Fj(),this.ne(et),this.yf(oe,Pe),this.yf(de,Le),this.ne(zt),this.dd(0,this.getLinkPoint(a,y,nt,!0,!1,b,tt)),this.dd(3,this.getLinkPoint(b,tt,x,!1,!1,a,y))}else et=b,zt=tt,b=this.getLinkPoint(a,y,nt,!0,!1,et,zt),tt=this.getLinkPoint(et,zt,x,!1,!1,a,y),this.hasCurviness()?(zt=tt.x-b.x,x=tt.y-b.y,nt=this.computeCurviness(),a=b.x+zt/2,y=b.y+x/2,et=a,ht=y,Ge.B(x,0)?ht=0nt&&(et=-et),et=(0>x?-1:1)*et+a,ht=zt*(et-a)+y),this.ne(b),this.yf(et,ht),this.ne(tt)):(this.ne(b),this.ne(tt),ht=$e.alloc(),y.mi(ht),gt=ht.ca(tt),zt.mi(ht),bt=ht.ca(b),(gt||bt)&&(nt=y.ga(Ym(nt),new Ee),this.dd(0,this.getLinkPointFromPoint(a,y,nt,tt,!0,nt)),x=zt.ga(Ym(x),new Ee),this.dd(1,this.getLinkPointFromPoint(et,zt,x,b,!1,x))),$e.free(ht))}else{Nt=this.isAvoiding,zt&&(Pt&&Nt||bt)&&this.Fj();var Oe=bt?this.computeCurviness():0;Nt=this.getLinkPoint(a,y,nt,!0,Pt,b,tt),Vt=oe=Zt=0,(Pt||!ht||bt)&&(Pe=this.computeEndSegmentLength(a,y,nt,!0),Vt=this.getLinkDirection(a,y,Nt,nt,!0,Pt,b,tt),bt&&(ht||nt.D(x)||!Pt&&nt.x+x.x===1&&nt.y+x.y===1)&&(Vt-=Pt?90:30,0>Oe&&(Vt-=180)),0>Vt?Vt+=360:360<=Vt&&(Vt-=360),bt&&(Pe+=Math.abs(Oe)*(Pt?1:2)),Vt===0?Zt=Pe:Vt===90?oe=Pe:Vt===180?Zt=-Pe:Vt===270?oe=-Pe:(Zt=Pe*Math.cos(Vt*Math.PI/180),oe=Pe*Math.sin(Vt*Math.PI/180)),nt.Mc()&&bt&&(Pe=y.ga(wi,Ee.alloc()),de=Ee.allocAt(Pe.x+1e3*Zt,Pe.y+1e3*oe),this.getLinkPointFromPoint(a,y,Pe,de,!0,Nt),Ee.free(Pe),Ee.free(de))),Pe=this.getLinkPoint(b,tt,x,!1,Pt,a,y);var De=Le=de=0;if(Pt||!gt||bt){var Re=this.computeEndSegmentLength(b,tt,x,!1);De=this.getLinkDirection(b,tt,Pe,x,!1,Pt,a,y),bt&&(gt||nt.D(x)||!Pt&&nt.x+x.x===1&&nt.y+x.y===1)&&(De+=Pt?0:30,0>Oe&&(De+=180)),0>De?De+=360:360<=De&&(De-=360),bt&&(Re+=Math.abs(Oe)*(Pt?1:2)),De===0?de=Re:De===90?Le=Re:De===180?de=-Re:De===270?Le=-Re:(de=Re*Math.cos(De*Math.PI/180),Le=Re*Math.sin(De*Math.PI/180)),x.Mc()&&bt&&(x=tt.ga(wi,Ee.alloc()),nt=Ee.allocAt(x.x+1e3*de,x.y+1e3*Le),this.getLinkPointFromPoint(b,tt,x,nt,!1,Pe),Ee.free(x),Ee.free(nt))}x=Nt,(Pt||!ht||bt)&&(x=new Ee(Nt.x+Zt,Nt.y+oe)),nt=Pe,(Pt||!gt||bt)&&(nt=new Ee(Pe.x+de,Pe.y+Le)),!zt&&!Pt&&ht&&3Math.abs(y.y-a.y)?(y.x>=a.x?y.x=a.x+9e9:y.x=a.x-9e9,y.y=a.y):(y.y>=a.y?y.y=a.y+9e9:y.y=a.y-9e9,y.x=a.x),y}cn.prototype.getLinkPointFromPoint=function(a,y,x,b,tt,et){if(et===void 0&&(et=new Ee),a===null||y===null)return et.assign(x),et;if(a.isVisible()||(tt=a.findVisibleNode(),tt!==null&&tt!==a&&(y=tt.port)),a=null,tt=y.panel,tt===null||tt.se()||(tt=tt.panel),tt===null){tt=b.x,b=b.y;var nt=x.x;x=x.y}else{a=tt.oe,tt=1/(a.m11*a.m22-a.m12*a.m21),nt=a.m22*tt;var ht=-a.m12*tt,gt=-a.m21*tt,bt=a.m11*tt,Pt=tt*(a.m21*a.dy-a.m22*a.dx),Nt=tt*(a.m12*a.dx-a.m11*a.dy);tt=b.x*nt+b.y*gt+Pt,b=b.x*ht+b.y*bt+Nt,nt=x.x*nt+x.y*gt+Pt,x=x.x*ht+x.y*bt+Nt}return y.Sj(tt,b,nt,x,et),a!==null&&et.transform(a),et};function Vm(a,y){var x=y.Zn;return x===null&&(x=new xf,x.port=y,x.node=y.part,y.Zn=x),lS(x,a)}cn.prototype.getLinkPoint=function(a,y,x,b,tt,et,nt,ht){if(ht===void 0&&(ht=new Ee),x.sb()&&!Md(x))return y.ga(x,ht),ht;if(x.$c()){var gt=Vm(this,y);if(gt!==null){if(ht.assign(gt.Zo),tt&&this.routing===nS){var bt=Vm(this,nt);if(bt!==null&>.Gl=Pt.y&&a.y<=Pt.y+Pt.height?ht.y=a.y:(x.Hf(gl)||x.Hf(Ea))&&a.x>=Pt.x&&a.x<=Pt.x+Pt.width&&(ht.x=a.x),Ee.free(gt),Ee.free(bt)}}return ht}}return x=y.ga(Ym(x),Ee.alloc()),this.pointsCount>(tt?6:2)?(nt=b?this.i(1):this.i(this.pointsCount-2),tt&&(nt=Kv(x,nt.copy()))):(gt=this.computeSpot(!b,nt),et=Ee.alloc(),nt=nt.ga(Ym(gt),et),tt&&(nt=Kv(x,nt)),Ee.free(et)),this.getLinkPointFromPoint(a,y,x,nt,b,ht),Ee.free(x),ht},cn.prototype.getLinkDirection=function(a,y,x,b,tt,et,nt,ht){t:if(b.sb())var gt=b.x>b.y?b.x>1-b.y?0:b.x<1-b.y?270:315:b.x1-b.y?90:b.x<1-b.y?180:135:.5>b.x?225:.5(et?6:2)?(ht=tt?this.i(1):this.i(this.pointsCount-2),ht=et?Kv(gt,ht.copy()):x):(x=Ee.alloc(),ht=ht.ga(wi,x),Ee.free(x)),x=Math.abs(ht.x-gt.x)>Math.abs(ht.y-gt.y)?ht.x>=gt.x?0:180:ht.y>=gt.y?90:270,Ee.free(gt),gt=x}return b.Mc()&&nt.Td(a)&&(gt+=180,360<=gt&&(gt-=360)),Md(b)||(a=y.li(),a===0)||(45<=a&&135>a?gt+=90:135<=a&&225>a?gt+=180:225<=a&&315>a&&(gt+=270),360<=gt&&(gt-=360)),gt},cn.prototype.computeEndSegmentLength=function(a,y,x,b){return y!==null&&x.$c()&&(a=Vm(this,y),a!==null)?a.Ju:(a=b?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=b?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},cn.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=wi:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===oo?$r:y)):(a=y||this.toPort,a===null?a=wi:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===oo?$r:y)),a};function Md(a){return a===$r||a.x===.5&&a.y===.5}function Ym(a){return a.x===.5&&a.y===.5?a:wi}cn.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==us&&4zt.width||Nt.y>zt.height||0>Nt.x+Nt.width||0>Nt.y+Nt.height)){if(Nt=Xn.alloc(),Nt.set(nt),Pt instanceof un)ht=Pt.Cf(a,y,x,b,tt,Nt);else if(this.path===Pt){if(Pt instanceof Wn)if(ht=a,zt=b,Pt.pickable===!1)ht=!1;else if(Nt.multiply(Pt.transform),zt)t:{var Vt=ht,Zt=Nt;if(Pt.fh(Vt,Zt))ht=!0;else{if(Zt===void 0&&(Zt=Pt.transform,Vt.Re(Pt.actualBounds))){ht=!0;break t}ht=Vt.left,zt=Vt.right;var oe=Vt.top;Vt=Vt.bottom;var Pe=Ee.alloc(),de=Ee.alloc(),Le=Ee.alloc(),Oe=Xn.alloc();Oe.set(Zt),Oe.bv(Pt.transform),Oe.Vj(),de.x=zt,de.y=oe,de.transform(Oe),Pe.x=ht,Pe.y=oe,Pe.transform(Oe),Zt=!1,kc(Pt,Pe,de,Le)?Zt=!0:(Pe.x=zt,Pe.y=Vt,Pe.transform(Oe),kc(Pt,Pe,de,Le)?Zt=!0:(de.x=ht,de.y=Vt,de.transform(Oe),kc(Pt,Pe,de,Le)?Zt=!0:(Pe.x=ht,Pe.y=oe,Pe.transform(Oe),kc(Pt,Pe,de,Le)&&(Zt=!0)))),Xn.free(Oe),Ee.free(Pe),Ee.free(de),Ee.free(Le),ht=Zt}}else ht=Pt.fh(ht,Nt)}else ht=no(Pt,a,b,Nt);ht&&(zt=Pt,y!==null&&(zt=y(Pt)),zt&&(x===null||x(zt))&&tt.add(zt)),Xn.free(Nt)}}}return et===void 0&&Xn.free(nt),ht||this.background!==null||this.areaBackground!==null}return et===void 0&&Xn.free(nt),!1},cn.prototype.computeCurve=function(){if(this.Wf===null){var a=this.fromPort,y=this.isOrthogonal;this.Wf=a!==null&&a===this.toPort&&!y}return this.Wf?ia:this.curve},cn.prototype.computeCorner=function(){if(this.curve===ia)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},cn.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,b=0;bgt?-Math.PI/2:Math.PI/2;else Pt=Math.atan(gt/Math.abs(ht)),0>ht&&(Pt=Math.PI-Pt);nt=y.x;var Nt=y.y;ht=b.x-nt;var zt=b.y-Nt;for(gt=Math.sqrt(ht*ht+zt*zt),Ge.$(ht,0)?zt=0>zt?-Math.PI/2:Math.PI/2:(zt=Math.atan(zt/Math.abs(ht)),0>ht&&(zt=Math.PI-zt)),bt=gt/bt,Pt=zt-Pt,this.dd(a,y),a+=1;agt?-Math.PI/2:Math.PI/2:(gt=Math.atan(gt/Math.abs(ht)),0>ht&&(gt=Math.PI-gt)),ht=gt+Pt,y*=bt,this.L(a,nt+y*Math.cos(ht),Nt+y*Math.sin(ht)));this.dd(x,b)}}return!0;case Qm:if(et=this.i(a),Nt=this.i(x),!et.Xa(y)||!Nt.Xa(b)){tt=et.x,et=et.y,nt=Nt.x,Nt=Nt.y,bt=(nt-tt)*(nt-tt)+(Nt-et)*(Nt-et),ht=y.x,Pt=y.y,gt=b.x,zt=b.y;var Vt=1;if(gt-ht!==0){var Zt=(zt-Pt)/(gt-ht);Vt=Math.sqrt(1+1/(Zt*Zt))}else Zt=9e9;for(this.dd(a,y),a+=1;ay?y+=360:360<=y&&(y-=360),0>b?b+=360:360<=b&&(b-=360);var nt=b;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,b=315<=b||45>b?0:45<=b&&135>b?90:135<=b&&225>b?180:270;var ht=tt.actualBounds.copy(),gt=et.actualBounds.copy();if(ht.w()&>.w()){ht.Bc(ng,ng),gt.Bc(ng,ng),ht.Ye(a),gt.Ye(x);var bt=Ee.alloc(),Pt=Ee.alloc();y===0?x.x>a.x||b===270&&x.ya.x||b===90&&x.y>a.y&>.right>a.x?(bt.h(x.x,a.y),Pt.h(x.x,(a.y+x.y)/2),b===180?(bt.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),Pt.x=bt.x,Pt.y=x.y):b===270&&x.ya.y?(bt.x=a.xgt.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):gt.right,Pt.x=bt.x,Pt.y=x.y):b===0&&a.xgt.top&&a.yht.bottom)&&(b===180&&(gt.ca(a)||ht.ca(x))?bt.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.ya.y&&(b===180||b===270)&&(bt.y=this.computeMidOrthoPosition(a.x,ht.bottom,x.x,Math.min(x.y,gt.top),!0)),Pt.x=x.x,Pt.y=bt.y),bt.y>ht.top&&bt.y=ht.left&&x.x<=a.x||a.x<=gt.right&&a.x>=x.x?(b===90||b===270)&&(bt.h(Math.max((a.x+x.x)/2,a.x),a.y),Pt.h(bt.x,x.y)):(bt.y=b===270||(b===0||b===180)&&x.ya.y&>.lefta.y?(bt.x=a.x>gt.right?this.computeMidOrthoPosition(a.x,a.y,gt.right,x.y,!1):a.x>gt.left&&(b===270&&a.ygt.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):gt.left,Pt.x=bt.x,Pt.y=x.y):b===180&&a.x>gt.right&&a.y>gt.top&&a.yht.bottom)&&(b===0&&(gt.ca(a)||ht.ca(x))?bt.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.ya.y&&(b===0||b===270)&&(bt.y=this.computeMidOrthoPosition(a.x,ht.bottom,x.x,Math.min(x.y,gt.top),!0)),Pt.x=x.x,Pt.y=bt.y),bt.y>ht.top&&bt.y=a.x||a.x>=gt.left&&a.x<=x.x?(b===90||b===270)&&(bt.h(Math.min((a.x+x.x)/2,a.x),a.y),Pt.h(bt.x,x.y)):(bt.y=b===270||(b===0||b===180)&&x.ya.y||b===180&&x.xa.y||b===0&&x.x>a.x&>.bottom>a.y?(bt.h(a.x,x.y),Pt.h((a.x+x.x)/2,x.y),b===270?(bt.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),Pt.x=x.x,Pt.y=bt.y):b===180&&x.xa.x?(bt.y=a.ygt.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):gt.bottom,Pt.x=x.x,Pt.y=bt.y):b===90&&a.ygt.left&&a.xht.right)&&(b===270&&(gt.ca(a)||ht.ca(x))?bt.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.xa.x&&(b===270||b===180)&&(bt.x=this.computeMidOrthoPosition(ht.right,a.y,Math.min(x.x,gt.left),x.y,!1)),Pt.x=bt.x,Pt.y=x.y),bt.x>ht.left&&bt.x=ht.top&&x.y<=a.y||a.y<=gt.bottom&&a.y>=x.y?(b===0||b===180)&&(bt.h(a.x,Math.max((a.y+x.y)/2,a.y)),Pt.h(x.x,bt.y)):(bt.x=b===180||(b===90||b===270)&&x.xa.x&>.top=a.x?(bt.y=a.y>gt.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,gt.bottom,!0):a.y>gt.top&&(b===180&&a.xgt.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):gt.top,Pt.x=x.x,Pt.y=bt.y):b===270&&a.y>gt.bottom&&a.x>gt.left&&a.xht.right)&&(b===90&&(gt.ca(a)||ht.ca(x))?bt.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.xa.x&&(b===90||b===180)&&(bt.x=this.computeMidOrthoPosition(ht.right,a.y,Math.min(x.x,gt.left),x.y,!1)),Pt.x=bt.x,Pt.y=x.y),bt.x>ht.left&&bt.x=a.y||a.y>=gt.top&&a.y<=x.y?(b===0||b===180)&&(bt.h(a.x,Math.min((a.y+x.y)/2,a.y)),Pt.h(x.x,bt.y)):(bt.x=b===180||(b===90||b===270)&&x.x=Td&&(oS(Vt),ht.Bc(Vt.Ho*Vt.Hx,Vt.Go*Vt.Ix),sS(Vt,a,y,Nt,b,ht,!1),gt=Wl(Vt,Nt.x,Nt.y)),!Vt.abort&>this.pointsCount?(y===0||y===180?(ht.x=a.x,ht.y=Nt.y):(ht.x=Nt.x,ht.y=a.y),this.L(2,ht.x,ht.y),this.m(3,ht.x,ht.y)):(nt=this.i(3),y===0||y===180?Ge.B(ht.x,nt.x)?(ht=y===0?Math.max(ht.x,a.x):Math.min(ht.x,a.x),this.L(2,ht,a.y),this.L(3,ht,nt.y)):Ge.B(ht.y,nt.y)?(Math.abs(a.y-ht.y)<=Vt.Go/2&&(this.L(2,ht.x,a.y),this.L(3,nt.x,a.y)),this.m(2,ht.x,a.y)):this.L(2,a.x,ht.y):(y===90||y===270)&&(Ge.B(ht.y,nt.y)?(ht=y===90?Math.max(ht.y,a.y):Math.min(ht.y,a.y),this.L(2,a.x,ht),this.L(3,nt.x,ht)):Ge.B(ht.x,nt.x)?(Math.abs(a.x-ht.x)<=Vt.Ho/2&&(this.L(2,a.x,ht.y),this.L(3,a.x,nt.y)),this.m(2,a.x,ht.y)):this.L(2,ht.x,a.y))),x!==null&&(a=this.i(1),nt=this.i(2),a.x!==nt.x&&a.y!==nt.y?y===0||y===180?this.m(2,a.x,nt.y):this.m(2,nt.x,a.y):y===0||y===180?this.m(2,tt.x,x.y):this.m(2,x.x,tt.y)),Zt!==null&&(b===0||b===180?this.yf(et.x,Zt.y):this.yf(Zt.x,et.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(bt.copy()),this.ne(Pt.copy())),Ee.free(bt),Ee.free(Pt)}},cn.prototype.computeMidOrthoPosition=function(a,y,x,b,tt){var et=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(et=this.computeCurviness()),tt?(y+b)/2+et:(a+x)/2+et};function Xv(a){if(a.diagram===null||!a.isAvoiding||!ad(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=ld(a.diagram,!0,a.containingGroup,null);for(var b=1;b_c&&Wl(y,Pt,Nt)!==bt-1&&(Wl(y,x-ht,b)===bt-1?(tt=180,Pt=x-ht,Nt=b):Wl(y,x+ht,b)===bt-1?(tt=0,Pt=x+ht,Nt=b):Wl(y,x,b-gt)===bt-1?(tt=270,Pt=x,Nt=b-gt):Wl(y,x,b+gt)===bt-1&&(tt=90,Pt=x,Nt=b+gt));bt>_c&&Wl(y,Pt,Nt)===bt-1;)x=Pt,b=Nt,tt===0?Pt+=ht:tt===90?Nt+=gt:tt===180?Pt-=ht:Nt-=gt,--bt;et?bt>_c&&(tt===180||tt===0?x=Math.floor(x/ht)*ht+ht/2:(tt===90||tt===270)&&(b=Math.floor(b/gt)*gt+gt/2)):(x=Math.floor(x/ht)*ht+ht/2,b=Math.floor(b/gt)*gt+gt/2),bt>_c&&(et=tt,nt=x,Pt=b,tt===0?(et=90,Pt+=gt):tt===90?(et=180,nt-=ht):tt===180?(et=270,Pt-=gt):tt===270&&(et=0,nt+=ht),Wl(y,nt,Pt)===bt-1?Zv(a,y,nt,Pt,et,!1,et):(nt=x,Pt=b,tt===0?(et=270,Pt-=gt):tt===90?(et=0,nt+=ht):tt===180?(et=90,Pt+=gt):tt===270&&(et=180,nt-=ht),Wl(y,nt,Pt)===bt-1&&Zv(a,y,nt,Pt,et,!1,et))),a.yf(x,b)}cn.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),b=this.i(1),tt=Zr(y,a,x.x,x.y,b.x,b.y),et=0,nt=1;ntthis.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),a=this.path,a!==null)){a.ua=this.ua;for(var y=this.O.s,x=y.length,b=0;b=y&&(b=y-1),gt=this.i(b),et.x=Math.min(gt.x,et.x),et.y=Math.min(gt.y,et.y);b=et.x,gt=et.y}else{for(gt=0;gtPe?Zt>Vt?(et.x=de-Oe,et.y=Vt-Oe,tt.x=de+oe,tt.y=Vt+oe):(et.x=de-Oe,et.y=Vt+Oe,tt.x=de+oe,tt.y=Vt-oe):Zt>Vt?(et.x=de+Oe,et.y=Vt-Oe,tt.x=de-oe,tt.y=Vt+oe):(et.x=de+Oe,et.y=Vt+Oe,tt.x=de-oe,tt.y=Vt-oe)),Ge.$(Pe,de)&&Ge.$(Vt,Zt)&&(Vt>zt?(Le>de?(et.x=de-Oe,et.y=Vt-Oe,tt.x=de+oe):(et.x=de+Oe,et.y=Vt-Oe,tt.x=de-oe),tt.y=Vt+oe):(Le>de?(et.x=de-Oe,et.y=Vt+Oe,tt.x=de+oe):(et.x=de+Oe,et.y=Vt+Oe,tt.x=de-oe),tt.y=Vt-oe)),(Ge.$(Pe,de)&&Ge.$(de,Le)||Ge.$(zt,Vt)&&Ge.$(Vt,Zt))&&(Pe=.5*(Pe+Le),zt=.5*(zt+Zt),et.x=Pe,et.y=zt,tt.x=Pe,tt.y=zt),(Nt===1||Nt===2&&Ge.$(nt.x,this.i(0).x)&&Ge.$(nt.y,this.i(0).y))&&(x.x=.5*(nt.x+bt.x),x.y=.5*(nt.y+bt.y)),Ku(ht,x.x-b,x.y-gt,et.x-b,et.y-gt,bt.x-b,bt.y-gt),y.set(et),x.set(tt),nt=bt}}bt=nt.x,nt=nt.y,Pt=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(Pt=vf(this,Pt.copy(),!1,jo)),bt=.5*(bt+Pt.x),nt=.5*(nt+Pt.y),Ku(ht,tt.x-b,tt.y-gt,bt-b,nt-gt,Pt.x-b,Pt.y-gt),Ee.free(y),Ee.free(x),Ee.free(et),Ee.free(tt)}else for(x=3;x=y&&(x=y-1),tt=this.i(x-1),nt=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(nt=vf(this,nt.copy(),!1,jo)),Ku(ht,et.x-b,et.y-gt,tt.x-b,tt.y-gt,nt.x-b,nt.y-gt);else{for(et=Ee.alloc(),et.assign(this.i(0)),tt=Ee.alloc(),tt.assign(et),nt=this.computeCorner(),Nt=1,bt=0;Nt=y-1){if(!et.D(Pt))this.computeShortLength(!1)!==0&&(Pt=vf(this,Pt.copy(),!1,jo)),yf(this,ht,-b,-gt,et,Pt,x);else if(bt===0)for(Nt=1;Ntet.x?De=zt.x-Zt:De=zt.x+Zt,de.y>zt.y?Le=zt.y+Oe:Le=zt.y-Oe,de=Ee.allocAt(De,Re),yf(this,ht,Nt,Pe,et,de,oe),Ee.free(de),Fm(ht,zt.x+Nt,zt.y+Pe,Vt+Nt,Le+Pe),et.h(Vt,Le)}else Ge.B(et.x,zt.x)&&Ge.B(zt.y,de.y)?(Zt=Math.min(nt,Math.abs(zt.y-tt.y)/2),Zt=Oe=Math.min(Zt,Math.abs(de.x-zt.x)/2),Ge.B(Oe,0)?(yf(this,ht,Nt,Pe,et,zt,oe),et.assign(zt)):(De=zt.x,Re=zt.y,Vt=De,Le=Re,zt.y>et.y?Re=zt.y-Zt:Re=zt.y+Zt,de.x>zt.x?Vt=zt.x+Oe:Vt=zt.x-Oe,de=Ee.allocAt(De,Re),yf(this,ht,Nt,Pe,et,de,oe),Ee.free(de),Fm(ht,zt.x+Nt,zt.y+Pe,Vt+Nt,Le+Pe),et.h(Vt,Le))):(yf(this,ht,Nt,Pe,et,zt,oe),et.assign(zt));tt.assign(Pt),Nt=bt}Ee.free(et)}Bm=ht}else ht=this.i(1).copy(),ht.x-=b,ht.y-=gt,this.computeShortLength(!0)!==0&&(tt=vf(this,tt,!0,et)),this.computeShortLength(!1)!==0&&(ht=vf(this,ht,!1,et)),a.type=pn.j,a.startX=tt.x,a.startY=tt.y,a.endX=ht.x,a.endY=ht.y;return this.lk=!0,a};function Km(a,y,x,b){return a=x-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=b-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),Ge.$(a,0)?y:Ge.$(y,0)?a:Math.sqrt(a*a+y*y)))}function vf(a,y,x,b){var tt=a.pointsCount;if(2>tt)return y;if(x){var et=a.i(1);if(x=et.x-b.x,et=et.y-b.y,b=Km(y.x,y.y,x,et),b===0)return y;tt=tt===2?.5*b:b,a=a.computeShortLength(!0),a>tt&&(a=tt),tt=a*(et-y.y)/b,y.x+=a*(x-y.x)/b,y.y+=tt}else{if(et=a.i(tt-2),x=et.x-b.x,et=et.y-b.y,b=Km(y.x,y.y,x,et),b===0)return y;tt=tt===2?.5*b:b,a=a.computeShortLength(!1),a>tt&&(a=tt),tt=a*(y.y-et)/b,y.x-=a*(y.x-x)/b,y.y-=tt}return y}function Qv(a,y,x,b){for(var tt=a.pointsCount,et=y;Ge.$(y.x,et.x)&&Ge.$(y.y,et.y);){if(x>=tt)return tt-1;et=a.i(x++)}if(!Ge.$(y.x,et.x)&&!Ge.$(y.y,et.y))return x-1;for(var nt=et;Ge.$(y.x,et.x)&&Ge.$(et.x,nt.x)&&(!b||(y.y>=et.y?et.y>=nt.y:et.y<=nt.y))||Ge.$(y.y,et.y)&&Ge.$(et.y,nt.y)&&(!b||(y.x>=et.x?et.x>=nt.x:et.x<=nt.x));){if(x>=tt)return tt-1;nt=a.i(x++)}return x-2}cn.prototype.computeJumpLength=function(){return 10};function yf(a,y,x,b,tt,et,nt){if(!nt&&Tc(a)){nt=a.computeJumpLength();var ht=nt/2,gt=[],bt=0;if(a.isVisible()&&(bt=Aw(a,tt,et,gt)),0Nt-nt);)bt--,Nt=Math.max(Pt-ht,et.x);Pt=et.y-nt+b,Nt+=x,Vt=et.y+b,a.curve===Ju?Ed(y,Nt,Vt,!1):Ku(y,zt,Pt,Nt,Pt,Nt,Vt)}else if(Ge.B(tt.x,et.x))if(tt.yPt-nt);)bt--,Pt=Math.max(Nt-ht,et.y);Nt=et.x-nt+x,Vt=et.x+x,Pt+=b,a.curve===Ju?Ed(y,Vt,Pt,!1):Ku(y,Nt,zt,Nt,Pt,Vt,Pt)}}}y.lineTo(et.x+x,et.y+b)}function Aw(a,y,x,b){var tt=a.diagram;if(tt===null||y.D(x))return 0;for(tt=tt.layers;tt.next();){var et=tt.value;if(et!==null&&et.visible){et=et.Pa.s;for(var nt=et.length,ht=0;htnt.x&&Pt.x>=bt.x||bt.xnt.y&&Pt.y>=bt.y||bt.ynt&&Math.min(Zt,oe)Pt&&!Ge.B(Zt,oe)){ht.x=Pt,ht.y=nt,Pt=!0;break t}}else if(Ge.B(Nt,Vt)&&Ge.B(Zt,oe)&&Math.min(Pt,zt)Zt&&Math.min(nt,Pe)Nt&&!Ge.B(nt,Pe)){ht.x=Zt,ht.y=Nt,Pt=!0;break t}ht.x=0,ht.y=0,Pt=!1}Pt&&(tt?x.push(ht.x):x.push(ht.y)),nt=bt}Ee.free(ht)}function Tc(a){return a=a.curve,a===kd||a===Ju}function Xm(a,y){(y||Tc(a))&&(y=a.diagram,y===null||y.animationManager.isTicking||y.Eh.contains(a)||a.ml.width===0&&a.ml.height===0||y.Eh.add(a,a.ml.copy()))}cn.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var x=y.diagram;if(x!==null&&!x.animationManager.isTicking){var b=!1;for(x=x.layers;x.next();){var tt=x.value;if(tt.visible){if(tt===y){b=!0;var et=!1;tt=tt.Pa.s;for(var nt=tt.length,ht=0;hta&&ti(a,">= 0",cn,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),this.bb())}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:NaN},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.qc(),this.g("fromShortLength",y,a))}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:oo},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),(y.$c()||a.$c())&&this.toNode!==null&&Us(this.toPort),this.bb())}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:NaN},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&ti(a,">= 0",cn,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),this.bb())}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:NaN},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.qc(),this.g("toShortLength",y,a))}},isLabeledLink:{get:function(){return this.wd===null?!1:0=b&&(et=b-1);var ht=this.i(et-1),gt=this.i(et);Ge.Dl(tt.x,tt.y,nt.x,nt.y,ht.x,ht.y,gt.x,gt.y,.5,a),y=Math.min(gt.x,y),x=Math.min(gt.y,x),tt=gt}else for(tt=this.i(0),et=this.i(1),y=Math.min(tt.x,et.x),x=Math.min(tt.y,et.y),a.h(tt.x,tt.y,0,0),a.Ye(et),tt=2;ttb&&(b=-b)):Ge.$(b.y,tt.y)?(b=tt.x-b.x,0>b&&(b=-b)):b=Math.sqrt(b.Bf(tt)),a.push(b)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,x=y.length,b=a=0;bthis.pointsCount)return this.lk=!0,this.ua;this.ua=this.makeGeometry()}return this.ua}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!Md(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!Md(this.computeSpot(!1))?a-2:a-1}},adjusting:{get:function(){return this.qk},set:function(a){var y=this.qk;y!==a&&(this.qk=a,this.g("adjusting",y,a))}},corner:{get:function(){return this.Om},set:function(a){var y=this.Om;y!==a&&(this.Om=a,this.qc(),this.g("corner",y,a))}},curve:{get:function(){return this.Qm},set:function(a){var y=this.Qm;y!==a&&(this.Qm=a,this.bb(),this.qc(),Xm(this,y===Ju||y===kd||a===Ju||a===kd),this.g("curve",y,a))}},curviness:{get:function(){return this.Rm},set:function(a){var y=this.Rm;y!==a&&(this.Rm=a,this.bb(),this.qc(),this.g("curviness",y,a))}},routing:{get:function(){return this.qj},set:function(a){var y=this.qj;y!==a&&(this.qj=a,this.Wf=null,this.bb(),Xm(this,(y.value&2)===2||(a.value&2)===2),this.g("routing",y,a))}},smoothness:{get:function(){return this.po},set:function(a){var y=this.po;y!==a&&(this.po=a,this.qc(),this.g("smoothness",y,a))}},key:{get:function(){var a=this.diagram;if(a!==null&&a.model.ri())return a.model.Ac(this.data)}}}),cn.prototype.invalidateOtherJumpOvers=cn.prototype.Xo,cn.prototype.findClosestSegment=cn.prototype.ez,cn.prototype.updateRoute=cn.prototype.vg,cn.prototype.invalidateRoute=cn.prototype.bb,cn.prototype.rollbackRoute=cn.prototype.rv,cn.prototype.commitRoute=cn.prototype.zf,cn.prototype.startRoute=cn.prototype.uh,cn.prototype.clearPoints=cn.prototype.Fj,cn.prototype.removePoint=cn.prototype.pv,cn.prototype.addPointAt=cn.prototype.yf,cn.prototype.addPoint=cn.prototype.ne,cn.prototype.insertPointAt=cn.prototype.m,cn.prototype.insertPoint=cn.prototype.Kz,cn.prototype.setPointAt=cn.prototype.L,cn.prototype.setPoint=cn.prototype.dd,cn.prototype.getPoint=cn.prototype.i,cn.prototype.getOtherPort=cn.prototype.Cz,cn.prototype.getOtherNode=cn.prototype.To;var Sf=null,wf=null,Jv=new sn(cn,"Normal",1),kw=new sn(cn,"Orthogonal",2),Lw=new sn(cn,"AvoidsNodes",6),nS=new sn(cn,"AvoidsNodesStraight",7),us=new sn(cn,"None",0),ia=new sn(cn,"Bezier",9),Ju=new sn(cn,"JumpGap",10),kd=new sn(cn,"JumpOver",11),Qp=new sn(cn,"End",17),Zm=new sn(cn,"Scale",18),Qm=new sn(cn,"Stretch",19),Jp=new sn(cn,"OrientAlong",21),qp=new sn(cn,"OrientPlus90",22),$p=new sn(cn,"OrientMinus90",23),qv=new sn(cn,"OrientOpposite",24),Jm=new sn(cn,"OrientUpright",25),tg=new sn(cn,"OrientPlus90Upright",26),eg=new sn(cn,"OrientMinus90Upright",27),qm=new sn(cn,"OrientUpright45",28),iS=16,rS=14,ng=8;cn.className="Link",cn.Normal=Jv,cn.Orthogonal=kw,cn.AvoidsNodes=Lw,cn.AvoidsNodesStraight=nS,cn.None=us,cn.Bezier=ia,cn.JumpGap=Ju,cn.JumpOver=kd,cn.End=Qp,cn.Scale=Zm,cn.Stretch=Qm,cn.OrientAlong=Jp,cn.OrientPlus90=qp,cn.OrientMinus90=$p,cn.OrientOpposite=qv,cn.OrientUpright=Jm,cn.OrientPlus90Upright=tg,cn.OrientMinus90Upright=eg,cn.OrientUpright45=qm,cn.EndSegmentStep=8,cn.CurvinessStart=iS,cn.SpacingMin=rS,cn.OrthoShortCut=ng;function $m(a,y,x,b){qi(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=b,this.links=[]}$m.prototype.Sl=function(){if(!this.qq){var a=this.links;0=a.width||0>=a.height)){var y=a.y,x=a.x+a.width,b=a.y+a.height;if(this.Nd=Math.floor((a.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((y-this.sc)/this.sc)*this.sc,this.En=Math.ceil((x+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((b+2*this.sc)/this.sc)*this.sc,a=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),y=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di=_c&&(x[b]=$v)}ig.prototype.Yj=function(a,y,x,b){if(a>this.En||a+xthis.Fn||y+ba&&(x+=a,a=0),0>y&&(tt+=y,y=0),0>x||0>tt)return!0;for(b=Math.min(a+x-1,this.di)|0,x=Math.min(y+tt-1,this.ei)|0;a<=b;a++){tt=this.ac[a];for(var et=y;et<=x;et++)if(tt[et]===qu)return!1}return!0};function Vl(a,y,x,b,tt,et,nt,ht,gt){if(!(ynt||xgt)){var bt=y|0,Pt=x|0,Nt=a.ac[bt][Pt];if(Nt>=_c&&Nt=a.ac[bt][Pt]);)a.ac[bt][Pt]=Nt,Nt+=1,tt?Pt+=b:bt+=b;if(bt=tt?Pt:bt,tt)if(0bt;x+=b)Vl(a,y,x,1,!tt,et,nt,ht,gt),Vl(a,y,x,-1,!tt,et,nt,ht,gt);else if(0bt;y+=b)Vl(a,y,x,1,!tt,et,nt,ht,gt),Vl(a,y,x,-1,!tt,et,nt,ht,gt)}}function t0(a,y,x,b,tt,et,nt,ht,gt){y|=0,x|=0;var bt=qu,Pt=_c;for(a.ac[y][x]=Pt;bt===qu&&y>et&&yht&&xet&&yht&&x=Math.abs(ht-bt)&&1>=Math.abs(gt-Pt))a.abort=!0;else{var Nt=et.x;b=et.y,y=et.x+et.width;var zt=et.y+et.height;Nt-=a.Nd,Nt/=a.rc,b-=a.Od,b/=a.sc,y-=a.Nd,y/=a.rc,zt-=a.Od,zt/=a.sc,et=Math.max(0,Math.min(a.di,Nt|0)),y=Math.min(a.di,Math.max(0,y|0)),Nt=Math.max(0,Math.min(a.ei,b|0)),zt=Math.min(a.ei,Math.max(0,zt|0)),b=a.ac,ht|=0,gt|=0,bt|=0,Pt|=0;var Vt=x===0||x===90?1:-1;if(x=x===90||x===270,b[ht][gt]===qu?(t0(a,ht,gt,Vt,x,et,y,Nt,zt),t0(a,ht,gt,1,!x,et,y,Nt,zt),t0(a,ht,gt,-1,!x,et,y,Nt,zt)):t0(a,ht,gt,Vt,x,ht,gt,ht,gt),b[bt][Pt]===qu?(e0(a,bt,Pt,tt===0||tt===90?1:-1,tt===90||tt===270,et,y,Nt,zt),e0(a,bt,Pt,1,!(tt===90||tt===270),et,y,Nt,zt),e0(a,bt,Pt,-1,!(tt===90||tt===270),et,y,Nt,zt)):e0(a,bt,Pt,Vt,x,bt,Pt,bt,Pt),x=oi(),nt&&aS(a,bt,Pt,tt,ht,gt,x))for((x[0]!==bt||x[1]!==Pt)&&(x.unshift(Pt),x.unshift(bt)),(x[x.length-2]!==ht||x[x.length-1]!==gt)&&(x.push(ht),x.push(gt)),a=_c,tt=x[x.length-2],nt=x[x.length-1],b[tt][nt]=a++,et=x.length-4;0<=et;et-=2)for(tt=x[et+2],nt=x[et+3],y=x[et],bt=x[et+1];y>tt?tt++:ynt?nt++:bttt)Pt--;else break;else if(Nt>et)Nt--;else break;var zt=ht[Pt][Nt];if(zt===0||zt===ty)break;gt=Pt,bt=Nt}for(;;){if(Pt=b,Nt=gt,zt=bt,b===0?ztet&&(Pt=270,zt--):b===90?Nttt&&(Pt=180,Nt--):b===180?ztet&&(Pt=270,zt--):Nttt&&(Pt=180,Nt--),Nt=ht[Nt][zt],Pt!==b&&Nt!==0&&Nt!==ty){if(nt.push(gt),nt.push(bt),aS(a,gt,bt,Pt,tt,et,nt))return!0;nt.pop(),nt.pop()}if(ht[gt][bt]=ty,b===0){if(gt===y)return!1;gt--}else if(b===90){if(bt===x)return!1;bt--}else if(b===180){if(gt===y)return!1;gt++}else{if(bt===x)return!1;bt++}}}qe.Object.defineProperties(ig.prototype,{bounds:{get:function(){return new $e(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(a){0=x?180:0}switch(a=180*Math.atan2(a.height,a.width)/Math.PI,y){case 3:return x>a&&x<=180+a?180:270;case 5:return x>180-a&&x<=360-a?270:0;case 12:return x>a&&x<=180+a?90:0;case 10:return x>180-a&&x<=360-a?180:90;case 7:return 90180+a&&x<=360-a?270:0;case 13:return 180a&&180>=x?90:0;case 14:return x>a&&x<=180-a?90:x>180-a&&270>=x?180:0;case 11:return x>180-a&&x<=180+a?180:x>180+a?270:90}return b&&y!==15&&(x-=15,0>x&&(x+=360)),x>a&&x<180-a?90:x>=180-a&&x<=180+a?180:x>180+a&&x<360-a?270:0}xf.prototype.Sl=function(){this.pe.length=0};function lS(a,y){var x=a.pe;if(x.length===0){t:if(!a.ap){x=a.ap,a.ap=!0;var b=null,tt=a.node,et=tt instanceof Un?tt:null;if(et===null||et.isSubGraphExpanded)var nt=tt.isTreeExpanded?tt.findLinksConnected(a.port.portId):tt.qx();else{if(!et.actualBounds.w()){a.ap=x;break t}b=et,nt=b.Lu()}et=a.pe.length=0;var ht=a.port.ga(vo,Ee.alloc()),gt=a.port.ga(qo,Ee.alloc());for(tt=$e.allocAt(ht.x,ht.y,0,0),tt.Ye(gt),Ee.free(ht),Ee.free(gt),ht=Ee.allocAt(tt.x+tt.width/2,tt.y+tt.height/2),gt=a.port.li(),nt=nt.iterator;nt.next();){var bt=nt.value;if(bt.isVisible()&&bt.fromPort!==bt.toPort){var Pt=bt.fromPort===a.port||bt.fromNode!==null&&bt.fromNode.Td(b),Nt=bt.computeSpot(Pt,a.port);if(Nt.$c()&&(Pt=Pt?bt.toPort:bt.fromPort,Pt!==null)){var zt=Pt.part;if(zt!==null){var Vt=zt.findVisibleNode();Vt!==null&&Vt!==zt&&(zt=Vt,Pt=zt.port),Pt=bt.computeOtherPoint(zt,Pt),zt=ht.ab(Pt),zt-=gt,0>zt?zt+=360:360<=zt&&(zt-=360),Nt=Tw(tt,Nt,zt,bt.isOrthogonal),Nt===0?(Nt=4,180zt&&(zt+=360)),Vt=a.pe[et],Vt===void 0?(Vt=new ey(bt,zt,Nt),a.pe[et]=Vt):(Vt.link=bt,Vt.angle=zt,Vt.Nc=Nt),Vt.hv.set(Pt),et++}}}}for(Ee.free(ht),a.pe.sort(xf.prototype.j),gt=a.pe.length,b=-1,et=ht=0;etMath.abs(oe)?(Le=Math.abs(oe)/zt,zt=Math.abs(oe)):Le=1;break;case 2:Vt>Math.abs(Oe)?(Le=Math.abs(Oe)/Vt,Vt=Math.abs(Oe)):Le=1;break;case 1:Nt>Math.abs(oe)?(Le=Math.abs(oe)/Nt,Nt=Math.abs(oe)):Le=1;break;default:case 4:Pt>Math.abs(Oe)?(Le=Math.abs(Oe)/Pt,Pt=Math.abs(Oe)):Le=1}de=0}var Ve=De.Zo;if(b===Wv){switch(De=De.link.computeThickness(),De*=Le,Ve.set(Re),Zt){case 8:Ve.x=Re.x+oe/2+zt/2-de-De/2;break;case 2:Ve.y=Re.y+Oe/2+Vt/2-de-De/2;break;case 1:Ve.x=Re.x+oe/2-Nt/2+de+De/2;break;default:case 4:Ve.y=Re.y+Oe/2-Pt/2+de+De/2}de+=De}else{var Sn=.5;b===Hm&&(Sn=(De.Uo+1)/(De.Gl+1)),Ve.x=Re.x+oe*Sn,Ve.y=Re.y+Oe*Sn}}}for(Ee.free(ht),Ee.free(gt),Ee.free(nt),Ee.free(bt),Re=a.pe,et=0;ety.Nc?1:a.angley.angle?1:0},xf.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,$r,y.fromPort===this.port),b=a.Uo;if(0>b)return x;var tt=a.Gl;if(1>=tt||!y.isOrthogonal)return x;y=a.hv;var et=a.Zo;return(a.Nc===2||a.Nc===8)&&(b=tt-1-b),((a=a.Nc===2||a.Nc===4)?y.y=y-1?(et=0,b=x,tt+=nt+20,nt=0):et++}},Ji.prototype.doMinimalNetworkLayout=function(){var a=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var y=this.arrangementOrigin.x,x=y,b=this.arrangementOrigin.y,tt=0,et=0,nt=this.network.vertexes.iterator;nt.next();){var ht=nt.value.node;if(!(ht===null||ht instanceof cn)&&(rg(ht),this.rh(ht))){var gt=ht.measuredBounds,bt=gt.width;gt=gt.height,ht.moveTo(x,b),ht instanceof Un&&(ht.rh=!1),x+=Math.max(bt,50)+20,et=Math.max(et,Math.max(gt,50)),tt>=a-1?(tt=0,x=y,b+=et+20,et=0):tt++}}},Ji.prototype.rh=function(a){return!!(!a.location.w()||a instanceof Un&&a.rh)};function Fh(a,y,x,b,tt,et,nt,ht){for(x=x.iterator;x.next();){var gt=x.value;b&&!gt.isTopLevel||tt!==null&&!tt(gt)||!gt.canLayout()||(et&> instanceof wn?gt.isLinkLabel||(gt instanceof Un&>.layout===null?Fh(a,y,gt.memberParts,!1,tt,et,nt,ht):(rg(gt),y.add(gt))):nt&> instanceof cn?y.add(gt):!ht||!gt.Zc()||gt instanceof wn||(rg(gt),y.add(gt)))}}function rg(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Ji.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new $e),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Ji.prototype.ex=function(a){var y=new gn;return a instanceof Ye?(Fh(this,y,a.nodes,!0,null,!0,!0,!0),Fh(this,y,a.links,!0,null,!0,!0,!0),Fh(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof Un?Fh(this,y,a.memberParts,!1,null,!0,!0,!0):Fh(this,y,a.iterator,!1,null,!0,!0,!0),y},Ji.prototype.initialOrigin=function(a){var y=this.group;if(y!==null){var x=y.position.copy();return(isNaN(x.x)||isNaN(x.y))&&x.set(a),y=y.placeholder,y!==null&&(x=y.ga(vo),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},qe.Object.defineProperties(Ji.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},group:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a,a!==null&&(this.H=a.diagram))}},isOngoing:{get:function(){return this.sn},set:function(a){this.sn!==a&&(this.sn=a)}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a,a||(this.xn=!0)}},isViewportSized:{get:function(){return this.yn},set:function(a){this.yn!==a&&(this.yn=a)&&this.C()}},isRouting:{get:function(){return this.vn},set:function(a){this.vn!==a&&(this.vn=a)}},isRealtime:{get:function(){return this.un},set:function(a){this.un!==a&&(this.un=a)}},isValidLayout:{get:function(){return this.xn},set:function(a){this.xn!==a&&(this.xn=a,a||(a=this.diagram,a!==null&&(a.xh=!0)))}},network:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,a!==null&&(a.layout=this))}},boundsComputation:{get:function(){return this.Em},set:function(a){this.Em!==a&&(this.Em=a,this.C())}},arrangementOrigin:{get:function(){return this.Am},set:function(a){this.Am.D(a)||(this.Am.assign(a),this.C())}}}),Ji.prototype.collectParts=Ji.prototype.ex,Ji.prototype.getLayoutBounds=Ji.prototype.ni,Ji.prototype.invalidateLayout=Ji.prototype.C,Ji.className="Layout";function Di(a){qi(this),this.Sc=a,this.wf=new gn,this.ye=new gn,this.Es=new Rn,this.zs=new Rn}Di.prototype.clear=function(){if(this.wf)for(var a=this.wf.iterator;a.next();)a.value.clear();if(this.ye)for(a=this.ye.iterator;a.next();)a.value.clear();this.wf=new gn,this.ye=new gn,this.Es=new Rn,this.zs=new Rn},Di.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutNetwork"+(this.layout!==null?"("+this.layout.toString()+")":"");if(0>=a)return y;if(y+=" vertexes: "+this.wf.count+" edges: "+this.ye.count,1a?a=0:1a?a=0:1=a&&ti(a,"> 0",Ni,"maxLines"),Al(this),this.da.Jq=a,this.v(),this.g("maxLines",y,a))}},metrics:{get:function(){return{arrSize:this.Qc!==null?this.Qc:[this.Cb],arrText:this.Qb!==null?this.Qb:[this.ze],maxLineWidth:this.Cb,fontHeight:this.df}}},choices:{get:function(){return this.Gm},set:function(a){var y=this.Gm;y!==a&&(this.Gm=a,this.g("choices",y,a))}}});var _m=null,Om=null,Lv=new sn(Ni,"None",0),b1=new sn(Ni,"WrapFit",1),Tv=new sn(Ni,"WrapDesiredSize",2),P1=new sn(Ni,"WrapBreakAll",3),_v=new sn(Ni,"OverflowClip",0),jm=new sn(Ni,"OverflowEllipsis",1),Vp=new sn(Ni,"FormatTrim",0),C1=new sn(Ni,"FormatNone",0),ww=/[ \u200b\u00ad]/,Ov=new si,E1=0,Nm=new si,jv=0,Yp="...",A1="",xs=null,Dm=!1;Ni.className="TextBlock";function Nv(){this.nc=!1,this.Hd=null,this.Xf=an,this.gq=Vp,this.Jq=1/0,this.$q=_v,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=yl,this.$r=Tv}Nv.prototype.copy=function(){var a=new Nv;return a.Hd=this.Hd,a.Xf=this.Xf,a.gq=this.gq,a.Jq=this.Jq,a.$q=this.$q,a.Dr=this.Dr,a.Er=this.Er,a.Or=this.Or,a.Pr=this.Pr,a.Qr=this.Qr,a.vj=this.vj,a.Yr=this.Yr,a.$r=this.$r,a},Ni.getEllipsis=function(){return Yp},Ni.setEllipsis=function(a){Yp=a,Nm=new si,jv=0},Ni.getBaseline=function(){return _m},Ni.setBaseline=function(a){_m=a},Ni.getUnderline=function(){return Om},Ni.setUnderline=function(a){Om=a},Ni.isValidFont=function(a){if(Dm||(xs=gr?new _a(null).context:null,Dm=!0),xs===null)return!0;var y=xs.font;if(a===y||a==="10px sans-serif")return!0;xs.font="10px sans-serif",xs.font=a;var x=xs.font;if(x!=="10px sans-serif")return xs.font=y,!0;xs.font="19px serif";var b=xs.font;return xs.font=a,x=xs.font,xs.font=y,x!==b},Ni.FormatNone=C1,Ni.FormatTrim=Vp,Ni.None=Lv,Ni.OverflowClip=_v,Ni.OverflowEllipsis=jm,Ni.WrapBreakAll=P1,Ni.WrapDesiredSize=Tv,Ni.WrapFit=b1;function Hl(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Hl.prototype.copy=function(){var a=new Hl;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},Hl.className="GradElementSettings";function bs(a,y){ze.call(this),this.Eg=null,this.qo="",this.Xg=ch,this.Nk=ln,this.Zg=this.Hd=null,this.Mk=wi,this.Xf=an,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,typeof a=="string"?this.source=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}var bd;en(bs,ze),bs.prototype.cloneProtected=function(a){ze.prototype.cloneProtected.call(this,a),a.qo=this.qo,a.element=this.Eg,a.Xg=this.Xg.J(),a.Nk=this.Nk,a.Xf=this.Xf,a.Hd=this.Hd,a.Zg=this.Zg,a.Mk=this.Mk.J(),a.en=this.en,a.rl=this.rl},bs.prototype.qb=function(a){a===an||a===kn||a===ni?this.imageStretch=a:ze.prototype.qb.call(this,a)},bs.prototype.toString=function(){return"Picture("+this.source+")#"+Kr(this)};function Pd(a){a===void 0&&(a=""),a!==""?bd[a]&&(delete bd[a],Im--):(bd=new si,Im=0)}function M1(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var tt=b.value;tt.N();var et=y.getAttribute("src")||"",nt=tt.Og.I(et);if(nt!==null)for(var ht=nt.length,gt=0;gt=b.width&&(et=et+Zt.offsetX+(Nt*Zt.x-b.width*Zt.x)),zt>=b.height&&(nt=nt+Zt.offsetY+(zt*Zt.y-b.height*Zt.y)),gt=Math.min(b.width,Nt),ht=Math.min(b.height,zt);break;case ln:Nt=b.width,zt=b.height;break;case kn:case ni:Yt===kn?(Yt=Math.min(b.height/zt,b.width/Nt),Nt*=Yt,zt*=Yt):Yt===ni&&(Yt=Math.max(b.height/zt,b.width/Nt),Nt*=Yt,zt*=Yt,Nt>=b.width&&(et=(et+Zt.offsetX+(Nt*Zt.x-b.width*Zt.x)/Nt)*gt),zt>=b.height&&(nt=(nt+Zt.offsetY+(zt*Zt.y-b.height*Zt.y)/zt)*ht),gt*=1/(Nt/b.width),ht*=1/(zt/b.height),Nt=b.width,zt=b.height)}Yt=this.Df()*y.scale;var oe=Nt*Yt*zt*Yt,Pe=gt*ht/oe,pe=x.__goCache;Yt=null;var Le=xw;if(!tt){if(x.sq&&pe!==void 0&&4Le*Le)for(pe.gi===null&&(L1(pe,4,bt,Pt,x),L1(pe,16,bt,Pt,x)),tt=pe.gi,bt=tt.length,Pt=0;Pta)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,x/3);var b="rr"+y+","+x+","+a,tt=Ge.Mf[b];if(tt!==void 0)return tt;var et=a*Ge.wg;return tt=new pn().add(new to(a,0,!0).add(new gi(Gi,y-a,0)).add(new gi(Mo,y,a,y-et,0,y,et)).add(new gi(Gi,y,x-a)).add(new gi(Mo,y-a,x,y,x-et,y-et,x)).add(new gi(Gi,a,x)).add(new gi(Mo,0,x-a,et,x,0,x-et)).add(new gi(Gi,0,a)).add(new gi(Mo,a,0,0,et,et,0).close())),1tt.x&&a.y>tt.y&&a.righttt.x&&y.y>tt.y&&y.right=x.maxSelectionCount)){this.G^=4096;var b=!1;if(x!==null){b=x.skipsUndoManager,x.skipsUndoManager=!0;var tt=x.selection;tt.ka(),a?tt.add(this):tt.remove(this),tt.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),x!==null&&(x.$b(),x.skipsUndoManager=b)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(a){var y=(this.G&524288)!==0;if(y!==a){this.G^=524288;var x=this.diagram;x!==null&&(x=x.highlighteds,x.ka(),a?x.add(this):x.remove(this),x.freeze()),this.g("isHighlighted",y,a),this.N(),a=this.highlightedChanged,a!==null&&a(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(a){var y=(this.G&8192)!==0;y!==a&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",y,a),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(a){var y=(this.G&262144)!==0;y!==a&&(this.G^=262144,this.g("isAnimated",y,a))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(a){var y=this.highlightedChanged;y!==a&&(Ps(this),this.P.oq=a,this.g("highlightedChanged",y,a))}},selectionObjectName:{get:function(){return this.P!==null?this.P.vr:""},set:function(a){var y=this.selectionObjectName;y!==a&&(Ps(this),this.P.vr=a,this.Ug=null,this.g("selectionObjectName",y,a))}},selectionAdornmentTemplate:{get:function(){return this.P!==null?this.P.tr:null},set:function(a){var y=this.selectionAdornmentTemplate;y!==a&&(Ps(this),this.P.tr=a,this.g("selectionAdornmentTemplate",y,a))}},selectionObject:{get:function(){if(this.Ug===null){var a=this.selectionObjectName;a!==null&&a!==""?(a=this.fb(a),a!==null?this.Ug=a:this.Ug=this):this instanceof cn?(a=this.path,a!==null?this.Ug=a:this.Ug=this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return this.P!==null?this.P.ur:null},set:function(a){var y=this.selectionChanged;y!==a&&(Ps(this),this.P.ur=a,this.g("selectionChanged",y,a))}},resizeAdornmentTemplate:{get:function(){return this.P!==null?this.P.fr:null},set:function(a){var y=this.resizeAdornmentTemplate;y!==a&&(Ps(this),this.P.fr=a,this.g("resizeAdornmentTemplate",y,a))}},resizeObjectName:{get:function(){return this.P!==null?this.P.hr:""},set:function(a){var y=this.resizeObjectName;y!==a&&(Ps(this),this.P.hr=a,this.g("resizeObjectName",y,a))}},resizeObject:{get:function(){var a=this.resizeObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},resizeCellSize:{get:function(){return this.P!==null?this.P.gr:Jr},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),Ps(this),this.P.gr=a,this.g("resizeCellSize",y,a))}},rotateAdornmentTemplate:{get:function(){return this.P!==null?this.P.ir:null},set:function(a){var y=this.rotateAdornmentTemplate;y!==a&&(Ps(this),this.P.ir=a,this.g("rotateAdornmentTemplate",y,a))}},rotateObjectName:{get:function(){return this.P!==null?this.P.jr:""},set:function(a){var y=this.rotateObjectName;y!==a&&(Ps(this),this.P.jr=a,this.g("rotateObjectName",y,a))}},rotateObject:{get:function(){var a=this.rotateObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},rotationSpot:{get:function(){return this.P!==null?this.P.lr:oo},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),Ps(this),this.P.lr=a,this.g("rotationSpot",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;y!==a&&(this.ec=a,this.g("text",y,a))}},containingGroup:{get:function(){return this.Ah},set:function(a){if(this.Zc()){var y=this.Ah;if(y!==a){a===null||this!==a&&!a.Td(this)||(this===a&&We("Cannot make a Group a member of itself: "+this.toString()),We("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?Yv(y,this):this instanceof Un&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Vv(a,this):this instanceof Un&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var b=this.data,tt=x.model;if(b!==null&&tt.Xj()){var et=tt.wa(a!==null?a.data:null);tt.mp(b,et)}}if(b=this.containingGroupChanged,b!==null&&(tt=!0,x!==null&&(tt=x.aa,x.aa=!0),b(this,y,a),x!==null&&(x.aa=tt)),this instanceof Un){for(x=new gn,Ih(x,this,!0,0,!0),x=x.iterator;x.next();)if(b=x.value,b instanceof wn)for(b=b.linksConnected;b.next();)Ad(b.value)}if(this instanceof wn){for(x=this.linksConnected;x.next();)Ad(x.value);x=this.labeledLink,x!==null&&Ad(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&$f(y,-1,a))}}else We("cannot set the Part.containingGroup of a Link or Adornment")}},containingGroupChanged:{get:function(){return this.P!==null?this.P.Kp:null},set:function(a){var y=this.containingGroupChanged;y!==a&&(Ps(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof wn&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(Ps(this),this.P.Cq=a,this.g("layoutConditions",y,a))}},dragComputation:{get:function(){return this.P!==null?this.P.Up:null},set:function(a){var y=this.dragComputation;y!==a&&(Ps(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:Pa},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),Ps(this),this.P.zr=a,this.N(),this.g("shadowOffset",y,a))}},shadowColor:{get:function(){return this.P!==null?this.P.yr:"gray"},set:function(a){var y=this.shadowColor;y!==a&&(Ps(this),this.P.yr=a,this.N(),this.g("shadowColor",y,a))}},shadowBlur:{get:function(){return this.P!==null?this.P.Vg:4},set:function(a){var y=this.shadowBlur;y!==a&&(Ps(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),_n.prototype.invalidateLayout=_n.prototype.C,_n.prototype.findCommonContainingGroup=_n.prototype.px,_n.prototype.isMemberOf=_n.prototype.Td,_n.prototype.findTopLevelPart=_n.prototype.sz,_n.prototype.findSubGraphLevel=_n.prototype.oz,_n.prototype.ensureBounds=_n.prototype.Va,_n.prototype.getDocumentBounds=_n.prototype.mi,_n.prototype.findObject=_n.prototype.fb,_n.prototype.moveTo=_n.prototype.moveTo,_n.prototype.invalidateAdornments=_n.prototype.Wb,_n.prototype.clearAdornments=_n.prototype.Ej,_n.prototype.removeAdornment=_n.prototype.Jf,_n.prototype.addAdornment=_n.prototype.bh,_n.prototype.findAdornment=_n.prototype.Pj,_n.prototype.updateTargetBindings=_n.prototype.La;var G1=!1;_n.className="Part",_n.LayoutNone=0,_n.LayoutAdded=1,_n.LayoutRemoved=2,_n.LayoutShown=4,_n.LayoutHidden=8,_n.LayoutNodeSized=16,_n.LayoutGroupLayout=32,_n.LayoutNodeReplaced=64,_n.LayoutStandard=127,_n.LayoutAll=16777215;function di(a,y){a===void 0||a instanceof Wr||typeof a=="string"?_n.call(this,a):(_n.call(this),a&&(y=a)),this.G&=-257,this.Jg="Adornment",this.ue=null,this.Aw=0,this.Uw=!1,this.j=this.$a=null,y&&Object.assign(this,y)}en(di,_n),di.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},di.prototype.updateRelationshipsFromData=function(){},di.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof cn&&y instanceof Wn){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var b=0;ba&&(a=1);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new gn;x.add(this),Z1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Hu),y.Ue=!1}};function Z1(a,y,x,b,tt,et,nt){if(1a&&(a=2);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new gn;x.add(this),J1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Hu),y.Ue=!1}};function J1(a,y,x,b,tt,et,nt){for(var ht=et===a?!1:a.isTreeExpanded,gt=x?a.Mo():a.Sd(),bt={};gt.next();){var Pt=gt.value;if(Pt.isTreeLink&&(ht||Pt.fd||Pt.bb(),Pt=Pt.To(a),Pt!==null&&Pt!==a&&!y.contains(Pt))){if(y.add(Pt),!ht){Pt.Zb(!0),Pt.oh();var Nt=x?Pt.Oo():Pt.Po();bt.vv=a,Nt.all(function(zt){return function(Yt){return Yt===zt.vv||!Yt.isTreeExpanded}}(bt))&&tt.Cj(Pt,et)}(2tt&&(tt=ht.right),ht.bottom>et&&(et=ht.bottom)}}return isFinite(x)&&isFinite(b)?a.h(x,b,tt-x,et-b):(y=y.location,a.h(y.x,y.y,0,0)),a},qe.Object.defineProperties(as.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Yn(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),as.className="Placeholder";function cn(a){_n.call(this,un.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=ls,this.Om=0,this.Qm=ls,this.Rm=NaN,this.qj=Jv,this.po=.5,this.wd=null,this.Nb=new vn().freeze(),this.Tg=this.Mg=null,this.ml=new $e,this.ua=new pn,this.u=this.o=this.Sf=this.Wf=null,this.su=new Ee,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}en(cn,_n),cn.prototype.cloneProtected=function(a){_n.prototype.cloneProtected.call(this,a),a.Qa=this.Qa&-113,a.ff=this.ff,a.gn=this.gn,a.vf=this.vf,a.uo=this.uo,a.qk=this.qk,a.Om=this.Om,a.Qm=this.Qm,a.Rm=this.Rm,a.qj=this.qj,a.po=this.po,this.ba!==null&&(a.ba=this.ba.copy())},ee=cn.prototype,ee.Af=function(a){_n.prototype.Af.call(this,a),this.ff=a.ff,this.vf=a.vf,a.Mg=null,a.bb(),a.Sf=this.Sf;var y=a.fromPort;y!==null&&Us(y),a=a.toPort,a!==null&&Us(a)},ee.qb=function(a){a.classType===cn?(a.value&2)===2?this.routing=a:a===ia||a===Ju||a===kd?this.curve=a:a===Qp||a===Zm||a===Qm?this.adjusting=a:a!==Jv&&a!==ls&&We("Unknown Link enum value for a Link property: "+a):_n.prototype.qb.call(this,a)},ee.Xc=function(){this.ba===null&&(this.ba=new Ip)},ee.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),os(a)||Nh(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),os(a)||Nh(a)))},ee.zv=function(){return!1},ee.Av=function(){},ee.Zc=function(){return!1},cn.prototype.computeAngle=function(a,y,x){return cn.computeAngle(y,x)},cn.computeAngle=function(a,y){switch(a){default:case ls:a=0;break;case Jp:a=y;break;case qp:a=y+90;break;case $p:a=y-90;break;case qv:a=y+180;break;case Jm:a=Ge.bp(y),90a&&(a-=180);break;case tg:a=Ge.bp(y+90),90a&&(a-=180);break;case eg:a=Ge.bp(y-90),90a&&(a-=180);break;case qm:if(a=Ge.bp(y),45a||225a)return 0;90a&&(a-=180)}return Ge.bp(a)};function Ad(a){var y=a.fromNode,x=a.toNode,b=null;if(y!==null?b=x!==null?y.px(x):y.containingGroup:x!==null?b=x.containingGroup:b=null,y=b,x=a.Ah,x!==y){x!==null&&Yv(x,a),a.Ah=y,y!==null&&Vv(y,a);var tt=a.containingGroupChanged;if(tt!==null){var et=!0,nt=a.diagram;nt!==null&&(et=nt.aa,nt.aa=!0),tt(a,x,y),nt!==null&&(nt.aa=et)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=b}ee=cn.prototype,ee.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&_n.prototype.oh.call(this)},ee.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},ee.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function tS(a,y){a.wd===null&&(a.wd=new gn),a.wd.add(y),a.v()}ee.Vo=function(a){if(_n.prototype.Vo.call(this,a),Tc(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Gm(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Gm(x,this,b)}Xp(this)}},ee.Wo=function(a){if(_n.prototype.Wo.call(this,a),Tc(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Um(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Um(x,this,b)}Zp(this)}},ee.Lj=function(){if(this.fd=!0,this.wd!==null){var a=this.diagram;if(a!==null)for(var y=this.wd.copy().iterator;y.next();)a.remove(y.value)}this.data!==null&&(a=this.diagram,a!==null&&a.partManager.removeDataForLink(this))},cn.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},cn.prototype.move=function(a,y){var x=y?this.location:this.position,b=x.x;isNaN(b)&&(b=0);var tt=x.y;for(isNaN(tt)&&(tt=0),b=a.x-b,tt=a.y-tt,y===!0?_n.prototype.move.call(this,a,!1):(a=Ee.allocAt(x.x+b,x.y+tt),_n.prototype.move.call(this,a,!1),Ee.free(a)),Qu(this,b,tt),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+b,x.y+tt)},cn.prototype.canRelinkFrom=function(){if(!this.relinkableFrom)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},cn.prototype.canRelinkTo=function(){if(!this.relinkableTo)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},cn.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(gl),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var x=this.i(0),b=this.i(1);return a.h((x.x+b.x)/2,(x.y+b.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===ia))return this.ua.Pu(.5,a),a.add(this.i(0)),x=this.ua.figures.first(),a.offset(-x.startX,-x.startY),a;if(this.computeCurve()===ia){if(y===3){x=this.i(0),b=this.i(1);var tt=this.i(2);return Ge.ax(x.x,x.y,b.x,b.y,b.x,b.y,tt.x,tt.y,a),a}if(b=(y-1)/3|0,x=3*(b/2|0),b%2===1){b=this.i(x),tt=this.i(x+1);var et=this.i(x+2);x=this.i(x+3),Ge.ax(b.x,b.y,tt.x,tt.y,et.x,et.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var nt=this.flattenedLengths;for(x=this.flattenedTotalLength,tt=et=b=0;bx/2));)b+=tt,et++;return y=this.i(et),et=this.i(et+1),1>Math.abs(y.x-et.x)?y.y>et.y?a.h(y.x,y.y-(x/2-b)):a.h(y.x,y.y+(x/2-b)):1>Math.abs(y.y-et.y)?y.x>et.x?a.h(y.x-(x/2-b),y.y):a.h(y.x+(x/2-b),y.y):(x=(x/2-b)/tt,a.h(y.x+x*(et.x-y.x),y.y+x*(et.y-y.y))),a},cn.prototype.computeMidAngle=function(){var a=this.pointsCount;if(2>a)return NaN;if(a===2)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===ia))return this.ua.wx(.5);if(this.computeCurve()===ia&&4<=a){var y=(a-1)/3|0,x=3*(y/2|0);if(y%2===1){x=Math.floor(x),a=this.i(x),y=this.i(x+1);var b=this.i(x+2);return x=this.i(x+3),Ge.My(a.x,a.y,y.x,y.y,b.x,b.y,x.x,x.y)}if(0b/2));)tt+=et,x++;if(y=this.i(x),b=this.i(x+1),1>Math.abs(y.x-b.x)&&1>Math.abs(y.y-b.y)){if(0Math.abs(y.x-b.x))return y.y>b.y?270:90;if(1>Math.abs(y.y-b.y))return y.x>b.x?180:0}return y.ab(b)},ee=cn.prototype,ee.i=function(a){return this.Nb.s[a]},ee.dd=function(a,y){this.Nb.cd(a,y)},ee.L=function(a,y,x){this.Nb.cd(a,new Ee(y,x))},ee.Kz=function(a,y){this.Nb.Gb(a,y)},ee.m=function(a,y,x){this.Nb.Gb(a,new Ee(y,x))},ee.ne=function(a){this.Nb.add(a)},ee.yf=function(a,y){this.Nb.add(new Ee(a,y))},ee.pv=function(a){this.Nb.mb(a)},ee.Fj=function(){this.Nb.clear()};function Qu(a,y,x){if(y!==0||x!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,x),a.defaultToPoint&&a.defaultToPoint.offset(y,x);else{for(var b=a.fd,tt=new vn,et=a.Nb.iterator;et.next();){var nt=et.value;tt.add(new Ee(nt.x+y,nt.y+x).freeze())}tt.freeze(),et=a.Nb,a.Nb=tt,nt=a.diagram,isNaN(y)||isNaN(x)||nt!==null&&nt.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+x),a.pa.h(a.pa.x+y,a.pa.y+x),rs(a)),b?Wm(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),nt!==null&&nt.animationManager.zb&&qf(nt.animationManager,a,tt),a.g("points",et,tt)}}ee.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},ee.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,b=1/0,tt=a.s,et=tt.length,nt=0;ntbt&&(Nt=-Nt),oe=(0>gt?-1:1)*Nt+Yt,Pe=Pt*(oe-Yt)+Zt),Yt=et.x+2*ht/3,Zt=et.y+2*gt/3;var pe=Yt,Le=Zt;Ge.B(gt,0)?Le=0gt?-1:1)*Nt+Yt,Le=Pt*(pe-Yt)+Zt),this.Fj(),this.ne(et),this.yf(oe,Pe),this.yf(pe,Le),this.ne(zt),this.dd(0,this.getLinkPoint(a,y,nt,!0,!1,b,tt)),this.dd(3,this.getLinkPoint(b,tt,x,!1,!1,a,y))}else et=b,zt=tt,b=this.getLinkPoint(a,y,nt,!0,!1,et,zt),tt=this.getLinkPoint(et,zt,x,!1,!1,a,y),this.hasCurviness()?(zt=tt.x-b.x,x=tt.y-b.y,nt=this.computeCurviness(),a=b.x+zt/2,y=b.y+x/2,et=a,ht=y,Ge.B(x,0)?ht=0nt&&(et=-et),et=(0>x?-1:1)*et+a,ht=zt*(et-a)+y),this.ne(b),this.yf(et,ht),this.ne(tt)):(this.ne(b),this.ne(tt),ht=$e.alloc(),y.mi(ht),gt=ht.ca(tt),zt.mi(ht),bt=ht.ca(b),(gt||bt)&&(nt=y.ga(Ym(nt),new Ee),this.dd(0,this.getLinkPointFromPoint(a,y,nt,tt,!0,nt)),x=zt.ga(Ym(x),new Ee),this.dd(1,this.getLinkPointFromPoint(et,zt,x,b,!1,x))),$e.free(ht))}else{Nt=this.isAvoiding,zt&&(Pt&&Nt||bt)&&this.Fj();var je=bt?this.computeCurviness():0;Nt=this.getLinkPoint(a,y,nt,!0,Pt,b,tt),Yt=oe=Zt=0,(Pt||!ht||bt)&&(Pe=this.computeEndSegmentLength(a,y,nt,!0),Yt=this.getLinkDirection(a,y,Nt,nt,!0,Pt,b,tt),bt&&(ht||nt.D(x)||!Pt&&nt.x+x.x===1&&nt.y+x.y===1)&&(Yt-=Pt?90:30,0>je&&(Yt-=180)),0>Yt?Yt+=360:360<=Yt&&(Yt-=360),bt&&(Pe+=Math.abs(je)*(Pt?1:2)),Yt===0?Zt=Pe:Yt===90?oe=Pe:Yt===180?Zt=-Pe:Yt===270?oe=-Pe:(Zt=Pe*Math.cos(Yt*Math.PI/180),oe=Pe*Math.sin(Yt*Math.PI/180)),nt.Mc()&&bt&&(Pe=y.ga(wi,Ee.alloc()),pe=Ee.allocAt(Pe.x+1e3*Zt,Pe.y+1e3*oe),this.getLinkPointFromPoint(a,y,Pe,pe,!0,Nt),Ee.free(Pe),Ee.free(pe))),Pe=this.getLinkPoint(b,tt,x,!1,Pt,a,y);var De=Le=pe=0;if(Pt||!gt||bt){var Re=this.computeEndSegmentLength(b,tt,x,!1);De=this.getLinkDirection(b,tt,Pe,x,!1,Pt,a,y),bt&&(gt||nt.D(x)||!Pt&&nt.x+x.x===1&&nt.y+x.y===1)&&(De+=Pt?0:30,0>je&&(De+=180)),0>De?De+=360:360<=De&&(De-=360),bt&&(Re+=Math.abs(je)*(Pt?1:2)),De===0?pe=Re:De===90?Le=Re:De===180?pe=-Re:De===270?Le=-Re:(pe=Re*Math.cos(De*Math.PI/180),Le=Re*Math.sin(De*Math.PI/180)),x.Mc()&&bt&&(x=tt.ga(wi,Ee.alloc()),nt=Ee.allocAt(x.x+1e3*pe,x.y+1e3*Le),this.getLinkPointFromPoint(b,tt,x,nt,!1,Pe),Ee.free(x),Ee.free(nt))}x=Nt,(Pt||!ht||bt)&&(x=new Ee(Nt.x+Zt,Nt.y+oe)),nt=Pe,(Pt||!gt||bt)&&(nt=new Ee(Pe.x+pe,Pe.y+Le)),!zt&&!Pt&&ht&&3Math.abs(y.y-a.y)?(y.x>=a.x?y.x=a.x+9e9:y.x=a.x-9e9,y.y=a.y):(y.y>=a.y?y.y=a.y+9e9:y.y=a.y-9e9,y.x=a.x),y}cn.prototype.getLinkPointFromPoint=function(a,y,x,b,tt,et){if(et===void 0&&(et=new Ee),a===null||y===null)return et.assign(x),et;if(a.isVisible()||(tt=a.findVisibleNode(),tt!==null&&tt!==a&&(y=tt.port)),a=null,tt=y.panel,tt===null||tt.se()||(tt=tt.panel),tt===null){tt=b.x,b=b.y;var nt=x.x;x=x.y}else{a=tt.oe,tt=1/(a.m11*a.m22-a.m12*a.m21),nt=a.m22*tt;var ht=-a.m12*tt,gt=-a.m21*tt,bt=a.m11*tt,Pt=tt*(a.m21*a.dy-a.m22*a.dx),Nt=tt*(a.m12*a.dx-a.m11*a.dy);tt=b.x*nt+b.y*gt+Pt,b=b.x*ht+b.y*bt+Nt,nt=x.x*nt+x.y*gt+Pt,x=x.x*ht+x.y*bt+Nt}return y.Sj(tt,b,nt,x,et),a!==null&&et.transform(a),et};function Vm(a,y){var x=y.Zn;return x===null&&(x=new xf,x.port=y,x.node=y.part,y.Zn=x),lS(x,a)}cn.prototype.getLinkPoint=function(a,y,x,b,tt,et,nt,ht){if(ht===void 0&&(ht=new Ee),x.sb()&&!Md(x))return y.ga(x,ht),ht;if(x.$c()){var gt=Vm(this,y);if(gt!==null){if(ht.assign(gt.Zo),tt&&this.routing===nS){var bt=Vm(this,nt);if(bt!==null&>.Gl=Pt.y&&a.y<=Pt.y+Pt.height?ht.y=a.y:(x.Hf(ml)||x.Hf(Ea))&&a.x>=Pt.x&&a.x<=Pt.x+Pt.width&&(ht.x=a.x),Ee.free(gt),Ee.free(bt)}}return ht}}return x=y.ga(Ym(x),Ee.alloc()),this.pointsCount>(tt?6:2)?(nt=b?this.i(1):this.i(this.pointsCount-2),tt&&(nt=Kv(x,nt.copy()))):(gt=this.computeSpot(!b,nt),et=Ee.alloc(),nt=nt.ga(Ym(gt),et),tt&&(nt=Kv(x,nt)),Ee.free(et)),this.getLinkPointFromPoint(a,y,x,nt,b,ht),Ee.free(x),ht},cn.prototype.getLinkDirection=function(a,y,x,b,tt,et,nt,ht){t:if(b.sb())var gt=b.x>b.y?b.x>1-b.y?0:b.x<1-b.y?270:315:b.x1-b.y?90:b.x<1-b.y?180:135:.5>b.x?225:.5(et?6:2)?(ht=tt?this.i(1):this.i(this.pointsCount-2),ht=et?Kv(gt,ht.copy()):x):(x=Ee.alloc(),ht=ht.ga(wi,x),Ee.free(x)),x=Math.abs(ht.x-gt.x)>Math.abs(ht.y-gt.y)?ht.x>=gt.x?0:180:ht.y>=gt.y?90:270,Ee.free(gt),gt=x}return b.Mc()&&nt.Td(a)&&(gt+=180,360<=gt&&(gt-=360)),Md(b)||(a=y.li(),a===0)||(45<=a&&135>a?gt+=90:135<=a&&225>a?gt+=180:225<=a&&315>a&&(gt+=270),360<=gt&&(gt-=360)),gt},cn.prototype.computeEndSegmentLength=function(a,y,x,b){return y!==null&&x.$c()&&(a=Vm(this,y),a!==null)?a.Ju:(a=b?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=b?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},cn.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=wi:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===oo?$r:y)):(a=y||this.toPort,a===null?a=wi:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===oo?$r:y)),a};function Md(a){return a===$r||a.x===.5&&a.y===.5}function Ym(a){return a.x===.5&&a.y===.5?a:wi}cn.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==ls&&4zt.width||Nt.y>zt.height||0>Nt.x+Nt.width||0>Nt.y+Nt.height)){if(Nt=Xn.alloc(),Nt.set(nt),Pt instanceof un)ht=Pt.Cf(a,y,x,b,tt,Nt);else if(this.path===Pt){if(Pt instanceof Wn)if(ht=a,zt=b,Pt.pickable===!1)ht=!1;else if(Nt.multiply(Pt.transform),zt)t:{var Yt=ht,Zt=Nt;if(Pt.fh(Yt,Zt))ht=!0;else{if(Zt===void 0&&(Zt=Pt.transform,Yt.Re(Pt.actualBounds))){ht=!0;break t}ht=Yt.left,zt=Yt.right;var oe=Yt.top;Yt=Yt.bottom;var Pe=Ee.alloc(),pe=Ee.alloc(),Le=Ee.alloc(),je=Xn.alloc();je.set(Zt),je.bv(Pt.transform),je.Vj(),pe.x=zt,pe.y=oe,pe.transform(je),Pe.x=ht,Pe.y=oe,Pe.transform(je),Zt=!1,kc(Pt,Pe,pe,Le)?Zt=!0:(Pe.x=zt,Pe.y=Yt,Pe.transform(je),kc(Pt,Pe,pe,Le)?Zt=!0:(pe.x=ht,pe.y=Yt,pe.transform(je),kc(Pt,Pe,pe,Le)?Zt=!0:(Pe.x=ht,Pe.y=oe,Pe.transform(je),kc(Pt,Pe,pe,Le)&&(Zt=!0)))),Xn.free(je),Ee.free(Pe),Ee.free(pe),Ee.free(Le),ht=Zt}}else ht=Pt.fh(ht,Nt)}else ht=no(Pt,a,b,Nt);ht&&(zt=Pt,y!==null&&(zt=y(Pt)),zt&&(x===null||x(zt))&&tt.add(zt)),Xn.free(Nt)}}}return et===void 0&&Xn.free(nt),ht||this.background!==null||this.areaBackground!==null}return et===void 0&&Xn.free(nt),!1},cn.prototype.computeCurve=function(){if(this.Wf===null){var a=this.fromPort,y=this.isOrthogonal;this.Wf=a!==null&&a===this.toPort&&!y}return this.Wf?ia:this.curve},cn.prototype.computeCorner=function(){if(this.curve===ia)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},cn.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,b=0;bgt?-Math.PI/2:Math.PI/2;else Pt=Math.atan(gt/Math.abs(ht)),0>ht&&(Pt=Math.PI-Pt);nt=y.x;var Nt=y.y;ht=b.x-nt;var zt=b.y-Nt;for(gt=Math.sqrt(ht*ht+zt*zt),Ge.$(ht,0)?zt=0>zt?-Math.PI/2:Math.PI/2:(zt=Math.atan(zt/Math.abs(ht)),0>ht&&(zt=Math.PI-zt)),bt=gt/bt,Pt=zt-Pt,this.dd(a,y),a+=1;agt?-Math.PI/2:Math.PI/2:(gt=Math.atan(gt/Math.abs(ht)),0>ht&&(gt=Math.PI-gt)),ht=gt+Pt,y*=bt,this.L(a,nt+y*Math.cos(ht),Nt+y*Math.sin(ht)));this.dd(x,b)}}return!0;case Qm:if(et=this.i(a),Nt=this.i(x),!et.Xa(y)||!Nt.Xa(b)){tt=et.x,et=et.y,nt=Nt.x,Nt=Nt.y,bt=(nt-tt)*(nt-tt)+(Nt-et)*(Nt-et),ht=y.x,Pt=y.y,gt=b.x,zt=b.y;var Yt=1;if(gt-ht!==0){var Zt=(zt-Pt)/(gt-ht);Yt=Math.sqrt(1+1/(Zt*Zt))}else Zt=9e9;for(this.dd(a,y),a+=1;ay?y+=360:360<=y&&(y-=360),0>b?b+=360:360<=b&&(b-=360);var nt=b;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,b=315<=b||45>b?0:45<=b&&135>b?90:135<=b&&225>b?180:270;var ht=tt.actualBounds.copy(),gt=et.actualBounds.copy();if(ht.w()&>.w()){ht.Bc(ng,ng),gt.Bc(ng,ng),ht.Ye(a),gt.Ye(x);var bt=Ee.alloc(),Pt=Ee.alloc();y===0?x.x>a.x||b===270&&x.ya.x||b===90&&x.y>a.y&>.right>a.x?(bt.h(x.x,a.y),Pt.h(x.x,(a.y+x.y)/2),b===180?(bt.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),Pt.x=bt.x,Pt.y=x.y):b===270&&x.ya.y?(bt.x=a.xgt.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):gt.right,Pt.x=bt.x,Pt.y=x.y):b===0&&a.xgt.top&&a.yht.bottom)&&(b===180&&(gt.ca(a)||ht.ca(x))?bt.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.ya.y&&(b===180||b===270)&&(bt.y=this.computeMidOrthoPosition(a.x,ht.bottom,x.x,Math.min(x.y,gt.top),!0)),Pt.x=x.x,Pt.y=bt.y),bt.y>ht.top&&bt.y=ht.left&&x.x<=a.x||a.x<=gt.right&&a.x>=x.x?(b===90||b===270)&&(bt.h(Math.max((a.x+x.x)/2,a.x),a.y),Pt.h(bt.x,x.y)):(bt.y=b===270||(b===0||b===180)&&x.ya.y&>.lefta.y?(bt.x=a.x>gt.right?this.computeMidOrthoPosition(a.x,a.y,gt.right,x.y,!1):a.x>gt.left&&(b===270&&a.ygt.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):gt.left,Pt.x=bt.x,Pt.y=x.y):b===180&&a.x>gt.right&&a.y>gt.top&&a.yht.bottom)&&(b===0&&(gt.ca(a)||ht.ca(x))?bt.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.ya.y&&(b===0||b===270)&&(bt.y=this.computeMidOrthoPosition(a.x,ht.bottom,x.x,Math.min(x.y,gt.top),!0)),Pt.x=x.x,Pt.y=bt.y),bt.y>ht.top&&bt.y=a.x||a.x>=gt.left&&a.x<=x.x?(b===90||b===270)&&(bt.h(Math.min((a.x+x.x)/2,a.x),a.y),Pt.h(bt.x,x.y)):(bt.y=b===270||(b===0||b===180)&&x.ya.y||b===180&&x.xa.y||b===0&&x.x>a.x&>.bottom>a.y?(bt.h(a.x,x.y),Pt.h((a.x+x.x)/2,x.y),b===270?(bt.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),Pt.x=x.x,Pt.y=bt.y):b===180&&x.xa.x?(bt.y=a.ygt.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):gt.bottom,Pt.x=x.x,Pt.y=bt.y):b===90&&a.ygt.left&&a.xht.right)&&(b===270&&(gt.ca(a)||ht.ca(x))?bt.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.xa.x&&(b===270||b===180)&&(bt.x=this.computeMidOrthoPosition(ht.right,a.y,Math.min(x.x,gt.left),x.y,!1)),Pt.x=bt.x,Pt.y=x.y),bt.x>ht.left&&bt.x=ht.top&&x.y<=a.y||a.y<=gt.bottom&&a.y>=x.y?(b===0||b===180)&&(bt.h(a.x,Math.max((a.y+x.y)/2,a.y)),Pt.h(x.x,bt.y)):(bt.x=b===180||(b===90||b===270)&&x.xa.x&>.top=a.x?(bt.y=a.y>gt.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,gt.bottom,!0):a.y>gt.top&&(b===180&&a.xgt.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):gt.top,Pt.x=x.x,Pt.y=bt.y):b===270&&a.y>gt.bottom&&a.x>gt.left&&a.xht.right)&&(b===90&&(gt.ca(a)||ht.ca(x))?bt.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.xa.x&&(b===90||b===180)&&(bt.x=this.computeMidOrthoPosition(ht.right,a.y,Math.min(x.x,gt.left),x.y,!1)),Pt.x=bt.x,Pt.y=x.y),bt.x>ht.left&&bt.x=a.y||a.y>=gt.top&&a.y<=x.y?(b===0||b===180)&&(bt.h(a.x,Math.min((a.y+x.y)/2,a.y)),Pt.h(x.x,bt.y)):(bt.x=b===180||(b===90||b===270)&&x.x=Td&&(oS(Yt),ht.Bc(Yt.Ho*Yt.Hx,Yt.Go*Yt.Ix),sS(Yt,a,y,Nt,b,ht,!1),gt=Wl(Yt,Nt.x,Nt.y)),!Yt.abort&>this.pointsCount?(y===0||y===180?(ht.x=a.x,ht.y=Nt.y):(ht.x=Nt.x,ht.y=a.y),this.L(2,ht.x,ht.y),this.m(3,ht.x,ht.y)):(nt=this.i(3),y===0||y===180?Ge.B(ht.x,nt.x)?(ht=y===0?Math.max(ht.x,a.x):Math.min(ht.x,a.x),this.L(2,ht,a.y),this.L(3,ht,nt.y)):Ge.B(ht.y,nt.y)?(Math.abs(a.y-ht.y)<=Yt.Go/2&&(this.L(2,ht.x,a.y),this.L(3,nt.x,a.y)),this.m(2,ht.x,a.y)):this.L(2,a.x,ht.y):(y===90||y===270)&&(Ge.B(ht.y,nt.y)?(ht=y===90?Math.max(ht.y,a.y):Math.min(ht.y,a.y),this.L(2,a.x,ht),this.L(3,nt.x,ht)):Ge.B(ht.x,nt.x)?(Math.abs(a.x-ht.x)<=Yt.Ho/2&&(this.L(2,a.x,ht.y),this.L(3,a.x,nt.y)),this.m(2,a.x,ht.y)):this.L(2,ht.x,a.y))),x!==null&&(a=this.i(1),nt=this.i(2),a.x!==nt.x&&a.y!==nt.y?y===0||y===180?this.m(2,a.x,nt.y):this.m(2,nt.x,a.y):y===0||y===180?this.m(2,tt.x,x.y):this.m(2,x.x,tt.y)),Zt!==null&&(b===0||b===180?this.yf(et.x,Zt.y):this.yf(Zt.x,et.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(bt.copy()),this.ne(Pt.copy())),Ee.free(bt),Ee.free(Pt)}},cn.prototype.computeMidOrthoPosition=function(a,y,x,b,tt){var et=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(et=this.computeCurviness()),tt?(y+b)/2+et:(a+x)/2+et};function Xv(a){if(a.diagram===null||!a.isAvoiding||!ad(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=ld(a.diagram,!0,a.containingGroup,null);for(var b=1;b_c&&Wl(y,Pt,Nt)!==bt-1&&(Wl(y,x-ht,b)===bt-1?(tt=180,Pt=x-ht,Nt=b):Wl(y,x+ht,b)===bt-1?(tt=0,Pt=x+ht,Nt=b):Wl(y,x,b-gt)===bt-1?(tt=270,Pt=x,Nt=b-gt):Wl(y,x,b+gt)===bt-1&&(tt=90,Pt=x,Nt=b+gt));bt>_c&&Wl(y,Pt,Nt)===bt-1;)x=Pt,b=Nt,tt===0?Pt+=ht:tt===90?Nt+=gt:tt===180?Pt-=ht:Nt-=gt,--bt;et?bt>_c&&(tt===180||tt===0?x=Math.floor(x/ht)*ht+ht/2:(tt===90||tt===270)&&(b=Math.floor(b/gt)*gt+gt/2)):(x=Math.floor(x/ht)*ht+ht/2,b=Math.floor(b/gt)*gt+gt/2),bt>_c&&(et=tt,nt=x,Pt=b,tt===0?(et=90,Pt+=gt):tt===90?(et=180,nt-=ht):tt===180?(et=270,Pt-=gt):tt===270&&(et=0,nt+=ht),Wl(y,nt,Pt)===bt-1?Zv(a,y,nt,Pt,et,!1,et):(nt=x,Pt=b,tt===0?(et=270,Pt-=gt):tt===90?(et=0,nt+=ht):tt===180?(et=90,Pt+=gt):tt===270&&(et=180,nt-=ht),Wl(y,nt,Pt)===bt-1&&Zv(a,y,nt,Pt,et,!1,et))),a.yf(x,b)}cn.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),b=this.i(1),tt=Zr(y,a,x.x,x.y,b.x,b.y),et=0,nt=1;ntthis.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),a=this.path,a!==null)){a.ua=this.ua;for(var y=this.O.s,x=y.length,b=0;b=y&&(b=y-1),gt=this.i(b),et.x=Math.min(gt.x,et.x),et.y=Math.min(gt.y,et.y);b=et.x,gt=et.y}else{for(gt=0;gtPe?Zt>Yt?(et.x=pe-je,et.y=Yt-je,tt.x=pe+oe,tt.y=Yt+oe):(et.x=pe-je,et.y=Yt+je,tt.x=pe+oe,tt.y=Yt-oe):Zt>Yt?(et.x=pe+je,et.y=Yt-je,tt.x=pe-oe,tt.y=Yt+oe):(et.x=pe+je,et.y=Yt+je,tt.x=pe-oe,tt.y=Yt-oe)),Ge.$(Pe,pe)&&Ge.$(Yt,Zt)&&(Yt>zt?(Le>pe?(et.x=pe-je,et.y=Yt-je,tt.x=pe+oe):(et.x=pe+je,et.y=Yt-je,tt.x=pe-oe),tt.y=Yt+oe):(Le>pe?(et.x=pe-je,et.y=Yt+je,tt.x=pe+oe):(et.x=pe+je,et.y=Yt+je,tt.x=pe-oe),tt.y=Yt-oe)),(Ge.$(Pe,pe)&&Ge.$(pe,Le)||Ge.$(zt,Yt)&&Ge.$(Yt,Zt))&&(Pe=.5*(Pe+Le),zt=.5*(zt+Zt),et.x=Pe,et.y=zt,tt.x=Pe,tt.y=zt),(Nt===1||Nt===2&&Ge.$(nt.x,this.i(0).x)&&Ge.$(nt.y,this.i(0).y))&&(x.x=.5*(nt.x+bt.x),x.y=.5*(nt.y+bt.y)),Ku(ht,x.x-b,x.y-gt,et.x-b,et.y-gt,bt.x-b,bt.y-gt),y.set(et),x.set(tt),nt=bt}}bt=nt.x,nt=nt.y,Pt=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(Pt=vf(this,Pt.copy(),!1,jo)),bt=.5*(bt+Pt.x),nt=.5*(nt+Pt.y),Ku(ht,tt.x-b,tt.y-gt,bt-b,nt-gt,Pt.x-b,Pt.y-gt),Ee.free(y),Ee.free(x),Ee.free(et),Ee.free(tt)}else for(x=3;x=y&&(x=y-1),tt=this.i(x-1),nt=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(nt=vf(this,nt.copy(),!1,jo)),Ku(ht,et.x-b,et.y-gt,tt.x-b,tt.y-gt,nt.x-b,nt.y-gt);else{for(et=Ee.alloc(),et.assign(this.i(0)),tt=Ee.alloc(),tt.assign(et),nt=this.computeCorner(),Nt=1,bt=0;Nt=y-1){if(!et.D(Pt))this.computeShortLength(!1)!==0&&(Pt=vf(this,Pt.copy(),!1,jo)),yf(this,ht,-b,-gt,et,Pt,x);else if(bt===0)for(Nt=1;Ntet.x?De=zt.x-Zt:De=zt.x+Zt,pe.y>zt.y?Le=zt.y+je:Le=zt.y-je,pe=Ee.allocAt(De,Re),yf(this,ht,Nt,Pe,et,pe,oe),Ee.free(pe),Fm(ht,zt.x+Nt,zt.y+Pe,Yt+Nt,Le+Pe),et.h(Yt,Le)}else Ge.B(et.x,zt.x)&&Ge.B(zt.y,pe.y)?(Zt=Math.min(nt,Math.abs(zt.y-tt.y)/2),Zt=je=Math.min(Zt,Math.abs(pe.x-zt.x)/2),Ge.B(je,0)?(yf(this,ht,Nt,Pe,et,zt,oe),et.assign(zt)):(De=zt.x,Re=zt.y,Yt=De,Le=Re,zt.y>et.y?Re=zt.y-Zt:Re=zt.y+Zt,pe.x>zt.x?Yt=zt.x+je:Yt=zt.x-je,pe=Ee.allocAt(De,Re),yf(this,ht,Nt,Pe,et,pe,oe),Ee.free(pe),Fm(ht,zt.x+Nt,zt.y+Pe,Yt+Nt,Le+Pe),et.h(Yt,Le))):(yf(this,ht,Nt,Pe,et,zt,oe),et.assign(zt));tt.assign(Pt),Nt=bt}Ee.free(et)}Bm=ht}else ht=this.i(1).copy(),ht.x-=b,ht.y-=gt,this.computeShortLength(!0)!==0&&(tt=vf(this,tt,!0,et)),this.computeShortLength(!1)!==0&&(ht=vf(this,ht,!1,et)),a.type=pn.j,a.startX=tt.x,a.startY=tt.y,a.endX=ht.x,a.endY=ht.y;return this.lk=!0,a};function Km(a,y,x,b){return a=x-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=b-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),Ge.$(a,0)?y:Ge.$(y,0)?a:Math.sqrt(a*a+y*y)))}function vf(a,y,x,b){var tt=a.pointsCount;if(2>tt)return y;if(x){var et=a.i(1);if(x=et.x-b.x,et=et.y-b.y,b=Km(y.x,y.y,x,et),b===0)return y;tt=tt===2?.5*b:b,a=a.computeShortLength(!0),a>tt&&(a=tt),tt=a*(et-y.y)/b,y.x+=a*(x-y.x)/b,y.y+=tt}else{if(et=a.i(tt-2),x=et.x-b.x,et=et.y-b.y,b=Km(y.x,y.y,x,et),b===0)return y;tt=tt===2?.5*b:b,a=a.computeShortLength(!1),a>tt&&(a=tt),tt=a*(y.y-et)/b,y.x-=a*(y.x-x)/b,y.y-=tt}return y}function Qv(a,y,x,b){for(var tt=a.pointsCount,et=y;Ge.$(y.x,et.x)&&Ge.$(y.y,et.y);){if(x>=tt)return tt-1;et=a.i(x++)}if(!Ge.$(y.x,et.x)&&!Ge.$(y.y,et.y))return x-1;for(var nt=et;Ge.$(y.x,et.x)&&Ge.$(et.x,nt.x)&&(!b||(y.y>=et.y?et.y>=nt.y:et.y<=nt.y))||Ge.$(y.y,et.y)&&Ge.$(et.y,nt.y)&&(!b||(y.x>=et.x?et.x>=nt.x:et.x<=nt.x));){if(x>=tt)return tt-1;nt=a.i(x++)}return x-2}cn.prototype.computeJumpLength=function(){return 10};function yf(a,y,x,b,tt,et,nt){if(!nt&&Tc(a)){nt=a.computeJumpLength();var ht=nt/2,gt=[],bt=0;if(a.isVisible()&&(bt=Aw(a,tt,et,gt)),0Nt-nt);)bt--,Nt=Math.max(Pt-ht,et.x);Pt=et.y-nt+b,Nt+=x,Yt=et.y+b,a.curve===Ju?Ed(y,Nt,Yt,!1):Ku(y,zt,Pt,Nt,Pt,Nt,Yt)}else if(Ge.B(tt.x,et.x))if(tt.yPt-nt);)bt--,Pt=Math.max(Nt-ht,et.y);Nt=et.x-nt+x,Yt=et.x+x,Pt+=b,a.curve===Ju?Ed(y,Yt,Pt,!1):Ku(y,Nt,zt,Nt,Pt,Yt,Pt)}}}y.lineTo(et.x+x,et.y+b)}function Aw(a,y,x,b){var tt=a.diagram;if(tt===null||y.D(x))return 0;for(tt=tt.layers;tt.next();){var et=tt.value;if(et!==null&&et.visible){et=et.Pa.s;for(var nt=et.length,ht=0;htnt.x&&Pt.x>=bt.x||bt.xnt.y&&Pt.y>=bt.y||bt.ynt&&Math.min(Zt,oe)Pt&&!Ge.B(Zt,oe)){ht.x=Pt,ht.y=nt,Pt=!0;break t}}else if(Ge.B(Nt,Yt)&&Ge.B(Zt,oe)&&Math.min(Pt,zt)Zt&&Math.min(nt,Pe)Nt&&!Ge.B(nt,Pe)){ht.x=Zt,ht.y=Nt,Pt=!0;break t}ht.x=0,ht.y=0,Pt=!1}Pt&&(tt?x.push(ht.x):x.push(ht.y)),nt=bt}Ee.free(ht)}function Tc(a){return a=a.curve,a===kd||a===Ju}function Xm(a,y){(y||Tc(a))&&(y=a.diagram,y===null||y.animationManager.isTicking||y.Eh.contains(a)||a.ml.width===0&&a.ml.height===0||y.Eh.add(a,a.ml.copy()))}cn.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var x=y.diagram;if(x!==null&&!x.animationManager.isTicking){var b=!1;for(x=x.layers;x.next();){var tt=x.value;if(tt.visible){if(tt===y){b=!0;var et=!1;tt=tt.Pa.s;for(var nt=tt.length,ht=0;hta&&ti(a,">= 0",cn,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),this.bb())}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:NaN},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.qc(),this.g("fromShortLength",y,a))}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:oo},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),(y.$c()||a.$c())&&this.toNode!==null&&Us(this.toPort),this.bb())}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:NaN},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&ti(a,">= 0",cn,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),this.bb())}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:NaN},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.qc(),this.g("toShortLength",y,a))}},isLabeledLink:{get:function(){return this.wd===null?!1:0=b&&(et=b-1);var ht=this.i(et-1),gt=this.i(et);Ge.Dl(tt.x,tt.y,nt.x,nt.y,ht.x,ht.y,gt.x,gt.y,.5,a),y=Math.min(gt.x,y),x=Math.min(gt.y,x),tt=gt}else for(tt=this.i(0),et=this.i(1),y=Math.min(tt.x,et.x),x=Math.min(tt.y,et.y),a.h(tt.x,tt.y,0,0),a.Ye(et),tt=2;ttb&&(b=-b)):Ge.$(b.y,tt.y)?(b=tt.x-b.x,0>b&&(b=-b)):b=Math.sqrt(b.Bf(tt)),a.push(b)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,x=y.length,b=a=0;bthis.pointsCount)return this.lk=!0,this.ua;this.ua=this.makeGeometry()}return this.ua}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!Md(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!Md(this.computeSpot(!1))?a-2:a-1}},adjusting:{get:function(){return this.qk},set:function(a){var y=this.qk;y!==a&&(this.qk=a,this.g("adjusting",y,a))}},corner:{get:function(){return this.Om},set:function(a){var y=this.Om;y!==a&&(this.Om=a,this.qc(),this.g("corner",y,a))}},curve:{get:function(){return this.Qm},set:function(a){var y=this.Qm;y!==a&&(this.Qm=a,this.bb(),this.qc(),Xm(this,y===Ju||y===kd||a===Ju||a===kd),this.g("curve",y,a))}},curviness:{get:function(){return this.Rm},set:function(a){var y=this.Rm;y!==a&&(this.Rm=a,this.bb(),this.qc(),this.g("curviness",y,a))}},routing:{get:function(){return this.qj},set:function(a){var y=this.qj;y!==a&&(this.qj=a,this.Wf=null,this.bb(),Xm(this,(y.value&2)===2||(a.value&2)===2),this.g("routing",y,a))}},smoothness:{get:function(){return this.po},set:function(a){var y=this.po;y!==a&&(this.po=a,this.qc(),this.g("smoothness",y,a))}},key:{get:function(){var a=this.diagram;if(a!==null&&a.model.ri())return a.model.Ac(this.data)}}}),cn.prototype.invalidateOtherJumpOvers=cn.prototype.Xo,cn.prototype.findClosestSegment=cn.prototype.ez,cn.prototype.updateRoute=cn.prototype.vg,cn.prototype.invalidateRoute=cn.prototype.bb,cn.prototype.rollbackRoute=cn.prototype.rv,cn.prototype.commitRoute=cn.prototype.zf,cn.prototype.startRoute=cn.prototype.uh,cn.prototype.clearPoints=cn.prototype.Fj,cn.prototype.removePoint=cn.prototype.pv,cn.prototype.addPointAt=cn.prototype.yf,cn.prototype.addPoint=cn.prototype.ne,cn.prototype.insertPointAt=cn.prototype.m,cn.prototype.insertPoint=cn.prototype.Kz,cn.prototype.setPointAt=cn.prototype.L,cn.prototype.setPoint=cn.prototype.dd,cn.prototype.getPoint=cn.prototype.i,cn.prototype.getOtherPort=cn.prototype.Cz,cn.prototype.getOtherNode=cn.prototype.To;var Sf=null,wf=null,Jv=new sn(cn,"Normal",1),kw=new sn(cn,"Orthogonal",2),Lw=new sn(cn,"AvoidsNodes",6),nS=new sn(cn,"AvoidsNodesStraight",7),ls=new sn(cn,"None",0),ia=new sn(cn,"Bezier",9),Ju=new sn(cn,"JumpGap",10),kd=new sn(cn,"JumpOver",11),Qp=new sn(cn,"End",17),Zm=new sn(cn,"Scale",18),Qm=new sn(cn,"Stretch",19),Jp=new sn(cn,"OrientAlong",21),qp=new sn(cn,"OrientPlus90",22),$p=new sn(cn,"OrientMinus90",23),qv=new sn(cn,"OrientOpposite",24),Jm=new sn(cn,"OrientUpright",25),tg=new sn(cn,"OrientPlus90Upright",26),eg=new sn(cn,"OrientMinus90Upright",27),qm=new sn(cn,"OrientUpright45",28),iS=16,rS=14,ng=8;cn.className="Link",cn.Normal=Jv,cn.Orthogonal=kw,cn.AvoidsNodes=Lw,cn.AvoidsNodesStraight=nS,cn.None=ls,cn.Bezier=ia,cn.JumpGap=Ju,cn.JumpOver=kd,cn.End=Qp,cn.Scale=Zm,cn.Stretch=Qm,cn.OrientAlong=Jp,cn.OrientPlus90=qp,cn.OrientMinus90=$p,cn.OrientOpposite=qv,cn.OrientUpright=Jm,cn.OrientPlus90Upright=tg,cn.OrientMinus90Upright=eg,cn.OrientUpright45=qm,cn.EndSegmentStep=8,cn.CurvinessStart=iS,cn.SpacingMin=rS,cn.OrthoShortCut=ng;function $m(a,y,x,b){qi(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=b,this.links=[]}$m.prototype.Sl=function(){if(!this.qq){var a=this.links;0=a.width||0>=a.height)){var y=a.y,x=a.x+a.width,b=a.y+a.height;if(this.Nd=Math.floor((a.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((y-this.sc)/this.sc)*this.sc,this.En=Math.ceil((x+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((b+2*this.sc)/this.sc)*this.sc,a=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),y=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di=_c&&(x[b]=$v)}ig.prototype.Yj=function(a,y,x,b){if(a>this.En||a+xthis.Fn||y+ba&&(x+=a,a=0),0>y&&(tt+=y,y=0),0>x||0>tt)return!0;for(b=Math.min(a+x-1,this.di)|0,x=Math.min(y+tt-1,this.ei)|0;a<=b;a++){tt=this.ac[a];for(var et=y;et<=x;et++)if(tt[et]===qu)return!1}return!0};function Vl(a,y,x,b,tt,et,nt,ht,gt){if(!(ynt||xgt)){var bt=y|0,Pt=x|0,Nt=a.ac[bt][Pt];if(Nt>=_c&&Nt=a.ac[bt][Pt]);)a.ac[bt][Pt]=Nt,Nt+=1,tt?Pt+=b:bt+=b;if(bt=tt?Pt:bt,tt)if(0bt;x+=b)Vl(a,y,x,1,!tt,et,nt,ht,gt),Vl(a,y,x,-1,!tt,et,nt,ht,gt);else if(0bt;y+=b)Vl(a,y,x,1,!tt,et,nt,ht,gt),Vl(a,y,x,-1,!tt,et,nt,ht,gt)}}function t0(a,y,x,b,tt,et,nt,ht,gt){y|=0,x|=0;var bt=qu,Pt=_c;for(a.ac[y][x]=Pt;bt===qu&&y>et&&yht&&xet&&yht&&x=Math.abs(ht-bt)&&1>=Math.abs(gt-Pt))a.abort=!0;else{var Nt=et.x;b=et.y,y=et.x+et.width;var zt=et.y+et.height;Nt-=a.Nd,Nt/=a.rc,b-=a.Od,b/=a.sc,y-=a.Nd,y/=a.rc,zt-=a.Od,zt/=a.sc,et=Math.max(0,Math.min(a.di,Nt|0)),y=Math.min(a.di,Math.max(0,y|0)),Nt=Math.max(0,Math.min(a.ei,b|0)),zt=Math.min(a.ei,Math.max(0,zt|0)),b=a.ac,ht|=0,gt|=0,bt|=0,Pt|=0;var Yt=x===0||x===90?1:-1;if(x=x===90||x===270,b[ht][gt]===qu?(t0(a,ht,gt,Yt,x,et,y,Nt,zt),t0(a,ht,gt,1,!x,et,y,Nt,zt),t0(a,ht,gt,-1,!x,et,y,Nt,zt)):t0(a,ht,gt,Yt,x,ht,gt,ht,gt),b[bt][Pt]===qu?(e0(a,bt,Pt,tt===0||tt===90?1:-1,tt===90||tt===270,et,y,Nt,zt),e0(a,bt,Pt,1,!(tt===90||tt===270),et,y,Nt,zt),e0(a,bt,Pt,-1,!(tt===90||tt===270),et,y,Nt,zt)):e0(a,bt,Pt,Yt,x,bt,Pt,bt,Pt),x=oi(),nt&&aS(a,bt,Pt,tt,ht,gt,x))for((x[0]!==bt||x[1]!==Pt)&&(x.unshift(Pt),x.unshift(bt)),(x[x.length-2]!==ht||x[x.length-1]!==gt)&&(x.push(ht),x.push(gt)),a=_c,tt=x[x.length-2],nt=x[x.length-1],b[tt][nt]=a++,et=x.length-4;0<=et;et-=2)for(tt=x[et+2],nt=x[et+3],y=x[et],bt=x[et+1];y>tt?tt++:ynt?nt++:bttt)Pt--;else break;else if(Nt>et)Nt--;else break;var zt=ht[Pt][Nt];if(zt===0||zt===ty)break;gt=Pt,bt=Nt}for(;;){if(Pt=b,Nt=gt,zt=bt,b===0?ztet&&(Pt=270,zt--):b===90?Nttt&&(Pt=180,Nt--):b===180?ztet&&(Pt=270,zt--):Nttt&&(Pt=180,Nt--),Nt=ht[Nt][zt],Pt!==b&&Nt!==0&&Nt!==ty){if(nt.push(gt),nt.push(bt),aS(a,gt,bt,Pt,tt,et,nt))return!0;nt.pop(),nt.pop()}if(ht[gt][bt]=ty,b===0){if(gt===y)return!1;gt--}else if(b===90){if(bt===x)return!1;bt--}else if(b===180){if(gt===y)return!1;gt++}else{if(bt===x)return!1;bt++}}}qe.Object.defineProperties(ig.prototype,{bounds:{get:function(){return new $e(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(a){0=x?180:0}switch(a=180*Math.atan2(a.height,a.width)/Math.PI,y){case 3:return x>a&&x<=180+a?180:270;case 5:return x>180-a&&x<=360-a?270:0;case 12:return x>a&&x<=180+a?90:0;case 10:return x>180-a&&x<=360-a?180:90;case 7:return 90180+a&&x<=360-a?270:0;case 13:return 180a&&180>=x?90:0;case 14:return x>a&&x<=180-a?90:x>180-a&&270>=x?180:0;case 11:return x>180-a&&x<=180+a?180:x>180+a?270:90}return b&&y!==15&&(x-=15,0>x&&(x+=360)),x>a&&x<180-a?90:x>=180-a&&x<=180+a?180:x>180+a&&x<360-a?270:0}xf.prototype.Sl=function(){this.pe.length=0};function lS(a,y){var x=a.pe;if(x.length===0){t:if(!a.ap){x=a.ap,a.ap=!0;var b=null,tt=a.node,et=tt instanceof Un?tt:null;if(et===null||et.isSubGraphExpanded)var nt=tt.isTreeExpanded?tt.findLinksConnected(a.port.portId):tt.qx();else{if(!et.actualBounds.w()){a.ap=x;break t}b=et,nt=b.Lu()}et=a.pe.length=0;var ht=a.port.ga(vo,Ee.alloc()),gt=a.port.ga(ms,Ee.alloc());for(tt=$e.allocAt(ht.x,ht.y,0,0),tt.Ye(gt),Ee.free(ht),Ee.free(gt),ht=Ee.allocAt(tt.x+tt.width/2,tt.y+tt.height/2),gt=a.port.li(),nt=nt.iterator;nt.next();){var bt=nt.value;if(bt.isVisible()&&bt.fromPort!==bt.toPort){var Pt=bt.fromPort===a.port||bt.fromNode!==null&&bt.fromNode.Td(b),Nt=bt.computeSpot(Pt,a.port);if(Nt.$c()&&(Pt=Pt?bt.toPort:bt.fromPort,Pt!==null)){var zt=Pt.part;if(zt!==null){var Yt=zt.findVisibleNode();Yt!==null&&Yt!==zt&&(zt=Yt,Pt=zt.port),Pt=bt.computeOtherPoint(zt,Pt),zt=ht.ab(Pt),zt-=gt,0>zt?zt+=360:360<=zt&&(zt-=360),Nt=Tw(tt,Nt,zt,bt.isOrthogonal),Nt===0?(Nt=4,180zt&&(zt+=360)),Yt=a.pe[et],Yt===void 0?(Yt=new ey(bt,zt,Nt),a.pe[et]=Yt):(Yt.link=bt,Yt.angle=zt,Yt.Nc=Nt),Yt.hv.set(Pt),et++}}}}for(Ee.free(ht),a.pe.sort(xf.prototype.j),gt=a.pe.length,b=-1,et=ht=0;etMath.abs(oe)?(Le=Math.abs(oe)/zt,zt=Math.abs(oe)):Le=1;break;case 2:Yt>Math.abs(je)?(Le=Math.abs(je)/Yt,Yt=Math.abs(je)):Le=1;break;case 1:Nt>Math.abs(oe)?(Le=Math.abs(oe)/Nt,Nt=Math.abs(oe)):Le=1;break;default:case 4:Pt>Math.abs(je)?(Le=Math.abs(je)/Pt,Pt=Math.abs(je)):Le=1}pe=0}var Ve=De.Zo;if(b===Wv){switch(De=De.link.computeThickness(),De*=Le,Ve.set(Re),Zt){case 8:Ve.x=Re.x+oe/2+zt/2-pe-De/2;break;case 2:Ve.y=Re.y+je/2+Yt/2-pe-De/2;break;case 1:Ve.x=Re.x+oe/2-Nt/2+pe+De/2;break;default:case 4:Ve.y=Re.y+je/2-Pt/2+pe+De/2}pe+=De}else{var Sn=.5;b===Hm&&(Sn=(De.Uo+1)/(De.Gl+1)),Ve.x=Re.x+oe*Sn,Ve.y=Re.y+je*Sn}}}for(Ee.free(ht),Ee.free(gt),Ee.free(nt),Ee.free(bt),Re=a.pe,et=0;ety.Nc?1:a.angley.angle?1:0},xf.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,$r,y.fromPort===this.port),b=a.Uo;if(0>b)return x;var tt=a.Gl;if(1>=tt||!y.isOrthogonal)return x;y=a.hv;var et=a.Zo;return(a.Nc===2||a.Nc===8)&&(b=tt-1-b),((a=a.Nc===2||a.Nc===4)?y.y=y-1?(et=0,b=x,tt+=nt+20,nt=0):et++}},Ji.prototype.doMinimalNetworkLayout=function(){var a=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var y=this.arrangementOrigin.x,x=y,b=this.arrangementOrigin.y,tt=0,et=0,nt=this.network.vertexes.iterator;nt.next();){var ht=nt.value.node;if(!(ht===null||ht instanceof cn)&&(rg(ht),this.rh(ht))){var gt=ht.measuredBounds,bt=gt.width;gt=gt.height,ht.moveTo(x,b),ht instanceof Un&&(ht.rh=!1),x+=Math.max(bt,50)+20,et=Math.max(et,Math.max(gt,50)),tt>=a-1?(tt=0,x=y,b+=et+20,et=0):tt++}}},Ji.prototype.rh=function(a){return!!(!a.location.w()||a instanceof Un&&a.rh)};function Fh(a,y,x,b,tt,et,nt,ht){for(x=x.iterator;x.next();){var gt=x.value;b&&!gt.isTopLevel||tt!==null&&!tt(gt)||!gt.canLayout()||(et&> instanceof wn?gt.isLinkLabel||(gt instanceof Un&>.layout===null?Fh(a,y,gt.memberParts,!1,tt,et,nt,ht):(rg(gt),y.add(gt))):nt&> instanceof cn?y.add(gt):!ht||!gt.Zc()||gt instanceof wn||(rg(gt),y.add(gt)))}}function rg(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Ji.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new $e),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Ji.prototype.ex=function(a){var y=new gn;return a instanceof Ye?(Fh(this,y,a.nodes,!0,null,!0,!0,!0),Fh(this,y,a.links,!0,null,!0,!0,!0),Fh(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof Un?Fh(this,y,a.memberParts,!1,null,!0,!0,!0):Fh(this,y,a.iterator,!1,null,!0,!0,!0),y},Ji.prototype.initialOrigin=function(a){var y=this.group;if(y!==null){var x=y.position.copy();return(isNaN(x.x)||isNaN(x.y))&&x.set(a),y=y.placeholder,y!==null&&(x=y.ga(vo),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},qe.Object.defineProperties(Ji.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},group:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a,a!==null&&(this.H=a.diagram))}},isOngoing:{get:function(){return this.sn},set:function(a){this.sn!==a&&(this.sn=a)}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a,a||(this.xn=!0)}},isViewportSized:{get:function(){return this.yn},set:function(a){this.yn!==a&&(this.yn=a)&&this.C()}},isRouting:{get:function(){return this.vn},set:function(a){this.vn!==a&&(this.vn=a)}},isRealtime:{get:function(){return this.un},set:function(a){this.un!==a&&(this.un=a)}},isValidLayout:{get:function(){return this.xn},set:function(a){this.xn!==a&&(this.xn=a,a||(a=this.diagram,a!==null&&(a.xh=!0)))}},network:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,a!==null&&(a.layout=this))}},boundsComputation:{get:function(){return this.Em},set:function(a){this.Em!==a&&(this.Em=a,this.C())}},arrangementOrigin:{get:function(){return this.Am},set:function(a){this.Am.D(a)||(this.Am.assign(a),this.C())}}}),Ji.prototype.collectParts=Ji.prototype.ex,Ji.prototype.getLayoutBounds=Ji.prototype.ni,Ji.prototype.invalidateLayout=Ji.prototype.C,Ji.className="Layout";function Di(a){qi(this),this.Sc=a,this.wf=new gn,this.ye=new gn,this.Es=new Rn,this.zs=new Rn}Di.prototype.clear=function(){if(this.wf)for(var a=this.wf.iterator;a.next();)a.value.clear();if(this.ye)for(a=this.ye.iterator;a.next();)a.value.clear();this.wf=new gn,this.ye=new gn,this.Es=new Rn,this.zs=new Rn},Di.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutNetwork"+(this.layout!==null?"("+this.layout.toString()+")":"");if(0>=a)return y;if(y+=" vertexes: "+this.wf.count+" edges: "+this.ye.count,1y?1:0):1:y!==null?-1:0}qe.Object.defineProperties(Vr.prototype,{sourceEdgesArrayAccess:{get:function(){return this.tg._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.mg._dataArray}},data:{get:function(){return this.ub},set:function(a){if(this.ub=a,a!==null&&a.bounds){var y=a.bounds;a=y.x;var x=y.y,b=y.width;y=y.height,this.o.h(b/2,y/2),this.j.h(a,x,b,y)}}},node:{get:function(){return this.Sh},set:function(a){if(this.Sh!==a){this.Sh=a,a.Va();var y=this.network.layout,x=$e.alloc(),b=y.ni(a,x);y=b.x;var tt=b.y,et=b.width;if(b=b.height,isNaN(y)&&(y=0),isNaN(tt)&&(tt=0),this.j.h(y,tt,et,b),$e.free(x),!(a instanceof Un)&&(a=a.locationObject.ga(wi),a.w())){this.o.h(a.x-y,a.y-tt);return}this.o.h(et/2,b/2)}}},bounds:{get:function(){return this.j},set:function(a){this.j.D(a)||this.j.assign(a)}},focus:{get:function(){return this.o},set:function(a){this.o.D(a)||this.o.assign(a)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(a){var y=this.j;y.x+this.o.x!==a&&(y.ka(),y.x=a-this.o.x,y.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(a){var y=this.j;y.y+this.o.y!==a&&(y.ka(),y.y=a-this.o.y,y.freeze())}},focusX:{get:function(){return this.o.x},set:function(a){var y=this.o;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},focusY:{get:function(){return this.o.y},set:function(a){var y=this.o;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},x:{get:function(){return this.j.x},set:function(a){var y=this.j;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},y:{get:function(){return this.j.y},set:function(a){var y=this.j;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},width:{get:function(){return this.j.width},set:function(a){var y=this.j;y.width!==a&&(y.ka(),y.width=a,y.freeze())}},height:{get:function(){return this.j.height},set:function(a){var y=this.j;y.height!==a&&(y.ka(),y.height=a,y.freeze())}},network:{get:function(){return this.ob},set:function(a){this.ob=a}},sourceVertexes:{get:function(){for(var a=new gn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new gn,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new gn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);for(y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},sourceEdges:{get:function(){return this.tg.iterator}},destinationEdges:{get:function(){return this.mg.iterator}},edges:{get:function(){for(var a=new vn,y=this.sourceEdges;y.next();)a.add(y.value);for(y=this.destinationEdges;y.next();)a.add(y.value);return a.iterator}},edgesCount:{get:function(){return this.tg.count+this.mg.count}}}),Vr.prototype.deleteDestinationEdge=Vr.prototype.Jl,Vr.prototype.addDestinationEdge=Vr.prototype.zl,Vr.prototype.deleteSourceEdge=Vr.prototype.Kl,Vr.prototype.addSourceEdge=Vr.prototype.Cl,Vr.className="LayoutVertex",Vr.standardComparer=oy,Vr.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.Sh;var x=y.Sh;if(a!==null){if(x!==null){for(y=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),a=x.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),x=0;x "+(this.qd?this.qd.toString():"null"))),y},Hs.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},Hs.prototype.commit=function(){},Hs.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},qe.Object.defineProperties(Hs.prototype,{network:{get:function(){return this.nb},set:function(a){this.nb=a}},data:{get:function(){return this.ub},set:function(a){this.ub!==a&&(this.ub=a)}},link:{get:function(){return this.$k},set:function(a){this.$k!==a&&(this.$k=a)}},fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}}}),Hs.prototype.getOtherVertex=Hs.prototype.Ax,Hs.className="LayoutEdge";function wo(a){Ji.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new xn(NaN,NaN).freeze(),this.tf=new xn(10,10).freeze(),this.Jb=og,this.Rb=i0,this.nd=sg,this.hd=hS,a&&Object.assign(this,a)}en(wo,Ji),wo.prototype.cloneProtected=function(a){Ji.prototype.cloneProtected.call(this,a),a.zo=this.zo,a.yo=this.yo,a.yg.assign(this.yg),a.tf.assign(this.tf),a.Jb=this.Jb,a.Rb=this.Rb,a.nd=this.nd,a.hd=this.hd},wo.prototype.qb=function(a){a.classType===wo?a===sg||a===o0||a===sy||a===r0?this.sorting=a:a===i0||a===sl?this.arrangement=a:a===og||a===n0?this.alignment=a:We("Unknown enum value: "+a):Ji.prototype.qb.call(this,a)},wo.prototype.doLayout=function(a){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var y=this.ex(a);a=this.diagram;for(var x=y.copy().iterator;x.next();){var b=x.value;if(!b.ph()||b.fromNode===null&&b.toNode===null){if(b.Va(),b instanceof Un)for(b=b.memberParts;b.next();)y.remove(b.value)}else y.remove(b)}var tt=y.Fa();if(tt.length!==0){switch(this.sorting){case r0:tt.reverse();break;case sg:tt.sort(this.comparer);break;case o0:tt.sort(this.comparer),tt.reverse()}var et=this.wrappingColumn;isNaN(et)&&(et=0);var nt=this.wrappingWidth;switch(isNaN(nt)&&a!==null?(y=a.padding,nt=Math.max(a.viewportBounds.width-y.left-y.right,0)):nt=Math.max(this.wrappingWidth,0),0>=et&&0>=nt&&(et=1),y=this.spacing.width,isFinite(y)||(y=0),x=this.spacing.height,isFinite(x)||(x=0),a!==null&&a.Ea("Layout"),b=[],this.alignment){case n0:var ht=y,gt=x,bt=$e.alloc(),Pt=Math.max(this.cellSize.width,1);if(!isFinite(Pt))for(var Nt=Pt=0;Ntet-1||0nt)&&(b.push(new $e(0,oe,nt+ht,de)),Pe=0,Zt=Vt,oe+=de,de=0),de=Math.max(de,Ve),zt){case sl:De=-De.width;break;default:De=0}switch(Oe.moveTo(Zt+De,oe),zt){case sl:Zt-=Re;break;default:Zt+=Re}Pe++}b.push(new $e(0,oe,nt+ht,de)),$e.free(bt);break;case og:for(gt=nt,Pt=et,Nt=y,zt=x,nt=$e.alloc(),Vt=Math.max(this.cellSize.width,1),et=oe=bt=0,ht=Ee.alloc(),Zt=0;Zt=bt&&(gt-=bt),bt=Oe=0,Re=Math.max(this.cellSize.height,1),De=et=0,Ve=!0,Pe=Ee.alloc(),Sn=0;SnPt-1||0gt){for(b.push(new $e(0,Ve?Le-et:Le,gt+Nt,De+et+zt)),Mn=0;Mnbt&&(et.width+=et.x-bt,et.x=bt);$e.free(nt)}for(ht=et=nt=tt=0;hty?1:0}qe.Object.defineProperties(wo.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(a){this.zo!==a&&(0Nt)){var oe=Nt+Gp(Zt);Zt.pc(oe,!0),xv(Zt,oe,Nt)}}y.isModified=!0}}finally{y.aa=!0}}}}},Pi.prototype.updateAllTargetBindings=function(a){a===void 0&&(a="");for(var y=this.parts.iterator;y.next();)y.value.La(a);for(y=this.nodes.iterator;y.next();)y.value.La(a);for(y=this.links.iterator;y.next();)y.value.La(a)},Pi.prototype.rp=function(){for(var a=this.H.model,y=new gn,x=a.nodeDataArray,b=0;by?1:0):1:y!==null?-1:0}qe.Object.defineProperties(Vr.prototype,{sourceEdgesArrayAccess:{get:function(){return this.tg._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.mg._dataArray}},data:{get:function(){return this.ub},set:function(a){if(this.ub=a,a!==null&&a.bounds){var y=a.bounds;a=y.x;var x=y.y,b=y.width;y=y.height,this.o.h(b/2,y/2),this.j.h(a,x,b,y)}}},node:{get:function(){return this.Sh},set:function(a){if(this.Sh!==a){this.Sh=a,a.Va();var y=this.network.layout,x=$e.alloc(),b=y.ni(a,x);y=b.x;var tt=b.y,et=b.width;if(b=b.height,isNaN(y)&&(y=0),isNaN(tt)&&(tt=0),this.j.h(y,tt,et,b),$e.free(x),!(a instanceof Un)&&(a=a.locationObject.ga(wi),a.w())){this.o.h(a.x-y,a.y-tt);return}this.o.h(et/2,b/2)}}},bounds:{get:function(){return this.j},set:function(a){this.j.D(a)||this.j.assign(a)}},focus:{get:function(){return this.o},set:function(a){this.o.D(a)||this.o.assign(a)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(a){var y=this.j;y.x+this.o.x!==a&&(y.ka(),y.x=a-this.o.x,y.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(a){var y=this.j;y.y+this.o.y!==a&&(y.ka(),y.y=a-this.o.y,y.freeze())}},focusX:{get:function(){return this.o.x},set:function(a){var y=this.o;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},focusY:{get:function(){return this.o.y},set:function(a){var y=this.o;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},x:{get:function(){return this.j.x},set:function(a){var y=this.j;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},y:{get:function(){return this.j.y},set:function(a){var y=this.j;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},width:{get:function(){return this.j.width},set:function(a){var y=this.j;y.width!==a&&(y.ka(),y.width=a,y.freeze())}},height:{get:function(){return this.j.height},set:function(a){var y=this.j;y.height!==a&&(y.ka(),y.height=a,y.freeze())}},network:{get:function(){return this.ob},set:function(a){this.ob=a}},sourceVertexes:{get:function(){for(var a=new gn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new gn,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new gn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);for(y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},sourceEdges:{get:function(){return this.tg.iterator}},destinationEdges:{get:function(){return this.mg.iterator}},edges:{get:function(){for(var a=new vn,y=this.sourceEdges;y.next();)a.add(y.value);for(y=this.destinationEdges;y.next();)a.add(y.value);return a.iterator}},edgesCount:{get:function(){return this.tg.count+this.mg.count}}}),Vr.prototype.deleteDestinationEdge=Vr.prototype.Jl,Vr.prototype.addDestinationEdge=Vr.prototype.zl,Vr.prototype.deleteSourceEdge=Vr.prototype.Kl,Vr.prototype.addSourceEdge=Vr.prototype.Cl,Vr.className="LayoutVertex",Vr.standardComparer=oy,Vr.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.Sh;var x=y.Sh;if(a!==null){if(x!==null){for(y=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),a=x.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),x=0;x "+(this.qd?this.qd.toString():"null"))),y},Hs.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},Hs.prototype.commit=function(){},Hs.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},qe.Object.defineProperties(Hs.prototype,{network:{get:function(){return this.nb},set:function(a){this.nb=a}},data:{get:function(){return this.ub},set:function(a){this.ub!==a&&(this.ub=a)}},link:{get:function(){return this.$k},set:function(a){this.$k!==a&&(this.$k=a)}},fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}}}),Hs.prototype.getOtherVertex=Hs.prototype.Ax,Hs.className="LayoutEdge";function wo(a){Ji.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new xn(NaN,NaN).freeze(),this.tf=new xn(10,10).freeze(),this.Jb=og,this.Rb=i0,this.nd=sg,this.hd=hS,a&&Object.assign(this,a)}en(wo,Ji),wo.prototype.cloneProtected=function(a){Ji.prototype.cloneProtected.call(this,a),a.zo=this.zo,a.yo=this.yo,a.yg.assign(this.yg),a.tf.assign(this.tf),a.Jb=this.Jb,a.Rb=this.Rb,a.nd=this.nd,a.hd=this.hd},wo.prototype.qb=function(a){a.classType===wo?a===sg||a===o0||a===sy||a===r0?this.sorting=a:a===i0||a===sl?this.arrangement=a:a===og||a===n0?this.alignment=a:We("Unknown enum value: "+a):Ji.prototype.qb.call(this,a)},wo.prototype.doLayout=function(a){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var y=this.ex(a);a=this.diagram;for(var x=y.copy().iterator;x.next();){var b=x.value;if(!b.ph()||b.fromNode===null&&b.toNode===null){if(b.Va(),b instanceof Un)for(b=b.memberParts;b.next();)y.remove(b.value)}else y.remove(b)}var tt=y.Fa();if(tt.length!==0){switch(this.sorting){case r0:tt.reverse();break;case sg:tt.sort(this.comparer);break;case o0:tt.sort(this.comparer),tt.reverse()}var et=this.wrappingColumn;isNaN(et)&&(et=0);var nt=this.wrappingWidth;switch(isNaN(nt)&&a!==null?(y=a.padding,nt=Math.max(a.viewportBounds.width-y.left-y.right,0)):nt=Math.max(this.wrappingWidth,0),0>=et&&0>=nt&&(et=1),y=this.spacing.width,isFinite(y)||(y=0),x=this.spacing.height,isFinite(x)||(x=0),a!==null&&a.Ea("Layout"),b=[],this.alignment){case n0:var ht=y,gt=x,bt=$e.alloc(),Pt=Math.max(this.cellSize.width,1);if(!isFinite(Pt))for(var Nt=Pt=0;Ntet-1||0nt)&&(b.push(new $e(0,oe,nt+ht,pe)),Pe=0,Zt=Yt,oe+=pe,pe=0),pe=Math.max(pe,Ve),zt){case sl:De=-De.width;break;default:De=0}switch(je.moveTo(Zt+De,oe),zt){case sl:Zt-=Re;break;default:Zt+=Re}Pe++}b.push(new $e(0,oe,nt+ht,pe)),$e.free(bt);break;case og:for(gt=nt,Pt=et,Nt=y,zt=x,nt=$e.alloc(),Yt=Math.max(this.cellSize.width,1),et=oe=bt=0,ht=Ee.alloc(),Zt=0;Zt=bt&&(gt-=bt),bt=je=0,Re=Math.max(this.cellSize.height,1),De=et=0,Ve=!0,Pe=Ee.alloc(),Sn=0;SnPt-1||0gt){for(b.push(new $e(0,Ve?Le-et:Le,gt+Nt,De+et+zt)),Mn=0;Mnbt&&(et.width+=et.x-bt,et.x=bt);$e.free(nt)}for(ht=et=nt=tt=0;hty?1:0}qe.Object.defineProperties(wo.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(a){this.zo!==a&&(0Nt)){var oe=Nt+Gp(Zt);Zt.pc(oe,!0),xv(Zt,oe,Nt)}}y.isModified=!0}}finally{y.aa=!0}}}}},Pi.prototype.updateAllTargetBindings=function(a){a===void 0&&(a="");for(var y=this.parts.iterator;y.next();)y.value.La(a);for(y=this.nodes.iterator;y.next();)y.value.La(a);for(y=this.links.iterator;y.next();)y.value.La(a)},Pi.prototype.rp=function(){for(var a=this.H.model,y=new gn,x=a.nodeDataArray,b=0;b=b)return"[]";var tt=new Qn;tt.add("["),x&&1b)return;Wi(a.Tc,b)}zr(a,"nodeDataArray",Hr,"nodeDataArray",a,y,null,b,null),a.qp(y)}ee.nA=function(a){if(Cn(a))for(var y=a.length,x=0;xy&&(y=a.length),Zi(a,y,x),zr(this,"",Ar,"",a,null,x,null,y)},ee.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&We("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];Wi(a,y),zr(this,"",Hr,"",a,x,null,y,null)},ee.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=Pr(a,y),y===void 0))return"";if(typeof y=="string")return y;We("getCategoryForNodeData found a non-string category for "+a+": "+y)},ee.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var b=Pr(a,x);b===void 0&&(b=""),b!==y&&(Ki(a,x,y),zr(this,"nodeCategory",tr,x,a,b,y))}else Ki(a,x,y)}},ee.lm=function(a,y){this.jm(y,this.Ro(a))},ee.Tl=function(){return!1},ee.Wj=function(){return!1},ee.ri=function(){return!1},ee.xs=function(){return!1},ee.Xj=function(){return!1};function cy(){return new Ln}function lg(a,y){if(typeof y=="function"){if(y.className)return y.className;if(y.name)return y.name}else if(typeof y=="object"&&y!==null&&y.constructor)return lg(a,y.constructor);return typeof y}function fy(a){return Ka[a]?Ka[a]:bn.go!==void 0&&bn.go[a]?bn.go[a]:null}function Pr(a,y){if(!a||!y)return null;try{if(typeof y=="function")var x=y(a);else typeof a.getAttribute=="function"?(x=a.getAttribute(y),x===null&&(x=void 0)):x=a[y]}catch(b){}return x}function Ki(a,y,x){if(a&&y)try{typeof y=="function"?y(a,x):typeof a.setAttribute=="function"?a.setAttribute(y,x):a[y]=x}catch(b){}}qe.Object.defineProperties(Ln.prototype,{name:{get:function(){return this.xa},set:function(a){var y=this.xa;y!==a&&(this.xa=a,this.g("name",y,a))}},dataFormat:{get:function(){return this.Sm},set:function(a){var y=this.Sm;y!==a&&(this.Sm=a,this.g("dataFormat",y,a))}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},modelData:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.g("modelData",y,a),this.La(a))}},undoManager:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&(y!==null&&y.Rx(this),this.o=a,a!==null&&a.Xw(this))}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a}},nodeKeyProperty:{get:function(){return this.Th},set:function(a){var y=this.Th;y!==a&&(a===""&&We("Model.nodeKeyProperty may not be the empty string"),0b)return;Wi(a.Tc,b)}zr(a,"nodeDataArray",Hr,"nodeDataArray",a,y,null,b,null),a.qp(y)}ee.nA=function(a){if(Cn(a))for(var y=a.length,x=0;xy&&(y=a.length),Zi(a,y,x),zr(this,"",Ar,"",a,null,x,null,y)},ee.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&We("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];Wi(a,y),zr(this,"",Hr,"",a,x,null,y,null)},ee.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=Pr(a,y),y===void 0))return"";if(typeof y=="string")return y;We("getCategoryForNodeData found a non-string category for "+a+": "+y)},ee.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var b=Pr(a,x);b===void 0&&(b=""),b!==y&&(Ki(a,x,y),zr(this,"nodeCategory",tr,x,a,b,y))}else Ki(a,x,y)}},ee.lm=function(a,y){this.jm(y,this.Ro(a))},ee.Tl=function(){return!1},ee.Wj=function(){return!1},ee.ri=function(){return!1},ee.xs=function(){return!1},ee.Xj=function(){return!1};function cy(){return new Ln}function lg(a,y){if(typeof y=="function"){if(y.className)return y.className;if(y.name)return y.name}else if(typeof y=="object"&&y!==null&&y.constructor)return lg(a,y.constructor);return typeof y}function fy(a){return Ka[a]?Ka[a]:bn.go!==void 0&&bn.go[a]?bn.go[a]:null}function Pr(a,y){if(!a||!y)return null;try{if(typeof y=="function")var x=y(a);else typeof a.getAttribute=="function"?(x=a.getAttribute(y),x===null&&(x=void 0)):x=a[y]}catch(b){}return x}function Ki(a,y,x){if(a&&y)try{typeof y=="function"?y(a,x):typeof a.setAttribute=="function"?a.setAttribute(y,x):a[y]=x}catch(b){}}qe.Object.defineProperties(Ln.prototype,{name:{get:function(){return this.xa},set:function(a){var y=this.xa;y!==a&&(this.xa=a,this.g("name",y,a))}},dataFormat:{get:function(){return this.Sm},set:function(a){var y=this.Sm;y!==a&&(this.Sm=a,this.g("dataFormat",y,a))}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},modelData:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.g("modelData",y,a),this.La(a))}},undoManager:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&(y!==null&&y.Rx(this),this.o=a,a!==null&&a.Xw(this))}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a}},nodeKeyProperty:{get:function(){return this.Th},set:function(a){var y=this.Th;y!==a&&(a===""&&We("Model.nodeKeyProperty may not be the empty string"),0b.indexOf(a.newValue)&&b.splice(x,0,a.newValue));return}}else if(a.change===Hr){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,on(a)&&typeof x=="number"&&(b=this.Ac(a),y?(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),b!==void 0&&this.wb.add(b,a)):(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),b!==void 0&&this.wb.remove(b)));return}if(a.modelChange==="linkLabelKeys"){b=this.Ef(a.object),Array.isArray(b)&&typeof x=="number"&&(y?0>b.indexOf(a.newValue)&&b.splice(x,0,a.newValue):(x=b.indexOf(a.newValue),0<=x&&b.splice(x,1)));return}}Ln.prototype.changeState.call(this,a,y)}},ee=li.prototype,ee.Vl=function(a){if(a!==void 0){var y=this.Ri;if(y!==null){var x=this.hc(a);x===null&&(x=this.copyNodeData(y),Ki(x,this.nodeKeyProperty,a),this.xf(x))}return a}},ee.yx=function(a){return ra(this,a,!0)},ee.wv=function(a,y){Od(this,a,y,!0)},ee.Bx=function(a){return ra(this,a,!1)},ee.Bv=function(a,y){Od(this,a,y,!1)};function ra(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=Pr(y,a),a!==void 0))){if(Rh(a))return a;We((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Od(a,y,x,b){if(x===null&&(x=void 0),y!==null){var tt=b?a.lf:a.mf;if(tt!=="")if(x=a.Vl(x),a.Jc(y)){var et=Pr(y,tt);et!==x&&(ll(a,et,y),Ki(y,tt,x),a.hc(x)===null&&al(a,x,y),zr(a,b?"linkFromKey":"linkToKey",tr,tt,y,et,x),typeof tt=="string"&&a.La(y,tt))}else Ki(y,tt,x)}}ee.zx=function(a){return h0(this,a,!0)},ee.xv=function(a,y){jd(this,a,y,!0)},ee.Cx=function(a){return h0(this,a,!1)},ee.Cv=function(a,y){jd(this,a,y,!1)};function h0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=Pr(y,a),y===void 0?"":y)}function jd(a,y,x,b){if(y!==null){var tt=b?a.ej:a.fj;if(tt!=="")if(a.Jc(y)){var et=Pr(y,tt);et===void 0&&(et=""),et!==x&&(Ki(y,tt,x),zr(a,b?"linkFromPortId":"linkToPortId",tr,tt,y,et,x),typeof tt=="string"&&a.La(y,tt))}else Ki(y,tt,x)}}ee.Ef=function(a){if(a===null)return c0;var y=this.je;return y===""?c0:(a=Pr(a,y),a===void 0?c0:a)},ee.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var b=Pr(a,x);if(b===void 0&&(b=c0),b!==y){if(Array.isArray(b))for(var tt=b.length,et=0;ettt||(b.splice(tt,1),this.Jc(a)&&(ll(this,y,a),zr(this,"linkLabelKeys",Hr,x,a,y,null,tt,null)))}else b!==void 0&&We(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},ee.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=Pr(a,y),y!==void 0)){if(Rh(y))return y;We("Key value for link data "+a+" is not a number or a string: "+y)}}},ee.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var b=Pr(a,x);b!==y&&this.jh(y)===null&&(Ki(a,x,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),zr(this,"linkKey",tr,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ki(a,x,y)}},ee.jh=function(a){return a===null&&We("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&Rh(a)?this.wb.I(a):null},ee.Bs=function(a){if(a!==null){var y=this.Jh;if(y!==""){var x=this.Ac(a);if(x===void 0||this.wb.contains(x)){var b=this.cl;if(b!==null&&(x=b(this,a),x!=null&&!this.wb.contains(x))){Ki(a,y,x);return}if(typeof x=="string"){for(b=2;this.wb.contains(x+b);)b++;Ki(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;Ki(a,y,x)}}}}},ee.Jc=function(a){return a===null?!1:this.$f.contains(a)},ee.fi=function(a){a!==null&&(Io(a),this.Jc(a)||TS(this,a,!0))};function TS(a,y,x){if(a.linkKeyProperty!==""){var b=a.Ac(y);if(b!==void 0&&a.wb.I(b)===y)return;a.Bs(y),b=a.Ac(y),b===void 0&&We("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(b,y)}a.$f.add(y),b=null,x&&(b=a.md.length,a.md.splice(b,0,y)),zr(a,"linkDataArray",Ar,"linkDataArray",a,null,y,null,b),dy(a,y)}ee.Ey=function(a){if(Array.isArray(a))for(var y=a.length,x=0;xb)return;a.md.splice(b,1)}if(zr(a,"linkDataArray",Hr,"linkDataArray",a,y,null,b,null),x=ra(a,y,!0),ll(a,x,y),x=ra(a,y,!1),ll(a,x,y),b=a.Ef(y),Array.isArray(b))for(var tt=b.length,et=0;etb.indexOf(a.newValue)&&b.splice(x,0,a.newValue));return}}else if(a.change===Hr){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,on(a)&&typeof x=="number"&&(b=this.Ac(a),y?(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),b!==void 0&&this.wb.add(b,a)):(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),b!==void 0&&this.wb.remove(b)));return}if(a.modelChange==="linkLabelKeys"){b=this.Ef(a.object),Array.isArray(b)&&typeof x=="number"&&(y?0>b.indexOf(a.newValue)&&b.splice(x,0,a.newValue):(x=b.indexOf(a.newValue),0<=x&&b.splice(x,1)));return}}Ln.prototype.changeState.call(this,a,y)}},ee=li.prototype,ee.Vl=function(a){if(a!==void 0){var y=this.Ri;if(y!==null){var x=this.hc(a);x===null&&(x=this.copyNodeData(y),Ki(x,this.nodeKeyProperty,a),this.xf(x))}return a}},ee.yx=function(a){return ra(this,a,!0)},ee.wv=function(a,y){Od(this,a,y,!0)},ee.Bx=function(a){return ra(this,a,!1)},ee.Bv=function(a,y){Od(this,a,y,!1)};function ra(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=Pr(y,a),a!==void 0))){if(Rh(a))return a;We((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Od(a,y,x,b){if(x===null&&(x=void 0),y!==null){var tt=b?a.lf:a.mf;if(tt!=="")if(x=a.Vl(x),a.Jc(y)){var et=Pr(y,tt);et!==x&&(ll(a,et,y),Ki(y,tt,x),a.hc(x)===null&&al(a,x,y),zr(a,b?"linkFromKey":"linkToKey",tr,tt,y,et,x),typeof tt=="string"&&a.La(y,tt))}else Ki(y,tt,x)}}ee.zx=function(a){return h0(this,a,!0)},ee.xv=function(a,y){jd(this,a,y,!0)},ee.Cx=function(a){return h0(this,a,!1)},ee.Cv=function(a,y){jd(this,a,y,!1)};function h0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=Pr(y,a),y===void 0?"":y)}function jd(a,y,x,b){if(y!==null){var tt=b?a.ej:a.fj;if(tt!=="")if(a.Jc(y)){var et=Pr(y,tt);et===void 0&&(et=""),et!==x&&(Ki(y,tt,x),zr(a,b?"linkFromPortId":"linkToPortId",tr,tt,y,et,x),typeof tt=="string"&&a.La(y,tt))}else Ki(y,tt,x)}}ee.Ef=function(a){if(a===null)return c0;var y=this.je;return y===""?c0:(a=Pr(a,y),a===void 0?c0:a)},ee.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var b=Pr(a,x);if(b===void 0&&(b=c0),b!==y){if(Array.isArray(b))for(var tt=b.length,et=0;ettt||(b.splice(tt,1),this.Jc(a)&&(ll(this,y,a),zr(this,"linkLabelKeys",Hr,x,a,y,null,tt,null)))}else b!==void 0&&We(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},ee.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=Pr(a,y),y!==void 0)){if(Rh(y))return y;We("Key value for link data "+a+" is not a number or a string: "+y)}}},ee.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var b=Pr(a,x);b!==y&&this.jh(y)===null&&(Ki(a,x,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),zr(this,"linkKey",tr,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ki(a,x,y)}},ee.jh=function(a){return a===null&&We("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&Rh(a)?this.wb.I(a):null},ee.Bs=function(a){if(a!==null){var y=this.Jh;if(y!==""){var x=this.Ac(a);if(x===void 0||this.wb.contains(x)){var b=this.cl;if(b!==null&&(x=b(this,a),x!=null&&!this.wb.contains(x))){Ki(a,y,x);return}if(typeof x=="string"){for(b=2;this.wb.contains(x+b);)b++;Ki(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;Ki(a,y,x)}}}}},ee.Jc=function(a){return a===null?!1:this.$f.contains(a)},ee.fi=function(a){a!==null&&(Io(a),this.Jc(a)||TS(this,a,!0))};function TS(a,y,x){if(a.linkKeyProperty!==""){var b=a.Ac(y);if(b!==void 0&&a.wb.I(b)===y)return;a.Bs(y),b=a.Ac(y),b===void 0&&We("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(b,y)}a.$f.add(y),b=null,x&&(b=a.md.length,a.md.splice(b,0,y)),zr(a,"linkDataArray",Ar,"linkDataArray",a,null,y,null,b),dy(a,y)}ee.Ey=function(a){if(Array.isArray(a))for(var y=a.length,x=0;xb)return;a.md.splice(b,1)}if(zr(a,"linkDataArray",Hr,"linkDataArray",a,y,null,b,null),x=ra(a,y,!0),ll(a,x,y),x=ra(a,y,!1),ll(a,x,y),b=a.Ef(y),Array.isArray(b))for(var tt=b.length,et=0;et=a.count)a.count===1&&(a=a.first(),a.centerX=0,a.centerY=0);else{var y=new vn;y.addAll(a.iterator),a=new vn;var x=new vn,b=this.sort(y),tt,et,nt=this.Jp,ht=this.arrangement,gt=this.nodeDiameterFormula,bt=this.radius;(!isFinite(bt)||0>=bt)&&(bt=NaN);var Pt=this.aspectRatio;(!isFinite(Pt)||0>=Pt)&&(Pt=1);var Nt=this.startAngle;isFinite(Nt)||(Nt=0);var zt=this.sweepAngle;if((!isFinite(zt)||360zt)&&(zt=360),y=this.spacing,isFinite(y)||(y=NaN),ht===Za&>===bf?ht=Xa:ht===Za&>!==bf&&(ht=this.arrangement),(this.direction===Oc||this.direction===Nd)&&this.sorting!==Dd){for(gt=0;!(gt>=b.length)&&(a.add(b.M(gt)),!(gt+1>=b.length));gt+=2)x.add(b.M(gt+1));this.direction===Oc?(this.arrangement===Za&&a.reverse(),b=new vn,b.addAll(a),b.addAll(x)):(this.arrangement===Za&&x.reverse(),b=new vn,b.addAll(x),b.addAll(a))}gt=b.length;for(var Vt=et=tt=0;Vtzt&&(Vt===0||Vt===b.length-1)&&(oe/=2),tt+=oe,et++}if(isNaN(bt)||ht===Za){if(isNaN(y)&&(y=6),ht!==Xa&&ht!==Za){for(et=-1/0,nt=0;ntbt?(bt=tt,et=bt*Pt):nt=Vt/(360<=zt?gt:gt-1)}if(this.kw=ht,this.lc=bt,this.Zm=Pt,this.lw=Nt,this.Wp=zt,this.Ti=y,this.me=et,this.Jp=nt,y=b,b=this.kw,ht=this.lc,bt=this.lw,Pt=this.Wp,Nt=this.Ti,zt=this.me,gt=this.Jp,this.direction!==Oc&&this.direction!==Nd||b!==Za)if(this.direction===Oc||this.direction===Nd){switch(nt=0,b){case zh:nt=180*d0(this,ht,zt,bt,gt)/Math.PI;break;case Xa:gt=y=0,nt=a.first(),nt!==null&&(y=Uh(nt,Math.PI/2)),nt=x.first(),nt!==null&&(gt=Uh(nt,Math.PI/2)),nt=180*d0(this,ht,zt,bt,Nt+(y+gt)/2)/Math.PI;break;case $u:nt=Pt/y.length}if(this.direction===Oc){switch(b){case zh:fg(this,a,bt,Gh);break;case Xa:cg(this,a,bt,Gh);break;case $u:hg(this,a,Pt/2,bt,Gh)}switch(b){case zh:fg(this,x,bt+nt,ds);break;case Xa:cg(this,x,bt+nt,ds);break;case $u:hg(this,x,Pt/2,bt+nt,ds)}}else{switch(b){case zh:fg(this,x,bt,Gh);break;case Xa:cg(this,x,bt,Gh);break;case $u:hg(this,x,Pt/2,bt,Gh)}switch(b){case zh:fg(this,a,bt+nt,ds);break;case Xa:cg(this,a,bt+nt,ds);break;case $u:hg(this,a,Pt/2,bt+nt,ds)}}}else switch(b){case zh:fg(this,y,bt,this.direction);break;case Xa:cg(this,y,bt,this.direction);break;case $u:hg(this,y,Pt,bt,this.direction);break;case Za:jS(this,y,Pt,bt,this.direction)}else jS(this,y,Pt,bt-Pt/2,ds)}this.updateParts(),this.network=null,this.isValidLayout=!0};function hg(a,y,x,b,tt){var et=a.Wp,nt=a.lc;a=a.me,b=b*Math.PI/180,x=x*Math.PI/180;for(var ht=y.length,gt=0;gtx){for(et=b+(tt===ds?et:-et);0>et;)et+=360;et%=360,180=Pt.length-1));Nt++)IS(a,gt,bt,Pt,Nt,tt,et)||FS(a,gt,bt,Pt,Nt,tt,et),gt=et.x,bt=et.y;if(Ee.free(et),a.mj++,!(23Math.abs(Vt)?Math.abs(gt-et)<(Pt[0].width+Pt[Pt.length-1].width)/2&&(nt=0):nt=0Math.abs(zt)?0:zt,gt=Math.abs(et)>Math.abs(Nt)?0Nt:0a.mj?a.lc-nt/(2*Math.PI):5>Pt.length&&10=Nt.length-1));zt++)IS(a,gt,bt,Nt,zt,tt,Pt)||FS(a,gt,bt,Nt,zt,tt,Pt),gt=Pt.x,bt=Pt.y;if(Ee.free(Pt),a.mj++,!(23a.mj?a.lc-et/(2*Math.PI):a.lc-(0ht){if(et=y-a,et<-ht)return nt.x=et,nt.y=bt,!1;Pt=!0}}else if(et=y-a,et<-ht){if(et=y+a,et>ht)return nt.x=et,nt.y=bt,!1;Pt=!0}return bt=Math.sqrt(1-Math.min(1,et*et/(ht*ht)))*gt,0>x!==Pt&&(bt=-bt),Math.abs(x-bt)>(b[tt].height+b[tt+1].height)/2?(nt.x=et,nt.y=bt,!1):(nt.x=et,nt.y=bt,!0)}function FS(a,y,x,b,tt,et,nt){var ht=a.lc,gt=a.me,bt=0;if(a=(b[tt].height+b[tt+1].height)/2+a.Ti,b=!1,0<=y!=(et===ds)){if(et=x-a,et<-gt){if(et=x+a,et>gt){nt.x=bt,nt.y=et;return}b=!0}}else if(et=x+a,et>gt){if(et=x-a,et<-gt){nt.x=bt,nt.y=et;return}b=!0}bt=Math.sqrt(1-Math.min(1,et*et/(gt*gt)))*ht,0>y!==b&&(bt=-bt),nt.x=bt,nt.y=et}ar.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},ar.prototype.commitNodes=function(){var a=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,y=a?this.group.location.copy():null,x=this.actualCenter;a?x=new Ee(0,0):(x.x=this.arrangementOrigin.x+this.lc,x.y=this.arrangementOrigin.y+this.me);for(var b=this.network.vertexes.iterator;b.next();){var tt=b.value;tt.x+=x.x,tt.y+=x.y,tt.commit()}a&&(this.group.Va(),a=this.group.position.copy(),x=this.group.location.copy(),y=y.re(x.re(a)),this.group.move(y),this.Zv=y.re(a))},ar.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function py(a,y,x,b,tt){var et=a.ty;if(.001>Math.abs(a.Zm-1))return b!==void 0&&tt!==void 0?tt*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var nt=0,ht=b!==void 0&&tt!==void 0?tt/(et+1):Math.PI/(2*(et+1)),gt=0,bt=0;bt<=et;bt++){b!==void 0&&tt!==void 0?gt=b+bt*tt/et:gt=bt*Math.PI/(2*et);var Pt=Math.sin(gt);nt+=Math.sqrt(1-a*a*Pt*Pt)*ht}return b!==void 0&&tt!==void 0?(y>x?y:x)*nt:4*(y>x?y:x)*nt}function f0(a,y,x,b,tt){return y/(b!==void 0&&tt!==void 0?py(a,1,x,b,tt):py(a,1,x))}function d0(a,y,x,b,tt){if(.001>Math.abs(a.Zm-1))return tt/y;var et=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,nt=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(b+=Math.PI/2);for(var ht=0;;ht++){var gt=Math.sin(b+ht*a);if(nt+=(y>x?y:x)*Math.sqrt(1-et*et*gt*gt)*a,nt>=tt)return ht*a}}ar.prototype.sort=function(a){switch(this.sorting){case p0:break;case g0:a.reverse();break;case m0:a.sort(this.comparer);break;case v0:a.sort(this.comparer),a.reverse();break;case Dd:return this.ak(Nw(a));default:We("Invalid sorting type.")}return a};function Nw(a){for(var y=[],x=0;xtt&&(tt=ht,et=nt)}else for(nt=0;nttt&&(tt=ht,et=nt);for(x.add(a.M(et)),y[et]=-1,et=a.M(et),nt=et.sourceEdges;nt.next();)tt=a.indexOf(nt.value.fromVertex),0>tt||0<=y[tt]&&y[tt]++;for(et=et.destinationEdges;et.next();)tt=a.indexOf(et.value.toVertex),0>tt||0<=y[tt]&&y[tt]++}return x}ar.prototype.ak=function(a){for(var y=[],x=0;xy[x].indexOf(tt)&&y[x].push(tt);for(b=b.sourceEdges;b.next();)tt=a.indexOf(b.value.fromVertex),tt!==x&&0>y[x].indexOf(tt)&&y[x].push(tt)}for(et=[],x=0;xy[x[Zt]].indexOf(x[Zt===x.length-1?0:Zt+1])&&Vt.push(Zt===x.length-1?0:Zt+1);if(Vt.length===0)for(Zt=0;Ztx.indexOf(Ve)||Rex.indexOf(Ve)||Re=oe?Re+1:Re)),de+=Re=oe&&Re++,Oe>=oe&&Oe++,Re>Oe&&(De=Oe,Oe=Re,Re=De),Oe-Re<(x.length+2)/2==(ReVt||Vt===Pt||(Zt=Vt>Pt?Vt-Pt:Pt-Vt,Nt+=Vtnt-Zt?1:-1);x.splice(0>Nt?Pt:Pt+1,0,gt),b.splice(ht,1),ht--}else et=!1;if(et)break;x.push(b[0]),b.splice(0,1)}for(y=0;y=a?this.ul=a:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==Za&&a!==Xa&&a!==zh&&a!==$u||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==ds&&a!==Gh&&a!==Oc&&a!==Nd||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==p0&&a!==g0&&a!==m0&&!v0&&a!==Dd||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf!==a&&(this.tf=a,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(a){this.Nn===a||a!==y0&&a!==bf||(this.Nn=a,this.C())}},actualXRadius:{get:function(){return this.lc}},actualYRadius:{get:function(){return this.me}},actualSpacing:{get:function(){return this.Ti}},actualCenter:{get:function(){return this.Zv}}});var Xa=new sn(ar,"ConstantSpacing",0),zh=new sn(ar,"ConstantDistance",1),$u=new sn(ar,"ConstantAngle",2),Za=new sn(ar,"Packed",3),ds=new sn(ar,"Clockwise",4),Gh=new sn(ar,"Counterclockwise",5),Oc=new sn(ar,"BidirectionalLeft",6),Nd=new sn(ar,"BidirectionalRight",7),p0=new sn(ar,"Forwards",8),g0=new sn(ar,"Reverse",9),m0=new sn(ar,"Ascending",10),v0=new sn(ar,"Descending",11),Dd=new sn(ar,"Optimized",12),y0=new sn(ar,"Pythagorean",13),bf=new sn(ar,"Circular",14);ar.className="CircularLayout",ar.ConstantSpacing=Xa,ar.ConstantDistance=zh,ar.ConstantAngle=$u,ar.Packed=Za,ar.Clockwise=ds,ar.Counterclockwise=Gh,ar.BidirectionalLeft=Oc,ar.BidirectionalRight=Nd,ar.Forwards=p0,ar.Reverse=g0,ar.Ascending=m0,ar.Descending=v0,ar.Optimized=Dd,ar.Pythagorean=y0,ar.Circular=bf;function dg(){this.Pl=-1/0,this.tm=this.mk=null}dg.prototype.compare=function(a,y){if(0this.Pl||Math.abs(a)a&&0ht?(tt=zt.x+zt.width/2,et=zt.y+zt.height/2,bt[0]=new Ee(zt.x+zt.width+b.width,zt.y),bt[1]=new Ee(zt.x,zt.y+zt.height+b.height),ht=2):(gt=RS(bt,ht,tt,et,zt.width,zt.height,b),Nt=bt[gt],Vt=new Ee(Nt.x+zt.width+b.width,Nt.y),zt=new Ee(Nt.x,Nt.y+zt.height+b.height),gt+1this.network.vertexes.count)return!1;for(var a=0,y=0,x=this.network.vertexes.first().bounds,b=this.network.vertexes.iterator;b.next();){if(b.value.bounds.Yc(x)&&(a++,2a.network.vertexes.count)return!1;for(a.ah=a.network.vertexes.Fa(),a=a.ah,a.sort(function(x,b){return x===null||b===null||x===b?0:b.Vd-x.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1=nt))){for(var bt=ht=0,Pt=gt.count-nt;PtVt&&(Vt=1),ht=Ge.sqrt((ht+Vt+bt*bt*4/(nt*nt))/Vt),nt=(ht-1)*Pt/2,ht=(ht-1)*Nt/2,tt.bounds=new $e(et-zt.x-nt,gt-zt.y-ht,Pt+2*nt,Nt+2*ht),tt.focus=new Ee(zt.x+nt,zt.y+ht)}}return a.network=b,x}function Fw(a,y){for(var x=a.network.vertexes.iterator;x.next();){var b=x.value;if(b.network=y,b.We!==null){var tt=b.We.M(b.sv);b.Vd=tt.Rs;var et=tt.Sv,nt=tt.Tv;b.bounds=new $e(b.centerX-et,b.centerY-nt,tt.Ss,tt.Qs),b.focus=new Ee(et,nt),b.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function Bw(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var b=y.centerX,tt=y.centerY,et=y.width,nt=y.height;y.We!==null&&0=Nt.Vd?gt++:(ht=!0,bt++,nt+=Math.atan2(y.centerY-Nt.centerY,y.centerX-Nt.centerX))}if(gt!==0){for(0>1)+bt)*(ht%2===0?1:-1),gt.centerX=b+Pt*Math.cos(Nt),gt.centerY=tt+Pt*Math.sin(Nt),ht++}}}}function RS(a,y,x,b,tt,et,nt){var ht=9e19,gt=-1,bt=0;t:for(;btPt.y&&a[zt].x-Pt.xPt.x&&a[zt].y-Pt.yy+et?(x=b+tt-nt,a=a-y-et,Ge.sqrt(x*x+a*a)):a+xnt+ht?a>y+et?(x=b-nt-ht,a=a-y-et,Ge.sqrt(x*x+a*a)):a+xy+et?a-(y+et):a+x=y.length)return!1;var x=y[0];x.forceX=0,x.forceY=0;for(var b=x.centerX,tt=b,et=x=x.centerY,nt=1;ntet-x)?y.sort(function(oe,Pe){return oe===null||Pe===null||oe===Pe?0:oe.centerX-Pe.centerX}):y.sort(function(oe,Pe){return oe===null||Pe===null||oe===Pe?0:oe.centerY-Pe.centerY}),x=a.Zf;var bt=b=ht=0;for(et=0;etx||bt-gt>x){if(tt)break}else if(Pt-Vt>x||Vt-Pt>x){if(!tt)break}else{var Zt=zS(nt,zt);1>Zt?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new w0),Zt=b.random(),ht=b.random(),gt>bt?(b=Math.abs(zt.bounds.right-nt.bounds.x),b=(1+b)*Zt):gtVt?(bt=Math.abs(zt.bounds.bottom-nt.bounds.y),bt=(1+bt)*ht):gtNt?(Nt=a.randomNumberGenerator,Nt===null&&(a.randomNumberGenerator=Nt=new w0),ht=Nt.random(),Nt=Nt.random(),b=(b>gt?1:-1)*(1+(et.width>x.width?et.width:x.width))*ht,bt=(nt>Pt?1:-1)*(1+(et.height>x.height?et.height:x.height))*Nt):(ht=ht.stiffness*(Nt-ht.length),b=(gt-b)/Nt*ht,bt=(Pt-nt)/Nt*ht),x.forceX+=b,x.forceY+=bt,et.forceX-=b,et.forceY-=bt;for(tt=b=0;tta.epsilonDistance*a.epsilonDistance}_o.prototype.moveVertex=function(a){var y=a.forceX,x=a.forceY,b=this.moveLimit;return y<-b?y=-b:y>b&&(y=b),x<-b?x=-b:x>b&&(x=b),a.centerX+=y,a.centerY+=x,y*y+x*x},_o.prototype.moveFixedVertex=function(){},_o.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},_o.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=oo,y.toSpot=oo)}},_o.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=$e.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,$e.free(x)}x=$e.alloc();for(var b=this.network.vertexes.iterator;b.next();){var tt=b.value;(a!==0||y!==0)&&(x.assign(tt.bounds),x.x+=a,x.y+=y,tt.bounds=x),tt.commit()}$e.free(x)},_o.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},_o.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},_o.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},_o.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},_o.prototype.electricalFieldX=function(){return 0},_o.prototype.electricalFieldY=function(){return 0},_o.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},_o.prototype.gravitationalFieldX=function(){return 0},_o.prototype.gravitationalFieldY=function(){return 0},_o.prototype.isFixed=function(a){return a.isFixed},qe.Object.defineProperties(_o.prototype,{currentIteration:{get:function(){return this.An}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},arrangesToOrigin:{get:function(){return this.Bm},set:function(a){this.Bm!==a&&(this.Bm=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},maxIterations:{get:function(){return this.dl},set:function(a){this.dl!==a&&0<=a&&(this.dl=a,this.C())}},epsilonDistance:{get:function(){return this.$m},set:function(a){this.$m!==a&&0oe&&0oe&&0a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]nt)for(var Pt=nt+1;Ptgt;Pt--)Nt=b[Pt],Nt.near===bt&&Nt.Dj===bt.Dj||ht++;var zt;if(0<=x)for(gt=b[nt].sourceEdgesArrayAccess,bt=0;btoe||Nt===oe&&Vt>Zt)&&ht++,PeNt||oe===Nt&&Zt>Vt)&&ht++}}}if(0>=x){for(gt=b[nt].destinationEdgesArrayAccess,bt=0;btoe||Nt===oe&&Pt>Pe)&&ht++,ZtNt||oe===Nt&&Pe>Pt)&&ht++)}for(et[nt*tt+nt]=ht,gt=nt+1;gt=x){for(ht=b[nt].destinationEdgesArrayAccess,Oe=b[gt].destinationEdgesArrayAccess,bt=0;bt=x&&(gt=ht.sourceEdgesArrayAccess);var bt=null;0<=x&&(bt=ht.destinationEdgesArrayAccess);var Pt=0,Nt=0,zt=ht.near;if(zt!==null&&zt.layer===ht.layer&&(Pt+=zt.column-1,Nt++),gt!==null)for(zt=0;zt=x&&(gt=ht.sourceEdgesArrayAccess);var bt=null;0<=x&&(bt=ht.destinationEdgesArrayAccess);var Pt=0,Nt=[],zt=ht.near;if(zt!==null&&zt.layer===ht.layer&&(Nt[Pt]=zt.column-1,Pt++),ht=void 0,gt!==null)for(zt=0;zt>1,et[nt]=Pt&1?Nt[bt]:Nt[bt-1]+Nt[bt]>>1)}return Wh(a,y,b),et}function vg(a,y,x,b,tt,et){if(y.component===b){if(y.component=x,tt)for(var nt=y.destinationEdges;nt.next();){var ht=nt.value,gt=ht.toVertex,bt=y.layer-gt.layer;ht=a.linkMinLength(ht),bt===ht&&vg(a,gt,x,b,tt,et)}if(et)for(nt=y.sourceEdges;nt.next();)ht=nt.value,gt=ht.fromVertex,bt=gt.layer-y.layer,ht=a.linkMinLength(ht),bt===ht&&vg(a,gt,x,b,tt,et)}}function vy(a,y,x,b,tt,et){if(y.component===b){if(y.component=x,tt)for(var nt=y.destinationEdges;nt.next();)vy(a,nt.value.toVertex,x,b,tt,et);if(et)for(y=y.sourceEdges;y.next();)vy(a,y.value.fromVertex,x,b,tt,et)}}Ci.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case wy:a=this.network;var y=0,x=a.vertexes.count-1,b=[];b.length=x+1;for(var tt=a.vertexes.iterator;tt.next();)tt.value.valid=!0;for(;zw(a)!==null;){for(tt=VS(a);tt!==null;)b[x]=tt,x--,tt.valid=!1,tt=VS(a);for(tt=YS(a);tt!==null;)b[y]=tt,y++,tt.valid=!1,tt=YS(a);tt=null;for(var et=0,nt=this.network.vertexes.iterator;nt.next();){var ht=nt.value;if(ht.valid){for(var gt=0,bt=ht.destinationEdges;bt.next();)bt.value.toVertex.valid&>++;bt=0;for(var Pt=ht.sourceEdges;Pt.next();)Pt.value.fromVertex.valid&&bt++;(tt===null||ety.toVertex.index&&(a.gm(y),y.rev=!0);break;case E0:for(b=this.network.vertexes.iterator;b.next();)a=b.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,b.reset();b.next();)y=b.value,y.sourceEdges.count===0&&yy(this,y);for(b.reset();b.next();)y=b.value,y.Ll===-1&&yy(this,y);for(a.reset();a.next();)b=a.value,b.forest||(y=b.fromVertex,x=y.finish,tt=b.toVertex,et=tt.finish,tt.Llb){if(0>b)for(y.reset();y.next();)y.value.layer-=b;for(b=[],y.reset();y.next();)x=y.value,tt=b[x.layer],tt===void 0?b[x.layer]=[x]:tt.push(x);for(x=y=0;xnt&&vg(a,ht,0,-1,!0,!1)}for(vg(a,y,1,-1,!0,!0);y.component!==0;){for(et=0,b=1/0,ht=0,gt=null,nt=a.network.vertexes.iterator;nt.next();){var bt=nt.value;if(bt.component===1){var Pt=0,Nt=!1,zt=bt.sourceEdgesArrayAccess;tt=zt.length;for(var Vt=0;Vtet)&&!Pt&&(ht=nt,et=bt)}if(0>b){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer-=tt);y.component=0}else ht.component=0}}}function JS(a,y,x){return a.K===90?x&&!y.rev||!x&&y.rev?270:90:a.K===180?x&&!y.rev||!x&&y.rev?0:180:a.K===270?x&&!y.rev||!x&&y.rev?90:270:x&&!y.rev||!x&&y.rev?180:0}Ci.prototype.initializeIndices=function(){switch(this.Qk){default:case Cy:for(var a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;y.index=this.tc[x],this.tc[x]++}break;case M0:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&qS(this,x);break;case Py:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&$S(this,x)}};function qS(a,y){var x=y.layer;for(y.index=a.tc[x],a.tc[x]++,y=y.destinationEdgesArrayAccess,x=!0;x;){x=!1;for(var b=0;bet.portFromColOffset&&(x=!0,y[b]=et,y[b+1]=tt)}}for(x=0;xet.portToColOffset&&(b=!0,y[x]=et,y[x+1]=tt)}for(x=0;x=nt;b--)et=ja(this,b,-1)||et;for(tt=this.countCrossings(),tt>=a?Sa(this,y):(a=tt,y=Cs(this)),et=!0;et;)for(et=!1,b=x;b>=nt;b--)et=ja(this,b,1)||et;for(tt=this.countCrossings(),tt>=a?Sa(this,y):(a=tt,y=Cs(this)),et=!0;et;)for(et=!1,b=nt;b<=x;b++)et=ja(this,b,1)||et;for(tt>=a?Sa(this,y):(a=tt,y=Cs(this)),et=!0;et;)for(et=!1,b=nt;b<=x;b++)et=ja(this,b,-1)||et;for(tt>=a?Sa(this,y):(a=tt,y=Cs(this)),et=!0;et;)for(et=!1,b=x;b>=nt;b--)et=ja(this,b,0)||et;for(tt>=a?Sa(this,y):(a=tt,y=Cs(this)),et=!0;et;)for(et=!1,b=nt;b<=x;b++)et=ja(this,b,0)||et;tt>=a?Sa(this,y):(a=tt,y=Cs(this))}break;default:case k0:for(x=this.Ia,nt=0,ht=a+1;(b=this.countCrossings())=nt;b--)et=ja(this,b,-1)||et;for(tt=this.countCrossings(),tt>=a?Sa(this,y):(a=tt,y=Cs(this)),et=!0;et;)for(et=!1,b=x;b>=nt;b--)et=ja(this,b,1)||et;for(tt=this.countCrossings(),tt>=a?Sa(this,y):(a=tt,y=Cs(this)),et=!0;et;)for(et=!1,b=nt;b<=x;b++)et=ja(this,b,1)||et;for(tt>=a?Sa(this,y):(a=tt,y=Cs(this)),et=!0;et;)for(et=!1,b=nt;b<=x;b++)et=ja(this,b,-1)||et;for(tt>=a?Sa(this,y):(a=tt,y=Cs(this)),et=!0;et;)for(et=!1,b=x;b>=nt;b--)et=ja(this,b,0)||et;for(tt>=a?Sa(this,y):(a=tt,y=Cs(this)),et=!0;et;)for(et=!1,b=nt;b<=x;b++)et=ja(this,b,0)||et;tt>=a?Sa(this,y):(a=tt,y=Cs(this))}}Sa(this,y)};function b0(a,y,x){var b=Hh(a,y),tt=a.tc[y],et=WS(a,y,x),nt=my(a,y,x);for(x=0;xet+1&&(zt+=4*(Le-et),Vt+=4*(Le-(et+1)))}for(De=b[et].destinationEdges.iterator,De.reset();De.next();)if(Le=De.value,Oe=Le.toVertex,Le.valid&&Oe.layer===y){for(Le=0;b[Le]!==Oe;)Le++;Le===et+1&&(Vt+=1)}for(De=b[et+1].sourceEdges.iterator,De.reset();De.next();)if(Le=De.value,Oe=Le.fromVertex,Le.valid&&Oe.layer===y){for(Le=0;b[Le]!==Oe;)Le++;Leet+1&&(zt+=4*(Le-(et+1)),Vt+=4*(Le-et))}for(De=b[et+1].destinationEdges.iterator,De.reset();De.next();)if(Le=De.value,Oe=Le.toVertex,Le.valid&&Oe.layer===y){for(Le=0;b[Le]!==Oe;)Le++;Le===et&&(zt+=1)}Le=Oe=0,De=nt[b[et].index];var Re=ht[b[et].index],Ve=nt[b[et+1].index],Sn=ht[b[et+1].index];De!==-1&&(Oe+=Math.abs(De-Zt),Le+=Math.abs(De-de)),Re!==-1&&(Oe+=Math.abs(Re-Zt),Le+=Math.abs(Re-de)),Ve!==-1&&(Oe+=Math.abs(Ve-oe),Le+=Math.abs(Ve-Pe)),Sn!==-1&&(Oe+=Math.abs(Sn-oe),Le+=Math.abs(Sn-Pe)),(Vt>1)+8*b;this.Ra*=8}if(this.bg&2)for(x=!0;x;){for(x=!1,y=this.Md+1;y<=this.Ia;y++)x=Fd(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Fd(this,y,-1)||x;x=Fd(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)Sy(this,y,1);for(y=this.Md-1;0<=y;y--)Sy(this,y,-1);Sy(this,this.Md,0)}if(a&&(tw(this,-1),tw(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Fd(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Fd(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Fd(this,y,0)||x}}else Ww(this)};function Fd(a,y,x){for(var b=!1;Gw(a,y,x);)b=!0;return b}function Gw(a,y,x){var b,tt=Hh(a,y),et=a.tc[y],nt=my(a,y,-1);if(0x)for(b=0;bb-1||Pt-tt[b-1].column-1>Nt+a.nodeMinColumnSpace(tt[b-1],!1)?Vt=Pt-1:Vt=Pt,Nt=b+1>=et||tt[b+1].column-Pt-1>zt+a.nodeMinColumnSpace(tt[b+1],!0)?Pt+1:Pt;var Zt=zt=0,oe=0;if(0>=x)for(var Pe=tt[b].sourceEdges.iterator;Pe.next();){var de=Pe.value,Le=de.fromVertex;if(de.valid&&Le.layer!==y){var Oe=gy(de),De=de.portFromColOffset;de=de.portToColOffset,Le=Le.column,zt+=(Math.abs(Pt+de-(Le+De))+1)*Oe,Zt+=(Math.abs(Vt+de-(Le+De))+1)*Oe,oe+=(Math.abs(Nt+de-(Le+De))+1)*Oe}}if(0<=x)for(Pe=tt[b].destinationEdges.iterator;Pe.next();)de=Pe.value,Le=de.toVertex,de.valid&&Le.layer!==y&&(Oe=gy(de),De=de.portFromColOffset,de=de.portToColOffset,Le=Le.column,zt+=(Math.abs(Pt+De-(Le+de))+1)*Oe,Zt+=(Math.abs(Vt+De-(Le+de))+1)*Oe,oe+=(Math.abs(Nt+De-(Le+de))+1)*Oe);de=De=Oe=0,Pe=nt[tt[b].index],Le=ht[tt[b].index],Pe!==-1&&(Oe+=Math.abs(Pe-Pt),De+=Math.abs(Pe-Vt),de+=Math.abs(Pe-Nt)),Le!==-1&&(Oe+=Math.abs(Le-Pt),De+=Math.abs(Le-Vt),de+=Math.abs(Le-Nt)),Zt=nt[x]?Pt=gt:bt<=nt[x]&&(Pt=bt));Pt!==ht&&(et=!0,b[x].column=Pt)}Wh(a,y,b),a.normalize()}function Uw(a,y){for(var x=!0,b=a.network.vertexes.iterator;b.next();){var tt=b.value,et=a.nodeMinColumnSpace(tt,!0),nt=a.nodeMinColumnSpace(tt,!1);if(tt.column-et<=y&&tt.column+nt>=y){x=!1;break}}if(a=!1,x)for(b.reset();b.next();)x=b.value,x.column>y&&(--x.column,a=!0);return a}function Hw(a,y){var x=y+1,b,tt=[],et=[];for(b=0;b<=a.Ia;b++)tt[b]=!1,et[b]=!1;for(var nt=a.network.vertexes.iterator;nt.next();){b=nt.value;var ht=b.column-a.nodeMinColumnSpace(b,!0),gt=b.column+a.nodeMinColumnSpace(b,!1);ht<=y&>>=y&&(tt[b.layer]=!0),ht<=x&>>=x&&(et[b.layer]=!0)}for(ht=!0,x=!1,b=0;b<=a.Ia;b++)ht=ht&&!(tt[b]&&et[b]);if(ht)for(nt.reset();nt.next();)a=nt.value,a.column>y&&(--a.column,x=!0);return x}function tw(a,y){for(var x=0;x<=a.Ra;x++)for(;Uw(a,x););for(a.normalize(),x=0;xet?Sa(a,tt):nty)for(x=a.Ra;0<=x;x--)for(tt=Cs(a),et=x0(a),b=et+1;etet?Sa(a,tt):ntx)for(b.reset();b.next();)tt=b.value,tt.column+a.nodeMinColumnSpace(tt,!1)>=y&&(tt.component=a.le);for(a.le++,b.reset();b.next();)y=b.value,y.component===-1&&(vy(a,y,a.le,-1,!0,!0),a.le++);var et;for(y=[],et=0;etx)for(nt=a.Ra;0x)for(b.reset();b.next();)x=b.value,tt[x.component]&&(x.column+=1)}function Ww(a){for(var y=oi(),x=a.fl.length,b=0;b<=x;b++)y[b]=[];for(b=a.network.vertexes.iterator;b.next();){var tt=b.value;y[x-tt.layer][tt.index]=tt}x=new gn,Vw(y,x);var et=null,nt=null,ht=null,gt=null,bt=(a.ve&1)!==0,Pt=(a.ve&2)!==0,Nt=(a.ve&4)!==0,zt=(a.ve&8)!==0;for(bt&&(a.verticalAlignment(y,x,!0),et=P0(a,y,!0,!1)),y.reverse(),Nt&&(a.verticalAlignment(y,x,!1),ht=P0(a,y,!1,!1)),b=mr(y),tt=b.next();!tt.done;tt=b.next())tt.value.reverse();zt&&(a.verticalAlignment(y,x,!1),gt=P0(a,y,!1,!0)),y.reverse(),Pt&&(a.verticalAlignment(y,x,!0),nt=P0(a,y,!0,!0)),ri(y),a.u(et,nt,ht,gt),a.network.vertexes.each(function(Vt){var Zt=oi();bt&&Zt.push(et.get(Vt)),Pt&&Zt.push(nt.get(Vt)),Nt&&Zt.push(ht.get(Vt)),zt&&Zt.push(gt.get(Vt)),Zt.sort(function(Pe,de){return Pe-de});var oe=Zt.length;oe=(Zt[Math.floor((oe-1)/2)]+Zt[Math.ceil((oe-1)/2)])/2,ri(Zt),Vt.zc=oe})}function Vw(a,y){for(var x=a.length,b=1;bPt)&&y.add(Nt);et++}tt=Pt}}}Ci.prototype.verticalAlignment=function(a,y,x){Yw(a),a=mr(a);for(var b=a.next();!b.done;b=a.next()){var tt=-1;b=mr(b.value);for(var et=b.next();!et.done;et=b.next()){et=et.value;var nt=x?My(et):Zw(et),ht=nt.length;if(0=y[x].length)&&(nt=y[x][0],nt.sd===nt)){nt.sd.shift===1/0&&(nt.sd.shift=0),nt=x,ht=0;do{for(et=y[nt][ht];et.align!==et.root;)et=et.align,nt++,0a&&We("Could not determine previous vertex in layer"),y[x][a-1]}Ci.prototype.u=function(a){for(var y=[],x=0;xnt;nt++)if(y[nt]){var ht=Kw(this,y[nt],b,tt,nt);htnt;et={delta:et.delta},nt++)y[nt]&&(et.delta=nt===0||nt===2?b[x]-b[nt]:tt[x]-tt[nt],et.delta!==0&&y[nt].each(function(gt){return function(bt){bt.value+=gt.delta}}(et)));ri(b),ri(tt)};function Kw(a,y,x,b,tt){if(!y||y.count===0)return x[tt]=0,b[tt]=0,1/0;var et=1/0,nt=-1/0;return y.each(function(ht){var gt=ht.key;ht=ht.value,gt=a.K===90||a.K===270?gt.width:gt.height,htnt&&(nt=ht+gt)}),x[tt]=et,b[tt]=nt,nt-et}Ci.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=C0(this,!0),y=C0(this,!1),x=this.network.edges.iterator;x.next();){var b=x.value.link;b!==null&&(b.fromSpot=a,b.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function C0(a,y){return a.K===270?y?Fo:Po:a.K===90?y?Po:Fo:a.K===180?y?vs:Ao:y?Ao:vs}Ci.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var a=0;a<=this.Ia;a++)this.he[a]=0,this.Ld[a]=0,this.Kd[a]=0,this.Ta[a]=0;for(a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;this.he[x]=Math.max(this.he[x],this.nodeMinLayerSpace(y,!0)),this.Ld[x]=Math.max(this.Ld[x],this.nodeMinLayerSpace(y,!1))}y=0,x=this.ie;for(var b=0;b<=this.Ia;b++){var tt=x;0>=this.he[b]+this.Ld[b]&&(tt=0),0=Nt.bounds.bottom?(Nt=Nt.bounds.y+Nt.bounds.height,y.m(oe++,De,Nt+Ve),y.m(oe++,De,Nt),y.m(oe++,De,Nt-Oe)):(y.m(oe++,De,Re+Ve),y.m(oe++,De,Re),y.m(oe++,De,Re-Oe)):this.K===270?Re<=Nt.bounds.y?(Nt=Nt.bounds.y,y.m(oe++,De,Nt-Oe),y.m(oe++,De,Nt),y.m(oe++,De,Nt+Ve)):(y.m(oe++,De,Re-Oe),y.m(oe++,De,Re),y.m(oe++,De,Re+Ve)):this.K===0&&(De>=Nt.bounds.right?(Nt=Nt.bounds.x+Nt.bounds.width,y.m(oe++,Nt+Ve,Re),y.m(oe++,Nt,Re),y.m(oe++,Nt-Oe,Re)):(y.m(oe++,De+Ve,Re),y.m(oe++,De,Re),y.m(oe++,De-Oe,Re)));else{y.m(oe++,de,Le);var Sn=0;this.K===180||this.K===0?((this.K===180?De>=Nt.bounds.right:De<=Nt.bounds.x)&&(Sn=(this.K===0?-Oe:Ve)/2),y.m(oe++,de+Sn,Re)):((this.K===270?Re>=Nt.bounds.bottom:Re<=Nt.bounds.y)&&(Sn=(this.K===90?-Oe:Ve)/2),y.m(oe++,De,Le+Sn)),y.m(oe++,De,Re)}}else Oe=Math.max(10,this.he[Pe.layer]),Ve=Math.max(10,this.Ld[Pe.layer]),zt?this.K===180?(y.m(oe++,De-Oe-Zt,Re),y.m(oe++,Math.min(De-Oe+Zt/2,De),Re),y.m(oe++,De,Re),y.m(oe++,De,Re),y.m(oe++,Math.max(De+Ve-Zt/2,De),Re),y.m(oe++,De+Ve+Zt,Re)):this.K===90?(y.m(oe++,De,Re+Ve+Zt),y.m(oe++,De,Math.max(Re+Ve-Zt/2,Re)),y.m(oe++,De,Re),y.m(oe++,De,Re),y.m(oe++,De,Math.min(Re-Oe+Zt/2,Re)),y.m(oe++,De,Re-Oe-Zt)):this.K===270?(y.m(oe++,De,Re-Oe-Zt),y.m(oe++,De,Math.min(Re-Oe+Zt/2,Re)),y.m(oe++,De,Re),y.m(oe++,De,Re),y.m(oe++,De,Math.max(Re+Ve-Zt/2,Re)),y.m(oe++,De,Re+Ve+Zt)):(y.m(oe++,De+Ve+Zt,Re),y.m(oe++,Math.max(De+Ve-Zt/2,De),Re),y.m(oe++,De,Re),y.m(oe++,De,Re),y.m(oe++,Math.min(De-Oe+Zt/2,De),Re),y.m(oe++,De-Oe-Zt,Re)):y.m(oe++,De,Re)}Nt=Pe}(ht===null||bt!==$r||Vt)&&(de=y.i(oe-1).x,Le=y.i(oe-1).y,De=y.i(oe).x,Re=y.i(oe).y,Vt?(Zt=this.Ld[Pt.layer],this.K===180||this.K===0?(Vt=Le,Vt>=Pt.bounds.y&&Vt<=Pt.bounds.bottom&&(this.K===180?De>=Pt.bounds.x:De<=Pt.bounds.right)&&(Nt=Pt.centerX+(this.K===180?-Zt:Zt),Vt=Pt.bounds.x&&Vt<=Pt.bounds.right&&(this.K===270?Re>=Pt.bounds.y:Re<=Pt.bounds.bottom)&&(Nt=Pt.centerY+(this.K===270?-Zt:Zt),Vt=Pt.bounds.x?(Nt=Pt.bounds.x+Pt.bounds.width,y.L(oe-2,Nt,Le),y.L(oe-1,Nt+Ve,Le)):this.K===90&&Re<=Pt.bounds.bottom?(Nt=Pt.bounds.y,y.L(oe-2,de,Nt),y.L(oe-1,de,Nt-Oe)):this.K===270&&Re>=Pt.bounds.y?(Nt=Pt.bounds.y+Pt.bounds.height,y.L(oe-2,de,Nt),y.L(oe-1,de,Nt+Ve)):this.K===0&&De<=Pt.bounds.right&&(Nt=Pt.bounds.x,y.L(oe-2,Nt,Le),y.L(oe-1,Nt-Oe,Le))):(Oe=Math.max(10,this.he[Pt.layer]),Ve=Math.max(10,this.Ld[Pt.layer]),Vt=0,this.K===180||this.K===0?((this.K===180?De<=Pt.bounds.x:De>=Pt.bounds.right)&&(Vt=(this.K===0?Ve:-Oe)/2),y.m(oe++,De+Vt,Le)):((this.K===270?Re<=Pt.bounds.y:Re>=Pt.bounds.bottom)&&(Vt=(this.K===90?Ve:-Oe)/2),y.m(oe++,de,Re+Vt)),y.m(oe++,De,Re)))}else{for(;Pt!==null&&Pt!==Nt;){for(Oe=Pe=null,Pt=Pt.destinationEdges.iterator;Pt.next()&&(de=Pt.value,de.link!==x.link||(Pe=de.toVertex,Oe=de.fromVertex,Oe.node!==null&&(Oe=null),Pe.node!==null)););if(Pe===null)break;Pe!==Nt&&(de=y.i(oe-1).x,Le=y.i(oe-1).y,De=Pe.centerX,Re=Pe.centerY,Vt?this.K===180||this.K===0?(Oe!==null?Oe.centerY:Le)!==Re&&(Oe=this.Ta[Pe.layer]+this.Rf.x,oe===y.firstPickIndex+1&&(Oe=this.K===0?Math.max(Oe,de):Math.min(Oe,de)),y.m(oe++,Oe,Le),y.m(oe++,Oe,Re)):(Oe!==null?Oe.centerX:de)!==De&&(Oe=this.Ta[Pe.layer]+this.Rf.y,oe===y.firstPickIndex+1&&(Oe=this.K===90?Math.max(Oe,Le):Math.min(Oe,Le)),y.m(oe++,de,Oe),y.m(oe++,De,Oe)):(Oe=Math.max(10,this.he[Pe.layer]),Ve=Math.max(10,this.Ld[Pe.layer]),zt?this.K===180?(y.m(oe++,De+Ve+Zt,Re),y.m(oe++,Math.max(De+Ve-Zt/2,De),Re),y.m(oe++,De,Re),y.m(oe++,De,Re),y.m(oe++,Math.min(De-Oe+Zt/2,De),Re),y.m(oe++,De-Oe-Zt,Re)):this.K===90?(y.m(oe++,De,Re-Oe-Zt),y.m(oe++,De,Math.min(Re-Oe+Zt/2,Re)),y.m(oe++,De,Re),y.m(oe++,De,Re),y.m(oe++,De,Math.max(Re+Ve-Zt/2,Re)),y.m(oe++,De,Re+Ve+Zt)):this.K===270?(y.m(oe++,De,Re+Ve+Zt),y.m(oe++,De,Math.max(Re+Ve-Zt/2,Re)),y.m(oe++,De,Re),y.m(oe++,De,Re),y.m(oe++,De,Math.min(Re-Oe+Zt/2,Re)),y.m(oe++,De,Re-Oe-Zt)):(y.m(oe++,De-Oe-Zt,Re),y.m(oe++,Math.min(De-Oe+Zt/2,De),Re),y.m(oe++,De,Re),y.m(oe++,De,Re),y.m(oe++,Math.max(De+Ve-Zt/2,De),Re),y.m(oe++,De+Ve+Zt,Re)):this.K===180?(y.m(oe++,De+Ve,Re),y.m(oe++,De-Oe,Re)):this.K===90?(y.m(oe++,De,Re-Oe),y.m(oe++,De,Re+Ve)):this.K===270?(y.m(oe++,De,Re+Ve),y.m(oe++,De,Re-Oe)):(y.m(oe++,De-Oe,Re),y.m(oe++,De+Ve,Re)))),Pt=Pe}Vt&&(de=y.i(oe-1).x,Le=y.i(oe-1).y,De=y.i(oe).x,Re=y.i(oe).y,this.K===180||this.K===0?Le!==Re&&(Oe=this.K===0?Math.min(Math.max((De+de)/2,this.Ta[Nt.layer]+this.Rf.x),De):Math.max(Math.min((De+de)/2,this.Ta[Nt.layer]+this.Rf.x),De),y.m(oe++,Oe,Le),y.m(oe++,Oe,Re)):de!==De&&(Oe=this.K===90?Math.min(Math.max((Re+Le)/2,this.Ta[Nt.layer]+this.Rf.y),Re):Math.max(Math.min((Re+Le)/2,this.Ta[Nt.layer]+this.Rf.y),Re),y.m(oe++,de,Oe),y.m(oe++,De,Oe)))}b!==null&&zt&&4<=y.pointsCount&&(nt!==null&&(nt=bt===$r?y.getLinkPointFromPoint(tt,nt,nt.ga(wi),y.i(3),!0):y.i(0),bt===$r&&(bt=y.i(2),b=y.i(3),this.direction===90||this.direction===270?(y.L(1,(nt.x+bt.x)/2,bt.y),y.L(2,b.x,(bt.y+b.y)/2)):(y.L(1,bt.x,(nt.y+bt.y)/2),y.L(2,(bt.x+b.x)/2,b.y))),nt.w()||nt.set(tt.actualBounds.center),y.L(0,nt.x,nt.y)),ht!==null&&(tt=gt===$r?y.getLinkPointFromPoint(et,ht,ht.ga(wi),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),gt===$r&&(ht=y.i(y.pointsCount-3),gt=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(tt.x+ht.x)/2,ht.y),y.L(y.pointsCount-2,gt.x,(ht.y+gt.y)/2)):(y.L(y.pointsCount-2,ht.x,(tt.y+ht.y)/2),y.L(y.pointsCount-3,(ht.x+gt.x)/2,gt.y))),tt.w()||tt.set(et.actualBounds.center),y.L(y.pointsCount-1,tt.x,tt.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},Ci.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new vn,y=this.network.edges.iterator;y.next();){var x=y.value.link;x!==null&&x.isOrthogonal&&!a.contains(x)&&a.add(x)}if(0et.y&&(Pt=bt.y>et.y?0:nt.xet.x&&(Pt=bt.x>et.x?0:nt.yy.layer?1:a.rdy.rd?1:a.Icy.Ic?1:0:0},ee.Ux=function(a,y){return a instanceof Vh&&y instanceof Vh&&a!==y?a.firsty.first||a.jy.j||a.rdy.rd?1:a.Icy.Ic?1:0:0},ee.Js=function(a,y){return a instanceof Vh&&y instanceof Vh&&a!==y?a.jcy.jc||a.jy.j||a.rdy.rd?1:a.Icy.Ic?1:0:0},ee.B=function(a,y){return a-=y,-1a},ee.zi=function(a,y,x,b){var tt=a.length,et=b-x;if(!(1>=et))if((0>x||x>=tt-1)&&We("not in range 0 <= from < length: "+x),et===2)b=a[x],tt=a[x+1],0=tt)a.sort(y);else for(x=a.slice(0,b),x.sort(y),y=0;y=tt)for(b=a.slice(x),b.sort(y),y=x;y=a.He.length){for(var b=[],tt=0;tta&&(this.bg=a,this.C())}},alignOption:{get:function(){return this.ve},set:function(a){this.ve!==a&&0<=a&&16>a&&(this.ve=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(a){this.Cn!==a&&0<=a&&(this.Cn=a,this.C())}},maxLayer:{get:function(){return this.Ia}},maxIndex:{get:function(){return this.Iq}},maxColumn:{get:function(){return this.Ra}},minIndexLayer:{get:function(){return this.Hn}},maxIndexLayer:{get:function(){return this.Md}}});var E0=new sn(Ci,"CycleDepthFirst",0),wy=new sn(Ci,"CycleGreedy",1),yg=new sn(Ci,"CycleFromLayers",2),A0=new sn(Ci,"LayerOptimalLinkLength",0),xy=new sn(Ci,"LayerLongestPathSink",1),by=new sn(Ci,"LayerLongestPathSource",2),M0=new sn(Ci,"InitDepthFirstOut",0),Py=new sn(Ci,"InitDepthFirstIn",1),Cy=new sn(Ci,"InitNaive",2),Ey=new sn(Ci,"AggressiveNone",0),k0=new sn(Ci,"AggressiveLess",1),Ay=new sn(Ci,"AggressiveMore",2),Xw=8;Ci.className="LayeredDigraphLayout",Ci.CycleDepthFirst=E0,Ci.CycleGreedy=wy,Ci.CycleFromLayers=yg,Ci.LayerOptimalLinkLength=A0,Ci.LayerLongestPathSink=xy,Ci.LayerLongestPathSource=by,Ci.InitDepthFirstOut=M0,Ci.InitDepthFirstIn=Py,Ci.InitNaive=Cy,Ci.AggressiveNone=Ey,Ci.AggressiveLess=k0,Ci.AggressiveMore=Ay,Ci.PackNone=0,Ci.PackExpand=1,Ci.PackStraighten=2,Ci.PackMedian=4,Ci.PackAll=15,Ci.AlignNone=0,Ci.AlignUpperLeft=1,Ci.AlignUpperRight=2,Ci.AlignLowerLeft=4,Ci.AlignLowerRight=8,Ci.AlignAll=15;function Vh(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}Vh.className="SegInfo";function Bd(a){Di.call(this,a)}en(Bd,Di),Bd.prototype.createVertex=function(){return new wa(this)},Bd.prototype.createEdge=function(){return new Sg(this)},Bd.className="LayeredDigraphNetwork";function wa(a){Vr.call(this,a),this.$n=this.bo=this.ao=this.co=null,this.Za=this.Ag=this.Ig=-1,this.u=NaN,this.F=null,this.valid=!1,this.finish=this.Ll=NaN,this.Dj=0,this.dv=this.ev=null}en(wa,Vr);function rw(a,y){return a.index-y.index}function L0(a,y){if(!a.$n){for(var x=[],b=mr(a.destinationEdgesArrayAccess),tt=b.next();!tt.done;tt=b.next())tt=tt.value,tt.valid&&x.push(tt);a.$n=x}for(a=mr(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;We("Unable to find destination edge to given vertex")}function My(a){if(!a.co){for(var y=[],x=mr(a.sourceEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.fromVertex);y.sort(rw),a.co=y}return a.co}function Zw(a){if(!a.ao){for(var y=[],x=mr(a.destinationEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.toVertex);y.sort(rw),a.ao=y}return a.ao}wa.prototype.Cl=function(a){Vr.prototype.Cl.call(this,a),this.bo=this.co=null},wa.prototype.Kl=function(a){Vr.prototype.Kl.call(this,a),this.bo=this.co=null},wa.prototype.zl=function(a){Vr.prototype.zl.call(this,a),this.$n=this.ao=null},wa.prototype.Jl=function(a){Vr.prototype.Jl.call(this,a),this.$n=this.ao=null},qe.Object.defineProperties(wa.prototype,{layer:{get:function(){return this.Ig},set:function(a){this.Ig!==a&&(this.Ig=a)}},column:{get:function(){return this.Ag},set:function(a){this.Ag!==a&&(this.Ag=a)}},index:{get:function(){return this.Za},set:function(a){this.Za!==a&&(this.Za=a)}},component:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},near:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),wa.prototype.deleteDestinationEdge=wa.prototype.Jl,wa.prototype.addDestinationEdge=wa.prototype.zl,wa.prototype.deleteSourceEdge=wa.prototype.Kl,wa.prototype.addSourceEdge=wa.prototype.Cl,wa.className="LayeredDigraphVertex";function Sg(a){Hs.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}en(Sg,Hs),qe.Object.defineProperties(Sg.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},valid:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},rev:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},forest:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},portFromPos:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},portToPos:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},portFromColOffset:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},portToColOffset:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),Sg.className="LayeredDigraphEdge";function $n(a){Ji.call(this),this.Ub=new gn,this.Wn=j0,this.ud=Yl,this.vo=D0,this.Bq=By,this.$v=[],this.td=!0,this.Rb=I0,this.$d=new xn(10,10).freeze();var y=new Mf(this);this.W=new Na(y),this.Y=new Na(y),this.ru=[],a&&Object.assign(this,a)}en($n,Ji),$n.prototype.cloneProtected=function(a){Ji.prototype.cloneProtected.call(this,a),a.Wn=this.Wn,a.vo=this.vo,a.Bq=this.Bq,a.td=this.td,a.Rb=this.Rb,a.$d.assign(this.$d),a.W.copyInheritedPropertiesFrom(this.W),a.Y.copyInheritedPropertiesFrom(this.Y)},$n.prototype.qb=function(a){a.classType===$n?a.name.indexOf("Alignment")===0?this.alignment=a:a.name.indexOf("Arrangement")===0?this.arrangement=a:a.name.indexOf("Compaction")===0?this.compaction=a:a.name.indexOf("Path")===0?this.path=a:a.name.indexOf("Sorting")===0?this.sorting=a:a.name.indexOf("Style")===0?this.treeStyle=a:We("Unknown enum value: "+a):Ji.prototype.qb.call(this,a)},$n.prototype.createNetwork=function(){return new Mf(this)},$n.prototype.makeNetwork=function(a){function y(b){if(b instanceof wn)return!b.isLinkLabel&&b.category!=="Comment";if(b instanceof cn){var tt=b.fromNode;return tt===null||tt.isLinkLabel||tt.category==="Comment"?!1:(b=b.toNode,!(b===null||b.isLinkLabel||b.category==="Comment"))}return!1}var x=this.createNetwork();return a instanceof Ye?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof Un?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},$n.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==F0&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof Ye&&(y=a),this.path===j0&&y!==null?this.ud=y.isTreePathToChildren?Yl:Ef:this.ud=this.path===j0?Yl:this.path,0y.level)return!1;a.removeChild(x.parent,x)}return!0}$n.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,b=0,tt=0;tttt?cw(this,a,nt,Fn,de,Le):fw(this,a,nt,Fn,de,Le),Fn=Le.x,de=Le.width,Le=Le.height;break;case eh:for(De=0;DeNt&&(Mnlo&&(Cf(a,-lo,0,Gn,yi-1),O0(De,-lo,0),O0(Re,-lo,0),lo=0)}_i.S.h(lo,Pn),de=Math.max(de,Ve),Le=Math.max(Le,Oe+(hn===0?0:Zt)+io.height),Mn=Ve}else 0Nt&&(Pnlo&&(Cf(a,0,-lo,Gn,yi-1),O0(De,0,-lo),O0(Re,0,-lo),lo=0)),_i.S.h(Mn,lo),Le=Math.max(Le,Sn),de=Math.max(de,Oe+(hn===0?0:Zt)+io.width),Pn=Sn;rn++}switch(0bt&&(bt=0),135oe&&(oe=0),gt===gu&&(ht+=zt/2+a.focus.y),nt+=b+x):y?(a.comments===null?b>de&&(de=Oy(gt,b-de,0),nt=de.x,ht=de.y,de=b,bt=0):de=Ty(a,de,bt),0>bt&&(nt-=bt,bt=0),135Le&&(Le=Oy(gt,0,Pe-Le),nt=Le.x,ht=Le.y,Le=Pe,oe=0):Le=_y(a,Le,oe),0>oe&&(ht-=oe,oe=0),nt+=b+x),0tt[0].x?tt[2].assign(tt[1]):tt[1].assign(tt[2])),tt[3].ytt[0].x?tt[3].assign(tt[2]):tt[2].assign(tt[3])),hn[0].h(bt+b,0),hn[1].h(hn[0].x,Pe),hn[2].ytt[0].y?tt[2].assign(tt[1]):tt[1].assign(tt[2])),tt[3].xtt[0].y?tt[3].assign(tt[2]):tt[2].assign(tt[3])),hn[0].h(0,oe+Pe),hn[1].h(b,hn[0].y),hn[2].xb?cw(a,y,tt,rn,Oe,De):fw(a,y,tt,rn,Oe,De),rn=De.x,Oe=De.width,De=De.height;break;case eh:for(zt=0;ztzt&&(Vezt&&(SnNt&&(Nt=0),135de&&(de=0)),y.la.h(Nt,de),y.Da.h(Oe,De)}}$n.prototype.customAlignment=function(a,y,x,b,tt){return[y,x,b,tt]};function cw(a,y,x,b,tt,et){var nt=x.length;if(nt===0)return new $e(b,0,tt,et);if(nt===1)return y=x[0],tt=y.Da.width,et=y.Da.height,new $e(b,0,tt,et);for(var ht=y.nodeSpacing,gt=y.rowSpacing,bt=Qa(y)===90,Pt=0,Nt=0,zt=0,Vt=0;Vtbt&&(tt-=bt),et=Math.max(et,Math.max(Vt,zt)+a+nt.height),0>x.S.x&&(b=T0(y,x.S.x,!1,b,ht))):(x.S.h(tt+a,b+ht/2-x.focus.y-x.la.y),tt=Math.max(tt,Math.max(Zt,Nt)+a+nt.width),zt=b+ht/2-x.focus.y-x.la.y,et=Math.max(et,zt+nt.height),0>zt&&(et-=zt),0>x.S.y&&(b=T0(y,x.S.y,!0,b,ht)))),new $e(b,0,tt,et)}function fw(a,y,x,b,tt,et){var nt=x.length;if(nt===0)return new $e(b,0,tt,et);if(nt===1)return x=x[0],tt=x.Da.width,et=x.Da.height,new $e(b,0,tt,et);for(var ht=y.nodeSpacing,gt=y.rowSpacing,bt=Qa(y)===270,Pt=0,Nt=0,zt=0,Vt=0;VtNt&&(tt-=Nt),et=Math.max(et,Math.abs(Math.min(Vt,zt))+a+Pt.height),0>gt.S.x&&(b=T0(y,gt.S.x,!1,b,ht))):(gt.S.h(-tt-Pt.width-a,b+ht/2-gt.focus.y-gt.la.y),tt=Math.max(tt,Math.abs(Math.min(Zt,Nt))+a+Pt.width),zt=b+ht/2-gt.focus.y-gt.la.y,et=Math.max(et,zt+Pt.height),0>zt&&(et-=zt),0>gt.S.y&&(b=T0(y,gt.S.y,!0,b,ht)))),y=0;yy&&(y=x+a.width),0>x&&(y-=x),y;case Kl:return a.width>y?a.width:y;case Xl:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case th:case Zl:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case eh:return a.width-a.focus.x+a.nodeSpacing/2+y;case gu:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function _y(a,y,x){switch(a.alignment){case Af:case zd:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Kl:return a.height>y?a.height:y;case Xl:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case th:case Zl:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case eh:return a.height-a.focus.y+a.nodeSpacing/2+y;case gu:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Oy(a,y,x){switch(a){case zd:y/=2,x/=2;break;case Af:y/=2,x/=2;break;case Kl:x=y=0;break;case Xl:break;default:We("Unhandled alignment value "+a.toString())}return new Ee(y,x)}function jc(a,y,x,b,tt,et){y=Oy(y,x,b),Cf(a,y.x,y.y,tt,et)}function Cf(a,y,x,b,tt){if(y!==0||x!==0)for(a=a.children;b<=tt;b++){var et=a[b].S;et.x+=y,et.y+=x}}function _0(a,y,x,b){var tt=y.parent;switch(a.ud){case Yl:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===tt&&y.relativePoint.h(x,b);break;case Ef:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===tt&&y.relativePoint.h(x,b);break;default:We("Unhandled path value "+a.ud.toString())}}function O0(a,y,x){for(var b=0;bNt.length||Vt===null||2>Vt.length))for(tt=x=0;xbt&&et.yet.y&&bty.length||x===null||2>x.length)b=null;else{for(Pt=Ts(a,y.length+x.length),b=et=gt=0;etgt;)bt=x[et++],Pt[b++].h(bt.x+tt,bt.y);for(x=Ts(a,b),gt=0;gtNt.length||et===null||2>et.length)tt=null;else{for(Pt=Ts(a,Nt.length+et.length),tt=bt=x=0;xet;)gt=Nt[x++],Pt[tt++].h(gt.x,gt.y);for(et=Ts(a,tt),x=0;xNt.length||Vt===null||2>Vt.length))for(tt=x=0;xgt&&et.xet.x&>y.length||x===null||2>x.length)b=null;else{for(Pt=Ts(a,y.length+x.length),b=et=gt=0;etgt;)bt=x[et++],Pt[b++].h(bt.x,bt.y+tt);for(x=Ts(a,b),gt=0;gtNt.length||et===null||2>et.length)tt=null;else{for(Pt=Ts(a,Nt.length+et.length),tt=bt=x=0;xet;)gt=Nt[x++],Pt[tt++].h(gt.x,gt.y);for(et=Ts(a,tt),x=0;x=a?0:135>=a?90:225>=a?180:315>=a?270:0}$n.prototype.computeLayerSpacing=function(a){var y=Qa(a);y=y===90||y===270;var x=a.layerSpacing;if(0=a&&(this.W.nodeIndentPastParent=a,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(a){this.W.nodeSpacing!==a&&(this.W.nodeSpacing=a,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(a){this.W.layerSpacing!==a&&(this.W.layerSpacing=a,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(a){this.W.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.W.layerSpacingParentOverlap=a,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(a){this.W.compaction===a||a!==N0&&a!==Cg||(this.W.compaction=a,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(a){this.W.breadthLimit!==a&&0<=a&&(this.W.breadthLimit=a,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(a){this.W.rowSpacing!==a&&(this.W.rowSpacing=a,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(a){this.W.rowIndent!==a&&0<=a&&(this.W.rowIndent=a,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(a){this.W.commentSpacing!==a&&(this.W.commentSpacing=a,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(a){this.W.commentMargin!==a&&(this.W.commentMargin=a,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(a){this.W.setsPortSpot!==a&&(this.W.setsPortSpot=a,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(a){this.W.portSpot.D(a)||(this.W.portSpot=a,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(a){this.W.setsChildPortSpot!==a&&(this.W.setsChildPortSpot=a,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(a){this.W.childPortSpot.D(a)||(this.W.childPortSpot=a,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(a){this.Y.sorting===a||a!==Rd&&a!==xg&&a!==bg&&!Pg||(this.Y.sorting=a,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(a){this.Y.comparer!==a&&(this.Y.comparer=a,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(a){this.Y.angle===a||a!==0&&a!==90&&a!==180&&a!==270||(this.Y.angle=a,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(a){this.Y.alignment!==a&&(this.Y.alignment=a,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(a){this.Y.nodeIndent!==a&&0<=a&&(this.Y.nodeIndent=a,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(a){this.Y.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.Y.nodeIndentPastParent=a,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(a){this.Y.nodeSpacing!==a&&(this.Y.nodeSpacing=a,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(a){this.Y.layerSpacing!==a&&(this.Y.layerSpacing=a,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(a){this.Y.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.Y.layerSpacingParentOverlap=a,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(a){this.Y.compaction===a||a!==N0&&a!==Cg||(this.Y.compaction=a,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(a){this.Y.breadthLimit!==a&&0<=a&&(this.Y.breadthLimit=a,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(a){this.Y.rowSpacing!==a&&(this.Y.rowSpacing=a,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(a){this.Y.rowIndent!==a&&0<=a&&(this.Y.rowIndent=a,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(a){this.Y.commentSpacing!==a&&(this.Y.commentSpacing=a,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(a){this.Y.commentMargin!==a&&(this.Y.commentMargin=a,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(a){this.Y.setsPortSpot!==a&&(this.Y.setsPortSpot=a,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(a){this.Y.portSpot.D(a)||(this.Y.portSpot=a,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(a){this.Y.setsChildPortSpot!==a&&(this.Y.setsChildPortSpot=a,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(a){this.Y.childPortSpot.D(a)||(this.Y.childPortSpot=a,this.C())}}});var j0=new sn($n,"PathDefault",-1),Yl=new sn($n,"PathDestination",0),Ef=new sn($n,"PathSource",1),Rd=new sn($n,"SortingForwards",10),xg=new sn($n,"SortingReverse",11),bg=new sn($n,"SortingAscending",12),Pg=new sn($n,"SortingDescending",13),zd=new sn($n,"AlignmentCenterSubtrees",20),Af=new sn($n,"AlignmentCenterChildren",21),Kl=new sn($n,"AlignmentStart",22),Xl=new sn($n,"AlignmentEnd",23),th=new sn($n,"AlignmentBus",24),Zl=new sn($n,"AlignmentBusBranching",25),eh=new sn($n,"AlignmentTopLeftBus",26),gu=new sn($n,"AlignmentBottomRightBus",27),N0=new sn($n,"CompactionNone",30),Cg=new sn($n,"CompactionBlock",31),D0=new sn($n,"StyleLayered",40),Ny=new sn($n,"StyleLastParents",41),Dy=new sn($n,"StyleAlternating",42),Iy=new sn($n,"StyleRootOnly",43),I0=new sn($n,"ArrangementVertical",50),Fy=new sn($n,"ArrangementHorizontal",51),F0=new sn($n,"ArrangementFixedRoots",52),By=new sn($n,"LayerIndividual",60),Ry=new sn($n,"LayerSiblings",61),B0=new sn($n,"LayerUniform",62);$n.className="TreeLayout",$n.PathDefault=j0,$n.PathDestination=Yl,$n.PathSource=Ef,$n.SortingForwards=Rd,$n.SortingReverse=xg,$n.SortingAscending=bg,$n.SortingDescending=Pg,$n.AlignmentCenterSubtrees=zd,$n.AlignmentCenterChildren=Af,$n.AlignmentStart=Kl,$n.AlignmentEnd=Xl,$n.AlignmentBus=th,$n.AlignmentBusBranching=Zl,$n.AlignmentTopLeftBus=eh,$n.AlignmentBottomRightBus=gu,$n.CompactionNone=N0,$n.CompactionBlock=Cg,$n.StyleLayered=D0,$n.StyleLastParents=Ny,$n.StyleAlternating=Dy,$n.StyleRootOnly=Iy,$n.ArrangementVertical=I0,$n.ArrangementHorizontal=Fy,$n.ArrangementFixedRoots=F0,$n.LayerIndividual=By,$n.LayerSiblings=Ry,$n.LayerUniform=B0;function Mf(a){Di.call(this,a)}en(Mf,Di),Mf.prototype.createVertex=function(){return new Na(this)},Mf.prototype.createEdge=function(){return new Gd(this)},Mf.className="TreeNetwork";function Na(a){Vr.call(this,a),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new Ee(0,0),this.Da=new xn(0,0),this.la=new Ee(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=Rd,this.hd=oy,this.Kb=0,this.Jb=Af,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=Cg,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=oo,this.wr=!0,this.Dp=oo}en(Na,Vr),Na.prototype.copyInheritedPropertiesFrom=function(a){a!==null&&(this.nd=a.sorting,this.hd=a.comparer,this.Kb=a.angle,this.Jb=a.alignment,this.Uq=a.nodeIndent,this.Vq=a.nodeIndentPastParent,this.Wq=a.nodeSpacing,this.ie=a.layerSpacing,this.Aq=a.layerSpacingParentOverlap,this.Hp=a.compaction,this.Ap=a.breadthLimit,this.nr=a.rowSpacing,this.mr=a.rowIndent,this.Gp=a.commentSpacing,this.Fp=a.commentMargin,this.xr=a.setsPortSpot,this.dr=a.portSpot,this.wr=a.setsChildPortSpot,this.Dp=a.childPortSpot)},qe.Object.defineProperties(Na.prototype,{initialized:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},parent:{get:function(){return this.hb},set:function(a){this.hb!==a&&(this.hb=a)}},children:{get:function(){return this.u},set:function(a){if(this.u!==a){if(a!==null)for(var y=a.length,x=0;xVt.y+x.rowIndent&&(et=Math.min(et,Math.max(Nt.y,et-y.computeNodeIndent(x))))):x.alignment===Kl?(et=b.top+tt.y,tt.y===0&&Nt.yVt.x+x.rowIndent&&(et=Math.min(et,Math.max(Nt.x,et-y.computeNodeIndent(x))))):x.alignment===Kl?(et=b.left+tt.x,tt.x===0&&Nt.xVt.y+x.rowIndent&&(et=Math.min(et,Math.max(Nt.y,et-y.computeNodeIndent(x))))):x.alignment===Kl?(et=b.top+tt.y,tt.y===0&&Nt.yVt.x+x.rowIndent&&(et=Math.min(et,Math.max(Nt.x,et-y.computeNodeIndent(x))))):x.alignment===Kl?(et=b.left+tt.x,tt.x===0&&Nt.x>>6)+vt(128|Yt&63):vt(224|Yt>>>12&15)+vt(128|Yt>>>6&63)+vt(128|Yt&63)}else{var Yt=65536+(Gt.charCodeAt(0)-55296)*1024+(Gt.charCodeAt(1)-56320);return vt(240|Yt>>>18&7)+vt(128|Yt>>>12&63)+vt(128|Yt>>>6&63)+vt(128|Yt&63)}},xt=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,dt=function(Gt){return Gt.replace(xt,yt)},ft=function(Gt){var Yt=[0,2,1][Gt.length%3],Ht=Gt.charCodeAt(0)<<16|(Gt.length>1?Gt.charCodeAt(1):0)<<8|(Gt.length>2?Gt.charCodeAt(2):0),ne=[St.charAt(Ht>>>18),St.charAt(Ht>>>12&63),Yt>=2?"=":St.charAt(Ht>>>6&63),Yt>=1?"=":St.charAt(Ht&63)];return ne.join("")},ct=rt.btoa&&typeof rt.btoa=="function"?function(Gt){return rt.btoa(Gt)}:function(Gt){if(Gt.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Gt.replace(/[\s\S]{1,3}/g,ft)},lt=function(Gt){return ct(dt(String(Gt)))},E=function(Gt){return Gt.replace(/[+\/]/g,function(Yt){return Yt=="+"?"-":"_"}).replace(/=/g,"")},z=function(Gt,Yt){return Yt?E(lt(Gt)):lt(Gt)},ot=function(Gt){return z(Gt,!0)},it;rt.Uint8Array&&(it=function(Gt,Yt){for(var Ht="",ne=0,ae=Gt.length;ne>>18)+St.charAt(we>>>12&63)+(typeof Kt!="undefined"?St.charAt(we>>>6&63):"=")+(typeof re!="undefined"?St.charAt(we&63):"=")}return Yt?E(Ht):Ht});var at=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ut=function(Gt){switch(Gt.length){case 4:var Yt=(7&Gt.charCodeAt(0))<<18|(63&Gt.charCodeAt(1))<<12|(63&Gt.charCodeAt(2))<<6|63&Gt.charCodeAt(3),Ht=Yt-65536;return vt((Ht>>>10)+55296)+vt((Ht&1023)+56320);case 3:return vt((15&Gt.charCodeAt(0))<<12|(63&Gt.charCodeAt(1))<<6|63&Gt.charCodeAt(2));default:return vt((31&Gt.charCodeAt(0))<<6|63&Gt.charCodeAt(1))}},wt=function(Gt){return Gt.replace(at,ut)},Et=function(Gt){var Yt=Gt.length,Ht=Yt%4,ne=(Yt>0?pt[Gt.charAt(0)]<<18:0)|(Yt>1?pt[Gt.charAt(1)]<<12:0)|(Yt>2?pt[Gt.charAt(2)]<<6:0)|(Yt>3?pt[Gt.charAt(3)]:0),ae=[vt(ne>>>16),vt(ne>>>8&255),vt(ne&255)];return ae.length-=[0,0,2,1][Ht],ae.join("")},At=rt.atob&&typeof rt.atob=="function"?function(Gt){return rt.atob(Gt)}:function(Gt){return Gt.replace(/\S{1,4}/g,Et)},_t=function(Gt){return At(String(Gt).replace(/[^A-Za-z0-9\+\/]/g,""))},Mt=function(Gt){return wt(At(Gt))},jt=function(Gt){return String(Gt).replace(/[-_]/g,function(Yt){return Yt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Lt=function(Gt){return Mt(jt(Gt))},It;rt.Uint8Array&&(It=function(Gt){return Uint8Array.from(_t(jt(Gt)),function(Yt){return Yt.charCodeAt(0)})});var Ut=function(){var Gt=rt.Base64;return rt.Base64=kt,Gt};if(rt.Base64={VERSION:Ct,atob:_t,btoa:ct,fromBase64:Lt,toBase64:z,utob:dt,encode:z,encodeURI:ot,btou:wt,decode:Lt,noConflict:Ut,fromUint8Array:it,toUint8Array:It},typeof Object.defineProperty=="function"){var Xt=function(Gt){return{value:Gt,enumerable:!1,writable:!0,configurable:!0}};rt.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Xt(function(){return Lt(this)})),Object.defineProperty(String.prototype,"toBase64",Xt(function(Gt){return z(this,Gt)})),Object.defineProperty(String.prototype,"toBase64URI",Xt(function(){return z(this,!0)}))}}return rt.Meteor&&(Base64=rt.Base64),tn.exports?tn.exports.Base64=rt.Base64:(Ft=[],ie=function(){return rt.Base64}.apply(Ke,Ft),ie!==void 0&&(tn.exports=ie)),{Base64:rt.Base64}})},7062:function(tn,Ke,Rt){var Ft=Rt(19637),ie=Rt(97573),rt=[Rt(96627)];tn.exports=Ft.createStore(ie,rt)},96627:function(tn,Ke,Rt){tn.exports=Ft;function Ft(){return Rt(42424),{}}},42424:function(){typeof JSON!="object"&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(tn){return tn<10?"0"+tn:tn}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(tn){return rx_escapable.lastIndex=0,rx_escapable.test(tn)?'"'+tn.replace(rx_escapable,function(Ke){var Rt=meta[Ke];return typeof Rt=="string"?Rt:"\\u"+("0000"+Ke.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+tn+'"'}function str(tn,Ke){var Rt,Ft,ie,rt,kt=gap,Ct,St=Ke[tn];switch(St&&typeof St=="object"&&typeof St.toJSON=="function"&&(St=St.toJSON(tn)),typeof rep=="function"&&(St=rep.call(Ke,tn,St)),typeof St){case"string":return quote(St);case"number":return isFinite(St)?String(St):"null";case"boolean":case"null":return String(St);case"object":if(!St)return"null";if(gap+=indent,Ct=[],Object.prototype.toString.apply(St)==="[object Array]"){for(rt=St.length,Rt=0;Rt=a.count)a.count===1&&(a=a.first(),a.centerX=0,a.centerY=0);else{var y=new vn;y.addAll(a.iterator),a=new vn;var x=new vn,b=this.sort(y),tt,et,nt=this.Jp,ht=this.arrangement,gt=this.nodeDiameterFormula,bt=this.radius;(!isFinite(bt)||0>=bt)&&(bt=NaN);var Pt=this.aspectRatio;(!isFinite(Pt)||0>=Pt)&&(Pt=1);var Nt=this.startAngle;isFinite(Nt)||(Nt=0);var zt=this.sweepAngle;if((!isFinite(zt)||360zt)&&(zt=360),y=this.spacing,isFinite(y)||(y=NaN),ht===Za&>===bf?ht=Xa:ht===Za&>!==bf&&(ht=this.arrangement),(this.direction===Oc||this.direction===Nd)&&this.sorting!==Dd){for(gt=0;!(gt>=b.length)&&(a.add(b.M(gt)),!(gt+1>=b.length));gt+=2)x.add(b.M(gt+1));this.direction===Oc?(this.arrangement===Za&&a.reverse(),b=new vn,b.addAll(a),b.addAll(x)):(this.arrangement===Za&&x.reverse(),b=new vn,b.addAll(x),b.addAll(a))}gt=b.length;for(var Yt=et=tt=0;Ytzt&&(Yt===0||Yt===b.length-1)&&(oe/=2),tt+=oe,et++}if(isNaN(bt)||ht===Za){if(isNaN(y)&&(y=6),ht!==Xa&&ht!==Za){for(et=-1/0,nt=0;ntbt?(bt=tt,et=bt*Pt):nt=Yt/(360<=zt?gt:gt-1)}if(this.kw=ht,this.lc=bt,this.Zm=Pt,this.lw=Nt,this.Wp=zt,this.Ti=y,this.me=et,this.Jp=nt,y=b,b=this.kw,ht=this.lc,bt=this.lw,Pt=this.Wp,Nt=this.Ti,zt=this.me,gt=this.Jp,this.direction!==Oc&&this.direction!==Nd||b!==Za)if(this.direction===Oc||this.direction===Nd){switch(nt=0,b){case zh:nt=180*d0(this,ht,zt,bt,gt)/Math.PI;break;case Xa:gt=y=0,nt=a.first(),nt!==null&&(y=Uh(nt,Math.PI/2)),nt=x.first(),nt!==null&&(gt=Uh(nt,Math.PI/2)),nt=180*d0(this,ht,zt,bt,Nt+(y+gt)/2)/Math.PI;break;case $u:nt=Pt/y.length}if(this.direction===Oc){switch(b){case zh:fg(this,a,bt,Gh);break;case Xa:cg(this,a,bt,Gh);break;case $u:hg(this,a,Pt/2,bt,Gh)}switch(b){case zh:fg(this,x,bt+nt,fs);break;case Xa:cg(this,x,bt+nt,fs);break;case $u:hg(this,x,Pt/2,bt+nt,fs)}}else{switch(b){case zh:fg(this,x,bt,Gh);break;case Xa:cg(this,x,bt,Gh);break;case $u:hg(this,x,Pt/2,bt,Gh)}switch(b){case zh:fg(this,a,bt+nt,fs);break;case Xa:cg(this,a,bt+nt,fs);break;case $u:hg(this,a,Pt/2,bt+nt,fs)}}}else switch(b){case zh:fg(this,y,bt,this.direction);break;case Xa:cg(this,y,bt,this.direction);break;case $u:hg(this,y,Pt,bt,this.direction);break;case Za:jS(this,y,Pt,bt,this.direction)}else jS(this,y,Pt,bt-Pt/2,fs)}this.updateParts(),this.network=null,this.isValidLayout=!0};function hg(a,y,x,b,tt){var et=a.Wp,nt=a.lc;a=a.me,b=b*Math.PI/180,x=x*Math.PI/180;for(var ht=y.length,gt=0;gtx){for(et=b+(tt===fs?et:-et);0>et;)et+=360;et%=360,180=Pt.length-1));Nt++)IS(a,gt,bt,Pt,Nt,tt,et)||FS(a,gt,bt,Pt,Nt,tt,et),gt=et.x,bt=et.y;if(Ee.free(et),a.mj++,!(23Math.abs(Yt)?Math.abs(gt-et)<(Pt[0].width+Pt[Pt.length-1].width)/2&&(nt=0):nt=0Math.abs(zt)?0:zt,gt=Math.abs(et)>Math.abs(Nt)?0Nt:0a.mj?a.lc-nt/(2*Math.PI):5>Pt.length&&10=Nt.length-1));zt++)IS(a,gt,bt,Nt,zt,tt,Pt)||FS(a,gt,bt,Nt,zt,tt,Pt),gt=Pt.x,bt=Pt.y;if(Ee.free(Pt),a.mj++,!(23a.mj?a.lc-et/(2*Math.PI):a.lc-(0ht){if(et=y-a,et<-ht)return nt.x=et,nt.y=bt,!1;Pt=!0}}else if(et=y-a,et<-ht){if(et=y+a,et>ht)return nt.x=et,nt.y=bt,!1;Pt=!0}return bt=Math.sqrt(1-Math.min(1,et*et/(ht*ht)))*gt,0>x!==Pt&&(bt=-bt),Math.abs(x-bt)>(b[tt].height+b[tt+1].height)/2?(nt.x=et,nt.y=bt,!1):(nt.x=et,nt.y=bt,!0)}function FS(a,y,x,b,tt,et,nt){var ht=a.lc,gt=a.me,bt=0;if(a=(b[tt].height+b[tt+1].height)/2+a.Ti,b=!1,0<=y!=(et===fs)){if(et=x-a,et<-gt){if(et=x+a,et>gt){nt.x=bt,nt.y=et;return}b=!0}}else if(et=x+a,et>gt){if(et=x-a,et<-gt){nt.x=bt,nt.y=et;return}b=!0}bt=Math.sqrt(1-Math.min(1,et*et/(gt*gt)))*ht,0>y!==b&&(bt=-bt),nt.x=bt,nt.y=et}ar.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},ar.prototype.commitNodes=function(){var a=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,y=a?this.group.location.copy():null,x=this.actualCenter;a?x=new Ee(0,0):(x.x=this.arrangementOrigin.x+this.lc,x.y=this.arrangementOrigin.y+this.me);for(var b=this.network.vertexes.iterator;b.next();){var tt=b.value;tt.x+=x.x,tt.y+=x.y,tt.commit()}a&&(this.group.Va(),a=this.group.position.copy(),x=this.group.location.copy(),y=y.re(x.re(a)),this.group.move(y),this.Zv=y.re(a))},ar.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function py(a,y,x,b,tt){var et=a.ty;if(.001>Math.abs(a.Zm-1))return b!==void 0&&tt!==void 0?tt*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var nt=0,ht=b!==void 0&&tt!==void 0?tt/(et+1):Math.PI/(2*(et+1)),gt=0,bt=0;bt<=et;bt++){b!==void 0&&tt!==void 0?gt=b+bt*tt/et:gt=bt*Math.PI/(2*et);var Pt=Math.sin(gt);nt+=Math.sqrt(1-a*a*Pt*Pt)*ht}return b!==void 0&&tt!==void 0?(y>x?y:x)*nt:4*(y>x?y:x)*nt}function f0(a,y,x,b,tt){return y/(b!==void 0&&tt!==void 0?py(a,1,x,b,tt):py(a,1,x))}function d0(a,y,x,b,tt){if(.001>Math.abs(a.Zm-1))return tt/y;var et=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,nt=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(b+=Math.PI/2);for(var ht=0;;ht++){var gt=Math.sin(b+ht*a);if(nt+=(y>x?y:x)*Math.sqrt(1-et*et*gt*gt)*a,nt>=tt)return ht*a}}ar.prototype.sort=function(a){switch(this.sorting){case p0:break;case g0:a.reverse();break;case m0:a.sort(this.comparer);break;case v0:a.sort(this.comparer),a.reverse();break;case Dd:return this.ak(Nw(a));default:We("Invalid sorting type.")}return a};function Nw(a){for(var y=[],x=0;xtt&&(tt=ht,et=nt)}else for(nt=0;nttt&&(tt=ht,et=nt);for(x.add(a.M(et)),y[et]=-1,et=a.M(et),nt=et.sourceEdges;nt.next();)tt=a.indexOf(nt.value.fromVertex),0>tt||0<=y[tt]&&y[tt]++;for(et=et.destinationEdges;et.next();)tt=a.indexOf(et.value.toVertex),0>tt||0<=y[tt]&&y[tt]++}return x}ar.prototype.ak=function(a){for(var y=[],x=0;xy[x].indexOf(tt)&&y[x].push(tt);for(b=b.sourceEdges;b.next();)tt=a.indexOf(b.value.fromVertex),tt!==x&&0>y[x].indexOf(tt)&&y[x].push(tt)}for(et=[],x=0;xy[x[Zt]].indexOf(x[Zt===x.length-1?0:Zt+1])&&Yt.push(Zt===x.length-1?0:Zt+1);if(Yt.length===0)for(Zt=0;Ztx.indexOf(Ve)||Rex.indexOf(Ve)||Re=oe?Re+1:Re)),pe+=Re=oe&&Re++,je>=oe&&je++,Re>je&&(De=je,je=Re,Re=De),je-Re<(x.length+2)/2==(ReYt||Yt===Pt||(Zt=Yt>Pt?Yt-Pt:Pt-Yt,Nt+=Ytnt-Zt?1:-1);x.splice(0>Nt?Pt:Pt+1,0,gt),b.splice(ht,1),ht--}else et=!1;if(et)break;x.push(b[0]),b.splice(0,1)}for(y=0;y=a?this.ul=a:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==Za&&a!==Xa&&a!==zh&&a!==$u||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==fs&&a!==Gh&&a!==Oc&&a!==Nd||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==p0&&a!==g0&&a!==m0&&!v0&&a!==Dd||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf!==a&&(this.tf=a,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(a){this.Nn===a||a!==y0&&a!==bf||(this.Nn=a,this.C())}},actualXRadius:{get:function(){return this.lc}},actualYRadius:{get:function(){return this.me}},actualSpacing:{get:function(){return this.Ti}},actualCenter:{get:function(){return this.Zv}}});var Xa=new sn(ar,"ConstantSpacing",0),zh=new sn(ar,"ConstantDistance",1),$u=new sn(ar,"ConstantAngle",2),Za=new sn(ar,"Packed",3),fs=new sn(ar,"Clockwise",4),Gh=new sn(ar,"Counterclockwise",5),Oc=new sn(ar,"BidirectionalLeft",6),Nd=new sn(ar,"BidirectionalRight",7),p0=new sn(ar,"Forwards",8),g0=new sn(ar,"Reverse",9),m0=new sn(ar,"Ascending",10),v0=new sn(ar,"Descending",11),Dd=new sn(ar,"Optimized",12),y0=new sn(ar,"Pythagorean",13),bf=new sn(ar,"Circular",14);ar.className="CircularLayout",ar.ConstantSpacing=Xa,ar.ConstantDistance=zh,ar.ConstantAngle=$u,ar.Packed=Za,ar.Clockwise=fs,ar.Counterclockwise=Gh,ar.BidirectionalLeft=Oc,ar.BidirectionalRight=Nd,ar.Forwards=p0,ar.Reverse=g0,ar.Ascending=m0,ar.Descending=v0,ar.Optimized=Dd,ar.Pythagorean=y0,ar.Circular=bf;function dg(){this.Pl=-1/0,this.tm=this.mk=null}dg.prototype.compare=function(a,y){if(0this.Pl||Math.abs(a)a&&0ht?(tt=zt.x+zt.width/2,et=zt.y+zt.height/2,bt[0]=new Ee(zt.x+zt.width+b.width,zt.y),bt[1]=new Ee(zt.x,zt.y+zt.height+b.height),ht=2):(gt=RS(bt,ht,tt,et,zt.width,zt.height,b),Nt=bt[gt],Yt=new Ee(Nt.x+zt.width+b.width,Nt.y),zt=new Ee(Nt.x,Nt.y+zt.height+b.height),gt+1this.network.vertexes.count)return!1;for(var a=0,y=0,x=this.network.vertexes.first().bounds,b=this.network.vertexes.iterator;b.next();){if(b.value.bounds.Yc(x)&&(a++,2a.network.vertexes.count)return!1;for(a.ah=a.network.vertexes.Fa(),a=a.ah,a.sort(function(x,b){return x===null||b===null||x===b?0:b.Vd-x.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1=nt))){for(var bt=ht=0,Pt=gt.count-nt;PtYt&&(Yt=1),ht=Ge.sqrt((ht+Yt+bt*bt*4/(nt*nt))/Yt),nt=(ht-1)*Pt/2,ht=(ht-1)*Nt/2,tt.bounds=new $e(et-zt.x-nt,gt-zt.y-ht,Pt+2*nt,Nt+2*ht),tt.focus=new Ee(zt.x+nt,zt.y+ht)}}return a.network=b,x}function Fw(a,y){for(var x=a.network.vertexes.iterator;x.next();){var b=x.value;if(b.network=y,b.We!==null){var tt=b.We.M(b.sv);b.Vd=tt.Rs;var et=tt.Sv,nt=tt.Tv;b.bounds=new $e(b.centerX-et,b.centerY-nt,tt.Ss,tt.Qs),b.focus=new Ee(et,nt),b.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function Bw(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var b=y.centerX,tt=y.centerY,et=y.width,nt=y.height;y.We!==null&&0=Nt.Vd?gt++:(ht=!0,bt++,nt+=Math.atan2(y.centerY-Nt.centerY,y.centerX-Nt.centerX))}if(gt!==0){for(0>1)+bt)*(ht%2===0?1:-1),gt.centerX=b+Pt*Math.cos(Nt),gt.centerY=tt+Pt*Math.sin(Nt),ht++}}}}function RS(a,y,x,b,tt,et,nt){var ht=9e19,gt=-1,bt=0;t:for(;btPt.y&&a[zt].x-Pt.xPt.x&&a[zt].y-Pt.yy+et?(x=b+tt-nt,a=a-y-et,Ge.sqrt(x*x+a*a)):a+xnt+ht?a>y+et?(x=b-nt-ht,a=a-y-et,Ge.sqrt(x*x+a*a)):a+xy+et?a-(y+et):a+x=y.length)return!1;var x=y[0];x.forceX=0,x.forceY=0;for(var b=x.centerX,tt=b,et=x=x.centerY,nt=1;ntet-x)?y.sort(function(oe,Pe){return oe===null||Pe===null||oe===Pe?0:oe.centerX-Pe.centerX}):y.sort(function(oe,Pe){return oe===null||Pe===null||oe===Pe?0:oe.centerY-Pe.centerY}),x=a.Zf;var bt=b=ht=0;for(et=0;etx||bt-gt>x){if(tt)break}else if(Pt-Yt>x||Yt-Pt>x){if(!tt)break}else{var Zt=zS(nt,zt);1>Zt?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new w0),Zt=b.random(),ht=b.random(),gt>bt?(b=Math.abs(zt.bounds.right-nt.bounds.x),b=(1+b)*Zt):gtYt?(bt=Math.abs(zt.bounds.bottom-nt.bounds.y),bt=(1+bt)*ht):gtNt?(Nt=a.randomNumberGenerator,Nt===null&&(a.randomNumberGenerator=Nt=new w0),ht=Nt.random(),Nt=Nt.random(),b=(b>gt?1:-1)*(1+(et.width>x.width?et.width:x.width))*ht,bt=(nt>Pt?1:-1)*(1+(et.height>x.height?et.height:x.height))*Nt):(ht=ht.stiffness*(Nt-ht.length),b=(gt-b)/Nt*ht,bt=(Pt-nt)/Nt*ht),x.forceX+=b,x.forceY+=bt,et.forceX-=b,et.forceY-=bt;for(tt=b=0;tta.epsilonDistance*a.epsilonDistance}_o.prototype.moveVertex=function(a){var y=a.forceX,x=a.forceY,b=this.moveLimit;return y<-b?y=-b:y>b&&(y=b),x<-b?x=-b:x>b&&(x=b),a.centerX+=y,a.centerY+=x,y*y+x*x},_o.prototype.moveFixedVertex=function(){},_o.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},_o.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=oo,y.toSpot=oo)}},_o.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=$e.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,$e.free(x)}x=$e.alloc();for(var b=this.network.vertexes.iterator;b.next();){var tt=b.value;(a!==0||y!==0)&&(x.assign(tt.bounds),x.x+=a,x.y+=y,tt.bounds=x),tt.commit()}$e.free(x)},_o.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},_o.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},_o.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},_o.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},_o.prototype.electricalFieldX=function(){return 0},_o.prototype.electricalFieldY=function(){return 0},_o.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},_o.prototype.gravitationalFieldX=function(){return 0},_o.prototype.gravitationalFieldY=function(){return 0},_o.prototype.isFixed=function(a){return a.isFixed},qe.Object.defineProperties(_o.prototype,{currentIteration:{get:function(){return this.An}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},arrangesToOrigin:{get:function(){return this.Bm},set:function(a){this.Bm!==a&&(this.Bm=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},maxIterations:{get:function(){return this.dl},set:function(a){this.dl!==a&&0<=a&&(this.dl=a,this.C())}},epsilonDistance:{get:function(){return this.$m},set:function(a){this.$m!==a&&0oe&&0oe&&0a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]nt)for(var Pt=nt+1;Ptgt;Pt--)Nt=b[Pt],Nt.near===bt&&Nt.Dj===bt.Dj||ht++;var zt;if(0<=x)for(gt=b[nt].sourceEdgesArrayAccess,bt=0;btoe||Nt===oe&&Yt>Zt)&&ht++,PeNt||oe===Nt&&Zt>Yt)&&ht++}}}if(0>=x){for(gt=b[nt].destinationEdgesArrayAccess,bt=0;btoe||Nt===oe&&Pt>Pe)&&ht++,ZtNt||oe===Nt&&Pe>Pt)&&ht++)}for(et[nt*tt+nt]=ht,gt=nt+1;gt=x){for(ht=b[nt].destinationEdgesArrayAccess,je=b[gt].destinationEdgesArrayAccess,bt=0;bt=x&&(gt=ht.sourceEdgesArrayAccess);var bt=null;0<=x&&(bt=ht.destinationEdgesArrayAccess);var Pt=0,Nt=0,zt=ht.near;if(zt!==null&&zt.layer===ht.layer&&(Pt+=zt.column-1,Nt++),gt!==null)for(zt=0;zt=x&&(gt=ht.sourceEdgesArrayAccess);var bt=null;0<=x&&(bt=ht.destinationEdgesArrayAccess);var Pt=0,Nt=[],zt=ht.near;if(zt!==null&&zt.layer===ht.layer&&(Nt[Pt]=zt.column-1,Pt++),ht=void 0,gt!==null)for(zt=0;zt>1,et[nt]=Pt&1?Nt[bt]:Nt[bt-1]+Nt[bt]>>1)}return Wh(a,y,b),et}function vg(a,y,x,b,tt,et){if(y.component===b){if(y.component=x,tt)for(var nt=y.destinationEdges;nt.next();){var ht=nt.value,gt=ht.toVertex,bt=y.layer-gt.layer;ht=a.linkMinLength(ht),bt===ht&&vg(a,gt,x,b,tt,et)}if(et)for(nt=y.sourceEdges;nt.next();)ht=nt.value,gt=ht.fromVertex,bt=gt.layer-y.layer,ht=a.linkMinLength(ht),bt===ht&&vg(a,gt,x,b,tt,et)}}function vy(a,y,x,b,tt,et){if(y.component===b){if(y.component=x,tt)for(var nt=y.destinationEdges;nt.next();)vy(a,nt.value.toVertex,x,b,tt,et);if(et)for(y=y.sourceEdges;y.next();)vy(a,y.value.fromVertex,x,b,tt,et)}}Ci.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case wy:a=this.network;var y=0,x=a.vertexes.count-1,b=[];b.length=x+1;for(var tt=a.vertexes.iterator;tt.next();)tt.value.valid=!0;for(;zw(a)!==null;){for(tt=VS(a);tt!==null;)b[x]=tt,x--,tt.valid=!1,tt=VS(a);for(tt=YS(a);tt!==null;)b[y]=tt,y++,tt.valid=!1,tt=YS(a);tt=null;for(var et=0,nt=this.network.vertexes.iterator;nt.next();){var ht=nt.value;if(ht.valid){for(var gt=0,bt=ht.destinationEdges;bt.next();)bt.value.toVertex.valid&>++;bt=0;for(var Pt=ht.sourceEdges;Pt.next();)Pt.value.fromVertex.valid&&bt++;(tt===null||ety.toVertex.index&&(a.gm(y),y.rev=!0);break;case E0:for(b=this.network.vertexes.iterator;b.next();)a=b.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,b.reset();b.next();)y=b.value,y.sourceEdges.count===0&&yy(this,y);for(b.reset();b.next();)y=b.value,y.Ll===-1&&yy(this,y);for(a.reset();a.next();)b=a.value,b.forest||(y=b.fromVertex,x=y.finish,tt=b.toVertex,et=tt.finish,tt.Llb){if(0>b)for(y.reset();y.next();)y.value.layer-=b;for(b=[],y.reset();y.next();)x=y.value,tt=b[x.layer],tt===void 0?b[x.layer]=[x]:tt.push(x);for(x=y=0;xnt&&vg(a,ht,0,-1,!0,!1)}for(vg(a,y,1,-1,!0,!0);y.component!==0;){for(et=0,b=1/0,ht=0,gt=null,nt=a.network.vertexes.iterator;nt.next();){var bt=nt.value;if(bt.component===1){var Pt=0,Nt=!1,zt=bt.sourceEdgesArrayAccess;tt=zt.length;for(var Yt=0;Ytet)&&!Pt&&(ht=nt,et=bt)}if(0>b){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer-=tt);y.component=0}else ht.component=0}}}function JS(a,y,x){return a.K===90?x&&!y.rev||!x&&y.rev?270:90:a.K===180?x&&!y.rev||!x&&y.rev?0:180:a.K===270?x&&!y.rev||!x&&y.rev?90:270:x&&!y.rev||!x&&y.rev?180:0}Ci.prototype.initializeIndices=function(){switch(this.Qk){default:case Cy:for(var a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;y.index=this.tc[x],this.tc[x]++}break;case M0:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&qS(this,x);break;case Py:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&$S(this,x)}};function qS(a,y){var x=y.layer;for(y.index=a.tc[x],a.tc[x]++,y=y.destinationEdgesArrayAccess,x=!0;x;){x=!1;for(var b=0;bet.portFromColOffset&&(x=!0,y[b]=et,y[b+1]=tt)}}for(x=0;xet.portToColOffset&&(b=!0,y[x]=et,y[x+1]=tt)}for(x=0;x=nt;b--)et=ja(this,b,-1)||et;for(tt=this.countCrossings(),tt>=a?Sa(this,y):(a=tt,y=Cs(this)),et=!0;et;)for(et=!1,b=x;b>=nt;b--)et=ja(this,b,1)||et;for(tt=this.countCrossings(),tt>=a?Sa(this,y):(a=tt,y=Cs(this)),et=!0;et;)for(et=!1,b=nt;b<=x;b++)et=ja(this,b,1)||et;for(tt>=a?Sa(this,y):(a=tt,y=Cs(this)),et=!0;et;)for(et=!1,b=nt;b<=x;b++)et=ja(this,b,-1)||et;for(tt>=a?Sa(this,y):(a=tt,y=Cs(this)),et=!0;et;)for(et=!1,b=x;b>=nt;b--)et=ja(this,b,0)||et;for(tt>=a?Sa(this,y):(a=tt,y=Cs(this)),et=!0;et;)for(et=!1,b=nt;b<=x;b++)et=ja(this,b,0)||et;tt>=a?Sa(this,y):(a=tt,y=Cs(this))}break;default:case k0:for(x=this.Ia,nt=0,ht=a+1;(b=this.countCrossings())=nt;b--)et=ja(this,b,-1)||et;for(tt=this.countCrossings(),tt>=a?Sa(this,y):(a=tt,y=Cs(this)),et=!0;et;)for(et=!1,b=x;b>=nt;b--)et=ja(this,b,1)||et;for(tt=this.countCrossings(),tt>=a?Sa(this,y):(a=tt,y=Cs(this)),et=!0;et;)for(et=!1,b=nt;b<=x;b++)et=ja(this,b,1)||et;for(tt>=a?Sa(this,y):(a=tt,y=Cs(this)),et=!0;et;)for(et=!1,b=nt;b<=x;b++)et=ja(this,b,-1)||et;for(tt>=a?Sa(this,y):(a=tt,y=Cs(this)),et=!0;et;)for(et=!1,b=x;b>=nt;b--)et=ja(this,b,0)||et;for(tt>=a?Sa(this,y):(a=tt,y=Cs(this)),et=!0;et;)for(et=!1,b=nt;b<=x;b++)et=ja(this,b,0)||et;tt>=a?Sa(this,y):(a=tt,y=Cs(this))}}Sa(this,y)};function b0(a,y,x){var b=Hh(a,y),tt=a.tc[y],et=WS(a,y,x),nt=my(a,y,x);for(x=0;xet+1&&(zt+=4*(Le-et),Yt+=4*(Le-(et+1)))}for(De=b[et].destinationEdges.iterator,De.reset();De.next();)if(Le=De.value,je=Le.toVertex,Le.valid&&je.layer===y){for(Le=0;b[Le]!==je;)Le++;Le===et+1&&(Yt+=1)}for(De=b[et+1].sourceEdges.iterator,De.reset();De.next();)if(Le=De.value,je=Le.fromVertex,Le.valid&&je.layer===y){for(Le=0;b[Le]!==je;)Le++;Leet+1&&(zt+=4*(Le-(et+1)),Yt+=4*(Le-et))}for(De=b[et+1].destinationEdges.iterator,De.reset();De.next();)if(Le=De.value,je=Le.toVertex,Le.valid&&je.layer===y){for(Le=0;b[Le]!==je;)Le++;Le===et&&(zt+=1)}Le=je=0,De=nt[b[et].index];var Re=ht[b[et].index],Ve=nt[b[et+1].index],Sn=ht[b[et+1].index];De!==-1&&(je+=Math.abs(De-Zt),Le+=Math.abs(De-pe)),Re!==-1&&(je+=Math.abs(Re-Zt),Le+=Math.abs(Re-pe)),Ve!==-1&&(je+=Math.abs(Ve-oe),Le+=Math.abs(Ve-Pe)),Sn!==-1&&(je+=Math.abs(Sn-oe),Le+=Math.abs(Sn-Pe)),(Yt>1)+8*b;this.Ra*=8}if(this.bg&2)for(x=!0;x;){for(x=!1,y=this.Md+1;y<=this.Ia;y++)x=Fd(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Fd(this,y,-1)||x;x=Fd(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)Sy(this,y,1);for(y=this.Md-1;0<=y;y--)Sy(this,y,-1);Sy(this,this.Md,0)}if(a&&(tw(this,-1),tw(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Fd(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Fd(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Fd(this,y,0)||x}}else Ww(this)};function Fd(a,y,x){for(var b=!1;Gw(a,y,x);)b=!0;return b}function Gw(a,y,x){var b,tt=Hh(a,y),et=a.tc[y],nt=my(a,y,-1);if(0x)for(b=0;bb-1||Pt-tt[b-1].column-1>Nt+a.nodeMinColumnSpace(tt[b-1],!1)?Yt=Pt-1:Yt=Pt,Nt=b+1>=et||tt[b+1].column-Pt-1>zt+a.nodeMinColumnSpace(tt[b+1],!0)?Pt+1:Pt;var Zt=zt=0,oe=0;if(0>=x)for(var Pe=tt[b].sourceEdges.iterator;Pe.next();){var pe=Pe.value,Le=pe.fromVertex;if(pe.valid&&Le.layer!==y){var je=gy(pe),De=pe.portFromColOffset;pe=pe.portToColOffset,Le=Le.column,zt+=(Math.abs(Pt+pe-(Le+De))+1)*je,Zt+=(Math.abs(Yt+pe-(Le+De))+1)*je,oe+=(Math.abs(Nt+pe-(Le+De))+1)*je}}if(0<=x)for(Pe=tt[b].destinationEdges.iterator;Pe.next();)pe=Pe.value,Le=pe.toVertex,pe.valid&&Le.layer!==y&&(je=gy(pe),De=pe.portFromColOffset,pe=pe.portToColOffset,Le=Le.column,zt+=(Math.abs(Pt+De-(Le+pe))+1)*je,Zt+=(Math.abs(Yt+De-(Le+pe))+1)*je,oe+=(Math.abs(Nt+De-(Le+pe))+1)*je);pe=De=je=0,Pe=nt[tt[b].index],Le=ht[tt[b].index],Pe!==-1&&(je+=Math.abs(Pe-Pt),De+=Math.abs(Pe-Yt),pe+=Math.abs(Pe-Nt)),Le!==-1&&(je+=Math.abs(Le-Pt),De+=Math.abs(Le-Yt),pe+=Math.abs(Le-Nt)),Zt=nt[x]?Pt=gt:bt<=nt[x]&&(Pt=bt));Pt!==ht&&(et=!0,b[x].column=Pt)}Wh(a,y,b),a.normalize()}function Uw(a,y){for(var x=!0,b=a.network.vertexes.iterator;b.next();){var tt=b.value,et=a.nodeMinColumnSpace(tt,!0),nt=a.nodeMinColumnSpace(tt,!1);if(tt.column-et<=y&&tt.column+nt>=y){x=!1;break}}if(a=!1,x)for(b.reset();b.next();)x=b.value,x.column>y&&(--x.column,a=!0);return a}function Hw(a,y){var x=y+1,b,tt=[],et=[];for(b=0;b<=a.Ia;b++)tt[b]=!1,et[b]=!1;for(var nt=a.network.vertexes.iterator;nt.next();){b=nt.value;var ht=b.column-a.nodeMinColumnSpace(b,!0),gt=b.column+a.nodeMinColumnSpace(b,!1);ht<=y&>>=y&&(tt[b.layer]=!0),ht<=x&>>=x&&(et[b.layer]=!0)}for(ht=!0,x=!1,b=0;b<=a.Ia;b++)ht=ht&&!(tt[b]&&et[b]);if(ht)for(nt.reset();nt.next();)a=nt.value,a.column>y&&(--a.column,x=!0);return x}function tw(a,y){for(var x=0;x<=a.Ra;x++)for(;Uw(a,x););for(a.normalize(),x=0;xet?Sa(a,tt):nty)for(x=a.Ra;0<=x;x--)for(tt=Cs(a),et=x0(a),b=et+1;etet?Sa(a,tt):ntx)for(b.reset();b.next();)tt=b.value,tt.column+a.nodeMinColumnSpace(tt,!1)>=y&&(tt.component=a.le);for(a.le++,b.reset();b.next();)y=b.value,y.component===-1&&(vy(a,y,a.le,-1,!0,!0),a.le++);var et;for(y=[],et=0;etx)for(nt=a.Ra;0x)for(b.reset();b.next();)x=b.value,tt[x.component]&&(x.column+=1)}function Ww(a){for(var y=oi(),x=a.fl.length,b=0;b<=x;b++)y[b]=[];for(b=a.network.vertexes.iterator;b.next();){var tt=b.value;y[x-tt.layer][tt.index]=tt}x=new gn,Vw(y,x);var et=null,nt=null,ht=null,gt=null,bt=(a.ve&1)!==0,Pt=(a.ve&2)!==0,Nt=(a.ve&4)!==0,zt=(a.ve&8)!==0;for(bt&&(a.verticalAlignment(y,x,!0),et=P0(a,y,!0,!1)),y.reverse(),Nt&&(a.verticalAlignment(y,x,!1),ht=P0(a,y,!1,!1)),b=mr(y),tt=b.next();!tt.done;tt=b.next())tt.value.reverse();zt&&(a.verticalAlignment(y,x,!1),gt=P0(a,y,!1,!0)),y.reverse(),Pt&&(a.verticalAlignment(y,x,!0),nt=P0(a,y,!0,!0)),ri(y),a.u(et,nt,ht,gt),a.network.vertexes.each(function(Yt){var Zt=oi();bt&&Zt.push(et.get(Yt)),Pt&&Zt.push(nt.get(Yt)),Nt&&Zt.push(ht.get(Yt)),zt&&Zt.push(gt.get(Yt)),Zt.sort(function(Pe,pe){return Pe-pe});var oe=Zt.length;oe=(Zt[Math.floor((oe-1)/2)]+Zt[Math.ceil((oe-1)/2)])/2,ri(Zt),Yt.zc=oe})}function Vw(a,y){for(var x=a.length,b=1;bPt)&&y.add(Nt);et++}tt=Pt}}}Ci.prototype.verticalAlignment=function(a,y,x){Yw(a),a=mr(a);for(var b=a.next();!b.done;b=a.next()){var tt=-1;b=mr(b.value);for(var et=b.next();!et.done;et=b.next()){et=et.value;var nt=x?My(et):Zw(et),ht=nt.length;if(0=y[x].length)&&(nt=y[x][0],nt.sd===nt)){nt.sd.shift===1/0&&(nt.sd.shift=0),nt=x,ht=0;do{for(et=y[nt][ht];et.align!==et.root;)et=et.align,nt++,0a&&We("Could not determine previous vertex in layer"),y[x][a-1]}Ci.prototype.u=function(a){for(var y=[],x=0;xnt;nt++)if(y[nt]){var ht=Kw(this,y[nt],b,tt,nt);htnt;et={delta:et.delta},nt++)y[nt]&&(et.delta=nt===0||nt===2?b[x]-b[nt]:tt[x]-tt[nt],et.delta!==0&&y[nt].each(function(gt){return function(bt){bt.value+=gt.delta}}(et)));ri(b),ri(tt)};function Kw(a,y,x,b,tt){if(!y||y.count===0)return x[tt]=0,b[tt]=0,1/0;var et=1/0,nt=-1/0;return y.each(function(ht){var gt=ht.key;ht=ht.value,gt=a.K===90||a.K===270?gt.width:gt.height,htnt&&(nt=ht+gt)}),x[tt]=et,b[tt]=nt,nt-et}Ci.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=C0(this,!0),y=C0(this,!1),x=this.network.edges.iterator;x.next();){var b=x.value.link;b!==null&&(b.fromSpot=a,b.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function C0(a,y){return a.K===270?y?Fo:Po:a.K===90?y?Po:Fo:a.K===180?y?vs:Ao:y?Ao:vs}Ci.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var a=0;a<=this.Ia;a++)this.he[a]=0,this.Ld[a]=0,this.Kd[a]=0,this.Ta[a]=0;for(a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;this.he[x]=Math.max(this.he[x],this.nodeMinLayerSpace(y,!0)),this.Ld[x]=Math.max(this.Ld[x],this.nodeMinLayerSpace(y,!1))}y=0,x=this.ie;for(var b=0;b<=this.Ia;b++){var tt=x;0>=this.he[b]+this.Ld[b]&&(tt=0),0=Nt.bounds.bottom?(Nt=Nt.bounds.y+Nt.bounds.height,y.m(oe++,De,Nt+Ve),y.m(oe++,De,Nt),y.m(oe++,De,Nt-je)):(y.m(oe++,De,Re+Ve),y.m(oe++,De,Re),y.m(oe++,De,Re-je)):this.K===270?Re<=Nt.bounds.y?(Nt=Nt.bounds.y,y.m(oe++,De,Nt-je),y.m(oe++,De,Nt),y.m(oe++,De,Nt+Ve)):(y.m(oe++,De,Re-je),y.m(oe++,De,Re),y.m(oe++,De,Re+Ve)):this.K===0&&(De>=Nt.bounds.right?(Nt=Nt.bounds.x+Nt.bounds.width,y.m(oe++,Nt+Ve,Re),y.m(oe++,Nt,Re),y.m(oe++,Nt-je,Re)):(y.m(oe++,De+Ve,Re),y.m(oe++,De,Re),y.m(oe++,De-je,Re)));else{y.m(oe++,pe,Le);var Sn=0;this.K===180||this.K===0?((this.K===180?De>=Nt.bounds.right:De<=Nt.bounds.x)&&(Sn=(this.K===0?-je:Ve)/2),y.m(oe++,pe+Sn,Re)):((this.K===270?Re>=Nt.bounds.bottom:Re<=Nt.bounds.y)&&(Sn=(this.K===90?-je:Ve)/2),y.m(oe++,De,Le+Sn)),y.m(oe++,De,Re)}}else je=Math.max(10,this.he[Pe.layer]),Ve=Math.max(10,this.Ld[Pe.layer]),zt?this.K===180?(y.m(oe++,De-je-Zt,Re),y.m(oe++,Math.min(De-je+Zt/2,De),Re),y.m(oe++,De,Re),y.m(oe++,De,Re),y.m(oe++,Math.max(De+Ve-Zt/2,De),Re),y.m(oe++,De+Ve+Zt,Re)):this.K===90?(y.m(oe++,De,Re+Ve+Zt),y.m(oe++,De,Math.max(Re+Ve-Zt/2,Re)),y.m(oe++,De,Re),y.m(oe++,De,Re),y.m(oe++,De,Math.min(Re-je+Zt/2,Re)),y.m(oe++,De,Re-je-Zt)):this.K===270?(y.m(oe++,De,Re-je-Zt),y.m(oe++,De,Math.min(Re-je+Zt/2,Re)),y.m(oe++,De,Re),y.m(oe++,De,Re),y.m(oe++,De,Math.max(Re+Ve-Zt/2,Re)),y.m(oe++,De,Re+Ve+Zt)):(y.m(oe++,De+Ve+Zt,Re),y.m(oe++,Math.max(De+Ve-Zt/2,De),Re),y.m(oe++,De,Re),y.m(oe++,De,Re),y.m(oe++,Math.min(De-je+Zt/2,De),Re),y.m(oe++,De-je-Zt,Re)):y.m(oe++,De,Re)}Nt=Pe}(ht===null||bt!==$r||Yt)&&(pe=y.i(oe-1).x,Le=y.i(oe-1).y,De=y.i(oe).x,Re=y.i(oe).y,Yt?(Zt=this.Ld[Pt.layer],this.K===180||this.K===0?(Yt=Le,Yt>=Pt.bounds.y&&Yt<=Pt.bounds.bottom&&(this.K===180?De>=Pt.bounds.x:De<=Pt.bounds.right)&&(Nt=Pt.centerX+(this.K===180?-Zt:Zt),Yt=Pt.bounds.x&&Yt<=Pt.bounds.right&&(this.K===270?Re>=Pt.bounds.y:Re<=Pt.bounds.bottom)&&(Nt=Pt.centerY+(this.K===270?-Zt:Zt),Yt=Pt.bounds.x?(Nt=Pt.bounds.x+Pt.bounds.width,y.L(oe-2,Nt,Le),y.L(oe-1,Nt+Ve,Le)):this.K===90&&Re<=Pt.bounds.bottom?(Nt=Pt.bounds.y,y.L(oe-2,pe,Nt),y.L(oe-1,pe,Nt-je)):this.K===270&&Re>=Pt.bounds.y?(Nt=Pt.bounds.y+Pt.bounds.height,y.L(oe-2,pe,Nt),y.L(oe-1,pe,Nt+Ve)):this.K===0&&De<=Pt.bounds.right&&(Nt=Pt.bounds.x,y.L(oe-2,Nt,Le),y.L(oe-1,Nt-je,Le))):(je=Math.max(10,this.he[Pt.layer]),Ve=Math.max(10,this.Ld[Pt.layer]),Yt=0,this.K===180||this.K===0?((this.K===180?De<=Pt.bounds.x:De>=Pt.bounds.right)&&(Yt=(this.K===0?Ve:-je)/2),y.m(oe++,De+Yt,Le)):((this.K===270?Re<=Pt.bounds.y:Re>=Pt.bounds.bottom)&&(Yt=(this.K===90?Ve:-je)/2),y.m(oe++,pe,Re+Yt)),y.m(oe++,De,Re)))}else{for(;Pt!==null&&Pt!==Nt;){for(je=Pe=null,Pt=Pt.destinationEdges.iterator;Pt.next()&&(pe=Pt.value,pe.link!==x.link||(Pe=pe.toVertex,je=pe.fromVertex,je.node!==null&&(je=null),Pe.node!==null)););if(Pe===null)break;Pe!==Nt&&(pe=y.i(oe-1).x,Le=y.i(oe-1).y,De=Pe.centerX,Re=Pe.centerY,Yt?this.K===180||this.K===0?(je!==null?je.centerY:Le)!==Re&&(je=this.Ta[Pe.layer]+this.Rf.x,oe===y.firstPickIndex+1&&(je=this.K===0?Math.max(je,pe):Math.min(je,pe)),y.m(oe++,je,Le),y.m(oe++,je,Re)):(je!==null?je.centerX:pe)!==De&&(je=this.Ta[Pe.layer]+this.Rf.y,oe===y.firstPickIndex+1&&(je=this.K===90?Math.max(je,Le):Math.min(je,Le)),y.m(oe++,pe,je),y.m(oe++,De,je)):(je=Math.max(10,this.he[Pe.layer]),Ve=Math.max(10,this.Ld[Pe.layer]),zt?this.K===180?(y.m(oe++,De+Ve+Zt,Re),y.m(oe++,Math.max(De+Ve-Zt/2,De),Re),y.m(oe++,De,Re),y.m(oe++,De,Re),y.m(oe++,Math.min(De-je+Zt/2,De),Re),y.m(oe++,De-je-Zt,Re)):this.K===90?(y.m(oe++,De,Re-je-Zt),y.m(oe++,De,Math.min(Re-je+Zt/2,Re)),y.m(oe++,De,Re),y.m(oe++,De,Re),y.m(oe++,De,Math.max(Re+Ve-Zt/2,Re)),y.m(oe++,De,Re+Ve+Zt)):this.K===270?(y.m(oe++,De,Re+Ve+Zt),y.m(oe++,De,Math.max(Re+Ve-Zt/2,Re)),y.m(oe++,De,Re),y.m(oe++,De,Re),y.m(oe++,De,Math.min(Re-je+Zt/2,Re)),y.m(oe++,De,Re-je-Zt)):(y.m(oe++,De-je-Zt,Re),y.m(oe++,Math.min(De-je+Zt/2,De),Re),y.m(oe++,De,Re),y.m(oe++,De,Re),y.m(oe++,Math.max(De+Ve-Zt/2,De),Re),y.m(oe++,De+Ve+Zt,Re)):this.K===180?(y.m(oe++,De+Ve,Re),y.m(oe++,De-je,Re)):this.K===90?(y.m(oe++,De,Re-je),y.m(oe++,De,Re+Ve)):this.K===270?(y.m(oe++,De,Re+Ve),y.m(oe++,De,Re-je)):(y.m(oe++,De-je,Re),y.m(oe++,De+Ve,Re)))),Pt=Pe}Yt&&(pe=y.i(oe-1).x,Le=y.i(oe-1).y,De=y.i(oe).x,Re=y.i(oe).y,this.K===180||this.K===0?Le!==Re&&(je=this.K===0?Math.min(Math.max((De+pe)/2,this.Ta[Nt.layer]+this.Rf.x),De):Math.max(Math.min((De+pe)/2,this.Ta[Nt.layer]+this.Rf.x),De),y.m(oe++,je,Le),y.m(oe++,je,Re)):pe!==De&&(je=this.K===90?Math.min(Math.max((Re+Le)/2,this.Ta[Nt.layer]+this.Rf.y),Re):Math.max(Math.min((Re+Le)/2,this.Ta[Nt.layer]+this.Rf.y),Re),y.m(oe++,pe,je),y.m(oe++,De,je)))}b!==null&&zt&&4<=y.pointsCount&&(nt!==null&&(nt=bt===$r?y.getLinkPointFromPoint(tt,nt,nt.ga(wi),y.i(3),!0):y.i(0),bt===$r&&(bt=y.i(2),b=y.i(3),this.direction===90||this.direction===270?(y.L(1,(nt.x+bt.x)/2,bt.y),y.L(2,b.x,(bt.y+b.y)/2)):(y.L(1,bt.x,(nt.y+bt.y)/2),y.L(2,(bt.x+b.x)/2,b.y))),nt.w()||nt.set(tt.actualBounds.center),y.L(0,nt.x,nt.y)),ht!==null&&(tt=gt===$r?y.getLinkPointFromPoint(et,ht,ht.ga(wi),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),gt===$r&&(ht=y.i(y.pointsCount-3),gt=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(tt.x+ht.x)/2,ht.y),y.L(y.pointsCount-2,gt.x,(ht.y+gt.y)/2)):(y.L(y.pointsCount-2,ht.x,(tt.y+ht.y)/2),y.L(y.pointsCount-3,(ht.x+gt.x)/2,gt.y))),tt.w()||tt.set(et.actualBounds.center),y.L(y.pointsCount-1,tt.x,tt.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},Ci.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new vn,y=this.network.edges.iterator;y.next();){var x=y.value.link;x!==null&&x.isOrthogonal&&!a.contains(x)&&a.add(x)}if(0et.y&&(Pt=bt.y>et.y?0:nt.xet.x&&(Pt=bt.x>et.x?0:nt.yy.layer?1:a.rdy.rd?1:a.Icy.Ic?1:0:0},ee.Ux=function(a,y){return a instanceof Vh&&y instanceof Vh&&a!==y?a.firsty.first||a.jy.j||a.rdy.rd?1:a.Icy.Ic?1:0:0},ee.Js=function(a,y){return a instanceof Vh&&y instanceof Vh&&a!==y?a.jcy.jc||a.jy.j||a.rdy.rd?1:a.Icy.Ic?1:0:0},ee.B=function(a,y){return a-=y,-1a},ee.zi=function(a,y,x,b){var tt=a.length,et=b-x;if(!(1>=et))if((0>x||x>=tt-1)&&We("not in range 0 <= from < length: "+x),et===2)b=a[x],tt=a[x+1],0=tt)a.sort(y);else for(x=a.slice(0,b),x.sort(y),y=0;y=tt)for(b=a.slice(x),b.sort(y),y=x;y=a.He.length){for(var b=[],tt=0;tta&&(this.bg=a,this.C())}},alignOption:{get:function(){return this.ve},set:function(a){this.ve!==a&&0<=a&&16>a&&(this.ve=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(a){this.Cn!==a&&0<=a&&(this.Cn=a,this.C())}},maxLayer:{get:function(){return this.Ia}},maxIndex:{get:function(){return this.Iq}},maxColumn:{get:function(){return this.Ra}},minIndexLayer:{get:function(){return this.Hn}},maxIndexLayer:{get:function(){return this.Md}}});var E0=new sn(Ci,"CycleDepthFirst",0),wy=new sn(Ci,"CycleGreedy",1),yg=new sn(Ci,"CycleFromLayers",2),A0=new sn(Ci,"LayerOptimalLinkLength",0),xy=new sn(Ci,"LayerLongestPathSink",1),by=new sn(Ci,"LayerLongestPathSource",2),M0=new sn(Ci,"InitDepthFirstOut",0),Py=new sn(Ci,"InitDepthFirstIn",1),Cy=new sn(Ci,"InitNaive",2),Ey=new sn(Ci,"AggressiveNone",0),k0=new sn(Ci,"AggressiveLess",1),Ay=new sn(Ci,"AggressiveMore",2),Xw=8;Ci.className="LayeredDigraphLayout",Ci.CycleDepthFirst=E0,Ci.CycleGreedy=wy,Ci.CycleFromLayers=yg,Ci.LayerOptimalLinkLength=A0,Ci.LayerLongestPathSink=xy,Ci.LayerLongestPathSource=by,Ci.InitDepthFirstOut=M0,Ci.InitDepthFirstIn=Py,Ci.InitNaive=Cy,Ci.AggressiveNone=Ey,Ci.AggressiveLess=k0,Ci.AggressiveMore=Ay,Ci.PackNone=0,Ci.PackExpand=1,Ci.PackStraighten=2,Ci.PackMedian=4,Ci.PackAll=15,Ci.AlignNone=0,Ci.AlignUpperLeft=1,Ci.AlignUpperRight=2,Ci.AlignLowerLeft=4,Ci.AlignLowerRight=8,Ci.AlignAll=15;function Vh(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}Vh.className="SegInfo";function Bd(a){Di.call(this,a)}en(Bd,Di),Bd.prototype.createVertex=function(){return new wa(this)},Bd.prototype.createEdge=function(){return new Sg(this)},Bd.className="LayeredDigraphNetwork";function wa(a){Vr.call(this,a),this.$n=this.bo=this.ao=this.co=null,this.Za=this.Ag=this.Ig=-1,this.u=NaN,this.F=null,this.valid=!1,this.finish=this.Ll=NaN,this.Dj=0,this.dv=this.ev=null}en(wa,Vr);function rw(a,y){return a.index-y.index}function L0(a,y){if(!a.$n){for(var x=[],b=mr(a.destinationEdgesArrayAccess),tt=b.next();!tt.done;tt=b.next())tt=tt.value,tt.valid&&x.push(tt);a.$n=x}for(a=mr(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;We("Unable to find destination edge to given vertex")}function My(a){if(!a.co){for(var y=[],x=mr(a.sourceEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.fromVertex);y.sort(rw),a.co=y}return a.co}function Zw(a){if(!a.ao){for(var y=[],x=mr(a.destinationEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.toVertex);y.sort(rw),a.ao=y}return a.ao}wa.prototype.Cl=function(a){Vr.prototype.Cl.call(this,a),this.bo=this.co=null},wa.prototype.Kl=function(a){Vr.prototype.Kl.call(this,a),this.bo=this.co=null},wa.prototype.zl=function(a){Vr.prototype.zl.call(this,a),this.$n=this.ao=null},wa.prototype.Jl=function(a){Vr.prototype.Jl.call(this,a),this.$n=this.ao=null},qe.Object.defineProperties(wa.prototype,{layer:{get:function(){return this.Ig},set:function(a){this.Ig!==a&&(this.Ig=a)}},column:{get:function(){return this.Ag},set:function(a){this.Ag!==a&&(this.Ag=a)}},index:{get:function(){return this.Za},set:function(a){this.Za!==a&&(this.Za=a)}},component:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},near:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),wa.prototype.deleteDestinationEdge=wa.prototype.Jl,wa.prototype.addDestinationEdge=wa.prototype.zl,wa.prototype.deleteSourceEdge=wa.prototype.Kl,wa.prototype.addSourceEdge=wa.prototype.Cl,wa.className="LayeredDigraphVertex";function Sg(a){Hs.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}en(Sg,Hs),qe.Object.defineProperties(Sg.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},valid:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},rev:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},forest:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},portFromPos:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},portToPos:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},portFromColOffset:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},portToColOffset:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),Sg.className="LayeredDigraphEdge";function $n(a){Ji.call(this),this.Ub=new gn,this.Wn=j0,this.ud=Yl,this.vo=D0,this.Bq=By,this.$v=[],this.td=!0,this.Rb=I0,this.$d=new xn(10,10).freeze();var y=new Mf(this);this.W=new Na(y),this.Y=new Na(y),this.ru=[],a&&Object.assign(this,a)}en($n,Ji),$n.prototype.cloneProtected=function(a){Ji.prototype.cloneProtected.call(this,a),a.Wn=this.Wn,a.vo=this.vo,a.Bq=this.Bq,a.td=this.td,a.Rb=this.Rb,a.$d.assign(this.$d),a.W.copyInheritedPropertiesFrom(this.W),a.Y.copyInheritedPropertiesFrom(this.Y)},$n.prototype.qb=function(a){a.classType===$n?a.name.indexOf("Alignment")===0?this.alignment=a:a.name.indexOf("Arrangement")===0?this.arrangement=a:a.name.indexOf("Compaction")===0?this.compaction=a:a.name.indexOf("Path")===0?this.path=a:a.name.indexOf("Sorting")===0?this.sorting=a:a.name.indexOf("Style")===0?this.treeStyle=a:We("Unknown enum value: "+a):Ji.prototype.qb.call(this,a)},$n.prototype.createNetwork=function(){return new Mf(this)},$n.prototype.makeNetwork=function(a){function y(b){if(b instanceof wn)return!b.isLinkLabel&&b.category!=="Comment";if(b instanceof cn){var tt=b.fromNode;return tt===null||tt.isLinkLabel||tt.category==="Comment"?!1:(b=b.toNode,!(b===null||b.isLinkLabel||b.category==="Comment"))}return!1}var x=this.createNetwork();return a instanceof Ye?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof Un?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},$n.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==F0&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof Ye&&(y=a),this.path===j0&&y!==null?this.ud=y.isTreePathToChildren?Yl:Ef:this.ud=this.path===j0?Yl:this.path,0y.level)return!1;a.removeChild(x.parent,x)}return!0}$n.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,b=0,tt=0;tttt?cw(this,a,nt,Fn,pe,Le):fw(this,a,nt,Fn,pe,Le),Fn=Le.x,pe=Le.width,Le=Le.height;break;case eh:for(De=0;DeNt&&(Mnlo&&(Cf(a,-lo,0,Gn,yi-1),O0(De,-lo,0),O0(Re,-lo,0),lo=0)}_i.S.h(lo,Pn),pe=Math.max(pe,Ve),Le=Math.max(Le,je+(hn===0?0:Zt)+io.height),Mn=Ve}else 0Nt&&(Pnlo&&(Cf(a,0,-lo,Gn,yi-1),O0(De,0,-lo),O0(Re,0,-lo),lo=0)),_i.S.h(Mn,lo),Le=Math.max(Le,Sn),pe=Math.max(pe,je+(hn===0?0:Zt)+io.width),Pn=Sn;rn++}switch(0bt&&(bt=0),135oe&&(oe=0),gt===gu&&(ht+=zt/2+a.focus.y),nt+=b+x):y?(a.comments===null?b>pe&&(pe=Oy(gt,b-pe,0),nt=pe.x,ht=pe.y,pe=b,bt=0):pe=Ty(a,pe,bt),0>bt&&(nt-=bt,bt=0),135Le&&(Le=Oy(gt,0,Pe-Le),nt=Le.x,ht=Le.y,Le=Pe,oe=0):Le=_y(a,Le,oe),0>oe&&(ht-=oe,oe=0),nt+=b+x),0tt[0].x?tt[2].assign(tt[1]):tt[1].assign(tt[2])),tt[3].ytt[0].x?tt[3].assign(tt[2]):tt[2].assign(tt[3])),hn[0].h(bt+b,0),hn[1].h(hn[0].x,Pe),hn[2].ytt[0].y?tt[2].assign(tt[1]):tt[1].assign(tt[2])),tt[3].xtt[0].y?tt[3].assign(tt[2]):tt[2].assign(tt[3])),hn[0].h(0,oe+Pe),hn[1].h(b,hn[0].y),hn[2].xb?cw(a,y,tt,rn,je,De):fw(a,y,tt,rn,je,De),rn=De.x,je=De.width,De=De.height;break;case eh:for(zt=0;ztzt&&(Vezt&&(SnNt&&(Nt=0),135pe&&(pe=0)),y.la.h(Nt,pe),y.Da.h(je,De)}}$n.prototype.customAlignment=function(a,y,x,b,tt){return[y,x,b,tt]};function cw(a,y,x,b,tt,et){var nt=x.length;if(nt===0)return new $e(b,0,tt,et);if(nt===1)return y=x[0],tt=y.Da.width,et=y.Da.height,new $e(b,0,tt,et);for(var ht=y.nodeSpacing,gt=y.rowSpacing,bt=Qa(y)===90,Pt=0,Nt=0,zt=0,Yt=0;Ytbt&&(tt-=bt),et=Math.max(et,Math.max(Yt,zt)+a+nt.height),0>x.S.x&&(b=T0(y,x.S.x,!1,b,ht))):(x.S.h(tt+a,b+ht/2-x.focus.y-x.la.y),tt=Math.max(tt,Math.max(Zt,Nt)+a+nt.width),zt=b+ht/2-x.focus.y-x.la.y,et=Math.max(et,zt+nt.height),0>zt&&(et-=zt),0>x.S.y&&(b=T0(y,x.S.y,!0,b,ht)))),new $e(b,0,tt,et)}function fw(a,y,x,b,tt,et){var nt=x.length;if(nt===0)return new $e(b,0,tt,et);if(nt===1)return x=x[0],tt=x.Da.width,et=x.Da.height,new $e(b,0,tt,et);for(var ht=y.nodeSpacing,gt=y.rowSpacing,bt=Qa(y)===270,Pt=0,Nt=0,zt=0,Yt=0;YtNt&&(tt-=Nt),et=Math.max(et,Math.abs(Math.min(Yt,zt))+a+Pt.height),0>gt.S.x&&(b=T0(y,gt.S.x,!1,b,ht))):(gt.S.h(-tt-Pt.width-a,b+ht/2-gt.focus.y-gt.la.y),tt=Math.max(tt,Math.abs(Math.min(Zt,Nt))+a+Pt.width),zt=b+ht/2-gt.focus.y-gt.la.y,et=Math.max(et,zt+Pt.height),0>zt&&(et-=zt),0>gt.S.y&&(b=T0(y,gt.S.y,!0,b,ht)))),y=0;yy&&(y=x+a.width),0>x&&(y-=x),y;case Kl:return a.width>y?a.width:y;case Xl:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case th:case Zl:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case eh:return a.width-a.focus.x+a.nodeSpacing/2+y;case gu:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function _y(a,y,x){switch(a.alignment){case Af:case zd:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Kl:return a.height>y?a.height:y;case Xl:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case th:case Zl:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case eh:return a.height-a.focus.y+a.nodeSpacing/2+y;case gu:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Oy(a,y,x){switch(a){case zd:y/=2,x/=2;break;case Af:y/=2,x/=2;break;case Kl:x=y=0;break;case Xl:break;default:We("Unhandled alignment value "+a.toString())}return new Ee(y,x)}function jc(a,y,x,b,tt,et){y=Oy(y,x,b),Cf(a,y.x,y.y,tt,et)}function Cf(a,y,x,b,tt){if(y!==0||x!==0)for(a=a.children;b<=tt;b++){var et=a[b].S;et.x+=y,et.y+=x}}function _0(a,y,x,b){var tt=y.parent;switch(a.ud){case Yl:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===tt&&y.relativePoint.h(x,b);break;case Ef:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===tt&&y.relativePoint.h(x,b);break;default:We("Unhandled path value "+a.ud.toString())}}function O0(a,y,x){for(var b=0;bNt.length||Yt===null||2>Yt.length))for(tt=x=0;xbt&&et.yet.y&&bty.length||x===null||2>x.length)b=null;else{for(Pt=Ts(a,y.length+x.length),b=et=gt=0;etgt;)bt=x[et++],Pt[b++].h(bt.x+tt,bt.y);for(x=Ts(a,b),gt=0;gtNt.length||et===null||2>et.length)tt=null;else{for(Pt=Ts(a,Nt.length+et.length),tt=bt=x=0;xet;)gt=Nt[x++],Pt[tt++].h(gt.x,gt.y);for(et=Ts(a,tt),x=0;xNt.length||Yt===null||2>Yt.length))for(tt=x=0;xgt&&et.xet.x&>y.length||x===null||2>x.length)b=null;else{for(Pt=Ts(a,y.length+x.length),b=et=gt=0;etgt;)bt=x[et++],Pt[b++].h(bt.x,bt.y+tt);for(x=Ts(a,b),gt=0;gtNt.length||et===null||2>et.length)tt=null;else{for(Pt=Ts(a,Nt.length+et.length),tt=bt=x=0;xet;)gt=Nt[x++],Pt[tt++].h(gt.x,gt.y);for(et=Ts(a,tt),x=0;x=a?0:135>=a?90:225>=a?180:315>=a?270:0}$n.prototype.computeLayerSpacing=function(a){var y=Qa(a);y=y===90||y===270;var x=a.layerSpacing;if(0=a&&(this.W.nodeIndentPastParent=a,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(a){this.W.nodeSpacing!==a&&(this.W.nodeSpacing=a,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(a){this.W.layerSpacing!==a&&(this.W.layerSpacing=a,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(a){this.W.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.W.layerSpacingParentOverlap=a,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(a){this.W.compaction===a||a!==N0&&a!==Cg||(this.W.compaction=a,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(a){this.W.breadthLimit!==a&&0<=a&&(this.W.breadthLimit=a,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(a){this.W.rowSpacing!==a&&(this.W.rowSpacing=a,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(a){this.W.rowIndent!==a&&0<=a&&(this.W.rowIndent=a,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(a){this.W.commentSpacing!==a&&(this.W.commentSpacing=a,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(a){this.W.commentMargin!==a&&(this.W.commentMargin=a,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(a){this.W.setsPortSpot!==a&&(this.W.setsPortSpot=a,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(a){this.W.portSpot.D(a)||(this.W.portSpot=a,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(a){this.W.setsChildPortSpot!==a&&(this.W.setsChildPortSpot=a,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(a){this.W.childPortSpot.D(a)||(this.W.childPortSpot=a,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(a){this.Y.sorting===a||a!==Rd&&a!==xg&&a!==bg&&!Pg||(this.Y.sorting=a,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(a){this.Y.comparer!==a&&(this.Y.comparer=a,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(a){this.Y.angle===a||a!==0&&a!==90&&a!==180&&a!==270||(this.Y.angle=a,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(a){this.Y.alignment!==a&&(this.Y.alignment=a,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(a){this.Y.nodeIndent!==a&&0<=a&&(this.Y.nodeIndent=a,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(a){this.Y.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.Y.nodeIndentPastParent=a,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(a){this.Y.nodeSpacing!==a&&(this.Y.nodeSpacing=a,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(a){this.Y.layerSpacing!==a&&(this.Y.layerSpacing=a,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(a){this.Y.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.Y.layerSpacingParentOverlap=a,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(a){this.Y.compaction===a||a!==N0&&a!==Cg||(this.Y.compaction=a,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(a){this.Y.breadthLimit!==a&&0<=a&&(this.Y.breadthLimit=a,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(a){this.Y.rowSpacing!==a&&(this.Y.rowSpacing=a,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(a){this.Y.rowIndent!==a&&0<=a&&(this.Y.rowIndent=a,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(a){this.Y.commentSpacing!==a&&(this.Y.commentSpacing=a,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(a){this.Y.commentMargin!==a&&(this.Y.commentMargin=a,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(a){this.Y.setsPortSpot!==a&&(this.Y.setsPortSpot=a,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(a){this.Y.portSpot.D(a)||(this.Y.portSpot=a,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(a){this.Y.setsChildPortSpot!==a&&(this.Y.setsChildPortSpot=a,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(a){this.Y.childPortSpot.D(a)||(this.Y.childPortSpot=a,this.C())}}});var j0=new sn($n,"PathDefault",-1),Yl=new sn($n,"PathDestination",0),Ef=new sn($n,"PathSource",1),Rd=new sn($n,"SortingForwards",10),xg=new sn($n,"SortingReverse",11),bg=new sn($n,"SortingAscending",12),Pg=new sn($n,"SortingDescending",13),zd=new sn($n,"AlignmentCenterSubtrees",20),Af=new sn($n,"AlignmentCenterChildren",21),Kl=new sn($n,"AlignmentStart",22),Xl=new sn($n,"AlignmentEnd",23),th=new sn($n,"AlignmentBus",24),Zl=new sn($n,"AlignmentBusBranching",25),eh=new sn($n,"AlignmentTopLeftBus",26),gu=new sn($n,"AlignmentBottomRightBus",27),N0=new sn($n,"CompactionNone",30),Cg=new sn($n,"CompactionBlock",31),D0=new sn($n,"StyleLayered",40),Ny=new sn($n,"StyleLastParents",41),Dy=new sn($n,"StyleAlternating",42),Iy=new sn($n,"StyleRootOnly",43),I0=new sn($n,"ArrangementVertical",50),Fy=new sn($n,"ArrangementHorizontal",51),F0=new sn($n,"ArrangementFixedRoots",52),By=new sn($n,"LayerIndividual",60),Ry=new sn($n,"LayerSiblings",61),B0=new sn($n,"LayerUniform",62);$n.className="TreeLayout",$n.PathDefault=j0,$n.PathDestination=Yl,$n.PathSource=Ef,$n.SortingForwards=Rd,$n.SortingReverse=xg,$n.SortingAscending=bg,$n.SortingDescending=Pg,$n.AlignmentCenterSubtrees=zd,$n.AlignmentCenterChildren=Af,$n.AlignmentStart=Kl,$n.AlignmentEnd=Xl,$n.AlignmentBus=th,$n.AlignmentBusBranching=Zl,$n.AlignmentTopLeftBus=eh,$n.AlignmentBottomRightBus=gu,$n.CompactionNone=N0,$n.CompactionBlock=Cg,$n.StyleLayered=D0,$n.StyleLastParents=Ny,$n.StyleAlternating=Dy,$n.StyleRootOnly=Iy,$n.ArrangementVertical=I0,$n.ArrangementHorizontal=Fy,$n.ArrangementFixedRoots=F0,$n.LayerIndividual=By,$n.LayerSiblings=Ry,$n.LayerUniform=B0;function Mf(a){Di.call(this,a)}en(Mf,Di),Mf.prototype.createVertex=function(){return new Na(this)},Mf.prototype.createEdge=function(){return new Gd(this)},Mf.className="TreeNetwork";function Na(a){Vr.call(this,a),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new Ee(0,0),this.Da=new xn(0,0),this.la=new Ee(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=Rd,this.hd=oy,this.Kb=0,this.Jb=Af,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=Cg,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=oo,this.wr=!0,this.Dp=oo}en(Na,Vr),Na.prototype.copyInheritedPropertiesFrom=function(a){a!==null&&(this.nd=a.sorting,this.hd=a.comparer,this.Kb=a.angle,this.Jb=a.alignment,this.Uq=a.nodeIndent,this.Vq=a.nodeIndentPastParent,this.Wq=a.nodeSpacing,this.ie=a.layerSpacing,this.Aq=a.layerSpacingParentOverlap,this.Hp=a.compaction,this.Ap=a.breadthLimit,this.nr=a.rowSpacing,this.mr=a.rowIndent,this.Gp=a.commentSpacing,this.Fp=a.commentMargin,this.xr=a.setsPortSpot,this.dr=a.portSpot,this.wr=a.setsChildPortSpot,this.Dp=a.childPortSpot)},qe.Object.defineProperties(Na.prototype,{initialized:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},parent:{get:function(){return this.hb},set:function(a){this.hb!==a&&(this.hb=a)}},children:{get:function(){return this.u},set:function(a){if(this.u!==a){if(a!==null)for(var y=a.length,x=0;xYt.y+x.rowIndent&&(et=Math.min(et,Math.max(Nt.y,et-y.computeNodeIndent(x))))):x.alignment===Kl?(et=b.top+tt.y,tt.y===0&&Nt.yYt.x+x.rowIndent&&(et=Math.min(et,Math.max(Nt.x,et-y.computeNodeIndent(x))))):x.alignment===Kl?(et=b.left+tt.x,tt.x===0&&Nt.xYt.y+x.rowIndent&&(et=Math.min(et,Math.max(Nt.y,et-y.computeNodeIndent(x))))):x.alignment===Kl?(et=b.top+tt.y,tt.y===0&&Nt.yYt.x+x.rowIndent&&(et=Math.min(et,Math.max(Nt.x,et-y.computeNodeIndent(x))))):x.alignment===Kl?(et=b.left+tt.x,tt.x===0&&Nt.x>>6)+vt(128|Vt&63):vt(224|Vt>>>12&15)+vt(128|Vt>>>6&63)+vt(128|Vt&63)}else{var Vt=65536+(Gt.charCodeAt(0)-55296)*1024+(Gt.charCodeAt(1)-56320);return vt(240|Vt>>>18&7)+vt(128|Vt>>>12&63)+vt(128|Vt>>>6&63)+vt(128|Vt&63)}},xt=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,dt=function(Gt){return Gt.replace(xt,yt)},ft=function(Gt){var Vt=[0,2,1][Gt.length%3],Ht=Gt.charCodeAt(0)<<16|(Gt.length>1?Gt.charCodeAt(1):0)<<8|(Gt.length>2?Gt.charCodeAt(2):0),ne=[St.charAt(Ht>>>18),St.charAt(Ht>>>12&63),Vt>=2?"=":St.charAt(Ht>>>6&63),Vt>=1?"=":St.charAt(Ht&63)];return ne.join("")},ct=rt.btoa&&typeof rt.btoa=="function"?function(Gt){return rt.btoa(Gt)}:function(Gt){if(Gt.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Gt.replace(/[\s\S]{1,3}/g,ft)},lt=function(Gt){return ct(dt(String(Gt)))},E=function(Gt){return Gt.replace(/[+\/]/g,function(Vt){return Vt=="+"?"-":"_"}).replace(/=/g,"")},z=function(Gt,Vt){return Vt?E(lt(Gt)):lt(Gt)},ot=function(Gt){return z(Gt,!0)},it;rt.Uint8Array&&(it=function(Gt,Vt){for(var Ht="",ne=0,se=Gt.length;ne>>18)+St.charAt(we>>>12&63)+(typeof Kt!="undefined"?St.charAt(we>>>6&63):"=")+(typeof re!="undefined"?St.charAt(we&63):"=")}return Vt?E(Ht):Ht});var at=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ut=function(Gt){switch(Gt.length){case 4:var Vt=(7&Gt.charCodeAt(0))<<18|(63&Gt.charCodeAt(1))<<12|(63&Gt.charCodeAt(2))<<6|63&Gt.charCodeAt(3),Ht=Vt-65536;return vt((Ht>>>10)+55296)+vt((Ht&1023)+56320);case 3:return vt((15&Gt.charCodeAt(0))<<12|(63&Gt.charCodeAt(1))<<6|63&Gt.charCodeAt(2));default:return vt((31&Gt.charCodeAt(0))<<6|63&Gt.charCodeAt(1))}},wt=function(Gt){return Gt.replace(at,ut)},Et=function(Gt){var Vt=Gt.length,Ht=Vt%4,ne=(Vt>0?pt[Gt.charAt(0)]<<18:0)|(Vt>1?pt[Gt.charAt(1)]<<12:0)|(Vt>2?pt[Gt.charAt(2)]<<6:0)|(Vt>3?pt[Gt.charAt(3)]:0),se=[vt(ne>>>16),vt(ne>>>8&255),vt(ne&255)];return se.length-=[0,0,2,1][Ht],se.join("")},At=rt.atob&&typeof rt.atob=="function"?function(Gt){return rt.atob(Gt)}:function(Gt){return Gt.replace(/\S{1,4}/g,Et)},_t=function(Gt){return At(String(Gt).replace(/[^A-Za-z0-9\+\/]/g,""))},Mt=function(Gt){return wt(At(Gt))},jt=function(Gt){return String(Gt).replace(/[-_]/g,function(Vt){return Vt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Lt=function(Gt){return Mt(jt(Gt))},It;rt.Uint8Array&&(It=function(Gt){return Uint8Array.from(_t(jt(Gt)),function(Vt){return Vt.charCodeAt(0)})});var Ut=function(){var Gt=rt.Base64;return rt.Base64=kt,Gt};if(rt.Base64={VERSION:Ct,atob:_t,btoa:ct,fromBase64:Lt,toBase64:z,utob:dt,encode:z,encodeURI:ot,btou:wt,decode:Lt,noConflict:Ut,fromUint8Array:it,toUint8Array:It},typeof Object.defineProperty=="function"){var Xt=function(Gt){return{value:Gt,enumerable:!1,writable:!0,configurable:!0}};rt.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Xt(function(){return Lt(this)})),Object.defineProperty(String.prototype,"toBase64",Xt(function(Gt){return z(this,Gt)})),Object.defineProperty(String.prototype,"toBase64URI",Xt(function(){return z(this,!0)}))}}return rt.Meteor&&(Base64=rt.Base64),tn.exports?tn.exports.Base64=rt.Base64:(Ft=[],ie=function(){return rt.Base64}.apply(Ke,Ft),ie!==void 0&&(tn.exports=ie)),{Base64:rt.Base64}})},7062:function(tn,Ke,Rt){var Ft=Rt(19637),ie=Rt(97573),rt=[Rt(96627)];tn.exports=Ft.createStore(ie,rt)},96627:function(tn,Ke,Rt){tn.exports=Ft;function Ft(){return Rt(42424),{}}},42424:function(){typeof JSON!="object"&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(tn){return tn<10?"0"+tn:tn}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(tn){return rx_escapable.lastIndex=0,rx_escapable.test(tn)?'"'+tn.replace(rx_escapable,function(Ke){var Rt=meta[Ke];return typeof Rt=="string"?Rt:"\\u"+("0000"+Ke.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+tn+'"'}function str(tn,Ke){var Rt,Ft,ie,rt,kt=gap,Ct,St=Ke[tn];switch(St&&typeof St=="object"&&typeof St.toJSON=="function"&&(St=St.toJSON(tn)),typeof rep=="function"&&(St=rep.call(Ke,tn,St)),typeof St){case"string":return quote(St);case"number":return isFinite(St)?String(St):"null";case"boolean":case"null":return String(St);case"object":if(!St)return"null";if(gap+=indent,Ct=[],Object.prototype.toString.apply(St)==="[object Array]"){for(rt=St.length,Rt=0;Rt=0;ct--)if(rt(ft[ct])){var lt=ft[ct].split("="),E=unescape(lt[0]),z=unescape(lt[1]);dt(z,E)}}function pt(dt,ft){dt&&(kt.cookie=escape(dt)+"="+escape(ft)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function vt(dt){!dt||!xt(dt)||(kt.cookie=escape(dt)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function yt(){St(function(dt,ft){vt(ft)})}function xt(dt){return new RegExp("(?:^|;\\s*)"+escape(dt).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(kt.cookie)}},52496:function(tn,Ke,Rt){var Ft=Rt(67039),ie=Ft.Global;tn.exports={name:"localStorage",read:kt,write:Ct,each:St,remove:pt,clearAll:vt};function rt(){return ie.localStorage}function kt(yt){return rt().getItem(yt)}function Ct(yt,xt){return rt().setItem(yt,xt)}function St(yt){for(var xt=rt().length-1;xt>=0;xt--){var dt=rt().key(xt);yt(kt(dt),dt)}}function pt(yt){return rt().removeItem(yt)}function vt(){return rt().clear()}},65300:function(tn){tn.exports={name:"memoryStorage",read:Rt,write:Ft,each:ie,remove:rt,clearAll:kt};var Ke={};function Rt(Ct){return Ke[Ct]}function Ft(Ct,St){Ke[Ct]=St}function ie(Ct){for(var St in Ke)Ke.hasOwnProperty(St)&&Ct(Ke[St],St)}function rt(Ct){delete Ke[Ct]}function kt(Ct){Ke={}}},16436:function(tn,Ke,Rt){var Ft=Rt(67039),ie=Ft.Global;tn.exports={name:"oldFF-globalStorage",read:kt,write:Ct,each:St,remove:pt,clearAll:vt};var rt=ie.globalStorage;function kt(yt){return rt[yt]}function Ct(yt,xt){rt[yt]=xt}function St(yt){for(var xt=rt.length-1;xt>=0;xt--){var dt=rt.key(xt);yt(rt[dt],dt)}}function pt(yt){return rt.removeItem(yt)}function vt(){St(function(yt,xt){delete rt[yt]})}},76673:function(tn,Ke,Rt){var Ft=Rt(67039),ie=Ft.Global;tn.exports={name:"oldIE-userDataStorage",write:pt,read:vt,each:yt,remove:xt,clearAll:dt};var rt="storejs",kt=ie.document,Ct=lt(),St=(ie.navigator?ie.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function pt(E,z){if(!St){var ot=ct(E);Ct(function(it){it.setAttribute(ot,z),it.save(rt)})}}function vt(E){if(!St){var z=ct(E),ot=null;return Ct(function(it){ot=it.getAttribute(z)}),ot}}function yt(E){Ct(function(z){for(var ot=z.XMLDocument.documentElement.attributes,it=ot.length-1;it>=0;it--){var at=ot[it];E(z.getAttribute(at.name),at.name)}})}function xt(E){var z=ct(E);Ct(function(ot){ot.removeAttribute(z),ot.save(rt)})}function dt(){Ct(function(E){var z=E.XMLDocument.documentElement.attributes;E.load(rt);for(var ot=z.length-1;ot>=0;ot--)E.removeAttribute(z[ot].name);E.save(rt)})}var ft=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function ct(E){return E.replace(/^\d/,"___$&").replace(ft,"___")}function lt(){if(!kt||!kt.documentElement||!kt.documentElement.addBehavior)return null;var E="script",z,ot,it;try{ot=new ActiveXObject("htmlfile"),ot.open(),ot.write("<"+E+">document.w=window'),ot.close(),z=ot.w.frames[0].document,it=z.createElement("div")}catch(at){it=kt.createElement("div"),z=kt.body}return function(at){var ut=[].slice.call(arguments,0);ut.unshift(it),z.appendChild(it),it.addBehavior("#default#userData"),it.load(rt),at.apply(this,ut),z.removeChild(it)}}},65578:function(tn,Ke,Rt){var Ft=Rt(67039),ie=Ft.Global;tn.exports={name:"sessionStorage",read:kt,write:Ct,each:St,remove:pt,clearAll:vt};function rt(){return ie.sessionStorage}function kt(yt){return rt().getItem(yt)}function Ct(yt,xt){return rt().setItem(yt,xt)}function St(yt){for(var xt=rt().length-1;xt>=0;xt--){var dt=rt().key(xt);yt(kt(dt),dt)}}function pt(yt){return rt().removeItem(yt)}function vt(){return rt().clear()}},34376:function(tn){(function(Ke,Rt){if(1)tn.exports=Rt();else var Ft,ie})(window,function(){return function(Ke){var Rt={};function Ft(ie){if(Rt[ie])return Rt[ie].exports;var rt=Rt[ie]={i:ie,l:!1,exports:{}};return Ke[ie].call(rt.exports,rt,rt.exports,Ft),rt.l=!0,rt.exports}return Ft.m=Ke,Ft.c=Rt,Ft.d=function(ie,rt,kt){Ft.o(ie,rt)||Object.defineProperty(ie,rt,{enumerable:!0,get:kt})},Ft.r=function(ie){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(ie,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ie,"__esModule",{value:!0})},Ft.t=function(ie,rt){if(1&rt&&(ie=Ft(ie)),8&rt||4&rt&&typeof ie=="object"&&ie&&ie.__esModule)return ie;var kt=Object.create(null);if(Ft.r(kt),Object.defineProperty(kt,"default",{enumerable:!0,value:ie}),2&rt&&typeof ie!="string")for(var Ct in ie)Ft.d(kt,Ct,function(St){return ie[St]}.bind(null,Ct));return kt},Ft.n=function(ie){var rt=ie&&ie.__esModule?function(){return ie.default}:function(){return ie};return Ft.d(rt,"a",rt),rt},Ft.o=function(ie,rt){return Object.prototype.hasOwnProperty.call(ie,rt)},Ft.p="",Ft(Ft.s=34)}([function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.forwardEvent=Rt.EventEmitter=void 0;var ie=function(){function rt(){this._listeners=[],this._disposed=!1}return Object.defineProperty(rt.prototype,"event",{get:function(){var kt=this;return this._event||(this._event=function(Ct){return kt._listeners.push(Ct),{dispose:function(){if(!kt._disposed){for(var St=0;St>22},yt.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?kt.stringFromCodePoint(2097151&this.content):""},yt.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},yt.prototype.setFromCharData=function(xt){this.fg=xt[Ct.CHAR_DATA_ATTR_INDEX],this.bg=0;var dt=!1;if(xt[Ct.CHAR_DATA_CHAR_INDEX].length>2)dt=!0;else if(xt[Ct.CHAR_DATA_CHAR_INDEX].length===2){var ft=xt[Ct.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=ft&&ft<=56319){var ct=xt[Ct.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=ct&&ct<=57343?this.content=1024*(ft-55296)+ct-56320+65536|xt[Ct.CHAR_DATA_WIDTH_INDEX]<<22:dt=!0}else dt=!0}else this.content=xt[Ct.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|xt[Ct.CHAR_DATA_WIDTH_INDEX]<<22;dt&&(this.combinedData=xt[Ct.CHAR_DATA_CHAR_INDEX],this.content=2097152|xt[Ct.CHAR_DATA_WIDTH_INDEX]<<22)},yt.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},yt}(St.AttributeData);Rt.CellData=pt},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.ISoundService=Rt.ISelectionService=Rt.IRenderService=Rt.IMouseService=Rt.ICoreBrowserService=Rt.ICharSizeService=void 0;var ie=Ft(14);Rt.ICharSizeService=ie.createDecorator("CharSizeService"),Rt.ICoreBrowserService=ie.createDecorator("CoreBrowserService"),Rt.IMouseService=ie.createDecorator("MouseService"),Rt.IRenderService=ie.createDecorator("RenderService"),Rt.ISelectionService=ie.createDecorator("SelectionService"),Rt.ISoundService=ie.createDecorator("SoundService")},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.ExtendedAttrs=Rt.AttributeData=void 0;var ie=function(){function kt(){this.fg=0,this.bg=0,this.extended=new rt}return kt.toColorRGB=function(Ct){return[Ct>>>16&255,Ct>>>8&255,255&Ct]},kt.fromColorRGB=function(Ct){return(255&Ct[0])<<16|(255&Ct[1])<<8|255&Ct[2]},kt.prototype.clone=function(){var Ct=new kt;return Ct.fg=this.fg,Ct.bg=this.bg,Ct.extended=this.extended.clone(),Ct},kt.prototype.isInverse=function(){return 67108864&this.fg},kt.prototype.isBold=function(){return 134217728&this.fg},kt.prototype.isUnderline=function(){return 268435456&this.fg},kt.prototype.isBlink=function(){return 536870912&this.fg},kt.prototype.isInvisible=function(){return 1073741824&this.fg},kt.prototype.isItalic=function(){return 67108864&this.bg},kt.prototype.isDim=function(){return 134217728&this.bg},kt.prototype.getFgColorMode=function(){return 50331648&this.fg},kt.prototype.getBgColorMode=function(){return 50331648&this.bg},kt.prototype.isFgRGB=function(){return(50331648&this.fg)==50331648},kt.prototype.isBgRGB=function(){return(50331648&this.bg)==50331648},kt.prototype.isFgPalette=function(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432},kt.prototype.isBgPalette=function(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432},kt.prototype.isFgDefault=function(){return(50331648&this.fg)==0},kt.prototype.isBgDefault=function(){return(50331648&this.bg)==0},kt.prototype.isAttributeDefault=function(){return this.fg===0&&this.bg===0},kt.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},kt.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},kt.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},kt.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},kt.prototype.getUnderlineColor=function(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()},kt.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},kt.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()},kt.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()},kt.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()},kt.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},kt}();Rt.AttributeData=ie;var rt=function(){function kt(Ct,St){Ct===void 0&&(Ct=0),St===void 0&&(St=-1),this.underlineStyle=Ct,this.underlineColor=St}return kt.prototype.clone=function(){return new kt(this.underlineStyle,this.underlineColor)},kt.prototype.isEmpty=function(){return this.underlineStyle===0},kt}();Rt.ExtendedAttrs=rt},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.addDisposableDomListener=void 0,Rt.addDisposableDomListener=function(ie,rt,kt,Ct){ie.addEventListener(rt,kt,Ct);var St=!1;return{dispose:function(){St||(St=!0,ie.removeEventListener(rt,kt,Ct))}}}},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.Utf8ToUtf32=Rt.StringToUtf32=Rt.utf32ToString=Rt.stringFromCodePoint=void 0,Rt.stringFromCodePoint=function(kt){return kt>65535?(kt-=65536,String.fromCharCode(55296+(kt>>10))+String.fromCharCode(kt%1024+56320)):String.fromCharCode(kt)},Rt.utf32ToString=function(kt,Ct,St){Ct===void 0&&(Ct=0),St===void 0&&(St=kt.length);for(var pt="",vt=Ct;vt65535?(yt-=65536,pt+=String.fromCharCode(55296+(yt>>10))+String.fromCharCode(yt%1024+56320)):pt+=String.fromCharCode(yt)}return pt};var ie=function(){function kt(){this._interim=0}return kt.prototype.clear=function(){this._interim=0},kt.prototype.decode=function(Ct,St){var pt=Ct.length;if(!pt)return 0;var vt=0,yt=0;this._interim&&(56320<=(ft=Ct.charCodeAt(yt++))&&ft<=57343?St[vt++]=1024*(this._interim-55296)+ft-56320+65536:(St[vt++]=this._interim,St[vt++]=ft),this._interim=0);for(var xt=yt;xt=pt)return this._interim=dt,vt;var ft;56320<=(ft=Ct.charCodeAt(xt))&&ft<=57343?St[vt++]=1024*(dt-55296)+ft-56320+65536:(St[vt++]=dt,St[vt++]=ft)}else St[vt++]=dt}return vt},kt}();Rt.StringToUtf32=ie;var rt=function(){function kt(){this.interim=new Uint8Array(3)}return kt.prototype.clear=function(){this.interim.fill(0)},kt.prototype.decode=function(Ct,St){var pt=Ct.length;if(!pt)return 0;var vt,yt,xt,dt,ft=0,ct=0,lt=0;if(this.interim[0]){var E=!1,z=this.interim[0];z&=(224&z)==192?31:(240&z)==224?15:7;for(var ot=0,it=void 0;(it=63&this.interim[++ot])&&ot<4;)z<<=6,z|=it;for(var at=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,ut=at-ot;lt=pt)return 0;if((192&(it=Ct[lt++]))!=128){lt--,E=!0;break}this.interim[ot++]=it,z<<=6,z|=63&it}E||(at===2?z<128?lt--:St[ft++]=z:at===3?z<2048||z>=55296&&z<=57343||(St[ft++]=z):z<65536||z>1114111||(St[ft++]=z)),this.interim.fill(0)}for(var wt=pt-4,Et=lt;Et=pt)return this.interim[0]=vt,ft;if((192&(yt=Ct[Et++]))!=128){Et--;continue}if((ct=(31&vt)<<6|63&yt)<128){Et--;continue}St[ft++]=ct}else if((240&vt)==224){if(Et>=pt)return this.interim[0]=vt,ft;if((192&(yt=Ct[Et++]))!=128){Et--;continue}if(Et>=pt)return this.interim[0]=vt,this.interim[1]=yt,ft;if((192&(xt=Ct[Et++]))!=128){Et--;continue}if((ct=(15&vt)<<12|(63&yt)<<6|63&xt)<2048||ct>=55296&&ct<=57343)continue;St[ft++]=ct}else if((248&vt)==240){if(Et>=pt)return this.interim[0]=vt,ft;if((192&(yt=Ct[Et++]))!=128){Et--;continue}if(Et>=pt)return this.interim[0]=vt,this.interim[1]=yt,ft;if((192&(xt=Ct[Et++]))!=128){Et--;continue}if(Et>=pt)return this.interim[0]=vt,this.interim[1]=yt,this.interim[2]=xt,ft;if((192&(dt=Ct[Et++]))!=128){Et--;continue}if((ct=(7&vt)<<18|(63&yt)<<12|(63&xt)<<6|63&dt)<65536||ct>1114111)continue;St[ft++]=ct}}return ft},kt}();Rt.Utf8ToUtf32=rt},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.CHAR_ATLAS_CELL_SPACING=Rt.DIM_OPACITY=Rt.INVERTED_DEFAULT_COLOR=void 0,Rt.INVERTED_DEFAULT_COLOR=257,Rt.DIM_OPACITY=.5,Rt.CHAR_ATLAS_CELL_SPACING=1},function(Ke,Rt,Ft){"use strict";var ie,rt,kt,Ct;function St(vt){var yt=vt.toString(16);return yt.length<2?"0"+yt:yt}function pt(vt,yt){return vt>>0}}(ie=Rt.channels||(Rt.channels={})),(rt=Rt.color||(Rt.color={})).blend=function(vt,yt){var xt=(255&yt.rgba)/255;if(xt===1)return{css:yt.css,rgba:yt.rgba};var dt=yt.rgba>>24&255,ft=yt.rgba>>16&255,ct=yt.rgba>>8&255,lt=vt.rgba>>24&255,E=vt.rgba>>16&255,z=vt.rgba>>8&255,ot=lt+Math.round((dt-lt)*xt),it=E+Math.round((ft-E)*xt),at=z+Math.round((ct-z)*xt);return{css:ie.toCss(ot,it,at),rgba:ie.toRgba(ot,it,at)}},rt.isOpaque=function(vt){return(255&vt.rgba)==255},rt.ensureContrastRatio=function(vt,yt,xt){var dt=Ct.ensureContrastRatio(vt.rgba,yt.rgba,xt);if(dt)return Ct.toColor(dt>>24&255,dt>>16&255,dt>>8&255)},rt.opaque=function(vt){var yt=(255|vt.rgba)>>>0,xt=Ct.toChannels(yt),dt=xt[0],ft=xt[1],ct=xt[2];return{css:ie.toCss(dt,ft,ct),rgba:yt}},rt.opacity=function(vt,yt){var xt=Math.round(255*yt),dt=Ct.toChannels(vt.rgba),ft=dt[0],ct=dt[1],lt=dt[2];return{css:ie.toCss(ft,ct,lt,xt),rgba:ie.toRgba(ft,ct,lt,xt)}},(Rt.css||(Rt.css={})).toColor=function(vt){switch(vt.length){case 7:return{css:vt,rgba:(parseInt(vt.slice(1),16)<<8|255)>>>0};case 9:return{css:vt,rgba:parseInt(vt.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(vt){function yt(xt,dt,ft){var ct=xt/255,lt=dt/255,E=ft/255;return .2126*(ct<=.03928?ct/12.92:Math.pow((ct+.055)/1.055,2.4))+.7152*(lt<=.03928?lt/12.92:Math.pow((lt+.055)/1.055,2.4))+.0722*(E<=.03928?E/12.92:Math.pow((E+.055)/1.055,2.4))}vt.relativeLuminance=function(xt){return yt(xt>>16&255,xt>>8&255,255&xt)},vt.relativeLuminance2=yt}(kt=Rt.rgb||(Rt.rgb={})),function(vt){function yt(dt,ft,ct){for(var lt=dt>>24&255,E=dt>>16&255,z=dt>>8&255,ot=ft>>24&255,it=ft>>16&255,at=ft>>8&255,ut=pt(kt.relativeLuminance2(ot,at,it),kt.relativeLuminance2(lt,E,z));ut0||it>0||at>0);)ot-=Math.max(0,Math.ceil(.1*ot)),it-=Math.max(0,Math.ceil(.1*it)),at-=Math.max(0,Math.ceil(.1*at)),ut=pt(kt.relativeLuminance2(ot,at,it),kt.relativeLuminance2(lt,E,z));return(ot<<24|it<<16|at<<8|255)>>>0}function xt(dt,ft,ct){for(var lt=dt>>24&255,E=dt>>16&255,z=dt>>8&255,ot=ft>>24&255,it=ft>>16&255,at=ft>>8&255,ut=pt(kt.relativeLuminance2(ot,at,it),kt.relativeLuminance2(lt,E,z));ut>>0}vt.ensureContrastRatio=function(dt,ft,ct){var lt=kt.relativeLuminance(dt>>8),E=kt.relativeLuminance(ft>>8);if(pt(lt,E)>24&255,dt>>16&255,dt>>8&255,255&dt]},vt.toColor=function(dt,ft,ct){return{css:ie.toCss(dt,ft,ct),rgba:ie.toRgba(dt,ft,ct)}}}(Ct=Rt.rgba||(Rt.rgba={})),Rt.toPaddedHex=St,Rt.contrastRatio=pt},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.isLinux=Rt.isWindows=Rt.isIphone=Rt.isIpad=Rt.isMac=Rt.isSafari=Rt.isFirefox=void 0;var ie=typeof navigator=="undefined",rt=ie?"node":navigator.userAgent,kt=ie?"node":navigator.platform;function Ct(St,pt){return St.indexOf(pt)>=0}Rt.isFirefox=!!~rt.indexOf("Firefox"),Rt.isSafari=/^((?!chrome|android).)*safari/i.test(rt),Rt.isMac=Ct(["Macintosh","MacIntel","MacPPC","Mac68K"],kt),Rt.isIpad=kt==="iPad",Rt.isIphone=kt==="iPhone",Rt.isWindows=Ct(["Windows","Win16","Win32","WinCE"],kt),Rt.isLinux=kt.indexOf("Linux")>=0},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.C1=Rt.C0=void 0,function(ie){ie.NUL="\0",ie.SOH="",ie.STX="",ie.ETX="",ie.EOT="",ie.ENQ="",ie.ACK="",ie.BEL="\x07",ie.BS="\b",ie.HT=" ",ie.LF=` -`,ie.VT="\v",ie.FF="\f",ie.CR="\r",ie.SO="",ie.SI="",ie.DLE="",ie.DC1="",ie.DC2="",ie.DC3="",ie.DC4="",ie.NAK="",ie.SYN="",ie.ETB="",ie.CAN="",ie.EM="",ie.SUB="",ie.ESC="\x1B",ie.FS="",ie.GS="",ie.RS="",ie.US="",ie.SP=" ",ie.DEL="\x7F"}(Rt.C0||(Rt.C0={})),function(ie){ie.PAD="\x80",ie.HOP="\x81",ie.BPH="\x82",ie.NBH="\x83",ie.IND="\x84",ie.NEL="\x85",ie.SSA="\x86",ie.ESA="\x87",ie.HTS="\x88",ie.HTJ="\x89",ie.VTS="\x8A",ie.PLD="\x8B",ie.PLU="\x8C",ie.RI="\x8D",ie.SS2="\x8E",ie.SS3="\x8F",ie.DCS="\x90",ie.PU1="\x91",ie.PU2="\x92",ie.STS="\x93",ie.CCH="\x94",ie.MW="\x95",ie.SPA="\x96",ie.EPA="\x97",ie.SOS="\x98",ie.SGCI="\x99",ie.SCI="\x9A",ie.CSI="\x9B",ie.ST="\x9C",ie.OSC="\x9D",ie.PM="\x9E",ie.APC="\x9F"}(Rt.C1||(Rt.C1={}))},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.BaseRenderLayer=void 0;var ie=Ft(3),rt=Ft(9),kt=Ft(25),Ct=Ft(6),St=Ft(28),pt=Ft(10),vt=Ft(17),yt=function(){function xt(dt,ft,ct,lt,E,z,ot,it){this._container=dt,this._alpha=lt,this._colors=E,this._rendererId=z,this._bufferService=ot,this._optionsService=it,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+ft+"-layer"),this._canvas.style.zIndex=ct.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return xt.prototype.dispose=function(){var dt;vt.removeElementFromParent(this._canvas),(dt=this._charAtlas)===null||dt===void 0||dt.dispose()},xt.prototype._initCanvas=function(){this._ctx=St.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},xt.prototype.onOptionsChanged=function(){},xt.prototype.onBlur=function(){},xt.prototype.onFocus=function(){},xt.prototype.onCursorMove=function(){},xt.prototype.onGridChanged=function(dt,ft){},xt.prototype.onSelectionChanged=function(dt,ft,ct){ct===void 0&&(ct=!1)},xt.prototype.setColors=function(dt){this._refreshCharAtlas(dt)},xt.prototype._setTransparency=function(dt){if(dt!==this._alpha){var ft=this._canvas;this._alpha=dt,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,ft),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},xt.prototype._refreshCharAtlas=function(dt){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=kt.acquireCharAtlas(this._optionsService.options,this._rendererId,dt,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},xt.prototype.resize=function(dt){this._scaledCellWidth=dt.scaledCellWidth,this._scaledCellHeight=dt.scaledCellHeight,this._scaledCharWidth=dt.scaledCharWidth,this._scaledCharHeight=dt.scaledCharHeight,this._scaledCharLeft=dt.scaledCharLeft,this._scaledCharTop=dt.scaledCharTop,this._canvas.width=dt.scaledCanvasWidth,this._canvas.height=dt.scaledCanvasHeight,this._canvas.style.width=dt.canvasWidth+"px",this._canvas.style.height=dt.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},xt.prototype._fillCells=function(dt,ft,ct,lt){this._ctx.fillRect(dt*this._scaledCellWidth,ft*this._scaledCellHeight,ct*this._scaledCellWidth,lt*this._scaledCellHeight)},xt.prototype._fillBottomLineAtCells=function(dt,ft,ct){ct===void 0&&(ct=1),this._ctx.fillRect(dt*this._scaledCellWidth,(ft+1)*this._scaledCellHeight-window.devicePixelRatio-1,ct*this._scaledCellWidth,window.devicePixelRatio)},xt.prototype._fillLeftLineAtCell=function(dt,ft,ct){this._ctx.fillRect(dt*this._scaledCellWidth,ft*this._scaledCellHeight,window.devicePixelRatio*ct,this._scaledCellHeight)},xt.prototype._strokeRectAtCell=function(dt,ft,ct,lt){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(dt*this._scaledCellWidth+window.devicePixelRatio/2,ft*this._scaledCellHeight+window.devicePixelRatio/2,ct*this._scaledCellWidth-window.devicePixelRatio,lt*this._scaledCellHeight-window.devicePixelRatio)},xt.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},xt.prototype._clearCells=function(dt,ft,ct,lt){this._alpha?this._ctx.clearRect(dt*this._scaledCellWidth,ft*this._scaledCellHeight,ct*this._scaledCellWidth,lt*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(dt*this._scaledCellWidth,ft*this._scaledCellHeight,ct*this._scaledCellWidth,lt*this._scaledCellHeight))},xt.prototype._fillCharTrueColor=function(dt,ft,ct){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(ct),this._ctx.fillText(dt.getChars(),ft*this._scaledCellWidth+this._scaledCharLeft,ct*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},xt.prototype._drawChars=function(dt,ft,ct){var lt,E,z=this._getContrastColor(dt);z||dt.isFgRGB()||dt.isBgRGB()?this._drawUncachedChars(dt,ft,ct,z):(dt.isInverse()?(lt=dt.isBgDefault()?rt.INVERTED_DEFAULT_COLOR:dt.getBgColor(),E=dt.isFgDefault()?rt.INVERTED_DEFAULT_COLOR:dt.getFgColor()):(E=dt.isBgDefault()?ie.DEFAULT_COLOR:dt.getBgColor(),lt=dt.isFgDefault()?ie.DEFAULT_COLOR:dt.getFgColor()),lt+=this._optionsService.options.drawBoldTextInBrightColors&&dt.isBold()&<<8?8:0,this._currentGlyphIdentifier.chars=dt.getChars()||ie.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=dt.getCode()||ie.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=E,this._currentGlyphIdentifier.fg=lt,this._currentGlyphIdentifier.bold=!!dt.isBold(),this._currentGlyphIdentifier.dim=!!dt.isDim(),this._currentGlyphIdentifier.italic=!!dt.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,ft*this._scaledCellWidth+this._scaledCharLeft,ct*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(dt,ft,ct))},xt.prototype._drawUncachedChars=function(dt,ft,ct,lt){if(this._ctx.save(),this._ctx.font=this._getFont(!!dt.isBold(),!!dt.isItalic()),this._ctx.textBaseline="middle",dt.isInverse())if(lt)this._ctx.fillStyle=lt.css;else if(dt.isBgDefault())this._ctx.fillStyle=pt.color.opaque(this._colors.background).css;else if(dt.isBgRGB())this._ctx.fillStyle="rgb("+Ct.AttributeData.toColorRGB(dt.getBgColor()).join(",")+")";else{var E=dt.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&dt.isBold()&&E<8&&(E+=8),this._ctx.fillStyle=this._colors.ansi[E].css}else if(lt)this._ctx.fillStyle=lt.css;else if(dt.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(dt.isFgRGB())this._ctx.fillStyle="rgb("+Ct.AttributeData.toColorRGB(dt.getFgColor()).join(",")+")";else{var z=dt.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&dt.isBold()&&z<8&&(z+=8),this._ctx.fillStyle=this._colors.ansi[z].css}this._clipRow(ct),dt.isDim()&&(this._ctx.globalAlpha=rt.DIM_OPACITY),this._ctx.fillText(dt.getChars(),ft*this._scaledCellWidth+this._scaledCharLeft,ct*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},xt.prototype._clipRow=function(dt){this._ctx.beginPath(),this._ctx.rect(0,dt*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},xt.prototype._getFont=function(dt,ft){return(ft?"italic":"")+" "+(dt?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},xt.prototype._getContrastColor=function(dt){if(this._optionsService.options.minimumContrastRatio!==1){var ft=this._colors.contrastCache.getColor(dt.bg,dt.fg);if(ft!==void 0)return ft||void 0;var ct=dt.getFgColor(),lt=dt.getFgColorMode(),E=dt.getBgColor(),z=dt.getBgColorMode(),ot=!!dt.isInverse(),it=!!dt.isInverse();if(ot){var at=ct;ct=E,E=at;var ut=lt;lt=z,z=ut}var wt=this._resolveBackgroundRgba(z,E,ot),Et=this._resolveForegroundRgba(lt,ct,ot,it),At=pt.rgba.ensureContrastRatio(wt,Et,this._optionsService.options.minimumContrastRatio);if(At){var _t={css:pt.channels.toCss(At>>24&255,At>>16&255,At>>8&255),rgba:At};return this._colors.contrastCache.setColor(dt.bg,dt.fg,_t),_t}this._colors.contrastCache.setColor(dt.bg,dt.fg,null)}},xt.prototype._resolveBackgroundRgba=function(dt,ft,ct){switch(dt){case 16777216:case 33554432:return this._colors.ansi[ft].rgba;case 50331648:return ft<<8;case 0:default:return ct?this._colors.foreground.rgba:this._colors.background.rgba}},xt.prototype._resolveForegroundRgba=function(dt,ft,ct,lt){switch(dt){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&<&&ft<8&&(ft+=8),this._colors.ansi[ft].rgba;case 50331648:return ft<<8;case 0:default:return ct?this._colors.background.rgba:this._colors.foreground.rgba}},xt}();Rt.BaseRenderLayer=yt},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.createDecorator=Rt.getServiceDependencies=Rt.serviceRegistry=void 0;function ie(rt,kt,Ct){kt.di$target===kt?kt.di$dependencies.push({id:rt,index:Ct}):(kt.di$dependencies=[{id:rt,index:Ct}],kt.di$target=kt)}Rt.serviceRegistry=new Map,Rt.getServiceDependencies=function(rt){return rt.di$dependencies||[]},Rt.createDecorator=function(rt){if(Rt.serviceRegistry.has(rt))return Rt.serviceRegistry.get(rt);var kt=function(Ct,St,pt){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");ie(kt,Ct,pt)};return kt.toString=function(){return rt},Rt.serviceRegistry.set(rt,kt),kt}},function(Ke,Rt,Ft){"use strict";function ie(rt,kt,Ct,St){if(Ct===void 0&&(Ct=0),St===void 0&&(St=rt.length),Ct>=rt.length)return rt;Ct=(rt.length+Ct)%rt.length,St=St>=rt.length?rt.length:(rt.length+St)%rt.length;for(var pt=Ct;pt>22,2097152&yt?this._combined[vt].charCodeAt(this._combined[vt].length-1):xt]},pt.prototype.set=function(vt,yt){this._data[3*vt+1]=yt[rt.CHAR_DATA_ATTR_INDEX],yt[rt.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[vt]=yt[1],this._data[3*vt+0]=2097152|vt|yt[rt.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*vt+0]=yt[rt.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|yt[rt.CHAR_DATA_WIDTH_INDEX]<<22},pt.prototype.getWidth=function(vt){return this._data[3*vt+0]>>22},pt.prototype.hasWidth=function(vt){return 12582912&this._data[3*vt+0]},pt.prototype.getFg=function(vt){return this._data[3*vt+1]},pt.prototype.getBg=function(vt){return this._data[3*vt+2]},pt.prototype.hasContent=function(vt){return 4194303&this._data[3*vt+0]},pt.prototype.getCodePoint=function(vt){var yt=this._data[3*vt+0];return 2097152&yt?this._combined[vt].charCodeAt(this._combined[vt].length-1):2097151&yt},pt.prototype.isCombined=function(vt){return 2097152&this._data[3*vt+0]},pt.prototype.getString=function(vt){var yt=this._data[3*vt+0];return 2097152&yt?this._combined[vt]:2097151&yt?ie.stringFromCodePoint(2097151&yt):""},pt.prototype.loadCell=function(vt,yt){var xt=3*vt;return yt.content=this._data[xt+0],yt.fg=this._data[xt+1],yt.bg=this._data[xt+2],2097152&yt.content&&(yt.combinedData=this._combined[vt]),268435456&yt.bg&&(yt.extended=this._extendedAttrs[vt]),yt},pt.prototype.setCell=function(vt,yt){2097152&yt.content&&(this._combined[vt]=yt.combinedData),268435456&yt.bg&&(this._extendedAttrs[vt]=yt.extended),this._data[3*vt+0]=yt.content,this._data[3*vt+1]=yt.fg,this._data[3*vt+2]=yt.bg},pt.prototype.setCellFromCodePoint=function(vt,yt,xt,dt,ft,ct){268435456&ft&&(this._extendedAttrs[vt]=ct),this._data[3*vt+0]=yt|xt<<22,this._data[3*vt+1]=dt,this._data[3*vt+2]=ft},pt.prototype.addCodepointToCell=function(vt,yt){var xt=this._data[3*vt+0];2097152&xt?this._combined[vt]+=ie.stringFromCodePoint(yt):(2097151&xt?(this._combined[vt]=ie.stringFromCodePoint(2097151&xt)+ie.stringFromCodePoint(yt),xt&=-2097152,xt|=2097152):xt=yt|1<<22,this._data[3*vt+0]=xt)},pt.prototype.insertCells=function(vt,yt,xt,dt){if((vt%=this.length)&&this.getWidth(vt-1)===2&&this.setCellFromCodePoint(vt-1,0,1,(dt==null?void 0:dt.fg)||0,(dt==null?void 0:dt.bg)||0,(dt==null?void 0:dt.extended)||new Ct.ExtendedAttrs),yt=0;--ct)this.setCell(vt+yt+ct,this.loadCell(vt+ct,ft));for(ct=0;ctthis.length){var xt=new Uint32Array(3*vt);this.length&&(3*vt=vt&&delete this._combined[ct]}}else this._data=new Uint32Array(0),this._combined={};this.length=vt}},pt.prototype.fill=function(vt){this._combined={},this._extendedAttrs={};for(var yt=0;yt=0;--vt)if(4194303&this._data[3*vt+0])return vt+(this._data[3*vt+0]>>22);return 0},pt.prototype.copyCellsFrom=function(vt,yt,xt,dt,ft){var ct=vt._data;if(ft)for(var lt=dt-1;lt>=0;lt--)for(var E=0;E<3;E++)this._data[3*(xt+lt)+E]=ct[3*(yt+lt)+E];else for(lt=0;lt=yt&&(this._combined[ot-yt+xt]=vt._combined[ot])}},pt.prototype.translateToString=function(vt,yt,xt){vt===void 0&&(vt=!1),yt===void 0&&(yt=0),xt===void 0&&(xt=this.length),vt&&(xt=Math.min(xt,this.getTrimmedLength()));for(var dt="";yt>22||1}return dt},pt}();Rt.BufferLine=St},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.removeElementFromParent=void 0,Rt.removeElementFromParent=function(){for(var ie,rt=[],kt=0;kt24)return At.setWinLines||!1;switch(Et){case 1:return!!At.restoreWin;case 2:return!!At.minimizeWin;case 3:return!!At.setWinPosition;case 4:return!!At.setWinSizePixels;case 5:return!!At.raiseWin;case 6:return!!At.lowerWin;case 7:return!!At.refreshWin;case 8:return!!At.setWinSizeChars;case 9:return!!At.maximizeWin;case 10:return!!At.fullscreenWin;case 11:return!!At.getWinState;case 13:return!!At.getWinPosition;case 14:return!!At.getWinSizePixels;case 15:return!!At.getScreenSizePixels;case 16:return!!At.getCellSizePixels;case 18:return!!At.getWinSizeChars;case 19:return!!At.getScreenSizeChars;case 20:return!!At.getIconTitle;case 21:return!!At.getWinTitle;case 22:return!!At.pushTitle;case 23:return!!At.popTitle;case 24:return!!At.setWinLines}return!1}(function(Et){Et[Et.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",Et[Et.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(kt=Rt.WindowsOptionsReportType||(Rt.WindowsOptionsReportType={}));var ut=function(){function Et(At,_t,Mt,jt){this._bufferService=At,this._coreService=_t,this._logService=Mt,this._optionsService=jt,this._data=new Uint32Array(0)}return Et.prototype.hook=function(At){this._data=new Uint32Array(0)},Et.prototype.put=function(At,_t,Mt){this._data=yt.concat(this._data,At.subarray(_t,Mt))},Et.prototype.unhook=function(At){if(At){var _t=xt.utf32ToString(this._data);switch(this._data=new Uint32Array(0),_t){case'"q':return this._coreService.triggerDataEvent(Ct.C0.ESC+'P1$r0"q'+Ct.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(Ct.C0.ESC+'P1$r61;1"p'+Ct.C0.ESC+"\\");case"r":var Mt=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(Ct.C0.ESC+"P1$r"+Mt+Ct.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(Ct.C0.ESC+"P1$r0m"+Ct.C0.ESC+"\\");case" q":var jt={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return jt-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(Ct.C0.ESC+"P1$r"+jt+" q"+Ct.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",_t),this._coreService.triggerDataEvent(Ct.C0.ESC+"P0$r"+Ct.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},Et}(),wt=function(Et){function At(_t,Mt,jt,Lt,It,Ut,Xt,Gt,Yt){Yt===void 0&&(Yt=new pt.EscapeSequenceParser);var Ht=Et.call(this)||this;Ht._bufferService=_t,Ht._charsetService=Mt,Ht._coreService=jt,Ht._dirtyRowService=Lt,Ht._logService=It,Ht._optionsService=Ut,Ht._coreMouseService=Xt,Ht._unicodeService=Gt,Ht._parser=Yt,Ht._parseBuffer=new Uint32Array(4096),Ht._stringDecoder=new xt.StringToUtf32,Ht._utf8Decoder=new xt.Utf8ToUtf32,Ht._workCell=new lt.CellData,Ht._windowTitle="",Ht._iconName="",Ht._windowTitleStack=[],Ht._iconNameStack=[],Ht._curAttrData=dt.DEFAULT_ATTR_DATA.clone(),Ht._eraseAttrDataInternal=dt.DEFAULT_ATTR_DATA.clone(),Ht._onRequestBell=new ft.EventEmitter,Ht._onRequestRefreshRows=new ft.EventEmitter,Ht._onRequestReset=new ft.EventEmitter,Ht._onRequestScroll=new ft.EventEmitter,Ht._onRequestSyncScrollBar=new ft.EventEmitter,Ht._onRequestWindowsOptionsReport=new ft.EventEmitter,Ht._onA11yChar=new ft.EventEmitter,Ht._onA11yTab=new ft.EventEmitter,Ht._onCursorMove=new ft.EventEmitter,Ht._onLineFeed=new ft.EventEmitter,Ht._onScroll=new ft.EventEmitter,Ht._onTitleChange=new ft.EventEmitter,Ht.register(Ht._parser),Ht._parser.setCsiHandlerFallback(function(Kt,re){Ht._logService.debug("Unknown CSI code: ",{identifier:Ht._parser.identToString(Kt),params:re.toArray()})}),Ht._parser.setEscHandlerFallback(function(Kt){Ht._logService.debug("Unknown ESC code: ",{identifier:Ht._parser.identToString(Kt)})}),Ht._parser.setExecuteHandlerFallback(function(Kt){Ht._logService.debug("Unknown EXECUTE code: ",{code:Kt})}),Ht._parser.setOscHandlerFallback(function(Kt,re,we){Ht._logService.debug("Unknown OSC code: ",{identifier:Kt,action:re,data:we})}),Ht._parser.setDcsHandlerFallback(function(Kt,re,we){re==="HOOK"&&(we=we.toArray()),Ht._logService.debug("Unknown DCS code: ",{identifier:Ht._parser.identToString(Kt),action:re,payload:we})}),Ht._parser.setPrintHandler(function(Kt,re,we){return Ht.print(Kt,re,we)}),Ht._parser.setCsiHandler({final:"@"},function(Kt){return Ht.insertChars(Kt)}),Ht._parser.setCsiHandler({intermediates:" ",final:"@"},function(Kt){return Ht.scrollLeft(Kt)}),Ht._parser.setCsiHandler({final:"A"},function(Kt){return Ht.cursorUp(Kt)}),Ht._parser.setCsiHandler({intermediates:" ",final:"A"},function(Kt){return Ht.scrollRight(Kt)}),Ht._parser.setCsiHandler({final:"B"},function(Kt){return Ht.cursorDown(Kt)}),Ht._parser.setCsiHandler({final:"C"},function(Kt){return Ht.cursorForward(Kt)}),Ht._parser.setCsiHandler({final:"D"},function(Kt){return Ht.cursorBackward(Kt)}),Ht._parser.setCsiHandler({final:"E"},function(Kt){return Ht.cursorNextLine(Kt)}),Ht._parser.setCsiHandler({final:"F"},function(Kt){return Ht.cursorPrecedingLine(Kt)}),Ht._parser.setCsiHandler({final:"G"},function(Kt){return Ht.cursorCharAbsolute(Kt)}),Ht._parser.setCsiHandler({final:"H"},function(Kt){return Ht.cursorPosition(Kt)}),Ht._parser.setCsiHandler({final:"I"},function(Kt){return Ht.cursorForwardTab(Kt)}),Ht._parser.setCsiHandler({final:"J"},function(Kt){return Ht.eraseInDisplay(Kt)}),Ht._parser.setCsiHandler({prefix:"?",final:"J"},function(Kt){return Ht.eraseInDisplay(Kt)}),Ht._parser.setCsiHandler({final:"K"},function(Kt){return Ht.eraseInLine(Kt)}),Ht._parser.setCsiHandler({prefix:"?",final:"K"},function(Kt){return Ht.eraseInLine(Kt)}),Ht._parser.setCsiHandler({final:"L"},function(Kt){return Ht.insertLines(Kt)}),Ht._parser.setCsiHandler({final:"M"},function(Kt){return Ht.deleteLines(Kt)}),Ht._parser.setCsiHandler({final:"P"},function(Kt){return Ht.deleteChars(Kt)}),Ht._parser.setCsiHandler({final:"S"},function(Kt){return Ht.scrollUp(Kt)}),Ht._parser.setCsiHandler({final:"T"},function(Kt){return Ht.scrollDown(Kt)}),Ht._parser.setCsiHandler({final:"X"},function(Kt){return Ht.eraseChars(Kt)}),Ht._parser.setCsiHandler({final:"Z"},function(Kt){return Ht.cursorBackwardTab(Kt)}),Ht._parser.setCsiHandler({final:"`"},function(Kt){return Ht.charPosAbsolute(Kt)}),Ht._parser.setCsiHandler({final:"a"},function(Kt){return Ht.hPositionRelative(Kt)}),Ht._parser.setCsiHandler({final:"b"},function(Kt){return Ht.repeatPrecedingCharacter(Kt)}),Ht._parser.setCsiHandler({final:"c"},function(Kt){return Ht.sendDeviceAttributesPrimary(Kt)}),Ht._parser.setCsiHandler({prefix:">",final:"c"},function(Kt){return Ht.sendDeviceAttributesSecondary(Kt)}),Ht._parser.setCsiHandler({final:"d"},function(Kt){return Ht.linePosAbsolute(Kt)}),Ht._parser.setCsiHandler({final:"e"},function(Kt){return Ht.vPositionRelative(Kt)}),Ht._parser.setCsiHandler({final:"f"},function(Kt){return Ht.hVPosition(Kt)}),Ht._parser.setCsiHandler({final:"g"},function(Kt){return Ht.tabClear(Kt)}),Ht._parser.setCsiHandler({final:"h"},function(Kt){return Ht.setMode(Kt)}),Ht._parser.setCsiHandler({prefix:"?",final:"h"},function(Kt){return Ht.setModePrivate(Kt)}),Ht._parser.setCsiHandler({final:"l"},function(Kt){return Ht.resetMode(Kt)}),Ht._parser.setCsiHandler({prefix:"?",final:"l"},function(Kt){return Ht.resetModePrivate(Kt)}),Ht._parser.setCsiHandler({final:"m"},function(Kt){return Ht.charAttributes(Kt)}),Ht._parser.setCsiHandler({final:"n"},function(Kt){return Ht.deviceStatus(Kt)}),Ht._parser.setCsiHandler({prefix:"?",final:"n"},function(Kt){return Ht.deviceStatusPrivate(Kt)}),Ht._parser.setCsiHandler({intermediates:"!",final:"p"},function(Kt){return Ht.softReset(Kt)}),Ht._parser.setCsiHandler({intermediates:" ",final:"q"},function(Kt){return Ht.setCursorStyle(Kt)}),Ht._parser.setCsiHandler({final:"r"},function(Kt){return Ht.setScrollRegion(Kt)}),Ht._parser.setCsiHandler({final:"s"},function(Kt){return Ht.saveCursor(Kt)}),Ht._parser.setCsiHandler({final:"t"},function(Kt){return Ht.windowOptions(Kt)}),Ht._parser.setCsiHandler({final:"u"},function(Kt){return Ht.restoreCursor(Kt)}),Ht._parser.setCsiHandler({intermediates:"'",final:"}"},function(Kt){return Ht.insertColumns(Kt)}),Ht._parser.setCsiHandler({intermediates:"'",final:"~"},function(Kt){return Ht.deleteColumns(Kt)}),Ht._parser.setExecuteHandler(Ct.C0.BEL,function(){return Ht.bell()}),Ht._parser.setExecuteHandler(Ct.C0.LF,function(){return Ht.lineFeed()}),Ht._parser.setExecuteHandler(Ct.C0.VT,function(){return Ht.lineFeed()}),Ht._parser.setExecuteHandler(Ct.C0.FF,function(){return Ht.lineFeed()}),Ht._parser.setExecuteHandler(Ct.C0.CR,function(){return Ht.carriageReturn()}),Ht._parser.setExecuteHandler(Ct.C0.BS,function(){return Ht.backspace()}),Ht._parser.setExecuteHandler(Ct.C0.HT,function(){return Ht.tab()}),Ht._parser.setExecuteHandler(Ct.C0.SO,function(){return Ht.shiftOut()}),Ht._parser.setExecuteHandler(Ct.C0.SI,function(){return Ht.shiftIn()}),Ht._parser.setExecuteHandler(Ct.C1.IND,function(){return Ht.index()}),Ht._parser.setExecuteHandler(Ct.C1.NEL,function(){return Ht.nextLine()}),Ht._parser.setExecuteHandler(Ct.C1.HTS,function(){return Ht.tabSet()}),Ht._parser.setOscHandler(0,new z.OscHandler(function(Kt){Ht.setTitle(Kt),Ht.setIconName(Kt)})),Ht._parser.setOscHandler(1,new z.OscHandler(function(Kt){return Ht.setIconName(Kt)})),Ht._parser.setOscHandler(2,new z.OscHandler(function(Kt){return Ht.setTitle(Kt)})),Ht._parser.setEscHandler({final:"7"},function(){return Ht.saveCursor()}),Ht._parser.setEscHandler({final:"8"},function(){return Ht.restoreCursor()}),Ht._parser.setEscHandler({final:"D"},function(){return Ht.index()}),Ht._parser.setEscHandler({final:"E"},function(){return Ht.nextLine()}),Ht._parser.setEscHandler({final:"H"},function(){return Ht.tabSet()}),Ht._parser.setEscHandler({final:"M"},function(){return Ht.reverseIndex()}),Ht._parser.setEscHandler({final:"="},function(){return Ht.keypadApplicationMode()}),Ht._parser.setEscHandler({final:">"},function(){return Ht.keypadNumericMode()}),Ht._parser.setEscHandler({final:"c"},function(){return Ht.fullReset()}),Ht._parser.setEscHandler({final:"n"},function(){return Ht.setgLevel(2)}),Ht._parser.setEscHandler({final:"o"},function(){return Ht.setgLevel(3)}),Ht._parser.setEscHandler({final:"|"},function(){return Ht.setgLevel(3)}),Ht._parser.setEscHandler({final:"}"},function(){return Ht.setgLevel(2)}),Ht._parser.setEscHandler({final:"~"},function(){return Ht.setgLevel(1)}),Ht._parser.setEscHandler({intermediates:"%",final:"@"},function(){return Ht.selectDefaultCharset()}),Ht._parser.setEscHandler({intermediates:"%",final:"G"},function(){return Ht.selectDefaultCharset()});var ne=function(Kt){ae._parser.setEscHandler({intermediates:"(",final:Kt},function(){return Ht.selectCharset("("+Kt)}),ae._parser.setEscHandler({intermediates:")",final:Kt},function(){return Ht.selectCharset(")"+Kt)}),ae._parser.setEscHandler({intermediates:"*",final:Kt},function(){return Ht.selectCharset("*"+Kt)}),ae._parser.setEscHandler({intermediates:"+",final:Kt},function(){return Ht.selectCharset("+"+Kt)}),ae._parser.setEscHandler({intermediates:"-",final:Kt},function(){return Ht.selectCharset("-"+Kt)}),ae._parser.setEscHandler({intermediates:".",final:Kt},function(){return Ht.selectCharset("."+Kt)}),ae._parser.setEscHandler({intermediates:"/",final:Kt},function(){return Ht.selectCharset("/"+Kt)})},ae=this;for(var ve in St.CHARSETS)ne(ve);return Ht._parser.setEscHandler({intermediates:"#",final:"8"},function(){return Ht.screenAlignmentPattern()}),Ht._parser.setErrorHandler(function(Kt){return Ht._logService.error("Parsing error: ",Kt),Kt}),Ht._parser.setDcsHandler({intermediates:"$",final:"q"},new ut(Ht._bufferService,Ht._coreService,Ht._logService,Ht._optionsService)),Ht}return rt(At,Et),Object.defineProperty(At.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),At.prototype.dispose=function(){Et.prototype.dispose.call(this)},At.prototype.parse=function(_t){var Mt=this._bufferService.buffer,jt=Mt.x,Lt=Mt.y;if(this._logService.debug("parsing data",_t),this._parseBuffer.length<_t.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(_t.length,131072))),this._dirtyRowService.clearRange(),_t.length>131072)for(var It=0;It<_t.length;It+=131072){var Ut=It+131072<_t.length?It+131072:_t.length,Xt=typeof _t=="string"?this._stringDecoder.decode(_t.substring(It,Ut),this._parseBuffer):this._utf8Decoder.decode(_t.subarray(It,Ut),this._parseBuffer);this._parser.parse(this._parseBuffer,Xt)}else Xt=typeof _t=="string"?this._stringDecoder.decode(_t,this._parseBuffer):this._utf8Decoder.decode(_t,this._parseBuffer),this._parser.parse(this._parseBuffer,Xt);(Mt=this._bufferService.buffer).x===jt&&Mt.y===Lt||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},At.prototype.print=function(_t,Mt,jt){var Lt,It,Ut=this._bufferService.buffer,Xt=this._charsetService.charset,Gt=this._optionsService.options.screenReaderMode,Yt=this._bufferService.cols,Ht=this._coreService.decPrivateModes.wraparound,ne=this._coreService.modes.insertMode,ae=this._curAttrData,ve=Ut.lines.get(Ut.ybase+Ut.y);this._dirtyRowService.markDirty(Ut.y),Ut.x&&jt-Mt>0&&ve.getWidth(Ut.x-1)===2&&ve.setCellFromCodePoint(Ut.x-1,0,1,ae.fg,ae.bg,ae.extended);for(var Kt=Mt;Kt=Yt){if(Ht){for(;Ut.x=this._bufferService.rows&&(Ut.y=this._bufferService.rows-1),Ut.lines.get(Ut.ybase+Ut.y).isWrapped=!0),ve=Ut.lines.get(Ut.ybase+Ut.y)}else if(Ut.x=Yt-1,It===2)continue}if(ne&&(ve.insertCells(Ut.x,It,Ut.getNullCell(ae),ae),ve.getWidth(Yt-1)===2&&ve.setCellFromCodePoint(Yt-1,ct.NULL_CELL_CODE,ct.NULL_CELL_WIDTH,ae.fg,ae.bg,ae.extended)),ve.setCellFromCodePoint(Ut.x++,Lt,It,ae.fg,ae.bg,ae.extended),It>0)for(;--It;)ve.setCellFromCodePoint(Ut.x++,0,0,ae.fg,ae.bg,ae.extended)}else ve.getWidth(Ut.x-1)?ve.addCodepointToCell(Ut.x-1,Lt):ve.addCodepointToCell(Ut.x-2,Lt)}jt-Mt>0&&(ve.loadCell(Ut.x-1,this._workCell),this._workCell.getWidth()===2||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),Ut.x0&&ve.getWidth(Ut.x)===0&&!ve.hasContent(Ut.x)&&ve.setCellFromCodePoint(Ut.x,0,1,ae.fg,ae.bg,ae.extended),this._dirtyRowService.markDirty(Ut.y)},At.prototype.addCsiHandler=function(_t,Mt){var jt=this;return _t.final!=="t"||_t.prefix||_t.intermediates?this._parser.addCsiHandler(_t,Mt):this._parser.addCsiHandler(_t,function(Lt){return!at(Lt.params[0],jt._optionsService.options.windowOptions)||Mt(Lt)})},At.prototype.addDcsHandler=function(_t,Mt){return this._parser.addDcsHandler(_t,new ot.DcsHandler(Mt))},At.prototype.addEscHandler=function(_t,Mt){return this._parser.addEscHandler(_t,Mt)},At.prototype.addOscHandler=function(_t,Mt){return this._parser.addOscHandler(_t,new z.OscHandler(Mt))},At.prototype.bell=function(){this._onRequestBell.fire()},At.prototype.lineFeed=function(){var _t=this._bufferService.buffer;this._dirtyRowService.markDirty(_t.y),this._optionsService.options.convertEol&&(_t.x=0),_t.y++,_t.y===_t.scrollBottom+1?(_t.y--,this._onRequestScroll.fire(this._eraseAttrData())):_t.y>=this._bufferService.rows&&(_t.y=this._bufferService.rows-1),_t.x>=this._bufferService.cols&&_t.x--,this._dirtyRowService.markDirty(_t.y),this._onLineFeed.fire()},At.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},At.prototype.backspace=function(){var _t,Mt=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(Mt.x>0&&Mt.x--);if(this._restrictCursor(this._bufferService.cols),Mt.x>0)Mt.x--;else if(Mt.x===0&&Mt.y>Mt.scrollTop&&Mt.y<=Mt.scrollBottom&&(!((_t=Mt.lines.get(Mt.ybase+Mt.y))===null||_t===void 0)&&_t.isWrapped)){Mt.lines.get(Mt.ybase+Mt.y).isWrapped=!1,Mt.y--,Mt.x=this._bufferService.cols-1;var jt=Mt.lines.get(Mt.ybase+Mt.y);jt.hasWidth(Mt.x)&&!jt.hasContent(Mt.x)&&Mt.x--}this._restrictCursor()},At.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var _t=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-_t)}},At.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},At.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},At.prototype._restrictCursor=function(_t){_t===void 0&&(_t=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(_t,Math.max(0,this._bufferService.buffer.x)),this._bufferService.buffer.y=this._coreService.decPrivateModes.origin?Math.min(this._bufferService.buffer.scrollBottom,Math.max(this._bufferService.buffer.scrollTop,this._bufferService.buffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._bufferService.buffer.y)),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},At.prototype._setCursor=function(_t,Mt){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=_t,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+Mt):(this._bufferService.buffer.x=_t,this._bufferService.buffer.y=Mt),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},At.prototype._moveCursor=function(_t,Mt){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+_t,this._bufferService.buffer.y+Mt)},At.prototype.cursorUp=function(_t){var Mt=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;Mt>=0?this._moveCursor(0,-Math.min(Mt,_t.params[0]||1)):this._moveCursor(0,-(_t.params[0]||1))},At.prototype.cursorDown=function(_t){var Mt=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;Mt>=0?this._moveCursor(0,Math.min(Mt,_t.params[0]||1)):this._moveCursor(0,_t.params[0]||1)},At.prototype.cursorForward=function(_t){this._moveCursor(_t.params[0]||1,0)},At.prototype.cursorBackward=function(_t){this._moveCursor(-(_t.params[0]||1),0)},At.prototype.cursorNextLine=function(_t){this.cursorDown(_t),this._bufferService.buffer.x=0},At.prototype.cursorPrecedingLine=function(_t){this.cursorUp(_t),this._bufferService.buffer.x=0},At.prototype.cursorCharAbsolute=function(_t){this._setCursor((_t.params[0]||1)-1,this._bufferService.buffer.y)},At.prototype.cursorPosition=function(_t){this._setCursor(_t.length>=2?(_t.params[1]||1)-1:0,(_t.params[0]||1)-1)},At.prototype.charPosAbsolute=function(_t){this._setCursor((_t.params[0]||1)-1,this._bufferService.buffer.y)},At.prototype.hPositionRelative=function(_t){this._moveCursor(_t.params[0]||1,0)},At.prototype.linePosAbsolute=function(_t){this._setCursor(this._bufferService.buffer.x,(_t.params[0]||1)-1)},At.prototype.vPositionRelative=function(_t){this._moveCursor(0,_t.params[0]||1)},At.prototype.hVPosition=function(_t){this.cursorPosition(_t)},At.prototype.tabClear=function(_t){var Mt=_t.params[0];Mt===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:Mt===3&&(this._bufferService.buffer.tabs={})},At.prototype.cursorForwardTab=function(_t){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var Mt=_t.params[0]||1;Mt--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},At.prototype.cursorBackwardTab=function(_t){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var Mt=_t.params[0]||1,jt=this._bufferService.buffer;Mt--;)jt.x=jt.prevStop()},At.prototype._eraseInBufferLine=function(_t,Mt,jt,Lt){Lt===void 0&&(Lt=!1);var It=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+_t);It.replaceCells(Mt,jt,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Lt&&(It.isWrapped=!1)},At.prototype._resetBufferLine=function(_t){var Mt=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+_t);Mt.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),Mt.isWrapped=!1},At.prototype.eraseInDisplay=function(_t){var Mt;switch(this._restrictCursor(),_t.params[0]){case 0:for(Mt=this._bufferService.buffer.y,this._dirtyRowService.markDirty(Mt),this._eraseInBufferLine(Mt++,this._bufferService.buffer.x,this._bufferService.cols,this._bufferService.buffer.x===0);Mt=this._bufferService.cols&&(this._bufferService.buffer.lines.get(Mt+1).isWrapped=!1);Mt--;)this._resetBufferLine(Mt);this._dirtyRowService.markDirty(0);break;case 2:for(Mt=this._bufferService.rows,this._dirtyRowService.markDirty(Mt-1);Mt--;)this._resetBufferLine(Mt);this._dirtyRowService.markDirty(0);break;case 3:var jt=this._bufferService.buffer.lines.length-this._bufferService.rows;jt>0&&(this._bufferService.buffer.lines.trimStart(jt),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-jt,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-jt,0),this._onScroll.fire(0))}},At.prototype.eraseInLine=function(_t){switch(this._restrictCursor(),_t.params[0]){case 0:this._eraseInBufferLine(this._bufferService.buffer.y,this._bufferService.buffer.x,this._bufferService.cols);break;case 1:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.buffer.x+1);break;case 2:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.cols)}this._dirtyRowService.markDirty(this._bufferService.buffer.y)},At.prototype.insertLines=function(_t){this._restrictCursor();var Mt=_t.params[0]||1,jt=this._bufferService.buffer;if(!(jt.y>jt.scrollBottom||jt.yjt.scrollBottom||jt.yMt.scrollBottom||Mt.yMt.scrollBottom||Mt.yMt.scrollBottom||Mt.yMt.scrollBottom||Mt.y0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(Ct.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(Ct.C0.ESC+"[?6c"))},At.prototype.sendDeviceAttributesSecondary=function(_t){_t.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(Ct.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(Ct.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(_t.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(Ct.C0.ESC+"[>83;40003;0c"))},At.prototype._is=function(_t){return(this._optionsService.options.termName+"").indexOf(_t)===0},At.prototype.setMode=function(_t){for(var Mt=0;Mt<_t.length;Mt++)switch(_t.params[Mt]){case 4:this._coreService.modes.insertMode=!0}},At.prototype.setModePrivate=function(_t){for(var Mt=0;Mt<_t.length;Mt++)switch(_t.params[Mt]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,St.DEFAULT_CHARSET),this._charsetService.setgCharset(1,St.DEFAULT_CHARSET),this._charsetService.setgCharset(2,St.DEFAULT_CHARSET),this._charsetService.setgCharset(3,St.DEFAULT_CHARSET);break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0;break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}},At.prototype.resetMode=function(_t){for(var Mt=0;Mt<_t.length;Mt++)switch(_t.params[Mt]){case 4:this._coreService.modes.insertMode=!1}},At.prototype.resetModePrivate=function(_t){for(var Mt=0;Mt<_t.length;Mt++)switch(_t.params[Mt]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),_t.params[Mt]===1049&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}},At.prototype._updateAttrColor=function(_t,Mt,jt,Lt,It){return Mt===2?(_t|=50331648,_t&=-16777216,_t|=E.AttributeData.fromColorRGB([jt,Lt,It])):Mt===5&&(_t&=-50331904,_t|=33554432|255&jt),_t},At.prototype._extractColor=function(_t,Mt,jt){var Lt=[0,0,-1,0,0,0],It=0,Ut=0;do{if(Lt[Ut+It]=_t.params[Mt+Ut],_t.hasSubParams(Mt+Ut)){var Xt=_t.getSubParams(Mt+Ut),Gt=0;do Lt[1]===5&&(It=1),Lt[Ut+Gt+1+It]=Xt[Gt];while(++Gt=2||Lt[1]===2&&Ut+It>=5)break;Lt[1]&&(It=1)}while(++Ut+Mt<_t.length&&Ut+It5)&&(_t=1),Mt.extended.underlineStyle=_t,Mt.fg|=268435456,_t===0&&(Mt.fg&=-268435457),Mt.updateExtended()},At.prototype.charAttributes=function(_t){if(_t.length===1&&_t.params[0]===0)return this._curAttrData.fg=dt.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=dt.DEFAULT_ATTR_DATA.bg);for(var Mt,jt=_t.length,Lt=this._curAttrData,It=0;It=30&&Mt<=37?(Lt.fg&=-50331904,Lt.fg|=16777216|Mt-30):Mt>=40&&Mt<=47?(Lt.bg&=-50331904,Lt.bg|=16777216|Mt-40):Mt>=90&&Mt<=97?(Lt.fg&=-50331904,Lt.fg|=16777224|Mt-90):Mt>=100&&Mt<=107?(Lt.bg&=-50331904,Lt.bg|=16777224|Mt-100):Mt===0?(Lt.fg=dt.DEFAULT_ATTR_DATA.fg,Lt.bg=dt.DEFAULT_ATTR_DATA.bg):Mt===1?Lt.fg|=134217728:Mt===3?Lt.bg|=67108864:Mt===4?(Lt.fg|=268435456,this._processUnderline(_t.hasSubParams(It)?_t.getSubParams(It)[0]:1,Lt)):Mt===5?Lt.fg|=536870912:Mt===7?Lt.fg|=67108864:Mt===8?Lt.fg|=1073741824:Mt===2?Lt.bg|=134217728:Mt===21?this._processUnderline(2,Lt):Mt===22?(Lt.fg&=-134217729,Lt.bg&=-134217729):Mt===23?Lt.bg&=-67108865:Mt===24?Lt.fg&=-268435457:Mt===25?Lt.fg&=-536870913:Mt===27?Lt.fg&=-67108865:Mt===28?Lt.fg&=-1073741825:Mt===39?(Lt.fg&=-67108864,Lt.fg|=16777215&dt.DEFAULT_ATTR_DATA.fg):Mt===49?(Lt.bg&=-67108864,Lt.bg|=16777215&dt.DEFAULT_ATTR_DATA.bg):Mt===38||Mt===48||Mt===58?It+=this._extractColor(_t,It,Lt):Mt===59?(Lt.extended=Lt.extended.clone(),Lt.extended.underlineColor=-1,Lt.updateExtended()):Mt===100?(Lt.fg&=-67108864,Lt.fg|=16777215&dt.DEFAULT_ATTR_DATA.fg,Lt.bg&=-67108864,Lt.bg|=16777215&dt.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",Mt)},At.prototype.deviceStatus=function(_t){switch(_t.params[0]){case 5:this._coreService.triggerDataEvent(Ct.C0.ESC+"[0n");break;case 6:var Mt=this._bufferService.buffer.y+1,jt=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(Ct.C0.ESC+"["+Mt+";"+jt+"R")}},At.prototype.deviceStatusPrivate=function(_t){switch(_t.params[0]){case 6:var Mt=this._bufferService.buffer.y+1,jt=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(Ct.C0.ESC+"[?"+Mt+";"+jt+"R")}},At.prototype.softReset=function(_t){this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=dt.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._bufferService.buffer.savedX=0,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1},At.prototype.setCursorStyle=function(_t){var Mt=_t.params[0]||1;switch(Mt){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}var jt=Mt%2==1;this._optionsService.options.cursorBlink=jt},At.prototype.setScrollRegion=function(_t){var Mt,jt=_t.params[0]||1;(_t.length<2||(Mt=_t.params[1])>this._bufferService.rows||Mt===0)&&(Mt=this._bufferService.rows),Mt>jt&&(this._bufferService.buffer.scrollTop=jt-1,this._bufferService.buffer.scrollBottom=Mt-1,this._setCursor(0,0))},At.prototype.windowOptions=function(_t){if(at(_t.params[0],this._optionsService.options.windowOptions)){var Mt=_t.length>1?_t.params[1]:0;switch(_t.params[0]){case 14:Mt!==2&&this._onRequestWindowsOptionsReport.fire(kt.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(kt.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(Ct.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:Mt!==0&&Mt!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),Mt!==0&&Mt!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:Mt!==0&&Mt!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),Mt!==0&&Mt!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},At.prototype.saveCursor=function(_t){this._bufferService.buffer.savedX=this._bufferService.buffer.x,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase+this._bufferService.buffer.y,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset},At.prototype.restoreCursor=function(_t){this._bufferService.buffer.x=this._bufferService.buffer.savedX||0,this._bufferService.buffer.y=Math.max(this._bufferService.buffer.savedY-this._bufferService.buffer.ybase,0),this._curAttrData.fg=this._bufferService.buffer.savedCurAttrData.fg,this._curAttrData.bg=this._bufferService.buffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._bufferService.buffer.savedCharset&&(this._charsetService.charset=this._bufferService.buffer.savedCharset),this._restrictCursor()},At.prototype.setTitle=function(_t){this._windowTitle=_t,this._onTitleChange.fire(_t)},At.prototype.setIconName=function(_t){this._iconName=_t},At.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},At.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},At.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},At.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,St.DEFAULT_CHARSET)},At.prototype.selectCharset=function(_t){_t.length===2?_t[0]!=="/"&&this._charsetService.setgCharset(it[_t[0]],St.CHARSETS[_t[1]]||St.DEFAULT_CHARSET):this.selectDefaultCharset()},At.prototype.index=function(){this._restrictCursor();var _t=this._bufferService.buffer;this._bufferService.buffer.y++,_t.y===_t.scrollBottom+1?(_t.y--,this._onRequestScroll.fire(this._eraseAttrData())):_t.y>=this._bufferService.rows&&(_t.y=this._bufferService.rows-1),this._restrictCursor()},At.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},At.prototype.reverseIndex=function(){this._restrictCursor();var _t=this._bufferService.buffer;if(_t.y===_t.scrollTop){var Mt=_t.scrollBottom-_t.scrollTop;_t.lines.shiftElements(_t.ybase+_t.y,Mt,1),_t.lines.set(_t.ybase+_t.y,_t.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(_t.scrollTop,_t.scrollBottom)}else _t.y--,this._restrictCursor()},At.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},At.prototype.reset=function(){this._curAttrData=dt.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=dt.DEFAULT_ATTR_DATA.clone()},At.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},At.prototype.setgLevel=function(_t){this._charsetService.setgLevel(_t)},At.prototype.screenAlignmentPattern=function(){var _t=new lt.CellData;_t.content=1<<22|69,_t.fg=this._curAttrData.fg,_t.bg=this._curAttrData.bg;var Mt=this._bufferService.buffer;this._setCursor(0,0);for(var jt=0;jt256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(kt),this.length=0,this._subParams=new Int32Array(Ct),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(kt),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return rt.fromArray=function(kt){var Ct=new rt;if(!kt.length)return Ct;for(var St=kt[0]instanceof Array?1:0;St>8,pt=255&this._subParamsIdx[Ct];pt-St>0&&kt.push(Array.prototype.slice.call(this._subParams,St,pt))}return kt},rt.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},rt.prototype.addParam=function(kt){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(kt<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=kt>2147483647?2147483647:kt}},rt.prototype.addSubParam=function(kt){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(kt<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=kt>2147483647?2147483647:kt,this._subParamsIdx[this.length-1]++}},rt.prototype.hasSubParams=function(kt){return(255&this._subParamsIdx[kt])-(this._subParamsIdx[kt]>>8)>0},rt.prototype.getSubParams=function(kt){var Ct=this._subParamsIdx[kt]>>8,St=255&this._subParamsIdx[kt];return St-Ct>0?this._subParams.subarray(Ct,St):null},rt.prototype.getSubParamsAll=function(){for(var kt={},Ct=0;Ct>8,pt=255&this._subParamsIdx[Ct];pt-St>0&&(kt[Ct]=this._subParams.slice(St,pt))}return kt},rt.prototype.addDigit=function(kt){var Ct;if(!(this._rejectDigits||!(Ct=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var St=this._digitIsSub?this._subParams:this.params,pt=St[Ct-1];St[Ct-1]=~pt?Math.min(10*pt+kt,2147483647):kt}},rt}();Rt.Params=ie},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.OscHandler=Rt.OscParser=void 0;var ie=Ft(23),rt=Ft(8),kt=function(){function St(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return St.prototype.addHandler=function(pt,vt){this._handlers[pt]===void 0&&(this._handlers[pt]=[]);var yt=this._handlers[pt];return yt.push(vt),{dispose:function(){var xt=yt.indexOf(vt);xt!==-1&&yt.splice(xt,1)}}},St.prototype.setHandler=function(pt,vt){this._handlers[pt]=[vt]},St.prototype.clearHandler=function(pt){this._handlers[pt]&&delete this._handlers[pt]},St.prototype.setHandlerFallback=function(pt){this._handlerFb=pt},St.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},St.prototype.reset=function(){this._state===2&&this.end(!1),this._id=-1,this._state=0},St.prototype._start=function(){var pt=this._handlers[this._id];if(pt)for(var vt=pt.length-1;vt>=0;vt--)pt[vt].start();else this._handlerFb(this._id,"START")},St.prototype._put=function(pt,vt,yt){var xt=this._handlers[this._id];if(xt)for(var dt=xt.length-1;dt>=0;dt--)xt[dt].put(pt,vt,yt);else this._handlerFb(this._id,"PUT",rt.utf32ToString(pt,vt,yt))},St.prototype._end=function(pt){var vt=this._handlers[this._id];if(vt){for(var yt=vt.length-1;yt>=0&&vt[yt].end(pt)===!1;yt--);for(yt--;yt>=0;yt--)vt[yt].end(!1)}else this._handlerFb(this._id,"END",pt)},St.prototype.start=function(){this.reset(),this._id=-1,this._state=1},St.prototype.put=function(pt,vt,yt){if(this._state!==3){if(this._state===1)for(;vt0&&this._put(pt,vt,yt)}},St.prototype.end=function(pt){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(pt)),this._id=-1,this._state=0)},St}();Rt.OscParser=kt;var Ct=function(){function St(pt){this._handler=pt,this._data="",this._hitLimit=!1}return St.prototype.start=function(){this._data="",this._hitLimit=!1},St.prototype.put=function(pt,vt,yt){this._hitLimit||(this._data+=rt.utf32ToString(pt,vt,yt),this._data.length>ie.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},St.prototype.end=function(pt){var vt;return this._hitLimit?vt=!1:pt&&(vt=this._handler(this._data)),this._data="",this._hitLimit=!1,vt},St}();Rt.OscHandler=Ct},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.PAYLOAD_LIMIT=void 0,Rt.PAYLOAD_LIMIT=1e7},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.DcsHandler=Rt.DcsParser=void 0;var ie=Ft(8),rt=Ft(21),kt=Ft(23),Ct=[],St=function(){function vt(){this._handlers=Object.create(null),this._active=Ct,this._ident=0,this._handlerFb=function(){}}return vt.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},vt.prototype.addHandler=function(yt,xt){this._handlers[yt]===void 0&&(this._handlers[yt]=[]);var dt=this._handlers[yt];return dt.push(xt),{dispose:function(){var ft=dt.indexOf(xt);ft!==-1&&dt.splice(ft,1)}}},vt.prototype.setHandler=function(yt,xt){this._handlers[yt]=[xt]},vt.prototype.clearHandler=function(yt){this._handlers[yt]&&delete this._handlers[yt]},vt.prototype.setHandlerFallback=function(yt){this._handlerFb=yt},vt.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=Ct,this._ident=0},vt.prototype.hook=function(yt,xt){if(this.reset(),this._ident=yt,this._active=this._handlers[yt]||Ct,this._active.length)for(var dt=this._active.length-1;dt>=0;dt--)this._active[dt].hook(xt);else this._handlerFb(this._ident,"HOOK",xt)},vt.prototype.put=function(yt,xt,dt){if(this._active.length)for(var ft=this._active.length-1;ft>=0;ft--)this._active[ft].put(yt,xt,dt);else this._handlerFb(this._ident,"PUT",ie.utf32ToString(yt,xt,dt))},vt.prototype.unhook=function(yt){if(this._active.length){for(var xt=this._active.length-1;xt>=0&&this._active[xt].unhook(yt)===!1;xt--);for(xt--;xt>=0;xt--)this._active[xt].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",yt);this._active=Ct,this._ident=0},vt}();Rt.DcsParser=St;var pt=function(){function vt(yt){this._handler=yt,this._data="",this._hitLimit=!1}return vt.prototype.hook=function(yt){this._params=yt.clone(),this._data="",this._hitLimit=!1},vt.prototype.put=function(yt,xt,dt){this._hitLimit||(this._data+=ie.utf32ToString(yt,xt,dt),this._data.length>kt.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},vt.prototype.unhook=function(yt){var xt;return this._hitLimit?xt=!1:yt&&(xt=this._handler(this._data,this._params||new rt.Params)),this._params=void 0,this._data="",this._hitLimit=!1,xt},vt}();Rt.DcsHandler=pt},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.removeTerminalFromCache=Rt.acquireCharAtlas=void 0;var ie=Ft(26),rt=Ft(43),kt=[];Rt.acquireCharAtlas=function(Ct,St,pt,vt,yt){for(var xt=ie.generateConfig(vt,yt,Ct,pt),dt=0;dt=0){if(ie.configEquals(ct.config,xt))return ct.atlas;ct.ownedBy.length===1?(ct.atlas.dispose(),kt.splice(dt,1)):ct.ownedBy.splice(ft,1);break}}for(dt=0;dt1)for(var ut=this._getJoinedRanges(ct,z,E,dt,lt),wt=0;wt1)for(ut=this._getJoinedRanges(ct,z,E,dt,lt),wt=0;wt=this._line.length))return E?(this._line.loadCell(lt,E),E):this._line.loadCell(lt,new ie.CellData)},ct.prototype.translateToString=function(lt,E,z){return this._line.translateToString(lt,E,z)},ct}(),dt=function(){function ct(lt){this._core=lt}return ct.prototype.registerCsiHandler=function(lt,E){return this._core.addCsiHandler(lt,function(z){return E(z.toArray())})},ct.prototype.addCsiHandler=function(lt,E){return this.registerCsiHandler(lt,E)},ct.prototype.registerDcsHandler=function(lt,E){return this._core.addDcsHandler(lt,function(z,ot){return E(z,ot.toArray())})},ct.prototype.addDcsHandler=function(lt,E){return this.registerDcsHandler(lt,E)},ct.prototype.registerEscHandler=function(lt,E){return this._core.addEscHandler(lt,E)},ct.prototype.addEscHandler=function(lt,E){return this.registerEscHandler(lt,E)},ct.prototype.registerOscHandler=function(lt,E){return this._core.addOscHandler(lt,E)},ct.prototype.addOscHandler=function(lt,E){return this.registerOscHandler(lt,E)},ct}(),ft=function(){function ct(lt){this._core=lt}return ct.prototype.register=function(lt){this._core.unicodeService.register(lt)},Object.defineProperty(ct.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(lt){this._core.unicodeService.activeVersion=lt},enumerable:!1,configurable:!0}),ct}()},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(Yt,Ht){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ne,ae){ne.__proto__=ae}||function(ne,ae){for(var ve in ae)ae.hasOwnProperty(ve)&&(ne[ve]=ae[ve])})(Yt,Ht)},function(Yt,Ht){function ne(){this.constructor=Yt}ie(Yt,Ht),Yt.prototype=Ht===null?Object.create(Ht):(ne.prototype=Ht.prototype,new ne)});Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.Terminal=void 0;var kt=Ft(36),Ct=Ft(37),St=Ft(38),pt=Ft(12),vt=Ft(19),yt=Ft(40),xt=Ft(50),dt=Ft(51),ft=Ft(11),ct=Ft(7),lt=Ft(18),E=Ft(54),z=Ft(55),ot=Ft(56),it=Ft(57),at=Ft(59),ut=Ft(0),wt=Ft(16),Et=Ft(27),At=Ft(60),_t=Ft(5),Mt=Ft(61),jt=Ft(62),Lt=Ft(63),It=Ft(64),Ut=Ft(65),Xt=typeof window!="undefined"?window.document:null,Gt=function(Yt){function Ht(ne){ne===void 0&&(ne={});var ae=Yt.call(this,ne)||this;return ae.browser=ft,ae._keyDownHandled=!1,ae._onCursorMove=new ut.EventEmitter,ae._onKey=new ut.EventEmitter,ae._onRender=new ut.EventEmitter,ae._onSelectionChange=new ut.EventEmitter,ae._onTitleChange=new ut.EventEmitter,ae._onFocus=new ut.EventEmitter,ae._onBlur=new ut.EventEmitter,ae._onA11yCharEmitter=new ut.EventEmitter,ae._onA11yTabEmitter=new ut.EventEmitter,ae._setup(),ae.linkifier=ae._instantiationService.createInstance(xt.Linkifier),ae.linkifier2=ae.register(ae._instantiationService.createInstance(Lt.Linkifier2)),ae.register(ae._inputHandler.onRequestBell(function(){return ae.bell()})),ae.register(ae._inputHandler.onRequestRefreshRows(function(ve,Kt){return ae.refresh(ve,Kt)})),ae.register(ae._inputHandler.onRequestReset(function(){return ae.reset()})),ae.register(ae._inputHandler.onRequestScroll(function(ve,Kt){return ae.scroll(ve,Kt||void 0)})),ae.register(ae._inputHandler.onRequestWindowsOptionsReport(function(ve){return ae._reportWindowsOptions(ve)})),ae.register(ut.forwardEvent(ae._inputHandler.onCursorMove,ae._onCursorMove)),ae.register(ut.forwardEvent(ae._inputHandler.onTitleChange,ae._onTitleChange)),ae.register(ut.forwardEvent(ae._inputHandler.onA11yChar,ae._onA11yCharEmitter)),ae.register(ut.forwardEvent(ae._inputHandler.onA11yTab,ae._onA11yTabEmitter)),ae.register(ae._bufferService.onResize(function(ve){return ae._afterResize(ve.cols,ve.rows)})),ae}return rt(Ht,Yt),Object.defineProperty(Ht.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),Ht.prototype.dispose=function(){var ne,ae,ve;this._isDisposed||(Yt.prototype.dispose.call(this),(ne=this._renderService)===null||ne===void 0||ne.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(ve=(ae=this.element)===null||ae===void 0?void 0:ae.parentNode)===null||ve===void 0||ve.removeChild(this.element))},Ht.prototype._setup=function(){Yt.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(Ht.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),Ht.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},Ht.prototype._updateOptions=function(ne){var ae,ve,Kt,re;switch(Yt.prototype._updateOptions.call(this,ne),ne){case"fontFamily":case"fontSize":(ae=this._renderService)===null||ae===void 0||ae.clear(),(ve=this._charSizeService)===null||ve===void 0||ve.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":this._renderService&&(this._renderService.clear(),this._renderService.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));break;case"rendererType":this._renderService&&(this._renderService.setRenderer(this._createRenderer()),this._renderService.onResize(this.cols,this.rows));break;case"scrollback":(Kt=this.viewport)===null||Kt===void 0||Kt.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new ot.AccessibilityManager(this,this._renderService)):((re=this._accessibilityManager)===null||re===void 0||re.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},Ht.prototype._onTextAreaFocus=function(ne){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(pt.C0.ESC+"[I"),this.updateCursorStyle(ne),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},Ht.prototype.blur=function(){var ne;return(ne=this.textarea)===null||ne===void 0?void 0:ne.blur()},Ht.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(pt.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},Ht.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var ne=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),ae=this._bufferService.buffer.y*ne,ve=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=ve+"px",this.textarea.style.top=ae+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=ne+"px",this.textarea.style.lineHeight=ne+"px",this.textarea.style.zIndex="-5"}},Ht.prototype._initGlobal=function(){var ne=this;this._bindKeys(),this.register(ct.addDisposableDomListener(this.element,"copy",function(ve){ne.hasSelection()&&St.copyHandler(ve,ne._selectionService)}));var ae=function(ve){return St.handlePasteEvent(ve,ne.textarea,ne._coreService)};this.register(ct.addDisposableDomListener(this.textarea,"paste",ae)),this.register(ct.addDisposableDomListener(this.element,"paste",ae)),ft.isFirefox?this.register(ct.addDisposableDomListener(this.element,"mousedown",function(ve){ve.button===2&&St.rightClickHandler(ve,ne.textarea,ne.screenElement,ne._selectionService,ne.options.rightClickSelectsWord)})):this.register(ct.addDisposableDomListener(this.element,"contextmenu",function(ve){St.rightClickHandler(ve,ne.textarea,ne.screenElement,ne._selectionService,ne.options.rightClickSelectsWord)})),ft.isLinux&&this.register(ct.addDisposableDomListener(this.element,"auxclick",function(ve){ve.button===1&&St.moveTextAreaUnderMouseCursor(ve,ne.textarea,ne.screenElement)}))},Ht.prototype._bindKeys=function(){var ne=this;this.register(ct.addDisposableDomListener(this.textarea,"keyup",function(ae){return ne._keyUp(ae)},!0)),this.register(ct.addDisposableDomListener(this.textarea,"keydown",function(ae){return ne._keyDown(ae)},!0)),this.register(ct.addDisposableDomListener(this.textarea,"keypress",function(ae){return ne._keyPress(ae)},!0)),this.register(ct.addDisposableDomListener(this.textarea,"compositionstart",function(){return ne._compositionHelper.compositionstart()})),this.register(ct.addDisposableDomListener(this.textarea,"compositionupdate",function(ae){return ne._compositionHelper.compositionupdate(ae)})),this.register(ct.addDisposableDomListener(this.textarea,"compositionend",function(){return ne._compositionHelper.compositionend()})),this.register(this.onRender(function(){return ne._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(ae){return ne._queueLinkification(ae.start,ae.end)}))},Ht.prototype.open=function(ne){var ae=this;if(!ne)throw new Error("Terminal requires a parent element.");Xt.body.contains(ne)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=ne.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),ne.appendChild(this.element);var ve=Xt.createDocumentFragment();this._viewportElement=Xt.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),ve.appendChild(this._viewportElement),this._viewportScrollArea=Xt.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=Xt.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=Xt.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),ve.appendChild(this.screenElement),this.textarea=Xt.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",lt.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register(ct.addDisposableDomListener(this.textarea,"focus",function(we){return ae._onTextAreaFocus(we)})),this.register(ct.addDisposableDomListener(this.textarea,"blur",function(){return ae._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var Kt=this._instantiationService.createInstance(It.CoreBrowserService,this.textarea);this._instantiationService.setService(_t.ICoreBrowserService,Kt),this._charSizeService=this._instantiationService.createInstance(Mt.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(_t.ICharSizeService,this._charSizeService),this._compositionView=Xt.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(kt.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(ve),this._theme=this.options.theme||this._theme,this._colorManager=new Et.ColorManager(Xt,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(we){return ae._colorManager.onOptionsChange(we)})),this._colorManager.setTheme(this._theme);var re=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(At.RenderService,re,this.rows,this.screenElement)),this._instantiationService.setService(_t.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(we){return ae._onRender.fire(we)})),this.onResize(function(we){return ae._renderService.resize(we.cols,we.rows)}),this._soundService=this._instantiationService.createInstance(E.SoundService),this._instantiationService.setService(_t.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(jt.MouseService),this._instantiationService.setService(_t.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(Ct.Viewport,function(we,Me){return ae.scrollLines(we,Me)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return ae.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){ae._renderService.onCursorMove(),ae._syncTextArea()})),this.register(this.onResize(function(){return ae._renderService.onResize(ae.cols,ae.rows)})),this.register(this.onBlur(function(){return ae._renderService.onBlur()})),this.register(this.onFocus(function(){return ae._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return ae.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(dt.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(_t.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(we){return ae.scrollLines(we.amount,we.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return ae._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(we){return ae._renderService.onSelectionChanged(we.start,we.end,we.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(we){ae.textarea.value=we,ae.textarea.focus(),ae.textarea.select()})),this.register(this.onScroll(function(){ae.viewport.syncScrollArea(),ae._selectionService.refresh()})),this.register(ct.addDisposableDomListener(this._viewportElement,"scroll",function(){return ae._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(z.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return ae._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(ct.addDisposableDomListener(this.element,"mousedown",function(we){return ae._selectionService.onMouseDown(we)})),this._coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new ot.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},Ht.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(yt.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(it.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},Ht.prototype._setTheme=function(ne){var ae,ve,Kt;this._theme=ne,(ae=this._colorManager)===null||ae===void 0||ae.setTheme(ne),(ve=this._renderService)===null||ve===void 0||ve.setColors(this._colorManager.colors),(Kt=this.viewport)===null||Kt===void 0||Kt.onThemeChange(this._colorManager.colors)},Ht.prototype.bindMouse=function(){var ne=this,ae=this,ve=this.element;function Kt(fe){var pe,_e,je=ae._mouseService.getRawByteCoords(fe,ae.screenElement,ae.cols,ae.rows);if(!je)return!1;switch(fe.overrideType||fe.type){case"mousemove":_e=32,fe.buttons===void 0?(pe=3,fe.button!==void 0&&(pe=fe.button<3?fe.button:3)):pe=1&fe.buttons?0:4&fe.buttons?1:2&fe.buttons?2:3;break;case"mouseup":_e=0,pe=fe.button<3?fe.button:3;break;case"mousedown":_e=1,pe=fe.button<3?fe.button:3;break;case"wheel":fe.deltaY!==0&&(_e=fe.deltaY<0?0:1),pe=4;break;default:return!1}return!(_e===void 0||pe===void 0||pe>4)&&ae._coreMouseService.triggerMouseEvent({col:je.x-33,row:je.y-33,button:pe,action:_e,ctrl:fe.ctrlKey,alt:fe.altKey,shift:fe.shiftKey})}var re={mouseup:null,wheel:null,mousedrag:null,mousemove:null},we=function(fe){return Kt(fe),fe.buttons||(ne._document.removeEventListener("mouseup",re.mouseup),re.mousedrag&&ne._document.removeEventListener("mousemove",re.mousedrag)),ne.cancel(fe)},Me=function(fe){return Kt(fe),fe.preventDefault(),ne.cancel(fe)},ke=function(fe){fe.buttons&&Kt(fe)},me=function(fe){fe.buttons||Kt(fe)};this.register(this._coreMouseService.onProtocolChange(function(fe){fe?(ne.optionsService.options.logLevel==="debug"&&ne._logService.debug("Binding to mouse events:",ne._coreMouseService.explainEvents(fe)),ne.element.classList.add("enable-mouse-events"),ne._selectionService.disable()):(ne._logService.debug("Unbinding from mouse events."),ne.element.classList.remove("enable-mouse-events"),ne._selectionService.enable()),8&fe?re.mousemove||(ve.addEventListener("mousemove",me),re.mousemove=me):(ve.removeEventListener("mousemove",re.mousemove),re.mousemove=null),16&fe?re.wheel||(ve.addEventListener("wheel",Me,{passive:!1}),re.wheel=Me):(ve.removeEventListener("wheel",re.wheel),re.wheel=null),2&fe?re.mouseup||(re.mouseup=we):(ne._document.removeEventListener("mouseup",re.mouseup),re.mouseup=null),4&fe?re.mousedrag||(re.mousedrag=ke):(ne._document.removeEventListener("mousemove",re.mousedrag),re.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(ct.addDisposableDomListener(ve,"mousedown",function(fe){if(fe.preventDefault(),ne.focus(),ne._coreMouseService.areMouseEventsActive&&!ne._selectionService.shouldForceSelection(fe))return Kt(fe),re.mouseup&&ne._document.addEventListener("mouseup",re.mouseup),re.mousedrag&&ne._document.addEventListener("mousemove",re.mousedrag),ne.cancel(fe)})),this.register(ct.addDisposableDomListener(ve,"wheel",function(fe){if(!re.wheel){if(!ne.buffer.hasScrollback){var pe=ne.viewport.getLinesScrolled(fe);if(pe===0)return;for(var _e=pt.C0.ESC+(ne._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(fe.deltaY<0?"A":"B"),je="",He=0;He47)},Ht.prototype._keyUp=function(ne){this._customKeyEventHandler&&this._customKeyEventHandler(ne)===!1||(function(ae){return ae.keyCode===16||ae.keyCode===17||ae.keyCode===18}(ne)||this.focus(),this.updateCursorStyle(ne))},Ht.prototype._keyPress=function(ne){var ae;if(this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(ne)===!1)return!1;if(this.cancel(ne),ne.charCode)ae=ne.charCode;else if(ne.which===null||ne.which===void 0)ae=ne.keyCode;else{if(ne.which===0||ne.charCode===0)return!1;ae=ne.which}return!(!ae||(ne.altKey||ne.ctrlKey||ne.metaKey)&&!this._isThirdLevelShift(this.browser,ne))&&(ae=String.fromCharCode(ae),this._onKey.fire({key:ae,domEvent:ne}),this._showCursor(),this._coreService.triggerDataEvent(ae,!0),!0)},Ht.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},Ht.prototype.resize=function(ne,ae){ne!==this.cols||ae!==this.rows?Yt.prototype.resize.call(this,ne,ae):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},Ht.prototype._afterResize=function(ne,ae){var ve,Kt;(ve=this._charSizeService)===null||ve===void 0||ve.measure(),(Kt=this.viewport)===null||Kt===void 0||Kt.syncScrollArea(!0)},Ht.prototype.clear=function(){if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var ne=1;ne=0;lt--)(dt=pt[lt])&&(ct=(ft<3?dt(ct):ft>3?dt(vt,yt,ct):dt(vt,yt))||ct);return ft>3&&ct&&Object.defineProperty(vt,yt,ct),ct},rt=this&&this.__param||function(pt,vt){return function(yt,xt){vt(yt,xt,pt)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.CompositionHelper=void 0;var kt=Ft(5),Ct=Ft(1),St=function(){function pt(vt,yt,xt,dt,ft,ct){this._textarea=vt,this._compositionView=yt,this._bufferService=xt,this._optionsService=dt,this._charSizeService=ft,this._coreService=ct,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(pt.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),pt.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},pt.prototype.compositionupdate=function(vt){var yt=this;this._compositionView.textContent=vt.data,this.updateCompositionElements(),setTimeout(function(){yt._compositionPosition.end=yt._textarea.value.length},0)},pt.prototype.compositionend=function(){this._finalizeComposition(!0)},pt.prototype.keydown=function(vt){if(this._isComposing||this._isSendingComposition){if(vt.keyCode===229||vt.keyCode===16||vt.keyCode===17||vt.keyCode===18)return!1;this._finalizeComposition(!1)}return vt.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},pt.prototype._finalizeComposition=function(vt){var yt=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,vt){var xt={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(yt._isSendingComposition){yt._isSendingComposition=!1;var ft=void 0;ft=yt._isComposing?yt._textarea.value.substring(xt.start,xt.end):yt._textarea.value.substring(xt.start),yt._coreService.triggerDataEvent(ft,!0)}},0)}else{this._isSendingComposition=!1;var dt=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(dt,!0)}},pt.prototype._handleAnyTextareaChanges=function(){var vt=this,yt=this._textarea.value;setTimeout(function(){if(!vt._isComposing){var xt=vt._textarea.value.replace(yt,"");xt.length>0&&vt._coreService.triggerDataEvent(xt,!0)}},0)},pt.prototype.updateCompositionElements=function(vt){var yt=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var xt=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),dt=this._bufferService.buffer.y*xt,ft=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=ft+"px",this._compositionView.style.top=dt+"px",this._compositionView.style.height=xt+"px",this._compositionView.style.lineHeight=xt+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var ct=this._compositionView.getBoundingClientRect();this._textarea.style.left=ft+"px",this._textarea.style.top=dt+"px",this._textarea.style.width=ct.width+"px",this._textarea.style.height=ct.height+"px",this._textarea.style.lineHeight=ct.height+"px"}vt||setTimeout(function(){return yt.updateCompositionElements(!0)},0)}},pt=ie([rt(2,Ct.IBufferService),rt(3,Ct.IOptionsService),rt(4,kt.ICharSizeService),rt(5,Ct.ICoreService)],pt)}();Rt.CompositionHelper=St},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(dt,ft){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ct,lt){ct.__proto__=lt}||function(ct,lt){for(var E in lt)lt.hasOwnProperty(E)&&(ct[E]=lt[E])})(dt,ft)},function(dt,ft){function ct(){this.constructor=dt}ie(dt,ft),dt.prototype=ft===null?Object.create(ft):(ct.prototype=ft.prototype,new ct)}),kt=this&&this.__decorate||function(dt,ft,ct,lt){var E,z=arguments.length,ot=z<3?ft:lt===null?lt=Object.getOwnPropertyDescriptor(ft,ct):lt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ot=Reflect.decorate(dt,ft,ct,lt);else for(var it=dt.length-1;it>=0;it--)(E=dt[it])&&(ot=(z<3?E(ot):z>3?E(ft,ct,ot):E(ft,ct))||ot);return z>3&&ot&&Object.defineProperty(ft,ct,ot),ot},Ct=this&&this.__param||function(dt,ft){return function(ct,lt){ft(ct,lt,dt)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.Viewport=void 0;var St=Ft(2),pt=Ft(7),vt=Ft(5),yt=Ft(1),xt=function(dt){function ft(ct,lt,E,z,ot,it,at){var ut=dt.call(this)||this;return ut._scrollLines=ct,ut._viewportElement=lt,ut._scrollArea=E,ut._bufferService=z,ut._optionsService=ot,ut._charSizeService=it,ut._renderService=at,ut.scrollBarWidth=0,ut._currentRowHeight=0,ut._lastRecordedBufferLength=0,ut._lastRecordedViewportHeight=0,ut._lastRecordedBufferHeight=0,ut._lastTouchY=0,ut._lastScrollTop=0,ut._wheelPartialScroll=0,ut._refreshAnimationFrame=null,ut._ignoreNextScrollEvent=!1,ut.scrollBarWidth=ut._viewportElement.offsetWidth-ut._scrollArea.offsetWidth||15,ut.register(pt.addDisposableDomListener(ut._viewportElement,"scroll",ut._onScroll.bind(ut))),setTimeout(function(){return ut.syncScrollArea()},0),ut}return rt(ft,dt),ft.prototype.onThemeChange=function(ct){this._viewportElement.style.backgroundColor=ct.background.css},ft.prototype._refresh=function(ct){var lt=this;if(ct)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return lt._innerRefresh()}))},ft.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var ct=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==ct&&(this._lastRecordedBufferHeight=ct,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var lt=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==lt&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=lt),this._refreshAnimationFrame=null},ft.prototype.syncScrollArea=function(ct){if(ct===void 0&&(ct=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(ct);if(this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight){var lt=this._bufferService.buffer.ydisp*this._currentRowHeight;this._lastScrollTop===lt&&this._lastScrollTop===this._viewportElement.scrollTop&&this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh(ct)}else this._refresh(ct)},ft.prototype._onScroll=function(ct){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var lt=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(lt,!0)}},ft.prototype._bubbleScroll=function(ct,lt){var E=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(lt<0&&this._viewportElement.scrollTop!==0||lt>0&&E0?1:-1),this._wheelPartialScroll%=1):ct.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(lt*=this._bufferService.rows),lt},ft.prototype._applyScrollModifier=function(ct,lt){var E=this._optionsService.options.fastScrollModifier;return E==="alt"&<.altKey||E==="ctrl"&<.ctrlKey||E==="shift"&<.shiftKey?ct*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:ct*this._optionsService.options.scrollSensitivity},ft.prototype.onTouchStart=function(ct){this._lastTouchY=ct.touches[0].pageY},ft.prototype.onTouchMove=function(ct){var lt=this._lastTouchY-ct.touches[0].pageY;return this._lastTouchY=ct.touches[0].pageY,lt!==0&&(this._viewportElement.scrollTop+=lt,this._bubbleScroll(ct,lt))},ft=kt([Ct(3,yt.IBufferService),Ct(4,yt.IOptionsService),Ct(5,vt.ICharSizeService),Ct(6,vt.IRenderService)],ft)}(St.Disposable);Rt.Viewport=xt},function(Ke,Rt,Ft){"use strict";function ie(St){return St.replace(/\r?\n/g,"\r")}function rt(St,pt){return pt?"\x1B[200~"+St+"\x1B[201~":St}function kt(St,pt,vt){St=rt(St=ie(St),vt.decPrivateModes.bracketedPasteMode),vt.triggerDataEvent(St,!0),pt.value=""}function Ct(St,pt,vt){var yt=vt.getBoundingClientRect(),xt=St.clientX-yt.left-10,dt=St.clientY-yt.top-10;pt.style.width="20px",pt.style.height="20px",pt.style.left=xt+"px",pt.style.top=dt+"px",pt.style.zIndex="1000",pt.focus()}Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.rightClickHandler=Rt.moveTextAreaUnderMouseCursor=Rt.paste=Rt.handlePasteEvent=Rt.copyHandler=Rt.bracketTextForPaste=Rt.prepareTextForTerminal=void 0,Rt.prepareTextForTerminal=ie,Rt.bracketTextForPaste=rt,Rt.copyHandler=function(St,pt){St.clipboardData&&St.clipboardData.setData("text/plain",pt.selectionText),St.preventDefault()},Rt.handlePasteEvent=function(St,pt,vt){St.stopPropagation(),St.clipboardData&&kt(St.clipboardData.getData("text/plain"),pt,vt)},Rt.paste=kt,Rt.moveTextAreaUnderMouseCursor=Ct,Rt.rightClickHandler=function(St,pt,vt,yt,xt){Ct(St,pt,vt),xt&&!yt.isClickInSelection(St)&&yt.selectWordAtCursor(St),pt.value=yt.selectionText,pt.select()}},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(dt,ft){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ct,lt){ct.__proto__=lt}||function(ct,lt){for(var E in lt)lt.hasOwnProperty(E)&&(ct[E]=lt[E])})(dt,ft)},function(dt,ft){function ct(){this.constructor=dt}ie(dt,ft),dt.prototype=ft===null?Object.create(ft):(ct.prototype=ft.prototype,new ct)});Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.EscapeSequenceParser=Rt.VT500_TRANSITION_TABLE=Rt.TransitionTable=void 0;var kt=Ft(2),Ct=Ft(15),St=Ft(21),pt=Ft(22),vt=Ft(24),yt=function(){function dt(ft){this.table=new Uint8Array(ft)}return dt.prototype.setDefault=function(ft,ct){Ct.fill(this.table,ft<<4|ct)},dt.prototype.add=function(ft,ct,lt,E){this.table[ct<<8|ft]=lt<<4|E},dt.prototype.addMany=function(ft,ct,lt,E){for(var z=0;z1)throw new Error("only one byte as prefix supported");if((E=ct.prefix.charCodeAt(0))&&60>E||E>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(ct.intermediates){if(ct.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var z=0;zot||ot>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");E<<=8,E|=ot}}if(ct.final.length!==1)throw new Error("final must be a single byte");var it=ct.final.charCodeAt(0);if(lt[0]>it||it>lt[1])throw new Error("final must be in range "+lt[0]+" .. "+lt[1]);return E<<=8,E|=it},ft.prototype.identToString=function(ct){for(var lt=[];ct;)lt.push(String.fromCharCode(255&ct)),ct>>=8;return lt.reverse().join("")},ft.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},ft.prototype.setPrintHandler=function(ct){this._printHandler=ct},ft.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},ft.prototype.addEscHandler=function(ct,lt){var E=this._identifier(ct,[48,126]);this._escHandlers[E]===void 0&&(this._escHandlers[E]=[]);var z=this._escHandlers[E];return z.push(lt),{dispose:function(){var ot=z.indexOf(lt);ot!==-1&&z.splice(ot,1)}}},ft.prototype.setEscHandler=function(ct,lt){this._escHandlers[this._identifier(ct,[48,126])]=[lt]},ft.prototype.clearEscHandler=function(ct){this._escHandlers[this._identifier(ct,[48,126])]&&delete this._escHandlers[this._identifier(ct,[48,126])]},ft.prototype.setEscHandlerFallback=function(ct){this._escHandlerFb=ct},ft.prototype.setExecuteHandler=function(ct,lt){this._executeHandlers[ct.charCodeAt(0)]=lt},ft.prototype.clearExecuteHandler=function(ct){this._executeHandlers[ct.charCodeAt(0)]&&delete this._executeHandlers[ct.charCodeAt(0)]},ft.prototype.setExecuteHandlerFallback=function(ct){this._executeHandlerFb=ct},ft.prototype.addCsiHandler=function(ct,lt){var E=this._identifier(ct);this._csiHandlers[E]===void 0&&(this._csiHandlers[E]=[]);var z=this._csiHandlers[E];return z.push(lt),{dispose:function(){var ot=z.indexOf(lt);ot!==-1&&z.splice(ot,1)}}},ft.prototype.setCsiHandler=function(ct,lt){this._csiHandlers[this._identifier(ct)]=[lt]},ft.prototype.clearCsiHandler=function(ct){this._csiHandlers[this._identifier(ct)]&&delete this._csiHandlers[this._identifier(ct)]},ft.prototype.setCsiHandlerFallback=function(ct){this._csiHandlerFb=ct},ft.prototype.addDcsHandler=function(ct,lt){return this._dcsParser.addHandler(this._identifier(ct),lt)},ft.prototype.setDcsHandler=function(ct,lt){this._dcsParser.setHandler(this._identifier(ct),lt)},ft.prototype.clearDcsHandler=function(ct){this._dcsParser.clearHandler(this._identifier(ct))},ft.prototype.setDcsHandlerFallback=function(ct){this._dcsParser.setHandlerFallback(ct)},ft.prototype.addOscHandler=function(ct,lt){return this._oscParser.addHandler(ct,lt)},ft.prototype.setOscHandler=function(ct,lt){this._oscParser.setHandler(ct,lt)},ft.prototype.clearOscHandler=function(ct){this._oscParser.clearHandler(ct)},ft.prototype.setOscHandlerFallback=function(ct){this._oscParser.setHandlerFallback(ct)},ft.prototype.setErrorHandler=function(ct){this._errorHandler=ct},ft.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},ft.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0},ft.prototype.parse=function(ct,lt){for(var E=0,z=0,ot=this.currentState,it=this._oscParser,at=this._dcsParser,ut=this._collect,wt=this._params,Et=this._transitions.table,At=0;At>4){case 2:for(var _t=At+1;;++_t){if(_t>=lt||(E=ct[_t])<32||E>126&&E<160){this._printHandler(ct,At,_t),At=_t-1;break}if(++_t>=lt||(E=ct[_t])<32||E>126&&E<160){this._printHandler(ct,At,_t),At=_t-1;break}if(++_t>=lt||(E=ct[_t])<32||E>126&&E<160){this._printHandler(ct,At,_t),At=_t-1;break}if(++_t>=lt||(E=ct[_t])<32||E>126&&E<160){this._printHandler(ct,At,_t),At=_t-1;break}}break;case 3:this._executeHandlers[E]?this._executeHandlers[E]():this._executeHandlerFb(E),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:At,code:E,currentState:ot,collect:ut,params:wt,abort:!1}).abort)return;break;case 7:for(var Mt=this._csiHandlers[ut<<8|E],jt=Mt?Mt.length-1:-1;jt>=0&&Mt[jt](wt)===!1;jt--);jt<0&&this._csiHandlerFb(ut<<8|E,wt),this.precedingCodepoint=0;break;case 8:do switch(E){case 59:wt.addParam(0);break;case 58:wt.addSubParam(-1);break;default:wt.addDigit(E-48)}while(++At47&&E<60);At--;break;case 9:ut<<=8,ut|=E;break;case 10:for(var Lt=this._escHandlers[ut<<8|E],It=Lt?Lt.length-1:-1;It>=0&&Lt[It]()===!1;It--);It<0&&this._escHandlerFb(ut<<8|E),this.precedingCodepoint=0;break;case 11:wt.reset(),wt.addParam(0),ut=0;break;case 12:at.hook(ut<<8|E,wt);break;case 13:for(var Ut=At+1;;++Ut)if(Ut>=lt||(E=ct[Ut])===24||E===26||E===27||E>127&&E<160){at.put(ct,At,Ut),At=Ut-1;break}break;case 14:at.unhook(E!==24&&E!==26),E===27&&(z|=1),wt.reset(),wt.addParam(0),ut=0,this.precedingCodepoint=0;break;case 4:it.start();break;case 5:for(var Xt=At+1;;Xt++)if(Xt>=lt||(E=ct[Xt])<32||E>127&&E<=159){it.put(ct,At,Xt),At=Xt-1;break}break;case 6:it.end(E!==24&&E!==26),E===27&&(z|=1),wt.reset(),wt.addParam(0),ut=0,this.precedingCodepoint=0}ot=15&z}this._collect=ut,this.currentState=ot},ft}(kt.Disposable);Rt.EscapeSequenceParser=xt},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(it,at){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ut,wt){ut.__proto__=wt}||function(ut,wt){for(var Et in wt)wt.hasOwnProperty(Et)&&(ut[Et]=wt[Et])})(it,at)},function(it,at){function ut(){this.constructor=it}ie(it,at),it.prototype=at===null?Object.create(at):(ut.prototype=at.prototype,new ut)}),kt=this&&this.__decorate||function(it,at,ut,wt){var Et,At=arguments.length,_t=At<3?at:wt===null?wt=Object.getOwnPropertyDescriptor(at,ut):wt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_t=Reflect.decorate(it,at,ut,wt);else for(var Mt=it.length-1;Mt>=0;Mt--)(Et=it[Mt])&&(_t=(At<3?Et(_t):At>3?Et(at,ut,_t):Et(at,ut))||_t);return At>3&&_t&&Object.defineProperty(at,ut,_t),_t},Ct=this&&this.__param||function(it,at){return function(ut,wt){at(ut,wt,it)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.Renderer=void 0;var St=Ft(41),pt=Ft(47),vt=Ft(48),yt=Ft(49),xt=Ft(29),dt=Ft(2),ft=Ft(5),ct=Ft(1),lt=Ft(25),E=Ft(0),z=1,ot=function(it){function at(ut,wt,Et,At,_t,Mt,jt,Lt,It){var Ut=it.call(this)||this;Ut._colors=ut,Ut._screenElement=wt,Ut._bufferService=_t,Ut._charSizeService=Mt,Ut._optionsService=jt,Ut._id=z++,Ut._onRequestRedraw=new E.EventEmitter;var Xt=Ut._optionsService.options.allowTransparency;return Ut._characterJoinerRegistry=new xt.CharacterJoinerRegistry(Ut._bufferService),Ut._renderLayers=[new St.TextRenderLayer(Ut._screenElement,0,Ut._colors,Ut._characterJoinerRegistry,Xt,Ut._id,Ut._bufferService,jt),new pt.SelectionRenderLayer(Ut._screenElement,1,Ut._colors,Ut._id,Ut._bufferService,jt),new yt.LinkRenderLayer(Ut._screenElement,2,Ut._colors,Ut._id,Et,At,Ut._bufferService,jt),new vt.CursorRenderLayer(Ut._screenElement,3,Ut._colors,Ut._id,Ut._onRequestRedraw,Ut._bufferService,jt,Lt,It)],Ut.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},Ut._devicePixelRatio=window.devicePixelRatio,Ut._updateDimensions(),Ut.onOptionsChanged(),Ut}return rt(at,it),Object.defineProperty(at.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),at.prototype.dispose=function(){for(var ut=0,wt=this._renderLayers;ut0&&wt===ut[0][0]){At=!0;var Mt=ut.shift();Et=new vt.JoinedCellData(this._workCell,at.translateToString(!0,Mt[0],Mt[1]),Mt[1]-Mt[0]),_t=Mt[1]-1}!At&&this._isOverlapping(Et)&&_tthis._characterWidth;return this._ctx.restore(),this._characterOverlapCache[lt]=E,E},ft}(Ct.BaseRenderLayer);Rt.TextRenderLayer=xt},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.GridCache=void 0;var ie=function(){function rt(){this.cache=[]}return rt.prototype.resize=function(kt,Ct){for(var St=0;St>>24,Gt=It.rgba>>>16&255,Yt=It.rgba>>>8&255,Ht=0;Ht=this.capacity)St=this._head,this._unlinkNode(St),delete this._map[St.key],St.key=kt,St.value=Ct,this._map[kt]=St;else{var pt=this._nodePool;pt.length>0?((St=pt.pop()).key=kt,St.value=Ct):St={prev:null,next:null,key:kt,value:Ct},this._map[kt]=St,this.size++}this._appendNode(St)},rt}();Rt.LRUMap=ie},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(Ct,St){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(pt,vt){pt.__proto__=vt}||function(pt,vt){for(var yt in vt)vt.hasOwnProperty(yt)&&(pt[yt]=vt[yt])})(Ct,St)},function(Ct,St){function pt(){this.constructor=Ct}ie(Ct,St),Ct.prototype=St===null?Object.create(St):(pt.prototype=St.prototype,new pt)});Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.SelectionRenderLayer=void 0;var kt=function(Ct){function St(pt,vt,yt,xt,dt,ft){var ct=Ct.call(this,pt,"selection",vt,!0,yt,xt,dt,ft)||this;return ct._clearState(),ct}return rt(St,Ct),St.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},St.prototype.resize=function(pt){Ct.prototype.resize.call(this,pt),this._clearState()},St.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},St.prototype.onSelectionChanged=function(pt,vt,yt){if(this._didStateChange(pt,vt,yt,this._bufferService.buffer.ydisp))if(this._clearAll(),pt&&vt){var xt=pt[1]-this._bufferService.buffer.ydisp,dt=vt[1]-this._bufferService.buffer.ydisp,ft=Math.max(xt,0),ct=Math.min(dt,this._bufferService.rows-1);if(!(ft>=this._bufferService.rows||ct<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,yt){var lt=pt[0],E=vt[0]-lt,z=ct-ft+1;this._fillCells(lt,ft,E,z)}else{lt=xt===ft?pt[0]:0;var ot=ft===ct?vt[0]:this._bufferService.cols;this._fillCells(lt,ft,ot-lt,1);var it=Math.max(ct-ft-1,0);if(this._fillCells(0,ft+1,this._bufferService.cols,it),ft!==ct){var at=dt===ct?vt[0]:this._bufferService.cols;this._fillCells(0,ct,at,1)}}this._state.start=[pt[0],pt[1]],this._state.end=[vt[0],vt[1]],this._state.columnSelectMode=yt,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},St.prototype._didStateChange=function(pt,vt,yt,xt){return!this._areCoordinatesEqual(pt,this._state.start)||!this._areCoordinatesEqual(vt,this._state.end)||yt!==this._state.columnSelectMode||xt!==this._state.ydisp},St.prototype._areCoordinatesEqual=function(pt,vt){return!(!pt||!vt)&&pt[0]===vt[0]&&pt[1]===vt[1]},St}(Ft(13).BaseRenderLayer);Rt.SelectionRenderLayer=kt},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(vt,yt){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(xt,dt){xt.__proto__=dt}||function(xt,dt){for(var ft in dt)dt.hasOwnProperty(ft)&&(xt[ft]=dt[ft])})(vt,yt)},function(vt,yt){function xt(){this.constructor=vt}ie(vt,yt),vt.prototype=yt===null?Object.create(yt):(xt.prototype=yt.prototype,new xt)});Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.CursorRenderLayer=void 0;var kt=Ft(13),Ct=Ft(4),St=function(vt){function yt(xt,dt,ft,ct,lt,E,z,ot,it){var at=vt.call(this,xt,"cursor",dt,!0,ft,ct,E,z)||this;return at._onRequestRedraw=lt,at._coreService=ot,at._coreBrowserService=it,at._cell=new Ct.CellData,at._state={x:0,y:0,isFocused:!1,style:"",width:0},at._cursorRenderers={bar:at._renderBarCursor.bind(at),block:at._renderBlockCursor.bind(at),underline:at._renderUnderlineCursor.bind(at)},at}return rt(yt,vt),yt.prototype.resize=function(xt){vt.prototype.resize.call(this,xt),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},yt.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},yt.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},yt.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},yt.prototype.onOptionsChanged=function(){var xt,dt=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new pt(this._coreBrowserService.isFocused,function(){dt._render(!0)})):((xt=this._cursorBlinkStateManager)===null||xt===void 0||xt.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},yt.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},yt.prototype.onGridChanged=function(xt,dt){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},yt.prototype._render=function(xt){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var dt=this._bufferService.buffer.ybase+this._bufferService.buffer.y,ft=dt-this._bufferService.buffer.ydisp;if(ft<0||ft>=this._bufferService.rows)this._clearCursor();else{var ct=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(dt).loadCell(ct,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var lt=this._optionsService.options.cursorStyle;return lt&<!=="block"?this._cursorRenderers[lt](ct,ft,this._cell):this._renderBlurCursor(ct,ft,this._cell),this._ctx.restore(),this._state.x=ct,this._state.y=ft,this._state.isFocused=!1,this._state.style=lt,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===ct&&this._state.y===ft&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.options.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.options.cursorStyle||"block"](ct,ft,this._cell),this._ctx.restore(),this._state.x=ct,this._state.y=ft,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},yt.prototype._clearCursor=function(){this._state&&(this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},yt.prototype._renderBarCursor=function(xt,dt,ft){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(xt,dt,this._optionsService.options.cursorWidth),this._ctx.restore()},yt.prototype._renderBlockCursor=function(xt,dt,ft){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(xt,dt,ft.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(ft,xt,dt),this._ctx.restore()},yt.prototype._renderUnderlineCursor=function(xt,dt,ft){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(xt,dt),this._ctx.restore()},yt.prototype._renderBlurCursor=function(xt,dt,ft){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(xt,dt,ft.getWidth(),1),this._ctx.restore()},yt}(kt.BaseRenderLayer);Rt.CursorRenderLayer=St;var pt=function(){function vt(yt,xt){this._renderCallback=xt,this.isCursorVisible=!0,yt&&this._restartInterval()}return Object.defineProperty(vt.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),vt.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},vt.prototype.restartBlinkAnimation=function(){var yt=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){yt._renderCallback(),yt._animationFrame=void 0})))},vt.prototype._restartInterval=function(yt){var xt=this;yt===void 0&&(yt=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(xt._animationTimeRestarted){var dt=600-(Date.now()-xt._animationTimeRestarted);if(xt._animationTimeRestarted=void 0,dt>0)return void xt._restartInterval(dt)}xt.isCursorVisible=!1,xt._animationFrame=window.requestAnimationFrame(function(){xt._renderCallback(),xt._animationFrame=void 0}),xt._blinkInterval=window.setInterval(function(){if(xt._animationTimeRestarted){var ft=600-(Date.now()-xt._animationTimeRestarted);return xt._animationTimeRestarted=void 0,void xt._restartInterval(ft)}xt.isCursorVisible=!xt.isCursorVisible,xt._animationFrame=window.requestAnimationFrame(function(){xt._renderCallback(),xt._animationFrame=void 0})},600)},yt)},vt.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},vt.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},vt}()},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(vt,yt){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(xt,dt){xt.__proto__=dt}||function(xt,dt){for(var ft in dt)dt.hasOwnProperty(ft)&&(xt[ft]=dt[ft])})(vt,yt)},function(vt,yt){function xt(){this.constructor=vt}ie(vt,yt),vt.prototype=yt===null?Object.create(yt):(xt.prototype=yt.prototype,new xt)});Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.LinkRenderLayer=void 0;var kt=Ft(13),Ct=Ft(9),St=Ft(26),pt=function(vt){function yt(xt,dt,ft,ct,lt,E,z,ot){var it=vt.call(this,xt,"link",dt,!0,ft,ct,z,ot)||this;return lt.onShowLinkUnderline(function(at){return it._onShowLinkUnderline(at)}),lt.onHideLinkUnderline(function(at){return it._onHideLinkUnderline(at)}),E.onShowLinkUnderline(function(at){return it._onShowLinkUnderline(at)}),E.onHideLinkUnderline(function(at){return it._onHideLinkUnderline(at)}),it}return rt(yt,vt),yt.prototype.resize=function(xt){vt.prototype.resize.call(this,xt),this._state=void 0},yt.prototype.reset=function(){this._clearCurrentLink()},yt.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var xt=this._state.y2-this._state.y1-1;xt>0&&this._clearCells(0,this._state.y1+1,this._state.cols,xt),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},yt.prototype._onShowLinkUnderline=function(xt){if(xt.fg===Ct.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:xt.fg&&St.is256Color(xt.fg)?this._ctx.fillStyle=this._colors.ansi[xt.fg].css:this._ctx.fillStyle=this._colors.foreground.css,xt.y1===xt.y2)this._fillBottomLineAtCells(xt.x1,xt.y1,xt.x2-xt.x1);else{this._fillBottomLineAtCells(xt.x1,xt.y1,xt.cols-xt.x1);for(var dt=xt.y1+1;dt=0;E--)(ft=vt[E])&&(lt=(ct<3?ft(lt):ct>3?ft(yt,xt,lt):ft(yt,xt))||lt);return ct>3&<&&Object.defineProperty(yt,xt,lt),lt},rt=this&&this.__param||function(vt,yt){return function(xt,dt){yt(xt,dt,vt)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.MouseZone=Rt.Linkifier=void 0;var kt=Ft(0),Ct=Ft(1),St=function(){function vt(yt,xt,dt){this._bufferService=yt,this._logService=xt,this._unicodeService=dt,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new kt.EventEmitter,this._onHideLinkUnderline=new kt.EventEmitter,this._onLinkTooltip=new kt.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(vt.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(vt.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(vt.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),vt.prototype.attachToDom=function(yt,xt){this._element=yt,this._mouseZoneManager=xt},vt.prototype.linkifyRows=function(yt,xt){var dt=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=yt,this._rowsToLinkify.end=xt):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,yt),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,xt)),this._mouseZoneManager.clearAll(yt,xt),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return dt._linkifyRows()},vt._timeBeforeLatency))},vt.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var yt=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var xt=yt.ydisp+this._rowsToLinkify.start;if(!(xt>=yt.lines.length)){for(var dt=yt.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,ft=Math.ceil(2e3/this._bufferService.cols),ct=this._bufferService.buffer.iterator(!1,xt,dt,ft,ft);ct.hasNext();)for(var lt=ct.next(),E=0;E=0;xt--)if(yt.priority<=this._linkMatchers[xt].priority)return void this._linkMatchers.splice(xt+1,0,yt);this._linkMatchers.splice(0,0,yt)}else this._linkMatchers.push(yt)},vt.prototype.deregisterLinkMatcher=function(yt){for(var xt=0;xt>9&511:void 0;dt.validationCallback?dt.validationCallback(it,function(At){ct._rowsTimeoutId||At&&ct._addLink(at[1],at[0]-ct._bufferService.buffer.ydisp,it,dt,Et)}):ot._addLink(at[1],at[0]-ot._bufferService.buffer.ydisp,it,dt,Et)},ot=this;(ft=lt.exec(xt))!==null&&z()!=="break";);},vt.prototype._addLink=function(yt,xt,dt,ft,ct){var lt=this;if(this._mouseZoneManager&&this._element){var E=this._unicodeService.getStringCellWidth(dt),z=yt%this._bufferService.cols,ot=xt+Math.floor(yt/this._bufferService.cols),it=(z+E)%this._bufferService.cols,at=ot+Math.floor((z+E)/this._bufferService.cols);it===0&&(it=this._bufferService.cols,at--),this._mouseZoneManager.add(new pt(z+1,ot+1,it+1,at+1,function(ut){if(ft.handler)return ft.handler(ut,dt);var wt=window.open();wt?(wt.opener=null,wt.location.href=dt):console.warn("Opening link blocked as opener could not be cleared")},function(){lt._onShowLinkUnderline.fire(lt._createLinkHoverEvent(z,ot,it,at,ct)),lt._element.classList.add("xterm-cursor-pointer")},function(ut){lt._onLinkTooltip.fire(lt._createLinkHoverEvent(z,ot,it,at,ct)),ft.hoverTooltipCallback&&ft.hoverTooltipCallback(ut,dt,{start:{x:z,y:ot},end:{x:it,y:at}})},function(){lt._onHideLinkUnderline.fire(lt._createLinkHoverEvent(z,ot,it,at,ct)),lt._element.classList.remove("xterm-cursor-pointer"),ft.hoverLeaveCallback&&ft.hoverLeaveCallback()},function(ut){return!ft.willLinkActivate||ft.willLinkActivate(ut,dt)}))}},vt.prototype._createLinkHoverEvent=function(yt,xt,dt,ft,ct){return{x1:yt,y1:xt,x2:dt,y2:ft,cols:this._bufferService.cols,fg:ct}},vt._timeBeforeLatency=200,vt=ie([rt(0,Ct.IBufferService),rt(1,Ct.ILogService),rt(2,Ct.IUnicodeService)],vt)}();Rt.Linkifier=St;var pt=function(vt,yt,xt,dt,ft,ct,lt,E,z){this.x1=vt,this.y1=yt,this.x2=xt,this.y2=dt,this.clickCallback=ft,this.hoverCallback=ct,this.tooltipCallback=lt,this.leaveCallback=E,this.willLinkActivate=z};Rt.MouseZone=pt},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(it,at){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ut,wt){ut.__proto__=wt}||function(ut,wt){for(var Et in wt)wt.hasOwnProperty(Et)&&(ut[Et]=wt[Et])})(it,at)},function(it,at){function ut(){this.constructor=it}ie(it,at),it.prototype=at===null?Object.create(at):(ut.prototype=at.prototype,new ut)}),kt=this&&this.__decorate||function(it,at,ut,wt){var Et,At=arguments.length,_t=At<3?at:wt===null?wt=Object.getOwnPropertyDescriptor(at,ut):wt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_t=Reflect.decorate(it,at,ut,wt);else for(var Mt=it.length-1;Mt>=0;Mt--)(Et=it[Mt])&&(_t=(At<3?Et(_t):At>3?Et(at,ut,_t):Et(at,ut))||_t);return At>3&&_t&&Object.defineProperty(at,ut,_t),_t},Ct=this&&this.__param||function(it,at){return function(ut,wt){at(ut,wt,it)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.SelectionService=void 0;var St=Ft(11),pt=Ft(52),vt=Ft(4),yt=Ft(0),xt=Ft(5),dt=Ft(1),ft=Ft(30),ct=Ft(53),lt=Ft(2),E="\xA0",z=new RegExp(E,"g"),ot=function(it){function at(ut,wt,Et,At,_t,Mt,jt){var Lt=it.call(this)||this;return Lt._element=ut,Lt._screenElement=wt,Lt._bufferService=Et,Lt._coreService=At,Lt._mouseService=_t,Lt._optionsService=Mt,Lt._renderService=jt,Lt._dragScrollAmount=0,Lt._enabled=!0,Lt._workCell=new vt.CellData,Lt._mouseDownTimeStamp=0,Lt._onLinuxMouseSelection=Lt.register(new yt.EventEmitter),Lt._onRedrawRequest=Lt.register(new yt.EventEmitter),Lt._onSelectionChange=Lt.register(new yt.EventEmitter),Lt._onRequestScrollLines=Lt.register(new yt.EventEmitter),Lt._mouseMoveListener=function(It){return Lt._onMouseMove(It)},Lt._mouseUpListener=function(It){return Lt._onMouseUp(It)},Lt._coreService.onUserInput(function(){Lt.hasSelection&&Lt.clearSelection()}),Lt._trimListener=Lt._bufferService.buffer.lines.onTrim(function(It){return Lt._onTrim(It)}),Lt.register(Lt._bufferService.buffers.onBufferActivate(function(It){return Lt._onBufferActivate(It)})),Lt.enable(),Lt._model=new pt.SelectionModel(Lt._bufferService),Lt._activeSelectionMode=0,Lt}return rt(at,it),Object.defineProperty(at.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(at.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(at.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(at.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),at.prototype.dispose=function(){this._removeMouseDownListeners()},at.prototype.reset=function(){this.clearSelection()},at.prototype.disable=function(){this.clearSelection(),this._enabled=!1},at.prototype.enable=function(){this._enabled=!0},Object.defineProperty(at.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(at.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(at.prototype,"hasSelection",{get:function(){var ut=this._model.finalSelectionStart,wt=this._model.finalSelectionEnd;return!(!ut||!wt)&&(ut[0]!==wt[0]||ut[1]!==wt[1])},enumerable:!1,configurable:!0}),Object.defineProperty(at.prototype,"selectionText",{get:function(){var ut=this._model.finalSelectionStart,wt=this._model.finalSelectionEnd;if(!ut||!wt)return"";var Et=this._bufferService.buffer,At=[];if(this._activeSelectionMode===3){if(ut[0]===wt[0])return"";for(var _t=ut[1];_t<=wt[1];_t++){var Mt=Et.translateBufferLineToString(_t,!0,ut[0],wt[0]);At.push(Mt)}}else{var jt=ut[1]===wt[1]?wt[0]:void 0;for(At.push(Et.translateBufferLineToString(ut[1],!0,ut[0],jt)),_t=ut[1]+1;_t<=wt[1]-1;_t++){var Lt=Et.lines.get(_t);Mt=Et.translateBufferLineToString(_t,!0),Lt&&Lt.isWrapped?At[At.length-1]+=Mt:At.push(Mt)}ut[1]!==wt[1]&&(Lt=Et.lines.get(wt[1]),Mt=Et.translateBufferLineToString(wt[1],!0,0,wt[0]),Lt&&Lt.isWrapped?At[At.length-1]+=Mt:At.push(Mt))}return At.map(function(It){return It.replace(z," ")}).join(St.isWindows?`\r +`,ie.VT="\v",ie.FF="\f",ie.CR="\r",ie.SO="",ie.SI="",ie.DLE="",ie.DC1="",ie.DC2="",ie.DC3="",ie.DC4="",ie.NAK="",ie.SYN="",ie.ETB="",ie.CAN="",ie.EM="",ie.SUB="",ie.ESC="\x1B",ie.FS="",ie.GS="",ie.RS="",ie.US="",ie.SP=" ",ie.DEL="\x7F"}(Rt.C0||(Rt.C0={})),function(ie){ie.PAD="\x80",ie.HOP="\x81",ie.BPH="\x82",ie.NBH="\x83",ie.IND="\x84",ie.NEL="\x85",ie.SSA="\x86",ie.ESA="\x87",ie.HTS="\x88",ie.HTJ="\x89",ie.VTS="\x8A",ie.PLD="\x8B",ie.PLU="\x8C",ie.RI="\x8D",ie.SS2="\x8E",ie.SS3="\x8F",ie.DCS="\x90",ie.PU1="\x91",ie.PU2="\x92",ie.STS="\x93",ie.CCH="\x94",ie.MW="\x95",ie.SPA="\x96",ie.EPA="\x97",ie.SOS="\x98",ie.SGCI="\x99",ie.SCI="\x9A",ie.CSI="\x9B",ie.ST="\x9C",ie.OSC="\x9D",ie.PM="\x9E",ie.APC="\x9F"}(Rt.C1||(Rt.C1={}))},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.BaseRenderLayer=void 0;var ie=Ft(3),rt=Ft(9),kt=Ft(25),Ct=Ft(6),St=Ft(28),pt=Ft(10),vt=Ft(17),yt=function(){function xt(dt,ft,ct,lt,E,z,ot,it){this._container=dt,this._alpha=lt,this._colors=E,this._rendererId=z,this._bufferService=ot,this._optionsService=it,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+ft+"-layer"),this._canvas.style.zIndex=ct.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return xt.prototype.dispose=function(){var dt;vt.removeElementFromParent(this._canvas),(dt=this._charAtlas)===null||dt===void 0||dt.dispose()},xt.prototype._initCanvas=function(){this._ctx=St.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},xt.prototype.onOptionsChanged=function(){},xt.prototype.onBlur=function(){},xt.prototype.onFocus=function(){},xt.prototype.onCursorMove=function(){},xt.prototype.onGridChanged=function(dt,ft){},xt.prototype.onSelectionChanged=function(dt,ft,ct){ct===void 0&&(ct=!1)},xt.prototype.setColors=function(dt){this._refreshCharAtlas(dt)},xt.prototype._setTransparency=function(dt){if(dt!==this._alpha){var ft=this._canvas;this._alpha=dt,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,ft),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},xt.prototype._refreshCharAtlas=function(dt){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=kt.acquireCharAtlas(this._optionsService.options,this._rendererId,dt,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},xt.prototype.resize=function(dt){this._scaledCellWidth=dt.scaledCellWidth,this._scaledCellHeight=dt.scaledCellHeight,this._scaledCharWidth=dt.scaledCharWidth,this._scaledCharHeight=dt.scaledCharHeight,this._scaledCharLeft=dt.scaledCharLeft,this._scaledCharTop=dt.scaledCharTop,this._canvas.width=dt.scaledCanvasWidth,this._canvas.height=dt.scaledCanvasHeight,this._canvas.style.width=dt.canvasWidth+"px",this._canvas.style.height=dt.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},xt.prototype._fillCells=function(dt,ft,ct,lt){this._ctx.fillRect(dt*this._scaledCellWidth,ft*this._scaledCellHeight,ct*this._scaledCellWidth,lt*this._scaledCellHeight)},xt.prototype._fillBottomLineAtCells=function(dt,ft,ct){ct===void 0&&(ct=1),this._ctx.fillRect(dt*this._scaledCellWidth,(ft+1)*this._scaledCellHeight-window.devicePixelRatio-1,ct*this._scaledCellWidth,window.devicePixelRatio)},xt.prototype._fillLeftLineAtCell=function(dt,ft,ct){this._ctx.fillRect(dt*this._scaledCellWidth,ft*this._scaledCellHeight,window.devicePixelRatio*ct,this._scaledCellHeight)},xt.prototype._strokeRectAtCell=function(dt,ft,ct,lt){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(dt*this._scaledCellWidth+window.devicePixelRatio/2,ft*this._scaledCellHeight+window.devicePixelRatio/2,ct*this._scaledCellWidth-window.devicePixelRatio,lt*this._scaledCellHeight-window.devicePixelRatio)},xt.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},xt.prototype._clearCells=function(dt,ft,ct,lt){this._alpha?this._ctx.clearRect(dt*this._scaledCellWidth,ft*this._scaledCellHeight,ct*this._scaledCellWidth,lt*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(dt*this._scaledCellWidth,ft*this._scaledCellHeight,ct*this._scaledCellWidth,lt*this._scaledCellHeight))},xt.prototype._fillCharTrueColor=function(dt,ft,ct){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(ct),this._ctx.fillText(dt.getChars(),ft*this._scaledCellWidth+this._scaledCharLeft,ct*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},xt.prototype._drawChars=function(dt,ft,ct){var lt,E,z=this._getContrastColor(dt);z||dt.isFgRGB()||dt.isBgRGB()?this._drawUncachedChars(dt,ft,ct,z):(dt.isInverse()?(lt=dt.isBgDefault()?rt.INVERTED_DEFAULT_COLOR:dt.getBgColor(),E=dt.isFgDefault()?rt.INVERTED_DEFAULT_COLOR:dt.getFgColor()):(E=dt.isBgDefault()?ie.DEFAULT_COLOR:dt.getBgColor(),lt=dt.isFgDefault()?ie.DEFAULT_COLOR:dt.getFgColor()),lt+=this._optionsService.options.drawBoldTextInBrightColors&&dt.isBold()&<<8?8:0,this._currentGlyphIdentifier.chars=dt.getChars()||ie.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=dt.getCode()||ie.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=E,this._currentGlyphIdentifier.fg=lt,this._currentGlyphIdentifier.bold=!!dt.isBold(),this._currentGlyphIdentifier.dim=!!dt.isDim(),this._currentGlyphIdentifier.italic=!!dt.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,ft*this._scaledCellWidth+this._scaledCharLeft,ct*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(dt,ft,ct))},xt.prototype._drawUncachedChars=function(dt,ft,ct,lt){if(this._ctx.save(),this._ctx.font=this._getFont(!!dt.isBold(),!!dt.isItalic()),this._ctx.textBaseline="middle",dt.isInverse())if(lt)this._ctx.fillStyle=lt.css;else if(dt.isBgDefault())this._ctx.fillStyle=pt.color.opaque(this._colors.background).css;else if(dt.isBgRGB())this._ctx.fillStyle="rgb("+Ct.AttributeData.toColorRGB(dt.getBgColor()).join(",")+")";else{var E=dt.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&dt.isBold()&&E<8&&(E+=8),this._ctx.fillStyle=this._colors.ansi[E].css}else if(lt)this._ctx.fillStyle=lt.css;else if(dt.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(dt.isFgRGB())this._ctx.fillStyle="rgb("+Ct.AttributeData.toColorRGB(dt.getFgColor()).join(",")+")";else{var z=dt.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&dt.isBold()&&z<8&&(z+=8),this._ctx.fillStyle=this._colors.ansi[z].css}this._clipRow(ct),dt.isDim()&&(this._ctx.globalAlpha=rt.DIM_OPACITY),this._ctx.fillText(dt.getChars(),ft*this._scaledCellWidth+this._scaledCharLeft,ct*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},xt.prototype._clipRow=function(dt){this._ctx.beginPath(),this._ctx.rect(0,dt*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},xt.prototype._getFont=function(dt,ft){return(ft?"italic":"")+" "+(dt?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},xt.prototype._getContrastColor=function(dt){if(this._optionsService.options.minimumContrastRatio!==1){var ft=this._colors.contrastCache.getColor(dt.bg,dt.fg);if(ft!==void 0)return ft||void 0;var ct=dt.getFgColor(),lt=dt.getFgColorMode(),E=dt.getBgColor(),z=dt.getBgColorMode(),ot=!!dt.isInverse(),it=!!dt.isInverse();if(ot){var at=ct;ct=E,E=at;var ut=lt;lt=z,z=ut}var wt=this._resolveBackgroundRgba(z,E,ot),Et=this._resolveForegroundRgba(lt,ct,ot,it),At=pt.rgba.ensureContrastRatio(wt,Et,this._optionsService.options.minimumContrastRatio);if(At){var _t={css:pt.channels.toCss(At>>24&255,At>>16&255,At>>8&255),rgba:At};return this._colors.contrastCache.setColor(dt.bg,dt.fg,_t),_t}this._colors.contrastCache.setColor(dt.bg,dt.fg,null)}},xt.prototype._resolveBackgroundRgba=function(dt,ft,ct){switch(dt){case 16777216:case 33554432:return this._colors.ansi[ft].rgba;case 50331648:return ft<<8;case 0:default:return ct?this._colors.foreground.rgba:this._colors.background.rgba}},xt.prototype._resolveForegroundRgba=function(dt,ft,ct,lt){switch(dt){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&<&&ft<8&&(ft+=8),this._colors.ansi[ft].rgba;case 50331648:return ft<<8;case 0:default:return ct?this._colors.background.rgba:this._colors.foreground.rgba}},xt}();Rt.BaseRenderLayer=yt},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.createDecorator=Rt.getServiceDependencies=Rt.serviceRegistry=void 0;function ie(rt,kt,Ct){kt.di$target===kt?kt.di$dependencies.push({id:rt,index:Ct}):(kt.di$dependencies=[{id:rt,index:Ct}],kt.di$target=kt)}Rt.serviceRegistry=new Map,Rt.getServiceDependencies=function(rt){return rt.di$dependencies||[]},Rt.createDecorator=function(rt){if(Rt.serviceRegistry.has(rt))return Rt.serviceRegistry.get(rt);var kt=function(Ct,St,pt){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");ie(kt,Ct,pt)};return kt.toString=function(){return rt},Rt.serviceRegistry.set(rt,kt),kt}},function(Ke,Rt,Ft){"use strict";function ie(rt,kt,Ct,St){if(Ct===void 0&&(Ct=0),St===void 0&&(St=rt.length),Ct>=rt.length)return rt;Ct=(rt.length+Ct)%rt.length,St=St>=rt.length?rt.length:(rt.length+St)%rt.length;for(var pt=Ct;pt>22,2097152&yt?this._combined[vt].charCodeAt(this._combined[vt].length-1):xt]},pt.prototype.set=function(vt,yt){this._data[3*vt+1]=yt[rt.CHAR_DATA_ATTR_INDEX],yt[rt.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[vt]=yt[1],this._data[3*vt+0]=2097152|vt|yt[rt.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*vt+0]=yt[rt.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|yt[rt.CHAR_DATA_WIDTH_INDEX]<<22},pt.prototype.getWidth=function(vt){return this._data[3*vt+0]>>22},pt.prototype.hasWidth=function(vt){return 12582912&this._data[3*vt+0]},pt.prototype.getFg=function(vt){return this._data[3*vt+1]},pt.prototype.getBg=function(vt){return this._data[3*vt+2]},pt.prototype.hasContent=function(vt){return 4194303&this._data[3*vt+0]},pt.prototype.getCodePoint=function(vt){var yt=this._data[3*vt+0];return 2097152&yt?this._combined[vt].charCodeAt(this._combined[vt].length-1):2097151&yt},pt.prototype.isCombined=function(vt){return 2097152&this._data[3*vt+0]},pt.prototype.getString=function(vt){var yt=this._data[3*vt+0];return 2097152&yt?this._combined[vt]:2097151&yt?ie.stringFromCodePoint(2097151&yt):""},pt.prototype.loadCell=function(vt,yt){var xt=3*vt;return yt.content=this._data[xt+0],yt.fg=this._data[xt+1],yt.bg=this._data[xt+2],2097152&yt.content&&(yt.combinedData=this._combined[vt]),268435456&yt.bg&&(yt.extended=this._extendedAttrs[vt]),yt},pt.prototype.setCell=function(vt,yt){2097152&yt.content&&(this._combined[vt]=yt.combinedData),268435456&yt.bg&&(this._extendedAttrs[vt]=yt.extended),this._data[3*vt+0]=yt.content,this._data[3*vt+1]=yt.fg,this._data[3*vt+2]=yt.bg},pt.prototype.setCellFromCodePoint=function(vt,yt,xt,dt,ft,ct){268435456&ft&&(this._extendedAttrs[vt]=ct),this._data[3*vt+0]=yt|xt<<22,this._data[3*vt+1]=dt,this._data[3*vt+2]=ft},pt.prototype.addCodepointToCell=function(vt,yt){var xt=this._data[3*vt+0];2097152&xt?this._combined[vt]+=ie.stringFromCodePoint(yt):(2097151&xt?(this._combined[vt]=ie.stringFromCodePoint(2097151&xt)+ie.stringFromCodePoint(yt),xt&=-2097152,xt|=2097152):xt=yt|1<<22,this._data[3*vt+0]=xt)},pt.prototype.insertCells=function(vt,yt,xt,dt){if((vt%=this.length)&&this.getWidth(vt-1)===2&&this.setCellFromCodePoint(vt-1,0,1,(dt==null?void 0:dt.fg)||0,(dt==null?void 0:dt.bg)||0,(dt==null?void 0:dt.extended)||new Ct.ExtendedAttrs),yt=0;--ct)this.setCell(vt+yt+ct,this.loadCell(vt+ct,ft));for(ct=0;ctthis.length){var xt=new Uint32Array(3*vt);this.length&&(3*vt=vt&&delete this._combined[ct]}}else this._data=new Uint32Array(0),this._combined={};this.length=vt}},pt.prototype.fill=function(vt){this._combined={},this._extendedAttrs={};for(var yt=0;yt=0;--vt)if(4194303&this._data[3*vt+0])return vt+(this._data[3*vt+0]>>22);return 0},pt.prototype.copyCellsFrom=function(vt,yt,xt,dt,ft){var ct=vt._data;if(ft)for(var lt=dt-1;lt>=0;lt--)for(var E=0;E<3;E++)this._data[3*(xt+lt)+E]=ct[3*(yt+lt)+E];else for(lt=0;lt=yt&&(this._combined[ot-yt+xt]=vt._combined[ot])}},pt.prototype.translateToString=function(vt,yt,xt){vt===void 0&&(vt=!1),yt===void 0&&(yt=0),xt===void 0&&(xt=this.length),vt&&(xt=Math.min(xt,this.getTrimmedLength()));for(var dt="";yt>22||1}return dt},pt}();Rt.BufferLine=St},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.removeElementFromParent=void 0,Rt.removeElementFromParent=function(){for(var ie,rt=[],kt=0;kt24)return At.setWinLines||!1;switch(Et){case 1:return!!At.restoreWin;case 2:return!!At.minimizeWin;case 3:return!!At.setWinPosition;case 4:return!!At.setWinSizePixels;case 5:return!!At.raiseWin;case 6:return!!At.lowerWin;case 7:return!!At.refreshWin;case 8:return!!At.setWinSizeChars;case 9:return!!At.maximizeWin;case 10:return!!At.fullscreenWin;case 11:return!!At.getWinState;case 13:return!!At.getWinPosition;case 14:return!!At.getWinSizePixels;case 15:return!!At.getScreenSizePixels;case 16:return!!At.getCellSizePixels;case 18:return!!At.getWinSizeChars;case 19:return!!At.getScreenSizeChars;case 20:return!!At.getIconTitle;case 21:return!!At.getWinTitle;case 22:return!!At.pushTitle;case 23:return!!At.popTitle;case 24:return!!At.setWinLines}return!1}(function(Et){Et[Et.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",Et[Et.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(kt=Rt.WindowsOptionsReportType||(Rt.WindowsOptionsReportType={}));var ut=function(){function Et(At,_t,Mt,jt){this._bufferService=At,this._coreService=_t,this._logService=Mt,this._optionsService=jt,this._data=new Uint32Array(0)}return Et.prototype.hook=function(At){this._data=new Uint32Array(0)},Et.prototype.put=function(At,_t,Mt){this._data=yt.concat(this._data,At.subarray(_t,Mt))},Et.prototype.unhook=function(At){if(At){var _t=xt.utf32ToString(this._data);switch(this._data=new Uint32Array(0),_t){case'"q':return this._coreService.triggerDataEvent(Ct.C0.ESC+'P1$r0"q'+Ct.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(Ct.C0.ESC+'P1$r61;1"p'+Ct.C0.ESC+"\\");case"r":var Mt=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(Ct.C0.ESC+"P1$r"+Mt+Ct.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(Ct.C0.ESC+"P1$r0m"+Ct.C0.ESC+"\\");case" q":var jt={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return jt-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(Ct.C0.ESC+"P1$r"+jt+" q"+Ct.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",_t),this._coreService.triggerDataEvent(Ct.C0.ESC+"P0$r"+Ct.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},Et}(),wt=function(Et){function At(_t,Mt,jt,Lt,It,Ut,Xt,Gt,Vt){Vt===void 0&&(Vt=new pt.EscapeSequenceParser);var Ht=Et.call(this)||this;Ht._bufferService=_t,Ht._charsetService=Mt,Ht._coreService=jt,Ht._dirtyRowService=Lt,Ht._logService=It,Ht._optionsService=Ut,Ht._coreMouseService=Xt,Ht._unicodeService=Gt,Ht._parser=Vt,Ht._parseBuffer=new Uint32Array(4096),Ht._stringDecoder=new xt.StringToUtf32,Ht._utf8Decoder=new xt.Utf8ToUtf32,Ht._workCell=new lt.CellData,Ht._windowTitle="",Ht._iconName="",Ht._windowTitleStack=[],Ht._iconNameStack=[],Ht._curAttrData=dt.DEFAULT_ATTR_DATA.clone(),Ht._eraseAttrDataInternal=dt.DEFAULT_ATTR_DATA.clone(),Ht._onRequestBell=new ft.EventEmitter,Ht._onRequestRefreshRows=new ft.EventEmitter,Ht._onRequestReset=new ft.EventEmitter,Ht._onRequestScroll=new ft.EventEmitter,Ht._onRequestSyncScrollBar=new ft.EventEmitter,Ht._onRequestWindowsOptionsReport=new ft.EventEmitter,Ht._onA11yChar=new ft.EventEmitter,Ht._onA11yTab=new ft.EventEmitter,Ht._onCursorMove=new ft.EventEmitter,Ht._onLineFeed=new ft.EventEmitter,Ht._onScroll=new ft.EventEmitter,Ht._onTitleChange=new ft.EventEmitter,Ht.register(Ht._parser),Ht._parser.setCsiHandlerFallback(function(Kt,re){Ht._logService.debug("Unknown CSI code: ",{identifier:Ht._parser.identToString(Kt),params:re.toArray()})}),Ht._parser.setEscHandlerFallback(function(Kt){Ht._logService.debug("Unknown ESC code: ",{identifier:Ht._parser.identToString(Kt)})}),Ht._parser.setExecuteHandlerFallback(function(Kt){Ht._logService.debug("Unknown EXECUTE code: ",{code:Kt})}),Ht._parser.setOscHandlerFallback(function(Kt,re,we){Ht._logService.debug("Unknown OSC code: ",{identifier:Kt,action:re,data:we})}),Ht._parser.setDcsHandlerFallback(function(Kt,re,we){re==="HOOK"&&(we=we.toArray()),Ht._logService.debug("Unknown DCS code: ",{identifier:Ht._parser.identToString(Kt),action:re,payload:we})}),Ht._parser.setPrintHandler(function(Kt,re,we){return Ht.print(Kt,re,we)}),Ht._parser.setCsiHandler({final:"@"},function(Kt){return Ht.insertChars(Kt)}),Ht._parser.setCsiHandler({intermediates:" ",final:"@"},function(Kt){return Ht.scrollLeft(Kt)}),Ht._parser.setCsiHandler({final:"A"},function(Kt){return Ht.cursorUp(Kt)}),Ht._parser.setCsiHandler({intermediates:" ",final:"A"},function(Kt){return Ht.scrollRight(Kt)}),Ht._parser.setCsiHandler({final:"B"},function(Kt){return Ht.cursorDown(Kt)}),Ht._parser.setCsiHandler({final:"C"},function(Kt){return Ht.cursorForward(Kt)}),Ht._parser.setCsiHandler({final:"D"},function(Kt){return Ht.cursorBackward(Kt)}),Ht._parser.setCsiHandler({final:"E"},function(Kt){return Ht.cursorNextLine(Kt)}),Ht._parser.setCsiHandler({final:"F"},function(Kt){return Ht.cursorPrecedingLine(Kt)}),Ht._parser.setCsiHandler({final:"G"},function(Kt){return Ht.cursorCharAbsolute(Kt)}),Ht._parser.setCsiHandler({final:"H"},function(Kt){return Ht.cursorPosition(Kt)}),Ht._parser.setCsiHandler({final:"I"},function(Kt){return Ht.cursorForwardTab(Kt)}),Ht._parser.setCsiHandler({final:"J"},function(Kt){return Ht.eraseInDisplay(Kt)}),Ht._parser.setCsiHandler({prefix:"?",final:"J"},function(Kt){return Ht.eraseInDisplay(Kt)}),Ht._parser.setCsiHandler({final:"K"},function(Kt){return Ht.eraseInLine(Kt)}),Ht._parser.setCsiHandler({prefix:"?",final:"K"},function(Kt){return Ht.eraseInLine(Kt)}),Ht._parser.setCsiHandler({final:"L"},function(Kt){return Ht.insertLines(Kt)}),Ht._parser.setCsiHandler({final:"M"},function(Kt){return Ht.deleteLines(Kt)}),Ht._parser.setCsiHandler({final:"P"},function(Kt){return Ht.deleteChars(Kt)}),Ht._parser.setCsiHandler({final:"S"},function(Kt){return Ht.scrollUp(Kt)}),Ht._parser.setCsiHandler({final:"T"},function(Kt){return Ht.scrollDown(Kt)}),Ht._parser.setCsiHandler({final:"X"},function(Kt){return Ht.eraseChars(Kt)}),Ht._parser.setCsiHandler({final:"Z"},function(Kt){return Ht.cursorBackwardTab(Kt)}),Ht._parser.setCsiHandler({final:"`"},function(Kt){return Ht.charPosAbsolute(Kt)}),Ht._parser.setCsiHandler({final:"a"},function(Kt){return Ht.hPositionRelative(Kt)}),Ht._parser.setCsiHandler({final:"b"},function(Kt){return Ht.repeatPrecedingCharacter(Kt)}),Ht._parser.setCsiHandler({final:"c"},function(Kt){return Ht.sendDeviceAttributesPrimary(Kt)}),Ht._parser.setCsiHandler({prefix:">",final:"c"},function(Kt){return Ht.sendDeviceAttributesSecondary(Kt)}),Ht._parser.setCsiHandler({final:"d"},function(Kt){return Ht.linePosAbsolute(Kt)}),Ht._parser.setCsiHandler({final:"e"},function(Kt){return Ht.vPositionRelative(Kt)}),Ht._parser.setCsiHandler({final:"f"},function(Kt){return Ht.hVPosition(Kt)}),Ht._parser.setCsiHandler({final:"g"},function(Kt){return Ht.tabClear(Kt)}),Ht._parser.setCsiHandler({final:"h"},function(Kt){return Ht.setMode(Kt)}),Ht._parser.setCsiHandler({prefix:"?",final:"h"},function(Kt){return Ht.setModePrivate(Kt)}),Ht._parser.setCsiHandler({final:"l"},function(Kt){return Ht.resetMode(Kt)}),Ht._parser.setCsiHandler({prefix:"?",final:"l"},function(Kt){return Ht.resetModePrivate(Kt)}),Ht._parser.setCsiHandler({final:"m"},function(Kt){return Ht.charAttributes(Kt)}),Ht._parser.setCsiHandler({final:"n"},function(Kt){return Ht.deviceStatus(Kt)}),Ht._parser.setCsiHandler({prefix:"?",final:"n"},function(Kt){return Ht.deviceStatusPrivate(Kt)}),Ht._parser.setCsiHandler({intermediates:"!",final:"p"},function(Kt){return Ht.softReset(Kt)}),Ht._parser.setCsiHandler({intermediates:" ",final:"q"},function(Kt){return Ht.setCursorStyle(Kt)}),Ht._parser.setCsiHandler({final:"r"},function(Kt){return Ht.setScrollRegion(Kt)}),Ht._parser.setCsiHandler({final:"s"},function(Kt){return Ht.saveCursor(Kt)}),Ht._parser.setCsiHandler({final:"t"},function(Kt){return Ht.windowOptions(Kt)}),Ht._parser.setCsiHandler({final:"u"},function(Kt){return Ht.restoreCursor(Kt)}),Ht._parser.setCsiHandler({intermediates:"'",final:"}"},function(Kt){return Ht.insertColumns(Kt)}),Ht._parser.setCsiHandler({intermediates:"'",final:"~"},function(Kt){return Ht.deleteColumns(Kt)}),Ht._parser.setExecuteHandler(Ct.C0.BEL,function(){return Ht.bell()}),Ht._parser.setExecuteHandler(Ct.C0.LF,function(){return Ht.lineFeed()}),Ht._parser.setExecuteHandler(Ct.C0.VT,function(){return Ht.lineFeed()}),Ht._parser.setExecuteHandler(Ct.C0.FF,function(){return Ht.lineFeed()}),Ht._parser.setExecuteHandler(Ct.C0.CR,function(){return Ht.carriageReturn()}),Ht._parser.setExecuteHandler(Ct.C0.BS,function(){return Ht.backspace()}),Ht._parser.setExecuteHandler(Ct.C0.HT,function(){return Ht.tab()}),Ht._parser.setExecuteHandler(Ct.C0.SO,function(){return Ht.shiftOut()}),Ht._parser.setExecuteHandler(Ct.C0.SI,function(){return Ht.shiftIn()}),Ht._parser.setExecuteHandler(Ct.C1.IND,function(){return Ht.index()}),Ht._parser.setExecuteHandler(Ct.C1.NEL,function(){return Ht.nextLine()}),Ht._parser.setExecuteHandler(Ct.C1.HTS,function(){return Ht.tabSet()}),Ht._parser.setOscHandler(0,new z.OscHandler(function(Kt){Ht.setTitle(Kt),Ht.setIconName(Kt)})),Ht._parser.setOscHandler(1,new z.OscHandler(function(Kt){return Ht.setIconName(Kt)})),Ht._parser.setOscHandler(2,new z.OscHandler(function(Kt){return Ht.setTitle(Kt)})),Ht._parser.setEscHandler({final:"7"},function(){return Ht.saveCursor()}),Ht._parser.setEscHandler({final:"8"},function(){return Ht.restoreCursor()}),Ht._parser.setEscHandler({final:"D"},function(){return Ht.index()}),Ht._parser.setEscHandler({final:"E"},function(){return Ht.nextLine()}),Ht._parser.setEscHandler({final:"H"},function(){return Ht.tabSet()}),Ht._parser.setEscHandler({final:"M"},function(){return Ht.reverseIndex()}),Ht._parser.setEscHandler({final:"="},function(){return Ht.keypadApplicationMode()}),Ht._parser.setEscHandler({final:">"},function(){return Ht.keypadNumericMode()}),Ht._parser.setEscHandler({final:"c"},function(){return Ht.fullReset()}),Ht._parser.setEscHandler({final:"n"},function(){return Ht.setgLevel(2)}),Ht._parser.setEscHandler({final:"o"},function(){return Ht.setgLevel(3)}),Ht._parser.setEscHandler({final:"|"},function(){return Ht.setgLevel(3)}),Ht._parser.setEscHandler({final:"}"},function(){return Ht.setgLevel(2)}),Ht._parser.setEscHandler({final:"~"},function(){return Ht.setgLevel(1)}),Ht._parser.setEscHandler({intermediates:"%",final:"@"},function(){return Ht.selectDefaultCharset()}),Ht._parser.setEscHandler({intermediates:"%",final:"G"},function(){return Ht.selectDefaultCharset()});var ne=function(Kt){se._parser.setEscHandler({intermediates:"(",final:Kt},function(){return Ht.selectCharset("("+Kt)}),se._parser.setEscHandler({intermediates:")",final:Kt},function(){return Ht.selectCharset(")"+Kt)}),se._parser.setEscHandler({intermediates:"*",final:Kt},function(){return Ht.selectCharset("*"+Kt)}),se._parser.setEscHandler({intermediates:"+",final:Kt},function(){return Ht.selectCharset("+"+Kt)}),se._parser.setEscHandler({intermediates:"-",final:Kt},function(){return Ht.selectCharset("-"+Kt)}),se._parser.setEscHandler({intermediates:".",final:Kt},function(){return Ht.selectCharset("."+Kt)}),se._parser.setEscHandler({intermediates:"/",final:Kt},function(){return Ht.selectCharset("/"+Kt)})},se=this;for(var ve in St.CHARSETS)ne(ve);return Ht._parser.setEscHandler({intermediates:"#",final:"8"},function(){return Ht.screenAlignmentPattern()}),Ht._parser.setErrorHandler(function(Kt){return Ht._logService.error("Parsing error: ",Kt),Kt}),Ht._parser.setDcsHandler({intermediates:"$",final:"q"},new ut(Ht._bufferService,Ht._coreService,Ht._logService,Ht._optionsService)),Ht}return rt(At,Et),Object.defineProperty(At.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),At.prototype.dispose=function(){Et.prototype.dispose.call(this)},At.prototype.parse=function(_t){var Mt=this._bufferService.buffer,jt=Mt.x,Lt=Mt.y;if(this._logService.debug("parsing data",_t),this._parseBuffer.length<_t.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(_t.length,131072))),this._dirtyRowService.clearRange(),_t.length>131072)for(var It=0;It<_t.length;It+=131072){var Ut=It+131072<_t.length?It+131072:_t.length,Xt=typeof _t=="string"?this._stringDecoder.decode(_t.substring(It,Ut),this._parseBuffer):this._utf8Decoder.decode(_t.subarray(It,Ut),this._parseBuffer);this._parser.parse(this._parseBuffer,Xt)}else Xt=typeof _t=="string"?this._stringDecoder.decode(_t,this._parseBuffer):this._utf8Decoder.decode(_t,this._parseBuffer),this._parser.parse(this._parseBuffer,Xt);(Mt=this._bufferService.buffer).x===jt&&Mt.y===Lt||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},At.prototype.print=function(_t,Mt,jt){var Lt,It,Ut=this._bufferService.buffer,Xt=this._charsetService.charset,Gt=this._optionsService.options.screenReaderMode,Vt=this._bufferService.cols,Ht=this._coreService.decPrivateModes.wraparound,ne=this._coreService.modes.insertMode,se=this._curAttrData,ve=Ut.lines.get(Ut.ybase+Ut.y);this._dirtyRowService.markDirty(Ut.y),Ut.x&&jt-Mt>0&&ve.getWidth(Ut.x-1)===2&&ve.setCellFromCodePoint(Ut.x-1,0,1,se.fg,se.bg,se.extended);for(var Kt=Mt;Kt=Vt){if(Ht){for(;Ut.x=this._bufferService.rows&&(Ut.y=this._bufferService.rows-1),Ut.lines.get(Ut.ybase+Ut.y).isWrapped=!0),ve=Ut.lines.get(Ut.ybase+Ut.y)}else if(Ut.x=Vt-1,It===2)continue}if(ne&&(ve.insertCells(Ut.x,It,Ut.getNullCell(se),se),ve.getWidth(Vt-1)===2&&ve.setCellFromCodePoint(Vt-1,ct.NULL_CELL_CODE,ct.NULL_CELL_WIDTH,se.fg,se.bg,se.extended)),ve.setCellFromCodePoint(Ut.x++,Lt,It,se.fg,se.bg,se.extended),It>0)for(;--It;)ve.setCellFromCodePoint(Ut.x++,0,0,se.fg,se.bg,se.extended)}else ve.getWidth(Ut.x-1)?ve.addCodepointToCell(Ut.x-1,Lt):ve.addCodepointToCell(Ut.x-2,Lt)}jt-Mt>0&&(ve.loadCell(Ut.x-1,this._workCell),this._workCell.getWidth()===2||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),Ut.x0&&ve.getWidth(Ut.x)===0&&!ve.hasContent(Ut.x)&&ve.setCellFromCodePoint(Ut.x,0,1,se.fg,se.bg,se.extended),this._dirtyRowService.markDirty(Ut.y)},At.prototype.addCsiHandler=function(_t,Mt){var jt=this;return _t.final!=="t"||_t.prefix||_t.intermediates?this._parser.addCsiHandler(_t,Mt):this._parser.addCsiHandler(_t,function(Lt){return!at(Lt.params[0],jt._optionsService.options.windowOptions)||Mt(Lt)})},At.prototype.addDcsHandler=function(_t,Mt){return this._parser.addDcsHandler(_t,new ot.DcsHandler(Mt))},At.prototype.addEscHandler=function(_t,Mt){return this._parser.addEscHandler(_t,Mt)},At.prototype.addOscHandler=function(_t,Mt){return this._parser.addOscHandler(_t,new z.OscHandler(Mt))},At.prototype.bell=function(){this._onRequestBell.fire()},At.prototype.lineFeed=function(){var _t=this._bufferService.buffer;this._dirtyRowService.markDirty(_t.y),this._optionsService.options.convertEol&&(_t.x=0),_t.y++,_t.y===_t.scrollBottom+1?(_t.y--,this._onRequestScroll.fire(this._eraseAttrData())):_t.y>=this._bufferService.rows&&(_t.y=this._bufferService.rows-1),_t.x>=this._bufferService.cols&&_t.x--,this._dirtyRowService.markDirty(_t.y),this._onLineFeed.fire()},At.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},At.prototype.backspace=function(){var _t,Mt=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(Mt.x>0&&Mt.x--);if(this._restrictCursor(this._bufferService.cols),Mt.x>0)Mt.x--;else if(Mt.x===0&&Mt.y>Mt.scrollTop&&Mt.y<=Mt.scrollBottom&&(!((_t=Mt.lines.get(Mt.ybase+Mt.y))===null||_t===void 0)&&_t.isWrapped)){Mt.lines.get(Mt.ybase+Mt.y).isWrapped=!1,Mt.y--,Mt.x=this._bufferService.cols-1;var jt=Mt.lines.get(Mt.ybase+Mt.y);jt.hasWidth(Mt.x)&&!jt.hasContent(Mt.x)&&Mt.x--}this._restrictCursor()},At.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var _t=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-_t)}},At.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},At.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},At.prototype._restrictCursor=function(_t){_t===void 0&&(_t=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(_t,Math.max(0,this._bufferService.buffer.x)),this._bufferService.buffer.y=this._coreService.decPrivateModes.origin?Math.min(this._bufferService.buffer.scrollBottom,Math.max(this._bufferService.buffer.scrollTop,this._bufferService.buffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._bufferService.buffer.y)),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},At.prototype._setCursor=function(_t,Mt){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=_t,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+Mt):(this._bufferService.buffer.x=_t,this._bufferService.buffer.y=Mt),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},At.prototype._moveCursor=function(_t,Mt){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+_t,this._bufferService.buffer.y+Mt)},At.prototype.cursorUp=function(_t){var Mt=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;Mt>=0?this._moveCursor(0,-Math.min(Mt,_t.params[0]||1)):this._moveCursor(0,-(_t.params[0]||1))},At.prototype.cursorDown=function(_t){var Mt=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;Mt>=0?this._moveCursor(0,Math.min(Mt,_t.params[0]||1)):this._moveCursor(0,_t.params[0]||1)},At.prototype.cursorForward=function(_t){this._moveCursor(_t.params[0]||1,0)},At.prototype.cursorBackward=function(_t){this._moveCursor(-(_t.params[0]||1),0)},At.prototype.cursorNextLine=function(_t){this.cursorDown(_t),this._bufferService.buffer.x=0},At.prototype.cursorPrecedingLine=function(_t){this.cursorUp(_t),this._bufferService.buffer.x=0},At.prototype.cursorCharAbsolute=function(_t){this._setCursor((_t.params[0]||1)-1,this._bufferService.buffer.y)},At.prototype.cursorPosition=function(_t){this._setCursor(_t.length>=2?(_t.params[1]||1)-1:0,(_t.params[0]||1)-1)},At.prototype.charPosAbsolute=function(_t){this._setCursor((_t.params[0]||1)-1,this._bufferService.buffer.y)},At.prototype.hPositionRelative=function(_t){this._moveCursor(_t.params[0]||1,0)},At.prototype.linePosAbsolute=function(_t){this._setCursor(this._bufferService.buffer.x,(_t.params[0]||1)-1)},At.prototype.vPositionRelative=function(_t){this._moveCursor(0,_t.params[0]||1)},At.prototype.hVPosition=function(_t){this.cursorPosition(_t)},At.prototype.tabClear=function(_t){var Mt=_t.params[0];Mt===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:Mt===3&&(this._bufferService.buffer.tabs={})},At.prototype.cursorForwardTab=function(_t){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var Mt=_t.params[0]||1;Mt--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},At.prototype.cursorBackwardTab=function(_t){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var Mt=_t.params[0]||1,jt=this._bufferService.buffer;Mt--;)jt.x=jt.prevStop()},At.prototype._eraseInBufferLine=function(_t,Mt,jt,Lt){Lt===void 0&&(Lt=!1);var It=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+_t);It.replaceCells(Mt,jt,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Lt&&(It.isWrapped=!1)},At.prototype._resetBufferLine=function(_t){var Mt=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+_t);Mt.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),Mt.isWrapped=!1},At.prototype.eraseInDisplay=function(_t){var Mt;switch(this._restrictCursor(),_t.params[0]){case 0:for(Mt=this._bufferService.buffer.y,this._dirtyRowService.markDirty(Mt),this._eraseInBufferLine(Mt++,this._bufferService.buffer.x,this._bufferService.cols,this._bufferService.buffer.x===0);Mt=this._bufferService.cols&&(this._bufferService.buffer.lines.get(Mt+1).isWrapped=!1);Mt--;)this._resetBufferLine(Mt);this._dirtyRowService.markDirty(0);break;case 2:for(Mt=this._bufferService.rows,this._dirtyRowService.markDirty(Mt-1);Mt--;)this._resetBufferLine(Mt);this._dirtyRowService.markDirty(0);break;case 3:var jt=this._bufferService.buffer.lines.length-this._bufferService.rows;jt>0&&(this._bufferService.buffer.lines.trimStart(jt),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-jt,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-jt,0),this._onScroll.fire(0))}},At.prototype.eraseInLine=function(_t){switch(this._restrictCursor(),_t.params[0]){case 0:this._eraseInBufferLine(this._bufferService.buffer.y,this._bufferService.buffer.x,this._bufferService.cols);break;case 1:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.buffer.x+1);break;case 2:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.cols)}this._dirtyRowService.markDirty(this._bufferService.buffer.y)},At.prototype.insertLines=function(_t){this._restrictCursor();var Mt=_t.params[0]||1,jt=this._bufferService.buffer;if(!(jt.y>jt.scrollBottom||jt.yjt.scrollBottom||jt.yMt.scrollBottom||Mt.yMt.scrollBottom||Mt.yMt.scrollBottom||Mt.yMt.scrollBottom||Mt.y0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(Ct.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(Ct.C0.ESC+"[?6c"))},At.prototype.sendDeviceAttributesSecondary=function(_t){_t.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(Ct.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(Ct.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(_t.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(Ct.C0.ESC+"[>83;40003;0c"))},At.prototype._is=function(_t){return(this._optionsService.options.termName+"").indexOf(_t)===0},At.prototype.setMode=function(_t){for(var Mt=0;Mt<_t.length;Mt++)switch(_t.params[Mt]){case 4:this._coreService.modes.insertMode=!0}},At.prototype.setModePrivate=function(_t){for(var Mt=0;Mt<_t.length;Mt++)switch(_t.params[Mt]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,St.DEFAULT_CHARSET),this._charsetService.setgCharset(1,St.DEFAULT_CHARSET),this._charsetService.setgCharset(2,St.DEFAULT_CHARSET),this._charsetService.setgCharset(3,St.DEFAULT_CHARSET);break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0;break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}},At.prototype.resetMode=function(_t){for(var Mt=0;Mt<_t.length;Mt++)switch(_t.params[Mt]){case 4:this._coreService.modes.insertMode=!1}},At.prototype.resetModePrivate=function(_t){for(var Mt=0;Mt<_t.length;Mt++)switch(_t.params[Mt]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),_t.params[Mt]===1049&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}},At.prototype._updateAttrColor=function(_t,Mt,jt,Lt,It){return Mt===2?(_t|=50331648,_t&=-16777216,_t|=E.AttributeData.fromColorRGB([jt,Lt,It])):Mt===5&&(_t&=-50331904,_t|=33554432|255&jt),_t},At.prototype._extractColor=function(_t,Mt,jt){var Lt=[0,0,-1,0,0,0],It=0,Ut=0;do{if(Lt[Ut+It]=_t.params[Mt+Ut],_t.hasSubParams(Mt+Ut)){var Xt=_t.getSubParams(Mt+Ut),Gt=0;do Lt[1]===5&&(It=1),Lt[Ut+Gt+1+It]=Xt[Gt];while(++Gt=2||Lt[1]===2&&Ut+It>=5)break;Lt[1]&&(It=1)}while(++Ut+Mt<_t.length&&Ut+It5)&&(_t=1),Mt.extended.underlineStyle=_t,Mt.fg|=268435456,_t===0&&(Mt.fg&=-268435457),Mt.updateExtended()},At.prototype.charAttributes=function(_t){if(_t.length===1&&_t.params[0]===0)return this._curAttrData.fg=dt.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=dt.DEFAULT_ATTR_DATA.bg);for(var Mt,jt=_t.length,Lt=this._curAttrData,It=0;It=30&&Mt<=37?(Lt.fg&=-50331904,Lt.fg|=16777216|Mt-30):Mt>=40&&Mt<=47?(Lt.bg&=-50331904,Lt.bg|=16777216|Mt-40):Mt>=90&&Mt<=97?(Lt.fg&=-50331904,Lt.fg|=16777224|Mt-90):Mt>=100&&Mt<=107?(Lt.bg&=-50331904,Lt.bg|=16777224|Mt-100):Mt===0?(Lt.fg=dt.DEFAULT_ATTR_DATA.fg,Lt.bg=dt.DEFAULT_ATTR_DATA.bg):Mt===1?Lt.fg|=134217728:Mt===3?Lt.bg|=67108864:Mt===4?(Lt.fg|=268435456,this._processUnderline(_t.hasSubParams(It)?_t.getSubParams(It)[0]:1,Lt)):Mt===5?Lt.fg|=536870912:Mt===7?Lt.fg|=67108864:Mt===8?Lt.fg|=1073741824:Mt===2?Lt.bg|=134217728:Mt===21?this._processUnderline(2,Lt):Mt===22?(Lt.fg&=-134217729,Lt.bg&=-134217729):Mt===23?Lt.bg&=-67108865:Mt===24?Lt.fg&=-268435457:Mt===25?Lt.fg&=-536870913:Mt===27?Lt.fg&=-67108865:Mt===28?Lt.fg&=-1073741825:Mt===39?(Lt.fg&=-67108864,Lt.fg|=16777215&dt.DEFAULT_ATTR_DATA.fg):Mt===49?(Lt.bg&=-67108864,Lt.bg|=16777215&dt.DEFAULT_ATTR_DATA.bg):Mt===38||Mt===48||Mt===58?It+=this._extractColor(_t,It,Lt):Mt===59?(Lt.extended=Lt.extended.clone(),Lt.extended.underlineColor=-1,Lt.updateExtended()):Mt===100?(Lt.fg&=-67108864,Lt.fg|=16777215&dt.DEFAULT_ATTR_DATA.fg,Lt.bg&=-67108864,Lt.bg|=16777215&dt.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",Mt)},At.prototype.deviceStatus=function(_t){switch(_t.params[0]){case 5:this._coreService.triggerDataEvent(Ct.C0.ESC+"[0n");break;case 6:var Mt=this._bufferService.buffer.y+1,jt=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(Ct.C0.ESC+"["+Mt+";"+jt+"R")}},At.prototype.deviceStatusPrivate=function(_t){switch(_t.params[0]){case 6:var Mt=this._bufferService.buffer.y+1,jt=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(Ct.C0.ESC+"[?"+Mt+";"+jt+"R")}},At.prototype.softReset=function(_t){this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=dt.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._bufferService.buffer.savedX=0,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1},At.prototype.setCursorStyle=function(_t){var Mt=_t.params[0]||1;switch(Mt){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}var jt=Mt%2==1;this._optionsService.options.cursorBlink=jt},At.prototype.setScrollRegion=function(_t){var Mt,jt=_t.params[0]||1;(_t.length<2||(Mt=_t.params[1])>this._bufferService.rows||Mt===0)&&(Mt=this._bufferService.rows),Mt>jt&&(this._bufferService.buffer.scrollTop=jt-1,this._bufferService.buffer.scrollBottom=Mt-1,this._setCursor(0,0))},At.prototype.windowOptions=function(_t){if(at(_t.params[0],this._optionsService.options.windowOptions)){var Mt=_t.length>1?_t.params[1]:0;switch(_t.params[0]){case 14:Mt!==2&&this._onRequestWindowsOptionsReport.fire(kt.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(kt.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(Ct.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:Mt!==0&&Mt!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),Mt!==0&&Mt!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:Mt!==0&&Mt!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),Mt!==0&&Mt!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},At.prototype.saveCursor=function(_t){this._bufferService.buffer.savedX=this._bufferService.buffer.x,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase+this._bufferService.buffer.y,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset},At.prototype.restoreCursor=function(_t){this._bufferService.buffer.x=this._bufferService.buffer.savedX||0,this._bufferService.buffer.y=Math.max(this._bufferService.buffer.savedY-this._bufferService.buffer.ybase,0),this._curAttrData.fg=this._bufferService.buffer.savedCurAttrData.fg,this._curAttrData.bg=this._bufferService.buffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._bufferService.buffer.savedCharset&&(this._charsetService.charset=this._bufferService.buffer.savedCharset),this._restrictCursor()},At.prototype.setTitle=function(_t){this._windowTitle=_t,this._onTitleChange.fire(_t)},At.prototype.setIconName=function(_t){this._iconName=_t},At.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},At.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},At.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},At.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,St.DEFAULT_CHARSET)},At.prototype.selectCharset=function(_t){_t.length===2?_t[0]!=="/"&&this._charsetService.setgCharset(it[_t[0]],St.CHARSETS[_t[1]]||St.DEFAULT_CHARSET):this.selectDefaultCharset()},At.prototype.index=function(){this._restrictCursor();var _t=this._bufferService.buffer;this._bufferService.buffer.y++,_t.y===_t.scrollBottom+1?(_t.y--,this._onRequestScroll.fire(this._eraseAttrData())):_t.y>=this._bufferService.rows&&(_t.y=this._bufferService.rows-1),this._restrictCursor()},At.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},At.prototype.reverseIndex=function(){this._restrictCursor();var _t=this._bufferService.buffer;if(_t.y===_t.scrollTop){var Mt=_t.scrollBottom-_t.scrollTop;_t.lines.shiftElements(_t.ybase+_t.y,Mt,1),_t.lines.set(_t.ybase+_t.y,_t.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(_t.scrollTop,_t.scrollBottom)}else _t.y--,this._restrictCursor()},At.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},At.prototype.reset=function(){this._curAttrData=dt.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=dt.DEFAULT_ATTR_DATA.clone()},At.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},At.prototype.setgLevel=function(_t){this._charsetService.setgLevel(_t)},At.prototype.screenAlignmentPattern=function(){var _t=new lt.CellData;_t.content=1<<22|69,_t.fg=this._curAttrData.fg,_t.bg=this._curAttrData.bg;var Mt=this._bufferService.buffer;this._setCursor(0,0);for(var jt=0;jt256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(kt),this.length=0,this._subParams=new Int32Array(Ct),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(kt),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return rt.fromArray=function(kt){var Ct=new rt;if(!kt.length)return Ct;for(var St=kt[0]instanceof Array?1:0;St>8,pt=255&this._subParamsIdx[Ct];pt-St>0&&kt.push(Array.prototype.slice.call(this._subParams,St,pt))}return kt},rt.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},rt.prototype.addParam=function(kt){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(kt<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=kt>2147483647?2147483647:kt}},rt.prototype.addSubParam=function(kt){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(kt<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=kt>2147483647?2147483647:kt,this._subParamsIdx[this.length-1]++}},rt.prototype.hasSubParams=function(kt){return(255&this._subParamsIdx[kt])-(this._subParamsIdx[kt]>>8)>0},rt.prototype.getSubParams=function(kt){var Ct=this._subParamsIdx[kt]>>8,St=255&this._subParamsIdx[kt];return St-Ct>0?this._subParams.subarray(Ct,St):null},rt.prototype.getSubParamsAll=function(){for(var kt={},Ct=0;Ct>8,pt=255&this._subParamsIdx[Ct];pt-St>0&&(kt[Ct]=this._subParams.slice(St,pt))}return kt},rt.prototype.addDigit=function(kt){var Ct;if(!(this._rejectDigits||!(Ct=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var St=this._digitIsSub?this._subParams:this.params,pt=St[Ct-1];St[Ct-1]=~pt?Math.min(10*pt+kt,2147483647):kt}},rt}();Rt.Params=ie},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.OscHandler=Rt.OscParser=void 0;var ie=Ft(23),rt=Ft(8),kt=function(){function St(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return St.prototype.addHandler=function(pt,vt){this._handlers[pt]===void 0&&(this._handlers[pt]=[]);var yt=this._handlers[pt];return yt.push(vt),{dispose:function(){var xt=yt.indexOf(vt);xt!==-1&&yt.splice(xt,1)}}},St.prototype.setHandler=function(pt,vt){this._handlers[pt]=[vt]},St.prototype.clearHandler=function(pt){this._handlers[pt]&&delete this._handlers[pt]},St.prototype.setHandlerFallback=function(pt){this._handlerFb=pt},St.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},St.prototype.reset=function(){this._state===2&&this.end(!1),this._id=-1,this._state=0},St.prototype._start=function(){var pt=this._handlers[this._id];if(pt)for(var vt=pt.length-1;vt>=0;vt--)pt[vt].start();else this._handlerFb(this._id,"START")},St.prototype._put=function(pt,vt,yt){var xt=this._handlers[this._id];if(xt)for(var dt=xt.length-1;dt>=0;dt--)xt[dt].put(pt,vt,yt);else this._handlerFb(this._id,"PUT",rt.utf32ToString(pt,vt,yt))},St.prototype._end=function(pt){var vt=this._handlers[this._id];if(vt){for(var yt=vt.length-1;yt>=0&&vt[yt].end(pt)===!1;yt--);for(yt--;yt>=0;yt--)vt[yt].end(!1)}else this._handlerFb(this._id,"END",pt)},St.prototype.start=function(){this.reset(),this._id=-1,this._state=1},St.prototype.put=function(pt,vt,yt){if(this._state!==3){if(this._state===1)for(;vt0&&this._put(pt,vt,yt)}},St.prototype.end=function(pt){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(pt)),this._id=-1,this._state=0)},St}();Rt.OscParser=kt;var Ct=function(){function St(pt){this._handler=pt,this._data="",this._hitLimit=!1}return St.prototype.start=function(){this._data="",this._hitLimit=!1},St.prototype.put=function(pt,vt,yt){this._hitLimit||(this._data+=rt.utf32ToString(pt,vt,yt),this._data.length>ie.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},St.prototype.end=function(pt){var vt;return this._hitLimit?vt=!1:pt&&(vt=this._handler(this._data)),this._data="",this._hitLimit=!1,vt},St}();Rt.OscHandler=Ct},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.PAYLOAD_LIMIT=void 0,Rt.PAYLOAD_LIMIT=1e7},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.DcsHandler=Rt.DcsParser=void 0;var ie=Ft(8),rt=Ft(21),kt=Ft(23),Ct=[],St=function(){function vt(){this._handlers=Object.create(null),this._active=Ct,this._ident=0,this._handlerFb=function(){}}return vt.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},vt.prototype.addHandler=function(yt,xt){this._handlers[yt]===void 0&&(this._handlers[yt]=[]);var dt=this._handlers[yt];return dt.push(xt),{dispose:function(){var ft=dt.indexOf(xt);ft!==-1&&dt.splice(ft,1)}}},vt.prototype.setHandler=function(yt,xt){this._handlers[yt]=[xt]},vt.prototype.clearHandler=function(yt){this._handlers[yt]&&delete this._handlers[yt]},vt.prototype.setHandlerFallback=function(yt){this._handlerFb=yt},vt.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=Ct,this._ident=0},vt.prototype.hook=function(yt,xt){if(this.reset(),this._ident=yt,this._active=this._handlers[yt]||Ct,this._active.length)for(var dt=this._active.length-1;dt>=0;dt--)this._active[dt].hook(xt);else this._handlerFb(this._ident,"HOOK",xt)},vt.prototype.put=function(yt,xt,dt){if(this._active.length)for(var ft=this._active.length-1;ft>=0;ft--)this._active[ft].put(yt,xt,dt);else this._handlerFb(this._ident,"PUT",ie.utf32ToString(yt,xt,dt))},vt.prototype.unhook=function(yt){if(this._active.length){for(var xt=this._active.length-1;xt>=0&&this._active[xt].unhook(yt)===!1;xt--);for(xt--;xt>=0;xt--)this._active[xt].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",yt);this._active=Ct,this._ident=0},vt}();Rt.DcsParser=St;var pt=function(){function vt(yt){this._handler=yt,this._data="",this._hitLimit=!1}return vt.prototype.hook=function(yt){this._params=yt.clone(),this._data="",this._hitLimit=!1},vt.prototype.put=function(yt,xt,dt){this._hitLimit||(this._data+=ie.utf32ToString(yt,xt,dt),this._data.length>kt.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},vt.prototype.unhook=function(yt){var xt;return this._hitLimit?xt=!1:yt&&(xt=this._handler(this._data,this._params||new rt.Params)),this._params=void 0,this._data="",this._hitLimit=!1,xt},vt}();Rt.DcsHandler=pt},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.removeTerminalFromCache=Rt.acquireCharAtlas=void 0;var ie=Ft(26),rt=Ft(43),kt=[];Rt.acquireCharAtlas=function(Ct,St,pt,vt,yt){for(var xt=ie.generateConfig(vt,yt,Ct,pt),dt=0;dt=0){if(ie.configEquals(ct.config,xt))return ct.atlas;ct.ownedBy.length===1?(ct.atlas.dispose(),kt.splice(dt,1)):ct.ownedBy.splice(ft,1);break}}for(dt=0;dt1)for(var ut=this._getJoinedRanges(ct,z,E,dt,lt),wt=0;wt1)for(ut=this._getJoinedRanges(ct,z,E,dt,lt),wt=0;wt=this._line.length))return E?(this._line.loadCell(lt,E),E):this._line.loadCell(lt,new ie.CellData)},ct.prototype.translateToString=function(lt,E,z){return this._line.translateToString(lt,E,z)},ct}(),dt=function(){function ct(lt){this._core=lt}return ct.prototype.registerCsiHandler=function(lt,E){return this._core.addCsiHandler(lt,function(z){return E(z.toArray())})},ct.prototype.addCsiHandler=function(lt,E){return this.registerCsiHandler(lt,E)},ct.prototype.registerDcsHandler=function(lt,E){return this._core.addDcsHandler(lt,function(z,ot){return E(z,ot.toArray())})},ct.prototype.addDcsHandler=function(lt,E){return this.registerDcsHandler(lt,E)},ct.prototype.registerEscHandler=function(lt,E){return this._core.addEscHandler(lt,E)},ct.prototype.addEscHandler=function(lt,E){return this.registerEscHandler(lt,E)},ct.prototype.registerOscHandler=function(lt,E){return this._core.addOscHandler(lt,E)},ct.prototype.addOscHandler=function(lt,E){return this.registerOscHandler(lt,E)},ct}(),ft=function(){function ct(lt){this._core=lt}return ct.prototype.register=function(lt){this._core.unicodeService.register(lt)},Object.defineProperty(ct.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(lt){this._core.unicodeService.activeVersion=lt},enumerable:!1,configurable:!0}),ct}()},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(Vt,Ht){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ne,se){ne.__proto__=se}||function(ne,se){for(var ve in se)se.hasOwnProperty(ve)&&(ne[ve]=se[ve])})(Vt,Ht)},function(Vt,Ht){function ne(){this.constructor=Vt}ie(Vt,Ht),Vt.prototype=Ht===null?Object.create(Ht):(ne.prototype=Ht.prototype,new ne)});Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.Terminal=void 0;var kt=Ft(36),Ct=Ft(37),St=Ft(38),pt=Ft(12),vt=Ft(19),yt=Ft(40),xt=Ft(50),dt=Ft(51),ft=Ft(11),ct=Ft(7),lt=Ft(18),E=Ft(54),z=Ft(55),ot=Ft(56),it=Ft(57),at=Ft(59),ut=Ft(0),wt=Ft(16),Et=Ft(27),At=Ft(60),_t=Ft(5),Mt=Ft(61),jt=Ft(62),Lt=Ft(63),It=Ft(64),Ut=Ft(65),Xt=typeof window!="undefined"?window.document:null,Gt=function(Vt){function Ht(ne){ne===void 0&&(ne={});var se=Vt.call(this,ne)||this;return se.browser=ft,se._keyDownHandled=!1,se._onCursorMove=new ut.EventEmitter,se._onKey=new ut.EventEmitter,se._onRender=new ut.EventEmitter,se._onSelectionChange=new ut.EventEmitter,se._onTitleChange=new ut.EventEmitter,se._onFocus=new ut.EventEmitter,se._onBlur=new ut.EventEmitter,se._onA11yCharEmitter=new ut.EventEmitter,se._onA11yTabEmitter=new ut.EventEmitter,se._setup(),se.linkifier=se._instantiationService.createInstance(xt.Linkifier),se.linkifier2=se.register(se._instantiationService.createInstance(Lt.Linkifier2)),se.register(se._inputHandler.onRequestBell(function(){return se.bell()})),se.register(se._inputHandler.onRequestRefreshRows(function(ve,Kt){return se.refresh(ve,Kt)})),se.register(se._inputHandler.onRequestReset(function(){return se.reset()})),se.register(se._inputHandler.onRequestScroll(function(ve,Kt){return se.scroll(ve,Kt||void 0)})),se.register(se._inputHandler.onRequestWindowsOptionsReport(function(ve){return se._reportWindowsOptions(ve)})),se.register(ut.forwardEvent(se._inputHandler.onCursorMove,se._onCursorMove)),se.register(ut.forwardEvent(se._inputHandler.onTitleChange,se._onTitleChange)),se.register(ut.forwardEvent(se._inputHandler.onA11yChar,se._onA11yCharEmitter)),se.register(ut.forwardEvent(se._inputHandler.onA11yTab,se._onA11yTabEmitter)),se.register(se._bufferService.onResize(function(ve){return se._afterResize(ve.cols,ve.rows)})),se}return rt(Ht,Vt),Object.defineProperty(Ht.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),Ht.prototype.dispose=function(){var ne,se,ve;this._isDisposed||(Vt.prototype.dispose.call(this),(ne=this._renderService)===null||ne===void 0||ne.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(ve=(se=this.element)===null||se===void 0?void 0:se.parentNode)===null||ve===void 0||ve.removeChild(this.element))},Ht.prototype._setup=function(){Vt.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(Ht.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),Ht.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},Ht.prototype._updateOptions=function(ne){var se,ve,Kt,re;switch(Vt.prototype._updateOptions.call(this,ne),ne){case"fontFamily":case"fontSize":(se=this._renderService)===null||se===void 0||se.clear(),(ve=this._charSizeService)===null||ve===void 0||ve.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":this._renderService&&(this._renderService.clear(),this._renderService.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));break;case"rendererType":this._renderService&&(this._renderService.setRenderer(this._createRenderer()),this._renderService.onResize(this.cols,this.rows));break;case"scrollback":(Kt=this.viewport)===null||Kt===void 0||Kt.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new ot.AccessibilityManager(this,this._renderService)):((re=this._accessibilityManager)===null||re===void 0||re.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},Ht.prototype._onTextAreaFocus=function(ne){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(pt.C0.ESC+"[I"),this.updateCursorStyle(ne),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},Ht.prototype.blur=function(){var ne;return(ne=this.textarea)===null||ne===void 0?void 0:ne.blur()},Ht.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(pt.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},Ht.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var ne=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),se=this._bufferService.buffer.y*ne,ve=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=ve+"px",this.textarea.style.top=se+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=ne+"px",this.textarea.style.lineHeight=ne+"px",this.textarea.style.zIndex="-5"}},Ht.prototype._initGlobal=function(){var ne=this;this._bindKeys(),this.register(ct.addDisposableDomListener(this.element,"copy",function(ve){ne.hasSelection()&&St.copyHandler(ve,ne._selectionService)}));var se=function(ve){return St.handlePasteEvent(ve,ne.textarea,ne._coreService)};this.register(ct.addDisposableDomListener(this.textarea,"paste",se)),this.register(ct.addDisposableDomListener(this.element,"paste",se)),ft.isFirefox?this.register(ct.addDisposableDomListener(this.element,"mousedown",function(ve){ve.button===2&&St.rightClickHandler(ve,ne.textarea,ne.screenElement,ne._selectionService,ne.options.rightClickSelectsWord)})):this.register(ct.addDisposableDomListener(this.element,"contextmenu",function(ve){St.rightClickHandler(ve,ne.textarea,ne.screenElement,ne._selectionService,ne.options.rightClickSelectsWord)})),ft.isLinux&&this.register(ct.addDisposableDomListener(this.element,"auxclick",function(ve){ve.button===1&&St.moveTextAreaUnderMouseCursor(ve,ne.textarea,ne.screenElement)}))},Ht.prototype._bindKeys=function(){var ne=this;this.register(ct.addDisposableDomListener(this.textarea,"keyup",function(se){return ne._keyUp(se)},!0)),this.register(ct.addDisposableDomListener(this.textarea,"keydown",function(se){return ne._keyDown(se)},!0)),this.register(ct.addDisposableDomListener(this.textarea,"keypress",function(se){return ne._keyPress(se)},!0)),this.register(ct.addDisposableDomListener(this.textarea,"compositionstart",function(){return ne._compositionHelper.compositionstart()})),this.register(ct.addDisposableDomListener(this.textarea,"compositionupdate",function(se){return ne._compositionHelper.compositionupdate(se)})),this.register(ct.addDisposableDomListener(this.textarea,"compositionend",function(){return ne._compositionHelper.compositionend()})),this.register(this.onRender(function(){return ne._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(se){return ne._queueLinkification(se.start,se.end)}))},Ht.prototype.open=function(ne){var se=this;if(!ne)throw new Error("Terminal requires a parent element.");Xt.body.contains(ne)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=ne.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),ne.appendChild(this.element);var ve=Xt.createDocumentFragment();this._viewportElement=Xt.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),ve.appendChild(this._viewportElement),this._viewportScrollArea=Xt.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=Xt.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=Xt.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),ve.appendChild(this.screenElement),this.textarea=Xt.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",lt.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register(ct.addDisposableDomListener(this.textarea,"focus",function(we){return se._onTextAreaFocus(we)})),this.register(ct.addDisposableDomListener(this.textarea,"blur",function(){return se._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var Kt=this._instantiationService.createInstance(It.CoreBrowserService,this.textarea);this._instantiationService.setService(_t.ICoreBrowserService,Kt),this._charSizeService=this._instantiationService.createInstance(Mt.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(_t.ICharSizeService,this._charSizeService),this._compositionView=Xt.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(kt.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(ve),this._theme=this.options.theme||this._theme,this._colorManager=new Et.ColorManager(Xt,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(we){return se._colorManager.onOptionsChange(we)})),this._colorManager.setTheme(this._theme);var re=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(At.RenderService,re,this.rows,this.screenElement)),this._instantiationService.setService(_t.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(we){return se._onRender.fire(we)})),this.onResize(function(we){return se._renderService.resize(we.cols,we.rows)}),this._soundService=this._instantiationService.createInstance(E.SoundService),this._instantiationService.setService(_t.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(jt.MouseService),this._instantiationService.setService(_t.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(Ct.Viewport,function(we,ke){return se.scrollLines(we,ke)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return se.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){se._renderService.onCursorMove(),se._syncTextArea()})),this.register(this.onResize(function(){return se._renderService.onResize(se.cols,se.rows)})),this.register(this.onBlur(function(){return se._renderService.onBlur()})),this.register(this.onFocus(function(){return se._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return se.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(dt.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(_t.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(we){return se.scrollLines(we.amount,we.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return se._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(we){return se._renderService.onSelectionChanged(we.start,we.end,we.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(we){se.textarea.value=we,se.textarea.focus(),se.textarea.select()})),this.register(this.onScroll(function(){se.viewport.syncScrollArea(),se._selectionService.refresh()})),this.register(ct.addDisposableDomListener(this._viewportElement,"scroll",function(){return se._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(z.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return se._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(ct.addDisposableDomListener(this.element,"mousedown",function(we){return se._selectionService.onMouseDown(we)})),this._coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new ot.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},Ht.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(yt.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(it.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},Ht.prototype._setTheme=function(ne){var se,ve,Kt;this._theme=ne,(se=this._colorManager)===null||se===void 0||se.setTheme(ne),(ve=this._renderService)===null||ve===void 0||ve.setColors(this._colorManager.colors),(Kt=this.viewport)===null||Kt===void 0||Kt.onThemeChange(this._colorManager.colors)},Ht.prototype.bindMouse=function(){var ne=this,se=this,ve=this.element;function Kt(fe){var de,_e,Oe=se._mouseService.getRawByteCoords(fe,se.screenElement,se.cols,se.rows);if(!Oe)return!1;switch(fe.overrideType||fe.type){case"mousemove":_e=32,fe.buttons===void 0?(de=3,fe.button!==void 0&&(de=fe.button<3?fe.button:3)):de=1&fe.buttons?0:4&fe.buttons?1:2&fe.buttons?2:3;break;case"mouseup":_e=0,de=fe.button<3?fe.button:3;break;case"mousedown":_e=1,de=fe.button<3?fe.button:3;break;case"wheel":fe.deltaY!==0&&(_e=fe.deltaY<0?0:1),de=4;break;default:return!1}return!(_e===void 0||de===void 0||de>4)&&se._coreMouseService.triggerMouseEvent({col:Oe.x-33,row:Oe.y-33,button:de,action:_e,ctrl:fe.ctrlKey,alt:fe.altKey,shift:fe.shiftKey})}var re={mouseup:null,wheel:null,mousedrag:null,mousemove:null},we=function(fe){return Kt(fe),fe.buttons||(ne._document.removeEventListener("mouseup",re.mouseup),re.mousedrag&&ne._document.removeEventListener("mousemove",re.mousedrag)),ne.cancel(fe)},ke=function(fe){return Kt(fe),fe.preventDefault(),ne.cancel(fe)},Me=function(fe){fe.buttons&&Kt(fe)},ge=function(fe){fe.buttons||Kt(fe)};this.register(this._coreMouseService.onProtocolChange(function(fe){fe?(ne.optionsService.options.logLevel==="debug"&&ne._logService.debug("Binding to mouse events:",ne._coreMouseService.explainEvents(fe)),ne.element.classList.add("enable-mouse-events"),ne._selectionService.disable()):(ne._logService.debug("Unbinding from mouse events."),ne.element.classList.remove("enable-mouse-events"),ne._selectionService.enable()),8&fe?re.mousemove||(ve.addEventListener("mousemove",ge),re.mousemove=ge):(ve.removeEventListener("mousemove",re.mousemove),re.mousemove=null),16&fe?re.wheel||(ve.addEventListener("wheel",ke,{passive:!1}),re.wheel=ke):(ve.removeEventListener("wheel",re.wheel),re.wheel=null),2&fe?re.mouseup||(re.mouseup=we):(ne._document.removeEventListener("mouseup",re.mouseup),re.mouseup=null),4&fe?re.mousedrag||(re.mousedrag=Me):(ne._document.removeEventListener("mousemove",re.mousedrag),re.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(ct.addDisposableDomListener(ve,"mousedown",function(fe){if(fe.preventDefault(),ne.focus(),ne._coreMouseService.areMouseEventsActive&&!ne._selectionService.shouldForceSelection(fe))return Kt(fe),re.mouseup&&ne._document.addEventListener("mouseup",re.mouseup),re.mousedrag&&ne._document.addEventListener("mousemove",re.mousedrag),ne.cancel(fe)})),this.register(ct.addDisposableDomListener(ve,"wheel",function(fe){if(!re.wheel){if(!ne.buffer.hasScrollback){var de=ne.viewport.getLinesScrolled(fe);if(de===0)return;for(var _e=pt.C0.ESC+(ne._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(fe.deltaY<0?"A":"B"),Oe="",He=0;He47)},Ht.prototype._keyUp=function(ne){this._customKeyEventHandler&&this._customKeyEventHandler(ne)===!1||(function(se){return se.keyCode===16||se.keyCode===17||se.keyCode===18}(ne)||this.focus(),this.updateCursorStyle(ne))},Ht.prototype._keyPress=function(ne){var se;if(this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(ne)===!1)return!1;if(this.cancel(ne),ne.charCode)se=ne.charCode;else if(ne.which===null||ne.which===void 0)se=ne.keyCode;else{if(ne.which===0||ne.charCode===0)return!1;se=ne.which}return!(!se||(ne.altKey||ne.ctrlKey||ne.metaKey)&&!this._isThirdLevelShift(this.browser,ne))&&(se=String.fromCharCode(se),this._onKey.fire({key:se,domEvent:ne}),this._showCursor(),this._coreService.triggerDataEvent(se,!0),!0)},Ht.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},Ht.prototype.resize=function(ne,se){ne!==this.cols||se!==this.rows?Vt.prototype.resize.call(this,ne,se):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},Ht.prototype._afterResize=function(ne,se){var ve,Kt;(ve=this._charSizeService)===null||ve===void 0||ve.measure(),(Kt=this.viewport)===null||Kt===void 0||Kt.syncScrollArea(!0)},Ht.prototype.clear=function(){if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var ne=1;ne=0;lt--)(dt=pt[lt])&&(ct=(ft<3?dt(ct):ft>3?dt(vt,yt,ct):dt(vt,yt))||ct);return ft>3&&ct&&Object.defineProperty(vt,yt,ct),ct},rt=this&&this.__param||function(pt,vt){return function(yt,xt){vt(yt,xt,pt)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.CompositionHelper=void 0;var kt=Ft(5),Ct=Ft(1),St=function(){function pt(vt,yt,xt,dt,ft,ct){this._textarea=vt,this._compositionView=yt,this._bufferService=xt,this._optionsService=dt,this._charSizeService=ft,this._coreService=ct,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(pt.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),pt.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},pt.prototype.compositionupdate=function(vt){var yt=this;this._compositionView.textContent=vt.data,this.updateCompositionElements(),setTimeout(function(){yt._compositionPosition.end=yt._textarea.value.length},0)},pt.prototype.compositionend=function(){this._finalizeComposition(!0)},pt.prototype.keydown=function(vt){if(this._isComposing||this._isSendingComposition){if(vt.keyCode===229||vt.keyCode===16||vt.keyCode===17||vt.keyCode===18)return!1;this._finalizeComposition(!1)}return vt.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},pt.prototype._finalizeComposition=function(vt){var yt=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,vt){var xt={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(yt._isSendingComposition){yt._isSendingComposition=!1;var ft=void 0;ft=yt._isComposing?yt._textarea.value.substring(xt.start,xt.end):yt._textarea.value.substring(xt.start),yt._coreService.triggerDataEvent(ft,!0)}},0)}else{this._isSendingComposition=!1;var dt=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(dt,!0)}},pt.prototype._handleAnyTextareaChanges=function(){var vt=this,yt=this._textarea.value;setTimeout(function(){if(!vt._isComposing){var xt=vt._textarea.value.replace(yt,"");xt.length>0&&vt._coreService.triggerDataEvent(xt,!0)}},0)},pt.prototype.updateCompositionElements=function(vt){var yt=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var xt=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),dt=this._bufferService.buffer.y*xt,ft=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=ft+"px",this._compositionView.style.top=dt+"px",this._compositionView.style.height=xt+"px",this._compositionView.style.lineHeight=xt+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var ct=this._compositionView.getBoundingClientRect();this._textarea.style.left=ft+"px",this._textarea.style.top=dt+"px",this._textarea.style.width=ct.width+"px",this._textarea.style.height=ct.height+"px",this._textarea.style.lineHeight=ct.height+"px"}vt||setTimeout(function(){return yt.updateCompositionElements(!0)},0)}},pt=ie([rt(2,Ct.IBufferService),rt(3,Ct.IOptionsService),rt(4,kt.ICharSizeService),rt(5,Ct.ICoreService)],pt)}();Rt.CompositionHelper=St},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(dt,ft){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ct,lt){ct.__proto__=lt}||function(ct,lt){for(var E in lt)lt.hasOwnProperty(E)&&(ct[E]=lt[E])})(dt,ft)},function(dt,ft){function ct(){this.constructor=dt}ie(dt,ft),dt.prototype=ft===null?Object.create(ft):(ct.prototype=ft.prototype,new ct)}),kt=this&&this.__decorate||function(dt,ft,ct,lt){var E,z=arguments.length,ot=z<3?ft:lt===null?lt=Object.getOwnPropertyDescriptor(ft,ct):lt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ot=Reflect.decorate(dt,ft,ct,lt);else for(var it=dt.length-1;it>=0;it--)(E=dt[it])&&(ot=(z<3?E(ot):z>3?E(ft,ct,ot):E(ft,ct))||ot);return z>3&&ot&&Object.defineProperty(ft,ct,ot),ot},Ct=this&&this.__param||function(dt,ft){return function(ct,lt){ft(ct,lt,dt)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.Viewport=void 0;var St=Ft(2),pt=Ft(7),vt=Ft(5),yt=Ft(1),xt=function(dt){function ft(ct,lt,E,z,ot,it,at){var ut=dt.call(this)||this;return ut._scrollLines=ct,ut._viewportElement=lt,ut._scrollArea=E,ut._bufferService=z,ut._optionsService=ot,ut._charSizeService=it,ut._renderService=at,ut.scrollBarWidth=0,ut._currentRowHeight=0,ut._lastRecordedBufferLength=0,ut._lastRecordedViewportHeight=0,ut._lastRecordedBufferHeight=0,ut._lastTouchY=0,ut._lastScrollTop=0,ut._wheelPartialScroll=0,ut._refreshAnimationFrame=null,ut._ignoreNextScrollEvent=!1,ut.scrollBarWidth=ut._viewportElement.offsetWidth-ut._scrollArea.offsetWidth||15,ut.register(pt.addDisposableDomListener(ut._viewportElement,"scroll",ut._onScroll.bind(ut))),setTimeout(function(){return ut.syncScrollArea()},0),ut}return rt(ft,dt),ft.prototype.onThemeChange=function(ct){this._viewportElement.style.backgroundColor=ct.background.css},ft.prototype._refresh=function(ct){var lt=this;if(ct)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return lt._innerRefresh()}))},ft.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var ct=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==ct&&(this._lastRecordedBufferHeight=ct,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var lt=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==lt&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=lt),this._refreshAnimationFrame=null},ft.prototype.syncScrollArea=function(ct){if(ct===void 0&&(ct=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(ct);if(this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight){var lt=this._bufferService.buffer.ydisp*this._currentRowHeight;this._lastScrollTop===lt&&this._lastScrollTop===this._viewportElement.scrollTop&&this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh(ct)}else this._refresh(ct)},ft.prototype._onScroll=function(ct){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var lt=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(lt,!0)}},ft.prototype._bubbleScroll=function(ct,lt){var E=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(lt<0&&this._viewportElement.scrollTop!==0||lt>0&&E0?1:-1),this._wheelPartialScroll%=1):ct.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(lt*=this._bufferService.rows),lt},ft.prototype._applyScrollModifier=function(ct,lt){var E=this._optionsService.options.fastScrollModifier;return E==="alt"&<.altKey||E==="ctrl"&<.ctrlKey||E==="shift"&<.shiftKey?ct*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:ct*this._optionsService.options.scrollSensitivity},ft.prototype.onTouchStart=function(ct){this._lastTouchY=ct.touches[0].pageY},ft.prototype.onTouchMove=function(ct){var lt=this._lastTouchY-ct.touches[0].pageY;return this._lastTouchY=ct.touches[0].pageY,lt!==0&&(this._viewportElement.scrollTop+=lt,this._bubbleScroll(ct,lt))},ft=kt([Ct(3,yt.IBufferService),Ct(4,yt.IOptionsService),Ct(5,vt.ICharSizeService),Ct(6,vt.IRenderService)],ft)}(St.Disposable);Rt.Viewport=xt},function(Ke,Rt,Ft){"use strict";function ie(St){return St.replace(/\r?\n/g,"\r")}function rt(St,pt){return pt?"\x1B[200~"+St+"\x1B[201~":St}function kt(St,pt,vt){St=rt(St=ie(St),vt.decPrivateModes.bracketedPasteMode),vt.triggerDataEvent(St,!0),pt.value=""}function Ct(St,pt,vt){var yt=vt.getBoundingClientRect(),xt=St.clientX-yt.left-10,dt=St.clientY-yt.top-10;pt.style.width="20px",pt.style.height="20px",pt.style.left=xt+"px",pt.style.top=dt+"px",pt.style.zIndex="1000",pt.focus()}Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.rightClickHandler=Rt.moveTextAreaUnderMouseCursor=Rt.paste=Rt.handlePasteEvent=Rt.copyHandler=Rt.bracketTextForPaste=Rt.prepareTextForTerminal=void 0,Rt.prepareTextForTerminal=ie,Rt.bracketTextForPaste=rt,Rt.copyHandler=function(St,pt){St.clipboardData&&St.clipboardData.setData("text/plain",pt.selectionText),St.preventDefault()},Rt.handlePasteEvent=function(St,pt,vt){St.stopPropagation(),St.clipboardData&&kt(St.clipboardData.getData("text/plain"),pt,vt)},Rt.paste=kt,Rt.moveTextAreaUnderMouseCursor=Ct,Rt.rightClickHandler=function(St,pt,vt,yt,xt){Ct(St,pt,vt),xt&&!yt.isClickInSelection(St)&&yt.selectWordAtCursor(St),pt.value=yt.selectionText,pt.select()}},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(dt,ft){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ct,lt){ct.__proto__=lt}||function(ct,lt){for(var E in lt)lt.hasOwnProperty(E)&&(ct[E]=lt[E])})(dt,ft)},function(dt,ft){function ct(){this.constructor=dt}ie(dt,ft),dt.prototype=ft===null?Object.create(ft):(ct.prototype=ft.prototype,new ct)});Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.EscapeSequenceParser=Rt.VT500_TRANSITION_TABLE=Rt.TransitionTable=void 0;var kt=Ft(2),Ct=Ft(15),St=Ft(21),pt=Ft(22),vt=Ft(24),yt=function(){function dt(ft){this.table=new Uint8Array(ft)}return dt.prototype.setDefault=function(ft,ct){Ct.fill(this.table,ft<<4|ct)},dt.prototype.add=function(ft,ct,lt,E){this.table[ct<<8|ft]=lt<<4|E},dt.prototype.addMany=function(ft,ct,lt,E){for(var z=0;z1)throw new Error("only one byte as prefix supported");if((E=ct.prefix.charCodeAt(0))&&60>E||E>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(ct.intermediates){if(ct.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var z=0;zot||ot>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");E<<=8,E|=ot}}if(ct.final.length!==1)throw new Error("final must be a single byte");var it=ct.final.charCodeAt(0);if(lt[0]>it||it>lt[1])throw new Error("final must be in range "+lt[0]+" .. "+lt[1]);return E<<=8,E|=it},ft.prototype.identToString=function(ct){for(var lt=[];ct;)lt.push(String.fromCharCode(255&ct)),ct>>=8;return lt.reverse().join("")},ft.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},ft.prototype.setPrintHandler=function(ct){this._printHandler=ct},ft.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},ft.prototype.addEscHandler=function(ct,lt){var E=this._identifier(ct,[48,126]);this._escHandlers[E]===void 0&&(this._escHandlers[E]=[]);var z=this._escHandlers[E];return z.push(lt),{dispose:function(){var ot=z.indexOf(lt);ot!==-1&&z.splice(ot,1)}}},ft.prototype.setEscHandler=function(ct,lt){this._escHandlers[this._identifier(ct,[48,126])]=[lt]},ft.prototype.clearEscHandler=function(ct){this._escHandlers[this._identifier(ct,[48,126])]&&delete this._escHandlers[this._identifier(ct,[48,126])]},ft.prototype.setEscHandlerFallback=function(ct){this._escHandlerFb=ct},ft.prototype.setExecuteHandler=function(ct,lt){this._executeHandlers[ct.charCodeAt(0)]=lt},ft.prototype.clearExecuteHandler=function(ct){this._executeHandlers[ct.charCodeAt(0)]&&delete this._executeHandlers[ct.charCodeAt(0)]},ft.prototype.setExecuteHandlerFallback=function(ct){this._executeHandlerFb=ct},ft.prototype.addCsiHandler=function(ct,lt){var E=this._identifier(ct);this._csiHandlers[E]===void 0&&(this._csiHandlers[E]=[]);var z=this._csiHandlers[E];return z.push(lt),{dispose:function(){var ot=z.indexOf(lt);ot!==-1&&z.splice(ot,1)}}},ft.prototype.setCsiHandler=function(ct,lt){this._csiHandlers[this._identifier(ct)]=[lt]},ft.prototype.clearCsiHandler=function(ct){this._csiHandlers[this._identifier(ct)]&&delete this._csiHandlers[this._identifier(ct)]},ft.prototype.setCsiHandlerFallback=function(ct){this._csiHandlerFb=ct},ft.prototype.addDcsHandler=function(ct,lt){return this._dcsParser.addHandler(this._identifier(ct),lt)},ft.prototype.setDcsHandler=function(ct,lt){this._dcsParser.setHandler(this._identifier(ct),lt)},ft.prototype.clearDcsHandler=function(ct){this._dcsParser.clearHandler(this._identifier(ct))},ft.prototype.setDcsHandlerFallback=function(ct){this._dcsParser.setHandlerFallback(ct)},ft.prototype.addOscHandler=function(ct,lt){return this._oscParser.addHandler(ct,lt)},ft.prototype.setOscHandler=function(ct,lt){this._oscParser.setHandler(ct,lt)},ft.prototype.clearOscHandler=function(ct){this._oscParser.clearHandler(ct)},ft.prototype.setOscHandlerFallback=function(ct){this._oscParser.setHandlerFallback(ct)},ft.prototype.setErrorHandler=function(ct){this._errorHandler=ct},ft.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},ft.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0},ft.prototype.parse=function(ct,lt){for(var E=0,z=0,ot=this.currentState,it=this._oscParser,at=this._dcsParser,ut=this._collect,wt=this._params,Et=this._transitions.table,At=0;At>4){case 2:for(var _t=At+1;;++_t){if(_t>=lt||(E=ct[_t])<32||E>126&&E<160){this._printHandler(ct,At,_t),At=_t-1;break}if(++_t>=lt||(E=ct[_t])<32||E>126&&E<160){this._printHandler(ct,At,_t),At=_t-1;break}if(++_t>=lt||(E=ct[_t])<32||E>126&&E<160){this._printHandler(ct,At,_t),At=_t-1;break}if(++_t>=lt||(E=ct[_t])<32||E>126&&E<160){this._printHandler(ct,At,_t),At=_t-1;break}}break;case 3:this._executeHandlers[E]?this._executeHandlers[E]():this._executeHandlerFb(E),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:At,code:E,currentState:ot,collect:ut,params:wt,abort:!1}).abort)return;break;case 7:for(var Mt=this._csiHandlers[ut<<8|E],jt=Mt?Mt.length-1:-1;jt>=0&&Mt[jt](wt)===!1;jt--);jt<0&&this._csiHandlerFb(ut<<8|E,wt),this.precedingCodepoint=0;break;case 8:do switch(E){case 59:wt.addParam(0);break;case 58:wt.addSubParam(-1);break;default:wt.addDigit(E-48)}while(++At47&&E<60);At--;break;case 9:ut<<=8,ut|=E;break;case 10:for(var Lt=this._escHandlers[ut<<8|E],It=Lt?Lt.length-1:-1;It>=0&&Lt[It]()===!1;It--);It<0&&this._escHandlerFb(ut<<8|E),this.precedingCodepoint=0;break;case 11:wt.reset(),wt.addParam(0),ut=0;break;case 12:at.hook(ut<<8|E,wt);break;case 13:for(var Ut=At+1;;++Ut)if(Ut>=lt||(E=ct[Ut])===24||E===26||E===27||E>127&&E<160){at.put(ct,At,Ut),At=Ut-1;break}break;case 14:at.unhook(E!==24&&E!==26),E===27&&(z|=1),wt.reset(),wt.addParam(0),ut=0,this.precedingCodepoint=0;break;case 4:it.start();break;case 5:for(var Xt=At+1;;Xt++)if(Xt>=lt||(E=ct[Xt])<32||E>127&&E<=159){it.put(ct,At,Xt),At=Xt-1;break}break;case 6:it.end(E!==24&&E!==26),E===27&&(z|=1),wt.reset(),wt.addParam(0),ut=0,this.precedingCodepoint=0}ot=15&z}this._collect=ut,this.currentState=ot},ft}(kt.Disposable);Rt.EscapeSequenceParser=xt},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(it,at){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ut,wt){ut.__proto__=wt}||function(ut,wt){for(var Et in wt)wt.hasOwnProperty(Et)&&(ut[Et]=wt[Et])})(it,at)},function(it,at){function ut(){this.constructor=it}ie(it,at),it.prototype=at===null?Object.create(at):(ut.prototype=at.prototype,new ut)}),kt=this&&this.__decorate||function(it,at,ut,wt){var Et,At=arguments.length,_t=At<3?at:wt===null?wt=Object.getOwnPropertyDescriptor(at,ut):wt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_t=Reflect.decorate(it,at,ut,wt);else for(var Mt=it.length-1;Mt>=0;Mt--)(Et=it[Mt])&&(_t=(At<3?Et(_t):At>3?Et(at,ut,_t):Et(at,ut))||_t);return At>3&&_t&&Object.defineProperty(at,ut,_t),_t},Ct=this&&this.__param||function(it,at){return function(ut,wt){at(ut,wt,it)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.Renderer=void 0;var St=Ft(41),pt=Ft(47),vt=Ft(48),yt=Ft(49),xt=Ft(29),dt=Ft(2),ft=Ft(5),ct=Ft(1),lt=Ft(25),E=Ft(0),z=1,ot=function(it){function at(ut,wt,Et,At,_t,Mt,jt,Lt,It){var Ut=it.call(this)||this;Ut._colors=ut,Ut._screenElement=wt,Ut._bufferService=_t,Ut._charSizeService=Mt,Ut._optionsService=jt,Ut._id=z++,Ut._onRequestRedraw=new E.EventEmitter;var Xt=Ut._optionsService.options.allowTransparency;return Ut._characterJoinerRegistry=new xt.CharacterJoinerRegistry(Ut._bufferService),Ut._renderLayers=[new St.TextRenderLayer(Ut._screenElement,0,Ut._colors,Ut._characterJoinerRegistry,Xt,Ut._id,Ut._bufferService,jt),new pt.SelectionRenderLayer(Ut._screenElement,1,Ut._colors,Ut._id,Ut._bufferService,jt),new yt.LinkRenderLayer(Ut._screenElement,2,Ut._colors,Ut._id,Et,At,Ut._bufferService,jt),new vt.CursorRenderLayer(Ut._screenElement,3,Ut._colors,Ut._id,Ut._onRequestRedraw,Ut._bufferService,jt,Lt,It)],Ut.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},Ut._devicePixelRatio=window.devicePixelRatio,Ut._updateDimensions(),Ut.onOptionsChanged(),Ut}return rt(at,it),Object.defineProperty(at.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),at.prototype.dispose=function(){for(var ut=0,wt=this._renderLayers;ut0&&wt===ut[0][0]){At=!0;var Mt=ut.shift();Et=new vt.JoinedCellData(this._workCell,at.translateToString(!0,Mt[0],Mt[1]),Mt[1]-Mt[0]),_t=Mt[1]-1}!At&&this._isOverlapping(Et)&&_tthis._characterWidth;return this._ctx.restore(),this._characterOverlapCache[lt]=E,E},ft}(Ct.BaseRenderLayer);Rt.TextRenderLayer=xt},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.GridCache=void 0;var ie=function(){function rt(){this.cache=[]}return rt.prototype.resize=function(kt,Ct){for(var St=0;St>>24,Gt=It.rgba>>>16&255,Vt=It.rgba>>>8&255,Ht=0;Ht=this.capacity)St=this._head,this._unlinkNode(St),delete this._map[St.key],St.key=kt,St.value=Ct,this._map[kt]=St;else{var pt=this._nodePool;pt.length>0?((St=pt.pop()).key=kt,St.value=Ct):St={prev:null,next:null,key:kt,value:Ct},this._map[kt]=St,this.size++}this._appendNode(St)},rt}();Rt.LRUMap=ie},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(Ct,St){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(pt,vt){pt.__proto__=vt}||function(pt,vt){for(var yt in vt)vt.hasOwnProperty(yt)&&(pt[yt]=vt[yt])})(Ct,St)},function(Ct,St){function pt(){this.constructor=Ct}ie(Ct,St),Ct.prototype=St===null?Object.create(St):(pt.prototype=St.prototype,new pt)});Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.SelectionRenderLayer=void 0;var kt=function(Ct){function St(pt,vt,yt,xt,dt,ft){var ct=Ct.call(this,pt,"selection",vt,!0,yt,xt,dt,ft)||this;return ct._clearState(),ct}return rt(St,Ct),St.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},St.prototype.resize=function(pt){Ct.prototype.resize.call(this,pt),this._clearState()},St.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},St.prototype.onSelectionChanged=function(pt,vt,yt){if(this._didStateChange(pt,vt,yt,this._bufferService.buffer.ydisp))if(this._clearAll(),pt&&vt){var xt=pt[1]-this._bufferService.buffer.ydisp,dt=vt[1]-this._bufferService.buffer.ydisp,ft=Math.max(xt,0),ct=Math.min(dt,this._bufferService.rows-1);if(!(ft>=this._bufferService.rows||ct<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,yt){var lt=pt[0],E=vt[0]-lt,z=ct-ft+1;this._fillCells(lt,ft,E,z)}else{lt=xt===ft?pt[0]:0;var ot=ft===ct?vt[0]:this._bufferService.cols;this._fillCells(lt,ft,ot-lt,1);var it=Math.max(ct-ft-1,0);if(this._fillCells(0,ft+1,this._bufferService.cols,it),ft!==ct){var at=dt===ct?vt[0]:this._bufferService.cols;this._fillCells(0,ct,at,1)}}this._state.start=[pt[0],pt[1]],this._state.end=[vt[0],vt[1]],this._state.columnSelectMode=yt,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},St.prototype._didStateChange=function(pt,vt,yt,xt){return!this._areCoordinatesEqual(pt,this._state.start)||!this._areCoordinatesEqual(vt,this._state.end)||yt!==this._state.columnSelectMode||xt!==this._state.ydisp},St.prototype._areCoordinatesEqual=function(pt,vt){return!(!pt||!vt)&&pt[0]===vt[0]&&pt[1]===vt[1]},St}(Ft(13).BaseRenderLayer);Rt.SelectionRenderLayer=kt},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(vt,yt){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(xt,dt){xt.__proto__=dt}||function(xt,dt){for(var ft in dt)dt.hasOwnProperty(ft)&&(xt[ft]=dt[ft])})(vt,yt)},function(vt,yt){function xt(){this.constructor=vt}ie(vt,yt),vt.prototype=yt===null?Object.create(yt):(xt.prototype=yt.prototype,new xt)});Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.CursorRenderLayer=void 0;var kt=Ft(13),Ct=Ft(4),St=function(vt){function yt(xt,dt,ft,ct,lt,E,z,ot,it){var at=vt.call(this,xt,"cursor",dt,!0,ft,ct,E,z)||this;return at._onRequestRedraw=lt,at._coreService=ot,at._coreBrowserService=it,at._cell=new Ct.CellData,at._state={x:0,y:0,isFocused:!1,style:"",width:0},at._cursorRenderers={bar:at._renderBarCursor.bind(at),block:at._renderBlockCursor.bind(at),underline:at._renderUnderlineCursor.bind(at)},at}return rt(yt,vt),yt.prototype.resize=function(xt){vt.prototype.resize.call(this,xt),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},yt.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},yt.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},yt.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},yt.prototype.onOptionsChanged=function(){var xt,dt=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new pt(this._coreBrowserService.isFocused,function(){dt._render(!0)})):((xt=this._cursorBlinkStateManager)===null||xt===void 0||xt.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},yt.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},yt.prototype.onGridChanged=function(xt,dt){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},yt.prototype._render=function(xt){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var dt=this._bufferService.buffer.ybase+this._bufferService.buffer.y,ft=dt-this._bufferService.buffer.ydisp;if(ft<0||ft>=this._bufferService.rows)this._clearCursor();else{var ct=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(dt).loadCell(ct,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var lt=this._optionsService.options.cursorStyle;return lt&<!=="block"?this._cursorRenderers[lt](ct,ft,this._cell):this._renderBlurCursor(ct,ft,this._cell),this._ctx.restore(),this._state.x=ct,this._state.y=ft,this._state.isFocused=!1,this._state.style=lt,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===ct&&this._state.y===ft&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.options.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.options.cursorStyle||"block"](ct,ft,this._cell),this._ctx.restore(),this._state.x=ct,this._state.y=ft,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},yt.prototype._clearCursor=function(){this._state&&(this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},yt.prototype._renderBarCursor=function(xt,dt,ft){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(xt,dt,this._optionsService.options.cursorWidth),this._ctx.restore()},yt.prototype._renderBlockCursor=function(xt,dt,ft){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(xt,dt,ft.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(ft,xt,dt),this._ctx.restore()},yt.prototype._renderUnderlineCursor=function(xt,dt,ft){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(xt,dt),this._ctx.restore()},yt.prototype._renderBlurCursor=function(xt,dt,ft){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(xt,dt,ft.getWidth(),1),this._ctx.restore()},yt}(kt.BaseRenderLayer);Rt.CursorRenderLayer=St;var pt=function(){function vt(yt,xt){this._renderCallback=xt,this.isCursorVisible=!0,yt&&this._restartInterval()}return Object.defineProperty(vt.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),vt.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},vt.prototype.restartBlinkAnimation=function(){var yt=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){yt._renderCallback(),yt._animationFrame=void 0})))},vt.prototype._restartInterval=function(yt){var xt=this;yt===void 0&&(yt=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(xt._animationTimeRestarted){var dt=600-(Date.now()-xt._animationTimeRestarted);if(xt._animationTimeRestarted=void 0,dt>0)return void xt._restartInterval(dt)}xt.isCursorVisible=!1,xt._animationFrame=window.requestAnimationFrame(function(){xt._renderCallback(),xt._animationFrame=void 0}),xt._blinkInterval=window.setInterval(function(){if(xt._animationTimeRestarted){var ft=600-(Date.now()-xt._animationTimeRestarted);return xt._animationTimeRestarted=void 0,void xt._restartInterval(ft)}xt.isCursorVisible=!xt.isCursorVisible,xt._animationFrame=window.requestAnimationFrame(function(){xt._renderCallback(),xt._animationFrame=void 0})},600)},yt)},vt.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},vt.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},vt}()},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(vt,yt){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(xt,dt){xt.__proto__=dt}||function(xt,dt){for(var ft in dt)dt.hasOwnProperty(ft)&&(xt[ft]=dt[ft])})(vt,yt)},function(vt,yt){function xt(){this.constructor=vt}ie(vt,yt),vt.prototype=yt===null?Object.create(yt):(xt.prototype=yt.prototype,new xt)});Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.LinkRenderLayer=void 0;var kt=Ft(13),Ct=Ft(9),St=Ft(26),pt=function(vt){function yt(xt,dt,ft,ct,lt,E,z,ot){var it=vt.call(this,xt,"link",dt,!0,ft,ct,z,ot)||this;return lt.onShowLinkUnderline(function(at){return it._onShowLinkUnderline(at)}),lt.onHideLinkUnderline(function(at){return it._onHideLinkUnderline(at)}),E.onShowLinkUnderline(function(at){return it._onShowLinkUnderline(at)}),E.onHideLinkUnderline(function(at){return it._onHideLinkUnderline(at)}),it}return rt(yt,vt),yt.prototype.resize=function(xt){vt.prototype.resize.call(this,xt),this._state=void 0},yt.prototype.reset=function(){this._clearCurrentLink()},yt.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var xt=this._state.y2-this._state.y1-1;xt>0&&this._clearCells(0,this._state.y1+1,this._state.cols,xt),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},yt.prototype._onShowLinkUnderline=function(xt){if(xt.fg===Ct.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:xt.fg&&St.is256Color(xt.fg)?this._ctx.fillStyle=this._colors.ansi[xt.fg].css:this._ctx.fillStyle=this._colors.foreground.css,xt.y1===xt.y2)this._fillBottomLineAtCells(xt.x1,xt.y1,xt.x2-xt.x1);else{this._fillBottomLineAtCells(xt.x1,xt.y1,xt.cols-xt.x1);for(var dt=xt.y1+1;dt=0;E--)(ft=vt[E])&&(lt=(ct<3?ft(lt):ct>3?ft(yt,xt,lt):ft(yt,xt))||lt);return ct>3&<&&Object.defineProperty(yt,xt,lt),lt},rt=this&&this.__param||function(vt,yt){return function(xt,dt){yt(xt,dt,vt)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.MouseZone=Rt.Linkifier=void 0;var kt=Ft(0),Ct=Ft(1),St=function(){function vt(yt,xt,dt){this._bufferService=yt,this._logService=xt,this._unicodeService=dt,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new kt.EventEmitter,this._onHideLinkUnderline=new kt.EventEmitter,this._onLinkTooltip=new kt.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(vt.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(vt.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(vt.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),vt.prototype.attachToDom=function(yt,xt){this._element=yt,this._mouseZoneManager=xt},vt.prototype.linkifyRows=function(yt,xt){var dt=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=yt,this._rowsToLinkify.end=xt):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,yt),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,xt)),this._mouseZoneManager.clearAll(yt,xt),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return dt._linkifyRows()},vt._timeBeforeLatency))},vt.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var yt=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var xt=yt.ydisp+this._rowsToLinkify.start;if(!(xt>=yt.lines.length)){for(var dt=yt.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,ft=Math.ceil(2e3/this._bufferService.cols),ct=this._bufferService.buffer.iterator(!1,xt,dt,ft,ft);ct.hasNext();)for(var lt=ct.next(),E=0;E=0;xt--)if(yt.priority<=this._linkMatchers[xt].priority)return void this._linkMatchers.splice(xt+1,0,yt);this._linkMatchers.splice(0,0,yt)}else this._linkMatchers.push(yt)},vt.prototype.deregisterLinkMatcher=function(yt){for(var xt=0;xt>9&511:void 0;dt.validationCallback?dt.validationCallback(it,function(At){ct._rowsTimeoutId||At&&ct._addLink(at[1],at[0]-ct._bufferService.buffer.ydisp,it,dt,Et)}):ot._addLink(at[1],at[0]-ot._bufferService.buffer.ydisp,it,dt,Et)},ot=this;(ft=lt.exec(xt))!==null&&z()!=="break";);},vt.prototype._addLink=function(yt,xt,dt,ft,ct){var lt=this;if(this._mouseZoneManager&&this._element){var E=this._unicodeService.getStringCellWidth(dt),z=yt%this._bufferService.cols,ot=xt+Math.floor(yt/this._bufferService.cols),it=(z+E)%this._bufferService.cols,at=ot+Math.floor((z+E)/this._bufferService.cols);it===0&&(it=this._bufferService.cols,at--),this._mouseZoneManager.add(new pt(z+1,ot+1,it+1,at+1,function(ut){if(ft.handler)return ft.handler(ut,dt);var wt=window.open();wt?(wt.opener=null,wt.location.href=dt):console.warn("Opening link blocked as opener could not be cleared")},function(){lt._onShowLinkUnderline.fire(lt._createLinkHoverEvent(z,ot,it,at,ct)),lt._element.classList.add("xterm-cursor-pointer")},function(ut){lt._onLinkTooltip.fire(lt._createLinkHoverEvent(z,ot,it,at,ct)),ft.hoverTooltipCallback&&ft.hoverTooltipCallback(ut,dt,{start:{x:z,y:ot},end:{x:it,y:at}})},function(){lt._onHideLinkUnderline.fire(lt._createLinkHoverEvent(z,ot,it,at,ct)),lt._element.classList.remove("xterm-cursor-pointer"),ft.hoverLeaveCallback&&ft.hoverLeaveCallback()},function(ut){return!ft.willLinkActivate||ft.willLinkActivate(ut,dt)}))}},vt.prototype._createLinkHoverEvent=function(yt,xt,dt,ft,ct){return{x1:yt,y1:xt,x2:dt,y2:ft,cols:this._bufferService.cols,fg:ct}},vt._timeBeforeLatency=200,vt=ie([rt(0,Ct.IBufferService),rt(1,Ct.ILogService),rt(2,Ct.IUnicodeService)],vt)}();Rt.Linkifier=St;var pt=function(vt,yt,xt,dt,ft,ct,lt,E,z){this.x1=vt,this.y1=yt,this.x2=xt,this.y2=dt,this.clickCallback=ft,this.hoverCallback=ct,this.tooltipCallback=lt,this.leaveCallback=E,this.willLinkActivate=z};Rt.MouseZone=pt},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(it,at){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ut,wt){ut.__proto__=wt}||function(ut,wt){for(var Et in wt)wt.hasOwnProperty(Et)&&(ut[Et]=wt[Et])})(it,at)},function(it,at){function ut(){this.constructor=it}ie(it,at),it.prototype=at===null?Object.create(at):(ut.prototype=at.prototype,new ut)}),kt=this&&this.__decorate||function(it,at,ut,wt){var Et,At=arguments.length,_t=At<3?at:wt===null?wt=Object.getOwnPropertyDescriptor(at,ut):wt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_t=Reflect.decorate(it,at,ut,wt);else for(var Mt=it.length-1;Mt>=0;Mt--)(Et=it[Mt])&&(_t=(At<3?Et(_t):At>3?Et(at,ut,_t):Et(at,ut))||_t);return At>3&&_t&&Object.defineProperty(at,ut,_t),_t},Ct=this&&this.__param||function(it,at){return function(ut,wt){at(ut,wt,it)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.SelectionService=void 0;var St=Ft(11),pt=Ft(52),vt=Ft(4),yt=Ft(0),xt=Ft(5),dt=Ft(1),ft=Ft(30),ct=Ft(53),lt=Ft(2),E="\xA0",z=new RegExp(E,"g"),ot=function(it){function at(ut,wt,Et,At,_t,Mt,jt){var Lt=it.call(this)||this;return Lt._element=ut,Lt._screenElement=wt,Lt._bufferService=Et,Lt._coreService=At,Lt._mouseService=_t,Lt._optionsService=Mt,Lt._renderService=jt,Lt._dragScrollAmount=0,Lt._enabled=!0,Lt._workCell=new vt.CellData,Lt._mouseDownTimeStamp=0,Lt._onLinuxMouseSelection=Lt.register(new yt.EventEmitter),Lt._onRedrawRequest=Lt.register(new yt.EventEmitter),Lt._onSelectionChange=Lt.register(new yt.EventEmitter),Lt._onRequestScrollLines=Lt.register(new yt.EventEmitter),Lt._mouseMoveListener=function(It){return Lt._onMouseMove(It)},Lt._mouseUpListener=function(It){return Lt._onMouseUp(It)},Lt._coreService.onUserInput(function(){Lt.hasSelection&&Lt.clearSelection()}),Lt._trimListener=Lt._bufferService.buffer.lines.onTrim(function(It){return Lt._onTrim(It)}),Lt.register(Lt._bufferService.buffers.onBufferActivate(function(It){return Lt._onBufferActivate(It)})),Lt.enable(),Lt._model=new pt.SelectionModel(Lt._bufferService),Lt._activeSelectionMode=0,Lt}return rt(at,it),Object.defineProperty(at.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(at.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(at.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(at.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),at.prototype.dispose=function(){this._removeMouseDownListeners()},at.prototype.reset=function(){this.clearSelection()},at.prototype.disable=function(){this.clearSelection(),this._enabled=!1},at.prototype.enable=function(){this._enabled=!0},Object.defineProperty(at.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(at.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(at.prototype,"hasSelection",{get:function(){var ut=this._model.finalSelectionStart,wt=this._model.finalSelectionEnd;return!(!ut||!wt)&&(ut[0]!==wt[0]||ut[1]!==wt[1])},enumerable:!1,configurable:!0}),Object.defineProperty(at.prototype,"selectionText",{get:function(){var ut=this._model.finalSelectionStart,wt=this._model.finalSelectionEnd;if(!ut||!wt)return"";var Et=this._bufferService.buffer,At=[];if(this._activeSelectionMode===3){if(ut[0]===wt[0])return"";for(var _t=ut[1];_t<=wt[1];_t++){var Mt=Et.translateBufferLineToString(_t,!0,ut[0],wt[0]);At.push(Mt)}}else{var jt=ut[1]===wt[1]?wt[0]:void 0;for(At.push(Et.translateBufferLineToString(ut[1],!0,ut[0],jt)),_t=ut[1]+1;_t<=wt[1]-1;_t++){var Lt=Et.lines.get(_t);Mt=Et.translateBufferLineToString(_t,!0),Lt&&Lt.isWrapped?At[At.length-1]+=Mt:At.push(Mt)}ut[1]!==wt[1]&&(Lt=Et.lines.get(wt[1]),Mt=Et.translateBufferLineToString(wt[1],!0,0,wt[0]),Lt&&Lt.isWrapped?At[At.length-1]+=Mt:At.push(Mt))}return At.map(function(It){return It.replace(z," ")}).join(St.isWindows?`\r `:` -`)},enumerable:!1,configurable:!0}),at.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},at.prototype.refresh=function(ut){var wt=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return wt._refresh()})),St.isLinux&&ut&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},at.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})},at.prototype.isClickInSelection=function(ut){var wt=this._getMouseBufferCoords(ut),Et=this._model.finalSelectionStart,At=this._model.finalSelectionEnd;return!!(Et&&At&&wt)&&this._areCoordsInSelection(wt,Et,At)},at.prototype._areCoordsInSelection=function(ut,wt,Et){return ut[1]>wt[1]&&ut[1]=wt[0]&&ut[0]=wt[0]},at.prototype.selectWordAtCursor=function(ut){var wt=this._getMouseBufferCoords(ut);wt&&(this._selectWordAt(wt,!1),this._model.selectionEnd=void 0,this.refresh(!0))},at.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},at.prototype.selectLines=function(ut,wt){this._model.clearSelection(),ut=Math.max(ut,0),wt=Math.min(wt,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,ut],this._model.selectionEnd=[this._bufferService.cols,wt],this.refresh(),this._onSelectionChange.fire()},at.prototype._onTrim=function(ut){this._model.onTrim(ut)&&this.refresh()},at.prototype._getMouseBufferCoords=function(ut){var wt=this._mouseService.getCoords(ut,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(wt)return wt[0]--,wt[1]--,wt[1]+=this._bufferService.buffer.ydisp,wt},at.prototype._getMouseEventScrollAmount=function(ut){var wt=ft.getCoordsRelativeToElement(ut,this._screenElement)[1],Et=this._renderService.dimensions.canvasHeight;return wt>=0&&wt<=Et?0:(wt>Et&&(wt-=Et),wt=Math.min(Math.max(wt,-50),50),(wt/=50)/Math.abs(wt)+Math.round(14*wt))},at.prototype.shouldForceSelection=function(ut){return St.isMac?ut.altKey&&this._optionsService.options.macOptionClickForcesSelection:ut.shiftKey},at.prototype.onMouseDown=function(ut){if(this._mouseDownTimeStamp=ut.timeStamp,(ut.button!==2||!this.hasSelection)&&ut.button===0){if(!this._enabled){if(!this.shouldForceSelection(ut))return;ut.stopPropagation()}ut.preventDefault(),this._dragScrollAmount=0,this._enabled&&ut.shiftKey?this._onIncrementalClick(ut):ut.detail===1?this._onSingleClick(ut):ut.detail===2?this._onDoubleClick(ut):ut.detail===3&&this._onTripleClick(ut),this._addMouseDownListeners(),this.refresh(!0)}},at.prototype._addMouseDownListeners=function(){var ut=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return ut._dragScroll()},50)},at.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},at.prototype._onIncrementalClick=function(ut){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(ut))},at.prototype._onSingleClick=function(ut){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(ut)?3:0,this._model.selectionStart=this._getMouseBufferCoords(ut),this._model.selectionStart){this._model.selectionEnd=void 0;var wt=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);wt&&wt.length!==this._model.selectionStart[0]&&wt.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},at.prototype._onDoubleClick=function(ut){var wt=this._getMouseBufferCoords(ut);wt&&(this._activeSelectionMode=1,this._selectWordAt(wt,!0))},at.prototype._onTripleClick=function(ut){var wt=this._getMouseBufferCoords(ut);wt&&(this._activeSelectionMode=2,this._selectLineAt(wt[1]))},at.prototype.shouldColumnSelect=function(ut){return ut.altKey&&!(St.isMac&&this._optionsService.options.macOptionClickForcesSelection)},at.prototype._onMouseMove=function(ut){if(ut.stopImmediatePropagation(),this._model.selectionStart){var wt=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(ut),this._model.selectionEnd){this._activeSelectionMode===2?this._model.selectionEnd[1]0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var Et=this._bufferService.buffer;if(this._model.selectionEnd[1]0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(ut.ydisp+this._bufferService.rows,ut.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=ut.ydisp),this.refresh()}},at.prototype._onMouseUp=function(ut){var wt=ut.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&wt<500&&ut.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var Et=this._mouseService.getCoords(ut,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(Et&&Et[0]!==void 0&&Et[1]!==void 0){var At=ct.moveToCellSequence(Et[0]-1,Et[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(At,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},at.prototype._onBufferActivate=function(ut){var wt=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=ut.activeBuffer.lines.onTrim(function(Et){return wt._onTrim(Et)})},at.prototype._convertViewportColToCharacterIndex=function(ut,wt){for(var Et=wt[0],At=0;wt[0]>=At;At++){var _t=ut.loadCell(At,this._workCell).getChars().length;this._workCell.getWidth()===0?Et--:_t>1&&wt[0]!==At&&(Et+=_t-1)}return Et},at.prototype.setSelection=function(ut,wt,Et){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[ut,wt],this._model.selectionStartLength=Et,this.refresh()},at.prototype._getWordAt=function(ut,wt,Et,At){if(Et===void 0&&(Et=!0),At===void 0&&(At=!0),!(ut[0]>=this._bufferService.cols)){var _t=this._bufferService.buffer,Mt=_t.lines.get(ut[1]);if(Mt){var jt=_t.translateBufferLineToString(ut[1],!1),Lt=this._convertViewportColToCharacterIndex(Mt,ut),It=Lt,Ut=ut[0]-Lt,Xt=0,Gt=0,Yt=0,Ht=0;if(jt.charAt(Lt)===" "){for(;Lt>0&&jt.charAt(Lt-1)===" ";)Lt--;for(;It1&&(Ht+=ve-1,It+=ve-1);ne>0&&Lt>0&&!this._isCharWordSeparator(Mt.loadCell(ne-1,this._workCell));){Mt.loadCell(ne-1,this._workCell);var Kt=this._workCell.getChars().length;this._workCell.getWidth()===0?(Xt++,ne--):Kt>1&&(Yt+=Kt-1,Lt-=Kt-1),Lt--,ne--}for(;ae1&&(Ht+=re-1,It+=re-1),It++,ae++}}It++;var we=Lt+Ut-Xt+Yt,Me=Math.min(this._bufferService.cols,It-Lt+Xt+Gt-Yt-Ht);if(wt||jt.slice(Lt,It).trim()!==""){if(Et&&we===0&&Mt.getCodePoint(0)!==32){var ke=_t.lines.get(ut[1]-1);if(ke&&Mt.isWrapped&&ke.getCodePoint(this._bufferService.cols-1)!==32){var me=this._getWordAt([this._bufferService.cols-1,ut[1]-1],!1,!0,!1);if(me){var fe=this._bufferService.cols-me.start;we-=fe,Me+=fe}}}if(At&&we+Me===this._bufferService.cols&&Mt.getCodePoint(this._bufferService.cols-1)!==32){var pe=_t.lines.get(ut[1]+1);if(pe&&pe.isWrapped&&pe.getCodePoint(0)!==32){var _e=this._getWordAt([0,ut[1]+1],!1,!1,!0);_e&&(Me+=_e.length)}}return{start:we,length:Me}}}}},at.prototype._selectWordAt=function(ut,wt){var Et=this._getWordAt(ut,wt);if(Et){for(;Et.start<0;)Et.start+=this._bufferService.cols,ut[1]--;this._model.selectionStart=[Et.start,ut[1]],this._model.selectionStartLength=Et.length}},at.prototype._selectToWordAt=function(ut){var wt=this._getWordAt(ut,!0);if(wt){for(var Et=ut[1];wt.start<0;)wt.start+=this._bufferService.cols,Et--;if(!this._model.areSelectionValuesReversed())for(;wt.start+wt.length>this._bufferService.cols;)wt.length-=this._bufferService.cols,Et++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?wt.start:wt.start+wt.length,Et]}},at.prototype._isCharWordSeparator=function(ut){return ut.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(ut.getChars())>=0},at.prototype._selectLineAt=function(ut){var wt=this._bufferService.buffer.getWrappedRangeForLine(ut);this._model.selectionStart=[0,wt.first],this._model.selectionEnd=[this._bufferService.cols,wt.last],this._model.selectionStartLength=0},at=kt([Ct(2,dt.IBufferService),Ct(3,dt.ICoreService),Ct(4,xt.IMouseService),Ct(5,dt.IOptionsService),Ct(6,xt.IRenderService)],at)}(lt.Disposable);Rt.SelectionService=ot},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.SelectionModel=void 0;var ie=function(){function rt(kt){this._bufferService=kt,this.isSelectAllActive=!1,this.selectionStartLength=0}return rt.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(rt.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(rt.prototype,"finalSelectionEnd",{get:function(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){var kt=this.selectionStart[0]+this.selectionStartLength;return kt>this._bufferService.cols?[kt%this._bufferService.cols,this.selectionStart[1]+Math.floor(kt/this._bufferService.cols)]:[kt,this.selectionStart[1]]}return this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd}},enumerable:!1,configurable:!0}),rt.prototype.areSelectionValuesReversed=function(){var kt=this.selectionStart,Ct=this.selectionEnd;return!(!kt||!Ct)&&(kt[1]>Ct[1]||kt[1]===Ct[1]&&kt[0]>Ct[0])},rt.prototype.onTrim=function(kt){return this.selectionStart&&(this.selectionStart[1]-=kt),this.selectionEnd&&(this.selectionEnd[1]-=kt),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},rt}();Rt.SelectionModel=ie},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.moveToCellSequence=void 0;var ie=Ft(12);function rt(yt,xt,dt,ft){var ct=yt-kt(dt,yt),lt=xt-kt(dt,xt);return vt(Math.abs(ct-lt)-function(E,z,ot){for(var it=0,at=E-kt(ot,E),ut=z-kt(ot,z),wt=0;wt=0&&xtxt?"A":"B"}function St(yt,xt,dt,ft,ct,lt){for(var E=yt,z=xt,ot="";E!==dt||z!==ft;)E+=ct?1:-1,ct&&E>lt.cols-1?(ot+=lt.buffer.translateBufferLineToString(z,!1,yt,E),E=0,yt=0,z++):!ct&&E<0&&(ot+=lt.buffer.translateBufferLineToString(z,!1,0,yt+1),yt=E=lt.cols-1,z--);return ot+lt.buffer.translateBufferLineToString(z,!1,yt,E)}function pt(yt,xt){var dt=xt?"O":"[";return ie.C0.ESC+dt+yt}function vt(yt,xt){yt=Math.floor(yt);for(var dt="",ft=0;ft0?ut-kt(wt,ut):it;var _t=ut,Mt=function(jt,Lt,It,Ut,Xt,Gt){var Yt;return Yt=rt(It,Ut,Xt,Gt).length>0?Ut-kt(Xt,Ut):Lt,jt=It&&Ytyt?"D":"C",vt(Math.abs(lt-yt),pt(ct,ft));ct=E>xt?"D":"C";var z=Math.abs(E-xt);return vt(function(ot,it){return it.cols-ot}(E>xt?yt:lt,dt)+(z-1)*dt.cols+1+((E>xt?lt:yt)-1),pt(ct,ft))}},function(Ke,Rt,Ft){"use strict";var ie=this&&this.__decorate||function(St,pt,vt,yt){var xt,dt=arguments.length,ft=dt<3?pt:yt===null?yt=Object.getOwnPropertyDescriptor(pt,vt):yt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ft=Reflect.decorate(St,pt,vt,yt);else for(var ct=St.length-1;ct>=0;ct--)(xt=St[ct])&&(ft=(dt<3?xt(ft):dt>3?xt(pt,vt,ft):xt(pt,vt))||ft);return dt>3&&ft&&Object.defineProperty(pt,vt,ft),ft},rt=this&&this.__param||function(St,pt){return function(vt,yt){pt(vt,yt,St)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.SoundService=void 0;var kt=Ft(1),Ct=function(){function St(pt){this._optionsService=pt}return Object.defineProperty(St,"audioContext",{get:function(){if(!St._audioContext){var pt=window.AudioContext||window.webkitAudioContext;if(!pt)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;St._audioContext=new pt}return St._audioContext},enumerable:!1,configurable:!0}),St.prototype.playBellSound=function(){var pt=St.audioContext;if(pt){var vt=pt.createBufferSource();pt.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(yt){vt.buffer=yt,vt.connect(pt.destination),vt.start(0)})}},St.prototype._base64ToArrayBuffer=function(pt){for(var vt=window.atob(pt),yt=vt.length,xt=new Uint8Array(yt),dt=0;dt=0;it--)(E=dt[it])&&(ot=(z<3?E(ot):z>3?E(ft,ct,ot):E(ft,ct))||ot);return z>3&&ot&&Object.defineProperty(ft,ct,ot),ot},Ct=this&&this.__param||function(dt,ft){return function(ct,lt){ft(ct,lt,dt)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.MouseZoneManager=void 0;var St=Ft(2),pt=Ft(7),vt=Ft(5),yt=Ft(1),xt=function(dt){function ft(ct,lt,E,z,ot,it){var at=dt.call(this)||this;return at._element=ct,at._screenElement=lt,at._bufferService=E,at._mouseService=z,at._selectionService=ot,at._optionsService=it,at._zones=[],at._areZonesActive=!1,at._lastHoverCoords=[void 0,void 0],at._initialSelectionLength=0,at.register(pt.addDisposableDomListener(at._element,"mousedown",function(ut){return at._onMouseDown(ut)})),at._mouseMoveListener=function(ut){return at._onMouseMove(ut)},at._mouseLeaveListener=function(ut){return at._onMouseLeave(ut)},at._clickListener=function(ut){return at._onClick(ut)},at}return rt(ft,dt),ft.prototype.dispose=function(){dt.prototype.dispose.call(this),this._deactivate()},ft.prototype.add=function(ct){this._zones.push(ct),this._zones.length===1&&this._activate()},ft.prototype.clearAll=function(ct,lt){if(this._zones.length!==0){ct&<||(ct=0,lt=this._bufferService.rows-1);for(var E=0;Ect&&z.y1<=lt+1||z.y2>ct&&z.y2<=lt+1||z.y1lt+1)&&(this._currentZone&&this._currentZone===z&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(E--,1))}this._zones.length===0&&this._deactivate()}},ft.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},ft.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},ft.prototype._onMouseMove=function(ct){this._lastHoverCoords[0]===ct.pageX&&this._lastHoverCoords[1]===ct.pageY||(this._onHover(ct),this._lastHoverCoords=[ct.pageX,ct.pageY])},ft.prototype._onHover=function(ct){var lt=this,E=this._findZoneEventAt(ct);E!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),E&&(this._currentZone=E,E.hoverCallback&&E.hoverCallback(ct),this._tooltipTimeout=window.setTimeout(function(){return lt._onTooltip(ct)},this._optionsService.options.linkTooltipHoverDuration)))},ft.prototype._onTooltip=function(ct){this._tooltipTimeout=void 0;var lt=this._findZoneEventAt(ct);lt&<.tooltipCallback&<.tooltipCallback(ct)},ft.prototype._onMouseDown=function(ct){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var lt=this._findZoneEventAt(ct);lt!=null&<.willLinkActivate(ct)&&(ct.preventDefault(),ct.stopImmediatePropagation())}},ft.prototype._onMouseLeave=function(ct){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},ft.prototype._onClick=function(ct){var lt=this._findZoneEventAt(ct),E=this._getSelectionLength();lt&&E===this._initialSelectionLength&&(lt.clickCallback(ct),ct.preventDefault(),ct.stopImmediatePropagation())},ft.prototype._getSelectionLength=function(){var ct=this._selectionService.selectionText;return ct?ct.length:0},ft.prototype._findZoneEventAt=function(ct){var lt=this._mouseService.getCoords(ct,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(lt)for(var E=lt[0],z=lt[1],ot=0;ot=it.x1&&E=it.x1||z===it.y2&&Eit.y1&&zwt[1]&&ut[1]=wt[0]&&ut[0]=wt[0]},at.prototype.selectWordAtCursor=function(ut){var wt=this._getMouseBufferCoords(ut);wt&&(this._selectWordAt(wt,!1),this._model.selectionEnd=void 0,this.refresh(!0))},at.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},at.prototype.selectLines=function(ut,wt){this._model.clearSelection(),ut=Math.max(ut,0),wt=Math.min(wt,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,ut],this._model.selectionEnd=[this._bufferService.cols,wt],this.refresh(),this._onSelectionChange.fire()},at.prototype._onTrim=function(ut){this._model.onTrim(ut)&&this.refresh()},at.prototype._getMouseBufferCoords=function(ut){var wt=this._mouseService.getCoords(ut,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(wt)return wt[0]--,wt[1]--,wt[1]+=this._bufferService.buffer.ydisp,wt},at.prototype._getMouseEventScrollAmount=function(ut){var wt=ft.getCoordsRelativeToElement(ut,this._screenElement)[1],Et=this._renderService.dimensions.canvasHeight;return wt>=0&&wt<=Et?0:(wt>Et&&(wt-=Et),wt=Math.min(Math.max(wt,-50),50),(wt/=50)/Math.abs(wt)+Math.round(14*wt))},at.prototype.shouldForceSelection=function(ut){return St.isMac?ut.altKey&&this._optionsService.options.macOptionClickForcesSelection:ut.shiftKey},at.prototype.onMouseDown=function(ut){if(this._mouseDownTimeStamp=ut.timeStamp,(ut.button!==2||!this.hasSelection)&&ut.button===0){if(!this._enabled){if(!this.shouldForceSelection(ut))return;ut.stopPropagation()}ut.preventDefault(),this._dragScrollAmount=0,this._enabled&&ut.shiftKey?this._onIncrementalClick(ut):ut.detail===1?this._onSingleClick(ut):ut.detail===2?this._onDoubleClick(ut):ut.detail===3&&this._onTripleClick(ut),this._addMouseDownListeners(),this.refresh(!0)}},at.prototype._addMouseDownListeners=function(){var ut=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return ut._dragScroll()},50)},at.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},at.prototype._onIncrementalClick=function(ut){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(ut))},at.prototype._onSingleClick=function(ut){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(ut)?3:0,this._model.selectionStart=this._getMouseBufferCoords(ut),this._model.selectionStart){this._model.selectionEnd=void 0;var wt=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);wt&&wt.length!==this._model.selectionStart[0]&&wt.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},at.prototype._onDoubleClick=function(ut){var wt=this._getMouseBufferCoords(ut);wt&&(this._activeSelectionMode=1,this._selectWordAt(wt,!0))},at.prototype._onTripleClick=function(ut){var wt=this._getMouseBufferCoords(ut);wt&&(this._activeSelectionMode=2,this._selectLineAt(wt[1]))},at.prototype.shouldColumnSelect=function(ut){return ut.altKey&&!(St.isMac&&this._optionsService.options.macOptionClickForcesSelection)},at.prototype._onMouseMove=function(ut){if(ut.stopImmediatePropagation(),this._model.selectionStart){var wt=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(ut),this._model.selectionEnd){this._activeSelectionMode===2?this._model.selectionEnd[1]0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var Et=this._bufferService.buffer;if(this._model.selectionEnd[1]0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(ut.ydisp+this._bufferService.rows,ut.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=ut.ydisp),this.refresh()}},at.prototype._onMouseUp=function(ut){var wt=ut.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&wt<500&&ut.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var Et=this._mouseService.getCoords(ut,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(Et&&Et[0]!==void 0&&Et[1]!==void 0){var At=ct.moveToCellSequence(Et[0]-1,Et[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(At,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},at.prototype._onBufferActivate=function(ut){var wt=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=ut.activeBuffer.lines.onTrim(function(Et){return wt._onTrim(Et)})},at.prototype._convertViewportColToCharacterIndex=function(ut,wt){for(var Et=wt[0],At=0;wt[0]>=At;At++){var _t=ut.loadCell(At,this._workCell).getChars().length;this._workCell.getWidth()===0?Et--:_t>1&&wt[0]!==At&&(Et+=_t-1)}return Et},at.prototype.setSelection=function(ut,wt,Et){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[ut,wt],this._model.selectionStartLength=Et,this.refresh()},at.prototype._getWordAt=function(ut,wt,Et,At){if(Et===void 0&&(Et=!0),At===void 0&&(At=!0),!(ut[0]>=this._bufferService.cols)){var _t=this._bufferService.buffer,Mt=_t.lines.get(ut[1]);if(Mt){var jt=_t.translateBufferLineToString(ut[1],!1),Lt=this._convertViewportColToCharacterIndex(Mt,ut),It=Lt,Ut=ut[0]-Lt,Xt=0,Gt=0,Vt=0,Ht=0;if(jt.charAt(Lt)===" "){for(;Lt>0&&jt.charAt(Lt-1)===" ";)Lt--;for(;It1&&(Ht+=ve-1,It+=ve-1);ne>0&&Lt>0&&!this._isCharWordSeparator(Mt.loadCell(ne-1,this._workCell));){Mt.loadCell(ne-1,this._workCell);var Kt=this._workCell.getChars().length;this._workCell.getWidth()===0?(Xt++,ne--):Kt>1&&(Vt+=Kt-1,Lt-=Kt-1),Lt--,ne--}for(;se1&&(Ht+=re-1,It+=re-1),It++,se++}}It++;var we=Lt+Ut-Xt+Vt,ke=Math.min(this._bufferService.cols,It-Lt+Xt+Gt-Vt-Ht);if(wt||jt.slice(Lt,It).trim()!==""){if(Et&&we===0&&Mt.getCodePoint(0)!==32){var Me=_t.lines.get(ut[1]-1);if(Me&&Mt.isWrapped&&Me.getCodePoint(this._bufferService.cols-1)!==32){var ge=this._getWordAt([this._bufferService.cols-1,ut[1]-1],!1,!0,!1);if(ge){var fe=this._bufferService.cols-ge.start;we-=fe,ke+=fe}}}if(At&&we+ke===this._bufferService.cols&&Mt.getCodePoint(this._bufferService.cols-1)!==32){var de=_t.lines.get(ut[1]+1);if(de&&de.isWrapped&&de.getCodePoint(0)!==32){var _e=this._getWordAt([0,ut[1]+1],!1,!1,!0);_e&&(ke+=_e.length)}}return{start:we,length:ke}}}}},at.prototype._selectWordAt=function(ut,wt){var Et=this._getWordAt(ut,wt);if(Et){for(;Et.start<0;)Et.start+=this._bufferService.cols,ut[1]--;this._model.selectionStart=[Et.start,ut[1]],this._model.selectionStartLength=Et.length}},at.prototype._selectToWordAt=function(ut){var wt=this._getWordAt(ut,!0);if(wt){for(var Et=ut[1];wt.start<0;)wt.start+=this._bufferService.cols,Et--;if(!this._model.areSelectionValuesReversed())for(;wt.start+wt.length>this._bufferService.cols;)wt.length-=this._bufferService.cols,Et++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?wt.start:wt.start+wt.length,Et]}},at.prototype._isCharWordSeparator=function(ut){return ut.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(ut.getChars())>=0},at.prototype._selectLineAt=function(ut){var wt=this._bufferService.buffer.getWrappedRangeForLine(ut);this._model.selectionStart=[0,wt.first],this._model.selectionEnd=[this._bufferService.cols,wt.last],this._model.selectionStartLength=0},at=kt([Ct(2,dt.IBufferService),Ct(3,dt.ICoreService),Ct(4,xt.IMouseService),Ct(5,dt.IOptionsService),Ct(6,xt.IRenderService)],at)}(lt.Disposable);Rt.SelectionService=ot},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.SelectionModel=void 0;var ie=function(){function rt(kt){this._bufferService=kt,this.isSelectAllActive=!1,this.selectionStartLength=0}return rt.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(rt.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(rt.prototype,"finalSelectionEnd",{get:function(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){var kt=this.selectionStart[0]+this.selectionStartLength;return kt>this._bufferService.cols?[kt%this._bufferService.cols,this.selectionStart[1]+Math.floor(kt/this._bufferService.cols)]:[kt,this.selectionStart[1]]}return this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd}},enumerable:!1,configurable:!0}),rt.prototype.areSelectionValuesReversed=function(){var kt=this.selectionStart,Ct=this.selectionEnd;return!(!kt||!Ct)&&(kt[1]>Ct[1]||kt[1]===Ct[1]&&kt[0]>Ct[0])},rt.prototype.onTrim=function(kt){return this.selectionStart&&(this.selectionStart[1]-=kt),this.selectionEnd&&(this.selectionEnd[1]-=kt),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},rt}();Rt.SelectionModel=ie},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.moveToCellSequence=void 0;var ie=Ft(12);function rt(yt,xt,dt,ft){var ct=yt-kt(dt,yt),lt=xt-kt(dt,xt);return vt(Math.abs(ct-lt)-function(E,z,ot){for(var it=0,at=E-kt(ot,E),ut=z-kt(ot,z),wt=0;wt=0&&xtxt?"A":"B"}function St(yt,xt,dt,ft,ct,lt){for(var E=yt,z=xt,ot="";E!==dt||z!==ft;)E+=ct?1:-1,ct&&E>lt.cols-1?(ot+=lt.buffer.translateBufferLineToString(z,!1,yt,E),E=0,yt=0,z++):!ct&&E<0&&(ot+=lt.buffer.translateBufferLineToString(z,!1,0,yt+1),yt=E=lt.cols-1,z--);return ot+lt.buffer.translateBufferLineToString(z,!1,yt,E)}function pt(yt,xt){var dt=xt?"O":"[";return ie.C0.ESC+dt+yt}function vt(yt,xt){yt=Math.floor(yt);for(var dt="",ft=0;ft0?ut-kt(wt,ut):it;var _t=ut,Mt=function(jt,Lt,It,Ut,Xt,Gt){var Vt;return Vt=rt(It,Ut,Xt,Gt).length>0?Ut-kt(Xt,Ut):Lt,jt=It&&Vtyt?"D":"C",vt(Math.abs(lt-yt),pt(ct,ft));ct=E>xt?"D":"C";var z=Math.abs(E-xt);return vt(function(ot,it){return it.cols-ot}(E>xt?yt:lt,dt)+(z-1)*dt.cols+1+((E>xt?lt:yt)-1),pt(ct,ft))}},function(Ke,Rt,Ft){"use strict";var ie=this&&this.__decorate||function(St,pt,vt,yt){var xt,dt=arguments.length,ft=dt<3?pt:yt===null?yt=Object.getOwnPropertyDescriptor(pt,vt):yt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ft=Reflect.decorate(St,pt,vt,yt);else for(var ct=St.length-1;ct>=0;ct--)(xt=St[ct])&&(ft=(dt<3?xt(ft):dt>3?xt(pt,vt,ft):xt(pt,vt))||ft);return dt>3&&ft&&Object.defineProperty(pt,vt,ft),ft},rt=this&&this.__param||function(St,pt){return function(vt,yt){pt(vt,yt,St)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.SoundService=void 0;var kt=Ft(1),Ct=function(){function St(pt){this._optionsService=pt}return Object.defineProperty(St,"audioContext",{get:function(){if(!St._audioContext){var pt=window.AudioContext||window.webkitAudioContext;if(!pt)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;St._audioContext=new pt}return St._audioContext},enumerable:!1,configurable:!0}),St.prototype.playBellSound=function(){var pt=St.audioContext;if(pt){var vt=pt.createBufferSource();pt.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(yt){vt.buffer=yt,vt.connect(pt.destination),vt.start(0)})}},St.prototype._base64ToArrayBuffer=function(pt){for(var vt=window.atob(pt),yt=vt.length,xt=new Uint8Array(yt),dt=0;dt=0;it--)(E=dt[it])&&(ot=(z<3?E(ot):z>3?E(ft,ct,ot):E(ft,ct))||ot);return z>3&&ot&&Object.defineProperty(ft,ct,ot),ot},Ct=this&&this.__param||function(dt,ft){return function(ct,lt){ft(ct,lt,dt)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.MouseZoneManager=void 0;var St=Ft(2),pt=Ft(7),vt=Ft(5),yt=Ft(1),xt=function(dt){function ft(ct,lt,E,z,ot,it){var at=dt.call(this)||this;return at._element=ct,at._screenElement=lt,at._bufferService=E,at._mouseService=z,at._selectionService=ot,at._optionsService=it,at._zones=[],at._areZonesActive=!1,at._lastHoverCoords=[void 0,void 0],at._initialSelectionLength=0,at.register(pt.addDisposableDomListener(at._element,"mousedown",function(ut){return at._onMouseDown(ut)})),at._mouseMoveListener=function(ut){return at._onMouseMove(ut)},at._mouseLeaveListener=function(ut){return at._onMouseLeave(ut)},at._clickListener=function(ut){return at._onClick(ut)},at}return rt(ft,dt),ft.prototype.dispose=function(){dt.prototype.dispose.call(this),this._deactivate()},ft.prototype.add=function(ct){this._zones.push(ct),this._zones.length===1&&this._activate()},ft.prototype.clearAll=function(ct,lt){if(this._zones.length!==0){ct&<||(ct=0,lt=this._bufferService.rows-1);for(var E=0;Ect&&z.y1<=lt+1||z.y2>ct&&z.y2<=lt+1||z.y1lt+1)&&(this._currentZone&&this._currentZone===z&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(E--,1))}this._zones.length===0&&this._deactivate()}},ft.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},ft.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},ft.prototype._onMouseMove=function(ct){this._lastHoverCoords[0]===ct.pageX&&this._lastHoverCoords[1]===ct.pageY||(this._onHover(ct),this._lastHoverCoords=[ct.pageX,ct.pageY])},ft.prototype._onHover=function(ct){var lt=this,E=this._findZoneEventAt(ct);E!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),E&&(this._currentZone=E,E.hoverCallback&&E.hoverCallback(ct),this._tooltipTimeout=window.setTimeout(function(){return lt._onTooltip(ct)},this._optionsService.options.linkTooltipHoverDuration)))},ft.prototype._onTooltip=function(ct){this._tooltipTimeout=void 0;var lt=this._findZoneEventAt(ct);lt&<.tooltipCallback&<.tooltipCallback(ct)},ft.prototype._onMouseDown=function(ct){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var lt=this._findZoneEventAt(ct);lt!=null&<.willLinkActivate(ct)&&(ct.preventDefault(),ct.stopImmediatePropagation())}},ft.prototype._onMouseLeave=function(ct){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},ft.prototype._onClick=function(ct){var lt=this._findZoneEventAt(ct),E=this._getSelectionLength();lt&&E===this._initialSelectionLength&&(lt.clickCallback(ct),ct.preventDefault(),ct.stopImmediatePropagation())},ft.prototype._getSelectionLength=function(){var ct=this._selectionService.selectionText;return ct?ct.length:0},ft.prototype._findZoneEventAt=function(ct){var lt=this._mouseService.getCoords(ct,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(lt)for(var E=lt[0],z=lt[1],ot=0;ot=it.x1&&E=it.x1||z===it.y2&&Eit.y1&&zlt;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},ct.prototype._createAccessibilityTreeNode=function(){var lt=document.createElement("div");return lt.setAttribute("role","listitem"),lt.tabIndex=-1,this._refreshRowDimensions(lt),lt},ct.prototype._onTab=function(lt){for(var E=0;E0?this._charsToConsume.shift()!==lt&&(this._charsToAnnounce+=lt):this._charsToAnnounce+=lt,lt===` -`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=kt.tooMuchOutput)),Ct.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){E._accessibilityTreeRoot.appendChild(E._liveRegion)},0))},ct.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,Ct.isMac&&xt.removeElementFromParent(this._liveRegion)},ct.prototype._onKey=function(lt){this._clearLiveRegion(),this._charsToConsume.push(lt)},ct.prototype._refreshRows=function(lt,E){this._renderRowsDebouncer.refresh(lt,E,this._terminal.rows)},ct.prototype._renderRows=function(lt,E){for(var z=this._terminal.buffer,ot=z.lines.length.toString(),it=lt;it<=E;it++){var at=z.translateBufferLineToString(z.ydisp+it,!0),ut=(z.ydisp+it+1).toString(),wt=this._rowElements[it];wt&&(at.length===0?wt.innerHTML=" ":wt.textContent=at,wt.setAttribute("aria-posinset",ut),wt.setAttribute("aria-setsize",ot))}this._announceCharacters()},ct.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var lt=0;lt=0;At--)(ut=z[At])&&(Et=(wt<3?ut(Et):wt>3?ut(ot,it,Et):ut(ot,it))||Et);return wt>3&&Et&&Object.defineProperty(ot,it,Et),Et},Ct=this&&this.__param||function(z,ot){return function(it,at){ot(it,at,z)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.DomRenderer=void 0;var St=Ft(58),pt=Ft(9),vt=Ft(2),yt=Ft(5),xt=Ft(1),dt=Ft(0),ft=Ft(10),ct=Ft(17),lt=1,E=function(z){function ot(it,at,ut,wt,Et,At,_t,Mt,jt){var Lt=z.call(this)||this;return Lt._colors=it,Lt._element=at,Lt._screenElement=ut,Lt._viewportElement=wt,Lt._linkifier=Et,Lt._linkifier2=At,Lt._charSizeService=_t,Lt._optionsService=Mt,Lt._bufferService=jt,Lt._terminalClass=lt++,Lt._rowElements=[],Lt._rowContainer=document.createElement("div"),Lt._rowContainer.classList.add("xterm-rows"),Lt._rowContainer.style.lineHeight="normal",Lt._rowContainer.setAttribute("aria-hidden","true"),Lt._refreshRowElements(Lt._bufferService.cols,Lt._bufferService.rows),Lt._selectionContainer=document.createElement("div"),Lt._selectionContainer.classList.add("xterm-selection"),Lt._selectionContainer.setAttribute("aria-hidden","true"),Lt.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},Lt._updateDimensions(),Lt._injectCss(),Lt._rowFactory=new St.DomRendererRowFactory(document,Lt._optionsService,Lt._colors),Lt._element.classList.add("xterm-dom-renderer-owner-"+Lt._terminalClass),Lt._screenElement.appendChild(Lt._rowContainer),Lt._screenElement.appendChild(Lt._selectionContainer),Lt._linkifier.onShowLinkUnderline(function(It){return Lt._onLinkHover(It)}),Lt._linkifier.onHideLinkUnderline(function(It){return Lt._onLinkLeave(It)}),Lt._linkifier2.onShowLinkUnderline(function(It){return Lt._onLinkHover(It)}),Lt._linkifier2.onHideLinkUnderline(function(It){return Lt._onLinkLeave(It)}),Lt}return rt(ot,z),Object.defineProperty(ot.prototype,"onRequestRedraw",{get:function(){return new dt.EventEmitter().event},enumerable:!1,configurable:!0}),ot.prototype.dispose=function(){this._element.classList.remove("xterm-dom-renderer-owner-"+this._terminalClass),ct.removeElementFromParent(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),z.prototype.dispose.call(this)},ot.prototype._updateDimensions=function(){this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;for(var it=0,at=this._rowElements;itat;)this._rowContainer.removeChild(this._rowElements.pop())},ot.prototype.onResize=function(it,at){this._refreshRowElements(it,at),this._updateDimensions()},ot.prototype.onCharSizeChanged=function(){this._updateDimensions()},ot.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},ot.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},ot.prototype.onSelectionChanged=function(it,at,ut){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(it&&at){var wt=it[1]-this._bufferService.buffer.ydisp,Et=at[1]-this._bufferService.buffer.ydisp,At=Math.max(wt,0),_t=Math.min(Et,this._bufferService.rows-1);if(!(At>=this._bufferService.rows||_t<0)){var Mt=document.createDocumentFragment();if(ut)Mt.appendChild(this._createSelectionElement(At,it[0],at[0],_t-At+1));else{var jt=wt===At?it[0]:0,Lt=At===_t?at[0]:this._bufferService.cols;Mt.appendChild(this._createSelectionElement(At,jt,Lt));var It=_t-At-1;if(Mt.appendChild(this._createSelectionElement(At+1,0,this._bufferService.cols,It)),At!==_t){var Ut=Et===_t?at[0]:this._bufferService.cols;Mt.appendChild(this._createSelectionElement(_t,0,Ut))}}this._selectionContainer.appendChild(Mt)}}},ot.prototype._createSelectionElement=function(it,at,ut,wt){wt===void 0&&(wt=1);var Et=document.createElement("div");return Et.style.height=wt*this.dimensions.actualCellHeight+"px",Et.style.top=it*this.dimensions.actualCellHeight+"px",Et.style.left=at*this.dimensions.actualCellWidth+"px",Et.style.width=this.dimensions.actualCellWidth*(ut-at)+"px",Et},ot.prototype.onCursorMove=function(){},ot.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},ot.prototype.clear=function(){for(var it=0,at=this._rowElements;it=Et&&(it=0,ut++)}},ot=kt([Ct(6,yt.ICharSizeService),Ct(7,xt.IOptionsService),Ct(8,xt.IBufferService)],ot)}(vt.Disposable);Rt.DomRenderer=E},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.DomRendererRowFactory=Rt.CURSOR_STYLE_UNDERLINE_CLASS=Rt.CURSOR_STYLE_BAR_CLASS=Rt.CURSOR_STYLE_BLOCK_CLASS=Rt.CURSOR_BLINK_CLASS=Rt.CURSOR_CLASS=Rt.UNDERLINE_CLASS=Rt.ITALIC_CLASS=Rt.DIM_CLASS=Rt.BOLD_CLASS=void 0;var ie=Ft(9),rt=Ft(3),kt=Ft(4),Ct=Ft(10);Rt.BOLD_CLASS="xterm-bold",Rt.DIM_CLASS="xterm-dim",Rt.ITALIC_CLASS="xterm-italic",Rt.UNDERLINE_CLASS="xterm-underline",Rt.CURSOR_CLASS="xterm-cursor",Rt.CURSOR_BLINK_CLASS="xterm-cursor-blink",Rt.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",Rt.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",Rt.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var St=function(){function vt(yt,xt,dt){this._document=yt,this._optionsService=xt,this._colors=dt,this._workCell=new kt.CellData}return vt.prototype.setColors=function(yt){this._colors=yt},vt.prototype.createRow=function(yt,xt,dt,ft,ct,lt,E){for(var z=this._document.createDocumentFragment(),ot=0,it=Math.min(yt.length,E)-1;it>=0;it--)if(yt.loadCell(it,this._workCell).getCode()!==rt.NULL_CELL_CODE||xt&&it===ft){ot=it+1;break}for(it=0;it1&&(ut.style.width=lt*at+"px"),xt&&it===ft)switch(ut.classList.add(Rt.CURSOR_CLASS),ct&&ut.classList.add(Rt.CURSOR_BLINK_CLASS),dt){case"bar":ut.classList.add(Rt.CURSOR_STYLE_BAR_CLASS);break;case"underline":ut.classList.add(Rt.CURSOR_STYLE_UNDERLINE_CLASS);break;default:ut.classList.add(Rt.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&ut.classList.add(Rt.BOLD_CLASS),this._workCell.isItalic()&&ut.classList.add(Rt.ITALIC_CLASS),this._workCell.isDim()&&ut.classList.add(Rt.DIM_CLASS),this._workCell.isUnderline()&&ut.classList.add(Rt.UNDERLINE_CLASS),this._workCell.isInvisible()?ut.textContent=rt.WHITESPACE_CELL_CHAR:ut.textContent=this._workCell.getChars()||rt.WHITESPACE_CELL_CHAR;var wt=this._workCell.getFgColor(),Et=this._workCell.getFgColorMode(),At=this._workCell.getBgColor(),_t=this._workCell.getBgColorMode(),Mt=!!this._workCell.isInverse();if(Mt){var jt=wt;wt=At,At=jt;var Lt=Et;Et=_t,_t=Lt}switch(Et){case 16777216:case 33554432:this._workCell.isBold()&&wt<8&&this._optionsService.options.drawBoldTextInBrightColors&&(wt+=8),this._applyMinimumContrast(ut,this._colors.background,this._colors.ansi[wt])||ut.classList.add("xterm-fg-"+wt);break;case 50331648:var It=Ct.rgba.toColor(wt>>16&255,wt>>8&255,255&wt);this._applyMinimumContrast(ut,this._colors.background,It)||this._addStyle(ut,"color:#"+pt(wt.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(ut,this._colors.background,this._colors.foreground)||Mt&&ut.classList.add("xterm-fg-"+ie.INVERTED_DEFAULT_COLOR)}switch(_t){case 16777216:case 33554432:ut.classList.add("xterm-bg-"+At);break;case 50331648:this._addStyle(ut,"background-color:#"+pt(At.toString(16),"0",6));break;case 0:default:Mt&&ut.classList.add("xterm-bg-"+ie.INVERTED_DEFAULT_COLOR)}z.appendChild(ut)}}return z},vt.prototype._applyMinimumContrast=function(yt,xt,dt){if(this._optionsService.options.minimumContrastRatio===1)return!1;var ft=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return ft===void 0&&(ft=Ct.color.ensureContrastRatio(xt,dt,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,ft!=null?ft:null)),!!ft&&(this._addStyle(yt,"color:"+ft.css),!0)},vt.prototype._addStyle=function(yt,xt){yt.setAttribute("style",""+(yt.getAttribute("style")||"")+xt+";")},vt}();function pt(vt,yt,xt){for(;vt.length"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};Rt.evaluateKeyboardEvent=function(kt,Ct,St,pt){var vt={type:0,cancel:!1,key:void 0},yt=(kt.shiftKey?1:0)|(kt.altKey?2:0)|(kt.ctrlKey?4:0)|(kt.metaKey?8:0);switch(kt.keyCode){case 0:kt.key==="UIKeyInputUpArrow"?vt.key=Ct?ie.C0.ESC+"OA":ie.C0.ESC+"[A":kt.key==="UIKeyInputLeftArrow"?vt.key=Ct?ie.C0.ESC+"OD":ie.C0.ESC+"[D":kt.key==="UIKeyInputRightArrow"?vt.key=Ct?ie.C0.ESC+"OC":ie.C0.ESC+"[C":kt.key==="UIKeyInputDownArrow"&&(vt.key=Ct?ie.C0.ESC+"OB":ie.C0.ESC+"[B");break;case 8:if(kt.shiftKey){vt.key=ie.C0.BS;break}if(kt.altKey){vt.key=ie.C0.ESC+ie.C0.DEL;break}vt.key=ie.C0.DEL;break;case 9:if(kt.shiftKey){vt.key=ie.C0.ESC+"[Z";break}vt.key=ie.C0.HT,vt.cancel=!0;break;case 13:vt.key=kt.altKey?ie.C0.ESC+ie.C0.CR:ie.C0.CR,vt.cancel=!0;break;case 27:vt.key=ie.C0.ESC,kt.altKey&&(vt.key=ie.C0.ESC+ie.C0.ESC),vt.cancel=!0;break;case 37:if(kt.metaKey)break;yt?(vt.key=ie.C0.ESC+"[1;"+(yt+1)+"D",vt.key===ie.C0.ESC+"[1;3D"&&(vt.key=ie.C0.ESC+(St?"b":"[1;5D"))):vt.key=Ct?ie.C0.ESC+"OD":ie.C0.ESC+"[D";break;case 39:if(kt.metaKey)break;yt?(vt.key=ie.C0.ESC+"[1;"+(yt+1)+"C",vt.key===ie.C0.ESC+"[1;3C"&&(vt.key=ie.C0.ESC+(St?"f":"[1;5C"))):vt.key=Ct?ie.C0.ESC+"OC":ie.C0.ESC+"[C";break;case 38:if(kt.metaKey)break;yt?(vt.key=ie.C0.ESC+"[1;"+(yt+1)+"A",St||vt.key!==ie.C0.ESC+"[1;3A"||(vt.key=ie.C0.ESC+"[1;5A")):vt.key=Ct?ie.C0.ESC+"OA":ie.C0.ESC+"[A";break;case 40:if(kt.metaKey)break;yt?(vt.key=ie.C0.ESC+"[1;"+(yt+1)+"B",St||vt.key!==ie.C0.ESC+"[1;3B"||(vt.key=ie.C0.ESC+"[1;5B")):vt.key=Ct?ie.C0.ESC+"OB":ie.C0.ESC+"[B";break;case 45:kt.shiftKey||kt.ctrlKey||(vt.key=ie.C0.ESC+"[2~");break;case 46:vt.key=yt?ie.C0.ESC+"[3;"+(yt+1)+"~":ie.C0.ESC+"[3~";break;case 36:vt.key=yt?ie.C0.ESC+"[1;"+(yt+1)+"H":Ct?ie.C0.ESC+"OH":ie.C0.ESC+"[H";break;case 35:vt.key=yt?ie.C0.ESC+"[1;"+(yt+1)+"F":Ct?ie.C0.ESC+"OF":ie.C0.ESC+"[F";break;case 33:kt.shiftKey?vt.type=2:vt.key=ie.C0.ESC+"[5~";break;case 34:kt.shiftKey?vt.type=3:vt.key=ie.C0.ESC+"[6~";break;case 112:vt.key=yt?ie.C0.ESC+"[1;"+(yt+1)+"P":ie.C0.ESC+"OP";break;case 113:vt.key=yt?ie.C0.ESC+"[1;"+(yt+1)+"Q":ie.C0.ESC+"OQ";break;case 114:vt.key=yt?ie.C0.ESC+"[1;"+(yt+1)+"R":ie.C0.ESC+"OR";break;case 115:vt.key=yt?ie.C0.ESC+"[1;"+(yt+1)+"S":ie.C0.ESC+"OS";break;case 116:vt.key=yt?ie.C0.ESC+"[15;"+(yt+1)+"~":ie.C0.ESC+"[15~";break;case 117:vt.key=yt?ie.C0.ESC+"[17;"+(yt+1)+"~":ie.C0.ESC+"[17~";break;case 118:vt.key=yt?ie.C0.ESC+"[18;"+(yt+1)+"~":ie.C0.ESC+"[18~";break;case 119:vt.key=yt?ie.C0.ESC+"[19;"+(yt+1)+"~":ie.C0.ESC+"[19~";break;case 120:vt.key=yt?ie.C0.ESC+"[20;"+(yt+1)+"~":ie.C0.ESC+"[20~";break;case 121:vt.key=yt?ie.C0.ESC+"[21;"+(yt+1)+"~":ie.C0.ESC+"[21~";break;case 122:vt.key=yt?ie.C0.ESC+"[23;"+(yt+1)+"~":ie.C0.ESC+"[23~";break;case 123:vt.key=yt?ie.C0.ESC+"[24;"+(yt+1)+"~":ie.C0.ESC+"[24~";break;default:if(!kt.ctrlKey||kt.shiftKey||kt.altKey||kt.metaKey)if(St&&!pt||!kt.altKey||kt.metaKey)St&&!kt.altKey&&!kt.ctrlKey&&kt.metaKey?kt.keyCode===65&&(vt.type=1):kt.key&&!kt.ctrlKey&&!kt.altKey&&!kt.metaKey&&kt.keyCode>=48&&kt.key.length===1?vt.key=kt.key:kt.key&&kt.ctrlKey&&kt.key==="_"&&(vt.key=ie.C0.US);else{var xt=rt[kt.keyCode],dt=xt&&xt[kt.shiftKey?1:0];if(dt)vt.key=ie.C0.ESC+dt;else if(kt.keyCode>=65&&kt.keyCode<=90){var ft=kt.ctrlKey?kt.keyCode-64:kt.keyCode+32;vt.key=ie.C0.ESC+String.fromCharCode(ft)}}else kt.keyCode>=65&&kt.keyCode<=90?vt.key=String.fromCharCode(kt.keyCode-64):kt.keyCode===32?vt.key=ie.C0.NUL:kt.keyCode>=51&&kt.keyCode<=55?vt.key=String.fromCharCode(kt.keyCode-51+27):kt.keyCode===56?vt.key=ie.C0.DEL:kt.keyCode===219?vt.key=ie.C0.ESC:kt.keyCode===220?vt.key=ie.C0.FS:kt.keyCode===221&&(vt.key=ie.C0.GS)}return vt}},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(lt,E){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,ot){z.__proto__=ot}||function(z,ot){for(var it in ot)ot.hasOwnProperty(it)&&(z[it]=ot[it])})(lt,E)},function(lt,E){function z(){this.constructor=lt}ie(lt,E),lt.prototype=E===null?Object.create(E):(z.prototype=E.prototype,new z)}),kt=this&&this.__decorate||function(lt,E,z,ot){var it,at=arguments.length,ut=at<3?E:ot===null?ot=Object.getOwnPropertyDescriptor(E,z):ot;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ut=Reflect.decorate(lt,E,z,ot);else for(var wt=lt.length-1;wt>=0;wt--)(it=lt[wt])&&(ut=(at<3?it(ut):at>3?it(E,z,ut):it(E,z))||ut);return at>3&&ut&&Object.defineProperty(E,z,ut),ut},Ct=this&&this.__param||function(lt,E){return function(z,ot){E(z,ot,lt)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.RenderService=void 0;var St=Ft(31),pt=Ft(0),vt=Ft(2),yt=Ft(32),xt=Ft(7),dt=Ft(1),ft=Ft(5),ct=function(lt){function E(z,ot,it,at,ut,wt){var Et=lt.call(this)||this;if(Et._renderer=z,Et._rowCount=ot,Et._isPaused=!1,Et._needsFullRefresh=!1,Et._isNextRenderRedrawOnly=!0,Et._needsSelectionRefresh=!1,Et._canvasWidth=0,Et._canvasHeight=0,Et._selectionState={start:void 0,end:void 0,columnSelectMode:!1},Et._onDimensionsChange=new pt.EventEmitter,Et._onRender=new pt.EventEmitter,Et._onRefreshRequest=new pt.EventEmitter,Et.register({dispose:function(){return Et._renderer.dispose()}}),Et._renderDebouncer=new St.RenderDebouncer(function(_t,Mt){return Et._renderRows(_t,Mt)}),Et.register(Et._renderDebouncer),Et._screenDprMonitor=new yt.ScreenDprMonitor,Et._screenDprMonitor.setListener(function(){return Et.onDevicePixelRatioChange()}),Et.register(Et._screenDprMonitor),Et.register(wt.onResize(function(_t){return Et._fullRefresh()})),Et.register(at.onOptionChange(function(){return Et._renderer.onOptionsChanged()})),Et.register(ut.onCharSizeChange(function(){return Et.onCharSizeChanged()})),Et._renderer.onRequestRedraw(function(_t){return Et.refreshRows(_t.start,_t.end,!0)}),Et.register(xt.addDisposableDomListener(window,"resize",function(){return Et.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var At=new IntersectionObserver(function(_t){return Et._onIntersectionChange(_t[_t.length-1])},{threshold:0});At.observe(it),Et.register({dispose:function(){return At.disconnect()}})}return Et}return rt(E,lt),Object.defineProperty(E.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),E.prototype._onIntersectionChange=function(z){this._isPaused=z.intersectionRatio===0,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},E.prototype.refreshRows=function(z,ot,it){it===void 0&&(it=!1),this._isPaused?this._needsFullRefresh=!0:(it||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(z,ot,this._rowCount))},E.prototype._renderRows=function(z,ot){this._renderer.renderRows(z,ot),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:z,end:ot}),this._isNextRenderRedrawOnly=!0},E.prototype.resize=function(z,ot){this._rowCount=ot,this._fireOnCanvasResize()},E.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},E.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},E.prototype.dispose=function(){lt.prototype.dispose.call(this)},E.prototype.setRenderer=function(z){var ot=this;this._renderer.dispose(),this._renderer=z,this._renderer.onRequestRedraw(function(it){return ot.refreshRows(it.start,it.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},E.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},E.prototype.setColors=function(z){this._renderer.setColors(z),this._fullRefresh()},E.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},E.prototype.onResize=function(z,ot){this._renderer.onResize(z,ot),this._fullRefresh()},E.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},E.prototype.onBlur=function(){this._renderer.onBlur()},E.prototype.onFocus=function(){this._renderer.onFocus()},E.prototype.onSelectionChanged=function(z,ot,it){this._selectionState.start=z,this._selectionState.end=ot,this._selectionState.columnSelectMode=it,this._renderer.onSelectionChanged(z,ot,it)},E.prototype.onCursorMove=function(){this._renderer.onCursorMove()},E.prototype.clear=function(){this._renderer.clear()},E.prototype.registerCharacterJoiner=function(z){return this._renderer.registerCharacterJoiner(z)},E.prototype.deregisterCharacterJoiner=function(z){return this._renderer.deregisterCharacterJoiner(z)},E=kt([Ct(3,dt.IOptionsService),Ct(4,ft.ICharSizeService),Ct(5,dt.IBufferService)],E)}(vt.Disposable);Rt.RenderService=ct},function(Ke,Rt,Ft){"use strict";var ie=this&&this.__decorate||function(vt,yt,xt,dt){var ft,ct=arguments.length,lt=ct<3?yt:dt===null?dt=Object.getOwnPropertyDescriptor(yt,xt):dt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")lt=Reflect.decorate(vt,yt,xt,dt);else for(var E=vt.length-1;E>=0;E--)(ft=vt[E])&&(lt=(ct<3?ft(lt):ct>3?ft(yt,xt,lt):ft(yt,xt))||lt);return ct>3&<&&Object.defineProperty(yt,xt,lt),lt},rt=this&&this.__param||function(vt,yt){return function(xt,dt){yt(xt,dt,vt)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.CharSizeService=void 0;var kt=Ft(1),Ct=Ft(0),St=function(){function vt(yt,xt,dt){this._optionsService=dt,this.width=0,this.height=0,this._onCharSizeChange=new Ct.EventEmitter,this._measureStrategy=new pt(yt,xt,this._optionsService)}return Object.defineProperty(vt.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(vt.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),vt.prototype.measure=function(){var yt=this._measureStrategy.measure();yt.width===this.width&&yt.height===this.height||(this.width=yt.width,this.height=yt.height,this._onCharSizeChange.fire())},vt=ie([rt(2,kt.IOptionsService)],vt)}();Rt.CharSizeService=St;var pt=function(){function vt(yt,xt,dt){this._document=yt,this._parentElement=xt,this._optionsService=dt,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return vt.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var yt=this._measureElement.getBoundingClientRect();return yt.width!==0&&yt.height!==0&&(this._result.width=yt.width,this._result.height=Math.ceil(yt.height)),this._result},vt}()},function(Ke,Rt,Ft){"use strict";var ie=this&&this.__decorate||function(pt,vt,yt,xt){var dt,ft=arguments.length,ct=ft<3?vt:xt===null?xt=Object.getOwnPropertyDescriptor(vt,yt):xt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ct=Reflect.decorate(pt,vt,yt,xt);else for(var lt=pt.length-1;lt>=0;lt--)(dt=pt[lt])&&(ct=(ft<3?dt(ct):ft>3?dt(vt,yt,ct):dt(vt,yt))||ct);return ft>3&&ct&&Object.defineProperty(vt,yt,ct),ct},rt=this&&this.__param||function(pt,vt){return function(yt,xt){vt(yt,xt,pt)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.MouseService=void 0;var kt=Ft(5),Ct=Ft(30),St=function(){function pt(vt,yt){this._renderService=vt,this._charSizeService=yt}return pt.prototype.getCoords=function(vt,yt,xt,dt,ft){return Ct.getCoords(vt,yt,xt,dt,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,ft)},pt.prototype.getRawByteCoords=function(vt,yt,xt,dt){var ft=this.getCoords(vt,yt,xt,dt);return Ct.getRawByteCoords(ft)},pt=ie([rt(0,kt.IRenderService),rt(1,kt.ICharSizeService)],pt)}();Rt.MouseService=St},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(dt,ft){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ct,lt){ct.__proto__=lt}||function(ct,lt){for(var E in lt)lt.hasOwnProperty(E)&&(ct[E]=lt[E])})(dt,ft)},function(dt,ft){function ct(){this.constructor=dt}ie(dt,ft),dt.prototype=ft===null?Object.create(ft):(ct.prototype=ft.prototype,new ct)}),kt=this&&this.__decorate||function(dt,ft,ct,lt){var E,z=arguments.length,ot=z<3?ft:lt===null?lt=Object.getOwnPropertyDescriptor(ft,ct):lt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ot=Reflect.decorate(dt,ft,ct,lt);else for(var it=dt.length-1;it>=0;it--)(E=dt[it])&&(ot=(z<3?E(ot):z>3?E(ft,ct,ot):E(ft,ct))||ot);return z>3&&ot&&Object.defineProperty(ft,ct,ot),ot},Ct=this&&this.__param||function(dt,ft){return function(ct,lt){ft(ct,lt,dt)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.Linkifier2=void 0;var St=Ft(1),pt=Ft(0),vt=Ft(2),yt=Ft(7),xt=function(dt){function ft(ct){var lt=dt.call(this)||this;return lt._bufferService=ct,lt._linkProviders=[],lt._linkCacheDisposables=[],lt._isMouseOut=!0,lt._activeLine=-1,lt._onShowLinkUnderline=lt.register(new pt.EventEmitter),lt._onHideLinkUnderline=lt.register(new pt.EventEmitter),lt.register(vt.getDisposeArrayDisposable(lt._linkCacheDisposables)),lt}return rt(ft,dt),Object.defineProperty(ft.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(ft.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),ft.prototype.registerLinkProvider=function(ct){var lt=this;return this._linkProviders.push(ct),{dispose:function(){var E=lt._linkProviders.indexOf(ct);E!==-1&<._linkProviders.splice(E,1)}}},ft.prototype.attachToDom=function(ct,lt,E){var z=this;this._element=ct,this._mouseService=lt,this._renderService=E,this.register(yt.addDisposableDomListener(this._element,"mouseleave",function(){z._isMouseOut=!0,z._clearCurrentLink()})),this.register(yt.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(yt.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},ft.prototype._onMouseMove=function(ct){if(this._lastMouseEvent=ct,this._element&&this._mouseService){var lt=this._positionFromMouseEvent(ct,this._element,this._mouseService);if(lt){this._isMouseOut=!1;for(var E=ct.composedPath(),z=0;zct?this._bufferService.cols:at.link.range.end.x,Et=ut;Et<=wt;Et++){if(E.has(Et)){ot.splice(it--,1);break}E.add(Et)}}},ft.prototype._checkLinkProviderResult=function(ct,lt,E){var z,ot=this;if(!this._activeProviderReplies)return E;for(var it=this._activeProviderReplies.get(ct),at=!1,ut=0;ut=ct&&this._currentLink.link.range.end.y<=lt)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,vt.disposeArray(this._linkCacheDisposables))},ft.prototype._handleNewLink=function(ct){var lt=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var E=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);E&&this._linkAtPosition(ct.link,E)&&(this._currentLink=ct,this._currentLink.state={decorations:{underline:ct.link.decorations===void 0||ct.link.decorations.underline,pointerCursor:ct.link.decorations===void 0||ct.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,ct.link,this._lastMouseEvent),ct.link.decorations={},Object.defineProperties(ct.link.decorations,{pointerCursor:{get:function(){var z,ot;return(ot=(z=lt._currentLink)===null||z===void 0?void 0:z.state)===null||ot===void 0?void 0:ot.decorations.pointerCursor},set:function(z){var ot,it;!((ot=lt._currentLink)===null||ot===void 0)&&ot.state&<._currentLink.state.decorations.pointerCursor!==z&&(lt._currentLink.state.decorations.pointerCursor=z,lt._currentLink.state.isHovered&&((it=lt._element)===null||it===void 0||it.classList.toggle("xterm-cursor-pointer",z)))}},underline:{get:function(){var z,ot;return(ot=(z=lt._currentLink)===null||z===void 0?void 0:z.state)===null||ot===void 0?void 0:ot.decorations.underline},set:function(z){var ot,it,at;!((ot=lt._currentLink)===null||ot===void 0)&&ot.state&&((at=(it=lt._currentLink)===null||it===void 0?void 0:it.state)===null||at===void 0?void 0:at.decorations.underline)!==z&&(lt._currentLink.state.decorations.underline=z,lt._currentLink.state.isHovered&<._fireUnderlineEvent(ct.link,z))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(z){var ot=z.start===0?0:z.start+1+lt._bufferService.buffer.ydisp;lt._clearCurrentLink(ot,z.end+1+lt._bufferService.buffer.ydisp)})))}},ft.prototype._linkHover=function(ct,lt,E){var z;!((z=this._currentLink)===null||z===void 0)&&z.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(lt,!0),this._currentLink.state.decorations.pointerCursor&&ct.classList.add("xterm-cursor-pointer")),lt.hover&<.hover(E,lt.text)},ft.prototype._fireUnderlineEvent=function(ct,lt){var E=ct.range,z=this._bufferService.buffer.ydisp,ot=this._createLinkUnderlineEvent(E.start.x-1,E.start.y-z-1,E.end.x,E.end.y-z-1,void 0);(lt?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(ot)},ft.prototype._linkLeave=function(ct,lt,E){var z;!((z=this._currentLink)===null||z===void 0)&&z.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(lt,!1),this._currentLink.state.decorations.pointerCursor&&ct.classList.remove("xterm-cursor-pointer")),lt.leave&<.leave(E,lt.text)},ft.prototype._linkAtPosition=function(ct,lt){var E=ct.range.start.y===ct.range.end.y,z=ct.range.start.ylt.y;return(E&&ct.range.start.x<=lt.x&&ct.range.end.x>=lt.x||z&&ct.range.end.x>=lt.x||ot&&ct.range.start.x<=lt.x||z&&ot)&&ct.range.start.y<=lt.y&&ct.range.end.y>=lt.y},ft.prototype._positionFromMouseEvent=function(ct,lt,E){var z=E.getCoords(ct,lt,this._bufferService.cols,this._bufferService.rows);if(z)return{x:z[0],y:z[1]+this._bufferService.buffer.ydisp}},ft.prototype._createLinkUnderlineEvent=function(ct,lt,E,z,ot){return{x1:ct,y1:lt,x2:E,y2:z,cols:this._bufferService.cols,fg:ot}},ft=kt([Ct(0,St.IBufferService)],ft)}(vt.Disposable);Rt.Linkifier2=xt},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.CoreBrowserService=void 0;var ie=function(){function rt(kt){this._textarea=kt}return Object.defineProperty(rt.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),rt}();Rt.CoreBrowserService=ie},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(ut,wt){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Et,At){Et.__proto__=At}||function(Et,At){for(var _t in At)At.hasOwnProperty(_t)&&(Et[_t]=At[_t])})(ut,wt)},function(ut,wt){function Et(){this.constructor=ut}ie(ut,wt),ut.prototype=wt===null?Object.create(wt):(Et.prototype=wt.prototype,new Et)});Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.CoreTerminal=void 0;var kt=Ft(2),Ct=Ft(1),St=Ft(66),pt=Ft(67),vt=Ft(68),yt=Ft(74),xt=Ft(75),dt=Ft(0),ft=Ft(76),ct=Ft(77),lt=Ft(78),E=Ft(80),z=Ft(81),ot=Ft(19),it=Ft(82),at=function(ut){function wt(Et){var At=ut.call(this)||this;return At._onBinary=new dt.EventEmitter,At._onData=new dt.EventEmitter,At._onLineFeed=new dt.EventEmitter,At._onResize=new dt.EventEmitter,At._onScroll=new dt.EventEmitter,At._instantiationService=new St.InstantiationService,At.optionsService=new yt.OptionsService(Et),At._instantiationService.setService(Ct.IOptionsService,At.optionsService),At._bufferService=At.register(At._instantiationService.createInstance(vt.BufferService)),At._instantiationService.setService(Ct.IBufferService,At._bufferService),At._logService=At._instantiationService.createInstance(pt.LogService),At._instantiationService.setService(Ct.ILogService,At._logService),At._coreService=At.register(At._instantiationService.createInstance(xt.CoreService,function(){return At.scrollToBottom()})),At._instantiationService.setService(Ct.ICoreService,At._coreService),At._coreMouseService=At._instantiationService.createInstance(ft.CoreMouseService),At._instantiationService.setService(Ct.ICoreMouseService,At._coreMouseService),At._dirtyRowService=At._instantiationService.createInstance(ct.DirtyRowService),At._instantiationService.setService(Ct.IDirtyRowService,At._dirtyRowService),At.unicodeService=At._instantiationService.createInstance(lt.UnicodeService),At._instantiationService.setService(Ct.IUnicodeService,At.unicodeService),At._charsetService=At._instantiationService.createInstance(E.CharsetService),At._instantiationService.setService(Ct.ICharsetService,At._charsetService),At._inputHandler=new ot.InputHandler(At._bufferService,At._charsetService,At._coreService,At._dirtyRowService,At._logService,At.optionsService,At._coreMouseService,At.unicodeService),At.register(dt.forwardEvent(At._inputHandler.onLineFeed,At._onLineFeed)),At.register(At._inputHandler),At.register(dt.forwardEvent(At._bufferService.onResize,At._onResize)),At.register(dt.forwardEvent(At._coreService.onData,At._onData)),At.register(dt.forwardEvent(At._coreService.onBinary,At._onBinary)),At.register(At.optionsService.onOptionChange(function(_t){return At._updateOptions(_t)})),At._writeBuffer=new it.WriteBuffer(function(_t){return At._inputHandler.parse(_t)}),At}return rt(wt,ut),Object.defineProperty(wt.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(wt.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(wt.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(wt.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(wt.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(wt.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(wt.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(wt.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),wt.prototype.dispose=function(){var Et;this._isDisposed||(ut.prototype.dispose.call(this),(Et=this._windowsMode)===null||Et===void 0||Et.dispose(),this._windowsMode=void 0)},wt.prototype.write=function(Et,At){this._writeBuffer.write(Et,At)},wt.prototype.writeSync=function(Et){this._writeBuffer.writeSync(Et)},wt.prototype.resize=function(Et,At){isNaN(Et)||isNaN(At)||(Et=Math.max(Et,vt.MINIMUM_COLS),At=Math.max(At,vt.MINIMUM_ROWS),this._bufferService.resize(Et,At))},wt.prototype.scroll=function(Et,At){At===void 0&&(At=!1);var _t,Mt=this._bufferService.buffer;(_t=this._cachedBlankLine)&&_t.length===this.cols&&_t.getFg(0)===Et.fg&&_t.getBg(0)===Et.bg||(_t=Mt.getBlankLine(Et,At),this._cachedBlankLine=_t),_t.isWrapped=At;var jt=Mt.ybase+Mt.scrollTop,Lt=Mt.ybase+Mt.scrollBottom;if(Mt.scrollTop===0){var It=Mt.lines.isFull;Lt===Mt.lines.length-1?It?Mt.lines.recycle().copyFrom(_t):Mt.lines.push(_t.clone()):Mt.lines.splice(Lt+1,0,_t.clone()),It?this._bufferService.isUserScrolling&&(Mt.ydisp=Math.max(Mt.ydisp-1,0)):(Mt.ybase++,this._bufferService.isUserScrolling||Mt.ydisp++)}else{var Ut=Lt-jt+1;Mt.lines.shiftElements(jt+1,Ut-1,-1),Mt.lines.set(Lt,_t.clone())}this._bufferService.isUserScrolling||(Mt.ydisp=Mt.ybase),this._dirtyRowService.markRangeDirty(Mt.scrollTop,Mt.scrollBottom),this._onScroll.fire(Mt.ydisp)},wt.prototype.scrollLines=function(Et,At){var _t=this._bufferService.buffer;if(Et<0){if(_t.ydisp===0)return;this._bufferService.isUserScrolling=!0}else Et+_t.ydisp>=_t.ybase&&(this._bufferService.isUserScrolling=!1);var Mt=_t.ydisp;_t.ydisp=Math.max(Math.min(_t.ydisp+Et,_t.ybase),0),Mt!==_t.ydisp&&(At||this._onScroll.fire(_t.ydisp))},wt.prototype.scrollPages=function(Et){this.scrollLines(Et*(this.rows-1))},wt.prototype.scrollToTop=function(){this.scrollLines(-this._bufferService.buffer.ydisp)},wt.prototype.scrollToBottom=function(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)},wt.prototype.scrollToLine=function(Et){var At=Et-this._bufferService.buffer.ydisp;At!==0&&this.scrollLines(At)},wt.prototype.addEscHandler=function(Et,At){return this._inputHandler.addEscHandler(Et,At)},wt.prototype.addDcsHandler=function(Et,At){return this._inputHandler.addDcsHandler(Et,At)},wt.prototype.addCsiHandler=function(Et,At){return this._inputHandler.addCsiHandler(Et,At)},wt.prototype.addOscHandler=function(Et,At){return this._inputHandler.addOscHandler(Et,At)},wt.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},wt.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset()},wt.prototype._updateOptions=function(Et){var At;switch(Et){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((At=this._windowsMode)===null||At===void 0||At.dispose(),this._windowsMode=void 0)}},wt.prototype._enableWindowsMode=function(){var Et=this;if(!this._windowsMode){var At=[];At.push(this.onLineFeed(z.updateWindowsModeWrappedState.bind(null,this._bufferService))),At.push(this.addCsiHandler({final:"H"},function(){return z.updateWindowsModeWrappedState(Et._bufferService),!1})),this._windowsMode={dispose:function(){for(var _t=0,Mt=At;_t0?dt[0].index:yt.length;if(yt.length!==ot)throw new Error("[createInstance] First service dependency of "+vt.name+" at position "+(ot+1)+" conflicts with "+yt.length+" static arguments");return new(vt.bind.apply(vt,ie([void 0],ie(yt,ft))))},pt}();Rt.InstantiationService=St},function(Ke,Rt,Ft){"use strict";var ie=this&&this.__decorate||function(yt,xt,dt,ft){var ct,lt=arguments.length,E=lt<3?xt:ft===null?ft=Object.getOwnPropertyDescriptor(xt,dt):ft;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(yt,xt,dt,ft);else for(var z=yt.length-1;z>=0;z--)(ct=yt[z])&&(E=(lt<3?ct(E):lt>3?ct(xt,dt,E):ct(xt,dt))||E);return lt>3&&E&&Object.defineProperty(xt,dt,E),E},rt=this&&this.__param||function(yt,xt){return function(dt,ft){xt(dt,ft,yt)}},kt=this&&this.__spreadArrays||function(){for(var yt=0,xt=0,dt=arguments.length;xt=0;it--)(E=dt[it])&&(ot=(z<3?E(ot):z>3?E(ft,ct,ot):E(ft,ct))||ot);return z>3&&ot&&Object.defineProperty(ft,ct,ot),ot},Ct=this&&this.__param||function(dt,ft){return function(ct,lt){ft(ct,lt,dt)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.BufferService=Rt.MINIMUM_ROWS=Rt.MINIMUM_COLS=void 0;var St=Ft(1),pt=Ft(69),vt=Ft(0),yt=Ft(2);Rt.MINIMUM_COLS=2,Rt.MINIMUM_ROWS=1;var xt=function(dt){function ft(ct){var lt=dt.call(this)||this;return lt._optionsService=ct,lt.isUserScrolling=!1,lt._onResize=new vt.EventEmitter,lt.cols=Math.max(ct.options.cols,Rt.MINIMUM_COLS),lt.rows=Math.max(ct.options.rows,Rt.MINIMUM_ROWS),lt.buffers=new pt.BufferSet(ct,lt),lt}return rt(ft,dt),Object.defineProperty(ft.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(ft.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),ft.prototype.dispose=function(){dt.prototype.dispose.call(this),this.buffers.dispose()},ft.prototype.resize=function(ct,lt){this.cols=ct,this.rows=lt,this.buffers.resize(ct,lt),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:ct,rows:lt})},ft.prototype.reset=function(){this.buffers.dispose(),this.buffers=new pt.BufferSet(this._optionsService,this),this.isUserScrolling=!1},ft=kt([Ct(0,St.IOptionsService)],ft)}(yt.Disposable);Rt.BufferService=xt},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(pt,vt){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(yt,xt){yt.__proto__=xt}||function(yt,xt){for(var dt in xt)xt.hasOwnProperty(dt)&&(yt[dt]=xt[dt])})(pt,vt)},function(pt,vt){function yt(){this.constructor=pt}ie(pt,vt),pt.prototype=vt===null?Object.create(vt):(yt.prototype=vt.prototype,new yt)});Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.BufferSet=void 0;var kt=Ft(70),Ct=Ft(0),St=function(pt){function vt(yt,xt){var dt=pt.call(this)||this;return dt._onBufferActivate=dt.register(new Ct.EventEmitter),dt._normal=new kt.Buffer(!0,yt,xt),dt._normal.fillViewportRows(),dt._alt=new kt.Buffer(!1,yt,xt),dt._activeBuffer=dt._normal,dt.setupTabStops(),dt}return rt(vt,pt),Object.defineProperty(vt.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(vt.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(vt.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(vt.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),vt.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},vt.prototype.activateAltBuffer=function(yt){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(yt),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},vt.prototype.resize=function(yt,xt){this._normal.resize(yt,xt),this._alt.resize(yt,xt)},vt.prototype.setupTabStops=function(yt){this._normal.setupTabStops(yt),this._alt.setupTabStops(yt)},vt}(Ft(2).Disposable);Rt.BufferSet=St},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.BufferStringIterator=Rt.Buffer=Rt.MAX_BUFFER_SIZE=void 0;var ie=Ft(71),rt=Ft(16),kt=Ft(4),Ct=Ft(3),St=Ft(72),pt=Ft(73),vt=Ft(20),yt=Ft(6);Rt.MAX_BUFFER_SIZE=4294967295;var xt=function(){function ft(ct,lt,E){this._hasScrollback=ct,this._optionsService=lt,this._bufferService=E,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=rt.DEFAULT_ATTR_DATA.clone(),this.savedCharset=vt.DEFAULT_CHARSET,this.markers=[],this._nullCell=kt.CellData.fromCharData([0,Ct.NULL_CELL_CHAR,Ct.NULL_CELL_WIDTH,Ct.NULL_CELL_CODE]),this._whitespaceCell=kt.CellData.fromCharData([0,Ct.WHITESPACE_CELL_CHAR,Ct.WHITESPACE_CELL_WIDTH,Ct.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new ie.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return ft.prototype.getNullCell=function(ct){return ct?(this._nullCell.fg=ct.fg,this._nullCell.bg=ct.bg,this._nullCell.extended=ct.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new yt.ExtendedAttrs),this._nullCell},ft.prototype.getWhitespaceCell=function(ct){return ct?(this._whitespaceCell.fg=ct.fg,this._whitespaceCell.bg=ct.bg,this._whitespaceCell.extended=ct.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new yt.ExtendedAttrs),this._whitespaceCell},ft.prototype.getBlankLine=function(ct,lt){return new rt.BufferLine(this._bufferService.cols,this.getNullCell(ct),lt)},Object.defineProperty(ft.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(ft.prototype,"isCursorInViewport",{get:function(){var ct=this.ybase+this.y-this.ydisp;return ct>=0&&ctRt.MAX_BUFFER_SIZE?Rt.MAX_BUFFER_SIZE:lt},ft.prototype.fillViewportRows=function(ct){if(this.lines.length===0){ct===void 0&&(ct=rt.DEFAULT_ATTR_DATA);for(var lt=this._rows;lt--;)this.lines.push(this.getBlankLine(ct))}},ft.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new ie.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},ft.prototype.resize=function(ct,lt){var E=this.getNullCell(rt.DEFAULT_ATTR_DATA),z=this._getCorrectBufferLength(lt);if(z>this.lines.maxLength&&(this.lines.maxLength=z),this.lines.length>0){if(this._cols0&&this.lines.length<=this.ybase+this.y+it+1?(this.ybase--,it++,this.ydisp>0&&this.ydisp--):this.lines.push(new rt.BufferLine(ct,E)));else for(at=this._rows;at>lt;at--)this.lines.length>lt+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(z0&&(this.lines.trimStart(ut),this.ybase=Math.max(this.ybase-ut,0),this.ydisp=Math.max(this.ydisp-ut,0),this.savedY=Math.max(this.savedY-ut,0)),this.lines.maxLength=z}this.x=Math.min(this.x,ct-1),this.y=Math.min(this.y,lt-1),it&&(this.y+=it),this.savedX=Math.min(this.savedX,ct-1),this.scrollTop=0}if(this.scrollBottom=lt-1,this._isReflowEnabled&&(this._reflow(ct,lt),this._cols>ct))for(ot=0;otthis._cols?this._reflowLarger(ct,lt):this._reflowSmaller(ct,lt))},ft.prototype._reflowLarger=function(ct,lt){var E=St.reflowLargerGetLinesToRemove(this.lines,this._cols,ct,this.ybase+this.y,this.getNullCell(rt.DEFAULT_ATTR_DATA));if(E.length>0){var z=St.reflowLargerCreateNewLayout(this.lines,E);St.reflowLargerApplyNewLayout(this.lines,z.layout),this._reflowLargerAdjustViewport(ct,lt,z.countRemoved)}},ft.prototype._reflowLargerAdjustViewport=function(ct,lt,E){for(var z=this.getNullCell(rt.DEFAULT_ATTR_DATA),ot=E;ot-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length=0;it--){var at=this.lines.get(it);if(!(!at||!at.isWrapped&&at.getTrimmedLength()<=ct)){for(var ut=[at];at.isWrapped&&it>0;)at=this.lines.get(--it),ut.unshift(at);var wt=this.ybase+this.y;if(!(wt>=it&&wt0&&(z.push({start:it+ut.length+ot,newLines:jt}),ot+=jt.length),ut.push.apply(ut,jt);var Ut=At.length-1,Xt=At[Ut];Xt===0&&(Xt=At[--Ut]);for(var Gt=ut.length-_t-1,Yt=Et;Gt>=0;){var Ht=Math.min(Yt,Xt);if(ut[Ut].copyCellsFrom(ut[Gt],Yt-Ht,Xt-Ht,Ht,!0),(Xt-=Ht)===0&&(Xt=At[--Ut]),(Yt-=Ht)===0){Gt--;var ne=Math.max(Gt,0);Yt=St.getWrappedLineTrimmedLength(ut,ne,this._cols)}}for(Lt=0;Lt0;)this.ybase===0?this.y0){var ve=[],Kt=[];for(Lt=0;Lt=0;Lt--)if(ke&&ke.start>we+me){for(var fe=ke.newLines.length-1;fe>=0;fe--)this.lines.set(Lt--,ke.newLines[fe]);Lt++,ve.push({index:we+1,amount:ke.newLines.length}),me+=ke.newLines.length,ke=z[++Me]}else this.lines.set(Lt,Kt[we--]);var pe=0;for(Lt=ve.length-1;Lt>=0;Lt--)ve[Lt].index+=pe,this.lines.onInsertEmitter.fire(ve[Lt]),pe+=ve[Lt].amount;var _e=Math.max(0,re+ot-this.lines.maxLength);_e>0&&this.lines.onTrimEmitter.fire(_e)}},ft.prototype.stringIndexToBufferIndex=function(ct,lt,E){for(E===void 0&&(E=!1);lt;){var z=this.lines.get(ct);if(!z)return[-1,-1];for(var ot=E?z.getTrimmedLength():z.length,it=0;it0&&this.lines.get(lt).isWrapped;)lt--;for(;E+10;);return ct>=this._cols?this._cols-1:ct<0?0:ct},ft.prototype.nextStop=function(ct){for(ct==null&&(ct=this.x);!this.tabs[++ct]&&ct=this._cols?this._cols-1:ct<0?0:ct},ft.prototype.addMarker=function(ct){var lt=this,E=new pt.Marker(ct);return this.markers.push(E),E.register(this.lines.onTrim(function(z){E.line-=z,E.line<0&&E.dispose()})),E.register(this.lines.onInsert(function(z){E.line>=z.index&&(E.line+=z.amount)})),E.register(this.lines.onDelete(function(z){E.line>=z.index&&E.linez.index&&(E.line-=z.amount)})),E.register(E.onDispose(function(){return lt._removeMarker(E)})),E},ft.prototype._removeMarker=function(ct){this.markers.splice(this.markers.indexOf(ct),1)},ft.prototype.iterator=function(ct,lt,E,z,ot){return new dt(this,ct,lt,E,z,ot)},ft}();Rt.Buffer=xt;var dt=function(){function ft(ct,lt,E,z,ot,it){E===void 0&&(E=0),z===void 0&&(z=ct.lines.length),ot===void 0&&(ot=0),it===void 0&&(it=0),this._buffer=ct,this._trimRight=lt,this._startIndex=E,this._endIndex=z,this._startOverscan=ot,this._endOverscan=it,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return ft.prototype.hasNext=function(){return this._currentthis._endIndex+this._endOverscan&&(ct.last=this._endIndex+this._endOverscan),ct.first=Math.max(ct.first,0),ct.last=Math.min(ct.last,this._buffer.lines.length);for(var lt="",E=ct.first;E<=ct.last;++E)lt+=this._buffer.translateBufferLineToString(E,this._trimRight);return this._current=ct.last+1,{range:ct,content:lt}},ft}();Rt.BufferStringIterator=dt},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.CircularList=void 0;var ie=Ft(0),rt=function(){function kt(Ct){this._maxLength=Ct,this.onDeleteEmitter=new ie.EventEmitter,this.onInsertEmitter=new ie.EventEmitter,this.onTrimEmitter=new ie.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(kt.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(kt.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(kt.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(kt.prototype,"maxLength",{get:function(){return this._maxLength},set:function(Ct){if(this._maxLength!==Ct){for(var St=new Array(Ct),pt=0;ptthis._length)for(var St=this._length;St=Ct;yt--)this._array[this._getCyclicIndex(yt+pt.length)]=this._array[this._getCyclicIndex(yt)];for(yt=0;ytthis._maxLength){var xt=this._length+pt.length-this._maxLength;this._startIndex+=xt,this._length=this._maxLength,this.onTrimEmitter.fire(xt)}else this._length+=pt.length},kt.prototype.trimStart=function(Ct){Ct>this._length&&(Ct=this._length),this._startIndex+=Ct,this._length-=Ct,this.onTrimEmitter.fire(Ct)},kt.prototype.shiftElements=function(Ct,St,pt){if(!(St<=0)){if(Ct<0||Ct>=this._length)throw new Error("start argument out of range");if(Ct+pt<0)throw new Error("Cannot shift elements in list beyond index 0");if(pt>0){for(var vt=St-1;vt>=0;vt--)this.set(Ct+vt+pt,this.get(Ct+vt));var yt=Ct+St+pt-this._length;if(yt>0)for(this._length+=yt;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(vt=0;vt=yt&&St0&&(Et>ct||ft[Et].getTrimmedLength()===0);Et--)wt++;wt>0&&(vt.push(yt+ft.length-wt),vt.push(wt)),yt+=ft.length-1}}}return vt},Rt.reflowLargerCreateNewLayout=function(rt,kt){for(var Ct=[],St=0,pt=kt[St],vt=0,yt=0;ytdt&&(vt-=dt,yt++);var ft=rt[yt].getWidth(vt-1)===2;ft&&vt--;var ct=ft?Ct-1:Ct;St.push(ct),xt+=ct}return St},Rt.getWrappedLineTrimmedLength=ie},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(St,pt){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(vt,yt){vt.__proto__=yt}||function(vt,yt){for(var xt in yt)yt.hasOwnProperty(xt)&&(vt[xt]=yt[xt])})(St,pt)},function(St,pt){function vt(){this.constructor=St}ie(St,pt),St.prototype=pt===null?Object.create(pt):(vt.prototype=pt.prototype,new vt)});Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.Marker=void 0;var kt=Ft(0),Ct=function(St){function pt(vt){var yt=St.call(this)||this;return yt.line=vt,yt._id=pt._nextId++,yt.isDisposed=!1,yt._onDispose=new kt.EventEmitter,yt}return rt(pt,St),Object.defineProperty(pt.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(pt.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),pt.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},pt._nextId=1,pt}(Ft(2).Disposable);Rt.Marker=Ct},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.OptionsService=Rt.DEFAULT_OPTIONS=Rt.DEFAULT_BELL_SOUND=void 0;var ie=Ft(0),rt=Ft(11),kt=Ft(33);Rt.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",Rt.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:Rt.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,linkTooltipHoverDuration:500,letterSpacing:0,logLevel:"info",scrollback:1e3,scrollSensitivity:1,screenReaderMode:!1,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!0,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:rt.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",convertEol:!1,termName:"xterm",cancelEvents:!1});var Ct=["cols","rows"],St=function(){function pt(vt){this._onOptionChange=new ie.EventEmitter,this.options=kt.clone(Rt.DEFAULT_OPTIONS);for(var yt=0,xt=Object.keys(vt);yt=0;ut--)(ot=ct[ut])&&(at=(it<3?ot(at):it>3?ot(lt,E,at):ot(lt,E))||at);return it>3&&at&&Object.defineProperty(lt,E,at),at},Ct=this&&this.__param||function(ct,lt){return function(E,z){lt(E,z,ct)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.CoreService=void 0;var St=Ft(1),pt=Ft(0),vt=Ft(33),yt=Ft(2),xt=Object.freeze({insertMode:!1}),dt=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),ft=function(ct){function lt(E,z,ot,it){var at=ct.call(this)||this;return at._bufferService=z,at._logService=ot,at._optionsService=it,at.isCursorInitialized=!1,at.isCursorHidden=!1,at._onData=at.register(new pt.EventEmitter),at._onUserInput=at.register(new pt.EventEmitter),at._onBinary=at.register(new pt.EventEmitter),at._scrollToBottom=E,at.register({dispose:function(){return at._scrollToBottom=void 0}}),at.modes=vt.clone(xt),at.decPrivateModes=vt.clone(dt),at}return rt(lt,ct),Object.defineProperty(lt.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(lt.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(lt.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),lt.prototype.reset=function(){this.modes=vt.clone(xt),this.decPrivateModes=vt.clone(dt)},lt.prototype.triggerDataEvent=function(E,z){if(z===void 0&&(z=!1),!this._optionsService.options.disableStdin){var ot=this._bufferService.buffer;ot.ybase!==ot.ydisp&&this._scrollToBottom(),z&&this._onUserInput.fire(),this._logService.debug('sending data "'+E+'"',function(){return E.split("").map(function(it){return it.charCodeAt(0)})}),this._onData.fire(E)}},lt.prototype.triggerBinaryEvent=function(E){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+E+'"',function(){return E.split("").map(function(z){return z.charCodeAt(0)})}),this._onBinary.fire(E))},lt=kt([Ct(1,St.IBufferService),Ct(2,St.ILogService),Ct(3,St.IOptionsService)],lt)}(yt.Disposable);Rt.CoreService=ft},function(Ke,Rt,Ft){"use strict";var ie=this&&this.__decorate||function(dt,ft,ct,lt){var E,z=arguments.length,ot=z<3?ft:lt===null?lt=Object.getOwnPropertyDescriptor(ft,ct):lt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ot=Reflect.decorate(dt,ft,ct,lt);else for(var it=dt.length-1;it>=0;it--)(E=dt[it])&&(ot=(z<3?E(ot):z>3?E(ft,ct,ot):E(ft,ct))||ot);return z>3&&ot&&Object.defineProperty(ft,ct,ot),ot},rt=this&&this.__param||function(dt,ft){return function(ct,lt){ft(ct,lt,dt)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.CoreMouseService=void 0;var kt=Ft(1),Ct=Ft(0),St={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(dt){return dt.button!==4&&dt.action===1&&(dt.ctrl=!1,dt.alt=!1,dt.shift=!1,!0)}},VT200:{events:19,restrict:function(dt){return dt.action!==32}},DRAG:{events:23,restrict:function(dt){return dt.action!==32||dt.button!==3}},ANY:{events:31,restrict:function(dt){return!0}}};function pt(dt,ft){var ct=(dt.ctrl?16:0)|(dt.shift?4:0)|(dt.alt?8:0);return dt.button===4?(ct|=64,ct|=dt.action):(ct|=3&dt.button,4&dt.button&&(ct|=64),8&dt.button&&(ct|=128),dt.action===32?ct|=32:dt.action!==0||ft||(ct|=3)),ct}var vt=String.fromCharCode,yt={DEFAULT:function(dt){var ft=[pt(dt,!1)+32,dt.col+32,dt.row+32];return ft[0]>255||ft[1]>255||ft[2]>255?"":"\x1B[M"+vt(ft[0])+vt(ft[1])+vt(ft[2])},SGR:function(dt){var ft=dt.action===0&&dt.button!==4?"m":"M";return"\x1B[<"+pt(dt,!0)+";"+dt.col+";"+dt.row+ft}},xt=function(){function dt(ft,ct){this._bufferService=ft,this._coreService=ct,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new Ct.EventEmitter,this._lastEvent=null;for(var lt=0,E=Object.keys(St);lt=this._bufferService.cols||ft.row<0||ft.row>=this._bufferService.rows||ft.button===4&&ft.action===32||ft.button===3&&ft.action!==32||ft.button!==4&&(ft.action===2||ft.action===3)||(ft.col++,ft.row++,ft.action===32&&this._lastEvent&&this._compareEvents(this._lastEvent,ft))||!this._protocols[this._activeProtocol].restrict(ft))return!1;var ct=this._encodings[this._activeEncoding](ft);return ct&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(ct):this._coreService.triggerDataEvent(ct,!0)),this._lastEvent=ft,!0},dt.prototype.explainEvents=function(ft){return{down:!!(1&ft),up:!!(2&ft),drag:!!(4&ft),move:!!(8&ft),wheel:!!(16&ft)}},dt.prototype._compareEvents=function(ft,ct){return ft.col===ct.col&&ft.row===ct.row&&ft.button===ct.button&&ft.action===ct.action&&ft.ctrl===ct.ctrl&&ft.alt===ct.alt&&ft.shift===ct.shift},dt=ie([rt(0,kt.IBufferService),rt(1,kt.ICoreService)],dt)}();Rt.CoreMouseService=xt},function(Ke,Rt,Ft){"use strict";var ie=this&&this.__decorate||function(St,pt,vt,yt){var xt,dt=arguments.length,ft=dt<3?pt:yt===null?yt=Object.getOwnPropertyDescriptor(pt,vt):yt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ft=Reflect.decorate(St,pt,vt,yt);else for(var ct=St.length-1;ct>=0;ct--)(xt=St[ct])&&(ft=(dt<3?xt(ft):dt>3?xt(pt,vt,ft):xt(pt,vt))||ft);return dt>3&&ft&&Object.defineProperty(pt,vt,ft),ft},rt=this&&this.__param||function(St,pt){return function(vt,yt){pt(vt,yt,St)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.DirtyRowService=void 0;var kt=Ft(1),Ct=function(){function St(pt){this._bufferService=pt,this.clearRange()}return Object.defineProperty(St.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(St.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),St.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},St.prototype.markDirty=function(pt){ptthis._end&&(this._end=pt)},St.prototype.markRangeDirty=function(pt,vt){if(pt>vt){var yt=pt;pt=vt,vt=yt}ptthis._end&&(this._end=vt)},St.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},St=ie([rt(0,kt.IBufferService)],St)}();Rt.DirtyRowService=Ct},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.UnicodeService=void 0;var ie=Ft(0),rt=Ft(79),kt=function(){function Ct(){this._providers=Object.create(null),this._active="",this._onChange=new ie.EventEmitter;var St=new rt.UnicodeV6;this.register(St),this._active=St.version,this._activeProvider=St}return Object.defineProperty(Ct.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"activeVersion",{get:function(){return this._active},set:function(St){if(!this._providers[St])throw new Error('unknown Unicode version "'+St+'"');this._active=St,this._activeProvider=this._providers[St],this._onChange.fire(St)},enumerable:!1,configurable:!0}),Ct.prototype.register=function(St){this._providers[St.version]=St},Ct.prototype.wcwidth=function(St){return this._activeProvider.wcwidth(St)},Ct.prototype.getStringCellWidth=function(St){for(var pt=0,vt=St.length,yt=0;yt=vt)return pt+this.wcwidth(xt);var dt=St.charCodeAt(yt);56320<=dt&&dt<=57343?xt=1024*(xt-55296)+dt-56320+65536:pt+=this.wcwidth(dt)}pt+=this.wcwidth(xt)}return pt},Ct}();Rt.UnicodeService=kt},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.UnicodeV6=void 0;var ie,rt=Ft(15),kt=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],Ct=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],St=function(){function pt(){if(this.version="6",!ie){ie=new Uint8Array(65536),rt.fill(ie,1),ie[0]=0,rt.fill(ie,0,1,32),rt.fill(ie,0,127,160),rt.fill(ie,2,4352,4448),ie[9001]=2,ie[9002]=2,rt.fill(ie,2,11904,42192),ie[12351]=1,rt.fill(ie,2,44032,55204),rt.fill(ie,2,63744,64256),rt.fill(ie,2,65040,65050),rt.fill(ie,2,65072,65136),rt.fill(ie,2,65280,65377),rt.fill(ie,2,65504,65511);for(var vt=0;vtxt[ct][1])return!1;for(;ct>=ft;)if(yt>xt[dt=ft+ct>>1][1])ft=dt+1;else{if(!(yt=131072&&vt<=196605||vt>=196608&&vt<=262141?2:1},pt}();Rt.UnicodeV6=St},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.CharsetService=void 0;var ie=function(){function rt(){this.glevel=0,this._charsets=[]}return rt.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},rt.prototype.setgLevel=function(kt){this.glevel=kt,this.charset=this._charsets[kt]},rt.prototype.setgCharset=function(kt,Ct){this._charsets[kt]=Ct,this.glevel===kt&&(this.charset=Ct)},rt}();Rt.CharsetService=ie},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.updateWindowsModeWrappedState=void 0;var ie=Ft(3);Rt.updateWindowsModeWrappedState=function(rt){var kt=rt.buffer.lines.get(rt.buffer.ybase+rt.buffer.y-1),Ct=kt==null?void 0:kt.get(rt.cols-1),St=rt.buffer.lines.get(rt.buffer.ybase+rt.buffer.y);St&&Ct&&(St.isWrapped=Ct[ie.CHAR_DATA_CODE_INDEX]!==ie.NULL_CELL_CODE&&Ct[ie.CHAR_DATA_CODE_INDEX]!==ie.WHITESPACE_CELL_CODE)}},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.WriteBuffer=void 0;var ie=function(){function rt(kt){this._action=kt,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return rt.prototype.writeSync=function(kt){if(this._writeBuffer.length){for(var Ct=this._bufferOffset;Ct5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return St._innerWrite()})),this._pendingData+=kt.length,this._writeBuffer.push(kt),this._callbacks.push(Ct)},rt.prototype._innerWrite=function(){for(var kt=this,Ct=Date.now();this._writeBuffer.length>this._bufferOffset;){var St=this._writeBuffer[this._bufferOffset],pt=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(St),this._pendingData-=St.length,pt&&pt(),Date.now()-Ct>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(function(){return kt._innerWrite()},0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},rt}();Rt.WriteBuffer=ie},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.AddonManager=void 0;var ie=function(){function rt(){this._addons=[]}return rt.prototype.dispose=function(){for(var kt=this._addons.length-1;kt>=0;kt--)this._addons[kt].instance.dispose()},rt.prototype.loadAddon=function(kt,Ct){var St=this,pt={instance:Ct,dispose:Ct.dispose,isDisposed:!1};this._addons.push(pt),Ct.dispose=function(){return St._wrappedAddonDispose(pt)},Ct.activate(kt)},rt.prototype._wrappedAddonDispose=function(kt){if(!kt.isDisposed){for(var Ct=-1,St=0;St0&&!this._liveRegion.parentNode&&setTimeout(function(){E._accessibilityTreeRoot.appendChild(E._liveRegion)},0))},ct.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,Ct.isMac&&xt.removeElementFromParent(this._liveRegion)},ct.prototype._onKey=function(lt){this._clearLiveRegion(),this._charsToConsume.push(lt)},ct.prototype._refreshRows=function(lt,E){this._renderRowsDebouncer.refresh(lt,E,this._terminal.rows)},ct.prototype._renderRows=function(lt,E){for(var z=this._terminal.buffer,ot=z.lines.length.toString(),it=lt;it<=E;it++){var at=z.translateBufferLineToString(z.ydisp+it,!0),ut=(z.ydisp+it+1).toString(),wt=this._rowElements[it];wt&&(at.length===0?wt.innerHTML=" ":wt.textContent=at,wt.setAttribute("aria-posinset",ut),wt.setAttribute("aria-setsize",ot))}this._announceCharacters()},ct.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var lt=0;lt=0;At--)(ut=z[At])&&(Et=(wt<3?ut(Et):wt>3?ut(ot,it,Et):ut(ot,it))||Et);return wt>3&&Et&&Object.defineProperty(ot,it,Et),Et},Ct=this&&this.__param||function(z,ot){return function(it,at){ot(it,at,z)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.DomRenderer=void 0;var St=Ft(58),pt=Ft(9),vt=Ft(2),yt=Ft(5),xt=Ft(1),dt=Ft(0),ft=Ft(10),ct=Ft(17),lt=1,E=function(z){function ot(it,at,ut,wt,Et,At,_t,Mt,jt){var Lt=z.call(this)||this;return Lt._colors=it,Lt._element=at,Lt._screenElement=ut,Lt._viewportElement=wt,Lt._linkifier=Et,Lt._linkifier2=At,Lt._charSizeService=_t,Lt._optionsService=Mt,Lt._bufferService=jt,Lt._terminalClass=lt++,Lt._rowElements=[],Lt._rowContainer=document.createElement("div"),Lt._rowContainer.classList.add("xterm-rows"),Lt._rowContainer.style.lineHeight="normal",Lt._rowContainer.setAttribute("aria-hidden","true"),Lt._refreshRowElements(Lt._bufferService.cols,Lt._bufferService.rows),Lt._selectionContainer=document.createElement("div"),Lt._selectionContainer.classList.add("xterm-selection"),Lt._selectionContainer.setAttribute("aria-hidden","true"),Lt.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},Lt._updateDimensions(),Lt._injectCss(),Lt._rowFactory=new St.DomRendererRowFactory(document,Lt._optionsService,Lt._colors),Lt._element.classList.add("xterm-dom-renderer-owner-"+Lt._terminalClass),Lt._screenElement.appendChild(Lt._rowContainer),Lt._screenElement.appendChild(Lt._selectionContainer),Lt._linkifier.onShowLinkUnderline(function(It){return Lt._onLinkHover(It)}),Lt._linkifier.onHideLinkUnderline(function(It){return Lt._onLinkLeave(It)}),Lt._linkifier2.onShowLinkUnderline(function(It){return Lt._onLinkHover(It)}),Lt._linkifier2.onHideLinkUnderline(function(It){return Lt._onLinkLeave(It)}),Lt}return rt(ot,z),Object.defineProperty(ot.prototype,"onRequestRedraw",{get:function(){return new dt.EventEmitter().event},enumerable:!1,configurable:!0}),ot.prototype.dispose=function(){this._element.classList.remove("xterm-dom-renderer-owner-"+this._terminalClass),ct.removeElementFromParent(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),z.prototype.dispose.call(this)},ot.prototype._updateDimensions=function(){this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;for(var it=0,at=this._rowElements;itat;)this._rowContainer.removeChild(this._rowElements.pop())},ot.prototype.onResize=function(it,at){this._refreshRowElements(it,at),this._updateDimensions()},ot.prototype.onCharSizeChanged=function(){this._updateDimensions()},ot.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},ot.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},ot.prototype.onSelectionChanged=function(it,at,ut){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(it&&at){var wt=it[1]-this._bufferService.buffer.ydisp,Et=at[1]-this._bufferService.buffer.ydisp,At=Math.max(wt,0),_t=Math.min(Et,this._bufferService.rows-1);if(!(At>=this._bufferService.rows||_t<0)){var Mt=document.createDocumentFragment();if(ut)Mt.appendChild(this._createSelectionElement(At,it[0],at[0],_t-At+1));else{var jt=wt===At?it[0]:0,Lt=At===_t?at[0]:this._bufferService.cols;Mt.appendChild(this._createSelectionElement(At,jt,Lt));var It=_t-At-1;if(Mt.appendChild(this._createSelectionElement(At+1,0,this._bufferService.cols,It)),At!==_t){var Ut=Et===_t?at[0]:this._bufferService.cols;Mt.appendChild(this._createSelectionElement(_t,0,Ut))}}this._selectionContainer.appendChild(Mt)}}},ot.prototype._createSelectionElement=function(it,at,ut,wt){wt===void 0&&(wt=1);var Et=document.createElement("div");return Et.style.height=wt*this.dimensions.actualCellHeight+"px",Et.style.top=it*this.dimensions.actualCellHeight+"px",Et.style.left=at*this.dimensions.actualCellWidth+"px",Et.style.width=this.dimensions.actualCellWidth*(ut-at)+"px",Et},ot.prototype.onCursorMove=function(){},ot.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},ot.prototype.clear=function(){for(var it=0,at=this._rowElements;it=Et&&(it=0,ut++)}},ot=kt([Ct(6,yt.ICharSizeService),Ct(7,xt.IOptionsService),Ct(8,xt.IBufferService)],ot)}(vt.Disposable);Rt.DomRenderer=E},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.DomRendererRowFactory=Rt.CURSOR_STYLE_UNDERLINE_CLASS=Rt.CURSOR_STYLE_BAR_CLASS=Rt.CURSOR_STYLE_BLOCK_CLASS=Rt.CURSOR_BLINK_CLASS=Rt.CURSOR_CLASS=Rt.UNDERLINE_CLASS=Rt.ITALIC_CLASS=Rt.DIM_CLASS=Rt.BOLD_CLASS=void 0;var ie=Ft(9),rt=Ft(3),kt=Ft(4),Ct=Ft(10);Rt.BOLD_CLASS="xterm-bold",Rt.DIM_CLASS="xterm-dim",Rt.ITALIC_CLASS="xterm-italic",Rt.UNDERLINE_CLASS="xterm-underline",Rt.CURSOR_CLASS="xterm-cursor",Rt.CURSOR_BLINK_CLASS="xterm-cursor-blink",Rt.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",Rt.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",Rt.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var St=function(){function vt(yt,xt,dt){this._document=yt,this._optionsService=xt,this._colors=dt,this._workCell=new kt.CellData}return vt.prototype.setColors=function(yt){this._colors=yt},vt.prototype.createRow=function(yt,xt,dt,ft,ct,lt,E){for(var z=this._document.createDocumentFragment(),ot=0,it=Math.min(yt.length,E)-1;it>=0;it--)if(yt.loadCell(it,this._workCell).getCode()!==rt.NULL_CELL_CODE||xt&&it===ft){ot=it+1;break}for(it=0;it1&&(ut.style.width=lt*at+"px"),xt&&it===ft)switch(ut.classList.add(Rt.CURSOR_CLASS),ct&&ut.classList.add(Rt.CURSOR_BLINK_CLASS),dt){case"bar":ut.classList.add(Rt.CURSOR_STYLE_BAR_CLASS);break;case"underline":ut.classList.add(Rt.CURSOR_STYLE_UNDERLINE_CLASS);break;default:ut.classList.add(Rt.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&ut.classList.add(Rt.BOLD_CLASS),this._workCell.isItalic()&&ut.classList.add(Rt.ITALIC_CLASS),this._workCell.isDim()&&ut.classList.add(Rt.DIM_CLASS),this._workCell.isUnderline()&&ut.classList.add(Rt.UNDERLINE_CLASS),this._workCell.isInvisible()?ut.textContent=rt.WHITESPACE_CELL_CHAR:ut.textContent=this._workCell.getChars()||rt.WHITESPACE_CELL_CHAR;var wt=this._workCell.getFgColor(),Et=this._workCell.getFgColorMode(),At=this._workCell.getBgColor(),_t=this._workCell.getBgColorMode(),Mt=!!this._workCell.isInverse();if(Mt){var jt=wt;wt=At,At=jt;var Lt=Et;Et=_t,_t=Lt}switch(Et){case 16777216:case 33554432:this._workCell.isBold()&&wt<8&&this._optionsService.options.drawBoldTextInBrightColors&&(wt+=8),this._applyMinimumContrast(ut,this._colors.background,this._colors.ansi[wt])||ut.classList.add("xterm-fg-"+wt);break;case 50331648:var It=Ct.rgba.toColor(wt>>16&255,wt>>8&255,255&wt);this._applyMinimumContrast(ut,this._colors.background,It)||this._addStyle(ut,"color:#"+pt(wt.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(ut,this._colors.background,this._colors.foreground)||Mt&&ut.classList.add("xterm-fg-"+ie.INVERTED_DEFAULT_COLOR)}switch(_t){case 16777216:case 33554432:ut.classList.add("xterm-bg-"+At);break;case 50331648:this._addStyle(ut,"background-color:#"+pt(At.toString(16),"0",6));break;case 0:default:Mt&&ut.classList.add("xterm-bg-"+ie.INVERTED_DEFAULT_COLOR)}z.appendChild(ut)}}return z},vt.prototype._applyMinimumContrast=function(yt,xt,dt){if(this._optionsService.options.minimumContrastRatio===1)return!1;var ft=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return ft===void 0&&(ft=Ct.color.ensureContrastRatio(xt,dt,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,ft!=null?ft:null)),!!ft&&(this._addStyle(yt,"color:"+ft.css),!0)},vt.prototype._addStyle=function(yt,xt){yt.setAttribute("style",""+(yt.getAttribute("style")||"")+xt+";")},vt}();function pt(vt,yt,xt){for(;vt.length"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};Rt.evaluateKeyboardEvent=function(kt,Ct,St,pt){var vt={type:0,cancel:!1,key:void 0},yt=(kt.shiftKey?1:0)|(kt.altKey?2:0)|(kt.ctrlKey?4:0)|(kt.metaKey?8:0);switch(kt.keyCode){case 0:kt.key==="UIKeyInputUpArrow"?vt.key=Ct?ie.C0.ESC+"OA":ie.C0.ESC+"[A":kt.key==="UIKeyInputLeftArrow"?vt.key=Ct?ie.C0.ESC+"OD":ie.C0.ESC+"[D":kt.key==="UIKeyInputRightArrow"?vt.key=Ct?ie.C0.ESC+"OC":ie.C0.ESC+"[C":kt.key==="UIKeyInputDownArrow"&&(vt.key=Ct?ie.C0.ESC+"OB":ie.C0.ESC+"[B");break;case 8:if(kt.shiftKey){vt.key=ie.C0.BS;break}if(kt.altKey){vt.key=ie.C0.ESC+ie.C0.DEL;break}vt.key=ie.C0.DEL;break;case 9:if(kt.shiftKey){vt.key=ie.C0.ESC+"[Z";break}vt.key=ie.C0.HT,vt.cancel=!0;break;case 13:vt.key=kt.altKey?ie.C0.ESC+ie.C0.CR:ie.C0.CR,vt.cancel=!0;break;case 27:vt.key=ie.C0.ESC,kt.altKey&&(vt.key=ie.C0.ESC+ie.C0.ESC),vt.cancel=!0;break;case 37:if(kt.metaKey)break;yt?(vt.key=ie.C0.ESC+"[1;"+(yt+1)+"D",vt.key===ie.C0.ESC+"[1;3D"&&(vt.key=ie.C0.ESC+(St?"b":"[1;5D"))):vt.key=Ct?ie.C0.ESC+"OD":ie.C0.ESC+"[D";break;case 39:if(kt.metaKey)break;yt?(vt.key=ie.C0.ESC+"[1;"+(yt+1)+"C",vt.key===ie.C0.ESC+"[1;3C"&&(vt.key=ie.C0.ESC+(St?"f":"[1;5C"))):vt.key=Ct?ie.C0.ESC+"OC":ie.C0.ESC+"[C";break;case 38:if(kt.metaKey)break;yt?(vt.key=ie.C0.ESC+"[1;"+(yt+1)+"A",St||vt.key!==ie.C0.ESC+"[1;3A"||(vt.key=ie.C0.ESC+"[1;5A")):vt.key=Ct?ie.C0.ESC+"OA":ie.C0.ESC+"[A";break;case 40:if(kt.metaKey)break;yt?(vt.key=ie.C0.ESC+"[1;"+(yt+1)+"B",St||vt.key!==ie.C0.ESC+"[1;3B"||(vt.key=ie.C0.ESC+"[1;5B")):vt.key=Ct?ie.C0.ESC+"OB":ie.C0.ESC+"[B";break;case 45:kt.shiftKey||kt.ctrlKey||(vt.key=ie.C0.ESC+"[2~");break;case 46:vt.key=yt?ie.C0.ESC+"[3;"+(yt+1)+"~":ie.C0.ESC+"[3~";break;case 36:vt.key=yt?ie.C0.ESC+"[1;"+(yt+1)+"H":Ct?ie.C0.ESC+"OH":ie.C0.ESC+"[H";break;case 35:vt.key=yt?ie.C0.ESC+"[1;"+(yt+1)+"F":Ct?ie.C0.ESC+"OF":ie.C0.ESC+"[F";break;case 33:kt.shiftKey?vt.type=2:vt.key=ie.C0.ESC+"[5~";break;case 34:kt.shiftKey?vt.type=3:vt.key=ie.C0.ESC+"[6~";break;case 112:vt.key=yt?ie.C0.ESC+"[1;"+(yt+1)+"P":ie.C0.ESC+"OP";break;case 113:vt.key=yt?ie.C0.ESC+"[1;"+(yt+1)+"Q":ie.C0.ESC+"OQ";break;case 114:vt.key=yt?ie.C0.ESC+"[1;"+(yt+1)+"R":ie.C0.ESC+"OR";break;case 115:vt.key=yt?ie.C0.ESC+"[1;"+(yt+1)+"S":ie.C0.ESC+"OS";break;case 116:vt.key=yt?ie.C0.ESC+"[15;"+(yt+1)+"~":ie.C0.ESC+"[15~";break;case 117:vt.key=yt?ie.C0.ESC+"[17;"+(yt+1)+"~":ie.C0.ESC+"[17~";break;case 118:vt.key=yt?ie.C0.ESC+"[18;"+(yt+1)+"~":ie.C0.ESC+"[18~";break;case 119:vt.key=yt?ie.C0.ESC+"[19;"+(yt+1)+"~":ie.C0.ESC+"[19~";break;case 120:vt.key=yt?ie.C0.ESC+"[20;"+(yt+1)+"~":ie.C0.ESC+"[20~";break;case 121:vt.key=yt?ie.C0.ESC+"[21;"+(yt+1)+"~":ie.C0.ESC+"[21~";break;case 122:vt.key=yt?ie.C0.ESC+"[23;"+(yt+1)+"~":ie.C0.ESC+"[23~";break;case 123:vt.key=yt?ie.C0.ESC+"[24;"+(yt+1)+"~":ie.C0.ESC+"[24~";break;default:if(!kt.ctrlKey||kt.shiftKey||kt.altKey||kt.metaKey)if(St&&!pt||!kt.altKey||kt.metaKey)St&&!kt.altKey&&!kt.ctrlKey&&kt.metaKey?kt.keyCode===65&&(vt.type=1):kt.key&&!kt.ctrlKey&&!kt.altKey&&!kt.metaKey&&kt.keyCode>=48&&kt.key.length===1?vt.key=kt.key:kt.key&&kt.ctrlKey&&kt.key==="_"&&(vt.key=ie.C0.US);else{var xt=rt[kt.keyCode],dt=xt&&xt[kt.shiftKey?1:0];if(dt)vt.key=ie.C0.ESC+dt;else if(kt.keyCode>=65&&kt.keyCode<=90){var ft=kt.ctrlKey?kt.keyCode-64:kt.keyCode+32;vt.key=ie.C0.ESC+String.fromCharCode(ft)}}else kt.keyCode>=65&&kt.keyCode<=90?vt.key=String.fromCharCode(kt.keyCode-64):kt.keyCode===32?vt.key=ie.C0.NUL:kt.keyCode>=51&&kt.keyCode<=55?vt.key=String.fromCharCode(kt.keyCode-51+27):kt.keyCode===56?vt.key=ie.C0.DEL:kt.keyCode===219?vt.key=ie.C0.ESC:kt.keyCode===220?vt.key=ie.C0.FS:kt.keyCode===221&&(vt.key=ie.C0.GS)}return vt}},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(lt,E){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,ot){z.__proto__=ot}||function(z,ot){for(var it in ot)ot.hasOwnProperty(it)&&(z[it]=ot[it])})(lt,E)},function(lt,E){function z(){this.constructor=lt}ie(lt,E),lt.prototype=E===null?Object.create(E):(z.prototype=E.prototype,new z)}),kt=this&&this.__decorate||function(lt,E,z,ot){var it,at=arguments.length,ut=at<3?E:ot===null?ot=Object.getOwnPropertyDescriptor(E,z):ot;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ut=Reflect.decorate(lt,E,z,ot);else for(var wt=lt.length-1;wt>=0;wt--)(it=lt[wt])&&(ut=(at<3?it(ut):at>3?it(E,z,ut):it(E,z))||ut);return at>3&&ut&&Object.defineProperty(E,z,ut),ut},Ct=this&&this.__param||function(lt,E){return function(z,ot){E(z,ot,lt)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.RenderService=void 0;var St=Ft(31),pt=Ft(0),vt=Ft(2),yt=Ft(32),xt=Ft(7),dt=Ft(1),ft=Ft(5),ct=function(lt){function E(z,ot,it,at,ut,wt){var Et=lt.call(this)||this;if(Et._renderer=z,Et._rowCount=ot,Et._isPaused=!1,Et._needsFullRefresh=!1,Et._isNextRenderRedrawOnly=!0,Et._needsSelectionRefresh=!1,Et._canvasWidth=0,Et._canvasHeight=0,Et._selectionState={start:void 0,end:void 0,columnSelectMode:!1},Et._onDimensionsChange=new pt.EventEmitter,Et._onRender=new pt.EventEmitter,Et._onRefreshRequest=new pt.EventEmitter,Et.register({dispose:function(){return Et._renderer.dispose()}}),Et._renderDebouncer=new St.RenderDebouncer(function(_t,Mt){return Et._renderRows(_t,Mt)}),Et.register(Et._renderDebouncer),Et._screenDprMonitor=new yt.ScreenDprMonitor,Et._screenDprMonitor.setListener(function(){return Et.onDevicePixelRatioChange()}),Et.register(Et._screenDprMonitor),Et.register(wt.onResize(function(_t){return Et._fullRefresh()})),Et.register(at.onOptionChange(function(){return Et._renderer.onOptionsChanged()})),Et.register(ut.onCharSizeChange(function(){return Et.onCharSizeChanged()})),Et._renderer.onRequestRedraw(function(_t){return Et.refreshRows(_t.start,_t.end,!0)}),Et.register(xt.addDisposableDomListener(window,"resize",function(){return Et.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var At=new IntersectionObserver(function(_t){return Et._onIntersectionChange(_t[_t.length-1])},{threshold:0});At.observe(it),Et.register({dispose:function(){return At.disconnect()}})}return Et}return rt(E,lt),Object.defineProperty(E.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),E.prototype._onIntersectionChange=function(z){this._isPaused=z.intersectionRatio===0,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},E.prototype.refreshRows=function(z,ot,it){it===void 0&&(it=!1),this._isPaused?this._needsFullRefresh=!0:(it||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(z,ot,this._rowCount))},E.prototype._renderRows=function(z,ot){this._renderer.renderRows(z,ot),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:z,end:ot}),this._isNextRenderRedrawOnly=!0},E.prototype.resize=function(z,ot){this._rowCount=ot,this._fireOnCanvasResize()},E.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},E.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},E.prototype.dispose=function(){lt.prototype.dispose.call(this)},E.prototype.setRenderer=function(z){var ot=this;this._renderer.dispose(),this._renderer=z,this._renderer.onRequestRedraw(function(it){return ot.refreshRows(it.start,it.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},E.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},E.prototype.setColors=function(z){this._renderer.setColors(z),this._fullRefresh()},E.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},E.prototype.onResize=function(z,ot){this._renderer.onResize(z,ot),this._fullRefresh()},E.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},E.prototype.onBlur=function(){this._renderer.onBlur()},E.prototype.onFocus=function(){this._renderer.onFocus()},E.prototype.onSelectionChanged=function(z,ot,it){this._selectionState.start=z,this._selectionState.end=ot,this._selectionState.columnSelectMode=it,this._renderer.onSelectionChanged(z,ot,it)},E.prototype.onCursorMove=function(){this._renderer.onCursorMove()},E.prototype.clear=function(){this._renderer.clear()},E.prototype.registerCharacterJoiner=function(z){return this._renderer.registerCharacterJoiner(z)},E.prototype.deregisterCharacterJoiner=function(z){return this._renderer.deregisterCharacterJoiner(z)},E=kt([Ct(3,dt.IOptionsService),Ct(4,ft.ICharSizeService),Ct(5,dt.IBufferService)],E)}(vt.Disposable);Rt.RenderService=ct},function(Ke,Rt,Ft){"use strict";var ie=this&&this.__decorate||function(vt,yt,xt,dt){var ft,ct=arguments.length,lt=ct<3?yt:dt===null?dt=Object.getOwnPropertyDescriptor(yt,xt):dt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")lt=Reflect.decorate(vt,yt,xt,dt);else for(var E=vt.length-1;E>=0;E--)(ft=vt[E])&&(lt=(ct<3?ft(lt):ct>3?ft(yt,xt,lt):ft(yt,xt))||lt);return ct>3&<&&Object.defineProperty(yt,xt,lt),lt},rt=this&&this.__param||function(vt,yt){return function(xt,dt){yt(xt,dt,vt)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.CharSizeService=void 0;var kt=Ft(1),Ct=Ft(0),St=function(){function vt(yt,xt,dt){this._optionsService=dt,this.width=0,this.height=0,this._onCharSizeChange=new Ct.EventEmitter,this._measureStrategy=new pt(yt,xt,this._optionsService)}return Object.defineProperty(vt.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(vt.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),vt.prototype.measure=function(){var yt=this._measureStrategy.measure();yt.width===this.width&&yt.height===this.height||(this.width=yt.width,this.height=yt.height,this._onCharSizeChange.fire())},vt=ie([rt(2,kt.IOptionsService)],vt)}();Rt.CharSizeService=St;var pt=function(){function vt(yt,xt,dt){this._document=yt,this._parentElement=xt,this._optionsService=dt,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return vt.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var yt=this._measureElement.getBoundingClientRect();return yt.width!==0&&yt.height!==0&&(this._result.width=yt.width,this._result.height=Math.ceil(yt.height)),this._result},vt}()},function(Ke,Rt,Ft){"use strict";var ie=this&&this.__decorate||function(pt,vt,yt,xt){var dt,ft=arguments.length,ct=ft<3?vt:xt===null?xt=Object.getOwnPropertyDescriptor(vt,yt):xt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ct=Reflect.decorate(pt,vt,yt,xt);else for(var lt=pt.length-1;lt>=0;lt--)(dt=pt[lt])&&(ct=(ft<3?dt(ct):ft>3?dt(vt,yt,ct):dt(vt,yt))||ct);return ft>3&&ct&&Object.defineProperty(vt,yt,ct),ct},rt=this&&this.__param||function(pt,vt){return function(yt,xt){vt(yt,xt,pt)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.MouseService=void 0;var kt=Ft(5),Ct=Ft(30),St=function(){function pt(vt,yt){this._renderService=vt,this._charSizeService=yt}return pt.prototype.getCoords=function(vt,yt,xt,dt,ft){return Ct.getCoords(vt,yt,xt,dt,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,ft)},pt.prototype.getRawByteCoords=function(vt,yt,xt,dt){var ft=this.getCoords(vt,yt,xt,dt);return Ct.getRawByteCoords(ft)},pt=ie([rt(0,kt.IRenderService),rt(1,kt.ICharSizeService)],pt)}();Rt.MouseService=St},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(dt,ft){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ct,lt){ct.__proto__=lt}||function(ct,lt){for(var E in lt)lt.hasOwnProperty(E)&&(ct[E]=lt[E])})(dt,ft)},function(dt,ft){function ct(){this.constructor=dt}ie(dt,ft),dt.prototype=ft===null?Object.create(ft):(ct.prototype=ft.prototype,new ct)}),kt=this&&this.__decorate||function(dt,ft,ct,lt){var E,z=arguments.length,ot=z<3?ft:lt===null?lt=Object.getOwnPropertyDescriptor(ft,ct):lt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ot=Reflect.decorate(dt,ft,ct,lt);else for(var it=dt.length-1;it>=0;it--)(E=dt[it])&&(ot=(z<3?E(ot):z>3?E(ft,ct,ot):E(ft,ct))||ot);return z>3&&ot&&Object.defineProperty(ft,ct,ot),ot},Ct=this&&this.__param||function(dt,ft){return function(ct,lt){ft(ct,lt,dt)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.Linkifier2=void 0;var St=Ft(1),pt=Ft(0),vt=Ft(2),yt=Ft(7),xt=function(dt){function ft(ct){var lt=dt.call(this)||this;return lt._bufferService=ct,lt._linkProviders=[],lt._linkCacheDisposables=[],lt._isMouseOut=!0,lt._activeLine=-1,lt._onShowLinkUnderline=lt.register(new pt.EventEmitter),lt._onHideLinkUnderline=lt.register(new pt.EventEmitter),lt.register(vt.getDisposeArrayDisposable(lt._linkCacheDisposables)),lt}return rt(ft,dt),Object.defineProperty(ft.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(ft.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),ft.prototype.registerLinkProvider=function(ct){var lt=this;return this._linkProviders.push(ct),{dispose:function(){var E=lt._linkProviders.indexOf(ct);E!==-1&<._linkProviders.splice(E,1)}}},ft.prototype.attachToDom=function(ct,lt,E){var z=this;this._element=ct,this._mouseService=lt,this._renderService=E,this.register(yt.addDisposableDomListener(this._element,"mouseleave",function(){z._isMouseOut=!0,z._clearCurrentLink()})),this.register(yt.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(yt.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},ft.prototype._onMouseMove=function(ct){if(this._lastMouseEvent=ct,this._element&&this._mouseService){var lt=this._positionFromMouseEvent(ct,this._element,this._mouseService);if(lt){this._isMouseOut=!1;for(var E=ct.composedPath(),z=0;zct?this._bufferService.cols:at.link.range.end.x,Et=ut;Et<=wt;Et++){if(E.has(Et)){ot.splice(it--,1);break}E.add(Et)}}},ft.prototype._checkLinkProviderResult=function(ct,lt,E){var z,ot=this;if(!this._activeProviderReplies)return E;for(var it=this._activeProviderReplies.get(ct),at=!1,ut=0;ut=ct&&this._currentLink.link.range.end.y<=lt)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,vt.disposeArray(this._linkCacheDisposables))},ft.prototype._handleNewLink=function(ct){var lt=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var E=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);E&&this._linkAtPosition(ct.link,E)&&(this._currentLink=ct,this._currentLink.state={decorations:{underline:ct.link.decorations===void 0||ct.link.decorations.underline,pointerCursor:ct.link.decorations===void 0||ct.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,ct.link,this._lastMouseEvent),ct.link.decorations={},Object.defineProperties(ct.link.decorations,{pointerCursor:{get:function(){var z,ot;return(ot=(z=lt._currentLink)===null||z===void 0?void 0:z.state)===null||ot===void 0?void 0:ot.decorations.pointerCursor},set:function(z){var ot,it;!((ot=lt._currentLink)===null||ot===void 0)&&ot.state&<._currentLink.state.decorations.pointerCursor!==z&&(lt._currentLink.state.decorations.pointerCursor=z,lt._currentLink.state.isHovered&&((it=lt._element)===null||it===void 0||it.classList.toggle("xterm-cursor-pointer",z)))}},underline:{get:function(){var z,ot;return(ot=(z=lt._currentLink)===null||z===void 0?void 0:z.state)===null||ot===void 0?void 0:ot.decorations.underline},set:function(z){var ot,it,at;!((ot=lt._currentLink)===null||ot===void 0)&&ot.state&&((at=(it=lt._currentLink)===null||it===void 0?void 0:it.state)===null||at===void 0?void 0:at.decorations.underline)!==z&&(lt._currentLink.state.decorations.underline=z,lt._currentLink.state.isHovered&<._fireUnderlineEvent(ct.link,z))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(z){var ot=z.start===0?0:z.start+1+lt._bufferService.buffer.ydisp;lt._clearCurrentLink(ot,z.end+1+lt._bufferService.buffer.ydisp)})))}},ft.prototype._linkHover=function(ct,lt,E){var z;!((z=this._currentLink)===null||z===void 0)&&z.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(lt,!0),this._currentLink.state.decorations.pointerCursor&&ct.classList.add("xterm-cursor-pointer")),lt.hover&<.hover(E,lt.text)},ft.prototype._fireUnderlineEvent=function(ct,lt){var E=ct.range,z=this._bufferService.buffer.ydisp,ot=this._createLinkUnderlineEvent(E.start.x-1,E.start.y-z-1,E.end.x,E.end.y-z-1,void 0);(lt?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(ot)},ft.prototype._linkLeave=function(ct,lt,E){var z;!((z=this._currentLink)===null||z===void 0)&&z.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(lt,!1),this._currentLink.state.decorations.pointerCursor&&ct.classList.remove("xterm-cursor-pointer")),lt.leave&<.leave(E,lt.text)},ft.prototype._linkAtPosition=function(ct,lt){var E=ct.range.start.y===ct.range.end.y,z=ct.range.start.ylt.y;return(E&&ct.range.start.x<=lt.x&&ct.range.end.x>=lt.x||z&&ct.range.end.x>=lt.x||ot&&ct.range.start.x<=lt.x||z&&ot)&&ct.range.start.y<=lt.y&&ct.range.end.y>=lt.y},ft.prototype._positionFromMouseEvent=function(ct,lt,E){var z=E.getCoords(ct,lt,this._bufferService.cols,this._bufferService.rows);if(z)return{x:z[0],y:z[1]+this._bufferService.buffer.ydisp}},ft.prototype._createLinkUnderlineEvent=function(ct,lt,E,z,ot){return{x1:ct,y1:lt,x2:E,y2:z,cols:this._bufferService.cols,fg:ot}},ft=kt([Ct(0,St.IBufferService)],ft)}(vt.Disposable);Rt.Linkifier2=xt},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.CoreBrowserService=void 0;var ie=function(){function rt(kt){this._textarea=kt}return Object.defineProperty(rt.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),rt}();Rt.CoreBrowserService=ie},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(ut,wt){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Et,At){Et.__proto__=At}||function(Et,At){for(var _t in At)At.hasOwnProperty(_t)&&(Et[_t]=At[_t])})(ut,wt)},function(ut,wt){function Et(){this.constructor=ut}ie(ut,wt),ut.prototype=wt===null?Object.create(wt):(Et.prototype=wt.prototype,new Et)});Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.CoreTerminal=void 0;var kt=Ft(2),Ct=Ft(1),St=Ft(66),pt=Ft(67),vt=Ft(68),yt=Ft(74),xt=Ft(75),dt=Ft(0),ft=Ft(76),ct=Ft(77),lt=Ft(78),E=Ft(80),z=Ft(81),ot=Ft(19),it=Ft(82),at=function(ut){function wt(Et){var At=ut.call(this)||this;return At._onBinary=new dt.EventEmitter,At._onData=new dt.EventEmitter,At._onLineFeed=new dt.EventEmitter,At._onResize=new dt.EventEmitter,At._onScroll=new dt.EventEmitter,At._instantiationService=new St.InstantiationService,At.optionsService=new yt.OptionsService(Et),At._instantiationService.setService(Ct.IOptionsService,At.optionsService),At._bufferService=At.register(At._instantiationService.createInstance(vt.BufferService)),At._instantiationService.setService(Ct.IBufferService,At._bufferService),At._logService=At._instantiationService.createInstance(pt.LogService),At._instantiationService.setService(Ct.ILogService,At._logService),At._coreService=At.register(At._instantiationService.createInstance(xt.CoreService,function(){return At.scrollToBottom()})),At._instantiationService.setService(Ct.ICoreService,At._coreService),At._coreMouseService=At._instantiationService.createInstance(ft.CoreMouseService),At._instantiationService.setService(Ct.ICoreMouseService,At._coreMouseService),At._dirtyRowService=At._instantiationService.createInstance(ct.DirtyRowService),At._instantiationService.setService(Ct.IDirtyRowService,At._dirtyRowService),At.unicodeService=At._instantiationService.createInstance(lt.UnicodeService),At._instantiationService.setService(Ct.IUnicodeService,At.unicodeService),At._charsetService=At._instantiationService.createInstance(E.CharsetService),At._instantiationService.setService(Ct.ICharsetService,At._charsetService),At._inputHandler=new ot.InputHandler(At._bufferService,At._charsetService,At._coreService,At._dirtyRowService,At._logService,At.optionsService,At._coreMouseService,At.unicodeService),At.register(dt.forwardEvent(At._inputHandler.onLineFeed,At._onLineFeed)),At.register(At._inputHandler),At.register(dt.forwardEvent(At._bufferService.onResize,At._onResize)),At.register(dt.forwardEvent(At._coreService.onData,At._onData)),At.register(dt.forwardEvent(At._coreService.onBinary,At._onBinary)),At.register(At.optionsService.onOptionChange(function(_t){return At._updateOptions(_t)})),At._writeBuffer=new it.WriteBuffer(function(_t){return At._inputHandler.parse(_t)}),At}return rt(wt,ut),Object.defineProperty(wt.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(wt.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(wt.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(wt.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(wt.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(wt.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(wt.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(wt.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),wt.prototype.dispose=function(){var Et;this._isDisposed||(ut.prototype.dispose.call(this),(Et=this._windowsMode)===null||Et===void 0||Et.dispose(),this._windowsMode=void 0)},wt.prototype.write=function(Et,At){this._writeBuffer.write(Et,At)},wt.prototype.writeSync=function(Et){this._writeBuffer.writeSync(Et)},wt.prototype.resize=function(Et,At){isNaN(Et)||isNaN(At)||(Et=Math.max(Et,vt.MINIMUM_COLS),At=Math.max(At,vt.MINIMUM_ROWS),this._bufferService.resize(Et,At))},wt.prototype.scroll=function(Et,At){At===void 0&&(At=!1);var _t,Mt=this._bufferService.buffer;(_t=this._cachedBlankLine)&&_t.length===this.cols&&_t.getFg(0)===Et.fg&&_t.getBg(0)===Et.bg||(_t=Mt.getBlankLine(Et,At),this._cachedBlankLine=_t),_t.isWrapped=At;var jt=Mt.ybase+Mt.scrollTop,Lt=Mt.ybase+Mt.scrollBottom;if(Mt.scrollTop===0){var It=Mt.lines.isFull;Lt===Mt.lines.length-1?It?Mt.lines.recycle().copyFrom(_t):Mt.lines.push(_t.clone()):Mt.lines.splice(Lt+1,0,_t.clone()),It?this._bufferService.isUserScrolling&&(Mt.ydisp=Math.max(Mt.ydisp-1,0)):(Mt.ybase++,this._bufferService.isUserScrolling||Mt.ydisp++)}else{var Ut=Lt-jt+1;Mt.lines.shiftElements(jt+1,Ut-1,-1),Mt.lines.set(Lt,_t.clone())}this._bufferService.isUserScrolling||(Mt.ydisp=Mt.ybase),this._dirtyRowService.markRangeDirty(Mt.scrollTop,Mt.scrollBottom),this._onScroll.fire(Mt.ydisp)},wt.prototype.scrollLines=function(Et,At){var _t=this._bufferService.buffer;if(Et<0){if(_t.ydisp===0)return;this._bufferService.isUserScrolling=!0}else Et+_t.ydisp>=_t.ybase&&(this._bufferService.isUserScrolling=!1);var Mt=_t.ydisp;_t.ydisp=Math.max(Math.min(_t.ydisp+Et,_t.ybase),0),Mt!==_t.ydisp&&(At||this._onScroll.fire(_t.ydisp))},wt.prototype.scrollPages=function(Et){this.scrollLines(Et*(this.rows-1))},wt.prototype.scrollToTop=function(){this.scrollLines(-this._bufferService.buffer.ydisp)},wt.prototype.scrollToBottom=function(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)},wt.prototype.scrollToLine=function(Et){var At=Et-this._bufferService.buffer.ydisp;At!==0&&this.scrollLines(At)},wt.prototype.addEscHandler=function(Et,At){return this._inputHandler.addEscHandler(Et,At)},wt.prototype.addDcsHandler=function(Et,At){return this._inputHandler.addDcsHandler(Et,At)},wt.prototype.addCsiHandler=function(Et,At){return this._inputHandler.addCsiHandler(Et,At)},wt.prototype.addOscHandler=function(Et,At){return this._inputHandler.addOscHandler(Et,At)},wt.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},wt.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset()},wt.prototype._updateOptions=function(Et){var At;switch(Et){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((At=this._windowsMode)===null||At===void 0||At.dispose(),this._windowsMode=void 0)}},wt.prototype._enableWindowsMode=function(){var Et=this;if(!this._windowsMode){var At=[];At.push(this.onLineFeed(z.updateWindowsModeWrappedState.bind(null,this._bufferService))),At.push(this.addCsiHandler({final:"H"},function(){return z.updateWindowsModeWrappedState(Et._bufferService),!1})),this._windowsMode={dispose:function(){for(var _t=0,Mt=At;_t0?dt[0].index:yt.length;if(yt.length!==ot)throw new Error("[createInstance] First service dependency of "+vt.name+" at position "+(ot+1)+" conflicts with "+yt.length+" static arguments");return new(vt.bind.apply(vt,ie([void 0],ie(yt,ft))))},pt}();Rt.InstantiationService=St},function(Ke,Rt,Ft){"use strict";var ie=this&&this.__decorate||function(yt,xt,dt,ft){var ct,lt=arguments.length,E=lt<3?xt:ft===null?ft=Object.getOwnPropertyDescriptor(xt,dt):ft;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(yt,xt,dt,ft);else for(var z=yt.length-1;z>=0;z--)(ct=yt[z])&&(E=(lt<3?ct(E):lt>3?ct(xt,dt,E):ct(xt,dt))||E);return lt>3&&E&&Object.defineProperty(xt,dt,E),E},rt=this&&this.__param||function(yt,xt){return function(dt,ft){xt(dt,ft,yt)}},kt=this&&this.__spreadArrays||function(){for(var yt=0,xt=0,dt=arguments.length;xt=0;it--)(E=dt[it])&&(ot=(z<3?E(ot):z>3?E(ft,ct,ot):E(ft,ct))||ot);return z>3&&ot&&Object.defineProperty(ft,ct,ot),ot},Ct=this&&this.__param||function(dt,ft){return function(ct,lt){ft(ct,lt,dt)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.BufferService=Rt.MINIMUM_ROWS=Rt.MINIMUM_COLS=void 0;var St=Ft(1),pt=Ft(69),vt=Ft(0),yt=Ft(2);Rt.MINIMUM_COLS=2,Rt.MINIMUM_ROWS=1;var xt=function(dt){function ft(ct){var lt=dt.call(this)||this;return lt._optionsService=ct,lt.isUserScrolling=!1,lt._onResize=new vt.EventEmitter,lt.cols=Math.max(ct.options.cols,Rt.MINIMUM_COLS),lt.rows=Math.max(ct.options.rows,Rt.MINIMUM_ROWS),lt.buffers=new pt.BufferSet(ct,lt),lt}return rt(ft,dt),Object.defineProperty(ft.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(ft.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),ft.prototype.dispose=function(){dt.prototype.dispose.call(this),this.buffers.dispose()},ft.prototype.resize=function(ct,lt){this.cols=ct,this.rows=lt,this.buffers.resize(ct,lt),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:ct,rows:lt})},ft.prototype.reset=function(){this.buffers.dispose(),this.buffers=new pt.BufferSet(this._optionsService,this),this.isUserScrolling=!1},ft=kt([Ct(0,St.IOptionsService)],ft)}(yt.Disposable);Rt.BufferService=xt},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(pt,vt){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(yt,xt){yt.__proto__=xt}||function(yt,xt){for(var dt in xt)xt.hasOwnProperty(dt)&&(yt[dt]=xt[dt])})(pt,vt)},function(pt,vt){function yt(){this.constructor=pt}ie(pt,vt),pt.prototype=vt===null?Object.create(vt):(yt.prototype=vt.prototype,new yt)});Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.BufferSet=void 0;var kt=Ft(70),Ct=Ft(0),St=function(pt){function vt(yt,xt){var dt=pt.call(this)||this;return dt._onBufferActivate=dt.register(new Ct.EventEmitter),dt._normal=new kt.Buffer(!0,yt,xt),dt._normal.fillViewportRows(),dt._alt=new kt.Buffer(!1,yt,xt),dt._activeBuffer=dt._normal,dt.setupTabStops(),dt}return rt(vt,pt),Object.defineProperty(vt.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(vt.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(vt.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(vt.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),vt.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},vt.prototype.activateAltBuffer=function(yt){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(yt),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},vt.prototype.resize=function(yt,xt){this._normal.resize(yt,xt),this._alt.resize(yt,xt)},vt.prototype.setupTabStops=function(yt){this._normal.setupTabStops(yt),this._alt.setupTabStops(yt)},vt}(Ft(2).Disposable);Rt.BufferSet=St},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.BufferStringIterator=Rt.Buffer=Rt.MAX_BUFFER_SIZE=void 0;var ie=Ft(71),rt=Ft(16),kt=Ft(4),Ct=Ft(3),St=Ft(72),pt=Ft(73),vt=Ft(20),yt=Ft(6);Rt.MAX_BUFFER_SIZE=4294967295;var xt=function(){function ft(ct,lt,E){this._hasScrollback=ct,this._optionsService=lt,this._bufferService=E,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=rt.DEFAULT_ATTR_DATA.clone(),this.savedCharset=vt.DEFAULT_CHARSET,this.markers=[],this._nullCell=kt.CellData.fromCharData([0,Ct.NULL_CELL_CHAR,Ct.NULL_CELL_WIDTH,Ct.NULL_CELL_CODE]),this._whitespaceCell=kt.CellData.fromCharData([0,Ct.WHITESPACE_CELL_CHAR,Ct.WHITESPACE_CELL_WIDTH,Ct.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new ie.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return ft.prototype.getNullCell=function(ct){return ct?(this._nullCell.fg=ct.fg,this._nullCell.bg=ct.bg,this._nullCell.extended=ct.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new yt.ExtendedAttrs),this._nullCell},ft.prototype.getWhitespaceCell=function(ct){return ct?(this._whitespaceCell.fg=ct.fg,this._whitespaceCell.bg=ct.bg,this._whitespaceCell.extended=ct.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new yt.ExtendedAttrs),this._whitespaceCell},ft.prototype.getBlankLine=function(ct,lt){return new rt.BufferLine(this._bufferService.cols,this.getNullCell(ct),lt)},Object.defineProperty(ft.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(ft.prototype,"isCursorInViewport",{get:function(){var ct=this.ybase+this.y-this.ydisp;return ct>=0&&ctRt.MAX_BUFFER_SIZE?Rt.MAX_BUFFER_SIZE:lt},ft.prototype.fillViewportRows=function(ct){if(this.lines.length===0){ct===void 0&&(ct=rt.DEFAULT_ATTR_DATA);for(var lt=this._rows;lt--;)this.lines.push(this.getBlankLine(ct))}},ft.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new ie.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},ft.prototype.resize=function(ct,lt){var E=this.getNullCell(rt.DEFAULT_ATTR_DATA),z=this._getCorrectBufferLength(lt);if(z>this.lines.maxLength&&(this.lines.maxLength=z),this.lines.length>0){if(this._cols0&&this.lines.length<=this.ybase+this.y+it+1?(this.ybase--,it++,this.ydisp>0&&this.ydisp--):this.lines.push(new rt.BufferLine(ct,E)));else for(at=this._rows;at>lt;at--)this.lines.length>lt+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(z0&&(this.lines.trimStart(ut),this.ybase=Math.max(this.ybase-ut,0),this.ydisp=Math.max(this.ydisp-ut,0),this.savedY=Math.max(this.savedY-ut,0)),this.lines.maxLength=z}this.x=Math.min(this.x,ct-1),this.y=Math.min(this.y,lt-1),it&&(this.y+=it),this.savedX=Math.min(this.savedX,ct-1),this.scrollTop=0}if(this.scrollBottom=lt-1,this._isReflowEnabled&&(this._reflow(ct,lt),this._cols>ct))for(ot=0;otthis._cols?this._reflowLarger(ct,lt):this._reflowSmaller(ct,lt))},ft.prototype._reflowLarger=function(ct,lt){var E=St.reflowLargerGetLinesToRemove(this.lines,this._cols,ct,this.ybase+this.y,this.getNullCell(rt.DEFAULT_ATTR_DATA));if(E.length>0){var z=St.reflowLargerCreateNewLayout(this.lines,E);St.reflowLargerApplyNewLayout(this.lines,z.layout),this._reflowLargerAdjustViewport(ct,lt,z.countRemoved)}},ft.prototype._reflowLargerAdjustViewport=function(ct,lt,E){for(var z=this.getNullCell(rt.DEFAULT_ATTR_DATA),ot=E;ot-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length=0;it--){var at=this.lines.get(it);if(!(!at||!at.isWrapped&&at.getTrimmedLength()<=ct)){for(var ut=[at];at.isWrapped&&it>0;)at=this.lines.get(--it),ut.unshift(at);var wt=this.ybase+this.y;if(!(wt>=it&&wt0&&(z.push({start:it+ut.length+ot,newLines:jt}),ot+=jt.length),ut.push.apply(ut,jt);var Ut=At.length-1,Xt=At[Ut];Xt===0&&(Xt=At[--Ut]);for(var Gt=ut.length-_t-1,Vt=Et;Gt>=0;){var Ht=Math.min(Vt,Xt);if(ut[Ut].copyCellsFrom(ut[Gt],Vt-Ht,Xt-Ht,Ht,!0),(Xt-=Ht)===0&&(Xt=At[--Ut]),(Vt-=Ht)===0){Gt--;var ne=Math.max(Gt,0);Vt=St.getWrappedLineTrimmedLength(ut,ne,this._cols)}}for(Lt=0;Lt0;)this.ybase===0?this.y0){var ve=[],Kt=[];for(Lt=0;Lt=0;Lt--)if(Me&&Me.start>we+ge){for(var fe=Me.newLines.length-1;fe>=0;fe--)this.lines.set(Lt--,Me.newLines[fe]);Lt++,ve.push({index:we+1,amount:Me.newLines.length}),ge+=Me.newLines.length,Me=z[++ke]}else this.lines.set(Lt,Kt[we--]);var de=0;for(Lt=ve.length-1;Lt>=0;Lt--)ve[Lt].index+=de,this.lines.onInsertEmitter.fire(ve[Lt]),de+=ve[Lt].amount;var _e=Math.max(0,re+ot-this.lines.maxLength);_e>0&&this.lines.onTrimEmitter.fire(_e)}},ft.prototype.stringIndexToBufferIndex=function(ct,lt,E){for(E===void 0&&(E=!1);lt;){var z=this.lines.get(ct);if(!z)return[-1,-1];for(var ot=E?z.getTrimmedLength():z.length,it=0;it0&&this.lines.get(lt).isWrapped;)lt--;for(;E+10;);return ct>=this._cols?this._cols-1:ct<0?0:ct},ft.prototype.nextStop=function(ct){for(ct==null&&(ct=this.x);!this.tabs[++ct]&&ct=this._cols?this._cols-1:ct<0?0:ct},ft.prototype.addMarker=function(ct){var lt=this,E=new pt.Marker(ct);return this.markers.push(E),E.register(this.lines.onTrim(function(z){E.line-=z,E.line<0&&E.dispose()})),E.register(this.lines.onInsert(function(z){E.line>=z.index&&(E.line+=z.amount)})),E.register(this.lines.onDelete(function(z){E.line>=z.index&&E.linez.index&&(E.line-=z.amount)})),E.register(E.onDispose(function(){return lt._removeMarker(E)})),E},ft.prototype._removeMarker=function(ct){this.markers.splice(this.markers.indexOf(ct),1)},ft.prototype.iterator=function(ct,lt,E,z,ot){return new dt(this,ct,lt,E,z,ot)},ft}();Rt.Buffer=xt;var dt=function(){function ft(ct,lt,E,z,ot,it){E===void 0&&(E=0),z===void 0&&(z=ct.lines.length),ot===void 0&&(ot=0),it===void 0&&(it=0),this._buffer=ct,this._trimRight=lt,this._startIndex=E,this._endIndex=z,this._startOverscan=ot,this._endOverscan=it,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return ft.prototype.hasNext=function(){return this._currentthis._endIndex+this._endOverscan&&(ct.last=this._endIndex+this._endOverscan),ct.first=Math.max(ct.first,0),ct.last=Math.min(ct.last,this._buffer.lines.length);for(var lt="",E=ct.first;E<=ct.last;++E)lt+=this._buffer.translateBufferLineToString(E,this._trimRight);return this._current=ct.last+1,{range:ct,content:lt}},ft}();Rt.BufferStringIterator=dt},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.CircularList=void 0;var ie=Ft(0),rt=function(){function kt(Ct){this._maxLength=Ct,this.onDeleteEmitter=new ie.EventEmitter,this.onInsertEmitter=new ie.EventEmitter,this.onTrimEmitter=new ie.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(kt.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(kt.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(kt.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(kt.prototype,"maxLength",{get:function(){return this._maxLength},set:function(Ct){if(this._maxLength!==Ct){for(var St=new Array(Ct),pt=0;ptthis._length)for(var St=this._length;St=Ct;yt--)this._array[this._getCyclicIndex(yt+pt.length)]=this._array[this._getCyclicIndex(yt)];for(yt=0;ytthis._maxLength){var xt=this._length+pt.length-this._maxLength;this._startIndex+=xt,this._length=this._maxLength,this.onTrimEmitter.fire(xt)}else this._length+=pt.length},kt.prototype.trimStart=function(Ct){Ct>this._length&&(Ct=this._length),this._startIndex+=Ct,this._length-=Ct,this.onTrimEmitter.fire(Ct)},kt.prototype.shiftElements=function(Ct,St,pt){if(!(St<=0)){if(Ct<0||Ct>=this._length)throw new Error("start argument out of range");if(Ct+pt<0)throw new Error("Cannot shift elements in list beyond index 0");if(pt>0){for(var vt=St-1;vt>=0;vt--)this.set(Ct+vt+pt,this.get(Ct+vt));var yt=Ct+St+pt-this._length;if(yt>0)for(this._length+=yt;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(vt=0;vt=yt&&St0&&(Et>ct||ft[Et].getTrimmedLength()===0);Et--)wt++;wt>0&&(vt.push(yt+ft.length-wt),vt.push(wt)),yt+=ft.length-1}}}return vt},Rt.reflowLargerCreateNewLayout=function(rt,kt){for(var Ct=[],St=0,pt=kt[St],vt=0,yt=0;ytdt&&(vt-=dt,yt++);var ft=rt[yt].getWidth(vt-1)===2;ft&&vt--;var ct=ft?Ct-1:Ct;St.push(ct),xt+=ct}return St},Rt.getWrappedLineTrimmedLength=ie},function(Ke,Rt,Ft){"use strict";var ie,rt=this&&this.__extends||(ie=function(St,pt){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(vt,yt){vt.__proto__=yt}||function(vt,yt){for(var xt in yt)yt.hasOwnProperty(xt)&&(vt[xt]=yt[xt])})(St,pt)},function(St,pt){function vt(){this.constructor=St}ie(St,pt),St.prototype=pt===null?Object.create(pt):(vt.prototype=pt.prototype,new vt)});Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.Marker=void 0;var kt=Ft(0),Ct=function(St){function pt(vt){var yt=St.call(this)||this;return yt.line=vt,yt._id=pt._nextId++,yt.isDisposed=!1,yt._onDispose=new kt.EventEmitter,yt}return rt(pt,St),Object.defineProperty(pt.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(pt.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),pt.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},pt._nextId=1,pt}(Ft(2).Disposable);Rt.Marker=Ct},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.OptionsService=Rt.DEFAULT_OPTIONS=Rt.DEFAULT_BELL_SOUND=void 0;var ie=Ft(0),rt=Ft(11),kt=Ft(33);Rt.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",Rt.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:Rt.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,linkTooltipHoverDuration:500,letterSpacing:0,logLevel:"info",scrollback:1e3,scrollSensitivity:1,screenReaderMode:!1,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!0,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:rt.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",convertEol:!1,termName:"xterm",cancelEvents:!1});var Ct=["cols","rows"],St=function(){function pt(vt){this._onOptionChange=new ie.EventEmitter,this.options=kt.clone(Rt.DEFAULT_OPTIONS);for(var yt=0,xt=Object.keys(vt);yt=0;ut--)(ot=ct[ut])&&(at=(it<3?ot(at):it>3?ot(lt,E,at):ot(lt,E))||at);return it>3&&at&&Object.defineProperty(lt,E,at),at},Ct=this&&this.__param||function(ct,lt){return function(E,z){lt(E,z,ct)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.CoreService=void 0;var St=Ft(1),pt=Ft(0),vt=Ft(33),yt=Ft(2),xt=Object.freeze({insertMode:!1}),dt=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),ft=function(ct){function lt(E,z,ot,it){var at=ct.call(this)||this;return at._bufferService=z,at._logService=ot,at._optionsService=it,at.isCursorInitialized=!1,at.isCursorHidden=!1,at._onData=at.register(new pt.EventEmitter),at._onUserInput=at.register(new pt.EventEmitter),at._onBinary=at.register(new pt.EventEmitter),at._scrollToBottom=E,at.register({dispose:function(){return at._scrollToBottom=void 0}}),at.modes=vt.clone(xt),at.decPrivateModes=vt.clone(dt),at}return rt(lt,ct),Object.defineProperty(lt.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(lt.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(lt.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),lt.prototype.reset=function(){this.modes=vt.clone(xt),this.decPrivateModes=vt.clone(dt)},lt.prototype.triggerDataEvent=function(E,z){if(z===void 0&&(z=!1),!this._optionsService.options.disableStdin){var ot=this._bufferService.buffer;ot.ybase!==ot.ydisp&&this._scrollToBottom(),z&&this._onUserInput.fire(),this._logService.debug('sending data "'+E+'"',function(){return E.split("").map(function(it){return it.charCodeAt(0)})}),this._onData.fire(E)}},lt.prototype.triggerBinaryEvent=function(E){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+E+'"',function(){return E.split("").map(function(z){return z.charCodeAt(0)})}),this._onBinary.fire(E))},lt=kt([Ct(1,St.IBufferService),Ct(2,St.ILogService),Ct(3,St.IOptionsService)],lt)}(yt.Disposable);Rt.CoreService=ft},function(Ke,Rt,Ft){"use strict";var ie=this&&this.__decorate||function(dt,ft,ct,lt){var E,z=arguments.length,ot=z<3?ft:lt===null?lt=Object.getOwnPropertyDescriptor(ft,ct):lt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ot=Reflect.decorate(dt,ft,ct,lt);else for(var it=dt.length-1;it>=0;it--)(E=dt[it])&&(ot=(z<3?E(ot):z>3?E(ft,ct,ot):E(ft,ct))||ot);return z>3&&ot&&Object.defineProperty(ft,ct,ot),ot},rt=this&&this.__param||function(dt,ft){return function(ct,lt){ft(ct,lt,dt)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.CoreMouseService=void 0;var kt=Ft(1),Ct=Ft(0),St={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(dt){return dt.button!==4&&dt.action===1&&(dt.ctrl=!1,dt.alt=!1,dt.shift=!1,!0)}},VT200:{events:19,restrict:function(dt){return dt.action!==32}},DRAG:{events:23,restrict:function(dt){return dt.action!==32||dt.button!==3}},ANY:{events:31,restrict:function(dt){return!0}}};function pt(dt,ft){var ct=(dt.ctrl?16:0)|(dt.shift?4:0)|(dt.alt?8:0);return dt.button===4?(ct|=64,ct|=dt.action):(ct|=3&dt.button,4&dt.button&&(ct|=64),8&dt.button&&(ct|=128),dt.action===32?ct|=32:dt.action!==0||ft||(ct|=3)),ct}var vt=String.fromCharCode,yt={DEFAULT:function(dt){var ft=[pt(dt,!1)+32,dt.col+32,dt.row+32];return ft[0]>255||ft[1]>255||ft[2]>255?"":"\x1B[M"+vt(ft[0])+vt(ft[1])+vt(ft[2])},SGR:function(dt){var ft=dt.action===0&&dt.button!==4?"m":"M";return"\x1B[<"+pt(dt,!0)+";"+dt.col+";"+dt.row+ft}},xt=function(){function dt(ft,ct){this._bufferService=ft,this._coreService=ct,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new Ct.EventEmitter,this._lastEvent=null;for(var lt=0,E=Object.keys(St);lt=this._bufferService.cols||ft.row<0||ft.row>=this._bufferService.rows||ft.button===4&&ft.action===32||ft.button===3&&ft.action!==32||ft.button!==4&&(ft.action===2||ft.action===3)||(ft.col++,ft.row++,ft.action===32&&this._lastEvent&&this._compareEvents(this._lastEvent,ft))||!this._protocols[this._activeProtocol].restrict(ft))return!1;var ct=this._encodings[this._activeEncoding](ft);return ct&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(ct):this._coreService.triggerDataEvent(ct,!0)),this._lastEvent=ft,!0},dt.prototype.explainEvents=function(ft){return{down:!!(1&ft),up:!!(2&ft),drag:!!(4&ft),move:!!(8&ft),wheel:!!(16&ft)}},dt.prototype._compareEvents=function(ft,ct){return ft.col===ct.col&&ft.row===ct.row&&ft.button===ct.button&&ft.action===ct.action&&ft.ctrl===ct.ctrl&&ft.alt===ct.alt&&ft.shift===ct.shift},dt=ie([rt(0,kt.IBufferService),rt(1,kt.ICoreService)],dt)}();Rt.CoreMouseService=xt},function(Ke,Rt,Ft){"use strict";var ie=this&&this.__decorate||function(St,pt,vt,yt){var xt,dt=arguments.length,ft=dt<3?pt:yt===null?yt=Object.getOwnPropertyDescriptor(pt,vt):yt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ft=Reflect.decorate(St,pt,vt,yt);else for(var ct=St.length-1;ct>=0;ct--)(xt=St[ct])&&(ft=(dt<3?xt(ft):dt>3?xt(pt,vt,ft):xt(pt,vt))||ft);return dt>3&&ft&&Object.defineProperty(pt,vt,ft),ft},rt=this&&this.__param||function(St,pt){return function(vt,yt){pt(vt,yt,St)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.DirtyRowService=void 0;var kt=Ft(1),Ct=function(){function St(pt){this._bufferService=pt,this.clearRange()}return Object.defineProperty(St.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(St.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),St.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},St.prototype.markDirty=function(pt){ptthis._end&&(this._end=pt)},St.prototype.markRangeDirty=function(pt,vt){if(pt>vt){var yt=pt;pt=vt,vt=yt}ptthis._end&&(this._end=vt)},St.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},St=ie([rt(0,kt.IBufferService)],St)}();Rt.DirtyRowService=Ct},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.UnicodeService=void 0;var ie=Ft(0),rt=Ft(79),kt=function(){function Ct(){this._providers=Object.create(null),this._active="",this._onChange=new ie.EventEmitter;var St=new rt.UnicodeV6;this.register(St),this._active=St.version,this._activeProvider=St}return Object.defineProperty(Ct.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"activeVersion",{get:function(){return this._active},set:function(St){if(!this._providers[St])throw new Error('unknown Unicode version "'+St+'"');this._active=St,this._activeProvider=this._providers[St],this._onChange.fire(St)},enumerable:!1,configurable:!0}),Ct.prototype.register=function(St){this._providers[St.version]=St},Ct.prototype.wcwidth=function(St){return this._activeProvider.wcwidth(St)},Ct.prototype.getStringCellWidth=function(St){for(var pt=0,vt=St.length,yt=0;yt=vt)return pt+this.wcwidth(xt);var dt=St.charCodeAt(yt);56320<=dt&&dt<=57343?xt=1024*(xt-55296)+dt-56320+65536:pt+=this.wcwidth(dt)}pt+=this.wcwidth(xt)}return pt},Ct}();Rt.UnicodeService=kt},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.UnicodeV6=void 0;var ie,rt=Ft(15),kt=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],Ct=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],St=function(){function pt(){if(this.version="6",!ie){ie=new Uint8Array(65536),rt.fill(ie,1),ie[0]=0,rt.fill(ie,0,1,32),rt.fill(ie,0,127,160),rt.fill(ie,2,4352,4448),ie[9001]=2,ie[9002]=2,rt.fill(ie,2,11904,42192),ie[12351]=1,rt.fill(ie,2,44032,55204),rt.fill(ie,2,63744,64256),rt.fill(ie,2,65040,65050),rt.fill(ie,2,65072,65136),rt.fill(ie,2,65280,65377),rt.fill(ie,2,65504,65511);for(var vt=0;vtxt[ct][1])return!1;for(;ct>=ft;)if(yt>xt[dt=ft+ct>>1][1])ft=dt+1;else{if(!(yt=131072&&vt<=196605||vt>=196608&&vt<=262141?2:1},pt}();Rt.UnicodeV6=St},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.CharsetService=void 0;var ie=function(){function rt(){this.glevel=0,this._charsets=[]}return rt.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},rt.prototype.setgLevel=function(kt){this.glevel=kt,this.charset=this._charsets[kt]},rt.prototype.setgCharset=function(kt,Ct){this._charsets[kt]=Ct,this.glevel===kt&&(this.charset=Ct)},rt}();Rt.CharsetService=ie},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.updateWindowsModeWrappedState=void 0;var ie=Ft(3);Rt.updateWindowsModeWrappedState=function(rt){var kt=rt.buffer.lines.get(rt.buffer.ybase+rt.buffer.y-1),Ct=kt==null?void 0:kt.get(rt.cols-1),St=rt.buffer.lines.get(rt.buffer.ybase+rt.buffer.y);St&&Ct&&(St.isWrapped=Ct[ie.CHAR_DATA_CODE_INDEX]!==ie.NULL_CELL_CODE&&Ct[ie.CHAR_DATA_CODE_INDEX]!==ie.WHITESPACE_CELL_CODE)}},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.WriteBuffer=void 0;var ie=function(){function rt(kt){this._action=kt,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return rt.prototype.writeSync=function(kt){if(this._writeBuffer.length){for(var Ct=this._bufferOffset;Ct5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return St._innerWrite()})),this._pendingData+=kt.length,this._writeBuffer.push(kt),this._callbacks.push(Ct)},rt.prototype._innerWrite=function(){for(var kt=this,Ct=Date.now();this._writeBuffer.length>this._bufferOffset;){var St=this._writeBuffer[this._bufferOffset],pt=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(St),this._pendingData-=St.length,pt&&pt(),Date.now()-Ct>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(function(){return kt._innerWrite()},0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},rt}();Rt.WriteBuffer=ie},function(Ke,Rt,Ft){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.AddonManager=void 0;var ie=function(){function rt(){this._addons=[]}return rt.prototype.dispose=function(){for(var kt=this._addons.length-1;kt>=0;kt--)this._addons[kt].instance.dispose()},rt.prototype.loadAddon=function(kt,Ct){var St=this,pt={instance:Ct,dispose:Ct.dispose,isDisposed:!1};this._addons.push(pt),Ct.dispose=function(){return St._wrappedAddonDispose(pt)},Ct.activate(kt)},rt.prototype._wrappedAddonDispose=function(kt){if(!kt.isDisposed){for(var Ct=-1,St=0;Stuo+Hi)}),$t.current.on("done",bi=>{jt(H `),Ce=Ce.replace(/
      /g,` `),Ce=Ce.replace(/\r\n/g,` `),Ce=Ce.replace(/<[^>]*>/g,""),Ce=qt(Ce),Ce});Yn.Z=Tt},86106:function(un,Yn,St){"use strict";St.d(Yn,{Z:function(){return ze}});var ot=St(59301),Tt=St(43418),ae=St(95237),$e=St(93948),fe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGIAAABYCAYAAAAORCLFAAAAAXNSR0IArs4c6QAAIABJREFUeF7lfQecXFXZ/nNumT6zvWeTTSWkEEJooUgRpSMooiLfxycqTcQGIvipAf1UsNFEUAQBQTpSDCgtIQVTSAgJ6ckm2ZJt2dnd6XPL+fuec8/sZAmSbAKBv/P73Z3ZmXvv3Ps+5+1lGD5kD855cHM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7wfemy7puFk2TplgYL89psNDZEoLCyKVoVY3gvLqpKCcBcrD+Uw2PPDCEzxpQ99TjXTX4Y/H7XXy14+fUG4NWe/6wAIj7oT/8gu8CXzo1SOjcXPf9yL5Au83IpvsjeLY22AqWpkeFtoatbuTBjArBMo8wF2LhpBK8cyGrrTDgjYeB/+pXt+/4aT14bdZ56taR6fY8/64CI3+5//mZuoXTstwewbvK94DI/IKdE1pctMavJxrzZDurrLGV5DY4E2H+4gF2dY8jmQ139KsVj+Xzx9v1fWtD1+pLy33b2sxqI+K3d+U250Pdz7wiRuMn3/UuDQLpFz1ftgIIw1LXN7G7gk3tYbWT1e2H4yR33tH1NG7Nn9/ZrA0ScjB/8x9zCQijfIWHd5BWDS4t+6KpWC4FAoejl/NB+oFD0/9uWP5914uwmf3l0v5ZAxIn7nr/MdWSRv84vhA1eaO3PZ/Kbnv7cnN5fFwDMOP8vz4/Uk8nae+oAAAAASUVORK5CYII=",Oe={dotLoading:"dotLoading___s6Sh4",showHide:"showHide___Dfprh",progress:"progress___QUpqo"},de=St(59301);const Ce=["\u6587\u4EF6\u89E3\u6790\u8BFB\u53D6\u4E2D","\u5185\u5BB9\u7406\u89E3\u5206\u6790\u4E2D","\u7ED3\u6784\u5316\u63D0\u53D6\u4E2D"];var ze=()=>{const[He,Ft]=(0,ot.useState)(0),[nt,et]=(0,ot.useState)(!1),[ct,ut]=(0,ot.useState)(!0),pt=(0,ot.useRef)(null);(0,ot.useEffect)(()=>{if(ct)return;const ee=()=>{Ft(re=>re>=99?(clearInterval(pt.current),99):re+1)};return pt.current=setInterval(ee,5e4/99),()=>clearInterval(pt.current)},[ct]);const yt=()=>{Ft(0),et(!0),ut(!1)},Pt=(ee=0)=>{ut(!0),Ft(ee),et(!1)},bt=ee=>{const re=ee/1048576;let ie;return re<=.3?ie=3:re<=.5?ie=5:re<=1?ie=10:re<=2?ie=20:re<=3?ie=30:re<=10?ie=re*10:ie=100,` \u9884\u8BA1\u5904\u7406\u65F6\u957F\u4E3A${ie}\u5206\u949F\uFF0C\u8BF7\u52FF\u5173\u95ED\u7A97\u53E3`},Rt=()=>de.createElement("span",{className:Oe.dotLoading},de.createElement("span",null,"."),de.createElement("span",null,"."),de.createElement("span",null,"."));return{progress:He,progressOpen:nt,openProgress:yt,closeProgress:Pt,toggleLock:()=>ut(ee=>!ee),CreateProgressModal:(ee=Ce,re)=>(typeof ee=="string"&&(ee=[ee,ee,ee]),de.createElement(Tt.default,{centered:!0,closable:!1,destroyOnClose:!0,zIndex:1200,open:nt,title:null,footer:null,width:500,afterClose:()=>Ft(0)},de.createElement(ae.Z,{align:"middle",className:"mt40 mb20",style:{flexDirection:"column"}},He<=30&&de.createElement(de.Fragment,null,de.createElement("img",{src:fe,alt:"Step 1"}),de.createElement("div",{className:"mt20 c-light-primary"},ee[0],Rt())),He>30&&He<60&&de.createElement(de.Fragment,null,de.createElement("img",{src:ve,alt:"Step 2"}),de.createElement("div",{className:"mt20 c-light-primary"},ee[1],Rt())),He>=60&&de.createElement(de.Fragment,null,de.createElement("img",{src:qt,alt:"Step 3"}),de.createElement("div",{className:"mt20 c-light-primary"},ee[2],Rt())),de.createElement($e.Z,{className:Oe.progress,status:"active",style:{width:"auto"},size:[300,8],percent:He}),!!re&&de.createElement("div",{className:"c-grey-999"},bt(re)))))}}},89498:function(un,Yn,St){"use strict";St.d(Yn,{Z:function(){return Ye}});var ot=St(59301),Tt=St(38854),ae=St(8591),$e=St(6848),fe=St(92832),ve=St(3113),qt=St(43276),Oe={wrap:"wrap___AasCO",chatContainer:"chatContainer___n6e3E",btnContainer:"btnContainer___yKyVB",btn:"btn___Y_09T",inputContainer:"inputContainer____bM3M",sendBtn:"sendBtn___UHHLj",sendBtnDisabled:"sendBtnDisabled___AoSRc",cancelBtn:"cancelBtn___yql4C",loadingWrp:"loadingWrp___gYLGT","dot-fade":"dot-fade___LruoO"},Ce=({position:kn,children:Tn})=>{const{left:Be=0,top:be=0}=kn||{},[Ke,jn]=(0,ot.useState)(Be),[Wn,An]=(0,ot.useState)(be),oe=(0,ot.useRef)(null),cn=()=>{if(oe.current){const wn=oe.current.offsetWidth,Fn=oe.current.offsetHeight,mn=window.innerWidth,Dn=window.innerHeight;let rn=Be,ce=be;Be+wn>mn&&(rn=mn-wn),rn<0&&(rn=0),be+Fn>Dn&&(ce=Dn-Fn),ce<0&&(ce=0),jn(rn),An(ce)}};return(0,ot.useEffect)(()=>{if(!oe.current||!kn)return;const wn=new ResizeObserver(()=>{cn()});return wn.observe(oe.current),()=>{wn.disconnect()}},[Be,be,kn]),(0,ot.useEffect)(()=>{kn&&cn()},[Be,be,kn]),kn?ot.createElement("div",{ref:oe,style:{position:"fixed",left:`${Ke}px`,top:`${Wn}px`,zIndex:1050}},Tn):null},xe=St(3294),ze=St(56102),He=St(24544),Ft=Object.defineProperty,nt=Object.defineProperties,et=Object.getOwnPropertyDescriptors,ct=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,yt=(kn,Tn,Be)=>Tn in kn?Ft(kn,Tn,{enumerable:!0,configurable:!0,writable:!0,value:Be}):kn[Tn]=Be,Pt=(kn,Tn)=>{for(var Be in Tn||(Tn={}))ut.call(Tn,Be)&&yt(kn,Be,Tn[Be]);if(ct)for(var Be of ct(Tn))pt.call(Tn,Be)&&yt(kn,Be,Tn[Be]);return kn},bt=(kn,Tn)=>nt(kn,et(Tn)),Rt=(kn,Tn,Be)=>new Promise((be,Ke)=>{var jn=oe=>{try{An(Be.next(oe))}catch(cn){Ke(cn)}},Wn=oe=>{try{An(Be.throw(oe))}catch(cn){Ke(cn)}},An=oe=>oe.done?be(oe.value):Promise.resolve(oe.value).then(jn,Wn);An((Be=Be.apply(kn,Tn)).next())}),ee=({visible:kn,position:Tn,selectText:Be,applyRefinedText:be,fetchUrl:Ke,noRestrictModal:jn})=>{var Wn;const[An,oe]=(0,ot.useState)(!1),[cn,wn]=(0,ot.useState)([]),[Fn,mn]=(0,ot.useState)(""),[Dn,rn]=(0,ot.useState)(1),[ce,Kt]=(0,ot.useState)(""),[we,Ee]=(0,ot.useState)(!1),ke=(0,ot.useRef)(null),[ln,Dt]=(0,ot.useState)(!1),[wt,At]=(0,ot.useState)(0),Bt=(0,ot.useRef)(!1),jt=((Wn=cn==null?void 0:cn[(cn==null?void 0:cn.length)-1])==null?void 0:Wn.loading)===!0;(0,ot.useEffect)(()=>{if(kn){rn(1);return}Dt(!1),oe(!1),Mt(),At(0),wn([]),rn(0)},[kn]);const Mt=()=>{var qn,$t;mn(""),Kt(""),($t=(qn=ke.current)==null?void 0:qn.cancelRequest)==null||$t.call(qn)},Ae=(...qn)=>Rt(void 0,[...qn],function*($t="",tn=cn){const Jn=Date.now(),zt=[...tn,{text:$t,key:Jn,sender:"user",show:!0},{loading:!0,key:Jn,sender:"AI",show:!0}];rn(2),wn(zt);const Mn=Rn(tn),le={no_record_times:!0,prompt:$t,history:Mn};ke.current=new He.Z(xe.Z.API_SERVER+Ke,le),yield new Promise(Ct=>{ke.current.on("data",vn=>{const{chunk:{msg:Hn},full:Qt}=vn,Te=Hn==="error";Dt(!0),Kt(Bi(Qt)),wn(Re=>Re.map((_e,me)=>me===Re.length-1?bt(Pt({},_e),{text:Qt,loading:!1,error:Te}):_e))}),ke.current.on("done",()=>Ct()),ke.current.on("error",vn=>{const Hn="\u62B1\u6B49\uFF0C\u6211\u521A\u521A\u9047\u5230\u4E86\u4E00\u70B9\u95EE\u9898\uFF0C\u6CA1\u80FD\u5B8C\u6210\u60A8\u7684\u8BF7\u6C42\u3002\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\u4E00\u6B21\uFF0C\u6216\u8005\u8054\u7CFB\u6280\u672F\u652F\u6301\u5E2E\u5FD9\u89E3\u51B3!";Object.prototype.toString.call(vn)==="[object Object]"&&vn.status===-9&&(rn(1),jn(vn.data)),wn(Qt=>Qt.map((Te,Re)=>Re===Qt.length-1?bt(Pt({},Te),{text:Hn,loading:!1,error:!0}):Te)),Ct()}),ke.current.on("cancelled",()=>Ct()),ke.current.startStream()}),oe(!1)}),En=qn=>{mn(qn.target.value)},Rn=qn=>qn.reduce((tn,Jn)=>{if(Jn.sender==="user"){const zt=qn.find(Mn=>Mn.key===Jn.key&&Mn.sender==="AI");zt&&(zt!=null&&zt.text)&&!(zt!=null&&zt.error)&&tn.push({question:Jn.text,answer:zt.text})}return tn},[]),Pn=()=>{if(Lo)return;const qn=Ji("\u6539\u5199");Mt(),oe(!0),Ae(qn)},$n=qn=>{if(qn.key==="Enter"&&!qn.shiftKey){if(qn.preventDefault(),Bt.current||Zo)return;Pn()}},xi=()=>{var qn,$t;At(tn=>tn+1),($t=(qn=ke.current)==null?void 0:qn.cancelRequest)==null||$t.call(qn),oe(!1),Dt(!1)},Fi=[{key:"1",label:ot.createElement("span",null," ",ot.createElement("i",{className:"iconfont icon-runse font14 mr10"}),"\u6DA6\u8272 ")},{key:"2",label:ot.createElement("span",null,ot.createElement("i",{className:"iconfont icon-kuoxie font14 mr10"}),"\u6269\u5199")},{key:"3",label:ot.createElement("span",null," ",ot.createElement("i",{className:"iconfont icon-suoxie font14 mr10"}),"\u7F29\u5199")}],Bi=(qn="")=>{const $t=["\u7B54\u6848\uFF1A","\u96BE\u5EA6\uFF1A","\u89E3\u6790\uFF1A","\u77E5\u8BC6\u70B9\uFF1A","\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09","\u7F16\u7A0B\u8BED\u8A00\uFF1A","\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A","\u7A0B\u5E8F\u4EE3\u7801\uFF1A","\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A","\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A"];return Array.from({length:20}).forEach((tn,Jn)=>{$t.push(`\u7B54\u6848${Jn+1}\uFF1A`,`\u6D4B\u8BD5\u7528\u4F8B(${Jn+1})\u8F93\u5165\uFF1A`,`\u6D4B\u8BD5\u7528\u4F8B(${Jn+1})\u8F93\u51FA\uFF1A`)}),$t.forEach(tn=>{const Jn=new RegExp(tn,"g");qn=qn.replace(Jn,`**${tn}** `)}),qn},Ji=qn=>qn==="\u6539\u5199"?`${Fn}\uFF0C\u6839\u636E\u4E0A\u8FF0\u8981\u6C42\u6539\u5199\u8FD9\u53E5\u8BDD\uFF0C${Be}\uFF0C\u6839\u636E\u539F\u683C\u5F0F\u8FD4\u56DE\u7ED9\u6211\uFF0C\u4E0D\u8981\u53BB\u6389\u63D0\u793A\u8BED`:`${Be}\uFF0C${qn}\u4E0A\u9762\u8FD9\u53E5\u8BDD\uFF0C\u6839\u636E\u539F\u683C\u5F0F\u8FD4\u56DE\u7ED9\u6211\uFF0C\u4E0D\u8981\u53BB\u6389\u63D0\u793A\u8BED`,ro=qn=>{let $t="";qn.key==="1"&&($t=Ji("\u6DA6\u8272")),qn.key==="2"&&($t=Ji("\u6269\u5199")),qn.key==="3"&&($t=Ji("\u7F29\u5199")),Mt(),oe(!0),Ae($t)},Eo=()=>{const qn=cn.splice(cn.length-2),{text:$t}=(qn==null?void 0:qn[0])||{};Mt(),oe(!0),Ae($t,cn)},Zo=An||ln,Lo=(Fn==null?void 0:Fn.trim())==="";return kn?ot.createElement(Tt.Z,{open:Lo&&!Zo&&(we||!ce),overlayStyle:{minWidth:200},menu:{items:Fi,onClick:ro}},ot.createElement(Ce,{position:Tn},ot.createElement("div",{className:Oe.wrap},Dn===2&&ot.createElement(ot.Fragment,null,ot.createElement("div",{className:Oe.chatContainer},jt&&ot.createElement("div",{className:Oe.loadingWrp},ot.createElement("span",null,"\u6B63\u5728\u751F\u6210\u4E2D"),ot.createElement("div",{className:"ai-loading"})),ce&&ot.createElement(qt.Z,{cancelIndex:wt,streamingStatus:An,loadImage:!1,onFinish:()=>Rt(void 0,null,function*(){At(0),setTimeout(()=>Dt(!1),0)}),value:ce})),ot.createElement("div",{className:Oe.btnContainer},ot.createElement("div",{onClick:()=>be(!0,ce),className:Oe.btn,style:{padding:"0 16px",width:"initial"}},ot.createElement("i",{className:"iconfont icon-tihuan mr10 font14"}),"\u66FF\u6362"),ot.createElement("div",{onClick:()=>be(!1,ce),className:Oe.btn,style:{padding:"0 16px",width:"initial"}},ot.createElement("i",{className:"iconfont icon-charu mr10 font14"}),"\u63D2\u5165"),ot.createElement(ze.CopyToClipboard,{text:ce,onCopy:()=>ae.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},ot.createElement($e.Z,{title:"\u590D\u5236"},ot.createElement("div",{className:Oe.btn,style:{marginLeft:"auto"}},ot.createElement("i",{className:"iconfont icon-fuzhi8 font14"})))),ot.createElement($e.Z,{title:"\u91CD\u65B0\u751F\u6210"},ot.createElement("div",{onClick:Eo,className:Oe.btn},ot.createElement("i",{className:"iciconfontonfot icon-gengxin-genghuan-tihuan font17"}))),ot.createElement($e.Z,{title:"\u5220\u9664"},ot.createElement("div",{onClick:()=>{rn(1),Mt(),wn([])},className:Oe.btn},ot.createElement("i",{className:"iconfont icon-shanchu14 font14"}))))),ot.createElement("div",{className:Oe.inputContainer},ot.createElement(fe.default.TextArea,{placeholder:"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u7684\u6587\u672C\u4F18\u5316\u5EFA\u8BAE",value:Fn,bordered:!1,onFocus:()=>Ee(!0),onBlur:()=>setTimeout(()=>Ee(!1),300),onChange:En,onPressEnter:$n,onCompositionStart:()=>Bt.current=!0,onCompositionEnd:()=>Bt.current=!1}),ln?ot.createElement("div",{className:`iconfont icon-tingzhihuida ${Oe.cancelBtn}`,onClick:xi}):ot.createElement(ve.ZP,{className:Lo?Oe.sendBtnDisabled:Oe.sendBtn,icon:ot.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:Zo,onClick:Pn}))))):ot.createElement(ot.Fragment,null)},re={"hover-line-container":"hover-line-container___kkYQN","hover-line-content":"hover-line-content___ZkD9e","line-button-container":"line-button-container___A79j9",button:"button___X_Iu7"},ie=Object.defineProperty,Me=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable,ge=(kn,Tn,Be)=>Tn in kn?ie(kn,Tn,{enumerable:!0,configurable:!0,writable:!0,value:Be}):kn[Tn]=Be,je=(kn,Tn)=>{for(var Be in Tn||(Tn={}))pe.call(Tn,Be)&&ge(kn,Be,Tn[Be]);if(Me)for(var Be of Me(Tn))Le.call(Tn,Be)&&ge(kn,Be,Tn[Be]);return kn};const Je=kn=>React.createElement("svg",je({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},kn),React.createElement("title",null,"AI\u6539\u5199"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"26.797%",y1:"22.073%",x2:"82.181%",y2:"80.474%",id:"rewrite_svg__a"},React.createElement("stop",{stopColor:"#5C64FF",offset:"0%"}),React.createElement("stop",{stopColor:"#6988F8",offset:"100%"}))),React.createElement("path",{d:"m10.406 4.741.007.015h-.007v-.022.007Zm-.04-.04.855-1.495 1.497-.855-1.496-.855L10.366 0l-.854 1.497-1.497.855 1.496.854.855 1.495ZM3.1 8.442l1.71 3.1 1.603-3.1 3.1-1.71L6.52 5.023l-1.71-3.1-1.71 3.1L0 6.733l3.099 1.709H3.1Zm6.84 3.1 1.069 1.924 1.068-1.924L14 10.473l-1.924-1.069-1.069-1.923L9.94 9.405l-1.924 1.068 1.924 1.07v-.001Z",fill:"url(#rewrite_svg__a)",fillRule:"nonzero"}));var Cn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIyNi43OTclIiB5MT0iMjIuMDczJSIgeDI9IjgyLjE4MSUiIHkyPSI4MC40NzQlIiBpZD0iYSI+PHN0b3Agc3RvcC1jb2xvcj0iIzVDNjRGRiIgb2Zmc2V0PSIwJSIvPjxzdG9wIHN0b3AtY29sb3I9IiM2OTg4RjgiIG9mZnNldD0iMTAwJSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGQ9Im0xMC40MDYgNC43NDEuMDA3LjAxNWgtLjAwN3YtLjAyMi4wMDdabS0uMDQtLjA0Ljg1NS0xLjQ5NSAxLjQ5Ny0uODU1LTEuNDk2LS44NTVMMTAuMzY2IDBsLS44NTQgMS40OTctMS40OTcuODU1IDEuNDk2Ljg1NC44NTUgMS40OTVaTTMuMSA4LjQ0MmwxLjcxIDMuMSAxLjYwMy0zLjEgMy4xLTEuNzFMNi41MiA1LjAyM2wtMS43MS0zLjEtMS43MSAzLjFMMCA2LjczM2wzLjA5OSAxLjcwOUgzLjFabTYuODQgMy4xIDEuMDY5IDEuOTI0IDEuMDY4LTEuOTI0TDE0IDEwLjQ3M2wtMS45MjQtMS4wNjktMS4wNjktMS45MjNMOS45NCA5LjQwNWwtMS45MjQgMS4wNjggMS45MjQgMS4wN3YtLjAwMVoiIGZpbGw9InVybCgjYSkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",Xn=(0,ot.forwardRef)(({initialContent:kn,onButtonClick:Tn},Be)=>{const[be,Ke]=(0,ot.useState)(null),[jn,Wn]=(0,ot.useState)(null),[An,oe]=(0,ot.useState)(""),[cn,wn]=(0,ot.useState)(null),Fn=Be,mn=ke=>{const ln=document.elementFromPoint(10,ke),Dt=document.createRange();let wt=null;const At=document.createTreeWalker(Fn.current,NodeFilter.SHOW_TEXT,{acceptNode:Pn=>{const $n=document.createRange();$n.selectNodeContents(Pn);const xi=$n.getBoundingClientRect();return xi.top<=ke&&xi.bottom>=ke?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});let Bt="",jt,Mt,Ae=null,En=null,Rn=null;for(;jt=At.nextNode();){jt.parentNode.getAttribute("data-select")==="disabled"&&(Mt=!0),Bt+=jt.textContent,En||(En=jt),Rn=jt;const Pn=document.createRange();Pn.selectNodeContents(jt);const $n=Pn.getBoundingClientRect();Ae===null&&(Ae=$n.top)}if(En&&Rn&&!Mt){const Pn=document.createRange();Pn.setStart(En,0),Pn.setEnd(Rn,Rn.textContent.length),wn(Pn)}else wn(null);return Wn(Ae-1),Mt?"":Bt.trim()};function Dn(ke){for(;ke.parentElement&&ke.parentElement.tagName.toLowerCase()!=="section";){var ln=window.getComputedStyle(ke.parentElement);if(ln.pointerEvents==="none")return!0;ke=ke.parentElement}return!1}const rn=ke=>{var ln,Dt;if(Dn(ke.target)){Wn(-1e6);return}if(((Dt=(ln=document.getSelection())==null?void 0:ln.toString)==null?void 0:Dt.call(ln))!==""){Wn(-1e6);return}const wt=mn(ke.clientY);if((wt==null?void 0:wt.trim())===""){Wn(-1e6);return}const At=Fn.current.getBoundingClientRect();Ke(At.left-30),oe(wt)},ce=()=>{},Kt=ke=>{Tn&&An&&Tn(An,ke.clientX,ke.clientY,cn)},we=()=>{if(cn){const ke=window.getSelection();ke.removeAllRanges(),ke.addRange(cn)}},Ee=()=>{window.getSelection().removeAllRanges()};return(0,ot.useEffect)(()=>{const ke=Fn.current;return ke.addEventListener("mousemove",rn),ke.addEventListener("mouseleave",ce),()=>{ke.removeEventListener("mousemove",rn),ke.removeEventListener("mouseleave",ce),Ee()}},[kn]),ot.createElement("div",{className:re["hover-line-container2"]},jn!==null&&ot.createElement("div",{className:re["line-button-container"],style:{top:jn,left:be},onMouseEnter:()=>{we()},onMouseLeave:()=>{Ee(),Wn(null),oe(""),wn(null)}},ot.createElement("div",{className:re.button,onClick:Kt},ot.createElement("img",{src:Cn}),ot.createElement("span",null,"AI\u6539\u5199"))))}),Fe={toolbar:"toolbar___qYQBF","chat-dialog":"chat-dialog___AUJYU",button:"button___VhNes"},Ye=({nodeRef:kn,noRestrictModal:Tn})=>{const[Be,be]=(0,ot.useState)(null),[Ke,jn]=(0,ot.useState)(null),[Wn,An]=(0,ot.useState)(!1),[oe,cn]=(0,ot.useState)(null),[wn,Fn]=(0,ot.useState)(!1),[mn,Dn]=(0,ot.useState)(!1),rn=kn,ce=(0,ot.useRef)(null),Kt=(0,ot.useRef)(null),[we,Ee]=(0,ot.useState)("");(0,ot.useEffect)(()=>{Be!=null&&Be.toString()&&Ee(Be==null?void 0:Be.toString())},[Be==null?void 0:Be.toString()]);const ke=()=>{const At=window.getSelection(),Bt=rn.current.scrollTop,jt=rn.current.getBoundingClientRect();if(At.rangeCount>0&&At.toString().length>0){const Mt=At.getRangeAt(0);be(Mt.cloneRange());const Ae=Mt.getBoundingClientRect(),En=40;let Rn=Ae.top+Bt-5+En;Rn{if(!At||At.rangeCount===0){Fn(!1);return}const jt=At.getRangeAt(0).getBoundingClientRect(),Mt=window.getComputedStyle(rn.current),Ae=parseInt(Mt.lineHeight),En=parseInt(Mt.paddingTop),Rn=rn.current.scrollTop,Pn=rn.current.getBoundingClientRect(),$n=jt.top-Pn.top+Rn,xi=Math.floor(($n-En)/Ae),Fi=En+xi*Ae-Rn;cn(Fi),Fn(!0)},Dt=At=>{rn.current&&!rn.current.contains(At.target)&&Dn(!1)};(0,ot.useEffect)(()=>{const At=rn.current;return At.addEventListener("scroll",ke),At.addEventListener("input",ke),At.addEventListener("click",ke),At.addEventListener("mouseup",ke),At.addEventListener("keyup",ke),At.addEventListener("click",ke),document.addEventListener("mousedown",Dt),()=>{At.removeEventListener("scroll",ke),At.removeEventListener("input",ke),At.removeEventListener("click",ke),At.removeEventListener("mouseup",ke),At.removeEventListener("keyup",ke),At.removeEventListener("click",ke),document.removeEventListener("mousedown",Dt)}},[]);const wt=(At=!0,Bt)=>{if(!Be)return;const jt=Kt.current.querySelector("section.edu_md").innerHTML.replace(/]*>([\s\S]*?)<\/p>/g,"$1"),Mt=Be.cloneRange(),Ae=window.getSelection();if(Ae.removeAllRanges(),Ae.addRange(Mt),At){Mt.deleteContents();const En=document.createElement("div");En.innerHTML=jt;const Rn=Array.from(En.childNodes);for(;Rn.length>0;)Mt.insertNode(Rn.pop())}else{Mt.collapse(!1);const En=document.createElement("div");En.innerHTML=" "+jt;const Rn=Array.from(En.childNodes);for(;Rn.length>0;)Mt.insertNode(Rn.pop())}Ae.removeAllRanges(),be(null),An(!1),jn(null)};return ot.createElement("section",{ref:Kt},Ke&&ot.createElement("div",{ref:ce,className:Fe.toolbar,style:{top:Ke==null?void 0:Ke.top,left:Ke==null?void 0:Ke.left}},ot.createElement("div",{className:Fe.button,onClick:()=>An(!0)},ot.createElement("img",{src:Cn}),ot.createElement("span",null,"AI\u6539\u5199"))),ot.createElement(ee,{key:JSON.stringify(Ke),noRestrictModal:Tn,visible:Wn,position:Ke,selectText:we,applyRefinedText:wt,fetchUrl:"/api/stream/intelligent_imports/stream.json"}),rn.current&&ot.createElement(Xn,{ref:rn,onButtonClick:(At,Bt,jt,Mt)=>{be(Mt),An(!0),Ee(At),jn({left:Bt,top:jt+20})}}))}},88985:function(un,Yn,St){"use strict";St.d(Yn,{Z:function(){return fe}});var ot=St(59301),Tt=St(43418),ae={num:"num___VQiqB"},fe=({visible:ve,usedCount:qt,totalCount:Oe,onOk:de,onCancel:Ce})=>{const xe=()=>qt>0?ot.createElement("div",null,"\u672C\u6B21\u5C06\u6D88\u80171\u6B21\u5927\u6A21\u578B\u4F7F\u7528\u673A\u4F1A\uFF08\u6BCF\u65E5",Oe,"\u6B21\u673A\u4F1A\uFF0C\u4ECA\u65E5\u5269\u4F59",ot.createElement("span",{className:ae.num},qt),"\u6B21\uFF09\uFF0C\u786E\u5B9A\u64CD\u4F5C\u5417\uFF1F"):ot.createElement("div",{className:"mb20"},"\u4ECA\u65E5\u5927\u6A21\u578B\u4F7F\u7528\u673A\u4F1A\u5DF2\u7528\u5B8C\uFF08\u6BCF\u65E5",Oe,"\u6B21\u673A\u4F1A\uFF0C\u4ECA\u65E5\u5269\u4F59",ot.createElement("span",{className:ae.num},qt),"\u6B21\uFF09\u3002");return ot.createElement(Tt.default,{centered:!0,open:ve,title:"\u63D0\u793A",width:620,zIndex:1100,onCancel:Ce,onOk:de,footer:qt>0?void 0:null},xe())}},25355:function(un,Yn,St){"use strict";St.d(Yn,{Z:function(){return et},Q:function(){return Ft}});var ot=St(59301),Tt={container:"container___DAVRd",katex:"katex___oS9Qs",liWrap:"liWrap___pAkIe",backBottom:"backBottom___kT237",imgBox:"imgBox___O8q6M"},ae=St(24544),$e=St(3294),fe=St(43276),ve=St(89498),qt=St(27478),Oe=St(53630),de="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAAB4CAYAAAAqs3YmAAAAAXNSR0IArs4c6QAADGlJREFUeF7tnVlQHMcZx7/umT0AcSjGBonDOmxdgV2Ww0iWIsmxrfIhJ1VJ2W+uilgEjqtclTwmLxQvyYur8uCKYmFQXMmbXUlV4lw+YsmHkBECdhdkSZZlyUJgScEWh7h2d7pTvcUuw2hhp3dm2dmleWPn66+/+f+me7p7vplGkOQfpRTVt56vgJCyARAtpAg5knS1JosRhBQMdMpJbddPd+68jhCiyQiBkil0sO2qc2J4yoMQLU6mvCizVAFCyLdFlUX9p9o3z/Fqww2Qtbxa7+BuAY9X6pXtGcSBEzVneFsiN8C6lqFKqihuc8MX3pgCTrAFurt2fc2jBj/AI/5GiuGBaCVIgtv2vOnAmd89OstT8Vq33fPL7pzgdJ6LKotaAoLx/k73Jzza8ANs8h1SD1gcBdMfCHg8ki/aMojzk3lPRH9hAxtfp+tfPN64AdZ6/c+pK+jvcr/DU6GwXaqAUT0FwDRfUQJgmgEYrV4ANKpgmssLgGkGYLR6AdCogmkuLwCmGYDR6gVAowqmubwAmGYARqsXAI0qmObyAmCaARitXgA0qmCaywuAaQZgtHoB0KiCaS4vAKYZgNHqBUCjCqa5vACYZgBGqxcAjSqY5vKmARR5nmkmmaD65fJII0/kRZ6nteFpo1PnkSKR55lZ8KLRxvJIRZ5nZgJkUbM8UlSnyfPcXpkLPz1QBPm5mXti2Rj51AzAXz4ah0vXZxZPD8E4qtPkef76xY0CnkWvAAbxN38ejUXHBjZIO4z9betGi4YvwmIK/Or4IkD2vwCYYdeFAJhhwLThCoACYIYrkOHhixYoAGa4AiaHr20R2lG89ri2et5Rv2iBA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dGaH2DLUCVVFHeyFWZKuVQmBrP36MPzZBtCNFiG7w8Yef2bG+BCptVudapcpkDhiTOVAHniSGTLDTA6IZ4YnvJkM8SsBsggRl5pbj1fASFlQ6IlpkRXkRWPZwrA/wPlJnpuyspBOgAAAABJRU5ErkJggg==",Ce=St(92310),xe=St.n(Ce),ze=St(8591),He=(ct,ut,pt)=>new Promise((yt,Pt)=>{var bt=ee=>{try{Ut(pt.next(ee))}catch(re){Pt(re)}},Rt=ee=>{try{Ut(pt.throw(ee))}catch(re){Pt(re)}},Ut=ee=>ee.done?yt(ee.value):Promise.resolve(ee.value).then(bt,Rt);Ut((pt=pt.apply(ct,ut)).next())});const Ft={contentRef:{current:null},value:null,status:!1,open:()=>He(void 0,null,function*(){}),close:()=>{}};var et=({className:ct,style:ut,onChange:pt,onSuccess:yt,onCancel:Pt,onError:bt,fetchUrl:Rt,noRestrictModal:Ut=()=>{},showEditableToolbar:ee,bottomOffset:re=110,loadingText:ie,showEmptyData:Me=!0,onStatusChange:pe,stringTransformer:Le,bottomContainerNode:ge})=>{const[je,Je]=(0,ot.useState)(!1),[Cn,hn]=(0,ot.useState)(""),[Xn,Fe]=(0,ot.useState)(0),[Zt,Ye]=(0,ot.useState)(!1),kn=(0,ot.useRef)(null),Tn=(0,ot.useRef)(null),Be=(0,ot.useRef)(null),be=(0,ot.useRef)(null),Ke=(0,qt.Z)({scrollBoxRef:be,bottomInspectRef:Be,contentRef:Tn,status:Zt,bottomOffset:re}),jn=je||Zt;(0,ot.useEffect)(()=>{pt==null||pt(Cn)},[Cn]),(0,ot.useEffect)(()=>{pe==null||pe({contentRef:Tn,status:jn,value:Cn,open:Wn,close:An})},[jn,Cn]);const Wn=cn=>He(void 0,null,function*(){Je(!0),hn(""),Fe(0);const wn=Rt;cn!=null&&cn.fetchUrl&&delete cn.fetchUrl,kn.current=new ae.Z(`${$e.Z.API_SERVER}${wn}`,cn),yield new Promise((Fn,mn)=>{kn.current.on("data",Dn=>{let{chunk:{content:rn,type:ce}}=Dn;Ye(!0),ce==="text"&&hn(Kt=>Le?Le(Kt+rn):Kt+rn)}),kn.current.on("done",()=>{Fn()}),kn.current.on("error",Dn=>{Object.prototype.toString.call(Dn)==="[object Object]"&&Dn.status===-1&&ze.ZP.warning((Dn==null?void 0:Dn.message)||""),Fn(),bt==null||bt(Dn)}),kn.current.on("cancelled",()=>{Fn(),Pt==null||Pt()}),kn.current.startStream()}),Je(!1)}),An=()=>{var cn,wn;Fe(1),(wn=(cn=kn.current)==null?void 0:cn.cancelRequest)==null||wn.call(cn),Je(!1),Ye(!1)},oe=(0,ot.useMemo)(()=>Tn.current?ot.createElement(ve.Z,{noRestrictModal:Ut,nodeRef:Tn}):ot.createElement(ot.Fragment,null),[Tn.current]);return ot.createElement(ot.Fragment,null,ot.createElement("div",{className:xe()(Tt.container,ct),style:ut,ref:be},ot.createElement("div",{ref:Tn,className:Tt.liWrap,contentEditable:!jn},Cn&&ot.createElement(fe.Z,{cancelIndex:Xn,streamingStatus:je,loadImage:!1,onFinish:()=>He(void 0,null,function*(){Fe(0),setTimeout(()=>Ye(!1),0),yt==null||yt(Cn)}),value:Cn})),!Cn&&!jn&&ot.createElement("div",{className:Tt.imgBox},ot.createElement("img",{width:56,src:de}),ot.createElement("span",null,"\u9884\u89C8\u533A")),Me&&jn&&ot.createElement(Oe.Z,{text:ie}),!Ke&&ot.createElement("div",{className:Tt.backBottom,onClick:()=>{be.current.scrollTop=be.current.scrollHeight}},ot.createElement("i",{className:"iconfont icon-huidaodibu"})),ot.createElement("div",{ref:Be}),ge),!jn&&ee&&oe)}},53630:function(un,Yn,St){"use strict";St.d(Yn,{Z:function(){return $e}});var ot=St(59301),Tt={loading:"loading___SifAS",dot:"dot___J5R0d","dot-fade":"dot-fade___BPUGC"},$e=({text:fe})=>ot.createElement("div",null,ot.createElement("div",{className:Tt.loading},ot.createElement("div",{className:Tt.dot}),ot.createElement("div",{className:Tt.dot}),ot.createElement("div",{className:Tt.dot})),!!fe&&ot.createElement("div",{className:"mt5"},fe))},19909:function(un,Yn,St){"use strict";St.d(Yn,{Z:function(){return Ae}});var ot=St(59301),Tt=St(8591),ae=St(54580),$e=St(43418),fe=St(6848),ve=St(92832),qt=St(3113),Oe=St(71418),de=St(64165),Ce=St(14478),xe=St(43428),ze=St(38854),He=St(92310),Ft=St.n(He),nt=St(43276),et={reasoning:"reasoning___S0mKl",btn:"btn____CIJG",content:"content___CIAh9"},ct=St(59301),ut=(En,Rn,Pn)=>new Promise(($n,xi)=>{var Fi=ro=>{try{Ji(Pn.next(ro))}catch(Eo){xi(Eo)}},Bi=ro=>{try{Ji(Pn.throw(ro))}catch(Eo){xi(Eo)}},Ji=ro=>ro.done?$n(ro.value):Promise.resolve(ro.value).then(Fi,Bi);Ji((Pn=Pn.apply(En,Rn)).next())}),yt=({value:En="",streamingStatus:Rn,onFinish:Pn,cancelIndex:$n,time:xi,loading:Fi,loadAll:Bi})=>{const[Ji,ro]=(0,ot.useState)(""),[Eo,Zo]=(0,ot.useState)(!0),Lo=(0,ot.useRef)(En),qn=(0,ot.useRef)(Rn),$t=(0,ot.useRef)(0),tn=(0,ot.useRef)(null),[Jn,zt]=(0,ot.useState)(!1),Mn=70;(0,ot.useEffect)(()=>{qn.current=Rn},[Rn]),(0,ot.useEffect)(()=>{Lo.current=En},[En]),(0,ot.useEffect)(()=>{if(!Rn){ro(Lo.current);return}return zt(!0),tn.current=setInterval(le,Mn),()=>{clearInterval(tn.current)}},[]),(0,ot.useEffect)(()=>{Jn&&(ro(Lo.current),clearInterval(tn.current),zt(!1),Pn())},[$n]);const le=()=>ut(void 0,null,function*(){const Ct=Lo.current[$t.current];Ct!==void 0?(ro(vn=>vn+Ct),$t.current++,clearInterval(tn.current),tn.current=setInterval(le,280/(Lo.current.length-$t.current))):qn.current===!1&&(ro(Lo.current),clearInterval(tn.current),zt(!1),Pn())});return ct.createElement("div",{className:`${et.reasoning} fadeIn animated`},ct.createElement("div",{className:et.btn,onClick:()=>Zo(!Eo)},ct.createElement("i",{className:"iconfont icon-shendusikao"}),xi?ct.createElement("span",null,"\u5DF2\u6DF1\u5EA6\u601D\u8003\uFF08\u7528\u65F6 ",xi," \u79D2\uFF09"):ct.createElement("span",null,"\u601D\u8003\u4E2D..."),Eo?ct.createElement("b",{className:"iconfont icon-shouqi6"}):ct.createElement("b",{className:"iconfont icon-zhankai6"})),Fi&&ct.createElement(Oe.Z,{spinning:!0,className:"mt20"}),Eo&&!Fi&&ct.createElement("div",{className:et.content},Ji,Jn?ct.createElement("span",{className:"aiBlink"},"__"):""))},Pt={select:"select___Kt_GE",box:"box___S5_ly",text:"text___dtZDv",itemWrap:"itemWrap___xmw7x",item:"item___io6Bx",active:"active___nHRTI"},bt=St(81327),Rt=Object.defineProperty,Ut=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ie=(En,Rn,Pn)=>Rn in En?Rt(En,Rn,{enumerable:!0,configurable:!0,writable:!0,value:Pn}):En[Rn]=Pn,Me=(En,Rn)=>{for(var Pn in Rn||(Rn={}))ee.call(Rn,Pn)&&ie(En,Pn,Rn[Pn]);if(Ut)for(var Pn of Ut(Rn))re.call(Rn,Pn)&&ie(En,Pn,Rn[Pn]);return En};const pe=En=>React.createElement("svg",Me({className:"logo1_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},En),React.createElement("path",{d:"M1019.407 620.8 891.834 397.781 946.49 293.12a29.099 29.099 0 0 0 6.4-36.395l-70.187-126.592a30.08 30.08 0 0 0-24.576-13.653H597.519L539.194 14.507a27.35 27.35 0 0 0-20.907-14.55H380.644a29.141 29.141 0 0 0-24.618 14.55v5.546L225.806 243.03H100.923a29.184 29.184 0 0 0-25.515 13.654L3.428 384.085a32.768 32.768 0 0 0 0 29.184L132.836 638.08 74.511 740.053a32.768 32.768 0 0 0 0 29.056l66.517 116.566a29.907 29.907 0 0 0 25.515 14.506H427.15l62.848 109.227A30.08 30.08 0 0 0 512.783 1024H660.41a29.141 29.141 0 0 0 24.576-14.55l128.469-224.853h114.773a31.915 31.915 0 0 0 24.662-15.445l66.474-117.419a28.16 28.16 0 0 0 0-30.976l.043.043zm-161.28 14.592L791.61 512.469 518.287 993.963l-74.752-122.88h-273.28l65.621-119.211h139.392L101.86 272.213h143.062L380.687 30.08l68.352 119.253-70.187 122.88H925.54l-69.205 121.942 137.6 241.194H858.17z",fill:"#605BEC"}),React.createElement("path",{d:"m499.983 699.307 174.379-274.731H324.708z",fill:"#605BEC"}));var Le="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTEwMTkuNDA3IDYyMC44IDg5MS44MzQgMzk3Ljc4MSA5NDYuNDkgMjkzLjEyYTI5LjA5OSAyOS4wOTkgMCAwIDAgNi40LTM2LjM5NWwtNzAuMTg3LTEyNi41OTJhMzAuMDggMzAuMDggMCAwIDAtMjQuNTc2LTEzLjY1M0g1OTcuNTE5TDUzOS4xOTQgMTQuNTA3YTI3LjM1IDI3LjM1IDAgMCAwLTIwLjkwNy0xNC41NUgzODAuNjQ0YTI5LjE0MSAyOS4xNDEgMCAwIDAtMjQuNjE4IDE0LjU1djUuNTQ2TDIyNS44MDYgMjQzLjAzSDEwMC45MjNhMjkuMTg0IDI5LjE4NCAwIDAgMC0yNS41MTUgMTMuNjU0TDMuNDI4IDM4NC4wODVhMzIuNzY4IDMyLjc2OCAwIDAgMCAwIDI5LjE4NEwxMzIuODM2IDYzOC4wOCA3NC41MTEgNzQwLjA1M2EzMi43NjggMzIuNzY4IDAgMCAwIDAgMjkuMDU2bDY2LjUxNyAxMTYuNTY2YTI5LjkwNyAyOS45MDcgMCAwIDAgMjUuNTE1IDE0LjUwNkg0MjcuMTVsNjIuODQ4IDEwOS4yMjdBMzAuMDggMzAuMDggMCAwIDAgNTEyLjc4MyAxMDI0SDY2MC40MWEyOS4xNDEgMjkuMTQxIDAgMCAwIDI0LjU3Ni0xNC41NWwxMjguNDY5LTIyNC44NTNoMTE0Ljc3M2EzMS45MTUgMzEuOTE1IDAgMCAwIDI0LjY2Mi0xNS40NDVsNjYuNDc0LTExNy40MTlhMjguMTYgMjguMTYgMCAwIDAgMC0zMC45NzZsLjA0My4wNDN6bS0xNjEuMjggMTQuNTkyTDc5MS42MSA1MTIuNDY5IDUxOC4yODcgOTkzLjk2M2wtNzQuNzUyLTEyMi44OGgtMjczLjI4bDY1LjYyMS0xMTkuMjExaDEzOS4zOTJMMTAxLjg2IDI3Mi4yMTNoMTQzLjA2MkwzODAuNjg3IDMwLjA4bDY4LjM1MiAxMTkuMjUzLTcwLjE4NyAxMjIuODhIOTI1LjU0bC02OS4yMDUgMTIxLjk0MiAxMzcuNiAyNDEuMTk0SDg1OC4xN3oiIGZpbGw9IiM2MDVCRUMiLz48cGF0aCBkPSJtNDk5Ljk4MyA2OTkuMzA3IDE3NC4zNzktMjc0LjczMUgzMjQuNzA4eiIgZmlsbD0iIzYwNUJFQyIvPjwvc3ZnPg==",ge=Object.defineProperty,je=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,Cn=Object.prototype.propertyIsEnumerable,hn=(En,Rn,Pn)=>Rn in En?ge(En,Rn,{enumerable:!0,configurable:!0,writable:!0,value:Pn}):En[Rn]=Pn,Xn=(En,Rn)=>{for(var Pn in Rn||(Rn={}))Je.call(Rn,Pn)&&hn(En,Pn,Rn[Pn]);if(je)for(var Pn of je(Rn))Cn.call(Rn,Pn)&&hn(En,Pn,Rn[Pn]);return En};const Fe=En=>React.createElement("svg",Xn({className:"logo2_svg__icon",viewBox:"0 0 1417 1024",xmlns:"http://www.w3.org/2000/svg",width:276.758,height:200},En),React.createElement("path",{d:"M1364.44 118.705c-14.178-6.695-20.322 6.065-28.593 12.525-2.914 2.048-5.277 4.726-7.64 7.246-20.717 21.268-44.899 35.21-76.643 33.556a152.576 152.576 0 0 0-120.674 45.371c-7.404-41.826-32.06-66.875-69.553-82.865-19.693-8.35-39.543-16.7-53.248-34.737-9.61-12.919-12.288-27.333-17.015-41.512-3.15-8.507-6.144-17.25-16.384-18.668-11.185-1.733-15.517 7.247-19.928 14.73a189.125 189.125 0 0 0-23.552 98.461c1.575 76.88 35.446 138.083 102.636 181.642 7.562 4.963 9.531 9.925 7.09 17.25-4.49 14.967-9.926 29.54-14.81 44.584-2.992 9.61-7.561 11.658-18.274 7.483a309.484 309.484 0 0 1-96.886-63.015c-47.813-44.426-91.057-93.342-144.935-131.702a635.825 635.825 0 0 0-38.36-25.207c-54.982-51.2 7.167-93.262 21.582-98.225 14.966-5.199 5.277-23.158-43.402-22.922-48.68.237-93.184 15.833-149.977 36.628-8.428 3.15-17.092 5.514-25.993 7.326a557.844 557.844 0 0 0-160.768-5.436c-105.157 11.264-189.204 58.92-250.96 140.367-74.2 97.832-91.687 208.975-70.261 325.002 22.449 122.25 87.434 223.468 187.47 302.631 103.582 82 222.917 122.172 359.188 114.452 82.708-4.568 174.79-15.202 278.686-99.485 26.151 12.445 53.642 17.486 99.249 21.267 35.131 3.072 69.002-1.733 95.153-6.931 40.96-8.35 38.203-44.741 23.316-51.437-120.202-53.72-93.814-31.822-117.839-49.624 61.125-69.317 153.206-141.312 189.204-374.706 2.835-18.51.472-30.168 0-45.213-.237-9.137 1.969-12.603 12.918-13.706a240.089 240.089 0 0 0 86.173-25.442c77.982-40.803 109.332-107.914 116.736-188.259 1.103-12.288-.236-24.97-13.705-31.429zM685.45 842.043C569.108 754.215 512.55 725.307 489.157 726.49c-21.82 1.26-17.96 25.206-13.155 40.802 5.042 15.439 11.58 26.073 20.717 39.621 6.301 8.9 10.791 22.213-6.302 32.295-37.494 22.213-102.794-7.561-105.787-8.98-76.012-42.929-139.421-99.564-184.241-176.994a523.894 523.894 0 0 1-72.468-239.93c-1.024-20.56 5.278-27.885 26.703-31.587a272.148 272.148 0 0 1 85.307-2.127c118.942 16.699 220.16 67.741 305.073 148.48 48.443 46.001 85.071 100.982 122.88 154.703 40.173 57.029 83.338 111.458 138.32 155.963 19.376 15.675 34.894 27.569 49.781 36.234-44.74 4.805-119.414 5.829-170.456-32.926zm55.926-344.615c0-5.357 2.757-10.398 7.326-13.47a17.723 17.723 0 0 1 22.134 2.048c3.072 2.915 4.805 7.09 4.805 11.422a16.778 16.778 0 0 1-17.25 16.541 17.33 17.33 0 0 1-12.131-4.883 15.911 15.911 0 0 1-4.884-11.658zm173.529 85.464a104.37 104.37 0 0 1-33.005 8.586 71.444 71.444 0 0 1-44.504-13.548c-15.282-12.288-26.23-19.141-30.72-40.645a89.167 89.167 0 0 1 .787-31.429c3.939-17.487-.393-28.75-13.312-38.912-10.476-8.35-23.71-10.634-38.36-10.634a32.06 32.06 0 0 1-14.179-4.175c-6.144-2.914-11.106-10.24-6.301-19.14a60.18 60.18 0 0 1 10.712-11.265c19.85-10.79 42.693-7.246 63.882.788 19.693 7.798 34.501 21.898 55.926 41.905 21.74 24.183 25.68 30.8 38.125 48.916 9.846 14.179 18.747 28.75 24.89 45.45 3.703 10.397-1.102 18.905-13.941 24.103z",fill:"#4D6BFE"}));var Zt="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDE0MTcgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjc2Ljc1OCIgaGVpZ2h0PSIyMDAiPjxwYXRoIGQ9Ik0xMzY0LjQ0IDExOC43MDVjLTE0LjE3OC02LjY5NS0yMC4zMjIgNi4wNjUtMjguNTkzIDEyLjUyNS0yLjkxNCAyLjA0OC01LjI3NyA0LjcyNi03LjY0IDcuMjQ2LTIwLjcxNyAyMS4yNjgtNDQuODk5IDM1LjIxLTc2LjY0MyAzMy41NTZhMTUyLjU3NiAxNTIuNTc2IDAgMCAwLTEyM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E3OS00LjE3NWMtNi4xNDQtMi45MTQtMTEuMTA2LTEwLjI0LTYuMzAxLTE5LjE0YTYwLjE4IDYwLjE4IDAgMCAxIDEwLjcxMi0xMS4yNjVjMTkuODUtMTAuNzkgNDIuNjkzLTcuMjQ2IDYzLjg4Mi43ODggMTkuNjkzIDcuNzk4IDM0LjUwMSAyMS44OTggNTUuOTI2IDQxLjkwNSAyMS43NCAyNC4xODMgMjUuNjggMzAuOCAzOC4xMjUgNDguOTE2IDkuODQ2IDE0LjE3OSAxOC43NDcgMjguNzUgMjQuODkgNDUuNDUgMy43MDMgMTAuMzk3LTEuMTAyIDE4LjkwNS0xMy45NDEgMjQuMTAzeiIgZmlsbD0iIzRENkJGRSIvPjwvc3ZnPg==",Ye=St(59301),Tn=({value:En,onChange:Rn})=>{const[Pn,$n]=(0,ot.useState)(!1),xi=[{name:"\u901A\u4E49\u5343\u95EE",key:"qwen-max",img:Le},{name:"DeepSeek R1-671B",key:"deepseek-r1",img:Zt}],Fi=xi.find(Bi=>Bi.key===En);return Ye.createElement("div",{className:Pt.select},Ye.createElement(bt.Z,{size:10},Ye.createElement("span",{className:"c-grey-333 font16"},"\u6A21\u578B"),Ye.createElement("div",{className:Pt.box,onMouseLeave:()=>$n(!1)},Ye.createElement("div",{className:Pt.text,onClick:()=>$n(!0)},Ye.createElement("img",{src:Fi.img,width:20}),Ye.createElement("span",null,Fi.name),Ye.createElement("b",{className:"iconfont icon-zhankai6"})),Pn&&Ye.createElement("div",{className:Pt.itemWrap},Ye.createElement("aside",null,xi.map(Bi=>Ye.createElement("div",{key:Bi.key,className:`${Pt.item} ${Bi.key===En?Pt.active:""}`,onClick:Ji=>{Ji.stopPropagation(),Rn(Bi.key),$n(!1)}},Ye.createElement("img",{src:Bi.img,width:20}),Ye.createElement("span",null,Bi.name))))))))},Be={loadingPic:"loadingPic___y2kKZ",loading:"loading___UEUk1",dot:"dot___TYXFV","dot-fade":"dot-fade___KWn1a",wrap:"wrap___nU3cS",chatContainer:"chatContainer___PNe3Q",footerContainer:"footerContainer___hQATV",btnWrp:"btnWrp___mS8l6",btn:"btn___3za5U",btnActive:"btnActive____jzfb",inputContainer:"inputContainer___iCQ3u",uploadBtn:"uploadBtn___OHHJF",sendBtn:"sendBtn___ktaQl",sendBtnDisabled:"sendBtnDisabled___DVncF",cancelBtn:"cancelBtn___bzMDI",lineFour:"lineFour___Lhbz5",fullIcon:"fullIcon___YWXTV",footerContainerSelected:"footerContainerSelected___pGBh3",full:"full___dZLXo",li:"li___PjMV3",avatarIcon:"avatarIcon___ztGQ3",img:"img___wZqEA",content:"content___OlYYG",borderBox:"borderBox___tjHwt",text:"text___yWTCV",fileWrap:"fileWrap___IX778",file:"file___fxAKb",fileName:"fileName___RA8nu",source:"source___nkLC0",action:"action___I2zGy",disabledInput:"disabledInput___Buork",backBottom:"backBottom___SMuL2",head:"head___v8Eom",headBtn:"headBtn___IS7xR",menuWarp:"menuWarp___G6yj0",menu:"menu___M8VWP",menuText:"menuText___gRpb5",menuDel:"menuDel___eH_wg",active:"active___KWwPV"},be=St(99064),Ke=St(955),jn={draggableImage:"draggableImage___vcTso",img:"img___xAyno",close:"close___WUtfj"},An=({src:En,onClick:Rn,topPercentage:Pn=.62,draggableExtraNode:$n})=>{const xi=(0,ot.useRef)(null),Fi=(0,ot.useRef)(!1),Bi=(0,ot.useRef)(!1),[Ji,ro]=(0,ot.useState)(window.innerHeight*Pn),[Eo,Zo]=(0,ot.useState)(!1),Lo=10;return(0,ot.useEffect)(()=>{if(xi.current){let qn=function(Mn){var le;Fi.current=!0,zt=Mn.pageY,Jn=Mn.pageY-(((le=xi.current)==null?void 0:le.getBoundingClientRect().top)||0),(0,Ke.kk)("none"),document.onselectstart=function(){return!1}},$t=function(){Fi.current&&!Bi.current&&Rn&&Rn(),Fi.current=!1,Bi.current=!1,(0,Ke.kk)("auto"),document.onselectstart=null},tn=function(Mn){var le;if(Fi.current){const vn=Mn.pageY-Jn,Hn=window.innerHeight-(((le=xi.current)==null?void 0:le.offsetHeight)||0)-50,Qt=50;if(!Bi.current&&Math.abs(zt-Mn.pageY)>Lo&&(Bi.current=!0),Bi.current){let Te=Math.max(Qt,Math.min(vn,Hn));ro(Te)}}},Jn=0,zt=0;return xi.current.addEventListener("mousedown",qn),document.addEventListener("mousemove",tn),document.addEventListener("mouseup",$t),()=>{var Mn,le;(le=(Mn=xi==null?void 0:xi.current)==null?void 0:Mn.removeEventListener)==null||le.call(Mn,"mousedown",qn),document.removeEventListener("mousemove",tn),document.removeEventListener("mouseup",$t)}}},[Rn]),(0,ot.useEffect)(()=>{const qn=()=>{ro(window.innerHeight*Pn)};return window.addEventListener("resize",qn),()=>{window.removeEventListener("resize",qn)}},[Pn]),ot.createElement("div",{className:jn.draggableImage,style:{top:`${Ji}px`,display:Eo?"none":"block",cursor:Fi.current?"grabbing":"grab"},ref:xi},$n,ot.createElement("img",{className:jn.img,src:En,width:60,draggable:"false"}),ot.createElement("i",{className:`iconfont icon-tupianguanbi ${jn.close}`,onMouseUp:qn=>{qn.stopPropagation(),Zo(!0)}}))},oe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAIABJREFUeF6VnQmAnGV9/z/vMffeV3azuRMCSUgCSQggiCBFEE9UvFpqW6utFopa71bx6GHRWq31xKtSFS0eqICV+wwSIJKQkDvZJJvsObOzO/d7PH9/z/O+s5sY2/4XhpmdnXln3u/7/f1+39/xPFj8H39Wr742GRaOXaYs65WWnVhtuc58y7Lmh4oWZYFv2fpIgdxZFtg2oZMgdByU7eA7Npbt6L958rttUXMsQtsCyyawLEI5gC0HMMcCpf8193ILIVT6ZoUhlgqxw5BEoLAD87ulAuxQkZC/h4ogDHBCX79eXivHsfShQizkOJQsFR63FMdVGO6yHfWz1s4FD+za9V+N/ws01v/2otVLzuv36tZHwfpDlN1m2w6W62LLiVpyLhahpQixNRiBxkPAE+BcQtvRj+Veyd8dG99x8CyLIOESuC4qlPcJ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SCg3gkhFWT3bZM7y1azt3ki/gjJC0RysYIa059LeGaeqJJ94Ii6H9Kv8NNcovk+uKXvqF8un/N/+CcBu5N24Yb8H9pfF6XOW1M+bUtNYP6yoIGRccPphjBrZT7dBcosjtC2PsnRBnNUNDdiik5I+BeREQnpsMZm2VQt7vcR+PRoJPC1mtc2/mZv///ojj90punz2WfN/nntvQHFezmRXpPcdP3bIqIL8whGWF6xc+04oL7kqQ2Pfpu5omAZThNY6GWuV4waWOp6xcGg0UDPtuWn/lj/j+X+Lbso4jJUfOwAAAABJRU5ErkJggg==",Fn=St(3294),mn=St(56102),Dn=St(24544),rn=St(58617),ce=St(32050),Kt=Object.defineProperty,we=Object.defineProperties,Ee=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,ln=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,wt=(En,Rn,Pn)=>Rn in En?Kt(En,Rn,{enumerable:!0,configurable:!0,writable:!0,value:Pn}):En[Rn]=Pn,At=(En,Rn)=>{for(var Pn in Rn||(Rn={}))ln.call(Rn,Pn)&&wt(En,Pn,Rn[Pn]);if(ke)for(var Pn of ke(Rn))Dt.call(Rn,Pn)&&wt(En,Pn,Rn[Pn]);return En},Bt=(En,Rn)=>we(En,Ee(Rn)),jt=(En,Rn,Pn)=>new Promise(($n,xi)=>{var Fi=ro=>{try{Ji(Pn.next(ro))}catch(Eo){xi(Eo)}},Bi=ro=>{try{Ji(Pn.throw(ro))}catch(Eo){xi(Eo)}},Ji=ro=>ro.done?$n(ro.value):Promise.resolve(ro.value).then(Fi,Bi);Ji((Pn=Pn.apply(En,Rn)).next())}),Ae=({title:En="\u5934\u6B4CAI",placeholder:Rn,hideUpload:Pn,hideInputBox:$n,aiIcon:xi=oe,userIcon:Fi=cn,dragIcon:Bi=wn,children:Ji,fetchUrl:ro,fetchData:Eo={},extraAnswerAction:Zo,showDefaultTips:Lo=!0,onOpen:qn,onClose:$t,loadingOption:tn,showPreference:Jn=!1,initMessage:zt,customRequest:Mn,visible:le,width:Ct=1200,isCheckRestrictNumber:vn=!1,headNode:Hn,headFunctionNode:Qt,showRedraw:Te,showEdit:Re,promptPropName:_e="prompt",topPercentage:me,showSwitchingModel:en=!1,showImageGenerator:te=!1,showLookHistory:Yt=!1,fetchListObject:Vt,customPreference:Ve,customDataNode:an,showAddSession:pn,historyId:We,draggableExtraNode:Sn,drawerExtraNode:ai,menuExtraFunctionNode:gn,showSceneAwareness:Qe=!1})=>{var Xt,dn;const[De,Xe]=(0,ot.useState)(!1),[he,Pe]=(0,ot.useState)("qwen-max"),[fn,Di]=(0,ot.useState)([]),[oi,ii]=(0,ot.useState)([]),[Bn,Kn]=(0,ot.useState)(!1),[ki,bi]=(0,ot.useState)(!1),[Hi,yn]=(0,ot.useState)(!1),[uo,Qi]=(0,ot.useState)([]),[io,sn]=(0,ot.useState)(""),[Gn,wi]=(0,ot.useState)(0),[ji,Ci]=(0,ot.useState)(void 0),[Ui,so]=(0,ot.useState)(!1),[zi,Ei]=(0,ot.useState)(null),[Ki,Ln]=(0,ot.useState)(""),ho=(0,ot.useRef)(),bn=(0,ot.useRef)(null),ao=(0,ot.useRef)(null),[Mo,Ao]=(0,ot.useState)(!1),[Uo,So]=(0,ot.useState)(!1),[di,_i]=(0,ot.useState)(!1),[Po,eo]=(0,ot.useState)(!1),[hi,Ot]=(0,ot.useState)(0),lr=(0,ot.useRef)(null),Yo=(0,ot.useRef)(!1),tr=(0,ot.useRef)(null),[_t,Zn]=(0,ot.useState)(void 0),[si,Ii]=(0,ot.useState)(!0),[_n,Ai]=(0,ot.useState)(Ct-28),[pi,mi]=(0,ot.useState)(!1),[ei,gi]=(0,ot.useState)(!0),[Nn,Pi]=(0,ot.useState)([]),Wi=(0,ot.useRef)([]),Ni=(0,ot.useRef)(null),Oi=(0,ot.useRef)(null),po=(0,ot.useRef)(!1),co=_n-22,or=io==null?void 0:io.split(` -`).length,{onAdd:ia,onGetList:ha,onListClick:ga,onListDelete:on,onListDealData:ca}=Vt||{},Ks=50,$a=10,Ll={maxCount:Ks,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:fn,multiple:!0,accept:".doc,.docx,.md,.txt,.pdf,.xlsx,.xls",beforeUpload:ti=>jt(void 0,null,function*(){var To,Ko,ar,Ir;const sr=(Ir=(ar=(Ko=(To=ti==null?void 0:ti.name)==null?void 0:To.split("."))==null?void 0:Ko.slice(-1))==null?void 0:ar[0])==null?void 0:Ir.toLowerCase(),qr=["doc","docx","md","pdf","txt","xlsx","xls"].includes(sr);return ti.size==0?(Tt.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),ae.default.LIST_IGNORE):qr?ti.size/1024/1024>100?(Tt.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u5236100MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),ae.default.LIST_IGNORE):!0:(Tt.ZP.warning("\u76EE\u524D\u652F\u6301txt\u3001md\u3001doc\u3001docx\u3001pdf\u3001xlsx\u3001xls\u6587\u4EF6"),ae.default.LIST_IGNORE)}),onChange:({fileList:ti})=>{Di(ti)},action:`${(Xt=Fn.Z)==null?void 0:Xt.API_SERVER}/api/intelligent_imports/upload_file.json`},Yr={maxCount:$a,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:oi,multiple:!0,accept:".jpg,.png,",beforeUpload:ti=>{var To,Ko,ar,Ir;const sr=(Ir=(ar=(Ko=(To=ti==null?void 0:ti.name)==null?void 0:To.split("."))==null?void 0:Ko.slice(-1))==null?void 0:ar[0])==null?void 0:Ir.toLowerCase(),qr=["jpg","png"].includes(sr);return ti.size==0?(Tt.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),ae.default.LIST_IGNORE):qr?ti.size/1024/1024>10?(Tt.ZP.warning("\u4E0A\u4F20\u7684\u56FE\u7247\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),ae.default.LIST_IGNORE):!0:(Tt.ZP.warning("\u76EE\u524D\u652F\u6301jpg\u3001png"),ae.default.LIST_IGNORE)},onChange:({fileList:ti})=>{ii(ti)},action:`${(dn=Fn.Z)==null?void 0:dn.API_SERVER}/api/ai/generals/update_file.json`};(0,ot.useEffect)(()=>{if(!uo.length||!ho.current)return;const ti=uo[uo.length-1];ti!=null&&ti.loading&&(ho.current.scrollTop=ho.current.scrollHeight)},[uo.length]),(0,ot.useEffect)(()=>{if(!ho.current||!lr.current)return;const ti=new IntersectionObserver(([To])=>{Ii(To.isIntersecting)},{root:ho.current,rootMargin:"70px",threshold:0});return ti.observe(lr.current),()=>{lr.current&&ti.unobserve(lr.current)}},[ho.current,lr.current]),(0,ot.useEffect)(()=>{if(!Mo)return;const ti=ho.current,To=tr.current;Yo.current=!1;let Ko=ti.scrollTop;const ar=()=>{const{scrollTop:sr,scrollHeight:Zr,clientHeight:qr}=ti;sr>Ko?sr+qr>=Zr-50&&(ti.scrollTop=ti.scrollHeight,Yo.current=!1):sr{Yo.current||(ti.scrollTop=ti.scrollHeight)});return Ir.observe(To),()=>{var sr;Ir.unobserve(To),(sr=ti==null?void 0:ti.removeEventListener)==null||sr.call(ti,"scroll",ar)}},[Mo]),(0,ot.useEffect)(()=>{!Mo&&Wi.current.length&&(Qi([...uo,...Wi.current]),Wi.current=[])},[Mo]),(0,ot.useEffect)(()=>{if(!ho.current)return;const ti=new ResizeObserver(()=>{Ai(ho.current.offsetWidth)});return ti.observe(ho.current),()=>{ho.current&&ti.unobserve(ho.current)}},[ho.current]),(0,ot.useEffect)(()=>{typeof le=="boolean"&&Xe(le)},[le]),(0,ot.useEffect)(()=>{var ti;if(bn.current&&zi!==null){bn.current.focus();const To=(ti=bn.current.resizableTextArea)==null?void 0:ti.textArea;To&&(To.selectionStart=To.selectionEnd=To.value.length)}},[zi]),(0,ot.useEffect)(()=>{or<5&&so(!1)},[or]),(0,ot.useEffect)(()=>{De&&zt&&(Qi(Fs(zt)),Kn(!0),Ri(zt,{history:[]})),De&&(Wr(),We?ru(We):pn&&!_t&&ya()),De||gr()},[De]);const Fs=(ti="",To=[],Ko=[])=>{const ar=Date.now();return[{text:ti,key:ar,sender:"user",fileList:To,imageList:Ko,show:!0},{loading:!0,key:ar,sender:"AI",show:!0,model:he,imageGenerator:di,thinkingEnabled:Uo}]},gr=()=>{Ln(""),Ei(null),Di([]),ii([]),sn("")},zo=()=>{if(qn){qn({chatData:uo,setChatData:Qi,setLoading:Kn,getData:Ri,renderChatItems:Fs,handleAdd:ya,identifier:_t});return}Xe(!0)},nr=()=>{if(gi(!0),$t){$t();return}Xe(!1)},Xr=()=>{so(!Ui)},Wr=()=>jt(void 0,null,function*(){if(!vn)return;const ti=yield(0,be.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});(ti==null?void 0:ti.status)===0&&(ti==null?void 0:ti.total_number)!==-1&&(wi((ti==null?void 0:ti.total_number)-(ti==null?void 0:ti.remaining_number)),Ci(ti==null?void 0:ti.total_number))}),wa=()=>{$e.default.info({title:"\u63D0\u793A",icon:null,okText:"\u6211\u77E5\u9053\u4E86",width:510,centered:!0,content:ot.createElement("div",null,ot.createElement("div",{style:{color:"#FA6400"}},"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),ot.createElement("div",{className:"c-grey-333 mt5"},"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F\u7528",ji,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))})},kr=ti=>ti.reduce((Ko,ar)=>{if(ar.sender==="user"){const Ir=ti.find(sr=>sr.key===ar.key&&sr.sender==="AI");Ir&&(Ir!=null&&Ir.text)&&!(Ir!=null&&Ir.error)&&Ko.push({question:ar.text,answer:Ir.text})}return Ko},[]),Ri=(...ti)=>jt(void 0,[...ti],function*(To="",Ko={},ar=uo){if(Mn&&(yield Mn({mes:To,setChatData:Qi,fileList:fn,body:Ko,checkNum:Wr,setLoading:Kn,bodyChatData:ar,setTyping:Ao,setImageGenerator:_i,renderChatItems:Fs})),!Mn){const Ir=fn==null?void 0:fn.map(Ba=>{var ps;return(ps=Ba==null?void 0:Ba.response)==null?void 0:ps.file_id}),sr=oi==null?void 0:oi.map(Ba=>{var ps;return(ps=Ba==null?void 0:Ba.response)==null?void 0:ps.data}),Zr=Ko.history||kr(ar),qr=At(At({identifier:_t,response_mode:"streaming",model:he,scene_awareness:Po,thinking_enabled:Uo,image_generator:di,file_ids:Ir,image_list:sr,history:Zr,[_e]:To},Eo),Ko),es=Object.fromEntries(Object.entries(qr).filter(([Ba,ps])=>ps!==void 0));ao.current=new Dn.Z(Fn.Z.API_SERVER+ro,es),yield new Promise((Ba,ps)=>{let da=null,Sh=null;ao.current.on("data",$u=>{Ao(!0);const{chunk:{content:Xl,type:Bl,created:Wa,msg:ss}}=$u,ba=ss==="error";Bl==="thinking"&&(da=da||Wa,Qi(Ea=>[...Ea].map((bl,Cu)=>Cu===Ea.length-1?Bt(At({},bl),{reasoning:(bl.reasoning||"")+Xl,loading:!1,hideAnswer:!0,error:ba}):bl))),Bl==="text"&&(Sh=Sh||Wa,Qi(Ea=>[...Ea].map((bl,Cu)=>Cu===Ea.length-1?Bt(At({},bl),{text:(bl.text||"")+Xl,loading:!1,startTime:da,endTime:Sh,error:ba}):bl)))}),ao.current.on("done",()=>{Ba()}),ao.current.on("error",()=>{const $u="\u62B1\u6B49\uFF0C\u6211\u521A\u521A\u9047\u5230\u4E86\u4E00\u70B9\u95EE\u9898\uFF0C\u6CA1\u80FD\u5B8C\u6210\u60A8\u7684\u8BF7\u6C42\u3002\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\u4E00\u6B21\uFF0C\u6216\u8005\u8054\u7CFB\u6280\u672F\u652F\u6301\u5E2E\u5FD9\u89E3\u51B3!";Qi(Xl=>[...Xl].map((Bl,Wa)=>Wa===Xl.length-1?Bt(At({},Bl),{text:$u,loading:!1,error:!0}):Bl)),Ba()}),ao.current.on("cancelled",()=>{Ba()}),ao.current.startStream()})}Wr(),Kn(!1)}),ts=ti=>{sn(ti.target.value)},al=(ti,To)=>{if(gr(),Kn(!0),ti==="edit"){Wi.current=uo.slice(To+2);const Ko=uo.splice(To),{fileList:ar,imageList:Ir}=(Ko==null?void 0:Ko[0])||{},sr=ar.map(es=>{var Ba;return(Ba=es.response)==null?void 0:Ba.file_id}),Zr=Ir.map(es=>{var Ba;return(Ba=es.response)==null?void 0:Ba.data}),qr={history:kr(uo),file_ids:sr,image_list:Zr,edit:!0};Qi([...uo,...Fs(Ki,ar,Ir)]),Ri(Ki,qr,uo)}if(ti==="redraw"){Wi.current=uo.slice(To+1);const Ko=uo.splice(To-1),{text:ar,fileList:Ir,imageList:sr}=(Ko==null?void 0:Ko[0])||{},Zr=Ir.map(Ba=>{var ps;return(ps=Ba.response)==null?void 0:ps.file_id}),qr=sr.map(Ba=>{var ps;return(ps=Ba.response)==null?void 0:ps.data}),es={history:kr(uo),file_ids:Zr,image_list:qr,edit:!0};Qi([...uo,...Fs(ar,Ir,sr)]),Ri(ar,es,uo)}},as=()=>{if(io.trim()!==""){gr(),Kn(!0);const ti=fn.filter(Ko=>Ko.status==="done"),To=oi.filter(Ko=>Ko.status==="done");Qi([...uo,...Fs(io,ti,To)]),Ri(io)}},Qs=ti=>{if(ti.shiftKey){if(ti.key==="Enter")return}else if(ti.key==="Enter"){if(ti.preventDefault(),Vl||po.current)return;as()}},Dl=(ti,To)=>{let Ko=!1;Re===!0?Ko=!0:Re==="last"&&(Ko=uo.reduce((Zr,qr,es)=>qr.sender==="user"?es:Zr,-1)===To);const ar=To===zi,Ir=[...(ti==null?void 0:ti.fileList)||[],...(ti==null?void 0:ti.imageList)||[]];return ot.createElement("div",{className:Be.li,style:{width:co}},ot.createElement("div",{className:Be.avatarIcon},ot.createElement("img",{className:Be.img,src:Fi})),ot.createElement("div",{className:Be.content},!!(Ir!=null&&Ir.length)&&ot.createElement("div",{className:Be.fileWrap},Ir==null?void 0:Ir.map((sr,Zr)=>{var qr,es;return ot.createElement("div",{key:Zr,className:Be.file},ot.createElement("img",{src:St(90034)(`./${((es=(qr=sr==null?void 0:sr.name)==null?void 0:qr.split("."))==null?void 0:es.pop())||"txt"}.png`),width:20,className:"mr10"}),ot.createElement("aside",null,ot.createElement(fe.Z,{title:sr==null?void 0:sr.name},ot.createElement("div",{className:Be.fileName},sr==null?void 0:sr.name)),ot.createElement("div",{className:"c-grey-999 font12"},(0,Ke.RD)(sr==null?void 0:sr.size))))})),ot.createElement("div",{className:Be.borderBox},ar?ot.createElement(ve.default.TextArea,{value:Ki,ref:bn,autoSize:!0,placeholder:"\u8BF7\u8F93\u5165",bordered:!1,onChange:sr=>Ln(sr.target.value)}):ot.createElement("div",{className:Be.text},ti==null?void 0:ti.text)),ar?ot.createElement("div",{className:Be.action},ot.createElement(qt.ZP,{onClick:()=>{Ln(""),Ei(null)},size:"small"},"\u53D6\u6D88"),ot.createElement(qt.ZP,{disabled:!Ki.trim(),onClick:()=>al("edit",To),type:"primary",size:"small"},"\u786E\u8BA4")):ot.createElement("div",{className:Be.action},ot.createElement(mn.CopyToClipboard,{text:(ti==null?void 0:ti.text)||"",onCopy:()=>Tt.ZP.success("\u590D\u5236\u6210\u529F")},ot.createElement(fe.Z,{title:"\u590D\u5236"},ot.createElement("i",{className:"iconfont icon-fuzhi8 font13"}))),Ko&&!Bn&&ot.createElement(fe.Z,{title:"\u7F16\u8F91"},ot.createElement("i",{onClick:()=>{Ei(To),Ln((ti==null?void 0:ti.text)||"")},className:"iconfont icon-bianji10 font14"})))))},Mi=(ti,To)=>{let Ko=!1;Te===!0?Ko=!0:Te==="last"&&(Ko=uo.reduce((sr,Zr,qr)=>Zr.sender==="AI"?qr:sr,-1)===To);let ar="";return ti!=null&&ti.source?ar=ti==null?void 0:ti.source:(ti==null?void 0:ti.model)==="deepseek-r1"?ar="\u7531deepseek\u751F\u6210":(ti==null?void 0:ti.model)==="qwen-max"&&(ar="\u7531\u901A\u4E49\u5343\u95EE\u751F\u6210"),ot.createElement("div",{className:Be.li,style:{width:co}},ot.createElement("div",{className:Be.avatarIcon},ot.createElement("img",{className:Be.img,src:xi})),ot.createElement("div",{className:Be.content},ot.createElement("div",{className:Be.borderBox},ti.loading&&ot.createElement(ot.Fragment,null,ti!=null&&ti.imageGenerator?ot.createElement("div",{className:Be.loadingPic},"\u6B63\u5728\u751F\u6210\u4E2D",ot.createElement("div",{className:"ai-loading"})):!(ti!=null&&ti.thinkingEnabled)&&ot.createElement("div",null,ot.createElement("div",{className:Be.loading},ot.createElement("div",{className:Be.dot}),ot.createElement("div",{className:Be.dot}),ot.createElement("div",{className:Be.dot})),ot.createElement("div",{style:{marginTop:10,color:"#9096A3"}},(tn==null?void 0:tn.text)||"\u8BF7\u8010\u5FC3\u7B49\u5F85\uFF0C\u76EE\u524D\u9AD8\u5CF0\u671F\u4F53\u9A8C\u4EBA\u6570\u8FC7\u591A\uFF0C\u6211\u4EEC\u5DF2\u8BB0\u5F55\u4E0B\u60A8\u7684\u9700\u6C42\uFF0C\u7A0D\u540E\u5C06\u81EA\u52A8\u4E3A\u60A8\u751F\u6210\u7B54\u6848\u3002"))),(ti==null?void 0:ti.thinkingEnabled)&&ot.createElement(yt,{time:ti==null?void 0:ti.time,cancelIndex:hi,loading:ti.loading,streamingStatus:!(ti!=null&&ti.text),onFinish:()=>{Ot(0),Qi(Ir=>[...Ir].map((sr,Zr)=>Zr===Ir.length-1?Bt(At({},sr),{hideAnswer:!1,time:sr.startTime?sr.endTime-sr.startTime:null}):sr))},value:ti==null?void 0:ti.reasoning}),!!(ti!=null&&ti.text)&&!ti.hideAnswer&&ot.createElement(nt.Z,{cancelIndex:hi,streamingStatus:Bn,loadImage:!!(ti!=null&&ti.imageGenerator),onFinish:()=>jt(void 0,null,function*(){Ot(0),setTimeout(()=>Ao(!1),0)}),value:ti==null?void 0:ti.text})),!!(ti!=null&&ti.text)&&ar&&ot.createElement("div",{className:Be.source},ar),ot.createElement("div",{className:Be.action},Zo==null?void 0:Zo(ti,To,{onMenuClick:ru}),ot.createElement(mn.CopyToClipboard,{text:String((ti==null?void 0:ti.text)||""),onCopy:()=>Tt.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},ot.createElement(fe.Z,{title:"\u590D\u5236"},ot.createElement("i",{className:"iconfot icon-fuzhi8 font13"}))),Jn&&!Bn&&ot.createElement(ot.Fragment,null,ot.createElement(fe.Z,{title:"\u559C\u6B22"},ot.createElement("i",{style:ti!=null&&ti.like?{color:"#FA8D30"}:{},onClick:()=>ir("like",!(ti!=null&&ti.like),To),className:"iconfot icon-yijiejue font15"})),ot.createElement(fe.Z,{title:"\u4E0D\u559C\u6B22"},ot.createElement("i",{style:ti!=null&&ti.dislike?{color:"#e86d7c"}:{},onClick:()=>ir("dislike",!(ti!=null&&ti.dislike),To),className:"iconfot icon-weijiejuezhengchang font15"}))),Ko&&!Bn&&ot.createElement(fe.Z,{title:"\u91CD\u65B0\u751F\u6210"},ot.createElement("i",{onClick:()=>al("redraw",To),className:"iconfot icon-gengxin-genghuan-tihuan"})))))},ir=(ti,To,Ko)=>jt(void 0,null,function*(){if(Ve){const ar=uo.slice(0,Ko+1),sr=kr(ar).length;yield Ve({type:ti,value:To,index:Ko,identifier:_t,objectIndex:sr})}Qi(ar=>(ar[Ko][ti]=To,To&&(ar[Ko][ti==="like"?"dislike":"like"]=!1),[...ar]))}),Or=()=>{var ti,To;Ot(1),(To=(ti=ao.current)==null?void 0:ti.cancelRequest)==null||To.call(ti),Kn(!1),Ao(!1)},ya=()=>jt(void 0,null,function*(){var ti,To,Ko;(To=(ti=ao.current)==null?void 0:ti.cancelRequest)==null||To.call(ti),gr(),Qi([]),Kn(!0);const ar=yield ia();(ar==null?void 0:ar.status)===0&&Zn((Ko=ar==null?void 0:ar.data)==null?void 0:Ko.identifier),Kn(!1),Ao(!1)}),Au=()=>jt(void 0,null,function*(){var ti;yn(!0);const To=yield ha();(To==null?void 0:To.status)===0&&Pi(((ti=To==null?void 0:To.data)==null?void 0:ti.list)||[]),yn(!1)}),ru=(...ti)=>jt(void 0,[...ti],function*(To=_t){var Ko,ar,Ir,sr;(ar=(Ko=ao.current)==null?void 0:Ko.cancelRequest)==null||ar.call(Ko),gr(),bi(!0);const Zr=yield ga(To);if(Zr.status===0){const qr=ca(((Ir=Zr==null?void 0:Zr.data)==null?void 0:Ir.messages)||[]);Qi(qr),bi(!1),Zn((sr=Zr==null?void 0:Zr.data)==null?void 0:sr.identifier);return}Qi([]),bi(!1)}),Wo=(ti,To)=>jt(void 0,null,function*(){(yield on(ti)).status===0&&(Tt.ZP.success("\u5220\u9664\u6210\u529F"),To===_t&&ya(),Au())}),_u=()=>ot.createElement("div",{className:Be.menuWarp},ot.createElement("h4",null,"\u5386\u53F2\u5BF9\u8BDD"),ot.createElement(Oe.Z,{spinning:Hi},!Nn.length&&ot.createElement(de.Z,{style:{width:250,paddingBottom:30},image:de.Z.PRESENTED_IMAGE_SIMPLE}),!!Nn.length&&ot.createElement("div",{className:Be.menu},Nn.map(function(ti,To){return ot.createElement("aside",{className:Ft()(_t===ti.identifier&&Be.active),key:ti.id,onClick:()=>ru(ti.id)},ot.createElement("div",{className:Be.menuText},ot.createElement(fe.Z,{title:ti==null?void 0:ti.question},ot.createElement("span",null,ti==null?void 0:ti.question)),gn&&gn(ti)),ot.createElement("div",{className:Be.menuDel,onClick:Ko=>Ko.stopPropagation()},ot.createElement(Ce.Z,{title:"\u63D0\u793A",description:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u672C\u6761\u5BF9\u8BDD\u5417\uFF1F",onConfirm:()=>Wo(ti.id,ti.identifier),okText:"\u786E\u8BA4",zIndex:1100,cancelText:"\u53D6\u6D88"},ot.createElement("i",{className:"iconfont icon-shanchu14 delete-hover font14"}))))})))),Ul=ti=>{if(ti==="file"){if(oi.length){$e.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4\u8986\u76D6",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5DF2\u5B58\u5728\u56FE\u7247\uFF0C\u4E0A\u4F20\u6587\u4EF6\u540E\u56FE\u7247\u5C06\u4F1A\u88AB\u8986\u76D6?",onOk:()=>{ii([]),Ni.current.upload.uploader.fileInput.click()}});return}Ni.current.upload.uploader.fileInput.click()}if(ti==="image"){if(fn.length){$e.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4\u8986\u76D6",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5DF2\u5B58\u5728\u6587\u4EF6\uFF0C\u4E0A\u4F20\u56FE\u7247\u540E\u6587\u4EF6\u5C06\u4F1A\u88AB\u8986\u76D6?",onOk:()=>{Di([]),Oi.current.upload.uploader.fileInput.click()}});return}Oi.current.upload.uploader.fileInput.click()}},Ls=[{key:"file",disabled:fn.length>=Ks,label:ot.createElement(fe.Z,{placement:"right",title:ot.createElement("div",null,ot.createElement("b",null,"\u4E0A\u4F20\u9644\u4EF6\uFF08\u4EC5\u8BC6\u522B\u6587\u5B57\uFF09"),ot.createElement("div",null,"\u6700\u591A 50 \u4E2A\uFF0C\u6BCF\u4E2A 100 MB\uFF0C\u652F\u6301\u5404\u7C7B\u578B\u6587\u6863"))},ot.createElement("span",null,ot.createElement("i",{className:"iconfont icon-fujian3 font14 mr5"}),"\u4E0A\u4F20\u6587\u6863"))},he!=="deepseek-r1"&&{key:"image",disabled:oi.length>=$a,label:ot.createElement(fe.Z,{placement:"right",title:"\u652F\u6301\u4E0D\u8D85\u8FC710M\u7684PNG/JPG\u56FE\u7247\uFF0C\u6700\u591A10\u4E2A"},ot.createElement("span",null,ot.createElement("i",{className:"iconfont icon-tupianshangchuan font14 mr5"}),"\u4E0A\u4F20\u56FE\u7247"))}].filter(Boolean),Ka=[...fn,...oi],Vl=Ka.some(ti=>ti.status==="uploading")||Bn||Mo,Yl=Gn>=ji,fs=Pn||fn.length>=Ks||oi.length>=$a,sl=di||Uo||Po||!!Ka.length;return console.log(Ka,"fileAndImageList"),ot.createElement("div",null,Ji?ot.createElement("div",{onClick:zo},Ji):ot.createElement(An,{draggableExtraNode:Sn,src:Bi,onClick:zo,topPercentage:me}),ot.createElement(xe.Z,{open:De,width:pi?"100%":Ct,afterOpenChange:ti=>{ti&&gi(!1)},push:!1,contentWrapperStyle:ei?{}:{transition:"none"},extra:ot.createElement("div",{className:Be.head},ai,en&&ot.createElement(Tn,{value:he,onChange:ti=>{So(!1),_i(!1),Pe(ti),ii([]),Di([])}}),Yt&&ot.createElement(ot.Fragment,null,ot.createElement(ze.Z,{dropdownRender:_u,onOpenChange:ti=>{ti&&Au()},placement:"bottomLeft",arrow:!0},ot.createElement("div",{className:Be.headBtn},ot.createElement("i",{className:"icon-lishiduihua1 font14 mr10"}),"\u5386\u53F2\u5BF9\u8BDD"))),pn&&ot.createElement(ot.Fragment,null,ot.createElement("div",{className:Be.headBtn,onClick:ya},ot.createElement("i",{className:"icon-xinjianduihua font14 mr10"}),"\u65B0\u5EFA\u5BF9\u8BDD")),ot.createElement(fe.Z,{title:pi?"\u9000\u51FA\u5168\u5C4F":"\u5168\u5C4F"},ot.createElement("div",{className:Be.headBtn,style:{padding:"0 12px"},onClick:()=>mi(!pi)},pi&&ot.createElement("i",{className:"iconfont icon-tuichuquanping3"}),!pi&&ot.createElement("i",{className:"iconfont icon-quanping4"})))),title:ot.createElement("span",{className:"c-grey-333 font16"},En),onClose:nr,bodyStyle:{paddingRight:4}},ot.createElement("div",{className:Ft()(Be.wrap,De&&"body-overflow-hidden")},ot.createElement("div",{ref:ho,className:Be.chatContainer},Lo&&ot.createElement("div",{className:`${Be.li} mb20`,style:{width:co}},ot.createElement("div",{className:Be.avatarIcon},ot.createElement("img",{className:Be.img,src:xi})),ot.createElement("div",{className:Be.content},ot.createElement("div",{className:Be.borderBox},Hn,Qt==null?void 0:Qt({isDisabledNum:Yl,checkNumModal:wa,checkNum:Wr,onClose:nr,setChatData:Qi,setLoading:Kn,getData:Ri,clearStatus:gr,typing:Mo,setImageGenerator:_i,renderChatItems:Fs,setSceneAwareness:eo})))),ot.createElement("div",{ref:tr},ot.createElement(Oe.Z,{spinning:ki,className:"mt20"},uo==null?void 0:uo.map((ti,To)=>ot.createElement(ot.Fragment,{key:ti.key+To},ti.show&&ot.createElement(ot.Fragment,null,ti.sender==="user"&&Dl(ti,To),ti.sender==="AI"&&Mi(ti,To),an&&!["AI","user"].includes(ti.sender)&&an(ti,To,{width:co})))))),!si&&ot.createElement("div",{className:Be.backBottom,onClick:()=>{ho.current.scrollTop=ho.current.scrollHeight}},ot.createElement("i",{className:"iconfont icon-huidaodibu"})),ot.createElement("div",{ref:lr})),!$n&&ot.createElement("div",{className:Ft()(Be.footerContainer,Ui&&Be.full,sl&&Be.footerContainerSelected)},ot.createElement("div",{className:Be.btnWrp},Qe&&ot.createElement(fe.Z,{title:"\u667A\u80FD\u611F\u77E5\u5F53\u524D\u60C5\u5883\uFF0C\u63D0\u4F9B\u9488\u5BF9\u6027\u89E3\u7B54"},ot.createElement("div",{onClick:()=>eo(!Po),className:Ft()(Be.btn,Po&&Be.btnActive)},ot.createElement("i",{className:"iconfont icon-changjingganzhi mr10 font12"}),"\u573A\u666F\u611F\u77E5")),he==="deepseek-r1"&&ot.createElement(fe.Z,{title:"\u8C03\u7528\u65B0\u6A21\u578B DeepSeek-R1\uFF0C\u89E3\u51B3\u63A8\u7406\u95EE\u9898"},ot.createElement("div",{onClick:()=>So(!Uo),className:Ft()(Be.btn,Uo&&Be.btnActive)},ot.createElement("i",{className:"iconfont icon-shendusikao mr10 font12"}),"\u6DF1\u5EA6\u601D\u8003\uFF08R1\uFF09")),te&&he==="qwen-max"&&ot.createElement("div",{onClick:()=>_i(!di),className:Ft()(Be.btn,di&&Be.btnActive)},ot.createElement("i",{className:"iconfont icon-shangchuantupian2 mr10 font12"}),"\u56FE\u50CF\u751F\u6210"),Ka.map(ti=>ot.createElement("div",{key:ti.uid},(ti==null?void 0:ti.status)==="uploading"&&ot.createElement(Oe.Z,{indicator:ot.createElement(rn.Z,{spin:!0}),className:"mr10",size:"small",spinning:!0}),ot.createElement("span",{title:ti==null?void 0:ti.name,className:"mr10"},(0,Ke.Pq)(ti.name,20)),ot.createElement("i",{onClick:()=>{Di(To=>To.filter(Ko=>Ko.uid!==ti.uid)),ii(To=>To.filter(Ko=>Ko.uid!==ti.uid))},className:"iconfont current icon-shanchu15 delete-hover c-red-ee4 font12"})))),ot.createElement(fe.Z,{title:Yl&&ot.createElement("div",null,ot.createElement("div",null,"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),ot.createElement("div",null,"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F",ji,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))},ot.createElement("div",{className:Ft()(Be.inputContainer,or>4&&Be.lineFour,Yl&&Be.disabledInput)},ot.createElement(ae.default,At({ref:Ni},Ll)),ot.createElement(ae.default,At({ref:Oi},Yr)),ot.createElement(ze.Z,{className:`${fs&&"hide"}`,menu:{items:Ls,onClick:ti=>Ul(ti.key)},placement:"top"},ot.createElement(qt.ZP,{className:Be.uploadBtn,icon:ot.createElement(ce.Z,{style:{fontSize:18,color:"#FFF"}})})),ot.createElement(ve.default.TextArea,{rows:or>4?4:or,placeholder:Rn||"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u95EE\u9898\u5427,Shift+Enter\u6362\u884C\uFF5E",value:io,bordered:!1,style:fs?{paddingLeft:0,marginLeft:0}:{},onChange:ts,onPressEnter:Qs,onCompositionStart:()=>{po.current=!0},onCompositionEnd:()=>{po.current=!1}}),Mo?ot.createElement(fe.Z,{title:"\u505C\u6B62\u751F\u6210"},ot.createElement("div",{className:`iconfont icon-tingzhihuida ${Be.cancelBtn}`,onClick:Or})):ot.createElement(qt.ZP,{className:(io==null?void 0:io.trim())===""?Be.sendBtnDisabled:Be.sendBtn,icon:ot.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:Vl,onClick:as}),or>4&&ot.createElement("span",{className:Be.fullIcon,onClick:Xr},Ui&&ot.createElement("span",{className:"iconfont icon-shousuo"}),!Ui&&ot.createElement("span",{className:"iconfont icon-zhankai"}))))))))}},2554:function(un,Yn,St){"use strict";St.d(Yn,{o:function(){return ot}});const ot=Tt=>(Tt=Tt.replace(new RegExp("(?$1'),Tt=Tt.replace(new RegExp("(?jt(void 0,null,function*(){var To,Ko,ar,Ir;const sr=(Ir=(ar=(Ko=(To=ti==null?void 0:ti.name)==null?void 0:To.split("."))==null?void 0:Ko.slice(-1))==null?void 0:ar[0])==null?void 0:Ir.toLowerCase(),qr=["doc","docx","md","pdf","txt","xlsx","xls"].includes(sr);return ti.size==0?(Tt.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),ae.default.LIST_IGNORE):qr?ti.size/1024/1024>100?(Tt.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u5236100MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),ae.default.LIST_IGNORE):!0:(Tt.ZP.warning("\u76EE\u524D\u652F\u6301txt\u3001md\u3001doc\u3001docx\u3001pdf\u3001xlsx\u3001xls\u6587\u4EF6"),ae.default.LIST_IGNORE)}),onChange:({fileList:ti})=>{Di(ti)},action:`${(Xt=Fn.Z)==null?void 0:Xt.API_SERVER}/api/intelligent_imports/upload_file.json`},Yr={maxCount:_a,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:oi,multiple:!0,accept:".jpg,.png,",beforeUpload:ti=>{var To,Ko,ar,Ir;const sr=(Ir=(ar=(Ko=(To=ti==null?void 0:ti.name)==null?void 0:To.split("."))==null?void 0:Ko.slice(-1))==null?void 0:ar[0])==null?void 0:Ir.toLowerCase(),qr=["jpg","png"].includes(sr);return ti.size==0?(Tt.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),ae.default.LIST_IGNORE):qr?ti.size/1024/1024>10?(Tt.ZP.warning("\u4E0A\u4F20\u7684\u56FE\u7247\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),ae.default.LIST_IGNORE):!0:(Tt.ZP.warning("\u76EE\u524D\u652F\u6301jpg\u3001png"),ae.default.LIST_IGNORE)},onChange:({fileList:ti})=>{ii(ti)},action:`${(dn=Fn.Z)==null?void 0:dn.API_SERVER}/api/ai/generals/update_file.json`};(0,ot.useEffect)(()=>{if(!uo.length||!ho.current)return;const ti=uo[uo.length-1];ti!=null&&ti.loading&&(ho.current.scrollTop=ho.current.scrollHeight)},[uo.length]),(0,ot.useEffect)(()=>{if(!ho.current||!lr.current)return;const ti=new IntersectionObserver(([To])=>{Ii(To.isIntersecting)},{root:ho.current,rootMargin:"70px",threshold:0});return ti.observe(lr.current),()=>{lr.current&&ti.unobserve(lr.current)}},[ho.current,lr.current]),(0,ot.useEffect)(()=>{if(!Mo)return;const ti=ho.current,To=tr.current;Yo.current=!1;let Ko=ti.scrollTop;const ar=()=>{const{scrollTop:sr,scrollHeight:Zr,clientHeight:qr}=ti;sr>Ko?sr+qr>=Zr-50&&(ti.scrollTop=ti.scrollHeight,Yo.current=!1):sr{Yo.current||(ti.scrollTop=ti.scrollHeight)});return Ir.observe(To),()=>{var sr;Ir.unobserve(To),(sr=ti==null?void 0:ti.removeEventListener)==null||sr.call(ti,"scroll",ar)}},[Mo]),(0,ot.useEffect)(()=>{!Mo&&Wi.current.length&&(Qi([...uo,...Wi.current]),Wi.current=[])},[Mo]),(0,ot.useEffect)(()=>{if(!ho.current)return;const ti=new ResizeObserver(()=>{Ai(ho.current.offsetWidth)});return ti.observe(ho.current),()=>{ho.current&&ti.unobserve(ho.current)}},[ho.current]),(0,ot.useEffect)(()=>{typeof le=="boolean"&&Xe(le)},[le]),(0,ot.useEffect)(()=>{var ti;if(bn.current&&zi!==null){bn.current.focus();const To=(ti=bn.current.resizableTextArea)==null?void 0:ti.textArea;To&&(To.selectionStart=To.selectionEnd=To.value.length)}},[zi]),(0,ot.useEffect)(()=>{or<5&&so(!1)},[or]),(0,ot.useEffect)(()=>{De&&zt&&(Qi(Fs(zt)),Kn(!0),Ri(zt,{history:[]})),De&&(Wr(),We?ru(We):pn&&!_t&&ya()),De||gr()},[De]);const Fs=(ti="",To=[],Ko=[])=>{const ar=Date.now();return[{text:ti,key:ar,sender:"user",fileList:To,imageList:Ko,show:!0},{loading:!0,key:ar,sender:"AI",show:!0,model:he,imageGenerator:di,thinkingEnabled:Uo}]},gr=()=>{Ln(""),Ei(null),Di([]),ii([]),sn("")},zo=()=>{if(qn){qn({chatData:uo,setChatData:Qi,setLoading:Kn,getData:Ri,renderChatItems:Fs,handleAdd:ya,identifier:_t});return}Xe(!0)},nr=()=>{if(gi(!0),$t){$t();return}Xe(!1)},Xr=()=>{so(!Ui)},Wr=()=>jt(void 0,null,function*(){if(!vn)return;const ti=yield(0,be.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});(ti==null?void 0:ti.status)===0&&(ti==null?void 0:ti.total_number)!==-1&&(wi((ti==null?void 0:ti.total_number)-(ti==null?void 0:ti.remaining_number)),Ci(ti==null?void 0:ti.total_number))}),wa=()=>{$e.default.info({title:"\u63D0\u793A",icon:null,okText:"\u6211\u77E5\u9053\u4E86",width:510,centered:!0,content:ot.createElement("div",null,ot.createElement("div",{style:{color:"#FA6400"}},"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),ot.createElement("div",{className:"c-grey-333 mt5"},"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F\u7528",ji,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))})},kr=ti=>ti.reduce((Ko,ar)=>{if(ar.sender==="user"){const Ir=ti.find(sr=>sr.key===ar.key&&sr.sender==="AI");Ir&&(Ir!=null&&Ir.text)&&!(Ir!=null&&Ir.error)&&Ko.push({question:ar.text,answer:Ir.text})}return Ko},[]),Ri=(...ti)=>jt(void 0,[...ti],function*(To="",Ko={},ar=uo){if(Mn&&(yield Mn({mes:To,setChatData:Qi,fileList:fn,body:Ko,checkNum:Wr,setLoading:Kn,bodyChatData:ar,setTyping:Ao,setImageGenerator:_i,renderChatItems:Fs})),!Mn){const Ir=fn==null?void 0:fn.map(Ba=>{var ps;return(ps=Ba==null?void 0:Ba.response)==null?void 0:ps.file_id}),sr=oi==null?void 0:oi.map(Ba=>{var ps;return(ps=Ba==null?void 0:Ba.response)==null?void 0:ps.data}),Zr=Ko.history||kr(ar),qr=At(At({identifier:_t,response_mode:"streaming",model:he,scene_awareness:Po,thinking_enabled:Uo,image_generator:di,file_ids:Ir,image_list:sr,history:Zr,[_e]:To},Eo),Ko),es=Object.fromEntries(Object.entries(qr).filter(([Ba,ps])=>ps!==void 0));ao.current=new Dn.Z(Fn.Z.API_SERVER+ro,es),yield new Promise((Ba,ps)=>{let da=null,Sh=null;ao.current.on("data",$u=>{Ao(!0);const{chunk:{content:Xl,type:Bl,created:Wa,msg:ss}}=$u,ba=ss==="error";Bl==="thinking"&&(da=da||Wa,Qi(Ea=>[...Ea].map((bl,Cu)=>Cu===Ea.length-1?Bt(At({},bl),{reasoning:(bl.reasoning||"")+Xl,loading:!1,hideAnswer:!0,error:ba}):bl))),Bl==="text"&&(Sh=Sh||Wa,Qi(Ea=>[...Ea].map((bl,Cu)=>Cu===Ea.length-1?Bt(At({},bl),{text:(bl.text||"")+Xl,loading:!1,startTime:da,endTime:Sh,error:ba}):bl)))}),ao.current.on("done",()=>{Ba()}),ao.current.on("error",()=>{const $u="\u62B1\u6B49\uFF0C\u6211\u521A\u521A\u9047\u5230\u4E86\u4E00\u70B9\u95EE\u9898\uFF0C\u6CA1\u80FD\u5B8C\u6210\u60A8\u7684\u8BF7\u6C42\u3002\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\u4E00\u6B21\uFF0C\u6216\u8005\u8054\u7CFB\u6280\u672F\u652F\u6301\u5E2E\u5FD9\u89E3\u51B3!";Qi(Xl=>[...Xl].map((Bl,Wa)=>Wa===Xl.length-1?Bt(At({},Bl),{text:$u,loading:!1,error:!0}):Bl)),Ba()}),ao.current.on("cancelled",()=>{Ba()}),ao.current.startStream()})}Wr(),Kn(!1)}),$a=ti=>{sn(ti.target.value)},al=(ti,To)=>{if(gr(),Kn(!0),ti==="edit"){Wi.current=uo.slice(To+2);const Ko=uo.splice(To),{fileList:ar,imageList:Ir}=(Ko==null?void 0:Ko[0])||{},sr=ar.map(es=>{var Ba;return(Ba=es.response)==null?void 0:Ba.file_id}),Zr=Ir.map(es=>{var Ba;return(Ba=es.response)==null?void 0:Ba.data}),qr={history:kr(uo),file_ids:sr,image_list:Zr,edit:!0};Qi([...uo,...Fs(Ki,ar,Ir)]),Ri(Ki,qr,uo)}if(ti==="redraw"){Wi.current=uo.slice(To+1);const Ko=uo.splice(To-1),{text:ar,fileList:Ir,imageList:sr}=(Ko==null?void 0:Ko[0])||{},Zr=Ir.map(Ba=>{var ps;return(ps=Ba.response)==null?void 0:ps.file_id}),qr=sr.map(Ba=>{var ps;return(ps=Ba.response)==null?void 0:ps.data}),es={history:kr(uo),file_ids:Zr,image_list:qr,edit:!0};Qi([...uo,...Fs(ar,Ir,sr)]),Ri(ar,es,uo)}},as=()=>{if(io.trim()!==""){gr(),Kn(!0);const ti=fn.filter(Ko=>Ko.status==="done"),To=oi.filter(Ko=>Ko.status==="done");Qi([...uo,...Fs(io,ti,To)]),Ri(io)}},Qs=ti=>{if(ti.shiftKey){if(ti.key==="Enter")return}else if(ti.key==="Enter"){if(ti.preventDefault(),Vl||po.current)return;as()}},Dl=(ti,To)=>{let Ko=!1;Re===!0?Ko=!0:Re==="last"&&(Ko=uo.reduce((Zr,qr,es)=>qr.sender==="user"?es:Zr,-1)===To);const ar=To===zi,Ir=[...(ti==null?void 0:ti.fileList)||[],...(ti==null?void 0:ti.imageList)||[]];return ot.createElement("div",{className:Be.li,style:{width:co}},ot.createElement("div",{className:Be.avatarIcon},ot.createElement("img",{className:Be.img,src:Fi})),ot.createElement("div",{className:Be.content},!!(Ir!=null&&Ir.length)&&ot.createElement("div",{className:Be.fileWrap},Ir==null?void 0:Ir.map((sr,Zr)=>{var qr,es;return ot.createElement("div",{key:Zr,className:Be.file},ot.createElement("img",{src:St(90034)(`./${((es=(qr=sr==null?void 0:sr.name)==null?void 0:qr.split("."))==null?void 0:es.pop())||"txt"}.png`),width:20,className:"mr10"}),ot.createElement("aside",null,ot.createElement(fe.Z,{title:sr==null?void 0:sr.name},ot.createElement("div",{className:Be.fileName},sr==null?void 0:sr.name)),ot.createElement("div",{className:"c-grey-999 font12"},(0,Ke.RD)(sr==null?void 0:sr.size))))})),ot.createElement("div",{className:Be.borderBox},ar?ot.createElement(ve.default.TextArea,{value:Ki,ref:bn,autoSize:!0,placeholder:"\u8BF7\u8F93\u5165",bordered:!1,onChange:sr=>Ln(sr.target.value)}):ot.createElement("div",{className:Be.text},ti==null?void 0:ti.text)),ar?ot.createElement("div",{className:Be.action},ot.createElement(qt.ZP,{onClick:()=>{Ln(""),Ei(null)},size:"small"},"\u53D6\u6D88"),ot.createElement(qt.ZP,{disabled:!Ki.trim(),onClick:()=>al("edit",To),type:"primary",size:"small"},"\u786E\u8BA4")):ot.createElement("div",{className:Be.action},ot.createElement(mn.CopyToClipboard,{text:(ti==null?void 0:ti.text)||"",onCopy:()=>Tt.ZP.success("\u590D\u5236\u6210\u529F")},ot.createElement(fe.Z,{title:"\u590D\u5236"},ot.createElement("i",{className:"iconfont icon-fuzhi8 font13"}))),Ko&&!Bn&&ot.createElement(fe.Z,{title:"\u7F16\u8F91"},ot.createElement("i",{onClick:()=>{Ei(To),Ln((ti==null?void 0:ti.text)||"")},className:"iconfont icon-bianji10 font14"})))))},Mi=(ti,To)=>{let Ko=!1;Te===!0?Ko=!0:Te==="last"&&(Ko=uo.reduce((sr,Zr,qr)=>Zr.sender==="AI"?qr:sr,-1)===To);let ar="";return ti!=null&&ti.source?ar=ti==null?void 0:ti.source:(ti==null?void 0:ti.model)==="deepseek-r1"?ar="\u7531deepseek\u751F\u6210":(ti==null?void 0:ti.model)==="qwen-max"&&(ar="\u7531\u901A\u4E49\u5343\u95EE\u751F\u6210"),ot.createElement("div",{className:Be.li,style:{width:co}},ot.createElement("div",{className:Be.avatarIcon},ot.createElement("img",{className:Be.img,src:xi})),ot.createElement("div",{className:Be.content},ot.createElement("div",{className:Be.borderBox},ti.loading&&ot.createElement(ot.Fragment,null,ti!=null&&ti.imageGenerator?ot.createElement("div",{className:Be.loadingPic},"\u6B63\u5728\u751F\u6210\u4E2D",ot.createElement("div",{className:"ai-loading"})):!(ti!=null&&ti.thinkingEnabled)&&ot.createElement("div",null,ot.createElement("div",{className:Be.loading},ot.createElement("div",{className:Be.dot}),ot.createElement("div",{className:Be.dot}),ot.createElement("div",{className:Be.dot})),ot.createElement("div",{style:{marginTop:10,color:"#9096A3"}},(tn==null?void 0:tn.text)||"\u8BF7\u8010\u5FC3\u7B49\u5F85\uFF0C\u76EE\u524D\u9AD8\u5CF0\u671F\u4F53\u9A8C\u4EBA\u6570\u8FC7\u591A\uFF0C\u6211\u4EEC\u5DF2\u8BB0\u5F55\u4E0B\u60A8\u7684\u9700\u6C42\uFF0C\u7A0D\u540E\u5C06\u81EA\u52A8\u4E3A\u60A8\u751F\u6210\u7B54\u6848\u3002"))),(ti==null?void 0:ti.thinkingEnabled)&&ot.createElement(yt,{time:ti==null?void 0:ti.time,cancelIndex:hi,loading:ti.loading,streamingStatus:!(ti!=null&&ti.text),onFinish:()=>{Ot(0),Qi(Ir=>[...Ir].map((sr,Zr)=>Zr===Ir.length-1?Bt(At({},sr),{hideAnswer:!1,time:sr.startTime?sr.endTime-sr.startTime:null}):sr))},value:ti==null?void 0:ti.reasoning}),!!(ti!=null&&ti.text)&&!ti.hideAnswer&&ot.createElement(nt.Z,{cancelIndex:hi,streamingStatus:Bn,loadImage:!!(ti!=null&&ti.imageGenerator),onFinish:()=>jt(void 0,null,function*(){Ot(0),setTimeout(()=>Ao(!1),0)}),value:ti==null?void 0:ti.text})),!!(ti!=null&&ti.text)&&ar&&ot.createElement("div",{className:Be.source},ar),ot.createElement("div",{className:Be.action},Zo==null?void 0:Zo(ti,To,{onMenuClick:ru}),ot.createElement(mn.CopyToClipboard,{text:String((ti==null?void 0:ti.text)||""),onCopy:()=>Tt.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},ot.createElement(fe.Z,{title:"\u590D\u5236"},ot.createElement("i",{className:"iconfot icon-fuzhi8 font13"}))),Jn&&!Bn&&ot.createElement(ot.Fragment,null,ot.createElement(fe.Z,{title:"\u559C\u6B22"},ot.createElement("i",{style:ti!=null&&ti.like?{color:"#FA8D30"}:{},onClick:()=>ir("like",!(ti!=null&&ti.like),To),className:"iconfot icon-yijiejue font15"})),ot.createElement(fe.Z,{title:"\u4E0D\u559C\u6B22"},ot.createElement("i",{style:ti!=null&&ti.dislike?{color:"#e86d7c"}:{},onClick:()=>ir("dislike",!(ti!=null&&ti.dislike),To),className:"iconfot icon-weijiejuezhengchang font15"}))),Ko&&!Bn&&ot.createElement(fe.Z,{title:"\u91CD\u65B0\u751F\u6210"},ot.createElement("i",{onClick:()=>al("redraw",To),className:"iconfot icon-gengxin-genghuan-tihuan"})))))},ir=(ti,To,Ko)=>jt(void 0,null,function*(){if(Ve){const ar=uo.slice(0,Ko+1),sr=kr(ar).length;yield Ve({type:ti,value:To,index:Ko,identifier:_t,objectIndex:sr})}Qi(ar=>(ar[Ko][ti]=To,To&&(ar[Ko][ti==="like"?"dislike":"like"]=!1),[...ar]))}),Or=()=>{var ti,To;Ot(1),(To=(ti=ao.current)==null?void 0:ti.cancelRequest)==null||To.call(ti),Kn(!1),Ao(!1)},ya=()=>jt(void 0,null,function*(){var ti,To,Ko;(To=(ti=ao.current)==null?void 0:ti.cancelRequest)==null||To.call(ti),gr(),Qi([]),Kn(!0);const ar=yield ia();(ar==null?void 0:ar.status)===0&&Zn((Ko=ar==null?void 0:ar.data)==null?void 0:Ko.identifier),Kn(!1),Ao(!1)}),Au=()=>jt(void 0,null,function*(){var ti;yn(!0);const To=yield ha();(To==null?void 0:To.status)===0&&Pi(((ti=To==null?void 0:To.data)==null?void 0:ti.list)||[]),yn(!1)}),ru=(...ti)=>jt(void 0,[...ti],function*(To=_t){var Ko,ar,Ir,sr;(ar=(Ko=ao.current)==null?void 0:Ko.cancelRequest)==null||ar.call(Ko),gr(),bi(!0);const Zr=yield ga(To);if(Zr.status===0){const qr=ca(((Ir=Zr==null?void 0:Zr.data)==null?void 0:Ir.messages)||[]);Qi(qr),bi(!1),Zn((sr=Zr==null?void 0:Zr.data)==null?void 0:sr.identifier);return}Qi([]),bi(!1)}),Wo=(ti,To)=>jt(void 0,null,function*(){(yield on(ti)).status===0&&(Tt.ZP.success("\u5220\u9664\u6210\u529F"),To===_t&&ya(),Au())}),_u=()=>ot.createElement("div",{className:Be.menuWarp},ot.createElement("h4",null,"\u5386\u53F2\u5BF9\u8BDD"),ot.createElement(Oe.Z,{spinning:Hi},!Nn.length&&ot.createElement(de.Z,{style:{width:250,paddingBottom:30},image:de.Z.PRESENTED_IMAGE_SIMPLE}),!!Nn.length&&ot.createElement("div",{className:Be.menu},Nn.map(function(ti,To){return ot.createElement("aside",{className:Ft()(_t===ti.identifier&&Be.active),key:ti.id,onClick:()=>ru(ti.id)},ot.createElement("div",{className:Be.menuText},ot.createElement(fe.Z,{title:ti==null?void 0:ti.question},ot.createElement("span",null,ti==null?void 0:ti.question)),gn&&gn(ti)),ot.createElement("div",{className:Be.menuDel,onClick:Ko=>Ko.stopPropagation()},ot.createElement(Ce.Z,{title:"\u63D0\u793A",description:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u672C\u6761\u5BF9\u8BDD\u5417\uFF1F",onConfirm:()=>Wo(ti.id,ti.identifier),okText:"\u786E\u8BA4",zIndex:1100,cancelText:"\u53D6\u6D88"},ot.createElement("i",{className:"iconfont icon-shanchu14 delete-hover font14"}))))})))),Ul=ti=>{if(ti==="file"){if(oi.length){$e.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4\u8986\u76D6",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5DF2\u5B58\u5728\u56FE\u7247\uFF0C\u4E0A\u4F20\u6587\u4EF6\u540E\u56FE\u7247\u5C06\u4F1A\u88AB\u8986\u76D6?",onOk:()=>{ii([]),Ni.current.upload.uploader.fileInput.click()}});return}Ni.current.upload.uploader.fileInput.click()}if(ti==="image"){if(fn.length){$e.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4\u8986\u76D6",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5DF2\u5B58\u5728\u6587\u4EF6\uFF0C\u4E0A\u4F20\u56FE\u7247\u540E\u6587\u4EF6\u5C06\u4F1A\u88AB\u8986\u76D6?",onOk:()=>{Di([]),Oi.current.upload.uploader.fileInput.click()}});return}Oi.current.upload.uploader.fileInput.click()}},Ls=[{key:"file",disabled:fn.length>=Ks,label:ot.createElement(fe.Z,{placement:"right",title:ot.createElement("div",null,ot.createElement("b",null,"\u4E0A\u4F20\u9644\u4EF6\uFF08\u4EC5\u8BC6\u522B\u6587\u5B57\uFF09"),ot.createElement("div",null,"\u6700\u591A 50 \u4E2A\uFF0C\u6BCF\u4E2A 100 MB\uFF0C\u652F\u6301\u5404\u7C7B\u578B\u6587\u6863"))},ot.createElement("span",null,ot.createElement("i",{className:"iconfont icon-fujian3 font14 mr5"}),"\u4E0A\u4F20\u6587\u6863"))},he!=="deepseek-r1"&&{key:"image",disabled:oi.length>=_a,label:ot.createElement(fe.Z,{placement:"right",title:"\u652F\u6301\u4E0D\u8D85\u8FC710M\u7684PNG/JPG\u56FE\u7247\uFF0C\u6700\u591A10\u4E2A"},ot.createElement("span",null,ot.createElement("i",{className:"iconfont icon-tupianshangchuan font14 mr5"}),"\u4E0A\u4F20\u56FE\u7247"))}].filter(Boolean),ts=[...fn,...oi],Vl=ts.some(ti=>ti.status==="uploading")||Bn||Mo,Yl=Gn>=ji,fs=Pn||fn.length>=Ks||oi.length>=_a,sl=di||Uo||Po||!!ts.length;return ot.createElement("div",null,Ji?ot.createElement("div",{onClick:zo},Ji):ot.createElement(An,{draggableExtraNode:Sn,src:Bi,onClick:zo,topPercentage:me}),ot.createElement(xe.Z,{open:De,width:pi?"100%":Ct,afterOpenChange:ti=>{ti&&gi(!1)},push:!1,contentWrapperStyle:ei?{}:{transition:"none"},extra:ot.createElement("div",{className:Be.head},ai,en&&ot.createElement(Tn,{value:he,onChange:ti=>{So(!1),_i(!1),Pe(ti),ii([]),Di([])}}),Yt&&ot.createElement(ot.Fragment,null,ot.createElement(ze.Z,{dropdownRender:_u,onOpenChange:ti=>{ti&&Au()},placement:"bottomLeft",arrow:!0},ot.createElement("div",{className:Be.headBtn},ot.createElement("i",{className:"icon-lishiduihua1 font14 mr10"}),"\u5386\u53F2\u5BF9\u8BDD"))),pn&&ot.createElement(ot.Fragment,null,ot.createElement("div",{className:Be.headBtn,onClick:ya},ot.createElement("i",{className:"icon-xinjianduihua font14 mr10"}),"\u65B0\u5EFA\u5BF9\u8BDD")),ot.createElement(fe.Z,{title:pi?"\u9000\u51FA\u5168\u5C4F":"\u5168\u5C4F"},ot.createElement("div",{className:Be.headBtn,style:{padding:"0 12px"},onClick:()=>mi(!pi)},pi&&ot.createElement("i",{className:"iconfont icon-tuichuquanping3"}),!pi&&ot.createElement("i",{className:"iconfont icon-quanping4"})))),title:ot.createElement("span",{className:"c-grey-333 font16"},En),onClose:nr,bodyStyle:{paddingRight:4}},ot.createElement("div",{className:Ft()(Be.wrap,De&&"body-overflow-hidden")},ot.createElement("div",{ref:ho,className:Be.chatContainer},Lo&&ot.createElement("div",{className:`${Be.li} mb20`,style:{width:co}},ot.createElement("div",{className:Be.avatarIcon},ot.createElement("img",{className:Be.img,src:xi})),ot.createElement("div",{className:Be.content},ot.createElement("div",{className:Be.borderBox},Hn,Qt==null?void 0:Qt({isDisabledNum:Yl,checkNumModal:wa,checkNum:Wr,onClose:nr,setChatData:Qi,setLoading:Kn,getData:Ri,clearStatus:gr,typing:Mo,setImageGenerator:_i,renderChatItems:Fs,setSceneAwareness:eo,setIdentifier:Zn})))),ot.createElement("div",{ref:tr},ot.createElement(Oe.Z,{spinning:ki,className:"mt20"},uo==null?void 0:uo.map((ti,To)=>ot.createElement(ot.Fragment,{key:ti.key+To},ti.show&&ot.createElement(ot.Fragment,null,ti.sender==="user"&&Dl(ti,To),ti.sender==="AI"&&Mi(ti,To),an&&!["AI","user"].includes(ti.sender)&&an(ti,To,{width:co})))))),!si&&ot.createElement("div",{className:Be.backBottom,onClick:()=>{ho.current.scrollTop=ho.current.scrollHeight}},ot.createElement("i",{className:"iconfont icon-huidaodibu"})),ot.createElement("div",{ref:lr})),!$n&&ot.createElement("div",{className:Ft()(Be.footerContainer,Ui&&Be.full,sl&&Be.footerContainerSelected)},ot.createElement("div",{className:Be.btnWrp},Qe&&ot.createElement(fe.Z,{title:"\u667A\u80FD\u611F\u77E5\u5F53\u524D\u60C5\u5883\uFF0C\u63D0\u4F9B\u9488\u5BF9\u6027\u89E3\u7B54"},ot.createElement("div",{onClick:()=>eo(!Po),className:Ft()(Be.btn,Po&&Be.btnActive)},ot.createElement("i",{className:"iconfont icon-changjingganzhi mr10 font12"}),"\u573A\u666F\u611F\u77E5")),he==="deepseek-r1"&&ot.createElement(fe.Z,{title:"\u8C03\u7528\u65B0\u6A21\u578B DeepSeek-R1\uFF0C\u89E3\u51B3\u63A8\u7406\u95EE\u9898"},ot.createElement("div",{onClick:()=>So(!Uo),className:Ft()(Be.btn,Uo&&Be.btnActive)},ot.createElement("i",{className:"iconfont icon-shendusikao mr10 font12"}),"\u6DF1\u5EA6\u601D\u8003\uFF08R1\uFF09")),te&&he==="qwen-max"&&ot.createElement("div",{onClick:()=>_i(!di),className:Ft()(Be.btn,di&&Be.btnActive)},ot.createElement("i",{className:"iconfont icon-shangchuantupian2 mr10 font12"}),"\u56FE\u50CF\u751F\u6210"),ts.map(ti=>ot.createElement("div",{key:ti.uid},(ti==null?void 0:ti.status)==="uploading"&&ot.createElement(Oe.Z,{indicator:ot.createElement(rn.Z,{spin:!0}),className:"mr10",size:"small",spinning:!0}),ot.createElement("span",{title:ti==null?void 0:ti.name,className:"mr10"},(0,Ke.Pq)(ti.name,20)),ot.createElement("i",{onClick:()=>{Di(To=>To.filter(Ko=>Ko.uid!==ti.uid)),ii(To=>To.filter(Ko=>Ko.uid!==ti.uid))},className:"iconfont current icon-shanchu15 delete-hover c-red-ee4 font12"})))),ot.createElement(fe.Z,{title:Yl&&ot.createElement("div",null,ot.createElement("div",null,"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),ot.createElement("div",null,"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F",ji,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))},ot.createElement("div",{className:Ft()(Be.inputContainer,or>4&&Be.lineFour,Yl&&Be.disabledInput)},ot.createElement(ae.default,At({ref:Ni},Ll)),ot.createElement(ae.default,At({ref:Oi},Yr)),ot.createElement(ze.Z,{className:`${fs&&"hide"}`,menu:{items:Ls,onClick:ti=>Ul(ti.key)},placement:"top"},ot.createElement(qt.ZP,{className:Be.uploadBtn,icon:ot.createElement(ce.Z,{style:{fontSize:18,color:"#FFF"}})})),ot.createElement(ve.default.TextArea,{rows:or>4?4:or,placeholder:Rn||"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u95EE\u9898\u5427,Shift+Enter\u6362\u884C\uFF5E",value:io,bordered:!1,style:fs?{paddingLeft:0,marginLeft:0}:{},onChange:$a,onPressEnter:Qs,onCompositionStart:()=>{po.current=!0},onCompositionEnd:()=>{po.current=!1}}),Mo?ot.createElement(fe.Z,{title:"\u505C\u6B62\u751F\u6210"},ot.createElement("div",{className:`iconfont icon-tingzhihuida ${Be.cancelBtn}`,onClick:Or})):ot.createElement(qt.ZP,{className:(io==null?void 0:io.trim())===""?Be.sendBtnDisabled:Be.sendBtn,icon:ot.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:Vl,onClick:as}),or>4&&ot.createElement("span",{className:Be.fullIcon,onClick:Xr},Ui&&ot.createElement("span",{className:"iconfont icon-shousuo"}),!Ui&&ot.createElement("span",{className:"iconfont icon-zhankai"}))))))))}},2554:function(un,Yn,St){"use strict";St.d(Yn,{o:function(){return ot}});const ot=Tt=>(Tt=Tt.replace(new RegExp("(?$1'),Tt=Tt.replace(new RegExp("(?$1 @@ -1093,7 +1093,7 @@ ${Hi}`),Bn=!1,Eo(!0),yn==="text"&&$n(uo=>uo+Hi)}),$t.current.on("done",bi=>{jt(H `),yn.focus();case"list-ul":return Nn===""?yn.replaceSelection("- "+Nn):yn.replaceSelection(Pi.map(Wi=>Wi===""?"":`- ${Wi}`).join(` `)),yn.focus();case"list-ol":return Nn===""?yn.replaceSelection("1. "+Nn):yn.replaceSelection(Pi.map((Wi,Ni)=>Wi===""?"":`${Ni+1}. ${Wi}`).join(` `)),yn.focus();case"add-null-ch":return Nn===""&&yn.setCursor(gi.line,gi.ch),yn.replaceSelection(Mn),yn.focus();case"add-signal":return Nn===""&&yn.setCursor(gi.line,gi.ch),yn.replaceSelection(Ct),yn.focus();case"add-multiple":return Nn===""&&yn.setCursor(gi.line,gi.ch),yn.replaceSelection(le),yn.focus();case"inster-template-1":return Nn===""&&yn.setCursor(gi.line,gi.ch),yn.replaceSelection(vn),yn.focus();case"eraser":return yn.setValue(""),yn.focus();case"trigger-watch":return Gn(!sn),yn.focus();case"trigger-full-screen":return ji(!wi),yn.focus();case xi:Ui(xi);return;case Eo:Ui(Eo);return;case Fi:Ui(Fi);return;case Ji:Ui(Ji);return;case"maths-latex":Ui("maths-latex");return;case Bi:Ui(Bi);return;case Zo:Ui(Zo);return;default:throw new Error}},[yn,sn,wi]),Ot=(0,ot.useCallback)((ei,gi)=>{var Nn,Pi,Wi,Ni,Oi,po;switch(Ui(""),Ci){case xi:const{title:ga,link:on}=ei;return yn.replaceSelection(`[${ga}](${on})`),yn.focus();case Eo:const{language:ca,content:Ks}=ei;return yn.replaceSelection(["```"+ca,Ks,"```"].join(` -`)),yn.focus();case"maths-latex":for(var co=atob(ei),or=new Uint8Array(co.length),ia=0;ia{Wr.id?yn.replaceSelection(`![,](/api/attachments/${Wr.id}?type=${Wr.content_type})`):(Wr==null?void 0:Wr.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":yn.replaceSelection("`$$"+ei+"$$`");break;case Fi:case Ji:case ro:const{src:$a,alt:Ll}=ei,Yr=gi,Fs=(Wi=(Pi=(Nn=Yr==null?void 0:Yr.name)==null?void 0:Nn.split("."))==null?void 0:Pi.pop)==null?void 0:Wi.call(Pi);return((Ni=Yr==null?void 0:Yr.type)==null?void 0:Ni.indexOf("image"))>-1||!(Yr!=null&&Yr.type)?Yr!=null&&Yr.align||Yr!=null&&Yr.width?yn.replaceSelection(`

      ${Ll||

      `):yn.replaceSelection(`${Ll||`):((Oi=Yr==null?void 0:Yr.type)==null?void 0:Oi.indexOf("video"))>-1?yn.replaceSelection(``):((po=Yr==null?void 0:Yr.type)==null?void 0:po.indexOf("pdf"))>-1?yn.replaceSelection(`
      ${Yr.name}`):Hn.includes(Fs)?yn.replaceSelection(`${Yr.name}`):yn.replaceSelection(`[${Yr.name}](${$a})`),yn.focus();case Zo:const{row:gr,col:zo,align:nr}=ei;let Xr=` +`)),yn.focus();case"maths-latex":for(var co=atob(ei),or=new Uint8Array(co.length),ia=0;ia{Wr.id?yn.replaceSelection(`![,](/api/attachments/${Wr.id}?type=${Wr.content_type})`):(Wr==null?void 0:Wr.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":yn.replaceSelection("`$$"+ei+"$$`");break;case Fi:case Ji:case ro:const{src:_a,alt:Ll}=ei,Yr=gi,Fs=(Wi=(Pi=(Nn=Yr==null?void 0:Yr.name)==null?void 0:Nn.split("."))==null?void 0:Pi.pop)==null?void 0:Wi.call(Pi);return((Ni=Yr==null?void 0:Yr.type)==null?void 0:Ni.indexOf("image"))>-1||!(Yr!=null&&Yr.type)?Yr!=null&&Yr.align||Yr!=null&&Yr.width?yn.replaceSelection(`

      ${Ll||

      `):yn.replaceSelection(`${Ll||`):((Oi=Yr==null?void 0:Yr.type)==null?void 0:Oi.indexOf("video"))>-1?yn.replaceSelection(``):((po=Yr==null?void 0:Yr.type)==null?void 0:po.indexOf("pdf"))>-1?yn.replaceSelection(`${Yr.name}`):Hn.includes(Fs)?yn.replaceSelection(`${Yr.name}`):yn.replaceSelection(`[${Yr.name}](${_a})`),yn.focus();case Zo:const{row:gr,col:zo,align:nr}=ei;let Xr=` `;for(let Wr=0;Wruo+Hi)}),$t.current.on("done",bi=>{jt(H `)},{label:"include ",content:["#include "].join(` `)}]},ve={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(` `)}]},qt={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 Oe=St(53184),de=St.n(Oe),Ce=Object.defineProperty,xe=Object.defineProperties,ze=Object.getOwnPropertyDescriptors,He=Object.getOwnPropertySymbols,Ft=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,et=(Ee,ke,ln)=>ke in Ee?Ce(Ee,ke,{enumerable:!0,configurable:!0,writable:!0,value:ln}):Ee[ke]=ln,ct=(Ee,ke)=>{for(var ln in ke||(ke={}))Ft.call(ke,ln)&&et(Ee,ln,ke[ln]);if(He)for(var ln of He(ke))nt.call(ke,ln)&&et(Ee,ln,ke[ln]);return Ee},ut=(Ee,ke)=>xe(Ee,ze(ke)),pt=(Ee,ke,ln)=>new Promise((Dt,wt)=>{var At=Mt=>{try{jt(ln.next(Mt))}catch(Ae){wt(Ae)}},Bt=Mt=>{try{jt(ln.throw(Mt))}catch(Ae){wt(Ae)}},jt=Mt=>Mt.done?Dt(Mt.value):Promise.resolve(Mt.value).then(At,Bt);jt((ln=ln.apply(Ee,ke)).next())});const yt={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"]}},Pt=(Ee,ke)=>ke.map(ln=>({label:ln,kind:Ee.languages.CompletionItemKind.Keyword,insertText:ln})),bt=Ee=>Object.keys(yt.tables).map(ke=>({label:ke,kind:Ee.languages.CompletionItemKind.Variable,insertText:ke})),Rt=(Ee,ke)=>{const ln=yt.tables[Ee];return ln?ln.map(Dt=>({label:Dt,kind:ke.languages.CompletionItemKind.Field,insertText:Dt})):[]};function Ut(Ee,ke,ln,Dt,wt){let At=ke.getWordUntilPosition(ln),Bt={startLineNumber:ln.lineNumber,endLineNumber:ln.lineNumber,startColumn:At.startColumn,endColumn:At.endColumn},jt=Dt.map(Mt=>({label:Mt,kind:Ee.languages.CompletionItemKind.Keyword,insertText:Mt,insertTextRules:Ee.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Bt}));return wt.map(Mt=>{jt.push(ut(ct({},Mt),{range:Bt}))}),jt}var ee=Ee=>{yt.languages.map(wt=>(Ee.languages.registerDocumentFormattingEditProvider(wt,{provideDocumentFormattingEdits(At,Bt,jt){return pt(this,null,function*(){const Mt=de()(At.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:At.getFullModelRange(),text:Mt}]})}}),wt));const ke=fe.quickKey.map(wt=>({label:wt.label,kind:Ee.languages.CompletionItemKind.Method,insertText:wt.content,insertTextRules:Ee.languages.CompletionItemInsertTextRule.InsertAsSnippet})),ln=ve.quickKey.map(wt=>({label:wt.label,kind:Ee.languages.CompletionItemKind.Method,insertText:wt.content,insertTextRules:Ee.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Dt=$e.quickKey.map(wt=>({label:wt.label,kind:Ee.languages.CompletionItemKind.Method,insertText:wt.content,insertTextRules:Ee.languages.CompletionItemInsertTextRule.InsertAsSnippet}));Ee.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(wt,At){var Bt=wt.getWordUntilPosition(At),jt={startLineNumber:At.lineNumber,endLineNumber:At.lineNumber,startColumn:Bt.startColumn,endColumn:Bt.endColumn},Mt=wt.getLineContent(At.lineNumber).substring(Bt.startColumn-2,Bt.endColumn);return{suggestions:[...fe.keywords.map(Ae=>({label:Ae,kind:Ee.languages.CompletionItemKind.Function,documentation:Ae,insertText:Ae,insertTextRules:Ee.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:jt})),...fe.quickKey.map(Ae=>({label:Ae.label,kind:Ee.languages.CompletionItemKind.Function,documentation:Ae.content,insertText:Mt.startsWith("#")?Ae.content.replace(/#/,""):Ae.content,insertTextRules:Ee.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:jt}))]}}}),Ee.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(wt,At){var Bt=wt.getWordUntilPosition(At),jt={startLineNumber:At.lineNumber,endLineNumber:At.lineNumber,startColumn:Bt.startColumn,endColumn:Bt.endColumn};return{suggestions:[...ae.keywords.map(Mt=>({label:Mt,kind:Ee.languages.CompletionItemKind.Function,documentation:Mt,insertText:Mt,insertTextRules:Ee.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:jt}))]}}}),Ee.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(wt,At){var Bt=wt.getWordUntilPosition(At),jt={startLineNumber:At.lineNumber,endLineNumber:At.lineNumber,startColumn:Bt.startColumn,endColumn:Bt.endColumn},Mt=wt.getLineContent(At.lineNumber).substring(Bt.startColumn-2,Bt.endColumn);return{suggestions:[...$e.keywords.map(Ae=>({label:Ae,kind:Ee.languages.CompletionItemKind.Function,documentation:Ae,insertText:Ae,insertTextRules:Ee.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:jt})),...$e.quickKey.map(Ae=>({label:Ae.label,kind:Ee.languages.CompletionItemKind.Function,documentation:Ae.content,insertText:Mt.startsWith("#")?Ae.content.replace(/#/,""):Ae.content,insertTextRules:Ee.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:jt}))]}}}),Ee.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(wt,At){var Bt=wt.getWordUntilPosition(At),jt={startLineNumber:At.lineNumber,endLineNumber:At.lineNumber,startColumn:Bt.startColumn,endColumn:Bt.endColumn},Mt=wt.getLineContent(At.lineNumber).substring(Bt.startColumn-2,Bt.endColumn);return{suggestions:[...qt.keywords.map(Ae=>({label:Ae,kind:Ee.languages.CompletionItemKind.Function,documentation:Ae,insertText:Ae,insertTextRules:Ee.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:jt})),...qt.quickKey.map(Ae=>({label:Ae.label,kind:Ee.languages.CompletionItemKind.Function,documentation:Ae.content,insertText:Mt.startsWith("#")?Ae.content.replace(/#/,""):Ae.content,insertTextRules:Ee.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:jt}))]}}}),Ee.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(wt,At){var Bt=wt.getWordUntilPosition(At),jt={startLineNumber:At.lineNumber,endLineNumber:At.lineNumber,startColumn:Bt.startColumn,endColumn:Bt.endColumn},Mt=wt.getLineContent(At.lineNumber).substring(Bt.startColumn-2,Bt.endColumn);return{suggestions:[...ve.keywords.map(Ae=>({label:Ae,kind:Ee.languages.CompletionItemKind.Function,documentation:Ae,insertText:Ae,insertTextRules:Ee.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:jt})),...ve.quickKey.map(Ae=>({label:Ae.label,kind:Ee.languages.CompletionItemKind.Function,documentation:Ae.content,insertText:Mt.startsWith("#")?Ae.content.replace(/#/,""):Ae.content,insertTextRules:Ee.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:jt}))]}}})};const re="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var ie=Object.defineProperty,Me=(Ee,ke,ln)=>ke in Ee?ie(Ee,ke,{enumerable:!0,configurable:!0,writable:!0,value:ln}):Ee[ke]=ln,pe=(Ee,ke,ln)=>Me(Ee,typeof ke!="symbol"?ke+"":ke,ln);const Le=class p5{constructor(ke,ln,Dt){this.placeholder=ke,this.editor=ln,this.monaco=Dt,ln.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return p5.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)}};pe(Le,"ID","editor.widget.placeholderHint");var je=Le,Je=St(96236),Cn=St(8591),hn=St(6848),Xn=St(89392),Fe=St(34604),Zt=St(56102),Ye=Object.defineProperty,kn=Object.defineProperties,Tn=Object.getOwnPropertyDescriptors,Be=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,jn=(Ee,ke,ln)=>ke in Ee?Ye(Ee,ke,{enumerable:!0,configurable:!0,writable:!0,value:ln}):Ee[ke]=ln,Wn=(Ee,ke)=>{for(var ln in ke||(ke={}))be.call(ke,ln)&&jn(Ee,ln,ke[ln]);if(Be)for(var ln of Be(ke))Ke.call(ke,ln)&&jn(Ee,ln,ke[ln]);return Ee},An=(Ee,ke)=>kn(Ee,Tn(ke)),oe=(Ee,ke)=>{var ln={};for(var Dt in Ee)be.call(Ee,Dt)&&ke.indexOf(Dt)<0&&(ln[Dt]=Ee[Dt]);if(Ee!=null&&Be)for(var Dt of Be(Ee))ke.indexOf(Dt)<0&&Ke.call(Ee,Dt)&&(ln[Dt]=Ee[Dt]);return ln},cn=(Ee,ke,ln)=>new Promise((Dt,wt)=>{var At=Mt=>{try{jt(ln.next(Mt))}catch(Ae){wt(Ae)}},Bt=Mt=>{try{jt(ln.throw(Mt))}catch(Ae){wt(Ae)}},jt=Mt=>Mt.done?Dt(Mt.value):Promise.resolve(Mt.value).then(At,Bt);jt((ln=ln.apply(Ee,ke)).next())});function wn(Ee){return/^\d+$/.test(Ee)?`${Ee}px`:Ee}function Fn(){}let mn=!1;const Dn={"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 rn(Ee=[]){let ke=Ee;if(Array.isArray(Ee)){for(let ln=0;ln{var ke=Ee,{width:ln="100%",height:Dt="100%",value:wt,language:At="javascript",style:Bt={},options:jt={},overrideServices:Mt={},theme:Ae="vs-dark",onEditBlur:En,isCopy:Rn=!1,onSave:Pn,autoHeight:$n=!1,forbidCopy:xi=!1,onChange:Fi=Fn,editorDidMount:Bi=Fn,onFocus:Ji=Fn,onBreakPoint:ro=Fn,breakPointValue:Eo=[],filename:Zo="educoder.txt",errorLine:Lo,errorContent:qn="",highlightLine:$t,openBreakPoint:tn=!1,placeholder:Jn=""}=ke,zt=oe(ke,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder"]);const Mn=(0,ot.useRef)(),le=(0,ot.useRef)({}),Ct=(0,ot.useRef)(),vn=(0,ot.useRef)(),Hn=(0,ot.useRef)([]),Qt=(0,ot.useRef)(!1),Te=(0,ot.useRef)(),Re=(0,ot.useRef)(),_e=(0,ot.useRef)(!1),[me,en]=(0,ot.useState)(!1);function te(){let he;return Mn.current&&(he=new Tt.Z(Pe=>{for(let fn of Pe)(fn.target.offsetHeight>0||fn.target.offsetWidth>0)&&le.current.instance.layout()}),he.observe(Mn.current)),he}function Yt(){Cn.ZP.warning({content:decodeURIComponent(re),key:"monaco-editor-tip"})}const Vt=()=>{let he=le.current.instance;if(wt!=null&&he&&me){const Pe=he.getModel();Pe&&wt!==Pe.getValue()&&(mn=!0,Pe.setValue(wt),he.layout(),mn=!1)}};(0,ot.useEffect)(()=>{const he=Fe.Z.subscribe("formatDocument",Pe=>{var fn;let Di=le.current.instance;(fn=Di==null?void 0:Di.getAction)==null||fn.call(Di,"editor.action.formatDocument").run()});return window.updateMonacoValue=Pe=>{Fi(Pe)},he},[]),(0,ot.useEffect)(()=>{var he;let Pe=le.current.instance;vn.current&&clearTimeout(vn.current),vn.current=setTimeout(()=>{Vt()},500),wt&&(wt!=null&&wt.length)&&((he=Pe==null?void 0:Pe.updateOptions)==null||he.call(Pe,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(wt.split(/\r\n|\r|\n/g).length))+3,5)}))},[wt,me,le.current]),(0,ot.useEffect)(()=>{if(Lo&&le.current&&le.current.instance){let Pe=le.current.instance;Pe.changeViewZones(function(fn){var Di=document.createElement("div");Di.style.padding="10px 20px",Di.style.width="calc(100% - 20px)",Di.className="my-error-line-wrp",Di.innerHTML=qn,fn.addZone({afterLineNumber:Lo||11,heightInLines:3,domNode:Di})});var he={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}};Pe.addOverlayWidget(he),Pe.revealPositionInCenter({lineNumber:20,column:1})}},[Lo,le.current,me]);const Ve=(he="",Pe)=>{if(!he||he.trim()==="")return!0;const Di=le.current.instance.getModel().getLineTokens(Pe);let oi=!1;for(let ii=0;ii<2;ii++)Di.getStandardTokenType(ii)===1&&(oi=!0);return oi};(0,ot.useEffect)(()=>{var he;const Pe=(he=le.current)==null?void 0:he.instance;if(Pe&&me&&xi){const fn=Pe.onDidBlurEditorWidget(()=>{_e.current=!1}),Di=Pe.onDidFocusEditorText(()=>{_e.current=!0});return()=>{fn.dispose(),Di.dispose()}}},[le.current,me,xi]),(0,ot.useEffect)(()=>{var he;if((he=le.current)!=null&&he.instance&&me&&tn){let Pe=le.current.instance,fn=Pe.getModel();if(!fn)return;(()=>{var io;let sn=[],Gn=[];const wi=fn.getAllDecorations();for(let Ci of wi)Ci.options.className==="highlighted-line"&&(sn.push((io=Ci==null?void 0:Ci.range)==null?void 0:io.startLineNumber),Gn.push(Ci==null?void 0:Ci.id));if($t===sn[0])return;fn.deltaDecorations(Gn,[]);const ji=fn.getLineCount();$t&&$t<=ji&&(Pe.deltaDecorations([],[{range:new ce.Range($t,1,$t,fn.getLineMaxColumn($t)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Pe.revealLineInCenter($t))})();const oi=(io=!1)=>{var sn;let Gn=[],wi=[];const ji=fn.getAllDecorations();for(let Ci of ji)Ci.options.linesDecorationsClassName==="breakpoints-select"&&(Gn.push((sn=Ci==null?void 0:Ci.range)==null?void 0:sn.startLineNumber),wi.push(Ci==null?void 0:Ci.id));if(io)return{lines:Gn,ids:wi};ro(Gn)},ii=io=>cn(void 0,null,function*(){let sn={range:new ce.Range(io,1,io,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield fn.deltaDecorations([],[sn]),oi()}),Bn=io=>cn(void 0,null,function*(){let sn=[];const Gn=Pe.getLineDecorations(io);for(let wi of Gn)wi.options.linesDecorationsClassName==="breakpoints-select"&&sn.push(wi.id);yield fn.deltaDecorations(sn,[]),oi()}),Kn=io=>{let sn=Pe.getLineDecorations(io);for(let Gn of sn)if(Gn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Xn.isEqual)(Eo,oi(!0).lines)){fn.deltaDecorations(oi(!0).ids,[]);const io=Eo.map(sn=>({range:new ce.Range(sn,1,sn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));fn.deltaDecorations([],io)}const ki=Pe.onDidChangeModelContent(io=>{let sn=Pe.getPosition();if(sn){let Gn=sn.lineNumber;clearTimeout(Re.current),Re.current=setTimeout(()=>{Ve(fn.getLineContent(Gn),Gn)?Bn(Gn):Kn(Gn)?(Bn(Gn),ii(Gn)):oi()},100)}}),bi=Pe.onMouseDown(io=>{var sn,Gn,wi;if(io.target.detail&&((wi=(Gn=(sn=io.target)==null?void 0:sn.element)==null?void 0:Gn.className)!=null&&wi.includes("line-numbers"))){let ji=io.target.position.lineNumber;if(Ve(fn.getLineContent(ji),ji))return;Kn(ji)?Bn(ji):ii(ji)}}),Hi=io=>{let sn={range:new ce.Range(io,1,io,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Hn.current=Pe.deltaDecorations(Hn.current,[sn])},yn=()=>{Hn.current=Pe.deltaDecorations(Hn.current,[])},uo=Pe.onMouseMove(io=>{var sn,Gn,wi;if(yn(),io.target.detail&&((wi=(Gn=(sn=io.target)==null?void 0:sn.element)==null?void 0:Gn.className)!=null&&wi.includes("line-numbers"))){let ji=io.target.position.lineNumber;if(Ve(fn.getLineContent(ji),ji))return;Hi(ji)}}),Qi=Pe.onMouseLeave(()=>{yn()});return()=>{ki.dispose(),bi.dispose(),uo.dispose(),Qi.dispose()}}},[le.current,me,Eo,$t,tn,At]),(0,ot.useEffect)(()=>{var he;(he=le.current)!=null&&he.instance&&tn&&le.current.instance.setPosition({lineNumber:0,column:0})},[$t]);function an(){let he=le.current.instance;if(he){const Pe=he.getSelection(),fn=le.current.pastePos||{},Di=new ce.Range(fn.startLineNumber||Pe.endLineNumber,fn.startColumn||Pe.endColumn,fn.endLineNumber||Pe.endLineNumber,fn.endColumn||Pe.endColumn);setTimeout(()=>{he.executeEdits("",[{range:Di,text:""}])},300)}}function pn(he){(window.navigator.platform.match("Mac")?he.metaKey:he.ctrlKey)&&he.keyCode==83&&(he.preventDefault(),Pn())}const We=()=>{if($n&&le.current.instance){const he=le.current.instance.getContentHeight();De(he{if(!_e.current)return;const{keyCode:Pe,ctrlKey:fn,metaKey:Di,target:oi,type:ii}=he;return(ii==="paste"||(Pe===67||Pe===86)&&(Di||fn))&&oi.nodeName==="TEXTAREA"&&(Yt(),he.preventDefault()),!1};function gn(he,Pe){var fn=window.URL||window.webkitURL||window,Di=new Blob([Pe]),oi=document.createElementNS("http://www.w3.org/1999/xhtml","a");oi.href=fn.createObjectURL(Di),oi.download=he,Sn(oi)}(0,ot.useEffect)(()=>{We()},[We]),(0,ot.useEffect)(()=>{Mn.current&&!me&&Promise.all([St.e(8909),St.e(3267)]).then(St.bind(St,71448)).then(he=>{try{ce=he,le.current.instance=ce.editor.create(Mn.current,{value:wt,language:rn(At),theme:Ae,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Mt);const Pe=le.current.instance;let oi=[...Je.BH._menuItems].find(ki=>ki[0]._debugName=="EditorContext")[1],ii=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Bn=(ki,bi)=>{var Hi,yn;let uo=ki._first;do bi.includes((yn=(Hi=uo.element)==null?void 0:Hi.command)==null?void 0:yn.id)&&ki._remove(uo);while(uo=uo.next)};if(Bi(Pe,ce),setTimeout(()=>{We(),le.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{gn(Zo||"educoder.txt",Pe.getValue())}})},500),le.current.subscription=Pe.onDidChangeModelContent(ki=>{Qt.current?clearTimeout(Te.current):(We(),Fi(Pe.getValue(),ki)),Te.current=setTimeout(()=>{Qt.current=!1},500)}),window.Monaco||ee(ce,rn(At)),xi&&(Bn(oi,ii),Mn.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",ai),window.removeEventListener("paste",ai),window.addEventListener("keydown",ai),window.addEventListener("paste",ai)),window.Monaco=ce,En&&Pe.onDidBlurEditorWidget(()=>{En(Pe.getValue())}),Ji&&Pe.onDidFocusEditorText(()=>{Ji(Pe.getValue())}),xi)try{Pe.onDidPaste(ki=>{const bi=Pe.getSelection(),Hi=le.current.pastePos||{},yn=new ce.Range(Hi.startLineNumber||bi.endLineNumber,Hi.startColumn||bi.endColumn,Hi.endLineNumber||bi.endLineNumber,Hi.endColumn||bi.endColumn);Pe.executeEdits("",[{range:ki.range,text:""}])})}catch(ki){}let Kn=te();return Jn&&typeof Jn=="string"&&new je(Jn,Pe,ce),en(!0),()=>{const ki=le.current.instance;ki.dispose();const bi=ki.getModel();bi&&bi.dispose(),le.current.subscription&&le.current.subscription.dispose(),Kn.unobserve(Mn.current)}}catch(Pe){}})},[]),(0,ot.useEffect)(()=>{if(le.current.instance&&me)return document.addEventListener("keydown",pn,!1),()=>{document.removeEventListener("keydown",pn)}},[Pn,me]),(0,ot.useEffect)(()=>{let he=le.current.instance;if(he&&me){let Pe=rn(At);ce.editor.setModelLanguage(he.getModel(),Pe)}},[At,me]),(0,ot.useEffect)(()=>{le.current.instance&&me&&ce.editor.setTheme(Ae)},[Ae,me]),(0,ot.useEffect)(()=>{let he=le.current.instance;Ct.current=jt,he&&me&&(he.updateOptions(Wn({},jt)),setTimeout(()=>{he.getModel().updateOptions(Wn({},jt))},200))},[JSON.stringify(jt),me]),(0,ot.useEffect)(()=>{let he=le.current.instance;he&&me&&he.layout()},[ln,Dt,me]);const[Qe,Xt]=(0,ot.useState)(wn(ln)),[dn,De]=(0,ot.useState)(wn(Dt)),Xe=An(Wn({},Bt),{width:Qe,height:dn,position:"relative"});return ot.createElement("div",{className:"my-monaco-editor",ref:Mn,style:Xe},Rn&&ot.createElement(Zt.CopyToClipboard,{text:wt,onCopy:()=>Cn.ZP.success("\u590D\u5236\u6210\u529F")},ot.createElement(hn.Z,{title:"\u590D\u5236\u4EE3\u7801"},ot.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},ot.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function we({width:Ee="100%",height:ke="100%",original:ln,modified:Dt,language:wt,options:At={}}){const Bt=(0,ot.useRef)(),[jt,Mt]=(0,ot.useState)(null);function Ae($n){let xi;return Bt.current&&(xi=new Tt.Z(Fi=>{for(let Bi of Fi)(Bi.target.offsetHeight>0||Bi.target.offsetWidth>0)&&$n.layout()}),xi.observe(Bt.current)),xi}(0,ot.useEffect)(()=>(Bt.current&&Promise.all([St.e(8909),St.e(9404)]).then(St.bind(St,2550)).then($n=>{ce=$n;const xi=ce.editor.createDiffEditor(Bt.current,An(Wn({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},At),{wordWrap:!0}));Mt(xi);let Fi=Ae(xi);return()=>{xi.dispose();const Bi=xi.getModel();Bi&&Bi.dispose(),Fi.unobserve(Bt.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,ot.useEffect)(()=>{jt&&jt.setModel({original:ce.editor.createModel(ln,wt),modified:ce.editor.createModel(Dt,wt)})},[ln,Dt,wt,jt]);const En=wn(Ee),Rn=wn(ke),Pn={width:En,height:Rn};return ot.createElement("div",{className:"my-diff-editor",ref:Bt,style:Pn})}},85057:function(un,Yn,St){"use strict";St.d(Yn,{jL:function(){return fe},w9:function(){return be},QD:function(){return Fi},cQ:function(){return Zt},op:function(){return Ae},O5:function(){return _e},_b:function(){return Lo},t7:function(){return ut},Gi:function(){return cn},YG:function(){return An},qp:function(){return xe},vr:function(){return ro},qE:function(){return Pn},Je:function(){return Pt},wb:function(){return Je},cq:function(){return ce},tp:function(){return Ft}});var ot=St(59301),Tt={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},ae="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc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IvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",fe=({dataSource:me=[],img:en,imgWidth:te=346,title:Yt,sunTitle:Vt,bannerExtraContent:Ve})=>ot.createElement("div",{className:Tt.banner},ot.createElement("div",{className:Tt.content},ot.createElement("aside",null,ot.createElement("p",null,ot.createElement("b",null,Yt),ot.createElement("span",null,Vt)),me.length>0&&ot.createElement("div",{className:Tt.btns},me.map((an,pn)=>ot.createElement("div",{key:pn,onClick:an.click},an.name,an.sign?ot.createElement("img",{src:ae,width:39}):null))),Ve),en&&ot.createElement("img",{style:{marginTop:33,marginRight:38},src:en,width:te}))),ve={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"},qt=St(92310),Oe=St.n(qt),de=St(89392),xe=({dataSource:me=[],value:en,onChange:te,onTitleChange:Yt,className:Vt,title:Ve,titleWidth:an=41,style:pn={},fontColor:We="#6A7283",showCount:Sn})=>{const[ai,gn]=(0,ot.useState)(0),[Qe,Xt]=(0,ot.useState)(!1),dn=(0,ot.useRef)(null),De=(0,ot.useRef)(null);return(0,ot.useEffect)(()=>{var Xe;me.length!==0&&(((Xe=dn==null?void 0:dn.current)==null?void 0:Xe.clientHeight)>97?gn(1):gn(0)),me.length===0&&gn(0),Xt(!1)},[me]),ot.createElement("div",{className:Oe()(ve.row,Vt),style:pn},ot.createElement("div",{onClick:(0,de.throttle)(()=>Yt==null?void 0:Yt(),2e3),style:{width:an,marginTop:Qe?12:4},className:`${ve.title} ${Yt?"current":""}`},Ve),ot.createElement("div",{className:Qe?`${ve.tagsWrap} ${ve.tagsBorderWrap}`:ve.tagsWrap},ot.createElement("div",{className:ve.bar,ref:De,style:ai>0?{height:ai===1?97:"auto",overflow:ai===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},ot.createElement("div",{className:ve.tag,ref:dn},me==null?void 0:me.map(Xe=>ot.createElement("span",{onClick:()=>te(Xe.id),key:Xe.id,style:{color:We},className:en===Xe.id?ve.active:""},ot.createElement("span",{title:Xe.name,className:ve.name},Xe.name),!!Sn&&ot.createElement("span",{className:ve.num},Xe.count))))),!!ai&&ot.createElement(ot.Fragment,null,ai===1?ot.createElement("div",{onClick:()=>{var Xe;gn(2),((Xe=dn==null?void 0:dn.current)==null?void 0:Xe.clientHeight)>245?Xt(!0):Xt(!1)},className:ve.action},"\u5C55\u5F00",ot.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):ot.createElement("div",{onClick:()=>{De.current.scrollTop=0,gn(1),Xt(!1)},className:ve.action},"\u6536\u8D77",ot.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},ze={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"},Ft=({dataSource:me=[],value:en,onChange:te,className:Yt,style:Vt={}})=>ot.createElement("div",{style:Vt,className:Oe()(ze.tabs,Yt)},me.map(Ve=>ot.createElement("span",{onClick:()=>te(Ve.id),className:en===Ve.id?ze.active:"",key:Ve.id},Ve.name))),nt={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"},et=St(92832),ut=({dataSource:me=[],value:en="",onChange:te,onInputChange:Yt=()=>{},className:Vt,style:Ve={},placeholder:an,allowClear:pn=!1})=>{var We;const[Sn,ai]=(0,ot.useState)(""),[gn,Qe]=(0,ot.useState)("");(0,ot.useEffect)(()=>{var De;let Xe=en;(De=JSON.stringify(en))!=null&&De.includes("{")&&(ai(en.id),Xe=en.value||"");try{Qe(decodeURIComponent(Xe||""))}catch(he){Qe(decodeURIComponent(Xe||""))}},[en]);const Xt=()=>{te(encodeURIComponent(gn),Sn||null)},dn=De=>{De!==Sn&&(ai(De),te(encodeURIComponent(gn),De))};return ot.createElement("div",{className:Oe()(nt.input,Vt),style:Ve},!!me.length&&ot.createElement("div",{className:nt.dropdown},ot.createElement("div",{className:nt.text},(We=me.find(De=>De.id===Sn))==null?void 0:We.name,ot.createElement("i",{className:"iconfont icon-zhankai4"}),ot.createElement("b",{className:nt.b1}),ot.createElement("b",{className:nt.b2})),ot.createElement("div",{className:nt.menu},me.map((De,Xe)=>ot.createElement("div",{key:Xe,onClick:()=>dn(De.id)},De.name)))),ot.createElement(et.default,{onPressEnter:Xt,value:gn,onChange:De=>{Qe(De.target.value),Yt(encodeURIComponent(De.target.value),Sn||null)},bordered:!1,placeholder:an}),ot.createElement("i",{onClick:Xt,className:"iconfont icon-sousuo9 font14 pl10 current"}))},pt={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"},Pt=({value:me,onChange:en,className:te,total:Yt,pageSize:Vt,style:Ve={}})=>{const an=me<2,pn=me>=Math.ceil(Yt/Vt);return Yt<=Vt?ot.createElement(ot.Fragment,null):ot.createElement("div",{className:Oe()(pt.quickPager,te),style:Ve},ot.createElement("div",{onClick:()=>{an||en(me-1,"prev")},className:an?pt.disabled:""},"\u4E0A\u4E00\u9875"),ot.createElement("div",{onClick:()=>{pn||en(me+1,"next")},className:pn?pt.disabled:""},"\u4E0B\u4E00\u9875"))},bt={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"},Rt=St(71418),Ut=St(6848),ee=St(13570),re=St(3294),ie=St(955),Me=St(96908),pe=St(57177),Le=St(81378),ge=St(8797),Je=({className:me,dataSource:en=[],col:te=4,right:Yt,bottom:Vt=23,precision:Ve=0,wrapWidth:an=1200,trackEventItems:pn,loading:We})=>{const Sn=Math.floor((an-(te-1)*Yt)/te);return ot.createElement(Rt.Z,{spinning:We},ot.createElement("div",{className:Oe()(bt.list,me)},!!en.length&&en.map((ai,gn)=>{const{name:Qe,id:Xt,identifier:dn,power:De,cover_image_id:Xe,pic:he}=ai;return ot.createElement("div",{className:bt.wrap,key:Xt,style:{width:Sn,marginRight:(1+gn)%te===0?0:Yt+Ve,marginBottom:Vt}},ot.createElement("a",{target:"_blank",href:`/shixuns/${dn}/challenges`,className:bt.li,onClick:Pe=>{Pe.preventDefault(),pn&&(0,ie.L9)([pn]),De&&(0,ie.xg)(`/shixuns/${dn}/challenges`)}},ot.createElement("div",{className:bt.img},ot.createElement("img",{className:bt.cover,src:`${he}`}),ai.is_jupyter&&ot.createElement("img",{className:bt.sign,src:Me}),ai.is_jupyter_lab&&ot.createElement("img",{className:bt.sign,src:pe}),ai.is_unity_3d&&ot.createElement("img",{className:bt.sign,src:Le})),ot.createElement("div",{className:bt.name},ot.createElement(Ut.Z,{title:Qe||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ot.createElement("span",{className:bt.e},Qe||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ot.createElement("div",{className:bt.tags},ot.createElement(Ut.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},ot.createElement("span",null,ot.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),ot.createElement("span",null,ai.challenges_count))),!!ai.myshixuns_count&&ot.createElement(Ut.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ot.createElement("span",null,ot.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),ot.createElement("span",null,ai.myshixuns_count))),ot.createElement(Ut.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},ot.createElement("span",null,ot.createElement("span",null,ai.level))),ot.createElement("div",{className:bt.rate},ot.createElement(ee.Z,{allowHalf:!0,disabled:!0,defaultValue:ai.score_info}),ot.createElement("span",null,"\xA0",ai.score_info?`${ai.score_info}\u5206`:"5\u5206")))),!De&&ot.createElement("div",{className:bt.lockWrap},ot.createElement("img",{src:`${re.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ot.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!en.length&&ot.createElement(ge.Z,null)))},Cn={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"},hn=St(24065),Xn=St(59301),Zt=({className:me,dataSource:en=[],col:te=4,right:Yt,bottom:Vt=23,precision:Ve=0,wrapWidth:an=1200,trackEventItems:pn,loading:We,onRemove:Sn=()=>{},isCurrent:ai=!0,showAlias:gn=!1})=>{const Qe=Math.floor((an-(te-1)*Yt)/te),Xt=[{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 Xn.createElement(Rt.Z,{spinning:We},Xn.createElement("div",{className:Oe()(Cn.list,me)},!!(en!=null&&en.length)&&(en==null?void 0:en.map((dn,De)=>{var Xe;const{name:he,id:Pe,identifier:fn,featured:Di,school_name:oi,image_url:ii,excellent:Bn,is_plan:Kn}=dn;return Xn.createElement("div",{key:Pe,className:Cn.wrap,style:{width:Qe,marginRight:(1+De)%te===0?0:Yt+Ve,marginBottom:Vt}},Xn.createElement("a",{className:Cn.li,onClick:ki=>{ki.preventDefault(),ki.stopPropagation(),pn&&(0,ie.L9)([pn]),(0,ie.xg)(`/paths/${fn}`)}},Xn.createElement("div",{className:Cn.img},Xn.createElement("img",{className:Cn.cover,src:`${ii}`}),ai&&(0,hn.bg)()&&(dn==null?void 0:dn.studying)&&Xn.createElement("div",{className:`${Cn.movebq} user-path-items`,onClick:ki=>{ki.stopPropagation(),Sn(dn)}},Xn.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Xn.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Xe=dn==null?void 0:dn.subject_tags)==null?void 0:Xe.map((ki,bi)=>{var Hi,yn;if(bi===0){const Qi=(Hi=Xt.find(io=>io.name==ki))==null?void 0:Hi.swimg;return Xn.createElement("img",{className:Cn.sign,src:Qi,style:{left:"-4px"}})}const uo=(yn=Xt.find(Qi=>Qi.name==ki))==null?void 0:yn.ptimg;return Xn.createElement("img",{className:Cn.sign,src:uo,style:{left:`${48+52*(bi-1)+2*bi}px`}})}),Xn.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(dn==null?void 0:dn.excellent)&&Xn.createElement("div",{className:Cn.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Xn.createElement("div",{className:Cn.name},Xn.createElement(Ut.Z,{title:gn&&(dn!=null&&dn.excellent_alias_name)?Xn.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${he}`,Xn.createElement("br",null),Xn.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${dn==null?void 0:dn.excellent_alias_name}`)):he},Xn.createElement("span",{className:Cn.e},gn&&(dn==null?void 0:dn.excellent_alias_name)||he))),Xn.createElement(Ut.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${oi}`},Xn.createElement("div",{className:Cn.unit},Xn.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),oi)),Xn.createElement("div",{className:Cn.tags},Xn.createElement("div",null,Xn.createElement(Ut.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Xn.createElement("span",null,Xn.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Xn.createElement("span",null,dn.stages_count))),Xn.createElement(Ut.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Xn.createElement("span",null,Xn.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Xn.createElement("span",null,dn.members_count)))))))})),!en.length&&Xn.createElement(ge.Z,null)))},Ye={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"},kn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3Az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wnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Tn=St(59301),be=({className:me,dataSource:en=[],col:te=4,right:Yt,bottom:Vt=23,precision:Ve=0,wrapWidth:an=1200,trackEventItems:pn,loading:We,handleVery:Sn=()=>!0})=>{const ai=Math.floor((an-(te-1)*Yt)/te);return Tn.createElement(Rt.Z,{spinning:We},Tn.createElement("div",{className:Oe()(Ye.list,me)},!!en.length&&en.map((gn,Qe)=>{const{subject_identifier:Xt,id:dn,identifier:De,power:Xe}=gn,he=gn.is_public!=0&&gn.is_public;return Tn.createElement("div",{className:Ye.wrap,key:dn,style:{width:ai,marginRight:(1+Qe)%te===0?0:Yt+Ve,marginBottom:Vt}},Tn.createElement("a",{className:Ye.li,onClick:Pe=>{Pe.preventDefault(),Sn(gn==null?void 0:gn.first_category_url)&&(pn&&(0,ie.L9)([pn]),(0,ie.xg)(gn.first_category_url))}},Tn.createElement("div",{className:Ye.top},Tn.createElement(Ut.Z,{title:gn.name},Tn.createElement("div",{className:Ye.name},gn.name)),Tn.createElement("img",{className:Ye.img,src:re.Z.IMG_SERVER+"/images/"+gn.avatar_url}),Tn.createElement("div",{className:Ye.text,title:gn.creator},gn.creator),Xt&&Tn.createElement("div",{className:Ye.btns},Tn.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Tn.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),he&&Tn.createElement("div",{className:Ye.sign},"\u516C\u5F00")),Tn.createElement("div",{className:Ye.bottom},gn.visits>0&&Tn.createElement(Ut.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Tn.createElement("span",null,Tn.createElement("i",{className:"iconfont icon-liulanyan"}),Tn.createElement("span",null,gn.visits))),gn.course_members_count>0&&Tn.createElement(Ut.Z,{title:"\u6210\u5458",placement:"bottom"},Tn.createElement("span",null,Tn.createElement("i",{className:"iconfont icon-chengyuan"}),gn.course_members_count)),gn.tasks_count>0&&Tn.createElement(Ut.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Tn.createElement("span",null,Tn.createElement("i",{className:"iconfont icon-zuoye"}),gn.tasks_count)),gn.is_end?Tn.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Tn.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!gn.is_accessible&&Tn.createElement("div",{className:Ye.lockWrap},Tn.createElement("img",{src:`${re.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Tn.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!en.length&&Tn.createElement(ge.Z,null)))},Ke={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"},jn=St(89070),An=({dataSource:me=[],value:en,onChange:te,className:Yt,style:Vt={},tabBarExtraContent:Ve})=>ot.createElement("div",{className:Oe()(Ke.tabs,Yt),style:Vt},ot.createElement("div",{className:Ke.tabsWrap},me.map((an,pn)=>!(an!=null&&an.hide)&&ot.createElement("aside",{className:Ke.tab,onClick:()=>{te(an.id),an.link&&jn.history.push(an.link)},key:pn},ot.createElement("div",{className:en===an.id?Ke.active:""},an.name),(an==null?void 0:an.resetCount)==null&&(an==null?void 0:an.total)!==void 0&&ot.createElement("span",null,"\uFF08",an==null?void 0:an.total,"\uFF09"),(an==null?void 0:an.resetCount)!==void 0&&(an==null?void 0:an.total)!==void 0&&ot.createElement(Ut.Z,{title:(an==null?void 0:an.tip)!=null?an==null?void 0:an.tip:""},ot.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ot.createElement("span",{style:{color:"#000"}},an==null?void 0:an.resetCount),"/",ot.createElement("span",null,an==null?void 0:an.total),"\uFF09"))))),ot.createElement("div",{className:Ke.tabBar},Ve)),cn=({className:me,style:en={},children:te})=>ot.createElement("div",{className:Oe()(me),style:en},te),wn={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"},Fn=St(38854),mn=St(20834);const Dn=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var ce=({sortValue:me,dropValue:en,className:te,onSort:Yt,onDrop:Vt,dataSource:Ve=Dn})=>{var an;return ot.createElement("div",{className:Oe()(wn.orderWrap,te)},ot.createElement(Fn.Z,{dropdownRender:()=>ot.createElement(mn.default,null,Ve.map((pn,We)=>ot.createElement(mn.default.Item,{key:We,onClick:()=>Vt(pn.id)},pn.name)))},ot.createElement("span",{className:wn.orderTextWrap},(an=Ve.find(pn=>en===pn.id))==null?void 0:an.name)),ot.createElement("span",{className:wn.orderIconWrap},ot.createElement("span",{className:wn.orderAsc},ot.createElement("i",{className:me==="asc"?`iconfont icon-sanjiaoxing-up font12 ${wn.cursorPointer} ${wn.active}`:`iconfont icon-sanjiaoxing-up font12 ${wn.cursorPointer}`,onClick:()=>Yt(me==="asc"?"desc":"asc")})),ot.createElement("span",{className:wn.orderDesc},ot.createElement("i",{className:me==="desc"?`iconfont icon-sanjiaoxing-down font12 ${wn.cursorPointer} ${wn.active}`:`iconfont icon-sanjiaoxing-down font12 ${wn.cursorPointer}`,onClick:()=>Yt(me==="asc"?"desc":"asc")}))))},Kt={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"},we=St(3113),Ee=Object.defineProperty,ke=Object.getOwnPropertySymbols,ln=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,wt=(me,en,te)=>en in me?Ee(me,en,{enumerable:!0,configurable:!0,writable:!0,value:te}):me[en]=te,At=(me,en)=>{for(var te in en||(en={}))ln.call(en,te)&&wt(me,te,en[te]);if(ke)for(var te of ke(en))Dt.call(en,te)&&wt(me,te,en[te]);return me},Bt=(me,en)=>{var te={};for(var Yt in me)ln.call(me,Yt)&&en.indexOf(Yt)<0&&(te[Yt]=me[Yt]);if(me!=null&&ke)for(var Yt of ke(me))en.indexOf(Yt)<0&&Dt.call(me,Yt)&&(te[Yt]=me[Yt]);return te},jt=(me,en,te)=>new Promise((Yt,Vt)=>{var Ve=We=>{try{pn(te.next(We))}catch(Sn){Vt(Sn)}},an=We=>{try{pn(te.throw(We))}catch(Sn){Vt(Sn)}},pn=We=>We.done?Yt(We.value):Promise.resolve(We.value).then(Ve,an);pn((te=te.apply(me,en)).next())}),Ae=me=>{var en=me,{className:te,style:Yt,children:Vt,loading:Ve=!1,openLoading:an,onClick:pn=()=>{},size:We="middle",shape:Sn="round"}=en,ai=Bt(en,["className","style","children","loading","openLoading","onClick","size","shape"]);const[gn,Qe]=(0,ot.useState)(!1);return ot.createElement(we.ZP,At({onClick:(0,de.throttle)(Xt=>jt(void 0,null,function*(){an&&Qe(!0);try{yield pn(Xt)}catch(dn){console.log("error",dn)}an&&Qe(!1)}),2e3,{leading:!0,trailing:!1}),className:Oe()(Kt.btn,Kt[`${We}-${Sn}`],te),style:Yt,size:We,shape:Sn,loading:gn||Ve},ai),Vt)},En={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"},Pn=({className:me,style:en,children:te=null,onClick:Yt,title:Vt})=>ot.createElement("div",{className:Oe()(En.head,me),style:en},ot.createElement("span",{className:"primary-hover",onClick:Yt},ot.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),ot.createElement("b",{title:Vt},Vt),ot.createElement("div",{className:En.node},te)),$n={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"},Fi=({confirmShow:me=!0,confirmTitle:en,confirmClick:te,cancelShow:Yt=!0,cancelTitle:Vt,cancelClick:Ve,className:an,style:pn,confirmLoading:We=!1})=>ot.createElement("div",{className:Oe()($n.btns,an),style:pn},me&&ot.createElement(we.ZP,{loading:We,onClick:te,type:"primary",className:$n.confirm},en),Yt&&ot.createElement(we.ZP,{onClick:Ve,className:$n.cancel},Vt)),Bi={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"},ro=({className:me,style:en={},LeftContent:te,children:Yt,RightContent:Vt})=>ot.createElement("div",{className:Oe()(Bi.fixedBottom,me),style:en},ot.createElement("div",{className:Bi.wrap},ot.createElement("div",{className:Bi.left},te),ot.createElement("div",{className:Bi.center},Yt),ot.createElement("div",{className:Bi.right},Vt))),Eo={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"},Lo=({className:me,style:en={},dataSource:te=[]})=>ot.createElement("div",{className:Oe()(Eo.crumbs,me),style:en},te.map((Yt,Vt)=>Vtjn.history.push(Yt.path)},Yt.name):ot.createElement("span",null,Yt.name),ot.createElement("span",null,"\xA0",">","\xA0")):ot.createElement("span",{key:Vt,style:{color:"#5F6368"}},Yt.name))),qn=St(31797),$t=Object.defineProperty,tn=Object.defineProperties,Jn=Object.getOwnPropertyDescriptors,zt=Object.getOwnPropertySymbols,Mn=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,Ct=(me,en,te)=>en in me?$t(me,en,{enumerable:!0,configurable:!0,writable:!0,value:te}):me[en]=te,vn=(me,en)=>{for(var te in en||(en={}))Mn.call(en,te)&&Ct(me,te,en[te]);if(zt)for(var te of zt(en))le.call(en,te)&&Ct(me,te,en[te]);return me},Hn=(me,en)=>tn(me,Jn(en)),Qt=(me,en)=>{var te={};for(var Yt in me)Mn.call(me,Yt)&&en.indexOf(Yt)<0&&(te[Yt]=me[Yt]);if(me!=null&&zt)for(var Yt of zt(me))en.indexOf(Yt)<0&&le.call(me,Yt)&&(te[Yt]=me[Yt]);return te};const{Countdown:Te}=qn.default;var _e=me=>{var en=me,{onChange:te}=en,Yt=Qt(en,["onChange"]);const[Vt,Ve]=(0,ot.useState)(null);(0,ot.useEffect)(()=>{typeof Vt=="number"&&Vt>=0&&te(Vt)},[Vt]);const an=pn=>{const We=Math.floor(pn/1e3);Ve(We)};return ot.createElement(Te,Hn(vn({},Yt),{onChange:an}))}},58856:function(un,Yn,St){"use strict";St.d(Yn,{Z:function(){return Tt}});var ot=St(59301);function Tt(ae,$e){const fe=(0,ot.useRef)();(0,ot.useEffect)(()=>{fe.current=ae}),(0,ot.useEffect)(()=>{function ve(){fe.current()}if($e!==null){let qt=setInterval(ve,$e);return()=>clearInterval(qt)}},[$e])}},29558:function(un,Yn,St){"use strict";St.r(Yn),St.d(Yn,{default:function(){return xd}});var ot=St(59301),Tt=St(92736),ae=St(81863),$e=St(61682),fe=St(89070),ve=St(61186),qt=St.n(ve),Oe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKTW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lwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKPD94cGFja2V0IGVuZD0idyI/Pu6JurQAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAABRFJREFUeNpE1OtvW/Udx/H3ufj4+Ph2nDh2vLgrTSPaFNqGtd0Gy9LRTVymNoNM6ihCaE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iQFkeO7nOjsGJpmbBFybsGNtXQFVs729k8zjz/uUFi7yy+EoY+NxJo7bXJK38MCmLyjEKnSO9NGuOazZaPDrB65x89Q1bF9Hz2qoprYRuPUcvOYnj1ZP/+6wM9/Gq/hQmmH9Q0NE8zoEVYKqSnPBIb2uC9Z2Q6nC9NuXcZJZEv0JYr0G6YF9O7XM9z+QhBAAdFr/fWzp/IHXAtdJVz6cR40LencOEiw5+HYL2dDRu+JIWoTqqSk6gUp6+3p8l2p6w8gjcTM1Lmn33TrZd2ZwFp2yOx9z9HyYzu8aIKi3CKwGGBqKZqLFoL3cpFWqoa/tRi/m8ZZt3LIlYmuaKKkUsS9rI9pXUfjohdzXkr2RTAGvHhIGKmGg4C5aIELa1TrNyUUkJQKShHujQiQmk/92IasZ1s9Ch9Uta0qKaPeOhyw7/ZpdKrU0ZZlUrkNEstEkH8VbRjgOyY1ZUgMpZK2JmtaQMr3XO+pdv1GN23+kaIus1kb4SBHVblTjTzsX8y859cUHPX9251c29WwKLSmhm3KXGkti3eB6rMe01dzI2aWphXFnpnaib2culBQFEbgA/H8ALiI3EysggNoAAAAASUVORK5CYII=",de={flex_box_center:"flex_box_center___DajON",flex_space_between:"flex_space_between___tvLDY",flex_box_vertical_center:"flex_box_vertical_center___PvYv9",flex_box_center_end:"flex_box_center_end___F4Cig",flex_box_column:"flex_box_column___u9A0o",footer:"footer___k7tsL",fastLink:"fastLink___WjVYd",cooperation:"cooperation___Owpto",copyright:"copyright___UL6n9"},xe=({user:Ne,globalSetting:Ze})=>{var qe,ci,Xi,Zi,wo,$i;return ot.createElement("div",{className:de.footer,style:{height:(qe=Ze==null?void 0:Ze.setting)!=null&&qe.main_site?"":"80px",lineHeight:(ci=Ze==null?void 0:Ze.setting)!=null&&ci.main_site?"":"80px"}},((Xi=Ze==null?void 0:Ze.setting)==null?void 0:Xi.main_site)&&ot.createElement("aside",{className:de.fastLink},ot.createElement("a",{target:"_blank",href:"/"},"\u7F51\u7AD9\u9996\u9875"),!((Zi=Ze==null?void 0:Ze.setting)!=null&&Zi.is_local)&&ot.createElement("a",{target:"_blank",href:"/help/about_us"},"\u5173\u4E8E\u6211\u4EEC"),ot.createElement("a",{target:"_blank",href:"/help/contact_us"},"\u8054\u7CFB\u6211\u4EEC"),ot.createElement("a",{target:"_blank",href:"/help/cooperatives"},"\u5408\u4F5C\u4F19\u4F34"),ot.createElement("a",{target:"_blank",href:"/help/agreement"},"\u670D\u52A1\u534F\u8BAE"),ot.createElement("a",{target:"_blank",href:"/help/help_center"},"\u5E2E\u52A9\u4E2D\u5FC3"),ot.createElement("a",{target:"_blank",href:"/help/feedback"},"\u610F\u89C1\u53CD\u9988")),(wo=Ze.setting)!=null&&wo.footer?ot.createElement("div",{dangerouslySetInnerHTML:{__html:($i=Ze.setting)==null?void 0:$i.footer}}):ot.createElement("div",null,ot.createElement("p",{className:"footer_con-p inline lineh-30 font-14"},ot.createElement("span",{className:"font-18 fl"},"\xA9"),"\xA0",qt()().year(),"\xA0EduCoder",ot.createElement("a",{style:{color:"#888"},target:"_blank",href:"http://beian.miit.gov.cn/",className:"ml15 mr15"},"\u6E58ICP\u590717009477\u53F7"),ot.createElement("a",{style:{color:"#888"},target:"_blank",href:"http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=43019002000962",className:"mr15"},ot.createElement("img",{className:"vertical4",src:Oe}),"\u6E58\u516C\u7F51\u5B89\u590743019002000962\u53F7"),ot.createElement("a",{href:"https://team.trustie.net",style:{color:"#888"},target:"_blank"},"Trustie"),"\xA0\xA0\xA0&\xA0\xA0\xA0IntelliDE inside. ",ot.createElement("span",{className:"mr15"},"\u7248\u6743\u6240\u6709 \u6E56\u5357\u667A\u64CE\u79D1\u6280\u6709\u9650\u516C\u53F8"))))},ze={flex_box_center:"flex_box_center___mmTa9",flex_space_between:"flex_space_between___jMnlY",flex_box_vertical_center:"flex_box_vertical_center___Nzd52",flex_box_center_end:"flex_box_center_end___rVNra",flex_box_column:"flex_box_column___cg5bF",newFooter:"newFooter___XUH_2"},He=St(3294),Ft=St(43418),nt=St(955),et=St(85149),ut=({user:Ne,globalSetting:Ze})=>{var qe,ci,Xi;const[Zi,wo]=(0,ot.useState)(!1);(0,ot.useEffect)(()=>(window.addEventListener("click",Gi),()=>{window.removeEventListener("click",Gi)}),[]);const $i=()=>{if(function(){return/macintosh|mac os x/i.test(navigator.userAgent)}()){wo(!0);return}(0,nt.xg)("//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd")},li=(bo,Qo)=>{if(bo.className===Qo)return bo;for(let Vo=0,Fo=bo;Fo=Fo.parentNode;Vo++){if(Fo.className===Qo)return Fo;if(Fo==document.documentElement)return!1}},Gi=bo=>{var Qo,Vo,Fo;bo!=null&&bo.target&&(((Qo=bo==null?void 0:bo.target)==null?void 0:Qo.innerText)==="\u5934\u6B4C\u6559\u5E08\u4EA4\u6D41\u793E\u533A"||((Fo=(Vo=bo==null?void 0:bo.target)==null?void 0:Vo.nextElementSibling)==null?void 0:Fo.innerText)==="\u5934\u6B4C\u6559\u5E08\u4EA4\u6D41\u793E\u533A")&&li(bo.target,"module-introduce")&&$i()};return ot.createElement(ot.Fragment,null,ot.createElement(Ft.default,{centered:!0,destroyOnClose:!0,open:Zi,title:"\u5934\u6B4C\u6559\u5E08\u4EA4\u6D41\u793E\u533A",width:"500px",footer:null,onCancel:()=>wo(!1)},ot.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},ot.createElement("p",null,"\u626B\u7801\u6216\u641C\u7D22\u52A0\u5165\u5934\u6B4C\u6559\u5E08\u4EA4\u6D41QQ\u7FA4\uFF1A",(qe=Ze==null?void 0:Ze.setting)==null?void 0:qe.homepage_tea_qq_number," "),ot.createElement("img",{src:`${He.Z.IMG_SERVER}/${(ci=Ze==null?void 0:Ze.setting)==null?void 0:ci.homepage_tea_qq_qrcode_url}`,width:200,height:200}))),ot.createElement("div",{className:ze.newFooter,dangerouslySetInnerHTML:{__html:(0,et.z)((Xi=Ze.setting)==null?void 0:Xi.footer,!0)}}))};const pt=({user:Ne,globalSetting:Ze,loading:qe,dispatch:ci})=>{var Xi,Zi;return Ze.showFooter&&Ze.showHeaderFooter?ot.createElement("section",{id:"footer"},(Xi=Ze==null?void 0:Ze.setting)!=null&&Xi.main_site&&!((Zi=Ze==null?void 0:Ze.setting)!=null&&Zi.is_local)?ot.createElement(ut,{user:Ne,globalSetting:Ze}):ot.createElement(xe,{user:Ne,globalSetting:Ze})):ot.createElement(ot.Fragment,null," ")};var yt=(0,fe.connect)(({user:Ne,loading:Ze,globalSetting:qe})=>({user:Ne,globalSetting:qe,loading:Ze.models.index}))(pt),Pt=St(6848),bt=St(9122),Rt=St(7678),Ut={sideBar:"sideBar___iM1tf",wrap:"wrap___GEY86",backTop:"backTop___skoyU",ul:"ul___JwWww",tooltipclass:"tooltipclass___QQUJq"},ee=St(32637);const re=({globalSetting:Ne,loading:Ze,shixunHomeworks:qe,user:ci,dispatch:Xi})=>{var Zi,wo,$i,li,Gi,bo,Qo,Vo,Fo,fo,Sr,Fr,Rr,Br,Ga,Za,Pa;const[ka,Ar]=(0,ot.useState)(!1),[Ta,oo]=(0,ot.useState)(!1),[Ro]=(0,ot.useState)(localStorage.hideCustom?JSON.parse(localStorage.hideCustom):[]),[Go,Jo]=(0,ot.useState)((localStorage==null?void 0:localStorage.hidesidebar)!="1"),[Ia,rr]=(0,ot.useState)(!1),[Aa,ms]=(0,ot.useState)(!1),Ja=(0,ot.useRef)(),Dr=(0,fe.useLocation)();(0,ot.useEffect)(()=>(window.addEventListener("scroll",qa),()=>window.removeEventListener("scroll",qa)),[]),(0,ot.useEffect)(()=>{setTimeout(()=>{localStorage.setItem("hidesidebar","1"),Jo(!1)},5e3)},[]),(0,ot.useEffect)(()=>{qe.actionTabs.type===99&&(rr(!0),setTimeout(()=>{rr(!1)},5e3))},[qe.actionTabs]),(0,ot.useEffect)(()=>{document.domain==="www.educoder.net"&&(Dr.pathname==="/"||Dr.pathname.indexOf("/competitions/detail/")>-1||Dr.pathname.indexOf("/competitions")>-1&&Dr.pathname.split("/").length===3)?ms(!0):ms(!1)},[Dr.pathname]),(0,ot.useEffect)(()=>{var Co,Cr,No;(Co=ci==null?void 0:ci.userInfo)!=null&&Co.login&&!Ro.includes((Cr=ci==null?void 0:ci.userInfo)==null?void 0:Cr.login)&&!((No=Ne==null?void 0:Ne.setting)!=null&&No.is_local)&&setTimeout(()=>{var xr,br,Tr=document.createEvent("Events");Tr.initEvent("mouseout",!0,!1),Ja&&((xr=Ja.current)==null||xr.dispatchEvent(Tr)),Ro.push((br=ci==null?void 0:ci.userInfo)==null?void 0:br.login),localStorage.hideCustom=JSON.stringify(Ro)},5e3)},[ci]);const qa=()=>{var Co;if(Dr.pathname==="/Activities"){Ar(!1);return}Ar(((Co=document==null?void 0:document.documentElement)==null?void 0:Co.scrollTop)>0)},Vi=()=>{const Co=function(){return/macintosh|mac os x/i.test(navigator.userAgent)}();oo(!0)};return ot.createElement("div",{className:Ut.sideBar},ot.createElement("div",{id:"wechat_QR_code_ids"},Aa&&!(0,nt.s2)()&&ot.createElement(Pt.Z,{placement:"left",overlayInnerStyle:{padding:26},getPopupContainer:()=>document.getElementById("wechat_QR_code_ids"),title:ot.createElement("div",{className:"flex-wrp flex_box_column flex_box_center"},ot.createElement(bt.Z,{errorLevel:"H",value:window.location.href,bgColor:"#FFF",size:190,icon:`${He.Z.IMG_SERVER}/${(Zi=Ne==null?void 0:Ne.setting)==null?void 0:Zi.tab_logo_url}`}),ot.createElement("div",{className:"tc font15 mt20"},"\u8BF7\u4F7F\u7528\u5FAE\u4FE1\u626B\u4E00\u626B\u5206\u4EAB",Dr.pathname.indexOf("/competitions")>-1?"\u7ADE\u8D5B":"\u5934\u6B4C"))},ot.createElement("div",{className:Ut.wrap},ot.createElement("i",{className:"iconfont icon-icon-weixin c-light-primary font22"}))),!Ne.onlyShowBackTop&&(Ne==null?void 0:Ne.onlyShowBackTopIcons)&&Go&&ot.createElement(ot.Fragment,null,!!((wo=ci==null?void 0:ci.userInfo)!=null&&wo.login)&&ot.createElement(Pt.Z,{placement:"left",defaultVisible:!(Ro!=null&&Ro.includes(($i=ci==null?void 0:ci.userInfo)==null?void 0:$i.login)),getPopupContainer:()=>document.getElementById("wechat_QR_code_ids"),title:ot.createElement("div",null,ot.createElement("div",{className:"tc"},ot.createElement("img",{className:"mt10",src:ee,width:"188px",height:"188px"})),ot.createElement("div",{className:"tc font15 mt10"},"\u514D\u8D39\u6559\u7814\u52A9\u7406"),ot.createElement("div",{className:"tc font15"},"\u5FAE\u4FE1\u626B\u4E00\u626B\u6DFB\u52A0"),ot.createElement("div",{className:"pt10 font12"},ot.createElement("ul",{className:Ut.ul},ot.createElement("li",null,"\u89E3\u7B54\u8001\u5E08\u7591\u60D1\u3001\u5E2E\u52A9\u8001\u5E08\u66F4\u5FEB\u719F\u6089\u548C\u4F7F\u7528\u5E73\u53F0\u6559\u5B66"),ot.createElement("li",null,"\u534F\u52A9\u8001\u5E08\u521B\u5EFA\u8BFE\u5802\u3001\u8BFE\u7A0B\u8BBE\u8BA1\u3001\u505A\u597D\u6559\u5B66\u5DE5\u4F5C\u3002"),ot.createElement("li",null,"\u6839\u636E\u8001\u5E08\u6559\u5B66\u65B9\u5411\uFF0C\u5206\u4EAB\u5934\u6B4C\u5E73\u53F0C9\u9662\u6821\u3001985\u9AD8\u6821\u3001211\u9AD8\u6821\u3001\u53CC\u4E00\u6D41\u9AD8\u6821\u8001\u5E08\u7ECF\u5178\u5B9E\u8DF5\u6559\u5B66\u6848\u4F8B\u3002"))))},ot.createElement("div",{className:Ut.wrap,ref:Ja},ot.createElement("a",{href:"javascript:void(0)"},ot.createElement("i",{className:"iconfont icon-yijianfankui1 c-light-primary font22"})))),!((li=Ne==null?void 0:Ne.setting)!=null&&li.is_local)&&ot.createElement(Pt.Z,{placement:"left",getPopupContainer:()=>document.getElementById("wechat_QR_code_ids"),title:ot.createElement("div",null,ot.createElement("img",{src:`${He.Z.IMG_SERVER}/images/educoder/EWM.jpg`,width:"158px",height:"158px"}),ot.createElement("div",{className:"tc font15"},"\u5FAE\u4FE1\u626B\u4E00\u626B"),ot.createElement("div",{className:"tc font15"},"\u5173\u6CE8\u516C\u4F17\u53F7"))},ot.createElement("div",{className:Ut.wrap},ot.createElement("i",{className:"iconfont icon-erweima1 c-light-primary font22"}))),!((Gi=Ne==null?void 0:Ne.setting)!=null&&Gi.is_local)&&ot.createElement(Pt.Z,{placement:"left",title:"\u5728\u7EBF\u54A8\u8BE2"},ot.createElement("div",{className:Ut.wrap},ot.createElement("a",{onClick:Vi,className:"c-white"},ot.createElement("i",{className:"iconfont icon-QQ1 c-light-primary font22"})))),ot.createElement("div",{onClick:()=>{Jo(!1),localStorage.setItem("hidesidebar","1")},style:{textAlign:"center",fontSize:"14px",color:"#0152d9",margin:"10px 0px",cursor:"pointer"}},"\u6536\u8D77")),((bo=Ne==null?void 0:Ne.setting)==null?void 0:bo.main_site)&&!Ne.onlyShowBackTop&&(Ne==null?void 0:Ne.onlyShowBackTopIcons)&&!Go&&ot.createElement("div",{onClick:()=>{Jo(!0),localStorage.setItem("hidesidebar","2")},style:{textAlign:"center",fontSize:"16px",color:"#0152d9",background:"#fff",margin:"10px 0px",cursor:"pointer",position:"absolute",left:"80px",top:"-150px",boxShadow:"0px 0px 8px 0px #f1f1f1",width:"30px",writingMode:"vertical-lr",height:"100px",paddingLeft:"3px"}},"\u8054\u7CFB\u6211\u4EEC"),(Ne==null?void 0:Ne.showQuestionBackTop)&&!((Qo=Ne==null?void 0:Ne.setting)!=null&&Qo.is_local)&&ot.createElement(Pt.Z,{placement:"left",getPopupContainer:()=>document.getElementById("wechat_QR_code_ids"),title:ot.createElement("div",null,ot.createElement("img",{src:((Vo=ci==null?void 0:ci.userInfo)==null?void 0:Vo.identity)==="student"?`${He.Z.IMG_SERVER}/${(Fo=Ne==null?void 0:Ne.setting)==null?void 0:Fo.homepage_stu_qq_qrcode_url}`:`${He.Z.IMG_SERVER}/${(fo=Ne==null?void 0:Ne.setting)==null?void 0:fo.homepage_tea_qq_qrcode_url}`,width:"158px",height:"158px"}),ot.createElement("div",{className:"tc font15 mt10",style:{marginBottom:6}},"\u626B\u7801\u8FDB\u7F16\u7A0B\u4EA4\u6D41\u7FA4"))},ot.createElement("div",{className:Ut.wrap},ot.createElement("i",{className:"iconfont icon-erweima1 c-light-primary font22"}))),ka&&ot.createElement(Pt.Z,{placement:"left",title:"\u8FD4\u56DE\u9876\u90E8"},ot.createElement(Rt.Z,{className:`${Ut.wrap} ${Ut.backTop}`,visibilityHeight:0},ot.createElement("i",{className:"iconfont icon-huidaodingbu c-light-primary font14"})))),ot.createElement(Ft.default,{centered:!0,destroyOnClose:!0,open:Ta,title:((Sr=ci==null?void 0:ci.userInfo)==null?void 0:Sr.identity)==="student"?"\u5934\u6B4C\u5B66\u751F\u4EA4\u6D41\u793E\u533A":"\u5934\u6B4C\u6559\u5E08\u4EA4\u6D41\u793E\u533A",width:"500px",footer:null,onCancel:()=>oo(!1)},ot.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",marginBottom:20}},ot.createElement("p",null,((Fr=ci==null?void 0:ci.userInfo)==null?void 0:Fr.identity)==="student"?`\u626B\u7801\u6216\u641C\u7D22\u52A0\u5165\u5934\u6B4C\u5B66\u751F\u4EA4\u6D41QQ\u7FA4\uFF1A${(Rr=Ne==null?void 0:Ne.setting)==null?void 0:Rr.homepage_stu_qq_number}`:`\u626B\u7801\u6216\u641C\u7D22\u52A0\u5165\u5934\u6B4C\u6559\u5E08\u4EA4\u6D41QQ\u7FA4\uFF1A${(Br=Ne==null?void 0:Ne.setting)==null?void 0:Br.homepage_tea_qq_number}`),ot.createElement("img",{src:((Ga=ci==null?void 0:ci.userInfo)==null?void 0:Ga.identity)==="student"?`${He.Z.IMG_SERVER}/${(Za=Ne==null?void 0:Ne.setting)==null?void 0:Za.homepage_stu_qq_qrcode_url}`:`${He.Z.IMG_SERVER}/${(Pa=Ne==null?void 0:Ne.setting)==null?void 0:Pa.homepage_tea_qq_qrcode_url}`,width:200,height:200}))))};var ie=(0,fe.connect)(({loading:Ne,globalSetting:Ze,user:qe,shixunHomeworks:ci})=>({globalSetting:Ze,user:qe,loading:Ne.models.index,shixunHomeworks:ci}))(re),Me=St(3113),pe=(Ne,Ze,qe)=>new Promise((ci,Xi)=>{var Zi=li=>{try{$i(qe.next(li))}catch(Gi){Xi(Gi)}},wo=li=>{try{$i(qe.throw(li))}catch(Gi){Xi(Gi)}},$i=li=>li.done?ci(li.value):Promise.resolve(li.value).then(Zi,wo);$i((qe=qe.apply(Ne,Ze)).next())});const Le=({user:Ne,dispatch:Ze,classroomList:qe})=>ot.createElement(Ft.default,{title:"\u6E29\u99A8\u63D0\u793A",zIndex:9999,footer:null,open:qe.actionTabs.key==="\u5BFC\u51FA\u63D0\u9192",onCancel:()=>{Ze({type:"classroomList/setActionTabs",payload:{}})}},ot.createElement("div",null,ot.createElement("span",null,"\u60A8\u5728\u5F53\u524D\u680F\u76EE\u4E2D\u6709\u5DF2\u5BFC\u51FA\u7684\u8868\u683C\u672A\u4E0B\u8F7D\uFF0C\u8BF7\u5148\u4E0B\u8F7D\u5DF2\u6709\u8868\u683C\uFF0C\u7136\u540E\u518D\u5BFC\u51FA\u65B0\u7684\u8868\u683C\u3002"),ot.createElement("br",null),ot.createElement("div",{style:{textAlign:"end"}},ot.createElement(Me.ZP,{type:"primary",onClick:()=>pe(void 0,null,function*(){Ze({type:"classroomList/setActionTabs",payload:{}})})},"\u77E5\u9053\u4E86"))));var ge=(0,fe.connect)(({user:Ne,classroomList:Ze})=>({user:Ne,classroomList:Ze}))(Le),je=St(98228),Je=St(95237),Cn=St(43604),hn=St(24905),Xn={name:"name___sZaG7"},Fe=St(59301),Zt=Object.defineProperty,Ye=Object.defineProperties,kn=Object.getOwnPropertyDescriptors,Tn=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,Ke=(Ne,Ze,qe)=>Ze in Ne?Zt(Ne,Ze,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Ne[Ze]=qe,jn=(Ne,Ze)=>{for(var qe in Ze||(Ze={}))Be.call(Ze,qe)&&Ke(Ne,qe,Ze[qe]);if(Tn)for(var qe of Tn(Ze))be.call(Ze,qe)&&Ke(Ne,qe,Ze[qe]);return Ne},Wn=(Ne,Ze)=>Ye(Ne,kn(Ze)),An=(Ne,Ze,qe)=>new Promise((ci,Xi)=>{var Zi=li=>{try{$i(qe.next(li))}catch(Gi){Xi(Gi)}},wo=li=>{try{$i(qe.throw(li))}catch(Gi){Xi(Gi)}},$i=li=>li.done?ci(li.value):Promise.resolve(li.value).then(Zi,wo);$i((qe=qe.apply(Ne,Ze)).next())});const{TreeNode:oe}=je.default,cn=({classroomList:Ne,loading:Ze,dispatch:qe})=>{var ci,Xi,Zi;const[wo,$i]=(0,ot.useState)(!1),[li,Gi]=(0,ot.useState)([]),[bo,Qo]=(0,ot.useState)(!0),[Vo,Fo]=(0,ot.useState)(!1);return(0,ot.useEffect)(()=>{var fo,Sr;Ne.actionTabs.key=="\u9009\u62E9\u73ED\u7EA7"&&Gi([...(Sr=(fo=Ne==null?void 0:Ne.actionTabs)==null?void 0:fo.course_groups)==null?void 0:Sr.map(Fr=>Fr.course_group_id)])},[Ne.actionTabs.key]),(0,ot.useEffect)(()=>{var fo,Sr,Fr,Rr;Qo(((Sr=(fo=Ne==null?void 0:Ne.actionTabs)==null?void 0:fo.course_groups)==null?void 0:Sr.length)===(li==null?void 0:li.length)),Fo((li==null?void 0:li.length)>0&&(li==null?void 0:li.length)<((Rr=(Fr=Ne==null?void 0:Ne.actionTabs)==null?void 0:Fr.course_groups)==null?void 0:Rr.length))},[li]),Fe.createElement(Ft.default,{centered:!0,title:Ne.actionTabs.title,open:Ne.actionTabs.key==="\u9009\u62E9\u73ED\u7EA7",okText:"\u786E\u8BA4\u5BFC\u51FA",cancelText:"\u53D6\u6D88",width:700,bodyStyle:{minHeight:100},confirmLoading:wo,onOk:()=>An(void 0,null,function*(){var fo;$i(!0);const Sr=sessionStorage.all_student_works_params?JSON.parse(sessionStorage.all_student_works_params):[],Fr=JSON.stringify(Wn(jn({},Sr),{course_group:[...li],teacher_comment:null,work_status:null,search:null,file_status:null,member_work:null}));sessionStorage.all_student_works_params=Fr,localStorage.setItem("all_student_works_param",Fr),qe({type:"classroomList/setActionTabs",payload:{}}),$i(!1),(fo=Ne==null?void 0:Ne.actionTabs)==null||fo.fn()}),onCancel:()=>{qe({type:"classroomList/setActionTabs",payload:{}})}},Fe.createElement("div",null,Fe.createElement(Je.Z,null,Fe.createElement(Cn.Z,{className:"font14 mb10",span:24},"\u8BF7\u9009\u62E9\u672C\u6B21\u9700\u8981\u5BFC\u51FA",(ci=Ne==null?void 0:Ne.actionTabs)==null?void 0:ci.title,"\u7684\u73ED\u7EA7\uFF1A"),Fe.createElement(Cn.Z,{span:24},Fe.createElement(hn.default,{indeterminate:Vo,checked:bo,onChange:fo=>{var Sr,Fr;Gi(fo.target.checked?(Fr=(Sr=Ne==null?void 0:Ne.actionTabs)==null?void 0:Sr.course_groups)==null?void 0:Fr.map(Rr=>Rr.course_group_id):[])}},"\u5168\u9009")),Fe.createElement(hn.default.Group,{style:{width:"100%"},value:li,onChange:fo=>{Gi(fo)}},Fe.createElement(Je.Z,null,(Zi=(Xi=Ne==null?void 0:Ne.actionTabs)==null?void 0:Xi.course_groups)==null?void 0:Zi.map((fo,Sr)=>Fe.createElement(Cn.Z,{span:8,style:{marginTop:"10px"}},Fe.createElement(hn.default,{value:fo.course_group_id,style:{fontSize:"14px"}},Fe.createElement("span",{className:Xn.name,title:fo.group_group_name}," ",fo.group_group_name),Fe.createElement("span",null,"(",fo.count,")")))))))))};var wn=(0,fe.connect)(({classroomList:Ne,loading:Ze})=>({classroomList:Ne,loading:Ze}))(cn),Fn=St(8591),mn=St(57809),Dn=St(99064),rn={modal:"modal___F5VLC",title:"title___JqMFe",content:"content___f4NH_",name:"name___UtE1a",tip:"tip____F4Fo",info:"info___Outu3",icon:"icon___vRglT",img:"img___XOkOS",code:"code___BFLYc",item:"item___iouDe",left:"left___jflep",right:"right___ZKzah",text1:"text1___mApOX",text2:"text2___lP9Fx",count:"count___TFQl9",disable:"disable___BmHOV",line:"line___R2Nmd",nocode:"nocode___LEukz"},ce="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIwAAAB8CAYAAAC7UlgnAAAAAXNSR0IArs4c6QAAC5tJREFUeF7tnWuMVGcZx//PmcuZvbOwu0IBFRUp0hgFkqZIC7SWsKChssSkXzRqoo2JtdrU+MGPfrGmikYTmxjjBxNjAkuw5dKWdBYxtShQo2IFjCVCC+6Fvc/Mmct5zDszS5ZlZ+a8Z2fmnDPznC9nd+a9PM//+c37nuvzEnywJRLWAHPuewA9wMxhH5jkOxOIKAvwP4hC329tNY94ZSB51fFcvwoW284d9tqOIPVvGKGB1lZz0AubPQdmdjZxkRmf9ML5oPZJhLfa2lo3e2G/D4BJppk54oXzQe2TiDJtbS1RL+z3HJiZmQR74XjQ+2xvb/Ukdp50Oj9YAow7dAUYd7o1bS0BpmlD785xAcadbk1bS4Bp2tC7c1yAcaBbNmdjejaBdCaLXM52UMO/RUIhA9FIGB1trQiHDG1DBZgKklnpDG5PToMb7CScCFje1QEzqncpSoApA4xtM4ZvT8K2gz2qlHLRMAz0Le+CYTi/yiHAlAEmmUpjfGpGe9gOUoXuzna0xJxfvBVgykR3ciaB2UQqSPHXtrWtNYau9lbH9QSYcsBMJzCbbHBgWmLo6hBgKv5inNwamBRg7tFRRhgZYWSEqTi8AJARpqBSm0xJTnARYOZUEmCc8SIjTFEnAUaAcaiATElaQskxjAAjwGgpIMBoySUjjAAjwGgpIMBoySUjjAAjwGgpIMBoySUjjAAjwGgpIMBoySUjjAAjwGgpIMBoySUjjAAjwGgpIMBoySUjjABTfWDkIfB7NJVHNMtgJq+Z3CuOAFMGGPUi28jtSeQa9EW2kGGgV15kczYzOTmG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ch(Gi){Xi(Gi)}},wo=li=>{try{$i(qe.throw(li))}catch(Gi){Xi(Gi)}},$i=li=>li.done?ci(li.value):Promise.resolve(li.value).then(Zi,wo);$i((qe=qe.apply(Ne,Ze)).next())});const{TreeNode:Ee}=je.default,ke=({classroomList:Ne,loading:Ze,dispatch:qe,user:ci})=>{var Xi,Zi;const[wo,$i]=(0,ot.useState)(!1),[li,Gi]=(0,ot.useState)(""),[bo,Qo]=(0,ot.useState)([]),[Vo,Fo]=(0,ot.useState)({});return(0,ot.useEffect)(()=>{if(Ne.actionTabs.id&&Ne.actionTabs.key==="\u6388\u6743\u4F7F\u7528"){let Rr=function(){return we(this,null,function*(){const Br=yield(0,Dn.ZP)(`/api/courses/${Ne.actionTabs.id}/get_high_resources_codes.json`,{method:"get",params:{type:Ne.actionTabs.type,type_id:Ne.actionTabs.type_id}});(Br==null?void 0:Br.status)===0&&(Qo(Br==null?void 0:Br.data),Fo(Br==null?void 0:Br.other_data))})};console.log(Ne.actionTabs);const{id:fo,type:Sr,type_id:Fr}=Ne.actionTabs;Rr()}},[Ne.actionTabs.id]),Kt.createElement(Ft.default,{centered:!0,title:Ne.actionTabs.title,open:Ne.actionTabs.key==="\u6388\u6743\u4F7F\u7528",okText:"\u7ACB\u5373\u9A8C\u8BC1",cancelText:"\u53D6\u6D88",width:804,bodyStyle:{minHeight:350},confirmLoading:wo,destroyOnClose:!0,closeIcon:Kt.createElement("i",{className:"iconfont icon-guanbi1 font15",onClick:()=>{qe({type:"classroomList/setActionTabs",payload:{}})},style:{color:"#fff"}}),afterClose:()=>{Gi("")},className:rn.modal,onOk:()=>we(void 0,null,function*(){var fo;if(!li){Fn.ZP.warning("\u8BF7\u9009\u62E9\u6388\u6743\u7801");return}$i(!0);const Sr=yield(0,Dn.ZP)(`/api/courses/${Ne.actionTabs.id}/check_high_resources_code.json`,{method:"post",body:{type:Ne.actionTabs.type,type_id:Ne.actionTabs.type_id,code:li}});(Sr==null?void 0:Sr.status)===0&&(Fn.ZP.success("\u6388\u6743\u6210\u529F"),qe({type:"classroomList/setActionTabs",payload:{}}),(fo=Ne==null?void 0:Ne.actionTabs)==null||fo.fn()),$i(!1)}),onCancel:()=>{qe({type:"classroomList/setActionTabs",payload:{}})}},Kt.createElement("div",{className:"mt10"},Kt.createElement("div",{className:rn.title},"\u6388\u6743\u4F7F\u7528"),Kt.createElement("div",{className:rn.content},Kt.createElement("div",null,Kt.createElement("div",{className:rn.name},"\u60A8\u597D\uFF01",(Xi=ci==null?void 0:ci.userInfo)==null?void 0:Xi.username,"\u8001\u5E08\uFF08",(Zi=ci==null?void 0:ci.userInfo)==null?void 0:Zi.login,"\uFF09\uFF1A"),Ne.actionTabs.type==="shixun"&&Kt.createElement("div",{className:rn.tip},"\u5F53\u524D\u5B9E\u8BAD\u4F5C\u4E1A\u3010",Ne.actionTabs.name,"-ID",Ne.actionTabs.type_id,"\u3011\u662F\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",Kt.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002\u53D1\u5E03\u4F5C\u4E1A\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),Ne.actionTabs.type==="exercise"&&Kt.createElement("div",{className:rn.tip},"\u5F53\u524D\u8BD5\u5377\u3010",Ne.actionTabs.name,"-ID",Ne.actionTabs.type_id,"\u3011\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",Kt.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002\u53D1\u5E03\u8003\u8BD5\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),Kt.createElement("div",{className:rn.info},Kt.createElement("div",{className:rn.icon},Kt.createElement("i",{className:"iconfont icon-danceng-shiyanhuanjing",style:{color:"#165DFF"}})),Kt.createElement("span",{className:"mr10",style:{color:"#6A7283"}},Ne.actionTabs.type==="shixun"?"\u5B9E\u9A8C\u73AF\u5883":"\u9AD8\u6D88\u8017\u5B9E\u9A8C"),Kt.createElement("span",{style:{color:"#232B40"}},Ne.actionTabs.type==="shixun"?Vo.env_name:`${Vo.env_count}\u4E2A`)),Kt.createElement("div",{className:rn.info},Kt.createElement("div",{className:rn.icon},Kt.createElement("i",{className:"iconfont icon-shiyankecheng",style:{color:"#165DFF"}})),Kt.createElement("span",{className:"mr10",style:{color:"#6A7283"}},"\u6240\u5C5E\u8BFE\u5802"),Kt.createElement("span",{style:{color:"#232B40"}},Vo.course_name)),Kt.createElement("div",{className:rn.info},Kt.createElement("div",{className:rn.icon},Kt.createElement("i",{className:"iconfont icon-zaixianrenshu",style:{color:"#165DFF"}})),Kt.createElement("span",{className:"mr10",style:{color:"#6A7283"}},"\u5B66\u751F\u4EBA\u6570"),Kt.createElement("span",{style:{color:"#232B40"}},Vo.student_count,"\u4EBA"))),Kt.createElement("div",{className:"mt10"},Kt.createElement("div",{className:rn.img},Kt.createElement("img",{src:ee,width:"124px",height:"124px"})),Kt.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801"))),Kt.createElement("div",{className:rn.code},Kt.createElement("span",{className:"mr10",onClick:()=>console.log(1111)},"\u6388\u6743\u7801"),Kt.createElement(mn.default,{popupClassName:rn.popu,disabled:!1,className:rn.qselect,onChange:fo=>we(void 0,null,function*(){console.log(fo),Gi(fo)}),size:"large",optionLabelProp:"lable",style:{flex:1,width:700},placeholder:"\u8BF7\u9009\u62E9\u6388\u6743\u7801",virtual:!1,notFoundContent:Kt.createElement("div",{className:rn.nocode},Kt.createElement("div",null,Kt.createElement("img",{src:ce,alt:""}),Kt.createElement("div",{className:"mt10",style:{color:"#666666"}},"\u6682\u65E0\u6388\u6743\u7801\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6~")))},bo==null?void 0:bo.map((fo,Sr)=>Kt.createElement(mn.default.Option,{key:fo.code,value:fo==null?void 0:fo.code,label:fo.code,disabled:fo.disable},Kt.createElement("div",{className:rn.item},Kt.createElement("div",{className:rn.left,style:{background:Sr%2==0?"#52C7B0":"#E36868"}},fo.code),Kt.createElement("div",{className:`${rn.right} ${fo.disable&&rn.disable}`},Ne.actionTabs.type==="shixun"&&Kt.createElement("div",null,Kt.createElement("span",{className:rn.text1},"\u9002\u7528\u8D44\u6E90\u7C7B\u578B\uFF1A"),Kt.createElement("span",{className:rn.text2},fo.resource_type_name),fo.resource_type_name==="\u9AD8\u6027\u80FD\u670D\u52A1\u5668"&&Kt.createElement(Pt.Z,{title:Kt.createElement("div",null,"\u9002\u7528\u7684\u5B9E\u9A8C\u73AF\u5883\u5305\u62EC\uFF1AARM\u3001\u7B97\u80FD\u4E91\u3001\u4EA4\u5927\u4E91\u3001\u65E0\u5F71\u4E91\u3001\u6E56\u5927\u8D85\u7B97\u4E2D\u5FC3\u3001\u9AD8\u914D\u7F6E\u3001\u5927\u955C\u50CF\u3001\u81EA\u5B9A\u4E49\u955C\u50CF\u7B49\u3002",Kt.createElement("br",null),"\u4E0D\u5305\u62EC\uFF1AGPU\u3001\u963F\u91CC\u4E91\u3001\u5934\u6B4C\u4E91\u3002"),zIndex:1e4}," ",Kt.createElement("i",{className:"iconfont icon-wenhao1 font14"}))),Kt.createElement("div",null,Kt.createElement("span",{className:rn.text1},"\u652F\u6301\u4F7F\u7528\u4EBA\u6570\uFF1A"),Kt.createElement("span",{className:rn.text2},fo.max_people,"\u4EBA")),Kt.createElement("div",null,Kt.createElement("span",{className:rn.text1},"\u6388\u6743\u7801\u4F7F\u7528\u6B21\u6570\uFF1A"),Kt.createElement("span",{className:rn.text2},"\u5DF2\u4F7F\u7528 ",Kt.createElement("span",{className:rn.count},fo.use_count)," \u6B21\uFF0C\u5269\u4F59 ",Kt.createElement("span",{className:rn.count},fo.left_use_count)," \u6B21"),Ne.actionTabs.type==="exercise"&&Kt.createElement(Pt.Z,{title:"\u6388\u6743\u7801\u4F7F\u7528\u6B21\u6570\u6309\u9AD8\u6D88\u8017\u5B9E\u9A8C\u7684\u4E2A\u6570\u8BA1\u7B97\u3002\u5982\uFF1A\u4E00\u5F20\u8BD5\u5377\u5185\uFF0C\u67093\u4E2A\u9AD8\u6D88\u8017\u7684\u5B9E\u9A8C\u3002\u90A3\u4E48\uFF0C\u53D1\u5E03\u8003\u8BD5\u540E\uFF0C\u6388\u6743\u7801\u7684\u5269\u4F59\u4F7F\u7528\u6B21\u6570\u9700\u8981\u6263\u96643\u6B21\u3002\u53D1\u5E03\u8003\u8BD5\u7684\u65F6\u5019\uFF0C\u9AD8\u6D88\u8017\u5B9E\u9A8C\u6570\u4E0D\u80FD\u5927\u4E8E\u6388\u6743\u7801\u7684\u5269\u4F59\u4F7F\u7528\u6B21\u6570\u3002",zIndex:1e4}," ",Kt.createElement("i",{className:"iconfont icon-wenhao1"}))),Kt.createElement("div",null,Kt.createElement("span",{className:rn.text1},"\u6388\u6743\u7801\u6709\u6548\u671F\uFF1A"),Kt.createElement("span",{className:rn.text2},fo.start_at," \u81F3 ",fo.end_at))))))))))};var ln=(0,fe.connect)(({classroomList:Ne,loading:Ze,user:qe})=>({classroomList:Ne,loading:Ze,user:qe}))(ke),Dt={modal:"modal___s_owE",content:"content___fKCoG",name:"name____JFNc",tip:"tip___wHgnp",info:"info___I2DZv",icon:"icon___cQ6SY",img:"img___GFBx1"},wt=St(59301);const{TreeNode:At}=je.default,Bt=({classroomList:Ne,loading:Ze,dispatch:qe,user:ci})=>{var Xi,Zi,wo;return wt.createElement(Ft.default,{centered:!0,title:"\u63D0\u793A",open:Ne.actionTabs.key==="\u6388\u6743\u63D0\u793A",closable:!1,maskClosable:!1,footer:wt.createElement("div",null,wt.createElement(Me.ZP,{type:"primary",onClick:$i=>{var li;qe({type:"classroomList/setActionTabs",payload:{}}),(li=Ne==null?void 0:Ne.actionTabs)==null||li.fn()}},"\u6211\u77E5\u9053\u4E86")),width:600,destroyOnClose:!0,className:Dt.modal},wt.createElement("div",null,wt.createElement("div",{className:Dt.content},wt.createElement("div",null,wt.createElement("div",{className:Dt.name},"\u60A8\u597D\uFF01",(Xi=ci==null?void 0:ci.userInfo)==null?void 0:Xi.username,"\u8001\u5E08\uFF08",(Zi=ci==null?void 0:ci.userInfo)==null?void 0:Zi.login,"\uFF09\uFF1A"),wt.createElement("div",{className:Dt.tip},"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",wt.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002\u53D1\u5E03\u8003\u8BD5\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),wt.createElement("div",{className:Dt.info},wt.createElement("div",{className:Dt.icon},wt.createElement("i",{className:"iconfont icon-danceng-shiyanhuanjing",style:{color:"#165DFF"}})),wt.createElement("span",{className:"mr10",style:{color:"#6A7283"}},"\u9AD8\u6D88\u8017\u5B9E\u9A8C"),wt.createElement("span",{style:{color:"#232B40"}},`${(wo=Ne==null?void 0:Ne.actionTabs)==null?void 0:wo.count}\u4E2A`))),wt.createElement("div",null,wt.createElement("div",{className:Dt.img},wt.createElement("img",{src:ee,width:"124px",height:"124px"})),wt.createElement("div",{className:"tc font12 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")))))};var jt=(0,fe.connect)(({classroomList:Ne,loading:Ze,user:qe})=>({classroomList:Ne,loading:Ze,user:qe}))(Bt),Mt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAa4AAAGuCAYAAADI9eKaAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAOX1SURBVHhe7P0FvCXJcSUOW2Bb9P2+/a9X0sw0PMZmnukhjcBiCwxisCzzru2/rZXh88q7hrVlW2TLkm3JFo54GJqZmZlxmvHxe93xxan7Tnd0Ttatuq/g3tdzz8zpyspKiIqMjKisW6/qp6SKKqqooooqhhGqgauKKqqooophhWrgqqKKKqqoYlihGriqqKKKKqoYVqgGriqqqKKKKoYVqoGriiqqqKKKYYVq4KqiiiqqqGJYoRq4qqiiiiqqGFaoBq4qqqiiiiqGFaqBq4oqqqiiimGFauCqoooqqqhiWKEauKqooooqqhhWqAauKqqooooqhhWqgauKKqqooophhWrgqqKKKqqoYlihGriqqKKKKqoYVqgGriqqqKKKKoYVqoGriiqqqKKKYYVq4KqiiiqqqGJYoRq4qqiiiiqqGFaoBq4qqqiiiiqGFaqBq4oqqqiiimGFauCqoooqqqhiWKEauKqooooqqhhWyCVwDQwMDKZErl+/HmyvXbsWbF/ooD6A/v7+YIs8q7Os9ce2rCxu/zxGGQFbvlywMgxH/dk6RF9fX7D1HbsdEaW/KGQ5vmyPY2LxQhmfSkTmgctnSEiDOFZlwcliC3BLcD9L/bE9gmkcs+A+tpS5Ejic9Qf09vYGW8pUClB+uDOu/nxgGbc+aPsIYylAefbDMXPbe6GxXMhlxWUH2cIa2wsZ1AP1w6ty3ySxSEN/bhvswzpTwK5mgDT6TguUZTjqj/tuvu8K/3ZElP7iIMvxBTgWYWNWRf7IPHBZJwJiH9uOjo4gH4P/QiZQbIJlrT8Abdm2QYB9+8AyvjbzJEBZfKh0/QGUxUVPT89gKhw+mYYTgaHoj2AZ1mMbccc3CmFjkJb9DHeWC7msuLq7uwdTt8Lem36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An/k3B/8XXsvwj/5JjpH/bb/ANHPXZUAeHfDr4c+LNB8dadqep6V5FpB5vmSfaImxmJ1HCsT1I7V7lSUtABXMav8RvCWh6nNpupat5F1BgSR/Z5X25AI5VSOhHeunr5n+Lf/ACU7WP8Atj/6JjoA2fjD4u0LxT/Y/wDYt99q+zef5v7p027vLx95Rn7p6elcBpGkX+vanDpmmQefdz7vLj3qu7CljyxA6A96pV2fwi/5KdpH/bb/ANEvQAf8Ki8df9AL/wAm4P8A4uvpbGExnGB1p1HWgR8z/F3/AJKdq3/bH/0SlcZXZ/F3/kp2r/8AbH/0THXGUDOm+HOq2Wh+OtP1PUZvItIPN8yTYW25idRwASeSK9y/4W34F/6Dn/kpP/8AEV809qbQI+y6WiigYUUUUAFFFFABRRRQAUUUUAFFFFACUUtFACUUUUALRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFAH/9kg1KMKINBnGA==";const En=({user:Ne})=>{var Ze,qe;const[ci,Xi]=(0,ot.useState)(!1),[Zi,wo]=(0,ot.useState)("");(0,ot.useEffect)(()=>{var li,Gi;let bo=localStorage.getItem("extension-modal");if(!((li=Ne==null?void 0:Ne.userInfo)!=null&&li.login)||!bo)return;const Qo=qt()(),Vo=`${(Gi=Ne==null?void 0:Ne.userInfo)==null?void 0:Gi.login}-extend-date`;let Fo=localStorage.getItem(Vo);if(Fo)if(Qo<=qt()(Fo))Xi(!1);else{Xi(!0),localStorage.removeItem(Vo),localStorage.removeItem("extension-modal");const fo=qt()(localStorage.getItem("extension-date")).format("YYYY\u5E74MM\u6708DD\u65E5");wo(fo)}else{Xi(!0),localStorage.removeItem("extension-modal");const fo=qt()(localStorage.getItem("extension-date")).format("YYYY\u5E74MM\u6708DD\u65E5");wo(fo)}return()=>{Xi(!1)}},[(Ze=Ne==null?void 0:Ne.userInfo)==null?void 0:Ze.login]);const $i=li=>{var Gi;const bo=`${(Gi=Ne==null?void 0:Ne.userInfo)==null?void 0:Gi.login}-extend-date`,Qo=qt()().endOf("day").format("YYYY-MM-DD HH:mm:ss");li.target.checked?localStorage.setItem(bo,Qo):localStorage.removeItem(bo)};return ot.createElement(Ft.default,{title:"\u6E29\u99A8\u63D0\u793A",open:ci,zIndex:9999,centered:!0,width:594,onCancel:()=>{Xi(!1)},footer:ot.createElement(Je.Z,{align:"middle",justify:"space-between"},ot.createElement(hn.default,{onChange:$i},"\u4ECA\u65E5\u4E0D\u518D\u63D0\u9192"),ot.createElement(Me.ZP,{onClick:()=>{Xi(!1)},style:{borderRadius:4},type:"primary"}," \u5173\u95ED"))},ot.createElement("div",{className:"font14",style:{paddingLeft:16}},ot.createElement("div",null,"\u8001\u5E08\u60A8\u597D\uFF01"),ot.createElement("div",{style:{textIndent:28}},"\u611F\u8C22\u60A8\u5BF9\u5934\u6B4C\u5E73\u53F0\u7684\u8BA4\u53EF\u4E0E\u652F\u6301\uFF01\u6839\u636E\u5E73\u53F0",ot.createElement("a",{href:"https://www.educoder.net/help/agreement",target:"_blank"},"\u670D\u52A1\u534F\u8BAE"),"\uFF0C\u8D35\u5355\u4F4D\u514D\u8D39\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u5C06\u9650\u5236\u5BF9\u76F8\u5173\u529F\u80FD\u548C\u8D44\u6E90\u7684\u4F7F\u7528\u3002"),ot.createElement("div",{style:{textIndent:28}},"\u8BF7\u60A8\u6DFB\u52A0\u4EE5\u4E0B\u5FAE\u4FE1\u5BA2\u670D\uFF0C\u534F\u52A9\u60A8\u5B8C\u6210\u540E\u7EED\u4F7F\u7528\u53CA\u7533\u8BF7\u6D41\u7A0B\uFF0C\u611F\u8C22\u652F\u6301\u4E0E\u7406\u89E3\u3002"),ot.createElement("img",{style:{margin:"8px auto",display:"block"},width:160,src:((qe=Ne.userInfo)==null?void 0:qe.school_province)==="\u5B89\u5FBD"?Ae:Mt,alt:"\u4E8C\u7EF4\u7801"}),ot.createElement("div",{style:{textAlign:"right"}},"\u5934\u6B4C\u8FD0\u8425\u4E2D\u5FC3"),ot.createElement("div",{style:{textAlign:"right"}},Zi)))};var Rn=(0,fe.connect)(({user:Ne})=>({user:Ne}))(En),Pn=St(9951),$n={modalityModal:"modalityModal___fvSjk",modal:"modal___wvA_V",itemWarp:"itemWarp___JNLoV",close:"close___PycHq",cancelBtn:"cancelBtn___kgKTp",selfdomModal:"selfdomModal___doNCF"},xi=St(89392),Fi=St.n(xi),Bi=(Ne,Ze,qe)=>new Promise((ci,Xi)=>{var Zi=li=>{try{$i(qe.next(li))}catch(Gi){Xi(Gi)}},wo=li=>{try{$i(qe.throw(li))}catch(Gi){Xi(Gi)}},$i=li=>li.done?ci(li.value):Promise.resolve(li.value).then(Zi,wo);$i((qe=qe.apply(Ne,Ze)).next())});const Ji=({dispatch:Ne,user:Ze,globalSetting:qe})=>{var ci,Xi;const[Zi,wo]=(0,ot.useState)({}),[$i,li]=(0,ot.useState)([]),[Gi,bo]=(0,ot.useState)(0),[Qo,Vo]=(0,ot.useState)(!1),Fo=(0,ot.useRef)(null),fo=(0,fe.useLocation)(),Sr=(oo,Ro)=>{let Go=null;return oo===0&&(Go=qt()().add(100,"month").unix()),oo===1&&(Go=qt()().add(Ro,"hour").unix()),oo===2&&(Go=qt()().add(Ro,"days").unix()),oo===3&&(Go=qt()().add(Ro*7,"days").unix()),oo===4&&(Go=qt()().add(Ro,"month").unix()),oo===5&&(Go=qt()().add(Ro*3,"month").unix()),Go},Fr=oo=>{var Ro;const Go=`${(Ro=Ze==null?void 0:Ze.userInfo)==null?void 0:Ro.login}-deadline-operate`;let Jo=localStorage.getItem(Go)?JSON.parse(localStorage.getItem(Go)):[];Jo=Jo==null?void 0:Jo.filter(Aa=>Aa.id!==(oo==null?void 0:oo.id));const Ia=Sr(oo==null?void 0:oo.show_type,oo==null?void 0:oo.show_count),rr={id:oo==null?void 0:oo.id,deadline:Ia,type:oo==null?void 0:oo.show_type};Jo==null||Jo.push(rr),localStorage.setItem(Go,JSON.stringify(Jo))},Rr=()=>{Pa(Zi==null?void 0:Zi.id,"close");const oo=$i[Gi+1];oo?(Fr(oo),wo(oo),bo(Gi+1),Pa(oo==null?void 0:oo.id,"popup")):Vo(!1)},Br=[{name:"\u9996\u9875",key:0,path:"/"},{name:"\u5B9E\u8DF5\u8BFE\u7A0B",key:1,path:"/paths"},{name:"\u5B9E\u8DF5\u9879\u76EE",key:2,path:"/shixuns"},{name:"\u6559\u5B66\u8BFE\u5802",key:3,path:"/classrooms"},{name:"\u5728\u7EBF\u7ADE\u8D5B",key:4,path:"/competitions"},{name:"\u6559\u5B66\u6848\u4F8B",key:5,path:"/moop_cases"},{name:"\u4EA4\u6D41\u95EE\u7B54",key:6,path:"/forums/categories"},{name:"\u4E2A\u4EBA\u4E2D\u5FC3",key:7,path:"/users"}];(0,ot.useEffect)(()=>{var oo,Ro;qe!=null&&qe.operateModelPath&&((oo=qe==null?void 0:qe.setting)!=null&&oo.main_site)&&((Ro=Ze==null?void 0:Ze.userInfo)!=null&&Ro.login)&&(ka(),setTimeout(()=>{Ne({type:"globalSetting/setOperateModelPath",payload:""})},300))},[qe==null?void 0:qe.operateModelPath,(ci=Ze==null?void 0:Ze.userInfo)==null?void 0:ci.login,(Xi=qe==null?void 0:qe.setting)==null?void 0:Xi.main_site]),(0,ot.useEffect)(()=>{var oo,Ro,Go,Jo,Ia,rr;if((oo=fo==null?void 0:fo.pathname)!=null&&oo.includes("/users")&&((Go=(Ro=fo==null?void 0:fo.pathname)==null?void 0:Ro.split("/"))==null?void 0:Go.length)===4){Ne({type:"globalSetting/setOperateModelPath",payload:"/users"});return}if((Jo=fo==null?void 0:fo.pathname)!=null&&Jo.includes("/forums/categories")){Ne({type:"globalSetting/setOperateModelPath",payload:"/forums/categories"});return}for(let Aa=0;Aa(window.addEventListener("click",Za),()=>{window.removeEventListener("click",Za)}),[Zi]);const Ga=oo=>{var Ro;if(oo!=null&&oo.getAttribute("data-operate-type"))return oo;for(let Go=0,Jo=oo;Jo=Jo.parentNode;Go++){if((Ro=Jo==null?void 0:Jo.getAttribute)!=null&&Ro.call(Jo,"data-operate-type"))return Jo;if(Jo==document.documentElement)return!1}},Za=oo=>Bi(void 0,null,function*(){var Ro;const Go=Ga(oo.target);if(Go&&(Go==null?void 0:Go.getAttribute("data-operate-type"))==="click"){oo.preventDefault();let Ia=Go==null?void 0:Go.getAttribute("href");const rr=Go==null?void 0:Go.getAttribute("target");yield Pa(Zi==null?void 0:Zi.id,"enter"),Go!=null&&Go.getAttribute("data-operate-data")&&(Ia=Ia+"?login="+((Ro=Ze==null?void 0:Ze.userInfo)==null?void 0:Ro.login)),(0,nt.xg)(Ia),Vo(!1)}}),Pa=(oo,Ro)=>Bi(void 0,null,function*(){return yield(0,Dn.ZP)("/api/popup_windows/popup_windows_counts.json",{method:"get",params:{id:oo,count_type:Ro}})}),ka=()=>Bi(void 0,null,function*(){var oo,Ro,Go;const Jo=yield(0,Dn.ZP)("/api/popup_windows/get_popup_windows.json",{method:"get"});if((Jo==null?void 0:Jo.status)===0&&((oo=Jo==null?void 0:Jo.data)==null?void 0:oo.length)!==0){const Ia=Br==null?void 0:Br.findIndex(Ja=>Ja.path===(qe==null?void 0:qe.operateModelPath));let rr=Fi().cloneDeep(Jo==null?void 0:Jo.data);rr=rr==null?void 0:rr.filter(Ja=>{var Dr;return(Dr=Ja.show_page)==null?void 0:Dr.includes(Ia)});const Aa=`${(Ro=Ze==null?void 0:Ze.userInfo)==null?void 0:Ro.login}-deadline-operate`;let ms=localStorage.getItem(Aa)?JSON.parse(localStorage.getItem(Aa)):[];(ms==null?void 0:ms.length)!==0&&(rr=rr==null?void 0:rr.filter(Ja=>{let Dr=!0;const qa=ms==null?void 0:ms.find(Vi=>Vi.id===Ja.id);return qa&&(qt()().unix()<=(qa==null?void 0:qa.deadline)&&(Dr=!1),(qa==null?void 0:qa.type)===0&&(Ja.show_type===0?Dr=!1:Dr=!0)),Dr})),rr!=null&&rr.length&&(wo(rr==null?void 0:rr[Gi]),Fr(rr==null?void 0:rr[Gi]),Pa((Go=rr==null?void 0:rr[Gi])==null?void 0:Go.id,"popup"),Vo(!0),li(rr))}}),Ar=()=>{var oo;const Ro=(Zi==null?void 0:Zi.popup_type)===1;return ot.createElement("div",{className:$n.modalityModal},ot.createElement("div",{className:$n.modal,style:{width:Zi==null?void 0:Zi.width,height:Ro?(Zi==null?void 0:Zi.height)+40:Zi==null?void 0:Zi.height}},ot.createElement("div",{className:$n.close,onClick:Rr},ot.createElement("i",{className:"iconfont icon-guanbi1"})),ot.createElement(Pn.Z,{ref:Fo,dots:!0,autoplay:!0,pauseOnDotsHover:!0},(oo=Zi==null?void 0:Zi.content)==null?void 0:oo.map((Go,Jo)=>ot.createElement("aside",{key:Jo,className:$n.itemWarp},ot.createElement(et.Z,{value:Go})))),Ro&&ot.createElement(Je.Z,{justify:"center"},ot.createElement(Me.ZP,{type:"primary",className:$n.cancelBtn,onClick:Rr},"\u6211\u77E5\u9053\u4E86"))))},Ta=()=>{var oo;return ot.createElement("div",{className:$n.selfdomModal},ot.createElement("div",{className:$n.modal,style:{width:Zi==null?void 0:Zi.width,height:Zi==null?void 0:Zi.height}},ot.createElement("div",{className:$n.close,onClick:Rr},ot.createElement("i",{className:"iconfont icon-htmal5icon19"})),ot.createElement(Pn.Z,{ref:Fo,dots:!0,autoplay:!0,pauseOnDotsHover:!0},(oo=Zi==null?void 0:Zi.content)==null?void 0:oo.map((Ro,Go)=>ot.createElement("aside",{key:Go,className:$n.itemWarp},ot.createElement(et.Z,{style:{height:Zi==null?void 0:Zi.height},value:Ro}))))))};return ot.createElement(ot.Fragment,null,Qo&&((Zi==null?void 0:Zi.windows_style)===0?Ar():Ta()))};var ro=(0,fe.connect)(({user:Ne,globalSetting:Ze})=>({user:Ne,globalSetting:Ze}))(Ji),Eo=St(19909),Zo=St(54580),Lo=St(43428),qn={wrap:"wrap___UBl7k",left:"left___xT_eS",tip:"tip___ZKvkV",bottomBtn:"bottomBtn___tgz5f",disabled:"disabled___z2MhU"},$t=St(85057),tn=St(14791),Jn=St(2554),zt=St(86106),Mn=St(36136),le=St(88985),Ct=St(25355),vn=(Ne,Ze,qe)=>new Promise((ci,Xi)=>{var Zi=li=>{try{$i(qe.next(li))}catch(Gi){Xi(Gi)}},wo=li=>{try{$i(qe.throw(li))}catch(Gi){Xi(Gi)}},$i=li=>li.done?ci(li.value):Promise.resolve(li.value).then(Zi,wo);$i((qe=qe.apply(Ne,Ze)).next())});const{Dragger:Hn}=Zo.default;var Te=(0,ot.forwardRef)(({onUpdateNum:Ne},Ze)=>{var qe;const[ci,Xi]=(0,ot.useState)(!1),[Zi,wo]=(0,ot.useState)([]),[$i,li]=(0,ot.useState)(null),[Gi,bo]=(0,ot.useState)([]),[Qo,Vo]=(0,ot.useState)(0),[Fo,fo]=(0,ot.useState)(0),[Sr,Fr]=(0,ot.useState)(!1),[Rr,Br]=(0,ot.useState)(Ct.Q),{contentRef:Ga,value:Za,status:Pa,open:ka,close:Ar}=Rr,Ta=(0,Mn.Z)({contentRef:Ga,status:Pa}),{openProgress:oo,closeProgress:Ro,CreateProgressModal:Go,progressOpen:Jo}=(0,zt.Z)();(0,ot.useEffect)(()=>{$i&&ms(),$i===!1&&(Ar(),Ne(),wo([]))},[$i]);const Ia=()=>{li(!0)};(0,ot.useImperativeHandle)(Ze,()=>({onClick:Ia}));const rr=Co=>{Fr(!0),Vo(Co),fo(0)},Aa=Co=>vn(void 0,null,function*(){const Cr=Co.name.split(".").slice(-1)[0].toLowerCase();return["docx","doc","pdf","png","jpg"].indexOf(Cr)==-1?(Fn.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u683C\u5F0F\u6709\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):Co.size/1024/1024>10?(Fn.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):!0}),ms=()=>vn(void 0,null,function*(){const Co=yield(0,Dn.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});Co.status===0&&(Vo(Co.total_number),fo(Co.remaining_number))}),Ja=()=>vn(void 0,null,function*(){var Co,Cr;Fr(!1);const xr={scene_type:0,request_identifier:Math.random(),file_id:(Cr=(Co=Zi[0])==null?void 0:Co.response)==null?void 0:Cr.id};yield ka(xr),ms()}),Dr=()=>vn(void 0,null,function*(){oo(),Xi(!0),bo([]);const Co=Ta(),Cr=new FormData;Cr.append("html",Co);const No=yield(0,Dn.ZP)("/api/intelligent_imports/import.json",{method:"post",body:Cr},!0);if((No==null?void 0:No.status)===0)if(No!=null&&No.data){Ro(100),bo(No==null?void 0:No.data);return}else Fn.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898");Xi(!1),Ro()}),qa=()=>vn(void 0,null,function*(){const Co=Ta();(0,nt.RG)(Co)}),Vi=["uploading","error"].includes((qe=Zi==null?void 0:Zi[0])==null?void 0:qe.status)||!Zi.length;return ot.createElement(ot.Fragment,null,ot.createElement(le.Z,{visible:Sr,totalCount:Qo,usedCount:Fo,onCancel:()=>Fr(!1),onOk:Ja}),ot.createElement(Lo.Z,{title:"\u667A\u80FD\u8BC6\u9898",extra:ot.createElement("div",{className:qn.extraHeader},ot.createElement(Je.Z,{align:"middle"},!Pa&&!!Za&&ot.createElement(ot.Fragment,null,ot.createElement($t.op,{onClick:Dr,className:"mr15",shape:"default"},"\u4FDD\u5B58\u8BD5\u9898"),ot.createElement($t.op,{onClick:qa,shape:"default",type:"text"},ot.createElement("i",{className:"iconfont icon-fuzhi8 mr5 font14"}),"\u590D\u5236")),ot.createElement("i",{onClick:()=>{const Co=Cr=>{Ft.default.confirm({centered:!0,icon:null,width:500,zIndex:1101,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Cr,onOk:()=>{li(!1)}})};if(Pa){Co("\u6B63\u5728\u751F\u6210\u8BD5\u9898\u4E2D\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F");return}else Za?Co("\u8BD5\u9898\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F"):li(!1)},className:"iconfont icon-guanbi11 current ml15"}))),placement:"bottom",height:"100%",headerStyle:{height:54,borderBottomColor:"#DCDCDC"},bodyStyle:{padding:0},closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:$i},ot.createElement("div",{className:qn.wrap},ot.createElement("div",{className:qn.left},ot.createElement("div",{className:qn.tip},"\u6839\u636E\u7528\u6237\u4E0A\u4F20\u7684\u8BD5\u9898\u6587\u4EF6\uFF08Word\u3001PDF\u3001\u56FE\u7247\uFF09\uFF0C\u667A\u80FD\u8BC6\u522B\u5E76\u63D0\u53D6\u6587\u5B57\u3001\u4EE3\u7801\u3001\u516C\u5F0F\u3001\u7EC4\u5408\u63D0\u70BC\u751F\u6210\u8BD5\u9898"),ot.createElement("div",{style:{margin:"auto 0"}},ot.createElement(Hn,{accept:".doc,.docx,.pdf,.png,.jpg",action:`${He.Z.API_SERVER}/api/attachments.json`,maxCount:1,fileList:Zi,withCredentials:!0,data:{upload_type:1},beforeUpload:Aa,onChange:({file:Co})=>{var Cr,No;Co.status!=="removed"&&(Co.status==="done"&&((Cr=Co==null?void 0:Co.response)==null?void 0:Cr.status)!==0&&(Co.status="error",Co.response=(No=Co==null?void 0:Co.response)==null?void 0:No.message),wo([Co]))},onRemove:()=>wo([]),height:280},ot.createElement(Je.Z,{align:"middle",justify:"center",style:{flexDirection:"column"}},ot.createElement("div",{className:"iconfont icon-shangchuanwenjian2 c-light-primary font30"}),ot.createElement("div",{className:"c-light-primary mb10 mt10"},"\u70B9\u51FB\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u8FD9\u91CC\u4E0A\u4F20"),ot.createElement("div",{className:"c-grey-666"},"\u652F\u6301\u6269\u5C55\u540D\uFF1A.doc .docx .pdf .jpg .png",ot.createElement("br",null),"\u4E00\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u6587\u4EF6\uFF0C\u5927\u5C0F\u9650\u5236\u4E3A10MB"))),Pa?ot.createElement("div",{onClick:Ar,className:qn.bottomBtn},ot.createElement("i",{className:"iconfont icon-tingzhihuida"}),"\u505C\u6B62\u8BC6\u522B"):Vi?ot.createElement("div",{className:`${qn.bottomBtn} ${qn.disabled}`},ot.createElement("i",{className:"iconfont icon-kaishishibie font14"}),"\u5F00\u59CB\u8BC6\u522B"):ot.createElement("div",{onClick:()=>{if(Qo!==-1){Fr(!0);return}Ja()},className:qn.bottomBtn},ot.createElement("i",{className:"iconfont icon-kaishishibie font14"}),"\u5F00\u59CB\u8BC6\u522B"))),ot.createElement(Ct.Z,{onStatusChange:Br,loadingText:"\u8BD5\u9898\u751F\u6210\u4E2D",fetchUrl:"/api/stream/intelligent_imports/stream.json",showEditableToolbar:!Jo,noRestrictModal:rr,stringTransformer:Jn.o,onError:Co=>{Object.prototype.toString.call(Co)==="[object Object]"&&Co.status===-9&&rr(Co.data)}}))),ot.createElement(Lo.Z,{placement:"bottom",height:"100%",closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:ci},ot.createElement(Je.Z,{align:"middle",style:{margin:"8px auto 24px auto",width:1200,fontWeight:600},className:"c-black font18"},ot.createElement("img",{src:St(56914),alt:"\u667A\u80FD\u8BC6\u9898"}),ot.createElement("span",{className:"ml10"},"\u667A\u80FD\u8BC6\u9898")),ot.createElement(tn.Z,{stickyTop:-24,hideWordFeatures:!0,dataSource:Gi,isRefreshItemBank:!0,okText:"\u5BFC\u5165\u9898\u5E93",mode:1,onCancel:()=>Xi(!1),onSuccess:()=>{Xi(!1),li(!1)}}),ot.createElement("div",{style:{height:70}})),Go("\u5904\u7406\u4E2D"))}),Re={wrap:"wrap___z0sz8",left:"left___UhYMe",tip:"tip___QdnuL",bottomBtn:"bottomBtn___m6Ir2",disabled:"disabled___IOEPc"},_e=(Ne,Ze,qe)=>new Promise((ci,Xi)=>{var Zi=li=>{try{$i(qe.next(li))}catch(Gi){Xi(Gi)}},wo=li=>{try{$i(qe.throw(li))}catch(Gi){Xi(Gi)}},$i=li=>li.done?ci(li.value):Promise.resolve(li.value).then(Zi,wo);$i((qe=qe.apply(Ne,Ze)).next())});const{Dragger:me}=Zo.default;var te=(0,ot.forwardRef)(({onUpdateNum:Ne},Ze)=>{var qe;const[ci,Xi]=(0,ot.useState)(!1),[Zi,wo]=(0,ot.useState)([]),[$i,li]=(0,ot.useState)(null),[Gi,bo]=(0,ot.useState)([]),[Qo,Vo]=(0,ot.useState)(0),[Fo,fo]=(0,ot.useState)(0),[Sr,Fr]=(0,ot.useState)(!1),[Rr,Br]=(0,ot.useState)(""),[Ga,Za]=(0,ot.useState)(Ct.Q),{contentRef:Pa,value:ka,status:Ar,open:Ta,close:oo}=Ga,Ro=(0,Mn.Z)({contentRef:Pa,status:Ar}),{openProgress:Go,closeProgress:Jo,CreateProgressModal:Ia,progressOpen:rr}=(0,zt.Z)();(0,ot.useEffect)(()=>{$i&&Dr(),$i===!1&&(oo(),Ne(),wo([]))},[$i]),(0,ot.useEffect)(()=>{if(!Ar&&(Pa!=null&&Pa.current)){const No=Pa.current.querySelector('h2[data-type="title"]');if(No){const xr=No.textContent;Br(xr)}}},[Ar]);const Aa=()=>{li(!0)};(0,ot.useImperativeHandle)(Ze,()=>({onClick:Aa}));const ms=No=>{Fr(!0),Vo(No),fo(0)},Ja=No=>_e(void 0,null,function*(){const xr=No.name.split(".").slice(-1)[0].toLowerCase();return["docx","doc","pdf","png","jpg"].indexOf(xr)==-1?(Fn.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u683C\u5F0F\u6709\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):No.size/1024/1024>10?(Fn.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):!0}),Dr=()=>_e(void 0,null,function*(){const No=yield(0,Dn.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});No.status===0&&(Vo(No.total_number),fo(No.remaining_number))}),qa=()=>_e(void 0,null,function*(){var No,xr;Fr(!1);const Tr={scene_type:4,request_identifier:Math.random(),file_id:(xr=(No=Zi[0])==null?void 0:No.response)==null?void 0:xr.id};yield Ta(Tr),Dr()}),Vi=()=>_e(void 0,null,function*(){Go(),Xi(!0),bo([]);const No=Ro(),xr=new FormData;xr.append("html",No);const br=yield(0,Dn.ZP)("/api/intelligent_imports/import.json",{method:"post",body:xr},!0);if((br==null?void 0:br.status)===0)if(br!=null&&br.data){Jo(100),bo(br==null?void 0:br.data);return}else Fn.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u5377");Xi(!1),Jo()}),Co=()=>_e(void 0,null,function*(){const No=Ro(!0);(0,nt.RG)(No)}),Cr=["uploading","error"].includes((qe=Zi==null?void 0:Zi[0])==null?void 0:qe.status)||!Zi.length;return ot.createElement(ot.Fragment,null,ot.createElement(le.Z,{visible:Sr,totalCount:Qo,usedCount:Fo,onCancel:()=>Fr(!1),onOk:qa}),ot.createElement(Lo.Z,{title:"\u667A\u80FD\u8BC6\u5377",extra:ot.createElement("div",{className:Re.extraHeader},ot.createElement(Je.Z,{align:"middle"},!Ar&&!!ka&&ot.createElement(ot.Fragment,null,ot.createElement($t.op,{onClick:Vi,className:"mr15",shape:"default"},"\u4FDD\u5B58\u81F3\u8BD5\u5377\u5E93"),ot.createElement($t.op,{onClick:Co,shape:"default",type:"text"},ot.createElement("i",{className:"iconfont icon-fuzhi8 mr5 font14"}),"\u590D\u5236")),ot.createElement("i",{onClick:()=>{const No=xr=>{Ft.default.confirm({centered:!0,icon:null,width:500,zIndex:1101,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:xr,onOk:()=>{li(!1)}})};if(Ar){No("\u6B63\u5728\u751F\u6210\u8BD5\u5377\u4E2D\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F");return}else ka?No("\u8BD5\u5377\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F"):li(!1)},className:"iconfont icon-guanbi11 current ml15"}))),placement:"bottom",height:"100%",headerStyle:{height:54,borderBottomColor:"#DCDCDC"},bodyStyle:{padding:0},closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:$i},ot.createElement("div",{className:Re.wrap},ot.createElement("div",{className:Re.left},ot.createElement("div",{className:Re.tip},"\u6839\u636E\u7528\u6237\u4E0A\u4F20\u7684\u8BD5\u5377\u6587\u4EF6\uFF08Word\u3001PDF\u3001\u56FE\u7247\uFF09\uFF0C\u667A\u80FD\u8BC6\u522B\u5E76\u63D0\u53D6\u6587\u5B57\u3001\u4EE3\u7801\u3001\u516C\u5F0F\u3001\u7EC4\u5408\u63D0\u70BC\u751F\u6210\u8BD5\u5377"),ot.createElement("div",{style:{margin:"auto 0"}},ot.createElement(me,{accept:".doc,.docx,.pdf,.png,.jpg",action:`${He.Z.API_SERVER}/api/attachments.json`,maxCount:1,fileList:Zi,withCredentials:!0,data:{upload_type:1},beforeUpload:Ja,onChange:({file:No})=>{var xr,br;No.status!=="removed"&&(No.status==="done"&&((xr=No==null?void 0:No.response)==null?void 0:xr.status)!==0&&(No.status="error",No.response=(br=No==null?void 0:No.response)==null?void 0:br.message),wo([No]))},onRemove:()=>wo([]),height:280},ot.createElement(Je.Z,{align:"middle",justify:"center",style:{flexDirection:"column"}},ot.createElement("div",{className:"iconfont icon-shangchuanwenjian2 c-light-primary font30"}),ot.createElement("div",{className:"c-light-primary mb10 mt10"},"\u70B9\u51FB\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u8FD9\u91CC\u4E0A\u4F20"),ot.createElement("div",{className:"c-grey-666"},"\u652F\u6301\u6269\u5C55\u540D\uFF1A.doc .docx .pdf .jpg .png",ot.createElement("br",null),"\u4E00\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u6587\u4EF6\uFF0C\u5927\u5C0F\u9650\u5236\u4E3A10MB"))),Ar?ot.createElement("div",{onClick:oo,className:Re.bottomBtn},ot.createElement("i",{className:"iconfont icon-tingzhihuida"}),"\u505C\u6B62\u8BC6\u522B"):Cr?ot.createElement("div",{className:`${Re.bottomBtn} ${Re.disabled}`},ot.createElement("i",{className:"iconfont icon-kaishishibie font14"}),"\u5F00\u59CB\u8BC6\u522B"):ot.createElement("div",{onClick:()=>{if(Qo!==-1){Fr(!0);return}qa()},className:Re.bottomBtn},ot.createElement("i",{className:"iconfont icon-kaishishibie font14"}),"\u5F00\u59CB\u8BC6\u522B"))),ot.createElement(Ct.Z,{onStatusChange:Za,loadingText:"\u8BD5\u5377\u751F\u6210\u4E2D",fetchUrl:"/api/stream/intelligent_imports/stream.json",showEditableToolbar:!rr,noRestrictModal:ms,stringTransformer:Jn.o,onError:No=>{Object.prototype.toString.call(No)==="[object Object]"&&No.status===-9&&ms(No.data)}}))),ot.createElement(Lo.Z,{placement:"bottom",height:"100%",closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:ci},ot.createElement(Je.Z,{align:"middle",style:{margin:"8px auto 24px auto",width:1200,fontWeight:600},className:"c-black font18"},ot.createElement("img",{src:St(71614),alt:"\u667A\u80FD\u8BC6\u5377"}),ot.createElement("span",{className:"ml10"},"\u667A\u80FD\u8BC6\u5377")),ot.createElement(tn.Z,{stickyTop:-24,hideWordFeatures:!0,dataSource:Gi,gather:{exercise_name:Rr},okText:"\u786E\u5B9A",mode:4,onCancel:()=>{Xi(!1)},onSuccess:No=>{var xr;window.location.href=`/paperlibrary/see/${(xr=No==null?void 0:No.data)==null?void 0:xr.obj_id}`}}),ot.createElement("div",{style:{height:70}})),Ia("\u5904\u7406\u4E2D"))}),Yt=St(10072),Vt=St(35339),Ve=St(93898),an={bigTips:"bigTips___PGtDh",item:"item___rGzq7",show:"show___a7b2P",mask:"mask___NqkVA"},pn=St(92310),We=St.n(pn),Sn=St(24065),ai=Object.defineProperty,gn=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,Xt=Object.prototype.propertyIsEnumerable,dn=(Ne,Ze,qe)=>Ze in Ne?ai(Ne,Ze,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Ne[Ze]=qe,De=(Ne,Ze)=>{for(var qe in Ze||(Ze={}))Qe.call(Ze,qe)&&dn(Ne,qe,Ze[qe]);if(gn)for(var qe of gn(Ze))Xt.call(Ze,qe)&&dn(Ne,qe,Ze[qe]);return Ne},Xe=(Ne,Ze,qe)=>new Promise((ci,Xi)=>{var Zi=li=>{try{$i(qe.next(li))}catch(Gi){Xi(Gi)}},wo=li=>{try{$i(qe.throw(li))}catch(Gi){Xi(Gi)}},$i=li=>li.done?ci(li.value):Promise.resolve(li.value).then(Zi,wo);$i((qe=qe.apply(Ne,Ze)).next())});const he=(...Ne)=>Xe(void 0,[...Ne],function*(Ze={}){var qe,ci,Xi,Zi;const wo=yield Fetch("/api/intelligent_imports/recognize.json",{method:"post",body:Ze},!0);if((wo==null?void 0:wo.status)!==0)return wo;const $i=(qe=wo==null?void 0:wo.data)==null?void 0:qe.ai_question_record_id;let li;do if(li=yield Fetch("/api/intelligent_imports/get_ai_question_record.json",{method:"get",params:{ai_question_record_id:$i}}),((ci=li==null?void 0:li.data)==null?void 0:ci.status)===1){console.log("\u64CD\u4F5C\u6210\u529F");break}else if(((Xi=li==null?void 0:li.data)==null?void 0:Xi.status)===0)console.log("\u8BC6\u522B\u4E2D\uFF0C\u7EE7\u7EED\u8F6E\u8BE2..."),yield new Promise(Gi=>setTimeout(Gi,2e3));else{console.log("\u72B6\u6001\u5F02\u5E38");break}while(((Zi=li==null?void 0:li.data)==null?void 0:Zi.status)===0);return li});var fn=()=>{const Ne=(0,fe.useLocation)(),[Ze,qe]=(0,ot.useState)(!1);(0,ot.useEffect)(()=>{var li,Gi;if((li=Ne.pathname)!=null&&li.includes("/problemset")||(Gi=Ne.pathname)!=null&&Gi.includes("/paperlibrary")){qe(!0);return}qe(!1)},[Ne==null?void 0:Ne.pathname]);const ci=[{img:St(56914),name:"\u667A\u80FD\u8BC6\u9898",des:"\u6839\u636E\u7528\u6237\u4E0A\u4F20\u7684\u8BD5\u9898\u6587\u4EF6\uFF08Word\u3001PDF\u3001\u56FE\u7247\uFF09\uFF0C\u667A\u80FD\u8BC6\u522B\u5E76\u63D0\u53D6\u6587\u5B57\u3001\u4EE3\u7801\u3001\u516C\u5F0F\uFF0C\u7EC4\u5408\u63D0\u70BC\u751F\u6210\u8BD5\u9898",show:!0,ref:ot.createRef(),element:Te},{img:St(71614),name:"\u667A\u80FD\u8BC6\u5377",des:"\u6839\u636E\u7528\u6237\u4E0A\u4F20\u7684\u8BD5\u5377\u6587\u4EF6\uFF08Word\u3001PDF\u3001\u56FE\u7247\uFF09\uFF0C\u667A\u80FD\u8BC6\u522B\u5E76\u63D0\u53D6\u6587\u5B57\u3001\u4EE3\u7801\u3001\u516C\u5F0F\uFF0C\u7EC4\u5408\u63D0\u70BC\u751F\u6210\u8BD5\u5377",show:!0,ref:ot.createRef(),element:te},{img:St(36413),name:"\u667A\u80FD\u51FA\u9898",des:"\u6839\u636E\u77E5\u8BC6\u70B9\u53CA\u4E0A\u4F20\u7684\u6559\u5B66\u6587\u6863\uFF0C\u81EA\u52A8\u751F\u6210\u5355\u9009\u3001\u591A\u9009\u3001\u5224\u65AD\u3001\u586B\u7A7A\u3001\u7B80\u7B54\u548C\u7F16\u7A0B\u9898\uFF0C\u63D0\u5347\u51FA\u9898\u6548\u7387",show:!0,ref:ot.createRef(),element:Vt.Z},{img:St(11215),name:"\u4EE5\u9898\u6362\u9898",des:"\u6839\u636E\u73B0\u6709\u8BD5\u9898\u7684\u9898\u578B\u3001\u65B9\u5411\u3001\u77E5\u8BC6\u70B9\u3001\u96BE\u6613\u5EA6\uFF0C\u5FEB\u901F\u751F\u6210\u65B0\u7684\u8BD5\u9898\uFF0C\u589E\u52A0\u8BD5\u9898\u7684\u4E30\u5BCC\u5EA6",show:!0,ref:ot.createRef(),element:Yt.Z},{img:St(13825),name:"\u4EE5\u5377\u6362\u5377",des:"\u6839\u636E\u73B0\u6709\u8BD5\u5377\u7684\u9898\u578B\u3001\u65B9\u5411\u3001\u77E5\u8BC6\u70B9\u3001\u96BE\u6613\u5EA6\uFF0C\u5FEB\u901F\u751F\u6210\u65B0\u7684\u8BD5\u5377\uFF0C\u589E\u52A0\u8BD5\u5377\u7684\u4E30\u5BCC\u5EA6",show:!0,ref:ot.createRef(),element:Ve.Z},{img:St(57655),name:"\u667A\u80FD\u7EA0\u9519",des:"\u81EA\u52A8\u8BC6\u522B\u8BD5\u9898\u6216\u8BD5\u5377\u7684\u9519\u522B\u5B57\u3001\u68C0\u67E5\u8BED\u53E5\u7684\u8FDE\u8D2F\u6027\u4E0E\u8BD5\u9898\u7684\u51C6\u786E\u6027\uFF0C\u53D1\u73B0\u8BD5\u9898\u6216\u8BD5\u5377\u7684\u6F5C\u5728\u9519\u8BEF"}],Xi=li=>{const{isDisabledNum:Gi,checkNumModal:bo,checkNum:Qo,onClose:Vo}=li;return ot.createElement("div",{className:an.bigTips},ci.map((Fo,fo)=>ot.createElement("div",{key:fo,onClick:()=>{var Sr,Fr;if(Fo.show){if(Gi){bo();return}(Fr=(Sr=Fo.ref)==null?void 0:Sr.current)==null||Fr.onClick()}},className:We()(an.item,(Fo==null?void 0:Fo.show)&&an.show)},ot.createElement(Je.Z,{align:"middle"},ot.createElement("img",{className:"mr10",src:Fo.img,width:24}),ot.createElement("span",{style:{color:"#232B40",fontSize:16,fontWeight:600}},Fo.name)),ot.createElement("div",{className:"mt10",style:{color:"#434D6C",paddingLeft:34}},Fo.des),!(Fo!=null&&Fo.show)&&ot.createElement("div",{className:an.mask},"\u656C\u8BF7\u671F\u5F85\uFF5E"),!!(Fo!=null&&Fo.show)&&ot.createElement("div",{onClick:Sr=>Sr.stopPropagation()}," ",ot.createElement(Fo.element,{ref:Fo.ref,onUpdateNum:Qo,onClose:Vo})))))},Zi=li=>{let Gi=[];return li==null||li.forEach(bo=>{const Qo=bo.id,Vo=bo.think?{reasoning:bo.think,thinkingEnabled:!0}:{},Fo=[{text:bo.question,key:Qo,sender:"user",fileList:[],show:!0},De({key:Qo,loading:!1,sender:"AI",show:!0,source:bo.answer_source,text:bo.answer,like:bo.like,dislike:bo.dislike,time:bo.think_time,id:bo.id},Vo)];Gi=[...Gi,...Fo]}),Gi},wo="-1",$i={onAdd:()=>(0,Dn.ZP)("/api/course_qna_sessions/create_session.json",{method:"get"}),onGetList:()=>(0,Dn.ZP)("/api/course_qna_sessions.json",{method:"get",params:{questionable_type:"ItemBank",by_self:!0}}),onListClick:li=>(0,Dn.ZP)(`/api/course_qna_sessions/${li}.json`,{method:"get"}),onListDelete:li=>(0,Dn.ZP)(`/api/course_qna_sessions/${li}.json`,{method:"delete"}),onListDealData:Zi};return ot.createElement(ot.Fragment,null,Ze&&(0,Sn.$O)()&&ot.createElement(Eo.Z,{showSwitchingModel:!0,showLookHistory:!0,showAddSession:!0,fetchListObject:$i,headNode:ot.createElement(ot.Fragment,null,ot.createElement("div",{className:"c-grey-333 font22"},ot.createElement("span",{className:"mr5"},"\u{1F44B}"),"\u55E8\uFF0C\u6211\u662F\u667A\u80FD\u52A9\u6559\u5C0F\u6B4C\uFF0C\u60A8\u7684\u6559\u5B66\u597D\u5E2E\u624B\u3002"),ot.createElement("div",{className:"font16 mt20",style:{color:"#434D6C"}},ot.createElement("span",{style:{paddingLeft:33}}," \u5728\u8BD5\u9898\u5E93/\u8BD5\u5377\u5E93\u6A21\u5757\uFF0C\u6211\u5177\u5907\u6559\u80B2\u5927\u8BED\u8A00\u6A21\u578B\u7684\u5F3A\u5927\u751F\u6210\u80FD\u529B\uFF0C\u901A\u8FC7\u667A\u80FD\u5316\u7684\u51FA\u9898\u548C\u7EC4\u5377\u5DE5\u5177\uFF0C\u4E3A\u60A8\u63D0\u4F9B\u9AD8\u6548\u3001\u7CBE\u51C6\u3001\u4E2A\u6027\u5316\u7684\u8BD5\u9898\u751F\u6210\u670D\u52A1\uFF0C\u652F\u6301\u591A\u5B66\u79D1\u3001\u591A\u9898\u578B\u548C\u4E0D\u540C\u96BE\u6613\u5EA6\uFF0C\u6EE1\u8DB3\u60A8\u7684\u591A\u5143\u5316\u6559\u5B66\u9700\u6C42\u3002"))),headFunctionNode:Xi,fetchData:{questionable_type:"ItemBank",is_chat:!0},isCheckRestrictNumber:!0,title:"\u667A\u80FD\u52A9\u6559",fetchUrl:"/api/stream/course_qna_records/chat_messages.json"}))},Di=Object.defineProperty,oi=Object.getOwnPropertySymbols,ii=Object.prototype.hasOwnProperty,Bn=Object.prototype.propertyIsEnumerable,Kn=(Ne,Ze,qe)=>Ze in Ne?Di(Ne,Ze,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Ne[Ze]=qe,ki=(Ne,Ze)=>{for(var qe in Ze||(Ze={}))ii.call(Ze,qe)&&Kn(Ne,qe,Ze[qe]);if(oi)for(var qe of oi(Ze))Bn.call(Ze,qe)&&Kn(Ne,qe,Ze[qe]);return Ne};const bi=Ne=>React.createElement("svg",ki({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},Ne),React.createElement("title",null,"\u56FE\u6587\u4F5C\u4E1A\u667A\u80FD\u8BC4\u9605"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M13.047.001H9.431v.01a2.18 2.18 0 0 0-1.902 1.586A2.18 2.18 0 0 0 5.627.01V.001H2.01C.9.001 0 .901 0 2.011v8.493c0 1.11.9 2.01 2.01 2.01h2.746v.014h.475v.012c.078-.009.158-.012.238-.012a2.118 2.118 0 0 1 1.982 1.262v.165h.158v-.168a2.118 2.118 0 0 1 1.98-1.26c.08 0 .158.004.238.013v-.012h.475v-.016h2.745c1.11 0 2.01-.9 2.01-2.01V2.009a2.012 2.012 0 0 0-2.01-2.008Zm.638 8.805-2.534 2.536a.344.344 0 0 1-.485 0L9.317 9.989a.343.343 0 0 1 .483-.487l1.108 1.11 2.292-2.29a.343.343 0 1 1 .485.485Z",fill:"#1EDEB8"}),React.createElement("path",{d:"M2.028 10.024a.441.441 0 1 1 0-.884h3.395a.442.442 0 1 1-.002.884H2.028Zm7.607-2.159a.442.442 0 0 1 0-.884h3.395a.442.442 0 0 1 0 .884H9.635Zm-7.607 0a.442.442 0 0 1 0-.884h3.395a.442.442 0 0 1 0 .884H2.028ZM9.635 5.81a.442.442 0 0 1 0-.884h3.395a.442.442 0 0 1 0 .884H9.635Zm-7.607 0a.442.442 0 0 1 0-.884h3.395a.442.442 0 0 1 0 .884H2.028Zm7.607-2.285a.442.442 0 0 1 0-.884h3.395a.442.442 0 0 1 0 .884H9.635Zm-7.607 0a.442.442 0 0 1 0-.884h3.395a.442.442 0 0 1 0 .884H2.028Z",fill:"#FFF",opacity:.59})));var Hi="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMTMuMDQ3LjAwMUg5LjQzMXYuMDFhMi4xOCAyLjE4IDAgMCAwLTEuOTAyIDEuNTg2QTIuMTggMi4xOCAwIDAgMCA1LjYyNy4wMVYuMDAxSDIuMDFDLjkuMDAxIDAgLjkwMSAwIDIuMDExdjguNDkzYzAgMS4xMS45IDIuMDEgMi4wMSAyLjAxaDIuNzQ2di4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SDkuNjM1Wm0tNy42MDcgMGEuNDQyLjQ0MiAwIDAgMSAwLS44ODRoMy4zOTVhLjQ0Mi40NDIgMCAwIDEgMCAuODg0SDIuMDI4WiIgZmlsbD0iI0ZGRiIgb3BhY2l0eT0iLjU5Ii8+PC9nPjwvc3ZnPg==",yn=Object.defineProperty,uo=Object.getOwnPropertySymbols,Qi=Object.prototype.hasOwnProperty,io=Object.prototype.propertyIsEnumerable,sn=(Ne,Ze,qe)=>Ze in Ne?yn(Ne,Ze,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Ne[Ze]=qe,Gn=(Ne,Ze)=>{for(var qe in Ze||(Ze={}))Qi.call(Ze,qe)&&sn(Ne,qe,Ze[qe]);if(uo)for(var qe of uo(Ze))io.call(Ze,qe)&&sn(Ne,qe,Ze[qe]);return Ne};const wi=Ne=>React.createElement("svg",Gn({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Ne),React.createElement("title",null,"\u8BD5\u5377\u7B80\u7B54\u9898\u667A\u80FD\u8BC4\u9605"),React.createElement("path",{d:"M12.923 0H2.693c-.595 0-1.077.482-1.077 1.077v10.77H0v1.076A1.077 1.077 0 0 0 1.077 14h10.23c.595 0 1.077-.482 1.077-1.077V2.153H14V1.078C14 .482 13.518 0 12.923 0ZM4.038 2.692H6.73a.27.27 0 1 1 0 .538H4.038a.27.27 0 0 1 0-.538Zm-2.961 10.77a.538.538 0 0 1-.539-.539v-.538h9.154v.538c0 .19.05.375.144.539h-8.76Zm8.884-3.77H4.038a.27.27 0 0 1 0-.538h5.924a.27.27 0 1 1 0 .538H9.96ZM3.769 7.27c0-.148.12-.269.27-.269h3.769a.27.27 0 1 1 0 .538h-3.77a.27.27 0 0 1-.269-.269Zm6.193-1.884H4.038a.27.27 0 0 1 0-.538h5.924a.27.27 0 1 1 0 .538Zm3.5-3.77h-1.078v-.538a.538.538 0 1 1 1.077 0v.539Z",fill:"#1890FF",fillRule:"nonzero"}));var ji="data:image/svg+xml;base64,PHN2ZyB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(li=(0,$e.g)())==null?void 0:li.course_id;ci(!1),Ne(),fe.history.push(`/classrooms/${Gi}/${$i}`)},wo=[{icon:Hi,name:"\u56FE\u6587\u4F5C\u4E1A\u667A\u80FD\u8BC4\u9605",description:"\u5728\u56FE\u6587\u4F5C\u4E1A\u7684\u8BC4\u9605\u9875\u9762\uFF0C\u53EF\u4EE5\u4F7F\u7528\u667A\u80FD\u8BC4\u9605\u529F\u80FD\uFF0C\u8BA9AI\u52A9\u6559\u5E2E\u52A9\u4F60\u6253\u5206\u548C\u5199\u8BC4\u8BED\u3002",explainHref:"https://www.educoder.net/forums/38915",type:"common_homework"},{icon:ji,name:"\u8BD5\u5377\u7B80\u7B54\u9898\u667A\u80FD\u8BC4\u9605",description:"\u5728\u8BD5\u5377\u7684\u8BC4\u9605\u9875\u9762\uFF0C\u53EF\u4EE5\u4F7F\u7528\u667A\u80FD\u8BC4\u9605\u529F\u80FD\uFF0C\u81EA\u52A8\u6279\u6539\u7B80\u7B54\u9898\uFF0C\u667A\u80FD\u6253\u5206\u5E76\u751F\u6210\u8BC4\u8BED\uFF0C\u4E3A\u60A8\u63D0\u5347\u8BC4\u9605\u6548\u7387\u3002",explainHref:"https://www.educoder.net/forums/40205",type:"exercise"}];return Ci.createElement(ot.Fragment,null,Ci.createElement(Ft.default,{centered:!0,open:qe,title:"\u667A\u80FD\u8BC4\u9605",width:850,onCancel:()=>ci(!1),footer:null,bodyStyle:{paddingBottom:25}},wo.map(($i,li)=>{const{icon:Gi,name:bo,description:Qo,explainHref:Vo,type:Fo}=$i;return Ci.createElement("div",{key:li,style:{marginBottom:liZi(Fo),style:{width:88},className:"mt20",type:"primary"},"\u53BB\u5F00\u542F"))))})))}),zi=Object.defineProperty,Ei=Object.getOwnPropertySymbols,Ki=Object.prototype.hasOwnProperty,Ln=Object.prototype.propertyIsEnumerable,ho=(Ne,Ze,qe)=>Ze in Ne?zi(Ne,Ze,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Ne[Ze]=qe,bn=(Ne,Ze)=>{for(var qe in Ze||(Ze={}))Ki.call(Ze,qe)&&ho(Ne,qe,Ze[qe]);if(Ei)for(var qe of Ei(Ze))Ln.call(Ze,qe)&&ho(Ne,qe,Ze[qe]);return Ne};const ao=Ne=>React.createElement("svg",bn({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Ne),React.createElement("title",null,"\u8BFE\u5802\u5B9E\u9A8C\u7F16\u7801\u52A9\u624B"),React.createElement("path",{d:"M13.454 0H.504A.503.503 0 0 0 0 .503v2.181h13.957V.504A.503.503 0 0 0 13.454 0ZM2.89 1.845h-.537a.503.503 0 0 1 0-1.006h.537a.503.503 0 0 1 0 1.006Zm2.121 0h-.537a.503.503 0 0 1 0-1.006h.537a.503.503 0 0 1 0 1.006Zm6.593 0H9.255a.503.503 0 1 1 0-1.006h2.349a.503.503 0 1 1 0 1.006ZM0 3.657v9.763c0 .278.225.504.503.504h12.95a.503.503 0 0 0 .504-.504V3.657H0Zm4.778 6.549a.503.503 0 1 1-.698.725L1.798 8.733a.503.503 0 0 1 0-.725L4.08 5.811a.503.503 0 0 1 .698.725L2.873 8.37l1.905 1.835Zm3.81-4.562-2.282 5.821a.503.503 0 0 1-.937-.367l2.282-5.821a.503.503 0 1 1 .937.367Zm3.57 3.09-2.28 2.197a.503.503 0 0 1-.699-.725l1.905-1.835L9.18 6.536a.503.503 0 0 1 .698-.725l2.282 2.197a.503.503 0 0 1 0 .725Z",fill:"#0368CD",fillRule:"nonzero"}));var Mo="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEzLjQ1NCAwSC41MDRBLjUwMy41MDMgMCAwIDAgMCAuNTAzdjIuMTgxaDEzLjk1N1YuNTA0QS41MDMuNTAzIDAgMCAwIDEzLjQ1NCAwWk0yLjg5IDEuODQ1aC0uNTM3YS41MDMuNTAzIDAgMCAxIDAtMS4wMDZoLjUzN2EuNTAzLjUwMyAwIDAgMSAwIDEuMDA2Wm0yLjEyMSAwaC0uNTM3YS41MDMuNTAzIDAgMCAxIDAtMS4wMDZoLjUzN2EuNTAzLjUwMyAwIDAgMSAwIDEuMDA2Wm02LjU5MyAwSDkuMjU1YS41MDMuNTAzIDAgMSAxIDAtMS4wMDZoMi4zNDlhLjUwMy41MDMgMCAxIDEgMCAxLjAwNlpNMCAzLjY1N3Y5Ljc2M2MwIC4yNzguMjI1LjUwNC41MDMuNTA0aDEyLjk1YS41MDMuNTAzIDAgMCAwIC41MDQtLjUwNFYzLjY1N0gwWm00Ljc3OCA2LjU0OWEuNTAzLjUwMyAwIDEgMS0uNjk4LjcyNUwxLjc5OCA4LjczM2EuNTAzLjUwMyAwIDAgMSAwLS43MjVMNC4wOCA1LjgxMWEuNTAzLjUwMyAwIDAgMSAuNjk4LjcyNUwyLjg3MyA4LjM3bDEuOTA1IDEuODM1Wm0zLjgxLTQuNTYyLTIuMjgyIDUuODIxYS41MDMuNTAzIDAgMCAxLS45MzctLjM2N2wyLjI4Mi01LjgyMWEuNTAzLjUwMyAwIDEgMSAuOTM3LjM2N1ptMy41NyAzLjA5LTIuMjggMi4xOTdhLjUwMy41MDMgMCAwIDEtLjY5OS0uNzI1bDEuOTA1LTEuODM1TDkuMTggNi41MzZhLjUwMy41MDMgMCAwIDEgLjY5OC0uNzI1bDIuMjgyIDIuMTk3YS41MDMuNTAzIDAgMCAxIDAgLjcyNVoiIGZpbGw9IiMwMzY4Q0QiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",Ao=Object.defineProperty,Uo=Object.getOwnPropertySymbols,So=Object.prototype.hasOwnProperty,di=Object.prototype.propertyIsEnumerable,_i=(Ne,Ze,qe)=>Ze in Ne?Ao(Ne,Ze,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Ne[Ze]=qe,Po=(Ne,Ze)=>{for(var qe in Ze||(Ze={}))So.call(Ze,qe)&&_i(Ne,qe,Ze[qe]);if(Uo)for(var qe of Uo(Ze))di.call(Ze,qe)&&_i(Ne,qe,Ze[qe]);return Ne};const eo=Ne=>React.createElement("svg",Po({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Ne),React.createElement("title",null,"\u7F16\u7A0B\u4F5C\u4E1A\u7F16\u7801\u52A9\u624B"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M.438 10.106h13.124c.242 0 .438.196.438.438v1.706A1.75 1.75 0 0 1 12.25 14H1.75A1.75 1.75 0 0 1 0 12.25v-1.706c0-.242.196-.438.438-.438Z",fill:"#4988FD"}),React.createElement("path",{d:"M2.406 0h9.188c.966 0 1.75.784 1.75 1.75v6.825a.438.438 0 0 1-.438.438H1.094a.438.438 0 0 1-.438-.438V1.75C.656.784 1.44 0 2.406 0Z",fill:"#DFECFD"}),React.createElement("path",{d:"M12.469 9.012H1.53a.876.876 0 0 1-.875-.875V1.75C.656.785 1.441 0 2.406 0h9.188c.965 0 1.75.785 1.75 1.75v6.387a.876.876 0 0 1-.875.875ZM1.969 7.7H12.03V1.75a.438.438 0 0 0-.437-.438H2.406a.438.438 0 0 0-.437.438V7.7Z",fill:"#DFECFD"}),React.createElement("path",{d:"M3.456 6.563a.656.656 0 0 1-.464-1.12l2.45-2.45a.656.656 0 1 1 .928.927L3.92 6.37a.654.654 0 0 1-.464.193ZM2.625 4.55a.656.656 0 0 1-.464-1.12l1.312-1.313a.656.656 0 1 1 .929.928L3.089 4.358a.654.654 0 0 1-.464.192Z",fill:"#4988FD"}),React.createElement("path",{d:"M2.888 12.6h-1.4a.569.569 0 1 1 0-1.137h1.4a.569.569 0 1 1 0 1.137Zm3.15 0h-1.4a.569.569 0 1 1 0-1.137h1.4a.569.569 0 1 1 0 1.137Z",fill:"#FFF"})));var hi="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL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OEwzLjA4OSA0LjM1OGEuNjU0LjY1NCAwIDAgMS0uNDY0LjE5MloiIGZpbGw9IiM0OTg4RkQiLz48cGF0aCBkPSJNMi44ODggMTIuNmgtMS40YS41NjkuNTY5IDAgMSAxIDAtMS4xMzdoMS40YS41NjkuNTY5IDAgMSAxIDAgMS4xMzdabTMuMTUgMGgtMS40YS41NjkuNTY5IDAgMSAxIDAtMS4xMzdoMS40YS41NjkuNTY5IDAgMSAxIDAgMS4xMzdaIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==",Ot=St(59301),Yo=(0,ot.forwardRef)(({onClose:Ne},Ze)=>{const[qe,ci]=(0,ot.useState)(!1),Xi=()=>{ci(!0)};(0,ot.useImperativeHandle)(Ze,()=>({onClick:Xi}));const Zi=$i=>{var li;const Gi=(li=(0,$e.g)())==null?void 0:li.course_id;ci(!1),Ne(),fe.history.push(`/classrooms/${Gi}/${$i}`)},wo=[{icon:Mo,name:"\u8BFE\u5802\u5B9E\u9A8C\u7F16\u7801\u52A9\u624B",description:"\u5728\u8BFE\u5802\u5B9E\u9A8C\u7684\u7F16\u7A0B\u9875\u9762\uFF0C\u53EF\u4EE5\u4E3A\u5B66\u751F\u63D0\u4F9B\u667A\u80FD\u5BA1\u9898\u3001\u4EE3\u7801\u8BCA\u65AD\u548CAI\u8F85\u5BFC\u7B49\u529F\u80FD\u3002",explainHref:"https://www.educoder.net/forums/40241",type:"shixun_homework"},{icon:hi,name:"\u7F16\u7A0B\u4F5C\u4E1A\u7F16\u7801\u52A9\u624B",description:"\u5728\u7F16\u7A0B\u7684\u7F16\u7A0B\u9875\u9762\uFF0C\u53EF\u4EE5\u4E3A\u5B66\u751F\u63D0\u4F9B\u667A\u80FD\u5BA1\u9898\u3001\u4EE3\u7801\u8BCA\u65AD\u548CAI\u8F85\u5BFC\u7B49\u529F\u80FD\u3002",explainHref:"https://www.educoder.net/forums/40242",type:"program_homework"}];return Ot.createElement(ot.Fragment,null,Ot.createElement(Ft.default,{centered:!0,open:qe,title:"\u7F16\u7801\u52A9\u624B",width:850,onCancel:()=>ci(!1),footer:null,bodyStyle:{paddingBottom:25}},wo.map(($i,li)=>{const{icon:Gi,name:bo,description:Qo,explainHref:Vo,type:Fo}=$i;return Ot.createElement("div",{key:li,style:{marginBottom:liZi(Fo),style:{width:88},className:"mt20",type:"primary"},"\u53BB\u5F00\u542F"))))})))}),tr=St(78673),_t=Object.defineProperty,Zn=Object.getOwnPropertySymbols,si=Object.prototype.hasOwnProperty,Ii=Object.prototype.propertyIsEnumerable,_n=(Ne,Ze,qe)=>Ze in Ne?_t(Ne,Ze,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Ne[Ze]=qe,Ai=(Ne,Ze)=>{for(var qe in Ze||(Ze={}))si.call(Ze,qe)&&_n(Ne,qe,Ze[qe]);if(Zn)for(var qe of Zn(Ze))Ii.call(Ze,qe)&&_n(Ne,qe,Ze[qe]);return Ne};const pi=Ne=>React.createElement("svg",Ai({width:14,height:14,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},Ne),React.createElement("title",null,"\u95EE\u7B54\u96C6"),React.createElement("defs",null,React.createElement("path",{id:"a_svg__a",d:"M0 0h14v14H0z"})),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("mask",{id:"a_svg__b",fill:"#fff"},React.createElement("use",{xlinkHref:"#a_svg__a"})),React.createElement("use",{fill:"#F6F7F9",opacity:.01,xlinkHref:"#a_svg__a"}),React.createElement("g",{mask:"url(#a_svg__b)",fill:"#42D5A0",fillRule:"nonzero"},React.createElement("path",{d:"M3.389 11.063a.722.722 0 0 0-.724-.72H.738a.722.722 0 1 0 0 1.442h1.927c.4 0 .724-.324.724-.722ZM.015 6.975c0 .399.324.721.723.721h1.927a.722.722 0 1 0 0-1.443H.738a.722.722 0 0 0-.723.722ZM.738 3.608h1.927a.722.722 0 1 0 0-1.442H.738a.722.722 0 1 0 0 1.442Z"}),React.createElement("path",{d:"M13.117 0c.55 0 .997.324.997.722v12.505c0 .399-.447.722-.997.722H2.184a.722.722 0 0 1-.723-.722v-.72h1.204a1.444 1.444 0 1 0 0-2.887H1.461V8.418h1.204a1.444 1.444 0 1 0 0-2.885H1.461V4.33h1.204a1.444 1.444 0 1 0 0-2.887H1.461v-.72c0-.4.323-.722.723-.722Zm-2.562 8.636a.49.49 0 0 0-.21.05H6.6l-.035-.05c-.257.067-.397.218-.42.453-.024.068 0 .168.07.302 0 .034.011.05.035.05a3.006 3.006 0 0 0 0 .655c.023.27.035.47.035.605v.251c0 .202-.012.387-.035.554 0 .068-.024.169-.07.303v.15c0 .135.116.219.35.253.163 0 .28-.05.35-.152h3.291c.07.067.21.118.42.152l.14-.05a.498.498 0 0 0 .14-.253c0-.1-.011-.251-.034-.453a1.46 1.46 0 0 1 0-.453c-.024-.033-.035-.117-.035-.252 0-.772.023-1.225.07-1.36v-.05c.07-.134.105-.235.105-.302l-.035-.05c-.024-.034-.024-.068 0-.102-.164-.133-.293-.218-.386-.251ZM8.28 4.656c-.14.068-.245.253-.316.555-.747 1.175-1.949 1.78-3.606 1.813l.07.403c.14.437.397.655.77.655.397 0 .876-.168 1.436-.504 0 .068-.012.151-.035.252-.024.1-.024.168 0 .201-.024.068 0 .118.07.151h.07c.117.034.303.018.56-.05.257-.033.455-.05.595-.05.21 0 .584.017 1.12.05h1.121c.07 0 .105-.05.105-.151v-.554c.537.37 1.016.554 1.436.554.42 0 .712-.386.875-1.159h-.07c-1.354 0-2.52-.486-3.501-1.46a.668.668 0 0 0 .07-.202c0-.133-.105-.234-.315-.302-.024 0-.035-.016-.035-.05-.094-.1-.234-.151-.42-.151Zm-1.26-.15h-.526c-.187 0-.269.067-.245.201.046.437.105.806.175 1.108 0 .068.011.084.035.05.327.034.49-.133.49-.503 0-.202.023-.353.07-.453a.616.616 0 0 0 0-.403Zm3.71-.202h-.525c-.14.034-.21.068-.21.1.047.64.117 1.008.21 1.109.023.034.058.034.105 0a.241.241 0 0 1 .14-.05c.14-.033.245-.37.316-1.008a.534.534 0 0 0-.035-.15ZM6.565 2.24a.364.364 0 0 0-.14.1c-.07 0-.14.135-.21.404v.05a4.36 4.36 0 0 1-.525.856c-.234.202-.573.37-1.016.504a.767.767 0 0 1-.175.05c.117.572.362.874.735.907.35-.033.829-.47 1.436-1.31.63.639 1.027.991 1.19 1.058.07-.033.187-.385.35-1.057-.023-.067-.104-.134-.245-.202-.187-.067-.432-.234-.735-.504a12.317 12.317 0 0 1-.105-.15v-.051a.35.35 0 0 0 .07-.202c-.047-.1-.187-.201-.42-.302-.07-.1-.14-.15-.21-.15Zm3.606-.1-.14.1c-.07 0-.128.118-.175.353v.1a1.592 1.592 0 0 1-.42.605c-.374.336-.747.52-1.12.554.07.604.303.924.7.957.35-.067.782-.453 1.295-1.159.56.74 1.062 1.193 1.506 1.36.303 0 .537-.352.7-1.057-.467-.033-1.05-.386-1.75-1.058.023-.1.035-.202.035-.302-.047-.101-.188-.202-.42-.302-.07-.101-.14-.152-.21-.152Z"}),React.createElement("path",{d:"M8.105 9.693h-.98V11.154h2.87v-1.46H8.105ZM8.455 6.067c-.28.336-.69.722-1.226 1.158h2.696c-.327-.201-.77-.536-1.33-1.007a1.13 1.13 0 0 1-.14-.151Z"}))));var mi="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNMCAwaDE0djE0SDB6Ii8+PC9kZWZzPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PG1hc2sgaWQ9ImIiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2EiLz48L21hc2s+PHVzZSBmaWxsPSIjRjZGN0Y5IiBvcGFjaXR5PSIuMDEiIHhsaW5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LjIxLS4xNVptMy42MDYtLjEtLjE0LjFjLS4wNyAwLS4xMjguMTE4LS4xNzUuMzUzdi4xYTEuNTkyIDEuNTkyIDAgMCAxLS40Mi42MDVjLS4zNzQuMzM2LS43NDcuNTItMS4xMi41NTQuMDcuNjA0LjMwMy45MjQuNy45NTcuMzUtLjA2Ny43ODItLjQ1MyAxLjI5NS0xLjE1OS41Ni43NCAxLjA2MiAxLjE5MyAxLjUwNiAxLjM2LjMwMyAwIC41MzctLjM1Mi43LTEuMDU3LS40NjctLjAzMy0xLjA1LS4zODYtMS43NS0xLjA1OC4wMjMtLjEuMDM1LS4yMDIuMDM1LS4zMDItLjA0Ny0uMTAxLS4xODgtLjIwMi0uNDItLjMwMi0uMDctLjEwMS0uMTQtLjE1Mi0uMjEtLjE1MloiLz48cGF0aCBkPSJNOC4xMDUgOS42OTNoLS45OFYxMS4xNTRoMi44N3YtMS40Nkg4LjEwNVpNOC40NTUgNi4wNjdjLS4yOC4zMzYtLjY5LjcyMi0xLjIyNiAxLjE1OGgyLjY5NmMtLjMyNy0uMjAxLS43Ny0uNTM2LTEuMzMtMS4wMDdhMS4xMyAxLjEzIDAgMCAxLS4xNC0uMTUxWiIvPjwvZz48L2c+PC9zdmc+",ei=Object.defineProperty,gi=Object.getOwnPropertySymbols,Nn=Object.prototype.hasOwnProperty,Pi=Object.prototype.propertyIsEnumerable,Wi=(Ne,Ze,qe)=>Ze in Ne?ei(Ne,Ze,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Ne[Ze]=qe,Ni=(Ne,Ze)=>{for(var qe in Ze||(Ze={}))Nn.call(Ze,qe)&&Wi(Ne,qe,Ze[qe]);if(gi)for(var qe of gi(Ze))Pi.call(Ze,qe)&&Wi(Ne,qe,Ze[qe]);return Ne};const Oi=Ne=>React.createElement("svg",Ni({width:14,height:14,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},Ne),React.createElement("title",null,"\u5386\u53F2\u5BF9\u8BDD"),React.createElement("defs",null,React.createElement("path",{id:"b_svg__a",d:"M0 0h14v14H0z"})),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("mask",{id:"b_svg__b",fill:"#fff"},React.createElement("use",{xlinkHref:"#b_svg__a"})),React.createElement("use",{fill:"#F6F7F9",opacity:.01,xlinkHref:"#b_svg__a"}),React.createElement("g",{mask:"url(#b_svg__b)",fillRule:"nonzero"},React.createElement("path",{d:"M5.607 0a1.38 1.38 0 0 0-1.379 1.379v4.613c0 .754.613 1.367 1.368 1.367h3.003a.62.62 0 0 1 .433.177l1.834 1.787a.665.665 0 0 0 1.13-.476V7.602c0-.134.108-.243.242-.243h.32a1.33 1.33 0 0 0 1.33-1.33V1.47A1.472 1.472 0 0 0 12.418 0h-6.81Z",fill:"#64B5F6"}),React.createElement("path",{d:"M5.702 8.147A2.25 2.25 0 0 1 3.45 5.895v-1.16a.342.342 0 0 0-.341-.341H1.483c-.811 0-1.469.658-1.469 1.468v4.562c0 .733.594 1.33 1.33 1.33h.32c.135 0 .243.108.243.242v1.245c0 .589.71.888 1.13.476L4.87 11.93a.624.624 0 0 1 .434-.177h3.003c.754 0 1.367-.613 1.367-1.367l-1-1.968a.265.265 0 0 0-.262-.264c-.728-.003-2.71-.007-2.71-.007Z",fill:"#1E88E5"}))));var po="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNMCAwaDE0djE0SDB6Ii8+PC9kZWZzPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PG1hc2sgaWQ9ImIiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2EiLz48L21hc2s+PHVzZSBmaWxsPSIjRjZGN0Y5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classroomList)==null?void 0:Fo.courseAiData}),[Xi,Zi]=(0,ot.useState)(!1),[wo,$i]=(0,ot.useState)(!1),li=(0,ot.useRef)(null),Gi=()=>{Zi(!0),$i(ci==null?void 0:ci.is_open_ai)};(0,ot.useImperativeHandle)(Ze,()=>({onClick:Gi}));const bo=Vo=>{var Fo;const fo=(Fo=(0,$e.g)())==null?void 0:Fo.course_id;Zi(!1),Ne(),fe.history.push(`/classrooms/${fo}/board/${ci==null?void 0:ci.board_id}?type=${Vo}`)},Qo=[{icon:mi,name:"\u95EE\u7B54\u96C6",description:"\u6559\u5E08\u53EF\u4E0A\u4F20\u95EE\u7B54\u96C6\uFF0C\u6253\u9020\u4E13\u5C5E\u667A\u80FD\u52A9\u6559\uFF0C\u5B9E\u73B0\u7CBE\u51C6\u89E3\u7B54",explainHref:"https://www.educoder.net/forums/40257",btnName:"\u95EE\u7B54\u96C6\u7BA1\u7406",type:"wendaji"},{icon:po,name:"\u5386\u53F2\u5BF9\u8BDD",description:"\u6559\u5E08\u53EF\u67E5\u770B\u6240\u6709\u5B66\u751F\u7684\u5386\u53F2\u5BF9\u8BDD\uFF0C\u5BF9\u5927\u6A21\u578B\u56DE\u7B54\u4E0D\u4F73\u7684\u95EE\u9898\u8FDB\u884C\u4EBA\u5DE5\u56DE\u590D\uFF0C\u5E76\u5C06\u5176\u8865\u5145\u81F3\u95EE\u7B54\u96C6\u3002",explainHref:"https://www.educoder.net/forums/40258",btnName:"\u5386\u53F2\u5BF9\u8BDD\u7BA1\u7406",type:"duihua"}];return co.createElement(ot.Fragment,null,co.createElement(Ft.default,{centered:!0,open:Xi,title:"\u667A\u80FD\u95EE\u7B54",width:850,onCancel:()=>Zi(!1),footer:null,bodyStyle:{paddingBottom:25}},co.createElement("div",{className:"flex flex-col gap-20 mb20"},co.createElement("div",{className:"p20",style:{background:"#F6F7F9"}},co.createElement("div",{className:"c-grey-333"},"\u667A\u80FD\u95EE\u7B54"),co.createElement(Je.Z,{align:"middle",className:"mt20"},co.createElement(tr.Z,{size:"default",checked:wo,onChange:Vo=>{$i(Vo),clearTimeout(li.current),li.current=setTimeout(()=>{var Fo;qe({type:"classroomList/setCourseAiState",payload:{course_id:(Fo=(0,$e.g)())==null?void 0:Fo.course_id,is_open_ai:Vo}})},500)}}),co.createElement("div",{className:"c-grey-333 ml10"},"\u5F00\u542F\u540E\uFF0C\u6559\u5B66\u8BFE\u5802\u5185\u7684\u5B66\u751F\u5C06\u53EF\u4EE5\u4F7F\u7528\u667A\u80FD\u52A9\u6559\u7684\u529F\u80FD\uFF0C\u4E0EAI\u5BF9\u8BDD\uFF0C\u8BA9AI\u7B54\u7591\u89E3\u60D1\u3002"," ",co.createElement("a",{href:"https://www.educoder.net/forums/40256",target:"_blank"},"\u64CD\u4F5C\u8BF4\u660E"))))),Qo.map((Vo,Fo)=>{const{icon:fo,name:Sr,description:Fr,explainHref:Rr,type:Br}=Vo;return co.createElement("div",{key:Fo,style:{marginBottom:Fobo(Br),style:{width:120},className:"mt20",type:"primary"},Vo.btnName))))})))}),ha=St(92832),ga=St(5871),on={wrap:"wrap___YYn6N",left:"left___YomRr",tip:"tip___nXV55",bottomBtn:"bottomBtn___dtC5V",disabled:"disabled___Om4jR"},ca="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAAHr1JREFUaEPNmweYnVW1/n/7a6fMmcm0ZEoSUkkCSQgJCVWKoAI2FAH1iqBYwXvFLogF8S9XvRYElUeqIJegFOmEKgiICUkgJBBCkpnMZHoyc6ad9pW9r3t/58wEsJfn+Z8z5zn9fN+711rvetdaewT/rsvi073GBEsdrIN8214WOfbCyLHnSks0SSGqFCCFlSOS/VLKNhXJbULKTVYgXwhKwWZevNX/d5ya+Ff+6OzZx9WGycRbhZs+JbKdYyPbmqZsR5Qsi7xrIS2LSAgQFuh7fdHIVQRSmZsVhsqSciARyifswL/LsuX9w8/fOfyvOs9/CeB5845bEuJ9WljidOm6tZH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/fyHm66YSP7zWymo3OY3JCOP4exYsR9G58hUFlSVgZfKeZNaeCcs1bwpjcuxUokqJua4sZbtvLQy+Os78szXl1D1NAM6SpUcwMctxyyWkJaIBOwfisi209193amjw/yjtlNzJ6doDDiBz+/+b6LXxl54jv/0u3D+4Jv3/jQsbXVxes2/qFz7o7NfUZUdLSX2N4+TlJUM712KvdtfprBsYG4nFQOGc/hrPcs47R3HoqdSNI0cwqrV7/EExsH6LRqIeWRsAVB0iNXO5P2BQvItWhWV0wdyjF/82aSbgkVSYb3+hxnD7NoblVbOs05Z339vNfttvsTxpp46e+x8GRBMfTwlHWPtX+jZ+fgeS+/PJzY3VUkLNm4YS1JK8n69q1sH2inoEaotmvJZOAT71/FGw47ADuVonVuPWvu3c0TT3ejogAVCFI1VTy6fZjISuM1TWfPygOwizAr20fwzIOkkvW8fcUcLGesFAbhz+y0/OYFV13w7/8XgH1X76avXbJ0167iN/r6/Hf6JdyUrMMVHuvaNpPN7SFfHKMQSWa1VnH+h9/I3FlNuOkUtfU1bHsiYvczKbbn2ri340nePH8l20ZGsL0QT3ceSz4zptUyNDrK4oXzeGGTHxxbt/jujuoXv/nd+/9rYqPZX7Lmn3rvH7Lwa3/og0d+eklP78j5c2vmntZUO7V27e5nGM2NsGtoF65dxQmHz+NDZxxBKpEkNSVFmE3w8iMOj2x5kZ78ANWJBNPqpyESJQIZUvJDk8Km1qUpFovDc2e13Mp4+vIv/uasf/i/Wf4R0vqri/mh2RfXLlow66St+fXvbu/qOW4o3z/1iMXzxOnvOIpUlYNjW2QaUvSvTbFlS462PQMUo2EaG2pIpjzT+y4UlQpDuUchH3ec6DdeUqy5+M7P/v/1j1p/aiXuv/zyxDOP7ViyYP7Ug9r6upadcPSqhYlkYm405jXteNqt8reG9LYO5NJVqt8VXlsU2Nsi6WySofvCfml38xm3nvFv+Ve8/wNgli4fKbeMnwAAAABJRU5ErkJggg==",Ks=Object.defineProperty,$a=Object.getOwnPropertySymbols,Ll=Object.prototype.hasOwnProperty,Yr=Object.prototype.propertyIsEnumerable,Fs=(Ne,Ze,qe)=>Ze in Ne?Ks(Ne,Ze,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Ne[Ze]=qe,gr=(Ne,Ze)=>{for(var qe in Ze||(Ze={}))Ll.call(Ze,qe)&&Fs(Ne,qe,Ze[qe]);if($a)for(var qe of $a(Ze))Yr.call(Ze,qe)&&Fs(Ne,qe,Ze[qe]);return Ne};const zo=Ne=>React.createElement("svg",gr({className:"a_svg__icon",viewBox:"0 0 1068 1024",xmlns:"http://www.w3.org/2000/svg",width:208.594,height:200},Ne),React.createElement("path",{d:"M670.55 25.088c-1.025.512-2.049 1.024-2.817 2.048l-288.128 181.76L62.933 334.677l-3.072 1.536c-30.293 15.446-13.61 74.838 10.198 121.515 23.552 46.208 61.781 94.592 92.032 79.147 1.024-.512 2.048-1.024 3.328-2.347l286.89-181.717 317.654-126.294 3.072-1.578c30.293-15.403 13.61-74.795-9.942-120.96C739.072 58.027 700.8 9.643 670.55 25.045",fill:"#4FBFEC",opacity:.804}),React.createElement("path",{d:"m684.032 33.707-3.627 1.834L386.39 222.208 63.317 350.635l-3.584 1.834c-7.68 3.926-15.104 12.203-16.512 29.739 2.176 16.981 8.534 37.035 16.896 56.021 3.84 1.28 7.766 1.238 11.606-.085l350.506-141.739 2.56-1.322L745.515 94.805a19.456 19.456 0 0 0 7.424-9.557c-10.454-17.963-23.211-35.413-35.926-47.659-14.25-8.917-25.301-7.808-32.981-3.84z",fill:"#45AED8",opacity:.804}),React.createElement("path",{d:"M735.232 61.91c-32-42.497-53.376-43.862-65.707-37.59l-3.072 1.536-286.848 183.04-316.16 124.203-3.072 1.578c-12.8 6.528-24.32 24.662-8.704 75.52 1.579 4.395 4.694 7.979 8.32 9.984a17.792 17.792 0 0 0 13.142.427l342.314-137.557 2.56-1.28L730.54 85.675a17.792 17.792 0 0 0 7.381-10.88 13.013 13.013 0 0 0-2.688-12.886l-131.925 60.758",fill:"#7EDAFF",opacity:.804}),React.createElement("path",{d:"m390.912 341.461 54.144 107.52 28.16-51.2 57.515 7.51-54.614-107.264z",fill:"#DE5461",opacity:.804}),React.createElement("path",{d:"M475.733 252.97c16.47 32.342 3.414 71.34-28.928 87.809a65.493 65.493 0 0 1-88.064-28.16 66.005 66.005 0 0 1 28.715-88.32 65.621 65.621 0 0 1 88.32 28.672",fill:"#ECB646",opacity:.804}),React.createElement("path",{d:"M392.96 235.05a48.64 48.64 0 0 0-21.163 65.067 48.64 48.64 0 0 0 65.067 21.163 48.64 48.64 0 0 0 21.12-65.11 48.299 48.299 0 0 0-65.067-21.12M451.5 349.996c-39.51 20.138-88.32 4.266-108.459-35.243-20.139-39.51-4.267-88.32 35.243-108.459 39.509-20.138 88.32-4.266 108.458 35.243A80.512 80.512 0 0 1 451.5 349.995",fill:"#F5C857",opacity:.804}),React.createElement("path",{d:"M428.245 271.36a15.232 15.232 0 0 1-6.57 20.139 15.232 15.232 0 0 1-20.139-6.528 15.232 15.232 0 0 1 6.57-20.139 15.232 15.232 0 0 1 20.14 6.528",fill:"#F5C857",opacity:.804}),React.createElement("path",{d:"M903.253 596.181c-1.152.214-2.346.427-3.413 1.238l-346.027 94.25-357.461 29.184-3.584.598c-35.243 6.229-36.693 71.125-27.136 125.44 9.472 53.76 33.067 114.261 68.267 108.032 1.237-.214 2.432-.427 4.096-1.323l344.704-94.635 358.656-29.397 3.584-.64c35.242-6.187 36.693-71.125 27.221-124.843-10.07-53.632-33.664-114.09-68.864-107.904",fill:"#4FBFEC"}),React.createElement("path",{d:"m914.176 609.024-4.181.768L556.544 707.2l-364.715 29.867-4.181.682c-8.96 1.579-18.987 7.68-25.77 24.875-3.03 17.792-2.817 39.893-.257 61.61a18.773 18.773 0 0 0 11.734 3.457l396.458-34.816 2.987-.512 384.47-102.87a20.48 20.48 0 0 0 10.41-7.381c-4.992-21.333-12.459-42.752-21.504-59.008-11.563-13.355-23.04-15.659-32-14.08z",fill:"#45AED8"}),React.createElement("path",{d:"M957.013 653.227c-19.114-52.694-40.192-60.672-54.528-58.112l-3.584.597-345.088 95.957-356.48 27.734-3.584.682c-14.933 2.603-32 17.323-32 73.344a19.925 19.925 0 0 0 5.291 12.587 18.863 18.863 0 0 0 13.099 4.48l386.944-33.152 2.986-.512 374.912-101.205a18.73 18.73 0 0 0 10.795-8.662 13.653 13.653 0 0 0 1.28-13.781l-151.51 20.565",fill:"#7EDAFF"}),React.createElement("path",{d:"m524.373 828.587 21.419 124.885 44.16-42.837 55.552 25.258-21.973-124.757z",fill:"#DE5461"}),React.createElement("path",{d:"M637.013 765.653a68.565 68.565 0 0 1-56.149 79.446 68.95 68.95 0 0 1-79.957-55.467 69.461 69.461 0 0 1 56.064-80.043 69.12 69.12 0 0 1 80.085 56.064",fill:"#ECB646"}),React.createElement("path",{d:"M559.19 722.133a51.2 51.2 0 0 0-41.302 58.966 51.2 51.2 0 0 0 58.965 41.344 51.2 51.2 0 0 0 41.344-59.008 50.859 50.859 0 0 0-59.008-41.302m23.595 133.718a85.12 85.12 0 0 1-98.347-68.822 85.12 85.12 0 0 1 68.864-98.346 85.12 85.12 0 0 1 98.304 68.864 84.736 84.736 0 0 1-68.821 98.304",fill:"#F5C857"}),React.createElement("path",{d:"M583.552 769.536a16.043 16.043 0 0 1-12.8 18.261 16.043 16.043 0 0 1-18.261-12.8 16.043 16.043 0 0 1 12.8-18.261 16.043 16.043 0 0 1 18.261 12.8",fill:"#F5C857"}),React.createElement("path",{d:"m89.984 615.765 54.315 54.358a6.827 6.827 0 0 0 9.685 0l27.861-27.904a6.827 6.827 0 0 1 11.648 4.821v139.392a6.827 6.827 0 0 1-6.826 6.827H47.36a6.827 6.827 0 0 1-4.821-11.648L70.4 753.707a6.827 6.827 0 0 0 0-9.643l-39.552-39.552c-36.95-44.373-34.603-102.4-23.936-135.765 8.661-27.179 33.835-57.387 54.87-75.648 4.65-4.054 11.391.256 10.453 6.314a495.407 495.407 0 0 0-4.822 46.934c-2.133 38.314 8.619 54.741 22.614 69.418zm791.765-274.432-54.314-54.357a6.827 6.827 0 0 0-9.643 0l-27.904 27.904a6.827 6.827 0 0 1-11.648-4.821V170.667a6.827 6.827 0 0 1 6.827-6.827h139.392a6.827 6.827 0 0 1 4.821 11.648l-27.904 27.904a6.827 6.827 0 0 0 0 9.643l39.552 39.552c36.95 44.373 34.603 102.4 23.979 135.765-8.662 27.136-33.878 57.387-54.912 75.648-4.608 4.053-11.392-.256-10.454-6.315 1.707-11.178 3.755-27.392 4.822-46.933 2.133-38.315-8.619-54.741-22.614-69.419z",fill:"#18D6FF"}));var nr="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwNjggMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjA4LjU5NCIgaGVpZ2h0PSIyMDAiPjxwYXRoIGQ9Ik02NzAuNTUgMjUuMDg4Yy0xLjAyNS41MTItMi4wNDkgMS4wMjQtMi44MTcgMi4wNDhsLTI4OC4xMjggMTgxLjc2TDYyLjkzMyAzMzQuNjc3bC0zLjA3MiAxLjUzNmMtMzAuMjkzIDE1LjQ0Ni0xMy42MSA3NC44MzggMTAuMTk4IDEyMS41MTUgMjMuNTUyIDQ2LjIwOCA2MS43ODEgOTQuNTkyIDkyLjAzMiA3OS4xNDcgMS4wMjQtLjUxMiAyLjA0OC0xLjAyNCAzLjMyOC0yLjM0N2wyODYuODktMTgxLjcxNyAzMTcuNjU0LTEyNi4yOTQgMy4wNzItMS41NzhjMzAuMjkzLTE1LjQwMyAxMy42MS03NC43OTUtOS45NDItMTIwLjk2QzczOS4wNzIgNTguMDI3IDcwMC44IDkuNjQzIDY3MC41NSAyNS4wNDUiIGZpbGw9IiM0RkJGRUMiIG9wYWNpdHk9Ii44MDQiLz48cGF0aCBkPSJtNjg0LjAzMiAzMy43MDctMy42MjcgMS44MzRMMzg2LjM5IDIyMi4yMDggNjMuMzE3IDM1MC42MzVsLTMuNTg0ID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jcgMCAwIDAgMCA5LjY0M2wzOS41NTIgMzkuNTUyYzM2Ljk1IDQ0LjM3MyAzNC42MDMgMTAyLjQgMjMuOTc5IDEzNS43NjUtOC42NjIgMjcuMTM2LTMzLjg3OCA1Ny4zODctNTQuOTEyIDc1LjY0OC00LjYwOCA0LjA1My0xMS4zOTItLjI1Ni0xMC40NTQtNi4zMTUgMS43MDctMTEuMTc4IDMuNzU1LTI3LjM5MiA0LjgyMi00Ni45MzMgMi4xMzMtMzguMzE1LTguNjE5LTU0Ljc0MS0yMi42MTQtNjkuNDE5eiIgZmlsbD0iIzE4RDZGRiIvPjwvc3ZnPg==",Xr=Object.defineProperty,Wr=Object.getOwnPropertySymbols,wa=Object.prototype.hasOwnProperty,kr=Object.prototype.propertyIsEnumerable,Ri=(Ne,Ze,qe)=>Ze in Ne?Xr(Ne,Ze,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Ne[Ze]=qe,ts=(Ne,Ze)=>{for(var qe in Ze||(Ze={}))wa.call(Ze,qe)&&Ri(Ne,qe,Ze[qe]);if(Wr)for(var qe of Wr(Ze))kr.call(Ze,qe)&&Ri(Ne,qe,Ze[qe]);return Ne};const al=Ne=>React.createElement("svg",ts({className:"b_svg__icon",viewBox:"0 0 1068 1024",xmlns:"http://www.w3.org/2000/svg",width:208.594,height:200},Ne),React.createElement("path",{d:"M809.77 821.675H73.345A63.744 63.744 0 0 1 9.557 757.93V489.685c0-35.2 28.587-63.744 63.744-63.744H809.6c35.2 0 63.701 28.544 63.701 63.744v268.246a63.488 63.488 0 0 1-63.573 63.744z",fill:"#363ED6"}),React.createElement("path",{d:"m184.448.555 706.39 175.786L754.943 722.39 48.597 546.603z",fill:"#B2CEF2"}),React.createElement("path",{d:"M52.821 363.392H809.26V926.08H52.779z",fill:"#F0FCFF"}),React.createElement("path",{d:"M398.123 562.987v-65.792a21.333 21.333 0 0 0-21.163-21.163H30.72a21.333 21.333 0 0 0-21.205 21.163v454.357a21.333 21.333 0 0 0 21.205 21.163h821.547a21.333 21.333 0 0 0 21.162-21.163V605.355a21.333 21.333 0 0 0-21.162-21.206H419.328a21.333 21.333 0 0 1-21.205-21.162z",fill:"#145DFF"}),React.createElement("path",{d:"M763.776 499.925h-284.33a9.728 9.728 0 1 1 0-19.456h284.33c5.29 0 9.77 4.267 9.77 9.728s-4.266 9.728-9.77 9.728zm0 42.71h-284.33a9.728 9.728 0 1 1 0-19.456h284.33a9.728 9.728 0 1 1 0 19.456z",fill:"#D4E4F9"}));var as="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwNjggMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjA4LjU5NCIgaGVpZ2h0PSIyMDAiPjxwYXRoIGQ9Ik04MDkuNzcgODIxLjY3NUg3My4zNDVBNjMuNzQ0IDYzLjc0NCAwIDAgMSA5LjU1NyA3NTcuOTNWNDg5LjY4NWMwLTM1LjIgMjguNTg3LTYzLjc0NCA2My43NDQtNjMuNzQ0SDgwOS42YzM1LjIgMCA2My43MDEgMjguNTQ0IDYzLjcwMSA2My43NDR2MjY4LjI0NmE2My40ODggNjMuNDg4IDAgMCAxLTYzLjU3MyA2My43NDR6IiBmaWxsPSIjMzYzRUQ2Ii8+PHBhdGggZD0ibTE4NC40NDguNTU1IDcwNi4zOSAxNzUuNzg2TDc1NC45NDMgNzIyLjM5IDQ4LjU5NyA1NDYuNjAzeiIgZmlsbD0iI0IyQ0VGMiIvPjxwYXRoIGQ9Ik01Mi44MjEgMzYzLjM5Mkg4MDkuMjZWOTI2LjA4SDUyLjc3OXoiIGZpbGw9IiNGMEZDRkYiLz48cGF0aCBkPSJNMzk4LjEyMyA1NjIuOTg3di02NS43OTJhMjEuMzMzIDIxLjMzMyAwIDAgMC0yMS4xNjMtMjEuMTYzSDMwLjcyYTIxLjMzMyAyMS4zMzMgMCAwIDAtMjEuMjA1IDIxLjE2M3Y0NTQuMzU3YTIxLjMzMyAyMS4zMzMgMCAwIDAgMjEuMjA1IDIxLjE2M2g4MjEuNTQ3YTIxLjMzMyAyMS4zMzMgMCAwIDAgMjEuMTYyLTIxLjE2M1Y2MDUuMzU1YTIxLjMzMyAyMS4zMzMgMCAwIDAtMjEuMTYyLTIxLjIwNkg0MTkuMzI4YTIxLjMzMyAyMS4zMzMgMCAwIDEtMjEuMjA1LTIxLjE2MnoiIGZpbGw9IiMxNDVERkYiLz48cGF0aCBkPSJNNzYzLjc3NiA0OTkuOTI1aC0yODQuMzNhOS43MjggOS43MjggMCAxIDEgMC0xOS40NTZoMjg0LjMzYzUuMjkgMCA5Ljc3IDQuMjY3IDkuNzcgOS43MjhzLTQuMjY2IDkuNzI4LTkuNzcgOS43Mjh6bTAgNDIuNzFoLTI4NC4zM2E5LjcyOCA5LjcyOCAwIDEgMSAwLTE5LjQ1NmgyODQuMzNhOS43MjggOS43MjggMCAxIDEgMCAxOS40NTZ6IiBmaWxsPSIjRDRFNEY5Ii8+PC9zdmc+",Qs=(Ne,Ze,qe)=>new Promise((ci,Xi)=>{var Zi=li=>{try{$i(qe.next(li))}catch(Gi){Xi(Gi)}},wo=li=>{try{$i(qe.throw(li))}catch(Gi){Xi(Gi)}},$i=li=>li.done?ci(li.value):Promise.resolve(li.value).then(Zi,wo);$i((qe=qe.apply(Ne,Ze)).next())}),Mi=(0,ot.forwardRef)(({onUpdateNum:Ne,onSave:Ze},qe)=>{var ci,Xi;const Zi=`\u8BF7\u751F\u6210\u5173\u4E8E\u300APython\u7A0B\u5E8F\u8BBE\u8BA1\u300B\u7684\u8BD5\u9898\u3002 +`)}]};var Oe=St(53184),de=St.n(Oe),Ce=Object.defineProperty,xe=Object.defineProperties,ze=Object.getOwnPropertyDescriptors,He=Object.getOwnPropertySymbols,Ft=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,et=(Ee,ke,ln)=>ke in Ee?Ce(Ee,ke,{enumerable:!0,configurable:!0,writable:!0,value:ln}):Ee[ke]=ln,ct=(Ee,ke)=>{for(var ln in ke||(ke={}))Ft.call(ke,ln)&&et(Ee,ln,ke[ln]);if(He)for(var ln of He(ke))nt.call(ke,ln)&&et(Ee,ln,ke[ln]);return Ee},ut=(Ee,ke)=>xe(Ee,ze(ke)),pt=(Ee,ke,ln)=>new Promise((Dt,wt)=>{var At=Mt=>{try{jt(ln.next(Mt))}catch(Ae){wt(Ae)}},Bt=Mt=>{try{jt(ln.throw(Mt))}catch(Ae){wt(Ae)}},jt=Mt=>Mt.done?Dt(Mt.value):Promise.resolve(Mt.value).then(At,Bt);jt((ln=ln.apply(Ee,ke)).next())});const yt={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"]}},Pt=(Ee,ke)=>ke.map(ln=>({label:ln,kind:Ee.languages.CompletionItemKind.Keyword,insertText:ln})),bt=Ee=>Object.keys(yt.tables).map(ke=>({label:ke,kind:Ee.languages.CompletionItemKind.Variable,insertText:ke})),Rt=(Ee,ke)=>{const ln=yt.tables[Ee];return ln?ln.map(Dt=>({label:Dt,kind:ke.languages.CompletionItemKind.Field,insertText:Dt})):[]};function Ut(Ee,ke,ln,Dt,wt){let At=ke.getWordUntilPosition(ln),Bt={startLineNumber:ln.lineNumber,endLineNumber:ln.lineNumber,startColumn:At.startColumn,endColumn:At.endColumn},jt=Dt.map(Mt=>({label:Mt,kind:Ee.languages.CompletionItemKind.Keyword,insertText:Mt,insertTextRules:Ee.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Bt}));return wt.map(Mt=>{jt.push(ut(ct({},Mt),{range:Bt}))}),jt}var ee=Ee=>{yt.languages.map(wt=>(Ee.languages.registerDocumentFormattingEditProvider(wt,{provideDocumentFormattingEdits(At,Bt,jt){return pt(this,null,function*(){const Mt=de()(At.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:At.getFullModelRange(),text:Mt}]})}}),wt));const ke=fe.quickKey.map(wt=>({label:wt.label,kind:Ee.languages.CompletionItemKind.Method,insertText:wt.content,insertTextRules:Ee.languages.CompletionItemInsertTextRule.InsertAsSnippet})),ln=ve.quickKey.map(wt=>({label:wt.label,kind:Ee.languages.CompletionItemKind.Method,insertText:wt.content,insertTextRules:Ee.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Dt=$e.quickKey.map(wt=>({label:wt.label,kind:Ee.languages.CompletionItemKind.Method,insertText:wt.content,insertTextRules:Ee.languages.CompletionItemInsertTextRule.InsertAsSnippet}));Ee.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(wt,At){var Bt=wt.getWordUntilPosition(At),jt={startLineNumber:At.lineNumber,endLineNumber:At.lineNumber,startColumn:Bt.startColumn,endColumn:Bt.endColumn},Mt=wt.getLineContent(At.lineNumber).substring(Bt.startColumn-2,Bt.endColumn);return{suggestions:[...fe.keywords.map(Ae=>({label:Ae,kind:Ee.languages.CompletionItemKind.Function,documentation:Ae,insertText:Ae,insertTextRules:Ee.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:jt})),...fe.quickKey.map(Ae=>({label:Ae.label,kind:Ee.languages.CompletionItemKind.Function,documentation:Ae.content,insertText:Mt.startsWith("#")?Ae.content.replace(/#/,""):Ae.content,insertTextRules:Ee.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:jt}))]}}}),Ee.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(wt,At){var Bt=wt.getWordUntilPosition(At),jt={startLineNumber:At.lineNumber,endLineNumber:At.lineNumber,startColumn:Bt.startColumn,endColumn:Bt.endColumn};return{suggestions:[...ae.keywords.map(Mt=>({label:Mt,kind:Ee.languages.CompletionItemKind.Function,documentation:Mt,insertText:Mt,insertTextRules:Ee.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:jt}))]}}}),Ee.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(wt,At){var Bt=wt.getWordUntilPosition(At),jt={startLineNumber:At.lineNumber,endLineNumber:At.lineNumber,startColumn:Bt.startColumn,endColumn:Bt.endColumn},Mt=wt.getLineContent(At.lineNumber).substring(Bt.startColumn-2,Bt.endColumn);return{suggestions:[...$e.keywords.map(Ae=>({label:Ae,kind:Ee.languages.CompletionItemKind.Function,documentation:Ae,insertText:Ae,insertTextRules:Ee.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:jt})),...$e.quickKey.map(Ae=>({label:Ae.label,kind:Ee.languages.CompletionItemKind.Function,documentation:Ae.content,insertText:Mt.startsWith("#")?Ae.content.replace(/#/,""):Ae.content,insertTextRules:Ee.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:jt}))]}}}),Ee.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(wt,At){var Bt=wt.getWordUntilPosition(At),jt={startLineNumber:At.lineNumber,endLineNumber:At.lineNumber,startColumn:Bt.startColumn,endColumn:Bt.endColumn},Mt=wt.getLineContent(At.lineNumber).substring(Bt.startColumn-2,Bt.endColumn);return{suggestions:[...qt.keywords.map(Ae=>({label:Ae,kind:Ee.languages.CompletionItemKind.Function,documentation:Ae,insertText:Ae,insertTextRules:Ee.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:jt})),...qt.quickKey.map(Ae=>({label:Ae.label,kind:Ee.languages.CompletionItemKind.Function,documentation:Ae.content,insertText:Mt.startsWith("#")?Ae.content.replace(/#/,""):Ae.content,insertTextRules:Ee.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:jt}))]}}}),Ee.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(wt,At){var Bt=wt.getWordUntilPosition(At),jt={startLineNumber:At.lineNumber,endLineNumber:At.lineNumber,startColumn:Bt.startColumn,endColumn:Bt.endColumn},Mt=wt.getLineContent(At.lineNumber).substring(Bt.startColumn-2,Bt.endColumn);return{suggestions:[...ve.keywords.map(Ae=>({label:Ae,kind:Ee.languages.CompletionItemKind.Function,documentation:Ae,insertText:Ae,insertTextRules:Ee.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:jt})),...ve.quickKey.map(Ae=>({label:Ae.label,kind:Ee.languages.CompletionItemKind.Function,documentation:Ae.content,insertText:Mt.startsWith("#")?Ae.content.replace(/#/,""):Ae.content,insertTextRules:Ee.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:jt}))]}}})};const re="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var ie=Object.defineProperty,Me=(Ee,ke,ln)=>ke in Ee?ie(Ee,ke,{enumerable:!0,configurable:!0,writable:!0,value:ln}):Ee[ke]=ln,pe=(Ee,ke,ln)=>Me(Ee,typeof ke!="symbol"?ke+"":ke,ln);const Le=class p5{constructor(ke,ln,Dt){this.placeholder=ke,this.editor=ln,this.monaco=Dt,ln.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return p5.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)}};pe(Le,"ID","editor.widget.placeholderHint");var je=Le,Je=St(96236),Cn=St(8591),hn=St(6848),Xn=St(89392),Fe=St(34604),Zt=St(56102),Ye=Object.defineProperty,kn=Object.defineProperties,Tn=Object.getOwnPropertyDescriptors,Be=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,jn=(Ee,ke,ln)=>ke in Ee?Ye(Ee,ke,{enumerable:!0,configurable:!0,writable:!0,value:ln}):Ee[ke]=ln,Wn=(Ee,ke)=>{for(var ln in ke||(ke={}))be.call(ke,ln)&&jn(Ee,ln,ke[ln]);if(Be)for(var ln of Be(ke))Ke.call(ke,ln)&&jn(Ee,ln,ke[ln]);return Ee},An=(Ee,ke)=>kn(Ee,Tn(ke)),oe=(Ee,ke)=>{var ln={};for(var Dt in Ee)be.call(Ee,Dt)&&ke.indexOf(Dt)<0&&(ln[Dt]=Ee[Dt]);if(Ee!=null&&Be)for(var Dt of Be(Ee))ke.indexOf(Dt)<0&&Ke.call(Ee,Dt)&&(ln[Dt]=Ee[Dt]);return ln},cn=(Ee,ke,ln)=>new Promise((Dt,wt)=>{var At=Mt=>{try{jt(ln.next(Mt))}catch(Ae){wt(Ae)}},Bt=Mt=>{try{jt(ln.throw(Mt))}catch(Ae){wt(Ae)}},jt=Mt=>Mt.done?Dt(Mt.value):Promise.resolve(Mt.value).then(At,Bt);jt((ln=ln.apply(Ee,ke)).next())});function wn(Ee){return/^\d+$/.test(Ee)?`${Ee}px`:Ee}function Fn(){}let mn=!1;const Dn={"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 rn(Ee=[]){let ke=Ee;if(Array.isArray(Ee)){for(let ln=0;ln{var ke=Ee,{width:ln="100%",height:Dt="100%",value:wt,language:At="javascript",style:Bt={},options:jt={},overrideServices:Mt={},theme:Ae="vs-dark",onEditBlur:En,isCopy:Rn=!1,onSave:Pn,autoHeight:$n=!1,forbidCopy:xi=!1,onChange:Fi=Fn,editorDidMount:Bi=Fn,onFocus:Ji=Fn,onBreakPoint:ro=Fn,breakPointValue:Eo=[],filename:Zo="educoder.txt",errorLine:Lo,errorContent:qn="",highlightLine:$t,openBreakPoint:tn=!1,placeholder:Jn=""}=ke,zt=oe(ke,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder"]);const Mn=(0,ot.useRef)(),le=(0,ot.useRef)({}),Ct=(0,ot.useRef)(),vn=(0,ot.useRef)(),Hn=(0,ot.useRef)([]),Qt=(0,ot.useRef)(!1),Te=(0,ot.useRef)(),Re=(0,ot.useRef)(),_e=(0,ot.useRef)(!1),[me,en]=(0,ot.useState)(!1);function te(){let he;return Mn.current&&(he=new Tt.Z(Pe=>{for(let fn of Pe)(fn.target.offsetHeight>0||fn.target.offsetWidth>0)&&le.current.instance.layout()}),he.observe(Mn.current)),he}function Yt(){Cn.ZP.warning({content:decodeURIComponent(re),key:"monaco-editor-tip"})}const Vt=()=>{let he=le.current.instance;if(wt!=null&&he&&me){const Pe=he.getModel();Pe&&wt!==Pe.getValue()&&(mn=!0,Pe.setValue(wt),he.layout(),mn=!1)}};(0,ot.useEffect)(()=>{const he=Fe.Z.subscribe("formatDocument",Pe=>{var fn;let Di=le.current.instance;(fn=Di==null?void 0:Di.getAction)==null||fn.call(Di,"editor.action.formatDocument").run()});return window.updateMonacoValue=Pe=>{Fi(Pe)},he},[]),(0,ot.useEffect)(()=>{var he;let Pe=le.current.instance;vn.current&&clearTimeout(vn.current),vn.current=setTimeout(()=>{Vt()},500),wt&&(wt!=null&&wt.length)&&((he=Pe==null?void 0:Pe.updateOptions)==null||he.call(Pe,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(wt.split(/\r\n|\r|\n/g).length))+3,5)}))},[wt,me,le.current]),(0,ot.useEffect)(()=>{if(Lo&&le.current&&le.current.instance){let Pe=le.current.instance;Pe.changeViewZones(function(fn){var Di=document.createElement("div");Di.style.padding="10px 20px",Di.style.width="calc(100% - 20px)",Di.className="my-error-line-wrp",Di.innerHTML=qn,fn.addZone({afterLineNumber:Lo||11,heightInLines:3,domNode:Di})});var he={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}};Pe.addOverlayWidget(he),Pe.revealPositionInCenter({lineNumber:20,column:1})}},[Lo,le.current,me]);const Ve=(he="",Pe)=>{if(!he||he.trim()==="")return!0;const Di=le.current.instance.getModel().getLineTokens(Pe);let oi=!1;for(let ii=0;ii<2;ii++)Di.getStandardTokenType(ii)===1&&(oi=!0);return oi};(0,ot.useEffect)(()=>{var he;const Pe=(he=le.current)==null?void 0:he.instance;if(Pe&&me&&xi){const fn=Pe.onDidBlurEditorWidget(()=>{_e.current=!1}),Di=Pe.onDidFocusEditorText(()=>{_e.current=!0});return()=>{fn.dispose(),Di.dispose()}}},[le.current,me,xi]),(0,ot.useEffect)(()=>{var he;if((he=le.current)!=null&&he.instance&&me&&tn){let Pe=le.current.instance,fn=Pe.getModel();if(!fn)return;(()=>{var io;let sn=[],Gn=[];const wi=fn.getAllDecorations();for(let Ci of wi)Ci.options.className==="highlighted-line"&&(sn.push((io=Ci==null?void 0:Ci.range)==null?void 0:io.startLineNumber),Gn.push(Ci==null?void 0:Ci.id));if($t===sn[0])return;fn.deltaDecorations(Gn,[]);const ji=fn.getLineCount();$t&&$t<=ji&&(Pe.deltaDecorations([],[{range:new ce.Range($t,1,$t,fn.getLineMaxColumn($t)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Pe.revealLineInCenter($t))})();const oi=(io=!1)=>{var sn;let Gn=[],wi=[];const ji=fn.getAllDecorations();for(let Ci of ji)Ci.options.linesDecorationsClassName==="breakpoints-select"&&(Gn.push((sn=Ci==null?void 0:Ci.range)==null?void 0:sn.startLineNumber),wi.push(Ci==null?void 0:Ci.id));if(io)return{lines:Gn,ids:wi};ro(Gn)},ii=io=>cn(void 0,null,function*(){let sn={range:new ce.Range(io,1,io,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield fn.deltaDecorations([],[sn]),oi()}),Bn=io=>cn(void 0,null,function*(){let sn=[];const Gn=Pe.getLineDecorations(io);for(let wi of Gn)wi.options.linesDecorationsClassName==="breakpoints-select"&&sn.push(wi.id);yield fn.deltaDecorations(sn,[]),oi()}),Kn=io=>{let sn=Pe.getLineDecorations(io);for(let Gn of sn)if(Gn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Xn.isEqual)(Eo,oi(!0).lines)){fn.deltaDecorations(oi(!0).ids,[]);const io=Eo.map(sn=>({range:new ce.Range(sn,1,sn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));fn.deltaDecorations([],io)}const ki=Pe.onDidChangeModelContent(io=>{let sn=Pe.getPosition();if(sn){let Gn=sn.lineNumber;clearTimeout(Re.current),Re.current=setTimeout(()=>{Ve(fn.getLineContent(Gn),Gn)?Bn(Gn):Kn(Gn)?(Bn(Gn),ii(Gn)):oi()},100)}}),bi=Pe.onMouseDown(io=>{var sn,Gn,wi;if(io.target.detail&&((wi=(Gn=(sn=io.target)==null?void 0:sn.element)==null?void 0:Gn.className)!=null&&wi.includes("line-numbers"))){let ji=io.target.position.lineNumber;if(Ve(fn.getLineContent(ji),ji))return;Kn(ji)?Bn(ji):ii(ji)}}),Hi=io=>{let sn={range:new ce.Range(io,1,io,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Hn.current=Pe.deltaDecorations(Hn.current,[sn])},yn=()=>{Hn.current=Pe.deltaDecorations(Hn.current,[])},uo=Pe.onMouseMove(io=>{var sn,Gn,wi;if(yn(),io.target.detail&&((wi=(Gn=(sn=io.target)==null?void 0:sn.element)==null?void 0:Gn.className)!=null&&wi.includes("line-numbers"))){let ji=io.target.position.lineNumber;if(Ve(fn.getLineContent(ji),ji))return;Hi(ji)}}),Qi=Pe.onMouseLeave(()=>{yn()});return()=>{ki.dispose(),bi.dispose(),uo.dispose(),Qi.dispose()}}},[le.current,me,Eo,$t,tn,At]),(0,ot.useEffect)(()=>{var he;(he=le.current)!=null&&he.instance&&tn&&le.current.instance.setPosition({lineNumber:0,column:0})},[$t]);function an(){let he=le.current.instance;if(he){const Pe=he.getSelection(),fn=le.current.pastePos||{},Di=new ce.Range(fn.startLineNumber||Pe.endLineNumber,fn.startColumn||Pe.endColumn,fn.endLineNumber||Pe.endLineNumber,fn.endColumn||Pe.endColumn);setTimeout(()=>{he.executeEdits("",[{range:Di,text:""}])},300)}}function pn(he){(window.navigator.platform.match("Mac")?he.metaKey:he.ctrlKey)&&he.keyCode==83&&(he.preventDefault(),Pn())}const We=()=>{if($n&&le.current.instance){const he=le.current.instance.getContentHeight();De(he{if(!_e.current)return;const{keyCode:Pe,ctrlKey:fn,metaKey:Di,target:oi,type:ii}=he;return(ii==="paste"||(Pe===67||Pe===86)&&(Di||fn))&&oi.nodeName==="TEXTAREA"&&(Yt(),he.preventDefault()),!1};function gn(he,Pe){var fn=window.URL||window.webkitURL||window,Di=new Blob([Pe]),oi=document.createElementNS("http://www.w3.org/1999/xhtml","a");oi.href=fn.createObjectURL(Di),oi.download=he,Sn(oi)}(0,ot.useEffect)(()=>{We()},[We]),(0,ot.useEffect)(()=>{Mn.current&&!me&&Promise.all([St.e(8909),St.e(3267)]).then(St.bind(St,71448)).then(he=>{try{ce=he,le.current.instance=ce.editor.create(Mn.current,{value:wt,language:rn(At),theme:Ae,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Mt);const Pe=le.current.instance;let oi=[...Je.BH._menuItems].find(ki=>ki[0]._debugName=="EditorContext")[1],ii=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Bn=(ki,bi)=>{var Hi,yn;let uo=ki._first;do bi.includes((yn=(Hi=uo.element)==null?void 0:Hi.command)==null?void 0:yn.id)&&ki._remove(uo);while(uo=uo.next)};if(Bi(Pe,ce),setTimeout(()=>{We(),le.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{gn(Zo||"educoder.txt",Pe.getValue())}})},500),le.current.subscription=Pe.onDidChangeModelContent(ki=>{Qt.current?clearTimeout(Te.current):(We(),Fi(Pe.getValue(),ki)),Te.current=setTimeout(()=>{Qt.current=!1},500)}),window.Monaco||ee(ce,rn(At)),xi&&(Bn(oi,ii),Mn.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",ai),window.removeEventListener("paste",ai),window.addEventListener("keydown",ai),window.addEventListener("paste",ai)),window.Monaco=ce,En&&Pe.onDidBlurEditorWidget(()=>{En(Pe.getValue())}),Ji&&Pe.onDidFocusEditorText(()=>{Ji(Pe.getValue())}),xi)try{Pe.onDidPaste(ki=>{const bi=Pe.getSelection(),Hi=le.current.pastePos||{},yn=new ce.Range(Hi.startLineNumber||bi.endLineNumber,Hi.startColumn||bi.endColumn,Hi.endLineNumber||bi.endLineNumber,Hi.endColumn||bi.endColumn);Pe.executeEdits("",[{range:ki.range,text:""}])})}catch(ki){}let Kn=te();return Jn&&typeof Jn=="string"&&new je(Jn,Pe,ce),en(!0),()=>{const ki=le.current.instance;ki.dispose();const bi=ki.getModel();bi&&bi.dispose(),le.current.subscription&&le.current.subscription.dispose(),Kn.unobserve(Mn.current)}}catch(Pe){}})},[]),(0,ot.useEffect)(()=>{if(le.current.instance&&me)return document.addEventListener("keydown",pn,!1),()=>{document.removeEventListener("keydown",pn)}},[Pn,me]),(0,ot.useEffect)(()=>{let he=le.current.instance;if(he&&me){let Pe=rn(At);ce.editor.setModelLanguage(he.getModel(),Pe)}},[At,me]),(0,ot.useEffect)(()=>{le.current.instance&&me&&ce.editor.setTheme(Ae)},[Ae,me]),(0,ot.useEffect)(()=>{let he=le.current.instance;Ct.current=jt,he&&me&&(he.updateOptions(Wn({},jt)),setTimeout(()=>{he.getModel().updateOptions(Wn({},jt))},200))},[JSON.stringify(jt),me]),(0,ot.useEffect)(()=>{let he=le.current.instance;he&&me&&he.layout()},[ln,Dt,me]);const[Qe,Xt]=(0,ot.useState)(wn(ln)),[dn,De]=(0,ot.useState)(wn(Dt)),Xe=An(Wn({},Bt),{width:Qe,height:dn,position:"relative"});return ot.createElement("div",{className:"my-monaco-editor",ref:Mn,style:Xe},Rn&&ot.createElement(Zt.CopyToClipboard,{text:wt,onCopy:()=>Cn.ZP.success("\u590D\u5236\u6210\u529F")},ot.createElement(hn.Z,{title:"\u590D\u5236\u4EE3\u7801"},ot.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},ot.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function we({width:Ee="100%",height:ke="100%",original:ln,modified:Dt,language:wt,options:At={}}){const Bt=(0,ot.useRef)(),[jt,Mt]=(0,ot.useState)(null);function Ae($n){let xi;return Bt.current&&(xi=new Tt.Z(Fi=>{for(let Bi of Fi)(Bi.target.offsetHeight>0||Bi.target.offsetWidth>0)&&$n.layout()}),xi.observe(Bt.current)),xi}(0,ot.useEffect)(()=>(Bt.current&&Promise.all([St.e(8909),St.e(9404)]).then(St.bind(St,2550)).then($n=>{ce=$n;const xi=ce.editor.createDiffEditor(Bt.current,An(Wn({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},At),{wordWrap:!0}));Mt(xi);let Fi=Ae(xi);return()=>{xi.dispose();const Bi=xi.getModel();Bi&&Bi.dispose(),Fi.unobserve(Bt.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,ot.useEffect)(()=>{jt&&jt.setModel({original:ce.editor.createModel(ln,wt),modified:ce.editor.createModel(Dt,wt)})},[ln,Dt,wt,jt]);const En=wn(Ee),Rn=wn(ke),Pn={width:En,height:Rn};return ot.createElement("div",{className:"my-diff-editor",ref:Bt,style:Pn})}},85057:function(un,Yn,St){"use strict";St.d(Yn,{jL:function(){return fe},w9:function(){return be},QD:function(){return Fi},cQ:function(){return Zt},op:function(){return Ae},O5:function(){return _e},_b:function(){return Lo},t7:function(){return ut},Gi:function(){return cn},YG:function(){return An},qp:function(){return xe},vr:function(){return ro},qE:function(){return Pn},Je:function(){return Pt},wb:function(){return Je},cq:function(){return ce},tp:function(){return Ft}});var ot=St(59301),Tt={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},ae="data:image/png;base64,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/cZoGgHQKODeSsaUEiA5iSy6IqYRn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/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",fe=({dataSource:me=[],img:en,imgWidth:te=346,title:Yt,sunTitle:Vt,bannerExtraContent:Ve})=>ot.createElement("div",{className:Tt.banner},ot.createElement("div",{className:Tt.content},ot.createElement("aside",null,ot.createElement("p",null,ot.createElement("b",null,Yt),ot.createElement("span",null,Vt)),me.length>0&&ot.createElement("div",{className:Tt.btns},me.map((an,pn)=>ot.createElement("div",{key:pn,onClick:an.click},an.name,an.sign?ot.createElement("img",{src:ae,width:39}):null))),Ve),en&&ot.createElement("img",{style:{marginTop:33,marginRight:38},src:en,width:te}))),ve={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"},qt=St(92310),Oe=St.n(qt),de=St(89392),xe=({dataSource:me=[],value:en,onChange:te,onTitleChange:Yt,className:Vt,title:Ve,titleWidth:an=41,style:pn={},fontColor:We="#6A7283",showCount:Sn})=>{const[ai,gn]=(0,ot.useState)(0),[Qe,Xt]=(0,ot.useState)(!1),dn=(0,ot.useRef)(null),De=(0,ot.useRef)(null);return(0,ot.useEffect)(()=>{var Xe;me.length!==0&&(((Xe=dn==null?void 0:dn.current)==null?void 0:Xe.clientHeight)>97?gn(1):gn(0)),me.length===0&&gn(0),Xt(!1)},[me]),ot.createElement("div",{className:Oe()(ve.row,Vt),style:pn},ot.createElement("div",{onClick:(0,de.throttle)(()=>Yt==null?void 0:Yt(),2e3),style:{width:an,marginTop:Qe?12:4},className:`${ve.title} ${Yt?"current":""}`},Ve),ot.createElement("div",{className:Qe?`${ve.tagsWrap} ${ve.tagsBorderWrap}`:ve.tagsWrap},ot.createElement("div",{className:ve.bar,ref:De,style:ai>0?{height:ai===1?97:"auto",overflow:ai===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},ot.createElement("div",{className:ve.tag,ref:dn},me==null?void 0:me.map(Xe=>ot.createElement("span",{onClick:()=>te(Xe.id),key:Xe.id,style:{color:We},className:en===Xe.id?ve.active:""},ot.createElement("span",{title:Xe.name,className:ve.name},Xe.name),!!Sn&&ot.createElement("span",{className:ve.num},Xe.count))))),!!ai&&ot.createElement(ot.Fragment,null,ai===1?ot.createElement("div",{onClick:()=>{var Xe;gn(2),((Xe=dn==null?void 0:dn.current)==null?void 0:Xe.clientHeight)>245?Xt(!0):Xt(!1)},className:ve.action},"\u5C55\u5F00",ot.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):ot.createElement("div",{onClick:()=>{De.current.scrollTop=0,gn(1),Xt(!1)},className:ve.action},"\u6536\u8D77",ot.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},ze={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"},Ft=({dataSource:me=[],value:en,onChange:te,className:Yt,style:Vt={}})=>ot.createElement("div",{style:Vt,className:Oe()(ze.tabs,Yt)},me.map(Ve=>ot.createElement("span",{onClick:()=>te(Ve.id),className:en===Ve.id?ze.active:"",key:Ve.id},Ve.name))),nt={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"},et=St(92832),ut=({dataSource:me=[],value:en="",onChange:te,onInputChange:Yt=()=>{},className:Vt,style:Ve={},placeholder:an,allowClear:pn=!1})=>{var We;const[Sn,ai]=(0,ot.useState)(""),[gn,Qe]=(0,ot.useState)("");(0,ot.useEffect)(()=>{var De;let Xe=en;(De=JSON.stringify(en))!=null&&De.includes("{")&&(ai(en.id),Xe=en.value||"");try{Qe(decodeURIComponent(Xe||""))}catch(he){Qe(decodeURIComponent(Xe||""))}},[en]);const Xt=()=>{te(encodeURIComponent(gn),Sn||null)},dn=De=>{De!==Sn&&(ai(De),te(encodeURIComponent(gn),De))};return ot.createElement("div",{className:Oe()(nt.input,Vt),style:Ve},!!me.length&&ot.createElement("div",{className:nt.dropdown},ot.createElement("div",{className:nt.text},(We=me.find(De=>De.id===Sn))==null?void 0:We.name,ot.createElement("i",{className:"iconfont icon-zhankai4"}),ot.createElement("b",{className:nt.b1}),ot.createElement("b",{className:nt.b2})),ot.createElement("div",{className:nt.menu},me.map((De,Xe)=>ot.createElement("div",{key:Xe,onClick:()=>dn(De.id)},De.name)))),ot.createElement(et.default,{onPressEnter:Xt,value:gn,onChange:De=>{Qe(De.target.value),Yt(encodeURIComponent(De.target.value),Sn||null)},bordered:!1,placeholder:an}),ot.createElement("i",{onClick:Xt,className:"iconfont icon-sousuo9 font14 pl10 current"}))},pt={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"},Pt=({value:me,onChange:en,className:te,total:Yt,pageSize:Vt,style:Ve={}})=>{const an=me<2,pn=me>=Math.ceil(Yt/Vt);return Yt<=Vt?ot.createElement(ot.Fragment,null):ot.createElement("div",{className:Oe()(pt.quickPager,te),style:Ve},ot.createElement("div",{onClick:()=>{an||en(me-1,"prev")},className:an?pt.disabled:""},"\u4E0A\u4E00\u9875"),ot.createElement("div",{onClick:()=>{pn||en(me+1,"next")},className:pn?pt.disabled:""},"\u4E0B\u4E00\u9875"))},bt={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"},Rt=St(71418),Ut=St(6848),ee=St(13570),re=St(3294),ie=St(955),Me=St(96908),pe=St(57177),Le=St(81378),ge=St(8797),Je=({className:me,dataSource:en=[],col:te=4,right:Yt,bottom:Vt=23,precision:Ve=0,wrapWidth:an=1200,trackEventItems:pn,loading:We})=>{const Sn=Math.floor((an-(te-1)*Yt)/te);return ot.createElement(Rt.Z,{spinning:We},ot.createElement("div",{className:Oe()(bt.list,me)},!!en.length&&en.map((ai,gn)=>{const{name:Qe,id:Xt,identifier:dn,power:De,cover_image_id:Xe,pic:he}=ai;return ot.createElement("div",{className:bt.wrap,key:Xt,style:{width:Sn,marginRight:(1+gn)%te===0?0:Yt+Ve,marginBottom:Vt}},ot.createElement("a",{target:"_blank",href:`/shixuns/${dn}/challenges`,className:bt.li,onClick:Pe=>{Pe.preventDefault(),pn&&(0,ie.L9)([pn]),De&&(0,ie.xg)(`/shixuns/${dn}/challenges`)}},ot.createElement("div",{className:bt.img},ot.createElement("img",{className:bt.cover,src:`${he}`}),ai.is_jupyter&&ot.createElement("img",{className:bt.sign,src:Me}),ai.is_jupyter_lab&&ot.createElement("img",{className:bt.sign,src:pe}),ai.is_unity_3d&&ot.createElement("img",{className:bt.sign,src:Le})),ot.createElement("div",{className:bt.name},ot.createElement(Ut.Z,{title:Qe||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ot.createElement("span",{className:bt.e},Qe||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ot.createElement("div",{className:bt.tags},ot.createElement(Ut.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},ot.createElement("span",null,ot.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),ot.createElement("span",null,ai.challenges_count))),!!ai.myshixuns_count&&ot.createElement(Ut.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ot.createElement("span",null,ot.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),ot.createElement("span",null,ai.myshixuns_count))),ot.createElement(Ut.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},ot.createElement("span",null,ot.createElement("span",null,ai.level))),ot.createElement("div",{className:bt.rate},ot.createElement(ee.Z,{allowHalf:!0,disabled:!0,defaultValue:ai.score_info}),ot.createElement("span",null,"\xA0",ai.score_info?`${ai.score_info}\u5206`:"5\u5206")))),!De&&ot.createElement("div",{className:bt.lockWrap},ot.createElement("img",{src:`${re.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ot.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!en.length&&ot.createElement(ge.Z,null)))},Cn={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"},hn=St(24065),Xn=St(59301),Zt=({className:me,dataSource:en=[],col:te=4,right:Yt,bottom:Vt=23,precision:Ve=0,wrapWidth:an=1200,trackEventItems:pn,loading:We,onRemove:Sn=()=>{},isCurrent:ai=!0,showAlias:gn=!1})=>{const Qe=Math.floor((an-(te-1)*Yt)/te),Xt=[{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 Xn.createElement(Rt.Z,{spinning:We},Xn.createElement("div",{className:Oe()(Cn.list,me)},!!(en!=null&&en.length)&&(en==null?void 0:en.map((dn,De)=>{var Xe;const{name:he,id:Pe,identifier:fn,featured:Di,school_name:oi,image_url:ii,excellent:Bn,is_plan:Kn}=dn;return Xn.createElement("div",{key:Pe,className:Cn.wrap,style:{width:Qe,marginRight:(1+De)%te===0?0:Yt+Ve,marginBottom:Vt}},Xn.createElement("a",{className:Cn.li,onClick:ki=>{ki.preventDefault(),ki.stopPropagation(),pn&&(0,ie.L9)([pn]),(0,ie.xg)(`/paths/${fn}`)}},Xn.createElement("div",{className:Cn.img},Xn.createElement("img",{className:Cn.cover,src:`${ii}`}),ai&&(0,hn.bg)()&&(dn==null?void 0:dn.studying)&&Xn.createElement("div",{className:`${Cn.movebq} user-path-items`,onClick:ki=>{ki.stopPropagation(),Sn(dn)}},Xn.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Xn.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Xe=dn==null?void 0:dn.subject_tags)==null?void 0:Xe.map((ki,bi)=>{var Hi,yn;if(bi===0){const Qi=(Hi=Xt.find(io=>io.name==ki))==null?void 0:Hi.swimg;return Xn.createElement("img",{className:Cn.sign,src:Qi,style:{left:"-4px"}})}const uo=(yn=Xt.find(Qi=>Qi.name==ki))==null?void 0:yn.ptimg;return Xn.createElement("img",{className:Cn.sign,src:uo,style:{left:`${48+52*(bi-1)+2*bi}px`}})}),Xn.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(dn==null?void 0:dn.excellent)&&Xn.createElement("div",{className:Cn.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Xn.createElement("div",{className:Cn.name},Xn.createElement(Ut.Z,{title:gn&&(dn!=null&&dn.excellent_alias_name)?Xn.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${he}`,Xn.createElement("br",null),Xn.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${dn==null?void 0:dn.excellent_alias_name}`)):he},Xn.createElement("span",{className:Cn.e},gn&&(dn==null?void 0:dn.excellent_alias_name)||he))),Xn.createElement(Ut.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${oi}`},Xn.createElement("div",{className:Cn.unit},Xn.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),oi)),Xn.createElement("div",{className:Cn.tags},Xn.createElement("div",null,Xn.createElement(Ut.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Xn.createElement("span",null,Xn.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Xn.createElement("span",null,dn.stages_count))),Xn.createElement(Ut.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Xn.createElement("span",null,Xn.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Xn.createElement("span",null,dn.members_count)))))))})),!en.length&&Xn.createElement(ge.Z,null)))},Ye={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"},kn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBc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dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Tn=St(59301),be=({className:me,dataSource:en=[],col:te=4,right:Yt,bottom:Vt=23,precision:Ve=0,wrapWidth:an=1200,trackEventItems:pn,loading:We,handleVery:Sn=()=>!0})=>{const ai=Math.floor((an-(te-1)*Yt)/te);return Tn.createElement(Rt.Z,{spinning:We},Tn.createElement("div",{className:Oe()(Ye.list,me)},!!en.length&&en.map((gn,Qe)=>{const{subject_identifier:Xt,id:dn,identifier:De,power:Xe}=gn,he=gn.is_public!=0&&gn.is_public;return Tn.createElement("div",{className:Ye.wrap,key:dn,style:{width:ai,marginRight:(1+Qe)%te===0?0:Yt+Ve,marginBottom:Vt}},Tn.createElement("a",{className:Ye.li,onClick:Pe=>{Pe.preventDefault(),Sn(gn==null?void 0:gn.first_category_url)&&(pn&&(0,ie.L9)([pn]),(0,ie.xg)(gn.first_category_url))}},Tn.createElement("div",{className:Ye.top},Tn.createElement(Ut.Z,{title:gn.name},Tn.createElement("div",{className:Ye.name},gn.name)),Tn.createElement("img",{className:Ye.img,src:re.Z.IMG_SERVER+"/images/"+gn.avatar_url}),Tn.createElement("div",{className:Ye.text,title:gn.creator},gn.creator),Xt&&Tn.createElement("div",{className:Ye.btns},Tn.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Tn.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),he&&Tn.createElement("div",{className:Ye.sign},"\u516C\u5F00")),Tn.createElement("div",{className:Ye.bottom},gn.visits>0&&Tn.createElement(Ut.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Tn.createElement("span",null,Tn.createElement("i",{className:"iconfont icon-liulanyan"}),Tn.createElement("span",null,gn.visits))),gn.course_members_count>0&&Tn.createElement(Ut.Z,{title:"\u6210\u5458",placement:"bottom"},Tn.createElement("span",null,Tn.createElement("i",{className:"iconfont icon-chengyuan"}),gn.course_members_count)),gn.tasks_count>0&&Tn.createElement(Ut.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Tn.createElement("span",null,Tn.createElement("i",{className:"iconfont icon-zuoye"}),gn.tasks_count)),gn.is_end?Tn.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Tn.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!gn.is_accessible&&Tn.createElement("div",{className:Ye.lockWrap},Tn.createElement("img",{src:`${re.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Tn.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!en.length&&Tn.createElement(ge.Z,null)))},Ke={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"},jn=St(89070),An=({dataSource:me=[],value:en,onChange:te,className:Yt,style:Vt={},tabBarExtraContent:Ve})=>ot.createElement("div",{className:Oe()(Ke.tabs,Yt),style:Vt},ot.createElement("div",{className:Ke.tabsWrap},me.map((an,pn)=>!(an!=null&&an.hide)&&ot.createElement("aside",{className:Ke.tab,onClick:()=>{te(an.id),an.link&&jn.history.push(an.link)},key:pn},ot.createElement("div",{className:en===an.id?Ke.active:""},an.name),(an==null?void 0:an.resetCount)==null&&(an==null?void 0:an.total)!==void 0&&ot.createElement("span",null,"\uFF08",an==null?void 0:an.total,"\uFF09"),(an==null?void 0:an.resetCount)!==void 0&&(an==null?void 0:an.total)!==void 0&&ot.createElement(Ut.Z,{title:(an==null?void 0:an.tip)!=null?an==null?void 0:an.tip:""},ot.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ot.createElement("span",{style:{color:"#000"}},an==null?void 0:an.resetCount),"/",ot.createElement("span",null,an==null?void 0:an.total),"\uFF09"))))),ot.createElement("div",{className:Ke.tabBar},Ve)),cn=({className:me,style:en={},children:te})=>ot.createElement("div",{className:Oe()(me),style:en},te),wn={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"},Fn=St(38854),mn=St(20834);const Dn=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var ce=({sortValue:me,dropValue:en,className:te,onSort:Yt,onDrop:Vt,dataSource:Ve=Dn})=>{var an;return ot.createElement("div",{className:Oe()(wn.orderWrap,te)},ot.createElement(Fn.Z,{dropdownRender:()=>ot.createElement(mn.default,null,Ve.map((pn,We)=>ot.createElement(mn.default.Item,{key:We,onClick:()=>Vt(pn.id)},pn.name)))},ot.createElement("span",{className:wn.orderTextWrap},(an=Ve.find(pn=>en===pn.id))==null?void 0:an.name)),ot.createElement("span",{className:wn.orderIconWrap},ot.createElement("span",{className:wn.orderAsc},ot.createElement("i",{className:me==="asc"?`iconfont icon-sanjiaoxing-up font12 ${wn.cursorPointer} ${wn.active}`:`iconfont icon-sanjiaoxing-up font12 ${wn.cursorPointer}`,onClick:()=>Yt(me==="asc"?"desc":"asc")})),ot.createElement("span",{className:wn.orderDesc},ot.createElement("i",{className:me==="desc"?`iconfont icon-sanjiaoxing-down font12 ${wn.cursorPointer} ${wn.active}`:`iconfont icon-sanjiaoxing-down font12 ${wn.cursorPointer}`,onClick:()=>Yt(me==="asc"?"desc":"asc")}))))},Kt={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"},we=St(3113),Ee=Object.defineProperty,ke=Object.getOwnPropertySymbols,ln=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,wt=(me,en,te)=>en in me?Ee(me,en,{enumerable:!0,configurable:!0,writable:!0,value:te}):me[en]=te,At=(me,en)=>{for(var te in en||(en={}))ln.call(en,te)&&wt(me,te,en[te]);if(ke)for(var te of ke(en))Dt.call(en,te)&&wt(me,te,en[te]);return me},Bt=(me,en)=>{var te={};for(var Yt in me)ln.call(me,Yt)&&en.indexOf(Yt)<0&&(te[Yt]=me[Yt]);if(me!=null&&ke)for(var Yt of ke(me))en.indexOf(Yt)<0&&Dt.call(me,Yt)&&(te[Yt]=me[Yt]);return te},jt=(me,en,te)=>new Promise((Yt,Vt)=>{var Ve=We=>{try{pn(te.next(We))}catch(Sn){Vt(Sn)}},an=We=>{try{pn(te.throw(We))}catch(Sn){Vt(Sn)}},pn=We=>We.done?Yt(We.value):Promise.resolve(We.value).then(Ve,an);pn((te=te.apply(me,en)).next())}),Ae=me=>{var en=me,{className:te,style:Yt,children:Vt,loading:Ve=!1,openLoading:an,onClick:pn=()=>{},size:We="middle",shape:Sn="round"}=en,ai=Bt(en,["className","style","children","loading","openLoading","onClick","size","shape"]);const[gn,Qe]=(0,ot.useState)(!1);return ot.createElement(we.ZP,At({onClick:(0,de.throttle)(Xt=>jt(void 0,null,function*(){an&&Qe(!0);try{yield pn(Xt)}catch(dn){console.log("error",dn)}an&&Qe(!1)}),2e3,{leading:!0,trailing:!1}),className:Oe()(Kt.btn,Kt[`${We}-${Sn}`],te),style:Yt,size:We,shape:Sn,loading:gn||Ve},ai),Vt)},En={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"},Pn=({className:me,style:en,children:te=null,onClick:Yt,title:Vt})=>ot.createElement("div",{className:Oe()(En.head,me),style:en},ot.createElement("span",{className:"primary-hover",onClick:Yt},ot.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),ot.createElement("b",{title:Vt},Vt),ot.createElement("div",{className:En.node},te)),$n={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"},Fi=({confirmShow:me=!0,confirmTitle:en,confirmClick:te,cancelShow:Yt=!0,cancelTitle:Vt,cancelClick:Ve,className:an,style:pn,confirmLoading:We=!1})=>ot.createElement("div",{className:Oe()($n.btns,an),style:pn},me&&ot.createElement(we.ZP,{loading:We,onClick:te,type:"primary",className:$n.confirm},en),Yt&&ot.createElement(we.ZP,{onClick:Ve,className:$n.cancel},Vt)),Bi={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"},ro=({className:me,style:en={},LeftContent:te,children:Yt,RightContent:Vt})=>ot.createElement("div",{className:Oe()(Bi.fixedBottom,me),style:en},ot.createElement("div",{className:Bi.wrap},ot.createElement("div",{className:Bi.left},te),ot.createElement("div",{className:Bi.center},Yt),ot.createElement("div",{className:Bi.right},Vt))),Eo={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"},Lo=({className:me,style:en={},dataSource:te=[]})=>ot.createElement("div",{className:Oe()(Eo.crumbs,me),style:en},te.map((Yt,Vt)=>Vtjn.history.push(Yt.path)},Yt.name):ot.createElement("span",null,Yt.name),ot.createElement("span",null,"\xA0",">","\xA0")):ot.createElement("span",{key:Vt,style:{color:"#5F6368"}},Yt.name))),qn=St(31797),$t=Object.defineProperty,tn=Object.defineProperties,Jn=Object.getOwnPropertyDescriptors,zt=Object.getOwnPropertySymbols,Mn=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,Ct=(me,en,te)=>en in me?$t(me,en,{enumerable:!0,configurable:!0,writable:!0,value:te}):me[en]=te,vn=(me,en)=>{for(var te in en||(en={}))Mn.call(en,te)&&Ct(me,te,en[te]);if(zt)for(var te of zt(en))le.call(en,te)&&Ct(me,te,en[te]);return me},Hn=(me,en)=>tn(me,Jn(en)),Qt=(me,en)=>{var te={};for(var Yt in me)Mn.call(me,Yt)&&en.indexOf(Yt)<0&&(te[Yt]=me[Yt]);if(me!=null&&zt)for(var Yt of zt(me))en.indexOf(Yt)<0&&le.call(me,Yt)&&(te[Yt]=me[Yt]);return te};const{Countdown:Te}=qn.default;var _e=me=>{var en=me,{onChange:te}=en,Yt=Qt(en,["onChange"]);const[Vt,Ve]=(0,ot.useState)(null);(0,ot.useEffect)(()=>{typeof Vt=="number"&&Vt>=0&&te(Vt)},[Vt]);const an=pn=>{const We=Math.floor(pn/1e3);Ve(We)};return ot.createElement(Te,Hn(vn({},Yt),{onChange:an}))}},58856:function(un,Yn,St){"use strict";St.d(Yn,{Z:function(){return Tt}});var ot=St(59301);function Tt(ae,$e){const fe=(0,ot.useRef)();(0,ot.useEffect)(()=>{fe.current=ae}),(0,ot.useEffect)(()=>{function ve(){fe.current()}if($e!==null){let qt=setInterval(ve,$e);return()=>clearInterval(qt)}},[$e])}},29558:function(un,Yn,St){"use strict";St.r(Yn),St.d(Yn,{default:function(){return xd}});var ot=St(59301),Tt=St(92736),ae=St(81863),$e=St(61682),fe=St(89070),ve=St(61186),qt=St.n(ve),Oe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKTWlDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVN3WJP3Fj7f92UPVkLY8LGXbIEAIiOsCMgQWaIQkgBhhBASQMWFiApWFBURnEhVxILVCkidiOKgKLhnQYqIWotVXDjuH9yntX167+3t+9f7vOec5/zOec8PgBESJpHmomoAOVKFPDrYH49PSMTJvYACFUjgBCAQ5svCZwXFAADwA3l4fnSwP/wBr28AAgBw1S4kEsfh/4O6UCZXACCRAOAiEucLAZBSAMguVMgUAMgYALBTs2QKAJQAAGx5fE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ogICAgICAgICA8L3Bob3Rvc2hvcDpEb2N1bWVudEFuY2VzdG9ycz4KICAgICAgICAgPHBob3Rvc2hvcDpDb2xvck1vZGU+MzwvcGhvdG9zaG9wOkNvbG9yTW9kZT4KICAgICAgICAgPHBob3Rvc2hvcDpJQ0NQcm9maWxlPnNSR0IgSUVDNjE5NjYtMi4xPC9waG90b3Nob3A6SUNDUHJvZmlsZT4KICAgICAgICAgPGRjOmZvcm1hdD5pbWFnZS9wbmc8L2RjOmZvcm1hdD4KICAgICAgICAgPHRpZmY6T3JpZW50YXRpb24+MTwvdGlmZjpPcmllbnRhdGlvbj4KICAgICAgICAgPHRpZmY6WFJlc29sdXRpb24+NzIwMDAwLzEwMDAwPC90aWZmOlhSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpZUmVzb2x1dGlvbj43MjAwMDAvMTAwMDA8L3RpZmY6WVJlc29sdXRpb24+CiAgICAgICAgIDx0aWZmOlJlc29sdXRpb25Vbml0PjI8L3RpZmY6UmVzb2x1dGlvblVuaXQ+CiAgICAgICAgIDxleGlmOkNvbG9yU3BhY2U+MTwvZXhpZjpDb2xvclNwYWNlPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+MjA8L2V4aWY6UGl4ZWxYRGltZW5zaW9uPgogICAgICAgICA8ZXhpZjpQaXhlbFlEaW1lbnNpb24+MjA8L2V4aWY6UGl4ZWxZRGltZW5zaW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKPD94cGFja2V0IGVuZD0idyI/Pu6JurQAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAABRFJREFUeNpE1OtvW/Udx/H3ufj4+Ph2nDh2vLgrTSPaFNqGtd0Gy9LRTVymNoNM6ihCaEwdQ5sYAo0HTOwBYg/Yk0pDiG3qmLSiPtjGJERbdZSQaUArykXt1la9hDRNY6dpYsexj30uPj7ntwcVyT/w0ucrfT5fSQgBdguAEBlZhDhaiVikF2j22lfPjP77+Kc/9ZyO9p37th7s2rLlbegveZ4g6jggS4AMAKkkkhAC366DJJADgaJlgA/unTx+4qmT/7oyKpxJfdYzUDIma7M6TsXoDH+3/8jgnrG/iOC2o8JrIiQJECjpvlt0Q7JoimWEkQHN1Sf+8MbE40+O7226M/rtCYX9+k2e0me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ZwFp2yOx9z9HyYzu8aIKi3CKwGGBqKZqLFoL3cpFWqoa/tRi/m8ZZt3LIlYmuaKKkUsS9rI9pXUfjohdzXkr2RTAGvHhIGKmGg4C5aIELa1TrNyUUkJQKShHujQiQmk/92IasZ1s9Ch9Uta0qKaPeOhyw7/ZpdKrU0ZZlUrkNEstEkH8VbRjgOyY1ZUgMpZK2JmtaQMr3XO+pdv1GN23+kaIus1kb4SBHVblTjTzsX8y859cUHPX9251c29WwKLSmhm3KXGkti3eB6rMe01dzI2aWphXFnpnaib2culBQFEbgA/H8ALiI3EysggNoAAAAASUVORK5CYII=",de={flex_box_center:"flex_box_center___DajON",flex_space_between:"flex_space_between___tvLDY",flex_box_vertical_center:"flex_box_vertical_center___PvYv9",flex_box_center_end:"flex_box_center_end___F4Cig",flex_box_column:"flex_box_column___u9A0o",footer:"footer___k7tsL",fastLink:"fastLink___WjVYd",cooperation:"cooperation___Owpto",copyright:"copyright___UL6n9"},xe=({user:Ne,globalSetting:Ze})=>{var qe,ci,Xi,Zi,wo,$i;return ot.createElement("div",{className:de.footer,style:{height:(qe=Ze==null?void 0:Ze.setting)!=null&&qe.main_site?"":"80px",lineHeight:(ci=Ze==null?void 0:Ze.setting)!=null&&ci.main_site?"":"80px"}},((Xi=Ze==null?void 0:Ze.setting)==null?void 0:Xi.main_site)&&ot.createElement("aside",{className:de.fastLink},ot.createElement("a",{target:"_blank",href:"/"},"\u7F51\u7AD9\u9996\u9875"),!((Zi=Ze==null?void 0:Ze.setting)!=null&&Zi.is_local)&&ot.createElement("a",{target:"_blank",href:"/help/about_us"},"\u5173\u4E8E\u6211\u4EEC"),ot.createElement("a",{target:"_blank",href:"/help/contact_us"},"\u8054\u7CFB\u6211\u4EEC"),ot.createElement("a",{target:"_blank",href:"/help/cooperatives"},"\u5408\u4F5C\u4F19\u4F34"),ot.createElement("a",{target:"_blank",href:"/help/agreement"},"\u670D\u52A1\u534F\u8BAE"),ot.createElement("a",{target:"_blank",href:"/help/help_center"},"\u5E2E\u52A9\u4E2D\u5FC3"),ot.createElement("a",{target:"_blank",href:"/help/feedback"},"\u610F\u89C1\u53CD\u9988")),(wo=Ze.setting)!=null&&wo.footer?ot.createElement("div",{dangerouslySetInnerHTML:{__html:($i=Ze.setting)==null?void 0:$i.footer}}):ot.createElement("div",null,ot.createElement("p",{className:"footer_con-p inline lineh-30 font-14"},ot.createElement("span",{className:"font-18 fl"},"\xA9"),"\xA0",qt()().year(),"\xA0EduCoder",ot.createElement("a",{style:{color:"#888"},target:"_blank",href:"http://beian.miit.gov.cn/",className:"ml15 mr15"},"\u6E58ICP\u590717009477\u53F7"),ot.createElement("a",{style:{color:"#888"},target:"_blank",href:"http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=43019002000962",className:"mr15"},ot.createElement("img",{className:"vertical4",src:Oe}),"\u6E58\u516C\u7F51\u5B89\u590743019002000962\u53F7"),ot.createElement("a",{href:"https://team.trustie.net",style:{color:"#888"},target:"_blank"},"Trustie"),"\xA0\xA0\xA0&\xA0\xA0\xA0IntelliDE inside. ",ot.createElement("span",{className:"mr15"},"\u7248\u6743\u6240\u6709 \u6E56\u5357\u667A\u64CE\u79D1\u6280\u6709\u9650\u516C\u53F8"))))},ze={flex_box_center:"flex_box_center___mmTa9",flex_space_between:"flex_space_between___jMnlY",flex_box_vertical_center:"flex_box_vertical_center___Nzd52",flex_box_center_end:"flex_box_center_end___rVNra",flex_box_column:"flex_box_column___cg5bF",newFooter:"newFooter___XUH_2"},He=St(3294),Ft=St(43418),nt=St(955),et=St(85149),ut=({user:Ne,globalSetting:Ze})=>{var qe,ci,Xi;const[Zi,wo]=(0,ot.useState)(!1);(0,ot.useEffect)(()=>(window.addEventListener("click",Gi),()=>{window.removeEventListener("click",Gi)}),[]);const $i=()=>{if(function(){return/macintosh|mac os x/i.test(navigator.userAgent)}()){wo(!0);return}(0,nt.xg)("//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd")},li=(bo,Qo)=>{if(bo.className===Qo)return bo;for(let Vo=0,Fo=bo;Fo=Fo.parentNode;Vo++){if(Fo.className===Qo)return Fo;if(Fo==document.documentElement)return!1}},Gi=bo=>{var Qo,Vo,Fo;bo!=null&&bo.target&&(((Qo=bo==null?void 0:bo.target)==null?void 0:Qo.innerText)==="\u5934\u6B4C\u6559\u5E08\u4EA4\u6D41\u793E\u533A"||((Fo=(Vo=bo==null?void 0:bo.target)==null?void 0:Vo.nextElementSibling)==null?void 0:Fo.innerText)==="\u5934\u6B4C\u6559\u5E08\u4EA4\u6D41\u793E\u533A")&&li(bo.target,"module-introduce")&&$i()};return ot.createElement(ot.Fragment,null,ot.createElement(Ft.default,{centered:!0,destroyOnClose:!0,open:Zi,title:"\u5934\u6B4C\u6559\u5E08\u4EA4\u6D41\u793E\u533A",width:"500px",footer:null,onCancel:()=>wo(!1)},ot.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},ot.createElement("p",null,"\u626B\u7801\u6216\u641C\u7D22\u52A0\u5165\u5934\u6B4C\u6559\u5E08\u4EA4\u6D41QQ\u7FA4\uFF1A",(qe=Ze==null?void 0:Ze.setting)==null?void 0:qe.homepage_tea_qq_number," "),ot.createElement("img",{src:`${He.Z.IMG_SERVER}/${(ci=Ze==null?void 0:Ze.setting)==null?void 0:ci.homepage_tea_qq_qrcode_url}`,width:200,height:200}))),ot.createElement("div",{className:ze.newFooter,dangerouslySetInnerHTML:{__html:(0,et.z)((Xi=Ze.setting)==null?void 0:Xi.footer,!0)}}))};const pt=({user:Ne,globalSetting:Ze,loading:qe,dispatch:ci})=>{var Xi,Zi;return Ze.showFooter&&Ze.showHeaderFooter?ot.createElement("section",{id:"footer"},(Xi=Ze==null?void 0:Ze.setting)!=null&&Xi.main_site&&!((Zi=Ze==null?void 0:Ze.setting)!=null&&Zi.is_local)?ot.createElement(ut,{user:Ne,globalSetting:Ze}):ot.createElement(xe,{user:Ne,globalSetting:Ze})):ot.createElement(ot.Fragment,null," ")};var yt=(0,fe.connect)(({user:Ne,loading:Ze,globalSetting:qe})=>({user:Ne,globalSetting:qe,loading:Ze.models.index}))(pt),Pt=St(6848),bt=St(9122),Rt=St(7678),Ut={sideBar:"sideBar___iM1tf",wrap:"wrap___GEY86",backTop:"backTop___skoyU",ul:"ul___JwWww",tooltipclass:"tooltipclass___QQUJq"},ee=St(32637);const re=({globalSetting:Ne,loading:Ze,shixunHomeworks:qe,user:ci,dispatch:Xi})=>{var Zi,wo,$i,li,Gi,bo,Qo,Vo,Fo,fo,Sr,Fr,Rr,Br,Ga,Za,Pa;const[ka,Ar]=(0,ot.useState)(!1),[Ta,oo]=(0,ot.useState)(!1),[Ro]=(0,ot.useState)(localStorage.hideCustom?JSON.parse(localStorage.hideCustom):[]),[Go,Jo]=(0,ot.useState)((localStorage==null?void 0:localStorage.hidesidebar)!="1"),[Ia,rr]=(0,ot.useState)(!1),[Aa,ms]=(0,ot.useState)(!1),Qa=(0,ot.useRef)(),Dr=(0,fe.useLocation)();(0,ot.useEffect)(()=>(window.addEventListener("scroll",Ja),()=>window.removeEventListener("scroll",Ja)),[]),(0,ot.useEffect)(()=>{setTimeout(()=>{localStorage.setItem("hidesidebar","1"),Jo(!1)},5e3)},[]),(0,ot.useEffect)(()=>{qe.actionTabs.type===99&&(rr(!0),setTimeout(()=>{rr(!1)},5e3))},[qe.actionTabs]),(0,ot.useEffect)(()=>{document.domain==="www.educoder.net"&&(Dr.pathname==="/"||Dr.pathname.indexOf("/competitions/detail/")>-1||Dr.pathname.indexOf("/competitions")>-1&&Dr.pathname.split("/").length===3)?ms(!0):ms(!1)},[Dr.pathname]),(0,ot.useEffect)(()=>{var Co,Cr,No;(Co=ci==null?void 0:ci.userInfo)!=null&&Co.login&&!Ro.includes((Cr=ci==null?void 0:ci.userInfo)==null?void 0:Cr.login)&&!((No=Ne==null?void 0:Ne.setting)!=null&&No.is_local)&&setTimeout(()=>{var xr,br,Tr=document.createEvent("Events");Tr.initEvent("mouseout",!0,!1),Qa&&((xr=Qa.current)==null||xr.dispatchEvent(Tr)),Ro.push((br=ci==null?void 0:ci.userInfo)==null?void 0:br.login),localStorage.hideCustom=JSON.stringify(Ro)},5e3)},[ci]);const Ja=()=>{var Co;if(Dr.pathname==="/Activities"){Ar(!1);return}Ar(((Co=document==null?void 0:document.documentElement)==null?void 0:Co.scrollTop)>0)},Vi=()=>{const Co=function(){return/macintosh|mac os x/i.test(navigator.userAgent)}();oo(!0)};return ot.createElement("div",{className:Ut.sideBar},ot.createElement("div",{id:"wechat_QR_code_ids"},Aa&&!(0,nt.s2)()&&ot.createElement(Pt.Z,{placement:"left",overlayInnerStyle:{padding:26},getPopupContainer:()=>document.getElementById("wechat_QR_code_ids"),title:ot.createElement("div",{className:"flex-wrp flex_box_column flex_box_center"},ot.createElement(bt.Z,{errorLevel:"H",value:window.location.href,bgColor:"#FFF",size:190,icon:`${He.Z.IMG_SERVER}/${(Zi=Ne==null?void 0:Ne.setting)==null?void 0:Zi.tab_logo_url}`}),ot.createElement("div",{className:"tc font15 mt20"},"\u8BF7\u4F7F\u7528\u5FAE\u4FE1\u626B\u4E00\u626B\u5206\u4EAB",Dr.pathname.indexOf("/competitions")>-1?"\u7ADE\u8D5B":"\u5934\u6B4C"))},ot.createElement("div",{className:Ut.wrap},ot.createElement("i",{className:"iconfont icon-icon-weixin c-light-primary font22"}))),!Ne.onlyShowBackTop&&(Ne==null?void 0:Ne.onlyShowBackTopIcons)&&Go&&ot.createElement(ot.Fragment,null,!!((wo=ci==null?void 0:ci.userInfo)!=null&&wo.login)&&ot.createElement(Pt.Z,{placement:"left",defaultVisible:!(Ro!=null&&Ro.includes(($i=ci==null?void 0:ci.userInfo)==null?void 0:$i.login)),getPopupContainer:()=>document.getElementById("wechat_QR_code_ids"),title:ot.createElement("div",null,ot.createElement("div",{className:"tc"},ot.createElement("img",{className:"mt10",src:ee,width:"188px",height:"188px"})),ot.createElement("div",{className:"tc font15 mt10"},"\u514D\u8D39\u6559\u7814\u52A9\u7406"),ot.createElement("div",{className:"tc font15"},"\u5FAE\u4FE1\u626B\u4E00\u626B\u6DFB\u52A0"),ot.createElement("div",{className:"pt10 font12"},ot.createElement("ul",{className:Ut.ul},ot.createElement("li",null,"\u89E3\u7B54\u8001\u5E08\u7591\u60D1\u3001\u5E2E\u52A9\u8001\u5E08\u66F4\u5FEB\u719F\u6089\u548C\u4F7F\u7528\u5E73\u53F0\u6559\u5B66"),ot.createElement("li",null,"\u534F\u52A9\u8001\u5E08\u521B\u5EFA\u8BFE\u5802\u3001\u8BFE\u7A0B\u8BBE\u8BA1\u3001\u505A\u597D\u6559\u5B66\u5DE5\u4F5C\u3002"),ot.createElement("li",null,"\u6839\u636E\u8001\u5E08\u6559\u5B66\u65B9\u5411\uFF0C\u5206\u4EAB\u5934\u6B4C\u5E73\u53F0C9\u9662\u6821\u3001985\u9AD8\u6821\u3001211\u9AD8\u6821\u3001\u53CC\u4E00\u6D41\u9AD8\u6821\u8001\u5E08\u7ECF\u5178\u5B9E\u8DF5\u6559\u5B66\u6848\u4F8B\u3002"))))},ot.createElement("div",{className:Ut.wrap,ref:Qa},ot.createElement("a",{href:"javascript:void(0)"},ot.createElement("i",{className:"iconfont icon-yijianfankui1 c-light-primary font22"})))),!((li=Ne==null?void 0:Ne.setting)!=null&&li.is_local)&&ot.createElement(Pt.Z,{placement:"left",getPopupContainer:()=>document.getElementById("wechat_QR_code_ids"),title:ot.createElement("div",null,ot.createElement("img",{src:`${He.Z.IMG_SERVER}/images/educoder/EWM.jpg`,width:"158px",height:"158px"}),ot.createElement("div",{className:"tc font15"},"\u5FAE\u4FE1\u626B\u4E00\u626B"),ot.createElement("div",{className:"tc font15"},"\u5173\u6CE8\u516C\u4F17\u53F7"))},ot.createElement("div",{className:Ut.wrap},ot.createElement("i",{className:"iconfont icon-erweima1 c-light-primary font22"}))),!((Gi=Ne==null?void 0:Ne.setting)!=null&&Gi.is_local)&&ot.createElement(Pt.Z,{placement:"left",title:"\u5728\u7EBF\u54A8\u8BE2"},ot.createElement("div",{className:Ut.wrap},ot.createElement("a",{onClick:Vi,className:"c-white"},ot.createElement("i",{className:"iconfont icon-QQ1 c-light-primary font22"})))),ot.createElement("div",{onClick:()=>{Jo(!1),localStorage.setItem("hidesidebar","1")},style:{textAlign:"center",fontSize:"14px",color:"#0152d9",margin:"10px 0px",cursor:"pointer"}},"\u6536\u8D77")),((bo=Ne==null?void 0:Ne.setting)==null?void 0:bo.main_site)&&!Ne.onlyShowBackTop&&(Ne==null?void 0:Ne.onlyShowBackTopIcons)&&!Go&&ot.createElement("div",{onClick:()=>{Jo(!0),localStorage.setItem("hidesidebar","2")},style:{textAlign:"center",fontSize:"16px",color:"#0152d9",background:"#fff",margin:"10px 0px",cursor:"pointer",position:"absolute",left:"80px",top:"-150px",boxShadow:"0px 0px 8px 0px #f1f1f1",width:"30px",writingMode:"vertical-lr",height:"100px",paddingLeft:"3px"}},"\u8054\u7CFB\u6211\u4EEC"),(Ne==null?void 0:Ne.showQuestionBackTop)&&!((Qo=Ne==null?void 0:Ne.setting)!=null&&Qo.is_local)&&ot.createElement(Pt.Z,{placement:"left",getPopupContainer:()=>document.getElementById("wechat_QR_code_ids"),title:ot.createElement("div",null,ot.createElement("img",{src:((Vo=ci==null?void 0:ci.userInfo)==null?void 0:Vo.identity)==="student"?`${He.Z.IMG_SERVER}/${(Fo=Ne==null?void 0:Ne.setting)==null?void 0:Fo.homepage_stu_qq_qrcode_url}`:`${He.Z.IMG_SERVER}/${(fo=Ne==null?void 0:Ne.setting)==null?void 0:fo.homepage_tea_qq_qrcode_url}`,width:"158px",height:"158px"}),ot.createElement("div",{className:"tc font15 mt10",style:{marginBottom:6}},"\u626B\u7801\u8FDB\u7F16\u7A0B\u4EA4\u6D41\u7FA4"))},ot.createElement("div",{className:Ut.wrap},ot.createElement("i",{className:"iconfont icon-erweima1 c-light-primary font22"}))),ka&&ot.createElement(Pt.Z,{placement:"left",title:"\u8FD4\u56DE\u9876\u90E8"},ot.createElement(Rt.Z,{className:`${Ut.wrap} ${Ut.backTop}`,visibilityHeight:0},ot.createElement("i",{className:"iconfont icon-huidaodingbu c-light-primary font14"})))),ot.createElement(Ft.default,{centered:!0,destroyOnClose:!0,open:Ta,title:((Sr=ci==null?void 0:ci.userInfo)==null?void 0:Sr.identity)==="student"?"\u5934\u6B4C\u5B66\u751F\u4EA4\u6D41\u793E\u533A":"\u5934\u6B4C\u6559\u5E08\u4EA4\u6D41\u793E\u533A",width:"500px",footer:null,onCancel:()=>oo(!1)},ot.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",marginBottom:20}},ot.createElement("p",null,((Fr=ci==null?void 0:ci.userInfo)==null?void 0:Fr.identity)==="student"?`\u626B\u7801\u6216\u641C\u7D22\u52A0\u5165\u5934\u6B4C\u5B66\u751F\u4EA4\u6D41QQ\u7FA4\uFF1A${(Rr=Ne==null?void 0:Ne.setting)==null?void 0:Rr.homepage_stu_qq_number}`:`\u626B\u7801\u6216\u641C\u7D22\u52A0\u5165\u5934\u6B4C\u6559\u5E08\u4EA4\u6D41QQ\u7FA4\uFF1A${(Br=Ne==null?void 0:Ne.setting)==null?void 0:Br.homepage_tea_qq_number}`),ot.createElement("img",{src:((Ga=ci==null?void 0:ci.userInfo)==null?void 0:Ga.identity)==="student"?`${He.Z.IMG_SERVER}/${(Za=Ne==null?void 0:Ne.setting)==null?void 0:Za.homepage_stu_qq_qrcode_url}`:`${He.Z.IMG_SERVER}/${(Pa=Ne==null?void 0:Ne.setting)==null?void 0:Pa.homepage_tea_qq_qrcode_url}`,width:200,height:200}))))};var ie=(0,fe.connect)(({loading:Ne,globalSetting:Ze,user:qe,shixunHomeworks:ci})=>({globalSetting:Ze,user:qe,loading:Ne.models.index,shixunHomeworks:ci}))(re),Me=St(3113),pe=(Ne,Ze,qe)=>new Promise((ci,Xi)=>{var Zi=li=>{try{$i(qe.next(li))}catch(Gi){Xi(Gi)}},wo=li=>{try{$i(qe.throw(li))}catch(Gi){Xi(Gi)}},$i=li=>li.done?ci(li.value):Promise.resolve(li.value).then(Zi,wo);$i((qe=qe.apply(Ne,Ze)).next())});const Le=({user:Ne,dispatch:Ze,classroomList:qe})=>ot.createElement(Ft.default,{title:"\u6E29\u99A8\u63D0\u793A",zIndex:9999,footer:null,open:qe.actionTabs.key==="\u5BFC\u51FA\u63D0\u9192",onCancel:()=>{Ze({type:"classroomList/setActionTabs",payload:{}})}},ot.createElement("div",null,ot.createElement("span",null,"\u60A8\u5728\u5F53\u524D\u680F\u76EE\u4E2D\u6709\u5DF2\u5BFC\u51FA\u7684\u8868\u683C\u672A\u4E0B\u8F7D\uFF0C\u8BF7\u5148\u4E0B\u8F7D\u5DF2\u6709\u8868\u683C\uFF0C\u7136\u540E\u518D\u5BFC\u51FA\u65B0\u7684\u8868\u683C\u3002"),ot.createElement("br",null),ot.createElement("div",{style:{textAlign:"end"}},ot.createElement(Me.ZP,{type:"primary",onClick:()=>pe(void 0,null,function*(){Ze({type:"classroomList/setActionTabs",payload:{}})})},"\u77E5\u9053\u4E86"))));var ge=(0,fe.connect)(({user:Ne,classroomList:Ze})=>({user:Ne,classroomList:Ze}))(Le),je=St(98228),Je=St(95237),Cn=St(43604),hn=St(24905),Xn={name:"name___sZaG7"},Fe=St(59301),Zt=Object.defineProperty,Ye=Object.defineProperties,kn=Object.getOwnPropertyDescriptors,Tn=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,Ke=(Ne,Ze,qe)=>Ze in Ne?Zt(Ne,Ze,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Ne[Ze]=qe,jn=(Ne,Ze)=>{for(var qe in Ze||(Ze={}))Be.call(Ze,qe)&&Ke(Ne,qe,Ze[qe]);if(Tn)for(var qe of Tn(Ze))be.call(Ze,qe)&&Ke(Ne,qe,Ze[qe]);return Ne},Wn=(Ne,Ze)=>Ye(Ne,kn(Ze)),An=(Ne,Ze,qe)=>new Promise((ci,Xi)=>{var Zi=li=>{try{$i(qe.next(li))}catch(Gi){Xi(Gi)}},wo=li=>{try{$i(qe.throw(li))}catch(Gi){Xi(Gi)}},$i=li=>li.done?ci(li.value):Promise.resolve(li.value).then(Zi,wo);$i((qe=qe.apply(Ne,Ze)).next())});const{TreeNode:oe}=je.default,cn=({classroomList:Ne,loading:Ze,dispatch:qe})=>{var ci,Xi,Zi;const[wo,$i]=(0,ot.useState)(!1),[li,Gi]=(0,ot.useState)([]),[bo,Qo]=(0,ot.useState)(!0),[Vo,Fo]=(0,ot.useState)(!1);return(0,ot.useEffect)(()=>{var fo,Sr;Ne.actionTabs.key=="\u9009\u62E9\u73ED\u7EA7"&&Gi([...(Sr=(fo=Ne==null?void 0:Ne.actionTabs)==null?void 0:fo.course_groups)==null?void 0:Sr.map(Fr=>Fr.course_group_id)])},[Ne.actionTabs.key]),(0,ot.useEffect)(()=>{var fo,Sr,Fr,Rr;Qo(((Sr=(fo=Ne==null?void 0:Ne.actionTabs)==null?void 0:fo.course_groups)==null?void 0:Sr.length)===(li==null?void 0:li.length)),Fo((li==null?void 0:li.length)>0&&(li==null?void 0:li.length)<((Rr=(Fr=Ne==null?void 0:Ne.actionTabs)==null?void 0:Fr.course_groups)==null?void 0:Rr.length))},[li]),Fe.createElement(Ft.default,{centered:!0,title:Ne.actionTabs.title,open:Ne.actionTabs.key==="\u9009\u62E9\u73ED\u7EA7",okText:"\u786E\u8BA4\u5BFC\u51FA",cancelText:"\u53D6\u6D88",width:700,bodyStyle:{minHeight:100},confirmLoading:wo,onOk:()=>An(void 0,null,function*(){var fo;$i(!0);const Sr=sessionStorage.all_student_works_params?JSON.parse(sessionStorage.all_student_works_params):[],Fr=JSON.stringify(Wn(jn({},Sr),{course_group:[...li],teacher_comment:null,work_status:null,search:null,file_status:null,member_work:null}));sessionStorage.all_student_works_params=Fr,localStorage.setItem("all_student_works_param",Fr),qe({type:"classroomList/setActionTabs",payload:{}}),$i(!1),(fo=Ne==null?void 0:Ne.actionTabs)==null||fo.fn()}),onCancel:()=>{qe({type:"classroomList/setActionTabs",payload:{}})}},Fe.createElement("div",null,Fe.createElement(Je.Z,null,Fe.createElement(Cn.Z,{className:"font14 mb10",span:24},"\u8BF7\u9009\u62E9\u672C\u6B21\u9700\u8981\u5BFC\u51FA",(ci=Ne==null?void 0:Ne.actionTabs)==null?void 0:ci.title,"\u7684\u73ED\u7EA7\uFF1A"),Fe.createElement(Cn.Z,{span:24},Fe.createElement(hn.default,{indeterminate:Vo,checked:bo,onChange:fo=>{var Sr,Fr;Gi(fo.target.checked?(Fr=(Sr=Ne==null?void 0:Ne.actionTabs)==null?void 0:Sr.course_groups)==null?void 0:Fr.map(Rr=>Rr.course_group_id):[])}},"\u5168\u9009")),Fe.createElement(hn.default.Group,{style:{width:"100%"},value:li,onChange:fo=>{Gi(fo)}},Fe.createElement(Je.Z,null,(Zi=(Xi=Ne==null?void 0:Ne.actionTabs)==null?void 0:Xi.course_groups)==null?void 0:Zi.map((fo,Sr)=>Fe.createElement(Cn.Z,{span:8,style:{marginTop:"10px"}},Fe.createElement(hn.default,{value:fo.course_group_id,style:{fontSize:"14px"}},Fe.createElement("span",{className:Xn.name,title:fo.group_group_name}," ",fo.group_group_name),Fe.createElement("span",null,"(",fo.count,")")))))))))};var wn=(0,fe.connect)(({classroomList:Ne,loading:Ze})=>({classroomList:Ne,loading:Ze}))(cn),Fn=St(8591),mn=St(57809),Dn=St(99064),rn={modal:"modal___F5VLC",title:"title___JqMFe",content:"content___f4NH_",name:"name___UtE1a",tip:"tip____F4Fo",info:"info___Outu3",icon:"icon___vRglT",img:"img___XOkOS",code:"code___BFLYc",item:"item___iouDe",left:"left___jflep",right:"right___ZKzah",text1:"text1___mApOX",text2:"text2___lP9Fx",count:"count___TFQl9",disable:"disable___BmHOV",line:"line___R2Nmd",nocode:"nocode___LEukz"},ce="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIwAAAB8CAYAAAC7UlgnAAAAAXNSR0IArs4c6QAAC5tJREFUeF7tnWu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zxQPeiNNoKG4qKkAEWWKB72H7kxllmV93Lb5Baen1Zp9SvGAKlA8rX7WNM2/KRcWu3D3YC7HKv//53ROswOqh5i9iAKFq744GgrRoWg0em5+kXK3BrpTqcxBwB4A6FFmlumqgfFS0w7ArwPGkVgscrjUjUlHZ1fM3JFOpx/N5Xg3EakVYzcys6O6DaxxoF0rrpekbj4OhUL0ajQafZ2Ipis55SrozNxjWdY2ZtoCYAszbwawqlJn8r2nCtwkoosALhDxBdM03yAi7TvIroBZzG1mXmlZ1mZm+gSA+5mxQeUPhsu1ID2VNtCdk1oW5QoRLgP4FxH/1TTNi0R0qxpuVQ2YUsYwc18qlVXgbAD4IwDeD/Dawp5WM3OwsjJXQ/UltEFEWYDVxdb/AnS9uP83QJdjsfAVIhpeQvMVq9YcmHIWMLNa+GhVJpNZm83yWsPg+5ipD+BetSdCL8B9APWq53MqehPgAoXnT3gEoGFmjBDxMED5vW3Te+EwXY9EIgoQNbV4lkLcU2B04lt8gKsnnU4vI6JO26Yu27a7iKiL2e4s7KmLyG4DSD3sFWGG2keJ8md4+b+ZKf83kfo//1BYsRypz+6UK9qmVl9NM0OdQaSJoP7PAKQ+y39HxGrdmmI5daahPpsrx2lmY5aIJ5l5ksiYUnvDMCYNI//ZVDQaVVPIKBG5XulVR8ellv0/78VQ7LrTWNIAAAAASUVORK5CYII=",Kt=St(59301),we=(Ne,Ze,qe)=>new Promise((ci,Xi)=>{var Zi=li=>{try{$i(qe.next(li))}catch(Gi){Xi(Gi)}},wo=li=>{try{$i(qe.throw(li))}catch(Gi){Xi(Gi)}},$i=li=>li.done?ci(li.value):Promise.resolve(li.value).then(Zi,wo);$i((qe=qe.apply(Ne,Ze)).next())});const{TreeNode:Ee}=je.default,ke=({classroomList:Ne,loading:Ze,dispatch:qe,user:ci})=>{var Xi,Zi;const[wo,$i]=(0,ot.useState)(!1),[li,Gi]=(0,ot.useState)(""),[bo,Qo]=(0,ot.useState)([]),[Vo,Fo]=(0,ot.useState)({});return(0,ot.useEffect)(()=>{if(Ne.actionTabs.id&&Ne.actionTabs.key==="\u6388\u6743\u4F7F\u7528"){let Rr=function(){return we(this,null,function*(){const Br=yield(0,Dn.ZP)(`/api/courses/${Ne.actionTabs.id}/get_high_resources_codes.json`,{method:"get",params:{type:Ne.actionTabs.type,type_id:Ne.actionTabs.type_id}});(Br==null?void 0:Br.status)===0&&(Qo(Br==null?void 0:Br.data),Fo(Br==null?void 0:Br.other_data))})};console.log(Ne.actionTabs);const{id:fo,type:Sr,type_id:Fr}=Ne.actionTabs;Rr()}},[Ne.actionTabs.id]),Kt.createElement(Ft.default,{centered:!0,title:Ne.actionTabs.title,open:Ne.actionTabs.key==="\u6388\u6743\u4F7F\u7528",okText:"\u7ACB\u5373\u9A8C\u8BC1",cancelText:"\u53D6\u6D88",width:804,bodyStyle:{minHeight:350},confirmLoading:wo,destroyOnClose:!0,closeIcon:Kt.createElement("i",{className:"iconfont icon-guanbi1 font15",onClick:()=>{qe({type:"classroomList/setActionTabs",payload:{}})},style:{color:"#fff"}}),afterClose:()=>{Gi("")},className:rn.modal,onOk:()=>we(void 0,null,function*(){var fo;if(!li){Fn.ZP.warning("\u8BF7\u9009\u62E9\u6388\u6743\u7801");return}$i(!0);const Sr=yield(0,Dn.ZP)(`/api/courses/${Ne.actionTabs.id}/check_high_resources_code.json`,{method:"post",body:{type:Ne.actionTabs.type,type_id:Ne.actionTabs.type_id,code:li}});(Sr==null?void 0:Sr.status)===0&&(Fn.ZP.success("\u6388\u6743\u6210\u529F"),qe({type:"classroomList/setActionTabs",payload:{}}),(fo=Ne==null?void 0:Ne.actionTabs)==null||fo.fn()),$i(!1)}),onCancel:()=>{qe({type:"classroomList/setActionTabs",payload:{}})}},Kt.createElement("div",{className:"mt10"},Kt.createElement("div",{className:rn.title},"\u6388\u6743\u4F7F\u7528"),Kt.createElement("div",{className:rn.content},Kt.createElement("div",null,Kt.createElement("div",{className:rn.name},"\u60A8\u597D\uFF01",(Xi=ci==null?void 0:ci.userInfo)==null?void 0:Xi.username,"\u8001\u5E08\uFF08",(Zi=ci==null?void 0:ci.userInfo)==null?void 0:Zi.login,"\uFF09\uFF1A"),Ne.actionTabs.type==="shixun"&&Kt.createElement("div",{className:rn.tip},"\u5F53\u524D\u5B9E\u8BAD\u4F5C\u4E1A\u3010",Ne.actionTabs.name,"-ID",Ne.actionTabs.type_id,"\u3011\u662F\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",Kt.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002\u53D1\u5E03\u4F5C\u4E1A\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),Ne.actionTabs.type==="exercise"&&Kt.createElement("div",{className:rn.tip},"\u5F53\u524D\u8BD5\u5377\u3010",Ne.actionTabs.name,"-ID",Ne.actionTabs.type_id,"\u3011\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",Kt.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002\u53D1\u5E03\u8003\u8BD5\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),Kt.createElement("div",{className:rn.info},Kt.createElement("div",{className:rn.icon},Kt.createElement("i",{className:"iconfont icon-danceng-shiyanhuanjing",style:{color:"#165DFF"}})),Kt.createElement("span",{className:"mr10",style:{color:"#6A7283"}},Ne.actionTabs.type==="shixun"?"\u5B9E\u9A8C\u73AF\u5883":"\u9AD8\u6D88\u8017\u5B9E\u9A8C"),Kt.createElement("span",{style:{color:"#232B40"}},Ne.actionTabs.type==="shixun"?Vo.env_name:`${Vo.env_count}\u4E2A`)),Kt.createElement("div",{className:rn.info},Kt.createElement("div",{className:rn.icon},Kt.createElement("i",{className:"iconfont icon-shiyankecheng",style:{color:"#165DFF"}})),Kt.createElement("span",{className:"mr10",style:{color:"#6A7283"}},"\u6240\u5C5E\u8BFE\u5802"),Kt.createElement("span",{style:{color:"#232B40"}},Vo.course_name)),Kt.createElement("div",{className:rn.info},Kt.createElement("div",{className:rn.icon},Kt.createElement("i",{className:"iconfont icon-zaixianrenshu",style:{color:"#165DFF"}})),Kt.createElement("span",{className:"mr10",style:{color:"#6A7283"}},"\u5B66\u751F\u4EBA\u6570"),Kt.createElement("span",{style:{color:"#232B40"}},Vo.student_count,"\u4EBA"))),Kt.createElement("div",{className:"mt10"},Kt.createElement("div",{className:rn.img},Kt.createElement("img",{src:ee,width:"124px",height:"124px"})),Kt.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801"))),Kt.createElement("div",{className:rn.code},Kt.createElement("span",{className:"mr10",onClick:()=>console.log(1111)},"\u6388\u6743\u7801"),Kt.createElement(mn.default,{popupClassName:rn.popu,disabled:!1,className:rn.qselect,onChange:fo=>we(void 0,null,function*(){console.log(fo),Gi(fo)}),size:"large",optionLabelProp:"lable",style:{flex:1,width:700},placeholder:"\u8BF7\u9009\u62E9\u6388\u6743\u7801",virtual:!1,notFoundContent:Kt.createElement("div",{className:rn.nocode},Kt.createElement("div",null,Kt.createElement("img",{src:ce,alt:""}),Kt.createElement("div",{className:"mt10",style:{color:"#666666"}},"\u6682\u65E0\u6388\u6743\u7801\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6~")))},bo==null?void 0:bo.map((fo,Sr)=>Kt.createElement(mn.default.Option,{key:fo.code,value:fo==null?void 0:fo.code,label:fo.code,disabled:fo.disable},Kt.createElement("div",{className:rn.item},Kt.createElement("div",{className:rn.left,style:{background:Sr%2==0?"#52C7B0":"#E36868"}},fo.code),Kt.createElement("div",{className:`${rn.right} ${fo.disable&&rn.disable}`},Ne.actionTabs.type==="shixun"&&Kt.createElement("div",null,Kt.createElement("span",{className:rn.text1},"\u9002\u7528\u8D44\u6E90\u7C7B\u578B\uFF1A"),Kt.createElement("span",{className:rn.text2},fo.resource_type_name),fo.resource_type_name==="\u9AD8\u6027\u80FD\u670D\u52A1\u5668"&&Kt.createElement(Pt.Z,{title:Kt.createElement("div",null,"\u9002\u7528\u7684\u5B9E\u9A8C\u73AF\u5883\u5305\u62EC\uFF1AARM\u3001\u7B97\u80FD\u4E91\u3001\u4EA4\u5927\u4E91\u3001\u65E0\u5F71\u4E91\u3001\u6E56\u5927\u8D85\u7B97\u4E2D\u5FC3\u3001\u9AD8\u914D\u7F6E\u3001\u5927\u955C\u50CF\u3001\u81EA\u5B9A\u4E49\u955C\u50CF\u7B49\u3002",Kt.createElement("br",null),"\u4E0D\u5305\u62EC\uFF1AGPU\u3001\u963F\u91CC\u4E91\u3001\u5934\u6B4C\u4E91\u3002"),zIndex:1e4}," ",Kt.createElement("i",{className:"iconfont icon-wenhao1 font14"}))),Kt.createElement("div",null,Kt.createElement("span",{className:rn.text1},"\u652F\u6301\u4F7F\u7528\u4EBA\u6570\uFF1A"),Kt.createElement("span",{className:rn.text2},fo.max_people,"\u4EBA")),Kt.createElement("div",null,Kt.createElement("span",{className:rn.text1},"\u6388\u6743\u7801\u4F7F\u7528\u6B21\u6570\uFF1A"),Kt.createElement("span",{className:rn.text2},"\u5DF2\u4F7F\u7528 ",Kt.createElement("span",{className:rn.count},fo.use_count)," \u6B21\uFF0C\u5269\u4F59 ",Kt.createElement("span",{className:rn.count},fo.left_use_count)," \u6B21"),Ne.actionTabs.type==="exercise"&&Kt.createElement(Pt.Z,{title:"\u6388\u6743\u7801\u4F7F\u7528\u6B21\u6570\u6309\u9AD8\u6D88\u8017\u5B9E\u9A8C\u7684\u4E2A\u6570\u8BA1\u7B97\u3002\u5982\uFF1A\u4E00\u5F20\u8BD5\u5377\u5185\uFF0C\u67093\u4E2A\u9AD8\u6D88\u8017\u7684\u5B9E\u9A8C\u3002\u90A3\u4E48\uFF0C\u53D1\u5E03\u8003\u8BD5\u540E\uFF0C\u6388\u6743\u7801\u7684\u5269\u4F59\u4F7F\u7528\u6B21\u6570\u9700\u8981\u6263\u96643\u6B21\u3002\u53D1\u5E03\u8003\u8BD5\u7684\u65F6\u5019\uFF0C\u9AD8\u6D88\u8017\u5B9E\u9A8C\u6570\u4E0D\u80FD\u5927\u4E8E\u6388\u6743\u7801\u7684\u5269\u4F59\u4F7F\u7528\u6B21\u6570\u3002",zIndex:1e4}," ",Kt.createElement("i",{className:"iconfont icon-wenhao1"}))),Kt.createElement("div",null,Kt.createElement("span",{className:rn.text1},"\u6388\u6743\u7801\u6709\u6548\u671F\uFF1A"),Kt.createElement("span",{className:rn.text2},fo.start_at," \u81F3 ",fo.end_at))))))))))};var ln=(0,fe.connect)(({classroomList:Ne,loading:Ze,user:qe})=>({classroomList:Ne,loading:Ze,user:qe}))(ke),Dt={modal:"modal___s_owE",content:"content___fKCoG",name:"name____JFNc",tip:"tip___wHgnp",info:"info___I2DZv",icon:"icon___cQ6SY",img:"img___GFBx1"},wt=St(59301);const{TreeNode:At}=je.default,Bt=({classroomList:Ne,loading:Ze,dispatch:qe,user:ci})=>{var Xi,Zi,wo;return wt.createElement(Ft.default,{centered:!0,title:"\u63D0\u793A",open:Ne.actionTabs.key==="\u6388\u6743\u63D0\u793A",closable:!1,maskClosable:!1,footer:wt.createElement("div",null,wt.createElement(Me.ZP,{type:"primary",onClick:$i=>{var li;qe({type:"classroomList/setActionTabs",payload:{}}),(li=Ne==null?void 0:Ne.actionTabs)==null||li.fn()}},"\u6211\u77E5\u9053\u4E86")),width:600,destroyOnClose:!0,className:Dt.modal},wt.createElement("div",null,wt.createElement("div",{className:Dt.content},wt.createElement("div",null,wt.createElement("div",{className:Dt.name},"\u60A8\u597D\uFF01",(Xi=ci==null?void 0:ci.userInfo)==null?void 0:Xi.username,"\u8001\u5E08\uFF08",(Zi=ci==null?void 0:ci.userInfo)==null?void 0:Zi.login,"\uFF09\uFF1A"),wt.createElement("div",{className:Dt.tip},"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",wt.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002\u53D1\u5E03\u8003\u8BD5\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),wt.createElement("div",{className:Dt.info},wt.createElement("div",{className:Dt.icon},wt.createElement("i",{className:"iconfont icon-danceng-shiyanhuanjing",style:{color:"#165DFF"}})),wt.createElement("span",{className:"mr10",style:{color:"#6A7283"}},"\u9AD8\u6D88\u8017\u5B9E\u9A8C"),wt.createElement("span",{style:{color:"#232B40"}},`${(wo=Ne==null?void 0:Ne.actionTabs)==null?void 0:wo.count}\u4E2A`))),wt.createElement("div",null,wt.createElement("div",{className:Dt.img},wt.createElement("img",{src:ee,width:"124px",height:"124px"})),wt.createElement("div",{className:"tc font12 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")))))};var jt=(0,fe.connect)(({classroomList:Ne,loading:Ze,user:qe})=>({classroomList:Ne,loading:Ze,user:qe}))(Bt),Mt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAa4AAAGuCAYAAADI9eKaAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAOX1SURBVHhe7P0FvCXJcSUOW2Bb9P2+/a9X0sw0PMZmnukhjcBiCwxisCzzru2/rZXh88q7hrVlW2TLkm3JFo54GJqZmZlx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WgR8z/F3/AJKdq3/bH/0SlcZXZ/F3/kp2r/8AbH/0THXGUDOm+HOq2Wh+OtP1PUZvItIPN8yTYW25idRwASeSK9y/4W34F/6Dn/kpP/8AEV809qbQI+y6WiigYUUUUAFFFFABRRRQAUUUUAFFFFACUUtFACUUUUALRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFAH/9kg1KMKINBnGA==";const En=({user:Ne})=>{var Ze,qe;const[ci,Xi]=(0,ot.useState)(!1),[Zi,wo]=(0,ot.useState)("");(0,ot.useEffect)(()=>{var li,Gi;let bo=localStorage.getItem("extension-modal");if(!((li=Ne==null?void 0:Ne.userInfo)!=null&&li.login)||!bo)return;const Qo=qt()(),Vo=`${(Gi=Ne==null?void 0:Ne.userInfo)==null?void 0:Gi.login}-extend-date`;let Fo=localStorage.getItem(Vo);if(Fo)if(Qo<=qt()(Fo))Xi(!1);else{Xi(!0),localStorage.removeItem(Vo),localStorage.removeItem("extension-modal");const fo=qt()(localStorage.getItem("extension-date")).format("YYYY\u5E74MM\u6708DD\u65E5");wo(fo)}else{Xi(!0),localStorage.removeItem("extension-modal");const fo=qt()(localStorage.getItem("extension-date")).format("YYYY\u5E74MM\u6708DD\u65E5");wo(fo)}return()=>{Xi(!1)}},[(Ze=Ne==null?void 0:Ne.userInfo)==null?void 0:Ze.login]);const $i=li=>{var Gi;const bo=`${(Gi=Ne==null?void 0:Ne.userInfo)==null?void 0:Gi.login}-extend-date`,Qo=qt()().endOf("day").format("YYYY-MM-DD HH:mm:ss");li.target.checked?localStorage.setItem(bo,Qo):localStorage.removeItem(bo)};return ot.createElement(Ft.default,{title:"\u6E29\u99A8\u63D0\u793A",open:ci,zIndex:9999,centered:!0,width:594,onCancel:()=>{Xi(!1)},footer:ot.createElement(Je.Z,{align:"middle",justify:"space-between"},ot.createElement(hn.default,{onChange:$i},"\u4ECA\u65E5\u4E0D\u518D\u63D0\u9192"),ot.createElement(Me.ZP,{onClick:()=>{Xi(!1)},style:{borderRadius:4},type:"primary"}," \u5173\u95ED"))},ot.createElement("div",{className:"font14",style:{paddingLeft:16}},ot.createElement("div",null,"\u8001\u5E08\u60A8\u597D\uFF01"),ot.createElement("div",{style:{textIndent:28}},"\u611F\u8C22\u60A8\u5BF9\u5934\u6B4C\u5E73\u53F0\u7684\u8BA4\u53EF\u4E0E\u652F\u6301\uFF01\u6839\u636E\u5E73\u53F0",ot.createElement("a",{href:"https://www.educoder.net/help/agreement",target:"_blank"},"\u670D\u52A1\u534F\u8BAE"),"\uFF0C\u8D35\u5355\u4F4D\u514D\u8D39\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u5C06\u9650\u5236\u5BF9\u76F8\u5173\u529F\u80FD\u548C\u8D44\u6E90\u7684\u4F7F\u7528\u3002"),ot.createElement("div",{style:{textIndent:28}},"\u8BF7\u60A8\u6DFB\u52A0\u4EE5\u4E0B\u5FAE\u4FE1\u5BA2\u670D\uFF0C\u534F\u52A9\u60A8\u5B8C\u6210\u540E\u7EED\u4F7F\u7528\u53CA\u7533\u8BF7\u6D41\u7A0B\uFF0C\u611F\u8C22\u652F\u6301\u4E0E\u7406\u89E3\u3002"),ot.createElement("img",{style:{margin:"8px auto",display:"block"},width:160,src:((qe=Ne.userInfo)==null?void 0:qe.school_province)==="\u5B89\u5FBD"?Ae:Mt,alt:"\u4E8C\u7EF4\u7801"}),ot.createElement("div",{style:{textAlign:"right"}},"\u5934\u6B4C\u8FD0\u8425\u4E2D\u5FC3"),ot.createElement("div",{style:{textAlign:"right"}},Zi)))};var Rn=(0,fe.connect)(({user:Ne})=>({user:Ne}))(En),Pn=St(9951),$n={modalityModal:"modalityModal___fvSjk",modal:"modal___wvA_V",itemWarp:"itemWarp___JNLoV",close:"close___PycHq",cancelBtn:"cancelBtn___kgKTp",selfdomModal:"selfdomModal___doNCF"},xi=St(89392),Fi=St.n(xi),Bi=(Ne,Ze,qe)=>new Promise((ci,Xi)=>{var Zi=li=>{try{$i(qe.next(li))}catch(Gi){Xi(Gi)}},wo=li=>{try{$i(qe.throw(li))}catch(Gi){Xi(Gi)}},$i=li=>li.done?ci(li.value):Promise.resolve(li.value).then(Zi,wo);$i((qe=qe.apply(Ne,Ze)).next())});const Ji=({dispatch:Ne,user:Ze,globalSetting:qe})=>{var ci,Xi;const[Zi,wo]=(0,ot.useState)({}),[$i,li]=(0,ot.useState)([]),[Gi,bo]=(0,ot.useState)(0),[Qo,Vo]=(0,ot.useState)(!1),Fo=(0,ot.useRef)(null),fo=(0,fe.useLocation)(),Sr=(oo,Ro)=>{let Go=null;return oo===0&&(Go=qt()().add(100,"month").unix()),oo===1&&(Go=qt()().add(Ro,"hour").unix()),oo===2&&(Go=qt()().add(Ro,"days").unix()),oo===3&&(Go=qt()().add(Ro*7,"days").unix()),oo===4&&(Go=qt()().add(Ro,"month").unix()),oo===5&&(Go=qt()().add(Ro*3,"month").unix()),Go},Fr=oo=>{var Ro;const Go=`${(Ro=Ze==null?void 0:Ze.userInfo)==null?void 0:Ro.login}-deadline-operate`;let Jo=localStorage.getItem(Go)?JSON.parse(localStorage.getItem(Go)):[];Jo=Jo==null?void 0:Jo.filter(Aa=>Aa.id!==(oo==null?void 0:oo.id));const Ia=Sr(oo==null?void 0:oo.show_type,oo==null?void 0:oo.show_count),rr={id:oo==null?void 0:oo.id,deadline:Ia,type:oo==null?void 0:oo.show_type};Jo==null||Jo.push(rr),localStorage.setItem(Go,JSON.stringify(Jo))},Rr=()=>{Pa(Zi==null?void 0:Zi.id,"close");const oo=$i[Gi+1];oo?(Fr(oo),wo(oo),bo(Gi+1),Pa(oo==null?void 0:oo.id,"popup")):Vo(!1)},Br=[{name:"\u9996\u9875",key:0,path:"/"},{name:"\u5B9E\u8DF5\u8BFE\u7A0B",key:1,path:"/paths"},{name:"\u5B9E\u8DF5\u9879\u76EE",key:2,path:"/shixuns"},{name:"\u6559\u5B66\u8BFE\u5802",key:3,path:"/classrooms"},{name:"\u5728\u7EBF\u7ADE\u8D5B",key:4,path:"/competitions"},{name:"\u6559\u5B66\u6848\u4F8B",key:5,path:"/moop_cases"},{name:"\u4EA4\u6D41\u95EE\u7B54",key:6,path:"/forums/categories"},{name:"\u4E2A\u4EBA\u4E2D\u5FC3",key:7,path:"/users"}];(0,ot.useEffect)(()=>{var oo,Ro;qe!=null&&qe.operateModelPath&&((oo=qe==null?void 0:qe.setting)!=null&&oo.main_site)&&((Ro=Ze==null?void 0:Ze.userInfo)!=null&&Ro.login)&&(ka(),setTimeout(()=>{Ne({type:"globalSetting/setOperateModelPath",payload:""})},300))},[qe==null?void 0:qe.operateModelPath,(ci=Ze==null?void 0:Ze.userInfo)==null?void 0:ci.login,(Xi=qe==null?void 0:qe.setting)==null?void 0:Xi.main_site]),(0,ot.useEffect)(()=>{var oo,Ro,Go,Jo,Ia,rr;if((oo=fo==null?void 0:fo.pathname)!=null&&oo.includes("/users")&&((Go=(Ro=fo==null?void 0:fo.pathname)==null?void 0:Ro.split("/"))==null?void 0:Go.length)===4){Ne({type:"globalSetting/setOperateModelPath",payload:"/users"});return}if((Jo=fo==null?void 0:fo.pathname)!=null&&Jo.includes("/forums/categories")){Ne({type:"globalSetting/setOperateModelPath",payload:"/forums/categories"});return}for(let Aa=0;Aa(window.addEventListener("click",Za),()=>{window.removeEventListener("click",Za)}),[Zi]);const Ga=oo=>{var Ro;if(oo!=null&&oo.getAttribute("data-operate-type"))return oo;for(let Go=0,Jo=oo;Jo=Jo.parentNode;Go++){if((Ro=Jo==null?void 0:Jo.getAttribute)!=null&&Ro.call(Jo,"data-operate-type"))return Jo;if(Jo==document.documentElement)return!1}},Za=oo=>Bi(void 0,null,function*(){var Ro;const Go=Ga(oo.target);if(Go&&(Go==null?void 0:Go.getAttribute("data-operate-type"))==="click"){oo.preventDefault();let Ia=Go==null?void 0:Go.getAttribute("href");const rr=Go==null?void 0:Go.getAttribute("target");yield Pa(Zi==null?void 0:Zi.id,"enter"),Go!=null&&Go.getAttribute("data-operate-data")&&(Ia=Ia+"?login="+((Ro=Ze==null?void 0:Ze.userInfo)==null?void 0:Ro.login)),(0,nt.xg)(Ia),Vo(!1)}}),Pa=(oo,Ro)=>Bi(void 0,null,function*(){return yield(0,Dn.ZP)("/api/popup_windows/popup_windows_counts.json",{method:"get",params:{id:oo,count_type:Ro}})}),ka=()=>Bi(void 0,null,function*(){var oo,Ro,Go;const Jo=yield(0,Dn.ZP)("/api/popup_windows/get_popup_windows.json",{method:"get"});if((Jo==null?void 0:Jo.status)===0&&((oo=Jo==null?void 0:Jo.data)==null?void 0:oo.length)!==0){const Ia=Br==null?void 0:Br.findIndex(Qa=>Qa.path===(qe==null?void 0:qe.operateModelPath));let rr=Fi().cloneDeep(Jo==null?void 0:Jo.data);rr=rr==null?void 0:rr.filter(Qa=>{var Dr;return(Dr=Qa.show_page)==null?void 0:Dr.includes(Ia)});const Aa=`${(Ro=Ze==null?void 0:Ze.userInfo)==null?void 0:Ro.login}-deadline-operate`;let ms=localStorage.getItem(Aa)?JSON.parse(localStorage.getItem(Aa)):[];(ms==null?void 0:ms.length)!==0&&(rr=rr==null?void 0:rr.filter(Qa=>{let Dr=!0;const Ja=ms==null?void 0:ms.find(Vi=>Vi.id===Qa.id);return Ja&&(qt()().unix()<=(Ja==null?void 0:Ja.deadline)&&(Dr=!1),(Ja==null?void 0:Ja.type)===0&&(Qa.show_type===0?Dr=!1:Dr=!0)),Dr})),rr!=null&&rr.length&&(wo(rr==null?void 0:rr[Gi]),Fr(rr==null?void 0:rr[Gi]),Pa((Go=rr==null?void 0:rr[Gi])==null?void 0:Go.id,"popup"),Vo(!0),li(rr))}}),Ar=()=>{var oo;const Ro=(Zi==null?void 0:Zi.popup_type)===1;return ot.createElement("div",{className:$n.modalityModal},ot.createElement("div",{className:$n.modal,style:{width:Zi==null?void 0:Zi.width,height:Ro?(Zi==null?void 0:Zi.height)+40:Zi==null?void 0:Zi.height}},ot.createElement("div",{className:$n.close,onClick:Rr},ot.createElement("i",{className:"iconfont icon-guanbi1"})),ot.createElement(Pn.Z,{ref:Fo,dots:!0,autoplay:!0,pauseOnDotsHover:!0},(oo=Zi==null?void 0:Zi.content)==null?void 0:oo.map((Go,Jo)=>ot.createElement("aside",{key:Jo,className:$n.itemWarp},ot.createElement(et.Z,{value:Go})))),Ro&&ot.createElement(Je.Z,{justify:"center"},ot.createElement(Me.ZP,{type:"primary",className:$n.cancelBtn,onClick:Rr},"\u6211\u77E5\u9053\u4E86"))))},Ta=()=>{var oo;return ot.createElement("div",{className:$n.selfdomModal},ot.createElement("div",{className:$n.modal,style:{width:Zi==null?void 0:Zi.width,height:Zi==null?void 0:Zi.height}},ot.createElement("div",{className:$n.close,onClick:Rr},ot.createElement("i",{className:"iconfont icon-htmal5icon19"})),ot.createElement(Pn.Z,{ref:Fo,dots:!0,autoplay:!0,pauseOnDotsHover:!0},(oo=Zi==null?void 0:Zi.content)==null?void 0:oo.map((Ro,Go)=>ot.createElement("aside",{key:Go,className:$n.itemWarp},ot.createElement(et.Z,{style:{height:Zi==null?void 0:Zi.height},value:Ro}))))))};return ot.createElement(ot.Fragment,null,Qo&&((Zi==null?void 0:Zi.windows_style)===0?Ar():Ta()))};var ro=(0,fe.connect)(({user:Ne,globalSetting:Ze})=>({user:Ne,globalSetting:Ze}))(Ji),Eo=St(19909),Zo=St(54580),Lo=St(43428),qn={wrap:"wrap___UBl7k",left:"left___xT_eS",tip:"tip___ZKvkV",bottomBtn:"bottomBtn___tgz5f",disabled:"disabled___z2MhU"},$t=St(85057),tn=St(14791),Jn=St(2554),zt=St(86106),Mn=St(36136),le=St(88985),Ct=St(25355),vn=(Ne,Ze,qe)=>new Promise((ci,Xi)=>{var Zi=li=>{try{$i(qe.next(li))}catch(Gi){Xi(Gi)}},wo=li=>{try{$i(qe.throw(li))}catch(Gi){Xi(Gi)}},$i=li=>li.done?ci(li.value):Promise.resolve(li.value).then(Zi,wo);$i((qe=qe.apply(Ne,Ze)).next())});const{Dragger:Hn}=Zo.default;var Te=(0,ot.forwardRef)(({onUpdateNum:Ne},Ze)=>{var qe;const[ci,Xi]=(0,ot.useState)(!1),[Zi,wo]=(0,ot.useState)([]),[$i,li]=(0,ot.useState)(null),[Gi,bo]=(0,ot.useState)([]),[Qo,Vo]=(0,ot.useState)(0),[Fo,fo]=(0,ot.useState)(0),[Sr,Fr]=(0,ot.useState)(!1),[Rr,Br]=(0,ot.useState)(Ct.Q),{contentRef:Ga,value:Za,status:Pa,open:ka,close:Ar}=Rr,Ta=(0,Mn.Z)({contentRef:Ga,status:Pa}),{openProgress:oo,closeProgress:Ro,CreateProgressModal:Go,progressOpen:Jo}=(0,zt.Z)();(0,ot.useEffect)(()=>{$i&&ms(),$i===!1&&(Ar(),Ne(),wo([]))},[$i]);const Ia=()=>{li(!0)};(0,ot.useImperativeHandle)(Ze,()=>({onClick:Ia}));const rr=Co=>{Fr(!0),Vo(Co),fo(0)},Aa=Co=>vn(void 0,null,function*(){const Cr=Co.name.split(".").slice(-1)[0].toLowerCase();return["docx","doc","pdf","png","jpg"].indexOf(Cr)==-1?(Fn.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u683C\u5F0F\u6709\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):Co.size/1024/1024>10?(Fn.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):!0}),ms=()=>vn(void 0,null,function*(){const Co=yield(0,Dn.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});Co.status===0&&(Vo(Co.total_number),fo(Co.remaining_number))}),Qa=()=>vn(void 0,null,function*(){var Co,Cr;Fr(!1);const xr={scene_type:0,request_identifier:Math.random(),file_id:(Cr=(Co=Zi[0])==null?void 0:Co.response)==null?void 0:Cr.id};yield ka(xr),ms()}),Dr=()=>vn(void 0,null,function*(){oo(),Xi(!0),bo([]);const Co=Ta(),Cr=new FormData;Cr.append("html",Co);const No=yield(0,Dn.ZP)("/api/intelligent_imports/import.json",{method:"post",body:Cr},!0);if((No==null?void 0:No.status)===0)if(No!=null&&No.data){Ro(100),bo(No==null?void 0:No.data);return}else Fn.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898");Xi(!1),Ro()}),Ja=()=>vn(void 0,null,function*(){const Co=Ta();(0,nt.RG)(Co)}),Vi=["uploading","error"].includes((qe=Zi==null?void 0:Zi[0])==null?void 0:qe.status)||!Zi.length;return ot.createElement(ot.Fragment,null,ot.createElement(le.Z,{visible:Sr,totalCount:Qo,usedCount:Fo,onCancel:()=>Fr(!1),onOk:Qa}),ot.createElement(Lo.Z,{title:"\u667A\u80FD\u8BC6\u9898",extra:ot.createElement("div",{className:qn.extraHeader},ot.createElement(Je.Z,{align:"middle"},!Pa&&!!Za&&ot.createElement(ot.Fragment,null,ot.createElement($t.op,{onClick:Dr,className:"mr15",shape:"default"},"\u4FDD\u5B58\u8BD5\u9898"),ot.createElement($t.op,{onClick:Ja,shape:"default",type:"text"},ot.createElement("i",{className:"iconfont icon-fuzhi8 mr5 font14"}),"\u590D\u5236")),ot.createElement("i",{onClick:()=>{const Co=Cr=>{Ft.default.confirm({centered:!0,icon:null,width:500,zIndex:1101,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Cr,onOk:()=>{li(!1)}})};if(Pa){Co("\u6B63\u5728\u751F\u6210\u8BD5\u9898\u4E2D\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F");return}else Za?Co("\u8BD5\u9898\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F"):li(!1)},className:"iconfont icon-guanbi11 current ml15"}))),placement:"bottom",height:"100%",headerStyle:{height:54,borderBottomColor:"#DCDCDC"},bodyStyle:{padding:0},closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:$i},ot.createElement("div",{className:qn.wrap},ot.createElement("div",{className:qn.left},ot.createElement("div",{className:qn.tip},"\u6839\u636E\u7528\u6237\u4E0A\u4F20\u7684\u8BD5\u9898\u6587\u4EF6\uFF08Word\u3001PDF\u3001\u56FE\u7247\uFF09\uFF0C\u667A\u80FD\u8BC6\u522B\u5E76\u63D0\u53D6\u6587\u5B57\u3001\u4EE3\u7801\u3001\u516C\u5F0F\u3001\u7EC4\u5408\u63D0\u70BC\u751F\u6210\u8BD5\u9898"),ot.createElement("div",{style:{margin:"auto 0"}},ot.createElement(Hn,{accept:".doc,.docx,.pdf,.png,.jpg",action:`${He.Z.API_SERVER}/api/attachments.json`,maxCount:1,fileList:Zi,withCredentials:!0,data:{upload_type:1},beforeUpload:Aa,onChange:({file:Co})=>{var Cr,No;Co.status!=="removed"&&(Co.status==="done"&&((Cr=Co==null?void 0:Co.response)==null?void 0:Cr.status)!==0&&(Co.status="error",Co.response=(No=Co==null?void 0:Co.response)==null?void 0:No.message),wo([Co]))},onRemove:()=>wo([]),height:280},ot.createElement(Je.Z,{align:"middle",justify:"center",style:{flexDirection:"column"}},ot.createElement("div",{className:"iconfont icon-shangchuanwenjian2 c-light-primary font30"}),ot.createElement("div",{className:"c-light-primary mb10 mt10"},"\u70B9\u51FB\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u8FD9\u91CC\u4E0A\u4F20"),ot.createElement("div",{className:"c-grey-666"},"\u652F\u6301\u6269\u5C55\u540D\uFF1A.doc .docx .pdf .jpg .png",ot.createElement("br",null),"\u4E00\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u6587\u4EF6\uFF0C\u5927\u5C0F\u9650\u5236\u4E3A10MB"))),Pa?ot.createElement("div",{onClick:Ar,className:qn.bottomBtn},ot.createElement("i",{className:"iconfont icon-tingzhihuida"}),"\u505C\u6B62\u8BC6\u522B"):Vi?ot.createElement("div",{className:`${qn.bottomBtn} ${qn.disabled}`},ot.createElement("i",{className:"iconfont icon-kaishishibie font14"}),"\u5F00\u59CB\u8BC6\u522B"):ot.createElement("div",{onClick:()=>{if(Qo!==-1){Fr(!0);return}Qa()},className:qn.bottomBtn},ot.createElement("i",{className:"iconfont icon-kaishishibie font14"}),"\u5F00\u59CB\u8BC6\u522B"))),ot.createElement(Ct.Z,{onStatusChange:Br,loadingText:"\u8BD5\u9898\u751F\u6210\u4E2D",fetchUrl:"/api/stream/intelligent_imports/stream.json",showEditableToolbar:!Jo,noRestrictModal:rr,stringTransformer:Jn.o,onError:Co=>{Object.prototype.toString.call(Co)==="[object Object]"&&Co.status===-9&&rr(Co.data)}}))),ot.createElement(Lo.Z,{placement:"bottom",height:"100%",closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:ci},ot.createElement(Je.Z,{align:"middle",style:{margin:"8px auto 24px auto",width:1200,fontWeight:600},className:"c-black font18"},ot.createElement("img",{src:St(56914),alt:"\u667A\u80FD\u8BC6\u9898"}),ot.createElement("span",{className:"ml10"},"\u667A\u80FD\u8BC6\u9898")),ot.createElement(tn.Z,{stickyTop:-24,hideWordFeatures:!0,dataSource:Gi,isRefreshItemBank:!0,okText:"\u5BFC\u5165\u9898\u5E93",mode:1,onCancel:()=>Xi(!1),onSuccess:()=>{Xi(!1),li(!1)}}),ot.createElement("div",{style:{height:70}})),Go("\u5904\u7406\u4E2D"))}),Re={wrap:"wrap___z0sz8",left:"left___UhYMe",tip:"tip___QdnuL",bottomBtn:"bottomBtn___m6Ir2",disabled:"disabled___IOEPc"},_e=(Ne,Ze,qe)=>new Promise((ci,Xi)=>{var Zi=li=>{try{$i(qe.next(li))}catch(Gi){Xi(Gi)}},wo=li=>{try{$i(qe.throw(li))}catch(Gi){Xi(Gi)}},$i=li=>li.done?ci(li.value):Promise.resolve(li.value).then(Zi,wo);$i((qe=qe.apply(Ne,Ze)).next())});const{Dragger:me}=Zo.default;var te=(0,ot.forwardRef)(({onUpdateNum:Ne},Ze)=>{var qe;const[ci,Xi]=(0,ot.useState)(!1),[Zi,wo]=(0,ot.useState)([]),[$i,li]=(0,ot.useState)(null),[Gi,bo]=(0,ot.useState)([]),[Qo,Vo]=(0,ot.useState)(0),[Fo,fo]=(0,ot.useState)(0),[Sr,Fr]=(0,ot.useState)(!1),[Rr,Br]=(0,ot.useState)(""),[Ga,Za]=(0,ot.useState)(Ct.Q),{contentRef:Pa,value:ka,status:Ar,open:Ta,close:oo}=Ga,Ro=(0,Mn.Z)({contentRef:Pa,status:Ar}),{openProgress:Go,closeProgress:Jo,CreateProgressModal:Ia,progressOpen:rr}=(0,zt.Z)();(0,ot.useEffect)(()=>{$i&&Dr(),$i===!1&&(oo(),Ne(),wo([]))},[$i]),(0,ot.useEffect)(()=>{if(!Ar&&(Pa!=null&&Pa.current)){const No=Pa.current.querySelector('h2[data-type="title"]');if(No){const xr=No.textContent;Br(xr)}}},[Ar]);const Aa=()=>{li(!0)};(0,ot.useImperativeHandle)(Ze,()=>({onClick:Aa}));const ms=No=>{Fr(!0),Vo(No),fo(0)},Qa=No=>_e(void 0,null,function*(){const xr=No.name.split(".").slice(-1)[0].toLowerCase();return["docx","doc","pdf","png","jpg"].indexOf(xr)==-1?(Fn.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u683C\u5F0F\u6709\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):No.size/1024/1024>10?(Fn.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):!0}),Dr=()=>_e(void 0,null,function*(){const No=yield(0,Dn.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});No.status===0&&(Vo(No.total_number),fo(No.remaining_number))}),Ja=()=>_e(void 0,null,function*(){var No,xr;Fr(!1);const Tr={scene_type:4,request_identifier:Math.random(),file_id:(xr=(No=Zi[0])==null?void 0:No.response)==null?void 0:xr.id};yield Ta(Tr),Dr()}),Vi=()=>_e(void 0,null,function*(){Go(),Xi(!0),bo([]);const No=Ro(),xr=new FormData;xr.append("html",No);const br=yield(0,Dn.ZP)("/api/intelligent_imports/import.json",{method:"post",body:xr},!0);if((br==null?void 0:br.status)===0)if(br!=null&&br.data){Jo(100),bo(br==null?void 0:br.data);return}else Fn.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u5377");Xi(!1),Jo()}),Co=()=>_e(void 0,null,function*(){const No=Ro(!0);(0,nt.RG)(No)}),Cr=["uploading","error"].includes((qe=Zi==null?void 0:Zi[0])==null?void 0:qe.status)||!Zi.length;return ot.createElement(ot.Fragment,null,ot.createElement(le.Z,{visible:Sr,totalCount:Qo,usedCount:Fo,onCancel:()=>Fr(!1),onOk:Ja}),ot.createElement(Lo.Z,{title:"\u667A\u80FD\u8BC6\u5377",extra:ot.createElement("div",{className:Re.extraHeader},ot.createElement(Je.Z,{align:"middle"},!Ar&&!!ka&&ot.createElement(ot.Fragment,null,ot.createElement($t.op,{onClick:Vi,className:"mr15",shape:"default"},"\u4FDD\u5B58\u81F3\u8BD5\u5377\u5E93"),ot.createElement($t.op,{onClick:Co,shape:"default",type:"text"},ot.createElement("i",{className:"iconfont icon-fuzhi8 mr5 font14"}),"\u590D\u5236")),ot.createElement("i",{onClick:()=>{const No=xr=>{Ft.default.confirm({centered:!0,icon:null,width:500,zIndex:1101,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:xr,onOk:()=>{li(!1)}})};if(Ar){No("\u6B63\u5728\u751F\u6210\u8BD5\u5377\u4E2D\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F");return}else ka?No("\u8BD5\u5377\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F"):li(!1)},className:"iconfont icon-guanbi11 current ml15"}))),placement:"bottom",height:"100%",headerStyle:{height:54,borderBottomColor:"#DCDCDC"},bodyStyle:{padding:0},closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:$i},ot.createElement("div",{className:Re.wrap},ot.createElement("div",{className:Re.left},ot.createElement("div",{className:Re.tip},"\u6839\u636E\u7528\u6237\u4E0A\u4F20\u7684\u8BD5\u5377\u6587\u4EF6\uFF08Word\u3001PDF\u3001\u56FE\u7247\uFF09\uFF0C\u667A\u80FD\u8BC6\u522B\u5E76\u63D0\u53D6\u6587\u5B57\u3001\u4EE3\u7801\u3001\u516C\u5F0F\u3001\u7EC4\u5408\u63D0\u70BC\u751F\u6210\u8BD5\u5377"),ot.createElement("div",{style:{margin:"auto 0"}},ot.createElement(me,{accept:".doc,.docx,.pdf,.png,.jpg",action:`${He.Z.API_SERVER}/api/attachments.json`,maxCount:1,fileList:Zi,withCredentials:!0,data:{upload_type:1},beforeUpload:Qa,onChange:({file:No})=>{var xr,br;No.status!=="removed"&&(No.status==="done"&&((xr=No==null?void 0:No.response)==null?void 0:xr.status)!==0&&(No.status="error",No.response=(br=No==null?void 0:No.response)==null?void 0:br.message),wo([No]))},onRemove:()=>wo([]),height:280},ot.createElement(Je.Z,{align:"middle",justify:"center",style:{flexDirection:"column"}},ot.createElement("div",{className:"iconfont icon-shangchuanwenjian2 c-light-primary font30"}),ot.createElement("div",{className:"c-light-primary mb10 mt10"},"\u70B9\u51FB\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u8FD9\u91CC\u4E0A\u4F20"),ot.createElement("div",{className:"c-grey-666"},"\u652F\u6301\u6269\u5C55\u540D\uFF1A.doc .docx .pdf .jpg .png",ot.createElement("br",null),"\u4E00\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u6587\u4EF6\uFF0C\u5927\u5C0F\u9650\u5236\u4E3A10MB"))),Ar?ot.createElement("div",{onClick:oo,className:Re.bottomBtn},ot.createElement("i",{className:"iconfont icon-tingzhihuida"}),"\u505C\u6B62\u8BC6\u522B"):Cr?ot.createElement("div",{className:`${Re.bottomBtn} ${Re.disabled}`},ot.createElement("i",{className:"iconfont icon-kaishishibie font14"}),"\u5F00\u59CB\u8BC6\u522B"):ot.createElement("div",{onClick:()=>{if(Qo!==-1){Fr(!0);return}Ja()},className:Re.bottomBtn},ot.createElement("i",{className:"iconfont icon-kaishishibie font14"}),"\u5F00\u59CB\u8BC6\u522B"))),ot.createElement(Ct.Z,{onStatusChange:Za,loadingText:"\u8BD5\u5377\u751F\u6210\u4E2D",fetchUrl:"/api/stream/intelligent_imports/stream.json",showEditableToolbar:!rr,noRestrictModal:ms,stringTransformer:Jn.o,onError:No=>{Object.prototype.toString.call(No)==="[object Object]"&&No.status===-9&&ms(No.data)}}))),ot.createElement(Lo.Z,{placement:"bottom",height:"100%",closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:ci},ot.createElement(Je.Z,{align:"middle",style:{margin:"8px auto 24px auto",width:1200,fontWeight:600},className:"c-black font18"},ot.createElement("img",{src:St(71614),alt:"\u667A\u80FD\u8BC6\u5377"}),ot.createElement("span",{className:"ml10"},"\u667A\u80FD\u8BC6\u5377")),ot.createElement(tn.Z,{stickyTop:-24,hideWordFeatures:!0,dataSource:Gi,gather:{exercise_name:Rr},okText:"\u786E\u5B9A",mode:4,onCancel:()=>{Xi(!1)},onSuccess:No=>{var xr;window.location.href=`/paperlibrary/see/${(xr=No==null?void 0:No.data)==null?void 0:xr.obj_id}`}}),ot.createElement("div",{style:{height:70}})),Ia("\u5904\u7406\u4E2D"))}),Yt=St(10072),Vt=St(35339),Ve=St(93898),an={bigTips:"bigTips___PGtDh",item:"item___rGzq7",show:"show___a7b2P",mask:"mask___NqkVA"},pn=St(92310),We=St.n(pn),Sn=St(24065),ai=Object.defineProperty,gn=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,Xt=Object.prototype.propertyIsEnumerable,dn=(Ne,Ze,qe)=>Ze in Ne?ai(Ne,Ze,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Ne[Ze]=qe,De=(Ne,Ze)=>{for(var qe in Ze||(Ze={}))Qe.call(Ze,qe)&&dn(Ne,qe,Ze[qe]);if(gn)for(var qe of gn(Ze))Xt.call(Ze,qe)&&dn(Ne,qe,Ze[qe]);return Ne},Xe=(Ne,Ze,qe)=>new Promise((ci,Xi)=>{var Zi=li=>{try{$i(qe.next(li))}catch(Gi){Xi(Gi)}},wo=li=>{try{$i(qe.throw(li))}catch(Gi){Xi(Gi)}},$i=li=>li.done?ci(li.value):Promise.resolve(li.value).then(Zi,wo);$i((qe=qe.apply(Ne,Ze)).next())});const he=(...Ne)=>Xe(void 0,[...Ne],function*(Ze={}){var qe,ci,Xi,Zi;const wo=yield Fetch("/api/intelligent_imports/recognize.json",{method:"post",body:Ze},!0);if((wo==null?void 0:wo.status)!==0)return wo;const $i=(qe=wo==null?void 0:wo.data)==null?void 0:qe.ai_question_record_id;let li;do if(li=yield Fetch("/api/intelligent_imports/get_ai_question_record.json",{method:"get",params:{ai_question_record_id:$i}}),((ci=li==null?void 0:li.data)==null?void 0:ci.status)===1){console.log("\u64CD\u4F5C\u6210\u529F");break}else if(((Xi=li==null?void 0:li.data)==null?void 0:Xi.status)===0)console.log("\u8BC6\u522B\u4E2D\uFF0C\u7EE7\u7EED\u8F6E\u8BE2..."),yield new Promise(Gi=>setTimeout(Gi,2e3));else{console.log("\u72B6\u6001\u5F02\u5E38");break}while(((Zi=li==null?void 0:li.data)==null?void 0:Zi.status)===0);return li});var fn=()=>{const Ne=(0,fe.useLocation)(),[Ze,qe]=(0,ot.useState)(!1);(0,ot.useEffect)(()=>{var li,Gi;if((li=Ne.pathname)!=null&&li.includes("/problemset")||(Gi=Ne.pathname)!=null&&Gi.includes("/paperlibrary")){qe(!0);return}qe(!1)},[Ne==null?void 0:Ne.pathname]);const ci=[{img:St(56914),name:"\u667A\u80FD\u8BC6\u9898",des:"\u6839\u636E\u7528\u6237\u4E0A\u4F20\u7684\u8BD5\u9898\u6587\u4EF6\uFF08Word\u3001PDF\u3001\u56FE\u7247\uFF09\uFF0C\u667A\u80FD\u8BC6\u522B\u5E76\u63D0\u53D6\u6587\u5B57\u3001\u4EE3\u7801\u3001\u516C\u5F0F\uFF0C\u7EC4\u5408\u63D0\u70BC\u751F\u6210\u8BD5\u9898",show:!0,ref:ot.createRef(),element:Te},{img:St(71614),name:"\u667A\u80FD\u8BC6\u5377",des:"\u6839\u636E\u7528\u6237\u4E0A\u4F20\u7684\u8BD5\u5377\u6587\u4EF6\uFF08Word\u3001PDF\u3001\u56FE\u7247\uFF09\uFF0C\u667A\u80FD\u8BC6\u522B\u5E76\u63D0\u53D6\u6587\u5B57\u3001\u4EE3\u7801\u3001\u516C\u5F0F\uFF0C\u7EC4\u5408\u63D0\u70BC\u751F\u6210\u8BD5\u5377",show:!0,ref:ot.createRef(),element:te},{img:St(36413),name:"\u667A\u80FD\u51FA\u9898",des:"\u6839\u636E\u77E5\u8BC6\u70B9\u53CA\u4E0A\u4F20\u7684\u6559\u5B66\u6587\u6863\uFF0C\u81EA\u52A8\u751F\u6210\u5355\u9009\u3001\u591A\u9009\u3001\u5224\u65AD\u3001\u586B\u7A7A\u3001\u7B80\u7B54\u548C\u7F16\u7A0B\u9898\uFF0C\u63D0\u5347\u51FA\u9898\u6548\u7387",show:!0,ref:ot.createRef(),element:Vt.Z},{img:St(11215),name:"\u4EE5\u9898\u6362\u9898",des:"\u6839\u636E\u73B0\u6709\u8BD5\u9898\u7684\u9898\u578B\u3001\u65B9\u5411\u3001\u77E5\u8BC6\u70B9\u3001\u96BE\u6613\u5EA6\uFF0C\u5FEB\u901F\u751F\u6210\u65B0\u7684\u8BD5\u9898\uFF0C\u589E\u52A0\u8BD5\u9898\u7684\u4E30\u5BCC\u5EA6",show:!0,ref:ot.createRef(),element:Yt.Z},{img:St(13825),name:"\u4EE5\u5377\u6362\u5377",des:"\u6839\u636E\u73B0\u6709\u8BD5\u5377\u7684\u9898\u578B\u3001\u65B9\u5411\u3001\u77E5\u8BC6\u70B9\u3001\u96BE\u6613\u5EA6\uFF0C\u5FEB\u901F\u751F\u6210\u65B0\u7684\u8BD5\u5377\uFF0C\u589E\u52A0\u8BD5\u5377\u7684\u4E30\u5BCC\u5EA6",show:!0,ref:ot.createRef(),element:Ve.Z},{img:St(57655),name:"\u667A\u80FD\u7EA0\u9519",des:"\u81EA\u52A8\u8BC6\u522B\u8BD5\u9898\u6216\u8BD5\u5377\u7684\u9519\u522B\u5B57\u3001\u68C0\u67E5\u8BED\u53E5\u7684\u8FDE\u8D2F\u6027\u4E0E\u8BD5\u9898\u7684\u51C6\u786E\u6027\uFF0C\u53D1\u73B0\u8BD5\u9898\u6216\u8BD5\u5377\u7684\u6F5C\u5728\u9519\u8BEF"}],Xi=li=>{const{isDisabledNum:Gi,checkNumModal:bo,checkNum:Qo,onClose:Vo}=li;return ot.createElement("div",{className:an.bigTips},ci.map((Fo,fo)=>ot.createElement("div",{key:fo,onClick:()=>{var Sr,Fr;if(Fo.show){if(Gi){bo();return}(Fr=(Sr=Fo.ref)==null?void 0:Sr.current)==null||Fr.onClick()}},className:We()(an.item,(Fo==null?void 0:Fo.show)&&an.show)},ot.createElement(Je.Z,{align:"middle"},ot.createElement("img",{className:"mr10",src:Fo.img,width:24}),ot.createElement("span",{style:{color:"#232B40",fontSize:16,fontWeight:600}},Fo.name)),ot.createElement("div",{className:"mt10",style:{color:"#434D6C",paddingLeft:34}},Fo.des),!(Fo!=null&&Fo.show)&&ot.createElement("div",{className:an.mask},"\u656C\u8BF7\u671F\u5F85\uFF5E"),!!(Fo!=null&&Fo.show)&&ot.createElement("div",{onClick:Sr=>Sr.stopPropagation()}," ",ot.createElement(Fo.element,{ref:Fo.ref,onUpdateNum:Qo,onClose:Vo})))))},Zi=li=>{let Gi=[];return li==null||li.forEach(bo=>{const Qo=bo.id,Vo=bo.think?{reasoning:bo.think,thinkingEnabled:!0}:{},Fo=[{text:bo.question,key:Qo,sender:"user",fileList:[],show:!0},De({key:Qo,loading:!1,sender:"AI",show:!0,source:bo.answer_source,text:bo.answer,like:bo.like,dislike:bo.dislike,time:bo.think_time,id:bo.id},Vo)];Gi=[...Gi,...Fo]}),Gi},wo="-1",$i={onAdd:()=>(0,Dn.ZP)("/api/course_qna_sessions/create_session.json",{method:"get"}),onGetList:()=>(0,Dn.ZP)("/api/course_qna_sessions.json",{method:"get",params:{questionable_type:"ItemBank",by_self:!0}}),onListClick:li=>(0,Dn.ZP)(`/api/course_qna_sessions/${li}.json`,{method:"get"}),onListDelete:li=>(0,Dn.ZP)(`/api/course_qna_sessions/${li}.json`,{method:"delete"}),onListDealData:Zi};return ot.createElement(ot.Fragment,null,Ze&&(0,Sn.$O)()&&ot.createElement(Eo.Z,{showSwitchingModel:!0,showLookHistory:!0,showAddSession:!0,fetchListObject:$i,headNode:ot.createElement(ot.Fragment,null,ot.createElement("div",{className:"c-grey-333 font22"},ot.createElement("span",{className:"mr5"},"\u{1F44B}"),"\u55E8\uFF0C\u6211\u662F\u667A\u80FD\u52A9\u6559\u5C0F\u6B4C\uFF0C\u60A8\u7684\u6559\u5B66\u597D\u5E2E\u624B\u3002"),ot.createElement("div",{className:"font16 mt20",style:{color:"#434D6C"}},ot.createElement("span",{style:{paddingLeft:33}}," \u5728\u8BD5\u9898\u5E93/\u8BD5\u5377\u5E93\u6A21\u5757\uFF0C\u6211\u5177\u5907\u6559\u80B2\u5927\u8BED\u8A00\u6A21\u578B\u7684\u5F3A\u5927\u751F\u6210\u80FD\u529B\uFF0C\u901A\u8FC7\u667A\u80FD\u5316\u7684\u51FA\u9898\u548C\u7EC4\u5377\u5DE5\u5177\uFF0C\u4E3A\u60A8\u63D0\u4F9B\u9AD8\u6548\u3001\u7CBE\u51C6\u3001\u4E2A\u6027\u5316\u7684\u8BD5\u9898\u751F\u6210\u670D\u52A1\uFF0C\u652F\u6301\u591A\u5B66\u79D1\u3001\u591A\u9898\u578B\u548C\u4E0D\u540C\u96BE\u6613\u5EA6\uFF0C\u6EE1\u8DB3\u60A8\u7684\u591A\u5143\u5316\u6559\u5B66\u9700\u6C42\u3002"))),headFunctionNode:Xi,fetchData:{questionable_type:"ItemBank",is_chat:!0},isCheckRestrictNumber:!0,title:"\u667A\u80FD\u52A9\u6559",fetchUrl:"/api/stream/course_qna_records/chat_messages.json"}))},Di=Object.defineProperty,oi=Object.getOwnPropertySymbols,ii=Object.prototype.hasOwnProperty,Bn=Object.prototype.propertyIsEnumerable,Kn=(Ne,Ze,qe)=>Ze in Ne?Di(Ne,Ze,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Ne[Ze]=qe,ki=(Ne,Ze)=>{for(var qe in Ze||(Ze={}))ii.call(Ze,qe)&&Kn(Ne,qe,Ze[qe]);if(oi)for(var qe of oi(Ze))Bn.call(Ze,qe)&&Kn(Ne,qe,Ze[qe]);return Ne};const bi=Ne=>React.createElement("svg",ki({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},Ne),React.createElement("title",null,"\u56FE\u6587\u4F5C\u4E1A\u667A\u80FD\u8BC4\u9605"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M13.047.001H9.431v.01a2.18 2.18 0 0 0-1.902 1.586A2.18 2.18 0 0 0 5.627.01V.001H2.01C.9.001 0 .901 0 2.011v8.493c0 1.11.9 2.01 2.01 2.01h2.746v.014h.475v.012c.078-.009.158-.012.238-.012a2.118 2.118 0 0 1 1.982 1.262v.165h.158v-.168a2.118 2.118 0 0 1 1.98-1.26c.08 0 .158.004.238.013v-.012h.475v-.016h2.745c1.11 0 2.01-.9 2.01-2.01V2.009a2.012 2.012 0 0 0-2.01-2.008Zm.638 8.805-2.534 2.536a.344.344 0 0 1-.485 0L9.317 9.989a.343.343 0 0 1 .483-.487l1.108 1.11 2.292-2.29a.343.343 0 1 1 .485.485Z",fill:"#1EDEB8"}),React.createElement("path",{d:"M2.028 10.024a.441.441 0 1 1 0-.884h3.395a.442.442 0 1 1-.002.884H2.028Zm7.607-2.159a.442.442 0 0 1 0-.884h3.395a.442.442 0 0 1 0 .884H9.635Zm-7.607 0a.442.442 0 0 1 0-.884h3.395a.442.442 0 0 1 0 .884H2.028ZM9.635 5.81a.442.442 0 0 1 0-.884h3.395a.442.442 0 0 1 0 .884H9.635Zm-7.607 0a.442.442 0 0 1 0-.884h3.395a.442.442 0 0 1 0 .884H2.028Zm7.607-2.285a.442.442 0 0 1 0-.884h3.395a.442.442 0 0 1 0 .884H9.635Zm-7.607 0a.442.442 0 0 1 0-.884h3.395a.442.442 0 0 1 0 .884H2.028Z",fill:"#FFF",opacity:.59})));var Hi="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMTMuMDQ3LjAwMUg5LjQzMXYuMDFhMi4xOCAyLjE4IDAgMCAwLTEuOTAyIDEuNTg2QTIuMTggMi4xOCAwIDAgMCA1LjYyNy4wMVYuMDAxSDIuMDFDLjkuMDAxIDAgLjkwMSAwIDIuMDExdjguNDkzYzAgMS4xMS45IDIuMDEgMi4wMSAyLjAxaDIuNzQ2di4wMTRoLjQ3NXYuMDEyYy4wNzgtLjAwOS4xNTgtLjAxMi4yMzgtLjAxMmEyLjExOCAyLjExOCAwIDAgMSAxLjk4MiAxLjI2MnYuMTY1aC4xNTh2LS4xNjhhMi4xMTggMi4xMTggMCAwIDEgMS45OC0xLjI2Yy4wOCAwIC4xNTguMDA0LjIzOC4wMTN2LS4wMTJoLjQ3NXYtLjAxNmgyLjc0NWMxLjExIDAgMi4wMS0uOSAyLjAxLTIuMDFWMi4wMDlhMi4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,Ze,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Ne[Ze]=qe,Gn=(Ne,Ze)=>{for(var qe in Ze||(Ze={}))Qi.call(Ze,qe)&&sn(Ne,qe,Ze[qe]);if(uo)for(var qe of uo(Ze))io.call(Ze,qe)&&sn(Ne,qe,Ze[qe]);return Ne};const wi=Ne=>React.createElement("svg",Gn({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Ne),React.createElement("title",null,"\u8BD5\u5377\u7B80\u7B54\u9898\u667A\u80FD\u8BC4\u9605"),React.createElement("path",{d:"M12.923 0H2.693c-.595 0-1.077.482-1.077 1.077v10.77H0v1.076A1.077 1.077 0 0 0 1.077 14h10.23c.595 0 1.077-.482 1.077-1.077V2.153H14V1.078C14 .482 13.518 0 12.923 0ZM4.038 2.692H6.73a.27.27 0 1 1 0 .538H4.038a.27.27 0 0 1 0-.538Zm-2.961 10.77a.538.538 0 0 1-.539-.539v-.538h9.154v.538c0 .19.05.375.144.539h-8.76Zm8.884-3.77H4.038a.27.27 0 0 1 0-.538h5.924a.27.27 0 1 1 0 .538H9.96ZM3.769 7.27c0-.148.12-.269.27-.269h3.769a.27.27 0 1 1 0 .538h-3.77a.27.27 0 0 1-.269-.269Zm6.193-1.884H4.038a.27.27 0 0 1 0-.538h5.924a.27.27 0 1 1 0 .538Zm3.5-3.77h-1.078v-.538a.538.538 0 1 1 1.077 0v.539Z",fill:"#1890FF",fillRule:"nonzero"}));var ji="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyLjkyMyAwSDIuNjkzYy0uNTk1IDAtMS4wNzcuNDgyLTEuMDc3IDEuMDc3djEwLjc3SDB2MS4wNzZBMS4wNzcgMS4wNzcgMCAwIDAgMS4wNzcgMTRoMTAuMjNjLjU5NSAwIDEuMDc3LS40ODIgMS4wNzctMS4wNzdWMi4xNTNIMTRWMS4wNzhDMTQgLjQ4MiAxMy41MTggMCAxMi45MjMgMFpNNC4wMzggMi42OTJINi43M2EuMjcuMjcgMCAxIDEgMCAuNTM4SDQuMDM4YS4yNy4yNyAwIDAgMSAwLS41MzhabS0yLjk2MSAxMC43N2EuNTM4LjUzOCAwIDAgMS0uNTM5LS41Mzl2LS41MzhoOS4xNTR2LjUzOGMwIC4xOS4wNS4zNzUuMTQ0LjUzOWgtOC43NlptOC44ODQtMy43N0g0LjAzOGEuMjcuMjcgMCAwIDEgMC0uNTM4aDUuOTI0YS4yNy4yNyAwIDEgMSAwIC41MzhIOS45NlpNMy43NjkgNy4yN2MwLS4xNDguMTItLjI2OS4yNy0uMjY5aDMuNzY5YS4yNy4yNyAwIDEgMSAwIC41MzhoLTMuNzdhLjI3LjI3IDAgMCAxLS4yNjktLjI2OVptNi4xOTMtMS44ODRINC4wMzhhLjI3LjI3IDAgMCAxIDAtLjUzOGg1LjkyNGEuMjcuMjcgMCAxIDEgMCAuNTM4Wm0zLjUtMy43N2gtMS4wNzh2LS41MzhhLjUzOC41MzggMCAxIDEgMS4wNzcgMHYuNTM5WiIgZmlsbD0iIzE4OTBGRiIgZmlsbC1ydWxlPSJub256ZXJvIi8+PC9zdmc+",Ci=St(59301),so=(0,ot.forwardRef)(({onClose:Ne},Ze)=>{const[qe,ci]=(0,ot.useState)(!1),Xi=()=>{ci(!0)};(0,ot.useImperativeHandle)(Ze,()=>({onClick:Xi}));const Zi=$i=>{var li;const Gi=(li=(0,$e.g)())==null?void 0:li.course_id;ci(!1),Ne(),fe.history.push(`/classrooms/${Gi}/${$i}`)},wo=[{icon:Hi,name:"\u56FE\u6587\u4F5C\u4E1A\u667A\u80FD\u8BC4\u9605",description:"\u5728\u56FE\u6587\u4F5C\u4E1A\u7684\u8BC4\u9605\u9875\u9762\uFF0C\u53EF\u4EE5\u4F7F\u7528\u667A\u80FD\u8BC4\u9605\u529F\u80FD\uFF0C\u8BA9AI\u52A9\u6559\u5E2E\u52A9\u4F60\u6253\u5206\u548C\u5199\u8BC4\u8BED\u3002",explainHref:"https://www.educoder.net/forums/38915",type:"common_homework"},{icon:ji,name:"\u8BD5\u5377\u7B80\u7B54\u9898\u667A\u80FD\u8BC4\u9605",description:"\u5728\u8BD5\u5377\u7684\u8BC4\u9605\u9875\u9762\uFF0C\u53EF\u4EE5\u4F7F\u7528\u667A\u80FD\u8BC4\u9605\u529F\u80FD\uFF0C\u81EA\u52A8\u6279\u6539\u7B80\u7B54\u9898\uFF0C\u667A\u80FD\u6253\u5206\u5E76\u751F\u6210\u8BC4\u8BED\uFF0C\u4E3A\u60A8\u63D0\u5347\u8BC4\u9605\u6548\u7387\u3002",explainHref:"https://www.educoder.net/forums/40205",type:"exercise"}];return Ci.createElement(ot.Fragment,null,Ci.createElement(Ft.default,{centered:!0,open:qe,title:"\u667A\u80FD\u8BC4\u9605",width:850,onCancel:()=>ci(!1),footer:null,bodyStyle:{paddingBottom:25}},wo.map(($i,li)=>{const{icon:Gi,name:bo,description:Qo,explainHref:Vo,type:Fo}=$i;return Ci.createElement("div",{key:li,style:{marginBottom:liZi(Fo),style:{width:88},className:"mt20",type:"primary"},"\u53BB\u5F00\u542F"))))})))}),zi=Object.defineProperty,Ei=Object.getOwnPropertySymbols,Ki=Object.prototype.hasOwnProperty,Ln=Object.prototype.propertyIsEnumerable,ho=(Ne,Ze,qe)=>Ze in Ne?zi(Ne,Ze,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Ne[Ze]=qe,bn=(Ne,Ze)=>{for(var qe in Ze||(Ze={}))Ki.call(Ze,qe)&&ho(Ne,qe,Ze[qe]);if(Ei)for(var qe of Ei(Ze))Ln.call(Ze,qe)&&ho(Ne,qe,Ze[qe]);return Ne};const ao=Ne=>React.createElement("svg",bn({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Ne),React.createElement("title",null,"\u8BFE\u5802\u5B9E\u9A8C\u7F16\u7801\u52A9\u624B"),React.createElement("path",{d:"M13.454 0H.504A.503.503 0 0 0 0 .503v2.181h13.957V.504A.503.503 0 0 0 13.454 0ZM2.89 1.845h-.537a.503.503 0 0 1 0-1.006h.537a.503.503 0 0 1 0 1.006Zm2.121 0h-.537a.503.503 0 0 1 0-1.006h.537a.503.503 0 0 1 0 1.006Zm6.593 0H9.255a.503.503 0 1 1 0-1.006h2.349a.503.503 0 1 1 0 1.006ZM0 3.657v9.763c0 .278.225.504.503.504h12.95a.503.503 0 0 0 .504-.504V3.657H0Zm4.778 6.549a.503.503 0 1 1-.698.725L1.798 8.733a.503.503 0 0 1 0-.725L4.08 5.811a.503.503 0 0 1 .698.725L2.873 8.37l1.905 1.835Zm3.81-4.562-2.282 5.821a.503.503 0 0 1-.937-.367l2.282-5.821a.503.503 0 1 1 .937.367Zm3.57 3.09-2.28 2.197a.503.503 0 0 1-.699-.725l1.905-1.835L9.18 6.536a.503.503 0 0 1 .698-.725l2.282 2.197a.503.503 0 0 1 0 .725Z",fill:"#0368CD",fillRule:"nonzero"}));var Mo="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEzLjQ1NCAwSC41MDRBLjUwMy41MDMgMCAwIDAgMCAuNTAzdjIuMTgxaDEzLjk1N1YuNTA0QS41MDMuNTAzIDAgMCAwIDEzLjQ1NCAwWk0yLjg5IDEuODQ1aC0uNTM3YS41MDMuNTAzIDAgMCAxIDAtMS4wMDZoLjUzN2EuNTAzLjUwMyAwIDAgMSAwIDEuMDA2Wm0yLjEyMSAwaC0uNTM3YS41MDMuNTAzIDAgMCAxIDAtMS4wMDZoLjUzN2EuNTAzLjUwMyAwIDAgMSAwIDEuMDA2Wm02LjU5MyAwSDkuMjU1YS41MDMuNTAzIDAgMSAxIDAtMS4wMDZoMi4zNDlhLjUwMy41MDMgMCAxIDEgMCAxLjAwNlpNMCAzLjY1N3Y5Ljc2M2MwIC4yNzguMjI1LjUwNC41MDMuNTA0aDEyLjk1YS41MDMuNTAzIDAgMCAwIC41MDQtLjUwNFYzLjY1N0gwWm00Ljc3OCA2LjU0OWEuNTAzLjUwMyAwIDEgMS0uNjk4LjcyNUwxLjc5OCA4LjczM2EuNTAzLjUwMyAwIDAgMSAwLS43MjVMNC4wOCA1LjgxMWEuNTAzLjUwMyAwIDAgMSAuNjk4LjcyNUwyLjg3MyA4LjM3bDEuOTA1IDEuODM1Wm0zLjgxLTQuNTYyLTIuMjgyIDUuODIxYS41MDMuNTAzIDAgMCAxLS45MzctLjM2N2wyLjI4Mi01LjgyMWEuNTAzLjUwMyAwIDEgMSAuOTM3LjM2N1ptMy41NyAzLjA5LTIuMjggMi4xOTdhLjUwMy41MDMgMCAwIDEtLjY5OS0uNzI1bDEuOTA1LTEuODM1TDkuMTggNi41MzZhLjUwMy41MDMgMCAwIDEgLjY5OC0uNzI1bDIuMjgyIDIuMTk3YS41MDMuNTAzIDAgMCAxIDAgLjcyNVoiIGZpbGw9IiMwMzY4Q0QiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",Ao=Object.defineProperty,Uo=Object.getOwnPropertySymbols,So=Object.prototype.hasOwnProperty,di=Object.prototype.propertyIsEnumerable,_i=(Ne,Ze,qe)=>Ze in Ne?Ao(Ne,Ze,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Ne[Ze]=qe,Po=(Ne,Ze)=>{for(var qe in Ze||(Ze={}))So.call(Ze,qe)&&_i(Ne,qe,Ze[qe]);if(Uo)for(var qe of Uo(Ze))di.call(Ze,qe)&&_i(Ne,qe,Ze[qe]);return Ne};const eo=Ne=>React.createElement("svg",Po({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Ne),React.createElement("title",null,"\u7F16\u7A0B\u4F5C\u4E1A\u7F16\u7801\u52A9\u624B"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M.438 10.106h13.124c.242 0 .438.196.438.438v1.706A1.75 1.75 0 0 1 12.25 14H1.75A1.75 1.75 0 0 1 0 12.25v-1.706c0-.242.196-.438.438-.438Z",fill:"#4988FD"}),React.createElement("path",{d:"M2.406 0h9.188c.966 0 1.75.784 1.75 1.75v6.825a.438.438 0 0 1-.438.438H1.094a.438.438 0 0 1-.438-.438V1.75C.656.784 1.44 0 2.406 0Z",fill:"#DFECFD"}),React.createElement("path",{d:"M12.469 9.012H1.53a.876.876 0 0 1-.875-.875V1.75C.656.785 1.441 0 2.406 0h9.188c.965 0 1.75.785 1.75 1.75v6.387a.876.876 0 0 1-.875.875ZM1.969 7.7H12.03V1.75a.438.438 0 0 0-.437-.438H2.406a.438.438 0 0 0-.437.438V7.7Z",fill:"#DFECFD"}),React.createElement("path",{d:"M3.456 6.563a.656.656 0 0 1-.464-1.12l2.45-2.45a.656.656 0 1 1 .928.927L3.92 6.37a.654.654 0 0 1-.464.193ZM2.625 4.55a.656.656 0 0 1-.464-1.12l1.312-1.313a.656.656 0 1 1 .929.928L3.089 4.358a.654.654 0 0 1-.464.192Z",fill:"#4988FD"}),React.createElement("path",{d:"M2.888 12.6h-1.4a.569.569 0 1 1 0-1.137h1.4a.569.569 0 1 1 0 1.137Zm3.15 0h-1.4a.569.569 0 1 1 0-1.137h1.4a.569.569 0 1 1 0 1.137Z",fill:"#FFF"})));var hi="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNLjQzOCAxMC4xMDZoMTMuMTI0Yy4yNDIgMCAuNDM4LjE5Ni40MzguNDM4djEuNzA2QTEuNzUgMS43NSAwIDAgMSAxMi4yNSAxNEgxLjc1QTEuNzUgMS43NSAwIDAgMSAwIDEyLjI1di0xLjcwNmMwLS4yNDIuMTk2LS40MzguNDM4LS40MzhaIiBmaWxsPSIjNDk4OEZE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SIjRkZGIi8+PC9nPjwvc3ZnPg==",Ot=St(59301),Yo=(0,ot.forwardRef)(({onClose:Ne},Ze)=>{const[qe,ci]=(0,ot.useState)(!1),Xi=()=>{ci(!0)};(0,ot.useImperativeHandle)(Ze,()=>({onClick:Xi}));const Zi=$i=>{var li;const Gi=(li=(0,$e.g)())==null?void 0:li.course_id;ci(!1),Ne(),fe.history.push(`/classrooms/${Gi}/${$i}`)},wo=[{icon:Mo,name:"\u8BFE\u5802\u5B9E\u9A8C\u7F16\u7801\u52A9\u624B",description:"\u5728\u8BFE\u5802\u5B9E\u9A8C\u7684\u7F16\u7A0B\u9875\u9762\uFF0C\u53EF\u4EE5\u4E3A\u5B66\u751F\u63D0\u4F9B\u667A\u80FD\u5BA1\u9898\u3001\u4EE3\u7801\u8BCA\u65AD\u548CAI\u8F85\u5BFC\u7B49\u529F\u80FD\u3002",explainHref:"https://www.educoder.net/forums/40241",type:"shixun_homework"},{icon:hi,name:"\u7F16\u7A0B\u4F5C\u4E1A\u7F16\u7801\u52A9\u624B",description:"\u5728\u7F16\u7A0B\u7684\u7F16\u7A0B\u9875\u9762\uFF0C\u53EF\u4EE5\u4E3A\u5B66\u751F\u63D0\u4F9B\u667A\u80FD\u5BA1\u9898\u3001\u4EE3\u7801\u8BCA\u65AD\u548CAI\u8F85\u5BFC\u7B49\u529F\u80FD\u3002",explainHref:"https://www.educoder.net/forums/40242",type:"program_homework"}];return Ot.createElement(ot.Fragment,null,Ot.createElement(Ft.default,{centered:!0,open:qe,title:"\u7F16\u7801\u52A9\u624B",width:850,onCancel:()=>ci(!1),footer:null,bodyStyle:{paddingBottom:25}},wo.map(($i,li)=>{const{icon:Gi,name:bo,description:Qo,explainHref:Vo,type:Fo}=$i;return Ot.createElement("div",{key:li,style:{marginBottom:liZi(Fo),style:{width:88},className:"mt20",type:"primary"},"\u53BB\u5F00\u542F"))))})))}),tr=St(78673),_t=Object.defineProperty,Zn=Object.getOwnPropertySymbols,si=Object.prototype.hasOwnProperty,Ii=Object.prototype.propertyIsEnumerable,_n=(Ne,Ze,qe)=>Ze in Ne?_t(Ne,Ze,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Ne[Ze]=qe,Ai=(Ne,Ze)=>{for(var qe in Ze||(Ze={}))si.call(Ze,qe)&&_n(Ne,qe,Ze[qe]);if(Zn)for(var qe of Zn(Ze))Ii.call(Ze,qe)&&_n(Ne,qe,Ze[qe]);return Ne};const pi=Ne=>React.createElement("svg",Ai({width:14,height:14,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},Ne),React.createElement("title",null,"\u95EE\u7B54\u96C6"),React.createElement("defs",null,React.createElement("path",{id:"a_svg__a",d:"M0 0h14v14H0z"})),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("mask",{id:"a_svg__b",fill:"#fff"},React.createElement("use",{xlinkHref:"#a_svg__a"})),React.createElement("use",{fill:"#F6F7F9",opacity:.01,xlinkHref:"#a_svg__a"}),React.createElement("g",{mask:"url(#a_svg__b)",fill:"#42D5A0",fillRule:"nonzero"},React.createElement("path",{d:"M3.389 11.063a.722.722 0 0 0-.724-.72H.738a.722.722 0 1 0 0 1.442h1.927c.4 0 .724-.324.724-.722ZM.015 6.975c0 .399.324.721.723.721h1.927a.722.722 0 1 0 0-1.443H.738a.722.722 0 0 0-.723.722ZM.738 3.608h1.927a.722.722 0 1 0 0-1.442H.738a.722.722 0 1 0 0 1.442Z"}),React.createElement("path",{d:"M13.117 0c.55 0 .997.324.997.722v12.505c0 .399-.447.722-.997.722H2.184a.722.722 0 0 1-.723-.722v-.72h1.204a1.444 1.444 0 1 0 0-2.887H1.461V8.418h1.204a1.444 1.444 0 1 0 0-2.885H1.461V4.33h1.204a1.444 1.444 0 1 0 0-2.887H1.461v-.72c0-.4.323-.722.723-.722Zm-2.562 8.636a.49.49 0 0 0-.21.05H6.6l-.035-.05c-.257.067-.397.218-.42.453-.024.068 0 .168.07.302 0 .034.011.05.035.05a3.006 3.006 0 0 0 0 .655c.023.27.035.47.035.605v.251c0 .202-.012.387-.035.554 0 .068-.024.169-.07.303v.15c0 .135.116.219.35.253.163 0 .28-.05.35-.152h3.291c.07.067.21.118.42.152l.14-.05a.498.498 0 0 0 .14-.253c0-.1-.011-.251-.034-.453a1.46 1.46 0 0 1 0-.453c-.024-.033-.035-.117-.035-.252 0-.772.023-1.225.07-1.36v-.05c.07-.134.105-.235.105-.302l-.035-.05c-.024-.034-.024-.068 0-.102-.164-.133-.293-.218-.386-.251ZM8.28 4.656c-.14.068-.245.253-.316.555-.747 1.175-1.949 1.78-3.606 1.813l.07.403c.14.437.397.655.77.655.397 0 .876-.168 1.436-.504 0 .068-.012.151-.035.252-.024.1-.024.168 0 .201-.024.068 0 .118.07.151h.07c.117.034.303.018.56-.05.257-.033.455-.05.595-.05.21 0 .584.017 1.12.05h1.121c.07 0 .105-.05.105-.151v-.554c.537.37 1.016.554 1.436.554.42 0 .712-.386.875-1.159h-.07c-1.354 0-2.52-.486-3.501-1.46a.668.668 0 0 0 .07-.202c0-.133-.105-.234-.315-.302-.024 0-.035-.016-.035-.05-.094-.1-.234-.151-.42-.151Zm-1.26-.15h-.526c-.187 0-.269.067-.245.201.046.437.105.806.175 1.108 0 .068.011.084.035.05.327.034.49-.133.49-.503 0-.202.023-.353.07-.453a.616.616 0 0 0 0-.403Zm3.71-.202h-.525c-.14.034-.21.068-.21.1.047.64.117 1.008.21 1.109.023.034.058.034.105 0a.241.241 0 0 1 .14-.05c.14-.033.245-.37.316-1.008a.534.534 0 0 0-.035-.15ZM6.565 2.24a.364.364 0 0 0-.14.1c-.07 0-.14.135-.21.404v.05a4.36 4.36 0 0 1-.525.856c-.234.202-.573.37-1.016.504a.767.767 0 0 1-.175.05c.117.572.362.874.735.907.35-.033.829-.47 1.436-1.31.63.639 1.027.991 1.19 1.058.07-.033.187-.385.35-1.057-.023-.067-.104-.134-.245-.202-.187-.067-.432-.234-.735-.504a12.317 12.317 0 0 1-.105-.15v-.051a.35.35 0 0 0 .07-.202c-.047-.1-.187-.201-.42-.302-.07-.1-.14-.15-.21-.15Zm3.606-.1-.14.1c-.07 0-.128.118-.175.353v.1a1.592 1.592 0 0 1-.42.605c-.374.336-.747.52-1.12.554.07.604.303.924.7.957.35-.067.782-.453 1.295-1.159.56.74 1.062 1.193 1.506 1.36.303 0 .537-.352.7-1.057-.467-.033-1.05-.386-1.75-1.058.023-.1.035-.202.035-.302-.047-.101-.188-.202-.42-.302-.07-.101-.14-.152-.21-.152Z"}),React.createElement("path",{d:"M8.105 9.693h-.98V11.154h2.87v-1.46H8.105ZM8.455 6.067c-.28.336-.69.722-1.226 1.158h2.696c-.327-.201-.77-.536-1.33-1.007a1.13 1.13 0 0 1-.14-.151Z"}))));var mi="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNMCAwaDE0djE0SDB6Ii8+PC9kZWZzPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PG1hc2sgaWQ9ImIiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2EiLz48L21hc2s+PHVzZSBmaWxsPSIjRjZGN0Y5IiBvcGFjaXR5PSIuMDEiIHhsaW5rOmhyZWY9IiNhIi8+PGcgbWFzaz0idXJsKCNiKSIgZmlsbD0iIzQyRDVBMCIgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNMy4zODkgMTEuMDYzYS43MjIuNzIyIDAgMCAwLS43MjQtLjcySC43MzhhLjcyMi43MjIgMCAxIDAgMCAxLjQ0MmgxLjkyN2MuNCAwIC43MjQtLjMyNC43MjQtLjcyMlpNLjAxNSA2Ljk3NWMwIC4zOTkuMzI0LjcyMS43Mj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LTEuMDU3LS40NjctLjAzMy0xLjA1LS4zODYtMS43NS0xLjA1OC4wMjMtLjEuMDM1LS4yMDIuMDM1LS4zMDItLjA0Ny0uMTAxLS4xODgtLjIwMi0uNDItLjMwMi0uMDctLjEwMS0uMTQtLjE1Mi0uMjEtLjE1MloiLz48cGF0aCBkPSJNOC4xMDUgOS42OTNoLS45OFYxMS4xNTRoMi44N3YtMS40Nkg4LjEwNVpNOC40NTUgNi4wNjdjLS4yOC4zMzYtLjY5LjcyMi0xLjIyNiAxLjE1OGgyLjY5NmMtLjMyNy0uMjAxLS43Ny0uNTM2LTEuMzMtMS4wMDdhMS4xMyAxLjEzIDAgMCAxLS4xNC0uMTUxWiIvPjwvZz48L2c+PC9zdmc+",ei=Object.defineProperty,gi=Object.getOwnPropertySymbols,Nn=Object.prototype.hasOwnProperty,Pi=Object.prototype.propertyIsEnumerable,Wi=(Ne,Ze,qe)=>Ze in Ne?ei(Ne,Ze,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Ne[Ze]=qe,Ni=(Ne,Ze)=>{for(var qe in Ze||(Ze={}))Nn.call(Ze,qe)&&Wi(Ne,qe,Ze[qe]);if(gi)for(var qe of gi(Ze))Pi.call(Ze,qe)&&Wi(Ne,qe,Ze[qe]);return Ne};const Oi=Ne=>React.createElement("svg",Ni({width:14,height:14,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},Ne),React.createElement("title",null,"\u5386\u53F2\u5BF9\u8BDD"),React.createElement("defs",null,React.createElement("path",{id:"b_svg__a",d:"M0 0h14v14H0z"})),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("mask",{id:"b_svg__b",fill:"#fff"},React.createElement("use",{xlinkHref:"#b_svg__a"})),React.createElement("use",{fill:"#F6F7F9",opacity:.01,xlinkHref:"#b_svg__a"}),React.createElement("g",{mask:"url(#b_svg__b)",fillRule:"nonzero"},React.createElement("path",{d:"M5.607 0a1.38 1.38 0 0 0-1.379 1.379v4.613c0 .754.613 1.367 1.368 1.367h3.003a.62.62 0 0 1 .433.177l1.834 1.787a.665.665 0 0 0 1.13-.476V7.602c0-.134.108-.243.242-.243h.32a1.33 1.33 0 0 0 1.33-1.33V1.47A1.472 1.472 0 0 0 12.418 0h-6.81Z",fill:"#64B5F6"}),React.createElement("path",{d:"M5.702 8.147A2.25 2.25 0 0 1 3.45 5.895v-1.16a.342.342 0 0 0-.341-.341H1.483c-.811 0-1.469.658-1.469 1.468v4.562c0 .733.594 1.33 1.33 1.33h.32c.135 0 .243.108.243.242v1.245c0 .589.71.888 1.13.476L4.87 11.93a.624.624 0 0 1 .434-.177h3.003c.754 0 1.367-.613 1.367-1.367l-1-1.968a.265.265 0 0 0-.262-.264c-.728-.003-2.71-.007-2.71-.007Z",fill:"#1E88E5"}))));var po="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNMCAwaDE0djE0SDB6Ii8+PC9kZWZzPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PG1hc2sgaWQ9ImIiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2EiLz48L21hc2s+PHVzZSBmaWxsPSIjRjZGN0Y5IiBvcGFjaXR5PSIuMDEiIHhsaW5rOmhyZWY9IiNhIi8+PGcgbWFzaz0idXJsKCNiKSIgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNNS42MDcgMGExLjM4IDEuMzggMCAwIDAtMS4zNzkgMS4zNzl2NC42MTNjMCAuNzU0LjYxMyAxLjM2NyAxLjM2OCAxLjM2N2gzLjAwM2EuNjIuNjIgMCAwIDEgLjQzMy4xNzdsMS44MzQgMS43ODdhLjY2NS42NjUgMCAwIDAgMS4xMy0uNDc2VjcuNjAyYzAtLjEzNC4xMDgtLjI0My4yNDItLjI0M2guMzJhMS4zMyAxLjMzIDAgMCAwIDEuMzMtMS4zM1YxLjQ3QTEuNDcyIDEuNDcyIDAgMCAwIDEyLjQxOCAwaC02LjgxWiIgZmlsbD0iIzY0QjVGNiIvPjxwYXRoIGQ9Ik01LjcwMiA4LjE0N0EyLjI1IDIuMjUgMCAwIDEgMy40NSA1Ljg5NXYtMS4xNmEuMzQyLjM0MiAwIDAgMC0uMzQxLS4zNDFIMS40ODNjLS44MTEgMC0xLjQ2OS42NTgtMS40NjkgMS40Njh2NC41NjJjMCAuNzMzLjU5NCAxLjMzIDEuMzMgMS4zM2guMzJjLjEzNSAwIC4yNDMuMTA4LjI0My4yNDJ2MS4yNDVjMCAuNTg5LjcxLjg4OCAxLjEzLjQ3Nkw0Ljg3IDExLjkzYS42MjQuNjI0IDAgMCAxIC40MzQtLjE3N2gzLjAwM2MuNzU0IDAgMS4zNjctLjYxMyAxLjM2Ny0xLjM2N2wtMS0xLjk2OGEuMjY1LjI2NSAwIDAgMC0uMjYyLS4yNjRjLS43MjgtLjAwMy0yLjcxLS4wMDctMi43MS0uMDA3WiIgZmlsbD0iIzFFODhFNSIvPjwvZz48L2c+PC9zdmc+",co=St(59301),ia=(0,ot.forwardRef)(({onClose:Ne},Ze)=>{const qe=(0,fe.useDispatch)(),ci=(0,fe.useSelector)(Vo=>{var Fo;return(Fo=Vo==null?void 0:Vo.classroomList)==null?void 0:Fo.courseAiData}),[Xi,Zi]=(0,ot.useState)(!1),[wo,$i]=(0,ot.useState)(!1),li=(0,ot.useRef)(null),Gi=()=>{Zi(!0),$i(ci==null?void 0:ci.is_open_ai)};(0,ot.useImperativeHandle)(Ze,()=>({onClick:Gi}));const bo=Vo=>{var Fo;const fo=(Fo=(0,$e.g)())==null?void 0:Fo.course_id;Zi(!1),Ne(),fe.history.push(`/classrooms/${fo}/board/${ci==null?void 0:ci.board_id}?type=${Vo}`)},Qo=[{icon:mi,name:"\u95EE\u7B54\u96C6",description:"\u6559\u5E08\u53EF\u4E0A\u4F20\u95EE\u7B54\u96C6\uFF0C\u6253\u9020\u4E13\u5C5E\u667A\u80FD\u52A9\u6559\uFF0C\u5B9E\u73B0\u7CBE\u51C6\u89E3\u7B54",explainHref:"https://www.educoder.net/forums/40257",btnName:"\u95EE\u7B54\u96C6\u7BA1\u7406",type:"wendaji"},{icon:po,name:"\u5386\u53F2\u5BF9\u8BDD",description:"\u6559\u5E08\u53EF\u67E5\u770B\u6240\u6709\u5B66\u751F\u7684\u5386\u53F2\u5BF9\u8BDD\uFF0C\u5BF9\u5927\u6A21\u578B\u56DE\u7B54\u4E0D\u4F73\u7684\u95EE\u9898\u8FDB\u884C\u4EBA\u5DE5\u56DE\u590D\uFF0C\u5E76\u5C06\u5176\u8865\u5145\u81F3\u95EE\u7B54\u96C6\u3002",explainHref:"https://www.educoder.net/forums/40258",btnName:"\u5386\u53F2\u5BF9\u8BDD\u7BA1\u7406",type:"duihua"}];return co.createElement(ot.Fragment,null,co.createElement(Ft.default,{centered:!0,open:Xi,title:"\u667A\u80FD\u95EE\u7B54",width:850,onCancel:()=>Zi(!1),footer:null,bodyStyle:{paddingBottom:25}},co.createElement("div",{className:"flex flex-col gap-20 mb20"},co.createElement("div",{className:"p20",style:{background:"#F6F7F9"}},co.createElement("div",{className:"c-grey-333"},"\u667A\u80FD\u95EE\u7B54"),co.createElement(Je.Z,{align:"middle",className:"mt20"},co.createElement(tr.Z,{size:"default",checked:wo,onChange:Vo=>{$i(Vo),clearTimeout(li.current),li.current=setTimeout(()=>{var Fo;qe({type:"classroomList/setCourseAiState",payload:{course_id:(Fo=(0,$e.g)())==null?void 0:Fo.course_id,is_open_ai:Vo}})},500)}}),co.createElement("div",{className:"c-grey-333 ml10"},"\u5F00\u542F\u540E\uFF0C\u6559\u5B66\u8BFE\u5802\u5185\u7684\u5B66\u751F\u5C06\u53EF\u4EE5\u4F7F\u7528\u667A\u80FD\u52A9\u6559\u7684\u529F\u80FD\uFF0C\u4E0EAI\u5BF9\u8BDD\uFF0C\u8BA9AI\u7B54\u7591\u89E3\u60D1\u3002"," ",co.createElement("a",{href:"https://www.educoder.net/forums/40256",target:"_blank"},"\u64CD\u4F5C\u8BF4\u660E"))))),Qo.map((Vo,Fo)=>{const{icon:fo,name:Sr,description:Fr,explainHref:Rr,type:Br}=Vo;return co.createElement("div",{key:Fo,style:{marginBottom:Fobo(Br),style:{width:120},className:"mt20",type:"primary"},Vo.btnName))))})))}),ha=St(92832),ga=St(5871),on={wrap:"wrap___YYn6N",left:"left___YomRr",tip:"tip___nXV55",bottomBtn:"bottomBtn___dtC5V",disabled:"disabled___Om4jR"},ca="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAAHr1JREFUaEPNmweYnVW1/n/7a6fMmcm0ZEoSUkkCSQgJCVWKoAI2FAH1iqBYwXvFLogF8S9XvRYElUeqIJegFOmEKgiICUkgJBBCkpnMZHoyc6ad9pW9r3t/58wEsJfn+Z8z5zn9fN+711rvetdaewT/rsvi073GBEsdrIN8214WOfbCyLHnSks0SSGqFCCFlSOS/VLKNhXJbULKTVYgXwhKwWZevNX/d5ya+Ff+6OzZx9WGycRbhZs+JbKdYyPbmqZsR5Qsi7xrIS2LSAgQFuh7fdHIVQRSmZsVhsqSciARyifswL/LsuX9w8/fOfyvOs9/CeB5845bEuJ9WljidOm6tZHtEjkOkWPjuw4l2yZMJAk1UKsMVh9ZCVAqBhxJiEJzE2GEE0Z4ocSOwmEnCm9VxfDy7M77tvyzwP8pwAfMPG6JtOyLI0e8M7SEi2UTuB7SdlGOi+85+K5NyfEIXBdcrwy4YmENVsVgZQhBBKEPUYQVBNhBSDKMEGGAG8nAlvJuEfoX9+986B8G/g8Bnlt3yBQvk/m6tKxPKWElIhvjrhpk6HjmPkh4+K5L0XUpWTaJVIJpDfU01VVTP6Uaz3OMsXL5En3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/v/1j1p/aiXuv/zyxDOP7ViyYP7Ug9r6upadcPSqhYlkYm405jXteNqt8reG9LYO5NJVqt8VXlsU2Nsi6WySofvCfml38xm3nvFv+Ve8/wNgli4fKbeMnwAAAABJRU5ErkJggg==",Ks=Object.defineProperty,_a=Object.getOwnPropertySymbols,Ll=Object.prototype.hasOwnProperty,Yr=Object.prototype.propertyIsEnumerable,Fs=(Ne,Ze,qe)=>Ze in Ne?Ks(Ne,Ze,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Ne[Ze]=qe,gr=(Ne,Ze)=>{for(var qe in Ze||(Ze={}))Ll.call(Ze,qe)&&Fs(Ne,qe,Ze[qe]);if(_a)for(var qe of _a(Ze))Yr.call(Ze,qe)&&Fs(Ne,qe,Ze[qe]);return Ne};const zo=Ne=>React.createElement("svg",gr({className:"a_svg__icon",viewBox:"0 0 1068 1024",xmlns:"http://www.w3.org/2000/svg",width:208.594,height:200},Ne),React.createElement("path",{d:"M670.55 25.088c-1.025.512-2.049 1.024-2.817 2.048l-288.128 181.76L62.933 334.677l-3.072 1.536c-30.293 15.446-13.61 74.838 10.198 121.515 23.552 46.208 61.781 94.592 92.032 79.147 1.024-.512 2.048-1.024 3.328-2.347l286.89-181.717 317.654-126.294 3.072-1.578c30.293-15.403 13.61-74.795-9.942-120.96C739.072 58.027 700.8 9.643 670.55 25.045",fill:"#4FBFEC",opacity:.804}),React.createElement("path",{d:"m684.032 33.707-3.627 1.834L386.39 222.208 63.317 350.635l-3.584 1.834c-7.68 3.926-15.104 12.203-16.512 29.739 2.176 16.981 8.534 37.035 16.896 56.021 3.84 1.28 7.766 1.238 11.606-.085l350.506-141.739 2.56-1.322L745.515 94.805a19.456 19.456 0 0 0 7.424-9.557c-10.454-17.963-23.211-35.413-35.926-47.659-14.25-8.917-25.301-7.808-32.981-3.84z",fill:"#45AED8",opacity:.804}),React.createElement("path",{d:"M735.232 61.91c-32-42.497-53.376-43.862-65.707-37.59l-3.072 1.536-286.848 183.04-316.16 124.203-3.072 1.578c-12.8 6.528-24.32 24.662-8.704 75.52 1.579 4.395 4.694 7.979 8.32 9.984a17.792 17.792 0 0 0 13.142.427l342.314-137.557 2.56-1.28L730.54 85.675a17.792 17.792 0 0 0 7.381-10.88 13.013 13.013 0 0 0-2.688-12.886l-131.925 60.758",fill:"#7EDAFF",opacity:.804}),React.createElement("path",{d:"m390.912 341.461 54.144 107.52 28.16-51.2 57.515 7.51-54.614-107.264z",fill:"#DE5461",opacity:.804}),React.createElement("path",{d:"M475.733 252.97c16.47 32.342 3.414 71.34-28.928 87.809a65.493 65.493 0 0 1-88.064-28.16 66.005 66.005 0 0 1 28.715-88.32 65.621 65.621 0 0 1 88.32 28.672",fill:"#ECB646",opacity:.804}),React.createElement("path",{d:"M392.96 235.05a48.64 48.64 0 0 0-21.163 65.067 48.64 48.64 0 0 0 65.067 21.163 48.64 48.64 0 0 0 21.12-65.11 48.299 48.299 0 0 0-65.067-21.12M451.5 349.996c-39.51 20.138-88.32 4.266-108.459-35.243-20.139-39.51-4.267-88.32 35.243-108.459 39.509-20.138 88.32-4.266 108.458 35.243A80.512 80.512 0 0 1 451.5 349.995",fill:"#F5C857",opacity:.804}),React.createElement("path",{d:"M428.245 271.36a15.232 15.232 0 0 1-6.57 20.139 15.232 15.232 0 0 1-20.139-6.528 15.232 15.232 0 0 1 6.57-20.139 15.232 15.232 0 0 1 20.14 6.528",fill:"#F5C857",opacity:.804}),React.createElement("path",{d:"M903.253 596.181c-1.152.214-2.346.427-3.413 1.238l-346.027 94.25-357.461 29.184-3.584.598c-35.243 6.229-36.693 71.125-27.136 125.44 9.472 53.76 33.067 114.261 68.267 108.032 1.237-.214 2.432-.427 4.096-1.323l344.704-94.635 358.656-29.397 3.584-.64c35.242-6.187 36.693-71.125 27.221-124.843-10.07-53.632-33.664-114.09-68.864-107.904",fill:"#4FBFEC"}),React.createElement("path",{d:"m914.176 609.024-4.181.768L556.544 707.2l-364.715 29.867-4.181.682c-8.96 1.579-18.987 7.68-25.77 24.875-3.03 17.792-2.817 39.893-.257 61.61a18.773 18.773 0 0 0 11.734 3.457l396.458-34.816 2.987-.512 384.47-102.87a20.48 20.48 0 0 0 10.41-7.381c-4.992-21.333-12.459-42.752-21.504-59.008-11.563-13.355-23.04-15.659-32-14.08z",fill:"#45AED8"}),React.createElement("path",{d:"M957.013 653.227c-19.114-52.694-40.192-60.672-54.528-58.112l-3.584.597-345.088 95.957-356.48 27.734-3.584.682c-14.933 2.603-32 17.323-32 73.344a19.925 19.925 0 0 0 5.291 12.587 18.863 18.863 0 0 0 13.099 4.48l386.944-33.152 2.986-.512 374.912-101.205a18.73 18.73 0 0 0 10.795-8.662 13.653 13.653 0 0 0 1.28-13.781l-151.51 20.565",fill:"#7EDAFF"}),React.createElement("path",{d:"m524.373 828.587 21.419 124.885 44.16-42.837 55.552 25.258-21.973-124.757z",fill:"#DE5461"}),React.createElement("path",{d:"M637.013 765.653a68.565 68.565 0 0 1-56.149 79.446 68.95 68.95 0 0 1-79.957-55.467 69.461 69.461 0 0 1 56.064-80.043 69.12 69.12 0 0 1 80.085 56.064",fill:"#ECB646"}),React.createElement("path",{d:"M559.19 722.133a51.2 51.2 0 0 0-41.302 58.966 51.2 51.2 0 0 0 58.965 41.344 51.2 51.2 0 0 0 41.344-59.008 50.859 50.859 0 0 0-59.008-41.302m23.595 133.718a85.12 85.12 0 0 1-98.347-68.822 85.12 85.12 0 0 1 68.864-98.346 85.12 85.12 0 0 1 98.304 68.864 84.736 84.736 0 0 1-68.821 98.304",fill:"#F5C857"}),React.createElement("path",{d:"M583.552 769.536a16.043 16.043 0 0 1-12.8 18.261 16.043 16.043 0 0 1-18.261-12.8 16.043 16.043 0 0 1 12.8-18.261 16.043 16.043 0 0 1 18.261 12.8",fill:"#F5C857"}),React.createElement("path",{d:"m89.984 615.765 54.315 54.358a6.827 6.827 0 0 0 9.685 0l27.861-27.904a6.827 6.827 0 0 1 11.648 4.821v139.392a6.827 6.827 0 0 1-6.826 6.827H47.36a6.827 6.827 0 0 1-4.821-11.648L70.4 753.707a6.827 6.827 0 0 0 0-9.643l-39.552-39.552c-36.95-44.373-34.603-102.4-23.936-135.765 8.661-27.179 33.835-57.387 54.87-75.648 4.65-4.054 11.391.256 10.453 6.314a495.407 495.407 0 0 0-4.822 46.934c-2.133 38.314 8.619 54.741 22.614 69.418zm791.765-274.432-54.314-54.357a6.827 6.827 0 0 0-9.643 0l-27.904 27.904a6.827 6.827 0 0 1-11.648-4.821V170.667a6.827 6.827 0 0 1 6.827-6.827h139.392a6.827 6.827 0 0 1 4.821 11.648l-27.904 27.904a6.827 6.827 0 0 0 0 9.643l39.552 39.552c36.95 44.373 34.603 102.4 23.979 135.765-8.662 27.136-33.878 57.387-54.912 75.648-4.608 4.053-11.392-.256-10.454-6.315 1.707-11.178 3.755-27.392 4.822-46.933 2.133-38.315-8.619-54.741-22.614-69.419z",fill:"#18D6FF"}));var nr="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwNjggMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjA4LjU5NCIgaGVpZ2h0PSIyMDAiPjxwYXRoIGQ9Ik02NzAuNTUgMjUuMDg4Yy0xLjAyNS41MTItMi4wNDkgMS4wMjQtMi44MTcgMi4wNDhsLTI4OC4xMjggMTgxLjc2TDYyLjkzMyAzMzQuNjc3bC0zLjA3MiAxLjUzNmMtMzAuMjkzIDE1LjQ0Ni0xMy42MSA3NC44MzggMTAuMTk4IDEyMS41MTUgMjMuNTUyIDQ2LjIwOCA2MS43ODEgOTQuNTkyIDkyLjAzMiA3OS4xNDcgMS4wMjQtLjUxMiAyLjA0OC0xLjAyNCAzLjMyOC0yLjM0N2wyODYuODktMTgxLjcxNyAzMTcuNjU0LTEyNi4yOTQgMy4wNzItMS41NzhjMzAuMjkzLTE1LjQwMyAxMy42MS03NC43OTUtOS45NDItMTIwLjk2QzczOS4wNzIgN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CAyNy45MDRhNi44MjcgNi44MjcgMCAwIDEtMTEuNjQ4LTQuODIxVjE3MC42NjdhNi44MjcgNi44MjcgMCAwIDEgNi44MjctNi44MjdoMTM5LjM5MmE2LjgyNyA2LjgyNyAwIDAgMSA0LjgyMSAxMS42NDhsLTI3LjkwNCAyNy45MDRhNi44MjcgNi44MjcgMCAwIDAgMCA5LjY0M2wzOS41NTIgMzkuNTUyYzM2Ljk1IDQ0LjM3MyAzNC42MDMgMTAyLjQgMjMuOTc5IDEzNS43NjUtOC42NjIgMjcuMTM2LTMzLjg3OCA1Ny4zODctNTQuOTEyIDc1LjY0OC00LjYwOCA0LjA1My0xMS4zOTItLjI1Ni0xMC40NTQtNi4zMTUgMS43MDctMTEuMTc4IDMuNzU1LTI3LjM5MiA0LjgyMi00Ni45MzMgMi4xMzMtMzguMzE1LTguNjE5LTU0Ljc0MS0yMi42MTQtNjkuNDE5eiIgZmlsbD0iIzE4RDZGRiIvPjwvc3ZnPg==",Xr=Object.defineProperty,Wr=Object.getOwnPropertySymbols,wa=Object.prototype.hasOwnProperty,kr=Object.prototype.propertyIsEnumerable,Ri=(Ne,Ze,qe)=>Ze in Ne?Xr(Ne,Ze,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Ne[Ze]=qe,$a=(Ne,Ze)=>{for(var qe in Ze||(Ze={}))wa.call(Ze,qe)&&Ri(Ne,qe,Ze[qe]);if(Wr)for(var qe of Wr(Ze))kr.call(Ze,qe)&&Ri(Ne,qe,Ze[qe]);return Ne};const al=Ne=>React.createElement("svg",$a({className:"b_svg__icon",viewBox:"0 0 1068 1024",xmlns:"http://www.w3.org/2000/svg",width:208.594,height:200},Ne),React.createElement("path",{d:"M809.77 821.675H73.345A63.744 63.744 0 0 1 9.557 757.93V489.685c0-35.2 28.587-63.744 63.744-63.744H809.6c35.2 0 63.701 28.544 63.701 63.744v268.246a63.488 63.488 0 0 1-63.573 63.744z",fill:"#363ED6"}),React.createElement("path",{d:"m184.448.555 706.39 175.786L754.943 722.39 48.597 546.603z",fill:"#B2CEF2"}),React.createElement("path",{d:"M52.821 363.392H809.26V926.08H52.779z",fill:"#F0FCFF"}),React.createElement("path",{d:"M398.123 562.987v-65.792a21.333 21.333 0 0 0-21.163-21.163H30.72a21.333 21.333 0 0 0-21.205 21.163v454.357a21.333 21.333 0 0 0 21.205 21.163h821.547a21.333 21.333 0 0 0 21.162-21.163V605.355a21.333 21.333 0 0 0-21.162-21.206H419.328a21.333 21.333 0 0 1-21.205-21.162z",fill:"#145DFF"}),React.createElement("path",{d:"M763.776 499.925h-284.33a9.728 9.728 0 1 1 0-19.456h284.33c5.29 0 9.77 4.267 9.77 9.728s-4.266 9.728-9.77 9.728zm0 42.71h-284.33a9.728 9.728 0 1 1 0-19.456h284.33a9.728 9.728 0 1 1 0 19.456z",fill:"#D4E4F9"}));var as="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwNjggMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjA4LjU5NCIgaGVpZ2h0PSIyMDAiPjxwYXRoIGQ9Ik04MDkuNzcgODIxLjY3NUg3My4zNDVBNjMuNzQ0IDYzLjc0NCAwIDAgMSA5LjU1NyA3NTcuOTNWNDg5LjY4NWMwLTM1LjIgMjguNTg3LTYzLjc0NCA2My43NDQtNjMuNzQ0SDgwOS42YzM1LjIgMCA2My43MDEgMjguNTQ0IDYzLjcwMSA2My43NDR2MjY4LjI0NmE2My40ODggNjMuNDg4IDAgMCAxLTYzLjU3MyA2My43NDR6IiBmaWxsPSIjMzYzRUQ2Ii8+PHBhdGggZD0ibTE4NC40NDguNTU1IDcwNi4zOSAxNzUuNzg2TDc1NC45NDMgNzIyLjM5IDQ4LjU5NyA1NDYuNjAzeiIgZmlsbD0iI0IyQ0VGMiIvPjxwYXRoIGQ9Ik01Mi44MjEgMzYzLjM5Mkg4MDkuMjZWOTI2LjA4SDUyLjc3OXoiIGZpbGw9IiNGMEZDRkYiLz48cGF0aCBkPSJNMzk4LjEyMyA1NjIuOTg3di02NS43OTJhMjEuMzMzIDIxLjMzMyAwIDAgMC0yMS4xNjMtMjEuMTYzSDMwLjcyYTIxLjMzMyAyMS4zMzMgMCAwIDAtMjEuMjA1IDIxLjE2M3Y0NTQuMzU3YTIxLjMzMyAyMS4zMzMgMCAwIDAgMjEuMjA1IDIxLjE2M2g4MjEuNTQ3YTIxLjMzMyAyMS4zMzMgMCAwIDAgMjEuMTYyLTIxLjE2M1Y2MDUuMzU1YTIxLjMzMyAyMS4zMzMgMCAwIDAtMjEuMTYyLTIxLjIwNkg0MTkuMzI4YTIxLjMzMyAyMS4zMzMgMCAwIDEtMjEuMjA1LTIxLjE2MnoiIGZpbGw9IiMxNDVERkYiLz48cGF0aCBkPSJNNzYzLjc3NiA0OTkuOTI1aC0yODQuMzNhOS43MjggOS43MjggMCAxIDEgMC0xOS40NTZoMjg0LjMzYzUuMjkgMCA5Ljc3IDQuMjY3IDkuNzcgOS43MjhzLTQuMjY2IDkuNzI4LTkuNzcgOS43Mjh6bTAgNDIuNzFoLTI4NC4zM2E5LjcyOCA5LjcyOCAwIDEgMSAwLTE5LjQ1NmgyODQuMzNhOS43MjggOS43MjggMCAxIDEgMCAxOS40NTZ6IiBmaWxsPSIjRDRFNEY5Ii8+PC9zdmc+",Qs=(Ne,Ze,qe)=>new Promise((ci,Xi)=>{var Zi=li=>{try{$i(qe.next(li))}catch(Gi){Xi(Gi)}},wo=li=>{try{$i(qe.throw(li))}catch(Gi){Xi(Gi)}},$i=li=>li.done?ci(li.value):Promise.resolve(li.value).then(Zi,wo);$i((qe=qe.apply(Ne,Ze)).next())}),Mi=(0,ot.forwardRef)(({onUpdateNum:Ne,onSave:Ze},qe)=>{var ci,Xi;const Zi=`\u8BF7\u751F\u6210\u5173\u4E8E\u300APython\u7A0B\u5E8F\u8BBE\u8BA1\u300B\u7684\u8BD5\u9898\u3002 1.\u5355\u9009\u9898\u8003\u5BDF\u77E5\u8BC6\u70B9:\u53D8\u91CF\u5B9A\u4E49\u3001\u6570\u636E\u7C7B\u578B\u3001\u8FD0\u7B97\u7B26\u548C\u63A7\u5236\u7ED3\u6784\u3002\u96BE\u5EA6\u4E3A\u201C\u56F0\u96BE\u201D\u7684\u8BD5\u9898\u536020% 2.\u591A\u9009\u9898\u8003\u5BDF\u77E5\u8BC6\u70B9:\u53D8\u91CF\u5B9A\u4E49\u3001\u8FD0\u7B97\u7B26\u548C\u63A7\u5236\u7ED3\u6784\u3002\u96BE\u5EA6\u4E3A\u201C\u56F0\u96BE\u201D\u7684\u8BD5\u9898\u536020% -3.\u7F16\u7A0B\u9898\u8003\u5BDF\u77E5\u8BC6\u70B9:\u53D8\u91CF\u5B9A\u4E49\u3001\u6570\u636E\u7C7B\u578B\u3002\u96BE\u5EA6\u4E3A\u201C\u56F0\u96BE\u201D\u7684\u8BD5\u9898\u536020%`,[wo,$i]=(0,ot.useState)(!1),[li,Gi]=(0,ot.useState)([]),[bo,Qo]=(0,ot.useState)(null),[Vo,Fo]=(0,ot.useState)(!1),[fo,Sr]=(0,ot.useState)([]),[Fr,Rr]=(0,ot.useState)(0),[Br,Ga]=(0,ot.useState)(0),[Za,Pa]=(0,ot.useState)(!1),[ka,Ar]=(0,ot.useState)(""),[Ta,oo]=(0,ot.useState)(Zi),[Ro,Go]=(0,ot.useState)(0),[Jo,Ia]=(0,ot.useState)(0),[rr,Aa]=(0,ot.useState)(0),[ms,Ja]=(0,ot.useState)(0),[Dr,qa]=(0,ot.useState)(0),[Vi,Co]=(0,ot.useState)(0),[Cr,No]=(0,ot.useState)(0),[xr,br]=(0,ot.useState)(0),[Tr,jr]=(0,ot.useState)(Ct.Q),{contentRef:bs,value:Ca,status:Ua,open:qs,close:Ma}=Tr,Nl=(0,Mn.Z)({contentRef:bs,status:Ua}),{openProgress:ul,closeProgress:_a,CreateProgressModal:vl,progressOpen:Vr}=(0,zt.Z)();(0,ot.useEffect)(()=>{bo&&wh(),bo===!1&&(Ma(),Ne==null||Ne(),Gi([]),oo(Zi),Go(0),Ia(0),Aa(0),Ja(0),qa(0),Co(0),No(0),br(0))},[bo]),(0,ot.useEffect)(()=>{if(!Ua&&(bs!=null&&bs.current)){const Xo=bs.current.querySelector('h2[data-type="title"]');if(Xo){const Ra=Xo.textContent;Ar(Ra)}}},[Ua]);const kl=()=>{Fo(!0)};(0,ot.useImperativeHandle)(qe,()=>({onClick:kl}));const su=Xo=>{Pa(!0),Rr(Xo),Ga(0)},Nu=Xo=>Qs(void 0,null,function*(){const Ra=Xo.name.split(".").slice(-1)[0].toLowerCase();return["docx","doc","pdf","png","jpg"].indexOf(Ra)==-1?(Fn.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u683C\u5F0F\u6709\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):Xo.size/1024/1024>10?(Fn.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):!0}),eh=Xo=>{Xo==="1"&&(0,nt.xg)("/paperlibrary"),Xo==="2"&&(Fo(!1),Qo(!0))},wh=()=>Qs(void 0,null,function*(){const Xo=yield(0,Dn.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});Xo.status===0&&(Rr(Xo.total_number),Ga(Xo.remaining_number))}),nh=Xo=>(Xo=Xo||"",Xo=String(Xo),Xo=Xo.replace(/\s+/g,""),Xo),Eh=()=>Qs(void 0,null,function*(){var Xo,Ra;if(nh(Ta)){if(Ta.length>1e3){Fn.ZP.warning("\u51FA\u9898\u8981\u6C42\u5B57\u6570\u9650\u5236\u4E3A1000\u5B57");return}}else{Fn.ZP.warning("\u8BF7\u5148\u8F93\u5165\u51FA\u9898\u8981\u6C42");return}if(!nh(Ta)&&!(li!=null&&li.length)){Fn.ZP.warning("\u8BF7\u4E0A\u4F20\u6750\u6599\u6587\u6863\u6216\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6750\u6599\u5185\u5BB9");return}const ls=[{name:"\u5355\u9009\u9898",num:Ro||0},{name:"\u591A\u9009\u9898",num:Jo||0},{name:"\u5224\u65AD\u9898",num:rr||0},{name:"\u586B\u7A7A\u9898",num:ms||0},{name:"\u7B80\u7B54\u9898",num:Dr||0},{name:"\u7EC4\u5408\u9898",num:xr||0},{name:"\u7F16\u7A0B\u9898",num:Vi||0},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",num:Cr||0}],ic=ls.reduce((lu,oh)=>lu+oh.num,0);if(ic===0){Fn.ZP.warning("\u8BF7\u8BBE\u7F6E\u51FA\u9898\u6570\u91CF");return}if(ic>50){Fn.ZP.warning("\u51FA\u9898\u6570\u91CF\u8FBE\u5230\u9650\u5236");return}Pa(!1);const Ph={scene_type:10,request_identifier:Math.random(),file_id:(Ra=(Xo=li[0])==null?void 0:Xo.response)==null?void 0:Ra.id,content:Ta,count_arr:ls.map(lu=>lu.num).join(",")};yield qs(Ph),wh()}),fr=()=>Qs(void 0,null,function*(){const Xo=Nl();if(Ze){Qo(!1),Ze(Xo);return}ul(),$i(!0),Sr([]);const Ra=new FormData;Ra.append("html",Xo);const ls=yield(0,Dn.ZP)("/api/intelligent_imports/import.json",{method:"post",body:Ra},!0);if((ls==null?void 0:ls.status)===0)if(ls!=null&&ls.data){_a(100),Sr(ls==null?void 0:ls.data);return}else Fn.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898");$i(!1),_a()}),nc=()=>Qs(void 0,null,function*(){const Xo=Nl();(0,nt.RG)(Xo)}),Hc=[{icon:nr,name:"\u4EE5\u5377\u6362\u5377",description:"\u5927\u6A21\u578B\u6839\u636E\u5DF2\u6709\u8BD5\u5377\u7684\u9898\u578B\u3001\u65B9\u5411\u3001\u77E5\u8BC6\u70B9\u3001\u96BE\u6613\u5EA6\uFF0C\u5FEB\u901F\u751F\u6210\u65B0\u7684\u8BD5\u5377\uFF0C\u589E\u52A0\u8BD5\u5377\u7684\u4E30\u5BCC\u5EA6\u3002",explainHref:"https://www.educoder.net/forums/40403",btnText:"\u53BB\u51FA\u5377",type:"1"},{icon:as,name:"\u667A\u80FD\u51FA\u5377",description:"\u8BBE\u7F6E\u8BD5\u5377\u4E2D\u7684\u9898\u578B\u4E0E\u5BF9\u5E94\u7684\u51FA\u9898\u8981\u6C42\u3001\u51FA\u9898\u6570\u91CF\uFF0C\u5927\u6A21\u578B\u5FEB\u901F\u7406\u89E3\u5E76\u751F\u6210\u65B0\u7684\u8BD5\u5377\uFF0C\u589E\u52A0\u8BD5\u5377\u7684\u4E30\u5BCC\u5EA6\u3002",explainHref:"https://www.educoder.net/forums/40404",btnText:"\u7ACB\u5373\u51FA\u5377",type:"2"}],Wc=["uploading","error"].includes((ci=li==null?void 0:li[0])==null?void 0:ci.status);return ot.createElement(ot.Fragment,null,ot.createElement(Ft.default,{centered:!0,open:Vo,title:"\u667A\u80FD\u51FA\u5377",width:850,onCancel:()=>Fo(!1),footer:null,bodyStyle:{paddingBottom:25}},Hc.map((Xo,Ra)=>{const{icon:ls,name:ic,description:ih,explainHref:Ph,type:lu,btnText:oh}=Xo;return ot.createElement("div",{key:Ra,style:{marginBottom:Raeh(lu),style:{width:88},className:"mt20",type:"primary"},oh))))})),ot.createElement(le.Z,{visible:Za,totalCount:Fr,usedCount:Br,onCancel:()=>Pa(!1),onOk:Eh}),ot.createElement(Lo.Z,{title:"\u667A\u80FD\u51FA\u5377",extra:ot.createElement("div",{className:on.extraHeader},ot.createElement(Je.Z,{align:"middle"},!Ua&&!!Ca&&ot.createElement(ot.Fragment,null,ot.createElement($t.op,{onClick:fr,className:"mr15",shape:"default"},"\u4FDD\u5B58\u8BD5\u5377"),ot.createElement($t.op,{onClick:nc,shape:"default",type:"text"},ot.createElement("i",{className:"iconfont icon-fuzhi8 mr5 font14"}),"\u590D\u5236")),ot.createElement("i",{onClick:()=>{const Xo=Ra=>{Ft.default.confirm({centered:!0,icon:null,width:500,zIndex:1101,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Ra,onOk:()=>{Qo(!1)}})};if(Ua){Xo("\u6B63\u5728\u751F\u6210\u8BD5\u9898\u4E2D\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F");return}else Ca?Xo("\u8BD5\u9898\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F"):Qo(!1)},className:"iconfont icon-guanbi11 current ml15"}))),placement:"bottom",height:"100%",headerStyle:{height:54,borderBottomColor:"#DCDCDC"},bodyStyle:{padding:0},closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:bo},ot.createElement("div",{className:on.wrap},ot.createElement("div",{className:on.left},ot.createElement("div",{className:on.tip},ot.createElement("img",{src:ca}),ot.createElement("span",null,"\u60A8\u597D\uFF01\u6211\u662F\u60A8\u7684\u667A\u80FD\u51FA\u5377\u52A9\u624B\uFF0C\u6211\u5DF2\u5B66\u4E60\u4E86\u5E73\u53F0\u4EE5\u53CA\u4E92\u8054\u7F51\u4E0A\u6D77\u91CF\u7684\u8BD5\u9898\u77E5\u8BC6\u5E93\u3002\u53EF\u4EE5\u6839\u636E\u60A8\u7684\u51FA\u9898\u8981\u6C42\u548C\u4E0A\u4F20\u7684\u6750\u6599\u7075\u6D3B\u751F\u6210\u8BD5\u5377\u3002\u6B22\u8FCE\u968F\u65F6\u4E0E\u6211\u4E92\u52A8\uFF0C\u8BA9\u6211\u4EEC\u4E00\u8D77\u6253\u9020\u66F4\u9AD8\u6548\u3001\u66F4\u4F18\u8D28\u7684\u8BD5\u5377!")),ot.createElement("div",{className:"mb10 mt20 c-black"},ot.createElement("b",null,"\u51FA\u9898\u8981\u6C42")),ot.createElement(ha.default.TextArea,{style:{height:160},className:"mb20",value:Ta,placeholder:"\u8BF7\u5148\u63D0\u4F9B\u60A8\u51FA\u9898\u4F9D\u636E\u7684\u6750\u6599\uFF0C\u53EF\u4EE5\u76F4\u63A5\u590D\u5236\u6750\u6599\u5185\u5BB9\u7C98\u8D34\u5728\u6B64\u533A\u57DF\uFF0C\u4E5F\u53EF\u70B9\u51FB\u4E0B\u65B9\u4E0A\u4F20\u6750\u6599\u6309\u94AE\u4E0A\u4F20\u672C\u5730\u6750\u6599\u6587\u6863",onChange:Xo=>{oo(Xo.target.value)}}),ot.createElement(Zo.default,{accept:".doc,.docx,.pdf,.png,.jpg",action:`${He.Z.API_SERVER}/api/attachments.json`,maxCount:1,fileList:li,withCredentials:!0,data:{upload_type:1},beforeUpload:Nu,onChange:({file:Xo})=>{var Ra,ls;Xo.status!=="removed"&&(Xo.status==="done"&&((Ra=Xo==null?void 0:Xo.response)==null?void 0:Ra.status)!==0&&(Xo.status="error",Xo.response=(ls=Xo==null?void 0:Xo.response)==null?void 0:ls.message),Gi([Xo]))},onRemove:()=>Gi([])},ot.createElement(Pt.Z,{title:"\u5355\u6B21\u4EC5\u652F\u6301\u4E0A\u4F201\u4E2A\u6587\u6863\u62161\u5F20\u56FE\u7247\uFF0C\u6587\u6863\u652F\u6301PDF/Word\u683C\u5F0F\uFF0C\u56FE\u7247\u652F\u63011\u5F20\u4E0D\u8D85\u8FC710M\u7684PNG/JPG\u56FE\u7247"},ot.createElement($t.op,{style:{borderRadius:2}},ot.createElement("i",{className:"icon-shangchuan3 mr5"}),"\u4E0A\u4F20\u6750\u6599"))),ot.createElement("div",{className:"c-black mt20"},ot.createElement("div",{className:"mb10 c-black"},ot.createElement("b",null,"\u51FA\u9898\u8981\u6C42"),ot.createElement("span",{className:"c-grey-999"},"\uFF08\u4E3A\u4FDD\u8BC1\u51FA\u9898\u4F53\u9A8C\uFF0C\u5355\u6B21\u51FA\u9898\u603B\u6570\u91CF\u4E0D\u80FD\u8D85\u8FC7",ot.createElement("span",{style:{padding:"0 6px",color:"#FB901F"}},"50"),"\u9053\uFF09")),ot.createElement(Je.Z,{style:{gap:16}},ot.createElement(Cn.Z,null,ot.createElement("label",null,"\u5355\u9009\u9898"),ot.createElement(ga.Z,{min:0,max:10,value:Ro,onChange:Go,style:{marginLeft:"8px"}})),ot.createElement(Cn.Z,null,ot.createElement("label",null,"\u591A\u9009\u9898"),ot.createElement(ga.Z,{min:0,max:10,value:Jo,onChange:Ia,style:{marginLeft:"8px"}})),ot.createElement(Cn.Z,null,ot.createElement("label",null,"\u5224\u65AD\u9898"),ot.createElement(ga.Z,{min:0,max:10,value:rr,onChange:Aa,style:{marginLeft:"8px"}})),ot.createElement(Cn.Z,null,ot.createElement("label",null,"\u586B\u7A7A\u9898"),ot.createElement(ga.Z,{min:0,max:10,value:ms,onChange:Ja,style:{marginLeft:"8px"}})),ot.createElement(Cn.Z,null,ot.createElement("label",null,"\u7B80\u7B54\u9898"),ot.createElement(ga.Z,{min:0,max:10,value:Dr,onChange:qa,style:{marginLeft:"8px"}})),ot.createElement(Cn.Z,null,ot.createElement("label",null,"\u7EC4\u5408\u9898"),ot.createElement(ga.Z,{min:0,max:10,value:xr,onChange:br,style:{marginLeft:"8px"}})),ot.createElement(Cn.Z,null,ot.createElement("label",null,"\u7F16\u7A0B\u9898"),ot.createElement(ga.Z,{min:0,max:10,value:Vi,onChange:Co,style:{marginLeft:"8px"}})),ot.createElement(Cn.Z,null,ot.createElement("label",null,"\u7A0B\u5E8F\u586B\u7A7A\u9898"),ot.createElement(ga.Z,{min:0,max:10,value:Cr,onChange:No,style:{marginLeft:"8px"}})))),Ua?ot.createElement("div",{onClick:Ma,className:on.bottomBtn},ot.createElement("i",{className:"iconfont icon-tingzhihuida"}),"\u505C\u6B62\u51FA\u5377"):Wc?ot.createElement("div",{className:`${on.bottomBtn} ${on.disabled}`},ot.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u5377"):ot.createElement("div",{onClick:()=>{if(Fr!==-1){Pa(!0);return}Eh()},className:on.bottomBtn},ot.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u5377")),ot.createElement(Ct.Z,{onStatusChange:jr,loadingText:"\u8BD5\u5377\u751F\u6210\u4E2D",fetchUrl:"/api/stream/intelligent_imports/stream.json",showEditableToolbar:!Vr,noRestrictModal:su,stringTransformer:Jn.o,onError:Xo=>{Object.prototype.toString.call(Xo)==="[object Object]"&&Xo.status===-9&&su(Xo.data)}}))),ot.createElement(Lo.Z,{placement:"bottom",height:"100%",closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:wo},ot.createElement(Je.Z,{align:"middle",style:{margin:"8px auto 24px auto",width:1200,fontWeight:600},className:"c-black font18"},ot.createElement("img",{src:St(64978),alt:"\u667A\u80FD\u51FA\u5377"}),ot.createElement("span",{className:"ml10"},"\u667A\u80FD\u51FA\u5377")),ot.createElement(tn.Z,{stickyTop:-24,hideWordFeatures:!0,dataSource:fo,gather:{course_id:(Xi=(0,$e.g)())==null?void 0:Xi.course_id,exercise_name:ka},okText:"\u786E\u5B9A",mode:5,onCancel:()=>{$i(!1)},onSuccess:Xo=>{var Ra;window.location.href=`/classrooms/${(Ra=(0,$e.g)())==null?void 0:Ra.course_id}/exercise`}}),ot.createElement("div",{style:{height:70}})),vl("\u5904\u7406\u4E2D"))}),ir={bigTips:"bigTips___mewBX",item:"item___OHFMs",show:"show___dsJVI",mask:"mask___h4LAC",btnWarp:"btnWarp___e9Svq",active:"active___qzKJK",hot:"hot___PbZhD",title:"title___q5BhY",listWrap:"listWrap___MAOqx",box:"box___Z_XBI",li:"li___Glbhe",content:"content___y7ZPm",borderBox:"borderBox____3_NP",text:"text___iKvBa",source:"source___fArQ5",action:"action___p4LQG",teacher:"teacher___MnWE2",tip1:"tip1___wzzkN",tip2:"tip2___hA87f",tag:"tag___Rrjg6"},Or=Object.defineProperty,ya=Object.getOwnPropertySymbols,Au=Object.prototype.hasOwnProperty,ru=Object.prototype.propertyIsEnumerable,Wo=(Ne,Ze,qe)=>Ze in Ne?Or(Ne,Ze,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Ne[Ze]=qe,_u=(Ne,Ze)=>{for(var qe in Ze||(Ze={}))Au.call(Ze,qe)&&Wo(Ne,qe,Ze[qe]);if(ya)for(var qe of ya(Ze))ru.call(Ze,qe)&&Wo(Ne,qe,Ze[qe]);return Ne};const Ul=Ne=>React.createElement("svg",_u({width:17,height:21,xmlns:"http://www.w3.org/2000/svg"},Ne),React.createElement("title",null,"\u{1F525}"),React.createElement("text",{transform:"translate(-22 -23)",fill:"#232B40",fillRule:"evenodd",fontFamily:"AppleColorEmoji, Apple Color Emoji",fontSize:18},React.createElement("tspan",{x:20,y:41},"\u{1F525}")));var Ls="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHRleHQgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIyIC0yMykiIGZpbGw9IiMyMzJCNDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZm9udC1mYW1pbHk9IkFwcGxlQ29sb3JFbW9qaSwgQXBwbGUgQ29sb3IgRW1vamkiIGZvbnQtc2l6ZT0iMTgiPgogICAgICAgICAgICAgICAgICAgICAgICA8dHNwYW4geD0iMjAiIHk9IjQxIj7wn5SlPC90c3Bhbj4KICAgICAgICAgICAgICAgICAgICA8L3RleHQ+PC9zdmc+",Ka="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAArxJREFUOE+N00tIVFEYB/D/Ofcxd8Y7zjgzlQ8mnzCmlVGRBUZl0oMkJKhN9NhF0CaC2lrQpkWbaNMiIlsFRREiRaDQA6pFVFBY2UNKc8THeOd17z3nfKFhFFl09t+P/8f5fwx/eTSyJiSz6CIyV/CCl3Ed8dBMhI6K0ckzVvvg4PwYW2i++G5NvWmyXljJFFgSNP0c5GQgpgXyE9QZ2/em968ADbZUUYA/gJ6oRUkbSChQ+h5kPgdFIUDoTy1X38S2DBRnkd8S0Ou1y8mUt8D1egRqQEYDyHkDlfkI6esQLAGmRSEy6SPR9v5LPwHxad0upthu+OIAhAxC4yBuA7BAhQlIV0JIC1KrhEIMRv5Tj735/sE5gN6vPkYB/QKMSiCQAuXGIdMvQMIHNAaSDEpyCApD6tWA54AX8+cjHXdPzAHi4fIbzijfo1sKgWQU+uJGkCpApl9DZH2A61DMgGAxKL4Eem6IPFa3IdHe82QOmLzZtL/wWbvmT+ehGR5KlhoINYTBA4B0FYTLQTChjDiILBju1DO7Y6B1NvyPFbrBJ2pSNwrjqosrD7NJ7MY4lHLBNIKCDmVEQEoHh4KU9qnYtr5zv33j+O1U2MipO8qVmzSLYJaXIv+lAB4yoYQHZQahJWphemPwKdle1nG9/48epK8323bQvazZxl6+qAEIREDCgTf+Dc7bSSAchV1ZAdeLtia2Xn26YJG6u8FPrm86blXXnEZZcwkpDyr7Ht7IMCZfFhGssKGFgwfLdjzu+XeV+1Iprbz8vBZL7iTKMnI+IPtBIDvsw6qKn403+hfh+zOs5WVuwVuY1/N9TW1GRD9O0t8ucyiZGTJngnXxw6GKmS08HFrljPld/wTmoYlrraWcvNpCPvI1sXK6U6uIVamC22Ise7Tvv4BfLzbzuDkW0IJXip57KLrx1dR3dFo2IutLG2QAAAAASUVORK5CYII=",Vl=St(56102),Yl=Object.defineProperty,fs=Object.defineProperties,sl=Object.getOwnPropertyDescriptors,ti=Object.getOwnPropertySymbols,To=Object.prototype.hasOwnProperty,Ko=Object.prototype.propertyIsEnumerable,ar=(Ne,Ze,qe)=>Ze in Ne?Yl(Ne,Ze,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Ne[Ze]=qe,Ir=(Ne,Ze)=>{for(var qe in Ze||(Ze={}))To.call(Ze,qe)&&ar(Ne,qe,Ze[qe]);if(ti)for(var qe of ti(Ze))Ko.call(Ze,qe)&&ar(Ne,qe,Ze[qe]);return Ne},sr=(Ne,Ze)=>fs(Ne,sl(Ze)),Zr=(Ne,Ze,qe)=>new Promise((ci,Xi)=>{var Zi=li=>{try{$i(qe.next(li))}catch(Gi){Xi(Gi)}},wo=li=>{try{$i(qe.throw(li))}catch(Gi){Xi(Gi)}},$i=li=>li.done?ci(li.value):Promise.resolve(li.value).then(Zi,wo);$i((qe=qe.apply(Ne,Ze)).next())}),es=()=>{const Ne=(0,fe.useLocation)(),Ze=(0,fe.useDispatch)(),qe=(0,fe.useSelector)(Vi=>{var Co;return(Co=Vi==null?void 0:Vi.classroomList)==null?void 0:Co.courseAiData}),ci=(0,fe.useSelector)(Vi=>{var Co;return(Co=Vi==null?void 0:Vi.user)==null?void 0:Co.userInfo}),[Xi,Zi]=(0,ot.useState)(!1),[wo,$i]=(0,ot.useState)(!1),[li,Gi]=(0,ot.useState)(!1),[bo,Qo]=(0,ot.useState)(null),[Vo,Fo]=(0,ot.useState)(""),[fo,Sr]=(0,ot.useState)([]),[Fr,Rr]=(0,ot.useState)(!1),[Br,Ga]=(0,ot.useState)(!1),Za=(0,ot.useRef)({}),Pa=(0,ot.useRef)({}),ka=qe==null?void 0:qe.id,Ar=(0,fe.useParams)();(0,ot.useEffect)(()=>{var Vi;if(((Vi=Ne.pathname)==null?void 0:Vi.slice(0,11))==="/classrooms"&&!Ta()){Zi(!0);return}Zi(!1)},[Ne==null?void 0:Ne.pathname]),(0,ot.useEffect)(()=>{var Vi;ci!=null&&ci.login&&((Vi=ci==null?void 0:ci.course)==null?void 0:Vi.course_role)===15&&ka&&oo(),ka&&Ga(qe==null?void 0:qe.have_tiding)},[ci==null?void 0:ci.login,ka]),(0,ot.useEffect)(()=>{var Vi,Co;((Vi=Ne.pathname)==null?void 0:Vi.slice(0,11))==="/classrooms"&&!ka&&!Ta()&&(Ar==null?void 0:Ar.coursesId)!="coursesId"&&Ze({type:"classroomList/getCourseAiData",payload:{course_id:((Co=(0,$e.g)())==null?void 0:Co.course_id)||(Ar==null?void 0:Ar.coursesId)}})},[Ne==null?void 0:Ne.pathname]);const Ta=()=>{const Vi=Ne.pathname,Co=Vi==="/classrooms",Cr=Vi==="/classrooms/new",No=Vi.includes("/initate_answer"),xr=/^\/classrooms\/[^\/]+\/exercise\/[^\/]+\/users\/[^\/]+$/.test(Vi);return Co||Cr||No||xr},oo=()=>Zr(void 0,null,function*(){var Vi;let Co=yield(0,Dn.ZP)("/api/course_qna_sets/top.json",{method:"get",params:{course_id:ka}});(Co==null?void 0:Co.status)===0&&Sr(((Vi=Co==null?void 0:Co.data)==null?void 0:Vi.list)||[])}),Ro=[{img:St(95502),name:"\u667A\u80FD\u95EE\u7B54",des:"\u4E3A\u8BFE\u5802\u63D0\u4F9B\u5B9E\u65F6\u4E92\u52A8\u652F\u6301\u3002\u6559\u5E08\u53EF\u4E0A\u4F20\u95EE\u7B54\u96C6\uFF0C\u6253\u9020\u4E13\u5C5E\u667A\u80FD\u52A9\u6559\uFF0C\u5B9E\u73B0\u7CBE\u51C6\u89E3\u7B54",show:!0,ref:ot.createRef(),element:ia},{img:St(94053),name:"\u667A\u80FD\u8BC4\u9605",des:"\u81EA\u52A8\u6279\u6539\u4F5C\u4E1A\u548C\u8BD5\u5377\u7684\u4E3B\u89C2\u9898\uFF0C\u667A\u80FD\u6253\u5206\u5E76\u751F\u6210\u8BC4\u8BED\uFF0C\u4E3A\u6559\u5E08\u63D0\u5347\u8BC4\u9605\u6548\u7387",show:!0,ref:ot.createRef(),element:so},{img:St(68763),name:"\u9519\u9898\u63A8\u9001",des:"\u6839\u636E\u5B66\u751F\u5728\u8BFE\u5802\u4F5C\u4E1A\u548C\u6D4B\u9A8C\u4E2D\u7684\u9519\u8BEF\u8BD5\u9898\uFF0C\u751F\u6210\u76F8\u5173\u77E5\u8BC6\u70B9\u7684\u65B0\u8BD5\u9898\u4F9B\u5B66\u751F\u5DE9\u56FA\u7EC3\u4E60"},{img:St(64978),name:"\u667A\u80FD\u51FA\u5377",des:"\u6839\u636E\u5DF2\u6709\u8BD5\u5377\u667A\u80FD\u751F\u6210\u65B0\u8BD5\u5377\u4F9B\u5B66\u751F\u6269\u5C55\u7EC3\u4E60\uFF0C\u4E3A\u6559\u5E08\u548C\u5B66\u751F\u63D0\u4F9B\u66F4\u4E30\u5BCC\u7684\u8BD5\u5377\u8D44\u6E90",show:!0,ref:ot.createRef(),element:Mi},{img:St(20736),name:"\u7F16\u7801\u52A9\u624B",des:"\u63D0\u4F9B\u542F\u53D1\u5F0F\u52A9\u5B66\u80FD\u529B\uFF0C\u4E3A\u5B66\u751F\u63D0\u4F9B\u667A\u80FD\u5BA1\u9898\u3001\u4EE3\u7801\u8BCA\u65AD\u548CAI\u8F85\u5BFC\u529F\u80FD\uFF0C\u63D0\u4F9B\u7F16\u7A0B\u89E3\u9898\u601D\u8DEF\uFF0C\u63D0\u5347\u7F16\u7A0B\u80FD\u529B",show:!0,ref:ot.createRef(),element:Yo},{img:St(41430),name:"\u6570\u5B57\u5206\u8EAB",des:"\u6839\u636E\u6559\u5E08\u5F62\u8C61\u521B\u5EFA\u865A\u62DF\u6570\u5B57\u4EBA\uFF0C\u66FF\u4EE3\u6559\u5E08\u8FDB\u884C\u6388\u8BFE\u548C\u95EE\u9898\u89E3\u7B54\uFF0C\u63D0\u5347\u8BFE\u5802\u4E92\u52A8\u4E0E\u6559\u5B66\u6548\u679C"}],Go=Vi=>{const{isDisabledNum:Co,checkNumModal:Cr,checkNum:No,onClose:xr}=Vi;return ot.createElement("div",{className:ir.bigTips},Ro.map((br,Tr)=>ot.createElement("div",{key:Tr,onClick:()=>{var jr,bs;if(br.show){if(Co){Cr();return}(bs=(jr=br.ref)==null?void 0:jr.current)==null||bs.onClick()}},className:We()(ir.item,(br==null?void 0:br.show)&&ir.show)},ot.createElement(Je.Z,{align:"middle"},ot.createElement("img",{className:"mr10",src:br.img,width:24}),ot.createElement("span",{style:{color:"#232B40",fontSize:16,fontWeight:600}},br.name)),ot.createElement("div",{className:"mt10",style:{color:"#434D6C",paddingLeft:34}},br.des),!(br!=null&&br.show)&&ot.createElement("div",{className:ir.mask},"\u656C\u8BF7\u671F\u5F85\uFF5E"),!!(br!=null&&br.show)&&ot.createElement("div",{onClick:jr=>jr.stopPropagation()}," ",ot.createElement(br.element,{ref:br.ref,onUpdateNum:No,onClose:xr})))))},Jo=Vi=>{const{setChatData:Co,setLoading:Cr,getData:No,clearStatus:xr,typing:br,renderChatItems:Tr}=Vi,jr=Ca=>{if(br){Fn.ZP.warning("\u8BF7\u7B49\u5F85\u4EFB\u52A1\u5B8C\u6210");return}Cr(!0),xr();const Ua=Tr(Ca.title);Co(Ua),No(Ca.title)},bs=["#E30000","#FA6400","#F58B1B"];return fo.length===0?ot.createElement(ot.Fragment,null):ot.createElement("div",{className:ir.hot},ot.createElement("div",{className:ir.title},ot.createElement("img",{src:Ls,width:17}),"\u70ED\u95E8\u95EE\u9898"),ot.createElement("div",{className:ir.listWrap},ot.createElement(Je.Z,{style:{width:"100%"}},ot.createElement("div",{className:ir.box,style:{paddingRight:10}},fo.slice(0,5).map((Ca,Ua)=>ot.createElement(Pt.Z,{key:Ua,title:Ca.title},ot.createElement("aside",{onClick:()=>jr(Ca)},ot.createElement("b",{style:{color:bs[Ua]}},Ua+1,".\xA0"),ot.createElement("span",null,Ca.title))))),ot.createElement("div",{className:ir.box},fo.slice(5).map((Ca,Ua)=>ot.createElement(Pt.Z,{key:Ua,title:Ca.title},ot.createElement("aside",{onClick:()=>jr(Ca)},ot.createElement("b",null,Ua+6,".\xA0"),ot.createElement("span",null,Ca.title))))))))},Ia=Vi=>Zr(void 0,[Vi],function*({type:Co,value:Cr,index:No,identifier:xr,objectIndex:br}){const Tr={index:br,identifier:xr,course_id:ka};if(Co==="like"&&(yield(0,Dn.ZP)("/api/course_qna_records/like.json",{method:"post",body:Tr})).status!==0)return Promise.reject();if(Co==="dislike"){if((0,Sn.dE)()&&Cr)$i(!0),Pa.current=Tr,yield new Promise((jr,bs)=>{Za.current={resolve:jr,reject:bs}});else if((yield(0,Dn.ZP)("/api/course_qna_records/dislike.json",{method:"post",body:Tr})).status!==0)return Promise.reject()}}),rr=()=>Zr(void 0,null,function*(){var Vi,Co;if(bo===null||!Vo){Fn.ZP.warning("\u8BF7\u9009\u62E9\u63CF\u8FF0");return}Gi(!0),(yield(0,Dn.ZP)("/api/course_qna_records/dislike.json",{method:"post",body:sr(Ir({},Pa.current),{status:bo,feedback:Vo})})).status===0&&((Co=(Vi=Za.current)==null?void 0:Vi.resolve)==null||Co.call(Vi),$i(!1)),Gi(!1)}),Aa=(Vi,Co,Cr)=>(0,Sn.dE)()&&ot.createElement("div",{className:ir.li,style:{width:Cr.width}},ot.createElement("div",{className:ir.content},ot.createElement("div",{className:ir.borderBox},ot.createElement("div",{className:ir.teacher},"\u8001\u5E08\u56DE\u590D"),ot.createElement(et.Z,{className:ir.text,value:Vi==null?void 0:Vi.text})),Vi.source&&ot.createElement("div",{className:ir.source},Vi.source),ot.createElement("div",{className:ir.action},ot.createElement(Vl.CopyToClipboard,{text:String((Vi==null?void 0:Vi.text)||""),onCopy:()=>Fn.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},ot.createElement(Pt.Z,{title:"\u590D\u5236"},ot.createElement("i",{className:"iconfot icon-fuzhi8 font13"})))))),Ja={onAdd:()=>(0,Dn.ZP)("/api/course_qna_sessions/create_session.json",{method:"get"}),onGetList:()=>(0,Dn.ZP)("/api/course_qna_sessions.json",{method:"get",params:{questionable_type:"Course",questionable_id:ka,by_self:!0}}),onListClick:Vi=>(0,Dn.ZP)(`/api/course_qna_sessions/${Vi}.json`,{method:"get",params:{questionable_id:ka}}),onListDelete:Vi=>(0,Dn.ZP)(`/api/course_qna_sessions/${Vi}.json`,{method:"delete",body:{questionable_id:ka}}),onListDealData:Vi=>{let Co=[];return Vi==null||Vi.forEach(Cr=>{var No;const xr=Cr.id,br=Cr.think?{reasoning:Cr.think,thinkingEnabled:!0}:{},Tr=[{text:Cr.question,key:xr,sender:"user",fileList:[],show:!0},Ir({key:xr,loading:!1,sender:"AI",show:!0,source:Cr.answer_source,text:Cr.answer,like:Cr.like,dislike:Cr.dislike,time:Cr.think_time,id:Cr.id},br)];Co=[...Co,...Tr],(No=Cr==null?void 0:Cr.teacher_feedback)==null||No.forEach(jr=>{Co.push({id:jr.id,key:`student-${xr}-${jr.id}`,loading:!1,sender:"teacher",show:!0,text:jr.feedback,source:jr.answer_source})})}),Co}};let Dr=!1;(0,Sn.dE)()?qe!=null&&qe.is_open_ai&&(Dr=!0):(0,Sn.$O)()&&(Dr=!0);const qa=[{id:0,name:"\u6709\u5BB3/\u4E0D\u5B89\u5168"},{id:1,name:"\u865A\u5047\u4FE1\u606F"},{id:2,name:"\u6CA1\u6709\u5E2E\u52A9"},{id:3,name:"\u5176\u4ED6"}];return ot.createElement(ot.Fragment,null,Xi&&Dr&&ot.createElement(Eo.Z,{headNode:ot.createElement(ot.Fragment,null,ot.createElement("div",{className:"c-grey-333 font22"},ot.createElement("span",{className:"mr5"},"\u{1F44B}"),"\u55E8\uFF0C\u6211\u662F\u667A\u80FD\u52A9\u6559\u5C0F\u6B4C\uFF0C\u60A8\u7684\u6559\u5B66\u597D\u5E2E\u624B\u3002"),ot.createElement("div",{className:"font16 mt20",style:{color:"#434D6C"}},ot.createElement("span",{style:{paddingLeft:33}},"\u60A8\u597D\uFF0C\u6211\u662F",ot.createElement("span",{className:"c-light-primary"},qe!=null&&qe.name?`\u300A${qe==null?void 0:qe.name}\u300B`:""),"\u6559\u5B66\u8BFE\u5802\u7684\u667A\u80FD\u52A9\u6559\uFF0C\u4E13\u4E3A\u63D0\u5347\u8BFE\u5802\u4E92\u52A8\u4E0E\u5B66\u4E60\u6548\u679C\u800C\u8BBE\u8BA1\u3002\u6211\u80FD\u534F\u52A9\u6559\u5E08\u5B9E\u65F6\u4E92\u52A8\u7B54\u7591\uFF0C\u8BD5\u9898\u8D44\u6E90\u751F\u6210\uFF0C\u81EA\u52A8\u6279\u6539\u4F5C\u4E1A\uFF0C\u865A\u62DF\u6570\u5B57\u4EBA\u6388\u8BFE\u7B49\uFF1B\u5E2E\u52A9\u5B66\u751F\u8BD5\u9898\u63A8\u9001\u5DE9\u56FA\u7EC3\u4E60\uFF0C\u542F\u53D1\u5F0F\u52A9\u5B66\u7B49\u3002\u786E\u4FDD\u6559\u5E08\u548C\u5B66\u751F\u5728\u6BCF\u4E00\u5802\u8BFE\u4E0A\u90FD\u80FD\u5F97\u5230\u5168\u65B9\u4F4D\u667A\u80FD\u5316\u7684\u4FDD\u969C\u3002\u8BA9\u6211\u4EEC\u4E00\u8D77\u9AD8\u6548\u5B66\u4E60\uFF0C\u8F7B\u677E\u8FDB\u6B65\uFF01"))),visible:Fr,onOpen:()=>{Rr(!0)},onClose:()=>{Rr(!1)},showSwitchingModel:!0,showLookHistory:!0,showAddSession:!0,fetchListObject:Ja,showPreference:!0,showRedraw:"last",showEdit:"last",customDataNode:Aa,headFunctionNode:(0,Sn.dE)()?Jo:Go,customPreference:Ia,isCheckRestrictNumber:!0,draggableExtraNode:Br&&(0,Sn.dE)()&&ot.createElement("div",{className:ir.tip1},ot.createElement("img",{src:Ka}),ot.createElement("span",null,"\u8001\u5E08\u56DE\u590D\u4E86\u4F60\u7684\u95EE\u9898\uFF0C\u5FEB\u6765\u770B\u770B\u5427~"),ot.createElement("i",{onMouseUp:Vi=>{Vi.stopPropagation(),Ga(!1),Ze({type:"classroomList/setCourseAiState",payload:{course_id:ka,have_tiding:!1}})},className:"iconfont icon-tupianguanbi font14 current"})),drawerExtraNode:Br&&(0,Sn.dE)()&&ot.createElement("div",{className:ir.tip2},ot.createElement("img",{src:Ka}),ot.createElement("span",null,"\u8001\u5E08\u56DE\u590D\u4E86\u4F60\u7684\u95EE\u9898\uFF0C\u5FEB\u6765\u770B\u770B\u5427~"),ot.createElement("i",{onClick:Vi=>{Vi.stopPropagation(),Ga(!1),Ze({type:"classroomList/setCourseAiState",payload:{course_id:ka,have_tiding:!1}})},className:"iconfont icon-tupianguanbi font14 current"})),menuExtraFunctionNode:Vi=>(Vi==null?void 0:Vi.have_teacher_comment)&&ot.createElement("div",{className:ir.tag},"\u8001\u5E08\u56DE\u590D"),title:"\u667A\u80FD\u52A9\u6559",fetchData:{questionable_type:"Course",questionable_id:ka,is_chat:!0},fetchUrl:"/api/stream/course_qna_records/chat_messages.json"}),ot.createElement(Ft.default,{centered:!0,open:wo,confirmLoading:li,onCancel:()=>{$i(!1)},afterClose:()=>{var Vi,Co;(Co=(Vi=Za.current)==null?void 0:Vi.reject)==null||Co.call(Vi),Fo(""),Qo(null)},onOk:rr,title:"\u53CD\u9988",width:"530px",okText:"\u63D0\u4EA4"},ot.createElement("div",{className:ir.btnWarp},qa.map(Vi=>ot.createElement("div",{key:Vi.id,className:bo===Vi.id?ir.active:"",onClick:()=>Qo(Vi.id)},Vi.name))),ot.createElement(ha.default.TextArea,{style:{height:280},placeholder:"\u6211\u4EEC\u60F3\u77E5\u9053\u4F60\u5BF9\u6B64\u56DE\u7B54\u4E0D\u6EE1\u610F\u7684\u539F\u56E0\uFF0C\u4F60\u8BA4\u4E3A\u66F4\u597D\u7684\u56DE\u7B54\u662F\u4EC0\u4E48?",value:Vo,onChange:Vi=>Fo(Vi.target.value)})))},ps=()=>ot.createElement(ot.Fragment,null,ot.createElement(fn,null),ot.createElement(es,null)),da=St(48066),Sh=St(29679),$u=St(19248),Xl=St(96512),Bl=St(72308),Wa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},ss=Wa,ba=St(7657),Ea=function(Ze,qe){return ot.createElement(ba.Z,(0,Bl.Z)({},Ze,{ref:qe,icon:ss}))},bl=ot.forwardRef(Ea),Cu=bl,fa=St(36355),zc=()=>ot.createElement("svg",{width:"252",height:"294"},ot.createElement("defs",null,ot.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),ot.createElement("g",{fill:"none",fillRule:"evenodd"},ot.createElement("g",{transform:"translate(0 .012)"},ot.createElement("mask",{fill:"#fff"}),ot.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),ot.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),ot.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),ot.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),ot.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),ot.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),ot.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),ot.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),ot.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),ot.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),ot.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),ot.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),ot.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),ot.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),ot.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),ot.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),ot.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),ot.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),ot.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),ot.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),ot.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),ot.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),ot.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),ot.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),ot.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),ot.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),ot.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),ot.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),ot.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),ot.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),ot.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),ot.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),ot.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),ot.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),ot.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),ot.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),ot.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),ot.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),ot.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),ot.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),ot.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),ot.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),vo=()=>ot.createElement("svg",{width:"254",height:"294"},ot.createElement("defs",null,ot.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),ot.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),ot.createElement("g",{fill:"none",fillRule:"evenodd"},ot.createElement("g",{transform:"translate(0 .067)"},ot.createElement("mask",{fill:"#fff"}),ot.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),ot.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),ot.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),ot.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),ot.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),ot.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),ot.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),ot.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),ot.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),ot.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),ot.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),ot.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),ot.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),ot.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),ot.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),ot.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),ot.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),ot.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),ot.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),ot.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),ot.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),ot.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),ot.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),ot.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),ot.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),ot.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),ot.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),ot.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),ot.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),ot.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),ot.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),ot.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),ot.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),ot.createElement("mask",{fill:"#fff"}),ot.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),ot.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),ot.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),ot.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),ot.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),ot.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),ot.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),ot.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),ot.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),ot.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),ot.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),Ie=()=>ot.createElement("svg",{width:"251",height:"294"},ot.createElement("g",{fill:"none",fillRule:"evenodd"},ot.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),ot.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),ot.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),ot.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),ot.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),ot.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),ot.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),ot.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),ot.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),ot.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),ot.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),ot.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),ot.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),ot.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),ot.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),ot.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),ot.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),ot.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),ot.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),ot.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),ot.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),ot.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),ot.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),ot.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),ot.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),ot.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),ot.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),ot.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),ot.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),ot.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),ot.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),ot.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),ot.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),ot.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),ot.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),ot.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),ot.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),ot.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),ot.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}))),Qn=St(83116),ug=St(37613);const hg=Ne=>{const{componentCls:Ze,lineHeightHeading3:qe,iconCls:ci,padding:Xi,paddingXL:Zi,paddingXS:wo,paddingLG:$i,marginXS:li,lineHeight:Gi}=Ne;return{[Ze]:{padding:`${$i*2}px ${Zi}px`,"&-rtl":{direction:"rtl"}},[`${Ze} ${Ze}-image`]:{width:Ne.imageWidth,height:Ne.imageHeight,margin:"auto"},[`${Ze} ${Ze}-icon`]:{marginBottom:$i,textAlign:"center",[`& > ${ci}`]:{fontSize:Ne.iconFontSize}},[`${Ze} ${Ze}-title`]:{color:Ne.colorTextHeading,fontSize:Ne.titleFontSize,lineHeight:qe,marginBlock:li,textAlign:"center"},[`${Ze} ${Ze}-subtitle`]:{color:Ne.colorTextDescription,fontSize:Ne.subtitleFontSize,lineHeight:Gi,textAlign:"center"},[`${Ze} ${Ze}-content`]:{marginTop:$i,padding:`${$i}px ${Xi*2.5}px`,backgroundColor:Ne.colorFillAlter},[`${Ze} ${Ze}-extra`]:{margin:Ne.extraMargin,textAlign:"center","& > *":{marginInlineEnd:wo,"&:last-child":{marginInlineEnd:0}}}}},Su=Ne=>{const{componentCls:Ze,iconCls:qe}=Ne;return{[`${Ze}-success ${Ze}-icon > ${qe}`]:{color:Ne.resultSuccessIconColor},[`${Ze}-error ${Ze}-icon > ${qe}`]:{color:Ne.resultErrorIconColor},[`${Ze}-info ${Ze}-icon > ${qe}`]:{color:Ne.resultInfoIconColor},[`${Ze}-warning ${Ze}-icon > ${qe}`]:{color:Ne.resultWarningIconColor}}},xu=Ne=>[hg(Ne),Su(Ne)],th=Ne=>xu(Ne);var Rc=(0,Qn.Z)("Result",Ne=>{const Ze=Ne.colorInfo,qe=Ne.colorError,ci=Ne.colorSuccess,Xi=Ne.colorWarning,Zi=(0,ug.TS)(Ne,{resultInfoIconColor:Ze,resultErrorIconColor:qe,resultSuccessIconColor:ci,resultWarningIconColor:Xi,imageWidth:250,imageHeight:295});return[th(Zi)]},Ne=>({titleFontSize:Ne.fontSizeHeading3,subtitleFontSize:Ne.fontSize,iconFontSize:Ne.fontSizeHeading3*3,extraMargin:`${Ne.paddingLG}px 0 0 0`}));const tc={success:Sh.Z,error:$u.Z,info:Xl.Z,warning:Cu},Kr={404:zc,500:vo,403:Ie},Oo=Object.keys(Kr),Ds=Ne=>{let{prefixCls:Ze,icon:qe,status:ci}=Ne;const Xi=We()(`${Ze}-icon`);if(Oo.includes(`${ci}`)){const wo=Kr[ci];return ot.createElement("div",{className:`${Xi} ${Ze}-image`},ot.createElement(wo,null))}const Zi=ot.createElement(tc[ci]);return qe===null||qe===!1?null:ot.createElement("div",{className:Xi},qe||Zi)},ll=Ne=>{let{prefixCls:Ze,extra:qe}=Ne;return qe?ot.createElement("div",{className:`${Ze}-extra`},qe):null},_r=Ne=>{let{prefixCls:Ze,className:qe,rootClassName:ci,subTitle:Xi,title:Zi,style:wo,children:$i,status:li="info",icon:Gi,extra:bo}=Ne;const{getPrefixCls:Qo,direction:Vo,result:Fo}=ot.useContext(fa.E_),fo=Qo("result",Ze),[Sr,Fr]=Rc(fo),Rr=We()(fo,`${fo}-${li}`,qe,Fo==null?void 0:Fo.className,ci,{[`${fo}-rtl`]:Vo==="rtl"},Fr),Br=Object.assign(Object.assign({},Fo==null?void 0:Fo.style),wo);return Sr(ot.createElement("div",{className:Rr,style:Br},ot.createElement(Ds,{prefixCls:fo,status:li,icon:Gi}),ot.createElement("div",{className:`${fo}-title`},Zi),Xi&&ot.createElement("div",{className:`${fo}-subtitle`},Xi),ot.createElement(ll,{prefixCls:fo,extra:bo}),$i&&ot.createElement("div",{className:`${fo}-content`},$i)))};_r.PRESENTED_IMAGE_403=Kr[403],_r.PRESENTED_IMAGE_404=Kr[404],_r.PRESENTED_IMAGE_500=Kr[500];var hr=_r,Na=Object.defineProperty,Hs=(Ne,Ze,qe)=>Ze in Ne?Na(Ne,Ze,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Ne[Ze]=qe,Qr=(Ne,Ze,qe)=>Hs(Ne,typeof Ze!="symbol"?Ze+"":Ze,qe);const{Paragraph:Js,Text:Qa}=da.default;class bu extends ot.Component{constructor(){super(...arguments),Qr(this,"state",{hasError:!1,error:null,errorInfo:null})}static getDerivedStateFromError(Ze){return{hasError:!0,error:Ze,errorInfo:null}}componentDidCatch(Ze,qe){console.log("\u6355\u83B7\u7684\u9519\u8BEF:",Ze),console.log("\u9519\u8BEF\u4FE1\u606F:",qe),this.setState({error:Ze,errorInfo:qe})}render(){var Ze,qe;return this.state.hasError?ot.createElement(hr,{status:"warning",title:"\u5F53\u524D\u6D4F\u89C8\u5668\u4F3C\u4E4E\u53D1\u751F\u4E86\u9519\u8BEF\uFF0C\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u5237\u65B0\u9875\u9762\u4EE5\u6062\u590D\u6B63\u5E38\u529F\u80FD\uFF01 ",subTitle:(Ze=this.state.error)==null?void 0:Ze.message,extra:[ot.createElement(Me.ZP,{type:"primary",key:"console",onClick:()=>window.location.reload()},"\u7ACB\u5373\u5237\u65B0")]},ot.createElement("div",{className:"desc"},ot.createElement(Js,null,ot.createElement(Qa,{style:{fontSize:14}},"\u8BE6\u7EC6\u4FE1\u606F\uFF1A",ot.createElement("br",null),(qe=this.state.errorInfo)==null?void 0:qe.componentStack)))):this.props.children}}var Mr=bu,Bs=St(26278),Er="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAANCAYAAACgu+4kAAAAAXNSR0IArs4c6QAAALhJREFUOE+dkjEOgVEQhL8pRCNR0UlE5Qg6Z9C5gcIFUDmAEyhVWgqJBIVE4hwanUSlkpEn709EIe/ZcrPzZXZ2RWLZrkq6f48rRW+7DWyBjqTrpyYJEAS2x0AP6Ep6FJBkQIQsgDLQl+TQywUE8R7YSZpmA6KLOnAGJpKWsv228kfdgEbWCtFBCzgCQ0mrLIDtGnACZpLmWRnYrgAHYFMEmAywXQLWwEXSIPuRbDeBUdz7mQ34daEX5wM7Fb5x5tMAAAAASUVORK5CYII=",Ur=St(9936),na=St(78110),mr=St(59301),Lr=Object.defineProperty,au=Object.getOwnPropertySymbols,Bo=Object.prototype.hasOwnProperty,Sd=Object.prototype.propertyIsEnumerable,yr=(Ne,Ze,qe)=>Ze in Ne?Lr(Ne,Ze,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Ne[Ze]=qe,cg=(Ne,Ze)=>{for(var qe in Ze||(Ze={}))Bo.call(Ze,qe)&&yr(Ne,qe,Ze[qe]);if(au)for(var qe of au(Ze))Sd.call(Ze,qe)&&yr(Ne,qe,Ze[qe]);return Ne},xh=(Ne,Ze)=>{var qe={};for(var ci in Ne)Bo.call(Ne,ci)&&Ze.indexOf(ci)<0&&(qe[ci]=Ne[ci]);if(Ne!=null&&au)for(var ci of au(Ne))Ze.indexOf(ci)<0&&Sd.call(Ne,ci)&&(qe[ci]=Ne[ci]);return qe};const ec=Ne=>{var Ze=Ne,{loading:qe,children:ci,globalSetting:Xi,user:Zi,account:wo}=Ze,$i=xh(Ze,["loading","children","globalSetting","user","account"]),li,Gi,bo,Qo,Vo,Fo,fo,Sr;const Fr=(0,fe.useLocation)(),[Rr,Br]=(0,ot.useState)(!1);return(0,ot.useEffect)(()=>{let Ga=qt()().add(0,"days").unix(),Za=localStorage.getItem("mainclose");if(!Za){Br(!0);return}Ga>parseInt(Za)&&Br(!0)},[]),mr.createElement(Mr,null,mr.createElement(Tt.ZP,{locale:ae.Z,autoInsertSpaceInButton:!1},Fr.pathname==="/"&&Rr&&((Gi=(li=Xi==null?void 0:Xi.setting)==null?void 0:li.adv_index)==null?void 0:Gi.image_url)&&((bo=Xi==null?void 0:Xi.setting)==null?void 0:bo.main_site)&&mr.createElement("div",{onClick:()=>{var Ga,Za;return window.open((Za=(Ga=Xi==null?void 0:Xi.setting)==null?void 0:Ga.adv_index)==null?void 0:Za.jump_url)},style:{background:`url(${He.Z.IMG_SERVER+((Vo=(Qo=Xi==null?void 0:Xi.setting)==null?void 0:Qo.adv_index)==null?void 0:Vo.image_url)}) no-repeat center center`,width:"100%",height:60,margin:"0px auto",display:"flex",cursor:"pointer",backgroundSize:"cover"}},mr.createElement("div",{style:{width:1200,margin:"0px auto",height:60,display:"flex",alignItems:"center",justifyContent:"space-between"}},mr.createElement("div",{style:{fontSize:24,fontWeight:"bold",color:"#fff",visibility:"hidden"}},"\u3010\u8BA1\u7B97\u673A\u5B66\u4E60\u4EA4\u6D41\u7FA4\u3011\u9886\u53D6C\u8BED\u8A00/Java/Python/\u7A0B\u5E8F\u7ADE\u8D5B\u8D44\u6599\uFF0C\u70B9\u51FB\u52A0\u5165"),mr.createElement("div",{onClick:()=>{window.open("https://mp.weixin.qq.com/s/31gNJVLlG1nTymoyL1uUJA")},style:{visibility:"hidden",width:"104px",height:"30px",borderRadius:15,display:"flex",alignItems:"center",justifyContent:"center",color:"#FFFFFF",cursor:"pointer",background:"linear-gradient(270deg, #FF4C00 0%, #FF9C01 100%)"}},"\u67E5\u770B\u8BE6\u60C5 ",mr.createElement("img",{src:Er,style:{marginLeft:5}}))),mr.createElement("img",{src:Ur,onClick:Ga=>{Ga.stopPropagation(),localStorage.setItem("mainclose",qt()().add(1,"days").unix()+""),Br(!1)},style:{width:16,height:16,marginRight:6,marginTop:6,cursor:"pointer"}})),document.domain!=="kepukehuan.educoder.net"&&mr.createElement($e.Z,cg({},$i)),mr.createElement("section",{className:Bs.Z.layoutMainClass,style:{marginTop:Fr.pathname=="/training"?"-72px":""}},mr.createElement(fe.Outlet,null)),mr.createElement(ie,null),!(0,nt.Ll)()&&document.domain!=="kepukehuan.educoder.net"&&mr.createElement(yt,null),mr.createElement(ge,null),mr.createElement(wn,null),mr.createElement(ln,null),mr.createElement(jt,null),mr.createElement(Rn,null),wo.actionTabs.key==="Account-ProfessionalAuth"&&((fo=(Fo=wo.actionTabs)==null?void 0:Fo.code)==null?void 0:fo.length)>0&&mr.createElement(na.Z,{Scoid:(Sr=Zi==null?void 0:Zi.userInfo)==null?void 0:Sr.user_school_id}),!(0,nt.Ll)()&&mr.createElement(ro,null),mr.createElement(ps,null)))};var xd=(0,fe.connect)(({loading:Ne,globalSetting:Ze,user:qe,account:ci})=>({loading:Ne,user:qe,globalSetting:Ze,account:ci}))(ec)},78110:function(un,Yn,St){"use strict";St.d(Yn,{Z:function(){return Fn}});var ot=St(59301),Tt=St(89070),ae=St(57809),$e=St(54580),fe=St(78241),ve=St(8591),qt=St(43418),Oe=St(95237),de=St(43604),Ce=St(71418),xe=St(92832),ze=St(88522),He=St(3113),Ft=St(3294),nt=St(51941),et=St(56615),ct=St(955),ut=St(60302),pt=St(19842),yt=St(29679),Pt=St(19248),bt=St(16979),Rt={flexRow:"flexRow___jGYtM",flexColumn:"flexColumn___NPMB3",formWrap:"formWrap___vwH9N",example:"example____BmJC",footerWrap:"footerWrap___lp1L0"},Ut=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ie=(mn,Dn)=>{var rn={};for(var ce in mn)ee.call(mn,ce)&&Dn.indexOf(ce)<0&&(rn[ce]=mn[ce]);if(mn!=null&&Ut)for(var ce of Ut(mn))Dn.indexOf(ce)<0&&re.call(mn,ce)&&(rn[ce]=mn[ce]);return rn},Me=(mn,Dn,rn)=>new Promise((ce,Kt)=>{var we=ln=>{try{ke(rn.next(ln))}catch(Dt){Kt(Dt)}},Ee=ln=>{try{ke(rn.throw(ln))}catch(Dt){Kt(Dt)}},ke=ln=>ln.done?ce(ln.value):Promise.resolve(ln.value).then(we,Ee);ke((rn=rn.apply(mn,Dn)).next())});const pe=(mn,Dn)=>Dn.some(rn=>rn.label.toLowerCase().indexOf(mn.toLowerCase())>-1),Le=xe.default.TextArea,ge=mn=>{var Dn=mn,{account:rn,globalSetting:ce,loading:Kt,dispatch:we,schoolName:Ee,visible:ke,onClose:ln=()=>{},onSuccess:Dt=()=>{}}=Dn,wt=ie(Dn,["account","globalSetting","loading","dispatch","schoolName","visible","onClose","onSuccess"]);const[At]=fe.default.useForm();(0,ot.useEffect)(()=>{At.setFieldsValue({name:Ee})},[Ee]);const Bt=jt=>Me(void 0,null,function*(){const{name:Mt,city:Ae=[],address:En,remarks:Rn}=jt||{},Pn=yield we({type:"account/appplySchool",payload:{name:Mt,province:Ae[0],city:Ae[1],address:En,remarks:Rn}});ln(),Pn&&(ve.ZP.success("\u65B0\u589E\u5B66\u6821/\u5355\u4F4D\u6210\u529F\uFF01"),Dt(Mt))});return ot.createElement(qt.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:ke,title:"\u7533\u8BF7\u6DFB\u52A0\u5355\u4F4D\u540D\u79F0",width:"600px",footer:null},ot.createElement(fe.default,{className:Rt.formWrap,form:At,labelCol:{span:4},wrapperCol:{span:20},onFinish:Bt},ot.createElement(fe.default.Item,{label:"\u5355\u4F4D\u5168\u79F0\uFF1A",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"}]},ot.createElement(xe.default,{placeholder:"\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"})),ot.createElement("div",{className:`${Rt.flexRow} ${Rt.example}`},ot.createElement("div",null,"\u793A\u4F8B\uFF1A"),ot.createElement("div",{className:Rt.flexColumn},ot.createElement("div",null,ot.createElement(yt.Z,{style:{color:"rgb(82, 196, 26)"}}),ot.createElement("span",{className:"font14 ml5"},"\u6B63\u786E\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u6784")),ot.createElement("div",null,ot.createElement(Pt.Z,{style:{color:"red"}}),ot.createElement("span",{className:"font14 ml5"},"\u9519\u8BEF\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u67842019\u6625")))),ot.createElement(fe.default.Item,{label:"\u5730\u533A\uFF1A",name:"city"},ot.createElement(pt.Z,{allowClear:!0,size:"middle",options:bt.P,placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u5730",showSearch:{matchInputWidth:!0,filter:pe}})),ot.createElement(fe.default.Item,{label:"\u8BE6\u7EC6\u5730\u5740\uFF1A",name:"address"},ot.createElement(xe.default,{placeholder:"\u8BF7\u586B\u5199\u5B8C\u6574\u7684\u5730\u5740\u4FE1\u606F"})),ot.createElement(fe.default.Item,{label:"\u8BF4\u660E\uFF1A",name:"remarks"},ot.createElement(Le,{placeholder:"\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"})),ot.createElement("div",{className:Rt.footerWrap},ot.createElement(fe.default.Item,null,ot.createElement(He.ZP,{className:"mr5",size:"middle",onClick:()=>{ln()}},"\u53D6\u6D88"),ot.createElement(He.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:Kt["account/appplySchool"]},"\u4FDD\u5B58")))))};var je=(0,Tt.connect)(({account:mn,loading:Dn,globalSetting:rn})=>({account:mn,globalSetting:rn,loading:Dn.effects}))(ge),Je=St(1),Cn=St(89392),hn=St(59301),Xn=Object.defineProperty,Fe=Object.defineProperties,Zt=Object.getOwnPropertyDescriptors,Ye=Object.getOwnPropertySymbols,kn=Object.prototype.hasOwnProperty,Tn=Object.prototype.propertyIsEnumerable,Be=(mn,Dn,rn)=>Dn in mn?Xn(mn,Dn,{enumerable:!0,configurable:!0,writable:!0,value:rn}):mn[Dn]=rn,be=(mn,Dn)=>{for(var rn in Dn||(Dn={}))kn.call(Dn,rn)&&Be(mn,rn,Dn[rn]);if(Ye)for(var rn of Ye(Dn))Tn.call(Dn,rn)&&Be(mn,rn,Dn[rn]);return mn},Ke=(mn,Dn)=>Fe(mn,Zt(Dn)),jn=(mn,Dn)=>{var rn={};for(var ce in mn)kn.call(mn,ce)&&Dn.indexOf(ce)<0&&(rn[ce]=mn[ce]);if(mn!=null&&Ye)for(var ce of Ye(mn))Dn.indexOf(ce)<0&&Tn.call(mn,ce)&&(rn[ce]=mn[ce]);return rn},Wn=(mn,Dn,rn)=>new Promise((ce,Kt)=>{var we=ln=>{try{ke(rn.next(ln))}catch(Dt){Kt(Dt)}},Ee=ln=>{try{ke(rn.throw(ln))}catch(Dt){Kt(Dt)}},ke=ln=>ln.done?ce(ln.value):Promise.resolve(ln.value).then(we,Ee);ke((rn=rn.apply(mn,Dn)).next())});const An=ae.default.Option,oe=$e.default.Dragger;var cn=(mn=>(mn[mn.Professor=1]="Professor",mn[mn.AssistantProfessor=2]="AssistantProfessor",mn[mn.Student=3]="Student",mn))(cn||{});const wn=mn=>{var Dn=mn,{user:rn,account:ce,globalSetting:Kt,loading:we,dispatch:Ee,Scoid:ke}=Dn,ln=jn(Dn,["user","account","globalSetting","loading","dispatch","Scoid"]),Dt,wt;const[At]=fe.default.useForm(),[Bt,jt]=(0,ot.useState)({}),[Mt,Ae]=(0,ot.useState)([]),[En,Rn]=(0,ot.useState)([]),[Pn,$n]=(0,ot.useState)([]),[xi,Fi]=(0,ot.useState)([]),[Bi,Ji]=(0,ot.useState)(),[ro,Eo]=(0,ot.useState)(),[Zo,Lo]=(0,ot.useState)(),[qn,$t]=(0,ot.useState)(),[tn,Jn]=(0,ot.useState)(),zt=(0,ot.useRef)((0,Cn.throttle)(Yt=>Mn(Yt),1200,{leading:!0,trailing:!0})).current;(0,ot.useEffect)(()=>{},[]),(0,ot.useEffect)(()=>{Wn(void 0,null,function*(){if(!ke)return;const Yt=yield le(ke);$n(Yt==null?void 0:Yt.departments)})},[ke]);const Mn=Yt=>Wn(void 0,null,function*(){var Vt,Ve;const an=yield Ee({type:"account/getSchoolOption",payload:{keyword:Yt,limit:10}});Ae(an==null?void 0:an.schools),Yt&&Yt!=""&&(Rn((Vt=an==null?void 0:an.schools)==null?void 0:Vt.filter(We=>We.name.includes(Yt))),(((Ve=an==null?void 0:an.schools)==null?void 0:Ve.find(We=>We.name===Yt))||{}).id?Te(Yt,null,an==null?void 0:an.schools):(At.setFieldsValue({department:""}),jt(be(be({},Bt),{school:Yt,department:""}))))}),le=Yt=>{if(Yt)return Ee({type:"account/getDepartmentOption",payload:{id:Yt}})};(0,ot.useEffect)(()=>{if(!ce.basicInfo)return;const{basicInfo:Yt}=ce,Vt={identity:Yt.identity,school:Yt.school_name,department:Yt.department_name,studentNo:Yt.student_id,jobTitle:Yt.identity=="teacher"?Yt.technical_title:"\u6559\u6388",manager:Yt.identity=="professional"?Yt.technical_title:"\u4F01\u4E1A\u7BA1\u7406\u8005"};At.setFieldsValue(Vt),jt(Vt)},[ce.basicInfo]);const Ct=()=>{$t(!0)},vn=()=>{if(!Mt.find(Yt=>Yt.name===Bt.school)){ve.ZP.info("\u8BF7\u5148\u9009\u62E9\u6B63\u786E\u7684\u5355\u4F4D\u6216\u8005\u5B66\u6821\uFF01");return}Jn(!0)},Hn=Yt=>{jt(be({},At.getFieldsValue())),"school"in Yt&&(Rn(Mt.filter(Ve=>Ve.name.includes(Yt.school))),(Mt.find(Ve=>Ve.name===Yt.school)||{}).id?Te(Yt.school):(At.setFieldsValue({department:""}),jt(be(be({},Bt),{school:Yt.school,department:""}))))},Qt=(Yt,Vt)=>{if(ce.actionTabs.checkedList.includes(1)){qt.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:hn.createElement("div",{className:"tc"},Vt||"\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838"),onOk:()=>{window.location.href=`/classrooms/${Yt}/students`}});return}window.location.href=`/classrooms/${Yt}/students`},Te=(Yt,Vt,Ve)=>Wn(void 0,null,function*(){var an,pn,We;const Sn=(an=(Ve||Mt).find(Qe=>Qe.name===Yt))==null?void 0:an.id,ai=(yield le(Sn))||{};$n(ai==null?void 0:ai.departments);const gn=Vt||((We=(pn=ai==null?void 0:ai.departments)==null?void 0:pn[0])==null?void 0:We.name);At.setFieldsValue({department:gn}),jt(be(be({},Bt),{school:Yt,department:gn}))}),Re=Yt=>Wn(void 0,null,function*(){yield Mn(),At.setFieldsValue({school:Yt,department:""}),jt(be(be({},Bt),{school:Yt,department:""}))}),_e=Yt=>{var Vt;if(Yt.file.status==="uploading"){Lo(!0);return}Yt.file.status==="done"&&(console.log(Yt.file,Yt.file.response),Eo((Vt=Yt.file.response)==null?void 0:Vt.id),(0,ct.y3)(Yt.file.originFileObj,Ve=>{Ji(Ve),Lo(!1)}))},me=Yt=>Wn(void 0,null,function*(){var Vt,Ve,an,pn,We;const{school:Sn,department:ai,identity:gn,studentNo:Qe,jobTitle:Xt,manager:dn}=Yt||{};if(!Bi){ve.ZP.info("\u8BF7\u5148\u4E0A\u4F20\u7167\u7247\uFF01");return}const De=(Vt=Mt.find(fn=>fn.name===Sn))==null?void 0:Vt.id,Xe=(Ve=Pn.find(fn=>fn.name===ai))==null?void 0:Ve.id;let he;gn==="student"?he=Qe:gn==="teacher"?he=Xt:he=dn;const Pe=yield Ee({type:"account/applyProfessionalAuth",payload:{id:((an=ce.basicInfo)==null?void 0:an.id)||((pn=rn.userInfo)==null?void 0:pn.login),school_id:De,department_id:Xe,identity:gn,extra:he,attachment_ids:[ro]}});if(ce.actionTabs.code){let fn=yield(0,Je.cR)({invite_code:ce.actionTabs.code,professor:ce.actionTabs.checkedList.includes(1)?1:null,assistant_professor:ce.actionTabs.checkedList.includes(2)?1:null,student:ce.actionTabs.checkedList.includes(3)?1:null});fn.message==="\u52A0\u5165\u6210\u529F"&&(fn!=null&&fn.course_id?Qt(fn.course_id,fn.message):ve.ZP.success(fn.message))}en(),Pe&&(ve.ZP.info("\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838!"),Ee({type:"account/getBasicInfo",payload:{login:(We=rn.userInfo)==null?void 0:We.login}}))}),en=()=>{Ee({type:"account/setActionTabs",payload:{}})},te={data:{type:"professional"},multiple:!0,showUploadList:!1,action:`${Ft.Z.API_SERVER}/api/attachments.json`,className:et.Z.uploader,onChange:_e,beforeUpload:Yt=>{const Vt=Yt.type==="image/jpeg"||Yt.type==="image/png"||Yt.type==="image/jpg"||Yt.type==="image/bmp";return Vt||ve.ZP.info("\u8BF7\u4E0A\u4F20\u6B63\u786E\u6587\u4EF6\u683C\u5F0F"),Vt}};return hn.createElement(qt.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,className:et.Z.modal,open:ce.actionTabs.key==="Account-ProfessionalAuth",title:hn.createElement(Oe.Z,{style:{padding:"25px"},align:"middle",justify:"space-between"},hn.createElement(de.Z,null,"\u804C\u4E1A\u8BA4\u8BC1"),hn.createElement(de.Z,null,hn.createElement("i",{className:"iconfont icon-guanbi11",style:{color:"#979797",cursor:"pointer"},onClick:en}))),width:"660px",footer:null},hn.createElement(Ce.Z,{spinning:!!Zo},hn.createElement(fe.default,{className:et.Z.formWrap,form:At,colon:!1,onValuesChange:Hn,onFinish:me},hn.createElement(Oe.Z,{gutter:[10,0]},hn.createElement(de.Z,{flex:"300px"},hn.createElement(fe.default.Item,{label:"\u804C\u4E1A",name:"identity",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u4E1A"}]},hn.createElement(ae.default,null,hn.createElement(An,{value:"teacher"},"\u6559\u5E08"),hn.createElement(An,{value:"student"},"\u5B66\u751F"),hn.createElement(An,{value:"professional"},"\u4E13\u4E1A\u4EBA\u58EB")))),Bt.identity==="student"&&hn.createElement(de.Z,{flex:"200px"},hn.createElement(fe.default.Item,{initialValue:Bt.studentNo,name:"studentNo",rules:[{required:!0,message:"\u8BF7\u5148\u8F93\u5165\u5B66\u53F7"}]},hn.createElement(xe.default,{type:"text",placeholder:"\u8BF7\u8F93\u5165\u5B66\u53F7"}))),Bt.identity==="teacher"&&hn.createElement(de.Z,{flex:"200px"},hn.createElement(fe.default.Item,{initialValue:Bt.jobTitle,name:"jobTitle",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u79F0"}]},hn.createElement(ae.default,null,hn.createElement(An,{value:"\u6559\u6388"},"\u6559\u6388"),hn.createElement(An,{value:"\u526F\u6559\u6388"},"\u526F\u6559\u6388"),hn.createElement(An,{value:"\u8BB2\u5E08"},"\u8BB2\u5E08"),hn.createElement(An,{value:"\u52A9\u6559"},"\u52A9\u6559")))),Bt.identity==="professional"&&hn.createElement(de.Z,{flex:"200px"},hn.createElement(fe.default.Item,{initialValue:Bt.manager,name:"manager",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u79F0"}]},hn.createElement(ae.default,null,hn.createElement(An,{value:"\u4F01\u4E1A\u7BA1\u7406\u8005"},"\u4F01\u4E1A\u7BA1\u7406\u8005"),hn.createElement(An,{value:"\u90E8\u95E8\u7BA1\u7406\u8005"},"\u90E8\u95E8\u7BA1\u7406\u8005"),hn.createElement(An,{value:"\u9AD8\u7EA7\u5DE5\u7A0B\u5E08"},"\u9AD8\u7EA7\u5DE5\u7A0B\u5E08"),hn.createElement(An,{value:"\u5DE5\u7A0B\u5E08"},"\u5DE5\u7A0B\u5E08"),hn.createElement(An,{value:"\u52A9\u7406\u5DE5\u7A0B\u5E08"},"\u52A9\u7406\u5DE5\u7A0B\u5E08"))))),hn.createElement(fe.default.Item,{label:"\u5B66\u6821/\u5355\u4F4D",name:"school",extra:Bt.school&&!(Mt!=null&&Mt.find(Yt=>Yt.name===Bt.school))&&hn.createElement("div",{className:et.Z.schoolHintWrap},hn.createElement("span",{className:et.Z.colorCDCDCD},"\u672A\u627E\u5230\u5305\u542B\u201C",Bt.school,"\u201D\u7684\u9AD8\u6821\uFF0C"),hn.createElement("span",{className:`${et.Z.color0152d9} current`,onClick:Ct},"\u7533\u8BF7\u65B0\u589E")),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u5B66\u6821/\u5355\u4F4D"}]},hn.createElement(ze.Z,{showSearch:!0,onSearch:zt,options:En==null?void 0:En.map(Yt=>({value:Yt.name}))})),hn.createElement(fe.default.Item,{label:"\u9662\u7CFB/\u90E8\u95E8",name:"department",extra:Bt.department&&!(Pn!=null&&Pn.find(Yt=>Yt.name===Bt.department))&&hn.createElement("div",{className:et.Z.schoolHintWrap},hn.createElement("span",{className:et.Z.colorCDCDCD},Bt.department?`\u672A\u627E\u5230\u5305\u542B\u201C${Bt.department}\u201D\u7684\u9AD8\u6821\uFF0C`:"\u672A\u627E\u5230\u9662\u7CFB\uFF0C"),hn.createElement("span",{className:`${et.Z.color0152d9} current`,onClick:vn},"\u7533\u8BF7\u65B0\u589E")),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u9662\u7CFB/\u90E8\u95E8"}]},hn.createElement(ze.Z,{showSearch:!0,onChange:Yt=>Fi(Pn.filter(Vt=>Vt.name.includes(Yt))),options:xi==null?void 0:xi.map(Yt=>({value:Yt.name}))})),hn.createElement(fe.default.Item,{label:"\u804C\u4E1A\u8BC1\u4E0A\u4F20"},hn.createElement("div",{className:et.Z.flexRow},hn.createElement("div",{className:et.Z.flexColumn},hn.createElement(oe,Ke(be({},te),{accept:".png,.jpg,.bmp,.jpeg"}),Bi?hn.createElement("img",{src:Bi,className:et.Z.uploadImg}):hn.createElement("div",{className:et.Z.imageTip},hn.createElement("p",null,hn.createElement("i",{className:`iconfont icon-cuban2shangchuanyunduan ${et.Z.uploadTipIcon}`})),hn.createElement("p",{className:et.Z.uploadTip},hn.createElement("a",{className:et.Z.color05101a},"\u70B9\u51FB\u6216\u62D6\u62FD\u4E0A\u4F20\u56FE\u7247")))),hn.createElement("span",{className:"tc"},hn.createElement("p",{className:et.Z.viewLargerImg},"\u67E5\u770B\u5927\u56FE"))),hn.createElement("div",{className:`${et.Z.flexColumn} ${et.Z.example}`},hn.createElement("span",{className:et.Z.exampleImg},hn.createElement("img",{src:nt})),hn.createElement("span",{className:"tc"},hn.createElement("p",null,"\u793A\u4F8B\u56FE\u7247"),hn.createElement("p",{className:`${et.Z.colorOrange} font12`},"\uFF08png/jpg/bmp\u683C\u5F0F\uFF0C\u4E0D\u8D85\u8FC72MB\uFF09"))))),hn.createElement("div",{className:et.Z.footerWrap},hn.createElement(fe.default.Item,null,hn.createElement(He.ZP,{className:"mr5",size:"middle",onClick:en},"\u53D6\u6D88"),hn.createElement(He.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:we["account/applyProfessionalAuth"]},"\u4FDD\u5B58"))),hn.createElement("div",{className:et.Z.note},hn.createElement("p",null,"\u8BA4\u8BC1\u987B\u77E5\uFF1A"),hn.createElement("p",null,"1.\u6839\u636E\u804C\u4E1A\u4E0A\u4F20\u76F8\u5E94\u7684\u8BC1\u4EF6\u7167\uFF1A\u6559\u5E08\uFF08\u6559\u5E08\u8BC1\uFF09\uFF0C\u4E13\u4E1A\u4EBA\u58EB\uFF08\u5458\u5DE5\u8BC1\uFF09\u3001\u5B66\u751F\uFF08\u5B66\u751F\u8BC1\uFF09\uFF0C\u8BF7\u786E\u4FDD\u8BC1\u4EF6\u7167\u5185\u5BB9\u5B8C\u6574\u5E76\u4E14\u6E05\u6670\u53EF\u89C1\uFF0C\u4E25\u7981PS\uFF1B"),hn.createElement("p",null,"2.\u6211\u4EEC\u5C06\u5728\u4F60\u63D0\u4EA4\u804C\u4E1A\u8BC1\u4FE1\u606F\u540E\u768424\u5C0F\u65F6\uFF08\u4E0D\u5305\u542B\u8282\u5047\u65E5\uFF09\u5185\u5B8C\u6210\u5BA1\u6838\uFF0C\u5BA1\u6838\u7ED3\u679C\u5C06\u4F1A\u4EE5\u7CFB\u7EDF\u6D88\u606F\u7684\u5F62\u5F0F\u53D1\u9001\u7ED9\u4F60\uFF1B"),hn.createElement("p",null,"3.\u804C\u4E1A\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u65E0\u6CD5\u5220\u9664\uFF0C\u8BF7\u8C28\u614E\u586B\u5199\uFF1B\u804C\u4E1A\u53D8\u66F4\u8BF7\u9009\u62E9\u91CD\u65B0\u8BA4\u8BC1\uFF1B"),hn.createElement("p",null,"4.\u804C\u4E1A\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u7CFB\u7EDF\u5C06\u81EA\u52A8\u53D1\u653E500\u4E2A\u91D1\u5E01\u4F5C\u4E3A\u5956\u52B1\uFF1B"),hn.createElement("p",null,"5.\u6211\u4EEC\u4F1A\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u7684\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732\uFF1B"),hn.createElement("p",null,"6.\u5982\u5B58\u5728\u6076\u610F\u4E71\u586B\u5199\u59D3\u540D\uFF0C\u5B66\u53F7\uFF0C\u53CA\u4E0A\u4F20\u4E0E\u804C\u4E1A\u8BC1\u4EF6\u65E0\u5173\u56FE\u7247\u8005\uFF0C\u4E00\u7ECF\u53D1\u73B0\u5C06\u51BB\u7ED3",!((Dt=Kt==null?void 0:Kt.setting)!=null&&Dt.is_local)&&"EduCoder","\u8D26\u53F7\u3002"),hn.createElement("p",null,"7.\u975E\u8001\u5E08\u8EAB\u4EFD\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1\u540E\u7CFB\u7EDF\u4F1A\u81EA\u52A8\u5C06\u72B6\u6001\u6539\u4E3A\u5DF2\u8BA4\u8BC1\uFF0C\u4F60\u5C06\u53EF\u4EE5\u4F53\u9A8C\u5E73\u53F0\u9700\u8981\u804C\u4E1A\u8BA4\u8BC1\u7684\u529F\u80FD\uFF1B\u5982\u679C\u5728\u8BA4\u8BC1\u540E\u7684\u4F7F\u7528\u8FC7\u7A0B\u4E2D\u672A\u901A\u8FC7\u5BA1\u6838\uFF0C\u4F60\u5C06\u4E0D\u80FD\u7EE7\u7EED\u4F53\u9A8C\u9700\u8981\u8BA4\u8BC1\u7684\u529F\u80FD\u3002")))),hn.createElement(je,{visible:qn,onClose:()=>$t(!1),schoolName:Bt.school,onSuccess:Re}),hn.createElement(ut.Z,{visible:tn,onClose:()=>Jn(!1),schoolId:(wt=Mt.find(Yt=>Yt.name===Bt.school))==null?void 0:wt.id,schoolName:Bt.school,departmentName:Bt.department,onSuccess:Yt=>Te(Bt.school,Yt)}))};var Fn=(0,Tt.connect)(({user:mn,account:Dn,loading:rn,globalSetting:ce})=>({user:mn,account:Dn,globalSetting:ce,loading:rn.effects}))(wn)},79285:function(un,Yn,St){"use strict";St.d(Yn,{Z:function(){return Be}});var ot=St(59301),Tt=St(78241),ae=St(8591),$e=St(43418),fe=St(99313),ve=St(57809),qt=St(19842),Oe=St(98228),de=St(92832),Ce=St(1710),xe=St(6848),ze=St(58421),He=St(3113),Ft=St(99064),nt={flex_box_center:"flex_box_center___kuaVT",flex_space_between:"flex_space_between___exKHH",flex_box_vertical_center:"flex_box_vertical_center___BzvkN",flex_box_center_end:"flex_box_center_end___Ss2DJ",flex_box_column:"flex_box_column___p1LEr",scoremodal:"scoremodal___upTFR",selectWrapper:"selectWrapper___HH3RX",selectWrappers:"selectWrappers___fUWwr",allqingchu:"allqingchu___BFF1D",title:"title___hFasb",score:"score___DXG3o",close:"close___kEIiB",content:"content___Mco8L",items:"items___j98jk",bottom:"bottom___A1n1C",yes:"yes___P1zzb",no:"no___xZqXd",titlecount:"titlecount___fqA9P",add:"add___MqV0R",search:"search___NREgv",searchIcon:"searchIcon___qny3A",tabWrap:"tabWrap___dR18c",previewModal:"previewModal___uSiGS",q_title:"q_title___a9NY9"},et=St(26422),ct={flex_box_center:"flex_box_center___nnwwA",flex_space_between:"flex_space_between___cRir9",flex_box_vertical_center:"flex_box_vertical_center___FqTZ8",flex_box_center_end:"flex_box_center_end___WU5_v",flex_box_column:"flex_box_column___QZFa1",warp:"warp___aLZwN",shixunbutton:"shixunbutton___Eoa1i",redio:"redio___LJ4js",redioitem:"redioitem___YicCC",redioitemyes:"redioitemyes___lX4Nr",title:"title___pi1jH",titleyes:"titleyes___jiEh7",yestag:"yestag___DLWoP",qcount:"qcount___U9kkL",score:"score___vLK4B",qtitle:"qtitle___kyg0t",checkbox:"checkbox___vjiBw",checkboxitem:"checkboxitem___HW3CP",checkboxitemyes:"checkboxitemyes___kpjek",bottom:"bottom___uG8Zq",bottomitem:"bottomitem___TnJQQ",left:"left___M8WXX",right:"right____dkCI",completion:"completion___H6RmA",content:"content___a2hGC",items:"items___D8mLd",simple:"simple___fQ0OS",shixun:"shixun___nB6Jk",combination:"combination___YrOdz",program:"program___lG0JA"},ut=St(85149),pt=St(955),yt=St(24334);const Pt=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"];var Rt=({qitem:be})=>{var Ke,jn,Wn,An,oe,cn,wn,Fn,mn,Dn;return ot.createElement("div",{className:ct.warp},ot.createElement("div",{className:ct.mainPart},ot.createElement("div",{className:ct.qcount},(be==null?void 0:be.question_type)===8&&ot.createElement(ut.Z,{className:ct.content,showProgramFill:!0,value:(Ke=be==null?void 0:be.program_attr)==null?void 0:Ke.description}),(be==null?void 0:be.question_type)!=8&&ot.createElement(ut.Z,{className:ct.qtitle,value:(be==null?void 0:be.name)||(be==null?void 0:be.title)})),((be==null?void 0:be.question_type)===0||(be==null?void 0:be.question_type)===2)&&ot.createElement("div",null,(jn=be==null?void 0:be.choices)==null?void 0:jn.map((rn,ce)=>ot.createElement("div",{className:ct.redio},!(rn!=null&&rn.is_answer)&&ot.createElement("span",{className:ct.redioitem}),(rn==null?void 0:rn.is_answer)&&ot.createElement("i",{className:`${ct.redioitemyes} icon-duigou1`}),ot.createElement(ut.Z,{className:rn!=null&&rn.is_answer?ct.titleyes:ct.title,value:Pt[ce]+(rn==null?void 0:rn.choice_text)}),(rn==null?void 0:rn.is_answer)&&ot.createElement("div",{className:ct.yestag},"\u6B63\u786E\u7B54\u6848")))),(be==null?void 0:be.question_type)===1&&ot.createElement("div",null,(Wn=be==null?void 0:be.choices)==null?void 0:Wn.map((rn,ce)=>ot.createElement("div",{className:ct.checkbox},!(rn!=null&&rn.is_answer)&&ot.createElement("span",{className:ct.checkboxitem}),(rn==null?void 0:rn.is_answer)&&ot.createElement("i",{className:`${ct.checkboxitemyes} icon-duigou1`}),ot.createElement(ut.Z,{className:rn!=null&&rn.is_answer?ct.titleyes:ct.title,value:Pt[ce]+(rn==null?void 0:rn.choice_text)}),(rn==null?void 0:rn.is_answer)&&ot.createElement("div",{className:ct.yestag},"\u6B63\u786E\u7B54\u6848")))),(be==null?void 0:be.question_type)===3&&ot.createElement("div",{className:ct.completion},(An=be==null?void 0:be.standard_answer)==null?void 0:An.map((rn,ce)=>{var Kt;return ot.createElement("div",{style:{display:"flex"}},ot.createElement("span",{className:ct.title},"\u586B\u7A7A\u9879",ce+1),ot.createElement("div",{className:ct.content},(Kt=rn==null?void 0:rn.answer_text)==null?void 0:Kt.map((we,Ee)=>ot.createElement("div",{className:ct.items},we))))})),(be==null?void 0:be.question_type)===4&&ot.createElement("div",{className:ct.simple},ot.createElement("div",{className:ct.title},"\u53C2\u8003\u7B54\u6848"),ot.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(oe=be==null?void 0:be.answer_texts)!=null&&oe[0]?ot.createElement(ut.Z,{className:ct.content,value:(cn=be==null?void 0:be.answer_texts)==null?void 0:cn[0]}):ot.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),(be==null?void 0:be.question_type)===5&&((wn=be==null?void 0:be.challenge_names)==null?void 0:wn.map((rn,ce)=>ot.createElement("div",{className:ct.shixun},ot.createElement("span",{className:ct.qtitle},ot.createElement("span",{style:{marginRight:10}},"\u7B2C",(0,pt.EM)(ce+1),"\u9898"),rn)))),(be==null?void 0:be.question_type)===6&&ot.createElement("div",{className:ct.program},ot.createElement(ut.Z,{className:ct.content,value:((Fn=be==null?void 0:be.program_attr)==null?void 0:Fn.description)||"- -"})),(be==null?void 0:be.question_type)===7&&((mn=be==null?void 0:be.sub_item_banks)==null?void 0:mn.map((rn,ce)=>{var Kt,we,Ee,ke,ln;return ot.createElement("div",null,ot.createElement("div",{className:ct.combination},ot.createElement("span",{className:ct.qtitle},rn==null?void 0:rn.name)),ot.createElement("div",{className:ct.warp,style:{padding:"0px",paddingTop:20}},ot.createElement("div",null,((rn==null?void 0:rn.item_type)=="SINGLE"||(rn==null?void 0:rn.item_type)=="JUDGMENT")&&((Kt=rn==null?void 0:rn.choices)==null?void 0:Kt.map((Dt,wt)=>ot.createElement("div",{className:ct.redio},!(Dt!=null&&Dt.is_answer)&&ot.createElement("span",{className:ct.redioitem}),(Dt==null?void 0:Dt.is_answer)&&ot.createElement("i",{className:`${ct.redioitemyes} icon-duigou1`}),ot.createElement(ut.Z,{className:Dt!=null&&Dt.is_answer?ct.titleyes:ct.title,value:Pt[wt]+(Dt==null?void 0:Dt.choice_text)}),(Dt==null?void 0:Dt.is_answer)&&ot.createElement("div",{className:ct.yestag},"\u6B63\u786E\u7B54\u6848")))),(rn==null?void 0:rn.item_type)=="MULTIPLE"&&((we=rn==null?void 0:rn.choices)==null?void 0:we.map((Dt,wt)=>ot.createElement("div",{className:ct.checkbox},!(Dt!=null&&Dt.is_answer)&&ot.createElement("span",{className:ct.checkboxitem}),(Dt==null?void 0:Dt.is_answer)&&ot.createElement("i",{className:`${ct.checkboxitemyes} icon-duigou1`}),ot.createElement(ut.Z,{className:Dt!=null&&Dt.is_answer?ct.titleyes:ct.title,value:Pt[wt]+(Dt==null?void 0:Dt.choice_text)}),(Dt==null?void 0:Dt.is_answer)&&ot.createElement("div",{className:ct.yestag},"\u6B63\u786E\u7B54\u6848")))),(rn==null?void 0:rn.item_type)=="COMPLETION"&&ot.createElement("div",{className:ct.completion},(Ee=rn==null?void 0:rn.standard_answer)==null?void 0:Ee.map((Dt,wt)=>{var At;return ot.createElement("div",{style:{display:"flex"}},ot.createElement("span",{className:ct.title},"\u586B\u7A7A\u9879",wt+1),ot.createElement("div",{className:ct.content},(At=Dt==null?void 0:Dt.answer_text)==null?void 0:At.map((Bt,jt)=>ot.createElement("div",{className:ct.items},Bt))))})),(rn==null?void 0:rn.item_type)=="SUBJECTIVE"&&ot.createElement("div",{className:ct.simple},ot.createElement("div",{className:ct.title},"\u53C2\u8003\u7B54\u6848"),ot.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(ke=rn==null?void 0:rn.answer_texts)!=null&&ke[0]?ot.createElement(ut.Z,{className:ct.content,value:(ln=rn==null?void 0:rn.answer_texts)==null?void 0:ln[0]}):ot.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))))))})),(be==null?void 0:be.question_type)===8&&ot.createElement("div",null,ot.createElement(ut.Z,{disabledFill:!0,className:ct.content,showProgramFill:!0,value:yt.Base64.decode(((Dn=be==null?void 0:be.program_attr)==null?void 0:Dn.code)||"")})),(be==null?void 0:be.question_type)===5&&ot.createElement("div",{style:{background:"#F6F7F9",padding:"0px 20px",height:46,lineHeight:"46px",marginTop:40,display:"flex",alignItems:"center"}},ot.createElement("div",{style:{flex:1,alignItems:"center",display:"flex"}},ot.createElement("div",{style:{marginRight:30}},ot.createElement("span",{style:{marginRight:10}},"\u521B\u5EFA\u8005"),ot.createElement("span",{style:{color:"#000000"}},(be==null?void 0:be.author_name)||"- -")),ot.createElement("div",{style:{marginRight:30}},ot.createElement("span",{style:{marginRight:10}},"\u6240\u5C5E\u5355\u4F4D"),ot.createElement("span",{style:{color:"#000000"}},(be==null?void 0:be.author_school_name)||"- -")),ot.createElement("div",{style:{marginRight:30}},ot.createElement("span",{style:{marginRight:10}},"\u5B66\u4E60\u4EBA\u6570"),ot.createElement("span",{style:{color:"#000000"}},(be==null?void 0:be.study_count)||"0"))),ot.createElement("a",{className:ct.shixunbutton,href:`/shixuns/${be==null?void 0:be.identifier}/challenges?exercise=true`,target:"_blank"},ot.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u5B9E\u8BAD\u8BE6\u60C5"))),((be==null?void 0:be.question_type)<=4||[6,8].includes(be==null?void 0:be.question_type))&&ot.createElement("div",{className:ct.bottom},ot.createElement("div",{className:ct.bottomitem},ot.createElement("span",{className:ct.left},"\u89E3\u6790"),ot.createElement("span",{className:ct.right},be!=null&&be.analysis?ot.createElement(ut.Z,{value:be==null?void 0:be.analysis}):ot.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),ot.createElement("div",{className:ct.bottomitem},ot.createElement("span",{className:ct.left},"\u96BE\u5EA6"),ot.createElement("span",{className:ct.right},(be==null?void 0:be.difficulty)===1?"\u7B80\u5355":(be==null?void 0:be.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),ot.createElement("div",{className:ct.bottomitem},ot.createElement("span",{className:ct.left},"\u77E5\u8BC6\u70B9"),ot.createElement("span",{className:ct.right},be!=null&&be.tag_discipline?be==null?void 0:be.tag_discipline:ot.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")))))},Ut=St(86087),ee=St(84287),re=St(89070),ie=St(61485),Me=St(32570),pe=St(16149),Le=St(59301),ge=Object.defineProperty,je=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,Cn=Object.getOwnPropertySymbols,hn=Object.prototype.hasOwnProperty,Xn=Object.prototype.propertyIsEnumerable,Fe=(be,Ke,jn)=>Ke in be?ge(be,Ke,{enumerable:!0,configurable:!0,writable:!0,value:jn}):be[Ke]=jn,Zt=(be,Ke)=>{for(var jn in Ke||(Ke={}))hn.call(Ke,jn)&&Fe(be,jn,Ke[jn]);if(Cn)for(var jn of Cn(Ke))Xn.call(Ke,jn)&&Fe(be,jn,Ke[jn]);return be},Ye=(be,Ke)=>je(be,Je(Ke)),kn=(be,Ke,jn)=>new Promise((Wn,An)=>{var oe=Fn=>{try{wn(jn.next(Fn))}catch(mn){An(mn)}},cn=Fn=>{try{wn(jn.throw(Fn))}catch(mn){An(mn)}},wn=Fn=>Fn.done?Wn(Fn.value):Promise.resolve(Fn.value).then(oe,cn);wn((jn=jn.apply(be,Ke)).next())});const Tn=({setScoreShow:be,ScoreShow:Ke,onOk:jn,isshixuns:Wn,isloadings:An,dispatch:oe,isIntelligentAssistant:cn=!1,ispptModal:wn=!1,newExercisePaper:Fn,shixunsDetail:mn})=>{var Dn,rn,ce;let[Kt,we]=(0,ot.useState)({type:"0",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,bigmodel:cn,is_smart_plan:wn,group_id:[]}),[Ee,ke]=(0,ot.useState)([]),[ln,Dt]=(0,ot.useState)([]),[wt,At]=(0,ot.useState)([]),[Bt,jt]=(0,ot.useState)([]);const[Mt,Ae]=(0,ot.useState)(!1),[En]=Tt.default.useForm(),[Rn,Pn]=(0,ot.useState)(),[$n,xi]=(0,ot.useState)(!1);let[Fi,Bi]=(0,ot.useState)(Wn);const[Ji,ro]=(0,ot.useState)([]),[Eo,Zo]=(0,ot.useState)(0),[Lo,qn]=(0,ot.useState)(!0),[$t,tn]=(0,ot.useState)([]),[Jn,zt]=(0,ot.useState)([]),Mn=[{name:"\u5168\u90E8",value:"",question_type:0},{name:"\u5355\u9009\u9898",value:"SINGLE",question_type:0},{name:"\u591A\u9009\u9898",value:"MULTIPLE",question_type:1},{name:"\u5224\u65AD\u9898",value:"JUDGMENT",question_type:2},{name:"\u586B\u7A7A\u9898",value:"COMPLETION",question_type:3},{name:"\u7B80\u7B54\u9898",value:"SUBJECTIVE",question_type:4},{name:"\u5B9E\u8BAD\u9898",value:"SHIXUN",question_type:5},{name:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6},{name:"\u7EC4\u5408\u9898",value:"COMBINATION",question_type:7},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM",question_type:8}];let[le,Ct]=(0,ot.useState)({gg:{type:"1",page:1,updated_at:"",quotes:"",item_type:null,courseid:"",per_page:10,tag_discipline_id:null,difficulty:null,keyword:null},ttgx:{type:"3",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},scj:{type:"2",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null},wcjd:{type:"0",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},yx:{type:"5",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:null}});const vn=(0,ot.useRef)(new Set),Hn=(0,ot.useRef)(new Set),Qt=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],Te=[{name:"\u521D\u7EA7",value:1},{name:"\u4E2D\u7EA7",value:2},{name:"\u4E2D\u9AD8\u7EA7",value:3},{name:"\u9AD8\u7EA7",value:4}],Re=[{name:"\u672A\u53D1\u5E03",value:"unpublish"},{name:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{name:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],[_e,me]=(0,ot.useState)(!1),en=()=>{En.resetFields(),Fi=!1,Bi(!1),me(!1),En.submit()};(0,ot.useEffect)(()=>{var Qe,Xt,dn,De,Xe,he,Pe,fn,Di,oi;(((dn=(Xt=(Qe=Fn==null?void 0:Fn.editData)==null?void 0:Qe.exercise)==null?void 0:Xt.exist_item_bank_ids)==null?void 0:dn.length)>0||((he=(Xe=(De=Fn==null?void 0:Fn.editData)==null?void 0:De.exercise)==null?void 0:Xe.exist_item_bank_shixun_ids)==null?void 0:he.length)>0)&&zt([...(fn=(Pe=Fn==null?void 0:Fn.editData)==null?void 0:Pe.exercise)==null?void 0:fn.exist_item_bank_ids,...(oi=(Di=Fn==null?void 0:Fn.editData)==null?void 0:Di.exercise)==null?void 0:oi.exist_item_bank_shixun_ids])},[(rn=(Dn=Fn==null?void 0:Fn.editData)==null?void 0:Dn.exercise)==null?void 0:rn.exist_item_bank_ids]),(0,ot.useEffect)(()=>{Ke&&(En.setFieldsValue({item_type:"",courseid:"",tag_discipline_id:null,difficulty:null,keyword:null}),Lo&&Fi&&(En.setFieldsValue({item_type:"SHIXUN"}),Kt.item_type="SHIXUN",we(Zt({},Kt)),qn(!1)),te(Kt),Yt(),Vt({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}))},[Ke]),(0,ot.useEffect)(()=>{Eo>0&&setTimeout(()=>{Zo(0)},2e3)},[Eo]);function te(Qe){return kn(this,null,function*(){var Xt,dn,De;if(Ae(!0),we(Zt({},Qe)),(wt==null?void 0:wt.length)<=0&&Qe.type==="5"){jt([]),Ae(!1);return}console.log("----",wt,Ji);let Xe=Qe.type==="5"?wt==null?void 0:wt.filter(fn=>!Ji.includes(fn)):null,he=Qe.type==="5"?wt==null?void 0:wt.filter(fn=>Ji.includes(fn)):null,Pe=yield(0,Ft.ZP)("/api/item_banks.json",{method:"get",params:Ye(Zt({},Qe),{discipline_id:((Xt=Qe==null?void 0:Qe.courseid)==null?void 0:Xt[0])||null,sub_discipline_id:((dn=Qe==null?void 0:Qe.courseid)==null?void 0:dn[1])||null,ids:Xe,shixun_ids:he,include_shixuns:!cn,group_id:((De=Qe.group_id)==null?void 0:De.map(fn=>fn==null?void 0:fn.value))||null,keyword:Qe.keyword?encodeURIComponent(Qe.keyword):Qe.keyword,type:Qe.type==="5"?null:Qe.type,clazz:Qe.type==="3"?"ItemBanksGroup":null,bigmodel:cn,is_smart_plan:wn})});jt(Pe),Ae(!1)})}function Yt(){return kn(this,null,function*(){let Qe=yield(0,Ft.ZP)("/api/disciplines.json",{method:"get",params:{source:"question",group_id:0,group_type:Kt.type==="5"?null:Kt.type,clazz:"ItemBanksGroup"}});ke((0,et.L)(Qe==null?void 0:Qe.disciplines))})}function Vt(Qe){return kn(this,null,function*(){var Xt;let dn=yield(0,Ft.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:Qe}),De=[{title:"\u6839\u76EE\u5F55",id:0,pid:0,value:0,key:0,isLeaf:!1,children:(Xt=dn==null?void 0:dn.data)==null?void 0:Xt.map(Xe=>({title:Xe.name,id:Xe.id,pid:Xe.id,value:Xe.id,key:Xe.id,isLeaf:!Xe.have_child}))}];tn(De)})}function Ve(Qe){return kn(this,null,function*(){var Xt,dn,De,Xe;Ae(!0);let he=(Xt=Qe.list)==null?void 0:Xt.filter(Di=>!Ji.includes(Di)),Pe=(dn=Qe.list)==null?void 0:dn.filter(Di=>Ji.includes(Di));if(he.length===0&&Pe.length===0){Ae(!1),jt([]);return}let fn=yield(0,Ft.ZP)("/api/item_banks.json",{method:"get",params:Ye(Zt({},Qe),{discipline_id:((De=Qe==null?void 0:Qe.courseid)==null?void 0:De[0])||null,sub_discipline_id:((Xe=Qe==null?void 0:Qe.courseid)==null?void 0:Xe[1])||null,ids:he,shixun_ids:Pe,type:Qe.type==="5"?null:Qe.type,clazz:Qe.type==="3"?"ItemBanksGroup":null})});Ae(!1),jt(fn)})}const an=Qe=>kn(void 0,null,function*(){const Xt=yield oe({type:"shixunsDetail/release",payload:{id:Qe}});let dn=Xt==null?void 0:Xt.tag_position,De=(Xt==null?void 0:Xt.evaluation_set_position)||[],Xe=Xt.status;return Xe===0?(ae.ZP.success("\u53D1\u5E03\u6210\u529F"),te(Kt),!0):(Xe===2?ae.ZP.error(`\u7B2C${De.join(",")}\u5173\u5C1A\u672A\u5B8C\u6210\uFF0C\u65E0\u6CD5\u7533\u8BF7\u53D1\u5E03`):Xe===3?ae.ZP.error(`\u6BCF\u4E00\u4E2A\u5173\u5361\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u6280\u80FD\u6807\u7B7E, \u7B2C${dn.join(",")}\u5173\u5C1A\u672A\u8BBE\u7F6E\u6280\u80FD\u6807\u7B7E\uFF0C\u8BF7\u8865\u5145`):ae.ZP.error("\u5C1A\u672A\u521B\u5EFA\u4EFB\u52A1\u7684\u5B9E\u8BAD\uFF0C\u4E0D\u80FD\u7533\u8BF7\u53D1\u5E03"),!1)}),pn=Qe=>(Qe==null?void 0:Qe.shixun_tag_num)===1?"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528\uFF0C\u8BF7\u5148\u8FDB\u884C\u53D1\u5E03":"",We=(Qe,Xt,dn)=>Qe.map(De=>De.key===Xt?Zt(Zt({},De),dn):De.children?Ye(Zt({},De),{children:We(De.children,Xt,dn)}):De),Sn=Qe=>kn(void 0,null,function*(){const{key:Xt}=Qe;let dn=Kt.type;const De=yield(0,pe.ex)({page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",group_id:Math.abs(Xt),type:dn}),{data:Xe,total_count:he}=De||{};he>0&&tn(Pe=>We(Pe,Xt,{children:Xe.map(fn=>({title:fn.name,id:fn.id,pid:fn.id,value:fn.id,key:fn.id,isLeaf:!fn.have_child}))}))});function ai(Qe){console.log("----",Kt),Qe==="1"&&(le.gg=Zt({},Kt)),Qe==="2"&&(le.scj=Zt({},Kt)),Qe==="3"&&(le.ttgx=Zt({},Kt)),Qe==="0"&&(le.wcjd=Zt({},Kt)),Qe==="5"&&(le.yx=Zt({},Kt)),Ct(Zt({},le))}function gn(){Kt.type==="1"&&(Kt=le.gg),Kt.type==="2"&&(Kt=le.scj),Kt.type==="3"&&(Kt=le.ttgx),Kt.type==="0"&&(Kt=le.wcjd),Kt.type==="5"&&(Kt=le.yx),(Kt==null?void 0:Kt.item_type)==="SHIXUN"?(Fi=!0,Bi(!0)):(Fi=!1,Bi(!1)),En.setFieldsValue(Zt({},Kt)),we(Zt({},Kt)),te(Zt({},Kt))}return Le.createElement("div",null,Le.createElement($e.default,{title:!1,footer:!1,open:Ke,width:1200,centered:!0,className:nt.scoremodal,onCancel:()=>{be(!1)}},Le.createElement("div",{style:{display:"flex",alignItems:"center"}},Le.createElement("div",{className:nt.title},cn?"\u4EE5\u9898\u6362\u9898":"\u9898\u5E93\u9009\u9898")),cn&&Le.createElement("div",{style:{padding:10,background:"#F6F7F9",borderRadius:4,marginTop:14}},"\u6839\u636E\u73B0\u6709\u8BD5\u9898\u7684\u9898\u578B\u3001\u65B9\u5411\u3001\u77E5\u8BC6\u70B9\u3001\u96BE\u6613\u5EA6\uFF0C\u5FEB\u901F\u751F\u6210\u65B0\u7684\u8BD5\u9898\uFF0C\u589E\u52A0\u8BD5\u9898\u7684\u4E30\u5BCC\u5EA6"),Le.createElement(fe.default,{className:nt.tabWrap,activeKey:Kt.type,onChange:Qe=>{Qe==="3"?(Kt.show_all_share=!0,Vt({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"3"})):Kt.show_all_share=null,Qe==="0"&&Vt({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),ai(Kt.type),Kt.type=Qe,(Kt==null?void 0:Kt.item_type)==="SHIXUN"&&Kt.type!=="5"&&(Fi=!0,Bi(!0)),me(!1),Kt.type==="5"&&(Fi=!1,Bi(!1)),gn(),Yt()},items:[{label:"\u516C\u5171",key:"1"},{label:"\u56E2\u961F\u5171\u4EAB",key:"3"},{label:"\u6536\u85CF\u5939",key:"2"},{label:"\u6211\u521B\u5EFA\u7684",key:"0"},{label:Le.createElement("div",null,"\u5DF2\u9009",wt.length>0&&Le.createElement("span",{className:nt.titlecount},wt.length),Eo>0&&Le.createElement("span",{className:nt.add},"+",Eo)),key:"5"}]}),Le.createElement(Tt.default,{layout:"inline",form:En,onValuesChange:(Qe,Xt)=>{const dn=Object.values(Xt).some(Xe=>Xe!==null&&Xe!==""&&Xe!==void 0),De=Xt.keyword==="";if(me(dn||!De),Kt.page=1,(Xt==null?void 0:Xt.item_type)==="SHIXUN"){if(Kt.type==="5"?Bi(!1):Bi(!0),Qe.keyword||Qe.keyword==="")return;En.submit()}else{if(Qe!=null&&Qe.courseid&&En.setFieldsValue({tag_discipline_id:""}),Bi(!1),Qe.keyword||Qe.keyword==="")return;En.submit()}},onFinish:Qe=>{var Xt;Kt.type==="3"&&(!Qe.group_id||((Xt=Qe==null?void 0:Qe.group_id)==null?void 0:Xt.length)===0)?Kt.show_all_share=!0:Kt.show_all_share=null,we(Zt(Zt({},Kt),Qe)),te(Zt(Zt({},Kt),Qe))}},Le.createElement(Tt.default.Item,{name:"item_type"},Le.createElement(ve.default,{className:nt.selectWrapper,placeholder:"\u9898\u578B",style:{width:110},size:"middle"},(cn?Mn==null?void 0:Mn.filter(Qe=>Qe.question_type!==5):wn?Mn.slice(0,4):Mn).map(Qe=>Le.createElement(ve.default.Option,{key:Qe.value},Qe.name)))),Le.createElement(Tt.default.Item,{name:"courseid"},Le.createElement(qt.Z,{className:nt.selectWrapper,style:{width:160},size:"middle",placeholder:"\u65B9\u5411&\u8BFE\u7A0B",options:Ee})),!Fi&&Le.createElement(Tt.default.Item,{name:"tag_discipline_id"},Le.createElement(ve.default,{className:nt.selectWrapper,placeholder:"\u77E5\u8BC6\u70B9",style:{width:160},size:"middle",allowClear:!0},(ce=Bt==null?void 0:Bt.tag_disciplines)==null?void 0:ce.map(Qe=>Le.createElement(ve.default.Option,{key:Qe.id},Qe.name)))),Le.createElement(Tt.default.Item,{name:Fi?"diff":"difficulty"},Le.createElement(ve.default,{className:nt.selectWrapper,placeholder:"\u96BE\u5EA6",style:{width:118},size:"middle",allowClear:!0},!Fi&&Qt.map(Qe=>Le.createElement(ve.default.Option,{key:Qe.value},Qe.name)),Fi&&Te.map(Qe=>Le.createElement(ve.default.Option,{key:Qe.value},Qe.name)))),Fi&&Le.createElement(Tt.default.Item,{name:"shixun_publish_status"},Le.createElement(ve.default,{className:nt.selectWrapper,placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"middle",allowClear:!0},Re.map(Qe=>Le.createElement(ve.default.Option,{key:Qe.value},Qe.name)))),(Kt.type==="3"||Kt.type==="0")&&!Fi&&Le.createElement(Tt.default.Item,{name:"group_id"},Le.createElement(Oe.default,{treeDataSimpleMode:!0,style:{width:118},className:nt.selectWrappers,multiple:!0,allowClear:!0,showSearch:!0,filterTreeNode:(Qe,Xt)=>Xt.title.toUpperCase().indexOf(Qe.toUpperCase())!==-1,dropdownStyle:{maxHeight:400,width:500,overflow:"auto"},placeholder:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939",treeCheckStrictly:!0,loadData:Sn,treeDefaultExpandedKeys:[0],maxTagCount:0,treeCheckable:!0,treeData:$t})),_e&&Le.createElement("span",{className:nt.allqingchu,onClick:en},Le.createElement("i",{className:"iconfont icon-guanbi4"}),Le.createElement("span",null,"\u6E05\u9664\u7B5B\u9009\u6761\u4EF6")),Le.createElement(Tt.default.Item,{style:{flex:"0 0 auto",marginRight:0,marginLeft:"auto"},name:"keyword"},Le.createElement(de.default.Search,{className:nt.search,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",allowClear:!0,suffix:Le.createElement("i",{className:`iconfont icon-sousuo9 font14 ${nt.searchIcon}`,onClick:()=>En.submit()}),onSearch:Qe=>{En.submit()}}))),Le.createElement("div",{style:{background:"#F6F7F9",display:"flex",alignItems:"center",marginTop:18,height:40,paddingLeft:10,paddingRight:20}},Le.createElement("div",{onClick:()=>{Kt.updated_at==="asc"?Kt.updated_at="desc":Kt.updated_at="asc",we(Ye(Zt({},Kt),{page:1})),te(Ye(Zt({},Kt),{page:1}))}}," ",Kt.updated_at?Le.createElement("img",{src:Kt.updated_at==="asc"?Ut.Z:ee.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Le.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u66F4\u65B0\u65F6\u95F4\u6392\u5E8F"),Le.createElement("div",{onClick:()=>{Kt.quotes==="asc"?Kt.quotes="desc":Kt.quotes="asc",we(Ye(Zt({},Kt),{page:1})),te(Ye(Zt({},Kt),{page:1}))},style:{marginLeft:20}}," ",Kt.quotes?Le.createElement("img",{src:Kt.quotes==="asc"?Ut.Z:ee.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Le.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u4F7F\u7528\u6B21\u6570\u6392\u5E8F")),Le.createElement(Ce.default,{style:{marginTop:2,marginBottom:20},scroll:{y:260},dataSource:(Bt==null?void 0:Bt.items)||(Bt==null?void 0:Bt.shixun_list),pagination:!1,loading:Mt,rowKey:Qe=>Qe.id,rowSelection:{type:cn||wn?"radio":"checkbox",selectedRowKeys:ln,getCheckboxProps:Qe=>({disabled:Qe.shixun_tag_num===1||(Jn==null?void 0:Jn.find(Xt=>Qe.id===Xt))}),onSelect(Qe,Xt,dn){if(cn||wn){Dt([Qe.id]),Hn.current=new Set([Qe.id]),Zo(1),At([Qe.id]);return}if(Xt)Fi&&ro([...Ji,Qe.id]),Dt([...ln,Qe.id]),Qe.identifier?vn.current.add(Qe.id):Hn.current.add(Qe.id),Zo(1),At([...wt,Qe.id]);else{Qe.identifier?vn.current.delete(Qe.id):Hn.current.delete(Qe.id);let De=wt.filter(Xe=>Xe!==Qe.id);if(Dt(De),At(De),Fi){let Xe=Ji.filter(he=>he!==Qe.id);ro([...Xe])}if(Kt.type==="5"){Ve(Ye(Zt({},Kt),{list:[...De]}));return}}},onSelectAll(Qe,Xt,dn){if(Qe){const De=dn.map(Xe=>Xe.id);Fi&&ro([...Ji,...De]),Dt([...ln,...De]),At([...wt,...De]);for(const Xe of dn)Xe.identifier?vn.current.add(Xe.id):Hn.current.add(Xe.id)}else{const De=dn.map(he=>he.id),Xe=ln.filter(he=>!De.some(Pe=>Pe===he));if(Dt([...Xe]),At([...Xe]),Fi){let he=Ji.filter(Pe=>!De.some(fn=>fn===Pe.id));ro([...he])}Kt.type==="5"&&Ve(Ye(Zt({},Kt),{list:[...Xe]}));for(const he of De)he.identifier?vn.current.delete(he):Hn.current.delete(he)}}},columns:[{title:"\u9898\u578B",dataIndex:"item_type",key:"item_type",render:(Qe,Xt,dn)=>{var De,Xe;return Le.createElement(xe.Z,{title:pn(Xt)},Le.createElement("div",null,Fi||Xt!=null&&Xt.challenge_names?"\u5B9E\u8BAD\u9898":(Xe=(De=Mn==null?void 0:Mn.filter(he=>he.value===Qe))==null?void 0:De[0])==null?void 0:Xe.name))}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:Fi?"30%":"60%",key:"name",render:(Qe,Xt,dn)=>{var De;return Le.createElement("div",{style:{display:"flex",alignItems:"center"}},Le.createElement(xe.Z,{title:pn(Xt)},Le.createElement("div",{className:Xt!=null&&Xt.high_resources_consume?nt.q_title:""},Le.createElement(ut.Z,{key:1,showLines:1,showTextOnly:!0,value:Fi||Xt!=null&&Xt.challenge_names?Xt!=null&&Xt.title||Qe===null?"--":Qe:(Xt==null?void 0:Xt.item_type)=="BPROGRAM"?(De=Xt==null?void 0:Xt.program_attr)==null?void 0:De.description:Qe}))),(Xt==null?void 0:Xt.high_resources_consume)&&Le.createElement(Me.Z,{type:"shixun",style:{marginLeft:10}}))}},{title:"\u521B\u5EFA\u8005",dataIndex:"author_name",key:"author_name",hidden:!Fi,render:(Qe,Xt,dn)=>{var De;return Le.createElement(xe.Z,{title:pn(Xt)},Le.createElement("span",null,Qe?(De=Qe==null?void 0:Qe.split("\u3001"))==null?void 0:De[0]:"- -"))}},{title:"\u6240\u5C5E\u5355\u4F4D",dataIndex:"author_school_name",key:"author_school_name",hidden:!Fi,render:(Qe,Xt,dn)=>Le.createElement(xe.Z,{title:pn(Xt)},Le.createElement("span",null,Qe||"- -"))},{title:"\u96BE\u5EA6",dataIndex:"difficulty",key:"difficulty",render:(Qe,Xt,dn)=>{var De,Xe,he,Pe;return Le.createElement(xe.Z,{title:pn(Xt)},Le.createElement("div",null,Fi||Xt!=null&&Xt.challenge_names?(Xt==null?void 0:Xt.level)||((Xe=(De=Qt==null?void 0:Qt.filter(fn=>fn.value===Qe))==null?void 0:De[0])==null?void 0:Xe.name):(Pe=(he=Qt==null?void 0:Qt.filter(fn=>fn.value===Qe))==null?void 0:he[0])==null?void 0:Pe.name))}},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",hidden:!Fi,render:(Qe,Xt,dn)=>Le.createElement(xe.Z,{title:pn(Xt)},Le.createElement("div",null,Qe||"- -"))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes",key:"quotes",render:(Qe,Xt,dn)=>Le.createElement(xe.Z,{title:pn(Xt)},Le.createElement("div",null,Fi||Xt!=null&&Xt.challenge_names?(Xt==null?void 0:Xt.study_count)||(Xt==null?void 0:Xt.stu_num):Qe))},{title:Le.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",Le.createElement(xe.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},Le.createElement(ie.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",hidden:!Fi,render:(Qe,Xt,dn)=>Le.createElement(xe.Z,{title:pn(Xt)},Le.createElement("div",null,Qe||"- -"))},{title:"\u64CD\u4F5C",dataIndex:"id",key:"item_type",render:(Qe,Xt,dn)=>Le.createElement(xe.Z,{title:pn(Xt)},Le.createElement("div",{style:{flex:1,textAlign:"start"}},Le.createElement("a",{onClick:()=>{var De,Xe;Pn(Ye(Zt({},Xt),{question_type:Fi||Xt!=null&&Xt.challenge_names?5:(Xe=(De=Mn==null?void 0:Mn.filter(he=>he.value===(Xt==null?void 0:Xt.item_type)))==null?void 0:De[0])==null?void 0:Xe.question_type})),xi(!0)}},"\u67E5\u770B"),(Xt==null?void 0:Xt.shixun_tag_num)===1&&Le.createElement("a",{style:{marginLeft:10},onClick:()=>{$e.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,width:400,content:Le.createElement("div",null,"\u662F\u5426\u786E\u5B9A\u53D1\u5E03",Le.createElement("span",{style:{cursor:"pointer",color:"#3061D0"},onClick:()=>{window.open(`/shixuns/${Xt==null?void 0:Xt.identifier}/challenges`)}},(Xt==null?void 0:Xt.shixun_name)||"--"),"\uFF1F"),onOk:()=>kn(void 0,null,function*(){if(!an(Xt==null?void 0:Xt.identifier))return new Promise((De,Xe)=>{Xe()})})})}},"\u53D1\u5E03")))}].filter(Qe=>!Qe.hidden)}),Le.createElement(ze.Z,{current:Kt.page,total:(Bt==null?void 0:Bt.items_count)||(Bt==null?void 0:Bt.shixuns_count),style:{marginBottom:20},defaultPageSize:Kt.per_page,showTotal:Qe=>Le.createElement("span",null,"\u5171\xA0",Le.createElement("span",{style:{color:"#165DFF"}},Qe),"\xA0\u6761\u6570\u636E"),pageSize:Kt.per_page,onChange:(Qe,Xt)=>{Kt.page=Qe,Kt.per_page=Xt,we(Zt({},Kt)),te(Zt({},Kt))}}),Le.createElement("div",{className:nt.bottom},Le.createElement(He.ZP,{className:nt.no,onClick:()=>{be(!1)}},"\u53D6\u6D88"),Le.createElement(He.ZP,{loading:An,style:{width:An&&75},className:nt.yes,onClick:()=>kn(void 0,null,function*(){if((wt==null?void 0:wt.length)<=0){ae.ZP.info(cn||wn?"\u8BF7\u9009\u62E9\u4E00\u9053\u8BD5\u9898":"\u5F53\u524D\u6682\u672A\u9009\u62E9\u6570\u636E");return}jn([...Hn.current],[...vn.current],!0,wt==null?void 0:wt.length)})},cn?"\u5F00\u59CB\u6362\u9898":"\u786E\u8BA4"))),Le.createElement($e.default,{open:$n,title:"\u9898\u76EE\u8BE6\u60C5",footer:!1,className:nt.previewModal,width:1e3,centered:!0,onCancel:()=>{xi(!1)},onOk:()=>{xi(!1)}},Le.createElement(Rt,{qitem:Rn})))};var Be=(0,re.connect)(({shixunsDetail:be,newExercisePaper:Ke})=>({shixunsDetail:be,newExercisePaper:Ke}))(Tn)},16979:function(un,Yn,St){"use strict";St.d(Yn,{P:function(){return ot}});const ot=[{value:"\u5317\u4EAC",label:"\u5317\u4EAC",children:[{value:"\u4E1C\u57CE",label:"\u4E1C\u57CE"},{value:"\u897F\u57CE",label:"\u897F\u57CE"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u4E30\u53F0",label:"\u4E30\u53F0"},{value:"\u77F3\u666F\u5C71",label:"\u77F3\u666F\u5C71"},{value:"\u6D77\u6DC0",label:"\u6D77\u6DC0"},{value:"\u95E8\u5934\u6C9F",label:"\u95E8\u5934\u6C9F"},{value:"\u623F\u5C71",label:"\u623F\u5C71"},{value:"\u901A\u5DDE",label:"\u901A\u5DDE"},{value:"\u987A\u4E49",label:"\u987A\u4E49"},{value:"\u660C\u5E73",label:"\u660C\u5E73"},{value:"\u5927\u5174",label:"\u5927\u5174"},{value:"\u5E73\u8C37",label:"\u5E73\u8C37"},{value:"\u6000\u67D4",label:"\u6000\u67D4"},{value:"\u5BC6\u4E91",label:"\u5BC6\u4E91"},{value:"\u5EF6\u5E86",label:"\u5EF6\u5E86"}]},{value:"\u4E0A\u6D77",label:"\u4E0A\u6D77",children:[{value:"\u5D07\u660E",label:"\u5D07\u660E"},{value:"\u9EC4\u6D66",label:"\u9EC4\u6D66"},{value:"\u5362\u6E7E",label:"\u5362\u6E7E"},{value:"\u5F90\u6C47",label:"\u5F90\u6C47"},{value:"\u957F\u5B81",label:"\u957F\u5B81"},{value:"\u9759\u5B89",label:"\u9759\u5B89"},{value:"\u666E\u9640",label:"\u666E\u9640"},{value:"\u95F8\u5317",label:"\u95F8\u5317"},{value:"\u8679\u53E3",label:"\u8679\u53E3"},{value:"\u6768\u6D66",label:"\u6768\u6D66"},{value:"\u95F5\u884C",label:"\u95F5\u884C"},{value:"\u5B9D\u5C71",label:"\u5B9D\u5C71"},{value:"\u5609\u5B9A",label:"\u5609\u5B9A"},{value:"\u6D66\u4E1C",label:"\u6D66\u4E1C"},{value:"\u91D1\u5C71",label:"\u91D1\u5C71"},{value:"\u677E\u6C5F",label:"\u677E\u6C5F"},{value:"\u9752\u6D66",label:"\u9752\u6D66"},{value:"\u5357\u6C47",label:"\u5357\u6C47"},{value:"\u5949\u8D24",label:"\u5949\u8D24"}]},{value:"\u5E7F\u4E1C",label:"\u5E7F\u4E1C",children:[{value:"\u5E7F\u5DDE",label:"\u5E7F\u5DDE"},{value:"\u6DF1\u5733",label:"\u6DF1\u5733"},{value:"\u73E0\u6D77",label:"\u73E0\u6D77"},{value:"\u4E1C\u839E",label:"\u4E1C\u839E"},{value:"\u4E2D\u5C71",label:"\u4E2D\u5C71"},{value:"\u4F5B\u5C71",label:"\u4F5B\u5C71"},{value:"\u60E0\u5DDE",label:"\u60E0\u5DDE"},{value:"\u6CB3\u6E90",label:"\u6CB3\u6E90"},{value:"\u6F6E\u5DDE",label:"\u6F6E\u5DDE"},{value:"\u6C5F\u95E8",label:"\u6C5F\u95E8"},{value:"\u63ED\u9633",label:"\u63ED\u9633"},{value:"\u8302\u540D",label:"\u8302\u540D"},{value:"\u6885\u5DDE",label:"\u6885\u5DDE"},{value:"\u6E05\u8FDC",label:"\u6E05\u8FDC"},{value:"\u6C55\u5934",label:"\u6C55\u5934"},{value:"\u6C55\u5C3E",label:"\u6C55\u5C3E"},{value:"\u97F6\u5173",label:"\u97F6\u5173"},{value:"\u987A\u5FB7",label:"\u987A\u5FB7"},{value:"\u9633\u6C5F",label:"\u9633\u6C5F"},{value:"\u4E91\u6D6E",label:"\u4E91\u6D6E"},{value:"\u6E5B\u6C5F",label:"\u6E5B\u6C5F"},{value:"\u8087\u5E86",label:"\u8087\u5E86"}]},{value:"\u6C5F\u82CF",label:"\u6C5F\u82CF",children:[{value:"\u5357\u4EAC",label:"\u5357\u4EAC"},{value:"\u5E38\u719F",label:"\u5E38\u719F"},{value:"\u5E38\u5DDE",label:"\u5E38\u5DDE"},{value:"\u6D77\u95E8",label:"\u6D77\u95E8"},{value:"\u6DEE\u5B89",label:"\u6DEE\u5B89"},{value:"\u6C5F\u90FD",label:"\u6C5F\u90FD"},{value:"\u6C5F\u9634",label:"\u6C5F\u9634"},{value:"\u6606\u5C71",label:"\u6606\u5C71"},{value:"\u8FDE\u4E91\u6E2F",label:"\u8FDE\u4E91\u6E2F"},{value:"\u5357\u901A",label:"\u5357\u901A"},{value:"\u542F\u4E1C",label:"\u542F\u4E1C"},{value:"\u6CAD\u9633",label:"\u6CAD\u9633"},{value:"\u5BBF\u8FC1",label:"\u5BBF\u8FC1"},{value:"\u82CF\u5DDE",label:"\u82CF\u5DDE"},{value:"\u592A\u4ED3",label:"\u592A\u4ED3"},{value:"\u6CF0\u5DDE",label:"\u6CF0\u5DDE"},{value:"\u540C\u91CC",label:"\u540C\u91CC"},{value:"\u65E0\u9521",label:"\u65E0\u9521"},{value:"\u5F90\u5DDE",label:"\u5F90\u5DDE"},{value:"\u76D0\u57CE",label:"\u76D0\u57CE"},{value:"\u626C\u5DDE",label:"\u626C\u5DDE"},{value:"\u5B9C\u5174",label:"\u5B9C\u5174"},{value:"\u4EEA\u5F81",label:"\u4EEA\u5F81"},{value:"\u5F20\u5BB6\u6E2F",label:"\u5F20\u5BB6\u6E2F"},{value:"\u9547\u6C5F",label:"\u9547\u6C5F"}]},{value:"\u91CD\u5E86",label:"\u91CD\u5E86",children:[{value:"\u4E07\u5DDE",label:"\u4E07\u5DDE"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u6E1D\u4E2D",label:"\u6E1D\u4E2D"},{value:"\u5927\u6E21\u53E3",label:"\u5927\u6E21\u53E3"},{value:"\u6C5F\u5317",label:"\u6C5F\u5317"},{value:"\u6C99\u576A\u575D",label:"\u6C99\u576A\u575D"},{value:"\u4E5D\u9F99\u5761",label:"\u4E5D\u9F99\u5761"},{value:"\u5357\u5CB8",label:"\u5357\u5CB8"},{value:"\u5317\u789A",label:"\u5317\u789A"},{value:"\u4E07\u76DB",label:"\u4E07\u76DB"},{value:"\u53CC\u6322",label:"\u53CC\u6322"},{value:"\u6E1D\u5317",label:"\u6E1D\u5317"},{value:"\u5DF4\u5357",label:"\u5DF4\u5357"},{value:"\u9ED4\u6C5F",label:"\u9ED4\u6C5F"},{value:"\u957F\u5BFF",label:"\u957F\u5BFF"},{value:"\u7DA6\u6C5F",label:"\u7DA6\u6C5F"},{value:"\u6F7C\u5357",label:"\u6F7C\u5357"},{value:"\u94DC\u6881",label:"\u94DC\u6881"},{value:"\u5927\u8DB3",label:"\u5927\u8DB3"},{value:"\u8363\u660C",label:"\u8363\u660C"},{value:"\u58C1\u5C71",label:"\u58C1\u5C71"},{value:"\u6881\u5E73",label:"\u6881\u5E73"},{value:"\u57CE\u53E3",label:"\u57CE\u53E3"},{value:"\u4E30\u90FD",label:"\u4E30\u90FD"},{value:"\u57AB\u6C5F",label:"\u57AB\u6C5F"},{value:"\u6B66\u9686",label:"\u6B66\u9686"},{value:"\u5FE0\u53BF",label:"\u5FE0\u53BF"},{value:"\u5F00\u53BF",label:"\u5F00\u53BF"},{value:"\u4E91\u9633",label:"\u4E91\u9633"},{value:"\u5949\u8282",label:"\u5949\u8282"},{value:"\u5DEB\u5C71",label:"\u5DEB\u5C71"},{value:"\u5DEB\u6EAA",label:"\u5DEB\u6EAA"},{value:"\u77F3\u67F1",label:"\u77F3\u67F1"},{value:"\u79C0\u5C71",label:"\u79C0\u5C71"},{value:"\u9149\u9633",label:"\u9149\u9633"},{value:"\u5F6D\u6C34",label:"\u5F6D\u6C34"},{value:"\u6C5F\u6D25",label:"\u6C5F\u6D25"},{value:"\u5408\u5DDD",label:"\u5408\u5DDD"},{value:"\u6C38\u5DDD",label:"\u6C38\u5DDD"},{value:"\u5357\u5DDD",label:"\u5357\u5DDD"}]},{value:"\u5B89\u5FBD",label:"\u5B89\u5FBD",children:[{value:"\u5408\u80A5",label:"\u5408\u80A5"},{value:"\u5B89\u5E86",label:"\u5B89\u5E86"},{value:"\u868C\u57E0",label:"\u868C\u57E0"},{value:"\u4EB3\u5DDE",label:"\u4EB3\u5DDE"},{value:"\u5DE2\u6E56",label:"\u5DE2\u6E56"},{value:"\u6EC1\u5DDE",label:"\u6EC1\u5DDE"},{value:"\u961C\u9633",label:"\u961C\u9633"},{value:"\u8D35\u6C60",label:"\u8D35\u6C60"},{value:"\u6DEE\u5317",label:"\u6DEE\u5317"},{value:"\u6DEE\u5316",label:"\u6DEE\u5316"},{value:"\u6DEE\u5357",label:"\u6DEE\u5357"},{value:"\u9EC4\u5C71",label:"\u9EC4\u5C71"},{value:"\u4E5D\u534E\u5C71",label:"\u4E5D\u534E\u5C71"},{value:"\u516D\u5B89",label:"\u516D\u5B89"},{value:"\u9A6C\u978D\u5C71",label:"\u9A6C\u978D\u5C71"},{value:"\u5BBF\u5DDE",label:"\u5BBF\u5DDE"},{value:"\u94DC\u9675",label:"\u94DC\u9675"},{value:"\u5C6F\u6EAA",label:"\u5C6F\u6EAA"},{value:"\u829C\u6E56",label:"\u829C\u6E56"},{value:"\u5BA3\u57CE",label:"\u5BA3\u57CE"}]},{value:"\u798F\u5EFA",label:"\u798F\u5EFA",children:[{value:"\u798F\u5DDE",label:"\u798F\u5DDE"},{value:"\u53A6\u95E8",label:"\u53A6\u95E8"},{value:"\u6CC9\u5DDE",label:"\u6CC9\u5DDE"},{value:"\u6F33\u5DDE",label:"\u6F33\u5DDE"},{value:"\u9F99\u5CA9",label:"\u9F99\u5CA9"},{value:"\u5357\u5E73",label:"\u5357\u5E73"},{value:"\u5B81\u5FB7",label:"\u5B81\u5FB7"},{value:"\u8386\u7530",label:"\u8386\u7530"},{value:"\u4E09\u660E",label:"\u4E09\u660E"}]},{value:"\u7518\u8083",label:"\u7518\u8083",children:[{value:"\u5170\u5DDE",label:"\u5170\u5DDE"},{value:"\u5609\u5CEA\u5173",label:"\u5609\u5CEA\u5173"},{value:"\u767D\u94F6",label:"\u767D\u94F6"},{value:"\u5B9A\u897F",label:"\u5B9A\u897F"},{value:"\u6566\u714C",label:"\u6566\u714C"},{value:"\u7518\u5357",label:"\u7518\u5357"},{value:"\u91D1\u660C",label:"\u91D1\u660C"},{value:"\u9152\u6CC9",label:"\u9152\u6CC9"},{value:"\u4E34\u590F",label:"\u4E34\u590F"},{value:"\u5E73\u51C9",label:"\u5E73\u51C9"},{value:"\u5929\u6C34",label:"\u5929\u6C34"},{value:"\u9647\u5357",label:"\u9647\u5357"},{value:"\u6B66\u5A01",label:"\u6B66\u5A01"},{value:"\u897F\u5CF0",label:"\u897F\u5CF0"},{value:"\u5F20\u6396",label:"\u5F20\u6396"}]},{value:"\u5E7F\u897F",label:"\u5E7F\u897F",children:[{value:"\u5357\u5B81",label:"\u5357\u5B81"},{value:"\u6765\u5BBE",label:"\u6765\u5BBE"},{value:"\u767E\u8272",label:"\u767E\u8272"},{value:"\u5317\u6D77",label:"\u5317\u6D77"},{value:"\u6842\u6797",label:"\u6842\u6797"},{value:"\u9632\u57CE\u6E2F",label:"\u9632\u57CE\u6E2F"},{value:"\u8D35\u6E2F",label:"\u8D35\u6E2F"},{value:"\u6CB3\u6C60",label:"\u6CB3\u6C60"},{value:"\u8D3A\u5DDE",label:"\u8D3A\u5DDE"},{value:"\u67F3\u5DDE",label:"\u67F3\u5DDE"},{value:"\u94A6\u5DDE",label:"\u94A6\u5DDE"},{value:"\u68A7\u5DDE",label:"\u68A7\u5DDE"},{value:"\u7389\u6797",label:"\u7389\u6797"}]},{value:"\u8D35\u5DDE",label:"\u8D35\u5DDE",children:[{value:"\u8D35\u9633",label:"\u8D35\u9633"},{value:"\u5B89\u987A",label:"\u5B89\u987A"},{value:"\u6BD5\u8282",label:"\u6BD5\u8282"},{value:"\u90FD\u5300",label:"\u90FD\u5300"},{value:"\u51EF\u91CC",label:"\u51EF\u91CC"},{value:"\u516D\u76D8\u6C34",label:"\u516D\u76D8\u6C34"},{value:"\u94DC\u4EC1",label:"\u94DC\u4EC1"},{value:"\u5174\u4E49",label:"\u5174\u4E49"},{value:"\u7389\u5C4F",label:"\u7389\u5C4F"},{value:"\u9075\u4E49",label:"\u9075\u4E49"}]},{value:"\u6D77\u5357",label:"\u6D77\u5357",children:[{value:"\u6D77\u53E3",label:"\u6D77\u53E3"},{value:"\u510B\u53BF",label:"\u510B\u53BF"},{value:"\u9675\u6C34",label:"\u9675\u6C34"},{value:"\u743C\u6D77",label:"\u743C\u6D77"},{value:"\u4E09\u4E9A",label:"\u4E09\u4E9A"},{value:"\u901A\u4EC0",label:"\u901A\u4EC0"},{value:"\u4E07\u5B81",label:"\u4E07\u5B81"}]},{value:"\u6CB3\u5317",label:"\u6CB3\u5317",children:[{value:"\u77F3\u5BB6\u5E84",label:"\u77F3\u5BB6\u5E84"},{value:"\u4FDD\u5B9A",label:"\u4FDD\u5B9A"},{value:"\u5317\u6234\u6CB3",label:"\u5317\u6234\u6CB3"},{value:"\u6CA7\u5DDE",label:"\u6CA7\u5DDE"},{value:"\u627F\u5FB7",label:"\u627F\u5FB7"},{value:"\u4E30\u6DA6",label:"\u4E30\u6DA6"},{value:"\u90AF\u90F8",label:"\u90AF\u90F8"},{value:"\u8861\u6C34",label:"\u8861\u6C34"},{value:"\u5ECA\u574A",label:"\u5ECA\u574A"},{value:"\u5357\u6234\u6CB3",label:"\u5357\u6234\u6CB3"},{value:"\u79E6\u7687\u5C9B",label:"\u79E6\u7687\u5C9B"},{value:"\u5510\u5C71",label:"\u5510\u5C71"},{value:"\u65B0\u57CE",label:"\u65B0\u57CE"},{value:"\u90A2\u53F0",label:"\u90A2\u53F0"},{value:"\u5F20\u5BB6\u53E3",label:"\u5F20\u5BB6\u53E3"}]},{value:"\u9ED1\u9F99\u6C5F",label:"\u9ED1\u9F99\u6C5F",children:[{value:"\u54C8\u5C14\u6EE8",label:"\u54C8\u5C14\u6EE8"},{value:"\u5317\u5B89",label:"\u5317\u5B89"},{value:"\u5927\u5E86",label:"\u5927\u5E86"},{value:"\u5927\u5174\u5B89\u5CAD",label:"\u5927\u5174\u5B89\u5CAD"},{value:"\u9E64\u5C97",label:"\u9E64\u5C97"},{value:"\u9ED1\u6CB3",label:"\u9ED1\u6CB3"},{value:"\u4F73\u6728\u65AF",label:"\u4F73\u6728\u65AF"},{value:"\u9E21\u897F",label:"\u9E21\u897F"},{value:"\u7261\u4E39\u6C5F",label:"\u7261\u4E39\u6C5F"},{value:"\u9F50\u9F50\u54C8\u5C14",label:"\u9F50\u9F50\u54C8\u5C14"},{value:"\u4E03\u53F0\u6CB3",label:"\u4E03\u53F0\u6CB3"},{value:"\u53CC\u9E2D\u5C71",label:"\u53CC\u9E2D\u5C71"},{value:"\u7EE5\u5316",label:"\u7EE5\u5316"},{value:"\u4F0A\u6625",label:"\u4F0A\u6625"}]},{value:"\u6CB3\u5357",label:"\u6CB3\u5357",children:[{value:"\u90D1\u5DDE",label:"\u90D1\u5DDE"},{value:"\u5B89\u9633",label:"\u5B89\u9633"},{value:"\u9E64\u58C1",label:"\u9E64\u58C1"},{value:"\u6F62\u5DDD",label:"\u6F62\u5DDD"},{value:"\u7126\u4F5C",label:"\u7126\u4F5C"},{value:"\u6D4E\u6E90",label:"\u6D4E\u6E90"},{value:"\u5F00\u5C01",label:"\u5F00\u5C01"},{value:"\u6F2F\u6CB3",label:"\u6F2F\u6CB3"},{value:"\u6D1B\u9633",label:"\u6D1B\u9633"},{value:"\u5357\u9633",label:"\u5357\u9633"},{value:"\u5E73\u9876\u5C71",label:"\u5E73\u9876\u5C71"},{value:"\u6FEE\u9633",label:"\u6FEE\u9633"},{value:"\u4E09\u95E8\u5CE1",label:"\u4E09\u95E8\u5CE1"},{value:"\u5546\u4E18",label:"\u5546\u4E18"},{value:"\u65B0\u4E61",label:"\u65B0\u4E61"},{value:"\u4FE1\u9633",label:"\u4FE1\u9633"},{value:"\u8BB8\u660C",label:"\u8BB8\u660C"},{value:"\u5468\u53E3",label:"\u5468\u53E3"},{value:"\u9A7B\u9A6C\u5E97",label:"\u9A7B\u9A6C\u5E97"}]},{value:"\u9999\u6E2F",label:"\u9999\u6E2F",children:[{value:"\u9999\u6E2F",label:"\u9999\u6E2F"},{value:"\u4E5D\u9F99",label:"\u4E5D\u9F99"},{value:"\u65B0\u754C",label:"\u65B0\u754C"}]},{value:"\u6E56\u5317",label:"\u6E56\u5317",children:[{value:"\u6B66\u6C49",label:"\u6B66\u6C49"},{value:"\u5929\u95E8",label:"\u5929\u95E8"},{value:"\u6069\u65BD",label:"\u6069\u65BD"},{value:"\u9102\u5DDE",label:"\u9102\u5DDE"},{value:"\u9EC4\u5188",label:"\u9EC4\u5188"},{value:"\u9EC4\u77F3",label:"\u9EC4\u77F3"},{value:"\u8346\u95E8",label:"\u8346\u95E8"},{value:"\u8346\u5DDE",label:"\u8346\u5DDE"},{value:"\u6F5C\u6C5F",label:"\u6F5C\u6C5F"},{value:"\u5341\u5830",label:"\u5341\u5830"},{value:"\u968F\u5DDE",label:"\u968F\u5DDE"},{value:"\u6B66\u7A74",label:"\u6B66\u7A74"},{value:"\u4ED9\u6843",label:"\u4ED9\u6843"},{value:"\u54B8\u5B81",label:"\u54B8\u5B81"},{value:"\u8944\u9633",label:"\u8944\u9633"},{value:"\u8944\u6A0A",label:"\u8944\u6A0A"},{value:"\u5B5D\u611F",label:"\u5B5D\u611F"},{value:"\u5B9C\u660C",label:"\u5B9C\u660C"}]},{value:"\u6E56\u5357",label:"\u6E56\u5357",children:[{value:"\u957F\u6C99",label:"\u957F\u6C99"},{value:"\u5E38\u5FB7",label:"\u5E38\u5FB7"},{value:"\u90F4\u5DDE",label:"\u90F4\u5DDE"},{value:"\u8861\u9633",label:"\u8861\u9633"},{value:"\u6000\u5316",label:"\u6000\u5316"},{value:"\u5409\u9996",label:"\u5409\u9996"},{value:"\u5A04\u5E95",label:"\u5A04\u5E95"},{value:"\u90B5\u9633",label:"\u90B5\u9633"},{value:"\u6E58\u6F6D",label:"\u6E58\u6F6D"},{value:"\u76CA\u9633",label:"\u76CA\u9633"},{value:"\u5CB3\u9633",label:"\u5CB3\u9633"},{value:"\u6C38\u5DDE",label:"\u6C38\u5DDE"},{value:"\u5F20\u5BB6\u754C",label:"\u5F20\u5BB6\u754C"},{value:"\u682A\u6D32",label:"\u682A\u6D32"}]},{value:"\u6C5F\u897F",label:"\u6C5F\u897F",children:[{value:"\u5357\u660C",label:"\u5357\u660C"},{value:"\u629A\u5DDE",label:"\u629A\u5DDE"},{value:"\u8D63\u5DDE",label:"\u8D63\u5DDE"},{value:"\u5409\u5B89",label:"\u5409\u5B89"},{value:"\u666F\u5FB7\u9547",label:"\u666F\u5FB7\u9547"},{value:"\u4E95\u5188\u5C71",label:"\u4E95\u5188\u5C71"},{value:"\u4E5D\u6C5F",label:"\u4E5D\u6C5F"},{value:"\u5E90\u5C71",label:"\u5E90\u5C71"},{value:"\u840D\u4E61",label:"\u840D\u4E61"},{value:"\u4E0A\u9976",label:"\u4E0A\u9976"},{value:"\u65B0\u4F59",label:"\u65B0\u4F59"},{value:"\u5B9C\u6625",label:"\u5B9C\u6625"},{value:"\u9E70\u6F6D",label:"\u9E70\u6F6D"}]},{value:"\u5409\u6797",label:"\u5409\u6797",children:[{value:"\u957F\u6625",label:"\u957F\u6625"},{value:"\u5409\u6797",label:"\u5409\u6797"},{value:"\u767D\u57CE",label:"\u767D\u57CE"},{value:"\u767D\u5C71",label:"\u767D\u5C71"},{value:"\u73F2\u6625",label:"\u73F2\u6625"},{value:"\u8FBD\u6E90",label:"\u8FBD\u6E90"},{value:"\u6885\u6CB3",label:"\u6885\u6CB3"},{value:"\u56DB\u5E73",label:"\u56DB\u5E73"},{value:"\u677E\u539F",label:"\u677E\u539F"},{value:"\u901A\u5316",label:"\u901A\u5316"},{value:"\u5EF6\u5409",label:"\u5EF6\u5409"}]},{value:"\u8FBD\u5B81",label:"\u8FBD\u5B81",children:[{value:"\u6C88\u9633",label:"\u6C88\u9633"},{value:"\u978D\u5C71",label:"\u978D\u5C71"},{value:"\u672C\u6EAA",label:"\u672C\u6EAA"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u5927\u8FDE",label:"\u5927\u8FDE"},{value:"\u4E39\u4E1C",label:"\u4E39\u4E1C"},{value:"\u629A\u987A",label:"\u629A\u987A"},{value:"\u961C\u65B0",label:"\u961C\u65B0"},{value:"\u846B\u82A6\u5C9B",label:"\u846B\u82A6\u5C9B"},{value:"\u9526\u5DDE",label:"\u9526\u5DDE"},{value:"\u8FBD\u9633",label:"\u8FBD\u9633"},{value:"\u76D8\u9526",label:"\u76D8\u9526"},{value:"\u94C1\u5CAD",label:"\u94C1\u5CAD"},{value:"\u8425\u53E3",label:"\u8425\u53E3"}]},{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8",children:[{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8"}]},{value:"\u5185\u8499\u53E4",label:"\u5185\u8499\u53E4",children:[{value:"\u547C\u548C\u6D69\u7279",label:"\u547C\u548C\u6D69\u7279"},{value:"\u963F\u62C9\u5584\u76DF",label:"\u963F\u62C9\u5584\u76DF"},{value:"\u5305\u5934",label:"\u5305\u5934"},{value:"\u8D64\u5CF0",label:"\u8D64\u5CF0"},{value:"\u4E1C\u80DC",label:"\u4E1C\u80DC"},{value:"\u6D77\u62C9\u5C14",label:"\u6D77\u62C9\u5C14"},{value:"\u96C6\u5B81",label:"\u96C6\u5B81"},{value:"\u4E34\u6CB3",label:"\u4E34\u6CB3"},{value:"\u901A\u8FBD",label:"\u901A\u8FBD"},{value:"\u4E4C\u6D77",label:"\u4E4C\u6D77"},{value:"\u4E4C\u5170\u6D69\u7279",label:"\u4E4C\u5170\u6D69\u7279"},{value:"\u9521\u6797\u6D69\u7279",label:"\u9521\u6797\u6D69\u7279"}]},{value:"\u5B81\u590F",label:"\u5B81\u590F",children:[{value:"\u94F6\u5DDD",label:"\u94F6\u5DDD"},{value:"\u56FA\u6E90",label:"\u56FA\u6E90"},{value:"\u77F3\u5634\u5C71",label:"\u77F3\u5634\u5C71"},{value:"\u5434\u5FE0",label:"\u5434\u5FE0"}]},{value:"\u9752\u6D77",label:"\u9752\u6D77",children:[{value:"\u897F\u5B81",label:"\u897F\u5B81"},{value:"\u5FB7\u4EE4\u54C8",label:"\u5FB7\u4EE4\u54C8"},{value:"\u683C\u5C14\u6728",label:"\u683C\u5C14\u6728"},{value:"\u5171\u548C",label:"\u5171\u548C"},{value:"\u6D77\u4E1C",label:"\u6D77\u4E1C"},{value:"\u6D77\u664F",label:"\u6D77\u664F"},{value:"\u739B\u6C81",label:"\u739B\u6C81"},{value:"\u540C\u4EC1",label:"\u540C\u4EC1"},{value:"\u7389\u6811",label:"\u7389\u6811"}]},{value:"\u5C71\u4E1C",label:"\u5C71\u4E1C",children:[{value:"\u6D4E\u5357",label:"\u6D4E\u5357"},{value:"\u6EE8\u5DDE",label:"\u6EE8\u5DDE"},{value:"\u5156\u5DDE",label:"\u5156\u5DDE"},{value:"\u5FB7\u5DDE",label:"\u5FB7\u5DDE"},{value:"\u4E1C\u8425",label:"\u4E1C\u8425"},{value:"\u83CF\u6CFD",label:"\u83CF\u6CFD"},{value:"\u6D4E\u5B81",label:"\u6D4E\u5B81"},{value:"\u83B1\u829C",label:"\u83B1\u829C"},{value:"\u804A\u57CE",label:"\u804A\u57CE"},{value:"\u4E34\u6C82",label:"\u4E34\u6C82"},{value:"\u84EC\u83B1",label:"\u84EC\u83B1"},{value:"\u9752\u5C9B",label:"\u9752\u5C9B"},{value:"\u66F2\u961C",label:"\u66F2\u961C"},{value:"\u65E5\u7167",label:"\u65E5\u7167"},{value:"\u6CF0\u5B89",label:"\u6CF0\u5B89"},{value:"\u6F4D\u574A",label:"\u6F4D\u574A"},{value:"\u5A01\u6D77",label:"\u5A01\u6D77"},{value:"\u70DF\u53F0",label:"\u70DF\u53F0"},{value:"\u67A3\u5E84",label:"\u67A3\u5E84"},{value:"\u6DC4\u535A",label:"\u6DC4\u535A"}]},{value:"\u5C71\u897F",label:"\u5C71\u897F",children:[{value:"\u592A\u539F",label:"\u592A\u539F"},{value:"\u5415\u6881",label:"\u5415\u6881"},{value:"\u957F\u6CBB",label:"\u957F\u6CBB"},{value:"\u5927\u540C",label:"\u5927\u540C"},{value:"\u5019\u9A6C",label:"\u5019\u9A6C"},{value:"\u664B\u57CE",label:"\u664B\u57CE"},{value:"\u79BB\u77F3",label:"\u79BB\u77F3"},{value:"\u4E34\u6C7E",label:"\u4E34\u6C7E"},{value:"\u5B81\u6B66",label:"\u5B81\u6B66"},{value:"\u6714\u5DDE",label:"\u6714\u5DDE"},{value:"\u5FFB\u5DDE",label:"\u5FFB\u5DDE"},{value:"\u9633\u6CC9",label:"\u9633\u6CC9"},{value:"\u6986\u6B21",label:"\u6986\u6B21"},{value:"\u664B\u4E2D",label:"\u664B\u4E2D"},{value:"\u8FD0\u57CE",label:"\u8FD0\u57CE"}]},{value:"\u9655\u897F",label:"\u9655\u897F",children:[{value:"\u897F\u5B89",label:"\u897F\u5B89"},{value:"\u5B89\u5EB7",label:"\u5B89\u5EB7"},{value:"\u5B9D\u9E21",label:"\u5B9D\u9E21"},{value:"\u6C49\u4E2D",label:"\u6C49\u4E2D"},{value:"\u6E2D\u5357",label:"\u6E2D\u5357"},{value:"\u5546\u5DDE",label:"\u5546\u5DDE"},{value:"\u7EE5\u5FB7",label:"\u7EE5\u5FB7"},{value:"\u94DC\u5DDD",label:"\u94DC\u5DDD"},{value:"\u54B8\u9633",label:"\u54B8\u9633"},{value:"\u5EF6\u5B89",label:"\u5EF6\u5B89"},{value:"\u6986\u6797",label:"\u6986\u6797"}]},{value:"\u56DB\u5DDD",label:"\u56DB\u5DDD",children:[{value:"\u6210\u90FD",label:"\u6210\u90FD"},{value:"\u5DF4\u4E2D",label:"\u5DF4\u4E2D"},{value:"\u8FBE\u5DDD",label:"\u8FBE\u5DDD"},{value:"\u5FB7\u9633",label:"\u5FB7\u9633"},{value:"\u90FD\u6C5F\u5830",label:"\u90FD\u6C5F\u5830"},{value:"\u5CE8\u7709\u5C71",label:"\u5CE8\u7709\u5C71"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u5E7F\u5B89",label:"\u5E7F\u5B89"},{value:"\u5E7F\u5143",label:"\u5E7F\u5143"},{value:"\u4E5D\u5BE8\u6C9F",label:"\u4E5D\u5BE8\u6C9F"},{value:"\u5EB7\u5B9A",label:"\u5EB7\u5B9A"},{value:"\u4E50\u5C71",label:"\u4E50\u5C71"},{value:"\u6CF8\u5DDE",label:"\u6CF8\u5DDE"},{value:"\u9A6C\u5C14\u5EB7",label:"\u9A6C\u5C14\u5EB7"},{value:"\u7EF5\u9633",label:"\u7EF5\u9633"},{value:"\u7709\u5C71",label:"\u7709\u5C71"},{value:"\u5357\u5145",label:"\u5357\u5145"},{value:"\u5185\u6C5F",label:"\u5185\u6C5F"},{value:"\u6500\u679D\u82B1",label:"\u6500\u679D\u82B1"},{value:"\u9042\u5B81",label:"\u9042\u5B81"},{value:"\u6C76\u5DDD",label:"\u6C76\u5DDD"},{value:"\u897F\u660C",label:"\u897F\u660C"},{value:"\u96C5\u5B89",label:"\u96C5\u5B89"},{value:"\u5B9C\u5BBE",label:"\u5B9C\u5BBE"},{value:"\u81EA\u8D21",label:"\u81EA\u8D21"},{value:"\u8D44\u9633",label:"\u8D44\u9633"}]},{value:"\u53F0\u6E7E",label:"\u53F0\u6E7E",children:[{value:"\u53F0\u5317",label:"\u53F0\u5317"},{value:"\u57FA\u9686",label:"\u57FA\u9686"},{value:"\u53F0\u5357",label:"\u53F0\u5357"},{value:"\u53F0\u4E2D",label:"\u53F0\u4E2D"},{value:"\u9AD8\u96C4",label:"\u9AD8\u96C4"},{value:"\u5C4F\u4E1C",label:"\u5C4F\u4E1C"},{value:"\u5357\u6295",label:"\u5357\u6295"},{value:"\u4E91\u6797",label:"\u4E91\u6797"},{value:"\u65B0\u7AF9",label:"\u65B0\u7AF9"},{value:"\u5F70\u5316",label:"\u5F70\u5316"},{value:"\u82D7\u6817",label:"\u82D7\u6817"},{value:"\u5609\u4E49",label:"\u5609\u4E49"},{value:"\u6843\u56ED",label:"\u6843\u56ED"},{value:"\u5B9C\u5170",label:"\u5B9C\u5170"},{value:"\u53F0\u4E1C",label:"\u53F0\u4E1C"},{value:"\u91D1\u95E8",label:"\u91D1\u95E8"},{value:"\u9A6C\u7956",label:"\u9A6C\u7956"},{value:"\u6F8E\u6E56",label:"\u6F8E\u6E56"}]},{value:"\u5929\u6D25",label:"\u5929\u6D25",children:[{value:"\u5929\u6D25",label:"\u5929\u6D25"},{value:"\u548C\u5E73",label:"\u548C\u5E73"},{value:"\u4E1C\u4E3D",label:"\u4E1C\u4E3D"},{value:"\u6CB3\u4E1C",label:"\u6CB3\u4E1C"},{value:"\u897F\u9752",label:"\u897F\u9752"},{value:"\u6CB3\u897F",label:"\u6CB3\u897F"},{value:"\u6D25\u5357",label:"\u6D25\u5357"},{value:"\u5357\u5F00",label:"\u5357\u5F00"},{value:"\u5317\u8FB0",label:"\u5317\u8FB0"},{value:"\u6CB3\u5317",label:"\u6CB3\u5317"},{value:"\u6B66\u6E05",label:"\u6B66\u6E05"},{value:"\u7EA2\u6322",label:"\u7EA2\u6322"},{value:"\u5858\u6CBD",label:"\u5858\u6CBD"},{value:"\u6C49\u6CBD",label:"\u6C49\u6CBD"},{value:"\u5927\u6E2F",label:"\u5927\u6E2F"},{value:"\u5B81\u6CB3",label:"\u5B81\u6CB3"},{value:"\u9759\u6D77",label:"\u9759\u6D77"},{value:"\u5B9D\u577B",label:"\u5B9D\u577B"},{value:"\u84DF\u53BF",label:"\u84DF\u53BF"}]},{value:"\u65B0\u7586",label:"\u65B0\u7586",children:[{value:"\u4E4C\u9C81\u6728\u9F50",label:"\u4E4C\u9C81\u6728\u9F50"},{value:"\u963F\u514B\u82CF",label:"\u963F\u514B\u82CF"},{value:"\u963F\u52D2\u6CF0",label:"\u963F\u52D2\u6CF0"},{value:"\u963F\u56FE\u4EC0",label:"\u963F\u56FE\u4EC0"},{value:"\u535A\u4E50",label:"\u535A\u4E50"},{value:"\u660C\u5409",label:"\u660C\u5409"},{value:"\u4E1C\u5C71",label:"\u4E1C\u5C71"},{value:"\u54C8\u5BC6",label:"\u54C8\u5BC6"},{value:"\u548C\u7530",label:"\u548C\u7530"},{value:"\u5580\u4EC0",label:"\u5580\u4EC0"},{value:"\u514B\u62C9\u739B\u4F9D",label:"\u514B\u62C9\u739B\u4F9D"},{value:"\u5E93\u8F66",label:"\u5E93\u8F66"},{value:"\u5E93\u5C14\u52D2",label:"\u5E93\u5C14\u52D2"},{value:"\u594E\u5C6F",label:"\u594E\u5C6F"},{value:"\u77F3\u6CB3\u5B50",label:"\u77F3\u6CB3\u5B50"},{value:"\u5854\u57CE",label:"\u5854\u57CE"},{value:"\u5410\u9C81\u756A",label:"\u5410\u9C81\u756A"},{value:"\u4F0A\u5B81",label:"\u4F0A\u5B81"}]},{value:"\u897F\u85CF",label:"\u897F\u85CF",children:[{value:"\u62C9\u8428",label:"\u62C9\u8428"},{value:"\u963F\u91CC",label:"\u963F\u91CC"},{value:"\u660C\u90FD",label:"\u660C\u90FD"},{value:"\u6797\u829D",label:"\u6797\u829D"},{value:"\u90A3\u66F2",label:"\u90A3\u66F2"},{value:"\u65E5\u5580\u5219",label:"\u65E5\u5580\u5219"},{value:"\u5C71\u5357",label:"\u5C71\u5357"}]},{value:"\u4E91\u5357",label:"\u4E91\u5357",children:[{value:"\u6606\u660E",label:"\u6606\u660E"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4FDD\u5C71",label:"\u4FDD\u5C71"},{value:"\u695A\u96C4",label:"\u695A\u96C4"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4E1C\u5DDD",label:"\u4E1C\u5DDD"},{value:"\u4E2A\u65E7",label:"\u4E2A\u65E7"},{value:"\u666F\u6D2A",label:"\u666F\u6D2A"},{value:"\u5F00\u8FDC",label:"\u5F00\u8FDC"},{value:"\u4E34\u6CA7",label:"\u4E34\u6CA7"},{value:"\u4E3D\u6C5F",label:"\u4E3D\u6C5F"},{value:"\u516D\u5E93",label:"\u516D\u5E93"},{value:"\u6F5E\u897F",label:"\u6F5E\u897F"},{value:"\u66F2\u9756",label:"\u66F2\u9756"},{value:"\u601D\u8305",label:"\u601D\u8305"},{value:"\u6587\u5C71",label:"\u6587\u5C71"},{value:"\u897F\u53CC\u7248\u7EB3",label:"\u897F\u53CC\u7248\u7EB3"},{value:"\u7389\u6EAA",label:"\u7389\u6EAA"},{value:"\u4E2D\u7538",label:"\u4E2D\u7538"},{value:"\u662D\u901A",label:"\u662D\u901A"}]},{value:"\u6D59\u6C5F",label:"\u6D59\u6C5F",children:[{value:"\u676D\u5DDE",label:"\u676D\u5DDE"},{value:"\u6E29\u5DDE",label:"\u6E29\u5DDE"},{value:"\u5B89\u5409",label:"\u5B89\u5409"},{value:"\u6148\u6EAA",label:"\u6148\u6EAA"},{value:"\u5B9A\u6D77",label:"\u5B9A\u6D77"},{value:"\u5949\u5316",label:"\u5949\u5316"},{value:"\u6D77\u76D0",label:"\u6D77\u76D0"},{value:"\u9EC4\u5CA9",label:"\u9EC4\u5CA9"},{value:"\u6E56\u5DDE",label:"\u6E56\u5DDE"},{value:"\u5609\u5174",label:"\u5609\u5174"},{value:"\u91D1\u534E",label:"\u91D1\u534E"},{value:"\u4E34\u5B89",label:"\u4E34\u5B89"},{value:"\u4E34\u6D77",label:"\u4E34\u6D77"},{value:"\u4E3D\u6C34",label:"\u4E3D\u6C34"},{value:"\u5B81\u6CE2",label:"\u5B81\u6CE2"},{value:"\u74EF\u6D77",label:"\u74EF\u6D77"},{value:"\u5E73\u6E56",label:"\u5E73\u6E56"},{value:"\u5343\u5C9B\u6E56",label:"\u5343\u5C9B\u6E56"},{value:"\u8862\u5DDE",label:"\u8862\u5DDE"},{value:"\u6C5F\u5C71",label:"\u6C5F\u5C71"},{value:"\u745E\u5B89",label:"\u745E\u5B89"},{value:"\u7ECD\u5174",label:"\u7ECD\u5174"},{value:"\u5D4A\u5DDE",label:"\u5D4A\u5DDE"},{value:"\u53F0\u5DDE",label:"\u53F0\u5DDE"},{value:"\u6E29\u5CAD",label:"\u6E29\u5CAD"},{value:"\u4F59\u59DA",label:"\u4F59\u59DA"},{value:"\u821F\u5C71",label:"\u821F\u5C71"}]},{value:"\u6D77\u5916",label:"\u6D77\u5916",children:[{value:"\u7F8E\u56FD",label:"\u7F8E\u56FD"},{value:"\u65E5\u672C",label:"\u65E5\u672C"},{value:"\u82F1\u56FD",label:"\u82F1\u56FD"},{value:"\u6CD5\u56FD",label:"\u6CD5\u56FD"},{value:"\u5FB7\u56FD",label:"\u5FB7\u56FD"},{value:"\u5176\u4ED6",label:"\u5176\u4ED6"}]}]},24768:function(un,Yn,St){"use strict";St.d(Yn,{AL:function(){return Pt},Iy:function(){return xe},Qv:function(){return Ft},ez:function(){return yt},jb:function(){return ze}});var ot=St(32834),Tt=St.n(ot),ae=St(11690),$e=St.n(ae);let fe=1;function ve(re,ie){const Me=re.match(/^(\s+)(?:```)/);if(Me===null)return ie;const pe=Me[1];return ie.split(` +3.\u7F16\u7A0B\u9898\u8003\u5BDF\u77E5\u8BC6\u70B9:\u53D8\u91CF\u5B9A\u4E49\u3001\u6570\u636E\u7C7B\u578B\u3002\u96BE\u5EA6\u4E3A\u201C\u56F0\u96BE\u201D\u7684\u8BD5\u9898\u536020%`,[wo,$i]=(0,ot.useState)(!1),[li,Gi]=(0,ot.useState)([]),[bo,Qo]=(0,ot.useState)(null),[Vo,Fo]=(0,ot.useState)(!1),[fo,Sr]=(0,ot.useState)([]),[Fr,Rr]=(0,ot.useState)(0),[Br,Ga]=(0,ot.useState)(0),[Za,Pa]=(0,ot.useState)(!1),[ka,Ar]=(0,ot.useState)(""),[Ta,oo]=(0,ot.useState)(Zi),[Ro,Go]=(0,ot.useState)(0),[Jo,Ia]=(0,ot.useState)(0),[rr,Aa]=(0,ot.useState)(0),[ms,Qa]=(0,ot.useState)(0),[Dr,Ja]=(0,ot.useState)(0),[Vi,Co]=(0,ot.useState)(0),[Cr,No]=(0,ot.useState)(0),[xr,br]=(0,ot.useState)(0),[Tr,jr]=(0,ot.useState)(Ct.Q),{contentRef:bs,value:Ca,status:Ua,open:qs,close:Ma}=Tr,Nl=(0,Mn.Z)({contentRef:bs,status:Ua}),{openProgress:ul,closeProgress:qa,CreateProgressModal:vl,progressOpen:Vr}=(0,zt.Z)();(0,ot.useEffect)(()=>{bo&&wh(),bo===!1&&(Ma(),Ne==null||Ne(),Gi([]),oo(Zi),Go(0),Ia(0),Aa(0),Qa(0),Ja(0),Co(0),No(0),br(0))},[bo]),(0,ot.useEffect)(()=>{if(!Ua&&(bs!=null&&bs.current)){const Xo=bs.current.querySelector('h2[data-type="title"]');if(Xo){const Ra=Xo.textContent;Ar(Ra)}}},[Ua]);const kl=()=>{Fo(!0)};(0,ot.useImperativeHandle)(qe,()=>({onClick:kl}));const su=Xo=>{Pa(!0),Rr(Xo),Ga(0)},Nu=Xo=>Qs(void 0,null,function*(){const Ra=Xo.name.split(".").slice(-1)[0].toLowerCase();return["docx","doc","pdf","png","jpg"].indexOf(Ra)==-1?(Fn.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u683C\u5F0F\u6709\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):Xo.size/1024/1024>10?(Fn.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):!0}),eh=Xo=>{Xo==="1"&&(0,nt.xg)("/paperlibrary"),Xo==="2"&&(Fo(!1),Qo(!0))},wh=()=>Qs(void 0,null,function*(){const Xo=yield(0,Dn.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});Xo.status===0&&(Rr(Xo.total_number),Ga(Xo.remaining_number))}),nh=Xo=>(Xo=Xo||"",Xo=String(Xo),Xo=Xo.replace(/\s+/g,""),Xo),Eh=()=>Qs(void 0,null,function*(){var Xo,Ra;if(nh(Ta)){if(Ta.length>1e3){Fn.ZP.warning("\u51FA\u9898\u8981\u6C42\u5B57\u6570\u9650\u5236\u4E3A1000\u5B57");return}}else{Fn.ZP.warning("\u8BF7\u5148\u8F93\u5165\u51FA\u9898\u8981\u6C42");return}if(!nh(Ta)&&!(li!=null&&li.length)){Fn.ZP.warning("\u8BF7\u4E0A\u4F20\u6750\u6599\u6587\u6863\u6216\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6750\u6599\u5185\u5BB9");return}const ls=[{name:"\u5355\u9009\u9898",num:Ro||0},{name:"\u591A\u9009\u9898",num:Jo||0},{name:"\u5224\u65AD\u9898",num:rr||0},{name:"\u586B\u7A7A\u9898",num:ms||0},{name:"\u7B80\u7B54\u9898",num:Dr||0},{name:"\u7EC4\u5408\u9898",num:xr||0},{name:"\u7F16\u7A0B\u9898",num:Vi||0},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",num:Cr||0}],ic=ls.reduce((lu,oh)=>lu+oh.num,0);if(ic===0){Fn.ZP.warning("\u8BF7\u8BBE\u7F6E\u51FA\u9898\u6570\u91CF");return}if(ic>50){Fn.ZP.warning("\u51FA\u9898\u6570\u91CF\u8FBE\u5230\u9650\u5236");return}Pa(!1);const Ph={scene_type:10,request_identifier:Math.random(),file_id:(Ra=(Xo=li[0])==null?void 0:Xo.response)==null?void 0:Ra.id,content:Ta,count_arr:ls.map(lu=>lu.num).join(",")};yield qs(Ph),wh()}),fr=()=>Qs(void 0,null,function*(){const Xo=Nl();if(Ze){Qo(!1),Ze(Xo);return}ul(),$i(!0),Sr([]);const Ra=new FormData;Ra.append("html",Xo);const ls=yield(0,Dn.ZP)("/api/intelligent_imports/import.json",{method:"post",body:Ra},!0);if((ls==null?void 0:ls.status)===0)if(ls!=null&&ls.data){qa(100),Sr(ls==null?void 0:ls.data);return}else Fn.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898");$i(!1),qa()}),nc=()=>Qs(void 0,null,function*(){const Xo=Nl();(0,nt.RG)(Xo)}),Hc=[{icon:nr,name:"\u4EE5\u5377\u6362\u5377",description:"\u5927\u6A21\u578B\u6839\u636E\u5DF2\u6709\u8BD5\u5377\u7684\u9898\u578B\u3001\u65B9\u5411\u3001\u77E5\u8BC6\u70B9\u3001\u96BE\u6613\u5EA6\uFF0C\u5FEB\u901F\u751F\u6210\u65B0\u7684\u8BD5\u5377\uFF0C\u589E\u52A0\u8BD5\u5377\u7684\u4E30\u5BCC\u5EA6\u3002",explainHref:"https://www.educoder.net/forums/40403",btnText:"\u53BB\u51FA\u5377",type:"1"},{icon:as,name:"\u667A\u80FD\u51FA\u5377",description:"\u8BBE\u7F6E\u8BD5\u5377\u4E2D\u7684\u9898\u578B\u4E0E\u5BF9\u5E94\u7684\u51FA\u9898\u8981\u6C42\u3001\u51FA\u9898\u6570\u91CF\uFF0C\u5927\u6A21\u578B\u5FEB\u901F\u7406\u89E3\u5E76\u751F\u6210\u65B0\u7684\u8BD5\u5377\uFF0C\u589E\u52A0\u8BD5\u5377\u7684\u4E30\u5BCC\u5EA6\u3002",explainHref:"https://www.educoder.net/forums/40404",btnText:"\u7ACB\u5373\u51FA\u5377",type:"2"}],Wc=["uploading","error"].includes((ci=li==null?void 0:li[0])==null?void 0:ci.status);return ot.createElement(ot.Fragment,null,ot.createElement(Ft.default,{centered:!0,open:Vo,title:"\u667A\u80FD\u51FA\u5377",width:850,onCancel:()=>Fo(!1),footer:null,bodyStyle:{paddingBottom:25}},Hc.map((Xo,Ra)=>{const{icon:ls,name:ic,description:ih,explainHref:Ph,type:lu,btnText:oh}=Xo;return ot.createElement("div",{key:Ra,style:{marginBottom:Raeh(lu),style:{width:88},className:"mt20",type:"primary"},oh))))})),ot.createElement(le.Z,{visible:Za,totalCount:Fr,usedCount:Br,onCancel:()=>Pa(!1),onOk:Eh}),ot.createElement(Lo.Z,{title:"\u667A\u80FD\u51FA\u5377",extra:ot.createElement("div",{className:on.extraHeader},ot.createElement(Je.Z,{align:"middle"},!Ua&&!!Ca&&ot.createElement(ot.Fragment,null,ot.createElement($t.op,{onClick:fr,className:"mr15",shape:"default"},"\u4FDD\u5B58\u8BD5\u5377"),ot.createElement($t.op,{onClick:nc,shape:"default",type:"text"},ot.createElement("i",{className:"iconfont icon-fuzhi8 mr5 font14"}),"\u590D\u5236")),ot.createElement("i",{onClick:()=>{const Xo=Ra=>{Ft.default.confirm({centered:!0,icon:null,width:500,zIndex:1101,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Ra,onOk:()=>{Qo(!1)}})};if(Ua){Xo("\u6B63\u5728\u751F\u6210\u8BD5\u9898\u4E2D\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F");return}else Ca?Xo("\u8BD5\u9898\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F"):Qo(!1)},className:"iconfont icon-guanbi11 current ml15"}))),placement:"bottom",height:"100%",headerStyle:{height:54,borderBottomColor:"#DCDCDC"},bodyStyle:{padding:0},closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:bo},ot.createElement("div",{className:on.wrap},ot.createElement("div",{className:on.left},ot.createElement("div",{className:on.tip},ot.createElement("img",{src:ca}),ot.createElement("span",null,"\u60A8\u597D\uFF01\u6211\u662F\u60A8\u7684\u667A\u80FD\u51FA\u5377\u52A9\u624B\uFF0C\u6211\u5DF2\u5B66\u4E60\u4E86\u5E73\u53F0\u4EE5\u53CA\u4E92\u8054\u7F51\u4E0A\u6D77\u91CF\u7684\u8BD5\u9898\u77E5\u8BC6\u5E93\u3002\u53EF\u4EE5\u6839\u636E\u60A8\u7684\u51FA\u9898\u8981\u6C42\u548C\u4E0A\u4F20\u7684\u6750\u6599\u7075\u6D3B\u751F\u6210\u8BD5\u5377\u3002\u6B22\u8FCE\u968F\u65F6\u4E0E\u6211\u4E92\u52A8\uFF0C\u8BA9\u6211\u4EEC\u4E00\u8D77\u6253\u9020\u66F4\u9AD8\u6548\u3001\u66F4\u4F18\u8D28\u7684\u8BD5\u5377!")),ot.createElement("div",{className:"mb10 mt20 c-black"},ot.createElement("b",null,"\u51FA\u9898\u8981\u6C42")),ot.createElement(ha.default.TextArea,{style:{height:160},className:"mb20",value:Ta,placeholder:"\u8BF7\u5148\u63D0\u4F9B\u60A8\u51FA\u9898\u4F9D\u636E\u7684\u6750\u6599\uFF0C\u53EF\u4EE5\u76F4\u63A5\u590D\u5236\u6750\u6599\u5185\u5BB9\u7C98\u8D34\u5728\u6B64\u533A\u57DF\uFF0C\u4E5F\u53EF\u70B9\u51FB\u4E0B\u65B9\u4E0A\u4F20\u6750\u6599\u6309\u94AE\u4E0A\u4F20\u672C\u5730\u6750\u6599\u6587\u6863",onChange:Xo=>{oo(Xo.target.value)}}),ot.createElement(Zo.default,{accept:".doc,.docx,.pdf,.png,.jpg",action:`${He.Z.API_SERVER}/api/attachments.json`,maxCount:1,fileList:li,withCredentials:!0,data:{upload_type:1},beforeUpload:Nu,onChange:({file:Xo})=>{var Ra,ls;Xo.status!=="removed"&&(Xo.status==="done"&&((Ra=Xo==null?void 0:Xo.response)==null?void 0:Ra.status)!==0&&(Xo.status="error",Xo.response=(ls=Xo==null?void 0:Xo.response)==null?void 0:ls.message),Gi([Xo]))},onRemove:()=>Gi([])},ot.createElement(Pt.Z,{title:"\u5355\u6B21\u4EC5\u652F\u6301\u4E0A\u4F201\u4E2A\u6587\u6863\u62161\u5F20\u56FE\u7247\uFF0C\u6587\u6863\u652F\u6301PDF/Word\u683C\u5F0F\uFF0C\u56FE\u7247\u652F\u63011\u5F20\u4E0D\u8D85\u8FC710M\u7684PNG/JPG\u56FE\u7247"},ot.createElement($t.op,{style:{borderRadius:2}},ot.createElement("i",{className:"icon-shangchuan3 mr5"}),"\u4E0A\u4F20\u6750\u6599"))),ot.createElement("div",{className:"c-black mt20"},ot.createElement("div",{className:"mb10 c-black"},ot.createElement("b",null,"\u51FA\u9898\u8981\u6C42"),ot.createElement("span",{className:"c-grey-999"},"\uFF08\u4E3A\u4FDD\u8BC1\u51FA\u9898\u4F53\u9A8C\uFF0C\u5355\u6B21\u51FA\u9898\u603B\u6570\u91CF\u4E0D\u80FD\u8D85\u8FC7",ot.createElement("span",{style:{padding:"0 6px",color:"#FB901F"}},"50"),"\u9053\uFF09")),ot.createElement(Je.Z,{style:{gap:16}},ot.createElement(Cn.Z,null,ot.createElement("label",null,"\u5355\u9009\u9898"),ot.createElement(ga.Z,{min:0,max:10,value:Ro,onChange:Go,style:{marginLeft:"8px"}})),ot.createElement(Cn.Z,null,ot.createElement("label",null,"\u591A\u9009\u9898"),ot.createElement(ga.Z,{min:0,max:10,value:Jo,onChange:Ia,style:{marginLeft:"8px"}})),ot.createElement(Cn.Z,null,ot.createElement("label",null,"\u5224\u65AD\u9898"),ot.createElement(ga.Z,{min:0,max:10,value:rr,onChange:Aa,style:{marginLeft:"8px"}})),ot.createElement(Cn.Z,null,ot.createElement("label",null,"\u586B\u7A7A\u9898"),ot.createElement(ga.Z,{min:0,max:10,value:ms,onChange:Qa,style:{marginLeft:"8px"}})),ot.createElement(Cn.Z,null,ot.createElement("label",null,"\u7B80\u7B54\u9898"),ot.createElement(ga.Z,{min:0,max:10,value:Dr,onChange:Ja,style:{marginLeft:"8px"}})),ot.createElement(Cn.Z,null,ot.createElement("label",null,"\u7EC4\u5408\u9898"),ot.createElement(ga.Z,{min:0,max:10,value:xr,onChange:br,style:{marginLeft:"8px"}})),ot.createElement(Cn.Z,null,ot.createElement("label",null,"\u7F16\u7A0B\u9898"),ot.createElement(ga.Z,{min:0,max:10,value:Vi,onChange:Co,style:{marginLeft:"8px"}})),ot.createElement(Cn.Z,null,ot.createElement("label",null,"\u7A0B\u5E8F\u586B\u7A7A\u9898"),ot.createElement(ga.Z,{min:0,max:10,value:Cr,onChange:No,style:{marginLeft:"8px"}})))),Ua?ot.createElement("div",{onClick:Ma,className:on.bottomBtn},ot.createElement("i",{className:"iconfont icon-tingzhihuida"}),"\u505C\u6B62\u51FA\u5377"):Wc?ot.createElement("div",{className:`${on.bottomBtn} ${on.disabled}`},ot.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u5377"):ot.createElement("div",{onClick:()=>{if(Fr!==-1){Pa(!0);return}Eh()},className:on.bottomBtn},ot.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u5377")),ot.createElement(Ct.Z,{onStatusChange:jr,loadingText:"\u8BD5\u5377\u751F\u6210\u4E2D",fetchUrl:"/api/stream/intelligent_imports/stream.json",showEditableToolbar:!Vr,noRestrictModal:su,stringTransformer:Jn.o,onError:Xo=>{Object.prototype.toString.call(Xo)==="[object Object]"&&Xo.status===-9&&su(Xo.data)}}))),ot.createElement(Lo.Z,{placement:"bottom",height:"100%",closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:wo},ot.createElement(Je.Z,{align:"middle",style:{margin:"8px auto 24px auto",width:1200,fontWeight:600},className:"c-black font18"},ot.createElement("img",{src:St(64978),alt:"\u667A\u80FD\u51FA\u5377"}),ot.createElement("span",{className:"ml10"},"\u667A\u80FD\u51FA\u5377")),ot.createElement(tn.Z,{stickyTop:-24,hideWordFeatures:!0,dataSource:fo,gather:{course_id:(Xi=(0,$e.g)())==null?void 0:Xi.course_id,exercise_name:ka},okText:"\u786E\u5B9A",mode:5,onCancel:()=>{$i(!1)},onSuccess:Xo=>{var Ra;window.location.href=`/classrooms/${(Ra=(0,$e.g)())==null?void 0:Ra.course_id}/exercise`}}),ot.createElement("div",{style:{height:70}})),vl("\u5904\u7406\u4E2D"))}),ir={bigTips:"bigTips___mewBX",item:"item___OHFMs",show:"show___dsJVI",mask:"mask___h4LAC",btnWarp:"btnWarp___e9Svq",active:"active___qzKJK",hot:"hot___PbZhD",title:"title___q5BhY",listWrap:"listWrap___MAOqx",box:"box___Z_XBI",li:"li___Glbhe",content:"content___y7ZPm",borderBox:"borderBox____3_NP",text:"text___iKvBa",source:"source___fArQ5",action:"action___p4LQG",teacher:"teacher___MnWE2",tip1:"tip1___wzzkN",tip2:"tip2___hA87f",tag:"tag___Rrjg6"},Or=Object.defineProperty,ya=Object.getOwnPropertySymbols,Au=Object.prototype.hasOwnProperty,ru=Object.prototype.propertyIsEnumerable,Wo=(Ne,Ze,qe)=>Ze in Ne?Or(Ne,Ze,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Ne[Ze]=qe,_u=(Ne,Ze)=>{for(var qe in Ze||(Ze={}))Au.call(Ze,qe)&&Wo(Ne,qe,Ze[qe]);if(ya)for(var qe of ya(Ze))ru.call(Ze,qe)&&Wo(Ne,qe,Ze[qe]);return Ne};const Ul=Ne=>React.createElement("svg",_u({width:17,height:21,xmlns:"http://www.w3.org/2000/svg"},Ne),React.createElement("title",null,"\u{1F525}"),React.createElement("text",{transform:"translate(-22 -23)",fill:"#232B40",fillRule:"evenodd",fontFamily:"AppleColorEmoji, Apple Color Emoji",fontSize:18},React.createElement("tspan",{x:20,y:41},"\u{1F525}")));var Ls="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHRleHQgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIyIC0yMykiIGZpbGw9IiMyMzJCNDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZm9udC1mYW1pbHk9IkFwcGxlQ29sb3JFbW9qaSwgQXBwbGUgQ29sb3IgRW1vamkiIGZvbnQtc2l6ZT0iMTgiPgogICAgICAgICAgICAgICAgICAgICAgICA8dHNwYW4geD0iMjAiIHk9IjQxIj7wn5SlPC90c3Bhbj4KICAgICAgICAgICAgICAgICAgICA8L3RleHQ+PC9zdmc+",ts="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAArxJREFUOE+N00tIVFEYB/D/Ofcxd8Y7zjgzlQ8mnzCmlVGRBUZl0oMkJKhN9NhF0CaC2lrQpkWbaNMiIlsFRREiRaDQA6pFVFBY2UNKc8THeOd17z3nfKFhFFl09t+P/8f5fwx/eTSyJiSz6CIyV/CCl3Ed8dBMhI6K0ckzVvvg4PwYW2i++G5NvWmyXljJFFgSNP0c5GQgpgXyE9QZ2/em968ADbZUUYA/gJ6oRUkbSChQ+h5kPgdFIUDoTy1X38S2DBRnkd8S0Ou1y8mUt8D1egRqQEYDyHkDlfkI6esQLAGmRSEy6SPR9v5LPwHxad0upthu+OIAhAxC4yBuA7BAhQlIV0JIC1KrhEIMRv5Tj735/sE5gN6vPkYB/QKMSiCQAuXGIdMvQMIHNAaSDEpyCApD6tWA54AX8+cjHXdPzAHi4fIbzijfo1sKgWQU+uJGkCpApl9DZH2A61DMgGAxKL4Eem6IPFa3IdHe82QOmLzZtL/wWbvmT+ehGR5KlhoINYTBA4B0FYTLQTChjDiILBju1DO7Y6B1NvyPFbrBJ2pSNwrjqosrD7NJ7MY4lHLBNIKCDmVEQEoHh4KU9qnYtr5zv33j+O1U2MipO8qVmzSLYJaXIv+lAB4yoYQHZQahJWphemPwKdle1nG9/48epK8323bQvazZxl6+qAEIREDCgTf+Dc7bSSAchV1ZAdeLtia2Xn26YJG6u8FPrm86blXXnEZZcwkpDyr7Ht7IMCZfFhGssKGFgwfLdjzu+XeV+1Iprbz8vBZL7iTKMnI+IPtBIDvsw6qKn403+hfh+zOs5WVuwVuY1/N9TW1GRD9O0t8ucyiZGTJngnXxw6GKmS08HFrljPld/wTmoYlrraWcvNpCPvI1sXK6U6uIVamC22Ise7Tvv4BfLzbzuDkW0IJXip57KLrx1dR3dFo2IutLG2QAAAAASUVORK5CYII=",Vl=St(56102),Yl=Object.defineProperty,fs=Object.defineProperties,sl=Object.getOwnPropertyDescriptors,ti=Object.getOwnPropertySymbols,To=Object.prototype.hasOwnProperty,Ko=Object.prototype.propertyIsEnumerable,ar=(Ne,Ze,qe)=>Ze in Ne?Yl(Ne,Ze,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Ne[Ze]=qe,Ir=(Ne,Ze)=>{for(var qe in Ze||(Ze={}))To.call(Ze,qe)&&ar(Ne,qe,Ze[qe]);if(ti)for(var qe of ti(Ze))Ko.call(Ze,qe)&&ar(Ne,qe,Ze[qe]);return Ne},sr=(Ne,Ze)=>fs(Ne,sl(Ze)),Zr=(Ne,Ze,qe)=>new Promise((ci,Xi)=>{var Zi=li=>{try{$i(qe.next(li))}catch(Gi){Xi(Gi)}},wo=li=>{try{$i(qe.throw(li))}catch(Gi){Xi(Gi)}},$i=li=>li.done?ci(li.value):Promise.resolve(li.value).then(Zi,wo);$i((qe=qe.apply(Ne,Ze)).next())}),es=()=>{const Ne=(0,fe.useLocation)(),Ze=(0,fe.useDispatch)(),qe=(0,fe.useSelector)(Vi=>{var Co;return(Co=Vi==null?void 0:Vi.classroomList)==null?void 0:Co.courseAiData}),ci=(0,fe.useSelector)(Vi=>{var Co;return(Co=Vi==null?void 0:Vi.user)==null?void 0:Co.userInfo}),[Xi,Zi]=(0,ot.useState)(!1),[wo,$i]=(0,ot.useState)(!1),[li,Gi]=(0,ot.useState)(!1),[bo,Qo]=(0,ot.useState)(null),[Vo,Fo]=(0,ot.useState)(""),[fo,Sr]=(0,ot.useState)([]),[Fr,Rr]=(0,ot.useState)(!1),[Br,Ga]=(0,ot.useState)(!1),Za=(0,ot.useRef)({}),Pa=(0,ot.useRef)({}),ka=qe==null?void 0:qe.id,Ar=(0,fe.useParams)();(0,ot.useEffect)(()=>{var Vi;if(((Vi=Ne.pathname)==null?void 0:Vi.slice(0,11))==="/classrooms"&&!Ta()){Zi(!0);return}Zi(!1)},[Ne==null?void 0:Ne.pathname]),(0,ot.useEffect)(()=>{var Vi;ci!=null&&ci.login&&((Vi=ci==null?void 0:ci.course)==null?void 0:Vi.course_role)===15&&ka&&oo(),ka&&Ga(qe==null?void 0:qe.have_tiding)},[ci==null?void 0:ci.login,ka]),(0,ot.useEffect)(()=>{var Vi,Co;((Vi=Ne.pathname)==null?void 0:Vi.slice(0,11))==="/classrooms"&&!ka&&!Ta()&&(Ar==null?void 0:Ar.coursesId)!="coursesId"&&Ze({type:"classroomList/getCourseAiData",payload:{course_id:((Co=(0,$e.g)())==null?void 0:Co.course_id)||(Ar==null?void 0:Ar.coursesId)}})},[Ne==null?void 0:Ne.pathname]);const Ta=()=>{const Vi=Ne.pathname,Co=Vi==="/classrooms",Cr=Vi==="/classrooms/new",No=Vi.includes("/initate_answer"),xr=/^\/classrooms\/[^\/]+\/exercise\/[^\/]+\/users\/[^\/]+$/.test(Vi);return Co||Cr||No||xr},oo=()=>Zr(void 0,null,function*(){var Vi;let Co=yield(0,Dn.ZP)("/api/course_qna_sets/top.json",{method:"get",params:{course_id:ka}});(Co==null?void 0:Co.status)===0&&Sr(((Vi=Co==null?void 0:Co.data)==null?void 0:Vi.list)||[])}),Ro=[{img:St(95502),name:"\u667A\u80FD\u95EE\u7B54",des:"\u4E3A\u8BFE\u5802\u63D0\u4F9B\u5B9E\u65F6\u4E92\u52A8\u652F\u6301\u3002\u6559\u5E08\u53EF\u4E0A\u4F20\u95EE\u7B54\u96C6\uFF0C\u6253\u9020\u4E13\u5C5E\u667A\u80FD\u52A9\u6559\uFF0C\u5B9E\u73B0\u7CBE\u51C6\u89E3\u7B54",show:!0,ref:ot.createRef(),element:ia},{img:St(94053),name:"\u667A\u80FD\u8BC4\u9605",des:"\u81EA\u52A8\u6279\u6539\u4F5C\u4E1A\u548C\u8BD5\u5377\u7684\u4E3B\u89C2\u9898\uFF0C\u667A\u80FD\u6253\u5206\u5E76\u751F\u6210\u8BC4\u8BED\uFF0C\u4E3A\u6559\u5E08\u63D0\u5347\u8BC4\u9605\u6548\u7387",show:!0,ref:ot.createRef(),element:so},{img:St(68763),name:"\u9519\u9898\u63A8\u9001",des:"\u6839\u636E\u5B66\u751F\u5728\u8BFE\u5802\u4F5C\u4E1A\u548C\u6D4B\u9A8C\u4E2D\u7684\u9519\u8BEF\u8BD5\u9898\uFF0C\u751F\u6210\u76F8\u5173\u77E5\u8BC6\u70B9\u7684\u65B0\u8BD5\u9898\u4F9B\u5B66\u751F\u5DE9\u56FA\u7EC3\u4E60"},{img:St(64978),name:"\u667A\u80FD\u51FA\u5377",des:"\u6839\u636E\u5DF2\u6709\u8BD5\u5377\u667A\u80FD\u751F\u6210\u65B0\u8BD5\u5377\u4F9B\u5B66\u751F\u6269\u5C55\u7EC3\u4E60\uFF0C\u4E3A\u6559\u5E08\u548C\u5B66\u751F\u63D0\u4F9B\u66F4\u4E30\u5BCC\u7684\u8BD5\u5377\u8D44\u6E90",show:!0,ref:ot.createRef(),element:Mi},{img:St(20736),name:"\u7F16\u7801\u52A9\u624B",des:"\u63D0\u4F9B\u542F\u53D1\u5F0F\u52A9\u5B66\u80FD\u529B\uFF0C\u4E3A\u5B66\u751F\u63D0\u4F9B\u667A\u80FD\u5BA1\u9898\u3001\u4EE3\u7801\u8BCA\u65AD\u548CAI\u8F85\u5BFC\u529F\u80FD\uFF0C\u63D0\u4F9B\u7F16\u7A0B\u89E3\u9898\u601D\u8DEF\uFF0C\u63D0\u5347\u7F16\u7A0B\u80FD\u529B",show:!0,ref:ot.createRef(),element:Yo},{img:St(41430),name:"\u6570\u5B57\u5206\u8EAB",des:"\u6839\u636E\u6559\u5E08\u5F62\u8C61\u521B\u5EFA\u865A\u62DF\u6570\u5B57\u4EBA\uFF0C\u66FF\u4EE3\u6559\u5E08\u8FDB\u884C\u6388\u8BFE\u548C\u95EE\u9898\u89E3\u7B54\uFF0C\u63D0\u5347\u8BFE\u5802\u4E92\u52A8\u4E0E\u6559\u5B66\u6548\u679C"}],Go=Vi=>{const{isDisabledNum:Co,checkNumModal:Cr,checkNum:No,onClose:xr}=Vi;return ot.createElement("div",{className:ir.bigTips},Ro.map((br,Tr)=>ot.createElement("div",{key:Tr,onClick:()=>{var jr,bs;if(br.show){if(Co){Cr();return}(bs=(jr=br.ref)==null?void 0:jr.current)==null||bs.onClick()}},className:We()(ir.item,(br==null?void 0:br.show)&&ir.show)},ot.createElement(Je.Z,{align:"middle"},ot.createElement("img",{className:"mr10",src:br.img,width:24}),ot.createElement("span",{style:{color:"#232B40",fontSize:16,fontWeight:600}},br.name)),ot.createElement("div",{className:"mt10",style:{color:"#434D6C",paddingLeft:34}},br.des),!(br!=null&&br.show)&&ot.createElement("div",{className:ir.mask},"\u656C\u8BF7\u671F\u5F85\uFF5E"),!!(br!=null&&br.show)&&ot.createElement("div",{onClick:jr=>jr.stopPropagation()}," ",ot.createElement(br.element,{ref:br.ref,onUpdateNum:No,onClose:xr})))))},Jo=Vi=>{const{setChatData:Co,setLoading:Cr,getData:No,clearStatus:xr,typing:br,renderChatItems:Tr}=Vi,jr=Ca=>{if(br){Fn.ZP.warning("\u8BF7\u7B49\u5F85\u4EFB\u52A1\u5B8C\u6210");return}Cr(!0),xr();const Ua=Tr(Ca.title);Co(Ua),No(Ca.title)},bs=["#E30000","#FA6400","#F58B1B"];return fo.length===0?ot.createElement(ot.Fragment,null):ot.createElement("div",{className:ir.hot},ot.createElement("div",{className:ir.title},ot.createElement("img",{src:Ls,width:17}),"\u70ED\u95E8\u95EE\u9898"),ot.createElement("div",{className:ir.listWrap},ot.createElement(Je.Z,{style:{width:"100%"}},ot.createElement("div",{className:ir.box,style:{paddingRight:10}},fo.slice(0,5).map((Ca,Ua)=>ot.createElement(Pt.Z,{key:Ua,title:Ca.title},ot.createElement("aside",{onClick:()=>jr(Ca)},ot.createElement("b",{style:{color:bs[Ua]}},Ua+1,".\xA0"),ot.createElement("span",null,Ca.title))))),ot.createElement("div",{className:ir.box},fo.slice(5).map((Ca,Ua)=>ot.createElement(Pt.Z,{key:Ua,title:Ca.title},ot.createElement("aside",{onClick:()=>jr(Ca)},ot.createElement("b",null,Ua+6,".\xA0"),ot.createElement("span",null,Ca.title))))))))},Ia=Vi=>Zr(void 0,[Vi],function*({type:Co,value:Cr,index:No,identifier:xr,objectIndex:br}){const Tr={index:br,identifier:xr,course_id:ka};if(Co==="like"&&(yield(0,Dn.ZP)("/api/course_qna_records/like.json",{method:"post",body:Tr})).status!==0)return Promise.reject();if(Co==="dislike"){if((0,Sn.dE)()&&Cr)$i(!0),Pa.current=Tr,yield new Promise((jr,bs)=>{Za.current={resolve:jr,reject:bs}});else if((yield(0,Dn.ZP)("/api/course_qna_records/dislike.json",{method:"post",body:Tr})).status!==0)return Promise.reject()}}),rr=()=>Zr(void 0,null,function*(){var Vi,Co;if(bo===null||!Vo){Fn.ZP.warning("\u8BF7\u9009\u62E9\u63CF\u8FF0");return}Gi(!0),(yield(0,Dn.ZP)("/api/course_qna_records/dislike.json",{method:"post",body:sr(Ir({},Pa.current),{status:bo,feedback:Vo})})).status===0&&((Co=(Vi=Za.current)==null?void 0:Vi.resolve)==null||Co.call(Vi),$i(!1)),Gi(!1)}),Aa=(Vi,Co,Cr)=>(0,Sn.dE)()&&ot.createElement("div",{className:ir.li,style:{width:Cr.width}},ot.createElement("div",{className:ir.content},ot.createElement("div",{className:ir.borderBox},ot.createElement("div",{className:ir.teacher},"\u8001\u5E08\u56DE\u590D"),ot.createElement(et.Z,{className:ir.text,value:Vi==null?void 0:Vi.text})),Vi.source&&ot.createElement("div",{className:ir.source},Vi.source),ot.createElement("div",{className:ir.action},ot.createElement(Vl.CopyToClipboard,{text:String((Vi==null?void 0:Vi.text)||""),onCopy:()=>Fn.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},ot.createElement(Pt.Z,{title:"\u590D\u5236"},ot.createElement("i",{className:"iconfot icon-fuzhi8 font13"})))))),Qa={onAdd:()=>(0,Dn.ZP)("/api/course_qna_sessions/create_session.json",{method:"get"}),onGetList:()=>(0,Dn.ZP)("/api/course_qna_sessions.json",{method:"get",params:{questionable_type:"Course",questionable_id:ka,by_self:!0}}),onListClick:Vi=>(0,Dn.ZP)(`/api/course_qna_sessions/${Vi}.json`,{method:"get",params:{questionable_id:ka}}),onListDelete:Vi=>(0,Dn.ZP)(`/api/course_qna_sessions/${Vi}.json`,{method:"delete",body:{questionable_id:ka}}),onListDealData:Vi=>{let Co=[];return Vi==null||Vi.forEach(Cr=>{var No;const xr=Cr.id,br=Cr.think?{reasoning:Cr.think,thinkingEnabled:!0}:{},Tr=[{text:Cr.question,key:xr,sender:"user",fileList:[],show:!0},Ir({key:xr,loading:!1,sender:"AI",show:!0,source:Cr.answer_source,text:Cr.answer,like:Cr.like,dislike:Cr.dislike,time:Cr.think_time,id:Cr.id},br)];Co=[...Co,...Tr],(No=Cr==null?void 0:Cr.teacher_feedback)==null||No.forEach(jr=>{Co.push({id:jr.id,key:`student-${xr}-${jr.id}`,loading:!1,sender:"teacher",show:!0,text:jr.feedback,source:jr.answer_source})})}),Co}};let Dr=!1;(0,Sn.dE)()?qe!=null&&qe.is_open_ai&&(Dr=!0):(0,Sn.$O)()&&(Dr=!0);const Ja=[{id:0,name:"\u6709\u5BB3/\u4E0D\u5B89\u5168"},{id:1,name:"\u865A\u5047\u4FE1\u606F"},{id:2,name:"\u6CA1\u6709\u5E2E\u52A9"},{id:3,name:"\u5176\u4ED6"}];return ot.createElement(ot.Fragment,null,Xi&&Dr&&ot.createElement(Eo.Z,{headNode:ot.createElement(ot.Fragment,null,ot.createElement("div",{className:"c-grey-333 font22"},ot.createElement("span",{className:"mr5"},"\u{1F44B}"),"\u55E8\uFF0C\u6211\u662F\u667A\u80FD\u52A9\u6559\u5C0F\u6B4C\uFF0C\u60A8\u7684\u6559\u5B66\u597D\u5E2E\u624B\u3002"),ot.createElement("div",{className:"font16 mt20",style:{color:"#434D6C"}},ot.createElement("span",{style:{paddingLeft:33}},"\u60A8\u597D\uFF0C\u6211\u662F",ot.createElement("span",{className:"c-light-primary"},qe!=null&&qe.name?`\u300A${qe==null?void 0:qe.name}\u300B`:""),"\u6559\u5B66\u8BFE\u5802\u7684\u667A\u80FD\u52A9\u6559\uFF0C\u4E13\u4E3A\u63D0\u5347\u8BFE\u5802\u4E92\u52A8\u4E0E\u5B66\u4E60\u6548\u679C\u800C\u8BBE\u8BA1\u3002\u6211\u80FD\u534F\u52A9\u6559\u5E08\u5B9E\u65F6\u4E92\u52A8\u7B54\u7591\uFF0C\u8BD5\u9898\u8D44\u6E90\u751F\u6210\uFF0C\u81EA\u52A8\u6279\u6539\u4F5C\u4E1A\uFF0C\u865A\u62DF\u6570\u5B57\u4EBA\u6388\u8BFE\u7B49\uFF1B\u5E2E\u52A9\u5B66\u751F\u8BD5\u9898\u63A8\u9001\u5DE9\u56FA\u7EC3\u4E60\uFF0C\u542F\u53D1\u5F0F\u52A9\u5B66\u7B49\u3002\u786E\u4FDD\u6559\u5E08\u548C\u5B66\u751F\u5728\u6BCF\u4E00\u5802\u8BFE\u4E0A\u90FD\u80FD\u5F97\u5230\u5168\u65B9\u4F4D\u667A\u80FD\u5316\u7684\u4FDD\u969C\u3002\u8BA9\u6211\u4EEC\u4E00\u8D77\u9AD8\u6548\u5B66\u4E60\uFF0C\u8F7B\u677E\u8FDB\u6B65\uFF01"))),visible:Fr,onOpen:()=>{Rr(!0)},onClose:()=>{Rr(!1)},showSwitchingModel:!0,showLookHistory:!0,showAddSession:!0,fetchListObject:Qa,showPreference:!0,showRedraw:"last",showEdit:"last",customDataNode:Aa,headFunctionNode:(0,Sn.dE)()?Jo:Go,customPreference:Ia,isCheckRestrictNumber:!0,draggableExtraNode:Br&&(0,Sn.dE)()&&ot.createElement("div",{className:ir.tip1},ot.createElement("img",{src:ts}),ot.createElement("span",null,"\u8001\u5E08\u56DE\u590D\u4E86\u4F60\u7684\u95EE\u9898\uFF0C\u5FEB\u6765\u770B\u770B\u5427~"),ot.createElement("i",{onMouseUp:Vi=>{Vi.stopPropagation(),Ga(!1),Ze({type:"classroomList/setCourseAiState",payload:{course_id:ka,have_tiding:!1}})},className:"iconfont icon-tupianguanbi font14 current"})),drawerExtraNode:Br&&(0,Sn.dE)()&&ot.createElement("div",{className:ir.tip2},ot.createElement("img",{src:ts}),ot.createElement("span",null,"\u8001\u5E08\u56DE\u590D\u4E86\u4F60\u7684\u95EE\u9898\uFF0C\u5FEB\u6765\u770B\u770B\u5427~"),ot.createElement("i",{onClick:Vi=>{Vi.stopPropagation(),Ga(!1),Ze({type:"classroomList/setCourseAiState",payload:{course_id:ka,have_tiding:!1}})},className:"iconfont icon-tupianguanbi font14 current"})),menuExtraFunctionNode:Vi=>(Vi==null?void 0:Vi.have_teacher_comment)&&ot.createElement("div",{className:ir.tag},"\u8001\u5E08\u56DE\u590D"),title:"\u667A\u80FD\u52A9\u6559",fetchData:{questionable_type:"Course",questionable_id:ka,is_chat:!0},fetchUrl:"/api/stream/course_qna_records/chat_messages.json"}),ot.createElement(Ft.default,{centered:!0,open:wo,confirmLoading:li,onCancel:()=>{$i(!1)},afterClose:()=>{var Vi,Co;(Co=(Vi=Za.current)==null?void 0:Vi.reject)==null||Co.call(Vi),Fo(""),Qo(null)},onOk:rr,title:"\u53CD\u9988",width:"530px",okText:"\u63D0\u4EA4"},ot.createElement("div",{className:ir.btnWarp},Ja.map(Vi=>ot.createElement("div",{key:Vi.id,className:bo===Vi.id?ir.active:"",onClick:()=>Qo(Vi.id)},Vi.name))),ot.createElement(ha.default.TextArea,{style:{height:280},placeholder:"\u6211\u4EEC\u60F3\u77E5\u9053\u4F60\u5BF9\u6B64\u56DE\u7B54\u4E0D\u6EE1\u610F\u7684\u539F\u56E0\uFF0C\u4F60\u8BA4\u4E3A\u66F4\u597D\u7684\u56DE\u7B54\u662F\u4EC0\u4E48?",value:Vo,onChange:Vi=>Fo(Vi.target.value)})))},ps=()=>ot.createElement(ot.Fragment,null,ot.createElement(fn,null),ot.createElement(es,null)),da=St(48066),Sh=St(29679),$u=St(19248),Xl=St(96512),Bl=St(72308),Wa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},ss=Wa,ba=St(7657),Ea=function(Ze,qe){return ot.createElement(ba.Z,(0,Bl.Z)({},Ze,{ref:qe,icon:ss}))},bl=ot.forwardRef(Ea),Cu=bl,fa=St(36355),zc=()=>ot.createElement("svg",{width:"252",height:"294"},ot.createElement("defs",null,ot.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),ot.createElement("g",{fill:"none",fillRule:"evenodd"},ot.createElement("g",{transform:"translate(0 .012)"},ot.createElement("mask",{fill:"#fff"}),ot.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),ot.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),ot.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),ot.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),ot.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),ot.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),ot.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),ot.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),ot.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),ot.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),ot.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),ot.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),ot.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),ot.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),ot.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),ot.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),ot.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),ot.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),ot.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),ot.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),ot.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),ot.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),ot.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),ot.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),ot.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),ot.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),ot.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),ot.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),ot.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),ot.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),ot.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),ot.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),ot.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),ot.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),ot.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),ot.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),ot.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),ot.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),ot.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),ot.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),ot.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),ot.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),vo=()=>ot.createElement("svg",{width:"254",height:"294"},ot.createElement("defs",null,ot.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),ot.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),ot.createElement("g",{fill:"none",fillRule:"evenodd"},ot.createElement("g",{transform:"translate(0 .067)"},ot.createElement("mask",{fill:"#fff"}),ot.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),ot.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),ot.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),ot.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),ot.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),ot.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),ot.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),ot.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),ot.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),ot.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),ot.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),ot.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),ot.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),ot.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),ot.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),ot.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),ot.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),ot.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),ot.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),ot.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),ot.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),ot.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),ot.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),ot.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),ot.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),ot.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),ot.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),ot.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),ot.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),ot.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),ot.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),ot.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),ot.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),ot.createElement("mask",{fill:"#fff"}),ot.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),ot.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),ot.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),ot.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),ot.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),ot.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),ot.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),ot.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),ot.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),ot.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),ot.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),Ie=()=>ot.createElement("svg",{width:"251",height:"294"},ot.createElement("g",{fill:"none",fillRule:"evenodd"},ot.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),ot.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),ot.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),ot.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),ot.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),ot.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),ot.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),ot.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),ot.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),ot.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),ot.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),ot.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),ot.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),ot.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),ot.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),ot.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),ot.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),ot.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),ot.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),ot.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),ot.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),ot.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),ot.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),ot.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),ot.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),ot.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),ot.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),ot.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),ot.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),ot.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),ot.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),ot.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),ot.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),ot.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),ot.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),ot.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ot.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),ot.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),ot.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),ot.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}))),Qn=St(83116),ug=St(37613);const hg=Ne=>{const{componentCls:Ze,lineHeightHeading3:qe,iconCls:ci,padding:Xi,paddingXL:Zi,paddingXS:wo,paddingLG:$i,marginXS:li,lineHeight:Gi}=Ne;return{[Ze]:{padding:`${$i*2}px ${Zi}px`,"&-rtl":{direction:"rtl"}},[`${Ze} ${Ze}-image`]:{width:Ne.imageWidth,height:Ne.imageHeight,margin:"auto"},[`${Ze} ${Ze}-icon`]:{marginBottom:$i,textAlign:"center",[`& > ${ci}`]:{fontSize:Ne.iconFontSize}},[`${Ze} ${Ze}-title`]:{color:Ne.colorTextHeading,fontSize:Ne.titleFontSize,lineHeight:qe,marginBlock:li,textAlign:"center"},[`${Ze} ${Ze}-subtitle`]:{color:Ne.colorTextDescription,fontSize:Ne.subtitleFontSize,lineHeight:Gi,textAlign:"center"},[`${Ze} ${Ze}-content`]:{marginTop:$i,padding:`${$i}px ${Xi*2.5}px`,backgroundColor:Ne.colorFillAlter},[`${Ze} ${Ze}-extra`]:{margin:Ne.extraMargin,textAlign:"center","& > *":{marginInlineEnd:wo,"&:last-child":{marginInlineEnd:0}}}}},Su=Ne=>{const{componentCls:Ze,iconCls:qe}=Ne;return{[`${Ze}-success ${Ze}-icon > ${qe}`]:{color:Ne.resultSuccessIconColor},[`${Ze}-error ${Ze}-icon > ${qe}`]:{color:Ne.resultErrorIconColor},[`${Ze}-info ${Ze}-icon > ${qe}`]:{color:Ne.resultInfoIconColor},[`${Ze}-warning ${Ze}-icon > ${qe}`]:{color:Ne.resultWarningIconColor}}},xu=Ne=>[hg(Ne),Su(Ne)],th=Ne=>xu(Ne);var Rc=(0,Qn.Z)("Result",Ne=>{const Ze=Ne.colorInfo,qe=Ne.colorError,ci=Ne.colorSuccess,Xi=Ne.colorWarning,Zi=(0,ug.TS)(Ne,{resultInfoIconColor:Ze,resultErrorIconColor:qe,resultSuccessIconColor:ci,resultWarningIconColor:Xi,imageWidth:250,imageHeight:295});return[th(Zi)]},Ne=>({titleFontSize:Ne.fontSizeHeading3,subtitleFontSize:Ne.fontSize,iconFontSize:Ne.fontSizeHeading3*3,extraMargin:`${Ne.paddingLG}px 0 0 0`}));const tc={success:Sh.Z,error:$u.Z,info:Xl.Z,warning:Cu},Kr={404:zc,500:vo,403:Ie},Oo=Object.keys(Kr),Ds=Ne=>{let{prefixCls:Ze,icon:qe,status:ci}=Ne;const Xi=We()(`${Ze}-icon`);if(Oo.includes(`${ci}`)){const wo=Kr[ci];return ot.createElement("div",{className:`${Xi} ${Ze}-image`},ot.createElement(wo,null))}const Zi=ot.createElement(tc[ci]);return qe===null||qe===!1?null:ot.createElement("div",{className:Xi},qe||Zi)},ll=Ne=>{let{prefixCls:Ze,extra:qe}=Ne;return qe?ot.createElement("div",{className:`${Ze}-extra`},qe):null},_r=Ne=>{let{prefixCls:Ze,className:qe,rootClassName:ci,subTitle:Xi,title:Zi,style:wo,children:$i,status:li="info",icon:Gi,extra:bo}=Ne;const{getPrefixCls:Qo,direction:Vo,result:Fo}=ot.useContext(fa.E_),fo=Qo("result",Ze),[Sr,Fr]=Rc(fo),Rr=We()(fo,`${fo}-${li}`,qe,Fo==null?void 0:Fo.className,ci,{[`${fo}-rtl`]:Vo==="rtl"},Fr),Br=Object.assign(Object.assign({},Fo==null?void 0:Fo.style),wo);return Sr(ot.createElement("div",{className:Rr,style:Br},ot.createElement(Ds,{prefixCls:fo,status:li,icon:Gi}),ot.createElement("div",{className:`${fo}-title`},Zi),Xi&&ot.createElement("div",{className:`${fo}-subtitle`},Xi),ot.createElement(ll,{prefixCls:fo,extra:bo}),$i&&ot.createElement("div",{className:`${fo}-content`},$i)))};_r.PRESENTED_IMAGE_403=Kr[403],_r.PRESENTED_IMAGE_404=Kr[404],_r.PRESENTED_IMAGE_500=Kr[500];var hr=_r,Na=Object.defineProperty,Hs=(Ne,Ze,qe)=>Ze in Ne?Na(Ne,Ze,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Ne[Ze]=qe,Qr=(Ne,Ze,qe)=>Hs(Ne,typeof Ze!="symbol"?Ze+"":Ze,qe);const{Paragraph:Js,Text:Ka}=da.default;class bu extends ot.Component{constructor(){super(...arguments),Qr(this,"state",{hasError:!1,error:null,errorInfo:null})}static getDerivedStateFromError(Ze){return{hasError:!0,error:Ze,errorInfo:null}}componentDidCatch(Ze,qe){console.log("\u6355\u83B7\u7684\u9519\u8BEF:",Ze),console.log("\u9519\u8BEF\u4FE1\u606F:",qe),this.setState({error:Ze,errorInfo:qe})}render(){var Ze,qe;return this.state.hasError?ot.createElement(hr,{status:"warning",title:"\u5F53\u524D\u6D4F\u89C8\u5668\u4F3C\u4E4E\u53D1\u751F\u4E86\u9519\u8BEF\uFF0C\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u5237\u65B0\u9875\u9762\u4EE5\u6062\u590D\u6B63\u5E38\u529F\u80FD\uFF01 ",subTitle:(Ze=this.state.error)==null?void 0:Ze.message,extra:[ot.createElement(Me.ZP,{type:"primary",key:"console",onClick:()=>window.location.reload()},"\u7ACB\u5373\u5237\u65B0")]},ot.createElement("div",{className:"desc"},ot.createElement(Js,null,ot.createElement(Ka,{style:{fontSize:14}},"\u8BE6\u7EC6\u4FE1\u606F\uFF1A",ot.createElement("br",null),(qe=this.state.errorInfo)==null?void 0:qe.componentStack)))):this.props.children}}var Mr=bu,Bs=St(26278),Er="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAANCAYAAACgu+4kAAAAAXNSR0IArs4c6QAAALhJREFUOE+dkjEOgVEQhL8pRCNR0UlE5Qg6Z9C5gcIFUDmAEyhVWgqJBIVE4hwanUSlkpEn709EIe/ZcrPzZXZ2RWLZrkq6f48rRW+7DWyBjqTrpyYJEAS2x0AP6Ep6FJBkQIQsgDLQl+TQywUE8R7YSZpmA6KLOnAGJpKWsv228kfdgEbWCtFBCzgCQ0mrLIDtGnACZpLmWRnYrgAHYFMEmAywXQLWwEXSIPuRbDeBUdz7mQ34daEX5wM7Fb5x5tMAAAAASUVORK5CYII=",Ur=St(9936),na=St(78110),mr=St(59301),Lr=Object.defineProperty,au=Object.getOwnPropertySymbols,Bo=Object.prototype.hasOwnProperty,Sd=Object.prototype.propertyIsEnumerable,yr=(Ne,Ze,qe)=>Ze in Ne?Lr(Ne,Ze,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Ne[Ze]=qe,cg=(Ne,Ze)=>{for(var qe in Ze||(Ze={}))Bo.call(Ze,qe)&&yr(Ne,qe,Ze[qe]);if(au)for(var qe of au(Ze))Sd.call(Ze,qe)&&yr(Ne,qe,Ze[qe]);return Ne},xh=(Ne,Ze)=>{var qe={};for(var ci in Ne)Bo.call(Ne,ci)&&Ze.indexOf(ci)<0&&(qe[ci]=Ne[ci]);if(Ne!=null&&au)for(var ci of au(Ne))Ze.indexOf(ci)<0&&Sd.call(Ne,ci)&&(qe[ci]=Ne[ci]);return qe};const ec=Ne=>{var Ze=Ne,{loading:qe,children:ci,globalSetting:Xi,user:Zi,account:wo}=Ze,$i=xh(Ze,["loading","children","globalSetting","user","account"]),li,Gi,bo,Qo,Vo,Fo,fo,Sr;const Fr=(0,fe.useLocation)(),[Rr,Br]=(0,ot.useState)(!1);return(0,ot.useEffect)(()=>{let Ga=qt()().add(0,"days").unix(),Za=localStorage.getItem("mainclose");if(!Za){Br(!0);return}Ga>parseInt(Za)&&Br(!0)},[]),mr.createElement(Mr,null,mr.createElement(Tt.ZP,{locale:ae.Z,autoInsertSpaceInButton:!1},Fr.pathname==="/"&&Rr&&((Gi=(li=Xi==null?void 0:Xi.setting)==null?void 0:li.adv_index)==null?void 0:Gi.image_url)&&((bo=Xi==null?void 0:Xi.setting)==null?void 0:bo.main_site)&&mr.createElement("div",{onClick:()=>{var Ga,Za;return window.open((Za=(Ga=Xi==null?void 0:Xi.setting)==null?void 0:Ga.adv_index)==null?void 0:Za.jump_url)},style:{background:`url(${He.Z.IMG_SERVER+((Vo=(Qo=Xi==null?void 0:Xi.setting)==null?void 0:Qo.adv_index)==null?void 0:Vo.image_url)}) no-repeat center center`,width:"100%",height:60,margin:"0px auto",display:"flex",cursor:"pointer",backgroundSize:"cover"}},mr.createElement("div",{style:{width:1200,margin:"0px auto",height:60,display:"flex",alignItems:"center",justifyContent:"space-between"}},mr.createElement("div",{style:{fontSize:24,fontWeight:"bold",color:"#fff",visibility:"hidden"}},"\u3010\u8BA1\u7B97\u673A\u5B66\u4E60\u4EA4\u6D41\u7FA4\u3011\u9886\u53D6C\u8BED\u8A00/Java/Python/\u7A0B\u5E8F\u7ADE\u8D5B\u8D44\u6599\uFF0C\u70B9\u51FB\u52A0\u5165"),mr.createElement("div",{onClick:()=>{window.open("https://mp.weixin.qq.com/s/31gNJVLlG1nTymoyL1uUJA")},style:{visibility:"hidden",width:"104px",height:"30px",borderRadius:15,display:"flex",alignItems:"center",justifyContent:"center",color:"#FFFFFF",cursor:"pointer",background:"linear-gradient(270deg, #FF4C00 0%, #FF9C01 100%)"}},"\u67E5\u770B\u8BE6\u60C5 ",mr.createElement("img",{src:Er,style:{marginLeft:5}}))),mr.createElement("img",{src:Ur,onClick:Ga=>{Ga.stopPropagation(),localStorage.setItem("mainclose",qt()().add(1,"days").unix()+""),Br(!1)},style:{width:16,height:16,marginRight:6,marginTop:6,cursor:"pointer"}})),document.domain!=="kepukehuan.educoder.net"&&mr.createElement($e.Z,cg({},$i)),mr.createElement("section",{className:Bs.Z.layoutMainClass,style:{marginTop:Fr.pathname=="/training"?"-72px":""}},mr.createElement(fe.Outlet,null)),mr.createElement(ie,null),!(0,nt.Ll)()&&document.domain!=="kepukehuan.educoder.net"&&mr.createElement(yt,null),mr.createElement(ge,null),mr.createElement(wn,null),mr.createElement(ln,null),mr.createElement(jt,null),mr.createElement(Rn,null),wo.actionTabs.key==="Account-ProfessionalAuth"&&((fo=(Fo=wo.actionTabs)==null?void 0:Fo.code)==null?void 0:fo.length)>0&&mr.createElement(na.Z,{Scoid:(Sr=Zi==null?void 0:Zi.userInfo)==null?void 0:Sr.user_school_id}),!(0,nt.Ll)()&&mr.createElement(ro,null),mr.createElement(ps,null)))};var xd=(0,fe.connect)(({loading:Ne,globalSetting:Ze,user:qe,account:ci})=>({loading:Ne,user:qe,globalSetting:Ze,account:ci}))(ec)},78110:function(un,Yn,St){"use strict";St.d(Yn,{Z:function(){return Fn}});var ot=St(59301),Tt=St(89070),ae=St(57809),$e=St(54580),fe=St(78241),ve=St(8591),qt=St(43418),Oe=St(95237),de=St(43604),Ce=St(71418),xe=St(92832),ze=St(88522),He=St(3113),Ft=St(3294),nt=St(51941),et=St(56615),ct=St(955),ut=St(60302),pt=St(19842),yt=St(29679),Pt=St(19248),bt=St(16979),Rt={flexRow:"flexRow___jGYtM",flexColumn:"flexColumn___NPMB3",formWrap:"formWrap___vwH9N",example:"example____BmJC",footerWrap:"footerWrap___lp1L0"},Ut=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ie=(mn,Dn)=>{var rn={};for(var ce in mn)ee.call(mn,ce)&&Dn.indexOf(ce)<0&&(rn[ce]=mn[ce]);if(mn!=null&&Ut)for(var ce of Ut(mn))Dn.indexOf(ce)<0&&re.call(mn,ce)&&(rn[ce]=mn[ce]);return rn},Me=(mn,Dn,rn)=>new Promise((ce,Kt)=>{var we=ln=>{try{ke(rn.next(ln))}catch(Dt){Kt(Dt)}},Ee=ln=>{try{ke(rn.throw(ln))}catch(Dt){Kt(Dt)}},ke=ln=>ln.done?ce(ln.value):Promise.resolve(ln.value).then(we,Ee);ke((rn=rn.apply(mn,Dn)).next())});const pe=(mn,Dn)=>Dn.some(rn=>rn.label.toLowerCase().indexOf(mn.toLowerCase())>-1),Le=xe.default.TextArea,ge=mn=>{var Dn=mn,{account:rn,globalSetting:ce,loading:Kt,dispatch:we,schoolName:Ee,visible:ke,onClose:ln=()=>{},onSuccess:Dt=()=>{}}=Dn,wt=ie(Dn,["account","globalSetting","loading","dispatch","schoolName","visible","onClose","onSuccess"]);const[At]=fe.default.useForm();(0,ot.useEffect)(()=>{At.setFieldsValue({name:Ee})},[Ee]);const Bt=jt=>Me(void 0,null,function*(){const{name:Mt,city:Ae=[],address:En,remarks:Rn}=jt||{},Pn=yield we({type:"account/appplySchool",payload:{name:Mt,province:Ae[0],city:Ae[1],address:En,remarks:Rn}});ln(),Pn&&(ve.ZP.success("\u65B0\u589E\u5B66\u6821/\u5355\u4F4D\u6210\u529F\uFF01"),Dt(Mt))});return ot.createElement(qt.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:ke,title:"\u7533\u8BF7\u6DFB\u52A0\u5355\u4F4D\u540D\u79F0",width:"600px",footer:null},ot.createElement(fe.default,{className:Rt.formWrap,form:At,labelCol:{span:4},wrapperCol:{span:20},onFinish:Bt},ot.createElement(fe.default.Item,{label:"\u5355\u4F4D\u5168\u79F0\uFF1A",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"}]},ot.createElement(xe.default,{placeholder:"\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"})),ot.createElement("div",{className:`${Rt.flexRow} ${Rt.example}`},ot.createElement("div",null,"\u793A\u4F8B\uFF1A"),ot.createElement("div",{className:Rt.flexColumn},ot.createElement("div",null,ot.createElement(yt.Z,{style:{color:"rgb(82, 196, 26)"}}),ot.createElement("span",{className:"font14 ml5"},"\u6B63\u786E\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u6784")),ot.createElement("div",null,ot.createElement(Pt.Z,{style:{color:"red"}}),ot.createElement("span",{className:"font14 ml5"},"\u9519\u8BEF\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u67842019\u6625")))),ot.createElement(fe.default.Item,{label:"\u5730\u533A\uFF1A",name:"city"},ot.createElement(pt.Z,{allowClear:!0,size:"middle",options:bt.P,placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u5730",showSearch:{matchInputWidth:!0,filter:pe}})),ot.createElement(fe.default.Item,{label:"\u8BE6\u7EC6\u5730\u5740\uFF1A",name:"address"},ot.createElement(xe.default,{placeholder:"\u8BF7\u586B\u5199\u5B8C\u6574\u7684\u5730\u5740\u4FE1\u606F"})),ot.createElement(fe.default.Item,{label:"\u8BF4\u660E\uFF1A",name:"remarks"},ot.createElement(Le,{placeholder:"\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"})),ot.createElement("div",{className:Rt.footerWrap},ot.createElement(fe.default.Item,null,ot.createElement(He.ZP,{className:"mr5",size:"middle",onClick:()=>{ln()}},"\u53D6\u6D88"),ot.createElement(He.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:Kt["account/appplySchool"]},"\u4FDD\u5B58")))))};var je=(0,Tt.connect)(({account:mn,loading:Dn,globalSetting:rn})=>({account:mn,globalSetting:rn,loading:Dn.effects}))(ge),Je=St(1),Cn=St(89392),hn=St(59301),Xn=Object.defineProperty,Fe=Object.defineProperties,Zt=Object.getOwnPropertyDescriptors,Ye=Object.getOwnPropertySymbols,kn=Object.prototype.hasOwnProperty,Tn=Object.prototype.propertyIsEnumerable,Be=(mn,Dn,rn)=>Dn in mn?Xn(mn,Dn,{enumerable:!0,configurable:!0,writable:!0,value:rn}):mn[Dn]=rn,be=(mn,Dn)=>{for(var rn in Dn||(Dn={}))kn.call(Dn,rn)&&Be(mn,rn,Dn[rn]);if(Ye)for(var rn of Ye(Dn))Tn.call(Dn,rn)&&Be(mn,rn,Dn[rn]);return mn},Ke=(mn,Dn)=>Fe(mn,Zt(Dn)),jn=(mn,Dn)=>{var rn={};for(var ce in mn)kn.call(mn,ce)&&Dn.indexOf(ce)<0&&(rn[ce]=mn[ce]);if(mn!=null&&Ye)for(var ce of Ye(mn))Dn.indexOf(ce)<0&&Tn.call(mn,ce)&&(rn[ce]=mn[ce]);return rn},Wn=(mn,Dn,rn)=>new Promise((ce,Kt)=>{var we=ln=>{try{ke(rn.next(ln))}catch(Dt){Kt(Dt)}},Ee=ln=>{try{ke(rn.throw(ln))}catch(Dt){Kt(Dt)}},ke=ln=>ln.done?ce(ln.value):Promise.resolve(ln.value).then(we,Ee);ke((rn=rn.apply(mn,Dn)).next())});const An=ae.default.Option,oe=$e.default.Dragger;var cn=(mn=>(mn[mn.Professor=1]="Professor",mn[mn.AssistantProfessor=2]="AssistantProfessor",mn[mn.Student=3]="Student",mn))(cn||{});const wn=mn=>{var Dn=mn,{user:rn,account:ce,globalSetting:Kt,loading:we,dispatch:Ee,Scoid:ke}=Dn,ln=jn(Dn,["user","account","globalSetting","loading","dispatch","Scoid"]),Dt,wt;const[At]=fe.default.useForm(),[Bt,jt]=(0,ot.useState)({}),[Mt,Ae]=(0,ot.useState)([]),[En,Rn]=(0,ot.useState)([]),[Pn,$n]=(0,ot.useState)([]),[xi,Fi]=(0,ot.useState)([]),[Bi,Ji]=(0,ot.useState)(),[ro,Eo]=(0,ot.useState)(),[Zo,Lo]=(0,ot.useState)(),[qn,$t]=(0,ot.useState)(),[tn,Jn]=(0,ot.useState)(),zt=(0,ot.useRef)((0,Cn.throttle)(Yt=>Mn(Yt),1200,{leading:!0,trailing:!0})).current;(0,ot.useEffect)(()=>{},[]),(0,ot.useEffect)(()=>{Wn(void 0,null,function*(){if(!ke)return;const Yt=yield le(ke);$n(Yt==null?void 0:Yt.departments)})},[ke]);const Mn=Yt=>Wn(void 0,null,function*(){var Vt,Ve;const an=yield Ee({type:"account/getSchoolOption",payload:{keyword:Yt,limit:10}});Ae(an==null?void 0:an.schools),Yt&&Yt!=""&&(Rn((Vt=an==null?void 0:an.schools)==null?void 0:Vt.filter(We=>We.name.includes(Yt))),(((Ve=an==null?void 0:an.schools)==null?void 0:Ve.find(We=>We.name===Yt))||{}).id?Te(Yt,null,an==null?void 0:an.schools):(At.setFieldsValue({department:""}),jt(be(be({},Bt),{school:Yt,department:""}))))}),le=Yt=>{if(Yt)return Ee({type:"account/getDepartmentOption",payload:{id:Yt}})};(0,ot.useEffect)(()=>{if(!ce.basicInfo)return;const{basicInfo:Yt}=ce,Vt={identity:Yt.identity,school:Yt.school_name,department:Yt.department_name,studentNo:Yt.student_id,jobTitle:Yt.identity=="teacher"?Yt.technical_title:"\u6559\u6388",manager:Yt.identity=="professional"?Yt.technical_title:"\u4F01\u4E1A\u7BA1\u7406\u8005"};At.setFieldsValue(Vt),jt(Vt)},[ce.basicInfo]);const Ct=()=>{$t(!0)},vn=()=>{if(!Mt.find(Yt=>Yt.name===Bt.school)){ve.ZP.info("\u8BF7\u5148\u9009\u62E9\u6B63\u786E\u7684\u5355\u4F4D\u6216\u8005\u5B66\u6821\uFF01");return}Jn(!0)},Hn=Yt=>{jt(be({},At.getFieldsValue())),"school"in Yt&&(Rn(Mt.filter(Ve=>Ve.name.includes(Yt.school))),(Mt.find(Ve=>Ve.name===Yt.school)||{}).id?Te(Yt.school):(At.setFieldsValue({department:""}),jt(be(be({},Bt),{school:Yt.school,department:""}))))},Qt=(Yt,Vt)=>{if(ce.actionTabs.checkedList.includes(1)){qt.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:hn.createElement("div",{className:"tc"},Vt||"\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838"),onOk:()=>{window.location.href=`/classrooms/${Yt}/students`}});return}window.location.href=`/classrooms/${Yt}/students`},Te=(Yt,Vt,Ve)=>Wn(void 0,null,function*(){var an,pn,We;const Sn=(an=(Ve||Mt).find(Qe=>Qe.name===Yt))==null?void 0:an.id,ai=(yield le(Sn))||{};$n(ai==null?void 0:ai.departments);const gn=Vt||((We=(pn=ai==null?void 0:ai.departments)==null?void 0:pn[0])==null?void 0:We.name);At.setFieldsValue({department:gn}),jt(be(be({},Bt),{school:Yt,department:gn}))}),Re=Yt=>Wn(void 0,null,function*(){yield Mn(),At.setFieldsValue({school:Yt,department:""}),jt(be(be({},Bt),{school:Yt,department:""}))}),_e=Yt=>{var Vt;if(Yt.file.status==="uploading"){Lo(!0);return}Yt.file.status==="done"&&(console.log(Yt.file,Yt.file.response),Eo((Vt=Yt.file.response)==null?void 0:Vt.id),(0,ct.y3)(Yt.file.originFileObj,Ve=>{Ji(Ve),Lo(!1)}))},me=Yt=>Wn(void 0,null,function*(){var Vt,Ve,an,pn,We;const{school:Sn,department:ai,identity:gn,studentNo:Qe,jobTitle:Xt,manager:dn}=Yt||{};if(!Bi){ve.ZP.info("\u8BF7\u5148\u4E0A\u4F20\u7167\u7247\uFF01");return}const De=(Vt=Mt.find(fn=>fn.name===Sn))==null?void 0:Vt.id,Xe=(Ve=Pn.find(fn=>fn.name===ai))==null?void 0:Ve.id;let he;gn==="student"?he=Qe:gn==="teacher"?he=Xt:he=dn;const Pe=yield Ee({type:"account/applyProfessionalAuth",payload:{id:((an=ce.basicInfo)==null?void 0:an.id)||((pn=rn.userInfo)==null?void 0:pn.login),school_id:De,department_id:Xe,identity:gn,extra:he,attachment_ids:[ro]}});if(ce.actionTabs.code){let fn=yield(0,Je.cR)({invite_code:ce.actionTabs.code,professor:ce.actionTabs.checkedList.includes(1)?1:null,assistant_professor:ce.actionTabs.checkedList.includes(2)?1:null,student:ce.actionTabs.checkedList.includes(3)?1:null});fn.message==="\u52A0\u5165\u6210\u529F"&&(fn!=null&&fn.course_id?Qt(fn.course_id,fn.message):ve.ZP.success(fn.message))}en(),Pe&&(ve.ZP.info("\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838!"),Ee({type:"account/getBasicInfo",payload:{login:(We=rn.userInfo)==null?void 0:We.login}}))}),en=()=>{Ee({type:"account/setActionTabs",payload:{}})},te={data:{type:"professional"},multiple:!0,showUploadList:!1,action:`${Ft.Z.API_SERVER}/api/attachments.json`,className:et.Z.uploader,onChange:_e,beforeUpload:Yt=>{const Vt=Yt.type==="image/jpeg"||Yt.type==="image/png"||Yt.type==="image/jpg"||Yt.type==="image/bmp";return Vt||ve.ZP.info("\u8BF7\u4E0A\u4F20\u6B63\u786E\u6587\u4EF6\u683C\u5F0F"),Vt}};return hn.createElement(qt.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,className:et.Z.modal,open:ce.actionTabs.key==="Account-ProfessionalAuth",title:hn.createElement(Oe.Z,{style:{padding:"25px"},align:"middle",justify:"space-between"},hn.createElement(de.Z,null,"\u804C\u4E1A\u8BA4\u8BC1"),hn.createElement(de.Z,null,hn.createElement("i",{className:"iconfont icon-guanbi11",style:{color:"#979797",cursor:"pointer"},onClick:en}))),width:"660px",footer:null},hn.createElement(Ce.Z,{spinning:!!Zo},hn.createElement(fe.default,{className:et.Z.formWrap,form:At,colon:!1,onValuesChange:Hn,onFinish:me},hn.createElement(Oe.Z,{gutter:[10,0]},hn.createElement(de.Z,{flex:"300px"},hn.createElement(fe.default.Item,{label:"\u804C\u4E1A",name:"identity",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u4E1A"}]},hn.createElement(ae.default,null,hn.createElement(An,{value:"teacher"},"\u6559\u5E08"),hn.createElement(An,{value:"student"},"\u5B66\u751F"),hn.createElement(An,{value:"professional"},"\u4E13\u4E1A\u4EBA\u58EB")))),Bt.identity==="student"&&hn.createElement(de.Z,{flex:"200px"},hn.createElement(fe.default.Item,{initialValue:Bt.studentNo,name:"studentNo",rules:[{required:!0,message:"\u8BF7\u5148\u8F93\u5165\u5B66\u53F7"}]},hn.createElement(xe.default,{type:"text",placeholder:"\u8BF7\u8F93\u5165\u5B66\u53F7"}))),Bt.identity==="teacher"&&hn.createElement(de.Z,{flex:"200px"},hn.createElement(fe.default.Item,{initialValue:Bt.jobTitle,name:"jobTitle",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u79F0"}]},hn.createElement(ae.default,null,hn.createElement(An,{value:"\u6559\u6388"},"\u6559\u6388"),hn.createElement(An,{value:"\u526F\u6559\u6388"},"\u526F\u6559\u6388"),hn.createElement(An,{value:"\u8BB2\u5E08"},"\u8BB2\u5E08"),hn.createElement(An,{value:"\u52A9\u6559"},"\u52A9\u6559")))),Bt.identity==="professional"&&hn.createElement(de.Z,{flex:"200px"},hn.createElement(fe.default.Item,{initialValue:Bt.manager,name:"manager",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u79F0"}]},hn.createElement(ae.default,null,hn.createElement(An,{value:"\u4F01\u4E1A\u7BA1\u7406\u8005"},"\u4F01\u4E1A\u7BA1\u7406\u8005"),hn.createElement(An,{value:"\u90E8\u95E8\u7BA1\u7406\u8005"},"\u90E8\u95E8\u7BA1\u7406\u8005"),hn.createElement(An,{value:"\u9AD8\u7EA7\u5DE5\u7A0B\u5E08"},"\u9AD8\u7EA7\u5DE5\u7A0B\u5E08"),hn.createElement(An,{value:"\u5DE5\u7A0B\u5E08"},"\u5DE5\u7A0B\u5E08"),hn.createElement(An,{value:"\u52A9\u7406\u5DE5\u7A0B\u5E08"},"\u52A9\u7406\u5DE5\u7A0B\u5E08"))))),hn.createElement(fe.default.Item,{label:"\u5B66\u6821/\u5355\u4F4D",name:"school",extra:Bt.school&&!(Mt!=null&&Mt.find(Yt=>Yt.name===Bt.school))&&hn.createElement("div",{className:et.Z.schoolHintWrap},hn.createElement("span",{className:et.Z.colorCDCDCD},"\u672A\u627E\u5230\u5305\u542B\u201C",Bt.school,"\u201D\u7684\u9AD8\u6821\uFF0C"),hn.createElement("span",{className:`${et.Z.color0152d9} current`,onClick:Ct},"\u7533\u8BF7\u65B0\u589E")),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u5B66\u6821/\u5355\u4F4D"}]},hn.createElement(ze.Z,{showSearch:!0,onSearch:zt,options:En==null?void 0:En.map(Yt=>({value:Yt.name}))})),hn.createElement(fe.default.Item,{label:"\u9662\u7CFB/\u90E8\u95E8",name:"department",extra:Bt.department&&!(Pn!=null&&Pn.find(Yt=>Yt.name===Bt.department))&&hn.createElement("div",{className:et.Z.schoolHintWrap},hn.createElement("span",{className:et.Z.colorCDCDCD},Bt.department?`\u672A\u627E\u5230\u5305\u542B\u201C${Bt.department}\u201D\u7684\u9AD8\u6821\uFF0C`:"\u672A\u627E\u5230\u9662\u7CFB\uFF0C"),hn.createElement("span",{className:`${et.Z.color0152d9} current`,onClick:vn},"\u7533\u8BF7\u65B0\u589E")),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u9662\u7CFB/\u90E8\u95E8"}]},hn.createElement(ze.Z,{showSearch:!0,onChange:Yt=>Fi(Pn.filter(Vt=>Vt.name.includes(Yt))),options:xi==null?void 0:xi.map(Yt=>({value:Yt.name}))})),hn.createElement(fe.default.Item,{label:"\u804C\u4E1A\u8BC1\u4E0A\u4F20"},hn.createElement("div",{className:et.Z.flexRow},hn.createElement("div",{className:et.Z.flexColumn},hn.createElement(oe,Ke(be({},te),{accept:".png,.jpg,.bmp,.jpeg"}),Bi?hn.createElement("img",{src:Bi,className:et.Z.uploadImg}):hn.createElement("div",{className:et.Z.imageTip},hn.createElement("p",null,hn.createElement("i",{className:`iconfont icon-cuban2shangchuanyunduan ${et.Z.uploadTipIcon}`})),hn.createElement("p",{className:et.Z.uploadTip},hn.createElement("a",{className:et.Z.color05101a},"\u70B9\u51FB\u6216\u62D6\u62FD\u4E0A\u4F20\u56FE\u7247")))),hn.createElement("span",{className:"tc"},hn.createElement("p",{className:et.Z.viewLargerImg},"\u67E5\u770B\u5927\u56FE"))),hn.createElement("div",{className:`${et.Z.flexColumn} ${et.Z.example}`},hn.createElement("span",{className:et.Z.exampleImg},hn.createElement("img",{src:nt})),hn.createElement("span",{className:"tc"},hn.createElement("p",null,"\u793A\u4F8B\u56FE\u7247"),hn.createElement("p",{className:`${et.Z.colorOrange} font12`},"\uFF08png/jpg/bmp\u683C\u5F0F\uFF0C\u4E0D\u8D85\u8FC72MB\uFF09"))))),hn.createElement("div",{className:et.Z.footerWrap},hn.createElement(fe.default.Item,null,hn.createElement(He.ZP,{className:"mr5",size:"middle",onClick:en},"\u53D6\u6D88"),hn.createElement(He.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:we["account/applyProfessionalAuth"]},"\u4FDD\u5B58"))),hn.createElement("div",{className:et.Z.note},hn.createElement("p",null,"\u8BA4\u8BC1\u987B\u77E5\uFF1A"),hn.createElement("p",null,"1.\u6839\u636E\u804C\u4E1A\u4E0A\u4F20\u76F8\u5E94\u7684\u8BC1\u4EF6\u7167\uFF1A\u6559\u5E08\uFF08\u6559\u5E08\u8BC1\uFF09\uFF0C\u4E13\u4E1A\u4EBA\u58EB\uFF08\u5458\u5DE5\u8BC1\uFF09\u3001\u5B66\u751F\uFF08\u5B66\u751F\u8BC1\uFF09\uFF0C\u8BF7\u786E\u4FDD\u8BC1\u4EF6\u7167\u5185\u5BB9\u5B8C\u6574\u5E76\u4E14\u6E05\u6670\u53EF\u89C1\uFF0C\u4E25\u7981PS\uFF1B"),hn.createElement("p",null,"2.\u6211\u4EEC\u5C06\u5728\u4F60\u63D0\u4EA4\u804C\u4E1A\u8BC1\u4FE1\u606F\u540E\u768424\u5C0F\u65F6\uFF08\u4E0D\u5305\u542B\u8282\u5047\u65E5\uFF09\u5185\u5B8C\u6210\u5BA1\u6838\uFF0C\u5BA1\u6838\u7ED3\u679C\u5C06\u4F1A\u4EE5\u7CFB\u7EDF\u6D88\u606F\u7684\u5F62\u5F0F\u53D1\u9001\u7ED9\u4F60\uFF1B"),hn.createElement("p",null,"3.\u804C\u4E1A\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u65E0\u6CD5\u5220\u9664\uFF0C\u8BF7\u8C28\u614E\u586B\u5199\uFF1B\u804C\u4E1A\u53D8\u66F4\u8BF7\u9009\u62E9\u91CD\u65B0\u8BA4\u8BC1\uFF1B"),hn.createElement("p",null,"4.\u804C\u4E1A\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u7CFB\u7EDF\u5C06\u81EA\u52A8\u53D1\u653E500\u4E2A\u91D1\u5E01\u4F5C\u4E3A\u5956\u52B1\uFF1B"),hn.createElement("p",null,"5.\u6211\u4EEC\u4F1A\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u7684\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732\uFF1B"),hn.createElement("p",null,"6.\u5982\u5B58\u5728\u6076\u610F\u4E71\u586B\u5199\u59D3\u540D\uFF0C\u5B66\u53F7\uFF0C\u53CA\u4E0A\u4F20\u4E0E\u804C\u4E1A\u8BC1\u4EF6\u65E0\u5173\u56FE\u7247\u8005\uFF0C\u4E00\u7ECF\u53D1\u73B0\u5C06\u51BB\u7ED3",!((Dt=Kt==null?void 0:Kt.setting)!=null&&Dt.is_local)&&"EduCoder","\u8D26\u53F7\u3002"),hn.createElement("p",null,"7.\u975E\u8001\u5E08\u8EAB\u4EFD\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1\u540E\u7CFB\u7EDF\u4F1A\u81EA\u52A8\u5C06\u72B6\u6001\u6539\u4E3A\u5DF2\u8BA4\u8BC1\uFF0C\u4F60\u5C06\u53EF\u4EE5\u4F53\u9A8C\u5E73\u53F0\u9700\u8981\u804C\u4E1A\u8BA4\u8BC1\u7684\u529F\u80FD\uFF1B\u5982\u679C\u5728\u8BA4\u8BC1\u540E\u7684\u4F7F\u7528\u8FC7\u7A0B\u4E2D\u672A\u901A\u8FC7\u5BA1\u6838\uFF0C\u4F60\u5C06\u4E0D\u80FD\u7EE7\u7EED\u4F53\u9A8C\u9700\u8981\u8BA4\u8BC1\u7684\u529F\u80FD\u3002")))),hn.createElement(je,{visible:qn,onClose:()=>$t(!1),schoolName:Bt.school,onSuccess:Re}),hn.createElement(ut.Z,{visible:tn,onClose:()=>Jn(!1),schoolId:(wt=Mt.find(Yt=>Yt.name===Bt.school))==null?void 0:wt.id,schoolName:Bt.school,departmentName:Bt.department,onSuccess:Yt=>Te(Bt.school,Yt)}))};var Fn=(0,Tt.connect)(({user:mn,account:Dn,loading:rn,globalSetting:ce})=>({user:mn,account:Dn,globalSetting:ce,loading:rn.effects}))(wn)},79285:function(un,Yn,St){"use strict";St.d(Yn,{Z:function(){return Be}});var ot=St(59301),Tt=St(78241),ae=St(8591),$e=St(43418),fe=St(99313),ve=St(57809),qt=St(19842),Oe=St(98228),de=St(92832),Ce=St(1710),xe=St(6848),ze=St(58421),He=St(3113),Ft=St(99064),nt={flex_box_center:"flex_box_center___kuaVT",flex_space_between:"flex_space_between___exKHH",flex_box_vertical_center:"flex_box_vertical_center___BzvkN",flex_box_center_end:"flex_box_center_end___Ss2DJ",flex_box_column:"flex_box_column___p1LEr",scoremodal:"scoremodal___upTFR",selectWrapper:"selectWrapper___HH3RX",selectWrappers:"selectWrappers___fUWwr",allqingchu:"allqingchu___BFF1D",title:"title___hFasb",score:"score___DXG3o",close:"close___kEIiB",content:"content___Mco8L",items:"items___j98jk",bottom:"bottom___A1n1C",yes:"yes___P1zzb",no:"no___xZqXd",titlecount:"titlecount___fqA9P",add:"add___MqV0R",search:"search___NREgv",searchIcon:"searchIcon___qny3A",tabWrap:"tabWrap___dR18c",previewModal:"previewModal___uSiGS",q_title:"q_title___a9NY9"},et=St(26422),ct={flex_box_center:"flex_box_center___nnwwA",flex_space_between:"flex_space_between___cRir9",flex_box_vertical_center:"flex_box_vertical_center___FqTZ8",flex_box_center_end:"flex_box_center_end___WU5_v",flex_box_column:"flex_box_column___QZFa1",warp:"warp___aLZwN",shixunbutton:"shixunbutton___Eoa1i",redio:"redio___LJ4js",redioitem:"redioitem___YicCC",redioitemyes:"redioitemyes___lX4Nr",title:"title___pi1jH",titleyes:"titleyes___jiEh7",yestag:"yestag___DLWoP",qcount:"qcount___U9kkL",score:"score___vLK4B",qtitle:"qtitle___kyg0t",checkbox:"checkbox___vjiBw",checkboxitem:"checkboxitem___HW3CP",checkboxitemyes:"checkboxitemyes___kpjek",bottom:"bottom___uG8Zq",bottomitem:"bottomitem___TnJQQ",left:"left___M8WXX",right:"right____dkCI",completion:"completion___H6RmA",content:"content___a2hGC",items:"items___D8mLd",simple:"simple___fQ0OS",shixun:"shixun___nB6Jk",combination:"combination___YrOdz",program:"program___lG0JA"},ut=St(85149),pt=St(955),yt=St(24334);const Pt=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"];var Rt=({qitem:be})=>{var Ke,jn,Wn,An,oe,cn,wn,Fn,mn,Dn;return ot.createElement("div",{className:ct.warp},ot.createElement("div",{className:ct.mainPart},ot.createElement("div",{className:ct.qcount},(be==null?void 0:be.question_type)===8&&ot.createElement(ut.Z,{className:ct.content,showProgramFill:!0,value:(Ke=be==null?void 0:be.program_attr)==null?void 0:Ke.description}),(be==null?void 0:be.question_type)!=8&&ot.createElement(ut.Z,{className:ct.qtitle,value:(be==null?void 0:be.name)||(be==null?void 0:be.title)})),((be==null?void 0:be.question_type)===0||(be==null?void 0:be.question_type)===2)&&ot.createElement("div",null,(jn=be==null?void 0:be.choices)==null?void 0:jn.map((rn,ce)=>ot.createElement("div",{className:ct.redio},!(rn!=null&&rn.is_answer)&&ot.createElement("span",{className:ct.redioitem}),(rn==null?void 0:rn.is_answer)&&ot.createElement("i",{className:`${ct.redioitemyes} icon-duigou1`}),ot.createElement(ut.Z,{className:rn!=null&&rn.is_answer?ct.titleyes:ct.title,value:Pt[ce]+(rn==null?void 0:rn.choice_text)}),(rn==null?void 0:rn.is_answer)&&ot.createElement("div",{className:ct.yestag},"\u6B63\u786E\u7B54\u6848")))),(be==null?void 0:be.question_type)===1&&ot.createElement("div",null,(Wn=be==null?void 0:be.choices)==null?void 0:Wn.map((rn,ce)=>ot.createElement("div",{className:ct.checkbox},!(rn!=null&&rn.is_answer)&&ot.createElement("span",{className:ct.checkboxitem}),(rn==null?void 0:rn.is_answer)&&ot.createElement("i",{className:`${ct.checkboxitemyes} icon-duigou1`}),ot.createElement(ut.Z,{className:rn!=null&&rn.is_answer?ct.titleyes:ct.title,value:Pt[ce]+(rn==null?void 0:rn.choice_text)}),(rn==null?void 0:rn.is_answer)&&ot.createElement("div",{className:ct.yestag},"\u6B63\u786E\u7B54\u6848")))),(be==null?void 0:be.question_type)===3&&ot.createElement("div",{className:ct.completion},(An=be==null?void 0:be.standard_answer)==null?void 0:An.map((rn,ce)=>{var Kt;return ot.createElement("div",{style:{display:"flex"}},ot.createElement("span",{className:ct.title},"\u586B\u7A7A\u9879",ce+1),ot.createElement("div",{className:ct.content},(Kt=rn==null?void 0:rn.answer_text)==null?void 0:Kt.map((we,Ee)=>ot.createElement("div",{className:ct.items},we))))})),(be==null?void 0:be.question_type)===4&&ot.createElement("div",{className:ct.simple},ot.createElement("div",{className:ct.title},"\u53C2\u8003\u7B54\u6848"),ot.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(oe=be==null?void 0:be.answer_texts)!=null&&oe[0]?ot.createElement(ut.Z,{className:ct.content,value:(cn=be==null?void 0:be.answer_texts)==null?void 0:cn[0]}):ot.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),(be==null?void 0:be.question_type)===5&&((wn=be==null?void 0:be.challenge_names)==null?void 0:wn.map((rn,ce)=>ot.createElement("div",{className:ct.shixun},ot.createElement("span",{className:ct.qtitle},ot.createElement("span",{style:{marginRight:10}},"\u7B2C",(0,pt.EM)(ce+1),"\u9898"),rn)))),(be==null?void 0:be.question_type)===6&&ot.createElement("div",{className:ct.program},ot.createElement(ut.Z,{className:ct.content,value:((Fn=be==null?void 0:be.program_attr)==null?void 0:Fn.description)||"- -"})),(be==null?void 0:be.question_type)===7&&((mn=be==null?void 0:be.sub_item_banks)==null?void 0:mn.map((rn,ce)=>{var Kt,we,Ee,ke,ln;return ot.createElement("div",null,ot.createElement("div",{className:ct.combination},ot.createElement("span",{className:ct.qtitle},rn==null?void 0:rn.name)),ot.createElement("div",{className:ct.warp,style:{padding:"0px",paddingTop:20}},ot.createElement("div",null,((rn==null?void 0:rn.item_type)=="SINGLE"||(rn==null?void 0:rn.item_type)=="JUDGMENT")&&((Kt=rn==null?void 0:rn.choices)==null?void 0:Kt.map((Dt,wt)=>ot.createElement("div",{className:ct.redio},!(Dt!=null&&Dt.is_answer)&&ot.createElement("span",{className:ct.redioitem}),(Dt==null?void 0:Dt.is_answer)&&ot.createElement("i",{className:`${ct.redioitemyes} icon-duigou1`}),ot.createElement(ut.Z,{className:Dt!=null&&Dt.is_answer?ct.titleyes:ct.title,value:Pt[wt]+(Dt==null?void 0:Dt.choice_text)}),(Dt==null?void 0:Dt.is_answer)&&ot.createElement("div",{className:ct.yestag},"\u6B63\u786E\u7B54\u6848")))),(rn==null?void 0:rn.item_type)=="MULTIPLE"&&((we=rn==null?void 0:rn.choices)==null?void 0:we.map((Dt,wt)=>ot.createElement("div",{className:ct.checkbox},!(Dt!=null&&Dt.is_answer)&&ot.createElement("span",{className:ct.checkboxitem}),(Dt==null?void 0:Dt.is_answer)&&ot.createElement("i",{className:`${ct.checkboxitemyes} icon-duigou1`}),ot.createElement(ut.Z,{className:Dt!=null&&Dt.is_answer?ct.titleyes:ct.title,value:Pt[wt]+(Dt==null?void 0:Dt.choice_text)}),(Dt==null?void 0:Dt.is_answer)&&ot.createElement("div",{className:ct.yestag},"\u6B63\u786E\u7B54\u6848")))),(rn==null?void 0:rn.item_type)=="COMPLETION"&&ot.createElement("div",{className:ct.completion},(Ee=rn==null?void 0:rn.standard_answer)==null?void 0:Ee.map((Dt,wt)=>{var At;return ot.createElement("div",{style:{display:"flex"}},ot.createElement("span",{className:ct.title},"\u586B\u7A7A\u9879",wt+1),ot.createElement("div",{className:ct.content},(At=Dt==null?void 0:Dt.answer_text)==null?void 0:At.map((Bt,jt)=>ot.createElement("div",{className:ct.items},Bt))))})),(rn==null?void 0:rn.item_type)=="SUBJECTIVE"&&ot.createElement("div",{className:ct.simple},ot.createElement("div",{className:ct.title},"\u53C2\u8003\u7B54\u6848"),ot.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(ke=rn==null?void 0:rn.answer_texts)!=null&&ke[0]?ot.createElement(ut.Z,{className:ct.content,value:(ln=rn==null?void 0:rn.answer_texts)==null?void 0:ln[0]}):ot.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))))))})),(be==null?void 0:be.question_type)===8&&ot.createElement("div",null,ot.createElement(ut.Z,{disabledFill:!0,className:ct.content,showProgramFill:!0,value:yt.Base64.decode(((Dn=be==null?void 0:be.program_attr)==null?void 0:Dn.code)||"")})),(be==null?void 0:be.question_type)===5&&ot.createElement("div",{style:{background:"#F6F7F9",padding:"0px 20px",height:46,lineHeight:"46px",marginTop:40,display:"flex",alignItems:"center"}},ot.createElement("div",{style:{flex:1,alignItems:"center",display:"flex"}},ot.createElement("div",{style:{marginRight:30}},ot.createElement("span",{style:{marginRight:10}},"\u521B\u5EFA\u8005"),ot.createElement("span",{style:{color:"#000000"}},(be==null?void 0:be.author_name)||"- -")),ot.createElement("div",{style:{marginRight:30}},ot.createElement("span",{style:{marginRight:10}},"\u6240\u5C5E\u5355\u4F4D"),ot.createElement("span",{style:{color:"#000000"}},(be==null?void 0:be.author_school_name)||"- -")),ot.createElement("div",{style:{marginRight:30}},ot.createElement("span",{style:{marginRight:10}},"\u5B66\u4E60\u4EBA\u6570"),ot.createElement("span",{style:{color:"#000000"}},(be==null?void 0:be.study_count)||"0"))),ot.createElement("a",{className:ct.shixunbutton,href:`/shixuns/${be==null?void 0:be.identifier}/challenges?exercise=true`,target:"_blank"},ot.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u5B9E\u8BAD\u8BE6\u60C5"))),((be==null?void 0:be.question_type)<=4||[6,8].includes(be==null?void 0:be.question_type))&&ot.createElement("div",{className:ct.bottom},ot.createElement("div",{className:ct.bottomitem},ot.createElement("span",{className:ct.left},"\u89E3\u6790"),ot.createElement("span",{className:ct.right},be!=null&&be.analysis?ot.createElement(ut.Z,{value:be==null?void 0:be.analysis}):ot.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),ot.createElement("div",{className:ct.bottomitem},ot.createElement("span",{className:ct.left},"\u96BE\u5EA6"),ot.createElement("span",{className:ct.right},(be==null?void 0:be.difficulty)===1?"\u7B80\u5355":(be==null?void 0:be.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),ot.createElement("div",{className:ct.bottomitem},ot.createElement("span",{className:ct.left},"\u77E5\u8BC6\u70B9"),ot.createElement("span",{className:ct.right},be!=null&&be.tag_discipline?be==null?void 0:be.tag_discipline:ot.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")))))},Ut=St(86087),ee=St(84287),re=St(89070),ie=St(61485),Me=St(32570),pe=St(16149),Le=St(59301),ge=Object.defineProperty,je=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,Cn=Object.getOwnPropertySymbols,hn=Object.prototype.hasOwnProperty,Xn=Object.prototype.propertyIsEnumerable,Fe=(be,Ke,jn)=>Ke in be?ge(be,Ke,{enumerable:!0,configurable:!0,writable:!0,value:jn}):be[Ke]=jn,Zt=(be,Ke)=>{for(var jn in Ke||(Ke={}))hn.call(Ke,jn)&&Fe(be,jn,Ke[jn]);if(Cn)for(var jn of Cn(Ke))Xn.call(Ke,jn)&&Fe(be,jn,Ke[jn]);return be},Ye=(be,Ke)=>je(be,Je(Ke)),kn=(be,Ke,jn)=>new Promise((Wn,An)=>{var oe=Fn=>{try{wn(jn.next(Fn))}catch(mn){An(mn)}},cn=Fn=>{try{wn(jn.throw(Fn))}catch(mn){An(mn)}},wn=Fn=>Fn.done?Wn(Fn.value):Promise.resolve(Fn.value).then(oe,cn);wn((jn=jn.apply(be,Ke)).next())});const Tn=({setScoreShow:be,ScoreShow:Ke,onOk:jn,isshixuns:Wn,isloadings:An,dispatch:oe,isIntelligentAssistant:cn=!1,ispptModal:wn=!1,newExercisePaper:Fn,shixunsDetail:mn})=>{var Dn,rn,ce;let[Kt,we]=(0,ot.useState)({type:"0",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,bigmodel:cn,is_smart_plan:wn,group_id:[]}),[Ee,ke]=(0,ot.useState)([]),[ln,Dt]=(0,ot.useState)([]),[wt,At]=(0,ot.useState)([]),[Bt,jt]=(0,ot.useState)([]);const[Mt,Ae]=(0,ot.useState)(!1),[En]=Tt.default.useForm(),[Rn,Pn]=(0,ot.useState)(),[$n,xi]=(0,ot.useState)(!1);let[Fi,Bi]=(0,ot.useState)(Wn);const[Ji,ro]=(0,ot.useState)([]),[Eo,Zo]=(0,ot.useState)(0),[Lo,qn]=(0,ot.useState)(!0),[$t,tn]=(0,ot.useState)([]),[Jn,zt]=(0,ot.useState)([]),Mn=[{name:"\u5168\u90E8",value:"",question_type:0},{name:"\u5355\u9009\u9898",value:"SINGLE",question_type:0},{name:"\u591A\u9009\u9898",value:"MULTIPLE",question_type:1},{name:"\u5224\u65AD\u9898",value:"JUDGMENT",question_type:2},{name:"\u586B\u7A7A\u9898",value:"COMPLETION",question_type:3},{name:"\u7B80\u7B54\u9898",value:"SUBJECTIVE",question_type:4},{name:"\u5B9E\u8BAD\u9898",value:"SHIXUN",question_type:5},{name:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6},{name:"\u7EC4\u5408\u9898",value:"COMBINATION",question_type:7},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM",question_type:8}];let[le,Ct]=(0,ot.useState)({gg:{type:"1",page:1,updated_at:"",quotes:"",item_type:null,courseid:"",per_page:10,tag_discipline_id:null,difficulty:null,keyword:null},ttgx:{type:"3",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},scj:{type:"2",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null},wcjd:{type:"0",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},yx:{type:"5",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:null}});const vn=(0,ot.useRef)(new Set),Hn=(0,ot.useRef)(new Set),Qt=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],Te=[{name:"\u521D\u7EA7",value:1},{name:"\u4E2D\u7EA7",value:2},{name:"\u4E2D\u9AD8\u7EA7",value:3},{name:"\u9AD8\u7EA7",value:4}],Re=[{name:"\u672A\u53D1\u5E03",value:"unpublish"},{name:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{name:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],[_e,me]=(0,ot.useState)(!1),en=()=>{En.resetFields(),Fi=!1,Bi(!1),me(!1),En.submit()};(0,ot.useEffect)(()=>{var Qe,Xt,dn,De,Xe,he,Pe,fn,Di,oi;(((dn=(Xt=(Qe=Fn==null?void 0:Fn.editData)==null?void 0:Qe.exercise)==null?void 0:Xt.exist_item_bank_ids)==null?void 0:dn.length)>0||((he=(Xe=(De=Fn==null?void 0:Fn.editData)==null?void 0:De.exercise)==null?void 0:Xe.exist_item_bank_shixun_ids)==null?void 0:he.length)>0)&&zt([...(fn=(Pe=Fn==null?void 0:Fn.editData)==null?void 0:Pe.exercise)==null?void 0:fn.exist_item_bank_ids,...(oi=(Di=Fn==null?void 0:Fn.editData)==null?void 0:Di.exercise)==null?void 0:oi.exist_item_bank_shixun_ids])},[(rn=(Dn=Fn==null?void 0:Fn.editData)==null?void 0:Dn.exercise)==null?void 0:rn.exist_item_bank_ids]),(0,ot.useEffect)(()=>{Ke&&(En.setFieldsValue({item_type:"",courseid:"",tag_discipline_id:null,difficulty:null,keyword:null}),Lo&&Fi&&(En.setFieldsValue({item_type:"SHIXUN"}),Kt.item_type="SHIXUN",we(Zt({},Kt)),qn(!1)),te(Kt),Yt(),Vt({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}))},[Ke]),(0,ot.useEffect)(()=>{Eo>0&&setTimeout(()=>{Zo(0)},2e3)},[Eo]);function te(Qe){return kn(this,null,function*(){var Xt,dn,De;if(Ae(!0),we(Zt({},Qe)),(wt==null?void 0:wt.length)<=0&&Qe.type==="5"){jt([]),Ae(!1);return}console.log("----",wt,Ji);let Xe=Qe.type==="5"?wt==null?void 0:wt.filter(fn=>!Ji.includes(fn)):null,he=Qe.type==="5"?wt==null?void 0:wt.filter(fn=>Ji.includes(fn)):null,Pe=yield(0,Ft.ZP)("/api/item_banks.json",{method:"get",params:Ye(Zt({},Qe),{discipline_id:((Xt=Qe==null?void 0:Qe.courseid)==null?void 0:Xt[0])||null,sub_discipline_id:((dn=Qe==null?void 0:Qe.courseid)==null?void 0:dn[1])||null,ids:Xe,shixun_ids:he,include_shixuns:!cn,group_id:((De=Qe.group_id)==null?void 0:De.map(fn=>fn==null?void 0:fn.value))||null,keyword:Qe.keyword?encodeURIComponent(Qe.keyword):Qe.keyword,type:Qe.type==="5"?null:Qe.type,clazz:Qe.type==="3"?"ItemBanksGroup":null,bigmodel:cn,is_smart_plan:wn})});jt(Pe),Ae(!1)})}function Yt(){return kn(this,null,function*(){let Qe=yield(0,Ft.ZP)("/api/disciplines.json",{method:"get",params:{source:"question",group_id:0,group_type:Kt.type==="5"?null:Kt.type,clazz:"ItemBanksGroup"}});ke((0,et.L)(Qe==null?void 0:Qe.disciplines))})}function Vt(Qe){return kn(this,null,function*(){var Xt;let dn=yield(0,Ft.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:Qe}),De=[{title:"\u6839\u76EE\u5F55",id:0,pid:0,value:0,key:0,isLeaf:!1,children:(Xt=dn==null?void 0:dn.data)==null?void 0:Xt.map(Xe=>({title:Xe.name,id:Xe.id,pid:Xe.id,value:Xe.id,key:Xe.id,isLeaf:!Xe.have_child}))}];tn(De)})}function Ve(Qe){return kn(this,null,function*(){var Xt,dn,De,Xe;Ae(!0);let he=(Xt=Qe.list)==null?void 0:Xt.filter(Di=>!Ji.includes(Di)),Pe=(dn=Qe.list)==null?void 0:dn.filter(Di=>Ji.includes(Di));if(he.length===0&&Pe.length===0){Ae(!1),jt([]);return}let fn=yield(0,Ft.ZP)("/api/item_banks.json",{method:"get",params:Ye(Zt({},Qe),{discipline_id:((De=Qe==null?void 0:Qe.courseid)==null?void 0:De[0])||null,sub_discipline_id:((Xe=Qe==null?void 0:Qe.courseid)==null?void 0:Xe[1])||null,ids:he,shixun_ids:Pe,type:Qe.type==="5"?null:Qe.type,clazz:Qe.type==="3"?"ItemBanksGroup":null})});Ae(!1),jt(fn)})}const an=Qe=>kn(void 0,null,function*(){const Xt=yield oe({type:"shixunsDetail/release",payload:{id:Qe}});let dn=Xt==null?void 0:Xt.tag_position,De=(Xt==null?void 0:Xt.evaluation_set_position)||[],Xe=Xt.status;return Xe===0?(ae.ZP.success("\u53D1\u5E03\u6210\u529F"),te(Kt),!0):(Xe===2?ae.ZP.error(`\u7B2C${De.join(",")}\u5173\u5C1A\u672A\u5B8C\u6210\uFF0C\u65E0\u6CD5\u7533\u8BF7\u53D1\u5E03`):Xe===3?ae.ZP.error(`\u6BCF\u4E00\u4E2A\u5173\u5361\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u6280\u80FD\u6807\u7B7E, \u7B2C${dn.join(",")}\u5173\u5C1A\u672A\u8BBE\u7F6E\u6280\u80FD\u6807\u7B7E\uFF0C\u8BF7\u8865\u5145`):ae.ZP.error("\u5C1A\u672A\u521B\u5EFA\u4EFB\u52A1\u7684\u5B9E\u8BAD\uFF0C\u4E0D\u80FD\u7533\u8BF7\u53D1\u5E03"),!1)}),pn=Qe=>(Qe==null?void 0:Qe.shixun_tag_num)===1?"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528\uFF0C\u8BF7\u5148\u8FDB\u884C\u53D1\u5E03":"",We=(Qe,Xt,dn)=>Qe.map(De=>De.key===Xt?Zt(Zt({},De),dn):De.children?Ye(Zt({},De),{children:We(De.children,Xt,dn)}):De),Sn=Qe=>kn(void 0,null,function*(){const{key:Xt}=Qe;let dn=Kt.type;const De=yield(0,pe.ex)({page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",group_id:Math.abs(Xt),type:dn}),{data:Xe,total_count:he}=De||{};he>0&&tn(Pe=>We(Pe,Xt,{children:Xe.map(fn=>({title:fn.name,id:fn.id,pid:fn.id,value:fn.id,key:fn.id,isLeaf:!fn.have_child}))}))});function ai(Qe){console.log("----",Kt),Qe==="1"&&(le.gg=Zt({},Kt)),Qe==="2"&&(le.scj=Zt({},Kt)),Qe==="3"&&(le.ttgx=Zt({},Kt)),Qe==="0"&&(le.wcjd=Zt({},Kt)),Qe==="5"&&(le.yx=Zt({},Kt)),Ct(Zt({},le))}function gn(){Kt.type==="1"&&(Kt=le.gg),Kt.type==="2"&&(Kt=le.scj),Kt.type==="3"&&(Kt=le.ttgx),Kt.type==="0"&&(Kt=le.wcjd),Kt.type==="5"&&(Kt=le.yx),(Kt==null?void 0:Kt.item_type)==="SHIXUN"?(Fi=!0,Bi(!0)):(Fi=!1,Bi(!1)),En.setFieldsValue(Zt({},Kt)),we(Zt({},Kt)),te(Zt({},Kt))}return Le.createElement("div",null,Le.createElement($e.default,{title:!1,footer:!1,open:Ke,width:1200,centered:!0,className:nt.scoremodal,onCancel:()=>{be(!1)}},Le.createElement("div",{style:{display:"flex",alignItems:"center"}},Le.createElement("div",{className:nt.title},cn?"\u4EE5\u9898\u6362\u9898":"\u9898\u5E93\u9009\u9898")),cn&&Le.createElement("div",{style:{padding:10,background:"#F6F7F9",borderRadius:4,marginTop:14}},"\u6839\u636E\u73B0\u6709\u8BD5\u9898\u7684\u9898\u578B\u3001\u65B9\u5411\u3001\u77E5\u8BC6\u70B9\u3001\u96BE\u6613\u5EA6\uFF0C\u5FEB\u901F\u751F\u6210\u65B0\u7684\u8BD5\u9898\uFF0C\u589E\u52A0\u8BD5\u9898\u7684\u4E30\u5BCC\u5EA6"),Le.createElement(fe.default,{className:nt.tabWrap,activeKey:Kt.type,onChange:Qe=>{Qe==="3"?(Kt.show_all_share=!0,Vt({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"3"})):Kt.show_all_share=null,Qe==="0"&&Vt({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),ai(Kt.type),Kt.type=Qe,(Kt==null?void 0:Kt.item_type)==="SHIXUN"&&Kt.type!=="5"&&(Fi=!0,Bi(!0)),me(!1),Kt.type==="5"&&(Fi=!1,Bi(!1)),gn(),Yt()},items:[{label:"\u516C\u5171",key:"1"},{label:"\u56E2\u961F\u5171\u4EAB",key:"3"},{label:"\u6536\u85CF\u5939",key:"2"},{label:"\u6211\u521B\u5EFA\u7684",key:"0"},{label:Le.createElement("div",null,"\u5DF2\u9009",wt.length>0&&Le.createElement("span",{className:nt.titlecount},wt.length),Eo>0&&Le.createElement("span",{className:nt.add},"+",Eo)),key:"5"}]}),Le.createElement(Tt.default,{layout:"inline",form:En,onValuesChange:(Qe,Xt)=>{const dn=Object.values(Xt).some(Xe=>Xe!==null&&Xe!==""&&Xe!==void 0),De=Xt.keyword==="";if(me(dn||!De),Kt.page=1,(Xt==null?void 0:Xt.item_type)==="SHIXUN"){if(Kt.type==="5"?Bi(!1):Bi(!0),Qe.keyword||Qe.keyword==="")return;En.submit()}else{if(Qe!=null&&Qe.courseid&&En.setFieldsValue({tag_discipline_id:""}),Bi(!1),Qe.keyword||Qe.keyword==="")return;En.submit()}},onFinish:Qe=>{var Xt;Kt.type==="3"&&(!Qe.group_id||((Xt=Qe==null?void 0:Qe.group_id)==null?void 0:Xt.length)===0)?Kt.show_all_share=!0:Kt.show_all_share=null,we(Zt(Zt({},Kt),Qe)),te(Zt(Zt({},Kt),Qe))}},Le.createElement(Tt.default.Item,{name:"item_type"},Le.createElement(ve.default,{className:nt.selectWrapper,placeholder:"\u9898\u578B",style:{width:110},size:"middle"},(cn?Mn==null?void 0:Mn.filter(Qe=>Qe.question_type!==5):wn?Mn.slice(0,4):Mn).map(Qe=>Le.createElement(ve.default.Option,{key:Qe.value},Qe.name)))),Le.createElement(Tt.default.Item,{name:"courseid"},Le.createElement(qt.Z,{className:nt.selectWrapper,style:{width:160},size:"middle",placeholder:"\u65B9\u5411&\u8BFE\u7A0B",options:Ee})),!Fi&&Le.createElement(Tt.default.Item,{name:"tag_discipline_id"},Le.createElement(ve.default,{className:nt.selectWrapper,placeholder:"\u77E5\u8BC6\u70B9",style:{width:160},size:"middle",allowClear:!0},(ce=Bt==null?void 0:Bt.tag_disciplines)==null?void 0:ce.map(Qe=>Le.createElement(ve.default.Option,{key:Qe.id},Qe.name)))),Le.createElement(Tt.default.Item,{name:Fi?"diff":"difficulty"},Le.createElement(ve.default,{className:nt.selectWrapper,placeholder:"\u96BE\u5EA6",style:{width:118},size:"middle",allowClear:!0},!Fi&&Qt.map(Qe=>Le.createElement(ve.default.Option,{key:Qe.value},Qe.name)),Fi&&Te.map(Qe=>Le.createElement(ve.default.Option,{key:Qe.value},Qe.name)))),Fi&&Le.createElement(Tt.default.Item,{name:"shixun_publish_status"},Le.createElement(ve.default,{className:nt.selectWrapper,placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"middle",allowClear:!0},Re.map(Qe=>Le.createElement(ve.default.Option,{key:Qe.value},Qe.name)))),(Kt.type==="3"||Kt.type==="0")&&!Fi&&Le.createElement(Tt.default.Item,{name:"group_id"},Le.createElement(Oe.default,{treeDataSimpleMode:!0,style:{width:118},className:nt.selectWrappers,multiple:!0,allowClear:!0,showSearch:!0,filterTreeNode:(Qe,Xt)=>Xt.title.toUpperCase().indexOf(Qe.toUpperCase())!==-1,dropdownStyle:{maxHeight:400,width:500,overflow:"auto"},placeholder:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939",treeCheckStrictly:!0,loadData:Sn,treeDefaultExpandedKeys:[0],maxTagCount:0,treeCheckable:!0,treeData:$t})),_e&&Le.createElement("span",{className:nt.allqingchu,onClick:en},Le.createElement("i",{className:"iconfont icon-guanbi4"}),Le.createElement("span",null,"\u6E05\u9664\u7B5B\u9009\u6761\u4EF6")),Le.createElement(Tt.default.Item,{style:{flex:"0 0 auto",marginRight:0,marginLeft:"auto"},name:"keyword"},Le.createElement(de.default.Search,{className:nt.search,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",allowClear:!0,suffix:Le.createElement("i",{className:`iconfont icon-sousuo9 font14 ${nt.searchIcon}`,onClick:()=>En.submit()}),onSearch:Qe=>{En.submit()}}))),Le.createElement("div",{style:{background:"#F6F7F9",display:"flex",alignItems:"center",marginTop:18,height:40,paddingLeft:10,paddingRight:20}},Le.createElement("div",{onClick:()=>{Kt.updated_at==="asc"?Kt.updated_at="desc":Kt.updated_at="asc",we(Ye(Zt({},Kt),{page:1})),te(Ye(Zt({},Kt),{page:1}))}}," ",Kt.updated_at?Le.createElement("img",{src:Kt.updated_at==="asc"?Ut.Z:ee.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Le.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u66F4\u65B0\u65F6\u95F4\u6392\u5E8F"),Le.createElement("div",{onClick:()=>{Kt.quotes==="asc"?Kt.quotes="desc":Kt.quotes="asc",we(Ye(Zt({},Kt),{page:1})),te(Ye(Zt({},Kt),{page:1}))},style:{marginLeft:20}}," ",Kt.quotes?Le.createElement("img",{src:Kt.quotes==="asc"?Ut.Z:ee.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Le.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u4F7F\u7528\u6B21\u6570\u6392\u5E8F")),Le.createElement(Ce.default,{style:{marginTop:2,marginBottom:20},scroll:{y:260},dataSource:(Bt==null?void 0:Bt.items)||(Bt==null?void 0:Bt.shixun_list),pagination:!1,loading:Mt,rowKey:Qe=>Qe.id,rowSelection:{type:cn||wn?"radio":"checkbox",selectedRowKeys:ln,getCheckboxProps:Qe=>({disabled:Qe.shixun_tag_num===1||(Jn==null?void 0:Jn.find(Xt=>Qe.id===Xt))}),onSelect(Qe,Xt,dn){if(cn||wn){Dt([Qe.id]),Hn.current=new Set([Qe.id]),Zo(1),At([Qe.id]);return}if(Xt)Fi&&ro([...Ji,Qe.id]),Dt([...ln,Qe.id]),Qe.identifier?vn.current.add(Qe.id):Hn.current.add(Qe.id),Zo(1),At([...wt,Qe.id]);else{Qe.identifier?vn.current.delete(Qe.id):Hn.current.delete(Qe.id);let De=wt.filter(Xe=>Xe!==Qe.id);if(Dt(De),At(De),Fi){let Xe=Ji.filter(he=>he!==Qe.id);ro([...Xe])}if(Kt.type==="5"){Ve(Ye(Zt({},Kt),{list:[...De]}));return}}},onSelectAll(Qe,Xt,dn){if(Qe){const De=dn.map(Xe=>Xe.id);Fi&&ro([...Ji,...De]),Dt([...ln,...De]),At([...wt,...De]);for(const Xe of dn)Xe.identifier?vn.current.add(Xe.id):Hn.current.add(Xe.id)}else{const De=dn.map(he=>he.id),Xe=ln.filter(he=>!De.some(Pe=>Pe===he));if(Dt([...Xe]),At([...Xe]),Fi){let he=Ji.filter(Pe=>!De.some(fn=>fn===Pe.id));ro([...he])}Kt.type==="5"&&Ve(Ye(Zt({},Kt),{list:[...Xe]}));for(const he of De)he.identifier?vn.current.delete(he):Hn.current.delete(he)}}},columns:[{title:"\u9898\u578B",dataIndex:"item_type",key:"item_type",render:(Qe,Xt,dn)=>{var De,Xe;return Le.createElement(xe.Z,{title:pn(Xt)},Le.createElement("div",null,Fi||Xt!=null&&Xt.challenge_names?"\u5B9E\u8BAD\u9898":(Xe=(De=Mn==null?void 0:Mn.filter(he=>he.value===Qe))==null?void 0:De[0])==null?void 0:Xe.name))}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:Fi?"30%":"60%",key:"name",render:(Qe,Xt,dn)=>{var De;return Le.createElement("div",{style:{display:"flex",alignItems:"center"}},Le.createElement(xe.Z,{title:pn(Xt)},Le.createElement("div",{className:Xt!=null&&Xt.high_resources_consume?nt.q_title:""},Le.createElement(ut.Z,{key:1,showLines:1,showTextOnly:!0,value:Fi||Xt!=null&&Xt.challenge_names?Xt!=null&&Xt.title||Qe===null?"--":Qe:(Xt==null?void 0:Xt.item_type)=="BPROGRAM"?(De=Xt==null?void 0:Xt.program_attr)==null?void 0:De.description:Qe}))),(Xt==null?void 0:Xt.high_resources_consume)&&Le.createElement(Me.Z,{type:"shixun",style:{marginLeft:10}}))}},{title:"\u521B\u5EFA\u8005",dataIndex:"author_name",key:"author_name",hidden:!Fi,render:(Qe,Xt,dn)=>{var De;return Le.createElement(xe.Z,{title:pn(Xt)},Le.createElement("span",null,Qe?(De=Qe==null?void 0:Qe.split("\u3001"))==null?void 0:De[0]:"- -"))}},{title:"\u6240\u5C5E\u5355\u4F4D",dataIndex:"author_school_name",key:"author_school_name",hidden:!Fi,render:(Qe,Xt,dn)=>Le.createElement(xe.Z,{title:pn(Xt)},Le.createElement("span",null,Qe||"- -"))},{title:"\u96BE\u5EA6",dataIndex:"difficulty",key:"difficulty",render:(Qe,Xt,dn)=>{var De,Xe,he,Pe;return Le.createElement(xe.Z,{title:pn(Xt)},Le.createElement("div",null,Fi||Xt!=null&&Xt.challenge_names?(Xt==null?void 0:Xt.level)||((Xe=(De=Qt==null?void 0:Qt.filter(fn=>fn.value===Qe))==null?void 0:De[0])==null?void 0:Xe.name):(Pe=(he=Qt==null?void 0:Qt.filter(fn=>fn.value===Qe))==null?void 0:he[0])==null?void 0:Pe.name))}},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",hidden:!Fi,render:(Qe,Xt,dn)=>Le.createElement(xe.Z,{title:pn(Xt)},Le.createElement("div",null,Qe||"- -"))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes",key:"quotes",render:(Qe,Xt,dn)=>Le.createElement(xe.Z,{title:pn(Xt)},Le.createElement("div",null,Fi||Xt!=null&&Xt.challenge_names?(Xt==null?void 0:Xt.study_count)||(Xt==null?void 0:Xt.stu_num):Qe))},{title:Le.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",Le.createElement(xe.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},Le.createElement(ie.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",hidden:!Fi,render:(Qe,Xt,dn)=>Le.createElement(xe.Z,{title:pn(Xt)},Le.createElement("div",null,Qe||"- -"))},{title:"\u64CD\u4F5C",dataIndex:"id",key:"item_type",render:(Qe,Xt,dn)=>Le.createElement(xe.Z,{title:pn(Xt)},Le.createElement("div",{style:{flex:1,textAlign:"start"}},Le.createElement("a",{onClick:()=>{var De,Xe;Pn(Ye(Zt({},Xt),{question_type:Fi||Xt!=null&&Xt.challenge_names?5:(Xe=(De=Mn==null?void 0:Mn.filter(he=>he.value===(Xt==null?void 0:Xt.item_type)))==null?void 0:De[0])==null?void 0:Xe.question_type})),xi(!0)}},"\u67E5\u770B"),(Xt==null?void 0:Xt.shixun_tag_num)===1&&Le.createElement("a",{style:{marginLeft:10},onClick:()=>{$e.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,width:400,content:Le.createElement("div",null,"\u662F\u5426\u786E\u5B9A\u53D1\u5E03",Le.createElement("span",{style:{cursor:"pointer",color:"#3061D0"},onClick:()=>{window.open(`/shixuns/${Xt==null?void 0:Xt.identifier}/challenges`)}},(Xt==null?void 0:Xt.shixun_name)||"--"),"\uFF1F"),onOk:()=>kn(void 0,null,function*(){if(!an(Xt==null?void 0:Xt.identifier))return new Promise((De,Xe)=>{Xe()})})})}},"\u53D1\u5E03")))}].filter(Qe=>!Qe.hidden)}),Le.createElement(ze.Z,{current:Kt.page,total:(Bt==null?void 0:Bt.items_count)||(Bt==null?void 0:Bt.shixuns_count),style:{marginBottom:20},defaultPageSize:Kt.per_page,showTotal:Qe=>Le.createElement("span",null,"\u5171\xA0",Le.createElement("span",{style:{color:"#165DFF"}},Qe),"\xA0\u6761\u6570\u636E"),pageSize:Kt.per_page,onChange:(Qe,Xt)=>{Kt.page=Qe,Kt.per_page=Xt,we(Zt({},Kt)),te(Zt({},Kt))}}),Le.createElement("div",{className:nt.bottom},Le.createElement(He.ZP,{className:nt.no,onClick:()=>{be(!1)}},"\u53D6\u6D88"),Le.createElement(He.ZP,{loading:An,style:{width:An&&75},className:nt.yes,onClick:()=>kn(void 0,null,function*(){if((wt==null?void 0:wt.length)<=0){ae.ZP.info(cn||wn?"\u8BF7\u9009\u62E9\u4E00\u9053\u8BD5\u9898":"\u5F53\u524D\u6682\u672A\u9009\u62E9\u6570\u636E");return}jn([...Hn.current],[...vn.current],!0,wt==null?void 0:wt.length)})},cn?"\u5F00\u59CB\u6362\u9898":"\u786E\u8BA4"))),Le.createElement($e.default,{open:$n,title:"\u9898\u76EE\u8BE6\u60C5",footer:!1,className:nt.previewModal,width:1e3,centered:!0,onCancel:()=>{xi(!1)},onOk:()=>{xi(!1)}},Le.createElement(Rt,{qitem:Rn})))};var Be=(0,re.connect)(({shixunsDetail:be,newExercisePaper:Ke})=>({shixunsDetail:be,newExercisePaper:Ke}))(Tn)},16979:function(un,Yn,St){"use strict";St.d(Yn,{P:function(){return ot}});const ot=[{value:"\u5317\u4EAC",label:"\u5317\u4EAC",children:[{value:"\u4E1C\u57CE",label:"\u4E1C\u57CE"},{value:"\u897F\u57CE",label:"\u897F\u57CE"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u4E30\u53F0",label:"\u4E30\u53F0"},{value:"\u77F3\u666F\u5C71",label:"\u77F3\u666F\u5C71"},{value:"\u6D77\u6DC0",label:"\u6D77\u6DC0"},{value:"\u95E8\u5934\u6C9F",label:"\u95E8\u5934\u6C9F"},{value:"\u623F\u5C71",label:"\u623F\u5C71"},{value:"\u901A\u5DDE",label:"\u901A\u5DDE"},{value:"\u987A\u4E49",label:"\u987A\u4E49"},{value:"\u660C\u5E73",label:"\u660C\u5E73"},{value:"\u5927\u5174",label:"\u5927\u5174"},{value:"\u5E73\u8C37",label:"\u5E73\u8C37"},{value:"\u6000\u67D4",label:"\u6000\u67D4"},{value:"\u5BC6\u4E91",label:"\u5BC6\u4E91"},{value:"\u5EF6\u5E86",label:"\u5EF6\u5E86"}]},{value:"\u4E0A\u6D77",label:"\u4E0A\u6D77",children:[{value:"\u5D07\u660E",label:"\u5D07\u660E"},{value:"\u9EC4\u6D66",label:"\u9EC4\u6D66"},{value:"\u5362\u6E7E",label:"\u5362\u6E7E"},{value:"\u5F90\u6C47",label:"\u5F90\u6C47"},{value:"\u957F\u5B81",label:"\u957F\u5B81"},{value:"\u9759\u5B89",label:"\u9759\u5B89"},{value:"\u666E\u9640",label:"\u666E\u9640"},{value:"\u95F8\u5317",label:"\u95F8\u5317"},{value:"\u8679\u53E3",label:"\u8679\u53E3"},{value:"\u6768\u6D66",label:"\u6768\u6D66"},{value:"\u95F5\u884C",label:"\u95F5\u884C"},{value:"\u5B9D\u5C71",label:"\u5B9D\u5C71"},{value:"\u5609\u5B9A",label:"\u5609\u5B9A"},{value:"\u6D66\u4E1C",label:"\u6D66\u4E1C"},{value:"\u91D1\u5C71",label:"\u91D1\u5C71"},{value:"\u677E\u6C5F",label:"\u677E\u6C5F"},{value:"\u9752\u6D66",label:"\u9752\u6D66"},{value:"\u5357\u6C47",label:"\u5357\u6C47"},{value:"\u5949\u8D24",label:"\u5949\u8D24"}]},{value:"\u5E7F\u4E1C",label:"\u5E7F\u4E1C",children:[{value:"\u5E7F\u5DDE",label:"\u5E7F\u5DDE"},{value:"\u6DF1\u5733",label:"\u6DF1\u5733"},{value:"\u73E0\u6D77",label:"\u73E0\u6D77"},{value:"\u4E1C\u839E",label:"\u4E1C\u839E"},{value:"\u4E2D\u5C71",label:"\u4E2D\u5C71"},{value:"\u4F5B\u5C71",label:"\u4F5B\u5C71"},{value:"\u60E0\u5DDE",label:"\u60E0\u5DDE"},{value:"\u6CB3\u6E90",label:"\u6CB3\u6E90"},{value:"\u6F6E\u5DDE",label:"\u6F6E\u5DDE"},{value:"\u6C5F\u95E8",label:"\u6C5F\u95E8"},{value:"\u63ED\u9633",label:"\u63ED\u9633"},{value:"\u8302\u540D",label:"\u8302\u540D"},{value:"\u6885\u5DDE",label:"\u6885\u5DDE"},{value:"\u6E05\u8FDC",label:"\u6E05\u8FDC"},{value:"\u6C55\u5934",label:"\u6C55\u5934"},{value:"\u6C55\u5C3E",label:"\u6C55\u5C3E"},{value:"\u97F6\u5173",label:"\u97F6\u5173"},{value:"\u987A\u5FB7",label:"\u987A\u5FB7"},{value:"\u9633\u6C5F",label:"\u9633\u6C5F"},{value:"\u4E91\u6D6E",label:"\u4E91\u6D6E"},{value:"\u6E5B\u6C5F",label:"\u6E5B\u6C5F"},{value:"\u8087\u5E86",label:"\u8087\u5E86"}]},{value:"\u6C5F\u82CF",label:"\u6C5F\u82CF",children:[{value:"\u5357\u4EAC",label:"\u5357\u4EAC"},{value:"\u5E38\u719F",label:"\u5E38\u719F"},{value:"\u5E38\u5DDE",label:"\u5E38\u5DDE"},{value:"\u6D77\u95E8",label:"\u6D77\u95E8"},{value:"\u6DEE\u5B89",label:"\u6DEE\u5B89"},{value:"\u6C5F\u90FD",label:"\u6C5F\u90FD"},{value:"\u6C5F\u9634",label:"\u6C5F\u9634"},{value:"\u6606\u5C71",label:"\u6606\u5C71"},{value:"\u8FDE\u4E91\u6E2F",label:"\u8FDE\u4E91\u6E2F"},{value:"\u5357\u901A",label:"\u5357\u901A"},{value:"\u542F\u4E1C",label:"\u542F\u4E1C"},{value:"\u6CAD\u9633",label:"\u6CAD\u9633"},{value:"\u5BBF\u8FC1",label:"\u5BBF\u8FC1"},{value:"\u82CF\u5DDE",label:"\u82CF\u5DDE"},{value:"\u592A\u4ED3",label:"\u592A\u4ED3"},{value:"\u6CF0\u5DDE",label:"\u6CF0\u5DDE"},{value:"\u540C\u91CC",label:"\u540C\u91CC"},{value:"\u65E0\u9521",label:"\u65E0\u9521"},{value:"\u5F90\u5DDE",label:"\u5F90\u5DDE"},{value:"\u76D0\u57CE",label:"\u76D0\u57CE"},{value:"\u626C\u5DDE",label:"\u626C\u5DDE"},{value:"\u5B9C\u5174",label:"\u5B9C\u5174"},{value:"\u4EEA\u5F81",label:"\u4EEA\u5F81"},{value:"\u5F20\u5BB6\u6E2F",label:"\u5F20\u5BB6\u6E2F"},{value:"\u9547\u6C5F",label:"\u9547\u6C5F"}]},{value:"\u91CD\u5E86",label:"\u91CD\u5E86",children:[{value:"\u4E07\u5DDE",label:"\u4E07\u5DDE"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u6E1D\u4E2D",label:"\u6E1D\u4E2D"},{value:"\u5927\u6E21\u53E3",label:"\u5927\u6E21\u53E3"},{value:"\u6C5F\u5317",label:"\u6C5F\u5317"},{value:"\u6C99\u576A\u575D",label:"\u6C99\u576A\u575D"},{value:"\u4E5D\u9F99\u5761",label:"\u4E5D\u9F99\u5761"},{value:"\u5357\u5CB8",label:"\u5357\u5CB8"},{value:"\u5317\u789A",label:"\u5317\u789A"},{value:"\u4E07\u76DB",label:"\u4E07\u76DB"},{value:"\u53CC\u6322",label:"\u53CC\u6322"},{value:"\u6E1D\u5317",label:"\u6E1D\u5317"},{value:"\u5DF4\u5357",label:"\u5DF4\u5357"},{value:"\u9ED4\u6C5F",label:"\u9ED4\u6C5F"},{value:"\u957F\u5BFF",label:"\u957F\u5BFF"},{value:"\u7DA6\u6C5F",label:"\u7DA6\u6C5F"},{value:"\u6F7C\u5357",label:"\u6F7C\u5357"},{value:"\u94DC\u6881",label:"\u94DC\u6881"},{value:"\u5927\u8DB3",label:"\u5927\u8DB3"},{value:"\u8363\u660C",label:"\u8363\u660C"},{value:"\u58C1\u5C71",label:"\u58C1\u5C71"},{value:"\u6881\u5E73",label:"\u6881\u5E73"},{value:"\u57CE\u53E3",label:"\u57CE\u53E3"},{value:"\u4E30\u90FD",label:"\u4E30\u90FD"},{value:"\u57AB\u6C5F",label:"\u57AB\u6C5F"},{value:"\u6B66\u9686",label:"\u6B66\u9686"},{value:"\u5FE0\u53BF",label:"\u5FE0\u53BF"},{value:"\u5F00\u53BF",label:"\u5F00\u53BF"},{value:"\u4E91\u9633",label:"\u4E91\u9633"},{value:"\u5949\u8282",label:"\u5949\u8282"},{value:"\u5DEB\u5C71",label:"\u5DEB\u5C71"},{value:"\u5DEB\u6EAA",label:"\u5DEB\u6EAA"},{value:"\u77F3\u67F1",label:"\u77F3\u67F1"},{value:"\u79C0\u5C71",label:"\u79C0\u5C71"},{value:"\u9149\u9633",label:"\u9149\u9633"},{value:"\u5F6D\u6C34",label:"\u5F6D\u6C34"},{value:"\u6C5F\u6D25",label:"\u6C5F\u6D25"},{value:"\u5408\u5DDD",label:"\u5408\u5DDD"},{value:"\u6C38\u5DDD",label:"\u6C38\u5DDD"},{value:"\u5357\u5DDD",label:"\u5357\u5DDD"}]},{value:"\u5B89\u5FBD",label:"\u5B89\u5FBD",children:[{value:"\u5408\u80A5",label:"\u5408\u80A5"},{value:"\u5B89\u5E86",label:"\u5B89\u5E86"},{value:"\u868C\u57E0",label:"\u868C\u57E0"},{value:"\u4EB3\u5DDE",label:"\u4EB3\u5DDE"},{value:"\u5DE2\u6E56",label:"\u5DE2\u6E56"},{value:"\u6EC1\u5DDE",label:"\u6EC1\u5DDE"},{value:"\u961C\u9633",label:"\u961C\u9633"},{value:"\u8D35\u6C60",label:"\u8D35\u6C60"},{value:"\u6DEE\u5317",label:"\u6DEE\u5317"},{value:"\u6DEE\u5316",label:"\u6DEE\u5316"},{value:"\u6DEE\u5357",label:"\u6DEE\u5357"},{value:"\u9EC4\u5C71",label:"\u9EC4\u5C71"},{value:"\u4E5D\u534E\u5C71",label:"\u4E5D\u534E\u5C71"},{value:"\u516D\u5B89",label:"\u516D\u5B89"},{value:"\u9A6C\u978D\u5C71",label:"\u9A6C\u978D\u5C71"},{value:"\u5BBF\u5DDE",label:"\u5BBF\u5DDE"},{value:"\u94DC\u9675",label:"\u94DC\u9675"},{value:"\u5C6F\u6EAA",label:"\u5C6F\u6EAA"},{value:"\u829C\u6E56",label:"\u829C\u6E56"},{value:"\u5BA3\u57CE",label:"\u5BA3\u57CE"}]},{value:"\u798F\u5EFA",label:"\u798F\u5EFA",children:[{value:"\u798F\u5DDE",label:"\u798F\u5DDE"},{value:"\u53A6\u95E8",label:"\u53A6\u95E8"},{value:"\u6CC9\u5DDE",label:"\u6CC9\u5DDE"},{value:"\u6F33\u5DDE",label:"\u6F33\u5DDE"},{value:"\u9F99\u5CA9",label:"\u9F99\u5CA9"},{value:"\u5357\u5E73",label:"\u5357\u5E73"},{value:"\u5B81\u5FB7",label:"\u5B81\u5FB7"},{value:"\u8386\u7530",label:"\u8386\u7530"},{value:"\u4E09\u660E",label:"\u4E09\u660E"}]},{value:"\u7518\u8083",label:"\u7518\u8083",children:[{value:"\u5170\u5DDE",label:"\u5170\u5DDE"},{value:"\u5609\u5CEA\u5173",label:"\u5609\u5CEA\u5173"},{value:"\u767D\u94F6",label:"\u767D\u94F6"},{value:"\u5B9A\u897F",label:"\u5B9A\u897F"},{value:"\u6566\u714C",label:"\u6566\u714C"},{value:"\u7518\u5357",label:"\u7518\u5357"},{value:"\u91D1\u660C",label:"\u91D1\u660C"},{value:"\u9152\u6CC9",label:"\u9152\u6CC9"},{value:"\u4E34\u590F",label:"\u4E34\u590F"},{value:"\u5E73\u51C9",label:"\u5E73\u51C9"},{value:"\u5929\u6C34",label:"\u5929\u6C34"},{value:"\u9647\u5357",label:"\u9647\u5357"},{value:"\u6B66\u5A01",label:"\u6B66\u5A01"},{value:"\u897F\u5CF0",label:"\u897F\u5CF0"},{value:"\u5F20\u6396",label:"\u5F20\u6396"}]},{value:"\u5E7F\u897F",label:"\u5E7F\u897F",children:[{value:"\u5357\u5B81",label:"\u5357\u5B81"},{value:"\u6765\u5BBE",label:"\u6765\u5BBE"},{value:"\u767E\u8272",label:"\u767E\u8272"},{value:"\u5317\u6D77",label:"\u5317\u6D77"},{value:"\u6842\u6797",label:"\u6842\u6797"},{value:"\u9632\u57CE\u6E2F",label:"\u9632\u57CE\u6E2F"},{value:"\u8D35\u6E2F",label:"\u8D35\u6E2F"},{value:"\u6CB3\u6C60",label:"\u6CB3\u6C60"},{value:"\u8D3A\u5DDE",label:"\u8D3A\u5DDE"},{value:"\u67F3\u5DDE",label:"\u67F3\u5DDE"},{value:"\u94A6\u5DDE",label:"\u94A6\u5DDE"},{value:"\u68A7\u5DDE",label:"\u68A7\u5DDE"},{value:"\u7389\u6797",label:"\u7389\u6797"}]},{value:"\u8D35\u5DDE",label:"\u8D35\u5DDE",children:[{value:"\u8D35\u9633",label:"\u8D35\u9633"},{value:"\u5B89\u987A",label:"\u5B89\u987A"},{value:"\u6BD5\u8282",label:"\u6BD5\u8282"},{value:"\u90FD\u5300",label:"\u90FD\u5300"},{value:"\u51EF\u91CC",label:"\u51EF\u91CC"},{value:"\u516D\u76D8\u6C34",label:"\u516D\u76D8\u6C34"},{value:"\u94DC\u4EC1",label:"\u94DC\u4EC1"},{value:"\u5174\u4E49",label:"\u5174\u4E49"},{value:"\u7389\u5C4F",label:"\u7389\u5C4F"},{value:"\u9075\u4E49",label:"\u9075\u4E49"}]},{value:"\u6D77\u5357",label:"\u6D77\u5357",children:[{value:"\u6D77\u53E3",label:"\u6D77\u53E3"},{value:"\u510B\u53BF",label:"\u510B\u53BF"},{value:"\u9675\u6C34",label:"\u9675\u6C34"},{value:"\u743C\u6D77",label:"\u743C\u6D77"},{value:"\u4E09\u4E9A",label:"\u4E09\u4E9A"},{value:"\u901A\u4EC0",label:"\u901A\u4EC0"},{value:"\u4E07\u5B81",label:"\u4E07\u5B81"}]},{value:"\u6CB3\u5317",label:"\u6CB3\u5317",children:[{value:"\u77F3\u5BB6\u5E84",label:"\u77F3\u5BB6\u5E84"},{value:"\u4FDD\u5B9A",label:"\u4FDD\u5B9A"},{value:"\u5317\u6234\u6CB3",label:"\u5317\u6234\u6CB3"},{value:"\u6CA7\u5DDE",label:"\u6CA7\u5DDE"},{value:"\u627F\u5FB7",label:"\u627F\u5FB7"},{value:"\u4E30\u6DA6",label:"\u4E30\u6DA6"},{value:"\u90AF\u90F8",label:"\u90AF\u90F8"},{value:"\u8861\u6C34",label:"\u8861\u6C34"},{value:"\u5ECA\u574A",label:"\u5ECA\u574A"},{value:"\u5357\u6234\u6CB3",label:"\u5357\u6234\u6CB3"},{value:"\u79E6\u7687\u5C9B",label:"\u79E6\u7687\u5C9B"},{value:"\u5510\u5C71",label:"\u5510\u5C71"},{value:"\u65B0\u57CE",label:"\u65B0\u57CE"},{value:"\u90A2\u53F0",label:"\u90A2\u53F0"},{value:"\u5F20\u5BB6\u53E3",label:"\u5F20\u5BB6\u53E3"}]},{value:"\u9ED1\u9F99\u6C5F",label:"\u9ED1\u9F99\u6C5F",children:[{value:"\u54C8\u5C14\u6EE8",label:"\u54C8\u5C14\u6EE8"},{value:"\u5317\u5B89",label:"\u5317\u5B89"},{value:"\u5927\u5E86",label:"\u5927\u5E86"},{value:"\u5927\u5174\u5B89\u5CAD",label:"\u5927\u5174\u5B89\u5CAD"},{value:"\u9E64\u5C97",label:"\u9E64\u5C97"},{value:"\u9ED1\u6CB3",label:"\u9ED1\u6CB3"},{value:"\u4F73\u6728\u65AF",label:"\u4F73\u6728\u65AF"},{value:"\u9E21\u897F",label:"\u9E21\u897F"},{value:"\u7261\u4E39\u6C5F",label:"\u7261\u4E39\u6C5F"},{value:"\u9F50\u9F50\u54C8\u5C14",label:"\u9F50\u9F50\u54C8\u5C14"},{value:"\u4E03\u53F0\u6CB3",label:"\u4E03\u53F0\u6CB3"},{value:"\u53CC\u9E2D\u5C71",label:"\u53CC\u9E2D\u5C71"},{value:"\u7EE5\u5316",label:"\u7EE5\u5316"},{value:"\u4F0A\u6625",label:"\u4F0A\u6625"}]},{value:"\u6CB3\u5357",label:"\u6CB3\u5357",children:[{value:"\u90D1\u5DDE",label:"\u90D1\u5DDE"},{value:"\u5B89\u9633",label:"\u5B89\u9633"},{value:"\u9E64\u58C1",label:"\u9E64\u58C1"},{value:"\u6F62\u5DDD",label:"\u6F62\u5DDD"},{value:"\u7126\u4F5C",label:"\u7126\u4F5C"},{value:"\u6D4E\u6E90",label:"\u6D4E\u6E90"},{value:"\u5F00\u5C01",label:"\u5F00\u5C01"},{value:"\u6F2F\u6CB3",label:"\u6F2F\u6CB3"},{value:"\u6D1B\u9633",label:"\u6D1B\u9633"},{value:"\u5357\u9633",label:"\u5357\u9633"},{value:"\u5E73\u9876\u5C71",label:"\u5E73\u9876\u5C71"},{value:"\u6FEE\u9633",label:"\u6FEE\u9633"},{value:"\u4E09\u95E8\u5CE1",label:"\u4E09\u95E8\u5CE1"},{value:"\u5546\u4E18",label:"\u5546\u4E18"},{value:"\u65B0\u4E61",label:"\u65B0\u4E61"},{value:"\u4FE1\u9633",label:"\u4FE1\u9633"},{value:"\u8BB8\u660C",label:"\u8BB8\u660C"},{value:"\u5468\u53E3",label:"\u5468\u53E3"},{value:"\u9A7B\u9A6C\u5E97",label:"\u9A7B\u9A6C\u5E97"}]},{value:"\u9999\u6E2F",label:"\u9999\u6E2F",children:[{value:"\u9999\u6E2F",label:"\u9999\u6E2F"},{value:"\u4E5D\u9F99",label:"\u4E5D\u9F99"},{value:"\u65B0\u754C",label:"\u65B0\u754C"}]},{value:"\u6E56\u5317",label:"\u6E56\u5317",children:[{value:"\u6B66\u6C49",label:"\u6B66\u6C49"},{value:"\u5929\u95E8",label:"\u5929\u95E8"},{value:"\u6069\u65BD",label:"\u6069\u65BD"},{value:"\u9102\u5DDE",label:"\u9102\u5DDE"},{value:"\u9EC4\u5188",label:"\u9EC4\u5188"},{value:"\u9EC4\u77F3",label:"\u9EC4\u77F3"},{value:"\u8346\u95E8",label:"\u8346\u95E8"},{value:"\u8346\u5DDE",label:"\u8346\u5DDE"},{value:"\u6F5C\u6C5F",label:"\u6F5C\u6C5F"},{value:"\u5341\u5830",label:"\u5341\u5830"},{value:"\u968F\u5DDE",label:"\u968F\u5DDE"},{value:"\u6B66\u7A74",label:"\u6B66\u7A74"},{value:"\u4ED9\u6843",label:"\u4ED9\u6843"},{value:"\u54B8\u5B81",label:"\u54B8\u5B81"},{value:"\u8944\u9633",label:"\u8944\u9633"},{value:"\u8944\u6A0A",label:"\u8944\u6A0A"},{value:"\u5B5D\u611F",label:"\u5B5D\u611F"},{value:"\u5B9C\u660C",label:"\u5B9C\u660C"}]},{value:"\u6E56\u5357",label:"\u6E56\u5357",children:[{value:"\u957F\u6C99",label:"\u957F\u6C99"},{value:"\u5E38\u5FB7",label:"\u5E38\u5FB7"},{value:"\u90F4\u5DDE",label:"\u90F4\u5DDE"},{value:"\u8861\u9633",label:"\u8861\u9633"},{value:"\u6000\u5316",label:"\u6000\u5316"},{value:"\u5409\u9996",label:"\u5409\u9996"},{value:"\u5A04\u5E95",label:"\u5A04\u5E95"},{value:"\u90B5\u9633",label:"\u90B5\u9633"},{value:"\u6E58\u6F6D",label:"\u6E58\u6F6D"},{value:"\u76CA\u9633",label:"\u76CA\u9633"},{value:"\u5CB3\u9633",label:"\u5CB3\u9633"},{value:"\u6C38\u5DDE",label:"\u6C38\u5DDE"},{value:"\u5F20\u5BB6\u754C",label:"\u5F20\u5BB6\u754C"},{value:"\u682A\u6D32",label:"\u682A\u6D32"}]},{value:"\u6C5F\u897F",label:"\u6C5F\u897F",children:[{value:"\u5357\u660C",label:"\u5357\u660C"},{value:"\u629A\u5DDE",label:"\u629A\u5DDE"},{value:"\u8D63\u5DDE",label:"\u8D63\u5DDE"},{value:"\u5409\u5B89",label:"\u5409\u5B89"},{value:"\u666F\u5FB7\u9547",label:"\u666F\u5FB7\u9547"},{value:"\u4E95\u5188\u5C71",label:"\u4E95\u5188\u5C71"},{value:"\u4E5D\u6C5F",label:"\u4E5D\u6C5F"},{value:"\u5E90\u5C71",label:"\u5E90\u5C71"},{value:"\u840D\u4E61",label:"\u840D\u4E61"},{value:"\u4E0A\u9976",label:"\u4E0A\u9976"},{value:"\u65B0\u4F59",label:"\u65B0\u4F59"},{value:"\u5B9C\u6625",label:"\u5B9C\u6625"},{value:"\u9E70\u6F6D",label:"\u9E70\u6F6D"}]},{value:"\u5409\u6797",label:"\u5409\u6797",children:[{value:"\u957F\u6625",label:"\u957F\u6625"},{value:"\u5409\u6797",label:"\u5409\u6797"},{value:"\u767D\u57CE",label:"\u767D\u57CE"},{value:"\u767D\u5C71",label:"\u767D\u5C71"},{value:"\u73F2\u6625",label:"\u73F2\u6625"},{value:"\u8FBD\u6E90",label:"\u8FBD\u6E90"},{value:"\u6885\u6CB3",label:"\u6885\u6CB3"},{value:"\u56DB\u5E73",label:"\u56DB\u5E73"},{value:"\u677E\u539F",label:"\u677E\u539F"},{value:"\u901A\u5316",label:"\u901A\u5316"},{value:"\u5EF6\u5409",label:"\u5EF6\u5409"}]},{value:"\u8FBD\u5B81",label:"\u8FBD\u5B81",children:[{value:"\u6C88\u9633",label:"\u6C88\u9633"},{value:"\u978D\u5C71",label:"\u978D\u5C71"},{value:"\u672C\u6EAA",label:"\u672C\u6EAA"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u5927\u8FDE",label:"\u5927\u8FDE"},{value:"\u4E39\u4E1C",label:"\u4E39\u4E1C"},{value:"\u629A\u987A",label:"\u629A\u987A"},{value:"\u961C\u65B0",label:"\u961C\u65B0"},{value:"\u846B\u82A6\u5C9B",label:"\u846B\u82A6\u5C9B"},{value:"\u9526\u5DDE",label:"\u9526\u5DDE"},{value:"\u8FBD\u9633",label:"\u8FBD\u9633"},{value:"\u76D8\u9526",label:"\u76D8\u9526"},{value:"\u94C1\u5CAD",label:"\u94C1\u5CAD"},{value:"\u8425\u53E3",label:"\u8425\u53E3"}]},{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8",children:[{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8"}]},{value:"\u5185\u8499\u53E4",label:"\u5185\u8499\u53E4",children:[{value:"\u547C\u548C\u6D69\u7279",label:"\u547C\u548C\u6D69\u7279"},{value:"\u963F\u62C9\u5584\u76DF",label:"\u963F\u62C9\u5584\u76DF"},{value:"\u5305\u5934",label:"\u5305\u5934"},{value:"\u8D64\u5CF0",label:"\u8D64\u5CF0"},{value:"\u4E1C\u80DC",label:"\u4E1C\u80DC"},{value:"\u6D77\u62C9\u5C14",label:"\u6D77\u62C9\u5C14"},{value:"\u96C6\u5B81",label:"\u96C6\u5B81"},{value:"\u4E34\u6CB3",label:"\u4E34\u6CB3"},{value:"\u901A\u8FBD",label:"\u901A\u8FBD"},{value:"\u4E4C\u6D77",label:"\u4E4C\u6D77"},{value:"\u4E4C\u5170\u6D69\u7279",label:"\u4E4C\u5170\u6D69\u7279"},{value:"\u9521\u6797\u6D69\u7279",label:"\u9521\u6797\u6D69\u7279"}]},{value:"\u5B81\u590F",label:"\u5B81\u590F",children:[{value:"\u94F6\u5DDD",label:"\u94F6\u5DDD"},{value:"\u56FA\u6E90",label:"\u56FA\u6E90"},{value:"\u77F3\u5634\u5C71",label:"\u77F3\u5634\u5C71"},{value:"\u5434\u5FE0",label:"\u5434\u5FE0"}]},{value:"\u9752\u6D77",label:"\u9752\u6D77",children:[{value:"\u897F\u5B81",label:"\u897F\u5B81"},{value:"\u5FB7\u4EE4\u54C8",label:"\u5FB7\u4EE4\u54C8"},{value:"\u683C\u5C14\u6728",label:"\u683C\u5C14\u6728"},{value:"\u5171\u548C",label:"\u5171\u548C"},{value:"\u6D77\u4E1C",label:"\u6D77\u4E1C"},{value:"\u6D77\u664F",label:"\u6D77\u664F"},{value:"\u739B\u6C81",label:"\u739B\u6C81"},{value:"\u540C\u4EC1",label:"\u540C\u4EC1"},{value:"\u7389\u6811",label:"\u7389\u6811"}]},{value:"\u5C71\u4E1C",label:"\u5C71\u4E1C",children:[{value:"\u6D4E\u5357",label:"\u6D4E\u5357"},{value:"\u6EE8\u5DDE",label:"\u6EE8\u5DDE"},{value:"\u5156\u5DDE",label:"\u5156\u5DDE"},{value:"\u5FB7\u5DDE",label:"\u5FB7\u5DDE"},{value:"\u4E1C\u8425",label:"\u4E1C\u8425"},{value:"\u83CF\u6CFD",label:"\u83CF\u6CFD"},{value:"\u6D4E\u5B81",label:"\u6D4E\u5B81"},{value:"\u83B1\u829C",label:"\u83B1\u829C"},{value:"\u804A\u57CE",label:"\u804A\u57CE"},{value:"\u4E34\u6C82",label:"\u4E34\u6C82"},{value:"\u84EC\u83B1",label:"\u84EC\u83B1"},{value:"\u9752\u5C9B",label:"\u9752\u5C9B"},{value:"\u66F2\u961C",label:"\u66F2\u961C"},{value:"\u65E5\u7167",label:"\u65E5\u7167"},{value:"\u6CF0\u5B89",label:"\u6CF0\u5B89"},{value:"\u6F4D\u574A",label:"\u6F4D\u574A"},{value:"\u5A01\u6D77",label:"\u5A01\u6D77"},{value:"\u70DF\u53F0",label:"\u70DF\u53F0"},{value:"\u67A3\u5E84",label:"\u67A3\u5E84"},{value:"\u6DC4\u535A",label:"\u6DC4\u535A"}]},{value:"\u5C71\u897F",label:"\u5C71\u897F",children:[{value:"\u592A\u539F",label:"\u592A\u539F"},{value:"\u5415\u6881",label:"\u5415\u6881"},{value:"\u957F\u6CBB",label:"\u957F\u6CBB"},{value:"\u5927\u540C",label:"\u5927\u540C"},{value:"\u5019\u9A6C",label:"\u5019\u9A6C"},{value:"\u664B\u57CE",label:"\u664B\u57CE"},{value:"\u79BB\u77F3",label:"\u79BB\u77F3"},{value:"\u4E34\u6C7E",label:"\u4E34\u6C7E"},{value:"\u5B81\u6B66",label:"\u5B81\u6B66"},{value:"\u6714\u5DDE",label:"\u6714\u5DDE"},{value:"\u5FFB\u5DDE",label:"\u5FFB\u5DDE"},{value:"\u9633\u6CC9",label:"\u9633\u6CC9"},{value:"\u6986\u6B21",label:"\u6986\u6B21"},{value:"\u664B\u4E2D",label:"\u664B\u4E2D"},{value:"\u8FD0\u57CE",label:"\u8FD0\u57CE"}]},{value:"\u9655\u897F",label:"\u9655\u897F",children:[{value:"\u897F\u5B89",label:"\u897F\u5B89"},{value:"\u5B89\u5EB7",label:"\u5B89\u5EB7"},{value:"\u5B9D\u9E21",label:"\u5B9D\u9E21"},{value:"\u6C49\u4E2D",label:"\u6C49\u4E2D"},{value:"\u6E2D\u5357",label:"\u6E2D\u5357"},{value:"\u5546\u5DDE",label:"\u5546\u5DDE"},{value:"\u7EE5\u5FB7",label:"\u7EE5\u5FB7"},{value:"\u94DC\u5DDD",label:"\u94DC\u5DDD"},{value:"\u54B8\u9633",label:"\u54B8\u9633"},{value:"\u5EF6\u5B89",label:"\u5EF6\u5B89"},{value:"\u6986\u6797",label:"\u6986\u6797"}]},{value:"\u56DB\u5DDD",label:"\u56DB\u5DDD",children:[{value:"\u6210\u90FD",label:"\u6210\u90FD"},{value:"\u5DF4\u4E2D",label:"\u5DF4\u4E2D"},{value:"\u8FBE\u5DDD",label:"\u8FBE\u5DDD"},{value:"\u5FB7\u9633",label:"\u5FB7\u9633"},{value:"\u90FD\u6C5F\u5830",label:"\u90FD\u6C5F\u5830"},{value:"\u5CE8\u7709\u5C71",label:"\u5CE8\u7709\u5C71"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u5E7F\u5B89",label:"\u5E7F\u5B89"},{value:"\u5E7F\u5143",label:"\u5E7F\u5143"},{value:"\u4E5D\u5BE8\u6C9F",label:"\u4E5D\u5BE8\u6C9F"},{value:"\u5EB7\u5B9A",label:"\u5EB7\u5B9A"},{value:"\u4E50\u5C71",label:"\u4E50\u5C71"},{value:"\u6CF8\u5DDE",label:"\u6CF8\u5DDE"},{value:"\u9A6C\u5C14\u5EB7",label:"\u9A6C\u5C14\u5EB7"},{value:"\u7EF5\u9633",label:"\u7EF5\u9633"},{value:"\u7709\u5C71",label:"\u7709\u5C71"},{value:"\u5357\u5145",label:"\u5357\u5145"},{value:"\u5185\u6C5F",label:"\u5185\u6C5F"},{value:"\u6500\u679D\u82B1",label:"\u6500\u679D\u82B1"},{value:"\u9042\u5B81",label:"\u9042\u5B81"},{value:"\u6C76\u5DDD",label:"\u6C76\u5DDD"},{value:"\u897F\u660C",label:"\u897F\u660C"},{value:"\u96C5\u5B89",label:"\u96C5\u5B89"},{value:"\u5B9C\u5BBE",label:"\u5B9C\u5BBE"},{value:"\u81EA\u8D21",label:"\u81EA\u8D21"},{value:"\u8D44\u9633",label:"\u8D44\u9633"}]},{value:"\u53F0\u6E7E",label:"\u53F0\u6E7E",children:[{value:"\u53F0\u5317",label:"\u53F0\u5317"},{value:"\u57FA\u9686",label:"\u57FA\u9686"},{value:"\u53F0\u5357",label:"\u53F0\u5357"},{value:"\u53F0\u4E2D",label:"\u53F0\u4E2D"},{value:"\u9AD8\u96C4",label:"\u9AD8\u96C4"},{value:"\u5C4F\u4E1C",label:"\u5C4F\u4E1C"},{value:"\u5357\u6295",label:"\u5357\u6295"},{value:"\u4E91\u6797",label:"\u4E91\u6797"},{value:"\u65B0\u7AF9",label:"\u65B0\u7AF9"},{value:"\u5F70\u5316",label:"\u5F70\u5316"},{value:"\u82D7\u6817",label:"\u82D7\u6817"},{value:"\u5609\u4E49",label:"\u5609\u4E49"},{value:"\u6843\u56ED",label:"\u6843\u56ED"},{value:"\u5B9C\u5170",label:"\u5B9C\u5170"},{value:"\u53F0\u4E1C",label:"\u53F0\u4E1C"},{value:"\u91D1\u95E8",label:"\u91D1\u95E8"},{value:"\u9A6C\u7956",label:"\u9A6C\u7956"},{value:"\u6F8E\u6E56",label:"\u6F8E\u6E56"}]},{value:"\u5929\u6D25",label:"\u5929\u6D25",children:[{value:"\u5929\u6D25",label:"\u5929\u6D25"},{value:"\u548C\u5E73",label:"\u548C\u5E73"},{value:"\u4E1C\u4E3D",label:"\u4E1C\u4E3D"},{value:"\u6CB3\u4E1C",label:"\u6CB3\u4E1C"},{value:"\u897F\u9752",label:"\u897F\u9752"},{value:"\u6CB3\u897F",label:"\u6CB3\u897F"},{value:"\u6D25\u5357",label:"\u6D25\u5357"},{value:"\u5357\u5F00",label:"\u5357\u5F00"},{value:"\u5317\u8FB0",label:"\u5317\u8FB0"},{value:"\u6CB3\u5317",label:"\u6CB3\u5317"},{value:"\u6B66\u6E05",label:"\u6B66\u6E05"},{value:"\u7EA2\u6322",label:"\u7EA2\u6322"},{value:"\u5858\u6CBD",label:"\u5858\u6CBD"},{value:"\u6C49\u6CBD",label:"\u6C49\u6CBD"},{value:"\u5927\u6E2F",label:"\u5927\u6E2F"},{value:"\u5B81\u6CB3",label:"\u5B81\u6CB3"},{value:"\u9759\u6D77",label:"\u9759\u6D77"},{value:"\u5B9D\u577B",label:"\u5B9D\u577B"},{value:"\u84DF\u53BF",label:"\u84DF\u53BF"}]},{value:"\u65B0\u7586",label:"\u65B0\u7586",children:[{value:"\u4E4C\u9C81\u6728\u9F50",label:"\u4E4C\u9C81\u6728\u9F50"},{value:"\u963F\u514B\u82CF",label:"\u963F\u514B\u82CF"},{value:"\u963F\u52D2\u6CF0",label:"\u963F\u52D2\u6CF0"},{value:"\u963F\u56FE\u4EC0",label:"\u963F\u56FE\u4EC0"},{value:"\u535A\u4E50",label:"\u535A\u4E50"},{value:"\u660C\u5409",label:"\u660C\u5409"},{value:"\u4E1C\u5C71",label:"\u4E1C\u5C71"},{value:"\u54C8\u5BC6",label:"\u54C8\u5BC6"},{value:"\u548C\u7530",label:"\u548C\u7530"},{value:"\u5580\u4EC0",label:"\u5580\u4EC0"},{value:"\u514B\u62C9\u739B\u4F9D",label:"\u514B\u62C9\u739B\u4F9D"},{value:"\u5E93\u8F66",label:"\u5E93\u8F66"},{value:"\u5E93\u5C14\u52D2",label:"\u5E93\u5C14\u52D2"},{value:"\u594E\u5C6F",label:"\u594E\u5C6F"},{value:"\u77F3\u6CB3\u5B50",label:"\u77F3\u6CB3\u5B50"},{value:"\u5854\u57CE",label:"\u5854\u57CE"},{value:"\u5410\u9C81\u756A",label:"\u5410\u9C81\u756A"},{value:"\u4F0A\u5B81",label:"\u4F0A\u5B81"}]},{value:"\u897F\u85CF",label:"\u897F\u85CF",children:[{value:"\u62C9\u8428",label:"\u62C9\u8428"},{value:"\u963F\u91CC",label:"\u963F\u91CC"},{value:"\u660C\u90FD",label:"\u660C\u90FD"},{value:"\u6797\u829D",label:"\u6797\u829D"},{value:"\u90A3\u66F2",label:"\u90A3\u66F2"},{value:"\u65E5\u5580\u5219",label:"\u65E5\u5580\u5219"},{value:"\u5C71\u5357",label:"\u5C71\u5357"}]},{value:"\u4E91\u5357",label:"\u4E91\u5357",children:[{value:"\u6606\u660E",label:"\u6606\u660E"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4FDD\u5C71",label:"\u4FDD\u5C71"},{value:"\u695A\u96C4",label:"\u695A\u96C4"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4E1C\u5DDD",label:"\u4E1C\u5DDD"},{value:"\u4E2A\u65E7",label:"\u4E2A\u65E7"},{value:"\u666F\u6D2A",label:"\u666F\u6D2A"},{value:"\u5F00\u8FDC",label:"\u5F00\u8FDC"},{value:"\u4E34\u6CA7",label:"\u4E34\u6CA7"},{value:"\u4E3D\u6C5F",label:"\u4E3D\u6C5F"},{value:"\u516D\u5E93",label:"\u516D\u5E93"},{value:"\u6F5E\u897F",label:"\u6F5E\u897F"},{value:"\u66F2\u9756",label:"\u66F2\u9756"},{value:"\u601D\u8305",label:"\u601D\u8305"},{value:"\u6587\u5C71",label:"\u6587\u5C71"},{value:"\u897F\u53CC\u7248\u7EB3",label:"\u897F\u53CC\u7248\u7EB3"},{value:"\u7389\u6EAA",label:"\u7389\u6EAA"},{value:"\u4E2D\u7538",label:"\u4E2D\u7538"},{value:"\u662D\u901A",label:"\u662D\u901A"}]},{value:"\u6D59\u6C5F",label:"\u6D59\u6C5F",children:[{value:"\u676D\u5DDE",label:"\u676D\u5DDE"},{value:"\u6E29\u5DDE",label:"\u6E29\u5DDE"},{value:"\u5B89\u5409",label:"\u5B89\u5409"},{value:"\u6148\u6EAA",label:"\u6148\u6EAA"},{value:"\u5B9A\u6D77",label:"\u5B9A\u6D77"},{value:"\u5949\u5316",label:"\u5949\u5316"},{value:"\u6D77\u76D0",label:"\u6D77\u76D0"},{value:"\u9EC4\u5CA9",label:"\u9EC4\u5CA9"},{value:"\u6E56\u5DDE",label:"\u6E56\u5DDE"},{value:"\u5609\u5174",label:"\u5609\u5174"},{value:"\u91D1\u534E",label:"\u91D1\u534E"},{value:"\u4E34\u5B89",label:"\u4E34\u5B89"},{value:"\u4E34\u6D77",label:"\u4E34\u6D77"},{value:"\u4E3D\u6C34",label:"\u4E3D\u6C34"},{value:"\u5B81\u6CE2",label:"\u5B81\u6CE2"},{value:"\u74EF\u6D77",label:"\u74EF\u6D77"},{value:"\u5E73\u6E56",label:"\u5E73\u6E56"},{value:"\u5343\u5C9B\u6E56",label:"\u5343\u5C9B\u6E56"},{value:"\u8862\u5DDE",label:"\u8862\u5DDE"},{value:"\u6C5F\u5C71",label:"\u6C5F\u5C71"},{value:"\u745E\u5B89",label:"\u745E\u5B89"},{value:"\u7ECD\u5174",label:"\u7ECD\u5174"},{value:"\u5D4A\u5DDE",label:"\u5D4A\u5DDE"},{value:"\u53F0\u5DDE",label:"\u53F0\u5DDE"},{value:"\u6E29\u5CAD",label:"\u6E29\u5CAD"},{value:"\u4F59\u59DA",label:"\u4F59\u59DA"},{value:"\u821F\u5C71",label:"\u821F\u5C71"}]},{value:"\u6D77\u5916",label:"\u6D77\u5916",children:[{value:"\u7F8E\u56FD",label:"\u7F8E\u56FD"},{value:"\u65E5\u672C",label:"\u65E5\u672C"},{value:"\u82F1\u56FD",label:"\u82F1\u56FD"},{value:"\u6CD5\u56FD",label:"\u6CD5\u56FD"},{value:"\u5FB7\u56FD",label:"\u5FB7\u56FD"},{value:"\u5176\u4ED6",label:"\u5176\u4ED6"}]}]},24768:function(un,Yn,St){"use strict";St.d(Yn,{AL:function(){return Pt},Iy:function(){return xe},Qv:function(){return Ft},ez:function(){return yt},jb:function(){return ze}});var ot=St(32834),Tt=St.n(ot),ae=St(11690),$e=St.n(ae);let fe=1;function ve(re,ie){const Me=re.match(/^(\s+)(?:```)/);if(Me===null)return ie;const pe=Me[1];return ie.split(` `).map(Le=>{const ge=Le.match(/^\s+/);if(ge===null)return Le;const[je]=ge;return je.length>=pe.length?Le.slice(pe.length):Le}).join(` `)}let qt=[],Oe=["
        "];const de=new(Tt()).Renderer,Ce=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function xe(){qt.length=0,Oe=["
          "]}const ze={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function He(re,ie,Me,pe){if(ie>=re.length||re[ie].level<=Me)return ie;var Le=re[ie];pe.push("
        • "+Le.text+""),ie++;var ge=[];return ie=He(re,ie,Le.level,ge),ge.length>0&&(pe.push("
            "),ge.forEach(function(je){pe.push(je)}),pe.push("
          ")),pe.push("
        • "),ie=He(re,ie,Me,pe),ie}function Ft(){return He(qt,0,0,Oe),Oe.push("
        "),Oe.join("")}const nt={heading(re){const ie=Ce.exec(re);if(fe+=1,ie)return{type:"heading",raw:ie[0],depth:ie[1].length,text:ie[2]}},fences(re){const ie=this.rules.block.fences.exec(re);if(ie){const Me=ie[0];let pe=ve(Me,ie[3]||"");const Le=ie[2]?ie[2].trim():ie[2];if(["latex","katex","math"].indexOf(Le)>=0){const ge=ut(),je=pe;pe=ge,pt[ge]={type:"block",expression:je}}return{type:"code",raw:Me,lang:Le,text:pe}}}},et=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ct=0;const ut=()=>`__special_katext_id_${ct++}__`;let pt={};function yt(){return pt}function Pt(){ct=0,pt={}}function bt(re){return re=re.replace(et,(ie,Me)=>{const pe=ut();return pt[pe]={type:"inline",expression:Me},pe}),re}const Rt=de.listitem;de.listitem=function(re){return Rt(bt(re))};const Ut=de.paragraph;de.paragraph=function(re){return Ut(bt(re))};const ee=de.tablecell;de.tablecell=function(re,ie){return ee(bt(re),ie)},de.code=function(re,ie,Me){const pe=(ie||"").match(/\S*/)[0];return pe?["latex","katex","math"].indexOf(pe)>=0?`

        ${re}

        `:`
        ${Me?re:(0,ae.escape)(re,!0)}
        -`:'
        '+(Me?re:(0,ae.escape)(re,!0))+"
        "},de.heading=function(re,ie,Me){let pe=this.options.headerPrefix+Me.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return qt.push({anchor:pe,level:ie,text:re}),"'+re+""},Tt().setOptions({silent:!0,gfm:!0,pedantic:!1}),Tt().use({tokenizer:nt,renderer:de}),Yn.ZP=Tt()},46474:function(un,Yn,St){"use strict";St.d(Yn,{rX:function(){return bt},pW:function(){return Rt},gy:function(){return Ut},xY:function(){return Pt},O5:function(){return yt},hs:function(){return et},tJ:function(){return Ft},o1:function(){return nt},Rd:function(){return pt}});var ot=St(89070),Tt=St(43418),ae=St(28103),$e=St(8591),fe=St(24065),ve=St(955),qt=St(87169),Oe=St(25510),de="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAouElEQVR42u3de5gU1Z038HOqqu89PQPMhQHkNqCiCCK5qMRojIkXRNFERDTGNRvik5hNjPtgzEuyJLq6sq/EbEyy+u5jjBEhSEREvKyXQJRVs1FEMARhhhlgLsDAMD3T96o67x8zzPQMPTPVU12XX8/38/D4PDZdVedUd3+py6nf4UIIBgBAgeR0AwAAjEJgAQAZCCwAIAOBBQBkILAAgAwEFgCQgcACADIQWABABgILAMhAYAEAGQgsACADgQUAZCCwAIA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aWkp+J1HZx+RN75O23pkRWEGk5wdEWJFN0023mTdEWfH9xjvZl5whAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIsGRYg7NIP99vRd+tKDlg2zutYLxJzk7/Ydv+dOEcKwPBERYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgowiHNYzk4QJWPEzvwm7mZEVlBZP1Epwd65CTbSMYLBq5giMsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQIYlwxpaWlrMLG5yBgrbSvfbVnKASsED25j8iE2u0/jiJsc6uLBWhLPrZBYFVsHnvAEAYDglBABCEFgAQAYCCwDIQGABABlmL7qvWrUqHA5b3cotW7bYszsAwM24FXeIbUPl0XPbahsY76ZtU3W48+64ma0bZ9tnZFtdB9tKoQwEp4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",Ce=St.p+"static/newqrcode.a8740efb.png",xe=St(32637),ze=St(59301),He=(ee,re,ie)=>new Promise((Me,pe)=>{var Le=Je=>{try{je(ie.next(Je))}catch(Cn){pe(Cn)}},ge=Je=>{try{je(ie.throw(Je))}catch(Cn){pe(Cn)}},je=Je=>Je.done?Me(Je.value):Promise.resolve(Je.value).then(Le,ge);je((ie=ie.apply(ee,re)).next())});const Ft=(ee,re=!1,ie=!1,Me="",pe=!1)=>!!(nt(ee)&&ct(ee,re,ie,Me,pe)),nt=ee=>(0,fe.bg)()?!0:(ee({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),et=ee=>{var re,ie,Me;const{user:pe}=(0,ot.getDvaApp)()._store.getState();(0,fe.bg)()&&!((ie=(re=pe==null?void 0:pe.userInfo)==null?void 0:re.course)!=null&&ie.course_public)&&!((Me=pe==null?void 0:pe.userInfo)!=null&&Me.profile_completed)&&ee({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:"/account/profile/edit",isCurrentPage:!0}})},ct=(ee,re=!1,ie=!0,Me="",pe=!1)=>{var Le;const{user:ge}=(0,ot.getDvaApp)()._store.getState();return(Le=ge.userInfo)!=null&&Le.profile_completed?!0:(ie?ee({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:Me,isCurrentPage:pe}}):Tt.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,ve.xg)("/account/profile/edit"),ut()}}),!1)},ut=()=>{Tt.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()}})},pt=()=>{Tt.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:ze.createElement("div",{style:{textAlign:"center"}},ze.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"),ze.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:xe}),ze.createElement("div",{style:{color:"#666666",fontSize:14,marginTop:15}},"\u6DFB\u52A0\u5BA2\u670D\u4EBA\u5458\u5FAE\u4FE1\uFF0C\u83B7\u5F97\u66F4\u591A\u652F\u6301"))})},yt=()=>{var ee;const{user:re}=(0,ot.getDvaApp)()._store.getState();return(ee=re.userInfo)!=null&&ee.professional_certification?!0:(Tt.default.confirm({title:"\u63D0\u793A",centered:!0,content:ze.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,ve.xg)("/account/certification")}}),!1)},Pt=()=>(0,fe.V9)()?!0:(Tt.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:ze.createElement("div",{className:"tc",style:{marginLeft:-38}},ze.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),ze.createElement("img",{src:Ce,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),bt=(ee,re)=>ee?!0:(Tt.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:ze.createElement("div",null,ze.createElement("p",null,re||"\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"),ze.createElement("div",{style:{marginLeft:"110px"}},ze.createElement("img",{src:de,width:200}),ze.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,ve.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),Rt=ee=>{Tt.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:ze.createElement("div",null,ze.createElement("div",null,ze.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"),ze.createElement(ae.Z,null),ze.createElement("p",{style:{color:"#666666",fontSize:12}}," ",ze.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 ",ze.createElement("a",null,ee),"\u5929\u3002"),ze.createElement("p",{style:{color:"#666666",fontSize:12}}," ",ze.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")),ze.createElement("div",{style:{textAlign:"center",marginTop:30}},ze.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Oe,alt:"\u4E8C\u7EF4\u7801",width:160})))})},Ut=(ee,re="")=>{const{shixunsDetail:{detail:ie}}=(0,ot.getDvaApp)()._store.getState();if((ie==null?void 0:ie.public)===2||(ie==null?void 0:ie.public)===1||(ie==null?void 0:ie.shixun_status)===3){let Me="";return(ie==null?void 0:ie.public)===2&&(Me="\u5DF2\u516C\u5F00"),(ie==null?void 0:ie.public)===1&&(Me="\u5F85\u5BA1\u6838"),(ie==null?void 0:ie.shixun_status)===3&&(Me="\u5DF2\u5173\u95ED"),Tt.default.info({centered:!0,icon:ze.createElement(qt.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:ze.createElement("div",{className:"tc",style:{marginLeft:-38}},ze.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},ze.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",Me,"\uFF0C",re,"\u3002"),ze.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),ze.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Oe,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(ie==null?void 0:ie.shixun_status)===2?(Tt.default.confirm({centered:!0,icon:ze.createElement(qt.Z,null),title:"\u63D0\u793A",content:ze.createElement("div",null,ze.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",re,"\u3002"),ze.createElement("br",null),ze.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:()=>{Tt.default.confirm({width:440,centered:!0,icon:ze.createElement(qt.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:()=>He(void 0,null,function*(){(yield ee({type:"shixunsDetail/cancelRelease",payload:{id:ie==null?void 0:ie.identifier}})).status!==401&&($e.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),ee({type:"shixunsDetail/getShixunsDetail",payload:{id:ie==null?void 0:ie.identifier}}),ee({type:"practiceSetting/getCommonData",payload:{id:ie==null?void 0:ie.identifier}}))})})}}),!0):!1}},77578:function(un,Yn,St){"use strict";St.d(Yn,{Z:function(){return ot}});const ot=Tt=>Tt?typeof Tt=="function"?Tt():Tt:null},27666:function(un,Yn,St){"use strict";var ot=St(80702),Tt=St(16089);function ae($e){let fe;const ve=Oe=>()=>{fe=null,$e.apply(void 0,(0,ot.Z)(Oe))},qt=function(){if(fe==null){for(var Oe=arguments.length,de=new Array(Oe),Ce=0;Ce{Tt.Z.cancel(fe),fe=null},qt}Yn.Z=ae},88522:function(un,Yn,St){"use strict";var ot=St(92310),Tt=St.n(ot),ae=St(11592),$e=St(2738),fe=St(59301),ve=St(53487),qt=St(92343),Oe=St(36355),de=St(57809);const{Option:Ce}=de.default;function xe(nt){return nt&&nt.type&&(nt.type.isSelectOption||nt.type.isSelectOptGroup)}const ze=(nt,et)=>{const{prefixCls:ct,className:ut,popupClassName:pt,dropdownClassName:yt,children:Pt,dataSource:bt}=nt,Rt=(0,ae.Z)(Pt);let Ut;Rt.length===1&&(0,qt.l$)(Rt[0])&&!xe(Rt[0])&&([Ut]=Rt);const ee=Ut?()=>Ut:void 0;let re;Rt.length&&xe(Rt[0])?re=Pt:re=bt?bt.map(pe=>{if((0,qt.l$)(pe))return pe;switch(typeof pe){case"string":return fe.createElement(Ce,{key:pe,value:pe},pe);case"object":{const{value:Le}=pe;return fe.createElement(Ce,{key:Le,value:Le},pe.text)}default:return}}):[];const{getPrefixCls:ie}=fe.useContext(Oe.E_),Me=ie("select",ct);return fe.createElement(de.default,Object.assign({ref:et,suffixIcon:null},(0,$e.Z)(nt,["dataSource","dropdownClassName"]),{prefixCls:Me,popupClassName:pt||yt,className:Tt()(`${Me}-auto-complete`,ut),mode:de.default.SECRET_COMBOBOX_MODE_DO_NOT_USE},{getInputElement:ee}),re)},He=fe.forwardRef(ze),Ft=(0,ve.Z)(He);He.Option=Ce,He._InternalPanelDoNotUseOrYouWillBeFired=Ft,Yn.Z=He},7678:function(un,Yn,St){"use strict";St.d(Yn,{Z:function(){return ee}});var ot=St(72308),Tt=St(59301),ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"},$e=ae,fe=St(7657),ve=function(ie,Me){return Tt.createElement(fe.Z,(0,ot.Z)({},ie,{ref:Me,icon:$e}))},qt=Tt.forwardRef(ve),Oe=qt,de=St(92310),Ce=St.n(de),xe=St(77900),ze=St(2738),He=St(13845),Ft=St(92343),nt=St(68031),et=St(27666),ct=St(36355),ut=St(83116),pt=St(37613),yt=St(17313);const Pt=re=>{const{componentCls:ie,backTopFontSize:Me,backTopSize:pe,zIndexPopup:Le}=re;return{[ie]:Object.assign(Object.assign({},(0,yt.Wf)(re)),{position:"fixed",insetInlineEnd:re.backTopInlineEnd,insetBlockEnd:re.backTopBlockEnd,zIndex:Le,width:40,height:40,cursor:"pointer","&:empty":{display:"none"},[`${ie}-content`]:{width:pe,height:pe,overflow:"hidden",color:re.backTopColor,textAlign:"center",backgroundColor:re.backTopBackground,borderRadius:pe,transition:`all ${re.motionDurationMid}`,"&:hover":{backgroundColor:re.backTopHoverBackground,transition:`all ${re.motionDurationMid}`}},[`${ie}-icon`]:{fontSize:Me,lineHeight:`${pe}px`}})}},bt=re=>{const{componentCls:ie}=re;return{[`@media (max-width: ${re.screenMD}px)`]:{[ie]:{insetInlineEnd:re.backTopInlineEndMD}},[`@media (max-width: ${re.screenXS}px)`]:{[ie]:{insetInlineEnd:re.backTopInlineEndXS}}}};var Rt=(0,ut.Z)("BackTop",re=>{const{fontSizeHeading3:ie,colorTextDescription:Me,colorTextLightSolid:pe,colorText:Le,controlHeightLG:ge}=re,je=(0,pt.TS)(re,{backTopBackground:Me,backTopColor:pe,backTopHoverBackground:Le,backTopFontSize:ie,backTopSize:ge,backTopBlockEnd:ge*1.25,backTopInlineEnd:ge*2.5,backTopInlineEndMD:ge*1.5,backTopInlineEndXS:ge*.5});return[Pt(je),bt(je)]},re=>({zIndexPopup:re.zIndexBase+10})),ee=re=>{const{prefixCls:ie,className:Me,rootClassName:pe,visibilityHeight:Le=400,target:ge,onClick:je,duration:Je=450}=re,[Cn,hn]=Tt.useState(Le===0),Xn=Tt.useRef(null),Fe=()=>Xn.current&&Xn.current.ownerDocument?Xn.current.ownerDocument:window,Zt=(0,et.Z)(cn=>{const wn=(0,He.Z)(cn.target,!0);hn(wn>=Le)});Tt.useEffect(()=>{const wn=(ge||Fe)();return Zt({target:wn}),wn==null||wn.addEventListener("scroll",Zt),()=>{Zt.cancel(),wn==null||wn.removeEventListener("scroll",Zt)}},[ge]);const Ye=cn=>{(0,nt.Z)(0,{getContainer:ge||Fe,duration:Je}),je==null||je(cn)},{getPrefixCls:kn,direction:Tn}=Tt.useContext(ct.E_),Be=kn("back-top",ie),be=kn(),[Ke,jn]=Rt(Be),Wn=Ce()(jn,Be,{[`${Be}-rtl`]:Tn==="rtl"},Me,pe),An=(0,ze.Z)(re,["prefixCls","className","rootClassName","children","visibilityHeight","target"]),oe=Tt.createElement("div",{className:`${Be}-content`},Tt.createElement("div",{className:`${Be}-icon`},Tt.createElement(Oe,null)));return Ke(Tt.createElement("div",Object.assign({},An,{className:Wn,onClick:Ye,ref:Xn}),Tt.createElement(xe.default,{visible:Cn,motionName:`${be}-fade`},cn=>{let{className:wn}=cn;return(0,Ft.Tm)(re.children||oe,Fn=>{let{className:mn}=Fn;return{className:Ce()(wn,mn)}})})))}},9951:function(un,Yn,St){"use strict";St.d(Yn,{Z:function(){return Lo}});var ot=St(59301),Tt=St(72308),ae=St(77321),$e=St(96949),fe=St(55090),ve=St(80237),qt=St(77205),Oe=St(38793),de=St(49618),Ce=St(62853),xe=St(74416),ze={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0},He=ze,Ft=St(53280),nt=St(92310),et=St.n(nt);function ct(qn,$t,tn){return Math.max($t,Math.min(qn,tn))}var ut=function($t){var tn=["onTouchStart","onTouchMove","onWheel"];tn.includes($t._reactName)||$t.preventDefault()},pt=function($t){for(var tn=[],Jn=Pt($t),zt=bt($t),Mn=Jn;Mn0?1:0):0},Ut=function($t){return $t.centerMode?Math.floor(($t.slidesToShow-1)/2)+1+(parseInt($t.centerPadding)>0?1:0):$t.slidesToShow},ee=function($t){return $t&&$t.offsetWidth||0},re=function($t){return $t&&$t.offsetHeight||0},ie=function($t){var tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Jn,zt,Mn,le;return Jn=$t.startX-$t.curX,zt=$t.startY-$t.curY,Mn=Math.atan2(zt,Jn),le=Math.round(Mn*180/Math.PI),le<0&&(le=360-Math.abs(le)),le<=45&&le>=0||le<=360&&le>=315?"left":le>=135&&le<=225?"right":tn===!0?le>=35&&le<=135?"up":"down":"vertical"},Me=function($t){var tn=!0;return $t.infinite||($t.centerMode&&$t.currentSlide>=$t.slideCount-1||$t.slideCount<=$t.slidesToShow||$t.currentSlide>=$t.slideCount-$t.slidesToShow)&&(tn=!1),tn},pe=function($t,tn){var Jn={};return tn.forEach(function(zt){return Jn[zt]=$t[zt]}),Jn},Le=function($t){var tn=ot.Children.count($t.children),Jn=$t.listRef,zt=Math.ceil(ee(Jn)),Mn=$t.trackRef&&$t.trackRef.node,le=Math.ceil(ee(Mn)),Ct;if($t.vertical)Ct=zt;else{var vn=$t.centerMode&&parseInt($t.centerPadding)*2;typeof $t.centerPadding=="string"&&$t.centerPadding.slice(-1)==="%"&&(vn*=zt/100),Ct=Math.ceil((zt-vn)/$t.slidesToShow)}var Hn=Jn&&re(Jn.querySelector('[data-index="0"]')),Qt=Hn*$t.slidesToShow,Te=$t.currentSlide===void 0?$t.initialSlide:$t.currentSlide;$t.rtl&&$t.currentSlide===void 0&&(Te=tn-1-$t.initialSlide);var Re=$t.lazyLoadedList||[],_e=pt((0,ae.Z)((0,ae.Z)({},$t),{},{currentSlide:Te,lazyLoadedList:Re}));Re=Re.concat(_e);var me={slideCount:tn,slideWidth:Ct,listWidth:zt,trackWidth:le,currentSlide:Te,slideHeight:Hn,listHeight:Qt,lazyLoadedList:Re};return $t.autoplaying===null&&$t.autoplay&&(me.autoplaying="playing"),me},ge=function($t){var tn=$t.waitForAnimate,Jn=$t.animating,zt=$t.fade,Mn=$t.infinite,le=$t.index,Ct=$t.slideCount,vn=$t.lazyLoad,Hn=$t.currentSlide,Qt=$t.centerMode,Te=$t.slidesToScroll,Re=$t.slidesToShow,_e=$t.useCSS,me=$t.lazyLoadedList;if(tn&&Jn)return{};var en=le,te,Yt,Vt,Ve={},an={},pn=Mn?le:ct(le,0,Ct-1);if(zt){if(!Mn&&(le<0||le>=Ct))return{};le<0?en=le+Ct:le>=Ct&&(en=le-Ct),vn&&me.indexOf(en)<0&&(me=me.concat(en)),Ve={animating:!0,currentSlide:en,lazyLoadedList:me,targetSlide:en},an={animating:!1,targetSlide:en}}else te=en,en<0?(te=en+Ct,Mn?Ct%Te!==0&&(te=Ct-Ct%Te):te=0):!Me($t)&&en>Hn?en=te=Hn:Qt&&en>=Ct?(en=Mn?Ct:Ct-1,te=Mn?0:Ct-1):en>=Ct&&(te=en-Ct,Mn?Ct%Te!==0&&(te=0):te=Ct-Re),!Mn&&en+Re>=Ct&&(te=Ct-Re),Yt=be((0,ae.Z)((0,ae.Z)({},$t),{},{slideIndex:en})),Vt=be((0,ae.Z)((0,ae.Z)({},$t),{},{slideIndex:te})),Mn||(Yt===Vt&&(en=te),Yt=Vt),vn&&(me=me.concat(pt((0,ae.Z)((0,ae.Z)({},$t),{},{currentSlide:en})))),_e?(Ve={animating:!0,currentSlide:te,trackStyle:Be((0,ae.Z)((0,ae.Z)({},$t),{},{left:Yt})),lazyLoadedList:me,targetSlide:pn},an={animating:!1,currentSlide:te,trackStyle:Tn((0,ae.Z)((0,ae.Z)({},$t),{},{left:Vt})),swipeLeft:null,targetSlide:pn}):Ve={currentSlide:te,trackStyle:Tn((0,ae.Z)((0,ae.Z)({},$t),{},{left:Vt})),lazyLoadedList:me,targetSlide:pn};return{state:Ve,nextState:an}},je=function($t,tn){var Jn,zt,Mn,le,Ct,vn=$t.slidesToScroll,Hn=$t.slidesToShow,Qt=$t.slideCount,Te=$t.currentSlide,Re=$t.targetSlide,_e=$t.lazyLoad,me=$t.infinite;if(le=Qt%vn!==0,Jn=le?0:(Qt-Te)%vn,tn.message==="previous")Mn=Jn===0?vn:Hn-Jn,Ct=Te-Mn,_e&&!me&&(zt=Te-Mn,Ct=zt===-1?Qt-1:zt),me||(Ct=Re-vn);else if(tn.message==="next")Mn=Jn===0?vn:Jn,Ct=Te+Mn,_e&&!me&&(Ct=(Te+vn)%Qt+Jn),me||(Ct=Re+vn);else if(tn.message==="dots")Ct=tn.index*tn.slidesToScroll;else if(tn.message==="children"){if(Ct=tn.index,me){var en=An((0,ae.Z)((0,ae.Z)({},$t),{},{targetSlide:Ct}));Ct>tn.currentSlide&&en==="left"?Ct=Ct-Qt:Ct10)return{scrolling:!0};Ct&&(Vt.swipeLength=gn);var Qe=(vn?-1:1)*(Vt.curX>Vt.startX?1:-1);Ct&&(Qe=Vt.curY>Vt.startY?1:-1);var Xt=Math.ceil(en/te),dn=ie(tn.touchObject,Ct),De=Vt.swipeLength;return Yt||(Hn===0&&(dn==="right"||dn==="down")||Hn+1>=Xt&&(dn==="left"||dn==="up")||!Me(tn)&&(dn==="left"||dn==="up"))&&(De=Vt.swipeLength*Qt,Te===!1&&Re&&(Re(dn),Sn.edgeDragged=!0)),!_e&&Ve&&(Ve(dn),Sn.swiped=!0),Mn?We=ai+De*(an/pn)*Qe:vn?We=ai-De*Qe:We=ai+De*Qe,Ct&&(We=ai+De*Qe),Sn=(0,ae.Z)((0,ae.Z)({},Sn),{},{touchObject:Vt,swipeLeft:We,trackStyle:Tn((0,ae.Z)((0,ae.Z)({},tn),{},{left:We}))}),Math.abs(Vt.curX-Vt.startX)10&&(Sn.swiping=!0,ut($t)),Sn}},Xn=function($t,tn){var Jn=tn.dragging,zt=tn.swipe,Mn=tn.touchObject,le=tn.listWidth,Ct=tn.touchThreshold,vn=tn.verticalSwiping,Hn=tn.listHeight,Qt=tn.swipeToSlide,Te=tn.scrolling,Re=tn.onSwipe,_e=tn.targetSlide,me=tn.currentSlide,en=tn.infinite;if(!Jn)return zt&&ut($t),{};var te=vn?Hn/Ct:le/Ct,Yt=ie(Mn,vn),Vt={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(Te||!Mn.swipeLength)return Vt;if(Mn.swipeLength>te){ut($t),Re&&Re(Yt);var Ve,an,pn=en?me:_e;switch(Yt){case"left":case"up":an=pn+Ye(tn),Ve=Qt?Zt(tn,an):an,Vt.currentDirection=0;break;case"right":case"down":an=pn-Ye(tn),Ve=Qt?Zt(tn,an):an,Vt.currentDirection=1;break;default:Ve=pn}Vt.triggerSlideHandler=Ve}else{var We=be(tn);Vt.trackStyle=Be((0,ae.Z)((0,ae.Z)({},tn),{},{left:We}))}return Vt},Fe=function($t){for(var tn=$t.infinite?$t.slideCount*2:$t.slideCount,Jn=$t.infinite?$t.slidesToShow*-1:0,zt=$t.infinite?$t.slidesToShow*-1:0,Mn=[];JnJn[Jn.length-1])tn=Jn[Jn.length-1];else for(var Mn in Jn){if(tn$t.swipeLeft*-1)return Jn=vn,!1}else if(vn.offsetLeft-tn+ee(vn)/2>$t.swipeLeft*-1)return Jn=vn,!1;return!0}),!Jn)return 0;var le=$t.rtl===!0?$t.slideCount-$t.currentSlide:$t.currentSlide,Ct=Math.abs(Jn.dataset.index-le)||1;return Ct}else return $t.slidesToScroll},kn=function($t,tn){return tn.reduce(function(Jn,zt){return Jn&&$t.hasOwnProperty(zt)},!0)?null:console.error("Keys Missing:",$t)},Tn=function($t){kn($t,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var tn,Jn,zt=$t.slideCount+2*$t.slidesToShow;$t.vertical?Jn=zt*$t.slideHeight:tn=Wn($t)*$t.slideWidth;var Mn={opacity:1,transition:"",WebkitTransition:""};if($t.useTransform){var le=$t.vertical?"translate3d(0px, "+$t.left+"px, 0px)":"translate3d("+$t.left+"px, 0px, 0px)",Ct=$t.vertical?"translate3d(0px, "+$t.left+"px, 0px)":"translate3d("+$t.left+"px, 0px, 0px)",vn=$t.vertical?"translateY("+$t.left+"px)":"translateX("+$t.left+"px)";Mn=(0,ae.Z)((0,ae.Z)({},Mn),{},{WebkitTransform:le,transform:Ct,msTransform:vn})}else $t.vertical?Mn.top=$t.left:Mn.left=$t.left;return $t.fade&&(Mn={opacity:1}),tn&&(Mn.width=tn),Jn&&(Mn.height=Jn),window&&!window.addEventListener&&window.attachEvent&&($t.vertical?Mn.marginTop=$t.left+"px":Mn.marginLeft=$t.left+"px"),Mn},Be=function($t){kn($t,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var tn=Tn($t);return $t.useTransform?(tn.WebkitTransition="-webkit-transform "+$t.speed+"ms "+$t.cssEase,tn.transition="transform "+$t.speed+"ms "+$t.cssEase):$t.vertical?tn.transition="top "+$t.speed+"ms "+$t.cssEase:tn.transition="left "+$t.speed+"ms "+$t.cssEase,tn},be=function($t){if($t.unslick)return 0;kn($t,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var tn=$t.slideIndex,Jn=$t.trackRef,zt=$t.infinite,Mn=$t.centerMode,le=$t.slideCount,Ct=$t.slidesToShow,vn=$t.slidesToScroll,Hn=$t.slideWidth,Qt=$t.listWidth,Te=$t.variableWidth,Re=$t.slideHeight,_e=$t.fade,me=$t.vertical,en=0,te,Yt,Vt=0;if(_e||$t.slideCount===1)return 0;var Ve=0;if(zt?(Ve=-Ke($t),le%vn!==0&&tn+vn>le&&(Ve=-(tn>le?Ct-(tn-le):le%vn)),Mn&&(Ve+=parseInt(Ct/2))):(le%vn!==0&&tn+vn>le&&(Ve=Ct-le%vn),Mn&&(Ve=parseInt(Ct/2))),en=Ve*Hn,Vt=Ve*Re,me?te=tn*Re*-1+Vt:te=tn*Hn*-1+en,Te===!0){var an,pn=Jn&&Jn.node;if(an=tn+Ke($t),Yt=pn&&pn.childNodes[an],te=Yt?Yt.offsetLeft*-1:0,Mn===!0){an=zt?tn+Ke($t):tn,Yt=pn&&pn.children[an],te=0;for(var We=0;We$t.currentSlide?$t.targetSlide>$t.currentSlide+oe($t)?"left":"right":$t.targetSlide<$t.currentSlide-cn($t)?"right":"left"},oe=function($t){var tn=$t.slidesToShow,Jn=$t.centerMode,zt=$t.rtl,Mn=$t.centerPadding;if(Jn){var le=(tn-1)/2+1;return parseInt(Mn)>0&&(le+=1),zt&&tn%2===0&&(le+=1),le}return zt?0:tn-1},cn=function($t){var tn=$t.slidesToShow,Jn=$t.centerMode,zt=$t.rtl,Mn=$t.centerPadding;if(Jn){var le=(tn-1)/2+1;return parseInt(Mn)>0&&(le+=1),!zt&&tn%2===0&&(le+=1),le}return zt?tn-1:0},wn=function(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)},Fn=function($t){var tn,Jn,zt,Mn,le;$t.rtl?le=$t.slideCount-1-$t.index:le=$t.index,zt=le<0||le>=$t.slideCount,$t.centerMode?(Mn=Math.floor($t.slidesToShow/2),Jn=(le-$t.currentSlide)%$t.slideCount===0,le>$t.currentSlide-Mn-1&&le<=$t.currentSlide+Mn&&(tn=!0)):tn=$t.currentSlide<=le&&le<$t.currentSlide+$t.slidesToShow;var Ct;$t.targetSlide<0?Ct=$t.targetSlide+$t.slideCount:$t.targetSlide>=$t.slideCount?Ct=$t.targetSlide-$t.slideCount:Ct=$t.targetSlide;var vn=le===Ct;return{"slick-slide":!0,"slick-active":tn,"slick-center":Jn,"slick-cloned":zt,"slick-current":vn}},mn=function($t){var tn={};return($t.variableWidth===void 0||$t.variableWidth===!1)&&(tn.width=$t.slideWidth),$t.fade&&(tn.position="relative",$t.vertical&&$t.slideHeight?tn.top=-$t.index*parseInt($t.slideHeight):tn.left=-$t.index*parseInt($t.slideWidth),tn.opacity=$t.currentSlide===$t.index?1:0,$t.useCSS&&(tn.transition="opacity "+$t.speed+"ms "+$t.cssEase+", visibility "+$t.speed+"ms "+$t.cssEase)),tn},Dn=function($t,tn){return $t.key+"-"+tn},rn=function($t){var tn,Jn=[],zt=[],Mn=[],le=ot.Children.count($t.children),Ct=Pt($t),vn=bt($t);return ot.Children.forEach($t.children,function(Hn,Qt){var Te,Re={message:"children",index:Qt,slidesToScroll:$t.slidesToScroll,currentSlide:$t.currentSlide};!$t.lazyLoad||$t.lazyLoad&&$t.lazyLoadedList.indexOf(Qt)>=0?Te=Hn:Te=ot.createElement("div",null);var _e=mn((0,ae.Z)((0,ae.Z)({},$t),{},{index:Qt})),me=Te.props.className||"",en=Fn((0,ae.Z)((0,ae.Z)({},$t),{},{index:Qt}));if(Jn.push(ot.cloneElement(Te,{key:"original"+Dn(Te,Qt),"data-index":Qt,className:et()(en,me),tabIndex:"-1","aria-hidden":!en["slick-active"],style:(0,ae.Z)((0,ae.Z)({outline:"none"},Te.props.style||{}),_e),onClick:function(Vt){Te.props&&Te.props.onClick&&Te.props.onClick(Vt),$t.focusOnSelect&&$t.focusOnSelect(Re)}})),$t.infinite&&$t.fade===!1){var te=le-Qt;te<=Ke($t)&&le!==$t.slidesToShow&&(tn=-te,tn>=Ct&&(Te=Hn),en=Fn((0,ae.Z)((0,ae.Z)({},$t),{},{index:tn})),zt.push(ot.cloneElement(Te,{key:"precloned"+Dn(Te,tn),"data-index":tn,tabIndex:"-1",className:et()(en,me),"aria-hidden":!en["slick-active"],style:(0,ae.Z)((0,ae.Z)({},Te.props.style||{}),_e),onClick:function(Vt){Te.props&&Te.props.onClick&&Te.props.onClick(Vt),$t.focusOnSelect&&$t.focusOnSelect(Re)}}))),le!==$t.slidesToShow&&(tn=le+Qt,tn=an&&Re<=Vt:Re===an}),We={message:"dots",index:te,slidesToScroll:Hn,currentSlide:Re},Sn=this.clickHandler.bind(this,We);en=en.concat(ot.createElement("li",{key:te,className:pn},ot.cloneElement(this.props.customPaging(te),{onClick:Sn})))}return ot.cloneElement(this.props.appendDots(en),(0,ae.Z)({className:this.props.dotsClass},me))}}]),tn}(ot.PureComponent),Ee=function(qn){(0,qt.Z)(tn,qn);var $t=(0,Oe.Z)(tn);function tn(){return(0,$e.Z)(this,tn),$t.apply(this,arguments)}return(0,fe.Z)(tn,[{key:"clickHandler",value:function(zt,Mn){Mn&&Mn.preventDefault(),this.props.clickHandler(zt,Mn)}},{key:"render",value:function(){var zt={"slick-arrow":!0,"slick-prev":!0},Mn=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(zt["slick-disabled"]=!0,Mn=null);var le={key:"0","data-role":"none",className:et()(zt),style:{display:"block"},onClick:Mn},Ct={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},vn;return this.props.prevArrow?vn=ot.cloneElement(this.props.prevArrow,(0,ae.Z)((0,ae.Z)({},le),Ct)):vn=ot.createElement("button",(0,Tt.Z)({key:"0",type:"button"},le)," ","Previous"),vn}}]),tn}(ot.PureComponent),ke=function(qn){(0,qt.Z)(tn,qn);var $t=(0,Oe.Z)(tn);function tn(){return(0,$e.Z)(this,tn),$t.apply(this,arguments)}return(0,fe.Z)(tn,[{key:"clickHandler",value:function(zt,Mn){Mn&&Mn.preventDefault(),this.props.clickHandler(zt,Mn)}},{key:"render",value:function(){var zt={"slick-arrow":!0,"slick-next":!0},Mn=this.clickHandler.bind(this,{message:"next"});Me(this.props)||(zt["slick-disabled"]=!0,Mn=null);var le={key:"1","data-role":"none",className:et()(zt),style:{display:"block"},onClick:Mn},Ct={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},vn;return this.props.nextArrow?vn=ot.cloneElement(this.props.nextArrow,(0,ae.Z)((0,ae.Z)({},le),Ct)):vn=ot.createElement("button",(0,Tt.Z)({key:"1",type:"button"},le)," ","Next"),vn}}]),tn}(ot.PureComponent),ln=St(76374),Dt=["animating"],wt=function(qn){(0,qt.Z)(tn,qn);var $t=(0,Oe.Z)(tn);function tn(Jn){var zt;(0,$e.Z)(this,tn),zt=$t.call(this,Jn),(0,de.Z)((0,ve.Z)(zt),"listRefHandler",function(le){return zt.list=le}),(0,de.Z)((0,ve.Z)(zt),"trackRefHandler",function(le){return zt.track=le}),(0,de.Z)((0,ve.Z)(zt),"adaptHeight",function(){if(zt.props.adaptiveHeight&&zt.list){var le=zt.list.querySelector('[data-index="'.concat(zt.state.currentSlide,'"]'));zt.list.style.height=re(le)+"px"}}),(0,de.Z)((0,ve.Z)(zt),"componentDidMount",function(){if(zt.props.onInit&&zt.props.onInit(),zt.props.lazyLoad){var le=pt((0,ae.Z)((0,ae.Z)({},zt.props),zt.state));le.length>0&&(zt.setState(function(vn){return{lazyLoadedList:vn.lazyLoadedList.concat(le)}}),zt.props.onLazyLoad&&zt.props.onLazyLoad(le))}var Ct=(0,ae.Z)({listRef:zt.list,trackRef:zt.track},zt.props);zt.updateState(Ct,!0,function(){zt.adaptHeight(),zt.props.autoplay&&zt.autoPlay("playing")}),zt.props.lazyLoad==="progressive"&&(zt.lazyLoadTimer=setInterval(zt.progressiveLazyLoad,1e3)),zt.ro=new ln.Z(function(){zt.state.animating?(zt.onWindowResized(!1),zt.callbackTimers.push(setTimeout(function(){return zt.onWindowResized()},zt.props.speed))):zt.onWindowResized()}),zt.ro.observe(zt.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(vn){vn.onfocus=zt.props.pauseOnFocus?zt.onSlideFocus:null,vn.onblur=zt.props.pauseOnFocus?zt.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",zt.onWindowResized):window.attachEvent("onresize",zt.onWindowResized)}),(0,de.Z)((0,ve.Z)(zt),"componentWillUnmount",function(){zt.animationEndCallback&&clearTimeout(zt.animationEndCallback),zt.lazyLoadTimer&&clearInterval(zt.lazyLoadTimer),zt.callbackTimers.length&&(zt.callbackTimers.forEach(function(le){return clearTimeout(le)}),zt.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",zt.onWindowResized):window.detachEvent("onresize",zt.onWindowResized),zt.autoplayTimer&&clearInterval(zt.autoplayTimer),zt.ro.disconnect()}),(0,de.Z)((0,ve.Z)(zt),"componentDidUpdate",function(le){if(zt.checkImagesLoad(),zt.props.onReInit&&zt.props.onReInit(),zt.props.lazyLoad){var Ct=pt((0,ae.Z)((0,ae.Z)({},zt.props),zt.state));Ct.length>0&&(zt.setState(function(Qt){return{lazyLoadedList:Qt.lazyLoadedList.concat(Ct)}}),zt.props.onLazyLoad&&zt.props.onLazyLoad(Ct))}zt.adaptHeight();var vn=(0,ae.Z)((0,ae.Z)({listRef:zt.list,trackRef:zt.track},zt.props),zt.state),Hn=zt.didPropsChange(le);Hn&&zt.updateState(vn,Hn,function(){zt.state.currentSlide>=ot.Children.count(zt.props.children)&&zt.changeSlide({message:"index",index:ot.Children.count(zt.props.children)-zt.props.slidesToShow,currentSlide:zt.state.currentSlide}),(le.autoplay!==zt.props.autoplay||le.autoplaySpeed!==zt.props.autoplaySpeed)&&(!le.autoplay&&zt.props.autoplay?zt.autoPlay("playing"):zt.props.autoplay?zt.autoPlay("update"):zt.pause("paused"))})}),(0,de.Z)((0,ve.Z)(zt),"onWindowResized",function(le){zt.debouncedResize&&zt.debouncedResize.cancel(),zt.debouncedResize=(0,Ft.D)(50,function(){return zt.resizeWindow(le)}),zt.debouncedResize()}),(0,de.Z)((0,ve.Z)(zt),"resizeWindow",function(){var le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,Ct=!!(zt.track&&zt.track.node);if(Ct){var vn=(0,ae.Z)((0,ae.Z)({listRef:zt.list,trackRef:zt.track},zt.props),zt.state);zt.updateState(vn,le,function(){zt.props.autoplay?zt.autoPlay("update"):zt.pause("paused")}),zt.setState({animating:!1}),clearTimeout(zt.animationEndCallback),delete zt.animationEndCallback}}),(0,de.Z)((0,ve.Z)(zt),"updateState",function(le,Ct,vn){var Hn=Le(le);le=(0,ae.Z)((0,ae.Z)((0,ae.Z)({},le),Hn),{},{slideIndex:Hn.currentSlide});var Qt=be(le);le=(0,ae.Z)((0,ae.Z)({},le),{},{left:Qt});var Te=Tn(le);(Ct||ot.Children.count(zt.props.children)!==ot.Children.count(le.children))&&(Hn.trackStyle=Te),zt.setState(Hn,vn)}),(0,de.Z)((0,ve.Z)(zt),"ssrInit",function(){if(zt.props.variableWidth){var le=0,Ct=0,vn=[],Hn=Ke((0,ae.Z)((0,ae.Z)((0,ae.Z)({},zt.props),zt.state),{},{slideCount:zt.props.children.length})),Qt=jn((0,ae.Z)((0,ae.Z)((0,ae.Z)({},zt.props),zt.state),{},{slideCount:zt.props.children.length}));zt.props.children.forEach(function(Sn){vn.push(Sn.props.style.width),le+=Sn.props.style.width});for(var Te=0;Te=Ct&&zt.onWindowResized()};if(!Hn.onclick)Hn.onclick=function(){return Hn.parentNode.focus()};else{var Te=Hn.onclick;Hn.onclick=function(Re){Te(Re),Hn.parentNode.focus()}}Hn.onload||(zt.props.lazyLoad?Hn.onload=function(){zt.adaptHeight(),zt.callbackTimers.push(setTimeout(zt.onWindowResized,zt.props.speed))}:(Hn.onload=Qt,Hn.onerror=function(){Qt(),zt.props.onLazyLoadError&&zt.props.onLazyLoadError()}))})}),(0,de.Z)((0,ve.Z)(zt),"progressiveLazyLoad",function(){for(var le=[],Ct=(0,ae.Z)((0,ae.Z)({},zt.props),zt.state),vn=zt.state.currentSlide;vn=-Ke(Ct);Hn--)if(zt.state.lazyLoadedList.indexOf(Hn)<0){le.push(Hn);break}le.length>0?(zt.setState(function(Qt){return{lazyLoadedList:Qt.lazyLoadedList.concat(le)}}),zt.props.onLazyLoad&&zt.props.onLazyLoad(le)):zt.lazyLoadTimer&&(clearInterval(zt.lazyLoadTimer),delete zt.lazyLoadTimer)}),(0,de.Z)((0,ve.Z)(zt),"slideHandler",function(le){var Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,vn=zt.props,Hn=vn.asNavFor,Qt=vn.beforeChange,Te=vn.onLazyLoad,Re=vn.speed,_e=vn.afterChange,me=zt.state.currentSlide,en=ge((0,ae.Z)((0,ae.Z)((0,ae.Z)({index:le},zt.props),zt.state),{},{trackRef:zt.track,useCSS:zt.props.useCSS&&!Ct})),te=en.state,Yt=en.nextState;if(te){Qt&&Qt(me,te.currentSlide);var Vt=te.lazyLoadedList.filter(function(Ve){return zt.state.lazyLoadedList.indexOf(Ve)<0});Te&&Vt.length>0&&Te(Vt),!zt.props.waitForAnimate&&zt.animationEndCallback&&(clearTimeout(zt.animationEndCallback),_e&&_e(me),delete zt.animationEndCallback),zt.setState(te,function(){Hn&&zt.asNavForIndex!==le&&(zt.asNavForIndex=le,Hn.innerSlider.slideHandler(le)),Yt&&(zt.animationEndCallback=setTimeout(function(){var Ve=Yt.animating,an=(0,xe.Z)(Yt,Dt);zt.setState(an,function(){zt.callbackTimers.push(setTimeout(function(){return zt.setState({animating:Ve})},10)),_e&&_e(te.currentSlide),delete zt.animationEndCallback})},Re))})}}),(0,de.Z)((0,ve.Z)(zt),"changeSlide",function(le){var Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,vn=(0,ae.Z)((0,ae.Z)({},zt.props),zt.state),Hn=je(vn,le);if(!(Hn!==0&&!Hn)&&(Ct===!0?zt.slideHandler(Hn,Ct):zt.slideHandler(Hn),zt.props.autoplay&&zt.autoPlay("update"),zt.props.focusOnSelect)){var Qt=zt.list.querySelectorAll(".slick-current");Qt[0]&&Qt[0].focus()}}),(0,de.Z)((0,ve.Z)(zt),"clickHandler",function(le){zt.clickable===!1&&(le.stopPropagation(),le.preventDefault()),zt.clickable=!0}),(0,de.Z)((0,ve.Z)(zt),"keyHandler",function(le){var Ct=Je(le,zt.props.accessibility,zt.props.rtl);Ct!==""&&zt.changeSlide({message:Ct})}),(0,de.Z)((0,ve.Z)(zt),"selectHandler",function(le){zt.changeSlide(le)}),(0,de.Z)((0,ve.Z)(zt),"disableBodyScroll",function(){var le=function(vn){vn=vn||window.event,vn.preventDefault&&vn.preventDefault(),vn.returnValue=!1};window.ontouchmove=le}),(0,de.Z)((0,ve.Z)(zt),"enableBodyScroll",function(){window.ontouchmove=null}),(0,de.Z)((0,ve.Z)(zt),"swipeStart",function(le){zt.props.verticalSwiping&&zt.disableBodyScroll();var Ct=Cn(le,zt.props.swipe,zt.props.draggable);Ct!==""&&zt.setState(Ct)}),(0,de.Z)((0,ve.Z)(zt),"swipeMove",function(le){var Ct=hn(le,(0,ae.Z)((0,ae.Z)((0,ae.Z)({},zt.props),zt.state),{},{trackRef:zt.track,listRef:zt.list,slideIndex:zt.state.currentSlide}));Ct&&(Ct.swiping&&(zt.clickable=!1),zt.setState(Ct))}),(0,de.Z)((0,ve.Z)(zt),"swipeEnd",function(le){var Ct=Xn(le,(0,ae.Z)((0,ae.Z)((0,ae.Z)({},zt.props),zt.state),{},{trackRef:zt.track,listRef:zt.list,slideIndex:zt.state.currentSlide}));if(Ct){var vn=Ct.triggerSlideHandler;delete Ct.triggerSlideHandler,zt.setState(Ct),vn!==void 0&&(zt.slideHandler(vn),zt.props.verticalSwiping&&zt.enableBodyScroll())}}),(0,de.Z)((0,ve.Z)(zt),"touchEnd",function(le){zt.swipeEnd(le),zt.clickable=!0}),(0,de.Z)((0,ve.Z)(zt),"slickPrev",function(){zt.callbackTimers.push(setTimeout(function(){return zt.changeSlide({message:"previous"})},0))}),(0,de.Z)((0,ve.Z)(zt),"slickNext",function(){zt.callbackTimers.push(setTimeout(function(){return zt.changeSlide({message:"next"})},0))}),(0,de.Z)((0,ve.Z)(zt),"slickGoTo",function(le){var Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(le=Number(le),isNaN(le))return"";zt.callbackTimers.push(setTimeout(function(){return zt.changeSlide({message:"index",index:le,currentSlide:zt.state.currentSlide},Ct)},0))}),(0,de.Z)((0,ve.Z)(zt),"play",function(){var le;if(zt.props.rtl)le=zt.state.currentSlide-zt.props.slidesToScroll;else if(Me((0,ae.Z)((0,ae.Z)({},zt.props),zt.state)))le=zt.state.currentSlide+zt.props.slidesToScroll;else return!1;zt.slideHandler(le)}),(0,de.Z)((0,ve.Z)(zt),"autoPlay",function(le){zt.autoplayTimer&&clearInterval(zt.autoplayTimer);var Ct=zt.state.autoplaying;if(le==="update"){if(Ct==="hovered"||Ct==="focused"||Ct==="paused")return}else if(le==="leave"){if(Ct==="paused"||Ct==="focused")return}else if(le==="blur"&&(Ct==="paused"||Ct==="hovered"))return;zt.autoplayTimer=setInterval(zt.play,zt.props.autoplaySpeed+50),zt.setState({autoplaying:"playing"})}),(0,de.Z)((0,ve.Z)(zt),"pause",function(le){zt.autoplayTimer&&(clearInterval(zt.autoplayTimer),zt.autoplayTimer=null);var Ct=zt.state.autoplaying;le==="paused"?zt.setState({autoplaying:"paused"}):le==="focused"?(Ct==="hovered"||Ct==="playing")&&zt.setState({autoplaying:"focused"}):Ct==="playing"&&zt.setState({autoplaying:"hovered"})}),(0,de.Z)((0,ve.Z)(zt),"onDotsOver",function(){return zt.props.autoplay&&zt.pause("hovered")}),(0,de.Z)((0,ve.Z)(zt),"onDotsLeave",function(){return zt.props.autoplay&&zt.state.autoplaying==="hovered"&&zt.autoPlay("leave")}),(0,de.Z)((0,ve.Z)(zt),"onTrackOver",function(){return zt.props.autoplay&&zt.pause("hovered")}),(0,de.Z)((0,ve.Z)(zt),"onTrackLeave",function(){return zt.props.autoplay&&zt.state.autoplaying==="hovered"&&zt.autoPlay("leave")}),(0,de.Z)((0,ve.Z)(zt),"onSlideFocus",function(){return zt.props.autoplay&&zt.pause("focused")}),(0,de.Z)((0,ve.Z)(zt),"onSlideBlur",function(){return zt.props.autoplay&&zt.state.autoplaying==="focused"&&zt.autoPlay("blur")}),(0,de.Z)((0,ve.Z)(zt),"render",function(){var le=et()("slick-slider",zt.props.className,{"slick-vertical":zt.props.vertical,"slick-initialized":!0}),Ct=(0,ae.Z)((0,ae.Z)({},zt.props),zt.state),vn=pe(Ct,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),Hn=zt.props.pauseOnHover;vn=(0,ae.Z)((0,ae.Z)({},vn),{},{onMouseEnter:Hn?zt.onTrackOver:null,onMouseLeave:Hn?zt.onTrackLeave:null,onMouseOver:Hn?zt.onTrackOver:null,focusOnSelect:zt.props.focusOnSelect&&zt.clickable?zt.selectHandler:null});var Qt;if(zt.props.dots===!0&&zt.state.slideCount>=zt.props.slidesToShow){var Te=pe(Ct,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),Re=zt.props.pauseOnDotsHover;Te=(0,ae.Z)((0,ae.Z)({},Te),{},{clickHandler:zt.changeSlide,onMouseEnter:Re?zt.onDotsLeave:null,onMouseOver:Re?zt.onDotsOver:null,onMouseLeave:Re?zt.onDotsLeave:null}),Qt=ot.createElement(we,Te)}var _e,me,en=pe(Ct,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);en.clickHandler=zt.changeSlide,zt.props.arrows&&(_e=ot.createElement(Ee,en),me=ot.createElement(ke,en));var te=null;zt.props.vertical&&(te={height:zt.state.listHeight});var Yt=null;zt.props.vertical===!1?zt.props.centerMode===!0&&(Yt={padding:"0px "+zt.props.centerPadding}):zt.props.centerMode===!0&&(Yt={padding:zt.props.centerPadding+" 0px"});var Vt=(0,ae.Z)((0,ae.Z)({},te),Yt),Ve=zt.props.touchMove,an={className:"slick-list",style:Vt,onClick:zt.clickHandler,onMouseDown:Ve?zt.swipeStart:null,onMouseMove:zt.state.dragging&&Ve?zt.swipeMove:null,onMouseUp:Ve?zt.swipeEnd:null,onMouseLeave:zt.state.dragging&&Ve?zt.swipeEnd:null,onTouchStart:Ve?zt.swipeStart:null,onTouchMove:zt.state.dragging&&Ve?zt.swipeMove:null,onTouchEnd:Ve?zt.touchEnd:null,onTouchCancel:zt.state.dragging&&Ve?zt.swipeEnd:null,onKeyDown:zt.props.accessibility?zt.keyHandler:null},pn={className:le,dir:"ltr",style:zt.props.style};return zt.props.unslick&&(an={className:"slick-list"},pn={className:le,style:zt.props.style}),ot.createElement("div",pn,zt.props.unslick?"":_e,ot.createElement("div",(0,Tt.Z)({ref:zt.listRefHandler},an),ot.createElement(ce,(0,Tt.Z)({ref:zt.trackRefHandler},vn),zt.props.children)),zt.props.unslick?"":me,zt.props.unslick?"":Qt)}),zt.list=null,zt.track=null,zt.state=(0,ae.Z)((0,ae.Z)({},He),{},{currentSlide:zt.props.initialSlide,slideCount:ot.Children.count(zt.props.children)}),zt.callbackTimers=[],zt.clickable=!0,zt.debouncedResize=null;var Mn=zt.ssrInit();return zt.state=(0,ae.Z)((0,ae.Z)({},zt.state),Mn),zt}return(0,fe.Z)(tn,[{key:"didPropsChange",value:function(zt){for(var Mn=!1,le=0,Ct=Object.keys(this.props);le1&&arguments[1]!==void 0?arguments[1]:!1;return zt.innerSlider.slickGoTo(Mn,le)}),(0,de.Z)((0,ve.Z)(zt),"slickPause",function(){return zt.innerSlider.pause("paused")}),(0,de.Z)((0,ve.Z)(zt),"slickPlay",function(){return zt.innerSlider.autoPlay("play")}),zt.state={breakpoint:null},zt._responsiveMediaHandlers=[],zt}return(0,fe.Z)(tn,[{key:"media",value:function(zt,Mn){var le=window.matchMedia(zt),Ct=function(Hn){var Qt=Hn.matches;Qt&&Mn()};le.addListener(Ct),Ct(le),this._responsiveMediaHandlers.push({mql:le,query:zt,listener:Ct})}},{key:"componentDidMount",value:function(){var zt=this;if(this.props.responsive){var Mn=this.props.responsive.map(function(Ct){return Ct.breakpoint});Mn.sort(function(Ct,vn){return Ct-vn}),Mn.forEach(function(Ct,vn){var Hn;vn===0?Hn=Bt()({minWidth:0,maxWidth:Ct}):Hn=Bt()({minWidth:Mn[vn-1]+1,maxWidth:Ct}),wn()&&zt.media(Hn,function(){zt.setState({breakpoint:Ct})})});var le=Bt()({minWidth:Mn.slice(-1)[0]});wn()&&this.media(le,function(){zt.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(zt){zt.mql.removeListener(zt.listener)})}},{key:"render",value:function(){var zt=this,Mn,le;this.state.breakpoint?(le=this.props.responsive.filter(function(te){return te.breakpoint===zt.state.breakpoint}),Mn=le[0].settings==="unslick"?"unslick":(0,ae.Z)((0,ae.Z)((0,ae.Z)({},Mt),this.props),le[0].settings)):Mn=(0,ae.Z)((0,ae.Z)({},Mt),this.props),Mn.centerMode&&(Mn.slidesToScroll>1,Mn.slidesToScroll=1),Mn.fade&&(Mn.slidesToShow>1,Mn.slidesToScroll>1,Mn.slidesToShow=1,Mn.slidesToScroll=1);var Ct=ot.Children.toArray(this.props.children);Ct=Ct.filter(function(te){return typeof te=="string"?!!te.trim():!!te}),Mn.variableWidth&&(Mn.rows>1||Mn.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),Mn.variableWidth=!1);for(var vn=[],Hn=null,Qt=0;Qt=Ct.length));me+=1)_e.push(ot.cloneElement(Ct[me],{key:100*Qt+10*Re+me,tabIndex:-1,style:{width:"".concat(100/Mn.slidesPerRow,"%"),display:"inline-block"}}));Te.push(ot.createElement("div",{key:10*Qt+Re},_e))}Mn.variableWidth?vn.push(ot.createElement("div",{key:Qt,style:{width:Hn}},Te)):vn.push(ot.createElement("div",{key:Qt},Te))}if(Mn==="unslick"){var en="regular slider "+(this.props.className||"");return ot.createElement("div",{className:en},Ct)}else vn.length<=Mn.slidesToShow&&(Mn.unslick=!0);return ot.createElement(wt,(0,Tt.Z)({style:this.props.style,ref:this.innerSliderRefHandler},Mn),vn)}}]),tn}(ot.Component),En=Ae,Rn=St(36355),Pn=St(17313),$n=St(83116),xi=St(37613);const Fi=qn=>{const{componentCls:$t,antCls:tn,carouselArrowSize:Jn,carouselDotOffset:zt,marginXXS:Mn}=qn,le=-Jn*1.25,Ct=Mn;return{[$t]:Object.assign(Object.assign({},(0,Pn.Wf)(qn)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${tn}-radio-input, input${tn}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${tn}-radio-input, input${tn}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"},".slick-arrow.slick-hidden":{display:"none"},".slick-prev, .slick-next":{position:"absolute",top:"50%",display:"block",width:Jn,height:Jn,marginTop:-Jn/2,padding:0,color:"transparent",fontSize:0,lineHeight:0,background:"transparent",border:0,outline:"none",cursor:"pointer","&:hover, &:focus":{color:"transparent",background:"transparent",outline:"none","&::before":{opacity:1}},"&.slick-disabled::before":{opacity:.25}},".slick-prev":{insetInlineStart:le,"&::before":{content:'"\u2190"'}},".slick-next":{insetInlineEnd:le,"&::before":{content:'"\u2192"'}},".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,margin:0,listStyle:"none","&-bottom":{bottom:zt},"&-top":{top:zt,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:qn.dotWidth,height:qn.dotHeight,marginInline:Ct,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${qn.motionDurationSlow}`,button:{position:"relative",display:"block",width:"100%",height:qn.dotHeight,padding:0,color:"transparent",fontSize:0,background:qn.colorBgContainer,border:0,borderRadius:1,outline:"none",cursor:"pointer",opacity:.3,transition:`all ${qn.motionDurationSlow}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:"absolute",inset:-Ct,content:'""'}},"&.slick-active":{width:qn.dotActiveWidth,"& button":{background:qn.colorBgContainer,opacity:1},"&: hover, &:focus":{opacity:1}}}}})}},Bi=qn=>{const{componentCls:$t,carouselDotOffset:tn,marginXXS:Jn}=qn,zt={width:qn.dotHeight,height:qn.dotWidth};return{[`${$t}-vertical`]:{".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:qn.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:tn},"&-right":{insetInlineEnd:tn,insetInlineStart:"auto"},li:Object.assign(Object.assign({},zt),{margin:`${Jn}px 0`,verticalAlign:"baseline",button:zt,"&.slick-active":Object.assign(Object.assign({},zt),{button:zt})})}}}},Ji=qn=>{const{componentCls:$t}=qn;return[{[`${$t}-rtl`]:{direction:"rtl",".slick-dots":{[`${$t}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${$t}-vertical`]:{".slick-dots":{[`${$t}-rtl&`]:{flexDirection:"column"}}}}]};var ro=(0,$n.Z)("Carousel",qn=>{const{controlHeightLG:$t,controlHeightSM:tn}=qn,Jn=(0,xi.TS)(qn,{carouselArrowSize:$t/2,carouselDotOffset:tn/2});return[Fi(Jn),Bi(Jn),Ji(Jn)]},()=>({dotWidth:16,dotHeight:3,dotWidthActive:24,dotActiveWidth:24}),{deprecatedTokens:[["dotWidthActive","dotActiveWidth"]]}),Eo=function(qn,$t){var tn={};for(var Jn in qn)Object.prototype.hasOwnProperty.call(qn,Jn)&&$t.indexOf(Jn)<0&&(tn[Jn]=qn[Jn]);if(qn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,Jn=Object.getOwnPropertySymbols(qn);zt{const{dots:tn=!0,arrows:Jn=!1,draggable:zt=!1,waitForAnimate:Mn=!1,dotPosition:le="bottom",vertical:Ct=le==="left"||le==="right",rootClassName:vn,className:Hn,style:Qt,id:Te}=qn,Re=Eo(qn,["dots","arrows","draggable","waitForAnimate","dotPosition","vertical","rootClassName","className","style","id"]),{getPrefixCls:_e,direction:me,carousel:en}=ot.useContext(Rn.E_),te=ot.useRef(),Yt=function(Xt){let dn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;te.current.slickGoTo(Xt,dn)};ot.useImperativeHandle($t,()=>({goTo:Yt,autoPlay:te.current.innerSlider.autoPlay,innerSlider:te.current.innerSlider,prev:te.current.slickPrev,next:te.current.slickNext}),[te.current]);const Vt=ot.useRef(ot.Children.count(qn.children));ot.useEffect(()=>{Vt.current!==ot.Children.count(qn.children)&&(Yt(qn.initialSlide||0,!1),Vt.current=ot.Children.count(qn.children))},[qn.children]);const Ve=Object.assign({vertical:Ct,className:et()(Hn,en==null?void 0:en.className),style:Object.assign(Object.assign({},en==null?void 0:en.style),Qt)},Re);Ve.effect==="fade"&&(Ve.fade=!0);const an=_e("carousel",Ve.prefixCls),pn="slick-dots",We=!!tn,Sn=et()(pn,`${pn}-${le}`,typeof tn=="boolean"?!1:tn==null?void 0:tn.className),[ai,gn]=ro(an),Qe=et()(an,{[`${an}-rtl`]:me==="rtl",[`${an}-vertical`]:Ve.vertical},gn,vn);return ai(ot.createElement("div",{className:Qe,id:Te},ot.createElement(En,Object.assign({ref:te},Ve,{dots:We,dotsClass:Sn,arrows:Jn,draggable:zt,verticalSwiping:Ct,waitForAnimate:Mn}))))})},19842:function(un,Yn,St){"use strict";St.d(Yn,{Z:function(){return Hn}});var ot=St(80702),Tt=St(59301),ae=St(33853),$e=St(58617),fe=St(38819),ve=St(92310),qt=St.n(ve),Oe=St(72308),de=St(52487),Ce=St(74416),xe=St(77861),ze=St(17115),He=St(90782),Ft=St(6089),nt=St(18929),et=Tt.createContext(null),ct=et,ut=St(62853),pt=St(49618),yt=St(77321),Pt="__rc_cascader_search_mark__",bt=function(Te,Re,_e){var me=_e.label;return Re.some(function(en){return String(en[me]).toLowerCase().includes(Te.toLowerCase())})},Rt=function(Te,Re,_e,me){return Re.map(function(en){return en[me.label]}).join(" / ")},Ut=function(Qt,Te,Re,_e,me,en){var te=me.filter,Yt=te===void 0?bt:te,Vt=me.render,Ve=Vt===void 0?Rt:Vt,an=me.limit,pn=an===void 0?50:an,We=me.sort;return Tt.useMemo(function(){var Sn=[];if(!Qt)return[];function ai(gn,Qe){var Xt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;gn.forEach(function(dn){if(!(!We&&pn!==!1&&pn>0&&Sn.length>=pn)){var De=[].concat((0,ot.Z)(Qe),[dn]),Xe=dn[Re.children],he=Xt||dn.disabled;if((!Xe||Xe.length===0||en)&&Yt(Qt,De,{label:Re.label})){var Pe;Sn.push((0,yt.Z)((0,yt.Z)({},dn),{},(Pe={disabled:he},(0,pt.Z)(Pe,Re.label,Ve(Qt,De,_e,Re)),(0,pt.Z)(Pe,Pt,De),(0,pt.Z)(Pe,Re.children,void 0),Pe)))}Xe&&ai(dn[Re.children],De,he)}})}return ai(Te,[]),We&&Sn.sort(function(gn,Qe){return We(gn[Pt],Qe[Pt],Qt,Re)}),pn!==!1&&pn>0?Sn.slice(0,pn):Sn},[Qt,Te,Re,_e,Ve,en,Yt,We,pn])},ee="__RC_CASCADER_SPLIT__",re="SHOW_PARENT",ie="SHOW_CHILD";function Me(Qt){return Qt.join(ee)}function pe(Qt){return Qt.map(Me)}function Le(Qt){return Qt.split(ee)}function ge(Qt){var Te=Qt||{},Re=Te.label,_e=Te.value,me=Te.children,en=_e||"value";return{label:Re||"label",value:en,key:en,children:me||"children"}}function je(Qt,Te){var Re,_e;return(Re=Qt.isLeaf)!==null&&Re!==void 0?Re:!((_e=Qt[Te.children])!==null&&_e!==void 0&&_e.length)}function Je(Qt){var Te=Qt.parentElement;if(Te){var Re=Qt.offsetTop-Te.offsetTop;Re-Te.scrollTop<0?Te.scrollTo({top:Re}):Re+Qt.offsetHeight-Te.scrollTop>Te.offsetHeight&&Te.scrollTo({top:Re+Qt.offsetHeight-Te.offsetHeight})}}function Cn(Qt,Te){return Qt.map(function(Re){var _e;return(_e=Re[Pt])===null||_e===void 0?void 0:_e.map(function(me){return me[Te.value]})})}function hn(Qt,Te,Re){var _e=new Set(Qt),me=Te();return Qt.filter(function(en){var te=me[en],Yt=te?te.parent:null,Vt=te?te.children:null;return te&&te.node.disabled?!0:Re===ie?!(Vt&&Vt.some(function(Ve){return Ve.key&&_e.has(Ve.key)})):!(Yt&&!Yt.node.disabled&&_e.has(Yt.key))})}function Xn(Qt,Te,Re){for(var _e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,me=Te,en=[],te=function(){var Ve,an,pn,We=Qt[Yt],Sn=(Ve=me)===null||Ve===void 0?void 0:Ve.findIndex(function(gn){var Qe=gn[Re.value];return _e?String(Qe)===String(We):Qe===We}),ai=Sn!==-1?(an=me)===null||an===void 0?void 0:an[Sn]:null;en.push({value:(pn=ai==null?void 0:ai[Re.value])!==null&&pn!==void 0?pn:We,index:Sn,option:ai}),me=ai==null?void 0:ai[Re.children]},Yt=0;Yt1){var fn=ai.slice(0,-1);dn(fn)}else Ve(!1)},he=function(){var fn,Di=((fn=Qe[gn])===null||fn===void 0?void 0:fn[Re.children])||[],oi=Di.find(function(Bn){return!Bn.disabled});if(oi){var ii=[].concat((0,ot.Z)(ai),[oi[Re.value]]);dn(ii)}};Tt.useImperativeHandle(Qt,function(){return{onKeyDown:function(fn){var Di=fn.which;switch(Di){case cn.Z.UP:case cn.Z.DOWN:{var oi=0;Di===cn.Z.UP?oi=-1:Di===cn.Z.DOWN&&(oi=1),oi!==0&&De(oi);break}case cn.Z.LEFT:{if(Vt)break;pn?he():Xe();break}case cn.Z.RIGHT:{if(Vt)break;pn?Xe():he();break}case cn.Z.BACKSPACE:{Vt||Xe();break}case cn.Z.ENTER:{if(ai.length){var ii=Qe[gn],Bn=(ii==null?void 0:ii[Pt])||[];Bn.length?en(Bn.map(function(Kn){return Kn[Re.value]}),Bn[Bn.length-1]):en(ai,Qe[gn])}break}case cn.Z.ESC:Ve(!1),an&&fn.stopPropagation()}},onKeyUp:function(){}}})},Fn=Tt.forwardRef(function(Qt,Te){var Re,_e,me,en,te=(0,xe.lk)(),Yt=te.prefixCls,Vt=te.multiple,Ve=te.searchValue,an=te.toggleOpen,pn=te.notFoundContent,We=te.direction,Sn=te.open,ai=Tt.useRef(),gn=We==="rtl",Qe=Tt.useContext(ct),Xt=Qe.options,dn=Qe.values,De=Qe.halfValues,Xe=Qe.fieldNames,he=Qe.changeOnSelect,Pe=Qe.onSelect,fn=Qe.searchOptions,Di=Qe.dropdownPrefixCls,oi=Qe.loadData,ii=Qe.expandTrigger,Bn=Di||Yt,Kn=Tt.useState([]),ki=(0,de.Z)(Kn,2),bi=ki[0],Hi=ki[1],yn=function(Ao){if(!(!oi||Ve)){var Uo=Xn(Ao,Xt,Xe),So=Uo.map(function(Po){var eo=Po.option;return eo}),di=So[So.length-1];if(di&&!je(di,Xe)){var _i=Me(Ao);Hi(function(Po){return[].concat((0,ot.Z)(Po),[_i])}),oi(So)}}};Tt.useEffect(function(){bi.length&&bi.forEach(function(Mo){var Ao=Le(Mo),Uo=Xn(Ao,Xt,Xe,!0).map(function(di){var _i=di.option;return _i}),So=Uo[Uo.length-1];(!So||So[Xe.children]||je(So,Xe))&&Hi(function(di){return di.filter(function(_i){return _i!==Mo})})})},[Xt,bi,Xe]);var uo=Tt.useMemo(function(){return new Set(pe(dn))},[dn]),Qi=Tt.useMemo(function(){return new Set(pe(De))},[De]),io=oe(),sn=(0,de.Z)(io,2),Gn=sn[0],wi=sn[1],ji=function(Ao){wi(Ao),yn(Ao)},Ci=function(Ao){var Uo=Ao.disabled,So=je(Ao,Xe);return!Uo&&(So||he||Vt)},Ui=function(Ao,Uo){var So=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Pe(Ao),!Vt&&(Uo||he&&(ii==="hover"||So))&&an(!1)},so=Tt.useMemo(function(){return Ve?fn:Xt},[Ve,fn,Xt]),zi=Tt.useMemo(function(){for(var Mo=[{options:so}],Ao=so,Uo=Cn(Ao,Xe),So=function(){var eo=Gn[di],hi=Ao.find(function(lr,Yo){return(Uo[Yo]?Me(Uo[Yo]):lr[Xe.value])===eo}),Ot=hi==null?void 0:hi[Xe.children];if(!(Ot!=null&&Ot.length))return"break";Ao=Ot,Mo.push({options:Ot})},di=0;di":bi,yn=Qt.loadingIcon,uo=Qt.children,Qi=Qt.dropdownMatchSelectWidth,io=Qi===void 0?!1:Qi,sn=Qt.showCheckedStrategy,Gn=sn===void 0?re:sn,wi=(0,Ce.Z)(Qt,Kt),ji=(0,ze.ZP)(Re),Ci=!!pn,Ui=(0,nt.Z)(te,{value:Yt,postState:Ee}),so=(0,de.Z)(Ui,2),zi=so[0],Ei=so[1],Ki=Tt.useMemo(function(){return ge(en)},[JSON.stringify(en)]),Ln=Tt.useMemo(function(){return dn||[]},[dn]),ho=Ye(Ln,Ki),bn=Tt.useCallback(function(Oi){var po=ho();return Oi.map(function(co){var or=po[co].nodes;return or.map(function(ia){return ia[Ki.value]})})},[ho,Ki]),ao=(0,nt.Z)("",{value:ai,postState:function(po){return po||""}}),Mo=(0,de.Z)(ao,2),Ao=Mo[0],Uo=Mo[1],So=function(po,co){Uo(po),co.source!=="blur"&&gn&&gn(po)},di=Be(Qe),_i=(0,de.Z)(di,2),Po=_i[0],eo=_i[1],hi=Ut(Ao,Ln,Ki,De||me,eo,Vt),Ot=kn(Ln,Ki),lr=Tt.useMemo(function(){var Oi=Ot(zi),po=(0,de.Z)(Oi,2),co=po[0],or=po[1];if(!Ci||!zi.length)return[co,[],or];var ia=pe(co),ha=ho(),ga=(0,He.S)(ia,!0,ha),on=ga.checkedKeys,ca=ga.halfCheckedKeys;return[bn(on),bn(ca),or]},[Ci,zi,ho,bn,Ot]),Yo=(0,de.Z)(lr,3),tr=Yo[0],_t=Yo[1],Zn=Yo[2],si=Tt.useMemo(function(){var Oi=pe(tr),po=hn(Oi,ho,Gn);return[].concat((0,ot.Z)(Zn),(0,ot.Z)(bn(po)))},[tr,ho,bn,Zn,Gn]),Ii=Fe(si,Ln,Ki,Ci,an),_n=(0,Ft.Z)(function(Oi){if(Ei(Oi),Ve){var po=Ee(Oi),co=po.map(function(ha){return Xn(ha,Ln,Ki).map(function(ga){return ga.option})}),or=Ci?po:po[0],ia=Ci?co:co[0];Ve(or,ia)}}),Ai=(0,Ft.Z)(function(Oi){if((!Ci||Sn)&&Uo(""),!Ci)_n(Oi);else{var po=Me(Oi),co=pe(tr),or=pe(_t),ia=co.includes(po),ha=Zn.some(function(gr){return Me(gr)===po}),ga=tr,on=Zn;if(ha&&!ia)on=Zn.filter(function(gr){return Me(gr)!==po});else{var ca=ia?co.filter(function(gr){return gr!==po}):[].concat((0,ot.Z)(co),[po]),Ks=ho(),$a;if(ia){var Ll=(0,He.S)(ca,{checked:!1,halfCheckedKeys:or},Ks);$a=Ll.checkedKeys}else{var Yr=(0,He.S)(ca,!0,Ks);$a=Yr.checkedKeys}var Fs=hn($a,ho,Gn);ga=bn(Fs)}_n([].concat((0,ot.Z)(on),(0,ot.Z)(ga)))}}),pi=function(po,co){if(co.type==="clear"){_n([]);return}var or=co.values[0],ia=or.valueCells;Ai(ia)},mi=Pe!==void 0?Pe:he,ei=Di||fn,gi=Bn||ii,Nn=function(po){Kn==null||Kn(po),ki==null||ki(po)},Pi=Tt.useMemo(function(){return{options:Ln,fieldNames:Ki,values:tr,halfValues:_t,changeOnSelect:Vt,onSelect:Ai,checkable:pn,searchOptions:hi,dropdownPrefixCls:De,loadData:Xe,expandTrigger:Xt,expandIcon:Hi,loadingIcon:yn,dropdownMenuColumnStyle:oi}},[Ln,Ki,tr,_t,Vt,Ai,pn,hi,De,Xe,Xt,Hi,yn,oi]),Wi=!(Ao?hi:Ln).length,Ni=Ao&&eo.matchInputWidth||Wi?{}:{minWidth:"auto"};return Tt.createElement(ct.Provider,{value:Pi},Tt.createElement(xe.Ac,(0,Oe.Z)({},wi,{ref:Te,id:ji,prefixCls:me,autoClearSearchValue:Sn,dropdownMatchSelectWidth:io,dropdownStyle:Ni,displayValues:Ii,onDisplayValuesChange:pi,mode:Ci?"multiple":void 0,searchValue:Ao,onSearch:So,showSearch:Po,OptionList:mn,emptyOptions:Wi,open:mi,dropdownClassName:ei,placement:gi,onDropdownVisibleChange:Nn,getRawInputElement:function(){return uo}})))});ke.SHOW_PARENT=re,ke.SHOW_CHILD=ie;var ln=ke,Dt=ln,wt=St(2738),At=St(62892),Bt=St(53487),jt=St(19080),Mt=St(36355),Ae=St(93891),En=St(1684),Rn=St(19716),Pn=St(32441),$n=St(14154),xi=St(58582),Fi=St(84443),Bi=St(66339),Ji=St(33234),ro=St(98447),Eo=St(17313),Zo=St(74207),Lo=St(83116);const qn=Qt=>{const{prefixCls:Te,componentCls:Re,antCls:_e}=Qt,me=`${Re}-menu-item`,en=` +`:'
        '+(Me?re:(0,ae.escape)(re,!0))+"
        "},de.heading=function(re,ie,Me){let pe=this.options.headerPrefix+Me.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return qt.push({anchor:pe,level:ie,text:re}),"'+re+""},Tt().setOptions({silent:!0,gfm:!0,pedantic:!1}),Tt().use({tokenizer:nt,renderer:de}),Yn.ZP=Tt()},46474:function(un,Yn,St){"use strict";St.d(Yn,{rX:function(){return bt},pW:function(){return Rt},gy:function(){return Ut},xY:function(){return Pt},O5:function(){return yt},hs:function(){return et},tJ:function(){return Ft},o1:function(){return nt},Rd:function(){return pt}});var ot=St(89070),Tt=St(43418),ae=St(28103),$e=St(8591),fe=St(24065),ve=St(955),qt=St(87169),Oe=St(25510),de="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAouElEQVR42u3de5gU1Z038HOqqu89PQPMhQH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kcewBioPvlsxAMK2u/gunHPB5OJWjJ+wbeSKs1u3YnHqRT5whAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIMFutYefOnRUVFVa3ctWqVStXrjT4ZtsqK+RE5Ql7K1BpvAtHmdhWI8S2QhcWDWswG1gVFRVVVVVWtCxbOBy2ehMA4H44JQQAMhBYAEAGAgsAyEBgAQAZCCwAIMOSSShM3tFsaWkp+J1HZx+RN75O23pkRWEGk5wdEWJFN0023mTdEWfH9xjvZl5whAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIsGRYg7NIP99vRd+tKDlg2zutYLxJzk7/Ydv+dOEcKwPBERYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgowiHNYzk4QJWPEzvwm7mZEVlBZP1Epwd65CTbSMYLBq5giMsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQIYlwxpaWlrMLG5yBgrbSvfbVnKASsED25j8iE2u0/jiJsc6uLBWhLPrZBYFVsHnvAEAYDglBABCEFgAQAYCCwDIQGABABlmL7qvWrUqHA5b3cotW7bYszsAwM24FXeIbUPl0XPbahsY76ZtU3W48+64ma0bZ9tnZFtdB9tKoQwEp4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",Ce=St.p+"static/newqrcode.a8740efb.png",xe=St(32637),ze=St(59301),He=(ee,re,ie)=>new Promise((Me,pe)=>{var Le=Je=>{try{je(ie.next(Je))}catch(Cn){pe(Cn)}},ge=Je=>{try{je(ie.throw(Je))}catch(Cn){pe(Cn)}},je=Je=>Je.done?Me(Je.value):Promise.resolve(Je.value).then(Le,ge);je((ie=ie.apply(ee,re)).next())});const Ft=(ee,re=!1,ie=!1,Me="",pe=!1)=>!!(nt(ee)&&ct(ee,re,ie,Me,pe)),nt=ee=>(0,fe.bg)()?!0:(ee({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),et=ee=>{var re,ie,Me;const{user:pe}=(0,ot.getDvaApp)()._store.getState();(0,fe.bg)()&&!((ie=(re=pe==null?void 0:pe.userInfo)==null?void 0:re.course)!=null&&ie.course_public)&&!((Me=pe==null?void 0:pe.userInfo)!=null&&Me.profile_completed)&&ee({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:"/account/profile/edit",isCurrentPage:!0}})},ct=(ee,re=!1,ie=!0,Me="",pe=!1)=>{var Le;const{user:ge}=(0,ot.getDvaApp)()._store.getState();return(Le=ge.userInfo)!=null&&Le.profile_completed?!0:(ie?ee({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:Me,isCurrentPage:pe}}):Tt.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,ve.xg)("/account/profile/edit"),ut()}}),!1)},ut=()=>{Tt.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()}})},pt=()=>{Tt.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:ze.createElement("div",{style:{textAlign:"center"}},ze.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"),ze.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:xe}),ze.createElement("div",{style:{color:"#666666",fontSize:14,marginTop:15}},"\u6DFB\u52A0\u5BA2\u670D\u4EBA\u5458\u5FAE\u4FE1\uFF0C\u83B7\u5F97\u66F4\u591A\u652F\u6301"))})},yt=()=>{var ee;const{user:re}=(0,ot.getDvaApp)()._store.getState();return(ee=re.userInfo)!=null&&ee.professional_certification?!0:(Tt.default.confirm({title:"\u63D0\u793A",centered:!0,content:ze.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,ve.xg)("/account/certification")}}),!1)},Pt=()=>(0,fe.V9)()?!0:(Tt.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:ze.createElement("div",{className:"tc",style:{marginLeft:-38}},ze.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),ze.createElement("img",{src:Ce,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),bt=(ee,re)=>ee?!0:(Tt.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:ze.createElement("div",null,ze.createElement("p",null,re||"\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"),ze.createElement("div",{style:{marginLeft:"110px"}},ze.createElement("img",{src:de,width:200}),ze.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,ve.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),Rt=ee=>{Tt.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:ze.createElement("div",null,ze.createElement("div",null,ze.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"),ze.createElement(ae.Z,null),ze.createElement("p",{style:{color:"#666666",fontSize:12}}," ",ze.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 ",ze.createElement("a",null,ee),"\u5929\u3002"),ze.createElement("p",{style:{color:"#666666",fontSize:12}}," ",ze.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")),ze.createElement("div",{style:{textAlign:"center",marginTop:30}},ze.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Oe,alt:"\u4E8C\u7EF4\u7801",width:160})))})},Ut=(ee,re="")=>{const{shixunsDetail:{detail:ie}}=(0,ot.getDvaApp)()._store.getState();if((ie==null?void 0:ie.public)===2||(ie==null?void 0:ie.public)===1||(ie==null?void 0:ie.shixun_status)===3){let Me="";return(ie==null?void 0:ie.public)===2&&(Me="\u5DF2\u516C\u5F00"),(ie==null?void 0:ie.public)===1&&(Me="\u5F85\u5BA1\u6838"),(ie==null?void 0:ie.shixun_status)===3&&(Me="\u5DF2\u5173\u95ED"),Tt.default.info({centered:!0,icon:ze.createElement(qt.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:ze.createElement("div",{className:"tc",style:{marginLeft:-38}},ze.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},ze.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",Me,"\uFF0C",re,"\u3002"),ze.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),ze.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Oe,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(ie==null?void 0:ie.shixun_status)===2?(Tt.default.confirm({centered:!0,icon:ze.createElement(qt.Z,null),title:"\u63D0\u793A",content:ze.createElement("div",null,ze.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",re,"\u3002"),ze.createElement("br",null),ze.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:()=>{Tt.default.confirm({width:440,centered:!0,icon:ze.createElement(qt.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:()=>He(void 0,null,function*(){(yield ee({type:"shixunsDetail/cancelRelease",payload:{id:ie==null?void 0:ie.identifier}})).status!==401&&($e.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),ee({type:"shixunsDetail/getShixunsDetail",payload:{id:ie==null?void 0:ie.identifier}}),ee({type:"practiceSetting/getCommonData",payload:{id:ie==null?void 0:ie.identifier}}))})})}}),!0):!1}},77578:function(un,Yn,St){"use strict";St.d(Yn,{Z:function(){return ot}});const ot=Tt=>Tt?typeof Tt=="function"?Tt():Tt:null},27666:function(un,Yn,St){"use strict";var ot=St(80702),Tt=St(16089);function ae($e){let fe;const ve=Oe=>()=>{fe=null,$e.apply(void 0,(0,ot.Z)(Oe))},qt=function(){if(fe==null){for(var Oe=arguments.length,de=new Array(Oe),Ce=0;Ce{Tt.Z.cancel(fe),fe=null},qt}Yn.Z=ae},88522:function(un,Yn,St){"use strict";var ot=St(92310),Tt=St.n(ot),ae=St(11592),$e=St(2738),fe=St(59301),ve=St(53487),qt=St(92343),Oe=St(36355),de=St(57809);const{Option:Ce}=de.default;function xe(nt){return nt&&nt.type&&(nt.type.isSelectOption||nt.type.isSelectOptGroup)}const ze=(nt,et)=>{const{prefixCls:ct,className:ut,popupClassName:pt,dropdownClassName:yt,children:Pt,dataSource:bt}=nt,Rt=(0,ae.Z)(Pt);let Ut;Rt.length===1&&(0,qt.l$)(Rt[0])&&!xe(Rt[0])&&([Ut]=Rt);const ee=Ut?()=>Ut:void 0;let re;Rt.length&&xe(Rt[0])?re=Pt:re=bt?bt.map(pe=>{if((0,qt.l$)(pe))return pe;switch(typeof pe){case"string":return fe.createElement(Ce,{key:pe,value:pe},pe);case"object":{const{value:Le}=pe;return fe.createElement(Ce,{key:Le,value:Le},pe.text)}default:return}}):[];const{getPrefixCls:ie}=fe.useContext(Oe.E_),Me=ie("select",ct);return fe.createElement(de.default,Object.assign({ref:et,suffixIcon:null},(0,$e.Z)(nt,["dataSource","dropdownClassName"]),{prefixCls:Me,popupClassName:pt||yt,className:Tt()(`${Me}-auto-complete`,ut),mode:de.default.SECRET_COMBOBOX_MODE_DO_NOT_USE},{getInputElement:ee}),re)},He=fe.forwardRef(ze),Ft=(0,ve.Z)(He);He.Option=Ce,He._InternalPanelDoNotUseOrYouWillBeFired=Ft,Yn.Z=He},7678:function(un,Yn,St){"use strict";St.d(Yn,{Z:function(){return ee}});var ot=St(72308),Tt=St(59301),ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"},$e=ae,fe=St(7657),ve=function(ie,Me){return Tt.createElement(fe.Z,(0,ot.Z)({},ie,{ref:Me,icon:$e}))},qt=Tt.forwardRef(ve),Oe=qt,de=St(92310),Ce=St.n(de),xe=St(77900),ze=St(2738),He=St(13845),Ft=St(92343),nt=St(68031),et=St(27666),ct=St(36355),ut=St(83116),pt=St(37613),yt=St(17313);const Pt=re=>{const{componentCls:ie,backTopFontSize:Me,backTopSize:pe,zIndexPopup:Le}=re;return{[ie]:Object.assign(Object.assign({},(0,yt.Wf)(re)),{position:"fixed",insetInlineEnd:re.backTopInlineEnd,insetBlockEnd:re.backTopBlockEnd,zIndex:Le,width:40,height:40,cursor:"pointer","&:empty":{display:"none"},[`${ie}-content`]:{width:pe,height:pe,overflow:"hidden",color:re.backTopColor,textAlign:"center",backgroundColor:re.backTopBackground,borderRadius:pe,transition:`all ${re.motionDurationMid}`,"&:hover":{backgroundColor:re.backTopHoverBackground,transition:`all ${re.motionDurationMid}`}},[`${ie}-icon`]:{fontSize:Me,lineHeight:`${pe}px`}})}},bt=re=>{const{componentCls:ie}=re;return{[`@media (max-width: ${re.screenMD}px)`]:{[ie]:{insetInlineEnd:re.backTopInlineEndMD}},[`@media (max-width: ${re.screenXS}px)`]:{[ie]:{insetInlineEnd:re.backTopInlineEndXS}}}};var Rt=(0,ut.Z)("BackTop",re=>{const{fontSizeHeading3:ie,colorTextDescription:Me,colorTextLightSolid:pe,colorText:Le,controlHeightLG:ge}=re,je=(0,pt.TS)(re,{backTopBackground:Me,backTopColor:pe,backTopHoverBackground:Le,backTopFontSize:ie,backTopSize:ge,backTopBlockEnd:ge*1.25,backTopInlineEnd:ge*2.5,backTopInlineEndMD:ge*1.5,backTopInlineEndXS:ge*.5});return[Pt(je),bt(je)]},re=>({zIndexPopup:re.zIndexBase+10})),ee=re=>{const{prefixCls:ie,className:Me,rootClassName:pe,visibilityHeight:Le=400,target:ge,onClick:je,duration:Je=450}=re,[Cn,hn]=Tt.useState(Le===0),Xn=Tt.useRef(null),Fe=()=>Xn.current&&Xn.current.ownerDocument?Xn.current.ownerDocument:window,Zt=(0,et.Z)(cn=>{const wn=(0,He.Z)(cn.target,!0);hn(wn>=Le)});Tt.useEffect(()=>{const wn=(ge||Fe)();return Zt({target:wn}),wn==null||wn.addEventListener("scroll",Zt),()=>{Zt.cancel(),wn==null||wn.removeEventListener("scroll",Zt)}},[ge]);const Ye=cn=>{(0,nt.Z)(0,{getContainer:ge||Fe,duration:Je}),je==null||je(cn)},{getPrefixCls:kn,direction:Tn}=Tt.useContext(ct.E_),Be=kn("back-top",ie),be=kn(),[Ke,jn]=Rt(Be),Wn=Ce()(jn,Be,{[`${Be}-rtl`]:Tn==="rtl"},Me,pe),An=(0,ze.Z)(re,["prefixCls","className","rootClassName","children","visibilityHeight","target"]),oe=Tt.createElement("div",{className:`${Be}-content`},Tt.createElement("div",{className:`${Be}-icon`},Tt.createElement(Oe,null)));return Ke(Tt.createElement("div",Object.assign({},An,{className:Wn,onClick:Ye,ref:Xn}),Tt.createElement(xe.default,{visible:Cn,motionName:`${be}-fade`},cn=>{let{className:wn}=cn;return(0,Ft.Tm)(re.children||oe,Fn=>{let{className:mn}=Fn;return{className:Ce()(wn,mn)}})})))}},9951:function(un,Yn,St){"use strict";St.d(Yn,{Z:function(){return Lo}});var ot=St(59301),Tt=St(72308),ae=St(77321),$e=St(96949),fe=St(55090),ve=St(80237),qt=St(77205),Oe=St(38793),de=St(49618),Ce=St(62853),xe=St(74416),ze={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0},He=ze,Ft=St(53280),nt=St(92310),et=St.n(nt);function ct(qn,$t,tn){return Math.max($t,Math.min(qn,tn))}var ut=function($t){var tn=["onTouchStart","onTouchMove","onWheel"];tn.includes($t._reactName)||$t.preventDefault()},pt=function($t){for(var tn=[],Jn=Pt($t),zt=bt($t),Mn=Jn;Mn0?1:0):0},Ut=function($t){return $t.centerMode?Math.floor(($t.slidesToShow-1)/2)+1+(parseInt($t.centerPadding)>0?1:0):$t.slidesToShow},ee=function($t){return $t&&$t.offsetWidth||0},re=function($t){return $t&&$t.offsetHeight||0},ie=function($t){var tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Jn,zt,Mn,le;return Jn=$t.startX-$t.curX,zt=$t.startY-$t.curY,Mn=Math.atan2(zt,Jn),le=Math.round(Mn*180/Math.PI),le<0&&(le=360-Math.abs(le)),le<=45&&le>=0||le<=360&&le>=315?"left":le>=135&&le<=225?"right":tn===!0?le>=35&&le<=135?"up":"down":"vertical"},Me=function($t){var tn=!0;return $t.infinite||($t.centerMode&&$t.currentSlide>=$t.slideCount-1||$t.slideCount<=$t.slidesToShow||$t.currentSlide>=$t.slideCount-$t.slidesToShow)&&(tn=!1),tn},pe=function($t,tn){var Jn={};return tn.forEach(function(zt){return Jn[zt]=$t[zt]}),Jn},Le=function($t){var tn=ot.Children.count($t.children),Jn=$t.listRef,zt=Math.ceil(ee(Jn)),Mn=$t.trackRef&&$t.trackRef.node,le=Math.ceil(ee(Mn)),Ct;if($t.vertical)Ct=zt;else{var vn=$t.centerMode&&parseInt($t.centerPadding)*2;typeof $t.centerPadding=="string"&&$t.centerPadding.slice(-1)==="%"&&(vn*=zt/100),Ct=Math.ceil((zt-vn)/$t.slidesToShow)}var Hn=Jn&&re(Jn.querySelector('[data-index="0"]')),Qt=Hn*$t.slidesToShow,Te=$t.currentSlide===void 0?$t.initialSlide:$t.currentSlide;$t.rtl&&$t.currentSlide===void 0&&(Te=tn-1-$t.initialSlide);var Re=$t.lazyLoadedList||[],_e=pt((0,ae.Z)((0,ae.Z)({},$t),{},{currentSlide:Te,lazyLoadedList:Re}));Re=Re.concat(_e);var me={slideCount:tn,slideWidth:Ct,listWidth:zt,trackWidth:le,currentSlide:Te,slideHeight:Hn,listHeight:Qt,lazyLoadedList:Re};return $t.autoplaying===null&&$t.autoplay&&(me.autoplaying="playing"),me},ge=function($t){var tn=$t.waitForAnimate,Jn=$t.animating,zt=$t.fade,Mn=$t.infinite,le=$t.index,Ct=$t.slideCount,vn=$t.lazyLoad,Hn=$t.currentSlide,Qt=$t.centerMode,Te=$t.slidesToScroll,Re=$t.slidesToShow,_e=$t.useCSS,me=$t.lazyLoadedList;if(tn&&Jn)return{};var en=le,te,Yt,Vt,Ve={},an={},pn=Mn?le:ct(le,0,Ct-1);if(zt){if(!Mn&&(le<0||le>=Ct))return{};le<0?en=le+Ct:le>=Ct&&(en=le-Ct),vn&&me.indexOf(en)<0&&(me=me.concat(en)),Ve={animating:!0,currentSlide:en,lazyLoadedList:me,targetSlide:en},an={animating:!1,targetSlide:en}}else te=en,en<0?(te=en+Ct,Mn?Ct%Te!==0&&(te=Ct-Ct%Te):te=0):!Me($t)&&en>Hn?en=te=Hn:Qt&&en>=Ct?(en=Mn?Ct:Ct-1,te=Mn?0:Ct-1):en>=Ct&&(te=en-Ct,Mn?Ct%Te!==0&&(te=0):te=Ct-Re),!Mn&&en+Re>=Ct&&(te=Ct-Re),Yt=be((0,ae.Z)((0,ae.Z)({},$t),{},{slideIndex:en})),Vt=be((0,ae.Z)((0,ae.Z)({},$t),{},{slideIndex:te})),Mn||(Yt===Vt&&(en=te),Yt=Vt),vn&&(me=me.concat(pt((0,ae.Z)((0,ae.Z)({},$t),{},{currentSlide:en})))),_e?(Ve={animating:!0,currentSlide:te,trackStyle:Be((0,ae.Z)((0,ae.Z)({},$t),{},{left:Yt})),lazyLoadedList:me,targetSlide:pn},an={animating:!1,currentSlide:te,trackStyle:Tn((0,ae.Z)((0,ae.Z)({},$t),{},{left:Vt})),swipeLeft:null,targetSlide:pn}):Ve={currentSlide:te,trackStyle:Tn((0,ae.Z)((0,ae.Z)({},$t),{},{left:Vt})),lazyLoadedList:me,targetSlide:pn};return{state:Ve,nextState:an}},je=function($t,tn){var Jn,zt,Mn,le,Ct,vn=$t.slidesToScroll,Hn=$t.slidesToShow,Qt=$t.slideCount,Te=$t.currentSlide,Re=$t.targetSlide,_e=$t.lazyLoad,me=$t.infinite;if(le=Qt%vn!==0,Jn=le?0:(Qt-Te)%vn,tn.message==="previous")Mn=Jn===0?vn:Hn-Jn,Ct=Te-Mn,_e&&!me&&(zt=Te-Mn,Ct=zt===-1?Qt-1:zt),me||(Ct=Re-vn);else if(tn.message==="next")Mn=Jn===0?vn:Jn,Ct=Te+Mn,_e&&!me&&(Ct=(Te+vn)%Qt+Jn),me||(Ct=Re+vn);else if(tn.message==="dots")Ct=tn.index*tn.slidesToScroll;else if(tn.message==="children"){if(Ct=tn.index,me){var en=An((0,ae.Z)((0,ae.Z)({},$t),{},{targetSlide:Ct}));Ct>tn.currentSlide&&en==="left"?Ct=Ct-Qt:Ct10)return{scrolling:!0};Ct&&(Vt.swipeLength=gn);var Qe=(vn?-1:1)*(Vt.curX>Vt.startX?1:-1);Ct&&(Qe=Vt.curY>Vt.startY?1:-1);var Xt=Math.ceil(en/te),dn=ie(tn.touchObject,Ct),De=Vt.swipeLength;return Yt||(Hn===0&&(dn==="right"||dn==="down")||Hn+1>=Xt&&(dn==="left"||dn==="up")||!Me(tn)&&(dn==="left"||dn==="up"))&&(De=Vt.swipeLength*Qt,Te===!1&&Re&&(Re(dn),Sn.edgeDragged=!0)),!_e&&Ve&&(Ve(dn),Sn.swiped=!0),Mn?We=ai+De*(an/pn)*Qe:vn?We=ai-De*Qe:We=ai+De*Qe,Ct&&(We=ai+De*Qe),Sn=(0,ae.Z)((0,ae.Z)({},Sn),{},{touchObject:Vt,swipeLeft:We,trackStyle:Tn((0,ae.Z)((0,ae.Z)({},tn),{},{left:We}))}),Math.abs(Vt.curX-Vt.startX)10&&(Sn.swiping=!0,ut($t)),Sn}},Xn=function($t,tn){var Jn=tn.dragging,zt=tn.swipe,Mn=tn.touchObject,le=tn.listWidth,Ct=tn.touchThreshold,vn=tn.verticalSwiping,Hn=tn.listHeight,Qt=tn.swipeToSlide,Te=tn.scrolling,Re=tn.onSwipe,_e=tn.targetSlide,me=tn.currentSlide,en=tn.infinite;if(!Jn)return zt&&ut($t),{};var te=vn?Hn/Ct:le/Ct,Yt=ie(Mn,vn),Vt={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(Te||!Mn.swipeLength)return Vt;if(Mn.swipeLength>te){ut($t),Re&&Re(Yt);var Ve,an,pn=en?me:_e;switch(Yt){case"left":case"up":an=pn+Ye(tn),Ve=Qt?Zt(tn,an):an,Vt.currentDirection=0;break;case"right":case"down":an=pn-Ye(tn),Ve=Qt?Zt(tn,an):an,Vt.currentDirection=1;break;default:Ve=pn}Vt.triggerSlideHandler=Ve}else{var We=be(tn);Vt.trackStyle=Be((0,ae.Z)((0,ae.Z)({},tn),{},{left:We}))}return Vt},Fe=function($t){for(var tn=$t.infinite?$t.slideCount*2:$t.slideCount,Jn=$t.infinite?$t.slidesToShow*-1:0,zt=$t.infinite?$t.slidesToShow*-1:0,Mn=[];JnJn[Jn.length-1])tn=Jn[Jn.length-1];else for(var Mn in Jn){if(tn$t.swipeLeft*-1)return Jn=vn,!1}else if(vn.offsetLeft-tn+ee(vn)/2>$t.swipeLeft*-1)return Jn=vn,!1;return!0}),!Jn)return 0;var le=$t.rtl===!0?$t.slideCount-$t.currentSlide:$t.currentSlide,Ct=Math.abs(Jn.dataset.index-le)||1;return Ct}else return $t.slidesToScroll},kn=function($t,tn){return tn.reduce(function(Jn,zt){return Jn&&$t.hasOwnProperty(zt)},!0)?null:console.error("Keys Missing:",$t)},Tn=function($t){kn($t,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var tn,Jn,zt=$t.slideCount+2*$t.slidesToShow;$t.vertical?Jn=zt*$t.slideHeight:tn=Wn($t)*$t.slideWidth;var Mn={opacity:1,transition:"",WebkitTransition:""};if($t.useTransform){var le=$t.vertical?"translate3d(0px, "+$t.left+"px, 0px)":"translate3d("+$t.left+"px, 0px, 0px)",Ct=$t.vertical?"translate3d(0px, "+$t.left+"px, 0px)":"translate3d("+$t.left+"px, 0px, 0px)",vn=$t.vertical?"translateY("+$t.left+"px)":"translateX("+$t.left+"px)";Mn=(0,ae.Z)((0,ae.Z)({},Mn),{},{WebkitTransform:le,transform:Ct,msTransform:vn})}else $t.vertical?Mn.top=$t.left:Mn.left=$t.left;return $t.fade&&(Mn={opacity:1}),tn&&(Mn.width=tn),Jn&&(Mn.height=Jn),window&&!window.addEventListener&&window.attachEvent&&($t.vertical?Mn.marginTop=$t.left+"px":Mn.marginLeft=$t.left+"px"),Mn},Be=function($t){kn($t,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var tn=Tn($t);return $t.useTransform?(tn.WebkitTransition="-webkit-transform "+$t.speed+"ms "+$t.cssEase,tn.transition="transform "+$t.speed+"ms "+$t.cssEase):$t.vertical?tn.transition="top "+$t.speed+"ms "+$t.cssEase:tn.transition="left "+$t.speed+"ms "+$t.cssEase,tn},be=function($t){if($t.unslick)return 0;kn($t,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var tn=$t.slideIndex,Jn=$t.trackRef,zt=$t.infinite,Mn=$t.centerMode,le=$t.slideCount,Ct=$t.slidesToShow,vn=$t.slidesToScroll,Hn=$t.slideWidth,Qt=$t.listWidth,Te=$t.variableWidth,Re=$t.slideHeight,_e=$t.fade,me=$t.vertical,en=0,te,Yt,Vt=0;if(_e||$t.slideCount===1)return 0;var Ve=0;if(zt?(Ve=-Ke($t),le%vn!==0&&tn+vn>le&&(Ve=-(tn>le?Ct-(tn-le):le%vn)),Mn&&(Ve+=parseInt(Ct/2))):(le%vn!==0&&tn+vn>le&&(Ve=Ct-le%vn),Mn&&(Ve=parseInt(Ct/2))),en=Ve*Hn,Vt=Ve*Re,me?te=tn*Re*-1+Vt:te=tn*Hn*-1+en,Te===!0){var an,pn=Jn&&Jn.node;if(an=tn+Ke($t),Yt=pn&&pn.childNodes[an],te=Yt?Yt.offsetLeft*-1:0,Mn===!0){an=zt?tn+Ke($t):tn,Yt=pn&&pn.children[an],te=0;for(var We=0;We$t.currentSlide?$t.targetSlide>$t.currentSlide+oe($t)?"left":"right":$t.targetSlide<$t.currentSlide-cn($t)?"right":"left"},oe=function($t){var tn=$t.slidesToShow,Jn=$t.centerMode,zt=$t.rtl,Mn=$t.centerPadding;if(Jn){var le=(tn-1)/2+1;return parseInt(Mn)>0&&(le+=1),zt&&tn%2===0&&(le+=1),le}return zt?0:tn-1},cn=function($t){var tn=$t.slidesToShow,Jn=$t.centerMode,zt=$t.rtl,Mn=$t.centerPadding;if(Jn){var le=(tn-1)/2+1;return parseInt(Mn)>0&&(le+=1),!zt&&tn%2===0&&(le+=1),le}return zt?tn-1:0},wn=function(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)},Fn=function($t){var tn,Jn,zt,Mn,le;$t.rtl?le=$t.slideCount-1-$t.index:le=$t.index,zt=le<0||le>=$t.slideCount,$t.centerMode?(Mn=Math.floor($t.slidesToShow/2),Jn=(le-$t.currentSlide)%$t.slideCount===0,le>$t.currentSlide-Mn-1&&le<=$t.currentSlide+Mn&&(tn=!0)):tn=$t.currentSlide<=le&&le<$t.currentSlide+$t.slidesToShow;var Ct;$t.targetSlide<0?Ct=$t.targetSlide+$t.slideCount:$t.targetSlide>=$t.slideCount?Ct=$t.targetSlide-$t.slideCount:Ct=$t.targetSlide;var vn=le===Ct;return{"slick-slide":!0,"slick-active":tn,"slick-center":Jn,"slick-cloned":zt,"slick-current":vn}},mn=function($t){var tn={};return($t.variableWidth===void 0||$t.variableWidth===!1)&&(tn.width=$t.slideWidth),$t.fade&&(tn.position="relative",$t.vertical&&$t.slideHeight?tn.top=-$t.index*parseInt($t.slideHeight):tn.left=-$t.index*parseInt($t.slideWidth),tn.opacity=$t.currentSlide===$t.index?1:0,$t.useCSS&&(tn.transition="opacity "+$t.speed+"ms "+$t.cssEase+", visibility "+$t.speed+"ms "+$t.cssEase)),tn},Dn=function($t,tn){return $t.key+"-"+tn},rn=function($t){var tn,Jn=[],zt=[],Mn=[],le=ot.Children.count($t.children),Ct=Pt($t),vn=bt($t);return ot.Children.forEach($t.children,function(Hn,Qt){var Te,Re={message:"children",index:Qt,slidesToScroll:$t.slidesToScroll,currentSlide:$t.currentSlide};!$t.lazyLoad||$t.lazyLoad&&$t.lazyLoadedList.indexOf(Qt)>=0?Te=Hn:Te=ot.createElement("div",null);var _e=mn((0,ae.Z)((0,ae.Z)({},$t),{},{index:Qt})),me=Te.props.className||"",en=Fn((0,ae.Z)((0,ae.Z)({},$t),{},{index:Qt}));if(Jn.push(ot.cloneElement(Te,{key:"original"+Dn(Te,Qt),"data-index":Qt,className:et()(en,me),tabIndex:"-1","aria-hidden":!en["slick-active"],style:(0,ae.Z)((0,ae.Z)({outline:"none"},Te.props.style||{}),_e),onClick:function(Vt){Te.props&&Te.props.onClick&&Te.props.onClick(Vt),$t.focusOnSelect&&$t.focusOnSelect(Re)}})),$t.infinite&&$t.fade===!1){var te=le-Qt;te<=Ke($t)&&le!==$t.slidesToShow&&(tn=-te,tn>=Ct&&(Te=Hn),en=Fn((0,ae.Z)((0,ae.Z)({},$t),{},{index:tn})),zt.push(ot.cloneElement(Te,{key:"precloned"+Dn(Te,tn),"data-index":tn,tabIndex:"-1",className:et()(en,me),"aria-hidden":!en["slick-active"],style:(0,ae.Z)((0,ae.Z)({},Te.props.style||{}),_e),onClick:function(Vt){Te.props&&Te.props.onClick&&Te.props.onClick(Vt),$t.focusOnSelect&&$t.focusOnSelect(Re)}}))),le!==$t.slidesToShow&&(tn=le+Qt,tn=an&&Re<=Vt:Re===an}),We={message:"dots",index:te,slidesToScroll:Hn,currentSlide:Re},Sn=this.clickHandler.bind(this,We);en=en.concat(ot.createElement("li",{key:te,className:pn},ot.cloneElement(this.props.customPaging(te),{onClick:Sn})))}return ot.cloneElement(this.props.appendDots(en),(0,ae.Z)({className:this.props.dotsClass},me))}}]),tn}(ot.PureComponent),Ee=function(qn){(0,qt.Z)(tn,qn);var $t=(0,Oe.Z)(tn);function tn(){return(0,$e.Z)(this,tn),$t.apply(this,arguments)}return(0,fe.Z)(tn,[{key:"clickHandler",value:function(zt,Mn){Mn&&Mn.preventDefault(),this.props.clickHandler(zt,Mn)}},{key:"render",value:function(){var zt={"slick-arrow":!0,"slick-prev":!0},Mn=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(zt["slick-disabled"]=!0,Mn=null);var le={key:"0","data-role":"none",className:et()(zt),style:{display:"block"},onClick:Mn},Ct={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},vn;return this.props.prevArrow?vn=ot.cloneElement(this.props.prevArrow,(0,ae.Z)((0,ae.Z)({},le),Ct)):vn=ot.createElement("button",(0,Tt.Z)({key:"0",type:"button"},le)," ","Previous"),vn}}]),tn}(ot.PureComponent),ke=function(qn){(0,qt.Z)(tn,qn);var $t=(0,Oe.Z)(tn);function tn(){return(0,$e.Z)(this,tn),$t.apply(this,arguments)}return(0,fe.Z)(tn,[{key:"clickHandler",value:function(zt,Mn){Mn&&Mn.preventDefault(),this.props.clickHandler(zt,Mn)}},{key:"render",value:function(){var zt={"slick-arrow":!0,"slick-next":!0},Mn=this.clickHandler.bind(this,{message:"next"});Me(this.props)||(zt["slick-disabled"]=!0,Mn=null);var le={key:"1","data-role":"none",className:et()(zt),style:{display:"block"},onClick:Mn},Ct={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},vn;return this.props.nextArrow?vn=ot.cloneElement(this.props.nextArrow,(0,ae.Z)((0,ae.Z)({},le),Ct)):vn=ot.createElement("button",(0,Tt.Z)({key:"1",type:"button"},le)," ","Next"),vn}}]),tn}(ot.PureComponent),ln=St(76374),Dt=["animating"],wt=function(qn){(0,qt.Z)(tn,qn);var $t=(0,Oe.Z)(tn);function tn(Jn){var zt;(0,$e.Z)(this,tn),zt=$t.call(this,Jn),(0,de.Z)((0,ve.Z)(zt),"listRefHandler",function(le){return zt.list=le}),(0,de.Z)((0,ve.Z)(zt),"trackRefHandler",function(le){return zt.track=le}),(0,de.Z)((0,ve.Z)(zt),"adaptHeight",function(){if(zt.props.adaptiveHeight&&zt.list){var le=zt.list.querySelector('[data-index="'.concat(zt.state.currentSlide,'"]'));zt.list.style.height=re(le)+"px"}}),(0,de.Z)((0,ve.Z)(zt),"componentDidMount",function(){if(zt.props.onInit&&zt.props.onInit(),zt.props.lazyLoad){var le=pt((0,ae.Z)((0,ae.Z)({},zt.props),zt.state));le.length>0&&(zt.setState(function(vn){return{lazyLoadedList:vn.lazyLoadedList.concat(le)}}),zt.props.onLazyLoad&&zt.props.onLazyLoad(le))}var Ct=(0,ae.Z)({listRef:zt.list,trackRef:zt.track},zt.props);zt.updateState(Ct,!0,function(){zt.adaptHeight(),zt.props.autoplay&&zt.autoPlay("playing")}),zt.props.lazyLoad==="progressive"&&(zt.lazyLoadTimer=setInterval(zt.progressiveLazyLoad,1e3)),zt.ro=new ln.Z(function(){zt.state.animating?(zt.onWindowResized(!1),zt.callbackTimers.push(setTimeout(function(){return zt.onWindowResized()},zt.props.speed))):zt.onWindowResized()}),zt.ro.observe(zt.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(vn){vn.onfocus=zt.props.pauseOnFocus?zt.onSlideFocus:null,vn.onblur=zt.props.pauseOnFocus?zt.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",zt.onWindowResized):window.attachEvent("onresize",zt.onWindowResized)}),(0,de.Z)((0,ve.Z)(zt),"componentWillUnmount",function(){zt.animationEndCallback&&clearTimeout(zt.animationEndCallback),zt.lazyLoadTimer&&clearInterval(zt.lazyLoadTimer),zt.callbackTimers.length&&(zt.callbackTimers.forEach(function(le){return clearTimeout(le)}),zt.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",zt.onWindowResized):window.detachEvent("onresize",zt.onWindowResized),zt.autoplayTimer&&clearInterval(zt.autoplayTimer),zt.ro.disconnect()}),(0,de.Z)((0,ve.Z)(zt),"componentDidUpdate",function(le){if(zt.checkImagesLoad(),zt.props.onReInit&&zt.props.onReInit(),zt.props.lazyLoad){var Ct=pt((0,ae.Z)((0,ae.Z)({},zt.props),zt.state));Ct.length>0&&(zt.setState(function(Qt){return{lazyLoadedList:Qt.lazyLoadedList.concat(Ct)}}),zt.props.onLazyLoad&&zt.props.onLazyLoad(Ct))}zt.adaptHeight();var vn=(0,ae.Z)((0,ae.Z)({listRef:zt.list,trackRef:zt.track},zt.props),zt.state),Hn=zt.didPropsChange(le);Hn&&zt.updateState(vn,Hn,function(){zt.state.currentSlide>=ot.Children.count(zt.props.children)&&zt.changeSlide({message:"index",index:ot.Children.count(zt.props.children)-zt.props.slidesToShow,currentSlide:zt.state.currentSlide}),(le.autoplay!==zt.props.autoplay||le.autoplaySpeed!==zt.props.autoplaySpeed)&&(!le.autoplay&&zt.props.autoplay?zt.autoPlay("playing"):zt.props.autoplay?zt.autoPlay("update"):zt.pause("paused"))})}),(0,de.Z)((0,ve.Z)(zt),"onWindowResized",function(le){zt.debouncedResize&&zt.debouncedResize.cancel(),zt.debouncedResize=(0,Ft.D)(50,function(){return zt.resizeWindow(le)}),zt.debouncedResize()}),(0,de.Z)((0,ve.Z)(zt),"resizeWindow",function(){var le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,Ct=!!(zt.track&&zt.track.node);if(Ct){var vn=(0,ae.Z)((0,ae.Z)({listRef:zt.list,trackRef:zt.track},zt.props),zt.state);zt.updateState(vn,le,function(){zt.props.autoplay?zt.autoPlay("update"):zt.pause("paused")}),zt.setState({animating:!1}),clearTimeout(zt.animationEndCallback),delete zt.animationEndCallback}}),(0,de.Z)((0,ve.Z)(zt),"updateState",function(le,Ct,vn){var Hn=Le(le);le=(0,ae.Z)((0,ae.Z)((0,ae.Z)({},le),Hn),{},{slideIndex:Hn.currentSlide});var Qt=be(le);le=(0,ae.Z)((0,ae.Z)({},le),{},{left:Qt});var Te=Tn(le);(Ct||ot.Children.count(zt.props.children)!==ot.Children.count(le.children))&&(Hn.trackStyle=Te),zt.setState(Hn,vn)}),(0,de.Z)((0,ve.Z)(zt),"ssrInit",function(){if(zt.props.variableWidth){var le=0,Ct=0,vn=[],Hn=Ke((0,ae.Z)((0,ae.Z)((0,ae.Z)({},zt.props),zt.state),{},{slideCount:zt.props.children.length})),Qt=jn((0,ae.Z)((0,ae.Z)((0,ae.Z)({},zt.props),zt.state),{},{slideCount:zt.props.children.length}));zt.props.children.forEach(function(Sn){vn.push(Sn.props.style.width),le+=Sn.props.style.width});for(var Te=0;Te=Ct&&zt.onWindowResized()};if(!Hn.onclick)Hn.onclick=function(){return Hn.parentNode.focus()};else{var Te=Hn.onclick;Hn.onclick=function(Re){Te(Re),Hn.parentNode.focus()}}Hn.onload||(zt.props.lazyLoad?Hn.onload=function(){zt.adaptHeight(),zt.callbackTimers.push(setTimeout(zt.onWindowResized,zt.props.speed))}:(Hn.onload=Qt,Hn.onerror=function(){Qt(),zt.props.onLazyLoadError&&zt.props.onLazyLoadError()}))})}),(0,de.Z)((0,ve.Z)(zt),"progressiveLazyLoad",function(){for(var le=[],Ct=(0,ae.Z)((0,ae.Z)({},zt.props),zt.state),vn=zt.state.currentSlide;vn=-Ke(Ct);Hn--)if(zt.state.lazyLoadedList.indexOf(Hn)<0){le.push(Hn);break}le.length>0?(zt.setState(function(Qt){return{lazyLoadedList:Qt.lazyLoadedList.concat(le)}}),zt.props.onLazyLoad&&zt.props.onLazyLoad(le)):zt.lazyLoadTimer&&(clearInterval(zt.lazyLoadTimer),delete zt.lazyLoadTimer)}),(0,de.Z)((0,ve.Z)(zt),"slideHandler",function(le){var Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,vn=zt.props,Hn=vn.asNavFor,Qt=vn.beforeChange,Te=vn.onLazyLoad,Re=vn.speed,_e=vn.afterChange,me=zt.state.currentSlide,en=ge((0,ae.Z)((0,ae.Z)((0,ae.Z)({index:le},zt.props),zt.state),{},{trackRef:zt.track,useCSS:zt.props.useCSS&&!Ct})),te=en.state,Yt=en.nextState;if(te){Qt&&Qt(me,te.currentSlide);var Vt=te.lazyLoadedList.filter(function(Ve){return zt.state.lazyLoadedList.indexOf(Ve)<0});Te&&Vt.length>0&&Te(Vt),!zt.props.waitForAnimate&&zt.animationEndCallback&&(clearTimeout(zt.animationEndCallback),_e&&_e(me),delete zt.animationEndCallback),zt.setState(te,function(){Hn&&zt.asNavForIndex!==le&&(zt.asNavForIndex=le,Hn.innerSlider.slideHandler(le)),Yt&&(zt.animationEndCallback=setTimeout(function(){var Ve=Yt.animating,an=(0,xe.Z)(Yt,Dt);zt.setState(an,function(){zt.callbackTimers.push(setTimeout(function(){return zt.setState({animating:Ve})},10)),_e&&_e(te.currentSlide),delete zt.animationEndCallback})},Re))})}}),(0,de.Z)((0,ve.Z)(zt),"changeSlide",function(le){var Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,vn=(0,ae.Z)((0,ae.Z)({},zt.props),zt.state),Hn=je(vn,le);if(!(Hn!==0&&!Hn)&&(Ct===!0?zt.slideHandler(Hn,Ct):zt.slideHandler(Hn),zt.props.autoplay&&zt.autoPlay("update"),zt.props.focusOnSelect)){var Qt=zt.list.querySelectorAll(".slick-current");Qt[0]&&Qt[0].focus()}}),(0,de.Z)((0,ve.Z)(zt),"clickHandler",function(le){zt.clickable===!1&&(le.stopPropagation(),le.preventDefault()),zt.clickable=!0}),(0,de.Z)((0,ve.Z)(zt),"keyHandler",function(le){var Ct=Je(le,zt.props.accessibility,zt.props.rtl);Ct!==""&&zt.changeSlide({message:Ct})}),(0,de.Z)((0,ve.Z)(zt),"selectHandler",function(le){zt.changeSlide(le)}),(0,de.Z)((0,ve.Z)(zt),"disableBodyScroll",function(){var le=function(vn){vn=vn||window.event,vn.preventDefault&&vn.preventDefault(),vn.returnValue=!1};window.ontouchmove=le}),(0,de.Z)((0,ve.Z)(zt),"enableBodyScroll",function(){window.ontouchmove=null}),(0,de.Z)((0,ve.Z)(zt),"swipeStart",function(le){zt.props.verticalSwiping&&zt.disableBodyScroll();var Ct=Cn(le,zt.props.swipe,zt.props.draggable);Ct!==""&&zt.setState(Ct)}),(0,de.Z)((0,ve.Z)(zt),"swipeMove",function(le){var Ct=hn(le,(0,ae.Z)((0,ae.Z)((0,ae.Z)({},zt.props),zt.state),{},{trackRef:zt.track,listRef:zt.list,slideIndex:zt.state.currentSlide}));Ct&&(Ct.swiping&&(zt.clickable=!1),zt.setState(Ct))}),(0,de.Z)((0,ve.Z)(zt),"swipeEnd",function(le){var Ct=Xn(le,(0,ae.Z)((0,ae.Z)((0,ae.Z)({},zt.props),zt.state),{},{trackRef:zt.track,listRef:zt.list,slideIndex:zt.state.currentSlide}));if(Ct){var vn=Ct.triggerSlideHandler;delete Ct.triggerSlideHandler,zt.setState(Ct),vn!==void 0&&(zt.slideHandler(vn),zt.props.verticalSwiping&&zt.enableBodyScroll())}}),(0,de.Z)((0,ve.Z)(zt),"touchEnd",function(le){zt.swipeEnd(le),zt.clickable=!0}),(0,de.Z)((0,ve.Z)(zt),"slickPrev",function(){zt.callbackTimers.push(setTimeout(function(){return zt.changeSlide({message:"previous"})},0))}),(0,de.Z)((0,ve.Z)(zt),"slickNext",function(){zt.callbackTimers.push(setTimeout(function(){return zt.changeSlide({message:"next"})},0))}),(0,de.Z)((0,ve.Z)(zt),"slickGoTo",function(le){var Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(le=Number(le),isNaN(le))return"";zt.callbackTimers.push(setTimeout(function(){return zt.changeSlide({message:"index",index:le,currentSlide:zt.state.currentSlide},Ct)},0))}),(0,de.Z)((0,ve.Z)(zt),"play",function(){var le;if(zt.props.rtl)le=zt.state.currentSlide-zt.props.slidesToScroll;else if(Me((0,ae.Z)((0,ae.Z)({},zt.props),zt.state)))le=zt.state.currentSlide+zt.props.slidesToScroll;else return!1;zt.slideHandler(le)}),(0,de.Z)((0,ve.Z)(zt),"autoPlay",function(le){zt.autoplayTimer&&clearInterval(zt.autoplayTimer);var Ct=zt.state.autoplaying;if(le==="update"){if(Ct==="hovered"||Ct==="focused"||Ct==="paused")return}else if(le==="leave"){if(Ct==="paused"||Ct==="focused")return}else if(le==="blur"&&(Ct==="paused"||Ct==="hovered"))return;zt.autoplayTimer=setInterval(zt.play,zt.props.autoplaySpeed+50),zt.setState({autoplaying:"playing"})}),(0,de.Z)((0,ve.Z)(zt),"pause",function(le){zt.autoplayTimer&&(clearInterval(zt.autoplayTimer),zt.autoplayTimer=null);var Ct=zt.state.autoplaying;le==="paused"?zt.setState({autoplaying:"paused"}):le==="focused"?(Ct==="hovered"||Ct==="playing")&&zt.setState({autoplaying:"focused"}):Ct==="playing"&&zt.setState({autoplaying:"hovered"})}),(0,de.Z)((0,ve.Z)(zt),"onDotsOver",function(){return zt.props.autoplay&&zt.pause("hovered")}),(0,de.Z)((0,ve.Z)(zt),"onDotsLeave",function(){return zt.props.autoplay&&zt.state.autoplaying==="hovered"&&zt.autoPlay("leave")}),(0,de.Z)((0,ve.Z)(zt),"onTrackOver",function(){return zt.props.autoplay&&zt.pause("hovered")}),(0,de.Z)((0,ve.Z)(zt),"onTrackLeave",function(){return zt.props.autoplay&&zt.state.autoplaying==="hovered"&&zt.autoPlay("leave")}),(0,de.Z)((0,ve.Z)(zt),"onSlideFocus",function(){return zt.props.autoplay&&zt.pause("focused")}),(0,de.Z)((0,ve.Z)(zt),"onSlideBlur",function(){return zt.props.autoplay&&zt.state.autoplaying==="focused"&&zt.autoPlay("blur")}),(0,de.Z)((0,ve.Z)(zt),"render",function(){var le=et()("slick-slider",zt.props.className,{"slick-vertical":zt.props.vertical,"slick-initialized":!0}),Ct=(0,ae.Z)((0,ae.Z)({},zt.props),zt.state),vn=pe(Ct,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),Hn=zt.props.pauseOnHover;vn=(0,ae.Z)((0,ae.Z)({},vn),{},{onMouseEnter:Hn?zt.onTrackOver:null,onMouseLeave:Hn?zt.onTrackLeave:null,onMouseOver:Hn?zt.onTrackOver:null,focusOnSelect:zt.props.focusOnSelect&&zt.clickable?zt.selectHandler:null});var Qt;if(zt.props.dots===!0&&zt.state.slideCount>=zt.props.slidesToShow){var Te=pe(Ct,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),Re=zt.props.pauseOnDotsHover;Te=(0,ae.Z)((0,ae.Z)({},Te),{},{clickHandler:zt.changeSlide,onMouseEnter:Re?zt.onDotsLeave:null,onMouseOver:Re?zt.onDotsOver:null,onMouseLeave:Re?zt.onDotsLeave:null}),Qt=ot.createElement(we,Te)}var _e,me,en=pe(Ct,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);en.clickHandler=zt.changeSlide,zt.props.arrows&&(_e=ot.createElement(Ee,en),me=ot.createElement(ke,en));var te=null;zt.props.vertical&&(te={height:zt.state.listHeight});var Yt=null;zt.props.vertical===!1?zt.props.centerMode===!0&&(Yt={padding:"0px "+zt.props.centerPadding}):zt.props.centerMode===!0&&(Yt={padding:zt.props.centerPadding+" 0px"});var Vt=(0,ae.Z)((0,ae.Z)({},te),Yt),Ve=zt.props.touchMove,an={className:"slick-list",style:Vt,onClick:zt.clickHandler,onMouseDown:Ve?zt.swipeStart:null,onMouseMove:zt.state.dragging&&Ve?zt.swipeMove:null,onMouseUp:Ve?zt.swipeEnd:null,onMouseLeave:zt.state.dragging&&Ve?zt.swipeEnd:null,onTouchStart:Ve?zt.swipeStart:null,onTouchMove:zt.state.dragging&&Ve?zt.swipeMove:null,onTouchEnd:Ve?zt.touchEnd:null,onTouchCancel:zt.state.dragging&&Ve?zt.swipeEnd:null,onKeyDown:zt.props.accessibility?zt.keyHandler:null},pn={className:le,dir:"ltr",style:zt.props.style};return zt.props.unslick&&(an={className:"slick-list"},pn={className:le,style:zt.props.style}),ot.createElement("div",pn,zt.props.unslick?"":_e,ot.createElement("div",(0,Tt.Z)({ref:zt.listRefHandler},an),ot.createElement(ce,(0,Tt.Z)({ref:zt.trackRefHandler},vn),zt.props.children)),zt.props.unslick?"":me,zt.props.unslick?"":Qt)}),zt.list=null,zt.track=null,zt.state=(0,ae.Z)((0,ae.Z)({},He),{},{currentSlide:zt.props.initialSlide,slideCount:ot.Children.count(zt.props.children)}),zt.callbackTimers=[],zt.clickable=!0,zt.debouncedResize=null;var Mn=zt.ssrInit();return zt.state=(0,ae.Z)((0,ae.Z)({},zt.state),Mn),zt}return(0,fe.Z)(tn,[{key:"didPropsChange",value:function(zt){for(var Mn=!1,le=0,Ct=Object.keys(this.props);le1&&arguments[1]!==void 0?arguments[1]:!1;return zt.innerSlider.slickGoTo(Mn,le)}),(0,de.Z)((0,ve.Z)(zt),"slickPause",function(){return zt.innerSlider.pause("paused")}),(0,de.Z)((0,ve.Z)(zt),"slickPlay",function(){return zt.innerSlider.autoPlay("play")}),zt.state={breakpoint:null},zt._responsiveMediaHandlers=[],zt}return(0,fe.Z)(tn,[{key:"media",value:function(zt,Mn){var le=window.matchMedia(zt),Ct=function(Hn){var Qt=Hn.matches;Qt&&Mn()};le.addListener(Ct),Ct(le),this._responsiveMediaHandlers.push({mql:le,query:zt,listener:Ct})}},{key:"componentDidMount",value:function(){var zt=this;if(this.props.responsive){var Mn=this.props.responsive.map(function(Ct){return Ct.breakpoint});Mn.sort(function(Ct,vn){return Ct-vn}),Mn.forEach(function(Ct,vn){var Hn;vn===0?Hn=Bt()({minWidth:0,maxWidth:Ct}):Hn=Bt()({minWidth:Mn[vn-1]+1,maxWidth:Ct}),wn()&&zt.media(Hn,function(){zt.setState({breakpoint:Ct})})});var le=Bt()({minWidth:Mn.slice(-1)[0]});wn()&&this.media(le,function(){zt.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(zt){zt.mql.removeListener(zt.listener)})}},{key:"render",value:function(){var zt=this,Mn,le;this.state.breakpoint?(le=this.props.responsive.filter(function(te){return te.breakpoint===zt.state.breakpoint}),Mn=le[0].settings==="unslick"?"unslick":(0,ae.Z)((0,ae.Z)((0,ae.Z)({},Mt),this.props),le[0].settings)):Mn=(0,ae.Z)((0,ae.Z)({},Mt),this.props),Mn.centerMode&&(Mn.slidesToScroll>1,Mn.slidesToScroll=1),Mn.fade&&(Mn.slidesToShow>1,Mn.slidesToScroll>1,Mn.slidesToShow=1,Mn.slidesToScroll=1);var Ct=ot.Children.toArray(this.props.children);Ct=Ct.filter(function(te){return typeof te=="string"?!!te.trim():!!te}),Mn.variableWidth&&(Mn.rows>1||Mn.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),Mn.variableWidth=!1);for(var vn=[],Hn=null,Qt=0;Qt=Ct.length));me+=1)_e.push(ot.cloneElement(Ct[me],{key:100*Qt+10*Re+me,tabIndex:-1,style:{width:"".concat(100/Mn.slidesPerRow,"%"),display:"inline-block"}}));Te.push(ot.createElement("div",{key:10*Qt+Re},_e))}Mn.variableWidth?vn.push(ot.createElement("div",{key:Qt,style:{width:Hn}},Te)):vn.push(ot.createElement("div",{key:Qt},Te))}if(Mn==="unslick"){var en="regular slider "+(this.props.className||"");return ot.createElement("div",{className:en},Ct)}else vn.length<=Mn.slidesToShow&&(Mn.unslick=!0);return ot.createElement(wt,(0,Tt.Z)({style:this.props.style,ref:this.innerSliderRefHandler},Mn),vn)}}]),tn}(ot.Component),En=Ae,Rn=St(36355),Pn=St(17313),$n=St(83116),xi=St(37613);const Fi=qn=>{const{componentCls:$t,antCls:tn,carouselArrowSize:Jn,carouselDotOffset:zt,marginXXS:Mn}=qn,le=-Jn*1.25,Ct=Mn;return{[$t]:Object.assign(Object.assign({},(0,Pn.Wf)(qn)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${tn}-radio-input, input${tn}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${tn}-radio-input, input${tn}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"},".slick-arrow.slick-hidden":{display:"none"},".slick-prev, .slick-next":{position:"absolute",top:"50%",display:"block",width:Jn,height:Jn,marginTop:-Jn/2,padding:0,color:"transparent",fontSize:0,lineHeight:0,background:"transparent",border:0,outline:"none",cursor:"pointer","&:hover, &:focus":{color:"transparent",background:"transparent",outline:"none","&::before":{opacity:1}},"&.slick-disabled::before":{opacity:.25}},".slick-prev":{insetInlineStart:le,"&::before":{content:'"\u2190"'}},".slick-next":{insetInlineEnd:le,"&::before":{content:'"\u2192"'}},".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,margin:0,listStyle:"none","&-bottom":{bottom:zt},"&-top":{top:zt,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:qn.dotWidth,height:qn.dotHeight,marginInline:Ct,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${qn.motionDurationSlow}`,button:{position:"relative",display:"block",width:"100%",height:qn.dotHeight,padding:0,color:"transparent",fontSize:0,background:qn.colorBgContainer,border:0,borderRadius:1,outline:"none",cursor:"pointer",opacity:.3,transition:`all ${qn.motionDurationSlow}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:"absolute",inset:-Ct,content:'""'}},"&.slick-active":{width:qn.dotActiveWidth,"& button":{background:qn.colorBgContainer,opacity:1},"&: hover, &:focus":{opacity:1}}}}})}},Bi=qn=>{const{componentCls:$t,carouselDotOffset:tn,marginXXS:Jn}=qn,zt={width:qn.dotHeight,height:qn.dotWidth};return{[`${$t}-vertical`]:{".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:qn.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:tn},"&-right":{insetInlineEnd:tn,insetInlineStart:"auto"},li:Object.assign(Object.assign({},zt),{margin:`${Jn}px 0`,verticalAlign:"baseline",button:zt,"&.slick-active":Object.assign(Object.assign({},zt),{button:zt})})}}}},Ji=qn=>{const{componentCls:$t}=qn;return[{[`${$t}-rtl`]:{direction:"rtl",".slick-dots":{[`${$t}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${$t}-vertical`]:{".slick-dots":{[`${$t}-rtl&`]:{flexDirection:"column"}}}}]};var ro=(0,$n.Z)("Carousel",qn=>{const{controlHeightLG:$t,controlHeightSM:tn}=qn,Jn=(0,xi.TS)(qn,{carouselArrowSize:$t/2,carouselDotOffset:tn/2});return[Fi(Jn),Bi(Jn),Ji(Jn)]},()=>({dotWidth:16,dotHeight:3,dotWidthActive:24,dotActiveWidth:24}),{deprecatedTokens:[["dotWidthActive","dotActiveWidth"]]}),Eo=function(qn,$t){var tn={};for(var Jn in qn)Object.prototype.hasOwnProperty.call(qn,Jn)&&$t.indexOf(Jn)<0&&(tn[Jn]=qn[Jn]);if(qn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,Jn=Object.getOwnPropertySymbols(qn);zt{const{dots:tn=!0,arrows:Jn=!1,draggable:zt=!1,waitForAnimate:Mn=!1,dotPosition:le="bottom",vertical:Ct=le==="left"||le==="right",rootClassName:vn,className:Hn,style:Qt,id:Te}=qn,Re=Eo(qn,["dots","arrows","draggable","waitForAnimate","dotPosition","vertical","rootClassName","className","style","id"]),{getPrefixCls:_e,direction:me,carousel:en}=ot.useContext(Rn.E_),te=ot.useRef(),Yt=function(Xt){let dn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;te.current.slickGoTo(Xt,dn)};ot.useImperativeHandle($t,()=>({goTo:Yt,autoPlay:te.current.innerSlider.autoPlay,innerSlider:te.current.innerSlider,prev:te.current.slickPrev,next:te.current.slickNext}),[te.current]);const Vt=ot.useRef(ot.Children.count(qn.children));ot.useEffect(()=>{Vt.current!==ot.Children.count(qn.children)&&(Yt(qn.initialSlide||0,!1),Vt.current=ot.Children.count(qn.children))},[qn.children]);const Ve=Object.assign({vertical:Ct,className:et()(Hn,en==null?void 0:en.className),style:Object.assign(Object.assign({},en==null?void 0:en.style),Qt)},Re);Ve.effect==="fade"&&(Ve.fade=!0);const an=_e("carousel",Ve.prefixCls),pn="slick-dots",We=!!tn,Sn=et()(pn,`${pn}-${le}`,typeof tn=="boolean"?!1:tn==null?void 0:tn.className),[ai,gn]=ro(an),Qe=et()(an,{[`${an}-rtl`]:me==="rtl",[`${an}-vertical`]:Ve.vertical},gn,vn);return ai(ot.createElement("div",{className:Qe,id:Te},ot.createElement(En,Object.assign({ref:te},Ve,{dots:We,dotsClass:Sn,arrows:Jn,draggable:zt,verticalSwiping:Ct,waitForAnimate:Mn}))))})},19842:function(un,Yn,St){"use strict";St.d(Yn,{Z:function(){return Hn}});var ot=St(80702),Tt=St(59301),ae=St(33853),$e=St(58617),fe=St(38819),ve=St(92310),qt=St.n(ve),Oe=St(72308),de=St(52487),Ce=St(74416),xe=St(77861),ze=St(17115),He=St(90782),Ft=St(6089),nt=St(18929),et=Tt.createContext(null),ct=et,ut=St(62853),pt=St(49618),yt=St(77321),Pt="__rc_cascader_search_mark__",bt=function(Te,Re,_e){var me=_e.label;return Re.some(function(en){return String(en[me]).toLowerCase().includes(Te.toLowerCase())})},Rt=function(Te,Re,_e,me){return Re.map(function(en){return en[me.label]}).join(" / ")},Ut=function(Qt,Te,Re,_e,me,en){var te=me.filter,Yt=te===void 0?bt:te,Vt=me.render,Ve=Vt===void 0?Rt:Vt,an=me.limit,pn=an===void 0?50:an,We=me.sort;return Tt.useMemo(function(){var Sn=[];if(!Qt)return[];function ai(gn,Qe){var Xt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;gn.forEach(function(dn){if(!(!We&&pn!==!1&&pn>0&&Sn.length>=pn)){var De=[].concat((0,ot.Z)(Qe),[dn]),Xe=dn[Re.children],he=Xt||dn.disabled;if((!Xe||Xe.length===0||en)&&Yt(Qt,De,{label:Re.label})){var Pe;Sn.push((0,yt.Z)((0,yt.Z)({},dn),{},(Pe={disabled:he},(0,pt.Z)(Pe,Re.label,Ve(Qt,De,_e,Re)),(0,pt.Z)(Pe,Pt,De),(0,pt.Z)(Pe,Re.children,void 0),Pe)))}Xe&&ai(dn[Re.children],De,he)}})}return ai(Te,[]),We&&Sn.sort(function(gn,Qe){return We(gn[Pt],Qe[Pt],Qt,Re)}),pn!==!1&&pn>0?Sn.slice(0,pn):Sn},[Qt,Te,Re,_e,Ve,en,Yt,We,pn])},ee="__RC_CASCADER_SPLIT__",re="SHOW_PARENT",ie="SHOW_CHILD";function Me(Qt){return Qt.join(ee)}function pe(Qt){return Qt.map(Me)}function Le(Qt){return Qt.split(ee)}function ge(Qt){var Te=Qt||{},Re=Te.label,_e=Te.value,me=Te.children,en=_e||"value";return{label:Re||"label",value:en,key:en,children:me||"children"}}function je(Qt,Te){var Re,_e;return(Re=Qt.isLeaf)!==null&&Re!==void 0?Re:!((_e=Qt[Te.children])!==null&&_e!==void 0&&_e.length)}function Je(Qt){var Te=Qt.parentElement;if(Te){var Re=Qt.offsetTop-Te.offsetTop;Re-Te.scrollTop<0?Te.scrollTo({top:Re}):Re+Qt.offsetHeight-Te.scrollTop>Te.offsetHeight&&Te.scrollTo({top:Re+Qt.offsetHeight-Te.offsetHeight})}}function Cn(Qt,Te){return Qt.map(function(Re){var _e;return(_e=Re[Pt])===null||_e===void 0?void 0:_e.map(function(me){return me[Te.value]})})}function hn(Qt,Te,Re){var _e=new Set(Qt),me=Te();return Qt.filter(function(en){var te=me[en],Yt=te?te.parent:null,Vt=te?te.children:null;return te&&te.node.disabled?!0:Re===ie?!(Vt&&Vt.some(function(Ve){return Ve.key&&_e.has(Ve.key)})):!(Yt&&!Yt.node.disabled&&_e.has(Yt.key))})}function Xn(Qt,Te,Re){for(var _e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,me=Te,en=[],te=function(){var Ve,an,pn,We=Qt[Yt],Sn=(Ve=me)===null||Ve===void 0?void 0:Ve.findIndex(function(gn){var Qe=gn[Re.value];return _e?String(Qe)===String(We):Qe===We}),ai=Sn!==-1?(an=me)===null||an===void 0?void 0:an[Sn]:null;en.push({value:(pn=ai==null?void 0:ai[Re.value])!==null&&pn!==void 0?pn:We,index:Sn,option:ai}),me=ai==null?void 0:ai[Re.children]},Yt=0;Yt1){var fn=ai.slice(0,-1);dn(fn)}else Ve(!1)},he=function(){var fn,Di=((fn=Qe[gn])===null||fn===void 0?void 0:fn[Re.children])||[],oi=Di.find(function(Bn){return!Bn.disabled});if(oi){var ii=[].concat((0,ot.Z)(ai),[oi[Re.value]]);dn(ii)}};Tt.useImperativeHandle(Qt,function(){return{onKeyDown:function(fn){var Di=fn.which;switch(Di){case cn.Z.UP:case cn.Z.DOWN:{var oi=0;Di===cn.Z.UP?oi=-1:Di===cn.Z.DOWN&&(oi=1),oi!==0&&De(oi);break}case cn.Z.LEFT:{if(Vt)break;pn?he():Xe();break}case cn.Z.RIGHT:{if(Vt)break;pn?Xe():he();break}case cn.Z.BACKSPACE:{Vt||Xe();break}case cn.Z.ENTER:{if(ai.length){var ii=Qe[gn],Bn=(ii==null?void 0:ii[Pt])||[];Bn.length?en(Bn.map(function(Kn){return Kn[Re.value]}),Bn[Bn.length-1]):en(ai,Qe[gn])}break}case cn.Z.ESC:Ve(!1),an&&fn.stopPropagation()}},onKeyUp:function(){}}})},Fn=Tt.forwardRef(function(Qt,Te){var Re,_e,me,en,te=(0,xe.lk)(),Yt=te.prefixCls,Vt=te.multiple,Ve=te.searchValue,an=te.toggleOpen,pn=te.notFoundContent,We=te.direction,Sn=te.open,ai=Tt.useRef(),gn=We==="rtl",Qe=Tt.useContext(ct),Xt=Qe.options,dn=Qe.values,De=Qe.halfValues,Xe=Qe.fieldNames,he=Qe.changeOnSelect,Pe=Qe.onSelect,fn=Qe.searchOptions,Di=Qe.dropdownPrefixCls,oi=Qe.loadData,ii=Qe.expandTrigger,Bn=Di||Yt,Kn=Tt.useState([]),ki=(0,de.Z)(Kn,2),bi=ki[0],Hi=ki[1],yn=function(Ao){if(!(!oi||Ve)){var Uo=Xn(Ao,Xt,Xe),So=Uo.map(function(Po){var eo=Po.option;return eo}),di=So[So.length-1];if(di&&!je(di,Xe)){var _i=Me(Ao);Hi(function(Po){return[].concat((0,ot.Z)(Po),[_i])}),oi(So)}}};Tt.useEffect(function(){bi.length&&bi.forEach(function(Mo){var Ao=Le(Mo),Uo=Xn(Ao,Xt,Xe,!0).map(function(di){var _i=di.option;return _i}),So=Uo[Uo.length-1];(!So||So[Xe.children]||je(So,Xe))&&Hi(function(di){return di.filter(function(_i){return _i!==Mo})})})},[Xt,bi,Xe]);var uo=Tt.useMemo(function(){return new Set(pe(dn))},[dn]),Qi=Tt.useMemo(function(){return new Set(pe(De))},[De]),io=oe(),sn=(0,de.Z)(io,2),Gn=sn[0],wi=sn[1],ji=function(Ao){wi(Ao),yn(Ao)},Ci=function(Ao){var Uo=Ao.disabled,So=je(Ao,Xe);return!Uo&&(So||he||Vt)},Ui=function(Ao,Uo){var So=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Pe(Ao),!Vt&&(Uo||he&&(ii==="hover"||So))&&an(!1)},so=Tt.useMemo(function(){return Ve?fn:Xt},[Ve,fn,Xt]),zi=Tt.useMemo(function(){for(var Mo=[{options:so}],Ao=so,Uo=Cn(Ao,Xe),So=function(){var eo=Gn[di],hi=Ao.find(function(lr,Yo){return(Uo[Yo]?Me(Uo[Yo]):lr[Xe.value])===eo}),Ot=hi==null?void 0:hi[Xe.children];if(!(Ot!=null&&Ot.length))return"break";Ao=Ot,Mo.push({options:Ot})},di=0;di":bi,yn=Qt.loadingIcon,uo=Qt.children,Qi=Qt.dropdownMatchSelectWidth,io=Qi===void 0?!1:Qi,sn=Qt.showCheckedStrategy,Gn=sn===void 0?re:sn,wi=(0,Ce.Z)(Qt,Kt),ji=(0,ze.ZP)(Re),Ci=!!pn,Ui=(0,nt.Z)(te,{value:Yt,postState:Ee}),so=(0,de.Z)(Ui,2),zi=so[0],Ei=so[1],Ki=Tt.useMemo(function(){return ge(en)},[JSON.stringify(en)]),Ln=Tt.useMemo(function(){return dn||[]},[dn]),ho=Ye(Ln,Ki),bn=Tt.useCallback(function(Oi){var po=ho();return Oi.map(function(co){var or=po[co].nodes;return or.map(function(ia){return ia[Ki.value]})})},[ho,Ki]),ao=(0,nt.Z)("",{value:ai,postState:function(po){return po||""}}),Mo=(0,de.Z)(ao,2),Ao=Mo[0],Uo=Mo[1],So=function(po,co){Uo(po),co.source!=="blur"&&gn&&gn(po)},di=Be(Qe),_i=(0,de.Z)(di,2),Po=_i[0],eo=_i[1],hi=Ut(Ao,Ln,Ki,De||me,eo,Vt),Ot=kn(Ln,Ki),lr=Tt.useMemo(function(){var Oi=Ot(zi),po=(0,de.Z)(Oi,2),co=po[0],or=po[1];if(!Ci||!zi.length)return[co,[],or];var ia=pe(co),ha=ho(),ga=(0,He.S)(ia,!0,ha),on=ga.checkedKeys,ca=ga.halfCheckedKeys;return[bn(on),bn(ca),or]},[Ci,zi,ho,bn,Ot]),Yo=(0,de.Z)(lr,3),tr=Yo[0],_t=Yo[1],Zn=Yo[2],si=Tt.useMemo(function(){var Oi=pe(tr),po=hn(Oi,ho,Gn);return[].concat((0,ot.Z)(Zn),(0,ot.Z)(bn(po)))},[tr,ho,bn,Zn,Gn]),Ii=Fe(si,Ln,Ki,Ci,an),_n=(0,Ft.Z)(function(Oi){if(Ei(Oi),Ve){var po=Ee(Oi),co=po.map(function(ha){return Xn(ha,Ln,Ki).map(function(ga){return ga.option})}),or=Ci?po:po[0],ia=Ci?co:co[0];Ve(or,ia)}}),Ai=(0,Ft.Z)(function(Oi){if((!Ci||Sn)&&Uo(""),!Ci)_n(Oi);else{var po=Me(Oi),co=pe(tr),or=pe(_t),ia=co.includes(po),ha=Zn.some(function(gr){return Me(gr)===po}),ga=tr,on=Zn;if(ha&&!ia)on=Zn.filter(function(gr){return Me(gr)!==po});else{var ca=ia?co.filter(function(gr){return gr!==po}):[].concat((0,ot.Z)(co),[po]),Ks=ho(),_a;if(ia){var Ll=(0,He.S)(ca,{checked:!1,halfCheckedKeys:or},Ks);_a=Ll.checkedKeys}else{var Yr=(0,He.S)(ca,!0,Ks);_a=Yr.checkedKeys}var Fs=hn(_a,ho,Gn);ga=bn(Fs)}_n([].concat((0,ot.Z)(on),(0,ot.Z)(ga)))}}),pi=function(po,co){if(co.type==="clear"){_n([]);return}var or=co.values[0],ia=or.valueCells;Ai(ia)},mi=Pe!==void 0?Pe:he,ei=Di||fn,gi=Bn||ii,Nn=function(po){Kn==null||Kn(po),ki==null||ki(po)},Pi=Tt.useMemo(function(){return{options:Ln,fieldNames:Ki,values:tr,halfValues:_t,changeOnSelect:Vt,onSelect:Ai,checkable:pn,searchOptions:hi,dropdownPrefixCls:De,loadData:Xe,expandTrigger:Xt,expandIcon:Hi,loadingIcon:yn,dropdownMenuColumnStyle:oi}},[Ln,Ki,tr,_t,Vt,Ai,pn,hi,De,Xe,Xt,Hi,yn,oi]),Wi=!(Ao?hi:Ln).length,Ni=Ao&&eo.matchInputWidth||Wi?{}:{minWidth:"auto"};return Tt.createElement(ct.Provider,{value:Pi},Tt.createElement(xe.Ac,(0,Oe.Z)({},wi,{ref:Te,id:ji,prefixCls:me,autoClearSearchValue:Sn,dropdownMatchSelectWidth:io,dropdownStyle:Ni,displayValues:Ii,onDisplayValuesChange:pi,mode:Ci?"multiple":void 0,searchValue:Ao,onSearch:So,showSearch:Po,OptionList:mn,emptyOptions:Wi,open:mi,dropdownClassName:ei,placement:gi,onDropdownVisibleChange:Nn,getRawInputElement:function(){return uo}})))});ke.SHOW_PARENT=re,ke.SHOW_CHILD=ie;var ln=ke,Dt=ln,wt=St(2738),At=St(62892),Bt=St(53487),jt=St(19080),Mt=St(36355),Ae=St(93891),En=St(1684),Rn=St(19716),Pn=St(32441),$n=St(14154),xi=St(58582),Fi=St(84443),Bi=St(66339),Ji=St(33234),ro=St(98447),Eo=St(17313),Zo=St(74207),Lo=St(83116);const qn=Qt=>{const{prefixCls:Te,componentCls:Re,antCls:_e}=Qt,me=`${Re}-menu-item`,en=` &${me}-expand ${me}-expand-icon, ${me}-loading-icon `;return[{[Re]:{width:Qt.controlWidth}},{[`${Re}-dropdown`]:[(0,ro.C2)(`${Te}-checkbox`,Qt),{[`&${_e}-select-dropdown`]:{padding:0}},{[Re]:{"&-checkbox":{top:0,marginInlineEnd:Qt.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Re}-menu-empty`]:{[`${Re}-menu`]:{width:"100%",height:"auto",[me]:{color:Qt.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:Qt.controlItemWidth,height:Qt.dropdownHeight,margin:0,padding:Qt.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${Qt.lineWidth}px ${Qt.lineType} ${Qt.colorSplit}`},"&-item":Object.assign(Object.assign({},Eo.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:Qt.optionPadding,lineHeight:Qt.lineHeight,cursor:"pointer",transition:`all ${Qt.motionDurationMid}`,borderRadius:Qt.borderRadiusSM,"&:hover":{background:Qt.controlItemBgHover},"&-disabled":{color:Qt.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[en]:{color:Qt.colorTextDisabled}},[`&-active:not(${me}-disabled)`]:{"&, &:hover":{fontWeight:Qt.optionSelectedFontWeight,backgroundColor:Qt.optionSelectedBg}},"&-content":{flex:"auto"},[en]:{marginInlineStart:Qt.paddingXXS,color:Qt.colorTextDescription,fontSize:Qt.fontSizeIcon},"&-keyword":{color:Qt.colorHighlight}})}}}]},{[`${Re}-dropdown-rtl`]:{direction:"rtl"}},(0,Zo.c)(Qt)]};var $t=(0,Lo.Z)("Cascader",Qt=>[qn(Qt)],Qt=>{const Te=Math.round((Qt.controlHeight-Qt.fontSize*Qt.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:Qt.controlItemBgActive,optionSelectedFontWeight:Qt.fontWeightStrong,optionPadding:`${Te}px ${Qt.paddingSM}px`,menuPadding:Qt.paddingXXS}}),tn=function(Qt,Te){var Re={};for(var _e in Qt)Object.prototype.hasOwnProperty.call(Qt,_e)&&Te.indexOf(_e)<0&&(Re[_e]=Qt[_e]);if(Qt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,_e=Object.getOwnPropertySymbols(Qt);me<_e.length;me++)Te.indexOf(_e[me])<0&&Object.prototype.propertyIsEnumerable.call(Qt,_e[me])&&(Re[_e[me]]=Qt[_e[me]]);return Re};const{SHOW_CHILD:Jn,SHOW_PARENT:zt}=Dt;function Mn(Qt,Te,Re){const _e=Qt.toLowerCase().split(Te).reduce((te,Yt,Vt)=>Vt===0?[Yt]:[].concat((0,ot.Z)(te),[Te,Yt]),[]),me=[];let en=0;return _e.forEach((te,Yt)=>{const Vt=en+te.length;let Ve=Qt.slice(en,Vt);en=Vt,Yt%2===1&&(Ve=Tt.createElement("span",{className:`${Re}-menu-item-keyword`,key:`separator-${Yt}`},Ve)),me.push(Ve)}),me}const le=(Qt,Te,Re,_e)=>{const me=[],en=Qt.toLowerCase();return Te.forEach((te,Yt)=>{Yt!==0&&me.push(" / ");let Vt=te[_e.label];const Ve=typeof Vt;(Ve==="string"||Ve==="number")&&(Vt=Mn(String(Vt),en,Re)),me.push(Vt)}),me},Ct=Tt.forwardRef((Qt,Te)=>{const{prefixCls:Re,size:_e,disabled:me,className:en,rootClassName:te,multiple:Yt,bordered:Vt=!0,transitionName:Ve,choiceTransitionName:an="",popupClassName:pn,dropdownClassName:We,expandIcon:Sn,placement:ai,showSearch:gn,allowClear:Qe=!0,notFoundContent:Xt,direction:dn,getPopupContainer:De,status:Xe,showArrow:he,builtinPlacements:Pe,style:fn}=Qt,Di=tn(Qt,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),oi=(0,wt.Z)(Di,["suffixIcon"]),{getPopupContainer:ii,getPrefixCls:Bn,renderEmpty:Kn,direction:ki,popupOverflow:bi,cascader:Hi}=Tt.useContext(Mt.E_),yn=dn||ki,uo=yn==="rtl",{status:Qi,hasFeedback:io,isFormItemInput:sn,feedbackIcon:Gn}=Tt.useContext(Pn.aM),wi=(0,jt.F)(Qi,Xe),ji=Xt||(Kn==null?void 0:Kn("Cascader"))||Tt.createElement(Ae.Z,{componentName:"Cascader"}),Ci=Bn(),Ui=Bn("select",Re),so=Bn("cascader",Re),[zi,Ei]=(0,$n.Z)(Ui),[Ki]=$t(so),{compactSize:Ln,compactItemClassnames:ho}=(0,Ji.ri)(Ui,dn),bn=qt()(pn||We,`${so}-dropdown`,{[`${so}-dropdown-rtl`]:yn==="rtl"},te,Ei),ao=Tt.useMemo(()=>{if(!gn)return gn;let Zn={render:le};return typeof gn=="object"&&(Zn=Object.assign(Object.assign({},Zn),gn)),Zn},[gn]),Mo=(0,Rn.Z)(Zn=>{var si;return(si=_e!=null?_e:Ln)!==null&&si!==void 0?si:Zn}),Ao=Tt.useContext(En.Z),Uo=me!=null?me:Ao;let So=Sn;Sn||(So=uo?Tt.createElement(ae.Z,null):Tt.createElement(fe.Z,null));const di=Tt.createElement("span",{className:`${Ui}-menu-item-loading-icon`},Tt.createElement($e.Z,{spin:!0})),_i=Tt.useMemo(()=>Yt?Tt.createElement("span",{className:`${so}-checkbox-inner`}):!1,[Yt]),Po=(0,Fi.Z)(Qt.suffixIcon,he),{suffixIcon:eo,removeIcon:hi,clearIcon:Ot}=(0,Bi.Z)(Object.assign(Object.assign({},Qt),{hasFeedback:io,feedbackIcon:Gn,showSuffixIcon:Po,multiple:Yt,prefixCls:Ui,componentName:"Cascader"})),lr=Tt.useMemo(()=>ai!==void 0?ai:uo?"bottomRight":"bottomLeft",[ai,uo]),Yo=(0,xi.Z)(Pe,bi),tr=Qe===!0?{clearIcon:Ot}:Qe,_t=Tt.createElement(Dt,Object.assign({prefixCls:Ui,className:qt()(!Re&&so,{[`${Ui}-lg`]:Mo==="large",[`${Ui}-sm`]:Mo==="small",[`${Ui}-rtl`]:uo,[`${Ui}-borderless`]:!Vt,[`${Ui}-in-form-item`]:sn},(0,jt.Z)(Ui,wi,io),ho,Hi==null?void 0:Hi.className,en,te,Ei),disabled:Uo,style:Object.assign(Object.assign({},Hi==null?void 0:Hi.style),fn)},oi,{builtinPlacements:Yo,direction:yn,placement:lr,notFoundContent:ji,allowClear:tr,showSearch:ao,expandIcon:So,suffixIcon:eo,removeIcon:hi,loadingIcon:di,checkable:_i,dropdownClassName:bn,dropdownPrefixCls:Re||so,choiceTransitionName:(0,At.m)(Ci,"",an),transitionName:(0,At.m)(Ci,"slide-up",Ve),getPopupContainer:De||ii,ref:Te}));return Ki(zi(_t))}),vn=(0,Bt.Z)(Ct);Ct.SHOW_PARENT=zt,Ct.SHOW_CHILD=Jn,Ct._InternalPanelDoNotUseOrYouWillBeFired=vn;var Hn=Ct},28103:function(un,Yn,St){"use strict";St.d(Yn,{Z:function(){return ze}});var ot=St(92310),Tt=St.n(ot),ae=St(59301),$e=St(36355),fe=St(17313),ve=St(83116),qt=St(37613);const Oe=He=>{const{componentCls:Ft,sizePaddingEdgeHorizontal:nt,colorSplit:et,lineWidth:ct,textPaddingInline:ut,orientationMargin:pt,verticalMarginInline:yt}=He;return{[Ft]:Object.assign(Object.assign({},(0,fe.Wf)(He)),{borderBlockStart:`${ct}px solid ${et}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:yt,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${ct}px solid ${et}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${He.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${Ft}-with-text`]:{display:"flex",alignItems:"center",margin:`${He.dividerHorizontalWithTextGutterMargin}px 0`,color:He.colorTextHeading,fontWeight:500,fontSize:He.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${et}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${ct}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${Ft}-with-text-left`]:{"&::before":{width:`${pt*100}%`},"&::after":{width:`${100-pt*100}%`}},[`&-horizontal${Ft}-with-text-right`]:{"&::before":{width:`${100-pt*100}%`},"&::after":{width:`${pt*100}%`}},[`${Ft}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:ut},"&-dashed":{background:"none",borderColor:et,borderStyle:"dashed",borderWidth:`${ct}px 0 0`},[`&-horizontal${Ft}-with-text${Ft}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${Ft}-dashed`]:{borderInlineStartWidth:ct,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${Ft}-with-text`]:{color:He.colorText,fontWeight:"normal",fontSize:He.fontSize},[`&-horizontal${Ft}-with-text-left${Ft}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${Ft}-inner-text`]:{paddingInlineStart:nt}},[`&-horizontal${Ft}-with-text-right${Ft}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${Ft}-inner-text`]:{paddingInlineEnd:nt}}})}};var de=(0,ve.Z)("Divider",He=>{const Ft=(0,qt.TS)(He,{dividerHorizontalWithTextGutterMargin:He.margin,dividerHorizontalGutterMargin:He.marginLG,sizePaddingEdgeHorizontal:0});return[Oe(Ft)]},He=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:He.marginXS})),Ce=function(He,Ft){var nt={};for(var et in He)Object.prototype.hasOwnProperty.call(He,et)&&Ft.indexOf(et)<0&&(nt[et]=He[et]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,et=Object.getOwnPropertySymbols(He);ct{const{getPrefixCls:Ft,direction:nt,divider:et}=ae.useContext($e.E_),{prefixCls:ct,type:ut="horizontal",orientation:pt="center",orientationMargin:yt,className:Pt,rootClassName:bt,children:Rt,dashed:Ut,plain:ee,style:re}=He,ie=Ce(He,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Me=Ft("divider",ct),[pe,Le]=de(Me),ge=pt.length>0?`-${pt}`:pt,je=!!Rt,Je=pt==="left"&&yt!=null,Cn=pt==="right"&&yt!=null,hn=Tt()(Me,et==null?void 0:et.className,Le,`${Me}-${ut}`,{[`${Me}-with-text`]:je,[`${Me}-with-text${ge}`]:je,[`${Me}-dashed`]:!!Ut,[`${Me}-plain`]:!!ee,[`${Me}-rtl`]:nt==="rtl",[`${Me}-no-default-orientation-margin-left`]:Je,[`${Me}-no-default-orientation-margin-right`]:Cn},Pt,bt),Xn=ae.useMemo(()=>typeof yt=="number"?yt:/^\d+$/.test(yt)?Number(yt):yt,[yt]),Fe=Object.assign(Object.assign({},Je&&{marginLeft:Xn}),Cn&&{marginRight:Xn});return pe(ae.createElement("div",Object.assign({className:hn,style:Object.assign(Object.assign({},et==null?void 0:et.style),re)},ie,{role:"separator"}),Rt&&ut!=="vertical"&&ae.createElement("span",{className:`${Me}-inner-text`,style:Fe},Rt)))}},44e3:function(un,Yn,St){"use strict";var ot=St(84966),Tt=St(45818);const ae=ot.ZP;ae.Header=ot.h4,ae.Footer=ot.$_,ae.Content=ot.VY,ae.Sider=Tt.Z,Yn.default=ae},14478:function(un,Yn,St){"use strict";St.d(Yn,{Z:function(){return ie}});var ot=St(96512),Tt=St(92310),ae=St.n(Tt),$e=St(10228),fe=St(18929),ve=St(2738),qt=St(59301),Oe=St(92343),de=St(36355),Ce=St(60324),xe=St(92806),ze=St(77578),He=St(3113),Ft=St(67797),nt=St(9763),et=St(31724),ct=St(39722),ut=St(83116);const pt=Me=>{const{componentCls:pe,iconCls:Le,antCls:ge,zIndexPopup:je,colorText:Je,colorWarning:Cn,marginXXS:hn,marginXS:Xn,fontSize:Fe,fontWeightStrong:Zt,colorTextHeading:Ye}=Me;return{[pe]:{zIndex:je,[`&${ge}-popover`]:{fontSize:Fe},[`${pe}-message`]:{marginBottom:Xn,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${pe}-message-icon ${Le}`]:{color:Cn,fontSize:Fe,lineHeight:1,marginInlineEnd:Xn},[`${pe}-title`]:{fontWeight:Zt,color:Ye,"&:only-child":{fontWeight:"normal"}},[`${pe}-description`]:{marginTop:hn,color:Je}},[`${pe}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:Xn}}}}};var yt=(0,ut.Z)("Popconfirm",Me=>pt(Me),Me=>{const{zIndexPopupBase:pe}=Me;return{zIndexPopup:pe+60}},{resetStyle:!1}),Pt=function(Me,pe){var Le={};for(var ge in Me)Object.prototype.hasOwnProperty.call(Me,ge)&&pe.indexOf(ge)<0&&(Le[ge]=Me[ge]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,ge=Object.getOwnPropertySymbols(Me);je{const{prefixCls:pe,okButtonProps:Le,cancelButtonProps:ge,title:je,description:Je,cancelText:Cn,okText:hn,okType:Xn="primary",icon:Fe=qt.createElement(ot.Z,null),showCancel:Zt=!0,close:Ye,onConfirm:kn,onCancel:Tn,onPopupClick:Be}=Me,{getPrefixCls:be}=qt.useContext(de.E_),[Ke]=(0,nt.Z)("Popconfirm",et.Z.Popconfirm),jn=(0,ze.Z)(je),Wn=(0,ze.Z)(Je);return qt.createElement("div",{className:`${pe}-inner-content`,onClick:Be},qt.createElement("div",{className:`${pe}-message`},Fe&&qt.createElement("span",{className:`${pe}-message-icon`},Fe),qt.createElement("div",{className:`${pe}-message-text`},jn&&qt.createElement("div",{className:ae()(`${pe}-title`)},jn),Wn&&qt.createElement("div",{className:`${pe}-description`},Wn))),qt.createElement("div",{className:`${pe}-buttons`},Zt&&qt.createElement(He.ZP,Object.assign({onClick:Tn,size:"small"},ge),Cn!=null?Cn:Ke==null?void 0:Ke.cancelText),qt.createElement(xe.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,Ft.n)(Xn)),Le),actionFn:kn,close:Ye,prefixCls:be("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},hn!=null?hn:Ke==null?void 0:Ke.okText)))};var Ut=Me=>{const{prefixCls:pe,placement:Le,className:ge,style:je}=Me,Je=Pt(Me,["prefixCls","placement","className","style"]),{getPrefixCls:Cn}=qt.useContext(de.E_),hn=Cn("popconfirm",pe),[Xn]=yt(hn);return Xn(qt.createElement(ct.ZP,{placement:Le,className:ae()(hn,ge),style:je,content:qt.createElement(bt,Object.assign({prefixCls:hn},Je))}))},ee=function(Me,pe){var Le={};for(var ge in Me)Object.prototype.hasOwnProperty.call(Me,ge)&&pe.indexOf(ge)<0&&(Le[ge]=Me[ge]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,ge=Object.getOwnPropertySymbols(Me);je{const{prefixCls:Le,placement:ge="top",trigger:je="click",okType:Je="primary",icon:Cn=qt.createElement(ot.Z,null),children:hn,overlayClassName:Xn,onOpenChange:Fe,onVisibleChange:Zt}=Me,Ye=ee(Me,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:kn}=qt.useContext(de.E_),[Tn,Be]=(0,fe.Z)(!1,{value:Me.open,defaultValue:Me.defaultOpen}),be=(mn,Dn)=>{Be(mn,!0),Zt==null||Zt(mn),Fe==null||Fe(mn,Dn)},Ke=mn=>{be(!1,mn)},jn=mn=>{var Dn;return(Dn=Me.onConfirm)===null||Dn===void 0?void 0:Dn.call(void 0,mn)},Wn=mn=>{var Dn;be(!1,mn),(Dn=Me.onCancel)===null||Dn===void 0||Dn.call(void 0,mn)},An=mn=>{mn.keyCode===$e.Z.ESC&&Tn&&be(!1,mn)},oe=mn=>{const{disabled:Dn=!1}=Me;Dn||be(mn)},cn=kn("popconfirm",Le),wn=ae()(cn,Xn),[Fn]=yt(cn);return Fn(qt.createElement(Ce.Z,Object.assign({},(0,ve.Z)(Ye,["title"]),{trigger:je,placement:ge,onOpenChange:oe,open:Tn,ref:pe,overlayClassName:wn,content:qt.createElement(bt,Object.assign({okType:Je,icon:Cn},Me,{prefixCls:cn,close:Ke,onConfirm:jn,onCancel:Wn})),"data-popover-inject":!0}),(0,Oe.Tm)(hn,{onKeyDown:mn=>{var Dn,rn;qt.isValidElement(hn)&&((rn=hn==null?void 0:(Dn=hn.props).onKeyDown)===null||rn===void 0||rn.call(Dn,mn)),An(mn)}})))});re._InternalPanelDoNotUseOrYouWillBeFired=Ut;var ie=re},39722:function(un,Yn,St){"use strict";St.d(Yn,{t5:function(){return Ce}});var ot=St(92310),Tt=St.n(ot),ae=St(55477),$e=St(59301),fe=St(36355),ve=St(77578),qt=St(17356),Oe=function(ze,He){var Ft={};for(var nt in ze)Object.prototype.hasOwnProperty.call(ze,nt)&&He.indexOf(nt)<0&&(Ft[nt]=ze[nt]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,nt=Object.getOwnPropertySymbols(ze);et{if(!(!He&&!Ft))return $e.createElement($e.Fragment,null,He&&$e.createElement("div",{className:`${ze}-title`},(0,ve.Z)(He)),$e.createElement("div",{className:`${ze}-inner-content`},(0,ve.Z)(Ft)))},Ce=ze=>{const{hashId:He,prefixCls:Ft,className:nt,style:et,placement:ct="top",title:ut,content:pt,children:yt}=ze;return $e.createElement("div",{className:Tt()(He,Ft,`${Ft}-pure`,`${Ft}-placement-${ct}`,nt),style:et},$e.createElement("div",{className:`${Ft}-arrow`}),$e.createElement(ae.G,Object.assign({},ze,{className:He,prefixCls:Ft}),yt||de(Ft,ut,pt)))},xe=ze=>{const{prefixCls:He}=ze,Ft=Oe(ze,["prefixCls"]),{getPrefixCls:nt}=$e.useContext(fe.E_),et=nt("popover",He),[ct,ut]=(0,qt.Z)(et);return ct($e.createElement(Ce,Object.assign({},Ft,{prefixCls:et,hashId:ut})))};Yn.ZP=xe},60324:function(un,Yn,St){"use strict";var ot=St(92310),Tt=St.n(ot),ae=St(59301),$e=St(77578),fe=St(62892),ve=St(36355),qt=St(6848),Oe=St(39722),de=St(17356),Ce=function(He,Ft){var nt={};for(var et in He)Object.prototype.hasOwnProperty.call(He,et)&&Ft.indexOf(et)<0&&(nt[et]=He[et]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,et=Object.getOwnPropertySymbols(He);ct{let{title:Ft,content:nt,prefixCls:et}=He;return ae.createElement(ae.Fragment,null,Ft&&ae.createElement("div",{className:`${et}-title`},(0,$e.Z)(Ft)),ae.createElement("div",{className:`${et}-inner-content`},(0,$e.Z)(nt)))},ze=ae.forwardRef((He,Ft)=>{const{prefixCls:nt,title:et,content:ct,overlayClassName:ut,placement:pt="top",trigger:yt="hover",mouseEnterDelay:Pt=.1,mouseLeaveDelay:bt=.1,overlayStyle:Rt={}}=He,Ut=Ce(He,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:ee}=ae.useContext(ve.E_),re=ee("popover",nt),[ie,Me]=(0,de.Z)(re),pe=ee(),Le=Tt()(ut,Me);return ie(ae.createElement(qt.Z,Object.assign({placement:pt,trigger:yt,mouseEnterDelay:Pt,mouseLeaveDelay:bt,overlayStyle:Rt},Ut,{prefixCls:re,overlayClassName:Le,ref:Ft,overlay:et||ct?ae.createElement(xe,{prefixCls:re,title:et,content:ct}):null,transitionName:(0,fe.m)(pe,"zoom-big",Ut.transitionName),"data-popover-inject":!0})))});ze._InternalPanelDoNotUseOrYouWillBeFired=Oe.ZP,Yn.Z=ze},17356:function(un,Yn,St){"use strict";var ot=St(17313),Tt=St(29878),ae=St(19447),$e=St(33166),fe=St(83116),ve=St(37613);const qt=Ce=>{const{componentCls:xe,popoverColor:ze,minWidth:He,fontWeightStrong:Ft,popoverPadding:nt,boxShadowSecondary:et,colorTextHeading:ct,borderRadiusLG:ut,zIndexPopup:pt,marginXS:yt,colorBgElevated:Pt,popoverBg:bt}=Ce;return[{[xe]:Object.assign(Object.assign({},(0,ot.Wf)(Ce)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:pt,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":Pt,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${xe}-content`]:{position:"relative"},[`${xe}-inner`]:{backgroundColor:bt,backgroundClip:"padding-box",borderRadius:ut,boxShadow:et,padding:nt},[`${xe}-title`]:{minWidth:He,marginBottom:yt,color:ct,fontWeight:Ft},[`${xe}-inner-content`]:{color:ze}})},(0,ae.ZP)(Ce,{colorBg:"var(--antd-arrow-background-color)"}),{[`${xe}-pure`]:{position:"relative",maxWidth:"none",margin:Ce.sizePopupArrow,display:"inline-block",[`${xe}-content`]:{display:"inline-block"}}}]},Oe=Ce=>{const{componentCls:xe}=Ce;return{[xe]:$e.i.map(ze=>{const He=Ce[`${ze}6`];return{[`&${xe}-${ze}`]:{"--antd-arrow-background-color":He,[`${xe}-inner`]:{backgroundColor:He},[`${xe}-arrow`]:{background:"transparent"}}}})}},de=Ce=>{const{componentCls:xe,lineWidth:ze,lineType:He,colorSplit:Ft,paddingSM:nt,controlHeight:et,fontSize:ct,lineHeight:ut,padding:pt}=Ce,yt=et-Math.round(ct*ut),Pt=yt/2,bt=yt/2-ze,Rt=pt;return{[xe]:{[`${xe}-inner`]:{padding:0},[`${xe}-title`]:{margin:0,padding:`${Pt}px ${Rt}px ${bt}px`,borderBottom:`${ze}px ${He} ${Ft}`},[`${xe}-inner-content`]:{padding:`${nt}px ${Rt}px`}}}};Yn.Z=(0,fe.Z)("Popover",Ce=>{const{colorBgElevated:xe,colorText:ze,wireframe:He}=Ce,Ft=(0,ve.TS)(Ce,{popoverPadding:12,popoverBg:xe,popoverColor:ze});return[qt(Ft),Oe(Ft),He&&de(Ft),(0,Tt._y)(Ft,"zoom-big")]},Ce=>({width:177,minWidth:177,zIndexPopup:Ce.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},9122:function(un,Yn,St){"use strict";St.d(Yn,{Z:function(){return Wn}});var ot=St(59301),Tt=St(72308),ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},$e=ae,fe=St(7657),ve=function(oe,cn){return ot.createElement(fe.Z,(0,Tt.Z)({},oe,{ref:cn,icon:$e}))},qt=ot.forwardRef(ve),Oe=qt,de=St(92310),Ce=St.n(de),xe=Object.defineProperty,ze=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable,nt=(An,oe,cn)=>oe in An?xe(An,oe,{enumerable:!0,configurable:!0,writable:!0,value:cn}):An[oe]=cn,et=(An,oe)=>{for(var cn in oe||(oe={}))He.call(oe,cn)&&nt(An,cn,oe[cn]);if(ze)for(var cn of ze(oe))Ft.call(oe,cn)&&nt(An,cn,oe[cn]);return An},ct=(An,oe)=>{var cn={};for(var wn in An)He.call(An,wn)&&oe.indexOf(wn)<0&&(cn[wn]=An[wn]);if(An!=null&&ze)for(var wn of ze(An))oe.indexOf(wn)<0&&Ft.call(An,wn)&&(cn[wn]=An[wn]);return cn};var ut;(An=>{const oe=class{constructor(ce,Kt,we,Ee){if(this.version=ce,this.errorCorrectionLevel=Kt,this.modules=[],this.isFunction=[],ceoe.MAX_VERSION)throw new RangeError("Version value out of range");if(Ee<-1||Ee>7)throw new RangeError("Mask value out of range");this.size=ce*4+17;let ke=[];for(let Dt=0;Dt7)throw new RangeError("Invalid value");let Dt,wt;for(Dt=we;;Dt++){const Mt=oe.getNumDataCodewords(Dt,Kt)*8,Ae=rn.getTotalBits(ce,Dt);if(Ae<=Mt){wt=Ae;break}if(Dt>=Ee)throw new RangeError("Data too long")}for(const Mt of[oe.Ecc.MEDIUM,oe.Ecc.QUARTILE,oe.Ecc.HIGH])ln&&wt<=oe.getNumDataCodewords(Dt,Mt)*8&&(Kt=Mt);let At=[];for(const Mt of ce){wn(Mt.mode.modeBits,4,At),wn(Mt.numChars,Mt.mode.numCharCountBits(Dt),At);for(const Ae of Mt.getData())At.push(Ae)}mn(At.length==wt);const Bt=oe.getNumDataCodewords(Dt,Kt)*8;mn(At.length<=Bt),wn(0,Math.min(4,Bt-At.length),At),wn(0,(8-At.length%8)%8,At),mn(At.length%8==0);for(let Mt=236;At.lengthjt[Ae>>>3]|=Mt<<7-(Ae&7)),new oe(Dt,Kt,jt,ke)}getModule(ce,Kt){return 0<=ce&&ce>>9)*1335;const Ee=(Kt<<10|we)^21522;mn(Ee>>>15==0);for(let ke=0;ke<=5;ke++)this.setFunctionModule(8,ke,Fn(Ee,ke));this.setFunctionModule(8,7,Fn(Ee,6)),this.setFunctionModule(8,8,Fn(Ee,7)),this.setFunctionModule(7,8,Fn(Ee,8));for(let ke=9;ke<15;ke++)this.setFunctionModule(14-ke,8,Fn(Ee,ke));for(let ke=0;ke<8;ke++)this.setFunctionModule(this.size-1-ke,8,Fn(Ee,ke));for(let ke=8;ke<15;ke++)this.setFunctionModule(8,this.size-15+ke,Fn(Ee,ke));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let ce=this.version;for(let we=0;we<12;we++)ce=ce<<1^(ce>>>11)*7973;const Kt=this.version<<12|ce;mn(Kt>>>18==0);for(let we=0;we<18;we++){const Ee=Fn(Kt,we),ke=this.size-11+we%3,ln=Math.floor(we/3);this.setFunctionModule(ke,ln,Ee),this.setFunctionModule(ln,ke,Ee)}}drawFinderPattern(ce,Kt){for(let we=-4;we<=4;we++)for(let Ee=-4;Ee<=4;Ee++){const ke=Math.max(Math.abs(Ee),Math.abs(we)),ln=ce+Ee,Dt=Kt+we;0<=ln&&ln{(Mt!=wt-ke||En>=Dt)&&jt.push(Ae[Mt])});return mn(jt.length==ln),jt}drawCodewords(ce){if(ce.length!=Math.floor(oe.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let Kt=0;for(let we=this.size-1;we>=1;we-=2){we==6&&(we=5);for(let Ee=0;Ee>>3],7-(Kt&7)),Kt++)}}mn(Kt==ce.length*8)}applyMask(ce){if(ce<0||ce>7)throw new RangeError("Mask value out of range");for(let Kt=0;Kt5&&ce++):(this.finderPenaltyAddHistory(Dt,wt),ln||(ce+=this.finderPenaltyCountPatterns(wt)*oe.PENALTY_N3),ln=this.modules[ke][At],Dt=1);ce+=this.finderPenaltyTerminateAndCount(ln,Dt,wt)*oe.PENALTY_N3}for(let ke=0;ke5&&ce++):(this.finderPenaltyAddHistory(Dt,wt),ln||(ce+=this.finderPenaltyCountPatterns(wt)*oe.PENALTY_N3),ln=this.modules[At][ke],Dt=1);ce+=this.finderPenaltyTerminateAndCount(ln,Dt,wt)*oe.PENALTY_N3}for(let ke=0;keln+(Dt?1:0),Kt);const we=this.size*this.size,Ee=Math.ceil(Math.abs(Kt*20-we*10)/we)-1;return mn(0<=Ee&&Ee<=9),ce+=Ee*oe.PENALTY_N4,mn(0<=ce&&ce<=2568888),ce}getAlignmentPatternPositions(){if(this.version==1)return[];{const ce=Math.floor(this.version/7)+2,Kt=this.version==32?26:Math.ceil((this.version*4+4)/(ce*2-2))*2;let we=[6];for(let Ee=this.size-7;we.lengthoe.MAX_VERSION)throw new RangeError("Version number out of range");let Kt=(16*ce+128)*ce+64;if(ce>=2){const we=Math.floor(ce/7)+2;Kt-=(25*we-10)*we-55,ce>=7&&(Kt-=36)}return mn(208<=Kt&&Kt<=29648),Kt}static getNumDataCodewords(ce,Kt){return Math.floor(oe.getNumRawDataModules(ce)/8)-oe.ECC_CODEWORDS_PER_BLOCK[Kt.ordinal][ce]*oe.NUM_ERROR_CORRECTION_BLOCKS[Kt.ordinal][ce]}static reedSolomonComputeDivisor(ce){if(ce<1||ce>255)throw new RangeError("Degree out of range");let Kt=[];for(let Ee=0;Ee0);for(const Ee of ce){const ke=Ee^we.shift();we.push(0),Kt.forEach((ln,Dt)=>we[Dt]^=oe.reedSolomonMultiply(ln,ke))}return we}static reedSolomonMultiply(ce,Kt){if(ce>>>8||Kt>>>8)throw new RangeError("Byte out of range");let we=0;for(let Ee=7;Ee>=0;Ee--)we=we<<1^(we>>>7)*285,we^=(Kt>>>Ee&1)*ce;return mn(we>>>8==0),we}finderPenaltyCountPatterns(ce){const Kt=ce[1];mn(Kt<=this.size*3);const we=Kt>0&&ce[2]==Kt&&ce[3]==Kt*3&&ce[4]==Kt&&ce[5]==Kt;return(we&&ce[0]>=Kt*4&&ce[6]>=Kt?1:0)+(we&&ce[6]>=Kt*4&&ce[0]>=Kt?1:0)}finderPenaltyTerminateAndCount(ce,Kt,we){return ce&&(this.finderPenaltyAddHistory(Kt,we),Kt=0),Kt+=this.size,this.finderPenaltyAddHistory(Kt,we),this.finderPenaltyCountPatterns(we)}finderPenaltyAddHistory(ce,Kt){Kt[0]==0&&(ce+=this.size),Kt.pop(),Kt.unshift(ce)}};let cn=oe;cn.MIN_VERSION=1,cn.MAX_VERSION=40,cn.PENALTY_N1=3,cn.PENALTY_N2=3,cn.PENALTY_N3=40,cn.PENALTY_N4=10,cn.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],cn.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],An.QrCode=cn;function wn(ce,Kt,we){if(Kt<0||Kt>31||ce>>>Kt)throw new RangeError("Value out of range");for(let Ee=Kt-1;Ee>=0;Ee--)we.push(ce>>>Ee&1)}function Fn(ce,Kt){return(ce>>>Kt&1)!=0}function mn(ce){if(!ce)throw new Error("Assertion error")}const Dn=class{constructor(ce,Kt,we){if(this.mode=ce,this.numChars=Kt,this.bitData=we,Kt<0)throw new RangeError("Invalid argument");this.bitData=we.slice()}static makeBytes(ce){let Kt=[];for(const we of ce)wn(we,8,Kt);return new Dn(Dn.Mode.BYTE,ce.length,Kt)}static makeNumeric(ce){if(!Dn.isNumeric(ce))throw new RangeError("String contains non-numeric characters");let Kt=[];for(let we=0;we=1<{let oe;(cn=>{const wn=class{constructor(mn,Dn){this.ordinal=mn,this.formatBits=Dn}};let Fn=wn;Fn.LOW=new wn(0,1),Fn.MEDIUM=new wn(1,0),Fn.QUARTILE=new wn(2,3),Fn.HIGH=new wn(3,2),cn.Ecc=Fn})(oe=An.QrCode||(An.QrCode={}))})(ut||(ut={})),(An=>{let oe;(cn=>{const wn=class{constructor(mn,Dn){this.modeBits=mn,this.numBitsCharCount=Dn}numCharCountBits(mn){return this.numBitsCharCount[Math.floor((mn+7)/17)]}};let Fn=wn;Fn.NUMERIC=new wn(1,[10,12,14]),Fn.ALPHANUMERIC=new wn(2,[9,11,13]),Fn.BYTE=new wn(4,[8,16,16]),Fn.KANJI=new wn(8,[8,10,12]),Fn.ECI=new wn(7,[0,0,0]),cn.Mode=Fn})(oe=An.QrSegment||(An.QrSegment={}))})(ut||(ut={}));var pt=ut;var yt={L:pt.QrCode.Ecc.LOW,M:pt.QrCode.Ecc.MEDIUM,Q:pt.QrCode.Ecc.QUARTILE,H:pt.QrCode.Ecc.HIGH},Pt=128,bt="L",Rt="#FFFFFF",Ut="#000000",ee=!1,re=4,ie=.1;function Me(An,oe=0){const cn=[];return An.forEach(function(wn,Fn){let mn=null;wn.forEach(function(Dn,rn){if(!Dn&&mn!==null){cn.push(`M${mn+oe} ${Fn+oe}h${rn-mn}v1H${mn+oe}z`),mn=null;return}if(rn===wn.length-1){if(!Dn)return;mn===null?cn.push(`M${rn+oe},${Fn+oe} h1v1H${rn+oe}z`):cn.push(`M${mn+oe},${Fn+oe} h${rn+1-mn}v1H${mn+oe}z`);return}Dn&&mn===null&&(mn=rn)})}),cn.join("")}function pe(An,oe){return An.slice().map((cn,wn)=>wn=oe.y+oe.h?cn:cn.map((Fn,mn)=>mn=oe.x+oe.w?Fn:!1))}function Le(An,oe,cn,wn){if(wn==null)return null;const Fn=cn?re:0,mn=An.length+Fn*2,Dn=Math.floor(oe*ie),rn=mn/oe,ce=(wn.width||Dn)*rn,Kt=(wn.height||Dn)*rn,we=wn.x==null?An.length/2-ce/2:wn.x*rn,Ee=wn.y==null?An.length/2-Kt/2:wn.y*rn;let ke=null;if(wn.excavate){let ln=Math.floor(we),Dt=Math.floor(Ee),wt=Math.ceil(ce+we-ln),At=Math.ceil(Kt+Ee-Dt);ke={x:ln,y:Dt,w:wt,h:At}}return{x:we,y:Ee,h:Kt,w:ce,excavation:ke}}var ge=function(){try{new Path2D().addPath(new Path2D)}catch(An){return!1}return!0}();function je(An){const oe=An,{value:cn,size:wn=Pt,level:Fn=bt,bgColor:mn=Rt,fgColor:Dn=Ut,includeMargin:rn=ee,style:ce,imageSettings:Kt}=oe,we=ct(oe,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),Ee=Kt==null?void 0:Kt.src,ke=ot.useRef(null),ln=ot.useRef(null),[Dt,wt]=ot.useState(!1);ot.useEffect(()=>{if(ke.current!=null){const jt=ke.current,Mt=jt.getContext("2d");if(!Mt)return;let Ae=pt.QrCode.encodeText(cn,yt[Fn]).getModules();const En=rn?re:0,Rn=Ae.length+En*2,Pn=Le(Ae,wn,rn,Kt),$n=ln.current,xi=Pn!=null&&$n!==null&&$n.complete&&$n.naturalHeight!==0&&$n.naturalWidth!==0;xi&&Pn.excavation!=null&&(Ae=pe(Ae,Pn.excavation));const Fi=window.devicePixelRatio||1;jt.height=jt.width=wn*Fi;const Bi=wn/Rn*Fi;Mt.scale(Bi,Bi),Mt.fillStyle=mn,Mt.fillRect(0,0,Rn,Rn),Mt.fillStyle=Dn,ge?Mt.fill(new Path2D(Me(Ae,En))):Ae.forEach(function(Ji,ro){Ji.forEach(function(Eo,Zo){Eo&&Mt.fillRect(Zo+En,ro+En,1,1)})}),xi&&Mt.drawImage($n,Pn.x+En,Pn.y+En,Pn.w,Pn.h)}}),ot.useEffect(()=>{wt(!1)},[Ee]);const At=et({height:wn,width:wn},ce);let Bt=null;return Ee!=null&&(Bt=ot.createElement("img",{src:Ee,key:Ee,style:{display:"none"},onLoad:()=>{wt(!0)},ref:ln})),ot.createElement(ot.Fragment,null,ot.createElement("canvas",et({style:At,height:wn,width:wn,ref:ke},we)),Bt)}function Je(An){const oe=An,{value:cn,size:wn=Pt,level:Fn=bt,bgColor:mn=Rt,fgColor:Dn=Ut,includeMargin:rn=ee,imageSettings:ce}=oe,Kt=ct(oe,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let we=pt.QrCode.encodeText(cn,yt[Fn]).getModules();const Ee=rn?re:0,ke=we.length+Ee*2,ln=Le(we,wn,rn,ce);let Dt=null;ce!=null&&ln!=null&&(ln.excavation!=null&&(we=pe(we,ln.excavation)),Dt=ot.createElement("image",{xlinkHref:ce.src,height:ln.h,width:ln.w,x:ln.x+Ee,y:ln.y+Ee,preserveAspectRatio:"none"}));const wt=Me(we,Ee);return ot.createElement("svg",et({height:wn,width:wn,viewBox:`0 0 ${ke} ${ke}`},Kt),ot.createElement("path",{fill:mn,d:`M0,0 h${ke}v${ke}H0z`,shapeRendering:"crispEdges"}),ot.createElement("path",{fill:Dn,d:wt,shapeRendering:"crispEdges"}),Dt)}var Cn=An=>{const oe=An,{renderAs:cn}=oe,wn=ct(oe,["renderAs"]);return cn==="svg"?React.createElement(Je,et({},wn)):React.createElement(je,et({},wn))},hn=St(3113),Xn=St(36355),Fe=St(9763),Zt=St(71418),Ye=St(88088),kn=St(17313),Tn=St(83116),Be=St(37613);const be=An=>{const{componentCls:oe}=An;return{[oe]:Object.assign(Object.assign({},(0,kn.Wf)(An)),{display:"flex",justifyContent:"center",alignItems:"center",padding:An.paddingSM,backgroundColor:An.colorWhite,borderRadius:An.borderRadiusLG,border:`${An.lineWidth}px ${An.lineType} ${An.colorSplit}`,position:"relative",width:"100%",height:"100%",overflow:"hidden",[`& > ${oe}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:An.colorText,lineHeight:An.lineHeight,background:An.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${oe}-expired`]:{color:An.QRCodeExpiredTextColor}},"&-icon":{marginBlockEnd:An.marginXS,fontSize:An.controlHeight}}),[`${oe}-borderless`]:{borderColor:"transparent"}}};var Ke=(0,Tn.Z)("QRCode",An=>be((0,Be.TS)(An,{QRCodeExpiredTextColor:"rgba(0, 0, 0, 0.88)",QRCodeMaskBackgroundColor:"rgba(255, 255, 255, 0.96)"}))),Wn=An=>{const[,oe]=(0,Ye.Z)(),{value:cn,type:wn="canvas",icon:Fn="",size:mn=160,iconSize:Dn=40,color:rn=oe.colorText,errorLevel:ce="M",status:Kt="active",bordered:we=!0,onRefresh:Ee,style:ke,className:ln,rootClassName:Dt,prefixCls:wt,bgColor:At="transparent"}=An,{getPrefixCls:Bt}=(0,ot.useContext)(Xn.E_),jt=Bt("qrcode",wt),[Mt,Ae]=Ke(jt),En={src:Fn,x:void 0,y:void 0,height:Dn,width:Dn,excavate:!0},Rn={value:cn,size:mn-(oe.paddingSM+oe.lineWidth)*2,level:ce,bgColor:At,fgColor:rn,imageSettings:Fn?En:void 0},[Pn]=(0,Fe.Z)("QRCode");if(!cn)return null;const $n=Ce()(jt,ln,Dt,Ae,{[`${jt}-borderless`]:!we});return Mt(ot.createElement("div",{style:Object.assign(Object.assign({},ke),{width:mn,height:mn,backgroundColor:At}),className:$n},Kt!=="active"&&ot.createElement("div",{className:`${jt}-mask`},Kt==="loading"&&ot.createElement(Zt.Z,null),Kt==="expired"&&ot.createElement(ot.Fragment,null,ot.createElement("p",{className:`${jt}-expired`},Pn==null?void 0:Pn.expired),Ee&&ot.createElement(hn.ZP,{type:"link",icon:ot.createElement(Oe,null),onClick:Ee},Pn==null?void 0:Pn.refresh))),wn==="canvas"?ot.createElement(je,Object.assign({},Rn)):ot.createElement(Je,Object.assign({},Rn))))}},13570:function(un,Yn,St){"use strict";St.d(Yn,{Z:function(){return Zt}});var ot=St(72308),Tt=St(59301),ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},$e=ae,fe=St(7657),ve=function(kn,Tn){return Tt.createElement(fe.Z,(0,ot.Z)({},kn,{ref:Tn,icon:$e}))},qt=Tt.forwardRef(ve),Oe=qt,de=St(92310),Ce=St.n(de),xe=St(49618),ze=St(52487),He=St(74416),Ft=St(18929),nt=St(10228),et=St(26112);function ct(Ye,kn){var Tn=Ye.disabled,Be=Ye.prefixCls,be=Ye.character,Ke=Ye.characterRender,jn=Ye.index,Wn=Ye.count,An=Ye.value,oe=Ye.allowHalf,cn=Ye.focused,wn=Ye.onHover,Fn=Ye.onClick,mn=function(ln){wn(ln,jn)},Dn=function(ln){Fn(ln,jn)},rn=function(ln){ln.keyCode===nt.Z.ENTER&&Fn(ln,jn)},ce=jn+1,Kt=new Set([Be]);An===0&&jn===0&&cn?Kt.add("".concat(Be,"-focused")):oe&&An+.5>=ce&&Anjn?"true":"false","aria-posinset":jn+1,"aria-setsize":Wn,tabIndex:Tn?-1:0},Tt.createElement("div",{className:"".concat(Be,"-first")},we),Tt.createElement("div",{className:"".concat(Be,"-second")},we)));return Ke&&(Ee=Ke(Ee,Ye)),Ee}var ut=Tt.forwardRef(ct);function pt(){var Ye=Tt.useRef({});function kn(Be){return Ye.current[Be]}function Tn(Be){return function(be){Ye.current[Be]=be}}return[kn,Tn]}function yt(Ye){var kn=Ye.pageXOffset,Tn="scrollLeft";if(typeof kn!="number"){var Be=Ye.document;kn=Be.documentElement[Tn],typeof kn!="number"&&(kn=Be.body[Tn])}return kn}function Pt(Ye){var kn,Tn,Be=Ye.ownerDocument,be=Be.body,Ke=Be&&Be.documentElement,jn=Ye.getBoundingClientRect();return kn=jn.left,Tn=jn.top,kn-=Ke.clientLeft||be.clientLeft||0,Tn-=Ke.clientTop||be.clientTop||0,{left:kn,top:Tn}}function bt(Ye){var kn=Pt(Ye),Tn=Ye.ownerDocument,Be=Tn.defaultView||Tn.parentWindow;return kn.left+=yt(Be),kn.left}var Rt=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Ut(Ye,kn){var Tn,Be=Ye.prefixCls,be=Be===void 0?"rc-rate":Be,Ke=Ye.className,jn=Ye.defaultValue,Wn=Ye.value,An=Ye.count,oe=An===void 0?5:An,cn=Ye.allowHalf,wn=cn===void 0?!1:cn,Fn=Ye.allowClear,mn=Fn===void 0?!0:Fn,Dn=Ye.character,rn=Dn===void 0?"\u2605":Dn,ce=Ye.characterRender,Kt=Ye.disabled,we=Ye.direction,Ee=we===void 0?"ltr":we,ke=Ye.tabIndex,ln=ke===void 0?0:ke,Dt=Ye.autoFocus,wt=Ye.onHoverChange,At=Ye.onChange,Bt=Ye.onFocus,jt=Ye.onBlur,Mt=Ye.onKeyDown,Ae=Ye.onMouseLeave,En=(0,He.Z)(Ye,Rt),Rn=pt(),Pn=(0,ze.Z)(Rn,2),$n=Pn[0],xi=Pn[1],Fi=Tt.useRef(null),Bi=function(){if(!Kt){var We;(We=Fi.current)===null||We===void 0||We.focus()}};Tt.useImperativeHandle(kn,function(){return{focus:Bi,blur:function(){if(!Kt){var We;(We=Fi.current)===null||We===void 0||We.blur()}}}});var Ji=(0,Ft.Z)(jn||0,{value:Wn}),ro=(0,ze.Z)(Ji,2),Eo=ro[0],Zo=ro[1],Lo=(0,Ft.Z)(null),qn=(0,ze.Z)(Lo,2),$t=qn[0],tn=qn[1],Jn=function(We,Sn){var ai=Ee==="rtl",gn=We+1;if(wn){var Qe=$n(We),Xt=bt(Qe),dn=Qe.clientWidth;(ai&&Sn-Xt>dn/2||!ai&&Sn-Xt0&&!ai||Sn===nt.Z.RIGHT&&gn>0&&ai?(wn?gn-=.5:gn-=1,zt(gn),We.preventDefault()):Sn===nt.Z.LEFT&&gn{const{componentCls:kn}=Ye;return{[`${kn}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:Ye.marginXS},"> div":{transition:`all ${Ye.motionDurationMid}, outline 0s`,"&:hover":{transform:Ye.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${Ye.lineWidth}px dashed ${Ye.starColor}`,transform:Ye.starHoverScale}},"&-first, &-second":{color:Ye.starBg,transition:`all ${Ye.motionDurationMid}`,userSelect:"none",[Ye.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${kn}-star-first, &-half ${kn}-star-second`]:{opacity:1},[`&-half ${kn}-star-first, &-full ${kn}-star-second`]:{color:"inherit"}}}},Je=Ye=>({[`&-rtl${Ye.componentCls}`]:{direction:"rtl"}}),Cn=Ye=>{const{componentCls:kn}=Ye;return{[kn]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,pe.Wf)(Ye)),{display:"inline-block",margin:0,padding:0,color:Ye.starColor,fontSize:Ye.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${kn} ${kn}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),je(Ye)),{[`+ ${kn}-text`]:{display:"inline-block",marginInlineStart:Ye.marginXS,fontSize:Ye.fontSize}}),Je(Ye))}};var hn=(0,Le.Z)("Rate",Ye=>{const kn=(0,ge.TS)(Ye,{});return[Cn(kn)]},Ye=>({starColor:Ye.yellow6,starSize:Ye.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:Ye.colorFillContent})),Xn=function(Ye,kn){var Tn={};for(var Be in Ye)Object.prototype.hasOwnProperty.call(Ye,Be)&&kn.indexOf(Be)<0&&(Tn[Be]=Ye[Be]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,Be=Object.getOwnPropertySymbols(Ye);be{const{prefixCls:Tn,className:Be,rootClassName:be,style:Ke,tooltips:jn,character:Wn=Tt.createElement(Oe,null)}=Ye,An=Xn(Ye,["prefixCls","className","rootClassName","style","tooltips","character"]),oe=(Kt,we)=>{let{index:Ee}=we;return jn?Tt.createElement(Me.Z,{title:jn[Ee]},Kt):Kt},{getPrefixCls:cn,direction:wn,rate:Fn}=Tt.useContext(ie.E_),mn=cn("rate",Tn),[Dn,rn]=hn(mn),ce=Object.assign(Object.assign({},Fn==null?void 0:Fn.style),Ke);return Dn(Tt.createElement(re,Object.assign({ref:kn,character:Wn,characterRender:oe},An,{className:Ce()(Be,be,rn,Fn==null?void 0:Fn.className),style:ce,prefixCls:mn,direction:wn})))})},61621:function(un,Yn,St){"use strict";St.d(Yn,{Z:function(){return rn}});var ot=St(92310),Tt=St.n(ot),ae=St(59301),$e=St(36355),fe=St(2738),qt=ce=>{const{prefixCls:Kt,className:we,style:Ee,size:ke,shape:ln}=ce,Dt=Tt()({[`${Kt}-lg`]:ke==="large",[`${Kt}-sm`]:ke==="small"}),wt=Tt()({[`${Kt}-circle`]:ln==="circle",[`${Kt}-square`]:ln==="square",[`${Kt}-round`]:ln==="round"}),At=ae.useMemo(()=>typeof ke=="number"?{width:ke,height:ke,lineHeight:`${ke}px`}:{},[ke]);return ae.createElement("span",{className:Tt()(Kt,Dt,wt,we),style:Object.assign(Object.assign({},At),Ee)})},Oe=St(93083),de=St(83116),Ce=St(37613);const xe=new Oe.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),ze=ce=>({height:ce,lineHeight:`${ce}px`}),He=ce=>Object.assign({width:ce},ze(ce)),Ft=ce=>({background:ce.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:xe,animationDuration:ce.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),nt=ce=>Object.assign({width:ce*5,minWidth:ce*5},ze(ce)),et=ce=>{const{skeletonAvatarCls:Kt,gradientFromColor:we,controlHeight:Ee,controlHeightLG:ke,controlHeightSM:ln}=ce;return{[`${Kt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:we},He(Ee)),[`${Kt}${Kt}-circle`]:{borderRadius:"50%"},[`${Kt}${Kt}-lg`]:Object.assign({},He(ke)),[`${Kt}${Kt}-sm`]:Object.assign({},He(ln))}},ct=ce=>{const{controlHeight:Kt,borderRadiusSM:we,skeletonInputCls:Ee,controlHeightLG:ke,controlHeightSM:ln,gradientFromColor:Dt}=ce;return{[`${Ee}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Dt,borderRadius:we},nt(Kt)),[`${Ee}-lg`]:Object.assign({},nt(ke)),[`${Ee}-sm`]:Object.assign({},nt(ln))}},ut=ce=>Object.assign({width:ce},ze(ce)),pt=ce=>{const{skeletonImageCls:Kt,imageSizeBase:we,gradientFromColor:Ee,borderRadiusSM:ke}=ce;return{[`${Kt}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Ee,borderRadius:ke},ut(we*2)),{[`${Kt}-path`]:{fill:"#bfbfbf"},[`${Kt}-svg`]:Object.assign(Object.assign({},ut(we)),{maxWidth:we*4,maxHeight:we*4}),[`${Kt}-svg${Kt}-svg-circle`]:{borderRadius:"50%"}}),[`${Kt}${Kt}-circle`]:{borderRadius:"50%"}}},yt=(ce,Kt,we)=>{const{skeletonButtonCls:Ee}=ce;return{[`${we}${Ee}-circle`]:{width:Kt,minWidth:Kt,borderRadius:"50%"},[`${we}${Ee}-round`]:{borderRadius:Kt}}},Pt=ce=>Object.assign({width:ce*2,minWidth:ce*2},ze(ce)),bt=ce=>{const{borderRadiusSM:Kt,skeletonButtonCls:we,controlHeight:Ee,controlHeightLG:ke,controlHeightSM:ln,gradientFromColor:Dt}=ce;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${we}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Dt,borderRadius:Kt,width:Ee*2,minWidth:Ee*2},Pt(Ee))},yt(ce,Ee,we)),{[`${we}-lg`]:Object.assign({},Pt(ke))}),yt(ce,ke,`${we}-lg`)),{[`${we}-sm`]:Object.assign({},Pt(ln))}),yt(ce,ln,`${we}-sm`))},Rt=ce=>{const{componentCls:Kt,skeletonAvatarCls:we,skeletonTitleCls:Ee,skeletonParagraphCls:ke,skeletonButtonCls:ln,skeletonInputCls:Dt,skeletonImageCls:wt,controlHeight:At,controlHeightLG:Bt,controlHeightSM:jt,gradientFromColor:Mt,padding:Ae,marginSM:En,borderRadius:Rn,titleHeight:Pn,blockRadius:$n,paragraphLiHeight:xi,controlHeightXS:Fi,paragraphMarginTop:Bi}=ce;return{[`${Kt}`]:{display:"table",width:"100%",[`${Kt}-header`]:{display:"table-cell",paddingInlineEnd:Ae,verticalAlign:"top",[`${we}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Mt},He(At)),[`${we}-circle`]:{borderRadius:"50%"},[`${we}-lg`]:Object.assign({},He(Bt)),[`${we}-sm`]:Object.assign({},He(jt))},[`${Kt}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Ee}`]:{width:"100%",height:Pn,background:Mt,borderRadius:$n,[`+ ${ke}`]:{marginBlockStart:jt}},[`${ke}`]:{padding:0,"> li":{width:"100%",height:xi,listStyle:"none",background:Mt,borderRadius:$n,"+ li":{marginBlockStart:Fi}}},[`${ke}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${Kt}-content`]:{[`${Ee}, ${ke} > li`]:{borderRadius:Rn}}},[`${Kt}-with-avatar ${Kt}-content`]:{[`${Ee}`]:{marginBlockStart:En,[`+ ${ke}`]:{marginBlockStart:Bi}}},[`${Kt}${Kt}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},bt(ce)),et(ce)),ct(ce)),pt(ce)),[`${Kt}${Kt}-block`]:{width:"100%",[`${ln}`]:{width:"100%"},[`${Dt}`]:{width:"100%"}},[`${Kt}${Kt}-active`]:{[` @@ -1133,7 +1133,7 @@ ${Hi}`),Bn=!1,Eo(!0),yn==="text"&&$n(uo=>uo+Hi)}),$t.current.on("done",bi=>{jt(H ${ln}, ${Dt}, ${wt} - `]:Object.assign({},Ft(ce))}}};var Ut=(0,de.Z)("Skeleton",ce=>{const{componentCls:Kt}=ce,we=(0,Ce.TS)(ce,{skeletonAvatarCls:`${Kt}-avatar`,skeletonTitleCls:`${Kt}-title`,skeletonParagraphCls:`${Kt}-paragraph`,skeletonButtonCls:`${Kt}-button`,skeletonInputCls:`${Kt}-input`,skeletonImageCls:`${Kt}-image`,imageSizeBase:ce.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${ce.gradientFromColor} 25%, ${ce.gradientToColor} 37%, ${ce.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Rt(we)]},ce=>{const{colorFillContent:Kt,colorFill:we}=ce,Ee=Kt,ke=we;return{color:Ee,colorGradientEnd:ke,gradientFromColor:Ee,gradientToColor:ke,titleHeight:ce.controlHeight/2,blockRadius:ce.borderRadiusSM,paragraphMarginTop:ce.marginLG+ce.marginXXS,paragraphLiHeight:ce.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),re=ce=>{const{prefixCls:Kt,className:we,rootClassName:Ee,active:ke,shape:ln="circle",size:Dt="default"}=ce,{getPrefixCls:wt}=ae.useContext($e.E_),At=wt("skeleton",Kt),[Bt,jt]=Ut(At),Mt=(0,fe.Z)(ce,["prefixCls","className"]),Ae=Tt()(At,`${At}-element`,{[`${At}-active`]:ke},we,Ee,jt);return Bt(ae.createElement("div",{className:Ae},ae.createElement(qt,Object.assign({prefixCls:`${At}-avatar`,shape:ln,size:Dt},Mt))))},Me=ce=>{const{prefixCls:Kt,className:we,rootClassName:Ee,active:ke,block:ln=!1,size:Dt="default"}=ce,{getPrefixCls:wt}=ae.useContext($e.E_),At=wt("skeleton",Kt),[Bt,jt]=Ut(At),Mt=(0,fe.Z)(ce,["prefixCls"]),Ae=Tt()(At,`${At}-element`,{[`${At}-active`]:ke,[`${At}-block`]:ln},we,Ee,jt);return Bt(ae.createElement("div",{className:Ae},ae.createElement(qt,Object.assign({prefixCls:`${At}-button`,size:Dt},Mt))))};const pe="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var ge=ce=>{const{prefixCls:Kt,className:we,rootClassName:Ee,style:ke,active:ln}=ce,{getPrefixCls:Dt}=ae.useContext($e.E_),wt=Dt("skeleton",Kt),[At,Bt]=Ut(wt),jt=Tt()(wt,`${wt}-element`,{[`${wt}-active`]:ln},we,Ee,Bt);return At(ae.createElement("div",{className:jt},ae.createElement("div",{className:Tt()(`${wt}-image`,we),style:ke},ae.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${wt}-image-svg`},ae.createElement("path",{d:pe,className:`${wt}-image-path`})))))},Je=ce=>{const{prefixCls:Kt,className:we,rootClassName:Ee,active:ke,block:ln,size:Dt="default"}=ce,{getPrefixCls:wt}=ae.useContext($e.E_),At=wt("skeleton",Kt),[Bt,jt]=Ut(At),Mt=(0,fe.Z)(ce,["prefixCls"]),Ae=Tt()(At,`${At}-element`,{[`${At}-active`]:ke,[`${At}-block`]:ln},we,Ee,jt);return Bt(ae.createElement("div",{className:Ae},ae.createElement(qt,Object.assign({prefixCls:`${At}-input`,size:Dt},Mt))))},Cn=St(72308),hn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},Xn=hn,Fe=St(7657),Zt=function(Kt,we){return ae.createElement(Fe.Z,(0,Cn.Z)({},Kt,{ref:we,icon:Xn}))},Ye=ae.forwardRef(Zt),kn=Ye,Be=ce=>{const{prefixCls:Kt,className:we,rootClassName:Ee,style:ke,active:ln,children:Dt}=ce,{getPrefixCls:wt}=ae.useContext($e.E_),At=wt("skeleton",Kt),[Bt,jt]=Ut(At),Mt=Tt()(At,`${At}-element`,{[`${At}-active`]:ln},jt,we,Ee),Ae=Dt!=null?Dt:ae.createElement(kn,null);return Bt(ae.createElement("div",{className:Mt},ae.createElement("div",{className:Tt()(`${At}-image`,we),style:ke},Ae)))},be=St(80702),jn=ce=>{const Kt=wt=>{const{width:At,rows:Bt=2}=ce;if(Array.isArray(At))return At[wt];if(Bt-1===wt)return At},{prefixCls:we,className:Ee,style:ke,rows:ln}=ce,Dt=(0,be.Z)(Array(ln)).map((wt,At)=>ae.createElement("li",{key:At,style:{width:Kt(At)}}));return ae.createElement("ul",{className:Tt()(we,Ee),style:ke},Dt)},An=ce=>{let{prefixCls:Kt,className:we,width:Ee,style:ke}=ce;return ae.createElement("h3",{className:Tt()(Kt,we),style:Object.assign({width:Ee},ke)})};function oe(ce){return ce&&typeof ce=="object"?ce:{}}function cn(ce,Kt){return ce&&!Kt?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function wn(ce,Kt){return!ce&&Kt?{width:"38%"}:ce&&Kt?{width:"50%"}:{}}function Fn(ce,Kt){const we={};return(!ce||!Kt)&&(we.width="61%"),!ce&&Kt?we.rows=3:we.rows=2,we}const mn=ce=>{const{prefixCls:Kt,loading:we,className:Ee,rootClassName:ke,style:ln,children:Dt,avatar:wt=!1,title:At=!0,paragraph:Bt=!0,active:jt,round:Mt}=ce,{getPrefixCls:Ae,direction:En,skeleton:Rn}=ae.useContext($e.E_),Pn=Ae("skeleton",Kt),[$n,xi]=Ut(Pn);if(we||!("loading"in ce)){const Fi=!!wt,Bi=!!At,Ji=!!Bt;let ro;if(Fi){const Lo=Object.assign(Object.assign({prefixCls:`${Pn}-avatar`},cn(Bi,Ji)),oe(wt));ro=ae.createElement("div",{className:`${Pn}-header`},ae.createElement(qt,Object.assign({},Lo)))}let Eo;if(Bi||Ji){let Lo;if(Bi){const $t=Object.assign(Object.assign({prefixCls:`${Pn}-title`},wn(Fi,Ji)),oe(At));Lo=ae.createElement(An,Object.assign({},$t))}let qn;if(Ji){const $t=Object.assign(Object.assign({prefixCls:`${Pn}-paragraph`},Fn(Fi,Bi)),oe(Bt));qn=ae.createElement(jn,Object.assign({},$t))}Eo=ae.createElement("div",{className:`${Pn}-content`},Lo,qn)}const Zo=Tt()(Pn,{[`${Pn}-with-avatar`]:Fi,[`${Pn}-active`]:jt,[`${Pn}-rtl`]:En==="rtl",[`${Pn}-round`]:Mt},Rn==null?void 0:Rn.className,Ee,ke,xi);return $n(ae.createElement("div",{className:Zo,style:Object.assign(Object.assign({},Rn==null?void 0:Rn.style),ln)},ro,Eo))}return typeof Dt!="undefined"?Dt:null};mn.Button=Me,mn.Avatar=re,mn.Input=Je,mn.Image=ge,mn.Node=Be;var Dn=mn,rn=Dn},31797:function(un,Yn,St){"use strict";St.d(Yn,{default:function(){return Ut}});var ot=St(59301),Tt=St(56762),ae=St(92343),$e=St(92310),fe=St.n($e),ve=St(36355),qt=St(61621),de=ee=>{const{value:re,formatter:ie,precision:Me,decimalSeparator:pe,groupSeparator:Le="",prefixCls:ge}=ee;let je;if(typeof ie=="function")je=ie(re);else{const Je=String(re),Cn=Je.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Cn||Je==="-")je=Je;else{const hn=Cn[1];let Xn=Cn[2]||"0",Fe=Cn[4]||"";Xn=Xn.replace(/\B(?=(\d{3})+(?!\d))/g,Le),typeof Me=="number"&&(Fe=Fe.padEnd(Me,"0").slice(0,Me>0?Me:0)),Fe&&(Fe=`${pe}${Fe}`),je=[ot.createElement("span",{key:"int",className:`${ge}-content-value-int`},hn,Xn),Fe&&ot.createElement("span",{key:"decimal",className:`${ge}-content-value-decimal`},Fe)]}}return ot.createElement("span",{className:`${ge}-content-value`},je)},Ce=St(17313),xe=St(83116),ze=St(37613);const He=ee=>{const{componentCls:re,marginXXS:ie,padding:Me,colorTextDescription:pe,titleFontSize:Le,colorTextHeading:ge,contentFontSize:je,fontFamily:Je}=ee;return{[`${re}`]:Object.assign(Object.assign({},(0,Ce.Wf)(ee)),{[`${re}-title`]:{marginBottom:ie,color:pe,fontSize:Le},[`${re}-skeleton`]:{paddingTop:Me},[`${re}-content`]:{color:ge,fontSize:je,fontFamily:Je,[`${re}-content-value`]:{display:"inline-block",direction:"ltr"},[`${re}-content-prefix, ${re}-content-suffix`]:{display:"inline-block"},[`${re}-content-prefix`]:{marginInlineEnd:ie},[`${re}-content-suffix`]:{marginInlineStart:ie}}})}};var Ft=(0,xe.Z)("Statistic",ee=>{const re=(0,ze.TS)(ee,{});return[He(re)]},ee=>{const{fontSizeHeading3:re,fontSize:ie}=ee;return{titleFontSize:ie,contentFontSize:re}}),et=ee=>{const{prefixCls:re,className:ie,rootClassName:Me,style:pe,valueStyle:Le,value:ge=0,title:je,valueRender:Je,prefix:Cn,suffix:hn,loading:Xn=!1,onMouseEnter:Fe,onMouseLeave:Zt,decimalSeparator:Ye=".",groupSeparator:kn=","}=ee,{getPrefixCls:Tn,direction:Be,statistic:be}=ot.useContext(ve.E_),Ke=Tn("statistic",re),[jn,Wn]=Ft(Ke),An=ot.createElement(de,Object.assign({decimalSeparator:Ye,groupSeparator:kn,prefixCls:Ke},ee,{value:ge})),oe=fe()(Ke,{[`${Ke}-rtl`]:Be==="rtl"},be==null?void 0:be.className,ie,Me,Wn);return jn(ot.createElement("div",{className:oe,style:Object.assign(Object.assign({},be==null?void 0:be.style),pe),onMouseEnter:Fe,onMouseLeave:Zt},je&&ot.createElement("div",{className:`${Ke}-title`},je),ot.createElement(qt.Z,{paragraph:!1,loading:Xn,className:`${Ke}-skeleton`},ot.createElement("div",{style:Le,className:`${Ke}-content`},Cn&&ot.createElement("span",{className:`${Ke}-content-prefix`},Cn),Je?Je(An):An,hn&&ot.createElement("span",{className:`${Ke}-content-suffix`},hn)))))};const ct=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function ut(ee,re){let ie=ee;const Me=/\[[^\]]*]/g,pe=(re.match(Me)||[]).map(Je=>Je.slice(1,-1)),Le=re.replace(Me,"[]"),ge=ct.reduce((Je,Cn)=>{let[hn,Xn]=Cn;if(Je.includes(hn)){const Fe=Math.floor(ie/Xn);return ie-=Fe*Xn,Je.replace(new RegExp(`${hn}+`,"g"),Zt=>{const Ye=Zt.length;return Fe.toString().padStart(Ye,"0")})}return Je},Le);let je=0;return ge.replace(Me,()=>{const Je=pe[je];return je+=1,Je})}function pt(ee,re){const{format:ie=""}=re,Me=new Date(ee).getTime(),pe=Date.now(),Le=Math.max(Me-pe,0);return ut(Le,ie)}const yt=1e3/30;function Pt(ee){return new Date(ee).getTime()}const bt=ee=>{const{value:re,format:ie="HH:mm:ss",onChange:Me,onFinish:pe}=ee,Le=(0,Tt.Z)(),ge=ot.useRef(null),je=()=>{pe==null||pe(),ge.current&&(clearInterval(ge.current),ge.current=null)},Je=()=>{const Xn=Pt(re);Xn>=Date.now()&&(ge.current=setInterval(()=>{Le(),Me==null||Me(Xn-Date.now()),Xn(Je(),()=>{ge.current&&(clearInterval(ge.current),ge.current=null)}),[re]);const Cn=(Xn,Fe)=>pt(Xn,Object.assign(Object.assign({},Fe),{format:ie})),hn=Xn=>(0,ae.Tm)(Xn,{title:void 0});return ot.createElement(et,Object.assign({},ee,{valueRender:hn,formatter:Cn}))};var Rt=ot.memo(bt);et.Countdown=Rt;var Ut=et},78673:function(un,Yn,St){"use strict";St.d(Yn,{Z:function(){return Le}});var ot=St(58617),Tt=St(92310),ae=St.n(Tt),$e=St(72308),fe=St(49618),ve=St(52487),qt=St(74416),Oe=St(59301),de=St(18929),Ce=St(10228),xe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ze=Oe.forwardRef(function(ge,je){var Je,Cn=ge.prefixCls,hn=Cn===void 0?"rc-switch":Cn,Xn=ge.className,Fe=ge.checked,Zt=ge.defaultChecked,Ye=ge.disabled,kn=ge.loadingIcon,Tn=ge.checkedChildren,Be=ge.unCheckedChildren,be=ge.onClick,Ke=ge.onChange,jn=ge.onKeyDown,Wn=(0,qt.Z)(ge,xe),An=(0,de.Z)(!1,{value:Fe,defaultValue:Zt}),oe=(0,ve.Z)(An,2),cn=oe[0],wn=oe[1];function Fn(ce,Kt){var we=cn;return Ye||(we=ce,wn(we),Ke==null||Ke(we,Kt)),we}function mn(ce){ce.which===Ce.Z.LEFT?Fn(!1,ce):ce.which===Ce.Z.RIGHT&&Fn(!0,ce),jn==null||jn(ce)}function Dn(ce){var Kt=Fn(!cn,ce);be==null||be(Kt,ce)}var rn=ae()(hn,Xn,(Je={},(0,fe.Z)(Je,"".concat(hn,"-checked"),cn),(0,fe.Z)(Je,"".concat(hn,"-disabled"),Ye),Je));return Oe.createElement("button",(0,$e.Z)({},Wn,{type:"button",role:"switch","aria-checked":cn,disabled:Ye,className:rn,ref:je,onKeyDown:mn,onClick:Dn}),kn,Oe.createElement("span",{className:"".concat(hn,"-inner")},Oe.createElement("span",{className:"".concat(hn,"-inner-checked")},Tn),Oe.createElement("span",{className:"".concat(hn,"-inner-unchecked")},Be)))});ze.displayName="Switch";var He=ze,Ft=St(14088),nt=St(36355),et=St(1684),ct=St(19716),ut=St(64993),pt=St(17313),yt=St(83116),Pt=St(37613);const bt=ge=>{const{componentCls:je,trackHeightSM:Je,trackPadding:Cn,trackMinWidthSM:hn,innerMinMarginSM:Xn,innerMaxMarginSM:Fe,handleSizeSM:Zt}=ge,Ye=`${je}-inner`;return{[je]:{[`&${je}-small`]:{minWidth:hn,height:Je,lineHeight:`${Je}px`,[`${je}-inner`]:{paddingInlineStart:Fe,paddingInlineEnd:Xn,[`${Ye}-checked`]:{marginInlineStart:`calc(-100% + ${Zt+Cn*2}px - ${Fe*2}px)`,marginInlineEnd:`calc(100% - ${Zt+Cn*2}px + ${Fe*2}px)`},[`${Ye}-unchecked`]:{marginTop:-Je,marginInlineStart:0,marginInlineEnd:0}},[`${je}-handle`]:{width:Zt,height:Zt},[`${je}-loading-icon`]:{top:(Zt-ge.switchLoadingIconSize)/2,fontSize:ge.switchLoadingIconSize},[`&${je}-checked`]:{[`${je}-inner`]:{paddingInlineStart:Xn,paddingInlineEnd:Fe,[`${Ye}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ye}-unchecked`]:{marginInlineStart:`calc(100% - ${Zt+Cn*2}px + ${Fe*2}px)`,marginInlineEnd:`calc(-100% + ${Zt+Cn*2}px - ${Fe*2}px)`}},[`${je}-handle`]:{insetInlineStart:`calc(100% - ${Zt+Cn}px)`}},[`&:not(${je}-disabled):active`]:{[`&:not(${je}-checked) ${Ye}`]:{[`${Ye}-unchecked`]:{marginInlineStart:ge.marginXXS/2,marginInlineEnd:-ge.marginXXS/2}},[`&${je}-checked ${Ye}`]:{[`${Ye}-checked`]:{marginInlineStart:-ge.marginXXS/2,marginInlineEnd:ge.marginXXS/2}}}}}}},Rt=ge=>{const{componentCls:je,handleSize:Je}=ge;return{[je]:{[`${je}-loading-icon${ge.iconCls}`]:{position:"relative",top:(Je-ge.fontSize)/2,color:ge.switchLoadingIconColor,verticalAlign:"top"},[`&${je}-checked ${je}-loading-icon`]:{color:ge.switchColor}}}},Ut=ge=>{const{componentCls:je,motion:Je,trackPadding:Cn,handleBg:hn,handleShadow:Xn,handleSize:Fe}=ge,Zt=`${je}-handle`;return{[je]:{[Zt]:{position:"absolute",top:Cn,insetInlineStart:Cn,width:Fe,height:Fe,transition:`all ${ge.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:hn,borderRadius:Fe/2,boxShadow:Xn,transition:`all ${ge.switchDuration} ease-in-out`,content:'""'}},[`&${je}-checked ${Zt}`]:{insetInlineStart:`calc(100% - ${Fe+Cn}px)`},[`&:not(${je}-disabled):active`]:Je?{[`${Zt}::before`]:{insetInlineEnd:ge.switchHandleActiveInset,insetInlineStart:0},[`&${je}-checked ${Zt}::before`]:{insetInlineEnd:0,insetInlineStart:ge.switchHandleActiveInset}}:{}}}},ee=ge=>{const{componentCls:je,trackHeight:Je,trackPadding:Cn,innerMinMargin:hn,innerMaxMargin:Xn,handleSize:Fe}=ge,Zt=`${je}-inner`;return{[je]:{[Zt]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Xn,paddingInlineEnd:hn,transition:`padding-inline-start ${ge.switchDuration} ease-in-out, padding-inline-end ${ge.switchDuration} ease-in-out`,[`${Zt}-checked, ${Zt}-unchecked`]:{display:"block",color:ge.colorTextLightSolid,fontSize:ge.fontSizeSM,transition:`margin-inline-start ${ge.switchDuration} ease-in-out, margin-inline-end ${ge.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Zt}-checked`]:{marginInlineStart:`calc(-100% + ${Fe+Cn*2}px - ${Xn*2}px)`,marginInlineEnd:`calc(100% - ${Fe+Cn*2}px + ${Xn*2}px)`},[`${Zt}-unchecked`]:{marginTop:-Je,marginInlineStart:0,marginInlineEnd:0}},[`&${je}-checked ${Zt}`]:{paddingInlineStart:hn,paddingInlineEnd:Xn,[`${Zt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Zt}-unchecked`]:{marginInlineStart:`calc(100% - ${Fe+Cn*2}px + ${Xn*2}px)`,marginInlineEnd:`calc(-100% + ${Fe+Cn*2}px - ${Xn*2}px)`}},[`&:not(${je}-disabled):active`]:{[`&:not(${je}-checked) ${Zt}`]:{[`${Zt}-unchecked`]:{marginInlineStart:Cn*2,marginInlineEnd:-Cn*2}},[`&${je}-checked ${Zt}`]:{[`${Zt}-checked`]:{marginInlineStart:-Cn*2,marginInlineEnd:Cn*2}}}}}},re=ge=>{const{componentCls:je,trackHeight:Je,trackMinWidth:Cn}=ge;return{[je]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,pt.Wf)(ge)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Cn,height:Je,lineHeight:`${Je}px`,verticalAlign:"middle",background:ge.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${ge.motionDurationMid}`,userSelect:"none",[`&:hover:not(${je}-disabled)`]:{background:ge.colorTextTertiary}}),(0,pt.Qy)(ge)),{[`&${je}-checked`]:{background:ge.switchColor,[`&:hover:not(${je}-disabled)`]:{background:ge.colorPrimaryHover}},[`&${je}-loading, &${je}-disabled`]:{cursor:"not-allowed",opacity:ge.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${je}-rtl`]:{direction:"rtl"}})}};var ie=(0,yt.Z)("Switch",ge=>{const je=(0,Pt.TS)(ge,{switchDuration:ge.motionDurationMid,switchColor:ge.colorPrimary,switchDisabledOpacity:ge.opacityLoading,switchLoadingIconSize:ge.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${ge.opacityLoading})`,switchHandleActiveInset:"-30%"});return[re(je),ee(je),Ut(je),Rt(je),bt(je)]},ge=>{const{fontSize:je,lineHeight:Je,controlHeight:Cn,colorWhite:hn}=ge,Xn=je*Je,Fe=Cn/2,Zt=2,Ye=Xn-Zt*2,kn=Fe-Zt*2;return{trackHeight:Xn,trackHeightSM:Fe,trackMinWidth:Ye*2+Zt*4,trackMinWidthSM:kn*2+Zt*2,trackPadding:Zt,handleBg:hn,handleSize:Ye,handleSizeSM:kn,handleShadow:`0 2px 4px 0 ${new ut.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:Ye/2,innerMaxMargin:Ye+Zt+Zt*2,innerMinMarginSM:kn/2,innerMaxMarginSM:kn+Zt+Zt*2}}),Me=function(ge,je){var Je={};for(var Cn in ge)Object.prototype.hasOwnProperty.call(ge,Cn)&&je.indexOf(Cn)<0&&(Je[Cn]=ge[Cn]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var hn=0,Cn=Object.getOwnPropertySymbols(ge);hn{const{prefixCls:Je,size:Cn,disabled:hn,loading:Xn,className:Fe,rootClassName:Zt,style:Ye}=ge,kn=Me(ge,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Tn,direction:Be,switch:be}=Oe.useContext(nt.E_),Ke=Oe.useContext(et.Z),jn=(hn!=null?hn:Ke)||Xn,Wn=Tn("switch",Je),An=Oe.createElement("div",{className:`${Wn}-handle`},Xn&&Oe.createElement(ot.Z,{className:`${Wn}-loading-icon`})),[oe,cn]=ie(Wn),wn=(0,ct.Z)(Cn),Fn=ae()(be==null?void 0:be.className,{[`${Wn}-small`]:wn==="small",[`${Wn}-loading`]:Xn,[`${Wn}-rtl`]:Be==="rtl"},Fe,Zt,cn),mn=Object.assign(Object.assign({},be==null?void 0:be.style),Ye);return oe(Oe.createElement(Ft.Z,{component:"Switch"},Oe.createElement(He,Object.assign({},kn,{prefixCls:Wn,className:Fn,style:mn,disabled:jn,ref:je,loadingIcon:An}))))});pe.__ANT_SWITCH=!0;var Le=pe},98228:function(un,Yn,St){"use strict";St.d(Yn,{default:function(){return Mn}});var ot=St(92310),Tt=St.n(ot),ae=St(72308),$e=St(80702),fe=St(77321),ve=St(52487),qt=St(74416),Oe=St(62853),de=St(77861),Ce=St(17115),xe=St(90782),ze=St(18929),He=St(48736),Ft=St(59301),nt=function(le){var Ct=Ft.useRef({valueLabels:new Map});return Ft.useMemo(function(){var vn=Ct.current.valueLabels,Hn=new Map,Qt=le.map(function(Te){var Re,_e=Te.value,me=(Re=Te.label)!==null&&Re!==void 0?Re:vn.get(_e);return Hn.set(_e,me),(0,fe.Z)((0,fe.Z)({},Te),{},{label:me})});return Ct.current.valueLabels=Hn,[Qt]},[le])},et=function(le,Ct,vn,Hn){return Ft.useMemo(function(){var Qt=le.map(function(me){var en=me.value;return en}),Te=Ct.map(function(me){var en=me.value;return en}),Re=Qt.filter(function(me){return!Hn[me]});if(vn){var _e=(0,xe.S)(Qt,!0,Hn);Qt=_e.checkedKeys,Te=_e.halfCheckedKeys}return[Array.from(new Set([].concat((0,$e.Z)(Re),(0,$e.Z)(Qt)))),Te]},[le,Ct,vn,Hn])},ct=St(71430),ut=function(le,Ct){return Ft.useMemo(function(){var vn=(0,ct.I8)(le,{fieldNames:Ct,initWrapper:function(Qt){return(0,fe.Z)((0,fe.Z)({},Qt),{},{valueEntities:new Map})},processEntity:function(Qt,Te){var Re=Qt.node[Ct.value];if(0)var _e;Te.valueEntities.set(Re,Qt)}});return vn},[le,Ct])},pt=St(49618),yt=St(11592),Pt=function(){return null},bt=Pt,Rt=["children","value"];function Ut(le){return(0,yt.Z)(le).map(function(Ct){if(!Ft.isValidElement(Ct)||!Ct.type)return null;var vn=Ct,Hn=vn.key,Qt=vn.props,Te=Qt.children,Re=Qt.value,_e=(0,qt.Z)(Qt,Rt),me=(0,fe.Z)({key:Hn,value:Re},_e),en=Ut(Te);return en.length&&(me.children=en),me}).filter(function(Ct){return Ct})}function ee(le){if(!le)return le;var Ct=(0,fe.Z)({},le);return"props"in Ct||Object.defineProperty(Ct,"props",{get:function(){return(0,He.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),Ct}}),Ct}function re(le,Ct,vn,Hn,Qt,Te){var Re=null,_e=null;function me(){function en(te){var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Vt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return te.map(function(Ve,an){var pn="".concat(Yt,"-").concat(an),We=Ve[Te.value],Sn=vn.includes(We),ai=en(Ve[Te.children]||[],pn,Sn),gn=Ft.createElement(bt,Ve,ai.map(function(Xt){return Xt.node}));if(Ct===We&&(Re=gn),Sn){var Qe={pos:pn,node:gn,children:ai};return Vt||_e.push(Qe),Qe}return null}).filter(function(Ve){return Ve})}_e||(_e=[],en(Hn),_e.sort(function(te,Yt){var Vt=te.node.props.value,Ve=Yt.node.props.value,an=vn.indexOf(Vt),pn=vn.indexOf(Ve);return an-pn}))}Object.defineProperty(le,"triggerNode",{get:function(){return(0,He.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),me(),Re}}),Object.defineProperty(le,"allCheckedNodes",{get:function(){return(0,He.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),me(),Qt?_e:_e.map(function(te){var Yt=te.node;return Yt})}})}var ie=function(le,Ct,vn){var Hn=vn.treeNodeFilterProp,Qt=vn.filterTreeNode,Te=vn.fieldNames,Re=Te.children;return Ft.useMemo(function(){if(!Ct||Qt===!1)return le;var _e;if(typeof Qt=="function")_e=Qt;else{var me=Ct.toUpperCase();_e=function(Yt,Vt){var Ve=Vt[Hn];return String(Ve).toUpperCase().includes(me)}}function en(te){var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return te.reduce(function(Vt,Ve){var an=Ve[Re],pn=Yt||_e(Ct,ee(Ve)),We=en(an||[],pn);return(pn||We.length)&&Vt.push((0,fe.Z)((0,fe.Z)({},Ve),{},(0,pt.Z)({isLeaf:void 0},Re,We))),Vt},[])}return en(le)},[le,Ct,Re,Hn,Qt])};function Me(le){var Ct=Ft.useRef();Ct.current=le;var vn=Ft.useCallback(function(){return Ct.current.apply(Ct,arguments)},[]);return vn}function pe(le,Ct){var vn=Ct.id,Hn=Ct.pId,Qt=Ct.rootPId,Te={},Re=[],_e=le.map(function(me){var en=(0,fe.Z)({},me),te=en[vn];return Te[te]=en,en.key=en.key||te,en});return _e.forEach(function(me){var en=me[Hn],te=Te[en];te&&(te.children=te.children||[],te.children.push(me)),(en===Qt||!te&&Qt===null)&&Re.push(me)}),Re}function Le(le,Ct,vn){return Ft.useMemo(function(){return le?vn?pe(le,(0,fe.Z)({id:"id",pId:"pId",rootPId:null},vn!==!0?vn:{})):le:Ut(Ct)},[Ct,vn,le])}var ge=Ft.createContext(null),je=ge,Je=St(10228),Cn=St(80547),hn=St(54844),Xn=Ft.createContext(null),Fe=Xn;function Zt(le){return Array.isArray(le)?le:le!==void 0?[le]:[]}function Ye(le){var Ct=le||{},vn=Ct.label,Hn=Ct.value,Qt=Ct.children,Te=Hn||"value";return{_title:vn?[vn]:["title","label"],value:Te,key:Te,children:Qt||"children"}}function kn(le){return!le||le.disabled||le.disableCheckbox||le.checkable===!1}function Tn(le,Ct){var vn=[];function Hn(Qt){Qt.forEach(function(Te){var Re=Te[Ct.children];Re&&(vn.push(Te[Ct.value]),Hn(Re))})}return Hn(le),vn}function Be(le){return le==null}var be={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Ke=function(Ct,vn){var Hn=(0,de.lk)(),Qt=Hn.prefixCls,Te=Hn.multiple,Re=Hn.searchValue,_e=Hn.toggleOpen,me=Hn.open,en=Hn.notFoundContent,te=Ft.useContext(Fe),Yt=te.virtual,Vt=te.listHeight,Ve=te.listItemHeight,an=te.treeData,pn=te.fieldNames,We=te.onSelect,Sn=te.dropdownMatchSelectWidth,ai=te.treeExpandAction,gn=Ft.useContext(je),Qe=gn.checkable,Xt=gn.checkedKeys,dn=gn.halfCheckedKeys,De=gn.treeExpandedKeys,Xe=gn.treeDefaultExpandAll,he=gn.treeDefaultExpandedKeys,Pe=gn.onTreeExpand,fn=gn.treeIcon,Di=gn.showTreeIcon,oi=gn.switcherIcon,ii=gn.treeLine,Bn=gn.treeNodeFilterProp,Kn=gn.loadData,ki=gn.treeLoadedKeys,bi=gn.treeMotion,Hi=gn.onTreeLoad,yn=gn.keyEntities,uo=Ft.useRef(),Qi=(0,Cn.Z)(function(){return an},[me,an],function(Po,eo){return eo[0]&&Po[1]!==eo[1]}),io=Ft.useState(null),sn=(0,ve.Z)(io,2),Gn=sn[0],wi=sn[1],ji=yn[Gn],Ci=Ft.useMemo(function(){return Qe?{checked:Xt,halfChecked:dn}:null},[Qe,Xt,dn]);Ft.useEffect(function(){if(me&&!Te&&Xt.length){var Po;(Po=uo.current)===null||Po===void 0||Po.scrollTo({key:Xt[0]}),wi(Xt[0])}},[me]);var Ui=String(Re).toLowerCase(),so=function(eo){return Ui?String(eo[Bn]).toLowerCase().includes(Ui):!1},zi=Ft.useState(he),Ei=(0,ve.Z)(zi,2),Ki=Ei[0],Ln=Ei[1],ho=Ft.useState(null),bn=(0,ve.Z)(ho,2),ao=bn[0],Mo=bn[1],Ao=Ft.useMemo(function(){return De?(0,$e.Z)(De):Re?ao:Ki},[Ki,ao,De,Re]);Ft.useEffect(function(){Re&&Mo(Tn(an,pn))},[Re]);var Uo=function(eo){Ln(eo),Mo(eo),Pe&&Pe(eo)},So=function(eo){eo.preventDefault()},di=function(eo,hi){var Ot=hi.node;Qe&&kn(Ot)||(We(Ot.key,{selected:!Xt.includes(Ot.key)}),Te||_e(!1))};if(Ft.useImperativeHandle(vn,function(){var Po;return{scrollTo:(Po=uo.current)===null||Po===void 0?void 0:Po.scrollTo,onKeyDown:function(hi){var Ot,lr=hi.which;switch(lr){case Je.Z.UP:case Je.Z.DOWN:case Je.Z.LEFT:case Je.Z.RIGHT:(Ot=uo.current)===null||Ot===void 0||Ot.onKeyDown(hi);break;case Je.Z.ENTER:{if(ji){var Yo=(ji==null?void 0:ji.node)||{},tr=Yo.selectable,_t=Yo.value;tr!==!1&&di(null,{node:{key:Gn},selected:!Xt.includes(_t)})}break}case Je.Z.ESC:_e(!1)}},onKeyUp:function(){}}}),Qi.length===0)return Ft.createElement("div",{role:"listbox",className:"".concat(Qt,"-empty"),onMouseDown:So},en);var _i={fieldNames:pn};return ki&&(_i.loadedKeys=ki),Ao&&(_i.expandedKeys=Ao),Ft.createElement("div",{onMouseDown:So},ji&&me&&Ft.createElement("span",{style:be,"aria-live":"assertive"},ji.node.value),Ft.createElement(hn.Z,(0,ae.Z)({ref:uo,focusable:!1,prefixCls:"".concat(Qt,"-tree"),treeData:Qi,height:Vt,itemHeight:Ve,virtual:Yt!==!1&&Sn!==!1,multiple:Te,icon:fn,showIcon:Di,switcherIcon:oi,showLine:ii,loadData:Re?null:Kn,motion:bi,activeKey:Gn,checkable:Qe,checkStrictly:!0,checkedKeys:Ci,selectedKeys:Qe?[]:Xt,defaultExpandAll:Xe},_i,{onActiveChange:wi,onSelect:di,onCheck:di,onExpand:Uo,onLoad:Hi,filterTreeNode:so,expandAction:ai})))},jn=Ft.forwardRef(Ke);jn.displayName="OptionList";var Wn=jn,An="SHOW_ALL",oe="SHOW_PARENT",cn="SHOW_CHILD";function wn(le,Ct,vn,Hn){var Qt=new Set(le);return Ct===cn?le.filter(function(Te){var Re=vn[Te];return!(Re&&Re.children&&Re.children.some(function(_e){var me=_e.node;return Qt.has(me[Hn.value])})&&Re.children.every(function(_e){var me=_e.node;return kn(me)||Qt.has(me[Hn.value])}))}):Ct===oe?le.filter(function(Te){var Re=vn[Te],_e=Re?Re.parent:null;return!(_e&&!kn(_e.node)&&Qt.has(_e.key))}):le}function Fn(le){var Ct=le.searchPlaceholder,vn=le.treeCheckStrictly,Hn=le.treeCheckable,Qt=le.labelInValue,Te=le.value,Re=le.multiple;warning(!Ct,"`searchPlaceholder` has been removed."),vn&&Qt===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(Qt||vn)&&warning(toArray(Te).every(function(_e){return _e&&_typeof(_e)==="object"&&"value"in _e}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),vn||Re||Hn?warning(!Te||Array.isArray(Te),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(Te),"`value` should not be array when `TreeSelect` is single mode.")}var mn=null,Dn=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"];function rn(le){return!le||(0,Oe.Z)(le)!=="object"}var ce=Ft.forwardRef(function(le,Ct){var vn=le.id,Hn=le.prefixCls,Qt=Hn===void 0?"rc-tree-select":Hn,Te=le.value,Re=le.defaultValue,_e=le.onChange,me=le.onSelect,en=le.onDeselect,te=le.searchValue,Yt=le.inputValue,Vt=le.onSearch,Ve=le.autoClearSearchValue,an=Ve===void 0?!0:Ve,pn=le.filterTreeNode,We=le.treeNodeFilterProp,Sn=We===void 0?"value":We,ai=le.showCheckedStrategy,gn=le.treeNodeLabelProp,Qe=le.multiple,Xt=le.treeCheckable,dn=le.treeCheckStrictly,De=le.labelInValue,Xe=le.fieldNames,he=le.treeDataSimpleMode,Pe=le.treeData,fn=le.children,Di=le.loadData,oi=le.treeLoadedKeys,ii=le.onTreeLoad,Bn=le.treeDefaultExpandAll,Kn=le.treeExpandedKeys,ki=le.treeDefaultExpandedKeys,bi=le.onTreeExpand,Hi=le.treeExpandAction,yn=le.virtual,uo=le.listHeight,Qi=uo===void 0?200:uo,io=le.listItemHeight,sn=io===void 0?20:io,Gn=le.onDropdownVisibleChange,wi=le.dropdownMatchSelectWidth,ji=wi===void 0?!0:wi,Ci=le.treeLine,Ui=le.treeIcon,so=le.showTreeIcon,zi=le.switcherIcon,Ei=le.treeMotion,Ki=(0,qt.Z)(le,Dn),Ln=(0,Ce.ZP)(vn),ho=Xt&&!dn,bn=Xt||dn,ao=dn||De,Mo=bn||Qe,Ao=(0,ze.Z)(Re,{value:Te}),Uo=(0,ve.Z)(Ao,2),So=Uo[0],di=Uo[1],_i=Ft.useMemo(function(){return Xt?ai||cn:An},[ai,Xt]),Po=Ft.useMemo(function(){return Ye(Xe)},[JSON.stringify(Xe)]),eo=(0,ze.Z)("",{value:te!==void 0?te:Yt,postState:function(zo){return zo||""}}),hi=(0,ve.Z)(eo,2),Ot=hi[0],lr=hi[1],Yo=function(zo){lr(zo),Vt==null||Vt(zo)},tr=Le(Pe,fn,he),_t=ut(tr,Po),Zn=_t.keyEntities,si=_t.valueEntities,Ii=Ft.useCallback(function(gr){var zo=[],nr=[];return gr.forEach(function(Xr){si.has(Xr)?nr.push(Xr):zo.push(Xr)}),{missingRawValues:zo,existRawValues:nr}},[si]),_n=ie(tr,Ot,{fieldNames:Po,treeNodeFilterProp:Sn,filterTreeNode:pn}),Ai=Ft.useCallback(function(gr){if(gr){if(gn)return gr[gn];for(var zo=Po._title,nr=0;nr{const{componentCls:Ct,treePrefixCls:vn,colorBgElevated:Hn}=le,Qt=`.${vn}`;return[{[`${Ct}-dropdown`]:[{padding:`${le.paddingXS}px ${le.paddingXS/2}px`},(0,Eo.Yk)(vn,(0,Ji.TS)(le,{colorBgContainer:Hn})),{[Qt]:{borderRadius:0,[`${Qt}-list-holder-inner`]:{alignItems:"stretch",[`${Qt}-treenode`]:{[`${Qt}-node-content-wrapper`]:{flex:"auto"}}}}},(0,Bi.C2)(`${vn}-checkbox`,le),{"&-rtl":{direction:"rtl",[`${Qt}-switcher${Qt}-switcher_close`]:{[`${Qt}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function Lo(le,Ct){return(0,ro.Z)("TreeSelect",vn=>{const Hn=(0,Ji.TS)(vn,{treePrefixCls:Ct});return[Zo(Hn)]},Eo.TM)(le)}var qn=function(le,Ct){var vn={};for(var Hn in le)Object.prototype.hasOwnProperty.call(le,Hn)&&Ct.indexOf(Hn)<0&&(vn[Hn]=le[Hn]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qt=0,Hn=Object.getOwnPropertySymbols(le);Qt{var vn,{prefixCls:Hn,size:Qt,disabled:Te,bordered:Re=!0,className:_e,rootClassName:me,treeCheckable:en,multiple:te,listHeight:Yt=256,listItemHeight:Vt=26,placement:Ve,notFoundContent:an,switcherIcon:pn,treeLine:We,getPopupContainer:Sn,popupClassName:ai,dropdownClassName:gn,treeIcon:Qe=!1,transitionName:Xt,choiceTransitionName:dn="",status:De,treeExpandAction:Xe,builtinPlacements:he,dropdownMatchSelectWidth:Pe,popupMatchSelectWidth:fn,allowClear:Di}=le,oi=qn(le,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear"]);const{getPopupContainer:ii,getPrefixCls:Bn,renderEmpty:Kn,direction:ki,virtual:bi,popupMatchSelectWidth:Hi,popupOverflow:yn}=Ft.useContext(At.E_),uo=Bn(),Qi=Bn("select",Hn),io=Bn("select-tree",Hn),sn=Bn("tree-select",Hn),{compactSize:Gn,compactItemClassnames:wi}=(0,xi.ri)(Qi,ki),[ji,Ci]=(0,En.Z)(Qi),[Ui]=Lo(sn,io),so=Tt()(ai||gn,`${sn}-dropdown`,{[`${sn}-dropdown-rtl`]:ki==="rtl"},me,Ci),zi=!!(en||te),Ei=(0,Pn.Z)(oi.suffixIcon,oi.showArrow),Ki=(vn=fn!=null?fn:Pe)!==null&&vn!==void 0?vn:Hi,{status:Ln,hasFeedback:ho,isFormItemInput:bn,feedbackIcon:ao}=Ft.useContext(Ae.aM),Mo=(0,wt.F)(Ln,De),{suffixIcon:Ao,removeIcon:Uo,clearIcon:So}=(0,$n.Z)(Object.assign(Object.assign({},oi),{multiple:zi,showSuffixIcon:Ei,hasFeedback:ho,feedbackIcon:ao,prefixCls:Qi,componentName:"TreeSelect"})),di=Di===!0?{clearIcon:So}:Di;let _i;an!==void 0?_i=an:_i=(Kn==null?void 0:Kn("Select"))||Ft.createElement(jt.Z,{componentName:"Select"});const Po=(0,ke.Z)(oi,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon"]),eo=Ft.useMemo(()=>Ve!==void 0?Ve:ki==="rtl"?"bottomRight":"bottomLeft",[Ve,ki]),hi=(0,Rn.Z)(he,yn),Ot=(0,Mt.Z)(si=>{var Ii;return(Ii=Qt!=null?Qt:Gn)!==null&&Ii!==void 0?Ii:si}),lr=Ft.useContext(Bt.Z),Yo=Te!=null?Te:lr,tr=Tt()(!Hn&&sn,{[`${Qi}-lg`]:Ot==="large",[`${Qi}-sm`]:Ot==="small",[`${Qi}-rtl`]:ki==="rtl",[`${Qi}-borderless`]:!Re,[`${Qi}-in-form-item`]:bn},(0,wt.Z)(Qi,Mo,ho),wi,_e,me,Ci),_t=si=>Ft.createElement(Fi.Z,{prefixCls:io,switcherIcon:pn,treeNodeProps:si,showLine:We}),Zn=Ft.createElement(Ee,Object.assign({virtual:bi,disabled:Yo},Po,{dropdownMatchSelectWidth:Ki,builtinPlacements:hi,ref:Ct,prefixCls:Qi,className:tr,listHeight:Yt,listItemHeight:Vt,treeCheckable:en&&Ft.createElement("span",{className:`${Qi}-tree-checkbox-inner`}),treeLine:!!We,suffixIcon:Ao,multiple:zi,placement:eo,removeIcon:Uo,allowClear:di,switcherIcon:_t,showTreeIcon:Qe,notFoundContent:_i,getPopupContainer:Sn||ii,treeMotion:null,dropdownClassName:so,choiceTransitionName:(0,Dt.m)(uo,"",dn),transitionName:(0,Dt.m)(uo,"slide-up",Xt),treeExpandAction:Xe}));return ji(Ui(Zn))},Jn=Ft.forwardRef($t),zt=(0,ln.Z)(Jn);Jn.TreeNode=bt,Jn.SHOW_ALL=An,Jn.SHOW_PARENT=oe,Jn.SHOW_CHILD=cn,Jn._InternalPanelDoNotUseOrYouWillBeFired=zt;var Mn=Jn},48066:function(un,Yn,St){"use strict";St.d(Yn,{default:function(){return Hn}});var ot=St(59301),Tt=St(40001),ae=St(81953),$e=St(72308),fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},ve=fe,qt=St(7657),Oe=function(Te,Re){return ot.createElement(qt.Z,(0,$e.Z)({},Te,{ref:Re,icon:ve}))},de=ot.forwardRef(Oe),Ce=de,xe=St(92310),ze=St.n(xe),He=St(25769),Ft=St.n(He),nt=St(29301),et=St(11592),ct=St(34280),ut=St(18929),pt=St(2738),yt=St(8654),Pt=St(24514),bt=St(10228),Rt=function(Qt,Te){var Re={};for(var _e in Qt)Object.prototype.hasOwnProperty.call(Qt,_e)&&Te.indexOf(_e)<0&&(Re[_e]=Qt[_e]);if(Qt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,_e=Object.getOwnPropertySymbols(Qt);me<_e.length;me++)Te.indexOf(_e[me])<0&&Object.prototype.propertyIsEnumerable.call(Qt,_e[me])&&(Re[_e[me]]=Qt[_e[me]]);return Re};const Ut={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"};var re=ot.forwardRef((Qt,Te)=>{const Re=Ve=>{const{keyCode:an}=Ve;an===bt.Z.ENTER&&Ve.preventDefault()},_e=Ve=>{const{keyCode:an}=Ve,{onClick:pn}=Qt;an===bt.Z.ENTER&&pn&&pn()},{style:me,noStyle:en,disabled:te}=Qt,Yt=Rt(Qt,["style","noStyle","disabled"]);let Vt={};return en||(Vt=Object.assign({},Ut)),te&&(Vt.pointerEvents="none"),Vt=Object.assign(Object.assign({},Vt),me),ot.createElement("div",Object.assign({role:"button",tabIndex:0,ref:Te},Yt,{onKeyDown:Re,onKeyUp:_e,style:Vt}))}),ie=St(36355),Me=St(9763),pe=St(6848),Le={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},ge=Le,je=function(Te,Re){return ot.createElement(qt.Z,(0,$e.Z)({},Te,{ref:Re,icon:ge}))},Je=ot.forwardRef(je),Cn=Je,hn=St(92343),Xn=St(1643),Fe=St(15969),Zt=St(83116),Ye=St(93398);const kn=(Qt,Te,Re,_e)=>{const{titleMarginBottom:me,fontWeightStrong:en}=_e;return{marginBottom:me,color:Re,fontWeight:en,fontSize:Qt,lineHeight:Te}},Tn=Qt=>{const Te=[1,2,3,4,5],Re={};return Te.forEach(_e=>{Re[` + `]:Object.assign({},Ft(ce))}}};var Ut=(0,de.Z)("Skeleton",ce=>{const{componentCls:Kt}=ce,we=(0,Ce.TS)(ce,{skeletonAvatarCls:`${Kt}-avatar`,skeletonTitleCls:`${Kt}-title`,skeletonParagraphCls:`${Kt}-paragraph`,skeletonButtonCls:`${Kt}-button`,skeletonInputCls:`${Kt}-input`,skeletonImageCls:`${Kt}-image`,imageSizeBase:ce.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${ce.gradientFromColor} 25%, ${ce.gradientToColor} 37%, ${ce.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Rt(we)]},ce=>{const{colorFillContent:Kt,colorFill:we}=ce,Ee=Kt,ke=we;return{color:Ee,colorGradientEnd:ke,gradientFromColor:Ee,gradientToColor:ke,titleHeight:ce.controlHeight/2,blockRadius:ce.borderRadiusSM,paragraphMarginTop:ce.marginLG+ce.marginXXS,paragraphLiHeight:ce.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),re=ce=>{const{prefixCls:Kt,className:we,rootClassName:Ee,active:ke,shape:ln="circle",size:Dt="default"}=ce,{getPrefixCls:wt}=ae.useContext($e.E_),At=wt("skeleton",Kt),[Bt,jt]=Ut(At),Mt=(0,fe.Z)(ce,["prefixCls","className"]),Ae=Tt()(At,`${At}-element`,{[`${At}-active`]:ke},we,Ee,jt);return Bt(ae.createElement("div",{className:Ae},ae.createElement(qt,Object.assign({prefixCls:`${At}-avatar`,shape:ln,size:Dt},Mt))))},Me=ce=>{const{prefixCls:Kt,className:we,rootClassName:Ee,active:ke,block:ln=!1,size:Dt="default"}=ce,{getPrefixCls:wt}=ae.useContext($e.E_),At=wt("skeleton",Kt),[Bt,jt]=Ut(At),Mt=(0,fe.Z)(ce,["prefixCls"]),Ae=Tt()(At,`${At}-element`,{[`${At}-active`]:ke,[`${At}-block`]:ln},we,Ee,jt);return Bt(ae.createElement("div",{className:Ae},ae.createElement(qt,Object.assign({prefixCls:`${At}-button`,size:Dt},Mt))))};const pe="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var ge=ce=>{const{prefixCls:Kt,className:we,rootClassName:Ee,style:ke,active:ln}=ce,{getPrefixCls:Dt}=ae.useContext($e.E_),wt=Dt("skeleton",Kt),[At,Bt]=Ut(wt),jt=Tt()(wt,`${wt}-element`,{[`${wt}-active`]:ln},we,Ee,Bt);return At(ae.createElement("div",{className:jt},ae.createElement("div",{className:Tt()(`${wt}-image`,we),style:ke},ae.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${wt}-image-svg`},ae.createElement("path",{d:pe,className:`${wt}-image-path`})))))},Je=ce=>{const{prefixCls:Kt,className:we,rootClassName:Ee,active:ke,block:ln,size:Dt="default"}=ce,{getPrefixCls:wt}=ae.useContext($e.E_),At=wt("skeleton",Kt),[Bt,jt]=Ut(At),Mt=(0,fe.Z)(ce,["prefixCls"]),Ae=Tt()(At,`${At}-element`,{[`${At}-active`]:ke,[`${At}-block`]:ln},we,Ee,jt);return Bt(ae.createElement("div",{className:Ae},ae.createElement(qt,Object.assign({prefixCls:`${At}-input`,size:Dt},Mt))))},Cn=St(72308),hn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},Xn=hn,Fe=St(7657),Zt=function(Kt,we){return ae.createElement(Fe.Z,(0,Cn.Z)({},Kt,{ref:we,icon:Xn}))},Ye=ae.forwardRef(Zt),kn=Ye,Be=ce=>{const{prefixCls:Kt,className:we,rootClassName:Ee,style:ke,active:ln,children:Dt}=ce,{getPrefixCls:wt}=ae.useContext($e.E_),At=wt("skeleton",Kt),[Bt,jt]=Ut(At),Mt=Tt()(At,`${At}-element`,{[`${At}-active`]:ln},jt,we,Ee),Ae=Dt!=null?Dt:ae.createElement(kn,null);return Bt(ae.createElement("div",{className:Mt},ae.createElement("div",{className:Tt()(`${At}-image`,we),style:ke},Ae)))},be=St(80702),jn=ce=>{const Kt=wt=>{const{width:At,rows:Bt=2}=ce;if(Array.isArray(At))return At[wt];if(Bt-1===wt)return At},{prefixCls:we,className:Ee,style:ke,rows:ln}=ce,Dt=(0,be.Z)(Array(ln)).map((wt,At)=>ae.createElement("li",{key:At,style:{width:Kt(At)}}));return ae.createElement("ul",{className:Tt()(we,Ee),style:ke},Dt)},An=ce=>{let{prefixCls:Kt,className:we,width:Ee,style:ke}=ce;return ae.createElement("h3",{className:Tt()(Kt,we),style:Object.assign({width:Ee},ke)})};function oe(ce){return ce&&typeof ce=="object"?ce:{}}function cn(ce,Kt){return ce&&!Kt?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function wn(ce,Kt){return!ce&&Kt?{width:"38%"}:ce&&Kt?{width:"50%"}:{}}function Fn(ce,Kt){const we={};return(!ce||!Kt)&&(we.width="61%"),!ce&&Kt?we.rows=3:we.rows=2,we}const mn=ce=>{const{prefixCls:Kt,loading:we,className:Ee,rootClassName:ke,style:ln,children:Dt,avatar:wt=!1,title:At=!0,paragraph:Bt=!0,active:jt,round:Mt}=ce,{getPrefixCls:Ae,direction:En,skeleton:Rn}=ae.useContext($e.E_),Pn=Ae("skeleton",Kt),[$n,xi]=Ut(Pn);if(we||!("loading"in ce)){const Fi=!!wt,Bi=!!At,Ji=!!Bt;let ro;if(Fi){const Lo=Object.assign(Object.assign({prefixCls:`${Pn}-avatar`},cn(Bi,Ji)),oe(wt));ro=ae.createElement("div",{className:`${Pn}-header`},ae.createElement(qt,Object.assign({},Lo)))}let Eo;if(Bi||Ji){let Lo;if(Bi){const $t=Object.assign(Object.assign({prefixCls:`${Pn}-title`},wn(Fi,Ji)),oe(At));Lo=ae.createElement(An,Object.assign({},$t))}let qn;if(Ji){const $t=Object.assign(Object.assign({prefixCls:`${Pn}-paragraph`},Fn(Fi,Bi)),oe(Bt));qn=ae.createElement(jn,Object.assign({},$t))}Eo=ae.createElement("div",{className:`${Pn}-content`},Lo,qn)}const Zo=Tt()(Pn,{[`${Pn}-with-avatar`]:Fi,[`${Pn}-active`]:jt,[`${Pn}-rtl`]:En==="rtl",[`${Pn}-round`]:Mt},Rn==null?void 0:Rn.className,Ee,ke,xi);return $n(ae.createElement("div",{className:Zo,style:Object.assign(Object.assign({},Rn==null?void 0:Rn.style),ln)},ro,Eo))}return typeof Dt!="undefined"?Dt:null};mn.Button=Me,mn.Avatar=re,mn.Input=Je,mn.Image=ge,mn.Node=Be;var Dn=mn,rn=Dn},31797:function(un,Yn,St){"use strict";St.d(Yn,{default:function(){return Ut}});var ot=St(59301),Tt=St(56762),ae=St(92343),$e=St(92310),fe=St.n($e),ve=St(36355),qt=St(61621),de=ee=>{const{value:re,formatter:ie,precision:Me,decimalSeparator:pe,groupSeparator:Le="",prefixCls:ge}=ee;let je;if(typeof ie=="function")je=ie(re);else{const Je=String(re),Cn=Je.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Cn||Je==="-")je=Je;else{const hn=Cn[1];let Xn=Cn[2]||"0",Fe=Cn[4]||"";Xn=Xn.replace(/\B(?=(\d{3})+(?!\d))/g,Le),typeof Me=="number"&&(Fe=Fe.padEnd(Me,"0").slice(0,Me>0?Me:0)),Fe&&(Fe=`${pe}${Fe}`),je=[ot.createElement("span",{key:"int",className:`${ge}-content-value-int`},hn,Xn),Fe&&ot.createElement("span",{key:"decimal",className:`${ge}-content-value-decimal`},Fe)]}}return ot.createElement("span",{className:`${ge}-content-value`},je)},Ce=St(17313),xe=St(83116),ze=St(37613);const He=ee=>{const{componentCls:re,marginXXS:ie,padding:Me,colorTextDescription:pe,titleFontSize:Le,colorTextHeading:ge,contentFontSize:je,fontFamily:Je}=ee;return{[`${re}`]:Object.assign(Object.assign({},(0,Ce.Wf)(ee)),{[`${re}-title`]:{marginBottom:ie,color:pe,fontSize:Le},[`${re}-skeleton`]:{paddingTop:Me},[`${re}-content`]:{color:ge,fontSize:je,fontFamily:Je,[`${re}-content-value`]:{display:"inline-block",direction:"ltr"},[`${re}-content-prefix, ${re}-content-suffix`]:{display:"inline-block"},[`${re}-content-prefix`]:{marginInlineEnd:ie},[`${re}-content-suffix`]:{marginInlineStart:ie}}})}};var Ft=(0,xe.Z)("Statistic",ee=>{const re=(0,ze.TS)(ee,{});return[He(re)]},ee=>{const{fontSizeHeading3:re,fontSize:ie}=ee;return{titleFontSize:ie,contentFontSize:re}}),et=ee=>{const{prefixCls:re,className:ie,rootClassName:Me,style:pe,valueStyle:Le,value:ge=0,title:je,valueRender:Je,prefix:Cn,suffix:hn,loading:Xn=!1,onMouseEnter:Fe,onMouseLeave:Zt,decimalSeparator:Ye=".",groupSeparator:kn=","}=ee,{getPrefixCls:Tn,direction:Be,statistic:be}=ot.useContext(ve.E_),Ke=Tn("statistic",re),[jn,Wn]=Ft(Ke),An=ot.createElement(de,Object.assign({decimalSeparator:Ye,groupSeparator:kn,prefixCls:Ke},ee,{value:ge})),oe=fe()(Ke,{[`${Ke}-rtl`]:Be==="rtl"},be==null?void 0:be.className,ie,Me,Wn);return jn(ot.createElement("div",{className:oe,style:Object.assign(Object.assign({},be==null?void 0:be.style),pe),onMouseEnter:Fe,onMouseLeave:Zt},je&&ot.createElement("div",{className:`${Ke}-title`},je),ot.createElement(qt.Z,{paragraph:!1,loading:Xn,className:`${Ke}-skeleton`},ot.createElement("div",{style:Le,className:`${Ke}-content`},Cn&&ot.createElement("span",{className:`${Ke}-content-prefix`},Cn),Je?Je(An):An,hn&&ot.createElement("span",{className:`${Ke}-content-suffix`},hn)))))};const ct=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function ut(ee,re){let ie=ee;const Me=/\[[^\]]*]/g,pe=(re.match(Me)||[]).map(Je=>Je.slice(1,-1)),Le=re.replace(Me,"[]"),ge=ct.reduce((Je,Cn)=>{let[hn,Xn]=Cn;if(Je.includes(hn)){const Fe=Math.floor(ie/Xn);return ie-=Fe*Xn,Je.replace(new RegExp(`${hn}+`,"g"),Zt=>{const Ye=Zt.length;return Fe.toString().padStart(Ye,"0")})}return Je},Le);let je=0;return ge.replace(Me,()=>{const Je=pe[je];return je+=1,Je})}function pt(ee,re){const{format:ie=""}=re,Me=new Date(ee).getTime(),pe=Date.now(),Le=Math.max(Me-pe,0);return ut(Le,ie)}const yt=1e3/30;function Pt(ee){return new Date(ee).getTime()}const bt=ee=>{const{value:re,format:ie="HH:mm:ss",onChange:Me,onFinish:pe}=ee,Le=(0,Tt.Z)(),ge=ot.useRef(null),je=()=>{pe==null||pe(),ge.current&&(clearInterval(ge.current),ge.current=null)},Je=()=>{const Xn=Pt(re);Xn>=Date.now()&&(ge.current=setInterval(()=>{Le(),Me==null||Me(Xn-Date.now()),Xn(Je(),()=>{ge.current&&(clearInterval(ge.current),ge.current=null)}),[re]);const Cn=(Xn,Fe)=>pt(Xn,Object.assign(Object.assign({},Fe),{format:ie})),hn=Xn=>(0,ae.Tm)(Xn,{title:void 0});return ot.createElement(et,Object.assign({},ee,{valueRender:hn,formatter:Cn}))};var Rt=ot.memo(bt);et.Countdown=Rt;var Ut=et},78673:function(un,Yn,St){"use strict";St.d(Yn,{Z:function(){return Le}});var ot=St(58617),Tt=St(92310),ae=St.n(Tt),$e=St(72308),fe=St(49618),ve=St(52487),qt=St(74416),Oe=St(59301),de=St(18929),Ce=St(10228),xe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ze=Oe.forwardRef(function(ge,je){var Je,Cn=ge.prefixCls,hn=Cn===void 0?"rc-switch":Cn,Xn=ge.className,Fe=ge.checked,Zt=ge.defaultChecked,Ye=ge.disabled,kn=ge.loadingIcon,Tn=ge.checkedChildren,Be=ge.unCheckedChildren,be=ge.onClick,Ke=ge.onChange,jn=ge.onKeyDown,Wn=(0,qt.Z)(ge,xe),An=(0,de.Z)(!1,{value:Fe,defaultValue:Zt}),oe=(0,ve.Z)(An,2),cn=oe[0],wn=oe[1];function Fn(ce,Kt){var we=cn;return Ye||(we=ce,wn(we),Ke==null||Ke(we,Kt)),we}function mn(ce){ce.which===Ce.Z.LEFT?Fn(!1,ce):ce.which===Ce.Z.RIGHT&&Fn(!0,ce),jn==null||jn(ce)}function Dn(ce){var Kt=Fn(!cn,ce);be==null||be(Kt,ce)}var rn=ae()(hn,Xn,(Je={},(0,fe.Z)(Je,"".concat(hn,"-checked"),cn),(0,fe.Z)(Je,"".concat(hn,"-disabled"),Ye),Je));return Oe.createElement("button",(0,$e.Z)({},Wn,{type:"button",role:"switch","aria-checked":cn,disabled:Ye,className:rn,ref:je,onKeyDown:mn,onClick:Dn}),kn,Oe.createElement("span",{className:"".concat(hn,"-inner")},Oe.createElement("span",{className:"".concat(hn,"-inner-checked")},Tn),Oe.createElement("span",{className:"".concat(hn,"-inner-unchecked")},Be)))});ze.displayName="Switch";var He=ze,Ft=St(14088),nt=St(36355),et=St(1684),ct=St(19716),ut=St(64993),pt=St(17313),yt=St(83116),Pt=St(37613);const bt=ge=>{const{componentCls:je,trackHeightSM:Je,trackPadding:Cn,trackMinWidthSM:hn,innerMinMarginSM:Xn,innerMaxMarginSM:Fe,handleSizeSM:Zt}=ge,Ye=`${je}-inner`;return{[je]:{[`&${je}-small`]:{minWidth:hn,height:Je,lineHeight:`${Je}px`,[`${je}-inner`]:{paddingInlineStart:Fe,paddingInlineEnd:Xn,[`${Ye}-checked`]:{marginInlineStart:`calc(-100% + ${Zt+Cn*2}px - ${Fe*2}px)`,marginInlineEnd:`calc(100% - ${Zt+Cn*2}px + ${Fe*2}px)`},[`${Ye}-unchecked`]:{marginTop:-Je,marginInlineStart:0,marginInlineEnd:0}},[`${je}-handle`]:{width:Zt,height:Zt},[`${je}-loading-icon`]:{top:(Zt-ge.switchLoadingIconSize)/2,fontSize:ge.switchLoadingIconSize},[`&${je}-checked`]:{[`${je}-inner`]:{paddingInlineStart:Xn,paddingInlineEnd:Fe,[`${Ye}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ye}-unchecked`]:{marginInlineStart:`calc(100% - ${Zt+Cn*2}px + ${Fe*2}px)`,marginInlineEnd:`calc(-100% + ${Zt+Cn*2}px - ${Fe*2}px)`}},[`${je}-handle`]:{insetInlineStart:`calc(100% - ${Zt+Cn}px)`}},[`&:not(${je}-disabled):active`]:{[`&:not(${je}-checked) ${Ye}`]:{[`${Ye}-unchecked`]:{marginInlineStart:ge.marginXXS/2,marginInlineEnd:-ge.marginXXS/2}},[`&${je}-checked ${Ye}`]:{[`${Ye}-checked`]:{marginInlineStart:-ge.marginXXS/2,marginInlineEnd:ge.marginXXS/2}}}}}}},Rt=ge=>{const{componentCls:je,handleSize:Je}=ge;return{[je]:{[`${je}-loading-icon${ge.iconCls}`]:{position:"relative",top:(Je-ge.fontSize)/2,color:ge.switchLoadingIconColor,verticalAlign:"top"},[`&${je}-checked ${je}-loading-icon`]:{color:ge.switchColor}}}},Ut=ge=>{const{componentCls:je,motion:Je,trackPadding:Cn,handleBg:hn,handleShadow:Xn,handleSize:Fe}=ge,Zt=`${je}-handle`;return{[je]:{[Zt]:{position:"absolute",top:Cn,insetInlineStart:Cn,width:Fe,height:Fe,transition:`all ${ge.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:hn,borderRadius:Fe/2,boxShadow:Xn,transition:`all ${ge.switchDuration} ease-in-out`,content:'""'}},[`&${je}-checked ${Zt}`]:{insetInlineStart:`calc(100% - ${Fe+Cn}px)`},[`&:not(${je}-disabled):active`]:Je?{[`${Zt}::before`]:{insetInlineEnd:ge.switchHandleActiveInset,insetInlineStart:0},[`&${je}-checked ${Zt}::before`]:{insetInlineEnd:0,insetInlineStart:ge.switchHandleActiveInset}}:{}}}},ee=ge=>{const{componentCls:je,trackHeight:Je,trackPadding:Cn,innerMinMargin:hn,innerMaxMargin:Xn,handleSize:Fe}=ge,Zt=`${je}-inner`;return{[je]:{[Zt]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Xn,paddingInlineEnd:hn,transition:`padding-inline-start ${ge.switchDuration} ease-in-out, padding-inline-end ${ge.switchDuration} ease-in-out`,[`${Zt}-checked, ${Zt}-unchecked`]:{display:"block",color:ge.colorTextLightSolid,fontSize:ge.fontSizeSM,transition:`margin-inline-start ${ge.switchDuration} ease-in-out, margin-inline-end ${ge.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Zt}-checked`]:{marginInlineStart:`calc(-100% + ${Fe+Cn*2}px - ${Xn*2}px)`,marginInlineEnd:`calc(100% - ${Fe+Cn*2}px + ${Xn*2}px)`},[`${Zt}-unchecked`]:{marginTop:-Je,marginInlineStart:0,marginInlineEnd:0}},[`&${je}-checked ${Zt}`]:{paddingInlineStart:hn,paddingInlineEnd:Xn,[`${Zt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Zt}-unchecked`]:{marginInlineStart:`calc(100% - ${Fe+Cn*2}px + ${Xn*2}px)`,marginInlineEnd:`calc(-100% + ${Fe+Cn*2}px - ${Xn*2}px)`}},[`&:not(${je}-disabled):active`]:{[`&:not(${je}-checked) ${Zt}`]:{[`${Zt}-unchecked`]:{marginInlineStart:Cn*2,marginInlineEnd:-Cn*2}},[`&${je}-checked ${Zt}`]:{[`${Zt}-checked`]:{marginInlineStart:-Cn*2,marginInlineEnd:Cn*2}}}}}},re=ge=>{const{componentCls:je,trackHeight:Je,trackMinWidth:Cn}=ge;return{[je]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,pt.Wf)(ge)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Cn,height:Je,lineHeight:`${Je}px`,verticalAlign:"middle",background:ge.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${ge.motionDurationMid}`,userSelect:"none",[`&:hover:not(${je}-disabled)`]:{background:ge.colorTextTertiary}}),(0,pt.Qy)(ge)),{[`&${je}-checked`]:{background:ge.switchColor,[`&:hover:not(${je}-disabled)`]:{background:ge.colorPrimaryHover}},[`&${je}-loading, &${je}-disabled`]:{cursor:"not-allowed",opacity:ge.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${je}-rtl`]:{direction:"rtl"}})}};var ie=(0,yt.Z)("Switch",ge=>{const je=(0,Pt.TS)(ge,{switchDuration:ge.motionDurationMid,switchColor:ge.colorPrimary,switchDisabledOpacity:ge.opacityLoading,switchLoadingIconSize:ge.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${ge.opacityLoading})`,switchHandleActiveInset:"-30%"});return[re(je),ee(je),Ut(je),Rt(je),bt(je)]},ge=>{const{fontSize:je,lineHeight:Je,controlHeight:Cn,colorWhite:hn}=ge,Xn=je*Je,Fe=Cn/2,Zt=2,Ye=Xn-Zt*2,kn=Fe-Zt*2;return{trackHeight:Xn,trackHeightSM:Fe,trackMinWidth:Ye*2+Zt*4,trackMinWidthSM:kn*2+Zt*2,trackPadding:Zt,handleBg:hn,handleSize:Ye,handleSizeSM:kn,handleShadow:`0 2px 4px 0 ${new ut.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:Ye/2,innerMaxMargin:Ye+Zt+Zt*2,innerMinMarginSM:kn/2,innerMaxMarginSM:kn+Zt+Zt*2}}),Me=function(ge,je){var Je={};for(var Cn in ge)Object.prototype.hasOwnProperty.call(ge,Cn)&&je.indexOf(Cn)<0&&(Je[Cn]=ge[Cn]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var hn=0,Cn=Object.getOwnPropertySymbols(ge);hn{const{prefixCls:Je,size:Cn,disabled:hn,loading:Xn,className:Fe,rootClassName:Zt,style:Ye}=ge,kn=Me(ge,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Tn,direction:Be,switch:be}=Oe.useContext(nt.E_),Ke=Oe.useContext(et.Z),jn=(hn!=null?hn:Ke)||Xn,Wn=Tn("switch",Je),An=Oe.createElement("div",{className:`${Wn}-handle`},Xn&&Oe.createElement(ot.Z,{className:`${Wn}-loading-icon`})),[oe,cn]=ie(Wn),wn=(0,ct.Z)(Cn),Fn=ae()(be==null?void 0:be.className,{[`${Wn}-small`]:wn==="small",[`${Wn}-loading`]:Xn,[`${Wn}-rtl`]:Be==="rtl"},Fe,Zt,cn),mn=Object.assign(Object.assign({},be==null?void 0:be.style),Ye);return oe(Oe.createElement(Ft.Z,{component:"Switch"},Oe.createElement(He,Object.assign({},kn,{prefixCls:Wn,className:Fn,style:mn,disabled:jn,ref:je,loadingIcon:An}))))});pe.__ANT_SWITCH=!0;var Le=pe},98228:function(un,Yn,St){"use strict";St.d(Yn,{default:function(){return Mn}});var ot=St(92310),Tt=St.n(ot),ae=St(72308),$e=St(80702),fe=St(77321),ve=St(52487),qt=St(74416),Oe=St(62853),de=St(77861),Ce=St(17115),xe=St(90782),ze=St(18929),He=St(48736),Ft=St(59301),nt=function(le){var Ct=Ft.useRef({valueLabels:new Map});return Ft.useMemo(function(){var vn=Ct.current.valueLabels,Hn=new Map,Qt=le.map(function(Te){var Re,_e=Te.value,me=(Re=Te.label)!==null&&Re!==void 0?Re:vn.get(_e);return Hn.set(_e,me),(0,fe.Z)((0,fe.Z)({},Te),{},{label:me})});return Ct.current.valueLabels=Hn,[Qt]},[le])},et=function(le,Ct,vn,Hn){return Ft.useMemo(function(){var Qt=le.map(function(me){var en=me.value;return en}),Te=Ct.map(function(me){var en=me.value;return en}),Re=Qt.filter(function(me){return!Hn[me]});if(vn){var _e=(0,xe.S)(Qt,!0,Hn);Qt=_e.checkedKeys,Te=_e.halfCheckedKeys}return[Array.from(new Set([].concat((0,$e.Z)(Re),(0,$e.Z)(Qt)))),Te]},[le,Ct,vn,Hn])},ct=St(71430),ut=function(le,Ct){return Ft.useMemo(function(){var vn=(0,ct.I8)(le,{fieldNames:Ct,initWrapper:function(Qt){return(0,fe.Z)((0,fe.Z)({},Qt),{},{valueEntities:new Map})},processEntity:function(Qt,Te){var Re=Qt.node[Ct.value];if(0)var _e;Te.valueEntities.set(Re,Qt)}});return vn},[le,Ct])},pt=St(49618),yt=St(11592),Pt=function(){return null},bt=Pt,Rt=["children","value"];function Ut(le){return(0,yt.Z)(le).map(function(Ct){if(!Ft.isValidElement(Ct)||!Ct.type)return null;var vn=Ct,Hn=vn.key,Qt=vn.props,Te=Qt.children,Re=Qt.value,_e=(0,qt.Z)(Qt,Rt),me=(0,fe.Z)({key:Hn,value:Re},_e),en=Ut(Te);return en.length&&(me.children=en),me}).filter(function(Ct){return Ct})}function ee(le){if(!le)return le;var Ct=(0,fe.Z)({},le);return"props"in Ct||Object.defineProperty(Ct,"props",{get:function(){return(0,He.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),Ct}}),Ct}function re(le,Ct,vn,Hn,Qt,Te){var Re=null,_e=null;function me(){function en(te){var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Vt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return te.map(function(Ve,an){var pn="".concat(Yt,"-").concat(an),We=Ve[Te.value],Sn=vn.includes(We),ai=en(Ve[Te.children]||[],pn,Sn),gn=Ft.createElement(bt,Ve,ai.map(function(Xt){return Xt.node}));if(Ct===We&&(Re=gn),Sn){var Qe={pos:pn,node:gn,children:ai};return Vt||_e.push(Qe),Qe}return null}).filter(function(Ve){return Ve})}_e||(_e=[],en(Hn),_e.sort(function(te,Yt){var Vt=te.node.props.value,Ve=Yt.node.props.value,an=vn.indexOf(Vt),pn=vn.indexOf(Ve);return an-pn}))}Object.defineProperty(le,"triggerNode",{get:function(){return(0,He.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),me(),Re}}),Object.defineProperty(le,"allCheckedNodes",{get:function(){return(0,He.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),me(),Qt?_e:_e.map(function(te){var Yt=te.node;return Yt})}})}var ie=function(le,Ct,vn){var Hn=vn.treeNodeFilterProp,Qt=vn.filterTreeNode,Te=vn.fieldNames,Re=Te.children;return Ft.useMemo(function(){if(!Ct||Qt===!1)return le;var _e;if(typeof Qt=="function")_e=Qt;else{var me=Ct.toUpperCase();_e=function(Yt,Vt){var Ve=Vt[Hn];return String(Ve).toUpperCase().includes(me)}}function en(te){var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return te.reduce(function(Vt,Ve){var an=Ve[Re],pn=Yt||_e(Ct,ee(Ve)),We=en(an||[],pn);return(pn||We.length)&&Vt.push((0,fe.Z)((0,fe.Z)({},Ve),{},(0,pt.Z)({isLeaf:void 0},Re,We))),Vt},[])}return en(le)},[le,Ct,Re,Hn,Qt])};function Me(le){var Ct=Ft.useRef();Ct.current=le;var vn=Ft.useCallback(function(){return Ct.current.apply(Ct,arguments)},[]);return vn}function pe(le,Ct){var vn=Ct.id,Hn=Ct.pId,Qt=Ct.rootPId,Te={},Re=[],_e=le.map(function(me){var en=(0,fe.Z)({},me),te=en[vn];return Te[te]=en,en.key=en.key||te,en});return _e.forEach(function(me){var en=me[Hn],te=Te[en];te&&(te.children=te.children||[],te.children.push(me)),(en===Qt||!te&&Qt===null)&&Re.push(me)}),Re}function Le(le,Ct,vn){return Ft.useMemo(function(){return le?vn?pe(le,(0,fe.Z)({id:"id",pId:"pId",rootPId:null},vn!==!0?vn:{})):le:Ut(Ct)},[Ct,vn,le])}var ge=Ft.createContext(null),je=ge,Je=St(10228),Cn=St(80547),hn=St(54844),Xn=Ft.createContext(null),Fe=Xn;function Zt(le){return Array.isArray(le)?le:le!==void 0?[le]:[]}function Ye(le){var Ct=le||{},vn=Ct.label,Hn=Ct.value,Qt=Ct.children,Te=Hn||"value";return{_title:vn?[vn]:["title","label"],value:Te,key:Te,children:Qt||"children"}}function kn(le){return!le||le.disabled||le.disableCheckbox||le.checkable===!1}function Tn(le,Ct){var vn=[];function Hn(Qt){Qt.forEach(function(Te){var Re=Te[Ct.children];Re&&(vn.push(Te[Ct.value]),Hn(Re))})}return Hn(le),vn}function Be(le){return le==null}var be={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Ke=function(Ct,vn){var Hn=(0,de.lk)(),Qt=Hn.prefixCls,Te=Hn.multiple,Re=Hn.searchValue,_e=Hn.toggleOpen,me=Hn.open,en=Hn.notFoundContent,te=Ft.useContext(Fe),Yt=te.virtual,Vt=te.listHeight,Ve=te.listItemHeight,an=te.treeData,pn=te.fieldNames,We=te.onSelect,Sn=te.dropdownMatchSelectWidth,ai=te.treeExpandAction,gn=Ft.useContext(je),Qe=gn.checkable,Xt=gn.checkedKeys,dn=gn.halfCheckedKeys,De=gn.treeExpandedKeys,Xe=gn.treeDefaultExpandAll,he=gn.treeDefaultExpandedKeys,Pe=gn.onTreeExpand,fn=gn.treeIcon,Di=gn.showTreeIcon,oi=gn.switcherIcon,ii=gn.treeLine,Bn=gn.treeNodeFilterProp,Kn=gn.loadData,ki=gn.treeLoadedKeys,bi=gn.treeMotion,Hi=gn.onTreeLoad,yn=gn.keyEntities,uo=Ft.useRef(),Qi=(0,Cn.Z)(function(){return an},[me,an],function(Po,eo){return eo[0]&&Po[1]!==eo[1]}),io=Ft.useState(null),sn=(0,ve.Z)(io,2),Gn=sn[0],wi=sn[1],ji=yn[Gn],Ci=Ft.useMemo(function(){return Qe?{checked:Xt,halfChecked:dn}:null},[Qe,Xt,dn]);Ft.useEffect(function(){if(me&&!Te&&Xt.length){var Po;(Po=uo.current)===null||Po===void 0||Po.scrollTo({key:Xt[0]}),wi(Xt[0])}},[me]);var Ui=String(Re).toLowerCase(),so=function(eo){return Ui?String(eo[Bn]).toLowerCase().includes(Ui):!1},zi=Ft.useState(he),Ei=(0,ve.Z)(zi,2),Ki=Ei[0],Ln=Ei[1],ho=Ft.useState(null),bn=(0,ve.Z)(ho,2),ao=bn[0],Mo=bn[1],Ao=Ft.useMemo(function(){return De?(0,$e.Z)(De):Re?ao:Ki},[Ki,ao,De,Re]);Ft.useEffect(function(){Re&&Mo(Tn(an,pn))},[Re]);var Uo=function(eo){Ln(eo),Mo(eo),Pe&&Pe(eo)},So=function(eo){eo.preventDefault()},di=function(eo,hi){var Ot=hi.node;Qe&&kn(Ot)||(We(Ot.key,{selected:!Xt.includes(Ot.key)}),Te||_e(!1))};if(Ft.useImperativeHandle(vn,function(){var Po;return{scrollTo:(Po=uo.current)===null||Po===void 0?void 0:Po.scrollTo,onKeyDown:function(hi){var Ot,lr=hi.which;switch(lr){case Je.Z.UP:case Je.Z.DOWN:case Je.Z.LEFT:case Je.Z.RIGHT:(Ot=uo.current)===null||Ot===void 0||Ot.onKeyDown(hi);break;case Je.Z.ENTER:{if(ji){var Yo=(ji==null?void 0:ji.node)||{},tr=Yo.selectable,_t=Yo.value;tr!==!1&&di(null,{node:{key:Gn},selected:!Xt.includes(_t)})}break}case Je.Z.ESC:_e(!1)}},onKeyUp:function(){}}}),Qi.length===0)return Ft.createElement("div",{role:"listbox",className:"".concat(Qt,"-empty"),onMouseDown:So},en);var _i={fieldNames:pn};return ki&&(_i.loadedKeys=ki),Ao&&(_i.expandedKeys=Ao),Ft.createElement("div",{onMouseDown:So},ji&&me&&Ft.createElement("span",{style:be,"aria-live":"assertive"},ji.node.value),Ft.createElement(hn.Z,(0,ae.Z)({ref:uo,focusable:!1,prefixCls:"".concat(Qt,"-tree"),treeData:Qi,height:Vt,itemHeight:Ve,virtual:Yt!==!1&&Sn!==!1,multiple:Te,icon:fn,showIcon:Di,switcherIcon:oi,showLine:ii,loadData:Re?null:Kn,motion:bi,activeKey:Gn,checkable:Qe,checkStrictly:!0,checkedKeys:Ci,selectedKeys:Qe?[]:Xt,defaultExpandAll:Xe},_i,{onActiveChange:wi,onSelect:di,onCheck:di,onExpand:Uo,onLoad:Hi,filterTreeNode:so,expandAction:ai})))},jn=Ft.forwardRef(Ke);jn.displayName="OptionList";var Wn=jn,An="SHOW_ALL",oe="SHOW_PARENT",cn="SHOW_CHILD";function wn(le,Ct,vn,Hn){var Qt=new Set(le);return Ct===cn?le.filter(function(Te){var Re=vn[Te];return!(Re&&Re.children&&Re.children.some(function(_e){var me=_e.node;return Qt.has(me[Hn.value])})&&Re.children.every(function(_e){var me=_e.node;return kn(me)||Qt.has(me[Hn.value])}))}):Ct===oe?le.filter(function(Te){var Re=vn[Te],_e=Re?Re.parent:null;return!(_e&&!kn(_e.node)&&Qt.has(_e.key))}):le}function Fn(le){var Ct=le.searchPlaceholder,vn=le.treeCheckStrictly,Hn=le.treeCheckable,Qt=le.labelInValue,Te=le.value,Re=le.multiple;warning(!Ct,"`searchPlaceholder` has been removed."),vn&&Qt===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(Qt||vn)&&warning(toArray(Te).every(function(_e){return _e&&_typeof(_e)==="object"&&"value"in _e}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),vn||Re||Hn?warning(!Te||Array.isArray(Te),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(Te),"`value` should not be array when `TreeSelect` is single mode.")}var mn=null,Dn=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"];function rn(le){return!le||(0,Oe.Z)(le)!=="object"}var ce=Ft.forwardRef(function(le,Ct){var vn=le.id,Hn=le.prefixCls,Qt=Hn===void 0?"rc-tree-select":Hn,Te=le.value,Re=le.defaultValue,_e=le.onChange,me=le.onSelect,en=le.onDeselect,te=le.searchValue,Yt=le.inputValue,Vt=le.onSearch,Ve=le.autoClearSearchValue,an=Ve===void 0?!0:Ve,pn=le.filterTreeNode,We=le.treeNodeFilterProp,Sn=We===void 0?"value":We,ai=le.showCheckedStrategy,gn=le.treeNodeLabelProp,Qe=le.multiple,Xt=le.treeCheckable,dn=le.treeCheckStrictly,De=le.labelInValue,Xe=le.fieldNames,he=le.treeDataSimpleMode,Pe=le.treeData,fn=le.children,Di=le.loadData,oi=le.treeLoadedKeys,ii=le.onTreeLoad,Bn=le.treeDefaultExpandAll,Kn=le.treeExpandedKeys,ki=le.treeDefaultExpandedKeys,bi=le.onTreeExpand,Hi=le.treeExpandAction,yn=le.virtual,uo=le.listHeight,Qi=uo===void 0?200:uo,io=le.listItemHeight,sn=io===void 0?20:io,Gn=le.onDropdownVisibleChange,wi=le.dropdownMatchSelectWidth,ji=wi===void 0?!0:wi,Ci=le.treeLine,Ui=le.treeIcon,so=le.showTreeIcon,zi=le.switcherIcon,Ei=le.treeMotion,Ki=(0,qt.Z)(le,Dn),Ln=(0,Ce.ZP)(vn),ho=Xt&&!dn,bn=Xt||dn,ao=dn||De,Mo=bn||Qe,Ao=(0,ze.Z)(Re,{value:Te}),Uo=(0,ve.Z)(Ao,2),So=Uo[0],di=Uo[1],_i=Ft.useMemo(function(){return Xt?ai||cn:An},[ai,Xt]),Po=Ft.useMemo(function(){return Ye(Xe)},[JSON.stringify(Xe)]),eo=(0,ze.Z)("",{value:te!==void 0?te:Yt,postState:function(zo){return zo||""}}),hi=(0,ve.Z)(eo,2),Ot=hi[0],lr=hi[1],Yo=function(zo){lr(zo),Vt==null||Vt(zo)},tr=Le(Pe,fn,he),_t=ut(tr,Po),Zn=_t.keyEntities,si=_t.valueEntities,Ii=Ft.useCallback(function(gr){var zo=[],nr=[];return gr.forEach(function(Xr){si.has(Xr)?nr.push(Xr):zo.push(Xr)}),{missingRawValues:zo,existRawValues:nr}},[si]),_n=ie(tr,Ot,{fieldNames:Po,treeNodeFilterProp:Sn,filterTreeNode:pn}),Ai=Ft.useCallback(function(gr){if(gr){if(gn)return gr[gn];for(var zo=Po._title,nr=0;nr{const{componentCls:Ct,treePrefixCls:vn,colorBgElevated:Hn}=le,Qt=`.${vn}`;return[{[`${Ct}-dropdown`]:[{padding:`${le.paddingXS}px ${le.paddingXS/2}px`},(0,Eo.Yk)(vn,(0,Ji.TS)(le,{colorBgContainer:Hn})),{[Qt]:{borderRadius:0,[`${Qt}-list-holder-inner`]:{alignItems:"stretch",[`${Qt}-treenode`]:{[`${Qt}-node-content-wrapper`]:{flex:"auto"}}}}},(0,Bi.C2)(`${vn}-checkbox`,le),{"&-rtl":{direction:"rtl",[`${Qt}-switcher${Qt}-switcher_close`]:{[`${Qt}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function Lo(le,Ct){return(0,ro.Z)("TreeSelect",vn=>{const Hn=(0,Ji.TS)(vn,{treePrefixCls:Ct});return[Zo(Hn)]},Eo.TM)(le)}var qn=function(le,Ct){var vn={};for(var Hn in le)Object.prototype.hasOwnProperty.call(le,Hn)&&Ct.indexOf(Hn)<0&&(vn[Hn]=le[Hn]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qt=0,Hn=Object.getOwnPropertySymbols(le);Qt{var vn,{prefixCls:Hn,size:Qt,disabled:Te,bordered:Re=!0,className:_e,rootClassName:me,treeCheckable:en,multiple:te,listHeight:Yt=256,listItemHeight:Vt=26,placement:Ve,notFoundContent:an,switcherIcon:pn,treeLine:We,getPopupContainer:Sn,popupClassName:ai,dropdownClassName:gn,treeIcon:Qe=!1,transitionName:Xt,choiceTransitionName:dn="",status:De,treeExpandAction:Xe,builtinPlacements:he,dropdownMatchSelectWidth:Pe,popupMatchSelectWidth:fn,allowClear:Di}=le,oi=qn(le,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear"]);const{getPopupContainer:ii,getPrefixCls:Bn,renderEmpty:Kn,direction:ki,virtual:bi,popupMatchSelectWidth:Hi,popupOverflow:yn}=Ft.useContext(At.E_),uo=Bn(),Qi=Bn("select",Hn),io=Bn("select-tree",Hn),sn=Bn("tree-select",Hn),{compactSize:Gn,compactItemClassnames:wi}=(0,xi.ri)(Qi,ki),[ji,Ci]=(0,En.Z)(Qi),[Ui]=Lo(sn,io),so=Tt()(ai||gn,`${sn}-dropdown`,{[`${sn}-dropdown-rtl`]:ki==="rtl"},me,Ci),zi=!!(en||te),Ei=(0,Pn.Z)(oi.suffixIcon,oi.showArrow),Ki=(vn=fn!=null?fn:Pe)!==null&&vn!==void 0?vn:Hi,{status:Ln,hasFeedback:ho,isFormItemInput:bn,feedbackIcon:ao}=Ft.useContext(Ae.aM),Mo=(0,wt.F)(Ln,De),{suffixIcon:Ao,removeIcon:Uo,clearIcon:So}=(0,$n.Z)(Object.assign(Object.assign({},oi),{multiple:zi,showSuffixIcon:Ei,hasFeedback:ho,feedbackIcon:ao,prefixCls:Qi,componentName:"TreeSelect"})),di=Di===!0?{clearIcon:So}:Di;let _i;an!==void 0?_i=an:_i=(Kn==null?void 0:Kn("Select"))||Ft.createElement(jt.Z,{componentName:"Select"});const Po=(0,ke.Z)(oi,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon"]),eo=Ft.useMemo(()=>Ve!==void 0?Ve:ki==="rtl"?"bottomRight":"bottomLeft",[Ve,ki]),hi=(0,Rn.Z)(he,yn),Ot=(0,Mt.Z)(si=>{var Ii;return(Ii=Qt!=null?Qt:Gn)!==null&&Ii!==void 0?Ii:si}),lr=Ft.useContext(Bt.Z),Yo=Te!=null?Te:lr,tr=Tt()(!Hn&&sn,{[`${Qi}-lg`]:Ot==="large",[`${Qi}-sm`]:Ot==="small",[`${Qi}-rtl`]:ki==="rtl",[`${Qi}-borderless`]:!Re,[`${Qi}-in-form-item`]:bn},(0,wt.Z)(Qi,Mo,ho),wi,_e,me,Ci),_t=si=>Ft.createElement(Fi.Z,{prefixCls:io,switcherIcon:pn,treeNodeProps:si,showLine:We}),Zn=Ft.createElement(Ee,Object.assign({virtual:bi,disabled:Yo},Po,{dropdownMatchSelectWidth:Ki,builtinPlacements:hi,ref:Ct,prefixCls:Qi,className:tr,listHeight:Yt,listItemHeight:Vt,treeCheckable:en&&Ft.createElement("span",{className:`${Qi}-tree-checkbox-inner`}),treeLine:!!We,suffixIcon:Ao,multiple:zi,placement:eo,removeIcon:Uo,allowClear:di,switcherIcon:_t,showTreeIcon:Qe,notFoundContent:_i,getPopupContainer:Sn||ii,treeMotion:null,dropdownClassName:so,choiceTransitionName:(0,Dt.m)(uo,"",dn),transitionName:(0,Dt.m)(uo,"slide-up",Xt),treeExpandAction:Xe}));return ji(Ui(Zn))},Jn=Ft.forwardRef($t),zt=(0,ln.Z)(Jn);Jn.TreeNode=bt,Jn.SHOW_ALL=An,Jn.SHOW_PARENT=oe,Jn.SHOW_CHILD=cn,Jn._InternalPanelDoNotUseOrYouWillBeFired=zt;var Mn=Jn},48066:function(un,Yn,St){"use strict";St.d(Yn,{default:function(){return Hn}});var ot=St(59301),Tt=St(40001),ae=St(81953),$e=St(72308),fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},ve=fe,qt=St(7657),Oe=function(Te,Re){return ot.createElement(qt.Z,(0,$e.Z)({},Te,{ref:Re,icon:ve}))},de=ot.forwardRef(Oe),Ce=de,xe=St(92310),ze=St.n(xe),He=St(25769),Ft=St.n(He),nt=St(29301),et=St(11592),ct=St(34280),ut=St(18929),pt=St(2738),yt=St(8654),Pt=St(24514),bt=St(10228),Rt=function(Qt,Te){var Re={};for(var _e in Qt)Object.prototype.hasOwnProperty.call(Qt,_e)&&Te.indexOf(_e)<0&&(Re[_e]=Qt[_e]);if(Qt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,_e=Object.getOwnPropertySymbols(Qt);me<_e.length;me++)Te.indexOf(_e[me])<0&&Object.prototype.propertyIsEnumerable.call(Qt,_e[me])&&(Re[_e[me]]=Qt[_e[me]]);return Re};const Ut={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"};var re=ot.forwardRef((Qt,Te)=>{const Re=Ve=>{const{keyCode:an}=Ve;an===bt.Z.ENTER&&Ve.preventDefault()},_e=Ve=>{const{keyCode:an}=Ve,{onClick:pn}=Qt;an===bt.Z.ENTER&&pn&&pn()},{style:me,noStyle:en,disabled:te}=Qt,Yt=Rt(Qt,["style","noStyle","disabled"]);let Vt={};return en||(Vt=Object.assign({},Ut)),te&&(Vt.pointerEvents="none"),Vt=Object.assign(Object.assign({},Vt),me),ot.createElement("div",Object.assign({role:"button",tabIndex:0,ref:Te},Yt,{onKeyDown:Re,onKeyUp:_e,style:Vt}))}),ie=St(36355),Me=St(9763),pe=St(6848),Le={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},ge=Le,je=function(Te,Re){return ot.createElement(qt.Z,(0,$e.Z)({},Te,{ref:Re,icon:ge}))},Je=ot.forwardRef(je),Cn=Je,hn=St(92343),Xn=St(1643),Fe=St(15969),Zt=St(83116),Ye=St(93398);const kn=(Qt,Te,Re,_e)=>{const{titleMarginBottom:me,fontWeightStrong:en}=_e;return{marginBottom:me,color:Re,fontWeight:en,fontSize:Qt,lineHeight:Te}},Tn=Qt=>{const Te=[1,2,3,4,5],Re={};return Te.forEach(_e=>{Re[` h${_e}&, div&-h${_e}, div&-h${_e} > textarea, @@ -1154,15 +1154,15 @@ ${Hi}`),Bn=!1,Eo(!0),yn==="text"&&$n(uo=>uo+Hi)}),$t.current.on("done",bi=>{jt(H `:"")+"",newPos:ee?ot.Pos(Ft.line+1,0):ot.Pos(Ft.line,Ft.ch+1)}}for(var re=typeof ze=="object"&&ze.dontIndentOnAutoClose,He=Ce.length-1;He>=0;He--){var ie=xe[He];de.replaceRange(ie.text,Ce[He].head,Ce[He].anchor,"+insert");var Me=de.listSelections().slice(0);Me[He]={head:ie.newPos,anchor:ie.newPos},de.setSelections(Me),!re&&ie.indent&&(de.indentLine(ie.newPos.line,null,!0),de.indentLine(ie.newPos.line+1,null,!0))}}function fe(de,Ce){for(var xe=de.listSelections(),ze=[],He=Ce?"/":""&&(Pt+=">"),ze[et]=Pt}if(de.replaceSelections(ze),xe=de.listSelections(),!nt)for(var et=0;et=0&&Ce[ct]==xe;ct--)++et;ze=nt.to;for(var ct=1;ct=ct.max))return ct.ch=0,ct.text=ct.cm.getLine(++ct.line),!0}function Ce(ct){if(!(ct.line<=ct.min))return ct.text=ct.cm.getLine(--ct.line),ct.ch=ct.text.length,!0}function xe(ct){for(;;){var ut=ct.text.indexOf(">",ct.ch);if(ut==-1){if(de(ct))continue;return}if(!Oe(ct,ut+1)){ct.ch=ut+1;continue}var pt=ct.text.lastIndexOf("/",ut),yt=pt>-1&&!/\S/.test(ct.text.slice(pt+1,ut));return ct.ch=ut+1,yt?"selfClose":"regular"}}function ze(ct){for(;;){var ut=ct.ch?ct.text.lastIndexOf("<",ct.ch-1):-1;if(ut==-1){if(Ce(ct))continue;return}if(!Oe(ct,ut+1)){ct.ch=ut;continue}ve.lastIndex=ut,ct.ch=ut;var pt=ve.exec(ct.text);if(pt&&pt.index==ut)return pt}}function He(ct){for(;;){ve.lastIndex=ct.ch;var ut=ve.exec(ct.text);if(!ut){if(de(ct))continue;return}if(!Oe(ct,ut.index+1)){ct.ch=ut.index+1;continue}return ct.ch=ut.index+ut[0].length,ut}}function Ft(ct){for(;;){var ut=ct.ch?ct.text.lastIndexOf(">",ct.ch-1):-1;if(ut==-1){if(Ce(ct))continue;return}if(!Oe(ct,ut+1)){ct.ch=ut;continue}var pt=ct.text.lastIndexOf("/",ut),yt=pt>-1&&!/\S/.test(ct.text.slice(pt+1,ut));return ct.ch=ut+1,yt?"selfClose":"regular"}}function nt(ct,ut){for(var pt=[];;){var yt=He(ct),Pt,bt=ct.line,Rt=ct.ch-(yt?yt[0].length:0);if(!yt||!(Pt=xe(ct)))return;if(Pt!="selfClose")if(yt[1]){for(var Ut=pt.length-1;Ut>=0;--Ut)if(pt[Ut]==yt[2]){pt.length=Ut;break}if(Ut<0&&(!ut||ut==yt[2]))return{tag:yt[2],from:Tt(bt,Rt),to:Tt(ct.line,ct.ch)}}else pt.push(yt[2])}}function et(ct,ut){for(var pt=[];;){var yt=Ft(ct);if(!yt)return;if(yt=="selfClose"){ze(ct);continue}var Pt=ct.line,bt=ct.ch,Rt=ze(ct);if(!Rt)return;if(Rt[1])pt.push(Rt[2]);else{for(var Ut=pt.length-1;Ut>=0;--Ut)if(pt[Ut]==Rt[2]){pt.length=Ut;break}if(Ut<0&&(!ut||ut==Rt[2]))return{tag:Rt[2],from:Tt(ct.line,ct.ch),to:Tt(Pt,bt)}}}}ot.registerHelper("fold","xml",function(ct,ut){for(var pt=new qt(ct,ut.line,0);;){var yt=He(pt);if(!yt||pt.line!=ut.line)return;var Pt=xe(pt);if(!Pt)return;if(!yt[1]&&Pt!="selfClose"){var bt=Tt(pt.line,pt.ch),Rt=nt(pt,yt[2]);return Rt&&ae(Rt.from,bt)>0?{from:bt,to:Rt.from}:null}}}),ot.findMatchingTag=function(ct,ut,pt){var yt=new qt(ct,ut.line,ut.ch,pt);if(!(yt.text.indexOf(">")==-1&&yt.text.indexOf("<")==-1)){var Pt=xe(yt),bt=Pt&&Tt(yt.line,yt.ch),Rt=Pt&&ze(yt);if(!(!Pt||!Rt||ae(yt,ut)>0)){var Ut={from:Tt(yt.line,yt.ch),to:bt,tag:Rt[2]};return Pt=="selfClose"?{open:Ut,close:null,at:"open"}:Rt[1]?{open:et(yt,Rt[2]),close:Ut,at:"close"}:(yt=new qt(ct,bt.line,bt.ch,pt),{open:Ut,close:nt(yt,Rt[2]),at:"open"})}}},ot.findEnclosingTag=function(ct,ut,pt,yt){for(var Pt=new qt(ct,ut.line,ut.ch,pt);;){var bt=et(Pt,yt);if(!bt)break;var Rt=new qt(ct,ut.line,ut.ch,pt),Ut=nt(Rt,bt.tag);if(Ut)return{open:bt,close:Ut}}},ot.scanForClosingTag=function(ct,ut,pt,yt){var Pt=new qt(ct,ut.line,ut.ch,yt?{from:0,to:yt}:null);return nt(Pt,pt)}})},89780:function(un){(function(Yn,St){un.exports=St()})(this,function(){"use strict";var Yn=navigator.userAgent,St=navigator.platform,ot=/gecko\/\d/i.test(Yn),Tt=/MSIE \d/.test(Yn),ae=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Yn),$e=/Edge\/(\d+)/.exec(Yn),fe=Tt||ae||$e,ve=fe&&(Tt?document.documentMode||6:+($e||ae)[1]),qt=!$e&&/WebKit\//.test(Yn),Oe=qt&&/Qt\/\d+\.\d+/.test(Yn),de=!$e&&/Chrome\//.test(Yn),Ce=/Opera\//.test(Yn),xe=/Apple Computer/.test(navigator.vendor),ze=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Yn),He=/PhantomJS/.test(Yn),Ft=!$e&&/AppleWebKit/.test(Yn)&&/Mobile\/\w+/.test(Yn),nt=/Android/.test(Yn),et=Ft||nt||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Yn),ct=Ft||/Mac/.test(St),ut=/\bCrOS\b/.test(Yn),pt=/win/i.test(St),yt=Ce&&Yn.match(/Version\/(\d*\.\d*)/);yt&&(yt=Number(yt[1])),yt&&yt>=15&&(Ce=!1,qt=!0);var Pt=ct&&(Oe||Ce&&(yt==null||yt<12.11)),bt=ot||fe&&ve>=9;function Rt(it){return new RegExp("(^|\\s)"+it+"(?:$|\\s)\\s*")}var Ut=function(it,st){var gt=it.className,dt=Rt(st).exec(gt);if(dt){var mt=gt.slice(dt.index+dt[0].length);it.className=gt.slice(0,dt.index)+(mt?dt[1]+mt:"")}};function ee(it){for(var st=it.childNodes.length;st>0;--st)it.removeChild(it.firstChild);return it}function re(it,st){return ee(it).appendChild(st)}function ie(it,st,gt,dt){var mt=document.createElement(it);if(gt&&(mt.className=gt),dt&&(mt.style.cssText=dt),typeof st=="string")mt.appendChild(document.createTextNode(st));else if(st)for(var It=0;It=st)return Nt+(st-It);Nt+=Gt-It,Nt+=gt-Nt%gt,It=Gt+1}}var Zt=function(){this.id=null,this.f=null,this.time=0,this.handler=hn(this.onTimeout,this)};Zt.prototype.onTimeout=function(it){it.id=0,it.time<=+new Date?it.f():setTimeout(it.handler,it.time-+new Date)},Zt.prototype.set=function(it,st){this.f=st;var gt=+new Date+it;(!this.id||gt=st)return dt+Math.min(Nt,st-mt);if(mt+=It-dt,mt+=gt-mt%gt,dt=It+1,mt>=st)return dt}}var Wn=[""];function An(it){for(;Wn.length<=it;)Wn.push(oe(Wn)+" ");return Wn[it]}function oe(it){return it[it.length-1]}function cn(it,st){for(var gt=[],dt=0;dt"\x80"&&(it.toUpperCase()!=it.toLowerCase()||Dn.test(it))}function ce(it,st){return st?st.source.indexOf("\\w")>-1&&rn(it)?!0:st.test(it):rn(it)}function Kt(it){for(var st in it)if(it.hasOwnProperty(st)&&it[st])return!1;return!0}var we=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Ee(it){return it.charCodeAt(0)>=768&&we.test(it)}function ke(it,st,gt){for(;(gt<0?st>0:stgt?-1:1;;){if(st==gt)return st;var mt=(st+gt)/2,It=dt<0?Math.ceil(mt):Math.floor(mt);if(It==st)return it(It)?st:gt;it(It)?gt=It:st=It+dt}}function Dt(it,st,gt,dt){if(!it)return dt(st,gt,"ltr",0);for(var mt=!1,It=0;Itst||st==gt&&Nt.to==st)&&(dt(Math.max(Nt.from,st),Math.min(Nt.to,gt),Nt.level==1?"rtl":"ltr",It),mt=!0)}mt||dt(st,gt,"ltr")}var wt=null;function At(it,st,gt){var dt;wt=null;for(var mt=0;mtst)return mt;It.to==st&&(It.from!=It.to&>=="before"?dt=mt:wt=mt),It.from==st&&(It.from!=It.to&>!="before"?dt=mt:wt=mt)}return dt!=null?dt:wt}var Bt=function(){var it="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",st="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function gt(ue){return ue<=247?it.charAt(ue):1424<=ue&&ue<=1524?"R":1536<=ue&&ue<=1785?st.charAt(ue-1536):1774<=ue&&ue<=2220?"r":8192<=ue&&ue<=8203?"w":ue==8204?"b":"L"}var dt=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,mt=/[stwN]/,It=/[LRr]/,Nt=/[Lb1n]/,Gt=/[1n]/;function Ht(ue,nn,Se){this.level=ue,this.from=nn,this.to=Se}return function(ue,nn){var Se=nn=="ltr"?"L":"R";if(ue.length==0||nn=="ltr"&&!dt.test(ue))return!1;for(var On=ue.length,In=[],vi=0;vi-1&&(dt[st]=mt.slice(0,It).concat(mt.slice(It+1)))}}}function Pn(it,st){var gt=En(it,st);if(gt.length)for(var dt=Array.prototype.slice.call(arguments,2),mt=0;mt0}function Bi(it){it.prototype.on=function(st,gt){Ae(this,st,gt)},it.prototype.off=function(st,gt){Rn(this,st,gt)}}function Ji(it){it.preventDefault?it.preventDefault():it.returnValue=!1}function ro(it){it.stopPropagation?it.stopPropagation():it.cancelBubble=!0}function Eo(it){return it.defaultPrevented!=null?it.defaultPrevented:it.returnValue==!1}function Zo(it){Ji(it),ro(it)}function Lo(it){return it.target||it.srcElement}function qn(it){var st=it.which;return st==null&&(it.button&1?st=1:it.button&2?st=3:it.button&4&&(st=2)),ct&&it.ctrlKey&&st==1&&(st=3),st}var $t=function(){if(fe&&ve<9)return!1;var it=ie("div");return"draggable"in it||"dragDrop"in it}(),tn;function Jn(it){if(tn==null){var st=ie("span","\u200B");re(it,ie("span",[st,document.createTextNode("x")])),it.firstChild.offsetHeight!=0&&(tn=st.offsetWidth<=1&&st.offsetHeight>2&&!(fe&&ve<8))}var gt=tn?ie("span","\u200B"):ie("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return gt.setAttribute("cm-text",""),gt}var zt;function Mn(it){if(zt!=null)return zt;var st=re(it,document.createTextNode("A\u062EA")),gt=pe(st,0,1).getBoundingClientRect(),dt=pe(st,1,2).getBoundingClientRect();return ee(it),!gt||gt.left==gt.right?!1:zt=dt.right-gt.right<3}var le=` b`.split(/\n/).length!=3?function(it){for(var st=0,gt=[],dt=it.length;st<=dt;){var mt=it.indexOf(` -`,st);mt==-1&&(mt=it.length);var It=it.slice(st,it.charAt(mt-1)=="\r"?mt-1:mt),Nt=It.indexOf("\r");Nt!=-1?(gt.push(It.slice(0,Nt)),st+=Nt+1):(gt.push(It),st=mt+1)}return gt}:function(it){return it.split(/\r\n?|\n/)},Ct=window.getSelection?function(it){try{return it.selectionStart!=it.selectionEnd}catch(st){return!1}}:function(it){var st;try{st=it.ownerDocument.selection.createRange()}catch(gt){}return!st||st.parentElement()!=it?!1:st.compareEndPoints("StartToEnd",st)!=0},vn=function(){var it=ie("div");return"oncopy"in it?!0:(it.setAttribute("oncopy","return;"),typeof it.oncopy=="function")}(),Hn=null;function Qt(it){if(Hn!=null)return Hn;var st=re(it,ie("span","x")),gt=st.getBoundingClientRect(),dt=pe(st,0,1).getBoundingClientRect();return Hn=Math.abs(gt.left-dt.left)>1}var Te={},Re={};function _e(it,st){arguments.length>2&&(st.dependencies=Array.prototype.slice.call(arguments,2)),Te[it]=st}function me(it,st){Re[it]=st}function en(it){if(typeof it=="string"&&Re.hasOwnProperty(it))it=Re[it];else if(it&&typeof it.name=="string"&&Re.hasOwnProperty(it.name)){var st=Re[it.name];typeof st=="string"&&(st={name:st}),it=mn(st,it),it.name=st.name}else{if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(it))return en("application/xml");if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(it))return en("application/json")}return typeof it=="string"?{name:it}:it||{name:"null"}}function te(it,st){st=en(st);var gt=Te[st.name];if(!gt)return te(it,"text/plain");var dt=gt(it,st);if(Yt.hasOwnProperty(st.name)){var mt=Yt[st.name];for(var It in mt)mt.hasOwnProperty(It)&&(dt.hasOwnProperty(It)&&(dt["_"+It]=dt[It]),dt[It]=mt[It])}if(dt.name=st.name,st.helperType&&(dt.helperType=st.helperType),st.modeProps)for(var Nt in st.modeProps)dt[Nt]=st.modeProps[Nt];return dt}var Yt={};function Vt(it,st){var gt=Yt.hasOwnProperty(it)?Yt[it]:Yt[it]={};Xn(st,gt)}function Ve(it,st){if(st===!0)return st;if(it.copyState)return it.copyState(st);var gt={};for(var dt in st){var mt=st[dt];mt instanceof Array&&(mt=mt.concat([])),gt[dt]=mt}return gt}function an(it,st){for(var gt;it.innerMode&&(gt=it.innerMode(st),!(!gt||gt.mode==it));)st=gt.state,it=gt.mode;return gt||{mode:it,state:st}}function pn(it,st,gt){return it.startState?it.startState(st,gt):!0}var We=function(it,st,gt){this.pos=this.start=0,this.string=it,this.tabSize=st||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=gt};We.prototype.eol=function(){return this.pos>=this.string.length},We.prototype.sol=function(){return this.pos==this.lineStart},We.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},We.prototype.next=function(){if(this.posst},We.prototype.eatSpace=function(){for(var it=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>it},We.prototype.skipToEnd=function(){this.pos=this.string.length},We.prototype.skipTo=function(it){var st=this.string.indexOf(it,this.pos);if(st>-1)return this.pos=st,!0},We.prototype.backUp=function(it){this.pos-=it},We.prototype.column=function(){return this.lastColumnPos0?null:(It&&st!==!1&&(this.pos+=It[0].length),It)}},We.prototype.current=function(){return this.string.slice(this.start,this.pos)},We.prototype.hideFirstChars=function(it,st){this.lineStart+=it;try{return st()}finally{this.lineStart-=it}},We.prototype.lookAhead=function(it){var st=this.lineOracle;return st&&st.lookAhead(it)},We.prototype.baseToken=function(){var it=this.lineOracle;return it&&it.baseToken(this.pos)};function Sn(it,st){if(st-=it.first,st<0||st>=it.size)throw new Error("There is no line "+(st+it.first)+" in the document.");for(var gt=it;!gt.lines;)for(var dt=0;;++dt){var mt=gt.children[dt],It=mt.chunkSize();if(st=it.first&&stgt?he(gt,Sn(it,gt).text.length):ki(st,Sn(it,st.line).text.length)}function ki(it,st){var gt=it.ch;return gt==null||gt>st?he(it.line,st):gt<0?he(it.line,0):it}function bi(it,st){for(var gt=[],dt=0;dtthis.maxLookAhead&&(this.maxLookAhead=it),st},yn.prototype.baseToken=function(it){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=it;)this.baseTokenPos+=2;var st=this.baseTokens[this.baseTokenPos+1];return{type:st&&st.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-it}},yn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},yn.fromSaved=function(it,st,gt){return st instanceof Hi?new yn(it,Ve(it.mode,st.state),gt,st.lookAhead):new yn(it,Ve(it.mode,st),gt)},yn.prototype.save=function(it){var st=it!==!1?Ve(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Hi(st,this.maxLookAhead):st};function uo(it,st,gt,dt){var mt=[it.state.modeGen],It={};so(it,st.text,it.doc.mode,gt,function(ue,nn){return mt.push(ue,nn)},It,dt);for(var Nt=gt.state,Gt=function(ue){gt.baseTokens=mt;var nn=it.state.overlays[ue],Se=1,On=0;gt.state=!0,so(it,st.text,nn.mode,gt,function(In,vi){for(var Si=Se;OnIn&&mt.splice(Se,1,In,mt[Se+1],Ti),Se+=2,On=Math.min(In,Ti)}if(vi)if(nn.opaque)mt.splice(Si,Se-Si,In,"overlay "+vi),Se=Si+2;else for(;Siit.options.maxHighlightLength&&Ve(it.doc.mode,dt.state),It=uo(it,st,dt);mt&&(dt.state=mt),st.stateAfter=dt.save(!mt),st.styles=It.styles,It.classes?st.styleClasses=It.classes:st.styleClasses&&(st.styleClasses=null),gt===it.doc.highlightFrontier&&(it.doc.modeFrontier=Math.max(it.doc.modeFrontier,++it.doc.highlightFrontier))}return st.styles}function io(it,st,gt){var dt=it.doc,mt=it.display;if(!dt.mode.startState)return new yn(dt,!0,st);var It=zi(it,st,gt),Nt=It>dt.first&&Sn(dt,It-1).stateAfter,Gt=Nt?yn.fromSaved(dt,Nt,It):new yn(dt,pn(dt.mode),It);return dt.iter(It,st,function(Ht){sn(it,Ht.text,Gt);var ue=Gt.line;Ht.stateAfter=ue==st-1||ue%5==0||ue>=mt.viewFrom&&uest.start)return It}throw new Error("Mode "+it.name+" failed to advance stream.")}var ji=function(it,st,gt){this.start=it.start,this.end=it.pos,this.string=it.current(),this.type=st||null,this.state=gt};function Ci(it,st,gt,dt){var mt=it.doc,It=mt.mode,Nt;st=Kn(mt,st);var Gt=Sn(mt,st.line),Ht=io(it,st.line,gt),ue=new We(Gt.text,it.options.tabSize,Ht),nn;for(dt&&(nn=[]);(dt||ue.posit.options.maxHighlightLength?(Gt=!1,Nt&&sn(it,st,dt,nn.pos),nn.pos=st.length,Se=null):Se=Ui(wi(gt,nn,dt.state,On),It),On){var In=On[0].name;In&&(Se="m-"+(Se?In+" "+Se:In))}if(!Gt||ue!=Se){for(;HtNt;--Gt){if(Gt<=It.first)return It.first;var Ht=Sn(It,Gt-1),ue=Ht.stateAfter;if(ue&&(!gt||Gt+(ue instanceof Hi?ue.lookAhead:0)<=It.modeFrontier))return Gt;var nn=Fe(Ht.text,null,it.options.tabSize);(mt==null||dt>nn)&&(mt=Gt-1,dt=nn)}return mt}function Ei(it,st){if(it.modeFrontier=Math.min(it.modeFrontier,st),!(it.highlightFrontiergt;dt--){var mt=Sn(it,dt).stateAfter;if(mt&&(!(mt instanceof Hi)||dt+mt.lookAhead=st:It.to>st);(dt||(dt=[])).push(new ao(Nt,It.from,Ht?null:It.to))}}return dt}function di(it,st,gt){var dt;if(it)for(var mt=0;mt=st:It.to>st);if(Gt||It.from==st&&Nt.type=="bookmark"&&(!gt||It.marker.insertLeft)){var Ht=It.from==null||(Nt.inclusiveLeft?It.from<=st:It.from0&&Gt)for(var ko=0;ko0)){var nn=[Ht,1],Se=Pe(ue.from,Gt.from),On=Pe(ue.to,Gt.to);(Se<0||!Nt.inclusiveLeft&&!Se)&&nn.push({from:ue.from,to:Gt.from}),(On>0||!Nt.inclusiveRight&&!On)&&nn.push({from:Gt.to,to:ue.to}),mt.splice.apply(mt,nn),Ht+=nn.length-3}}return mt}function hi(it){var st=it.markedSpans;if(st){for(var gt=0;gtst)&&(!dt||tr(dt,It.marker)<0)&&(dt=It.marker)}return dt}function _n(it,st,gt,dt,mt){var It=Sn(it,st),Nt=Ln&&It.markedSpans;if(Nt)for(var Gt=0;Gt=0&&Se<=0||nn<=0&&Se>=0)&&(nn<=0&&(Ht.marker.inclusiveRight&&mt.inclusiveLeft?Pe(ue.to,gt)>=0:Pe(ue.to,gt)>0)||nn>=0&&(Ht.marker.inclusiveRight&&mt.inclusiveLeft?Pe(ue.from,dt)<=0:Pe(ue.from,dt)<0)))return!0}}}function Ai(it){for(var st;st=Zn(it);)it=st.find(-1,!0).line;return it}function pi(it){for(var st;st=si(it);)it=st.find(1,!0).line;return it}function mi(it){for(var st,gt;st=si(it);)it=st.find(1,!0).line,(gt||(gt=[])).push(it);return gt}function ei(it,st){var gt=Sn(it,st),dt=Ai(gt);return gt==dt?st:Xt(dt)}function gi(it,st){if(st>it.lastLine())return st;var gt=Sn(it,st),dt;if(!Nn(it,gt))return st;for(;dt=si(gt);)gt=dt.find(1,!0).line;return Xt(gt)+1}function Nn(it,st){var gt=Ln&&st.markedSpans;if(gt){for(var dt=void 0,mt=0;mtst.maxLineLength&&(st.maxLineLength=mt,st.maxLine=dt)})}var po=function(it,st,gt){this.text=it,Ot(this,st),this.height=gt?gt(this):1};po.prototype.lineNo=function(){return Xt(this)},Bi(po);function co(it,st,gt,dt){it.text=st,it.stateAfter&&(it.stateAfter=null),it.styles&&(it.styles=null),it.order!=null&&(it.order=null),hi(it),Ot(it,gt);var mt=dt?dt(it):1;mt!=it.height&&Qe(it,mt)}function or(it){it.parent=null,hi(it)}var ia={},ha={};function ga(it,st){if(!it||/^\s*$/.test(it))return null;var gt=st.addModeClass?ha:ia;return gt[it]||(gt[it]=it.replace(/\S+/g,"cm-$&"))}function on(it,st){var gt=Me("span",null,null,qt?"padding-right: .1px":null),dt={pre:Me("pre",[gt],"CodeMirror-line"),content:gt,col:0,pos:0,cm:it,trailingSpace:!1,splitSpaces:it.getOption("lineWrapping")};st.measure={};for(var mt=0;mt<=(st.rest?st.rest.length:0);mt++){var It=mt?st.rest[mt-1]:st.line,Nt=void 0;dt.pos=0,dt.addToken=Ks,Mn(it.display.measure)&&(Nt=jt(It,it.doc.direction))&&(dt.addToken=Ll(dt.addToken,Nt)),dt.map=[];var Gt=st!=it.display.externalMeasured&&Xt(It);Fs(It,dt,Qi(it,It,Gt)),It.styleClasses&&(It.styleClasses.bgClass&&(dt.bgClass=Je(It.styleClasses.bgClass,dt.bgClass||"")),It.styleClasses.textClass&&(dt.textClass=Je(It.styleClasses.textClass,dt.textClass||""))),dt.map.length==0&&dt.map.push(0,0,dt.content.appendChild(Jn(it.display.measure))),mt==0?(st.measure.map=dt.map,st.measure.cache={}):((st.measure.maps||(st.measure.maps=[])).push(dt.map),(st.measure.caches||(st.measure.caches=[])).push({}))}if(qt){var Ht=dt.content.lastChild;(/\bcm-tab\b/.test(Ht.className)||Ht.querySelector&&Ht.querySelector(".cm-tab"))&&(dt.content.className="cm-tab-wrap-hack")}return Pn(it,"renderLine",it,st.line,dt.pre),dt.pre.className&&(dt.textClass=Je(dt.pre.className,dt.textClass||"")),dt}function ca(it){var st=ie("span","\u2022","cm-invalidchar");return st.title="\\u"+it.charCodeAt(0).toString(16),st.setAttribute("aria-label",st.title),st}function Ks(it,st,gt,dt,mt,It,Nt){if(st){var Gt=it.splitSpaces?$a(st,it.trailingSpace):st,Ht=it.cm.state.specialChars,ue=!1,nn;if(!Ht.test(st))it.col+=st.length,nn=document.createTextNode(Gt),it.map.push(it.pos,it.pos+st.length,nn),fe&&ve<9&&(ue=!0),it.pos+=st.length;else{nn=document.createDocumentFragment();for(var Se=0;;){Ht.lastIndex=Se;var On=Ht.exec(st),In=On?On.index-Se:st.length-Se;if(In){var vi=document.createTextNode(Gt.slice(Se,Se+In));fe&&ve<9?nn.appendChild(ie("span",[vi])):nn.appendChild(vi),it.map.push(it.pos,it.pos+In,vi),it.col+=In,it.pos+=In}if(!On)break;Se+=In+1;var Si=void 0;if(On[0]==" "){var Ti=it.cm.options.tabSize,no=Ti-it.col%Ti;Si=nn.appendChild(ie("span",An(no),"cm-tab")),Si.setAttribute("role","presentation"),Si.setAttribute("cm-text"," "),it.col+=no}else On[0]=="\r"||On[0]==` -`?(Si=nn.appendChild(ie("span",On[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Si.setAttribute("cm-text",On[0]),it.col+=1):(Si=it.cm.options.specialCharPlaceholder(On[0]),Si.setAttribute("cm-text",On[0]),fe&&ve<9?nn.appendChild(ie("span",[Si])):nn.appendChild(Si),it.col+=1);it.map.push(it.pos,it.pos+1,Si),it.pos++}}if(it.trailingSpace=Gt.charCodeAt(st.length-1)==32,gt||dt||mt||ue||It||Nt){var Io=gt||"";dt&&(Io+=dt),mt&&(Io+=mt);var yo=ie("span",[nn],Io,It);if(Nt)for(var ko in Nt)Nt.hasOwnProperty(ko)&&ko!="style"&&ko!="class"&&yo.setAttribute(ko,Nt[ko]);return it.content.appendChild(yo)}it.content.appendChild(nn)}}function $a(it,st){if(it.length>1&&!/ /.test(it))return it;for(var gt=st,dt="",mt=0;mtue&&Se.from<=ue));On++);if(Se.to>=nn)return it(gt,dt,mt,It,Nt,Gt,Ht);it(gt,dt.slice(0,Se.to-ue),mt,It,null,Gt,Ht),It=null,dt=dt.slice(Se.to-ue),ue=Se.to}}}function Yr(it,st,gt,dt){var mt=!dt&>.widgetNode;mt&&it.map.push(it.pos,it.pos+st,mt),!dt&&it.cm.display.input.needsContentAttribute&&(mt||(mt=it.content.appendChild(document.createElement("span"))),mt.setAttribute("cm-marker",gt.id)),mt&&(it.cm.display.input.setUneditable(mt),it.content.appendChild(mt)),it.pos+=st,it.trailingSpace=!1}function Fs(it,st,gt){var dt=it.markedSpans,mt=it.text,It=0;if(!dt){for(var Nt=1;NtHt||vr.collapsed&&mo.to==Ht&&mo.from==Ht)){if(mo.to!=null&&mo.to!=Ht&&In>mo.to&&(In=mo.to,Si=""),vr.className&&(vi+=" "+vr.className),vr.css&&(On=(On?On+";":"")+vr.css),vr.startStyle&&mo.from==Ht&&(Ti+=" "+vr.startStyle),vr.endStyle&&mo.to==In&&(ko||(ko=[])).push(vr.endStyle,mo.to),vr.title&&((Io||(Io={})).title=vr.title),vr.attributes)for(var pa in vr.attributes)(Io||(Io={}))[pa]=vr.attributes[pa];vr.collapsed&&(!no||tr(no.marker,vr)<0)&&(no=mo)}else mo.from>Ht&&In>mo.from&&(In=mo.from)}if(ko)for(var hs=0;hs=Gt)break;for(var cl=Math.min(Gt,In);;){if(nn){var Gs=Ht+nn.length;if(!no){var is=Gs>cl?nn.slice(0,cl-Ht):nn;st.addToken(st,is,Se?Se+vi:vi,Ti,Ht+is.length==In?Si:"",On,Io)}if(Gs>=cl){nn=nn.slice(cl-Ht),Ht=cl;break}Ht=Gs,Ti=""}nn=mt.slice(It,It=gt[ue++]),Se=ga(gt[ue++],st.cm.options)}}}function gr(it,st,gt){this.line=st,this.rest=mi(st),this.size=this.rest?Xt(oe(this.rest))-gt+1:1,this.node=this.text=null,this.hidden=Nn(it,st)}function zo(it,st,gt){for(var dt=[],mt,It=st;It2&&It.push((Ht.bottom+ue.top)/2-gt.top)}}It.push(gt.bottom-gt.top)}}function Ko(it,st,gt){if(it.line==st)return{map:it.measure.map,cache:it.measure.cache};for(var dt=0;dtgt)return{map:it.measure.maps[mt],cache:it.measure.caches[mt],before:!0}}function ar(it,st){st=Ai(st);var gt=Xt(st),dt=it.display.externalMeasured=new gr(it.doc,st,gt);dt.lineN=gt;var mt=dt.built=on(it,dt);return dt.text=mt.pre,re(it.display.lineMeasure,mt.pre),dt}function Ir(it,st,gt,dt){return qr(it,Zr(it,st),gt,dt)}function sr(it,st){if(st>=it.display.viewFrom&&st=gt.lineN&&stst)&&(It=Ht-Gt,mt=It-1,st>=Ht&&(Nt="right")),mt!=null){if(dt=it[ue+2],Gt==Ht&>==(dt.insertLeft?"left":"right")&&(Nt=gt),gt=="left"&&mt==0)for(;ue&&it[ue-2]==it[ue-3]&&it[ue-1].insertLeft;)dt=it[(ue-=3)+2],Nt="left";if(gt=="right"&&mt==Ht-Gt)for(;ue=0&&(gt=it[mt]).left==gt.right;mt--);return gt}function da(it,st,gt,dt){var mt=Ba(st.map,gt,dt),It=mt.node,Nt=mt.start,Gt=mt.end,Ht=mt.collapse,ue;if(It.nodeType==3){for(var nn=0;nn<4;nn++){for(;Nt&&Ee(st.line.text.charAt(mt.coverStart+Nt));)--Nt;for(;mt.coverStart+Gt0&&(Ht=dt="right");var Se;it.options.lineWrapping&&(Se=It.getClientRects()).length>1?ue=Se[dt=="right"?Se.length-1:0]:ue=It.getBoundingClientRect()}if(fe&&ve<9&&!Nt&&(!ue||!ue.left&&!ue.right)){var On=It.parentNode.getClientRects()[0];On?ue={left:On.left,right:On.left+th(it.display),top:On.top,bottom:On.bottom}:ue=es}for(var In=ue.top-st.rect.top,vi=ue.bottom-st.rect.top,Si=(In+vi)/2,Ti=st.view.measure.heights,no=0;no=dt.text.length?(Ht=dt.text.length,ue="before"):Ht<=0&&(Ht=0,ue="after"),!Gt)return Nt(ue=="before"?Ht-1:Ht,ue=="before");function nn(vi,Si,Ti){var no=Gt[Si],Io=no.level==1;return Nt(Ti?vi-1:vi,Io!=Ti)}var Se=At(Gt,Ht,ue),On=wt,In=nn(Ht,Se,ue=="before");return On!=null&&(In.other=nn(Ht,On,ue!="before")),In}function Ad(it,st){var gt=0;st=Kn(it.doc,st),it.options.lineWrapping||(gt=th(it.display)*st.ch);var dt=Sn(it.doc,st.line),mt=Wi(dt)+Ka(it.display);return{left:gt,right:gt,top:mt,bottom:mt+dt.height}}function zc(it,st,gt,dt,mt){var It=he(it,st,gt);return It.xRel=mt,dt&&(It.outside=dt),It}function Cd(it,st,gt){var dt=it.doc;if(gt+=it.display.viewOffset,gt<0)return zc(dt.first,0,null,-1,-1);var mt=dn(dt,gt),It=dt.first+dt.size-1;if(mt>It)return zc(dt.first+dt.size-1,Sn(dt,It).text.length,null,1,1);st<0&&(st=0);for(var Nt=Sn(dt,mt);;){var Gt=Qn(it,Nt,mt,st,gt),Ht=Ii(Nt,Gt.ch+(Gt.xRel>0||Gt.outside>0?1:0));if(!Ht)return Gt;var ue=Ht.find(1);if(ue.line==mt)return ue;Nt=Sn(dt,mt=ue.line)}}function vo(it,st,gt,dt){dt-=ba(st);var mt=st.text.length,It=ln(function(Nt){return qr(it,gt,Nt-1).bottom<=dt},mt,0);return mt=ln(function(Nt){return qr(it,gt,Nt).top>dt},It,mt),{begin:It,end:mt}}function lg(it,st,gt,dt){gt||(gt=Zr(it,st));var mt=Ea(it,st,qr(it,gt,dt),"line").top;return vo(it,st,gt,mt)}function Ie(it,st,gt,dt){return it.bottom<=gt?!1:it.top>gt?!0:(dt?it.left:it.right)>st}function Qn(it,st,gt,dt,mt){mt-=Wi(st);var It=Zr(it,st),Nt=ba(st),Gt=0,Ht=st.text.length,ue=!0,nn=jt(st,it.doc.direction);if(nn){var Se=(it.options.lineWrapping?hg:ug)(it,st,gt,It,nn,dt,mt);ue=Se.level!=1,Gt=ue?Se.from:Se.to-1,Ht=ue?Se.to:Se.from-1}var On=null,In=null,vi=ln(function(er){var mo=qr(it,It,er);return mo.top+=Nt,mo.bottom+=Nt,Ie(mo,dt,mt,!1)?(mo.top<=mt&&mo.left<=dt&&(On=er,In=mo),!0):!1},Gt,Ht),Si,Ti,no=!1;if(In){var Io=dt-In.left=ko.bottom?1:0}return vi=ke(st.text,vi,1),zc(gt,vi,Ti,no,dt-Si)}function ug(it,st,gt,dt,mt,It,Nt){var Gt=ln(function(Se){var On=mt[Se],In=On.level!=1;return Ie(fa(it,he(gt,In?On.to:On.from,In?"before":"after"),"line",st,dt),It,Nt,!0)},0,mt.length-1),Ht=mt[Gt];if(Gt>0){var ue=Ht.level!=1,nn=fa(it,he(gt,ue?Ht.from:Ht.to,ue?"after":"before"),"line",st,dt);Ie(nn,It,Nt,!0)&&nn.top>Nt&&(Ht=mt[Gt-1])}return Ht}function hg(it,st,gt,dt,mt,It,Nt){var Gt=vo(it,st,dt,Nt),Ht=Gt.begin,ue=Gt.end;/\s/.test(st.text.charAt(ue-1))&&ue--;for(var nn=null,Se=null,On=0;On=ue||In.to<=Ht)){var vi=In.level!=1,Si=qr(it,dt,vi?Math.min(ue,In.to)-1:Math.max(Ht,In.from)).right,Ti=SiTi)&&(nn=In,Se=Ti)}}return nn||(nn=mt[mt.length-1]),nn.fromue&&(nn={from:nn.from,to:ue,level:nn.level}),nn}var Su;function xu(it){if(it.cachedTextHeight!=null)return it.cachedTextHeight;if(Su==null){Su=ie("pre",null,"CodeMirror-line-like");for(var st=0;st<49;++st)Su.appendChild(document.createTextNode("x")),Su.appendChild(ie("br"));Su.appendChild(document.createTextNode("x"))}re(it.measure,Su);var gt=Su.offsetHeight/50;return gt>3&&(it.cachedTextHeight=gt),ee(it.measure),gt||1}function th(it){if(it.cachedCharWidth!=null)return it.cachedCharWidth;var st=ie("span","xxxxxxxxxx"),gt=ie("pre",[st],"CodeMirror-line-like");re(it.measure,gt);var dt=st.getBoundingClientRect(),mt=(dt.right-dt.left)/10;return mt>2&&(it.cachedCharWidth=mt),mt||10}function Rc(it){for(var st=it.display,gt={},dt={},mt=st.gutters.clientLeft,It=st.gutters.firstChild,Nt=0;It;It=It.nextSibling,++Nt){var Gt=it.display.gutterSpecs[Nt].className;gt[Gt]=It.offsetLeft+It.clientLeft+mt,dt[Gt]=It.clientWidth}return{fixedPos:tc(st),gutterTotalWidth:st.gutters.offsetWidth,gutterLeft:gt,gutterWidth:dt,wrapperWidth:st.wrapper.clientWidth}}function tc(it){return it.scroller.getBoundingClientRect().left-it.sizer.getBoundingClientRect().left}function Kr(it){var st=xu(it.display),gt=it.options.lineWrapping,dt=gt&&Math.max(5,it.display.scroller.clientWidth/th(it.display)-3);return function(mt){if(Nn(it.doc,mt))return 0;var It=0;if(mt.widgets)for(var Nt=0;Nt0&&(ue=Sn(it.doc,Ht.line).text).length==Ht.ch){var nn=Fe(ue,ue.length,it.options.tabSize)-ue.length;Ht=he(Ht.line,Math.max(0,Math.round((It-Yl(it.display).left)/th(it.display))-nn))}return Ht}function ll(it,st){if(st>=it.display.viewTo||(st-=it.display.viewFrom,st<0))return null;for(var gt=it.display.view,dt=0;dtst)&&(mt.updateLineNumbers=st),it.curOp.viewChanged=!0,st>=mt.viewTo)Ln&&ei(it.doc,st)mt.viewFrom?Na(it):(mt.viewFrom+=dt,mt.viewTo+=dt);else if(st<=mt.viewFrom&>>=mt.viewTo)Na(it);else if(st<=mt.viewFrom){var It=Hs(it,gt,gt+dt,1);It?(mt.view=mt.view.slice(It.index),mt.viewFrom=It.lineN,mt.viewTo+=dt):Na(it)}else if(gt>=mt.viewTo){var Nt=Hs(it,st,st,-1);Nt?(mt.view=mt.view.slice(0,Nt.index),mt.viewTo=Nt.lineN):Na(it)}else{var Gt=Hs(it,st,st,-1),Ht=Hs(it,gt,gt+dt,1);Gt&&Ht?(mt.view=mt.view.slice(0,Gt.index).concat(zo(it,Gt.lineN,Ht.lineN)).concat(mt.view.slice(Ht.index)),mt.viewTo+=dt):Na(it)}var ue=mt.externalMeasured;ue&&(gt=mt.lineN&&st=dt.viewTo)){var It=dt.view[ll(it,st)];if(It.node!=null){var Nt=It.changes||(It.changes=[]);Ye(Nt,gt)==-1&&Nt.push(gt)}}}function Na(it){it.display.viewFrom=it.display.viewTo=it.doc.first,it.display.view=[],it.display.viewOffset=0}function Hs(it,st,gt,dt){var mt=ll(it,st),It,Nt=it.display.view;if(!Ln||gt==it.doc.first+it.doc.size)return{index:mt,lineN:gt};for(var Gt=it.display.viewFrom,Ht=0;Ht0){if(mt==Nt.length-1)return null;It=Gt+Nt[mt].size-st,mt++}else It=Gt-st;st+=It,gt+=It}for(;ei(it.doc,gt)!=gt;){if(mt==(dt<0?0:Nt.length-1))return null;gt+=dt*Nt[mt-(dt<0?1:0)].size,mt+=dt}return{index:mt,lineN:gt}}function Qr(it,st,gt){var dt=it.display,mt=dt.view;mt.length==0||st>=dt.viewTo||gt<=dt.viewFrom?(dt.view=zo(it,st,gt),dt.viewFrom=st):(dt.viewFrom>st?dt.view=zo(it,st,dt.viewFrom).concat(dt.view):dt.viewFromgt&&(dt.view=dt.view.slice(0,ll(it,gt)))),dt.viewTo=gt}function Js(it){for(var st=it.display.view,gt=0,dt=0;dt=it.display.viewTo||Gt.to().line1}var Te={},Re={};function _e(it,st){arguments.length>2&&(st.dependencies=Array.prototype.slice.call(arguments,2)),Te[it]=st}function me(it,st){Re[it]=st}function en(it){if(typeof it=="string"&&Re.hasOwnProperty(it))it=Re[it];else if(it&&typeof it.name=="string"&&Re.hasOwnProperty(it.name)){var st=Re[it.name];typeof st=="string"&&(st={name:st}),it=mn(st,it),it.name=st.name}else{if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(it))return en("application/xml");if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(it))return en("application/json")}return typeof it=="string"?{name:it}:it||{name:"null"}}function te(it,st){st=en(st);var gt=Te[st.name];if(!gt)return te(it,"text/plain");var dt=gt(it,st);if(Yt.hasOwnProperty(st.name)){var mt=Yt[st.name];for(var It in mt)mt.hasOwnProperty(It)&&(dt.hasOwnProperty(It)&&(dt["_"+It]=dt[It]),dt[It]=mt[It])}if(dt.name=st.name,st.helperType&&(dt.helperType=st.helperType),st.modeProps)for(var Nt in st.modeProps)dt[Nt]=st.modeProps[Nt];return dt}var Yt={};function Vt(it,st){var gt=Yt.hasOwnProperty(it)?Yt[it]:Yt[it]={};Xn(st,gt)}function Ve(it,st){if(st===!0)return st;if(it.copyState)return it.copyState(st);var gt={};for(var dt in st){var mt=st[dt];mt instanceof Array&&(mt=mt.concat([])),gt[dt]=mt}return gt}function an(it,st){for(var gt;it.innerMode&&(gt=it.innerMode(st),!(!gt||gt.mode==it));)st=gt.state,it=gt.mode;return gt||{mode:it,state:st}}function pn(it,st,gt){return it.startState?it.startState(st,gt):!0}var We=function(it,st,gt){this.pos=this.start=0,this.string=it,this.tabSize=st||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=gt};We.prototype.eol=function(){return this.pos>=this.string.length},We.prototype.sol=function(){return this.pos==this.lineStart},We.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},We.prototype.next=function(){if(this.posst},We.prototype.eatSpace=function(){for(var it=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>it},We.prototype.skipToEnd=function(){this.pos=this.string.length},We.prototype.skipTo=function(it){var st=this.string.indexOf(it,this.pos);if(st>-1)return this.pos=st,!0},We.prototype.backUp=function(it){this.pos-=it},We.prototype.column=function(){return this.lastColumnPos0?null:(It&&st!==!1&&(this.pos+=It[0].length),It)}},We.prototype.current=function(){return this.string.slice(this.start,this.pos)},We.prototype.hideFirstChars=function(it,st){this.lineStart+=it;try{return st()}finally{this.lineStart-=it}},We.prototype.lookAhead=function(it){var st=this.lineOracle;return st&&st.lookAhead(it)},We.prototype.baseToken=function(){var it=this.lineOracle;return it&&it.baseToken(this.pos)};function Sn(it,st){if(st-=it.first,st<0||st>=it.size)throw new Error("There is no line "+(st+it.first)+" in the document.");for(var gt=it;!gt.lines;)for(var dt=0;;++dt){var mt=gt.children[dt],It=mt.chunkSize();if(st=it.first&&stgt?he(gt,Sn(it,gt).text.length):ki(st,Sn(it,st.line).text.length)}function ki(it,st){var gt=it.ch;return gt==null||gt>st?he(it.line,st):gt<0?he(it.line,0):it}function bi(it,st){for(var gt=[],dt=0;dtthis.maxLookAhead&&(this.maxLookAhead=it),st},yn.prototype.baseToken=function(it){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=it;)this.baseTokenPos+=2;var st=this.baseTokens[this.baseTokenPos+1];return{type:st&&st.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-it}},yn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},yn.fromSaved=function(it,st,gt){return st instanceof Hi?new yn(it,Ve(it.mode,st.state),gt,st.lookAhead):new yn(it,Ve(it.mode,st),gt)},yn.prototype.save=function(it){var st=it!==!1?Ve(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Hi(st,this.maxLookAhead):st};function uo(it,st,gt,dt){var mt=[it.state.modeGen],It={};so(it,st.text,it.doc.mode,gt,function(ue,nn){return mt.push(ue,nn)},It,dt);for(var Nt=gt.state,Gt=function(ue){gt.baseTokens=mt;var nn=it.state.overlays[ue],Se=1,On=0;gt.state=!0,so(it,st.text,nn.mode,gt,function(In,vi){for(var Si=Se;OnIn&&mt.splice(Se,1,In,mt[Se+1],Ti),Se+=2,On=Math.min(In,Ti)}if(vi)if(nn.opaque)mt.splice(Si,Se-Si,In,"overlay "+vi),Se=Si+2;else for(;Siit.options.maxHighlightLength&&Ve(it.doc.mode,dt.state),It=uo(it,st,dt);mt&&(dt.state=mt),st.stateAfter=dt.save(!mt),st.styles=It.styles,It.classes?st.styleClasses=It.classes:st.styleClasses&&(st.styleClasses=null),gt===it.doc.highlightFrontier&&(it.doc.modeFrontier=Math.max(it.doc.modeFrontier,++it.doc.highlightFrontier))}return st.styles}function io(it,st,gt){var dt=it.doc,mt=it.display;if(!dt.mode.startState)return new yn(dt,!0,st);var It=zi(it,st,gt),Nt=It>dt.first&&Sn(dt,It-1).stateAfter,Gt=Nt?yn.fromSaved(dt,Nt,It):new yn(dt,pn(dt.mode),It);return dt.iter(It,st,function(Ht){sn(it,Ht.text,Gt);var ue=Gt.line;Ht.stateAfter=ue==st-1||ue%5==0||ue>=mt.viewFrom&&uest.start)return It}throw new Error("Mode "+it.name+" failed to advance stream.")}var ji=function(it,st,gt){this.start=it.start,this.end=it.pos,this.string=it.current(),this.type=st||null,this.state=gt};function Ci(it,st,gt,dt){var mt=it.doc,It=mt.mode,Nt;st=Kn(mt,st);var Gt=Sn(mt,st.line),Ht=io(it,st.line,gt),ue=new We(Gt.text,it.options.tabSize,Ht),nn;for(dt&&(nn=[]);(dt||ue.posit.options.maxHighlightLength?(Gt=!1,Nt&&sn(it,st,dt,nn.pos),nn.pos=st.length,Se=null):Se=Ui(wi(gt,nn,dt.state,On),It),On){var In=On[0].name;In&&(Se="m-"+(Se?In+" "+Se:In))}if(!Gt||ue!=Se){for(;HtNt;--Gt){if(Gt<=It.first)return It.first;var Ht=Sn(It,Gt-1),ue=Ht.stateAfter;if(ue&&(!gt||Gt+(ue instanceof Hi?ue.lookAhead:0)<=It.modeFrontier))return Gt;var nn=Fe(Ht.text,null,it.options.tabSize);(mt==null||dt>nn)&&(mt=Gt-1,dt=nn)}return mt}function Ei(it,st){if(it.modeFrontier=Math.min(it.modeFrontier,st),!(it.highlightFrontiergt;dt--){var mt=Sn(it,dt).stateAfter;if(mt&&(!(mt instanceof Hi)||dt+mt.lookAhead=st:It.to>st);(dt||(dt=[])).push(new ao(Nt,It.from,Ht?null:It.to))}}return dt}function di(it,st,gt){var dt;if(it)for(var mt=0;mt=st:It.to>st);if(Gt||It.from==st&&Nt.type=="bookmark"&&(!gt||It.marker.insertLeft)){var Ht=It.from==null||(Nt.inclusiveLeft?It.from<=st:It.from0&&Gt)for(var ko=0;ko0)){var nn=[Ht,1],Se=Pe(ue.from,Gt.from),On=Pe(ue.to,Gt.to);(Se<0||!Nt.inclusiveLeft&&!Se)&&nn.push({from:ue.from,to:Gt.from}),(On>0||!Nt.inclusiveRight&&!On)&&nn.push({from:Gt.to,to:ue.to}),mt.splice.apply(mt,nn),Ht+=nn.length-3}}return mt}function hi(it){var st=it.markedSpans;if(st){for(var gt=0;gtst)&&(!dt||tr(dt,It.marker)<0)&&(dt=It.marker)}return dt}function _n(it,st,gt,dt,mt){var It=Sn(it,st),Nt=Ln&&It.markedSpans;if(Nt)for(var Gt=0;Gt=0&&Se<=0||nn<=0&&Se>=0)&&(nn<=0&&(Ht.marker.inclusiveRight&&mt.inclusiveLeft?Pe(ue.to,gt)>=0:Pe(ue.to,gt)>0)||nn>=0&&(Ht.marker.inclusiveRight&&mt.inclusiveLeft?Pe(ue.from,dt)<=0:Pe(ue.from,dt)<0)))return!0}}}function Ai(it){for(var st;st=Zn(it);)it=st.find(-1,!0).line;return it}function pi(it){for(var st;st=si(it);)it=st.find(1,!0).line;return it}function mi(it){for(var st,gt;st=si(it);)it=st.find(1,!0).line,(gt||(gt=[])).push(it);return gt}function ei(it,st){var gt=Sn(it,st),dt=Ai(gt);return gt==dt?st:Xt(dt)}function gi(it,st){if(st>it.lastLine())return st;var gt=Sn(it,st),dt;if(!Nn(it,gt))return st;for(;dt=si(gt);)gt=dt.find(1,!0).line;return Xt(gt)+1}function Nn(it,st){var gt=Ln&&st.markedSpans;if(gt){for(var dt=void 0,mt=0;mtst.maxLineLength&&(st.maxLineLength=mt,st.maxLine=dt)})}var po=function(it,st,gt){this.text=it,Ot(this,st),this.height=gt?gt(this):1};po.prototype.lineNo=function(){return Xt(this)},Bi(po);function co(it,st,gt,dt){it.text=st,it.stateAfter&&(it.stateAfter=null),it.styles&&(it.styles=null),it.order!=null&&(it.order=null),hi(it),Ot(it,gt);var mt=dt?dt(it):1;mt!=it.height&&Qe(it,mt)}function or(it){it.parent=null,hi(it)}var ia={},ha={};function ga(it,st){if(!it||/^\s*$/.test(it))return null;var gt=st.addModeClass?ha:ia;return gt[it]||(gt[it]=it.replace(/\S+/g,"cm-$&"))}function on(it,st){var gt=Me("span",null,null,qt?"padding-right: .1px":null),dt={pre:Me("pre",[gt],"CodeMirror-line"),content:gt,col:0,pos:0,cm:it,trailingSpace:!1,splitSpaces:it.getOption("lineWrapping")};st.measure={};for(var mt=0;mt<=(st.rest?st.rest.length:0);mt++){var It=mt?st.rest[mt-1]:st.line,Nt=void 0;dt.pos=0,dt.addToken=Ks,Mn(it.display.measure)&&(Nt=jt(It,it.doc.direction))&&(dt.addToken=Ll(dt.addToken,Nt)),dt.map=[];var Gt=st!=it.display.externalMeasured&&Xt(It);Fs(It,dt,Qi(it,It,Gt)),It.styleClasses&&(It.styleClasses.bgClass&&(dt.bgClass=Je(It.styleClasses.bgClass,dt.bgClass||"")),It.styleClasses.textClass&&(dt.textClass=Je(It.styleClasses.textClass,dt.textClass||""))),dt.map.length==0&&dt.map.push(0,0,dt.content.appendChild(Jn(it.display.measure))),mt==0?(st.measure.map=dt.map,st.measure.cache={}):((st.measure.maps||(st.measure.maps=[])).push(dt.map),(st.measure.caches||(st.measure.caches=[])).push({}))}if(qt){var Ht=dt.content.lastChild;(/\bcm-tab\b/.test(Ht.className)||Ht.querySelector&&Ht.querySelector(".cm-tab"))&&(dt.content.className="cm-tab-wrap-hack")}return Pn(it,"renderLine",it,st.line,dt.pre),dt.pre.className&&(dt.textClass=Je(dt.pre.className,dt.textClass||"")),dt}function ca(it){var st=ie("span","\u2022","cm-invalidchar");return st.title="\\u"+it.charCodeAt(0).toString(16),st.setAttribute("aria-label",st.title),st}function Ks(it,st,gt,dt,mt,It,Nt){if(st){var Gt=it.splitSpaces?_a(st,it.trailingSpace):st,Ht=it.cm.state.specialChars,ue=!1,nn;if(!Ht.test(st))it.col+=st.length,nn=document.createTextNode(Gt),it.map.push(it.pos,it.pos+st.length,nn),fe&&ve<9&&(ue=!0),it.pos+=st.length;else{nn=document.createDocumentFragment();for(var Se=0;;){Ht.lastIndex=Se;var On=Ht.exec(st),In=On?On.index-Se:st.length-Se;if(In){var vi=document.createTextNode(Gt.slice(Se,Se+In));fe&&ve<9?nn.appendChild(ie("span",[vi])):nn.appendChild(vi),it.map.push(it.pos,it.pos+In,vi),it.col+=In,it.pos+=In}if(!On)break;Se+=In+1;var Si=void 0;if(On[0]==" "){var Ti=it.cm.options.tabSize,no=Ti-it.col%Ti;Si=nn.appendChild(ie("span",An(no),"cm-tab")),Si.setAttribute("role","presentation"),Si.setAttribute("cm-text"," "),it.col+=no}else On[0]=="\r"||On[0]==` +`?(Si=nn.appendChild(ie("span",On[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Si.setAttribute("cm-text",On[0]),it.col+=1):(Si=it.cm.options.specialCharPlaceholder(On[0]),Si.setAttribute("cm-text",On[0]),fe&&ve<9?nn.appendChild(ie("span",[Si])):nn.appendChild(Si),it.col+=1);it.map.push(it.pos,it.pos+1,Si),it.pos++}}if(it.trailingSpace=Gt.charCodeAt(st.length-1)==32,gt||dt||mt||ue||It||Nt){var Io=gt||"";dt&&(Io+=dt),mt&&(Io+=mt);var yo=ie("span",[nn],Io,It);if(Nt)for(var ko in Nt)Nt.hasOwnProperty(ko)&&ko!="style"&&ko!="class"&&yo.setAttribute(ko,Nt[ko]);return it.content.appendChild(yo)}it.content.appendChild(nn)}}function _a(it,st){if(it.length>1&&!/ /.test(it))return it;for(var gt=st,dt="",mt=0;mtue&&Se.from<=ue));On++);if(Se.to>=nn)return it(gt,dt,mt,It,Nt,Gt,Ht);it(gt,dt.slice(0,Se.to-ue),mt,It,null,Gt,Ht),It=null,dt=dt.slice(Se.to-ue),ue=Se.to}}}function Yr(it,st,gt,dt){var mt=!dt&>.widgetNode;mt&&it.map.push(it.pos,it.pos+st,mt),!dt&&it.cm.display.input.needsContentAttribute&&(mt||(mt=it.content.appendChild(document.createElement("span"))),mt.setAttribute("cm-marker",gt.id)),mt&&(it.cm.display.input.setUneditable(mt),it.content.appendChild(mt)),it.pos+=st,it.trailingSpace=!1}function Fs(it,st,gt){var dt=it.markedSpans,mt=it.text,It=0;if(!dt){for(var Nt=1;NtHt||vr.collapsed&&mo.to==Ht&&mo.from==Ht)){if(mo.to!=null&&mo.to!=Ht&&In>mo.to&&(In=mo.to,Si=""),vr.className&&(vi+=" "+vr.className),vr.css&&(On=(On?On+";":"")+vr.css),vr.startStyle&&mo.from==Ht&&(Ti+=" "+vr.startStyle),vr.endStyle&&mo.to==In&&(ko||(ko=[])).push(vr.endStyle,mo.to),vr.title&&((Io||(Io={})).title=vr.title),vr.attributes)for(var pa in vr.attributes)(Io||(Io={}))[pa]=vr.attributes[pa];vr.collapsed&&(!no||tr(no.marker,vr)<0)&&(no=mo)}else mo.from>Ht&&In>mo.from&&(In=mo.from)}if(ko)for(var hs=0;hs=Gt)break;for(var cl=Math.min(Gt,In);;){if(nn){var Gs=Ht+nn.length;if(!no){var is=Gs>cl?nn.slice(0,cl-Ht):nn;st.addToken(st,is,Se?Se+vi:vi,Ti,Ht+is.length==In?Si:"",On,Io)}if(Gs>=cl){nn=nn.slice(cl-Ht),Ht=cl;break}Ht=Gs,Ti=""}nn=mt.slice(It,It=gt[ue++]),Se=ga(gt[ue++],st.cm.options)}}}function gr(it,st,gt){this.line=st,this.rest=mi(st),this.size=this.rest?Xt(oe(this.rest))-gt+1:1,this.node=this.text=null,this.hidden=Nn(it,st)}function zo(it,st,gt){for(var dt=[],mt,It=st;It2&&It.push((Ht.bottom+ue.top)/2-gt.top)}}It.push(gt.bottom-gt.top)}}function Ko(it,st,gt){if(it.line==st)return{map:it.measure.map,cache:it.measure.cache};for(var dt=0;dtgt)return{map:it.measure.maps[mt],cache:it.measure.caches[mt],before:!0}}function ar(it,st){st=Ai(st);var gt=Xt(st),dt=it.display.externalMeasured=new gr(it.doc,st,gt);dt.lineN=gt;var mt=dt.built=on(it,dt);return dt.text=mt.pre,re(it.display.lineMeasure,mt.pre),dt}function Ir(it,st,gt,dt){return qr(it,Zr(it,st),gt,dt)}function sr(it,st){if(st>=it.display.viewFrom&&st=gt.lineN&&stst)&&(It=Ht-Gt,mt=It-1,st>=Ht&&(Nt="right")),mt!=null){if(dt=it[ue+2],Gt==Ht&>==(dt.insertLeft?"left":"right")&&(Nt=gt),gt=="left"&&mt==0)for(;ue&&it[ue-2]==it[ue-3]&&it[ue-1].insertLeft;)dt=it[(ue-=3)+2],Nt="left";if(gt=="right"&&mt==Ht-Gt)for(;ue=0&&(gt=it[mt]).left==gt.right;mt--);return gt}function da(it,st,gt,dt){var mt=Ba(st.map,gt,dt),It=mt.node,Nt=mt.start,Gt=mt.end,Ht=mt.collapse,ue;if(It.nodeType==3){for(var nn=0;nn<4;nn++){for(;Nt&&Ee(st.line.text.charAt(mt.coverStart+Nt));)--Nt;for(;mt.coverStart+Gt0&&(Ht=dt="right");var Se;it.options.lineWrapping&&(Se=It.getClientRects()).length>1?ue=Se[dt=="right"?Se.length-1:0]:ue=It.getBoundingClientRect()}if(fe&&ve<9&&!Nt&&(!ue||!ue.left&&!ue.right)){var On=It.parentNode.getClientRects()[0];On?ue={left:On.left,right:On.left+th(it.display),top:On.top,bottom:On.bottom}:ue=es}for(var In=ue.top-st.rect.top,vi=ue.bottom-st.rect.top,Si=(In+vi)/2,Ti=st.view.measure.heights,no=0;no=dt.text.length?(Ht=dt.text.length,ue="before"):Ht<=0&&(Ht=0,ue="after"),!Gt)return Nt(ue=="before"?Ht-1:Ht,ue=="before");function nn(vi,Si,Ti){var no=Gt[Si],Io=no.level==1;return Nt(Ti?vi-1:vi,Io!=Ti)}var Se=At(Gt,Ht,ue),On=wt,In=nn(Ht,Se,ue=="before");return On!=null&&(In.other=nn(Ht,On,ue!="before")),In}function Ad(it,st){var gt=0;st=Kn(it.doc,st),it.options.lineWrapping||(gt=th(it.display)*st.ch);var dt=Sn(it.doc,st.line),mt=Wi(dt)+ts(it.display);return{left:gt,right:gt,top:mt,bottom:mt+dt.height}}function zc(it,st,gt,dt,mt){var It=he(it,st,gt);return It.xRel=mt,dt&&(It.outside=dt),It}function Cd(it,st,gt){var dt=it.doc;if(gt+=it.display.viewOffset,gt<0)return zc(dt.first,0,null,-1,-1);var mt=dn(dt,gt),It=dt.first+dt.size-1;if(mt>It)return zc(dt.first+dt.size-1,Sn(dt,It).text.length,null,1,1);st<0&&(st=0);for(var Nt=Sn(dt,mt);;){var Gt=Qn(it,Nt,mt,st,gt),Ht=Ii(Nt,Gt.ch+(Gt.xRel>0||Gt.outside>0?1:0));if(!Ht)return Gt;var ue=Ht.find(1);if(ue.line==mt)return ue;Nt=Sn(dt,mt=ue.line)}}function vo(it,st,gt,dt){dt-=ba(st);var mt=st.text.length,It=ln(function(Nt){return qr(it,gt,Nt-1).bottom<=dt},mt,0);return mt=ln(function(Nt){return qr(it,gt,Nt).top>dt},It,mt),{begin:It,end:mt}}function lg(it,st,gt,dt){gt||(gt=Zr(it,st));var mt=Ea(it,st,qr(it,gt,dt),"line").top;return vo(it,st,gt,mt)}function Ie(it,st,gt,dt){return it.bottom<=gt?!1:it.top>gt?!0:(dt?it.left:it.right)>st}function Qn(it,st,gt,dt,mt){mt-=Wi(st);var It=Zr(it,st),Nt=ba(st),Gt=0,Ht=st.text.length,ue=!0,nn=jt(st,it.doc.direction);if(nn){var Se=(it.options.lineWrapping?hg:ug)(it,st,gt,It,nn,dt,mt);ue=Se.level!=1,Gt=ue?Se.from:Se.to-1,Ht=ue?Se.to:Se.from-1}var On=null,In=null,vi=ln(function(er){var mo=qr(it,It,er);return mo.top+=Nt,mo.bottom+=Nt,Ie(mo,dt,mt,!1)?(mo.top<=mt&&mo.left<=dt&&(On=er,In=mo),!0):!1},Gt,Ht),Si,Ti,no=!1;if(In){var Io=dt-In.left=ko.bottom?1:0}return vi=ke(st.text,vi,1),zc(gt,vi,Ti,no,dt-Si)}function ug(it,st,gt,dt,mt,It,Nt){var Gt=ln(function(Se){var On=mt[Se],In=On.level!=1;return Ie(fa(it,he(gt,In?On.to:On.from,In?"before":"after"),"line",st,dt),It,Nt,!0)},0,mt.length-1),Ht=mt[Gt];if(Gt>0){var ue=Ht.level!=1,nn=fa(it,he(gt,ue?Ht.from:Ht.to,ue?"after":"before"),"line",st,dt);Ie(nn,It,Nt,!0)&&nn.top>Nt&&(Ht=mt[Gt-1])}return Ht}function hg(it,st,gt,dt,mt,It,Nt){var Gt=vo(it,st,dt,Nt),Ht=Gt.begin,ue=Gt.end;/\s/.test(st.text.charAt(ue-1))&&ue--;for(var nn=null,Se=null,On=0;On=ue||In.to<=Ht)){var vi=In.level!=1,Si=qr(it,dt,vi?Math.min(ue,In.to)-1:Math.max(Ht,In.from)).right,Ti=SiTi)&&(nn=In,Se=Ti)}}return nn||(nn=mt[mt.length-1]),nn.fromue&&(nn={from:nn.from,to:ue,level:nn.level}),nn}var Su;function xu(it){if(it.cachedTextHeight!=null)return it.cachedTextHeight;if(Su==null){Su=ie("pre",null,"CodeMirror-line-like");for(var st=0;st<49;++st)Su.appendChild(document.createTextNode("x")),Su.appendChild(ie("br"));Su.appendChild(document.createTextNode("x"))}re(it.measure,Su);var gt=Su.offsetHeight/50;return gt>3&&(it.cachedTextHeight=gt),ee(it.measure),gt||1}function th(it){if(it.cachedCharWidth!=null)return it.cachedCharWidth;var st=ie("span","xxxxxxxxxx"),gt=ie("pre",[st],"CodeMirror-line-like");re(it.measure,gt);var dt=st.getBoundingClientRect(),mt=(dt.right-dt.left)/10;return mt>2&&(it.cachedCharWidth=mt),mt||10}function Rc(it){for(var st=it.display,gt={},dt={},mt=st.gutters.clientLeft,It=st.gutters.firstChild,Nt=0;It;It=It.nextSibling,++Nt){var Gt=it.display.gutterSpecs[Nt].className;gt[Gt]=It.offsetLeft+It.clientLeft+mt,dt[Gt]=It.clientWidth}return{fixedPos:tc(st),gutterTotalWidth:st.gutters.offsetWidth,gutterLeft:gt,gutterWidth:dt,wrapperWidth:st.wrapper.clientWidth}}function tc(it){return it.scroller.getBoundingClientRect().left-it.sizer.getBoundingClientRect().left}function Kr(it){var st=xu(it.display),gt=it.options.lineWrapping,dt=gt&&Math.max(5,it.display.scroller.clientWidth/th(it.display)-3);return function(mt){if(Nn(it.doc,mt))return 0;var It=0;if(mt.widgets)for(var Nt=0;Nt0&&(ue=Sn(it.doc,Ht.line).text).length==Ht.ch){var nn=Fe(ue,ue.length,it.options.tabSize)-ue.length;Ht=he(Ht.line,Math.max(0,Math.round((It-Yl(it.display).left)/th(it.display))-nn))}return Ht}function ll(it,st){if(st>=it.display.viewTo||(st-=it.display.viewFrom,st<0))return null;for(var gt=it.display.view,dt=0;dtst)&&(mt.updateLineNumbers=st),it.curOp.viewChanged=!0,st>=mt.viewTo)Ln&&ei(it.doc,st)mt.viewFrom?Na(it):(mt.viewFrom+=dt,mt.viewTo+=dt);else if(st<=mt.viewFrom&>>=mt.viewTo)Na(it);else if(st<=mt.viewFrom){var It=Hs(it,gt,gt+dt,1);It?(mt.view=mt.view.slice(It.index),mt.viewFrom=It.lineN,mt.viewTo+=dt):Na(it)}else if(gt>=mt.viewTo){var Nt=Hs(it,st,st,-1);Nt?(mt.view=mt.view.slice(0,Nt.index),mt.viewTo=Nt.lineN):Na(it)}else{var Gt=Hs(it,st,st,-1),Ht=Hs(it,gt,gt+dt,1);Gt&&Ht?(mt.view=mt.view.slice(0,Gt.index).concat(zo(it,Gt.lineN,Ht.lineN)).concat(mt.view.slice(Ht.index)),mt.viewTo+=dt):Na(it)}var ue=mt.externalMeasured;ue&&(gt=mt.lineN&&st=dt.viewTo)){var It=dt.view[ll(it,st)];if(It.node!=null){var Nt=It.changes||(It.changes=[]);Ye(Nt,gt)==-1&&Nt.push(gt)}}}function Na(it){it.display.viewFrom=it.display.viewTo=it.doc.first,it.display.view=[],it.display.viewOffset=0}function Hs(it,st,gt,dt){var mt=ll(it,st),It,Nt=it.display.view;if(!Ln||gt==it.doc.first+it.doc.size)return{index:mt,lineN:gt};for(var Gt=it.display.viewFrom,Ht=0;Ht0){if(mt==Nt.length-1)return null;It=Gt+Nt[mt].size-st,mt++}else It=Gt-st;st+=It,gt+=It}for(;ei(it.doc,gt)!=gt;){if(mt==(dt<0?0:Nt.length-1))return null;gt+=dt*Nt[mt-(dt<0?1:0)].size,mt+=dt}return{index:mt,lineN:gt}}function Qr(it,st,gt){var dt=it.display,mt=dt.view;mt.length==0||st>=dt.viewTo||gt<=dt.viewFrom?(dt.view=zo(it,st,gt),dt.viewFrom=st):(dt.viewFrom>st?dt.view=zo(it,st,dt.viewFrom).concat(dt.view):dt.viewFromgt&&(dt.view=dt.view.slice(0,ll(it,gt)))),dt.viewTo=gt}function Js(it){for(var st=it.display.view,gt=0,dt=0;dt=it.display.viewTo||Gt.to().line0?st.blinker=setInterval(function(){it.hasFocus()||au(it),st.cursorDiv.style.visibility=(gt=!gt)?"":"hidden"},it.options.cursorBlinkRate):it.options.cursorBlinkRate<0&&(st.cursorDiv.style.visibility="hidden")}}function na(it){it.state.focused||(it.display.input.focus(),Lr(it))}function mr(it){it.state.delayingBlurEvent=!0,setTimeout(function(){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1,au(it))},100)}function Lr(it,st){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1),it.options.readOnly!="nocursor"&&(it.state.focused||(Pn(it,"focus",it,st),it.state.focused=!0,je(it.display.wrapper,"CodeMirror-focused"),!it.curOp&&it.display.selForContextMenu!=it.doc.sel&&(it.display.input.reset(),qt&&setTimeout(function(){return it.display.input.reset(!0)},20)),it.display.input.receivedFocus()),Ur(it))}function au(it,st){it.state.delayingBlurEvent||(it.state.focused&&(Pn(it,"blur",it,st),it.state.focused=!1,Ut(it.display.wrapper,"CodeMirror-focused")),clearInterval(it.display.blinker),setTimeout(function(){it.state.focused||(it.display.shift=!1)},150))}function Bo(it){for(var st=it.display,gt=st.lineDiv.offsetTop,dt=0;dt.005||nn<-.005)&&(Qe(mt.line,Nt),Sd(mt.line),mt.rest))for(var Se=0;Seit.display.sizerWidth){var On=Math.ceil(Gt/th(it.display));On>it.display.maxLineLength&&(it.display.maxLineLength=On,it.display.maxLine=mt.line,it.display.maxLineChanged=!0)}}}}function Sd(it){if(it.widgets)for(var st=0;st=Nt&&(It=dn(st,Wi(Sn(st,Ht))-it.wrapper.clientHeight),Nt=Ht)}return{from:It,to:Math.max(Nt,It+1)}}function cg(it,st){if(!$n(it,"scrollCursorIntoView")){var gt=it.display,dt=gt.sizer.getBoundingClientRect(),mt=null;if(st.top+dt.top<0?mt=!0:st.bottom+dt.top>(window.innerHeight||document.documentElement.clientHeight)&&(mt=!1),mt!=null&&!He){var It=ie("div","\u200B",null,`position: absolute; - top: `+(st.top-gt.viewOffset-Ka(it.display))+`px; + height: `+(mo-ko)+"px"))}function Se(yo,ko,er){var mo=Sn(mt,yo),vr=mo.text.length,pa,hs;function La(is,Cl){return Cu(it,he(yo,is),"div",mo,Cl)}function cl(is,Cl,ks){var os=lg(it,mo,null,is),Hr=Cl=="ltr"==(ks=="after")?"left":"right",Oa=ks=="after"?os.begin:os.end-(/\s/.test(mo.text.charAt(os.end-1))?2:1);return La(Oa,Hr)[Hr]}var Gs=jt(mo,mt.direction);return Dt(Gs,ko||0,er==null?vr:er,function(is,Cl,ks,os){var Hr=ks=="ltr",Oa=La(is,Hr?"left":"right"),vs=La(Cl-1,Hr?"right":"left"),Ts=ko==null&&is==0,uu=er==null&&Cl==vr,Da=os==0,Jl=!Gs||os==Gs.length-1;if(vs.top-Oa.top<=3){var Ha=(ue?Ts:uu)&&Da,Rd=(ue?uu:Ts)&&Jl,Ol=Ha?Gt:(Hr?Oa:vs).left,Sl=Rd?Ht:(Hr?vs:Oa).right;nn(Ol,Oa.top,Sl-Ol,Oa.bottom)}else{var dl,ra,ys,zu;Hr?(dl=ue&&Ts&&Da?Gt:Oa.left,ra=ue?Ht:cl(is,ks,"before"),ys=ue?Gt:cl(Cl,ks,"after"),zu=ue&&uu&&Jl?Ht:vs.right):(dl=ue?cl(is,ks,"before"):Gt,ra=!ue&&Ts&&Da?Ht:Oa.right,ys=!ue&&uu&&Jl?Gt:vs.left,zu=ue?cl(Cl,ks,"after"):Ht),nn(dl,Oa.top,ra-dl,Oa.bottom),Oa.bottom0?st.blinker=setInterval(function(){it.hasFocus()||au(it),st.cursorDiv.style.visibility=(gt=!gt)?"":"hidden"},it.options.cursorBlinkRate):it.options.cursorBlinkRate<0&&(st.cursorDiv.style.visibility="hidden")}}function na(it){it.state.focused||(it.display.input.focus(),Lr(it))}function mr(it){it.state.delayingBlurEvent=!0,setTimeout(function(){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1,au(it))},100)}function Lr(it,st){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1),it.options.readOnly!="nocursor"&&(it.state.focused||(Pn(it,"focus",it,st),it.state.focused=!0,je(it.display.wrapper,"CodeMirror-focused"),!it.curOp&&it.display.selForContextMenu!=it.doc.sel&&(it.display.input.reset(),qt&&setTimeout(function(){return it.display.input.reset(!0)},20)),it.display.input.receivedFocus()),Ur(it))}function au(it,st){it.state.delayingBlurEvent||(it.state.focused&&(Pn(it,"blur",it,st),it.state.focused=!1,Ut(it.display.wrapper,"CodeMirror-focused")),clearInterval(it.display.blinker),setTimeout(function(){it.state.focused||(it.display.shift=!1)},150))}function Bo(it){for(var st=it.display,gt=st.lineDiv.offsetTop,dt=0;dt.005||nn<-.005)&&(Qe(mt.line,Nt),Sd(mt.line),mt.rest))for(var Se=0;Seit.display.sizerWidth){var On=Math.ceil(Gt/th(it.display));On>it.display.maxLineLength&&(it.display.maxLineLength=On,it.display.maxLine=mt.line,it.display.maxLineChanged=!0)}}}}function Sd(it){if(it.widgets)for(var st=0;st=Nt&&(It=dn(st,Wi(Sn(st,Ht))-it.wrapper.clientHeight),Nt=Ht)}return{from:It,to:Math.max(Nt,It+1)}}function cg(it,st){if(!$n(it,"scrollCursorIntoView")){var gt=it.display,dt=gt.sizer.getBoundingClientRect(),mt=null;if(st.top+dt.top<0?mt=!0:st.bottom+dt.top>(window.innerHeight||document.documentElement.clientHeight)&&(mt=!1),mt!=null&&!He){var It=ie("div","\u200B",null,`position: absolute; + top: `+(st.top-gt.viewOffset-ts(it.display))+`px; height: `+(st.bottom-st.top+fs(it)+gt.barHeight)+`px; - left: `+st.left+"px; width: "+Math.max(2,st.right-st.left)+"px;");it.display.lineSpace.appendChild(It),It.scrollIntoView(mt),it.display.lineSpace.removeChild(It)}}}function xh(it,st,gt,dt){dt==null&&(dt=0);var mt;!it.options.lineWrapping&&st==gt&&(st=st.ch?he(st.line,st.sticky=="before"?st.ch-1:st.ch,"after"):st,gt=st.sticky=="before"?he(st.line,st.ch+1,"before"):st);for(var It=0;It<5;It++){var Nt=!1,Gt=fa(it,st),Ht=!gt||gt==st?Gt:fa(it,gt);mt={left:Math.min(Gt.left,Ht.left),top:Math.min(Gt.top,Ht.top)-dt,right:Math.max(Gt.left,Ht.left),bottom:Math.max(Gt.bottom,Ht.bottom)+dt};var ue=xd(it,mt),nn=it.doc.scrollTop,Se=it.doc.scrollLeft;if(ue.scrollTop!=null&&(wo(it,ue.scrollTop),Math.abs(it.doc.scrollTop-nn)>1&&(Nt=!0)),ue.scrollLeft!=null&&(li(it,ue.scrollLeft),Math.abs(it.doc.scrollLeft-Se)>1&&(Nt=!0)),!Nt)break}return mt}function ec(it,st){var gt=xd(it,st);gt.scrollTop!=null&&wo(it,gt.scrollTop),gt.scrollLeft!=null&&li(it,gt.scrollLeft)}function xd(it,st){var gt=it.display,dt=xu(it.display);st.top<0&&(st.top=0);var mt=it.curOp&&it.curOp.scrollTop!=null?it.curOp.scrollTop:gt.scroller.scrollTop,It=ti(it),Nt={};st.bottom-st.top>It&&(st.bottom=st.top+It);var Gt=it.doc.height+Vl(gt),Ht=st.topGt-dt;if(st.topmt+It){var nn=Math.min(st.top,(ue?Gt:st.bottom)-It);nn!=mt&&(Nt.scrollTop=nn)}var Se=it.options.fixedGutter?0:gt.gutters.offsetWidth,On=it.curOp&&it.curOp.scrollLeft!=null?it.curOp.scrollLeft:gt.scroller.scrollLeft-Se,In=sl(it)-gt.gutters.offsetWidth,vi=st.right-st.left>In;return vi&&(st.right=st.left+In),st.left<10?Nt.scrollLeft=0:st.leftIn+On-3&&(Nt.scrollLeft=st.right+(vi?0:10)-In),Nt}function Ne(it,st){st!=null&&(Xi(it),it.curOp.scrollTop=(it.curOp.scrollTop==null?it.doc.scrollTop:it.curOp.scrollTop)+st)}function Ze(it){Xi(it);var st=it.getCursor();it.curOp.scrollToPos={from:st,to:st,margin:it.options.cursorScrollMargin}}function qe(it,st,gt){(st!=null||gt!=null)&&Xi(it),st!=null&&(it.curOp.scrollLeft=st),gt!=null&&(it.curOp.scrollTop=gt)}function ci(it,st){Xi(it),it.curOp.scrollToPos=st}function Xi(it){var st=it.curOp.scrollToPos;if(st){it.curOp.scrollToPos=null;var gt=Ad(it,st.from),dt=Ad(it,st.to);Zi(it,gt,dt,st.margin)}}function Zi(it,st,gt,dt){var mt=xd(it,{left:Math.min(st.left,gt.left),top:Math.min(st.top,gt.top)-dt,right:Math.max(st.right,gt.right),bottom:Math.max(st.bottom,gt.bottom)+dt});qe(it,mt.scrollLeft,mt.scrollTop)}function wo(it,st){Math.abs(it.doc.scrollTop-st)<2||(ot||Co(it,{top:st}),$i(it,st,!0),ot&&Co(it),Ia(it,100))}function $i(it,st,gt){st=Math.max(0,Math.min(it.display.scroller.scrollHeight-it.display.scroller.clientHeight,st)),!(it.display.scroller.scrollTop==st&&!gt)&&(it.doc.scrollTop=st,it.display.scrollbars.setScrollTop(st),it.display.scroller.scrollTop!=st&&(it.display.scroller.scrollTop=st))}function li(it,st,gt,dt){st=Math.max(0,Math.min(st,it.display.scroller.scrollWidth-it.display.scroller.clientWidth)),!((gt?st==it.doc.scrollLeft:Math.abs(it.doc.scrollLeft-st)<2)&&!dt)&&(it.doc.scrollLeft=st,br(it),it.display.scroller.scrollLeft!=st&&(it.display.scroller.scrollLeft=st),it.display.scrollbars.setScrollLeft(st))}function Gi(it){var st=it.display,gt=st.gutters.offsetWidth,dt=Math.round(it.doc.height+Vl(it.display));return{clientHeight:st.scroller.clientHeight,viewHeight:st.wrapper.clientHeight,scrollWidth:st.scroller.scrollWidth,clientWidth:st.scroller.clientWidth,viewWidth:st.wrapper.clientWidth,barLeft:it.options.fixedGutter?gt:0,docHeight:dt,scrollHeight:dt+fs(it)+st.barHeight,nativeBarWidth:st.nativeBarWidth,gutterWidth:gt}}var bo=function(it,st,gt){this.cm=gt;var dt=this.vert=ie("div",[ie("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),mt=this.horiz=ie("div",[ie("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");dt.tabIndex=mt.tabIndex=-1,it(dt),it(mt),Ae(dt,"scroll",function(){dt.clientHeight&&st(dt.scrollTop,"vertical")}),Ae(mt,"scroll",function(){mt.clientWidth&&st(mt.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,fe&&ve<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};bo.prototype.update=function(it){var st=it.scrollWidth>it.clientWidth+1,gt=it.scrollHeight>it.clientHeight+1,dt=it.nativeBarWidth;if(gt){this.vert.style.display="block",this.vert.style.bottom=st?dt+"px":"0";var mt=it.viewHeight-(st?dt:0);this.vert.firstChild.style.height=Math.max(0,it.scrollHeight-it.clientHeight+mt)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(st){this.horiz.style.display="block",this.horiz.style.right=gt?dt+"px":"0",this.horiz.style.left=it.barLeft+"px";var It=it.viewWidth-it.barLeft-(gt?dt:0);this.horiz.firstChild.style.width=Math.max(0,it.scrollWidth-it.clientWidth+It)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&it.clientHeight>0&&(dt==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:gt?dt:0,bottom:st?dt:0}},bo.prototype.setScrollLeft=function(it){this.horiz.scrollLeft!=it&&(this.horiz.scrollLeft=it),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},bo.prototype.setScrollTop=function(it){this.vert.scrollTop!=it&&(this.vert.scrollTop=it),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},bo.prototype.zeroWidthHack=function(){var it=ct&&!ze?"12px":"18px";this.horiz.style.height=this.vert.style.width=it,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Zt,this.disableVert=new Zt},bo.prototype.enableZeroWidthBar=function(it,st,gt){it.style.pointerEvents="auto";function dt(){var mt=it.getBoundingClientRect(),It=gt=="vert"?document.elementFromPoint(mt.right-1,(mt.top+mt.bottom)/2):document.elementFromPoint((mt.right+mt.left)/2,mt.bottom-1);It!=it?it.style.pointerEvents="none":st.set(1e3,dt)}st.set(1e3,dt)},bo.prototype.clear=function(){var it=this.horiz.parentNode;it.removeChild(this.horiz),it.removeChild(this.vert)};var Qo=function(){};Qo.prototype.update=function(){return{bottom:0,right:0}},Qo.prototype.setScrollLeft=function(){},Qo.prototype.setScrollTop=function(){},Qo.prototype.clear=function(){};function Vo(it,st){st||(st=Gi(it));var gt=it.display.barWidth,dt=it.display.barHeight;Fo(it,st);for(var mt=0;mt<4&>!=it.display.barWidth||dt!=it.display.barHeight;mt++)gt!=it.display.barWidth&&it.options.lineWrapping&&Bo(it),Fo(it,Gi(it)),gt=it.display.barWidth,dt=it.display.barHeight}function Fo(it,st){var gt=it.display,dt=gt.scrollbars.update(st);gt.sizer.style.paddingRight=(gt.barWidth=dt.right)+"px",gt.sizer.style.paddingBottom=(gt.barHeight=dt.bottom)+"px",gt.heightForcer.style.borderBottom=dt.bottom+"px solid transparent",dt.right&&dt.bottom?(gt.scrollbarFiller.style.display="block",gt.scrollbarFiller.style.height=dt.bottom+"px",gt.scrollbarFiller.style.width=dt.right+"px"):gt.scrollbarFiller.style.display="",dt.bottom&&it.options.coverGutterNextToScrollbar&&it.options.fixedGutter?(gt.gutterFiller.style.display="block",gt.gutterFiller.style.height=dt.bottom+"px",gt.gutterFiller.style.width=st.gutterWidth+"px"):gt.gutterFiller.style.display=""}var fo={native:bo,null:Qo};function Sr(it){it.display.scrollbars&&(it.display.scrollbars.clear(),it.display.scrollbars.addClass&&Ut(it.display.wrapper,it.display.scrollbars.addClass)),it.display.scrollbars=new fo[it.options.scrollbarStyle](function(st){it.display.wrapper.insertBefore(st,it.display.scrollbarFiller),Ae(st,"mousedown",function(){it.state.focused&&setTimeout(function(){return it.display.input.focus()},0)}),st.setAttribute("cm-not-content","true")},function(st,gt){gt=="horizontal"?li(it,st):wo(it,st)},it),it.display.scrollbars.addClass&&je(it.display.wrapper,it.display.scrollbars.addClass)}var Fr=0;function Rr(it){it.curOp={cm:it,viewChanged:!1,startHeight:it.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Fr},Xr(it.curOp)}function Br(it){var st=it.curOp;st&&wa(st,function(gt){for(var dt=0;dt=gt.viewTo)||gt.maxLineChanged&&st.options.lineWrapping,it.update=it.mustUpdate&&new Aa(st,it.mustUpdate&&{top:it.scrollTop,ensure:it.scrollToPos},it.forceUpdate)}function Pa(it){it.updatedDisplay=it.mustUpdate&&qa(it.cm,it.update)}function ka(it){var st=it.cm,gt=st.display;it.updatedDisplay&&Bo(st),it.barMeasure=Gi(st),gt.maxLineChanged&&!st.options.lineWrapping&&(it.adjustWidthTo=Ir(st,gt.maxLine,gt.maxLine.text.length).left+3,st.display.sizerWidth=it.adjustWidthTo,it.barMeasure.scrollWidth=Math.max(gt.scroller.clientWidth,gt.sizer.offsetLeft+it.adjustWidthTo+fs(st)+st.display.barWidth),it.maxScrollLeft=Math.max(0,gt.sizer.offsetLeft+it.adjustWidthTo-sl(st))),(it.updatedDisplay||it.selectionChanged)&&(it.preparedSelection=gt.input.prepareSelection())}function Ar(it){var st=it.cm;it.adjustWidthTo!=null&&(st.display.sizer.style.minWidth=it.adjustWidthTo+"px",it.maxScrollLeft=it.display.viewTo)){var gt=+new Date+it.options.workTime,dt=io(it,st.highlightFrontier),mt=[];st.iter(dt.line,Math.min(st.first+st.size,it.display.viewTo+500),function(It){if(dt.line>=it.display.viewFrom){var Nt=It.styles,Gt=It.text.length>it.options.maxHighlightLength?Ve(st.mode,dt.state):null,Ht=uo(it,It,dt,!0);Gt&&(dt.state=Gt),It.styles=Ht.styles;var ue=It.styleClasses,nn=Ht.classes;nn?It.styleClasses=nn:ue&&(It.styleClasses=null);for(var Se=!Nt||Nt.length!=It.styles.length||ue!=nn&&(!ue||!nn||ue.bgClass!=nn.bgClass||ue.textClass!=nn.textClass),On=0;!Se&&Ongt)return Ia(it,it.options.workDelay),!0}),st.highlightFrontier=dt.line,st.modeFrontier=Math.max(st.modeFrontier,dt.line),mt.length&&oo(it,function(){for(var It=0;It=gt.viewFrom&&st.visible.to<=gt.viewTo&&(gt.updateLineNumbers==null||gt.updateLineNumbers>=gt.viewTo)&>.renderedView==gt.view&&Js(it)==0)return!1;Tr(it)&&(Na(it),st.dims=Rc(it));var mt=dt.first+dt.size,It=Math.max(st.visible.from-it.options.viewportMargin,dt.first),Nt=Math.min(mt,st.visible.to+it.options.viewportMargin);gt.viewFromNt&>.viewTo-Nt<20&&(Nt=Math.min(mt,gt.viewTo)),Ln&&(It=ei(it.doc,It),Nt=gi(it.doc,Nt));var Gt=It!=gt.viewFrom||Nt!=gt.viewTo||gt.lastWrapHeight!=st.wrapperHeight||gt.lastWrapWidth!=st.wrapperWidth;Qr(it,It,Nt),gt.viewOffset=Wi(Sn(it.doc,gt.viewFrom)),it.display.mover.style.top=gt.viewOffset+"px";var Ht=Js(it);if(!Gt&&Ht==0&&!st.force&>.renderedView==gt.view&&(gt.updateLineNumbers==null||gt.updateLineNumbers>=gt.viewTo))return!1;var ue=Ja(it);return Ht>4&&(gt.lineDiv.style.display="none"),Cr(it,gt.updateLineNumbers,st.dims),Ht>4&&(gt.lineDiv.style.display=""),gt.renderedView=gt.view,Dr(ue),ee(gt.cursorDiv),ee(gt.selectionDiv),gt.gutters.style.height=gt.sizer.style.minHeight=0,Gt&&(gt.lastWrapHeight=st.wrapperHeight,gt.lastWrapWidth=st.wrapperWidth,Ia(it,400)),gt.updateLineNumbers=null,!0}function Vi(it,st){for(var gt=st.viewport,dt=!0;;dt=!1){if(!dt||!it.options.lineWrapping||st.oldDisplayWidth==sl(it)){if(gt&>.top!=null&&(gt={top:Math.min(it.doc.height+Vl(it.display)-ti(it),gt.top)}),st.visible=yr(it.display,it.doc,gt),st.visible.from>=it.display.viewFrom&&st.visible.to<=it.display.viewTo)break}else dt&&(st.visible=yr(it.display,it.doc,gt));if(!qa(it,st))break;Bo(it);var mt=Gi(it);Qa(it),Vo(it,mt),xr(it,mt),st.force=!1}st.signal(it,"update",it),(it.display.viewFrom!=it.display.reportedViewFrom||it.display.viewTo!=it.display.reportedViewTo)&&(st.signal(it,"viewportChange",it,it.display.viewFrom,it.display.viewTo),it.display.reportedViewFrom=it.display.viewFrom,it.display.reportedViewTo=it.display.viewTo)}function Co(it,st){var gt=new Aa(it,st);if(qa(it,gt)){Bo(it),Vi(it,gt);var dt=Gi(it);Qa(it),Vo(it,dt),xr(it,dt),gt.finish()}}function Cr(it,st,gt){var dt=it.display,mt=it.options.lineNumbers,It=dt.lineDiv,Nt=It.firstChild;function Gt(vi){var Si=vi.nextSibling;return qt&&ct&&it.display.currentWheelTarget==vi?vi.style.display="none":vi.parentNode.removeChild(vi),Si}for(var Ht=dt.view,ue=dt.viewFrom,nn=0;nn-1&&(In=!1),al(it,Se,ue,gt)),In&&(ee(Se.lineNumber),Se.lineNumber.appendChild(document.createTextNode(Xe(it.options,ue)))),Nt=Se.node.nextSibling}ue+=Se.size}for(;Nt;)Nt=Gt(Nt)}function No(it){var st=it.gutters.offsetWidth;it.sizer.style.marginLeft=st+"px"}function xr(it,st){it.display.sizer.style.minHeight=st.docHeight+"px",it.display.heightForcer.style.top=st.docHeight+"px",it.display.gutters.style.height=st.docHeight+it.display.barHeight+fs(it)+"px"}function br(it){var st=it.display,gt=st.view;if(!(!st.alignWidgets&&(!st.gutters.firstChild||!it.options.fixedGutter))){for(var dt=tc(st)-st.scroller.scrollLeft+it.doc.scrollLeft,mt=st.gutters.offsetWidth,It=dt+"px",Nt=0;NtNt.clientWidth,Ht=Nt.scrollHeight>Nt.clientHeight;if(dt&&Gt||mt&&Ht){if(mt&&ct&&qt){t:for(var ue=st.target,nn=It.view;ue!=Nt;ue=ue.parentNode)for(var Se=0;Se=0&&Pe(it,dt.to())<=0)return gt}return-1};var Vr=function(it,st){this.anchor=it,this.head=st};Vr.prototype.from=function(){return ii(this.anchor,this.head)},Vr.prototype.to=function(){return oi(this.anchor,this.head)},Vr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function kl(it,st,gt){var dt=it&&it.options.selectionsMayTouch,mt=st[gt];st.sort(function(On,In){return Pe(On.from(),In.from())}),gt=Ye(st,mt);for(var It=1;It0:Ht>=0){var ue=ii(Gt.from(),Nt.from()),nn=oi(Gt.to(),Nt.to()),Se=Gt.empty()?Nt.from()==Nt.head:Gt.from()==Gt.head;It<=gt&&--gt,st.splice(--It,2,new Vr(Se?nn:ue,Se?ue:nn))}}return new vl(st,gt)}function su(it,st){return new vl([new Vr(it,st||it)],0)}function Nu(it){return it.text?he(it.from.line+it.text.length-1,oe(it.text).length+(it.text.length==1?it.from.ch:0)):it.to}function eh(it,st){if(Pe(it,st.from)<0)return it;if(Pe(it,st.to)<=0)return Nu(st);var gt=it.line+st.text.length-(st.to.line-st.from.line)-1,dt=it.ch;return it.line==st.to.line&&(dt+=Nu(st).ch-st.to.ch),he(gt,dt)}function wh(it,st){for(var gt=[],dt=0;dt1&&it.remove(Gt.line+1,vi-1),it.insert(Gt.line+1,no)}Ri(it,"change",it,st)}function Xo(it,st,gt){function dt(mt,It,Nt){if(mt.linked)for(var Gt=0;Gt1&&!it.done[it.done.length-2].ranges)return it.done.pop(),oe(it.done)}function wd(it,st,gt,dt){var mt=it.history;mt.undone.length=0;var It=+new Date,Nt,Gt;if((mt.lastOp==dt||mt.lastOrigin==st.origin&&st.origin&&(st.origin.charAt(0)=="+"&&mt.lastModTime>It-(it.cm?it.cm.options.historyEventDelay:500)||st.origin.charAt(0)=="*"))&&(Nt=oh(mt,mt.lastOp==dt)))Gt=oe(Nt.changes),Pe(st.from,st.to)==0&&Pe(st.from,Gt.to)==0?Gt.to=Nu(st):Nt.changes.push(Ph(it,st));else{var Ht=oe(mt.done);for((!Ht||!Ht.ranges)&&Gc(it.sel,mt.done),Nt={changes:[Ph(it,st)],generation:mt.generation},mt.done.push(Nt);mt.done.length>mt.undoDepth;)mt.done.shift(),mt.done[0].ranges||mt.done.shift()}mt.done.push(gt),mt.generation=++mt.maxGeneration,mt.lastModTime=mt.lastSelTime=It,mt.lastOp=mt.lastSelOp=dt,mt.lastOrigin=mt.lastSelOrigin=st.origin,Gt||Pn(it,"historyAdded")}function mf(it,st,gt,dt){var mt=st.charAt(0);return mt=="*"||mt=="+"&>.ranges.length==dt.ranges.length&>.somethingSelected()==dt.somethingSelected()&&new Date-it.history.lastSelTime<=(it.cm?it.cm.options.historyEventDelay:500)}function Ed(it,st,gt,dt){var mt=it.history,It=dt&&dt.origin;gt==mt.lastSelOp||It&&mt.lastSelOrigin==It&&(mt.lastModTime==mt.lastSelTime&&mt.lastOrigin==It||mf(it,It,oe(mt.done),st))?mt.done[mt.done.length-1]=st:Gc(st,mt.done),mt.lastSelTime=+new Date,mt.lastSelOrigin=It,mt.lastSelOp=gt,dt&&dt.clearRedo!==!1&&lu(mt.undone)}function Gc(it,st){var gt=oe(st);gt&>.ranges&>.equals(it)||st.push(it)}function Ih(it,st,gt,dt){var mt=st["spans_"+it.id],It=0;it.iter(Math.max(it.first,gt),Math.min(it.first+it.size,dt),function(Nt){Nt.markedSpans&&((mt||(mt=st["spans_"+it.id]={}))[It]=Nt.markedSpans),++It})}function _s(it){if(!it)return null;for(var st,gt=0;gt-1&&(oe(Gt)[Se]=ue[Se],delete ue[Se])}}return dt}function gg(it,st,gt,dt){if(dt){var mt=it.anchor;if(gt){var It=Pe(st,mt)<0;It!=Pe(gt,mt)<0?(mt=st,st=gt):It!=Pe(st,gt)<0&&(st=gt)}return new Vr(mt,st)}else return new Vr(gt||st,st)}function fg(it,st,gt,dt,mt){mt==null&&(mt=it.cm&&(it.cm.display.shift||it.extend)),Ws(it,new vl([gg(it.sel.primary(),st,gt,mt)],0),dt)}function U0(it,st,gt){for(var dt=[],mt=it.cm&&(it.cm.display.shift||it.extend),It=0;It=st.ch:Gt.to>st.ch))){if(mt&&(Pn(Ht,"beforeCursorEnter"),Ht.explicitlyCleared))if(It.markedSpans){--Nt;continue}else break;if(!Ht.atomic)continue;if(gt){var Se=Ht.find(dt<0?1:-1),On=void 0;if((dt<0?nn:ue)&&(Se=yf(it,Se,-dt,Se&&Se.line==st.line?It:null)),Se&&Se.line==st.line&&(On=Pe(Se,gt))&&(dt<0?On<0:On>0))return ah(it,Se,st,dt,mt)}var In=Ht.find(dt<0?-1:1);return(dt<0?ue:nn)&&(In=yf(it,In,dt,In.line==st.line?It:null)),In?ah(it,In,st,dt,mt):null}}return st}function Md(it,st,gt,dt,mt){var It=dt||1,Nt=ah(it,st,gt,It,mt)||!mt&&ah(it,st,gt,It,!0)||ah(it,st,gt,-It,mt)||!mt&&ah(it,st,gt,-It,!0);return Nt||(it.cantEdit=!0,he(it.first,0))}function yf(it,st,gt,dt){return gt<0&&st.ch==0?st.line>it.first?Kn(it,he(st.line-1)):null:gt>0&&st.ch==(dt||Sn(it,st.line)).text.length?st.line=0;--mt)ac(it,{from:dt[mt].from,to:dt[mt].to,text:mt?[""]:st.text,origin:st.origin});else ac(it,st)}}function ac(it,st){if(!(st.text.length==1&&st.text[0]==""&&Pe(st.from,st.to)==0)){var gt=wh(it,st);wd(it,st,gt,it.cm?it.cm.curOp.id:NaN),Zc(it,st,gt,_i(it,st));var dt=[];Xo(it,function(mt,It){!It&&Ye(dt,mt.history)==-1&&(Cf(mt.history,st),dt.push(mt.history)),Zc(mt,st,null,_i(mt,st))})}}function Ld(it,st,gt){var dt=it.cm&&it.cm.state.suppressEdits;if(!(dt&&!gt)){for(var mt=it.history,It,Nt=it.sel,Gt=st=="undo"?mt.done:mt.undone,Ht=st=="undo"?mt.undone:mt.done,ue=0;ue=0;--In){var vi=On(In);if(vi)return vi.v}}}}function Af(it,st){if(st!=0&&(it.first+=st,it.sel=new vl(cn(it.sel.ranges,function(mt){return new Vr(he(mt.anchor.line+st,mt.anchor.ch),he(mt.head.line+st,mt.head.ch))}),it.sel.primIndex),it.cm)){_r(it.cm,it.first,it.first-st,st);for(var gt=it.cm.display,dt=gt.viewFrom;dtit.lastLine())){if(st.from.lineIt&&(st={from:st.from,to:he(It,Sn(it,It).text.length),text:[st.text[0]],origin:st.origin}),st.removed=ai(it,st.from,st.to),gt||(gt=wh(it,st)),it.cm?Y0(it.cm,st,dt):Wc(it,st,dt),rc(it,gt,Be),it.cantEdit&&Md(it,he(it.firstLine(),0))&&(it.cantEdit=!1)}}function Y0(it,st,gt){var dt=it.doc,mt=it.display,It=st.from,Nt=st.to,Gt=!1,Ht=It.line;it.options.lineWrapping||(Ht=Xt(Ai(Sn(dt,It.line))),dt.iter(Ht,Nt.line+1,function(In){if(In==mt.maxLine)return Gt=!0,!0})),dt.sel.contains(st.from,st.to)>-1&&xi(it),Wc(dt,st,gt,Kr(it)),it.options.lineWrapping||(dt.iter(Ht,It.line+st.text.length,function(In){var vi=Ni(In);vi>mt.maxLineLength&&(mt.maxLine=In,mt.maxLineLength=vi,mt.maxLineChanged=!0,Gt=!1)}),Gt&&(it.curOp.updateMaxLine=!0)),Ei(dt,It.line),Ia(it,400);var ue=st.text.length-(Nt.line-It.line)-1;st.full?_r(it):It.line==Nt.line&&st.text.length==1&&!Hc(it.doc,st)?hr(it,It.line,"text"):_r(it,It.line,Nt.line+1,ue);var nn=Fi(it,"changes"),Se=Fi(it,"change");if(Se||nn){var On={from:It,to:Nt,text:st.text,removed:st.removed,origin:st.origin};Se&&Ri(it,"change",it,On),nn&&(it.curOp.changeObjs||(it.curOp.changeObjs=[])).push(On)}it.display.selForContextMenu=null}function sc(it,st,gt,dt,mt){var It;dt||(dt=gt),Pe(dt,gt)<0&&(It=[dt,gt],gt=It[0],dt=It[1]),typeof st=="string"&&(st=it.splitLines(st)),Fh(it,{from:gt,to:dt,text:st,origin:mt})}function Kl(it,st,gt,dt){gt1||!(this.children[0]instanceof Uc))){var Gt=[];this.collapse(Gt),this.children=[new Uc(Gt)],this.children[0].parent=this}},collapse:function(it){for(var st=0;st50){for(var Nt=mt.lines.length%25+25,Gt=Nt;Gt10);it.parent.maybeSpill()}},iterN:function(it,st,gt){for(var dt=0;dtit.display.maxLineLength&&(it.display.maxLine=ue,it.display.maxLineLength=nn,it.display.maxLineChanged=!0)}dt!=null&&it&&this.collapsed&&_r(it,dt,mt+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,it&&Pd(it.doc)),it&&Ri(it,"markerCleared",it,this,dt,mt),st&&Br(it),this.parent&&this.parent.clear()}},Ue.prototype.find=function(it,st){it==null&&this.type=="bookmark"&&(it=1);for(var gt,dt,mt=0;mt0||Nt==0&&It.clearWhenEmpty!==!1)return It;if(It.replacedWith&&(It.collapsed=!0,It.widgetNode=Me("span",[It.replacedWith],"CodeMirror-widget"),dt.handleMouseEvents||It.widgetNode.setAttribute("cm-ignore-events","true"),dt.insertLeft&&(It.widgetNode.insertLeft=!0)),It.collapsed){if(_n(it,st.line,st,gt,It)||st.line!=gt.line&&_n(it,gt.line,st,gt,It))throw new Error("Inserting collapsed marker partially overlapping an existing one");bn()}It.addToHistory&&wd(it,{from:st,to:gt,origin:"markText"},it.sel,NaN);var Gt=st.line,Ht=it.cm,ue;if(it.iter(Gt,gt.line+1,function(Se){Ht&&It.collapsed&&!Ht.options.lineWrapping&&Ai(Se)==Ht.display.maxLine&&(ue=!0),It.collapsed&&Gt!=st.line&&Qe(Se,0),Uo(Se,new ao(It,Gt==st.line?st.ch:null,Gt==gt.line?gt.ch:null)),++Gt}),It.collapsed&&it.iter(st.line,gt.line+1,function(Se){Nn(it,Se)&&Qe(Se,0)}),It.clearOnEnter&&Ae(It,"beforeCursorEnter",function(){return It.clear()}),It.readOnly&&(ho(),(it.history.done.length||it.history.undone.length)&&it.clearHistory()),It.collapsed&&(It.id=++Q0,It.atomic=!0),Ht){if(ue&&(Ht.curOp.updateMaxLine=!0),It.collapsed)_r(Ht,st.line,gt.line+1);else if(It.className||It.startStyle||It.endStyle||It.css||It.attributes||It.title)for(var nn=st.line;nn<=gt.line;nn++)hr(Ht,nn,"text");It.atomic&&Pd(Ht.doc),Ri(Ht,"markerAdded",Ht,It)}return It}var Tu=function(it,st){this.markers=it,this.primary=st;for(var gt=0;gt=0;Ht--)Fh(this,dt[Ht]);Gt?pg(this,Gt):this.cm&&Ze(this.cm)}),undo:Jo(function(){Ld(this,"undo")}),redo:Jo(function(){Ld(this,"redo")}),undoSelection:Jo(function(){Ld(this,"undo",!0)}),redoSelection:Jo(function(){Ld(this,"redo",!0)}),setExtending:function(it){this.extend=it},getExtending:function(){return this.extend},historySize:function(){for(var it=this.history,st=0,gt=0,dt=0;dt=it.ch)&&st.push(mt.marker.parent||mt.marker)}return st},findMarks:function(it,st,gt){it=Kn(this,it),st=Kn(this,st);var dt=[],mt=it.line;return this.iter(it.line,st.line+1,function(It){var Nt=It.markedSpans;if(Nt)for(var Gt=0;Gt=Ht.to||Ht.from==null&&mt!=it.line||Ht.from!=null&&mt==st.line&&Ht.from>=st.ch)&&(!gt||gt(Ht.marker))&&dt.push(Ht.marker.parent||Ht.marker)}++mt}),dt},getAllMarks:function(){var it=[];return this.iter(function(st){var gt=st.markedSpans;if(gt)for(var dt=0;dtit)return st=it,!0;it-=It,++gt}),Kn(this,he(gt,st))},indexFromPos:function(it){it=Kn(this,it);var st=it.ch;if(it.linest&&(st=it.from),it.to!=null&&it.to1&&(Nt=!0)),ue.scrollLeft!=null&&(li(it,ue.scrollLeft),Math.abs(it.doc.scrollLeft-Se)>1&&(Nt=!0)),!Nt)break}return mt}function ec(it,st){var gt=xd(it,st);gt.scrollTop!=null&&wo(it,gt.scrollTop),gt.scrollLeft!=null&&li(it,gt.scrollLeft)}function xd(it,st){var gt=it.display,dt=xu(it.display);st.top<0&&(st.top=0);var mt=it.curOp&&it.curOp.scrollTop!=null?it.curOp.scrollTop:gt.scroller.scrollTop,It=ti(it),Nt={};st.bottom-st.top>It&&(st.bottom=st.top+It);var Gt=it.doc.height+Vl(gt),Ht=st.topGt-dt;if(st.topmt+It){var nn=Math.min(st.top,(ue?Gt:st.bottom)-It);nn!=mt&&(Nt.scrollTop=nn)}var Se=it.options.fixedGutter?0:gt.gutters.offsetWidth,On=it.curOp&&it.curOp.scrollLeft!=null?it.curOp.scrollLeft:gt.scroller.scrollLeft-Se,In=sl(it)-gt.gutters.offsetWidth,vi=st.right-st.left>In;return vi&&(st.right=st.left+In),st.left<10?Nt.scrollLeft=0:st.leftIn+On-3&&(Nt.scrollLeft=st.right+(vi?0:10)-In),Nt}function Ne(it,st){st!=null&&(Xi(it),it.curOp.scrollTop=(it.curOp.scrollTop==null?it.doc.scrollTop:it.curOp.scrollTop)+st)}function Ze(it){Xi(it);var st=it.getCursor();it.curOp.scrollToPos={from:st,to:st,margin:it.options.cursorScrollMargin}}function qe(it,st,gt){(st!=null||gt!=null)&&Xi(it),st!=null&&(it.curOp.scrollLeft=st),gt!=null&&(it.curOp.scrollTop=gt)}function ci(it,st){Xi(it),it.curOp.scrollToPos=st}function Xi(it){var st=it.curOp.scrollToPos;if(st){it.curOp.scrollToPos=null;var gt=Ad(it,st.from),dt=Ad(it,st.to);Zi(it,gt,dt,st.margin)}}function Zi(it,st,gt,dt){var mt=xd(it,{left:Math.min(st.left,gt.left),top:Math.min(st.top,gt.top)-dt,right:Math.max(st.right,gt.right),bottom:Math.max(st.bottom,gt.bottom)+dt});qe(it,mt.scrollLeft,mt.scrollTop)}function wo(it,st){Math.abs(it.doc.scrollTop-st)<2||(ot||Co(it,{top:st}),$i(it,st,!0),ot&&Co(it),Ia(it,100))}function $i(it,st,gt){st=Math.max(0,Math.min(it.display.scroller.scrollHeight-it.display.scroller.clientHeight,st)),!(it.display.scroller.scrollTop==st&&!gt)&&(it.doc.scrollTop=st,it.display.scrollbars.setScrollTop(st),it.display.scroller.scrollTop!=st&&(it.display.scroller.scrollTop=st))}function li(it,st,gt,dt){st=Math.max(0,Math.min(st,it.display.scroller.scrollWidth-it.display.scroller.clientWidth)),!((gt?st==it.doc.scrollLeft:Math.abs(it.doc.scrollLeft-st)<2)&&!dt)&&(it.doc.scrollLeft=st,br(it),it.display.scroller.scrollLeft!=st&&(it.display.scroller.scrollLeft=st),it.display.scrollbars.setScrollLeft(st))}function Gi(it){var st=it.display,gt=st.gutters.offsetWidth,dt=Math.round(it.doc.height+Vl(it.display));return{clientHeight:st.scroller.clientHeight,viewHeight:st.wrapper.clientHeight,scrollWidth:st.scroller.scrollWidth,clientWidth:st.scroller.clientWidth,viewWidth:st.wrapper.clientWidth,barLeft:it.options.fixedGutter?gt:0,docHeight:dt,scrollHeight:dt+fs(it)+st.barHeight,nativeBarWidth:st.nativeBarWidth,gutterWidth:gt}}var bo=function(it,st,gt){this.cm=gt;var dt=this.vert=ie("div",[ie("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),mt=this.horiz=ie("div",[ie("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");dt.tabIndex=mt.tabIndex=-1,it(dt),it(mt),Ae(dt,"scroll",function(){dt.clientHeight&&st(dt.scrollTop,"vertical")}),Ae(mt,"scroll",function(){mt.clientWidth&&st(mt.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,fe&&ve<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};bo.prototype.update=function(it){var st=it.scrollWidth>it.clientWidth+1,gt=it.scrollHeight>it.clientHeight+1,dt=it.nativeBarWidth;if(gt){this.vert.style.display="block",this.vert.style.bottom=st?dt+"px":"0";var mt=it.viewHeight-(st?dt:0);this.vert.firstChild.style.height=Math.max(0,it.scrollHeight-it.clientHeight+mt)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(st){this.horiz.style.display="block",this.horiz.style.right=gt?dt+"px":"0",this.horiz.style.left=it.barLeft+"px";var It=it.viewWidth-it.barLeft-(gt?dt:0);this.horiz.firstChild.style.width=Math.max(0,it.scrollWidth-it.clientWidth+It)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&it.clientHeight>0&&(dt==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:gt?dt:0,bottom:st?dt:0}},bo.prototype.setScrollLeft=function(it){this.horiz.scrollLeft!=it&&(this.horiz.scrollLeft=it),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},bo.prototype.setScrollTop=function(it){this.vert.scrollTop!=it&&(this.vert.scrollTop=it),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},bo.prototype.zeroWidthHack=function(){var it=ct&&!ze?"12px":"18px";this.horiz.style.height=this.vert.style.width=it,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Zt,this.disableVert=new Zt},bo.prototype.enableZeroWidthBar=function(it,st,gt){it.style.pointerEvents="auto";function dt(){var mt=it.getBoundingClientRect(),It=gt=="vert"?document.elementFromPoint(mt.right-1,(mt.top+mt.bottom)/2):document.elementFromPoint((mt.right+mt.left)/2,mt.bottom-1);It!=it?it.style.pointerEvents="none":st.set(1e3,dt)}st.set(1e3,dt)},bo.prototype.clear=function(){var it=this.horiz.parentNode;it.removeChild(this.horiz),it.removeChild(this.vert)};var Qo=function(){};Qo.prototype.update=function(){return{bottom:0,right:0}},Qo.prototype.setScrollLeft=function(){},Qo.prototype.setScrollTop=function(){},Qo.prototype.clear=function(){};function Vo(it,st){st||(st=Gi(it));var gt=it.display.barWidth,dt=it.display.barHeight;Fo(it,st);for(var mt=0;mt<4&>!=it.display.barWidth||dt!=it.display.barHeight;mt++)gt!=it.display.barWidth&&it.options.lineWrapping&&Bo(it),Fo(it,Gi(it)),gt=it.display.barWidth,dt=it.display.barHeight}function Fo(it,st){var gt=it.display,dt=gt.scrollbars.update(st);gt.sizer.style.paddingRight=(gt.barWidth=dt.right)+"px",gt.sizer.style.paddingBottom=(gt.barHeight=dt.bottom)+"px",gt.heightForcer.style.borderBottom=dt.bottom+"px solid transparent",dt.right&&dt.bottom?(gt.scrollbarFiller.style.display="block",gt.scrollbarFiller.style.height=dt.bottom+"px",gt.scrollbarFiller.style.width=dt.right+"px"):gt.scrollbarFiller.style.display="",dt.bottom&&it.options.coverGutterNextToScrollbar&&it.options.fixedGutter?(gt.gutterFiller.style.display="block",gt.gutterFiller.style.height=dt.bottom+"px",gt.gutterFiller.style.width=st.gutterWidth+"px"):gt.gutterFiller.style.display=""}var fo={native:bo,null:Qo};function Sr(it){it.display.scrollbars&&(it.display.scrollbars.clear(),it.display.scrollbars.addClass&&Ut(it.display.wrapper,it.display.scrollbars.addClass)),it.display.scrollbars=new fo[it.options.scrollbarStyle](function(st){it.display.wrapper.insertBefore(st,it.display.scrollbarFiller),Ae(st,"mousedown",function(){it.state.focused&&setTimeout(function(){return it.display.input.focus()},0)}),st.setAttribute("cm-not-content","true")},function(st,gt){gt=="horizontal"?li(it,st):wo(it,st)},it),it.display.scrollbars.addClass&&je(it.display.wrapper,it.display.scrollbars.addClass)}var Fr=0;function Rr(it){it.curOp={cm:it,viewChanged:!1,startHeight:it.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Fr},Xr(it.curOp)}function Br(it){var st=it.curOp;st&&wa(st,function(gt){for(var dt=0;dt=gt.viewTo)||gt.maxLineChanged&&st.options.lineWrapping,it.update=it.mustUpdate&&new Aa(st,it.mustUpdate&&{top:it.scrollTop,ensure:it.scrollToPos},it.forceUpdate)}function Pa(it){it.updatedDisplay=it.mustUpdate&&Ja(it.cm,it.update)}function ka(it){var st=it.cm,gt=st.display;it.updatedDisplay&&Bo(st),it.barMeasure=Gi(st),gt.maxLineChanged&&!st.options.lineWrapping&&(it.adjustWidthTo=Ir(st,gt.maxLine,gt.maxLine.text.length).left+3,st.display.sizerWidth=it.adjustWidthTo,it.barMeasure.scrollWidth=Math.max(gt.scroller.clientWidth,gt.sizer.offsetLeft+it.adjustWidthTo+fs(st)+st.display.barWidth),it.maxScrollLeft=Math.max(0,gt.sizer.offsetLeft+it.adjustWidthTo-sl(st))),(it.updatedDisplay||it.selectionChanged)&&(it.preparedSelection=gt.input.prepareSelection())}function Ar(it){var st=it.cm;it.adjustWidthTo!=null&&(st.display.sizer.style.minWidth=it.adjustWidthTo+"px",it.maxScrollLeft=it.display.viewTo)){var gt=+new Date+it.options.workTime,dt=io(it,st.highlightFrontier),mt=[];st.iter(dt.line,Math.min(st.first+st.size,it.display.viewTo+500),function(It){if(dt.line>=it.display.viewFrom){var Nt=It.styles,Gt=It.text.length>it.options.maxHighlightLength?Ve(st.mode,dt.state):null,Ht=uo(it,It,dt,!0);Gt&&(dt.state=Gt),It.styles=Ht.styles;var ue=It.styleClasses,nn=Ht.classes;nn?It.styleClasses=nn:ue&&(It.styleClasses=null);for(var Se=!Nt||Nt.length!=It.styles.length||ue!=nn&&(!ue||!nn||ue.bgClass!=nn.bgClass||ue.textClass!=nn.textClass),On=0;!Se&&Ongt)return Ia(it,it.options.workDelay),!0}),st.highlightFrontier=dt.line,st.modeFrontier=Math.max(st.modeFrontier,dt.line),mt.length&&oo(it,function(){for(var It=0;It=gt.viewFrom&&st.visible.to<=gt.viewTo&&(gt.updateLineNumbers==null||gt.updateLineNumbers>=gt.viewTo)&>.renderedView==gt.view&&Js(it)==0)return!1;Tr(it)&&(Na(it),st.dims=Rc(it));var mt=dt.first+dt.size,It=Math.max(st.visible.from-it.options.viewportMargin,dt.first),Nt=Math.min(mt,st.visible.to+it.options.viewportMargin);gt.viewFromNt&>.viewTo-Nt<20&&(Nt=Math.min(mt,gt.viewTo)),Ln&&(It=ei(it.doc,It),Nt=gi(it.doc,Nt));var Gt=It!=gt.viewFrom||Nt!=gt.viewTo||gt.lastWrapHeight!=st.wrapperHeight||gt.lastWrapWidth!=st.wrapperWidth;Qr(it,It,Nt),gt.viewOffset=Wi(Sn(it.doc,gt.viewFrom)),it.display.mover.style.top=gt.viewOffset+"px";var Ht=Js(it);if(!Gt&&Ht==0&&!st.force&>.renderedView==gt.view&&(gt.updateLineNumbers==null||gt.updateLineNumbers>=gt.viewTo))return!1;var ue=Qa(it);return Ht>4&&(gt.lineDiv.style.display="none"),Cr(it,gt.updateLineNumbers,st.dims),Ht>4&&(gt.lineDiv.style.display=""),gt.renderedView=gt.view,Dr(ue),ee(gt.cursorDiv),ee(gt.selectionDiv),gt.gutters.style.height=gt.sizer.style.minHeight=0,Gt&&(gt.lastWrapHeight=st.wrapperHeight,gt.lastWrapWidth=st.wrapperWidth,Ia(it,400)),gt.updateLineNumbers=null,!0}function Vi(it,st){for(var gt=st.viewport,dt=!0;;dt=!1){if(!dt||!it.options.lineWrapping||st.oldDisplayWidth==sl(it)){if(gt&>.top!=null&&(gt={top:Math.min(it.doc.height+Vl(it.display)-ti(it),gt.top)}),st.visible=yr(it.display,it.doc,gt),st.visible.from>=it.display.viewFrom&&st.visible.to<=it.display.viewTo)break}else dt&&(st.visible=yr(it.display,it.doc,gt));if(!Ja(it,st))break;Bo(it);var mt=Gi(it);Ka(it),Vo(it,mt),xr(it,mt),st.force=!1}st.signal(it,"update",it),(it.display.viewFrom!=it.display.reportedViewFrom||it.display.viewTo!=it.display.reportedViewTo)&&(st.signal(it,"viewportChange",it,it.display.viewFrom,it.display.viewTo),it.display.reportedViewFrom=it.display.viewFrom,it.display.reportedViewTo=it.display.viewTo)}function Co(it,st){var gt=new Aa(it,st);if(Ja(it,gt)){Bo(it),Vi(it,gt);var dt=Gi(it);Ka(it),Vo(it,dt),xr(it,dt),gt.finish()}}function Cr(it,st,gt){var dt=it.display,mt=it.options.lineNumbers,It=dt.lineDiv,Nt=It.firstChild;function Gt(vi){var Si=vi.nextSibling;return qt&&ct&&it.display.currentWheelTarget==vi?vi.style.display="none":vi.parentNode.removeChild(vi),Si}for(var Ht=dt.view,ue=dt.viewFrom,nn=0;nn-1&&(In=!1),al(it,Se,ue,gt)),In&&(ee(Se.lineNumber),Se.lineNumber.appendChild(document.createTextNode(Xe(it.options,ue)))),Nt=Se.node.nextSibling}ue+=Se.size}for(;Nt;)Nt=Gt(Nt)}function No(it){var st=it.gutters.offsetWidth;it.sizer.style.marginLeft=st+"px"}function xr(it,st){it.display.sizer.style.minHeight=st.docHeight+"px",it.display.heightForcer.style.top=st.docHeight+"px",it.display.gutters.style.height=st.docHeight+it.display.barHeight+fs(it)+"px"}function br(it){var st=it.display,gt=st.view;if(!(!st.alignWidgets&&(!st.gutters.firstChild||!it.options.fixedGutter))){for(var dt=tc(st)-st.scroller.scrollLeft+it.doc.scrollLeft,mt=st.gutters.offsetWidth,It=dt+"px",Nt=0;NtNt.clientWidth,Ht=Nt.scrollHeight>Nt.clientHeight;if(dt&&Gt||mt&&Ht){if(mt&&ct&&qt){t:for(var ue=st.target,nn=It.view;ue!=Nt;ue=ue.parentNode)for(var Se=0;Se=0&&Pe(it,dt.to())<=0)return gt}return-1};var Vr=function(it,st){this.anchor=it,this.head=st};Vr.prototype.from=function(){return ii(this.anchor,this.head)},Vr.prototype.to=function(){return oi(this.anchor,this.head)},Vr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function kl(it,st,gt){var dt=it&&it.options.selectionsMayTouch,mt=st[gt];st.sort(function(On,In){return Pe(On.from(),In.from())}),gt=Ye(st,mt);for(var It=1;It0:Ht>=0){var ue=ii(Gt.from(),Nt.from()),nn=oi(Gt.to(),Nt.to()),Se=Gt.empty()?Nt.from()==Nt.head:Gt.from()==Gt.head;It<=gt&&--gt,st.splice(--It,2,new Vr(Se?nn:ue,Se?ue:nn))}}return new vl(st,gt)}function su(it,st){return new vl([new Vr(it,st||it)],0)}function Nu(it){return it.text?he(it.from.line+it.text.length-1,oe(it.text).length+(it.text.length==1?it.from.ch:0)):it.to}function eh(it,st){if(Pe(it,st.from)<0)return it;if(Pe(it,st.to)<=0)return Nu(st);var gt=it.line+st.text.length-(st.to.line-st.from.line)-1,dt=it.ch;return it.line==st.to.line&&(dt+=Nu(st).ch-st.to.ch),he(gt,dt)}function wh(it,st){for(var gt=[],dt=0;dt1&&it.remove(Gt.line+1,vi-1),it.insert(Gt.line+1,no)}Ri(it,"change",it,st)}function Xo(it,st,gt){function dt(mt,It,Nt){if(mt.linked)for(var Gt=0;Gt1&&!it.done[it.done.length-2].ranges)return it.done.pop(),oe(it.done)}function wd(it,st,gt,dt){var mt=it.history;mt.undone.length=0;var It=+new Date,Nt,Gt;if((mt.lastOp==dt||mt.lastOrigin==st.origin&&st.origin&&(st.origin.charAt(0)=="+"&&mt.lastModTime>It-(it.cm?it.cm.options.historyEventDelay:500)||st.origin.charAt(0)=="*"))&&(Nt=oh(mt,mt.lastOp==dt)))Gt=oe(Nt.changes),Pe(st.from,st.to)==0&&Pe(st.from,Gt.to)==0?Gt.to=Nu(st):Nt.changes.push(Ph(it,st));else{var Ht=oe(mt.done);for((!Ht||!Ht.ranges)&&Gc(it.sel,mt.done),Nt={changes:[Ph(it,st)],generation:mt.generation},mt.done.push(Nt);mt.done.length>mt.undoDepth;)mt.done.shift(),mt.done[0].ranges||mt.done.shift()}mt.done.push(gt),mt.generation=++mt.maxGeneration,mt.lastModTime=mt.lastSelTime=It,mt.lastOp=mt.lastSelOp=dt,mt.lastOrigin=mt.lastSelOrigin=st.origin,Gt||Pn(it,"historyAdded")}function mf(it,st,gt,dt){var mt=st.charAt(0);return mt=="*"||mt=="+"&>.ranges.length==dt.ranges.length&>.somethingSelected()==dt.somethingSelected()&&new Date-it.history.lastSelTime<=(it.cm?it.cm.options.historyEventDelay:500)}function Ed(it,st,gt,dt){var mt=it.history,It=dt&&dt.origin;gt==mt.lastSelOp||It&&mt.lastSelOrigin==It&&(mt.lastModTime==mt.lastSelTime&&mt.lastOrigin==It||mf(it,It,oe(mt.done),st))?mt.done[mt.done.length-1]=st:Gc(st,mt.done),mt.lastSelTime=+new Date,mt.lastSelOrigin=It,mt.lastSelOp=gt,dt&&dt.clearRedo!==!1&&lu(mt.undone)}function Gc(it,st){var gt=oe(st);gt&>.ranges&>.equals(it)||st.push(it)}function Ih(it,st,gt,dt){var mt=st["spans_"+it.id],It=0;it.iter(Math.max(it.first,gt),Math.min(it.first+it.size,dt),function(Nt){Nt.markedSpans&&((mt||(mt=st["spans_"+it.id]={}))[It]=Nt.markedSpans),++It})}function _s(it){if(!it)return null;for(var st,gt=0;gt-1&&(oe(Gt)[Se]=ue[Se],delete ue[Se])}}return dt}function gg(it,st,gt,dt){if(dt){var mt=it.anchor;if(gt){var It=Pe(st,mt)<0;It!=Pe(gt,mt)<0?(mt=st,st=gt):It!=Pe(st,gt)<0&&(st=gt)}return new Vr(mt,st)}else return new Vr(gt||st,st)}function fg(it,st,gt,dt,mt){mt==null&&(mt=it.cm&&(it.cm.display.shift||it.extend)),Ws(it,new vl([gg(it.sel.primary(),st,gt,mt)],0),dt)}function U0(it,st,gt){for(var dt=[],mt=it.cm&&(it.cm.display.shift||it.extend),It=0;It=st.ch:Gt.to>st.ch))){if(mt&&(Pn(Ht,"beforeCursorEnter"),Ht.explicitlyCleared))if(It.markedSpans){--Nt;continue}else break;if(!Ht.atomic)continue;if(gt){var Se=Ht.find(dt<0?1:-1),On=void 0;if((dt<0?nn:ue)&&(Se=yf(it,Se,-dt,Se&&Se.line==st.line?It:null)),Se&&Se.line==st.line&&(On=Pe(Se,gt))&&(dt<0?On<0:On>0))return ah(it,Se,st,dt,mt)}var In=Ht.find(dt<0?-1:1);return(dt<0?ue:nn)&&(In=yf(it,In,dt,In.line==st.line?It:null)),In?ah(it,In,st,dt,mt):null}}return st}function Md(it,st,gt,dt,mt){var It=dt||1,Nt=ah(it,st,gt,It,mt)||!mt&&ah(it,st,gt,It,!0)||ah(it,st,gt,-It,mt)||!mt&&ah(it,st,gt,-It,!0);return Nt||(it.cantEdit=!0,he(it.first,0))}function yf(it,st,gt,dt){return gt<0&&st.ch==0?st.line>it.first?Kn(it,he(st.line-1)):null:gt>0&&st.ch==(dt||Sn(it,st.line)).text.length?st.line=0;--mt)ac(it,{from:dt[mt].from,to:dt[mt].to,text:mt?[""]:st.text,origin:st.origin});else ac(it,st)}}function ac(it,st){if(!(st.text.length==1&&st.text[0]==""&&Pe(st.from,st.to)==0)){var gt=wh(it,st);wd(it,st,gt,it.cm?it.cm.curOp.id:NaN),Zc(it,st,gt,_i(it,st));var dt=[];Xo(it,function(mt,It){!It&&Ye(dt,mt.history)==-1&&(Cf(mt.history,st),dt.push(mt.history)),Zc(mt,st,null,_i(mt,st))})}}function Ld(it,st,gt){var dt=it.cm&&it.cm.state.suppressEdits;if(!(dt&&!gt)){for(var mt=it.history,It,Nt=it.sel,Gt=st=="undo"?mt.done:mt.undone,Ht=st=="undo"?mt.undone:mt.done,ue=0;ue=0;--In){var vi=On(In);if(vi)return vi.v}}}}function Af(it,st){if(st!=0&&(it.first+=st,it.sel=new vl(cn(it.sel.ranges,function(mt){return new Vr(he(mt.anchor.line+st,mt.anchor.ch),he(mt.head.line+st,mt.head.ch))}),it.sel.primIndex),it.cm)){_r(it.cm,it.first,it.first-st,st);for(var gt=it.cm.display,dt=gt.viewFrom;dtit.lastLine())){if(st.from.lineIt&&(st={from:st.from,to:he(It,Sn(it,It).text.length),text:[st.text[0]],origin:st.origin}),st.removed=ai(it,st.from,st.to),gt||(gt=wh(it,st)),it.cm?Y0(it.cm,st,dt):Wc(it,st,dt),rc(it,gt,Be),it.cantEdit&&Md(it,he(it.firstLine(),0))&&(it.cantEdit=!1)}}function Y0(it,st,gt){var dt=it.doc,mt=it.display,It=st.from,Nt=st.to,Gt=!1,Ht=It.line;it.options.lineWrapping||(Ht=Xt(Ai(Sn(dt,It.line))),dt.iter(Ht,Nt.line+1,function(In){if(In==mt.maxLine)return Gt=!0,!0})),dt.sel.contains(st.from,st.to)>-1&&xi(it),Wc(dt,st,gt,Kr(it)),it.options.lineWrapping||(dt.iter(Ht,It.line+st.text.length,function(In){var vi=Ni(In);vi>mt.maxLineLength&&(mt.maxLine=In,mt.maxLineLength=vi,mt.maxLineChanged=!0,Gt=!1)}),Gt&&(it.curOp.updateMaxLine=!0)),Ei(dt,It.line),Ia(it,400);var ue=st.text.length-(Nt.line-It.line)-1;st.full?_r(it):It.line==Nt.line&&st.text.length==1&&!Hc(it.doc,st)?hr(it,It.line,"text"):_r(it,It.line,Nt.line+1,ue);var nn=Fi(it,"changes"),Se=Fi(it,"change");if(Se||nn){var On={from:It,to:Nt,text:st.text,removed:st.removed,origin:st.origin};Se&&Ri(it,"change",it,On),nn&&(it.curOp.changeObjs||(it.curOp.changeObjs=[])).push(On)}it.display.selForContextMenu=null}function sc(it,st,gt,dt,mt){var It;dt||(dt=gt),Pe(dt,gt)<0&&(It=[dt,gt],gt=It[0],dt=It[1]),typeof st=="string"&&(st=it.splitLines(st)),Fh(it,{from:gt,to:dt,text:st,origin:mt})}function Kl(it,st,gt,dt){gt1||!(this.children[0]instanceof Uc))){var Gt=[];this.collapse(Gt),this.children=[new Uc(Gt)],this.children[0].parent=this}},collapse:function(it){for(var st=0;st50){for(var Nt=mt.lines.length%25+25,Gt=Nt;Gt10);it.parent.maybeSpill()}},iterN:function(it,st,gt){for(var dt=0;dtit.display.maxLineLength&&(it.display.maxLine=ue,it.display.maxLineLength=nn,it.display.maxLineChanged=!0)}dt!=null&&it&&this.collapsed&&_r(it,dt,mt+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,it&&Pd(it.doc)),it&&Ri(it,"markerCleared",it,this,dt,mt),st&&Br(it),this.parent&&this.parent.clear()}},Ue.prototype.find=function(it,st){it==null&&this.type=="bookmark"&&(it=1);for(var gt,dt,mt=0;mt0||Nt==0&&It.clearWhenEmpty!==!1)return It;if(It.replacedWith&&(It.collapsed=!0,It.widgetNode=Me("span",[It.replacedWith],"CodeMirror-widget"),dt.handleMouseEvents||It.widgetNode.setAttribute("cm-ignore-events","true"),dt.insertLeft&&(It.widgetNode.insertLeft=!0)),It.collapsed){if(_n(it,st.line,st,gt,It)||st.line!=gt.line&&_n(it,gt.line,st,gt,It))throw new Error("Inserting collapsed marker partially overlapping an existing one");bn()}It.addToHistory&&wd(it,{from:st,to:gt,origin:"markText"},it.sel,NaN);var Gt=st.line,Ht=it.cm,ue;if(it.iter(Gt,gt.line+1,function(Se){Ht&&It.collapsed&&!Ht.options.lineWrapping&&Ai(Se)==Ht.display.maxLine&&(ue=!0),It.collapsed&&Gt!=st.line&&Qe(Se,0),Uo(Se,new ao(It,Gt==st.line?st.ch:null,Gt==gt.line?gt.ch:null)),++Gt}),It.collapsed&&it.iter(st.line,gt.line+1,function(Se){Nn(it,Se)&&Qe(Se,0)}),It.clearOnEnter&&Ae(It,"beforeCursorEnter",function(){return It.clear()}),It.readOnly&&(ho(),(it.history.done.length||it.history.undone.length)&&it.clearHistory()),It.collapsed&&(It.id=++Q0,It.atomic=!0),Ht){if(ue&&(Ht.curOp.updateMaxLine=!0),It.collapsed)_r(Ht,st.line,gt.line+1);else if(It.className||It.startStyle||It.endStyle||It.css||It.attributes||It.title)for(var nn=st.line;nn<=gt.line;nn++)hr(Ht,nn,"text");It.atomic&&Pd(Ht.doc),Ri(Ht,"markerAdded",Ht,It)}return It}var Tu=function(it,st){this.markers=it,this.primary=st;for(var gt=0;gt=0;Ht--)Fh(this,dt[Ht]);Gt?pg(this,Gt):this.cm&&Ze(this.cm)}),undo:Jo(function(){Ld(this,"undo")}),redo:Jo(function(){Ld(this,"redo")}),undoSelection:Jo(function(){Ld(this,"undo",!0)}),redoSelection:Jo(function(){Ld(this,"redo",!0)}),setExtending:function(it){this.extend=it},getExtending:function(){return this.extend},historySize:function(){for(var it=this.history,st=0,gt=0,dt=0;dt=it.ch)&&st.push(mt.marker.parent||mt.marker)}return st},findMarks:function(it,st,gt){it=Kn(this,it),st=Kn(this,st);var dt=[],mt=it.line;return this.iter(it.line,st.line+1,function(It){var Nt=It.markedSpans;if(Nt)for(var Gt=0;Gt=Ht.to||Ht.from==null&&mt!=it.line||Ht.from!=null&&mt==st.line&&Ht.from>=st.ch)&&(!gt||gt(Ht.marker))&&dt.push(Ht.marker.parent||Ht.marker)}++mt}),dt},getAllMarks:function(){var it=[];return this.iter(function(st){var gt=st.markedSpans;if(gt)for(var dt=0;dtit)return st=it,!0;it-=It,++gt}),Kn(this,he(gt,st))},indexFromPos:function(it){it=Kn(this,it);var st=it.ch;if(it.linest&&(st=it.from),it.to!=null&&it.to-1){st.state.draggingText(it),setTimeout(function(){return st.display.input.focus()},20);return}try{var nn=it.dataTransfer.getData("Text");if(nn){var Se;if(st.state.draggingText&&!st.state.draggingText.copy&&(Se=st.listSelections()),rc(st.doc,su(gt,gt)),Se)for(var On=0;On=0;Gt--)sc(it.doc,"",dt[Gt].from,dt[Gt].to,"+delete");Ze(it)})}function Lf(it,st,gt){var dt=ke(it.text,st+gt,gt);return dt<0||dt>it.text.length?null:dt}function Ya(it,st,gt){var dt=Lf(it,st.ch,gt);return dt==null?null:new he(st.line,dt,gt<0?"after":"before")}function Nd(it,st,gt,dt,mt){if(it){st.doc.direction=="rtl"&&(mt=-mt);var It=jt(gt,st.doc.direction);if(It){var Nt=mt<0?oe(It):It[0],Gt=mt<0==(Nt.level==1),Ht=Gt?"after":"before",ue;if(Nt.level>0||st.doc.direction=="rtl"){var nn=Zr(st,gt);ue=mt<0?gt.text.length-1:0;var Se=qr(st,nn,ue).top;ue=ln(function(On){return qr(st,nn,On).top==Se},mt<0==(Nt.level==1)?Nt.from:Nt.to-1,ue),Ht=="before"&&(ue=Lf(gt,ue,1))}else ue=mt<0?Nt.to:Nt.from;return new he(dt,ue,Ht)}}return new he(dt,mt<0?gt.text.length:0,mt<0?"before":"after")}function yg(it,st,gt,dt){var mt=jt(st,it.doc.direction);if(!mt)return Ya(st,gt,dt);gt.ch>=st.text.length?(gt.ch=st.text.length,gt.sticky="before"):gt.ch<=0&&(gt.ch=0,gt.sticky="after");var It=At(mt,gt.ch,gt.sticky),Nt=mt[It];if(it.doc.direction=="ltr"&&Nt.level%2==0&&(dt>0?Nt.to>gt.ch:Nt.from=Nt.from&&On>=nn.begin)){var In=Se?"before":"after";return new he(gt.line,On,In)}}var vi=function(no,Io,yo){for(var ko=function(pa,hs){return hs?new he(gt.line,Gt(pa,1),"before"):new he(gt.line,pa,"after")};no>=0&&no0==(er.level!=1),vr=mo?yo.begin:Gt(yo.end,-1);if(er.from<=vr&&vr0?nn.end:Gt(nn.begin,-1);return Ti!=null&&!(dt>0&&Ti==st.text.length)&&(Si=vi(dt>0?0:mt.length-1,dt,ue(Ti)),Si)?Si:null}var Lh={selectAll:Va,singleSelection:function(it){return it.setSelection(it.getCursor("anchor"),it.getCursor("head"),Be)},killLine:function(it){return Al(it,function(st){if(st.empty()){var gt=Sn(it.doc,st.head.line).text.length;return st.head.ch==gt&&st.head.line0)mt=new he(mt.line,mt.ch+1),it.replaceRange(It.charAt(mt.ch-1)+It.charAt(mt.ch-2),he(mt.line,mt.ch-2),mt,"+transpose");else if(mt.line>it.doc.first){var Nt=Sn(it.doc,mt.line-1).text;Nt&&(mt=new he(mt.line,1),it.replaceRange(It.charAt(0)+it.doc.lineSeparator()+Nt.charAt(Nt.length-1),he(mt.line-1,Nt.length-1),mt,"+transpose"))}}gt.push(new Vr(mt,mt))}it.setSelections(gt)})},newlineAndIndent:function(it){return oo(it,function(){for(var st=it.listSelections(),gt=st.length-1;gt>=0;gt--)it.replaceRange(it.doc.lineSeparator(),st[gt].anchor,st[gt].head,"+input");st=it.listSelections();for(var dt=0;dtit&&Pe(st,this.pos)==0&>==this.button};var Jc,gc;function Of(it,st){var gt=+new Date;return gc&&gc.compare(gt,it,st)?(Jc=gc=null,"triple"):Jc&&Jc.compare(gt,it,st)?(gc=new Tf(gt,it,st),Jc=null,"double"):(Jc=new Tf(gt,it,st),gc=null,"single")}function Eu(it){var st=this,gt=st.display;if(!($n(st,it)||gt.activeTouch&>.input.supportsTouch())){if(gt.input.ensurePolled(),gt.shift=it.shiftKey,Ls(gt,it)){qt||(gt.scroller.draggable=!1,setTimeout(function(){return gt.scroller.draggable=!0},100));return}if(!Eg(st,it)){var dt=Ds(st,it),mt=qn(it),It=dt?Of(dt,mt):"single";window.focus(),mt==1&&st.state.selectingText&&st.state.selectingText(it),!(dt&&jf(st,mt,dt,It,it))&&(mt==1?dt?op(st,dt,It,it):Lo(it)==gt.scroller&&Ji(it):mt==2?(dt&&fg(st.doc,dt),setTimeout(function(){return gt.input.focus()},20)):mt==3&&(bt?st.display.input.onContextMenu(it):mr(st)))}}}function jf(it,st,gt,dt,mt){var It="Click";return dt=="double"?It="Double"+It:dt=="triple"&&(It="Triple"+It),It=(st==1?"Left":st==2?"Middle":"Right")+It,cc(it,Ff(It,mt),mt,function(Nt){if(typeof Nt=="string"&&(Nt=Lh[Nt]),!Nt)return!1;var Gt=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),Gt=Nt(it,gt)!=Tn}finally{it.state.suppressEdits=!1}return Gt})}function xg(it,st,gt){var dt=it.getOption("configureMouse"),mt=dt?dt(it,st,gt):{};if(mt.unit==null){var It=ut?gt.shiftKey&>.metaKey:gt.altKey;mt.unit=It?"rectangle":st=="single"?"char":st=="double"?"word":"line"}return(mt.extend==null||it.doc.extend)&&(mt.extend=it.doc.extend||gt.shiftKey),mt.addNew==null&&(mt.addNew=ct?gt.metaKey:gt.ctrlKey),mt.moveOnDrag==null&&(mt.moveOnDrag=!(ct?gt.altKey:gt.ctrlKey)),mt}function op(it,st,gt,dt){fe?setTimeout(hn(na,it),0):it.curOp.focus=ge();var mt=xg(it,gt,dt),It=it.doc.sel,Nt;it.options.dragDrop&&$t&&!it.isReadOnly()&>=="single"&&(Nt=It.contains(st))>-1&&(Pe((Nt=It.ranges[Nt]).from(),st)<0||st.xRel>0)&&(Pe(Nt.to(),st)>0||st.xRel<0)?zf(it,dt,st,mt):ev(it,dt,st,mt)}function zf(it,st,gt,dt){var mt=it.display,It=!1,Nt=Ro(it,function(ue){qt&&(mt.scroller.draggable=!1),it.state.draggingText=!1,Rn(mt.wrapper.ownerDocument,"mouseup",Nt),Rn(mt.wrapper.ownerDocument,"mousemove",Gt),Rn(mt.scroller,"dragstart",Ht),Rn(mt.scroller,"drop",Nt),It||(Ji(ue),dt.addNew||fg(it.doc,gt,null,null,dt.extend),qt&&!xe||fe&&ve==9?setTimeout(function(){mt.wrapper.ownerDocument.body.focus({preventScroll:!0}),mt.input.focus()},20):mt.input.focus())}),Gt=function(ue){It=It||Math.abs(st.clientX-ue.clientX)+Math.abs(st.clientY-ue.clientY)>=10},Ht=function(){return It=!0};qt&&(mt.scroller.draggable=!0),it.state.draggingText=Nt,Nt.copy=!dt.moveOnDrag,mt.scroller.dragDrop&&mt.scroller.dragDrop(),Ae(mt.wrapper.ownerDocument,"mouseup",Nt),Ae(mt.wrapper.ownerDocument,"mousemove",Gt),Ae(mt.scroller,"dragstart",Ht),Ae(mt.scroller,"drop",Nt),mr(it),setTimeout(function(){return mt.input.focus()},20)}function Rf(it,st,gt){if(gt=="char")return new Vr(st,st);if(gt=="word")return it.findWordAt(st);if(gt=="line")return new Vr(he(st.line,0),Kn(it.doc,he(st.line+1,0)));var dt=gt(it,st);return new Vr(dt.from,dt.to)}function ev(it,st,gt,dt){var mt=it.display,It=it.doc;Ji(st);var Nt,Gt,Ht=It.sel,ue=Ht.ranges;if(dt.addNew&&!dt.extend?(Gt=It.sel.contains(gt),Gt>-1?Nt=ue[Gt]:Nt=new Vr(gt,gt)):(Nt=It.sel.primary(),Gt=It.sel.primIndex),dt.unit=="rectangle")dt.addNew||(Nt=new Vr(gt,gt)),gt=Ds(it,st,!0,!0),Gt=-1;else{var nn=Rf(it,gt,dt.unit);dt.extend?Nt=gg(Nt,nn.anchor,nn.head,dt.extend):Nt=nn}dt.addNew?Gt==-1?(Gt=ue.length,Ws(It,kl(it,ue.concat([Nt]),Gt),{scroll:!1,origin:"*mouse"})):ue.length>1&&ue[Gt].empty()&&dt.unit=="char"&&!dt.extend?(Ws(It,kl(it,ue.slice(0,Gt).concat(ue.slice(Gt+1)),0),{scroll:!1,origin:"*mouse"}),Ht=It.sel):Mh(It,Gt,Nt,be):(Gt=0,Ws(It,new vl([Nt],0),be),Ht=It.sel);var Se=gt;function On(yo){if(Pe(Se,yo)!=0)if(Se=yo,dt.unit=="rectangle"){for(var ko=[],er=it.options.tabSize,mo=Fe(Sn(It,gt.line).text,gt.ch,er),vr=Fe(Sn(It,yo.line).text,yo.ch,er),pa=Math.min(mo,vr),hs=Math.max(mo,vr),La=Math.min(gt.line,yo.line),cl=Math.min(it.lastLine(),Math.max(gt.line,yo.line));La<=cl;La++){var Gs=Sn(It,La).text,is=jn(Gs,pa,er);pa==hs?ko.push(new Vr(he(La,is),he(La,is))):Gs.length>is&&ko.push(new Vr(he(La,is),he(La,jn(Gs,hs,er))))}ko.length||ko.push(new Vr(gt,gt)),Ws(It,kl(it,Ht.ranges.slice(0,Gt).concat(ko),Gt),{origin:"*mouse",scroll:!1}),it.scrollIntoView(yo)}else{var Cl=Nt,ks=Rf(it,yo,dt.unit),os=Cl.anchor,Hr;Pe(ks.anchor,os)>0?(Hr=ks.head,os=ii(Cl.from(),ks.anchor)):(Hr=ks.anchor,os=oi(Cl.to(),ks.head));var Oa=Ht.ranges.slice(0);Oa[Gt]=rp(it,new Vr(Kn(It,os),Hr)),Ws(It,kl(it,Oa,Gt),be)}}var In=mt.wrapper.getBoundingClientRect(),vi=0;function Si(yo){var ko=++vi,er=Ds(it,yo,!0,dt.unit=="rectangle");if(er)if(Pe(er,Se)!=0){it.curOp.focus=ge(),On(er);var mo=yr(mt,It);(er.line>=mo.to||er.lineIn.bottom?20:0;vr&&setTimeout(Ro(it,function(){vi==ko&&(mt.scroller.scrollTop+=vr,Si(yo))}),50)}}function Ti(yo){it.state.selectingText=!1,vi=1/0,yo&&(Ji(yo),mt.input.focus()),Rn(mt.wrapper.ownerDocument,"mousemove",no),Rn(mt.wrapper.ownerDocument,"mouseup",Io),It.history.lastSelOrigin=null}var no=Ro(it,function(yo){yo.buttons===0||!qn(yo)?Ti(yo):Si(yo)}),Io=Ro(it,Ti);it.state.selectingText=Io,Ae(mt.wrapper.ownerDocument,"mousemove",no),Ae(mt.wrapper.ownerDocument,"mouseup",Io)}function rp(it,st){var gt=st.anchor,dt=st.head,mt=Sn(it.doc,gt.line);if(Pe(gt,dt)==0&>.sticky==dt.sticky)return st;var It=jt(mt);if(!It)return st;var Nt=At(It,gt.ch,gt.sticky),Gt=It[Nt];if(Gt.from!=gt.ch&&Gt.to!=gt.ch)return st;var Ht=Nt+(Gt.from==gt.ch==(Gt.level!=1)?0:1);if(Ht==0||Ht==It.length)return st;var ue;if(dt.line!=gt.line)ue=(dt.line-gt.line)*(it.doc.direction=="ltr"?1:-1)>0;else{var nn=At(It,dt.ch,dt.sticky),Se=nn-Nt||(dt.ch-gt.ch)*(Gt.level==1?-1:1);nn==Ht-1||nn==Ht?ue=Se<0:ue=Se>0}var On=It[Ht+(ue?-1:0)],In=ue==(On.level==1),vi=In?On.from:On.to,Si=In?"after":"before";return gt.ch==vi&>.sticky==Si?st:new Vr(new he(gt.line,vi,Si),dt)}function wg(it,st,gt,dt){var mt,It;if(st.touches)mt=st.touches[0].clientX,It=st.touches[0].clientY;else try{mt=st.clientX,It=st.clientY}catch(On){return!1}if(mt>=Math.floor(it.display.gutters.getBoundingClientRect().right))return!1;dt&&Ji(st);var Nt=it.display,Gt=Nt.lineDiv.getBoundingClientRect();if(It>Gt.bottom||!Fi(it,gt))return Eo(st);It-=Gt.top-Nt.viewOffset;for(var Ht=0;Ht=mt){var nn=dn(it.doc,It),Se=it.display.gutterSpecs[Ht];return Pn(it,gt,it,nn,Se.className,st),Eo(st)}}}function Eg(it,st){return wg(it,st,"gutterClick",!0)}function Pg(it,st){Ls(it.display,st)||ap(it,st)||$n(it,st,"contextmenu")||bt||it.display.input.onContextMenu(st)}function ap(it,st){return Fi(it,"gutterContextMenu")?wg(it,st,"gutterContextMenu",!1):!1}function Ig(it){it.display.wrapper.className=it.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+it.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Bl(it)}var Dh={toString:function(){return"CodeMirror.Init"}},Hf={},kd={};function sp(it){var st=it.optionHandlers;function gt(dt,mt,It,Nt){it.defaults[dt]=mt,It&&(st[dt]=Nt?function(Gt,Ht,ue){ue!=Dh&&It(Gt,Ht,ue)}:It)}it.defineOption=gt,it.Init=Dh,gt("value","",function(dt,mt){return dt.setValue(mt)},!0),gt("mode",null,function(dt,mt){dt.doc.modeOption=mt,fr(dt)},!0),gt("indentUnit",2,fr,!0),gt("indentWithTabs",!1),gt("smartIndent",!0),gt("tabSize",4,function(dt){nc(dt),Bl(dt),_r(dt)},!0),gt("lineSeparator",null,function(dt,mt){if(dt.doc.lineSep=mt,!!mt){var It=[],Nt=dt.doc.first;dt.doc.iter(function(Ht){for(var ue=0;;){var nn=Ht.text.indexOf(mt,ue);if(nn==-1)break;ue=nn+mt.length,It.push(he(Nt,nn))}Nt++});for(var Gt=It.length-1;Gt>=0;Gt--)sc(dt.doc,mt,It[Gt],he(It[Gt].line,It[Gt].ch+mt.length))}}),gt("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(dt,mt,It){dt.state.specialChars=new RegExp(mt.source+(mt.test(" ")?"":"| "),"g"),It!=Dh&&dt.refresh()}),gt("specialCharPlaceholder",ca,function(dt){return dt.refresh()},!0),gt("electricChars",!0),gt("inputStyle",et?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),gt("spellcheck",!1,function(dt,mt){return dt.getInputField().spellcheck=mt},!0),gt("autocorrect",!1,function(dt,mt){return dt.getInputField().autocorrect=mt},!0),gt("autocapitalize",!1,function(dt,mt){return dt.getInputField().autocapitalize=mt},!0),gt("rtlMoveVisually",!pt),gt("wholeLineUpdateBefore",!0),gt("theme","default",function(dt){Ig(dt),Ca(dt)},!0),gt("keyMap","default",function(dt,mt,It){var Nt=hc(mt),Gt=It!=Dh&&hc(It);Gt&&Gt.detach&&Gt.detach(dt,Nt),Nt.attach&&Nt.attach(dt,Gt||null)}),gt("extraKeys",null),gt("configureMouse",null),gt("lineWrapping",!1,lp,!0),gt("gutters",[],function(dt,mt){dt.display.gutterSpecs=jr(mt,dt.options.lineNumbers),Ca(dt)},!0),gt("fixedGutter",!0,function(dt,mt){dt.display.gutters.style.left=mt?tc(dt.display)+"px":"0",dt.refresh()},!0),gt("coverGutterNextToScrollbar",!1,function(dt){return Vo(dt)},!0),gt("scrollbarStyle","native",function(dt){Sr(dt),Vo(dt),dt.display.scrollbars.setScrollTop(dt.doc.scrollTop),dt.display.scrollbars.setScrollLeft(dt.doc.scrollLeft)},!0),gt("lineNumbers",!1,function(dt,mt){dt.display.gutterSpecs=jr(dt.options.gutters,mt),Ca(dt)},!0),gt("firstLineNumber",1,Ca,!0),gt("lineNumberFormatter",function(dt){return dt},Ca,!0),gt("showCursorWhenSelecting",!1,Qa,!0),gt("resetSelectionOnContextMenu",!0),gt("lineWiseCopyCut",!0),gt("pasteLinesPerSelection",!0),gt("selectionsMayTouch",!1),gt("readOnly",!1,function(dt,mt){mt=="nocursor"&&(au(dt),dt.display.input.blur()),dt.display.input.readOnlyChanged(mt)}),gt("screenReaderLabel",null,function(dt,mt){mt=mt===""?null:mt,dt.display.input.screenReaderLabelChanged(mt)}),gt("disableInput",!1,function(dt,mt){mt||dt.display.input.reset()},!0),gt("dragDrop",!0,Mg),gt("allowDropFileTypes",null),gt("cursorBlinkRate",530),gt("cursorScrollMargin",0),gt("cursorHeight",1,Qa,!0),gt("singleCursorHeightPerLine",!0,Qa,!0),gt("workTime",100),gt("workDelay",100),gt("flattenSpans",!0,nc,!0),gt("addModeClass",!1,nc,!0),gt("pollInterval",100),gt("undoDepth",200,function(dt,mt){return dt.doc.history.undoDepth=mt}),gt("historyEventDelay",1250),gt("viewportMargin",10,function(dt){return dt.refresh()},!0),gt("maxHighlightLength",1e4,nc,!0),gt("moveInputWithCursor",!0,function(dt,mt){mt||dt.display.input.resetPosition()}),gt("tabindex",null,function(dt,mt){return dt.display.input.getField().tabIndex=mt||""}),gt("autofocus",null),gt("direction","ltr",function(dt,mt){return dt.doc.setDirection(mt)},!0),gt("phrases",null)}function Mg(it,st,gt){var dt=gt&>!=Dh;if(!st!=!dt){var mt=it.display.dragFunctions,It=st?Ae:Rn;It(it.display.scroller,"dragstart",mt.start),It(it.display.scroller,"dragenter",mt.enter),It(it.display.scroller,"dragover",mt.over),It(it.display.scroller,"dragleave",mt.leave),It(it.display.scroller,"drop",mt.drop)}}function lp(it){it.options.lineWrapping?(je(it.display.wrapper,"CodeMirror-wrap"),it.display.sizer.style.minWidth="",it.display.sizerWidth=null):(Ut(it.display.wrapper,"CodeMirror-wrap"),Oi(it)),Oo(it),_r(it),Bl(it),setTimeout(function(){return Vo(it)},100)}function zr(it,st){var gt=this;if(!(this instanceof zr))return new zr(it,st);this.options=st=st?Xn(st):{},Xn(Hf,st,!1);var dt=st.value;typeof dt=="string"?dt=new Ns(dt,st.mode,null,st.lineSeparator,st.direction):st.mode&&(dt.modeOption=st.mode),this.doc=dt;var mt=new zr.inputStyles[st.inputStyle](this),It=this.display=new Ua(it,dt,mt,st);It.wrapper.CodeMirror=this,Ig(this),st.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Sr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Zt,keySeq:null,specialChars:null},st.autofocus&&!et&&It.input.focus(),fe&&ve<11&&setTimeout(function(){return gt.display.input.reset(!0)},20),qc(this),Tl(),Rr(this),this.curOp.forceUpdate=!0,Ra(this,dt),st.autofocus&&!et||this.hasFocus()?setTimeout(function(){gt.hasFocus()&&!gt.state.focused&&Lr(gt)},20):au(this);for(var Nt in kd)kd.hasOwnProperty(Nt)&&kd[Nt](this,st[Nt],Dh);Tr(this),st.finishInit&&st.finishInit(this);for(var Gt=0;Gt20*20}Ae(st.scroller,"touchstart",function(Ht){if(!$n(it,Ht)&&!It(Ht)&&!Eg(it,Ht)){st.input.ensurePolled(),clearTimeout(gt);var ue=+new Date;st.activeTouch={start:ue,moved:!1,prev:ue-dt.end<=300?dt:null},Ht.touches.length==1&&(st.activeTouch.left=Ht.touches[0].pageX,st.activeTouch.top=Ht.touches[0].pageY)}}),Ae(st.scroller,"touchmove",function(){st.activeTouch&&(st.activeTouch.moved=!0)}),Ae(st.scroller,"touchend",function(Ht){var ue=st.activeTouch;if(ue&&!Ls(st,Ht)&&ue.left!=null&&!ue.moved&&new Date-ue.start<300){var nn=it.coordsChar(st.activeTouch,"page"),Se;!ue.prev||Nt(ue,ue.prev)?Se=new Vr(nn,nn):!ue.prev.prev||Nt(ue,ue.prev.prev)?Se=it.findWordAt(nn):Se=new Vr(he(nn.line,0),Kn(it.doc,he(nn.line+1,0))),it.setSelection(Se.anchor,Se.head),it.focus(),Ji(Ht)}mt()}),Ae(st.scroller,"touchcancel",mt),Ae(st.scroller,"scroll",function(){st.scroller.clientHeight&&(wo(it,st.scroller.scrollTop),li(it,st.scroller.scrollLeft,!0),Pn(it,"scroll",it))}),Ae(st.scroller,"mousewheel",function(Ht){return _a(it,Ht)}),Ae(st.scroller,"DOMMouseScroll",function(Ht){return _a(it,Ht)}),Ae(st.wrapper,"scroll",function(){return st.wrapper.scrollTop=st.wrapper.scrollLeft=0}),st.dragFunctions={enter:function(Ht){$n(it,Ht)||Zo(Ht)},over:function(Ht){$n(it,Ht)||($0(it,Ht),Zo(Ht))},start:function(Ht){return _0(it,Ht)},drop:Ro(it,wf),leave:function(Ht){$n(it,Ht)||tp(it)}};var Gt=st.input.getField();Ae(Gt,"keyup",function(Ht){return kf.call(it,Ht)}),Ae(Gt,"keydown",Ro(it,bf)),Ae(Gt,"keypress",Ro(it,wu)),Ae(Gt,"focus",function(Ht){return Lr(it,Ht)}),Ae(Gt,"blur",function(Ht){return au(it,Ht)})}var fc=[];zr.defineInitHook=function(it){return fc.push(it)};function us(it,st,gt,dt){var mt=it.doc,It;gt==null&&(gt="add"),gt=="smart"&&(mt.mode.indent?It=io(it,st).state:gt="prev");var Nt=it.options.tabSize,Gt=Sn(mt,st),Ht=Fe(Gt.text,null,Nt);Gt.stateAfter&&(Gt.stateAfter=null);var ue=Gt.text.match(/^\s*/)[0],nn;if(!dt&&!/\S/.test(Gt.text))nn=0,gt="not";else if(gt=="smart"&&(nn=mt.mode.indent(It,Gt.text.slice(ue.length),Gt.text),nn==Tn||nn>150)){if(!dt)return;gt="prev"}gt=="prev"?st>mt.first?nn=Fe(Sn(mt,st-1).text,null,Nt):nn=0:gt=="add"?nn=Ht+it.options.indentUnit:gt=="subtract"?nn=Ht-it.options.indentUnit:typeof gt=="number"&&(nn=Ht+gt),nn=Math.max(0,nn);var Se="",On=0;if(it.options.indentWithTabs)for(var In=Math.floor(nn/Nt);In;--In)On+=Nt,Se+=" ";if(OnNt,Ht=le(st),ue=null;if(Gt&&dt.ranges.length>1)if(hl&&hl.text.join(` +`,"start")},toggleOverwrite:function(it){return it.toggleOverwrite()}};function Xc(it,st){var gt=Sn(it.doc,st),dt=Ai(gt);return dt!=gt&&(st=Xt(dt)),Nd(!0,it,dt,st,1)}function Kc(it,st){var gt=Sn(it.doc,st),dt=pi(gt);return dt!=gt&&(st=Xt(dt)),Nd(!0,it,gt,st,-1)}function Df(it,st){var gt=Xc(it,st.line),dt=Sn(it.doc,gt.line),mt=jt(dt,it.doc.direction);if(!mt||mt[0].level==0){var It=Math.max(gt.ch,dt.text.search(/\S/)),Nt=st.line==gt.line&&st.ch<=It&&st.ch;return he(gt.line,Nt?0:It,gt.sticky)}return gt}function Qc(it,st,gt){if(typeof st=="string"&&(st=Lh[st],!st))return!1;it.display.input.ensurePolled();var dt=it.display.shift,mt=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),gt&&(it.display.shift=!1),mt=st(it)!=Tn}finally{it.display.shift=dt,it.state.suppressEdits=!1}return mt}function Bf(it,st,gt){for(var dt=0;dtit&&Pe(st,this.pos)==0&>==this.button};var Jc,gc;function Of(it,st){var gt=+new Date;return gc&&gc.compare(gt,it,st)?(Jc=gc=null,"triple"):Jc&&Jc.compare(gt,it,st)?(gc=new Tf(gt,it,st),Jc=null,"double"):(Jc=new Tf(gt,it,st),gc=null,"single")}function Eu(it){var st=this,gt=st.display;if(!($n(st,it)||gt.activeTouch&>.input.supportsTouch())){if(gt.input.ensurePolled(),gt.shift=it.shiftKey,Ls(gt,it)){qt||(gt.scroller.draggable=!1,setTimeout(function(){return gt.scroller.draggable=!0},100));return}if(!Eg(st,it)){var dt=Ds(st,it),mt=qn(it),It=dt?Of(dt,mt):"single";window.focus(),mt==1&&st.state.selectingText&&st.state.selectingText(it),!(dt&&jf(st,mt,dt,It,it))&&(mt==1?dt?op(st,dt,It,it):Lo(it)==gt.scroller&&Ji(it):mt==2?(dt&&fg(st.doc,dt),setTimeout(function(){return gt.input.focus()},20)):mt==3&&(bt?st.display.input.onContextMenu(it):mr(st)))}}}function jf(it,st,gt,dt,mt){var It="Click";return dt=="double"?It="Double"+It:dt=="triple"&&(It="Triple"+It),It=(st==1?"Left":st==2?"Middle":"Right")+It,cc(it,Ff(It,mt),mt,function(Nt){if(typeof Nt=="string"&&(Nt=Lh[Nt]),!Nt)return!1;var Gt=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),Gt=Nt(it,gt)!=Tn}finally{it.state.suppressEdits=!1}return Gt})}function xg(it,st,gt){var dt=it.getOption("configureMouse"),mt=dt?dt(it,st,gt):{};if(mt.unit==null){var It=ut?gt.shiftKey&>.metaKey:gt.altKey;mt.unit=It?"rectangle":st=="single"?"char":st=="double"?"word":"line"}return(mt.extend==null||it.doc.extend)&&(mt.extend=it.doc.extend||gt.shiftKey),mt.addNew==null&&(mt.addNew=ct?gt.metaKey:gt.ctrlKey),mt.moveOnDrag==null&&(mt.moveOnDrag=!(ct?gt.altKey:gt.ctrlKey)),mt}function op(it,st,gt,dt){fe?setTimeout(hn(na,it),0):it.curOp.focus=ge();var mt=xg(it,gt,dt),It=it.doc.sel,Nt;it.options.dragDrop&&$t&&!it.isReadOnly()&>=="single"&&(Nt=It.contains(st))>-1&&(Pe((Nt=It.ranges[Nt]).from(),st)<0||st.xRel>0)&&(Pe(Nt.to(),st)>0||st.xRel<0)?zf(it,dt,st,mt):ev(it,dt,st,mt)}function zf(it,st,gt,dt){var mt=it.display,It=!1,Nt=Ro(it,function(ue){qt&&(mt.scroller.draggable=!1),it.state.draggingText=!1,Rn(mt.wrapper.ownerDocument,"mouseup",Nt),Rn(mt.wrapper.ownerDocument,"mousemove",Gt),Rn(mt.scroller,"dragstart",Ht),Rn(mt.scroller,"drop",Nt),It||(Ji(ue),dt.addNew||fg(it.doc,gt,null,null,dt.extend),qt&&!xe||fe&&ve==9?setTimeout(function(){mt.wrapper.ownerDocument.body.focus({preventScroll:!0}),mt.input.focus()},20):mt.input.focus())}),Gt=function(ue){It=It||Math.abs(st.clientX-ue.clientX)+Math.abs(st.clientY-ue.clientY)>=10},Ht=function(){return It=!0};qt&&(mt.scroller.draggable=!0),it.state.draggingText=Nt,Nt.copy=!dt.moveOnDrag,mt.scroller.dragDrop&&mt.scroller.dragDrop(),Ae(mt.wrapper.ownerDocument,"mouseup",Nt),Ae(mt.wrapper.ownerDocument,"mousemove",Gt),Ae(mt.scroller,"dragstart",Ht),Ae(mt.scroller,"drop",Nt),mr(it),setTimeout(function(){return mt.input.focus()},20)}function Rf(it,st,gt){if(gt=="char")return new Vr(st,st);if(gt=="word")return it.findWordAt(st);if(gt=="line")return new Vr(he(st.line,0),Kn(it.doc,he(st.line+1,0)));var dt=gt(it,st);return new Vr(dt.from,dt.to)}function ev(it,st,gt,dt){var mt=it.display,It=it.doc;Ji(st);var Nt,Gt,Ht=It.sel,ue=Ht.ranges;if(dt.addNew&&!dt.extend?(Gt=It.sel.contains(gt),Gt>-1?Nt=ue[Gt]:Nt=new Vr(gt,gt)):(Nt=It.sel.primary(),Gt=It.sel.primIndex),dt.unit=="rectangle")dt.addNew||(Nt=new Vr(gt,gt)),gt=Ds(it,st,!0,!0),Gt=-1;else{var nn=Rf(it,gt,dt.unit);dt.extend?Nt=gg(Nt,nn.anchor,nn.head,dt.extend):Nt=nn}dt.addNew?Gt==-1?(Gt=ue.length,Ws(It,kl(it,ue.concat([Nt]),Gt),{scroll:!1,origin:"*mouse"})):ue.length>1&&ue[Gt].empty()&&dt.unit=="char"&&!dt.extend?(Ws(It,kl(it,ue.slice(0,Gt).concat(ue.slice(Gt+1)),0),{scroll:!1,origin:"*mouse"}),Ht=It.sel):Mh(It,Gt,Nt,be):(Gt=0,Ws(It,new vl([Nt],0),be),Ht=It.sel);var Se=gt;function On(yo){if(Pe(Se,yo)!=0)if(Se=yo,dt.unit=="rectangle"){for(var ko=[],er=it.options.tabSize,mo=Fe(Sn(It,gt.line).text,gt.ch,er),vr=Fe(Sn(It,yo.line).text,yo.ch,er),pa=Math.min(mo,vr),hs=Math.max(mo,vr),La=Math.min(gt.line,yo.line),cl=Math.min(it.lastLine(),Math.max(gt.line,yo.line));La<=cl;La++){var Gs=Sn(It,La).text,is=jn(Gs,pa,er);pa==hs?ko.push(new Vr(he(La,is),he(La,is))):Gs.length>is&&ko.push(new Vr(he(La,is),he(La,jn(Gs,hs,er))))}ko.length||ko.push(new Vr(gt,gt)),Ws(It,kl(it,Ht.ranges.slice(0,Gt).concat(ko),Gt),{origin:"*mouse",scroll:!1}),it.scrollIntoView(yo)}else{var Cl=Nt,ks=Rf(it,yo,dt.unit),os=Cl.anchor,Hr;Pe(ks.anchor,os)>0?(Hr=ks.head,os=ii(Cl.from(),ks.anchor)):(Hr=ks.anchor,os=oi(Cl.to(),ks.head));var Oa=Ht.ranges.slice(0);Oa[Gt]=rp(it,new Vr(Kn(It,os),Hr)),Ws(It,kl(it,Oa,Gt),be)}}var In=mt.wrapper.getBoundingClientRect(),vi=0;function Si(yo){var ko=++vi,er=Ds(it,yo,!0,dt.unit=="rectangle");if(er)if(Pe(er,Se)!=0){it.curOp.focus=ge(),On(er);var mo=yr(mt,It);(er.line>=mo.to||er.lineIn.bottom?20:0;vr&&setTimeout(Ro(it,function(){vi==ko&&(mt.scroller.scrollTop+=vr,Si(yo))}),50)}}function Ti(yo){it.state.selectingText=!1,vi=1/0,yo&&(Ji(yo),mt.input.focus()),Rn(mt.wrapper.ownerDocument,"mousemove",no),Rn(mt.wrapper.ownerDocument,"mouseup",Io),It.history.lastSelOrigin=null}var no=Ro(it,function(yo){yo.buttons===0||!qn(yo)?Ti(yo):Si(yo)}),Io=Ro(it,Ti);it.state.selectingText=Io,Ae(mt.wrapper.ownerDocument,"mousemove",no),Ae(mt.wrapper.ownerDocument,"mouseup",Io)}function rp(it,st){var gt=st.anchor,dt=st.head,mt=Sn(it.doc,gt.line);if(Pe(gt,dt)==0&>.sticky==dt.sticky)return st;var It=jt(mt);if(!It)return st;var Nt=At(It,gt.ch,gt.sticky),Gt=It[Nt];if(Gt.from!=gt.ch&&Gt.to!=gt.ch)return st;var Ht=Nt+(Gt.from==gt.ch==(Gt.level!=1)?0:1);if(Ht==0||Ht==It.length)return st;var ue;if(dt.line!=gt.line)ue=(dt.line-gt.line)*(it.doc.direction=="ltr"?1:-1)>0;else{var nn=At(It,dt.ch,dt.sticky),Se=nn-Nt||(dt.ch-gt.ch)*(Gt.level==1?-1:1);nn==Ht-1||nn==Ht?ue=Se<0:ue=Se>0}var On=It[Ht+(ue?-1:0)],In=ue==(On.level==1),vi=In?On.from:On.to,Si=In?"after":"before";return gt.ch==vi&>.sticky==Si?st:new Vr(new he(gt.line,vi,Si),dt)}function wg(it,st,gt,dt){var mt,It;if(st.touches)mt=st.touches[0].clientX,It=st.touches[0].clientY;else try{mt=st.clientX,It=st.clientY}catch(On){return!1}if(mt>=Math.floor(it.display.gutters.getBoundingClientRect().right))return!1;dt&&Ji(st);var Nt=it.display,Gt=Nt.lineDiv.getBoundingClientRect();if(It>Gt.bottom||!Fi(it,gt))return Eo(st);It-=Gt.top-Nt.viewOffset;for(var Ht=0;Ht=mt){var nn=dn(it.doc,It),Se=it.display.gutterSpecs[Ht];return Pn(it,gt,it,nn,Se.className,st),Eo(st)}}}function Eg(it,st){return wg(it,st,"gutterClick",!0)}function Pg(it,st){Ls(it.display,st)||ap(it,st)||$n(it,st,"contextmenu")||bt||it.display.input.onContextMenu(st)}function ap(it,st){return Fi(it,"gutterContextMenu")?wg(it,st,"gutterContextMenu",!1):!1}function Ig(it){it.display.wrapper.className=it.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+it.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Bl(it)}var Dh={toString:function(){return"CodeMirror.Init"}},Hf={},kd={};function sp(it){var st=it.optionHandlers;function gt(dt,mt,It,Nt){it.defaults[dt]=mt,It&&(st[dt]=Nt?function(Gt,Ht,ue){ue!=Dh&&It(Gt,Ht,ue)}:It)}it.defineOption=gt,it.Init=Dh,gt("value","",function(dt,mt){return dt.setValue(mt)},!0),gt("mode",null,function(dt,mt){dt.doc.modeOption=mt,fr(dt)},!0),gt("indentUnit",2,fr,!0),gt("indentWithTabs",!1),gt("smartIndent",!0),gt("tabSize",4,function(dt){nc(dt),Bl(dt),_r(dt)},!0),gt("lineSeparator",null,function(dt,mt){if(dt.doc.lineSep=mt,!!mt){var It=[],Nt=dt.doc.first;dt.doc.iter(function(Ht){for(var ue=0;;){var nn=Ht.text.indexOf(mt,ue);if(nn==-1)break;ue=nn+mt.length,It.push(he(Nt,nn))}Nt++});for(var Gt=It.length-1;Gt>=0;Gt--)sc(dt.doc,mt,It[Gt],he(It[Gt].line,It[Gt].ch+mt.length))}}),gt("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(dt,mt,It){dt.state.specialChars=new RegExp(mt.source+(mt.test(" ")?"":"| "),"g"),It!=Dh&&dt.refresh()}),gt("specialCharPlaceholder",ca,function(dt){return dt.refresh()},!0),gt("electricChars",!0),gt("inputStyle",et?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),gt("spellcheck",!1,function(dt,mt){return dt.getInputField().spellcheck=mt},!0),gt("autocorrect",!1,function(dt,mt){return dt.getInputField().autocorrect=mt},!0),gt("autocapitalize",!1,function(dt,mt){return dt.getInputField().autocapitalize=mt},!0),gt("rtlMoveVisually",!pt),gt("wholeLineUpdateBefore",!0),gt("theme","default",function(dt){Ig(dt),Ca(dt)},!0),gt("keyMap","default",function(dt,mt,It){var Nt=hc(mt),Gt=It!=Dh&&hc(It);Gt&&Gt.detach&&Gt.detach(dt,Nt),Nt.attach&&Nt.attach(dt,Gt||null)}),gt("extraKeys",null),gt("configureMouse",null),gt("lineWrapping",!1,lp,!0),gt("gutters",[],function(dt,mt){dt.display.gutterSpecs=jr(mt,dt.options.lineNumbers),Ca(dt)},!0),gt("fixedGutter",!0,function(dt,mt){dt.display.gutters.style.left=mt?tc(dt.display)+"px":"0",dt.refresh()},!0),gt("coverGutterNextToScrollbar",!1,function(dt){return Vo(dt)},!0),gt("scrollbarStyle","native",function(dt){Sr(dt),Vo(dt),dt.display.scrollbars.setScrollTop(dt.doc.scrollTop),dt.display.scrollbars.setScrollLeft(dt.doc.scrollLeft)},!0),gt("lineNumbers",!1,function(dt,mt){dt.display.gutterSpecs=jr(dt.options.gutters,mt),Ca(dt)},!0),gt("firstLineNumber",1,Ca,!0),gt("lineNumberFormatter",function(dt){return dt},Ca,!0),gt("showCursorWhenSelecting",!1,Ka,!0),gt("resetSelectionOnContextMenu",!0),gt("lineWiseCopyCut",!0),gt("pasteLinesPerSelection",!0),gt("selectionsMayTouch",!1),gt("readOnly",!1,function(dt,mt){mt=="nocursor"&&(au(dt),dt.display.input.blur()),dt.display.input.readOnlyChanged(mt)}),gt("screenReaderLabel",null,function(dt,mt){mt=mt===""?null:mt,dt.display.input.screenReaderLabelChanged(mt)}),gt("disableInput",!1,function(dt,mt){mt||dt.display.input.reset()},!0),gt("dragDrop",!0,Mg),gt("allowDropFileTypes",null),gt("cursorBlinkRate",530),gt("cursorScrollMargin",0),gt("cursorHeight",1,Ka,!0),gt("singleCursorHeightPerLine",!0,Ka,!0),gt("workTime",100),gt("workDelay",100),gt("flattenSpans",!0,nc,!0),gt("addModeClass",!1,nc,!0),gt("pollInterval",100),gt("undoDepth",200,function(dt,mt){return dt.doc.history.undoDepth=mt}),gt("historyEventDelay",1250),gt("viewportMargin",10,function(dt){return dt.refresh()},!0),gt("maxHighlightLength",1e4,nc,!0),gt("moveInputWithCursor",!0,function(dt,mt){mt||dt.display.input.resetPosition()}),gt("tabindex",null,function(dt,mt){return dt.display.input.getField().tabIndex=mt||""}),gt("autofocus",null),gt("direction","ltr",function(dt,mt){return dt.doc.setDirection(mt)},!0),gt("phrases",null)}function Mg(it,st,gt){var dt=gt&>!=Dh;if(!st!=!dt){var mt=it.display.dragFunctions,It=st?Ae:Rn;It(it.display.scroller,"dragstart",mt.start),It(it.display.scroller,"dragenter",mt.enter),It(it.display.scroller,"dragover",mt.over),It(it.display.scroller,"dragleave",mt.leave),It(it.display.scroller,"drop",mt.drop)}}function lp(it){it.options.lineWrapping?(je(it.display.wrapper,"CodeMirror-wrap"),it.display.sizer.style.minWidth="",it.display.sizerWidth=null):(Ut(it.display.wrapper,"CodeMirror-wrap"),Oi(it)),Oo(it),_r(it),Bl(it),setTimeout(function(){return Vo(it)},100)}function zr(it,st){var gt=this;if(!(this instanceof zr))return new zr(it,st);this.options=st=st?Xn(st):{},Xn(Hf,st,!1);var dt=st.value;typeof dt=="string"?dt=new Ns(dt,st.mode,null,st.lineSeparator,st.direction):st.mode&&(dt.modeOption=st.mode),this.doc=dt;var mt=new zr.inputStyles[st.inputStyle](this),It=this.display=new Ua(it,dt,mt,st);It.wrapper.CodeMirror=this,Ig(this),st.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Sr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Zt,keySeq:null,specialChars:null},st.autofocus&&!et&&It.input.focus(),fe&&ve<11&&setTimeout(function(){return gt.display.input.reset(!0)},20),qc(this),Tl(),Rr(this),this.curOp.forceUpdate=!0,Ra(this,dt),st.autofocus&&!et||this.hasFocus()?setTimeout(function(){gt.hasFocus()&&!gt.state.focused&&Lr(gt)},20):au(this);for(var Nt in kd)kd.hasOwnProperty(Nt)&&kd[Nt](this,st[Nt],Dh);Tr(this),st.finishInit&&st.finishInit(this);for(var Gt=0;Gt20*20}Ae(st.scroller,"touchstart",function(Ht){if(!$n(it,Ht)&&!It(Ht)&&!Eg(it,Ht)){st.input.ensurePolled(),clearTimeout(gt);var ue=+new Date;st.activeTouch={start:ue,moved:!1,prev:ue-dt.end<=300?dt:null},Ht.touches.length==1&&(st.activeTouch.left=Ht.touches[0].pageX,st.activeTouch.top=Ht.touches[0].pageY)}}),Ae(st.scroller,"touchmove",function(){st.activeTouch&&(st.activeTouch.moved=!0)}),Ae(st.scroller,"touchend",function(Ht){var ue=st.activeTouch;if(ue&&!Ls(st,Ht)&&ue.left!=null&&!ue.moved&&new Date-ue.start<300){var nn=it.coordsChar(st.activeTouch,"page"),Se;!ue.prev||Nt(ue,ue.prev)?Se=new Vr(nn,nn):!ue.prev.prev||Nt(ue,ue.prev.prev)?Se=it.findWordAt(nn):Se=new Vr(he(nn.line,0),Kn(it.doc,he(nn.line+1,0))),it.setSelection(Se.anchor,Se.head),it.focus(),Ji(Ht)}mt()}),Ae(st.scroller,"touchcancel",mt),Ae(st.scroller,"scroll",function(){st.scroller.clientHeight&&(wo(it,st.scroller.scrollTop),li(it,st.scroller.scrollLeft,!0),Pn(it,"scroll",it))}),Ae(st.scroller,"mousewheel",function(Ht){return qa(it,Ht)}),Ae(st.scroller,"DOMMouseScroll",function(Ht){return qa(it,Ht)}),Ae(st.wrapper,"scroll",function(){return st.wrapper.scrollTop=st.wrapper.scrollLeft=0}),st.dragFunctions={enter:function(Ht){$n(it,Ht)||Zo(Ht)},over:function(Ht){$n(it,Ht)||($0(it,Ht),Zo(Ht))},start:function(Ht){return _0(it,Ht)},drop:Ro(it,wf),leave:function(Ht){$n(it,Ht)||tp(it)}};var Gt=st.input.getField();Ae(Gt,"keyup",function(Ht){return kf.call(it,Ht)}),Ae(Gt,"keydown",Ro(it,bf)),Ae(Gt,"keypress",Ro(it,wu)),Ae(Gt,"focus",function(Ht){return Lr(it,Ht)}),Ae(Gt,"blur",function(Ht){return au(it,Ht)})}var fc=[];zr.defineInitHook=function(it){return fc.push(it)};function us(it,st,gt,dt){var mt=it.doc,It;gt==null&&(gt="add"),gt=="smart"&&(mt.mode.indent?It=io(it,st).state:gt="prev");var Nt=it.options.tabSize,Gt=Sn(mt,st),Ht=Fe(Gt.text,null,Nt);Gt.stateAfter&&(Gt.stateAfter=null);var ue=Gt.text.match(/^\s*/)[0],nn;if(!dt&&!/\S/.test(Gt.text))nn=0,gt="not";else if(gt=="smart"&&(nn=mt.mode.indent(It,Gt.text.slice(ue.length),Gt.text),nn==Tn||nn>150)){if(!dt)return;gt="prev"}gt=="prev"?st>mt.first?nn=Fe(Sn(mt,st-1).text,null,Nt):nn=0:gt=="add"?nn=Ht+it.options.indentUnit:gt=="subtract"?nn=Ht-it.options.indentUnit:typeof gt=="number"&&(nn=Ht+gt),nn=Math.max(0,nn);var Se="",On=0;if(it.options.indentWithTabs)for(var In=Math.floor(nn/Nt);In;--In)On+=Nt,Se+=" ";if(OnNt,Ht=le(st),ue=null;if(Gt&&dt.ranges.length>1)if(hl&&hl.text.join(` `)==st){if(dt.ranges.length%hl.text.length==0){ue=[];for(var nn=0;nn=0;On--){var In=dt.ranges[On],vi=In.from(),Si=In.to();In.empty()&&(gt&>>0?vi=he(vi.line,vi.ch-gt):it.state.overwrite&&!Gt?Si=he(Si.line,Math.min(Sn(It,Si.line).text.length,Si.ch+oe(Ht).length)):Gt&&hl&&hl.lineWise&&hl.text.join(` `)==Ht.join(` `)&&(vi=Si=he(vi.line,0)));var Ti={from:vi,to:Si,text:ue?ue[On%ue.length]:Ht,origin:mt||(Gt?"paste":it.state.cutIncoming>Nt?"cut":"+input")};Fh(it.doc,Ti),Ri(it,"inputRead",it,Ti)}st&&!Gt&&Gf(it,st),Ze(it),it.curOp.updateInput<2&&(it.curOp.updateInput=Se),it.curOp.typing=!0,it.state.pasteIncoming=it.state.cutIncoming=-1}function Wf(it,st){var gt=it.clipboardData&&it.clipboardData.getData("Text");if(gt)return it.preventDefault(),!st.isReadOnly()&&!st.options.disableInput&&oo(st,function(){return Td(st,gt,0,null,"paste")}),!0}function Gf(it,st){if(!(!it.options.electricChars||!it.options.smartIndent))for(var gt=it.doc.sel,dt=gt.ranges.length-1;dt>=0;dt--){var mt=gt.ranges[dt];if(!(mt.head.ch>100||dt&>.ranges[dt-1].head.line==mt.head.line)){var It=it.getModeAt(mt.head),Nt=!1;if(It.electricChars){for(var Gt=0;Gt-1){Nt=us(it,mt.head.line,"smart");break}}else It.electricInput&&It.electricInput.test(Sn(it.doc,mt.head.line).text.slice(0,mt.head.ch))&&(Nt=us(it,mt.head.line,"smart"));Nt&&Ri(it,"electricInput",it,mt.head.line)}}}function Zf(it){for(var st=[],gt=[],dt=0;dtIt&&(us(this,Gt.head.line,dt,!0),It=Gt.head.line,Nt==this.doc.sel.primIndex&&Ze(this));else{var Ht=Gt.from(),ue=Gt.to(),nn=Math.max(It,Ht.line);It=Math.min(this.lastLine(),ue.line-(ue.ch?0:1))+1;for(var Se=nn;Se0&&Mh(this.doc,Nt,new Vr(Ht,On[Nt].to()),Be)}}}),getTokenAt:function(dt,mt){return Ci(this,dt,mt)},getLineTokens:function(dt,mt){return Ci(this,he(dt),mt,!0)},getTokenTypeAt:function(dt){dt=Kn(this.doc,dt);var mt=Qi(this,Sn(this.doc,dt.line)),It=0,Nt=(mt.length-1)/2,Gt=dt.ch,Ht;if(Gt==0)Ht=mt[2];else for(;;){var ue=It+Nt>>1;if((ue?mt[ue*2-1]:0)>=Gt)Nt=ue;else if(mt[ue*2+1]Ht&&(dt=Ht,Nt=!0),Gt=Sn(this.doc,dt)}else Gt=dt;return Ea(this,Gt,{top:0,left:0},mt||"page",It||Nt).top+(Nt?this.doc.height-Wi(Gt):0)},defaultTextHeight:function(){return xu(this.display)},defaultCharWidth:function(){return th(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(dt,mt,It,Nt,Gt){var Ht=this.display;dt=fa(this,Kn(this.doc,dt));var ue=dt.bottom,nn=dt.left;if(mt.style.position="absolute",mt.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(mt),Ht.sizer.appendChild(mt),Nt=="over")ue=dt.top;else if(Nt=="above"||Nt=="near"){var Se=Math.max(Ht.wrapper.clientHeight,this.doc.height),On=Math.max(Ht.sizer.clientWidth,Ht.lineSpace.clientWidth);(Nt=="above"||dt.bottom+mt.offsetHeight>Se)&&dt.top>mt.offsetHeight?ue=dt.top-mt.offsetHeight:dt.bottom+mt.offsetHeight<=Se&&(ue=dt.bottom),nn+mt.offsetWidth>On&&(nn=On-mt.offsetWidth)}mt.style.top=ue+"px",mt.style.left=mt.style.right="",Gt=="right"?(nn=Ht.sizer.clientWidth-mt.offsetWidth,mt.style.right="0px"):(Gt=="left"?nn=0:Gt=="middle"&&(nn=(Ht.sizer.clientWidth-mt.offsetWidth)/2),mt.style.left=nn+"px"),It&&ec(this,{left:nn,top:ue,right:nn+mt.offsetWidth,bottom:ue+mt.offsetHeight})},triggerOnKeyDown:Go(bf),triggerOnKeyPress:Go(wu),triggerOnKeyUp:kf,triggerOnMouseDown:Go(Eu),execCommand:function(dt){if(Lh.hasOwnProperty(dt))return Lh[dt].call(null,this)},triggerElectric:Go(function(dt){Gf(this,dt)}),findPosH:function(dt,mt,It,Nt){var Gt=1;mt<0&&(Gt=-1,mt=-mt);for(var Ht=Kn(this.doc,dt),ue=0;ue0&&nn(It.charAt(Nt-1));)--Nt;for(;Gt.5||this.options.lineWrapping)&&Oo(this),Pn(this,"refresh",this)}),swapDoc:Go(function(dt){var mt=this.doc;return mt.cm=null,this.state.selectingText&&this.state.selectingText(),Ra(this,dt),Bl(this),this.display.input.reset(),qe(this,dt.scrollLeft,dt.scrollTop),this.curOp.forceScroll=!0,Ri(this,"swapDoc",this,mt),mt}),phrase:function(dt){var mt=this.options.phrases;return mt&&Object.prototype.hasOwnProperty.call(mt,dt)?mt[dt]:dt},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Bi(it),it.registerHelper=function(dt,mt,It){gt.hasOwnProperty(dt)||(gt[dt]=it[dt]={_global:[]}),gt[dt][mt]=It},it.registerGlobalHelper=function(dt,mt,It,Nt){it.registerHelper(dt,mt,Nt),gt[dt]._global.push({pred:It,val:Nt})}}function Od(it,st,gt,dt,mt){var It=st,Nt=gt,Gt=Sn(it,st.line),Ht=mt&&it.direction=="rtl"?-gt:gt;function ue(){var Io=st.line+Ht;return Io=it.first+it.size?!1:(st=new he(Io,st.ch,st.sticky),Gt=Sn(it,Io))}function nn(Io){var yo;if(dt=="codepoint"){var ko=Gt.text.charCodeAt(st.ch+(dt>0?0:-1));isNaN(ko)?yo=null:yo=new he(st.line,Math.max(0,Math.min(Gt.text.length,st.ch+gt*(ko>=55296&&ko<56320?2:1))),-gt)}else mt?yo=yg(it.cm,Gt,st,gt):yo=Ya(Gt,st,gt);if(yo==null)if(!Io&&ue())st=Nd(mt,it.cm,Gt,st.line,Ht);else return!1;else st=yo;return!0}if(dt=="char"||dt=="codepoint")nn();else if(dt=="column")nn(!0);else if(dt=="word"||dt=="group")for(var Se=null,On=dt=="group",In=it.cm&&it.cm.getHelper(st,"wordChars"),vi=!0;!(gt<0&&!nn(!vi));vi=!1){var Si=Gt.text.charAt(st.ch)||` @@ -1174,12 +1174,12 @@ b`.split(/\n/).length!=3?function(it){for(var st=0,gt=[],dt=it.length;st<=dt;){v `)>-1?gt.value=it.prevInput="":it.prevInput=mt,it.composing&&(it.composing.range.clear(),it.composing.range=st.markText(it.composing.start,st.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ns.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ns.prototype.onKeyPress=function(){fe&&ve>=9&&(this.hasSelection=null),this.fastPoll()},ns.prototype.onContextMenu=function(it){var st=this,gt=st.cm,dt=gt.display,mt=st.textarea;st.contextMenuPending&&st.contextMenuPending();var It=Ds(gt,it),Nt=dt.scroller.scrollTop;if(!It||Ce)return;var Gt=gt.options.resetSelectionOnContextMenu;Gt&>.doc.sel.contains(It)==-1&&Ro(gt,Ws)(gt.doc,su(It),Be);var Ht=mt.style.cssText,ue=st.wrapper.style.cssText,nn=st.wrapper.offsetParent.getBoundingClientRect();st.wrapper.style.cssText="position: static",mt.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(it.clientY-nn.top-5)+"px; left: "+(it.clientX-nn.left-5)+`px; z-index: 1000; background: `+(fe?"rgba(255, 255, 255, .05)":"transparent")+`; - outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Se;qt&&(Se=window.scrollY),dt.input.focus(),qt&&window.scrollTo(null,Se),dt.input.reset(),gt.somethingSelected()||(mt.value=st.prevInput=" "),st.contextMenuPending=In,dt.selForContextMenu=gt.doc.sel,clearTimeout(dt.detectingSelectAll);function On(){if(mt.selectionStart!=null){var Si=gt.somethingSelected(),Ti="\u200B"+(Si?mt.value:"");mt.value="\u21DA",mt.value=Ti,st.prevInput=Si?"":"\u200B",mt.selectionStart=1,mt.selectionEnd=Ti.length,dt.selForContextMenu=gt.doc.sel}}function In(){if(st.contextMenuPending==In&&(st.contextMenuPending=!1,st.wrapper.style.cssText=ue,mt.style.cssText=Ht,fe&&ve<9&&dt.scrollbars.setScrollTop(dt.scroller.scrollTop=Nt),mt.selectionStart!=null)){(!fe||fe&&ve<9)&&On();var Si=0,Ti=function(){dt.selForContextMenu==gt.doc.sel&&mt.selectionStart==0&&mt.selectionEnd>0&&st.prevInput=="\u200B"?Ro(gt,Va)(gt):Si++<10?dt.detectingSelectAll=setTimeout(Ti,500):(dt.selForContextMenu=null,dt.input.reset())};dt.detectingSelectAll=setTimeout(Ti,200)}}if(fe&&ve>=9&&On(),bt){Zo(it);var vi=function(){Rn(window,"mouseup",vi),setTimeout(In,20)};Ae(window,"mouseup",vi)}else setTimeout(In,50)},ns.prototype.readOnlyChanged=function(it){it||this.reset(),this.textarea.disabled=it=="nocursor",this.textarea.readOnly=!!it},ns.prototype.setUneditable=function(){},ns.prototype.needsContentAttribute=!1;function hp(it,st){if(st=st?Xn(st):{},st.value=it.value,!st.tabindex&&it.tabIndex&&(st.tabindex=it.tabIndex),!st.placeholder&&it.placeholder&&(st.placeholder=it.placeholder),st.autofocus==null){var gt=ge();st.autofocus=gt==it||it.getAttribute("autofocus")!=null&>==document.body}function dt(){it.value=Gt.getValue()}var mt;if(it.form&&(Ae(it.form,"submit",dt),!st.leaveSubmitMethodAlone)){var It=it.form;mt=It.submit;try{var Nt=It.submit=function(){dt(),It.submit=mt,It.submit(),It.submit=Nt}}catch(Ht){}}st.finishInit=function(Ht){Ht.save=dt,Ht.getTextArea=function(){return it},Ht.toTextArea=function(){Ht.toTextArea=isNaN,dt(),it.parentNode.removeChild(Ht.getWrapperElement()),it.style.display="",it.form&&(Rn(it.form,"submit",dt),!st.leaveSubmitMethodAlone&&typeof it.form.submit=="function"&&(it.form.submit=mt))}},it.style.display="none";var Gt=zr(function(Ht){return it.parentNode.insertBefore(Ht,it.nextSibling)},st);return Gt}function td(it){it.off=Rn,it.on=Ae,it.wheelEventPixels=ul,it.Doc=Ns,it.splitLines=le,it.countColumn=Fe,it.findColumn=jn,it.isWordChar=rn,it.Pass=Tn,it.signal=Pn,it.Line=po,it.changeEnd=Nu,it.scrollbarModel=fo,it.Pos=he,it.cmpPos=Pe,it.modes=Te,it.mimeModes=Re,it.resolveMode=en,it.getMode=te,it.modeExtensions=Yt,it.extendMode=Vt,it.copyState=Ve,it.startState=pn,it.innerMode=an,it.commands=Lh,it.keyMap=yl,it.keyName=np,it.isModifierKey=Yc,it.lookupKey=Ql,it.normalizeKeyMap=Mf,it.StringStream=We,it.SharedTextMarker=Tu,it.TextMarker=Ue,it.LineWidget=sh,it.e_preventDefault=Ji,it.e_stopPropagation=ro,it.e_stop=Zo,it.addClass=je,it.contains=Le,it.rmClass=Ut,it.keyNames=Ou}sp(zr),Bh(zr);var lh="iter insert remove copy getEditor constructor".split(" ");for(var zd in Ns.prototype)Ns.prototype.hasOwnProperty(zd)&&Ye(lh,zd)<0&&(zr.prototype[zd]=function(it){return function(){return it.apply(this.doc,arguments)}}(Ns.prototype[zd]));return Bi(Ns),zr.inputStyles={textarea:ns,contenteditable:oa},zr.defineMode=function(it){!zr.defaults.mode&&it!="null"&&(zr.defaults.mode=it),_e.apply(this,arguments)},zr.defineMIME=me,zr.defineMode("null",function(){return{token:function(it){return it.skipToEnd()}}}),zr.defineMIME("text/plain","null"),zr.defineExtension=function(it,st){zr.prototype[it]=st},zr.defineDocExtension=function(it,st){Ns.prototype[it]=st},zr.fromTextArea=hp,td(zr),zr.version="5.58.2",zr})},25419:function(un,Yn,St){(function(ot){ot(St(89780),St(15525),St(98101))})(function(ot){"use strict";ot.defineMode("markdown",function(Tt,ae){var $e=ot.getMode(Tt,"text/html"),fe=$e.name=="null";function ve(Fe){if(ot.findModeByName){var Zt=ot.findModeByName(Fe);Zt&&(Fe=Zt.mime||Zt.mimes[0])}var Ye=ot.getMode(Tt,Fe);return Ye.name=="null"?null:Ye}ae.highlightFormatting===void 0&&(ae.highlightFormatting=!1),ae.maxBlockquoteDepth===void 0&&(ae.maxBlockquoteDepth=0),ae.taskLists===void 0&&(ae.taskLists=!1),ae.strikethrough===void 0&&(ae.strikethrough=!1),ae.emoji===void 0&&(ae.emoji=!1),ae.fencedCodeBlockHighlighting===void 0&&(ae.fencedCodeBlockHighlighting=!0),ae.fencedCodeBlockDefaultMode===void 0&&(ae.fencedCodeBlockDefaultMode="text/plain"),ae.xml===void 0&&(ae.xml=!0),ae.tokenTypeOverrides===void 0&&(ae.tokenTypeOverrides={});var qt={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var Oe in qt)qt.hasOwnProperty(Oe)&&ae.tokenTypeOverrides[Oe]&&(qt[Oe]=ae.tokenTypeOverrides[Oe]);var de=/^([*\-_])(?:\s*\1){2,}\s*$/,Ce=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,xe=/^\[(x| )\](?=\s)/i,ze=ae.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,He=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Ft=/^[^#!\[\]*_\\<>` "'(~:]+/,nt=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,et=/^\s*\[[^\]]+?\]:.*$/,ct=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,ut=" ";function pt(Fe,Zt,Ye){return Zt.f=Zt.inline=Ye,Ye(Fe,Zt)}function yt(Fe,Zt,Ye){return Zt.f=Zt.block=Ye,Ye(Fe,Zt)}function Pt(Fe){return!Fe||!/\S/.test(Fe.string)}function bt(Fe){if(Fe.linkTitle=!1,Fe.linkHref=!1,Fe.linkText=!1,Fe.em=!1,Fe.strong=!1,Fe.strikethrough=!1,Fe.quote=0,Fe.indentedCode=!1,Fe.f==Ut){var Zt=fe;if(!Zt){var Ye=ot.innerMode($e,Fe.htmlState);Zt=Ye.mode.name=="xml"&&Ye.state.tagStart===null&&!Ye.state.context&&Ye.state.tokenize.isInText}Zt&&(Fe.f=Me,Fe.block=Rt,Fe.htmlState=null)}return Fe.trailingSpace=0,Fe.trailingSpaceNewLine=!1,Fe.prevLine=Fe.thisLine,Fe.thisLine={stream:null},null}function Rt(Fe,Zt){var Ye=Fe.column()===Zt.indentation,kn=Pt(Zt.prevLine.stream),Tn=Zt.indentedCode,Be=Zt.prevLine.hr,be=Zt.list!==!1,Ke=(Zt.listStack[Zt.listStack.length-1]||0)+3;Zt.indentedCode=!1;var jn=Zt.indentation;if(Zt.indentationDiff===null&&(Zt.indentationDiff=Zt.indentation,be)){for(Zt.list=null;jn=4&&(Tn||Zt.prevLine.fencedCodeEnd||Zt.prevLine.header||kn))return Fe.skipToEnd(),Zt.indentedCode=!0,qt.code;if(Fe.eatSpace())return null;if(Ye&&Zt.indentation<=Ke&&(oe=Fe.match(ze))&&oe[1].length<=6)return Zt.quote=0,Zt.header=oe[1].length,Zt.thisLine.header=!0,ae.highlightFormatting&&(Zt.formatting="header"),Zt.f=Zt.inline,re(Zt);if(Zt.indentation<=Ke&&Fe.eat(">"))return Zt.quote=Ye?1:Zt.quote+1,ae.highlightFormatting&&(Zt.formatting="quote"),Fe.eatSpace(),re(Zt);if(!An&&!Zt.setext&&Ye&&Zt.indentation<=Ke&&(oe=Fe.match(Ce))){var cn=oe[1]?"ol":"ul";return Zt.indentation=jn+Fe.current().length,Zt.list=!0,Zt.quote=0,Zt.listStack.push(Zt.indentation),Zt.em=!1,Zt.strong=!1,Zt.code=!1,Zt.strikethrough=!1,ae.taskLists&&Fe.match(xe,!1)&&(Zt.taskList=!0),Zt.f=Zt.inline,ae.highlightFormatting&&(Zt.formatting=["list","list-"+cn]),re(Zt)}else{if(Ye&&Zt.indentation<=Ke&&(oe=Fe.match(nt,!0)))return Zt.quote=0,Zt.fencedEndRE=new RegExp(oe[1]+"+ *$"),Zt.localMode=ae.fencedCodeBlockHighlighting&&ve(oe[2]||ae.fencedCodeBlockDefaultMode),Zt.localMode&&(Zt.localState=ot.startState(Zt.localMode)),Zt.f=Zt.block=ee,ae.highlightFormatting&&(Zt.formatting="code-block"),Zt.code=-1,re(Zt);if(Zt.setext||(!Wn||!be)&&!Zt.quote&&Zt.list===!1&&!Zt.code&&!An&&!et.test(Fe.string)&&(oe=Fe.lookAhead(1))&&(oe=oe.match(He)))return Zt.setext?(Zt.header=Zt.setext,Zt.setext=0,Fe.skipToEnd(),ae.highlightFormatting&&(Zt.formatting="header")):(Zt.header=oe[0].charAt(0)=="="?1:2,Zt.setext=Zt.header),Zt.thisLine.header=!0,Zt.f=Zt.inline,re(Zt);if(An)return Fe.skipToEnd(),Zt.hr=!0,Zt.thisLine.hr=!0,qt.hr;if(Fe.peek()==="[")return pt(Fe,Zt,Je)}return pt(Fe,Zt,Zt.inline)}function Ut(Fe,Zt){var Ye=$e.token(Fe,Zt.htmlState);if(!fe){var kn=ot.innerMode($e,Zt.htmlState);(kn.mode.name=="xml"&&kn.state.tagStart===null&&!kn.state.context&&kn.state.tokenize.isInText||Zt.md_inside&&Fe.current().indexOf(">")>-1)&&(Zt.f=Me,Zt.block=Rt,Zt.htmlState=null)}return Ye}function ee(Fe,Zt){var Ye=Zt.listStack[Zt.listStack.length-1]||0,kn=Zt.indentation=Fe.quote?Zt.push(qt.formatting+"-"+Fe.formatting[Ye]+"-"+Fe.quote):Zt.push("error"))}if(Fe.taskOpen)return Zt.push("meta"),Zt.length?Zt.join(" "):null;if(Fe.taskClosed)return Zt.push("property"),Zt.length?Zt.join(" "):null;if(Fe.linkHref?Zt.push(qt.linkHref,"url"):(Fe.strong&&Zt.push(qt.strong),Fe.em&&Zt.push(qt.em),Fe.strikethrough&&Zt.push(qt.strikethrough),Fe.emoji&&Zt.push(qt.emoji),Fe.linkText&&Zt.push(qt.linkText),Fe.code&&Zt.push(qt.code),Fe.image&&Zt.push(qt.image),Fe.imageAltText&&Zt.push(qt.imageAltText,"link"),Fe.imageMarker&&Zt.push(qt.imageMarker)),Fe.header&&Zt.push(qt.header,qt.header+"-"+Fe.header),Fe.quote&&(Zt.push(qt.quote),!ae.maxBlockquoteDepth||ae.maxBlockquoteDepth>=Fe.quote?Zt.push(qt.quote+"-"+Fe.quote):Zt.push(qt.quote+"-"+ae.maxBlockquoteDepth)),Fe.list!==!1){var kn=(Fe.listStack.length-1)%3;kn?kn===1?Zt.push(qt.list2):Zt.push(qt.list3):Zt.push(qt.list1)}return Fe.trailingSpaceNewLine?Zt.push("trailing-space-new-line"):Fe.trailingSpace&&Zt.push("trailing-space-"+(Fe.trailingSpace%2?"a":"b")),Zt.length?Zt.join(" "):null}function ie(Fe,Zt){if(Fe.match(Ft,!0))return re(Zt)}function Me(Fe,Zt){var Ye=Zt.text(Fe,Zt);if(typeof Ye!="undefined")return Ye;if(Zt.list)return Zt.list=null,re(Zt);if(Zt.taskList){var kn=Fe.match(xe,!0)[1]===" ";return kn?Zt.taskOpen=!0:Zt.taskClosed=!0,ae.highlightFormatting&&(Zt.formatting="task"),Zt.taskList=!1,re(Zt)}if(Zt.taskOpen=!1,Zt.taskClosed=!1,Zt.header&&Fe.match(/^#+$/,!0))return ae.highlightFormatting&&(Zt.formatting="header"),re(Zt);var Tn=Fe.next();if(Zt.linkTitle){Zt.linkTitle=!1;var Be=Tn;Tn==="("&&(Be=")"),Be=(Be+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var be="^\\s*(?:[^"+Be+"\\\\]+|\\\\\\\\|\\\\.)"+Be;if(Fe.match(new RegExp(be),!0))return qt.linkHref}if(Tn==="`"){var Ke=Zt.formatting;ae.highlightFormatting&&(Zt.formatting="code"),Fe.eatWhile("`");var jn=Fe.current().length;if(Zt.code==0&&(!Zt.quote||jn==1))return Zt.code=jn,re(Zt);if(jn==Zt.code){var Wn=re(Zt);return Zt.code=0,Wn}else return Zt.formatting=Ke,re(Zt)}else if(Zt.code)return re(Zt);if(Tn==="\\"&&(Fe.next(),ae.highlightFormatting)){var An=re(Zt),oe=qt.formatting+"-escape";return An?An+" "+oe:oe}if(Tn==="!"&&Fe.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Zt.imageMarker=!0,Zt.image=!0,ae.highlightFormatting&&(Zt.formatting="image"),re(Zt);if(Tn==="["&&Zt.imageMarker&&Fe.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Zt.imageMarker=!1,Zt.imageAltText=!0,ae.highlightFormatting&&(Zt.formatting="image"),re(Zt);if(Tn==="]"&&Zt.imageAltText){ae.highlightFormatting&&(Zt.formatting="image");var An=re(Zt);return Zt.imageAltText=!1,Zt.image=!1,Zt.inline=Zt.f=Le,An}if(Tn==="["&&!Zt.image)return Zt.linkText&&Fe.match(/^.*?\]/)||(Zt.linkText=!0,ae.highlightFormatting&&(Zt.formatting="link")),re(Zt);if(Tn==="]"&&Zt.linkText){ae.highlightFormatting&&(Zt.formatting="link");var An=re(Zt);return Zt.linkText=!1,Zt.inline=Zt.f=Fe.match(/\(.*?\)| ?\[.*?\]/,!1)?Le:Me,An}if(Tn==="<"&&Fe.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Zt.f=Zt.inline=pe,ae.highlightFormatting&&(Zt.formatting="link");var An=re(Zt);return An?An+=" ":An="",An+qt.linkInline}if(Tn==="<"&&Fe.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Zt.f=Zt.inline=pe,ae.highlightFormatting&&(Zt.formatting="link");var An=re(Zt);return An?An+=" ":An="",An+qt.linkEmail}if(ae.xml&&Tn==="<"&&Fe.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var cn=Fe.string.indexOf(">",Fe.pos);if(cn!=-1){var wn=Fe.string.substring(Fe.start,cn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(wn)&&(Zt.md_inside=!0)}return Fe.backUp(1),Zt.htmlState=ot.startState($e),yt(Fe,Zt,Ut)}if(ae.xml&&Tn==="<"&&Fe.match(/^\/\w*?>/))return Zt.md_inside=!1,"tag";if(Tn==="*"||Tn==="_"){for(var Fn=1,mn=Fe.pos==1?" ":Fe.string.charAt(Fe.pos-2);Fn<3&&Fe.eat(Tn);)Fn++;var Dn=Fe.peek()||" ",rn=!/\s/.test(Dn)&&(!ct.test(Dn)||/\s/.test(mn)||ct.test(mn)),ce=!/\s/.test(mn)&&(!ct.test(mn)||/\s/.test(Dn)||ct.test(Dn)),Kt=null,we=null;if(Fn%2&&(!Zt.em&&rn&&(Tn==="*"||!ce||ct.test(mn))?Kt=!0:Zt.em==Tn&&ce&&(Tn==="*"||!rn||ct.test(Dn))&&(Kt=!1)),Fn>1&&(!Zt.strong&&rn&&(Tn==="*"||!ce||ct.test(mn))?we=!0:Zt.strong==Tn&&ce&&(Tn==="*"||!rn||ct.test(Dn))&&(we=!1)),we!=null||Kt!=null){ae.highlightFormatting&&(Zt.formatting=Kt==null?"strong":we==null?"em":"strong em"),Kt===!0&&(Zt.em=Tn),we===!0&&(Zt.strong=Tn);var Wn=re(Zt);return Kt===!1&&(Zt.em=!1),we===!1&&(Zt.strong=!1),Wn}}else if(Tn===" "&&(Fe.eat("*")||Fe.eat("_"))){if(Fe.peek()===" ")return re(Zt);Fe.backUp(1)}if(ae.strikethrough){if(Tn==="~"&&Fe.eatWhile(Tn)){if(Zt.strikethrough){ae.highlightFormatting&&(Zt.formatting="strikethrough");var Wn=re(Zt);return Zt.strikethrough=!1,Wn}else if(Fe.match(/^[^\s]/,!1))return Zt.strikethrough=!0,ae.highlightFormatting&&(Zt.formatting="strikethrough"),re(Zt)}else if(Tn===" "&&Fe.match(/^~~/,!0)){if(Fe.peek()===" ")return re(Zt);Fe.backUp(2)}}if(ae.emoji&&Tn===":"&&Fe.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Zt.emoji=!0,ae.highlightFormatting&&(Zt.formatting="emoji");var Ee=re(Zt);return Zt.emoji=!1,Ee}return Tn===" "&&(Fe.match(/^ +$/,!1)?Zt.trailingSpace++:Zt.trailingSpace&&(Zt.trailingSpaceNewLine=!0)),re(Zt)}function pe(Fe,Zt){var Ye=Fe.next();if(Ye===">"){Zt.f=Zt.inline=Me,ae.highlightFormatting&&(Zt.formatting="link");var kn=re(Zt);return kn?kn+=" ":kn="",kn+qt.linkInline}return Fe.match(/^[^>]+/,!0),qt.linkInline}function Le(Fe,Zt){if(Fe.eatSpace())return null;var Ye=Fe.next();return Ye==="("||Ye==="["?(Zt.f=Zt.inline=je(Ye==="("?")":"]"),ae.highlightFormatting&&(Zt.formatting="link-string"),Zt.linkHref=!0,re(Zt)):"error"}var ge={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function je(Fe){return function(Zt,Ye){var kn=Zt.next();if(kn===Fe){Ye.f=Ye.inline=Me,ae.highlightFormatting&&(Ye.formatting="link-string");var Tn=re(Ye);return Ye.linkHref=!1,Tn}return Zt.match(ge[Fe]),Ye.linkHref=!0,re(Ye)}}function Je(Fe,Zt){return Fe.match(/^([^\]\\]|\\.)*\]:/,!1)?(Zt.f=Cn,Fe.next(),ae.highlightFormatting&&(Zt.formatting="link"),Zt.linkText=!0,re(Zt)):pt(Fe,Zt,Me)}function Cn(Fe,Zt){if(Fe.match(/^\]:/,!0)){Zt.f=Zt.inline=hn,ae.highlightFormatting&&(Zt.formatting="link");var Ye=re(Zt);return Zt.linkText=!1,Ye}return Fe.match(/^([^\]\\]|\\.)+/,!0),qt.linkText}function hn(Fe,Zt){return Fe.eatSpace()?null:(Fe.match(/^[^\s]+/,!0),Fe.peek()===void 0?Zt.linkTitle=!0:Fe.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Zt.f=Zt.inline=Me,qt.linkHref+" url")}var Xn={startState:function(){return{f:Rt,prevLine:{stream:null},thisLine:{stream:null},block:Rt,htmlState:null,indentation:0,inline:Me,text:ie,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(Fe){return{f:Fe.f,prevLine:Fe.prevLine,thisLine:Fe.thisLine,block:Fe.block,htmlState:Fe.htmlState&&ot.copyState($e,Fe.htmlState),indentation:Fe.indentation,localMode:Fe.localMode,localState:Fe.localMode?ot.copyState(Fe.localMode,Fe.localState):null,inline:Fe.inline,text:Fe.text,formatting:!1,linkText:Fe.linkText,linkTitle:Fe.linkTitle,linkHref:Fe.linkHref,code:Fe.code,em:Fe.em,strong:Fe.strong,strikethrough:Fe.strikethrough,emoji:Fe.emoji,header:Fe.header,setext:Fe.setext,hr:Fe.hr,taskList:Fe.taskList,list:Fe.list,listStack:Fe.listStack.slice(0),quote:Fe.quote,indentedCode:Fe.indentedCode,trailingSpace:Fe.trailingSpace,trailingSpaceNewLine:Fe.trailingSpaceNewLine,md_inside:Fe.md_inside,fencedEndRE:Fe.fencedEndRE}},token:function(Fe,Zt){if(Zt.formatting=!1,Fe!=Zt.thisLine.stream){if(Zt.header=0,Zt.hr=!1,Fe.match(/^\s*$/,!0))return bt(Zt),null;if(Zt.prevLine=Zt.thisLine,Zt.thisLine={stream:Fe},Zt.taskList=!1,Zt.trailingSpace=0,Zt.trailingSpaceNewLine=!1,!Zt.localState&&(Zt.f=Zt.block,Zt.f!=Ut)){var Ye=Fe.match(/^\s*/,!0)[0].replace(/\t/g,ut).length;if(Zt.indentation=Ye,Zt.indentationDiff=null,Ye>0)return null}}return Zt.f(Fe,Zt)},innerMode:function(Fe){return Fe.block==Ut?{state:Fe.htmlState,mode:$e}:Fe.localState?{state:Fe.localState,mode:Fe.localMode}:{state:Fe,mode:Xn}},indent:function(Fe,Zt,Ye){return Fe.block==Ut&&$e.indent?$e.indent(Fe.htmlState,Zt,Ye):Fe.localState&&Fe.localMode.indent?Fe.localMode.indent(Fe.localState,Zt,Ye):ot.Pass},blankLine:bt,getType:re,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Xn},"xml"),ot.defineMIME("text/markdown","markdown"),ot.defineMIME("text/x-markdown","markdown")})},98101:function(un,Yn,St){(function(ot){ot(St(89780))})(function(ot){"use strict";ot.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var Tt=0;Tt-1&&$e.substring(qt+1,$e.length);if(Oe)return ot.findModeByExtension(Oe)},ot.findModeByName=function($e){$e=$e.toLowerCase();for(var fe=0;fe0?Ft.cmdState[Ft.cmdState.length-1]:null}function ve(Ft){var nt=Ft.cmdState.pop();nt&&nt.closeBracket()}function qt(Ft){for(var nt=Ft.cmdState,et=nt.length-1;et>=0;et--){var ct=nt[et];if(ct.name!="DEFAULT")return ct}return{styleIdentifier:function(){return null}}}function Oe(Ft,nt,et){return function(){this.name=Ft,this.bracketNo=0,this.style=nt,this.styles=et,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var de={};de.importmodule=Oe("importmodule","tag",["string","builtin"]),de.documentclass=Oe("documentclass","tag",["","atom"]),de.usepackage=Oe("usepackage","tag",["atom"]),de.begin=Oe("begin","tag",["atom"]),de.end=Oe("end","tag",["atom"]),de.label=Oe("label","tag",["atom"]),de.ref=Oe("ref","tag",["atom"]),de.eqref=Oe("eqref","tag",["atom"]),de.cite=Oe("cite","tag",["atom"]),de.bibitem=Oe("bibitem","tag",["atom"]),de.Bibitem=Oe("Bibitem","tag",["atom"]),de.RBibitem=Oe("RBibitem","tag",["atom"]),de.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Ce(Ft,nt){Ft.f=nt}function xe(Ft,nt){var et;if(Ft.match(/^\\[a-zA-Z@]+/)){var ct=Ft.current().slice(1);return et=de.hasOwnProperty(ct)?de[ct]:de.DEFAULT,et=new et,$e(nt,et),Ce(nt,He),et.style}if(Ft.match(/^\\[$&%#{}_]/)||Ft.match(/^\\[,;!\/\\]/))return"tag";if(Ft.match("\\["))return Ce(nt,function(pt,yt){return ze(pt,yt,"\\]")}),"keyword";if(Ft.match("\\("))return Ce(nt,function(pt,yt){return ze(pt,yt,"\\)")}),"keyword";if(Ft.match("$$"))return Ce(nt,function(pt,yt){return ze(pt,yt,"$$")}),"keyword";if(Ft.match("$"))return Ce(nt,function(pt,yt){return ze(pt,yt,"$")}),"keyword";var ut=Ft.next();if(ut=="%")return Ft.skipToEnd(),"comment";if(ut=="}"||ut=="]"){if(et=fe(nt),et)et.closeBracket(ut),Ce(nt,He);else return"error";return"bracket"}else return ut=="{"||ut=="["?(et=de.DEFAULT,et=new et,$e(nt,et),"bracket"):/\d/.test(ut)?(Ft.eatWhile(/[\w.%]/),"atom"):(Ft.eatWhile(/[\w\-_]/),et=qt(nt),et.name=="begin"&&(et.argument=Ft.current()),et.styleIdentifier())}function ze(Ft,nt,et){if(Ft.eatSpace())return null;if(et&&Ft.match(et))return Ce(nt,xe),"keyword";if(Ft.match(/^\\[a-zA-Z@]+/))return"tag";if(Ft.match(/^[a-zA-Z]+/))return"variable-2";if(Ft.match(/^\\[$&%#{}_]/)||Ft.match(/^\\[,;!\/]/)||Ft.match(/^[\^_&]/))return"tag";if(Ft.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Ft.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ct=Ft.next();return ct=="{"||ct=="}"||ct=="["||ct=="]"||ct=="("||ct==")"?"bracket":ct=="%"?(Ft.skipToEnd(),"comment"):"error"}function He(Ft,nt){var et=Ft.peek(),ct;return et=="{"||et=="["?(ct=fe(nt),ct.openBracket(et),Ft.eat(et),Ce(nt,xe),"bracket"):/[ \t\r]/.test(et)?(Ft.eat(et),null):(Ce(nt,xe),ve(nt),xe(Ft,nt))}return{startState:function(){var Ft=ae.inMathMode?function(nt,et){return ze(nt,et)}:xe;return{cmdState:[],f:Ft}},copyState:function(Ft){return{cmdState:Ft.cmdState.slice(),f:Ft.f}},token:function(Ft,nt){return nt.f(Ft,nt)},blankLine:function(Ft){Ft.f=xe,Ft.cmdState.length=0},lineComment:"%"}}),ot.defineMIME("text/x-stex","stex"),ot.defineMIME("text/x-latex","stex")})},15525:function(un,Yn,St){(function(ot){ot(St(89780))})(function(ot){"use strict";var Tt={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},ae={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ot.defineMode("xml",function($e,fe){var ve=$e.indentUnit,qt={},Oe=fe.htmlMode?Tt:ae;for(var de in Oe)qt[de]=Oe[de];for(var de in fe)qt[de]=fe[de];var Ce,xe;function ze(pe,Le){function ge(Cn){return Le.tokenize=Cn,Cn(pe,Le)}var je=pe.next();if(je=="<")return pe.eat("!")?pe.eat("[")?pe.match("CDATA[")?ge(nt("atom","]]>")):null:pe.match("--")?ge(nt("comment","-->")):pe.match("DOCTYPE",!0,!0)?(pe.eatWhile(/[\w\._\-]/),ge(et(1))):null:pe.eat("?")?(pe.eatWhile(/[\w\._\-]/),Le.tokenize=nt("meta","?>"),"meta"):(Ce=pe.eat("/")?"closeTag":"openTag",Le.tokenize=He,"tag bracket");if(je=="&"){var Je;return pe.eat("#")?pe.eat("x")?Je=pe.eatWhile(/[a-fA-F\d]/)&&pe.eat(";"):Je=pe.eatWhile(/[\d]/)&&pe.eat(";"):Je=pe.eatWhile(/[\w\.\-:]/)&&pe.eat(";"),Je?"atom":"error"}else return pe.eatWhile(/[^&<]/),null}ze.isInText=!0;function He(pe,Le){var ge=pe.next();if(ge==">"||ge=="/"&&pe.eat(">"))return Le.tokenize=ze,Ce=ge==">"?"endTag":"selfcloseTag","tag bracket";if(ge=="=")return Ce="equals",null;if(ge=="<"){Le.tokenize=ze,Le.state=yt,Le.tagName=Le.tagStart=null;var je=Le.tokenize(pe,Le);return je?je+" tag error":"tag error"}else return/[\'\"]/.test(ge)?(Le.tokenize=Ft(ge),Le.stringStartCol=pe.column(),Le.tokenize(pe,Le)):(pe.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ft(pe){var Le=function(ge,je){for(;!ge.eol();)if(ge.next()==pe){je.tokenize=He;break}return"string"};return Le.isInAttribute=!0,Le}function nt(pe,Le){return function(ge,je){for(;!ge.eol();){if(ge.match(Le)){je.tokenize=ze;break}ge.next()}return pe}}function et(pe){return function(Le,ge){for(var je;(je=Le.next())!=null;){if(je=="<")return ge.tokenize=et(pe+1),ge.tokenize(Le,ge);if(je==">")if(pe==1){ge.tokenize=ze;break}else return ge.tokenize=et(pe-1),ge.tokenize(Le,ge)}return"meta"}}function ct(pe,Le,ge){this.prev=pe.context,this.tagName=Le,this.indent=pe.indented,this.startOfLine=ge,(qt.doNotIndent.hasOwnProperty(Le)||pe.context&&pe.context.noIndent)&&(this.noIndent=!0)}function ut(pe){pe.context&&(pe.context=pe.context.prev)}function pt(pe,Le){for(var ge;;){if(!pe.context||(ge=pe.context.tagName,!qt.contextGrabbers.hasOwnProperty(ge)||!qt.contextGrabbers[ge].hasOwnProperty(Le)))return;ut(pe)}}function yt(pe,Le,ge){return pe=="openTag"?(ge.tagStart=Le.column(),Pt):pe=="closeTag"?bt:yt}function Pt(pe,Le,ge){return pe=="word"?(ge.tagName=Le.current(),xe="tag",ee):qt.allowMissingTagName&&pe=="endTag"?(xe="tag bracket",ee(pe,Le,ge)):(xe="error",Pt)}function bt(pe,Le,ge){if(pe=="word"){var je=Le.current();return ge.context&&ge.context.tagName!=je&&qt.implicitlyClosed.hasOwnProperty(ge.context.tagName)&&ut(ge),ge.context&&ge.context.tagName==je||qt.matchClosing===!1?(xe="tag",Rt):(xe="tag error",Ut)}else return qt.allowMissingTagName&&pe=="endTag"?(xe="tag bracket",Rt(pe,Le,ge)):(xe="error",Ut)}function Rt(pe,Le,ge){return pe!="endTag"?(xe="error",Rt):(ut(ge),yt)}function Ut(pe,Le,ge){return xe="error",Rt(pe,Le,ge)}function ee(pe,Le,ge){if(pe=="word")return xe="attribute",re;if(pe=="endTag"||pe=="selfcloseTag"){var je=ge.tagName,Je=ge.tagStart;return ge.tagName=ge.tagStart=null,pe=="selfcloseTag"||qt.autoSelfClosers.hasOwnProperty(je)?pt(ge,je):(pt(ge,je),ge.context=new ct(ge,je,Je==ge.indented)),yt}return xe="error",ee}function re(pe,Le,ge){return pe=="equals"?ie:(qt.allowMissing||(xe="error"),ee(pe,Le,ge))}function ie(pe,Le,ge){return pe=="string"?Me:pe=="word"&&qt.allowUnquoted?(xe="string",ee):(xe="error",ee(pe,Le,ge))}function Me(pe,Le,ge){return pe=="string"?Me:ee(pe,Le,ge)}return{startState:function(pe){var Le={tokenize:ze,state:yt,indented:pe||0,tagName:null,tagStart:null,context:null};return pe!=null&&(Le.baseIndent=pe),Le},token:function(pe,Le){if(!Le.tagName&&pe.sol()&&(Le.indented=pe.indentation()),pe.eatSpace())return null;Ce=null;var ge=Le.tokenize(pe,Le);return(ge||Ce)&&ge!="comment"&&(xe=null,Le.state=Le.state(Ce||ge,pe,Le),xe&&(ge=xe=="error"?ge+" error":xe)),ge},indent:function(pe,Le,ge){var je=pe.context;if(pe.tokenize.isInAttribute)return pe.tagStart==pe.indented?pe.stringStartCol+1:pe.indented+ve;if(je&&je.noIndent)return ot.Pass;if(pe.tokenize!=He&&pe.tokenize!=ze)return ge?ge.match(/^(\s*)/)[0].length:0;if(pe.tagName)return qt.multilineTagIndentPastTag!==!1?pe.tagStart+pe.tagName.length+2:pe.tagStart+ve*(qt.multilineTagIndentFactor||1);if(qt.alignCDATA&&/$/,blockCommentStart:"",configuration:qt.htmlMode?"html":"xml",helperType:qt.htmlMode?"html":"xml",skipAttribute:function(pe){pe.state==ie&&(pe.state=ee)},xmlCurrentTag:function(pe){return pe.tagName?{name:pe.tagName,close:pe.type=="closeTag"}:null},xmlCurrentContext:function(pe){for(var Le=[],ge=pe.context;ge;ge=ge.prev)ge.tagName&&Le.push(ge.tagName);return Le.reverse()}}}),ot.defineMIME("text/xml","xml"),ot.defineMIME("application/xml","xml"),ot.mimeModes.hasOwnProperty("text/html")||ot.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(un,Yn,St){"use strict";St.d(Yn,{$u:function(){return de},BD:function(){return Fn},E9:function(){return Oe},FF:function(){return tn},FJ:function(){return yt},Hn:function(){return pt},KX:function(){return bt},NB:function(){return Dt},S0:function(){return oe},UL:function(){return Ce},Vk:function(){return ut},Vm:function(){return At},YI:function(){return cn},ZA:function(){return ae},Zt:function(){return xe},al:function(){return Kt},bn:function(){return ce},bx:function(){return mn},g2:function(){return wn},h1:function(){return ie},hD:function(){return Bi},l4:function(){return ve},rU:function(){return wt},s_:function(){return Dn},uz:function(){return ln},z6:function(){return ze}}),un=St.hmd(un),function(){var Ct;function vn(a){var y=0;return function(){return yx&&(x=Math.max(0,b+x)),(E==null||E>b)&&(E=b),E=Number(E),0>E&&(E=Math.max(0,b+E)),x=Number(x||0);x=a.length?a.push(x):a.splice(y,0,x):Xt("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function oi(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):Xt("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function ii(){var a=io.pop();return a===void 0?[]:a}function Bn(a){a.length=0,io.push(a)}function Kn(a){if(typeof a=="function"){if(a.className)return a.className;if(a.name)return a.name;var y=a.toString();if(y=y.substring(9,y.indexOf("(")).trim(),y!=="")return a._className=y}else if(he(a)&&a.constructor)return Kn(a.constructor);return typeof a}function ki(a){var y=a;return he(a)&&(a.text?y=a.text:a.name?y=a.name:a.key!==void 0?y=a.key:a.id!==void 0?y=a.id:a.constructor===Object&&(a.Text?y=a.Text:a.Name?y=a.Name:a.Key!==void 0?y=a.Key:a.Id!==void 0?y=a.Id:a.ID!==void 0&&(y=a.ID))),y===void 0?"undefined":y===null?"null":y.toString()}function bi(a,y){if(a.hasOwnProperty(y))return!0;for(a=Object.getPrototypeOf(a);a&&a!==Function;){if(a.hasOwnProperty(y))return!0;var x=a.CA;if(x&&x[y])return!0;a=Object.getPrototypeOf(a)}return!1}function Hi(a,y,x){Object.defineProperty(yr.prototype,a,{get:y,set:x})}function yn(a){for(var y=[],x=0;256>x;x++)y["0123456789abcdef".charAt(x>>4)+"0123456789abcdef".charAt(x&15)]=String.fromCharCode(x);a.length%2&&(a="0"+a),x=[];for(var E=0,b=0;bx;x++)y[x]=x;for(x=E=0;256>x;x++)E=(E+y[x]+119)%256,b=y[x],y[x]=y[E],y[E]=b;E=x=0;for(var z="",tt=0;tt-1||z.indexOf("\xA9 1998-2021 Northwoods Software")>-1||z.indexOf("Not for distribution or production use")>-1||z.indexOf("gojs.net")>-1?"":z}var uo=We.navigator!==void 0&&0this.key)return!1;a=a.s;var y=a.length,x=++this.Za,E=this.qf;if(E!==null)for(;xthis.key)return!1;var y=--this.Za;return 0<=y?(this.key=y,this.value=a.s[y],!0):(this.de(),!1)},Ki.prototype.Ad=function(){return this.next()},Ki.prototype.first=function(){var a=this.Bb;this.qa=a.Ja;var y=a.s;return this.Za=a=y.length-1,0<=a?(y=y[a],this.key=a,this.value=y):null},Ki.prototype.any=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(a(y[x]))return!0;return!1},Ki.prototype.all=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(!a(y[x]))return!1;return!0},Ki.prototype.each=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)a(y[x]);return this},Ki.prototype.map=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--)x.push(a(y[E]));return a=new Ln,a.s=x,a.xb(),a.iterator},Ki.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--){var b=y[E];a(b)&&x.push(b)}return a=new Ln,a.s=x,a.xb(),a.iterator},Ki.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Ki.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},Vt.Object.defineProperties(Ki.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Ki.prototype.first=Ki.prototype.first,Ki.prototype.hasNext=Ki.prototype.Ad,Ki.prototype.next=Ki.prototype.next,Ki.prototype.reset=Ki.prototype.reset,Ki.className="ListIteratorBackwards";function Ln(a){ao(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&Xt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ct=Ln.prototype,Ct.xb=function(){var a=this.Ja;a++,999999999a||a>=y.length)&&De(a,"0 <= i < length",Ln,"elt:i"),y[a]},Ct.get=function(a){return this.M(a)},Ct.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&De(a,"0 <= i < length",Ln,"setElt:i"),this._isFrozen&&dn(this,a),x[a]=y},Ct.set=function(a,y){this.cd(a,y)},Ct.first=function(){var a=this.s;return a.length===0?null:a[0]},Ct.jc=function(){var a=this.s,y=a.length;return 0a&&De(a,">= 0",Ln,"insertAt:i"),this._isFrozen&&dn(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Ct.remove=function(a){if(a===null)return!1;this._isFrozen&&dn(this,a);var y=this.s;return a=y.indexOf(a),a===-1?!1:(a===y.length-1?y.pop():y.splice(a,1),this.xb(),!0)},Ct.delete=function(a){return this.remove(a)},Ct.mb=function(a){var y=this.s;(0>a||a>=y.length)&&De(a,"0 <= i < length",Ln,"removeAt:i"),this._isFrozen&&dn(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Ct.removeRange=function(a,y){var x=this.s,E=x.length;if(0>a)a=0;else if(a>=E)return this;if(0>y)return this;if(y>=E&&(y=E-1),a>y)return this;this._isFrozen&&dn(this);for(var b=a,z=y+1;z=z)return this;if((0>y||y>=b-1)&&De(y,"0 <= from < length",Ln,"sortRange:from"),z===2)return x=E[y],b=E[y+1],0=b)E.sort(a);else for(y=E.slice(0,x),y.sort(a),a=0;a=b)for(x=E.slice(y),x.sort(a),a=y;a=this.s.length)return so;var a=this.Sa;return a!==null?(a.reset(),a):new Ei(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return so;var a=this.Hg;return a!==null?(a.reset(),a):new Ki(this)}}}),Ln.prototype.reverse=Ln.prototype.reverse,Ln.prototype.sortRange=Ln.prototype.zi,Ln.prototype.sort=Ln.prototype.sort,Ln.prototype.toSet=Ln.prototype.Iv,Ln.prototype.toArray=Ln.prototype.Fa,Ln.prototype.removeRange=Ln.prototype.removeRange,Ln.prototype.removeAt=Ln.prototype.mb,Ln.prototype.delete=Ln.prototype.delete,Ln.prototype.remove=Ln.prototype.remove,Ln.prototype.insertAt=Ln.prototype.Gb,Ln.prototype.pop=Ln.prototype.pop,Ln.prototype.last=Ln.prototype.jc,Ln.prototype.first=Ln.prototype.first,Ln.prototype.set=Ln.prototype.set,Ln.prototype.setElt=Ln.prototype.cd,Ln.prototype.get=Ln.prototype.get,Ln.prototype.elt=Ln.prototype.M,Ln.prototype.indexOf=Ln.prototype.indexOf,Ln.prototype.has=Ln.prototype.has,Ln.prototype.contains=Ln.prototype.contains,Ln.prototype.clear=Ln.prototype.clear,Ln.prototype.addAll=Ln.prototype.addAll,Ln.prototype.push=Ln.prototype.push,Ln.prototype.add=Ln.prototype.add,Ln.prototype.thaw=Ln.prototype.ka,Ln.prototype.freeze=Ln.prototype.freeze,Ln.className="List";function ho(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}ho.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},ho.prototype.next=function(){var a=this.eg;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},ho.prototype.Ad=function(){return this.next()},ho.prototype.first=function(){var a=this.eg;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},ho.prototype.any=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},ho.prototype.all=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},ho.prototype.each=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},ho.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new Ln;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},ho.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new Ln;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},ho.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},ho.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},Vt.Object.defineProperties(ho.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),ho.prototype.first=ho.prototype.first,ho.prototype.hasNext=ho.prototype.Ad,ho.prototype.next=ho.prototype.next,ho.prototype.reset=ho.prototype.reset,ho.className="SetIterator";function bn(a){ao(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&Xt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ct=bn.prototype,Ct.xb=function(){var a=this.Ja;a++,999999999=this.Sb)return so;var a=this.Sa;return a!==null?(a.reset(),a):new ho(this)}}}),bn.prototype.toList=bn.prototype.Hv,bn.prototype.toArray=bn.prototype.Fa,bn.prototype.clear=bn.prototype.clear,bn.prototype.retainAll=bn.prototype.pA,bn.prototype.removeAll=bn.prototype.hp,bn.prototype.delete=bn.prototype.delete,bn.prototype.remove=bn.prototype.remove,bn.prototype.first=bn.prototype.first,bn.prototype.containsAny=bn.prototype.Ty,bn.prototype.containsAll=bn.prototype.Sy,bn.prototype.has=bn.prototype.has,bn.prototype.contains=bn.prototype.contains,bn.prototype.addAll=bn.prototype.addAll,bn.prototype.add=bn.prototype.add,bn.prototype.thaw=bn.prototype.ka,bn.prototype.freeze=bn.prototype.freeze;var Uo=1;bn.className="Set",bn.uniqueHash=ao,bn.hashIdUnique=Mo,bn.hashId=Ao;function So(a){this.ma=a,this.qa=a.Ja,this.sa=null}So.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},So.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=this.key=a=y.key,!0):(this.de(),!1)},So.prototype.Ad=function(){return this.next()},So.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.value=this.key=a=a.key):null},So.prototype.any=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},So.prototype.all=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},So.prototype.each=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;)a(y.key),y=y.va;return this},So.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new Ln;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},So.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new Ln;for(y=y.ea;y!==null;){var E=y.key;a(E)&&x.add(E),y=y.va}return x.iterator},So.prototype.de=function(){this.value=this.key=null,this.qa=-1},So.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},Vt.Object.defineProperties(So.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),So.prototype.first=So.prototype.first,So.prototype.hasNext=So.prototype.Ad,So.prototype.next=So.prototype.next,So.prototype.reset=So.prototype.reset,So.className="MapKeySetIterator";function di(a){bn.call(this),ao(this),this._isFrozen=!0,this.ma=a}Yt(di,bn),Ct=di.prototype,Ct.freeze=function(){return this},Ct.ka=function(){return this},Ct.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Ct.add=function(){Xt("This Set is read-only: "+this.toString())},Ct.contains=function(a){return this.ma.contains(a)},Ct.has=function(a){return this.contains(a)},Ct.remove=function(){Xt("This Set is read-only: "+this.toString())},Ct.delete=function(a){return this.remove(a)},Ct.clear=function(){Xt("This Set is read-only: "+this.toString())},Ct.first=function(){var a=this.ma.ea;return a!==null?a.key:null},di.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},di.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},di.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},di.prototype.map=function(a){for(var y=new bn,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},di.prototype.filter=function(a){for(var y=new bn,x=this.ma.ea;x!==null;){var E=x.key;a(E)&&y.add(E),x=x.va}return y},di.prototype.copy=function(){return new di(this.ma)},di.prototype.Iv=function(){var a=new bn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},di.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),x=0,E;for(E in a)y[x]=a[E].key,x++;return y},di.prototype.Hv=function(){var a=new Ln,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Vt.Object.defineProperties(di.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?so:new So(this.ma)}}}),di.prototype.toList=di.prototype.Hv,di.prototype.toArray=di.prototype.Fa,di.prototype.toSet=di.prototype.Iv,di.prototype.first=di.prototype.first,di.prototype.clear=di.prototype.clear,di.prototype.delete=di.prototype.delete,di.prototype.remove=di.prototype.remove,di.prototype.has=di.prototype.has,di.prototype.contains=di.prototype.contains,di.prototype.add=di.prototype.add,di.prototype.thaw=di.prototype.ka,di.prototype.freeze=di.prototype.freeze,di.className="MapKeySet";function _i(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}_i.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},_i.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},_i.prototype.Ad=function(){return this.next()},_i.prototype.first=function(){var a=this.ma;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},_i.prototype.any=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},_i.prototype.all=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},_i.prototype.each=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},_i.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Ln;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},_i.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Ln;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},_i.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},_i.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},Vt.Object.defineProperties(_i.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),_i.prototype.first=_i.prototype.first,_i.prototype.hasNext=_i.prototype.Ad,_i.prototype.next=_i.prototype.next,_i.prototype.reset=_i.prototype.reset,_i.className="MapValueSetIterator";function Po(a,y){this.key=a,this.value=y,this.ll=this.va=null}Po.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Po.className="KeyValuePair";function eo(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}eo.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},eo.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.key=y.key,this.value=y.value,!0):(this.de(),!1)},eo.prototype.Ad=function(){return this.next()},eo.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.key=a.key,this.value=a.value,a):null},eo.prototype.any=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},eo.prototype.all=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},eo.prototype.each=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y),y=y.va;return this},eo.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Ln;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},eo.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Ln;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},eo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},eo.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},Vt.Object.defineProperties(eo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),eo.prototype.first=eo.prototype.first,eo.prototype.hasNext=eo.prototype.Ad,eo.prototype.next=eo.prototype.next,eo.prototype.reset=eo.prototype.reset,eo.className="MapIterator";function hi(a){ao(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.jf=this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&Xt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ct=hi.prototype,Ct.xb=function(){var a=this.Ja;a++,999999999=this.count)return so;var a=this.Sa;return a!==null?(a.reset(),a):new eo(this)}},iteratorKeys:{get:function(){return 0>=this.count?so:new So(this)}},iteratorValues:{get:function(){if(0>=this.count)return so;var a=this.jf;return a!==null?(a.reset(),a):new _i(this)}}}),hi.prototype.toKeySet=hi.prototype.Lf,hi.prototype.toArray=hi.prototype.Fa,hi.prototype.clear=hi.prototype.clear,hi.prototype.delete=hi.prototype.delete,hi.prototype.remove=hi.prototype.remove,hi.prototype.get=hi.prototype.get,hi.prototype.getValue=hi.prototype.I,hi.prototype.has=hi.prototype.has,hi.prototype.contains=hi.prototype.contains,hi.prototype.first=hi.prototype.first,hi.prototype.addAll=hi.prototype.addAll,hi.prototype.set=hi.prototype.set,hi.prototype.add=hi.prototype.add,hi.prototype.thaw=hi.prototype.ka,hi.prototype.freeze=hi.prototype.freeze,hi.className="Map";function Ot(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):Xt("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var lr,Yo,tr,_t,Zn;Ot.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Ot.prototype.h=function(a,y){return this.x=a,this.y=y,this},Ot.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Ot.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Ot.prototype.copy=function(){var a=new Ot;return a.x=this.x,a.y=this.y,a},Ct=Ot.prototype,Ct.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ct.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return Object.isFrozen(this)&&Xt("cannot thaw constant: "+this),this._isFrozen=!1,this};function si(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new Ot(x,b)}return new Ot}function Ii(a){return a.x.toString()+" "+a.y.toString()}Ct.toString=function(){return"Point("+this.x+","+this.y+")"},Ct.D=function(a){return a instanceof Ot?this.x===a.x&&this.y===a.y:!1},Ct.hi=function(a,y){return this.x===a&&this.y===y},Ct.Xa=function(a){return Ie.B(this.x,a.x)&&Ie.B(this.y,a.y)},Ct.add=function(a){return this.x+=a.x,this.y+=a.y,this},Ct.re=function(a){return this.x-=a.x,this.y-=a.y,this},Ct.offset=function(a,y){return this.x+=a,this.y+=y,this},Ot.prototype.rotate=function(a){if(a===0)return this;var y=this.x,x=this.y;if(y===0&&x===0)return this;if(360<=a?a-=360:0>a&&(a+=360),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));return this.x=a*y-E*x,this.y=E*y+a*x,this},Ct=Ot.prototype,Ct.scale=function(a,y){return this.x*=a,this.y*=y,this},Ct.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Ct.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Ct.normalize=function(){var a=this.x,y=this.y,x=Math.sqrt(a*a+y*y);return 0y?270:0;if(y===0)return 0a?x=0>y?x+180:180-x:0>y&&(x=360-x),x}Ct.Ry=function(a,y){return Ie.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Ct.fA=function(a,y,x,E){return Ie.qh(a,y,x,E,this.x,this.y,this),this},Ct.gA=function(a,y){return Ie.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Ct.uA=function(a,y,x,E){return Ie.No(this.x,this.y,a,y,x,E,this),this},Ct.vA=function(a,y){return Ie.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Ct.xi=function(a,y){return this.x=a.x+y.x*a.width+y.offsetX,this.y=a.y+y.y*a.height+y.offsetY,this},Ct.yi=function(a,y,x,E,b){return this.x=a+b.x*x+b.offsetX,this.y=y+b.y*E+b.offsetY,this},Ct.transform=function(a){return a.Ga(this),this};function Ai(a,y){return y.Cd(a),a}function pi(a,y,x,E,b,z){var tt=b-x,rt=z-E,at=tt*tt+rt*rt;x-=a,E-=y;var lt=-x*tt-E*rt;return 0>=lt||lt>=at?(tt=b-a,rt=z-y,Math.min(x*x+E*E,tt*tt+rt*rt)):(a=tt*E-rt*x,a*a/at)}function mi(a,y,x,E){return a=x-a,y=E-y,a*a+y*y}function ei(a,y,x,E){return a=x-a,y=E-y,a===0?0y?270:0:y===0?0a?E=0>y?E+180:180-E:0>y&&(E=360-E),E)}Ct.w=function(){return isFinite(this.x)&&isFinite(this.y)},Ot.alloc=function(){var a=gi.pop();return a===void 0?new Ot:a},Ot.allocAt=function(a,y){var x=gi.pop();return x===void 0?new Ot(a,y):(x.x=a,x.y=y,x)},Ot.free=function(a){gi.push(a)},Ot.prototype.isReal=Ot.prototype.w,Ot.prototype.setSpot=Ot.prototype.yi,Ot.prototype.setRectSpot=Ot.prototype.xi,Ot.prototype.snapToGridPoint=Ot.prototype.vA,Ot.prototype.snapToGrid=Ot.prototype.uA,Ot.prototype.projectOntoLineSegmentPoint=Ot.prototype.gA,Ot.prototype.projectOntoLineSegment=Ot.prototype.fA,Ot.intersectingLineSegments=function(a,y,x,E,b,z,tt,rt){return Ie.Rl(a,y,x,E,b,z,tt,rt)},Ot.prototype.compareWithLineSegmentPoint=Ot.prototype.Ry,Ot.compareWithLineSegment=function(a,y,x,E,b,z){return Ie.Fl(a,y,x,E,b,z)},Ot.prototype.direction=Ot.prototype.direction,Ot.prototype.directionPoint=Ot.prototype.ab,Ot.prototype.normalize=Ot.prototype.normalize,Ot.prototype.distanceSquared=Ot.prototype.zd,Ot.prototype.distanceSquaredPoint=Ot.prototype.Bf,Ot.prototype.scale=Ot.prototype.scale,Ot.prototype.rotate=Ot.prototype.rotate,Ot.prototype.offset=Ot.prototype.offset,Ot.prototype.subtract=Ot.prototype.re,Ot.prototype.add=Ot.prototype.add,Ot.prototype.equalsApprox=Ot.prototype.Xa,Ot.prototype.equalTo=Ot.prototype.hi,Ot.prototype.equals=Ot.prototype.D,Ot.prototype.set=Ot.prototype.set,Ot.prototype.setTo=Ot.prototype.sg;var gi=[];Ot.className="Point",Ot.parse=si,Ot.stringify=Ii,Ot.distanceLineSegmentSquared=pi,Ot.distanceSquared=mi,Ot.direction=ei,Ot.Origin=lr=new Ot(0,0).ja(),Ot.InfiniteTopLeft=Yo=new Ot(-1/0,-1/0).ja(),Ot.InfiniteBottomRight=tr=new Ot(1/0,1/0).ja(),Ot.SixPoint=_t=new Ot(6,6).ja(),Ot.NoPoint=Zn=new Ot(NaN,NaN).ja(),Ot.parse=si,Ot.stringify=Ii,Ot.distanceLineSegmentSquared=pi,Ot.distanceSquared=mi,Ot.direction=ei;function Nn(a,y){a===void 0?this.height=this.width=0:typeof a=="number"&&(0<=a||isNaN(a))&&typeof y=="number"&&(0<=y||isNaN(y))?(this.width=a,this.height=y):Xt("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var Pi,Wi,Ni,Oi,po,co,or;Nn.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},Nn.prototype.h=function(a,y){return this.width=a,this.height=y,this},Nn.prototype.sg=function(a,y){return this.width=a,this.height=y,this},Nn.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},Nn.prototype.copy=function(){var a=new Nn;return a.width=this.width,a.height=this.height,a},Ct=Nn.prototype,Ct.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ct.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return Object.isFrozen(this)&&Xt("cannot thaw constant: "+this),this._isFrozen=!1,this};function ia(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new Nn(x,b)}return new Nn}function ha(a){return a.width.toString()+" "+a.height.toString()}Ct.toString=function(){return"Size("+this.width+","+this.height+")"},Ct.D=function(a){return a instanceof Nn?this.width===a.width&&this.height===a.height:!1},Ct.hi=function(a,y){return this.width===a&&this.height===y},Ct.Xa=function(a){return Ie.B(this.width,a.width)&&Ie.B(this.height,a.height)},Ct.Bc=function(a,y){return a=this.width+a,this.width=0<=a?a:0,y=this.height+y,this.height=0<=y?y:0,this},Ct.w=function(){return isFinite(this.width)&&isFinite(this.height)},Nn.alloc=function(){var a=ga.pop();return a===void 0?new Nn:a},Nn.free=function(a){ga.push(a)},Nn.prototype.isReal=Nn.prototype.w,Nn.prototype.inflate=Nn.prototype.Bc,Nn.prototype.equalsApprox=Nn.prototype.Xa,Nn.prototype.equalTo=Nn.prototype.hi,Nn.prototype.equals=Nn.prototype.D,Nn.prototype.set=Nn.prototype.set,Nn.prototype.setTo=Nn.prototype.sg;var ga=[];Nn.className="Size",Nn.parse=ia,Nn.stringify=ha,Nn.ZeroSize=Pi=new Nn(0,0).ja(),Nn.OneSize=Wi=new Nn(1,1).ja(),Nn.SixSize=Ni=new Nn(6,6).ja(),Nn.EightSize=Oi=new Nn(8,8).ja(),Nn.TenSize=po=new Nn(10,10).ja(),Nn.InfiniteSize=co=new Nn(1/0,1/0).ja(),Nn.NoSize=or=new Nn(NaN,NaN).ja(),Nn.parse=ia,Nn.stringify=ha;function on(a,y,x,E){a===void 0?this.height=this.width=this.y=this.x=0:typeof a=="number"&&typeof y=="number"&&typeof x=="number"&&(0<=x||isNaN(x))&&typeof E=="number"&&(0<=E||isNaN(E))?(this.x=a,this.y=y,this.width=x,this.height=E):a instanceof Ot?(x=a.x,a=a.y,y instanceof Ot?(E=y.x,y=y.y,this.x=Math.min(x,E),this.y=Math.min(a,y),this.width=Math.abs(x-E),this.height=Math.abs(a-y)):y instanceof Nn?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):Xt("Incorrect second argument supplied to Rect constructor "+y)):Xt("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}Ct=on.prototype,Ct.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Ct.h=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this};function ca(a,y,x){a.width=y,a.height=x}Ct.sg=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this},Ct.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Ct.dd=function(a){return this.x=a.x,this.y=a.y,this},Ct.tA=function(a){return this.width=a.width,this.height=a.height,this},on.prototype.copy=function(){var a=new on;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Ct=on.prototype,Ct.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ct.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return Object.isFrozen(this)&&Xt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ks(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;(E=a[y++])&&(b=parseFloat(E));for(var z=0;a[y]==="";)y++;(E=a[y++])&&(z=parseFloat(E));for(var tt=0;a[y]==="";)y++;return(E=a[y++])&&(tt=parseFloat(E)),new on(x,b,z,tt)}return new on}function $a(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Ct.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Ct.D=function(a){return a instanceof on?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Ct.hi=function(a,y,x,E){return this.x===a&&this.y===y&&this.width===x&&this.height===E},Ct.Xa=function(a){return Ie.B(this.x,a.x)&&Ie.B(this.y,a.y)&&Ie.B(this.width,a.width)&&Ie.B(this.height,a.height)};function Ll(a,y){return Ie.$(a.x,y.x)&&Ie.$(a.y,y.y)&&Ie.$(a.width,y.width)&&Ie.$(a.height,y.height)}Ct.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Ct.Re=function(a){return this.x<=a.x&&a.x+a.width<=this.x+this.width&&this.y<=a.y&&a.y+a.height<=this.y+this.height},Ct.contains=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),this.x<=a&&a+x<=this.x+this.width&&this.y<=y&&y+E<=this.y+this.height},Ct.offset=function(a,y){return this.x+=a,this.y+=y,this},Ct.Bc=function(a,y){return Yr(this,y,a,y,a)},Ct.Co=function(a){return Yr(this,a.top,a.right,a.bottom,a.left)},Ct.Fv=function(a){return Yr(this,-a.top,-a.right,-a.bottom,-a.left)},Ct.Hz=function(a,y,x,E){return Yr(this,a,y,x,E)};function Yr(a,y,x,E,b){var z=a.width;return x+b<=-z?(a.x+=z/2,a.width=0):(a.x-=b,a.width+=x+b),x=a.height,y+E<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+E),a}Ct.Ex=function(a){return Fs(this,a.x,a.y,a.width,a.height)},Ct.Uu=function(a,y,x,E){return Fs(this,a,y,x,E)};function Fs(a,y,x,E,b){var z=Math.max(a.x,y),tt=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+E),x=Math.min(a.y+a.height,x+b),a.x=z,a.y=tt,a.width=Math.max(0,y-z),a.height=Math.max(0,x-tt),a}Ct.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Ct.Vu=function(a,y,x,E){var b=this.width,z=this.x;return b!==1/0&&x!==1/0&&(b+=z,x+=a,isNaN(x)||isNaN(b)||z>x||a>b)?!1:(a=this.height,x=this.y,!(a!==1/0&&E!==1/0&&(a+=x,E+=y,isNaN(E)||isNaN(a)||x>E||y>a)))};function gr(a,y){var x=a.width,E=a.x,b=y.x-10;return E>y.width+10+10+b||b>x+E?!1:(x=a.height,a=a.y,E=y.y-10,!(a>y.height+10+10+E||E>x+a))}Ct.Ye=function(a){return zo(this,a.x,a.y,0,0)},Ct.ed=function(a){return zo(this,a.x,a.y,a.width,a.height)},Ct.Kv=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),zo(this,a,y,x,E)};function zo(a,y,x,E,b){var z=Math.min(a.x,y),tt=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+E),x=Math.max(a.y+a.height,x+b),a.x=z,a.y=tt,a.width=y-z,a.height=x-tt,a}Ct.yi=function(a,y,x){return this.x=a-x.offsetX-x.x*this.width,this.y=y-x.offsetY-x.y*this.height,this};function nr(a,y,x,E,b,z,tt,rt){return tt===void 0&&(tt=0),rt===void 0&&(rt=0),a<=b&&b+tt<=a+x&&y<=z&&z+rt<=y+E}function Xr(a,y,x,E,b,z,tt,rt){return a>tt+b||b>x+a?!1:!(y>rt+z||z>E+y)}Ct.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Ct.Mz=function(){return this.width===0&&this.height===0},on.alloc=function(){var a=kr.pop();return a===void 0?new on:a},on.allocAt=function(a,y,x,E){var b=kr.pop();return b===void 0?new on(a,y,x,E):b.h(a,y,x,E)},on.free=function(a){kr.push(a)},Vt.Object.defineProperties(on.prototype,{left:{get:function(){return this.x},set:function(a){this.x=a}},top:{get:function(){return this.y},set:function(a){this.y=a}},right:{get:function(){return this.x+this.width},set:function(a){this.x+=a-(this.x+this.width)}},bottom:{get:function(){return this.y+this.height},set:function(a){this.y+=a-(this.y+this.height)}},position:{get:function(){return new Ot(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new Nn(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Ot(this.x+this.width/2,this.y+this.height/2)},set:function(a){this.x=a.x-this.width/2,this.y=a.y-this.height/2}},centerX:{get:function(){return this.x+this.width/2},set:function(a){this.x=a-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(a){this.y=a-this.height/2}}}),on.prototype.isEmpty=on.prototype.Mz,on.prototype.isReal=on.prototype.w,on.intersectsLineSegment=function(a,y,x,E,b,z,tt,rt){return Ie.Fx(a,y,x,E,b,z,tt,rt)},on.prototype.setSpot=on.prototype.yi,on.prototype.union=on.prototype.Kv,on.prototype.unionRect=on.prototype.ed,on.prototype.unionPoint=on.prototype.Ye,on.prototype.intersects=on.prototype.Vu,on.prototype.intersectsRect=on.prototype.Yc,on.prototype.intersect=on.prototype.Uu,on.prototype.intersectRect=on.prototype.Ex,on.prototype.grow=on.prototype.Hz,on.prototype.subtractMargin=on.prototype.Fv,on.prototype.addMargin=on.prototype.Co,on.prototype.inflate=on.prototype.Bc,on.prototype.offset=on.prototype.offset,on.prototype.contains=on.prototype.contains,on.prototype.containsRect=on.prototype.Re,on.prototype.containsPoint=on.prototype.ca,on.prototype.equalsApprox=on.prototype.Xa,on.prototype.equalTo=on.prototype.hi,on.prototype.equals=on.prototype.D,on.prototype.setSize=on.prototype.tA,on.prototype.setPoint=on.prototype.dd,on.prototype.set=on.prototype.set,on.prototype.setTo=on.prototype.sg;var Wr=null,wa=null,kr=[];on.className="Rect",on.parse=Ks,on.stringify=$a,on.contains=nr,on.intersects=Xr,on.ZeroRect=Wr=new on(0,0,0,0).ja(),on.NoRect=wa=new on(NaN,NaN,NaN,NaN).ja(),on.parse=Ks,on.stringify=$a,on.contains=nr,on.intersects=Xr;function Ri(a,y,x,E){a===void 0?this.left=this.bottom=this.right=this.top=0:y===void 0?this.left=this.bottom=this.right=this.top=a:x===void 0?(this.top=a,this.right=y,this.bottom=a,this.left=y):E!==void 0?(this.top=a,this.right=y,this.bottom=x,this.left=E):Xt("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}Ri.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Ri.prototype.sg=function(a,y,x,E){return this.top=a,this.right=y,this.bottom=x,this.left=E,this},Ri.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Ri.prototype.copy=function(){var a=new Ri;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Ct=Ri.prototype,Ct.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ct.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return Object.isFrozen(this)&&Xt("cannot thaw constant: "+this),this._isFrozen=!1,this};function ts(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=NaN;a[y]==="";)y++;var E=a[y++];if(E&&(x=parseFloat(E)),isNaN(x))return new Ri;for(var b=NaN;a[y]==="";)y++;if((E=a[y++])&&(b=parseFloat(E)),isNaN(b))return new Ri(x);for(var z=NaN;a[y]==="";)y++;if((E=a[y++])&&(z=parseFloat(E)),isNaN(z))return new Ri(x,b);for(var tt=NaN;a[y]==="";)y++;return(E=a[y++])&&(tt=parseFloat(E)),isNaN(tt)?new Ri(x,b):new Ri(x,b,z,tt)}return new Ri}function al(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Ct.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Ct.D=function(a){return a instanceof Ri?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Ct.hi=function(a,y,x,E){return this.top===a&&this.right===y&&this.bottom===x&&this.left===E},Ct.Xa=function(a){return Ie.B(this.top,a.top)&&Ie.B(this.right,a.right)&&Ie.B(this.bottom,a.bottom)&&Ie.B(this.left,a.left)},Ct.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Ri.alloc=function(){var a=Dl.pop();return a===void 0?new Ri:a},Ri.free=function(a){Dl.push(a)},Ri.prototype.isReal=Ri.prototype.w,Ri.prototype.equalsApprox=Ri.prototype.Xa,Ri.prototype.equalTo=Ri.prototype.hi,Ri.prototype.equals=Ri.prototype.D,Ri.prototype.set=Ri.prototype.set,Ri.prototype.setTo=Ri.prototype.sg;var as=null,Qs=null,Dl=[];Ri.className="Margin",Ri.parse=ts,Ri.stringify=al,Ri.ZeroMargin=as=new Ri(0,0,0,0).ja(),Ri.TwoMargin=Qs=new Ri(2,2,2,2).ja(),Ri.parse=ts,Ri.stringify=al;function Mi(a,y,x,E){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),E===void 0&&(E=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=E),this._isFrozen=!1}var ir,Or,ya,Au,ru,Wo,_u,Ul,Ls,Ka,Vl,Yl,fs,sl,ti,To,Ko,ar,Ir,sr,Zr,qr,es,Ba,ps,da,Sh,$u,Xl,Bl,Wa,ss,ba,Ea,bl,Cu;Mi.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Mi.prototype.sg=function(a,y,x,E){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=E,this},Mi.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Mi.prototype.copy=function(){var a=new Mi;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Ct=Mi.prototype,Ct.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ct.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return Object.isFrozen(this)&&Xt("cannot thaw constant: "+this),this._isFrozen=!1,this};function fa(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function Ad(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return ir;if(a==="TopLeft")return Or;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return ya;if(a==="TopRight")return Au;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return ru;if(a==="Center")return Wo;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return _u;if(a==="BottomLeft")return Ul;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return Ls;if(a==="BottomRight")return Ka;if(a==="TopSide")return Vl;if(a==="LeftSide")return Yl;if(a==="RightSide")return fs;if(a==="BottomSide")return sl;if(a==="TopBottomSides")return ti;if(a==="LeftRightSides")return To;if(a==="TopLeftSides")return Ko;if(a==="TopRightSides")return ar;if(a==="BottomLeftSides")return Ir;if(a==="BottomRightSides")return sr;if(a==="NotTopSide")return Zr;if(a==="NotLeftSide")return qr;if(a==="NotRightSide")return es;if(a==="NotBottomSide")return Ba;if(a==="AllSides")return ps;if(a==="Default")return da;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E!==void 0&&0a&&(a+=360),a===0)return this;if(this.translate(y,x),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.m12*a+this.m22*E,z=this.m11*-E+this.m21*a,tt=this.m12*-E+this.m22*a;return this.m11=this.m11*a+this.m21*E,this.m12=b,this.m21=z,this.m22=tt,this.translate(-y,-x),this},Ct=vo.prototype,Ct.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Ct.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Ct.Ga=function(a){var y=a.x,x=a.y;return a.h(y*this.m11+x*this.m21+this.dx,y*this.m12+x*this.m22+this.dy)},Ct.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=a.x,E=a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Ct.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=1.25*a.x,E=1.2*a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Ct.pp=function(a){var y=a.x,x=a.y,E=y+a.width,b=x+a.height,z=this.m11,tt=this.m12,rt=this.m21,at=this.m22,lt=this.dx,ht=this.dy,ft=y*z+x*rt+lt,vt=y*tt+x*at+ht,xt=E*z+x*rt+lt,Et=E*tt+x*at+ht;return x=y*z+b*rt+lt,y=y*tt+b*at+ht,z=E*z+b*rt+lt,E=E*tt+b*at+ht,b=Math.min(ft,xt),ft=Math.max(ft,xt),xt=Math.min(vt,Et),vt=Math.max(vt,Et),b=Math.min(b,x),ft=Math.max(ft,x),xt=Math.min(xt,y),vt=Math.max(vt,y),b=Math.min(b,z),ft=Math.max(ft,z),xt=Math.min(xt,E),vt=Math.max(vt,E),a.h(b,xt,ft-b,vt-xt),a},vo.alloc=function(){var a=lg.pop();return a===void 0?new vo:a},vo.free=function(a){lg.push(a)},vo.prototype.transformRect=vo.prototype.pp,vo.prototype.transformPoint=vo.prototype.Ga,vo.prototype.scale=vo.prototype.scale,vo.prototype.translate=vo.prototype.translate,vo.prototype.rotate=vo.prototype.rotate,vo.prototype.invert=vo.prototype.Vj,vo.prototype.multiplyInverted=vo.prototype.bv,vo.prototype.multiply=vo.prototype.multiply,vo.prototype.reset=vo.prototype.reset,vo.prototype.isIdentity=vo.prototype.ws,vo.prototype.equals=vo.prototype.D,vo.prototype.setTransform=vo.prototype.setTransform,vo.prototype.set=vo.prototype.set;var lg=[];vo.className="Transform",vo.xF="54a702f3e53909c447824c6706603faf4c";var Ie={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Ie.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);Ie.Uv=y}return 1>a?(x=1/a,2e3>=x?1/y[x|0]:Math.sqrt(a)):2e3>=a?y[a|0]:Math.sqrt(a)},B:function(a,y){return a-=y,.5>a&&-.5a&&-5e-8=b&&(b=1e-6),aht-lt)if(a-x>b||x-a>b){if(z=(E-y)/(x-a)*(z-a)+y,z-b<=tt&&tt<=z+b)return!0}else return!0;else if(y-E>b||E-y>b){if(tt=(x-a)/(E-y)*(tt-y)+a,tt-b<=z&&z<=tt+b)return!0}else return!0;return!1},cs:function(a,y,x,E,b,z,tt,rt,at,lt,ht,ft){if(Ie.Yb(a,y,tt,rt,ft,x,E)&&Ie.Yb(a,y,tt,rt,ft,b,z))return Ie.Yb(a,y,tt,rt,ft,lt,ht);var vt=(a+x)/2,xt=(y+E)/2,Et=(x+b)/2,Lt=(E+z)/2;b=(b+tt)/2,z=(z+rt)/2,E=(vt+Et)/2,x=(xt+Lt)/2,Et=(Et+b)/2,Lt=(Lt+z)/2;var Wt=(E+Et)/2,kt=(x+Lt)/2;return Ie.cs(a,y,vt,xt,E,x,Wt,kt,at,lt,ht,ft)||Ie.cs(Wt,kt,Et,Lt,b,z,tt,rt,at,lt,ht,ft)},ax:function(a,y,x,E,b,z,tt,rt,at){var lt=(x+b)/2,ht=(E+z)/2;return at.h((((a+x)/2+lt)/2+(lt+(b+tt)/2)/2)/2,(((y+E)/2+ht)/2+(ht+(z+rt)/2)/2)/2),at},My:function(a,y,x,E,b,z,tt,rt){var at=(x+b)/2,lt=(E+z)/2;return ei(((a+x)/2+at)/2,((y+E)/2+lt)/2,(at+(b+tt)/2)/2,(lt+(z+rt)/2)/2)},Dl:function(a,y,x,E,b,z,tt,rt,at,lt){if(Ie.Yb(a,y,tt,rt,at,x,E)&&Ie.Yb(a,y,tt,rt,at,b,z))zo(lt,a,y,0,0),zo(lt,tt,rt,0,0);else{var ht=(a+x)/2,ft=(y+E)/2,vt=(x+b)/2,xt=(E+z)/2;b=(b+tt)/2,z=(z+rt)/2,E=(ht+vt)/2,x=(ft+xt)/2,vt=(vt+b)/2,xt=(xt+z)/2;var Et=(E+vt)/2,Lt=(x+xt)/2;Ie.Dl(a,y,ht,ft,E,x,Et,Lt,at,lt),Ie.Dl(Et,Lt,vt,xt,b,z,tt,rt,at,lt)}return lt},Qe:function(a,y,x,E,b,z,tt,rt,at,lt){if(Ie.Yb(a,y,tt,rt,at,x,E)&&Ie.Yb(a,y,tt,rt,at,b,z))lt.length===0&&(lt.push(a),lt.push(y)),lt.push(tt),lt.push(rt);else{var ht=(a+x)/2,ft=(y+E)/2,vt=(x+b)/2,xt=(E+z)/2;b=(b+tt)/2,z=(z+rt)/2,E=(ht+vt)/2,x=(ft+xt)/2,vt=(vt+b)/2,xt=(xt+z)/2;var Et=(E+vt)/2,Lt=(x+xt)/2;Ie.Qe(a,y,ht,ft,E,x,Et,Lt,at,lt),Ie.Qe(Et,Lt,vt,xt,b,z,tt,rt,at,lt)}return lt},jv:function(a,y,x,E,b,z,tt,rt,at,lt){if(Ie.Yb(a,y,b,z,lt,x,E))return Ie.Yb(a,y,b,z,lt,rt,at);var ht=(a+x)/2,ft=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var vt=(ht+x)/2,xt=(ft+E)/2;return Ie.jv(a,y,ht,ft,vt,xt,tt,rt,at,lt)||Ie.jv(vt,xt,x,E,b,z,tt,rt,at,lt)},OA:function(a,y,x,E,b,z,tt){return tt.h(((a+x)/2+(x+b)/2)/2,((y+E)/2+(E+z)/2)/2),tt},iv:function(a,y,x,E,b,z,tt,rt){if(Ie.Yb(a,y,b,z,tt,x,E))zo(rt,a,y,0,0),zo(rt,b,z,0,0);else{var at=(a+x)/2,lt=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ht=(at+x)/2,ft=(lt+E)/2;Ie.iv(a,y,at,lt,ht,ft,tt,rt),Ie.iv(ht,ft,x,E,b,z,tt,rt)}return rt},ep:function(a,y,x,E,b,z,tt,rt){if(Ie.Yb(a,y,b,z,tt,x,E))rt.length===0&&(rt.push(a),rt.push(y)),rt.push(b),rt.push(z);else{var at=(a+x)/2,lt=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ht=(at+x)/2,ft=(lt+E)/2;Ie.ep(a,y,at,lt,ht,ft,tt,rt),Ie.ep(ht,ft,x,E,b,z,tt,rt)}return rt},Eo:function(a,y,x,E,b,z,tt,rt,at,lt,ht,ft,vt,xt){if(Ie.Yb(a,y,tt,rt,vt,x,E)&&Ie.Yb(a,y,tt,rt,vt,b,z))return!Ie.Rl(a,y,tt,rt,at,lt,ht,ft)||(vt=(a-tt)*(lt-ft)-(y-rt)*(at-ht),vt===0)?!1:(xt.h(((a*r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a)+y,at))))},MA:function(a,y,x,E,b){return Ie.Ve(x.x,x.y,E.x,E.y,a.x,a.y,y.x,y.y,b)},KA:function(a,y,x,E,b,z,tt,rt,at,lt){function ht(Wt,kt){var Jt=(Wt-a)*(Wt-a)+(kt-y)*(kt-y);Jt(x>a?x-a:a-x)){if(vt=1-(x-b)*(x-b)/(vt*vt),0>vt)return at;vt=Math.sqrt(vt),E=-lt*vt+z,ht(x,lt*vt+z),ht(x,E)}else{if(x=(E-y)/(x-a),E=1/(vt*vt)+x*x/(lt*lt),rt=2*x*(y-x*a)/(lt*lt)-2*x*z/(lt*lt)-2*b/(vt*vt),vt=rt*rt-4*E*(2*x*a*z/(lt*lt)-2*y*z/(lt*lt)+z*z/(lt*lt)+b*b/(vt*vt)-1+(y-x*a)*(y-x*a)/(lt*lt)),0>vt)return at;vt=Math.sqrt(vt),lt=(-rt+vt)/(2*E),ht(lt,x*lt-x*a+y),vt=(-rt-vt)/(2*E),ht(vt,x*vt-x*a+y)}return at},Ff:function(a,y,x,E,b,z,tt,rt,at){var lt=1e21,ht=a,ft=y;if(Ie.Ve(a,y,a,E,b,z,tt,rt,at)){var vt=(at.x-b)*(at.x-b)+(at.y-z)*(at.y-z);vtlt},us:function(a,y,x){return Ie.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,E,b,z,tt,rt){var at=a+x,lt=y+E;return b===tt?(z=y):z===rt?(b=a):!!(nr(a,y,x,E,b,z)||nr(a,y,x,E,tt,rt)||Ie.Rl(a,y,at,y,b,z,tt,rt)||Ie.Rl(at,y,at,lt,b,z,tt,rt)||Ie.Rl(at,lt,a,lt,b,z,tt,rt)||Ie.Rl(a,lt,a,y,b,z,tt,rt))},Rl:function(a,y,x,E,b,z,tt,rt){return a===x&&y===E&&b===tt&&z===rt?a===b&&y===z:0>=Ie.Fl(a,y,x,E,b,z)*Ie.Fl(a,y,x,E,tt,rt)&&0>=Ie.Fl(b,z,tt,rt,a,y)*Ie.Fl(b,z,tt,rt,x,E)},Fl:function(a,y,x,E,b,z){return x-=a,E-=y,a=b-a,y=z-y,z=a*E-y*x,z===0&&(z=a*x+y*E,0z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,E,b,z){var tt=Math.PI;z||(E*=tt/180,b*=tt/180);var rt=E>b?-1:1;z=[];var at=tt/2,lt=E;if(E=Math.min(2*tt,Math.abs(b-E)),1e-5>E)return at=lt+rt*Math.min(E,at),rt=a+x*Math.cos(lt),lt=y+x*Math.sin(lt),a+=x*Math.cos(at),y+=x*Math.sin(at),x=(rt+a)/2,at=(lt+y)/2,z.push([rt,lt,x,at,x,at,a,y]),z;for(;1e-5x,z=0>E;if(alt&&(y=.5*(rt+at),!(y===rt||y===at));++lt){var ht=a/(y+b),ft=tt/(y+z);if(ht=ht*ht+ft*ft-1,0ht)at=y;else break}x=b*x/(y+b)-x,E=z*E/(y+z)-E,x=Math.sqrt(x*x+E*E)}else x=Math.abs(E-y);else E=a*a-y*y,z=a*x,za?"M"+this.startX.toString()+" "+this.startY.toString()+"L"+this.endX.toString()+" "+this.endY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a)+"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);case Qn.u:var y=new on(this.startX,this.startY,0,0);return y.Kv(this.endX,this.endY,0,0),0>a?"M"+y.x.toString()+" "+y.y.toString()+"H"+y.right.toString()+"V"+y.bottom.toString()+"H"+y.left.toString()+"z":"M"+y.x.toFixed(a)+" "+y.y.toFixed(a)+"H"+y.right.toFixed(a)+"V"+y.bottom.toFixed(a)+"H"+y.left.toFixed(a)+"z";case Qn.F:if(y=new on(this.startX,this.startY,0,0),y.Kv(this.endX,this.endY,0,0),0>a)return a=y.left.toString()+" "+(y.y+y.height/2).toString(),"M"+a+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+(y.right.toString()+" "+(y.y+y.height/2).toString())+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+a;var x=y.left.toFixed(a)+" "+(y.y+y.height/2).toFixed(a);return"M"+x+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+(y.right.toFixed(a)+" "+(y.y+y.height/2).toFixed(a))+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+x;case Qn.o:y="",x=this.figures.s;for(var E=x.length,b=0;b=se-1?!0:lt[Lt+1].match(ye)!==null}function E(){return Lt++,lt[Lt]}function b(qi){var Yi=parseFloat(E()),Ho=parseFloat(E());Wt===Wt.toLowerCase()&&(Yi=ne.x+Yi,Ho=ne.y+Ho),qi.h(Yi,Ho)}function z(){return b(ne),ne}function tt(){return b(Jt),Jt}function rt(){var qi=kt.toLowerCase();return qi!=="c"&&qi!=="s"&&qi!=="q"&&qi!=="t"?ne:new Ot(2*ne.x-Jt.x,2*ne.y-Jt.y)}y===void 0&&(y=!1);var at=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(at,"$1 $2"),a=a.replace(at,"$1 $2"),a=a.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),a=a.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),a=a.replace(/([0-9])([+\-])/gm,"$1 $2"),a=a.replace(/[\s\r\t\n]+/gm," "),a=a.replace(/^\s+|\s+$/g,"");var lt=a.split(" ");for(a=0;a=se-1);)if(kt=Wt,Wt=E(),Wt!=="")switch(Wt.toUpperCase()){case"X":xt=!0,ft=ht=!1;break;case"M":for(Et=z(),a.mc===null||xt===!0?(Gg(a,Et.x,Et.y,ht,!ft,vt),xt=!1):a.moveTo(Et.x,Et.y),at.assign(ne);!x();)Et=z(),a.lineTo(Et.x,Et.y);break;case"L":for(;!x();)Et=z(),a.lineTo(Et.x,Et.y);break;case"H":for(;!x();)ne=new Ot((Wt===Wt.toLowerCase()?ne.x:0)+parseFloat(E()),ne.y),a.lineTo(ne.x,ne.y);break;case"V":for(;!x();)ne=new Ot(ne.x,(Wt===Wt.toLowerCase()?ne.y:0)+parseFloat(E())),a.lineTo(ne.x,ne.y);break;case"C":for(;!x();){Et=new Ot,b(Et);var Ge=tt(),ni=z();Oh(a,Et.x,Et.y,Ge.x,Ge.y,ni.x,ni.y)}break;case"S":for(;!x();)Et=rt(),Ge=tt(),ni=z(),Oh(a,Et.x,Et.y,Ge.x,Ge.y,ni.x,ni.y);break;case"Q":for(;!x();)Et=tt(),Ge=z(),Hp(a,Et.x,Et.y,Ge.x,Ge.y);break;case"T":for(;!x();)Jt=Et=rt(),Ge=z(),Hp(a,Et.x,Et.y,Ge.x,Ge.y);break;case"B":for(;!x();){Et=parseFloat(E()),Ge=parseFloat(E()),ni=parseFloat(E());var fi=parseFloat(E()),ui=parseFloat(E()),Un=ui,xn=!1;x()||(Un=parseFloat(E()),x()||(xn=parseFloat(E())!==0)),Wt===Wt.toLowerCase()&&(ni+=ne.x,fi+=ne.y),a.arcTo(Et,Ge,ni,fi,ui,Un,xn)}break;case"A":for(;!x();)Et=Math.abs(parseFloat(E())),Ge=Math.abs(parseFloat(E())),ni=parseFloat(E()),ui=fi=!1,xn=Un=0,Un=E(),Un.length===1?(fi=!!parseFloat(Un),ui=!!parseFloat(E()),Un=parseFloat(E())):Un.length===2?(fi=!!parseFloat(Un[0]),ui=!!parseFloat(Un[1]),Un=parseFloat(E())):(fi=!!parseFloat(Un[0]),ui=!!parseFloat(Un[1]),Un=parseFloat(Un.slice(2))),xn=parseFloat(E()),Wt===Wt.toLowerCase()&&(Un=ne.x+Un,xn=ne.y+xn),ne.h(Un,xn),x5(a,Et,Ge,ni,fi,ui,Un,xn);break;case"Z":S5(a),ne.assign(at);break;case"F":for(Et="",Ge=1;lt[Lt+Ge];)if(lt[Lt+Ge]==="0")vt=!0,Ge++;else if(lt[Lt+Ge].match(/[Uu]/)!==null)Ge++;else if(lt[Lt+Ge].match(ye)===null)Ge++;else{Et=lt[Lt+Ge];break}Et.match(/[Mm]/)?ht=!0:0tt&&(tt+=360),Et.startAngle+=tt),0>a&&(Et.startAngle=180-Et.startAngle,Et.sweepAngle=-Et.sweepAngle),0>E&&(Et.startAngle=-Et.startAngle,Et.sweepAngle=-Et.sweepAngle),Et.radiusX*=Math.sqrt(a*a+x*x),Et.radiusY!==void 0&&(Et.radiusY*=Math.sqrt(y*y+E*E));break;case Js:if(tt=Et.endX,rt=Et.endY,Et.endX=tt*a+rt*x+b,Et.endY=tt*y+rt*E+z,Et.radiusX===0||Et.radiusY===0)break;y!==0&&(tt=180*Math.atan2(y,a)/Math.PI,0>tt&&(tt+=360),Et.xAxisRotation+=tt),0>a&&(Et.xAxisRotation=180-Et.xAxisRotation,Et.isClockwiseArc=!Et.isClockwiseArc),0>E&&(Et.xAxisRotation=-Et.xAxisRotation,Et.isClockwiseArc=!Et.isClockwiseArc),Et.radiusX*=Math.sqrt(a*a+x*x),Et.radiusY*=Math.sqrt(y*y+E*E);break;default:Xt("Unknown Segment type: "+Et.type)}}}}return this._isInvalidBounds=!0,this},Ct.ca=function(a,y){y===void 0&&(y=0);var x=this.od,E=this.pd,b=this.Dc,z=this.Ec;switch(this.type){case Qn.j:return Ie.Yb(x,E,b,z,y,a.x,a.y);case Qn.u:var tt=on.allocAt(Math.min(x,b)-y,Math.min(E,z)-y,Math.abs(b-x)+2*y,Math.abs(z-E)+2*y);return a=tt.ca(a),on.free(tt),a;case Qn.F:tt=Math.min(x,b)-y;var rt=Math.min(E,z)-y;return x=(Math.abs(b-x)+2*y)/2,y=(Math.abs(z-E)+2*y)/2,0>=x||0>=y?!1:(tt=a.x-(tt+x),rt=a.y-(rt+y),1>=tt*tt/(x*x)+rt*rt/(y*y));case Qn.o:return Su(this,a,y,!0,!1);default:return!1}};function Su(a,y,x,E,b){var z=y.x;y=y.y;for(var tt=a.bounds.x-20,rt=0,at,lt,ht,ft,vt=a.figures.s,xt=vt.length,Et=0;Et=a)return 0;if((b>tt?b-tt:tt-b)<(z>rt?z-rt:rt-z)){if(zrt)return 0}else if(yz)return 0}else if(btt)return 0}else if(ltb)return 0;return 0a?a=0:1=z)return E=z-tt,E=ht===0?0:E/ht,x=x[rt],rt=x[2*a],b=x[2*a+1],y.h(rt+(x[2*a+2]-rt)*E,b+(x[2*a+3]-b)*E),y;tt+=ht}}return y},Ct.wx=function(a){if(0>a?a=0:1=b)return b=y[tt],y=b[2*a],x=b[2*a+1],E=b[2*a+2],a=b[2*a+3],1>Math.abs(E-y)&&1>Math.abs(a-x)?0:1>Math.abs(E-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=E-y?0:180:180*Math.atan2(a-x,E-y)/Math.PI;z+=lt}}return NaN},Ct.Qu=function(a,y){if(0>a?a=0:1=z)return E=z-tt,E=ht===0?0:E/ht,ht=x[rt],x=ht[2*a],rt=ht[2*a+1],b=ht[2*a+2],a=ht[2*a+3],y[0]=x+(b-x)*E,y[1]=rt+(a-rt)*E,y[2]=1>Math.abs(b-x)&&1>Math.abs(a-rt)?0:1>Math.abs(b-x)?0<=a-rt?90:270:1>Math.abs(a-rt)?0<=b-x?0:180:180*Math.atan2(a-rt,b-x)/Math.PI,y;tt+=ht}}return y},Ct.xx=function(a){if(this.type===Qn.j){var y=this.startX,x=this.startY,E=this.endX,b=this.endY;if(y!==E||x!==b){var z=a.x;if(a=a.y,y===E){if(x=E?E===x?0:1:Math.abs(a-x)/(E-tt)}if(x===b)return y=E?E===y?0:1:Math.abs(z-y)/(E-tt);tt=(E-y)*(E-y)+(b-x)*(b-x);var rt=Ot.alloc();return Ie.qh(y,x,E,b,z,a,rt),a=rt.x,z=rt.y,Ot.free(rt),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/tt)}}else if(this.type===Qn.u){tt=this.startX,rt=this.startY;var at=this.endX;if(b=this.endY,tt!==at||rt!==b){y=at-tt,x=b-rt,z=2*y+2*x,E=a.x,a=a.y,E=Math.min(Math.max(E,tt),at),a=Math.min(Math.max(a,rt),b),tt=Math.abs(E-tt),at=Math.abs(E-at),rt=Math.abs(a-rt),b=Math.abs(a-b);var lt=Math.min(tt,at,rt,b);if(lt===rt)return E/z;if(lt===at)return(y+a)/z;if(lt===b)return(2*y+x-E)/z;if(lt===tt)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,E=Ot.alloc(),b=1/0,rt=tt=0,at=y.length;for(var ht=lt=0,ft=0;fta?0:1a?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a),x=this.segments.s,E=x.length,b=0;ba&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(E,0),this.Pg=Math.max(b,0),typeof tt=="boolean"?tt&&(this.isLargeArc=!0):typeof tt=="number"&&tt&&(this.isLargeArc=!0),rt&&(this.isClockwiseArc=!0)):(this.Ne=E,this.Vh=b,a===Qr&&(z=Math.max(z,0)),this.Wh=z,typeof tt=="number"?(a===Qr&&(tt=Math.max(tt,0)),this.Pg=tt):this.Pg=0),this.ae=null}Oo.prototype.copy=function(){var a=new Oo;return a.na=this.na,a.l=this.l&-2,a.Dc=this.Dc,a.Ec=this.Ec,a.Ne=this.Ne,a.Vh=this.Vh,a.Wh=this.Wh,a.Pg=this.Pg,a},Ct=Oo.prototype,Ct.Xa=function(a){if(!(a instanceof Oo)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case _r:case hr:return Ie.B(this.endX,a.endX)&&Ie.B(this.endY,a.endY);case Na:return Ie.B(this.endX,a.endX)&&Ie.B(this.endY,a.endY)&&Ie.B(this.point1X,a.point1X)&&Ie.B(this.point1Y,a.point1Y)&&Ie.B(this.point2X,a.point2X)&&Ie.B(this.point2Y,a.point2Y);case Hs:return Ie.B(this.endX,a.endX)&&Ie.B(this.endY,a.endY)&&Ie.B(this.point1X,a.point1X)&&Ie.B(this.point1Y,a.point1Y);case Qr:return Ie.B(this.startAngle,a.startAngle)&&Ie.B(this.sweepAngle,a.sweepAngle)&&Ie.B(this.centerX,a.centerX)&&Ie.B(this.centerY,a.centerY)&&Ie.B(this.radiusX,a.radiusX)&&Ie.B(this.radiusY,a.radiusY);case Js:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Ie.B(this.xAxisRotation,a.xAxisRotation)&&Ie.B(this.endX,a.endX)&&Ie.B(this.endY,a.endY)&&Ie.B(this.radiusX,a.radiusX)&&Ie.B(this.radiusY,a.radiusY);default:return!1}},Ct.qb=function(a){a.classType===Oo&&(this.type=a)},Ct.toString=function(a){switch(a===void 0&&(a=-1),this.type){case _r:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case hr:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Na:a=0>a?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.point2X.toFixed(a)+" "+this.point2Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Hs:a=0>a?"Q"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"Q"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Qr:a=0>a?"B"+this.startAngle.toString()+" "+this.sweepAngle.toString()+" "+this.centerX.toString()+" "+this.centerY.toString()+" "+this.radiusX.toString()+" "+this.radiusY.toString():"B"+this.startAngle.toFixed(a)+" "+this.sweepAngle.toFixed(a)+" "+this.centerX.toFixed(a)+" "+this.centerY.toFixed(a)+" "+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a);break;case Js:a=0>a?"A"+this.radiusX.toString()+" "+this.radiusY.toString()+" "+this.xAxisRotation.toString()+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toString()+" "+this.endY.toString():"A"+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a)+" "+this.xAxisRotation.toFixed(a)+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;default:a=this.type.toString()}return a+(this.isClosed?"z":"")},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return this._isFrozen=!1,this},Ct.close=function(){return this.isClosed=!0,this};function Ds(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var x=a.radiusX,E=a.radiusY;if(E===void 0&&(E=x),x===0||E===0)return a.ae=[],a.ae;y=a.Ne;var b=a.Vh,z=Ie.jx(0,0,x=xt?tt=Math.PI:1<=xt&&(tt=0),!at&&0tt&&(tt+=2*Math.PI),at=y>z?1:y/z,xt=y>z?z/y:1,y=Ie.jx(0,0,y>z?y:z,ht,ht+tt,!0),z=vo.alloc(),z.reset(),z.translate(x,E),z.rotate(a.Ne,0,0),z.scale(at,xt),Qn.Ha(y,z),vo.free(z),a.ae=y,a.ae}Vt.Object.defineProperties(Oo.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},isClosed:{get:function(){return(this.l&8)!==0},set:function(a){this.isClosed!==a&&(this.l=a?this.l|8:this.l&-9,this._isInvalidBounds=!0)}},type:{get:function(){return this.na},set:function(a){this._isFrozen&&dn(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&dn(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&dn(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&dn(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&dn(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&dn(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&dn(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&dn(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&dn(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&De(a,">= zero",Oo,"radiusX"),this._isFrozen&&dn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&De(a,">= zero",Oo,"radiusY"),this._isFrozen&&dn(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&dn(this,a),a%=360,0>a&&(a+=360),this.Dc=a,this._isInvalidBounds=!0}},sweepAngle:{get:function(){return this.Ec},set:function(a){this._isFrozen&&dn(this,a),360a&&(a=-360),this.Ec=a,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&dn(this,a),this.l=a?this.l|4:this.l&-5,this._isInvalidBounds=!0}},isLargeArc:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&dn(this,a),this.l=a?this.l|16:this.l&-17,this._isInvalidBounds=!0}},xAxisRotation:{get:function(){return this.Ne},set:function(a){this._isFrozen&&dn(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),Oo.prototype.equalsApprox=Oo.prototype.Xa;var _r=new sn(Oo,"Move",0),hr=new sn(Oo,"Line",1),Na=new sn(Oo,"Bezier",2),Hs=new sn(Oo,"QuadraticBezier",3),Qr=new sn(Oo,"Arc",4),Js=new sn(Oo,"SvgArc",4);Oo.className="PathSegment",Oo.Move=_r,Oo.Line=hr,Oo.Bezier=Na,Oo.QuadraticBezier=Hs,Oo.Arc=Qr,Oo.SvgArc=Js;function Qa(){this.H=null,this.xu=new Ot(0,0).freeze(),this.mt=new Ot(0,0).freeze(),this.Bp=this.Rq=0,this.Cp=1,this.xq="",this.Wr=this.Tp=!1,this.Rp=this.Ep=0,this.xg=this.nq=this.tq=!1,this.Zp=null,this.Rr=0,this.xd=this.Nr=null}Qa.prototype.copy=function(){var a=new Qa;return this.clone(a)},Qa.prototype.clone=function(a){return a.H=this.H,a.xu.assign(this.viewPoint),a.mt.assign(this.documentPoint),a.Rq=this.Rq,a.Bp=this.Bp,a.Cp=this.Cp,a.xq=this.xq,a.Tp=this.Tp,a.Wr=this.Wr,a.Ep=this.Ep,a.Rp=this.Rp,a.tq=this.tq,a.nq=this.nq,a.xg=this.xg,a.Zp=this.Zp,a.Rr=this.Rr,a.Nr=this.Nr,a.xd=this.xd,a},Qa.prototype.toString=function(){var a="^";return this.modifiers!==0&&(a+="M:"+this.modifiers),this.button!==0&&(a+="B:"+this.button),this.key!==""&&(a+="K:"+this.key),this.clickCount!==0&&(a+="C:"+this.clickCount),this.delta!==0&&(a+="D:"+this.delta),this.handled&&(a+="h"),this.bubbles&&(a+="b"),this.documentPoint!==null&&(a+="@"+this.documentPoint.toString()),a},Qa.prototype.So=function(a,y){var x=this.diagram;return x===null||Ff(x,a,y),y},Qa.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(Ff(x,a,y),y.assign(x.Ps(y))),y},Vt.Object.defineProperties(Qa.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},viewPoint:{get:function(){return this.xu},set:function(a){this.xu.assign(a)}},documentPoint:{get:function(){return this.mt},set:function(a){this.mt.assign(a)}},modifiers:{get:function(){return this.Rq},set:function(a){this.Rq=a}},button:{get:function(){return this.Bp},set:function(a){if(this.Bp=a,this.event===null)switch(a){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2}}},buttons:{get:function(){return this.Cp},set:function(a){this.Cp=a}},key:{get:function(){return this.xq},set:function(a){this.xq=a}},down:{get:function(){return this.Tp},set:function(a){this.Tp=a}},up:{get:function(){return this.Wr},set:function(a){this.Wr=a}},clickCount:{get:function(){return this.Ep},set:function(a){this.Ep=a}},delta:{get:function(){return this.Rp},set:function(a){this.Rp=a}},isMultiTouch:{get:function(){return this.tq},set:function(a){this.tq=a}},handled:{get:function(){return this.nq},set:function(a){this.nq=a}},bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},event:{get:function(){return this.Zp},set:function(a){this.Zp=a}},isTouchEvent:{get:function(){var a=this.event;return a===null?!1:a.pointerType==="touch"||a.pointerType==="pen"}},timestamp:{get:function(){return this.Rr},set:function(a){this.Rr=a}},targetDiagram:{get:function(){return this.Nr},set:function(a){this.Nr=a}},targetObject:{get:function(){return this.xd},set:function(a){this.xd=a}},control:{get:function(){return(this.modifiers&1)!==0},set:function(a){this.modifiers=a?this.modifiers|1:this.modifiers&-2}},shift:{get:function(){return(this.modifiers&4)!==0},set:function(a){this.modifiers=a?this.modifiers|4:this.modifiers&-5}},alt:{get:function(){return(this.modifiers&2)!==0},set:function(a){this.modifiers=a?this.modifiers|2:this.modifiers&-3}},meta:{get:function(){return(this.modifiers&8)!==0},set:function(a){this.modifiers=a?this.modifiers|8:this.modifiers&-9}},left:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&1)!==0:this.button===0},set:function(a){this.buttons=a?this.buttons|1:this.buttons&-2}},right:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&2)!==0:this.button===2},set:function(a){this.buttons=a?this.buttons|2:this.buttons&-3}},middle:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&4)!==0:this.button===1},set:function(a){this.buttons=a?this.buttons|4:this.buttons&-5}}}),Qa.prototype.getMultiTouchDocumentPoint=Qa.prototype.Bz,Qa.prototype.getMultiTouchViewPoint=Qa.prototype.So,Qa.className="InputEvent";function bu(){this.H=null,this.xa="",this.ar=this.Lr=null}bu.prototype.copy=function(){var a=new bu;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},bu.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},Vt.Object.defineProperties(bu.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},subject:{get:function(){return this.Lr},set:function(a){this.Lr=a}},parameter:{get:function(){return this.ar},set:function(a){this.ar=a}}}),bu.className="DiagramEvent";function Mr(){this.Fm=Er,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Mr.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},Mr.prototype.copy=function(){var a=new Mr;a.Fm=this.Fm,a.Qq=this.Qq,a.rf=this.rf,a.cc=this.cc,a.H=this.H,a.Qn=this.Qn;var y=this.Sn;return a.Sn=he(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=he(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=he(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=he(y)&&typeof y.J=="function"?y.J():y,a},Mr.prototype.qb=function(a){a.classType===Mr&&(this.change=a)},Mr.prototype.toString=function(){var a="";return a=this.change===Bs?a+"* ":this.change===Er?a+(this.model!==null?"!m":"!d"):a+((this.model!==null?"!m":"!d")+this.change),this.propertyName&&typeof this.propertyName=="string"&&(a+=" "+this.propertyName),this.modelChange&&this.modelChange!==this.propertyName&&(a+=" "+this.modelChange),a+=": ",this.change===Bs?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=ki(this.object)),this.oldValue!==null&&(a+=" old: "+ki(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+ki(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},Mr.prototype.I=function(a){return a?this.oldValue:this.newValue},Mr.prototype.Dz=function(a){return a?this.oldParam:this.newParam},Mr.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},Mr.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},Mr.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},Mr.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},Vt.Object.defineProperties(Mr.prototype,{model:{get:function(){return this.cc},set:function(a){this.cc=a}},diagram:{get:function(){return this.H},set:function(a){this.H=a}},change:{get:function(){return this.Fm},set:function(a){this.Fm=a}},modelChange:{get:function(){return this.Qq},set:function(a){this.Qq=a}},propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},isTransactionFinished:{get:function(){return this.Fm===Bs&&(this.rf==="CommittedTransaction"||this.rf==="FinishedUndo"||this.rf==="FinishedRedo")}},object:{get:function(){return this.Qn},set:function(a){this.Qn=a}},oldValue:{get:function(){return this.Sn},set:function(a){this.Sn=a}},oldParam:{get:function(){return this.Rn},set:function(a){this.Rn=a}},newValue:{get:function(){return this.Mn},set:function(a){this.Mn=a}},newParam:{get:function(){return this.Ln},set:function(a){this.Ln=a}}}),Mr.prototype.redo=Mr.prototype.redo,Mr.prototype.canRedo=Mr.prototype.canRedo,Mr.prototype.undo=Mr.prototype.undo,Mr.prototype.canUndo=Mr.prototype.canUndo,Mr.prototype.getParam=Mr.prototype.Dz,Mr.prototype.getValue=Mr.prototype.I,Mr.prototype.clear=Mr.prototype.clear;var Bs=new sn(Mr,"Transaction",-1),Er=new sn(Mr,"Property",0),Ur=new sn(Mr,"Insert",1),na=new sn(Mr,"Remove",2);Mr.className="ChangedEvent",Mr.Transaction=Bs,Mr.Property=Er,Mr.Insert=Ur,Mr.Remove=na;function mr(){this.o=new Ln().freeze(),this.xa="",this.j=!1}mr.prototype.toString=function(a){var y="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(a!==void 0&&00&&st.prevInput=="\u200B"?Ro(gt,Va)(gt):Si++<10?dt.detectingSelectAll=setTimeout(Ti,500):(dt.selForContextMenu=null,dt.input.reset())};dt.detectingSelectAll=setTimeout(Ti,200)}}if(fe&&ve>=9&&On(),bt){Zo(it);var vi=function(){Rn(window,"mouseup",vi),setTimeout(In,20)};Ae(window,"mouseup",vi)}else setTimeout(In,50)},ns.prototype.readOnlyChanged=function(it){it||this.reset(),this.textarea.disabled=it=="nocursor",this.textarea.readOnly=!!it},ns.prototype.setUneditable=function(){},ns.prototype.needsContentAttribute=!1;function hp(it,st){if(st=st?Xn(st):{},st.value=it.value,!st.tabindex&&it.tabIndex&&(st.tabindex=it.tabIndex),!st.placeholder&&it.placeholder&&(st.placeholder=it.placeholder),st.autofocus==null){var gt=ge();st.autofocus=gt==it||it.getAttribute("autofocus")!=null&>==document.body}function dt(){it.value=Gt.getValue()}var mt;if(it.form&&(Ae(it.form,"submit",dt),!st.leaveSubmitMethodAlone)){var It=it.form;mt=It.submit;try{var Nt=It.submit=function(){dt(),It.submit=mt,It.submit(),It.submit=Nt}}catch(Ht){}}st.finishInit=function(Ht){Ht.save=dt,Ht.getTextArea=function(){return it},Ht.toTextArea=function(){Ht.toTextArea=isNaN,dt(),it.parentNode.removeChild(Ht.getWrapperElement()),it.style.display="",it.form&&(Rn(it.form,"submit",dt),!st.leaveSubmitMethodAlone&&typeof it.form.submit=="function"&&(it.form.submit=mt))}},it.style.display="none";var Gt=zr(function(Ht){return it.parentNode.insertBefore(Ht,it.nextSibling)},st);return Gt}function td(it){it.off=Rn,it.on=Ae,it.wheelEventPixels=ul,it.Doc=Ns,it.splitLines=le,it.countColumn=Fe,it.findColumn=jn,it.isWordChar=rn,it.Pass=Tn,it.signal=Pn,it.Line=po,it.changeEnd=Nu,it.scrollbarModel=fo,it.Pos=he,it.cmpPos=Pe,it.modes=Te,it.mimeModes=Re,it.resolveMode=en,it.getMode=te,it.modeExtensions=Yt,it.extendMode=Vt,it.copyState=Ve,it.startState=pn,it.innerMode=an,it.commands=Lh,it.keyMap=yl,it.keyName=np,it.isModifierKey=Yc,it.lookupKey=Ql,it.normalizeKeyMap=Mf,it.StringStream=We,it.SharedTextMarker=Tu,it.TextMarker=Ue,it.LineWidget=sh,it.e_preventDefault=Ji,it.e_stopPropagation=ro,it.e_stop=Zo,it.addClass=je,it.contains=Le,it.rmClass=Ut,it.keyNames=Ou}sp(zr),Bh(zr);var lh="iter insert remove copy getEditor constructor".split(" ");for(var zd in Ns.prototype)Ns.prototype.hasOwnProperty(zd)&&Ye(lh,zd)<0&&(zr.prototype[zd]=function(it){return function(){return it.apply(this.doc,arguments)}}(Ns.prototype[zd]));return Bi(Ns),zr.inputStyles={textarea:ns,contenteditable:oa},zr.defineMode=function(it){!zr.defaults.mode&&it!="null"&&(zr.defaults.mode=it),_e.apply(this,arguments)},zr.defineMIME=me,zr.defineMode("null",function(){return{token:function(it){return it.skipToEnd()}}}),zr.defineMIME("text/plain","null"),zr.defineExtension=function(it,st){zr.prototype[it]=st},zr.defineDocExtension=function(it,st){Ns.prototype[it]=st},zr.fromTextArea=hp,td(zr),zr.version="5.58.2",zr})},25419:function(un,Yn,St){(function(ot){ot(St(89780),St(15525),St(98101))})(function(ot){"use strict";ot.defineMode("markdown",function(Tt,ae){var $e=ot.getMode(Tt,"text/html"),fe=$e.name=="null";function ve(Fe){if(ot.findModeByName){var Zt=ot.findModeByName(Fe);Zt&&(Fe=Zt.mime||Zt.mimes[0])}var Ye=ot.getMode(Tt,Fe);return Ye.name=="null"?null:Ye}ae.highlightFormatting===void 0&&(ae.highlightFormatting=!1),ae.maxBlockquoteDepth===void 0&&(ae.maxBlockquoteDepth=0),ae.taskLists===void 0&&(ae.taskLists=!1),ae.strikethrough===void 0&&(ae.strikethrough=!1),ae.emoji===void 0&&(ae.emoji=!1),ae.fencedCodeBlockHighlighting===void 0&&(ae.fencedCodeBlockHighlighting=!0),ae.fencedCodeBlockDefaultMode===void 0&&(ae.fencedCodeBlockDefaultMode="text/plain"),ae.xml===void 0&&(ae.xml=!0),ae.tokenTypeOverrides===void 0&&(ae.tokenTypeOverrides={});var qt={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var Oe in qt)qt.hasOwnProperty(Oe)&&ae.tokenTypeOverrides[Oe]&&(qt[Oe]=ae.tokenTypeOverrides[Oe]);var de=/^([*\-_])(?:\s*\1){2,}\s*$/,Ce=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,xe=/^\[(x| )\](?=\s)/i,ze=ae.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,He=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Ft=/^[^#!\[\]*_\\<>` "'(~:]+/,nt=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,et=/^\s*\[[^\]]+?\]:.*$/,ct=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,ut=" ";function pt(Fe,Zt,Ye){return Zt.f=Zt.inline=Ye,Ye(Fe,Zt)}function yt(Fe,Zt,Ye){return Zt.f=Zt.block=Ye,Ye(Fe,Zt)}function Pt(Fe){return!Fe||!/\S/.test(Fe.string)}function bt(Fe){if(Fe.linkTitle=!1,Fe.linkHref=!1,Fe.linkText=!1,Fe.em=!1,Fe.strong=!1,Fe.strikethrough=!1,Fe.quote=0,Fe.indentedCode=!1,Fe.f==Ut){var Zt=fe;if(!Zt){var Ye=ot.innerMode($e,Fe.htmlState);Zt=Ye.mode.name=="xml"&&Ye.state.tagStart===null&&!Ye.state.context&&Ye.state.tokenize.isInText}Zt&&(Fe.f=Me,Fe.block=Rt,Fe.htmlState=null)}return Fe.trailingSpace=0,Fe.trailingSpaceNewLine=!1,Fe.prevLine=Fe.thisLine,Fe.thisLine={stream:null},null}function Rt(Fe,Zt){var Ye=Fe.column()===Zt.indentation,kn=Pt(Zt.prevLine.stream),Tn=Zt.indentedCode,Be=Zt.prevLine.hr,be=Zt.list!==!1,Ke=(Zt.listStack[Zt.listStack.length-1]||0)+3;Zt.indentedCode=!1;var jn=Zt.indentation;if(Zt.indentationDiff===null&&(Zt.indentationDiff=Zt.indentation,be)){for(Zt.list=null;jn=4&&(Tn||Zt.prevLine.fencedCodeEnd||Zt.prevLine.header||kn))return Fe.skipToEnd(),Zt.indentedCode=!0,qt.code;if(Fe.eatSpace())return null;if(Ye&&Zt.indentation<=Ke&&(oe=Fe.match(ze))&&oe[1].length<=6)return Zt.quote=0,Zt.header=oe[1].length,Zt.thisLine.header=!0,ae.highlightFormatting&&(Zt.formatting="header"),Zt.f=Zt.inline,re(Zt);if(Zt.indentation<=Ke&&Fe.eat(">"))return Zt.quote=Ye?1:Zt.quote+1,ae.highlightFormatting&&(Zt.formatting="quote"),Fe.eatSpace(),re(Zt);if(!An&&!Zt.setext&&Ye&&Zt.indentation<=Ke&&(oe=Fe.match(Ce))){var cn=oe[1]?"ol":"ul";return Zt.indentation=jn+Fe.current().length,Zt.list=!0,Zt.quote=0,Zt.listStack.push(Zt.indentation),Zt.em=!1,Zt.strong=!1,Zt.code=!1,Zt.strikethrough=!1,ae.taskLists&&Fe.match(xe,!1)&&(Zt.taskList=!0),Zt.f=Zt.inline,ae.highlightFormatting&&(Zt.formatting=["list","list-"+cn]),re(Zt)}else{if(Ye&&Zt.indentation<=Ke&&(oe=Fe.match(nt,!0)))return Zt.quote=0,Zt.fencedEndRE=new RegExp(oe[1]+"+ *$"),Zt.localMode=ae.fencedCodeBlockHighlighting&&ve(oe[2]||ae.fencedCodeBlockDefaultMode),Zt.localMode&&(Zt.localState=ot.startState(Zt.localMode)),Zt.f=Zt.block=ee,ae.highlightFormatting&&(Zt.formatting="code-block"),Zt.code=-1,re(Zt);if(Zt.setext||(!Wn||!be)&&!Zt.quote&&Zt.list===!1&&!Zt.code&&!An&&!et.test(Fe.string)&&(oe=Fe.lookAhead(1))&&(oe=oe.match(He)))return Zt.setext?(Zt.header=Zt.setext,Zt.setext=0,Fe.skipToEnd(),ae.highlightFormatting&&(Zt.formatting="header")):(Zt.header=oe[0].charAt(0)=="="?1:2,Zt.setext=Zt.header),Zt.thisLine.header=!0,Zt.f=Zt.inline,re(Zt);if(An)return Fe.skipToEnd(),Zt.hr=!0,Zt.thisLine.hr=!0,qt.hr;if(Fe.peek()==="[")return pt(Fe,Zt,Je)}return pt(Fe,Zt,Zt.inline)}function Ut(Fe,Zt){var Ye=$e.token(Fe,Zt.htmlState);if(!fe){var kn=ot.innerMode($e,Zt.htmlState);(kn.mode.name=="xml"&&kn.state.tagStart===null&&!kn.state.context&&kn.state.tokenize.isInText||Zt.md_inside&&Fe.current().indexOf(">")>-1)&&(Zt.f=Me,Zt.block=Rt,Zt.htmlState=null)}return Ye}function ee(Fe,Zt){var Ye=Zt.listStack[Zt.listStack.length-1]||0,kn=Zt.indentation=Fe.quote?Zt.push(qt.formatting+"-"+Fe.formatting[Ye]+"-"+Fe.quote):Zt.push("error"))}if(Fe.taskOpen)return Zt.push("meta"),Zt.length?Zt.join(" "):null;if(Fe.taskClosed)return Zt.push("property"),Zt.length?Zt.join(" "):null;if(Fe.linkHref?Zt.push(qt.linkHref,"url"):(Fe.strong&&Zt.push(qt.strong),Fe.em&&Zt.push(qt.em),Fe.strikethrough&&Zt.push(qt.strikethrough),Fe.emoji&&Zt.push(qt.emoji),Fe.linkText&&Zt.push(qt.linkText),Fe.code&&Zt.push(qt.code),Fe.image&&Zt.push(qt.image),Fe.imageAltText&&Zt.push(qt.imageAltText,"link"),Fe.imageMarker&&Zt.push(qt.imageMarker)),Fe.header&&Zt.push(qt.header,qt.header+"-"+Fe.header),Fe.quote&&(Zt.push(qt.quote),!ae.maxBlockquoteDepth||ae.maxBlockquoteDepth>=Fe.quote?Zt.push(qt.quote+"-"+Fe.quote):Zt.push(qt.quote+"-"+ae.maxBlockquoteDepth)),Fe.list!==!1){var kn=(Fe.listStack.length-1)%3;kn?kn===1?Zt.push(qt.list2):Zt.push(qt.list3):Zt.push(qt.list1)}return Fe.trailingSpaceNewLine?Zt.push("trailing-space-new-line"):Fe.trailingSpace&&Zt.push("trailing-space-"+(Fe.trailingSpace%2?"a":"b")),Zt.length?Zt.join(" "):null}function ie(Fe,Zt){if(Fe.match(Ft,!0))return re(Zt)}function Me(Fe,Zt){var Ye=Zt.text(Fe,Zt);if(typeof Ye!="undefined")return Ye;if(Zt.list)return Zt.list=null,re(Zt);if(Zt.taskList){var kn=Fe.match(xe,!0)[1]===" ";return kn?Zt.taskOpen=!0:Zt.taskClosed=!0,ae.highlightFormatting&&(Zt.formatting="task"),Zt.taskList=!1,re(Zt)}if(Zt.taskOpen=!1,Zt.taskClosed=!1,Zt.header&&Fe.match(/^#+$/,!0))return ae.highlightFormatting&&(Zt.formatting="header"),re(Zt);var Tn=Fe.next();if(Zt.linkTitle){Zt.linkTitle=!1;var Be=Tn;Tn==="("&&(Be=")"),Be=(Be+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var be="^\\s*(?:[^"+Be+"\\\\]+|\\\\\\\\|\\\\.)"+Be;if(Fe.match(new RegExp(be),!0))return qt.linkHref}if(Tn==="`"){var Ke=Zt.formatting;ae.highlightFormatting&&(Zt.formatting="code"),Fe.eatWhile("`");var jn=Fe.current().length;if(Zt.code==0&&(!Zt.quote||jn==1))return Zt.code=jn,re(Zt);if(jn==Zt.code){var Wn=re(Zt);return Zt.code=0,Wn}else return Zt.formatting=Ke,re(Zt)}else if(Zt.code)return re(Zt);if(Tn==="\\"&&(Fe.next(),ae.highlightFormatting)){var An=re(Zt),oe=qt.formatting+"-escape";return An?An+" "+oe:oe}if(Tn==="!"&&Fe.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Zt.imageMarker=!0,Zt.image=!0,ae.highlightFormatting&&(Zt.formatting="image"),re(Zt);if(Tn==="["&&Zt.imageMarker&&Fe.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Zt.imageMarker=!1,Zt.imageAltText=!0,ae.highlightFormatting&&(Zt.formatting="image"),re(Zt);if(Tn==="]"&&Zt.imageAltText){ae.highlightFormatting&&(Zt.formatting="image");var An=re(Zt);return Zt.imageAltText=!1,Zt.image=!1,Zt.inline=Zt.f=Le,An}if(Tn==="["&&!Zt.image)return Zt.linkText&&Fe.match(/^.*?\]/)||(Zt.linkText=!0,ae.highlightFormatting&&(Zt.formatting="link")),re(Zt);if(Tn==="]"&&Zt.linkText){ae.highlightFormatting&&(Zt.formatting="link");var An=re(Zt);return Zt.linkText=!1,Zt.inline=Zt.f=Fe.match(/\(.*?\)| ?\[.*?\]/,!1)?Le:Me,An}if(Tn==="<"&&Fe.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Zt.f=Zt.inline=pe,ae.highlightFormatting&&(Zt.formatting="link");var An=re(Zt);return An?An+=" ":An="",An+qt.linkInline}if(Tn==="<"&&Fe.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Zt.f=Zt.inline=pe,ae.highlightFormatting&&(Zt.formatting="link");var An=re(Zt);return An?An+=" ":An="",An+qt.linkEmail}if(ae.xml&&Tn==="<"&&Fe.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var cn=Fe.string.indexOf(">",Fe.pos);if(cn!=-1){var wn=Fe.string.substring(Fe.start,cn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(wn)&&(Zt.md_inside=!0)}return Fe.backUp(1),Zt.htmlState=ot.startState($e),yt(Fe,Zt,Ut)}if(ae.xml&&Tn==="<"&&Fe.match(/^\/\w*?>/))return Zt.md_inside=!1,"tag";if(Tn==="*"||Tn==="_"){for(var Fn=1,mn=Fe.pos==1?" ":Fe.string.charAt(Fe.pos-2);Fn<3&&Fe.eat(Tn);)Fn++;var Dn=Fe.peek()||" ",rn=!/\s/.test(Dn)&&(!ct.test(Dn)||/\s/.test(mn)||ct.test(mn)),ce=!/\s/.test(mn)&&(!ct.test(mn)||/\s/.test(Dn)||ct.test(Dn)),Kt=null,we=null;if(Fn%2&&(!Zt.em&&rn&&(Tn==="*"||!ce||ct.test(mn))?Kt=!0:Zt.em==Tn&&ce&&(Tn==="*"||!rn||ct.test(Dn))&&(Kt=!1)),Fn>1&&(!Zt.strong&&rn&&(Tn==="*"||!ce||ct.test(mn))?we=!0:Zt.strong==Tn&&ce&&(Tn==="*"||!rn||ct.test(Dn))&&(we=!1)),we!=null||Kt!=null){ae.highlightFormatting&&(Zt.formatting=Kt==null?"strong":we==null?"em":"strong em"),Kt===!0&&(Zt.em=Tn),we===!0&&(Zt.strong=Tn);var Wn=re(Zt);return Kt===!1&&(Zt.em=!1),we===!1&&(Zt.strong=!1),Wn}}else if(Tn===" "&&(Fe.eat("*")||Fe.eat("_"))){if(Fe.peek()===" ")return re(Zt);Fe.backUp(1)}if(ae.strikethrough){if(Tn==="~"&&Fe.eatWhile(Tn)){if(Zt.strikethrough){ae.highlightFormatting&&(Zt.formatting="strikethrough");var Wn=re(Zt);return Zt.strikethrough=!1,Wn}else if(Fe.match(/^[^\s]/,!1))return Zt.strikethrough=!0,ae.highlightFormatting&&(Zt.formatting="strikethrough"),re(Zt)}else if(Tn===" "&&Fe.match(/^~~/,!0)){if(Fe.peek()===" ")return re(Zt);Fe.backUp(2)}}if(ae.emoji&&Tn===":"&&Fe.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Zt.emoji=!0,ae.highlightFormatting&&(Zt.formatting="emoji");var Ee=re(Zt);return Zt.emoji=!1,Ee}return Tn===" "&&(Fe.match(/^ +$/,!1)?Zt.trailingSpace++:Zt.trailingSpace&&(Zt.trailingSpaceNewLine=!0)),re(Zt)}function pe(Fe,Zt){var Ye=Fe.next();if(Ye===">"){Zt.f=Zt.inline=Me,ae.highlightFormatting&&(Zt.formatting="link");var kn=re(Zt);return kn?kn+=" ":kn="",kn+qt.linkInline}return Fe.match(/^[^>]+/,!0),qt.linkInline}function Le(Fe,Zt){if(Fe.eatSpace())return null;var Ye=Fe.next();return Ye==="("||Ye==="["?(Zt.f=Zt.inline=je(Ye==="("?")":"]"),ae.highlightFormatting&&(Zt.formatting="link-string"),Zt.linkHref=!0,re(Zt)):"error"}var ge={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function je(Fe){return function(Zt,Ye){var kn=Zt.next();if(kn===Fe){Ye.f=Ye.inline=Me,ae.highlightFormatting&&(Ye.formatting="link-string");var Tn=re(Ye);return Ye.linkHref=!1,Tn}return Zt.match(ge[Fe]),Ye.linkHref=!0,re(Ye)}}function Je(Fe,Zt){return Fe.match(/^([^\]\\]|\\.)*\]:/,!1)?(Zt.f=Cn,Fe.next(),ae.highlightFormatting&&(Zt.formatting="link"),Zt.linkText=!0,re(Zt)):pt(Fe,Zt,Me)}function Cn(Fe,Zt){if(Fe.match(/^\]:/,!0)){Zt.f=Zt.inline=hn,ae.highlightFormatting&&(Zt.formatting="link");var Ye=re(Zt);return Zt.linkText=!1,Ye}return Fe.match(/^([^\]\\]|\\.)+/,!0),qt.linkText}function hn(Fe,Zt){return Fe.eatSpace()?null:(Fe.match(/^[^\s]+/,!0),Fe.peek()===void 0?Zt.linkTitle=!0:Fe.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Zt.f=Zt.inline=Me,qt.linkHref+" url")}var Xn={startState:function(){return{f:Rt,prevLine:{stream:null},thisLine:{stream:null},block:Rt,htmlState:null,indentation:0,inline:Me,text:ie,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(Fe){return{f:Fe.f,prevLine:Fe.prevLine,thisLine:Fe.thisLine,block:Fe.block,htmlState:Fe.htmlState&&ot.copyState($e,Fe.htmlState),indentation:Fe.indentation,localMode:Fe.localMode,localState:Fe.localMode?ot.copyState(Fe.localMode,Fe.localState):null,inline:Fe.inline,text:Fe.text,formatting:!1,linkText:Fe.linkText,linkTitle:Fe.linkTitle,linkHref:Fe.linkHref,code:Fe.code,em:Fe.em,strong:Fe.strong,strikethrough:Fe.strikethrough,emoji:Fe.emoji,header:Fe.header,setext:Fe.setext,hr:Fe.hr,taskList:Fe.taskList,list:Fe.list,listStack:Fe.listStack.slice(0),quote:Fe.quote,indentedCode:Fe.indentedCode,trailingSpace:Fe.trailingSpace,trailingSpaceNewLine:Fe.trailingSpaceNewLine,md_inside:Fe.md_inside,fencedEndRE:Fe.fencedEndRE}},token:function(Fe,Zt){if(Zt.formatting=!1,Fe!=Zt.thisLine.stream){if(Zt.header=0,Zt.hr=!1,Fe.match(/^\s*$/,!0))return bt(Zt),null;if(Zt.prevLine=Zt.thisLine,Zt.thisLine={stream:Fe},Zt.taskList=!1,Zt.trailingSpace=0,Zt.trailingSpaceNewLine=!1,!Zt.localState&&(Zt.f=Zt.block,Zt.f!=Ut)){var Ye=Fe.match(/^\s*/,!0)[0].replace(/\t/g,ut).length;if(Zt.indentation=Ye,Zt.indentationDiff=null,Ye>0)return null}}return Zt.f(Fe,Zt)},innerMode:function(Fe){return Fe.block==Ut?{state:Fe.htmlState,mode:$e}:Fe.localState?{state:Fe.localState,mode:Fe.localMode}:{state:Fe,mode:Xn}},indent:function(Fe,Zt,Ye){return Fe.block==Ut&&$e.indent?$e.indent(Fe.htmlState,Zt,Ye):Fe.localState&&Fe.localMode.indent?Fe.localMode.indent(Fe.localState,Zt,Ye):ot.Pass},blankLine:bt,getType:re,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Xn},"xml"),ot.defineMIME("text/markdown","markdown"),ot.defineMIME("text/x-markdown","markdown")})},98101:function(un,Yn,St){(function(ot){ot(St(89780))})(function(ot){"use strict";ot.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var Tt=0;Tt-1&&$e.substring(qt+1,$e.length);if(Oe)return ot.findModeByExtension(Oe)},ot.findModeByName=function($e){$e=$e.toLowerCase();for(var fe=0;fe0?Ft.cmdState[Ft.cmdState.length-1]:null}function ve(Ft){var nt=Ft.cmdState.pop();nt&&nt.closeBracket()}function qt(Ft){for(var nt=Ft.cmdState,et=nt.length-1;et>=0;et--){var ct=nt[et];if(ct.name!="DEFAULT")return ct}return{styleIdentifier:function(){return null}}}function Oe(Ft,nt,et){return function(){this.name=Ft,this.bracketNo=0,this.style=nt,this.styles=et,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var de={};de.importmodule=Oe("importmodule","tag",["string","builtin"]),de.documentclass=Oe("documentclass","tag",["","atom"]),de.usepackage=Oe("usepackage","tag",["atom"]),de.begin=Oe("begin","tag",["atom"]),de.end=Oe("end","tag",["atom"]),de.label=Oe("label","tag",["atom"]),de.ref=Oe("ref","tag",["atom"]),de.eqref=Oe("eqref","tag",["atom"]),de.cite=Oe("cite","tag",["atom"]),de.bibitem=Oe("bibitem","tag",["atom"]),de.Bibitem=Oe("Bibitem","tag",["atom"]),de.RBibitem=Oe("RBibitem","tag",["atom"]),de.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Ce(Ft,nt){Ft.f=nt}function xe(Ft,nt){var et;if(Ft.match(/^\\[a-zA-Z@]+/)){var ct=Ft.current().slice(1);return et=de.hasOwnProperty(ct)?de[ct]:de.DEFAULT,et=new et,$e(nt,et),Ce(nt,He),et.style}if(Ft.match(/^\\[$&%#{}_]/)||Ft.match(/^\\[,;!\/\\]/))return"tag";if(Ft.match("\\["))return Ce(nt,function(pt,yt){return ze(pt,yt,"\\]")}),"keyword";if(Ft.match("\\("))return Ce(nt,function(pt,yt){return ze(pt,yt,"\\)")}),"keyword";if(Ft.match("$$"))return Ce(nt,function(pt,yt){return ze(pt,yt,"$$")}),"keyword";if(Ft.match("$"))return Ce(nt,function(pt,yt){return ze(pt,yt,"$")}),"keyword";var ut=Ft.next();if(ut=="%")return Ft.skipToEnd(),"comment";if(ut=="}"||ut=="]"){if(et=fe(nt),et)et.closeBracket(ut),Ce(nt,He);else return"error";return"bracket"}else return ut=="{"||ut=="["?(et=de.DEFAULT,et=new et,$e(nt,et),"bracket"):/\d/.test(ut)?(Ft.eatWhile(/[\w.%]/),"atom"):(Ft.eatWhile(/[\w\-_]/),et=qt(nt),et.name=="begin"&&(et.argument=Ft.current()),et.styleIdentifier())}function ze(Ft,nt,et){if(Ft.eatSpace())return null;if(et&&Ft.match(et))return Ce(nt,xe),"keyword";if(Ft.match(/^\\[a-zA-Z@]+/))return"tag";if(Ft.match(/^[a-zA-Z]+/))return"variable-2";if(Ft.match(/^\\[$&%#{}_]/)||Ft.match(/^\\[,;!\/]/)||Ft.match(/^[\^_&]/))return"tag";if(Ft.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Ft.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ct=Ft.next();return ct=="{"||ct=="}"||ct=="["||ct=="]"||ct=="("||ct==")"?"bracket":ct=="%"?(Ft.skipToEnd(),"comment"):"error"}function He(Ft,nt){var et=Ft.peek(),ct;return et=="{"||et=="["?(ct=fe(nt),ct.openBracket(et),Ft.eat(et),Ce(nt,xe),"bracket"):/[ \t\r]/.test(et)?(Ft.eat(et),null):(Ce(nt,xe),ve(nt),xe(Ft,nt))}return{startState:function(){var Ft=ae.inMathMode?function(nt,et){return ze(nt,et)}:xe;return{cmdState:[],f:Ft}},copyState:function(Ft){return{cmdState:Ft.cmdState.slice(),f:Ft.f}},token:function(Ft,nt){return nt.f(Ft,nt)},blankLine:function(Ft){Ft.f=xe,Ft.cmdState.length=0},lineComment:"%"}}),ot.defineMIME("text/x-stex","stex"),ot.defineMIME("text/x-latex","stex")})},15525:function(un,Yn,St){(function(ot){ot(St(89780))})(function(ot){"use strict";var Tt={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},ae={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ot.defineMode("xml",function($e,fe){var ve=$e.indentUnit,qt={},Oe=fe.htmlMode?Tt:ae;for(var de in Oe)qt[de]=Oe[de];for(var de in fe)qt[de]=fe[de];var Ce,xe;function ze(pe,Le){function ge(Cn){return Le.tokenize=Cn,Cn(pe,Le)}var je=pe.next();if(je=="<")return pe.eat("!")?pe.eat("[")?pe.match("CDATA[")?ge(nt("atom","]]>")):null:pe.match("--")?ge(nt("comment","-->")):pe.match("DOCTYPE",!0,!0)?(pe.eatWhile(/[\w\._\-]/),ge(et(1))):null:pe.eat("?")?(pe.eatWhile(/[\w\._\-]/),Le.tokenize=nt("meta","?>"),"meta"):(Ce=pe.eat("/")?"closeTag":"openTag",Le.tokenize=He,"tag bracket");if(je=="&"){var Je;return pe.eat("#")?pe.eat("x")?Je=pe.eatWhile(/[a-fA-F\d]/)&&pe.eat(";"):Je=pe.eatWhile(/[\d]/)&&pe.eat(";"):Je=pe.eatWhile(/[\w\.\-:]/)&&pe.eat(";"),Je?"atom":"error"}else return pe.eatWhile(/[^&<]/),null}ze.isInText=!0;function He(pe,Le){var ge=pe.next();if(ge==">"||ge=="/"&&pe.eat(">"))return Le.tokenize=ze,Ce=ge==">"?"endTag":"selfcloseTag","tag bracket";if(ge=="=")return Ce="equals",null;if(ge=="<"){Le.tokenize=ze,Le.state=yt,Le.tagName=Le.tagStart=null;var je=Le.tokenize(pe,Le);return je?je+" tag error":"tag error"}else return/[\'\"]/.test(ge)?(Le.tokenize=Ft(ge),Le.stringStartCol=pe.column(),Le.tokenize(pe,Le)):(pe.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ft(pe){var Le=function(ge,je){for(;!ge.eol();)if(ge.next()==pe){je.tokenize=He;break}return"string"};return Le.isInAttribute=!0,Le}function nt(pe,Le){return function(ge,je){for(;!ge.eol();){if(ge.match(Le)){je.tokenize=ze;break}ge.next()}return pe}}function et(pe){return function(Le,ge){for(var je;(je=Le.next())!=null;){if(je=="<")return ge.tokenize=et(pe+1),ge.tokenize(Le,ge);if(je==">")if(pe==1){ge.tokenize=ze;break}else return ge.tokenize=et(pe-1),ge.tokenize(Le,ge)}return"meta"}}function ct(pe,Le,ge){this.prev=pe.context,this.tagName=Le,this.indent=pe.indented,this.startOfLine=ge,(qt.doNotIndent.hasOwnProperty(Le)||pe.context&&pe.context.noIndent)&&(this.noIndent=!0)}function ut(pe){pe.context&&(pe.context=pe.context.prev)}function pt(pe,Le){for(var ge;;){if(!pe.context||(ge=pe.context.tagName,!qt.contextGrabbers.hasOwnProperty(ge)||!qt.contextGrabbers[ge].hasOwnProperty(Le)))return;ut(pe)}}function yt(pe,Le,ge){return pe=="openTag"?(ge.tagStart=Le.column(),Pt):pe=="closeTag"?bt:yt}function Pt(pe,Le,ge){return pe=="word"?(ge.tagName=Le.current(),xe="tag",ee):qt.allowMissingTagName&&pe=="endTag"?(xe="tag bracket",ee(pe,Le,ge)):(xe="error",Pt)}function bt(pe,Le,ge){if(pe=="word"){var je=Le.current();return ge.context&&ge.context.tagName!=je&&qt.implicitlyClosed.hasOwnProperty(ge.context.tagName)&&ut(ge),ge.context&&ge.context.tagName==je||qt.matchClosing===!1?(xe="tag",Rt):(xe="tag error",Ut)}else return qt.allowMissingTagName&&pe=="endTag"?(xe="tag bracket",Rt(pe,Le,ge)):(xe="error",Ut)}function Rt(pe,Le,ge){return pe!="endTag"?(xe="error",Rt):(ut(ge),yt)}function Ut(pe,Le,ge){return xe="error",Rt(pe,Le,ge)}function ee(pe,Le,ge){if(pe=="word")return xe="attribute",re;if(pe=="endTag"||pe=="selfcloseTag"){var je=ge.tagName,Je=ge.tagStart;return ge.tagName=ge.tagStart=null,pe=="selfcloseTag"||qt.autoSelfClosers.hasOwnProperty(je)?pt(ge,je):(pt(ge,je),ge.context=new ct(ge,je,Je==ge.indented)),yt}return xe="error",ee}function re(pe,Le,ge){return pe=="equals"?ie:(qt.allowMissing||(xe="error"),ee(pe,Le,ge))}function ie(pe,Le,ge){return pe=="string"?Me:pe=="word"&&qt.allowUnquoted?(xe="string",ee):(xe="error",ee(pe,Le,ge))}function Me(pe,Le,ge){return pe=="string"?Me:ee(pe,Le,ge)}return{startState:function(pe){var Le={tokenize:ze,state:yt,indented:pe||0,tagName:null,tagStart:null,context:null};return pe!=null&&(Le.baseIndent=pe),Le},token:function(pe,Le){if(!Le.tagName&&pe.sol()&&(Le.indented=pe.indentation()),pe.eatSpace())return null;Ce=null;var ge=Le.tokenize(pe,Le);return(ge||Ce)&&ge!="comment"&&(xe=null,Le.state=Le.state(Ce||ge,pe,Le),xe&&(ge=xe=="error"?ge+" error":xe)),ge},indent:function(pe,Le,ge){var je=pe.context;if(pe.tokenize.isInAttribute)return pe.tagStart==pe.indented?pe.stringStartCol+1:pe.indented+ve;if(je&&je.noIndent)return ot.Pass;if(pe.tokenize!=He&&pe.tokenize!=ze)return ge?ge.match(/^(\s*)/)[0].length:0;if(pe.tagName)return qt.multilineTagIndentPastTag!==!1?pe.tagStart+pe.tagName.length+2:pe.tagStart+ve*(qt.multilineTagIndentFactor||1);if(qt.alignCDATA&&/$/,blockCommentStart:"",configuration:qt.htmlMode?"html":"xml",helperType:qt.htmlMode?"html":"xml",skipAttribute:function(pe){pe.state==ie&&(pe.state=ee)},xmlCurrentTag:function(pe){return pe.tagName?{name:pe.tagName,close:pe.type=="closeTag"}:null},xmlCurrentContext:function(pe){for(var Le=[],ge=pe.context;ge;ge=ge.prev)ge.tagName&&Le.push(ge.tagName);return Le.reverse()}}}),ot.defineMIME("text/xml","xml"),ot.defineMIME("application/xml","xml"),ot.mimeModes.hasOwnProperty("text/html")||ot.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(un,Yn,St){"use strict";St.d(Yn,{$u:function(){return de},BD:function(){return Fn},E9:function(){return Oe},FF:function(){return tn},FJ:function(){return yt},Hn:function(){return pt},KX:function(){return bt},NB:function(){return Dt},S0:function(){return oe},UL:function(){return Ce},Vk:function(){return ut},Vm:function(){return At},YI:function(){return cn},ZA:function(){return ae},Zt:function(){return xe},al:function(){return Kt},bn:function(){return ce},bx:function(){return mn},g2:function(){return wn},h1:function(){return ie},hD:function(){return Bi},l4:function(){return ve},rU:function(){return wt},s_:function(){return Dn},uz:function(){return ln},z6:function(){return ze}}),un=St.hmd(un),function(){var Ct;function vn(a){var y=0;return function(){return yx&&(x=Math.max(0,b+x)),(E==null||E>b)&&(E=b),E=Number(E),0>E&&(E=Math.max(0,b+E)),x=Number(x||0);x=a.length?a.push(x):a.splice(y,0,x):Xt("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function oi(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):Xt("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function ii(){var a=io.pop();return a===void 0?[]:a}function Bn(a){a.length=0,io.push(a)}function Kn(a){if(typeof a=="function"){if(a.className)return a.className;if(a.name)return a.name;var y=a.toString();if(y=y.substring(9,y.indexOf("(")).trim(),y!=="")return a._className=y}else if(he(a)&&a.constructor)return Kn(a.constructor);return typeof a}function ki(a){var y=a;return he(a)&&(a.text?y=a.text:a.name?y=a.name:a.key!==void 0?y=a.key:a.id!==void 0?y=a.id:a.constructor===Object&&(a.Text?y=a.Text:a.Name?y=a.Name:a.Key!==void 0?y=a.Key:a.Id!==void 0?y=a.Id:a.ID!==void 0&&(y=a.ID))),y===void 0?"undefined":y===null?"null":y.toString()}function bi(a,y){if(a.hasOwnProperty(y))return!0;for(a=Object.getPrototypeOf(a);a&&a!==Function;){if(a.hasOwnProperty(y))return!0;var x=a.CA;if(x&&x[y])return!0;a=Object.getPrototypeOf(a)}return!1}function Hi(a,y,x){Object.defineProperty(yr.prototype,a,{get:y,set:x})}function yn(a){for(var y=[],x=0;256>x;x++)y["0123456789abcdef".charAt(x>>4)+"0123456789abcdef".charAt(x&15)]=String.fromCharCode(x);a.length%2&&(a="0"+a),x=[];for(var E=0,b=0;bx;x++)y[x]=x;for(x=E=0;256>x;x++)E=(E+y[x]+119)%256,b=y[x],y[x]=y[E],y[E]=b;E=x=0;for(var z="",tt=0;tt-1||z.indexOf("\xA9 1998-2021 Northwoods Software")>-1||z.indexOf("Not for distribution or production use")>-1||z.indexOf("gojs.net")>-1?"":z}var uo=We.navigator!==void 0&&0this.key)return!1;a=a.s;var y=a.length,x=++this.Za,E=this.qf;if(E!==null)for(;xthis.key)return!1;var y=--this.Za;return 0<=y?(this.key=y,this.value=a.s[y],!0):(this.de(),!1)},Ki.prototype.Ad=function(){return this.next()},Ki.prototype.first=function(){var a=this.Bb;this.qa=a.Ja;var y=a.s;return this.Za=a=y.length-1,0<=a?(y=y[a],this.key=a,this.value=y):null},Ki.prototype.any=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(a(y[x]))return!0;return!1},Ki.prototype.all=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(!a(y[x]))return!1;return!0},Ki.prototype.each=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)a(y[x]);return this},Ki.prototype.map=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--)x.push(a(y[E]));return a=new Ln,a.s=x,a.xb(),a.iterator},Ki.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--){var b=y[E];a(b)&&x.push(b)}return a=new Ln,a.s=x,a.xb(),a.iterator},Ki.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Ki.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},Vt.Object.defineProperties(Ki.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Ki.prototype.first=Ki.prototype.first,Ki.prototype.hasNext=Ki.prototype.Ad,Ki.prototype.next=Ki.prototype.next,Ki.prototype.reset=Ki.prototype.reset,Ki.className="ListIteratorBackwards";function Ln(a){ao(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&Xt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ct=Ln.prototype,Ct.xb=function(){var a=this.Ja;a++,999999999a||a>=y.length)&&De(a,"0 <= i < length",Ln,"elt:i"),y[a]},Ct.get=function(a){return this.M(a)},Ct.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&De(a,"0 <= i < length",Ln,"setElt:i"),this._isFrozen&&dn(this,a),x[a]=y},Ct.set=function(a,y){this.cd(a,y)},Ct.first=function(){var a=this.s;return a.length===0?null:a[0]},Ct.jc=function(){var a=this.s,y=a.length;return 0a&&De(a,">= 0",Ln,"insertAt:i"),this._isFrozen&&dn(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Ct.remove=function(a){if(a===null)return!1;this._isFrozen&&dn(this,a);var y=this.s;return a=y.indexOf(a),a===-1?!1:(a===y.length-1?y.pop():y.splice(a,1),this.xb(),!0)},Ct.delete=function(a){return this.remove(a)},Ct.mb=function(a){var y=this.s;(0>a||a>=y.length)&&De(a,"0 <= i < length",Ln,"removeAt:i"),this._isFrozen&&dn(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Ct.removeRange=function(a,y){var x=this.s,E=x.length;if(0>a)a=0;else if(a>=E)return this;if(0>y)return this;if(y>=E&&(y=E-1),a>y)return this;this._isFrozen&&dn(this);for(var b=a,z=y+1;z=z)return this;if((0>y||y>=b-1)&&De(y,"0 <= from < length",Ln,"sortRange:from"),z===2)return x=E[y],b=E[y+1],0=b)E.sort(a);else for(y=E.slice(0,x),y.sort(a),a=0;a=b)for(x=E.slice(y),x.sort(a),a=y;a=this.s.length)return so;var a=this.Sa;return a!==null?(a.reset(),a):new Ei(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return so;var a=this.Hg;return a!==null?(a.reset(),a):new Ki(this)}}}),Ln.prototype.reverse=Ln.prototype.reverse,Ln.prototype.sortRange=Ln.prototype.zi,Ln.prototype.sort=Ln.prototype.sort,Ln.prototype.toSet=Ln.prototype.Iv,Ln.prototype.toArray=Ln.prototype.Fa,Ln.prototype.removeRange=Ln.prototype.removeRange,Ln.prototype.removeAt=Ln.prototype.mb,Ln.prototype.delete=Ln.prototype.delete,Ln.prototype.remove=Ln.prototype.remove,Ln.prototype.insertAt=Ln.prototype.Gb,Ln.prototype.pop=Ln.prototype.pop,Ln.prototype.last=Ln.prototype.jc,Ln.prototype.first=Ln.prototype.first,Ln.prototype.set=Ln.prototype.set,Ln.prototype.setElt=Ln.prototype.cd,Ln.prototype.get=Ln.prototype.get,Ln.prototype.elt=Ln.prototype.M,Ln.prototype.indexOf=Ln.prototype.indexOf,Ln.prototype.has=Ln.prototype.has,Ln.prototype.contains=Ln.prototype.contains,Ln.prototype.clear=Ln.prototype.clear,Ln.prototype.addAll=Ln.prototype.addAll,Ln.prototype.push=Ln.prototype.push,Ln.prototype.add=Ln.prototype.add,Ln.prototype.thaw=Ln.prototype.ka,Ln.prototype.freeze=Ln.prototype.freeze,Ln.className="List";function ho(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}ho.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},ho.prototype.next=function(){var a=this.eg;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},ho.prototype.Ad=function(){return this.next()},ho.prototype.first=function(){var a=this.eg;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},ho.prototype.any=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},ho.prototype.all=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},ho.prototype.each=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},ho.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new Ln;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},ho.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new Ln;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},ho.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},ho.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},Vt.Object.defineProperties(ho.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),ho.prototype.first=ho.prototype.first,ho.prototype.hasNext=ho.prototype.Ad,ho.prototype.next=ho.prototype.next,ho.prototype.reset=ho.prototype.reset,ho.className="SetIterator";function bn(a){ao(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&Xt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ct=bn.prototype,Ct.xb=function(){var a=this.Ja;a++,999999999=this.Sb)return so;var a=this.Sa;return a!==null?(a.reset(),a):new ho(this)}}}),bn.prototype.toList=bn.prototype.Hv,bn.prototype.toArray=bn.prototype.Fa,bn.prototype.clear=bn.prototype.clear,bn.prototype.retainAll=bn.prototype.pA,bn.prototype.removeAll=bn.prototype.hp,bn.prototype.delete=bn.prototype.delete,bn.prototype.remove=bn.prototype.remove,bn.prototype.first=bn.prototype.first,bn.prototype.containsAny=bn.prototype.Ty,bn.prototype.containsAll=bn.prototype.Sy,bn.prototype.has=bn.prototype.has,bn.prototype.contains=bn.prototype.contains,bn.prototype.addAll=bn.prototype.addAll,bn.prototype.add=bn.prototype.add,bn.prototype.thaw=bn.prototype.ka,bn.prototype.freeze=bn.prototype.freeze;var Uo=1;bn.className="Set",bn.uniqueHash=ao,bn.hashIdUnique=Mo,bn.hashId=Ao;function So(a){this.ma=a,this.qa=a.Ja,this.sa=null}So.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},So.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=this.key=a=y.key,!0):(this.de(),!1)},So.prototype.Ad=function(){return this.next()},So.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.value=this.key=a=a.key):null},So.prototype.any=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},So.prototype.all=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},So.prototype.each=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;)a(y.key),y=y.va;return this},So.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new Ln;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},So.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new Ln;for(y=y.ea;y!==null;){var E=y.key;a(E)&&x.add(E),y=y.va}return x.iterator},So.prototype.de=function(){this.value=this.key=null,this.qa=-1},So.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},Vt.Object.defineProperties(So.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),So.prototype.first=So.prototype.first,So.prototype.hasNext=So.prototype.Ad,So.prototype.next=So.prototype.next,So.prototype.reset=So.prototype.reset,So.className="MapKeySetIterator";function di(a){bn.call(this),ao(this),this._isFrozen=!0,this.ma=a}Yt(di,bn),Ct=di.prototype,Ct.freeze=function(){return this},Ct.ka=function(){return this},Ct.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Ct.add=function(){Xt("This Set is read-only: "+this.toString())},Ct.contains=function(a){return this.ma.contains(a)},Ct.has=function(a){return this.contains(a)},Ct.remove=function(){Xt("This Set is read-only: "+this.toString())},Ct.delete=function(a){return this.remove(a)},Ct.clear=function(){Xt("This Set is read-only: "+this.toString())},Ct.first=function(){var a=this.ma.ea;return a!==null?a.key:null},di.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},di.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},di.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},di.prototype.map=function(a){for(var y=new bn,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},di.prototype.filter=function(a){for(var y=new bn,x=this.ma.ea;x!==null;){var E=x.key;a(E)&&y.add(E),x=x.va}return y},di.prototype.copy=function(){return new di(this.ma)},di.prototype.Iv=function(){var a=new bn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},di.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),x=0,E;for(E in a)y[x]=a[E].key,x++;return y},di.prototype.Hv=function(){var a=new Ln,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Vt.Object.defineProperties(di.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?so:new So(this.ma)}}}),di.prototype.toList=di.prototype.Hv,di.prototype.toArray=di.prototype.Fa,di.prototype.toSet=di.prototype.Iv,di.prototype.first=di.prototype.first,di.prototype.clear=di.prototype.clear,di.prototype.delete=di.prototype.delete,di.prototype.remove=di.prototype.remove,di.prototype.has=di.prototype.has,di.prototype.contains=di.prototype.contains,di.prototype.add=di.prototype.add,di.prototype.thaw=di.prototype.ka,di.prototype.freeze=di.prototype.freeze,di.className="MapKeySet";function _i(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}_i.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},_i.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},_i.prototype.Ad=function(){return this.next()},_i.prototype.first=function(){var a=this.ma;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},_i.prototype.any=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},_i.prototype.all=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},_i.prototype.each=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},_i.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Ln;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},_i.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Ln;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},_i.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},_i.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},Vt.Object.defineProperties(_i.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),_i.prototype.first=_i.prototype.first,_i.prototype.hasNext=_i.prototype.Ad,_i.prototype.next=_i.prototype.next,_i.prototype.reset=_i.prototype.reset,_i.className="MapValueSetIterator";function Po(a,y){this.key=a,this.value=y,this.ll=this.va=null}Po.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Po.className="KeyValuePair";function eo(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}eo.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},eo.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.key=y.key,this.value=y.value,!0):(this.de(),!1)},eo.prototype.Ad=function(){return this.next()},eo.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.key=a.key,this.value=a.value,a):null},eo.prototype.any=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},eo.prototype.all=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},eo.prototype.each=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y),y=y.va;return this},eo.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Ln;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},eo.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Ln;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},eo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},eo.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},Vt.Object.defineProperties(eo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),eo.prototype.first=eo.prototype.first,eo.prototype.hasNext=eo.prototype.Ad,eo.prototype.next=eo.prototype.next,eo.prototype.reset=eo.prototype.reset,eo.className="MapIterator";function hi(a){ao(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.jf=this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&Xt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ct=hi.prototype,Ct.xb=function(){var a=this.Ja;a++,999999999=this.count)return so;var a=this.Sa;return a!==null?(a.reset(),a):new eo(this)}},iteratorKeys:{get:function(){return 0>=this.count?so:new So(this)}},iteratorValues:{get:function(){if(0>=this.count)return so;var a=this.jf;return a!==null?(a.reset(),a):new _i(this)}}}),hi.prototype.toKeySet=hi.prototype.Lf,hi.prototype.toArray=hi.prototype.Fa,hi.prototype.clear=hi.prototype.clear,hi.prototype.delete=hi.prototype.delete,hi.prototype.remove=hi.prototype.remove,hi.prototype.get=hi.prototype.get,hi.prototype.getValue=hi.prototype.I,hi.prototype.has=hi.prototype.has,hi.prototype.contains=hi.prototype.contains,hi.prototype.first=hi.prototype.first,hi.prototype.addAll=hi.prototype.addAll,hi.prototype.set=hi.prototype.set,hi.prototype.add=hi.prototype.add,hi.prototype.thaw=hi.prototype.ka,hi.prototype.freeze=hi.prototype.freeze,hi.className="Map";function Ot(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):Xt("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var lr,Yo,tr,_t,Zn;Ot.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Ot.prototype.h=function(a,y){return this.x=a,this.y=y,this},Ot.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Ot.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Ot.prototype.copy=function(){var a=new Ot;return a.x=this.x,a.y=this.y,a},Ct=Ot.prototype,Ct.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ct.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return Object.isFrozen(this)&&Xt("cannot thaw constant: "+this),this._isFrozen=!1,this};function si(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new Ot(x,b)}return new Ot}function Ii(a){return a.x.toString()+" "+a.y.toString()}Ct.toString=function(){return"Point("+this.x+","+this.y+")"},Ct.D=function(a){return a instanceof Ot?this.x===a.x&&this.y===a.y:!1},Ct.hi=function(a,y){return this.x===a&&this.y===y},Ct.Xa=function(a){return Ie.B(this.x,a.x)&&Ie.B(this.y,a.y)},Ct.add=function(a){return this.x+=a.x,this.y+=a.y,this},Ct.re=function(a){return this.x-=a.x,this.y-=a.y,this},Ct.offset=function(a,y){return this.x+=a,this.y+=y,this},Ot.prototype.rotate=function(a){if(a===0)return this;var y=this.x,x=this.y;if(y===0&&x===0)return this;if(360<=a?a-=360:0>a&&(a+=360),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));return this.x=a*y-E*x,this.y=E*y+a*x,this},Ct=Ot.prototype,Ct.scale=function(a,y){return this.x*=a,this.y*=y,this},Ct.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Ct.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Ct.normalize=function(){var a=this.x,y=this.y,x=Math.sqrt(a*a+y*y);return 0y?270:0;if(y===0)return 0a?x=0>y?x+180:180-x:0>y&&(x=360-x),x}Ct.Ry=function(a,y){return Ie.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Ct.fA=function(a,y,x,E){return Ie.qh(a,y,x,E,this.x,this.y,this),this},Ct.gA=function(a,y){return Ie.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Ct.uA=function(a,y,x,E){return Ie.No(this.x,this.y,a,y,x,E,this),this},Ct.vA=function(a,y){return Ie.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Ct.xi=function(a,y){return this.x=a.x+y.x*a.width+y.offsetX,this.y=a.y+y.y*a.height+y.offsetY,this},Ct.yi=function(a,y,x,E,b){return this.x=a+b.x*x+b.offsetX,this.y=y+b.y*E+b.offsetY,this},Ct.transform=function(a){return a.Ga(this),this};function Ai(a,y){return y.Cd(a),a}function pi(a,y,x,E,b,z){var tt=b-x,rt=z-E,at=tt*tt+rt*rt;x-=a,E-=y;var lt=-x*tt-E*rt;return 0>=lt||lt>=at?(tt=b-a,rt=z-y,Math.min(x*x+E*E,tt*tt+rt*rt)):(a=tt*E-rt*x,a*a/at)}function mi(a,y,x,E){return a=x-a,y=E-y,a*a+y*y}function ei(a,y,x,E){return a=x-a,y=E-y,a===0?0y?270:0:y===0?0a?E=0>y?E+180:180-E:0>y&&(E=360-E),E)}Ct.w=function(){return isFinite(this.x)&&isFinite(this.y)},Ot.alloc=function(){var a=gi.pop();return a===void 0?new Ot:a},Ot.allocAt=function(a,y){var x=gi.pop();return x===void 0?new Ot(a,y):(x.x=a,x.y=y,x)},Ot.free=function(a){gi.push(a)},Ot.prototype.isReal=Ot.prototype.w,Ot.prototype.setSpot=Ot.prototype.yi,Ot.prototype.setRectSpot=Ot.prototype.xi,Ot.prototype.snapToGridPoint=Ot.prototype.vA,Ot.prototype.snapToGrid=Ot.prototype.uA,Ot.prototype.projectOntoLineSegmentPoint=Ot.prototype.gA,Ot.prototype.projectOntoLineSegment=Ot.prototype.fA,Ot.intersectingLineSegments=function(a,y,x,E,b,z,tt,rt){return Ie.Rl(a,y,x,E,b,z,tt,rt)},Ot.prototype.compareWithLineSegmentPoint=Ot.prototype.Ry,Ot.compareWithLineSegment=function(a,y,x,E,b,z){return Ie.Fl(a,y,x,E,b,z)},Ot.prototype.direction=Ot.prototype.direction,Ot.prototype.directionPoint=Ot.prototype.ab,Ot.prototype.normalize=Ot.prototype.normalize,Ot.prototype.distanceSquared=Ot.prototype.zd,Ot.prototype.distanceSquaredPoint=Ot.prototype.Bf,Ot.prototype.scale=Ot.prototype.scale,Ot.prototype.rotate=Ot.prototype.rotate,Ot.prototype.offset=Ot.prototype.offset,Ot.prototype.subtract=Ot.prototype.re,Ot.prototype.add=Ot.prototype.add,Ot.prototype.equalsApprox=Ot.prototype.Xa,Ot.prototype.equalTo=Ot.prototype.hi,Ot.prototype.equals=Ot.prototype.D,Ot.prototype.set=Ot.prototype.set,Ot.prototype.setTo=Ot.prototype.sg;var gi=[];Ot.className="Point",Ot.parse=si,Ot.stringify=Ii,Ot.distanceLineSegmentSquared=pi,Ot.distanceSquared=mi,Ot.direction=ei,Ot.Origin=lr=new Ot(0,0).ja(),Ot.InfiniteTopLeft=Yo=new Ot(-1/0,-1/0).ja(),Ot.InfiniteBottomRight=tr=new Ot(1/0,1/0).ja(),Ot.SixPoint=_t=new Ot(6,6).ja(),Ot.NoPoint=Zn=new Ot(NaN,NaN).ja(),Ot.parse=si,Ot.stringify=Ii,Ot.distanceLineSegmentSquared=pi,Ot.distanceSquared=mi,Ot.direction=ei;function Nn(a,y){a===void 0?this.height=this.width=0:typeof a=="number"&&(0<=a||isNaN(a))&&typeof y=="number"&&(0<=y||isNaN(y))?(this.width=a,this.height=y):Xt("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var Pi,Wi,Ni,Oi,po,co,or;Nn.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},Nn.prototype.h=function(a,y){return this.width=a,this.height=y,this},Nn.prototype.sg=function(a,y){return this.width=a,this.height=y,this},Nn.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},Nn.prototype.copy=function(){var a=new Nn;return a.width=this.width,a.height=this.height,a},Ct=Nn.prototype,Ct.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ct.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return Object.isFrozen(this)&&Xt("cannot thaw constant: "+this),this._isFrozen=!1,this};function ia(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new Nn(x,b)}return new Nn}function ha(a){return a.width.toString()+" "+a.height.toString()}Ct.toString=function(){return"Size("+this.width+","+this.height+")"},Ct.D=function(a){return a instanceof Nn?this.width===a.width&&this.height===a.height:!1},Ct.hi=function(a,y){return this.width===a&&this.height===y},Ct.Xa=function(a){return Ie.B(this.width,a.width)&&Ie.B(this.height,a.height)},Ct.Bc=function(a,y){return a=this.width+a,this.width=0<=a?a:0,y=this.height+y,this.height=0<=y?y:0,this},Ct.w=function(){return isFinite(this.width)&&isFinite(this.height)},Nn.alloc=function(){var a=ga.pop();return a===void 0?new Nn:a},Nn.free=function(a){ga.push(a)},Nn.prototype.isReal=Nn.prototype.w,Nn.prototype.inflate=Nn.prototype.Bc,Nn.prototype.equalsApprox=Nn.prototype.Xa,Nn.prototype.equalTo=Nn.prototype.hi,Nn.prototype.equals=Nn.prototype.D,Nn.prototype.set=Nn.prototype.set,Nn.prototype.setTo=Nn.prototype.sg;var ga=[];Nn.className="Size",Nn.parse=ia,Nn.stringify=ha,Nn.ZeroSize=Pi=new Nn(0,0).ja(),Nn.OneSize=Wi=new Nn(1,1).ja(),Nn.SixSize=Ni=new Nn(6,6).ja(),Nn.EightSize=Oi=new Nn(8,8).ja(),Nn.TenSize=po=new Nn(10,10).ja(),Nn.InfiniteSize=co=new Nn(1/0,1/0).ja(),Nn.NoSize=or=new Nn(NaN,NaN).ja(),Nn.parse=ia,Nn.stringify=ha;function on(a,y,x,E){a===void 0?this.height=this.width=this.y=this.x=0:typeof a=="number"&&typeof y=="number"&&typeof x=="number"&&(0<=x||isNaN(x))&&typeof E=="number"&&(0<=E||isNaN(E))?(this.x=a,this.y=y,this.width=x,this.height=E):a instanceof Ot?(x=a.x,a=a.y,y instanceof Ot?(E=y.x,y=y.y,this.x=Math.min(x,E),this.y=Math.min(a,y),this.width=Math.abs(x-E),this.height=Math.abs(a-y)):y instanceof Nn?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):Xt("Incorrect second argument supplied to Rect constructor "+y)):Xt("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}Ct=on.prototype,Ct.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Ct.h=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this};function ca(a,y,x){a.width=y,a.height=x}Ct.sg=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this},Ct.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Ct.dd=function(a){return this.x=a.x,this.y=a.y,this},Ct.tA=function(a){return this.width=a.width,this.height=a.height,this},on.prototype.copy=function(){var a=new on;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Ct=on.prototype,Ct.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ct.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return Object.isFrozen(this)&&Xt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ks(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;(E=a[y++])&&(b=parseFloat(E));for(var z=0;a[y]==="";)y++;(E=a[y++])&&(z=parseFloat(E));for(var tt=0;a[y]==="";)y++;return(E=a[y++])&&(tt=parseFloat(E)),new on(x,b,z,tt)}return new on}function _a(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Ct.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Ct.D=function(a){return a instanceof on?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Ct.hi=function(a,y,x,E){return this.x===a&&this.y===y&&this.width===x&&this.height===E},Ct.Xa=function(a){return Ie.B(this.x,a.x)&&Ie.B(this.y,a.y)&&Ie.B(this.width,a.width)&&Ie.B(this.height,a.height)};function Ll(a,y){return Ie.$(a.x,y.x)&&Ie.$(a.y,y.y)&&Ie.$(a.width,y.width)&&Ie.$(a.height,y.height)}Ct.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Ct.Re=function(a){return this.x<=a.x&&a.x+a.width<=this.x+this.width&&this.y<=a.y&&a.y+a.height<=this.y+this.height},Ct.contains=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),this.x<=a&&a+x<=this.x+this.width&&this.y<=y&&y+E<=this.y+this.height},Ct.offset=function(a,y){return this.x+=a,this.y+=y,this},Ct.Bc=function(a,y){return Yr(this,y,a,y,a)},Ct.Co=function(a){return Yr(this,a.top,a.right,a.bottom,a.left)},Ct.Fv=function(a){return Yr(this,-a.top,-a.right,-a.bottom,-a.left)},Ct.Hz=function(a,y,x,E){return Yr(this,a,y,x,E)};function Yr(a,y,x,E,b){var z=a.width;return x+b<=-z?(a.x+=z/2,a.width=0):(a.x-=b,a.width+=x+b),x=a.height,y+E<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+E),a}Ct.Ex=function(a){return Fs(this,a.x,a.y,a.width,a.height)},Ct.Uu=function(a,y,x,E){return Fs(this,a,y,x,E)};function Fs(a,y,x,E,b){var z=Math.max(a.x,y),tt=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+E),x=Math.min(a.y+a.height,x+b),a.x=z,a.y=tt,a.width=Math.max(0,y-z),a.height=Math.max(0,x-tt),a}Ct.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Ct.Vu=function(a,y,x,E){var b=this.width,z=this.x;return b!==1/0&&x!==1/0&&(b+=z,x+=a,isNaN(x)||isNaN(b)||z>x||a>b)?!1:(a=this.height,x=this.y,!(a!==1/0&&E!==1/0&&(a+=x,E+=y,isNaN(E)||isNaN(a)||x>E||y>a)))};function gr(a,y){var x=a.width,E=a.x,b=y.x-10;return E>y.width+10+10+b||b>x+E?!1:(x=a.height,a=a.y,E=y.y-10,!(a>y.height+10+10+E||E>x+a))}Ct.Ye=function(a){return zo(this,a.x,a.y,0,0)},Ct.ed=function(a){return zo(this,a.x,a.y,a.width,a.height)},Ct.Kv=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),zo(this,a,y,x,E)};function zo(a,y,x,E,b){var z=Math.min(a.x,y),tt=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+E),x=Math.max(a.y+a.height,x+b),a.x=z,a.y=tt,a.width=y-z,a.height=x-tt,a}Ct.yi=function(a,y,x){return this.x=a-x.offsetX-x.x*this.width,this.y=y-x.offsetY-x.y*this.height,this};function nr(a,y,x,E,b,z,tt,rt){return tt===void 0&&(tt=0),rt===void 0&&(rt=0),a<=b&&b+tt<=a+x&&y<=z&&z+rt<=y+E}function Xr(a,y,x,E,b,z,tt,rt){return a>tt+b||b>x+a?!1:!(y>rt+z||z>E+y)}Ct.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Ct.Mz=function(){return this.width===0&&this.height===0},on.alloc=function(){var a=kr.pop();return a===void 0?new on:a},on.allocAt=function(a,y,x,E){var b=kr.pop();return b===void 0?new on(a,y,x,E):b.h(a,y,x,E)},on.free=function(a){kr.push(a)},Vt.Object.defineProperties(on.prototype,{left:{get:function(){return this.x},set:function(a){this.x=a}},top:{get:function(){return this.y},set:function(a){this.y=a}},right:{get:function(){return this.x+this.width},set:function(a){this.x+=a-(this.x+this.width)}},bottom:{get:function(){return this.y+this.height},set:function(a){this.y+=a-(this.y+this.height)}},position:{get:function(){return new Ot(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new Nn(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Ot(this.x+this.width/2,this.y+this.height/2)},set:function(a){this.x=a.x-this.width/2,this.y=a.y-this.height/2}},centerX:{get:function(){return this.x+this.width/2},set:function(a){this.x=a-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(a){this.y=a-this.height/2}}}),on.prototype.isEmpty=on.prototype.Mz,on.prototype.isReal=on.prototype.w,on.intersectsLineSegment=function(a,y,x,E,b,z,tt,rt){return Ie.Fx(a,y,x,E,b,z,tt,rt)},on.prototype.setSpot=on.prototype.yi,on.prototype.union=on.prototype.Kv,on.prototype.unionRect=on.prototype.ed,on.prototype.unionPoint=on.prototype.Ye,on.prototype.intersects=on.prototype.Vu,on.prototype.intersectsRect=on.prototype.Yc,on.prototype.intersect=on.prototype.Uu,on.prototype.intersectRect=on.prototype.Ex,on.prototype.grow=on.prototype.Hz,on.prototype.subtractMargin=on.prototype.Fv,on.prototype.addMargin=on.prototype.Co,on.prototype.inflate=on.prototype.Bc,on.prototype.offset=on.prototype.offset,on.prototype.contains=on.prototype.contains,on.prototype.containsRect=on.prototype.Re,on.prototype.containsPoint=on.prototype.ca,on.prototype.equalsApprox=on.prototype.Xa,on.prototype.equalTo=on.prototype.hi,on.prototype.equals=on.prototype.D,on.prototype.setSize=on.prototype.tA,on.prototype.setPoint=on.prototype.dd,on.prototype.set=on.prototype.set,on.prototype.setTo=on.prototype.sg;var Wr=null,wa=null,kr=[];on.className="Rect",on.parse=Ks,on.stringify=_a,on.contains=nr,on.intersects=Xr,on.ZeroRect=Wr=new on(0,0,0,0).ja(),on.NoRect=wa=new on(NaN,NaN,NaN,NaN).ja(),on.parse=Ks,on.stringify=_a,on.contains=nr,on.intersects=Xr;function Ri(a,y,x,E){a===void 0?this.left=this.bottom=this.right=this.top=0:y===void 0?this.left=this.bottom=this.right=this.top=a:x===void 0?(this.top=a,this.right=y,this.bottom=a,this.left=y):E!==void 0?(this.top=a,this.right=y,this.bottom=x,this.left=E):Xt("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}Ri.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Ri.prototype.sg=function(a,y,x,E){return this.top=a,this.right=y,this.bottom=x,this.left=E,this},Ri.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Ri.prototype.copy=function(){var a=new Ri;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Ct=Ri.prototype,Ct.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ct.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return Object.isFrozen(this)&&Xt("cannot thaw constant: "+this),this._isFrozen=!1,this};function $a(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=NaN;a[y]==="";)y++;var E=a[y++];if(E&&(x=parseFloat(E)),isNaN(x))return new Ri;for(var b=NaN;a[y]==="";)y++;if((E=a[y++])&&(b=parseFloat(E)),isNaN(b))return new Ri(x);for(var z=NaN;a[y]==="";)y++;if((E=a[y++])&&(z=parseFloat(E)),isNaN(z))return new Ri(x,b);for(var tt=NaN;a[y]==="";)y++;return(E=a[y++])&&(tt=parseFloat(E)),isNaN(tt)?new Ri(x,b):new Ri(x,b,z,tt)}return new Ri}function al(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Ct.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Ct.D=function(a){return a instanceof Ri?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Ct.hi=function(a,y,x,E){return this.top===a&&this.right===y&&this.bottom===x&&this.left===E},Ct.Xa=function(a){return Ie.B(this.top,a.top)&&Ie.B(this.right,a.right)&&Ie.B(this.bottom,a.bottom)&&Ie.B(this.left,a.left)},Ct.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Ri.alloc=function(){var a=Dl.pop();return a===void 0?new Ri:a},Ri.free=function(a){Dl.push(a)},Ri.prototype.isReal=Ri.prototype.w,Ri.prototype.equalsApprox=Ri.prototype.Xa,Ri.prototype.equalTo=Ri.prototype.hi,Ri.prototype.equals=Ri.prototype.D,Ri.prototype.set=Ri.prototype.set,Ri.prototype.setTo=Ri.prototype.sg;var as=null,Qs=null,Dl=[];Ri.className="Margin",Ri.parse=$a,Ri.stringify=al,Ri.ZeroMargin=as=new Ri(0,0,0,0).ja(),Ri.TwoMargin=Qs=new Ri(2,2,2,2).ja(),Ri.parse=$a,Ri.stringify=al;function Mi(a,y,x,E){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),E===void 0&&(E=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=E),this._isFrozen=!1}var ir,Or,ya,Au,ru,Wo,_u,Ul,Ls,ts,Vl,Yl,fs,sl,ti,To,Ko,ar,Ir,sr,Zr,qr,es,Ba,ps,da,Sh,$u,Xl,Bl,Wa,ss,ba,Ea,bl,Cu;Mi.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Mi.prototype.sg=function(a,y,x,E){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=E,this},Mi.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Mi.prototype.copy=function(){var a=new Mi;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Ct=Mi.prototype,Ct.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ct.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return Object.isFrozen(this)&&Xt("cannot thaw constant: "+this),this._isFrozen=!1,this};function fa(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function Ad(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return ir;if(a==="TopLeft")return Or;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return ya;if(a==="TopRight")return Au;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return ru;if(a==="Center")return Wo;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return _u;if(a==="BottomLeft")return Ul;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return Ls;if(a==="BottomRight")return ts;if(a==="TopSide")return Vl;if(a==="LeftSide")return Yl;if(a==="RightSide")return fs;if(a==="BottomSide")return sl;if(a==="TopBottomSides")return ti;if(a==="LeftRightSides")return To;if(a==="TopLeftSides")return Ko;if(a==="TopRightSides")return ar;if(a==="BottomLeftSides")return Ir;if(a==="BottomRightSides")return sr;if(a==="NotTopSide")return Zr;if(a==="NotLeftSide")return qr;if(a==="NotRightSide")return es;if(a==="NotBottomSide")return Ba;if(a==="AllSides")return ps;if(a==="Default")return da;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E!==void 0&&0a&&(a+=360),a===0)return this;if(this.translate(y,x),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.m12*a+this.m22*E,z=this.m11*-E+this.m21*a,tt=this.m12*-E+this.m22*a;return this.m11=this.m11*a+this.m21*E,this.m12=b,this.m21=z,this.m22=tt,this.translate(-y,-x),this},Ct=vo.prototype,Ct.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Ct.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Ct.Ga=function(a){var y=a.x,x=a.y;return a.h(y*this.m11+x*this.m21+this.dx,y*this.m12+x*this.m22+this.dy)},Ct.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=a.x,E=a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Ct.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=1.25*a.x,E=1.2*a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Ct.pp=function(a){var y=a.x,x=a.y,E=y+a.width,b=x+a.height,z=this.m11,tt=this.m12,rt=this.m21,at=this.m22,lt=this.dx,ht=this.dy,ft=y*z+x*rt+lt,vt=y*tt+x*at+ht,xt=E*z+x*rt+lt,Et=E*tt+x*at+ht;return x=y*z+b*rt+lt,y=y*tt+b*at+ht,z=E*z+b*rt+lt,E=E*tt+b*at+ht,b=Math.min(ft,xt),ft=Math.max(ft,xt),xt=Math.min(vt,Et),vt=Math.max(vt,Et),b=Math.min(b,x),ft=Math.max(ft,x),xt=Math.min(xt,y),vt=Math.max(vt,y),b=Math.min(b,z),ft=Math.max(ft,z),xt=Math.min(xt,E),vt=Math.max(vt,E),a.h(b,xt,ft-b,vt-xt),a},vo.alloc=function(){var a=lg.pop();return a===void 0?new vo:a},vo.free=function(a){lg.push(a)},vo.prototype.transformRect=vo.prototype.pp,vo.prototype.transformPoint=vo.prototype.Ga,vo.prototype.scale=vo.prototype.scale,vo.prototype.translate=vo.prototype.translate,vo.prototype.rotate=vo.prototype.rotate,vo.prototype.invert=vo.prototype.Vj,vo.prototype.multiplyInverted=vo.prototype.bv,vo.prototype.multiply=vo.prototype.multiply,vo.prototype.reset=vo.prototype.reset,vo.prototype.isIdentity=vo.prototype.ws,vo.prototype.equals=vo.prototype.D,vo.prototype.setTransform=vo.prototype.setTransform,vo.prototype.set=vo.prototype.set;var lg=[];vo.className="Transform",vo.xF="54a702f3e53909c447824c6706603faf4c";var Ie={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Ie.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);Ie.Uv=y}return 1>a?(x=1/a,2e3>=x?1/y[x|0]:Math.sqrt(a)):2e3>=a?y[a|0]:Math.sqrt(a)},B:function(a,y){return a-=y,.5>a&&-.5a&&-5e-8=b&&(b=1e-6),aht-lt)if(a-x>b||x-a>b){if(z=(E-y)/(x-a)*(z-a)+y,z-b<=tt&&tt<=z+b)return!0}else return!0;else if(y-E>b||E-y>b){if(tt=(x-a)/(E-y)*(tt-y)+a,tt-b<=z&&z<=tt+b)return!0}else return!0;return!1},cs:function(a,y,x,E,b,z,tt,rt,at,lt,ht,ft){if(Ie.Yb(a,y,tt,rt,ft,x,E)&&Ie.Yb(a,y,tt,rt,ft,b,z))return Ie.Yb(a,y,tt,rt,ft,lt,ht);var vt=(a+x)/2,xt=(y+E)/2,Et=(x+b)/2,Lt=(E+z)/2;b=(b+tt)/2,z=(z+rt)/2,E=(vt+Et)/2,x=(xt+Lt)/2,Et=(Et+b)/2,Lt=(Lt+z)/2;var Wt=(E+Et)/2,kt=(x+Lt)/2;return Ie.cs(a,y,vt,xt,E,x,Wt,kt,at,lt,ht,ft)||Ie.cs(Wt,kt,Et,Lt,b,z,tt,rt,at,lt,ht,ft)},ax:function(a,y,x,E,b,z,tt,rt,at){var lt=(x+b)/2,ht=(E+z)/2;return at.h((((a+x)/2+lt)/2+(lt+(b+tt)/2)/2)/2,(((y+E)/2+ht)/2+(ht+(z+rt)/2)/2)/2),at},My:function(a,y,x,E,b,z,tt,rt){var at=(x+b)/2,lt=(E+z)/2;return ei(((a+x)/2+at)/2,((y+E)/2+lt)/2,(at+(b+tt)/2)/2,(lt+(z+rt)/2)/2)},Dl:function(a,y,x,E,b,z,tt,rt,at,lt){if(Ie.Yb(a,y,tt,rt,at,x,E)&&Ie.Yb(a,y,tt,rt,at,b,z))zo(lt,a,y,0,0),zo(lt,tt,rt,0,0);else{var ht=(a+x)/2,ft=(y+E)/2,vt=(x+b)/2,xt=(E+z)/2;b=(b+tt)/2,z=(z+rt)/2,E=(ht+vt)/2,x=(ft+xt)/2,vt=(vt+b)/2,xt=(xt+z)/2;var Et=(E+vt)/2,Lt=(x+xt)/2;Ie.Dl(a,y,ht,ft,E,x,Et,Lt,at,lt),Ie.Dl(Et,Lt,vt,xt,b,z,tt,rt,at,lt)}return lt},Qe:function(a,y,x,E,b,z,tt,rt,at,lt){if(Ie.Yb(a,y,tt,rt,at,x,E)&&Ie.Yb(a,y,tt,rt,at,b,z))lt.length===0&&(lt.push(a),lt.push(y)),lt.push(tt),lt.push(rt);else{var ht=(a+x)/2,ft=(y+E)/2,vt=(x+b)/2,xt=(E+z)/2;b=(b+tt)/2,z=(z+rt)/2,E=(ht+vt)/2,x=(ft+xt)/2,vt=(vt+b)/2,xt=(xt+z)/2;var Et=(E+vt)/2,Lt=(x+xt)/2;Ie.Qe(a,y,ht,ft,E,x,Et,Lt,at,lt),Ie.Qe(Et,Lt,vt,xt,b,z,tt,rt,at,lt)}return lt},jv:function(a,y,x,E,b,z,tt,rt,at,lt){if(Ie.Yb(a,y,b,z,lt,x,E))return Ie.Yb(a,y,b,z,lt,rt,at);var ht=(a+x)/2,ft=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var vt=(ht+x)/2,xt=(ft+E)/2;return Ie.jv(a,y,ht,ft,vt,xt,tt,rt,at,lt)||Ie.jv(vt,xt,x,E,b,z,tt,rt,at,lt)},OA:function(a,y,x,E,b,z,tt){return tt.h(((a+x)/2+(x+b)/2)/2,((y+E)/2+(E+z)/2)/2),tt},iv:function(a,y,x,E,b,z,tt,rt){if(Ie.Yb(a,y,b,z,tt,x,E))zo(rt,a,y,0,0),zo(rt,b,z,0,0);else{var at=(a+x)/2,lt=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ht=(at+x)/2,ft=(lt+E)/2;Ie.iv(a,y,at,lt,ht,ft,tt,rt),Ie.iv(ht,ft,x,E,b,z,tt,rt)}return rt},ep:function(a,y,x,E,b,z,tt,rt){if(Ie.Yb(a,y,b,z,tt,x,E))rt.length===0&&(rt.push(a),rt.push(y)),rt.push(b),rt.push(z);else{var at=(a+x)/2,lt=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ht=(at+x)/2,ft=(lt+E)/2;Ie.ep(a,y,at,lt,ht,ft,tt,rt),Ie.ep(ht,ft,x,E,b,z,tt,rt)}return r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,y),!1):1.000005y?(at.h(a,y),!1):(at.h(a,x),!0)):(tt=(E-y)/(x-a),Ie.$(rt,tt)?(Ie.qh(a,y,x,E,b,z,at),!1):(b=(tt*a-rt*b+z-y)/(tt-rt),Ie.$(tt,0)?(aa?(at.h(a,y),!1):(at.h(b,y),!0)):Ie.qh(a,y,x,E,b,tt*(b-a)+y,at))))},MA:function(a,y,x,E,b){return Ie.Ve(x.x,x.y,E.x,E.y,a.x,a.y,y.x,y.y,b)},KA:function(a,y,x,E,b,z,tt,rt,at,lt){function ht(Wt,kt){var Jt=(Wt-a)*(Wt-a)+(kt-y)*(kt-y);Jt(x>a?x-a:a-x)){if(vt=1-(x-b)*(x-b)/(vt*vt),0>vt)return at;vt=Math.sqrt(vt),E=-lt*vt+z,ht(x,lt*vt+z),ht(x,E)}else{if(x=(E-y)/(x-a),E=1/(vt*vt)+x*x/(lt*lt),rt=2*x*(y-x*a)/(lt*lt)-2*x*z/(lt*lt)-2*b/(vt*vt),vt=rt*rt-4*E*(2*x*a*z/(lt*lt)-2*y*z/(lt*lt)+z*z/(lt*lt)+b*b/(vt*vt)-1+(y-x*a)*(y-x*a)/(lt*lt)),0>vt)return at;vt=Math.sqrt(vt),lt=(-rt+vt)/(2*E),ht(lt,x*lt-x*a+y),vt=(-rt-vt)/(2*E),ht(vt,x*vt-x*a+y)}return at},Ff:function(a,y,x,E,b,z,tt,rt,at){var lt=1e21,ht=a,ft=y;if(Ie.Ve(a,y,a,E,b,z,tt,rt,at)){var vt=(at.x-b)*(at.x-b)+(at.y-z)*(at.y-z);vtlt},us:function(a,y,x){return Ie.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,E,b,z,tt,rt){var at=a+x,lt=y+E;return b===tt?(z=y):z===rt?(b=a):!!(nr(a,y,x,E,b,z)||nr(a,y,x,E,tt,rt)||Ie.Rl(a,y,at,y,b,z,tt,rt)||Ie.Rl(at,y,at,lt,b,z,tt,rt)||Ie.Rl(at,lt,a,lt,b,z,tt,rt)||Ie.Rl(a,lt,a,y,b,z,tt,rt))},Rl:function(a,y,x,E,b,z,tt,rt){return a===x&&y===E&&b===tt&&z===rt?a===b&&y===z:0>=Ie.Fl(a,y,x,E,b,z)*Ie.Fl(a,y,x,E,tt,rt)&&0>=Ie.Fl(b,z,tt,rt,a,y)*Ie.Fl(b,z,tt,rt,x,E)},Fl:function(a,y,x,E,b,z){return x-=a,E-=y,a=b-a,y=z-y,z=a*E-y*x,z===0&&(z=a*x+y*E,0z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,E,b,z){var tt=Math.PI;z||(E*=tt/180,b*=tt/180);var rt=E>b?-1:1;z=[];var at=tt/2,lt=E;if(E=Math.min(2*tt,Math.abs(b-E)),1e-5>E)return at=lt+rt*Math.min(E,at),rt=a+x*Math.cos(lt),lt=y+x*Math.sin(lt),a+=x*Math.cos(at),y+=x*Math.sin(at),x=(rt+a)/2,at=(lt+y)/2,z.push([rt,lt,x,at,x,at,a,y]),z;for(;1e-5x,z=0>E;if(alt&&(y=.5*(rt+at),!(y===rt||y===at));++lt){var ht=a/(y+b),ft=tt/(y+z);if(ht=ht*ht+ft*ft-1,0ht)at=y;else break}x=b*x/(y+b)-x,E=z*E/(y+z)-E,x=Math.sqrt(x*x+E*E)}else x=Math.abs(E-y);else E=a*a-y*y,z=a*x,za?"M"+this.startX.toString()+" "+this.startY.toString()+"L"+this.endX.toString()+" "+this.endY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a)+"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);case Qn.u:var y=new on(this.startX,this.startY,0,0);return y.Kv(this.endX,this.endY,0,0),0>a?"M"+y.x.toString()+" "+y.y.toString()+"H"+y.right.toString()+"V"+y.bottom.toString()+"H"+y.left.toString()+"z":"M"+y.x.toFixed(a)+" "+y.y.toFixed(a)+"H"+y.right.toFixed(a)+"V"+y.bottom.toFixed(a)+"H"+y.left.toFixed(a)+"z";case Qn.F:if(y=new on(this.startX,this.startY,0,0),y.Kv(this.endX,this.endY,0,0),0>a)return a=y.left.toString()+" "+(y.y+y.height/2).toString(),"M"+a+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+(y.right.toString()+" "+(y.y+y.height/2).toString())+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+a;var x=y.left.toFixed(a)+" "+(y.y+y.height/2).toFixed(a);return"M"+x+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+(y.right.toFixed(a)+" "+(y.y+y.height/2).toFixed(a))+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+x;case Qn.o:y="",x=this.figures.s;for(var E=x.length,b=0;b=se-1?!0:lt[Lt+1].match(ye)!==null}function E(){return Lt++,lt[Lt]}function b(qi){var Yi=parseFloat(E()),Ho=parseFloat(E());Wt===Wt.toLowerCase()&&(Yi=ne.x+Yi,Ho=ne.y+Ho),qi.h(Yi,Ho)}function z(){return b(ne),ne}function tt(){return b(Jt),Jt}function rt(){var qi=kt.toLowerCase();return qi!=="c"&&qi!=="s"&&qi!=="q"&&qi!=="t"?ne:new Ot(2*ne.x-Jt.x,2*ne.y-Jt.y)}y===void 0&&(y=!1);var at=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(at,"$1 $2"),a=a.replace(at,"$1 $2"),a=a.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),a=a.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),a=a.replace(/([0-9])([+\-])/gm,"$1 $2"),a=a.replace(/[\s\r\t\n]+/gm," "),a=a.replace(/^\s+|\s+$/g,"");var lt=a.split(" ");for(a=0;a=se-1);)if(kt=Wt,Wt=E(),Wt!=="")switch(Wt.toUpperCase()){case"X":xt=!0,ft=ht=!1;break;case"M":for(Et=z(),a.mc===null||xt===!0?(Gg(a,Et.x,Et.y,ht,!ft,vt),xt=!1):a.moveTo(Et.x,Et.y),at.assign(ne);!x();)Et=z(),a.lineTo(Et.x,Et.y);break;case"L":for(;!x();)Et=z(),a.lineTo(Et.x,Et.y);break;case"H":for(;!x();)ne=new Ot((Wt===Wt.toLowerCase()?ne.x:0)+parseFloat(E()),ne.y),a.lineTo(ne.x,ne.y);break;case"V":for(;!x();)ne=new Ot(ne.x,(Wt===Wt.toLowerCase()?ne.y:0)+parseFloat(E())),a.lineTo(ne.x,ne.y);break;case"C":for(;!x();){Et=new Ot,b(Et);var Ge=tt(),ni=z();Oh(a,Et.x,Et.y,Ge.x,Ge.y,ni.x,ni.y)}break;case"S":for(;!x();)Et=rt(),Ge=tt(),ni=z(),Oh(a,Et.x,Et.y,Ge.x,Ge.y,ni.x,ni.y);break;case"Q":for(;!x();)Et=tt(),Ge=z(),Hp(a,Et.x,Et.y,Ge.x,Ge.y);break;case"T":for(;!x();)Jt=Et=rt(),Ge=z(),Hp(a,Et.x,Et.y,Ge.x,Ge.y);break;case"B":for(;!x();){Et=parseFloat(E()),Ge=parseFloat(E()),ni=parseFloat(E());var fi=parseFloat(E()),ui=parseFloat(E()),Un=ui,xn=!1;x()||(Un=parseFloat(E()),x()||(xn=parseFloat(E())!==0)),Wt===Wt.toLowerCase()&&(ni+=ne.x,fi+=ne.y),a.arcTo(Et,Ge,ni,fi,ui,Un,xn)}break;case"A":for(;!x();)Et=Math.abs(parseFloat(E())),Ge=Math.abs(parseFloat(E())),ni=parseFloat(E()),ui=fi=!1,xn=Un=0,Un=E(),Un.length===1?(fi=!!parseFloat(Un),ui=!!parseFloat(E()),Un=parseFloat(E())):Un.length===2?(fi=!!parseFloat(Un[0]),ui=!!parseFloat(Un[1]),Un=parseFloat(E())):(fi=!!parseFloat(Un[0]),ui=!!parseFloat(Un[1]),Un=parseFloat(Un.slice(2))),xn=parseFloat(E()),Wt===Wt.toLowerCase()&&(Un=ne.x+Un,xn=ne.y+xn),ne.h(Un,xn),x5(a,Et,Ge,ni,fi,ui,Un,xn);break;case"Z":S5(a),ne.assign(at);break;case"F":for(Et="",Ge=1;lt[Lt+Ge];)if(lt[Lt+Ge]==="0")vt=!0,Ge++;else if(lt[Lt+Ge].match(/[Uu]/)!==null)Ge++;else if(lt[Lt+Ge].match(ye)===null)Ge++;else{Et=lt[Lt+Ge];break}Et.match(/[Mm]/)?ht=!0:0tt&&(tt+=360),Et.startAngle+=tt),0>a&&(Et.startAngle=180-Et.startAngle,Et.sweepAngle=-Et.sweepAngle),0>E&&(Et.startAngle=-Et.startAngle,Et.sweepAngle=-Et.sweepAngle),Et.radiusX*=Math.sqrt(a*a+x*x),Et.radiusY!==void 0&&(Et.radiusY*=Math.sqrt(y*y+E*E));break;case Js:if(tt=Et.endX,rt=Et.endY,Et.endX=tt*a+rt*x+b,Et.endY=tt*y+rt*E+z,Et.radiusX===0||Et.radiusY===0)break;y!==0&&(tt=180*Math.atan2(y,a)/Math.PI,0>tt&&(tt+=360),Et.xAxisRotation+=tt),0>a&&(Et.xAxisRotation=180-Et.xAxisRotation,Et.isClockwiseArc=!Et.isClockwiseArc),0>E&&(Et.xAxisRotation=-Et.xAxisRotation,Et.isClockwiseArc=!Et.isClockwiseArc),Et.radiusX*=Math.sqrt(a*a+x*x),Et.radiusY*=Math.sqrt(y*y+E*E);break;default:Xt("Unknown Segment type: "+Et.type)}}}}return this._isInvalidBounds=!0,this},Ct.ca=function(a,y){y===void 0&&(y=0);var x=this.od,E=this.pd,b=this.Dc,z=this.Ec;switch(this.type){case Qn.j:return Ie.Yb(x,E,b,z,y,a.x,a.y);case Qn.u:var tt=on.allocAt(Math.min(x,b)-y,Math.min(E,z)-y,Math.abs(b-x)+2*y,Math.abs(z-E)+2*y);return a=tt.ca(a),on.free(tt),a;case Qn.F:tt=Math.min(x,b)-y;var rt=Math.min(E,z)-y;return x=(Math.abs(b-x)+2*y)/2,y=(Math.abs(z-E)+2*y)/2,0>=x||0>=y?!1:(tt=a.x-(tt+x),rt=a.y-(rt+y),1>=tt*tt/(x*x)+rt*rt/(y*y));case Qn.o:return Su(this,a,y,!0,!1);default:return!1}};function Su(a,y,x,E,b){var z=y.x;y=y.y;for(var tt=a.bounds.x-20,rt=0,at,lt,ht,ft,vt=a.figures.s,xt=vt.length,Et=0;Et=a)return 0;if((b>tt?b-tt:tt-b)<(z>rt?z-rt:rt-z)){if(zrt)return 0}else if(yz)return 0}else if(btt)return 0}else if(ltb)return 0;return 0a?a=0:1=z)return E=z-tt,E=ht===0?0:E/ht,x=x[rt],rt=x[2*a],b=x[2*a+1],y.h(rt+(x[2*a+2]-rt)*E,b+(x[2*a+3]-b)*E),y;tt+=ht}}return y},Ct.wx=function(a){if(0>a?a=0:1=b)return b=y[tt],y=b[2*a],x=b[2*a+1],E=b[2*a+2],a=b[2*a+3],1>Math.abs(E-y)&&1>Math.abs(a-x)?0:1>Math.abs(E-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=E-y?0:180:180*Math.atan2(a-x,E-y)/Math.PI;z+=lt}}return NaN},Ct.Qu=function(a,y){if(0>a?a=0:1=z)return E=z-tt,E=ht===0?0:E/ht,ht=x[rt],x=ht[2*a],rt=ht[2*a+1],b=ht[2*a+2],a=ht[2*a+3],y[0]=x+(b-x)*E,y[1]=rt+(a-rt)*E,y[2]=1>Math.abs(b-x)&&1>Math.abs(a-rt)?0:1>Math.abs(b-x)?0<=a-rt?90:270:1>Math.abs(a-rt)?0<=b-x?0:180:180*Math.atan2(a-rt,b-x)/Math.PI,y;tt+=ht}}return y},Ct.xx=function(a){if(this.type===Qn.j){var y=this.startX,x=this.startY,E=this.endX,b=this.endY;if(y!==E||x!==b){var z=a.x;if(a=a.y,y===E){if(x=E?E===x?0:1:Math.abs(a-x)/(E-tt)}if(x===b)return y=E?E===y?0:1:Math.abs(z-y)/(E-tt);tt=(E-y)*(E-y)+(b-x)*(b-x);var rt=Ot.alloc();return Ie.qh(y,x,E,b,z,a,rt),a=rt.x,z=rt.y,Ot.free(rt),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/tt)}}else if(this.type===Qn.u){tt=this.startX,rt=this.startY;var at=this.endX;if(b=this.endY,tt!==at||rt!==b){y=at-tt,x=b-rt,z=2*y+2*x,E=a.x,a=a.y,E=Math.min(Math.max(E,tt),at),a=Math.min(Math.max(a,rt),b),tt=Math.abs(E-tt),at=Math.abs(E-at),rt=Math.abs(a-rt),b=Math.abs(a-b);var lt=Math.min(tt,at,rt,b);if(lt===rt)return E/z;if(lt===at)return(y+a)/z;if(lt===b)return(2*y+x-E)/z;if(lt===tt)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,E=Ot.alloc(),b=1/0,rt=tt=0,at=y.length;for(var ht=lt=0,ft=0;fta?0:1a?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a),x=this.segments.s,E=x.length,b=0;ba&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(E,0),this.Pg=Math.max(b,0),typeof tt=="boolean"?tt&&(this.isLargeArc=!0):typeof tt=="number"&&tt&&(this.isLargeArc=!0),rt&&(this.isClockwiseArc=!0)):(this.Ne=E,this.Vh=b,a===Qr&&(z=Math.max(z,0)),this.Wh=z,typeof tt=="number"?(a===Qr&&(tt=Math.max(tt,0)),this.Pg=tt):this.Pg=0),this.ae=null}Oo.prototype.copy=function(){var a=new Oo;return a.na=this.na,a.l=this.l&-2,a.Dc=this.Dc,a.Ec=this.Ec,a.Ne=this.Ne,a.Vh=this.Vh,a.Wh=this.Wh,a.Pg=this.Pg,a},Ct=Oo.prototype,Ct.Xa=function(a){if(!(a instanceof Oo)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case _r:case hr:return Ie.B(this.endX,a.endX)&&Ie.B(this.endY,a.endY);case Na:return Ie.B(this.endX,a.endX)&&Ie.B(this.endY,a.endY)&&Ie.B(this.point1X,a.point1X)&&Ie.B(this.point1Y,a.point1Y)&&Ie.B(this.point2X,a.point2X)&&Ie.B(this.point2Y,a.point2Y);case Hs:return Ie.B(this.endX,a.endX)&&Ie.B(this.endY,a.endY)&&Ie.B(this.point1X,a.point1X)&&Ie.B(this.point1Y,a.point1Y);case Qr:return Ie.B(this.startAngle,a.startAngle)&&Ie.B(this.sweepAngle,a.sweepAngle)&&Ie.B(this.centerX,a.centerX)&&Ie.B(this.centerY,a.centerY)&&Ie.B(this.radiusX,a.radiusX)&&Ie.B(this.radiusY,a.radiusY);case Js:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Ie.B(this.xAxisRotation,a.xAxisRotation)&&Ie.B(this.endX,a.endX)&&Ie.B(this.endY,a.endY)&&Ie.B(this.radiusX,a.radiusX)&&Ie.B(this.radiusY,a.radiusY);default:return!1}},Ct.qb=function(a){a.classType===Oo&&(this.type=a)},Ct.toString=function(a){switch(a===void 0&&(a=-1),this.type){case _r:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case hr:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Na:a=0>a?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.point2X.toFixed(a)+" "+this.point2Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Hs:a=0>a?"Q"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"Q"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Qr:a=0>a?"B"+this.startAngle.toString()+" "+this.sweepAngle.toString()+" "+this.centerX.toString()+" "+this.centerY.toString()+" "+this.radiusX.toString()+" "+this.radiusY.toString():"B"+this.startAngle.toFixed(a)+" "+this.sweepAngle.toFixed(a)+" "+this.centerX.toFixed(a)+" "+this.centerY.toFixed(a)+" "+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a);break;case Js:a=0>a?"A"+this.radiusX.toString()+" "+this.radiusY.toString()+" "+this.xAxisRotation.toString()+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toString()+" "+this.endY.toString():"A"+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a)+" "+this.xAxisRotation.toFixed(a)+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;default:a=this.type.toString()}return a+(this.isClosed?"z":"")},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return this._isFrozen=!1,this},Ct.close=function(){return this.isClosed=!0,this};function Ds(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var x=a.radiusX,E=a.radiusY;if(E===void 0&&(E=x),x===0||E===0)return a.ae=[],a.ae;y=a.Ne;var b=a.Vh,z=Ie.jx(0,0,x=xt?tt=Math.PI:1<=xt&&(tt=0),!at&&0tt&&(tt+=2*Math.PI),at=y>z?1:y/z,xt=y>z?z/y:1,y=Ie.jx(0,0,y>z?y:z,ht,ht+tt,!0),z=vo.alloc(),z.reset(),z.translate(x,E),z.rotate(a.Ne,0,0),z.scale(at,xt),Qn.Ha(y,z),vo.free(z),a.ae=y,a.ae}Vt.Object.defineProperties(Oo.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},isClosed:{get:function(){return(this.l&8)!==0},set:function(a){this.isClosed!==a&&(this.l=a?this.l|8:this.l&-9,this._isInvalidBounds=!0)}},type:{get:function(){return this.na},set:function(a){this._isFrozen&&dn(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&dn(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&dn(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&dn(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&dn(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&dn(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&dn(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&dn(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&dn(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&De(a,">= zero",Oo,"radiusX"),this._isFrozen&&dn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&De(a,">= zero",Oo,"radiusY"),this._isFrozen&&dn(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&dn(this,a),a%=360,0>a&&(a+=360),this.Dc=a,this._isInvalidBounds=!0}},sweepAngle:{get:function(){return this.Ec},set:function(a){this._isFrozen&&dn(this,a),360a&&(a=-360),this.Ec=a,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&dn(this,a),this.l=a?this.l|4:this.l&-5,this._isInvalidBounds=!0}},isLargeArc:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&dn(this,a),this.l=a?this.l|16:this.l&-17,this._isInvalidBounds=!0}},xAxisRotation:{get:function(){return this.Ne},set:function(a){this._isFrozen&&dn(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),Oo.prototype.equalsApprox=Oo.prototype.Xa;var _r=new sn(Oo,"Move",0),hr=new sn(Oo,"Line",1),Na=new sn(Oo,"Bezier",2),Hs=new sn(Oo,"QuadraticBezier",3),Qr=new sn(Oo,"Arc",4),Js=new sn(Oo,"SvgArc",4);Oo.className="PathSegment",Oo.Move=_r,Oo.Line=hr,Oo.Bezier=Na,Oo.QuadraticBezier=Hs,Oo.Arc=Qr,Oo.SvgArc=Js;function Ka(){this.H=null,this.xu=new Ot(0,0).freeze(),this.mt=new Ot(0,0).freeze(),this.Bp=this.Rq=0,this.Cp=1,this.xq="",this.Wr=this.Tp=!1,this.Rp=this.Ep=0,this.xg=this.nq=this.tq=!1,this.Zp=null,this.Rr=0,this.xd=this.Nr=null}Ka.prototype.copy=function(){var a=new Ka;return this.clone(a)},Ka.prototype.clone=function(a){return a.H=this.H,a.xu.assign(this.viewPoint),a.mt.assign(this.documentPoint),a.Rq=this.Rq,a.Bp=this.Bp,a.Cp=this.Cp,a.xq=this.xq,a.Tp=this.Tp,a.Wr=this.Wr,a.Ep=this.Ep,a.Rp=this.Rp,a.tq=this.tq,a.nq=this.nq,a.xg=this.xg,a.Zp=this.Zp,a.Rr=this.Rr,a.Nr=this.Nr,a.xd=this.xd,a},Ka.prototype.toString=function(){var a="^";return this.modifiers!==0&&(a+="M:"+this.modifiers),this.button!==0&&(a+="B:"+this.button),this.key!==""&&(a+="K:"+this.key),this.clickCount!==0&&(a+="C:"+this.clickCount),this.delta!==0&&(a+="D:"+this.delta),this.handled&&(a+="h"),this.bubbles&&(a+="b"),this.documentPoint!==null&&(a+="@"+this.documentPoint.toString()),a},Ka.prototype.So=function(a,y){var x=this.diagram;return x===null||Ff(x,a,y),y},Ka.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(Ff(x,a,y),y.assign(x.Ps(y))),y},Vt.Object.defineProperties(Ka.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},viewPoint:{get:function(){return this.xu},set:function(a){this.xu.assign(a)}},documentPoint:{get:function(){return this.mt},set:function(a){this.mt.assign(a)}},modifiers:{get:function(){return this.Rq},set:function(a){this.Rq=a}},button:{get:function(){return this.Bp},set:function(a){if(this.Bp=a,this.event===null)switch(a){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2}}},buttons:{get:function(){return this.Cp},set:function(a){this.Cp=a}},key:{get:function(){return this.xq},set:function(a){this.xq=a}},down:{get:function(){return this.Tp},set:function(a){this.Tp=a}},up:{get:function(){return this.Wr},set:function(a){this.Wr=a}},clickCount:{get:function(){return this.Ep},set:function(a){this.Ep=a}},delta:{get:function(){return this.Rp},set:function(a){this.Rp=a}},isMultiTouch:{get:function(){return this.tq},set:function(a){this.tq=a}},handled:{get:function(){return this.nq},set:function(a){this.nq=a}},bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},event:{get:function(){return this.Zp},set:function(a){this.Zp=a}},isTouchEvent:{get:function(){var a=this.event;return a===null?!1:a.pointerType==="touch"||a.pointerType==="pen"}},timestamp:{get:function(){return this.Rr},set:function(a){this.Rr=a}},targetDiagram:{get:function(){return this.Nr},set:function(a){this.Nr=a}},targetObject:{get:function(){return this.xd},set:function(a){this.xd=a}},control:{get:function(){return(this.modifiers&1)!==0},set:function(a){this.modifiers=a?this.modifiers|1:this.modifiers&-2}},shift:{get:function(){return(this.modifiers&4)!==0},set:function(a){this.modifiers=a?this.modifiers|4:this.modifiers&-5}},alt:{get:function(){return(this.modifiers&2)!==0},set:function(a){this.modifiers=a?this.modifiers|2:this.modifiers&-3}},meta:{get:function(){return(this.modifiers&8)!==0},set:function(a){this.modifiers=a?this.modifiers|8:this.modifiers&-9}},left:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&1)!==0:this.button===0},set:function(a){this.buttons=a?this.buttons|1:this.buttons&-2}},right:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&2)!==0:this.button===2},set:function(a){this.buttons=a?this.buttons|2:this.buttons&-3}},middle:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&4)!==0:this.button===1},set:function(a){this.buttons=a?this.buttons|4:this.buttons&-5}}}),Ka.prototype.getMultiTouchDocumentPoint=Ka.prototype.Bz,Ka.prototype.getMultiTouchViewPoint=Ka.prototype.So,Ka.className="InputEvent";function bu(){this.H=null,this.xa="",this.ar=this.Lr=null}bu.prototype.copy=function(){var a=new bu;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},bu.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},Vt.Object.defineProperties(bu.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},subject:{get:function(){return this.Lr},set:function(a){this.Lr=a}},parameter:{get:function(){return this.ar},set:function(a){this.ar=a}}}),bu.className="DiagramEvent";function Mr(){this.Fm=Er,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Mr.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},Mr.prototype.copy=function(){var a=new Mr;a.Fm=this.Fm,a.Qq=this.Qq,a.rf=this.rf,a.cc=this.cc,a.H=this.H,a.Qn=this.Qn;var y=this.Sn;return a.Sn=he(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=he(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=he(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=he(y)&&typeof y.J=="function"?y.J():y,a},Mr.prototype.qb=function(a){a.classType===Mr&&(this.change=a)},Mr.prototype.toString=function(){var a="";return a=this.change===Bs?a+"* ":this.change===Er?a+(this.model!==null?"!m":"!d"):a+((this.model!==null?"!m":"!d")+this.change),this.propertyName&&typeof this.propertyName=="string"&&(a+=" "+this.propertyName),this.modelChange&&this.modelChange!==this.propertyName&&(a+=" "+this.modelChange),a+=": ",this.change===Bs?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=ki(this.object)),this.oldValue!==null&&(a+=" old: "+ki(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+ki(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},Mr.prototype.I=function(a){return a?this.oldValue:this.newValue},Mr.prototype.Dz=function(a){return a?this.oldParam:this.newParam},Mr.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},Mr.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},Mr.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},Mr.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},Vt.Object.defineProperties(Mr.prototype,{model:{get:function(){return this.cc},set:function(a){this.cc=a}},diagram:{get:function(){return this.H},set:function(a){this.H=a}},change:{get:function(){return this.Fm},set:function(a){this.Fm=a}},modelChange:{get:function(){return this.Qq},set:function(a){this.Qq=a}},propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},isTransactionFinished:{get:function(){return this.Fm===Bs&&(this.rf==="CommittedTransaction"||this.rf==="FinishedUndo"||this.rf==="FinishedRedo")}},object:{get:function(){return this.Qn},set:function(a){this.Qn=a}},oldValue:{get:function(){return this.Sn},set:function(a){this.Sn=a}},oldParam:{get:function(){return this.Rn},set:function(a){this.Rn=a}},newValue:{get:function(){return this.Mn},set:function(a){this.Mn=a}},newParam:{get:function(){return this.Ln},set:function(a){this.Ln=a}}}),Mr.prototype.redo=Mr.prototype.redo,Mr.prototype.canRedo=Mr.prototype.canRedo,Mr.prototype.undo=Mr.prototype.undo,Mr.prototype.canUndo=Mr.prototype.canUndo,Mr.prototype.getParam=Mr.prototype.Dz,Mr.prototype.getValue=Mr.prototype.I,Mr.prototype.clear=Mr.prototype.clear;var Bs=new sn(Mr,"Transaction",-1),Er=new sn(Mr,"Property",0),Ur=new sn(Mr,"Insert",1),na=new sn(Mr,"Remove",2);Mr.className="ChangedEvent",Mr.Transaction=Bs,Mr.Property=Er,Mr.Insert=Ur,Mr.Remove=na;function mr(){this.o=new Ln().freeze(),this.xa="",this.j=!1}mr.prototype.toString=function(a){var y="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(a!==void 0&&0y&&a.cd(y,E),y++);for(;a.length>y;)a.pop();a.freeze()}},Vt.Object.defineProperties(mr.prototype,{changes:{get:function(){return this.o}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isComplete:{get:function(){return this.j},set:function(a){this.j=a}}}),mr.prototype.optimize=mr.prototype.ak,mr.prototype.redo=mr.prototype.redo,mr.prototype.canRedo=mr.prototype.canRedo,mr.prototype.undo=mr.prototype.undo,mr.prototype.canUndo=mr.prototype.canUndo,mr.prototype.clear=mr.prototype.clear,mr.className="Transaction";function Lr(){this.Pt=new bn,this.Jd=!1,this.u=new Ln().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new Ln().freeze(),this.hl=new Ln,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}Lr.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var x=this.nestedTransactionNames.count,E=0;Ea.transactionLevel&&Xe("Ending transaction without having started a transaction: "+x);var E=a.transactionLevel===1,b=a.currentTransaction;E&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,b));var z=0;if(0=E&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),E===0||y.count!==0&&y.get(y.count-1)===b||(y.add(b),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,b);else{a.Fe=!0;try{a.isEnabled&&b!==null&&(b.isComplete=!0,b.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,b),a.Fe=!1}b!==null&&b.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&b!==null){for(a=z,x=b.changes,b=x.count-1;b>=a;b--)y=x.M(b),y!==null&&y.undo(),x.ka(),x.mb(b);x.freeze()}return!1}Ct.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var a=this.history;a.ka();for(var y=a.count-1;y>this.historyIndex;y--){var x=a.M(y);x!==null&&x.clear(),a.mb(y),this.rq=!0}a.freeze()}},Lr.prototype.canUndo=function(){if(!this.isEnabled||0=this.transactionLevel&&!this.tt&&(a=a.diagram,a!==null&&a.pi===!1||Xe("Change not within a transaction: "+x.toString()))}},Lr.prototype.skipsEvent=function(a){if(a===null||0>a.change.value)return!0;if(a=a.object,a===null)return!1;if(a.layer!==void 0){if(a=a.layer,a!==null&&a.isTemporary)return!0}else if(a.isTemporary)return!0;return!1},Vt.Object.defineProperties(Lr.prototype,{models:{get:function(){return this.Pt.iterator}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},transactionToUndo:{get:function(){return 0<=this.historyIndex&&this.historyIndex<=this.history.count-1?this.history.M(this.historyIndex):null}},transactionToRedo:{get:function(){return this.historyIndexb||Math.abs(y.y-a.y)>E},Vt.Object.defineProperties(Bo.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof Ue&&(this.H=a)}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},isActive:{get:function(){return this.nb},set:function(a){this.nb=a}},transactionResult:{get:function(){return this.wm},set:function(a){this.wm=a}}}),Bo.prototype.startTransaction=Bo.prototype.Ea,Bo.className="Tool";function yr(){Bo.call(this),this.name="ToolManager",this.hb=new Ln,this.ob=new Ln,this.Hb=new Ln,this.F=this.V=850,this.o=new Nn(2,2).ja(),this.Ha=5e3,this.ia=xh,this.u=Ne,this.Mp=this.j=null,this.zj=-1}Yt(yr,Bo),yr.prototype.initializeStandardTools=function(){},yr.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof jo&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},yr.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===Ze&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===qe){y.bubbles=!0;return}if(this.gestureBehavior===Ze)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,E=0;Eb.right&&(x.x-=E.width+5/y.scale),x.xb.bottom?x.y-(E.height+5/y.scale):x.y+20/y.scale,x.yx.pointsCount)){var E=a.diagram;if(!E.isReadOnly){var b=a.Oe;if(b!==null){var z=null,tt=null;x.fromNode===null&&(z=Fr(a,x.i(0),!1),z!==null&&(tt=z.part));var rt=null,at=null;x.toNode===null&&(rt=Fr(a,x.i(x.pointsCount-1),!0),rt!==null&&(at=rt.part)),b.isValidLink(tt,z,at,rt)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=tt,z!==null&&(x.fromPortId=z.portId),x.toNode=at,rt!==null&&(x.toPortId=rt.portId),x.fromPort!==E.Mx&&E.R("LinkRelinked",x,E.Mx),x.toPort!==E.Nx&&E.R("LinkRelinked",x,E.Nx)):qa(b,tt,z,at,rt):qa(b,null,null,null,null)}}}}ci.prototype.doDragOver=function(){};function Br(a,y){var x=a.diagram;a.dragsLink&&Rr(a,!0),wo(a);var E=a.findDragOverObject(y),b=x.lastInput;if(b.targetObject=E,E!==null){b.handled=!1;for(var z=E;z!==null;){var tt=z.mouseDrop;if(tt!==null&&(tt(b,z),b.handled))break;Ga(a,b,z),z=Sr(z)}}else z=x.mouseDrop,z!==null&&z(b);if(a.isActive||Ar!==null){for(b=(a.copiedParts||a.draggedParts).iterator;b.next();)z=b.key,z instanceof ri&&z.linksConnected.each(function(rt){rt.suspendsRouting=!1});if(a.doDropOnto(y,E),a.isActive||Ar!==null){for(a=on.alloc(),y=x.selection.iterator;y.next();)E=y.value,E instanceof ri&&Za(x,E,a);on.free(a)}}}function Ga(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof to||(x=a.mouseDrop,x!==null&&x(y))}function Za(a,y,x){var E=!1;if(x=y.getAvoidableRect(x),a.viewportBounds.Re(x)&&(E=!0),a=a.Nu(x,function(b){return b.part},function(b){return b instanceof Vn},!0,function(b){return b instanceof Vn},E),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}ci.prototype.doDropOnto=function(){},ci.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;this.simulatedMouseMove(y.event,y.documentPoint,y.targetDiagram)||this.currentPart===null||this.draggedParts===null||(this.mayCopy()?(li(this,!1),Sg(a,this.copiedParts),Qo(this,this.copiedParts,!1),dc(a,this.copiedParts)):this.mayMove()?(Gi(this),Qo(this,this.draggedParts,!0)):this.mayDragOut()?(li(this,!1),Qo(this,this.copiedParts,!1)):Gi(this),Fo(this,a.lastInput.documentPoint))}},ci.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;if(!this.simulatedMouseUp(y.event,y.documentPoint,y.targetDiagram)){y=!1;var x=this.mayCopy();if(x&&this.copiedParts!==null?(Gi(this),li(this,!0),Sg(a,this.copiedParts),Qo(this,this.copiedParts,!1),dc(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0}))):(y=!0,Gi(this),this.mayMove()&&(Qo(this,this.draggedParts,!0),Fo(this,a.lastInput.documentPoint))),this.Ym=!0,Br(this,a.lastInput.documentPoint),this.isActive){var E=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&Pa(this),a.Ya(),dc(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",E)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},ci.prototype.simulatedMouseMove=function(a,y,x){if(Ar===null)return!1;var E=Ar.diagram;x instanceof Ue||(x=null);var b=Ta;return x!==b&&(b!==null&&b!==E&&(b.ug(),Ar.isDragOutStarted=!1,b=b.toolManager.findTool("Dragging"),b!==null&&b.doSimulatedDragLeave()),Ta=x,x!==null&&x!==E&&($i(),b=x.toolManager.findTool("Dragging"),b!==null&&(Xi.contains(b)||Xi.add(b),b.doSimulatedDragEnter())),this.doUpdateCursor(null)),x===null||x===E||!x.allowDrop||x.isReadOnly||!x.allowInsert?!1:(E=x.toolManager.findTool("Dragging"),E!==null&&(a!==null&&(a.targetTouches!==void 0&&(0tt&&(tt=lt),ht>rt&&(rt=ht))}}for(E===1/0?z.h(0,0,0,0):z.h(E,b,tt-E,rt-b),E=z.x+z.width/2,b=z.y+z.height/2,on.free(z),z=a.Fr,tt=new hi,rt=Ot.alloc(),at=y.iterator;at.next();)lt=at.value,lt instanceof Vn&<.canCopy()&&(ht=x.I(lt),ht!==null&&(ht.points=lt.points,Rh(ht,z.x-E,z.y-b),ht.suspendsRouting=!0,tt.add(ht,a.Pd())));for(y=y.iterator;y.next();)lt=y.value,lt.Zc()&<.canCopy()&&(at=x.I(lt),at!==null&&(lt=lt.location,rt.h(z.x-(E-lt.x),z.y-(b-lt.y)),at.location=rt,at.Va(),tt.add(at,a.Pd(rt))));Ot.free(rt),a.copiedParts=tt,Zi(a,tt.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Rh(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}ci.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},ci.prototype.computeMove=function(a,y,x,E){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,E):new Ot},Vt.Object.defineProperties(ci.prototype,{isCopyEnabled:{get:function(){return this.ob},set:function(a){this.ob=a}},copiesEffectiveCollection:{get:function(){return this.u},set:function(a){this.u=a}},dragOptions:{get:function(){return this.ia},set:function(a){this.ia=a}},isGridSnapEnabled:{get:function(){return this.dragOptions.isGridSnapEnabled},set:function(a){this.dragOptions.isGridSnapEnabled=a}},isComplexRoutingRealtime:{get:function(){return this.hb},set:function(a){this.hb=a}},isGridSnapRealtime:{get:function(){return this.dragOptions.isGridSnapRealtime},set:function(a){this.dragOptions.isGridSnapRealtime=a}},gridSnapCellSize:{get:function(){return this.dragOptions.gridSnapCellSize},set:function(a){this.dragOptions.gridSnapCellSize.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSize=a)}},gridSnapCellSpot:{get:function(){return this.dragOptions.gridSnapCellSpot},set:function(a){this.dragOptions.gridSnapCellSpot.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSpot=a)}},gridSnapOrigin:{get:function(){return this.dragOptions.gridSnapOrigin},set:function(a){this.dragOptions.gridSnapOrigin.D(a)||(a=a.J(),this.dragOptions.gridSnapOrigin=a)}},dragsLink:{get:function(){return this.dragOptions.dragsLink},set:function(a){this.dragOptions.dragsLink=a}},dragsTree:{get:function(){return this.dragOptions.dragsTree},set:function(a){this.dragOptions.dragsTree=a}},copyCursor:{get:function(){return this.F},set:function(a){this.F=a}},moveCursor:{get:function(){return this.Oc},set:function(a){this.Oc=a}},nodropCursor:{get:function(){return this.Pc},set:function(a){this.Pc=a}},currentPart:{get:function(){return this.V},set:function(a){this.V=a}},copiedParts:{get:function(){return this.o},set:function(a){this.o=a}},draggedParts:{get:function(){return this.Ha},set:function(a){this.Ha=a}},draggingParts:{get:function(){return this.copiedParts!==null?this.copiedParts.Lf():this.draggedParts!==null?this.draggedParts.Lf():this.te}},draggedLink:{get:function(){return this.diagram.draggedLink},set:function(a){this.diagram.draggedLink=a}},isDragOutStarted:{get:function(){return this.Hb},set:function(a){this.Hb=a}},startPoint:{get:function(){return this.Fr},set:function(a){this.Fr.D(a)||this.Fr.assign(a)}},delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}}}),ci.prototype.getDraggingSource=ci.prototype.Az;var Ar=null,Ta=null;ci.className="DraggingTool",Xi=new Ln,Hi("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),yr.prototype.doCancel=function(){Ar!==null&&Ar.doCancel(),Bo.prototype.doCancel.call(this)};function oo(){Bo.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Vn,y=new lo;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new lo,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new ri,y=new lo,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Wi,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new ri,y=new lo,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Wi,a.add(y),a.selectable=!1,a.layerName="Tool",this.Di=a,this.o=y,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new hi,this.Of=this.gj=this.Pf=null}Yt(oo,Bo),oo.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},oo.prototype.copyPortProperties=function(a,y,x,E,b){if(a!==null&&y!==null&&x!==null&&E!==null){var z=y.Df(),tt=Nn.alloc();tt.width=y.naturalBounds.width*z,tt.height=y.naturalBounds.height*z,E.desiredSize=tt,Nn.free(tt),b?(E.toSpot=y.toSpot,E.toEndSegmentLength=y.toEndSegmentLength):(E.fromSpot=y.fromSpot,E.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=Wo,z=Ot.alloc(),x.location=y.ga(Wo,z),Ot.free(z),E.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,E,b)}},oo.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=Wi,y.fromSpot=ir,y.toSpot=ir),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},oo.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},oo.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof ri){var y=this.targetPort.part;this.isForwards?this.copyPortProperties(y,this.targetPort,this.temporaryToNode,this.temporaryToPort,!0):this.copyPortProperties(y,this.targetPort,this.temporaryFromNode,this.temporaryFromPort,!1)}else this.isForwards?this.setNoTargetPortProperties(this.temporaryToNode,this.temporaryToPort,!0):this.setNoTargetPortProperties(this.temporaryFromNode,this.temporaryFromPort,!1);(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},oo.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof ri))return null;for(;a!==null;){var E=y?a.toLinkable:a.fromLinkable;if(E===!0&&(a.portId!==null||a instanceof ri)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(E===!1)break;a=a.panel}return null},oo.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,E=this.portGravity;0>=E&&(E=.1);var b=this,z=y.og(x,E,function(ft){return b.findValidLinkablePort(ft,a)},null,!0);for(E=1/0,y=null,z=z.iterator;z.next();){var tt=z.value,rt=tt.part;if(rt instanceof ri){var at=tt.ga(Wo,Ot.alloc()),lt=x.x-at.x,ht=x.y-at.y;Ot.free(at),at=lt*lt+ht*ht,atx){if(this.originalLink!==null&&a===this.originalFromNode&&y===this.originalFromPort)return!0;if(y=y.portId,y===null&&(y=""),a.Mo(y).count>=x)return!1}return!0},oo.prototype.isValidTo=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.toLinkable!==!0))return!1;var x=y.toMaxLinks;if(1/0>x){if(this.originalLink!==null&&a===this.originalToNode&&y===this.originalToPort)return!0;if(y=y.portId,y===null&&(y=""),a.Sd(y).count>=x)return!1}return!0},oo.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},oo.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof ri))return!1;a=a.portId,a===null&&(a="");var E=y.part;if(!(E instanceof ri))return!1;for(y=y.portId,y===null&&(y=""),y=E.Sd(y);y.next();)if(E=y.value,E.fromNode===x&&E.fromPortId===a)return!0;return!1},oo.prototype.isValidLink=function(a,y,x,E){if(!this.isValidFrom(a,y)||!this.isValidTo(x,E)||!(y===null||E===null||(y.fromLinkableSelfNode&&E.toLinkableSelfNode||!this.isInSameNode(y,E))&&(y.fromLinkableDuplicates&&E.toLinkableDuplicates||!this.isLinked(y,E)))||this.originalLink!==null&&(a!==null&&this.isLabelDependentOnLink(a,this.originalLink)||x!==null&&this.isLabelDependentOnLink(x,this.originalLink))||a!==null&&x!==null&&(a.data===null&&x.data!==null||a.data!==null&&x.data===null)||!this.isValidCycle(a,x,this.originalLink))return!1;if(a!==null){var b=a.linkValidation;if(b!==null&&!b(a,y,x,E,this.originalLink))return!1}return x!==null&&(b=x.linkValidation,b!==null&&!b(a,y,x,E,this.originalLink))?!1:(b=this.linkValidation,b!==null?b(a,y,x,E,this.originalLink):!0)},oo.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var x=a.labeledLink;if(x===null)return!1;if(x===y)return!0;var E=new bn;return E.add(a),Ro(this,x,y,E)};function Ro(a,y,x,E){if(y===x)return!0;var b=y.fromNode;return b!==null&&b.isLinkLabel&&(E.add(b),Ro(a,b.labeledLink,x,E))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(E.add(y),Ro(a,y.labeledLink,x,E))))}oo.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var E=this.diagram.validCycle;if(E!==Td){if(E===Uf){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=y.linksConnected;E.next();){var b=E.value;if(b!==x&&b.isTreeLink&&b.toNode===y)return!1}return!Go(this,a,y,x,!0)}if(E===Vf){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=a.linksConnected;E.next();)if(b=E.value,b!==x&&b.isTreeLink&&b.fromNode===a)return!1;return!Go(this,a,y,x,!0)}if(E===Wf)return a===y?a=!0:(E=new bn,E.add(y),a=Jo(this,E,a,y,x)),!a;if(E===Gf)return!Go(this,a,y,x,!1);if(E===Zf)return a===y?a=!0:(E=new bn,E.add(y),a=Ia(this,E,a,y,x)),!a}return!0};function Go(a,y,x,E,b){if(y===x)return!0;if(y===null||x===null)return!1;for(var z=y.linksConnected;z.next();){var tt=z.value;if(tt!==E&&(!b||tt.isTreeLink)&&tt.toNode===y&&(tt=tt.fromNode,tt!==y&&Go(a,tt,x,E,b)))return!0}return!1}function Jo(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==b&&tt.toNode===x&&(tt=tt.fromNode,tt!==x&&Jo(a,y,tt,E,b)))return!0}return!1}function Ia(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==b){var rt=tt.fromNode;if(tt=tt.toNode,rt=rt===x?tt:rt,rt!==x&&Ia(a,y,rt,E,b))return!0}}return!1}Vt.Object.defineProperties(oo.prototype,{portGravity:{get:function(){return this.te},set:function(a){0<=a&&(this.te=a)}},isUnconnectedLinkValid:{get:function(){return this.Ha},set:function(a){this.Ha=a}},linkingCursor:{get:function(){return this.u},set:function(a){this.u=a}},temporaryLink:{get:function(){return this.Ci},set:function(a){this.Ci=a}},temporaryFromNode:{get:function(){return this.Bi},set:function(a){(this.Bi=a)&&(this.j=a.port)}},temporaryFromPort:{get:function(){return this.j},set:function(a){if(this.j!==null){var y=this.j.panel;if(y!==null){var x=y.O.indexOf(this.j);y.mb(x),y.Gb(x,a)}}this.j=a}},temporaryToNode:{get:function(){return this.Di},set:function(a){(this.Di=a)&&(this.o=a.port)}},temporaryToPort:{get:function(){return this.o},set:function(a){if(this.o!==null){var y=this.o.panel;if(y!==null){var x=y.O.indexOf(this.o);y.mb(x),y.Gb(x,a)}}this.o=a}},originalLink:{get:function(){return this.Hb},set:function(a){this.Hb=a}},originalFromNode:{get:function(){return this.hb},set:function(a){this.hb=a}},originalFromPort:{get:function(){return this.ob},set:function(a){this.ob=a}},originalToNode:{get:function(){return this.Oc},set:function(a){this.Oc=a}},originalToPort:{get:function(){return this.Pc},set:function(a){this.Pc=a}},isForwards:{get:function(){return this.ia},set:function(a){this.ia=a}},validPortsCache:{get:function(){return this.hy}},targetPort:{get:function(){return this.Pf},set:function(a){this.Pf=a}},linkValidation:{get:function(){return this.gj},set:function(a){this.gj=a}},portTargeted:{get:function(){return this.Of},set:function(a){this.Of=a}}}),oo.className="LinkingBaseTool";function rr(){oo.call(this),this.name="Linking",this.V={},this.F=null,this.K=Aa,this.Xd=null}Yt(rr,oo),rr.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return a.isReadOnly||a.isModelReadOnly||!a.allowLink||!a.model.xs()||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize()?!1:this.findLinkablePort()!==null},rr.prototype.findLinkablePort=function(){var a=this.diagram,y=this.startObject;if(y===null&&(y=a.ic(a.firstInput.documentPoint,null,null)),y===null||(a=y.part,!(a instanceof ri)))return null;var x=this.direction;if(x===Aa||x===ms){var E=this.findValidLinkablePort(y,!1);if(E!==null||this.startObject===a&&(E=a.port,this.findValidLinkablePort(E,!1)))return this.isForwards=!0,E}return(x===Aa||x===Ja)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},rr.prototype.doActivate=function(){var a=this.diagram,y=this.findLinkablePort();y===null?this.stopTool():(this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.isForwards?(this.temporaryToNode!==null&&(this.temporaryToNode.location=a.lastInput.documentPoint),this.originalFromPort=y,y=this.originalFromPort.part,y instanceof ri&&(this.originalFromNode=y),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(this.temporaryFromNode!==null&&(this.temporaryFromNode.location=a.lastInput.documentPoint),this.originalToPort=y,y=this.originalToPort.part,y instanceof ri&&(this.originalToNode=y),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),a.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),a.add(this.temporaryToNode),this.temporaryToNode&&this.temporaryToNode.Va(),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0)},rr.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},rr.prototype.doStop=function(){oo.prototype.doStop.call(this),this.startObject=null},rr.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,E=null,b=null,z=null;try{var tt=this.targetPort=this.findTargetPort(this.isForwards);if(tt!==null){var rt=tt.part;rt instanceof ri&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),E=rt,b=tt):(y=rt,x=tt,this.originalToNode!==null&&(E=this.originalToNode,b=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(E=this.originalToNode,b=this.originalToPort);y!==null||E!==null?(z=this.insertLink(y,x,E,b),z!==null?(tt===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),z.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",z)):this.doNoLink(y,x,E,b)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),z&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},rr.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof Vn)return a.isTreeLink;var y=this.diagram;return y===null?!0:(a=y.partManager.getLinkCategoryForData(a),y=y.partManager.findLinkTemplateForCategory(a),y!==null?y.isTreeLink:!0)},rr.prototype.insertLink=function(a,y,x,E){return this.diagram.partManager.insertLink(a,y,x,E)},rr.prototype.doNoLink=function(){},Vt.Object.defineProperties(rr.prototype,{archetypeLinkData:{get:function(){return this.V},set:function(a){this.V=a}},archetypeLabelNodeData:{get:function(){return this.F},set:function(a){this.F=a}},direction:{get:function(){return this.K},set:function(a){this.K=a}},startObject:{get:function(){return this.Xd},set:function(a){this.Xd=a}}});var Aa=new sn(rr,"Either",0),ms=new sn(rr,"ForwardsOnly",0),Ja=new sn(rr,"BackwardsOnly",0);rr.className="LinkingTool",rr.Either=Aa,rr.ForwardsOnly=ms,rr.BackwardsOnly=Ja;function Dr(){oo.call(this),this.name="Relinking";var a=new lo;a.figure="Diamond",a.desiredSize=Oi,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new lo,a.figure="Diamond",a.desiredSize=Oi,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new on}Yt(Dr,oo),Dr.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Vn){var y="RelinkFrom",x=null;if(a.isSelected&&!this.diagram.isReadOnly){var E=a.selectionObject;E!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null&&(x=this.makeAdornment(E,!1),a.bh(y,x)))}x===null&&a.Jf(y),y="RelinkTo",x=null,a.isSelected&&!this.diagram.isReadOnly&&(E=a.selectionObject,E!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null?(x=this.makeAdornment(E,!0),a.bh(y,x)):x.v())),x===null&&a.Jf(y)}},Dr.prototype.makeAdornment=function(a,y){var x=new jo;return x.type=zn.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},Dr.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowRelink||!a.model.xs()||!a.lastInput.left)return!1;var y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom");return y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo")),y!==null},Dr.prototype.doActivate=function(){var a=this.diagram;if(this.originalLink===null){var y=this.handle;if(y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom"),y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo"))),y===null)return;var x=y.part;if(!(x instanceof jo&&x.adornedPart instanceof Vn))return;this.handle=y,this.isForwards=x===null||x.category==="RelinkTo",this.originalLink=x.adornedPart}this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.originalFromPort=this.originalLink.fromPort,this.originalFromNode=this.originalLink.fromNode,this.originalToPort=this.originalLink.toPort,this.originalToNode=this.originalLink.toNode,this.Ew.set(this.originalLink.actualBounds),this.originalLink!==null&&0y.firstPickIndex+1&&x=x.x)y=0>=x.y?y+225:1<=x.y?y+135:y+180;else if(1<=x.x)0>=x.y?y+=315:1<=x.y&&(y+=45);else if(0>=x.y)y+=270;else if(1<=x.y)y+=90;else break t;0>y?y+=360:360<=y&&(y-=360),a.cursor=22.5>y?"e-resize":67.5>y?"se-resize":112.5>y?"s-resize":157.5>y?"sw-resize":202.5>y?"w-resize":247.5>y?"nw-resize":292.5>y?"n-resize":337.5>y?"ne-resize":"e-resize"}else if(a instanceof zn)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},Tr.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowResize&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},Tr.prototype.doActivate=function(){var a=this.diagram;this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null&&(this.adornedObject=this.handle.part.adornedObject,this.adornedObject!==null&&(a.isMouseCaptured=!0,a.animationManager.Cc(),this.Ea(this.name),this.Xq.set(this.adornedObject.ga(this.handle.alignment.gv())),this.Tn.set(this.adornedObject.part.location),this.Dw.set(this.adornedObject.desiredSize),this.pt=this.computeCellSize(),this.rt=this.computeMinSize(),this.qt=this.computeMaxSize(),this.isActive=!0))},Tr.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},Tr.prototype.stopTransaction=function(){var a=this.diagram,y=Bo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Tr.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},Tr.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,Ot.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),a.bd(),Ot.free(b)}},Tr.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,Ot.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),Ot.free(b),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},Tr.prototype.resize=function(a){var y=this.diagram,x=this.adornedObject;if(x!==null){if(x.desiredSize=a.size,a=x.part,a.Va(),x=x.ga(this.handle.alignment.gv()),a instanceof to){var E=new Ln;if(E.add(a),!this.dragsMembers&&a.placeholder===null){var b=new st;b.dragsMembers=!1}y.moveParts(E,this.oppositePoint.copy().re(x),!0,b)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},Tr.prototype.computeResize=function(a,y,x,E,b,z){y.Mc()&&(y=Wo);var tt=this.adornedObject.naturalBounds,rt=tt.x,at=tt.y,lt=tt.x+tt.width,ht=tt.y+tt.height,ft=1;if(!z){ft=tt.width;var vt=tt.height;0>=ft&&(ft=1),0>=vt&&(vt=1),ft=vt/ft}return vt=Ot.alloc(),Ie.No(a.x,a.y,rt,at,b.width,b.height,vt),a=tt.copy(),0>=y.x?0>=y.y?(a.x=Math.max(vt.x,lt-E.width),a.x=Math.min(a.x,lt-x.width),a.width=Math.max(lt-a.x,x.width),a.y=Math.max(vt.y,ht-E.height),a.y=Math.min(a.y,ht-x.height),a.height=Math.max(ht-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width),a.x=lt-a.width,a.y=ht-a.height)):1<=y.y?(a.x=Math.max(vt.x,lt-E.width),a.x=Math.min(a.x,lt-x.width),a.width=Math.max(lt-a.x,x.width),a.height=Math.max(Math.min(vt.y-at,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width),a.x=lt-a.width)):(a.x=Math.max(vt.x,lt-E.width),a.x=Math.min(a.x,lt-x.width),a.width=lt-a.x,z||(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft,a.y=at+.5*(ht-at-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(vt.x-rt,E.width),x.width),a.y=Math.max(vt.y,ht-E.height),a.y=Math.min(a.y,ht-x.height),a.height=Math.max(ht-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width),a.y=ht-a.height)):1<=y.y?(a.width=Math.max(Math.min(vt.x-rt,E.width),x.width),a.height=Math.max(Math.min(vt.y-at,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width))):(a.width=Math.max(Math.min(vt.x-rt,E.width),x.width),z||(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft,a.y=at+.5*(ht-at-a.height))):0>=y.y?(a.y=Math.max(vt.y,ht-E.height),a.y=Math.min(a.y,ht-x.height),a.height=ht-a.y,z||(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width,a.x=rt+.5*(lt-rt-a.width))):1<=y.y&&(a.height=Math.max(Math.min(vt.y-at,E.height),x.height),z||(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width,a.x=rt+.5*(lt-rt-a.width))),Ot.free(vt),a},Tr.prototype.computeReshape=function(){var a=In;return this.adornedObject instanceof lo&&(a=Ev(this.adornedObject)),!(a===vi||this.diagram.lastInput.shift)},Tr.prototype.computeMinSize=function(){var a=this.adornedObject.minSize.copy(),y=this.minSize;return!isNaN(y.width)&&y.width>a.width&&(a.width=y.width),!isNaN(y.height)&&y.height>a.height&&(a.height=y.height),a},Tr.prototype.computeMaxSize=function(){var a=this.adornedObject.maxSize.copy(),y=this.maxSize;return!isNaN(y.width)&&y.widthx?x+=360:360<=x&&(x-=360),x=Math.round(45*Math.round(x/45));var E=this.handleDistance;return x===0?y.x=a.naturalBounds.width+E:x===45?(y.x=a.naturalBounds.width+E,y.y=a.naturalBounds.height+E):x===90?y.y=a.naturalBounds.height+E:x===135?(y.x=-E,y.y=a.naturalBounds.height+E):x===180?y.x=-E:x===225?(y.x=-E,y.y=-E):x===270?y.y=-E:x===315&&(y.x=a.naturalBounds.width+E,y.y=-E),a.ga(y)},jr.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Ot(NaN,NaN),this.isActive=a.isMouseCaptured=!1},jr.prototype.stopTransaction=function(){var a=this.diagram,y=Bo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},jr.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},jr.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},jr.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){a.delaysLayout=!1;var y=this.computeRotate(a.lastInput.documentPoint);this.rotate(y),a.Ya(),this.transactionResult=this.name,a.R("PartRotated",this.adornedObject,this.originalAngle)}this.stopTool()},jr.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var x=y.locationObject,E=y.rotateObject;(x===E||x.rg(E))&&(x=this.Tn.copy(),y.location=x.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},jr.prototype.computeRotate=function(a){a=this.rotationPoint.ab(a)-this.handleAngle;var y=this.adornedObject.panel;y!==null&&(a-=y.li()),360<=a?a-=360:0>a&&(a+=360),y=Math.min(Math.abs(this.snapAngleMultiple),180);var x=Math.min(Math.abs(this.snapAngleEpsilon),y/2);return!this.diagram.lastInput.shift&&0y-x&&(a=(Math.floor(a/y)+1)*y)),360<=a?a-=360:0>a&&(a+=360),a},Vt.Object.defineProperties(jr.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof jo))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof jo)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},snapAngleMultiple:{get:function(){return this.ia},set:function(a){this.ia=a}},snapAngleEpsilon:{get:function(){return this.V},set:function(a){this.V=a}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(a){this.kr=a.copy()}},handleAngle:{get:function(){return this.u},set:function(a){this.u=a}},handleDistance:{get:function(){return this.F},set:function(a){this.F=a}}}),jr.className="RotatingTool",Hi("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function bs(){Bo.call(this),this.name="ClickSelecting"}Yt(bs,Bo),bs.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},bs.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},bs.className="ClickSelectingTool";function Ca(){Bo.call(this),this.name="Action",this.pk=null}Yt(Ca,Bo),Ca.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,x=a.ic(y.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E});return x!==null&&x.isActionable?(this.pk=x,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},Ca.prototype.doMouseDown=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionDown!==null&&y.actionDown(a,y))}else this.canStart()&&this.doActivate()},Ca.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionMove!==null&&y.actionMove(a,y))}},Ca.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;if(y===null)return;a.targetObject=y,y.actionUp!==null&&y.actionUp(a,y),this.standardMouseClick(function(x){for(;x.panel!==null&&(!x.isActionable||x!==y);)x=x.panel;return x},function(x){return x===y})}this.stopTool()},Ca.prototype.doCancel=function(){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionCancel!==null&&y.actionCancel(a,y),this.stopTool())},Ca.prototype.doStop=function(){this.pk=null},Ca.className="ActionTool";function Ua(){Bo.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Ot(0,0)}Yt(Ua,Bo),Ua.prototype.canStart=function(){if(!this.isEnabled||this.archetypeNodeData===null)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.lastInput.left||this.isBeyondDragSize())return!1;if(this.isDoubleClick){if(a.lastInput.clickCount===1&&(this.mw=a.lastInput.viewPoint.copy()),a.lastInput.clickCount!==2||this.isBeyondDragSize(this.mw))return!1}else if(a.lastInput.clickCount!==1)return!1;return!(a.currentTool!==this&&a.Ol(a.lastInput.documentPoint,!0)!==null)},Ua.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},Ua.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var E=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof Li)x.Zc()&&(zl(x),E=x.copy(),E!==null&&y.add(E));else if(x!==null){var b=y.model.copyNodeData(x);he(b)&&(y.model.xf(b),E=y.Lc(b))}if(E!==null){var z=Ot.allocAt(a.x,a.y);this.isGridSnapEnabled&&Cg(this.diagram,E,a,z),E.location=z,y.allowSelect&&(y.clearSelection(!0),E.isSelected=!0),Ot.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",E)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return E},Vt.Object.defineProperties(Ua.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){this.Ri=a}},isDoubleClick:{get:function(){return this.o},set:function(a){this.o=a}},isGridSnapEnabled:{get:function(){return this.j},set:function(a){this.j=a}}}),Ua.className="ClickCreatingTool";function qs(){Bo.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new Li;a.layerName="Tool",a.selectable=!1;var y=new lo;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}Yt(qs,Bo),qs.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(!a.allowSelect)return!1;var y=a.lastInput;return!(!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.timestamp-a.firstInput.timestampb.right&&(x.x-=E.width+5/y.scale),x.xb.bottom&&(x.y-=E.height+5/y.scale),x.ya.lastInput.clickCount)):!1},fr.prototype.doStart=function(){Ih=this,this.textBlock!==null&&this.doActivate()},fr.prototype.doActivate=function(){if(!this.isActive){var a=this.diagram;if(a!==null){var y=this.textBlock;if(y===null&&(y=a.ic(a.lastInput.documentPoint)),y!==null&&y instanceof cr&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=oh;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var E=new on(this.textBlock.ga(Or),this.textBlock.ga(Ka));a.tv(E),x.show(y,a,this),this.currentTextEditor=x}}}},fr.prototype.doCancel=function(){this.stopTool()},fr.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},fr.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Xo)},fr.prototype.acceptText=function(a){switch(a){case Xo:this.qa===Gc?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===oh||this.qa===Ed||this.qa===wd)&&(this.qa=mf,Hc(this));break;case Wc:case ls:case Ra:(ls!==a||this.textBlock.isMultiline!==!0)&&(this.qa===oh||this.qa===Ed||this.qa===wd)&&(this.qa=mf,Hc(this))}};function Hc(a){var y=a.textBlock,x=a.diagram,E=a.currentTextEditor;if(y!==null&&E!==null){var b=y.text,z="";E.valueFunction!==null&&(z=E.valueFunction()),a.isValidText(y,b,z)?(a.Ea(a.name),a.qa=Gc,a.transactionResult=a.name,y.text=z,a.doSuccess(b,z),x!==null&&x.R("TextEdited",y,b),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=Ed,a.doError(b,z))}}fr.prototype.doError=function(a,y){var x=this.textBlock;x.errorFunction!==null&&x.errorFunction(this,a,y),(a=this.currentTextEditor)&&a.show(x,this.diagram,this)},fr.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},fr.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=lu,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},fr.prototype.doStop=function(){Ih=null},fr.prototype.isValidText=function(a,y,x){var E=this.textValidation;return E!==null&&!E(a,y,x)?!1:(E=a.textValidation,!!(E===null||E(a,y,x)))},fr.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},Vt.Object.defineProperties(fr.prototype,{textBlock:{get:function(){return this.ia},set:function(a){this.ia=a}},currentTextEditor:{get:function(){return this.o},set:function(a){this.o=a}},defaultTextEditor:{get:function(){return this.j},set:function(a){this.j=a}},starting:{get:function(){return this.V},set:function(a){this.V=a}},textValidation:{get:function(){return this.vj},set:function(a){this.vj=a}},minimumEditorScale:{get:function(){return this.u},set:function(a){this.u=a}},selectsTextOnActivate:{get:function(){return this.F},set:function(a){this.F=a}},state:{get:function(){return this.qa},set:function(a){this.qa!==a&&(this.qa=a)}}}),fr.prototype.measureTemporaryTextBlock=fr.prototype.Lx;var Wc=new sn(fr,"LostFocus",0),Xo=new sn(fr,"MouseDown",1),Ra=new sn(fr,"Tab",2),ls=new sn(fr,"Enter",3),ic=new sn(fr,"SingleClick",0),ih=new sn(fr,"SingleClickSelected",1),Ph=new sn(fr,"DoubleClick",2),lu=new sn(fr,"StateNone",0),oh=new sn(fr,"StateActive",1),wd=new sn(fr,"StateEditing",2),mf=new sn(fr,"StateValidating",3),Ed=new sn(fr,"StateInvalid",4),Gc=new sn(fr,"StateValidated",5),Ih=null;fr.className="TextEditingTool",fr.LostFocus=Wc,fr.MouseDown=Xo,fr.Tab=Ra,fr.Enter=ls,fr.SingleClick=ic,fr.SingleClickSelected=ih,fr.DoubleClick=Ph,fr.StateNone=lu,fr.StateActive=oh,fr.StateEditing=wd,fr.StateValidating=mf,fr.StateInvalid=Ed,fr.StateValidated=Gc,Hi("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function _s(a){Id||(vf(),Id=!0),this.H=Tu,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=ah,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new bn,this.ce=new Va,this.ce.Yd=this,this.Ei=new bn,this.pu=new bn,this.Sr=new bn,this.pr=new bn,a&&Object.assign(this,a)}_s.prototype.Xe=function(a){this.H=a},_s.prototype.canStart=function(){return!0};function ku(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),Ya(a.H),a.zb=!0)}function dg(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,E=a.Zd.contains("Model");E&&(a.Ok=!0,a.Pk===ah?(y.isViewportUnconstrained=!0,y.vc.clear(),y.add(x,"position",x.position.copy().offset(0,-200),x.position),y.add(x,"opacity",0,1)):a.Pk===yf&&y.vc.clear(),a.Qw=!!(a.Pk===Md&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),E&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),Fd(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,E=y.vc.get(x),x.autoScale!==us&&E!==null&&(delete E.start.scale,delete E.end.scale),We.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&Ns(x),wf(x),a.zb=!1,y.start(),y.bc&&(Mh(a),x.Ya(),Af(y,0),Al(x,!0),oc(a),x.R("AnimationStarting",a)))}))}}function rh(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function gg(a,y,x,E){a.isTicking||rh(a)||y instanceof Vn&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,E,!1)}Ct=_s.prototype,Ct.fv=function(a){return this.ce.fv(a)},Ct.Xu=function(a){return this.ce.Xu(a)};function fg(a,y){function x(){if(0z?z+=360:at+=360),z=b(x,z,at-z,E)%360,tt=b(x,tt,lt-tt,E),rt=b(x,rt,ht-rt,E),x=b(x,a,y-a,E),"hsla("+z+", "+tt+"%, "+rt+"%, "+x+")"}function vf(){function a(x,E,b,z,tt,rt){x.position=new Ot(z(tt,E.x,b.x-E.x,rt),z(tt,E.y,b.y-E.y,rt))}var y=new hi;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,E,b,z,tt,rt){tta&&De(a,">= 1",_s,"duration"),this.Dg=a}},isAnimating:{get:function(){return this.bc}},isTicking:{get:function(){return this.vq}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a}},defaultAnimation:{get:function(){return this.ce}},activeAnimations:{get:function(){return this.Ei}},initialAnimationStyle:{get:function(){return this.Pk},set:function(a){this.Pk=a}}}),_s.prototype.stopAnimation=_s.prototype.Cc;var Pd=null,Id=!1,ah=new sn(_s,"Default",1),Md=new sn(_s,"AnimateLocations",2),yf=new sn(_s,"None",3);_s.className="AnimationManager",_s.defineAnimationEffect=function(a,y){Id||(vf(),Id=!0),Pd.add(a,y)},_s.Default=ah,_s.AnimateLocations=Md,_s.None=yf;function Va(a){this.vu=this.Nw=this.Yd=this.H=null,this.Xk=this.bc=this.j=!1,this.cn=this.Qd=0,this.Lp=this.ot=Zc,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=lr,this.vc=new hi,this.Tt=new hi,this.yl=new bn,this.Ut=new bn,this.dw=Bh,a&&Object.assign(this,a)}Va.prototype.suspend=function(){this.Xk=!0},Va.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,Ld(this,!0),Mh(this.Yd),Al(this.H),oc(this.Yd),this.H.redraw()};function Fd(a,y){if(a.Tt.clear(),a.Wk=!1,a.au=0,a.Gd=NaN,0a.cn?a.Gd:E-a.Qd;y&&(b=a.gw,ba.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function Af(a,y){for(var x=a.Gd,E=a.vc.iterator,b=a.Wk;E.next();){var z=E.key;if(!(z instanceof Se&&z.diagram===null)){var tt=E.value,rt=b?tt.end:tt.start;tt=b?tt.start:tt.end;var at=Pd,lt;for(lt in tt)lt==="position"&&(tt["position:placeholder"]||tt["position:nodeCollapse"])||at.get(lt)===null||at.get(lt)(z,rt[lt],tt[lt],a.Lp,y,x,a)}}}Ct.stop=function(){return this.bc?(this.Ml(!0),this):this},Ct.Ml=function(a){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var y=this.H,x=this.Yd;this.Xk=this.bc=x.Ok=!1,Mh(x);for(var E=this.vc,b=this.yl.iterator;b.next();)y.remove(b.value);for(b=this.Ut.iterator;b.next();)b.value.v();b=this.ho,E=E.iterator;for(var z=Pd;E.next();){var tt=E.key,rt=E.value,at=b?rt.end:rt.start,lt=b?rt.start:rt.end,ht=rt.Ku,ft;for(ft in lt)if(z.get(ft)!==null){var vt=ft;!rt.Hu||vt!=="position:nodeCollapse"&&vt!=="position:placeholder"||(vt="position"),z.get(vt)(tt,at[ft],ht[ft]!==void 0?ht[ft]:rt.Hu?at[ft]:lt[ft],this.Lp,this.Gd,this.Gd,this)}rt.Hu&&ht.location!==void 0&&tt instanceof Li&&(tt.location=ht.location),rt.nv&&tt instanceof Li&&tt.Zb(!1)}if(y.As.clear(),Dd(y,!1),y.Ya(),y.N(),Al(y,!0),x.defaultAnimation===this){for(ft=x.pr.iterator;ft.next();)b=ft.value,b.Tg!==null&&(b.points=b.Tg,b.Tg=null);x.pr.clear()}Al(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),oc(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),Fd(this,null),x.Ml(this),y.$b())}},Ct.Cj=function(a,y){var x=y.actualBounds,E=null;if(y instanceof to&&(E=y.placeholder),E!==null?(x=E.ga(Or),E=E.padding,x.x+=E.left,x.y+=E.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Ot(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof to)for(a=a.memberParts;a.next();)E=a.value,E instanceof ri&&this.Cj(E,y)},Ct.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof to&&(x=y.placeholder),x!==null){var E=x.ga(Or);x=x.padding,E.x+=x.left,E.y+=x.top,this.add(a,"position:placeholder",a.position,E,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),E=this.vc,E.contains(a)&&(E.I(a).nv=!0),a instanceof to)for(a=a.memberParts;a.next();)E=a.value,E instanceof ri&&this.Aj(E,y)}},Ct.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},Vt.Object.defineProperties(Va.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&De(a,">= 1",Va,"duration"),this.Dg=a}},reversible:{get:function(){return this.ho},set:function(a){this.ho=a}},runCount:{get:function(){return this.cu},set:function(a){0a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Y0(a,y,x,E){return a===E?y+x:x*(-Math.pow(2,-10*a/E)+1)+y}Va.className="Animation",Va.EaseLinear=function(a,y,x,E){return x*a/E+y},Va.EaseInOutQuad=Zc,Va.EaseInQuad=function(a,y,x,E){return x*(a/=E)*a+y},Va.EaseOutQuad=function(a,y,x,E){return-x*(a/=E)*(a-2)+y},Va.EaseInExpo=function(a,y,x,E){return a===0?y:x*Math.pow(2,10*(a/E-1))+y},Va.EaseOutExpo=Y0;function sc(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}sc.className="AnimationState";function Kl(a,y,x){this.xd=null,this.rf=a,this.so=x||Cf,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=lc))}Kl.prototype.copy=function(){var a=new Kl(this.rf);a.so=this.so;var y=this.uk;if(y!==null){var x={};y.duration!==void 0&&(x.duration=y.duration),y.finished!==void 0&&(x.finished=y.finished),y.easing!==void 0&&(x.easing=y.easing),a.uk=x}return a};function X0(a,y){a=a.uk,a!==null&&(a.duration&&(y.duration=a.duration),a.finished&&(y.finished=a.finished),a.easing&&(y.easing=a.easing))}Vt.Object.defineProperties(Kl.prototype,{propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},animationSettings:{get:function(){return this.uk},set:function(a){this.uk=a}},startCondition:{get:function(){return this.so},set:function(a){this.so=a}}});var Cf=new sn(Kl,"Default",1),lc=new sn(Kl,"Immediate",2),Uc=new sn(Kl,"Bundled",3);Kl.className="AnimationTrigger",Kl.Default=Cf,Kl.Immediate=lc,Kl.Bundled=Uc;function Fa(a){ao(this),this.H=null,this.Pa=new Ln,this.xa="",this.pb=1,this.o=!1,this.j=this.Uh=this.u=this.Oi=this.Ni=this.Mi=this.Li=this.Ji=this.Ki=this.Ii=this.Qi=this.Hi=this.Pi=this.Gi=this.Fi=!0,this.Zq=[],a&&Object.assign(this,a)}Ct=Fa.prototype,Ct.clear=function(){for(var a=this.Pa,y=0;y=a)return y;for(var x=0,E=0,b=0,z=0,tt=0,rt=this.Pa.iterator;rt.next();){var at=rt.value;at instanceof to?b++:at instanceof ri?E++:at instanceof Vn?z++:at instanceof jo?tt++:x++}if(rt="",0x.Oq||rt.height*b>x.Oq?y.gc(a,x):(b=y.actualBounds,z=y.naturalBounds,b.width===0||b.height===0||isNaN(b.x)||isNaN(b.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(Hr(y,a,y.areaBackground,!0,!0,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.areaBackground===null&&y.background===null&&(Hr(y,a,"rgba(0,0,0,0.3)",!0,!1,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),Hr(y,a,y.background,!0,!1,z,b),a.fillRect(0,0,z.width/2,z.height/2),x.ws()||(y=1/(x.m11*x.m22-x.m12*x.m21),a.transform(x.m22*y,-x.m12*y,-x.m21*y,x.m11*y,y*(x.m21*x.dy-x.m22*x.dx),y*(x.m12*x.dx-x.m11*x.dy)))))),E&&(a.restore(),a.Vc(!0))}},Ct.g=function(a,y,x,E,b){var z=this.diagram;z!==null&&z.cb(Er,a,this,y,x,E,b)},Ct.oi=function(a,y,x){var E=this.Pa;if(y.Ig=this,this===null&&os(y),a>=E.count)a=E.count;else if(E.M(a)===y)return-1;return E.Gb(a,y),y.Vo(x),E=this.diagram,E!==null&&(x?E.N():E.oi(y)),mg(this,a,y),a},Ct.pc=function(a,y,x){if(!x&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,x);var E=this.Pa;if(0>a||a>=E.length){if(a=E.indexOf(y),0>a)return-1}else if(E.M(a)!==y&&(a=E.indexOf(y),0>a))return-1;return y.Wo(x),E.mb(a),E=this.diagram,E!==null&&(x?E.N():E.pc(y)),y.Ig=null,os(y),a};function mg(a,y,x){if(y=Q0(a,y,x),x instanceof to&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var E=-1,b=a.Pa.s,z=b.length,tt=0;ttE&&rt.containingGroup===x&&(E=tt,0<=y))break}!(0>E)&&E=b)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var z=y-1,tt=NaN;0<=z&&(tt=a.M(z).zOrder,!!isNaN(tt));)z--;for(var rt=y+1,at=NaN;rtE)for(;;){if(z===-1||tt<=E){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(tt=NaN;0<=--z&&(tt=a.M(z).zOrder,isNaN(tt)););}else if(!isNaN(at)&&at=E){if(rt--,rt===y)break;return a.mb(y),a.Gb(rt,x),rt}for(at=NaN;++rta||1=a)return y;for(var x=this.Wa.iterator;x.next();)y+=` + `+this.history.M(E).toString(a-1);return y},Lr.prototype.clear=function(){var a=this.history;a.ka();for(var y=a.count-1;0<=y;y--){var x=a.M(y);x!==null&&x.clear()}a.clear(),this.Ce=-1,a.freeze(),this.Fe=!1,this.Np=null,this.bi=0,this.Ie.ka(),this.Ie.clear(),this.Ie.freeze(),this.hl.clear(),this.Dt=this.rq=this.Gt=this.Ft=!1},Lr.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},Ct=Lr.prototype,Ct.Xw=function(a){this.Pt.add(a)},Ct.Rx=function(a){this.Pt.remove(a)},Ct.Ea=function(a){if(a===void 0&&(a=""),a===null&&(a=""),this.isUndoingRedoing)return!1;this.tt===!0&&(this.tt=!1,this.bi++,this.isInternalTransaction||this.Ob("StartingFirstTransaction",a,this.currentTransaction),0a.transactionLevel&&Xe("Ending transaction without having started a transaction: "+x);var E=a.transactionLevel===1,b=a.currentTransaction;E&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,b));var z=0;if(0=E&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),E===0||y.count!==0&&y.get(y.count-1)===b||(y.add(b),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,b);else{a.Fe=!0;try{a.isEnabled&&b!==null&&(b.isComplete=!0,b.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,b),a.Fe=!1}b!==null&&b.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&b!==null){for(a=z,x=b.changes,b=x.count-1;b>=a;b--)y=x.M(b),y!==null&&y.undo(),x.ka(),x.mb(b);x.freeze()}return!1}Ct.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var a=this.history;a.ka();for(var y=a.count-1;y>this.historyIndex;y--){var x=a.M(y);x!==null&&x.clear(),a.mb(y),this.rq=!0}a.freeze()}},Lr.prototype.canUndo=function(){if(!this.isEnabled||0=this.transactionLevel&&!this.tt&&(a=a.diagram,a!==null&&a.pi===!1||Xe("Change not within a transaction: "+x.toString()))}},Lr.prototype.skipsEvent=function(a){if(a===null||0>a.change.value)return!0;if(a=a.object,a===null)return!1;if(a.layer!==void 0){if(a=a.layer,a!==null&&a.isTemporary)return!0}else if(a.isTemporary)return!0;return!1},Vt.Object.defineProperties(Lr.prototype,{models:{get:function(){return this.Pt.iterator}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},transactionToUndo:{get:function(){return 0<=this.historyIndex&&this.historyIndex<=this.history.count-1?this.history.M(this.historyIndex):null}},transactionToRedo:{get:function(){return this.historyIndexb||Math.abs(y.y-a.y)>E},Vt.Object.defineProperties(Bo.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof Ue&&(this.H=a)}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},isActive:{get:function(){return this.nb},set:function(a){this.nb=a}},transactionResult:{get:function(){return this.wm},set:function(a){this.wm=a}}}),Bo.prototype.startTransaction=Bo.prototype.Ea,Bo.className="Tool";function yr(){Bo.call(this),this.name="ToolManager",this.hb=new Ln,this.ob=new Ln,this.Hb=new Ln,this.F=this.V=850,this.o=new Nn(2,2).ja(),this.Ha=5e3,this.ia=xh,this.u=Ne,this.Mp=this.j=null,this.zj=-1}Yt(yr,Bo),yr.prototype.initializeStandardTools=function(){},yr.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof jo&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},yr.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===Ze&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===qe){y.bubbles=!0;return}if(this.gestureBehavior===Ze)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,E=0;Eb.right&&(x.x-=E.width+5/y.scale),x.xb.bottom?x.y-(E.height+5/y.scale):x.y+20/y.scale,x.yx.pointsCount)){var E=a.diagram;if(!E.isReadOnly){var b=a.Oe;if(b!==null){var z=null,tt=null;x.fromNode===null&&(z=Fr(a,x.i(0),!1),z!==null&&(tt=z.part));var rt=null,at=null;x.toNode===null&&(rt=Fr(a,x.i(x.pointsCount-1),!0),rt!==null&&(at=rt.part)),b.isValidLink(tt,z,at,rt)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=tt,z!==null&&(x.fromPortId=z.portId),x.toNode=at,rt!==null&&(x.toPortId=rt.portId),x.fromPort!==E.Mx&&E.R("LinkRelinked",x,E.Mx),x.toPort!==E.Nx&&E.R("LinkRelinked",x,E.Nx)):Ja(b,tt,z,at,rt):Ja(b,null,null,null,null)}}}}ci.prototype.doDragOver=function(){};function Br(a,y){var x=a.diagram;a.dragsLink&&Rr(a,!0),wo(a);var E=a.findDragOverObject(y),b=x.lastInput;if(b.targetObject=E,E!==null){b.handled=!1;for(var z=E;z!==null;){var tt=z.mouseDrop;if(tt!==null&&(tt(b,z),b.handled))break;Ga(a,b,z),z=Sr(z)}}else z=x.mouseDrop,z!==null&&z(b);if(a.isActive||Ar!==null){for(b=(a.copiedParts||a.draggedParts).iterator;b.next();)z=b.key,z instanceof ri&&z.linksConnected.each(function(rt){rt.suspendsRouting=!1});if(a.doDropOnto(y,E),a.isActive||Ar!==null){for(a=on.alloc(),y=x.selection.iterator;y.next();)E=y.value,E instanceof ri&&Za(x,E,a);on.free(a)}}}function Ga(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof to||(x=a.mouseDrop,x!==null&&x(y))}function Za(a,y,x){var E=!1;if(x=y.getAvoidableRect(x),a.viewportBounds.Re(x)&&(E=!0),a=a.Nu(x,function(b){return b.part},function(b){return b instanceof Vn},!0,function(b){return b instanceof Vn},E),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}ci.prototype.doDropOnto=function(){},ci.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;this.simulatedMouseMove(y.event,y.documentPoint,y.targetDiagram)||this.currentPart===null||this.draggedParts===null||(this.mayCopy()?(li(this,!1),Sg(a,this.copiedParts),Qo(this,this.copiedParts,!1),dc(a,this.copiedParts)):this.mayMove()?(Gi(this),Qo(this,this.draggedParts,!0)):this.mayDragOut()?(li(this,!1),Qo(this,this.copiedParts,!1)):Gi(this),Fo(this,a.lastInput.documentPoint))}},ci.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;if(!this.simulatedMouseUp(y.event,y.documentPoint,y.targetDiagram)){y=!1;var x=this.mayCopy();if(x&&this.copiedParts!==null?(Gi(this),li(this,!0),Sg(a,this.copiedParts),Qo(this,this.copiedParts,!1),dc(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0}))):(y=!0,Gi(this),this.mayMove()&&(Qo(this,this.draggedParts,!0),Fo(this,a.lastInput.documentPoint))),this.Ym=!0,Br(this,a.lastInput.documentPoint),this.isActive){var E=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&Pa(this),a.Ya(),dc(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",E)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},ci.prototype.simulatedMouseMove=function(a,y,x){if(Ar===null)return!1;var E=Ar.diagram;x instanceof Ue||(x=null);var b=Ta;return x!==b&&(b!==null&&b!==E&&(b.ug(),Ar.isDragOutStarted=!1,b=b.toolManager.findTool("Dragging"),b!==null&&b.doSimulatedDragLeave()),Ta=x,x!==null&&x!==E&&($i(),b=x.toolManager.findTool("Dragging"),b!==null&&(Xi.contains(b)||Xi.add(b),b.doSimulatedDragEnter())),this.doUpdateCursor(null)),x===null||x===E||!x.allowDrop||x.isReadOnly||!x.allowInsert?!1:(E=x.toolManager.findTool("Dragging"),E!==null&&(a!==null&&(a.targetTouches!==void 0&&(0tt&&(tt=lt),ht>rt&&(rt=ht))}}for(E===1/0?z.h(0,0,0,0):z.h(E,b,tt-E,rt-b),E=z.x+z.width/2,b=z.y+z.height/2,on.free(z),z=a.Fr,tt=new hi,rt=Ot.alloc(),at=y.iterator;at.next();)lt=at.value,lt instanceof Vn&<.canCopy()&&(ht=x.I(lt),ht!==null&&(ht.points=lt.points,Rh(ht,z.x-E,z.y-b),ht.suspendsRouting=!0,tt.add(ht,a.Pd())));for(y=y.iterator;y.next();)lt=y.value,lt.Zc()&<.canCopy()&&(at=x.I(lt),at!==null&&(lt=lt.location,rt.h(z.x-(E-lt.x),z.y-(b-lt.y)),at.location=rt,at.Va(),tt.add(at,a.Pd(rt))));Ot.free(rt),a.copiedParts=tt,Zi(a,tt.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Rh(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}ci.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},ci.prototype.computeMove=function(a,y,x,E){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,E):new Ot},Vt.Object.defineProperties(ci.prototype,{isCopyEnabled:{get:function(){return this.ob},set:function(a){this.ob=a}},copiesEffectiveCollection:{get:function(){return this.u},set:function(a){this.u=a}},dragOptions:{get:function(){return this.ia},set:function(a){this.ia=a}},isGridSnapEnabled:{get:function(){return this.dragOptions.isGridSnapEnabled},set:function(a){this.dragOptions.isGridSnapEnabled=a}},isComplexRoutingRealtime:{get:function(){return this.hb},set:function(a){this.hb=a}},isGridSnapRealtime:{get:function(){return this.dragOptions.isGridSnapRealtime},set:function(a){this.dragOptions.isGridSnapRealtime=a}},gridSnapCellSize:{get:function(){return this.dragOptions.gridSnapCellSize},set:function(a){this.dragOptions.gridSnapCellSize.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSize=a)}},gridSnapCellSpot:{get:function(){return this.dragOptions.gridSnapCellSpot},set:function(a){this.dragOptions.gridSnapCellSpot.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSpot=a)}},gridSnapOrigin:{get:function(){return this.dragOptions.gridSnapOrigin},set:function(a){this.dragOptions.gridSnapOrigin.D(a)||(a=a.J(),this.dragOptions.gridSnapOrigin=a)}},dragsLink:{get:function(){return this.dragOptions.dragsLink},set:function(a){this.dragOptions.dragsLink=a}},dragsTree:{get:function(){return this.dragOptions.dragsTree},set:function(a){this.dragOptions.dragsTree=a}},copyCursor:{get:function(){return this.F},set:function(a){this.F=a}},moveCursor:{get:function(){return this.Oc},set:function(a){this.Oc=a}},nodropCursor:{get:function(){return this.Pc},set:function(a){this.Pc=a}},currentPart:{get:function(){return this.V},set:function(a){this.V=a}},copiedParts:{get:function(){return this.o},set:function(a){this.o=a}},draggedParts:{get:function(){return this.Ha},set:function(a){this.Ha=a}},draggingParts:{get:function(){return this.copiedParts!==null?this.copiedParts.Lf():this.draggedParts!==null?this.draggedParts.Lf():this.te}},draggedLink:{get:function(){return this.diagram.draggedLink},set:function(a){this.diagram.draggedLink=a}},isDragOutStarted:{get:function(){return this.Hb},set:function(a){this.Hb=a}},startPoint:{get:function(){return this.Fr},set:function(a){this.Fr.D(a)||this.Fr.assign(a)}},delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}}}),ci.prototype.getDraggingSource=ci.prototype.Az;var Ar=null,Ta=null;ci.className="DraggingTool",Xi=new Ln,Hi("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),yr.prototype.doCancel=function(){Ar!==null&&Ar.doCancel(),Bo.prototype.doCancel.call(this)};function oo(){Bo.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Vn,y=new lo;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new lo,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new ri,y=new lo,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Wi,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new ri,y=new lo,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Wi,a.add(y),a.selectable=!1,a.layerName="Tool",this.Di=a,this.o=y,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new hi,this.Of=this.gj=this.Pf=null}Yt(oo,Bo),oo.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},oo.prototype.copyPortProperties=function(a,y,x,E,b){if(a!==null&&y!==null&&x!==null&&E!==null){var z=y.Df(),tt=Nn.alloc();tt.width=y.naturalBounds.width*z,tt.height=y.naturalBounds.height*z,E.desiredSize=tt,Nn.free(tt),b?(E.toSpot=y.toSpot,E.toEndSegmentLength=y.toEndSegmentLength):(E.fromSpot=y.fromSpot,E.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=Wo,z=Ot.alloc(),x.location=y.ga(Wo,z),Ot.free(z),E.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,E,b)}},oo.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=Wi,y.fromSpot=ir,y.toSpot=ir),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},oo.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},oo.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof ri){var y=this.targetPort.part;this.isForwards?this.copyPortProperties(y,this.targetPort,this.temporaryToNode,this.temporaryToPort,!0):this.copyPortProperties(y,this.targetPort,this.temporaryFromNode,this.temporaryFromPort,!1)}else this.isForwards?this.setNoTargetPortProperties(this.temporaryToNode,this.temporaryToPort,!0):this.setNoTargetPortProperties(this.temporaryFromNode,this.temporaryFromPort,!1);(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},oo.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof ri))return null;for(;a!==null;){var E=y?a.toLinkable:a.fromLinkable;if(E===!0&&(a.portId!==null||a instanceof ri)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(E===!1)break;a=a.panel}return null},oo.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,E=this.portGravity;0>=E&&(E=.1);var b=this,z=y.og(x,E,function(ft){return b.findValidLinkablePort(ft,a)},null,!0);for(E=1/0,y=null,z=z.iterator;z.next();){var tt=z.value,rt=tt.part;if(rt instanceof ri){var at=tt.ga(Wo,Ot.alloc()),lt=x.x-at.x,ht=x.y-at.y;Ot.free(at),at=lt*lt+ht*ht,atx){if(this.originalLink!==null&&a===this.originalFromNode&&y===this.originalFromPort)return!0;if(y=y.portId,y===null&&(y=""),a.Mo(y).count>=x)return!1}return!0},oo.prototype.isValidTo=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.toLinkable!==!0))return!1;var x=y.toMaxLinks;if(1/0>x){if(this.originalLink!==null&&a===this.originalToNode&&y===this.originalToPort)return!0;if(y=y.portId,y===null&&(y=""),a.Sd(y).count>=x)return!1}return!0},oo.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},oo.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof ri))return!1;a=a.portId,a===null&&(a="");var E=y.part;if(!(E instanceof ri))return!1;for(y=y.portId,y===null&&(y=""),y=E.Sd(y);y.next();)if(E=y.value,E.fromNode===x&&E.fromPortId===a)return!0;return!1},oo.prototype.isValidLink=function(a,y,x,E){if(!this.isValidFrom(a,y)||!this.isValidTo(x,E)||!(y===null||E===null||(y.fromLinkableSelfNode&&E.toLinkableSelfNode||!this.isInSameNode(y,E))&&(y.fromLinkableDuplicates&&E.toLinkableDuplicates||!this.isLinked(y,E)))||this.originalLink!==null&&(a!==null&&this.isLabelDependentOnLink(a,this.originalLink)||x!==null&&this.isLabelDependentOnLink(x,this.originalLink))||a!==null&&x!==null&&(a.data===null&&x.data!==null||a.data!==null&&x.data===null)||!this.isValidCycle(a,x,this.originalLink))return!1;if(a!==null){var b=a.linkValidation;if(b!==null&&!b(a,y,x,E,this.originalLink))return!1}return x!==null&&(b=x.linkValidation,b!==null&&!b(a,y,x,E,this.originalLink))?!1:(b=this.linkValidation,b!==null?b(a,y,x,E,this.originalLink):!0)},oo.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var x=a.labeledLink;if(x===null)return!1;if(x===y)return!0;var E=new bn;return E.add(a),Ro(this,x,y,E)};function Ro(a,y,x,E){if(y===x)return!0;var b=y.fromNode;return b!==null&&b.isLinkLabel&&(E.add(b),Ro(a,b.labeledLink,x,E))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(E.add(y),Ro(a,y.labeledLink,x,E))))}oo.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var E=this.diagram.validCycle;if(E!==Td){if(E===Uf){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=y.linksConnected;E.next();){var b=E.value;if(b!==x&&b.isTreeLink&&b.toNode===y)return!1}return!Go(this,a,y,x,!0)}if(E===Vf){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=a.linksConnected;E.next();)if(b=E.value,b!==x&&b.isTreeLink&&b.fromNode===a)return!1;return!Go(this,a,y,x,!0)}if(E===Wf)return a===y?a=!0:(E=new bn,E.add(y),a=Jo(this,E,a,y,x)),!a;if(E===Gf)return!Go(this,a,y,x,!1);if(E===Zf)return a===y?a=!0:(E=new bn,E.add(y),a=Ia(this,E,a,y,x)),!a}return!0};function Go(a,y,x,E,b){if(y===x)return!0;if(y===null||x===null)return!1;for(var z=y.linksConnected;z.next();){var tt=z.value;if(tt!==E&&(!b||tt.isTreeLink)&&tt.toNode===y&&(tt=tt.fromNode,tt!==y&&Go(a,tt,x,E,b)))return!0}return!1}function Jo(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==b&&tt.toNode===x&&(tt=tt.fromNode,tt!==x&&Jo(a,y,tt,E,b)))return!0}return!1}function Ia(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==b){var rt=tt.fromNode;if(tt=tt.toNode,rt=rt===x?tt:rt,rt!==x&&Ia(a,y,rt,E,b))return!0}}return!1}Vt.Object.defineProperties(oo.prototype,{portGravity:{get:function(){return this.te},set:function(a){0<=a&&(this.te=a)}},isUnconnectedLinkValid:{get:function(){return this.Ha},set:function(a){this.Ha=a}},linkingCursor:{get:function(){return this.u},set:function(a){this.u=a}},temporaryLink:{get:function(){return this.Ci},set:function(a){this.Ci=a}},temporaryFromNode:{get:function(){return this.Bi},set:function(a){(this.Bi=a)&&(this.j=a.port)}},temporaryFromPort:{get:function(){return this.j},set:function(a){if(this.j!==null){var y=this.j.panel;if(y!==null){var x=y.O.indexOf(this.j);y.mb(x),y.Gb(x,a)}}this.j=a}},temporaryToNode:{get:function(){return this.Di},set:function(a){(this.Di=a)&&(this.o=a.port)}},temporaryToPort:{get:function(){return this.o},set:function(a){if(this.o!==null){var y=this.o.panel;if(y!==null){var x=y.O.indexOf(this.o);y.mb(x),y.Gb(x,a)}}this.o=a}},originalLink:{get:function(){return this.Hb},set:function(a){this.Hb=a}},originalFromNode:{get:function(){return this.hb},set:function(a){this.hb=a}},originalFromPort:{get:function(){return this.ob},set:function(a){this.ob=a}},originalToNode:{get:function(){return this.Oc},set:function(a){this.Oc=a}},originalToPort:{get:function(){return this.Pc},set:function(a){this.Pc=a}},isForwards:{get:function(){return this.ia},set:function(a){this.ia=a}},validPortsCache:{get:function(){return this.hy}},targetPort:{get:function(){return this.Pf},set:function(a){this.Pf=a}},linkValidation:{get:function(){return this.gj},set:function(a){this.gj=a}},portTargeted:{get:function(){return this.Of},set:function(a){this.Of=a}}}),oo.className="LinkingBaseTool";function rr(){oo.call(this),this.name="Linking",this.V={},this.F=null,this.K=Aa,this.Xd=null}Yt(rr,oo),rr.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return a.isReadOnly||a.isModelReadOnly||!a.allowLink||!a.model.xs()||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize()?!1:this.findLinkablePort()!==null},rr.prototype.findLinkablePort=function(){var a=this.diagram,y=this.startObject;if(y===null&&(y=a.ic(a.firstInput.documentPoint,null,null)),y===null||(a=y.part,!(a instanceof ri)))return null;var x=this.direction;if(x===Aa||x===ms){var E=this.findValidLinkablePort(y,!1);if(E!==null||this.startObject===a&&(E=a.port,this.findValidLinkablePort(E,!1)))return this.isForwards=!0,E}return(x===Aa||x===Qa)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},rr.prototype.doActivate=function(){var a=this.diagram,y=this.findLinkablePort();y===null?this.stopTool():(this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.isForwards?(this.temporaryToNode!==null&&(this.temporaryToNode.location=a.lastInput.documentPoint),this.originalFromPort=y,y=this.originalFromPort.part,y instanceof ri&&(this.originalFromNode=y),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(this.temporaryFromNode!==null&&(this.temporaryFromNode.location=a.lastInput.documentPoint),this.originalToPort=y,y=this.originalToPort.part,y instanceof ri&&(this.originalToNode=y),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),a.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),a.add(this.temporaryToNode),this.temporaryToNode&&this.temporaryToNode.Va(),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0)},rr.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},rr.prototype.doStop=function(){oo.prototype.doStop.call(this),this.startObject=null},rr.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,E=null,b=null,z=null;try{var tt=this.targetPort=this.findTargetPort(this.isForwards);if(tt!==null){var rt=tt.part;rt instanceof ri&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),E=rt,b=tt):(y=rt,x=tt,this.originalToNode!==null&&(E=this.originalToNode,b=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(E=this.originalToNode,b=this.originalToPort);y!==null||E!==null?(z=this.insertLink(y,x,E,b),z!==null?(tt===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),z.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",z)):this.doNoLink(y,x,E,b)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),z&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},rr.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof Vn)return a.isTreeLink;var y=this.diagram;return y===null?!0:(a=y.partManager.getLinkCategoryForData(a),y=y.partManager.findLinkTemplateForCategory(a),y!==null?y.isTreeLink:!0)},rr.prototype.insertLink=function(a,y,x,E){return this.diagram.partManager.insertLink(a,y,x,E)},rr.prototype.doNoLink=function(){},Vt.Object.defineProperties(rr.prototype,{archetypeLinkData:{get:function(){return this.V},set:function(a){this.V=a}},archetypeLabelNodeData:{get:function(){return this.F},set:function(a){this.F=a}},direction:{get:function(){return this.K},set:function(a){this.K=a}},startObject:{get:function(){return this.Xd},set:function(a){this.Xd=a}}});var Aa=new sn(rr,"Either",0),ms=new sn(rr,"ForwardsOnly",0),Qa=new sn(rr,"BackwardsOnly",0);rr.className="LinkingTool",rr.Either=Aa,rr.ForwardsOnly=ms,rr.BackwardsOnly=Qa;function Dr(){oo.call(this),this.name="Relinking";var a=new lo;a.figure="Diamond",a.desiredSize=Oi,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new lo,a.figure="Diamond",a.desiredSize=Oi,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new on}Yt(Dr,oo),Dr.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Vn){var y="RelinkFrom",x=null;if(a.isSelected&&!this.diagram.isReadOnly){var E=a.selectionObject;E!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null&&(x=this.makeAdornment(E,!1),a.bh(y,x)))}x===null&&a.Jf(y),y="RelinkTo",x=null,a.isSelected&&!this.diagram.isReadOnly&&(E=a.selectionObject,E!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null?(x=this.makeAdornment(E,!0),a.bh(y,x)):x.v())),x===null&&a.Jf(y)}},Dr.prototype.makeAdornment=function(a,y){var x=new jo;return x.type=zn.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},Dr.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowRelink||!a.model.xs()||!a.lastInput.left)return!1;var y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom");return y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo")),y!==null},Dr.prototype.doActivate=function(){var a=this.diagram;if(this.originalLink===null){var y=this.handle;if(y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom"),y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo"))),y===null)return;var x=y.part;if(!(x instanceof jo&&x.adornedPart instanceof Vn))return;this.handle=y,this.isForwards=x===null||x.category==="RelinkTo",this.originalLink=x.adornedPart}this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.originalFromPort=this.originalLink.fromPort,this.originalFromNode=this.originalLink.fromNode,this.originalToPort=this.originalLink.toPort,this.originalToNode=this.originalLink.toNode,this.Ew.set(this.originalLink.actualBounds),this.originalLink!==null&&0y.firstPickIndex+1&&x=x.x)y=0>=x.y?y+225:1<=x.y?y+135:y+180;else if(1<=x.x)0>=x.y?y+=315:1<=x.y&&(y+=45);else if(0>=x.y)y+=270;else if(1<=x.y)y+=90;else break t;0>y?y+=360:360<=y&&(y-=360),a.cursor=22.5>y?"e-resize":67.5>y?"se-resize":112.5>y?"s-resize":157.5>y?"sw-resize":202.5>y?"w-resize":247.5>y?"nw-resize":292.5>y?"n-resize":337.5>y?"ne-resize":"e-resize"}else if(a instanceof zn)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},Tr.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowResize&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},Tr.prototype.doActivate=function(){var a=this.diagram;this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null&&(this.adornedObject=this.handle.part.adornedObject,this.adornedObject!==null&&(a.isMouseCaptured=!0,a.animationManager.Cc(),this.Ea(this.name),this.Xq.set(this.adornedObject.ga(this.handle.alignment.gv())),this.Tn.set(this.adornedObject.part.location),this.Dw.set(this.adornedObject.desiredSize),this.pt=this.computeCellSize(),this.rt=this.computeMinSize(),this.qt=this.computeMaxSize(),this.isActive=!0))},Tr.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},Tr.prototype.stopTransaction=function(){var a=this.diagram,y=Bo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Tr.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},Tr.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,Ot.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),a.bd(),Ot.free(b)}},Tr.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,Ot.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),Ot.free(b),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},Tr.prototype.resize=function(a){var y=this.diagram,x=this.adornedObject;if(x!==null){if(x.desiredSize=a.size,a=x.part,a.Va(),x=x.ga(this.handle.alignment.gv()),a instanceof to){var E=new Ln;if(E.add(a),!this.dragsMembers&&a.placeholder===null){var b=new st;b.dragsMembers=!1}y.moveParts(E,this.oppositePoint.copy().re(x),!0,b)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},Tr.prototype.computeResize=function(a,y,x,E,b,z){y.Mc()&&(y=Wo);var tt=this.adornedObject.naturalBounds,rt=tt.x,at=tt.y,lt=tt.x+tt.width,ht=tt.y+tt.height,ft=1;if(!z){ft=tt.width;var vt=tt.height;0>=ft&&(ft=1),0>=vt&&(vt=1),ft=vt/ft}return vt=Ot.alloc(),Ie.No(a.x,a.y,rt,at,b.width,b.height,vt),a=tt.copy(),0>=y.x?0>=y.y?(a.x=Math.max(vt.x,lt-E.width),a.x=Math.min(a.x,lt-x.width),a.width=Math.max(lt-a.x,x.width),a.y=Math.max(vt.y,ht-E.height),a.y=Math.min(a.y,ht-x.height),a.height=Math.max(ht-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width),a.x=lt-a.width,a.y=ht-a.height)):1<=y.y?(a.x=Math.max(vt.x,lt-E.width),a.x=Math.min(a.x,lt-x.width),a.width=Math.max(lt-a.x,x.width),a.height=Math.max(Math.min(vt.y-at,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width),a.x=lt-a.width)):(a.x=Math.max(vt.x,lt-E.width),a.x=Math.min(a.x,lt-x.width),a.width=lt-a.x,z||(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft,a.y=at+.5*(ht-at-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(vt.x-rt,E.width),x.width),a.y=Math.max(vt.y,ht-E.height),a.y=Math.min(a.y,ht-x.height),a.height=Math.max(ht-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width),a.y=ht-a.height)):1<=y.y?(a.width=Math.max(Math.min(vt.x-rt,E.width),x.width),a.height=Math.max(Math.min(vt.y-at,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width))):(a.width=Math.max(Math.min(vt.x-rt,E.width),x.width),z||(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft,a.y=at+.5*(ht-at-a.height))):0>=y.y?(a.y=Math.max(vt.y,ht-E.height),a.y=Math.min(a.y,ht-x.height),a.height=ht-a.y,z||(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width,a.x=rt+.5*(lt-rt-a.width))):1<=y.y&&(a.height=Math.max(Math.min(vt.y-at,E.height),x.height),z||(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width,a.x=rt+.5*(lt-rt-a.width))),Ot.free(vt),a},Tr.prototype.computeReshape=function(){var a=In;return this.adornedObject instanceof lo&&(a=Ev(this.adornedObject)),!(a===vi||this.diagram.lastInput.shift)},Tr.prototype.computeMinSize=function(){var a=this.adornedObject.minSize.copy(),y=this.minSize;return!isNaN(y.width)&&y.width>a.width&&(a.width=y.width),!isNaN(y.height)&&y.height>a.height&&(a.height=y.height),a},Tr.prototype.computeMaxSize=function(){var a=this.adornedObject.maxSize.copy(),y=this.maxSize;return!isNaN(y.width)&&y.widthx?x+=360:360<=x&&(x-=360),x=Math.round(45*Math.round(x/45));var E=this.handleDistance;return x===0?y.x=a.naturalBounds.width+E:x===45?(y.x=a.naturalBounds.width+E,y.y=a.naturalBounds.height+E):x===90?y.y=a.naturalBounds.height+E:x===135?(y.x=-E,y.y=a.naturalBounds.height+E):x===180?y.x=-E:x===225?(y.x=-E,y.y=-E):x===270?y.y=-E:x===315&&(y.x=a.naturalBounds.width+E,y.y=-E),a.ga(y)},jr.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Ot(NaN,NaN),this.isActive=a.isMouseCaptured=!1},jr.prototype.stopTransaction=function(){var a=this.diagram,y=Bo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},jr.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},jr.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},jr.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){a.delaysLayout=!1;var y=this.computeRotate(a.lastInput.documentPoint);this.rotate(y),a.Ya(),this.transactionResult=this.name,a.R("PartRotated",this.adornedObject,this.originalAngle)}this.stopTool()},jr.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var x=y.locationObject,E=y.rotateObject;(x===E||x.rg(E))&&(x=this.Tn.copy(),y.location=x.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},jr.prototype.computeRotate=function(a){a=this.rotationPoint.ab(a)-this.handleAngle;var y=this.adornedObject.panel;y!==null&&(a-=y.li()),360<=a?a-=360:0>a&&(a+=360),y=Math.min(Math.abs(this.snapAngleMultiple),180);var x=Math.min(Math.abs(this.snapAngleEpsilon),y/2);return!this.diagram.lastInput.shift&&0y-x&&(a=(Math.floor(a/y)+1)*y)),360<=a?a-=360:0>a&&(a+=360),a},Vt.Object.defineProperties(jr.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof jo))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof jo)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},snapAngleMultiple:{get:function(){return this.ia},set:function(a){this.ia=a}},snapAngleEpsilon:{get:function(){return this.V},set:function(a){this.V=a}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(a){this.kr=a.copy()}},handleAngle:{get:function(){return this.u},set:function(a){this.u=a}},handleDistance:{get:function(){return this.F},set:function(a){this.F=a}}}),jr.className="RotatingTool",Hi("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function bs(){Bo.call(this),this.name="ClickSelecting"}Yt(bs,Bo),bs.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},bs.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},bs.className="ClickSelectingTool";function Ca(){Bo.call(this),this.name="Action",this.pk=null}Yt(Ca,Bo),Ca.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,x=a.ic(y.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E});return x!==null&&x.isActionable?(this.pk=x,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},Ca.prototype.doMouseDown=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionDown!==null&&y.actionDown(a,y))}else this.canStart()&&this.doActivate()},Ca.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionMove!==null&&y.actionMove(a,y))}},Ca.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;if(y===null)return;a.targetObject=y,y.actionUp!==null&&y.actionUp(a,y),this.standardMouseClick(function(x){for(;x.panel!==null&&(!x.isActionable||x!==y);)x=x.panel;return x},function(x){return x===y})}this.stopTool()},Ca.prototype.doCancel=function(){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionCancel!==null&&y.actionCancel(a,y),this.stopTool())},Ca.prototype.doStop=function(){this.pk=null},Ca.className="ActionTool";function Ua(){Bo.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Ot(0,0)}Yt(Ua,Bo),Ua.prototype.canStart=function(){if(!this.isEnabled||this.archetypeNodeData===null)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.lastInput.left||this.isBeyondDragSize())return!1;if(this.isDoubleClick){if(a.lastInput.clickCount===1&&(this.mw=a.lastInput.viewPoint.copy()),a.lastInput.clickCount!==2||this.isBeyondDragSize(this.mw))return!1}else if(a.lastInput.clickCount!==1)return!1;return!(a.currentTool!==this&&a.Ol(a.lastInput.documentPoint,!0)!==null)},Ua.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},Ua.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var E=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof Li)x.Zc()&&(zl(x),E=x.copy(),E!==null&&y.add(E));else if(x!==null){var b=y.model.copyNodeData(x);he(b)&&(y.model.xf(b),E=y.Lc(b))}if(E!==null){var z=Ot.allocAt(a.x,a.y);this.isGridSnapEnabled&&Cg(this.diagram,E,a,z),E.location=z,y.allowSelect&&(y.clearSelection(!0),E.isSelected=!0),Ot.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",E)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return E},Vt.Object.defineProperties(Ua.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){this.Ri=a}},isDoubleClick:{get:function(){return this.o},set:function(a){this.o=a}},isGridSnapEnabled:{get:function(){return this.j},set:function(a){this.j=a}}}),Ua.className="ClickCreatingTool";function qs(){Bo.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new Li;a.layerName="Tool",a.selectable=!1;var y=new lo;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}Yt(qs,Bo),qs.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(!a.allowSelect)return!1;var y=a.lastInput;return!(!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.timestamp-a.firstInput.timestampb.right&&(x.x-=E.width+5/y.scale),x.xb.bottom&&(x.y-=E.height+5/y.scale),x.ya.lastInput.clickCount)):!1},fr.prototype.doStart=function(){Ih=this,this.textBlock!==null&&this.doActivate()},fr.prototype.doActivate=function(){if(!this.isActive){var a=this.diagram;if(a!==null){var y=this.textBlock;if(y===null&&(y=a.ic(a.lastInput.documentPoint)),y!==null&&y instanceof cr&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=oh;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var E=new on(this.textBlock.ga(Or),this.textBlock.ga(ts));a.tv(E),x.show(y,a,this),this.currentTextEditor=x}}}},fr.prototype.doCancel=function(){this.stopTool()},fr.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},fr.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Xo)},fr.prototype.acceptText=function(a){switch(a){case Xo:this.qa===Gc?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===oh||this.qa===Ed||this.qa===wd)&&(this.qa=mf,Hc(this));break;case Wc:case ls:case Ra:(ls!==a||this.textBlock.isMultiline!==!0)&&(this.qa===oh||this.qa===Ed||this.qa===wd)&&(this.qa=mf,Hc(this))}};function Hc(a){var y=a.textBlock,x=a.diagram,E=a.currentTextEditor;if(y!==null&&E!==null){var b=y.text,z="";E.valueFunction!==null&&(z=E.valueFunction()),a.isValidText(y,b,z)?(a.Ea(a.name),a.qa=Gc,a.transactionResult=a.name,y.text=z,a.doSuccess(b,z),x!==null&&x.R("TextEdited",y,b),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=Ed,a.doError(b,z))}}fr.prototype.doError=function(a,y){var x=this.textBlock;x.errorFunction!==null&&x.errorFunction(this,a,y),(a=this.currentTextEditor)&&a.show(x,this.diagram,this)},fr.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},fr.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=lu,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},fr.prototype.doStop=function(){Ih=null},fr.prototype.isValidText=function(a,y,x){var E=this.textValidation;return E!==null&&!E(a,y,x)?!1:(E=a.textValidation,!!(E===null||E(a,y,x)))},fr.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},Vt.Object.defineProperties(fr.prototype,{textBlock:{get:function(){return this.ia},set:function(a){this.ia=a}},currentTextEditor:{get:function(){return this.o},set:function(a){this.o=a}},defaultTextEditor:{get:function(){return this.j},set:function(a){this.j=a}},starting:{get:function(){return this.V},set:function(a){this.V=a}},textValidation:{get:function(){return this.vj},set:function(a){this.vj=a}},minimumEditorScale:{get:function(){return this.u},set:function(a){this.u=a}},selectsTextOnActivate:{get:function(){return this.F},set:function(a){this.F=a}},state:{get:function(){return this.qa},set:function(a){this.qa!==a&&(this.qa=a)}}}),fr.prototype.measureTemporaryTextBlock=fr.prototype.Lx;var Wc=new sn(fr,"LostFocus",0),Xo=new sn(fr,"MouseDown",1),Ra=new sn(fr,"Tab",2),ls=new sn(fr,"Enter",3),ic=new sn(fr,"SingleClick",0),ih=new sn(fr,"SingleClickSelected",1),Ph=new sn(fr,"DoubleClick",2),lu=new sn(fr,"StateNone",0),oh=new sn(fr,"StateActive",1),wd=new sn(fr,"StateEditing",2),mf=new sn(fr,"StateValidating",3),Ed=new sn(fr,"StateInvalid",4),Gc=new sn(fr,"StateValidated",5),Ih=null;fr.className="TextEditingTool",fr.LostFocus=Wc,fr.MouseDown=Xo,fr.Tab=Ra,fr.Enter=ls,fr.SingleClick=ic,fr.SingleClickSelected=ih,fr.DoubleClick=Ph,fr.StateNone=lu,fr.StateActive=oh,fr.StateEditing=wd,fr.StateValidating=mf,fr.StateInvalid=Ed,fr.StateValidated=Gc,Hi("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function _s(a){Id||(vf(),Id=!0),this.H=Tu,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=ah,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new bn,this.ce=new Va,this.ce.Yd=this,this.Ei=new bn,this.pu=new bn,this.Sr=new bn,this.pr=new bn,a&&Object.assign(this,a)}_s.prototype.Xe=function(a){this.H=a},_s.prototype.canStart=function(){return!0};function ku(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),Ya(a.H),a.zb=!0)}function dg(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,E=a.Zd.contains("Model");E&&(a.Ok=!0,a.Pk===ah?(y.isViewportUnconstrained=!0,y.vc.clear(),y.add(x,"position",x.position.copy().offset(0,-200),x.position),y.add(x,"opacity",0,1)):a.Pk===yf&&y.vc.clear(),a.Qw=!!(a.Pk===Md&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),E&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),Fd(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,E=y.vc.get(x),x.autoScale!==us&&E!==null&&(delete E.start.scale,delete E.end.scale),We.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&Ns(x),wf(x),a.zb=!1,y.start(),y.bc&&(Mh(a),x.Ya(),Af(y,0),Al(x,!0),oc(a),x.R("AnimationStarting",a)))}))}}function rh(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function gg(a,y,x,E){a.isTicking||rh(a)||y instanceof Vn&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,E,!1)}Ct=_s.prototype,Ct.fv=function(a){return this.ce.fv(a)},Ct.Xu=function(a){return this.ce.Xu(a)};function fg(a,y){function x(){if(0z?z+=360:at+=360),z=b(x,z,at-z,E)%360,tt=b(x,tt,lt-tt,E),rt=b(x,rt,ht-rt,E),x=b(x,a,y-a,E),"hsla("+z+", "+tt+"%, "+rt+"%, "+x+")"}function vf(){function a(x,E,b,z,tt,rt){x.position=new Ot(z(tt,E.x,b.x-E.x,rt),z(tt,E.y,b.y-E.y,rt))}var y=new hi;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,E,b,z,tt,rt){tta&&De(a,">= 1",_s,"duration"),this.Dg=a}},isAnimating:{get:function(){return this.bc}},isTicking:{get:function(){return this.vq}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a}},defaultAnimation:{get:function(){return this.ce}},activeAnimations:{get:function(){return this.Ei}},initialAnimationStyle:{get:function(){return this.Pk},set:function(a){this.Pk=a}}}),_s.prototype.stopAnimation=_s.prototype.Cc;var Pd=null,Id=!1,ah=new sn(_s,"Default",1),Md=new sn(_s,"AnimateLocations",2),yf=new sn(_s,"None",3);_s.className="AnimationManager",_s.defineAnimationEffect=function(a,y){Id||(vf(),Id=!0),Pd.add(a,y)},_s.Default=ah,_s.AnimateLocations=Md,_s.None=yf;function Va(a){this.vu=this.Nw=this.Yd=this.H=null,this.Xk=this.bc=this.j=!1,this.cn=this.Qd=0,this.Lp=this.ot=Zc,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=lr,this.vc=new hi,this.Tt=new hi,this.yl=new bn,this.Ut=new bn,this.dw=Bh,a&&Object.assign(this,a)}Va.prototype.suspend=function(){this.Xk=!0},Va.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,Ld(this,!0),Mh(this.Yd),Al(this.H),oc(this.Yd),this.H.redraw()};function Fd(a,y){if(a.Tt.clear(),a.Wk=!1,a.au=0,a.Gd=NaN,0a.cn?a.Gd:E-a.Qd;y&&(b=a.gw,ba.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function Af(a,y){for(var x=a.Gd,E=a.vc.iterator,b=a.Wk;E.next();){var z=E.key;if(!(z instanceof Se&&z.diagram===null)){var tt=E.value,rt=b?tt.end:tt.start;tt=b?tt.start:tt.end;var at=Pd,lt;for(lt in tt)lt==="position"&&(tt["position:placeholder"]||tt["position:nodeCollapse"])||at.get(lt)===null||at.get(lt)(z,rt[lt],tt[lt],a.Lp,y,x,a)}}}Ct.stop=function(){return this.bc?(this.Ml(!0),this):this},Ct.Ml=function(a){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var y=this.H,x=this.Yd;this.Xk=this.bc=x.Ok=!1,Mh(x);for(var E=this.vc,b=this.yl.iterator;b.next();)y.remove(b.value);for(b=this.Ut.iterator;b.next();)b.value.v();b=this.ho,E=E.iterator;for(var z=Pd;E.next();){var tt=E.key,rt=E.value,at=b?rt.end:rt.start,lt=b?rt.start:rt.end,ht=rt.Ku,ft;for(ft in lt)if(z.get(ft)!==null){var vt=ft;!rt.Hu||vt!=="position:nodeCollapse"&&vt!=="position:placeholder"||(vt="position"),z.get(vt)(tt,at[ft],ht[ft]!==void 0?ht[ft]:rt.Hu?at[ft]:lt[ft],this.Lp,this.Gd,this.Gd,this)}rt.Hu&&ht.location!==void 0&&tt instanceof Li&&(tt.location=ht.location),rt.nv&&tt instanceof Li&&tt.Zb(!1)}if(y.As.clear(),Dd(y,!1),y.Ya(),y.N(),Al(y,!0),x.defaultAnimation===this){for(ft=x.pr.iterator;ft.next();)b=ft.value,b.Tg!==null&&(b.points=b.Tg,b.Tg=null);x.pr.clear()}Al(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),oc(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),Fd(this,null),x.Ml(this),y.$b())}},Ct.Cj=function(a,y){var x=y.actualBounds,E=null;if(y instanceof to&&(E=y.placeholder),E!==null?(x=E.ga(Or),E=E.padding,x.x+=E.left,x.y+=E.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Ot(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof to)for(a=a.memberParts;a.next();)E=a.value,E instanceof ri&&this.Cj(E,y)},Ct.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof to&&(x=y.placeholder),x!==null){var E=x.ga(Or);x=x.padding,E.x+=x.left,E.y+=x.top,this.add(a,"position:placeholder",a.position,E,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),E=this.vc,E.contains(a)&&(E.I(a).nv=!0),a instanceof to)for(a=a.memberParts;a.next();)E=a.value,E instanceof ri&&this.Aj(E,y)}},Ct.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},Vt.Object.defineProperties(Va.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&De(a,">= 1",Va,"duration"),this.Dg=a}},reversible:{get:function(){return this.ho},set:function(a){this.ho=a}},runCount:{get:function(){return this.cu},set:function(a){0a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Y0(a,y,x,E){return a===E?y+x:x*(-Math.pow(2,-10*a/E)+1)+y}Va.className="Animation",Va.EaseLinear=function(a,y,x,E){return x*a/E+y},Va.EaseInOutQuad=Zc,Va.EaseInQuad=function(a,y,x,E){return x*(a/=E)*a+y},Va.EaseOutQuad=function(a,y,x,E){return-x*(a/=E)*(a-2)+y},Va.EaseInExpo=function(a,y,x,E){return a===0?y:x*Math.pow(2,10*(a/E-1))+y},Va.EaseOutExpo=Y0;function sc(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}sc.className="AnimationState";function Kl(a,y,x){this.xd=null,this.rf=a,this.so=x||Cf,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=lc))}Kl.prototype.copy=function(){var a=new Kl(this.rf);a.so=this.so;var y=this.uk;if(y!==null){var x={};y.duration!==void 0&&(x.duration=y.duration),y.finished!==void 0&&(x.finished=y.finished),y.easing!==void 0&&(x.easing=y.easing),a.uk=x}return a};function X0(a,y){a=a.uk,a!==null&&(a.duration&&(y.duration=a.duration),a.finished&&(y.finished=a.finished),a.easing&&(y.easing=a.easing))}Vt.Object.defineProperties(Kl.prototype,{propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},animationSettings:{get:function(){return this.uk},set:function(a){this.uk=a}},startCondition:{get:function(){return this.so},set:function(a){this.so=a}}});var Cf=new sn(Kl,"Default",1),lc=new sn(Kl,"Immediate",2),Uc=new sn(Kl,"Bundled",3);Kl.className="AnimationTrigger",Kl.Default=Cf,Kl.Immediate=lc,Kl.Bundled=Uc;function Fa(a){ao(this),this.H=null,this.Pa=new Ln,this.xa="",this.pb=1,this.o=!1,this.j=this.Uh=this.u=this.Oi=this.Ni=this.Mi=this.Li=this.Ji=this.Ki=this.Ii=this.Qi=this.Hi=this.Pi=this.Gi=this.Fi=!0,this.Zq=[],a&&Object.assign(this,a)}Ct=Fa.prototype,Ct.clear=function(){for(var a=this.Pa,y=0;y=a)return y;for(var x=0,E=0,b=0,z=0,tt=0,rt=this.Pa.iterator;rt.next();){var at=rt.value;at instanceof to?b++:at instanceof ri?E++:at instanceof Vn?z++:at instanceof jo?tt++:x++}if(rt="",0x.Oq||rt.height*b>x.Oq?y.gc(a,x):(b=y.actualBounds,z=y.naturalBounds,b.width===0||b.height===0||isNaN(b.x)||isNaN(b.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(Hr(y,a,y.areaBackground,!0,!0,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.areaBackground===null&&y.background===null&&(Hr(y,a,"rgba(0,0,0,0.3)",!0,!1,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),Hr(y,a,y.background,!0,!1,z,b),a.fillRect(0,0,z.width/2,z.height/2),x.ws()||(y=1/(x.m11*x.m22-x.m12*x.m21),a.transform(x.m22*y,-x.m12*y,-x.m21*y,x.m11*y,y*(x.m21*x.dy-x.m22*x.dx),y*(x.m12*x.dx-x.m11*x.dy)))))),E&&(a.restore(),a.Vc(!0))}},Ct.g=function(a,y,x,E,b){var z=this.diagram;z!==null&&z.cb(Er,a,this,y,x,E,b)},Ct.oi=function(a,y,x){var E=this.Pa;if(y.Ig=this,this===null&&os(y),a>=E.count)a=E.count;else if(E.M(a)===y)return-1;return E.Gb(a,y),y.Vo(x),E=this.diagram,E!==null&&(x?E.N():E.oi(y)),mg(this,a,y),a},Ct.pc=function(a,y,x){if(!x&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,x);var E=this.Pa;if(0>a||a>=E.length){if(a=E.indexOf(y),0>a)return-1}else if(E.M(a)!==y&&(a=E.indexOf(y),0>a))return-1;return y.Wo(x),E.mb(a),E=this.diagram,E!==null&&(x?E.N():E.pc(y)),y.Ig=null,os(y),a};function mg(a,y,x){if(y=Q0(a,y,x),x instanceof to&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var E=-1,b=a.Pa.s,z=b.length,tt=0;ttE&&rt.containingGroup===x&&(E=tt,0<=y))break}!(0>E)&&E=b)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var z=y-1,tt=NaN;0<=z&&(tt=a.M(z).zOrder,!!isNaN(tt));)z--;for(var rt=y+1,at=NaN;rtE)for(;;){if(z===-1||tt<=E){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(tt=NaN;0<=--z&&(tt=a.M(z).zOrder,isNaN(tt)););}else if(!isNaN(at)&&at=E){if(rt--,rt===y)break;return a.mb(y),a.Gb(rt,x),rt}for(at=NaN;++rta||1=a)return y;for(var x=this.Wa.iterator;x.next();)y+=` `+x.value.toString(a-1);return y};function xf(a,y){if(zr){if(y!=null||Xt("Diagram setup requires an argument DIV."),a.Ka!==null&&Xt("Diagram has already completed setup."),typeof y=="string"?a.Ka=We.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:Xt("No DIV or DIV id supplied: "+y),a.Ka===null&&Xt("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&Xt("Invalid div id; div already has a Diagram associated with it."),!a.ol&&We.ResizeObserver){var x=ai(function(){a.$b()},250);a.ol=new We.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}We.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var E="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=E,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=We.go;var b=new jl(a);if(b.style!==void 0&&(b.style.position="absolute",b.style.top="0px",b.style.left="0px",We.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),b.style.zIndex="2",b.style.userSelect="none",b.style.MozUserSelect="none",b.style.touchAction="none",b.style.letterSpacing="normal !important",b.style.wordSpacing="normal !important"),a.ta=b,a.ib=b.context,E=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),Df(a,a.Aa,a.ya),a.Ka.insertBefore(b.Oa,a.Ka.firstChild),b=new jl(null),b.width=1,b.height=1,a.jw=b,a.oy=b.context,zr){b=Qe("div");var z=Qe("div");b.style.position="absolute",b.style.overflow="auto",b.style.width=a.Aa+"px",b.style.height=a.ya+"px",b.style.zIndex="1",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(b),b.appendChild(z),b.onscroll=tp,b.addEventListener("pointerdown",ep),b.H=a,b.uy=!0,b.vy=!0,a.ku=b,a.hu=z}a.hk=ai(function(){a.Yh=null,a.N()},300),a.Ov=ai(function(){wf(a)},250),a.preventDefault=function(tt){return tt.preventDefault(),!1},a.$j=function(tt){if(a.isEnabled){var rt=yl(a,tt,!0);rt.bubbles=!0;var at=0,lt=0;rt.delta=0,tt.deltaX!==void 0?(tt.deltaX!==0&&(at=0Math.abs(tt.deltaY)?-at:-lt):tt.wheelDeltaX!==void 0?(tt.wheelDeltaX!==0&&(at=0Math.abs(tt.wheelDeltaY)?-at:-lt):tt.wheelDelta!==void 0&&tt.wheelDelta!==0&&(rt.delta=0rt||Math.abs(lt.y-tt.screenY)>rt)?a.yq++:a.yq=1,at.clickCount=a.yq,a.tw=tt.timeStamp,a.uw.sg(tt.screenX,tt.screenY),a.doMouseDown(),tt.button===1?tt.preventDefault():Ql(at,tt)}},a.dk=function(tt){if(a.isEnabled){a.Vk=!0;var rt=a.oj;if(rt[0]===null||rt[0].pointerId!==tt.pointerId&&rt[0].pointerType===tt.pointerType){if(rt[1]!==null&&rt[1].pointerId===tt.pointerId){rt[1]=tt;return}if(rt[0]===null)rt[0]=tt;else return}else rt[0]=tt;if(rt[0].pointerId===tt.pointerId){rt=Mf(a,tt,!1,!1,!1,rt[1]!==null);var at=We.document.elementFromPoint(tt.clientX,tt.clientY)||null;at!==null&&at.shadowRoot!==void 0&&at.shadowRoot!==null&&(at=at.shadowRoot.elementFromPoint(tt.clientX,tt.clientY));var lt=a,ht=tt;at&&at.H&&(ht=tt,lt=at.H),rt.targetDiagram=lt,Yc(a,ht,rt),rt.targetObject=null,a.doMouseMove(),Ql(rt,tt)}}},a.fk=function(tt){if(a.isEnabled){a.Vk=!0;var rt=tt.pointerType==="touch"||tt.pointerType==="pen",at=a.Yt;if(rt&&a.qu)delete at[tt.pointerId],tt.preventDefault();else if(at=a.oj,at[0]===null||at[0].pointerId!==tt.pointerId&&at[0].pointerType===tt.pointerType)at[1]!==null&&at[1].pointerId===tt.pointerId&&(at[1]=null);else{at[0]=null,at=Mf(a,tt,!1,!0,!0,!1);var lt=We.document.elementFromPoint(tt.clientX,tt.clientY)||null;lt!==null&<.shadowRoot!==void 0&<.shadowRoot!==null&&(lt=lt.shadowRoot.elementFromPoint(tt.clientX,tt.clientY)),lt!==null&<.H instanceof Ue&<.H!==a&&Yc(lt.H,tt,at),lt===null&&(lt=tt.target),Yc(a,tt,at),at.clickCount=a.yq,at.targetDiagram=If(tt,lt),at.targetObject=null,a.doMouseUp(),Ql(at,tt),rt&&(a.wq=!1)}}},a.ek=function(tt){if(a.isEnabled){a.Vk=!1;var rt=a.Yt;rt[tt.pointerId]&&delete rt[tt.pointerId],rt=a.oj,rt[0]!==null&&rt[0].pointerId===tt.pointerId&&(rt[0]=null),rt[1]!==null&&rt[1].pointerId===tt.pointerId&&(rt[1]=null),tt.pointerType!=="touch"&&tt.pointerType!=="pen"&&(tt=a.currentTool,tt.cancelWaitAfter(),tt.standardMouseOver())}},a.ck=function(tt){var rt=a.oj;rt[0]!==null&&rt[0].pointerId===tt.pointerId?(rt[0]=null,a.wq=!1):rt[1]!==null&&rt[1].pointerId===tt.pointerId&&(rt[1]=null)},a.Vp=E.Z["d"+zd[1]+zd[2]+"wI"+$c.slice(1,5)]["b"+b5.slice(1,y)](E.Z,jd,y,y),E.Vc(!0),tv(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}Ue.prototype.addEventListener=function(a,y,x,E){a.addEventListener(y,x,{capture:E,passive:!1})},Ue.prototype.removeEventListener=function(a,y,x,E){a.removeEventListener(y,x,{capture:E})};function tv(a){var y=a.ta.Oa;y instanceof HTMLCanvasElement||(y=a.div),a.addEventListener(y,"pointerdown",a.ui,!1),a.addEventListener(y,"pointermove",a.dk,!1),a.addEventListener(y,"pointerup",a.fk,!1),a.addEventListener(y,"pointerout",a.ek,!1),a.addEventListener(y,"pointercancel",a.ck,!1),a.addEventListener(y,"pointerenter",a.bz,!1),a.addEventListener(y,"pointerleave",a.cz,!1),a.addEventListener(y,"wheel",a.$j,!1),a.addEventListener(y,"keydown",a.Qz,!1),a.addEventListener(y,"keyup",a.Rz,!1),a.addEventListener(y,"blur",a.Ny,!1),a.addEventListener(y,"focus",a.Oy,!1),a.addEventListener(y,"selectstart",function(x){return x.preventDefault(),!1},!1),a.addEventListener(y,"contextmenu",function(x){return x.preventDefault(),!1},!1),a.addEventListener(We,"resize",a.Ov,!1)}function Ns(a){30Et&&(this.position=Wt.h(-(y.scrollWidth-this.Aa)+kt-this.Aa/b+ht,this.position.y))),a.vy&&this.allowVerticalScroll&&(rtLt&&(this.position=Wt.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/b+z))),Ot.free(Wt),this.vd=!0,this.Ee=this.qr=!1,E=this.documentBounds,b=this.viewportBounds,ht=E.right,Et=b.right,z=E.bottom,Lt=b.bottom,tt=E.x,ft=b.x,rt=E.y,E=b.y,vt>=at&&tt>=ft&&ht<=Et&&(x.style.width="1px"),xt>=lt&&rt>=E&&z<=Lt&&(x.style.height="1px"))}},Ue.prototype.computeBounds=function(a){return a===void 0&&(a=new on),Ya(this),Ef(this,a)};function Ef(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,E=a.Wa.s,b=E.length,z=0;zx&&(y=x),ya.maxScale&&(y=a.maxScale),y):y===pc?(y=at>rt?(tt-a.Db)/E:(z-a.Db)/b,y>x&&(y=x),ya.maxScale&&(y=a.maxScale),y):a.scale}Ue.prototype.zoomToFit=function(){var a=this.sj;this.sj=Bh,this.scale=Vc(this,hl),a!==Bh&&(Tl(this,!1),Pf(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Ct=Ue.prototype,Ct.BA=function(a,y){y===void 0&&(y=hl);var x=a.width,E=a.height;if(!(x===0||E===0||isNaN(x)&&isNaN(E))){var b=1;if(y===hl||y===pc)if(isNaN(x))b=this.viewportBounds.height*this.scale/E;else if(isNaN(E))b=this.viewportBounds.width*this.scale/x;else{b=this.Aa;var z=this.ya;b=y===pc?z/E>b/x?(z-(this.Be?this.Db:0))/E:(b-(this.gf?this.Db:0))/x:Math.min(z/E,b/x)}this.scale=b,this.position=new Ot(a.x,a.y)}},Ct.Jy=function(a,y){this.Va();var x=this.documentBounds,E=this.viewportBounds;this.position=new Ot(x.x+(a.x*x.width+a.offsetX)-(y.x*E.width-y.offsetX),x.y+(a.y*x.height+a.offsetY)-(y.y*E.height-y.offsetY))},Ct.zz=function(a){if(a instanceof Se){this.eq=a;var y=Ot.alloc();this.fq=this.op(a.ga(Or,y)),Ot.free(y)}else this.eq=null,this.fq=Zn};function Pf(a,y,x,E,b,z){var tt=Ot.allocAt(a.pa.x,a.pa.y),rt=tt.x,at=tt.y;if(a.eq!==null){var lt=Ot.alloc();lt=a.eq.ga(Or,lt),rt=lt.x-a.fq.x/a.scale,at=lt.y-a.fq.y/a.scale,b=ir,Ot.free(lt)}(z||a.scrollMode===Bh)&&(b.sb()&&(x>y.width&&(rt=y.x+(b.x*y.width+b.offsetX)-(b.x*x-b.offsetX)),E>y.height&&(at=y.y+(b.y*y.height+b.offsetY)-(b.y*E-b.offsetY))),b=a.rj,z=x-y.width,xy.left?rt=y.left:rty.top?at=y.top:aty;y++){var x=a.De.iterator;if(x===null||a.De.count===0)break;a.De=new bn,a.Nv(x,a.De)}a.nodes.each(function(E){E instanceof to&&E.U&65536&&(E.U=E.U^65536)})}}Ct.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof to||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof to&&x.isVisible()&&Nd(this,x);for(a.reset();a.next();)x=a.value,x instanceof Vn&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x));for(a.reset();a.next();)x=a.value,x instanceof jo&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function Nd(a,y){for(var x=ii(),E=ii(),b=y.memberParts;b.next();){var z=b.value;z.isVisible()&&(z instanceof to?(dl(z)||ys(z)||vc(z))&&Nd(a,z):z instanceof Vn?z.fromNode===y||z.toNode===y?E.push(z):x.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=x.length,b=0;bye&&(kt=ni.left,Jt=ni.right),Wt.height>Ge&&(ne=ni.top,se=ni.bottom)):(kt=ni.left,Jt=ni.right,ne=ni.top,se=ni.bottom);var fi=Wt.width+kt+Jt,ui=Wt.height+ne+se;ni=a.scale;var Un=fi>at/ni,xn=ui>lt/ni;if(!(z||a.gf||a.Be||Un||xn))return!0;kt=Wt.x-kt,at=ht.x,Jt=Wt.right+Jt,lt=ht.right+tt,ne=Wt.y-ne;var qi=ht.y;Wt=Wt.bottom+se,ht=ht.bottom+rt;var Yi="1px";if(se="1px",a.scrollMode===Bh&&(Un||xn)&&(Un&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Un=1,kt+1lt+1&&(Un=Math.max((Jt-lt)*ni+a.Aa,Un)),ye+tt+1ht+1&&(Un=Math.max((Wt-ht)*ni+a.ya,Un)),Ge+rt+1lt+1&&(tt=Math.max((Jt-lt)*ni+a.Aa,tt)),ye+1ht+1&&(rt=Math.max((Wt-ht)*ni+tt,rt)),Ge+1lt+1&&(y=a.position.x*ni)),a.tn)switch(a.bu){case"negative":y=-(Et.scrollWidth-y-Et.clientWidth);break;case"reverse":y=Et.scrollWidth-y-Et.clientWidth}return Et.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Ge+1ht+1&&(Et.scrollTop=a.position.y*ni)),at=a.Aa,lt=a.ya,Et.style.width=at+(a.gf?a.Db:0)+"px",Et.style.height=lt+(a.Be?a.Db:0)+"px",x!==at||E!==lt||a.animationManager.zb?(x=on.allocAt(b,ft,vt,xt),a.onViewportBoundsChanged(x,a.viewportBounds,ni,z),on.free(x),!1):!0}Ct=Ue.prototype,Ct.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&Xt("Cannot add part "+a.toString()+" to "+this.toString()+". It is already a part of "+y.toString()),y=this.Qj(a.layerName),y===null&&(y=this.Qj("")),y===null&&Xt('Cannot add a Part when unable find a Layer named "'+a.layerName+'" and there is no default Layer'),a.layer!==y)){var x=y.oi(99999999,a,a.diagram===this);0<=x&&this.cb(Ur,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},Ct.oi=function(a){this.partManager.oi(a);var y=this;od(a,function(x){Jc(y,x)}),(a instanceof jo||a instanceof to&&a.placeholder!==null)&&a.v(),a.data!==null&&od(a,function(x){s1(y.partManager,x)}),ys(a)!==!0&&vc(a)!==!0||this.De.add(a),jy(a,!0,this),Ry(a)?(a.actualBounds.w()&&this.N(sd(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(sd(a,a.actualBounds)),this.$b()},Ct.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&od(a,function(x){l1(y.partManager,x,y)}),this.De.remove(a),Ry(a)?(a.actualBounds.w()&&this.N(sd(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(sd(a,a.actualBounds)),this.$b()},Ct.remove=function(a){Bf(this,a,!0)};function Bf(a,y,x){var E=y.layer;E!==null&&E.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),x&&y.Lj(),x=E.pc(-1,y,!1),0<=x&&a.cb(na,"parts",E,y,null,x,null),a=y.layerChanged,a!==null&&a(y,E,null))}Ct.Is=function(a,y){if(y===void 0&&(y=!1),Pe(a))for(var x=a.length,E=0;EE&&this.Ya(),this},Ct.Cy=function(a,y){Nf(this,a,y),a.Xe(this);var x=this.Wa,E=x.indexOf(a);0<=E&&(x.remove(a),this.cc!==null&&this.cb(na,"layers",this,a,null,E,null));var b=x.count,z;for(z=0;zE&&this.Ya(),this},Ct.kA=function(a){if(a.diagram!==this&&Xt("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,x=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var E=y.value,b=E.layerName;b!==a.name?E.layerName=b:E.layerName=""}this.cc!==null&&this.cb(na,"layers",this,a,null,x,null),this.N(),this.Ya()}}},Ct.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},Ct.Yw=function(a){return this.pf===null&&(this.pf=new Ln),this.pf.add(a),this.model.Pe(a),this},Ct.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Ct.Pe=function(a){return this.zg===null&&(this.zg=new Ln),this.zg.add(a),this},Ct.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Ct.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==Bs&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,E=0;Eft.Pa.indexOf(xt)&&ft.oi(vt,xt,Et):(xt.isSelected=!1,xt.isHighlighted=!1,xt.Wb(),ft.pc(Et?vt:-1,xt,Et)))}else ft instanceof Ue?typeof vt=="number"&&xt instanceof Fa&&(y?(xt.Xe(this),this.Wa.Gb(vt,xt)):this.Wa.mb(vt)):Xt("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else E!==Bs&&Xt("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},Ue.prototype.Ea=function(a){return this.undoManager.Ea(a)},Ue.prototype.eb=function(a){return this.undoManager.eb(a)},Ue.prototype.Kf=function(){return this.undoManager.Kf()},Ue.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var E=!1;try{a(this),E=!0}finally{E?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},Ue.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},Ue.prototype.rp=function(){this.partManager.rp()};function kf(a,y,x){var E=a.animationManager;if(a.vb||a.ld)a.Ca=x,Eu(a),a.N(),a.Ee=!0,E.zb&&(rh(E)||E.ce.add(E.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,Eu(a);else{a.vb=!0;var b=a.viewportBounds.copy(),z=a.Aa,tt=a.ya,rt=a.zoomPoint.x,at=a.zoomPoint.y,lt=a.contentAlignment;isNaN(rt)&&(lt.$c()?lt.Hf(Yl)?rt=0:lt.Hf(fs)&&(rt=z-1):rt=lt.sb()?lt.x*(z-1):z/2),isNaN(at)&&(lt.$c()?lt.Hf(Vl)?at=0:lt.Hf(sl)&&(at=tt-1):at=lt.sb()?lt.y*(tt-1):tt/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(x=a.scaleComputation(a,x)),xa.maxScale&&(x=a.maxScale),z=Ot.allocAt(a.pa.x+rt/y-rt/x,a.pa.y+at/y-at/x),a.position=z,Ot.free(z),a.Ca=x,Eu(a),a.vb=!1,a.onViewportBoundsChanged(b,a.viewportBounds,y,!1),Tl(a,!1),E.zb&&(rh(E)||E.ce.add(E.H,"scale",y,a.Ca))}}Ue.prototype.onViewportBoundsChanged=function(a,y,x,E){if(!a.D(y)){E===void 0&&(E=!1),E||(this.Ee=!0),this.vd=!0;var b=this.layout;b===null||!b.isViewportSized||this.autoScale!==us||a.width===y.width&&a.height===y.height||b.C(),b=this.currentTool,this.Vk===!0&&b instanceof yr&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),cg(b,this)),this.vb||this.invalidateViewport(a,y),wu(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.canvasSize.width=Math.round(a.width*x),this.fc.canvasSize.height=Math.round(a.height*x),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=E,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function wu(a,y){var x=a.fe;if(x!==null&&x.visible){for(var E=Nn.alloc(),b=1,z=1,tt=x.O.s,rt=tt.length,at=0;atht||(pv(lt.figure)?z=z*ht/Ie.vx(z,ht):b=b*ht/Ie.vx(b,ht))}if(tt=x.gridCellSize,E.h(z*tt.width,b*tt.height),y!==void 0)b=y.width,z=y.height,a=y.x,tt=y.y;else{if(y=on.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){on.free(y);return}b=y.width,z=y.height,a=y.x,tt=y.y,on.free(y)}x.width=b+2*E.width,x.height=z+2*E.height,y=Ot.alloc(),Ie.No(a,tt,0,0,E.width,E.height,y),y.offset(-E.width,-E.height),Nn.free(E),x.part.location=y,Ot.free(y)}}Ue.prototype.clearSelection=function(a){a===void 0&&(a=!1);var y=this.selection;if(y.count!==0){a||this.R("ChangingSelection",y);for(var x=y.Fa(),E=x.length,b=0;b=E&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||ku(z,"Layout")),a.xh=!1;for(var tt=a.ai.iterator;tt.next();)Rf(a,tt.value,y,E);b.isValidLayout||(!y||b.isRealtime||b.isRealtime===null||E===0?(b.doLayout(a),Ya(a),b.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,E===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||E!==0&&E!==1||dg(z),a.aa=x}}}function Rf(a,y,x,E){if(y!==null){for(var b=y.gl.iterator;b.next();)Rf(a,b.value,x,E);b=y.layout,b===null||b.isValidLayout||(!x||b.isRealtime||E===0?(y.rh=!y.location.w(),b.doLayout(y),y.C(32),Nd(a,y),b.isValidLayout=!0):a.xh=!0)}}Ct.yz=function(){for(var a=new Ln,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function ev(a){function y(b){var z=b.toLowerCase(),tt=new Ln;x.add(b,tt),x.add(z,tt),E.add(b,b),E.add(z,b)}var x=new hi,E=new hi;y("InitialAnimationStarting"),y("AnimationStarting"),y("AnimationFinished"),y("BackgroundSingleClicked"),y("BackgroundDoubleClicked"),y("BackgroundContextClicked"),y("ClipboardChanged"),y("ClipboardPasted"),y("DocumentBoundsChanged"),y("ExternalObjectsDropped"),y("GainedFocus"),y("InitialLayoutCompleted"),y("LayoutCompleted"),y("LinkDrawn"),y("LinkRelinked"),y("LinkReshaped"),y("LostFocus"),y("Modified"),y("ObjectSingleClicked"),y("ObjectDoubleClicked"),y("ObjectContextClicked"),y("PartCreated"),y("PartResized"),y("PartRotated"),y("SelectionMoved"),y("SelectionCopied"),y("SelectionDeleting"),y("SelectionDeleted"),y("SelectionGrouped"),y("SelectionUngrouped"),y("ChangingSelection"),y("ChangedSelection"),y("SubGraphCollapsed"),y("SubGraphExpanded"),y("TextEdited"),y("TreeCollapsed"),y("TreeExpanded"),y("ViewportBoundsChanged"),y("InvalidateDraw"),a.iw=x,a.hw=E}function rp(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function wg(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;Xt("Unknown DiagramEvent name: "+y)}Ct.Bj=function(a,y){return a=wg(this,a),a!==null&&a.add(y),this},Ct.am=function(a,y){a=wg(this,a),a!==null&&a.remove(y)},Ct.R=function(a,y,x){var E=wg(this,a),b=new bu;if(b.diagram=this,a=rp(this,a),a!==null&&(b.name=a),y!==void 0&&(b.subject=y),x!==void 0&&(b.parameter=x),y=E.length,y===1)E.M(0)(b);else if(y!==0)for(E=E.Fa(),x=0;x=x.top&&0>=x.left&&0>=x.right&&0>=x.bottom)return y;var E=this.viewportBounds,b=this.scale;E=on.allocAt(0,0,E.width*b,E.height*b);var z=Ot.allocAt(0,0);if(a.x>=E.x&&a.xE.x+E.width-x.right&&this.allowHorizontalScroll&&(tt=Math.max(this.scrollHorizontalLineChange,1),tt|=0,z.x+=tt,a.x>E.x+E.width-x.right/2&&(z.x+=tt),a.x>E.x+E.width-x.right/4&&(z.x+=4*tt));return a.y>=E.y&&a.yE.y+E.height-x.bottom&&this.allowVerticalScroll&&(tt=Math.max(this.scrollVerticalLineChange,1),tt|=0,z.y+=tt,a.y>E.y+E.height-x.bottom/2&&(z.y+=tt),a.y>E.y+E.height-x.bottom/4&&(z.y+=4*tt)),z.Xa(lr)||(y=new Ot(y.x+z.x/b,y.y+z.y/b)),on.free(E),Ot.free(z),y},Ct=Ue.prototype,Ct.Cs=function(){return null},Ct.av=function(){return null},Ct.bs=function(a,y){this.pj.add(a,y)},Ct.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof to&&(y.$p=null)})};function kd(a,y,x){function E(){var ht=+new Date;for(z=!0,tt.reset();tt.next();)if(!tt.value[0].al){z=!1;break}z||ht-lt>at?y(x,b,rt):We.requestAnimationFrame(E)}for(var b=x.callback,z=!0,tt=a.Og.iterator;tt.next();)if(!tt.value[0].al){z=!1;break}if(typeof b!="function"||z)return y(x,b,a);var rt=a,at=x.callbackTimeout||300,lt=+new Date;return We.requestAnimationFrame(function(){E()}),null}Ct.Wz=function(a){return zr?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Ct.Jx=function(a){return a===void 0&&(a={}),kd(this,this.Xz,a)},Ct.Xz=function(a,y,x){var E=sp(x,a,"canvas",null);if(E===null)return null;x=E.Z.canvas;var b=null;if(x!==null)switch(b=a.returnType,b===void 0?b="string":b=b.toLowerCase(),b){case $c+"data":b=E.getImageData(0,0,x.width,x.height);break;case $c:E=(a.document||document).createElement("img"),E.src=x.toDataURL(a.type,a.details),b=E;break;case"blob":return typeof y!="function"&&Xt('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof x.toBlob=="function"?(x.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:b=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(b),null):b};function sp(a,y,x,E){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&Xt("properties argument must be an Object.");var b=y.size||null,z=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(z="NaN");var tt=y.maxSize;y.maxSize===void 0&&(tt=x==="SVG"?new Nn(1/0,1/0):new Nn(2e3,2e3));var rt=y.position||null,at=y.parts||null,lt=y.padding===void 0?1:y.padding,ht=y.background||null,ft=y.omitTemporary;ft===void 0&&(ft=!0);var vt=y.document||document,xt=y.elementFinished||null,Et=y.showTemporary;Et===void 0&&(Et=!ft),y=y.showGrid,y===void 0&&(y=Et),b!==null&&isNaN(b.width)&&isNaN(b.height)&&(b=null),typeof lt=="number"?lt=new Ri(lt):lt instanceof Ri||Xt("MakeImage padding must be a Margin or a number."),lt.left=Math.max(lt.left,0),lt.right=Math.max(lt.right,0),lt.top=Math.max(lt.top,0),lt.bottom=Math.max(lt.bottom,0),a.ib.Vc(!0),ft=new jl(null,vt,void 0,!0);var Lt=ft.context;if(!(b||z||at||rt))return ft.width=a.Aa+Math.ceil(lt.left+lt.right),ft.height=a.ya+Math.ceil(lt.top+lt.bottom),x==="SVG"?E===null?null:(E.resize(ft.width,ft.height,ft.width,ft.height),E.ownerDocument=vt,E.hs=xt,yg(a,E.context,lt,new Nn(ft.width,ft.height),a.Ca,a.pa,at,ht,Et,y),E.context):(a.Xm=!1,yg(a,Lt,lt,new Nn(ft.width,ft.height),a.Ca,a.pa,at,ht,Et,y),a.Xm=!0,ft.context);var Wt=a.Pp,kt=a.documentBounds.copy();if(kt.Fv(a.yb),Et)for(var Jt=a.Wa.s,ne=Jt.length,se=0;seWt?(z=Wt,b=kt.width,kt=kt.height):(b=tt.width,kt=tt.height)):(b=kt.width*z,kt=kt.height*z):(z=Wt,b=kt.width,kt=kt.height),lt!==null?(b+=rt,kt+=ne):lt=new Ri(0),tt!==null&&(Wt=tt.width,tt=tt.height,isNaN(Wt)&&(Wt=2e3),isNaN(tt)&&(tt=2e3),isFinite(Wt)&&(b=Math.min(b,Wt)),isFinite(tt)&&(kt=Math.min(kt,tt))),ft.width=Math.ceil(b),ft.height=Math.ceil(kt),x==="SVG"?E===null?null:(E.resize(ft.width,ft.height,ft.width,ft.height),E.ownerDocument=vt,E.hs=xt,yg(a,E.context,lt,new Nn(Math.ceil(b),Math.ceil(kt)),z,Jt,at,ht,Et,y),E.context):(a.Xm=!1,yg(a,Lt,lt,new Nn(Math.ceil(b),Math.ceil(kt)),z,Jt,at,ht,Et,y),a.Xm=!0,ft.context)}Vt.Object.defineProperties(Ue.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof mt||(a===""&&(a="default"),a=a.toLowerCase(),a!==this.nl&&(this.nl=a,a==="default"||a==="canvas"?(a=this.pj.get("svg"),a!==null&&a.Oa.remove(),this.ta&&(this.ib=this.ta.context)):a==="svg"?(this.pj.contains("svg")?a=this.pj.get("svg"):(a=new Pu(this,We.document),this.bs("svg",a)),this.div!==null&&this.div.appendChild(a.Oa),this.ib=a.context,this.ta&&(this.ta.context.setTransform(this.Mb,0,0,this.Mb,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya))):a!=="debug"||this.pj.contains("SVG")||(a=new Pu(this,We.document),this.bs("SVG",a),a.Oa.style.backgroundColor="whitesmoke",this.div!==null&&this.div.after(a.Oa)),this.hk()))}},div:{get:function(){return this.Ka},set:function(a){if(this.Ka!==a){var y=this.Ka;y!==null?(y.H=void 0,y.goDiagram=void 0,y.go=void 0,y.innerHTML="",this.ta!==null&&(y=this.ta.Oa,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.ta.mx()),this.ol&&(this.ol.disconnect(),this.ol=null),y=this.toolManager,y!==null&&(y.mouseDownTools.each(function(x){x.cancelWaitAfter()}),y.mouseMoveTools.each(function(x){x.cancelWaitAfter()}),y.mouseUpTools.each(function(x){x.cancelWaitAfter()})),y.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(We,"resize",this.Ov,!1),this.removeEventListener(We,"wheel",this.$j,!0),Tu===this&&(Tu=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),xf(this,a),this.hk())}}},$w:{get:function(){return this.Sq}},pi:{get:function(){return this.hf}},draggedLink:{get:function(){return this.nt},set:function(a){this.nt!==a&&(this.nt=a,a!==null&&(this.Vt=a.fromPort,this.Wt=a.toPort))}},Mx:{get:function(){return this.Vt},set:function(a){this.Vt=a}},Nx:{get:function(){return this.Wt},set:function(a){this.Wt=a}},animationManager:{get:function(){return this.Yd}},undoManager:{get:function(){return this.cc.undoManager}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a,this.cc.skipsUndoManager=a}},delaysLayout:{get:function(){return this.lt},set:function(a){this.lt=a}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1a&&De(a,">= 0",Ue,"scrollHorizontalLineChange"),this.iu=a,this.g("scrollHorizontalLineChange",y,a))}},scrollVerticalLineChange:{get:function(){return this.mu},set:function(a){var y=this.mu;y!==a&&(0>a&&De(a,">= 0",Ue,"scrollVerticalLineChange"),this.mu=a,this.g("scrollVerticalLineChange",y,a))}},lastInput:{get:function(){return this.cj},set:function(a){this.cj=a}},previousInput:{get:function(){return this.Qg},set:function(a){this.Qg=a}},firstInput:{get:function(){return this.bq},set:function(a){this.bq=a}},currentCursor:{get:function(){return this.it},set:function(a){if(a===""&&(a=this.Op),this.it!==a){var y=this.ta,x=this.Ka;if(y!==null&&x!==null){this.it=a;var E=y.style.cursor;y.style.cursor=a,x.style.cursor=a,y.style.cursor===E&&(y.style.cursor="-webkit-"+a,x.style.cursor="-webkit-"+a,y.style.cursor===E&&(y.style.cursor="-moz-"+a,x.style.cursor="-moz-"+a,y.style.cursor===E&&(y.style.cursor=a,x.style.cursor=a)))}}}},defaultCursor:{get:function(){return this.Op},set:function(a){a===""&&(a="auto");var y=this.Op;y!==a&&(this.Op=a,this.g("defaultCursor",y,a))}},click:{get:function(){return this.zh},set:function(a){var y=this.zh;y!==a&&(this.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.Fh},set:function(a){var y=this.Fh;y!==a&&(this.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.Bh},set:function(a){var y=this.Bh;y!==a&&(this.Bh=a,this.g("contextClick",y,a))}},mouseOver:{get:function(){return this.Qh},set:function(a){var y=this.Qh;y!==a&&(this.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.Oh},set:function(a){var y=this.Oh;y!==a&&(this.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.Nh},set:function(a){var y=this.Nh;y!==a&&(this.Nh=a,this.g("mouseHold",y,a))}},mouseDragOver:{get:function(){return this.Qt},set:function(a){var y=this.Qt;y!==a&&(this.Qt=a,this.g("mouseDragOver",y,a))}},mouseDrop:{get:function(){return this.Lh},set:function(a){var y=this.Lh;y!==a&&(this.Lh=a,this.g("mouseDrop",y,a))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(a){var y=this.xt;y!==a&&(this.xt=a,this.g("handlesDragDropForTopLevelParts",y,a))}},mouseEnter:{get:function(){return this.Mh},set:function(a){var y=this.Mh;y!==a&&(this.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.Ph},set:function(a){var y=this.Ph;y!==a&&(this.Ph=a,this.g("mouseLeave",y,a))}},toolTip:{get:function(){return this.$h},set:function(a){var y=this.$h;y!==a&&(this.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.Ch},set:function(a){var y=this.Ch;y!==a&&(this.Ch=a,this.g("contextMenu",y,a))}},commandHandler:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a,a.Xe(this))}},toolManager:{get:function(){return this.te},set:function(a){this.te!==a&&(this.te=a,a.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(a){var y=this.ob;y!==a&&(this.ob=a,a.diagram=this,this.currentTool===y&&(this.currentTool=a))}},currentTool:{get:function(){return this.hb},set:function(a){var y=this.hb;y&&(y.isActive&&y.doDeactivate(),y.cancelWaitAfter(),y.doStop()),a===null&&(a=this.defaultTool),a!==null&&(this.hb=a,a.diagram=this,a.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(a){var y=this.Nt;if(y!==a)if(0<=a&&!isNaN(a)){if(this.Nt=a,this.g("maxSelectionCount",y,a),!this.undoManager.isUndoingRedoing&&(a=this.selection.count-a,0= 0",Ue,"maxSelectionCount")}},nodeSelectionAdornmentTemplate:{get:function(){return this.St},set:function(a){var y=this.St;y!==a&&(this.St=a,this.g("nodeSelectionAdornmentTemplate",y,a))}},groupSelectionAdornmentTemplate:{get:function(){return this.wt},set:function(a){var y=this.wt;y!==a&&(this.wt=a,this.g("groupSelectionAdornmentTemplate",y,a))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kt},set:function(a){var y=this.Kt;y!==a&&(this.Kt=a,this.g("linkSelectionAdornmentTemplate",y,a))}},highlighteds:{get:function(){return this.nw}},isModified:{get:function(){var a=this.undoManager;return a.isEnabled?a.currentTransaction!==null?!0:this.rn&&this.Ce!==a.historyIndex:this.rn},set:function(a){if(this.rn!==a){this.rn=a;var y=this.undoManager;!a&&y.isEnabled&&(this.Ce=y.historyIndex),a||ip(this)}}},model:{get:function(){return this.cc},set:function(a){var y=this.cc;if(y!==a){this.currentTool.doCancel(),y&&y.undoManager!==a.undoManager&&y.undoManager.isInTransaction&&Xt("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=Sf(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var E=this.vb;this.vb=!0,ku(this.animationManager,"Model"),y&&(this.pf!==null&&this.pf.each(function(z){return y.ik(z)}),y.ik(this.Oc)),this.cc=a,this.partManager=Tf(this.cc.type);for(var b=0;bthis.scale&&(this.scale=a)):De(a,"> 0",Ue,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(a){var y=this.Mt;y!==a&&(0 0",Ue,"maxScale"))}},zoomPoint:{get:function(){return this.zu},set:function(a){this.zu.D(a)||(this.zu=a=a.J())}},contentAlignment:{get:function(){return this.zk},set:function(a){var y=this.zk;y.D(a)||(this.zk=a=a.J(),this.g("contentAlignment",y,a),Tl(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(a){var y=this.pq;y.D(a)||(this.pq=a=a.J(),this.g("initialContentAlignment",y,a))}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Ri(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.Ya(),this.g("padding",y,a))}},partManager:{get:function(){return this.Pc},set:function(a){var y=this.Pc;y!==a&&(a.diagram!==null&&Xt("Cannot share PartManagers between Diagrams: "+a.toString()),y&&y.Xe(null),this.Pc=a,a.Xe(this))}},nodes:{get:function(){return this.partManager.nodes.iterator}},links:{get:function(){return this.partManager.links.iterator}},parts:{get:function(){return this.partManager.parts.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;y!==a&&(this.Sc=a,a.diagram=this,a.group=null,this.xh=!0,this.g("layout",y,a),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(a){var y=this.Ht;if(y!==a&&(this.Ht=a,this.g("isTreePathToChildren",y,a),!this.undoManager.isUndoingRedoing))for(a=this.nodes;a.next();)o0(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==bh&&a!==oa&&a!==Fg&&Xt("Unknown Diagram.treeCollapsePolicy: "+a),this.uu=a,this.g("treeCollapsePolicy",y,a))}},Ue:{get:function(){return this.pw},set:function(a){this.pw=a}},avoidanceCellSize:{get:function(){return this.aw},set:function(a){this.Xh=null,this.aw=new Nn(Math.max(1,a.width),Math.max(1,a.height))}},avoidanceLimit:{get:function(){return this.bw},set:function(a){this.bw=Math.max(1,a)}},autoScrollInterval:{get:function(){return this.vp},set:function(a){var y=this.vp;y!==a&&(this.vp=a,this.g("autoScrollInterval",y,a))}},autoScrollRegion:{get:function(){return this.xp},set:function(a){typeof a=="number"&&(a=new Ri(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),Vt.Object.defineProperties(Ue,{licenseKey:{get:function(){return Yf.jc()},set:function(a){Yf.add(a.replace(/\s/g,""))}},version:{get:function(){return _c}}}),Ue.prototype.makeImageData=Ue.prototype.Jx,Ue.prototype.makeImage=Ue.prototype.Wz,Ue.prototype.cacheGroupExternalLinks=Ue.prototype.Fu,Ue.prototype.addRenderer=Ue.prototype.bs,Ue.prototype.makeSVG=Ue.prototype.av,Ue.prototype.makeSvg=Ue.prototype.Cs,Ue.prototype.stopAutoScroll=Ue.prototype.ug,Ue.prototype.doAutoScroll=Ue.prototype.gs,Ue.prototype.isUnoccupied=Ue.prototype.Yj,Ue.prototype.raiseDiagramEvent=Ue.prototype.R,Ue.prototype.removeDiagramListener=Ue.prototype.am,Ue.prototype.addDiagramListener=Ue.prototype.Bj,Ue.prototype.findTreeRoots=Ue.prototype.yz,Ue.prototype.layoutDiagram=Ue.prototype.Uz,Ue.prototype.findTopLevelGroups=Ue.prototype.qz,Ue.prototype.findTopLevelNodesAndLinks=Ue.prototype.rz,Ue.prototype.ensureBounds=Ue.prototype.Va,Ue.prototype.findLinksByExample=Ue.prototype.ls,Ue.prototype.findNodesByExample=Ue.prototype.ms,Ue.prototype.findLinkForData=Ue.prototype.Kc,Ue.prototype.findNodeForData=Ue.prototype.ii,Ue.prototype.findPartForData=Ue.prototype.Lc,Ue.prototype.findLinkForKey=Ue.prototype.findLinkForKey,Ue.prototype.findNodeForKey=Ue.prototype.Vb,Ue.prototype.findPartForKey=Ue.prototype.findPartForKey,Ue.prototype.rebuildParts=Ue.prototype.Wd,Ue.prototype.transformViewToDoc=Ue.prototype.Ps,Ue.prototype.transformRectDocToView=Ue.prototype.zA,Ue.prototype.transformDocToView=Ue.prototype.op,Ue.prototype.centerRect=Ue.prototype.es,Ue.prototype.scrollToRect=Ue.prototype.tv,Ue.prototype.scroll=Ue.prototype.scroll,Ue.prototype.highlightCollection=Ue.prototype.Jz,Ue.prototype.highlight=Ue.prototype.Iz,Ue.prototype.selectCollection=Ue.prototype.rA,Ue.prototype.select=Ue.prototype.select,Ue.prototype.updateAllRelationshipsFromData=Ue.prototype.rp,Ue.prototype.updateAllTargetBindings=Ue.prototype.updateAllTargetBindings,Ue.prototype.commit=Ue.prototype.commit,Ue.prototype.rollbackTransaction=Ue.prototype.Kf,Ue.prototype.commitTransaction=Ue.prototype.eb,Ue.prototype.startTransaction=Ue.prototype.Ea,Ue.prototype.raiseChanged=Ue.prototype.g,Ue.prototype.raiseChangedEvent=Ue.prototype.cb,Ue.prototype.removeChangedListener=Ue.prototype.ik,Ue.prototype.addChangedListener=Ue.prototype.Pe,Ue.prototype.removeModelChangedListener=Ue.prototype.mA,Ue.prototype.addModelChangedListener=Ue.prototype.Yw,Ue.prototype.findLayer=Ue.prototype.Qj,Ue.prototype.removeLayer=Ue.prototype.kA,Ue.prototype.addLayerAfter=Ue.prototype.Cy,Ue.prototype.addLayerBefore=Ue.prototype.Ww,Ue.prototype.addLayer=Ue.prototype.Al,Ue.prototype.moveParts=Ue.prototype.moveParts,Ue.prototype.copyParts=Ue.prototype.Kj,Ue.prototype.removeParts=Ue.prototype.Is,Ue.prototype.remove=Ue.prototype.remove,Ue.prototype.add=Ue.prototype.add,Ue.prototype.clearDelayedGeometries=Ue.prototype.bx,Ue.prototype.setProperties=Ue.prototype.nm,Ue.prototype.attach=Ue.prototype.Du,Ue.prototype.set=Ue.prototype.set,Ue.prototype.resetInputOptions=Ue.prototype.Sx,Ue.prototype.setInputOption=Ue.prototype.sA,Ue.prototype.getInputOption=Ue.prototype.Ql,Ue.prototype.resetRenderingHints=Ue.prototype.Tx,Ue.prototype.setRenderingHint=Ue.prototype.Xx,Ue.prototype.getRenderingHint=Ue.prototype.Gf,Ue.prototype.maybeUpdate=Ue.prototype.bd,Ue.prototype.requestUpdate=Ue.prototype.$b,Ue.prototype.delayInitialization=Ue.prototype.Xy,Ue.prototype.isUpdateRequested=Ue.prototype.Pz,Ue.prototype.invalidateDocumentBounds=Ue.prototype.Ya,Ue.prototype.findObjectsNear=Ue.prototype.og,Ue.prototype.findPartsNear=Ue.prototype.mz,Ue.prototype.findObjectsIn=Ue.prototype.Cf,Ue.prototype.findPartsIn=Ue.prototype.ux,Ue.prototype.findObjectsAt=Ue.prototype.ji,Ue.prototype.findPartsAt=Ue.prototype.lz,Ue.prototype.findObjectAt=Ue.prototype.ic,Ue.prototype.findPartAt=Ue.prototype.Ol,Ue.prototype.focusObject=Ue.prototype.zz,Ue.prototype.alignDocument=Ue.prototype.Jy,Ue.prototype.zoomToRect=Ue.prototype.BA,Ue.prototype.zoomToFit=Ue.prototype.zoomToFit,Ue.prototype.diagramScroll=Ue.prototype.kx,Ue.prototype.focus=Ue.prototype.focus;var Mg=new hi,lp=null,zr=We.document!==void 0,qc=null,fc="",us=new sn(Ue,"None",0),hl=new sn(Ue,"Uniform",1),pc=new sn(Ue,"UniformToFill",2),Td=new sn(Ue,"CycleAll",10),Wf=new sn(Ue,"CycleNotDirected",11),Gf=new sn(Ue,"CycleNotDirectedFast",12),Zf=new sn(Ue,"CycleNotUndirected",13),Uf=new sn(Ue,"CycleDestinationTree",14),Vf=new sn(Ue,"CycleSourceTree",15),Bh=new sn(Ue,"DocumentScroll",1),Od=new sn(Ue,"InfiniteScroll",2),bh=new sn(Ue,"TreeParentCollapsed",21),oa=new sn(Ue,"AllParentsCollapsed",22),Fg=new sn(Ue,"AnyParentsCollapsed",23),Yf=new Ln,_c="2.3.10",$c="image",jd=null,up=!1;function ns(){if(zr){var a=We.document.createElement("canvas"),y=a.getContext("2d"),x=yn("7ca11abfd022028846");y[x]=yn("398c3597c01238");for(var E=["5da73c80a36455d7038e4972187c3cae51fd22",Sn.Dx+"4ae6247590da4bb21c324ba3a84e385776",vo.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Ie.za],b=1;5>b;b++)y[yn("7ca11abfd7330390")](yn(E[b-1]),10,15*b);for(y[x]=yn("39f046ebb36e4b"),x=1;5>x;x++)y[yn("7ca11abfd7330390")](yn(E[x-1]),10,15*x);(E.length!==4||E[0][0]!=="5"||E[3][0]!=="7")&&(vo.prototype.Cd=vo.prototype.Eu),jd=a}}Ue.className="Diagram",Ue.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=We.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof Ue?y.H:null},Ue.inherit=function(a,y){function x(){}if(Object.getPrototypeOf(a).prototype)throw Error(`Used go.Diagram.inherit defining already defined class -`+a);x.prototype=y.prototype,a.prototype=new x,a.prototype.constructor=a},Ue.useDOM=function(a){zr=a?We.document!==void 0:!1},Ue.isUsingDOM=function(){return zr},Ue.None=us,Ue.Uniform=hl,Ue.UniformToFill=pc,Ue.CycleAll=Td,Ue.CycleNotDirected=Wf,Ue.CycleNotDirectedFast=Gf,Ue.CycleNotUndirected=Zf,Ue.CycleDestinationTree=Uf,Ue.CycleSourceTree=Vf,Ue.DocumentScroll=Bh,Ue.InfiniteScroll=Od,Ue.TreeParentCollapsed=bh,Ue.AllParentsCollapsed=oa,Ue.AnyParentsCollapsed=Fg;function hp(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function td(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)t:{y="f";var x=We[yn("76a715b2f73f148a")][yn("72ba13b5")]||"";if(a.Rc=!0,zr){var E=Ue[yn("76a115b6ed251eaf4692")];if(E)for(var b=Yf.iterator;b.next()&&(E=b.value,E=yn(E).split(yn("39e9")),!(6>E.length));){var z=yn(E[1]).split(".");if(E[4]!=="7da71ca0")break;var tt=yn(Sn[yn("6cae19")]).split(".");if(z[0]>tt[0]||z[0]===tt[0]&&z[1]>=tt[1]){var rt=We[yn("74a900bae4370f8b51")][yn("6fbb13a1c2311e8a57")].toLowerCase();if(tt=rt[yn("73a612b6fb191d")](yn("3aad1ab6e022098b4dc4")),z=yn(E[2]),-1tt&&z!==yn("7da71ca0ad381e90")&&(tt=y[yn("73a612b6fb191d")](yn("76a715b2ef3e149757"))),0>tt&&(tt=y[yn("73a612b6fb191d")](yn("76a715b2ef3e149757"))),0>tt&&(tt=y[yn("73a612b6fb191d")](yn("2bfa41fdb3784bca12"))),0>tt&&(tt=x[yn("73a612b6fb191d")](yn("7baa19a6f76c1988428554"))),a.Rc=!(0<=tt&&ttrt),!a.Rc)))break;if(z[0]==="#"){tt=We.document.createElement("div");for(var at=E[0].replace(/[A-Za-z]/g,"");4>at.length;)at+="9";if(rt=at,at=at.substr(at.length-4),E="",E+=["gsh","gsf"][parseInt(at.substr(0,1),10)%2],E+=["Header","Background","Display","Feedback"][parseInt(at.substr(0,1),10)%4],tt[yn("79a417a0f0181a8946")]=E,We.document[yn("78a712aa")]){We.document[yn("78a712aa")][yn("7bb806b6ed32388c4a875b")](tt),at=We.getComputedStyle(tt).getPropertyValue(yn("78a704b7e62456904c9b12701b6532a8"));var lt=We.getComputedStyle(tt).getPropertyValue(yn("75b817b0ea2202"));if(We.document[yn("78a712aa")][yn("68ad1bbcf533388c4a875b")](tt),at){if(tt=We[yn("77a902b0eb1b1e804a8a")],lt==="0."+parseInt(rt,10)%100||at.indexOf(parseInt(z[1]+z[2],16))!==-1&&at.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(tt&&tt(yn("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(E="."+E,z=0;zE.updateDelay?E.N():E.o||(E.o=!0,setTimeout(function(){return E.redraw()},E.updateDelay))},x.Of=function(){E.observed!==null&&Nt(E)},x.autoScale=hl,x.vb=!1,y&&Object.assign(x,y),x}Yt(mt,Ue),mt.prototype.computePixelRatio=function(){return 1},mt.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var a=this.ta,y=this.ib;if(a!==null&&y!==null){if(Kc(this),this.ql===null){var x=new jl(null);x.width=a.width,x.height=a.height,this.ql=x}try{this.ta=this.ql,this.ib=this.ta.context,this.ib.Vc(!0),this.ib.setTransform(1,0,0,1,0,0),this.ib.clearRect(0,0,this.ta.width,this.ta.height),It(this)}finally{this.ta=a,this.ib=y}}}Ue.prototype.redraw.call(this)},mt.prototype.gc=function(){if(this.Ka===null&&Xt("No div specified"),this.ta===null&&Xt("No canvas specified"),!(this.ta instanceof Pu)&&(Tv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){Kc(this);var y=this.ta;a=this.ib,a.Vc(!0),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,y.width,y.height),1>this.updateDelay?It(this):this.ql!==null&&(a.drawImage(this.ql.Oa,0,0),y=this.Ab,y.reset(),this.scale!==1&&y.scale(this.scale),this.position.x===0&&this.position.y===0||y.translate(-this.position.x,-this.position.y),a.scale(this.Mb,this.Mb),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.yc()),y=this.Wa.s;for(var x=y.length,E=0;Ea&&(a=0),this.ia!==a&&(this.ia=a)}}}),mt.className="Overview";function Gt(){ci.call(this),this.j=null}Yt(Gt,ci),Gt.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||!a.allowMove||!a.allowSelect)return!1;var y=a.observed;if(y===null)return!1;var x=a.lastInput;return!x.left||a.currentTool!==this&&(!this.isBeyondDragSize()||x.isTouchEvent&&x.timestamp-a.firstInput.timestampy.maxScale||(y.scale=a))},Ht.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==us?!1:(a=y.scale*a,ay.maxScale?!1:y.allowZoom)},Ht.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===us&&(a=y.scale*a,ay.maxScale||(y.scale=a))},Ht.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==us?!1:(a=y.scale*a,ay.maxScale?!1:y.allowZoom)},Ht.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;ay.maxScale||(y.scale=a)},Ht.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return ay.maxScale?!1:y.allowZoom},Ht.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,E=a.scale;ku(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&E===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=Wr):(this.Jt=E,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),dg(y)},Ht.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Ht.prototype.scrollToPart=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.Va(),a===null){try{this.cg!==null&&(this.cg.next()?a=this.cg.value:this.cg=null)}catch(at){this.cg=null}a===null&&(0a&&(a+=360)),a},Ct.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Ct.qs=function(a,y){return y===void 0&&(y=new Ot),y.assign(a),this.oe.Cd(y),y},Ct.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Ct.Sj=function(a,y,x,E,b){var z=this.transform,tt=1/(z.m11*z.m22-z.m12*z.m21),rt=z.m22*tt,at=-z.m12*tt,lt=-z.m21*tt,ht=z.m11*tt,ft=tt*(z.m21*z.dy-z.m22*z.dx),vt=tt*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,Ie.Ff(z.left,z.top,z.right,z.bottom,a,y,x,E,b)):(tt=a*rt+y*lt+ft,a=a*at+y*ht+vt,y=x*rt+E*lt+ft,x=x*at+E*ht+vt,b.h(0,0),E=this.naturalBounds,x=Ie.Ff(0,0,E.width,E.height,tt,a,y,x,b),b.transform(z),x)},Se.prototype.measure=function(a,y,x,E){if(dl(this)!==!1){var b=this.Kg,z=b.right+b.left;b=b.top+b.bottom,a=Math.max(a-z,0),y=Math.max(y-b,0),x=Math.max((x||0)-z,0),E=Math.max((E||0)-b,0),z=this.angle,b=this.desiredSize;var tt=this.kq();z===90||z===270?(a=isFinite(b.height)?b.height+tt:a,y=isFinite(b.width)?b.width+tt:y):(a=isFinite(b.width)?b.width+tt:a,y=isFinite(b.height)?b.height+tt:y),b=x||0,tt=E||0;var rt=this instanceof zn;switch(Ts(this,!0)){case In:tt=b=0,rt&&(y=a=1/0);break;case On:isFinite(a)&&a>x&&(b=a),isFinite(y)&&y>E&&(tt=y);break;case Si:isFinite(a)&&a>x&&(b=a),tt=0,rt&&(y=1/0);break;case Ti:isFinite(y)&&y>E&&(tt=y),b=0,rt&&(a=1/0)}rt=this.maxSize;var at=this.minSize;b>rt.width&&at.widthrt.height&&at.heighta.height||this.Cb>a.width))&&(x=!0)),this.l=x?this.l|256:this.l&-257,this.Ib.w()||Xt("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),zu(this,!1),on.free(z)},Ct=Se.prototype,Ct.eh=function(){};function hs(a,y,x,E,b){if(a.Ib.h(y,x,E,b),!a.desiredSize.w()){var z=a.uc;x=a.Kg,y=x.right+x.left;var tt=x.top+x.bottom;switch(x=z.width+y,z=z.height+tt,E+=y,b+=tt,y=Ts(a,!0),x===E&&z===b&&(y=In),y){case In:(x>E||z>b)&&(ra(a,!0),a.measure(x>E?E:x,z>b?b:z,0,0));break;case On:ra(a,!0),a.measure(E,b,0,0);break;case Si:ra(a,!0),a.measure(E,z,0,0);break;case Ti:ra(a,!0),a.measure(x,b,0,0)}}}Ct.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||zv(x,!0),this.N(),Ll(a,y)||(x.oh(),this.Pn(x)))},Ct.Pn=function(a){this.portId!==null&&(zv(a,!0),a instanceof ri&&Zy(a,this))},Ct.gc=function(a,y){if(!Cl(this,a,y)&&this.visible){var x=this.opacity;if(x!==0){var E=1;x!==1&&(E=a.globalAlpha,a.globalAlpha=E*x);var b="";this.filter!==""&&(b=a.filter,a.filter=this.filter);var z=this instanceof zn&&Th(this),tt=this.Ib;if(z){var rt=this.Ib,at=this.dc,lt=this.areaBackground,ht=this.Ma;lt===null&&ht===null||a.yc(),lt!==null&&(Hr(this,a,lt,!0,!0,at,rt),lt instanceof qo&<.type===wl?(a.beginPath(),a.rect(rt.x,rt.y,rt.width,rt.height),a.ng(lt)):a.fillRect(rt.x,rt.y,rt.width,rt.height)),ht!==null&&(Hr(this,a,ht,!0,!1,at,rt),ht instanceof qo&&ht.type===wl?(a.beginPath(),a.rect(rt.x,rt.y,rt.width,rt.height),a.ng(ht)):a.fillRect(rt.x,rt.y,rt.width,rt.height)),this.hh(a,y)}if(!z&&(z||tt.width!==0&&tt.height!==0&&!isNaN(tt.x)&&!isNaN(tt.y))){z=this.transform,rt=this.panel,this.l&4096&&Oa(this),lt=this.part,at=!1;var ft=0;lt&&y.Gf("drawShadows")&&(at=lt.isShadowed)&&(ht=lt.shadowOffset,ft=Math.max(ht.y,ht.x)*y.scale*y.Mb),ht=this.Dd();var vt;if(!(vt=y.$i||!ht)){var xt=this.naturalBounds;vt=this.wh;var Et=vt.m11,Lt=vt.m21,Wt=vt.dx,kt=vt.m12,Jt=vt.m22,ne=vt.dy,se,ye=se=0;vt=se*Et+ye*Lt+Wt;var Ge=se*kt+ye*Jt+ne;se=xt.width+ft,ye=0;var ni=se*Et+ye*Lt+Wt;se=se*kt+ye*Jt+ne,ye=Math.min(vt,ni);var fi=Math.min(Ge,se),ui=Math.max(vt+0,ni)-ye,Un=Math.max(Ge+0,se)-fi;vt=ye,Ge=fi,se=xt.width+ft,ye=xt.height+ft,ni=se*Et+ye*Lt+Wt,se=se*kt+ye*Jt+ne,ye=Math.min(vt,ni),fi=Math.min(Ge,se),ui=Math.max(vt+ui,ni)-ye,Un=Math.max(Ge+Un,se)-fi,vt=ye,Ge=fi,se=0,ye=xt.height+ft,ni=se*Et+ye*Lt+Wt,se=se*kt+ye*Jt+ne,ye=Math.min(vt,ni),fi=Math.min(Ge,se),ui=Math.max(vt+ui,ni)-ye,Un=Math.max(Ge+Un,se)-fi,vt=ye,Ge=fi,ft=y.viewportBounds,xt=ft.x,Et=ft.y,vt=!(vt>ft.width+xt||xt>ui+vt||Ge>ft.height+Et||Et>Un+Ge)}if(vt){if(vt=(this.l&256)!==0,a.clipInsteadOfFill&&(vt=!1),this instanceof cr&&(a.font=this.font),vt){if(Ge=rt.se()?rt.naturalBounds:rt.actualBounds,ui=Math.max(tt.x,Ge.x),Un=Math.max(tt.y,Ge.y),ft=Math.min(tt.right,Ge.right)-ui,xt=Math.min(tt.bottom,Ge.bottom)-Un,Et=this.tb,Et!==null&&(ui=Et.x,Un=Et.y,ft=Et.width,xt=Et.height),ui>tt.width+tt.x||tt.x>Ge.width+Ge.x){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}a.save(),a.beginPath(),a.rect(ui,Un,ft,xt),a.clip()}if(ht){if(!lt.isVisible()){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}at&&(Ge=lt.shadowOffset,a.Ev(Ge.x*y.scale*this.scale*y.Mb,Ge.y*y.scale*this.scale*y.Mb,lt.shadowBlur),uh(a),a.shadowColor=lt.shadowColor)}at&&this.shadowVisible===!0?uh(a):at&&this.shadowVisible===!1&&Ru(a),lt=this.naturalBounds,this.areaBackground!==null&&(a.yc(),cl(this,a,lt,tt)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),at&&La(this,rt)&&this.shadowVisible===null&&Ru(a),this.Ma!==null&&(a.yc(),Gs(this,a,lt,tt)),at&&(this.Ma!==null||this.areaBackground!==null||La(this,rt))?(Jl(this,!0),this.shadowVisible===null&&Ru(a)):Jl(this,!1),this.hh(a,y),at&&this.l&512&&uh(a),ht&&at&&Ru(a),vt&&(a.restore(),a.Vc(this instanceof zn)),z.ws()||(y=1/(z.m11*z.m22-z.m12*z.m21),a.transform(z.m22*y,-z.m12*y,-z.m21*y,z.m11*y,y*(z.m21*z.dy-z.m22*z.dx),y*(z.m12*z.dx-z.m11*z.dy)))}}x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b)}}};function La(a,y){return y===null?!1:(Th(y)&&(y=y.panel),(y.l&512)!==0||(y.type===zn.Auto||y.type===zn.Spot)&&y.Pb()!==a)}Ct.Dv=function(){};function cl(a,y,x,E){Hr(a,y,a.areaBackground,!0,!0,x,E),a.areaBackground instanceof qo&&a.areaBackground.type===wl?(y.beginPath(),y.rect(E.x,E.y,E.width,E.height),y.ng(a.areaBackground)):y.fillRect(E.x,E.y,E.width,E.height)}function Gs(a,y,x,E){var b=a.kq(),z=x.x,tt=x.y,rt=x.width+b,at=x.height+b;Hr(a,y,a.Ma,!0,!1,x,E),a.Ma instanceof qo&&a.Ma.type===wl?(y.beginPath(),y.rect(z-b/2,tt-b/2,rt,at),y.ng(a.Ma)):y.fillRect(z-b/2,tt-b/2,rt,at)}function is(a,y,x){for(var E=y.O.s,b=E.length,z=-1,tt=0;ttb)&&Xt("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+b),a.isRow=!0,a.index=b):y.column!==void 0&&(b=y.column,(b==null||b===1/0||isNaN(b)||0>b)&&Xt("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+b),a.isRow=!1,a.index=b),b=new ji;for(x in y)x!=="row"&&x!=="column"&&(b[x]=y[x]);Xc(a,b)}else Xc(a,y);else Xt('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function Nh(a,y){Lg.add(a,y)}function cp(a,y,x){x===void 0&&(x=null);var E=a[1];if(typeof x=="function"?x(E):typeof E=="string")return a.splice(1,1),E;if(y===void 0)throw Error("no "+(typeof x=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}Vt.Object.defineProperties(Se.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new Hd),this.A.zp=a)}},localBindings:{get:function(){return this.A!==null?this.A.te:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new Hd),this.A.te=a)}},srcBindings:{get:function(){return this.A!==null?this.A.wm:null},set:function(a){this.srcBindings!==a&&(this.A===null&&(this.A=new Hd),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(mo(this),this.A.Ci=a,this.Uc=!0,this.N(),this.g("shadowVisible",y,a))}},enabledChanged:{get:function(){return this.A!==null?this.A.Hb:null},set:function(a){var y=this.enabledChanged;y!==a&&(mo(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Ss},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new mc),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===Ss&&(this.angle=0))}},segmentIndex:{get:function(){return this.Ua!==null?this.Ua.u:-1/0},set:function(a){a=Math.round(a);var y=this.segmentIndex;y!==a&&(this.Ua===null&&(this.Ua=new mc),this.Ua.u=a,this.v(),this.g("segmentIndex",y,a))}},segmentFraction:{get:function(){return this.Ua!==null?this.Ua.o:0},set:function(a){isNaN(a)||0>a?a=0:1a||1=a&&Xt("GraphObject.scale for "+this+" must be greater than zero, not: "+a),this.Ca=a,this.v(),this.g("scale",y,a))}},angle:{get:function(){return this.Kb},set:function(a){var y=this.Kb;y!==a&&(a%=360,0>a&&(a+=360),y!==a&&(this.Kb=a,X1(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,E=this.jd,b=E.width,z=E.height;(b===y||isNaN(b)&&isNaN(y))&&(z===x||isNaN(z)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof lo&&this.qc(),this.g("desiredSize",E,a),Ha(this)&&(a=this.part,a!==null&&(vr(this,a,"width"),vr(this,a,"height"))))}},width:{get:function(){return this.jd.width},set:function(a){var y=this.jd.width;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new Nn(a,this.jd.height).freeze(),this.v(),this instanceof lo&&this.qc(),this.g("desiredSize",y,a),Ha(this)&&(a=this.part,a!==null&&vr(this,a,"width")))}},height:{get:function(){return this.jd.height},set:function(a){var y=this.jd.height;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new Nn(this.jd.width,a).freeze(),this.v(),this instanceof lo&&this.qc(),this.g("desiredSize",y,a),Ha(this)&&(a=this.part,a!==null&&vr(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:Pi},set:function(a){var y=this.minSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=0),isNaN(a.height)&&(a.height=0),a.freeze(),mo(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:co},set:function(a){var y=this.maxSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=1/0),isNaN(a.height)&&(a.height=1/0),a.freeze(),mo(this),this.A.o=a,this.v(),this.g("maxSize",y,a))}},measuredBounds:{get:function(){return this.uc}},naturalBounds:{get:function(){return this.dc}},margin:{get:function(){return this.Kg},set:function(a){typeof a=="number"&&(a=new Ri(a));var y=this.Kg;y.D(a)||(this.Kg=a=a.J(),this.v(),this.g("margin",y,a))}},transform:{get:function(){return this.l&2048&&Oa(this),this.Ab}},oe:{get:function(){return this.l&4096&&Oa(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(mo(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:In},set:function(a){this.reshapingBehavior!==a&&(mo(this),this.A.Pf=a)}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(a.Mc()&&!a.Xb()&&Xt("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),vs(this),this.g("alignment",y,a))}},column:{get:function(){return this.Ag},set:function(a){a=Math.round(a);var y=this.Ag;y!==a&&(0>a&&De(a,">= 0",Se,"column"),this.Ag=a,this.v(),this.g("column",y,a),this.svg!==null&&this.svg.remove())}},columnSpan:{get:function(){return this.A!==null?this.A.ob:1},set:function(a){a=Math.round(a);var y=this.columnSpan;y!==a&&(1>a&&De(a,">= 1",Se,"columnSpan"),mo(this),this.A.ob=a,this.v(),this.g("columnSpan",y,a))}},row:{get:function(){return this.io},set:function(a){a=Math.round(a);var y=this.io;y!==a&&(0>a&&De(a,">= 0",Se,"row"),this.io=a,this.v(),this.g("row",y,a),this.svg!==null&&this.svg.remove())}},rowSpan:{get:function(){return this.A!==null?this.A.Bi:1},set:function(a){a=Math.round(a);var y=this.rowSpan;y!==a&&(1>a&&De(a,">= 1",Se,"rowSpan"),mo(this),this.A.Bi=a,this.v(),this.g("rowSpan",y,a))}},spanAllocation:{get:function(){return this.A!==null?this.A.Di:null},set:function(a){var y=this.spanAllocation;y!==a&&(mo(this),this.A.Di=a,this.v(),this.g("spanAllocation",y,a))}},alignmentFocus:{get:function(){return this.sk},set:function(a){var y=this.sk;y.D(a)||(this.sk=a=a.J(),this.v(),this.g("alignmentFocus",y,a))}},portId:{get:function(){return this.Yn},set:function(a){var y=this.Yn;if(y!==a){var x=this.part;x===null||x instanceof ri||Xt("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Gv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,Yy(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:ir},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),ed(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&De(a,">= 0",Se,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),ed(this))}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:0},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.g("toShortLength",y,a),ed(this))}},toLinkable:{get:function(){return this.ba!==null?this.ba.Tr:null},set:function(a){var y=this.toLinkable;y!==a&&(this.Xc(),this.ba.Tr=a,this.g("toLinkable",y,a))}},toMaxLinks:{get:function(){return this.ba!==null?this.ba.Ur:1/0},set:function(a){var y=this.toMaxLinks;y!==a&&(0>a&&De(a,">= 0",Se,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:ir},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),ed(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&De(a,">= 0",Se,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),ed(this))}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:0},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.g("fromShortLength",y,a),ed(this))}},fromLinkable:{get:function(){return this.ba!==null?this.ba.hq:null},set:function(a){var y=this.fromLinkable;y!==a&&(this.Xc(),this.ba.hq=a,this.g("fromLinkable",y,a))}},fromMaxLinks:{get:function(){return this.ba!==null?this.ba.iq:1/0},set:function(a){var y=this.fromMaxLinks;y!==a&&(0>a&&De(a,">= 0",Se,"fromMaxLinks"),this.Xc(),this.ba.iq=a,this.g("fromMaxLinks",y,a))}},cursor:{get:function(){return this.A!==null?this.A.j:""},set:function(a){var y=this.cursor;y!==a&&(mo(this),this.A.j=a,this.g("cursor",y,a))}},click:{get:function(){return this.A!==null?this.A.zh:null},set:function(a){var y=this.click;y!==a&&(mo(this),this.A.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.A!==null?this.A.Fh:null},set:function(a){var y=this.doubleClick;y!==a&&(mo(this),this.A.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.A!==null?this.A.Bh:null},set:function(a){var y=this.contextClick;y!==a&&(mo(this),this.A.Bh=a,this.g("contextClick",y,a))}},mouseEnter:{get:function(){return this.A!==null?this.A.Mh:null},set:function(a){var y=this.mouseEnter;y!==a&&(mo(this),this.A.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.A!==null?this.A.Ph:null},set:function(a){var y=this.mouseLeave;y!==a&&(mo(this),this.A.Ph=a,this.g("mouseLeave",y,a))}},mouseOver:{get:function(){return this.A!==null?this.A.Qh:null},set:function(a){var y=this.mouseOver;y!==a&&(mo(this),this.A.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.A!==null?this.A.Oh:null},set:function(a){var y=this.mouseHover;y!==a&&(mo(this),this.A.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.A!==null?this.A.Nh:null},set:function(a){var y=this.mouseHold;y!==a&&(mo(this),this.A.Nh=a,this.g("mouseHold",y,a))}},mouseDragEnter:{get:function(){return this.A!==null?this.A.Of:null},set:function(a){var y=this.mouseDragEnter;y!==a&&(mo(this),this.A.Of=a,this.g("mouseDragEnter",y,a))}},mouseDragLeave:{get:function(){return this.A!==null?this.A.Xd:null},set:function(a){var y=this.mouseDragLeave;y!==a&&(mo(this),this.A.Xd=a,this.g("mouseDragLeave",y,a))}},mouseDrop:{get:function(){return this.A!==null?this.A.Lh:null},set:function(a){var y=this.mouseDrop;y!==a&&(mo(this),this.A.Lh=a,this.g("mouseDrop",y,a))}},actionDown:{get:function(){return this.A!==null?this.A.V:null},set:function(a){var y=this.actionDown;y!==a&&(mo(this),this.A.V=a,this.g("actionDown",y,a))}},actionMove:{get:function(){return this.A!==null?this.A.ia:null},set:function(a){var y=this.actionMove;y!==a&&(mo(this),this.A.ia=a,this.g("actionMove",y,a))}},actionUp:{get:function(){return this.A!==null?this.A.Ha:null},set:function(a){var y=this.actionUp;y!==a&&(mo(this),this.A.Ha=a,this.g("actionUp",y,a))}},actionCancel:{get:function(){return this.A!==null?this.A.F:null},set:function(a){var y=this.actionCancel;y!==a&&(mo(this),this.A.F=a,this.g("actionCancel",y,a))}},toolTip:{get:function(){return this.A!==null?this.A.$h:null},set:function(a){var y=this.toolTip;y!==a&&(mo(this),this.A.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.A!==null?this.A.Ch:null},set:function(a){var y=this.contextMenu;y!==a&&(mo(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),Se.prototype.trigger=Se.prototype.Jv,Se.prototype.findBindingPanel=Se.prototype.ih,Se.prototype.findTemplateBinder=Se.prototype.pz,Se.prototype.setProperties=Se.prototype.nm,Se.prototype.apply=Se.prototype.apply,Se.prototype.attach=Se.prototype.Du,Se.prototype.set=Se.prototype.set,Se.prototype.isEnabledObject=Se.prototype.If,Se.prototype.isVisibleObject=Se.prototype.Ed,Se.prototype.isContainedBy=Se.prototype.rg,Se.prototype.getNearestIntersectionPoint=Se.prototype.rs,Se.prototype.getLocalPoint=Se.prototype.qs,Se.prototype.getDocumentScale=Se.prototype.Df,Se.prototype.getDocumentAngle=Se.prototype.li,Se.prototype.getDocumentBounds=Se.prototype.mi,Se.prototype.getDocumentPoint=Se.prototype.ga,Se.prototype.intersectsRect=Se.prototype.Yc,Se.prototype.containedInRect=Se.prototype.fh,Se.prototype.containsRect=Se.prototype.Re,Se.prototype.containsPoint=Se.prototype.ca,Se.prototype.raiseChanged=Se.prototype.g,Se.prototype.raiseChangedEvent=Se.prototype.cb,Se.prototype.addCopyProperty=Se.prototype.Vw;var Lg=null;Se.className="GraphObject",Lg=new hi,Nh("Button",function(){function a(x,E){return x.diagram.ic(x.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b},function(b){return b===E})!==null}var y=xl(zn,zn.Auto,{isActionable:!0,enabledChanged:function(x,E){if(x instanceof zn){var b=x.fb("ButtonBorder");b!==null&&(b.fill=E?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},xl(lo,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new Mi(0,0,2.76142374915397,2.761423749153969),spot2:new Mi(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,E){if(E.If()&&E instanceof zn&&(x=E.fb("ButtonBorder"),x instanceof lo)){var b=E._buttonFillOver;E._buttonFillNormal=x.fill,x.fill=b,b=E._buttonStrokeOver,E._buttonStrokeNormal=x.stroke,x.stroke=b}},y.mouseLeave=function(x,E){E.If()&&E instanceof zn&&(x=E.fb("ButtonBorder"),x instanceof lo&&(x.fill=E._buttonFillNormal,x.stroke=E._buttonStrokeNormal))},y.actionDown=function(x,E){if(E.If()&&E instanceof zn&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof lo){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var tt=E._buttonFillPressed;E._buttonFillOver=b.fill,b.fill=tt,tt=E._buttonStrokePressed,E._buttonStrokeOver=b.stroke,b.stroke=tt,x.skipsUndoManager=z}}},y.actionUp=function(x,E){if(E.If()&&E instanceof zn&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof lo){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionCancel=function(x,E){if(E.If()&&E instanceof zn&&E._buttonFillPressed!==null){var b=E.fb("ButtonBorder");if(b instanceof lo){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionMove=function(x,E){if(E.If()&&E instanceof zn&&E._buttonFillPressed!==null){var b=x.diagram;if(b.firstInput.button===0&&(b.currentTool.standardMouseOver(),a(x,E)&&(x=E.fb("ButtonBorder"),x instanceof lo))){var z=b.skipsUndoManager;b.skipsUndoManager=!0;var tt=E._buttonFillPressed;x.fill!==tt&&(x.fill=tt),tt=E._buttonStrokePressed,x.stroke!==tt&&(x.stroke=tt),b.skipsUndoManager=z}}},y}),Nh("TreeExpanderButton",function(){var a=xl("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},xl(lo,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Oi},new $r("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new $r("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof jo&&(x=x.adornedPart),x instanceof ri){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isTreeExpanded){if(!E.canCollapseTree(x))return}else if(!E.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?E.collapseTree(x):E.expandTree(x)}}},a}),Nh("SubGraphExpanderButton",function(){var a=xl("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},xl(lo,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Oi},new $r("figure","isSubGraphExpanded",function(y,x){return x=x.panel,y?x._subGraphExpandedFigure:x._subGraphCollapsedFigure}).cp()));return a.click=function(y,x){if(x=x.part,x instanceof jo&&(x=x.adornedPart),x instanceof to){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isSubGraphExpanded){if(!E.canCollapseSubGraph(x))return}else if(!E.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?E.collapseSubGraph(x):E.expandSubGraph(x)}}},a}),Nh("ToolTip",function(){return xl(jo,zn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Ot(0,3),shadowBlur:5},xl(lo,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new Mi(0,0,4,6),spot2:new Mi(1,1,-4,-4)}))}),Nh("ContextMenu",function(){return xl(jo,zn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Ot(0,3),shadowBlur:5},new $r("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),Nh("ContextMenuButton",function(){var a=xl("Button");a.stretch=Si;var y=a.fb("ButtonBorder");return y instanceof lo&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new Mi(0,0,2,3),y.spot2=new Mi(1,1,-2,-2)),a}),Nh("PanelExpanderButton",function(a){var y=cp(a,"COLLAPSIBLE"),x=xl("Button",{_buttonExpandedFigure:"M0 0 M0 6 L4 2 8 6 M8 8",_buttonCollapsedFigure:"M0 0 M0 2 L4 6 8 2 M8 8",_buttonFillNormal:"rgba(0, 0, 0, 0)",_buttonStrokeNormal:null,_buttonFillOver:"rgba(0, 0, 0, .2)",_buttonStrokeOver:null,_buttonFillPressed:"rgba(0, 0, 0, .4)",_buttonStrokePressed:null},xl(lo,{name:"ButtonIcon",strokeWidth:2},new $r("geometryString","visible",function(E){return E?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof lo&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(E,b){var z=b.diagram;if(z!==null&&!z.isReadOnly){var tt=b.ih();tt===null&&(tt=b.part),tt!==null&&(b=tt.fb(y),b!==null&&(E.handled=!0,z.Ea("Collapse/Expand Panel"),b.visible=!b.visible,z.eb("Collapse/Expand Panel")))}},x}),Nh("CheckBoxButton",function(a){var y=cp(a);return a=xl("Button",{desiredSize:new Nn(14,14)},xl(lo,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:On,geometryStretch:vi,visible:!1},y!==""?new $r("visible",y).Kx():[])),a.click=function(x,E){if(E instanceof zn){var b=x.diagram;if(!(b===null||b.isReadOnly||y!==""&&b.model.isReadOnly)){x.handled=!0;var z=E.fb("ButtonIcon");b.Ea("checkbox"),z.visible=!z.visible,typeof E._doClick=="function"&&E._doClick(x,E),b.eb("checkbox")}}},a}),Nh("CheckBox",function(a){a=cp(a),a=xl("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new Ri(0,1,0,0)});var y=xl(zn,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Ri(1),_buttonFillNormal:a._buttonFillNormal,_buttonStrokeNormal:a._buttonStrokeNormal,_buttonFillOver:a._buttonFillOver,_buttonStrokeOver:a._buttonStrokeOver,_buttonFillPressed:a._buttonFillPressed,_buttonStrokePressed:a._buttonStrokePressed,_buttonFillDisabled:a._buttonFillDisabled,mouseEnter:a.mouseEnter,mouseLeave:a.mouseLeave,actionDown:a.actionDown,actionUp:a.actionUp,actionCancel:a.actionCancel,actionMove:a.actionMove,click:a.click,_buttonClick:a.click});return a.mouseEnter=null,a.mouseLeave=null,a.actionDown=null,a.actionUp=null,a.actionCancel=null,a.actionMove=null,a.click=null,y}),Se.None=In=new sn(Se,"None",0),Se.Default=no=new sn(Se,"Default",0),Se.Vertical=Ti=new sn(Se,"Vertical",4),Se.Horizontal=Si=new sn(Se,"Horizontal",5),Se.Fill=On=new sn(Se,"Fill",3),Se.Uniform=vi=new sn(Se,"Uniform",1),Se.UniformToFill=Io=new sn(Se,"UniformToFill",2),Se.FlipVertical=yo=new sn(Se,"FlipVertical",1),Se.FlipHorizontal=ko=new sn(Se,"FlipHorizontal",2),Se.FlipBoth=er=new sn(Se,"FlipBoth",3),Se.make=xl,Se.getBuilders=function(){var a=new hi,y;for(y in Lg)if(y!==y.toLowerCase()){var x=Lg.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},Se.defineBuilder=Nh,Se.build=function(a,y,x){for(var E=[],b=2;ba&&(a+=360),a!==0){if(this.translate(y,x),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.ha[1]*a+this.ha[3]*E,z=this.ha[0]*-E+this.ha[2]*a,tt=this.ha[1]*-E+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*E,this.ha[1]=b,this.ha[2]=z,this.ha[3]=tt,this.translate(-y,-x)}},nd.className="STransform";function Wd(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}Wd.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},Wd.className="SGradient";function Pu(a,y,x){this.ownerDocument=a=y===void 0?We.document:y,this.cA="http://www.w3.org/2000/svg",a!==void 0&&(this.Oa=this.Ud("svg",{width:"1px",height:"1px",viewBox:"0 0 1 1"}),this.style.display="block",this.style.letterSpacing="normal",this.style.wordSpacing="normal",this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink")),this.hs=null,this.context=new $s(this,x)}Pu.prototype.resize=function(a,y,x,E){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=E+"px",this.Oa.setAttributeNS(null,"width",x+"px"),this.Oa.setAttributeNS(null,"height",E+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+x+" "+E),this.context.ww.firstElementChild.setAttributeNS(null,"width",x+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",E+"px"),!0):!1},Pu.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),he(y))for(var E in y)a.setAttributeNS(E==="href"?"http://www.w3.org/1999/xlink":"",E,y[E]);return x!==void 0&&(a.textContent=x),a},Pu.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Pu.prototype.focus=function(){this.Oa.focus()},Pu.prototype.mx=function(){this.ownerDocument=null},Vt.Object.defineProperties(Pu.prototype,{width:{get:function(){return this.Oa.width.baseVal.value},set:function(a){this.Oa.setAttribute("width",a+"px")}},height:{get:function(){return this.Oa.height.baseVal.value},set:function(a){this.Oa.setAttribute("height",a+"px")}},style:{get:function(){return this.Oa.style}}}),Pu.className="SVGSurface";function $s(a,y){this.Gv=a,this.svg=a.Oa,this.stack=[],this.nh=[],this.fillStyle="#000000",this.font="10px sans-serif",this.globalAlpha=1,this.lineCap="butt",this.lineDashOffset=0,this.lineJoin="miter",this.lineWidth=1,this.miterLimit=10,this.shadowBlur=0,this.shadowColor="rgba(0, 0, 0, 0)",this.shadowOffsetY=this.shadowOffsetX=0,this.Il=!1,this.strokeStyle="#000000",this.textAlign="start",this.clipInsteadOfFill=!1,this.Vg=this.Br=this.Ar=0,this.yd=this.ad=null,this.path=[],this.Yl={},this.Ct=!1,this.Yg=null,this.uj=0,this.rb=new nd,this.j=dp(this),this.Nj=dp(this,"gojs-diagram"),this.Hl=this.ti=null;var x=Uo++,E=this.Ud("clipPath",{id:"mainClip"+x});E.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=E,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(E),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function K1(a,y,x,E,b,z,tt){a.Nj===void 0?Kf(a,y,x,E,b,z,tt):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+E+", "+b+", "+z+", "+tt+")")}Ct=$s.prototype,Ct.arc=function(a,y,x,E,b,z,tt,rt){var at=2*Math.PI,lt=at-1e-6,ht=x*Math.cos(E),ft=x*Math.sin(E),vt=a+ht,xt=y+ft,Et=z?0:1;E=z?E-b:b-E,(1e-6E&&(E=E%at+at),E>lt?(this.path.push(["A",x,x,0,1,Et,a-ht,y-ft]),this.path.push(["A",x,x,0,1,Et,vt,xt])):1e-6=Math.PI),Et,a+x*Math.cos(b),y+x*Math.sin(b)])},Ct.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Ct.Se=function(a){this.addPath(this.path,this.rb,a||0)},Ct.bezierCurveTo=function(a,y,x,E,b,z){this.path.push(["C",a,y,x,E,b,z])},Ct.clearRect=function(){},Ct.clip=function(){this.Yl.clipPath=!0},Ct.closePath=function(){this.path.push(["z"])},Ct.createLinearGradient=function(a,y,x,E){var b=new Wd("linear");return b.x1=a,b.y1=y,b.x2=x,b.y2=E,b},Ct.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var x=this.eA;if(x[y])return"url(#"+x[y]+")";var E="PATTERN"+Uo++,b={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:E,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud($c,b)),this.svg.appendChild(a),x[y]=E,"url(#"+E+")"},Ct.createRadialGradient=function(a,y,x,E,b,z){var tt=new Wd("radial");return tt.x1=a,tt.y1=y,tt.r1=x,tt.x2=E,tt.y2=b,tt.r2=z,tt};function Q1(a,y,x,E,b,z,tt,rt,at){E=rt/E,b=at/b,z===0&&tt===0||a.rb.translate(z,tt),E===1&&b===1||a.rb.scale(E,b),y===0&&x===0||a.rb.translate(-y,-x)}Ct.drawImage=function(a,y,x,E,b,z,tt,rt,at){var lt="";a instanceof HTMLCanvasElement&&(lt=a.toDataURL()),a instanceof HTMLImageElement&&(lt=a.getAttribute("src"));var ht=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,E===void 0&&(z=y,tt=x,rt=E=ht,at=b=a),E=E||0,b=b||0,rt=rt||0,at=at||0,Q1(this,y,x,E,b,z||0,tt||0,rt,at),z={x:0,y:0,width:ht||E,height:a||b,href:lt},Ie.$(E,rt)&&Ie.$(b,at)?lt.toLowerCase().indexOf(".svg")===-1&<.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||E!==ht||b!==a)&&(E+=y,b+=x,z["clip-path"]="path('M "+y+","+x+" L "+E+" "+x+" L "+E+" "+b+" L "+y+" "+b+" z')"),Dg(this,$c,z,this.rb),this.addElement($c,z)},Ct.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),iv(this,this.Yl)},Ct.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Ct.fillRect=function(a,y,x,E){a=[a,y,x,E],a={x:a[0],y:a[1],width:a[2],height:a[3]},Dg(this,"fill",a,this.rb),this.addElement("rect",a)},Ct.ox=function(a,y,x,E){a={x:a,y,width:x,height:E},Dg(this,"fill",a,this.rb),iv(this,a),this.svg.prepend(this.Ud("rect",a))},Ct.fillText=function(a,y,x){a=[a,y,x],y=this.textAlign,y==="left"?y="start":y==="right"?y="end":y==="center"&&(y="middle"),y={x:a[1],y:a[2],style:"font: "+this.font,"text-anchor":y},Dg(this,"fill",y,this.rb),this.addElement("text",y,a[0])},Ct.lineTo=function(a,y){this.path.push(["L",a,y])},Ct.moveTo=function(a,y){this.path.push(["M",a,y])},Ct.quadraticCurveTo=function(a,y,x,E){this.path.push(["Q",a,y,x,E])},Ct.rect=function(a,y,x,E){this.path.push(["M",a,y],["L",a+x,y],["L",a+x,y+E],["L",a,y+E],["z"])},Ct.restore=function(){this.rb=this.stack.pop(),this.path=this.stack.pop();var a=this.stack.pop();this.fillStyle=a.fillStyle,this.font=a.font,this.globalAlpha=a.globalAlpha,this.lineCap=a.lineCap,this.lineDashOffset=a.lineDashOffset,this.lineJoin=a.lineJoin,this.lineWidth=a.lineWidth,this.miterLimit=a.miterLimit,this.shadowBlur=a.shadowBlur,this.shadowColor=a.shadowColor,this.shadowOffsetX=a.shadowOffsetX,this.shadowOffsetY=a.shadowOffsetY,this.strokeStyle=a.strokeStyle,this.textAlign=a.textAlign,this.bk=a.bk},Ct.save=function(){this.stack.push({fillStyle:this.fillStyle,font:this.font,globalAlpha:this.globalAlpha,lineCap:this.lineCap,lineDashOffset:this.lineDashOffset,lineJoin:this.lineJoin,lineWidth:this.lineWidth,miterLimit:this.miterLimit,shadowBlur:this.shadowBlur,shadowColor:this.shadowColor,shadowOffsetX:this.shadowOffsetX,shadowOffsetY:this.shadowOffsetY,strokeStyle:this.strokeStyle,textAlign:this.textAlign,bk:this.bk});for(var a=[],y=0;yht.offset?1:-1}),b=0;bx?(this.scale(x/a,1),this.translate((a-x)/2,0)):x>a&&(this.scale(1,a/x),this.translate(0,(x-a)/2)),this.Hm?this.clip():this.fill(y),a>x?(this.translate(-(a-x)/2,0),this.scale(1/(x/a),1)):x>a&&(this.translate(0,-(x-a)/2),this.scale(1,1/(a/x)))}else this.Hm?this.clip():this.fill(y)},Ct.jk=function(){this.Hm||this.stroke()},Ct.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Ct.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Ct.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(m5),a.lineDashOffset=0)},Ct.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Ct.Hs=function(){},Vt.Object.defineProperties(id.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(a){this.ct!==a&&(this.ct=this.Z.fillStyle=a)}},font:{get:function(){return this.Z.font},set:function(a){this.dt!==a&&(this.dt=this.Z.font=a)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(a){this.Z.globalAlpha=a}},lineCap:{get:function(){return this.Z.lineCap},set:function(a){this.Z.lineCap=a}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(a){this.Z.lineDashOffset=a}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(a){this.Z.lineJoin=a}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(a){this.Z.lineWidth=a}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(a){this.Z.miterLimit=a}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(a){this.Z.shadowBlur=a}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(a){this.Z.shadowColor=a}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(a){this.Z.shadowOffsetX=a}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(a){this.Z.shadowOffsetY=a}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(a){this.et!==a&&(this.et=this.Z.strokeStyle=a)}},textAlign:{get:function(){return this.Z.textAlign},set:function(a){this.Z.textAlign=a}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(a){this.Z.imageSmoothingEnabled=a}},filter:{get:function(){return this.Z.filter},set:function(a){this.Z.filter=a===""?"none":a}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(a){this.Hm=a}}});var m5=Object.freeze([]);id.className="CanvasSurfaceContext";function Qf(){this.F=this.o=this.u=this.j=0}Qf.className="ColorNumbers";function qo(a,y){kg||(hv(),kg=!0),ao(this),this._isFrozen=!1,a===void 0?(this.na=kh,this.xk="black"):typeof a=="string"?(this.na=kh,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===ch?(this.Qd=ya,this.Lk=Ls):this.Lk=a===wl?this.Qd=Wo:this.Qd=ir,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}qo.prototype.copy=function(){var a=new qo;return a.na=this.na,a.xk=this.xk,a.Qd=this.Qd.J(),a.Lk=this.Lk.J(),a.Gr=this.Gr,a.Xp=this.Xp,this.we!==null&&(a.we=this.we.copy()),a.cr=this.cr,a},Ct=qo.prototype,Ct.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Ct.ka=function(){return Object.isFrozen(this)&&Xt("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Ct.qb=function(a){a.classType===qo&&(this.type=a)},Ct.toString=function(){var a="Brush(";if(this.type===kh)a+=this.color;else if(a=this.type===ch?a+"Linear ":this.type===wl?a+"Radial ":this.type===Tg?a+"Pattern ":a+"(unknown) ",a+=this.start+" "+this.end,this.colorStops!==null)for(var y=this.colorStops.iterator;y.next();)a+=" "+y.key+":"+y.value;return a+")"},Ct.addColorStop=function(a,y){return this._isFrozen&&dn(this),(typeof a!="number"||!isFinite(a)||1a)&&De(a,"0 <= loc <= 1",qo,"addColorStop:loc"),this.we===null&&(this.we=new hi),this.we.add(a,y),this.na===kh&&(this.type=ch),this.xe=null,this},Ct.Vz=function(a,y){if(this._isFrozen&&dn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Og:y,this.type===kh)hh(this.color),this.color=bg(a,y);else if((this.type===ch||this.type===wl)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)hh(x.value),this.addColorStop(x.key,bg(a,y));return this};function $1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Og:x,hh(a),bg(y,x)}Ct.Wy=function(a,y){if(this._isFrozen&&dn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Og:y,this.type===kh)hh(this.color),this.color=bg(-a,y);else if((this.type===ch||this.type===wl)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)hh(x.value),this.addColorStop(x.key,bg(-a,y));return this};function ty(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Og:x,hh(a),bg(-y,x)}function rv(a,y,x){hh(a),a=pr.j;var E=pr.u,b=pr.o,z=pr.F;return hh(y),x===void 0&&(x=.5),"rgba("+Math.round((pr.j-a)*x+a)+", "+Math.round((pr.u-E)*x+E)+", "+Math.round((pr.o-b)*x+b)+", "+Math.round((pr.F-z)*x+z)+")"}Ct.Gx=function(){if(this.type===kh)return Bg(this.color);if((this.type===ch||this.type===wl)&&this.colorStops!==null){var a=this.colorStops;if(this.type===wl)return Bg(a.first().value);if(a.get(.5)!==null)return Bg(a.get(.5));if(a.count===2)return a=a.Fa(),Bg(rv(a[0].value,a[1].value));for(var y=a.iterator,x=-1,E=-1,b=1,z=1;y.next();){var tt=y.key,rt=Math.abs(.5-y.key);b>z&&rt=b&&rtE&&(z=x,x=E,E=z,z=b),b=E-x,Bg(rv(a.get(x),a.get(E),1-z/b))}return!1};function Bg(a){return a?a instanceof qo?a.Gx():(hh(a),128>(299*pr.j+587*pr.u+114*pr.o)/1e3):!1}function bg(a,y){switch(y){case Og:y=100*sv(pr.j);var x=100*sv(pr.u),E=100*sv(pr.o);return As.j=.4124564*y+.3575761*x+.1804375*E,As.u=.2126729*y+.7151522*x+.072175*E,As.o=.0193339*y+.119192*x+.9503041*E,As.F=pr.F,y=uv(As.j/Ng[0]),x=uv(As.u/Ng[1]),E=uv(As.o/Ng[2]),Hu.j=116*x-16,Hu.u=500*(y-x),Hu.o=200*(x-E),Hu.F=As.F,Hu.j=Math.min(100,Math.max(0,Hu.j+100*a)),a=(Hu.j+16)/116,y=a-Hu.o/200,As.j=Ng[0]*ey(Hu.u/500+a),As.u=Ng[1]*(Hu.j>fp*cv?Math.pow(a,3):Hu.j/fp),As.o=Ng[2]*ey(y),As.F=Hu.F,a=-.969266*As.j+1.8760108*As.u+.041556*As.o,y=.0556434*As.j+-.2040259*As.u+1.0572252*As.o,pr.j=255*lv((3.2404542*As.j+-1.5371385*As.u+-.4985314*As.o)/100),pr.u=255*lv(a/100),pr.o=255*lv(y/100),pr.F=As.F,pr.j=Math.round(pr.j),255pr.j&&(pr.j=0),pr.u=Math.round(pr.u),255pr.u&&(pr.u=0),pr.o=Math.round(pr.o),255pr.o&&(pr.o=0),"rgba("+pr.j+", "+pr.u+", "+pr.o+", "+pr.F+")";case ny:return av(),gl.o=Math.min(100,Math.max(0,gl.o+100*a)),"hsla("+gl.j+", "+gl.u+"%, "+gl.o+"%, "+gl.F+")";default:Xt("Unknown color space: "+y)}}function hh(a){kg||(hv(),kg=!0);var y=dv;if(y!==null){y.clearRect(0,0,1,1),y.fillStyle="#000000";var x=y.fillStyle;y.fillStyle=a,y.fillStyle!==x?(y.fillRect(0,0,1,1),a=y.getImageData(0,0,1,1).data,pr.j=a[0],pr.u=a[1],pr.o=a[2],pr.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,pr.j=0,pr.u=0,pr.o=0,pr.F=1)}}function av(){var a=pr.j/255,y=pr.u/255,x=pr.o/255,E=Math.max(a,y,x),b=Math.min(a,y,x),z=E-b;if(b=(E+b)/2,z===0)var tt=a=0;else{switch(E){case a:tt=(y-x)/z%6;break;case y:tt=(x-a)/z+2;break;case x:tt=(a-y)/z+4}tt*=60,0>tt&&(tt+=360),a=z/(1-Math.abs(2*b-1))}gl.j=Math.round(tt),gl.u=Math.round(100*a),gl.o=Math.round(100*b),gl.F=pr.F}function sv(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function lv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function uv(a){return a>cv?Math.pow(a,1/3):(fp*a+16)/116}function ey(a){var y=a*a*a;return y>cv?y:(116*a-16)/fp}function Gd(a,y){typeof a!="string"&&(a instanceof qo||Xt("Value for "+y+" must be a color string or a Brush, not "+a))}function hv(){dv=zr?new jl(null,void 0,{willReadFrequently:!0}).context:null}Vt.Object.defineProperties(qo.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&dn(this,a),this.na=a,this.start.Mc()&&(a===ch?this.start=ya:a===wl&&(this.start=Wo)),this.end.Mc()&&(a===ch?this.end=Ls:a===wl&&(this.end=Wo)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&dn(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&dn(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&dn(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&dn(this,a),0>a&&De(a,">= zero",qo,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&dn(this,a),0>a&&De(a,">= zero",qo,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&dn(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&dn(this,a),this.cr=a,this.xe=null}}}),qo.prototype.isDark=qo.prototype.Gx,qo.prototype.darkenBy=qo.prototype.Wy,qo.prototype.lightenBy=qo.prototype.Vz,qo.prototype.addColorStop=qo.prototype.addColorStop;var cv=216/24389,fp=24389/27,Ng=[95.047,100,108.883],dv=null,pr=new Qf,gl=new Qf,As=new Qf,Hu=new Qf,kg=!1;qo.className="Brush";var kh;qo.Solid=kh=new sn(qo,"Solid",0);var ch;qo.Linear=ch=new sn(qo,"Linear",1);var wl;qo.Radial=wl=new sn(qo,"Radial",2);var Tg;qo.Pattern=Tg=new sn(qo,"Pattern",4);var Og;qo.Lab=Og=new sn(qo,"Lab",5);var ny;qo.HSL=ny=new sn(qo,"HSL",6),qo.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var x=Math.abs(y-a);y=Math.floor(a+Math.random()*x).toString(16);var E=Math.floor(a+Math.random()*x).toString(16);return a=Math.floor(a+Math.random()*x).toString(16),2>y.length&&(y="0"+y),2>E.length&&(E="0"+E),2>a.length&&(a="0"+a),"#"+y+E+a},qo.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;kg||(hv(),kg=!0);var y=dv;if(y===null)return!0;y.fillStyle="#000000";var x=y.fillStyle;return y.fillStyle=a,y.fillStyle!==x?!0:(y.fillStyle="#FFFFFF",x=y.fillStyle,y.fillStyle=a,y.fillStyle!==x)},qo.lighten=function(a){return $1(a)},qo.lightenBy=$1,qo.darken=function(a){return ty(a)},qo.darkenBy=ty,qo.mix=rv,qo.isDark=Bg;function la(){this.xa="Base"}la.prototype.measure=function(){},la.prototype.Yz=function(a,y,x,E,b){a.measure(y,x,E,b)},la.prototype.arrange=function(){},la.prototype.Ly=function(a,y,x,E,b,z){a.arrange(y,x,E,b,z)},la.prototype.iA=function(a){a.Uj()},la.prototype.gc=function(){},Vt.Object.defineProperties(la.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return zn}}}),la.prototype.remeasureObject=la.prototype.iA,la.prototype.arrangeElement=la.prototype.Ly,la.prototype.measureElement=la.prototype.Yz,la.className="PanelLayout";function pp(){this.xa="Base"}Yt(pp,la),pp.prototype.measure=function(a,y,x,E,b,z,tt){var rt=E.length;a=dh(a);for(var at=0;atfi&&(va=Math.max(fi-Bc,0));var Zm=xn.oa===0;xn.oc=xn.oc+va,xn.actual=xn.oa+va,fi=Math.max(fi-(va+(Zm?Bc:0)),0)}if(Us.columnSpan===1&&(gs===In||gs===Ti)){xn=a.Eb(ds);var j0=xn.Wc();va=Math.max(dd-xn.actual,0),va+j0>ni&&(va=Math.max(ni-j0,0));var H1=xn.oa===0;xn.oc=xn.oc+va,xn.actual=xn.oa+va,ni=Math.max(ni-(va+(H1?j0:0)),0)}Dc&&Us.Uj()}}}}}Bn(Jt);var Qu=0,ph=0;z=a.columnCount;for(var eg=0;eg=a.rowCount);Qh++)xn=a.Fb(Gr.row+Qh),va=0,va=gs===On||gs===Ti?Math.max(xn.minimum,vu[Gr.row+Qh]===0?xn.maximum:Math.min(vu[Gr.row+Qh],xn.maximum)):Math.max(xn.minimum,isNaN(xn.Hc)?xn.maximum:Math.min(xn.Hc,xn.maximum)),yh.height+=va,rl+=xn.minimum;for(var Zl=1;Zl=a.columnCount);Zl++)xn=a.Eb(Gr.column+Zl),va=0,va=gs===On||gs===Si?Math.max(xn.minimum,Fl[Gr.column+Zl]===0?xn.maximum:Math.min(Fl[Gr.column+Zl],xn.maximum)):Math.max(xn.minimum,isNaN(xn.Hc)?xn.maximum:Math.min(xn.Hc,xn.maximum)),yh.width+=va,Xm+=xn.minimum;za.width+=yh.width,za.height+=yh.height;var gf=Gr.margin,Oc=gf.right+gf.left,R0=gf.top+gf.bottom;Gr.measure(za.width,za.height,Xm,rl);for(var ff=Gr.measuredBounds,Bu=Math.max(ff.width+Oc,0),md=Math.max(ff.height+R0,0),jc=0,pf=0;pf=a.rowCount);pf++)xn=a.Fb(Gr.row+pf),jc+=xn.total||0;if(jc=Jh)&&!(Gr.row+Ah>=a.rowCount);Ah++){xn=a.Fb(Gr.row+Ah);var _h=xn.oa||0,vd=qh(Gr,xn,qu);xn.actual=Math.min(xn.maximum,_h+vd),xn.oa!==_h&&(Jh-=xn.oa-_h)}for(;0yu&&(xn.actual=Math.min(xn.maximum,yu+Jh),xn.oa!==yu&&(Jh-=xn.oa-yu)),xn.index===0)break;xn=a.Fb(xn.index-1)}}for(var og=0,$h=0;$h=a.columnCount);$h++)xn=a.Eb(Gr.column+$h),og+=xn.total||0;if(og=rg)&&!(Gr.column+yd>=a.columnCount);yd++){xn=a.Eb(Gr.column+yd);var H0=xn.oa||0,Z1=Ch(Gr,xn,G1);xn.actual=Math.min(xn.maximum,H0+Z1),xn.oa!==H0&&(rg-=xn.oa-H0)}for(;0Km&&(xn.actual=Math.min(xn.maximum,Km+rg),xn.oa!==Km&&(rg-=xn.oa-Km)),xn.index===0)break;xn=a.Eb(xn.index-1)}}}}Bn(ne),Nn.free(yh),Nn.free(za),vu!==void 0&&Bn(vu),Fl!==void 0&&Bn(Fl);var ag=0,sg=0,Qm=a.desiredSize,f5=a.maxSize;gs=Ts(a,!0);var W0=ph=Qu=0,G0=0;z=a.columnCount;for(var Jm=0;Jm=a.rowCount);xn++){var qi=a.Fb(Jt+xn);qi.oa!==0&&(kt.height+=qi.total)}for(xn=1;xn=a.columnCount);xn++)qi=a.Eb(se+xn),qi.oa!==0&&(kt.width+=qi.total);var Yi=ye.oa+kt.width,Ho=ne.oa+kt.height;xn=rt,qi=at;var ur=Yi,ma=Ho,xa=rt,cs=at,va=Yi,Vh=Ho;rt+Yi>x.width&&(va=Math.max(x.width-rt,0)),at+Ho>x.height&&(Vh=Math.max(x.height-at,0));var ta=ui.alignment;if(ta.Xb()){ta=a.defaultAlignment,ta.sb()||(ta=Wo);var fu=ta.x,ds=ta.y,Yh=ta.offsetX;ta=ta.offsetY;var ml=ye.alignment,Wl=ne.alignment;ml.sb()&&(fu=ml.x,Yh=ml.offsetX),Wl.sb()&&(ds=Wl.y,ta=Wl.offsetY)}else fu=ta.x,ds=ta.y,Yh=ta.offsetX,ta=ta.offsetY;(isNaN(fu)||isNaN(ds))&&(ds=fu=.5,ta=Yh=0),ml=Un.width,Wl=Un.height;var nl=ui.margin,Us=nl.left+nl.right,Dc=nl.top+nl.bottom,pu=uu(ui,ne,ye,!1);!isNaN(ui.desiredSize.width)||pu!==On&&pu!==Si||(ml=Math.max(Yi-Us,0)),!isNaN(ui.desiredSize.height)||pu!==On&&pu!==Ti||(Wl=Math.max(Ho-Dc,0)),Yi=ui.maxSize,Ho=ui.minSize,ml=Math.min(Yi.width,ml),Wl=Math.min(Yi.height,Wl),ml=Math.max(Ho.width,ml),Wl=Math.max(Ho.height,Wl),Yi=Wl+Dc,xn+=ur*fu-(ml+Us)*fu+Yh+nl.left,qi+=ma*ds-Yi*ds+ta+nl.top,ui.visible&&(nr(xa,cs,va,Vh,xn,qi,Un.width,Un.height)?ui.arrange(xn,qi,ml,Wl):ui.arrange(xn,qi,ml,Wl,new on(xa,cs,va,Vh)))}}}for(Nn.free(kt),a=0;a=x&&(x=1);var E=a.gridCellSize,b=E.width;E=E.height;var z=a.naturalBounds,tt=a.actualBounds,rt=z.width,at=z.height,lt=Math.ceil(rt/b),ht=Math.ceil(at/E),ft=a.gridOrigin,vt=ft.x;ft=ft.y,y.save(),y.beginPath(),y.rect(0,0,rt,at),y.clip(),y.Se();for(var xt=[],Et=a.O.s,Lt=Et.length,Wt=0;Wtne)){kt=pv(kt.figure);for(var se=0;sene&&Jt.push(ye))}}}}for(Et=a.O.s,Lt=Et.length,Wt=0;Wtb*kt*x))){if(ne=Ge.segmentIndex,(!isFinite(ne)||isNaN(ne))&&(ne=0),0>ne&&(ne=kt-Math.min(-ne,kt)),ne=Math.round(ne%kt),kt=Ge.opacity,se=1,kt!==1){if(kt===0)continue;se=y.globalAlpha,y.globalAlpha=se*kt}ye=xt[Wt];var ni=!1,fi=Ge.strokeDashArray;if(fi!==null&&(ni=!0,y.js(fi,Ge.strokeDashOffset)),Ge.figure==="LineV"&&Ge.stroke!==null&&0y)return a%y===x;if(a%y!==x)return!1;y=E.length;for(var b=0;bft)Jt.measure(1/0,1/0,0,0),ne=Jt.measuredBounds,x.ed(ne),xt.push(ne);else{var se=Jt.segmentIndex,ye=Jt.segmentFraction,Ge=Jt.alignmentFocus;Ge.Mc()&&(Ge=Wo);var ni=Jt.segmentOrientation,fi=Jt.segmentOffset;if(isNaN(se)){var ui=at.ua;ne=ii(),ui.Qu(ye,ne);var Un=Ot.allocAt(ne[0],ne[1]);if(Un.add(at.i(0)),ui.type===Qn.j?Un.offset(-ui.startX,-ui.startY):(ui=ui.figures.first(),ui!==null&&Un.offset(-ui.startX,-ui.startY)),ui=ne[2],ni!==Ss){var xn=at.computeAngle(Jt,ni,ui);Jt.Kb=xn}xn=Un.x-y.x;var qi=Un.y-y.y;Ot.free(Un),Bn(ne)}else if(se<-ft||se>=ft)ne=Ot.alloc(),at.vg(),at.computeMidPoint(ne),ui=at.midAngle,ni!==Ss&&(xn=at.computeAngle(Jt,ni,ui),Jt.Kb=xn),xn=ne.x-y.x,qi=ne.y-y.y,Ot.free(ne);else{if(xn=0,0<=se?(qi=ht.M(se),ne=seYi+10?0<=se?ui.ab(qi):qi.ab(ui):Yi>Un+10?0<=se?ne.ab(xn):xn.ab(ne):0<=se?ui.ab(xn):xn.ab(ui)}else ui=0<=se?qi.ab(ne):ne.ab(qi);ni!==Ss&&(xn=at.computeAngle(Jt,ni,ui),Jt.Kb=xn),xn=qi.x+(ne.x-qi.x)*ye-y.x,qi=qi.y+(ne.y-qi.y)*ye-y.y}Jt.measure(1/0,1/0,0,0),ne=Jt.measuredBounds,Un=Jt.naturalBounds;var Ho=0;Jt instanceof lo&&(Ho=Jt.strokeWidth),Yi=Un.width+Ho;var ur=Un.height+Ho;Et.reset(),Et.translate(-ne.x,-ne.y),Et.scale(Jt.scale,Jt.scale),Et.rotate(ni===Ss?Jt.angle:ui,Yi/2,ur/2),ni!==u0&&ni!==c0||Et.rotate(90,Yi/2,ur/2),ni!==h0&&ni!==d0||Et.rotate(-90,Yi/2,ur/2),ni===em&&(45ui||225ui)&&Et.rotate(-ui,Yi/2,ur/2),Un=new on(0,0,Yi,ur),Lt.xi(Un,Ge),Et.Ga(Lt),Ge=-Lt.x+Ho/2*Jt.scale,Jt=-Lt.y+Ho/2*Jt.scale,Wt.assign(fi),Ho=isNaN(fi.x);var ma=isNaN(fi.y);if(Ho||ma){Yi=Yi/2+3,ur=ur/2+3;var xa=45<=ui&&135>=ui,cs=225<=ui&&315>=ui;ni===Ss&&(xa||cs)?(Wt.x=ma?Yi:fi.y,Wt.y=Ho?ur:fi.x,xa?0<=se||isNaN(se)&&.5>ye||!Ho||(Wt.y=-ur):cs&&((0<=se||isNaN(se)&&.5>ye)&&Ho&&(Wt.y=-ur),ma&&(Wt.x=-Yi))):(Ho&&(Wt.x=0<=se||isNaN(se)&&.5>ye?Yi:-Yi),ma&&(Wt.y=-ur),Wt.rotate(ui))}else Wt.rotate(ui);xn+=Wt.x,qi+=Wt.y,Un.set(ne),Un.h(xn+Ge,qi+Jt,ne.width,ne.height),xt.push(Un),x.ed(Un)}}if(tt!==null)for(E=tt.labelNodes;E.next();)E.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),ca(b,x.width||0,x.height||0),vo.free(Et),Ot.free(Lt),Ot.free(Wt)}}}},Pp.prototype.arrange=function(a,y){var x=y.length;if(a instanceof jo||a instanceof Vn){var E=a,b=null;a instanceof jo&&(b=a,E=b.adornedPart);var z=a instanceof jo?null:E.path,tt=a.j;if(tt.length!==0){var rt=0;if(z!==null&&rt=x)Et=Ot.alloc(),xt=ft,Wt=Et,xt.vg(),xt.computeMidPoint(Wt),xt=ft.midAngle,lt!==Ss&&(ft=ft.computeAngle(tt,lt,xt),tt.angle=ft),ft=Et.x,Wt=Et.y,Ot.free(Et);else{if(Lt=0,0<=rt?(Et=y.s[rt],Wt=rtJt+10?0<=rt?xt.ab(Et):Et.ab(xt):Jt>kt+10?0<=rt?Wt.ab(Lt):Lt.ab(Wt):0<=rt?xt.ab(Lt):Lt.ab(xt)}else xt=0<=rt?Et.ab(Wt):Wt.ab(Et);lt!==Ss&&(ft=ft.computeAngle(tt,lt,xt),tt.angle=ft),ft=Et.x+(Wt.x-Et.x)*at,Wt=Et.y+(Wt.y-Et.y)*at}if(vt.ys())tt.location=new Ot(ft,Wt);else{vt.Mc()&&(vt=Wo),Et=vo.alloc(),Et.reset(),Et.scale(tt.scale,tt.scale),Et.rotate(tt.angle,0,0);var ne=tt.naturalBounds;Lt=on.allocAt(0,0,ne.width,ne.height),kt=Ot.alloc(),kt.xi(Lt,vt),Et.Ga(kt),vt=-kt.x,Jt=-kt.y;var se=ne.width,ye=ne.height;ne=Ot.alloc(),ne.assign(ht);var Ge=isNaN(ht.x),ni=isNaN(ht.y);if(Ge||ni){se=se/2+3,ye=ye/2+3;var fi=45<=xt&&135>=xt,ui=225<=xt&&315>=xt;lt===Ss&&(fi||ui)?(ne.x=ni?se:ht.y,ne.y=Ge?ye:ht.x,fi?0<=rt||isNaN(rt)&&.5>at||!Ge||(ne.y=-ye):ui&&((0<=rt||isNaN(rt)&&.5>at)&&Ge&&(ne.y=-ye),ni&&(ne.x=-se))):(Ge&&(ne.x=0<=rt||isNaN(rt)&&.5>at?se:-se),ni&&(ne.y=-ye),ne.rotate(xt))}else ne.rotate(xt);ft+=ne.x,Wt+=ne.y,Et.pp(Lt),vt+=Lt.x,Jt+=Lt.y,rt=Ot.allocAt(ft+vt,Wt+Jt),tt.move(rt),Ot.free(rt),Ot.free(ne),Ot.free(kt),on.free(Lt),vo.free(Et)}}b!==null?b.Ul(!1):E.Ul(!1),E=by(a),a.location.h(a.position.x+E.x,a.position.y+E.y),Ot.free(E)}};function iy(a,y,x,E){if(dl(E)!==!1){var b=E.strokeWidth;b===0&&a instanceof jo&&a.type===zn.Link&&a.adornedObject instanceof lo&&(b=a.adornedObject.strokeWidth),b*=E.Ca,a instanceof Vn&&a.ua!==null?(a=a.geometry.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):a instanceof jo&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):E.Ge(-(b/2),-(b/2),y+b,x+b),b=E.desiredSize,b.w()||E.ua===null?E.dc.h(0,0,b.width,b.height):E.dc.assign(E.ua.bounds),ra(E,!1)}}function qf(){this.xa="Base"}Yt(qf,la),qf.prototype.measure=function(a,y,x,E,b,z,tt){var rt=a.Pb();a.graduatedBounds=[];var at=rt.margin,lt=at.right+at.left,ht=at.top+at.bottom;rt.measure(y,x,z,tt);var ft=rt.measuredBounds,vt=new on(-at.left,-at.top,Math.max(ft.width+lt,0),Math.max(ft.height+ht,0));a.graduatedBounds.push(vt),b.assign(vt);for(var xt=rt.geometry,Et=rt.strokeWidth,Lt=xt.flattenedSegments,Wt=xt.flattenedLengths,kt=xt.flattenedTotalLength,Jt=Lt.length,ne=0,se=0,ye=ii(),Ge=0;GeYi&&(Yi+=360),fi.push(Yi)}ne=xn,se=qi}ye.push(fi)}if(a.graduatedIntervals===null){for(var Ho=[],ur=a.O.s,ma=ur.length,xa=0;xaVh)){for(var ta=0;taVh&&va.push(ds)}}}}}a.graduatedIntervals=Ho}var Yh=a.graduatedIntervals,ml=a.O.s,Wl=ml.length,nl=0,Us=0,Dc=kt;a.graduatedMarks=[];for(var pu,af=0;afO0*gs*kt/a.graduatedRange&&il.graduatedSkip===null)){var tg=Wt[0][0],Fu=0,Vs=0;Us=kt*il.graduatedStart-1e-4,Dc=kt*il.graduatedEnd+1e-4;var dd=O0*gs,ol=a.graduatedTickBase;if(ola.graduatedMin+dd&&(ol-=Math.floor((ol-a.graduatedMin)/dd)*dd);for(var Zm=Yh[af],j0=ol,H1=1e-6*a.graduatedMax,Qu=1;ol<=a.graduatedMax+H1;Qu++){t:{for(var ph=Zm.length,eg=0;eg-sf){var Nc=!1;break t}}Nc=!0}if(Nc&&(ol>a.graduatedMax&&(ol=a.graduatedMax),il.graduatedSkip===null||il instanceof cr&&!il.graduatedSkip(ol,il)||il instanceof lo&&!il.graduatedSkip(ol,il))&&(nl=(ol-a.graduatedMin)*kt/a.graduatedRange,nl>kt&&(nl=kt),Us<=nl&&nl<=Dc)){for(var Ju=ye[Fu][Vs],Xh=Wt[Fu][Vs];Futg&&Vsmh&&.4995mh?0mh||.9995ng){var uf=1-Math.abs(.5-mh);Ju=(mu*uf+Du*(1-uf))%360;break t}}}Ju=mu}if(il instanceof cr){var iu="";il.graduatedFunction!==null?(iu=il.graduatedFunction(ol,il),iu=iu!=null?iu.toString():""):iu=(+ol.toFixed(2)).toString(),iu!==""&&pu.push({$l:lf,angle:Ju,text:iu})}else pu.push({$l:lf,angle:Ju})}ol=j0+Qu*dd}}}a.graduatedMarks.push(pu)}Bn(ye);var za=a.graduatedMarks;if(za!==null)for(var z0=E.length,Is=0;Isou;ou++){switch(ou){case 0:Xs.h(yh,vu);break;case 1:Xs.h(yh+hf,vu);break;case 2:Xs.h(yh,vu+pd);break;case 3:Xs.h(yh+hf,vu+pd)}Xs.rotate(Gr+ea.angle),Xs.offset(Ym,df),cf===0&&ou===0?Fl.h(Xs.x,Xs.y,0,0):Fl.Ye(Xs),Xs.offset(-Ym,-df),Xs.rotate(-Gr-ea.angle)}Ot.free(Xs),vh.graduatedBounds!==null&&vh.graduatedBounds.push(Fl),zo(Kh,Fl.x,Fl.y,Fl.width,Fl.height)}else if(ea instanceof cr){var Gl=a,Xm=b;Gl.temporaryTextBlock===null&&(Gl.temporaryTextBlock=new cr);var rl=Gl.temporaryTextBlock;yy(rl,ea);var Qh=ea.alignmentFocus;Qh.Mc()&&(Qh=ya);for(var Zl=ea.segmentOrientation,gf=ea.segmentOffset,Oc=new on,R0=0,ff=0,Bu=0,md=0,jc=0,pf=Ms.length,Jh=0;JhBu||225Bu)&&yu.rotate(-Bu,_h/2,vd/2);var og=on.allocAt(0,0,_h,vd),$h=Ot.alloc();$h.xi(og,Qh),yu.Ga($h);var rg=-$h.x,G1=-$h.y,Ch=Ot.alloc();Ch.assign(gf),isNaN(Ch.x)&&(Ch.x=_h/2+3),isNaN(Ch.y)&&(Ch.y=-(vd/2+3)),Ch.rotate(Bu),R0+=Ch.x+rg,ff+=Ch.y+G1;var yd=new on(R0,ff,qh.width,qh.height),H0=new on(qh.x,qh.y,qh.width,qh.height),Z1=new on(Ah.x,Ah.y,Ah.width,Ah.height);qu.Sz=md,qu.lineCount=rl.lineCount,qu.lines=[rl.Cb,rl.Ih,rl.df,rl.Le,rl.Qc,rl.Qb,rl.ze],qu.actualBounds=yd,qu.measuredBounds=H0,qu.naturalBounds=Z1,Jh===0?Oc.assign(yd):Oc.ed(yd),Ot.free(Ch),Ot.free($h),on.free(og),vo.free(yu)}Gl.graduatedBounds!==null&&Gl.graduatedBounds.push(Oc),zo(Xm,Oc.x,Oc.y,Oc.width,Oc.height)}ra(ea,!1)}}},qf.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var E=a.Pb(),b=a.graduatedMarks;if(b!==null){var z=a.graduatedBounds,tt=0,rt=z[tt];tt++,E!==null&&E.arrange(rt.x-x.x,rt.y-x.y,rt.width,rt.height);for(var at=y.length,lt=0;lt=tt&&(tt=1);for(var rt=z.actualBounds,at=a.O.s,lt=a.graduatedMarks,ht=at.length,ft=0;fta.graduatedTickUnit*vt.interval*z.geometry.flattenedTotalLength/a.graduatedRange*tt&&vt.graduatedSkip===null)){var Lt=vt.measuredBounds,Wt=vt.strokeWidth*vt.scale,kt=vt.alignmentFocus;kt.Mc()&&(kt=ya);for(var Jt=0;Jttt.height)continue}else if(lt.position>tt.width)continue;var ht=lt.separatorStrokeWidth;isNaN(ht)&&(ht=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var ft=lt.separatorStroke;if(ft===null&&(ft=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ht!==0&&ft!==null){Hr(a,y,ft,!1,!1,tt,z),ft=!1;var vt=lt.separatorDashArray;vt===null&&(vt=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),vt!==null&&(ft=!0,y.js(vt,0)),y.beginPath(),vt=lt.position+ht,x?vt>tt.height&&(ht-=vt-tt.height):vt>tt.width&&(ht-=vt-tt.width),lt=lt.position+ht/2,y.lineWidth=ht,ht=a.yb,x?(lt+=ht.top,vt=tt.width-ht.right,y.moveTo(ht.left,lt),y.lineTo(vt,lt)):(lt+=ht.left,vt=tt.height-ht.bottom,y.moveTo(lt,ht.top),y.lineTo(lt,vt)),y.stroke(),y.Se(),ft&&y.fs()}}}}function Ip(a,y,x,E,b){for(var z=E.length,tt=a.actualBounds,rt=a.naturalBounds,at=ry(a,!0),lt=ry(a,!1),ht=0;htvt)){var xt=ft.Wc(),Et=ft.separatorStrokeWidth;isNaN(Et)&&(Et=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Lt=ft.separatorStroke;Lt===null&&(Lt=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Lt===null||ft.index===(x?at:lt))&&(Et=0),xt-=Et,Et=ft.position+Et,xt+=ft.actual,Et+xt>vt&&(xt=vt-Et),0>=xt||(vt=a.yb,Hr(a,y,ft.background,!0,!1,rt,tt),x?y.fillRect(vt.left,Et+vt.top,tt.width-(vt.left+vt.right),xt):y.fillRect(Et+vt.left,vt.top,xt,tt.height-(vt.top+vt.bottom)))}}}}function ry(a,y){for(var x=y?a.rowCount:a.columnCount,E=0;EE&&b.set(Et),Ot.free(Et)),Ot.free(ht),z&&b.transform(tt),lt},Ct.Gj=function(){for(var a=this.O.s,y=a.length,x=0;xx||z>E)&&(this.v(),this.measure(y>x?x:y,z>E?E:z,0,0));break;case On:this.v(!0),this.measure(x+rt,E+tt,0,0);break;case Si:this.v(!0),this.measure(x+rt,z+tt,0,0);break;case Ti:this.v(!0),this.measure(y+rt,E+tt,0,0)}}this.na.arrange(this,b,this.jg)}},Ct.gh=function(a){var y=this.naturalBounds,x=dh(this);if(nr(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var E=y.length,b=Ot.allocAt(0,0);E--;){var z=y[E];if((z.visible||z===x)&&(Ai(b.set(a),z.transform),z.ca(b)))return Ot.free(b),!0}return Ot.free(b),!(this.Ma===null&&this.areaBackground===null)}return!1},Ct.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,E=0;Evt.width||ft.y>vt.height||0>ft.x+ft.width||0>ft.y+ft.height||(ft=ht,ht=ht instanceof zn?ht:null,vt=vo.alloc(),vt.set(tt),(ht!==null?ht.Cf(a,y,x,E,b,vt):pa(ft,a,E,vt))&&(y!==null&&(ft=y(ft)),ft===null||x!==null&&!x(ft)||b.add(ft)),vo.free(vt))}}return z===void 0&&vo.free(tt),E}return z===void 0&&vo.free(tt),!1};function mv(a,y,x,E){for(var b=a.O.s,z=b.length;z--;){var tt=b[z];if(tt.visible){var rt=tt.actualBounds,at=a.naturalBounds;rt.x>at.width||rt.y>at.height||0>rt.x+rt.width||0>rt.y+rt.height||(tt instanceof zn&&mv(tt,y,x,E),y!==null&&(tt=y(tt)),tt===null||x!==null&&!x(tt)||E.add(tt))}}}Ct.og=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;x===void 0&&(x=null),E===void 0&&(E=null);var tt=this.naturalBounds,rt=this.se(),at=rt?a:Ai(Ot.allocAt(a.x,a.y),this.transform),lt=rt?y:Ai(Ot.allocAt(y.x,y.y),this.transform),ht=at.Bf(lt),ft=0Wt.width||Lt.y>Wt.height||0>Lt.x+Lt.width||0>Lt.y+Lt.height))&&(Et.se()?(Lt=Et.transform,Ai(at.set(a),Lt),Ai(lt.set(y),Lt)):(at.set(a),lt.set(y)),Lt=Et,Et=Et instanceof zn?Et:null,(Et!==null?Et.og(at,lt,x,E,b,z):Lt.tx(at,lt,b))&&(x!==null&&(Lt=x(Lt)),Lt===null||E!==null&&!E(Lt)||z.add(Lt)))}}Ot.free(at),Ot.free(lt)}return b?ft:tt}return!1};function vv(a){var y=null;return a instanceof lo&&(y=a.spot1,y===da&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=Or),y}function yv(a){var y=null;return a instanceof lo&&(y=a.spot2,y===da&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=Ka),y}Ct.add=function(a){for(var y=[],x=0;x=b.count&&a>=b.count)return;b.mb(z),E=z}else Xt("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>b.count)&&(a=b.count),b.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),dl(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof zn&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Fp(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof ri&&(x.Te=!0),x.Te&&x instanceof ri&&(x.wc=null),b=this.diagram,b!==null&&b.undoManager.isUndoingRedoing||(E!==-1&&x.cb(na,"elements",this,y,null,E,null),x.cb(Ur,"elements",this,null,y,null,a)))};function Av(a,y){a.l=y?a.l|16777216:a.l&-16777217}Ct.remove=function(a){for(var y=this.O.s,x=y.length,E=-1,b=0;ba&&De(a,">= 0",zn,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new aa;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(Ur,"rowdefs",this,null,x,null,a)}return y[a]},Ct.oA=function(a){if(0>a&&De(a,">= 0",zn,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(na,"rowdefs",this,x,null,a,null),this.v()}}};function hy(a,y,x){var E=a.rowDefs;if(!(0>y)){if(E[y]=x instanceof aa?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Ct.Eb=function(a){0>a&&De(a,">= 0",zn,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new aa;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(Ur,"coldefs",this,null,x,null,a)}return y[a]},Ct.jA=function(a){if(0>a&&De(a,">= 0",zn,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(na,"coldefs",this,x,null,a,null),this.v()}}};function cy(a,y,x){var E=a.colDefs;if(!(0>y)){if(E[y]=x instanceof aa?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Ct.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Lp(y,a),this},Ct.Hy=function(a,y){return(a=this.Fb(a))&&Lp(a,new aa(y)),this},Ct.By=function(a,y){return(a=this.Eb(a))&&Lp(a,new aa(y)),this},Ct.nz=function(a){if(0>a||this.type!==zn.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,E=x.length,b=this.topIndex;ba||this.type!==zn.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,E=x.length,b=this.leftIndex;ba;)this.pc(this.O.length-1,!1);gy(this,this.itemArray)};function gy(a,y){var x=_f(a);if(y===null||y.length===0)for(;a.O.length>x;)a.pc(a.O.length-1,!1);else if(a.O.length<=x){x=y.length;for(var E=0;Ex)){var b=Sv(a,y);if(b=xv(a,b),b!==null){if(zl(b),b=b.copy(),b.l&16777216){var z=a.ih();z!==null&&Av(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new hi),a.ge.add(y,b)),z=x+_f(a),a.Gb(z,b),E&&(b.ub=y,Cv(a,z,x),b.ub=null),b.data=y}}}function Cv(a,y,x){for(a=a.O;ya&&De(a,">= 0",zn,"padding"),a=new Ri(a)):(0>a.left&&De(a.left,">= 0",zn,"padding:value.left"),0>a.right&&De(a.right,">= 0",zn,"padding:value.right"),0>a.top&&De(a.top,">= 0",zn,"padding:value.top"),0>a.bottom&&De(a.bottom,">= 0",zn,"padding:value.bottom"));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.v(),this.g("padding",y,a))}},defaultAlignment:{get:function(){return this.Tm},set:function(a){var y=this.Tm;y.D(a)||(this.Tm=a=a.J(),this.v(),this.g("defaultAlignment",y,a))}},defaultStretch:{get:function(){return this.Uf},set:function(a){var y=this.Uf;y!==a&&(this.Uf=a,this.v(),this.g("defaultStretch",y,a))}},defaultSeparatorPadding:{get:function(){return this.T!==null?this.T.Qp:as},set:function(a){typeof a=="number"&&(a=new Ri(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new El),this.T.Qp=a,this.v(),this.g("defaultSeparatorPadding",y,a))}},defaultRowSeparatorStroke:{get:function(){return this.T!==null?this.T.ia:null},set:function(a){var y=this.defaultRowSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof qo)&&(a instanceof qo&&a.freeze(),this.T===null&&(this.T=new El),this.T.ia=a,this.N(),this.g("defaultRowSeparatorStroke",y,a))}},defaultRowSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.Ha:1},set:function(a){var y=this.defaultRowSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new El),this.T.Ha=a,this.v(),this.g("defaultRowSeparatorStrokeWidth",y,a))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(a){var y=this.defaultRowSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;ba)&&Xt("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new El),this.T.Hb=a,this.v(),this.g("topIndex",y,a))}},leftIndex:{get:function(){return this.T!==null?this.T.hb:0},set:function(a){var y=this.leftIndex;y!==a&&((!isFinite(a)||0>a)&&Xt("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new El),this.T.hb=a,this.v(),this.g("leftIndex",y,a))}},data:{get:function(){return this.ub},set:function(a){var y=this.ub;if(y!==a){var x=this instanceof Li&&!(this instanceof jo);zl(this),this.ub=a;var E=this.diagram;E!==null&&(x?(x=E.partManager,this instanceof Vn?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof Li&&(y!==null&&x.cf.remove(y),a!==null&&x.cf.add(a,this))):(x=this.panel,x!==null&&x.ge!==null&&(y!==null&&x.ge.remove(y),a!==null&&x.ge.add(a,this)))),this.g("data",y,a),E!==null&&E.undoManager.isUndoingRedoing||a!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(a){var y=this.zn;y!==a&&(this.zn=a,this.g("itemIndex",y,a))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new Hd),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&y5(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&l1(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&s1(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||gy(this,a)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(a){if(this.itemTemplateMap===null){if(a===null)return;this.itemTemplateMap=new hi}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof Li||a.isPanelMain)&&Xt("Panel.itemTemplate must not be a Part or be Panel.isPanelMain: "+a),this.itemTemplateMap.add("",a),this.g("itemTemplate",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv())}},itemTemplateMap:{get:function(){return this.A!==null?this.A.Pc:null},set:function(a){var y=this.itemTemplateMap;if(y!==a){for(var x=a.iterator;x.next(););mo(this),this.A.Pc=a,this.g("itemTemplateMap",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv()}}},itemCategoryProperty:{get:function(){return this.A!==null?this.A.Oc:"category"},set:function(a){var y=this.itemCategoryProperty;y!==a&&(mo(this),this.A.Oc=a,this.g("itemCategoryProperty",y,a))}},isAtomic:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("isAtomic",y,a))}},isClipping:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this instanceof to&&(this.tb=null),this.v(),this.g("isClipping",y,a))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(a){var y=(this.l&33554432)!==0;y!==a&&(this.l^=33554432,this.v(),this.g("isOpposite",y,a))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;if(y!==a){var x=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",y,a),y=this.diagram,y!==null&&y.undoManager.isUndoingRedoing||x&&Fp(this,this,a)}}},alignmentFocusName:{get:function(){return this.$e},set:function(a){var y=this.$e;y!==a&&(this.$e=a,this.v(),this.g("alignmentFocusName",y,a))}}}),Vt.Object.defineProperties(zn,{Position:{get:function(){return ql.I("Position")}},Horizontal:{get:function(){return ql.I("Horizontal")}},Vertical:{get:function(){return ql.I("Vertical")}},Spot:{get:function(){return ql.I("Spot")}},Auto:{get:function(){return ql.I("Auto")}},Table:{get:function(){return ql.I("Table")}},Viewbox:{get:function(){return ql.I("Viewbox")}},TableRow:{get:function(){return ql.I("TableRow")}},TableColumn:{get:function(){return ql.I("TableColumn")}},Link:{get:function(){return ql.I("Link")}},Grid:{get:function(){return ql.I("Grid")}},Graduated:{get:function(){return ql.I("Graduated")}}}),zn.prototype.rebuildItemElements=zn.prototype.mv,zn.prototype.findItemPanelForData=zn.prototype.sx,zn.prototype.updateTargetBindings=zn.prototype.La,zn.prototype.copyTemplate=zn.prototype.Uy,zn.prototype.graduatedValueForPoint=zn.prototype.Gz,zn.prototype.graduatedPointForValue=zn.prototype.Fz,zn.prototype.findColumnForLocalX=zn.prototype.fz,zn.prototype.findRowForLocalY=zn.prototype.nz,zn.prototype.addColumnDefinition=zn.prototype.By,zn.prototype.addRowDefinition=zn.prototype.Hy,zn.prototype.addRowColumnDefinition=zn.prototype.Gy,zn.prototype.removeColumnDefinition=zn.prototype.jA,zn.prototype.getColumnDefinition=zn.prototype.Eb,zn.prototype.removeRowDefinition=zn.prototype.oA,zn.prototype.getRowDefinition=zn.prototype.Fb,zn.prototype.removeAt=zn.prototype.mb,zn.prototype.remove=zn.prototype.remove,zn.prototype.insertAt=zn.prototype.Gb,zn.prototype.elt=zn.prototype.M,zn.prototype.add=zn.prototype.add,zn.prototype.findObject=zn.prototype.fb,zn.prototype.findInVisualTree=zn.prototype.Nl,zn.prototype.walkVisualTreeFrom=zn.prototype.qm,zn.prototype.findMainElement=zn.prototype.Pb;var fy=!1,py=null,ql=new hi;zn.className="Panel",zn.definePanelLayout=Iu,Iu("Position",new pp),Iu("Vertical",new vp),Iu("Auto",new Ap),Iu("Link",new Pp);function gh(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}gh.prototype.copy=function(){var a=new gh;return a.lq=this.lq,a.F=this.F,a.ia=this.ia,a.V=this.V,a.u=this.u,a.j=this.j,a.o=this.o,a.Zh=this.Zh,a},gh.className="GradPanelSettings";function El(){this.Pc=[],this.Oc=[],this.j=this.ob=Bp,this.hb=this.Hb=0,this.Qp=as,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}El.prototype.copy=function(a){for(var y=new El,x=this.Pc,E=x.length,b=y.Pc,z=0;za&&De(a,">= 0",aa,"height"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("height",y,a))}},width:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&De(a,">= 0",aa,"width"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("width",y,a))}},minimum:{get:function(){return this.jj},set:function(a){var y=this.jj;y!==a&&((0>a||!isFinite(a))&&De(a,">= 0",aa,"minimum"),this.jj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("minimum",y,a))}},maximum:{get:function(){return this.hj},set:function(a){var y=this.hj;y!==a&&(0>a&&De(a,">= 0",aa,"maximum"),this.hj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("maximum",y,a))}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(this.Jb=a.J(),this.panel!==null&&this.panel.v(),this.Ob("alignment",y,a))}},stretch:{get:function(){return this.hg},set:function(a){var y=this.hg;y!==a&&(this.hg=a,this.panel!==null&&this.panel.v(),this.Ob("stretch",y,a))}},separatorPadding:{get:function(){return this.dg},set:function(a){typeof a=="number"&&(a=new Ri(a));var y=this.dg;a!==null&&y!==null&&y.D(a)||(a!==null&&(a=a.J()),this.dg=a,this.panel!==null&&this.panel.v(),this.Ob("separatorPadding",y,a))}},separatorStroke:{get:function(){return this.lo},set:function(a){var y=this.lo;y!==a&&(a!==null&&Gd(a,"RowColumnDefinition.separatorStroke"),a instanceof qo&&a.freeze(),this.lo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",y,a))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(a){var y=this.mo;y!==a&&(this.mo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",y,a))}},separatorDashArray:{get:function(){return this.tj},set:function(a){var y=this.tj;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;bb)){var z=E.measuredBounds,tt=Math.max(1,z.width);z=z.height;for(var rt=x[0],at=x[1],lt,ht,ft,vt,xt,Et,Lt=0,Wt=ii(),kt=2;ktft&&(ft=1),b=x=ft,lt=tt/2,ht=lt!==0,kt=0,Et=Wt[kt],ft=Et[0],xt=Et[1],vt=Et[2],Et=Et[3];for(var Jt=0;.1<=Lt;){if(Jt===0&&(ht?(b=x,b-=lt,Lt-=lt,ht=!1):b=x,b===0&&(b=1)),b>Lt){Bn(Wt);return}b>Et?(Jt=b-Et,b=Et):Jt=0;var ne=Math.sqrt(b*b/(1+vt*vt));if(0>ft&&(ne=-ne),rt+=ne,at+=vt*ne,a.translate(rt,at),a.rotate(xt),a.translate(-(tt/2),-(z/2)),Jt===0&&E.hh(a,y),a.translate(tt/2,z/2),a.rotate(-xt),a.translate(-rt,-at),Lt-=b,Et-=b,Jt!==0){if(kt++,kt===Wt.length){Bn(Wt);return}Et=Wt[kt],ft=Et[0],xt=Et[1],vt=Et[2],Et=Et[3],b=Jt}}Bn(Wt)}}Ct.hh=function(a,y){var x=this.xc,E=this.Ui;if(x!==null||E!==null){var b=this.ua;if(b!==null){a.yc();var z=this.actualBounds,tt=this.naturalBounds;E!==null&&Hr(this,a,E,!0,!1,tt,z);var rt=this.part,at=this.ig;if(x===null||at!==0||rt===null||!this.isPanelMain&&rt.Pb()!==this||(at=rt.type===zn.Link&&rt instanceof jo&&rt.category==="Selection"&&rt.adornedObject instanceof lo&&rt.adornedPart.Pb()===rt.adornedObject?rt.adornedObject.strokeWidth:0),at===0&&(x=null),x!==null&&at!==0&&(Hr(this,a,x,!1,!1,tt,z),a.lineWidth=at,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,rt&&y.Gf("drawShadows")&&(z=rt.isShadowed),a.Il===!1&&(z=!1),rt=!0,x===null||E!==null&&E!=="transparent"||(rt=!1),tt=!1,at=this.strokeDashArray,at!==null&&(tt=!0,a.js(at,this.strokeDashOffset)),b.type===Qn.j)a.beginPath(),a.moveTo(b.startX,b.startY),a.lineTo(b.endX,b.endY),x!==null&&a.jk(),a.Se();else if(b.type===Qn.u){var lt=b.startX;at=b.startY;var ht=b.endX,ft=b.endY;b=Math.min(lt,ht);var vt=Math.min(at,ft);lt=Math.abs(ht-lt),at=Math.abs(ft-at),a.beginPath(),a.rect(b,vt,lt,at),E!==null&&a.ng(E),x!==null&&(rt&&z&&Ru(a),a.jk(),rt&&z&&uh(a)),a.Se()}else if(b.type===Qn.F)lt=b.startX,at=b.startY,ht=b.endX,ft=b.endY,b=Math.abs(ht-lt)/2,vt=Math.abs(ft-at)/2,lt=Math.min(lt,ht)+b,at=Math.min(at,ft)+vt,a.beginPath(),a.moveTo(lt,at-vt),a.bezierCurveTo(lt+Ie.wg*b,at-vt,lt+b,at-Ie.wg*vt,lt+b,at),a.bezierCurveTo(lt+b,at+Ie.wg*vt,lt+Ie.wg*b,at+vt,lt,at+vt),a.bezierCurveTo(lt-Ie.wg*b,at+vt,lt-b,at+Ie.wg*vt,lt-b,at),a.bezierCurveTo(lt-b,at-Ie.wg*vt,lt-Ie.wg*b,at-vt,lt,at-vt),a.closePath(),E!==null&&a.ng(E),x!==null&&(rt&&z&&Ru(a),a.jk(),rt&&z&&uh(a)),a.Se();else if(b.type===Qn.o)for(b=b.figures,at=b.length,vt=0;vtLt.sweepAngle,xt!==null?xt.endX:lt.startX,xt!==null?xt.endY:lt.startY)}else if(xt=Ds(Lt,lt),Wt=xt.length,Wt===0)a.lineTo(Lt.centerX,Lt.centerY);else for(var kt=0;kt(x.startX-x.endX)*(a.x-x.endX)+(x.startY-x.endY)*(a.y-x.endY)||0>E)?!1:(on.free(z),Ie.Yb(x.startX,x.startY,x.endX,x.endY,b,a.x,a.y));if(x.type===Qn.u){y=x.startX;var tt=x.startY,rt=x.endX;if(x=x.endY,z.x=Math.min(y,rt),z.y=Math.min(tt,x),z.width=Math.abs(rt-y),z.height=Math.abs(x-tt),this.fill===null){if(z.Bc(-E,-E),z.ca(a))return on.free(z),!1;z.Bc(E,E)}return this.stroke!==null&&z.Bc(b,b),a=z.ca(a),on.free(z),a}if(x.type===Qn.F){tt=x.startX,b=x.startY,rt=x.endX;var at=x.endY;if(x=Math.min(tt,rt),y=Math.min(b,at),tt=Math.abs(rt-tt)/2,b=Math.abs(at-b)/2,x=a.x-(x+tt),y=a.y-(y+b),this.fill===null){if(tt-=E,b-=E,0>=tt||0>=b||1>=x*x/(tt*tt)+y*y/(b*b))return on.free(z),!1;tt+=E,b+=E}return this.stroke!==null&&(tt+=E,b+=E),on.free(z),0>=tt||0>=b?!1:1>=x*x/(tt*tt)+y*y/(b*b)}if(x.type===Qn.o)return on.free(z),this.fill===null?th(x,a.x,a.y,b):Su(x,a,b,1=this.strokeWidth)ht=Ie.Ve(lt.startX,lt.startY,lt.endX,lt.endY,z,tt,rt,at,b);else{if(lt.startX===lt.endX?(E=ft,ht=0):(y=(lt.endY-lt.startY)/(lt.endX-lt.startX),ht=ft/Math.sqrt(1+y*y),E=ht*y),y=ii(),a=new Ot,Ie.Ve(lt.startX+E,lt.startY+ht,lt.endX+E,lt.endY+ht,z,tt,rt,at,a)&&y.push(a),a=new Ot,Ie.Ve(lt.startX-E,lt.startY-ht,lt.endX-E,lt.endY-ht,z,tt,rt,at,a)&&y.push(a),a=new Ot,Ie.Ve(lt.startX+E,lt.startY+ht,lt.startX-E,lt.startY-ht,z,tt,rt,at,a)&&y.push(a),a=new Ot,Ie.Ve(lt.endX+E,lt.endY+ht,lt.endX-E,lt.endY-ht,z,tt,rt,at,a)&&y.push(a),rt=y.length,rt===0)return Bn(y),!1;for(ht=!0,at=1/0,E=0;EMath.abs(x)){if(at=tt-ht-x*(z-E),0>a*a*x*x+lt*lt-at*at){b.x=NaN,b.y=NaN,ht=!1;break t}ft=Math.sqrt(a*a*x*x+lt*lt-at*at),rt=(-(a*a*x*at)+a*lt*ft)/(lt*lt+a*a*x*x)+E,a=(-(a*a*x*at)-a*lt*ft)/(lt*lt+a*a*x*x)+E,lt=x*(rt-E)+at+ht,at=x*(a-E)+at+ht,Math.abs((z-rt)*(z-rt))+Math.abs((tt-lt)*(tt-lt))rt){b.x=NaN,b.y=NaN,ht=!1;break t}at=Math.sqrt(rt),rt=ht+at,at=ht-at,Math.abs(rt-tt)Math.abs(Et)?(Lt*=.5/Et,Et=.5):Lt!==0&&.5>Math.abs(Lt)&&(Et*=.5/Lt,Lt=.5),kt-=Et,Jt-=Lt;xt.contains(kt,Jt);)kt-=Et,Jt-=Lt;for(b.x=rt,b.y=at,Lt=0;Ltx?a-x:x-a)<(y>E?y-E:E-y)?(a=ya||Ie.$(at.y,a))&&(at.yy||Ie.$(at.x,y))&&(at.x=a&&E<=y):(a=E&&x<=a)}Ct.tx=function(a,y,x){function E(Wt,kt){for(var Jt=Wt.length,ne=0;neb)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var b=a.Bf(y),z=b;if(1.5=b||mi(y,z,0,-ft)>=b||mi(y,z,0,ft)>=b||mi(y,z,ht,0)>=b)}else if(y.type===Qn.o){if(lt=y.bounds,z=lt.x,rt=lt.y,at=lt.x+lt.width,lt=lt.y+lt.height,a.x>at&&a.xlt&&a.yb&&pi(a.x,a.y,z,rt,at,rt)>b&&pi(a.x,a.y,at,lt,z,lt)>b&&pi(a.x,a.y,at,lt,at,rt)>b)return!1;if(z=Math.sqrt(b),x){if(this.fill===null?th(y,a.x,a.y,z):Su(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;yb)return!1;for(rt=z.segments.s,at=rt.length,lt=0;ltb)return!1;break;case Na:var vt=ii();if(Ie.Qe(tt,ht,ft.point1X,ft.point1Y,ft.point2X,ft.point2Y,ft.endX,ft.endY,.8,vt),tt=E(vt,a),Bn(vt),tt||(tt=ft.endX,ht=ft.endY,a.zd(tt,ht)>b))return!1;break;case Hs:if(vt=ii(),Ie.ep(tt,ht,ft.point1X,ft.point1Y,ft.endX,ft.endY,.8,vt),tt=E(vt,a),Bn(vt),tt||(tt=ft.endX,ht=ft.endY,a.zd(tt,ht)>b))return!1;break;case Qr:case Js:vt=ft.type===Qr?Ds(ft,z):ll(ft,z,tt,ht);var xt=vt.length;if(xt===0){if(tt=ft.type===Qr?ft.centerX:ft.endX,ht=ft.type===Qr?ft.centerY:ft.endY,a.zd(tt,ht)>b)return!1;break}ft=null;for(var Et=ii(),Lt=0;Lt= 0",lo,"strokeWidth:value")}},strokeCap:{get:function(){return this.Na!==null?this.Na.Hr:"butt"},set:function(a){var y=this.strokeCap;y!==a&&(typeof a!="string"||a!=="butt"&&a!=="round"&&a!=="square"?De(a,'"butt", "round", or "square"',lo,"strokeCap"):(rd(this),this.Na.Hr=a,this.N(),this.g("strokeCap",y,a)))}},strokeJoin:{get:function(){return this.Na!==null?this.Na.Ir:"miter"},set:function(a){var y=this.strokeJoin;y!==a&&(typeof a!="string"||a!=="miter"&&a!=="bevel"&&a!=="round"?De(a,'"miter", "bevel", or "round"',lo,"strokeJoin"):(rd(this),this.Na.Ir=a,this.N(),this.g("strokeJoin",y,a)))}},strokeMiterLimit:{get:function(){return this.Na!==null?this.Na.Jr:10},set:function(a){var y=this.strokeMiterLimit;if(y!==a&&1<=a){rd(this),this.Na.Jr=a,this.N();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeMiterLimit",y,a)}}},strokeDashArray:{get:function(){return this.Yg},set:function(a){var y=this.Yg;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;ba?a=0:1a?a=0:1(ft*ft+ht*ht)*vt*vt&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof $s&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,ft=this.spacingBelow,this.flip){case ko:a.translate(b,0),a.scale(-1,1);break;case yo:a.translate(0,z),a.scale(1,-1);break;case er:a.translate(b,z),a.scale(-1,-1)}if(a.yc(),ht=this.Gc,vt=(y+tt+ft)*ht,z>vt&&(E=this.verticalAlignment,E=E.y*z-E.y*vt+E.offsetY),ht===1&&this.ze!==null)ft=this.Cb,ft>b&&(ft=b),this.Oj(this.ze,a,0,E+y,b,tt,ft,x,rt,at,lt);else if(this.Qc!==null&&this.Qb!==null)for(vt=0;vtb&&(xt=b),E+=y,this.Oj(this.Qb[vt],a,0,E,b,tt,xt,x,rt,at,lt),E+=tt+ft}switch(this.flip){case ko:a.scale(-1,1),a.translate(-b,0);break;case yo:a.scale(1,-1),a.translate(0,-z);break;case er:a.scale(-1,-1),a.translate(-b,-z)}}},Ct.Oj=function(a,y,x,E,b,z,tt,rt,at,lt,ht){var ft=0;if(rt)at==="left"?ft=0:at==="right"?ft=b-tt:at==="center"&&(ft=(b-tt)/2),y.fillRect(x+ft,E+.25*z,tt,1);else{if(at==="left"?ft=0:at==="right"?ft=b:at==="center"&&(ft=b/2),b=kp!==null?kp(this,z):.75*z,y.fillText(a,x+ft,E+b),a=z/20|0,a===0&&(a=1),at==="right"?ft-=tt:at==="center"&&(ft-=tt/2),lt){rt=Tp!==null?Tp(this,z):.8*z,at=x+ft,lt=E+rt,b=x+ft+tt,rt=E+rt;var vt=a;y.beginPath(),y.lineWidth=vt,y.moveTo(at,lt),y.lineTo(b,rt),y.stroke(),y.Se(),y instanceof $s&&y.ad.classList.add("gojs-td")}ht&&(ht=E+z-z/2.2|0,a%2!==0&&(ht+=.5),E=x+ft,z=ht,x=x+ft+tt,tt=ht,ft=a,y.beginPath(),y.lineWidth=ft,y.moveTo(E,z),y.lineTo(x,tt),y.stroke(),y.Se(),y instanceof $s&&y.ad.classList.add("gojs-td"))}},Ct.kk=function(a,y,x){if(!Se.prototype.kk.call(this,a,y,x))return!1;if(Hr(this,a,this.xc,!0,!1,this.naturalBounds,this.actualBounds),x){if(this.svg.getElementsByTagName("text").length===0)return!0;for(y=this.svg.getElementsByClassName("gojs-td"),x=0;xE.length));){var z=yn(E[1]).split(".");if(E[4]!=="7da71ca0")break;var tt=yn(Sn[yn("6cae19")]).split(".");if(z[0]>tt[0]||z[0]===tt[0]&&z[1]>=tt[1]){var rt=We[yn("74a900bae4370f8b51")][yn("6fbb13a1c2311e8a57")].toLowerCase();if(tt=rt[yn("73a612b6fb191d")](yn("3aad1ab6e022098b4dc4")),z=yn(E[2]),-1tt&&z!==yn("7da71ca0ad381e90")&&(tt=y[yn("73a612b6fb191d")](yn("76a715b2ef3e149757"))),0>tt&&(tt=y[yn("73a612b6fb191d")](yn("76a715b2ef3e149757"))),0>tt&&(tt=y[yn("73a612b6fb191d")](yn("2bfa41fdb3784bca12"))),0>tt&&(tt=x[yn("73a612b6fb191d")](yn("7baa19a6f76c1988428554"))),a.Rc=!(0<=tt&&ttrt),!a.Rc)))break;if(z[0]==="#"){tt=We.document.createElement("div");for(var at=E[0].replace(/[A-Za-z]/g,"");4>at.length;)at+="9";if(rt=at,at=at.substr(at.length-4),E="",E+=["gsh","gsf"][parseInt(at.substr(0,1),10)%2],E+=["Header","Background","Display","Feedback"][parseInt(at.substr(0,1),10)%4],tt[yn("79a417a0f0181a8946")]=E,We.document[yn("78a712aa")]){We.document[yn("78a712aa")][yn("7bb806b6ed32388c4a875b")](tt),at=We.getComputedStyle(tt).getPropertyValue(yn("78a704b7e62456904c9b12701b6532a8"));var lt=We.getComputedStyle(tt).getPropertyValue(yn("75b817b0ea2202"));if(We.document[yn("78a712aa")][yn("68ad1bbcf533388c4a875b")](tt),at){if(tt=We[yn("77a902b0eb1b1e804a8a")],lt==="0."+parseInt(rt,10)%100||at.indexOf(parseInt(z[1]+z[2],16))!==-1&&at.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(tt&&tt(yn("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(E="."+E,z=0;zE.updateDelay?E.N():E.o||(E.o=!0,setTimeout(function(){return E.redraw()},E.updateDelay))},x.Of=function(){E.observed!==null&&Nt(E)},x.autoScale=hl,x.vb=!1,y&&Object.assign(x,y),x}Yt(mt,Ue),mt.prototype.computePixelRatio=function(){return 1},mt.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var a=this.ta,y=this.ib;if(a!==null&&y!==null){if(Kc(this),this.ql===null){var x=new jl(null);x.width=a.width,x.height=a.height,this.ql=x}try{this.ta=this.ql,this.ib=this.ta.context,this.ib.Vc(!0),this.ib.setTransform(1,0,0,1,0,0),this.ib.clearRect(0,0,this.ta.width,this.ta.height),It(this)}finally{this.ta=a,this.ib=y}}}Ue.prototype.redraw.call(this)},mt.prototype.gc=function(){if(this.Ka===null&&Xt("No div specified"),this.ta===null&&Xt("No canvas specified"),!(this.ta instanceof Pu)&&(Tv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){Kc(this);var y=this.ta;a=this.ib,a.Vc(!0),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,y.width,y.height),1>this.updateDelay?It(this):this.ql!==null&&(a.drawImage(this.ql.Oa,0,0),y=this.Ab,y.reset(),this.scale!==1&&y.scale(this.scale),this.position.x===0&&this.position.y===0||y.translate(-this.position.x,-this.position.y),a.scale(this.Mb,this.Mb),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.yc()),y=this.Wa.s;for(var x=y.length,E=0;Ea&&(a=0),this.ia!==a&&(this.ia=a)}}}),mt.className="Overview";function Gt(){ci.call(this),this.j=null}Yt(Gt,ci),Gt.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||!a.allowMove||!a.allowSelect)return!1;var y=a.observed;if(y===null)return!1;var x=a.lastInput;return!x.left||a.currentTool!==this&&(!this.isBeyondDragSize()||x.isTouchEvent&&x.timestamp-a.firstInput.timestampy.maxScale||(y.scale=a))},Ht.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==us?!1:(a=y.scale*a,ay.maxScale?!1:y.allowZoom)},Ht.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===us&&(a=y.scale*a,ay.maxScale||(y.scale=a))},Ht.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==us?!1:(a=y.scale*a,ay.maxScale?!1:y.allowZoom)},Ht.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;ay.maxScale||(y.scale=a)},Ht.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return ay.maxScale?!1:y.allowZoom},Ht.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,E=a.scale;ku(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&E===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=Wr):(this.Jt=E,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),dg(y)},Ht.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Ht.prototype.scrollToPart=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.Va(),a===null){try{this.cg!==null&&(this.cg.next()?a=this.cg.value:this.cg=null)}catch(at){this.cg=null}a===null&&(0a&&(a+=360)),a},Ct.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Ct.qs=function(a,y){return y===void 0&&(y=new Ot),y.assign(a),this.oe.Cd(y),y},Ct.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Ct.Sj=function(a,y,x,E,b){var z=this.transform,tt=1/(z.m11*z.m22-z.m12*z.m21),rt=z.m22*tt,at=-z.m12*tt,lt=-z.m21*tt,ht=z.m11*tt,ft=tt*(z.m21*z.dy-z.m22*z.dx),vt=tt*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,Ie.Ff(z.left,z.top,z.right,z.bottom,a,y,x,E,b)):(tt=a*rt+y*lt+ft,a=a*at+y*ht+vt,y=x*rt+E*lt+ft,x=x*at+E*ht+vt,b.h(0,0),E=this.naturalBounds,x=Ie.Ff(0,0,E.width,E.height,tt,a,y,x,b),b.transform(z),x)},Se.prototype.measure=function(a,y,x,E){if(dl(this)!==!1){var b=this.Kg,z=b.right+b.left;b=b.top+b.bottom,a=Math.max(a-z,0),y=Math.max(y-b,0),x=Math.max((x||0)-z,0),E=Math.max((E||0)-b,0),z=this.angle,b=this.desiredSize;var tt=this.kq();z===90||z===270?(a=isFinite(b.height)?b.height+tt:a,y=isFinite(b.width)?b.width+tt:y):(a=isFinite(b.width)?b.width+tt:a,y=isFinite(b.height)?b.height+tt:y),b=x||0,tt=E||0;var rt=this instanceof zn;switch(Ts(this,!0)){case In:tt=b=0,rt&&(y=a=1/0);break;case On:isFinite(a)&&a>x&&(b=a),isFinite(y)&&y>E&&(tt=y);break;case Si:isFinite(a)&&a>x&&(b=a),tt=0,rt&&(y=1/0);break;case Ti:isFinite(y)&&y>E&&(tt=y),b=0,rt&&(a=1/0)}rt=this.maxSize;var at=this.minSize;b>rt.width&&at.widthrt.height&&at.heighta.height||this.Cb>a.width))&&(x=!0)),this.l=x?this.l|256:this.l&-257,this.Ib.w()||Xt("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),zu(this,!1),on.free(z)},Ct=Se.prototype,Ct.eh=function(){};function hs(a,y,x,E,b){if(a.Ib.h(y,x,E,b),!a.desiredSize.w()){var z=a.uc;x=a.Kg,y=x.right+x.left;var tt=x.top+x.bottom;switch(x=z.width+y,z=z.height+tt,E+=y,b+=tt,y=Ts(a,!0),x===E&&z===b&&(y=In),y){case In:(x>E||z>b)&&(ra(a,!0),a.measure(x>E?E:x,z>b?b:z,0,0));break;case On:ra(a,!0),a.measure(E,b,0,0);break;case Si:ra(a,!0),a.measure(E,z,0,0);break;case Ti:ra(a,!0),a.measure(x,b,0,0)}}}Ct.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||zv(x,!0),this.N(),Ll(a,y)||(x.oh(),this.Pn(x)))},Ct.Pn=function(a){this.portId!==null&&(zv(a,!0),a instanceof ri&&Zy(a,this))},Ct.gc=function(a,y){if(!Cl(this,a,y)&&this.visible){var x=this.opacity;if(x!==0){var E=1;x!==1&&(E=a.globalAlpha,a.globalAlpha=E*x);var b="";this.filter!==""&&(b=a.filter,a.filter=this.filter);var z=this instanceof zn&&Th(this),tt=this.Ib;if(z){var rt=this.Ib,at=this.dc,lt=this.areaBackground,ht=this.Ma;lt===null&&ht===null||a.yc(),lt!==null&&(Hr(this,a,lt,!0,!0,at,rt),lt instanceof qo&<.type===wl?(a.beginPath(),a.rect(rt.x,rt.y,rt.width,rt.height),a.ng(lt)):a.fillRect(rt.x,rt.y,rt.width,rt.height)),ht!==null&&(Hr(this,a,ht,!0,!1,at,rt),ht instanceof qo&&ht.type===wl?(a.beginPath(),a.rect(rt.x,rt.y,rt.width,rt.height),a.ng(ht)):a.fillRect(rt.x,rt.y,rt.width,rt.height)),this.hh(a,y)}if(!z&&(z||tt.width!==0&&tt.height!==0&&!isNaN(tt.x)&&!isNaN(tt.y))){z=this.transform,rt=this.panel,this.l&4096&&Oa(this),lt=this.part,at=!1;var ft=0;lt&&y.Gf("drawShadows")&&(at=lt.isShadowed)&&(ht=lt.shadowOffset,ft=Math.max(ht.y,ht.x)*y.scale*y.Mb),ht=this.Dd();var vt;if(!(vt=y.$i||!ht)){var xt=this.naturalBounds;vt=this.wh;var Et=vt.m11,Lt=vt.m21,Wt=vt.dx,kt=vt.m12,Jt=vt.m22,ne=vt.dy,se,ye=se=0;vt=se*Et+ye*Lt+Wt;var Ge=se*kt+ye*Jt+ne;se=xt.width+ft,ye=0;var ni=se*Et+ye*Lt+Wt;se=se*kt+ye*Jt+ne,ye=Math.min(vt,ni);var fi=Math.min(Ge,se),ui=Math.max(vt+0,ni)-ye,Un=Math.max(Ge+0,se)-fi;vt=ye,Ge=fi,se=xt.width+ft,ye=xt.height+ft,ni=se*Et+ye*Lt+Wt,se=se*kt+ye*Jt+ne,ye=Math.min(vt,ni),fi=Math.min(Ge,se),ui=Math.max(vt+ui,ni)-ye,Un=Math.max(Ge+Un,se)-fi,vt=ye,Ge=fi,se=0,ye=xt.height+ft,ni=se*Et+ye*Lt+Wt,se=se*kt+ye*Jt+ne,ye=Math.min(vt,ni),fi=Math.min(Ge,se),ui=Math.max(vt+ui,ni)-ye,Un=Math.max(Ge+Un,se)-fi,vt=ye,Ge=fi,ft=y.viewportBounds,xt=ft.x,Et=ft.y,vt=!(vt>ft.width+xt||xt>ui+vt||Ge>ft.height+Et||Et>Un+Ge)}if(vt){if(vt=(this.l&256)!==0,a.clipInsteadOfFill&&(vt=!1),this instanceof cr&&(a.font=this.font),vt){if(Ge=rt.se()?rt.naturalBounds:rt.actualBounds,ui=Math.max(tt.x,Ge.x),Un=Math.max(tt.y,Ge.y),ft=Math.min(tt.right,Ge.right)-ui,xt=Math.min(tt.bottom,Ge.bottom)-Un,Et=this.tb,Et!==null&&(ui=Et.x,Un=Et.y,ft=Et.width,xt=Et.height),ui>tt.width+tt.x||tt.x>Ge.width+Ge.x){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}a.save(),a.beginPath(),a.rect(ui,Un,ft,xt),a.clip()}if(ht){if(!lt.isVisible()){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}at&&(Ge=lt.shadowOffset,a.Ev(Ge.x*y.scale*this.scale*y.Mb,Ge.y*y.scale*this.scale*y.Mb,lt.shadowBlur),uh(a),a.shadowColor=lt.shadowColor)}at&&this.shadowVisible===!0?uh(a):at&&this.shadowVisible===!1&&Ru(a),lt=this.naturalBounds,this.areaBackground!==null&&(a.yc(),cl(this,a,lt,tt)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),at&&La(this,rt)&&this.shadowVisible===null&&Ru(a),this.Ma!==null&&(a.yc(),Gs(this,a,lt,tt)),at&&(this.Ma!==null||this.areaBackground!==null||La(this,rt))?(Jl(this,!0),this.shadowVisible===null&&Ru(a)):Jl(this,!1),this.hh(a,y),at&&this.l&512&&uh(a),ht&&at&&Ru(a),vt&&(a.restore(),a.Vc(this instanceof zn)),z.ws()||(y=1/(z.m11*z.m22-z.m12*z.m21),a.transform(z.m22*y,-z.m12*y,-z.m21*y,z.m11*y,y*(z.m21*z.dy-z.m22*z.dx),y*(z.m12*z.dx-z.m11*z.dy)))}}x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b)}}};function La(a,y){return y===null?!1:(Th(y)&&(y=y.panel),(y.l&512)!==0||(y.type===zn.Auto||y.type===zn.Spot)&&y.Pb()!==a)}Ct.Dv=function(){};function cl(a,y,x,E){Hr(a,y,a.areaBackground,!0,!0,x,E),a.areaBackground instanceof qo&&a.areaBackground.type===wl?(y.beginPath(),y.rect(E.x,E.y,E.width,E.height),y.ng(a.areaBackground)):y.fillRect(E.x,E.y,E.width,E.height)}function Gs(a,y,x,E){var b=a.kq(),z=x.x,tt=x.y,rt=x.width+b,at=x.height+b;Hr(a,y,a.Ma,!0,!1,x,E),a.Ma instanceof qo&&a.Ma.type===wl?(y.beginPath(),y.rect(z-b/2,tt-b/2,rt,at),y.ng(a.Ma)):y.fillRect(z-b/2,tt-b/2,rt,at)}function is(a,y,x){for(var E=y.O.s,b=E.length,z=-1,tt=0;ttb)&&Xt("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+b),a.isRow=!0,a.index=b):y.column!==void 0&&(b=y.column,(b==null||b===1/0||isNaN(b)||0>b)&&Xt("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+b),a.isRow=!1,a.index=b),b=new ji;for(x in y)x!=="row"&&x!=="column"&&(b[x]=y[x]);Xc(a,b)}else Xc(a,y);else Xt('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function Nh(a,y){Lg.add(a,y)}function cp(a,y,x){x===void 0&&(x=null);var E=a[1];if(typeof x=="function"?x(E):typeof E=="string")return a.splice(1,1),E;if(y===void 0)throw Error("no "+(typeof x=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}Vt.Object.defineProperties(Se.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new Hd),this.A.zp=a)}},localBindings:{get:function(){return this.A!==null?this.A.te:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new Hd),this.A.te=a)}},srcBindings:{get:function(){return this.A!==null?this.A.wm:null},set:function(a){this.srcBindings!==a&&(this.A===null&&(this.A=new Hd),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(mo(this),this.A.Ci=a,this.Uc=!0,this.N(),this.g("shadowVisible",y,a))}},enabledChanged:{get:function(){return this.A!==null?this.A.Hb:null},set:function(a){var y=this.enabledChanged;y!==a&&(mo(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Ss},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new mc),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===Ss&&(this.angle=0))}},segmentIndex:{get:function(){return this.Ua!==null?this.Ua.u:-1/0},set:function(a){a=Math.round(a);var y=this.segmentIndex;y!==a&&(this.Ua===null&&(this.Ua=new mc),this.Ua.u=a,this.v(),this.g("segmentIndex",y,a))}},segmentFraction:{get:function(){return this.Ua!==null?this.Ua.o:0},set:function(a){isNaN(a)||0>a?a=0:1a||1=a&&Xt("GraphObject.scale for "+this+" must be greater than zero, not: "+a),this.Ca=a,this.v(),this.g("scale",y,a))}},angle:{get:function(){return this.Kb},set:function(a){var y=this.Kb;y!==a&&(a%=360,0>a&&(a+=360),y!==a&&(this.Kb=a,X1(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,E=this.jd,b=E.width,z=E.height;(b===y||isNaN(b)&&isNaN(y))&&(z===x||isNaN(z)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof lo&&this.qc(),this.g("desiredSize",E,a),Ha(this)&&(a=this.part,a!==null&&(vr(this,a,"width"),vr(this,a,"height"))))}},width:{get:function(){return this.jd.width},set:function(a){var y=this.jd.width;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new Nn(a,this.jd.height).freeze(),this.v(),this instanceof lo&&this.qc(),this.g("desiredSize",y,a),Ha(this)&&(a=this.part,a!==null&&vr(this,a,"width")))}},height:{get:function(){return this.jd.height},set:function(a){var y=this.jd.height;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new Nn(this.jd.width,a).freeze(),this.v(),this instanceof lo&&this.qc(),this.g("desiredSize",y,a),Ha(this)&&(a=this.part,a!==null&&vr(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:Pi},set:function(a){var y=this.minSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=0),isNaN(a.height)&&(a.height=0),a.freeze(),mo(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:co},set:function(a){var y=this.maxSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=1/0),isNaN(a.height)&&(a.height=1/0),a.freeze(),mo(this),this.A.o=a,this.v(),this.g("maxSize",y,a))}},measuredBounds:{get:function(){return this.uc}},naturalBounds:{get:function(){return this.dc}},margin:{get:function(){return this.Kg},set:function(a){typeof a=="number"&&(a=new Ri(a));var y=this.Kg;y.D(a)||(this.Kg=a=a.J(),this.v(),this.g("margin",y,a))}},transform:{get:function(){return this.l&2048&&Oa(this),this.Ab}},oe:{get:function(){return this.l&4096&&Oa(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(mo(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:In},set:function(a){this.reshapingBehavior!==a&&(mo(this),this.A.Pf=a)}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(a.Mc()&&!a.Xb()&&Xt("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),vs(this),this.g("alignment",y,a))}},column:{get:function(){return this.Ag},set:function(a){a=Math.round(a);var y=this.Ag;y!==a&&(0>a&&De(a,">= 0",Se,"column"),this.Ag=a,this.v(),this.g("column",y,a),this.svg!==null&&this.svg.remove())}},columnSpan:{get:function(){return this.A!==null?this.A.ob:1},set:function(a){a=Math.round(a);var y=this.columnSpan;y!==a&&(1>a&&De(a,">= 1",Se,"columnSpan"),mo(this),this.A.ob=a,this.v(),this.g("columnSpan",y,a))}},row:{get:function(){return this.io},set:function(a){a=Math.round(a);var y=this.io;y!==a&&(0>a&&De(a,">= 0",Se,"row"),this.io=a,this.v(),this.g("row",y,a),this.svg!==null&&this.svg.remove())}},rowSpan:{get:function(){return this.A!==null?this.A.Bi:1},set:function(a){a=Math.round(a);var y=this.rowSpan;y!==a&&(1>a&&De(a,">= 1",Se,"rowSpan"),mo(this),this.A.Bi=a,this.v(),this.g("rowSpan",y,a))}},spanAllocation:{get:function(){return this.A!==null?this.A.Di:null},set:function(a){var y=this.spanAllocation;y!==a&&(mo(this),this.A.Di=a,this.v(),this.g("spanAllocation",y,a))}},alignmentFocus:{get:function(){return this.sk},set:function(a){var y=this.sk;y.D(a)||(this.sk=a=a.J(),this.v(),this.g("alignmentFocus",y,a))}},portId:{get:function(){return this.Yn},set:function(a){var y=this.Yn;if(y!==a){var x=this.part;x===null||x instanceof ri||Xt("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Gv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,Yy(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:ir},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),ed(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&De(a,">= 0",Se,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),ed(this))}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:0},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.g("toShortLength",y,a),ed(this))}},toLinkable:{get:function(){return this.ba!==null?this.ba.Tr:null},set:function(a){var y=this.toLinkable;y!==a&&(this.Xc(),this.ba.Tr=a,this.g("toLinkable",y,a))}},toMaxLinks:{get:function(){return this.ba!==null?this.ba.Ur:1/0},set:function(a){var y=this.toMaxLinks;y!==a&&(0>a&&De(a,">= 0",Se,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:ir},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),ed(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&De(a,">= 0",Se,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),ed(this))}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:0},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.g("fromShortLength",y,a),ed(this))}},fromLinkable:{get:function(){return this.ba!==null?this.ba.hq:null},set:function(a){var y=this.fromLinkable;y!==a&&(this.Xc(),this.ba.hq=a,this.g("fromLinkable",y,a))}},fromMaxLinks:{get:function(){return this.ba!==null?this.ba.iq:1/0},set:function(a){var y=this.fromMaxLinks;y!==a&&(0>a&&De(a,">= 0",Se,"fromMaxLinks"),this.Xc(),this.ba.iq=a,this.g("fromMaxLinks",y,a))}},cursor:{get:function(){return this.A!==null?this.A.j:""},set:function(a){var y=this.cursor;y!==a&&(mo(this),this.A.j=a,this.g("cursor",y,a))}},click:{get:function(){return this.A!==null?this.A.zh:null},set:function(a){var y=this.click;y!==a&&(mo(this),this.A.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.A!==null?this.A.Fh:null},set:function(a){var y=this.doubleClick;y!==a&&(mo(this),this.A.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.A!==null?this.A.Bh:null},set:function(a){var y=this.contextClick;y!==a&&(mo(this),this.A.Bh=a,this.g("contextClick",y,a))}},mouseEnter:{get:function(){return this.A!==null?this.A.Mh:null},set:function(a){var y=this.mouseEnter;y!==a&&(mo(this),this.A.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.A!==null?this.A.Ph:null},set:function(a){var y=this.mouseLeave;y!==a&&(mo(this),this.A.Ph=a,this.g("mouseLeave",y,a))}},mouseOver:{get:function(){return this.A!==null?this.A.Qh:null},set:function(a){var y=this.mouseOver;y!==a&&(mo(this),this.A.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.A!==null?this.A.Oh:null},set:function(a){var y=this.mouseHover;y!==a&&(mo(this),this.A.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.A!==null?this.A.Nh:null},set:function(a){var y=this.mouseHold;y!==a&&(mo(this),this.A.Nh=a,this.g("mouseHold",y,a))}},mouseDragEnter:{get:function(){return this.A!==null?this.A.Of:null},set:function(a){var y=this.mouseDragEnter;y!==a&&(mo(this),this.A.Of=a,this.g("mouseDragEnter",y,a))}},mouseDragLeave:{get:function(){return this.A!==null?this.A.Xd:null},set:function(a){var y=this.mouseDragLeave;y!==a&&(mo(this),this.A.Xd=a,this.g("mouseDragLeave",y,a))}},mouseDrop:{get:function(){return this.A!==null?this.A.Lh:null},set:function(a){var y=this.mouseDrop;y!==a&&(mo(this),this.A.Lh=a,this.g("mouseDrop",y,a))}},actionDown:{get:function(){return this.A!==null?this.A.V:null},set:function(a){var y=this.actionDown;y!==a&&(mo(this),this.A.V=a,this.g("actionDown",y,a))}},actionMove:{get:function(){return this.A!==null?this.A.ia:null},set:function(a){var y=this.actionMove;y!==a&&(mo(this),this.A.ia=a,this.g("actionMove",y,a))}},actionUp:{get:function(){return this.A!==null?this.A.Ha:null},set:function(a){var y=this.actionUp;y!==a&&(mo(this),this.A.Ha=a,this.g("actionUp",y,a))}},actionCancel:{get:function(){return this.A!==null?this.A.F:null},set:function(a){var y=this.actionCancel;y!==a&&(mo(this),this.A.F=a,this.g("actionCancel",y,a))}},toolTip:{get:function(){return this.A!==null?this.A.$h:null},set:function(a){var y=this.toolTip;y!==a&&(mo(this),this.A.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.A!==null?this.A.Ch:null},set:function(a){var y=this.contextMenu;y!==a&&(mo(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),Se.prototype.trigger=Se.prototype.Jv,Se.prototype.findBindingPanel=Se.prototype.ih,Se.prototype.findTemplateBinder=Se.prototype.pz,Se.prototype.setProperties=Se.prototype.nm,Se.prototype.apply=Se.prototype.apply,Se.prototype.attach=Se.prototype.Du,Se.prototype.set=Se.prototype.set,Se.prototype.isEnabledObject=Se.prototype.If,Se.prototype.isVisibleObject=Se.prototype.Ed,Se.prototype.isContainedBy=Se.prototype.rg,Se.prototype.getNearestIntersectionPoint=Se.prototype.rs,Se.prototype.getLocalPoint=Se.prototype.qs,Se.prototype.getDocumentScale=Se.prototype.Df,Se.prototype.getDocumentAngle=Se.prototype.li,Se.prototype.getDocumentBounds=Se.prototype.mi,Se.prototype.getDocumentPoint=Se.prototype.ga,Se.prototype.intersectsRect=Se.prototype.Yc,Se.prototype.containedInRect=Se.prototype.fh,Se.prototype.containsRect=Se.prototype.Re,Se.prototype.containsPoint=Se.prototype.ca,Se.prototype.raiseChanged=Se.prototype.g,Se.prototype.raiseChangedEvent=Se.prototype.cb,Se.prototype.addCopyProperty=Se.prototype.Vw;var Lg=null;Se.className="GraphObject",Lg=new hi,Nh("Button",function(){function a(x,E){return x.diagram.ic(x.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b},function(b){return b===E})!==null}var y=xl(zn,zn.Auto,{isActionable:!0,enabledChanged:function(x,E){if(x instanceof zn){var b=x.fb("ButtonBorder");b!==null&&(b.fill=E?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},xl(lo,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new Mi(0,0,2.76142374915397,2.761423749153969),spot2:new Mi(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,E){if(E.If()&&E instanceof zn&&(x=E.fb("ButtonBorder"),x instanceof lo)){var b=E._buttonFillOver;E._buttonFillNormal=x.fill,x.fill=b,b=E._buttonStrokeOver,E._buttonStrokeNormal=x.stroke,x.stroke=b}},y.mouseLeave=function(x,E){E.If()&&E instanceof zn&&(x=E.fb("ButtonBorder"),x instanceof lo&&(x.fill=E._buttonFillNormal,x.stroke=E._buttonStrokeNormal))},y.actionDown=function(x,E){if(E.If()&&E instanceof zn&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof lo){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var tt=E._buttonFillPressed;E._buttonFillOver=b.fill,b.fill=tt,tt=E._buttonStrokePressed,E._buttonStrokeOver=b.stroke,b.stroke=tt,x.skipsUndoManager=z}}},y.actionUp=function(x,E){if(E.If()&&E instanceof zn&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof lo){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionCancel=function(x,E){if(E.If()&&E instanceof zn&&E._buttonFillPressed!==null){var b=E.fb("ButtonBorder");if(b instanceof lo){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionMove=function(x,E){if(E.If()&&E instanceof zn&&E._buttonFillPressed!==null){var b=x.diagram;if(b.firstInput.button===0&&(b.currentTool.standardMouseOver(),a(x,E)&&(x=E.fb("ButtonBorder"),x instanceof lo))){var z=b.skipsUndoManager;b.skipsUndoManager=!0;var tt=E._buttonFillPressed;x.fill!==tt&&(x.fill=tt),tt=E._buttonStrokePressed,x.stroke!==tt&&(x.stroke=tt),b.skipsUndoManager=z}}},y}),Nh("TreeExpanderButton",function(){var a=xl("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},xl(lo,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Oi},new $r("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new $r("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof jo&&(x=x.adornedPart),x instanceof ri){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isTreeExpanded){if(!E.canCollapseTree(x))return}else if(!E.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?E.collapseTree(x):E.expandTree(x)}}},a}),Nh("SubGraphExpanderButton",function(){var a=xl("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},xl(lo,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Oi},new $r("figure","isSubGraphExpanded",function(y,x){return x=x.panel,y?x._subGraphExpandedFigure:x._subGraphCollapsedFigure}).cp()));return a.click=function(y,x){if(x=x.part,x instanceof jo&&(x=x.adornedPart),x instanceof to){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isSubGraphExpanded){if(!E.canCollapseSubGraph(x))return}else if(!E.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?E.collapseSubGraph(x):E.expandSubGraph(x)}}},a}),Nh("ToolTip",function(){return xl(jo,zn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Ot(0,3),shadowBlur:5},xl(lo,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new Mi(0,0,4,6),spot2:new Mi(1,1,-4,-4)}))}),Nh("ContextMenu",function(){return xl(jo,zn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Ot(0,3),shadowBlur:5},new $r("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),Nh("ContextMenuButton",function(){var a=xl("Button");a.stretch=Si;var y=a.fb("ButtonBorder");return y instanceof lo&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new Mi(0,0,2,3),y.spot2=new Mi(1,1,-2,-2)),a}),Nh("PanelExpanderButton",function(a){var y=cp(a,"COLLAPSIBLE"),x=xl("Button",{_buttonExpandedFigure:"M0 0 M0 6 L4 2 8 6 M8 8",_buttonCollapsedFigure:"M0 0 M0 2 L4 6 8 2 M8 8",_buttonFillNormal:"rgba(0, 0, 0, 0)",_buttonStrokeNormal:null,_buttonFillOver:"rgba(0, 0, 0, .2)",_buttonStrokeOver:null,_buttonFillPressed:"rgba(0, 0, 0, .4)",_buttonStrokePressed:null},xl(lo,{name:"ButtonIcon",strokeWidth:2},new $r("geometryString","visible",function(E){return E?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof lo&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(E,b){var z=b.diagram;if(z!==null&&!z.isReadOnly){var tt=b.ih();tt===null&&(tt=b.part),tt!==null&&(b=tt.fb(y),b!==null&&(E.handled=!0,z.Ea("Collapse/Expand Panel"),b.visible=!b.visible,z.eb("Collapse/Expand Panel")))}},x}),Nh("CheckBoxButton",function(a){var y=cp(a);return a=xl("Button",{desiredSize:new Nn(14,14)},xl(lo,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:On,geometryStretch:vi,visible:!1},y!==""?new $r("visible",y).Kx():[])),a.click=function(x,E){if(E instanceof zn){var b=x.diagram;if(!(b===null||b.isReadOnly||y!==""&&b.model.isReadOnly)){x.handled=!0;var z=E.fb("ButtonIcon");b.Ea("checkbox"),z.visible=!z.visible,typeof E._doClick=="function"&&E._doClick(x,E),b.eb("checkbox")}}},a}),Nh("CheckBox",function(a){a=cp(a),a=xl("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new Ri(0,1,0,0)});var y=xl(zn,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Ri(1),_buttonFillNormal:a._buttonFillNormal,_buttonStrokeNormal:a._buttonStrokeNormal,_buttonFillOver:a._buttonFillOver,_buttonStrokeOver:a._buttonStrokeOver,_buttonFillPressed:a._buttonFillPressed,_buttonStrokePressed:a._buttonStrokePressed,_buttonFillDisabled:a._buttonFillDisabled,mouseEnter:a.mouseEnter,mouseLeave:a.mouseLeave,actionDown:a.actionDown,actionUp:a.actionUp,actionCancel:a.actionCancel,actionMove:a.actionMove,click:a.click,_buttonClick:a.click});return a.mouseEnter=null,a.mouseLeave=null,a.actionDown=null,a.actionUp=null,a.actionCancel=null,a.actionMove=null,a.click=null,y}),Se.None=In=new sn(Se,"None",0),Se.Default=no=new sn(Se,"Default",0),Se.Vertical=Ti=new sn(Se,"Vertical",4),Se.Horizontal=Si=new sn(Se,"Horizontal",5),Se.Fill=On=new sn(Se,"Fill",3),Se.Uniform=vi=new sn(Se,"Uniform",1),Se.UniformToFill=Io=new sn(Se,"UniformToFill",2),Se.FlipVertical=yo=new sn(Se,"FlipVertical",1),Se.FlipHorizontal=ko=new sn(Se,"FlipHorizontal",2),Se.FlipBoth=er=new sn(Se,"FlipBoth",3),Se.make=xl,Se.getBuilders=function(){var a=new hi,y;for(y in Lg)if(y!==y.toLowerCase()){var x=Lg.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},Se.defineBuilder=Nh,Se.build=function(a,y,x){for(var E=[],b=2;ba&&(a+=360),a!==0){if(this.translate(y,x),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.ha[1]*a+this.ha[3]*E,z=this.ha[0]*-E+this.ha[2]*a,tt=this.ha[1]*-E+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*E,this.ha[1]=b,this.ha[2]=z,this.ha[3]=tt,this.translate(-y,-x)}},nd.className="STransform";function Wd(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}Wd.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},Wd.className="SGradient";function Pu(a,y,x){this.ownerDocument=a=y===void 0?We.document:y,this.cA="http://www.w3.org/2000/svg",a!==void 0&&(this.Oa=this.Ud("svg",{width:"1px",height:"1px",viewBox:"0 0 1 1"}),this.style.display="block",this.style.letterSpacing="normal",this.style.wordSpacing="normal",this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink")),this.hs=null,this.context=new $s(this,x)}Pu.prototype.resize=function(a,y,x,E){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=E+"px",this.Oa.setAttributeNS(null,"width",x+"px"),this.Oa.setAttributeNS(null,"height",E+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+x+" "+E),this.context.ww.firstElementChild.setAttributeNS(null,"width",x+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",E+"px"),!0):!1},Pu.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),he(y))for(var E in y)a.setAttributeNS(E==="href"?"http://www.w3.org/1999/xlink":"",E,y[E]);return x!==void 0&&(a.textContent=x),a},Pu.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Pu.prototype.focus=function(){this.Oa.focus()},Pu.prototype.mx=function(){this.ownerDocument=null},Vt.Object.defineProperties(Pu.prototype,{width:{get:function(){return this.Oa.width.baseVal.value},set:function(a){this.Oa.setAttribute("width",a+"px")}},height:{get:function(){return this.Oa.height.baseVal.value},set:function(a){this.Oa.setAttribute("height",a+"px")}},style:{get:function(){return this.Oa.style}}}),Pu.className="SVGSurface";function $s(a,y){this.Gv=a,this.svg=a.Oa,this.stack=[],this.nh=[],this.fillStyle="#000000",this.font="10px sans-serif",this.globalAlpha=1,this.lineCap="butt",this.lineDashOffset=0,this.lineJoin="miter",this.lineWidth=1,this.miterLimit=10,this.shadowBlur=0,this.shadowColor="rgba(0, 0, 0, 0)",this.shadowOffsetY=this.shadowOffsetX=0,this.Il=!1,this.strokeStyle="#000000",this.textAlign="start",this.clipInsteadOfFill=!1,this.Vg=this.Br=this.Ar=0,this.yd=this.ad=null,this.path=[],this.Yl={},this.Ct=!1,this.Yg=null,this.uj=0,this.rb=new nd,this.j=dp(this),this.Nj=dp(this,"gojs-diagram"),this.Hl=this.ti=null;var x=Uo++,E=this.Ud("clipPath",{id:"mainClip"+x});E.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=E,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(E),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function K1(a,y,x,E,b,z,tt){a.Nj===void 0?Kf(a,y,x,E,b,z,tt):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+E+", "+b+", "+z+", "+tt+")")}Ct=$s.prototype,Ct.arc=function(a,y,x,E,b,z,tt,rt){var at=2*Math.PI,lt=at-1e-6,ht=x*Math.cos(E),ft=x*Math.sin(E),vt=a+ht,xt=y+ft,Et=z?0:1;E=z?E-b:b-E,(1e-6E&&(E=E%at+at),E>lt?(this.path.push(["A",x,x,0,1,Et,a-ht,y-ft]),this.path.push(["A",x,x,0,1,Et,vt,xt])):1e-6=Math.PI),Et,a+x*Math.cos(b),y+x*Math.sin(b)])},Ct.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Ct.Se=function(a){this.addPath(this.path,this.rb,a||0)},Ct.bezierCurveTo=function(a,y,x,E,b,z){this.path.push(["C",a,y,x,E,b,z])},Ct.clearRect=function(){},Ct.clip=function(){this.Yl.clipPath=!0},Ct.closePath=function(){this.path.push(["z"])},Ct.createLinearGradient=function(a,y,x,E){var b=new Wd("linear");return b.x1=a,b.y1=y,b.x2=x,b.y2=E,b},Ct.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var x=this.eA;if(x[y])return"url(#"+x[y]+")";var E="PATTERN"+Uo++,b={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:E,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud($c,b)),this.svg.appendChild(a),x[y]=E,"url(#"+E+")"},Ct.createRadialGradient=function(a,y,x,E,b,z){var tt=new Wd("radial");return tt.x1=a,tt.y1=y,tt.r1=x,tt.x2=E,tt.y2=b,tt.r2=z,tt};function Q1(a,y,x,E,b,z,tt,rt,at){E=rt/E,b=at/b,z===0&&tt===0||a.rb.translate(z,tt),E===1&&b===1||a.rb.scale(E,b),y===0&&x===0||a.rb.translate(-y,-x)}Ct.drawImage=function(a,y,x,E,b,z,tt,rt,at){var lt="";a instanceof HTMLCanvasElement&&(lt=a.toDataURL()),a instanceof HTMLImageElement&&(lt=a.getAttribute("src"));var ht=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,E===void 0&&(z=y,tt=x,rt=E=ht,at=b=a),E=E||0,b=b||0,rt=rt||0,at=at||0,Q1(this,y,x,E,b,z||0,tt||0,rt,at),z={x:0,y:0,width:ht||E,height:a||b,href:lt},Ie.$(E,rt)&&Ie.$(b,at)?lt.toLowerCase().indexOf(".svg")===-1&<.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||E!==ht||b!==a)&&(E+=y,b+=x,z["clip-path"]="path('M "+y+","+x+" L "+E+" "+x+" L "+E+" "+b+" L "+y+" "+b+" z')"),Dg(this,$c,z,this.rb),this.addElement($c,z)},Ct.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),iv(this,this.Yl)},Ct.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Ct.fillRect=function(a,y,x,E){a=[a,y,x,E],a={x:a[0],y:a[1],width:a[2],height:a[3]},Dg(this,"fill",a,this.rb),this.addElement("rect",a)},Ct.ox=function(a,y,x,E){a={x:a,y,width:x,height:E},Dg(this,"fill",a,this.rb),iv(this,a),this.svg.prepend(this.Ud("rect",a))},Ct.fillText=function(a,y,x){a=[a,y,x],y=this.textAlign,y==="left"?y="start":y==="right"?y="end":y==="center"&&(y="middle"),y={x:a[1],y:a[2],style:"font: "+this.font,"text-anchor":y},Dg(this,"fill",y,this.rb),this.addElement("text",y,a[0])},Ct.lineTo=function(a,y){this.path.push(["L",a,y])},Ct.moveTo=function(a,y){this.path.push(["M",a,y])},Ct.quadraticCurveTo=function(a,y,x,E){this.path.push(["Q",a,y,x,E])},Ct.rect=function(a,y,x,E){this.path.push(["M",a,y],["L",a+x,y],["L",a+x,y+E],["L",a,y+E],["z"])},Ct.restore=function(){this.rb=this.stack.pop(),this.path=this.stack.pop();var a=this.stack.pop();this.fillStyle=a.fillStyle,this.font=a.font,this.globalAlpha=a.globalAlpha,this.lineCap=a.lineCap,this.lineDashOffset=a.lineDashOffset,this.lineJoin=a.lineJoin,this.lineWidth=a.lineWidth,this.miterLimit=a.miterLimit,this.shadowBlur=a.shadowBlur,this.shadowColor=a.shadowColor,this.shadowOffsetX=a.shadowOffsetX,this.shadowOffsetY=a.shadowOffsetY,this.strokeStyle=a.strokeStyle,this.textAlign=a.textAlign,this.bk=a.bk},Ct.save=function(){this.stack.push({fillStyle:this.fillStyle,font:this.font,globalAlpha:this.globalAlpha,lineCap:this.lineCap,lineDashOffset:this.lineDashOffset,lineJoin:this.lineJoin,lineWidth:this.lineWidth,miterLimit:this.miterLimit,shadowBlur:this.shadowBlur,shadowColor:this.shadowColor,shadowOffsetX:this.shadowOffsetX,shadowOffsetY:this.shadowOffsetY,strokeStyle:this.strokeStyle,textAlign:this.textAlign,bk:this.bk});for(var a=[],y=0;yht.offset?1:-1}),b=0;bx?(this.scale(x/a,1),this.translate((a-x)/2,0)):x>a&&(this.scale(1,a/x),this.translate(0,(x-a)/2)),this.Hm?this.clip():this.fill(y),a>x?(this.translate(-(a-x)/2,0),this.scale(1/(x/a),1)):x>a&&(this.translate(0,-(x-a)/2),this.scale(1,1/(a/x)))}else this.Hm?this.clip():this.fill(y)},Ct.jk=function(){this.Hm||this.stroke()},Ct.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Ct.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Ct.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(m5),a.lineDashOffset=0)},Ct.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Ct.Hs=function(){},Vt.Object.defineProperties(id.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(a){this.ct!==a&&(this.ct=this.Z.fillStyle=a)}},font:{get:function(){return this.Z.font},set:function(a){this.dt!==a&&(this.dt=this.Z.font=a)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(a){this.Z.globalAlpha=a}},lineCap:{get:function(){return this.Z.lineCap},set:function(a){this.Z.lineCap=a}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(a){this.Z.lineDashOffset=a}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(a){this.Z.lineJoin=a}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(a){this.Z.lineWidth=a}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(a){this.Z.miterLimit=a}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(a){this.Z.shadowBlur=a}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(a){this.Z.shadowColor=a}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(a){this.Z.shadowOffsetX=a}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(a){this.Z.shadowOffsetY=a}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(a){this.et!==a&&(this.et=this.Z.strokeStyle=a)}},textAlign:{get:function(){return this.Z.textAlign},set:function(a){this.Z.textAlign=a}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(a){this.Z.imageSmoothingEnabled=a}},filter:{get:function(){return this.Z.filter},set:function(a){this.Z.filter=a===""?"none":a}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(a){this.Hm=a}}});var m5=Object.freeze([]);id.className="CanvasSurfaceContext";function Qf(){this.F=this.o=this.u=this.j=0}Qf.className="ColorNumbers";function qo(a,y){kg||(hv(),kg=!0),ao(this),this._isFrozen=!1,a===void 0?(this.na=kh,this.xk="black"):typeof a=="string"?(this.na=kh,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===ch?(this.Qd=ya,this.Lk=Ls):this.Lk=a===wl?this.Qd=Wo:this.Qd=ir,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}qo.prototype.copy=function(){var a=new qo;return a.na=this.na,a.xk=this.xk,a.Qd=this.Qd.J(),a.Lk=this.Lk.J(),a.Gr=this.Gr,a.Xp=this.Xp,this.we!==null&&(a.we=this.we.copy()),a.cr=this.cr,a},Ct=qo.prototype,Ct.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Ct.ka=function(){return Object.isFrozen(this)&&Xt("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Ct.qb=function(a){a.classType===qo&&(this.type=a)},Ct.toString=function(){var a="Brush(";if(this.type===kh)a+=this.color;else if(a=this.type===ch?a+"Linear ":this.type===wl?a+"Radial ":this.type===Tg?a+"Pattern ":a+"(unknown) ",a+=this.start+" "+this.end,this.colorStops!==null)for(var y=this.colorStops.iterator;y.next();)a+=" "+y.key+":"+y.value;return a+")"},Ct.addColorStop=function(a,y){return this._isFrozen&&dn(this),(typeof a!="number"||!isFinite(a)||1a)&&De(a,"0 <= loc <= 1",qo,"addColorStop:loc"),this.we===null&&(this.we=new hi),this.we.add(a,y),this.na===kh&&(this.type=ch),this.xe=null,this},Ct.Vz=function(a,y){if(this._isFrozen&&dn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Og:y,this.type===kh)hh(this.color),this.color=bg(a,y);else if((this.type===ch||this.type===wl)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)hh(x.value),this.addColorStop(x.key,bg(a,y));return this};function $1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Og:x,hh(a),bg(y,x)}Ct.Wy=function(a,y){if(this._isFrozen&&dn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Og:y,this.type===kh)hh(this.color),this.color=bg(-a,y);else if((this.type===ch||this.type===wl)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)hh(x.value),this.addColorStop(x.key,bg(-a,y));return this};function ty(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Og:x,hh(a),bg(-y,x)}function rv(a,y,x){hh(a),a=pr.j;var E=pr.u,b=pr.o,z=pr.F;return hh(y),x===void 0&&(x=.5),"rgba("+Math.round((pr.j-a)*x+a)+", "+Math.round((pr.u-E)*x+E)+", "+Math.round((pr.o-b)*x+b)+", "+Math.round((pr.F-z)*x+z)+")"}Ct.Gx=function(){if(this.type===kh)return Bg(this.color);if((this.type===ch||this.type===wl)&&this.colorStops!==null){var a=this.colorStops;if(this.type===wl)return Bg(a.first().value);if(a.get(.5)!==null)return Bg(a.get(.5));if(a.count===2)return a=a.Fa(),Bg(rv(a[0].value,a[1].value));for(var y=a.iterator,x=-1,E=-1,b=1,z=1;y.next();){var tt=y.key,rt=Math.abs(.5-y.key);b>z&&rt=b&&rtE&&(z=x,x=E,E=z,z=b),b=E-x,Bg(rv(a.get(x),a.get(E),1-z/b))}return!1};function Bg(a){return a?a instanceof qo?a.Gx():(hh(a),128>(299*pr.j+587*pr.u+114*pr.o)/1e3):!1}function bg(a,y){switch(y){case Og:y=100*sv(pr.j);var x=100*sv(pr.u),E=100*sv(pr.o);return As.j=.4124564*y+.3575761*x+.1804375*E,As.u=.2126729*y+.7151522*x+.072175*E,As.o=.0193339*y+.119192*x+.9503041*E,As.F=pr.F,y=uv(As.j/Ng[0]),x=uv(As.u/Ng[1]),E=uv(As.o/Ng[2]),Hu.j=116*x-16,Hu.u=500*(y-x),Hu.o=200*(x-E),Hu.F=As.F,Hu.j=Math.min(100,Math.max(0,Hu.j+100*a)),a=(Hu.j+16)/116,y=a-Hu.o/200,As.j=Ng[0]*ey(Hu.u/500+a),As.u=Ng[1]*(Hu.j>fp*cv?Math.pow(a,3):Hu.j/fp),As.o=Ng[2]*ey(y),As.F=Hu.F,a=-.969266*As.j+1.8760108*As.u+.041556*As.o,y=.0556434*As.j+-.2040259*As.u+1.0572252*As.o,pr.j=255*lv((3.2404542*As.j+-1.5371385*As.u+-.4985314*As.o)/100),pr.u=255*lv(a/100),pr.o=255*lv(y/100),pr.F=As.F,pr.j=Math.round(pr.j),255pr.j&&(pr.j=0),pr.u=Math.round(pr.u),255pr.u&&(pr.u=0),pr.o=Math.round(pr.o),255pr.o&&(pr.o=0),"rgba("+pr.j+", "+pr.u+", "+pr.o+", "+pr.F+")";case ny:return av(),gl.o=Math.min(100,Math.max(0,gl.o+100*a)),"hsla("+gl.j+", "+gl.u+"%, "+gl.o+"%, "+gl.F+")";default:Xt("Unknown color space: "+y)}}function hh(a){kg||(hv(),kg=!0);var y=dv;if(y!==null){y.clearRect(0,0,1,1),y.fillStyle="#000000";var x=y.fillStyle;y.fillStyle=a,y.fillStyle!==x?(y.fillRect(0,0,1,1),a=y.getImageData(0,0,1,1).data,pr.j=a[0],pr.u=a[1],pr.o=a[2],pr.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,pr.j=0,pr.u=0,pr.o=0,pr.F=1)}}function av(){var a=pr.j/255,y=pr.u/255,x=pr.o/255,E=Math.max(a,y,x),b=Math.min(a,y,x),z=E-b;if(b=(E+b)/2,z===0)var tt=a=0;else{switch(E){case a:tt=(y-x)/z%6;break;case y:tt=(x-a)/z+2;break;case x:tt=(a-y)/z+4}tt*=60,0>tt&&(tt+=360),a=z/(1-Math.abs(2*b-1))}gl.j=Math.round(tt),gl.u=Math.round(100*a),gl.o=Math.round(100*b),gl.F=pr.F}function sv(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function lv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function uv(a){return a>cv?Math.pow(a,1/3):(fp*a+16)/116}function ey(a){var y=a*a*a;return y>cv?y:(116*a-16)/fp}function Gd(a,y){typeof a!="string"&&(a instanceof qo||Xt("Value for "+y+" must be a color string or a Brush, not "+a))}function hv(){dv=zr?new jl(null,void 0,{willReadFrequently:!0}).context:null}Vt.Object.defineProperties(qo.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&dn(this,a),this.na=a,this.start.Mc()&&(a===ch?this.start=ya:a===wl&&(this.start=Wo)),this.end.Mc()&&(a===ch?this.end=Ls:a===wl&&(this.end=Wo)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&dn(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&dn(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&dn(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&dn(this,a),0>a&&De(a,">= zero",qo,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&dn(this,a),0>a&&De(a,">= zero",qo,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&dn(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&dn(this,a),this.cr=a,this.xe=null}}}),qo.prototype.isDark=qo.prototype.Gx,qo.prototype.darkenBy=qo.prototype.Wy,qo.prototype.lightenBy=qo.prototype.Vz,qo.prototype.addColorStop=qo.prototype.addColorStop;var cv=216/24389,fp=24389/27,Ng=[95.047,100,108.883],dv=null,pr=new Qf,gl=new Qf,As=new Qf,Hu=new Qf,kg=!1;qo.className="Brush";var kh;qo.Solid=kh=new sn(qo,"Solid",0);var ch;qo.Linear=ch=new sn(qo,"Linear",1);var wl;qo.Radial=wl=new sn(qo,"Radial",2);var Tg;qo.Pattern=Tg=new sn(qo,"Pattern",4);var Og;qo.Lab=Og=new sn(qo,"Lab",5);var ny;qo.HSL=ny=new sn(qo,"HSL",6),qo.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var x=Math.abs(y-a);y=Math.floor(a+Math.random()*x).toString(16);var E=Math.floor(a+Math.random()*x).toString(16);return a=Math.floor(a+Math.random()*x).toString(16),2>y.length&&(y="0"+y),2>E.length&&(E="0"+E),2>a.length&&(a="0"+a),"#"+y+E+a},qo.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;kg||(hv(),kg=!0);var y=dv;if(y===null)return!0;y.fillStyle="#000000";var x=y.fillStyle;return y.fillStyle=a,y.fillStyle!==x?!0:(y.fillStyle="#FFFFFF",x=y.fillStyle,y.fillStyle=a,y.fillStyle!==x)},qo.lighten=function(a){return $1(a)},qo.lightenBy=$1,qo.darken=function(a){return ty(a)},qo.darkenBy=ty,qo.mix=rv,qo.isDark=Bg;function la(){this.xa="Base"}la.prototype.measure=function(){},la.prototype.Yz=function(a,y,x,E,b){a.measure(y,x,E,b)},la.prototype.arrange=function(){},la.prototype.Ly=function(a,y,x,E,b,z){a.arrange(y,x,E,b,z)},la.prototype.iA=function(a){a.Uj()},la.prototype.gc=function(){},Vt.Object.defineProperties(la.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return zn}}}),la.prototype.remeasureObject=la.prototype.iA,la.prototype.arrangeElement=la.prototype.Ly,la.prototype.measureElement=la.prototype.Yz,la.className="PanelLayout";function pp(){this.xa="Base"}Yt(pp,la),pp.prototype.measure=function(a,y,x,E,b,z,tt){var rt=E.length;a=dh(a);for(var at=0;atfi&&(va=Math.max(fi-Bc,0));var Zm=xn.oa===0;xn.oc=xn.oc+va,xn.actual=xn.oa+va,fi=Math.max(fi-(va+(Zm?Bc:0)),0)}if(Us.columnSpan===1&&(gs===In||gs===Ti)){xn=a.Eb(ds);var j0=xn.Wc();va=Math.max(dd-xn.actual,0),va+j0>ni&&(va=Math.max(ni-j0,0));var H1=xn.oa===0;xn.oc=xn.oc+va,xn.actual=xn.oa+va,ni=Math.max(ni-(va+(H1?j0:0)),0)}Dc&&Us.Uj()}}}}}Bn(Jt);var Qu=0,ph=0;z=a.columnCount;for(var eg=0;eg=a.rowCount);Qh++)xn=a.Fb(Gr.row+Qh),va=0,va=gs===On||gs===Ti?Math.max(xn.minimum,vu[Gr.row+Qh]===0?xn.maximum:Math.min(vu[Gr.row+Qh],xn.maximum)):Math.max(xn.minimum,isNaN(xn.Hc)?xn.maximum:Math.min(xn.Hc,xn.maximum)),yh.height+=va,rl+=xn.minimum;for(var Zl=1;Zl=a.columnCount);Zl++)xn=a.Eb(Gr.column+Zl),va=0,va=gs===On||gs===Si?Math.max(xn.minimum,Fl[Gr.column+Zl]===0?xn.maximum:Math.min(Fl[Gr.column+Zl],xn.maximum)):Math.max(xn.minimum,isNaN(xn.Hc)?xn.maximum:Math.min(xn.Hc,xn.maximum)),yh.width+=va,Xm+=xn.minimum;za.width+=yh.width,za.height+=yh.height;var gf=Gr.margin,Oc=gf.right+gf.left,R0=gf.top+gf.bottom;Gr.measure(za.width,za.height,Xm,rl);for(var ff=Gr.measuredBounds,Bu=Math.max(ff.width+Oc,0),md=Math.max(ff.height+R0,0),jc=0,pf=0;pf=a.rowCount);pf++)xn=a.Fb(Gr.row+pf),jc+=xn.total||0;if(jc=Jh)&&!(Gr.row+Ah>=a.rowCount);Ah++){xn=a.Fb(Gr.row+Ah);var _h=xn.oa||0,vd=qh(Gr,xn,qu);xn.actual=Math.min(xn.maximum,_h+vd),xn.oa!==_h&&(Jh-=xn.oa-_h)}for(;0yu&&(xn.actual=Math.min(xn.maximum,yu+Jh),xn.oa!==yu&&(Jh-=xn.oa-yu)),xn.index===0)break;xn=a.Fb(xn.index-1)}}for(var og=0,$h=0;$h=a.columnCount);$h++)xn=a.Eb(Gr.column+$h),og+=xn.total||0;if(og=rg)&&!(Gr.column+yd>=a.columnCount);yd++){xn=a.Eb(Gr.column+yd);var H0=xn.oa||0,Z1=Ch(Gr,xn,G1);xn.actual=Math.min(xn.maximum,H0+Z1),xn.oa!==H0&&(rg-=xn.oa-H0)}for(;0Km&&(xn.actual=Math.min(xn.maximum,Km+rg),xn.oa!==Km&&(rg-=xn.oa-Km)),xn.index===0)break;xn=a.Eb(xn.index-1)}}}}Bn(ne),Nn.free(yh),Nn.free(za),vu!==void 0&&Bn(vu),Fl!==void 0&&Bn(Fl);var ag=0,sg=0,Qm=a.desiredSize,f5=a.maxSize;gs=Ts(a,!0);var W0=ph=Qu=0,G0=0;z=a.columnCount;for(var Jm=0;Jm=a.rowCount);xn++){var qi=a.Fb(Jt+xn);qi.oa!==0&&(kt.height+=qi.total)}for(xn=1;xn=a.columnCount);xn++)qi=a.Eb(se+xn),qi.oa!==0&&(kt.width+=qi.total);var Yi=ye.oa+kt.width,Ho=ne.oa+kt.height;xn=rt,qi=at;var ur=Yi,ma=Ho,xa=rt,cs=at,va=Yi,Vh=Ho;rt+Yi>x.width&&(va=Math.max(x.width-rt,0)),at+Ho>x.height&&(Vh=Math.max(x.height-at,0));var ta=ui.alignment;if(ta.Xb()){ta=a.defaultAlignment,ta.sb()||(ta=Wo);var fu=ta.x,ds=ta.y,Yh=ta.offsetX;ta=ta.offsetY;var ml=ye.alignment,Wl=ne.alignment;ml.sb()&&(fu=ml.x,Yh=ml.offsetX),Wl.sb()&&(ds=Wl.y,ta=Wl.offsetY)}else fu=ta.x,ds=ta.y,Yh=ta.offsetX,ta=ta.offsetY;(isNaN(fu)||isNaN(ds))&&(ds=fu=.5,ta=Yh=0),ml=Un.width,Wl=Un.height;var nl=ui.margin,Us=nl.left+nl.right,Dc=nl.top+nl.bottom,pu=uu(ui,ne,ye,!1);!isNaN(ui.desiredSize.width)||pu!==On&&pu!==Si||(ml=Math.max(Yi-Us,0)),!isNaN(ui.desiredSize.height)||pu!==On&&pu!==Ti||(Wl=Math.max(Ho-Dc,0)),Yi=ui.maxSize,Ho=ui.minSize,ml=Math.min(Yi.width,ml),Wl=Math.min(Yi.height,Wl),ml=Math.max(Ho.width,ml),Wl=Math.max(Ho.height,Wl),Yi=Wl+Dc,xn+=ur*fu-(ml+Us)*fu+Yh+nl.left,qi+=ma*ds-Yi*ds+ta+nl.top,ui.visible&&(nr(xa,cs,va,Vh,xn,qi,Un.width,Un.height)?ui.arrange(xn,qi,ml,Wl):ui.arrange(xn,qi,ml,Wl,new on(xa,cs,va,Vh)))}}}for(Nn.free(kt),a=0;a=x&&(x=1);var E=a.gridCellSize,b=E.width;E=E.height;var z=a.naturalBounds,tt=a.actualBounds,rt=z.width,at=z.height,lt=Math.ceil(rt/b),ht=Math.ceil(at/E),ft=a.gridOrigin,vt=ft.x;ft=ft.y,y.save(),y.beginPath(),y.rect(0,0,rt,at),y.clip(),y.Se();for(var xt=[],Et=a.O.s,Lt=Et.length,Wt=0;Wtne)){kt=pv(kt.figure);for(var se=0;sene&&Jt.push(ye))}}}}for(Et=a.O.s,Lt=Et.length,Wt=0;Wtb*kt*x))){if(ne=Ge.segmentIndex,(!isFinite(ne)||isNaN(ne))&&(ne=0),0>ne&&(ne=kt-Math.min(-ne,kt)),ne=Math.round(ne%kt),kt=Ge.opacity,se=1,kt!==1){if(kt===0)continue;se=y.globalAlpha,y.globalAlpha=se*kt}ye=xt[Wt];var ni=!1,fi=Ge.strokeDashArray;if(fi!==null&&(ni=!0,y.js(fi,Ge.strokeDashOffset)),Ge.figure==="LineV"&&Ge.stroke!==null&&0y)return a%y===x;if(a%y!==x)return!1;y=E.length;for(var b=0;bft)Jt.measure(1/0,1/0,0,0),ne=Jt.measuredBounds,x.ed(ne),xt.push(ne);else{var se=Jt.segmentIndex,ye=Jt.segmentFraction,Ge=Jt.alignmentFocus;Ge.Mc()&&(Ge=Wo);var ni=Jt.segmentOrientation,fi=Jt.segmentOffset;if(isNaN(se)){var ui=at.ua;ne=ii(),ui.Qu(ye,ne);var Un=Ot.allocAt(ne[0],ne[1]);if(Un.add(at.i(0)),ui.type===Qn.j?Un.offset(-ui.startX,-ui.startY):(ui=ui.figures.first(),ui!==null&&Un.offset(-ui.startX,-ui.startY)),ui=ne[2],ni!==Ss){var xn=at.computeAngle(Jt,ni,ui);Jt.Kb=xn}xn=Un.x-y.x;var qi=Un.y-y.y;Ot.free(Un),Bn(ne)}else if(se<-ft||se>=ft)ne=Ot.alloc(),at.vg(),at.computeMidPoint(ne),ui=at.midAngle,ni!==Ss&&(xn=at.computeAngle(Jt,ni,ui),Jt.Kb=xn),xn=ne.x-y.x,qi=ne.y-y.y,Ot.free(ne);else{if(xn=0,0<=se?(qi=ht.M(se),ne=seYi+10?0<=se?ui.ab(qi):qi.ab(ui):Yi>Un+10?0<=se?ne.ab(xn):xn.ab(ne):0<=se?ui.ab(xn):xn.ab(ui)}else ui=0<=se?qi.ab(ne):ne.ab(qi);ni!==Ss&&(xn=at.computeAngle(Jt,ni,ui),Jt.Kb=xn),xn=qi.x+(ne.x-qi.x)*ye-y.x,qi=qi.y+(ne.y-qi.y)*ye-y.y}Jt.measure(1/0,1/0,0,0),ne=Jt.measuredBounds,Un=Jt.naturalBounds;var Ho=0;Jt instanceof lo&&(Ho=Jt.strokeWidth),Yi=Un.width+Ho;var ur=Un.height+Ho;Et.reset(),Et.translate(-ne.x,-ne.y),Et.scale(Jt.scale,Jt.scale),Et.rotate(ni===Ss?Jt.angle:ui,Yi/2,ur/2),ni!==u0&&ni!==c0||Et.rotate(90,Yi/2,ur/2),ni!==h0&&ni!==d0||Et.rotate(-90,Yi/2,ur/2),ni===em&&(45ui||225ui)&&Et.rotate(-ui,Yi/2,ur/2),Un=new on(0,0,Yi,ur),Lt.xi(Un,Ge),Et.Ga(Lt),Ge=-Lt.x+Ho/2*Jt.scale,Jt=-Lt.y+Ho/2*Jt.scale,Wt.assign(fi),Ho=isNaN(fi.x);var ma=isNaN(fi.y);if(Ho||ma){Yi=Yi/2+3,ur=ur/2+3;var xa=45<=ui&&135>=ui,cs=225<=ui&&315>=ui;ni===Ss&&(xa||cs)?(Wt.x=ma?Yi:fi.y,Wt.y=Ho?ur:fi.x,xa?0<=se||isNaN(se)&&.5>ye||!Ho||(Wt.y=-ur):cs&&((0<=se||isNaN(se)&&.5>ye)&&Ho&&(Wt.y=-ur),ma&&(Wt.x=-Yi))):(Ho&&(Wt.x=0<=se||isNaN(se)&&.5>ye?Yi:-Yi),ma&&(Wt.y=-ur),Wt.rotate(ui))}else Wt.rotate(ui);xn+=Wt.x,qi+=Wt.y,Un.set(ne),Un.h(xn+Ge,qi+Jt,ne.width,ne.height),xt.push(Un),x.ed(Un)}}if(tt!==null)for(E=tt.labelNodes;E.next();)E.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),ca(b,x.width||0,x.height||0),vo.free(Et),Ot.free(Lt),Ot.free(Wt)}}}},Pp.prototype.arrange=function(a,y){var x=y.length;if(a instanceof jo||a instanceof Vn){var E=a,b=null;a instanceof jo&&(b=a,E=b.adornedPart);var z=a instanceof jo?null:E.path,tt=a.j;if(tt.length!==0){var rt=0;if(z!==null&&rt=x)Et=Ot.alloc(),xt=ft,Wt=Et,xt.vg(),xt.computeMidPoint(Wt),xt=ft.midAngle,lt!==Ss&&(ft=ft.computeAngle(tt,lt,xt),tt.angle=ft),ft=Et.x,Wt=Et.y,Ot.free(Et);else{if(Lt=0,0<=rt?(Et=y.s[rt],Wt=rtJt+10?0<=rt?xt.ab(Et):Et.ab(xt):Jt>kt+10?0<=rt?Wt.ab(Lt):Lt.ab(Wt):0<=rt?xt.ab(Lt):Lt.ab(xt)}else xt=0<=rt?Et.ab(Wt):Wt.ab(Et);lt!==Ss&&(ft=ft.computeAngle(tt,lt,xt),tt.angle=ft),ft=Et.x+(Wt.x-Et.x)*at,Wt=Et.y+(Wt.y-Et.y)*at}if(vt.ys())tt.location=new Ot(ft,Wt);else{vt.Mc()&&(vt=Wo),Et=vo.alloc(),Et.reset(),Et.scale(tt.scale,tt.scale),Et.rotate(tt.angle,0,0);var ne=tt.naturalBounds;Lt=on.allocAt(0,0,ne.width,ne.height),kt=Ot.alloc(),kt.xi(Lt,vt),Et.Ga(kt),vt=-kt.x,Jt=-kt.y;var se=ne.width,ye=ne.height;ne=Ot.alloc(),ne.assign(ht);var Ge=isNaN(ht.x),ni=isNaN(ht.y);if(Ge||ni){se=se/2+3,ye=ye/2+3;var fi=45<=xt&&135>=xt,ui=225<=xt&&315>=xt;lt===Ss&&(fi||ui)?(ne.x=ni?se:ht.y,ne.y=Ge?ye:ht.x,fi?0<=rt||isNaN(rt)&&.5>at||!Ge||(ne.y=-ye):ui&&((0<=rt||isNaN(rt)&&.5>at)&&Ge&&(ne.y=-ye),ni&&(ne.x=-se))):(Ge&&(ne.x=0<=rt||isNaN(rt)&&.5>at?se:-se),ni&&(ne.y=-ye),ne.rotate(xt))}else ne.rotate(xt);ft+=ne.x,Wt+=ne.y,Et.pp(Lt),vt+=Lt.x,Jt+=Lt.y,rt=Ot.allocAt(ft+vt,Wt+Jt),tt.move(rt),Ot.free(rt),Ot.free(ne),Ot.free(kt),on.free(Lt),vo.free(Et)}}b!==null?b.Ul(!1):E.Ul(!1),E=by(a),a.location.h(a.position.x+E.x,a.position.y+E.y),Ot.free(E)}};function iy(a,y,x,E){if(dl(E)!==!1){var b=E.strokeWidth;b===0&&a instanceof jo&&a.type===zn.Link&&a.adornedObject instanceof lo&&(b=a.adornedObject.strokeWidth),b*=E.Ca,a instanceof Vn&&a.ua!==null?(a=a.geometry.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):a instanceof jo&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):E.Ge(-(b/2),-(b/2),y+b,x+b),b=E.desiredSize,b.w()||E.ua===null?E.dc.h(0,0,b.width,b.height):E.dc.assign(E.ua.bounds),ra(E,!1)}}function qf(){this.xa="Base"}Yt(qf,la),qf.prototype.measure=function(a,y,x,E,b,z,tt){var rt=a.Pb();a.graduatedBounds=[];var at=rt.margin,lt=at.right+at.left,ht=at.top+at.bottom;rt.measure(y,x,z,tt);var ft=rt.measuredBounds,vt=new on(-at.left,-at.top,Math.max(ft.width+lt,0),Math.max(ft.height+ht,0));a.graduatedBounds.push(vt),b.assign(vt);for(var xt=rt.geometry,Et=rt.strokeWidth,Lt=xt.flattenedSegments,Wt=xt.flattenedLengths,kt=xt.flattenedTotalLength,Jt=Lt.length,ne=0,se=0,ye=ii(),Ge=0;GeYi&&(Yi+=360),fi.push(Yi)}ne=xn,se=qi}ye.push(fi)}if(a.graduatedIntervals===null){for(var Ho=[],ur=a.O.s,ma=ur.length,xa=0;xaVh)){for(var ta=0;taVh&&va.push(ds)}}}}}a.graduatedIntervals=Ho}var Yh=a.graduatedIntervals,ml=a.O.s,Wl=ml.length,nl=0,Us=0,Dc=kt;a.graduatedMarks=[];for(var pu,af=0;afO0*gs*kt/a.graduatedRange&&il.graduatedSkip===null)){var tg=Wt[0][0],Fu=0,Vs=0;Us=kt*il.graduatedStart-1e-4,Dc=kt*il.graduatedEnd+1e-4;var dd=O0*gs,ol=a.graduatedTickBase;if(ola.graduatedMin+dd&&(ol-=Math.floor((ol-a.graduatedMin)/dd)*dd);for(var Zm=Yh[af],j0=ol,H1=1e-6*a.graduatedMax,Qu=1;ol<=a.graduatedMax+H1;Qu++){t:{for(var ph=Zm.length,eg=0;eg-sf){var Nc=!1;break t}}Nc=!0}if(Nc&&(ol>a.graduatedMax&&(ol=a.graduatedMax),il.graduatedSkip===null||il instanceof cr&&!il.graduatedSkip(ol,il)||il instanceof lo&&!il.graduatedSkip(ol,il))&&(nl=(ol-a.graduatedMin)*kt/a.graduatedRange,nl>kt&&(nl=kt),Us<=nl&&nl<=Dc)){for(var Ju=ye[Fu][Vs],Xh=Wt[Fu][Vs];Futg&&Vsmh&&.4995mh?0mh||.9995ng){var uf=1-Math.abs(.5-mh);Ju=(mu*uf+Du*(1-uf))%360;break t}}}Ju=mu}if(il instanceof cr){var iu="";il.graduatedFunction!==null?(iu=il.graduatedFunction(ol,il),iu=iu!=null?iu.toString():""):iu=(+ol.toFixed(2)).toString(),iu!==""&&pu.push({$l:lf,angle:Ju,text:iu})}else pu.push({$l:lf,angle:Ju})}ol=j0+Qu*dd}}}a.graduatedMarks.push(pu)}Bn(ye);var za=a.graduatedMarks;if(za!==null)for(var z0=E.length,Is=0;Isou;ou++){switch(ou){case 0:Xs.h(yh,vu);break;case 1:Xs.h(yh+hf,vu);break;case 2:Xs.h(yh,vu+pd);break;case 3:Xs.h(yh+hf,vu+pd)}Xs.rotate(Gr+ea.angle),Xs.offset(Ym,df),cf===0&&ou===0?Fl.h(Xs.x,Xs.y,0,0):Fl.Ye(Xs),Xs.offset(-Ym,-df),Xs.rotate(-Gr-ea.angle)}Ot.free(Xs),vh.graduatedBounds!==null&&vh.graduatedBounds.push(Fl),zo(Kh,Fl.x,Fl.y,Fl.width,Fl.height)}else if(ea instanceof cr){var Gl=a,Xm=b;Gl.temporaryTextBlock===null&&(Gl.temporaryTextBlock=new cr);var rl=Gl.temporaryTextBlock;yy(rl,ea);var Qh=ea.alignmentFocus;Qh.Mc()&&(Qh=ya);for(var Zl=ea.segmentOrientation,gf=ea.segmentOffset,Oc=new on,R0=0,ff=0,Bu=0,md=0,jc=0,pf=Ms.length,Jh=0;JhBu||225Bu)&&yu.rotate(-Bu,_h/2,vd/2);var og=on.allocAt(0,0,_h,vd),$h=Ot.alloc();$h.xi(og,Qh),yu.Ga($h);var rg=-$h.x,G1=-$h.y,Ch=Ot.alloc();Ch.assign(gf),isNaN(Ch.x)&&(Ch.x=_h/2+3),isNaN(Ch.y)&&(Ch.y=-(vd/2+3)),Ch.rotate(Bu),R0+=Ch.x+rg,ff+=Ch.y+G1;var yd=new on(R0,ff,qh.width,qh.height),H0=new on(qh.x,qh.y,qh.width,qh.height),Z1=new on(Ah.x,Ah.y,Ah.width,Ah.height);qu.Sz=md,qu.lineCount=rl.lineCount,qu.lines=[rl.Cb,rl.Ih,rl.df,rl.Le,rl.Qc,rl.Qb,rl.ze],qu.actualBounds=yd,qu.measuredBounds=H0,qu.naturalBounds=Z1,Jh===0?Oc.assign(yd):Oc.ed(yd),Ot.free(Ch),Ot.free($h),on.free(og),vo.free(yu)}Gl.graduatedBounds!==null&&Gl.graduatedBounds.push(Oc),zo(Xm,Oc.x,Oc.y,Oc.width,Oc.height)}ra(ea,!1)}}},qf.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var E=a.Pb(),b=a.graduatedMarks;if(b!==null){var z=a.graduatedBounds,tt=0,rt=z[tt];tt++,E!==null&&E.arrange(rt.x-x.x,rt.y-x.y,rt.width,rt.height);for(var at=y.length,lt=0;lt=tt&&(tt=1);for(var rt=z.actualBounds,at=a.O.s,lt=a.graduatedMarks,ht=at.length,ft=0;fta.graduatedTickUnit*vt.interval*z.geometry.flattenedTotalLength/a.graduatedRange*tt&&vt.graduatedSkip===null)){var Lt=vt.measuredBounds,Wt=vt.strokeWidth*vt.scale,kt=vt.alignmentFocus;kt.Mc()&&(kt=ya);for(var Jt=0;Jttt.height)continue}else if(lt.position>tt.width)continue;var ht=lt.separatorStrokeWidth;isNaN(ht)&&(ht=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var ft=lt.separatorStroke;if(ft===null&&(ft=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ht!==0&&ft!==null){Hr(a,y,ft,!1,!1,tt,z),ft=!1;var vt=lt.separatorDashArray;vt===null&&(vt=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),vt!==null&&(ft=!0,y.js(vt,0)),y.beginPath(),vt=lt.position+ht,x?vt>tt.height&&(ht-=vt-tt.height):vt>tt.width&&(ht-=vt-tt.width),lt=lt.position+ht/2,y.lineWidth=ht,ht=a.yb,x?(lt+=ht.top,vt=tt.width-ht.right,y.moveTo(ht.left,lt),y.lineTo(vt,lt)):(lt+=ht.left,vt=tt.height-ht.bottom,y.moveTo(lt,ht.top),y.lineTo(lt,vt)),y.stroke(),y.Se(),ft&&y.fs()}}}}function Ip(a,y,x,E,b){for(var z=E.length,tt=a.actualBounds,rt=a.naturalBounds,at=ry(a,!0),lt=ry(a,!1),ht=0;htvt)){var xt=ft.Wc(),Et=ft.separatorStrokeWidth;isNaN(Et)&&(Et=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Lt=ft.separatorStroke;Lt===null&&(Lt=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Lt===null||ft.index===(x?at:lt))&&(Et=0),xt-=Et,Et=ft.position+Et,xt+=ft.actual,Et+xt>vt&&(xt=vt-Et),0>=xt||(vt=a.yb,Hr(a,y,ft.background,!0,!1,rt,tt),x?y.fillRect(vt.left,Et+vt.top,tt.width-(vt.left+vt.right),xt):y.fillRect(Et+vt.left,vt.top,xt,tt.height-(vt.top+vt.bottom)))}}}}function ry(a,y){for(var x=y?a.rowCount:a.columnCount,E=0;EE&&b.set(Et),Ot.free(Et)),Ot.free(ht),z&&b.transform(tt),lt},Ct.Gj=function(){for(var a=this.O.s,y=a.length,x=0;xx||z>E)&&(this.v(),this.measure(y>x?x:y,z>E?E:z,0,0));break;case On:this.v(!0),this.measure(x+rt,E+tt,0,0);break;case Si:this.v(!0),this.measure(x+rt,z+tt,0,0);break;case Ti:this.v(!0),this.measure(y+rt,E+tt,0,0)}}this.na.arrange(this,b,this.jg)}},Ct.gh=function(a){var y=this.naturalBounds,x=dh(this);if(nr(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var E=y.length,b=Ot.allocAt(0,0);E--;){var z=y[E];if((z.visible||z===x)&&(Ai(b.set(a),z.transform),z.ca(b)))return Ot.free(b),!0}return Ot.free(b),!(this.Ma===null&&this.areaBackground===null)}return!1},Ct.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,E=0;Evt.width||ft.y>vt.height||0>ft.x+ft.width||0>ft.y+ft.height||(ft=ht,ht=ht instanceof zn?ht:null,vt=vo.alloc(),vt.set(tt),(ht!==null?ht.Cf(a,y,x,E,b,vt):pa(ft,a,E,vt))&&(y!==null&&(ft=y(ft)),ft===null||x!==null&&!x(ft)||b.add(ft)),vo.free(vt))}}return z===void 0&&vo.free(tt),E}return z===void 0&&vo.free(tt),!1};function mv(a,y,x,E){for(var b=a.O.s,z=b.length;z--;){var tt=b[z];if(tt.visible){var rt=tt.actualBounds,at=a.naturalBounds;rt.x>at.width||rt.y>at.height||0>rt.x+rt.width||0>rt.y+rt.height||(tt instanceof zn&&mv(tt,y,x,E),y!==null&&(tt=y(tt)),tt===null||x!==null&&!x(tt)||E.add(tt))}}}Ct.og=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;x===void 0&&(x=null),E===void 0&&(E=null);var tt=this.naturalBounds,rt=this.se(),at=rt?a:Ai(Ot.allocAt(a.x,a.y),this.transform),lt=rt?y:Ai(Ot.allocAt(y.x,y.y),this.transform),ht=at.Bf(lt),ft=0Wt.width||Lt.y>Wt.height||0>Lt.x+Lt.width||0>Lt.y+Lt.height))&&(Et.se()?(Lt=Et.transform,Ai(at.set(a),Lt),Ai(lt.set(y),Lt)):(at.set(a),lt.set(y)),Lt=Et,Et=Et instanceof zn?Et:null,(Et!==null?Et.og(at,lt,x,E,b,z):Lt.tx(at,lt,b))&&(x!==null&&(Lt=x(Lt)),Lt===null||E!==null&&!E(Lt)||z.add(Lt)))}}Ot.free(at),Ot.free(lt)}return b?ft:tt}return!1};function vv(a){var y=null;return a instanceof lo&&(y=a.spot1,y===da&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=Or),y}function yv(a){var y=null;return a instanceof lo&&(y=a.spot2,y===da&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=ts),y}Ct.add=function(a){for(var y=[],x=0;x=b.count&&a>=b.count)return;b.mb(z),E=z}else Xt("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>b.count)&&(a=b.count),b.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),dl(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof zn&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Fp(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof ri&&(x.Te=!0),x.Te&&x instanceof ri&&(x.wc=null),b=this.diagram,b!==null&&b.undoManager.isUndoingRedoing||(E!==-1&&x.cb(na,"elements",this,y,null,E,null),x.cb(Ur,"elements",this,null,y,null,a)))};function Av(a,y){a.l=y?a.l|16777216:a.l&-16777217}Ct.remove=function(a){for(var y=this.O.s,x=y.length,E=-1,b=0;ba&&De(a,">= 0",zn,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new aa;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(Ur,"rowdefs",this,null,x,null,a)}return y[a]},Ct.oA=function(a){if(0>a&&De(a,">= 0",zn,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(na,"rowdefs",this,x,null,a,null),this.v()}}};function hy(a,y,x){var E=a.rowDefs;if(!(0>y)){if(E[y]=x instanceof aa?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Ct.Eb=function(a){0>a&&De(a,">= 0",zn,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new aa;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(Ur,"coldefs",this,null,x,null,a)}return y[a]},Ct.jA=function(a){if(0>a&&De(a,">= 0",zn,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(na,"coldefs",this,x,null,a,null),this.v()}}};function cy(a,y,x){var E=a.colDefs;if(!(0>y)){if(E[y]=x instanceof aa?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Ct.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Lp(y,a),this},Ct.Hy=function(a,y){return(a=this.Fb(a))&&Lp(a,new aa(y)),this},Ct.By=function(a,y){return(a=this.Eb(a))&&Lp(a,new aa(y)),this},Ct.nz=function(a){if(0>a||this.type!==zn.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,E=x.length,b=this.topIndex;ba||this.type!==zn.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,E=x.length,b=this.leftIndex;ba;)this.pc(this.O.length-1,!1);gy(this,this.itemArray)};function gy(a,y){var x=_f(a);if(y===null||y.length===0)for(;a.O.length>x;)a.pc(a.O.length-1,!1);else if(a.O.length<=x){x=y.length;for(var E=0;Ex)){var b=Sv(a,y);if(b=xv(a,b),b!==null){if(zl(b),b=b.copy(),b.l&16777216){var z=a.ih();z!==null&&Av(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new hi),a.ge.add(y,b)),z=x+_f(a),a.Gb(z,b),E&&(b.ub=y,Cv(a,z,x),b.ub=null),b.data=y}}}function Cv(a,y,x){for(a=a.O;ya&&De(a,">= 0",zn,"padding"),a=new Ri(a)):(0>a.left&&De(a.left,">= 0",zn,"padding:value.left"),0>a.right&&De(a.right,">= 0",zn,"padding:value.right"),0>a.top&&De(a.top,">= 0",zn,"padding:value.top"),0>a.bottom&&De(a.bottom,">= 0",zn,"padding:value.bottom"));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.v(),this.g("padding",y,a))}},defaultAlignment:{get:function(){return this.Tm},set:function(a){var y=this.Tm;y.D(a)||(this.Tm=a=a.J(),this.v(),this.g("defaultAlignment",y,a))}},defaultStretch:{get:function(){return this.Uf},set:function(a){var y=this.Uf;y!==a&&(this.Uf=a,this.v(),this.g("defaultStretch",y,a))}},defaultSeparatorPadding:{get:function(){return this.T!==null?this.T.Qp:as},set:function(a){typeof a=="number"&&(a=new Ri(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new El),this.T.Qp=a,this.v(),this.g("defaultSeparatorPadding",y,a))}},defaultRowSeparatorStroke:{get:function(){return this.T!==null?this.T.ia:null},set:function(a){var y=this.defaultRowSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof qo)&&(a instanceof qo&&a.freeze(),this.T===null&&(this.T=new El),this.T.ia=a,this.N(),this.g("defaultRowSeparatorStroke",y,a))}},defaultRowSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.Ha:1},set:function(a){var y=this.defaultRowSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new El),this.T.Ha=a,this.v(),this.g("defaultRowSeparatorStrokeWidth",y,a))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(a){var y=this.defaultRowSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;ba)&&Xt("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new El),this.T.Hb=a,this.v(),this.g("topIndex",y,a))}},leftIndex:{get:function(){return this.T!==null?this.T.hb:0},set:function(a){var y=this.leftIndex;y!==a&&((!isFinite(a)||0>a)&&Xt("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new El),this.T.hb=a,this.v(),this.g("leftIndex",y,a))}},data:{get:function(){return this.ub},set:function(a){var y=this.ub;if(y!==a){var x=this instanceof Li&&!(this instanceof jo);zl(this),this.ub=a;var E=this.diagram;E!==null&&(x?(x=E.partManager,this instanceof Vn?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof Li&&(y!==null&&x.cf.remove(y),a!==null&&x.cf.add(a,this))):(x=this.panel,x!==null&&x.ge!==null&&(y!==null&&x.ge.remove(y),a!==null&&x.ge.add(a,this)))),this.g("data",y,a),E!==null&&E.undoManager.isUndoingRedoing||a!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(a){var y=this.zn;y!==a&&(this.zn=a,this.g("itemIndex",y,a))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new Hd),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&y5(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&l1(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&s1(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||gy(this,a)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(a){if(this.itemTemplateMap===null){if(a===null)return;this.itemTemplateMap=new hi}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof Li||a.isPanelMain)&&Xt("Panel.itemTemplate must not be a Part or be Panel.isPanelMain: "+a),this.itemTemplateMap.add("",a),this.g("itemTemplate",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv())}},itemTemplateMap:{get:function(){return this.A!==null?this.A.Pc:null},set:function(a){var y=this.itemTemplateMap;if(y!==a){for(var x=a.iterator;x.next(););mo(this),this.A.Pc=a,this.g("itemTemplateMap",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv()}}},itemCategoryProperty:{get:function(){return this.A!==null?this.A.Oc:"category"},set:function(a){var y=this.itemCategoryProperty;y!==a&&(mo(this),this.A.Oc=a,this.g("itemCategoryProperty",y,a))}},isAtomic:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("isAtomic",y,a))}},isClipping:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this instanceof to&&(this.tb=null),this.v(),this.g("isClipping",y,a))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(a){var y=(this.l&33554432)!==0;y!==a&&(this.l^=33554432,this.v(),this.g("isOpposite",y,a))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;if(y!==a){var x=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",y,a),y=this.diagram,y!==null&&y.undoManager.isUndoingRedoing||x&&Fp(this,this,a)}}},alignmentFocusName:{get:function(){return this.$e},set:function(a){var y=this.$e;y!==a&&(this.$e=a,this.v(),this.g("alignmentFocusName",y,a))}}}),Vt.Object.defineProperties(zn,{Position:{get:function(){return ql.I("Position")}},Horizontal:{get:function(){return ql.I("Horizontal")}},Vertical:{get:function(){return ql.I("Vertical")}},Spot:{get:function(){return ql.I("Spot")}},Auto:{get:function(){return ql.I("Auto")}},Table:{get:function(){return ql.I("Table")}},Viewbox:{get:function(){return ql.I("Viewbox")}},TableRow:{get:function(){return ql.I("TableRow")}},TableColumn:{get:function(){return ql.I("TableColumn")}},Link:{get:function(){return ql.I("Link")}},Grid:{get:function(){return ql.I("Grid")}},Graduated:{get:function(){return ql.I("Graduated")}}}),zn.prototype.rebuildItemElements=zn.prototype.mv,zn.prototype.findItemPanelForData=zn.prototype.sx,zn.prototype.updateTargetBindings=zn.prototype.La,zn.prototype.copyTemplate=zn.prototype.Uy,zn.prototype.graduatedValueForPoint=zn.prototype.Gz,zn.prototype.graduatedPointForValue=zn.prototype.Fz,zn.prototype.findColumnForLocalX=zn.prototype.fz,zn.prototype.findRowForLocalY=zn.prototype.nz,zn.prototype.addColumnDefinition=zn.prototype.By,zn.prototype.addRowDefinition=zn.prototype.Hy,zn.prototype.addRowColumnDefinition=zn.prototype.Gy,zn.prototype.removeColumnDefinition=zn.prototype.jA,zn.prototype.getColumnDefinition=zn.prototype.Eb,zn.prototype.removeRowDefinition=zn.prototype.oA,zn.prototype.getRowDefinition=zn.prototype.Fb,zn.prototype.removeAt=zn.prototype.mb,zn.prototype.remove=zn.prototype.remove,zn.prototype.insertAt=zn.prototype.Gb,zn.prototype.elt=zn.prototype.M,zn.prototype.add=zn.prototype.add,zn.prototype.findObject=zn.prototype.fb,zn.prototype.findInVisualTree=zn.prototype.Nl,zn.prototype.walkVisualTreeFrom=zn.prototype.qm,zn.prototype.findMainElement=zn.prototype.Pb;var fy=!1,py=null,ql=new hi;zn.className="Panel",zn.definePanelLayout=Iu,Iu("Position",new pp),Iu("Vertical",new vp),Iu("Auto",new Ap),Iu("Link",new Pp);function gh(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}gh.prototype.copy=function(){var a=new gh;return a.lq=this.lq,a.F=this.F,a.ia=this.ia,a.V=this.V,a.u=this.u,a.j=this.j,a.o=this.o,a.Zh=this.Zh,a},gh.className="GradPanelSettings";function El(){this.Pc=[],this.Oc=[],this.j=this.ob=Bp,this.hb=this.Hb=0,this.Qp=as,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}El.prototype.copy=function(a){for(var y=new El,x=this.Pc,E=x.length,b=y.Pc,z=0;za&&De(a,">= 0",aa,"height"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("height",y,a))}},width:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&De(a,">= 0",aa,"width"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("width",y,a))}},minimum:{get:function(){return this.jj},set:function(a){var y=this.jj;y!==a&&((0>a||!isFinite(a))&&De(a,">= 0",aa,"minimum"),this.jj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("minimum",y,a))}},maximum:{get:function(){return this.hj},set:function(a){var y=this.hj;y!==a&&(0>a&&De(a,">= 0",aa,"maximum"),this.hj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("maximum",y,a))}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(this.Jb=a.J(),this.panel!==null&&this.panel.v(),this.Ob("alignment",y,a))}},stretch:{get:function(){return this.hg},set:function(a){var y=this.hg;y!==a&&(this.hg=a,this.panel!==null&&this.panel.v(),this.Ob("stretch",y,a))}},separatorPadding:{get:function(){return this.dg},set:function(a){typeof a=="number"&&(a=new Ri(a));var y=this.dg;a!==null&&y!==null&&y.D(a)||(a!==null&&(a=a.J()),this.dg=a,this.panel!==null&&this.panel.v(),this.Ob("separatorPadding",y,a))}},separatorStroke:{get:function(){return this.lo},set:function(a){var y=this.lo;y!==a&&(a!==null&&Gd(a,"RowColumnDefinition.separatorStroke"),a instanceof qo&&a.freeze(),this.lo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",y,a))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(a){var y=this.mo;y!==a&&(this.mo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",y,a))}},separatorDashArray:{get:function(){return this.tj},set:function(a){var y=this.tj;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;bb)){var z=E.measuredBounds,tt=Math.max(1,z.width);z=z.height;for(var rt=x[0],at=x[1],lt,ht,ft,vt,xt,Et,Lt=0,Wt=ii(),kt=2;ktft&&(ft=1),b=x=ft,lt=tt/2,ht=lt!==0,kt=0,Et=Wt[kt],ft=Et[0],xt=Et[1],vt=Et[2],Et=Et[3];for(var Jt=0;.1<=Lt;){if(Jt===0&&(ht?(b=x,b-=lt,Lt-=lt,ht=!1):b=x,b===0&&(b=1)),b>Lt){Bn(Wt);return}b>Et?(Jt=b-Et,b=Et):Jt=0;var ne=Math.sqrt(b*b/(1+vt*vt));if(0>ft&&(ne=-ne),rt+=ne,at+=vt*ne,a.translate(rt,at),a.rotate(xt),a.translate(-(tt/2),-(z/2)),Jt===0&&E.hh(a,y),a.translate(tt/2,z/2),a.rotate(-xt),a.translate(-rt,-at),Lt-=b,Et-=b,Jt!==0){if(kt++,kt===Wt.length){Bn(Wt);return}Et=Wt[kt],ft=Et[0],xt=Et[1],vt=Et[2],Et=Et[3],b=Jt}}Bn(Wt)}}Ct.hh=function(a,y){var x=this.xc,E=this.Ui;if(x!==null||E!==null){var b=this.ua;if(b!==null){a.yc();var z=this.actualBounds,tt=this.naturalBounds;E!==null&&Hr(this,a,E,!0,!1,tt,z);var rt=this.part,at=this.ig;if(x===null||at!==0||rt===null||!this.isPanelMain&&rt.Pb()!==this||(at=rt.type===zn.Link&&rt instanceof jo&&rt.category==="Selection"&&rt.adornedObject instanceof lo&&rt.adornedPart.Pb()===rt.adornedObject?rt.adornedObject.strokeWidth:0),at===0&&(x=null),x!==null&&at!==0&&(Hr(this,a,x,!1,!1,tt,z),a.lineWidth=at,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,rt&&y.Gf("drawShadows")&&(z=rt.isShadowed),a.Il===!1&&(z=!1),rt=!0,x===null||E!==null&&E!=="transparent"||(rt=!1),tt=!1,at=this.strokeDashArray,at!==null&&(tt=!0,a.js(at,this.strokeDashOffset)),b.type===Qn.j)a.beginPath(),a.moveTo(b.startX,b.startY),a.lineTo(b.endX,b.endY),x!==null&&a.jk(),a.Se();else if(b.type===Qn.u){var lt=b.startX;at=b.startY;var ht=b.endX,ft=b.endY;b=Math.min(lt,ht);var vt=Math.min(at,ft);lt=Math.abs(ht-lt),at=Math.abs(ft-at),a.beginPath(),a.rect(b,vt,lt,at),E!==null&&a.ng(E),x!==null&&(rt&&z&&Ru(a),a.jk(),rt&&z&&uh(a)),a.Se()}else if(b.type===Qn.F)lt=b.startX,at=b.startY,ht=b.endX,ft=b.endY,b=Math.abs(ht-lt)/2,vt=Math.abs(ft-at)/2,lt=Math.min(lt,ht)+b,at=Math.min(at,ft)+vt,a.beginPath(),a.moveTo(lt,at-vt),a.bezierCurveTo(lt+Ie.wg*b,at-vt,lt+b,at-Ie.wg*vt,lt+b,at),a.bezierCurveTo(lt+b,at+Ie.wg*vt,lt+Ie.wg*b,at+vt,lt,at+vt),a.bezierCurveTo(lt-Ie.wg*b,at+vt,lt-b,at+Ie.wg*vt,lt-b,at),a.bezierCurveTo(lt-b,at-Ie.wg*vt,lt-Ie.wg*b,at-vt,lt,at-vt),a.closePath(),E!==null&&a.ng(E),x!==null&&(rt&&z&&Ru(a),a.jk(),rt&&z&&uh(a)),a.Se();else if(b.type===Qn.o)for(b=b.figures,at=b.length,vt=0;vtLt.sweepAngle,xt!==null?xt.endX:lt.startX,xt!==null?xt.endY:lt.startY)}else if(xt=Ds(Lt,lt),Wt=xt.length,Wt===0)a.lineTo(Lt.centerX,Lt.centerY);else for(var kt=0;kt(x.startX-x.endX)*(a.x-x.endX)+(x.startY-x.endY)*(a.y-x.endY)||0>E)?!1:(on.free(z),Ie.Yb(x.startX,x.startY,x.endX,x.endY,b,a.x,a.y));if(x.type===Qn.u){y=x.startX;var tt=x.startY,rt=x.endX;if(x=x.endY,z.x=Math.min(y,rt),z.y=Math.min(tt,x),z.width=Math.abs(rt-y),z.height=Math.abs(x-tt),this.fill===null){if(z.Bc(-E,-E),z.ca(a))return on.free(z),!1;z.Bc(E,E)}return this.stroke!==null&&z.Bc(b,b),a=z.ca(a),on.free(z),a}if(x.type===Qn.F){tt=x.startX,b=x.startY,rt=x.endX;var at=x.endY;if(x=Math.min(tt,rt),y=Math.min(b,at),tt=Math.abs(rt-tt)/2,b=Math.abs(at-b)/2,x=a.x-(x+tt),y=a.y-(y+b),this.fill===null){if(tt-=E,b-=E,0>=tt||0>=b||1>=x*x/(tt*tt)+y*y/(b*b))return on.free(z),!1;tt+=E,b+=E}return this.stroke!==null&&(tt+=E,b+=E),on.free(z),0>=tt||0>=b?!1:1>=x*x/(tt*tt)+y*y/(b*b)}if(x.type===Qn.o)return on.free(z),this.fill===null?th(x,a.x,a.y,b):Su(x,a,b,1=this.strokeWidth)ht=Ie.Ve(lt.startX,lt.startY,lt.endX,lt.endY,z,tt,rt,at,b);else{if(lt.startX===lt.endX?(E=ft,ht=0):(y=(lt.endY-lt.startY)/(lt.endX-lt.startX),ht=ft/Math.sqrt(1+y*y),E=ht*y),y=ii(),a=new Ot,Ie.Ve(lt.startX+E,lt.startY+ht,lt.endX+E,lt.endY+ht,z,tt,rt,at,a)&&y.push(a),a=new Ot,Ie.Ve(lt.startX-E,lt.startY-ht,lt.endX-E,lt.endY-ht,z,tt,rt,at,a)&&y.push(a),a=new Ot,Ie.Ve(lt.startX+E,lt.startY+ht,lt.startX-E,lt.startY-ht,z,tt,rt,at,a)&&y.push(a),a=new Ot,Ie.Ve(lt.endX+E,lt.endY+ht,lt.endX-E,lt.endY-ht,z,tt,rt,at,a)&&y.push(a),rt=y.length,rt===0)return Bn(y),!1;for(ht=!0,at=1/0,E=0;EMath.abs(x)){if(at=tt-ht-x*(z-E),0>a*a*x*x+lt*lt-at*at){b.x=NaN,b.y=NaN,ht=!1;break t}ft=Math.sqrt(a*a*x*x+lt*lt-at*at),rt=(-(a*a*x*at)+a*lt*ft)/(lt*lt+a*a*x*x)+E,a=(-(a*a*x*at)-a*lt*ft)/(lt*lt+a*a*x*x)+E,lt=x*(rt-E)+at+ht,at=x*(a-E)+at+ht,Math.abs((z-rt)*(z-rt))+Math.abs((tt-lt)*(tt-lt))rt){b.x=NaN,b.y=NaN,ht=!1;break t}at=Math.sqrt(rt),rt=ht+at,at=ht-at,Math.abs(rt-tt)Math.abs(Et)?(Lt*=.5/Et,Et=.5):Lt!==0&&.5>Math.abs(Lt)&&(Et*=.5/Lt,Lt=.5),kt-=Et,Jt-=Lt;xt.contains(kt,Jt);)kt-=Et,Jt-=Lt;for(b.x=rt,b.y=at,Lt=0;Ltx?a-x:x-a)<(y>E?y-E:E-y)?(a=ya||Ie.$(at.y,a))&&(at.yy||Ie.$(at.x,y))&&(at.x=a&&E<=y):(a=E&&x<=a)}Ct.tx=function(a,y,x){function E(Wt,kt){for(var Jt=Wt.length,ne=0;neb)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var b=a.Bf(y),z=b;if(1.5=b||mi(y,z,0,-ft)>=b||mi(y,z,0,ft)>=b||mi(y,z,ht,0)>=b)}else if(y.type===Qn.o){if(lt=y.bounds,z=lt.x,rt=lt.y,at=lt.x+lt.width,lt=lt.y+lt.height,a.x>at&&a.xlt&&a.yb&&pi(a.x,a.y,z,rt,at,rt)>b&&pi(a.x,a.y,at,lt,z,lt)>b&&pi(a.x,a.y,at,lt,at,rt)>b)return!1;if(z=Math.sqrt(b),x){if(this.fill===null?th(y,a.x,a.y,z):Su(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;yb)return!1;for(rt=z.segments.s,at=rt.length,lt=0;ltb)return!1;break;case Na:var vt=ii();if(Ie.Qe(tt,ht,ft.point1X,ft.point1Y,ft.point2X,ft.point2Y,ft.endX,ft.endY,.8,vt),tt=E(vt,a),Bn(vt),tt||(tt=ft.endX,ht=ft.endY,a.zd(tt,ht)>b))return!1;break;case Hs:if(vt=ii(),Ie.ep(tt,ht,ft.point1X,ft.point1Y,ft.endX,ft.endY,.8,vt),tt=E(vt,a),Bn(vt),tt||(tt=ft.endX,ht=ft.endY,a.zd(tt,ht)>b))return!1;break;case Qr:case Js:vt=ft.type===Qr?Ds(ft,z):ll(ft,z,tt,ht);var xt=vt.length;if(xt===0){if(tt=ft.type===Qr?ft.centerX:ft.endX,ht=ft.type===Qr?ft.centerY:ft.endY,a.zd(tt,ht)>b)return!1;break}ft=null;for(var Et=ii(),Lt=0;Lt= 0",lo,"strokeWidth:value")}},strokeCap:{get:function(){return this.Na!==null?this.Na.Hr:"butt"},set:function(a){var y=this.strokeCap;y!==a&&(typeof a!="string"||a!=="butt"&&a!=="round"&&a!=="square"?De(a,'"butt", "round", or "square"',lo,"strokeCap"):(rd(this),this.Na.Hr=a,this.N(),this.g("strokeCap",y,a)))}},strokeJoin:{get:function(){return this.Na!==null?this.Na.Ir:"miter"},set:function(a){var y=this.strokeJoin;y!==a&&(typeof a!="string"||a!=="miter"&&a!=="bevel"&&a!=="round"?De(a,'"miter", "bevel", or "round"',lo,"strokeJoin"):(rd(this),this.Na.Ir=a,this.N(),this.g("strokeJoin",y,a)))}},strokeMiterLimit:{get:function(){return this.Na!==null?this.Na.Jr:10},set:function(a){var y=this.strokeMiterLimit;if(y!==a&&1<=a){rd(this),this.Na.Jr=a,this.N();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeMiterLimit",y,a)}}},strokeDashArray:{get:function(){return this.Yg},set:function(a){var y=this.Yg;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;ba?a=0:1a?a=0:1(ft*ft+ht*ht)*vt*vt&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof $s&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,ft=this.spacingBelow,this.flip){case ko:a.translate(b,0),a.scale(-1,1);break;case yo:a.translate(0,z),a.scale(1,-1);break;case er:a.translate(b,z),a.scale(-1,-1)}if(a.yc(),ht=this.Gc,vt=(y+tt+ft)*ht,z>vt&&(E=this.verticalAlignment,E=E.y*z-E.y*vt+E.offsetY),ht===1&&this.ze!==null)ft=this.Cb,ft>b&&(ft=b),this.Oj(this.ze,a,0,E+y,b,tt,ft,x,rt,at,lt);else if(this.Qc!==null&&this.Qb!==null)for(vt=0;vtb&&(xt=b),E+=y,this.Oj(this.Qb[vt],a,0,E,b,tt,xt,x,rt,at,lt),E+=tt+ft}switch(this.flip){case ko:a.scale(-1,1),a.translate(-b,0);break;case yo:a.scale(1,-1),a.translate(0,-z);break;case er:a.scale(-1,-1),a.translate(-b,-z)}}},Ct.Oj=function(a,y,x,E,b,z,tt,rt,at,lt,ht){var ft=0;if(rt)at==="left"?ft=0:at==="right"?ft=b-tt:at==="center"&&(ft=(b-tt)/2),y.fillRect(x+ft,E+.25*z,tt,1);else{if(at==="left"?ft=0:at==="right"?ft=b:at==="center"&&(ft=b/2),b=kp!==null?kp(this,z):.75*z,y.fillText(a,x+ft,E+b),a=z/20|0,a===0&&(a=1),at==="right"?ft-=tt:at==="center"&&(ft-=tt/2),lt){rt=Tp!==null?Tp(this,z):.8*z,at=x+ft,lt=E+rt,b=x+ft+tt,rt=E+rt;var vt=a;y.beginPath(),y.lineWidth=vt,y.moveTo(at,lt),y.lineTo(b,rt),y.stroke(),y.Se(),y instanceof $s&&y.ad.classList.add("gojs-td")}ht&&(ht=E+z-z/2.2|0,a%2!==0&&(ht+=.5),E=x+ft,z=ht,x=x+ft+tt,tt=ht,ft=a,y.beginPath(),y.lineWidth=ft,y.moveTo(E,z),y.lineTo(x,tt),y.stroke(),y.Se(),y instanceof $s&&y.ad.classList.add("gojs-td"))}},Ct.kk=function(a,y,x){if(!Se.prototype.kk.call(this,a,y,x))return!1;if(Hr(this,a,this.xc,!0,!1,this.naturalBounds,this.actualBounds),x){if(this.svg.getElementsByTagName("text").length===0)return!0;for(y=this.svg.getElementsByClassName("gojs-td"),x=0;xa?a=0:1a?a=0:1=a&&De(a,"> 0",cr,"maxLines"),Mu(this),this.da.Jq=a,this.v(),this.g("maxLines",y,a))}},metrics:{get:function(){return{arrSize:this.Qc!==null?this.Qc:[this.Cb],arrText:this.Qb!==null?this.Qb:[this.ze],maxLineWidth:this.Cb,fontHeight:this.df}}},choices:{get:function(){return this.Gm},set:function(a){var y=this.Gm;y!==a&&(this.Gm=a,this.g("choices",y,a))}}});var kp=null,Tp=null,Fv=new sn(cr,"None",0),Sy=new sn(cr,"WrapFit",1),Lv=new sn(cr,"WrapDesiredSize",2),xy=new sn(cr,"WrapBreakAll",3),Dv=new sn(cr,"OverflowClip",0),Op=new sn(cr,"OverflowEllipsis",1),n0=new sn(cr,"FormatTrim",0),wy=new sn(cr,"FormatNone",0),A5=/[ \u200b\u00ad]/,Bv=new ji,Ey=0,jp=new ji,bv=0,i0="...",Py="",Os=null,zp=!1;cr.className="TextBlock";function Nv(){this.nc=!1,this.Hd=null,this.Xf=In,this.gq=n0,this.Jq=1/0,this.$q=Dv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Xl,this.$r=Lv}Nv.prototype.copy=function(){var a=new Nv;return a.Hd=this.Hd,a.Xf=this.Xf,a.gq=this.gq,a.Jq=this.Jq,a.$q=this.$q,a.Dr=this.Dr,a.Er=this.Er,a.Or=this.Or,a.Pr=this.Pr,a.Qr=this.Qr,a.vj=this.vj,a.Yr=this.Yr,a.$r=this.$r,a},cr.getEllipsis=function(){return i0},cr.setEllipsis=function(a){i0=a,jp=new ji,bv=0},cr.getBaseline=function(){return kp},cr.setBaseline=function(a){kp=a},cr.getUnderline=function(){return Tp},cr.setUnderline=function(a){Tp=a},cr.isValidFont=function(a){if(zp||(Os=zr?new jl(null).context:null,zp=!0),Os===null)return!0;var y=Os.font;if(a===y||a==="10px sans-serif")return!0;Os.font="10px sans-serif",Os.font=a;var x=Os.font;if(x!=="10px sans-serif")return Os.font=y,!0;Os.font="19px serif";var E=Os.font;return Os.font=a,x=Os.font,Os.font=y,x!==E},cr.FormatNone=wy,cr.FormatTrim=n0,cr.None=Fv,cr.OverflowClip=Dv,cr.OverflowEllipsis=Op,cr.WrapBreakAll=xy,cr.WrapDesiredSize=Lv,cr.WrapFit=Sy;function Gu(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Gu.prototype.copy=function(){var a=new Gu;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},Gu.className="GradElementSettings";function js(a,y){Se.call(this),this.Eg=null,this.qo="",this.Xg=wa,this.Nk=On,this.Zg=this.Hd=null,this.Mk=Wo,this.Xf=In,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,typeof a=="string"?this.source=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}var Rg;Yt(js,Se),js.prototype.cloneProtected=function(a){Se.prototype.cloneProtected.call(this,a),a.qo=this.qo,a.element=this.Eg,a.Xg=this.Xg.J(),a.Nk=this.Nk,a.Xf=this.Xf,a.Hd=this.Hd,a.Zg=this.Zg,a.Mk=this.Mk.J(),a.en=this.en,a.rl=this.rl},js.prototype.qb=function(a){a===In||a===vi||a===Io?this.imageStretch=a:Se.prototype.qb.call(this,a)},js.prototype.toString=function(){return"Picture("+this.source+")#"+Ao(this)};function Hg(a){a===void 0&&(a=""),a!==""?Rg[a]&&(delete Rg[a],Rp--):(Rg=new ji,Rp=0)}function Iy(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var E=y.Bg.copy();if(E!=null){for(E=E.iterator;E.next();){var b=E.value;b.N();var z=y.getAttribute("src")||"",tt=b.Og.I(z);if(tt!==null)for(var rt=tt.length,at=0;at=E.width&&(z=z+Et.offsetX+(ft*Et.x-E.width*Et.x)),vt>=E.height&&(tt=tt+Et.offsetY+(vt*Et.y-E.height*Et.y)),at=Math.min(E.width,ft),rt=Math.min(E.height,vt);break;case On:ft=E.width,vt=E.height;break;case vi:case Io:xt===vi?(xt=Math.min(E.height/vt,E.width/ft),ft*=xt,vt*=xt):xt===Io&&(xt=Math.max(E.height/vt,E.width/ft),ft*=xt,vt*=xt,ft>=E.width&&(z=(z+Et.offsetX+(ft*Et.x-E.width*Et.x)/ft)*at),vt>=E.height&&(tt=(tt+Et.offsetY+(vt*Et.y-E.height*Et.y)/vt)*rt),at*=1/(ft/E.width),rt*=1/(vt/E.height),ft=E.width,vt=E.height)}xt=this.Df()*y.scale;var Lt=ft*xt*vt*xt,Wt=at*rt/Lt,kt=x.__goCache;xt=null;var Jt=C5;if(!b){if(x.sq&&kt!==void 0&&4Jt*Jt)for(kt.gi===null&&(Fy(kt,4,lt,ht,x),Fy(kt,16,lt,ht,x)),b=kt.gi,lt=b.length,ht=0;hta)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,x/3);var E="rr"+y+","+x+","+a,b=Ie.Mf[E];if(b!==void 0)return b;var z=a*Ie.wg;return b=new Qn().add(new Kr(a,0,!0).add(new Oo(hr,y-a,0)).add(new Oo(Na,y,a,y-z,0,y,z)).add(new Oo(hr,y,x-a)).add(new Oo(Na,y-a,x,y,x-z,y-z,x)).add(new Oo(hr,a,x)).add(new Oo(Na,0,x-a,z,x,0,x-z)).add(new Oo(hr,0,a)).add(new Oo(Na,a,0,0,z,z,0).close())),1b.x&&a.y>b.y&&a.rightb.x&&y.y>b.y&&y.right=x.maxSelectionCount)){this.G^=4096;var E=!1;if(x!==null){E=x.skipsUndoManager,x.skipsUndoManager=!0;var b=x.selection;b.ka(),a?b.add(this):b.remove(this),b.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),x!==null&&(x.$b(),x.skipsUndoManager=E)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(a){var y=(this.G&524288)!==0;if(y!==a){this.G^=524288;var x=this.diagram;x!==null&&(x=x.highlighteds,x.ka(),a?x.add(this):x.remove(this),x.freeze()),this.g("isHighlighted",y,a),this.N(),a=this.highlightedChanged,a!==null&&a(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(a){var y=(this.G&8192)!==0;y!==a&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",y,a),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(a){var y=(this.G&262144)!==0;y!==a&&(this.G^=262144,this.g("isAnimated",y,a))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(a){var y=this.highlightedChanged;y!==a&&(zs(this),this.P.oq=a,this.g("highlightedChanged",y,a))}},selectionObjectName:{get:function(){return this.P!==null?this.P.vr:""},set:function(a){var y=this.selectionObjectName;y!==a&&(zs(this),this.P.vr=a,this.Ug=null,this.g("selectionObjectName",y,a))}},selectionAdornmentTemplate:{get:function(){return this.P!==null?this.P.tr:null},set:function(a){var y=this.selectionAdornmentTemplate;y!==a&&(zs(this),this.P.tr=a,this.g("selectionAdornmentTemplate",y,a))}},selectionObject:{get:function(){if(this.Ug===null){var a=this.selectionObjectName;a!==null&&a!==""?(a=this.fb(a),a!==null?this.Ug=a:this.Ug=this):this instanceof Vn?(a=this.path,a!==null?this.Ug=a:this.Ug=this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return this.P!==null?this.P.ur:null},set:function(a){var y=this.selectionChanged;y!==a&&(zs(this),this.P.ur=a,this.g("selectionChanged",y,a))}},resizeAdornmentTemplate:{get:function(){return this.P!==null?this.P.fr:null},set:function(a){var y=this.resizeAdornmentTemplate;y!==a&&(zs(this),this.P.fr=a,this.g("resizeAdornmentTemplate",y,a))}},resizeObjectName:{get:function(){return this.P!==null?this.P.hr:""},set:function(a){var y=this.resizeObjectName;y!==a&&(zs(this),this.P.hr=a,this.g("resizeObjectName",y,a))}},resizeObject:{get:function(){var a=this.resizeObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},resizeCellSize:{get:function(){return this.P!==null?this.P.gr:or},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),zs(this),this.P.gr=a,this.g("resizeCellSize",y,a))}},rotateAdornmentTemplate:{get:function(){return this.P!==null?this.P.ir:null},set:function(a){var y=this.rotateAdornmentTemplate;y!==a&&(zs(this),this.P.ir=a,this.g("rotateAdornmentTemplate",y,a))}},rotateObjectName:{get:function(){return this.P!==null?this.P.jr:""},set:function(a){var y=this.rotateObjectName;y!==a&&(zs(this),this.P.jr=a,this.g("rotateObjectName",y,a))}},rotateObject:{get:function(){var a=this.rotateObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},rotationSpot:{get:function(){return this.P!==null?this.P.lr:da},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),zs(this),this.P.lr=a,this.g("rotationSpot",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;y!==a&&(this.ec=a,this.g("text",y,a))}},containingGroup:{get:function(){return this.Ah},set:function(a){if(this.Zc()){var y=this.Ah;if(y!==a){a===null||this!==a&&!a.Td(this)||(this===a&&Xt("Cannot make a Group a member of itself: "+this.toString()),Xt("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?Vv(y,this):this instanceof to&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Uv(a,this):this instanceof to&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var E=this.data,b=x.model;if(E!==null&&b.Xj()){var z=b.wa(a!==null?a.data:null);b.mp(E,z)}}if(E=this.containingGroupChanged,E!==null&&(b=!0,x!==null&&(b=x.aa,x.aa=!0),E(this,y,a),x!==null&&(x.aa=b)),this instanceof to){for(x=new bn,Ac(x,this,!0,0,!0),x=x.iterator;x.next();)if(E=x.value,E instanceof ri)for(E=E.linksConnected;E.next();)Zg(E.value)}if(this instanceof ri){for(x=this.linksConnected;x.next();)Zg(x.value);x=this.labeledLink,x!==null&&Zg(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&mg(y,-1,a))}}else Xt("cannot set the Part.containingGroup of a Link or Adornment")}},containingGroupChanged:{get:function(){return this.P!==null?this.P.Kp:null},set:function(a){var y=this.containingGroupChanged;y!==a&&(zs(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof ri&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(zs(this),this.P.Cq=a,this.g("layoutConditions",y,a))}},dragComputation:{get:function(){return this.P!==null?this.P.Up:null},set:function(a){var y=this.dragComputation;y!==a&&(zs(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:_t},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),zs(this),this.P.zr=a,this.N(),this.g("shadowOffset",y,a))}},shadowColor:{get:function(){return this.P!==null?this.P.yr:"gray"},set:function(a){var y=this.shadowColor;y!==a&&(zs(this),this.P.yr=a,this.N(),this.g("shadowColor",y,a))}},shadowBlur:{get:function(){return this.P!==null?this.P.Vg:4},set:function(a){var y=this.shadowBlur;y!==a&&(zs(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),Li.prototype.invalidateLayout=Li.prototype.C,Li.prototype.findCommonContainingGroup=Li.prototype.px,Li.prototype.isMemberOf=Li.prototype.Td,Li.prototype.findTopLevelPart=Li.prototype.sz,Li.prototype.findSubGraphLevel=Li.prototype.oz,Li.prototype.ensureBounds=Li.prototype.Va,Li.prototype.getDocumentBounds=Li.prototype.mi,Li.prototype.findObject=Li.prototype.fb,Li.prototype.moveTo=Li.prototype.moveTo,Li.prototype.invalidateAdornments=Li.prototype.Wb,Li.prototype.clearAdornments=Li.prototype.Ej,Li.prototype.removeAdornment=Li.prototype.Jf,Li.prototype.addAdornment=Li.prototype.bh,Li.prototype.findAdornment=Li.prototype.Pj,Li.prototype.updateTargetBindings=Li.prototype.La;var Hy=!1;Li.className="Part",Li.LayoutNone=0,Li.LayoutAdded=1,Li.LayoutRemoved=2,Li.LayoutShown=4,Li.LayoutHidden=8,Li.LayoutNodeSized=16,Li.LayoutGroupLayout=32,Li.LayoutNodeReplaced=64,Li.LayoutStandard=127,Li.LayoutAll=16777215;function jo(a,y){a===void 0||a instanceof la||typeof a=="string"?Li.call(this,a):(Li.call(this),a&&(y=a)),this.G&=-257,this.Jg="Adornment",this.ue=null,this.Aw=0,this.Uw=!1,this.j=this.$a=null,y&&Object.assign(this,y)}Yt(jo,Li),jo.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},jo.prototype.updateRelationshipsFromData=function(){},jo.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof Vn&&y instanceof lo){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var E=0;Ea&&(a=1);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new bn;x.add(this),Ky(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===bh),y.Ue=!1}};function Ky(a,y,x,E,b,z,tt){if(1a&&(a=2);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new bn;x.add(this),Jy(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===bh),y.Ue=!1}};function Jy(a,y,x,E,b,z,tt){for(var rt=z===a?!1:a.isTreeExpanded,at=x?a.Mo():a.Sd(),lt={};at.next();){var ht=at.value;if(ht.isTreeLink&&(rt||ht.fd||ht.bb(),ht=ht.To(a),ht!==null&&ht!==a&&!y.contains(ht))){if(y.add(ht),!rt){ht.Zb(!0),ht.oh();var ft=x?ht.Oo():ht.Po();lt.vv=a,ft.all(function(vt){return function(xt){return xt===vt.vv||!xt.isTreeExpanded}}(lt))&&b.Cj(ht,z)}(2b&&(b=rt.right),rt.bottom>z&&(z=rt.bottom)}}return isFinite(x)&&isFinite(E)?a.h(x,E,b-x,z-E):(y=y.location,a.h(y.x,y.y,0,0)),a},Vt.Object.defineProperties(Cs.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Ri(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),Cs.className="Placeholder";function Vn(a){Li.call(this,zn.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Ss,this.Om=0,this.Qm=Ss,this.Rm=NaN,this.qj=Jv,this.po=.5,this.wd=null,this.Nb=new Ln().freeze(),this.Tg=this.Mg=null,this.ml=new on,this.ua=new Qn,this.u=this.o=this.Sf=this.Wf=null,this.su=new Ot,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Yt(Vn,Li),Vn.prototype.cloneProtected=function(a){Li.prototype.cloneProtected.call(this,a),a.Qa=this.Qa&-113,a.ff=this.ff,a.gn=this.gn,a.vf=this.vf,a.uo=this.uo,a.qk=this.qk,a.Om=this.Om,a.Qm=this.Qm,a.Rm=this.Rm,a.qj=this.qj,a.po=this.po,this.ba!==null&&(a.ba=this.ba.copy())},Ct=Vn.prototype,Ct.Af=function(a){Li.prototype.Af.call(this,a),this.ff=a.ff,this.vf=a.vf,a.Mg=null,a.bb(),a.Sf=this.Sf;var y=a.fromPort;y!==null&&tl(y),a=a.toPort,a!==null&&tl(a)},Ct.qb=function(a){a.classType===Vn?(a.value&2)===2?this.routing=a:a===fl||a===Hh||a===Vg?this.curve=a:a===s0||a===_p||a===$p?this.adjusting=a:a!==Jv&&a!==Ss&&Xt("Unknown Link enum value for a Link property: "+a):Li.prototype.qb.call(this,a)},Ct.Xc=function(){this.ba===null&&(this.ba=new Xf)},Ct.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),ys(a)||vc(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),ys(a)||vc(a)))},Ct.zv=function(){return!1},Ct.Av=function(){},Ct.Zc=function(){return!1},Vn.prototype.computeAngle=function(a,y,x){return Vn.computeAngle(y,x)},Vn.computeAngle=function(a,y){switch(a){default:case Ss:a=0;break;case l0:a=y;break;case u0:a=y+90;break;case h0:a=y-90;break;case qv:a=y+180;break;case tm:a=Ie.bp(y),90a&&(a-=180);break;case c0:a=Ie.bp(y+90),90a&&(a-=180);break;case d0:a=Ie.bp(y-90),90a&&(a-=180);break;case em:if(a=Ie.bp(y),45a||225a)return 0;90a&&(a-=180)}return Ie.bp(a)};function Zg(a){var y=a.fromNode,x=a.toNode,E=null;if(y!==null?E=x!==null?y.px(x):y.containingGroup:x!==null?E=x.containingGroup:E=null,y=E,x=a.Ah,x!==y){x!==null&&Vv(x,a),a.Ah=y,y!==null&&Uv(y,a);var b=a.containingGroupChanged;if(b!==null){var z=!0,tt=a.diagram;tt!==null&&(z=tt.aa,tt.aa=!0),b(a,x,y),tt!==null&&(tt.aa=z)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=E}Ct=Vn.prototype,Ct.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Li.prototype.oh.call(this)},Ct.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Ct.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function $y(a,y){a.wd===null&&(a.wd=new bn),a.wd.add(y),a.v()}Ct.Vo=function(a){if(Li.prototype.Vo.call(this,a),ld(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Up(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||Up(x,this,E)}r0(this)}},Ct.Wo=function(a){if(Li.prototype.Wo.call(this,a),ld(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Vp(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||Vp(x,this,E)}a0(this)}},Ct.Lj=function(){if(this.fd=!0,this.wd!==null){var a=this.diagram;if(a!==null)for(var y=this.wd.copy().iterator;y.next();)a.remove(y.value)}this.data!==null&&(a=this.diagram,a!==null&&a.partManager.removeDataForLink(this))},Vn.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},Vn.prototype.move=function(a,y){var x=y?this.location:this.position,E=x.x;isNaN(E)&&(E=0);var b=x.y;for(isNaN(b)&&(b=0),E=a.x-E,b=a.y-b,y===!0?Li.prototype.move.call(this,a,!1):(a=Ot.allocAt(x.x+E,x.y+b),Li.prototype.move.call(this,a,!1),Ot.free(a)),Rh(this,E,b),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+E,x.y+b)},Vn.prototype.canRelinkFrom=function(){if(!this.relinkableFrom)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},Vn.prototype.canRelinkTo=function(){if(!this.relinkableTo)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},Vn.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(Zn),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var x=this.i(0),E=this.i(1);return a.h((x.x+E.x)/2,(x.y+E.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===fl))return this.ua.Pu(.5,a),a.add(this.i(0)),x=this.ua.figures.first(),a.offset(-x.startX,-x.startY),a;if(this.computeCurve()===fl){if(y===3){x=this.i(0),E=this.i(1);var b=this.i(2);return Ie.ax(x.x,x.y,E.x,E.y,E.x,E.y,b.x,b.y,a),a}if(E=(y-1)/3|0,x=3*(E/2|0),E%2===1){E=this.i(x),b=this.i(x+1);var z=this.i(x+2);x=this.i(x+3),Ie.ax(E.x,E.y,b.x,b.y,z.x,z.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var tt=this.flattenedLengths;for(x=this.flattenedTotalLength,b=z=E=0;Ex/2));)E+=b,z++;return y=this.i(z),z=this.i(z+1),1>Math.abs(y.x-z.x)?y.y>z.y?a.h(y.x,y.y-(x/2-E)):a.h(y.x,y.y+(x/2-E)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(x/2-E),y.y):a.h(y.x+(x/2-E),y.y):(x=(x/2-E)/b,a.h(y.x+x*(z.x-y.x),y.y+x*(z.y-y.y))),a},Vn.prototype.computeMidAngle=function(){var a=this.pointsCount;if(2>a)return NaN;if(a===2)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===fl))return this.ua.wx(.5);if(this.computeCurve()===fl&&4<=a){var y=(a-1)/3|0,x=3*(y/2|0);if(y%2===1){x=Math.floor(x),a=this.i(x),y=this.i(x+1);var E=this.i(x+2);return x=this.i(x+3),Ie.My(a.x,a.y,y.x,y.y,E.x,E.y,x.x,x.y)}if(0E/2));)b+=z,x++;if(y=this.i(x),E=this.i(x+1),1>Math.abs(y.x-E.x)&&1>Math.abs(y.y-E.y)){if(0Math.abs(y.x-E.x))return y.y>E.y?270:90;if(1>Math.abs(y.y-E.y))return y.x>E.x?180:0}return y.ab(E)},Ct=Vn.prototype,Ct.i=function(a){return this.Nb.s[a]},Ct.dd=function(a,y){this.Nb.cd(a,y)},Ct.L=function(a,y,x){this.Nb.cd(a,new Ot(y,x))},Ct.Kz=function(a,y){this.Nb.Gb(a,y)},Ct.m=function(a,y,x){this.Nb.Gb(a,new Ot(y,x))},Ct.ne=function(a){this.Nb.add(a)},Ct.yf=function(a,y){this.Nb.add(new Ot(a,y))},Ct.pv=function(a){this.Nb.mb(a)},Ct.Fj=function(){this.Nb.clear()};function Rh(a,y,x){if(y!==0||x!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,x),a.defaultToPoint&&a.defaultToPoint.offset(y,x);else{for(var E=a.fd,b=new Ln,z=a.Nb.iterator;z.next();){var tt=z.value;b.add(new Ot(tt.x+y,tt.y+x).freeze())}b.freeze(),z=a.Nb,a.Nb=b,tt=a.diagram,isNaN(y)||isNaN(x)||tt!==null&&tt.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+x),a.pa.h(a.pa.x+y,a.pa.y+x),vs(a)),E?Xp(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),tt!==null&&tt.animationManager.zb&&pg(tt.animationManager,a,b),a.g("points",z,b)}}Ct.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Ct.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,E=1/0,b=a.s,z=b.length,tt=0;ttlt&&(ft=-ft),Lt=(0>at?-1:1)*ft+xt,Wt=ht*(Lt-xt)+Et),xt=z.x+2*rt/3,Et=z.y+2*at/3;var kt=xt,Jt=Et;Ie.B(at,0)?Jt=0at?-1:1)*ft+xt,Jt=ht*(kt-xt)+Et),this.Fj(),this.ne(z),this.yf(Lt,Wt),this.yf(kt,Jt),this.ne(vt),this.dd(0,this.getLinkPoint(a,y,tt,!0,!1,E,b)),this.dd(3,this.getLinkPoint(E,b,x,!1,!1,a,y))}else z=E,vt=b,E=this.getLinkPoint(a,y,tt,!0,!1,z,vt),b=this.getLinkPoint(z,vt,x,!1,!1,a,y),this.hasCurviness()?(vt=b.x-E.x,x=b.y-E.y,tt=this.computeCurviness(),a=E.x+vt/2,y=E.y+x/2,z=a,rt=y,Ie.B(x,0)?rt=0tt&&(z=-z),z=(0>x?-1:1)*z+a,rt=vt*(z-a)+y),this.ne(E),this.yf(z,rt),this.ne(b)):(this.ne(E),this.ne(b),rt=on.alloc(),y.mi(rt),at=rt.ca(b),vt.mi(rt),lt=rt.ca(E),(at||lt)&&(tt=y.ga(Qp(tt),new Ot),this.dd(0,this.getLinkPointFromPoint(a,y,tt,b,!0,tt)),x=vt.ga(Qp(x),new Ot),this.dd(1,this.getLinkPointFromPoint(z,vt,x,E,!1,x))),on.free(rt))}else{ft=this.isAvoiding,vt&&(ht&&ft||lt)&&this.Fj();var ne=lt?this.computeCurviness():0;ft=this.getLinkPoint(a,y,tt,!0,ht,E,b),xt=Lt=Et=0,(ht||!rt||lt)&&(Wt=this.computeEndSegmentLength(a,y,tt,!0),xt=this.getLinkDirection(a,y,ft,tt,!0,ht,E,b),lt&&(rt||tt.D(x)||!ht&&tt.x+x.x===1&&tt.y+x.y===1)&&(xt-=ht?90:30,0>ne&&(xt-=180)),0>xt?xt+=360:360<=xt&&(xt-=360),lt&&(Wt+=Math.abs(ne)*(ht?1:2)),xt===0?Et=Wt:xt===90?Lt=Wt:xt===180?Et=-Wt:xt===270?Lt=-Wt:(Et=Wt*Math.cos(xt*Math.PI/180),Lt=Wt*Math.sin(xt*Math.PI/180)),tt.Mc()&<&&(Wt=y.ga(Wo,Ot.alloc()),kt=Ot.allocAt(Wt.x+1e3*Et,Wt.y+1e3*Lt),this.getLinkPointFromPoint(a,y,Wt,kt,!0,ft),Ot.free(Wt),Ot.free(kt))),Wt=this.getLinkPoint(E,b,x,!1,ht,a,y);var se=Jt=kt=0;if(ht||!at||lt){var ye=this.computeEndSegmentLength(E,b,x,!1);se=this.getLinkDirection(E,b,Wt,x,!1,ht,a,y),lt&&(at||tt.D(x)||!ht&&tt.x+x.x===1&&tt.y+x.y===1)&&(se+=ht?0:30,0>ne&&(se+=180)),0>se?se+=360:360<=se&&(se-=360),lt&&(ye+=Math.abs(ne)*(ht?1:2)),se===0?kt=ye:se===90?Jt=ye:se===180?kt=-ye:se===270?Jt=-ye:(kt=ye*Math.cos(se*Math.PI/180),Jt=ye*Math.sin(se*Math.PI/180)),x.Mc()&<&&(x=b.ga(Wo,Ot.alloc()),tt=Ot.allocAt(x.x+1e3*kt,x.y+1e3*Jt),this.getLinkPointFromPoint(E,b,x,tt,!1,Wt),Ot.free(x),Ot.free(tt))}x=ft,(ht||!rt||lt)&&(x=new Ot(ft.x+Et,ft.y+Lt)),tt=Wt,(ht||!at||lt)&&(tt=new Ot(Wt.x+kt,Wt.y+Jt)),!vt&&!ht&&rt&&3Math.abs(y.y-a.y)?(y.x>=a.x?y.x=a.x+9e9:y.x=a.x-9e9,y.y=a.y):(y.y>=a.y?y.y=a.y+9e9:y.y=a.y-9e9,y.x=a.x),y}Vn.prototype.getLinkPointFromPoint=function(a,y,x,E,b,z){if(z===void 0&&(z=new Ot),a===null||y===null)return z.assign(x),z;if(a.isVisible()||(b=a.findVisibleNode(),b!==null&&b!==a&&(y=b.port)),a=null,b=y.panel,b===null||b.se()||(b=b.panel),b===null){b=E.x,E=E.y;var tt=x.x;x=x.y}else{a=b.oe,b=1/(a.m11*a.m22-a.m12*a.m21),tt=a.m22*b;var rt=-a.m12*b,at=-a.m21*b,lt=a.m11*b,ht=b*(a.m21*a.dy-a.m22*a.dx),ft=b*(a.m12*a.dx-a.m11*a.dy);b=E.x*tt+E.y*at+ht,E=E.x*rt+E.y*lt+ft,tt=x.x*tt+x.y*at+ht,x=x.x*rt+x.y*lt+ft}return y.Sj(b,E,tt,x,z),a!==null&&z.transform(a),z};function Kp(a,y){var x=y.Zn;return x===null&&(x=new Xd,x.port=y,x.node=y.part,y.Zn=x),sA(x,a)}Vn.prototype.getLinkPoint=function(a,y,x,E,b,z,tt,rt){if(rt===void 0&&(rt=new Ot),x.sb()&&!Ug(x))return y.ga(x,rt),rt;if(x.$c()){var at=Kp(this,y);if(at!==null){if(rt.assign(at.Zo),b&&this.routing===eA){var lt=Kp(this,tt);if(lt!==null&&at.Gl=ht.y&&a.y<=ht.y+ht.height?rt.y=a.y:(x.Hf(Vl)||x.Hf(sl))&&a.x>=ht.x&&a.x<=ht.x+ht.width&&(rt.x=a.x),Ot.free(at),Ot.free(lt)}}return rt}}return x=y.ga(Qp(x),Ot.alloc()),this.pointsCount>(b?6:2)?(tt=E?this.i(1):this.i(this.pointsCount-2),b&&(tt=Yv(x,tt.copy()))):(at=this.computeSpot(!E,tt),z=Ot.alloc(),tt=tt.ga(Qp(at),z),b&&(tt=Yv(x,tt)),Ot.free(z)),this.getLinkPointFromPoint(a,y,x,tt,E,rt),Ot.free(x),rt},Vn.prototype.getLinkDirection=function(a,y,x,E,b,z,tt,rt){t:if(E.sb())var at=E.x>E.y?E.x>1-E.y?0:E.x<1-E.y?270:315:E.x1-E.y?90:E.x<1-E.y?180:135:.5>E.x?225:.5(z?6:2)?(rt=b?this.i(1):this.i(this.pointsCount-2),rt=z?Yv(at,rt.copy()):x):(x=Ot.alloc(),rt=rt.ga(Wo,x),Ot.free(x)),x=Math.abs(rt.x-at.x)>Math.abs(rt.y-at.y)?rt.x>=at.x?0:180:rt.y>=at.y?90:270,Ot.free(at),at=x}return E.Mc()&&tt.Td(a)&&(at+=180,360<=at&&(at-=360)),Ug(E)||(a=y.li(),a===0)||(45<=a&&135>a?at+=90:135<=a&&225>a?at+=180:225<=a&&315>a&&(at+=270),360<=at&&(at-=360)),at},Vn.prototype.computeEndSegmentLength=function(a,y,x,E){return y!==null&&x.$c()&&(a=Kp(this,y),a!==null)?a.Ju:(a=E?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=E?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},Vn.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=Wo:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===da?ir:y)):(a=y||this.toPort,a===null?a=Wo:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===da?ir:y)),a};function Ug(a){return a===ir||a.x===.5&&a.y===.5}function Qp(a){return a.x===.5&&a.y===.5?a:Wo}Vn.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Ss&&4vt.width||ft.y>vt.height||0>ft.x+ft.width||0>ft.y+ft.height)){if(ft=vo.alloc(),ft.set(tt),ht instanceof zn)rt=ht.Cf(a,y,x,E,b,ft);else if(this.path===ht){if(ht instanceof lo)if(rt=a,vt=E,ht.pickable===!1)rt=!1;else if(ft.multiply(ht.transform),vt)t:{var xt=rt,Et=ft;if(ht.fh(xt,Et))rt=!0;else{if(Et===void 0&&(Et=ht.transform,xt.Re(ht.actualBounds))){rt=!0;break t}rt=xt.left,vt=xt.right;var Lt=xt.top;xt=xt.bottom;var Wt=Ot.alloc(),kt=Ot.alloc(),Jt=Ot.alloc(),ne=vo.alloc();ne.set(Et),ne.bv(ht.transform),ne.Vj(),kt.x=vt,kt.y=Lt,kt.transform(ne),Wt.x=rt,Wt.y=Lt,Wt.transform(ne),Et=!1,ad(ht,Wt,kt,Jt)?Et=!0:(Wt.x=vt,Wt.y=xt,Wt.transform(ne),ad(ht,Wt,kt,Jt)?Et=!0:(kt.x=rt,kt.y=xt,kt.transform(ne),ad(ht,Wt,kt,Jt)?Et=!0:(Wt.x=rt,Wt.y=Lt,Wt.transform(ne),ad(ht,Wt,kt,Jt)&&(Et=!0)))),vo.free(ne),Ot.free(Wt),Ot.free(kt),Ot.free(Jt),rt=Et}}else rt=ht.fh(rt,ft)}else rt=pa(ht,a,E,ft);rt&&(vt=ht,y!==null&&(vt=y(ht)),vt&&(x===null||x(vt))&&b.add(vt)),vo.free(ft)}}}return z===void 0&&vo.free(tt),rt||this.background!==null||this.areaBackground!==null}return z===void 0&&vo.free(tt),!1},Vn.prototype.computeCurve=function(){if(this.Wf===null){var a=this.fromPort,y=this.isOrthogonal;this.Wf=a!==null&&a===this.toPort&&!y}return this.Wf?fl:this.curve},Vn.prototype.computeCorner=function(){if(this.curve===fl)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},Vn.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,E=0;Eat?-Math.PI/2:Math.PI/2;else ht=Math.atan(at/Math.abs(rt)),0>rt&&(ht=Math.PI-ht);tt=y.x;var ft=y.y;rt=E.x-tt;var vt=E.y-ft;for(at=Math.sqrt(rt*rt+vt*vt),Ie.$(rt,0)?vt=0>vt?-Math.PI/2:Math.PI/2:(vt=Math.atan(vt/Math.abs(rt)),0>rt&&(vt=Math.PI-vt)),lt=at/lt,ht=vt-ht,this.dd(a,y),a+=1;aat?-Math.PI/2:Math.PI/2:(at=Math.atan(at/Math.abs(rt)),0>rt&&(at=Math.PI-at)),rt=at+ht,y*=lt,this.L(a,tt+y*Math.cos(rt),ft+y*Math.sin(rt)));this.dd(x,E)}}return!0;case $p:if(z=this.i(a),ft=this.i(x),!z.Xa(y)||!ft.Xa(E)){b=z.x,z=z.y,tt=ft.x,ft=ft.y,lt=(tt-b)*(tt-b)+(ft-z)*(ft-z),rt=y.x,ht=y.y,at=E.x,vt=E.y;var xt=1;if(at-rt!==0){var Et=(vt-ht)/(at-rt);xt=Math.sqrt(1+1/(Et*Et))}else Et=9e9;for(this.dd(a,y),a+=1;ay?y+=360:360<=y&&(y-=360),0>E?E+=360:360<=E&&(E-=360);var tt=E;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,E=315<=E||45>E?0:45<=E&&135>E?90:135<=E&&225>E?180:270;var rt=b.actualBounds.copy(),at=z.actualBounds.copy();if(rt.w()&&at.w()){rt.Bc(g0,g0),at.Bc(g0,g0),rt.Ye(a),at.Ye(x);var lt=Ot.alloc(),ht=Ot.alloc();y===0?x.x>a.x||E===270&&x.ya.x||E===90&&x.y>a.y&&at.right>a.x?(lt.h(x.x,a.y),ht.h(x.x,(a.y+x.y)/2),E===180?(lt.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ht.x=lt.x,ht.y=x.y):E===270&&x.ya.y?(lt.x=a.xat.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):at.right,ht.x=lt.x,ht.y=x.y):E===0&&a.xat.top&&a.yrt.bottom)&&(E===180&&(at.ca(a)||rt.ca(x))?lt.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.ya.y&&(E===180||E===270)&&(lt.y=this.computeMidOrthoPosition(a.x,rt.bottom,x.x,Math.min(x.y,at.top),!0)),ht.x=x.x,ht.y=lt.y),lt.y>rt.top&<.y=rt.left&&x.x<=a.x||a.x<=at.right&&a.x>=x.x?(E===90||E===270)&&(lt.h(Math.max((a.x+x.x)/2,a.x),a.y),ht.h(lt.x,x.y)):(lt.y=E===270||(E===0||E===180)&&x.ya.y&&at.lefta.y?(lt.x=a.x>at.right?this.computeMidOrthoPosition(a.x,a.y,at.right,x.y,!1):a.x>at.left&&(E===270&&a.yat.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):at.left,ht.x=lt.x,ht.y=x.y):E===180&&a.x>at.right&&a.y>at.top&&a.yrt.bottom)&&(E===0&&(at.ca(a)||rt.ca(x))?lt.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.ya.y&&(E===0||E===270)&&(lt.y=this.computeMidOrthoPosition(a.x,rt.bottom,x.x,Math.min(x.y,at.top),!0)),ht.x=x.x,ht.y=lt.y),lt.y>rt.top&<.y=a.x||a.x>=at.left&&a.x<=x.x?(E===90||E===270)&&(lt.h(Math.min((a.x+x.x)/2,a.x),a.y),ht.h(lt.x,x.y)):(lt.y=E===270||(E===0||E===180)&&x.ya.y||E===180&&x.xa.y||E===0&&x.x>a.x&&at.bottom>a.y?(lt.h(a.x,x.y),ht.h((a.x+x.x)/2,x.y),E===270?(lt.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ht.x=x.x,ht.y=lt.y):E===180&&x.xa.x?(lt.y=a.yat.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):at.bottom,ht.x=x.x,ht.y=lt.y):E===90&&a.yat.left&&a.xrt.right)&&(E===270&&(at.ca(a)||rt.ca(x))?lt.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.xa.x&&(E===270||E===180)&&(lt.x=this.computeMidOrthoPosition(rt.right,a.y,Math.min(x.x,at.left),x.y,!1)),ht.x=lt.x,ht.y=x.y),lt.x>rt.left&<.x=rt.top&&x.y<=a.y||a.y<=at.bottom&&a.y>=x.y?(E===0||E===180)&&(lt.h(a.x,Math.max((a.y+x.y)/2,a.y)),ht.h(x.x,lt.y)):(lt.x=E===180||(E===90||E===270)&&x.xa.x&&at.top=a.x?(lt.y=a.y>at.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,at.bottom,!0):a.y>at.top&&(E===180&&a.xat.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):at.top,ht.x=x.x,ht.y=lt.y):E===270&&a.y>at.bottom&&a.x>at.left&&a.xrt.right)&&(E===90&&(at.ca(a)||rt.ca(x))?lt.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.xa.x&&(E===90||E===180)&&(lt.x=this.computeMidOrthoPosition(rt.right,a.y,Math.min(x.x,at.left),x.y,!1)),ht.x=lt.x,ht.y=x.y),lt.x>rt.left&<.x=a.y||a.y>=at.top&&a.y<=x.y?(E===0||E===180)&&(lt.h(a.x,Math.min((a.y+x.y)/2,a.y)),ht.h(x.x,lt.y)):(lt.x=E===180||(E===90||E===270)&&x.x=Xg&&(oA(xt),rt.Bc(xt.Ho*xt.Hx,xt.Go*xt.Ix),rA(xt,a,y,ft,E,rt,!1),at=Zu(xt,ft.x,ft.y)),!xt.abort&&atthis.pointsCount?(y===0||y===180?(rt.x=a.x,rt.y=ft.y):(rt.x=ft.x,rt.y=a.y),this.L(2,rt.x,rt.y),this.m(3,rt.x,rt.y)):(tt=this.i(3),y===0||y===180?Ie.B(rt.x,tt.x)?(rt=y===0?Math.max(rt.x,a.x):Math.min(rt.x,a.x),this.L(2,rt,a.y),this.L(3,rt,tt.y)):Ie.B(rt.y,tt.y)?(Math.abs(a.y-rt.y)<=xt.Go/2&&(this.L(2,rt.x,a.y),this.L(3,tt.x,a.y)),this.m(2,rt.x,a.y)):this.L(2,a.x,rt.y):(y===90||y===270)&&(Ie.B(rt.y,tt.y)?(rt=y===90?Math.max(rt.y,a.y):Math.min(rt.y,a.y),this.L(2,a.x,rt),this.L(3,tt.x,rt)):Ie.B(rt.x,tt.x)?(Math.abs(a.x-rt.x)<=xt.Ho/2&&(this.L(2,a.x,rt.y),this.L(3,a.x,tt.y)),this.m(2,a.x,rt.y)):this.L(2,rt.x,a.y))),x!==null&&(a=this.i(1),tt=this.i(2),a.x!==tt.x&&a.y!==tt.y?y===0||y===180?this.m(2,a.x,tt.y):this.m(2,tt.x,a.y):y===0||y===180?this.m(2,b.x,x.y):this.m(2,x.x,b.y)),Et!==null&&(E===0||E===180?this.yf(z.x,Et.y):this.yf(Et.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(lt.copy()),this.ne(ht.copy())),Ot.free(lt),Ot.free(ht)}},Vn.prototype.computeMidOrthoPosition=function(a,y,x,E,b){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),b?(y+E)/2+z:(a+x)/2+z};function Xv(a){if(a.diagram===null||!a.isAvoiding||!Eg(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=Pg(a.diagram,!0,a.containingGroup,null);for(var E=1;Eud&&Zu(y,ht,ft)!==lt-1&&(Zu(y,x-rt,E)===lt-1?(b=180,ht=x-rt,ft=E):Zu(y,x+rt,E)===lt-1?(b=0,ht=x+rt,ft=E):Zu(y,x,E-at)===lt-1?(b=270,ht=x,ft=E-at):Zu(y,x,E+at)===lt-1&&(b=90,ht=x,ft=E+at));lt>ud&&Zu(y,ht,ft)===lt-1;)x=ht,E=ft,b===0?ht+=rt:b===90?ft+=at:b===180?ht-=rt:ft-=at,--lt;z?lt>ud&&(b===180||b===0?x=Math.floor(x/rt)*rt+rt/2:(b===90||b===270)&&(E=Math.floor(E/at)*at+at/2)):(x=Math.floor(x/rt)*rt+rt/2,E=Math.floor(E/at)*at+at/2),lt>ud&&(z=b,tt=x,ht=E,b===0?(z=90,ht+=at):b===90?(z=180,tt-=rt):b===180?(z=270,ht-=at):b===270&&(z=0,tt+=rt),Zu(y,tt,ht)===lt-1?Kv(a,y,tt,ht,z,!1,z):(tt=x,ht=E,b===0?(z=270,ht-=at):b===90?(z=0,tt+=rt):b===180?(z=90,ht+=at):b===270&&(z=180,tt-=rt),Zu(y,tt,ht)===lt-1&&Kv(a,y,tt,ht,z,!1,z))),a.yf(x,E)}Vn.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),E=this.i(1),b=pi(y,a,x.x,x.y,E.x,E.y),z=0,tt=1;ttthis.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),a=this.path,a!==null)){a.ua=this.ua;for(var y=this.O.s,x=y.length,E=0;E=y&&(E=y-1),at=this.i(E),z.x=Math.min(at.x,z.x),z.y=Math.min(at.y,z.y);E=z.x,at=z.y}else{for(at=0;atWt?Et>xt?(z.x=kt-ne,z.y=xt-ne,b.x=kt+Lt,b.y=xt+Lt):(z.x=kt-ne,z.y=xt+ne,b.x=kt+Lt,b.y=xt-Lt):Et>xt?(z.x=kt+ne,z.y=xt-ne,b.x=kt-Lt,b.y=xt+Lt):(z.x=kt+ne,z.y=xt+ne,b.x=kt-Lt,b.y=xt-Lt)),Ie.$(Wt,kt)&&Ie.$(xt,Et)&&(xt>vt?(Jt>kt?(z.x=kt-ne,z.y=xt-ne,b.x=kt+Lt):(z.x=kt+ne,z.y=xt-ne,b.x=kt-Lt),b.y=xt+Lt):(Jt>kt?(z.x=kt-ne,z.y=xt+ne,b.x=kt+Lt):(z.x=kt+ne,z.y=xt+ne,b.x=kt-Lt),b.y=xt-Lt)),(Ie.$(Wt,kt)&&Ie.$(kt,Jt)||Ie.$(vt,xt)&&Ie.$(xt,Et))&&(Wt=.5*(Wt+Jt),vt=.5*(vt+Et),z.x=Wt,z.y=vt,b.x=Wt,b.y=vt),(ft===1||ft===2&&Ie.$(tt.x,this.i(0).x)&&Ie.$(tt.y,this.i(0).y))&&(x.x=.5*(tt.x+lt.x),x.y=.5*(tt.y+lt.y)),Oh(rt,x.x-E,x.y-at,z.x-E,z.y-at,lt.x-E,lt.y-at),y.set(z),x.set(b),tt=lt}}lt=tt.x,tt=tt.y,ht=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ht=Zd(this,ht.copy(),!1,lr)),lt=.5*(lt+ht.x),tt=.5*(tt+ht.y),Oh(rt,b.x-E,b.y-at,lt-E,tt-at,ht.x-E,ht.y-at),Ot.free(y),Ot.free(x),Ot.free(z),Ot.free(b)}else for(x=3;x=y&&(x=y-1),b=this.i(x-1),tt=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(tt=Zd(this,tt.copy(),!1,lr)),Oh(rt,z.x-E,z.y-at,b.x-E,b.y-at,tt.x-E,tt.y-at);else{for(z=Ot.alloc(),z.assign(this.i(0)),b=Ot.alloc(),b.assign(z),tt=this.computeCorner(),ft=1,lt=0;ft=y-1){if(!z.D(ht))this.computeShortLength(!1)!==0&&(ht=Zd(this,ht.copy(),!1,lr)),Ud(this,rt,-E,-at,z,ht,x);else if(lt===0)for(ft=1;ftz.x?se=vt.x-Et:se=vt.x+Et,kt.y>vt.y?Jt=vt.y+ne:Jt=vt.y-ne,kt=Ot.allocAt(se,ye),Ud(this,rt,ft,Wt,z,kt,Lt),Ot.free(kt),Hp(rt,vt.x+ft,vt.y+Wt,xt+ft,Jt+Wt),z.h(xt,Jt)}else Ie.B(z.x,vt.x)&&Ie.B(vt.y,kt.y)?(Et=Math.min(tt,Math.abs(vt.y-b.y)/2),Et=ne=Math.min(Et,Math.abs(kt.x-vt.x)/2),Ie.B(ne,0)?(Ud(this,rt,ft,Wt,z,vt,Lt),z.assign(vt)):(se=vt.x,ye=vt.y,xt=se,Jt=ye,vt.y>z.y?ye=vt.y-Et:ye=vt.y+Et,kt.x>vt.x?xt=vt.x+ne:xt=vt.x-ne,kt=Ot.allocAt(se,ye),Ud(this,rt,ft,Wt,z,kt,Lt),Ot.free(kt),Hp(rt,vt.x+ft,vt.y+Wt,xt+ft,Jt+Wt),z.h(xt,Jt))):(Ud(this,rt,ft,Wt,z,vt,Lt),z.assign(vt));b.assign(ht),ft=lt}Ot.free(z)}Wp=rt}else rt=this.i(1).copy(),rt.x-=E,rt.y-=at,this.computeShortLength(!0)!==0&&(b=Zd(this,b,!0,z)),this.computeShortLength(!1)!==0&&(rt=Zd(this,rt,!1,z)),a.type=Qn.j,a.startX=b.x,a.startY=b.y,a.endX=rt.x,a.endY=rt.y;return this.lk=!0,a};function Jp(a,y,x,E){return a=x-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=E-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),Ie.$(a,0)?y:Ie.$(y,0)?a:Math.sqrt(a*a+y*y)))}function Zd(a,y,x,E){var b=a.pointsCount;if(2>b)return y;if(x){var z=a.i(1);if(x=z.x-E.x,z=z.y-E.y,E=Jp(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!0),a>b&&(a=b),b=a*(z-y.y)/E,y.x+=a*(x-y.x)/E,y.y+=b}else{if(z=a.i(b-2),x=z.x-E.x,z=z.y-E.y,E=Jp(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!1),a>b&&(a=b),b=a*(y.y-z)/E,y.x-=a*(y.x-x)/E,y.y-=b}return y}function Qv(a,y,x,E){for(var b=a.pointsCount,z=y;Ie.$(y.x,z.x)&&Ie.$(y.y,z.y);){if(x>=b)return b-1;z=a.i(x++)}if(!Ie.$(y.x,z.x)&&!Ie.$(y.y,z.y))return x-1;for(var tt=z;Ie.$(y.x,z.x)&&Ie.$(z.x,tt.x)&&(!E||(y.y>=z.y?z.y>=tt.y:z.y<=tt.y))||Ie.$(y.y,z.y)&&Ie.$(z.y,tt.y)&&(!E||(y.x>=z.x?z.x>=tt.x:z.x<=tt.x));){if(x>=b)return b-1;tt=a.i(x++)}return x-2}Vn.prototype.computeJumpLength=function(){return 10};function Ud(a,y,x,E,b,z,tt){if(!tt&&ld(a)){tt=a.computeJumpLength();var rt=tt/2,at=[],lt=0;if(a.isVisible()&&(lt=P5(a,b,z,at)),0ft-tt);)lt--,ft=Math.max(ht-rt,z.x);ht=z.y-tt+E,ft+=x,xt=z.y+E,a.curve===Hh?Gg(y,ft,xt,!1):Oh(y,vt,ht,ft,ht,ft,xt)}else if(Ie.B(b.x,z.x))if(b.yht-tt);)lt--,ht=Math.max(ft-rt,z.y);ft=z.x-tt+x,xt=z.x+x,ht+=E,a.curve===Hh?Gg(y,xt,ht,!1):Oh(y,ft,vt,ft,ht,xt,ht)}}}y.lineTo(z.x+x,z.y+E)}function P5(a,y,x,E){var b=a.diagram;if(b===null||y.D(x))return 0;for(b=b.layers;b.next();){var z=b.value;if(z!==null&&z.visible){z=z.Pa.s;for(var tt=z.length,rt=0;rttt.x&&ht.x>=lt.x||lt.xtt.y&&ht.y>=lt.y||lt.ytt&&Math.min(Et,Lt)ht&&!Ie.B(Et,Lt)){rt.x=ht,rt.y=tt,ht=!0;break t}}else if(Ie.B(ft,xt)&&Ie.B(Et,Lt)&&Math.min(ht,vt)Et&&Math.min(tt,Wt)ft&&!Ie.B(tt,Wt)){rt.x=Et,rt.y=ft,ht=!0;break t}rt.x=0,rt.y=0,ht=!1}ht&&(b?x.push(rt.x):x.push(rt.y)),tt=lt}Ot.free(rt)}function ld(a){return a=a.curve,a===Vg||a===Hh}function qp(a,y){(y||ld(a))&&(y=a.diagram,y===null||y.animationManager.isTicking||y.Eh.contains(a)||a.ml.width===0&&a.ml.height===0||y.Eh.add(a,a.ml.copy()))}Vn.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var x=y.diagram;if(x!==null&&!x.animationManager.isTicking){var E=!1;for(x=x.layers;x.next();){var b=x.value;if(b.visible){if(b===y){E=!0;var z=!1;b=b.Pa.s;for(var tt=b.length,rt=0;rta&&De(a,">= 0",Vn,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),this.bb())}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:NaN},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.qc(),this.g("fromShortLength",y,a))}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:da},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),(y.$c()||a.$c())&&this.toNode!==null&&tl(this.toPort),this.bb())}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:NaN},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&De(a,">= 0",Vn,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),this.bb())}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:NaN},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.qc(),this.g("toShortLength",y,a))}},isLabeledLink:{get:function(){return this.wd===null?!1:0=E&&(z=E-1);var rt=this.i(z-1),at=this.i(z);Ie.Dl(b.x,b.y,tt.x,tt.y,rt.x,rt.y,at.x,at.y,.5,a),y=Math.min(at.x,y),x=Math.min(at.y,x),b=at}else for(b=this.i(0),z=this.i(1),y=Math.min(b.x,z.x),x=Math.min(b.y,z.y),a.h(b.x,b.y,0,0),a.Ye(z),b=2;bE&&(E=-E)):Ie.$(E.y,b.y)?(E=b.x-E.x,0>E&&(E=-E)):E=Math.sqrt(E.Bf(b)),a.push(E)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,x=y.length,E=a=0;Ethis.pointsCount)return this.lk=!0,this.ua;this.ua=this.makeGeometry()}return this.ua}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!Ug(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!Ug(this.computeSpot(!1))?a-2:a-1}},adjusting:{get:function(){return this.qk},set:function(a){var y=this.qk;y!==a&&(this.qk=a,this.g("adjusting",y,a))}},corner:{get:function(){return this.Om},set:function(a){var y=this.Om;y!==a&&(this.Om=a,this.qc(),this.g("corner",y,a))}},curve:{get:function(){return this.Qm},set:function(a){var y=this.Qm;y!==a&&(this.Qm=a,this.bb(),this.qc(),qp(this,y===Hh||y===Vg||a===Hh||a===Vg),this.g("curve",y,a))}},curviness:{get:function(){return this.Rm},set:function(a){var y=this.Rm;y!==a&&(this.Rm=a,this.bb(),this.qc(),this.g("curviness",y,a))}},routing:{get:function(){return this.qj},set:function(a){var y=this.qj;y!==a&&(this.qj=a,this.Wf=null,this.bb(),qp(this,(y.value&2)===2||(a.value&2)===2),this.g("routing",y,a))}},smoothness:{get:function(){return this.po},set:function(a){var y=this.po;y!==a&&(this.po=a,this.qc(),this.g("smoothness",y,a))}},key:{get:function(){var a=this.diagram;if(a!==null&&a.model.ri())return a.model.Ac(this.data)}}}),Vn.prototype.invalidateOtherJumpOvers=Vn.prototype.Xo,Vn.prototype.findClosestSegment=Vn.prototype.ez,Vn.prototype.updateRoute=Vn.prototype.vg,Vn.prototype.invalidateRoute=Vn.prototype.bb,Vn.prototype.rollbackRoute=Vn.prototype.rv,Vn.prototype.commitRoute=Vn.prototype.zf,Vn.prototype.startRoute=Vn.prototype.uh,Vn.prototype.clearPoints=Vn.prototype.Fj,Vn.prototype.removePoint=Vn.prototype.pv,Vn.prototype.addPointAt=Vn.prototype.yf,Vn.prototype.addPoint=Vn.prototype.ne,Vn.prototype.insertPointAt=Vn.prototype.m,Vn.prototype.insertPoint=Vn.prototype.Kz,Vn.prototype.setPointAt=Vn.prototype.L,Vn.prototype.setPoint=Vn.prototype.dd,Vn.prototype.getPoint=Vn.prototype.i,Vn.prototype.getOtherPort=Vn.prototype.Cz,Vn.prototype.getOtherNode=Vn.prototype.To;var Vd=null,Yd=null,Jv=new sn(Vn,"Normal",1),M5=new sn(Vn,"Orthogonal",2),F5=new sn(Vn,"AvoidsNodes",6),eA=new sn(Vn,"AvoidsNodesStraight",7),Ss=new sn(Vn,"None",0),fl=new sn(Vn,"Bezier",9),Hh=new sn(Vn,"JumpGap",10),Vg=new sn(Vn,"JumpOver",11),s0=new sn(Vn,"End",17),_p=new sn(Vn,"Scale",18),$p=new sn(Vn,"Stretch",19),l0=new sn(Vn,"OrientAlong",21),u0=new sn(Vn,"OrientPlus90",22),h0=new sn(Vn,"OrientMinus90",23),qv=new sn(Vn,"OrientOpposite",24),tm=new sn(Vn,"OrientUpright",25),c0=new sn(Vn,"OrientPlus90Upright",26),d0=new sn(Vn,"OrientMinus90Upright",27),em=new sn(Vn,"OrientUpright45",28),nA=16,iA=14,g0=8;Vn.className="Link",Vn.Normal=Jv,Vn.Orthogonal=M5,Vn.AvoidsNodes=F5,Vn.AvoidsNodesStraight=eA,Vn.None=Ss,Vn.Bezier=fl,Vn.JumpGap=Hh,Vn.JumpOver=Vg,Vn.End=s0,Vn.Scale=_p,Vn.Stretch=$p,Vn.OrientAlong=l0,Vn.OrientPlus90=u0,Vn.OrientMinus90=h0,Vn.OrientOpposite=qv,Vn.OrientUpright=tm,Vn.OrientPlus90Upright=c0,Vn.OrientMinus90Upright=d0,Vn.OrientUpright45=em,Vn.EndSegmentStep=8,Vn.CurvinessStart=nA,Vn.SpacingMin=iA,Vn.OrthoShortCut=g0;function nm(a,y,x,E){ao(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=E,this.links=[]}nm.prototype.Sl=function(){if(!this.qq){var a=this.links;0=a.width||0>=a.height)){var y=a.y,x=a.x+a.width,E=a.y+a.height;if(this.Nd=Math.floor((a.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((y-this.sc)/this.sc)*this.sc,this.En=Math.ceil((x+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((E+2*this.sc)/this.sc)*this.sc,a=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),y=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di=ud&&(x[E]=_v)}f0.prototype.Yj=function(a,y,x,E){if(a>this.En||a+xthis.Fn||y+Ea&&(x+=a,a=0),0>y&&(b+=y,y=0),0>x||0>b)return!0;for(E=Math.min(a+x-1,this.di)|0,x=Math.min(y+b-1,this.ei)|0;a<=E;a++){b=this.ac[a];for(var z=y;z<=x;z++)if(b[z]===Wh)return!1}return!0};function Uu(a,y,x,E,b,z,tt,rt,at){if(!(ytt||xat)){var lt=y|0,ht=x|0,ft=a.ac[lt][ht];if(ft>=ud&&ft=a.ac[lt][ht]);)a.ac[lt][ht]=ft,ft+=1,b?ht+=E:lt+=E;if(lt=b?ht:lt,b)if(0lt;x+=E)Uu(a,y,x,1,!b,z,tt,rt,at),Uu(a,y,x,-1,!b,z,tt,rt,at);else if(0lt;y+=E)Uu(a,y,x,1,!b,z,tt,rt,at),Uu(a,y,x,-1,!b,z,tt,rt,at)}}function im(a,y,x,E,b,z,tt,rt,at){y|=0,x|=0;var lt=Wh,ht=ud;for(a.ac[y][x]=ht;lt===Wh&&y>z&&yrt&&xz&&yrt&&x=Math.abs(rt-lt)&&1>=Math.abs(at-ht))a.abort=!0;else{var ft=z.x;E=z.y,y=z.x+z.width;var vt=z.y+z.height;ft-=a.Nd,ft/=a.rc,E-=a.Od,E/=a.sc,y-=a.Nd,y/=a.rc,vt-=a.Od,vt/=a.sc,z=Math.max(0,Math.min(a.di,ft|0)),y=Math.min(a.di,Math.max(0,y|0)),ft=Math.max(0,Math.min(a.ei,E|0)),vt=Math.min(a.ei,Math.max(0,vt|0)),E=a.ac,rt|=0,at|=0,lt|=0,ht|=0;var xt=x===0||x===90?1:-1;if(x=x===90||x===270,E[rt][at]===Wh?(im(a,rt,at,xt,x,z,y,ft,vt),im(a,rt,at,1,!x,z,y,ft,vt),im(a,rt,at,-1,!x,z,y,ft,vt)):im(a,rt,at,xt,x,rt,at,rt,at),E[lt][ht]===Wh?(om(a,lt,ht,b===0||b===90?1:-1,b===90||b===270,z,y,ft,vt),om(a,lt,ht,1,!(b===90||b===270),z,y,ft,vt),om(a,lt,ht,-1,!(b===90||b===270),z,y,ft,vt)):om(a,lt,ht,xt,x,lt,ht,lt,ht),x=ii(),tt&&aA(a,lt,ht,b,rt,at,x))for((x[0]!==lt||x[1]!==ht)&&(x.unshift(ht),x.unshift(lt)),(x[x.length-2]!==rt||x[x.length-1]!==at)&&(x.push(rt),x.push(at)),a=ud,b=x[x.length-2],tt=x[x.length-1],E[b][tt]=a++,z=x.length-4;0<=z;z-=2)for(b=x[z+2],tt=x[z+3],y=x[z],lt=x[z+1];y>b?b++:ytt?tt++:ltb)ht--;else break;else if(ft>z)ft--;else break;var vt=rt[ht][ft];if(vt===0||vt===$v)break;at=ht,lt=ft}for(;;){if(ht=E,ft=at,vt=lt,E===0?vtz&&(ht=270,vt--):E===90?ftb&&(ht=180,ft--):E===180?vtz&&(ht=270,vt--):ftb&&(ht=180,ft--),ft=rt[ft][vt],ht!==E&&ft!==0&&ft!==$v){if(tt.push(at),tt.push(lt),aA(a,at,lt,ht,b,z,tt))return!0;tt.pop(),tt.pop()}if(rt[at][lt]=$v,E===0){if(at===y)return!1;at--}else if(E===90){if(lt===x)return!1;lt--}else if(E===180){if(at===y)return!1;at++}else{if(lt===x)return!1;lt++}}}Vt.Object.defineProperties(f0.prototype,{bounds:{get:function(){return new on(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(a){0=x?180:0}switch(a=180*Math.atan2(a.height,a.width)/Math.PI,y){case 3:return x>a&&x<=180+a?180:270;case 5:return x>180-a&&x<=360-a?270:0;case 12:return x>a&&x<=180+a?90:0;case 10:return x>180-a&&x<=360-a?180:90;case 7:return 90180+a&&x<=360-a?270:0;case 13:return 180a&&180>=x?90:0;case 14:return x>a&&x<=180-a?90:x>180-a&&270>=x?180:0;case 11:return x>180-a&&x<=180+a?180:x>180+a?270:90}return E&&y!==15&&(x-=15,0>x&&(x+=360)),x>a&&x<180-a?90:x>=180-a&&x<=180+a?180:x>180+a&&x<360-a?270:0}Xd.prototype.Sl=function(){this.pe.length=0};function sA(a,y){var x=a.pe;if(x.length===0){t:if(!a.ap){x=a.ap,a.ap=!0;var E=null,b=a.node,z=b instanceof to?b:null;if(z===null||z.isSubGraphExpanded)var tt=b.isTreeExpanded?b.findLinksConnected(a.port.portId):b.qx();else{if(!z.actualBounds.w()){a.ap=x;break t}E=z,tt=E.Lu()}z=a.pe.length=0;var rt=a.port.ga(Or,Ot.alloc()),at=a.port.ga(Ka,Ot.alloc());for(b=on.allocAt(rt.x,rt.y,0,0),b.Ye(at),Ot.free(rt),Ot.free(at),rt=Ot.allocAt(b.x+b.width/2,b.y+b.height/2),at=a.port.li(),tt=tt.iterator;tt.next();){var lt=tt.value;if(lt.isVisible()&<.fromPort!==lt.toPort){var ht=lt.fromPort===a.port||lt.fromNode!==null&<.fromNode.Td(E),ft=lt.computeSpot(ht,a.port);if(ft.$c()&&(ht=ht?lt.toPort:lt.fromPort,ht!==null)){var vt=ht.part;if(vt!==null){var xt=vt.findVisibleNode();xt!==null&&xt!==vt&&(vt=xt,ht=vt.port),ht=lt.computeOtherPoint(vt,ht),vt=rt.ab(ht),vt-=at,0>vt?vt+=360:360<=vt&&(vt-=360),ft=L5(b,ft,vt,lt.isOrthogonal),ft===0?(ft=4,180vt&&(vt+=360)),xt=a.pe[z],xt===void 0?(xt=new t1(lt,vt,ft),a.pe[z]=xt):(xt.link=lt,xt.angle=vt,xt.Nc=ft),xt.hv.set(ht),z++}}}}for(Ot.free(rt),a.pe.sort(Xd.prototype.j),at=a.pe.length,E=-1,z=rt=0;zMath.abs(Lt)?(Jt=Math.abs(Lt)/vt,vt=Math.abs(Lt)):Jt=1;break;case 2:xt>Math.abs(ne)?(Jt=Math.abs(ne)/xt,xt=Math.abs(ne)):Jt=1;break;case 1:ft>Math.abs(Lt)?(Jt=Math.abs(Lt)/ft,ft=Math.abs(Lt)):Jt=1;break;default:case 4:ht>Math.abs(ne)?(Jt=Math.abs(ne)/ht,ht=Math.abs(ne)):Jt=1}kt=0}var Ge=se.Zo;if(E===Zv){switch(se=se.link.computeThickness(),se*=Jt,Ge.set(ye),Et){case 8:Ge.x=ye.x+Lt/2+vt/2-kt-se/2;break;case 2:Ge.y=ye.y+ne/2+xt/2-kt-se/2;break;case 1:Ge.x=ye.x+Lt/2-ft/2+kt+se/2;break;default:case 4:Ge.y=ye.y+ne/2-ht/2+kt+se/2}kt+=se}else{var ni=.5;E===Yp&&(ni=(se.Uo+1)/(se.Gl+1)),Ge.x=ye.x+Lt*ni,Ge.y=ye.y+ne*ni}}}for(Ot.free(rt),Ot.free(at),Ot.free(tt),Ot.free(lt),ye=a.pe,z=0;zy.Nc?1:a.angley.angle?1:0},Xd.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,ir,y.fromPort===this.port),E=a.Uo;if(0>E)return x;var b=a.Gl;if(1>=b||!y.isOrthogonal)return x;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(E=b-1-E),((a=a.Nc===2||a.Nc===4)?y.y=y-1?(z=0,E=x,b+=tt+20,tt=0):z++}},Pr.prototype.doMinimalNetworkLayout=function(){var a=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var y=this.arrangementOrigin.x,x=y,E=this.arrangementOrigin.y,b=0,z=0,tt=this.network.vertexes.iterator;tt.next();){var rt=tt.value.node;if(!(rt===null||rt instanceof Vn)&&(p0(rt),this.rh(rt))){var at=rt.measuredBounds,lt=at.width;at=at.height,rt.moveTo(x,E),rt instanceof to&&(rt.rh=!1),x+=Math.max(lt,50)+20,z=Math.max(z,Math.max(at,50)),b>=a-1?(b=0,x=y,E+=z+20,z=0):b++}}},Pr.prototype.rh=function(a){return!!(!a.location.w()||a instanceof to&&a.rh)};function Cc(a,y,x,E,b,z,tt,rt){for(x=x.iterator;x.next();){var at=x.value;E&&!at.isTopLevel||b!==null&&!b(at)||!at.canLayout()||(z&&at instanceof ri?at.isLinkLabel||(at instanceof to&&at.layout===null?Cc(a,y,at.memberParts,!1,b,z,tt,rt):(p0(at),y.add(at))):tt&&at instanceof Vn?y.add(at):!rt||!at.Zc()||at instanceof ri||(p0(at),y.add(at)))}}function p0(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Pr.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new on),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Pr.prototype.ex=function(a){var y=new bn;return a instanceof Ue?(Cc(this,y,a.nodes,!0,null,!0,!0,!0),Cc(this,y,a.links,!0,null,!0,!0,!0),Cc(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof to?Cc(this,y,a.memberParts,!1,null,!0,!0,!0):Cc(this,y,a.iterator,!1,null,!0,!0,!0),y},Pr.prototype.initialOrigin=function(a){var y=this.group;if(y!==null){var x=y.position.copy();return(isNaN(x.x)||isNaN(x.y))&&x.set(a),y=y.placeholder,y!==null&&(x=y.ga(Or),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},Vt.Object.defineProperties(Pr.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},group:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a,a!==null&&(this.H=a.diagram))}},isOngoing:{get:function(){return this.sn},set:function(a){this.sn!==a&&(this.sn=a)}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a,a||(this.xn=!0)}},isViewportSized:{get:function(){return this.yn},set:function(a){this.yn!==a&&(this.yn=a)&&this.C()}},isRouting:{get:function(){return this.vn},set:function(a){this.vn!==a&&(this.vn=a)}},isRealtime:{get:function(){return this.un},set:function(a){this.un!==a&&(this.un=a)}},isValidLayout:{get:function(){return this.xn},set:function(a){this.xn!==a&&(this.xn=a,a||(a=this.diagram,a!==null&&(a.xh=!0)))}},network:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,a!==null&&(a.layout=this))}},boundsComputation:{get:function(){return this.Em},set:function(a){this.Em!==a&&(this.Em=a,this.C())}},arrangementOrigin:{get:function(){return this.Am},set:function(a){this.Am.D(a)||(this.Am.assign(a),this.C())}}}),Pr.prototype.collectParts=Pr.prototype.ex,Pr.prototype.getLayoutBounds=Pr.prototype.ni,Pr.prototype.invalidateLayout=Pr.prototype.C,Pr.className="Layout";function dr(a){ao(this),this.Sc=a,this.wf=new bn,this.ye=new bn,this.Es=new hi,this.zs=new hi}dr.prototype.clear=function(){if(this.wf)for(var a=this.wf.iterator;a.next();)a.value.clear();if(this.ye)for(a=this.ye.iterator;a.next();)a.value.clear();this.wf=new bn,this.ye=new bn,this.Es=new hi,this.zs=new hi},dr.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutNetwork"+(this.layout!==null?"("+this.layout.toString()+")":"");if(0>=a)return y;if(y+=" vertexes: "+this.wf.count+" edges: "+this.ye.count,1a?a=0:1a?a=0:1=a&&De(a,"> 0",cr,"maxLines"),Mu(this),this.da.Jq=a,this.v(),this.g("maxLines",y,a))}},metrics:{get:function(){return{arrSize:this.Qc!==null?this.Qc:[this.Cb],arrText:this.Qb!==null?this.Qb:[this.ze],maxLineWidth:this.Cb,fontHeight:this.df}}},choices:{get:function(){return this.Gm},set:function(a){var y=this.Gm;y!==a&&(this.Gm=a,this.g("choices",y,a))}}});var kp=null,Tp=null,Fv=new sn(cr,"None",0),Sy=new sn(cr,"WrapFit",1),Lv=new sn(cr,"WrapDesiredSize",2),xy=new sn(cr,"WrapBreakAll",3),Dv=new sn(cr,"OverflowClip",0),Op=new sn(cr,"OverflowEllipsis",1),n0=new sn(cr,"FormatTrim",0),wy=new sn(cr,"FormatNone",0),A5=/[ \u200b\u00ad]/,Bv=new ji,Ey=0,jp=new ji,bv=0,i0="...",Py="",Os=null,zp=!1;cr.className="TextBlock";function Nv(){this.nc=!1,this.Hd=null,this.Xf=In,this.gq=n0,this.Jq=1/0,this.$q=Dv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Xl,this.$r=Lv}Nv.prototype.copy=function(){var a=new Nv;return a.Hd=this.Hd,a.Xf=this.Xf,a.gq=this.gq,a.Jq=this.Jq,a.$q=this.$q,a.Dr=this.Dr,a.Er=this.Er,a.Or=this.Or,a.Pr=this.Pr,a.Qr=this.Qr,a.vj=this.vj,a.Yr=this.Yr,a.$r=this.$r,a},cr.getEllipsis=function(){return i0},cr.setEllipsis=function(a){i0=a,jp=new ji,bv=0},cr.getBaseline=function(){return kp},cr.setBaseline=function(a){kp=a},cr.getUnderline=function(){return Tp},cr.setUnderline=function(a){Tp=a},cr.isValidFont=function(a){if(zp||(Os=zr?new jl(null).context:null,zp=!0),Os===null)return!0;var y=Os.font;if(a===y||a==="10px sans-serif")return!0;Os.font="10px sans-serif",Os.font=a;var x=Os.font;if(x!=="10px sans-serif")return Os.font=y,!0;Os.font="19px serif";var E=Os.font;return Os.font=a,x=Os.font,Os.font=y,x!==E},cr.FormatNone=wy,cr.FormatTrim=n0,cr.None=Fv,cr.OverflowClip=Dv,cr.OverflowEllipsis=Op,cr.WrapBreakAll=xy,cr.WrapDesiredSize=Lv,cr.WrapFit=Sy;function Gu(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Gu.prototype.copy=function(){var a=new Gu;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},Gu.className="GradElementSettings";function js(a,y){Se.call(this),this.Eg=null,this.qo="",this.Xg=wa,this.Nk=On,this.Zg=this.Hd=null,this.Mk=Wo,this.Xf=In,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,typeof a=="string"?this.source=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}var Rg;Yt(js,Se),js.prototype.cloneProtected=function(a){Se.prototype.cloneProtected.call(this,a),a.qo=this.qo,a.element=this.Eg,a.Xg=this.Xg.J(),a.Nk=this.Nk,a.Xf=this.Xf,a.Hd=this.Hd,a.Zg=this.Zg,a.Mk=this.Mk.J(),a.en=this.en,a.rl=this.rl},js.prototype.qb=function(a){a===In||a===vi||a===Io?this.imageStretch=a:Se.prototype.qb.call(this,a)},js.prototype.toString=function(){return"Picture("+this.source+")#"+Ao(this)};function Hg(a){a===void 0&&(a=""),a!==""?Rg[a]&&(delete Rg[a],Rp--):(Rg=new ji,Rp=0)}function Iy(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var E=y.Bg.copy();if(E!=null){for(E=E.iterator;E.next();){var b=E.value;b.N();var z=y.getAttribute("src")||"",tt=b.Og.I(z);if(tt!==null)for(var rt=tt.length,at=0;at=E.width&&(z=z+Et.offsetX+(ft*Et.x-E.width*Et.x)),vt>=E.height&&(tt=tt+Et.offsetY+(vt*Et.y-E.height*Et.y)),at=Math.min(E.width,ft),rt=Math.min(E.height,vt);break;case On:ft=E.width,vt=E.height;break;case vi:case Io:xt===vi?(xt=Math.min(E.height/vt,E.width/ft),ft*=xt,vt*=xt):xt===Io&&(xt=Math.max(E.height/vt,E.width/ft),ft*=xt,vt*=xt,ft>=E.width&&(z=(z+Et.offsetX+(ft*Et.x-E.width*Et.x)/ft)*at),vt>=E.height&&(tt=(tt+Et.offsetY+(vt*Et.y-E.height*Et.y)/vt)*rt),at*=1/(ft/E.width),rt*=1/(vt/E.height),ft=E.width,vt=E.height)}xt=this.Df()*y.scale;var Lt=ft*xt*vt*xt,Wt=at*rt/Lt,kt=x.__goCache;xt=null;var Jt=C5;if(!b){if(x.sq&&kt!==void 0&&4Jt*Jt)for(kt.gi===null&&(Fy(kt,4,lt,ht,x),Fy(kt,16,lt,ht,x)),b=kt.gi,lt=b.length,ht=0;hta)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,x/3);var E="rr"+y+","+x+","+a,b=Ie.Mf[E];if(b!==void 0)return b;var z=a*Ie.wg;return b=new Qn().add(new Kr(a,0,!0).add(new Oo(hr,y-a,0)).add(new Oo(Na,y,a,y-z,0,y,z)).add(new Oo(hr,y,x-a)).add(new Oo(Na,y-a,x,y,x-z,y-z,x)).add(new Oo(hr,a,x)).add(new Oo(Na,0,x-a,z,x,0,x-z)).add(new Oo(hr,0,a)).add(new Oo(Na,a,0,0,z,z,0).close())),1b.x&&a.y>b.y&&a.rightb.x&&y.y>b.y&&y.right=x.maxSelectionCount)){this.G^=4096;var E=!1;if(x!==null){E=x.skipsUndoManager,x.skipsUndoManager=!0;var b=x.selection;b.ka(),a?b.add(this):b.remove(this),b.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),x!==null&&(x.$b(),x.skipsUndoManager=E)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(a){var y=(this.G&524288)!==0;if(y!==a){this.G^=524288;var x=this.diagram;x!==null&&(x=x.highlighteds,x.ka(),a?x.add(this):x.remove(this),x.freeze()),this.g("isHighlighted",y,a),this.N(),a=this.highlightedChanged,a!==null&&a(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(a){var y=(this.G&8192)!==0;y!==a&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",y,a),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(a){var y=(this.G&262144)!==0;y!==a&&(this.G^=262144,this.g("isAnimated",y,a))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(a){var y=this.highlightedChanged;y!==a&&(zs(this),this.P.oq=a,this.g("highlightedChanged",y,a))}},selectionObjectName:{get:function(){return this.P!==null?this.P.vr:""},set:function(a){var y=this.selectionObjectName;y!==a&&(zs(this),this.P.vr=a,this.Ug=null,this.g("selectionObjectName",y,a))}},selectionAdornmentTemplate:{get:function(){return this.P!==null?this.P.tr:null},set:function(a){var y=this.selectionAdornmentTemplate;y!==a&&(zs(this),this.P.tr=a,this.g("selectionAdornmentTemplate",y,a))}},selectionObject:{get:function(){if(this.Ug===null){var a=this.selectionObjectName;a!==null&&a!==""?(a=this.fb(a),a!==null?this.Ug=a:this.Ug=this):this instanceof Vn?(a=this.path,a!==null?this.Ug=a:this.Ug=this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return this.P!==null?this.P.ur:null},set:function(a){var y=this.selectionChanged;y!==a&&(zs(this),this.P.ur=a,this.g("selectionChanged",y,a))}},resizeAdornmentTemplate:{get:function(){return this.P!==null?this.P.fr:null},set:function(a){var y=this.resizeAdornmentTemplate;y!==a&&(zs(this),this.P.fr=a,this.g("resizeAdornmentTemplate",y,a))}},resizeObjectName:{get:function(){return this.P!==null?this.P.hr:""},set:function(a){var y=this.resizeObjectName;y!==a&&(zs(this),this.P.hr=a,this.g("resizeObjectName",y,a))}},resizeObject:{get:function(){var a=this.resizeObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},resizeCellSize:{get:function(){return this.P!==null?this.P.gr:or},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),zs(this),this.P.gr=a,this.g("resizeCellSize",y,a))}},rotateAdornmentTemplate:{get:function(){return this.P!==null?this.P.ir:null},set:function(a){var y=this.rotateAdornmentTemplate;y!==a&&(zs(this),this.P.ir=a,this.g("rotateAdornmentTemplate",y,a))}},rotateObjectName:{get:function(){return this.P!==null?this.P.jr:""},set:function(a){var y=this.rotateObjectName;y!==a&&(zs(this),this.P.jr=a,this.g("rotateObjectName",y,a))}},rotateObject:{get:function(){var a=this.rotateObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},rotationSpot:{get:function(){return this.P!==null?this.P.lr:da},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),zs(this),this.P.lr=a,this.g("rotationSpot",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;y!==a&&(this.ec=a,this.g("text",y,a))}},containingGroup:{get:function(){return this.Ah},set:function(a){if(this.Zc()){var y=this.Ah;if(y!==a){a===null||this!==a&&!a.Td(this)||(this===a&&Xt("Cannot make a Group a member of itself: "+this.toString()),Xt("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?Vv(y,this):this instanceof to&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Uv(a,this):this instanceof to&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var E=this.data,b=x.model;if(E!==null&&b.Xj()){var z=b.wa(a!==null?a.data:null);b.mp(E,z)}}if(E=this.containingGroupChanged,E!==null&&(b=!0,x!==null&&(b=x.aa,x.aa=!0),E(this,y,a),x!==null&&(x.aa=b)),this instanceof to){for(x=new bn,Ac(x,this,!0,0,!0),x=x.iterator;x.next();)if(E=x.value,E instanceof ri)for(E=E.linksConnected;E.next();)Zg(E.value)}if(this instanceof ri){for(x=this.linksConnected;x.next();)Zg(x.value);x=this.labeledLink,x!==null&&Zg(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&mg(y,-1,a))}}else Xt("cannot set the Part.containingGroup of a Link or Adornment")}},containingGroupChanged:{get:function(){return this.P!==null?this.P.Kp:null},set:function(a){var y=this.containingGroupChanged;y!==a&&(zs(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof ri&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(zs(this),this.P.Cq=a,this.g("layoutConditions",y,a))}},dragComputation:{get:function(){return this.P!==null?this.P.Up:null},set:function(a){var y=this.dragComputation;y!==a&&(zs(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:_t},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),zs(this),this.P.zr=a,this.N(),this.g("shadowOffset",y,a))}},shadowColor:{get:function(){return this.P!==null?this.P.yr:"gray"},set:function(a){var y=this.shadowColor;y!==a&&(zs(this),this.P.yr=a,this.N(),this.g("shadowColor",y,a))}},shadowBlur:{get:function(){return this.P!==null?this.P.Vg:4},set:function(a){var y=this.shadowBlur;y!==a&&(zs(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),Li.prototype.invalidateLayout=Li.prototype.C,Li.prototype.findCommonContainingGroup=Li.prototype.px,Li.prototype.isMemberOf=Li.prototype.Td,Li.prototype.findTopLevelPart=Li.prototype.sz,Li.prototype.findSubGraphLevel=Li.prototype.oz,Li.prototype.ensureBounds=Li.prototype.Va,Li.prototype.getDocumentBounds=Li.prototype.mi,Li.prototype.findObject=Li.prototype.fb,Li.prototype.moveTo=Li.prototype.moveTo,Li.prototype.invalidateAdornments=Li.prototype.Wb,Li.prototype.clearAdornments=Li.prototype.Ej,Li.prototype.removeAdornment=Li.prototype.Jf,Li.prototype.addAdornment=Li.prototype.bh,Li.prototype.findAdornment=Li.prototype.Pj,Li.prototype.updateTargetBindings=Li.prototype.La;var Hy=!1;Li.className="Part",Li.LayoutNone=0,Li.LayoutAdded=1,Li.LayoutRemoved=2,Li.LayoutShown=4,Li.LayoutHidden=8,Li.LayoutNodeSized=16,Li.LayoutGroupLayout=32,Li.LayoutNodeReplaced=64,Li.LayoutStandard=127,Li.LayoutAll=16777215;function jo(a,y){a===void 0||a instanceof la||typeof a=="string"?Li.call(this,a):(Li.call(this),a&&(y=a)),this.G&=-257,this.Jg="Adornment",this.ue=null,this.Aw=0,this.Uw=!1,this.j=this.$a=null,y&&Object.assign(this,y)}Yt(jo,Li),jo.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},jo.prototype.updateRelationshipsFromData=function(){},jo.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof Vn&&y instanceof lo){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var E=0;Ea&&(a=1);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new bn;x.add(this),Ky(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===bh),y.Ue=!1}};function Ky(a,y,x,E,b,z,tt){if(1a&&(a=2);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new bn;x.add(this),Jy(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===bh),y.Ue=!1}};function Jy(a,y,x,E,b,z,tt){for(var rt=z===a?!1:a.isTreeExpanded,at=x?a.Mo():a.Sd(),lt={};at.next();){var ht=at.value;if(ht.isTreeLink&&(rt||ht.fd||ht.bb(),ht=ht.To(a),ht!==null&&ht!==a&&!y.contains(ht))){if(y.add(ht),!rt){ht.Zb(!0),ht.oh();var ft=x?ht.Oo():ht.Po();lt.vv=a,ft.all(function(vt){return function(xt){return xt===vt.vv||!xt.isTreeExpanded}}(lt))&&b.Cj(ht,z)}(2b&&(b=rt.right),rt.bottom>z&&(z=rt.bottom)}}return isFinite(x)&&isFinite(E)?a.h(x,E,b-x,z-E):(y=y.location,a.h(y.x,y.y,0,0)),a},Vt.Object.defineProperties(Cs.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Ri(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),Cs.className="Placeholder";function Vn(a){Li.call(this,zn.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Ss,this.Om=0,this.Qm=Ss,this.Rm=NaN,this.qj=Jv,this.po=.5,this.wd=null,this.Nb=new Ln().freeze(),this.Tg=this.Mg=null,this.ml=new on,this.ua=new Qn,this.u=this.o=this.Sf=this.Wf=null,this.su=new Ot,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Yt(Vn,Li),Vn.prototype.cloneProtected=function(a){Li.prototype.cloneProtected.call(this,a),a.Qa=this.Qa&-113,a.ff=this.ff,a.gn=this.gn,a.vf=this.vf,a.uo=this.uo,a.qk=this.qk,a.Om=this.Om,a.Qm=this.Qm,a.Rm=this.Rm,a.qj=this.qj,a.po=this.po,this.ba!==null&&(a.ba=this.ba.copy())},Ct=Vn.prototype,Ct.Af=function(a){Li.prototype.Af.call(this,a),this.ff=a.ff,this.vf=a.vf,a.Mg=null,a.bb(),a.Sf=this.Sf;var y=a.fromPort;y!==null&&tl(y),a=a.toPort,a!==null&&tl(a)},Ct.qb=function(a){a.classType===Vn?(a.value&2)===2?this.routing=a:a===fl||a===Hh||a===Vg?this.curve=a:a===s0||a===_p||a===$p?this.adjusting=a:a!==Jv&&a!==Ss&&Xt("Unknown Link enum value for a Link property: "+a):Li.prototype.qb.call(this,a)},Ct.Xc=function(){this.ba===null&&(this.ba=new Xf)},Ct.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),ys(a)||vc(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),ys(a)||vc(a)))},Ct.zv=function(){return!1},Ct.Av=function(){},Ct.Zc=function(){return!1},Vn.prototype.computeAngle=function(a,y,x){return Vn.computeAngle(y,x)},Vn.computeAngle=function(a,y){switch(a){default:case Ss:a=0;break;case l0:a=y;break;case u0:a=y+90;break;case h0:a=y-90;break;case qv:a=y+180;break;case tm:a=Ie.bp(y),90a&&(a-=180);break;case c0:a=Ie.bp(y+90),90a&&(a-=180);break;case d0:a=Ie.bp(y-90),90a&&(a-=180);break;case em:if(a=Ie.bp(y),45a||225a)return 0;90a&&(a-=180)}return Ie.bp(a)};function Zg(a){var y=a.fromNode,x=a.toNode,E=null;if(y!==null?E=x!==null?y.px(x):y.containingGroup:x!==null?E=x.containingGroup:E=null,y=E,x=a.Ah,x!==y){x!==null&&Vv(x,a),a.Ah=y,y!==null&&Uv(y,a);var b=a.containingGroupChanged;if(b!==null){var z=!0,tt=a.diagram;tt!==null&&(z=tt.aa,tt.aa=!0),b(a,x,y),tt!==null&&(tt.aa=z)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=E}Ct=Vn.prototype,Ct.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Li.prototype.oh.call(this)},Ct.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Ct.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function $y(a,y){a.wd===null&&(a.wd=new bn),a.wd.add(y),a.v()}Ct.Vo=function(a){if(Li.prototype.Vo.call(this,a),ld(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Up(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||Up(x,this,E)}r0(this)}},Ct.Wo=function(a){if(Li.prototype.Wo.call(this,a),ld(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Vp(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||Vp(x,this,E)}a0(this)}},Ct.Lj=function(){if(this.fd=!0,this.wd!==null){var a=this.diagram;if(a!==null)for(var y=this.wd.copy().iterator;y.next();)a.remove(y.value)}this.data!==null&&(a=this.diagram,a!==null&&a.partManager.removeDataForLink(this))},Vn.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},Vn.prototype.move=function(a,y){var x=y?this.location:this.position,E=x.x;isNaN(E)&&(E=0);var b=x.y;for(isNaN(b)&&(b=0),E=a.x-E,b=a.y-b,y===!0?Li.prototype.move.call(this,a,!1):(a=Ot.allocAt(x.x+E,x.y+b),Li.prototype.move.call(this,a,!1),Ot.free(a)),Rh(this,E,b),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+E,x.y+b)},Vn.prototype.canRelinkFrom=function(){if(!this.relinkableFrom)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},Vn.prototype.canRelinkTo=function(){if(!this.relinkableTo)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},Vn.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(Zn),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var x=this.i(0),E=this.i(1);return a.h((x.x+E.x)/2,(x.y+E.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===fl))return this.ua.Pu(.5,a),a.add(this.i(0)),x=this.ua.figures.first(),a.offset(-x.startX,-x.startY),a;if(this.computeCurve()===fl){if(y===3){x=this.i(0),E=this.i(1);var b=this.i(2);return Ie.ax(x.x,x.y,E.x,E.y,E.x,E.y,b.x,b.y,a),a}if(E=(y-1)/3|0,x=3*(E/2|0),E%2===1){E=this.i(x),b=this.i(x+1);var z=this.i(x+2);x=this.i(x+3),Ie.ax(E.x,E.y,b.x,b.y,z.x,z.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var tt=this.flattenedLengths;for(x=this.flattenedTotalLength,b=z=E=0;Ex/2));)E+=b,z++;return y=this.i(z),z=this.i(z+1),1>Math.abs(y.x-z.x)?y.y>z.y?a.h(y.x,y.y-(x/2-E)):a.h(y.x,y.y+(x/2-E)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(x/2-E),y.y):a.h(y.x+(x/2-E),y.y):(x=(x/2-E)/b,a.h(y.x+x*(z.x-y.x),y.y+x*(z.y-y.y))),a},Vn.prototype.computeMidAngle=function(){var a=this.pointsCount;if(2>a)return NaN;if(a===2)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===fl))return this.ua.wx(.5);if(this.computeCurve()===fl&&4<=a){var y=(a-1)/3|0,x=3*(y/2|0);if(y%2===1){x=Math.floor(x),a=this.i(x),y=this.i(x+1);var E=this.i(x+2);return x=this.i(x+3),Ie.My(a.x,a.y,y.x,y.y,E.x,E.y,x.x,x.y)}if(0E/2));)b+=z,x++;if(y=this.i(x),E=this.i(x+1),1>Math.abs(y.x-E.x)&&1>Math.abs(y.y-E.y)){if(0Math.abs(y.x-E.x))return y.y>E.y?270:90;if(1>Math.abs(y.y-E.y))return y.x>E.x?180:0}return y.ab(E)},Ct=Vn.prototype,Ct.i=function(a){return this.Nb.s[a]},Ct.dd=function(a,y){this.Nb.cd(a,y)},Ct.L=function(a,y,x){this.Nb.cd(a,new Ot(y,x))},Ct.Kz=function(a,y){this.Nb.Gb(a,y)},Ct.m=function(a,y,x){this.Nb.Gb(a,new Ot(y,x))},Ct.ne=function(a){this.Nb.add(a)},Ct.yf=function(a,y){this.Nb.add(new Ot(a,y))},Ct.pv=function(a){this.Nb.mb(a)},Ct.Fj=function(){this.Nb.clear()};function Rh(a,y,x){if(y!==0||x!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,x),a.defaultToPoint&&a.defaultToPoint.offset(y,x);else{for(var E=a.fd,b=new Ln,z=a.Nb.iterator;z.next();){var tt=z.value;b.add(new Ot(tt.x+y,tt.y+x).freeze())}b.freeze(),z=a.Nb,a.Nb=b,tt=a.diagram,isNaN(y)||isNaN(x)||tt!==null&&tt.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+x),a.pa.h(a.pa.x+y,a.pa.y+x),vs(a)),E?Xp(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),tt!==null&&tt.animationManager.zb&&pg(tt.animationManager,a,b),a.g("points",z,b)}}Ct.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Ct.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,E=1/0,b=a.s,z=b.length,tt=0;ttlt&&(ft=-ft),Lt=(0>at?-1:1)*ft+xt,Wt=ht*(Lt-xt)+Et),xt=z.x+2*rt/3,Et=z.y+2*at/3;var kt=xt,Jt=Et;Ie.B(at,0)?Jt=0at?-1:1)*ft+xt,Jt=ht*(kt-xt)+Et),this.Fj(),this.ne(z),this.yf(Lt,Wt),this.yf(kt,Jt),this.ne(vt),this.dd(0,this.getLinkPoint(a,y,tt,!0,!1,E,b)),this.dd(3,this.getLinkPoint(E,b,x,!1,!1,a,y))}else z=E,vt=b,E=this.getLinkPoint(a,y,tt,!0,!1,z,vt),b=this.getLinkPoint(z,vt,x,!1,!1,a,y),this.hasCurviness()?(vt=b.x-E.x,x=b.y-E.y,tt=this.computeCurviness(),a=E.x+vt/2,y=E.y+x/2,z=a,rt=y,Ie.B(x,0)?rt=0tt&&(z=-z),z=(0>x?-1:1)*z+a,rt=vt*(z-a)+y),this.ne(E),this.yf(z,rt),this.ne(b)):(this.ne(E),this.ne(b),rt=on.alloc(),y.mi(rt),at=rt.ca(b),vt.mi(rt),lt=rt.ca(E),(at||lt)&&(tt=y.ga(Qp(tt),new Ot),this.dd(0,this.getLinkPointFromPoint(a,y,tt,b,!0,tt)),x=vt.ga(Qp(x),new Ot),this.dd(1,this.getLinkPointFromPoint(z,vt,x,E,!1,x))),on.free(rt))}else{ft=this.isAvoiding,vt&&(ht&&ft||lt)&&this.Fj();var ne=lt?this.computeCurviness():0;ft=this.getLinkPoint(a,y,tt,!0,ht,E,b),xt=Lt=Et=0,(ht||!rt||lt)&&(Wt=this.computeEndSegmentLength(a,y,tt,!0),xt=this.getLinkDirection(a,y,ft,tt,!0,ht,E,b),lt&&(rt||tt.D(x)||!ht&&tt.x+x.x===1&&tt.y+x.y===1)&&(xt-=ht?90:30,0>ne&&(xt-=180)),0>xt?xt+=360:360<=xt&&(xt-=360),lt&&(Wt+=Math.abs(ne)*(ht?1:2)),xt===0?Et=Wt:xt===90?Lt=Wt:xt===180?Et=-Wt:xt===270?Lt=-Wt:(Et=Wt*Math.cos(xt*Math.PI/180),Lt=Wt*Math.sin(xt*Math.PI/180)),tt.Mc()&<&&(Wt=y.ga(Wo,Ot.alloc()),kt=Ot.allocAt(Wt.x+1e3*Et,Wt.y+1e3*Lt),this.getLinkPointFromPoint(a,y,Wt,kt,!0,ft),Ot.free(Wt),Ot.free(kt))),Wt=this.getLinkPoint(E,b,x,!1,ht,a,y);var se=Jt=kt=0;if(ht||!at||lt){var ye=this.computeEndSegmentLength(E,b,x,!1);se=this.getLinkDirection(E,b,Wt,x,!1,ht,a,y),lt&&(at||tt.D(x)||!ht&&tt.x+x.x===1&&tt.y+x.y===1)&&(se+=ht?0:30,0>ne&&(se+=180)),0>se?se+=360:360<=se&&(se-=360),lt&&(ye+=Math.abs(ne)*(ht?1:2)),se===0?kt=ye:se===90?Jt=ye:se===180?kt=-ye:se===270?Jt=-ye:(kt=ye*Math.cos(se*Math.PI/180),Jt=ye*Math.sin(se*Math.PI/180)),x.Mc()&<&&(x=b.ga(Wo,Ot.alloc()),tt=Ot.allocAt(x.x+1e3*kt,x.y+1e3*Jt),this.getLinkPointFromPoint(E,b,x,tt,!1,Wt),Ot.free(x),Ot.free(tt))}x=ft,(ht||!rt||lt)&&(x=new Ot(ft.x+Et,ft.y+Lt)),tt=Wt,(ht||!at||lt)&&(tt=new Ot(Wt.x+kt,Wt.y+Jt)),!vt&&!ht&&rt&&3Math.abs(y.y-a.y)?(y.x>=a.x?y.x=a.x+9e9:y.x=a.x-9e9,y.y=a.y):(y.y>=a.y?y.y=a.y+9e9:y.y=a.y-9e9,y.x=a.x),y}Vn.prototype.getLinkPointFromPoint=function(a,y,x,E,b,z){if(z===void 0&&(z=new Ot),a===null||y===null)return z.assign(x),z;if(a.isVisible()||(b=a.findVisibleNode(),b!==null&&b!==a&&(y=b.port)),a=null,b=y.panel,b===null||b.se()||(b=b.panel),b===null){b=E.x,E=E.y;var tt=x.x;x=x.y}else{a=b.oe,b=1/(a.m11*a.m22-a.m12*a.m21),tt=a.m22*b;var rt=-a.m12*b,at=-a.m21*b,lt=a.m11*b,ht=b*(a.m21*a.dy-a.m22*a.dx),ft=b*(a.m12*a.dx-a.m11*a.dy);b=E.x*tt+E.y*at+ht,E=E.x*rt+E.y*lt+ft,tt=x.x*tt+x.y*at+ht,x=x.x*rt+x.y*lt+ft}return y.Sj(b,E,tt,x,z),a!==null&&z.transform(a),z};function Kp(a,y){var x=y.Zn;return x===null&&(x=new Xd,x.port=y,x.node=y.part,y.Zn=x),sA(x,a)}Vn.prototype.getLinkPoint=function(a,y,x,E,b,z,tt,rt){if(rt===void 0&&(rt=new Ot),x.sb()&&!Ug(x))return y.ga(x,rt),rt;if(x.$c()){var at=Kp(this,y);if(at!==null){if(rt.assign(at.Zo),b&&this.routing===eA){var lt=Kp(this,tt);if(lt!==null&&at.Gl=ht.y&&a.y<=ht.y+ht.height?rt.y=a.y:(x.Hf(Vl)||x.Hf(sl))&&a.x>=ht.x&&a.x<=ht.x+ht.width&&(rt.x=a.x),Ot.free(at),Ot.free(lt)}}return rt}}return x=y.ga(Qp(x),Ot.alloc()),this.pointsCount>(b?6:2)?(tt=E?this.i(1):this.i(this.pointsCount-2),b&&(tt=Yv(x,tt.copy()))):(at=this.computeSpot(!E,tt),z=Ot.alloc(),tt=tt.ga(Qp(at),z),b&&(tt=Yv(x,tt)),Ot.free(z)),this.getLinkPointFromPoint(a,y,x,tt,E,rt),Ot.free(x),rt},Vn.prototype.getLinkDirection=function(a,y,x,E,b,z,tt,rt){t:if(E.sb())var at=E.x>E.y?E.x>1-E.y?0:E.x<1-E.y?270:315:E.x1-E.y?90:E.x<1-E.y?180:135:.5>E.x?225:.5(z?6:2)?(rt=b?this.i(1):this.i(this.pointsCount-2),rt=z?Yv(at,rt.copy()):x):(x=Ot.alloc(),rt=rt.ga(Wo,x),Ot.free(x)),x=Math.abs(rt.x-at.x)>Math.abs(rt.y-at.y)?rt.x>=at.x?0:180:rt.y>=at.y?90:270,Ot.free(at),at=x}return E.Mc()&&tt.Td(a)&&(at+=180,360<=at&&(at-=360)),Ug(E)||(a=y.li(),a===0)||(45<=a&&135>a?at+=90:135<=a&&225>a?at+=180:225<=a&&315>a&&(at+=270),360<=at&&(at-=360)),at},Vn.prototype.computeEndSegmentLength=function(a,y,x,E){return y!==null&&x.$c()&&(a=Kp(this,y),a!==null)?a.Ju:(a=E?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=E?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},Vn.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=Wo:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===da?ir:y)):(a=y||this.toPort,a===null?a=Wo:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===da?ir:y)),a};function Ug(a){return a===ir||a.x===.5&&a.y===.5}function Qp(a){return a.x===.5&&a.y===.5?a:Wo}Vn.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Ss&&4vt.width||ft.y>vt.height||0>ft.x+ft.width||0>ft.y+ft.height)){if(ft=vo.alloc(),ft.set(tt),ht instanceof zn)rt=ht.Cf(a,y,x,E,b,ft);else if(this.path===ht){if(ht instanceof lo)if(rt=a,vt=E,ht.pickable===!1)rt=!1;else if(ft.multiply(ht.transform),vt)t:{var xt=rt,Et=ft;if(ht.fh(xt,Et))rt=!0;else{if(Et===void 0&&(Et=ht.transform,xt.Re(ht.actualBounds))){rt=!0;break t}rt=xt.left,vt=xt.right;var Lt=xt.top;xt=xt.bottom;var Wt=Ot.alloc(),kt=Ot.alloc(),Jt=Ot.alloc(),ne=vo.alloc();ne.set(Et),ne.bv(ht.transform),ne.Vj(),kt.x=vt,kt.y=Lt,kt.transform(ne),Wt.x=rt,Wt.y=Lt,Wt.transform(ne),Et=!1,ad(ht,Wt,kt,Jt)?Et=!0:(Wt.x=vt,Wt.y=xt,Wt.transform(ne),ad(ht,Wt,kt,Jt)?Et=!0:(kt.x=rt,kt.y=xt,kt.transform(ne),ad(ht,Wt,kt,Jt)?Et=!0:(Wt.x=rt,Wt.y=Lt,Wt.transform(ne),ad(ht,Wt,kt,Jt)&&(Et=!0)))),vo.free(ne),Ot.free(Wt),Ot.free(kt),Ot.free(Jt),rt=Et}}else rt=ht.fh(rt,ft)}else rt=pa(ht,a,E,ft);rt&&(vt=ht,y!==null&&(vt=y(ht)),vt&&(x===null||x(vt))&&b.add(vt)),vo.free(ft)}}}return z===void 0&&vo.free(tt),rt||this.background!==null||this.areaBackground!==null}return z===void 0&&vo.free(tt),!1},Vn.prototype.computeCurve=function(){if(this.Wf===null){var a=this.fromPort,y=this.isOrthogonal;this.Wf=a!==null&&a===this.toPort&&!y}return this.Wf?fl:this.curve},Vn.prototype.computeCorner=function(){if(this.curve===fl)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},Vn.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,E=0;Eat?-Math.PI/2:Math.PI/2;else ht=Math.atan(at/Math.abs(rt)),0>rt&&(ht=Math.PI-ht);tt=y.x;var ft=y.y;rt=E.x-tt;var vt=E.y-ft;for(at=Math.sqrt(rt*rt+vt*vt),Ie.$(rt,0)?vt=0>vt?-Math.PI/2:Math.PI/2:(vt=Math.atan(vt/Math.abs(rt)),0>rt&&(vt=Math.PI-vt)),lt=at/lt,ht=vt-ht,this.dd(a,y),a+=1;aat?-Math.PI/2:Math.PI/2:(at=Math.atan(at/Math.abs(rt)),0>rt&&(at=Math.PI-at)),rt=at+ht,y*=lt,this.L(a,tt+y*Math.cos(rt),ft+y*Math.sin(rt)));this.dd(x,E)}}return!0;case $p:if(z=this.i(a),ft=this.i(x),!z.Xa(y)||!ft.Xa(E)){b=z.x,z=z.y,tt=ft.x,ft=ft.y,lt=(tt-b)*(tt-b)+(ft-z)*(ft-z),rt=y.x,ht=y.y,at=E.x,vt=E.y;var xt=1;if(at-rt!==0){var Et=(vt-ht)/(at-rt);xt=Math.sqrt(1+1/(Et*Et))}else Et=9e9;for(this.dd(a,y),a+=1;ay?y+=360:360<=y&&(y-=360),0>E?E+=360:360<=E&&(E-=360);var tt=E;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,E=315<=E||45>E?0:45<=E&&135>E?90:135<=E&&225>E?180:270;var rt=b.actualBounds.copy(),at=z.actualBounds.copy();if(rt.w()&&at.w()){rt.Bc(g0,g0),at.Bc(g0,g0),rt.Ye(a),at.Ye(x);var lt=Ot.alloc(),ht=Ot.alloc();y===0?x.x>a.x||E===270&&x.ya.x||E===90&&x.y>a.y&&at.right>a.x?(lt.h(x.x,a.y),ht.h(x.x,(a.y+x.y)/2),E===180?(lt.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ht.x=lt.x,ht.y=x.y):E===270&&x.ya.y?(lt.x=a.xat.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):at.right,ht.x=lt.x,ht.y=x.y):E===0&&a.xat.top&&a.yrt.bottom)&&(E===180&&(at.ca(a)||rt.ca(x))?lt.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.ya.y&&(E===180||E===270)&&(lt.y=this.computeMidOrthoPosition(a.x,rt.bottom,x.x,Math.min(x.y,at.top),!0)),ht.x=x.x,ht.y=lt.y),lt.y>rt.top&<.y=rt.left&&x.x<=a.x||a.x<=at.right&&a.x>=x.x?(E===90||E===270)&&(lt.h(Math.max((a.x+x.x)/2,a.x),a.y),ht.h(lt.x,x.y)):(lt.y=E===270||(E===0||E===180)&&x.ya.y&&at.lefta.y?(lt.x=a.x>at.right?this.computeMidOrthoPosition(a.x,a.y,at.right,x.y,!1):a.x>at.left&&(E===270&&a.yat.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):at.left,ht.x=lt.x,ht.y=x.y):E===180&&a.x>at.right&&a.y>at.top&&a.yrt.bottom)&&(E===0&&(at.ca(a)||rt.ca(x))?lt.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.ya.y&&(E===0||E===270)&&(lt.y=this.computeMidOrthoPosition(a.x,rt.bottom,x.x,Math.min(x.y,at.top),!0)),ht.x=x.x,ht.y=lt.y),lt.y>rt.top&<.y=a.x||a.x>=at.left&&a.x<=x.x?(E===90||E===270)&&(lt.h(Math.min((a.x+x.x)/2,a.x),a.y),ht.h(lt.x,x.y)):(lt.y=E===270||(E===0||E===180)&&x.ya.y||E===180&&x.xa.y||E===0&&x.x>a.x&&at.bottom>a.y?(lt.h(a.x,x.y),ht.h((a.x+x.x)/2,x.y),E===270?(lt.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ht.x=x.x,ht.y=lt.y):E===180&&x.xa.x?(lt.y=a.yat.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):at.bottom,ht.x=x.x,ht.y=lt.y):E===90&&a.yat.left&&a.xrt.right)&&(E===270&&(at.ca(a)||rt.ca(x))?lt.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.xa.x&&(E===270||E===180)&&(lt.x=this.computeMidOrthoPosition(rt.right,a.y,Math.min(x.x,at.left),x.y,!1)),ht.x=lt.x,ht.y=x.y),lt.x>rt.left&<.x=rt.top&&x.y<=a.y||a.y<=at.bottom&&a.y>=x.y?(E===0||E===180)&&(lt.h(a.x,Math.max((a.y+x.y)/2,a.y)),ht.h(x.x,lt.y)):(lt.x=E===180||(E===90||E===270)&&x.xa.x&&at.top=a.x?(lt.y=a.y>at.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,at.bottom,!0):a.y>at.top&&(E===180&&a.xat.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):at.top,ht.x=x.x,ht.y=lt.y):E===270&&a.y>at.bottom&&a.x>at.left&&a.xrt.right)&&(E===90&&(at.ca(a)||rt.ca(x))?lt.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.xa.x&&(E===90||E===180)&&(lt.x=this.computeMidOrthoPosition(rt.right,a.y,Math.min(x.x,at.left),x.y,!1)),ht.x=lt.x,ht.y=x.y),lt.x>rt.left&<.x=a.y||a.y>=at.top&&a.y<=x.y?(E===0||E===180)&&(lt.h(a.x,Math.min((a.y+x.y)/2,a.y)),ht.h(x.x,lt.y)):(lt.x=E===180||(E===90||E===270)&&x.x=Xg&&(oA(xt),rt.Bc(xt.Ho*xt.Hx,xt.Go*xt.Ix),rA(xt,a,y,ft,E,rt,!1),at=Zu(xt,ft.x,ft.y)),!xt.abort&&atthis.pointsCount?(y===0||y===180?(rt.x=a.x,rt.y=ft.y):(rt.x=ft.x,rt.y=a.y),this.L(2,rt.x,rt.y),this.m(3,rt.x,rt.y)):(tt=this.i(3),y===0||y===180?Ie.B(rt.x,tt.x)?(rt=y===0?Math.max(rt.x,a.x):Math.min(rt.x,a.x),this.L(2,rt,a.y),this.L(3,rt,tt.y)):Ie.B(rt.y,tt.y)?(Math.abs(a.y-rt.y)<=xt.Go/2&&(this.L(2,rt.x,a.y),this.L(3,tt.x,a.y)),this.m(2,rt.x,a.y)):this.L(2,a.x,rt.y):(y===90||y===270)&&(Ie.B(rt.y,tt.y)?(rt=y===90?Math.max(rt.y,a.y):Math.min(rt.y,a.y),this.L(2,a.x,rt),this.L(3,tt.x,rt)):Ie.B(rt.x,tt.x)?(Math.abs(a.x-rt.x)<=xt.Ho/2&&(this.L(2,a.x,rt.y),this.L(3,a.x,tt.y)),this.m(2,a.x,rt.y)):this.L(2,rt.x,a.y))),x!==null&&(a=this.i(1),tt=this.i(2),a.x!==tt.x&&a.y!==tt.y?y===0||y===180?this.m(2,a.x,tt.y):this.m(2,tt.x,a.y):y===0||y===180?this.m(2,b.x,x.y):this.m(2,x.x,b.y)),Et!==null&&(E===0||E===180?this.yf(z.x,Et.y):this.yf(Et.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(lt.copy()),this.ne(ht.copy())),Ot.free(lt),Ot.free(ht)}},Vn.prototype.computeMidOrthoPosition=function(a,y,x,E,b){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),b?(y+E)/2+z:(a+x)/2+z};function Xv(a){if(a.diagram===null||!a.isAvoiding||!Eg(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=Pg(a.diagram,!0,a.containingGroup,null);for(var E=1;Eud&&Zu(y,ht,ft)!==lt-1&&(Zu(y,x-rt,E)===lt-1?(b=180,ht=x-rt,ft=E):Zu(y,x+rt,E)===lt-1?(b=0,ht=x+rt,ft=E):Zu(y,x,E-at)===lt-1?(b=270,ht=x,ft=E-at):Zu(y,x,E+at)===lt-1&&(b=90,ht=x,ft=E+at));lt>ud&&Zu(y,ht,ft)===lt-1;)x=ht,E=ft,b===0?ht+=rt:b===90?ft+=at:b===180?ht-=rt:ft-=at,--lt;z?lt>ud&&(b===180||b===0?x=Math.floor(x/rt)*rt+rt/2:(b===90||b===270)&&(E=Math.floor(E/at)*at+at/2)):(x=Math.floor(x/rt)*rt+rt/2,E=Math.floor(E/at)*at+at/2),lt>ud&&(z=b,tt=x,ht=E,b===0?(z=90,ht+=at):b===90?(z=180,tt-=rt):b===180?(z=270,ht-=at):b===270&&(z=0,tt+=rt),Zu(y,tt,ht)===lt-1?Kv(a,y,tt,ht,z,!1,z):(tt=x,ht=E,b===0?(z=270,ht-=at):b===90?(z=0,tt+=rt):b===180?(z=90,ht+=at):b===270&&(z=180,tt-=rt),Zu(y,tt,ht)===lt-1&&Kv(a,y,tt,ht,z,!1,z))),a.yf(x,E)}Vn.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),E=this.i(1),b=pi(y,a,x.x,x.y,E.x,E.y),z=0,tt=1;ttthis.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),a=this.path,a!==null)){a.ua=this.ua;for(var y=this.O.s,x=y.length,E=0;E=y&&(E=y-1),at=this.i(E),z.x=Math.min(at.x,z.x),z.y=Math.min(at.y,z.y);E=z.x,at=z.y}else{for(at=0;atWt?Et>xt?(z.x=kt-ne,z.y=xt-ne,b.x=kt+Lt,b.y=xt+Lt):(z.x=kt-ne,z.y=xt+ne,b.x=kt+Lt,b.y=xt-Lt):Et>xt?(z.x=kt+ne,z.y=xt-ne,b.x=kt-Lt,b.y=xt+Lt):(z.x=kt+ne,z.y=xt+ne,b.x=kt-Lt,b.y=xt-Lt)),Ie.$(Wt,kt)&&Ie.$(xt,Et)&&(xt>vt?(Jt>kt?(z.x=kt-ne,z.y=xt-ne,b.x=kt+Lt):(z.x=kt+ne,z.y=xt-ne,b.x=kt-Lt),b.y=xt+Lt):(Jt>kt?(z.x=kt-ne,z.y=xt+ne,b.x=kt+Lt):(z.x=kt+ne,z.y=xt+ne,b.x=kt-Lt),b.y=xt-Lt)),(Ie.$(Wt,kt)&&Ie.$(kt,Jt)||Ie.$(vt,xt)&&Ie.$(xt,Et))&&(Wt=.5*(Wt+Jt),vt=.5*(vt+Et),z.x=Wt,z.y=vt,b.x=Wt,b.y=vt),(ft===1||ft===2&&Ie.$(tt.x,this.i(0).x)&&Ie.$(tt.y,this.i(0).y))&&(x.x=.5*(tt.x+lt.x),x.y=.5*(tt.y+lt.y)),Oh(rt,x.x-E,x.y-at,z.x-E,z.y-at,lt.x-E,lt.y-at),y.set(z),x.set(b),tt=lt}}lt=tt.x,tt=tt.y,ht=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ht=Zd(this,ht.copy(),!1,lr)),lt=.5*(lt+ht.x),tt=.5*(tt+ht.y),Oh(rt,b.x-E,b.y-at,lt-E,tt-at,ht.x-E,ht.y-at),Ot.free(y),Ot.free(x),Ot.free(z),Ot.free(b)}else for(x=3;x=y&&(x=y-1),b=this.i(x-1),tt=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(tt=Zd(this,tt.copy(),!1,lr)),Oh(rt,z.x-E,z.y-at,b.x-E,b.y-at,tt.x-E,tt.y-at);else{for(z=Ot.alloc(),z.assign(this.i(0)),b=Ot.alloc(),b.assign(z),tt=this.computeCorner(),ft=1,lt=0;ft=y-1){if(!z.D(ht))this.computeShortLength(!1)!==0&&(ht=Zd(this,ht.copy(),!1,lr)),Ud(this,rt,-E,-at,z,ht,x);else if(lt===0)for(ft=1;ftz.x?se=vt.x-Et:se=vt.x+Et,kt.y>vt.y?Jt=vt.y+ne:Jt=vt.y-ne,kt=Ot.allocAt(se,ye),Ud(this,rt,ft,Wt,z,kt,Lt),Ot.free(kt),Hp(rt,vt.x+ft,vt.y+Wt,xt+ft,Jt+Wt),z.h(xt,Jt)}else Ie.B(z.x,vt.x)&&Ie.B(vt.y,kt.y)?(Et=Math.min(tt,Math.abs(vt.y-b.y)/2),Et=ne=Math.min(Et,Math.abs(kt.x-vt.x)/2),Ie.B(ne,0)?(Ud(this,rt,ft,Wt,z,vt,Lt),z.assign(vt)):(se=vt.x,ye=vt.y,xt=se,Jt=ye,vt.y>z.y?ye=vt.y-Et:ye=vt.y+Et,kt.x>vt.x?xt=vt.x+ne:xt=vt.x-ne,kt=Ot.allocAt(se,ye),Ud(this,rt,ft,Wt,z,kt,Lt),Ot.free(kt),Hp(rt,vt.x+ft,vt.y+Wt,xt+ft,Jt+Wt),z.h(xt,Jt))):(Ud(this,rt,ft,Wt,z,vt,Lt),z.assign(vt));b.assign(ht),ft=lt}Ot.free(z)}Wp=rt}else rt=this.i(1).copy(),rt.x-=E,rt.y-=at,this.computeShortLength(!0)!==0&&(b=Zd(this,b,!0,z)),this.computeShortLength(!1)!==0&&(rt=Zd(this,rt,!1,z)),a.type=Qn.j,a.startX=b.x,a.startY=b.y,a.endX=rt.x,a.endY=rt.y;return this.lk=!0,a};function Jp(a,y,x,E){return a=x-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=E-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),Ie.$(a,0)?y:Ie.$(y,0)?a:Math.sqrt(a*a+y*y)))}function Zd(a,y,x,E){var b=a.pointsCount;if(2>b)return y;if(x){var z=a.i(1);if(x=z.x-E.x,z=z.y-E.y,E=Jp(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!0),a>b&&(a=b),b=a*(z-y.y)/E,y.x+=a*(x-y.x)/E,y.y+=b}else{if(z=a.i(b-2),x=z.x-E.x,z=z.y-E.y,E=Jp(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!1),a>b&&(a=b),b=a*(y.y-z)/E,y.x-=a*(y.x-x)/E,y.y-=b}return y}function Qv(a,y,x,E){for(var b=a.pointsCount,z=y;Ie.$(y.x,z.x)&&Ie.$(y.y,z.y);){if(x>=b)return b-1;z=a.i(x++)}if(!Ie.$(y.x,z.x)&&!Ie.$(y.y,z.y))return x-1;for(var tt=z;Ie.$(y.x,z.x)&&Ie.$(z.x,tt.x)&&(!E||(y.y>=z.y?z.y>=tt.y:z.y<=tt.y))||Ie.$(y.y,z.y)&&Ie.$(z.y,tt.y)&&(!E||(y.x>=z.x?z.x>=tt.x:z.x<=tt.x));){if(x>=b)return b-1;tt=a.i(x++)}return x-2}Vn.prototype.computeJumpLength=function(){return 10};function Ud(a,y,x,E,b,z,tt){if(!tt&&ld(a)){tt=a.computeJumpLength();var rt=tt/2,at=[],lt=0;if(a.isVisible()&&(lt=P5(a,b,z,at)),0ft-tt);)lt--,ft=Math.max(ht-rt,z.x);ht=z.y-tt+E,ft+=x,xt=z.y+E,a.curve===Hh?Gg(y,ft,xt,!1):Oh(y,vt,ht,ft,ht,ft,xt)}else if(Ie.B(b.x,z.x))if(b.yht-tt);)lt--,ht=Math.max(ft-rt,z.y);ft=z.x-tt+x,xt=z.x+x,ht+=E,a.curve===Hh?Gg(y,xt,ht,!1):Oh(y,ft,vt,ft,ht,xt,ht)}}}y.lineTo(z.x+x,z.y+E)}function P5(a,y,x,E){var b=a.diagram;if(b===null||y.D(x))return 0;for(b=b.layers;b.next();){var z=b.value;if(z!==null&&z.visible){z=z.Pa.s;for(var tt=z.length,rt=0;rttt.x&&ht.x>=lt.x||lt.xtt.y&&ht.y>=lt.y||lt.ytt&&Math.min(Et,Lt)ht&&!Ie.B(Et,Lt)){rt.x=ht,rt.y=tt,ht=!0;break t}}else if(Ie.B(ft,xt)&&Ie.B(Et,Lt)&&Math.min(ht,vt)Et&&Math.min(tt,Wt)ft&&!Ie.B(tt,Wt)){rt.x=Et,rt.y=ft,ht=!0;break t}rt.x=0,rt.y=0,ht=!1}ht&&(b?x.push(rt.x):x.push(rt.y)),tt=lt}Ot.free(rt)}function ld(a){return a=a.curve,a===Vg||a===Hh}function qp(a,y){(y||ld(a))&&(y=a.diagram,y===null||y.animationManager.isTicking||y.Eh.contains(a)||a.ml.width===0&&a.ml.height===0||y.Eh.add(a,a.ml.copy()))}Vn.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var x=y.diagram;if(x!==null&&!x.animationManager.isTicking){var E=!1;for(x=x.layers;x.next();){var b=x.value;if(b.visible){if(b===y){E=!0;var z=!1;b=b.Pa.s;for(var tt=b.length,rt=0;rta&&De(a,">= 0",Vn,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),this.bb())}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:NaN},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.qc(),this.g("fromShortLength",y,a))}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:da},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),(y.$c()||a.$c())&&this.toNode!==null&&tl(this.toPort),this.bb())}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:NaN},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&De(a,">= 0",Vn,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),this.bb())}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:NaN},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.qc(),this.g("toShortLength",y,a))}},isLabeledLink:{get:function(){return this.wd===null?!1:0=E&&(z=E-1);var rt=this.i(z-1),at=this.i(z);Ie.Dl(b.x,b.y,tt.x,tt.y,rt.x,rt.y,at.x,at.y,.5,a),y=Math.min(at.x,y),x=Math.min(at.y,x),b=at}else for(b=this.i(0),z=this.i(1),y=Math.min(b.x,z.x),x=Math.min(b.y,z.y),a.h(b.x,b.y,0,0),a.Ye(z),b=2;bE&&(E=-E)):Ie.$(E.y,b.y)?(E=b.x-E.x,0>E&&(E=-E)):E=Math.sqrt(E.Bf(b)),a.push(E)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,x=y.length,E=a=0;Ethis.pointsCount)return this.lk=!0,this.ua;this.ua=this.makeGeometry()}return this.ua}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!Ug(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!Ug(this.computeSpot(!1))?a-2:a-1}},adjusting:{get:function(){return this.qk},set:function(a){var y=this.qk;y!==a&&(this.qk=a,this.g("adjusting",y,a))}},corner:{get:function(){return this.Om},set:function(a){var y=this.Om;y!==a&&(this.Om=a,this.qc(),this.g("corner",y,a))}},curve:{get:function(){return this.Qm},set:function(a){var y=this.Qm;y!==a&&(this.Qm=a,this.bb(),this.qc(),qp(this,y===Hh||y===Vg||a===Hh||a===Vg),this.g("curve",y,a))}},curviness:{get:function(){return this.Rm},set:function(a){var y=this.Rm;y!==a&&(this.Rm=a,this.bb(),this.qc(),this.g("curviness",y,a))}},routing:{get:function(){return this.qj},set:function(a){var y=this.qj;y!==a&&(this.qj=a,this.Wf=null,this.bb(),qp(this,(y.value&2)===2||(a.value&2)===2),this.g("routing",y,a))}},smoothness:{get:function(){return this.po},set:function(a){var y=this.po;y!==a&&(this.po=a,this.qc(),this.g("smoothness",y,a))}},key:{get:function(){var a=this.diagram;if(a!==null&&a.model.ri())return a.model.Ac(this.data)}}}),Vn.prototype.invalidateOtherJumpOvers=Vn.prototype.Xo,Vn.prototype.findClosestSegment=Vn.prototype.ez,Vn.prototype.updateRoute=Vn.prototype.vg,Vn.prototype.invalidateRoute=Vn.prototype.bb,Vn.prototype.rollbackRoute=Vn.prototype.rv,Vn.prototype.commitRoute=Vn.prototype.zf,Vn.prototype.startRoute=Vn.prototype.uh,Vn.prototype.clearPoints=Vn.prototype.Fj,Vn.prototype.removePoint=Vn.prototype.pv,Vn.prototype.addPointAt=Vn.prototype.yf,Vn.prototype.addPoint=Vn.prototype.ne,Vn.prototype.insertPointAt=Vn.prototype.m,Vn.prototype.insertPoint=Vn.prototype.Kz,Vn.prototype.setPointAt=Vn.prototype.L,Vn.prototype.setPoint=Vn.prototype.dd,Vn.prototype.getPoint=Vn.prototype.i,Vn.prototype.getOtherPort=Vn.prototype.Cz,Vn.prototype.getOtherNode=Vn.prototype.To;var Vd=null,Yd=null,Jv=new sn(Vn,"Normal",1),M5=new sn(Vn,"Orthogonal",2),F5=new sn(Vn,"AvoidsNodes",6),eA=new sn(Vn,"AvoidsNodesStraight",7),Ss=new sn(Vn,"None",0),fl=new sn(Vn,"Bezier",9),Hh=new sn(Vn,"JumpGap",10),Vg=new sn(Vn,"JumpOver",11),s0=new sn(Vn,"End",17),_p=new sn(Vn,"Scale",18),$p=new sn(Vn,"Stretch",19),l0=new sn(Vn,"OrientAlong",21),u0=new sn(Vn,"OrientPlus90",22),h0=new sn(Vn,"OrientMinus90",23),qv=new sn(Vn,"OrientOpposite",24),tm=new sn(Vn,"OrientUpright",25),c0=new sn(Vn,"OrientPlus90Upright",26),d0=new sn(Vn,"OrientMinus90Upright",27),em=new sn(Vn,"OrientUpright45",28),nA=16,iA=14,g0=8;Vn.className="Link",Vn.Normal=Jv,Vn.Orthogonal=M5,Vn.AvoidsNodes=F5,Vn.AvoidsNodesStraight=eA,Vn.None=Ss,Vn.Bezier=fl,Vn.JumpGap=Hh,Vn.JumpOver=Vg,Vn.End=s0,Vn.Scale=_p,Vn.Stretch=$p,Vn.OrientAlong=l0,Vn.OrientPlus90=u0,Vn.OrientMinus90=h0,Vn.OrientOpposite=qv,Vn.OrientUpright=tm,Vn.OrientPlus90Upright=c0,Vn.OrientMinus90Upright=d0,Vn.OrientUpright45=em,Vn.EndSegmentStep=8,Vn.CurvinessStart=nA,Vn.SpacingMin=iA,Vn.OrthoShortCut=g0;function nm(a,y,x,E){ao(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=E,this.links=[]}nm.prototype.Sl=function(){if(!this.qq){var a=this.links;0=a.width||0>=a.height)){var y=a.y,x=a.x+a.width,E=a.y+a.height;if(this.Nd=Math.floor((a.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((y-this.sc)/this.sc)*this.sc,this.En=Math.ceil((x+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((E+2*this.sc)/this.sc)*this.sc,a=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),y=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di=ud&&(x[E]=_v)}f0.prototype.Yj=function(a,y,x,E){if(a>this.En||a+xthis.Fn||y+Ea&&(x+=a,a=0),0>y&&(b+=y,y=0),0>x||0>b)return!0;for(E=Math.min(a+x-1,this.di)|0,x=Math.min(y+b-1,this.ei)|0;a<=E;a++){b=this.ac[a];for(var z=y;z<=x;z++)if(b[z]===Wh)return!1}return!0};function Uu(a,y,x,E,b,z,tt,rt,at){if(!(ytt||xat)){var lt=y|0,ht=x|0,ft=a.ac[lt][ht];if(ft>=ud&&ft=a.ac[lt][ht]);)a.ac[lt][ht]=ft,ft+=1,b?ht+=E:lt+=E;if(lt=b?ht:lt,b)if(0lt;x+=E)Uu(a,y,x,1,!b,z,tt,rt,at),Uu(a,y,x,-1,!b,z,tt,rt,at);else if(0lt;y+=E)Uu(a,y,x,1,!b,z,tt,rt,at),Uu(a,y,x,-1,!b,z,tt,rt,at)}}function im(a,y,x,E,b,z,tt,rt,at){y|=0,x|=0;var lt=Wh,ht=ud;for(a.ac[y][x]=ht;lt===Wh&&y>z&&yrt&&xz&&yrt&&x=Math.abs(rt-lt)&&1>=Math.abs(at-ht))a.abort=!0;else{var ft=z.x;E=z.y,y=z.x+z.width;var vt=z.y+z.height;ft-=a.Nd,ft/=a.rc,E-=a.Od,E/=a.sc,y-=a.Nd,y/=a.rc,vt-=a.Od,vt/=a.sc,z=Math.max(0,Math.min(a.di,ft|0)),y=Math.min(a.di,Math.max(0,y|0)),ft=Math.max(0,Math.min(a.ei,E|0)),vt=Math.min(a.ei,Math.max(0,vt|0)),E=a.ac,rt|=0,at|=0,lt|=0,ht|=0;var xt=x===0||x===90?1:-1;if(x=x===90||x===270,E[rt][at]===Wh?(im(a,rt,at,xt,x,z,y,ft,vt),im(a,rt,at,1,!x,z,y,ft,vt),im(a,rt,at,-1,!x,z,y,ft,vt)):im(a,rt,at,xt,x,rt,at,rt,at),E[lt][ht]===Wh?(om(a,lt,ht,b===0||b===90?1:-1,b===90||b===270,z,y,ft,vt),om(a,lt,ht,1,!(b===90||b===270),z,y,ft,vt),om(a,lt,ht,-1,!(b===90||b===270),z,y,ft,vt)):om(a,lt,ht,xt,x,lt,ht,lt,ht),x=ii(),tt&&aA(a,lt,ht,b,rt,at,x))for((x[0]!==lt||x[1]!==ht)&&(x.unshift(ht),x.unshift(lt)),(x[x.length-2]!==rt||x[x.length-1]!==at)&&(x.push(rt),x.push(at)),a=ud,b=x[x.length-2],tt=x[x.length-1],E[b][tt]=a++,z=x.length-4;0<=z;z-=2)for(b=x[z+2],tt=x[z+3],y=x[z],lt=x[z+1];y>b?b++:ytt?tt++:ltb)ht--;else break;else if(ft>z)ft--;else break;var vt=rt[ht][ft];if(vt===0||vt===$v)break;at=ht,lt=ft}for(;;){if(ht=E,ft=at,vt=lt,E===0?vtz&&(ht=270,vt--):E===90?ftb&&(ht=180,ft--):E===180?vtz&&(ht=270,vt--):ftb&&(ht=180,ft--),ft=rt[ft][vt],ht!==E&&ft!==0&&ft!==$v){if(tt.push(at),tt.push(lt),aA(a,at,lt,ht,b,z,tt))return!0;tt.pop(),tt.pop()}if(rt[at][lt]=$v,E===0){if(at===y)return!1;at--}else if(E===90){if(lt===x)return!1;lt--}else if(E===180){if(at===y)return!1;at++}else{if(lt===x)return!1;lt++}}}Vt.Object.defineProperties(f0.prototype,{bounds:{get:function(){return new on(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(a){0=x?180:0}switch(a=180*Math.atan2(a.height,a.width)/Math.PI,y){case 3:return x>a&&x<=180+a?180:270;case 5:return x>180-a&&x<=360-a?270:0;case 12:return x>a&&x<=180+a?90:0;case 10:return x>180-a&&x<=360-a?180:90;case 7:return 90180+a&&x<=360-a?270:0;case 13:return 180a&&180>=x?90:0;case 14:return x>a&&x<=180-a?90:x>180-a&&270>=x?180:0;case 11:return x>180-a&&x<=180+a?180:x>180+a?270:90}return E&&y!==15&&(x-=15,0>x&&(x+=360)),x>a&&x<180-a?90:x>=180-a&&x<=180+a?180:x>180+a&&x<360-a?270:0}Xd.prototype.Sl=function(){this.pe.length=0};function sA(a,y){var x=a.pe;if(x.length===0){t:if(!a.ap){x=a.ap,a.ap=!0;var E=null,b=a.node,z=b instanceof to?b:null;if(z===null||z.isSubGraphExpanded)var tt=b.isTreeExpanded?b.findLinksConnected(a.port.portId):b.qx();else{if(!z.actualBounds.w()){a.ap=x;break t}E=z,tt=E.Lu()}z=a.pe.length=0;var rt=a.port.ga(Or,Ot.alloc()),at=a.port.ga(ts,Ot.alloc());for(b=on.allocAt(rt.x,rt.y,0,0),b.Ye(at),Ot.free(rt),Ot.free(at),rt=Ot.allocAt(b.x+b.width/2,b.y+b.height/2),at=a.port.li(),tt=tt.iterator;tt.next();){var lt=tt.value;if(lt.isVisible()&<.fromPort!==lt.toPort){var ht=lt.fromPort===a.port||lt.fromNode!==null&<.fromNode.Td(E),ft=lt.computeSpot(ht,a.port);if(ft.$c()&&(ht=ht?lt.toPort:lt.fromPort,ht!==null)){var vt=ht.part;if(vt!==null){var xt=vt.findVisibleNode();xt!==null&&xt!==vt&&(vt=xt,ht=vt.port),ht=lt.computeOtherPoint(vt,ht),vt=rt.ab(ht),vt-=at,0>vt?vt+=360:360<=vt&&(vt-=360),ft=L5(b,ft,vt,lt.isOrthogonal),ft===0?(ft=4,180vt&&(vt+=360)),xt=a.pe[z],xt===void 0?(xt=new t1(lt,vt,ft),a.pe[z]=xt):(xt.link=lt,xt.angle=vt,xt.Nc=ft),xt.hv.set(ht),z++}}}}for(Ot.free(rt),a.pe.sort(Xd.prototype.j),at=a.pe.length,E=-1,z=rt=0;zMath.abs(Lt)?(Jt=Math.abs(Lt)/vt,vt=Math.abs(Lt)):Jt=1;break;case 2:xt>Math.abs(ne)?(Jt=Math.abs(ne)/xt,xt=Math.abs(ne)):Jt=1;break;case 1:ft>Math.abs(Lt)?(Jt=Math.abs(Lt)/ft,ft=Math.abs(Lt)):Jt=1;break;default:case 4:ht>Math.abs(ne)?(Jt=Math.abs(ne)/ht,ht=Math.abs(ne)):Jt=1}kt=0}var Ge=se.Zo;if(E===Zv){switch(se=se.link.computeThickness(),se*=Jt,Ge.set(ye),Et){case 8:Ge.x=ye.x+Lt/2+vt/2-kt-se/2;break;case 2:Ge.y=ye.y+ne/2+xt/2-kt-se/2;break;case 1:Ge.x=ye.x+Lt/2-ft/2+kt+se/2;break;default:case 4:Ge.y=ye.y+ne/2-ht/2+kt+se/2}kt+=se}else{var ni=.5;E===Yp&&(ni=(se.Uo+1)/(se.Gl+1)),Ge.x=ye.x+Lt*ni,Ge.y=ye.y+ne*ni}}}for(Ot.free(rt),Ot.free(at),Ot.free(tt),Ot.free(lt),ye=a.pe,z=0;zy.Nc?1:a.angley.angle?1:0},Xd.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,ir,y.fromPort===this.port),E=a.Uo;if(0>E)return x;var b=a.Gl;if(1>=b||!y.isOrthogonal)return x;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(E=b-1-E),((a=a.Nc===2||a.Nc===4)?y.y=y-1?(z=0,E=x,b+=tt+20,tt=0):z++}},Pr.prototype.doMinimalNetworkLayout=function(){var a=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var y=this.arrangementOrigin.x,x=y,E=this.arrangementOrigin.y,b=0,z=0,tt=this.network.vertexes.iterator;tt.next();){var rt=tt.value.node;if(!(rt===null||rt instanceof Vn)&&(p0(rt),this.rh(rt))){var at=rt.measuredBounds,lt=at.width;at=at.height,rt.moveTo(x,E),rt instanceof to&&(rt.rh=!1),x+=Math.max(lt,50)+20,z=Math.max(z,Math.max(at,50)),b>=a-1?(b=0,x=y,E+=z+20,z=0):b++}}},Pr.prototype.rh=function(a){return!!(!a.location.w()||a instanceof to&&a.rh)};function Cc(a,y,x,E,b,z,tt,rt){for(x=x.iterator;x.next();){var at=x.value;E&&!at.isTopLevel||b!==null&&!b(at)||!at.canLayout()||(z&&at instanceof ri?at.isLinkLabel||(at instanceof to&&at.layout===null?Cc(a,y,at.memberParts,!1,b,z,tt,rt):(p0(at),y.add(at))):tt&&at instanceof Vn?y.add(at):!rt||!at.Zc()||at instanceof ri||(p0(at),y.add(at)))}}function p0(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Pr.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new on),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Pr.prototype.ex=function(a){var y=new bn;return a instanceof Ue?(Cc(this,y,a.nodes,!0,null,!0,!0,!0),Cc(this,y,a.links,!0,null,!0,!0,!0),Cc(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof to?Cc(this,y,a.memberParts,!1,null,!0,!0,!0):Cc(this,y,a.iterator,!1,null,!0,!0,!0),y},Pr.prototype.initialOrigin=function(a){var y=this.group;if(y!==null){var x=y.position.copy();return(isNaN(x.x)||isNaN(x.y))&&x.set(a),y=y.placeholder,y!==null&&(x=y.ga(Or),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},Vt.Object.defineProperties(Pr.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},group:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a,a!==null&&(this.H=a.diagram))}},isOngoing:{get:function(){return this.sn},set:function(a){this.sn!==a&&(this.sn=a)}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a,a||(this.xn=!0)}},isViewportSized:{get:function(){return this.yn},set:function(a){this.yn!==a&&(this.yn=a)&&this.C()}},isRouting:{get:function(){return this.vn},set:function(a){this.vn!==a&&(this.vn=a)}},isRealtime:{get:function(){return this.un},set:function(a){this.un!==a&&(this.un=a)}},isValidLayout:{get:function(){return this.xn},set:function(a){this.xn!==a&&(this.xn=a,a||(a=this.diagram,a!==null&&(a.xh=!0)))}},network:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,a!==null&&(a.layout=this))}},boundsComputation:{get:function(){return this.Em},set:function(a){this.Em!==a&&(this.Em=a,this.C())}},arrangementOrigin:{get:function(){return this.Am},set:function(a){this.Am.D(a)||(this.Am.assign(a),this.C())}}}),Pr.prototype.collectParts=Pr.prototype.ex,Pr.prototype.getLayoutBounds=Pr.prototype.ni,Pr.prototype.invalidateLayout=Pr.prototype.C,Pr.className="Layout";function dr(a){ao(this),this.Sc=a,this.wf=new bn,this.ye=new bn,this.Es=new hi,this.zs=new hi}dr.prototype.clear=function(){if(this.wf)for(var a=this.wf.iterator;a.next();)a.value.clear();if(this.ye)for(a=this.ye.iterator;a.next();)a.value.clear();this.wf=new bn,this.ye=new bn,this.Es=new hi,this.zs=new hi},dr.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutNetwork"+(this.layout!==null?"("+this.layout.toString()+")":"");if(0>=a)return y;if(y+=" vertexes: "+this.wf.count+" edges: "+this.ye.count,1y?1:0):1:y!==null?-1:0}Vt.Object.defineProperties(ua.prototype,{sourceEdgesArrayAccess:{get:function(){return this.tg._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.mg._dataArray}},data:{get:function(){return this.ub},set:function(a){if(this.ub=a,a!==null&&a.bounds){var y=a.bounds;a=y.x;var x=y.y,E=y.width;y=y.height,this.o.h(E/2,y/2),this.j.h(a,x,E,y)}}},node:{get:function(){return this.Sh},set:function(a){if(this.Sh!==a){this.Sh=a,a.Va();var y=this.network.layout,x=on.alloc(),E=y.ni(a,x);y=E.x;var b=E.y,z=E.width;if(E=E.height,isNaN(y)&&(y=0),isNaN(b)&&(b=0),this.j.h(y,b,z,E),on.free(x),!(a instanceof to)&&(a=a.locationObject.ga(Wo),a.w())){this.o.h(a.x-y,a.y-b);return}this.o.h(z/2,E/2)}}},bounds:{get:function(){return this.j},set:function(a){this.j.D(a)||this.j.assign(a)}},focus:{get:function(){return this.o},set:function(a){this.o.D(a)||this.o.assign(a)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(a){var y=this.j;y.x+this.o.x!==a&&(y.ka(),y.x=a-this.o.x,y.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(a){var y=this.j;y.y+this.o.y!==a&&(y.ka(),y.y=a-this.o.y,y.freeze())}},focusX:{get:function(){return this.o.x},set:function(a){var y=this.o;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},focusY:{get:function(){return this.o.y},set:function(a){var y=this.o;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},x:{get:function(){return this.j.x},set:function(a){var y=this.j;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},y:{get:function(){return this.j.y},set:function(a){var y=this.j;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},width:{get:function(){return this.j.width},set:function(a){var y=this.j;y.width!==a&&(y.ka(),y.width=a,y.freeze())}},height:{get:function(){return this.j.height},set:function(a){var y=this.j;y.height!==a&&(y.ka(),y.height=a,y.freeze())}},network:{get:function(){return this.ob},set:function(a){this.ob=a}},sourceVertexes:{get:function(){for(var a=new bn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new bn,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new bn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);for(y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},sourceEdges:{get:function(){return this.tg.iterator}},destinationEdges:{get:function(){return this.mg.iterator}},edges:{get:function(){for(var a=new Ln,y=this.sourceEdges;y.next();)a.add(y.value);for(y=this.destinationEdges;y.next();)a.add(y.value);return a.iterator}},edgesCount:{get:function(){return this.tg.count+this.mg.count}}}),ua.prototype.deleteDestinationEdge=ua.prototype.Jl,ua.prototype.addDestinationEdge=ua.prototype.zl,ua.prototype.deleteSourceEdge=ua.prototype.Kl,ua.prototype.addSourceEdge=ua.prototype.Cl,ua.className="LayoutVertex",ua.standardComparer=o1,ua.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.Sh;var x=y.Sh;if(a!==null){if(x!==null){for(y=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),a=x.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),x=0;x "+(this.qd?this.qd.toString():"null"))),y},el.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},el.prototype.commit=function(){},el.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},Vt.Object.defineProperties(el.prototype,{network:{get:function(){return this.nb},set:function(a){this.nb=a}},data:{get:function(){return this.ub},set:function(a){this.ub!==a&&(this.ub=a)}},link:{get:function(){return this.$k},set:function(a){this.$k!==a&&(this.$k=a)}},fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}}}),el.prototype.getOtherVertex=el.prototype.Ax,el.className="LayoutEdge";function ja(a){Pr.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new Nn(NaN,NaN).freeze(),this.tf=new Nn(10,10).freeze(),this.Jb=m0,this.Rb=am,this.nd=v0,this.hd=uA,a&&Object.assign(this,a)}Yt(ja,Pr),ja.prototype.cloneProtected=function(a){Pr.prototype.cloneProtected.call(this,a),a.zo=this.zo,a.yo=this.yo,a.yg.assign(this.yg),a.tf.assign(this.tf),a.Jb=this.Jb,a.Rb=this.Rb,a.nd=this.nd,a.hd=this.hd},ja.prototype.qb=function(a){a.classType===ja?a===v0||a===lm||a===r1||a===sm?this.sorting=a:a===am||a===hu?this.arrangement=a:a===m0||a===rm?this.alignment=a:Xt("Unknown enum value: "+a):Pr.prototype.qb.call(this,a)},ja.prototype.doLayout=function(a){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var y=this.ex(a);a=this.diagram;for(var x=y.copy().iterator;x.next();){var E=x.value;if(!E.ph()||E.fromNode===null&&E.toNode===null){if(E.Va(),E instanceof to)for(E=E.memberParts;E.next();)y.remove(E.value)}else y.remove(E)}var b=y.Fa();if(b.length!==0){switch(this.sorting){case sm:b.reverse();break;case v0:b.sort(this.comparer);break;case lm:b.sort(this.comparer),b.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var tt=this.wrappingWidth;switch(isNaN(tt)&&a!==null?(y=a.padding,tt=Math.max(a.viewportBounds.width-y.left-y.right,0)):tt=Math.max(this.wrappingWidth,0),0>=z&&0>=tt&&(z=1),y=this.spacing.width,isFinite(y)||(y=0),x=this.spacing.height,isFinite(x)||(x=0),a!==null&&a.Ea("Layout"),E=[],this.alignment){case rm:var rt=y,at=x,lt=on.alloc(),ht=Math.max(this.cellSize.width,1);if(!isFinite(ht))for(var ft=ht=0;ftz-1||0tt)&&(E.push(new on(0,Lt,tt+rt,kt)),Wt=0,Et=xt,Lt+=kt,kt=0),kt=Math.max(kt,Ge),vt){case hu:se=-se.width;break;default:se=0}switch(ne.moveTo(Et+se,Lt),vt){case hu:Et-=ye;break;default:Et+=ye}Wt++}E.push(new on(0,Lt,tt+rt,kt)),on.free(lt);break;case m0:for(at=tt,ht=z,ft=y,vt=x,tt=on.alloc(),xt=Math.max(this.cellSize.width,1),z=Lt=lt=0,rt=Ot.alloc(),Et=0;Et=lt&&(at-=lt),lt=ne=0,ye=Math.max(this.cellSize.height,1),se=z=0,Ge=!0,Wt=Ot.alloc(),ni=0;niht-1||0at){for(E.push(new on(0,Ge?Jt-z:Jt,at+ft,se+z+vt)),fi=0;filt&&(z.width+=z.x-lt,z.x=lt);on.free(tt)}for(rt=z=tt=b=0;rty?1:0}Vt.Object.defineProperties(ja.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(a){this.zo!==a&&(0ft)){var Lt=ft+_f(Et);Et.pc(Lt,!0),Cv(Et,Lt,ft)}}y.isModified=!0}}finally{y.aa=!0}}}}},_o.prototype.updateAllTargetBindings=function(a){a===void 0&&(a="");for(var y=this.parts.iterator;y.next();)y.value.La(a);for(y=this.nodes.iterator;y.next();)y.value.La(a);for(y=this.links.iterator;y.next();)y.value.La(a)},_o.prototype.rp=function(){for(var a=this.H.model,y=new bn,x=a.nodeDataArray,E=0;E=E)return"[]";var b=new wi;b.add("["),x&&1E)return;oi(a.Tc,E)}sa(a,"nodeDataArray",na,"nodeDataArray",a,y,null,E,null),a.qp(y)}Ct.nA=function(a){if(Pe(a))for(var y=a.length,x=0;xy&&(y=a.length),Di(a,y,x),sa(this,"",Ur,"",a,null,x,null,y)},Ct.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&Xt("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];oi(a,y),sa(this,"",na,"",a,x,null,y,null)},Ct.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=Jr(a,y),y===void 0))return"";if(typeof y=="string")return y;Xt("getCategoryForNodeData found a non-string category for "+a+": "+y)},Ct.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var E=Jr(a,x);E===void 0&&(E=""),E!==y&&(wr(a,x,y),sa(this,"nodeCategory",Er,x,a,E,y))}else wr(a,x,y)}},Ct.lm=function(a,y){this.jm(y,this.Ro(a))},Ct.Tl=function(){return!1},Ct.Wj=function(){return!1},Ct.ri=function(){return!1},Ct.xs=function(){return!1},Ct.Xj=function(){return!1};function h1(){return new yi}function A0(a,y){if(typeof y=="function"){if(y.className)return y.className;if(y.name)return y.name}else if(typeof y=="object"&&y!==null&&y.constructor)return A0(a,y.constructor);return typeof y}function c1(a){return $l[a]?$l[a]:We.go!==void 0&&We.go[a]?We.go[a]:null}function Jr(a,y){if(!a||!y)return null;try{if(typeof y=="function")var x=y(a);else typeof a.getAttribute=="function"?(x=a.getAttribute(y),x===null&&(x=void 0)):x=a[y]}catch(E){}return x}function wr(a,y,x){if(a&&y)try{typeof y=="function"?y(a,x):typeof a.setAttribute=="function"?a.setAttribute(y,x):a[y]=x}catch(E){}}Vt.Object.defineProperties(yi.prototype,{name:{get:function(){return this.xa},set:function(a){var y=this.xa;y!==a&&(this.xa=a,this.g("name",y,a))}},dataFormat:{get:function(){return this.Sm},set:function(a){var y=this.Sm;y!==a&&(this.Sm=a,this.g("dataFormat",y,a))}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},modelData:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.g("modelData",y,a),this.La(a))}},undoManager:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&(y!==null&&y.Rx(this),this.o=a,a!==null&&a.Xw(this))}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a}},nodeKeyProperty:{get:function(){return this.Th},set:function(a){var y=this.Th;y!==a&&(a===""&&Xt("Model.nodeKeyProperty may not be the empty string"),0E)return;oi(a.Tc,E)}sa(a,"nodeDataArray",na,"nodeDataArray",a,y,null,E,null),a.qp(y)}Ct.nA=function(a){if(Pe(a))for(var y=a.length,x=0;xy&&(y=a.length),Di(a,y,x),sa(this,"",Ur,"",a,null,x,null,y)},Ct.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&Xt("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];oi(a,y),sa(this,"",na,"",a,x,null,y,null)},Ct.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=Jr(a,y),y===void 0))return"";if(typeof y=="string")return y;Xt("getCategoryForNodeData found a non-string category for "+a+": "+y)},Ct.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var E=Jr(a,x);E===void 0&&(E=""),E!==y&&(wr(a,x,y),sa(this,"nodeCategory",Er,x,a,E,y))}else wr(a,x,y)}},Ct.lm=function(a,y){this.jm(y,this.Ro(a))},Ct.Tl=function(){return!1},Ct.Wj=function(){return!1},Ct.ri=function(){return!1},Ct.xs=function(){return!1},Ct.Xj=function(){return!1};function h1(){return new yi}function A0(a,y){if(typeof y=="function"){if(y.className)return y.className;if(y.name)return y.name}else if(typeof y=="object"&&y!==null&&y.constructor)return A0(a,y.constructor);return typeof y}function c1(a){return $l[a]?$l[a]:We.go!==void 0&&We.go[a]?We.go[a]:null}function Jr(a,y){if(!a||!y)return null;try{if(typeof y=="function")var x=y(a);else typeof a.getAttribute=="function"?(x=a.getAttribute(y),x===null&&(x=void 0)):x=a[y]}catch(E){}return x}function wr(a,y,x){if(a&&y)try{typeof y=="function"?y(a,x):typeof a.setAttribute=="function"?a.setAttribute(y,x):a[y]=x}catch(E){}}Vt.Object.defineProperties(yi.prototype,{name:{get:function(){return this.xa},set:function(a){var y=this.xa;y!==a&&(this.xa=a,this.g("name",y,a))}},dataFormat:{get:function(){return this.Sm},set:function(a){var y=this.Sm;y!==a&&(this.Sm=a,this.g("dataFormat",y,a))}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},modelData:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.g("modelData",y,a),this.La(a))}},undoManager:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&(y!==null&&y.Rx(this),this.o=a,a!==null&&a.Xw(this))}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a}},nodeKeyProperty:{get:function(){return this.Th},set:function(a){var y=this.Th;y!==a&&(a===""&&Xt("Model.nodeKeyProperty may not be the empty string"),0E.indexOf(a.newValue)&&E.splice(x,0,a.newValue));return}}else if(a.change===na){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,he(a)&&typeof x=="number"&&(E=this.Ac(a),y?(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),E!==void 0&&this.wb.add(E,a)):(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),E!==void 0&&this.wb.remove(E)));return}if(a.modelChange==="linkLabelKeys"){E=this.Ef(a.object),Array.isArray(E)&&typeof x=="number"&&(y?0>E.indexOf(a.newValue)&&E.splice(x,0,a.newValue):(x=E.indexOf(a.newValue),0<=x&&E.splice(x,1)));return}}yi.prototype.changeState.call(this,a,y)}},Ct=Do.prototype,Ct.Vl=function(a){if(a!==void 0){var y=this.Ri;if(y!==null){var x=this.hc(a);x===null&&(x=this.copyNodeData(y),wr(x,this.nodeKeyProperty,a),this.xf(x))}return a}},Ct.yx=function(a){return pl(this,a,!0)},Ct.wv=function(a,y){Qg(this,a,y,!0)},Ct.Bx=function(a){return pl(this,a,!1)},Ct.Bv=function(a,y){Qg(this,a,y,!1)};function pl(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=Jr(y,a),a!==void 0))){if(xc(a))return a;Xt((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Qg(a,y,x,E){if(x===null&&(x=void 0),y!==null){var b=E?a.lf:a.mf;if(b!=="")if(x=a.Vl(x),a.Jc(y)){var z=Jr(y,b);z!==x&&(du(a,z,y),wr(y,b,x),a.hc(x)===null&&cu(a,x,y),sa(a,E?"linkFromKey":"linkToKey",Er,b,y,z,x),typeof b=="string"&&a.La(y,b))}else wr(y,b,x)}}Ct.zx=function(a){return gm(this,a,!0)},Ct.xv=function(a,y){Jg(this,a,y,!0)},Ct.Cx=function(a){return gm(this,a,!1)},Ct.Cv=function(a,y){Jg(this,a,y,!1)};function gm(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=Jr(y,a),y===void 0?"":y)}function Jg(a,y,x,E){if(y!==null){var b=E?a.ej:a.fj;if(b!=="")if(a.Jc(y)){var z=Jr(y,b);z===void 0&&(z=""),z!==x&&(wr(y,b,x),sa(a,E?"linkFromPortId":"linkToPortId",Er,b,y,z,x),typeof b=="string"&&a.La(y,b))}else wr(y,b,x)}}Ct.Ef=function(a){if(a===null)return fm;var y=this.je;return y===""?fm:(a=Jr(a,y),a===void 0?fm:a)},Ct.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var E=Jr(a,x);if(E===void 0&&(E=fm),E!==y){if(Array.isArray(E))for(var b=E.length,z=0;zb||(E.splice(b,1),this.Jc(a)&&(du(this,y,a),sa(this,"linkLabelKeys",na,x,a,y,null,b,null)))}else E!==void 0&&Xt(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Ct.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=Jr(a,y),y!==void 0)){if(xc(y))return y;Xt("Key value for link data "+a+" is not a number or a string: "+y)}}},Ct.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var E=Jr(a,x);E!==y&&this.jh(y)===null&&(wr(a,x,y),E!==void 0&&this.wb.remove(E),this.wb.add(y,a),sa(this,"linkKey",Er,x,a,E,y),typeof x=="string"&&this.La(a,x))}else wr(a,x,y)}},Ct.jh=function(a){return a===null&&Xt("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&xc(a)?this.wb.I(a):null},Ct.Bs=function(a){if(a!==null){var y=this.Jh;if(y!==""){var x=this.Ac(a);if(x===void 0||this.wb.contains(x)){var E=this.cl;if(E!==null&&(x=E(this,a),x!=null&&!this.wb.contains(x))){wr(a,y,x);return}if(typeof x=="string"){for(E=2;this.wb.contains(x+E);)E++;wr(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;wr(a,y,x)}}}}},Ct.Jc=function(a){return a===null?!1:this.$f.contains(a)},Ct.fi=function(a){a!==null&&(Mo(a),this.Jc(a)||LA(this,a,!0))};function LA(a,y,x){if(a.linkKeyProperty!==""){var E=a.Ac(y);if(E!==void 0&&a.wb.I(E)===y)return;a.Bs(y),E=a.Ac(y),E===void 0&&Xt("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(E,y)}a.$f.add(y),E=null,x&&(E=a.md.length,a.md.splice(E,0,y)),sa(a,"linkDataArray",Ur,"linkDataArray",a,null,y,null,E),d1(a,y)}Ct.Ey=function(a){if(Array.isArray(a))for(var y=a.length,x=0;xE)return;a.md.splice(E,1)}if(sa(a,"linkDataArray",na,"linkDataArray",a,y,null,E,null),x=pl(a,y,!0),du(a,x,y),x=pl(a,y,!1),du(a,x,y),E=a.Ef(y),Array.isArray(E))for(var b=E.length,z=0;z=a.count)a.count===1&&(a=a.first(),a.centerX=0,a.centerY=0);else{var y=new Ln;y.addAll(a.iterator),a=new Ln;var x=new Ln,E=this.sort(y),b,z,tt=this.Jp,rt=this.arrangement,at=this.nodeDiameterFormula,lt=this.radius;(!isFinite(lt)||0>=lt)&&(lt=NaN);var ht=this.aspectRatio;(!isFinite(ht)||0>=ht)&&(ht=1);var ft=this.startAngle;isFinite(ft)||(ft=0);var vt=this.sweepAngle;if((!isFinite(vt)||360vt)&&(vt=360),y=this.spacing,isFinite(y)||(y=NaN),rt===eu&&at===Kd?rt=tu:rt===eu&&at!==Kd&&(rt=this.arrangement),(this.direction===hd||this.direction===qg)&&this.sorting!==_g){for(at=0;!(at>=E.length)&&(a.add(E.M(at)),!(at+1>=E.length));at+=2)x.add(E.M(at+1));this.direction===hd?(this.arrangement===eu&&a.reverse(),E=new Ln,E.addAll(a),E.addAll(x)):(this.arrangement===eu&&x.reverse(),E=new Ln,E.addAll(x),E.addAll(a))}at=E.length;for(var xt=z=b=0;xtvt&&(xt===0||xt===E.length-1)&&(Lt/=2),b+=Lt,z++}if(isNaN(lt)||rt===eu){if(isNaN(y)&&(y=6),rt!==tu&&rt!==eu){for(z=-1/0,tt=0;ttlt?(lt=b,z=lt*ht):tt=xt/(360<=vt?at:at-1)}if(this.kw=rt,this.lc=lt,this.Zm=ht,this.lw=ft,this.Wp=vt,this.Ti=y,this.me=z,this.Jp=tt,y=E,E=this.kw,rt=this.lc,lt=this.lw,ht=this.Wp,ft=this.Ti,vt=this.me,at=this.Jp,this.direction!==hd&&this.direction!==qg||E!==eu)if(this.direction===hd||this.direction===qg){switch(tt=0,E){case wc:tt=180*mm(this,rt,vt,lt,at)/Math.PI;break;case tu:at=y=0,tt=a.first(),tt!==null&&(y=Pc(tt,Math.PI/2)),tt=x.first(),tt!==null&&(at=Pc(tt,Math.PI/2)),tt=180*mm(this,rt,vt,lt,ft+(y+at)/2)/Math.PI;break;case Gh:tt=ht/y.length}if(this.direction===hd){switch(E){case wc:w0(this,a,lt,Ec);break;case tu:x0(this,a,lt,Ec);break;case Gh:S0(this,a,ht/2,lt,Ec)}switch(E){case wc:w0(this,x,lt+tt,Ps);break;case tu:x0(this,x,lt+tt,Ps);break;case Gh:S0(this,x,ht/2,lt+tt,Ps)}}else{switch(E){case wc:w0(this,x,lt,Ec);break;case tu:x0(this,x,lt,Ec);break;case Gh:S0(this,x,ht/2,lt,Ec)}switch(E){case wc:w0(this,a,lt+tt,Ps);break;case tu:x0(this,a,lt+tt,Ps);break;case Gh:S0(this,a,ht/2,lt+tt,Ps)}}}else switch(E){case wc:w0(this,y,lt,this.direction);break;case tu:x0(this,y,lt,this.direction);break;case Gh:S0(this,y,ht,lt,this.direction);break;case eu:bA(this,y,ht,lt,this.direction)}else bA(this,y,ht,lt-ht/2,Ps)}this.updateParts(),this.network=null,this.isValidLayout=!0};function S0(a,y,x,E,b){var z=a.Wp,tt=a.lc;a=a.me,E=E*Math.PI/180,x=x*Math.PI/180;for(var rt=y.length,at=0;atx){for(z=E+(b===Ps?z:-z);0>z;)z+=360;z%=360,180=ht.length-1));ft++)TA(a,at,lt,ht,ft,b,z)||OA(a,at,lt,ht,ft,b,z),at=z.x,lt=z.y;if(Ot.free(z),a.mj++,!(23Math.abs(xt)?Math.abs(at-z)<(ht[0].width+ht[ht.length-1].width)/2&&(tt=0):tt=0Math.abs(vt)?0:vt,at=Math.abs(z)>Math.abs(ft)?0ft:0a.mj?a.lc-tt/(2*Math.PI):5>ht.length&&10=ft.length-1));vt++)TA(a,at,lt,ft,vt,b,ht)||OA(a,at,lt,ft,vt,b,ht),at=ht.x,lt=ht.y;if(Ot.free(ht),a.mj++,!(23a.mj?a.lc-z/(2*Math.PI):a.lc-(0rt){if(z=y-a,z<-rt)return tt.x=z,tt.y=lt,!1;ht=!0}}else if(z=y-a,z<-rt){if(z=y+a,z>rt)return tt.x=z,tt.y=lt,!1;ht=!0}return lt=Math.sqrt(1-Math.min(1,z*z/(rt*rt)))*at,0>x!==ht&&(lt=-lt),Math.abs(x-lt)>(E[b].height+E[b+1].height)/2?(tt.x=z,tt.y=lt,!1):(tt.x=z,tt.y=lt,!0)}function OA(a,y,x,E,b,z,tt){var rt=a.lc,at=a.me,lt=0;if(a=(E[b].height+E[b+1].height)/2+a.Ti,E=!1,0<=y!=(z===Ps)){if(z=x-a,z<-at){if(z=x+a,z>at){tt.x=lt,tt.y=z;return}E=!0}}else if(z=x+a,z>at){if(z=x-a,z<-at){tt.x=lt,tt.y=z;return}E=!0}lt=Math.sqrt(1-Math.min(1,z*z/(at*at)))*rt,0>y!==E&&(lt=-lt),tt.x=lt,tt.y=z}Nr.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},Nr.prototype.commitNodes=function(){var a=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,y=a?this.group.location.copy():null,x=this.actualCenter;a?x=new Ot(0,0):(x.x=this.arrangementOrigin.x+this.lc,x.y=this.arrangementOrigin.y+this.me);for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;b.x+=x.x,b.y+=x.y,b.commit()}a&&(this.group.Va(),a=this.group.position.copy(),x=this.group.location.copy(),y=y.re(x.re(a)),this.group.move(y),this.Zv=y.re(a))},Nr.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function g1(a,y,x,E,b){var z=a.ty;if(.001>Math.abs(a.Zm-1))return E!==void 0&&b!==void 0?b*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var tt=0,rt=E!==void 0&&b!==void 0?b/(z+1):Math.PI/(2*(z+1)),at=0,lt=0;lt<=z;lt++){E!==void 0&&b!==void 0?at=E+lt*b/z:at=lt*Math.PI/(2*z);var ht=Math.sin(at);tt+=Math.sqrt(1-a*a*ht*ht)*rt}return E!==void 0&&b!==void 0?(y>x?y:x)*tt:4*(y>x?y:x)*tt}function pm(a,y,x,E,b){return y/(E!==void 0&&b!==void 0?g1(a,1,x,E,b):g1(a,1,x))}function mm(a,y,x,E,b){if(.001>Math.abs(a.Zm-1))return b/y;var z=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,tt=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(E+=Math.PI/2);for(var rt=0;;rt++){var at=Math.sin(E+rt*a);if(tt+=(y>x?y:x)*Math.sqrt(1-z*z*at*at)*a,tt>=b)return rt*a}}Nr.prototype.sort=function(a){switch(this.sorting){case vm:break;case ym:a.reverse();break;case Am:a.sort(this.comparer);break;case Cm:a.sort(this.comparer),a.reverse();break;case _g:return this.ak(N5(a));default:Xt("Invalid sorting type.")}return a};function N5(a){for(var y=[],x=0;xb&&(b=rt,z=tt)}else for(tt=0;ttb&&(b=rt,z=tt);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),tt=z.sourceEdges;tt.next();)b=a.indexOf(tt.value.fromVertex),0>b||0<=y[b]&&y[b]++;for(z=z.destinationEdges;z.next();)b=a.indexOf(z.value.toVertex),0>b||0<=y[b]&&y[b]++}return x}Nr.prototype.ak=function(a){for(var y=[],x=0;xy[x].indexOf(b)&&y[x].push(b);for(E=E.sourceEdges;E.next();)b=a.indexOf(E.value.fromVertex),b!==x&&0>y[x].indexOf(b)&&y[x].push(b)}for(z=[],x=0;xy[x[Et]].indexOf(x[Et===x.length-1?0:Et+1])&&xt.push(Et===x.length-1?0:Et+1);if(xt.length===0)for(Et=0;Etx.indexOf(Ge)||yex.indexOf(Ge)||ye=Lt?ye+1:ye)),kt+=ye=Lt&&ye++,ne>=Lt&&ne++,ye>ne&&(se=ne,ne=ye,ye=se),ne-ye<(x.length+2)/2==(yext||xt===ht||(Et=xt>ht?xt-ht:ht-xt,ft+=xttt-Et?1:-1);x.splice(0>ft?ht:ht+1,0,at),E.splice(rt,1),rt--}else z=!1;if(z)break;x.push(E[0]),E.splice(0,1)}for(y=0;y=a?this.ul=a:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==eu&&a!==tu&&a!==wc&&a!==Gh||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==Ps&&a!==Ec&&a!==hd&&a!==qg||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==vm&&a!==ym&&a!==Am&&!Cm&&a!==_g||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf!==a&&(this.tf=a,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(a){this.Nn===a||a!==Sm&&a!==Kd||(this.Nn=a,this.C())}},actualXRadius:{get:function(){return this.lc}},actualYRadius:{get:function(){return this.me}},actualSpacing:{get:function(){return this.Ti}},actualCenter:{get:function(){return this.Zv}}});var tu=new sn(Nr,"ConstantSpacing",0),wc=new sn(Nr,"ConstantDistance",1),Gh=new sn(Nr,"ConstantAngle",2),eu=new sn(Nr,"Packed",3),Ps=new sn(Nr,"Clockwise",4),Ec=new sn(Nr,"Counterclockwise",5),hd=new sn(Nr,"BidirectionalLeft",6),qg=new sn(Nr,"BidirectionalRight",7),vm=new sn(Nr,"Forwards",8),ym=new sn(Nr,"Reverse",9),Am=new sn(Nr,"Ascending",10),Cm=new sn(Nr,"Descending",11),_g=new sn(Nr,"Optimized",12),Sm=new sn(Nr,"Pythagorean",13),Kd=new sn(Nr,"Circular",14);Nr.className="CircularLayout",Nr.ConstantSpacing=tu,Nr.ConstantDistance=wc,Nr.ConstantAngle=Gh,Nr.Packed=eu,Nr.Clockwise=Ps,Nr.Counterclockwise=Ec,Nr.BidirectionalLeft=hd,Nr.BidirectionalRight=qg,Nr.Forwards=vm,Nr.Reverse=ym,Nr.Ascending=Am,Nr.Descending=Cm,Nr.Optimized=_g,Nr.Pythagorean=Sm,Nr.Circular=Kd;function E0(){this.Pl=-1/0,this.tm=this.mk=null}E0.prototype.compare=function(a,y){if(0this.Pl||Math.abs(a)a&&0rt?(b=vt.x+vt.width/2,z=vt.y+vt.height/2,lt[0]=new Ot(vt.x+vt.width+E.width,vt.y),lt[1]=new Ot(vt.x,vt.y+vt.height+E.height),rt=2):(at=zA(lt,rt,b,z,vt.width,vt.height,E),ft=lt[at],xt=new Ot(ft.x+vt.width+E.width,ft.y),vt=new Ot(ft.x,ft.y+vt.height+E.height),at+1this.network.vertexes.count)return!1;for(var a=0,y=0,x=this.network.vertexes.first().bounds,E=this.network.vertexes.iterator;E.next();){if(E.value.bounds.Yc(x)&&(a++,2a.network.vertexes.count)return!1;for(a.ah=a.network.vertexes.Fa(),a=a.ah,a.sort(function(x,E){return x===null||E===null||x===E?0:E.Vd-x.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1=tt))){for(var lt=rt=0,ht=at.count-tt;htxt&&(xt=1),rt=Ie.sqrt((rt+xt+lt*lt*4/(tt*tt))/xt),tt=(rt-1)*ht/2,rt=(rt-1)*ft/2,b.bounds=new on(z-vt.x-tt,at-vt.y-rt,ht+2*tt,ft+2*rt),b.focus=new Ot(vt.x+tt,vt.y+rt)}}return a.network=E,x}function O5(a,y){for(var x=a.network.vertexes.iterator;x.next();){var E=x.value;if(E.network=y,E.We!==null){var b=E.We.M(E.sv);E.Vd=b.Rs;var z=b.Sv,tt=b.Tv;E.bounds=new on(E.centerX-z,E.centerY-tt,b.Ss,b.Qs),E.focus=new Ot(z,tt),E.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function j5(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var E=y.centerX,b=y.centerY,z=y.width,tt=y.height;y.We!==null&&0=ft.Vd?at++:(rt=!0,lt++,tt+=Math.atan2(y.centerY-ft.centerY,y.centerX-ft.centerX))}if(at!==0){for(0>1)+lt)*(rt%2===0?1:-1),at.centerX=E+ht*Math.cos(ft),at.centerY=b+ht*Math.sin(ft),rt++}}}}function zA(a,y,x,E,b,z,tt){var rt=9e19,at=-1,lt=0;t:for(;ltht.y&&a[vt].x-ht.xht.x&&a[vt].y-ht.yy+z?(x=E+b-tt,a=a-y-z,Ie.sqrt(x*x+a*a)):a+xtt+rt?a>y+z?(x=E-tt-rt,a=a-y-z,Ie.sqrt(x*x+a*a)):a+xy+z?a-(y+z):a+x=y.length)return!1;var x=y[0];x.forceX=0,x.forceY=0;for(var E=x.centerX,b=E,z=x=x.centerY,tt=1;ttz-x)?y.sort(function(Lt,Wt){return Lt===null||Wt===null||Lt===Wt?0:Lt.centerX-Wt.centerX}):y.sort(function(Lt,Wt){return Lt===null||Wt===null||Lt===Wt?0:Lt.centerY-Wt.centerY}),x=a.Zf;var lt=E=rt=0;for(z=0;zx||lt-at>x){if(b)break}else if(ht-xt>x||xt-ht>x){if(!b)break}else{var Et=RA(tt,vt);1>Et?(E=a.randomNumberGenerator,E===null&&(a.randomNumberGenerator=E=new wm),Et=E.random(),rt=E.random(),at>lt?(E=Math.abs(vt.bounds.right-tt.bounds.x),E=(1+E)*Et):atxt?(lt=Math.abs(vt.bounds.bottom-tt.bounds.y),lt=(1+lt)*rt):atft?(ft=a.randomNumberGenerator,ft===null&&(a.randomNumberGenerator=ft=new wm),rt=ft.random(),ft=ft.random(),E=(E>at?1:-1)*(1+(z.width>x.width?z.width:x.width))*rt,lt=(tt>ht?1:-1)*(1+(z.height>x.height?z.height:x.height))*ft):(rt=rt.stiffness*(ft-rt.length),E=(at-E)/ft*rt,lt=(ht-tt)/ft*rt),x.forceX+=E,x.forceY+=lt,z.forceX-=E,z.forceY-=lt;for(b=E=0;ba.epsilonDistance*a.epsilonDistance}Xa.prototype.moveVertex=function(a){var y=a.forceX,x=a.forceY,E=this.moveLimit;return y<-E?y=-E:y>E&&(y=E),x<-E?x=-E:x>E&&(x=E),a.centerX+=y,a.centerY+=x,y*y+x*x},Xa.prototype.moveFixedVertex=function(){},Xa.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},Xa.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=da,y.toSpot=da)}},Xa.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=on.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,on.free(x)}x=on.alloc();for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;(a!==0||y!==0)&&(x.assign(b.bounds),x.x+=a,x.y+=y,b.bounds=x),b.commit()}on.free(x)},Xa.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Xa.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},Xa.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},Xa.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},Xa.prototype.electricalFieldX=function(){return 0},Xa.prototype.electricalFieldY=function(){return 0},Xa.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},Xa.prototype.gravitationalFieldX=function(){return 0},Xa.prototype.gravitationalFieldY=function(){return 0},Xa.prototype.isFixed=function(a){return a.isFixed},Vt.Object.defineProperties(Xa.prototype,{currentIteration:{get:function(){return this.An}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},arrangesToOrigin:{get:function(){return this.Bm},set:function(a){this.Bm!==a&&(this.Bm=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},maxIterations:{get:function(){return this.dl},set:function(a){this.dl!==a&&0<=a&&(this.dl=a,this.C())}},epsilonDistance:{get:function(){return this.$m},set:function(a){this.$m!==a&&0Lt&&0Lt&&0a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]tt)for(var ht=tt+1;htat;ht--)ft=E[ht],ft.near===lt&&ft.Dj===lt.Dj||rt++;var vt;if(0<=x)for(at=E[tt].sourceEdgesArrayAccess,lt=0;ltLt||ft===Lt&&xt>Et)&&rt++,Wtft||Lt===ft&&Et>xt)&&rt++}}}if(0>=x){for(at=E[tt].destinationEdgesArrayAccess,lt=0;ltLt||ft===Lt&&ht>Wt)&&rt++,Etft||Lt===ft&&Wt>ht)&&rt++)}for(z[tt*b+tt]=rt,at=tt+1;at=x){for(rt=E[tt].destinationEdgesArrayAccess,ne=E[at].destinationEdgesArrayAccess,lt=0;lt=x&&(at=rt.sourceEdgesArrayAccess);var lt=null;0<=x&&(lt=rt.destinationEdgesArrayAccess);var ht=0,ft=0,vt=rt.near;if(vt!==null&&vt.layer===rt.layer&&(ht+=vt.column-1,ft++),at!==null)for(vt=0;vt=x&&(at=rt.sourceEdgesArrayAccess);var lt=null;0<=x&&(lt=rt.destinationEdgesArrayAccess);var ht=0,ft=[],vt=rt.near;if(vt!==null&&vt.layer===rt.layer&&(ft[ht]=vt.column-1,ht++),rt=void 0,at!==null)for(vt=0;vt>1,z[tt]=ht&1?ft[lt]:ft[lt-1]+ft[lt]>>1)}return Mc(a,y,E),z}function F0(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var tt=y.destinationEdges;tt.next();){var rt=tt.value,at=rt.toVertex,lt=y.layer-at.layer;rt=a.linkMinLength(rt),lt===rt&&F0(a,at,x,E,b,z)}if(z)for(tt=y.sourceEdges;tt.next();)rt=tt.value,at=rt.fromVertex,lt=at.layer-y.layer,rt=a.linkMinLength(rt),lt===rt&&F0(a,at,x,E,b,z)}}function m1(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var tt=y.destinationEdges;tt.next();)m1(a,tt.value.toVertex,x,E,b,z);if(z)for(y=y.sourceEdges;y.next();)m1(a,y.value.fromVertex,x,E,b,z)}}$o.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case A1:a=this.network;var y=0,x=a.vertexes.count-1,E=[];E.length=x+1;for(var b=a.vertexes.iterator;b.next();)b.value.valid=!0;for(;R5(a)!==null;){for(b=UA(a);b!==null;)E[x]=b,x--,b.valid=!1,b=UA(a);for(b=VA(a);b!==null;)E[y]=b,y++,b.valid=!1,b=VA(a);b=null;for(var z=0,tt=this.network.vertexes.iterator;tt.next();){var rt=tt.value;if(rt.valid){for(var at=0,lt=rt.destinationEdges;lt.next();)lt.value.toVertex.valid&&at++;lt=0;for(var ht=rt.sourceEdges;ht.next();)ht.value.fromVertex.valid&<++;(b===null||zy.toVertex.index&&(a.gm(y),y.rev=!0);break;case Fm:for(E=this.network.vertexes.iterator;E.next();)a=E.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,E.reset();E.next();)y=E.value,y.sourceEdges.count===0&&v1(this,y);for(E.reset();E.next();)y=E.value,y.Ll===-1&&v1(this,y);for(a.reset();a.next();)E=a.value,E.forest||(y=E.fromVertex,x=y.finish,b=E.toVertex,z=b.finish,b.LlE){if(0>E)for(y.reset();y.next();)y.value.layer-=E;for(E=[],y.reset();y.next();)x=y.value,b=E[x.layer],b===void 0?E[x.layer]=[x]:b.push(x);for(x=y=0;xtt&&F0(a,rt,0,-1,!0,!1)}for(F0(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,E=1/0,rt=0,at=null,tt=a.network.vertexes.iterator;tt.next();){var lt=tt.value;if(lt.component===1){var ht=0,ft=!1,vt=lt.sourceEdgesArrayAccess;b=vt.length;for(var xt=0;xtz)&&!ht&&(rt=tt,z=lt)}if(0>E){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer-=b);y.component=0}else rt.component=0}}}function JA(a,y,x){return a.K===90?x&&!y.rev||!x&&y.rev?270:90:a.K===180?x&&!y.rev||!x&&y.rev?0:180:a.K===270?x&&!y.rev||!x&&y.rev?90:270:x&&!y.rev||!x&&y.rev?180:0}$o.prototype.initializeIndices=function(){switch(this.Qk){default:case w1:for(var a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;y.index=this.tc[x],this.tc[x]++}break;case Dm:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&qA(this,x);break;case x1:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&_A(this,x)}};function qA(a,y){var x=y.layer;for(y.index=a.tc[x],a.tc[x]++,y=y.destinationEdgesArrayAccess,x=!0;x;){x=!1;for(var E=0;Ez.portFromColOffset&&(x=!0,y[E]=z,y[E+1]=b)}}for(x=0;xz.portToColOffset&&(E=!0,y[x]=z,y[x+1]=b)}for(x=0;x=tt;E--)z=Rl(this,E,-1)||z;for(b=this.countCrossings(),b>=a?Il(this,y):(a=b,y=Rs(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Rl(this,E,1)||z;for(b=this.countCrossings(),b>=a?Il(this,y):(a=b,y=Rs(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Rl(this,E,1)||z;for(b>=a?Il(this,y):(a=b,y=Rs(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Rl(this,E,-1)||z;for(b>=a?Il(this,y):(a=b,y=Rs(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Rl(this,E,0)||z;for(b>=a?Il(this,y):(a=b,y=Rs(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Rl(this,E,0)||z;b>=a?Il(this,y):(a=b,y=Rs(this))}break;default:case Bm:for(x=this.Ia,tt=0,rt=a+1;(E=this.countCrossings())=tt;E--)z=Rl(this,E,-1)||z;for(b=this.countCrossings(),b>=a?Il(this,y):(a=b,y=Rs(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Rl(this,E,1)||z;for(b=this.countCrossings(),b>=a?Il(this,y):(a=b,y=Rs(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Rl(this,E,1)||z;for(b>=a?Il(this,y):(a=b,y=Rs(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Rl(this,E,-1)||z;for(b>=a?Il(this,y):(a=b,y=Rs(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Rl(this,E,0)||z;for(b>=a?Il(this,y):(a=b,y=Rs(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Rl(this,E,0)||z;b>=a?Il(this,y):(a=b,y=Rs(this))}}Il(this,y)};function Pm(a,y,x){var E=Ic(a,y),b=a.tc[y],z=ZA(a,y,x),tt=p1(a,y,x);for(x=0;xz+1&&(vt+=4*(Jt-z),xt+=4*(Jt-(z+1)))}for(se=E[z].destinationEdges.iterator,se.reset();se.next();)if(Jt=se.value,ne=Jt.toVertex,Jt.valid&&ne.layer===y){for(Jt=0;E[Jt]!==ne;)Jt++;Jt===z+1&&(xt+=1)}for(se=E[z+1].sourceEdges.iterator,se.reset();se.next();)if(Jt=se.value,ne=Jt.fromVertex,Jt.valid&&ne.layer===y){for(Jt=0;E[Jt]!==ne;)Jt++;Jtz+1&&(vt+=4*(Jt-(z+1)),xt+=4*(Jt-z))}for(se=E[z+1].destinationEdges.iterator,se.reset();se.next();)if(Jt=se.value,ne=Jt.toVertex,Jt.valid&&ne.layer===y){for(Jt=0;E[Jt]!==ne;)Jt++;Jt===z&&(vt+=1)}Jt=ne=0,se=tt[E[z].index];var ye=rt[E[z].index],Ge=tt[E[z+1].index],ni=rt[E[z+1].index];se!==-1&&(ne+=Math.abs(se-Et),Jt+=Math.abs(se-kt)),ye!==-1&&(ne+=Math.abs(ye-Et),Jt+=Math.abs(ye-kt)),Ge!==-1&&(ne+=Math.abs(Ge-Lt),Jt+=Math.abs(Ge-Wt)),ni!==-1&&(ne+=Math.abs(ni-Lt),Jt+=Math.abs(ni-Wt)),(xt>1)+8*E;this.Ra*=8}if(this.bg&2)for(x=!0;x;){for(x=!1,y=this.Md+1;y<=this.Ia;y++)x=tf(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=tf(this,y,-1)||x;x=tf(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)y1(this,y,1);for(y=this.Md-1;0<=y;y--)y1(this,y,-1);y1(this,this.Md,0)}if(a&&($A(this,-1),$A(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=tf(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=tf(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=tf(this,y,0)||x}}else Z5(this)};function tf(a,y,x){for(var E=!1;H5(a,y,x);)E=!0;return E}function H5(a,y,x){var E,b=Ic(a,y),z=a.tc[y],tt=p1(a,y,-1);if(0x)for(E=0;EE-1||ht-b[E-1].column-1>ft+a.nodeMinColumnSpace(b[E-1],!1)?xt=ht-1:xt=ht,ft=E+1>=z||b[E+1].column-ht-1>vt+a.nodeMinColumnSpace(b[E+1],!0)?ht+1:ht;var Et=vt=0,Lt=0;if(0>=x)for(var Wt=b[E].sourceEdges.iterator;Wt.next();){var kt=Wt.value,Jt=kt.fromVertex;if(kt.valid&&Jt.layer!==y){var ne=f1(kt),se=kt.portFromColOffset;kt=kt.portToColOffset,Jt=Jt.column,vt+=(Math.abs(ht+kt-(Jt+se))+1)*ne,Et+=(Math.abs(xt+kt-(Jt+se))+1)*ne,Lt+=(Math.abs(ft+kt-(Jt+se))+1)*ne}}if(0<=x)for(Wt=b[E].destinationEdges.iterator;Wt.next();)kt=Wt.value,Jt=kt.toVertex,kt.valid&&Jt.layer!==y&&(ne=f1(kt),se=kt.portFromColOffset,kt=kt.portToColOffset,Jt=Jt.column,vt+=(Math.abs(ht+se-(Jt+kt))+1)*ne,Et+=(Math.abs(xt+se-(Jt+kt))+1)*ne,Lt+=(Math.abs(ft+se-(Jt+kt))+1)*ne);kt=se=ne=0,Wt=tt[b[E].index],Jt=rt[b[E].index],Wt!==-1&&(ne+=Math.abs(Wt-ht),se+=Math.abs(Wt-xt),kt+=Math.abs(Wt-ft)),Jt!==-1&&(ne+=Math.abs(Jt-ht),se+=Math.abs(Jt-xt),kt+=Math.abs(Jt-ft)),Et=tt[x]?ht=at:lt<=tt[x]&&(ht=lt));ht!==rt&&(z=!0,E[x].column=ht)}Mc(a,y,E),a.normalize()}function W5(a,y){for(var x=!0,E=a.network.vertexes.iterator;E.next();){var b=E.value,z=a.nodeMinColumnSpace(b,!0),tt=a.nodeMinColumnSpace(b,!1);if(b.column-z<=y&&b.column+tt>=y){x=!1;break}}if(a=!1,x)for(E.reset();E.next();)x=E.value,x.column>y&&(--x.column,a=!0);return a}function G5(a,y){var x=y+1,E,b=[],z=[];for(E=0;E<=a.Ia;E++)b[E]=!1,z[E]=!1;for(var tt=a.network.vertexes.iterator;tt.next();){E=tt.value;var rt=E.column-a.nodeMinColumnSpace(E,!0),at=E.column+a.nodeMinColumnSpace(E,!1);rt<=y&&at>=y&&(b[E.layer]=!0),rt<=x&&at>=x&&(z[E.layer]=!0)}for(rt=!0,x=!1,E=0;E<=a.Ia;E++)rt=rt&&!(b[E]&&z[E]);if(rt)for(tt.reset();tt.next();)a=tt.value,a.column>y&&(--a.column,x=!0);return x}function $A(a,y){for(var x=0;x<=a.Ra;x++)for(;W5(a,x););for(a.normalize(),x=0;xz?Il(a,b):tty)for(x=a.Ra;0<=x;x--)for(b=Rs(a),z=Em(a),E=z+1;zz?Il(a,b):ttx)for(E.reset();E.next();)b=E.value,b.column+a.nodeMinColumnSpace(b,!1)>=y&&(b.component=a.le);for(a.le++,E.reset();E.next();)y=E.value,y.component===-1&&(m1(a,y,a.le,-1,!0,!0),a.le++);var z;for(y=[],z=0;zx)for(tt=a.Ra;0x)for(E.reset();E.next();)x=E.value,b[x.component]&&(x.column+=1)}function Z5(a){for(var y=ii(),x=a.fl.length,E=0;E<=x;E++)y[E]=[];for(E=a.network.vertexes.iterator;E.next();){var b=E.value;y[x-b.layer][b.index]=b}x=new bn,U5(y,x);var z=null,tt=null,rt=null,at=null,lt=(a.ve&1)!==0,ht=(a.ve&2)!==0,ft=(a.ve&4)!==0,vt=(a.ve&8)!==0;for(lt&&(a.verticalAlignment(y,x,!0),z=Im(a,y,!0,!1)),y.reverse(),ft&&(a.verticalAlignment(y,x,!1),rt=Im(a,y,!1,!1)),E=Hn(y),b=E.next();!b.done;b=E.next())b.value.reverse();vt&&(a.verticalAlignment(y,x,!1),at=Im(a,y,!1,!0)),y.reverse(),ht&&(a.verticalAlignment(y,x,!0),tt=Im(a,y,!0,!0)),Bn(y),a.u(z,tt,rt,at),a.network.vertexes.each(function(xt){var Et=ii();lt&&Et.push(z.get(xt)),ht&&Et.push(tt.get(xt)),ft&&Et.push(rt.get(xt)),vt&&Et.push(at.get(xt)),Et.sort(function(Wt,kt){return Wt-kt});var Lt=Et.length;Lt=(Et[Math.floor((Lt-1)/2)]+Et[Math.ceil((Lt-1)/2)])/2,Bn(Et),xt.zc=Lt})}function U5(a,y){for(var x=a.length,E=1;Eht)&&y.add(ft);z++}b=ht}}}$o.prototype.verticalAlignment=function(a,y,x){V5(a),a=Hn(a);for(var E=a.next();!E.done;E=a.next()){var b=-1;E=Hn(E.value);for(var z=E.next();!z.done;z=E.next()){z=z.value;var tt=x?I1(z):K5(z),rt=tt.length;if(0=y[x].length)&&(tt=y[x][0],tt.sd===tt)){tt.sd.shift===1/0&&(tt.sd.shift=0),tt=x,rt=0;do{for(z=y[tt][rt];z.align!==z.root;)z=z.align,tt++,0a&&Xt("Could not determine previous vertex in layer"),y[x][a-1]}$o.prototype.u=function(a){for(var y=[],x=0;xtt;tt++)if(y[tt]){var rt=Y5(this,y[tt],E,b,tt);rttt;z={delta:z.delta},tt++)y[tt]&&(z.delta=tt===0||tt===2?E[x]-E[tt]:b[x]-b[tt],z.delta!==0&&y[tt].each(function(at){return function(lt){lt.value+=at.delta}}(z)));Bn(E),Bn(b)};function Y5(a,y,x,E,b){if(!y||y.count===0)return x[b]=0,E[b]=0,1/0;var z=1/0,tt=-1/0;return y.each(function(rt){var at=rt.key;rt=rt.value,at=a.K===90||a.K===270?at.width:at.height,rttt&&(tt=rt+at)}),x[b]=z,E[b]=tt,tt-z}$o.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=Mm(this,!0),y=Mm(this,!1),x=this.network.edges.iterator;x.next();){var E=x.value.link;E!==null&&(E.fromSpot=a,E.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function Mm(a,y){return a.K===270?y?Wa:Ea:a.K===90?y?Ea:Wa:a.K===180?y?ss:ba:y?ba:ss}$o.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var a=0;a<=this.Ia;a++)this.he[a]=0,this.Ld[a]=0,this.Kd[a]=0,this.Ta[a]=0;for(a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;this.he[x]=Math.max(this.he[x],this.nodeMinLayerSpace(y,!0)),this.Ld[x]=Math.max(this.Ld[x],this.nodeMinLayerSpace(y,!1))}y=0,x=this.ie;for(var E=0;E<=this.Ia;E++){var b=x;0>=this.he[E]+this.Ld[E]&&(b=0),0=ft.bounds.bottom?(ft=ft.bounds.y+ft.bounds.height,y.m(Lt++,se,ft+Ge),y.m(Lt++,se,ft),y.m(Lt++,se,ft-ne)):(y.m(Lt++,se,ye+Ge),y.m(Lt++,se,ye),y.m(Lt++,se,ye-ne)):this.K===270?ye<=ft.bounds.y?(ft=ft.bounds.y,y.m(Lt++,se,ft-ne),y.m(Lt++,se,ft),y.m(Lt++,se,ft+Ge)):(y.m(Lt++,se,ye-ne),y.m(Lt++,se,ye),y.m(Lt++,se,ye+Ge)):this.K===0&&(se>=ft.bounds.right?(ft=ft.bounds.x+ft.bounds.width,y.m(Lt++,ft+Ge,ye),y.m(Lt++,ft,ye),y.m(Lt++,ft-ne,ye)):(y.m(Lt++,se+Ge,ye),y.m(Lt++,se,ye),y.m(Lt++,se-ne,ye)));else{y.m(Lt++,kt,Jt);var ni=0;this.K===180||this.K===0?((this.K===180?se>=ft.bounds.right:se<=ft.bounds.x)&&(ni=(this.K===0?-ne:Ge)/2),y.m(Lt++,kt+ni,ye)):((this.K===270?ye>=ft.bounds.bottom:ye<=ft.bounds.y)&&(ni=(this.K===90?-ne:Ge)/2),y.m(Lt++,se,Jt+ni)),y.m(Lt++,se,ye)}}else ne=Math.max(10,this.he[Wt.layer]),Ge=Math.max(10,this.Ld[Wt.layer]),vt?this.K===180?(y.m(Lt++,se-ne-Et,ye),y.m(Lt++,Math.min(se-ne+Et/2,se),ye),y.m(Lt++,se,ye),y.m(Lt++,se,ye),y.m(Lt++,Math.max(se+Ge-Et/2,se),ye),y.m(Lt++,se+Ge+Et,ye)):this.K===90?(y.m(Lt++,se,ye+Ge+Et),y.m(Lt++,se,Math.max(ye+Ge-Et/2,ye)),y.m(Lt++,se,ye),y.m(Lt++,se,ye),y.m(Lt++,se,Math.min(ye-ne+Et/2,ye)),y.m(Lt++,se,ye-ne-Et)):this.K===270?(y.m(Lt++,se,ye-ne-Et),y.m(Lt++,se,Math.min(ye-ne+Et/2,ye)),y.m(Lt++,se,ye),y.m(Lt++,se,ye),y.m(Lt++,se,Math.max(ye+Ge-Et/2,ye)),y.m(Lt++,se,ye+Ge+Et)):(y.m(Lt++,se+Ge+Et,ye),y.m(Lt++,Math.max(se+Ge-Et/2,se),ye),y.m(Lt++,se,ye),y.m(Lt++,se,ye),y.m(Lt++,Math.min(se-ne+Et/2,se),ye),y.m(Lt++,se-ne-Et,ye)):y.m(Lt++,se,ye)}ft=Wt}(rt===null||lt!==ir||xt)&&(kt=y.i(Lt-1).x,Jt=y.i(Lt-1).y,se=y.i(Lt).x,ye=y.i(Lt).y,xt?(Et=this.Ld[ht.layer],this.K===180||this.K===0?(xt=Jt,xt>=ht.bounds.y&&xt<=ht.bounds.bottom&&(this.K===180?se>=ht.bounds.x:se<=ht.bounds.right)&&(ft=ht.centerX+(this.K===180?-Et:Et),xt=ht.bounds.x&&xt<=ht.bounds.right&&(this.K===270?ye>=ht.bounds.y:ye<=ht.bounds.bottom)&&(ft=ht.centerY+(this.K===270?-Et:Et),xt=ht.bounds.x?(ft=ht.bounds.x+ht.bounds.width,y.L(Lt-2,ft,Jt),y.L(Lt-1,ft+Ge,Jt)):this.K===90&&ye<=ht.bounds.bottom?(ft=ht.bounds.y,y.L(Lt-2,kt,ft),y.L(Lt-1,kt,ft-ne)):this.K===270&&ye>=ht.bounds.y?(ft=ht.bounds.y+ht.bounds.height,y.L(Lt-2,kt,ft),y.L(Lt-1,kt,ft+Ge)):this.K===0&&se<=ht.bounds.right&&(ft=ht.bounds.x,y.L(Lt-2,ft,Jt),y.L(Lt-1,ft-ne,Jt))):(ne=Math.max(10,this.he[ht.layer]),Ge=Math.max(10,this.Ld[ht.layer]),xt=0,this.K===180||this.K===0?((this.K===180?se<=ht.bounds.x:se>=ht.bounds.right)&&(xt=(this.K===0?Ge:-ne)/2),y.m(Lt++,se+xt,Jt)):((this.K===270?ye<=ht.bounds.y:ye>=ht.bounds.bottom)&&(xt=(this.K===90?Ge:-ne)/2),y.m(Lt++,kt,ye+xt)),y.m(Lt++,se,ye)))}else{for(;ht!==null&&ht!==ft;){for(ne=Wt=null,ht=ht.destinationEdges.iterator;ht.next()&&(kt=ht.value,kt.link!==x.link||(Wt=kt.toVertex,ne=kt.fromVertex,ne.node!==null&&(ne=null),Wt.node!==null)););if(Wt===null)break;Wt!==ft&&(kt=y.i(Lt-1).x,Jt=y.i(Lt-1).y,se=Wt.centerX,ye=Wt.centerY,xt?this.K===180||this.K===0?(ne!==null?ne.centerY:Jt)!==ye&&(ne=this.Ta[Wt.layer]+this.Rf.x,Lt===y.firstPickIndex+1&&(ne=this.K===0?Math.max(ne,kt):Math.min(ne,kt)),y.m(Lt++,ne,Jt),y.m(Lt++,ne,ye)):(ne!==null?ne.centerX:kt)!==se&&(ne=this.Ta[Wt.layer]+this.Rf.y,Lt===y.firstPickIndex+1&&(ne=this.K===90?Math.max(ne,Jt):Math.min(ne,Jt)),y.m(Lt++,kt,ne),y.m(Lt++,se,ne)):(ne=Math.max(10,this.he[Wt.layer]),Ge=Math.max(10,this.Ld[Wt.layer]),vt?this.K===180?(y.m(Lt++,se+Ge+Et,ye),y.m(Lt++,Math.max(se+Ge-Et/2,se),ye),y.m(Lt++,se,ye),y.m(Lt++,se,ye),y.m(Lt++,Math.min(se-ne+Et/2,se),ye),y.m(Lt++,se-ne-Et,ye)):this.K===90?(y.m(Lt++,se,ye-ne-Et),y.m(Lt++,se,Math.min(ye-ne+Et/2,ye)),y.m(Lt++,se,ye),y.m(Lt++,se,ye),y.m(Lt++,se,Math.max(ye+Ge-Et/2,ye)),y.m(Lt++,se,ye+Ge+Et)):this.K===270?(y.m(Lt++,se,ye+Ge+Et),y.m(Lt++,se,Math.max(ye+Ge-Et/2,ye)),y.m(Lt++,se,ye),y.m(Lt++,se,ye),y.m(Lt++,se,Math.min(ye-ne+Et/2,ye)),y.m(Lt++,se,ye-ne-Et)):(y.m(Lt++,se-ne-Et,ye),y.m(Lt++,Math.min(se-ne+Et/2,se),ye),y.m(Lt++,se,ye),y.m(Lt++,se,ye),y.m(Lt++,Math.max(se+Ge-Et/2,se),ye),y.m(Lt++,se+Ge+Et,ye)):this.K===180?(y.m(Lt++,se+Ge,ye),y.m(Lt++,se-ne,ye)):this.K===90?(y.m(Lt++,se,ye-ne),y.m(Lt++,se,ye+Ge)):this.K===270?(y.m(Lt++,se,ye+Ge),y.m(Lt++,se,ye-ne)):(y.m(Lt++,se-ne,ye),y.m(Lt++,se+Ge,ye)))),ht=Wt}xt&&(kt=y.i(Lt-1).x,Jt=y.i(Lt-1).y,se=y.i(Lt).x,ye=y.i(Lt).y,this.K===180||this.K===0?Jt!==ye&&(ne=this.K===0?Math.min(Math.max((se+kt)/2,this.Ta[ft.layer]+this.Rf.x),se):Math.max(Math.min((se+kt)/2,this.Ta[ft.layer]+this.Rf.x),se),y.m(Lt++,ne,Jt),y.m(Lt++,ne,ye)):kt!==se&&(ne=this.K===90?Math.min(Math.max((ye+Jt)/2,this.Ta[ft.layer]+this.Rf.y),ye):Math.max(Math.min((ye+Jt)/2,this.Ta[ft.layer]+this.Rf.y),ye),y.m(Lt++,kt,ne),y.m(Lt++,se,ne)))}E!==null&&vt&&4<=y.pointsCount&&(tt!==null&&(tt=lt===ir?y.getLinkPointFromPoint(b,tt,tt.ga(Wo),y.i(3),!0):y.i(0),lt===ir&&(lt=y.i(2),E=y.i(3),this.direction===90||this.direction===270?(y.L(1,(tt.x+lt.x)/2,lt.y),y.L(2,E.x,(lt.y+E.y)/2)):(y.L(1,lt.x,(tt.y+lt.y)/2),y.L(2,(lt.x+E.x)/2,E.y))),tt.w()||tt.set(b.actualBounds.center),y.L(0,tt.x,tt.y)),rt!==null&&(b=at===ir?y.getLinkPointFromPoint(z,rt,rt.ga(Wo),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),at===ir&&(rt=y.i(y.pointsCount-3),at=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(b.x+rt.x)/2,rt.y),y.L(y.pointsCount-2,at.x,(rt.y+at.y)/2)):(y.L(y.pointsCount-2,rt.x,(b.y+rt.y)/2),y.L(y.pointsCount-3,(rt.x+at.x)/2,at.y))),b.w()||b.set(z.actualBounds.center),y.L(y.pointsCount-1,b.x,b.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},$o.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new Ln,y=this.network.edges.iterator;y.next();){var x=y.value.link;x!==null&&x.isOrthogonal&&!a.contains(x)&&a.add(x)}if(0z.y&&(ht=lt.y>z.y?0:tt.xz.x&&(ht=lt.x>z.x?0:tt.yy.layer?1:a.rdy.rd?1:a.Icy.Ic?1:0:0},Ct.Ux=function(a,y){return a instanceof Fc&&y instanceof Fc&&a!==y?a.firsty.first||a.jy.j||a.rdy.rd?1:a.Icy.Ic?1:0:0},Ct.Js=function(a,y){return a instanceof Fc&&y instanceof Fc&&a!==y?a.jcy.jc||a.jy.j||a.rdy.rd?1:a.Icy.Ic?1:0:0},Ct.B=function(a,y){return a-=y,-1a},Ct.zi=function(a,y,x,E){var b=a.length,z=E-x;if(!(1>=z))if((0>x||x>=b-1)&&Xt("not in range 0 <= from < length: "+x),z===2)E=a[x],b=a[x+1],0=b)a.sort(y);else for(x=a.slice(0,E),x.sort(y),y=0;y=b)for(E=a.slice(x),E.sort(y),y=x;y=a.He.length){for(var E=[],b=0;ba&&(this.bg=a,this.C())}},alignOption:{get:function(){return this.ve},set:function(a){this.ve!==a&&0<=a&&16>a&&(this.ve=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(a){this.Cn!==a&&0<=a&&(this.Cn=a,this.C())}},maxLayer:{get:function(){return this.Ia}},maxIndex:{get:function(){return this.Iq}},maxColumn:{get:function(){return this.Ra}},minIndexLayer:{get:function(){return this.Hn}},maxIndexLayer:{get:function(){return this.Md}}});var Fm=new sn($o,"CycleDepthFirst",0),A1=new sn($o,"CycleGreedy",1),L0=new sn($o,"CycleFromLayers",2),Lm=new sn($o,"LayerOptimalLinkLength",0),C1=new sn($o,"LayerLongestPathSink",1),S1=new sn($o,"LayerLongestPathSource",2),Dm=new sn($o,"InitDepthFirstOut",0),x1=new sn($o,"InitDepthFirstIn",1),w1=new sn($o,"InitNaive",2),E1=new sn($o,"AggressiveNone",0),Bm=new sn($o,"AggressiveLess",1),P1=new sn($o,"AggressiveMore",2),X5=8;$o.className="LayeredDigraphLayout",$o.CycleDepthFirst=Fm,$o.CycleGreedy=A1,$o.CycleFromLayers=L0,$o.LayerOptimalLinkLength=Lm,$o.LayerLongestPathSink=C1,$o.LayerLongestPathSource=S1,$o.InitDepthFirstOut=Dm,$o.InitDepthFirstIn=x1,$o.InitNaive=w1,$o.AggressiveNone=E1,$o.AggressiveLess=Bm,$o.AggressiveMore=P1,$o.PackNone=0,$o.PackExpand=1,$o.PackStraighten=2,$o.PackMedian=4,$o.PackAll=15,$o.AlignNone=0,$o.AlignUpperLeft=1,$o.AlignUpperRight=2,$o.AlignLowerLeft=4,$o.AlignLowerRight=8,$o.AlignAll=15;function Fc(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}Fc.className="SegInfo";function ef(a){dr.call(this,a)}Yt(ef,dr),ef.prototype.createVertex=function(){return new Ml(this)},ef.prototype.createEdge=function(){return new D0(this)},ef.className="LayeredDigraphNetwork";function Ml(a){ua.call(this,a),this.$n=this.bo=this.ao=this.co=null,this.Za=this.Ag=this.Ig=-1,this.u=NaN,this.F=null,this.valid=!1,this.finish=this.Ll=NaN,this.Dj=0,this.dv=this.ev=null}Yt(Ml,ua);function i5(a,y){return a.index-y.index}function bm(a,y){if(!a.$n){for(var x=[],E=Hn(a.destinationEdgesArrayAccess),b=E.next();!b.done;b=E.next())b=b.value,b.valid&&x.push(b);a.$n=x}for(a=Hn(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;Xt("Unable to find destination edge to given vertex")}function I1(a){if(!a.co){for(var y=[],x=Hn(a.sourceEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.fromVertex);y.sort(i5),a.co=y}return a.co}function K5(a){if(!a.ao){for(var y=[],x=Hn(a.destinationEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.toVertex);y.sort(i5),a.ao=y}return a.ao}Ml.prototype.Cl=function(a){ua.prototype.Cl.call(this,a),this.bo=this.co=null},Ml.prototype.Kl=function(a){ua.prototype.Kl.call(this,a),this.bo=this.co=null},Ml.prototype.zl=function(a){ua.prototype.zl.call(this,a),this.$n=this.ao=null},Ml.prototype.Jl=function(a){ua.prototype.Jl.call(this,a),this.$n=this.ao=null},Vt.Object.defineProperties(Ml.prototype,{layer:{get:function(){return this.Ig},set:function(a){this.Ig!==a&&(this.Ig=a)}},column:{get:function(){return this.Ag},set:function(a){this.Ag!==a&&(this.Ag=a)}},index:{get:function(){return this.Za},set:function(a){this.Za!==a&&(this.Za=a)}},component:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},near:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),Ml.prototype.deleteDestinationEdge=Ml.prototype.Jl,Ml.prototype.addDestinationEdge=Ml.prototype.zl,Ml.prototype.deleteSourceEdge=Ml.prototype.Kl,Ml.prototype.addSourceEdge=Ml.prototype.Cl,Ml.className="LayeredDigraphVertex";function D0(a){el.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Yt(D0,el),Vt.Object.defineProperties(D0.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},valid:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},rev:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},forest:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},portFromPos:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},portToPos:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},portFromColOffset:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},portToColOffset:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),D0.className="LayeredDigraphEdge";function xo(a){Pr.call(this),this.Ub=new bn,this.Wn=Om,this.ud=Vu,this.vo=zm,this.Bq=j1,this.$v=[],this.td=!0,this.Rb=Rm,this.$d=new Nn(10,10).freeze();var y=new $d(this);this.W=new Hl(y),this.Y=new Hl(y),this.ru=[],a&&Object.assign(this,a)}Yt(xo,Pr),xo.prototype.cloneProtected=function(a){Pr.prototype.cloneProtected.call(this,a),a.Wn=this.Wn,a.vo=this.vo,a.Bq=this.Bq,a.td=this.td,a.Rb=this.Rb,a.$d.assign(this.$d),a.W.copyInheritedPropertiesFrom(this.W),a.Y.copyInheritedPropertiesFrom(this.Y)},xo.prototype.qb=function(a){a.classType===xo?a.name.indexOf("Alignment")===0?this.alignment=a:a.name.indexOf("Arrangement")===0?this.arrangement=a:a.name.indexOf("Compaction")===0?this.compaction=a:a.name.indexOf("Path")===0?this.path=a:a.name.indexOf("Sorting")===0?this.sorting=a:a.name.indexOf("Style")===0?this.treeStyle=a:Xt("Unknown enum value: "+a):Pr.prototype.qb.call(this,a)},xo.prototype.createNetwork=function(){return new $d(this)},xo.prototype.makeNetwork=function(a){function y(E){if(E instanceof ri)return!E.isLinkLabel&&E.category!=="Comment";if(E instanceof Vn){var b=E.fromNode;return b===null||b.isLinkLabel||b.category==="Comment"?!1:(E=E.toNode,!(E===null||E.isLinkLabel||E.category==="Comment"))}return!1}var x=this.createNetwork();return a instanceof Ue?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof to?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},xo.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==Hm&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof Ue&&(y=a),this.path===Om&&y!==null?this.ud=y.isTreePathToChildren?Vu:qd:this.ud=this.path===Om?Vu:this.path,0y.level)return!1;a.removeChild(x.parent,x)}return!0}xo.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,E=0,b=0;bb?h5(this,a,tt,Yi,kt,Jt):c5(this,a,tt,Yi,kt,Jt),Yi=Jt.x,kt=Jt.width,Jt=Jt.height;break;case Uh:for(se=0;seft&&(fixa&&(Jd(a,-xa,0,qi,Ho-1),Tm(se,-xa,0),Tm(ye,-xa,0),xa=0)}ur.S.h(xa,ui),kt=Math.max(kt,Ge),Jt=Math.max(Jt,ne+(Un===0?0:Et)+ma.height),fi=Ge}else 0ft&&(uixa&&(Jd(a,0,-xa,qi,Ho-1),Tm(se,0,-xa),Tm(ye,0,-xa),xa=0)),ur.S.h(fi,xa),Jt=Math.max(Jt,ni),kt=Math.max(kt,ne+(Un===0?0:Et)+ma.width),ui=ni;xn++}switch(0lt&&(lt=0),135Lt&&(Lt=0),at===fh&&(rt+=vt/2+a.focus.y),tt+=E+x):y?(a.comments===null?E>kt&&(kt=B1(at,E-kt,0),tt=kt.x,rt=kt.y,kt=E,lt=0):kt=L1(a,kt,lt),0>lt&&(tt-=lt,lt=0),135Jt&&(Jt=B1(at,0,Wt-Jt),tt=Jt.x,rt=Jt.y,Jt=Wt,Lt=0):Jt=D1(a,Jt,Lt),0>Lt&&(rt-=Lt,Lt=0),tt+=E+x),0b[0].x?b[2].assign(b[1]):b[1].assign(b[2])),b[3].yb[0].x?b[3].assign(b[2]):b[2].assign(b[3])),Un[0].h(lt+E,0),Un[1].h(Un[0].x,Wt),Un[2].yb[0].y?b[2].assign(b[1]):b[1].assign(b[2])),b[3].xb[0].y?b[3].assign(b[2]):b[2].assign(b[3])),Un[0].h(0,Lt+Wt),Un[1].h(E,Un[0].y),Un[2].xE?h5(a,y,b,xn,ne,se):c5(a,y,b,xn,ne,se),xn=se.x,ne=se.width,se=se.height;break;case Uh:for(vt=0;vtvt&&(Gevt&&(nift&&(ft=0),135kt&&(kt=0)),y.la.h(ft,kt),y.Da.h(ne,se)}}xo.prototype.customAlignment=function(a,y,x,E,b){return[y,x,E,b]};function h5(a,y,x,E,b,z){var tt=x.length;if(tt===0)return new on(E,0,b,z);if(tt===1)return y=x[0],b=y.Da.width,z=y.Da.height,new on(E,0,b,z);for(var rt=y.nodeSpacing,at=y.rowSpacing,lt=nu(y)===90,ht=0,ft=0,vt=0,xt=0;xtlt&&(b-=lt),z=Math.max(z,Math.max(xt,vt)+a+tt.height),0>x.S.x&&(E=Nm(y,x.S.x,!1,E,rt))):(x.S.h(b+a,E+rt/2-x.focus.y-x.la.y),b=Math.max(b,Math.max(Et,ft)+a+tt.width),vt=E+rt/2-x.focus.y-x.la.y,z=Math.max(z,vt+tt.height),0>vt&&(z-=vt),0>x.S.y&&(E=Nm(y,x.S.y,!0,E,rt)))),new on(E,0,b,z)}function c5(a,y,x,E,b,z){var tt=x.length;if(tt===0)return new on(E,0,b,z);if(tt===1)return x=x[0],b=x.Da.width,z=x.Da.height,new on(E,0,b,z);for(var rt=y.nodeSpacing,at=y.rowSpacing,lt=nu(y)===270,ht=0,ft=0,vt=0,xt=0;xtft&&(b-=ft),z=Math.max(z,Math.abs(Math.min(xt,vt))+a+ht.height),0>at.S.x&&(E=Nm(y,at.S.x,!1,E,rt))):(at.S.h(-b-ht.width-a,E+rt/2-at.focus.y-at.la.y),b=Math.max(b,Math.abs(Math.min(Et,ft))+a+ht.width),vt=E+rt/2-at.focus.y-at.la.y,z=Math.max(z,vt+ht.height),0>vt&&(z-=vt),0>at.S.y&&(E=Nm(y,at.S.y,!0,E,rt)))),y=0;yy&&(y=x+a.width),0>x&&(y-=x),y;case Yu:return a.width>y?a.width:y;case Xu:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case Zh:case Ku:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case Uh:return a.width-a.focus.x+a.nodeSpacing/2+y;case fh:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function D1(a,y,x){switch(a.alignment){case _d:case of:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Yu:return a.height>y?a.height:y;case Xu:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case Zh:case Ku:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case Uh:return a.height-a.focus.y+a.nodeSpacing/2+y;case fh:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function B1(a,y,x){switch(a){case of:y/=2,x/=2;break;case _d:y/=2,x/=2;break;case Yu:x=y=0;break;case Xu:break;default:Xt("Unhandled alignment value "+a.toString())}return new Ot(y,x)}function cd(a,y,x,E,b,z){y=B1(y,x,E),Jd(a,y.x,y.y,b,z)}function Jd(a,y,x,E,b){if(y!==0||x!==0)for(a=a.children;E<=b;E++){var z=a[E].S;z.x+=y,z.y+=x}}function km(a,y,x,E){var b=y.parent;switch(a.ud){case Vu:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===b&&y.relativePoint.h(x,E);break;case qd:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===b&&y.relativePoint.h(x,E);break;default:Xt("Unhandled path value "+a.ud.toString())}}function Tm(a,y,x){for(var E=0;Eft.length||xt===null||2>xt.length))for(b=x=0;xlt&&z.yz.y&<y.length||x===null||2>x.length)E=null;else{for(ht=Zs(a,y.length+x.length),E=z=at=0;zat;)lt=x[z++],ht[E++].h(lt.x+b,lt.y);for(x=Zs(a,E),at=0;atft.length||z===null||2>z.length)b=null;else{for(ht=Zs(a,ft.length+z.length),b=lt=x=0;xz;)at=ft[x++],ht[b++].h(at.x,at.y);for(z=Zs(a,b),x=0;xft.length||xt===null||2>xt.length))for(b=x=0;xat&&z.xz.x&&aty.length||x===null||2>x.length)E=null;else{for(ht=Zs(a,y.length+x.length),E=z=at=0;zat;)lt=x[z++],ht[E++].h(lt.x,lt.y+b);for(x=Zs(a,E),at=0;atft.length||z===null||2>z.length)b=null;else{for(ht=Zs(a,ft.length+z.length),b=lt=x=0;xz;)at=ft[x++],ht[b++].h(at.x,at.y);for(z=Zs(a,b),x=0;x=a?0:135>=a?90:225>=a?180:315>=a?270:0}xo.prototype.computeLayerSpacing=function(a){var y=nu(a);y=y===90||y===270;var x=a.layerSpacing;if(0=a&&(this.W.nodeIndentPastParent=a,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(a){this.W.nodeSpacing!==a&&(this.W.nodeSpacing=a,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(a){this.W.layerSpacing!==a&&(this.W.layerSpacing=a,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(a){this.W.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.W.layerSpacingParentOverlap=a,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(a){this.W.compaction===a||a!==jm&&a!==T0||(this.W.compaction=a,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(a){this.W.breadthLimit!==a&&0<=a&&(this.W.breadthLimit=a,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(a){this.W.rowSpacing!==a&&(this.W.rowSpacing=a,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(a){this.W.rowIndent!==a&&0<=a&&(this.W.rowIndent=a,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(a){this.W.commentSpacing!==a&&(this.W.commentSpacing=a,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(a){this.W.commentMargin!==a&&(this.W.commentMargin=a,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(a){this.W.setsPortSpot!==a&&(this.W.setsPortSpot=a,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(a){this.W.portSpot.D(a)||(this.W.portSpot=a,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(a){this.W.setsChildPortSpot!==a&&(this.W.setsChildPortSpot=a,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(a){this.W.childPortSpot.D(a)||(this.W.childPortSpot=a,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(a){this.Y.sorting===a||a!==nf&&a!==b0&&a!==N0&&!k0||(this.Y.sorting=a,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(a){this.Y.comparer!==a&&(this.Y.comparer=a,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(a){this.Y.angle===a||a!==0&&a!==90&&a!==180&&a!==270||(this.Y.angle=a,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(a){this.Y.alignment!==a&&(this.Y.alignment=a,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(a){this.Y.nodeIndent!==a&&0<=a&&(this.Y.nodeIndent=a,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(a){this.Y.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.Y.nodeIndentPastParent=a,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(a){this.Y.nodeSpacing!==a&&(this.Y.nodeSpacing=a,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(a){this.Y.layerSpacing!==a&&(this.Y.layerSpacing=a,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(a){this.Y.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.Y.layerSpacingParentOverlap=a,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(a){this.Y.compaction===a||a!==jm&&a!==T0||(this.Y.compaction=a,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(a){this.Y.breadthLimit!==a&&0<=a&&(this.Y.breadthLimit=a,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(a){this.Y.rowSpacing!==a&&(this.Y.rowSpacing=a,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(a){this.Y.rowIndent!==a&&0<=a&&(this.Y.rowIndent=a,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(a){this.Y.commentSpacing!==a&&(this.Y.commentSpacing=a,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(a){this.Y.commentMargin!==a&&(this.Y.commentMargin=a,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(a){this.Y.setsPortSpot!==a&&(this.Y.setsPortSpot=a,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(a){this.Y.portSpot.D(a)||(this.Y.portSpot=a,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(a){this.Y.setsChildPortSpot!==a&&(this.Y.setsChildPortSpot=a,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(a){this.Y.childPortSpot.D(a)||(this.Y.childPortSpot=a,this.C())}}});var Om=new sn(xo,"PathDefault",-1),Vu=new sn(xo,"PathDestination",0),qd=new sn(xo,"PathSource",1),nf=new sn(xo,"SortingForwards",10),b0=new sn(xo,"SortingReverse",11),N0=new sn(xo,"SortingAscending",12),k0=new sn(xo,"SortingDescending",13),of=new sn(xo,"AlignmentCenterSubtrees",20),_d=new sn(xo,"AlignmentCenterChildren",21),Yu=new sn(xo,"AlignmentStart",22),Xu=new sn(xo,"AlignmentEnd",23),Zh=new sn(xo,"AlignmentBus",24),Ku=new sn(xo,"AlignmentBusBranching",25),Uh=new sn(xo,"AlignmentTopLeftBus",26),fh=new sn(xo,"AlignmentBottomRightBus",27),jm=new sn(xo,"CompactionNone",30),T0=new sn(xo,"CompactionBlock",31),zm=new sn(xo,"StyleLayered",40),N1=new sn(xo,"StyleLastParents",41),k1=new sn(xo,"StyleAlternating",42),T1=new sn(xo,"StyleRootOnly",43),Rm=new sn(xo,"ArrangementVertical",50),O1=new sn(xo,"ArrangementHorizontal",51),Hm=new sn(xo,"ArrangementFixedRoots",52),j1=new sn(xo,"LayerIndividual",60),z1=new sn(xo,"LayerSiblings",61),Wm=new sn(xo,"LayerUniform",62);xo.className="TreeLayout",xo.PathDefault=Om,xo.PathDestination=Vu,xo.PathSource=qd,xo.SortingForwards=nf,xo.SortingReverse=b0,xo.SortingAscending=N0,xo.SortingDescending=k0,xo.AlignmentCenterSubtrees=of,xo.AlignmentCenterChildren=_d,xo.AlignmentStart=Yu,xo.AlignmentEnd=Xu,xo.AlignmentBus=Zh,xo.AlignmentBusBranching=Ku,xo.AlignmentTopLeftBus=Uh,xo.AlignmentBottomRightBus=fh,xo.CompactionNone=jm,xo.CompactionBlock=T0,xo.StyleLayered=zm,xo.StyleLastParents=N1,xo.StyleAlternating=k1,xo.StyleRootOnly=T1,xo.ArrangementVertical=Rm,xo.ArrangementHorizontal=O1,xo.ArrangementFixedRoots=Hm,xo.LayerIndividual=j1,xo.LayerSiblings=z1,xo.LayerUniform=Wm;function $d(a){dr.call(this,a)}Yt($d,dr),$d.prototype.createVertex=function(){return new Hl(this)},$d.prototype.createEdge=function(){return new rf(this)},$d.className="TreeNetwork";function Hl(a){ua.call(this,a),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new Ot(0,0),this.Da=new Nn(0,0),this.la=new Ot(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=nf,this.hd=o1,this.Kb=0,this.Jb=_d,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=T0,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=da,this.wr=!0,this.Dp=da}Yt(Hl,ua),Hl.prototype.copyInheritedPropertiesFrom=function(a){a!==null&&(this.nd=a.sorting,this.hd=a.comparer,this.Kb=a.angle,this.Jb=a.alignment,this.Uq=a.nodeIndent,this.Vq=a.nodeIndentPastParent,this.Wq=a.nodeSpacing,this.ie=a.layerSpacing,this.Aq=a.layerSpacingParentOverlap,this.Hp=a.compaction,this.Ap=a.breadthLimit,this.nr=a.rowSpacing,this.mr=a.rowIndent,this.Gp=a.commentSpacing,this.Fp=a.commentMargin,this.xr=a.setsPortSpot,this.dr=a.portSpot,this.wr=a.setsChildPortSpot,this.Dp=a.childPortSpot)},Vt.Object.defineProperties(Hl.prototype,{initialized:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},parent:{get:function(){return this.hb},set:function(a){this.hb!==a&&(this.hb=a)}},children:{get:function(){return this.u},set:function(a){if(this.u!==a){if(a!==null)for(var y=a.length,x=0;xxt.y+x.rowIndent&&(z=Math.min(z,Math.max(ft.y,z-y.computeNodeIndent(x))))):x.alignment===Yu?(z=E.top+b.y,b.y===0&&ft.yxt.x+x.rowIndent&&(z=Math.min(z,Math.max(ft.x,z-y.computeNodeIndent(x))))):x.alignment===Yu?(z=E.left+b.x,b.x===0&&ft.xxt.y+x.rowIndent&&(z=Math.min(z,Math.max(ft.y,z-y.computeNodeIndent(x))))):x.alignment===Yu?(z=E.top+b.y,b.y===0&&ft.yxt.x+x.rowIndent&&(z=Math.min(z,Math.max(ft.x,z-y.computeNodeIndent(x))))):x.alignment===Yu?(z=E.left+b.x,b.x===0&&ft.x>>6)+Oe(128|je&63):Oe(224|je>>>12&15)+Oe(128|je>>>6&63)+Oe(128|je&63)}else{var je=65536+(ge.charCodeAt(0)-55296)*1024+(ge.charCodeAt(1)-56320);return Oe(240|je>>>18&7)+Oe(128|je>>>12&63)+Oe(128|je>>>6&63)+Oe(128|je&63)}},Ce=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,xe=function(ge){return ge.replace(Ce,de)},ze=function(ge){var je=[0,2,1][ge.length%3],Je=ge.charCodeAt(0)<<16|(ge.length>1?ge.charCodeAt(1):0)<<8|(ge.length>2?ge.charCodeAt(2):0),Cn=[ve.charAt(Je>>>18),ve.charAt(Je>>>12&63),je>=2?"=":ve.charAt(Je>>>6&63),je>=1?"=":ve.charAt(Je&63)];return Cn.join("")},He=ae.btoa&&typeof ae.btoa=="function"?function(ge){return ae.btoa(ge)}:function(ge){if(ge.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return ge.replace(/[\s\S]{1,3}/g,ze)},Ft=function(ge){return He(xe(String(ge)))},nt=function(ge){return ge.replace(/[+\/]/g,function(je){return je=="+"?"-":"_"}).replace(/=/g,"")},et=function(ge,je){return je?nt(Ft(ge)):Ft(ge)},ct=function(ge){return et(ge,!0)},ut;ae.Uint8Array&&(ut=function(ge,je){for(var Je="",Cn=0,hn=ge.length;Cn>>18)+ve.charAt(Ye>>>12&63)+(typeof Fe!="undefined"?ve.charAt(Ye>>>6&63):"=")+(typeof Zt!="undefined"?ve.charAt(Ye&63):"=")}return je?nt(Je):Je});var pt=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,yt=function(ge){switch(ge.length){case 4:var je=(7&ge.charCodeAt(0))<<18|(63&ge.charCodeAt(1))<<12|(63&ge.charCodeAt(2))<<6|63&ge.charCodeAt(3),Je=je-65536;return Oe((Je>>>10)+55296)+Oe((Je&1023)+56320);case 3:return Oe((15&ge.charCodeAt(0))<<12|(63&ge.charCodeAt(1))<<6|63&ge.charCodeAt(2));default:return Oe((31&ge.charCodeAt(0))<<6|63&ge.charCodeAt(1))}},Pt=function(ge){return ge.replace(pt,yt)},bt=function(ge){var je=ge.length,Je=je%4,Cn=(je>0?qt[ge.charAt(0)]<<18:0)|(je>1?qt[ge.charAt(1)]<<12:0)|(je>2?qt[ge.charAt(2)]<<6:0)|(je>3?qt[ge.charAt(3)]:0),hn=[Oe(Cn>>>16),Oe(Cn>>>8&255),Oe(Cn&255)];return hn.length-=[0,0,2,1][Je],hn.join("")},Rt=ae.atob&&typeof ae.atob=="function"?function(ge){return ae.atob(ge)}:function(ge){return ge.replace(/\S{1,4}/g,bt)},Ut=function(ge){return Rt(String(ge).replace(/[^A-Za-z0-9\+\/]/g,""))},ee=function(ge){return Pt(Rt(ge))},re=function(ge){return String(ge).replace(/[-_]/g,function(je){return je=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},ie=function(ge){return ee(re(ge))},Me;ae.Uint8Array&&(Me=function(ge){return Uint8Array.from(Ut(re(ge)),function(je){return je.charCodeAt(0)})});var pe=function(){var ge=ae.Base64;return ae.Base64=$e,ge};if(ae.Base64={VERSION:fe,atob:Ut,btoa:He,fromBase64:ie,toBase64:et,utob:xe,encode:et,encodeURI:ct,btou:Pt,decode:ie,noConflict:pe,fromUint8Array:ut,toUint8Array:Me},typeof Object.defineProperty=="function"){var Le=function(ge){return{value:ge,enumerable:!1,writable:!0,configurable:!0}};ae.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Le(function(){return ie(this)})),Object.defineProperty(String.prototype,"toBase64",Le(function(ge){return et(this,ge)})),Object.defineProperty(String.prototype,"toBase64URI",Le(function(){return et(this,!0)}))}}return ae.Meteor&&(Base64=ae.Base64),un.exports?un.exports.Base64=ae.Base64:(ot=[],Tt=function(){return ae.Base64}.apply(Yn,ot),Tt!==void 0&&(un.exports=Tt)),{Base64:ae.Base64}})},7861:function(un,Yn,St){var ot=St(38710),Tt=function(fe){var ve=/[height|width]$/;return ve.test(fe)},ae=function(fe){var ve="",qt=Object.keys(fe);return qt.forEach(function(Oe,de){var Ce=fe[Oe];Oe=ot(Oe),Tt(Oe)&&typeof Ce=="number"&&(Ce=Ce+"px"),Ce===!0?ve+=Oe:Ce===!1?ve+="not "+Oe:ve+="("+Oe+": "+Ce+")",de=a.count)a.count===1&&(a=a.first(),a.centerX=0,a.centerY=0);else{var y=new Ln;y.addAll(a.iterator),a=new Ln;var x=new Ln,E=this.sort(y),b,z,tt=this.Jp,rt=this.arrangement,at=this.nodeDiameterFormula,lt=this.radius;(!isFinite(lt)||0>=lt)&&(lt=NaN);var ht=this.aspectRatio;(!isFinite(ht)||0>=ht)&&(ht=1);var ft=this.startAngle;isFinite(ft)||(ft=0);var vt=this.sweepAngle;if((!isFinite(vt)||360vt)&&(vt=360),y=this.spacing,isFinite(y)||(y=NaN),rt===eu&&at===Kd?rt=tu:rt===eu&&at!==Kd&&(rt=this.arrangement),(this.direction===hd||this.direction===qg)&&this.sorting!==_g){for(at=0;!(at>=E.length)&&(a.add(E.M(at)),!(at+1>=E.length));at+=2)x.add(E.M(at+1));this.direction===hd?(this.arrangement===eu&&a.reverse(),E=new Ln,E.addAll(a),E.addAll(x)):(this.arrangement===eu&&x.reverse(),E=new Ln,E.addAll(x),E.addAll(a))}at=E.length;for(var xt=z=b=0;xtvt&&(xt===0||xt===E.length-1)&&(Lt/=2),b+=Lt,z++}if(isNaN(lt)||rt===eu){if(isNaN(y)&&(y=6),rt!==tu&&rt!==eu){for(z=-1/0,tt=0;ttlt?(lt=b,z=lt*ht):tt=xt/(360<=vt?at:at-1)}if(this.kw=rt,this.lc=lt,this.Zm=ht,this.lw=ft,this.Wp=vt,this.Ti=y,this.me=z,this.Jp=tt,y=E,E=this.kw,rt=this.lc,lt=this.lw,ht=this.Wp,ft=this.Ti,vt=this.me,at=this.Jp,this.direction!==hd&&this.direction!==qg||E!==eu)if(this.direction===hd||this.direction===qg){switch(tt=0,E){case wc:tt=180*mm(this,rt,vt,lt,at)/Math.PI;break;case tu:at=y=0,tt=a.first(),tt!==null&&(y=Pc(tt,Math.PI/2)),tt=x.first(),tt!==null&&(at=Pc(tt,Math.PI/2)),tt=180*mm(this,rt,vt,lt,ft+(y+at)/2)/Math.PI;break;case Gh:tt=ht/y.length}if(this.direction===hd){switch(E){case wc:w0(this,a,lt,Ec);break;case tu:x0(this,a,lt,Ec);break;case Gh:S0(this,a,ht/2,lt,Ec)}switch(E){case wc:w0(this,x,lt+tt,Ps);break;case tu:x0(this,x,lt+tt,Ps);break;case Gh:S0(this,x,ht/2,lt+tt,Ps)}}else{switch(E){case wc:w0(this,x,lt,Ec);break;case tu:x0(this,x,lt,Ec);break;case Gh:S0(this,x,ht/2,lt,Ec)}switch(E){case wc:w0(this,a,lt+tt,Ps);break;case tu:x0(this,a,lt+tt,Ps);break;case Gh:S0(this,a,ht/2,lt+tt,Ps)}}}else switch(E){case wc:w0(this,y,lt,this.direction);break;case tu:x0(this,y,lt,this.direction);break;case Gh:S0(this,y,ht,lt,this.direction);break;case eu:bA(this,y,ht,lt,this.direction)}else bA(this,y,ht,lt-ht/2,Ps)}this.updateParts(),this.network=null,this.isValidLayout=!0};function S0(a,y,x,E,b){var z=a.Wp,tt=a.lc;a=a.me,E=E*Math.PI/180,x=x*Math.PI/180;for(var rt=y.length,at=0;atx){for(z=E+(b===Ps?z:-z);0>z;)z+=360;z%=360,180=ht.length-1));ft++)TA(a,at,lt,ht,ft,b,z)||OA(a,at,lt,ht,ft,b,z),at=z.x,lt=z.y;if(Ot.free(z),a.mj++,!(23Math.abs(xt)?Math.abs(at-z)<(ht[0].width+ht[ht.length-1].width)/2&&(tt=0):tt=0Math.abs(vt)?0:vt,at=Math.abs(z)>Math.abs(ft)?0ft:0a.mj?a.lc-tt/(2*Math.PI):5>ht.length&&10=ft.length-1));vt++)TA(a,at,lt,ft,vt,b,ht)||OA(a,at,lt,ft,vt,b,ht),at=ht.x,lt=ht.y;if(Ot.free(ht),a.mj++,!(23a.mj?a.lc-z/(2*Math.PI):a.lc-(0rt){if(z=y-a,z<-rt)return tt.x=z,tt.y=lt,!1;ht=!0}}else if(z=y-a,z<-rt){if(z=y+a,z>rt)return tt.x=z,tt.y=lt,!1;ht=!0}return lt=Math.sqrt(1-Math.min(1,z*z/(rt*rt)))*at,0>x!==ht&&(lt=-lt),Math.abs(x-lt)>(E[b].height+E[b+1].height)/2?(tt.x=z,tt.y=lt,!1):(tt.x=z,tt.y=lt,!0)}function OA(a,y,x,E,b,z,tt){var rt=a.lc,at=a.me,lt=0;if(a=(E[b].height+E[b+1].height)/2+a.Ti,E=!1,0<=y!=(z===Ps)){if(z=x-a,z<-at){if(z=x+a,z>at){tt.x=lt,tt.y=z;return}E=!0}}else if(z=x+a,z>at){if(z=x-a,z<-at){tt.x=lt,tt.y=z;return}E=!0}lt=Math.sqrt(1-Math.min(1,z*z/(at*at)))*rt,0>y!==E&&(lt=-lt),tt.x=lt,tt.y=z}Nr.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},Nr.prototype.commitNodes=function(){var a=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,y=a?this.group.location.copy():null,x=this.actualCenter;a?x=new Ot(0,0):(x.x=this.arrangementOrigin.x+this.lc,x.y=this.arrangementOrigin.y+this.me);for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;b.x+=x.x,b.y+=x.y,b.commit()}a&&(this.group.Va(),a=this.group.position.copy(),x=this.group.location.copy(),y=y.re(x.re(a)),this.group.move(y),this.Zv=y.re(a))},Nr.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function g1(a,y,x,E,b){var z=a.ty;if(.001>Math.abs(a.Zm-1))return E!==void 0&&b!==void 0?b*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var tt=0,rt=E!==void 0&&b!==void 0?b/(z+1):Math.PI/(2*(z+1)),at=0,lt=0;lt<=z;lt++){E!==void 0&&b!==void 0?at=E+lt*b/z:at=lt*Math.PI/(2*z);var ht=Math.sin(at);tt+=Math.sqrt(1-a*a*ht*ht)*rt}return E!==void 0&&b!==void 0?(y>x?y:x)*tt:4*(y>x?y:x)*tt}function pm(a,y,x,E,b){return y/(E!==void 0&&b!==void 0?g1(a,1,x,E,b):g1(a,1,x))}function mm(a,y,x,E,b){if(.001>Math.abs(a.Zm-1))return b/y;var z=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,tt=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(E+=Math.PI/2);for(var rt=0;;rt++){var at=Math.sin(E+rt*a);if(tt+=(y>x?y:x)*Math.sqrt(1-z*z*at*at)*a,tt>=b)return rt*a}}Nr.prototype.sort=function(a){switch(this.sorting){case vm:break;case ym:a.reverse();break;case Am:a.sort(this.comparer);break;case Cm:a.sort(this.comparer),a.reverse();break;case _g:return this.ak(N5(a));default:Xt("Invalid sorting type.")}return a};function N5(a){for(var y=[],x=0;xb&&(b=rt,z=tt)}else for(tt=0;ttb&&(b=rt,z=tt);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),tt=z.sourceEdges;tt.next();)b=a.indexOf(tt.value.fromVertex),0>b||0<=y[b]&&y[b]++;for(z=z.destinationEdges;z.next();)b=a.indexOf(z.value.toVertex),0>b||0<=y[b]&&y[b]++}return x}Nr.prototype.ak=function(a){for(var y=[],x=0;xy[x].indexOf(b)&&y[x].push(b);for(E=E.sourceEdges;E.next();)b=a.indexOf(E.value.fromVertex),b!==x&&0>y[x].indexOf(b)&&y[x].push(b)}for(z=[],x=0;xy[x[Et]].indexOf(x[Et===x.length-1?0:Et+1])&&xt.push(Et===x.length-1?0:Et+1);if(xt.length===0)for(Et=0;Etx.indexOf(Ge)||yex.indexOf(Ge)||ye=Lt?ye+1:ye)),kt+=ye=Lt&&ye++,ne>=Lt&&ne++,ye>ne&&(se=ne,ne=ye,ye=se),ne-ye<(x.length+2)/2==(yext||xt===ht||(Et=xt>ht?xt-ht:ht-xt,ft+=xttt-Et?1:-1);x.splice(0>ft?ht:ht+1,0,at),E.splice(rt,1),rt--}else z=!1;if(z)break;x.push(E[0]),E.splice(0,1)}for(y=0;y=a?this.ul=a:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==eu&&a!==tu&&a!==wc&&a!==Gh||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==Ps&&a!==Ec&&a!==hd&&a!==qg||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==vm&&a!==ym&&a!==Am&&!Cm&&a!==_g||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf!==a&&(this.tf=a,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(a){this.Nn===a||a!==Sm&&a!==Kd||(this.Nn=a,this.C())}},actualXRadius:{get:function(){return this.lc}},actualYRadius:{get:function(){return this.me}},actualSpacing:{get:function(){return this.Ti}},actualCenter:{get:function(){return this.Zv}}});var tu=new sn(Nr,"ConstantSpacing",0),wc=new sn(Nr,"ConstantDistance",1),Gh=new sn(Nr,"ConstantAngle",2),eu=new sn(Nr,"Packed",3),Ps=new sn(Nr,"Clockwise",4),Ec=new sn(Nr,"Counterclockwise",5),hd=new sn(Nr,"BidirectionalLeft",6),qg=new sn(Nr,"BidirectionalRight",7),vm=new sn(Nr,"Forwards",8),ym=new sn(Nr,"Reverse",9),Am=new sn(Nr,"Ascending",10),Cm=new sn(Nr,"Descending",11),_g=new sn(Nr,"Optimized",12),Sm=new sn(Nr,"Pythagorean",13),Kd=new sn(Nr,"Circular",14);Nr.className="CircularLayout",Nr.ConstantSpacing=tu,Nr.ConstantDistance=wc,Nr.ConstantAngle=Gh,Nr.Packed=eu,Nr.Clockwise=Ps,Nr.Counterclockwise=Ec,Nr.BidirectionalLeft=hd,Nr.BidirectionalRight=qg,Nr.Forwards=vm,Nr.Reverse=ym,Nr.Ascending=Am,Nr.Descending=Cm,Nr.Optimized=_g,Nr.Pythagorean=Sm,Nr.Circular=Kd;function E0(){this.Pl=-1/0,this.tm=this.mk=null}E0.prototype.compare=function(a,y){if(0this.Pl||Math.abs(a)a&&0rt?(b=vt.x+vt.width/2,z=vt.y+vt.height/2,lt[0]=new Ot(vt.x+vt.width+E.width,vt.y),lt[1]=new Ot(vt.x,vt.y+vt.height+E.height),rt=2):(at=zA(lt,rt,b,z,vt.width,vt.height,E),ft=lt[at],xt=new Ot(ft.x+vt.width+E.width,ft.y),vt=new Ot(ft.x,ft.y+vt.height+E.height),at+1this.network.vertexes.count)return!1;for(var a=0,y=0,x=this.network.vertexes.first().bounds,E=this.network.vertexes.iterator;E.next();){if(E.value.bounds.Yc(x)&&(a++,2a.network.vertexes.count)return!1;for(a.ah=a.network.vertexes.Fa(),a=a.ah,a.sort(function(x,E){return x===null||E===null||x===E?0:E.Vd-x.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1=tt))){for(var lt=rt=0,ht=at.count-tt;htxt&&(xt=1),rt=Ie.sqrt((rt+xt+lt*lt*4/(tt*tt))/xt),tt=(rt-1)*ht/2,rt=(rt-1)*ft/2,b.bounds=new on(z-vt.x-tt,at-vt.y-rt,ht+2*tt,ft+2*rt),b.focus=new Ot(vt.x+tt,vt.y+rt)}}return a.network=E,x}function O5(a,y){for(var x=a.network.vertexes.iterator;x.next();){var E=x.value;if(E.network=y,E.We!==null){var b=E.We.M(E.sv);E.Vd=b.Rs;var z=b.Sv,tt=b.Tv;E.bounds=new on(E.centerX-z,E.centerY-tt,b.Ss,b.Qs),E.focus=new Ot(z,tt),E.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function j5(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var E=y.centerX,b=y.centerY,z=y.width,tt=y.height;y.We!==null&&0=ft.Vd?at++:(rt=!0,lt++,tt+=Math.atan2(y.centerY-ft.centerY,y.centerX-ft.centerX))}if(at!==0){for(0>1)+lt)*(rt%2===0?1:-1),at.centerX=E+ht*Math.cos(ft),at.centerY=b+ht*Math.sin(ft),rt++}}}}function zA(a,y,x,E,b,z,tt){var rt=9e19,at=-1,lt=0;t:for(;ltht.y&&a[vt].x-ht.xht.x&&a[vt].y-ht.yy+z?(x=E+b-tt,a=a-y-z,Ie.sqrt(x*x+a*a)):a+xtt+rt?a>y+z?(x=E-tt-rt,a=a-y-z,Ie.sqrt(x*x+a*a)):a+xy+z?a-(y+z):a+x=y.length)return!1;var x=y[0];x.forceX=0,x.forceY=0;for(var E=x.centerX,b=E,z=x=x.centerY,tt=1;ttz-x)?y.sort(function(Lt,Wt){return Lt===null||Wt===null||Lt===Wt?0:Lt.centerX-Wt.centerX}):y.sort(function(Lt,Wt){return Lt===null||Wt===null||Lt===Wt?0:Lt.centerY-Wt.centerY}),x=a.Zf;var lt=E=rt=0;for(z=0;zx||lt-at>x){if(b)break}else if(ht-xt>x||xt-ht>x){if(!b)break}else{var Et=RA(tt,vt);1>Et?(E=a.randomNumberGenerator,E===null&&(a.randomNumberGenerator=E=new wm),Et=E.random(),rt=E.random(),at>lt?(E=Math.abs(vt.bounds.right-tt.bounds.x),E=(1+E)*Et):atxt?(lt=Math.abs(vt.bounds.bottom-tt.bounds.y),lt=(1+lt)*rt):atft?(ft=a.randomNumberGenerator,ft===null&&(a.randomNumberGenerator=ft=new wm),rt=ft.random(),ft=ft.random(),E=(E>at?1:-1)*(1+(z.width>x.width?z.width:x.width))*rt,lt=(tt>ht?1:-1)*(1+(z.height>x.height?z.height:x.height))*ft):(rt=rt.stiffness*(ft-rt.length),E=(at-E)/ft*rt,lt=(ht-tt)/ft*rt),x.forceX+=E,x.forceY+=lt,z.forceX-=E,z.forceY-=lt;for(b=E=0;ba.epsilonDistance*a.epsilonDistance}Xa.prototype.moveVertex=function(a){var y=a.forceX,x=a.forceY,E=this.moveLimit;return y<-E?y=-E:y>E&&(y=E),x<-E?x=-E:x>E&&(x=E),a.centerX+=y,a.centerY+=x,y*y+x*x},Xa.prototype.moveFixedVertex=function(){},Xa.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},Xa.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=da,y.toSpot=da)}},Xa.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=on.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,on.free(x)}x=on.alloc();for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;(a!==0||y!==0)&&(x.assign(b.bounds),x.x+=a,x.y+=y,b.bounds=x),b.commit()}on.free(x)},Xa.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Xa.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},Xa.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},Xa.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},Xa.prototype.electricalFieldX=function(){return 0},Xa.prototype.electricalFieldY=function(){return 0},Xa.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},Xa.prototype.gravitationalFieldX=function(){return 0},Xa.prototype.gravitationalFieldY=function(){return 0},Xa.prototype.isFixed=function(a){return a.isFixed},Vt.Object.defineProperties(Xa.prototype,{currentIteration:{get:function(){return this.An}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},arrangesToOrigin:{get:function(){return this.Bm},set:function(a){this.Bm!==a&&(this.Bm=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},maxIterations:{get:function(){return this.dl},set:function(a){this.dl!==a&&0<=a&&(this.dl=a,this.C())}},epsilonDistance:{get:function(){return this.$m},set:function(a){this.$m!==a&&0Lt&&0Lt&&0a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]tt)for(var ht=tt+1;htat;ht--)ft=E[ht],ft.near===lt&&ft.Dj===lt.Dj||rt++;var vt;if(0<=x)for(at=E[tt].sourceEdgesArrayAccess,lt=0;ltLt||ft===Lt&&xt>Et)&&rt++,Wtft||Lt===ft&&Et>xt)&&rt++}}}if(0>=x){for(at=E[tt].destinationEdgesArrayAccess,lt=0;ltLt||ft===Lt&&ht>Wt)&&rt++,Etft||Lt===ft&&Wt>ht)&&rt++)}for(z[tt*b+tt]=rt,at=tt+1;at=x){for(rt=E[tt].destinationEdgesArrayAccess,ne=E[at].destinationEdgesArrayAccess,lt=0;lt=x&&(at=rt.sourceEdgesArrayAccess);var lt=null;0<=x&&(lt=rt.destinationEdgesArrayAccess);var ht=0,ft=0,vt=rt.near;if(vt!==null&&vt.layer===rt.layer&&(ht+=vt.column-1,ft++),at!==null)for(vt=0;vt=x&&(at=rt.sourceEdgesArrayAccess);var lt=null;0<=x&&(lt=rt.destinationEdgesArrayAccess);var ht=0,ft=[],vt=rt.near;if(vt!==null&&vt.layer===rt.layer&&(ft[ht]=vt.column-1,ht++),rt=void 0,at!==null)for(vt=0;vt>1,z[tt]=ht&1?ft[lt]:ft[lt-1]+ft[lt]>>1)}return Mc(a,y,E),z}function F0(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var tt=y.destinationEdges;tt.next();){var rt=tt.value,at=rt.toVertex,lt=y.layer-at.layer;rt=a.linkMinLength(rt),lt===rt&&F0(a,at,x,E,b,z)}if(z)for(tt=y.sourceEdges;tt.next();)rt=tt.value,at=rt.fromVertex,lt=at.layer-y.layer,rt=a.linkMinLength(rt),lt===rt&&F0(a,at,x,E,b,z)}}function m1(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var tt=y.destinationEdges;tt.next();)m1(a,tt.value.toVertex,x,E,b,z);if(z)for(y=y.sourceEdges;y.next();)m1(a,y.value.fromVertex,x,E,b,z)}}$o.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case A1:a=this.network;var y=0,x=a.vertexes.count-1,E=[];E.length=x+1;for(var b=a.vertexes.iterator;b.next();)b.value.valid=!0;for(;R5(a)!==null;){for(b=UA(a);b!==null;)E[x]=b,x--,b.valid=!1,b=UA(a);for(b=VA(a);b!==null;)E[y]=b,y++,b.valid=!1,b=VA(a);b=null;for(var z=0,tt=this.network.vertexes.iterator;tt.next();){var rt=tt.value;if(rt.valid){for(var at=0,lt=rt.destinationEdges;lt.next();)lt.value.toVertex.valid&&at++;lt=0;for(var ht=rt.sourceEdges;ht.next();)ht.value.fromVertex.valid&<++;(b===null||zy.toVertex.index&&(a.gm(y),y.rev=!0);break;case Fm:for(E=this.network.vertexes.iterator;E.next();)a=E.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,E.reset();E.next();)y=E.value,y.sourceEdges.count===0&&v1(this,y);for(E.reset();E.next();)y=E.value,y.Ll===-1&&v1(this,y);for(a.reset();a.next();)E=a.value,E.forest||(y=E.fromVertex,x=y.finish,b=E.toVertex,z=b.finish,b.LlE){if(0>E)for(y.reset();y.next();)y.value.layer-=E;for(E=[],y.reset();y.next();)x=y.value,b=E[x.layer],b===void 0?E[x.layer]=[x]:b.push(x);for(x=y=0;xtt&&F0(a,rt,0,-1,!0,!1)}for(F0(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,E=1/0,rt=0,at=null,tt=a.network.vertexes.iterator;tt.next();){var lt=tt.value;if(lt.component===1){var ht=0,ft=!1,vt=lt.sourceEdgesArrayAccess;b=vt.length;for(var xt=0;xtz)&&!ht&&(rt=tt,z=lt)}if(0>E){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer-=b);y.component=0}else rt.component=0}}}function JA(a,y,x){return a.K===90?x&&!y.rev||!x&&y.rev?270:90:a.K===180?x&&!y.rev||!x&&y.rev?0:180:a.K===270?x&&!y.rev||!x&&y.rev?90:270:x&&!y.rev||!x&&y.rev?180:0}$o.prototype.initializeIndices=function(){switch(this.Qk){default:case w1:for(var a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;y.index=this.tc[x],this.tc[x]++}break;case Dm:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&qA(this,x);break;case x1:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&_A(this,x)}};function qA(a,y){var x=y.layer;for(y.index=a.tc[x],a.tc[x]++,y=y.destinationEdgesArrayAccess,x=!0;x;){x=!1;for(var E=0;Ez.portFromColOffset&&(x=!0,y[E]=z,y[E+1]=b)}}for(x=0;xz.portToColOffset&&(E=!0,y[x]=z,y[x+1]=b)}for(x=0;x=tt;E--)z=Rl(this,E,-1)||z;for(b=this.countCrossings(),b>=a?Il(this,y):(a=b,y=Rs(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Rl(this,E,1)||z;for(b=this.countCrossings(),b>=a?Il(this,y):(a=b,y=Rs(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Rl(this,E,1)||z;for(b>=a?Il(this,y):(a=b,y=Rs(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Rl(this,E,-1)||z;for(b>=a?Il(this,y):(a=b,y=Rs(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Rl(this,E,0)||z;for(b>=a?Il(this,y):(a=b,y=Rs(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Rl(this,E,0)||z;b>=a?Il(this,y):(a=b,y=Rs(this))}break;default:case Bm:for(x=this.Ia,tt=0,rt=a+1;(E=this.countCrossings())=tt;E--)z=Rl(this,E,-1)||z;for(b=this.countCrossings(),b>=a?Il(this,y):(a=b,y=Rs(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Rl(this,E,1)||z;for(b=this.countCrossings(),b>=a?Il(this,y):(a=b,y=Rs(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Rl(this,E,1)||z;for(b>=a?Il(this,y):(a=b,y=Rs(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Rl(this,E,-1)||z;for(b>=a?Il(this,y):(a=b,y=Rs(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Rl(this,E,0)||z;for(b>=a?Il(this,y):(a=b,y=Rs(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Rl(this,E,0)||z;b>=a?Il(this,y):(a=b,y=Rs(this))}}Il(this,y)};function Pm(a,y,x){var E=Ic(a,y),b=a.tc[y],z=ZA(a,y,x),tt=p1(a,y,x);for(x=0;xz+1&&(vt+=4*(Jt-z),xt+=4*(Jt-(z+1)))}for(se=E[z].destinationEdges.iterator,se.reset();se.next();)if(Jt=se.value,ne=Jt.toVertex,Jt.valid&&ne.layer===y){for(Jt=0;E[Jt]!==ne;)Jt++;Jt===z+1&&(xt+=1)}for(se=E[z+1].sourceEdges.iterator,se.reset();se.next();)if(Jt=se.value,ne=Jt.fromVertex,Jt.valid&&ne.layer===y){for(Jt=0;E[Jt]!==ne;)Jt++;Jtz+1&&(vt+=4*(Jt-(z+1)),xt+=4*(Jt-z))}for(se=E[z+1].destinationEdges.iterator,se.reset();se.next();)if(Jt=se.value,ne=Jt.toVertex,Jt.valid&&ne.layer===y){for(Jt=0;E[Jt]!==ne;)Jt++;Jt===z&&(vt+=1)}Jt=ne=0,se=tt[E[z].index];var ye=rt[E[z].index],Ge=tt[E[z+1].index],ni=rt[E[z+1].index];se!==-1&&(ne+=Math.abs(se-Et),Jt+=Math.abs(se-kt)),ye!==-1&&(ne+=Math.abs(ye-Et),Jt+=Math.abs(ye-kt)),Ge!==-1&&(ne+=Math.abs(Ge-Lt),Jt+=Math.abs(Ge-Wt)),ni!==-1&&(ne+=Math.abs(ni-Lt),Jt+=Math.abs(ni-Wt)),(xt>1)+8*E;this.Ra*=8}if(this.bg&2)for(x=!0;x;){for(x=!1,y=this.Md+1;y<=this.Ia;y++)x=tf(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=tf(this,y,-1)||x;x=tf(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)y1(this,y,1);for(y=this.Md-1;0<=y;y--)y1(this,y,-1);y1(this,this.Md,0)}if(a&&($A(this,-1),$A(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=tf(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=tf(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=tf(this,y,0)||x}}else Z5(this)};function tf(a,y,x){for(var E=!1;H5(a,y,x);)E=!0;return E}function H5(a,y,x){var E,b=Ic(a,y),z=a.tc[y],tt=p1(a,y,-1);if(0x)for(E=0;EE-1||ht-b[E-1].column-1>ft+a.nodeMinColumnSpace(b[E-1],!1)?xt=ht-1:xt=ht,ft=E+1>=z||b[E+1].column-ht-1>vt+a.nodeMinColumnSpace(b[E+1],!0)?ht+1:ht;var Et=vt=0,Lt=0;if(0>=x)for(var Wt=b[E].sourceEdges.iterator;Wt.next();){var kt=Wt.value,Jt=kt.fromVertex;if(kt.valid&&Jt.layer!==y){var ne=f1(kt),se=kt.portFromColOffset;kt=kt.portToColOffset,Jt=Jt.column,vt+=(Math.abs(ht+kt-(Jt+se))+1)*ne,Et+=(Math.abs(xt+kt-(Jt+se))+1)*ne,Lt+=(Math.abs(ft+kt-(Jt+se))+1)*ne}}if(0<=x)for(Wt=b[E].destinationEdges.iterator;Wt.next();)kt=Wt.value,Jt=kt.toVertex,kt.valid&&Jt.layer!==y&&(ne=f1(kt),se=kt.portFromColOffset,kt=kt.portToColOffset,Jt=Jt.column,vt+=(Math.abs(ht+se-(Jt+kt))+1)*ne,Et+=(Math.abs(xt+se-(Jt+kt))+1)*ne,Lt+=(Math.abs(ft+se-(Jt+kt))+1)*ne);kt=se=ne=0,Wt=tt[b[E].index],Jt=rt[b[E].index],Wt!==-1&&(ne+=Math.abs(Wt-ht),se+=Math.abs(Wt-xt),kt+=Math.abs(Wt-ft)),Jt!==-1&&(ne+=Math.abs(Jt-ht),se+=Math.abs(Jt-xt),kt+=Math.abs(Jt-ft)),Et=tt[x]?ht=at:lt<=tt[x]&&(ht=lt));ht!==rt&&(z=!0,E[x].column=ht)}Mc(a,y,E),a.normalize()}function W5(a,y){for(var x=!0,E=a.network.vertexes.iterator;E.next();){var b=E.value,z=a.nodeMinColumnSpace(b,!0),tt=a.nodeMinColumnSpace(b,!1);if(b.column-z<=y&&b.column+tt>=y){x=!1;break}}if(a=!1,x)for(E.reset();E.next();)x=E.value,x.column>y&&(--x.column,a=!0);return a}function G5(a,y){var x=y+1,E,b=[],z=[];for(E=0;E<=a.Ia;E++)b[E]=!1,z[E]=!1;for(var tt=a.network.vertexes.iterator;tt.next();){E=tt.value;var rt=E.column-a.nodeMinColumnSpace(E,!0),at=E.column+a.nodeMinColumnSpace(E,!1);rt<=y&&at>=y&&(b[E.layer]=!0),rt<=x&&at>=x&&(z[E.layer]=!0)}for(rt=!0,x=!1,E=0;E<=a.Ia;E++)rt=rt&&!(b[E]&&z[E]);if(rt)for(tt.reset();tt.next();)a=tt.value,a.column>y&&(--a.column,x=!0);return x}function $A(a,y){for(var x=0;x<=a.Ra;x++)for(;W5(a,x););for(a.normalize(),x=0;xz?Il(a,b):tty)for(x=a.Ra;0<=x;x--)for(b=Rs(a),z=Em(a),E=z+1;zz?Il(a,b):ttx)for(E.reset();E.next();)b=E.value,b.column+a.nodeMinColumnSpace(b,!1)>=y&&(b.component=a.le);for(a.le++,E.reset();E.next();)y=E.value,y.component===-1&&(m1(a,y,a.le,-1,!0,!0),a.le++);var z;for(y=[],z=0;zx)for(tt=a.Ra;0x)for(E.reset();E.next();)x=E.value,b[x.component]&&(x.column+=1)}function Z5(a){for(var y=ii(),x=a.fl.length,E=0;E<=x;E++)y[E]=[];for(E=a.network.vertexes.iterator;E.next();){var b=E.value;y[x-b.layer][b.index]=b}x=new bn,U5(y,x);var z=null,tt=null,rt=null,at=null,lt=(a.ve&1)!==0,ht=(a.ve&2)!==0,ft=(a.ve&4)!==0,vt=(a.ve&8)!==0;for(lt&&(a.verticalAlignment(y,x,!0),z=Im(a,y,!0,!1)),y.reverse(),ft&&(a.verticalAlignment(y,x,!1),rt=Im(a,y,!1,!1)),E=Hn(y),b=E.next();!b.done;b=E.next())b.value.reverse();vt&&(a.verticalAlignment(y,x,!1),at=Im(a,y,!1,!0)),y.reverse(),ht&&(a.verticalAlignment(y,x,!0),tt=Im(a,y,!0,!0)),Bn(y),a.u(z,tt,rt,at),a.network.vertexes.each(function(xt){var Et=ii();lt&&Et.push(z.get(xt)),ht&&Et.push(tt.get(xt)),ft&&Et.push(rt.get(xt)),vt&&Et.push(at.get(xt)),Et.sort(function(Wt,kt){return Wt-kt});var Lt=Et.length;Lt=(Et[Math.floor((Lt-1)/2)]+Et[Math.ceil((Lt-1)/2)])/2,Bn(Et),xt.zc=Lt})}function U5(a,y){for(var x=a.length,E=1;Eht)&&y.add(ft);z++}b=ht}}}$o.prototype.verticalAlignment=function(a,y,x){V5(a),a=Hn(a);for(var E=a.next();!E.done;E=a.next()){var b=-1;E=Hn(E.value);for(var z=E.next();!z.done;z=E.next()){z=z.value;var tt=x?I1(z):K5(z),rt=tt.length;if(0=y[x].length)&&(tt=y[x][0],tt.sd===tt)){tt.sd.shift===1/0&&(tt.sd.shift=0),tt=x,rt=0;do{for(z=y[tt][rt];z.align!==z.root;)z=z.align,tt++,0a&&Xt("Could not determine previous vertex in layer"),y[x][a-1]}$o.prototype.u=function(a){for(var y=[],x=0;xtt;tt++)if(y[tt]){var rt=Y5(this,y[tt],E,b,tt);rttt;z={delta:z.delta},tt++)y[tt]&&(z.delta=tt===0||tt===2?E[x]-E[tt]:b[x]-b[tt],z.delta!==0&&y[tt].each(function(at){return function(lt){lt.value+=at.delta}}(z)));Bn(E),Bn(b)};function Y5(a,y,x,E,b){if(!y||y.count===0)return x[b]=0,E[b]=0,1/0;var z=1/0,tt=-1/0;return y.each(function(rt){var at=rt.key;rt=rt.value,at=a.K===90||a.K===270?at.width:at.height,rttt&&(tt=rt+at)}),x[b]=z,E[b]=tt,tt-z}$o.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=Mm(this,!0),y=Mm(this,!1),x=this.network.edges.iterator;x.next();){var E=x.value.link;E!==null&&(E.fromSpot=a,E.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function Mm(a,y){return a.K===270?y?Wa:Ea:a.K===90?y?Ea:Wa:a.K===180?y?ss:ba:y?ba:ss}$o.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var a=0;a<=this.Ia;a++)this.he[a]=0,this.Ld[a]=0,this.Kd[a]=0,this.Ta[a]=0;for(a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;this.he[x]=Math.max(this.he[x],this.nodeMinLayerSpace(y,!0)),this.Ld[x]=Math.max(this.Ld[x],this.nodeMinLayerSpace(y,!1))}y=0,x=this.ie;for(var E=0;E<=this.Ia;E++){var b=x;0>=this.he[E]+this.Ld[E]&&(b=0),0=ft.bounds.bottom?(ft=ft.bounds.y+ft.bounds.height,y.m(Lt++,se,ft+Ge),y.m(Lt++,se,ft),y.m(Lt++,se,ft-ne)):(y.m(Lt++,se,ye+Ge),y.m(Lt++,se,ye),y.m(Lt++,se,ye-ne)):this.K===270?ye<=ft.bounds.y?(ft=ft.bounds.y,y.m(Lt++,se,ft-ne),y.m(Lt++,se,ft),y.m(Lt++,se,ft+Ge)):(y.m(Lt++,se,ye-ne),y.m(Lt++,se,ye),y.m(Lt++,se,ye+Ge)):this.K===0&&(se>=ft.bounds.right?(ft=ft.bounds.x+ft.bounds.width,y.m(Lt++,ft+Ge,ye),y.m(Lt++,ft,ye),y.m(Lt++,ft-ne,ye)):(y.m(Lt++,se+Ge,ye),y.m(Lt++,se,ye),y.m(Lt++,se-ne,ye)));else{y.m(Lt++,kt,Jt);var ni=0;this.K===180||this.K===0?((this.K===180?se>=ft.bounds.right:se<=ft.bounds.x)&&(ni=(this.K===0?-ne:Ge)/2),y.m(Lt++,kt+ni,ye)):((this.K===270?ye>=ft.bounds.bottom:ye<=ft.bounds.y)&&(ni=(this.K===90?-ne:Ge)/2),y.m(Lt++,se,Jt+ni)),y.m(Lt++,se,ye)}}else ne=Math.max(10,this.he[Wt.layer]),Ge=Math.max(10,this.Ld[Wt.layer]),vt?this.K===180?(y.m(Lt++,se-ne-Et,ye),y.m(Lt++,Math.min(se-ne+Et/2,se),ye),y.m(Lt++,se,ye),y.m(Lt++,se,ye),y.m(Lt++,Math.max(se+Ge-Et/2,se),ye),y.m(Lt++,se+Ge+Et,ye)):this.K===90?(y.m(Lt++,se,ye+Ge+Et),y.m(Lt++,se,Math.max(ye+Ge-Et/2,ye)),y.m(Lt++,se,ye),y.m(Lt++,se,ye),y.m(Lt++,se,Math.min(ye-ne+Et/2,ye)),y.m(Lt++,se,ye-ne-Et)):this.K===270?(y.m(Lt++,se,ye-ne-Et),y.m(Lt++,se,Math.min(ye-ne+Et/2,ye)),y.m(Lt++,se,ye),y.m(Lt++,se,ye),y.m(Lt++,se,Math.max(ye+Ge-Et/2,ye)),y.m(Lt++,se,ye+Ge+Et)):(y.m(Lt++,se+Ge+Et,ye),y.m(Lt++,Math.max(se+Ge-Et/2,se),ye),y.m(Lt++,se,ye),y.m(Lt++,se,ye),y.m(Lt++,Math.min(se-ne+Et/2,se),ye),y.m(Lt++,se-ne-Et,ye)):y.m(Lt++,se,ye)}ft=Wt}(rt===null||lt!==ir||xt)&&(kt=y.i(Lt-1).x,Jt=y.i(Lt-1).y,se=y.i(Lt).x,ye=y.i(Lt).y,xt?(Et=this.Ld[ht.layer],this.K===180||this.K===0?(xt=Jt,xt>=ht.bounds.y&&xt<=ht.bounds.bottom&&(this.K===180?se>=ht.bounds.x:se<=ht.bounds.right)&&(ft=ht.centerX+(this.K===180?-Et:Et),xt=ht.bounds.x&&xt<=ht.bounds.right&&(this.K===270?ye>=ht.bounds.y:ye<=ht.bounds.bottom)&&(ft=ht.centerY+(this.K===270?-Et:Et),xt=ht.bounds.x?(ft=ht.bounds.x+ht.bounds.width,y.L(Lt-2,ft,Jt),y.L(Lt-1,ft+Ge,Jt)):this.K===90&&ye<=ht.bounds.bottom?(ft=ht.bounds.y,y.L(Lt-2,kt,ft),y.L(Lt-1,kt,ft-ne)):this.K===270&&ye>=ht.bounds.y?(ft=ht.bounds.y+ht.bounds.height,y.L(Lt-2,kt,ft),y.L(Lt-1,kt,ft+Ge)):this.K===0&&se<=ht.bounds.right&&(ft=ht.bounds.x,y.L(Lt-2,ft,Jt),y.L(Lt-1,ft-ne,Jt))):(ne=Math.max(10,this.he[ht.layer]),Ge=Math.max(10,this.Ld[ht.layer]),xt=0,this.K===180||this.K===0?((this.K===180?se<=ht.bounds.x:se>=ht.bounds.right)&&(xt=(this.K===0?Ge:-ne)/2),y.m(Lt++,se+xt,Jt)):((this.K===270?ye<=ht.bounds.y:ye>=ht.bounds.bottom)&&(xt=(this.K===90?Ge:-ne)/2),y.m(Lt++,kt,ye+xt)),y.m(Lt++,se,ye)))}else{for(;ht!==null&&ht!==ft;){for(ne=Wt=null,ht=ht.destinationEdges.iterator;ht.next()&&(kt=ht.value,kt.link!==x.link||(Wt=kt.toVertex,ne=kt.fromVertex,ne.node!==null&&(ne=null),Wt.node!==null)););if(Wt===null)break;Wt!==ft&&(kt=y.i(Lt-1).x,Jt=y.i(Lt-1).y,se=Wt.centerX,ye=Wt.centerY,xt?this.K===180||this.K===0?(ne!==null?ne.centerY:Jt)!==ye&&(ne=this.Ta[Wt.layer]+this.Rf.x,Lt===y.firstPickIndex+1&&(ne=this.K===0?Math.max(ne,kt):Math.min(ne,kt)),y.m(Lt++,ne,Jt),y.m(Lt++,ne,ye)):(ne!==null?ne.centerX:kt)!==se&&(ne=this.Ta[Wt.layer]+this.Rf.y,Lt===y.firstPickIndex+1&&(ne=this.K===90?Math.max(ne,Jt):Math.min(ne,Jt)),y.m(Lt++,kt,ne),y.m(Lt++,se,ne)):(ne=Math.max(10,this.he[Wt.layer]),Ge=Math.max(10,this.Ld[Wt.layer]),vt?this.K===180?(y.m(Lt++,se+Ge+Et,ye),y.m(Lt++,Math.max(se+Ge-Et/2,se),ye),y.m(Lt++,se,ye),y.m(Lt++,se,ye),y.m(Lt++,Math.min(se-ne+Et/2,se),ye),y.m(Lt++,se-ne-Et,ye)):this.K===90?(y.m(Lt++,se,ye-ne-Et),y.m(Lt++,se,Math.min(ye-ne+Et/2,ye)),y.m(Lt++,se,ye),y.m(Lt++,se,ye),y.m(Lt++,se,Math.max(ye+Ge-Et/2,ye)),y.m(Lt++,se,ye+Ge+Et)):this.K===270?(y.m(Lt++,se,ye+Ge+Et),y.m(Lt++,se,Math.max(ye+Ge-Et/2,ye)),y.m(Lt++,se,ye),y.m(Lt++,se,ye),y.m(Lt++,se,Math.min(ye-ne+Et/2,ye)),y.m(Lt++,se,ye-ne-Et)):(y.m(Lt++,se-ne-Et,ye),y.m(Lt++,Math.min(se-ne+Et/2,se),ye),y.m(Lt++,se,ye),y.m(Lt++,se,ye),y.m(Lt++,Math.max(se+Ge-Et/2,se),ye),y.m(Lt++,se+Ge+Et,ye)):this.K===180?(y.m(Lt++,se+Ge,ye),y.m(Lt++,se-ne,ye)):this.K===90?(y.m(Lt++,se,ye-ne),y.m(Lt++,se,ye+Ge)):this.K===270?(y.m(Lt++,se,ye+Ge),y.m(Lt++,se,ye-ne)):(y.m(Lt++,se-ne,ye),y.m(Lt++,se+Ge,ye)))),ht=Wt}xt&&(kt=y.i(Lt-1).x,Jt=y.i(Lt-1).y,se=y.i(Lt).x,ye=y.i(Lt).y,this.K===180||this.K===0?Jt!==ye&&(ne=this.K===0?Math.min(Math.max((se+kt)/2,this.Ta[ft.layer]+this.Rf.x),se):Math.max(Math.min((se+kt)/2,this.Ta[ft.layer]+this.Rf.x),se),y.m(Lt++,ne,Jt),y.m(Lt++,ne,ye)):kt!==se&&(ne=this.K===90?Math.min(Math.max((ye+Jt)/2,this.Ta[ft.layer]+this.Rf.y),ye):Math.max(Math.min((ye+Jt)/2,this.Ta[ft.layer]+this.Rf.y),ye),y.m(Lt++,kt,ne),y.m(Lt++,se,ne)))}E!==null&&vt&&4<=y.pointsCount&&(tt!==null&&(tt=lt===ir?y.getLinkPointFromPoint(b,tt,tt.ga(Wo),y.i(3),!0):y.i(0),lt===ir&&(lt=y.i(2),E=y.i(3),this.direction===90||this.direction===270?(y.L(1,(tt.x+lt.x)/2,lt.y),y.L(2,E.x,(lt.y+E.y)/2)):(y.L(1,lt.x,(tt.y+lt.y)/2),y.L(2,(lt.x+E.x)/2,E.y))),tt.w()||tt.set(b.actualBounds.center),y.L(0,tt.x,tt.y)),rt!==null&&(b=at===ir?y.getLinkPointFromPoint(z,rt,rt.ga(Wo),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),at===ir&&(rt=y.i(y.pointsCount-3),at=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(b.x+rt.x)/2,rt.y),y.L(y.pointsCount-2,at.x,(rt.y+at.y)/2)):(y.L(y.pointsCount-2,rt.x,(b.y+rt.y)/2),y.L(y.pointsCount-3,(rt.x+at.x)/2,at.y))),b.w()||b.set(z.actualBounds.center),y.L(y.pointsCount-1,b.x,b.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},$o.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new Ln,y=this.network.edges.iterator;y.next();){var x=y.value.link;x!==null&&x.isOrthogonal&&!a.contains(x)&&a.add(x)}if(0z.y&&(ht=lt.y>z.y?0:tt.xz.x&&(ht=lt.x>z.x?0:tt.yy.layer?1:a.rdy.rd?1:a.Icy.Ic?1:0:0},Ct.Ux=function(a,y){return a instanceof Fc&&y instanceof Fc&&a!==y?a.firsty.first||a.jy.j||a.rdy.rd?1:a.Icy.Ic?1:0:0},Ct.Js=function(a,y){return a instanceof Fc&&y instanceof Fc&&a!==y?a.jcy.jc||a.jy.j||a.rdy.rd?1:a.Icy.Ic?1:0:0},Ct.B=function(a,y){return a-=y,-1a},Ct.zi=function(a,y,x,E){var b=a.length,z=E-x;if(!(1>=z))if((0>x||x>=b-1)&&Xt("not in range 0 <= from < length: "+x),z===2)E=a[x],b=a[x+1],0=b)a.sort(y);else for(x=a.slice(0,E),x.sort(y),y=0;y=b)for(E=a.slice(x),E.sort(y),y=x;y=a.He.length){for(var E=[],b=0;ba&&(this.bg=a,this.C())}},alignOption:{get:function(){return this.ve},set:function(a){this.ve!==a&&0<=a&&16>a&&(this.ve=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(a){this.Cn!==a&&0<=a&&(this.Cn=a,this.C())}},maxLayer:{get:function(){return this.Ia}},maxIndex:{get:function(){return this.Iq}},maxColumn:{get:function(){return this.Ra}},minIndexLayer:{get:function(){return this.Hn}},maxIndexLayer:{get:function(){return this.Md}}});var Fm=new sn($o,"CycleDepthFirst",0),A1=new sn($o,"CycleGreedy",1),L0=new sn($o,"CycleFromLayers",2),Lm=new sn($o,"LayerOptimalLinkLength",0),C1=new sn($o,"LayerLongestPathSink",1),S1=new sn($o,"LayerLongestPathSource",2),Dm=new sn($o,"InitDepthFirstOut",0),x1=new sn($o,"InitDepthFirstIn",1),w1=new sn($o,"InitNaive",2),E1=new sn($o,"AggressiveNone",0),Bm=new sn($o,"AggressiveLess",1),P1=new sn($o,"AggressiveMore",2),X5=8;$o.className="LayeredDigraphLayout",$o.CycleDepthFirst=Fm,$o.CycleGreedy=A1,$o.CycleFromLayers=L0,$o.LayerOptimalLinkLength=Lm,$o.LayerLongestPathSink=C1,$o.LayerLongestPathSource=S1,$o.InitDepthFirstOut=Dm,$o.InitDepthFirstIn=x1,$o.InitNaive=w1,$o.AggressiveNone=E1,$o.AggressiveLess=Bm,$o.AggressiveMore=P1,$o.PackNone=0,$o.PackExpand=1,$o.PackStraighten=2,$o.PackMedian=4,$o.PackAll=15,$o.AlignNone=0,$o.AlignUpperLeft=1,$o.AlignUpperRight=2,$o.AlignLowerLeft=4,$o.AlignLowerRight=8,$o.AlignAll=15;function Fc(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}Fc.className="SegInfo";function ef(a){dr.call(this,a)}Yt(ef,dr),ef.prototype.createVertex=function(){return new Ml(this)},ef.prototype.createEdge=function(){return new D0(this)},ef.className="LayeredDigraphNetwork";function Ml(a){ua.call(this,a),this.$n=this.bo=this.ao=this.co=null,this.Za=this.Ag=this.Ig=-1,this.u=NaN,this.F=null,this.valid=!1,this.finish=this.Ll=NaN,this.Dj=0,this.dv=this.ev=null}Yt(Ml,ua);function i5(a,y){return a.index-y.index}function bm(a,y){if(!a.$n){for(var x=[],E=Hn(a.destinationEdgesArrayAccess),b=E.next();!b.done;b=E.next())b=b.value,b.valid&&x.push(b);a.$n=x}for(a=Hn(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;Xt("Unable to find destination edge to given vertex")}function I1(a){if(!a.co){for(var y=[],x=Hn(a.sourceEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.fromVertex);y.sort(i5),a.co=y}return a.co}function K5(a){if(!a.ao){for(var y=[],x=Hn(a.destinationEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.toVertex);y.sort(i5),a.ao=y}return a.ao}Ml.prototype.Cl=function(a){ua.prototype.Cl.call(this,a),this.bo=this.co=null},Ml.prototype.Kl=function(a){ua.prototype.Kl.call(this,a),this.bo=this.co=null},Ml.prototype.zl=function(a){ua.prototype.zl.call(this,a),this.$n=this.ao=null},Ml.prototype.Jl=function(a){ua.prototype.Jl.call(this,a),this.$n=this.ao=null},Vt.Object.defineProperties(Ml.prototype,{layer:{get:function(){return this.Ig},set:function(a){this.Ig!==a&&(this.Ig=a)}},column:{get:function(){return this.Ag},set:function(a){this.Ag!==a&&(this.Ag=a)}},index:{get:function(){return this.Za},set:function(a){this.Za!==a&&(this.Za=a)}},component:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},near:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),Ml.prototype.deleteDestinationEdge=Ml.prototype.Jl,Ml.prototype.addDestinationEdge=Ml.prototype.zl,Ml.prototype.deleteSourceEdge=Ml.prototype.Kl,Ml.prototype.addSourceEdge=Ml.prototype.Cl,Ml.className="LayeredDigraphVertex";function D0(a){el.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Yt(D0,el),Vt.Object.defineProperties(D0.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},valid:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},rev:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},forest:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},portFromPos:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},portToPos:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},portFromColOffset:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},portToColOffset:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),D0.className="LayeredDigraphEdge";function xo(a){Pr.call(this),this.Ub=new bn,this.Wn=Om,this.ud=Vu,this.vo=zm,this.Bq=j1,this.$v=[],this.td=!0,this.Rb=Rm,this.$d=new Nn(10,10).freeze();var y=new $d(this);this.W=new Hl(y),this.Y=new Hl(y),this.ru=[],a&&Object.assign(this,a)}Yt(xo,Pr),xo.prototype.cloneProtected=function(a){Pr.prototype.cloneProtected.call(this,a),a.Wn=this.Wn,a.vo=this.vo,a.Bq=this.Bq,a.td=this.td,a.Rb=this.Rb,a.$d.assign(this.$d),a.W.copyInheritedPropertiesFrom(this.W),a.Y.copyInheritedPropertiesFrom(this.Y)},xo.prototype.qb=function(a){a.classType===xo?a.name.indexOf("Alignment")===0?this.alignment=a:a.name.indexOf("Arrangement")===0?this.arrangement=a:a.name.indexOf("Compaction")===0?this.compaction=a:a.name.indexOf("Path")===0?this.path=a:a.name.indexOf("Sorting")===0?this.sorting=a:a.name.indexOf("Style")===0?this.treeStyle=a:Xt("Unknown enum value: "+a):Pr.prototype.qb.call(this,a)},xo.prototype.createNetwork=function(){return new $d(this)},xo.prototype.makeNetwork=function(a){function y(E){if(E instanceof ri)return!E.isLinkLabel&&E.category!=="Comment";if(E instanceof Vn){var b=E.fromNode;return b===null||b.isLinkLabel||b.category==="Comment"?!1:(E=E.toNode,!(E===null||E.isLinkLabel||E.category==="Comment"))}return!1}var x=this.createNetwork();return a instanceof Ue?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof to?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},xo.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==Hm&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof Ue&&(y=a),this.path===Om&&y!==null?this.ud=y.isTreePathToChildren?Vu:qd:this.ud=this.path===Om?Vu:this.path,0y.level)return!1;a.removeChild(x.parent,x)}return!0}xo.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,E=0,b=0;bb?h5(this,a,tt,Yi,kt,Jt):c5(this,a,tt,Yi,kt,Jt),Yi=Jt.x,kt=Jt.width,Jt=Jt.height;break;case Uh:for(se=0;seft&&(fixa&&(Jd(a,-xa,0,qi,Ho-1),Tm(se,-xa,0),Tm(ye,-xa,0),xa=0)}ur.S.h(xa,ui),kt=Math.max(kt,Ge),Jt=Math.max(Jt,ne+(Un===0?0:Et)+ma.height),fi=Ge}else 0ft&&(uixa&&(Jd(a,0,-xa,qi,Ho-1),Tm(se,0,-xa),Tm(ye,0,-xa),xa=0)),ur.S.h(fi,xa),Jt=Math.max(Jt,ni),kt=Math.max(kt,ne+(Un===0?0:Et)+ma.width),ui=ni;xn++}switch(0lt&&(lt=0),135Lt&&(Lt=0),at===fh&&(rt+=vt/2+a.focus.y),tt+=E+x):y?(a.comments===null?E>kt&&(kt=B1(at,E-kt,0),tt=kt.x,rt=kt.y,kt=E,lt=0):kt=L1(a,kt,lt),0>lt&&(tt-=lt,lt=0),135Jt&&(Jt=B1(at,0,Wt-Jt),tt=Jt.x,rt=Jt.y,Jt=Wt,Lt=0):Jt=D1(a,Jt,Lt),0>Lt&&(rt-=Lt,Lt=0),tt+=E+x),0b[0].x?b[2].assign(b[1]):b[1].assign(b[2])),b[3].yb[0].x?b[3].assign(b[2]):b[2].assign(b[3])),Un[0].h(lt+E,0),Un[1].h(Un[0].x,Wt),Un[2].yb[0].y?b[2].assign(b[1]):b[1].assign(b[2])),b[3].xb[0].y?b[3].assign(b[2]):b[2].assign(b[3])),Un[0].h(0,Lt+Wt),Un[1].h(E,Un[0].y),Un[2].xE?h5(a,y,b,xn,ne,se):c5(a,y,b,xn,ne,se),xn=se.x,ne=se.width,se=se.height;break;case Uh:for(vt=0;vtvt&&(Gevt&&(nift&&(ft=0),135kt&&(kt=0)),y.la.h(ft,kt),y.Da.h(ne,se)}}xo.prototype.customAlignment=function(a,y,x,E,b){return[y,x,E,b]};function h5(a,y,x,E,b,z){var tt=x.length;if(tt===0)return new on(E,0,b,z);if(tt===1)return y=x[0],b=y.Da.width,z=y.Da.height,new on(E,0,b,z);for(var rt=y.nodeSpacing,at=y.rowSpacing,lt=nu(y)===90,ht=0,ft=0,vt=0,xt=0;xtlt&&(b-=lt),z=Math.max(z,Math.max(xt,vt)+a+tt.height),0>x.S.x&&(E=Nm(y,x.S.x,!1,E,rt))):(x.S.h(b+a,E+rt/2-x.focus.y-x.la.y),b=Math.max(b,Math.max(Et,ft)+a+tt.width),vt=E+rt/2-x.focus.y-x.la.y,z=Math.max(z,vt+tt.height),0>vt&&(z-=vt),0>x.S.y&&(E=Nm(y,x.S.y,!0,E,rt)))),new on(E,0,b,z)}function c5(a,y,x,E,b,z){var tt=x.length;if(tt===0)return new on(E,0,b,z);if(tt===1)return x=x[0],b=x.Da.width,z=x.Da.height,new on(E,0,b,z);for(var rt=y.nodeSpacing,at=y.rowSpacing,lt=nu(y)===270,ht=0,ft=0,vt=0,xt=0;xtft&&(b-=ft),z=Math.max(z,Math.abs(Math.min(xt,vt))+a+ht.height),0>at.S.x&&(E=Nm(y,at.S.x,!1,E,rt))):(at.S.h(-b-ht.width-a,E+rt/2-at.focus.y-at.la.y),b=Math.max(b,Math.abs(Math.min(Et,ft))+a+ht.width),vt=E+rt/2-at.focus.y-at.la.y,z=Math.max(z,vt+ht.height),0>vt&&(z-=vt),0>at.S.y&&(E=Nm(y,at.S.y,!0,E,rt)))),y=0;yy&&(y=x+a.width),0>x&&(y-=x),y;case Yu:return a.width>y?a.width:y;case Xu:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case Zh:case Ku:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case Uh:return a.width-a.focus.x+a.nodeSpacing/2+y;case fh:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function D1(a,y,x){switch(a.alignment){case _d:case of:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Yu:return a.height>y?a.height:y;case Xu:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case Zh:case Ku:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case Uh:return a.height-a.focus.y+a.nodeSpacing/2+y;case fh:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function B1(a,y,x){switch(a){case of:y/=2,x/=2;break;case _d:y/=2,x/=2;break;case Yu:x=y=0;break;case Xu:break;default:Xt("Unhandled alignment value "+a.toString())}return new Ot(y,x)}function cd(a,y,x,E,b,z){y=B1(y,x,E),Jd(a,y.x,y.y,b,z)}function Jd(a,y,x,E,b){if(y!==0||x!==0)for(a=a.children;E<=b;E++){var z=a[E].S;z.x+=y,z.y+=x}}function km(a,y,x,E){var b=y.parent;switch(a.ud){case Vu:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===b&&y.relativePoint.h(x,E);break;case qd:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===b&&y.relativePoint.h(x,E);break;default:Xt("Unhandled path value "+a.ud.toString())}}function Tm(a,y,x){for(var E=0;Eft.length||xt===null||2>xt.length))for(b=x=0;xlt&&z.yz.y&<y.length||x===null||2>x.length)E=null;else{for(ht=Zs(a,y.length+x.length),E=z=at=0;zat;)lt=x[z++],ht[E++].h(lt.x+b,lt.y);for(x=Zs(a,E),at=0;atft.length||z===null||2>z.length)b=null;else{for(ht=Zs(a,ft.length+z.length),b=lt=x=0;xz;)at=ft[x++],ht[b++].h(at.x,at.y);for(z=Zs(a,b),x=0;xft.length||xt===null||2>xt.length))for(b=x=0;xat&&z.xz.x&&aty.length||x===null||2>x.length)E=null;else{for(ht=Zs(a,y.length+x.length),E=z=at=0;zat;)lt=x[z++],ht[E++].h(lt.x,lt.y+b);for(x=Zs(a,E),at=0;atft.length||z===null||2>z.length)b=null;else{for(ht=Zs(a,ft.length+z.length),b=lt=x=0;xz;)at=ft[x++],ht[b++].h(at.x,at.y);for(z=Zs(a,b),x=0;x=a?0:135>=a?90:225>=a?180:315>=a?270:0}xo.prototype.computeLayerSpacing=function(a){var y=nu(a);y=y===90||y===270;var x=a.layerSpacing;if(0=a&&(this.W.nodeIndentPastParent=a,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(a){this.W.nodeSpacing!==a&&(this.W.nodeSpacing=a,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(a){this.W.layerSpacing!==a&&(this.W.layerSpacing=a,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(a){this.W.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.W.layerSpacingParentOverlap=a,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(a){this.W.compaction===a||a!==jm&&a!==T0||(this.W.compaction=a,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(a){this.W.breadthLimit!==a&&0<=a&&(this.W.breadthLimit=a,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(a){this.W.rowSpacing!==a&&(this.W.rowSpacing=a,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(a){this.W.rowIndent!==a&&0<=a&&(this.W.rowIndent=a,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(a){this.W.commentSpacing!==a&&(this.W.commentSpacing=a,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(a){this.W.commentMargin!==a&&(this.W.commentMargin=a,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(a){this.W.setsPortSpot!==a&&(this.W.setsPortSpot=a,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(a){this.W.portSpot.D(a)||(this.W.portSpot=a,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(a){this.W.setsChildPortSpot!==a&&(this.W.setsChildPortSpot=a,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(a){this.W.childPortSpot.D(a)||(this.W.childPortSpot=a,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(a){this.Y.sorting===a||a!==nf&&a!==b0&&a!==N0&&!k0||(this.Y.sorting=a,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(a){this.Y.comparer!==a&&(this.Y.comparer=a,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(a){this.Y.angle===a||a!==0&&a!==90&&a!==180&&a!==270||(this.Y.angle=a,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(a){this.Y.alignment!==a&&(this.Y.alignment=a,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(a){this.Y.nodeIndent!==a&&0<=a&&(this.Y.nodeIndent=a,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(a){this.Y.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.Y.nodeIndentPastParent=a,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(a){this.Y.nodeSpacing!==a&&(this.Y.nodeSpacing=a,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(a){this.Y.layerSpacing!==a&&(this.Y.layerSpacing=a,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(a){this.Y.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.Y.layerSpacingParentOverlap=a,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(a){this.Y.compaction===a||a!==jm&&a!==T0||(this.Y.compaction=a,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(a){this.Y.breadthLimit!==a&&0<=a&&(this.Y.breadthLimit=a,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(a){this.Y.rowSpacing!==a&&(this.Y.rowSpacing=a,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(a){this.Y.rowIndent!==a&&0<=a&&(this.Y.rowIndent=a,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(a){this.Y.commentSpacing!==a&&(this.Y.commentSpacing=a,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(a){this.Y.commentMargin!==a&&(this.Y.commentMargin=a,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(a){this.Y.setsPortSpot!==a&&(this.Y.setsPortSpot=a,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(a){this.Y.portSpot.D(a)||(this.Y.portSpot=a,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(a){this.Y.setsChildPortSpot!==a&&(this.Y.setsChildPortSpot=a,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(a){this.Y.childPortSpot.D(a)||(this.Y.childPortSpot=a,this.C())}}});var Om=new sn(xo,"PathDefault",-1),Vu=new sn(xo,"PathDestination",0),qd=new sn(xo,"PathSource",1),nf=new sn(xo,"SortingForwards",10),b0=new sn(xo,"SortingReverse",11),N0=new sn(xo,"SortingAscending",12),k0=new sn(xo,"SortingDescending",13),of=new sn(xo,"AlignmentCenterSubtrees",20),_d=new sn(xo,"AlignmentCenterChildren",21),Yu=new sn(xo,"AlignmentStart",22),Xu=new sn(xo,"AlignmentEnd",23),Zh=new sn(xo,"AlignmentBus",24),Ku=new sn(xo,"AlignmentBusBranching",25),Uh=new sn(xo,"AlignmentTopLeftBus",26),fh=new sn(xo,"AlignmentBottomRightBus",27),jm=new sn(xo,"CompactionNone",30),T0=new sn(xo,"CompactionBlock",31),zm=new sn(xo,"StyleLayered",40),N1=new sn(xo,"StyleLastParents",41),k1=new sn(xo,"StyleAlternating",42),T1=new sn(xo,"StyleRootOnly",43),Rm=new sn(xo,"ArrangementVertical",50),O1=new sn(xo,"ArrangementHorizontal",51),Hm=new sn(xo,"ArrangementFixedRoots",52),j1=new sn(xo,"LayerIndividual",60),z1=new sn(xo,"LayerSiblings",61),Wm=new sn(xo,"LayerUniform",62);xo.className="TreeLayout",xo.PathDefault=Om,xo.PathDestination=Vu,xo.PathSource=qd,xo.SortingForwards=nf,xo.SortingReverse=b0,xo.SortingAscending=N0,xo.SortingDescending=k0,xo.AlignmentCenterSubtrees=of,xo.AlignmentCenterChildren=_d,xo.AlignmentStart=Yu,xo.AlignmentEnd=Xu,xo.AlignmentBus=Zh,xo.AlignmentBusBranching=Ku,xo.AlignmentTopLeftBus=Uh,xo.AlignmentBottomRightBus=fh,xo.CompactionNone=jm,xo.CompactionBlock=T0,xo.StyleLayered=zm,xo.StyleLastParents=N1,xo.StyleAlternating=k1,xo.StyleRootOnly=T1,xo.ArrangementVertical=Rm,xo.ArrangementHorizontal=O1,xo.ArrangementFixedRoots=Hm,xo.LayerIndividual=j1,xo.LayerSiblings=z1,xo.LayerUniform=Wm;function $d(a){dr.call(this,a)}Yt($d,dr),$d.prototype.createVertex=function(){return new Hl(this)},$d.prototype.createEdge=function(){return new rf(this)},$d.className="TreeNetwork";function Hl(a){ua.call(this,a),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new Ot(0,0),this.Da=new Nn(0,0),this.la=new Ot(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=nf,this.hd=o1,this.Kb=0,this.Jb=_d,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=T0,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=da,this.wr=!0,this.Dp=da}Yt(Hl,ua),Hl.prototype.copyInheritedPropertiesFrom=function(a){a!==null&&(this.nd=a.sorting,this.hd=a.comparer,this.Kb=a.angle,this.Jb=a.alignment,this.Uq=a.nodeIndent,this.Vq=a.nodeIndentPastParent,this.Wq=a.nodeSpacing,this.ie=a.layerSpacing,this.Aq=a.layerSpacingParentOverlap,this.Hp=a.compaction,this.Ap=a.breadthLimit,this.nr=a.rowSpacing,this.mr=a.rowIndent,this.Gp=a.commentSpacing,this.Fp=a.commentMargin,this.xr=a.setsPortSpot,this.dr=a.portSpot,this.wr=a.setsChildPortSpot,this.Dp=a.childPortSpot)},Vt.Object.defineProperties(Hl.prototype,{initialized:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},parent:{get:function(){return this.hb},set:function(a){this.hb!==a&&(this.hb=a)}},children:{get:function(){return this.u},set:function(a){if(this.u!==a){if(a!==null)for(var y=a.length,x=0;xxt.y+x.rowIndent&&(z=Math.min(z,Math.max(ft.y,z-y.computeNodeIndent(x))))):x.alignment===Yu?(z=E.top+b.y,b.y===0&&ft.yxt.x+x.rowIndent&&(z=Math.min(z,Math.max(ft.x,z-y.computeNodeIndent(x))))):x.alignment===Yu?(z=E.left+b.x,b.x===0&&ft.xxt.y+x.rowIndent&&(z=Math.min(z,Math.max(ft.y,z-y.computeNodeIndent(x))))):x.alignment===Yu?(z=E.top+b.y,b.y===0&&ft.yxt.x+x.rowIndent&&(z=Math.min(z,Math.max(ft.x,z-y.computeNodeIndent(x))))):x.alignment===Yu?(z=E.left+b.x,b.x===0&&ft.x>>6)+Oe(128|je&63):Oe(224|je>>>12&15)+Oe(128|je>>>6&63)+Oe(128|je&63)}else{var je=65536+(ge.charCodeAt(0)-55296)*1024+(ge.charCodeAt(1)-56320);return Oe(240|je>>>18&7)+Oe(128|je>>>12&63)+Oe(128|je>>>6&63)+Oe(128|je&63)}},Ce=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,xe=function(ge){return ge.replace(Ce,de)},ze=function(ge){var je=[0,2,1][ge.length%3],Je=ge.charCodeAt(0)<<16|(ge.length>1?ge.charCodeAt(1):0)<<8|(ge.length>2?ge.charCodeAt(2):0),Cn=[ve.charAt(Je>>>18),ve.charAt(Je>>>12&63),je>=2?"=":ve.charAt(Je>>>6&63),je>=1?"=":ve.charAt(Je&63)];return Cn.join("")},He=ae.btoa&&typeof ae.btoa=="function"?function(ge){return ae.btoa(ge)}:function(ge){if(ge.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return ge.replace(/[\s\S]{1,3}/g,ze)},Ft=function(ge){return He(xe(String(ge)))},nt=function(ge){return ge.replace(/[+\/]/g,function(je){return je=="+"?"-":"_"}).replace(/=/g,"")},et=function(ge,je){return je?nt(Ft(ge)):Ft(ge)},ct=function(ge){return et(ge,!0)},ut;ae.Uint8Array&&(ut=function(ge,je){for(var Je="",Cn=0,hn=ge.length;Cn>>18)+ve.charAt(Ye>>>12&63)+(typeof Fe!="undefined"?ve.charAt(Ye>>>6&63):"=")+(typeof Zt!="undefined"?ve.charAt(Ye&63):"=")}return je?nt(Je):Je});var pt=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,yt=function(ge){switch(ge.length){case 4:var je=(7&ge.charCodeAt(0))<<18|(63&ge.charCodeAt(1))<<12|(63&ge.charCodeAt(2))<<6|63&ge.charCodeAt(3),Je=je-65536;return Oe((Je>>>10)+55296)+Oe((Je&1023)+56320);case 3:return Oe((15&ge.charCodeAt(0))<<12|(63&ge.charCodeAt(1))<<6|63&ge.charCodeAt(2));default:return Oe((31&ge.charCodeAt(0))<<6|63&ge.charCodeAt(1))}},Pt=function(ge){return ge.replace(pt,yt)},bt=function(ge){var je=ge.length,Je=je%4,Cn=(je>0?qt[ge.charAt(0)]<<18:0)|(je>1?qt[ge.charAt(1)]<<12:0)|(je>2?qt[ge.charAt(2)]<<6:0)|(je>3?qt[ge.charAt(3)]:0),hn=[Oe(Cn>>>16),Oe(Cn>>>8&255),Oe(Cn&255)];return hn.length-=[0,0,2,1][Je],hn.join("")},Rt=ae.atob&&typeof ae.atob=="function"?function(ge){return ae.atob(ge)}:function(ge){return ge.replace(/\S{1,4}/g,bt)},Ut=function(ge){return Rt(String(ge).replace(/[^A-Za-z0-9\+\/]/g,""))},ee=function(ge){return Pt(Rt(ge))},re=function(ge){return String(ge).replace(/[-_]/g,function(je){return je=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},ie=function(ge){return ee(re(ge))},Me;ae.Uint8Array&&(Me=function(ge){return Uint8Array.from(Ut(re(ge)),function(je){return je.charCodeAt(0)})});var pe=function(){var ge=ae.Base64;return ae.Base64=$e,ge};if(ae.Base64={VERSION:fe,atob:Ut,btoa:He,fromBase64:ie,toBase64:et,utob:xe,encode:et,encodeURI:ct,btou:Pt,decode:ie,noConflict:pe,fromUint8Array:ut,toUint8Array:Me},typeof Object.defineProperty=="function"){var Le=function(ge){return{value:ge,enumerable:!1,writable:!0,configurable:!0}};ae.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Le(function(){return ie(this)})),Object.defineProperty(String.prototype,"toBase64",Le(function(ge){return et(this,ge)})),Object.defineProperty(String.prototype,"toBase64URI",Le(function(){return et(this,!0)}))}}return ae.Meteor&&(Base64=ae.Base64),un.exports?un.exports.Base64=ae.Base64:(ot=[],Tt=function(){return ae.Base64}.apply(Yn,ot),Tt!==void 0&&(un.exports=Tt)),{Base64:ae.Base64}})},7861:function(un,Yn,St){var ot=St(38710),Tt=function(fe){var ve=/[height|width]$/;return ve.test(fe)},ae=function(fe){var ve="",qt=Object.keys(fe);return qt.forEach(function(Oe,de){var Ce=fe[Oe];Oe=ot(Oe),Tt(Oe)&&typeof Ce=="number"&&(Ce=Ce+"px"),Ce===!0?ve+=Oe:Ce===!1?ve+="not "+Oe:ve+="("+Oe+": "+Ce+")",de0){ae(Qt),xe(Qt.length),(!$t||ne>0)&&!qt&&bn();return}else if(Fe{ae(Qt.slice(0,Fe+2)),xe(An=>An+2)},Ae>10?Math.max(500/(Ae/2),20):50);return()=>clearInterval(Gn)}else $t||bn()},[Kt,$t,ne,qt,Fe]),(0,St.useMemo)(()=>St.createElement("section",{className:`${ie.answer} fadeIn animated edu_md`},St.createElement(Ut.UG,{remarkPlugins:[Pe.Z,Ie.Z],rehypePlugins:[Le.Z,_e.Z],components:{code(he){var Qt=he,{node:Ae,inline:Gn,className:An,children:Se}=Qt,sn=vt(Qt,["node","inline","className","children"]);const wn=/language-(\w+)/.exec(An||""),Xn=String(Se).trim();return Gn||!wn?St.createElement("code",pt({className:An},sn),Se):St.createElement("code",{className:ie.codeCopy,"data-text":`\`\`\`${wn?wn[1]:""} ${Se} -\`\`\``},St.createElement(je.CopyToClipboard,{text:Xn,onCopy:()=>Ne.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},St.createElement("button",null,"\u590D\u5236")),St.createElement(Me.Z,pt({style:fe.Z,language:wn[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},sn),Xn))},img({node:he}){var Qt;const Ae=(Qt=he.properties)==null?void 0:Qt.src;return St.createElement(we.Z,{src:Ae,width:320,"data-text":Ae,onLoad:()=>qt&&setTimeout(()=>bn(),500)})}}},Re?ue:`${ue}__`)),[ue])}},19909:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{Z:function(){return me}});var St=Ft(59301),Ut=Ft(8591),Me=Ft(54580),_e=Ft(43418),fe=Ft(6848),je=Ft(92832),ie=Ft(3113),Ne=Ft(71418),we=Ft(64165),Le=Ft(14478),Pe=Ft(43428),Ie=Ft(38854),Ue=Ft(92310),Tt=Ft.n(Ue),et=Ft(43276),nt={reasoning:"reasoning___S0mKl",btn:"btn____CIJG",content:"content___CIAh9"},dt=Ft(59301),lt=(Sn,xn,yn)=>new Promise((Rn,ji)=>{var Qi=Ri=>{try{vo(yn.next(Ri))}catch(er){ji(er)}},Ti=Ri=>{try{vo(yn.throw(Ri))}catch(er){ji(er)}},vo=Ri=>Ri.done?Rn(Ri.value):Promise.resolve(Ri.value).then(Qi,Ti);vo((yn=yn.apply(Sn,xn)).next())}),vt=({value:Sn="",streamingStatus:xn,onFinish:yn,cancelIndex:Rn,time:ji,loading:Qi,loadAll:Ti})=>{const[vo,Ri]=(0,St.useState)(""),[er,As]=(0,St.useState)(!0),Or=(0,St.useRef)(Sn),jr=(0,St.useRef)(xn),gr=(0,St.useRef)(0),pr=(0,St.useRef)(null),[ps,Yr]=(0,St.useState)(!1),Xr=70;(0,St.useEffect)(()=>{jr.current=xn},[xn]),(0,St.useEffect)(()=>{Or.current=Sn},[Sn]),(0,St.useEffect)(()=>{if(!xn){Ri(Or.current);return}return Yr(!0),pr.current=setInterval(qi,Xr),()=>{clearInterval(pr.current)}},[]),(0,St.useEffect)(()=>{ps&&(Ri(Or.current),clearInterval(pr.current),Yr(!1),yn())},[Rn]);const qi=()=>lt(void 0,null,function*(){const Ct=Or.current[gr.current];Ct!==void 0?(Ri(Na=>Na+Ct),gr.current++,clearInterval(pr.current),pr.current=setInterval(qi,280/(Or.current.length-gr.current))):jr.current===!1&&(Ri(Or.current),clearInterval(pr.current),Yr(!1),yn())});return dt.createElement("div",{className:`${nt.reasoning} fadeIn animated`},dt.createElement("div",{className:nt.btn,onClick:()=>As(!er)},dt.createElement("i",{className:"iconfont icon-shendusikao"}),ji?dt.createElement("span",null,"\u5DF2\u6DF1\u5EA6\u601D\u8003\uFF08\u7528\u65F6 ",ji," \u79D2\uFF09"):dt.createElement("span",null,"\u601D\u8003\u4E2D..."),er?dt.createElement("b",{className:"iconfont icon-shouqi6"}):dt.createElement("b",{className:"iconfont icon-zhankai6"})),Qi&&dt.createElement(Ne.Z,{spinning:!0,className:"mt20"}),er&&!Qi&&dt.createElement("div",{className:nt.content},vo,ps?dt.createElement("span",{className:"aiBlink"},"__"):""))},Lt={select:"select___Kt_GE",box:"box___S5_ly",text:"text___dtZDv",itemWrap:"itemWrap___xmw7x",item:"item___io6Bx",active:"active___nHRTI"},At=Ft(81327),kt=Object.defineProperty,Kt=Object.getOwnPropertySymbols,$t=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,qt=(Sn,xn,yn)=>xn in Sn?kt(Sn,xn,{enumerable:!0,configurable:!0,writable:!0,value:yn}):Sn[xn]=yn,ue=(Sn,xn)=>{for(var yn in xn||(xn={}))$t.call(xn,yn)&&qt(Sn,yn,xn[yn]);if(Kt)for(var yn of Kt(xn))ne.call(xn,yn)&&qt(Sn,yn,xn[yn]);return Sn};const ae=Sn=>React.createElement("svg",ue({className:"logo1_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},Sn),React.createElement("path",{d:"M1019.407 620.8 891.834 397.781 946.49 293.12a29.099 29.099 0 0 0 6.4-36.395l-70.187-126.592a30.08 30.08 0 0 0-24.576-13.653H597.519L539.194 14.507a27.35 27.35 0 0 0-20.907-14.55H380.644a29.141 29.141 0 0 0-24.618 14.55v5.546L225.806 243.03H100.923a29.184 29.184 0 0 0-25.515 13.654L3.428 384.085a32.768 32.768 0 0 0 0 29.184L132.836 638.08 74.511 740.053a32.768 32.768 0 0 0 0 29.056l66.517 116.566a29.907 29.907 0 0 0 25.515 14.506H427.15l62.848 109.227A30.08 30.08 0 0 0 512.783 1024H660.41a29.141 29.141 0 0 0 24.576-14.55l128.469-224.853h114.773a31.915 31.915 0 0 0 24.662-15.445l66.474-117.419a28.16 28.16 0 0 0 0-30.976l.043.043zm-161.28 14.592L791.61 512.469 518.287 993.963l-74.752-122.88h-273.28l65.621-119.211h139.392L101.86 272.213h143.062L380.687 30.08l68.352 119.253-70.187 122.88H925.54l-69.205 121.942 137.6 241.194H858.17z",fill:"#605BEC"}),React.createElement("path",{d:"m499.983 699.307 174.379-274.731H324.708z",fill:"#605BEC"}));var Fe="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTEwMTkuNDA3IDYyMC44IDg5MS44MzQgMzk3Ljc4MSA5NDYuNDkgMjkzLjEyYTI5LjA5OSAyOS4wOTkgMCAwIDAgNi40LTM2LjM5NWwtNzAuMTg3LTEyNi41OTJhMzAuMDggMzAuMDggMCAwIDAtMjQuNTc2LTEzLjY1M0g1OTcuNTE5TDUzOS4xOTQgMTQuNTA3YTI3LjM1IDI3LjM1IDAgMCAwLTIwLjkwNy0xNC41NUgzODAuNjQ0YTI5LjE0MSAyOS4xNDEgMCAwIDAtMjQuNjE4IDE0LjU1djUuNTQ2TDIyNS44MDYgMjQzLjAzSDEwMC45MjNhMjkuMTg0IDI5LjE4NCAwIDAgMC0yNS41MTUgMTMuNjU0TDMuNDI4IDM4NC4wODVhMzIuNzY4IDMyLjc2OCAwIDAgMCAwIDI5LjE4NEwxMzIuODM2IDYzOC4wOCA3NC41MTEgNzQwLjA1M2EzMi43NjggMzIuNzY4IDAgMCAwIDAgMjkuMDU2bDY2LjUxNyAxMTYuNTY2YTI5LjkwNyAyOS45MDcgMCAwIDAgMjUuNTE1IDE0LjUwNkg0MjcuMTVsNjIuODQ4IDEwOS4yMjdBMzAuMDggMzAuMDggMCAwIDAgNTEyLjc4MyAxMDI0SDY2MC40MWEyOS4xNDEgMjkuMTQxIDAgMCAwIDI0LjU3Ni0xNC41NWwxMjguNDY5LTIyNC44NTNoMTE0Ljc3M2EzMS45MTUgMzEuOTE1IDAgMCAwIDI0LjY2Mi0xNS40NDVsNjYuNDc0LTExNy40MTlhMjguMTYgMjguMTYgMCAwIDAgMC0zMC45NzZsLjA0My4wNDN6bS0xNjEuMjggMTQuNTkyTDc5MS42MSA1MTIuNDY5IDUxOC4yODcgOTkzLjk2M2wtNzQuNzUyLTEyMi44OGgtMjczLjI4bDY1LjYyMS0xMTkuMjExaDEzOS4zOTJMMTAxLjg2IDI3Mi4yMTNoMTQzLjA2MkwzODAuNjg3IDMwLjA4bDY4LjM1MiAxMTkuMjUzLTcwLjE4NyAxMjIuODhIOTI1LjU0bC02OS4yMDUgMTIxLjk0MiAxMzcuNiAyNDEuMTk0SDg1OC4xN3oiIGZpbGw9IiM2MDVCRUMiLz48cGF0aCBkPSJtNDk5Ljk4MyA2OTkuMzA3IDE3NC4zNzktMjc0LjczMUgzMjQuNzA4eiIgZmlsbD0iIzYwNUJFQyIvPjwvc3ZnPg==",xe=Object.defineProperty,Re=Object.getOwnPropertySymbols,En=Object.prototype.hasOwnProperty,fn=Object.prototype.propertyIsEnumerable,bn=(Sn,xn,yn)=>xn in Sn?xe(Sn,xn,{enumerable:!0,configurable:!0,writable:!0,value:yn}):Sn[xn]=yn,cn=(Sn,xn)=>{for(var yn in xn||(xn={}))En.call(xn,yn)&&bn(Sn,yn,xn[yn]);if(Re)for(var yn of Re(xn))fn.call(xn,yn)&&bn(Sn,yn,xn[yn]);return Sn};const he=Sn=>React.createElement("svg",cn({className:"logo2_svg__icon",viewBox:"0 0 1417 1024",xmlns:"http://www.w3.org/2000/svg",width:276.758,height:200},Sn),React.createElement("path",{d:"M1364.44 118.705c-14.178-6.695-20.322 6.065-28.593 12.525-2.914 2.048-5.277 4.726-7.64 7.246-20.717 21.268-44.899 35.21-76.643 33.556a152.576 152.576 0 0 0-120.674 45.371c-7.404-41.826-32.06-66.875-69.553-82.865-19.693-8.35-39.543-16.7-53.248-34.737-9.61-12.919-12.288-27.333-17.015-41.512-3.15-8.507-6.144-17.25-16.384-18.668-11.185-1.733-15.517 7.247-19.928 14.73a189.125 189.125 0 0 0-23.552 98.461c1.575 76.88 35.446 138.083 102.636 181.642 7.562 4.963 9.531 9.925 7.09 17.25-4.49 14.967-9.926 29.54-14.81 44.584-2.992 9.61-7.561 11.658-18.274 7.483a309.484 309.484 0 0 1-96.886-63.015c-47.813-44.426-91.057-93.342-144.935-131.702a635.825 635.825 0 0 0-38.36-25.207c-54.982-51.2 7.167-93.262 21.582-98.225 14.966-5.199 5.277-23.158-43.402-22.922-48.68.237-93.184 15.833-149.977 36.628-8.428 3.15-17.092 5.514-25.993 7.326a557.844 557.844 0 0 0-160.768-5.436c-105.157 11.264-189.204 58.92-250.96 140.367-74.2 97.832-91.687 208.975-70.261 325.002 22.449 122.25 87.434 223.468 187.47 302.631 103.582 82 222.917 122.172 359.188 114.452 82.708-4.568 174.79-15.202 278.686-99.485 26.151 12.445 53.642 17.486 99.249 21.267 35.131 3.072 69.002-1.733 95.153-6.931 40.96-8.35 38.203-44.741 23.316-51.437-120.202-53.72-93.814-31.822-117.839-49.624 61.125-69.317 153.206-141.312 189.204-374.706 2.835-18.51.472-30.168 0-45.213-.237-9.137 1.969-12.603 12.918-13.706a240.089 240.089 0 0 0 86.173-25.442c77.982-40.803 109.332-107.914 116.736-188.259 1.103-12.288-.236-24.97-13.705-31.429zM685.45 842.043C569.108 754.215 512.55 725.307 489.157 726.49c-21.82 1.26-17.96 25.206-13.155 40.802 5.042 15.439 11.58 26.073 20.717 39.621 6.301 8.9 10.791 22.213-6.302 32.295-37.494 22.213-102.794-7.561-105.787-8.98-76.012-42.929-139.421-99.564-184.241-176.994a523.894 523.894 0 0 1-72.468-239.93c-1.024-20.56 5.278-27.885 26.703-31.587a272.148 272.148 0 0 1 85.307-2.127c118.942 16.699 220.16 67.741 305.073 148.48 48.443 46.001 85.071 100.982 122.88 154.703 40.173 57.029 83.338 111.458 138.32 155.963 19.376 15.675 34.894 27.569 49.781 36.234-44.74 4.805-119.414 5.829-170.456-32.926zm55.926-344.615c0-5.357 2.757-10.398 7.326-13.47a17.723 17.723 0 0 1 22.134 2.048c3.072 2.915 4.805 7.09 4.805 11.422a16.778 16.778 0 0 1-17.25 16.541 17.33 17.33 0 0 1-12.131-4.883 15.911 15.911 0 0 1-4.884-11.658zm173.529 85.464a104.37 104.37 0 0 1-33.005 8.586 71.444 71.444 0 0 1-44.504-13.548c-15.282-12.288-26.23-19.141-30.72-40.645a89.167 89.167 0 0 1 .787-31.429c3.939-17.487-.393-28.75-13.312-38.912-10.476-8.35-23.71-10.634-38.36-10.634a32.06 32.06 0 0 1-14.179-4.175c-6.144-2.914-11.106-10.24-6.301-19.14a60.18 60.18 0 0 1 10.712-11.265c19.85-10.79 42.693-7.246 63.882.788 19.693 7.798 34.501 21.898 55.926 41.905 21.74 24.183 25.68 30.8 38.125 48.916 9.846 14.179 18.747 28.75 24.89 45.45 3.703 10.397-1.102 18.905-13.941 24.103z",fill:"#4D6BFE"}));var Qt="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDE0MTcgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjc2Ljc1OCIgaGVpZ2h0PSIyMDAiPjxwYXRoIGQ9Ik0xMzY0LjQ0IDExOC43MDVjLTE0LjE3OC02LjY5NS0yMC4zMjIgNi4wNjUtMjguNTkzIDEyLjUyNS0yLjkxNCAyLjA0OC01LjI3NyA0LjcyNi03LjY0IDcuMjQ2LTIwLjcxNyAyMS4yNjgtNDQuODk5IDM1LjIxLTc2LjY0MyAzMy41NTZhMTUyLjU3NiAxNTIuNTc2IDAgMCAwLTEyMC42N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S00LjE3NWMtNi4xNDQtMi45MTQtMTEuMTA2LTEwLjI0LTYuMzAxLTE5LjE0YTYwLjE4IDYwLjE4IDAgMCAxIDEwLjcxMi0xMS4yNjVjMTkuODUtMTAuNzkgNDIuNjkzLTcuMjQ2IDYzLjg4Mi43ODggMTkuNjkzIDcuNzk4IDM0LjUwMSAyMS44OTggNTUuOTI2IDQxLjkwNSAyMS43NCAyNC4xODMgMjUuNjggMzAuOCAzOC4xMjUgNDguOTE2IDkuODQ2IDE0LjE3OSAxOC43NDcgMjguNzUgMjQuODkgNDUuNDUgMy43MDMgMTAuMzk3LTEuMTAyIDE4LjkwNS0xMy45NDEgMjQuMTAzeiIgZmlsbD0iIzRENkJGRSIvPjwvc3ZnPg==",Ae=Ft(59301),An=({value:Sn,onChange:xn})=>{const[yn,Rn]=(0,St.useState)(!1),ji=[{name:"\u901A\u4E49\u5343\u95EE",key:"qwen-max",img:Fe},{name:"DeepSeek R1-671B",key:"deepseek-r1",img:Qt}],Qi=ji.find(Ti=>Ti.key===Sn);return Ae.createElement("div",{className:Lt.select},Ae.createElement(At.Z,{size:10},Ae.createElement("span",{className:"c-grey-333 font16"},"\u6A21\u578B"),Ae.createElement("div",{className:Lt.box,onMouseLeave:()=>Rn(!1)},Ae.createElement("div",{className:Lt.text,onClick:()=>Rn(!0)},Ae.createElement("img",{src:Qi.img,width:20}),Ae.createElement("span",null,Qi.name),Ae.createElement("b",{className:"iconfont icon-zhankai6"})),yn&&Ae.createElement("div",{className:Lt.itemWrap},Ae.createElement("aside",null,ji.map(Ti=>Ae.createElement("div",{key:Ti.key,className:`${Lt.item} ${Ti.key===Sn?Lt.active:""}`,onClick:vo=>{vo.stopPropagation(),xn(Ti.key),Rn(!1)}},Ae.createElement("img",{src:Ti.img,width:20}),Ae.createElement("span",null,Ti.name))))))))},Se={loadingPic:"loadingPic___y2kKZ",loading:"loading___UEUk1",dot:"dot___TYXFV","dot-fade":"dot-fade___KWn1a",wrap:"wrap___nU3cS",chatContainer:"chatContainer___PNe3Q",footerContainer:"footerContainer___hQATV",btnWrp:"btnWrp___mS8l6",btn:"btn___3za5U",btnActive:"btnActive____jzfb",inputContainer:"inputContainer___iCQ3u",uploadBtn:"uploadBtn___OHHJF",sendBtn:"sendBtn___ktaQl",sendBtnDisabled:"sendBtnDisabled___DVncF",cancelBtn:"cancelBtn___bzMDI",lineFour:"lineFour___Lhbz5",fullIcon:"fullIcon___YWXTV",footerContainerSelected:"footerContainerSelected___pGBh3",full:"full___dZLXo",li:"li___PjMV3",avatarIcon:"avatarIcon___ztGQ3",img:"img___wZqEA",content:"content___OlYYG",borderBox:"borderBox___tjHwt",text:"text___yWTCV",fileWrap:"fileWrap___IX778",file:"file___fxAKb",fileName:"fileName___RA8nu",source:"source___nkLC0",action:"action___I2zGy",disabledInput:"disabledInput___Buork",backBottom:"backBottom___SMuL2",head:"head___v8Eom",headBtn:"headBtn___IS7xR",menuWarp:"menuWarp___G6yj0",menu:"menu___M8VWP",menuText:"menuText___gRpb5",menuDel:"menuDel___eH_wg",active:"active___KWwPV"},sn=Ft(99064),wn=Ft(955),Xn={draggableImage:"draggableImage___vcTso",img:"img___xAyno",close:"close___WUtfj"},ii=({src:Sn,onClick:xn,topPercentage:yn=.62,draggableExtraNode:Rn})=>{const ji=(0,St.useRef)(null),Qi=(0,St.useRef)(!1),Ti=(0,St.useRef)(!1),[vo,Ri]=(0,St.useState)(window.innerHeight*yn),[er,As]=(0,St.useState)(!1),Or=10;return(0,St.useEffect)(()=>{if(ji.current){let jr=function(Xr){var qi;Qi.current=!0,Yr=Xr.pageY,ps=Xr.pageY-(((qi=ji.current)==null?void 0:qi.getBoundingClientRect().top)||0),(0,wn.kk)("none"),document.onselectstart=function(){return!1}},gr=function(){Qi.current&&!Ti.current&&xn&&xn(),Qi.current=!1,Ti.current=!1,(0,wn.kk)("auto"),document.onselectstart=null},pr=function(Xr){var qi;if(Qi.current){const Na=Xr.pageY-ps,mr=window.innerHeight-(((qi=ji.current)==null?void 0:qi.offsetHeight)||0)-50,Ra=50;if(!Ti.current&&Math.abs(Yr-Xr.pageY)>Or&&(Ti.current=!0),Ti.current){let za=Math.max(Ra,Math.min(Na,mr));Ri(za)}}},ps=0,Yr=0;return ji.current.addEventListener("mousedown",jr),document.addEventListener("mousemove",pr),document.addEventListener("mouseup",gr),()=>{var Xr,qi;(qi=(Xr=ji==null?void 0:ji.current)==null?void 0:Xr.removeEventListener)==null||qi.call(Xr,"mousedown",jr),document.removeEventListener("mousemove",pr),document.removeEventListener("mouseup",gr)}}},[xn]),(0,St.useEffect)(()=>{const jr=()=>{Ri(window.innerHeight*yn)};return window.addEventListener("resize",jr),()=>{window.removeEventListener("resize",jr)}},[yn]),St.createElement("div",{className:Xn.draggableImage,style:{top:`${vo}px`,display:er?"none":"block",cursor:Qi.current?"grabbing":"grab"},ref:ji},Rn,St.createElement("img",{className:Xn.img,src:Sn,width:60,draggable:"false"}),St.createElement("i",{className:`iconfont icon-tupianguanbi ${Xn.close}`,onMouseUp:jr=>{jr.stopPropagation(),As(!0)}}))},re="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAIABJREFUeF6VnQmAnGV9/z/vMffeV3azuRMCSUgCSQggiCBFEE9UvFpqW6utFopa71bx6GHRWq31xKtSFS0eqICV+wwSIJKQkDvZJJvsObOzO/d7PH9/z/O+s5sY2/4XhpmdnXln3u/7/f1+39/xPFj8H39Wr742GRaOXaYs65WWnVhtuc58y7Lmh4oWZYFv2fpIgdxZFtg2oZMgdByU7eA7Npbt6L958rttUXMsQtsCyyawLEI5gC0HMMcCpf8193ILIVT6ZoUhlgqxw5BEoLAD87ulAuxQkZC/h4ogDHBCX79eXivHsfShQizkOJQsFR63FMdVGO6yHfWz1s4FD+za9V+N/ws01v/2otVLzuv36tZHwfpDlN1m2w6W62LLiVpyLhahpQixNRiBxkPAE+BcQtvRj+Veyd8dG99x8CyLIOESuC4qlPcJ6BH48lgOHo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WT3bZM7y1azt3ki/gjJC0RysYIa059LeGaeqJJ94Ii6H9Kv8NNcovk+uKXvqF8un/N/+CcBu5N24Yb8H9pfF6XOW1M+bUtNYP6yoIGRccPphjBrZT7dBcosjtC2PsnRBnNUNDdiik5I+BeREQnpsMZm2VQt7vcR+PRoJPC1mtc2/mZv///ojj90punz2WfN/nntvQHFezmRXpPcdP3bIqIL8whGWF6xc+04oL7kqQ2Pfpu5omAZThNY6GWuV4waWOp6xcGg0UDPtuWn/lj/j+X+Lbso4jJUfOwAAAABJRU5ErkJggg==",qn=Ft(3294),ni=Ft(56102),Hi=Ft(24544),Jo=Ft(58617),pn=Ft(32050),Pn=Object.defineProperty,ti=Object.defineProperties,gn=Object.getOwnPropertyDescriptors,Bn=Object.getOwnPropertySymbols,zn=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,Mt=(Sn,xn,yn)=>xn in Sn?Pn(Sn,xn,{enumerable:!0,configurable:!0,writable:!0,value:yn}):Sn[xn]=yn,xt=(Sn,xn)=>{for(var yn in xn||(xn={}))zn.call(xn,yn)&&Mt(Sn,yn,xn[yn]);if(Bn)for(var yn of Bn(xn))jt.call(xn,yn)&&Mt(Sn,yn,xn[yn]);return Sn},Bt=(Sn,xn)=>ti(Sn,gn(xn)),Zt=(Sn,xn,yn)=>new Promise((Rn,ji)=>{var Qi=Ri=>{try{vo(yn.next(Ri))}catch(er){ji(er)}},Ti=Ri=>{try{vo(yn.throw(Ri))}catch(er){ji(er)}},vo=Ri=>Ri.done?Rn(Ri.value):Promise.resolve(Ri.value).then(Qi,Ti);vo((yn=yn.apply(Sn,xn)).next())}),me=({title:Sn="\u5934\u6B4CAI",placeholder:xn,hideUpload:yn,hideInputBox:Rn,aiIcon:ji=re,userIcon:Qi=Dn,dragIcon:Ti=Zn,children:vo,fetchUrl:Ri,fetchData:er={},extraAnswerAction:As,showDefaultTips:Or=!0,onOpen:jr,onClose:gr,loadingOption:pr,showPreference:ps=!1,initMessage:Yr,customRequest:Xr,visible:qi,width:Ct=1200,isCheckRestrictNumber:Na=!1,headNode:mr,headFunctionNode:Ra,showRedraw:za,showEdit:da,promptPropName:Xa="prompt",topPercentage:ei,showSwitchingModel:ai=!1,showImageGenerator:Ee=!1,showLookHistory:pe=!1,fetchListObject:ve,customPreference:Wn,customDataNode:On,showAddSession:Kn,historyId:Ge,draggableExtraNode:Tn,drawerExtraNode:Si,menuExtraFunctionNode:ui,showSceneAwareness:ao=!1})=>{var oe,mn;const[li,eo]=(0,St.useState)(!1),[De,dn]=(0,St.useState)("qwen-max"),[ro,Uo]=(0,St.useState)([]),[Vo,Ii]=(0,St.useState)([]),[Fi,Pi]=(0,St.useState)(!1),[Wo,br]=(0,St.useState)(!1),[wr,$e]=(0,St.useState)(!1),[vr,ur]=(0,St.useState)([]),[ko,Ye]=(0,St.useState)(""),[Yn,Ci]=(0,St.useState)(0),[Bi,Ai]=(0,St.useState)(void 0),[wo,nr]=(0,St.useState)(!1),[Ro,Do]=(0,St.useState)(null),[hr,on]=(0,St.useState)(""),Zo=(0,St.useRef)(),en=(0,St.useRef)(null),Ko=(0,St.useRef)(null),[ia,os]=(0,St.useState)(!1),[Sa,Jr]=(0,St.useState)(!1),[Ao,Pr]=(0,St.useState)(!1),[Ja,ws]=(0,St.useState)(!1),[oi,Wt]=(0,St.useState)(0),Js=(0,St.useRef)(null),ca=(0,St.useRef)(!1),Mu=(0,St.useRef)(null),[_a,lu]=(0,St.useState)(void 0),[$u,ad]=(0,St.useState)(!0),[Ih,Tr]=(0,St.useState)(Ct-28),[_r,gl]=(0,St.useState)(!1),[Ki,Mi]=(0,St.useState)(!0),[un,zi]=(0,St.useState)([]),No=(0,St.useRef)([]),Rr=(0,St.useRef)(null),rs=(0,St.useRef)(null),qr=(0,St.useRef)(!1),vi=Ih-22,cs=ko==null?void 0:ko.split(` -`).length,{onAdd:fl,onGetList:Ea,onListClick:uu,onListDelete:ke,onListDealData:oa}=ve||{},pl=50,Tl=10,th={maxCount:pl,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:ro,multiple:!0,accept:".doc,.docx,.md,.txt,.pdf,.xlsx,.xls",beforeUpload:qe=>Zt(void 0,null,function*(){var Li,Wi,ho,_i;const Ui=(_i=(ho=(Wi=(Li=qe==null?void 0:qe.name)==null?void 0:Li.split("."))==null?void 0:Wi.slice(-1))==null?void 0:ho[0])==null?void 0:_i.toLowerCase(),Qo=["doc","docx","md","pdf","txt","xlsx","xls"].includes(Ui);return qe.size==0?(Ut.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),Me.default.LIST_IGNORE):Qo?qe.size/1024/1024>100?(Ut.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u5236100MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Me.default.LIST_IGNORE):!0:(Ut.ZP.warning("\u76EE\u524D\u652F\u6301txt\u3001md\u3001doc\u3001docx\u3001pdf\u3001xlsx\u3001xls\u6587\u4EF6"),Me.default.LIST_IGNORE)}),onChange:({fileList:qe})=>{Uo(qe)},action:`${(oe=qn.Z)==null?void 0:oe.API_SERVER}/api/intelligent_imports/upload_file.json`},ss={maxCount:Tl,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:Vo,multiple:!0,accept:".jpg,.png,",beforeUpload:qe=>{var Li,Wi,ho,_i;const Ui=(_i=(ho=(Wi=(Li=qe==null?void 0:qe.name)==null?void 0:Li.split("."))==null?void 0:Wi.slice(-1))==null?void 0:ho[0])==null?void 0:_i.toLowerCase(),Qo=["jpg","png"].includes(Ui);return qe.size==0?(Ut.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),Me.default.LIST_IGNORE):Qo?qe.size/1024/1024>10?(Ut.ZP.warning("\u4E0A\u4F20\u7684\u56FE\u7247\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Me.default.LIST_IGNORE):!0:(Ut.ZP.warning("\u76EE\u524D\u652F\u6301jpg\u3001png"),Me.default.LIST_IGNORE)},onChange:({fileList:qe})=>{Ii(qe)},action:`${(mn=qn.Z)==null?void 0:mn.API_SERVER}/api/ai/generals/update_file.json`};(0,St.useEffect)(()=>{if(!vr.length||!Zo.current)return;const qe=vr[vr.length-1];qe!=null&&qe.loading&&(Zo.current.scrollTop=Zo.current.scrollHeight)},[vr.length]),(0,St.useEffect)(()=>{if(!Zo.current||!Js.current)return;const qe=new IntersectionObserver(([Li])=>{ad(Li.isIntersecting)},{root:Zo.current,rootMargin:"70px",threshold:0});return qe.observe(Js.current),()=>{Js.current&&qe.unobserve(Js.current)}},[Zo.current,Js.current]),(0,St.useEffect)(()=>{if(!ia)return;const qe=Zo.current,Li=Mu.current;ca.current=!1;let Wi=qe.scrollTop;const ho=()=>{const{scrollTop:Ui,scrollHeight:sr,clientHeight:Qo}=qe;Ui>Wi?Ui+Qo>=sr-50&&(qe.scrollTop=qe.scrollHeight,ca.current=!1):Ui{ca.current||(qe.scrollTop=qe.scrollHeight)});return _i.observe(Li),()=>{var Ui;_i.unobserve(Li),(Ui=qe==null?void 0:qe.removeEventListener)==null||Ui.call(qe,"scroll",ho)}},[ia]),(0,St.useEffect)(()=>{!ia&&No.current.length&&(ur([...vr,...No.current]),No.current=[])},[ia]),(0,St.useEffect)(()=>{if(!Zo.current)return;const qe=new ResizeObserver(()=>{Tr(Zo.current.offsetWidth)});return qe.observe(Zo.current),()=>{Zo.current&&qe.unobserve(Zo.current)}},[Zo.current]),(0,St.useEffect)(()=>{typeof qi=="boolean"&&eo(qi)},[qi]),(0,St.useEffect)(()=>{var qe;if(en.current&&Ro!==null){en.current.focus();const Li=(qe=en.current.resizableTextArea)==null?void 0:qe.textArea;Li&&(Li.selectionStart=Li.selectionEnd=Li.value.length)}},[Ro]),(0,St.useEffect)(()=>{cs<5&&nr(!1)},[cs]),(0,St.useEffect)(()=>{li&&Yr&&(ur(Vl(Yr)),Pi(!0),gi(Yr,{history:[]})),li&&(xa(),Ge?Fo(Ge):Kn&&!_a&&Be()),li||Zl()},[li]);const Vl=(qe="",Li=[],Wi=[])=>{const ho=Date.now();return[{text:qe,key:ho,sender:"user",fileList:Li,imageList:Wi,show:!0},{loading:!0,key:ho,sender:"AI",show:!0,model:De,imageGenerator:Ao,thinkingEnabled:Sa}]},Zl=()=>{on(""),Do(null),Uo([]),Ii([]),Ye("")},Sr=()=>{if(jr){jr({chatData:vr,setChatData:ur,setLoading:Pi,getData:gi,renderChatItems:Vl,handleAdd:Be,identifier:_a});return}eo(!0)},Is=()=>{if(Mi(!0),gr){gr();return}eo(!1)},eh=()=>{nr(!wo)},xa=()=>Zt(void 0,null,function*(){if(!Na)return;const qe=yield(0,sn.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});(qe==null?void 0:qe.status)===0&&(qe==null?void 0:qe.total_number)!==-1&&(Ci((qe==null?void 0:qe.total_number)-(qe==null?void 0:qe.remaining_number)),Ai(qe==null?void 0:qe.total_number))}),ju=()=>{_e.default.info({title:"\u63D0\u793A",icon:null,okText:"\u6211\u77E5\u9053\u4E86",width:510,centered:!0,content:St.createElement("div",null,St.createElement("div",{style:{color:"#FA6400"}},"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),St.createElement("div",{className:"c-grey-333 mt5"},"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F\u7528",Bi,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))})},Os=qe=>qe.reduce((Wi,ho)=>{if(ho.sender==="user"){const _i=qe.find(Ui=>Ui.key===ho.key&&Ui.sender==="AI");_i&&(_i!=null&&_i.text)&&!(_i!=null&&_i.error)&&Wi.push({question:ho.text,answer:_i.text})}return Wi},[]),gi=(...qe)=>Zt(void 0,[...qe],function*(Li="",Wi={},ho=vr){if(Xr&&(yield Xr({mes:Li,setChatData:ur,fileList:ro,body:Wi,checkNum:xa,setLoading:Pi,bodyChatData:ho,setTyping:os,setImageGenerator:Pr,renderChatItems:Vl})),!Xr){const _i=ro==null?void 0:ro.map(Io=>{var Lr;return(Lr=Io==null?void 0:Io.response)==null?void 0:Lr.file_id}),Ui=Vo==null?void 0:Vo.map(Io=>{var Lr;return(Lr=Io==null?void 0:Io.response)==null?void 0:Lr.data}),sr=Wi.history||Os(ho),Qo=xt(xt({identifier:_a,response_mode:"streaming",model:De,scene_awareness:Ja,thinking_enabled:Sa,image_generator:Ao,file_ids:_i,image_list:Ui,history:sr,[Xa]:Li},er),Wi),io=Object.fromEntries(Object.entries(Qo).filter(([Io,Lr])=>Lr!==void 0));Ko.current=new Hi.Z(qn.Z.API_SERVER+Ri,io),yield new Promise((Io,Lr)=>{let so=null,ml=null;Ko.current.on("data",Ql=>{os(!0);const{chunk:{content:Vr,type:ka,created:Zr,msg:_s}}=Ql,gs=_s==="error";ka==="thinking"&&(so=so||Zr,ur(oo=>[...oo].map((tr,Dr)=>Dr===oo.length-1?Bt(xt({},tr),{reasoning:(tr.reasoning||"")+Vr,loading:!1,hideAnswer:!0,error:gs}):tr))),ka==="text"&&(ml=ml||Zr,ur(oo=>[...oo].map((tr,Dr)=>Dr===oo.length-1?Bt(xt({},tr),{text:(tr.text||"")+Vr,loading:!1,startTime:so,endTime:ml,error:gs}):tr)))}),Ko.current.on("done",()=>{Io()}),Ko.current.on("error",()=>{const Ql="\u62B1\u6B49\uFF0C\u6211\u521A\u521A\u9047\u5230\u4E86\u4E00\u70B9\u95EE\u9898\uFF0C\u6CA1\u80FD\u5B8C\u6210\u60A8\u7684\u8BF7\u6C42\u3002\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\u4E00\u6B21\uFF0C\u6216\u8005\u8054\u7CFB\u6280\u672F\u652F\u6301\u5E2E\u5FD9\u89E3\u51B3!";ur(Vr=>[...Vr].map((ka,Zr)=>Zr===Vr.length-1?Bt(xt({},ka),{text:Ql,loading:!1,error:!0}):ka)),Io()}),Ko.current.on("cancelled",()=>{Io()}),Ko.current.startStream()})}xa(),Pi(!1)}),Kl=qe=>{Ye(qe.target.value)},Oh=(qe,Li)=>{if(Zl(),Pi(!0),qe==="edit"){No.current=vr.slice(Li+2);const Wi=vr.splice(Li),{fileList:ho,imageList:_i}=(Wi==null?void 0:Wi[0])||{},Ui=ho.map(io=>{var Io;return(Io=io.response)==null?void 0:Io.file_id}),sr=_i.map(io=>{var Io;return(Io=io.response)==null?void 0:Io.data}),Qo={history:Os(vr),file_ids:Ui,image_list:sr,edit:!0};ur([...vr,...Vl(hr,ho,_i)]),gi(hr,Qo,vr)}if(qe==="redraw"){No.current=vr.slice(Li+1);const Wi=vr.splice(Li-1),{text:ho,fileList:_i,imageList:Ui}=(Wi==null?void 0:Wi[0])||{},sr=_i.map(Io=>{var Lr;return(Lr=Io.response)==null?void 0:Lr.file_id}),Qo=Ui.map(Io=>{var Lr;return(Lr=Io.response)==null?void 0:Lr.data}),io={history:Os(vr),file_ids:sr,image_list:Qo,edit:!0};ur([...vr,...Vl(ho,_i,Ui)]),gi(ho,io,vr)}},Dl=()=>{if(ko.trim()!==""){Zl(),Pi(!0);const qe=ro.filter(Wi=>Wi.status==="done"),Li=Vo.filter(Wi=>Wi.status==="done");ur([...vr,...Vl(ko,qe,Li)]),gi(ko)}},ld=qe=>{if(qe.shiftKey){if(qe.key==="Enter")return}else if(qe.key==="Enter"){if(qe.preventDefault(),no||qr.current)return;Dl()}},ud=(qe,Li)=>{let Wi=!1;da===!0?Wi=!0:da==="last"&&(Wi=vr.reduce((sr,Qo,io)=>Qo.sender==="user"?io:sr,-1)===Li);const ho=Li===Ro,_i=[...(qe==null?void 0:qe.fileList)||[],...(qe==null?void 0:qe.imageList)||[]];return St.createElement("div",{className:Se.li,style:{width:vi}},St.createElement("div",{className:Se.avatarIcon},St.createElement("img",{className:Se.img,src:Qi})),St.createElement("div",{className:Se.content},!!(_i!=null&&_i.length)&&St.createElement("div",{className:Se.fileWrap},_i==null?void 0:_i.map((Ui,sr)=>{var Qo,io;return St.createElement("div",{key:sr,className:Se.file},St.createElement("img",{src:Ft(90034)(`./${((io=(Qo=Ui==null?void 0:Ui.name)==null?void 0:Qo.split("."))==null?void 0:io.pop())||"txt"}.png`),width:20,className:"mr10"}),St.createElement("aside",null,St.createElement(fe.Z,{title:Ui==null?void 0:Ui.name},St.createElement("div",{className:Se.fileName},Ui==null?void 0:Ui.name)),St.createElement("div",{className:"c-grey-999 font12"},(0,wn.RD)(Ui==null?void 0:Ui.size))))})),St.createElement("div",{className:Se.borderBox},ho?St.createElement(je.default.TextArea,{value:hr,ref:en,autoSize:!0,placeholder:"\u8BF7\u8F93\u5165",bordered:!1,onChange:Ui=>on(Ui.target.value)}):St.createElement("div",{className:Se.text},qe==null?void 0:qe.text)),ho?St.createElement("div",{className:Se.action},St.createElement(ie.ZP,{onClick:()=>{on(""),Do(null)},size:"small"},"\u53D6\u6D88"),St.createElement(ie.ZP,{disabled:!hr.trim(),onClick:()=>Oh("edit",Li),type:"primary",size:"small"},"\u786E\u8BA4")):St.createElement("div",{className:Se.action},St.createElement(ni.CopyToClipboard,{text:(qe==null?void 0:qe.text)||"",onCopy:()=>Ut.ZP.success("\u590D\u5236\u6210\u529F")},St.createElement(fe.Z,{title:"\u590D\u5236"},St.createElement("i",{className:"iconfont icon-fuzhi8 font13"}))),Wi&&!Fi&&St.createElement(fe.Z,{title:"\u7F16\u8F91"},St.createElement("i",{onClick:()=>{Do(Li),on((qe==null?void 0:qe.text)||"")},className:"iconfont icon-bianji10 font14"})))))},Qn=(qe,Li)=>{let Wi=!1;za===!0?Wi=!0:za==="last"&&(Wi=vr.reduce((Ui,sr,Qo)=>sr.sender==="AI"?Qo:Ui,-1)===Li);let ho="";return qe!=null&&qe.source?ho=qe==null?void 0:qe.source:(qe==null?void 0:qe.model)==="deepseek-r1"?ho="\u7531deepseek\u751F\u6210":(qe==null?void 0:qe.model)==="qwen-max"&&(ho="\u7531\u901A\u4E49\u5343\u95EE\u751F\u6210"),St.createElement("div",{className:Se.li,style:{width:vi}},St.createElement("div",{className:Se.avatarIcon},St.createElement("img",{className:Se.img,src:ji})),St.createElement("div",{className:Se.content},St.createElement("div",{className:Se.borderBox},qe.loading&&St.createElement(St.Fragment,null,qe!=null&&qe.imageGenerator?St.createElement("div",{className:Se.loadingPic},"\u6B63\u5728\u751F\u6210\u4E2D",St.createElement("div",{className:"ai-loading"})):!(qe!=null&&qe.thinkingEnabled)&&St.createElement("div",null,St.createElement("div",{className:Se.loading},St.createElement("div",{className:Se.dot}),St.createElement("div",{className:Se.dot}),St.createElement("div",{className:Se.dot})),St.createElement("div",{style:{marginTop:10,color:"#9096A3"}},(pr==null?void 0:pr.text)||"\u8BF7\u8010\u5FC3\u7B49\u5F85\uFF0C\u76EE\u524D\u9AD8\u5CF0\u671F\u4F53\u9A8C\u4EBA\u6570\u8FC7\u591A\uFF0C\u6211\u4EEC\u5DF2\u8BB0\u5F55\u4E0B\u60A8\u7684\u9700\u6C42\uFF0C\u7A0D\u540E\u5C06\u81EA\u52A8\u4E3A\u60A8\u751F\u6210\u7B54\u6848\u3002"))),(qe==null?void 0:qe.thinkingEnabled)&&St.createElement(vt,{time:qe==null?void 0:qe.time,cancelIndex:oi,loading:qe.loading,streamingStatus:!(qe!=null&&qe.text),onFinish:()=>{Wt(0),ur(_i=>[..._i].map((Ui,sr)=>sr===_i.length-1?Bt(xt({},Ui),{hideAnswer:!1,time:Ui.startTime?Ui.endTime-Ui.startTime:null}):Ui))},value:qe==null?void 0:qe.reasoning}),!!(qe!=null&&qe.text)&&!qe.hideAnswer&&St.createElement(et.Z,{cancelIndex:oi,streamingStatus:Fi,loadImage:!!(qe!=null&&qe.imageGenerator),onFinish:()=>Zt(void 0,null,function*(){Wt(0),setTimeout(()=>os(!1),0)}),value:qe==null?void 0:qe.text})),!!(qe!=null&&qe.text)&&ho&&St.createElement("div",{className:Se.source},ho),St.createElement("div",{className:Se.action},As==null?void 0:As(qe,Li,{onMenuClick:Fo}),St.createElement(ni.CopyToClipboard,{text:String((qe==null?void 0:qe.text)||""),onCopy:()=>Ut.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},St.createElement(fe.Z,{title:"\u590D\u5236"},St.createElement("i",{className:"iconfot icon-fuzhi8 font13"}))),ps&&!Fi&&St.createElement(St.Fragment,null,St.createElement(fe.Z,{title:"\u559C\u6B22"},St.createElement("i",{style:qe!=null&&qe.like?{color:"#FA8D30"}:{},onClick:()=>We("like",!(qe!=null&&qe.like),Li),className:"iconfot icon-yijiejue font15"})),St.createElement(fe.Z,{title:"\u4E0D\u559C\u6B22"},St.createElement("i",{style:qe!=null&&qe.dislike?{color:"#e86d7c"}:{},onClick:()=>We("dislike",!(qe!=null&&qe.dislike),Li),className:"iconfot icon-weijiejuezhengchang font15"}))),Wi&&!Fi&&St.createElement(fe.Z,{title:"\u91CD\u65B0\u751F\u6210"},St.createElement("i",{onClick:()=>Oh("redraw",Li),className:"iconfot icon-gengxin-genghuan-tihuan"})))))},We=(qe,Li,Wi)=>Zt(void 0,null,function*(){if(Wn){const ho=vr.slice(0,Wi+1),Ui=Os(ho).length;yield Wn({type:qe,value:Li,index:Wi,identifier:_a,objectIndex:Ui})}ur(ho=>(ho[Wi][qe]=Li,Li&&(ho[Wi][qe==="like"?"dislike":"like"]=!1),[...ho]))}),be=()=>{var qe,Li;Wt(1),(Li=(qe=Ko.current)==null?void 0:qe.cancelRequest)==null||Li.call(qe),Pi(!1),os(!1)},Be=()=>Zt(void 0,null,function*(){var qe,Li,Wi;(Li=(qe=Ko.current)==null?void 0:qe.cancelRequest)==null||Li.call(qe),Zl(),ur([]),Pi(!0);const ho=yield fl();(ho==null?void 0:ho.status)===0&&lu((Wi=ho==null?void 0:ho.data)==null?void 0:Wi.identifier),Pi(!1),os(!1)}),ir=()=>Zt(void 0,null,function*(){var qe;$e(!0);const Li=yield Ea();(Li==null?void 0:Li.status)===0&&zi(((qe=Li==null?void 0:Li.data)==null?void 0:qe.list)||[]),$e(!1)}),Fo=(...qe)=>Zt(void 0,[...qe],function*(Li=_a){var Wi,ho,_i,Ui;(ho=(Wi=Ko.current)==null?void 0:Wi.cancelRequest)==null||ho.call(Wi),Zl(),br(!0);const sr=yield uu(Li);if(sr.status===0){const Qo=oa(((_i=sr==null?void 0:sr.data)==null?void 0:_i.messages)||[]);ur(Qo),br(!1),lu((Ui=sr==null?void 0:sr.data)==null?void 0:Ui.identifier);return}ur([]),br(!1)}),ri=(qe,Li)=>Zt(void 0,null,function*(){(yield ke(qe)).status===0&&(Ut.ZP.success("\u5220\u9664\u6210\u529F"),Li===_a&&Be(),ir())}),Ur=()=>St.createElement("div",{className:Se.menuWarp},St.createElement("h4",null,"\u5386\u53F2\u5BF9\u8BDD"),St.createElement(Ne.Z,{spinning:wr},!un.length&&St.createElement(we.Z,{style:{width:250,paddingBottom:30},image:we.Z.PRESENTED_IMAGE_SIMPLE}),!!un.length&&St.createElement("div",{className:Se.menu},un.map(function(qe,Li){return St.createElement("aside",{className:Tt()(_a===qe.identifier&&Se.active),key:qe.id,onClick:()=>Fo(qe.id)},St.createElement("div",{className:Se.menuText},St.createElement(fe.Z,{title:qe==null?void 0:qe.question},St.createElement("span",null,qe==null?void 0:qe.question)),ui&&ui(qe)),St.createElement("div",{className:Se.menuDel,onClick:Wi=>Wi.stopPropagation()},St.createElement(Le.Z,{title:"\u63D0\u793A",description:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u672C\u6761\u5BF9\u8BDD\u5417\uFF1F",onConfirm:()=>ri(qe.id,qe.identifier),okText:"\u786E\u8BA4",zIndex:1100,cancelText:"\u53D6\u6D88"},St.createElement("i",{className:"iconfont icon-shanchu14 delete-hover font14"}))))})))),Bo=qe=>{if(qe==="file"){if(Vo.length){_e.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4\u8986\u76D6",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5DF2\u5B58\u5728\u56FE\u7247\uFF0C\u4E0A\u4F20\u6587\u4EF6\u540E\u56FE\u7247\u5C06\u4F1A\u88AB\u8986\u76D6?",onOk:()=>{Ii([]),Rr.current.upload.uploader.fileInput.click()}});return}Rr.current.upload.uploader.fileInput.click()}if(qe==="image"){if(ro.length){_e.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4\u8986\u76D6",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5DF2\u5B58\u5728\u6587\u4EF6\uFF0C\u4E0A\u4F20\u56FE\u7247\u540E\u6587\u4EF6\u5C06\u4F1A\u88AB\u8986\u76D6?",onOk:()=>{Uo([]),rs.current.upload.uploader.fileInput.click()}});return}rs.current.upload.uploader.fileInput.click()}},yi=[{key:"file",disabled:ro.length>=pl,label:St.createElement(fe.Z,{placement:"right",title:St.createElement("div",null,St.createElement("b",null,"\u4E0A\u4F20\u9644\u4EF6\uFF08\u4EC5\u8BC6\u522B\u6587\u5B57\uFF09"),St.createElement("div",null,"\u6700\u591A 50 \u4E2A\uFF0C\u6BCF\u4E2A 100 MB\uFF0C\u652F\u6301\u5404\u7C7B\u578B\u6587\u6863"))},St.createElement("span",null,St.createElement("i",{className:"iconfont icon-fujian3 font14 mr5"}),"\u4E0A\u4F20\u6587\u6863"))},De!=="deepseek-r1"&&{key:"image",disabled:Vo.length>=Tl,label:St.createElement(fe.Z,{placement:"right",title:"\u652F\u6301\u4E0D\u8D85\u8FC710M\u7684PNG/JPG\u56FE\u7247\uFF0C\u6700\u591A10\u4E2A"},St.createElement("span",null,St.createElement("i",{className:"iconfont icon-tupianshangchuan font14 mr5"}),"\u4E0A\u4F20\u56FE\u7247"))}].filter(Boolean),$i=[...ro,...Vo],no=$i.some(qe=>qe.status==="uploading")||Fi||ia,ga=Yn>=Bi,$r=yn||ro.length>=pl||Vo.length>=Tl,Mo=Ao||Sa||Ja||!!$i.length;return console.log($i,"fileAndImageList"),St.createElement("div",null,vo?St.createElement("div",{onClick:Sr},vo):St.createElement(ii,{draggableExtraNode:Tn,src:Ti,onClick:Sr,topPercentage:ei}),St.createElement(Pe.Z,{open:li,width:_r?"100%":Ct,afterOpenChange:qe=>{qe&&Mi(!1)},push:!1,contentWrapperStyle:Ki?{}:{transition:"none"},extra:St.createElement("div",{className:Se.head},Si,ai&&St.createElement(An,{value:De,onChange:qe=>{Jr(!1),Pr(!1),dn(qe),Ii([]),Uo([])}}),pe&&St.createElement(St.Fragment,null,St.createElement(Ie.Z,{dropdownRender:Ur,onOpenChange:qe=>{qe&&ir()},placement:"bottomLeft",arrow:!0},St.createElement("div",{className:Se.headBtn},St.createElement("i",{className:"icon-lishiduihua1 font14 mr10"}),"\u5386\u53F2\u5BF9\u8BDD"))),Kn&&St.createElement(St.Fragment,null,St.createElement("div",{className:Se.headBtn,onClick:Be},St.createElement("i",{className:"icon-xinjianduihua font14 mr10"}),"\u65B0\u5EFA\u5BF9\u8BDD")),St.createElement(fe.Z,{title:_r?"\u9000\u51FA\u5168\u5C4F":"\u5168\u5C4F"},St.createElement("div",{className:Se.headBtn,style:{padding:"0 12px"},onClick:()=>gl(!_r)},_r&&St.createElement("i",{className:"iconfont icon-tuichuquanping3"}),!_r&&St.createElement("i",{className:"iconfont icon-quanping4"})))),title:St.createElement("span",{className:"c-grey-333 font16"},Sn),onClose:Is,bodyStyle:{paddingRight:4}},St.createElement("div",{className:Tt()(Se.wrap,li&&"body-overflow-hidden")},St.createElement("div",{ref:Zo,className:Se.chatContainer},Or&&St.createElement("div",{className:`${Se.li} mb20`,style:{width:vi}},St.createElement("div",{className:Se.avatarIcon},St.createElement("img",{className:Se.img,src:ji})),St.createElement("div",{className:Se.content},St.createElement("div",{className:Se.borderBox},mr,Ra==null?void 0:Ra({isDisabledNum:ga,checkNumModal:ju,checkNum:xa,onClose:Is,setChatData:ur,setLoading:Pi,getData:gi,clearStatus:Zl,typing:ia,setImageGenerator:Pr,renderChatItems:Vl,setSceneAwareness:ws})))),St.createElement("div",{ref:Mu},St.createElement(Ne.Z,{spinning:Wo,className:"mt20"},vr==null?void 0:vr.map((qe,Li)=>St.createElement(St.Fragment,{key:qe.key+Li},qe.show&&St.createElement(St.Fragment,null,qe.sender==="user"&&ud(qe,Li),qe.sender==="AI"&&Qn(qe,Li),On&&!["AI","user"].includes(qe.sender)&&On(qe,Li,{width:vi})))))),!$u&&St.createElement("div",{className:Se.backBottom,onClick:()=>{Zo.current.scrollTop=Zo.current.scrollHeight}},St.createElement("i",{className:"iconfont icon-huidaodibu"})),St.createElement("div",{ref:Js})),!Rn&&St.createElement("div",{className:Tt()(Se.footerContainer,wo&&Se.full,Mo&&Se.footerContainerSelected)},St.createElement("div",{className:Se.btnWrp},ao&&St.createElement(fe.Z,{title:"\u667A\u80FD\u611F\u77E5\u5F53\u524D\u60C5\u5883\uFF0C\u63D0\u4F9B\u9488\u5BF9\u6027\u89E3\u7B54"},St.createElement("div",{onClick:()=>ws(!Ja),className:Tt()(Se.btn,Ja&&Se.btnActive)},St.createElement("i",{className:"iconfont icon-changjingganzhi mr10 font12"}),"\u573A\u666F\u611F\u77E5")),De==="deepseek-r1"&&St.createElement(fe.Z,{title:"\u8C03\u7528\u65B0\u6A21\u578B DeepSeek-R1\uFF0C\u89E3\u51B3\u63A8\u7406\u95EE\u9898"},St.createElement("div",{onClick:()=>Jr(!Sa),className:Tt()(Se.btn,Sa&&Se.btnActive)},St.createElement("i",{className:"iconfont icon-shendusikao mr10 font12"}),"\u6DF1\u5EA6\u601D\u8003\uFF08R1\uFF09")),Ee&&De==="qwen-max"&&St.createElement("div",{onClick:()=>Pr(!Ao),className:Tt()(Se.btn,Ao&&Se.btnActive)},St.createElement("i",{className:"iconfont icon-shangchuantupian2 mr10 font12"}),"\u56FE\u50CF\u751F\u6210"),$i.map(qe=>St.createElement("div",{key:qe.uid},(qe==null?void 0:qe.status)==="uploading"&&St.createElement(Ne.Z,{indicator:St.createElement(Jo.Z,{spin:!0}),className:"mr10",size:"small",spinning:!0}),St.createElement("span",{title:qe==null?void 0:qe.name,className:"mr10"},(0,wn.Pq)(qe.name,20)),St.createElement("i",{onClick:()=>{Uo(Li=>Li.filter(Wi=>Wi.uid!==qe.uid)),Ii(Li=>Li.filter(Wi=>Wi.uid!==qe.uid))},className:"iconfont current icon-shanchu15 delete-hover c-red-ee4 font12"})))),St.createElement(fe.Z,{title:ga&&St.createElement("div",null,St.createElement("div",null,"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),St.createElement("div",null,"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F",Bi,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))},St.createElement("div",{className:Tt()(Se.inputContainer,cs>4&&Se.lineFour,ga&&Se.disabledInput)},St.createElement(Me.default,xt({ref:Rr},th)),St.createElement(Me.default,xt({ref:rs},ss)),St.createElement(Ie.Z,{className:`${$r&&"hide"}`,menu:{items:yi,onClick:qe=>Bo(qe.key)},placement:"top"},St.createElement(ie.ZP,{className:Se.uploadBtn,icon:St.createElement(pn.Z,{style:{fontSize:18,color:"#FFF"}})})),St.createElement(je.default.TextArea,{rows:cs>4?4:cs,placeholder:xn||"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u95EE\u9898\u5427,Shift+Enter\u6362\u884C\uFF5E",value:ko,bordered:!1,style:$r?{paddingLeft:0,marginLeft:0}:{},onChange:Kl,onPressEnter:ld,onCompositionStart:()=>{qr.current=!0},onCompositionEnd:()=>{qr.current=!1}}),ia?St.createElement(fe.Z,{title:"\u505C\u6B62\u751F\u6210"},St.createElement("div",{className:`iconfont icon-tingzhihuida ${Se.cancelBtn}`,onClick:be})):St.createElement(ie.ZP,{className:(ko==null?void 0:ko.trim())===""?Se.sendBtnDisabled:Se.sendBtn,icon:St.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:no,onClick:Dl}),cs>4&&St.createElement("span",{className:Se.fullIcon,onClick:eh},wo&&St.createElement("span",{className:"iconfont icon-shousuo"}),!wo&&St.createElement("span",{className:"iconfont icon-zhankai"}))))))))}},16406:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{Z:function(){return zn}});var St=Ft(59301),Ut={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Me=Ft(92310),_e=Ft.n(Me),fe=Ft(71418);var je=function(jt,Mt){return(je=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(xt,Bt){xt.__proto__=Bt}||function(xt,Bt){for(var Zt in Bt)Object.prototype.hasOwnProperty.call(Bt,Zt)&&(xt[Zt]=Bt[Zt])})(jt,Mt)};function ie(jt,Mt){function xt(){this.constructor=jt}je(jt,Mt),jt.prototype=Mt===null?Object.create(Mt):(xt.prototype=Mt.prototype,new xt)}function Ne(jt,Mt,xt,Bt){return new(xt||(xt=Promise))(function(Zt,Nt){function me(yn){try{xn(Bt.next(yn))}catch(Rn){Nt(Rn)}}function Sn(yn){try{xn(Bt.throw(yn))}catch(Rn){Nt(Rn)}}function xn(yn){var Rn;yn.done?Zt(yn.value):(Rn=yn.value,Rn instanceof xt?Rn:new xt(function(ji){ji(Rn)})).then(me,Sn)}xn((Bt=Bt.apply(jt,Mt||[])).next())})}function we(jt,Mt){var xt,Bt,Zt,Nt,me={label:0,sent:function(){if(1&Zt[0])throw Zt[1];return Zt[1]},trys:[],ops:[]};return Nt={next:Sn(0),throw:Sn(1),return:Sn(2)},typeof Symbol=="function"&&(Nt[Symbol.iterator]=function(){return this}),Nt;function Sn(xn){return function(yn){return function(Rn){if(xt)throw new TypeError("Generator is already executing.");for(;me;)try{if(xt=1,Bt&&(Zt=2&Rn[0]?Bt.return:Rn[0]?Bt.throw||((Zt=Bt.return)&&Zt.call(Bt),0):Bt.next)&&!(Zt=Zt.call(Bt,Rn[1])).done)return Zt;switch(Bt=0,Zt&&(Rn=[2&Rn[0],Zt.value]),Rn[0]){case 0:case 1:Zt=Rn;break;case 4:return me.label++,{value:Rn[1],done:!1};case 5:me.label++,Bt=Rn[1],Rn=[0];continue;case 7:Rn=me.ops.pop(),me.trys.pop();continue;default:if(Zt=me.trys,!((Zt=Zt.length>0&&Zt[Zt.length-1])||Rn[0]!==6&&Rn[0]!==2)){me=0;continue}if(Rn[0]===3&&(!Zt||Rn[1]>Zt[0]&&Rn[1]Ne.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},St.createElement("button",null,"\u590D\u5236")),St.createElement(Me.Z,pt({style:fe.Z,language:wn[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},sn),Xn))},img({node:he}){var Qt;const Ae=(Qt=he.properties)==null?void 0:Qt.src;return St.createElement(we.Z,{src:Ae,width:320,"data-text":Ae,onLoad:()=>qt&&setTimeout(()=>bn(),500)})}}},Re?ue:`${ue}__`)),[ue])}},19909:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{Z:function(){return me}});var St=Ft(59301),Ut=Ft(8591),Me=Ft(54580),_e=Ft(43418),fe=Ft(6848),je=Ft(92832),ie=Ft(3113),Ne=Ft(71418),we=Ft(64165),Le=Ft(14478),Pe=Ft(43428),Ie=Ft(38854),Ue=Ft(92310),Tt=Ft.n(Ue),et=Ft(43276),nt={reasoning:"reasoning___S0mKl",btn:"btn____CIJG",content:"content___CIAh9"},dt=Ft(59301),lt=(Sn,xn,yn)=>new Promise((Rn,ji)=>{var Qi=Ri=>{try{vo(yn.next(Ri))}catch(er){ji(er)}},Ti=Ri=>{try{vo(yn.throw(Ri))}catch(er){ji(er)}},vo=Ri=>Ri.done?Rn(Ri.value):Promise.resolve(Ri.value).then(Qi,Ti);vo((yn=yn.apply(Sn,xn)).next())}),vt=({value:Sn="",streamingStatus:xn,onFinish:yn,cancelIndex:Rn,time:ji,loading:Qi,loadAll:Ti})=>{const[vo,Ri]=(0,St.useState)(""),[er,As]=(0,St.useState)(!0),Or=(0,St.useRef)(Sn),jr=(0,St.useRef)(xn),gr=(0,St.useRef)(0),pr=(0,St.useRef)(null),[ps,Yr]=(0,St.useState)(!1),Xr=70;(0,St.useEffect)(()=>{jr.current=xn},[xn]),(0,St.useEffect)(()=>{Or.current=Sn},[Sn]),(0,St.useEffect)(()=>{if(!xn){Ri(Or.current);return}return Yr(!0),pr.current=setInterval(qi,Xr),()=>{clearInterval(pr.current)}},[]),(0,St.useEffect)(()=>{ps&&(Ri(Or.current),clearInterval(pr.current),Yr(!1),yn())},[Rn]);const qi=()=>lt(void 0,null,function*(){const Ct=Or.current[gr.current];Ct!==void 0?(Ri(Na=>Na+Ct),gr.current++,clearInterval(pr.current),pr.current=setInterval(qi,280/(Or.current.length-gr.current))):jr.current===!1&&(Ri(Or.current),clearInterval(pr.current),Yr(!1),yn())});return dt.createElement("div",{className:`${nt.reasoning} fadeIn animated`},dt.createElement("div",{className:nt.btn,onClick:()=>As(!er)},dt.createElement("i",{className:"iconfont icon-shendusikao"}),ji?dt.createElement("span",null,"\u5DF2\u6DF1\u5EA6\u601D\u8003\uFF08\u7528\u65F6 ",ji," \u79D2\uFF09"):dt.createElement("span",null,"\u601D\u8003\u4E2D..."),er?dt.createElement("b",{className:"iconfont icon-shouqi6"}):dt.createElement("b",{className:"iconfont icon-zhankai6"})),Qi&&dt.createElement(Ne.Z,{spinning:!0,className:"mt20"}),er&&!Qi&&dt.createElement("div",{className:nt.content},vo,ps?dt.createElement("span",{className:"aiBlink"},"__"):""))},Lt={select:"select___Kt_GE",box:"box___S5_ly",text:"text___dtZDv",itemWrap:"itemWrap___xmw7x",item:"item___io6Bx",active:"active___nHRTI"},At=Ft(81327),kt=Object.defineProperty,Kt=Object.getOwnPropertySymbols,$t=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,qt=(Sn,xn,yn)=>xn in Sn?kt(Sn,xn,{enumerable:!0,configurable:!0,writable:!0,value:yn}):Sn[xn]=yn,ue=(Sn,xn)=>{for(var yn in xn||(xn={}))$t.call(xn,yn)&&qt(Sn,yn,xn[yn]);if(Kt)for(var yn of Kt(xn))ne.call(xn,yn)&&qt(Sn,yn,xn[yn]);return Sn};const ae=Sn=>React.createElement("svg",ue({className:"logo1_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},Sn),React.createElement("path",{d:"M1019.407 620.8 891.834 397.781 946.49 293.12a29.099 29.099 0 0 0 6.4-36.395l-70.187-126.592a30.08 30.08 0 0 0-24.576-13.653H597.519L539.194 14.507a27.35 27.35 0 0 0-20.907-14.55H380.644a29.141 29.141 0 0 0-24.618 14.55v5.546L225.806 243.03H100.923a29.184 29.184 0 0 0-25.515 13.654L3.428 384.085a32.768 32.768 0 0 0 0 29.184L132.836 638.08 74.511 740.053a32.768 32.768 0 0 0 0 29.056l66.517 116.566a29.907 29.907 0 0 0 25.515 14.506H427.15l62.848 109.227A30.08 30.08 0 0 0 512.783 1024H660.41a29.141 29.141 0 0 0 24.576-14.55l128.469-224.853h114.773a31.915 31.915 0 0 0 24.662-15.445l66.474-117.419a28.16 28.16 0 0 0 0-30.976l.043.043zm-161.28 14.592L791.61 512.469 518.287 993.963l-74.752-122.88h-273.28l65.621-119.211h139.392L101.86 272.213h143.062L380.687 30.08l68.352 119.253-70.187 122.88H925.54l-69.205 121.942 137.6 241.194H858.17z",fill:"#605BEC"}),React.createElement("path",{d:"m499.983 699.307 174.379-274.731H324.708z",fill:"#605BEC"}));var Fe="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTEwMTkuNDA3IDYyMC44IDg5MS44MzQgMzk3Ljc4MSA5NDYuNDkgMjkzLjEyYTI5LjA5OSAyOS4wOTkgMCAwIDAgNi40LTM2LjM5NWwtNzAuMTg3LTEyNi41OTJhMzAuMDggMzAuMDggMC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UgzMjQuNzA4eiIgZmlsbD0iIzYwNUJFQyIvPjwvc3ZnPg==",xe=Object.defineProperty,Re=Object.getOwnPropertySymbols,En=Object.prototype.hasOwnProperty,fn=Object.prototype.propertyIsEnumerable,bn=(Sn,xn,yn)=>xn in Sn?xe(Sn,xn,{enumerable:!0,configurable:!0,writable:!0,value:yn}):Sn[xn]=yn,cn=(Sn,xn)=>{for(var yn in xn||(xn={}))En.call(xn,yn)&&bn(Sn,yn,xn[yn]);if(Re)for(var yn of Re(xn))fn.call(xn,yn)&&bn(Sn,yn,xn[yn]);return Sn};const he=Sn=>React.createElement("svg",cn({className:"logo2_svg__icon",viewBox:"0 0 1417 1024",xmlns:"http://www.w3.org/2000/svg",width:276.758,height:200},Sn),React.createElement("path",{d:"M1364.44 118.705c-14.178-6.695-20.322 6.065-28.593 12.525-2.914 2.048-5.277 4.726-7.64 7.246-20.717 21.268-44.899 35.21-76.643 33.556a152.576 152.576 0 0 0-120.674 45.371c-7.404-41.826-32.06-66.875-69.553-82.865-19.693-8.35-39.543-16.7-53.248-34.737-9.61-12.919-12.288-27.333-17.015-41.512-3.15-8.507-6.144-17.25-16.384-18.668-11.185-1.733-15.517 7.247-19.928 14.73a189.125 189.125 0 0 0-23.552 98.461c1.575 76.88 35.446 138.083 102.636 181.642 7.562 4.963 9.531 9.925 7.09 17.25-4.49 14.967-9.926 29.54-14.81 44.584-2.992 9.61-7.561 11.658-18.274 7.483a309.484 309.484 0 0 1-96.886-63.015c-47.813-44.426-91.057-93.342-144.935-131.702a635.825 635.825 0 0 0-38.36-25.207c-54.982-51.2 7.167-93.262 21.582-98.225 14.966-5.199 5.277-23.158-43.402-22.922-48.68.237-93.184 15.833-149.977 36.628-8.428 3.15-17.092 5.514-25.993 7.326a557.844 557.844 0 0 0-160.768-5.436c-105.157 11.264-189.204 58.92-250.96 140.367-74.2 97.832-91.687 208.975-70.261 325.002 22.449 122.25 87.434 223.468 187.47 302.631 103.582 82 222.917 122.172 359.188 114.452 82.708-4.568 174.79-15.202 278.686-99.485 26.151 12.445 53.642 17.486 99.249 21.267 35.131 3.072 69.002-1.733 95.153-6.931 40.96-8.35 38.203-44.741 23.316-51.437-120.202-53.72-93.814-31.822-117.839-49.624 61.125-69.317 153.206-141.312 189.204-374.706 2.835-18.51.472-30.168 0-45.213-.237-9.137 1.969-12.603 12.918-13.706a240.089 240.089 0 0 0 86.173-25.442c77.982-40.803 109.332-107.914 116.736-188.259 1.103-12.288-.236-24.97-13.705-31.429zM685.45 842.043C569.108 754.215 512.55 725.307 489.157 726.49c-21.82 1.26-17.96 25.206-13.155 40.802 5.042 15.439 11.58 26.073 20.717 39.621 6.301 8.9 10.791 22.213-6.302 32.295-37.494 22.213-102.794-7.561-105.787-8.98-76.012-42.929-139.421-99.564-184.241-176.994a523.894 523.894 0 0 1-72.468-239.93c-1.024-20.56 5.278-27.885 26.703-31.587a272.148 272.148 0 0 1 85.307-2.127c118.942 16.699 220.16 67.741 305.073 148.48 48.443 46.001 85.071 100.982 122.88 154.703 40.173 57.029 83.338 111.458 138.32 155.963 19.376 15.675 34.894 27.569 49.781 36.234-44.74 4.805-119.414 5.829-170.456-32.926zm55.926-344.615c0-5.357 2.757-10.398 7.326-13.47a17.723 17.723 0 0 1 22.134 2.048c3.072 2.915 4.805 7.09 4.805 11.422a16.778 16.778 0 0 1-17.25 16.541 17.33 17.33 0 0 1-12.131-4.883 15.911 15.911 0 0 1-4.884-11.658zm173.529 85.464a104.37 104.37 0 0 1-33.005 8.586 71.444 71.444 0 0 1-44.504-13.548c-15.282-12.288-26.23-19.141-30.72-40.645a89.167 89.167 0 0 1 .787-31.429c3.939-17.487-.393-28.75-13.312-38.912-10.476-8.35-23.71-10.634-38.36-10.634a32.06 32.06 0 0 1-14.179-4.175c-6.144-2.914-11.106-10.24-6.301-19.14a60.18 60.18 0 0 1 10.712-11.265c19.85-10.79 42.693-7.246 63.882.788 19.693 7.798 34.501 21.898 55.926 41.905 21.74 24.183 25.68 30.8 38.125 48.916 9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YuNzc4IDAgMCAxLTE3LjI1IDE2LjU0MSAxNy4zMyAxNy4zMyAwIDAgMS0xMi4xMzEtNC44ODMgMTUuOTExIDE1LjkxMSAwIDAgMS00Ljg4NC0xMS42NTh6bTE3My41MjkgODUuNDY0YTEwNC4zNyAxMDQuMzcgMCAwIDEtMzMuMDA1IDguNTg2IDcxLjQ0NCA3MS40NDQgMCAwIDEtNDQuNTA0LTEzLjU0OGMtMTUuMjgyLTEyLjI4OC0yNi4yMy0xOS4xNDEtMzAuNzItNDAuNjQ1YTg5LjE2NyA4OS4xNjcgMCAwIDEgLjc4Ny0zMS40MjljMy45MzktMTcuNDg3LS4zOTMtMjguNzUtMTMuMzEyLTM4LjkxMi0xMC40NzYtOC4zNS0yMy43MS0xMC42MzQtMzguMzYtMTAuNjM0YTMyLjA2IDMyLjA2IDAgMCAxLTE0LjE3OS00LjE3NWMtNi4xNDQtMi45MTQtMTEuMTA2LTEwLjI0LTYuMzAxLTE5LjE0YTYwLjE4IDYwLjE4IDAgMCAxIDEwLjcxMi0xMS4yNjVjMTkuODUtMTAuNzkgNDIuNjkzLTcuMjQ2IDYzLjg4Mi43ODggMTkuNjkzIDcuNzk4IDM0LjUwMSAyMS44OTggNTUuOTI2IDQxLjkwNSAyMS43NCAyNC4xODMgMjUuNjggMzAuOCAzOC4xMjUgNDguOTE2IDkuODQ2IDE0LjE3OSAxOC43NDcgMjguNzUgMjQuODkgNDUuNDUgMy43MDMgMTAuMzk3LTEuMTAyIDE4LjkwNS0xMy45NDEgMjQuMTAzeiIgZmlsbD0iIzRENkJGRSIvPjwvc3ZnPg==",Ae=Ft(59301),An=({value:Sn,onChange:xn})=>{const[yn,Rn]=(0,St.useState)(!1),ji=[{name:"\u901A\u4E49\u5343\u95EE",key:"qwen-max",img:Fe},{name:"DeepSeek R1-671B",key:"deepseek-r1",img:Qt}],Qi=ji.find(Ti=>Ti.key===Sn);return Ae.createElement("div",{className:Lt.select},Ae.createElement(At.Z,{size:10},Ae.createElement("span",{className:"c-grey-333 font16"},"\u6A21\u578B"),Ae.createElement("div",{className:Lt.box,onMouseLeave:()=>Rn(!1)},Ae.createElement("div",{className:Lt.text,onClick:()=>Rn(!0)},Ae.createElement("img",{src:Qi.img,width:20}),Ae.createElement("span",null,Qi.name),Ae.createElement("b",{className:"iconfont icon-zhankai6"})),yn&&Ae.createElement("div",{className:Lt.itemWrap},Ae.createElement("aside",null,ji.map(Ti=>Ae.createElement("div",{key:Ti.key,className:`${Lt.item} ${Ti.key===Sn?Lt.active:""}`,onClick:vo=>{vo.stopPropagation(),xn(Ti.key),Rn(!1)}},Ae.createElement("img",{src:Ti.img,width:20}),Ae.createElement("span",null,Ti.name))))))))},Se={loadingPic:"loadingPic___y2kKZ",loading:"loading___UEUk1",dot:"dot___TYXFV","dot-fade":"dot-fade___KWn1a",wrap:"wrap___nU3cS",chatContainer:"chatContainer___PNe3Q",footerContainer:"footerContainer___hQATV",btnWrp:"btnWrp___mS8l6",btn:"btn___3za5U",btnActive:"btnActive____jzfb",inputContainer:"inputContainer___iCQ3u",uploadBtn:"uploadBtn___OHHJF",sendBtn:"sendBtn___ktaQl",sendBtnDisabled:"sendBtnDisabled___DVncF",cancelBtn:"cancelBtn___bzMDI",lineFour:"lineFour___Lhbz5",fullIcon:"fullIcon___YWXTV",footerContainerSelected:"footerContainerSelected___pGBh3",full:"full___dZLXo",li:"li___PjMV3",avatarIcon:"avatarIcon___ztGQ3",img:"img___wZqEA",content:"content___OlYYG",borderBox:"borderBox___tjHwt",text:"text___yWTCV",fileWrap:"fileWrap___IX778",file:"file___fxAKb",fileName:"fileName___RA8nu",source:"source___nkLC0",action:"action___I2zGy",disabledInput:"disabledInput___Buork",backBottom:"backBottom___SMuL2",head:"head___v8Eom",headBtn:"headBtn___IS7xR",menuWarp:"menuWarp___G6yj0",menu:"menu___M8VWP",menuText:"menuText___gRpb5",menuDel:"menuDel___eH_wg",active:"active___KWwPV"},sn=Ft(99064),wn=Ft(955),Xn={draggableImage:"draggableImage___vcTso",img:"img___xAyno",close:"close___WUtfj"},ii=({src:Sn,onClick:xn,topPercentage:yn=.62,draggableExtraNode:Rn})=>{const ji=(0,St.useRef)(null),Qi=(0,St.useRef)(!1),Ti=(0,St.useRef)(!1),[vo,Ri]=(0,St.useState)(window.innerHeight*yn),[er,As]=(0,St.useState)(!1),Or=10;return(0,St.useEffect)(()=>{if(ji.current){let jr=function(Xr){var qi;Qi.current=!0,Yr=Xr.pageY,ps=Xr.pageY-(((qi=ji.current)==null?void 0:qi.getBoundingClientRect().top)||0),(0,wn.kk)("none"),document.onselectstart=function(){return!1}},gr=function(){Qi.current&&!Ti.current&&xn&&xn(),Qi.current=!1,Ti.current=!1,(0,wn.kk)("auto"),document.onselectstart=null},pr=function(Xr){var qi;if(Qi.current){const Na=Xr.pageY-ps,mr=window.innerHeight-(((qi=ji.current)==null?void 0:qi.offsetHeight)||0)-50,Ra=50;if(!Ti.current&&Math.abs(Yr-Xr.pageY)>Or&&(Ti.current=!0),Ti.current){let za=Math.max(Ra,Math.min(Na,mr));Ri(za)}}},ps=0,Yr=0;return ji.current.addEventListener("mousedown",jr),document.addEventListener("mousemove",pr),document.addEventListener("mouseup",gr),()=>{var Xr,qi;(qi=(Xr=ji==null?void 0:ji.current)==null?void 0:Xr.removeEventListener)==null||qi.call(Xr,"mousedown",jr),document.removeEventListener("mousemove",pr),document.removeEventListener("mouseup",gr)}}},[xn]),(0,St.useEffect)(()=>{const jr=()=>{Ri(window.innerHeight*yn)};return window.addEventListener("resize",jr),()=>{window.removeEventListener("resize",jr)}},[yn]),St.createElement("div",{className:Xn.draggableImage,style:{top:`${vo}px`,display:er?"none":"block",cursor:Qi.current?"grabbing":"grab"},ref:ji},Rn,St.createElement("img",{className:Xn.img,src:Sn,width:60,draggable:"false"}),St.createElement("i",{className:`iconfont icon-tupianguanbi ${Xn.close}`,onMouseUp:jr=>{jr.stopPropagation(),As(!0)}}))},re="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAAB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F/992kIK0hZv3z+8tdPeOvTTuaHBmAUFWCFgrjhPGLDB5MYFIWQg0gGKJq/kVC6AzfWTaqpmf+IdDNuRF66ra3r19fcf+2dnzeT9VWs9B4FINP89sSP3lz1UHtd16SVK9vZvDlNLGaQJ4p0cfzZJa9g6Wk8Q89nnHjYQC754dGYwTBVQ/vw3D83MG/hZmQmiekFsHOjLN+cwczvy6rD9sfOyaO0O8E+bz1NjimYNLIUy1FDb8bCwr6hS39298++tfHhXiKsePbm4CdrzP9csyp+3dat6f52xiKfPqRthzmr5hK3u5CeIJxjcPbUcZx07HcIRMKU9S1iyRsp1s0V1CXqWd6xgWGFVSxoa6cqL6BbO6VFebpNU5IfYvnqFFPLv1PXUb7qDoPOx25+7uZvf0B8e9bfdd5/5aza6E5vaU5evk/JyLHddlysaVrOmoZqDAJUlORy/eXHU1FaSCg3gkhFWT3bZM7y1azt3ki/gjJC0RysYIa059LeGaeqJJ94Ii6H9Kv8NNcovk+uKXvqF8un/N/+CcBu5N24Yb8H9pfF6XOW1M+bUtNYP6yoIGRccPphjBrZT7dBcosjtC2PsnRBnNUNDdiik5I+BeREQnpsMZm2VQt7vcR+PRoJPC1mtc2/mZv///ojj90punz2WfN/nntvQHFezmRXpPcdP3bIqIL8whGWF6xc+04oL7kqQ2Pfpu5omAZThNY6GWuV4waWOp6xcGg0UDPtuWn/lj/j+X+Lbso4jJUfOwAAAABJRU5ErkJggg==",qn=Ft(3294),ni=Ft(56102),Hi=Ft(24544),Jo=Ft(58617),pn=Ft(32050),Pn=Object.defineProperty,ti=Object.defineProperties,gn=Object.getOwnPropertyDescriptors,Bn=Object.getOwnPropertySymbols,zn=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,Mt=(Sn,xn,yn)=>xn in Sn?Pn(Sn,xn,{enumerable:!0,configurable:!0,writable:!0,value:yn}):Sn[xn]=yn,xt=(Sn,xn)=>{for(var yn in xn||(xn={}))zn.call(xn,yn)&&Mt(Sn,yn,xn[yn]);if(Bn)for(var yn of Bn(xn))jt.call(xn,yn)&&Mt(Sn,yn,xn[yn]);return Sn},Bt=(Sn,xn)=>ti(Sn,gn(xn)),Zt=(Sn,xn,yn)=>new Promise((Rn,ji)=>{var Qi=Ri=>{try{vo(yn.next(Ri))}catch(er){ji(er)}},Ti=Ri=>{try{vo(yn.throw(Ri))}catch(er){ji(er)}},vo=Ri=>Ri.done?Rn(Ri.value):Promise.resolve(Ri.value).then(Qi,Ti);vo((yn=yn.apply(Sn,xn)).next())}),me=({title:Sn="\u5934\u6B4CAI",placeholder:xn,hideUpload:yn,hideInputBox:Rn,aiIcon:ji=re,userIcon:Qi=Dn,dragIcon:Ti=Zn,children:vo,fetchUrl:Ri,fetchData:er={},extraAnswerAction:As,showDefaultTips:Or=!0,onOpen:jr,onClose:gr,loadingOption:pr,showPreference:ps=!1,initMessage:Yr,customRequest:Xr,visible:qi,width:Ct=1200,isCheckRestrictNumber:Na=!1,headNode:mr,headFunctionNode:Ra,showRedraw:za,showEdit:da,promptPropName:Xa="prompt",topPercentage:ei,showSwitchingModel:ai=!1,showImageGenerator:Ee=!1,showLookHistory:pe=!1,fetchListObject:ve,customPreference:Wn,customDataNode:On,showAddSession:Kn,historyId:Ge,draggableExtraNode:Tn,drawerExtraNode:Si,menuExtraFunctionNode:ui,showSceneAwareness:ao=!1})=>{var oe,mn;const[li,to]=(0,St.useState)(!1),[De,dn]=(0,St.useState)("qwen-max"),[ro,Uo]=(0,St.useState)([]),[Vo,Ii]=(0,St.useState)([]),[Fi,Pi]=(0,St.useState)(!1),[Wo,br]=(0,St.useState)(!1),[wr,$e]=(0,St.useState)(!1),[vr,ur]=(0,St.useState)([]),[ko,Ye]=(0,St.useState)(""),[Yn,Ci]=(0,St.useState)(0),[Bi,Ai]=(0,St.useState)(void 0),[wo,nr]=(0,St.useState)(!1),[Ro,Do]=(0,St.useState)(null),[hr,on]=(0,St.useState)(""),Zo=(0,St.useRef)(),en=(0,St.useRef)(null),Ko=(0,St.useRef)(null),[ia,os]=(0,St.useState)(!1),[Sa,Jr]=(0,St.useState)(!1),[Ao,Pr]=(0,St.useState)(!1),[Ja,ws]=(0,St.useState)(!1),[oi,Wt]=(0,St.useState)(0),Js=(0,St.useRef)(null),ca=(0,St.useRef)(!1),Mu=(0,St.useRef)(null),[_a,Vl]=(0,St.useState)(void 0),[$u,ad]=(0,St.useState)(!0),[Ih,Tr]=(0,St.useState)(Ct-28),[_r,gl]=(0,St.useState)(!1),[Ki,Mi]=(0,St.useState)(!0),[un,zi]=(0,St.useState)([]),No=(0,St.useRef)([]),Rr=(0,St.useRef)(null),rs=(0,St.useRef)(null),qr=(0,St.useRef)(!1),vi=Ih-22,cs=ko==null?void 0:ko.split(` +`).length,{onAdd:fl,onGetList:Ea,onListClick:uu,onListDelete:ke,onListDealData:oa}=ve||{},pl=50,Tl=10,th={maxCount:pl,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:ro,multiple:!0,accept:".doc,.docx,.md,.txt,.pdf,.xlsx,.xls",beforeUpload:qe=>Zt(void 0,null,function*(){var Li,Wi,ho,_i;const Ui=(_i=(ho=(Wi=(Li=qe==null?void 0:qe.name)==null?void 0:Li.split("."))==null?void 0:Wi.slice(-1))==null?void 0:ho[0])==null?void 0:_i.toLowerCase(),Qo=["doc","docx","md","pdf","txt","xlsx","xls"].includes(Ui);return qe.size==0?(Ut.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),Me.default.LIST_IGNORE):Qo?qe.size/1024/1024>100?(Ut.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u5236100MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Me.default.LIST_IGNORE):!0:(Ut.ZP.warning("\u76EE\u524D\u652F\u6301txt\u3001md\u3001doc\u3001docx\u3001pdf\u3001xlsx\u3001xls\u6587\u4EF6"),Me.default.LIST_IGNORE)}),onChange:({fileList:qe})=>{Uo(qe)},action:`${(oe=qn.Z)==null?void 0:oe.API_SERVER}/api/intelligent_imports/upload_file.json`},ss={maxCount:Tl,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:Vo,multiple:!0,accept:".jpg,.png,",beforeUpload:qe=>{var Li,Wi,ho,_i;const Ui=(_i=(ho=(Wi=(Li=qe==null?void 0:qe.name)==null?void 0:Li.split("."))==null?void 0:Wi.slice(-1))==null?void 0:ho[0])==null?void 0:_i.toLowerCase(),Qo=["jpg","png"].includes(Ui);return qe.size==0?(Ut.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),Me.default.LIST_IGNORE):Qo?qe.size/1024/1024>10?(Ut.ZP.warning("\u4E0A\u4F20\u7684\u56FE\u7247\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Me.default.LIST_IGNORE):!0:(Ut.ZP.warning("\u76EE\u524D\u652F\u6301jpg\u3001png"),Me.default.LIST_IGNORE)},onChange:({fileList:qe})=>{Ii(qe)},action:`${(mn=qn.Z)==null?void 0:mn.API_SERVER}/api/ai/generals/update_file.json`};(0,St.useEffect)(()=>{if(!vr.length||!Zo.current)return;const qe=vr[vr.length-1];qe!=null&&qe.loading&&(Zo.current.scrollTop=Zo.current.scrollHeight)},[vr.length]),(0,St.useEffect)(()=>{if(!Zo.current||!Js.current)return;const qe=new IntersectionObserver(([Li])=>{ad(Li.isIntersecting)},{root:Zo.current,rootMargin:"70px",threshold:0});return qe.observe(Js.current),()=>{Js.current&&qe.unobserve(Js.current)}},[Zo.current,Js.current]),(0,St.useEffect)(()=>{if(!ia)return;const qe=Zo.current,Li=Mu.current;ca.current=!1;let Wi=qe.scrollTop;const ho=()=>{const{scrollTop:Ui,scrollHeight:sr,clientHeight:Qo}=qe;Ui>Wi?Ui+Qo>=sr-50&&(qe.scrollTop=qe.scrollHeight,ca.current=!1):Ui{ca.current||(qe.scrollTop=qe.scrollHeight)});return _i.observe(Li),()=>{var Ui;_i.unobserve(Li),(Ui=qe==null?void 0:qe.removeEventListener)==null||Ui.call(qe,"scroll",ho)}},[ia]),(0,St.useEffect)(()=>{!ia&&No.current.length&&(ur([...vr,...No.current]),No.current=[])},[ia]),(0,St.useEffect)(()=>{if(!Zo.current)return;const qe=new ResizeObserver(()=>{Tr(Zo.current.offsetWidth)});return qe.observe(Zo.current),()=>{Zo.current&&qe.unobserve(Zo.current)}},[Zo.current]),(0,St.useEffect)(()=>{typeof qi=="boolean"&&to(qi)},[qi]),(0,St.useEffect)(()=>{var qe;if(en.current&&Ro!==null){en.current.focus();const Li=(qe=en.current.resizableTextArea)==null?void 0:qe.textArea;Li&&(Li.selectionStart=Li.selectionEnd=Li.value.length)}},[Ro]),(0,St.useEffect)(()=>{cs<5&&nr(!1)},[cs]),(0,St.useEffect)(()=>{li&&Yr&&(ur(Zl(Yr)),Pi(!0),gi(Yr,{history:[]})),li&&(xa(),Ge?Fo(Ge):Kn&&!_a&&Be()),li||Kl()},[li]);const Zl=(qe="",Li=[],Wi=[])=>{const ho=Date.now();return[{text:qe,key:ho,sender:"user",fileList:Li,imageList:Wi,show:!0},{loading:!0,key:ho,sender:"AI",show:!0,model:De,imageGenerator:Ao,thinkingEnabled:Sa}]},Kl=()=>{on(""),Do(null),Uo([]),Ii([]),Ye("")},Sr=()=>{if(jr){jr({chatData:vr,setChatData:ur,setLoading:Pi,getData:gi,renderChatItems:Zl,handleAdd:Be,identifier:_a});return}to(!0)},Is=()=>{if(Mi(!0),gr){gr();return}to(!1)},eh=()=>{nr(!wo)},xa=()=>Zt(void 0,null,function*(){if(!Na)return;const qe=yield(0,sn.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});(qe==null?void 0:qe.status)===0&&(qe==null?void 0:qe.total_number)!==-1&&(Ci((qe==null?void 0:qe.total_number)-(qe==null?void 0:qe.remaining_number)),Ai(qe==null?void 0:qe.total_number))}),ju=()=>{_e.default.info({title:"\u63D0\u793A",icon:null,okText:"\u6211\u77E5\u9053\u4E86",width:510,centered:!0,content:St.createElement("div",null,St.createElement("div",{style:{color:"#FA6400"}},"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),St.createElement("div",{className:"c-grey-333 mt5"},"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F\u7528",Bi,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))})},Os=qe=>qe.reduce((Wi,ho)=>{if(ho.sender==="user"){const _i=qe.find(Ui=>Ui.key===ho.key&&Ui.sender==="AI");_i&&(_i!=null&&_i.text)&&!(_i!=null&&_i.error)&&Wi.push({question:ho.text,answer:_i.text})}return Wi},[]),gi=(...qe)=>Zt(void 0,[...qe],function*(Li="",Wi={},ho=vr){if(Xr&&(yield Xr({mes:Li,setChatData:ur,fileList:ro,body:Wi,checkNum:xa,setLoading:Pi,bodyChatData:ho,setTyping:os,setImageGenerator:Pr,renderChatItems:Zl})),!Xr){const _i=ro==null?void 0:ro.map(Io=>{var Lr;return(Lr=Io==null?void 0:Io.response)==null?void 0:Lr.file_id}),Ui=Vo==null?void 0:Vo.map(Io=>{var Lr;return(Lr=Io==null?void 0:Io.response)==null?void 0:Lr.data}),sr=Wi.history||Os(ho),Qo=xt(xt({identifier:_a,response_mode:"streaming",model:De,scene_awareness:Ja,thinking_enabled:Sa,image_generator:Ao,file_ids:_i,image_list:Ui,history:sr,[Xa]:Li},er),Wi),io=Object.fromEntries(Object.entries(Qo).filter(([Io,Lr])=>Lr!==void 0));Ko.current=new Hi.Z(qn.Z.API_SERVER+Ri,io),yield new Promise((Io,Lr)=>{let so=null,ml=null;Ko.current.on("data",Xl=>{os(!0);const{chunk:{content:Vr,type:ka,created:Zr,msg:_s}}=Xl,gs=_s==="error";ka==="thinking"&&(so=so||Zr,ur(oo=>[...oo].map((tr,Dr)=>Dr===oo.length-1?Bt(xt({},tr),{reasoning:(tr.reasoning||"")+Vr,loading:!1,hideAnswer:!0,error:gs}):tr))),ka==="text"&&(ml=ml||Zr,ur(oo=>[...oo].map((tr,Dr)=>Dr===oo.length-1?Bt(xt({},tr),{text:(tr.text||"")+Vr,loading:!1,startTime:so,endTime:ml,error:gs}):tr)))}),Ko.current.on("done",()=>{Io()}),Ko.current.on("error",()=>{const Xl="\u62B1\u6B49\uFF0C\u6211\u521A\u521A\u9047\u5230\u4E86\u4E00\u70B9\u95EE\u9898\uFF0C\u6CA1\u80FD\u5B8C\u6210\u60A8\u7684\u8BF7\u6C42\u3002\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\u4E00\u6B21\uFF0C\u6216\u8005\u8054\u7CFB\u6280\u672F\u652F\u6301\u5E2E\u5FD9\u89E3\u51B3!";ur(Vr=>[...Vr].map((ka,Zr)=>Zr===Vr.length-1?Bt(xt({},ka),{text:Xl,loading:!1,error:!0}):ka)),Io()}),Ko.current.on("cancelled",()=>{Io()}),Ko.current.startStream()})}xa(),Pi(!1)}),Ql=qe=>{Ye(qe.target.value)},Oh=(qe,Li)=>{if(Kl(),Pi(!0),qe==="edit"){No.current=vr.slice(Li+2);const Wi=vr.splice(Li),{fileList:ho,imageList:_i}=(Wi==null?void 0:Wi[0])||{},Ui=ho.map(io=>{var Io;return(Io=io.response)==null?void 0:Io.file_id}),sr=_i.map(io=>{var Io;return(Io=io.response)==null?void 0:Io.data}),Qo={history:Os(vr),file_ids:Ui,image_list:sr,edit:!0};ur([...vr,...Zl(hr,ho,_i)]),gi(hr,Qo,vr)}if(qe==="redraw"){No.current=vr.slice(Li+1);const Wi=vr.splice(Li-1),{text:ho,fileList:_i,imageList:Ui}=(Wi==null?void 0:Wi[0])||{},sr=_i.map(Io=>{var Lr;return(Lr=Io.response)==null?void 0:Lr.file_id}),Qo=Ui.map(Io=>{var Lr;return(Lr=Io.response)==null?void 0:Lr.data}),io={history:Os(vr),file_ids:sr,image_list:Qo,edit:!0};ur([...vr,...Zl(ho,_i,Ui)]),gi(ho,io,vr)}},Dl=()=>{if(ko.trim()!==""){Kl(),Pi(!0);const qe=ro.filter(Wi=>Wi.status==="done"),Li=Vo.filter(Wi=>Wi.status==="done");ur([...vr,...Zl(ko,qe,Li)]),gi(ko)}},ld=qe=>{if(qe.shiftKey){if(qe.key==="Enter")return}else if(qe.key==="Enter"){if(qe.preventDefault(),no||qr.current)return;Dl()}},ud=(qe,Li)=>{let Wi=!1;da===!0?Wi=!0:da==="last"&&(Wi=vr.reduce((sr,Qo,io)=>Qo.sender==="user"?io:sr,-1)===Li);const ho=Li===Ro,_i=[...(qe==null?void 0:qe.fileList)||[],...(qe==null?void 0:qe.imageList)||[]];return St.createElement("div",{className:Se.li,style:{width:vi}},St.createElement("div",{className:Se.avatarIcon},St.createElement("img",{className:Se.img,src:Qi})),St.createElement("div",{className:Se.content},!!(_i!=null&&_i.length)&&St.createElement("div",{className:Se.fileWrap},_i==null?void 0:_i.map((Ui,sr)=>{var Qo,io;return St.createElement("div",{key:sr,className:Se.file},St.createElement("img",{src:Ft(90034)(`./${((io=(Qo=Ui==null?void 0:Ui.name)==null?void 0:Qo.split("."))==null?void 0:io.pop())||"txt"}.png`),width:20,className:"mr10"}),St.createElement("aside",null,St.createElement(fe.Z,{title:Ui==null?void 0:Ui.name},St.createElement("div",{className:Se.fileName},Ui==null?void 0:Ui.name)),St.createElement("div",{className:"c-grey-999 font12"},(0,wn.RD)(Ui==null?void 0:Ui.size))))})),St.createElement("div",{className:Se.borderBox},ho?St.createElement(je.default.TextArea,{value:hr,ref:en,autoSize:!0,placeholder:"\u8BF7\u8F93\u5165",bordered:!1,onChange:Ui=>on(Ui.target.value)}):St.createElement("div",{className:Se.text},qe==null?void 0:qe.text)),ho?St.createElement("div",{className:Se.action},St.createElement(ie.ZP,{onClick:()=>{on(""),Do(null)},size:"small"},"\u53D6\u6D88"),St.createElement(ie.ZP,{disabled:!hr.trim(),onClick:()=>Oh("edit",Li),type:"primary",size:"small"},"\u786E\u8BA4")):St.createElement("div",{className:Se.action},St.createElement(ni.CopyToClipboard,{text:(qe==null?void 0:qe.text)||"",onCopy:()=>Ut.ZP.success("\u590D\u5236\u6210\u529F")},St.createElement(fe.Z,{title:"\u590D\u5236"},St.createElement("i",{className:"iconfont icon-fuzhi8 font13"}))),Wi&&!Fi&&St.createElement(fe.Z,{title:"\u7F16\u8F91"},St.createElement("i",{onClick:()=>{Do(Li),on((qe==null?void 0:qe.text)||"")},className:"iconfont icon-bianji10 font14"})))))},Qn=(qe,Li)=>{let Wi=!1;za===!0?Wi=!0:za==="last"&&(Wi=vr.reduce((Ui,sr,Qo)=>sr.sender==="AI"?Qo:Ui,-1)===Li);let ho="";return qe!=null&&qe.source?ho=qe==null?void 0:qe.source:(qe==null?void 0:qe.model)==="deepseek-r1"?ho="\u7531deepseek\u751F\u6210":(qe==null?void 0:qe.model)==="qwen-max"&&(ho="\u7531\u901A\u4E49\u5343\u95EE\u751F\u6210"),St.createElement("div",{className:Se.li,style:{width:vi}},St.createElement("div",{className:Se.avatarIcon},St.createElement("img",{className:Se.img,src:ji})),St.createElement("div",{className:Se.content},St.createElement("div",{className:Se.borderBox},qe.loading&&St.createElement(St.Fragment,null,qe!=null&&qe.imageGenerator?St.createElement("div",{className:Se.loadingPic},"\u6B63\u5728\u751F\u6210\u4E2D",St.createElement("div",{className:"ai-loading"})):!(qe!=null&&qe.thinkingEnabled)&&St.createElement("div",null,St.createElement("div",{className:Se.loading},St.createElement("div",{className:Se.dot}),St.createElement("div",{className:Se.dot}),St.createElement("div",{className:Se.dot})),St.createElement("div",{style:{marginTop:10,color:"#9096A3"}},(pr==null?void 0:pr.text)||"\u8BF7\u8010\u5FC3\u7B49\u5F85\uFF0C\u76EE\u524D\u9AD8\u5CF0\u671F\u4F53\u9A8C\u4EBA\u6570\u8FC7\u591A\uFF0C\u6211\u4EEC\u5DF2\u8BB0\u5F55\u4E0B\u60A8\u7684\u9700\u6C42\uFF0C\u7A0D\u540E\u5C06\u81EA\u52A8\u4E3A\u60A8\u751F\u6210\u7B54\u6848\u3002"))),(qe==null?void 0:qe.thinkingEnabled)&&St.createElement(vt,{time:qe==null?void 0:qe.time,cancelIndex:oi,loading:qe.loading,streamingStatus:!(qe!=null&&qe.text),onFinish:()=>{Wt(0),ur(_i=>[..._i].map((Ui,sr)=>sr===_i.length-1?Bt(xt({},Ui),{hideAnswer:!1,time:Ui.startTime?Ui.endTime-Ui.startTime:null}):Ui))},value:qe==null?void 0:qe.reasoning}),!!(qe!=null&&qe.text)&&!qe.hideAnswer&&St.createElement(et.Z,{cancelIndex:oi,streamingStatus:Fi,loadImage:!!(qe!=null&&qe.imageGenerator),onFinish:()=>Zt(void 0,null,function*(){Wt(0),setTimeout(()=>os(!1),0)}),value:qe==null?void 0:qe.text})),!!(qe!=null&&qe.text)&&ho&&St.createElement("div",{className:Se.source},ho),St.createElement("div",{className:Se.action},As==null?void 0:As(qe,Li,{onMenuClick:Fo}),St.createElement(ni.CopyToClipboard,{text:String((qe==null?void 0:qe.text)||""),onCopy:()=>Ut.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},St.createElement(fe.Z,{title:"\u590D\u5236"},St.createElement("i",{className:"iconfot icon-fuzhi8 font13"}))),ps&&!Fi&&St.createElement(St.Fragment,null,St.createElement(fe.Z,{title:"\u559C\u6B22"},St.createElement("i",{style:qe!=null&&qe.like?{color:"#FA8D30"}:{},onClick:()=>We("like",!(qe!=null&&qe.like),Li),className:"iconfot icon-yijiejue font15"})),St.createElement(fe.Z,{title:"\u4E0D\u559C\u6B22"},St.createElement("i",{style:qe!=null&&qe.dislike?{color:"#e86d7c"}:{},onClick:()=>We("dislike",!(qe!=null&&qe.dislike),Li),className:"iconfot icon-weijiejuezhengchang font15"}))),Wi&&!Fi&&St.createElement(fe.Z,{title:"\u91CD\u65B0\u751F\u6210"},St.createElement("i",{onClick:()=>Oh("redraw",Li),className:"iconfot icon-gengxin-genghuan-tihuan"})))))},We=(qe,Li,Wi)=>Zt(void 0,null,function*(){if(Wn){const ho=vr.slice(0,Wi+1),Ui=Os(ho).length;yield Wn({type:qe,value:Li,index:Wi,identifier:_a,objectIndex:Ui})}ur(ho=>(ho[Wi][qe]=Li,Li&&(ho[Wi][qe==="like"?"dislike":"like"]=!1),[...ho]))}),be=()=>{var qe,Li;Wt(1),(Li=(qe=Ko.current)==null?void 0:qe.cancelRequest)==null||Li.call(qe),Pi(!1),os(!1)},Be=()=>Zt(void 0,null,function*(){var qe,Li,Wi;(Li=(qe=Ko.current)==null?void 0:qe.cancelRequest)==null||Li.call(qe),Kl(),ur([]),Pi(!0);const ho=yield fl();(ho==null?void 0:ho.status)===0&&Vl((Wi=ho==null?void 0:ho.data)==null?void 0:Wi.identifier),Pi(!1),os(!1)}),ir=()=>Zt(void 0,null,function*(){var qe;$e(!0);const Li=yield Ea();(Li==null?void 0:Li.status)===0&&zi(((qe=Li==null?void 0:Li.data)==null?void 0:qe.list)||[]),$e(!1)}),Fo=(...qe)=>Zt(void 0,[...qe],function*(Li=_a){var Wi,ho,_i,Ui;(ho=(Wi=Ko.current)==null?void 0:Wi.cancelRequest)==null||ho.call(Wi),Kl(),br(!0);const sr=yield uu(Li);if(sr.status===0){const Qo=oa(((_i=sr==null?void 0:sr.data)==null?void 0:_i.messages)||[]);ur(Qo),br(!1),Vl((Ui=sr==null?void 0:sr.data)==null?void 0:Ui.identifier);return}ur([]),br(!1)}),ri=(qe,Li)=>Zt(void 0,null,function*(){(yield ke(qe)).status===0&&(Ut.ZP.success("\u5220\u9664\u6210\u529F"),Li===_a&&Be(),ir())}),Ur=()=>St.createElement("div",{className:Se.menuWarp},St.createElement("h4",null,"\u5386\u53F2\u5BF9\u8BDD"),St.createElement(Ne.Z,{spinning:wr},!un.length&&St.createElement(we.Z,{style:{width:250,paddingBottom:30},image:we.Z.PRESENTED_IMAGE_SIMPLE}),!!un.length&&St.createElement("div",{className:Se.menu},un.map(function(qe,Li){return St.createElement("aside",{className:Tt()(_a===qe.identifier&&Se.active),key:qe.id,onClick:()=>Fo(qe.id)},St.createElement("div",{className:Se.menuText},St.createElement(fe.Z,{title:qe==null?void 0:qe.question},St.createElement("span",null,qe==null?void 0:qe.question)),ui&&ui(qe)),St.createElement("div",{className:Se.menuDel,onClick:Wi=>Wi.stopPropagation()},St.createElement(Le.Z,{title:"\u63D0\u793A",description:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u672C\u6761\u5BF9\u8BDD\u5417\uFF1F",onConfirm:()=>ri(qe.id,qe.identifier),okText:"\u786E\u8BA4",zIndex:1100,cancelText:"\u53D6\u6D88"},St.createElement("i",{className:"iconfont icon-shanchu14 delete-hover font14"}))))})))),Bo=qe=>{if(qe==="file"){if(Vo.length){_e.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4\u8986\u76D6",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5DF2\u5B58\u5728\u56FE\u7247\uFF0C\u4E0A\u4F20\u6587\u4EF6\u540E\u56FE\u7247\u5C06\u4F1A\u88AB\u8986\u76D6?",onOk:()=>{Ii([]),Rr.current.upload.uploader.fileInput.click()}});return}Rr.current.upload.uploader.fileInput.click()}if(qe==="image"){if(ro.length){_e.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4\u8986\u76D6",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5DF2\u5B58\u5728\u6587\u4EF6\uFF0C\u4E0A\u4F20\u56FE\u7247\u540E\u6587\u4EF6\u5C06\u4F1A\u88AB\u8986\u76D6?",onOk:()=>{Uo([]),rs.current.upload.uploader.fileInput.click()}});return}rs.current.upload.uploader.fileInput.click()}},yi=[{key:"file",disabled:ro.length>=pl,label:St.createElement(fe.Z,{placement:"right",title:St.createElement("div",null,St.createElement("b",null,"\u4E0A\u4F20\u9644\u4EF6\uFF08\u4EC5\u8BC6\u522B\u6587\u5B57\uFF09"),St.createElement("div",null,"\u6700\u591A 50 \u4E2A\uFF0C\u6BCF\u4E2A 100 MB\uFF0C\u652F\u6301\u5404\u7C7B\u578B\u6587\u6863"))},St.createElement("span",null,St.createElement("i",{className:"iconfont icon-fujian3 font14 mr5"}),"\u4E0A\u4F20\u6587\u6863"))},De!=="deepseek-r1"&&{key:"image",disabled:Vo.length>=Tl,label:St.createElement(fe.Z,{placement:"right",title:"\u652F\u6301\u4E0D\u8D85\u8FC710M\u7684PNG/JPG\u56FE\u7247\uFF0C\u6700\u591A10\u4E2A"},St.createElement("span",null,St.createElement("i",{className:"iconfont icon-tupianshangchuan font14 mr5"}),"\u4E0A\u4F20\u56FE\u7247"))}].filter(Boolean),eo=[...ro,...Vo],no=eo.some(qe=>qe.status==="uploading")||Fi||ia,ga=Yn>=Bi,$r=yn||ro.length>=pl||Vo.length>=Tl,Mo=Ao||Sa||Ja||!!eo.length;return St.createElement("div",null,vo?St.createElement("div",{onClick:Sr},vo):St.createElement(ii,{draggableExtraNode:Tn,src:Ti,onClick:Sr,topPercentage:ei}),St.createElement(Pe.Z,{open:li,width:_r?"100%":Ct,afterOpenChange:qe=>{qe&&Mi(!1)},push:!1,contentWrapperStyle:Ki?{}:{transition:"none"},extra:St.createElement("div",{className:Se.head},Si,ai&&St.createElement(An,{value:De,onChange:qe=>{Jr(!1),Pr(!1),dn(qe),Ii([]),Uo([])}}),pe&&St.createElement(St.Fragment,null,St.createElement(Ie.Z,{dropdownRender:Ur,onOpenChange:qe=>{qe&&ir()},placement:"bottomLeft",arrow:!0},St.createElement("div",{className:Se.headBtn},St.createElement("i",{className:"icon-lishiduihua1 font14 mr10"}),"\u5386\u53F2\u5BF9\u8BDD"))),Kn&&St.createElement(St.Fragment,null,St.createElement("div",{className:Se.headBtn,onClick:Be},St.createElement("i",{className:"icon-xinjianduihua font14 mr10"}),"\u65B0\u5EFA\u5BF9\u8BDD")),St.createElement(fe.Z,{title:_r?"\u9000\u51FA\u5168\u5C4F":"\u5168\u5C4F"},St.createElement("div",{className:Se.headBtn,style:{padding:"0 12px"},onClick:()=>gl(!_r)},_r&&St.createElement("i",{className:"iconfont icon-tuichuquanping3"}),!_r&&St.createElement("i",{className:"iconfont icon-quanping4"})))),title:St.createElement("span",{className:"c-grey-333 font16"},Sn),onClose:Is,bodyStyle:{paddingRight:4}},St.createElement("div",{className:Tt()(Se.wrap,li&&"body-overflow-hidden")},St.createElement("div",{ref:Zo,className:Se.chatContainer},Or&&St.createElement("div",{className:`${Se.li} mb20`,style:{width:vi}},St.createElement("div",{className:Se.avatarIcon},St.createElement("img",{className:Se.img,src:ji})),St.createElement("div",{className:Se.content},St.createElement("div",{className:Se.borderBox},mr,Ra==null?void 0:Ra({isDisabledNum:ga,checkNumModal:ju,checkNum:xa,onClose:Is,setChatData:ur,setLoading:Pi,getData:gi,clearStatus:Kl,typing:ia,setImageGenerator:Pr,renderChatItems:Zl,setSceneAwareness:ws,setIdentifier:Vl})))),St.createElement("div",{ref:Mu},St.createElement(Ne.Z,{spinning:Wo,className:"mt20"},vr==null?void 0:vr.map((qe,Li)=>St.createElement(St.Fragment,{key:qe.key+Li},qe.show&&St.createElement(St.Fragment,null,qe.sender==="user"&&ud(qe,Li),qe.sender==="AI"&&Qn(qe,Li),On&&!["AI","user"].includes(qe.sender)&&On(qe,Li,{width:vi})))))),!$u&&St.createElement("div",{className:Se.backBottom,onClick:()=>{Zo.current.scrollTop=Zo.current.scrollHeight}},St.createElement("i",{className:"iconfont icon-huidaodibu"})),St.createElement("div",{ref:Js})),!Rn&&St.createElement("div",{className:Tt()(Se.footerContainer,wo&&Se.full,Mo&&Se.footerContainerSelected)},St.createElement("div",{className:Se.btnWrp},ao&&St.createElement(fe.Z,{title:"\u667A\u80FD\u611F\u77E5\u5F53\u524D\u60C5\u5883\uFF0C\u63D0\u4F9B\u9488\u5BF9\u6027\u89E3\u7B54"},St.createElement("div",{onClick:()=>ws(!Ja),className:Tt()(Se.btn,Ja&&Se.btnActive)},St.createElement("i",{className:"iconfont icon-changjingganzhi mr10 font12"}),"\u573A\u666F\u611F\u77E5")),De==="deepseek-r1"&&St.createElement(fe.Z,{title:"\u8C03\u7528\u65B0\u6A21\u578B DeepSeek-R1\uFF0C\u89E3\u51B3\u63A8\u7406\u95EE\u9898"},St.createElement("div",{onClick:()=>Jr(!Sa),className:Tt()(Se.btn,Sa&&Se.btnActive)},St.createElement("i",{className:"iconfont icon-shendusikao mr10 font12"}),"\u6DF1\u5EA6\u601D\u8003\uFF08R1\uFF09")),Ee&&De==="qwen-max"&&St.createElement("div",{onClick:()=>Pr(!Ao),className:Tt()(Se.btn,Ao&&Se.btnActive)},St.createElement("i",{className:"iconfont icon-shangchuantupian2 mr10 font12"}),"\u56FE\u50CF\u751F\u6210"),eo.map(qe=>St.createElement("div",{key:qe.uid},(qe==null?void 0:qe.status)==="uploading"&&St.createElement(Ne.Z,{indicator:St.createElement(Jo.Z,{spin:!0}),className:"mr10",size:"small",spinning:!0}),St.createElement("span",{title:qe==null?void 0:qe.name,className:"mr10"},(0,wn.Pq)(qe.name,20)),St.createElement("i",{onClick:()=>{Uo(Li=>Li.filter(Wi=>Wi.uid!==qe.uid)),Ii(Li=>Li.filter(Wi=>Wi.uid!==qe.uid))},className:"iconfont current icon-shanchu15 delete-hover c-red-ee4 font12"})))),St.createElement(fe.Z,{title:ga&&St.createElement("div",null,St.createElement("div",null,"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),St.createElement("div",null,"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F",Bi,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))},St.createElement("div",{className:Tt()(Se.inputContainer,cs>4&&Se.lineFour,ga&&Se.disabledInput)},St.createElement(Me.default,xt({ref:Rr},th)),St.createElement(Me.default,xt({ref:rs},ss)),St.createElement(Ie.Z,{className:`${$r&&"hide"}`,menu:{items:yi,onClick:qe=>Bo(qe.key)},placement:"top"},St.createElement(ie.ZP,{className:Se.uploadBtn,icon:St.createElement(pn.Z,{style:{fontSize:18,color:"#FFF"}})})),St.createElement(je.default.TextArea,{rows:cs>4?4:cs,placeholder:xn||"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u95EE\u9898\u5427,Shift+Enter\u6362\u884C\uFF5E",value:ko,bordered:!1,style:$r?{paddingLeft:0,marginLeft:0}:{},onChange:Ql,onPressEnter:ld,onCompositionStart:()=>{qr.current=!0},onCompositionEnd:()=>{qr.current=!1}}),ia?St.createElement(fe.Z,{title:"\u505C\u6B62\u751F\u6210"},St.createElement("div",{className:`iconfont icon-tingzhihuida ${Se.cancelBtn}`,onClick:be})):St.createElement(ie.ZP,{className:(ko==null?void 0:ko.trim())===""?Se.sendBtnDisabled:Se.sendBtn,icon:St.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:no,onClick:Dl}),cs>4&&St.createElement("span",{className:Se.fullIcon,onClick:eh},wo&&St.createElement("span",{className:"iconfont icon-shousuo"}),!wo&&St.createElement("span",{className:"iconfont icon-zhankai"}))))))))}},16406:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{Z:function(){return zn}});var St=Ft(59301),Ut={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Me=Ft(92310),_e=Ft.n(Me),fe=Ft(71418);var je=function(jt,Mt){return(je=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(xt,Bt){xt.__proto__=Bt}||function(xt,Bt){for(var Zt in Bt)Object.prototype.hasOwnProperty.call(Bt,Zt)&&(xt[Zt]=Bt[Zt])})(jt,Mt)};function ie(jt,Mt){function xt(){this.constructor=jt}je(jt,Mt),jt.prototype=Mt===null?Object.create(Mt):(xt.prototype=Mt.prototype,new xt)}function Ne(jt,Mt,xt,Bt){return new(xt||(xt=Promise))(function(Zt,Nt){function me(yn){try{xn(Bt.next(yn))}catch(Rn){Nt(Rn)}}function Sn(yn){try{xn(Bt.throw(yn))}catch(Rn){Nt(Rn)}}function xn(yn){var Rn;yn.done?Zt(yn.value):(Rn=yn.value,Rn instanceof xt?Rn:new xt(function(ji){ji(Rn)})).then(me,Sn)}xn((Bt=Bt.apply(jt,Mt||[])).next())})}function we(jt,Mt){var xt,Bt,Zt,Nt,me={label:0,sent:function(){if(1&Zt[0])throw Zt[1];return Zt[1]},trys:[],ops:[]};return Nt={next:Sn(0),throw:Sn(1),return:Sn(2)},typeof Symbol=="function"&&(Nt[Symbol.iterator]=function(){return this}),Nt;function Sn(xn){return function(yn){return function(Rn){if(xt)throw new TypeError("Generator is already executing.");for(;me;)try{if(xt=1,Bt&&(Zt=2&Rn[0]?Bt.return:Rn[0]?Bt.throw||((Zt=Bt.return)&&Zt.call(Bt),0):Bt.next)&&!(Zt=Zt.call(Bt,Rn[1])).done)return Zt;switch(Bt=0,Zt&&(Rn=[2&Rn[0],Zt.value]),Rn[0]){case 0:case 1:Zt=Rn;break;case 4:return me.label++,{value:Rn[1],done:!1};case 5:me.label++,Bt=Rn[1],Rn=[0];continue;case 7:Rn=me.ops.pop(),me.trys.pop();continue;default:if(Zt=me.trys,!((Zt=Zt.length>0&&Zt[Zt.length-1])||Rn[0]!==6&&Rn[0]!==2)){me=0;continue}if(Rn[0]===3&&(!Zt||Rn[1]>Zt[0]&&Rn[1]{const Fe=qt.current.attachShadow({mode:"open"});ue.current=document.createElement("div"),ue.current.className="markdown-body",ue.current.innerHTML=ne,Fe.appendChild(ue.current);const xe=document.createElement("style");return xe.textContent=ae,Fe.appendChild(xe),()=>{Fe.innerHTML=""}},[]),(0,St.useEffect)(()=>{ue.current&&(ue.current.innerHTML=ne)},[ne]),Pe.createElement("div",{ref:qt})},Tt=Object.defineProperty,et=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable,lt=(ne,qt,ue)=>qt in ne?Tt(ne,qt,{enumerable:!0,configurable:!0,writable:!0,value:ue}):ne[qt]=ue,pt=(ne,qt)=>{for(var ue in qt||(qt={}))nt.call(qt,ue)&<(ne,ue,qt[ue]);if(et)for(var ue of et(qt))dt.call(qt,ue)&<(ne,ue,qt[ue]);return ne};const vt="@\u2581\u2581@",Lt="@\u2581@",At=/]*>/g;function kt(ne){let qt=document.createElement("div");return qt.innerHTML=ne,qt.childNodes.length===0?"":qt.childNodes[0].nodeValue}const Kt=(ne,qt)=>{ne=ne||"";const ue=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ae=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Fe=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,xe=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return qt?ne.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(ue,(Re,En,fn,bn,cn,he,Qt)=>{const Ae=En||bn||he,Gn=fn||cn||Qt||"?";return je.Z.API_SERVER+"/api/attachments/"+Ae+Gn+"&t="+(0,ie.Jn)(Ae,Date.now())+(Re.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(ne=ne.replace(xe,(Re,En,fn,bn,cn,he,Qt)=>{const Ae=En||bn||he,Gn=fn||cn||Qt||"?";return je.Z.API_SERVER+"/attachments/download/"+Ae+Gn+"&t="+(0,ie.Jn)(Ae,Date.now())+(Re.indexOf(")")>-1?")":"&")}).replace(ue,(Re,En,fn,bn,cn,he,Qt)=>{const Ae=En||bn||he,Gn=fn||cn||Qt||"?";return je.Z.API_SERVER+"/api/attachments/"+Ae+Gn+"&t="+(0,ie.Jn)(Ae,Date.now())+(Re.indexOf(")")>-1?")":"&")}).replace(ae,(Re,En,fn,bn,cn)=>{const he=En||bn,Qt=fn||cn||"";return'"'+je.Z.API_SERVER+"/api/attachments/"+he+Qt+he+Qt+"&t="+(0,ie.Jn)(he,Date.now())}).replace(Fe,(Re,En,fn,bn,cn)=>{const he=En||bn,Qt=fn||cn||"";return"("+je.Z.API_SERVER+"/files/uploads/"+he+Qt+he+Qt+"&t="+(0,ie.Jn)(he,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,` `),ne)};var $t=({value:ne="",className:qt,showTextOnly:ue,showLines:ae,style:Fe={},stylesPrev:xe={},highlightKeywords:Re,showProgramFill:En,isProgramFill:fn,disabledFill:bn=!1,programFillValue:cn,onFillChange:he=Gn=>{},onFillBlur:Qt=()=>{},onFillFocus:Ae=()=>{}})=>{let Gn=String(ne);const[An,Se]=(0,St.useState)(""),[sn,wn]=(0,St.useState)("office"),[Xn,Hn]=(0,St.useState)([]),ii=(0,St.useRef)("a"+(0,we.Z)()),re={},Dn=(jt,Mt,xt)=>{const Bt=document.createElement(jt===Lt?"input":"textarea");Bt.style.width="100%",Bt.style.height=jt===Lt?"40px":"151px",Bt.rows=5,Bt.spellcheck=!1,Bt.name="edu-program-fill",Bt.placeholder="\u8BF7\u8F93\u5165",Bt.dataset.id=Mt;const Zt=Object.keys(re).length;return re[Zt]=Bt,`${Bt.outerHTML}`};function Zn(jt){return jt=jt.replace(/!\[.*?\]\(.*?\)/g,""),jt=jt.replace(/\[.*?\]\(.*?\)/g,""),jt=jt.replace(new RegExp("","gs"),""),jt=jt.replace(//g,""),jt=jt.replace(//g,""),jt=jt.replace(new RegExp(".*?<\\/video>","gs"),""),jt=jt.replace(new RegExp(".*?<\\/audio>","gs"),""),jt=jt.replace(new RegExp(".*?<\\/style>","gs"),""),jt=jt.replace(new RegExp(".*?<\\/script>","gs"),""),jt}const qn=jt=>jt.replace(/([\s\S]+?)<\/style>/gim,function(Mt,xt){let Bt=xt.replace(/(\n|\r)/g,"").split("}"),Zt=[];return Bt.map(Nt=>{Nt!=""&&Zt.push(`.${ii.current} ${Nt}`)}),``}),ni=(0,St.useMemo)(()=>{try{const Bt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Zt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Nt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,me=/\(\/attachments\/download\//g;Gn=Gn.replace(me,"("+je.Z.API_SERVER+"/attachments/download/").replace(Bt,"("+je.Z.API_SERVER+"/api/attachments/").replace(Zt,'"'+je.Z.API_SERVER+"/api/attachments/").replace(Nt,'"'+je.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(Bt){}if(En){let Bt=-1;return Gn=Gn.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Zt,Nt,me){var Sn;return++Bt,Dn(Zt,Bt,(Sn=cn==null?void 0:cn[Bt])==null?void 0:Sn.value.replaceAll("<","<").replaceAll(">",">"))}),`
        ${qn(Gn||"")}
        `}let jt=qn(Gn);jt=(0,Me.ZP)(jt);const Mt=(0,Me.ez)();Gn.match(/\[TOC\]/)&&(jt=jt.replace("

        [TOC]

        ",(0,Me.Qv)()),(0,Me.Iy)()),jt=jt.replace(/(__special_katext_id_\d+__)/g,(Bt,Zt)=>{const{type:Nt,expression:me}=Mt[Zt];return(0,Ne.renderToString)(kt(me)||"",{displayMode:Nt==="block",throwOnError:!1,output:"html"})}),jt=jt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,Me.AL)();const xt=document.createElement("div");if(xt.innerHTML=jt,ue)return xt.innerText;if(Re){const Bt=Re.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Pn(xt,Bt),xt.innerHTML}return setTimeout(()=>Bn(),500),xt.innerHTML},[Gn,Re]);(0,St.useEffect)(()=>{ti.current&&ti.current.querySelectorAll(["input","textarea"]).forEach(Mt=>{Mt.oninput=Hi,Mt.onblur=Jo,Mt.onfocus=pn})},[Xn]),(0,St.useEffect)(()=>{var jt,Mt,xt,Bt,Zt;if(cn!=null&&cn.length)try{const Nt=ti.current.querySelectorAll(".edu-program-fill-score"),me=ti.current.querySelectorAll('[name="edu-program-fill"]');for(const[Sn,xn]of me.entries())xn.value=((jt=cn==null?void 0:cn[Sn])==null?void 0:jt.value)||"",((Mt=cn==null?void 0:cn[Sn])==null?void 0:Mt.type)==="warning"?xn.className="program-fill-warning":((xt=cn==null?void 0:cn[Sn])==null?void 0:xt.type)==="success"?xn.className="program-fill-success":xn.className="";for(const[Sn,xn]of Nt.entries())xn.innerHTML=(Bt=cn==null?void 0:cn[Sn])!=null&&Bt.score?`${(Zt=cn==null?void 0:cn[Sn])==null?void 0:Zt.score}\u5206`:"";Hn(cn)}catch(Nt){console.log(Nt,"error")}},[cn]);const Hi=jt=>{Xn[jt.target.dataset.id]=Xn[jt.target.dataset.id]||{},Xn[jt.target.dataset.id].value=jt.target.value,Hn([...Xn]),he(Xn,jt.target.dataset.id)},Jo=jt=>{Xn[jt.target.dataset.id]=Xn[jt.target.dataset.id]||{},Xn[jt.target.dataset.id].value=jt.target.value,Hn([...Xn]),Qt(Xn,jt.target.dataset.id)},pn=jt=>{Xn[jt.target.dataset.id]=Xn[jt.target.dataset.id]||{},Xn[jt.target.dataset.id].value=jt.target.value,Hn([...Xn]),Ae(Xn,jt.target.dataset.id)};function Pn(jt,Mt){return jt.childNodes.forEach(xt=>{var Bt;if(xt.childNodes.length>0)Pn(xt,Mt);else if(xt.nodeName!=="IMG")if(xt.innerHTML)xt.innerHTML=(Bt=xt.innerHTML)==null?void 0:Bt.replace(new RegExp(Mt,"gi"),'$&');else{const Zt=document.createElement("span");Zt.innerHTML=xt.textContent.replace(new RegExp(Mt,"gi"),'$&'),xt.replaceWith(Zt)}})}const ti=(0,St.useRef)();Me.jb.WebkitLineClamp=ae,ae&&(Fe=pt(pt({},Fe),Me.jb));function gn(jt){let Mt=jt.target;if(Mt.tagName.toUpperCase()==="A"){let xt=Mt.getAttribute("href");if(xt.indexOf("office")>-1)jt.preventDefault(),Se(xt),wn("office");else if(xt.indexOf("application/pdf")>-1)jt.preventDefault(),Se(xt),wn("pdf");else if(xt.indexOf("text/html")>-1)jt.preventDefault(),Se(xt),wn("html");else if(xt.startsWith("#")){jt.preventDefault();let Bt=document.getElementById(xt.replace("#",""));Bt&&Bt.scrollIntoView(!0)}}}const Bn=()=>{var jt;const Mt=(jt=ti.current)==null?void 0:jt.querySelectorAll("video");Mt==null||Mt.forEach(xt=>{if(xt.oncontextmenu=()=>!1,xt.src.indexOf(".m3u8")>-1&&!xt.canPlayType("application/vnd.apple.mpegurl")){if(fe.ZP.isSupported()){var Bt=new fe.ZP;Bt.loadSource(xt.src),Bt.attachMedia(xt)}}})};(0,St.useEffect)(()=>{if(ti.current&&ni&&ni.match(At)&&window.PR.prettyPrint(),ti.current)return ti.current.addEventListener("click",gn),()=>{var jt;(jt=ti.current)==null||jt.removeEventListener("click",gn),(0,Me.AL)(),(0,Me.Iy)()}},[ni,ti.current,gn]),(0,St.useEffect)(()=>{var jt;const Mt=xt=>{xt.preventDefault(),xt.clipboardData.setData("text",window.getSelection().toString())};return(jt=ti.current)==null||jt.addEventListener("copy",Mt),()=>{var xt;(xt=ti.current)==null||xt.removeEventListener("copy",Mt)}},[ti.current]);const zn=jt=>//i.test(jt||"");return St.createElement(St.Fragment,null,ue&&St.createElement("div",{ref:ti},ni),!ue&&!zn(ni)&&St.createElement("div",{ref:ti,style:pt({},Fe),className:`${qt||""} ${bn?"disabled-fill":""} markdown-body ${ii.current}`,dangerouslySetInnerHTML:{__html:ni}}),!ue&&zn(ni)&&St.createElement(Ue,{html:ni}),St.createElement(Le.Z,{close:!0,data:An,type:An!=null&&An.length?sn:"",style:pt({},xe),onClose:()=>Se("")}))}},53932:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{h:function(){return Lt},Z:function(){return vt}});var St=Ft(59301),Ut=Ft(57809),Me=Ft(78241),_e=Ft(3113),fe=Ft(89780),je=Ft.n(fe),ie=Ft(37036),Ne=Object.defineProperty,we=Object.defineProperties,Le=Object.getOwnPropertyDescriptors,Pe=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,Tt=(At,kt,Kt)=>kt in At?Ne(At,kt,{enumerable:!0,configurable:!0,writable:!0,value:Kt}):At[kt]=Kt,et=(At,kt)=>{for(var Kt in kt||(kt={}))Ie.call(kt,Kt)&&Tt(At,Kt,kt[Kt]);if(Pe)for(var Kt of Pe(kt))Ue.call(kt,Kt)&&Tt(At,Kt,kt[Kt]);return At},nt=(At,kt)=>we(At,Le(kt));const dt=Ut.default.Option,lt={labelCol:{span:4},wrapperCol:{span:20}},pt={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"]};var vt=({callback:At,onCancel:kt})=>{const[Kt,$t]=(0,St.useState)("python");function ne(ue){$t(pt[ue][1])}function qt(ue){At(ue)}return St.createElement(Me.default,nt(et({},lt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:qt,style:{width:500}}),St.createElement(Me.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},St.createElement(Ut.default,{getPopupContainer:ue=>ue.parentNode,onChange:ne},Object.keys(pt).map(ue=>St.createElement(dt,{key:ue,value:ue},pt[ue][0])))),St.createElement(Me.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},St.createElement(Lt,{mode:Kt})),St.createElement("div",{className:"flex-container flex-end"},St.createElement(_e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),St.createElement(_e.ZP,{type:"ghost",onClick:kt},"\u53D6\u6D88")))};function Lt({value:At,onChange:kt,mode:Kt,options:$t={}}){const ne=(0,St.useRef)(),[qt,ue]=(0,St.useState)();return(0,St.useEffect)(()=>{if(qt){let ae=function(Fe){const xe=Fe.getValue();kt&&kt(xe)};return qt.on("change",ae),()=>{qt.off("change",ae)}}},[qt,kt]),(0,St.useEffect)(()=>{qt&&qt.setOption("mode",Kt)},[qt,Kt]),(0,St.useEffect)(()=>{qt&&(At!==qt.getValue()||At==="")&&setTimeout(()=>{qt.setValue(At||"")},300)},[qt,At]),(0,St.useEffect)(()=>{if(ne.current&&!qt){const ae=je().fromTextArea(ne.current,et({mode:Kt,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},$t));ue(ae)}},[ne.current,qt]),St.createElement("div",{className:"my-codemirror-container"},St.createElement("textarea",{ref:ne}))}},12290:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{Z:function(){return ai}});var St=Ft(59301),Ut=Ft(89780),Me=Ft.n(Ut),_e=Ft(76374),fe=Ft(37036),je=Ft(6313),ie=Ft(25717),Ne=Ft(99498),we=Ft(25419),Le=Ft(67549),Pe=Ft(85149),Ie=({value:Ee="",className:pe,showTextOnly:ve,showLines:Wn,style:On={}})=>{const Kn=(0,St.useMemo)(()=>"",[Ee]);return St.createElement(St.Fragment,null,St.createElement("div",{dangerouslySetInnerHTML:{__html:Kn}}))},Ue=Ft(59301),Tt=Object.defineProperty,et=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,dt=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,vt=(Ee,pe,ve)=>pe in Ee?Tt(Ee,pe,{enumerable:!0,configurable:!0,writable:!0,value:ve}):Ee[pe]=ve,Lt=(Ee,pe)=>{for(var ve in pe||(pe={}))lt.call(pe,ve)&&vt(Ee,ve,pe[ve]);if(dt)for(var ve of dt(pe))pt.call(pe,ve)&&vt(Ee,ve,pe[ve]);return Ee},At=(Ee,pe)=>et(Ee,nt(pe));let kt=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Kt({onActionCallback:Ee,title:pe,icon:ve,actionName:Wn,className:On="",children:Kn}){function Ge(){Ee(Wn)}return Ue.createElement("a",{title:pe,className:On,onClick:Ge},Ue.createElement("i",{className:`${ve}`}),Kn)}var $t=({watch:Ee,showNullButton:pe,showNullProgramButton:ve,onActionCallback:Wn,fullScreen:On,insertTemp:Kn,hidetoolBar:Ge,extraUse:Tn})=>{const Si=[...kt,{title:`${Ee?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Ee?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ue.createElement("ul",{className:"markdown-toolbar-container"},!Ge&&Si.map((ui,ao)=>Ue.createElement("li",{key:ao},ui.actionName?Ue.createElement(Kt,At(Lt({},ui),{onActionCallback:Wn})):Ue.createElement("span",{className:"v-line"}))),pe?Ue.createElement("li",null,Ue.createElement(Kt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Wn},Ue.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ve?Ue.createElement(Ue.Fragment,null,Ue.createElement("li",null,Ue.createElement(Kt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Wn},Ue.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ue.createElement("li",null,Ue.createElement(Kt,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Wn},Ue.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Kn&&Ue.createElement("li",null,Ue.createElement(Kt,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Kn}`,onActionCallback:Wn},Ue.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Tn&&Ue.createElement("li",null,Tn),Ue.createElement("li",{className:"btn-full-screen"},Ue.createElement(Kt,{icon:`${On?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:On?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Wn})))},ne=Ft(79346),qt=Ft(78241),ue=Ft(92832),ae=Ft(3113),Fe=Object.defineProperty,xe=Object.defineProperties,Re=Object.getOwnPropertyDescriptors,En=Object.getOwnPropertySymbols,fn=Object.prototype.hasOwnProperty,bn=Object.prototype.propertyIsEnumerable,cn=(Ee,pe,ve)=>pe in Ee?Fe(Ee,pe,{enumerable:!0,configurable:!0,writable:!0,value:ve}):Ee[pe]=ve,he=(Ee,pe)=>{for(var ve in pe||(pe={}))fn.call(pe,ve)&&cn(Ee,ve,pe[ve]);if(En)for(var ve of En(pe))bn.call(pe,ve)&&cn(Ee,ve,pe[ve]);return Ee},Qt=(Ee,pe)=>xe(Ee,Re(pe));const Ae={labelCol:{span:4},wrapperCol:{span:20}};var Gn=({callback:Ee,onCancel:pe})=>{function ve(Wn){Ee(Wn)}return St.createElement(qt.default,Qt(he({},Ae),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ve,style:{width:500}}),St.createElement(qt.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},St.createElement(ue.default,null)),St.createElement(qt.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},St.createElement(ue.default,null)),St.createElement("div",{className:"flex-container flex-end"},St.createElement(ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),St.createElement(ae.ZP,{type:"ghost",onClick:pe},"\u53D6\u6D88")))},An=Ft(53932),Se=Ft(28451),sn=Ft(43418),wn=Ft(95237),Xn=Ft(16406),Hn=Ft(59301),ii=({callback:Ee,onCancel:pe})=>{const ve=document.createElement("canvas"),Wn=ve.getContext("2d");ve.width=1e3,ve.height=800,Wn.fillStyle="#ffffff",Wn.fillRect(0,0,ve.width,ve.height);const On=ve.toDataURL("image/png");return Hn.createElement(sn.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Hn.createElement(wn.Z,{style:{height:"100vh"}},Hn.createElement(Xn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:On,visible:!0,title:String(Date.now())},onOk:Kn=>{Ee({src:Kn.url})},onClose:pe})))},re=Ft(12378);function Dn(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Dn,go.CommandHandler),Dn.prototype.canAlignSelection=function(){var Ee=this.diagram;return!(Ee===null||Ee.isReadOnly||Ee.isModelReadOnly||Ee.selection.count<2)},Dn.prototype.alignLeft=function(){var Ee=this.diagram;Ee.startTransaction("aligning left");var pe=1/0;Ee.selection.each(function(ve){ve instanceof go.Link||(pe=Math.min(ve.position.x,pe))}),Ee.selection.each(function(ve){ve instanceof go.Link||ve.move(new go.Point(pe,ve.position.y))}),Ee.commitTransaction("aligning left")},Dn.prototype.alignRight=function(){var Ee=this.diagram;Ee.startTransaction("aligning right");var pe=-1/0;Ee.selection.each(function(ve){if(!(ve instanceof go.Link)){var Wn=ve.actualBounds.x+ve.actualBounds.width;pe=Math.max(Wn,pe)}}),Ee.selection.each(function(ve){ve instanceof go.Link||ve.move(new go.Point(pe-ve.actualBounds.width,ve.position.y))}),Ee.commitTransaction("aligning right")},Dn.prototype.alignTop=function(){var Ee=this.diagram;Ee.startTransaction("alignTop");var pe=1/0;Ee.selection.each(function(ve){ve instanceof go.Link||(pe=Math.min(ve.position.y,pe))}),Ee.selection.each(function(ve){ve instanceof go.Link||ve.move(new go.Point(ve.position.x,pe))}),Ee.commitTransaction("alignTop")},Dn.prototype.alignBottom=function(){var Ee=this.diagram;Ee.startTransaction("aligning bottom");var pe=-1/0;Ee.selection.each(function(ve){if(!(ve instanceof go.Link)){var Wn=ve.actualBounds.y+ve.actualBounds.height;pe=Math.max(Wn,pe)}}),Ee.selection.each(function(ve){ve instanceof go.Link||ve.move(new go.Point(ve.actualBounds.x,pe-ve.actualBounds.height))}),Ee.commitTransaction("aligning bottom")},Dn.prototype.alignCenterX=function(){var Ee=this.diagram,pe=Ee.selection.first();if(pe){Ee.startTransaction("aligning Center X");var ve=pe.actualBounds.x+pe.actualBounds.width/2;Ee.selection.each(function(Wn){Wn instanceof go.Link||Wn.move(new go.Point(ve-Wn.actualBounds.width/2,Wn.actualBounds.y))}),Ee.commitTransaction("aligning Center X")}},Dn.prototype.alignCenterY=function(){var Ee=this.diagram,pe=Ee.selection.first();if(pe){Ee.startTransaction("aligning Center Y");var ve=pe.actualBounds.y+pe.actualBounds.height/2;Ee.selection.each(function(Wn){Wn instanceof go.Link||Wn.move(new go.Point(Wn.actualBounds.x,ve-Wn.actualBounds.height/2))}),Ee.commitTransaction("aligning Center Y")}},Dn.prototype.alignColumn=function(Ee){var pe=this.diagram;pe.startTransaction("align Column"),Ee===void 0&&(Ee=0),Ee=parseFloat(Ee);var ve=new Array;pe.selection.each(function(Tn){Tn instanceof go.Link||ve.push(Tn)});for(var Wn=0;Wn0){for(var Tn=Kn.elt(Ge-1);Tn!==null&&Tn.isTreeExpanded&&!Tn.isTreeLeaf;){var Si=this._sortTreeChildrenByY(Tn);Tn=Si.last()}Tn!==null&&Ee.select(Tn)}else Ee.select(On)}}else if(ve.key==="Down")if(pe.isTreeExpanded&&!pe.isTreeLeaf){var Wn=this._sortTreeChildrenByY(pe).first();Wn!==null&&Ee.select(Wn)}else for(;pe!==null;){var On=pe.findTreeParentNode();if(On===null)break;var Kn=this._sortTreeChildrenByY(On),Ge=Kn.indexOf(pe);if(GeKn.y?1:On.xKn.x?1:0}),pe},Dn.prototype.copyToClipboard=function(Ee){go.CommandHandler.prototype.copyToClipboard.call(this,Ee),this._lastPasteOffset.set(this.pasteOffset)},Dn.prototype.pasteFromClipboard=function(){var Ee=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Ee,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Ee},Object.defineProperty(Dn.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Ee){if(Ee!=="move"&&Ee!=="select"&&Ee!=="scroll"&&Ee!=="tree"&&Ee!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Ee);this._arrowKeyBehavior=Ee}}),Object.defineProperty(Dn.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Ee){if(!(Ee instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Ee);this._pasteOffset.set(Ee)}});var Zn=Dn,qn=Ft(74413),ni=Ft(43604),Hi=Ft(99064),Jo={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},pn=Ft(24065),Pn=Ft(59301),ti=(Ee,pe,ve)=>new Promise((Wn,On)=>{var Kn=Si=>{try{Tn(ve.next(Si))}catch(ui){On(ui)}},Ge=Si=>{try{Tn(ve.throw(Si))}catch(ui){On(ui)}},Tn=Si=>Si.done?Wn(Si.value):Promise.resolve(Si.value).then(Kn,Ge);Tn((ve=ve.apply(Ee,pe)).next())});function gn({onCancel:Ee,callback:pe}){let ve=(0,St.useRef)(),Wn=(0,St.useRef)(),On=(0,St.useRef)(),Kn=(0,St.useRef)(!1);const Ge=(0,St.useRef)(!1),[Tn,Si]=(0,St.useState)(0);function ui(){const oe=re.bx.make,mn={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"};ve.current=new re.S0(Wn.current,{padding:20,grid:oe(re.s_,"Grid",oe(re.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),oe(re.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Yn=>{var Ci=Yn.diagram.commandHandler.addTopLevelParts(Yn.diagram.selection,!0);Ci||Yn.diagram.currentTool.doCancel()},commandHandler:oe(Zn),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Yn=>{var Ci=Yn.subject;Ci.location=Ci.location.copy().snapToGridPoint(Yn.diagram.grid.gridOrigin,Yn.diagram.grid.gridCellSize),setTimeout(()=>{Yn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Yn=>{var Ci=Yn.subject;setTimeout(()=>{Yn.diagram.commandHandler.editTextBlock()})},LinkRelinked:Yn=>{var Ci=Yn.parameter.part;Ci.invalidateConnectedLinks();var Bi=Yn.subject;Yn.diagram.toolManager.linkingTool.isForwards?Bi.toNode.invalidateConnectedLinks():Bi.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),ve.current.nodeTemplate=oe(re.NB,"Auto",{locationSpot:re.z6.Center,locationObjectName:"SHAPE",desiredSize:new re.$u(120,60),minSize:new re.$u(40,40),resizable:!0,resizeCellSize:new re.$u(10,10),rotatable:!0},new re.KX("location","loc",re.E9.parse).makeTwoWay(re.E9.stringify),new re.KX("desiredSize","size",re.$u.parse).makeTwoWay(re.$u.stringify),oe(re.bn,{name:"SHAPE",fill:mn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:re.z6.AllSides,toSpot:re.z6.AllSides},new re.KX("figure"),new re.KX("fill"),new re.KX("stroke","borderColor"),new re.KX("strokeWidth","thickness"),new re.KX("strokeDashArray","dash")),oe(re.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),oe(re.al,{margin:1,textAlign:"center",overflow:re.al.OverflowEllipsis,editable:!0},new re.KX("text").makeTwoWay(),new re.KX("stroke","color"))),ve.current.nodeTemplate.toolTip=oe("ToolTip",oe(re.s_,"Vertical",{maxSize:new re.$u(200,NaN)},oe(re.al,{font:"bold 10pt sans-serif",textAlign:"center"},new re.KX("text")),oe(re.al,{font:"10pt sans-serif",textAlign:"center"},new re.KX("text","details"))));function li(Yn,Ci){var Bi=(Ai,wo)=>{Ai.handled=!0,Ai.diagram.model.commit(nr=>{var Ro=wo.part.adornedPart,Do=new re.E9().setRectSpot(Ro.actualBounds,Yn);Do.subtract(Ro.location),Do.scale(2,2),Do.x+=Math.sign(Do.x)*130,Do.y+=Math.sign(Do.y)*130,Do.add(Ro.location),Do.snapToGridPoint(Ai.diagram.grid.gridOrigin,Ai.diagram.grid.gridCellSize);var hr=nr.copyNodeData(Ro.data);nr.setGroupKeyForNodeData(hr,nr.getGroupKeyForNodeData(Ro.data)),nr.addNodeData(hr);var on={from:Ro.key,to:nr.getKeyForNodeData(hr)};nr.addLinkData(on);var Zo=Ai.diagram.findNodeForData(hr);Zo.location=Do,Ai.diagram.select(Zo),setTimeout(()=>{Ai.diagram.commandHandler.editTextBlock()},20)})};return oe(re.bn,{figure:Ci,alignment:Yn,alignmentFocus:Yn.opposite(),width:Yn.equals(re.z6.Top)||Yn.equals(re.z6.Bottom)?25:18,height:Yn.equals(re.z6.Top)||Yn.equals(re.z6.Bottom)?18:25,fill:"orange",stroke:mn.white,strokeWidth:4,mouseEnter:(Ai,wo)=>wo.fill="dodgerblue",mouseLeave:(Ai,wo)=>wo.fill="orange",isActionable:!0,click:Bi,contextClick:Bi})}function eo(Yn){return oe(re.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:(Ci,Bi)=>Bi.fill="dodgerblue",mouseLeave:(Ci,Bi)=>Bi.fill="orange",click:(Ci,Bi)=>{Ci.diagram.commandHandler.showContextMenu(Bi.part.adornedPart)}},Yn||{})}ve.current.nodeTemplate.selectionAdornmentTemplate=oe(re.uz,"Spot",oe(re.Vm,{padding:10}),li(re.z6.Top,"TriangleUp"),li(re.z6.Left,"TriangleLeft"),li(re.z6.Right,"TriangleRight"),li(re.z6.Bottom,"TriangleDown"),eo({alignment:new re.z6(.75,0)}));function De(Yn,Ci){return(Bi,Ai)=>{Bi.handled=!0,Bi.diagram.model.commit(wo=>{wo.set(Ai.part.adornedPart.data,Yn,Ci)})}}function dn(Yn,Ci){return Ci||(Ci="color"),oe(re.bn,{width:16,height:16,stroke:"lightgray",fill:Yn,margin:1,background:"transparent",mouseEnter:(Bi,Ai)=>Ai.stroke="dodgerblue",mouseLeave:(Bi,Ai)=>Ai.stroke="lightgray",click:De(Ci,Yn),contextClick:De(Ci,Yn)})}function ro(){return[oe("ContextMenuButton",oe(re.s_,"Horizontal",dn(mn.white,"fill"),dn(mn.beige,"fill"),dn(mn.extralightblue,"fill"),dn(mn.extralightred,"fill"))),oe("ContextMenuButton",oe(re.s_,"Horizontal",dn(mn.lightgray,"fill"),dn(mn.lightgreen,"fill"),dn(mn.lightblue,"fill"),dn(mn.lightred,"fill")))]}function Uo(){return[oe("ContextMenuButton",oe(re.s_,"Horizontal",dn(mn.black),dn(mn.green),dn(mn.blue),dn(mn.red))),oe("ContextMenuButton",oe(re.s_,"Horizontal",dn(mn.white),dn(mn.magenta),dn(mn.purple),dn(mn.orange)))]}function Vo(Yn,Ci){return Ci||(Ci="thickness"),oe(re.bn,"LineH",{width:16,height:16,strokeWidth:Yn,margin:1,background:"transparent",mouseEnter:(Bi,Ai)=>Ai.background="dodgerblue",mouseLeave:(Bi,Ai)=>Ai.background="transparent",click:De(Ci,Yn),contextClick:De(Ci,Yn)})}function Ii(Yn,Ci){return Ci||(Ci="dash"),oe(re.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Yn,margin:1,background:"transparent",mouseEnter:(Bi,Ai)=>Ai.background="dodgerblue",mouseLeave:(Bi,Ai)=>Ai.background="transparent",click:De(Ci,Yn),contextClick:De(Ci,Yn)})}function Fi(){return[oe("ContextMenuButton",oe(re.s_,"Horizontal",Vo(1),Vo(2),Vo(3),Vo(4))),oe("ContextMenuButton",oe(re.s_,"Horizontal",Ii(null),Ii([2,4]),Ii([4,4])))]}function Pi(Yn,Ci){return Ci||(Ci="figure"),oe(re.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Yn,margin:1,background:"transparent",mouseEnter:(Bi,Ai)=>Ai.fill="dodgerblue",mouseLeave:(Bi,Ai)=>Ai.fill="lightgray",click:De(Ci,Yn),contextClick:De(Ci,Yn)})}ve.current.nodeTemplate.contextMenu=oe("ContextMenu",oe("ContextMenuButton",oe(re.s_,"Horizontal",Pi("Rectangle"),Pi("RoundedRectangle"),Pi("Ellipse"),Pi("Diamond"))),oe("ContextMenuButton",oe(re.s_,"Horizontal",Pi("Parallelogram2"),Pi("ManualOperation"),Pi("Procedure"),Pi("Cylinder1"))),oe("ContextMenuButton",oe(re.s_,"Horizontal",Pi("Terminator"),Pi("CreateRequest"),Pi("Document"),Pi("TriangleDown"))),ro(),Uo(),Fi()),ve.current.groupTemplate=oe(re.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:re.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Yn,Ci)=>{var Bi=Ci.addMembers(Ci.diagram.selection,!0);Bi||Ci.diagram.currentTool.doCancel()},avoidable:!1},new re.KX("location","loc",re.E9.parse).makeTwoWay(re.E9.stringify),oe(re.s_,"Auto",{name:"BODY"},oe(re.bn,{parameter1:10,fill:mn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:re.z6.AllSides,toSpot:re.z6.AllSides},new re.KX("fill"),new re.KX("stroke","color"),new re.KX("strokeWidth","thickness"),new re.KX("strokeDashArray","dash")),oe(re.Vm,{background:"transparent",margin:20})),oe(re.al,{alignment:re.z6.Top,alignmentFocus:re.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new re.KX("text"),new re.KX("stroke","color"))),ve.current.groupTemplate.selectionAdornmentTemplate=oe(re.uz,"Spot",oe(re.s_,"Auto",oe(re.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),oe(re.Vm,{margin:1.5})),eo({alignment:re.z6.TopRight,alignmentFocus:re.z6.BottomRight})),ve.current.groupTemplate.contextMenu=oe("ContextMenu",ro(),Uo(),Fi()),ve.current.linkTemplate=oe(re.rU,{layerName:"Foreground",routing:re.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new re.KX("fromSpot","fromSpot",re.z6.parse),new re.KX("toSpot","toSpot",re.z6.parse),new re.KX("fromShortLength","dir",Yn=>Yn>=1?10:0),new re.KX("toShortLength","dir",Yn=>Yn>=1?10:0),new re.KX("points").makeTwoWay(),oe(re.bn,{strokeWidth:2},new re.KX("stroke","color"),new re.KX("strokeWidth","thickness"),new re.KX("strokeDashArray","dash")),oe(re.bn,{segmentIndex:0,segmentOffset:new re.E9(15,0),segmentOrientation:re.rU.OrientAlong,alignmentFocus:re.z6.Right,figure:"circle",width:10,strokeWidth:0},new re.KX("fill","color"),new re.KX("visible","dir",Yn=>Yn===1)),oe(re.bn,{segmentIndex:-1,segmentOffset:new re.E9(-10,6),segmentOrientation:re.rU.OrientPlus90,alignmentFocus:re.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new re.KX("fill","color"),new re.KX("visible","dir",Yn=>Yn>=1),new re.KX("width","thickness",Yn=>7+3*Yn),new re.KX("height","thickness",Yn=>7+3*Yn),new re.KX("segmentOffset","thickness",Yn=>new re.E9(-15,4+1.5*Yn))),oe(re.bn,{segmentIndex:0,segmentOffset:new re.E9(15,-6),segmentOrientation:re.rU.OrientMinus90,alignmentFocus:re.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new re.KX("fill","color"),new re.KX("visible","dir",Yn=>Yn===2),new re.KX("width","thickness",Yn=>7+3*Yn),new re.KX("height","thickness",Yn=>7+3*Yn),new re.KX("segmentOffset","thickness",Yn=>new re.E9(-15,4+1.5*Yn))),oe(re.al,{alignmentFocus:new re.z6(0,1,-4,0),editable:!0},new re.KX("text").makeTwoWay(),new re.KX("stroke","color"))),ve.current.linkTemplate.selectionAdornmentTemplate=oe(re.uz,oe(re.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Wo(2)},new re.KX("pathPattern","thickness",Wo)),eo({alignmentFocus:new re.z6(0,0,-6,-4)}));function Wo(Yn){return oe(re.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Yn+4).toString()+" H3"})}function br(Yn){var Ci="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Yn===0?Ci="M0 0 M16 16 M0 8 L16 8":Yn===2&&(Ci="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),oe(re.bn,{geometryString:Ci,margin:2,background:"transparent",mouseEnter:(Bi,Ai)=>Ai.background="dodgerblue",mouseLeave:(Bi,Ai)=>Ai.background="transparent",click:De("dir",Yn),contextClick:De("dir",Yn)})}function wr(Yn){var Ci=(Bi,Ai)=>{Bi.handled=!0,Bi.diagram.model.commit(wo=>{var nr=Ai.part.adornedPart;wo.set(nr.data,Yn?"toSpot":"fromSpot",re.z6.stringify(re.z6.AllSides)),(Yn?nr.toNode:nr.fromNode).invalidateConnectedLinks()})};return oe(re.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Bi,Ai)=>Ai.background="dodgerblue",mouseLeave:(Bi,Ai)=>Ai.background="transparent",click:Ci,contextClick:Ci})}function $e(Yn,Ci){var Bi=0,Ai=re.z6.RightSide;Yn.equals(re.z6.Top)?(Bi=270,Ai=re.z6.TopSide):Yn.equals(re.z6.Left)?(Bi=180,Ai=re.z6.LeftSide):Yn.equals(re.z6.Bottom)&&(Bi=90,Ai=re.z6.BottomSide),Ci||(Bi-=180);var wo=(nr,Ro)=>{nr.handled=!0,nr.diagram.model.commit(Do=>{var hr=Ro.part.adornedPart;Do.set(hr.data,Ci?"toSpot":"fromSpot",re.z6.stringify(Ai)),(Ci?hr.toNode:hr.fromNode).invalidateConnectedLinks()})};return oe(re.bn,{alignment:Yn,alignmentFocus:Yn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Bi,background:"transparent",mouseEnter:(nr,Ro)=>Ro.background="dodgerblue",mouseLeave:(nr,Ro)=>Ro.background="transparent",click:wo,contextClick:wo})}ve.current.linkTemplate.contextMenu=oe("ContextMenu",Uo(),Fi(),oe("ContextMenuButton",oe(re.s_,"Horizontal",br(0),br(1),br(2))),oe("ContextMenuButton",oe(re.s_,"Horizontal",oe(re.s_,"Spot",wr(!1),$e(re.z6.Top,!1),$e(re.z6.Left,!1),$e(re.z6.Right,!1),$e(re.z6.Bottom,!1)),oe(re.s_,"Spot",{margin:new re.Zt(0,0,0,2)},wr(!0),$e(re.z6.Top,!0),$e(re.z6.Left,!0),$e(re.z6.Right,!0),$e(re.z6.Bottom,!0)))));const vr=`{ "class": "GraphLinksModel", +`)}catch(Bt){}if(En){let Bt=-1;return Gn=Gn.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Zt,Nt,me){var Sn;return++Bt,Dn(Zt,Bt,(Sn=cn==null?void 0:cn[Bt])==null?void 0:Sn.value.replaceAll("<","<").replaceAll(">",">"))}),`
        ${qn(Gn||"")}
        `}let jt=qn(Gn);jt=(0,Me.ZP)(jt);const Mt=(0,Me.ez)();Gn.match(/\[TOC\]/)&&(jt=jt.replace("

        [TOC]

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

        ${th||

        `):$e.replaceSelection(`${th||`):((rs=ss==null?void 0:ss.type)==null?void 0:rs.indexOf("video"))>-1?$e.replaceSelection(``):((qr=ss==null?void 0:ss.type)==null?void 0:qr.indexOf("pdf"))>-1?$e.replaceSelection(`${ss.name}`):mr.includes(Vl)?$e.replaceSelection(`${ss.name}`):$e.replaceSelection(`[${ss.name}](${Tl})`),$e.focus();case As:const{row:Zl,col:Sr,align:Is}=Ki;let eh=` -`;for(let xa=0;xa{xa.id?$e.replaceSelection(`![,](/api/attachments/${xa.id}?type=${xa.content_type})`):(xa==null?void 0:xa.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":$e.replaceSelection("`$$"+Ki+"$$`");break;case Qi:case vo:case Ri:const{src:Tl,alt:th}=Ki,ss=Mi,Zl=(No=(zi=(un=ss==null?void 0:ss.name)==null?void 0:un.split("."))==null?void 0:zi.pop)==null?void 0:No.call(zi);return((Rr=ss==null?void 0:ss.type)==null?void 0:Rr.indexOf("image"))>-1||!(ss!=null&&ss.type)?ss!=null&&ss.align||ss!=null&&ss.width?$e.replaceSelection(`

        ${th||

        `):$e.replaceSelection(`${th||`):((rs=ss==null?void 0:ss.type)==null?void 0:rs.indexOf("video"))>-1?$e.replaceSelection(``):((qr=ss==null?void 0:ss.type)==null?void 0:qr.indexOf("pdf"))>-1?$e.replaceSelection(`${ss.name}`):mr.includes(Zl)?$e.replaceSelection(`${ss.name}`):$e.replaceSelection(`[${ss.name}](${Tl})`),$e.focus();case As:const{row:Kl,col:Sr,align:Is}=Ki;let eh=` +`;for(let xa=0;xa{switch(Ai){case ji:return St.createElement(Gn,{callback:Wt,onCancel:ca});case er:return St.createElement(An.Z,{callback:Wt,onCancel:ca});case Qi:return St.createElement(Se.Z,{callback:Wt,onCancel:ca});case Ti:return St.createElement(Bn,{callback:Wt,onCancel:ca});case As:return St.createElement(Bt,{callback:Wt,onCancel:ca});case"maths-latex":return St.createElement(xn,{showSaveButton:!0,callback:Wt});case"inline-latex":return St.createElement(yn.Z,{showSaveButton:!0,callback:Wt});default:return null}},[Ai]);function ca(){wo("")}(0,St.useEffect)(()=>{if(Ao.current){let Ki=function(rs){No=!0,Rr=rs.pageY},Mi=function(){No=!1},un=function(rs){if(No){let qr=rs.pageY-Rr;qr<0&&(qr=0),qr>300&&(qr=300);let vi=Wn+qr+"px";hr(vi)}},zi=Ao.current,No=!1,Rr=0;return zi.addEventListener("mousedown",Ki),document.addEventListener("mousemove",un),document.addEventListener("mouseup",Mi),()=>{zi.removeEventListener("mousedown",Ki),document.removeEventListener("mousemove",un),document.removeEventListener("mouseup",Mi)}}},[$e,Ao]),(0,St.useEffect)(()=>{hr(Wn)},[Wn]);const Mu=Ra(ve),_a=Ra(Do),lu={width:Mu,height:_a},$u=(0,St.useMemo)(()=>{if(nr){let Ki=new Date(nr),Mi=Ki.getHours(),un=Ki.getMinutes(),zi=Ki.getSeconds();return Mi=Mi<10?"0"+Mi:Mi,un=un<10?"0"+un:un,zi=zi<10?"0"+zi:zi,`${Mi}:${un}:${zi}`}return 0},[nr]),ad=Ki=>{const Mi=[];if(li){let un=-1;Ki=Ki.replace(/(@▁▁@|@▁@)/g,function(zi,No,Rr){Mi.push({multiLine:zi!==Ct})})}return Mi};function Ih(){window.sessionStorage.removeItem(ui),Zo(!1),Ro(0)}function Tr(){Zo(!1),Ro(0),$e.setValue(window.sessionStorage.getItem(ui))}(0,St.useEffect)(()=>{ei[Ai]&&Ai!==vo&&Ai!==Ti&&setTimeout(()=>{const Ki=document.getElementsByClassName("markdown-popup-form")[0],Mi=window.innerWidth/2-Ki.offsetWidth/2,un=window.innerHeight/2-Ki.offsetHeight/2;Ko(Mi),os(un)},0)},[Ai]);const _r=Ki=>{Ki.preventDefault();const Mi=Ki.clientX-en,un=Ki.clientY-ia;document.body.onmousemove=zi=>{let No=zi.clientX-Mi,Rr=zi.clientY-un;const rs=document.getElementsByClassName("markdown-popup-form")[0],qr=window.innerWidth-rs.offsetWidth,vi=window.innerHeight-rs.offsetHeight;No=Math.max(0,Math.min(No,qr)),Rr=Math.max(0,Math.min(Rr,vi)),gl(zi.clientX,zi.clientY,Mi,un)&&(Ko(No),os(Rr))},document.body.onmouseup=function(){document.body.onmousemove=null}},gl=(Ki,Mi,un,zi)=>{const No=document.body.clientHeight,Rr=document.body.clientWidth;return Ki<20&&un>Ki||Ki>Rr-20&&unMi||Mi>No-20&&ziqt in ne?Pe(ne,qt,{enumerable:!0,configurable:!0,writable:!0,value:ue}):ne[qt]=ue,lt=(ne,qt)=>{for(var ue in qt||(qt={}))et.call(qt,ue)&&dt(ne,ue,qt[ue]);if(Tt)for(var ue of Tt(qt))nt.call(qt,ue)&&dt(ne,ue,qt[ue]);return ne},pt=(ne,qt)=>Ie(ne,Ue(qt));const{useForm:vt}=St.default,Lt={width:280,marginRight:10},At={labelCol:{span:5},wrapperCol:{span:19}};var kt=({callback:ne,onCancel:qt})=>{const[ue]=vt();let ae=(0,we.useRef)();function Fe(En){ae.current.width=ue.getFieldValue("width"),ae.current.align=ue.getFieldValue("align"),ne(En,ae.current)}function xe(En,fn){if(En.status===-1){Ut.ZP.error(En.message);return}ue.setFieldsValue({src:`/api/attachments/${En.id}`,type:fn.type})}function Re(En){let fn=En.target.files[0];ae.current=fn,$t(fn,xe)}return Le.createElement(St.default,pt(lt({form:ue},At),{className:"upload-image-panel",onFinish:Fe,style:{width:470,overflow:"hidden"}}),Le.createElement(St.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Le.createElement("div",{className:"flex-container"},Le.createElement(St.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},Le.createElement(Me.default,{style:Lt})),Le.createElement(Kt,{onFileChange:Re}))),Le.createElement(St.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Le.createElement(Me.default,{style:{width:264}})),Le.createElement(St.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Le.createElement(_e.Z,null,Le.createElement(St.default.Item,{name:"width",style:{margin:0}},Le.createElement(fe.Z,{style:{width:264}})),Le.createElement("span",{className:"ml8"},"%"))),Le.createElement(St.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Le.createElement(je.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"}]})),Le.createElement("aside",null,Le.createElement(St.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Le.createElement(ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Le.createElement(ie.ZP,{type:"default",onClick:qt},"\u53D6\u6D88"))))};function Kt({onFileChange:ne}){return Le.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Le.createElement("input",{type:"file",onChange:ne}))}function $t(ne,qt){if(!ne)throw new String("\u6CA1\u6709\u6587\u4EF6");let ue=new FormData;ue.append("editormd-image-file",ne),ue.append("file_param_name","editormd-image-file"),ue.append("byxhr","true");var ae=new window.XMLHttpRequest;ae.withCredentials=!0,ae.addEventListener("load",function(Fe){qt(JSON.parse(Fe.target.responseText),ne)},!1),ae.addEventListener("error",function(Fe){console.error(Fe)},!1),ae.open("POST",`${Ne.KI}/api/attachments.json`),ae.send(ue)}},79346:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{Z:function(){return Me}});var St=Ft(59301),Ut=Ft(4676);class Me extends St.Component{constructor(fe){super(fe);const je=window.document;this.node=je.createElement("div"),je.body.appendChild(this.node)}render(){const{children:fe}=this.props;return(0,Ut.createPortal)(fe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23954:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{SV:function(){return ti},ZP:function(){return Pn}});var St=Ft(59301),Ut=Ft(76374);const Me={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"]},_e={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(` +`),$e.focus();default:throw new Error}},[$e,Ai]),Js=(0,St.useMemo)(()=>{switch(Ai){case ji:return St.createElement(Gn,{callback:Wt,onCancel:ca});case er:return St.createElement(An.Z,{callback:Wt,onCancel:ca});case Qi:return St.createElement(Se.Z,{callback:Wt,onCancel:ca});case Ti:return St.createElement(Bn,{callback:Wt,onCancel:ca});case As:return St.createElement(Bt,{callback:Wt,onCancel:ca});case"maths-latex":return St.createElement(xn,{showSaveButton:!0,callback:Wt});case"inline-latex":return St.createElement(yn.Z,{showSaveButton:!0,callback:Wt});default:return null}},[Ai]);function ca(){wo("")}(0,St.useEffect)(()=>{if(Ao.current){let Ki=function(rs){No=!0,Rr=rs.pageY},Mi=function(){No=!1},un=function(rs){if(No){let qr=rs.pageY-Rr;qr<0&&(qr=0),qr>300&&(qr=300);let vi=Wn+qr+"px";hr(vi)}},zi=Ao.current,No=!1,Rr=0;return zi.addEventListener("mousedown",Ki),document.addEventListener("mousemove",un),document.addEventListener("mouseup",Mi),()=>{zi.removeEventListener("mousedown",Ki),document.removeEventListener("mousemove",un),document.removeEventListener("mouseup",Mi)}}},[$e,Ao]),(0,St.useEffect)(()=>{hr(Wn)},[Wn]);const Mu=Ra(ve),_a=Ra(Do),Vl={width:Mu,height:_a},$u=(0,St.useMemo)(()=>{if(nr){let Ki=new Date(nr),Mi=Ki.getHours(),un=Ki.getMinutes(),zi=Ki.getSeconds();return Mi=Mi<10?"0"+Mi:Mi,un=un<10?"0"+un:un,zi=zi<10?"0"+zi:zi,`${Mi}:${un}:${zi}`}return 0},[nr]),ad=Ki=>{const Mi=[];if(li){let un=-1;Ki=Ki.replace(/(@▁▁@|@▁@)/g,function(zi,No,Rr){Mi.push({multiLine:zi!==Ct})})}return Mi};function Ih(){window.sessionStorage.removeItem(ui),Zo(!1),Ro(0)}function Tr(){Zo(!1),Ro(0),$e.setValue(window.sessionStorage.getItem(ui))}(0,St.useEffect)(()=>{ei[Ai]&&Ai!==vo&&Ai!==Ti&&setTimeout(()=>{const Ki=document.getElementsByClassName("markdown-popup-form")[0],Mi=window.innerWidth/2-Ki.offsetWidth/2,un=window.innerHeight/2-Ki.offsetHeight/2;Ko(Mi),os(un)},0)},[Ai]);const _r=Ki=>{Ki.preventDefault();const Mi=Ki.clientX-en,un=Ki.clientY-ia;document.body.onmousemove=zi=>{let No=zi.clientX-Mi,Rr=zi.clientY-un;const rs=document.getElementsByClassName("markdown-popup-form")[0],qr=window.innerWidth-rs.offsetWidth,vi=window.innerHeight-rs.offsetHeight;No=Math.max(0,Math.min(No,qr)),Rr=Math.max(0,Math.min(Rr,vi)),gl(zi.clientX,zi.clientY,Mi,un)&&(Ko(No),os(Rr))},document.body.onmouseup=function(){document.body.onmousemove=null}},gl=(Ki,Mi,un,zi)=>{const No=document.body.clientHeight,Rr=document.body.clientWidth;return Ki<20&&un>Ki||Ki>Rr-20&&unMi||Mi>No-20&&ziqt in ne?Pe(ne,qt,{enumerable:!0,configurable:!0,writable:!0,value:ue}):ne[qt]=ue,lt=(ne,qt)=>{for(var ue in qt||(qt={}))et.call(qt,ue)&&dt(ne,ue,qt[ue]);if(Tt)for(var ue of Tt(qt))nt.call(qt,ue)&&dt(ne,ue,qt[ue]);return ne},pt=(ne,qt)=>Ie(ne,Ue(qt));const{useForm:vt}=St.default,Lt={width:280,marginRight:10},At={labelCol:{span:5},wrapperCol:{span:19}};var kt=({callback:ne,onCancel:qt})=>{const[ue]=vt();let ae=(0,we.useRef)();function Fe(En){ae.current.width=ue.getFieldValue("width"),ae.current.align=ue.getFieldValue("align"),ne(En,ae.current)}function xe(En,fn){if(En.status===-1){Ut.ZP.error(En.message);return}ue.setFieldsValue({src:`/api/attachments/${En.id}`,type:fn.type})}function Re(En){let fn=En.target.files[0];ae.current=fn,$t(fn,xe)}return Le.createElement(St.default,pt(lt({form:ue},At),{className:"upload-image-panel",onFinish:Fe,style:{width:470,overflow:"hidden"}}),Le.createElement(St.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Le.createElement("div",{className:"flex-container"},Le.createElement(St.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},Le.createElement(Me.default,{style:Lt})),Le.createElement(Kt,{onFileChange:Re}))),Le.createElement(St.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Le.createElement(Me.default,{style:{width:264}})),Le.createElement(St.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Le.createElement(_e.Z,null,Le.createElement(St.default.Item,{name:"width",style:{margin:0}},Le.createElement(fe.Z,{style:{width:264}})),Le.createElement("span",{className:"ml8"},"%"))),Le.createElement(St.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Le.createElement(je.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"}]})),Le.createElement("aside",null,Le.createElement(St.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Le.createElement(ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Le.createElement(ie.ZP,{type:"default",onClick:qt},"\u53D6\u6D88"))))};function Kt({onFileChange:ne}){return Le.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Le.createElement("input",{type:"file",onChange:ne}))}function $t(ne,qt){if(!ne)throw new String("\u6CA1\u6709\u6587\u4EF6");let ue=new FormData;ue.append("editormd-image-file",ne),ue.append("file_param_name","editormd-image-file"),ue.append("byxhr","true");var ae=new window.XMLHttpRequest;ae.withCredentials=!0,ae.addEventListener("load",function(Fe){qt(JSON.parse(Fe.target.responseText),ne)},!1),ae.addEventListener("error",function(Fe){console.error(Fe)},!1),ae.open("POST",`${Ne.KI}/api/attachments.json`),ae.send(ue)}},79346:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{Z:function(){return Me}});var St=Ft(59301),Ut=Ft(4676);class Me extends St.Component{constructor(fe){super(fe);const je=window.document;this.node=je.createElement("div"),je.body.appendChild(this.node)}render(){const{children:fe}=this.props;return(0,Ut.createPortal)(fe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23954:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{SV:function(){return ti},ZP:function(){return Pn}});var St=Ft(59301),Ut=Ft(76374);const Me={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"]},_e={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"]},fe={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(` @@ -1085,10 +1085,10 @@ ${Se} `)},{label:"include ",content:["#include "].join(` `)}]},je={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(` `)}]},ie={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 Ne=Ft(53184),we=Ft.n(Ne),Le=Object.defineProperty,Pe=Object.defineProperties,Ie=Object.getOwnPropertyDescriptors,Ue=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,nt=(gn,Bn,zn)=>Bn in gn?Le(gn,Bn,{enumerable:!0,configurable:!0,writable:!0,value:zn}):gn[Bn]=zn,dt=(gn,Bn)=>{for(var zn in Bn||(Bn={}))Tt.call(Bn,zn)&&nt(gn,zn,Bn[zn]);if(Ue)for(var zn of Ue(Bn))et.call(Bn,zn)&&nt(gn,zn,Bn[zn]);return gn},lt=(gn,Bn)=>Pe(gn,Ie(Bn)),pt=(gn,Bn,zn)=>new Promise((jt,Mt)=>{var xt=Nt=>{try{Zt(zn.next(Nt))}catch(me){Mt(me)}},Bt=Nt=>{try{Zt(zn.throw(Nt))}catch(me){Mt(me)}},Zt=Nt=>Nt.done?jt(Nt.value):Promise.resolve(Nt.value).then(xt,Bt);Zt((zn=zn.apply(gn,Bn)).next())});const vt={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"]}},Lt=(gn,Bn)=>Bn.map(zn=>({label:zn,kind:gn.languages.CompletionItemKind.Keyword,insertText:zn})),At=gn=>Object.keys(vt.tables).map(Bn=>({label:Bn,kind:gn.languages.CompletionItemKind.Variable,insertText:Bn})),kt=(gn,Bn)=>{const zn=vt.tables[gn];return zn?zn.map(jt=>({label:jt,kind:Bn.languages.CompletionItemKind.Field,insertText:jt})):[]};function Kt(gn,Bn,zn,jt,Mt){let xt=Bn.getWordUntilPosition(zn),Bt={startLineNumber:zn.lineNumber,endLineNumber:zn.lineNumber,startColumn:xt.startColumn,endColumn:xt.endColumn},Zt=jt.map(Nt=>({label:Nt,kind:gn.languages.CompletionItemKind.Keyword,insertText:Nt,insertTextRules:gn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Bt}));return Mt.map(Nt=>{Zt.push(lt(dt({},Nt),{range:Bt}))}),Zt}var $t=gn=>{vt.languages.map(Mt=>(gn.languages.registerDocumentFormattingEditProvider(Mt,{provideDocumentFormattingEdits(xt,Bt,Zt){return pt(this,null,function*(){const Nt=we()(xt.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:xt.getFullModelRange(),text:Nt}]})}}),Mt));const Bn=fe.quickKey.map(Mt=>({label:Mt.label,kind:gn.languages.CompletionItemKind.Method,insertText:Mt.content,insertTextRules:gn.languages.CompletionItemInsertTextRule.InsertAsSnippet})),zn=je.quickKey.map(Mt=>({label:Mt.label,kind:gn.languages.CompletionItemKind.Method,insertText:Mt.content,insertTextRules:gn.languages.CompletionItemInsertTextRule.InsertAsSnippet})),jt=_e.quickKey.map(Mt=>({label:Mt.label,kind:gn.languages.CompletionItemKind.Method,insertText:Mt.content,insertTextRules:gn.languages.CompletionItemInsertTextRule.InsertAsSnippet}));gn.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Mt,xt){var Bt=Mt.getWordUntilPosition(xt),Zt={startLineNumber:xt.lineNumber,endLineNumber:xt.lineNumber,startColumn:Bt.startColumn,endColumn:Bt.endColumn},Nt=Mt.getLineContent(xt.lineNumber).substring(Bt.startColumn-2,Bt.endColumn);return{suggestions:[...fe.keywords.map(me=>({label:me,kind:gn.languages.CompletionItemKind.Function,documentation:me,insertText:me,insertTextRules:gn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Zt})),...fe.quickKey.map(me=>({label:me.label,kind:gn.languages.CompletionItemKind.Function,documentation:me.content,insertText:Nt.startsWith("#")?me.content.replace(/#/,""):me.content,insertTextRules:gn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Zt}))]}}}),gn.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Mt,xt){var Bt=Mt.getWordUntilPosition(xt),Zt={startLineNumber:xt.lineNumber,endLineNumber:xt.lineNumber,startColumn:Bt.startColumn,endColumn:Bt.endColumn};return{suggestions:[...Me.keywords.map(Nt=>({label:Nt,kind:gn.languages.CompletionItemKind.Function,documentation:Nt,insertText:Nt,insertTextRules:gn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Zt}))]}}}),gn.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Mt,xt){var Bt=Mt.getWordUntilPosition(xt),Zt={startLineNumber:xt.lineNumber,endLineNumber:xt.lineNumber,startColumn:Bt.startColumn,endColumn:Bt.endColumn},Nt=Mt.getLineContent(xt.lineNumber).substring(Bt.startColumn-2,Bt.endColumn);return{suggestions:[..._e.keywords.map(me=>({label:me,kind:gn.languages.CompletionItemKind.Function,documentation:me,insertText:me,insertTextRules:gn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Zt})),..._e.quickKey.map(me=>({label:me.label,kind:gn.languages.CompletionItemKind.Function,documentation:me.content,insertText:Nt.startsWith("#")?me.content.replace(/#/,""):me.content,insertTextRules:gn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Zt}))]}}}),gn.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Mt,xt){var Bt=Mt.getWordUntilPosition(xt),Zt={startLineNumber:xt.lineNumber,endLineNumber:xt.lineNumber,startColumn:Bt.startColumn,endColumn:Bt.endColumn},Nt=Mt.getLineContent(xt.lineNumber).substring(Bt.startColumn-2,Bt.endColumn);return{suggestions:[...ie.keywords.map(me=>({label:me,kind:gn.languages.CompletionItemKind.Function,documentation:me,insertText:me,insertTextRules:gn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Zt})),...ie.quickKey.map(me=>({label:me.label,kind:gn.languages.CompletionItemKind.Function,documentation:me.content,insertText:Nt.startsWith("#")?me.content.replace(/#/,""):me.content,insertTextRules:gn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Zt}))]}}}),gn.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Mt,xt){var Bt=Mt.getWordUntilPosition(xt),Zt={startLineNumber:xt.lineNumber,endLineNumber:xt.lineNumber,startColumn:Bt.startColumn,endColumn:Bt.endColumn},Nt=Mt.getLineContent(xt.lineNumber).substring(Bt.startColumn-2,Bt.endColumn);return{suggestions:[...je.keywords.map(me=>({label:me,kind:gn.languages.CompletionItemKind.Function,documentation:me,insertText:me,insertTextRules:gn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Zt})),...je.quickKey.map(me=>({label:me.label,kind:gn.languages.CompletionItemKind.Function,documentation:me.content,insertText:Nt.startsWith("#")?me.content.replace(/#/,""):me.content,insertTextRules:gn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Zt}))]}}})};const ne="\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,ue=(gn,Bn,zn)=>Bn in gn?qt(gn,Bn,{enumerable:!0,configurable:!0,writable:!0,value:zn}):gn[Bn]=zn,ae=(gn,Bn,zn)=>ue(gn,typeof Bn!="symbol"?Bn+"":Bn,zn);const Fe=class px{constructor(Bn,zn,jt){this.placeholder=Bn,this.editor=zn,this.monaco=jt,zn.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return px.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)}};ae(Fe,"ID","editor.widget.placeholderHint");var Re=Fe,En=Ft(96236),fn=Ft(8591),bn=Ft(6848),cn=Ft(89392),he=Ft(34604),Qt=Ft(56102),Ae=Object.defineProperty,Gn=Object.defineProperties,An=Object.getOwnPropertyDescriptors,Se=Object.getOwnPropertySymbols,sn=Object.prototype.hasOwnProperty,wn=Object.prototype.propertyIsEnumerable,Xn=(gn,Bn,zn)=>Bn in gn?Ae(gn,Bn,{enumerable:!0,configurable:!0,writable:!0,value:zn}):gn[Bn]=zn,Hn=(gn,Bn)=>{for(var zn in Bn||(Bn={}))sn.call(Bn,zn)&&Xn(gn,zn,Bn[zn]);if(Se)for(var zn of Se(Bn))wn.call(Bn,zn)&&Xn(gn,zn,Bn[zn]);return gn},ii=(gn,Bn)=>Gn(gn,An(Bn)),re=(gn,Bn)=>{var zn={};for(var jt in gn)sn.call(gn,jt)&&Bn.indexOf(jt)<0&&(zn[jt]=gn[jt]);if(gn!=null&&Se)for(var jt of Se(gn))Bn.indexOf(jt)<0&&wn.call(gn,jt)&&(zn[jt]=gn[jt]);return zn},Dn=(gn,Bn,zn)=>new Promise((jt,Mt)=>{var xt=Nt=>{try{Zt(zn.next(Nt))}catch(me){Mt(me)}},Bt=Nt=>{try{Zt(zn.throw(Nt))}catch(me){Mt(me)}},Zt=Nt=>Nt.done?jt(Nt.value):Promise.resolve(Nt.value).then(xt,Bt);Zt((zn=zn.apply(gn,Bn)).next())});function Zn(gn){return/^\d+$/.test(gn)?`${gn}px`:gn}function qn(){}let ni=!1;const Hi={"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 Jo(gn=[]){let Bn=gn;if(Array.isArray(gn)){for(let zn=0;zn{var Bn=gn,{width:zn="100%",height:jt="100%",value:Mt,language:xt="javascript",style:Bt={},options:Zt={},overrideServices:Nt={},theme:me="vs-dark",onEditBlur:Sn,isCopy:xn=!1,onSave:yn,autoHeight:Rn=!1,forbidCopy:ji=!1,onChange:Qi=qn,editorDidMount:Ti=qn,onFocus:vo=qn,onBreakPoint:Ri=qn,breakPointValue:er=[],filename:As="educoder.txt",errorLine:Or,errorContent:jr="",highlightLine:gr,openBreakPoint:pr=!1,placeholder:ps=""}=Bn,Yr=re(Bn,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder"]);const Xr=(0,St.useRef)(),qi=(0,St.useRef)({}),Ct=(0,St.useRef)(),Na=(0,St.useRef)(),mr=(0,St.useRef)([]),Ra=(0,St.useRef)(!1),za=(0,St.useRef)(),da=(0,St.useRef)(),Xa=(0,St.useRef)(!1),[ei,ai]=(0,St.useState)(!1);function Ee(){let De;return Xr.current&&(De=new Ut.Z(dn=>{for(let ro of dn)(ro.target.offsetHeight>0||ro.target.offsetWidth>0)&&qi.current.instance.layout()}),De.observe(Xr.current)),De}function pe(){fn.ZP.warning({content:decodeURIComponent(ne),key:"monaco-editor-tip"})}const ve=()=>{let De=qi.current.instance;if(Mt!=null&&De&&ei){const dn=De.getModel();dn&&Mt!==dn.getValue()&&(ni=!0,dn.setValue(Mt),De.layout(),ni=!1)}};(0,St.useEffect)(()=>{const De=he.Z.subscribe("formatDocument",dn=>{var ro;let Uo=qi.current.instance;(ro=Uo==null?void 0:Uo.getAction)==null||ro.call(Uo,"editor.action.formatDocument").run()});return window.updateMonacoValue=dn=>{Qi(dn)},De},[]),(0,St.useEffect)(()=>{var De;let dn=qi.current.instance;Na.current&&clearTimeout(Na.current),Na.current=setTimeout(()=>{ve()},500),Mt&&(Mt!=null&&Mt.length)&&((De=dn==null?void 0:dn.updateOptions)==null||De.call(dn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Mt.split(/\r\n|\r|\n/g).length))+3,5)}))},[Mt,ei,qi.current]),(0,St.useEffect)(()=>{if(Or&&qi.current&&qi.current.instance){let dn=qi.current.instance;dn.changeViewZones(function(ro){var Uo=document.createElement("div");Uo.style.padding="10px 20px",Uo.style.width="calc(100% - 20px)",Uo.className="my-error-line-wrp",Uo.innerHTML=jr,ro.addZone({afterLineNumber:Or||11,heightInLines:3,domNode:Uo})});var De={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}};dn.addOverlayWidget(De),dn.revealPositionInCenter({lineNumber:20,column:1})}},[Or,qi.current,ei]);const Wn=(De="",dn)=>{if(!De||De.trim()==="")return!0;const Uo=qi.current.instance.getModel().getLineTokens(dn);let Vo=!1;for(let Ii=0;Ii<2;Ii++)Uo.getStandardTokenType(Ii)===1&&(Vo=!0);return Vo};(0,St.useEffect)(()=>{var De;const dn=(De=qi.current)==null?void 0:De.instance;if(dn&&ei&&ji){const ro=dn.onDidBlurEditorWidget(()=>{Xa.current=!1}),Uo=dn.onDidFocusEditorText(()=>{Xa.current=!0});return()=>{ro.dispose(),Uo.dispose()}}},[qi.current,ei,ji]),(0,St.useEffect)(()=>{var De;if((De=qi.current)!=null&&De.instance&&ei&&pr){let dn=qi.current.instance,ro=dn.getModel();if(!ro)return;(()=>{var ko;let Ye=[],Yn=[];const Ci=ro.getAllDecorations();for(let Ai of Ci)Ai.options.className==="highlighted-line"&&(Ye.push((ko=Ai==null?void 0:Ai.range)==null?void 0:ko.startLineNumber),Yn.push(Ai==null?void 0:Ai.id));if(gr===Ye[0])return;ro.deltaDecorations(Yn,[]);const Bi=ro.getLineCount();gr&&gr<=Bi&&(dn.deltaDecorations([],[{range:new pn.Range(gr,1,gr,ro.getLineMaxColumn(gr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),dn.revealLineInCenter(gr))})();const Vo=(ko=!1)=>{var Ye;let Yn=[],Ci=[];const Bi=ro.getAllDecorations();for(let Ai of Bi)Ai.options.linesDecorationsClassName==="breakpoints-select"&&(Yn.push((Ye=Ai==null?void 0:Ai.range)==null?void 0:Ye.startLineNumber),Ci.push(Ai==null?void 0:Ai.id));if(ko)return{lines:Yn,ids:Ci};Ri(Yn)},Ii=ko=>Dn(void 0,null,function*(){let Ye={range:new pn.Range(ko,1,ko,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield ro.deltaDecorations([],[Ye]),Vo()}),Fi=ko=>Dn(void 0,null,function*(){let Ye=[];const Yn=dn.getLineDecorations(ko);for(let Ci of Yn)Ci.options.linesDecorationsClassName==="breakpoints-select"&&Ye.push(Ci.id);yield ro.deltaDecorations(Ye,[]),Vo()}),Pi=ko=>{let Ye=dn.getLineDecorations(ko);for(let Yn of Ye)if(Yn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,cn.isEqual)(er,Vo(!0).lines)){ro.deltaDecorations(Vo(!0).ids,[]);const ko=er.map(Ye=>({range:new pn.Range(Ye,1,Ye,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));ro.deltaDecorations([],ko)}const Wo=dn.onDidChangeModelContent(ko=>{let Ye=dn.getPosition();if(Ye){let Yn=Ye.lineNumber;clearTimeout(da.current),da.current=setTimeout(()=>{Wn(ro.getLineContent(Yn),Yn)?Fi(Yn):Pi(Yn)?(Fi(Yn),Ii(Yn)):Vo()},100)}}),br=dn.onMouseDown(ko=>{var Ye,Yn,Ci;if(ko.target.detail&&((Ci=(Yn=(Ye=ko.target)==null?void 0:Ye.element)==null?void 0:Yn.className)!=null&&Ci.includes("line-numbers"))){let Bi=ko.target.position.lineNumber;if(Wn(ro.getLineContent(Bi),Bi))return;Pi(Bi)?Fi(Bi):Ii(Bi)}}),wr=ko=>{let Ye={range:new pn.Range(ko,1,ko,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};mr.current=dn.deltaDecorations(mr.current,[Ye])},$e=()=>{mr.current=dn.deltaDecorations(mr.current,[])},vr=dn.onMouseMove(ko=>{var Ye,Yn,Ci;if($e(),ko.target.detail&&((Ci=(Yn=(Ye=ko.target)==null?void 0:Ye.element)==null?void 0:Yn.className)!=null&&Ci.includes("line-numbers"))){let Bi=ko.target.position.lineNumber;if(Wn(ro.getLineContent(Bi),Bi))return;wr(Bi)}}),ur=dn.onMouseLeave(()=>{$e()});return()=>{Wo.dispose(),br.dispose(),vr.dispose(),ur.dispose()}}},[qi.current,ei,er,gr,pr,xt]),(0,St.useEffect)(()=>{var De;(De=qi.current)!=null&&De.instance&&pr&&qi.current.instance.setPosition({lineNumber:0,column:0})},[gr]);function On(){let De=qi.current.instance;if(De){const dn=De.getSelection(),ro=qi.current.pastePos||{},Uo=new pn.Range(ro.startLineNumber||dn.endLineNumber,ro.startColumn||dn.endColumn,ro.endLineNumber||dn.endLineNumber,ro.endColumn||dn.endColumn);setTimeout(()=>{De.executeEdits("",[{range:Uo,text:""}])},300)}}function Kn(De){(window.navigator.platform.match("Mac")?De.metaKey:De.ctrlKey)&&De.keyCode==83&&(De.preventDefault(),yn())}const Ge=()=>{if(Rn&&qi.current.instance){const De=qi.current.instance.getContentHeight();li(De{if(!Xa.current)return;const{keyCode:dn,ctrlKey:ro,metaKey:Uo,target:Vo,type:Ii}=De;return(Ii==="paste"||(dn===67||dn===86)&&(Uo||ro))&&Vo.nodeName==="TEXTAREA"&&(pe(),De.preventDefault()),!1};function ui(De,dn){var ro=window.URL||window.webkitURL||window,Uo=new Blob([dn]),Vo=document.createElementNS("http://www.w3.org/1999/xhtml","a");Vo.href=ro.createObjectURL(Uo),Vo.download=De,Tn(Vo)}(0,St.useEffect)(()=>{Ge()},[Ge]),(0,St.useEffect)(()=>{Xr.current&&!ei&&Promise.all([Ft.e(8909),Ft.e(3267)]).then(Ft.bind(Ft,71448)).then(De=>{try{pn=De,qi.current.instance=pn.editor.create(Xr.current,{value:Mt,language:Jo(xt),theme:me,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Nt);const dn=qi.current.instance;let Vo=[...En.BH._menuItems].find(Wo=>Wo[0]._debugName=="EditorContext")[1],Ii=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Fi=(Wo,br)=>{var wr,$e;let vr=Wo._first;do br.includes(($e=(wr=vr.element)==null?void 0:wr.command)==null?void 0:$e.id)&&Wo._remove(vr);while(vr=vr.next)};if(Ti(dn,pn),setTimeout(()=>{Ge(),qi.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{ui(As||"educoder.txt",dn.getValue())}})},500),qi.current.subscription=dn.onDidChangeModelContent(Wo=>{Ra.current?clearTimeout(za.current):(Ge(),Qi(dn.getValue(),Wo)),za.current=setTimeout(()=>{Ra.current=!1},500)}),window.Monaco||$t(pn,Jo(xt)),ji&&(Fi(Vo,Ii),Xr.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Si),window.removeEventListener("paste",Si),window.addEventListener("keydown",Si),window.addEventListener("paste",Si)),window.Monaco=pn,Sn&&dn.onDidBlurEditorWidget(()=>{Sn(dn.getValue())}),vo&&dn.onDidFocusEditorText(()=>{vo(dn.getValue())}),ji)try{dn.onDidPaste(Wo=>{const br=dn.getSelection(),wr=qi.current.pastePos||{},$e=new pn.Range(wr.startLineNumber||br.endLineNumber,wr.startColumn||br.endColumn,wr.endLineNumber||br.endLineNumber,wr.endColumn||br.endColumn);dn.executeEdits("",[{range:Wo.range,text:""}])})}catch(Wo){}let Pi=Ee();return ps&&typeof ps=="string"&&new Re(ps,dn,pn),ai(!0),()=>{const Wo=qi.current.instance;Wo.dispose();const br=Wo.getModel();br&&br.dispose(),qi.current.subscription&&qi.current.subscription.dispose(),Pi.unobserve(Xr.current)}}catch(dn){}})},[]),(0,St.useEffect)(()=>{if(qi.current.instance&&ei)return document.addEventListener("keydown",Kn,!1),()=>{document.removeEventListener("keydown",Kn)}},[yn,ei]),(0,St.useEffect)(()=>{let De=qi.current.instance;if(De&&ei){let dn=Jo(xt);pn.editor.setModelLanguage(De.getModel(),dn)}},[xt,ei]),(0,St.useEffect)(()=>{qi.current.instance&&ei&&pn.editor.setTheme(me)},[me,ei]),(0,St.useEffect)(()=>{let De=qi.current.instance;Ct.current=Zt,De&&ei&&(De.updateOptions(Hn({},Zt)),setTimeout(()=>{De.getModel().updateOptions(Hn({},Zt))},200))},[JSON.stringify(Zt),ei]),(0,St.useEffect)(()=>{let De=qi.current.instance;De&&ei&&De.layout()},[zn,jt,ei]);const[ao,oe]=(0,St.useState)(Zn(zn)),[mn,li]=(0,St.useState)(Zn(jt)),eo=ii(Hn({},Bt),{width:ao,height:mn,position:"relative"});return St.createElement("div",{className:"my-monaco-editor",ref:Xr,style:eo},xn&&St.createElement(Qt.CopyToClipboard,{text:Mt,onCopy:()=>fn.ZP.success("\u590D\u5236\u6210\u529F")},St.createElement(bn.Z,{title:"\u590D\u5236\u4EE3\u7801"},St.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},St.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function ti({width:gn="100%",height:Bn="100%",original:zn,modified:jt,language:Mt,options:xt={}}){const Bt=(0,St.useRef)(),[Zt,Nt]=(0,St.useState)(null);function me(Rn){let ji;return Bt.current&&(ji=new Ut.Z(Qi=>{for(let Ti of Qi)(Ti.target.offsetHeight>0||Ti.target.offsetWidth>0)&&Rn.layout()}),ji.observe(Bt.current)),ji}(0,St.useEffect)(()=>(Bt.current&&Promise.all([Ft.e(8909),Ft.e(9404)]).then(Ft.bind(Ft,2550)).then(Rn=>{pn=Rn;const ji=pn.editor.createDiffEditor(Bt.current,ii(Hn({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},xt),{wordWrap:!0}));Nt(ji);let Qi=me(ji);return()=>{ji.dispose();const Ti=ji.getModel();Ti&&Ti.dispose(),Qi.unobserve(Bt.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,St.useEffect)(()=>{Zt&&Zt.setModel({original:pn.editor.createModel(zn,Mt),modified:pn.editor.createModel(jt,Mt)})},[zn,jt,Mt,Zt]);const Sn=Zn(gn),xn=Zn(Bn),yn={width:Sn,height:xn};return St.createElement("div",{className:"my-diff-editor",ref:Bt,style:yn})}},85057:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{jL:function(){return fe},w9:function(){return sn},QD:function(){return Qi},cQ:function(){return Qt},op:function(){return me},O5:function(){return Xa},_b:function(){return Or},t7:function(){return lt},Gi:function(){return Dn},YG:function(){return ii},qp:function(){return Pe},vr:function(){return Ri},qE:function(){return yn},Je:function(){return Lt},wb:function(){return En},cq:function(){return pn},tp:function(){return Tt}});var St=Ft(59301),Ut={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"},Me="data:image/png;base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VxoQ+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==",fe=({dataSource:ei=[],img:ai,imgWidth:Ee=346,title:pe,sunTitle:ve,bannerExtraContent:Wn})=>St.createElement("div",{className:Ut.banner},St.createElement("div",{className:Ut.content},St.createElement("aside",null,St.createElement("p",null,St.createElement("b",null,pe),St.createElement("span",null,ve)),ei.length>0&&St.createElement("div",{className:Ut.btns},ei.map((On,Kn)=>St.createElement("div",{key:Kn,onClick:On.click},On.name,On.sign?St.createElement("img",{src:Me,width:39}):null))),Wn),ai&&St.createElement("img",{style:{marginTop:33,marginRight:38},src:ai,width:Ee}))),je={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"},ie=Ft(92310),Ne=Ft.n(ie),we=Ft(89392),Pe=({dataSource:ei=[],value:ai,onChange:Ee,onTitleChange:pe,className:ve,title:Wn,titleWidth:On=41,style:Kn={},fontColor:Ge="#6A7283",showCount:Tn})=>{const[Si,ui]=(0,St.useState)(0),[ao,oe]=(0,St.useState)(!1),mn=(0,St.useRef)(null),li=(0,St.useRef)(null);return(0,St.useEffect)(()=>{var eo;ei.length!==0&&(((eo=mn==null?void 0:mn.current)==null?void 0:eo.clientHeight)>97?ui(1):ui(0)),ei.length===0&&ui(0),oe(!1)},[ei]),St.createElement("div",{className:Ne()(je.row,ve),style:Kn},St.createElement("div",{onClick:(0,we.throttle)(()=>pe==null?void 0:pe(),2e3),style:{width:On,marginTop:ao?12:4},className:`${je.title} ${pe?"current":""}`},Wn),St.createElement("div",{className:ao?`${je.tagsWrap} ${je.tagsBorderWrap}`:je.tagsWrap},St.createElement("div",{className:je.bar,ref:li,style:Si>0?{height:Si===1?97:"auto",overflow:Si===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},St.createElement("div",{className:je.tag,ref:mn},ei==null?void 0:ei.map(eo=>St.createElement("span",{onClick:()=>Ee(eo.id),key:eo.id,style:{color:Ge},className:ai===eo.id?je.active:""},St.createElement("span",{title:eo.name,className:je.name},eo.name),!!Tn&&St.createElement("span",{className:je.num},eo.count))))),!!Si&&St.createElement(St.Fragment,null,Si===1?St.createElement("div",{onClick:()=>{var eo;ui(2),((eo=mn==null?void 0:mn.current)==null?void 0:eo.clientHeight)>245?oe(!0):oe(!1)},className:je.action},"\u5C55\u5F00",St.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):St.createElement("div",{onClick:()=>{li.current.scrollTop=0,ui(1),oe(!1)},className:je.action},"\u6536\u8D77",St.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Ie={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"},Tt=({dataSource:ei=[],value:ai,onChange:Ee,className:pe,style:ve={}})=>St.createElement("div",{style:ve,className:Ne()(Ie.tabs,pe)},ei.map(Wn=>St.createElement("span",{onClick:()=>Ee(Wn.id),className:ai===Wn.id?Ie.active:"",key:Wn.id},Wn.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"},nt=Ft(92832),lt=({dataSource:ei=[],value:ai="",onChange:Ee,onInputChange:pe=()=>{},className:ve,style:Wn={},placeholder:On,allowClear:Kn=!1})=>{var Ge;const[Tn,Si]=(0,St.useState)(""),[ui,ao]=(0,St.useState)("");(0,St.useEffect)(()=>{var li;let eo=ai;(li=JSON.stringify(ai))!=null&&li.includes("{")&&(Si(ai.id),eo=ai.value||"");try{ao(decodeURIComponent(eo||""))}catch(De){ao(decodeURIComponent(eo||""))}},[ai]);const oe=()=>{Ee(encodeURIComponent(ui),Tn||null)},mn=li=>{li!==Tn&&(Si(li),Ee(encodeURIComponent(ui),li))};return St.createElement("div",{className:Ne()(et.input,ve),style:Wn},!!ei.length&&St.createElement("div",{className:et.dropdown},St.createElement("div",{className:et.text},(Ge=ei.find(li=>li.id===Tn))==null?void 0:Ge.name,St.createElement("i",{className:"iconfont icon-zhankai4"}),St.createElement("b",{className:et.b1}),St.createElement("b",{className:et.b2})),St.createElement("div",{className:et.menu},ei.map((li,eo)=>St.createElement("div",{key:eo,onClick:()=>mn(li.id)},li.name)))),St.createElement(nt.default,{onPressEnter:oe,value:ui,onChange:li=>{ao(li.target.value),pe(encodeURIComponent(li.target.value),Tn||null)},bordered:!1,placeholder:On}),St.createElement("i",{onClick:oe,className:"iconfont icon-sousuo9 font14 pl10 current"}))},pt={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"},Lt=({value:ei,onChange:ai,className:Ee,total:pe,pageSize:ve,style:Wn={}})=>{const On=ei<2,Kn=ei>=Math.ceil(pe/ve);return pe<=ve?St.createElement(St.Fragment,null):St.createElement("div",{className:Ne()(pt.quickPager,Ee),style:Wn},St.createElement("div",{onClick:()=>{On||ai(ei-1,"prev")},className:On?pt.disabled:""},"\u4E0A\u4E00\u9875"),St.createElement("div",{onClick:()=>{Kn||ai(ei+1,"next")},className:Kn?pt.disabled:""},"\u4E0B\u4E00\u9875"))},At={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"},kt=Ft(71418),Kt=Ft(6848),$t=Ft(13570),ne=Ft(3294),qt=Ft(955),ue=Ft(96908),ae=Ft(57177),Fe=Ft(81378),xe=Ft(8797),En=({className:ei,dataSource:ai=[],col:Ee=4,right:pe,bottom:ve=23,precision:Wn=0,wrapWidth:On=1200,trackEventItems:Kn,loading:Ge})=>{const Tn=Math.floor((On-(Ee-1)*pe)/Ee);return St.createElement(kt.Z,{spinning:Ge},St.createElement("div",{className:Ne()(At.list,ei)},!!ai.length&&ai.map((Si,ui)=>{const{name:ao,id:oe,identifier:mn,power:li,cover_image_id:eo,pic:De}=Si;return St.createElement("div",{className:At.wrap,key:oe,style:{width:Tn,marginRight:(1+ui)%Ee===0?0:pe+Wn,marginBottom:ve}},St.createElement("a",{target:"_blank",href:`/shixuns/${mn}/challenges`,className:At.li,onClick:dn=>{dn.preventDefault(),Kn&&(0,qt.L9)([Kn]),li&&(0,qt.xg)(`/shixuns/${mn}/challenges`)}},St.createElement("div",{className:At.img},St.createElement("img",{className:At.cover,src:`${De}`}),Si.is_jupyter&&St.createElement("img",{className:At.sign,src:ue}),Si.is_jupyter_lab&&St.createElement("img",{className:At.sign,src:ae}),Si.is_unity_3d&&St.createElement("img",{className:At.sign,src:Fe})),St.createElement("div",{className:At.name},St.createElement(Kt.Z,{title:ao||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},St.createElement("span",{className:At.e},ao||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),St.createElement("div",{className:At.tags},St.createElement(Kt.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},St.createElement("span",null,St.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),St.createElement("span",null,Si.challenges_count))),!!Si.myshixuns_count&&St.createElement(Kt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},St.createElement("span",null,St.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),St.createElement("span",null,Si.myshixuns_count))),St.createElement(Kt.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},St.createElement("span",null,St.createElement("span",null,Si.level))),St.createElement("div",{className:At.rate},St.createElement($t.Z,{allowHalf:!0,disabled:!0,defaultValue:Si.score_info}),St.createElement("span",null,"\xA0",Si.score_info?`${Si.score_info}\u5206`:"5\u5206")))),!li&&St.createElement("div",{className:At.lockWrap},St.createElement("img",{src:`${ne.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),St.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!ai.length&&St.createElement(xe.Z,null)))},fn={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"},bn=Ft(24065),cn=Ft(59301),Qt=({className:ei,dataSource:ai=[],col:Ee=4,right:pe,bottom:ve=23,precision:Wn=0,wrapWidth:On=1200,trackEventItems:Kn,loading:Ge,onRemove:Tn=()=>{},isCurrent:Si=!0,showAlias:ui=!1})=>{const ao=Math.floor((On-(Ee-1)*pe)/Ee),oe=[{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 cn.createElement(kt.Z,{spinning:Ge},cn.createElement("div",{className:Ne()(fn.list,ei)},!!(ai!=null&&ai.length)&&(ai==null?void 0:ai.map((mn,li)=>{var eo;const{name:De,id:dn,identifier:ro,featured:Uo,school_name:Vo,image_url:Ii,excellent:Fi,is_plan:Pi}=mn;return cn.createElement("div",{key:dn,className:fn.wrap,style:{width:ao,marginRight:(1+li)%Ee===0?0:pe+Wn,marginBottom:ve}},cn.createElement("a",{className:fn.li,onClick:Wo=>{Wo.preventDefault(),Wo.stopPropagation(),Kn&&(0,qt.L9)([Kn]),(0,qt.xg)(`/paths/${ro}`)}},cn.createElement("div",{className:fn.img},cn.createElement("img",{className:fn.cover,src:`${Ii}`}),Si&&(0,bn.bg)()&&(mn==null?void 0:mn.studying)&&cn.createElement("div",{className:`${fn.movebq} user-path-items`,onClick:Wo=>{Wo.stopPropagation(),Tn(mn)}},cn.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),cn.createElement("span",{className:"c-red"},"\u79FB\u9664")),(eo=mn==null?void 0:mn.subject_tags)==null?void 0:eo.map((Wo,br)=>{var wr,$e;if(br===0){const ur=(wr=oe.find(ko=>ko.name==Wo))==null?void 0:wr.swimg;return cn.createElement("img",{className:fn.sign,src:ur,style:{left:"-4px"}})}const vr=($e=oe.find(ur=>ur.name==Wo))==null?void 0:$e.ptimg;return cn.createElement("img",{className:fn.sign,src:vr,style:{left:`${48+52*(br-1)+2*br}px`}})}),cn.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(mn==null?void 0:mn.excellent)&&cn.createElement("div",{className:fn.bq},"\u5F00\u653E\u8BFE\u7A0B"))),cn.createElement("div",{className:fn.name},cn.createElement(Kt.Z,{title:ui&&(mn!=null&&mn.excellent_alias_name)?cn.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${De}`,cn.createElement("br",null),cn.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${mn==null?void 0:mn.excellent_alias_name}`)):De},cn.createElement("span",{className:fn.e},ui&&(mn==null?void 0:mn.excellent_alias_name)||De))),cn.createElement(Kt.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Vo}`},cn.createElement("div",{className:fn.unit},cn.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Vo)),cn.createElement("div",{className:fn.tags},cn.createElement("div",null,cn.createElement(Kt.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},cn.createElement("span",null,cn.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),cn.createElement("span",null,mn.stages_count))),cn.createElement(Kt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},cn.createElement("span",null,cn.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),cn.createElement("span",null,mn.members_count)))))))})),!ai.length&&cn.createElement(xe.Z,null)))},Ae={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"},Gn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQLlavp8ZG20P9rXcHhEmI07kdtsODasA5/OlX6gy/dfF/bbTV5Gm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oPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",An=Ft(59301),sn=({className:ei,dataSource:ai=[],col:Ee=4,right:pe,bottom:ve=23,precision:Wn=0,wrapWidth:On=1200,trackEventItems:Kn,loading:Ge,handleVery:Tn=()=>!0})=>{const Si=Math.floor((On-(Ee-1)*pe)/Ee);return An.createElement(kt.Z,{spinning:Ge},An.createElement("div",{className:Ne()(Ae.list,ei)},!!ai.length&&ai.map((ui,ao)=>{const{subject_identifier:oe,id:mn,identifier:li,power:eo}=ui,De=ui.is_public!=0&&ui.is_public;return An.createElement("div",{className:Ae.wrap,key:mn,style:{width:Si,marginRight:(1+ao)%Ee===0?0:pe+Wn,marginBottom:ve}},An.createElement("a",{className:Ae.li,onClick:dn=>{dn.preventDefault(),Tn(ui==null?void 0:ui.first_category_url)&&(Kn&&(0,qt.L9)([Kn]),(0,qt.xg)(ui.first_category_url))}},An.createElement("div",{className:Ae.top},An.createElement(Kt.Z,{title:ui.name},An.createElement("div",{className:Ae.name},ui.name)),An.createElement("img",{className:Ae.img,src:ne.Z.IMG_SERVER+"/images/"+ui.avatar_url}),An.createElement("div",{className:Ae.text,title:ui.creator},ui.creator),oe&&An.createElement("div",{className:Ae.btns},An.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),An.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),De&&An.createElement("div",{className:Ae.sign},"\u516C\u5F00")),An.createElement("div",{className:Ae.bottom},ui.visits>0&&An.createElement(Kt.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},An.createElement("span",null,An.createElement("i",{className:"iconfont icon-liulanyan"}),An.createElement("span",null,ui.visits))),ui.course_members_count>0&&An.createElement(Kt.Z,{title:"\u6210\u5458",placement:"bottom"},An.createElement("span",null,An.createElement("i",{className:"iconfont icon-chengyuan"}),ui.course_members_count)),ui.tasks_count>0&&An.createElement(Kt.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},An.createElement("span",null,An.createElement("i",{className:"iconfont icon-zuoye"}),ui.tasks_count)),ui.is_end?An.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):An.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!ui.is_accessible&&An.createElement("div",{className:Ae.lockWrap},An.createElement("img",{src:`${ne.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),An.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!ai.length&&An.createElement(xe.Z,null)))},wn={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"},Xn=Ft(89070),ii=({dataSource:ei=[],value:ai,onChange:Ee,className:pe,style:ve={},tabBarExtraContent:Wn})=>St.createElement("div",{className:Ne()(wn.tabs,pe),style:ve},St.createElement("div",{className:wn.tabsWrap},ei.map((On,Kn)=>!(On!=null&&On.hide)&&St.createElement("aside",{className:wn.tab,onClick:()=>{Ee(On.id),On.link&&Xn.history.push(On.link)},key:Kn},St.createElement("div",{className:ai===On.id?wn.active:""},On.name),(On==null?void 0:On.resetCount)==null&&(On==null?void 0:On.total)!==void 0&&St.createElement("span",null,"\uFF08",On==null?void 0:On.total,"\uFF09"),(On==null?void 0:On.resetCount)!==void 0&&(On==null?void 0:On.total)!==void 0&&St.createElement(Kt.Z,{title:(On==null?void 0:On.tip)!=null?On==null?void 0:On.tip:""},St.createElement("span",{style:{color:"#9096A3"}},"\uFF08",St.createElement("span",{style:{color:"#000"}},On==null?void 0:On.resetCount),"/",St.createElement("span",null,On==null?void 0:On.total),"\uFF09"))))),St.createElement("div",{className:wn.tabBar},Wn)),Dn=({className:ei,style:ai={},children:Ee})=>St.createElement("div",{className:Ne()(ei),style:ai},Ee),Zn={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"},qn=Ft(38854),ni=Ft(20834);const Hi=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var pn=({sortValue:ei,dropValue:ai,className:Ee,onSort:pe,onDrop:ve,dataSource:Wn=Hi})=>{var On;return St.createElement("div",{className:Ne()(Zn.orderWrap,Ee)},St.createElement(qn.Z,{dropdownRender:()=>St.createElement(ni.default,null,Wn.map((Kn,Ge)=>St.createElement(ni.default.Item,{key:Ge,onClick:()=>ve(Kn.id)},Kn.name)))},St.createElement("span",{className:Zn.orderTextWrap},(On=Wn.find(Kn=>ai===Kn.id))==null?void 0:On.name)),St.createElement("span",{className:Zn.orderIconWrap},St.createElement("span",{className:Zn.orderAsc},St.createElement("i",{className:ei==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Zn.cursorPointer} ${Zn.active}`:`iconfont icon-sanjiaoxing-up font12 ${Zn.cursorPointer}`,onClick:()=>pe(ei==="asc"?"desc":"asc")})),St.createElement("span",{className:Zn.orderDesc},St.createElement("i",{className:ei==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Zn.cursorPointer} ${Zn.active}`:`iconfont icon-sanjiaoxing-down font12 ${Zn.cursorPointer}`,onClick:()=>pe(ei==="asc"?"desc":"asc")}))))},Pn={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"},ti=Ft(3113),gn=Object.defineProperty,Bn=Object.getOwnPropertySymbols,zn=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,Mt=(ei,ai,Ee)=>ai in ei?gn(ei,ai,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):ei[ai]=Ee,xt=(ei,ai)=>{for(var Ee in ai||(ai={}))zn.call(ai,Ee)&&Mt(ei,Ee,ai[Ee]);if(Bn)for(var Ee of Bn(ai))jt.call(ai,Ee)&&Mt(ei,Ee,ai[Ee]);return ei},Bt=(ei,ai)=>{var Ee={};for(var pe in ei)zn.call(ei,pe)&&ai.indexOf(pe)<0&&(Ee[pe]=ei[pe]);if(ei!=null&&Bn)for(var pe of Bn(ei))ai.indexOf(pe)<0&&jt.call(ei,pe)&&(Ee[pe]=ei[pe]);return Ee},Zt=(ei,ai,Ee)=>new Promise((pe,ve)=>{var Wn=Ge=>{try{Kn(Ee.next(Ge))}catch(Tn){ve(Tn)}},On=Ge=>{try{Kn(Ee.throw(Ge))}catch(Tn){ve(Tn)}},Kn=Ge=>Ge.done?pe(Ge.value):Promise.resolve(Ge.value).then(Wn,On);Kn((Ee=Ee.apply(ei,ai)).next())}),me=ei=>{var ai=ei,{className:Ee,style:pe,children:ve,loading:Wn=!1,openLoading:On,onClick:Kn=()=>{},size:Ge="middle",shape:Tn="round"}=ai,Si=Bt(ai,["className","style","children","loading","openLoading","onClick","size","shape"]);const[ui,ao]=(0,St.useState)(!1);return St.createElement(ti.ZP,xt({onClick:(0,we.throttle)(oe=>Zt(void 0,null,function*(){On&&ao(!0);try{yield Kn(oe)}catch(mn){console.log("error",mn)}On&&ao(!1)}),2e3,{leading:!0,trailing:!1}),className:Ne()(Pn.btn,Pn[`${Ge}-${Tn}`],Ee),style:pe,size:Ge,shape:Tn,loading:ui||Wn},Si),ve)},Sn={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"},yn=({className:ei,style:ai,children:Ee=null,onClick:pe,title:ve})=>St.createElement("div",{className:Ne()(Sn.head,ei),style:ai},St.createElement("span",{className:"primary-hover",onClick:pe},St.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),St.createElement("b",{title:ve},ve),St.createElement("div",{className:Sn.node},Ee)),Rn={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"},Qi=({confirmShow:ei=!0,confirmTitle:ai,confirmClick:Ee,cancelShow:pe=!0,cancelTitle:ve,cancelClick:Wn,className:On,style:Kn,confirmLoading:Ge=!1})=>St.createElement("div",{className:Ne()(Rn.btns,On),style:Kn},ei&&St.createElement(ti.ZP,{loading:Ge,onClick:Ee,type:"primary",className:Rn.confirm},ai),pe&&St.createElement(ti.ZP,{onClick:Wn,className:Rn.cancel},ve)),Ti={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"},Ri=({className:ei,style:ai={},LeftContent:Ee,children:pe,RightContent:ve})=>St.createElement("div",{className:Ne()(Ti.fixedBottom,ei),style:ai},St.createElement("div",{className:Ti.wrap},St.createElement("div",{className:Ti.left},Ee),St.createElement("div",{className:Ti.center},pe),St.createElement("div",{className:Ti.right},ve))),er={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"},Or=({className:ei,style:ai={},dataSource:Ee=[]})=>St.createElement("div",{className:Ne()(er.crumbs,ei),style:ai},Ee.map((pe,ve)=>veXn.history.push(pe.path)},pe.name):St.createElement("span",null,pe.name),St.createElement("span",null,"\xA0",">","\xA0")):St.createElement("span",{key:ve,style:{color:"#5F6368"}},pe.name))),jr=Ft(31797),gr=Object.defineProperty,pr=Object.defineProperties,ps=Object.getOwnPropertyDescriptors,Yr=Object.getOwnPropertySymbols,Xr=Object.prototype.hasOwnProperty,qi=Object.prototype.propertyIsEnumerable,Ct=(ei,ai,Ee)=>ai in ei?gr(ei,ai,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):ei[ai]=Ee,Na=(ei,ai)=>{for(var Ee in ai||(ai={}))Xr.call(ai,Ee)&&Ct(ei,Ee,ai[Ee]);if(Yr)for(var Ee of Yr(ai))qi.call(ai,Ee)&&Ct(ei,Ee,ai[Ee]);return ei},mr=(ei,ai)=>pr(ei,ps(ai)),Ra=(ei,ai)=>{var Ee={};for(var pe in ei)Xr.call(ei,pe)&&ai.indexOf(pe)<0&&(Ee[pe]=ei[pe]);if(ei!=null&&Yr)for(var pe of Yr(ei))ai.indexOf(pe)<0&&qi.call(ei,pe)&&(Ee[pe]=ei[pe]);return Ee};const{Countdown:za}=jr.default;var Xa=ei=>{var ai=ei,{onChange:Ee}=ai,pe=Ra(ai,["onChange"]);const[ve,Wn]=(0,St.useState)(null);(0,St.useEffect)(()=>{typeof ve=="number"&&ve>=0&&Ee(ve)},[ve]);const On=Kn=>{const Ge=Math.floor(Kn/1e3);Wn(Ge)};return St.createElement(za,mr(Na({},pe),{onChange:On}))}},58856:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{Z:function(){return Ut}});var St=Ft(59301);function Ut(Me,_e){const fe=(0,St.useRef)();(0,St.useEffect)(()=>{fe.current=Me}),(0,St.useEffect)(()=>{function je(){fe.current()}if(_e!==null){let ie=setInterval(je,_e);return()=>clearInterval(ie)}},[_e])}},27639:function(tn,Fn,Ft){"use strict";var St=Ft(59301),Ut=Ft(43418),Me=Ft(8591),_e=Ft(99064),fe=Ft(89070),je=Object.defineProperty,ie=Object.defineProperties,Ne=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,Ie=(dt,lt,pt)=>lt in dt?je(dt,lt,{enumerable:!0,configurable:!0,writable:!0,value:pt}):dt[lt]=pt,Ue=(dt,lt)=>{for(var pt in lt||(lt={}))Le.call(lt,pt)&&Ie(dt,pt,lt[pt]);if(we)for(var pt of we(lt))Pe.call(lt,pt)&&Ie(dt,pt,lt[pt]);return dt},Tt=(dt,lt)=>ie(dt,Ne(lt)),et=(dt,lt,pt)=>new Promise((vt,Lt)=>{var At=$t=>{try{Kt(pt.next($t))}catch(ne){Lt(ne)}},kt=$t=>{try{Kt(pt.throw($t))}catch(ne){Lt(ne)}},Kt=$t=>$t.done?vt($t.value):Promise.resolve($t.value).then(At,kt);Kt((pt=pt.apply(dt,lt)).next())});const nt=({classroomList:dt,dispatch:lt,cb:pt})=>{const vt=(0,fe.useParams)();vt.id=vt.coursesId;const{detailBoardList:Lt}=dt;return St.createElement(Ut.default,{centered:!0,title:"\u63D0\u793A",open:dt.actionTabs.key==="\u5220\u9664",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>et(void 0,null,function*(){var At,kt,Kt;if((yield(0,_e.ZP)(`/api/boards/${vt.categoryId}/messages/bulk_delete.json`,{method:"delete",body:{ids:[...dt.actionTabs.selectArrs]}})).status===0){Me.ZP.success("\u5220\u9664\u6210\u529F");const ne=dt.actionTabs.selectArrs.length===Lt.messages.length&&((At=dt.actionTabs.params)==null?void 0:At.page)>1?((kt=dt.actionTabs.params)==null?void 0:kt.page)-1:(Kt=dt.actionTabs.params)==null?void 0:Kt.page;pt(ne),lt({type:"classroomList/setActionTabs",payload:{}}),lt({type:"classroomList/getBoardList",payload:Tt(Ue({},dt.actionTabs.params),{page:ne})}),lt({type:"classroomList/getClassroomLeftMenus",payload:{id:vt.coursesId}})}}),onCancel:()=>{lt({type:"classroomList/setActionTabs",payload:{}})}},St.createElement("p",null,"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F"))};Fn.Z=(0,fe.connect)(({classroomList:dt})=>({classroomList:dt}))(nt)},16368:function(tn,Fn,Ft){"use strict";var St=Ft(59301),Ut=Ft(78241),Me=Ft(43418),_e=Ft(8591),fe=Ft(92832),je=Ft(24905),ie=Ft(71418),Ne=Ft(99064),we=Ft(26724),Le=Ft.n(we),Pe=Ft(89070),Ie=Object.defineProperty,Ue=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,nt=(vt,Lt,At)=>Lt in vt?Ie(vt,Lt,{enumerable:!0,configurable:!0,writable:!0,value:At}):vt[Lt]=At,dt=(vt,Lt)=>{for(var At in Lt||(Lt={}))Tt.call(Lt,At)&&nt(vt,At,Lt[At]);if(Ue)for(var At of Ue(Lt))et.call(Lt,At)&&nt(vt,At,Lt[At]);return vt},lt=(vt,Lt,At)=>new Promise((kt,Kt)=>{var $t=ue=>{try{qt(At.next(ue))}catch(ae){Kt(ae)}},ne=ue=>{try{qt(At.throw(ue))}catch(ae){Kt(ae)}},qt=ue=>ue.done?kt(ue.value):Promise.resolve(ue.value).then($t,ne);qt((At=At.apply(vt,Lt)).next())});const pt=({classroomList:vt,loading:Lt,dispatch:At})=>{const kt=dt({},(0,Pe.useParams)());let[Kt,$t]=(0,St.useState)([]);const[ne,qt]=(0,St.useState)(!0),[ue,ae]=(0,St.useState)(1),[Fe,xe]=(0,St.useState)(!0);kt.page=0,kt.page_size=50,(0,St.useEffect)(()=>{vt.actionTabs.key==="\u53D1\u9001"&&En(1)},[vt.actionTabs.key]);const[Re]=Ut.default.useForm(),En=fn=>lt(void 0,null,function*(){fn==1&&(Kt=[]),kt.page=fn,xe(!0);const bn=yield At({type:"classroomList/getCoursesMine",payload:dt({},kt)});bn.lengthlt(void 0,null,function*(){const fn=Re.getFieldValue();(yield(0,Ne.ZP)(`/api/boards/${kt.categoryId}/messages/bulk_send.json`,{method:"post",body:{ids:[...vt.actionTabs.selectArrs],to_course_ids:[...fn.group_ids]}})).status===0&&(_e.ZP.success("\u53D1\u5E03\u6210\u529F"),At({type:"classroomList/setActionTabs",payload:{}}))}),onCancel:()=>{At({type:"classroomList/setActionTabs",payload:{}})}},St.createElement("p",{className:"tc bold mb20"},"\u9009\u62E9\u7684\u5E16\u5B50\u53D1\u9001\u5230",St.createElement("span",{className:"c-orange"},"\u6307\u5B9A\u8BFE\u5802")),St.createElement(fe.default.Search,{placeholder:"\u8BF7\u8F93\u5165\u8BFE\u5802\u540D\u79F0\u8FDB\u884C\u641C\u7D22",allowClear:!0,onSearch:fn=>{$t([]),kt.search=fn,En(1)}}),St.createElement("div",{className:"bg-skyblue",style:{height:260,overflow:"auto",padding:20}},St.createElement(Le(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:fn=>{En(fn)},hasMore:!Fe&&ne,useWindow:!1},St.createElement(Ut.default,{form:Re,initialValues:{}},St.createElement(Ut.default.Item,{name:"group_ids"},St.createElement(je.default.Group,null,Kt==null?void 0:Kt.map(function(fn,bn){return St.createElement("div",{key:bn},St.createElement(je.default,{style:{width:520},value:fn.id,className:"multi-ellipsis1 multi-ellipsis1-checkbox"},fn.name))}))),St.createElement(ie.Z,{className:"edu-ant-spin",spinning:Fe})))))};Fn.Z=(0,Pe.connect)(({classroomList:vt,loading:Lt})=>({classroomList:vt,loading:Lt}))(pt)},84314:function(tn,Fn,Ft){"use strict";Ft.r(Fn),Ft.d(Fn,{default:function(){return Qn}});var St=Ft(89070),Ut=Ft(59301),Me=Ft(3294),_e=Ft(61186),fe=Ft.n(_e),je=Ft(20834),ie=Ft(24905),Ne=Ft(3113),we=Ft(8591),Le=Ft(6848),Pe=Ft(71418),Ie=Ft(95237),Ue=Ft(43604),Tt=Ft(58421),et=Ft(81228),nt=Ft(38854),dt=Ft(1710),lt=Ft(78673),pt=Ft(99064),vt=Ft(87395),Lt=Ft(84105),At=Ft(24065),kt=Ft(8797),Kt=Ft(43418),$t=Object.defineProperty,ne=Object.getOwnPropertySymbols,qt=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,ae=(We,be,Be)=>be in We?$t(We,be,{enumerable:!0,configurable:!0,writable:!0,value:Be}):We[be]=Be,Fe=(We,be)=>{for(var Be in be||(be={}))qt.call(be,Be)&&ae(We,Be,be[Be]);if(ne)for(var Be of ne(be))ue.call(be,Be)&&ae(We,Be,be[Be]);return We},xe=(We,be,Be)=>new Promise((ir,Fo)=>{var ri=yi=>{try{Bo(Be.next(yi))}catch($i){Fo($i)}},Ur=yi=>{try{Bo(Be.throw(yi))}catch($i){Fo($i)}},Bo=yi=>yi.done?ir(yi.value):Promise.resolve(yi.value).then(ri,Ur);Bo((Be=Be.apply(We,be)).next())});const Re=({classroomList:We,dispatch:be,cb:Be})=>{const ir=(0,St.useParams)();return ir.id=ir.coursesId,Ut.createElement(Kt.default,{centered:!0,title:"\u63D0\u793A",open:We.actionTabs.key==="\u8BBE\u4E3A\u516C\u5F00",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>xe(void 0,null,function*(){(yield(0,pt.ZP)(`/api/boards/${ir.categoryId}/messages/bulk_public.json`,{method:"put",body:{ids:[...We.actionTabs.selectArrs]}})).status===0&&(we.ZP.success("\u64CD\u4F5C\u6210\u529F"),Be(),be({type:"classroomList/setActionTabs",payload:{}}),be({type:"classroomList/getBoardList",payload:Fe({},We.actionTabs.params)}))}),onCancel:()=>{be({type:"classroomList/setActionTabs",payload:{}})}},Ut.createElement("p",null,"\u662F\u5426\u786E\u8BA4\u8BBE\u4E3A\u516C\u5F00\uFF1F"))};var En=(0,St.connect)(({classroomList:We})=>({classroomList:We}))(Re),fn=Ft(27639),bn=Ft(16368),cn={flex_box_center:"flex_box_center___hePrT",flex_space_between:"flex_space_between___ORkbo",flex_box_vertical_center:"flex_box_vertical_center___cCpIF",flex_box_center_end:"flex_box_center_end___c_jTW",flex_box_column:"flex_box_column___wD0ra",bg:"bg___XwUKY",containerTitle:"containerTitle___ImnKq",containerDesc:"containerDesc___yUKqL",listItem:"listItem___SUzaY",title:"title___hjA_e",titleLeft:"titleLeft___GGFEY",titleRight:"titleRight___aNGKY",flexBox:"flexBox___IQB_j",acitons:"acitons___VXZ66",categoryName:"categoryName___gefjO",moveCategory:"moveCategory___OFSGW",copyTag:"copyTag___dGmyT"},he=Ft(62202),Qt=Ft(89614),Ae=Ft(73674),Gn=Ft(26724),An=Ft.n(Gn),Se=Ft(955),sn=Object.defineProperty,wn=Object.getOwnPropertySymbols,Xn=Object.prototype.hasOwnProperty,Hn=Object.prototype.propertyIsEnumerable,ii=(We,be,Be)=>be in We?sn(We,be,{enumerable:!0,configurable:!0,writable:!0,value:Be}):We[be]=Be,re=(We,be)=>{for(var Be in be||(be={}))Xn.call(be,Be)&&ii(We,Be,be[Be]);if(wn)for(var Be of wn(be))Hn.call(be,Be)&&ii(We,Be,be[Be]);return We};const Dn=We=>React.createElement("svg",re({width:17,height:10,xmlns:"http://www.w3.org/2000/svg"},We),React.createElement("title",null,"new"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"100%",y1:"67.301%",x2:"0%",y2:"32.699%",id:"new_svg__a"},React.createElement("stop",{stopColor:"#009EFF",offset:"0%"}),React.createElement("stop",{stopColor:"#49DF9B",offset:"100%"}))),React.createElement("path",{d:"M1082.618 352h-14.236c-.781 0-1.382.629-1.382 1.447v7.106c0 .818.6 1.447 1.382 1.447h14.236c.781 0 1.382-.629 1.382-1.447v-7.106c0-.818-.6-1.447-1.382-1.447Zm-10.692 7.358h-.961l-1.863-3.836v3.836h-.6v-4.59h.84l1.923 3.962h.06v-3.963h.6v4.591Zm1.502-2.641h2.342v.629h-2.342v.126c0 .817.24 1.195.72 1.195h1.682v.629h-1.682c-.36 0-.66-.126-.9-.44-.24-.315-.361-.818-.361-1.384v-1.07c0-1.069.66-1.509 1.321-1.635h1.622v.63h-1.561c-.24.062-.781.25-.781 1.006-.06.125-.06.188-.06.314Zm7.809 2.641h-.841l-.841-3.647-.961 3.647h-.901l-1.262-4.59h.66l1.082 3.773h.06l.961-3.774h.721l.961 3.963 1.142-3.963h.6l-1.381 4.591Z",transform:"translate(-1067 -352)",fill:"url(#new_svg__a)",fillRule:"nonzero"}));var Zn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIxMDAlIiB5MT0iNjcuMzAxJSIgeDI9IjAlIiB5Mj0iMzIuNjk5JSIgaWQ9ImEiPjxzdG9wIHN0b3AtY29sb3I9IiMwMDlFRkYiIG9mZnNldD0iMCUiLz48c3RvcCBzdG9wLWNvbG9yPSIjNDlERjlCIiBvZmZzZXQ9IjEwMCUiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48cGF0aCBkPSJNMTA4Mi42MTggMzUyaC0xNC4yMzZjLS43ODEgMC0xLjM4Mi42MjktMS4zODIgMS40NDd2Ny4xMDZjMCAuODE4LjYgMS40NDcgMS4zODIgMS40NDdoMTQuMjM2Yy43ODEgMCAxLjM4Mi0uNjI5IDEuMzgyLTEuNDQ3di03LjEwNmMwLS44MTgtLjYtMS40NDctMS4zODItMS40NDdabS0xMC42OTIgNy4zNThoLS45NjFsLTEuODYzLTMuODM2djMuODM2aC0uNnYtNC41OWguODRsMS45MjMgMy45NjJoLjA2di0zLjk2M2guNnY0LjU5MVptMS41MDItMi42NDFoMi4zNDJ2LjYyOWgtMi4zNDJ2LjEyNmMwIC44MTcuMjQgMS4xOTUuNzIgMS4xOTVoMS42ODJ2LjYyOWgtMS42ODJjLS4zNiAwLS42Ni0uMTI2LS45LS40NC0uMjQtLjMxNS0uMzYxLS44MTgtLjM2MS0xLjM4NHYtMS4wN2MwLTEuMDY5LjY2LTEuNTA5IDEuMzIxLTEuNjM1aDEuNjIydi42M2gtMS41NjFjLS4yNC4wNjItLjc4MS4yNS0uNzgxIDEuMDA2LS4wNi4xMjUtLjA2LjE4OC0uMDYuMzE0Wm03LjgwOSAyLjY0MWgtLjg0MWwtLjg0MS0zLjY0Ny0uOTYxIDMuNjQ3aC0uOTAxbC0xLjI2Mi00LjU5aC42NmwxLjA4MiAzLjc3M2guMDZsLjk2MS0zLjc3NGguNzIxbC45NjEgMy45NjMgMS4xNDItMy45NjNoLjZsLTEuMzgxIDQuNTkxWiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTEwNjcgLTM1MikiIGZpbGw9InVybCgjYSkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",qn=Ft(97177),ni={collect:"collect___uk5xF",head:"head___op8aW",btn:"btn___rzfic"},Hi=Ft(85057),Jo=Ft(57809),pn=Ft(92832),Pn=Ft(54580),ti=Ft(78241),gn=Ft(12290),Bn=Ft(59301),zn=Object.defineProperty,jt=Object.getOwnPropertySymbols,Mt=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,Bt=(We,be,Be)=>be in We?zn(We,be,{enumerable:!0,configurable:!0,writable:!0,value:Be}):We[be]=Be,Zt=(We,be)=>{for(var Be in be||(be={}))Mt.call(be,Be)&&Bt(We,Be,be[Be]);if(jt)for(var Be of jt(be))xt.call(be,Be)&&Bt(We,Be,be[Be]);return We},Nt=(We,be,Be)=>new Promise((ir,Fo)=>{var ri=yi=>{try{Bo(Be.next(yi))}catch($i){Fo($i)}},Ur=yi=>{try{Bo(Be.throw(yi))}catch($i){Fo($i)}},Bo=yi=>yi.done?ir(yi.value):Promise.resolve(yi.value).then(ri,Ur);Bo((Be=Be.apply(We,be)).next())}),Sn=({onOk:We,onCancel:be,visible:Be,modalParams:ir,forceIn:Fo})=>{const[ri]=ti.default.useForm(),[Ur,Bo]=(0,Ut.useState)(!1),yi=Fo?!1:typeof Be=="number";(0,Ut.useEffect)(()=>{Be?ri.setFieldsValue(Zt({},ir)):ri.resetFields()},[Be]);const $i=no=>Nt(void 0,null,function*(){Bo(!0),yield We(no),Bo(!1)});return Bn.createElement(Kt.default,{centered:!0,destroyOnClose:!0,onCancel:()=>be(),onOk:()=>ri.submit(),open:!!Be,confirmLoading:Ur,title:yi?"\u7F16\u8F91\u95EE\u7B54":"\u65B0\u589E\u95EE\u7B54",width:900,okText:yi?"\u786E\u5B9A":"\u52A0\u5165\u95EE\u9898\u96C6"},Bn.createElement(ti.default,{form:ri,size:"large",onFinish:$i},Bn.createElement(ti.default.Item,{name:"title",label:"\u95EE\u9898",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u60A8\u7684\u95EE\u9898"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u60A8\u7684\u95EE\u9898"}]},Bn.createElement(pn.default.TextArea,{style:{height:200},placeholder:"\u8BF7\u8F93\u5165\u60A8\u7684\u95EE\u9898"})),Bn.createElement(ti.default.Item,{className:"mb0",name:"content",label:"\u56DE\u7B54",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u60A8\u7684\u56DE\u7B54"}]},Bn.createElement(gn.Z,{height:220,className:"mb0",placeholder:"\u8BF7\u8F93\u5165\u60A8\u7684\u56DE\u7B54",watch:!0,defaultValue:ir==null?void 0:ir.content})),Bn.createElement(ti.default.Item,{className:"mb0",valuePropName:"checked",initialValue:!1,name:"is_top"},Bn.createElement(ie.default,{style:{marginLeft:53,marginTop:24}},"\u8BBE\u4E3A\u70ED\u95E8\u95EE\u9898"))))},xn=Ft(59301),yn=Object.defineProperty,Rn=Object.getOwnPropertySymbols,ji=Object.prototype.hasOwnProperty,Qi=Object.prototype.propertyIsEnumerable,Ti=(We,be,Be)=>be in We?yn(We,be,{enumerable:!0,configurable:!0,writable:!0,value:Be}):We[be]=Be,vo=(We,be)=>{for(var Be in be||(be={}))ji.call(be,Be)&&Ti(We,Be,be[Be]);if(Rn)for(var Be of Rn(be))Qi.call(be,Be)&&Ti(We,Be,be[Be]);return We},Ri=(We,be,Be)=>new Promise((ir,Fo)=>{var ri=yi=>{try{Bo(Be.next(yi))}catch($i){Fo($i)}},Ur=yi=>{try{Bo(Be.throw(yi))}catch($i){Fo($i)}},Bo=yi=>yi.done?ir(yi.value):Promise.resolve(yi.value).then(ri,Ur);Bo((Be=Be.apply(We,be)).next())}),As=({visible:We,onCancel:be})=>{const[Be,ir]=(0,Ut.useState)(!1),[Fo,ri]=(0,Ut.useState)(0),[Ur,Bo]=(0,Ut.useState)([]),[yi,$i]=(0,Ut.useState)({page:1,limit:10});(0,Ut.useEffect)(()=>{We&&no(yi)},[We]);const no=Mo=>Ri(void 0,null,function*(){var qe,Li;ir(!0);const Wi=yield(0,pt.ZP)(`/api/course_qna_sets/${We}/hit_history.json`,{method:"get",params:Mo});Wi.status===0&&(Bo(((qe=Wi==null?void 0:Wi.data)==null?void 0:qe.list)||[]),ri((Li=Wi==null?void 0:Wi.data)==null?void 0:Li.size)),ir(!1)}),ga=[{title:"\u7528\u6237\u63D0\u95EE",dataIndex:"question",ellipsis:!0,render:Mo=>xn.createElement(Le.Z,{placement:"topLeft",title:Mo},xn.createElement("span",{className:"c-black"},Mo||"--"))},{title:"\u56DE\u7B54",dataIndex:"answer",ellipsis:!0,render:Mo=>xn.createElement(Le.Z,{placement:"topLeft",title:Mo},xn.createElement("span",{className:"c-black"},Mo||"--"))},{title:"\u7528\u6237",dataIndex:"user_name",ellipsis:!0,render:Mo=>xn.createElement(Le.Z,{placement:"topLeft",title:Mo},xn.createElement("span",{className:"c-black"},Mo||"--"))},{title:"\u65F6\u95F4",dataIndex:"created_at",ellipsis:!0,render:Mo=>xn.createElement("span",{className:"c-black"},fe()(Mo).format("YYYY-MM-DD HH:mm"))}],$r=(Mo,qe)=>{yi.page=Mo,yi.limit=qe,$i(vo({},yi)),no(yi)};return xn.createElement(Kt.default,{title:"\u547D\u4E2D\u5386\u53F2",open:!!We,centered:!0,width:1e3,footer:null,onCancel:be},xn.createElement(dt.default,{columns:ga,className:"mt20",dataSource:Ur,loading:Be,rowKey:"id",scroll:(Ur==null?void 0:Ur.length)>7?{y:300}:{},pagination:{current:yi.page,hideOnSinglePage:!Fo,showQuickJumper:!0,showSizeChanger:!0,pageSize:yi.limit,pageSizeOptions:["10","20","50","100","200"],total:Fo,size:"default",showTotal:Se.rU,onChange:$r}}))},Or=Object.defineProperty,jr=Object.getOwnPropertySymbols,gr=Object.prototype.hasOwnProperty,pr=Object.prototype.propertyIsEnumerable,ps=(We,be,Be)=>be in We?Or(We,be,{enumerable:!0,configurable:!0,writable:!0,value:Be}):We[be]=Be,Yr=(We,be)=>{for(var Be in be||(be={}))gr.call(be,Be)&&ps(We,Be,be[Be]);if(jr)for(var Be of jr(be))pr.call(be,Be)&&ps(We,Be,be[Be]);return We};const Xr=We=>React.createElement("svg",Yr({width:17,height:21,xmlns:"http://www.w3.org/2000/svg"},We),React.createElement("title",null,"\u{1F525}"),React.createElement("text",{transform:"translate(-22 -23)",fill:"#232B40",fillRule:"evenodd",fontFamily:"AppleColorEmoji, Apple Color Emoji",fontSize:18},React.createElement("tspan",{x:20,y:41},"\u{1F525}")));var qi="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHRleHQgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIyIC0yMykiIGZpbGw9IiMyMzJCNDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZm9udC1mYW1pbHk9IkFwcGxlQ29sb3JFbW9qaSwgQXBwbGUgQ29sb3IgRW1vamkiIGZvbnQtc2l6ZT0iMTgiPgogICAgICAgICAgICAgICAgICAgICAgICA8dHNwYW4geD0iMjAiIHk9IjQxIj7wn5SlPC90c3Bhbj4KICAgICAgICAgICAgICAgICAgICA8L3RleHQ+PC9zdmc+",Ct=Ft(59301),Na=Object.defineProperty,mr=Object.defineProperties,Ra=Object.getOwnPropertyDescriptors,za=Object.getOwnPropertySymbols,da=Object.prototype.hasOwnProperty,Xa=Object.prototype.propertyIsEnumerable,ei=(We,be,Be)=>be in We?Na(We,be,{enumerable:!0,configurable:!0,writable:!0,value:Be}):We[be]=Be,ai=(We,be)=>{for(var Be in be||(be={}))da.call(be,Be)&&ei(We,Be,be[Be]);if(za)for(var Be of za(be))Xa.call(be,Be)&&ei(We,Be,be[Be]);return We},Ee=(We,be)=>mr(We,Ra(be)),pe=(We,be,Be)=>new Promise((ir,Fo)=>{var ri=yi=>{try{Bo(Be.next(yi))}catch($i){Fo($i)}},Ur=yi=>{try{Bo(Be.throw(yi))}catch($i){Fo($i)}},Bo=yi=>yi.done?ir(yi.value):Promise.resolve(yi.value).then(ri,Ur);Bo((Be=Be.apply(We,be)).next())}),Wn=({})=>{const We=(0,St.useParams)(),[be,Be]=(0,Ut.useState)(!1),[ir,Fo]=(0,Ut.useState)(0),[ri,Ur]=(0,Ut.useState)([]),[Bo,yi]=(0,Ut.useState)(!1),[$i,no]=(0,Ut.useState)({title:"",content:""}),[ga,$r]=(0,Ut.useState)(!1),[Mo,qe]=(0,Ut.useState)(""),[Li,Wi]=(0,Ut.useState)(!1),[ho,_i]=(0,Ut.useState)([]),[Ui,sr]=(0,Ut.useState)(""),Qo=We==null?void 0:We.coursesId,[io,Io]=(0,Ut.useState)({keyword:"",is_top:0,page:1,limit:10,questionable_type:"Course",questionable_id:Qo});(0,Ut.useEffect)(()=>{Lr(io)},[]);const Lr=oo=>pe(void 0,null,function*(){var tr,Dr;Be(!0);const Er=yield(0,pt.ZP)("/api/course_qna_sets.json",{method:"get",params:oo});Er.status===0&&(Ur(((tr=Er==null?void 0:Er.data)==null?void 0:tr.list)||[]),Fo((Dr=Er==null?void 0:Er.data)==null?void 0:Dr.size)),Be(!1)}),so=oo=>{io.keyword=oo,io.page=1,Io(ai({},io)),Lr(io)},ml=oo=>{io.is_top=oo,io.page=1,Io(ai({},io)),Lr(io)},Ql=(oo,tr)=>{io.page=oo,io.limit=tr,Io(ai({},io)),Lr(io)},Vr=oo=>pe(void 0,null,function*(){const tr=Ee(ai({},oo),{questionable_type:"Course",questionable_id:Qo});if(typeof Bo=="number"){const Dr=yield(0,pt.ZP)(`/api/course_qna_sets/${Bo}/update_qna_sets.json`,{method:"post",body:tr});(Dr==null?void 0:Dr.status)===0&&(we.ZP.success("\u7F16\u8F91\u6210\u529F"),Lr(io),yi(!1))}else{const Dr=yield(0,pt.ZP)("/api/course_qna_sets/add_qna_sets.json",{method:"post",body:tr});(Dr==null?void 0:Dr.status)===0&&(we.ZP.success("\u6DFB\u52A0\u6210\u529F"),io.page=1,io.keyword="",Io(ai({},io)),Lr(io),yi(!1))}}),ka=oo=>pe(void 0,null,function*(){Kt.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u5220\u9664\u5417\uFF1F",onOk:()=>pe(void 0,null,function*(){const tr=yield(0,pt.ZP)(`/api/course_qna_sets/${oo==null?void 0:oo.id}/remove_qna_sets.json`,{method:"post",body:{questionable_type:"Course",questionable_id:Qo}});if((tr==null?void 0:tr.status)===0){const Dr=ri.length===1&&io.page>1?io.page-1:io.page;io.page=Dr,Io(ai({},io)),Lr(io),we.ZP.success("\u5220\u9664\u6210\u529F")}})})}),Zr=[{title:"\u5E8F\u53F7",dataIndex:"index",width:100,render:(oo,tr,Dr)=>`${(io.page-1)*io.limit+Dr+1}`},{title:"\u95EE\u9898",dataIndex:"title",ellipsis:!0,render:(oo,tr)=>Ct.createElement(Le.Z,{placement:"topLeft",title:oo},Ct.createElement("span",{className:"c-black"},tr.is_top&&Ct.createElement("img",{width:12,className:"mr5",src:qi,style:{marginTop:"-4px"}}),oo||"--"))},{title:"\u56DE\u7B54",dataIndex:"content",ellipsis:!0,render:oo=>Ct.createElement(Le.Z,{placement:"topLeft",title:oo},Ct.createElement("span",{className:"c-black"},oo||"--"))},{title:"\u547D\u4E2D\u6B21\u6570",width:100,dataIndex:"hit_count",render:(oo,tr)=>Ct.createElement("span",{onClick:()=>{qe(tr.id)},className:"current c-light-primary"},oo)},{title:"\u64CD\u4F5C",width:104,align:"right",dataIndex:"id",ellipsis:!0,render:(oo,tr)=>Ct.createElement("span",null,Ct.createElement("span",{className:"c-light-primary current mr20",onClick:()=>{yi(oo),no({title:tr==null?void 0:tr.title,content:tr==null?void 0:tr.content,is_top:tr==null?void 0:tr.is_top})}},"\u7F16\u8F91"),Ct.createElement("span",{className:"current c-red",onClick:()=>ka(tr)},"\u5220\u9664"))}],_s={onRemove:()=>{_i([])},beforeUpload:oo=>{if((oo==null?void 0:oo.size)>1024*1024*50)return we.ZP.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;if(!(oo.type==="application/vnd.ms-excel"||oo.type==="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"))return we.ZP.info("\u8BF7\u4E0A\u4F20 .xls \u6216 .xlsx \u6587\u4EF6\uFF01"),!1;let Dr=[];return Dr.push(oo),_i([...Dr]),!1},fileList:ho,accept:".xls,.xlsx"},gs=[{value:0,label:"\u5168\u90E8\u95EE\u9898"},{value:1,label:"\u70ED\u95E8\u95EE\u9898"}];return Ct.createElement("div",{className:ni.collect},Ct.createElement("div",{className:ni.head},Ct.createElement("div",{className:ni.btn,onClick:()=>$r(!0)},Ct.createElement("i",{className:"iconfont icon-daoru1 font19 mr5"}),Ct.createElement("span",null,"\u5BFC\u5165")),Ct.createElement("div",{className:ni.btn,onClick:()=>{const oo=`${Me.Z.API_SERVER}/api/course_qna_sets/export.json?questionable_id=${Qo}&questionable_type=Course`;(0,Se.Nd)(null,oo)}},Ct.createElement("i",{className:"iconfont icon-daochu2 font19 mr5"}),Ct.createElement("span",null,"\u5BFC\u51FA")),Ct.createElement(Hi.op,{type:"primary",shape:"default",onClick:()=>{yi(!0),no({title:"",content:""})}},"\u65B0\u589E\u95EE\u7B54")),Ct.createElement(Ie.Z,{align:"middle",justify:"space-between"},Ct.createElement(Jo.default,{value:io.is_top,placeholder:"\u8BF7\u9009\u62E9\u56DE\u7B54\u6765\u6E90",onChange:ml,options:gs,style:{width:160}}),Ct.createElement(pn.default.Search,{style:{width:274},placeholder:"\u8BF7\u8F93\u5165\u95EE\u9898\u3001\u95EE\u7B54",value:Ui,onChange:oo=>sr(oo.target.value),onSearch:so})),Ct.createElement(dt.default,{columns:Zr,className:"mt20",dataSource:ri,loading:be,rowKey:"id",pagination:{current:io.page,hideOnSinglePage:!ir,showQuickJumper:!0,showSizeChanger:!0,pageSize:io.limit,pageSizeOptions:["10","20","50","100","200"],total:ir,size:"default",showTotal:Se.rU,onChange:Ql}}),Ct.createElement(Kt.default,{title:"\u5BFC\u5165\u95EE\u7B54",open:ga,centered:!0,zIndex:800,confirmLoading:Li,onCancel:()=>{$r(!1),_i([])},onOk:()=>pe(void 0,null,function*(){var oo;const tr=new FormData;if(tr.append("questionable_id",Qo),tr.append("questionable_type","Course"),ho.length>0)tr.append("file",ho[0]);else{we.ZP.warning("\u8BF7\u9009\u62E9\u6587\u4EF6");return}Wi(!0);let Dr=yield(0,pt.ZP)("/api/course_qna_sets/import.json",{method:"post",body:tr},!0);(Dr==null?void 0:Dr.status)===0&&((oo=Dr==null?void 0:Dr.fail)!=null&&oo.length?Kt.default.confirm({icon:null,width:485,title:"\u5BFC\u5165\u5931\u8D25",centered:!0,content:Ct.createElement("span",null,"\u68C0\u6D4B\u5230\u672C\u6B21\u5BFC\u5165\u5B58\u5728\u4E0D\u7B26\u5408\u8981\u6C42\u7684\u6570\u636E\uFF0C\u70B9\u51FB\u4E0B\u8F7D",Ct.createElement("a",{href:`${Me.Z.API_SERVER}/api/course_qna_sets/down_error_import_file.json?course_id=${Qo}`},"\u5BFC\u5165\u5931\u8D25\u7684\u6570\u636E"),"\u67E5\u770B")}):(we.ZP.success("\u5BFC\u5165\u6210\u529F"),io.page=1,io.keyword="",Io(ai({},io)),Lr(io),$r(!1),_i([]))),Wi(!1)})},Ct.createElement("p",{style:{color:"#232B40"}},"\u6B65\u9AA4\u4E00\uFF1A",Ct.createElement("span",{className:"ml15 mr5"},"\u4E0B\u8F7D"),Ct.createElement("a",{href:`${Me.Z.API_SERVER}/api/course_qna_sets/down_template`},"\u5BFC\u5165\u95EE\u7B54\u96C6\u6A21\u677F"),"\uFF0C\u5E76\u586B\u5199\u5BF9\u5E94\u5185\u5BB9"),Ct.createElement("p",{style:{color:"#232B40"}},"\u6B65\u9AA4\u4E8C\uFF1A",Ct.createElement("span",{className:"ml15"},"\u4E0A\u4F20\u586B\u5199\u597D\u7684\u300A\u5BFC\u5165\u95EE\u7B54\u6A21\u677F\u300B")),Ct.createElement("div",{style:{marginLeft:74}},Ct.createElement(Pn.default,ai({},_s),Ct.createElement(Hi.op,{shape:"default",icon:Ct.createElement("i",{className:"iconfont icon-shangchuan3",style:{fontSize:14}})},"\u4E0A\u4F20\u6587\u4EF6")))),Ct.createElement(Sn,{visible:Bo,onCancel:()=>yi(!1),onOk:Vr,modalParams:$i}),Ct.createElement(As,{visible:Mo,onCancel:()=>qe(!1)}))},On={dialogue:"dialogue___AZQe5",liWrap:"liWrap___RA0by",li:"li___oYseT",line:"line___dgHwf",apply:"apply___jYcZw",content:"content___qBZkI",borderBox:"borderBox___LiE89",text:"text___vS7k8",source:"source___elq8M",action:"action____3wiz",teacher:"teacher___MrQ2w",student:"student___OGycs"},Kn=Ft(5083),Ge=Object.defineProperty,Tn=Object.getOwnPropertySymbols,Si=Object.prototype.hasOwnProperty,ui=Object.prototype.propertyIsEnumerable,ao=(We,be,Be)=>be in We?Ge(We,be,{enumerable:!0,configurable:!0,writable:!0,value:Be}):We[be]=Be,oe=(We,be)=>{for(var Be in be||(be={}))Si.call(be,Be)&&ao(We,Be,be[Be]);if(Tn)for(var Be of Tn(be))ui.call(be,Be)&&ao(We,Be,be[Be]);return We};const mn=We=>React.createElement("svg",oe({width:38,height:38,xmlns:"http://www.w3.org/2000/svg"},We),React.createElement("title",null,"1"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"50%",y1:"2.064%",x2:"50%",y2:"100%",id:"a1_svg__a"},React.createElement("stop",{stopColor:"#E1FFFD",offset:"0%"}),React.createElement("stop",{stopColor:"#EBFFFD",offset:"100%"}))),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"url(#a1_svg__a)",width:38,height:38,rx:19}),React.createElement("g",{fillRule:"nonzero"},React.createElement("path",{d:"M21.665 9a2.486 2.486 0 0 1 2.484 2.484v6.21a2.483 2.483 0 0 1-2.484 2.482H14.3l-3.817.004A2.488 2.488 0 0 1 8 17.696v-6.212A2.486 2.486 0 0 1 10.484 9ZM16 11c-.316 0-.571.224-.571.5V14H12.57a.59.59 0 0 0-.494.25.446.446 0 0 0 0 .5.59.59 0 0 0 .494.25h2.858v2.5c0 .276.255.5.571.5.316 0 .571-.224.571-.5V15h2.858c.315 0 .571-.224.571-.5s-.256-.5-.571-.5H16.57v-2.5c0-.276-.255-.5-.571-.5Z",fill:"#3CCAAD"}),React.createElement("path",{d:"M27.88 15.22a2.486 2.486 0 0 1 2.485 2.485v6.212a2.488 2.488 0 0 1-2.484 2.484h-1.243v2.107c0 .31-.352.49-.6.303l-3.216-2.41h-4.88a2.488 2.488 0 0 1-2.484-2.484v-2.485h6.211a3.734 3.734 0 0 0 3.727-3.727v-2.484h2.485Z",fill:"#5CD2BA"}))));var li="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzgiIGhlaWdodD0iMzgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI1MCUiIHkxPSIyLjA2NCUiIHgyPSI1MCUiIHkyPSIxMDAlIiBpZD0iYSI+PHN0b3Agc3RvcC1jb2xvcj0iI0UxRkZGRCIgb2Zmc2V0PSIwJSIvPjxzdG9wIHN0b3AtY29sb3I9IiNFQkZGRkQiIG9mZnNldD0iMTAwJSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PHJlY3QgZmlsbD0idXJsKCNhKSIgd2lkdGg9IjM4IiBoZWlnaHQ9IjM4IiByeD0iMTkiLz48ZyBmaWxsLXJ1bGU9Im5vbnplcm8iPjxwYXRoIGQ9Ik0yMS42NjUgOWEyLjQ4NiAyLjQ4NiAwIDAgMSAyLjQ4NCAyLjQ4NHY2LjIxYTIuNDgzIDIuNDgzIDAgMCAxLTIuNDg0IDIuNDgySDE0LjNsLTMuODE3LjAwNEEyLjQ4OCAyLjQ4OCAwIDAgMSA4IDE3LjY5NnYtNi4yMTJBMi40ODYgMi40ODYgMCAwIDEgMTAuNDg0IDlaTTE2IDExYy0uMzE2IDAtLjU3MS4yMjQtLjU3MS41VjE0SDEyLjU3YS41OS41OSAwIDAgMC0uNDk0LjI1LjQ0Ni40NDYgMCAwIDAgMCAuNS41OS41OSAwIDAgMCAuNDk0LjI1aDIuODU4djIuNWMwIC4yNzYuMjU1LjUuNTcxLjUuMzE2IDAgLjU3MS0uMjI0LjU3MS0uNVYxNWgyLjg1OGMuMzE1IDAgLjU3MS0uMjI0LjU3MS0uNXMtLjI1Ni0uNS0uNTcxLS41SDE2LjU3di0yLjVjMC0uMjc2LS4yNTUtLjUtLjU3MS0uNVoiIGZpbGw9IiMzQ0NBQUQiLz48cGF0aCBkPSJNMjcuODggMTUuMjJhMi40ODYgMi40ODYgMCAwIDEgMi40ODUgMi40ODV2Ni4yMTJhMi40ODggMi40ODggMCAwIDEtMi40ODQgMi40ODRoLTEuMjQzdjIuMTA3YzAgLjMxLS4zNTIuNDktLjYuMzAzbC0zLjIxNi0yLjQxaC00Ljg4YTIuNDg4IDIuNDg4IDAgMCAxLTIuNDg0LTIuNDg0di0yLjQ4NWg2LjIxMWEzLjczNCAzLjczNCAwIDAgMCAzLjcyNy0zLjcyN3YtMi40ODRoMi40ODVaIiBmaWxsPSIjNUNEMkJBIi8+PC9nPjwvZz48L3N2Zz4=",eo=Object.defineProperty,De=Object.getOwnPropertySymbols,dn=Object.prototype.hasOwnProperty,ro=Object.prototype.propertyIsEnumerable,Uo=(We,be,Be)=>be in We?eo(We,be,{enumerable:!0,configurable:!0,writable:!0,value:Be}):We[be]=Be,Vo=(We,be)=>{for(var Be in be||(be={}))dn.call(be,Be)&&Uo(We,Be,be[Be]);if(De)for(var Be of De(be))ro.call(be,Be)&&Uo(We,Be,be[Be]);return We};const Ii=We=>React.createElement("svg",Vo({width:38,height:38,xmlns:"http://www.w3.org/2000/svg"},We),React.createElement("title",null,"2"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"a2_svg__a"},React.createElement("stop",{stopColor:"#EAF1FF",offset:"0%"}),React.createElement("stop",{stopColor:"#EBFAFF",offset:"100%"}))),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"url(#a2_svg__a)",width:38,height:38,rx:19}),React.createElement("g",{fillRule:"nonzero"},React.createElement("path",{fill:"#202425",opacity:.01,d:"M9 9h20v20H9z"}),React.createElement("path",{d:"M25.667 19.667c.736 0 1.344.6 1.23 1.328a8.667 8.667 0 0 1-17.064.362 8.667 8.667 0 0 1 7.172-10.254c.728-.114 1.328.494 1.328 1.23v6c0 .737.597 1.334 1.334 1.334h6Z",fill:"#0276FF"}),React.createElement("path",{d:"M27 18.333c.737 0 1.344-.6 1.23-1.328a8.668 8.668 0 0 0-7.235-7.236c-.728-.113-1.328.495-1.328 1.231v6c0 .736.597 1.333 1.333 1.333h6Z",fill:"#A5C7FF"}))));var Fi="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzgiIGhlaWdodD0iMzgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI1MCUiIHkxPSIwJSIgeDI9IjUwJSIgeTI9IjEwMCUiIGlkPSJhIj48c3RvcCBzdG9wLWNvbG9yPSIjRUFGMUZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0VCRkFGRiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSJ1cmwoI2EpIiB3aWR0aD0iMzgiIGhlaWdodD0iMzgiIHJ4PSIxOSIvPjxnIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZmlsbD0iIzIwMjQyNSIgb3BhY2l0eT0iLjAxIiBkPSJNOSA5aDIwdjIwSDl6Ii8+PHBhdGggZD0iTTI1LjY2NyAxOS42NjdjLjczNiAwIDEuMzQ0LjYgMS4yMyAxLjMyOGE4LjY2NyA4LjY2NyAwIDAgMS0xNy4wNjQuMzYyIDguNjY3IDguNjY3IDAgMCAxIDcuMTcyLTEwLjI1NGMuNzI4LS4xMTQgMS4zMjguNDk0IDEuMzI4IDEuMjN2NmMwIC43MzcuNTk3IDEuMzM0IDEuMzM0IDEuMzM0aDZaIiBmaWxsPSIjMDI3NkZGIi8+PHBhdGggZD0iTTI3IDE4LjMzM2MuNzM3IDAgMS4zNDQtLjYgMS4yMy0xLjMyOGE4LjY2OCA4LjY2OCAwIDAgMC03LjIzNS03LjIzNmMtLjcyOC0uMTEzLTEuMzI4LjQ5NS0xLjMyOCAxLjIzMXY2YzAgLjczNi41OTcgMS4zMzMgMS4zMzMgMS4zMzNoNloiIGZpbGw9IiNBNUM3RkYiLz48L2c+PC9nPjwvc3ZnPg==",Pi=Object.defineProperty,Wo=Object.getOwnPropertySymbols,br=Object.prototype.hasOwnProperty,wr=Object.prototype.propertyIsEnumerable,$e=(We,be,Be)=>be in We?Pi(We,be,{enumerable:!0,configurable:!0,writable:!0,value:Be}):We[be]=Be,vr=(We,be)=>{for(var Be in be||(be={}))br.call(be,Be)&&$e(We,Be,be[Be]);if(Wo)for(var Be of Wo(be))wr.call(be,Be)&&$e(We,Be,be[Be]);return We};const ur=We=>React.createElement("svg",vr({width:38,height:38,xmlns:"http://www.w3.org/2000/svg"},We),React.createElement("title",null,"3"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"a3_svg__a"},React.createElement("stop",{stopColor:"#FAF4FF",offset:"0%"}),React.createElement("stop",{stopColor:"#F4E8FF",offset:"0%"}),React.createElement("stop",{stopColor:"#FDF6FF",offset:"100%"}))),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"url(#a3_svg__a)",width:38,height:38,rx:19}),React.createElement("g",{fillRule:"nonzero"},React.createElement("path",{d:"M22.923 16.787a3.386 3.386 0 0 0 3.784-3.826 3.384 3.384 0 0 0-2.913-2.934 3.393 3.393 0 0 0-3.805 3.827 3.406 3.406 0 0 0 2.934 2.933Z",fill:"#AC99E2"}),React.createElement("path",{d:"M14.25 16.787a3.386 3.386 0 0 0 3.783-3.826 3.406 3.406 0 0 0-2.934-2.934 3.393 3.393 0 0 0-3.805 3.827 3.428 3.428 0 0 0 2.955 2.933ZM14.547 18.51C12.038 18.51 7 19.805 7 22.377v4.21c0 .233.191.425.425.425h14.243a.426.426 0 0 0 .426-.425v-4.21c0-2.572-5.039-3.869-7.547-3.869Z",fill:"#B19FE4"}),React.createElement("path",{d:"M23.114 18.51c-.319 0-.68.02-1.063.063 1.276.914 2.168 2.168 2.168 3.805v4.21c0 .233.192.425.426.425h5.74a.426.426 0 0 0 .425-.425v-4.21c0-2.572-5.124-3.869-7.696-3.869Z",fill:"#AC99E2"}))));var ko="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzgiIGhlaWdodD0iMzgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI1MCUiIHkxPSIwJSIgeDI9IjUwJSIgeTI9IjEwMCUiIGlkPSJhIj48c3RvcCBzdG9wLWNvbG9yPSIjRkFGNEZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0Y0RThGRiIgb2Zmc2V0PSIwJSIvPjxzdG9wIHN0b3AtY29sb3I9IiNGREY2RkYiIG9mZnNldD0iMTAwJSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PHJlY3QgZmlsbD0idXJsKCNhKSIgd2lkdGg9IjM4IiBoZWlnaHQ9IjM4IiByeD0iMTkiLz48ZyBmaWxsLXJ1bGU9Im5vbnplcm8iPjxwYXRoIGQ9Ik0yMi45MjMgMTYuNzg3YTMuMzg2IDMuMzg2IDAgMCAwIDMuNzg0LTMuODI2IDMuMzg0IDMuMzg0IDAgMCAwLTIuOTEzLTIuOTM0IDMuMzkzIDMuMzkzIDAgMCAwLTMuODA1IDMuODI3IDMuNDA2IDMuNDA2IDAgMCAwIDIuOTM0IDIuOTMzWiIgZmlsbD0iI0FDOTlFMiIvPjxwYXRoIGQ9Ik0xNC4yNSAxNi43ODdhMy4zODYgMy4zODYgMCAwIDAgMy43ODMtMy44MjYgMy40MDYgMy40MDYgMCAwIDAtMi45MzQtMi45MzQgMy4zOTMgMy4zOTMgMCAwIDAtMy44MDUgMy44MjcgMy40MjggMy40MjggMCAwIDAgMi45NTUgMi45MzNaTTE0LjU0NyAxOC41MUMxMi4wMzggMTguNTEgNyAxOS44MDUgNyAyMi4zNzd2NC4yMWMwIC4yMzMuMTkxLjQyNS40MjUuNDI1aDE0LjI0M2EuNDI2LjQyNiAwIDAgMCAuNDI2LS40MjV2LTQuMjFjMC0yLjU3Mi01LjAzOS0zLjg2OS03LjU0Ny0zLjg2OVoiIGZpbGw9IiNCMTlGRTQiLz48cGF0aCBkPSJNMjMuMTE0IDE4LjUxYy0uMzE5IDAtLjY4LjAyLTEuMDYzLjA2MyAxLjI3Ni45MTQgMi4xNjggMi4xNjggMi4xNjggMy44MDV2NC4yMWMwIC4yMzMuMTkyLjQyNS40MjYuNDI1aDUuNzRhLjQyNi40MjYgMCAwIDAgLjQyNS0uNDI1di00LjIxYzAtMi41NzItNS4xMjQtMy44NjktNy42OTYtMy44NjlaIiBmaWxsPSIjQUM5OUUyIi8+PC9nPjwvZz48L3N2Zz4=",Ye=Object.defineProperty,Yn=Object.getOwnPropertySymbols,Ci=Object.prototype.hasOwnProperty,Bi=Object.prototype.propertyIsEnumerable,Ai=(We,be,Be)=>be in We?Ye(We,be,{enumerable:!0,configurable:!0,writable:!0,value:Be}):We[be]=Be,wo=(We,be)=>{for(var Be in be||(be={}))Ci.call(be,Be)&&Ai(We,Be,be[Be]);if(Yn)for(var Be of Yn(be))Bi.call(be,Be)&&Ai(We,Be,be[Be]);return We};const nr=We=>React.createElement("svg",wo({width:38,height:38,xmlns:"http://www.w3.org/2000/svg"},We),React.createElement("title",null,"4"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"a4_svg__a"},React.createElement("stop",{stopColor:"#F9E5BB",offset:"0%"}),React.createElement("stop",{stopColor:"#FFF8ED",offset:"100%"}))),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"url(#a4_svg__a)",width:38,height:38,rx:19}),React.createElement("g",{fillRule:"nonzero"},React.createElement("path",{d:"M26.016 20.918V16.47A7.468 7.468 0 0 0 18.548 9a7.468 7.468 0 0 0-7.47 7.47v4.447a1.867 1.867 0 0 0 .801 3.555h13.337a1.867 1.867 0 0 0 .8-3.554Z",fill:"#ED8C50"}),React.createElement("path",{d:"m21.253 25.169-5.413.005c-.48-.005-.493.534-.493.534a3.2 3.2 0 1 0 6.401 0s0-.534-.495-.54Z",fill:"#EF9004"}))));var Ro="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzgiIGhlaWdodD0iMzgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI1MCUiIHkxPSIwJSIgeDI9IjUwJSIgeTI9IjEwMCUiIGlkPSJhIj48c3RvcCBzdG9wLWNvbG9yPSIjRjlFNUJCIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0ZGRjhFRCIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSJ1cmwoI2EpIiB3aWR0aD0iMzgiIGhlaWdodD0iMzgiIHJ4PSIxOSIvPjxnIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZD0iTTI2LjAxNiAyMC45MThWMTYuNDdBNy40NjggNy40NjggMCAwIDAgMTguNTQ4IDlhNy40NjggNy40NjggMCAwIDAtNy40NyA3LjQ3djQuNDQ3YTEuODY3IDEuODY3IDAgMCAwIC44MDEgMy41NTVoMTMuMzM3YTEuODY3IDEuODY3IDAgMCAwIC44LTMuNTU0WiIgZmlsbD0iI0VEOEM1MCIvPjxwYXRoIGQ9Im0yMS4yNTMgMjUuMTY5LTUuNDEzLjAwNWMtLjQ4LS4wMDUtLjQ5My41MzQtLjQ5My41MzRhMy4yIDMuMiAwIDEgMCA2LjQwMSAwczAtLjUzNC0uNDk1LS41NFoiIGZpbGw9IiNFRjkwMDQiLz48L2c+PC9nPjwvc3ZnPg==",Do=Object.defineProperty,hr=Object.getOwnPropertySymbols,on=Object.prototype.hasOwnProperty,Zo=Object.prototype.propertyIsEnumerable,en=(We,be,Be)=>be in We?Do(We,be,{enumerable:!0,configurable:!0,writable:!0,value:Be}):We[be]=Be,Ko=(We,be)=>{for(var Be in be||(be={}))on.call(be,Be)&&en(We,Be,be[Be]);if(hr)for(var Be of hr(be))Zo.call(be,Be)&&en(We,Be,be[Be]);return We};const ia=We=>React.createElement("svg",Ko({width:38,height:38,xmlns:"http://www.w3.org/2000/svg"},We),React.createElement("title",null,"6"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"50%",y1:"99.528%",x2:"50%",y2:"0%",id:"a5_svg__a"},React.createElement("stop",{stopColor:"#FFF5EB",offset:"0%"}),React.createElement("stop",{stopColor:"#FFEADE",offset:"100%"}))),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"url(#a5_svg__a)",width:38,height:38,rx:19}),React.createElement("path",{d:"M13.996 16.286h-2.757a1.51 1.51 0 0 0-1.509 1.509v8.685c0 .834.677 1.508 1.509 1.508h2.756v-11.7l.001-.002Zm14.659.564a1.511 1.511 0 0 0-1.176-.564h-5.176c.16-.338.335-.73.494-1.153.285-.75.47-1.43.544-2.028.108-.84.009-1.538-.298-2.075-.55-.962-1.589-1.163-2.365-1.163-.834 0-1.543.432-2.106 1.283-.421.637-.735 1.46-1.038 2.253-.664 1.743-1.172 2.885-2.14 2.885h-.041.015V27.99h10.226a1.51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EuNTEgMS41MSAwIDAgMCAxLjQ3NS0xLjE4MnYtLjAwNGwxLjg4Mi04LjY4NGExLjUxMSAxLjUxMSAwIDAgMC0uMjk2LTEuMjcxWiIgZmlsbD0iI0ZCOTAxRiIgZmlsbC1ydWxlPSJub256ZXJvIi8+PC9nPjwvc3ZnPg==",Sa=Object.defineProperty,Jr=Object.getOwnPropertySymbols,Ao=Object.prototype.hasOwnProperty,Pr=Object.prototype.propertyIsEnumerable,Ja=(We,be,Be)=>be in We?Sa(We,be,{enumerable:!0,configurable:!0,writable:!0,value:Be}):We[be]=Be,ws=(We,be)=>{for(var Be in be||(be={}))Ao.call(be,Be)&&Ja(We,Be,be[Be]);if(Jr)for(var Be of Jr(be))Pr.call(be,Be)&&Ja(We,Be,be[Be]);return We};const oi=We=>React.createElement("svg",ws({width:38,height:38,xmlns:"http://www.w3.org/2000/svg"},We),React.createElement("title",null,"5"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"a6_svg__a"},React.createElement("stop",{stopColor:"#FFF0ED",offset:"0%"}),React.createElement("stop",{stopColor:"#FFEAED",offset:"100%"}))),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"url(#a6_svg__a)",width:38,height:38,rx:19}),React.createElement("path",{d:"M25.004 22.714h2.757a1.51 1.51 0 0 0 1.509-1.509V12.52c0-.834-.677-1.508-1.509-1.508h-2.756v11.7l-.001.002Zm-14.659-.564c.287.356.72.563 1.176.564h5.176c-.16.338-.335.73-.494 1.153-.285.75-.47 1.43-.544 2.028-.108.84-.009 1.538.298 2.075.55.962 1.589 1.163 2.365 1.163.834 0 1.543-.432 2.106-1.283.421-.637.735-1.46 1.038-2.253.664-1.743 1.172-2.885 2.14-2.885h.041-.015V11.01H13.406a1.51 1.51 0 0 0-1.475 1.182v.004L10.05 20.88c-.1.447.01.914.296 1.271Z",fill:"#F17171",fillRule:"nonzero"})));var Wt="data:image/svg+xml;base64,PHN2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w9IiNGMTcxNzEiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvZz48L3N2Zz4=",Js=Object.defineProperty,ca=Object.getOwnPropertySymbols,Mu=Object.prototype.hasOwnProperty,_a=Object.prototype.propertyIsEnumerable,lu=(We,be,Be)=>be in We?Js(We,be,{enumerable:!0,configurable:!0,writable:!0,value:Be}):We[be]=Be,$u=(We,be)=>{for(var Be in be||(be={}))Mu.call(be,Be)&&lu(We,Be,be[Be]);if(ca)for(var Be of ca(be))_a.call(be,Be)&&lu(We,Be,be[Be]);return We};const ad=We=>React.createElement("svg",$u({width:38,height:38,xmlns:"http://www.w3.org/2000/svg"},We),React.createElement("title",null,"7"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"50%",y1:"2.064%",x2:"50%",y2:"100%",id:"a7_svg__a"},React.createElement("stop",{stopColor:"#DCFFD7",offset:"0%"}),React.createElement("stop",{stopColor:"#EBFFEA",offset:"100%"}))),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"url(#a7_svg__a)",width:38,height:38,rx:19}),React.createElement("path",{d:"M19.012 9.03a9.883 9.883 0 0 1 4.814 1.245l-1.922 1.921.064.642.089.896-.848.847a4.878 4.878 0 0 0-2.197-.522 4.931 4.931 0 0 0-4.925 4.926 4.931 4.931 0 0 0 4.925 4.926 4.931 4.931 0 0 0 4.926-4.926c0-.41-.056-.808-.152-1.191l.485-.488.68-.68.895.088.643.064.456-.456 1.218-1.213a9.857 9.857 0 0 1 .807 3.879c0 5.498-4.459 9.957-9.958 9.957-5.498 0-9.957-4.459-9.957-9.957 0-5.5 4.459-9.958 9.957-9.958Zm7.324 0 .234 2.532 2.4.25-2.994 3.16-1.529-.159-2.594 2.74c.148.377.233.788.233 1.221 0 1.764-1.359 3.2-3.029 3.2s-3.032-1.436-3.032-3.2c0-1.764 1.358-3.198 3.03-3.198.764 0 1.455.314 1.99.809l1.32-1.392 1.126-1.191h.001l-.147-1.614 2.991-3.158Z",fill:"#00D497",fillRule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41MzIgMi40LjI1LTIuOTk0IDMuMTYtMS41MjktLjE1OS0yLjU5NCAyLjc0Yy4xNDguMzc3LjIzMy43ODguMjMzIDEuMjIxIDAgMS43NjQtMS4zNTkgMy4yLTMuMDI5IDMuMnMtMy4wMzItMS40MzYtMy4wMzItMy4yYzAtMS43NjQgMS4zNTgtMy4xOTggMy4wMy0zLjE5OC43NjQgMCAxLjQ1NS4zMTQgMS45OS44MDlsMS4zMi0xLjM5MiAxLjEyNi0xLjE5MWguMDAxbC0uMTQ3LTEuNjE0IDIuOTkxLTMuMTU4WiIgZmlsbD0iIzAwRDQ5NyIgZmlsbC1ydWxlPSJub256ZXJvIi8+PC9nPjwvc3ZnPg==",Tr=Object.defineProperty,_r=Object.getOwnPropertySymbols,gl=Object.prototype.hasOwnProperty,Ki=Object.prototype.propertyIsEnumerable,Mi=(We,be,Be)=>be in We?Tr(We,be,{enumerable:!0,configurable:!0,writable:!0,value:Be}):We[be]=Be,un=(We,be)=>{for(var Be in be||(be={}))gl.call(be,Be)&&Mi(We,Be,be[Be]);if(_r)for(var Be of _r(be))Ki.call(be,Be)&&Mi(We,Be,be[Be]);return We};const zi=We=>React.createElement("svg",un({width:38,height:38,xmlns:"http://www.w3.org/2000/svg"},We),React.createElement("title",null,"8"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"a8_svg__a"},React.createElement("stop",{stopColor:"#FFF0ED",offset:"0%"}),React.createElement("stop",{stopColor:"#FFEAED",offset:"100%"}))),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"url(#a8_svg__a)",width:38,height:38,rx:19}),React.createElement("g",{fill:"#C67070",fillRule:"nonzero"},React.createElement("path",{d:"M16.586 16.425c0 1.191.98 2.172 2.172 2.172 1.191 0 2.172-.98 2.172-2.172 0-1.19-.981-2.172-2.172-2.172-1.191 0-2.172.981-2.172 2.172Z"}),React.createElement("path",{d:"M18.758 8.018C15.885 9.979 12.943 10.96 10 10.96v6.866c0 3.924 1.962 7.497 5.185 9.67l3.573 2.381 3.573-2.382c3.223-2.172 5.185-5.815 5.185-9.669V10.96c-2.943 0-5.815-.98-8.758-2.942Zm.7 11.98V21.4h2.173v1.471h-2.172v2.312h-1.402v-5.185c-1.681-.35-2.942-1.821-2.942-3.573a3.618 3.618 0 0 1 3.643-3.643 3.618 3.618 0 0 1 3.643 3.643c0 1.752-1.26 3.223-2.942 3.573Z"}))));var No="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzgiIGhlaWdodD0iMzgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI1MCUiIHkxPSIwJSIgeDI9IjUwJSIgeTI9IjEwMCUiIGlkPSJhIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZGMEVEIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0ZGRUFFRCIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSJ1cmwoI2EpIiB3aWR0aD0iMzgiIGhlaWdodD0iMzgiIHJ4PSIxOSIvPjxnIGZpbGw9IiNDNjcwNzAiIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZD0iTTE2LjU4NiAxNi40MjVjMCAxLjE5MS45OCAyLjE3MiAyLjE3MiAyLjE3MiAxLjE5MSAwIDIuMTcyLS45OCAyLjE3Mi0yLjE3MiAwLTEuMTktLjk4MS0yLjE3Mi0yLjE3Mi0yLjE3Mi0xLjE5MSAwLTIuMTcyLjk4MS0yLjE3MiAyLjE3MloiLz48cGF0aCBkPSJNMTguNzU4IDguMDE4QzE1Ljg4NSA5Ljk3OSAxMi45NDMgMTAuOTYgMTAgMTAuOTZ2Ni44NjZjMCAzLjkyNCAxLjk2MiA3LjQ5NyA1LjE4NSA5LjY3bDMuNTczIDIuMzgxIDMuNTczLTIuMzgyYzMuMjIzLTIuMTcyIDUuMTg1LTUuODE1IDUuMTg1LTkuNjY5VjEwLjk2Yy0yLjk0MyAwLTUuODE1LS45OC04Ljc1OC0yLjk0MlptLjcgMTEuOThWMjEuNGgyLjE3M3YxLjQ3MWgtMi4xNzJ2Mi4zMTJoLTEuNDAydi01LjE4NWMtMS42ODEtLjM1LTIuOTQyLTEuODIxLTIuOTQyLTMuNTczYTMuNjE4IDMuNjE4IDAgMCAxIDMuNjQzLTMuNjQzIDMuNjE4IDMuNjE4IDAgMCAxIDMuNjQzIDMuNjQzYzAgMS43NTItMS4yNiAzLjIyMy0yLjk0MiAzLjU3M1oiLz48L2c+PC9nPjwvc3ZnPg==",Rr=Ft(19909),rs=Ft(85149),qr=Ft(56102),vi=Ft(59301),cs=Object.defineProperty,fl=Object.getOwnPropertySymbols,Ea=Object.prototype.hasOwnProperty,uu=Object.prototype.propertyIsEnumerable,ke=(We,be,Be)=>be in We?cs(We,be,{enumerable:!0,configurable:!0,writable:!0,value:Be}):We[be]=Be,oa=(We,be)=>{for(var Be in be||(be={}))Ea.call(be,Be)&&ke(We,Be,be[Be]);if(fl)for(var Be of fl(be))uu.call(be,Be)&&ke(We,Be,be[Be]);return We},pl=(We,be,Be)=>new Promise((ir,Fo)=>{var ri=yi=>{try{Bo(Be.next(yi))}catch($i){Fo($i)}},Ur=yi=>{try{Bo(Be.throw(yi))}catch($i){Fo($i)}},Bo=yi=>yi.done?ir(yi.value):Promise.resolve(yi.value).then(ri,Ur);Bo((Be=Be.apply(We,be)).next())});const{RangePicker:Tl}=Kn.default;var ss=({})=>{const We=(0,St.useParams)(),[be,Be]=(0,Ut.useState)(!1),[ir,Fo]=(0,Ut.useState)(0),[ri,Ur]=(0,Ut.useState)([]),[Bo,yi]=(0,Ut.useState)(!1),[$i,no]=(0,Ut.useState)(!1),[ga,$r]=(0,Ut.useState)(!1),[Mo,qe]=(0,Ut.useState)(""),[Li,Wi]=(0,Ut.useState)(!1),[ho,_i]=(0,Ut.useState)(null),Ui=(0,Ut.useRef)(void 0),[sr,Qo]=(0,Ut.useState)(""),io=We==null?void 0:We.coursesId,[Io,Lr]=(0,Ut.useState)({sessions_count:"--",message_count:"--",hit_count:"--",like_count:"--",dislike_count:"--",total_tokens:"--",total_user_count:"--",today_session_count:"--"}),[so,ml]=(0,Ut.useState)({time:void 0,start_date:"",end_date:"",keyword:"",status:0,page:1,limit:10,questionable_id:io,questionable_type:"Course"});(0,Ut.useEffect)(()=>{Ql(),Vr(so)},[]);const Ql=()=>pl(void 0,null,function*(){const _t=yield(0,pt.ZP)("/api/course_qna_sessions/statistics.json",{method:"get",params:{questionable_id:io,questionable_type:"Course"}});_t.status===0&&Lr((_t==null?void 0:_t.data)||{})}),Vr=_t=>pl(void 0,null,function*(){var He,Ps;Be(!0);const Aa=yield(0,pt.ZP)("/api/course_qna_sessions.json",{method:"get",params:_t});Aa.status===0&&(Ur(((He=Aa==null?void 0:Aa.data)==null?void 0:He.list)||[]),Fo((Ps=Aa==null?void 0:Aa.data)==null?void 0:Ps.size)),Be(!1)}),ka=_t=>{so.keyword=_t,so.page=1,ml(oa({},so)),Vr(so)},Zr=(_t,He)=>{so.status=_t,so.page=1,ml(oa({},so)),Vr(so)},_s=(_t,He)=>{so.start_date=He[0],so.end_date=He[1],so.page=1,ml(oa({},so)),Vr(so)},gs=(_t,He)=>{so.page=_t,so.limit=He,ml(oa({},so)),Vr(so)},oo=[{title:"\u5E8F\u53F7",dataIndex:"index",width:70,render:(_t,He,Ps)=>`${(so.page-1)*so.limit+Ps+1}`},{title:"\u4F1A\u8BDD\u6807\u9898",dataIndex:"question",ellipsis:!0,render:(_t,He)=>vi.createElement(Le.Z,{placement:"topLeft",title:_t},vi.createElement("span",{onClick:()=>{_i(He.id),yi(!0)},className:"c-light-primary current"},_t||"--"))},{title:"\u7528\u6237",dataIndex:"user_name",width:100,ellipsis:!0,render:_t=>vi.createElement(Le.Z,{placement:"topLeft",title:_t},vi.createElement("span",{className:"c-black"},_t||"--"))},{title:"\u6D88\u606F\u6570",width:70,dataIndex:"message_size",render:_t=>vi.createElement("span",{className:"c-black"},_t)},{title:"\u53CD\u9988",width:130,dataIndex:"like_count",render:(_t,He)=>vi.createElement(Ie.Z,{align:"middle"},vi.createElement("div",{className:"flex-1"},vi.createElement("i",{style:{color:"#FA8D30"},className:"iconfot icon-yijiejue font14 mr5"}),vi.createElement("span",{className:"c-black"},He==null?void 0:He.like_count)),vi.createElement("div",{className:"flex-1"},vi.createElement("i",{style:{color:"#db6968"},className:"iconfot icon-weijiejuezhengchang font14 mr5"}),vi.createElement("span",{className:"c-black"},He==null?void 0:He.dislike_count)))},{title:"\u4EBA\u5DE5\u56DE\u590D",width:130,dataIndex:"user_reply_list",ellipsis:!0,render:_t=>vi.createElement(Le.Z,{placement:"topLeft",title:_t},vi.createElement("span",{className:"c-black"},_t||"--"))},{title:"\u521B\u5EFA\u65F6\u95F4",width:144,dataIndex:"created_at",render:_t=>vi.createElement("span",{className:"c-black"},fe()(_t).format("YYYY-MM-DD HH:mm"))}],tr=(_t,He,Ps)=>{const{onMenuClick:Aa}=Ps;Ui.current=Aa;const{id:Vs}=_t;return vi.createElement(vi.Fragment,null,vi.createElement("div",{className:On.apply,onClick:()=>pl(void 0,null,function*(){const js=yield(0,pt.ZP)(`/api/course_qna_records/${Vs}/add_set.json`,{method:"post",body:{questionable_type:"Course",questionable_id:io,type:"ai"}});(js==null?void 0:js.status)==0&&we.ZP.success("\u6DFB\u52A0\u6210\u529F")})},vi.createElement("i",{style:{color:"#3061D0"},className:"iconfont icon-wendaji font12 mr5"}),"\u52A0\u5165\u95EE\u7B54\u96C6"),vi.createElement("div",{className:On.apply,onClick:()=>{no(Vs),Wi(!1)}},vi.createElement("i",{style:{color:"#3061D0"},className:"iconfont icon-a-huifupinglun font12 mr5"}),"\u4EBA\u5DE5\u56DE\u590D"))},Dr=(_t,He,Ps)=>{const{id:Aa,sender:Vs}=_t;return vi.createElement("div",{className:On.li,style:{width:Ps.width}},vi.createElement("div",{className:On.content},Vs==="student"&&vi.createElement("h3",null,"\u5B66\u751F\u53CD\u9988"),vi.createElement("div",{className:On.borderBox},Vs==="teacher"&&vi.createElement("div",{className:On.teacher},"\u8001\u5E08\u56DE\u590D"),Vs==="student"&&vi.createElement("div",{className:On.student},_t.situation),vi.createElement(rs.Z,{className:On.text,value:_t==null?void 0:_t.text})),_t.source&&vi.createElement("div",{className:On.source},_t.source),vi.createElement("div",{className:On.action},Vs==="teacher"&&vi.createElement("div",{className:On.apply,onClick:()=>pl(void 0,null,function*(){const js=yield(0,pt.ZP)(`/api/course_qna_records/${Aa}/add_set.json`,{method:"post",body:{course_id:io,type:"teacher"}});(js==null?void 0:js.status)==0&&we.ZP.success("\u6DFB\u52A0\u6210\u529F")})},vi.createElement("i",{style:{color:"#3061D0"},className:"iconfont icon-wendaji font12 mr5"}),"\u52A0\u5165\u95EE\u7B54\u96C6"),Vs==="teacher"&&vi.createElement("i",{onClick:()=>{no(Aa),qe(_t==null?void 0:_t.text),Wi(!0)},className:"iconfont icon-bianji10 font14 primary-hover"}),Vs==="teacher"&&vi.createElement("i",{onClick:()=>pl(void 0,null,function*(){Kt.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u6761\u56DE\u590D\u5417\uFF1F",onOk:()=>pl(void 0,null,function*(){const js=yield(0,pt.ZP)("/api/course_qna_records/delete_teacher_comment.json",{method:"post",body:{course_id:io,feedback_id:Aa}});(js==null?void 0:js.status)==0&&(Ui.current(),we.ZP.success("\u5220\u9664\u6210\u529F"))})})}),className:"iconfont icon-shanchu15 font14 primary-hover"}),vi.createElement(qr.CopyToClipboard,{text:String((_t==null?void 0:_t.text)||""),onCopy:()=>we.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},vi.createElement(Le.Z,{title:"\u590D\u5236"},vi.createElement("i",{className:"iconfot icon-fuzhi8 font13"}))))))},Er=()=>pl(void 0,null,function*(){if(!Mo){we.ZP.warning("\u8BF7\u8F93\u5165\u4F60\u7684\u56DE\u590D");return}$r(!0),(yield(0,pt.ZP)("/api/course_qna_records/teacher_comment.json",{method:"post",body:{feedback:Mo,record_id:$i,course_id:io,edit:Li}})).status===0&&(no(!1),Ui.current()),$r(!1)}),Ph=_t=>pl(void 0,[_t],function*({type:He,value:Ps,index:Aa,identifier:Vs,objectIndex:js}){const Fl={index:js,identifier:Vs,course_id:io};if(He==="like"&&(yield(0,pt.ZP)("/api/course_qna_records/like.json",{method:"post",body:Fl})).status!==0||He==="dislike"&&(yield(0,pt.ZP)("/api/course_qna_records/dislike.json",{method:"post",body:Fl})).status!==0)return Promise.reject()}),Ru=[{img:li,name:"\u4ECA\u65E5\u65B0\u589E\u4F1A\u8BDD\u6570",count:Io==null?void 0:Io.today_session_count,tip:"\u5F53\u65E5\u7528\u6237\u4E0E\u667A\u80FD\u52A9\u6559\u5EFA\u7ACB\u7684\u72EC\u7ACB\u4F1A\u8BDD\u6570\u91CF\uFF08\u540C\u4E00\u7A97\u53E3\u8FDE\u7EED\u5BF9\u8BDD\u8BA1\u4E3A1\u6B21\uFF09"},{img:Fi,name:"\u4F1A\u8BDD\u603B\u6570",count:Io==null?void 0:Io.sessions_count,tip:"\u7528\u6237\u4E0E\u667A\u80FD\u52A9\u6559\u7684\u5386\u53F2\u4F1A\u8BDD\u603B\u91CF\uFF08\u540C\u4E00\u7A97\u53E3\u8FDE\u7EED\u5BF9\u8BDD\u8BA1\u4E3A1\u6B21\uFF09"},{img:ko,name:"\u5BF9\u8BDD\u4EBA\u6570",count:Io==null?void 0:Io.total_user_count,tip:"\u4E0E\u667A\u80FD\u52A9\u6559\u4EA7\u751F\u8FC7\u4F1A\u8BDD\u7684\u72EC\u7ACB\u7528\u6237\u6570\uFF08\u57FA\u4E8E\u8D26\u53F7ID\u53BB\u91CD\uFF09"},{img:Ro,name:"\u6D88\u606F\u603B\u6570",count:Io==null?void 0:Io.message_count,tip:"\u7528\u6237\u4E0E\u667A\u80FD\u52A9\u6559\u53CC\u5411\u4EA4\u4E92\u4EA7\u751F\u7684\u6D88\u606F\u603B\u6761\u6570"},{img:os,name:"\u6EE1\u610F\u6570",count:Io==null?void 0:Io.like_count,tip:"\u667A\u80FD\u52A9\u6559\u56DE\u7B54\u83B7\u5F97\u7528\u6237\u70B9\u8D5E\u7684\u603B\u91CF"},{img:Wt,name:"\u4E0D\u6EE1\u610F\u6570",count:Io==null?void 0:Io.dislike_count,tip:"\u667A\u80FD\u52A9\u6559\u56DE\u7B54\u6536\u5230\u7528\u6237\u70B9\u8E29\u7684\u603B\u91CF"},{img:Ih,name:"\u95EE\u7B54\u96C6\u547D\u4E2D\u6B21\u6570",count:Io==null?void 0:Io.hit_count,tip:"\u7528\u6237\u63D0\u95EE\u7CBE\u51C6\u5339\u914D\u9884\u8BBE\u95EE\u7B54\u5E93\u7684\u6B21\u6570"},{img:No,name:"\u6D88\u8017token\u6570",count:Io==null?void 0:Io.total_tokens,tip:"\u5BF9\u8BDD\u8FC7\u7A0B\u4E2D\u63D0\u95EE\u4E0E\u56DE\u7B54\u6D88\u8017\u7684Token\u603B\u91CF"}],jh=[{value:0,label:"\u5168\u90E8"},{value:1,label:"\u7528\u6237\u53CD\u9988-\u6EE1\u610F"},{value:2,label:"\u7528\u6237\u53CD\u9988-\u4E0D\u6EE1\u610F"},{value:3,label:"\u6211\u56DE\u590D\u7684"}],Rh={onListClick:_t=>(0,pt.ZP)(`/api/course_qna_sessions/${_t}.json`,{method:"get",params:{questionable_id:io}}),onListDealData:_t=>{let He=[];return _t==null||_t.forEach(Ps=>{var Aa,Vs;const js=Ps.id,Fl=Ps.think?{reasoning:Ps.think,thinkingEnabled:!0}:{},zu=[{text:Ps.question,key:js,sender:"user",fileList:[],show:!0},oa({key:js,loading:!1,sender:"AI",show:!0,source:Ps.answer_source,text:Ps.answer,like:Ps.like,dislike:Ps.dislike,time:Ps.think_time,id:Ps.id},Fl)];He=[...He,...zu],(Aa=Ps==null?void 0:Ps.student_feedback)==null||Aa.forEach(as=>{He.push({id:as.id,key:`teacher-${js}-${as.id}`,loading:!1,sender:"student",show:!0,text:as.feedback,situation:as.status_name})}),(Vs=Ps==null?void 0:Ps.teacher_feedback)==null||Vs.forEach(as=>{He.push({id:as.id,key:`student-${js}-${as.id}`,loading:!1,sender:"teacher",show:!0,text:as.feedback,source:as.answer_source})})}),He}};return vi.createElement("div",{className:On.dialogue},vi.createElement("div",{className:On.liWrap},Ru.map((_t,He)=>vi.createElement("div",{className:On.li,key:He},vi.createElement("img",{src:_t.img,width:38}),vi.createElement("aside",null,vi.createElement("b",{style:{color:_t.count===0?"#999":"#333"}},_t.count),vi.createElement("div",null,vi.createElement("span",null,_t.name),vi.createElement(Le.Z,{title:_t.tip},vi.createElement("i",{className:"iconfont icon-xiaowenhao2 font12 ml5"}))))))),vi.createElement("div",{className:On.line}),vi.createElement(Ie.Z,{align:"middle",justify:"space-between"},vi.createElement(Tl,{value:so==null?void 0:so.time,showTime:{format:"HH:mm"},onChange:_s,format:"YYYY-MM-DD HH:mm"}),vi.createElement(Jo.default,{value:so.status,onChange:Zr,options:jh,style:{width:160}}),vi.createElement(pn.default.Search,{style:{width:274},placeholder:"\u8BF7\u8F93\u5165\u4F1A\u8BDD\u6807\u9898\u3001\u7528\u6237",value:sr,onChange:_t=>Qo(_t.target.value),onSearch:ka})),vi.createElement(dt.default,{columns:oo,className:"mt20",dataSource:ri,loading:be,rowKey:"id",pagination:{current:so.page,hideOnSinglePage:!ir,showQuickJumper:!0,showSizeChanger:!0,pageSize:so.limit,pageSizeOptions:["10","20","50","100","200"],total:ir,size:"default",showTotal:Se.rU,onChange:gs}}),vi.createElement(Rr.Z,{visible:Bo,fetchListObject:Rh,onOpen:()=>yi(!0),onClose:()=>{yi(!1),Vr(so)},children:!0,historyId:ho,showPreference:!0,showDefaultTips:!1,customDataNode:Dr,customPreference:Ph,hideInputBox:!0,title:"\u667A\u80FD\u52A9\u6559",fetchUrl:"/api/stream/course_qna_records/chat_messages.json",extraAnswerAction:tr}),vi.createElement(Kt.default,{centered:!0,open:!!$i,confirmLoading:ga,onCancel:()=>{no(!1)},afterClose:()=>{qe("")},onOk:Er,title:"\u4EBA\u5DE5\u56DE\u590D",width:900,okText:"\u4FDD\u5B58"},vi.createElement(gn.Z,{placeholder:"\u5728\u8FD9\u91CC\u8F93\u5165\u60A8\u7684\u56DE\u590D",watch:!0,onChange:_t=>qe(_t),defaultValue:Mo})))},Vl=Object.defineProperty,Zl=Object.defineProperties,Sr=Object.getOwnPropertyDescriptors,Is=Object.getOwnPropertySymbols,eh=Object.prototype.hasOwnProperty,xa=Object.prototype.propertyIsEnumerable,ju=(We,be,Be)=>be in We?Vl(We,be,{enumerable:!0,configurable:!0,writable:!0,value:Be}):We[be]=Be,Os=(We,be)=>{for(var Be in be||(be={}))eh.call(be,Be)&&ju(We,Be,be[Be]);if(Is)for(var Be of Is(be))xa.call(be,Be)&&ju(We,Be,be[Be]);return We},gi=(We,be)=>Zl(We,Sr(be)),Kl=(We,be,Be)=>new Promise((ir,Fo)=>{var ri=yi=>{try{Bo(Be.next(yi))}catch($i){Fo($i)}},Ur=yi=>{try{Bo(Be.throw(yi))}catch($i){Fo($i)}},Bo=yi=>yi.done?ir(yi.value):Promise.resolve(yi.value).then(ri,Ur);Bo((Be=Be.apply(We,be)).next())});const Oh=({classroomList:We,boards:be,globalSetting:Be,loading:ir,user:Fo,dispatch:ri})=>{var Ur,Bo,yi;const $i=(0,St.useParams)(),no=(0,Ut.useRef)(gi(Os({},$i),{id:$i.categoryId,page_size:20})),[ga,$r]=(0,Ut.useState)({page:1,page_size:20}),{detailBoardList:Mo,detailLeftMenus:qe,detailTopBanner:Li,detailCourseGroupsList:Wi,courseAiData:ho}=We,[_i,Ui]=(0,Ut.useState)([]),[sr,Qo]=(0,Ut.useState)("\u6392\u5E8F"),{userInfo:io}=Fo,[Io,Lr]=(0,Ut.useState)(!1),[so]=(0,St.useSearchParams)(),[ml,Ql]=(0,Ut.useState)(!1),[Vr,ka]=(0,Ut.useState)("all"),[Zr,_s]=(0,Ut.useState)({}),[gs,oo]=(0,Ut.useState)(1),[tr,Dr]=(0,Ut.useState)(!1),[Er,Ph]=(0,Ut.useState)(!1),[Ru,jh]=(0,Ut.useState)(!0);let[fi,Rh]=(0,Ut.useState)([]);const[_t,He]=(0,Ut.useState)(!1),[Ps,Aa]=(0,Ut.useState)(!1),{verifyModelUser:Vs,ContactModalElement:js}=(0,qn.Z)(),Fl=(0,Ut.useRef)(null),zu=(0,St.useLocation)();let[as,ls]=(0,Ut.useState)({page:1,page_size:20});const Vi=(0,Ut.useMemo)(()=>{if(qe.course_modules)return We.detailLeftMenus.course_modules.filter(se=>se.type==="board")[0]},[We]);(0,Ut.useEffect)(()=>{var se;const ye=Se.cX.getItem(`${(se=Fo==null?void 0:Fo.userInfo)==null?void 0:se.login}${(0,At.GJ)()?"Teacher":"Student"}`,"Board");ye&&(Qo(ye==null?void 0:ye.name),no.current.sort_type=Lo.find(Te=>Te.name===(ye==null?void 0:ye.name)).id)},[(Ur=Fo==null?void 0:Fo.userInfo)==null?void 0:Ur.login,zu==null?void 0:zu.pathname]),(0,Ut.useEffect)(()=>{so.get("type")?so.get("type")==="hudong"?(ka("hudong"),de(),qs()):ka(so.get("type")):ka("all")},[so.get("type")]),(0,Ut.useEffect)(()=>{Vr==="wenda"&&Ql(ho==null?void 0:ho.is_open_ai)},[Vr]);const qs=()=>Kl(void 0,null,function*(){var se;if(Ru&&!tr){Dr(!0),oo(gs+1);const ye=yield ri({type:"classroomList/getCourseGroupsList",payload:gi(Os({},no),{page:gs,id:no.current.coursesId,limit:20,nonenavigate:!0})});let Te=[...ye==null?void 0:ye.course_groups];((se=ye==null?void 0:ye.course_groups)==null?void 0:se.length)<20&&(jh(!1),Te.push({id:0,name:"\u672A\u5206\u73ED"})),Dr(!1),Rh([...fi,...Te])}});(0,Ut.useEffect)(()=>{no.current.categoryId=$i.categoryId,no.current.id=$i.categoryId,ri({type:"classroomList/getBoardList",payload:no.current})},[$i]),(0,Ut.useEffect)(()=>{We.actionTabs.key==="\u76EE\u5F55\u91CD\u547D\u540D\u6210\u529F"&&ri({type:"classroomList/getBoardList",payload:no.current})},[We.actionTabs.key]),(0,Ut.useEffect)(()=>{Ui([])},[We.detailBoardList]);const vl=(se,ye)=>{$r({page:se,page_size:ye}),no.current.page=se,no.current.page_size=ye,ri({type:"classroomList/getBoardList",payload:no.current})},fs=Ut.createElement("section",{className:cn.dropmenu},Ut.createElement("div",{style:{maxHeight:200,overflow:"auto"}},Ut.createElement(An(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:se=>{qs()},hasMore:Ru,useWindow:!1},Ut.createElement(je.default,{style:{width:240,zIndex:10}},Wi.group_count>0&&fi.map(function(se,ye){return Ut.createElement(je.default.Item,{key:se.id},Ut.createElement(ie.default,{checked:_i.includes(se.id),value:se.id,onChange:Te=>{let Qe=_i.indexOf(se.id);_i.indexOf(se.id)>-1?Ui(_i.filter(rn=>rn!==se.id)):Ui(_i.concat(se.id))}},se.name))})))),Ut.createElement("aside",{className:cn.bg},Ut.createElement("div",null,Ut.createElement(Ne.ZP,{type:"link",onClick:()=>Kl(void 0,null,function*(){as.group_ids=_i,as.page=1,ls(Os({},as)),de()})},"\u786E\u5B9A"),Ut.createElement(Ne.ZP,{type:"link",onClick:()=>{Ui([])}},"\u91CD\u7F6E")))),Lo=[{name:"\u65F6\u95F4\u6392\u5E8F",id:"time"},{name:"\u70ED\u5EA6\u6392\u5E8F",id:"hot"}];let Rs=[{name:"\u5220\u9664",icon:Ut.createElement("i",{className:"iconfont icon-piliangshanchu2"})},{name:"\u53D1\u9001",icon:Ut.createElement("i",{className:"iconfont icon-fasong"})},{name:"\u8BBE\u4E3A\u516C\u5F00",icon:Ut.createElement("i",{className:"iconfont icon-sheweigongkai2"})}];Li.is_public||Rs.splice(2,1);const bt=se=>{var ye;Se.cX.setItem(`${(ye=Fo==null?void 0:Fo.userInfo)==null?void 0:ye.login}${(0,At.GJ)()?"Teacher":"Student"}`,se,"Board"),Qo(se==null?void 0:se.name),no.current.sort_type=Lo.find(Te=>Te.name===(se==null?void 0:se.name)).id,ri({type:"classroomList/getBoardList",payload:no.current})},Ot=(se,ye)=>Kl(void 0,null,function*(){ye.coursesId=no.current.coursesId;let Te="boards/setTopping";se==="\u53D6\u6D88\u7F6E\u9876"&&(Te="boards/escTopping"),yield ri({type:Te,payload:Os({},ye)}),ri({type:"classroomList/getBoardList",payload:no.current})}),Ht=se=>Kl(void 0,null,function*(){const ye=se.name;_i==""?we.ZP.error("\u8BF7\u9009\u62E9\u4F60\u8981\u64CD\u4F5C\u7684\u4EFB\u52A1"):ri({type:"classroomList/setActionTabs",payload:{key:ye,selectArrs:_i,params:no.current}})}),le=se=>Kl(void 0,null,function*(){var ye;if(_i=="")return we.ZP.error("\u8BF7\u9009\u62E9\u4F60\u8981\u64CD\u4F5C\u7684\u4EFB\u52A1"),null;(yield(0,pt.ZP)(`/api/boards/${no.current.categoryId}/messages/bulk_move.json`,{method:"put",body:{ids:_i,to_board_id:se.key}})).status===0&&(we.ZP.success("\u64CD\u4F5C\u6210\u529F"),ri({type:"classroomList/getBoardList",payload:no.current}),ri({type:"classroomList/getClassroomLeftMenus",payload:{id:(ye=no.current)==null?void 0:ye.coursesId}}))});function de(){return Kl(this,null,function*(){var se;Ph(!0);let ye=yield(0,pt.ZP)(`/api/boards/${no.current.categoryId}/messages/statistics.json`,{method:"get",params:Os({coursesId:(se=no.current)==null?void 0:se.coursesId},as)});Ph(!1),(ye==null?void 0:ye.status)===0&&_s(ye)})}return Ut.createElement("section",null,Ut.createElement(he.Z,{isLoading:!1,menuItemWidth:110,tabDataSource:[{name:"\u5168\u90E8",id:"all"},(0,At.eB)()&&{name:"\u4E92\u52A8\u7EDF\u8BA1",id:"hudong"},((Li==null?void 0:Li.is_admin)||(0,At.Ny)())&&{name:"\u8BBE\u7F6E",id:"shezhi"},(0,At.eB)()&&{name:Ut.createElement("span",null,"\u667A\u80FD\u95EE\u7B54",Ut.createElement("img",{src:Zn,width:17,style:{position:"absolute",top:6}})),id:"wenda"},(0,At.eB)()&&{name:"\u95EE\u7B54\u96C6",id:"wendaji"},(0,At.eB)()&&{name:"\u5386\u53F2\u5BF9\u8BDD",id:"duihua"}].filter(se=>!!se),isAdmin:(0,At.RV)(),onTabMenuClick:se=>{se.key==="hudong"&&(de(),St.history.replace(`/classrooms/${no.current.coursesId}/board/${no.current.categoryId}?type=hudong`)),ka(se.key)},defaultSelectedKeys:[`${Vr}`],showControlButton:["all","hudong","shezhi"].includes(Vr)&&(0,At.RV)(),buttonText:"\u6211\u8981\u53D1\u5E16",extraNode:["all","hudong","shezhi"].includes(Vr)&&(0,At.GJ)()&&Mo.name!=="\u672A\u5206\u914D\u76EE\u5F55"&&Ut.createElement(Ut.Fragment,null,Ut.createElement("span",{className:"c-blue font16 ml20 current",onClick:se=>{var ye;se.preventDefault();let Te=(ye=no.current)==null?void 0:ye.coursesId;(Mo==null?void 0:Mo.parent_id)>0&&(Te=no.current.categoryId),ri({type:"classroomList/setActionTabs",payload:{key:(Mo==null?void 0:Mo.parent_id)===0?"\u6DFB\u52A0\u76EE\u5F55":"\u76EE\u5F55\u91CD\u547D\u540D",params:no.current,selectArrs:{category_id:Te,category_name:Mo.name,type:"board"},cb:()=>{ri({type:"classroomList/getBoardList",payload:no.current})}}})}},(Mo==null?void 0:Mo.parent_id)==0?Ut.createElement(Le.Z,{title:"\u65B0\u5EFA\u76EE\u5F55"},Ut.createElement("i",{className:"iconfont icon-xinjianmulu1 c-blue font16 mr20 current"})):Ut.createElement(Le.Z,{title:"\u76EE\u5F55\u91CD\u547D\u540D"},Ut.createElement("i",{className:"iconfont icon-zhongmingming1 c-blue font16 mr20 current"})))),onButtonClick:()=>{St.history.push(`/classrooms/${$i.coursesId}/board/${$i.categoryId}/add`)}}),Vr==="all"&&Ut.createElement("div",null,Ut.createElement(Pe.Z,{spinning:ir["classroomList/getBoardList"]},Ut.createElement(Qt.Z,{dataSource:Mo.messages||[],isAdmin:(0,At.GJ)(),batchStatus:Io,SortMenuName:sr,setSortMenuName:Qo,SortMenus:Lo,dispatch:ri,isboard:!0,onBoard:se=>{no.current.group_ids=se,no.current.page=1,$r(ye=>gi(Os({},ye),{page:1})),ri({type:"classroomList/getBoardList",payload:no.current})},detailCourseGroupsList:Wi,onSearch:se=>{no.current.search=se,no.current.page=1,$r(ye=>gi(Os({},ye),{page:1})),ri({type:"classroomList/getBoardList",payload:no.current})},onSort:bt,onBatch:se=>Lr(se)}),Mo.total_count===0&&Ut.createElement(kt.Z,null),Mo.messages&&Mo.messages.map(function(se,ye){var Te,Qe;return Ut.createElement("div",{className:cn.listItem,key:ye,onClick:rn=>{_i.indexOf(se.id)>-1?Ui(_i.filter(jn=>jn!==se.id)):Ui(_i.concat(se.id))}},Ut.createElement(Ie.Z,{align:"top"},(0,At.GJ)()&&Ut.createElement(Ue.Z,null,Ut.createElement("div",{className:"mt17"},((0,At.Ny)()||((Te=se==null?void 0:se.author)==null?void 0:Te.login)===io.login||(0,At.GJ)()&&!se.author.is_teacher)&&Ut.createElement(ie.default,{checked:_i.includes(se.id),value:se.id}))),Ut.createElement(Ue.Z,null,Ut.createElement("img",{className:"ml10 mr20",src:`${Me.Z.IMG_SERVER}/images/${se.author.image_url}`})),Ut.createElement(Ue.Z,{flex:1},Ut.createElement("div",{className:cn.title},Ut.createElement("div",{className:cn.titleLeft},Ut.createElement(St.Link,{to:`/classrooms/${$i.coursesId}/board/${$i.categoryId}/Detail/${se.id}`},Ut.createElement("strong",null,se.subject)),(se==null?void 0:se.is_copy)&&Ut.createElement("span",{className:cn.copyTag},"\u590D\u5236"),se.sticky===1&&Ut.createElement("span",{className:"tag-topping ml10"},"\u7F6E\u9876"))),Ut.createElement("p",{className:"mt15"},Ut.createElement("span",{className:""},se.author.name),se.total_replies_count>0&&Ut.createElement("span",{className:"ml20 c-light-black "},se.total_replies_count," \u56DE\u590D"),se.praises_count>0&&Ut.createElement("span",{className:"ml20 c-light-black "},se.praises_count," \u70B9\u8D5E"),se.visits>0&&Ut.createElement("span",{className:"ml20 c-light-black "},se.visits," \u6D4F\u89C8"),Ut.createElement("span",{className:"ml20 c-light-black "},fe()(se.created_on).fromNow()))),Ut.createElement(Ue.Z,{className:"tr"},Ut.createElement("p",null,(0,At.RV)()&&Ut.createElement(St.Link,{style:{marginRight:0},to:`/classrooms/${$i.coursesId}/board/${$i.categoryId}/Detail/${se.id}`},Ut.createElement("aside",{className:cn.flexBox},Ut.createElement("i",{className:"iconfont icon-yuyuexiangqing1"}),Ut.createElement("div",null,"\u8BE6\u60C5"))),se.sticky===0&&(0,At.GJ)()&&Ut.createElement(St.Link,{className:"ml15",to:"",onClick:rn=>{rn.preventDefault(),Ot("\u7F6E\u9876",se)}},"\u7F6E\u9876"),se.sticky===1&&(0,At.GJ)()&&Ut.createElement(St.Link,{className:"ml15",to:"",onClick:rn=>{rn.preventDefault(),Ot("\u53D6\u6D88\u7F6E\u9876",se)}},"\u53D6\u6D88\u7F6E\u9876"),((0,At.Ny)()||((Qe=se==null?void 0:se.author)==null?void 0:Qe.login)===io.login||(0,At.GJ)()&&!se.author.is_teacher)&&Ut.createElement(St.Link,{className:"",to:`/classrooms/${$i.coursesId}/board/${se.board_id}/Edit/${se.id}`},Ut.createElement("aside",{className:cn.flexBox,style:{marginLeft:"16px"}},Ut.createElement("i",{className:"iconfont icon-bianjizuoye"}),Ut.createElement("div",null,"\u7F16\u8F91")))),se.category_name&&Ut.createElement("p",{className:["c-grey-666",cn.categoryName].join(" ")},"\u6240\u5C5E\u76EE\u5F55\uFF1A",se.category_name))))}),Ut.createElement("aside",{className:"tc mb50 mt30"},Mo.total_count>0&&Ut.createElement(Tt.Z,{showSizeChanger:!0,onChange:vl,defaultCurrent:1,pageSize:ga.page_size||20,current:ga.page||1,total:Mo.total_count})),_i.length>0&&(0,At.GJ)()&&Ut.createElement(et.Z,{offsetBottom:0},Ut.createElement(Ae.Z,{buttonDataSource:Rs,onButtonClick:Ht,useBatchStatus:Lr,catalogue:Vi.second_category.filter(se=>se.category_name!=="\u672A\u5206\u914D\u76EE\u5F55")||[],allSelect:_i.length?_i.length===((Bo=Mo==null?void 0:Mo.messages)==null?void 0:Bo.length):!1,setSeleArr:Ui,setAllSelect:se=>{se.target.checked?Ui(Mo.messages.map(ye=>ye.id)):Ui([])},selectArrs:_i,onMenuClick:le,addCatalogue:se=>{se.preventDefault(),ri({type:"classroomList/setActionTabs",payload:{key:"\u6DFB\u52A0\u76EE\u5F55",params:no.current,selectArrs:{category_id:no.current.coursesId,type:"board"}}})}})),Ut.createElement(fn.Z,{cb:se=>{Ui([]),no.current.page=se,$r(ye=>gi(Os({},ye),{page:se}))}}),Ut.createElement(En,{cb:()=>Ui([])}),Ut.createElement(bn.Z,{cb:()=>Ui([])}))),Vr==="hudong"&&Ut.createElement("div",{style:{background:"#fff",padding:"25px 20px"}},Ut.createElement("div",{style:{display:"flex"}},Ut.createElement("div",{style:{flex:1,color:"#666666"}},Ut.createElement("span",null,"\u8BA8\u8BBA\uFF08",Zr.total_message_count,"\uFF09"),Ut.createElement("span",{style:{marginLeft:20}},"\u56DE\u590D\uFF08",Zr.total_reply_count,"\uFF09"),Ut.createElement("span",{style:{marginLeft:20}},"\u70B9\u8D5E\uFF08",Zr.total_like_count,"\uFF09")),(0,At.GJ)()&&Ut.createElement("div",null,Ut.createElement(nt.Z,{dropdownRender:()=>fs,open:_t,onOpenChange:se=>{He(se)}},Ut.createElement("a",null,"\u5206\u73ED",_t?Ut.createElement(vt.Z,{style:{marginLeft:6}}):Ut.createElement(Lt.Z,{style:{marginLeft:6}}))),Ut.createElement(nt.Z,{open:Ps,onOpenChange:se=>{Aa(se)},menu:{items:[{key:"1",style:{width:100},label:Ut.createElement("a",{onClick:()=>Kl(void 0,null,function*(){var se,ye;let Te=yield(0,pt.ZP)(`/api/boards/${(se=no.current)==null?void 0:se.categoryId}/messages/export_messages.json`,{method:"get",params:Os({is_repeat_export:1},as)});(Te==null?void 0:Te.status)===0&&St.history.push(`/classrooms/${(ye=no.current)==null?void 0:ye.coursesId}/exportlist/messages_statistics`)})},"\u4E92\u52A8\u5BFC\u51FA")},{key:"2",label:Ut.createElement("a",{href:`/classrooms/${(yi=no.current)==null?void 0:yi.coursesId}/exportlist/messages_statistics`},"\u5386\u53F2\u5BFC\u51FA")}]}},Ut.createElement("a",{style:{marginLeft:20}},"\u5BFC\u51FA",Ps?Ut.createElement(vt.Z,{style:{marginLeft:6}}):Ut.createElement(Lt.Z,{style:{marginLeft:6}}))))),Ut.createElement(dt.default,{dataSource:Zr==null?void 0:Zr.course_members,style:{marginTop:25},loading:Er,onChange:(se,ye,Te)=>{Te.order?(as.sort_by=Te.field==="total_score"?"score":Te.field,as.sort=Te.order,as.sort=as.sort.replace("end","")):delete as.sort,de()},columns:[{title:"\u5E8F\u53F7",dataIndex:"number",width:60,render:(se,ye,Te)=>as.page_size*(as.page-1)+Te+1},{title:"\u59D3\u540D",dataIndex:"real_name",render:(se,ye,Te)=>Ut.createElement("a",{target:"_blank",style:{color:"#3061D0"},href:`/users/${ye==null?void 0:ye.login}/classrooms`},se)},{title:"\u5B66\u53F7",dataIndex:"student_id"},{title:"\u5206\u73ED",dataIndex:"course_group_name"},{title:"\u53D1\u5E16\u6570",dataIndex:"message_count",width:60},{title:"\u5E16\u5B50\u70B9\u8D5E\u6570",dataIndex:"message_like_count",width:100},{title:"\u56DE\u590D\u6570",dataIndex:"reply_count",width:60},{title:"\u56DE\u590D\u70B9\u8D5E\u6570",dataIndex:"reply_like_count",width:100},{title:"\u4E92\u52A8\u6570",dataIndex:"total_message_count",width:70}],pagination:!1}),Ut.createElement(Tt.Z,{showSizeChanger:!0,showTotal:se=>Ut.createElement("span",null,"\u5171",Ut.createElement("span",{style:{color:"#165DFF"}},Zr.total_count)," \u6761\u6570\u636E"),style:{marginTop:10},onChange:(se,ye)=>{as.page=se,as.page_size=ye,ls(Os({},as)),de()},defaultCurrent:1,pageSize:as.page_size||20,current:as.page||1,total:Zr.total_count})),Vr==="shezhi"&&Ut.createElement("div",{style:{background:"#fff",padding:20}},Ut.createElement("h5",{style:{fontSize:18}},"\u516C\u5F00\u8BBE\u7F6E"),Ut.createElement(ie.default,{style:{marginTop:10},defaultChecked:Li==null?void 0:Li.allow_view_message,onChange:se=>Kl(void 0,null,function*(){var ye,Te;let Qe=yield(0,pt.ZP)(`/api/courses/${(ye=no.current)==null?void 0:ye.coursesId}/update_view_setting.json`,{method:"PUT",body:{allow_view_message:se.target.checked}});(Qe==null?void 0:Qe.status)===0&&ri({type:"classroomList/getClassroomTopBanner",payload:{id:(Te=no.current)==null?void 0:Te.coursesId}})})},"\u5168\u8BFE\u5802\u53EF\u89C1\uFF08\u672A\u52FE\u9009\u5219\u5B66\u751F\u53D1\u5E03\u7684\u8BA8\u8BBA\u53EA\u80FD\u9009\u62E9\u540C\u73ED\u5B66\u751F\u53EF\u89C1\uFF09")),Vr==="wenda"&&Ut.createElement("div",{style:{background:"#fff",padding:20}},Ut.createElement("div",{className:"flex flex-col gap-20 mb20"},Ut.createElement("h5",{className:"font18"},"\u667A\u80FD\u95EE\u7B54"),Ut.createElement(Ie.Z,{align:"middle",className:"mt20"},Ut.createElement(lt.Z,{size:"default",checked:ml,onChange:se=>{Vs()&&(Ql(se),clearTimeout(Fl.current),Fl.current=setTimeout(()=>{var ye;ri({type:"classroomList/setCourseAiState",payload:{course_id:(ye=no.current)==null?void 0:ye.coursesId,is_open_ai:se}})},500))}}),Ut.createElement("div",{className:"c-grey-333 ml10"},"\u5F00\u542F\u540E\uFF0C\u6559\u5B66\u8BFE\u5802\u5185\u7684\u5B66\u751F\u5C06\u53EF\u4EE5\u4F7F\u7528\u667A\u80FD\u52A9\u6559\u7684\u529F\u80FD\uFF0C\u4E0EAI\u5BF9\u8BDD\uFF0C\u8BA9AI\u7B54\u7591\u89E3\u60D1\u3002"," ",Ut.createElement("a",{href:"https://www.educoder.net/forums/40256",target:"_blank"},"\u64CD\u4F5C\u8BF4\u660E"))))),Vr==="wendaji"&&Ut.createElement(Wn,null),Vr==="duihua"&&Ut.createElement(ss,null),js())};var Dl=(0,St.connect)(({classroomList:We,loading:be,boards:Be,user:ir,globalSetting:Fo})=>({classroomList:We,globalSetting:Fo,boards:Be,user:ir,loading:be.effects}))(Oh),ld=Ft(59301);const ud=({classroomList:We,boards:be,globalSetting:Be,loading:ir,user:Fo,dispatch:ri})=>{const Ur=(0,St.useParams)(),{detailBoardList:Bo,detailLeftMenus:yi,detailTopBanner:$i}=We;return ld.createElement(Dl,null)};var Qn=(0,St.connect)(({classroomList:We,loading:be,boards:Be,user:ir,globalSetting:Fo})=>({classroomList:We,globalSetting:Fo,boards:Be,user:ir,loading:be.models.index}))(ud)},73674:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{Z:function(){return Pe}});var St=Ft(59301),Ut=Ft(20834),Me=Ft(92832),_e=Ft(24905),fe=Ft(3113),je=Ft(38854),ie={bottomControlContainer:"bottomControlContainer___woAeo",buttonWrap:"buttonWrap___iRw4K",moveCategory:"moveCategory___oiQqw"},Ne=Ft(24065),we=Ft(84105),Pe=({buttonDataSource:Ie,onButtonClick:Ue,useBatchStatus:Tt,allSelect:et,setAllSelect:nt,selectArrs:dt,onMenuClick:lt,setSeleArr:pt,catalogue:vt,addCatalogue:Lt})=>{const[At,kt]=(0,St.useState)(!1),[Kt,$t]=(0,St.useState)("");console.log("---",vt);const ne=St.createElement("div",{className:ie.moveCategory,onMouseLeave:qt=>kt(!1)},St.createElement(Ut.default,{onClick:lt,style:{maxHeight:300,width:240,overflow:"auto"}},St.createElement("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child"},St.createElement(Me.default,{onChange:qt=>{$t(qt.target.value)}})),vt==null?void 0:vt.map(function(qt,ue){var ae;if(!(Kt!==""&&qt.category_name.indexOf(Kt)<0))return St.createElement(St.Fragment,null,St.createElement(Ut.default.Item,{className:"multi-llipsis1e",key:qt.category_id,title:qt.category_name},qt.category_name),(ae=qt==null?void 0:qt.third_category)==null?void 0:ae.map(Fe=>St.createElement(Ut.default.Item,{style:{marginLeft:20},className:"multi-llipsis1e",key:Fe.category_id,title:Fe.category_name},Fe.category_name)))}),Lt&&St.createElement("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child",onClick:Lt},"\u65B0\u5EFA\u5B50\u76EE\u5F55...")));return St.createElement("div",{className:ie.bottomControlContainer},St.createElement("div",null,St.createElement("div",null,St.createElement(_e.default,{checked:et,onChange:nt},"\u5168\u9009\u672C\u9875\uFF08",dt.length,"\uFF09")),(0,Ne.GJ)()&&Ie.map(qt=>St.createElement("div",{key:qt.name},St.createElement(fe.ZP,{type:"primary",icon:qt.icon,className:ie.buttonWrap,onClick:()=>Ue(qt)},qt.name))),(0,Ne.GJ)()&&(Lt||vt)&&St.createElement("div",null,St.createElement(je.Z,{open:At,placement:"topLeft",autoAdjustOverflow:!1,dropdownRender:()=>ne,getPopupContainer:qt=>qt.parentNode},St.createElement("span",{className:"ant-dropdown-link",onMouseEnter:qt=>kt(!0)},St.createElement(fe.ZP,{type:"primary",className:ie.buttonWrap,icon:St.createElement("i",{className:"iconfont icon-yidongmulu"})},St.createElement("span",null,"\u79FB\u52A8\u5230\u76EE\u5F55 ",St.createElement(we.Z,null))))))),St.createElement("div",null,St.createElement(fe.ZP,{type:"primary",ghost:!0,onClick:()=>{Tt(!1),pt([])}},"\u53D6\u6D88\u64CD\u4F5C")))}},89614:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{Z:function(){return lt}});var St=Ft(59301),Ut=Ft(20834),Me=Ft(24905),_e=Ft(3113),fe=Ft(38854),je=Ft(6848),ie=Ft(57809),Ne=Ft(92832),we={searchSortControllerContainer:"searchSortControllerContainer___Xca1m",btn:"btn___sNJPX",btnSort:"btnSort___Fx9OM",tips:"tips___LrmpR"},Le=Ft(24065),Pe=Ft(87395),Ie=Ft(84105),Ue=Ft(26724),Tt=Ft.n(Ue),et=Ft(89070),nt=(pt,vt,Lt)=>new Promise((At,kt)=>{var Kt=qt=>{try{ne(Lt.next(qt))}catch(ue){kt(ue)}},$t=qt=>{try{ne(Lt.throw(qt))}catch(ue){kt(ue)}},ne=qt=>qt.done?At(qt.value):Promise.resolve(qt.value).then(Kt,$t);ne((Lt=Lt.apply(pt,vt)).next())}),lt=({isAdmin:pt,dataSource:vt,batchStatus:Lt,SortMenuName:At,setSortMenuName:kt,detailCourseGroupsList:Kt,onSearch:$t,onBoard:ne,onSort:qt,isboard:ue,dispatch:ae,onBatch:Fe,SortMenus:xe,isShowMode:Re=!1,onModeChange:En})=>{const[fn,bn]=(0,St.useState)(!1),[cn,he]=(0,St.useState)([]),[Qt,Ae]=(0,St.useState)(!0);let[Gn,An]=(0,St.useState)([]);const[Se,sn]=(0,St.useState)(1),[wn,Xn]=(0,St.useState)(!1),Hn=(0,et.useParams)(),ii=qn=>{kt(qn.name),qt(qn)};(0,St.useEffect)(()=>{ue&&re()},[ue]);const re=()=>nt(void 0,null,function*(){var qn;if(Qt&&!wn){Xn(!0),sn(Se+1);const ni=yield ae({type:"classroomList/getCourseGroupsList",payload:{page:Se,id:Hn.coursesId,limit:20,nonenavigate:!0}});let Hi=[...(ni==null?void 0:ni.course_groups)||[]];((qn=ni==null?void 0:ni.course_groups)==null?void 0:qn.length)<20&&(Ae(!1),Hi.push({id:0,name:"\u672A\u5206\u73ED"})),Xn(!1),An([...Gn,...Hi])}}),Dn=St.createElement("section",{className:we.dropmenu},St.createElement("div",{style:{maxHeight:200,overflow:"auto"}},St.createElement(Tt(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:qn=>{re()},hasMore:Qt,useWindow:!1},St.createElement(Ut.default,{style:{width:240,zIndex:10}},(Kt==null?void 0:Kt.group_count)>0&&(Gn==null?void 0:Gn.filter(qn=>qn.edit_auth||qn.name==="\u672A\u5206\u73ED").map(function(qn,ni){return St.createElement(Ut.default.Item,{key:qn.id},St.createElement(Me.default,{checked:cn.includes(qn.id),value:qn.id,onChange:Hi=>{let Jo=cn.indexOf(qn.id);cn.indexOf(qn.id)>-1?he(cn.filter(pn=>pn!==qn.id)):he(cn.concat(qn.id))}},qn.name))}))))),St.createElement("aside",{style:{background:"#fff"}},St.createElement("div",null,St.createElement(_e.ZP,{type:"link",onClick:()=>{ne(cn)}},"\u786E\u5B9A"),St.createElement(_e.ZP,{type:"link",onClick:()=>{he([])}},"\u91CD\u7F6E")))),Zn=At==="\u9ED8\u8BA4\u6392\u5E8F";return St.createElement("div",{className:we.searchSortControllerContainer},!!(xe!=null&&xe.length)&&St.createElement("div",null,St.createElement(fe.Z,{dropdownRender:()=>St.createElement(Ut.default,{selectedKeys:[At]},xe.map(qn=>St.createElement(Ut.default.Item,{key:qn.name,onClick:()=>ii(qn)},qn.name)))},St.createElement("div",null,St.createElement("span",{className:`${we.btn} ${Zn?we.btnSort:""}`},St.createElement("i",{className:"iconfont icon-paixu font14 mr5"}),At)))),Zn&&St.createElement(je.Z,{title:"\u4F18\u5148\u6309\u7167\u8C03\u6574\u6392\u5E8F\u7ED3\u679C\u5C55\u793A\uFF0C\u672A\u8BBE\u7F6E\u6392\u5E8F\u65F6\uFF0C\u6309\u7167\u521B\u5EFA\u65F6\u95F4\u964D\u5E8F\u6392\u5217"},St.createElement("span",{className:we.tips},St.createElement("i",{className:"iconfont icon-a-wenhaobeifen2"}))),Re&&St.createElement(ie.default,{defaultValue:"",onChange:En,style:{width:160,marginLeft:"auto",marginRight:"20px"},options:[{value:"",label:"\u5168\u90E8\u8003\u8BD5\u6A21\u5F0F"},{value:!0,label:"\u6B63\u5F0F\u8003\u8BD5"},{value:!1,label:"\u6A21\u62DF\u8003\u8BD5"}]}),St.createElement(Ne.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\u8FDB\u884C\u641C\u7D22",onSearch:$t,style:{width:220,marginLeft:Re?"":"auto"}}),(0,Le.eB)()&&ue&&St.createElement(fe.Z,{dropdownRender:()=>Dn,open:fn,onOpenChange:qn=>{bn(qn)}},St.createElement("a",null,"\u5206\u73ED",fn?St.createElement(Pe.Z,{style:{marginLeft:6}}):St.createElement(Ie.Z,{style:{marginLeft:6}}))))}},62202:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{Z:function(){return Ie}});var St=Ft(59301),Ut=Ft(95237),Me=Ft(43604),_e=Ft(20834),fe=Ft(38854),je=Ft(8591),ie=Ft(6848),Ne={tabMenuContainer:"tabMenuContainer___uf5IP",control:"control___GheLs",iconH:"iconH___Wzw_r",selectBtn:"selectBtn___mfEnI",selectBtn1:"selectBtn1___rJF8S"},we=Ft(89070),Le=Ft(24065),Ie=({isLoading:Ue,addText:Tt,tabDataSource:et,isAdmin:nt,dispatch:dt,classroomList:lt,type:pt,isExercise:vt,defaultSelectedKeys:Lt,onTabMenuClick:At,getDropdownMenu:kt,showControlButton:Kt,buttonText:$t,buttonIcon:ne="icon-tianjiadaohang",extraNode:qt,user:ue,onButtonClick:ae,isModelUser:Fe,menuItemWidth:xe=125})=>{var Re,En,fn,bn,cn;const he=(0,we.useParams)();return St.createElement("div",{className:Ne.tabMenuContainer},St.createElement(Ut.Z,null,St.createElement(Me.Z,{flex:"1"},St.createElement(_e.default,{onSelect:Qt=>Ue?{}:At(Qt),mode:"horizontal",selectedKeys:Lt},et.map(Qt=>St.createElement(_e.default.Item,{style:{width:xe},key:typeof Qt.index=="number"?Qt.index:Qt.id},St.createElement("span",{className:"c-grey-666"},Qt.name),Qt.total!==void 0&&nt&&St.createElement("span",{className:"c-grey-999 ml20"},Qt.total||0))))),nt&&vt&&St.createElement("i",{className:"iconfont icon-shezhi8",style:{display:"flex",alignItems:"center",cursor:"pointer"},onClick:()=>{dt({type:"classroomList/setActionTabs",payload:{key:"\u5728\u7EBF\u8003\u8BD5\u8BBE\u7F6E"}})}}),nt&&St.createElement(Me.Z,{className:"mr20 gutter-row",style:{display:"flex",alignItems:"center",color:"#0152d9",paddingBottom:3}},vt&&St.createElement(fe.Z,{className:"mr15",placement:"bottom",arrow:!0,dropdownRender:()=>St.createElement(_e.default,null,St.createElement(_e.default.Item,{key:1,onClick:()=>{var Qt;if((0,Le.Rm)()&&!((Qt=lt.AssistantObject.exercise)!=null&&Qt.can_download)){je.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}dt({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u6210\u7EE9",type:pt,exportType:"exercise",category_id:he.categoryId}})}},"\u5B66\u751F\u6210\u7EE9"),St.createElement(_e.default.Item,{key:3,onClick:()=>{var Qt;if((0,Le.Rm)()&&!((Qt=lt.AssistantObject.exercise)!=null&&Qt.can_download)){je.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}we.history.push(`/classrooms/${he==null?void 0:he.coursesId}/exportlist/exercise_score,export_exercise_users`)}},"\u5386\u53F2\u5BFC\u51FA"))},St.createElement("div",{className:"c-blue font16 ml20 current",style:{marginTop:2}},St.createElement("span",{style:{color:"#666666",cursor:"pointer"}},St.createElement("i",{className:"iconfont icon-xiazai6"})))),St.createElement("div",{className:Ne.control},St.createElement("div",{className:Ne.extra},qt),Kt&&($t=="\u6DFB\u52A0\u76F4\u64AD"?St.createElement(fe.Z,{menu:{items:(En=(Re=[{label:St.createElement("div",{onClick:()=>{ae("\u5916\u94FE")}},"\u5916\u94FE\u76F4\u64AD"),key:"1",show:!0},Fe&&{label:St.createElement("div",{onClick:()=>{ae("\u5934\u6B4C")}},"\u5934\u6B4C\u76F4\u64AD"),key:"2",show:!0}])==null?void 0:Re.filter(Qt=>Qt==null?void 0:Qt.show))==null?void 0:En.map(Qt=>({label:Qt==null?void 0:Qt.label,key:Qt==null?void 0:Qt.key}))}},St.createElement("span",{className:Ne.selectBtn},St.createElement("span",null,St.createElement("i",{className:`iconfont ${ne}`})),St.createElement("span",null,$t))):St.createElement("span",{onClick:ae,style:{cursor:"pointer"},className:Ne.selectBtn},St.createElement("span",null,St.createElement("i",{className:`iconfont ${ne}`})),St.createElement("span",null,$t))),!!kt&&St.createElement(fe.Z,{disabled:((fn=ue==null?void 0:ue.userInfo)==null?void 0:fn.user_status)===2,className:"ml10",dropdownRender:kt},St.createElement("span",{className:((bn=ue==null?void 0:ue.userInfo)==null?void 0:bn.user_status)===2?Ne.selectBtn1:Ne.selectBtn},St.createElement("span",null,St.createElement("i",{className:"iconfont icon-tianjiadaohang"})),St.createElement(ie.Z,{title:((cn=ue==null?void 0:ue.userInfo)==null?void 0:cn.user_status)===2&&"\u6559\u5B66\u8BFE\u5802\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u5E73\u53F0\u5DF2\u6682\u505C\u63D0\u4F9B\u5728\u7EBF\u8003\u8BD5\u521B\u5EFA\u529F\u80FD"},St.createElement("span",null,Tt||"\u521B\u5EFA\u8BD5\u5377"))))))))}},97177:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{Z:function(){return ie}});var St=Ft(59301),Ut=Ft.p+"static/modelContact.7a7eb113.png",Me=Ft(91785),_e=Ft(24065),fe=Ft(59301),ie=()=>{const[Ne,we]=(0,St.useState)(!1);return{verifyModelUser:()=>(0,_e.$O)()?!0:(we(!0),!1),ContactModalElement:()=>fe.createElement(Me.Z,{visible:Ne,setVisible:we,image:Ut}),contactOpen:Ne,setContactOpen:we}}},24768:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{AL:function(){return Lt},Iy:function(){return Pe},Qv:function(){return Tt},ez:function(){return vt},jb:function(){return Ie}});var St=Ft(32834),Ut=Ft.n(St),Me=Ft(11690),_e=Ft.n(Me);let fe=1;function je(ne,qt){const ue=ne.match(/^(\s+)(?:```)/);if(ue===null)return qt;const ae=ue[1];return qt.split(` +`)}]};var Ne=Ft(53184),we=Ft.n(Ne),Le=Object.defineProperty,Pe=Object.defineProperties,Ie=Object.getOwnPropertyDescriptors,Ue=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,nt=(gn,Bn,zn)=>Bn in gn?Le(gn,Bn,{enumerable:!0,configurable:!0,writable:!0,value:zn}):gn[Bn]=zn,dt=(gn,Bn)=>{for(var zn in Bn||(Bn={}))Tt.call(Bn,zn)&&nt(gn,zn,Bn[zn]);if(Ue)for(var zn of Ue(Bn))et.call(Bn,zn)&&nt(gn,zn,Bn[zn]);return gn},lt=(gn,Bn)=>Pe(gn,Ie(Bn)),pt=(gn,Bn,zn)=>new Promise((jt,Mt)=>{var xt=Nt=>{try{Zt(zn.next(Nt))}catch(me){Mt(me)}},Bt=Nt=>{try{Zt(zn.throw(Nt))}catch(me){Mt(me)}},Zt=Nt=>Nt.done?jt(Nt.value):Promise.resolve(Nt.value).then(xt,Bt);Zt((zn=zn.apply(gn,Bn)).next())});const vt={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"]}},Lt=(gn,Bn)=>Bn.map(zn=>({label:zn,kind:gn.languages.CompletionItemKind.Keyword,insertText:zn})),At=gn=>Object.keys(vt.tables).map(Bn=>({label:Bn,kind:gn.languages.CompletionItemKind.Variable,insertText:Bn})),kt=(gn,Bn)=>{const zn=vt.tables[gn];return zn?zn.map(jt=>({label:jt,kind:Bn.languages.CompletionItemKind.Field,insertText:jt})):[]};function Kt(gn,Bn,zn,jt,Mt){let xt=Bn.getWordUntilPosition(zn),Bt={startLineNumber:zn.lineNumber,endLineNumber:zn.lineNumber,startColumn:xt.startColumn,endColumn:xt.endColumn},Zt=jt.map(Nt=>({label:Nt,kind:gn.languages.CompletionItemKind.Keyword,insertText:Nt,insertTextRules:gn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Bt}));return Mt.map(Nt=>{Zt.push(lt(dt({},Nt),{range:Bt}))}),Zt}var $t=gn=>{vt.languages.map(Mt=>(gn.languages.registerDocumentFormattingEditProvider(Mt,{provideDocumentFormattingEdits(xt,Bt,Zt){return pt(this,null,function*(){const Nt=we()(xt.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:xt.getFullModelRange(),text:Nt}]})}}),Mt));const Bn=fe.quickKey.map(Mt=>({label:Mt.label,kind:gn.languages.CompletionItemKind.Method,insertText:Mt.content,insertTextRules:gn.languages.CompletionItemInsertTextRule.InsertAsSnippet})),zn=je.quickKey.map(Mt=>({label:Mt.label,kind:gn.languages.CompletionItemKind.Method,insertText:Mt.content,insertTextRules:gn.languages.CompletionItemInsertTextRule.InsertAsSnippet})),jt=_e.quickKey.map(Mt=>({label:Mt.label,kind:gn.languages.CompletionItemKind.Method,insertText:Mt.content,insertTextRules:gn.languages.CompletionItemInsertTextRule.InsertAsSnippet}));gn.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Mt,xt){var Bt=Mt.getWordUntilPosition(xt),Zt={startLineNumber:xt.lineNumber,endLineNumber:xt.lineNumber,startColumn:Bt.startColumn,endColumn:Bt.endColumn},Nt=Mt.getLineContent(xt.lineNumber).substring(Bt.startColumn-2,Bt.endColumn);return{suggestions:[...fe.keywords.map(me=>({label:me,kind:gn.languages.CompletionItemKind.Function,documentation:me,insertText:me,insertTextRules:gn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Zt})),...fe.quickKey.map(me=>({label:me.label,kind:gn.languages.CompletionItemKind.Function,documentation:me.content,insertText:Nt.startsWith("#")?me.content.replace(/#/,""):me.content,insertTextRules:gn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Zt}))]}}}),gn.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Mt,xt){var Bt=Mt.getWordUntilPosition(xt),Zt={startLineNumber:xt.lineNumber,endLineNumber:xt.lineNumber,startColumn:Bt.startColumn,endColumn:Bt.endColumn};return{suggestions:[...Me.keywords.map(Nt=>({label:Nt,kind:gn.languages.CompletionItemKind.Function,documentation:Nt,insertText:Nt,insertTextRules:gn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Zt}))]}}}),gn.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Mt,xt){var Bt=Mt.getWordUntilPosition(xt),Zt={startLineNumber:xt.lineNumber,endLineNumber:xt.lineNumber,startColumn:Bt.startColumn,endColumn:Bt.endColumn},Nt=Mt.getLineContent(xt.lineNumber).substring(Bt.startColumn-2,Bt.endColumn);return{suggestions:[..._e.keywords.map(me=>({label:me,kind:gn.languages.CompletionItemKind.Function,documentation:me,insertText:me,insertTextRules:gn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Zt})),..._e.quickKey.map(me=>({label:me.label,kind:gn.languages.CompletionItemKind.Function,documentation:me.content,insertText:Nt.startsWith("#")?me.content.replace(/#/,""):me.content,insertTextRules:gn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Zt}))]}}}),gn.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Mt,xt){var Bt=Mt.getWordUntilPosition(xt),Zt={startLineNumber:xt.lineNumber,endLineNumber:xt.lineNumber,startColumn:Bt.startColumn,endColumn:Bt.endColumn},Nt=Mt.getLineContent(xt.lineNumber).substring(Bt.startColumn-2,Bt.endColumn);return{suggestions:[...ie.keywords.map(me=>({label:me,kind:gn.languages.CompletionItemKind.Function,documentation:me,insertText:me,insertTextRules:gn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Zt})),...ie.quickKey.map(me=>({label:me.label,kind:gn.languages.CompletionItemKind.Function,documentation:me.content,insertText:Nt.startsWith("#")?me.content.replace(/#/,""):me.content,insertTextRules:gn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Zt}))]}}}),gn.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Mt,xt){var Bt=Mt.getWordUntilPosition(xt),Zt={startLineNumber:xt.lineNumber,endLineNumber:xt.lineNumber,startColumn:Bt.startColumn,endColumn:Bt.endColumn},Nt=Mt.getLineContent(xt.lineNumber).substring(Bt.startColumn-2,Bt.endColumn);return{suggestions:[...je.keywords.map(me=>({label:me,kind:gn.languages.CompletionItemKind.Function,documentation:me,insertText:me,insertTextRules:gn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Zt})),...je.quickKey.map(me=>({label:me.label,kind:gn.languages.CompletionItemKind.Function,documentation:me.content,insertText:Nt.startsWith("#")?me.content.replace(/#/,""):me.content,insertTextRules:gn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Zt}))]}}})};const ne="\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,ue=(gn,Bn,zn)=>Bn in gn?qt(gn,Bn,{enumerable:!0,configurable:!0,writable:!0,value:zn}):gn[Bn]=zn,ae=(gn,Bn,zn)=>ue(gn,typeof Bn!="symbol"?Bn+"":Bn,zn);const Fe=class px{constructor(Bn,zn,jt){this.placeholder=Bn,this.editor=zn,this.monaco=jt,zn.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return px.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)}};ae(Fe,"ID","editor.widget.placeholderHint");var Re=Fe,En=Ft(96236),fn=Ft(8591),bn=Ft(6848),cn=Ft(89392),he=Ft(34604),Qt=Ft(56102),Ae=Object.defineProperty,Gn=Object.defineProperties,An=Object.getOwnPropertyDescriptors,Se=Object.getOwnPropertySymbols,sn=Object.prototype.hasOwnProperty,wn=Object.prototype.propertyIsEnumerable,Xn=(gn,Bn,zn)=>Bn in gn?Ae(gn,Bn,{enumerable:!0,configurable:!0,writable:!0,value:zn}):gn[Bn]=zn,Hn=(gn,Bn)=>{for(var zn in Bn||(Bn={}))sn.call(Bn,zn)&&Xn(gn,zn,Bn[zn]);if(Se)for(var zn of Se(Bn))wn.call(Bn,zn)&&Xn(gn,zn,Bn[zn]);return gn},ii=(gn,Bn)=>Gn(gn,An(Bn)),re=(gn,Bn)=>{var zn={};for(var jt in gn)sn.call(gn,jt)&&Bn.indexOf(jt)<0&&(zn[jt]=gn[jt]);if(gn!=null&&Se)for(var jt of Se(gn))Bn.indexOf(jt)<0&&wn.call(gn,jt)&&(zn[jt]=gn[jt]);return zn},Dn=(gn,Bn,zn)=>new Promise((jt,Mt)=>{var xt=Nt=>{try{Zt(zn.next(Nt))}catch(me){Mt(me)}},Bt=Nt=>{try{Zt(zn.throw(Nt))}catch(me){Mt(me)}},Zt=Nt=>Nt.done?jt(Nt.value):Promise.resolve(Nt.value).then(xt,Bt);Zt((zn=zn.apply(gn,Bn)).next())});function Zn(gn){return/^\d+$/.test(gn)?`${gn}px`:gn}function qn(){}let ni=!1;const Hi={"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 Jo(gn=[]){let Bn=gn;if(Array.isArray(gn)){for(let zn=0;zn{var Bn=gn,{width:zn="100%",height:jt="100%",value:Mt,language:xt="javascript",style:Bt={},options:Zt={},overrideServices:Nt={},theme:me="vs-dark",onEditBlur:Sn,isCopy:xn=!1,onSave:yn,autoHeight:Rn=!1,forbidCopy:ji=!1,onChange:Qi=qn,editorDidMount:Ti=qn,onFocus:vo=qn,onBreakPoint:Ri=qn,breakPointValue:er=[],filename:As="educoder.txt",errorLine:Or,errorContent:jr="",highlightLine:gr,openBreakPoint:pr=!1,placeholder:ps=""}=Bn,Yr=re(Bn,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder"]);const Xr=(0,St.useRef)(),qi=(0,St.useRef)({}),Ct=(0,St.useRef)(),Na=(0,St.useRef)(),mr=(0,St.useRef)([]),Ra=(0,St.useRef)(!1),za=(0,St.useRef)(),da=(0,St.useRef)(),Xa=(0,St.useRef)(!1),[ei,ai]=(0,St.useState)(!1);function Ee(){let De;return Xr.current&&(De=new Ut.Z(dn=>{for(let ro of dn)(ro.target.offsetHeight>0||ro.target.offsetWidth>0)&&qi.current.instance.layout()}),De.observe(Xr.current)),De}function pe(){fn.ZP.warning({content:decodeURIComponent(ne),key:"monaco-editor-tip"})}const ve=()=>{let De=qi.current.instance;if(Mt!=null&&De&&ei){const dn=De.getModel();dn&&Mt!==dn.getValue()&&(ni=!0,dn.setValue(Mt),De.layout(),ni=!1)}};(0,St.useEffect)(()=>{const De=he.Z.subscribe("formatDocument",dn=>{var ro;let Uo=qi.current.instance;(ro=Uo==null?void 0:Uo.getAction)==null||ro.call(Uo,"editor.action.formatDocument").run()});return window.updateMonacoValue=dn=>{Qi(dn)},De},[]),(0,St.useEffect)(()=>{var De;let dn=qi.current.instance;Na.current&&clearTimeout(Na.current),Na.current=setTimeout(()=>{ve()},500),Mt&&(Mt!=null&&Mt.length)&&((De=dn==null?void 0:dn.updateOptions)==null||De.call(dn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Mt.split(/\r\n|\r|\n/g).length))+3,5)}))},[Mt,ei,qi.current]),(0,St.useEffect)(()=>{if(Or&&qi.current&&qi.current.instance){let dn=qi.current.instance;dn.changeViewZones(function(ro){var Uo=document.createElement("div");Uo.style.padding="10px 20px",Uo.style.width="calc(100% - 20px)",Uo.className="my-error-line-wrp",Uo.innerHTML=jr,ro.addZone({afterLineNumber:Or||11,heightInLines:3,domNode:Uo})});var De={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}};dn.addOverlayWidget(De),dn.revealPositionInCenter({lineNumber:20,column:1})}},[Or,qi.current,ei]);const Wn=(De="",dn)=>{if(!De||De.trim()==="")return!0;const Uo=qi.current.instance.getModel().getLineTokens(dn);let Vo=!1;for(let Ii=0;Ii<2;Ii++)Uo.getStandardTokenType(Ii)===1&&(Vo=!0);return Vo};(0,St.useEffect)(()=>{var De;const dn=(De=qi.current)==null?void 0:De.instance;if(dn&&ei&&ji){const ro=dn.onDidBlurEditorWidget(()=>{Xa.current=!1}),Uo=dn.onDidFocusEditorText(()=>{Xa.current=!0});return()=>{ro.dispose(),Uo.dispose()}}},[qi.current,ei,ji]),(0,St.useEffect)(()=>{var De;if((De=qi.current)!=null&&De.instance&&ei&&pr){let dn=qi.current.instance,ro=dn.getModel();if(!ro)return;(()=>{var ko;let Ye=[],Yn=[];const Ci=ro.getAllDecorations();for(let Ai of Ci)Ai.options.className==="highlighted-line"&&(Ye.push((ko=Ai==null?void 0:Ai.range)==null?void 0:ko.startLineNumber),Yn.push(Ai==null?void 0:Ai.id));if(gr===Ye[0])return;ro.deltaDecorations(Yn,[]);const Bi=ro.getLineCount();gr&&gr<=Bi&&(dn.deltaDecorations([],[{range:new pn.Range(gr,1,gr,ro.getLineMaxColumn(gr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),dn.revealLineInCenter(gr))})();const Vo=(ko=!1)=>{var Ye;let Yn=[],Ci=[];const Bi=ro.getAllDecorations();for(let Ai of Bi)Ai.options.linesDecorationsClassName==="breakpoints-select"&&(Yn.push((Ye=Ai==null?void 0:Ai.range)==null?void 0:Ye.startLineNumber),Ci.push(Ai==null?void 0:Ai.id));if(ko)return{lines:Yn,ids:Ci};Ri(Yn)},Ii=ko=>Dn(void 0,null,function*(){let Ye={range:new pn.Range(ko,1,ko,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield ro.deltaDecorations([],[Ye]),Vo()}),Fi=ko=>Dn(void 0,null,function*(){let Ye=[];const Yn=dn.getLineDecorations(ko);for(let Ci of Yn)Ci.options.linesDecorationsClassName==="breakpoints-select"&&Ye.push(Ci.id);yield ro.deltaDecorations(Ye,[]),Vo()}),Pi=ko=>{let Ye=dn.getLineDecorations(ko);for(let Yn of Ye)if(Yn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,cn.isEqual)(er,Vo(!0).lines)){ro.deltaDecorations(Vo(!0).ids,[]);const ko=er.map(Ye=>({range:new pn.Range(Ye,1,Ye,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));ro.deltaDecorations([],ko)}const Wo=dn.onDidChangeModelContent(ko=>{let Ye=dn.getPosition();if(Ye){let Yn=Ye.lineNumber;clearTimeout(da.current),da.current=setTimeout(()=>{Wn(ro.getLineContent(Yn),Yn)?Fi(Yn):Pi(Yn)?(Fi(Yn),Ii(Yn)):Vo()},100)}}),br=dn.onMouseDown(ko=>{var Ye,Yn,Ci;if(ko.target.detail&&((Ci=(Yn=(Ye=ko.target)==null?void 0:Ye.element)==null?void 0:Yn.className)!=null&&Ci.includes("line-numbers"))){let Bi=ko.target.position.lineNumber;if(Wn(ro.getLineContent(Bi),Bi))return;Pi(Bi)?Fi(Bi):Ii(Bi)}}),wr=ko=>{let Ye={range:new pn.Range(ko,1,ko,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};mr.current=dn.deltaDecorations(mr.current,[Ye])},$e=()=>{mr.current=dn.deltaDecorations(mr.current,[])},vr=dn.onMouseMove(ko=>{var Ye,Yn,Ci;if($e(),ko.target.detail&&((Ci=(Yn=(Ye=ko.target)==null?void 0:Ye.element)==null?void 0:Yn.className)!=null&&Ci.includes("line-numbers"))){let Bi=ko.target.position.lineNumber;if(Wn(ro.getLineContent(Bi),Bi))return;wr(Bi)}}),ur=dn.onMouseLeave(()=>{$e()});return()=>{Wo.dispose(),br.dispose(),vr.dispose(),ur.dispose()}}},[qi.current,ei,er,gr,pr,xt]),(0,St.useEffect)(()=>{var De;(De=qi.current)!=null&&De.instance&&pr&&qi.current.instance.setPosition({lineNumber:0,column:0})},[gr]);function On(){let De=qi.current.instance;if(De){const dn=De.getSelection(),ro=qi.current.pastePos||{},Uo=new pn.Range(ro.startLineNumber||dn.endLineNumber,ro.startColumn||dn.endColumn,ro.endLineNumber||dn.endLineNumber,ro.endColumn||dn.endColumn);setTimeout(()=>{De.executeEdits("",[{range:Uo,text:""}])},300)}}function Kn(De){(window.navigator.platform.match("Mac")?De.metaKey:De.ctrlKey)&&De.keyCode==83&&(De.preventDefault(),yn())}const Ge=()=>{if(Rn&&qi.current.instance){const De=qi.current.instance.getContentHeight();li(De{if(!Xa.current)return;const{keyCode:dn,ctrlKey:ro,metaKey:Uo,target:Vo,type:Ii}=De;return(Ii==="paste"||(dn===67||dn===86)&&(Uo||ro))&&Vo.nodeName==="TEXTAREA"&&(pe(),De.preventDefault()),!1};function ui(De,dn){var ro=window.URL||window.webkitURL||window,Uo=new Blob([dn]),Vo=document.createElementNS("http://www.w3.org/1999/xhtml","a");Vo.href=ro.createObjectURL(Uo),Vo.download=De,Tn(Vo)}(0,St.useEffect)(()=>{Ge()},[Ge]),(0,St.useEffect)(()=>{Xr.current&&!ei&&Promise.all([Ft.e(8909),Ft.e(3267)]).then(Ft.bind(Ft,71448)).then(De=>{try{pn=De,qi.current.instance=pn.editor.create(Xr.current,{value:Mt,language:Jo(xt),theme:me,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Nt);const dn=qi.current.instance;let Vo=[...En.BH._menuItems].find(Wo=>Wo[0]._debugName=="EditorContext")[1],Ii=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Fi=(Wo,br)=>{var wr,$e;let vr=Wo._first;do br.includes(($e=(wr=vr.element)==null?void 0:wr.command)==null?void 0:$e.id)&&Wo._remove(vr);while(vr=vr.next)};if(Ti(dn,pn),setTimeout(()=>{Ge(),qi.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{ui(As||"educoder.txt",dn.getValue())}})},500),qi.current.subscription=dn.onDidChangeModelContent(Wo=>{Ra.current?clearTimeout(za.current):(Ge(),Qi(dn.getValue(),Wo)),za.current=setTimeout(()=>{Ra.current=!1},500)}),window.Monaco||$t(pn,Jo(xt)),ji&&(Fi(Vo,Ii),Xr.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Si),window.removeEventListener("paste",Si),window.addEventListener("keydown",Si),window.addEventListener("paste",Si)),window.Monaco=pn,Sn&&dn.onDidBlurEditorWidget(()=>{Sn(dn.getValue())}),vo&&dn.onDidFocusEditorText(()=>{vo(dn.getValue())}),ji)try{dn.onDidPaste(Wo=>{const br=dn.getSelection(),wr=qi.current.pastePos||{},$e=new pn.Range(wr.startLineNumber||br.endLineNumber,wr.startColumn||br.endColumn,wr.endLineNumber||br.endLineNumber,wr.endColumn||br.endColumn);dn.executeEdits("",[{range:Wo.range,text:""}])})}catch(Wo){}let Pi=Ee();return ps&&typeof ps=="string"&&new Re(ps,dn,pn),ai(!0),()=>{const Wo=qi.current.instance;Wo.dispose();const br=Wo.getModel();br&&br.dispose(),qi.current.subscription&&qi.current.subscription.dispose(),Pi.unobserve(Xr.current)}}catch(dn){}})},[]),(0,St.useEffect)(()=>{if(qi.current.instance&&ei)return document.addEventListener("keydown",Kn,!1),()=>{document.removeEventListener("keydown",Kn)}},[yn,ei]),(0,St.useEffect)(()=>{let De=qi.current.instance;if(De&&ei){let dn=Jo(xt);pn.editor.setModelLanguage(De.getModel(),dn)}},[xt,ei]),(0,St.useEffect)(()=>{qi.current.instance&&ei&&pn.editor.setTheme(me)},[me,ei]),(0,St.useEffect)(()=>{let De=qi.current.instance;Ct.current=Zt,De&&ei&&(De.updateOptions(Hn({},Zt)),setTimeout(()=>{De.getModel().updateOptions(Hn({},Zt))},200))},[JSON.stringify(Zt),ei]),(0,St.useEffect)(()=>{let De=qi.current.instance;De&&ei&&De.layout()},[zn,jt,ei]);const[ao,oe]=(0,St.useState)(Zn(zn)),[mn,li]=(0,St.useState)(Zn(jt)),to=ii(Hn({},Bt),{width:ao,height:mn,position:"relative"});return St.createElement("div",{className:"my-monaco-editor",ref:Xr,style:to},xn&&St.createElement(Qt.CopyToClipboard,{text:Mt,onCopy:()=>fn.ZP.success("\u590D\u5236\u6210\u529F")},St.createElement(bn.Z,{title:"\u590D\u5236\u4EE3\u7801"},St.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},St.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function ti({width:gn="100%",height:Bn="100%",original:zn,modified:jt,language:Mt,options:xt={}}){const Bt=(0,St.useRef)(),[Zt,Nt]=(0,St.useState)(null);function me(Rn){let ji;return Bt.current&&(ji=new Ut.Z(Qi=>{for(let Ti of Qi)(Ti.target.offsetHeight>0||Ti.target.offsetWidth>0)&&Rn.layout()}),ji.observe(Bt.current)),ji}(0,St.useEffect)(()=>(Bt.current&&Promise.all([Ft.e(8909),Ft.e(9404)]).then(Ft.bind(Ft,2550)).then(Rn=>{pn=Rn;const ji=pn.editor.createDiffEditor(Bt.current,ii(Hn({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},xt),{wordWrap:!0}));Nt(ji);let Qi=me(ji);return()=>{ji.dispose();const Ti=ji.getModel();Ti&&Ti.dispose(),Qi.unobserve(Bt.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,St.useEffect)(()=>{Zt&&Zt.setModel({original:pn.editor.createModel(zn,Mt),modified:pn.editor.createModel(jt,Mt)})},[zn,jt,Mt,Zt]);const Sn=Zn(gn),xn=Zn(Bn),yn={width:Sn,height:xn};return St.createElement("div",{className:"my-diff-editor",ref:Bt,style:yn})}},85057:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{jL:function(){return fe},w9:function(){return sn},QD:function(){return Qi},cQ:function(){return Qt},op:function(){return me},O5:function(){return Xa},_b:function(){return Or},t7:function(){return lt},Gi:function(){return Dn},YG:function(){return ii},qp:function(){return Pe},vr:function(){return Ri},qE:function(){return yn},Je:function(){return Lt},wb:function(){return En},cq:function(){return pn},tp:function(){return Tt}});var St=Ft(59301),Ut={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"},Me="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZb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7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",fe=({dataSource:ei=[],img:ai,imgWidth:Ee=346,title:pe,sunTitle:ve,bannerExtraContent:Wn})=>St.createElement("div",{className:Ut.banner},St.createElement("div",{className:Ut.content},St.createElement("aside",null,St.createElement("p",null,St.createElement("b",null,pe),St.createElement("span",null,ve)),ei.length>0&&St.createElement("div",{className:Ut.btns},ei.map((On,Kn)=>St.createElement("div",{key:Kn,onClick:On.click},On.name,On.sign?St.createElement("img",{src:Me,width:39}):null))),Wn),ai&&St.createElement("img",{style:{marginTop:33,marginRight:38},src:ai,width:Ee}))),je={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"},ie=Ft(92310),Ne=Ft.n(ie),we=Ft(89392),Pe=({dataSource:ei=[],value:ai,onChange:Ee,onTitleChange:pe,className:ve,title:Wn,titleWidth:On=41,style:Kn={},fontColor:Ge="#6A7283",showCount:Tn})=>{const[Si,ui]=(0,St.useState)(0),[ao,oe]=(0,St.useState)(!1),mn=(0,St.useRef)(null),li=(0,St.useRef)(null);return(0,St.useEffect)(()=>{var to;ei.length!==0&&(((to=mn==null?void 0:mn.current)==null?void 0:to.clientHeight)>97?ui(1):ui(0)),ei.length===0&&ui(0),oe(!1)},[ei]),St.createElement("div",{className:Ne()(je.row,ve),style:Kn},St.createElement("div",{onClick:(0,we.throttle)(()=>pe==null?void 0:pe(),2e3),style:{width:On,marginTop:ao?12:4},className:`${je.title} ${pe?"current":""}`},Wn),St.createElement("div",{className:ao?`${je.tagsWrap} ${je.tagsBorderWrap}`:je.tagsWrap},St.createElement("div",{className:je.bar,ref:li,style:Si>0?{height:Si===1?97:"auto",overflow:Si===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},St.createElement("div",{className:je.tag,ref:mn},ei==null?void 0:ei.map(to=>St.createElement("span",{onClick:()=>Ee(to.id),key:to.id,style:{color:Ge},className:ai===to.id?je.active:""},St.createElement("span",{title:to.name,className:je.name},to.name),!!Tn&&St.createElement("span",{className:je.num},to.count))))),!!Si&&St.createElement(St.Fragment,null,Si===1?St.createElement("div",{onClick:()=>{var to;ui(2),((to=mn==null?void 0:mn.current)==null?void 0:to.clientHeight)>245?oe(!0):oe(!1)},className:je.action},"\u5C55\u5F00",St.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):St.createElement("div",{onClick:()=>{li.current.scrollTop=0,ui(1),oe(!1)},className:je.action},"\u6536\u8D77",St.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Ie={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"},Tt=({dataSource:ei=[],value:ai,onChange:Ee,className:pe,style:ve={}})=>St.createElement("div",{style:ve,className:Ne()(Ie.tabs,pe)},ei.map(Wn=>St.createElement("span",{onClick:()=>Ee(Wn.id),className:ai===Wn.id?Ie.active:"",key:Wn.id},Wn.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"},nt=Ft(92832),lt=({dataSource:ei=[],value:ai="",onChange:Ee,onInputChange:pe=()=>{},className:ve,style:Wn={},placeholder:On,allowClear:Kn=!1})=>{var Ge;const[Tn,Si]=(0,St.useState)(""),[ui,ao]=(0,St.useState)("");(0,St.useEffect)(()=>{var li;let to=ai;(li=JSON.stringify(ai))!=null&&li.includes("{")&&(Si(ai.id),to=ai.value||"");try{ao(decodeURIComponent(to||""))}catch(De){ao(decodeURIComponent(to||""))}},[ai]);const oe=()=>{Ee(encodeURIComponent(ui),Tn||null)},mn=li=>{li!==Tn&&(Si(li),Ee(encodeURIComponent(ui),li))};return St.createElement("div",{className:Ne()(et.input,ve),style:Wn},!!ei.length&&St.createElement("div",{className:et.dropdown},St.createElement("div",{className:et.text},(Ge=ei.find(li=>li.id===Tn))==null?void 0:Ge.name,St.createElement("i",{className:"iconfont icon-zhankai4"}),St.createElement("b",{className:et.b1}),St.createElement("b",{className:et.b2})),St.createElement("div",{className:et.menu},ei.map((li,to)=>St.createElement("div",{key:to,onClick:()=>mn(li.id)},li.name)))),St.createElement(nt.default,{onPressEnter:oe,value:ui,onChange:li=>{ao(li.target.value),pe(encodeURIComponent(li.target.value),Tn||null)},bordered:!1,placeholder:On}),St.createElement("i",{onClick:oe,className:"iconfont icon-sousuo9 font14 pl10 current"}))},pt={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"},Lt=({value:ei,onChange:ai,className:Ee,total:pe,pageSize:ve,style:Wn={}})=>{const On=ei<2,Kn=ei>=Math.ceil(pe/ve);return pe<=ve?St.createElement(St.Fragment,null):St.createElement("div",{className:Ne()(pt.quickPager,Ee),style:Wn},St.createElement("div",{onClick:()=>{On||ai(ei-1,"prev")},className:On?pt.disabled:""},"\u4E0A\u4E00\u9875"),St.createElement("div",{onClick:()=>{Kn||ai(ei+1,"next")},className:Kn?pt.disabled:""},"\u4E0B\u4E00\u9875"))},At={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"},kt=Ft(71418),Kt=Ft(6848),$t=Ft(13570),ne=Ft(3294),qt=Ft(955),ue=Ft(96908),ae=Ft(57177),Fe=Ft(81378),xe=Ft(8797),En=({className:ei,dataSource:ai=[],col:Ee=4,right:pe,bottom:ve=23,precision:Wn=0,wrapWidth:On=1200,trackEventItems:Kn,loading:Ge})=>{const Tn=Math.floor((On-(Ee-1)*pe)/Ee);return St.createElement(kt.Z,{spinning:Ge},St.createElement("div",{className:Ne()(At.list,ei)},!!ai.length&&ai.map((Si,ui)=>{const{name:ao,id:oe,identifier:mn,power:li,cover_image_id:to,pic:De}=Si;return St.createElement("div",{className:At.wrap,key:oe,style:{width:Tn,marginRight:(1+ui)%Ee===0?0:pe+Wn,marginBottom:ve}},St.createElement("a",{target:"_blank",href:`/shixuns/${mn}/challenges`,className:At.li,onClick:dn=>{dn.preventDefault(),Kn&&(0,qt.L9)([Kn]),li&&(0,qt.xg)(`/shixuns/${mn}/challenges`)}},St.createElement("div",{className:At.img},St.createElement("img",{className:At.cover,src:`${De}`}),Si.is_jupyter&&St.createElement("img",{className:At.sign,src:ue}),Si.is_jupyter_lab&&St.createElement("img",{className:At.sign,src:ae}),Si.is_unity_3d&&St.createElement("img",{className:At.sign,src:Fe})),St.createElement("div",{className:At.name},St.createElement(Kt.Z,{title:ao||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},St.createElement("span",{className:At.e},ao||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),St.createElement("div",{className:At.tags},St.createElement(Kt.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},St.createElement("span",null,St.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),St.createElement("span",null,Si.challenges_count))),!!Si.myshixuns_count&&St.createElement(Kt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},St.createElement("span",null,St.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),St.createElement("span",null,Si.myshixuns_count))),St.createElement(Kt.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},St.createElement("span",null,St.createElement("span",null,Si.level))),St.createElement("div",{className:At.rate},St.createElement($t.Z,{allowHalf:!0,disabled:!0,defaultValue:Si.score_info}),St.createElement("span",null,"\xA0",Si.score_info?`${Si.score_info}\u5206`:"5\u5206")))),!li&&St.createElement("div",{className:At.lockWrap},St.createElement("img",{src:`${ne.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),St.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!ai.length&&St.createElement(xe.Z,null)))},fn={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"},bn=Ft(24065),cn=Ft(59301),Qt=({className:ei,dataSource:ai=[],col:Ee=4,right:pe,bottom:ve=23,precision:Wn=0,wrapWidth:On=1200,trackEventItems:Kn,loading:Ge,onRemove:Tn=()=>{},isCurrent:Si=!0,showAlias:ui=!1})=>{const ao=Math.floor((On-(Ee-1)*pe)/Ee),oe=[{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 cn.createElement(kt.Z,{spinning:Ge},cn.createElement("div",{className:Ne()(fn.list,ei)},!!(ai!=null&&ai.length)&&(ai==null?void 0:ai.map((mn,li)=>{var to;const{name:De,id:dn,identifier:ro,featured:Uo,school_name:Vo,image_url:Ii,excellent:Fi,is_plan:Pi}=mn;return cn.createElement("div",{key:dn,className:fn.wrap,style:{width:ao,marginRight:(1+li)%Ee===0?0:pe+Wn,marginBottom:ve}},cn.createElement("a",{className:fn.li,onClick:Wo=>{Wo.preventDefault(),Wo.stopPropagation(),Kn&&(0,qt.L9)([Kn]),(0,qt.xg)(`/paths/${ro}`)}},cn.createElement("div",{className:fn.img},cn.createElement("img",{className:fn.cover,src:`${Ii}`}),Si&&(0,bn.bg)()&&(mn==null?void 0:mn.studying)&&cn.createElement("div",{className:`${fn.movebq} user-path-items`,onClick:Wo=>{Wo.stopPropagation(),Tn(mn)}},cn.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),cn.createElement("span",{className:"c-red"},"\u79FB\u9664")),(to=mn==null?void 0:mn.subject_tags)==null?void 0:to.map((Wo,br)=>{var wr,$e;if(br===0){const ur=(wr=oe.find(ko=>ko.name==Wo))==null?void 0:wr.swimg;return cn.createElement("img",{className:fn.sign,src:ur,style:{left:"-4px"}})}const vr=($e=oe.find(ur=>ur.name==Wo))==null?void 0:$e.ptimg;return cn.createElement("img",{className:fn.sign,src:vr,style:{left:`${48+52*(br-1)+2*br}px`}})}),cn.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(mn==null?void 0:mn.excellent)&&cn.createElement("div",{className:fn.bq},"\u5F00\u653E\u8BFE\u7A0B"))),cn.createElement("div",{className:fn.name},cn.createElement(Kt.Z,{title:ui&&(mn!=null&&mn.excellent_alias_name)?cn.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${De}`,cn.createElement("br",null),cn.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${mn==null?void 0:mn.excellent_alias_name}`)):De},cn.createElement("span",{className:fn.e},ui&&(mn==null?void 0:mn.excellent_alias_name)||De))),cn.createElement(Kt.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Vo}`},cn.createElement("div",{className:fn.unit},cn.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Vo)),cn.createElement("div",{className:fn.tags},cn.createElement("div",null,cn.createElement(Kt.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},cn.createElement("span",null,cn.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),cn.createElement("span",null,mn.stages_count))),cn.createElement(Kt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},cn.createElement("span",null,cn.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),cn.createElement("span",null,mn.members_count)))))))})),!ai.length&&cn.createElement(xe.Z,null)))},Ae={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"},Gn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7F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NMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",An=Ft(59301),sn=({className:ei,dataSource:ai=[],col:Ee=4,right:pe,bottom:ve=23,precision:Wn=0,wrapWidth:On=1200,trackEventItems:Kn,loading:Ge,handleVery:Tn=()=>!0})=>{const Si=Math.floor((On-(Ee-1)*pe)/Ee);return An.createElement(kt.Z,{spinning:Ge},An.createElement("div",{className:Ne()(Ae.list,ei)},!!ai.length&&ai.map((ui,ao)=>{const{subject_identifier:oe,id:mn,identifier:li,power:to}=ui,De=ui.is_public!=0&&ui.is_public;return An.createElement("div",{className:Ae.wrap,key:mn,style:{width:Si,marginRight:(1+ao)%Ee===0?0:pe+Wn,marginBottom:ve}},An.createElement("a",{className:Ae.li,onClick:dn=>{dn.preventDefault(),Tn(ui==null?void 0:ui.first_category_url)&&(Kn&&(0,qt.L9)([Kn]),(0,qt.xg)(ui.first_category_url))}},An.createElement("div",{className:Ae.top},An.createElement(Kt.Z,{title:ui.name},An.createElement("div",{className:Ae.name},ui.name)),An.createElement("img",{className:Ae.img,src:ne.Z.IMG_SERVER+"/images/"+ui.avatar_url}),An.createElement("div",{className:Ae.text,title:ui.creator},ui.creator),oe&&An.createElement("div",{className:Ae.btns},An.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),An.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),De&&An.createElement("div",{className:Ae.sign},"\u516C\u5F00")),An.createElement("div",{className:Ae.bottom},ui.visits>0&&An.createElement(Kt.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},An.createElement("span",null,An.createElement("i",{className:"iconfont icon-liulanyan"}),An.createElement("span",null,ui.visits))),ui.course_members_count>0&&An.createElement(Kt.Z,{title:"\u6210\u5458",placement:"bottom"},An.createElement("span",null,An.createElement("i",{className:"iconfont icon-chengyuan"}),ui.course_members_count)),ui.tasks_count>0&&An.createElement(Kt.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},An.createElement("span",null,An.createElement("i",{className:"iconfont icon-zuoye"}),ui.tasks_count)),ui.is_end?An.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):An.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!ui.is_accessible&&An.createElement("div",{className:Ae.lockWrap},An.createElement("img",{src:`${ne.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),An.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!ai.length&&An.createElement(xe.Z,null)))},wn={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"},Xn=Ft(89070),ii=({dataSource:ei=[],value:ai,onChange:Ee,className:pe,style:ve={},tabBarExtraContent:Wn})=>St.createElement("div",{className:Ne()(wn.tabs,pe),style:ve},St.createElement("div",{className:wn.tabsWrap},ei.map((On,Kn)=>!(On!=null&&On.hide)&&St.createElement("aside",{className:wn.tab,onClick:()=>{Ee(On.id),On.link&&Xn.history.push(On.link)},key:Kn},St.createElement("div",{className:ai===On.id?wn.active:""},On.name),(On==null?void 0:On.resetCount)==null&&(On==null?void 0:On.total)!==void 0&&St.createElement("span",null,"\uFF08",On==null?void 0:On.total,"\uFF09"),(On==null?void 0:On.resetCount)!==void 0&&(On==null?void 0:On.total)!==void 0&&St.createElement(Kt.Z,{title:(On==null?void 0:On.tip)!=null?On==null?void 0:On.tip:""},St.createElement("span",{style:{color:"#9096A3"}},"\uFF08",St.createElement("span",{style:{color:"#000"}},On==null?void 0:On.resetCount),"/",St.createElement("span",null,On==null?void 0:On.total),"\uFF09"))))),St.createElement("div",{className:wn.tabBar},Wn)),Dn=({className:ei,style:ai={},children:Ee})=>St.createElement("div",{className:Ne()(ei),style:ai},Ee),Zn={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"},qn=Ft(38854),ni=Ft(20834);const Hi=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var pn=({sortValue:ei,dropValue:ai,className:Ee,onSort:pe,onDrop:ve,dataSource:Wn=Hi})=>{var On;return St.createElement("div",{className:Ne()(Zn.orderWrap,Ee)},St.createElement(qn.Z,{dropdownRender:()=>St.createElement(ni.default,null,Wn.map((Kn,Ge)=>St.createElement(ni.default.Item,{key:Ge,onClick:()=>ve(Kn.id)},Kn.name)))},St.createElement("span",{className:Zn.orderTextWrap},(On=Wn.find(Kn=>ai===Kn.id))==null?void 0:On.name)),St.createElement("span",{className:Zn.orderIconWrap},St.createElement("span",{className:Zn.orderAsc},St.createElement("i",{className:ei==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Zn.cursorPointer} ${Zn.active}`:`iconfont icon-sanjiaoxing-up font12 ${Zn.cursorPointer}`,onClick:()=>pe(ei==="asc"?"desc":"asc")})),St.createElement("span",{className:Zn.orderDesc},St.createElement("i",{className:ei==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Zn.cursorPointer} ${Zn.active}`:`iconfont icon-sanjiaoxing-down font12 ${Zn.cursorPointer}`,onClick:()=>pe(ei==="asc"?"desc":"asc")}))))},Pn={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"},ti=Ft(3113),gn=Object.defineProperty,Bn=Object.getOwnPropertySymbols,zn=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,Mt=(ei,ai,Ee)=>ai in ei?gn(ei,ai,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):ei[ai]=Ee,xt=(ei,ai)=>{for(var Ee in ai||(ai={}))zn.call(ai,Ee)&&Mt(ei,Ee,ai[Ee]);if(Bn)for(var Ee of Bn(ai))jt.call(ai,Ee)&&Mt(ei,Ee,ai[Ee]);return ei},Bt=(ei,ai)=>{var Ee={};for(var pe in ei)zn.call(ei,pe)&&ai.indexOf(pe)<0&&(Ee[pe]=ei[pe]);if(ei!=null&&Bn)for(var pe of Bn(ei))ai.indexOf(pe)<0&&jt.call(ei,pe)&&(Ee[pe]=ei[pe]);return Ee},Zt=(ei,ai,Ee)=>new Promise((pe,ve)=>{var Wn=Ge=>{try{Kn(Ee.next(Ge))}catch(Tn){ve(Tn)}},On=Ge=>{try{Kn(Ee.throw(Ge))}catch(Tn){ve(Tn)}},Kn=Ge=>Ge.done?pe(Ge.value):Promise.resolve(Ge.value).then(Wn,On);Kn((Ee=Ee.apply(ei,ai)).next())}),me=ei=>{var ai=ei,{className:Ee,style:pe,children:ve,loading:Wn=!1,openLoading:On,onClick:Kn=()=>{},size:Ge="middle",shape:Tn="round"}=ai,Si=Bt(ai,["className","style","children","loading","openLoading","onClick","size","shape"]);const[ui,ao]=(0,St.useState)(!1);return St.createElement(ti.ZP,xt({onClick:(0,we.throttle)(oe=>Zt(void 0,null,function*(){On&&ao(!0);try{yield Kn(oe)}catch(mn){console.log("error",mn)}On&&ao(!1)}),2e3,{leading:!0,trailing:!1}),className:Ne()(Pn.btn,Pn[`${Ge}-${Tn}`],Ee),style:pe,size:Ge,shape:Tn,loading:ui||Wn},Si),ve)},Sn={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"},yn=({className:ei,style:ai,children:Ee=null,onClick:pe,title:ve})=>St.createElement("div",{className:Ne()(Sn.head,ei),style:ai},St.createElement("span",{className:"primary-hover",onClick:pe},St.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),St.createElement("b",{title:ve},ve),St.createElement("div",{className:Sn.node},Ee)),Rn={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"},Qi=({confirmShow:ei=!0,confirmTitle:ai,confirmClick:Ee,cancelShow:pe=!0,cancelTitle:ve,cancelClick:Wn,className:On,style:Kn,confirmLoading:Ge=!1})=>St.createElement("div",{className:Ne()(Rn.btns,On),style:Kn},ei&&St.createElement(ti.ZP,{loading:Ge,onClick:Ee,type:"primary",className:Rn.confirm},ai),pe&&St.createElement(ti.ZP,{onClick:Wn,className:Rn.cancel},ve)),Ti={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"},Ri=({className:ei,style:ai={},LeftContent:Ee,children:pe,RightContent:ve})=>St.createElement("div",{className:Ne()(Ti.fixedBottom,ei),style:ai},St.createElement("div",{className:Ti.wrap},St.createElement("div",{className:Ti.left},Ee),St.createElement("div",{className:Ti.center},pe),St.createElement("div",{className:Ti.right},ve))),er={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"},Or=({className:ei,style:ai={},dataSource:Ee=[]})=>St.createElement("div",{className:Ne()(er.crumbs,ei),style:ai},Ee.map((pe,ve)=>veXn.history.push(pe.path)},pe.name):St.createElement("span",null,pe.name),St.createElement("span",null,"\xA0",">","\xA0")):St.createElement("span",{key:ve,style:{color:"#5F6368"}},pe.name))),jr=Ft(31797),gr=Object.defineProperty,pr=Object.defineProperties,ps=Object.getOwnPropertyDescriptors,Yr=Object.getOwnPropertySymbols,Xr=Object.prototype.hasOwnProperty,qi=Object.prototype.propertyIsEnumerable,Ct=(ei,ai,Ee)=>ai in ei?gr(ei,ai,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):ei[ai]=Ee,Na=(ei,ai)=>{for(var Ee in ai||(ai={}))Xr.call(ai,Ee)&&Ct(ei,Ee,ai[Ee]);if(Yr)for(var Ee of Yr(ai))qi.call(ai,Ee)&&Ct(ei,Ee,ai[Ee]);return ei},mr=(ei,ai)=>pr(ei,ps(ai)),Ra=(ei,ai)=>{var Ee={};for(var pe in ei)Xr.call(ei,pe)&&ai.indexOf(pe)<0&&(Ee[pe]=ei[pe]);if(ei!=null&&Yr)for(var pe of Yr(ei))ai.indexOf(pe)<0&&qi.call(ei,pe)&&(Ee[pe]=ei[pe]);return Ee};const{Countdown:za}=jr.default;var Xa=ei=>{var ai=ei,{onChange:Ee}=ai,pe=Ra(ai,["onChange"]);const[ve,Wn]=(0,St.useState)(null);(0,St.useEffect)(()=>{typeof ve=="number"&&ve>=0&&Ee(ve)},[ve]);const On=Kn=>{const Ge=Math.floor(Kn/1e3);Wn(Ge)};return St.createElement(za,mr(Na({},pe),{onChange:On}))}},58856:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{Z:function(){return Ut}});var St=Ft(59301);function Ut(Me,_e){const fe=(0,St.useRef)();(0,St.useEffect)(()=>{fe.current=Me}),(0,St.useEffect)(()=>{function je(){fe.current()}if(_e!==null){let ie=setInterval(je,_e);return()=>clearInterval(ie)}},[_e])}},27639:function(tn,Fn,Ft){"use strict";var St=Ft(59301),Ut=Ft(43418),Me=Ft(8591),_e=Ft(99064),fe=Ft(89070),je=Object.defineProperty,ie=Object.defineProperties,Ne=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,Ie=(dt,lt,pt)=>lt in dt?je(dt,lt,{enumerable:!0,configurable:!0,writable:!0,value:pt}):dt[lt]=pt,Ue=(dt,lt)=>{for(var pt in lt||(lt={}))Le.call(lt,pt)&&Ie(dt,pt,lt[pt]);if(we)for(var pt of we(lt))Pe.call(lt,pt)&&Ie(dt,pt,lt[pt]);return dt},Tt=(dt,lt)=>ie(dt,Ne(lt)),et=(dt,lt,pt)=>new Promise((vt,Lt)=>{var At=$t=>{try{Kt(pt.next($t))}catch(ne){Lt(ne)}},kt=$t=>{try{Kt(pt.throw($t))}catch(ne){Lt(ne)}},Kt=$t=>$t.done?vt($t.value):Promise.resolve($t.value).then(At,kt);Kt((pt=pt.apply(dt,lt)).next())});const nt=({classroomList:dt,dispatch:lt,cb:pt})=>{const vt=(0,fe.useParams)();vt.id=vt.coursesId;const{detailBoardList:Lt}=dt;return St.createElement(Ut.default,{centered:!0,title:"\u63D0\u793A",open:dt.actionTabs.key==="\u5220\u9664",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>et(void 0,null,function*(){var At,kt,Kt;if((yield(0,_e.ZP)(`/api/boards/${vt.categoryId}/messages/bulk_delete.json`,{method:"delete",body:{ids:[...dt.actionTabs.selectArrs]}})).status===0){Me.ZP.success("\u5220\u9664\u6210\u529F");const ne=dt.actionTabs.selectArrs.length===Lt.messages.length&&((At=dt.actionTabs.params)==null?void 0:At.page)>1?((kt=dt.actionTabs.params)==null?void 0:kt.page)-1:(Kt=dt.actionTabs.params)==null?void 0:Kt.page;pt(ne),lt({type:"classroomList/setActionTabs",payload:{}}),lt({type:"classroomList/getBoardList",payload:Tt(Ue({},dt.actionTabs.params),{page:ne})}),lt({type:"classroomList/getClassroomLeftMenus",payload:{id:vt.coursesId}})}}),onCancel:()=>{lt({type:"classroomList/setActionTabs",payload:{}})}},St.createElement("p",null,"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F"))};Fn.Z=(0,fe.connect)(({classroomList:dt})=>({classroomList:dt}))(nt)},16368:function(tn,Fn,Ft){"use strict";var St=Ft(59301),Ut=Ft(78241),Me=Ft(43418),_e=Ft(8591),fe=Ft(92832),je=Ft(24905),ie=Ft(71418),Ne=Ft(99064),we=Ft(26724),Le=Ft.n(we),Pe=Ft(89070),Ie=Object.defineProperty,Ue=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,nt=(vt,Lt,At)=>Lt in vt?Ie(vt,Lt,{enumerable:!0,configurable:!0,writable:!0,value:At}):vt[Lt]=At,dt=(vt,Lt)=>{for(var At in Lt||(Lt={}))Tt.call(Lt,At)&&nt(vt,At,Lt[At]);if(Ue)for(var At of Ue(Lt))et.call(Lt,At)&&nt(vt,At,Lt[At]);return vt},lt=(vt,Lt,At)=>new Promise((kt,Kt)=>{var $t=ue=>{try{qt(At.next(ue))}catch(ae){Kt(ae)}},ne=ue=>{try{qt(At.throw(ue))}catch(ae){Kt(ae)}},qt=ue=>ue.done?kt(ue.value):Promise.resolve(ue.value).then($t,ne);qt((At=At.apply(vt,Lt)).next())});const pt=({classroomList:vt,loading:Lt,dispatch:At})=>{const kt=dt({},(0,Pe.useParams)());let[Kt,$t]=(0,St.useState)([]);const[ne,qt]=(0,St.useState)(!0),[ue,ae]=(0,St.useState)(1),[Fe,xe]=(0,St.useState)(!0);kt.page=0,kt.page_size=50,(0,St.useEffect)(()=>{vt.actionTabs.key==="\u53D1\u9001"&&En(1)},[vt.actionTabs.key]);const[Re]=Ut.default.useForm(),En=fn=>lt(void 0,null,function*(){fn==1&&(Kt=[]),kt.page=fn,xe(!0);const bn=yield At({type:"classroomList/getCoursesMine",payload:dt({},kt)});bn.lengthlt(void 0,null,function*(){const fn=Re.getFieldValue();(yield(0,Ne.ZP)(`/api/boards/${kt.categoryId}/messages/bulk_send.json`,{method:"post",body:{ids:[...vt.actionTabs.selectArrs],to_course_ids:[...fn.group_ids]}})).status===0&&(_e.ZP.success("\u53D1\u5E03\u6210\u529F"),At({type:"classroomList/setActionTabs",payload:{}}))}),onCancel:()=>{At({type:"classroomList/setActionTabs",payload:{}})}},St.createElement("p",{className:"tc bold mb20"},"\u9009\u62E9\u7684\u5E16\u5B50\u53D1\u9001\u5230",St.createElement("span",{className:"c-orange"},"\u6307\u5B9A\u8BFE\u5802")),St.createElement(fe.default.Search,{placeholder:"\u8BF7\u8F93\u5165\u8BFE\u5802\u540D\u79F0\u8FDB\u884C\u641C\u7D22",allowClear:!0,onSearch:fn=>{$t([]),kt.search=fn,En(1)}}),St.createElement("div",{className:"bg-skyblue",style:{height:260,overflow:"auto",padding:20}},St.createElement(Le(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:fn=>{En(fn)},hasMore:!Fe&&ne,useWindow:!1},St.createElement(Ut.default,{form:Re,initialValues:{}},St.createElement(Ut.default.Item,{name:"group_ids"},St.createElement(je.default.Group,null,Kt==null?void 0:Kt.map(function(fn,bn){return St.createElement("div",{key:bn},St.createElement(je.default,{style:{width:520},value:fn.id,className:"multi-ellipsis1 multi-ellipsis1-checkbox"},fn.name))}))),St.createElement(ie.Z,{className:"edu-ant-spin",spinning:Fe})))))};Fn.Z=(0,Pe.connect)(({classroomList:vt,loading:Lt})=>({classroomList:vt,loading:Lt}))(pt)},84314:function(tn,Fn,Ft){"use strict";Ft.r(Fn),Ft.d(Fn,{default:function(){return Qn}});var St=Ft(89070),Ut=Ft(59301),Me=Ft(3294),_e=Ft(61186),fe=Ft.n(_e),je=Ft(20834),ie=Ft(24905),Ne=Ft(3113),we=Ft(8591),Le=Ft(6848),Pe=Ft(71418),Ie=Ft(95237),Ue=Ft(43604),Tt=Ft(58421),et=Ft(81228),nt=Ft(38854),dt=Ft(1710),lt=Ft(78673),pt=Ft(99064),vt=Ft(87395),Lt=Ft(84105),At=Ft(24065),kt=Ft(8797),Kt=Ft(43418),$t=Object.defineProperty,ne=Object.getOwnPropertySymbols,qt=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,ae=(We,be,Be)=>be in We?$t(We,be,{enumerable:!0,configurable:!0,writable:!0,value:Be}):We[be]=Be,Fe=(We,be)=>{for(var Be in be||(be={}))qt.call(be,Be)&&ae(We,Be,be[Be]);if(ne)for(var Be of ne(be))ue.call(be,Be)&&ae(We,Be,be[Be]);return We},xe=(We,be,Be)=>new Promise((ir,Fo)=>{var ri=yi=>{try{Bo(Be.next(yi))}catch(eo){Fo(eo)}},Ur=yi=>{try{Bo(Be.throw(yi))}catch(eo){Fo(eo)}},Bo=yi=>yi.done?ir(yi.value):Promise.resolve(yi.value).then(ri,Ur);Bo((Be=Be.apply(We,be)).next())});const Re=({classroomList:We,dispatch:be,cb:Be})=>{const ir=(0,St.useParams)();return ir.id=ir.coursesId,Ut.createElement(Kt.default,{centered:!0,title:"\u63D0\u793A",open:We.actionTabs.key==="\u8BBE\u4E3A\u516C\u5F00",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>xe(void 0,null,function*(){(yield(0,pt.ZP)(`/api/boards/${ir.categoryId}/messages/bulk_public.json`,{method:"put",body:{ids:[...We.actionTabs.selectArrs]}})).status===0&&(we.ZP.success("\u64CD\u4F5C\u6210\u529F"),Be(),be({type:"classroomList/setActionTabs",payload:{}}),be({type:"classroomList/getBoardList",payload:Fe({},We.actionTabs.params)}))}),onCancel:()=>{be({type:"classroomList/setActionTabs",payload:{}})}},Ut.createElement("p",null,"\u662F\u5426\u786E\u8BA4\u8BBE\u4E3A\u516C\u5F00\uFF1F"))};var En=(0,St.connect)(({classroomList:We})=>({classroomList:We}))(Re),fn=Ft(27639),bn=Ft(16368),cn={flex_box_center:"flex_box_center___hePrT",flex_space_between:"flex_space_between___ORkbo",flex_box_vertical_center:"flex_box_vertical_center___cCpIF",flex_box_center_end:"flex_box_center_end___c_jTW",flex_box_column:"flex_box_column___wD0ra",bg:"bg___XwUKY",containerTitle:"containerTitle___ImnKq",containerDesc:"containerDesc___yUKqL",listItem:"listItem___SUzaY",title:"title___hjA_e",titleLeft:"titleLeft___GGFEY",titleRight:"titleRight___aNGKY",flexBox:"flexBox___IQB_j",acitons:"acitons___VXZ66",categoryName:"categoryName___gefjO",moveCategory:"moveCategory___OFSGW",copyTag:"copyTag___dGmyT"},he=Ft(62202),Qt=Ft(89614),Ae=Ft(73674),Gn=Ft(26724),An=Ft.n(Gn),Se=Ft(955),sn=Object.defineProperty,wn=Object.getOwnPropertySymbols,Xn=Object.prototype.hasOwnProperty,Hn=Object.prototype.propertyIsEnumerable,ii=(We,be,Be)=>be in We?sn(We,be,{enumerable:!0,configurable:!0,writable:!0,value:Be}):We[be]=Be,re=(We,be)=>{for(var Be in be||(be={}))Xn.call(be,Be)&&ii(We,Be,be[Be]);if(wn)for(var Be of wn(be))Hn.call(be,Be)&&ii(We,Be,be[Be]);return We};const Dn=We=>React.createElement("svg",re({width:17,height:10,xmlns:"http://www.w3.org/2000/svg"},We),React.createElement("title",null,"new"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"100%",y1:"67.301%",x2:"0%",y2:"32.699%",id:"new_svg__a"},React.createElement("stop",{stopColor:"#009EFF",offset:"0%"}),React.createElement("stop",{stopColor:"#49DF9B",offset:"100%"}))),React.createElement("path",{d:"M1082.618 352h-14.236c-.781 0-1.382.629-1.382 1.447v7.106c0 .818.6 1.447 1.382 1.447h14.236c.781 0 1.382-.629 1.382-1.447v-7.106c0-.818-.6-1.447-1.382-1.447Zm-10.692 7.358h-.961l-1.863-3.836v3.836h-.6v-4.59h.84l1.923 3.962h.06v-3.963h.6v4.591Zm1.502-2.641h2.342v.629h-2.342v.126c0 .817.24 1.195.72 1.195h1.682v.629h-1.682c-.36 0-.66-.126-.9-.44-.24-.315-.361-.818-.361-1.384v-1.07c0-1.069.66-1.509 1.321-1.635h1.622v.63h-1.561c-.24.062-.781.25-.781 1.006-.06.125-.06.188-.06.314Zm7.809 2.641h-.841l-.841-3.647-.961 3.647h-.901l-1.262-4.59h.66l1.082 3.773h.06l.961-3.774h.721l.961 3.963 1.142-3.963h.6l-1.381 4.591Z",transform:"translate(-1067 -352)",fill:"url(#new_svg__a)",fillRule:"nonzero"}));var Zn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIxMDAlIiB5MT0iNjcuMzAxJSIgeDI9IjAlIiB5Mj0iMzIuNjk5JSIgaWQ9ImEiPjxzdG9wIHN0b3AtY29sb3I9IiMwMDlFRkYiIG9mZnNldD0iMCUiLz48c3RvcCBzdG9wLWNvbG9yPSIjNDlERjlCIiBvZmZzZXQ9IjEwMCUiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48cGF0aCBkPSJNMTA4Mi42MTggMzUyaC0xNC4yMzZjLS43ODEgMC0xLjM4Mi42MjktMS4zODIgMS40NDd2Ny4xMDZjMCAuODE4LjYgMS40NDcgMS4zODIgMS40NDdoMTQuMjM2Yy43ODEgMCAxLjM4Mi0uNjI5IDEuMzgyLTEuNDQ3di03LjEwNmMwLS44MTgtLjYtMS40NDctMS4zODItMS40NDdabS0xMC42OTIgNy4zNThoLS45NjFsLTEuODYzLTMuODM2djMuODM2aC0uNnYtNC41OWguODRsMS45MjMgMy45NjJoLjA2di0zLjk2M2guNnY0LjU5MVptMS41MDItMi42NDFoMi4zNDJ2LjYyOWgtMi4zNDJ2LjEyNmMwIC44MTcuMjQgMS4xOTUuNzIgMS4xOTVoMS42ODJ2LjYyOWgtMS42ODJjLS4zNiAwLS42Ni0uMTI2LS45LS40NC0uMjQtLjMxNS0uMzYxLS44MTgtLjM2MS0xLjM4NHYtMS4wN2MwLTEuMDY5LjY2LTEuNTA5IDEuMzIxLTEuNjM1aDEuNjIydi42M2gtMS41NjFjLS4yNC4wNjItLjc4MS4yNS0uNzgxIDEuMDA2LS4wNi4xMjUtLjA2LjE4OC0uMDYuMzE0Wm03LjgwOSAyLjY0MWgtLjg0MWwtLjg0MS0zLjY0Ny0uOTYxIDMuNjQ3aC0uOTAxbC0xLjI2Mi00LjU5aC42NmwxLjA4MiAzLjc3M2guMDZsLjk2MS0zLjc3NGguNzIxbC45NjEgMy45NjMgMS4xNDItMy45NjNoLjZsLTEuMzgxIDQuNTkxWiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTEwNjcgLTM1MikiIGZpbGw9InVybCgjYSkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",qn=Ft(97177),ni={collect:"collect___uk5xF",head:"head___op8aW",btn:"btn___rzfic"},Hi=Ft(85057),Jo=Ft(57809),pn=Ft(92832),Pn=Ft(54580),ti=Ft(78241),gn=Ft(12290),Bn=Ft(59301),zn=Object.defineProperty,jt=Object.getOwnPropertySymbols,Mt=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,Bt=(We,be,Be)=>be in We?zn(We,be,{enumerable:!0,configurable:!0,writable:!0,value:Be}):We[be]=Be,Zt=(We,be)=>{for(var Be in be||(be={}))Mt.call(be,Be)&&Bt(We,Be,be[Be]);if(jt)for(var Be of jt(be))xt.call(be,Be)&&Bt(We,Be,be[Be]);return We},Nt=(We,be,Be)=>new Promise((ir,Fo)=>{var ri=yi=>{try{Bo(Be.next(yi))}catch(eo){Fo(eo)}},Ur=yi=>{try{Bo(Be.throw(yi))}catch(eo){Fo(eo)}},Bo=yi=>yi.done?ir(yi.value):Promise.resolve(yi.value).then(ri,Ur);Bo((Be=Be.apply(We,be)).next())}),Sn=({onOk:We,onCancel:be,visible:Be,modalParams:ir,forceIn:Fo})=>{const[ri]=ti.default.useForm(),[Ur,Bo]=(0,Ut.useState)(!1),yi=Fo?!1:typeof Be=="number";(0,Ut.useEffect)(()=>{Be?ri.setFieldsValue(Zt({},ir)):ri.resetFields()},[Be]);const eo=no=>Nt(void 0,null,function*(){Bo(!0),yield We(no),Bo(!1)});return Bn.createElement(Kt.default,{centered:!0,destroyOnClose:!0,onCancel:()=>be(),onOk:()=>ri.submit(),open:!!Be,confirmLoading:Ur,title:yi?"\u7F16\u8F91\u95EE\u7B54":"\u65B0\u589E\u95EE\u7B54",width:900,okText:yi?"\u786E\u5B9A":"\u52A0\u5165\u95EE\u9898\u96C6"},Bn.createElement(ti.default,{form:ri,size:"large",onFinish:eo},Bn.createElement(ti.default.Item,{name:"title",label:"\u95EE\u9898",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u60A8\u7684\u95EE\u9898"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u60A8\u7684\u95EE\u9898"}]},Bn.createElement(pn.default.TextArea,{style:{height:200},placeholder:"\u8BF7\u8F93\u5165\u60A8\u7684\u95EE\u9898"})),Bn.createElement(ti.default.Item,{className:"mb0",name:"content",label:"\u56DE\u7B54",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u60A8\u7684\u56DE\u7B54"}]},Bn.createElement(gn.Z,{height:220,className:"mb0",placeholder:"\u8BF7\u8F93\u5165\u60A8\u7684\u56DE\u7B54",watch:!0,defaultValue:ir==null?void 0:ir.content})),Bn.createElement(ti.default.Item,{className:"mb0",valuePropName:"checked",initialValue:!1,name:"is_top"},Bn.createElement(ie.default,{style:{marginLeft:53,marginTop:24}},"\u8BBE\u4E3A\u70ED\u95E8\u95EE\u9898"))))},xn=Ft(59301),yn=Object.defineProperty,Rn=Object.getOwnPropertySymbols,ji=Object.prototype.hasOwnProperty,Qi=Object.prototype.propertyIsEnumerable,Ti=(We,be,Be)=>be in We?yn(We,be,{enumerable:!0,configurable:!0,writable:!0,value:Be}):We[be]=Be,vo=(We,be)=>{for(var Be in be||(be={}))ji.call(be,Be)&&Ti(We,Be,be[Be]);if(Rn)for(var Be of Rn(be))Qi.call(be,Be)&&Ti(We,Be,be[Be]);return We},Ri=(We,be,Be)=>new Promise((ir,Fo)=>{var ri=yi=>{try{Bo(Be.next(yi))}catch(eo){Fo(eo)}},Ur=yi=>{try{Bo(Be.throw(yi))}catch(eo){Fo(eo)}},Bo=yi=>yi.done?ir(yi.value):Promise.resolve(yi.value).then(ri,Ur);Bo((Be=Be.apply(We,be)).next())}),As=({visible:We,onCancel:be})=>{const[Be,ir]=(0,Ut.useState)(!1),[Fo,ri]=(0,Ut.useState)(0),[Ur,Bo]=(0,Ut.useState)([]),[yi,eo]=(0,Ut.useState)({page:1,limit:10});(0,Ut.useEffect)(()=>{We&&no(yi)},[We]);const no=Mo=>Ri(void 0,null,function*(){var qe,Li;ir(!0);const Wi=yield(0,pt.ZP)(`/api/course_qna_sets/${We}/hit_history.json`,{method:"get",params:Mo});Wi.status===0&&(Bo(((qe=Wi==null?void 0:Wi.data)==null?void 0:qe.list)||[]),ri((Li=Wi==null?void 0:Wi.data)==null?void 0:Li.size)),ir(!1)}),ga=[{title:"\u7528\u6237\u63D0\u95EE",dataIndex:"question",ellipsis:!0,render:Mo=>xn.createElement(Le.Z,{placement:"topLeft",title:Mo},xn.createElement("span",{className:"c-black"},Mo||"--"))},{title:"\u56DE\u7B54",dataIndex:"answer",ellipsis:!0,render:Mo=>xn.createElement(Le.Z,{placement:"topLeft",title:Mo},xn.createElement("span",{className:"c-black"},Mo||"--"))},{title:"\u7528\u6237",dataIndex:"user_name",ellipsis:!0,render:Mo=>xn.createElement(Le.Z,{placement:"topLeft",title:Mo},xn.createElement("span",{className:"c-black"},Mo||"--"))},{title:"\u65F6\u95F4",dataIndex:"created_at",ellipsis:!0,render:Mo=>xn.createElement("span",{className:"c-black"},fe()(Mo).format("YYYY-MM-DD HH:mm"))}],$r=(Mo,qe)=>{yi.page=Mo,yi.limit=qe,eo(vo({},yi)),no(yi)};return xn.createElement(Kt.default,{title:"\u547D\u4E2D\u5386\u53F2",open:!!We,centered:!0,width:1e3,footer:null,onCancel:be},xn.createElement(dt.default,{columns:ga,className:"mt20",dataSource:Ur,loading:Be,rowKey:"id",scroll:(Ur==null?void 0:Ur.length)>7?{y:300}:{},pagination:{current:yi.page,hideOnSinglePage:!Fo,showQuickJumper:!0,showSizeChanger:!0,pageSize:yi.limit,pageSizeOptions:["10","20","50","100","200"],total:Fo,size:"default",showTotal:Se.rU,onChange:$r}}))},Or=Object.defineProperty,jr=Object.getOwnPropertySymbols,gr=Object.prototype.hasOwnProperty,pr=Object.prototype.propertyIsEnumerable,ps=(We,be,Be)=>be in We?Or(We,be,{enumerable:!0,configurable:!0,writable:!0,value:Be}):We[be]=Be,Yr=(We,be)=>{for(var Be in be||(be={}))gr.call(be,Be)&&ps(We,Be,be[Be]);if(jr)for(var Be of jr(be))pr.call(be,Be)&&ps(We,Be,be[Be]);return We};const Xr=We=>React.createElement("svg",Yr({width:17,height:21,xmlns:"http://www.w3.org/2000/svg"},We),React.createElement("title",null,"\u{1F525}"),React.createElement("text",{transform:"translate(-22 -23)",fill:"#232B40",fillRule:"evenodd",fontFamily:"AppleColorEmoji, Apple Color Emoji",fontSize:18},React.createElement("tspan",{x:20,y:41},"\u{1F525}")));var qi="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHRleHQgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIyIC0yMykiIGZpbGw9IiMyMzJCNDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZm9udC1mYW1pbHk9IkFwcGxlQ29sb3JFbW9qaSwgQXBwbGUgQ29sb3IgRW1vamkiIGZvbnQtc2l6ZT0iMTgiPgogICAgICAgICAgICAgICAgICAgICAgICA8dHNwYW4geD0iMjAiIHk9IjQxIj7wn5SlPC90c3Bhbj4KICAgICAgICAgICAgICAgICAgICA8L3RleHQ+PC9zdmc+",Ct=Ft(59301),Na=Object.defineProperty,mr=Object.defineProperties,Ra=Object.getOwnPropertyDescriptors,za=Object.getOwnPropertySymbols,da=Object.prototype.hasOwnProperty,Xa=Object.prototype.propertyIsEnumerable,ei=(We,be,Be)=>be in We?Na(We,be,{enumerable:!0,configurable:!0,writable:!0,value:Be}):We[be]=Be,ai=(We,be)=>{for(var Be in be||(be={}))da.call(be,Be)&&ei(We,Be,be[Be]);if(za)for(var Be of za(be))Xa.call(be,Be)&&ei(We,Be,be[Be]);return We},Ee=(We,be)=>mr(We,Ra(be)),pe=(We,be,Be)=>new Promise((ir,Fo)=>{var ri=yi=>{try{Bo(Be.next(yi))}catch(eo){Fo(eo)}},Ur=yi=>{try{Bo(Be.throw(yi))}catch(eo){Fo(eo)}},Bo=yi=>yi.done?ir(yi.value):Promise.resolve(yi.value).then(ri,Ur);Bo((Be=Be.apply(We,be)).next())}),Wn=({})=>{const We=(0,St.useParams)(),[be,Be]=(0,Ut.useState)(!1),[ir,Fo]=(0,Ut.useState)(0),[ri,Ur]=(0,Ut.useState)([]),[Bo,yi]=(0,Ut.useState)(!1),[eo,no]=(0,Ut.useState)({title:"",content:""}),[ga,$r]=(0,Ut.useState)(!1),[Mo,qe]=(0,Ut.useState)(""),[Li,Wi]=(0,Ut.useState)(!1),[ho,_i]=(0,Ut.useState)([]),[Ui,sr]=(0,Ut.useState)(""),Qo=We==null?void 0:We.coursesId,[io,Io]=(0,Ut.useState)({keyword:"",is_top:0,page:1,limit:10,questionable_type:"Course",questionable_id:Qo});(0,Ut.useEffect)(()=>{Lr(io)},[]);const Lr=oo=>pe(void 0,null,function*(){var tr,Dr;Be(!0);const Er=yield(0,pt.ZP)("/api/course_qna_sets.json",{method:"get",params:oo});Er.status===0&&(Ur(((tr=Er==null?void 0:Er.data)==null?void 0:tr.list)||[]),Fo((Dr=Er==null?void 0:Er.data)==null?void 0:Dr.size)),Be(!1)}),so=oo=>{io.keyword=oo,io.page=1,Io(ai({},io)),Lr(io)},ml=oo=>{io.is_top=oo,io.page=1,Io(ai({},io)),Lr(io)},Xl=(oo,tr)=>{io.page=oo,io.limit=tr,Io(ai({},io)),Lr(io)},Vr=oo=>pe(void 0,null,function*(){const tr=Ee(ai({},oo),{questionable_type:"Course",questionable_id:Qo});if(typeof Bo=="number"){const Dr=yield(0,pt.ZP)(`/api/course_qna_sets/${Bo}/update_qna_sets.json`,{method:"post",body:tr});(Dr==null?void 0:Dr.status)===0&&(we.ZP.success("\u7F16\u8F91\u6210\u529F"),Lr(io),yi(!1))}else{const Dr=yield(0,pt.ZP)("/api/course_qna_sets/add_qna_sets.json",{method:"post",body:tr});(Dr==null?void 0:Dr.status)===0&&(we.ZP.success("\u6DFB\u52A0\u6210\u529F"),io.page=1,io.keyword="",Io(ai({},io)),Lr(io),yi(!1))}}),ka=oo=>pe(void 0,null,function*(){Kt.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u5220\u9664\u5417\uFF1F",onOk:()=>pe(void 0,null,function*(){const tr=yield(0,pt.ZP)(`/api/course_qna_sets/${oo==null?void 0:oo.id}/remove_qna_sets.json`,{method:"post",body:{questionable_type:"Course",questionable_id:Qo}});if((tr==null?void 0:tr.status)===0){const Dr=ri.length===1&&io.page>1?io.page-1:io.page;io.page=Dr,Io(ai({},io)),Lr(io),we.ZP.success("\u5220\u9664\u6210\u529F")}})})}),Zr=[{title:"\u5E8F\u53F7",dataIndex:"index",width:100,render:(oo,tr,Dr)=>`${(io.page-1)*io.limit+Dr+1}`},{title:"\u95EE\u9898",dataIndex:"title",ellipsis:!0,render:(oo,tr)=>Ct.createElement(Le.Z,{placement:"topLeft",title:oo},Ct.createElement("span",{className:"c-black"},tr.is_top&&Ct.createElement("img",{width:12,className:"mr5",src:qi,style:{marginTop:"-4px"}}),oo||"--"))},{title:"\u56DE\u7B54",dataIndex:"content",ellipsis:!0,render:oo=>Ct.createElement(Le.Z,{placement:"topLeft",title:oo},Ct.createElement("span",{className:"c-black"},oo||"--"))},{title:"\u547D\u4E2D\u6B21\u6570",width:100,dataIndex:"hit_count",render:(oo,tr)=>Ct.createElement("span",{onClick:()=>{qe(tr.id)},className:"current c-light-primary"},oo)},{title:"\u64CD\u4F5C",width:104,align:"right",dataIndex:"id",ellipsis:!0,render:(oo,tr)=>Ct.createElement("span",null,Ct.createElement("span",{className:"c-light-primary current mr20",onClick:()=>{yi(oo),no({title:tr==null?void 0:tr.title,content:tr==null?void 0:tr.content,is_top:tr==null?void 0:tr.is_top})}},"\u7F16\u8F91"),Ct.createElement("span",{className:"current c-red",onClick:()=>ka(tr)},"\u5220\u9664"))}],_s={onRemove:()=>{_i([])},beforeUpload:oo=>{if((oo==null?void 0:oo.size)>1024*1024*50)return we.ZP.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;if(!(oo.type==="application/vnd.ms-excel"||oo.type==="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"))return we.ZP.info("\u8BF7\u4E0A\u4F20 .xls \u6216 .xlsx \u6587\u4EF6\uFF01"),!1;let Dr=[];return Dr.push(oo),_i([...Dr]),!1},fileList:ho,accept:".xls,.xlsx"},gs=[{value:0,label:"\u5168\u90E8\u95EE\u9898"},{value:1,label:"\u70ED\u95E8\u95EE\u9898"}];return Ct.createElement("div",{className:ni.collect},Ct.createElement("div",{className:ni.head},Ct.createElement("div",{className:ni.btn,onClick:()=>$r(!0)},Ct.createElement("i",{className:"iconfont icon-daoru1 font19 mr5"}),Ct.createElement("span",null,"\u5BFC\u5165")),Ct.createElement("div",{className:ni.btn,onClick:()=>{const oo=`${Me.Z.API_SERVER}/api/course_qna_sets/export.json?questionable_id=${Qo}&questionable_type=Course`;(0,Se.Nd)(null,oo)}},Ct.createElement("i",{className:"iconfont icon-daochu2 font19 mr5"}),Ct.createElement("span",null,"\u5BFC\u51FA")),Ct.createElement(Hi.op,{type:"primary",shape:"default",onClick:()=>{yi(!0),no({title:"",content:""})}},"\u65B0\u589E\u95EE\u7B54")),Ct.createElement(Ie.Z,{align:"middle",justify:"space-between"},Ct.createElement(Jo.default,{value:io.is_top,placeholder:"\u8BF7\u9009\u62E9\u56DE\u7B54\u6765\u6E90",onChange:ml,options:gs,style:{width:160}}),Ct.createElement(pn.default.Search,{style:{width:274},placeholder:"\u8BF7\u8F93\u5165\u95EE\u9898\u3001\u95EE\u7B54",value:Ui,onChange:oo=>sr(oo.target.value),onSearch:so})),Ct.createElement(dt.default,{columns:Zr,className:"mt20",dataSource:ri,loading:be,rowKey:"id",pagination:{current:io.page,hideOnSinglePage:!ir,showQuickJumper:!0,showSizeChanger:!0,pageSize:io.limit,pageSizeOptions:["10","20","50","100","200"],total:ir,size:"default",showTotal:Se.rU,onChange:Xl}}),Ct.createElement(Kt.default,{title:"\u5BFC\u5165\u95EE\u7B54",open:ga,centered:!0,zIndex:800,confirmLoading:Li,onCancel:()=>{$r(!1),_i([])},onOk:()=>pe(void 0,null,function*(){var oo;const tr=new FormData;if(tr.append("questionable_id",Qo),tr.append("questionable_type","Course"),ho.length>0)tr.append("file",ho[0]);else{we.ZP.warning("\u8BF7\u9009\u62E9\u6587\u4EF6");return}Wi(!0);let Dr=yield(0,pt.ZP)("/api/course_qna_sets/import.json",{method:"post",body:tr},!0);(Dr==null?void 0:Dr.status)===0&&((oo=Dr==null?void 0:Dr.fail)!=null&&oo.length?Kt.default.confirm({icon:null,width:485,title:"\u5BFC\u5165\u5931\u8D25",centered:!0,content:Ct.createElement("span",null,"\u68C0\u6D4B\u5230\u672C\u6B21\u5BFC\u5165\u5B58\u5728\u4E0D\u7B26\u5408\u8981\u6C42\u7684\u6570\u636E\uFF0C\u70B9\u51FB\u4E0B\u8F7D",Ct.createElement("a",{href:`${Me.Z.API_SERVER}/api/course_qna_sets/down_error_import_file.json?course_id=${Qo}`},"\u5BFC\u5165\u5931\u8D25\u7684\u6570\u636E"),"\u67E5\u770B")}):(we.ZP.success("\u5BFC\u5165\u6210\u529F"),io.page=1,io.keyword="",Io(ai({},io)),Lr(io),$r(!1),_i([]))),Wi(!1)})},Ct.createElement("p",{style:{color:"#232B40"}},"\u6B65\u9AA4\u4E00\uFF1A",Ct.createElement("span",{className:"ml15 mr5"},"\u4E0B\u8F7D"),Ct.createElement("a",{href:`${Me.Z.API_SERVER}/api/course_qna_sets/down_template`},"\u5BFC\u5165\u95EE\u7B54\u96C6\u6A21\u677F"),"\uFF0C\u5E76\u586B\u5199\u5BF9\u5E94\u5185\u5BB9"),Ct.createElement("p",{style:{color:"#232B40"}},"\u6B65\u9AA4\u4E8C\uFF1A",Ct.createElement("span",{className:"ml15"},"\u4E0A\u4F20\u586B\u5199\u597D\u7684\u300A\u5BFC\u5165\u95EE\u7B54\u6A21\u677F\u300B")),Ct.createElement("div",{style:{marginLeft:74}},Ct.createElement(Pn.default,ai({},_s),Ct.createElement(Hi.op,{shape:"default",icon:Ct.createElement("i",{className:"iconfont icon-shangchuan3",style:{fontSize:14}})},"\u4E0A\u4F20\u6587\u4EF6")))),Ct.createElement(Sn,{visible:Bo,onCancel:()=>yi(!1),onOk:Vr,modalParams:eo}),Ct.createElement(As,{visible:Mo,onCancel:()=>qe(!1)}))},On={dialogue:"dialogue___AZQe5",liWrap:"liWrap___RA0by",li:"li___oYseT",line:"line___dgHwf",apply:"apply___jYcZw",content:"content___qBZkI",borderBox:"borderBox___LiE89",text:"text___vS7k8",source:"source___elq8M",action:"action____3wiz",teacher:"teacher___MrQ2w",student:"student___OGycs"},Kn=Ft(5083),Ge=Object.defineProperty,Tn=Object.getOwnPropertySymbols,Si=Object.prototype.hasOwnProperty,ui=Object.prototype.propertyIsEnumerable,ao=(We,be,Be)=>be in We?Ge(We,be,{enumerable:!0,configurable:!0,writable:!0,value:Be}):We[be]=Be,oe=(We,be)=>{for(var Be in be||(be={}))Si.call(be,Be)&&ao(We,Be,be[Be]);if(Tn)for(var Be of Tn(be))ui.call(be,Be)&&ao(We,Be,be[Be]);return We};const mn=We=>React.createElement("svg",oe({width:38,height:38,xmlns:"http://www.w3.org/2000/svg"},We),React.createElement("title",null,"1"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"50%",y1:"2.064%",x2:"50%",y2:"100%",id:"a1_svg__a"},React.createElement("stop",{stopColor:"#E1FFFD",offset:"0%"}),React.createElement("stop",{stopColor:"#EBFFFD",offset:"100%"}))),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"url(#a1_svg__a)",width:38,height:38,rx:19}),React.createElement("g",{fillRule:"nonzero"},React.createElement("path",{d:"M21.665 9a2.486 2.486 0 0 1 2.484 2.484v6.21a2.483 2.483 0 0 1-2.484 2.482H14.3l-3.817.004A2.488 2.488 0 0 1 8 17.696v-6.212A2.486 2.486 0 0 1 10.484 9ZM16 11c-.316 0-.571.224-.571.5V14H12.57a.59.59 0 0 0-.494.25.446.446 0 0 0 0 .5.59.59 0 0 0 .494.25h2.858v2.5c0 .276.255.5.571.5.316 0 .571-.224.571-.5V15h2.858c.315 0 .571-.224.571-.5s-.256-.5-.571-.5H16.57v-2.5c0-.276-.255-.5-.571-.5Z",fill:"#3CCAAD"}),React.createElement("path",{d:"M27.88 15.22a2.486 2.486 0 0 1 2.485 2.485v6.212a2.488 2.488 0 0 1-2.484 2.484h-1.243v2.107c0 .31-.352.49-.6.303l-3.216-2.41h-4.88a2.488 2.488 0 0 1-2.484-2.484v-2.485h6.211a3.734 3.734 0 0 0 3.727-3.727v-2.484h2.485Z",fill:"#5CD2BA"}))));var li="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzgiIGhlaWdodD0iMzgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI1MCUiIHkxPSIyLjA2NCUiIHgyPSI1MCUiIHkyPSIxMDAlIiBpZD0iYSI+PHN0b3Agc3RvcC1jb2xvcj0iI0UxRkZGRCIgb2Zmc2V0PSIwJSIvPjxzdG9wIHN0b3AtY29sb3I9IiNFQkZGRkQiIG9mZnNldD0iMTAwJSIvPj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UNEMkJBIi8+PC9nPjwvZz48L3N2Zz4=",to=Object.defineProperty,De=Object.getOwnPropertySymbols,dn=Object.prototype.hasOwnProperty,ro=Object.prototype.propertyIsEnumerable,Uo=(We,be,Be)=>be in We?to(We,be,{enumerable:!0,configurable:!0,writable:!0,value:Be}):We[be]=Be,Vo=(We,be)=>{for(var Be in be||(be={}))dn.call(be,Be)&&Uo(We,Be,be[Be]);if(De)for(var Be of De(be))ro.call(be,Be)&&Uo(We,Be,be[Be]);return We};const Ii=We=>React.createElement("svg",Vo({width:38,height:38,xmlns:"http://www.w3.org/2000/svg"},We),React.createElement("title",null,"2"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"a2_svg__a"},React.createElement("stop",{stopColor:"#EAF1FF",offset:"0%"}),React.createElement("stop",{stopColor:"#EBFAFF",offset:"100%"}))),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"url(#a2_svg__a)",width:38,height:38,rx:19}),React.createElement("g",{fillRule:"nonzero"},React.createElement("path",{fill:"#202425",opacity:.01,d:"M9 9h20v20H9z"}),React.createElement("path",{d:"M25.667 19.667c.736 0 1.344.6 1.23 1.328a8.667 8.667 0 0 1-17.064.362 8.667 8.667 0 0 1 7.172-10.254c.728-.114 1.328.494 1.328 1.23v6c0 .737.597 1.334 1.334 1.334h6Z",fill:"#0276FF"}),React.createElement("path",{d:"M27 18.333c.737 0 1.344-.6 1.23-1.328a8.668 8.668 0 0 0-7.235-7.236c-.728-.113-1.328.495-1.328 1.231v6c0 .736.597 1.333 1.333 1.333h6Z",fill:"#A5C7FF"}))));var Fi="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzgiIGhlaWdodD0iMzgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI1MCUiIHkxPSIwJSIgeDI9IjUwJSIgeTI9IjEwMCUiIGlkPSJhIj48c3RvcCBzdG9wLWNvbG9yPSIjRUFGMUZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0VCRkFGRiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSJ1cmwoI2EpIiB3aWR0aD0iMzgiIGhlaWdodD0iMzgiIHJ4PSIxOSIvPjxnIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZmlsbD0iIzIwMjQyNSIgb3BhY2l0eT0iLjAxIiBkPSJNOSA5aDIwdjIwSDl6Ii8+PHBhdGggZD0iTTI1LjY2NyAxOS42NjdjLjczNiAwIDEuMzQ0LjYgMS4yMyAxLjMyOGE4LjY2NyA4LjY2NyAwIDAgMS0xNy4wNjQuMzYyIDguNjY3IDguNjY3IDAgMCAxIDcuMTcyLTEwLjI1NGMuNzI4LS4xMTQgMS4zMjguNDk0IDEuMzI4IDEuMjN2NmMwIC43MzcuNTk3IDEuMzM0IDEuMzM0IDEuMzM0aDZaIiBmaWxsPSIjMDI3NkZGIi8+PHBhdGggZD0iTTI3IDE4LjMzM2MuNzM3IDAgMS4zNDQtLjYgMS4yMy0xLjMyOGE4LjY2OCA4LjY2OCAwIDAgMC03LjIzNS03LjIzNmMtLjcyOC0uMTEzLTEuMzI4LjQ5NS0xLjMyOCAxLjIzMXY2YzAgLjczNi41OTcgMS4zMzMgMS4zMzMgMS4zMzNoNloiIGZpbGw9IiNBNUM3RkYiLz48L2c+PC9nPjwvc3ZnPg==",Pi=Object.defineProperty,Wo=Object.getOwnPropertySymbols,br=Object.prototype.hasOwnProperty,wr=Object.prototype.propertyIsEnumerable,$e=(We,be,Be)=>be in We?Pi(We,be,{enumerable:!0,configurable:!0,writable:!0,value:Be}):We[be]=Be,vr=(We,be)=>{for(var Be in be||(be={}))br.call(be,Be)&&$e(We,Be,be[Be]);if(Wo)for(var Be of Wo(be))wr.call(be,Be)&&$e(We,Be,be[Be]);return We};const ur=We=>React.createElement("svg",vr({width:38,height:38,xmlns:"http://www.w3.org/2000/svg"},We),React.createElement("title",null,"3"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"a3_svg__a"},React.createElement("stop",{stopColor:"#FAF4FF",offset:"0%"}),React.createElement("stop",{stopColor:"#F4E8FF",offset:"0%"}),React.createElement("stop",{stopColor:"#FDF6FF",offset:"100%"}))),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"url(#a3_svg__a)",width:38,height:38,rx:19}),React.createElement("g",{fillRule:"nonzero"},React.createElement("path",{d:"M22.923 16.787a3.386 3.386 0 0 0 3.784-3.826 3.384 3.384 0 0 0-2.913-2.934 3.393 3.393 0 0 0-3.805 3.827 3.406 3.406 0 0 0 2.934 2.933Z",fill:"#AC99E2"}),React.createElement("path",{d:"M14.25 16.787a3.386 3.386 0 0 0 3.783-3.826 3.406 3.406 0 0 0-2.934-2.934 3.393 3.393 0 0 0-3.805 3.827 3.428 3.428 0 0 0 2.955 2.933ZM14.547 18.51C12.038 18.51 7 19.805 7 22.377v4.21c0 .233.191.425.425.425h14.243a.426.426 0 0 0 .426-.425v-4.21c0-2.572-5.039-3.869-7.547-3.869Z",fill:"#B19FE4"}),React.createElement("path",{d:"M23.114 18.51c-.319 0-.68.02-1.063.063 1.276.914 2.168 2.168 2.168 3.805v4.21c0 .233.192.425.426.425h5.74a.426.426 0 0 0 .425-.425v-4.21c0-2.572-5.124-3.869-7.696-3.869Z",fill:"#AC99E2"}))));var ko="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzgiIGhlaWdodD0iMzgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI1MCUiIHkxPSIwJSIgeDI9IjUwJSIgeTI9IjEwMCUiIGl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xNjggMi4xNjggMi4xNjggMy44MDV2NC4yMWMwIC4yMzMuMTkyLjQyNS40MjYuNDI1aDUuNzRhLjQyNi40MjYgMCAwIDAgLjQyNS0uNDI1di00LjIxYzAtMi41NzItNS4xMjQtMy44NjktNy42OTYtMy44NjlaIiBmaWxsPSIjQUM5OUUyIi8+PC9nPjwvZz48L3N2Zz4=",Ye=Object.defineProperty,Yn=Object.getOwnPropertySymbols,Ci=Object.prototype.hasOwnProperty,Bi=Object.prototype.propertyIsEnumerable,Ai=(We,be,Be)=>be in We?Ye(We,be,{enumerable:!0,configurable:!0,writable:!0,value:Be}):We[be]=Be,wo=(We,be)=>{for(var Be in be||(be={}))Ci.call(be,Be)&&Ai(We,Be,be[Be]);if(Yn)for(var Be of Yn(be))Bi.call(be,Be)&&Ai(We,Be,be[Be]);return We};const nr=We=>React.createElement("svg",wo({width:38,height:38,xmlns:"http://www.w3.org/2000/svg"},We),React.createElement("title",null,"4"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"a4_svg__a"},React.createElement("stop",{stopColor:"#F9E5BB",offset:"0%"}),React.createElement("stop",{stopColor:"#FFF8ED",offset:"100%"}))),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"url(#a4_svg__a)",width:38,height:38,rx:19}),React.createElement("g",{fillRule:"nonzero"},React.createElement("path",{d:"M26.016 20.918V16.47A7.468 7.468 0 0 0 18.548 9a7.468 7.468 0 0 0-7.47 7.47v4.447a1.867 1.867 0 0 0 .801 3.555h13.337a1.867 1.867 0 0 0 .8-3.554Z",fill:"#ED8C50"}),React.createElement("path",{d:"m21.253 25.169-5.413.005c-.48-.005-.493.534-.493.534a3.2 3.2 0 1 0 6.401 0s0-.534-.495-.54Z",fill:"#EF9004"}))));var Ro="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzgiIGhlaWdodD0iMzgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI1MCUiIHkxPSIwJSIgeDI9IjUwJSIgeTI9IjEwMCUiIGlkPSJhIj48c3RvcCBzdG9wLWNvbG9yPSIjRjlFNUJCIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0ZGRjhFRCIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSJ1cmwoI2EpIiB3aWR0aD0iMzgiIGhlaWdodD0iMzgiIHJ4PSIxOSIvPjxnIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZD0iTTI2LjAxNiAyMC45MThWMTYuNDdBNy40NjggNy40NjggMCAwIDAgMTguNTQ4IDlhNy40NjggNy40NjggMCAwIDAtNy40NyA3LjQ3djQuNDQ3YTEuODY3IDEuODY3IDAgMCAwIC44MDEgMy41NTVoMTMuMzM3YTEuODY3IDEuODY3IDAgMCAwIC44LTMuNTU0WiIgZmlsbD0iI0VEOEM1MCIvPjxwYXRoIGQ9Im0yMS4yNTMgMjUuMTY5LTUuNDEzLjAwNWMtLjQ4LS4wMDUtLjQ5My41MzQtLjQ5My41MzRhMy4yIDMuMiAwIDEgMCA2LjQwMSAwczAtLjUzNC0uNDk1LS41NFoiIGZpbGw9IiNFRjkwMDQiLz48L2c+PC9nPjwvc3ZnPg==",Do=Object.defineProperty,hr=Object.getOwnPropertySymbols,on=Object.prototype.hasOwnProperty,Zo=Object.prototype.propertyIsEnumerable,en=(We,be,Be)=>be in We?Do(We,be,{enumerable:!0,configurable:!0,writable:!0,value:Be}):We[be]=Be,Ko=(We,be)=>{for(var Be in be||(be={}))on.call(be,Be)&&en(We,Be,be[Be]);if(hr)for(var Be of hr(be))Zo.call(be,Be)&&en(We,Be,be[Be]);return We};const ia=We=>React.createElement("svg",Ko({width:38,height:38,xmlns:"http://www.w3.org/2000/svg"},We),React.createElement("title",null,"6"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"50%",y1:"99.528%",x2:"50%",y2:"0%",id:"a5_svg__a"},React.createElement("stop",{stopColor:"#FFF5EB",offset:"0%"}),React.createElement("stop",{stopColor:"#FFEADE",offset:"100%"}))),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"url(#a5_svg__a)",width:38,height:38,rx:19}),React.createElement("path",{d:"M13.996 16.286h-2.757a1.51 1.51 0 0 0-1.509 1.509v8.685c0 .834.677 1.508 1.509 1.508h2.756v-11.7l.001-.002Zm14.659.564a1.511 1.511 0 0 0-1.176-.564h-5.176c.16-.338.335-.73.494-1.153.285-.75.47-1.43.544-2.028.108-.84.009-1.538-.298-2.075-.55-.962-1.589-1.163-2.365-1.163-.834 0-1.543.432-2.106 1.283-.421.637-.735 1.46-1.038 2.253-.664 1.743-1.172 2.885-2.14 2.885h-.041.015V27.99h10.226a1.51 1.51 0 0 0 1.475-1.182v-.004l1.882-8.684a1.511 1.511 0 0 0-.296-1.271Z",fill:"#FB901F",fillRule:"nonzero"})));var os="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzgiIGhlaWdodD0iMzgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI1MCUiIHkxPSI5OS41MjglIiB4Mj0iNTAlIiB5Mj0iMCUiIGlkPSJhIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZGNUVCIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0ZGRUFERSIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSJ1cmwoI2EpIiB3aWR0aD0iMzgiIGhlaWdodD0iMzgiIHJ4PSIxOSIvPjxwYXRoIGQ9Ik0xMy45OTYgMTYuMjg2aC0yLjc1N2ExLjUxIDEuNTEgMCAwIDAtMS41MDkgMS41MDl2OC42ODVjMCAuODM0LjY3NyAxLjUwOCAxLjUwOSAxLjUwOGgyLjc1NnYtMTEuN2wuMDAxLS4wMDJabTE0LjY1OS41NjRhMS41MTEgMS41MTEgMCAwIDAtMS4xNzYtLjU2NGgtNS4xNzZjLjE2LS4zMzguMzM1LS43My40OTQtMS4xNTMuMjg1LS43NS40Ny0xLjQzLjU0NC0yLjAyOC4xMDgtLjg0LjAwOS0xLjUzOC0uMjk4LTIuMDc1LS41NS0uOTYyLTEuNTg5LTEuMTYzLTIuMzY1LTEuMTYzLS44MzQgMC0xLjU0My40MzItMi4xMDYgMS4yODMtLjQyMS42MzctLjczNSAxLjQ2LTEuMDM4IDIuMjUzLS42NjQgMS43NDMtMS4xNzIgMi44ODUtMi4xNCAyLjg4NWgtLjA0MS4wMTVWMjcuOTloMTAuMjI2YTEuNTEgMS41MSAwIDAgMCAxLjQ3NS0xLjE4MnYtLjAwNGwxLjg4Mi04LjY4NGExLjUxMSAxLjUxMSAwIDAgMC0uMjk2LTEuMjcxWiIgZmlsbD0iI0ZCOTAxRiIgZmlsbC1ydWxlPSJub256ZXJvIi8+PC9nPjwvc3ZnPg==",Sa=Object.defineProperty,Jr=Object.getOwnPropertySymbols,Ao=Object.prototype.hasOwnProperty,Pr=Object.prototype.propertyIsEnumerable,Ja=(We,be,Be)=>be in We?Sa(We,be,{enumerable:!0,configurable:!0,writable:!0,value:Be}):We[be]=Be,ws=(We,be)=>{for(var Be in be||(be={}))Ao.call(be,Be)&&Ja(We,Be,be[Be]);if(Jr)for(var Be of Jr(be))Pr.call(be,Be)&&Ja(We,Be,be[Be]);return We};const oi=We=>React.createElement("svg",ws({width:38,height:38,xmlns:"http://www.w3.org/2000/svg"},We),React.createElement("title",null,"5"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"a6_svg__a"},React.createElement("stop",{stopColor:"#FFF0ED",offset:"0%"}),React.createElement("stop",{stopColor:"#FFEAED",offset:"100%"}))),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"url(#a6_svg__a)",width:38,height:38,rx:19}),React.createElement("path",{d:"M25.004 22.714h2.757a1.51 1.51 0 0 0 1.509-1.509V12.52c0-.834-.677-1.508-1.509-1.508h-2.756v11.7l-.001.002Zm-14.659-.564c.287.356.72.563 1.176.564h5.176c-.16.338-.335.73-.494 1.153-.285.75-.47 1.43-.544 2.028-.108.84-.009 1.538.298 2.075.55.962 1.589 1.163 2.365 1.163.834 0 1.543-.432 2.106-1.283.421-.637.735-1.46 1.038-2.253.664-1.743 1.172-2.885 2.14-2.885h.041-.015V11.01H13.406a1.51 1.51 0 0 0-1.475 1.182v.004L10.05 20.88c-.1.447.01.914.296 1.271Z",fill:"#F17171",fillRule:"nonzero"})));var Wt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzgiIGhlaWdodD0iMzgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI1MCUiIHkxPSIwJSIgeDI9IjUwJSIgeTI9IjEwMCUiIGlkPSJhIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZGMEVEIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0ZGRUFFRCIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSJ1cmwoI2EpIiB3aWR0aD0iMzgiIGhlaWdodD0iMzgiIHJ4PSIxOSIvPjxwYXRoIGQ9Ik0yNS4wMDQgMjIuNzE0aDIuNzU3YTEuNTEgMS41MSAwIDAgMCAxLjUwOS0xLjUwOVYxMi41MmMwLS44MzQtLjY3Ny0xLjUwOC0xLjUwOS0xLjUwOGgtMi43NTZ2MTEuN2wtLjAwMS4wMDJabS0xNC42NTktLjU2NGMuMjg3LjM1Ni43Mi41NjMgMS4xNzYuNTY0aDUuMTc2Yy0uMTYuMzM4LS4zMzUuNzMtLjQ5NCAxLjE1My0uMjg1Ljc1LS40NyAxLjQzLS41NDQgMi4wMjgtLjEwOC44NC0uMDA5IDEuNTM4LjI5OCAyLjA3NS41NS45NjIgMS41ODkgMS4xNjMgMi4zNjUgMS4xNjMuODM0IDAgMS41NDMtLjQzMiAyLjEwNi0xLjI4My40MjEtLjYzNy43MzUtMS40NiAxLjAzOC0yLjI1My42NjQtMS43NDMgMS4xNzItMi44ODUgMi4xNC0yLjg4NWguMDQxLS4wMTVWMTEuMDFIMTMuNDA2YTEuNTEgMS41MSAwIDAgMC0xLjQ3NSAxLjE4MnYuMDA0TDEwLjA1IDIwLjg4Yy0uMS40NDcuMDEuOTE0LjI5NiAxLjI3MVoiIGZpbGw9IiNGMTcxNzEiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvZz48L3N2Zz4=",Js=Object.defineProperty,ca=Object.getOwnPropertySymbols,Mu=Object.prototype.hasOwnProperty,_a=Object.prototype.propertyIsEnumerable,Vl=(We,be,Be)=>be in We?Js(We,be,{enumerable:!0,configurable:!0,writable:!0,value:Be}):We[be]=Be,$u=(We,be)=>{for(var Be in be||(be={}))Mu.call(be,Be)&&Vl(We,Be,be[Be]);if(ca)for(var Be of ca(be))_a.call(be,Be)&&Vl(We,Be,be[Be]);return We};const ad=We=>React.createElement("svg",$u({width:38,height:38,xmlns:"http://www.w3.org/2000/svg"},We),React.createElement("title",null,"7"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"50%",y1:"2.064%",x2:"50%",y2:"100%",id:"a7_svg__a"},React.createElement("stop",{stopColor:"#DCFFD7",offset:"0%"}),React.createElement("stop",{stopColor:"#EBFFEA",offset:"100%"}))),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"url(#a7_svg__a)",width:38,height:38,rx:19}),React.createElement("path",{d:"M19.012 9.03a9.883 9.883 0 0 1 4.814 1.245l-1.922 1.921.064.642.089.896-.848.847a4.878 4.878 0 0 0-2.197-.522 4.931 4.931 0 0 0-4.925 4.926 4.931 4.931 0 0 0 4.925 4.926 4.931 4.931 0 0 0 4.926-4.926c0-.41-.056-.808-.152-1.191l.485-.488.68-.68.895.088.643.064.456-.456 1.218-1.213a9.857 9.857 0 0 1 .807 3.879c0 5.498-4.459 9.957-9.958 9.957-5.498 0-9.957-4.459-9.957-9.957 0-5.5 4.459-9.958 9.957-9.958Zm7.324 0 .234 2.532 2.4.25-2.994 3.16-1.529-.159-2.594 2.74c.148.377.233.788.233 1.221 0 1.764-1.359 3.2-3.029 3.2s-3.032-1.436-3.032-3.2c0-1.764 1.358-3.198 3.03-3.198.764 0 1.455.314 1.99.809l1.32-1.392 1.126-1.191h.001l-.147-1.614 2.991-3.158Z",fill:"#00D497",fillRule:"nonzero"})));var Ih="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzgiIGhlaWdodD0iMzgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI1MCUiIHkxPSIyLjA2NCUiIHgyPSI1MCUiIHkyPSIxMDAlIiBpZD0iYSI+PHN0b3Agc3RvcC1jb2xvcj0iI0RDRkZENyIgb2Zmc2V0PSIwJSIvPjxzdG9wIHN0b3AtY29sb3I9IiNFQkZGRUEiIG9mZnNldD0iMTAwJSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PHJlY3QgZmlsbD0idXJsKCNhKSIgd2lkdGg9IjM4IiBoZWlnaHQ9IjM4IiByeD0iMTkiLz48cGF0aCBkPSJNMTkuMDEyIDkuMDNhOS44ODMgOS44ODMgMCAwIDEgNC44MTQgMS4yNDVsLTEuOTIyIDEuOTIxLjA2NC42NDIuMDg5Ljg5Ni0uODQ4Ljg0N2E0Ljg3OCA0Ljg3OCAwIDAgMC0yLjE5Ny0uNTIyIDQuOTMxIDQuOTMxIDAgMCAwLTQuOTI1IDQuOTI2IDQuOTMxIDQuOTMxIDAgMCAwIDQuOTI1IDQuOTI2IDQuOTMxIDQuOTMxIDAgMCAwIDQuOTI2LTQuOTI2YzAtLjQxLS4wNTYtLjgwOC0uMTUyLTEuMTkxbC40ODUtLjQ4OC42OC0uNjguODk1LjA4OC42NDMuMDY0LjQ1Ni0uNDU2IDEuMjE4LTEuMjEzYTkuODU3IDkuODU3IDAgMCAxIC44MDcgMy44NzljMCA1LjQ5OC00LjQ1OSA5Ljk1Ny05Ljk1OCA5Ljk1Ny01LjQ5OCAwLTkuOTU3LTQuNDU5LTkuOTU3LTkuOTU3IDAtNS41IDQuNDU5LTkuOTU4IDkuOTU3LTkuOTU4Wm03LjMyNCAwIC4yMzQgMi41MzIgMi40LjI1LTIuOTk0IDMuMTYtMS41MjktLjE1OS0yLjU5NCAyLjc0Yy4xNDguMzc3LjIzMy43ODguMjMzIDEuMjIxIDAgMS43NjQtMS4zNTkgMy4yLTMuMDI5IDMuMnMtMy4wMzItMS40MzYtMy4wMzItMy4yYzAtMS43NjQgMS4zNTgtMy4xOTggMy4wMy0zLjE5OC43NjQgMCAxLjQ1NS4zMTQgMS45OS44MDlsMS4zMi0xLjM5MiAxLjEyNi0xLjE5MWguMDAxbC0uMTQ3LTEuNjE0IDIuOTkxLTMuMTU4WiIgZmlsbD0iIzAwRDQ5NyIgZmlsbC1ydWxlPSJub256ZXJvIi8+PC9nPjwvc3ZnPg==",Tr=Object.defineProperty,_r=Object.getOwnPropertySymbols,gl=Object.prototype.hasOwnProperty,Ki=Object.prototype.propertyIsEnumerable,Mi=(We,be,Be)=>be in We?Tr(We,be,{enumerable:!0,configurable:!0,writable:!0,value:Be}):We[be]=Be,un=(We,be)=>{for(var Be in be||(be={}))gl.call(be,Be)&&Mi(We,Be,be[Be]);if(_r)for(var Be of _r(be))Ki.call(be,Be)&&Mi(We,Be,be[Be]);return We};const zi=We=>React.createElement("svg",un({width:38,height:38,xmlns:"http://www.w3.org/2000/svg"},We),React.createElement("title",null,"8"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"a8_svg__a"},React.createElement("stop",{stopColor:"#FFF0ED",offset:"0%"}),React.createElement("stop",{stopColor:"#FFEAED",offset:"100%"}))),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"url(#a8_svg__a)",width:38,height:38,rx:19}),React.createElement("g",{fill:"#C67070",fillRule:"nonzero"},React.createElement("path",{d:"M16.586 16.425c0 1.191.98 2.172 2.172 2.172 1.191 0 2.172-.98 2.172-2.172 0-1.19-.981-2.172-2.172-2.172-1.191 0-2.172.981-2.172 2.172Z"}),React.createElement("path",{d:"M18.758 8.018C15.885 9.979 12.943 10.96 10 10.96v6.866c0 3.924 1.962 7.497 5.185 9.67l3.573 2.381 3.573-2.382c3.223-2.172 5.185-5.815 5.185-9.669V10.96c-2.943 0-5.815-.98-8.758-2.942Zm.7 11.98V21.4h2.173v1.471h-2.172v2.312h-1.402v-5.185c-1.681-.35-2.942-1.821-2.942-3.573a3.618 3.618 0 0 1 3.643-3.643 3.618 3.618 0 0 1 3.643 3.643c0 1.752-1.26 3.223-2.942 3.573Z"}))));var No="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzgiIGhlaWdodD0iMzgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI1MCUiIHkxPSIwJSIgeDI9IjUwJSIgeTI9IjEwMCUiIGlkPSJhIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZGMEVEIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0ZGRUFFRCIgb2Zmc2V0P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We,be,Be)=>be in We?cs(We,be,{enumerable:!0,configurable:!0,writable:!0,value:Be}):We[be]=Be,oa=(We,be)=>{for(var Be in be||(be={}))Ea.call(be,Be)&&ke(We,Be,be[Be]);if(fl)for(var Be of fl(be))uu.call(be,Be)&&ke(We,Be,be[Be]);return We},pl=(We,be,Be)=>new Promise((ir,Fo)=>{var ri=yi=>{try{Bo(Be.next(yi))}catch(eo){Fo(eo)}},Ur=yi=>{try{Bo(Be.throw(yi))}catch(eo){Fo(eo)}},Bo=yi=>yi.done?ir(yi.value):Promise.resolve(yi.value).then(ri,Ur);Bo((Be=Be.apply(We,be)).next())});const{RangePicker:Tl}=Kn.default;var ss=({})=>{const We=(0,St.useParams)(),[be,Be]=(0,Ut.useState)(!1),[ir,Fo]=(0,Ut.useState)(0),[ri,Ur]=(0,Ut.useState)([]),[Bo,yi]=(0,Ut.useState)(!1),[eo,no]=(0,Ut.useState)(!1),[ga,$r]=(0,Ut.useState)(!1),[Mo,qe]=(0,Ut.useState)(""),[Li,Wi]=(0,Ut.useState)(!1),[ho,_i]=(0,Ut.useState)(null),Ui=(0,Ut.useRef)(void 0),[sr,Qo]=(0,Ut.useState)(""),io=We==null?void 0:We.coursesId,[Io,Lr]=(0,Ut.useState)({sessions_count:"--",message_count:"--",hit_count:"--",like_count:"--",dislike_count:"--",total_tokens:"--",total_user_count:"--",today_session_count:"--"}),[so,ml]=(0,Ut.useState)({time:void 0,start_date:"",end_date:"",keyword:"",status:0,page:1,limit:10,questionable_id:io,questionable_type:"Course"});(0,Ut.useEffect)(()=>{Xl(),Vr(so)},[]);const Xl=()=>pl(void 0,null,function*(){const _t=yield(0,pt.ZP)("/api/course_qna_sessions/statistics.json",{method:"get",params:{questionable_id:io,questionable_type:"Course"}});_t.status===0&&Lr((_t==null?void 0:_t.data)||{})}),Vr=_t=>pl(void 0,null,function*(){var He,Ps;Be(!0);const Aa=yield(0,pt.ZP)("/api/course_qna_sessions.json",{method:"get",params:_t});Aa.status===0&&(Ur(((He=Aa==null?void 0:Aa.data)==null?void 0:He.list)||[]),Fo((Ps=Aa==null?void 0:Aa.data)==null?void 0:Ps.size)),Be(!1)}),ka=_t=>{so.keyword=_t,so.page=1,ml(oa({},so)),Vr(so)},Zr=(_t,He)=>{so.status=_t,so.page=1,ml(oa({},so)),Vr(so)},_s=(_t,He)=>{so.start_date=He[0],so.end_date=He[1],so.page=1,ml(oa({},so)),Vr(so)},gs=(_t,He)=>{so.page=_t,so.limit=He,ml(oa({},so)),Vr(so)},oo=[{title:"\u5E8F\u53F7",dataIndex:"index",width:70,render:(_t,He,Ps)=>`${(so.page-1)*so.limit+Ps+1}`},{title:"\u4F1A\u8BDD\u6807\u9898",dataIndex:"question",ellipsis:!0,render:(_t,He)=>vi.createElement(Le.Z,{placement:"topLeft",title:_t},vi.createElement("span",{onClick:()=>{_i(He.id),yi(!0)},className:"c-light-primary current"},_t||"--"))},{title:"\u7528\u6237",dataIndex:"user_name",width:100,ellipsis:!0,render:_t=>vi.createElement(Le.Z,{placement:"topLeft",title:_t},vi.createElement("span",{className:"c-black"},_t||"--"))},{title:"\u6D88\u606F\u6570",width:70,dataIndex:"message_size",render:_t=>vi.createElement("span",{className:"c-black"},_t)},{title:"\u53CD\u9988",width:130,dataIndex:"like_count",render:(_t,He)=>vi.createElement(Ie.Z,{align:"middle"},vi.createElement("div",{className:"flex-1"},vi.createElement("i",{style:{color:"#FA8D30"},className:"iconfot icon-yijiejue font14 mr5"}),vi.createElement("span",{className:"c-black"},He==null?void 0:He.like_count)),vi.createElement("div",{className:"flex-1"},vi.createElement("i",{style:{color:"#db6968"},className:"iconfot icon-weijiejuezhengchang font14 mr5"}),vi.createElement("span",{className:"c-black"},He==null?void 0:He.dislike_count)))},{title:"\u4EBA\u5DE5\u56DE\u590D",width:130,dataIndex:"user_reply_list",ellipsis:!0,render:_t=>vi.createElement(Le.Z,{placement:"topLeft",title:_t},vi.createElement("span",{className:"c-black"},_t||"--"))},{title:"\u521B\u5EFA\u65F6\u95F4",width:144,dataIndex:"created_at",render:_t=>vi.createElement("span",{className:"c-black"},fe()(_t).format("YYYY-MM-DD HH:mm"))}],tr=(_t,He,Ps)=>{const{onMenuClick:Aa}=Ps;Ui.current=Aa;const{id:Vs}=_t;return vi.createElement(vi.Fragment,null,vi.createElement("div",{className:On.apply,onClick:()=>pl(void 0,null,function*(){const js=yield(0,pt.ZP)(`/api/course_qna_records/${Vs}/add_set.json`,{method:"post",body:{questionable_type:"Course",questionable_id:io,type:"ai"}});(js==null?void 0:js.status)==0&&we.ZP.success("\u6DFB\u52A0\u6210\u529F")})},vi.createElement("i",{style:{color:"#3061D0"},className:"iconfont icon-wendaji font12 mr5"}),"\u52A0\u5165\u95EE\u7B54\u96C6"),vi.createElement("div",{className:On.apply,onClick:()=>{no(Vs),Wi(!1)}},vi.createElement("i",{style:{color:"#3061D0"},className:"iconfont icon-a-huifupinglun font12 mr5"}),"\u4EBA\u5DE5\u56DE\u590D"))},Dr=(_t,He,Ps)=>{const{id:Aa,sender:Vs}=_t;return vi.createElement("div",{className:On.li,style:{width:Ps.width}},vi.createElement("div",{className:On.content},Vs==="student"&&vi.createElement("h3",null,"\u5B66\u751F\u53CD\u9988"),vi.createElement("div",{className:On.borderBox},Vs==="teacher"&&vi.createElement("div",{className:On.teacher},"\u8001\u5E08\u56DE\u590D"),Vs==="student"&&vi.createElement("div",{className:On.student},_t.situation),vi.createElement(rs.Z,{className:On.text,value:_t==null?void 0:_t.text})),_t.source&&vi.createElement("div",{className:On.source},_t.source),vi.createElement("div",{className:On.action},Vs==="teacher"&&vi.createElement("div",{className:On.apply,onClick:()=>pl(void 0,null,function*(){const js=yield(0,pt.ZP)(`/api/course_qna_records/${Aa}/add_set.json`,{method:"post",body:{course_id:io,type:"teacher"}});(js==null?void 0:js.status)==0&&we.ZP.success("\u6DFB\u52A0\u6210\u529F")})},vi.createElement("i",{style:{color:"#3061D0"},className:"iconfont icon-wendaji font12 mr5"}),"\u52A0\u5165\u95EE\u7B54\u96C6"),Vs==="teacher"&&vi.createElement("i",{onClick:()=>{no(Aa),qe(_t==null?void 0:_t.text),Wi(!0)},className:"iconfont icon-bianji10 font14 primary-hover"}),Vs==="teacher"&&vi.createElement("i",{onClick:()=>pl(void 0,null,function*(){Kt.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u6761\u56DE\u590D\u5417\uFF1F",onOk:()=>pl(void 0,null,function*(){const js=yield(0,pt.ZP)("/api/course_qna_records/delete_teacher_comment.json",{method:"post",body:{course_id:io,feedback_id:Aa}});(js==null?void 0:js.status)==0&&(Ui.current(),we.ZP.success("\u5220\u9664\u6210\u529F"))})})}),className:"iconfont icon-shanchu15 font14 primary-hover"}),vi.createElement(qr.CopyToClipboard,{text:String((_t==null?void 0:_t.text)||""),onCopy:()=>we.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},vi.createElement(Le.Z,{title:"\u590D\u5236"},vi.createElement("i",{className:"iconfot icon-fuzhi8 font13"}))))))},Er=()=>pl(void 0,null,function*(){if(!Mo){we.ZP.warning("\u8BF7\u8F93\u5165\u4F60\u7684\u56DE\u590D");return}$r(!0),(yield(0,pt.ZP)("/api/course_qna_records/teacher_comment.json",{method:"post",body:{feedback:Mo,record_id:eo,course_id:io,edit:Li}})).status===0&&(no(!1),Ui.current()),$r(!1)}),Ph=_t=>pl(void 0,[_t],function*({type:He,value:Ps,index:Aa,identifier:Vs,objectIndex:js}){const Fl={index:js,identifier:Vs,course_id:io};if(He==="like"&&(yield(0,pt.ZP)("/api/course_qna_records/like.json",{method:"post",body:Fl})).status!==0||He==="dislike"&&(yield(0,pt.ZP)("/api/course_qna_records/dislike.json",{method:"post",body:Fl})).status!==0)return Promise.reject()}),Ru=[{img:li,name:"\u4ECA\u65E5\u65B0\u589E\u4F1A\u8BDD\u6570",count:Io==null?void 0:Io.today_session_count,tip:"\u5F53\u65E5\u7528\u6237\u4E0E\u667A\u80FD\u52A9\u6559\u5EFA\u7ACB\u7684\u72EC\u7ACB\u4F1A\u8BDD\u6570\u91CF\uFF08\u540C\u4E00\u7A97\u53E3\u8FDE\u7EED\u5BF9\u8BDD\u8BA1\u4E3A1\u6B21\uFF09"},{img:Fi,name:"\u4F1A\u8BDD\u603B\u6570",count:Io==null?void 0:Io.sessions_count,tip:"\u7528\u6237\u4E0E\u667A\u80FD\u52A9\u6559\u7684\u5386\u53F2\u4F1A\u8BDD\u603B\u91CF\uFF08\u540C\u4E00\u7A97\u53E3\u8FDE\u7EED\u5BF9\u8BDD\u8BA1\u4E3A1\u6B21\uFF09"},{img:ko,name:"\u5BF9\u8BDD\u4EBA\u6570",count:Io==null?void 0:Io.total_user_count,tip:"\u4E0E\u667A\u80FD\u52A9\u6559\u4EA7\u751F\u8FC7\u4F1A\u8BDD\u7684\u72EC\u7ACB\u7528\u6237\u6570\uFF08\u57FA\u4E8E\u8D26\u53F7ID\u53BB\u91CD\uFF09"},{img:Ro,name:"\u6D88\u606F\u603B\u6570",count:Io==null?void 0:Io.message_count,tip:"\u7528\u6237\u4E0E\u667A\u80FD\u52A9\u6559\u53CC\u5411\u4EA4\u4E92\u4EA7\u751F\u7684\u6D88\u606F\u603B\u6761\u6570"},{img:os,name:"\u6EE1\u610F\u6570",count:Io==null?void 0:Io.like_count,tip:"\u667A\u80FD\u52A9\u6559\u56DE\u7B54\u83B7\u5F97\u7528\u6237\u70B9\u8D5E\u7684\u603B\u91CF"},{img:Wt,name:"\u4E0D\u6EE1\u610F\u6570",count:Io==null?void 0:Io.dislike_count,tip:"\u667A\u80FD\u52A9\u6559\u56DE\u7B54\u6536\u5230\u7528\u6237\u70B9\u8E29\u7684\u603B\u91CF"},{img:Ih,name:"\u95EE\u7B54\u96C6\u547D\u4E2D\u6B21\u6570",count:Io==null?void 0:Io.hit_count,tip:"\u7528\u6237\u63D0\u95EE\u7CBE\u51C6\u5339\u914D\u9884\u8BBE\u95EE\u7B54\u5E93\u7684\u6B21\u6570"},{img:No,name:"\u6D88\u8017token\u6570",count:Io==null?void 0:Io.total_tokens,tip:"\u5BF9\u8BDD\u8FC7\u7A0B\u4E2D\u63D0\u95EE\u4E0E\u56DE\u7B54\u6D88\u8017\u7684Token\u603B\u91CF"}],jh=[{value:0,label:"\u5168\u90E8"},{value:1,label:"\u7528\u6237\u53CD\u9988-\u6EE1\u610F"},{value:2,label:"\u7528\u6237\u53CD\u9988-\u4E0D\u6EE1\u610F"},{value:3,label:"\u6211\u56DE\u590D\u7684"}],Rh={onListClick:_t=>(0,pt.ZP)(`/api/course_qna_sessions/${_t}.json`,{method:"get",params:{questionable_id:io}}),onListDealData:_t=>{let He=[];return _t==null||_t.forEach(Ps=>{var Aa,Vs;const js=Ps.id,Fl=Ps.think?{reasoning:Ps.think,thinkingEnabled:!0}:{},zu=[{text:Ps.question,key:js,sender:"user",fileList:[],show:!0},oa({key:js,loading:!1,sender:"AI",show:!0,source:Ps.answer_source,text:Ps.answer,like:Ps.like,dislike:Ps.dislike,time:Ps.think_time,id:Ps.id},Fl)];He=[...He,...zu],(Aa=Ps==null?void 0:Ps.student_feedback)==null||Aa.forEach(as=>{He.push({id:as.id,key:`teacher-${js}-${as.id}`,loading:!1,sender:"student",show:!0,text:as.feedback,situation:as.status_name})}),(Vs=Ps==null?void 0:Ps.teacher_feedback)==null||Vs.forEach(as=>{He.push({id:as.id,key:`student-${js}-${as.id}`,loading:!1,sender:"teacher",show:!0,text:as.feedback,source:as.answer_source})})}),He}};return vi.createElement("div",{className:On.dialogue},vi.createElement("div",{className:On.liWrap},Ru.map((_t,He)=>vi.createElement("div",{className:On.li,key:He},vi.createElement("img",{src:_t.img,width:38}),vi.createElement("aside",null,vi.createElement("b",{style:{color:_t.count===0?"#999":"#333"}},_t.count),vi.createElement("div",null,vi.createElement("span",null,_t.name),vi.createElement(Le.Z,{title:_t.tip},vi.createElement("i",{className:"iconfont icon-xiaowenhao2 font12 ml5"}))))))),vi.createElement("div",{className:On.line}),vi.createElement(Ie.Z,{align:"middle",justify:"space-between"},vi.createElement(Tl,{value:so==null?void 0:so.time,showTime:{format:"HH:mm"},onChange:_s,format:"YYYY-MM-DD HH:mm"}),vi.createElement(Jo.default,{value:so.status,onChange:Zr,options:jh,style:{width:160}}),vi.createElement(pn.default.Search,{style:{width:274},placeholder:"\u8BF7\u8F93\u5165\u4F1A\u8BDD\u6807\u9898\u3001\u7528\u6237",value:sr,onChange:_t=>Qo(_t.target.value),onSearch:ka})),vi.createElement(dt.default,{columns:oo,className:"mt20",dataSource:ri,loading:be,rowKey:"id",pagination:{current:so.page,hideOnSinglePage:!ir,showQuickJumper:!0,showSizeChanger:!0,pageSize:so.limit,pageSizeOptions:["10","20","50","100","200"],total:ir,size:"default",showTotal:Se.rU,onChange:gs}}),vi.createElement(Rr.Z,{visible:Bo,fetchListObject:Rh,onOpen:()=>yi(!0),onClose:()=>{yi(!1),Vr(so)},children:!0,historyId:ho,showPreference:!0,showDefaultTips:!1,customDataNode:Dr,customPreference:Ph,hideInputBox:!0,title:"\u667A\u80FD\u52A9\u6559",fetchUrl:"/api/stream/course_qna_records/chat_messages.json",extraAnswerAction:tr}),vi.createElement(Kt.default,{centered:!0,open:!!eo,confirmLoading:ga,onCancel:()=>{no(!1)},afterClose:()=>{qe("")},onOk:Er,title:"\u4EBA\u5DE5\u56DE\u590D",width:900,okText:"\u4FDD\u5B58"},vi.createElement(gn.Z,{placeholder:"\u5728\u8FD9\u91CC\u8F93\u5165\u60A8\u7684\u56DE\u590D",watch:!0,onChange:_t=>qe(_t),defaultValue:Mo})))},Zl=Object.defineProperty,Kl=Object.defineProperties,Sr=Object.getOwnPropertyDescriptors,Is=Object.getOwnPropertySymbols,eh=Object.prototype.hasOwnProperty,xa=Object.prototype.propertyIsEnumerable,ju=(We,be,Be)=>be in We?Zl(We,be,{enumerable:!0,configurable:!0,writable:!0,value:Be}):We[be]=Be,Os=(We,be)=>{for(var Be in be||(be={}))eh.call(be,Be)&&ju(We,Be,be[Be]);if(Is)for(var Be of Is(be))xa.call(be,Be)&&ju(We,Be,be[Be]);return We},gi=(We,be)=>Kl(We,Sr(be)),Ql=(We,be,Be)=>new Promise((ir,Fo)=>{var ri=yi=>{try{Bo(Be.next(yi))}catch(eo){Fo(eo)}},Ur=yi=>{try{Bo(Be.throw(yi))}catch(eo){Fo(eo)}},Bo=yi=>yi.done?ir(yi.value):Promise.resolve(yi.value).then(ri,Ur);Bo((Be=Be.apply(We,be)).next())});const Oh=({classroomList:We,boards:be,globalSetting:Be,loading:ir,user:Fo,dispatch:ri})=>{var Ur,Bo,yi;const eo=(0,St.useParams)(),no=(0,Ut.useRef)(gi(Os({},eo),{id:eo.categoryId,page_size:20})),[ga,$r]=(0,Ut.useState)({page:1,page_size:20}),{detailBoardList:Mo,detailLeftMenus:qe,detailTopBanner:Li,detailCourseGroupsList:Wi,courseAiData:ho}=We,[_i,Ui]=(0,Ut.useState)([]),[sr,Qo]=(0,Ut.useState)("\u6392\u5E8F"),{userInfo:io}=Fo,[Io,Lr]=(0,Ut.useState)(!1),[so]=(0,St.useSearchParams)(),[ml,Xl]=(0,Ut.useState)(!1),[Vr,ka]=(0,Ut.useState)("all"),[Zr,_s]=(0,Ut.useState)({}),[gs,oo]=(0,Ut.useState)(1),[tr,Dr]=(0,Ut.useState)(!1),[Er,Ph]=(0,Ut.useState)(!1),[Ru,jh]=(0,Ut.useState)(!0);let[fi,Rh]=(0,Ut.useState)([]);const[_t,He]=(0,Ut.useState)(!1),[Ps,Aa]=(0,Ut.useState)(!1),{verifyModelUser:Vs,ContactModalElement:js}=(0,qn.Z)(),Fl=(0,Ut.useRef)(null),zu=(0,St.useLocation)();let[as,ls]=(0,Ut.useState)({page:1,page_size:20});const Vi=(0,Ut.useMemo)(()=>{if(qe.course_modules)return We.detailLeftMenus.course_modules.filter(se=>se.type==="board")[0]},[We]);(0,Ut.useEffect)(()=>{var se;const ye=Se.cX.getItem(`${(se=Fo==null?void 0:Fo.userInfo)==null?void 0:se.login}${(0,At.GJ)()?"Teacher":"Student"}`,"Board");ye&&(Qo(ye==null?void 0:ye.name),no.current.sort_type=Lo.find(Te=>Te.name===(ye==null?void 0:ye.name)).id)},[(Ur=Fo==null?void 0:Fo.userInfo)==null?void 0:Ur.login,zu==null?void 0:zu.pathname]),(0,Ut.useEffect)(()=>{so.get("type")?so.get("type")==="hudong"?(ka("hudong"),de(),qs()):ka(so.get("type")):ka("all")},[so.get("type")]),(0,Ut.useEffect)(()=>{Vr==="wenda"&&Xl(ho==null?void 0:ho.is_open_ai)},[Vr]);const qs=()=>Ql(void 0,null,function*(){var se;if(Ru&&!tr){Dr(!0),oo(gs+1);const ye=yield ri({type:"classroomList/getCourseGroupsList",payload:gi(Os({},no),{page:gs,id:no.current.coursesId,limit:20,nonenavigate:!0})});let Te=[...ye==null?void 0:ye.course_groups];((se=ye==null?void 0:ye.course_groups)==null?void 0:se.length)<20&&(jh(!1),Te.push({id:0,name:"\u672A\u5206\u73ED"})),Dr(!1),Rh([...fi,...Te])}});(0,Ut.useEffect)(()=>{no.current.categoryId=eo.categoryId,no.current.id=eo.categoryId,ri({type:"classroomList/getBoardList",payload:no.current})},[eo]),(0,Ut.useEffect)(()=>{We.actionTabs.key==="\u76EE\u5F55\u91CD\u547D\u540D\u6210\u529F"&&ri({type:"classroomList/getBoardList",payload:no.current})},[We.actionTabs.key]),(0,Ut.useEffect)(()=>{Ui([])},[We.detailBoardList]);const vl=(se,ye)=>{$r({page:se,page_size:ye}),no.current.page=se,no.current.page_size=ye,ri({type:"classroomList/getBoardList",payload:no.current})},fs=Ut.createElement("section",{className:cn.dropmenu},Ut.createElement("div",{style:{maxHeight:200,overflow:"auto"}},Ut.createElement(An(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:se=>{qs()},hasMore:Ru,useWindow:!1},Ut.createElement(je.default,{style:{width:240,zIndex:10}},Wi.group_count>0&&fi.map(function(se,ye){return Ut.createElement(je.default.Item,{key:se.id},Ut.createElement(ie.default,{checked:_i.includes(se.id),value:se.id,onChange:Te=>{let Qe=_i.indexOf(se.id);_i.indexOf(se.id)>-1?Ui(_i.filter(rn=>rn!==se.id)):Ui(_i.concat(se.id))}},se.name))})))),Ut.createElement("aside",{className:cn.bg},Ut.createElement("div",null,Ut.createElement(Ne.ZP,{type:"link",onClick:()=>Ql(void 0,null,function*(){as.group_ids=_i,as.page=1,ls(Os({},as)),de()})},"\u786E\u5B9A"),Ut.createElement(Ne.ZP,{type:"link",onClick:()=>{Ui([])}},"\u91CD\u7F6E")))),Lo=[{name:"\u65F6\u95F4\u6392\u5E8F",id:"time"},{name:"\u70ED\u5EA6\u6392\u5E8F",id:"hot"}];let Rs=[{name:"\u5220\u9664",icon:Ut.createElement("i",{className:"iconfont icon-piliangshanchu2"})},{name:"\u53D1\u9001",icon:Ut.createElement("i",{className:"iconfont icon-fasong"})},{name:"\u8BBE\u4E3A\u516C\u5F00",icon:Ut.createElement("i",{className:"iconfont icon-sheweigongkai2"})}];Li.is_public||Rs.splice(2,1);const bt=se=>{var ye;Se.cX.setItem(`${(ye=Fo==null?void 0:Fo.userInfo)==null?void 0:ye.login}${(0,At.GJ)()?"Teacher":"Student"}`,se,"Board"),Qo(se==null?void 0:se.name),no.current.sort_type=Lo.find(Te=>Te.name===(se==null?void 0:se.name)).id,ri({type:"classroomList/getBoardList",payload:no.current})},Ot=(se,ye)=>Ql(void 0,null,function*(){ye.coursesId=no.current.coursesId;let Te="boards/setTopping";se==="\u53D6\u6D88\u7F6E\u9876"&&(Te="boards/escTopping"),yield ri({type:Te,payload:Os({},ye)}),ri({type:"classroomList/getBoardList",payload:no.current})}),Ht=se=>Ql(void 0,null,function*(){const ye=se.name;_i==""?we.ZP.error("\u8BF7\u9009\u62E9\u4F60\u8981\u64CD\u4F5C\u7684\u4EFB\u52A1"):ri({type:"classroomList/setActionTabs",payload:{key:ye,selectArrs:_i,params:no.current}})}),le=se=>Ql(void 0,null,function*(){var ye;if(_i=="")return we.ZP.error("\u8BF7\u9009\u62E9\u4F60\u8981\u64CD\u4F5C\u7684\u4EFB\u52A1"),null;(yield(0,pt.ZP)(`/api/boards/${no.current.categoryId}/messages/bulk_move.json`,{method:"put",body:{ids:_i,to_board_id:se.key}})).status===0&&(we.ZP.success("\u64CD\u4F5C\u6210\u529F"),ri({type:"classroomList/getBoardList",payload:no.current}),ri({type:"classroomList/getClassroomLeftMenus",payload:{id:(ye=no.current)==null?void 0:ye.coursesId}}))});function de(){return Ql(this,null,function*(){var se;Ph(!0);let ye=yield(0,pt.ZP)(`/api/boards/${no.current.categoryId}/messages/statistics.json`,{method:"get",params:Os({coursesId:(se=no.current)==null?void 0:se.coursesId},as)});Ph(!1),(ye==null?void 0:ye.status)===0&&_s(ye)})}return Ut.createElement("section",null,Ut.createElement(he.Z,{isLoading:!1,menuItemWidth:110,tabDataSource:[{name:"\u5168\u90E8",id:"all"},(0,At.eB)()&&{name:"\u4E92\u52A8\u7EDF\u8BA1",id:"hudong"},((Li==null?void 0:Li.is_admin)||(0,At.Ny)())&&{name:"\u8BBE\u7F6E",id:"shezhi"},(0,At.eB)()&&{name:Ut.createElement("span",null,"\u667A\u80FD\u95EE\u7B54",Ut.createElement("img",{src:Zn,width:17,style:{position:"absolute",top:6}})),id:"wenda"},(0,At.eB)()&&{name:"\u95EE\u7B54\u96C6",id:"wendaji"},(0,At.eB)()&&{name:"\u5386\u53F2\u5BF9\u8BDD",id:"duihua"}].filter(se=>!!se),isAdmin:(0,At.RV)(),onTabMenuClick:se=>{se.key==="hudong"&&(de(),St.history.replace(`/classrooms/${no.current.coursesId}/board/${no.current.categoryId}?type=hudong`)),ka(se.key)},defaultSelectedKeys:[`${Vr}`],showControlButton:["all","hudong","shezhi"].includes(Vr)&&(0,At.RV)(),buttonText:"\u6211\u8981\u53D1\u5E16",extraNode:["all","hudong","shezhi"].includes(Vr)&&(0,At.GJ)()&&Mo.name!=="\u672A\u5206\u914D\u76EE\u5F55"&&Ut.createElement(Ut.Fragment,null,Ut.createElement("span",{className:"c-blue font16 ml20 current",onClick:se=>{var ye;se.preventDefault();let Te=(ye=no.current)==null?void 0:ye.coursesId;(Mo==null?void 0:Mo.parent_id)>0&&(Te=no.current.categoryId),ri({type:"classroomList/setActionTabs",payload:{key:(Mo==null?void 0:Mo.parent_id)===0?"\u6DFB\u52A0\u76EE\u5F55":"\u76EE\u5F55\u91CD\u547D\u540D",params:no.current,selectArrs:{category_id:Te,category_name:Mo.name,type:"board"},cb:()=>{ri({type:"classroomList/getBoardList",payload:no.current})}}})}},(Mo==null?void 0:Mo.parent_id)==0?Ut.createElement(Le.Z,{title:"\u65B0\u5EFA\u76EE\u5F55"},Ut.createElement("i",{className:"iconfont icon-xinjianmulu1 c-blue font16 mr20 current"})):Ut.createElement(Le.Z,{title:"\u76EE\u5F55\u91CD\u547D\u540D"},Ut.createElement("i",{className:"iconfont icon-zhongmingming1 c-blue font16 mr20 current"})))),onButtonClick:()=>{St.history.push(`/classrooms/${eo.coursesId}/board/${eo.categoryId}/add`)}}),Vr==="all"&&Ut.createElement("div",null,Ut.createElement(Pe.Z,{spinning:ir["classroomList/getBoardList"]},Ut.createElement(Qt.Z,{dataSource:Mo.messages||[],isAdmin:(0,At.GJ)(),batchStatus:Io,SortMenuName:sr,setSortMenuName:Qo,SortMenus:Lo,dispatch:ri,isboard:!0,onBoard:se=>{no.current.group_ids=se,no.current.page=1,$r(ye=>gi(Os({},ye),{page:1})),ri({type:"classroomList/getBoardList",payload:no.current})},detailCourseGroupsList:Wi,onSearch:se=>{no.current.search=se,no.current.page=1,$r(ye=>gi(Os({},ye),{page:1})),ri({type:"classroomList/getBoardList",payload:no.current})},onSort:bt,onBatch:se=>Lr(se)}),Mo.total_count===0&&Ut.createElement(kt.Z,null),Mo.messages&&Mo.messages.map(function(se,ye){var Te,Qe;return Ut.createElement("div",{className:cn.listItem,key:ye,onClick:rn=>{_i.indexOf(se.id)>-1?Ui(_i.filter(jn=>jn!==se.id)):Ui(_i.concat(se.id))}},Ut.createElement(Ie.Z,{align:"top"},(0,At.GJ)()&&Ut.createElement(Ue.Z,null,Ut.createElement("div",{className:"mt17"},((0,At.Ny)()||((Te=se==null?void 0:se.author)==null?void 0:Te.login)===io.login||(0,At.GJ)()&&!se.author.is_teacher)&&Ut.createElement(ie.default,{checked:_i.includes(se.id),value:se.id}))),Ut.createElement(Ue.Z,null,Ut.createElement("img",{className:"ml10 mr20",src:`${Me.Z.IMG_SERVER}/images/${se.author.image_url}`})),Ut.createElement(Ue.Z,{flex:1},Ut.createElement("div",{className:cn.title},Ut.createElement("div",{className:cn.titleLeft},Ut.createElement(St.Link,{to:`/classrooms/${eo.coursesId}/board/${eo.categoryId}/Detail/${se.id}`},Ut.createElement("strong",null,se.subject)),(se==null?void 0:se.is_copy)&&Ut.createElement("span",{className:cn.copyTag},"\u590D\u5236"),se.sticky===1&&Ut.createElement("span",{className:"tag-topping ml10"},"\u7F6E\u9876"))),Ut.createElement("p",{className:"mt15"},Ut.createElement("span",{className:""},se.author.name),se.total_replies_count>0&&Ut.createElement("span",{className:"ml20 c-light-black "},se.total_replies_count," \u56DE\u590D"),se.praises_count>0&&Ut.createElement("span",{className:"ml20 c-light-black "},se.praises_count," \u70B9\u8D5E"),se.visits>0&&Ut.createElement("span",{className:"ml20 c-light-black "},se.visits," \u6D4F\u89C8"),Ut.createElement("span",{className:"ml20 c-light-black "},fe()(se.created_on).fromNow()))),Ut.createElement(Ue.Z,{className:"tr"},Ut.createElement("p",null,(0,At.RV)()&&Ut.createElement(St.Link,{style:{marginRight:0},to:`/classrooms/${eo.coursesId}/board/${eo.categoryId}/Detail/${se.id}`},Ut.createElement("aside",{className:cn.flexBox},Ut.createElement("i",{className:"iconfont icon-yuyuexiangqing1"}),Ut.createElement("div",null,"\u8BE6\u60C5"))),se.sticky===0&&(0,At.GJ)()&&Ut.createElement(St.Link,{className:"ml15",to:"",onClick:rn=>{rn.preventDefault(),Ot("\u7F6E\u9876",se)}},"\u7F6E\u9876"),se.sticky===1&&(0,At.GJ)()&&Ut.createElement(St.Link,{className:"ml15",to:"",onClick:rn=>{rn.preventDefault(),Ot("\u53D6\u6D88\u7F6E\u9876",se)}},"\u53D6\u6D88\u7F6E\u9876"),((0,At.Ny)()||((Qe=se==null?void 0:se.author)==null?void 0:Qe.login)===io.login||(0,At.GJ)()&&!se.author.is_teacher)&&Ut.createElement(St.Link,{className:"",to:`/classrooms/${eo.coursesId}/board/${se.board_id}/Edit/${se.id}`},Ut.createElement("aside",{className:cn.flexBox,style:{marginLeft:"16px"}},Ut.createElement("i",{className:"iconfont icon-bianjizuoye"}),Ut.createElement("div",null,"\u7F16\u8F91")))),se.category_name&&Ut.createElement("p",{className:["c-grey-666",cn.categoryName].join(" ")},"\u6240\u5C5E\u76EE\u5F55\uFF1A",se.category_name))))}),Ut.createElement("aside",{className:"tc mb50 mt30"},Mo.total_count>0&&Ut.createElement(Tt.Z,{showSizeChanger:!0,onChange:vl,defaultCurrent:1,pageSize:ga.page_size||20,current:ga.page||1,total:Mo.total_count})),_i.length>0&&(0,At.GJ)()&&Ut.createElement(et.Z,{offsetBottom:0},Ut.createElement(Ae.Z,{buttonDataSource:Rs,onButtonClick:Ht,useBatchStatus:Lr,catalogue:Vi.second_category.filter(se=>se.category_name!=="\u672A\u5206\u914D\u76EE\u5F55")||[],allSelect:_i.length?_i.length===((Bo=Mo==null?void 0:Mo.messages)==null?void 0:Bo.length):!1,setSeleArr:Ui,setAllSelect:se=>{se.target.checked?Ui(Mo.messages.map(ye=>ye.id)):Ui([])},selectArrs:_i,onMenuClick:le,addCatalogue:se=>{se.preventDefault(),ri({type:"classroomList/setActionTabs",payload:{key:"\u6DFB\u52A0\u76EE\u5F55",params:no.current,selectArrs:{category_id:no.current.coursesId,type:"board"}}})}})),Ut.createElement(fn.Z,{cb:se=>{Ui([]),no.current.page=se,$r(ye=>gi(Os({},ye),{page:se}))}}),Ut.createElement(En,{cb:()=>Ui([])}),Ut.createElement(bn.Z,{cb:()=>Ui([])}))),Vr==="hudong"&&Ut.createElement("div",{style:{background:"#fff",padding:"25px 20px"}},Ut.createElement("div",{style:{display:"flex"}},Ut.createElement("div",{style:{flex:1,color:"#666666"}},Ut.createElement("span",null,"\u8BA8\u8BBA\uFF08",Zr.total_message_count,"\uFF09"),Ut.createElement("span",{style:{marginLeft:20}},"\u56DE\u590D\uFF08",Zr.total_reply_count,"\uFF09"),Ut.createElement("span",{style:{marginLeft:20}},"\u70B9\u8D5E\uFF08",Zr.total_like_count,"\uFF09")),(0,At.GJ)()&&Ut.createElement("div",null,Ut.createElement(nt.Z,{dropdownRender:()=>fs,open:_t,onOpenChange:se=>{He(se)}},Ut.createElement("a",null,"\u5206\u73ED",_t?Ut.createElement(vt.Z,{style:{marginLeft:6}}):Ut.createElement(Lt.Z,{style:{marginLeft:6}}))),Ut.createElement(nt.Z,{open:Ps,onOpenChange:se=>{Aa(se)},menu:{items:[{key:"1",style:{width:100},label:Ut.createElement("a",{onClick:()=>Ql(void 0,null,function*(){var se,ye;let Te=yield(0,pt.ZP)(`/api/boards/${(se=no.current)==null?void 0:se.categoryId}/messages/export_messages.json`,{method:"get",params:Os({is_repeat_export:1},as)});(Te==null?void 0:Te.status)===0&&St.history.push(`/classrooms/${(ye=no.current)==null?void 0:ye.coursesId}/exportlist/messages_statistics`)})},"\u4E92\u52A8\u5BFC\u51FA")},{key:"2",label:Ut.createElement("a",{href:`/classrooms/${(yi=no.current)==null?void 0:yi.coursesId}/exportlist/messages_statistics`},"\u5386\u53F2\u5BFC\u51FA")}]}},Ut.createElement("a",{style:{marginLeft:20}},"\u5BFC\u51FA",Ps?Ut.createElement(vt.Z,{style:{marginLeft:6}}):Ut.createElement(Lt.Z,{style:{marginLeft:6}}))))),Ut.createElement(dt.default,{dataSource:Zr==null?void 0:Zr.course_members,style:{marginTop:25},loading:Er,onChange:(se,ye,Te)=>{Te.order?(as.sort_by=Te.field==="total_score"?"score":Te.field,as.sort=Te.order,as.sort=as.sort.replace("end","")):delete as.sort,de()},columns:[{title:"\u5E8F\u53F7",dataIndex:"number",width:60,render:(se,ye,Te)=>as.page_size*(as.page-1)+Te+1},{title:"\u59D3\u540D",dataIndex:"real_name",render:(se,ye,Te)=>Ut.createElement("a",{target:"_blank",style:{color:"#3061D0"},href:`/users/${ye==null?void 0:ye.login}/classrooms`},se)},{title:"\u5B66\u53F7",dataIndex:"student_id"},{title:"\u5206\u73ED",dataIndex:"course_group_name"},{title:"\u53D1\u5E16\u6570",dataIndex:"message_count",width:60},{title:"\u5E16\u5B50\u70B9\u8D5E\u6570",dataIndex:"message_like_count",width:100},{title:"\u56DE\u590D\u6570",dataIndex:"reply_count",width:60},{title:"\u56DE\u590D\u70B9\u8D5E\u6570",dataIndex:"reply_like_count",width:100},{title:"\u4E92\u52A8\u6570",dataIndex:"total_message_count",width:70}],pagination:!1}),Ut.createElement(Tt.Z,{showSizeChanger:!0,showTotal:se=>Ut.createElement("span",null,"\u5171",Ut.createElement("span",{style:{color:"#165DFF"}},Zr.total_count)," \u6761\u6570\u636E"),style:{marginTop:10},onChange:(se,ye)=>{as.page=se,as.page_size=ye,ls(Os({},as)),de()},defaultCurrent:1,pageSize:as.page_size||20,current:as.page||1,total:Zr.total_count})),Vr==="shezhi"&&Ut.createElement("div",{style:{background:"#fff",padding:20}},Ut.createElement("h5",{style:{fontSize:18}},"\u516C\u5F00\u8BBE\u7F6E"),Ut.createElement(ie.default,{style:{marginTop:10},defaultChecked:Li==null?void 0:Li.allow_view_message,onChange:se=>Ql(void 0,null,function*(){var ye,Te;let Qe=yield(0,pt.ZP)(`/api/courses/${(ye=no.current)==null?void 0:ye.coursesId}/update_view_setting.json`,{method:"PUT",body:{allow_view_message:se.target.checked}});(Qe==null?void 0:Qe.status)===0&&ri({type:"classroomList/getClassroomTopBanner",payload:{id:(Te=no.current)==null?void 0:Te.coursesId}})})},"\u5168\u8BFE\u5802\u53EF\u89C1\uFF08\u672A\u52FE\u9009\u5219\u5B66\u751F\u53D1\u5E03\u7684\u8BA8\u8BBA\u53EA\u80FD\u9009\u62E9\u540C\u73ED\u5B66\u751F\u53EF\u89C1\uFF09")),Vr==="wenda"&&Ut.createElement("div",{style:{background:"#fff",padding:20}},Ut.createElement("div",{className:"flex flex-col gap-20 mb20"},Ut.createElement("h5",{className:"font18"},"\u667A\u80FD\u95EE\u7B54"),Ut.createElement(Ie.Z,{align:"middle",className:"mt20"},Ut.createElement(lt.Z,{size:"default",checked:ml,onChange:se=>{Vs()&&(Xl(se),clearTimeout(Fl.current),Fl.current=setTimeout(()=>{var ye;ri({type:"classroomList/setCourseAiState",payload:{course_id:(ye=no.current)==null?void 0:ye.coursesId,is_open_ai:se}})},500))}}),Ut.createElement("div",{className:"c-grey-333 ml10"},"\u5F00\u542F\u540E\uFF0C\u6559\u5B66\u8BFE\u5802\u5185\u7684\u5B66\u751F\u5C06\u53EF\u4EE5\u4F7F\u7528\u667A\u80FD\u52A9\u6559\u7684\u529F\u80FD\uFF0C\u4E0EAI\u5BF9\u8BDD\uFF0C\u8BA9AI\u7B54\u7591\u89E3\u60D1\u3002"," ",Ut.createElement("a",{href:"https://www.educoder.net/forums/40256",target:"_blank"},"\u64CD\u4F5C\u8BF4\u660E"))))),Vr==="wendaji"&&Ut.createElement(Wn,null),Vr==="duihua"&&Ut.createElement(ss,null),js())};var Dl=(0,St.connect)(({classroomList:We,loading:be,boards:Be,user:ir,globalSetting:Fo})=>({classroomList:We,globalSetting:Fo,boards:Be,user:ir,loading:be.effects}))(Oh),ld=Ft(59301);const ud=({classroomList:We,boards:be,globalSetting:Be,loading:ir,user:Fo,dispatch:ri})=>{const Ur=(0,St.useParams)(),{detailBoardList:Bo,detailLeftMenus:yi,detailTopBanner:eo}=We;return ld.createElement(Dl,null)};var Qn=(0,St.connect)(({classroomList:We,loading:be,boards:Be,user:ir,globalSetting:Fo})=>({classroomList:We,globalSetting:Fo,boards:Be,user:ir,loading:be.models.index}))(ud)},73674:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{Z:function(){return Pe}});var St=Ft(59301),Ut=Ft(20834),Me=Ft(92832),_e=Ft(24905),fe=Ft(3113),je=Ft(38854),ie={bottomControlContainer:"bottomControlContainer___woAeo",buttonWrap:"buttonWrap___iRw4K",moveCategory:"moveCategory___oiQqw"},Ne=Ft(24065),we=Ft(84105),Pe=({buttonDataSource:Ie,onButtonClick:Ue,useBatchStatus:Tt,allSelect:et,setAllSelect:nt,selectArrs:dt,onMenuClick:lt,setSeleArr:pt,catalogue:vt,addCatalogue:Lt})=>{const[At,kt]=(0,St.useState)(!1),[Kt,$t]=(0,St.useState)("");console.log("---",vt);const ne=St.createElement("div",{className:ie.moveCategory,onMouseLeave:qt=>kt(!1)},St.createElement(Ut.default,{onClick:lt,style:{maxHeight:300,width:240,overflow:"auto"}},St.createElement("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child"},St.createElement(Me.default,{onChange:qt=>{$t(qt.target.value)}})),vt==null?void 0:vt.map(function(qt,ue){var ae;if(!(Kt!==""&&qt.category_name.indexOf(Kt)<0))return St.createElement(St.Fragment,null,St.createElement(Ut.default.Item,{className:"multi-llipsis1e",key:qt.category_id,title:qt.category_name},qt.category_name),(ae=qt==null?void 0:qt.third_category)==null?void 0:ae.map(Fe=>St.createElement(Ut.default.Item,{style:{marginLeft:20},className:"multi-llipsis1e",key:Fe.category_id,title:Fe.category_name},Fe.category_name)))}),Lt&&St.createElement("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child",onClick:Lt},"\u65B0\u5EFA\u5B50\u76EE\u5F55...")));return St.createElement("div",{className:ie.bottomControlContainer},St.createElement("div",null,St.createElement("div",null,St.createElement(_e.default,{checked:et,onChange:nt},"\u5168\u9009\u672C\u9875\uFF08",dt.length,"\uFF09")),(0,Ne.GJ)()&&Ie.map(qt=>St.createElement("div",{key:qt.name},St.createElement(fe.ZP,{type:"primary",icon:qt.icon,className:ie.buttonWrap,onClick:()=>Ue(qt)},qt.name))),(0,Ne.GJ)()&&(Lt||vt)&&St.createElement("div",null,St.createElement(je.Z,{open:At,placement:"topLeft",autoAdjustOverflow:!1,dropdownRender:()=>ne,getPopupContainer:qt=>qt.parentNode},St.createElement("span",{className:"ant-dropdown-link",onMouseEnter:qt=>kt(!0)},St.createElement(fe.ZP,{type:"primary",className:ie.buttonWrap,icon:St.createElement("i",{className:"iconfont icon-yidongmulu"})},St.createElement("span",null,"\u79FB\u52A8\u5230\u76EE\u5F55 ",St.createElement(we.Z,null))))))),St.createElement("div",null,St.createElement(fe.ZP,{type:"primary",ghost:!0,onClick:()=>{Tt(!1),pt([])}},"\u53D6\u6D88\u64CD\u4F5C")))}},89614:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{Z:function(){return lt}});var St=Ft(59301),Ut=Ft(20834),Me=Ft(24905),_e=Ft(3113),fe=Ft(38854),je=Ft(6848),ie=Ft(57809),Ne=Ft(92832),we={searchSortControllerContainer:"searchSortControllerContainer___Xca1m",btn:"btn___sNJPX",btnSort:"btnSort___Fx9OM",tips:"tips___LrmpR"},Le=Ft(24065),Pe=Ft(87395),Ie=Ft(84105),Ue=Ft(26724),Tt=Ft.n(Ue),et=Ft(89070),nt=(pt,vt,Lt)=>new Promise((At,kt)=>{var Kt=qt=>{try{ne(Lt.next(qt))}catch(ue){kt(ue)}},$t=qt=>{try{ne(Lt.throw(qt))}catch(ue){kt(ue)}},ne=qt=>qt.done?At(qt.value):Promise.resolve(qt.value).then(Kt,$t);ne((Lt=Lt.apply(pt,vt)).next())}),lt=({isAdmin:pt,dataSource:vt,batchStatus:Lt,SortMenuName:At,setSortMenuName:kt,detailCourseGroupsList:Kt,onSearch:$t,onBoard:ne,onSort:qt,isboard:ue,dispatch:ae,onBatch:Fe,SortMenus:xe,isShowMode:Re=!1,onModeChange:En})=>{const[fn,bn]=(0,St.useState)(!1),[cn,he]=(0,St.useState)([]),[Qt,Ae]=(0,St.useState)(!0);let[Gn,An]=(0,St.useState)([]);const[Se,sn]=(0,St.useState)(1),[wn,Xn]=(0,St.useState)(!1),Hn=(0,et.useParams)(),ii=qn=>{kt(qn.name),qt(qn)};(0,St.useEffect)(()=>{ue&&re()},[ue]);const re=()=>nt(void 0,null,function*(){var qn;if(Qt&&!wn){Xn(!0),sn(Se+1);const ni=yield ae({type:"classroomList/getCourseGroupsList",payload:{page:Se,id:Hn.coursesId,limit:20,nonenavigate:!0}});let Hi=[...(ni==null?void 0:ni.course_groups)||[]];((qn=ni==null?void 0:ni.course_groups)==null?void 0:qn.length)<20&&(Ae(!1),Hi.push({id:0,name:"\u672A\u5206\u73ED"})),Xn(!1),An([...Gn,...Hi])}}),Dn=St.createElement("section",{className:we.dropmenu},St.createElement("div",{style:{maxHeight:200,overflow:"auto"}},St.createElement(Tt(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:qn=>{re()},hasMore:Qt,useWindow:!1},St.createElement(Ut.default,{style:{width:240,zIndex:10}},(Kt==null?void 0:Kt.group_count)>0&&(Gn==null?void 0:Gn.filter(qn=>qn.edit_auth||qn.name==="\u672A\u5206\u73ED").map(function(qn,ni){return St.createElement(Ut.default.Item,{key:qn.id},St.createElement(Me.default,{checked:cn.includes(qn.id),value:qn.id,onChange:Hi=>{let Jo=cn.indexOf(qn.id);cn.indexOf(qn.id)>-1?he(cn.filter(pn=>pn!==qn.id)):he(cn.concat(qn.id))}},qn.name))}))))),St.createElement("aside",{style:{background:"#fff"}},St.createElement("div",null,St.createElement(_e.ZP,{type:"link",onClick:()=>{ne(cn)}},"\u786E\u5B9A"),St.createElement(_e.ZP,{type:"link",onClick:()=>{he([])}},"\u91CD\u7F6E")))),Zn=At==="\u9ED8\u8BA4\u6392\u5E8F";return St.createElement("div",{className:we.searchSortControllerContainer},!!(xe!=null&&xe.length)&&St.createElement("div",null,St.createElement(fe.Z,{dropdownRender:()=>St.createElement(Ut.default,{selectedKeys:[At]},xe.map(qn=>St.createElement(Ut.default.Item,{key:qn.name,onClick:()=>ii(qn)},qn.name)))},St.createElement("div",null,St.createElement("span",{className:`${we.btn} ${Zn?we.btnSort:""}`},St.createElement("i",{className:"iconfont icon-paixu font14 mr5"}),At)))),Zn&&St.createElement(je.Z,{title:"\u4F18\u5148\u6309\u7167\u8C03\u6574\u6392\u5E8F\u7ED3\u679C\u5C55\u793A\uFF0C\u672A\u8BBE\u7F6E\u6392\u5E8F\u65F6\uFF0C\u6309\u7167\u521B\u5EFA\u65F6\u95F4\u964D\u5E8F\u6392\u5217"},St.createElement("span",{className:we.tips},St.createElement("i",{className:"iconfont icon-a-wenhaobeifen2"}))),Re&&St.createElement(ie.default,{defaultValue:"",onChange:En,style:{width:160,marginLeft:"auto",marginRight:"20px"},options:[{value:"",label:"\u5168\u90E8\u8003\u8BD5\u6A21\u5F0F"},{value:!0,label:"\u6B63\u5F0F\u8003\u8BD5"},{value:!1,label:"\u6A21\u62DF\u8003\u8BD5"}]}),St.createElement(Ne.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\u8FDB\u884C\u641C\u7D22",onSearch:$t,style:{width:220,marginLeft:Re?"":"auto"}}),(0,Le.eB)()&&ue&&St.createElement(fe.Z,{dropdownRender:()=>Dn,open:fn,onOpenChange:qn=>{bn(qn)}},St.createElement("a",null,"\u5206\u73ED",fn?St.createElement(Pe.Z,{style:{marginLeft:6}}):St.createElement(Ie.Z,{style:{marginLeft:6}}))))}},62202:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{Z:function(){return Ie}});var St=Ft(59301),Ut=Ft(95237),Me=Ft(43604),_e=Ft(20834),fe=Ft(38854),je=Ft(8591),ie=Ft(6848),Ne={tabMenuContainer:"tabMenuContainer___uf5IP",control:"control___GheLs",iconH:"iconH___Wzw_r",selectBtn:"selectBtn___mfEnI",selectBtn1:"selectBtn1___rJF8S"},we=Ft(89070),Le=Ft(24065),Ie=({isLoading:Ue,addText:Tt,tabDataSource:et,isAdmin:nt,dispatch:dt,classroomList:lt,type:pt,isExercise:vt,defaultSelectedKeys:Lt,onTabMenuClick:At,getDropdownMenu:kt,showControlButton:Kt,buttonText:$t,buttonIcon:ne="icon-tianjiadaohang",extraNode:qt,user:ue,onButtonClick:ae,isModelUser:Fe,menuItemWidth:xe=125})=>{var Re,En,fn,bn,cn;const he=(0,we.useParams)();return St.createElement("div",{className:Ne.tabMenuContainer},St.createElement(Ut.Z,null,St.createElement(Me.Z,{flex:"1"},St.createElement(_e.default,{onSelect:Qt=>Ue?{}:At(Qt),mode:"horizontal",selectedKeys:Lt},et.map(Qt=>St.createElement(_e.default.Item,{style:{width:xe},key:typeof Qt.index=="number"?Qt.index:Qt.id},St.createElement("span",{className:"c-grey-666"},Qt.name),Qt.total!==void 0&&nt&&St.createElement("span",{className:"c-grey-999 ml20"},Qt.total||0))))),nt&&vt&&St.createElement("i",{className:"iconfont icon-shezhi8",style:{display:"flex",alignItems:"center",cursor:"pointer"},onClick:()=>{dt({type:"classroomList/setActionTabs",payload:{key:"\u5728\u7EBF\u8003\u8BD5\u8BBE\u7F6E"}})}}),nt&&St.createElement(Me.Z,{className:"mr20 gutter-row",style:{display:"flex",alignItems:"center",color:"#0152d9",paddingBottom:3}},vt&&St.createElement(fe.Z,{className:"mr15",placement:"bottom",arrow:!0,dropdownRender:()=>St.createElement(_e.default,null,St.createElement(_e.default.Item,{key:1,onClick:()=>{var Qt;if((0,Le.Rm)()&&!((Qt=lt.AssistantObject.exercise)!=null&&Qt.can_download)){je.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}dt({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u6210\u7EE9",type:pt,exportType:"exercise",category_id:he.categoryId}})}},"\u5B66\u751F\u6210\u7EE9"),St.createElement(_e.default.Item,{key:3,onClick:()=>{var Qt;if((0,Le.Rm)()&&!((Qt=lt.AssistantObject.exercise)!=null&&Qt.can_download)){je.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}we.history.push(`/classrooms/${he==null?void 0:he.coursesId}/exportlist/exercise_score,export_exercise_users`)}},"\u5386\u53F2\u5BFC\u51FA"))},St.createElement("div",{className:"c-blue font16 ml20 current",style:{marginTop:2}},St.createElement("span",{style:{color:"#666666",cursor:"pointer"}},St.createElement("i",{className:"iconfont icon-xiazai6"})))),St.createElement("div",{className:Ne.control},St.createElement("div",{className:Ne.extra},qt),Kt&&($t=="\u6DFB\u52A0\u76F4\u64AD"?St.createElement(fe.Z,{menu:{items:(En=(Re=[{label:St.createElement("div",{onClick:()=>{ae("\u5916\u94FE")}},"\u5916\u94FE\u76F4\u64AD"),key:"1",show:!0},Fe&&{label:St.createElement("div",{onClick:()=>{ae("\u5934\u6B4C")}},"\u5934\u6B4C\u76F4\u64AD"),key:"2",show:!0}])==null?void 0:Re.filter(Qt=>Qt==null?void 0:Qt.show))==null?void 0:En.map(Qt=>({label:Qt==null?void 0:Qt.label,key:Qt==null?void 0:Qt.key}))}},St.createElement("span",{className:Ne.selectBtn},St.createElement("span",null,St.createElement("i",{className:`iconfont ${ne}`})),St.createElement("span",null,$t))):St.createElement("span",{onClick:ae,style:{cursor:"pointer"},className:Ne.selectBtn},St.createElement("span",null,St.createElement("i",{className:`iconfont ${ne}`})),St.createElement("span",null,$t))),!!kt&&St.createElement(fe.Z,{disabled:((fn=ue==null?void 0:ue.userInfo)==null?void 0:fn.user_status)===2,className:"ml10",dropdownRender:kt},St.createElement("span",{className:((bn=ue==null?void 0:ue.userInfo)==null?void 0:bn.user_status)===2?Ne.selectBtn1:Ne.selectBtn},St.createElement("span",null,St.createElement("i",{className:"iconfont icon-tianjiadaohang"})),St.createElement(ie.Z,{title:((cn=ue==null?void 0:ue.userInfo)==null?void 0:cn.user_status)===2&&"\u6559\u5B66\u8BFE\u5802\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u5E73\u53F0\u5DF2\u6682\u505C\u63D0\u4F9B\u5728\u7EBF\u8003\u8BD5\u521B\u5EFA\u529F\u80FD"},St.createElement("span",null,Tt||"\u521B\u5EFA\u8BD5\u5377"))))))))}},97177:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{Z:function(){return ie}});var St=Ft(59301),Ut=Ft.p+"static/modelContact.7a7eb113.png",Me=Ft(91785),_e=Ft(24065),fe=Ft(59301),ie=()=>{const[Ne,we]=(0,St.useState)(!1);return{verifyModelUser:()=>(0,_e.$O)()?!0:(we(!0),!1),ContactModalElement:()=>fe.createElement(Me.Z,{visible:Ne,setVisible:we,image:Ut}),contactOpen:Ne,setContactOpen:we}}},24768:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{AL:function(){return Lt},Iy:function(){return Pe},Qv:function(){return Tt},ez:function(){return vt},jb:function(){return Ie}});var St=Ft(32834),Ut=Ft.n(St),Me=Ft(11690),_e=Ft.n(Me);let fe=1;function je(ne,qt){const ue=ne.match(/^(\s+)(?:```)/);if(ue===null)return qt;const ae=ue[1];return qt.split(` `).map(Fe=>{const xe=Fe.match(/^\s+/);if(xe===null)return Fe;const[Re]=xe;return Re.length>=ae.length?Fe.slice(ae.length):Fe}).join(` `)}let ie=[],Ne=["
          "];const we=new(Ut()).Renderer,Le=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Pe(){ie.length=0,Ne=["
            "]}const Ie={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Ue(ne,qt,ue,ae){if(qt>=ne.length||ne[qt].level<=ue)return qt;var Fe=ne[qt];ae.push("
          • "+Fe.text+""),qt++;var xe=[];return qt=Ue(ne,qt,Fe.level,xe),xe.length>0&&(ae.push("
              "),xe.forEach(function(Re){ae.push(Re)}),ae.push("
            ")),ae.push("
          • "),qt=Ue(ne,qt,ue,ae),qt}function Tt(){return Ue(ie,0,0,Ne),Ne.push("
          "),Ne.join("")}const et={heading(ne){const qt=Le.exec(ne);if(fe+=1,qt)return{type:"heading",raw:qt[0],depth:qt[1].length,text:qt[2]}},fences(ne){const qt=this.rules.block.fences.exec(ne);if(qt){const ue=qt[0];let ae=je(ue,qt[3]||"");const Fe=qt[2]?qt[2].trim():qt[2];if(["latex","katex","math"].indexOf(Fe)>=0){const xe=lt(),Re=ae;ae=xe,pt[xe]={type:"block",expression:Re}}return{type:"code",raw:ue,lang:Fe,text:ae}}}},nt=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let dt=0;const lt=()=>`__special_katext_id_${dt++}__`;let pt={};function vt(){return pt}function Lt(){dt=0,pt={}}function At(ne){return ne=ne.replace(nt,(qt,ue)=>{const ae=lt();return pt[ae]={type:"inline",expression:ue},ae}),ne}const kt=we.listitem;we.listitem=function(ne){return kt(At(ne))};const Kt=we.paragraph;we.paragraph=function(ne){return Kt(At(ne))};const $t=we.tablecell;we.tablecell=function(ne,qt){return $t(At(ne),qt)},we.code=function(ne,qt,ue){const ae=(qt||"").match(/\S*/)[0];return ae?["latex","katex","math"].indexOf(ae)>=0?`

          ${ne}

          `:`
          ${ue?ne:(0,Me.escape)(ne,!0)}
          -`:'
          '+(ue?ne:(0,Me.escape)(ne,!0))+"
          "},we.heading=function(ne,qt,ue){let ae=this.options.headerPrefix+ue.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return ie.push({anchor:ae,level:qt,text:ne}),"'+ne+""},Ut().setOptions({silent:!0,gfm:!0,pedantic:!1}),Ut().use({tokenizer:et,renderer:we}),Fn.ZP=Ut()},77578:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{Z:function(){return St}});const St=Ut=>Ut?typeof Ut=="function"?Ut():Ut:null},27666:function(tn,Fn,Ft){"use strict";var St=Ft(80702),Ut=Ft(16089);function Me(_e){let fe;const je=Ne=>()=>{fe=null,_e.apply(void 0,(0,St.Z)(Ne))},ie=function(){if(fe==null){for(var Ne=arguments.length,we=new Array(Ne),Le=0;Le{Ut.Z.cancel(fe),fe=null},ie}Fn.Z=Me},81228:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{Z:function(){return Kt}});var St=Ft(96949),Ut=Ft(55090),Me=Ft(77205),_e=Ft(38793),fe=Ft(59301),je=Ft(92310),ie=Ft.n(je),Ne=Ft(29301),we=Ft(2738),Le=Ft(27666),Pe=Ft(36355),Ie=Ft(83116),Ue=Ft(37613);const Tt=$t=>{const{componentCls:ne}=$t;return{[ne]:{position:"fixed",zIndex:$t.zIndexPopup}}};var et=(0,Ie.Z)("Affix",$t=>{const ne=(0,Ue.TS)($t,{zIndexPopup:$t.zIndexBase+10});return[Tt(ne)]});function nt($t){return $t!==window?$t.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function dt($t,ne,qt){if(qt!==void 0&&ne.top>$t.top-qt)return qt+ne.top}function lt($t,ne,qt){if(qt!==void 0&&ne.bottom<$t.bottom+qt){const ue=window.innerHeight-ne.bottom;return qt+ue}}const pt=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"];function vt(){return typeof window!="undefined"?window:null}var Lt;(function($t){$t[$t.None=0]="None",$t[$t.Prepare=1]="Prepare"})(Lt||(Lt={}));let At=function($t){(0,Me.Z)(qt,$t);var ne=(0,_e.Z)(qt);function qt(){var ue;return(0,St.Z)(this,qt),ue=ne.apply(this,arguments),ue.state={status:Lt.None,lastAffix:!1,prevTarget:null},ue.placeholderNodeRef=(0,fe.createRef)(),ue.fixedNodeRef=(0,fe.createRef)(),ue.addListeners=()=>{const ae=ue.getTargetFunc(),Fe=ae==null?void 0:ae(),{prevTarget:xe}=ue.state;xe!==Fe&&(pt.forEach(Re=>{xe==null||xe.removeEventListener(Re,ue.lazyUpdatePosition),Fe==null||Fe.addEventListener(Re,ue.lazyUpdatePosition)}),ue.updatePosition(),ue.setState({prevTarget:Fe}))},ue.removeListeners=()=>{ue.timer&&(clearTimeout(ue.timer),ue.timer=null);const{prevTarget:ae}=ue.state,Fe=ue.getTargetFunc(),xe=Fe==null?void 0:Fe();pt.forEach(Re=>{xe==null||xe.removeEventListener(Re,ue.lazyUpdatePosition),ae==null||ae.removeEventListener(Re,ue.lazyUpdatePosition)}),ue.updatePosition.cancel(),ue.lazyUpdatePosition.cancel()},ue.getOffsetTop=()=>{const{offsetBottom:ae,offsetTop:Fe}=ue.props;return ae===void 0&&Fe===void 0?0:Fe},ue.getOffsetBottom=()=>ue.props.offsetBottom,ue.measure=()=>{const{status:ae,lastAffix:Fe}=ue.state,{onChange:xe}=ue.props,Re=ue.getTargetFunc();if(ae!==Lt.Prepare||!ue.fixedNodeRef.current||!ue.placeholderNodeRef.current||!Re)return;const En=ue.getOffsetTop(),fn=ue.getOffsetBottom(),bn=Re();if(bn){const cn={status:Lt.None},he=nt(ue.placeholderNodeRef.current);if(he.top===0&&he.left===0&&he.width===0&&he.height===0)return;const Qt=nt(bn),Ae=dt(he,Qt,En),Gn=lt(he,Qt,fn);Ae!==void 0?(cn.affixStyle={position:"fixed",top:Ae,width:he.width,height:he.height},cn.placeholderStyle={width:he.width,height:he.height}):Gn!==void 0&&(cn.affixStyle={position:"fixed",bottom:Gn,width:he.width,height:he.height},cn.placeholderStyle={width:he.width,height:he.height}),cn.lastAffix=!!cn.affixStyle,xe&&Fe!==cn.lastAffix&&xe(cn.lastAffix),ue.setState(cn)}},ue.prepareMeasure=()=>{ue.setState({status:Lt.Prepare,affixStyle:void 0,placeholderStyle:void 0})},ue.updatePosition=(0,Le.Z)(()=>{ue.prepareMeasure()}),ue.lazyUpdatePosition=(0,Le.Z)(()=>{const ae=ue.getTargetFunc(),{affixStyle:Fe}=ue.state;if(ae&&Fe){const xe=ue.getOffsetTop(),Re=ue.getOffsetBottom(),En=ae();if(En&&ue.placeholderNodeRef.current){const fn=nt(En),bn=nt(ue.placeholderNodeRef.current),cn=dt(bn,fn,xe),he=lt(bn,fn,Re);if(cn!==void 0&&Fe.top===cn||he!==void 0&&Fe.bottom===he)return}}ue.prepareMeasure()}),ue}return(0,Ut.Z)(qt,[{key:"getTargetFunc",value:function(){const{getTargetContainer:ae}=this.context,{target:Fe}=this.props;return Fe!==void 0?Fe:ae!=null?ae:vt}},{key:"componentDidMount",value:function(){this.timer=setTimeout(this.addListeners)}},{key:"componentDidUpdate",value:function(ae){this.addListeners(),(ae.offsetTop!==this.props.offsetTop||ae.offsetBottom!==this.props.offsetBottom)&&this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"render",value:function(){const{affixStyle:ae,placeholderStyle:Fe}=this.state,{affixPrefixCls:xe,rootClassName:Re,children:En}=this.props,fn=ie()(ae&&Re,{[xe]:!!ae});let bn=(0,we.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls","rootClassName"]);return fe.createElement(Ne.Z,{onResize:this.updatePosition},fe.createElement("div",Object.assign({},bn,{ref:this.placeholderNodeRef}),ae&&fe.createElement("div",{style:Fe,"aria-hidden":"true"}),fe.createElement("div",{className:fn,ref:this.fixedNodeRef,style:ae},fe.createElement(Ne.Z,{onResize:this.updatePosition},En))))}}]),qt}(fe.Component);At.contextType=Pe.E_;var Kt=(0,fe.forwardRef)(($t,ne)=>{const{prefixCls:qt,rootClassName:ue}=$t,{getPrefixCls:ae}=(0,fe.useContext)(Pe.E_),Fe=ae("affix",qt),[xe,Re]=et(Fe),En=Object.assign(Object.assign({},$t),{affixPrefixCls:Fe,rootClassName:ie()(ue,Re)});return xe(fe.createElement(At,Object.assign({},En,{ref:ne})))})},5083:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{default:function(){return Rs}});var St=Ft(61186),Ut=Ft.n(St),Me=Ft(48736),_e=Ft(90111),fe=Ft.n(_e),je=Ft(58319),ie=Ft.n(je),Ne=Ft(23250),we=Ft.n(Ne),Le=Ft(74959),Pe=Ft.n(Le),Ie=Ft(10238),Ue=Ft.n(Ie),Tt=Ft(33656),et=Ft.n(Tt);Ut().extend(et()),Ut().extend(Ue()),Ut().extend(fe()),Ut().extend(ie()),Ut().extend(we()),Ut().extend(Pe()),Ut().extend(function(bt,Ot){var Ht=Ot.prototype,le=Ht.format;Ht.format=function(se){var ye=(se||"").replace("Wo","wo");return le.bind(this)(ye)}});var nt={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},dt=function(Ot){var Ht=nt[Ot];return Ht||Ot.split("_")[0]},lt=function(){(0,Me.ET)(!1,"Not match any format. Please help to fire a issue about this.")},pt={getNow:function(){return Ut()()},getFixedDate:function(Ot){return Ut()(Ot,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(Ot){return Ot.endOf("month")},getWeekDay:function(Ot){var Ht=Ot.locale("en");return Ht.weekday()+Ht.localeData().firstDayOfWeek()},getYear:function(Ot){return Ot.year()},getMonth:function(Ot){return Ot.month()},getDate:function(Ot){return Ot.date()},getHour:function(Ot){return Ot.hour()},getMinute:function(Ot){return Ot.minute()},getSecond:function(Ot){return Ot.second()},addYear:function(Ot,Ht){return Ot.add(Ht,"year")},addMonth:function(Ot,Ht){return Ot.add(Ht,"month")},addDate:function(Ot,Ht){return Ot.add(Ht,"day")},setYear:function(Ot,Ht){return Ot.year(Ht)},setMonth:function(Ot,Ht){return Ot.month(Ht)},setDate:function(Ot,Ht){return Ot.date(Ht)},setHour:function(Ot,Ht){return Ot.hour(Ht)},setMinute:function(Ot,Ht){return Ot.minute(Ht)},setSecond:function(Ot,Ht){return Ot.second(Ht)},isAfter:function(Ot,Ht){return Ot.isAfter(Ht)},isValidate:function(Ot){return Ot.isValid()},locale:{getWeekFirstDay:function(Ot){return Ut()().locale(dt(Ot)).localeData().firstDayOfWeek()},getWeekFirstDate:function(Ot,Ht){return Ht.locale(dt(Ot)).weekday(0)},getWeek:function(Ot,Ht){return Ht.locale(dt(Ot)).week()},getShortWeekDays:function(Ot){return Ut()().locale(dt(Ot)).localeData().weekdaysMin()},getShortMonths:function(Ot){return Ut()().locale(dt(Ot)).localeData().monthsShort()},format:function(Ot,Ht,le){return Ht.locale(dt(Ot)).format(le)},parse:function(Ot,Ht,le){for(var de=dt(Ot),se=0;se1&&(ye=Ot.addDate(ye,-7)),ye}function yn(bt,Ot,Ht){var le=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(Ot){case"year":return Ht.addYear(bt,le*10);case"quarter":case"month":return Ht.addYear(bt,le);default:return Ht.addMonth(bt,le)}}function Rn(bt,Ot){var Ht=Ot.generateConfig,le=Ot.locale,de=Ot.format;return typeof de=="function"?de(bt):Ht.locale.format(le.locale,bt,de)}function ji(bt,Ot){var Ht=Ot.generateConfig,le=Ot.locale,de=Ot.formatList;return!bt||typeof de[0]=="function"?null:Ht.locale.parse(le.locale,bt,de)}function Qi(bt){var Ot=bt.cellDate,Ht=bt.mode,le=bt.disabledDate,de=bt.generateConfig;if(!le)return!1;var se=function(_n,Ve,Ln){for(var Jn=Ve;Jn<=Ln;){var Ei=void 0;switch(_n){case"date":{if(Ei=de.setDate(Ot,Jn),!le(Ei))return!1;break}case"month":{if(Ei=de.setMonth(Ot,Jn),!Qi({cellDate:Ei,mode:"month",generateConfig:de,disabledDate:le}))return!1;break}case"year":{if(Ei=de.setYear(Ot,Jn),!Qi({cellDate:Ei,mode:"year",generateConfig:de,disabledDate:le}))return!1;break}}Jn+=1}return!0};switch(Ht){case"date":case"week":return le(Ot);case"month":{var ye=1,Te=de.getDate(de.getEndDate(Ot));return se("date",ye,Te)}case"quarter":{var Qe=Math.floor(de.getMonth(Ot)/3)*3,rn=Qe+2;return se("month",Qe,rn)}case"year":return se("month",0,11);case"decade":{var jn=de.getYear(Ot),an=Math.floor(jn/pn)*pn,Mn=an+pn-1;return se("year",an,Mn)}}}function Ti(bt,Ot){var Ht=Ot.formatList,le=Ot.generateConfig,de=Ot.locale;return(0,Hi.Z)(function(){if(!bt)return[[""],""];for(var se="",ye=[],Te=0;Te1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(rn.current),Jn){Qe(Ln);return}rn.current=requestAnimationFrame(function(){Qe(Ln)})}var an=Ti(Te,{formatList:Ht,generateConfig:le,locale:de}),Mn=(0,Zn.Z)(an,2),nn=Mn[1];function _n(Ln){jn(Ln)}function Ve(){var Ln=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;jn(null,Ln)}return(0,kt.useEffect)(function(){Ve(!0)},[bt]),(0,kt.useEffect)(function(){return function(){return cancelAnimationFrame(rn.current)}},[]),[nn,_n,Ve]}var Ri=Ft(10228),er=Ft(16089),As=Ft(80702),Or=Ft(29194),jr=new Map;function gr(bt,Ot){var Ht;function le(){(0,Or.Z)(bt)?Ot():Ht=(0,er.Z)(function(){le()})}return le(),function(){er.Z.cancel(Ht)}}function pr(bt,Ot,Ht){if(jr.get(bt)&&cancelAnimationFrame(jr.get(bt)),Ht<=0){jr.set(bt,requestAnimationFrame(function(){bt.scrollTop=Ot}));return}var le=Ot-bt.scrollTop,de=le/Ht*10;jr.set(bt,requestAnimationFrame(function(){bt.scrollTop+=de,bt.scrollTop!==Ot&&pr(bt,Ot,Ht-10)}))}function ps(bt,Ot){var Ht=Ot.onLeftRight,le=Ot.onCtrlLeftRight,de=Ot.onUpDown,se=Ot.onPageUpDown,ye=Ot.onEnter,Te=bt.which,Qe=bt.ctrlKey,rn=bt.metaKey;switch(Te){case Ri.Z.LEFT:if(Qe||rn){if(le)return le(-1),!0}else if(Ht)return Ht(-1),!0;break;case Ri.Z.RIGHT:if(Qe||rn){if(le)return le(1),!0}else if(Ht)return Ht(1),!0;break;case Ri.Z.UP:if(de)return de(-1),!0;break;case Ri.Z.DOWN:if(de)return de(1),!0;break;case Ri.Z.PAGE_UP:if(se)return se(-1),!0;break;case Ri.Z.PAGE_DOWN:if(se)return se(1),!0;break;case Ri.Z.ENTER:if(ye)return ye(),!0;break}return!1}function Yr(bt,Ot,Ht,le){var de=bt;if(!de)switch(Ot){case"time":de=le?"hh:mm:ss a":"HH:mm:ss";break;case"week":de="gggg-wo";break;case"month":de="YYYY-MM";break;case"quarter":de="YYYY-[Q]Q";break;case"year":de="YYYY";break;default:de=Ht?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return de}function Xr(bt,Ot,Ht){var le=bt==="time"?8:10,de=typeof Ot=="function"?Ot(Ht.getNow()).length:Ot.length;return Math.max(le,de)+2}var qi=null,Ct=new Set;function Na(bt){return!qi&&typeof window!="undefined"&&window.addEventListener&&(qi=function(Ht){(0,As.Z)(Ct).forEach(function(le){le(Ht)})},window.addEventListener("mousedown",qi)),Ct.add(bt),function(){Ct.delete(bt),Ct.size===0&&(window.removeEventListener("mousedown",qi),qi=null)}}function mr(bt){var Ot=bt.target;if(bt.composed&&Ot.shadowRoot){var Ht;return((Ht=bt.composedPath)===null||Ht===void 0?void 0:Ht.call(bt)[0])||Ot}return Ot}var Ra=function(Ot){return Ot==="month"||Ot==="date"?"year":Ot},za=function(Ot){return Ot==="date"?"month":Ot},da=function(Ot){return Ot==="month"||Ot==="date"?"quarter":Ot},Xa=function(Ot){return Ot==="date"?"week":Ot},ei={year:Ra,month:za,quarter:da,week:Xa,time:null,date:null};function ai(bt,Ot){return bt.some(function(Ht){return Ht&&Ht.contains(Ot)})}function Ee(bt){var Ot=bt.open,Ht=bt.value,le=bt.isClickOutside,de=bt.triggerOpen,se=bt.forwardKeyDown,ye=bt.onKeyDown,Te=bt.blurToCancel,Qe=bt.onSubmit,rn=bt.onCancel,jn=bt.onFocus,an=bt.onBlur,Mn=bt.changeOnBlur,nn=(0,kt.useState)(!1),_n=(0,Zn.Z)(nn,2),Ve=_n[0],Ln=_n[1],Jn=(0,kt.useState)(!1),Ei=(0,Zn.Z)(Jn,2),mi=Ei[0],bi=Ei[1],Ni=(0,kt.useRef)(!1),ki=(0,kt.useRef)(!1),Un=(0,kt.useRef)(!1),Co={onMouseDown:function(){Ln(!0),de(!0)},onKeyDown:function(zo){var cr=function(){Un.current=!0};if(ye(zo,cr),!Un.current){switch(zo.which){case Ri.Z.ENTER:{Ot?Qe()!==!1&&Ln(!0):de(!0),zo.preventDefault();return}case Ri.Z.TAB:{Ve&&Ot&&!zo.shiftKey?(Ln(!1),zo.preventDefault()):!Ve&&Ot&&!se(zo)&&zo.shiftKey&&(Ln(!0),zo.preventDefault());return}case Ri.Z.ESC:{Ln(!0),rn();return}}!Ot&&![Ri.Z.SHIFT].includes(zo.which)?de(!0):Ve||se(zo)}},onFocus:function(zo){Ln(!0),bi(!0),jn&&jn(zo)},onBlur:function(zo){if(Ni.current||!le(document.activeElement)){Ni.current=!1;return}Te?setTimeout(function(){for(var cr=document,fr=cr.activeElement;fr&&fr.shadowRoot;)fr=fr.shadowRoot.activeElement;le(fr)&&rn()},0):Ot&&(de(!1),ki.current&&Qe()),bi(!1),an==null||an(zo)}};return(0,kt.useEffect)(function(){ki.current=!1},[Ot]),(0,kt.useEffect)(function(){ki.current=!0},[Ht]),(0,kt.useEffect)(function(){return Na(function(co){var zo=mr(co),cr=le(zo);Ot&&(cr?!Mn&&(!mi||cr)&&de(!1):(Ni.current=!0,(0,er.Z)(function(){Ni.current=!1})))})}),[Co,{focused:mi,typing:Ve}]}function pe(bt,Ot){return kt.useMemo(function(){return bt||(Ot?((0,Me.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(Ot).map(function(Ht){var le=(0,Zn.Z)(Ht,2),de=le[0],se=le[1];return{label:de,value:se}})):[])},[bt,Ot])}var ve=Ft(34280);function Wn(bt){var Ot=bt.valueTexts,Ht=bt.onTextChange,le=kt.useState(""),de=(0,Zn.Z)(le,2),se=de[0],ye=de[1],Te=kt.useRef([]);Te.current=Ot;function Qe(jn){ye(jn),Ht(jn)}function rn(){ye(Te.current[0])}return(0,ve.Z)(function(){Ot.every(function(jn){return jn!==se})&&rn()},[Ot.join("||")]),[se,Qe,rn]}var On=kt.createContext({}),Kn=On,Ge=Ft(62853);function Tn(bt){var Ot=bt.cellRender,Ht=bt.monthCellRender,le=bt.dateRender,de=kt.useMemo(function(){if(Ot)return Ot;if(!(!Ht&&!le))return function(se,ye){var Te=se;return le&&ye.type==="date"?le(Te,ye.today):Ht&&ye.type==="month"?Ht(Te,ye.locale):ye.originNode}},[Ot,Ht,le]);return de}function Si(bt,Ot){for(var Ht=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",le=String(bt);le.length=1?Ht|0:1,ye=bt;ye<=Ot;ye+=se)de.push({label:Si(ye,2),value:ye,disabled:(le||[]).includes(ye)});return de}function hr(bt){var Ot=bt.generateConfig,Ht=bt.prefixCls,le=bt.operationRef,de=bt.activeColumnIndex,se=bt.value,ye=bt.showHour,Te=bt.showMinute,Qe=bt.showSecond,rn=bt.use12Hours,jn=bt.hourStep,an=jn===void 0?1:jn,Mn=bt.minuteStep,nn=Mn===void 0?1:Mn,_n=bt.secondStep,Ve=_n===void 0?1:_n,Ln=bt.disabledHours,Jn=bt.disabledMinutes,Ei=bt.disabledSeconds,mi=bt.disabledTime,bi=bt.hideDisabledOptions,Ni=bt.onSelect,ki=bt.cellRender,Un=bt.locale,Co=[],co="".concat(Ht,"-content"),zo="".concat(Ht,"-time-panel"),cr,fr=se?Ot.getHour(se):-1,ar=fr,ts=se?Ot.getMinute(se):-1,or=se?Ot.getSecond(se):-1,Xo=Ot.getNow(),dr=kt.useMemo(function(){if(mi){var lo=mi(Xo);return[lo.disabledHours,lo.disabledMinutes,lo.disabledSeconds]}return[Ln,Jn,Ei]},[Ln,Jn,Ei,mi,Xo]),zr=(0,Zn.Z)(dr,3),es=zr[0],Cr=zr[1],Gr=zr[2],Ns=Do(0,23,an,es&&es()),fa=(0,Hi.Z)(function(){return Ns},Ns,Ro);rn&&(cr=ar>=12,ar%=12);var Ga=kt.useMemo(function(){if(!rn)return[!1,!1];var lo=[!0,!0];return fa.forEach(function(Cs){var ta=Cs.disabled,Ta=Cs.value;ta||(Ta>=12?lo[1]=!1:lo[0]=!1)}),lo},[rn,fa]),$s=(0,Zn.Z)(Ga,2),ba=$s[0],bo=$s[1],ms=kt.useMemo(function(){return rn?fa.filter(cr?function(lo){return lo.value>=12}:function(lo){return lo.value<12}).map(function(lo){var Cs=lo.value%12,ta=Cs===0?"12":Si(Cs,2);return(0,Dn.Z)((0,Dn.Z)({},lo),{},{label:ta,value:Cs})}):fa},[rn,cr,fa]),Po=Do(0,59,nn,Cr&&Cr(fr)),kr=Do(0,59,Ve,Gr&&Gr(fr,ts)),xr=Ai({value:se,generateConfig:Ot,disabledMinutes:Cr,disabledSeconds:Gr,minutes:Po,seconds:kr,use12Hours:rn});le.current={onUpDown:function(Cs){var ta=Co[de];if(ta)for(var Ta=ta.units.findIndex(function($a){return $a.value===ta.value}),ns=ta.units.length,bs=1;bs2&&arguments[2]!==void 0?arguments[2]:!1;(Qr===Ln||Fs)&&(Bl(Oi),Co&&Co(Oi),xr&&xr(Oi,qo),co&&!me(Qe,Oi,pa)&&!(nn!=null&&nn(Oi))&&co(Oi))},Pa=function(Oi){if(Vl.includes(Qr)){var qo,Fs,_l=Qr==="date";switch(Oi===Ri.Z.PAGE_UP||Oi===Ri.Z.PAGE_DOWN?Fs=_l?Qe.addMonth:Qe.addYear:Fs=_l?Qe.addDate:Qe.addMonth,Oi){case Ri.Z.LEFT:case Ri.Z.PAGE_UP:qo=Fs(Fr,-1);break;case Ri.Z.RIGHT:case Ri.Z.PAGE_DOWN:qo=Fs(Fr,1);break;case Ri.Z.UP:case Ri.Z.DOWN:qo=Fs(Fr,Number("".concat(Oi===Ri.Z.UP?"-":"").concat(_l?ti:_a)));break}if(qo)return!(nn!=null&&nn(qo))}return!0},hu=function(Oi){if(bs.current&&bs.current.onKeyDown){var qo=!0,Fs=Oi.which;if([Ri.Z.LEFT,Ri.Z.RIGHT,Ri.Z.UP,Ri.Z.DOWN,Ri.Z.PAGE_UP,Ri.Z.PAGE_DOWN,Ri.Z.ENTER].includes(Fs)&&(Oi.preventDefault(),Fs!==Ri.Z.ENTER&&Ei===0&&(qo=Pa(Fs))),qo)return bs.current.onKeyDown(Oi)}return(0,Me.ZP)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1},Gs=function(Oi){bs.current&&bs.current.onBlur&&bs.current.onBlur(Oi)};kr&&ta!=="right"&&(kr.current={onKeyDown:hu,onClose:function(){bs.current&&bs.current.onClose&&bs.current.onClose()}}),kt.useEffect(function(){rn&&!Eo.current&&tl(rn)},[rn]),kt.useEffect(function(){Eo.current=!1},[]);var Wa,yo=Tn({cellRender:Ga,monthCellRender:fa,dateRender:Ns}),Hr=(0,Dn.Z)((0,Dn.Z)({},bt),{},{cellRender:yo,operationRef:bs,prefixCls:de,viewDate:Fr,value:pa,onViewDateChange:zs,sourceMode:_o,onPanelChange:Ha,disabledDate:nn});switch(delete Hr.onChange,delete Hr.onSelect,Qr){case"decade":Wa=kt.createElement(Js,(0,At.Z)({},Hr,{onSelect:function(Oi,qo){zs(Oi),Ds(Oi,qo)}}));break;case"year":Wa=kt.createElement(Tl,(0,At.Z)({},Hr,{onSelect:function(Oi,qo){zs(Oi),Ds(Oi,qo)}}));break;case"month":Wa=kt.createElement(Tr,(0,At.Z)({},Hr,{onSelect:function(Oi,qo){zs(Oi),Ds(Oi,qo)}}));break;case"quarter":Wa=kt.createElement(Rr,(0,At.Z)({},Hr,{onSelect:function(Oi,qo){zs(Oi),Ds(Oi,qo)}}));break;case"week":Wa=kt.createElement(qr,(0,At.Z)({},Hr,{onSelect:function(Oi,qo){zs(Oi),Ds(Oi,qo)}}));break;case"time":delete Hr.showTime,Wa=kt.createElement(Ko,(0,At.Z)({},Hr,(0,Ge.Z)(bi)==="object"?bi:null,{onSelect:function(Oi,qo){zs(Oi),Ds(Oi,qo)}}));break;default:bi?Wa=kt.createElement(Sa,(0,At.Z)({},Hr,{onSelect:function(Oi,qo){zs(Oi),Ds(Oi,qo)}})):Wa=kt.createElement(Yn,(0,At.Z)({},Hr,{onSelect:function(Oi,qo){zs(Oi),Ds(Oi,qo)}}))}var Lu,Il,Ca=function(){var Oi=Qe.getNow(),qo=Vo(Qe.getHour(Oi),Qe.getMinute(Oi),Qe.getSecond(Oi),ba?dr:1,bo?es:1,ms?Gr:1),Fs=ro(Qe,Oi,qo[0],qo[1],qo[2]);Ds(Fs,"submit")};Kr||(Lu=th(de,Qr,ki),bi&&Qr!=="date"?Il=null:Il=ss({prefixCls:de,components:ts,needConfirmButton:$s,okDisabled:!pa||nn&&nn(pa),locale:Te,showNow:mi,onNow:$s&&Ca,onOk:function(){pa&&(Ds(pa,"submit",!0),ar&&ar(pa))}}));var nh;if(Ni&&Qr==="date"&&Ln==="date"&&!bi){var du=Qe.getNow(),bd="".concat(de,"-today-btn"),cu=nn&&nn(du);nh=kt.createElement("a",{className:Se()(bd,cu&&"".concat(bd,"-disabled")),"aria-disabled":cu,onClick:function(){cu||Ds(du,"mouse",!0)}},Te.today)}return kt.createElement(Kn.Provider,{value:(0,Dn.Z)((0,Dn.Z)({},Po),{},{mode:Qr,hideHeader:"hideHeader"in bt?Un:Po.hideHeader,hidePrevBtn:Cs&&ta==="right",hideNextBtn:Cs&&ta==="left"})},kt.createElement("div",{tabIndex:Ei,className:Se()("".concat(de,"-panel"),se,(Ot={},(0,re.Z)(Ot,"".concat(de,"-panel-has-range"),Ta&&Ta[0]&&Ta[1]),(0,re.Z)(Ot,"".concat(de,"-panel-has-range-hover"),ns&&ns[0]&&ns[1]),(0,re.Z)(Ot,"".concat(de,"-panel-rtl"),or==="rtl"),Ot)),style:ye,onKeyDown:hu,onBlur:Gs,onMouseDown:cr},Wa,Lu||Il||nh?kt.createElement("div",{className:"".concat(de,"-footer")},Lu,Il,nh):null))}var Sr=Zl,Is=Ft(35593),eh={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function xa(bt){var Ot,Ht=bt.prefixCls,le=bt.popupElement,de=bt.popupStyle,se=bt.visible,ye=bt.dropdownClassName,Te=bt.dropdownAlign,Qe=bt.transitionName,rn=bt.getPopupContainer,jn=bt.children,an=bt.range,Mn=bt.popupPlacement,nn=bt.direction,_n="".concat(Ht,"-dropdown"),Ve=function(){return Mn!==void 0?Mn:nn==="rtl"?"bottomRight":"bottomLeft"};return kt.createElement(Is.Z,{showAction:[],hideAction:[],popupPlacement:Ve(),builtinPlacements:eh,prefixCls:_n,popupTransitionName:Qe,popup:le,popupAlign:Te,popupVisible:se,popupClassName:Se()(ye,(Ot={},(0,re.Z)(Ot,"".concat(_n,"-range"),an),(0,re.Z)(Ot,"".concat(_n,"-rtl"),nn==="rtl"),Ot)),popupStyle:de,getPopupContainer:rn},jn)}var ju=xa;function Os(bt){var Ot=bt.prefixCls,Ht=bt.presets,le=bt.onClick,de=bt.onHover;return Ht.length?kt.createElement("div",{className:"".concat(Ot,"-presets")},kt.createElement("ul",null,Ht.map(function(se,ye){var Te=se.label,Qe=se.value;return kt.createElement("li",{key:ye,onClick:function(){return le==null?void 0:le(li(Qe))},onMouseEnter:function(){return de==null?void 0:de(li(Qe))},onMouseLeave:function(){return de==null?void 0:de(null)}},Te)}))):null}function gi(bt){var Ot=bt.picker,Ht=bt.disabledHours,le=bt.disabledMinutes,de=bt.disabledSeconds;Ot==="time"&&(Ht||le||de)&&warning(!1,"'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.")}function Kl(bt,Ot,Ht){var le=(0,Ge.Z)(Ot)==="object"?Ot.clearIcon:Ht;return le||kt.createElement("span",{className:"".concat(bt,"-clear-btn")})}function Oh(bt){var Ot,Ht=bt,le=Ht.prefixCls,de=le===void 0?"rc-picker":le,se=Ht.id,ye=Ht.name,Te=Ht.tabIndex,Qe=Ht.style,rn=Ht.className,jn=Ht.dropdownClassName,an=Ht.dropdownAlign,Mn=Ht.popupStyle,nn=Ht.transitionName,_n=Ht.generateConfig,Ve=Ht.locale,Ln=Ht.inputReadOnly,Jn=Ht.allowClear,Ei=Ht.autoFocus,mi=Ht.showTime,bi=Ht.picker,Ni=bi===void 0?"date":bi,ki=Ht.format,Un=Ht.use12Hours,Co=Ht.value,co=Ht.defaultValue,zo=Ht.presets,cr=Ht.open,fr=Ht.defaultOpen,ar=Ht.defaultOpenValue,ts=Ht.suffixIcon,or=Ht.clearIcon,Xo=Ht.disabled,dr=Ht.disabledDate,zr=Ht.placeholder,es=Ht.getPopupContainer,Cr=Ht.pickerRef,Gr=Ht.panelRender,Ns=Ht.onChange,fa=Ht.onOpenChange,Ga=Ht.onFocus,$s=Ht.onBlur,ba=Ht.onMouseDown,bo=Ht.onMouseUp,ms=Ht.onMouseEnter,Po=Ht.onMouseLeave,kr=Ht.onContextMenu,xr=Ht.onClick,Kr=Ht.onKeyDown,qa=Ht.onSelect,lo=Ht.direction,Cs=Ht.autoComplete,ta=Cs===void 0?"off":Cs,Ta=Ht.inputRender,ns=Ht.changeOnBlur,bs=kt.useRef(null),Eo=Ni==="date"&&!!mi||Ni==="time",$a=pe(zo),Xl=ao(Yr(ki,Ni,mi,Un)),pa=kt.useRef(null),Bl=kt.useRef(null),Ch=kt.useRef(null),Ms=(0,qn.Z)(null,{value:Co,defaultValue:co}),Fr=(0,Zn.Z)(Ms,2),tl=Fr[0],zs=Fr[1],Jl=kt.useState(tl),ma=(0,Zn.Z)(Jl,2),Br=ma[0],Qr=ma[1],Ts=kt.useRef(null),Ls=(0,qn.Z)(!1,{value:cr,defaultValue:fr,postState:function(uo){return Xo?!1:uo},onChange:function(uo){fa&&fa(uo),!uo&&Ts.current&&Ts.current.onClose&&Ts.current.onClose()}}),wa=(0,Zn.Z)(Ls,2),_o=wa[0],ra=wa[1],Ha=Ti(Br,{formatList:Xl,generateConfig:_n,locale:Ve}),Ds=(0,Zn.Z)(Ha,2),Pa=Ds[0],hu=Ds[1],Gs=Wn({valueTexts:Pa,onTextChange:function(uo){var Fa=ji(uo,{locale:Ve,formatList:Xl,generateConfig:_n});Fa&&(!dr||!dr(Fa))&&Qr(Fa)}}),Wa=(0,Zn.Z)(Gs,3),yo=Wa[0],Hr=Wa[1],Lu=Wa[2],Il=function(uo){Qr(uo),zs(uo),Ns&&!me(_n,tl,uo)&&Ns(uo,uo?Rn(uo,{generateConfig:_n,locale:Ve,format:Xl[0]}):"")},Ca=function(uo){Xo&&uo||ra(uo)},nh=function(uo){return _o&&Ts.current&&Ts.current.onKeyDown?Ts.current.onKeyDown(uo):((0,Me.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},du=function(){for(var uo=arguments.length,Fa=new Array(uo),va=0;vaMn(rn);case"month":return an(Ve)>an(rn);case"week":return jn(Ve)>jn(rn);default:return!Bt(Te,Ve,rn)&&Te.isAfter(Ve,rn)}return!1},[se,ye[1],rn,Ot]),_n=kt.useCallback(function(Ve){if(ye[1]||se&&se(Ve))return!0;if(ye[0]&&Qe)return!Bt(Te,Ve,rn)&&Te.isAfter(Qe,Ve);if(!Ot&&Qe)switch(Ht){case"quarter":return Mn(Ve)0&&arguments[0]!==void 0?arguments[0]:!1,Xi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},So=null;Bs&&Yh&&Yh[0]&&Yh[1]&&Ve.isAfter(Yh[1],Yh[0])&&(So=Yh);var Mr=Un;if(Un&&(0,Ge.Z)(Un)==="object"&&Un.defaultValue){var Ks=Un.defaultValue;Mr=(0,Dn.Z)((0,Dn.Z)({},Un),{},{defaultValue:oe(Ks,Oo)||void 0})}return kt.createElement(dn.Provider,{value:{inRange:!0,panelPosition:Ar,rangedValue:ah||To,hoverRangedValue:So}},kt.createElement(Sr,(0,At.Z)({},bt,Xi,{cellRender:tg,showTime:Mr,mode:_l[Oo],generateConfig:Ve,style:void 0,direction:Fr,disabledDate:Oo===0?Td:dd,disabledTime:function(el){return dr?dr(el,Oo===0?"start":"end"):!1},className:Se()((0,re.Z)({},"".concat(ye,"-panel-focused"),Oo===0?!qc:!md)),value:oe(To,Oo),locale:Ln,tabIndex:-1,onPanelChange:function(el,hh){Oo===0&&Kc(!0),Oo===1&&Uh(!0),ih(mn(_l,hh,Oo),mn(To,el,Oo));var ku=el;Ar==="right"&&_l[Oo]===hh&&(ku=yn(ku,hh,Ve,-1)),du(ku,Oo)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:Oo===0?oe(To,1):oe(To,0)})))}var tu=0,ng=0;if(Oo&&Ls.current&&_o.current&&Ts.current&&Ds.current){tu=Ls.current.offsetWidth+_o.current.offsetWidth;var Bg=Ds.current.offsetLeft>tu?Ds.current.offsetLeft-tu:Ds.current.offsetLeft,ig=Ts.current.offsetWidth,Eu=Ds.current.offsetWidth;ig&&Eu&&tu>ig-Eu-(Fr==="rtl"?0:Bg)&&(ng=tu)}var Sf=Fr==="rtl"?{right:tu}:{left:tu};function Ig(){var Ar,Xi=th(ye,_l[Oo],xr),So=ss({prefixCls:ye,components:Ch,needConfirmButton:Br,okDisabled:!oe(To,Oo)||Xo&&Xo(To[Oo]),locale:Ln,onOk:function(){var Au=oe(To,Oo);Au&&(va(To,Oo),pa==null||pa(To),Ol(!1,Oo,"confirm"))}});if(ki!=="time"&&!Un){var Mr=nh(Oo),Ks=yn(Mr,ki,Ve),kh=_l[Oo],el=kh===ki,hh=jd(el?"left":!1,{pickerValue:Mr,onPickerValueChange:function(Au){du(Au,Oo)}}),ku=jd("right",{pickerValue:Ks,onPickerValueChange:function(Au){du(yn(Au,ki,Ve,-1),Oo)}});Fr==="rtl"?Ar=kt.createElement(kt.Fragment,null,ku,el&&hh):Ar=kt.createElement(kt.Fragment,null,hh,el&&ku)}else Ar=jd();var zd=kt.createElement("div",{className:"".concat(ye,"-panel-layout")},kt.createElement(Os,{prefixCls:ye,presets:eg,onClick:function(Au){va(Au,null),Ol(!1,Oo,"preset")},onHover:function(Au){ff(Au)}}),kt.createElement("div",null,kt.createElement("div",{className:"".concat(ye,"-panels")},Ar),(Xi||So)&&kt.createElement("div",{className:"".concat(ye,"-footer")},Xi,So)));return Gr&&(zd=Gr(zd)),kt.createElement("div",{className:"".concat(ye,"-panel-container"),style:{marginLeft:ng},ref:Ts,onMouseDown:function(Au){Au.preventDefault()}},zd)}var Rd=kt.createElement("div",{className:Se()("".concat(ye,"-range-wrapper"),"".concat(ye,"-").concat(ki,"-range-wrapper")),style:{minWidth:Zs}},kt.createElement("div",{ref:Ds,className:"".concat(ye,"-range-arrow"),style:Sf}),Ig()),Zh;ba&&(Zh=kt.createElement("span",{className:"".concat(ye,"-suffix"),onMouseDown:function(Xi){Xi.preventDefault()}},ba));var Og=Kl(ye,$s,bo),Yu=kt.createElement("span",{onMouseDown:function(Xi){Xi.preventDefault(),Xi.stopPropagation()},onMouseUp:function(Xi){Xi.preventDefault(),Xi.stopPropagation();var So=Hr;Gs[0]||(So=mn(So,null,0)),Gs[1]||(So=mn(So,null,1)),va(So,null),Ol(!1,Oo,"clear")},className:"".concat(ye,"-clear"),role:"button"},Og),jg=$s&&(oe(Hr,0)&&!Gs[0]||oe(Hr,1)&&!Gs[1]),mc={size:Xr(ki,Pa[0],Ve)},og=0,vc=0;Ls.current&&wa.current&&_o.current&&(Oo===0?vc=Ls.current.offsetWidth:(og=tu,vc=wa.current.offsetWidth));var Rg=Fr==="rtl"?{right:og}:{left:og},ap=function(Xi,So){var Mr=mn(To,Xi,Oo);if(So==="submit"||So!=="key"&&!Br){va(Mr,Oo),Oo===0?Kc():Uh();var Ks=Oo===0?1:0;Gs[Ks]?Ol(!1,!1,"confirm"):Ol(!1,Oo,"confirm")}else Oi(Mr)};return kt.createElement(Kn.Provider,{value:{operationRef:hu,hideHeader:ki==="time",onDateMouseEnter:bg,onDateMouseLeave:lh,hideRanges:!0,onSelect:ap,open:Bs}},kt.createElement(ju,{visible:Bs,popupElement:Rd,popupStyle:jn,prefixCls:ye,dropdownClassName:an,dropdownAlign:nn,getPopupContainer:_n,transitionName:Mn,range:!0,direction:Fr},kt.createElement("div",(0,At.Z)({ref:Qr,className:Se()(ye,"".concat(ye,"-range"),rn,(Ot={},(0,re.Z)(Ot,"".concat(ye,"-disabled"),Gs[0]&&Gs[1]),(0,re.Z)(Ot,"".concat(ye,"-focused"),Oo===0?Ml:pd),(0,re.Z)(Ot,"".concat(ye,"-rtl"),Fr==="rtl"),Ot)),style:Qe,onClick:Dg,onMouseEnter:Eo,onMouseLeave:$a,onMouseDown:Od,onMouseUp:bs},(0,ni.Z)(bt,{aria:!0,data:!0})),kt.createElement("div",{className:Se()("".concat(ye,"-input"),(Ht={},(0,re.Z)(Ht,"".concat(ye,"-input-active"),Oo===0),(0,re.Z)(Ht,"".concat(ye,"-input-placeholder"),!!Zc),Ht)),ref:Ls},kt.createElement("input",(0,At.Z)({id:Te,disabled:Gs[0],readOnly:Po||typeof Pa[0]=="function"||!qc,value:Zc||Fd,onChange:function(Xi){Hh(Xi.target.value)},autoFocus:Ei,placeholder:oe(Jn,0)||"",ref:ra},yf,mc,{autoComplete:Jl}))),kt.createElement("div",{className:"".concat(ye,"-range-separator"),ref:_o},zo),kt.createElement("div",{className:Se()("".concat(ye,"-input"),(le={},(0,re.Z)(le,"".concat(ye,"-input-active"),Oo===1),(0,re.Z)(le,"".concat(ye,"-input-placeholder"),!!Xc),le)),ref:wa},kt.createElement("input",(0,At.Z)({disabled:Gs[1],readOnly:Po||typeof Pa[0]=="function"||!md,value:Xc||dc,onChange:function(Xi){cc(Xi.target.value)},placeholder:oe(Jn,1)||"",ref:Ha},$c,mc,{autoComplete:Jl}))),kt.createElement("div",{className:"".concat(ye,"-active-bar"),style:(0,Dn.Z)((0,Dn.Z)({},Rg),{},{width:vc,position:"absolute"})}),Zh,jg&&Yu)))}var yi=function(bt){(0,Hn.Z)(Ht,bt);var Ot=(0,ii.Z)(Ht);function Ht(){var le;(0,sn.Z)(this,Ht);for(var de=arguments.length,se=new Array(de),ye=0;ye{const{lineHeight:de}=bt,se=Math.floor(Ht*de)+2,ye=Math.max((Ot-se)/2,0),Te=Math.max(Ot-se-ye,0);return{padding:`${ye}px ${le}px ${Te}px`}},ka=bt=>{const{componentCls:Ot,pickerCellCls:Ht,pickerCellInnerCls:le,cellHeight:de,motionDurationSlow:se,borderRadiusSM:ye,motionDurationMid:Te,cellHoverBg:Qe,lineWidth:rn,lineType:jn,colorPrimary:an,cellActiveWithRangeBg:Mn,colorTextLightSolid:nn,controlHeightSM:_n,cellRangeBorderColor:Ve,pickerCellBorderGap:Ln,cellHoverWithRangeBg:Jn,cellWidth:Ei,colorTextDisabled:mi,cellBgDisabled:bi}=bt;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:de,transform:"translateY(-50%)",transition:`all ${se}`,content:'""'},[le]:{position:"relative",zIndex:2,display:"inline-block",minWidth:de,height:de,lineHeight:`${de}px`,borderRadius:ye,transition:`background ${Te}, border ${Te}`},"&-range-hover-start, &-range-hover-end":{[le]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:hover:not(${Ht}-in-view), +`:'
          '+(ue?ne:(0,Me.escape)(ne,!0))+"
          "},we.heading=function(ne,qt,ue){let ae=this.options.headerPrefix+ue.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return ie.push({anchor:ae,level:qt,text:ne}),"'+ne+""},Ut().setOptions({silent:!0,gfm:!0,pedantic:!1}),Ut().use({tokenizer:et,renderer:we}),Fn.ZP=Ut()},77578:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{Z:function(){return St}});const St=Ut=>Ut?typeof Ut=="function"?Ut():Ut:null},27666:function(tn,Fn,Ft){"use strict";var St=Ft(80702),Ut=Ft(16089);function Me(_e){let fe;const je=Ne=>()=>{fe=null,_e.apply(void 0,(0,St.Z)(Ne))},ie=function(){if(fe==null){for(var Ne=arguments.length,we=new Array(Ne),Le=0;Le{Ut.Z.cancel(fe),fe=null},ie}Fn.Z=Me},81228:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{Z:function(){return Kt}});var St=Ft(96949),Ut=Ft(55090),Me=Ft(77205),_e=Ft(38793),fe=Ft(59301),je=Ft(92310),ie=Ft.n(je),Ne=Ft(29301),we=Ft(2738),Le=Ft(27666),Pe=Ft(36355),Ie=Ft(83116),Ue=Ft(37613);const Tt=$t=>{const{componentCls:ne}=$t;return{[ne]:{position:"fixed",zIndex:$t.zIndexPopup}}};var et=(0,Ie.Z)("Affix",$t=>{const ne=(0,Ue.TS)($t,{zIndexPopup:$t.zIndexBase+10});return[Tt(ne)]});function nt($t){return $t!==window?$t.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function dt($t,ne,qt){if(qt!==void 0&&ne.top>$t.top-qt)return qt+ne.top}function lt($t,ne,qt){if(qt!==void 0&&ne.bottom<$t.bottom+qt){const ue=window.innerHeight-ne.bottom;return qt+ue}}const pt=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"];function vt(){return typeof window!="undefined"?window:null}var Lt;(function($t){$t[$t.None=0]="None",$t[$t.Prepare=1]="Prepare"})(Lt||(Lt={}));let At=function($t){(0,Me.Z)(qt,$t);var ne=(0,_e.Z)(qt);function qt(){var ue;return(0,St.Z)(this,qt),ue=ne.apply(this,arguments),ue.state={status:Lt.None,lastAffix:!1,prevTarget:null},ue.placeholderNodeRef=(0,fe.createRef)(),ue.fixedNodeRef=(0,fe.createRef)(),ue.addListeners=()=>{const ae=ue.getTargetFunc(),Fe=ae==null?void 0:ae(),{prevTarget:xe}=ue.state;xe!==Fe&&(pt.forEach(Re=>{xe==null||xe.removeEventListener(Re,ue.lazyUpdatePosition),Fe==null||Fe.addEventListener(Re,ue.lazyUpdatePosition)}),ue.updatePosition(),ue.setState({prevTarget:Fe}))},ue.removeListeners=()=>{ue.timer&&(clearTimeout(ue.timer),ue.timer=null);const{prevTarget:ae}=ue.state,Fe=ue.getTargetFunc(),xe=Fe==null?void 0:Fe();pt.forEach(Re=>{xe==null||xe.removeEventListener(Re,ue.lazyUpdatePosition),ae==null||ae.removeEventListener(Re,ue.lazyUpdatePosition)}),ue.updatePosition.cancel(),ue.lazyUpdatePosition.cancel()},ue.getOffsetTop=()=>{const{offsetBottom:ae,offsetTop:Fe}=ue.props;return ae===void 0&&Fe===void 0?0:Fe},ue.getOffsetBottom=()=>ue.props.offsetBottom,ue.measure=()=>{const{status:ae,lastAffix:Fe}=ue.state,{onChange:xe}=ue.props,Re=ue.getTargetFunc();if(ae!==Lt.Prepare||!ue.fixedNodeRef.current||!ue.placeholderNodeRef.current||!Re)return;const En=ue.getOffsetTop(),fn=ue.getOffsetBottom(),bn=Re();if(bn){const cn={status:Lt.None},he=nt(ue.placeholderNodeRef.current);if(he.top===0&&he.left===0&&he.width===0&&he.height===0)return;const Qt=nt(bn),Ae=dt(he,Qt,En),Gn=lt(he,Qt,fn);Ae!==void 0?(cn.affixStyle={position:"fixed",top:Ae,width:he.width,height:he.height},cn.placeholderStyle={width:he.width,height:he.height}):Gn!==void 0&&(cn.affixStyle={position:"fixed",bottom:Gn,width:he.width,height:he.height},cn.placeholderStyle={width:he.width,height:he.height}),cn.lastAffix=!!cn.affixStyle,xe&&Fe!==cn.lastAffix&&xe(cn.lastAffix),ue.setState(cn)}},ue.prepareMeasure=()=>{ue.setState({status:Lt.Prepare,affixStyle:void 0,placeholderStyle:void 0})},ue.updatePosition=(0,Le.Z)(()=>{ue.prepareMeasure()}),ue.lazyUpdatePosition=(0,Le.Z)(()=>{const ae=ue.getTargetFunc(),{affixStyle:Fe}=ue.state;if(ae&&Fe){const xe=ue.getOffsetTop(),Re=ue.getOffsetBottom(),En=ae();if(En&&ue.placeholderNodeRef.current){const fn=nt(En),bn=nt(ue.placeholderNodeRef.current),cn=dt(bn,fn,xe),he=lt(bn,fn,Re);if(cn!==void 0&&Fe.top===cn||he!==void 0&&Fe.bottom===he)return}}ue.prepareMeasure()}),ue}return(0,Ut.Z)(qt,[{key:"getTargetFunc",value:function(){const{getTargetContainer:ae}=this.context,{target:Fe}=this.props;return Fe!==void 0?Fe:ae!=null?ae:vt}},{key:"componentDidMount",value:function(){this.timer=setTimeout(this.addListeners)}},{key:"componentDidUpdate",value:function(ae){this.addListeners(),(ae.offsetTop!==this.props.offsetTop||ae.offsetBottom!==this.props.offsetBottom)&&this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"render",value:function(){const{affixStyle:ae,placeholderStyle:Fe}=this.state,{affixPrefixCls:xe,rootClassName:Re,children:En}=this.props,fn=ie()(ae&&Re,{[xe]:!!ae});let bn=(0,we.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls","rootClassName"]);return fe.createElement(Ne.Z,{onResize:this.updatePosition},fe.createElement("div",Object.assign({},bn,{ref:this.placeholderNodeRef}),ae&&fe.createElement("div",{style:Fe,"aria-hidden":"true"}),fe.createElement("div",{className:fn,ref:this.fixedNodeRef,style:ae},fe.createElement(Ne.Z,{onResize:this.updatePosition},En))))}}]),qt}(fe.Component);At.contextType=Pe.E_;var Kt=(0,fe.forwardRef)(($t,ne)=>{const{prefixCls:qt,rootClassName:ue}=$t,{getPrefixCls:ae}=(0,fe.useContext)(Pe.E_),Fe=ae("affix",qt),[xe,Re]=et(Fe),En=Object.assign(Object.assign({},$t),{affixPrefixCls:Fe,rootClassName:ie()(ue,Re)});return xe(fe.createElement(At,Object.assign({},En,{ref:ne})))})},5083:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{default:function(){return Rs}});var St=Ft(61186),Ut=Ft.n(St),Me=Ft(48736),_e=Ft(90111),fe=Ft.n(_e),je=Ft(58319),ie=Ft.n(je),Ne=Ft(23250),we=Ft.n(Ne),Le=Ft(74959),Pe=Ft.n(Le),Ie=Ft(10238),Ue=Ft.n(Ie),Tt=Ft(33656),et=Ft.n(Tt);Ut().extend(et()),Ut().extend(Ue()),Ut().extend(fe()),Ut().extend(ie()),Ut().extend(we()),Ut().extend(Pe()),Ut().extend(function(bt,Ot){var Ht=Ot.prototype,le=Ht.format;Ht.format=function(se){var ye=(se||"").replace("Wo","wo");return le.bind(this)(ye)}});var nt={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},dt=function(Ot){var Ht=nt[Ot];return Ht||Ot.split("_")[0]},lt=function(){(0,Me.ET)(!1,"Not match any format. Please help to fire a issue about this.")},pt={getNow:function(){return Ut()()},getFixedDate:function(Ot){return Ut()(Ot,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(Ot){return Ot.endOf("month")},getWeekDay:function(Ot){var Ht=Ot.locale("en");return Ht.weekday()+Ht.localeData().firstDayOfWeek()},getYear:function(Ot){return Ot.year()},getMonth:function(Ot){return Ot.month()},getDate:function(Ot){return Ot.date()},getHour:function(Ot){return Ot.hour()},getMinute:function(Ot){return Ot.minute()},getSecond:function(Ot){return Ot.second()},addYear:function(Ot,Ht){return Ot.add(Ht,"year")},addMonth:function(Ot,Ht){return Ot.add(Ht,"month")},addDate:function(Ot,Ht){return Ot.add(Ht,"day")},setYear:function(Ot,Ht){return Ot.year(Ht)},setMonth:function(Ot,Ht){return Ot.month(Ht)},setDate:function(Ot,Ht){return Ot.date(Ht)},setHour:function(Ot,Ht){return Ot.hour(Ht)},setMinute:function(Ot,Ht){return Ot.minute(Ht)},setSecond:function(Ot,Ht){return Ot.second(Ht)},isAfter:function(Ot,Ht){return Ot.isAfter(Ht)},isValidate:function(Ot){return Ot.isValid()},locale:{getWeekFirstDay:function(Ot){return Ut()().locale(dt(Ot)).localeData().firstDayOfWeek()},getWeekFirstDate:function(Ot,Ht){return Ht.locale(dt(Ot)).weekday(0)},getWeek:function(Ot,Ht){return Ht.locale(dt(Ot)).week()},getShortWeekDays:function(Ot){return Ut()().locale(dt(Ot)).localeData().weekdaysMin()},getShortMonths:function(Ot){return Ut()().locale(dt(Ot)).localeData().monthsShort()},format:function(Ot,Ht,le){return Ht.locale(dt(Ot)).format(le)},parse:function(Ot,Ht,le){for(var de=dt(Ot),se=0;se1&&(ye=Ot.addDate(ye,-7)),ye}function yn(bt,Ot,Ht){var le=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(Ot){case"year":return Ht.addYear(bt,le*10);case"quarter":case"month":return Ht.addYear(bt,le);default:return Ht.addMonth(bt,le)}}function Rn(bt,Ot){var Ht=Ot.generateConfig,le=Ot.locale,de=Ot.format;return typeof de=="function"?de(bt):Ht.locale.format(le.locale,bt,de)}function ji(bt,Ot){var Ht=Ot.generateConfig,le=Ot.locale,de=Ot.formatList;return!bt||typeof de[0]=="function"?null:Ht.locale.parse(le.locale,bt,de)}function Qi(bt){var Ot=bt.cellDate,Ht=bt.mode,le=bt.disabledDate,de=bt.generateConfig;if(!le)return!1;var se=function(_n,Ve,Ln){for(var Jn=Ve;Jn<=Ln;){var Ei=void 0;switch(_n){case"date":{if(Ei=de.setDate(Ot,Jn),!le(Ei))return!1;break}case"month":{if(Ei=de.setMonth(Ot,Jn),!Qi({cellDate:Ei,mode:"month",generateConfig:de,disabledDate:le}))return!1;break}case"year":{if(Ei=de.setYear(Ot,Jn),!Qi({cellDate:Ei,mode:"year",generateConfig:de,disabledDate:le}))return!1;break}}Jn+=1}return!0};switch(Ht){case"date":case"week":return le(Ot);case"month":{var ye=1,Te=de.getDate(de.getEndDate(Ot));return se("date",ye,Te)}case"quarter":{var Qe=Math.floor(de.getMonth(Ot)/3)*3,rn=Qe+2;return se("month",Qe,rn)}case"year":return se("month",0,11);case"decade":{var jn=de.getYear(Ot),an=Math.floor(jn/pn)*pn,Mn=an+pn-1;return se("year",an,Mn)}}}function Ti(bt,Ot){var Ht=Ot.formatList,le=Ot.generateConfig,de=Ot.locale;return(0,Hi.Z)(function(){if(!bt)return[[""],""];for(var se="",ye=[],Te=0;Te1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(rn.current),Jn){Qe(Ln);return}rn.current=requestAnimationFrame(function(){Qe(Ln)})}var an=Ti(Te,{formatList:Ht,generateConfig:le,locale:de}),Mn=(0,Zn.Z)(an,2),nn=Mn[1];function _n(Ln){jn(Ln)}function Ve(){var Ln=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;jn(null,Ln)}return(0,kt.useEffect)(function(){Ve(!0)},[bt]),(0,kt.useEffect)(function(){return function(){return cancelAnimationFrame(rn.current)}},[]),[nn,_n,Ve]}var Ri=Ft(10228),er=Ft(16089),As=Ft(80702),Or=Ft(29194),jr=new Map;function gr(bt,Ot){var Ht;function le(){(0,Or.Z)(bt)?Ot():Ht=(0,er.Z)(function(){le()})}return le(),function(){er.Z.cancel(Ht)}}function pr(bt,Ot,Ht){if(jr.get(bt)&&cancelAnimationFrame(jr.get(bt)),Ht<=0){jr.set(bt,requestAnimationFrame(function(){bt.scrollTop=Ot}));return}var le=Ot-bt.scrollTop,de=le/Ht*10;jr.set(bt,requestAnimationFrame(function(){bt.scrollTop+=de,bt.scrollTop!==Ot&&pr(bt,Ot,Ht-10)}))}function ps(bt,Ot){var Ht=Ot.onLeftRight,le=Ot.onCtrlLeftRight,de=Ot.onUpDown,se=Ot.onPageUpDown,ye=Ot.onEnter,Te=bt.which,Qe=bt.ctrlKey,rn=bt.metaKey;switch(Te){case Ri.Z.LEFT:if(Qe||rn){if(le)return le(-1),!0}else if(Ht)return Ht(-1),!0;break;case Ri.Z.RIGHT:if(Qe||rn){if(le)return le(1),!0}else if(Ht)return Ht(1),!0;break;case Ri.Z.UP:if(de)return de(-1),!0;break;case Ri.Z.DOWN:if(de)return de(1),!0;break;case Ri.Z.PAGE_UP:if(se)return se(-1),!0;break;case Ri.Z.PAGE_DOWN:if(se)return se(1),!0;break;case Ri.Z.ENTER:if(ye)return ye(),!0;break}return!1}function Yr(bt,Ot,Ht,le){var de=bt;if(!de)switch(Ot){case"time":de=le?"hh:mm:ss a":"HH:mm:ss";break;case"week":de="gggg-wo";break;case"month":de="YYYY-MM";break;case"quarter":de="YYYY-[Q]Q";break;case"year":de="YYYY";break;default:de=Ht?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return de}function Xr(bt,Ot,Ht){var le=bt==="time"?8:10,de=typeof Ot=="function"?Ot(Ht.getNow()).length:Ot.length;return Math.max(le,de)+2}var qi=null,Ct=new Set;function Na(bt){return!qi&&typeof window!="undefined"&&window.addEventListener&&(qi=function(Ht){(0,As.Z)(Ct).forEach(function(le){le(Ht)})},window.addEventListener("mousedown",qi)),Ct.add(bt),function(){Ct.delete(bt),Ct.size===0&&(window.removeEventListener("mousedown",qi),qi=null)}}function mr(bt){var Ot=bt.target;if(bt.composed&&Ot.shadowRoot){var Ht;return((Ht=bt.composedPath)===null||Ht===void 0?void 0:Ht.call(bt)[0])||Ot}return Ot}var Ra=function(Ot){return Ot==="month"||Ot==="date"?"year":Ot},za=function(Ot){return Ot==="date"?"month":Ot},da=function(Ot){return Ot==="month"||Ot==="date"?"quarter":Ot},Xa=function(Ot){return Ot==="date"?"week":Ot},ei={year:Ra,month:za,quarter:da,week:Xa,time:null,date:null};function ai(bt,Ot){return bt.some(function(Ht){return Ht&&Ht.contains(Ot)})}function Ee(bt){var Ot=bt.open,Ht=bt.value,le=bt.isClickOutside,de=bt.triggerOpen,se=bt.forwardKeyDown,ye=bt.onKeyDown,Te=bt.blurToCancel,Qe=bt.onSubmit,rn=bt.onCancel,jn=bt.onFocus,an=bt.onBlur,Mn=bt.changeOnBlur,nn=(0,kt.useState)(!1),_n=(0,Zn.Z)(nn,2),Ve=_n[0],Ln=_n[1],Jn=(0,kt.useState)(!1),Ei=(0,Zn.Z)(Jn,2),mi=Ei[0],bi=Ei[1],Ni=(0,kt.useRef)(!1),ki=(0,kt.useRef)(!1),Un=(0,kt.useRef)(!1),Co={onMouseDown:function(){Ln(!0),de(!0)},onKeyDown:function(zo){var cr=function(){Un.current=!0};if(ye(zo,cr),!Un.current){switch(zo.which){case Ri.Z.ENTER:{Ot?Qe()!==!1&&Ln(!0):de(!0),zo.preventDefault();return}case Ri.Z.TAB:{Ve&&Ot&&!zo.shiftKey?(Ln(!1),zo.preventDefault()):!Ve&&Ot&&!se(zo)&&zo.shiftKey&&(Ln(!0),zo.preventDefault());return}case Ri.Z.ESC:{Ln(!0),rn();return}}!Ot&&![Ri.Z.SHIFT].includes(zo.which)?de(!0):Ve||se(zo)}},onFocus:function(zo){Ln(!0),bi(!0),jn&&jn(zo)},onBlur:function(zo){if(Ni.current||!le(document.activeElement)){Ni.current=!1;return}Te?setTimeout(function(){for(var cr=document,fr=cr.activeElement;fr&&fr.shadowRoot;)fr=fr.shadowRoot.activeElement;le(fr)&&rn()},0):Ot&&(de(!1),ki.current&&Qe()),bi(!1),an==null||an(zo)}};return(0,kt.useEffect)(function(){ki.current=!1},[Ot]),(0,kt.useEffect)(function(){ki.current=!0},[Ht]),(0,kt.useEffect)(function(){return Na(function(co){var zo=mr(co),cr=le(zo);Ot&&(cr?!Mn&&(!mi||cr)&&de(!1):(Ni.current=!0,(0,er.Z)(function(){Ni.current=!1})))})}),[Co,{focused:mi,typing:Ve}]}function pe(bt,Ot){return kt.useMemo(function(){return bt||(Ot?((0,Me.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(Ot).map(function(Ht){var le=(0,Zn.Z)(Ht,2),de=le[0],se=le[1];return{label:de,value:se}})):[])},[bt,Ot])}var ve=Ft(34280);function Wn(bt){var Ot=bt.valueTexts,Ht=bt.onTextChange,le=kt.useState(""),de=(0,Zn.Z)(le,2),se=de[0],ye=de[1],Te=kt.useRef([]);Te.current=Ot;function Qe(jn){ye(jn),Ht(jn)}function rn(){ye(Te.current[0])}return(0,ve.Z)(function(){Ot.every(function(jn){return jn!==se})&&rn()},[Ot.join("||")]),[se,Qe,rn]}var On=kt.createContext({}),Kn=On,Ge=Ft(62853);function Tn(bt){var Ot=bt.cellRender,Ht=bt.monthCellRender,le=bt.dateRender,de=kt.useMemo(function(){if(Ot)return Ot;if(!(!Ht&&!le))return function(se,ye){var Te=se;return le&&ye.type==="date"?le(Te,ye.today):Ht&&ye.type==="month"?Ht(Te,ye.locale):ye.originNode}},[Ot,Ht,le]);return de}function Si(bt,Ot){for(var Ht=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",le=String(bt);le.length=1?Ht|0:1,ye=bt;ye<=Ot;ye+=se)de.push({label:Si(ye,2),value:ye,disabled:(le||[]).includes(ye)});return de}function hr(bt){var Ot=bt.generateConfig,Ht=bt.prefixCls,le=bt.operationRef,de=bt.activeColumnIndex,se=bt.value,ye=bt.showHour,Te=bt.showMinute,Qe=bt.showSecond,rn=bt.use12Hours,jn=bt.hourStep,an=jn===void 0?1:jn,Mn=bt.minuteStep,nn=Mn===void 0?1:Mn,_n=bt.secondStep,Ve=_n===void 0?1:_n,Ln=bt.disabledHours,Jn=bt.disabledMinutes,Ei=bt.disabledSeconds,mi=bt.disabledTime,bi=bt.hideDisabledOptions,Ni=bt.onSelect,ki=bt.cellRender,Un=bt.locale,Co=[],co="".concat(Ht,"-content"),zo="".concat(Ht,"-time-panel"),cr,fr=se?Ot.getHour(se):-1,ar=fr,ts=se?Ot.getMinute(se):-1,or=se?Ot.getSecond(se):-1,Xo=Ot.getNow(),dr=kt.useMemo(function(){if(mi){var lo=mi(Xo);return[lo.disabledHours,lo.disabledMinutes,lo.disabledSeconds]}return[Ln,Jn,Ei]},[Ln,Jn,Ei,mi,Xo]),zr=(0,Zn.Z)(dr,3),es=zr[0],Cr=zr[1],Gr=zr[2],Ns=Do(0,23,an,es&&es()),fa=(0,Hi.Z)(function(){return Ns},Ns,Ro);rn&&(cr=ar>=12,ar%=12);var Ga=kt.useMemo(function(){if(!rn)return[!1,!1];var lo=[!0,!0];return fa.forEach(function(Cs){var ta=Cs.disabled,Ta=Cs.value;ta||(Ta>=12?lo[1]=!1:lo[0]=!1)}),lo},[rn,fa]),$s=(0,Zn.Z)(Ga,2),ba=$s[0],bo=$s[1],ms=kt.useMemo(function(){return rn?fa.filter(cr?function(lo){return lo.value>=12}:function(lo){return lo.value<12}).map(function(lo){var Cs=lo.value%12,ta=Cs===0?"12":Si(Cs,2);return(0,Dn.Z)((0,Dn.Z)({},lo),{},{label:ta,value:Cs})}):fa},[rn,cr,fa]),Po=Do(0,59,nn,Cr&&Cr(fr)),kr=Do(0,59,Ve,Gr&&Gr(fr,ts)),xr=Ai({value:se,generateConfig:Ot,disabledMinutes:Cr,disabledSeconds:Gr,minutes:Po,seconds:kr,use12Hours:rn});le.current={onUpDown:function(Cs){var ta=Co[de];if(ta)for(var Ta=ta.units.findIndex(function($a){return $a.value===ta.value}),ns=ta.units.length,bs=1;bs2&&arguments[2]!==void 0?arguments[2]:!1;(Qr===Ln||Fs)&&(Bl(Oi),Co&&Co(Oi),xr&&xr(Oi,qo),co&&!me(Qe,Oi,pa)&&!(nn!=null&&nn(Oi))&&co(Oi))},Pa=function(Oi){if(Zl.includes(Qr)){var qo,Fs,ql=Qr==="date";switch(Oi===Ri.Z.PAGE_UP||Oi===Ri.Z.PAGE_DOWN?Fs=ql?Qe.addMonth:Qe.addYear:Fs=ql?Qe.addDate:Qe.addMonth,Oi){case Ri.Z.LEFT:case Ri.Z.PAGE_UP:qo=Fs(Fr,-1);break;case Ri.Z.RIGHT:case Ri.Z.PAGE_DOWN:qo=Fs(Fr,1);break;case Ri.Z.UP:case Ri.Z.DOWN:qo=Fs(Fr,Number("".concat(Oi===Ri.Z.UP?"-":"").concat(ql?ti:_a)));break}if(qo)return!(nn!=null&&nn(qo))}return!0},hu=function(Oi){if(bs.current&&bs.current.onKeyDown){var qo=!0,Fs=Oi.which;if([Ri.Z.LEFT,Ri.Z.RIGHT,Ri.Z.UP,Ri.Z.DOWN,Ri.Z.PAGE_UP,Ri.Z.PAGE_DOWN,Ri.Z.ENTER].includes(Fs)&&(Oi.preventDefault(),Fs!==Ri.Z.ENTER&&Ei===0&&(qo=Pa(Fs))),qo)return bs.current.onKeyDown(Oi)}return(0,Me.ZP)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1},Gs=function(Oi){bs.current&&bs.current.onBlur&&bs.current.onBlur(Oi)};kr&&ta!=="right"&&(kr.current={onKeyDown:hu,onClose:function(){bs.current&&bs.current.onClose&&bs.current.onClose()}}),kt.useEffect(function(){rn&&!Eo.current&&tl(rn)},[rn]),kt.useEffect(function(){Eo.current=!1},[]);var Wa,yo=Tn({cellRender:Ga,monthCellRender:fa,dateRender:Ns}),Hr=(0,Dn.Z)((0,Dn.Z)({},bt),{},{cellRender:yo,operationRef:bs,prefixCls:de,viewDate:Fr,value:pa,onViewDateChange:zs,sourceMode:_o,onPanelChange:Ha,disabledDate:nn});switch(delete Hr.onChange,delete Hr.onSelect,Qr){case"decade":Wa=kt.createElement(Js,(0,At.Z)({},Hr,{onSelect:function(Oi,qo){zs(Oi),Ds(Oi,qo)}}));break;case"year":Wa=kt.createElement(Tl,(0,At.Z)({},Hr,{onSelect:function(Oi,qo){zs(Oi),Ds(Oi,qo)}}));break;case"month":Wa=kt.createElement(Tr,(0,At.Z)({},Hr,{onSelect:function(Oi,qo){zs(Oi),Ds(Oi,qo)}}));break;case"quarter":Wa=kt.createElement(Rr,(0,At.Z)({},Hr,{onSelect:function(Oi,qo){zs(Oi),Ds(Oi,qo)}}));break;case"week":Wa=kt.createElement(qr,(0,At.Z)({},Hr,{onSelect:function(Oi,qo){zs(Oi),Ds(Oi,qo)}}));break;case"time":delete Hr.showTime,Wa=kt.createElement(Ko,(0,At.Z)({},Hr,(0,Ge.Z)(bi)==="object"?bi:null,{onSelect:function(Oi,qo){zs(Oi),Ds(Oi,qo)}}));break;default:bi?Wa=kt.createElement(Sa,(0,At.Z)({},Hr,{onSelect:function(Oi,qo){zs(Oi),Ds(Oi,qo)}})):Wa=kt.createElement(Yn,(0,At.Z)({},Hr,{onSelect:function(Oi,qo){zs(Oi),Ds(Oi,qo)}}))}var Lu,Il,Ca=function(){var Oi=Qe.getNow(),qo=Vo(Qe.getHour(Oi),Qe.getMinute(Oi),Qe.getSecond(Oi),ba?dr:1,bo?es:1,ms?Gr:1),Fs=ro(Qe,Oi,qo[0],qo[1],qo[2]);Ds(Fs,"submit")};Kr||(Lu=th(de,Qr,ki),bi&&Qr!=="date"?Il=null:Il=ss({prefixCls:de,components:ts,needConfirmButton:$s,okDisabled:!pa||nn&&nn(pa),locale:Te,showNow:mi,onNow:$s&&Ca,onOk:function(){pa&&(Ds(pa,"submit",!0),ar&&ar(pa))}}));var nh;if(Ni&&Qr==="date"&&Ln==="date"&&!bi){var du=Qe.getNow(),bd="".concat(de,"-today-btn"),cu=nn&&nn(du);nh=kt.createElement("a",{className:Se()(bd,cu&&"".concat(bd,"-disabled")),"aria-disabled":cu,onClick:function(){cu||Ds(du,"mouse",!0)}},Te.today)}return kt.createElement(Kn.Provider,{value:(0,Dn.Z)((0,Dn.Z)({},Po),{},{mode:Qr,hideHeader:"hideHeader"in bt?Un:Po.hideHeader,hidePrevBtn:Cs&&ta==="right",hideNextBtn:Cs&&ta==="left"})},kt.createElement("div",{tabIndex:Ei,className:Se()("".concat(de,"-panel"),se,(Ot={},(0,re.Z)(Ot,"".concat(de,"-panel-has-range"),Ta&&Ta[0]&&Ta[1]),(0,re.Z)(Ot,"".concat(de,"-panel-has-range-hover"),ns&&ns[0]&&ns[1]),(0,re.Z)(Ot,"".concat(de,"-panel-rtl"),or==="rtl"),Ot)),style:ye,onKeyDown:hu,onBlur:Gs,onMouseDown:cr},Wa,Lu||Il||nh?kt.createElement("div",{className:"".concat(de,"-footer")},Lu,Il,nh):null))}var Sr=Kl,Is=Ft(35593),eh={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function xa(bt){var Ot,Ht=bt.prefixCls,le=bt.popupElement,de=bt.popupStyle,se=bt.visible,ye=bt.dropdownClassName,Te=bt.dropdownAlign,Qe=bt.transitionName,rn=bt.getPopupContainer,jn=bt.children,an=bt.range,Mn=bt.popupPlacement,nn=bt.direction,_n="".concat(Ht,"-dropdown"),Ve=function(){return Mn!==void 0?Mn:nn==="rtl"?"bottomRight":"bottomLeft"};return kt.createElement(Is.Z,{showAction:[],hideAction:[],popupPlacement:Ve(),builtinPlacements:eh,prefixCls:_n,popupTransitionName:Qe,popup:le,popupAlign:Te,popupVisible:se,popupClassName:Se()(ye,(Ot={},(0,re.Z)(Ot,"".concat(_n,"-range"),an),(0,re.Z)(Ot,"".concat(_n,"-rtl"),nn==="rtl"),Ot)),popupStyle:de,getPopupContainer:rn},jn)}var ju=xa;function Os(bt){var Ot=bt.prefixCls,Ht=bt.presets,le=bt.onClick,de=bt.onHover;return Ht.length?kt.createElement("div",{className:"".concat(Ot,"-presets")},kt.createElement("ul",null,Ht.map(function(se,ye){var Te=se.label,Qe=se.value;return kt.createElement("li",{key:ye,onClick:function(){return le==null?void 0:le(li(Qe))},onMouseEnter:function(){return de==null?void 0:de(li(Qe))},onMouseLeave:function(){return de==null?void 0:de(null)}},Te)}))):null}function gi(bt){var Ot=bt.picker,Ht=bt.disabledHours,le=bt.disabledMinutes,de=bt.disabledSeconds;Ot==="time"&&(Ht||le||de)&&warning(!1,"'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.")}function Ql(bt,Ot,Ht){var le=(0,Ge.Z)(Ot)==="object"?Ot.clearIcon:Ht;return le||kt.createElement("span",{className:"".concat(bt,"-clear-btn")})}function Oh(bt){var Ot,Ht=bt,le=Ht.prefixCls,de=le===void 0?"rc-picker":le,se=Ht.id,ye=Ht.name,Te=Ht.tabIndex,Qe=Ht.style,rn=Ht.className,jn=Ht.dropdownClassName,an=Ht.dropdownAlign,Mn=Ht.popupStyle,nn=Ht.transitionName,_n=Ht.generateConfig,Ve=Ht.locale,Ln=Ht.inputReadOnly,Jn=Ht.allowClear,Ei=Ht.autoFocus,mi=Ht.showTime,bi=Ht.picker,Ni=bi===void 0?"date":bi,ki=Ht.format,Un=Ht.use12Hours,Co=Ht.value,co=Ht.defaultValue,zo=Ht.presets,cr=Ht.open,fr=Ht.defaultOpen,ar=Ht.defaultOpenValue,ts=Ht.suffixIcon,or=Ht.clearIcon,Xo=Ht.disabled,dr=Ht.disabledDate,zr=Ht.placeholder,es=Ht.getPopupContainer,Cr=Ht.pickerRef,Gr=Ht.panelRender,Ns=Ht.onChange,fa=Ht.onOpenChange,Ga=Ht.onFocus,$s=Ht.onBlur,ba=Ht.onMouseDown,bo=Ht.onMouseUp,ms=Ht.onMouseEnter,Po=Ht.onMouseLeave,kr=Ht.onContextMenu,xr=Ht.onClick,Kr=Ht.onKeyDown,qa=Ht.onSelect,lo=Ht.direction,Cs=Ht.autoComplete,ta=Cs===void 0?"off":Cs,Ta=Ht.inputRender,ns=Ht.changeOnBlur,bs=kt.useRef(null),Eo=Ni==="date"&&!!mi||Ni==="time",$a=pe(zo),Jl=ao(Yr(ki,Ni,mi,Un)),pa=kt.useRef(null),Bl=kt.useRef(null),Ch=kt.useRef(null),Ms=(0,qn.Z)(null,{value:Co,defaultValue:co}),Fr=(0,Zn.Z)(Ms,2),tl=Fr[0],zs=Fr[1],_l=kt.useState(tl),ma=(0,Zn.Z)(_l,2),Br=ma[0],Qr=ma[1],Ts=kt.useRef(null),Ls=(0,qn.Z)(!1,{value:cr,defaultValue:fr,postState:function(uo){return Xo?!1:uo},onChange:function(uo){fa&&fa(uo),!uo&&Ts.current&&Ts.current.onClose&&Ts.current.onClose()}}),wa=(0,Zn.Z)(Ls,2),_o=wa[0],ra=wa[1],Ha=Ti(Br,{formatList:Jl,generateConfig:_n,locale:Ve}),Ds=(0,Zn.Z)(Ha,2),Pa=Ds[0],hu=Ds[1],Gs=Wn({valueTexts:Pa,onTextChange:function(uo){var Fa=ji(uo,{locale:Ve,formatList:Jl,generateConfig:_n});Fa&&(!dr||!dr(Fa))&&Qr(Fa)}}),Wa=(0,Zn.Z)(Gs,3),yo=Wa[0],Hr=Wa[1],Lu=Wa[2],Il=function(uo){Qr(uo),zs(uo),Ns&&!me(_n,tl,uo)&&Ns(uo,uo?Rn(uo,{generateConfig:_n,locale:Ve,format:Jl[0]}):"")},Ca=function(uo){Xo&&uo||ra(uo)},nh=function(uo){return _o&&Ts.current&&Ts.current.onKeyDown?Ts.current.onKeyDown(uo):((0,Me.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},du=function(){for(var uo=arguments.length,Fa=new Array(uo),va=0;vaMn(rn);case"month":return an(Ve)>an(rn);case"week":return jn(Ve)>jn(rn);default:return!Bt(Te,Ve,rn)&&Te.isAfter(Ve,rn)}return!1},[se,ye[1],rn,Ot]),_n=kt.useCallback(function(Ve){if(ye[1]||se&&se(Ve))return!0;if(ye[0]&&Qe)return!Bt(Te,Ve,rn)&&Te.isAfter(Qe,Ve);if(!Ot&&Qe)switch(Ht){case"quarter":return Mn(Ve)0&&arguments[0]!==void 0?arguments[0]:!1,Xi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},So=null;Bs&&Yh&&Yh[0]&&Yh[1]&&Ve.isAfter(Yh[1],Yh[0])&&(So=Yh);var Mr=Un;if(Un&&(0,Ge.Z)(Un)==="object"&&Un.defaultValue){var Ks=Un.defaultValue;Mr=(0,Dn.Z)((0,Dn.Z)({},Un),{},{defaultValue:oe(Ks,Oo)||void 0})}return kt.createElement(dn.Provider,{value:{inRange:!0,panelPosition:Ar,rangedValue:ah||To,hoverRangedValue:So}},kt.createElement(Sr,(0,At.Z)({},bt,Xi,{cellRender:tg,showTime:Mr,mode:ql[Oo],generateConfig:Ve,style:void 0,direction:Fr,disabledDate:Oo===0?Td:dd,disabledTime:function(el){return dr?dr(el,Oo===0?"start":"end"):!1},className:Se()((0,re.Z)({},"".concat(ye,"-panel-focused"),Oo===0?!qc:!md)),value:oe(To,Oo),locale:Ln,tabIndex:-1,onPanelChange:function(el,hh){Oo===0&&Kc(!0),Oo===1&&Uh(!0),ih(mn(ql,hh,Oo),mn(To,el,Oo));var ku=el;Ar==="right"&&ql[Oo]===hh&&(ku=yn(ku,hh,Ve,-1)),du(ku,Oo)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:Oo===0?oe(To,1):oe(To,0)})))}var eu=0,ng=0;if(Oo&&Ls.current&&_o.current&&Ts.current&&Ds.current){eu=Ls.current.offsetWidth+_o.current.offsetWidth;var Bg=Ds.current.offsetLeft>eu?Ds.current.offsetLeft-eu:Ds.current.offsetLeft,ig=Ts.current.offsetWidth,Eu=Ds.current.offsetWidth;ig&&Eu&&eu>ig-Eu-(Fr==="rtl"?0:Bg)&&(ng=eu)}var Sf=Fr==="rtl"?{right:eu}:{left:eu};function Ig(){var Ar,Xi=th(ye,ql[Oo],xr),So=ss({prefixCls:ye,components:Ch,needConfirmButton:Br,okDisabled:!oe(To,Oo)||Xo&&Xo(To[Oo]),locale:Ln,onOk:function(){var Au=oe(To,Oo);Au&&(va(To,Oo),pa==null||pa(To),Ol(!1,Oo,"confirm"))}});if(ki!=="time"&&!Un){var Mr=nh(Oo),Ks=yn(Mr,ki,Ve),kh=ql[Oo],el=kh===ki,hh=jd(el?"left":!1,{pickerValue:Mr,onPickerValueChange:function(Au){du(Au,Oo)}}),ku=jd("right",{pickerValue:Ks,onPickerValueChange:function(Au){du(yn(Au,ki,Ve,-1),Oo)}});Fr==="rtl"?Ar=kt.createElement(kt.Fragment,null,ku,el&&hh):Ar=kt.createElement(kt.Fragment,null,hh,el&&ku)}else Ar=jd();var zd=kt.createElement("div",{className:"".concat(ye,"-panel-layout")},kt.createElement(Os,{prefixCls:ye,presets:eg,onClick:function(Au){va(Au,null),Ol(!1,Oo,"preset")},onHover:function(Au){ff(Au)}}),kt.createElement("div",null,kt.createElement("div",{className:"".concat(ye,"-panels")},Ar),(Xi||So)&&kt.createElement("div",{className:"".concat(ye,"-footer")},Xi,So)));return Gr&&(zd=Gr(zd)),kt.createElement("div",{className:"".concat(ye,"-panel-container"),style:{marginLeft:ng},ref:Ts,onMouseDown:function(Au){Au.preventDefault()}},zd)}var Rd=kt.createElement("div",{className:Se()("".concat(ye,"-range-wrapper"),"".concat(ye,"-").concat(ki,"-range-wrapper")),style:{minWidth:Zs}},kt.createElement("div",{ref:Ds,className:"".concat(ye,"-range-arrow"),style:Sf}),Ig()),Zh;ba&&(Zh=kt.createElement("span",{className:"".concat(ye,"-suffix"),onMouseDown:function(Xi){Xi.preventDefault()}},ba));var Og=Ql(ye,$s,bo),Yu=kt.createElement("span",{onMouseDown:function(Xi){Xi.preventDefault(),Xi.stopPropagation()},onMouseUp:function(Xi){Xi.preventDefault(),Xi.stopPropagation();var So=Hr;Gs[0]||(So=mn(So,null,0)),Gs[1]||(So=mn(So,null,1)),va(So,null),Ol(!1,Oo,"clear")},className:"".concat(ye,"-clear"),role:"button"},Og),jg=$s&&(oe(Hr,0)&&!Gs[0]||oe(Hr,1)&&!Gs[1]),mc={size:Xr(ki,Pa[0],Ve)},og=0,vc=0;Ls.current&&wa.current&&_o.current&&(Oo===0?vc=Ls.current.offsetWidth:(og=eu,vc=wa.current.offsetWidth));var Rg=Fr==="rtl"?{right:og}:{left:og},ap=function(Xi,So){var Mr=mn(To,Xi,Oo);if(So==="submit"||So!=="key"&&!Br){va(Mr,Oo),Oo===0?Kc():Uh();var Ks=Oo===0?1:0;Gs[Ks]?Ol(!1,!1,"confirm"):Ol(!1,Oo,"confirm")}else Oi(Mr)};return kt.createElement(Kn.Provider,{value:{operationRef:hu,hideHeader:ki==="time",onDateMouseEnter:bg,onDateMouseLeave:lh,hideRanges:!0,onSelect:ap,open:Bs}},kt.createElement(ju,{visible:Bs,popupElement:Rd,popupStyle:jn,prefixCls:ye,dropdownClassName:an,dropdownAlign:nn,getPopupContainer:_n,transitionName:Mn,range:!0,direction:Fr},kt.createElement("div",(0,At.Z)({ref:Qr,className:Se()(ye,"".concat(ye,"-range"),rn,(Ot={},(0,re.Z)(Ot,"".concat(ye,"-disabled"),Gs[0]&&Gs[1]),(0,re.Z)(Ot,"".concat(ye,"-focused"),Oo===0?Ml:pd),(0,re.Z)(Ot,"".concat(ye,"-rtl"),Fr==="rtl"),Ot)),style:Qe,onClick:Dg,onMouseEnter:Eo,onMouseLeave:$a,onMouseDown:Od,onMouseUp:bs},(0,ni.Z)(bt,{aria:!0,data:!0})),kt.createElement("div",{className:Se()("".concat(ye,"-input"),(Ht={},(0,re.Z)(Ht,"".concat(ye,"-input-active"),Oo===0),(0,re.Z)(Ht,"".concat(ye,"-input-placeholder"),!!Zc),Ht)),ref:Ls},kt.createElement("input",(0,At.Z)({id:Te,disabled:Gs[0],readOnly:Po||typeof Pa[0]=="function"||!qc,value:Zc||Fd,onChange:function(Xi){Hh(Xi.target.value)},autoFocus:Ei,placeholder:oe(Jn,0)||"",ref:ra},yf,mc,{autoComplete:_l}))),kt.createElement("div",{className:"".concat(ye,"-range-separator"),ref:_o},zo),kt.createElement("div",{className:Se()("".concat(ye,"-input"),(le={},(0,re.Z)(le,"".concat(ye,"-input-active"),Oo===1),(0,re.Z)(le,"".concat(ye,"-input-placeholder"),!!Xc),le)),ref:wa},kt.createElement("input",(0,At.Z)({disabled:Gs[1],readOnly:Po||typeof Pa[0]=="function"||!md,value:Xc||dc,onChange:function(Xi){cc(Xi.target.value)},placeholder:oe(Jn,1)||"",ref:Ha},$c,mc,{autoComplete:_l}))),kt.createElement("div",{className:"".concat(ye,"-active-bar"),style:(0,Dn.Z)((0,Dn.Z)({},Rg),{},{width:vc,position:"absolute"})}),Zh,jg&&Yu)))}var yi=function(bt){(0,Hn.Z)(Ht,bt);var Ot=(0,ii.Z)(Ht);function Ht(){var le;(0,sn.Z)(this,Ht);for(var de=arguments.length,se=new Array(de),ye=0;ye{const{lineHeight:de}=bt,se=Math.floor(Ht*de)+2,ye=Math.max((Ot-se)/2,0),Te=Math.max(Ot-se-ye,0);return{padding:`${ye}px ${le}px ${Te}px`}},ka=bt=>{const{componentCls:Ot,pickerCellCls:Ht,pickerCellInnerCls:le,cellHeight:de,motionDurationSlow:se,borderRadiusSM:ye,motionDurationMid:Te,cellHoverBg:Qe,lineWidth:rn,lineType:jn,colorPrimary:an,cellActiveWithRangeBg:Mn,colorTextLightSolid:nn,controlHeightSM:_n,cellRangeBorderColor:Ve,pickerCellBorderGap:Ln,cellHoverWithRangeBg:Jn,cellWidth:Ei,colorTextDisabled:mi,cellBgDisabled:bi}=bt;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:de,transform:"translateY(-50%)",transition:`all ${se}`,content:'""'},[le]:{position:"relative",zIndex:2,display:"inline-block",minWidth:de,height:de,lineHeight:`${de}px`,borderRadius:ye,transition:`background ${Te}, border ${Te}`},"&-range-hover-start, &-range-hover-end":{[le]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:hover:not(${Ht}-in-view), &:hover:not(${Ht}-selected):not(${Ht}-range-start):not(${Ht}-range-end):not(${Ht}-range-hover-start):not(${Ht}-range-hover-end)`]:{[le]:{background:Qe}},[`&-in-view${Ht}-today ${le}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${rn}px ${jn} ${an}`,borderRadius:ye,content:'""'}},[`&-in-view${Ht}-in-range`]:{position:"relative","&::before":{background:Mn}},[`&-in-view${Ht}-selected ${le}, &-in-view${Ht}-range-start ${le}, &-in-view${Ht}-range-end ${le}`]:{color:nn,background:an},[`&-in-view${Ht}-range-start:not(${Ht}-range-start-single), @@ -1136,7 +1136,7 @@ ${Se} &${Ht}-slide-up-appear${Ht}-slide-up-appear-active${Ot}-dropdown-placement-bottomRight`]:{animationName:Lr.fJ},[`&${Ht}-slide-up-leave${Ht}-slide-up-leave-active${Ot}-dropdown-placement-topLeft, &${Ht}-slide-up-leave${Ht}-slide-up-leave-active${Ot}-dropdown-placement-topRight`]:{animationName:Lr.ly},[`&${Ht}-slide-up-leave${Ht}-slide-up-leave-active${Ot}-dropdown-placement-bottomLeft, &${Ht}-slide-up-leave${Ht}-slide-up-leave-active${Ot}-dropdown-placement-bottomRight`]:{animationName:Lr.Uw},[`${Ot}-panel > ${Ot}-time-panel`]:{paddingTop:cr},[`${Ot}-ranges`]:{marginBottom:0,padding:`${cr}px ${fr}px`,overflow:"hidden",lineHeight:`${ar-2*Te-mi/2}px`,textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${Ot}-preset > ${Ht}-tag-blue`]:{color:Co,background:ts,borderColor:or,cursor:"pointer"},[`${Ot}-ok`]:{marginInlineStart:"auto"}},[`${Ot}-range-wrapper`]:{display:"flex",position:"relative"},[`${Ot}-range-arrow`]:Object.assign({position:"absolute",zIndex:1,display:"none",marginInlineStart:se*1.5,transition:`left ${co} ease-out`},(0,io.r)(Xo,dr,zr,es,bo)),[`${Ot}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:es,borderRadius:Cr,boxShadow:Gr,transition:`margin ${co}`,[`${Ot}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${Ot}-presets`]:{display:"flex",flexDirection:"column",minWidth:$s,maxWidth:ba,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:mi,borderInlineEnd:`${Te}px ${Qe} ${fa}`,li:Object.assign(Object.assign({},Qo.vS),{borderRadius:Ns,paddingInline:mi,paddingBlock:(Jn-Math.round(de*Un))/2,cursor:"pointer",transition:`all ${co}`,"+ li":{marginTop:bi},"&:hover":{background:Ga}})}},[`${Ot}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${Ot}-panel`]:{borderWidth:`0 0 ${Te}px`},"&:last-child":{[`${Ot}-panel`]:{borderWidth:0}}},[`${Ot}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${Ot}-content, - table`]:{textAlign:"center"},"&-focused":{borderColor:rn}}}}),"&-dropdown-range":{padding:`${Xo*2/3}px 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${Ot}-separator`]:{transform:"rotate(180deg)"},[`${Ot}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,Lr.oN)(bt,"slide-up"),(0,Lr.oN)(bt,"slide-down"),(0,so.Fm)(bt,"move-up"),(0,so.Fm)(bt,"move-down")]},oo=bt=>{const{componentCls:Ot,controlHeightLG:Ht,paddingXXS:le,padding:de}=bt;return{pickerCellCls:`${Ot}-cell`,pickerCellInnerCls:`${Ot}-cell-inner`,pickerYearMonthCellWidth:Ht*1.5,pickerQuarterPanelContentHeight:Ht*1.4,pickerCellPaddingVertical:le+le/2,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:de+le/2}},tr=bt=>({cellHoverBg:bt.controlItemBgHover,cellActiveWithRangeBg:bt.controlItemBgActive,cellHoverWithRangeBg:new Ui.C(bt.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Ui.C(bt.colorPrimary).lighten(20).toHexString(),cellBgDisabled:bt.colorBgContainerDisabled,timeColumnWidth:bt.controlHeightLG*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:bt.controlHeightSM*1.5,cellHeight:bt.controlHeightSM,textHeight:bt.controlHeightLG,withoutTimeCellHeight:bt.controlHeightLG*1.65});var Dr=(0,Ql.Z)("DatePicker",bt=>{const Ot=(0,ml.TS)((0,sr.e5)(bt),oo(bt));return[gs(Ot),_s(Ot),(0,Io.c)(bt,{focusElCls:`${bt.componentCls}-focused`})]},bt=>Object.assign(Object.assign(Object.assign({},(0,sr.TM)(bt)),tr(bt)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:bt.zIndexPopupBase+50}));function Er(bt,Ot,Ht){return Ht!==void 0?Ht:Ot==="year"&&bt.lang.yearPlaceholder?bt.lang.yearPlaceholder:Ot==="quarter"&&bt.lang.quarterPlaceholder?bt.lang.quarterPlaceholder:Ot==="month"&&bt.lang.monthPlaceholder?bt.lang.monthPlaceholder:Ot==="week"&&bt.lang.weekPlaceholder?bt.lang.weekPlaceholder:Ot==="time"&&bt.timePickerLocale.placeholder?bt.timePickerLocale.placeholder:bt.lang.placeholder}function Ph(bt,Ot,Ht){return Ht!==void 0?Ht:Ot==="year"&&bt.lang.yearPlaceholder?bt.lang.rangeYearPlaceholder:Ot==="quarter"&&bt.lang.quarterPlaceholder?bt.lang.rangeQuarterPlaceholder:Ot==="month"&&bt.lang.monthPlaceholder?bt.lang.rangeMonthPlaceholder:Ot==="week"&&bt.lang.weekPlaceholder?bt.lang.rangeWeekPlaceholder:Ot==="time"&&bt.timePickerLocale.placeholder?bt.timePickerLocale.rangePlaceholder:bt.lang.rangePlaceholder}function Ru(bt,Ot){const Ht={adjustX:1,adjustY:1};switch(Ot){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:Ht};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:Ht};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:Ht};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:Ht};default:return{points:bt==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:Ht}}}function jh(bt){return bt?Array.isArray(bt)?bt:[bt]:[]}function fi(bt){const{format:Ot,picker:Ht,showHour:le,showMinute:de,showSecond:se,use12Hours:ye}=bt,Te=jh(Ot)[0],Qe=Object.assign({},bt);return Ot&&Array.isArray(Ot)&&(Qe.format=Te),Te&&typeof Te=="string"&&(!Te.includes("s")&&se===void 0&&(Qe.showSecond=!1),!Te.includes("m")&&de===void 0&&(Qe.showMinute=!1),!Te.includes("H")&&!Te.includes("h")&&!Te.includes("K")&&!Te.includes("k")&&le===void 0&&(Qe.showHour=!1),(Te.includes("a")||Te.includes("A"))&&ye===void 0&&(Qe.use12Hours=!0)),Ht==="time"?Qe:(typeof Te=="function"&&delete Qe.format,{showTime:Qe})}function Rh(bt,Ot,Ht){if(bt===!1)return!1;const le={clearIcon:Ot!=null?Ot:Ht};return typeof bt=="object"?Object.assign(Object.assign({},le),bt):le}var _t=Ft(3113);function He(bt){return kt.createElement(_t.ZP,Object.assign({size:"small",type:"primary"},bt))}var Aa={button:He},Vs=function(bt,Ot){var Ht={};for(var le in bt)Object.prototype.hasOwnProperty.call(bt,le)&&Ot.indexOf(le)<0&&(Ht[le]=bt[le]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,le=Object.getOwnPropertySymbols(bt);de{const{prefixCls:de,getPopupContainer:se,className:ye,placement:Te,size:Qe,disabled:rn,bordered:jn=!0,placeholder:an,popupClassName:Mn,dropdownClassName:nn,status:_n,clearIcon:Ve,allowClear:Ln,rootClassName:Jn}=Ht,Ei=Vs(Ht,["prefixCls","getPopupContainer","className","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","clearIcon","allowClear","rootClassName"]),mi=kt.useRef(null),{getPrefixCls:bi,direction:Ni,getPopupContainer:ki}=(0,kt.useContext)($r.E_),Un=bi("picker",de),{compactSize:Co,compactItemClassnames:co}=(0,ho.ri)(Un,Ni),{format:zo,showTime:cr,picker:fr}=Ht,ar=bi(),[ts,or]=Dr(Un),Xo=Object.assign(Object.assign({},cr?fi(Object.assign({format:zo,picker:fr},cr)):{}),fr==="time"?fi(Object.assign(Object.assign({format:zo},Ht),{picker:fr})):{}),dr=(0,qe.Z)(bo=>{var ms;return(ms=Qe!=null?Qe:Co)!==null&&ms!==void 0?ms:bo}),zr=kt.useContext(Mo.Z),es=rn!=null?rn:zr,Cr=(0,kt.useContext)(Li.aM),{hasFeedback:Gr,status:Ns,feedbackIcon:fa}=Cr,Ga=kt.createElement(kt.Fragment,null,fr==="time"?kt.createElement(fn,null):kt.createElement(ae,null),Gr&&fa);(0,kt.useImperativeHandle)(le,()=>({focus:()=>{var bo;return(bo=mi.current)===null||bo===void 0?void 0:bo.focus()},blur:()=>{var bo;return(bo=mi.current)===null||bo===void 0?void 0:bo.blur()}}));const[$s]=(0,Wi.Z)("Calendar",_i.Z),ba=Object.assign(Object.assign({},$s),Ht.locale);return ts(kt.createElement($i,Object.assign({separator:kt.createElement("span",{"aria-label":"to",className:`${Un}-separator`},kt.createElement(Gn,null)),disabled:es,ref:mi,dropdownAlign:Ru(Ni,Te),placeholder:Ph(ba,fr,an),suffixIcon:Ga,prevIcon:kt.createElement("span",{className:`${Un}-prev-icon`}),nextIcon:kt.createElement("span",{className:`${Un}-next-icon`}),superPrevIcon:kt.createElement("span",{className:`${Un}-super-prev-icon`}),superNextIcon:kt.createElement("span",{className:`${Un}-super-next-icon`}),transitionName:`${ar}-slide-up`},Ei,Xo,{className:Se()({[`${Un}-${dr}`]:dr,[`${Un}-borderless`]:!jn},(0,ga.Z)(Un,(0,ga.F)(Ns,_n),Gr),or,co,ye,Jn),locale:ba.lang,prefixCls:Un,getPopupContainer:se||ki,generateConfig:bt,components:Aa,direction:Ni,dropdownClassName:Se()(or,Mn||nn,Jn),allowClear:Rh(Ln,Ve,kt.createElement(bn.Z,null))})))})}var Fl=function(bt,Ot){var Ht={};for(var le in bt)Object.prototype.hasOwnProperty.call(bt,le)&&Ot.indexOf(le)<0&&(Ht[le]=bt[le]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,le=Object.getOwnPropertySymbols(bt);de{const{prefixCls:_n,getPopupContainer:Ve,style:Ln,className:Jn,rootClassName:Ei,size:mi,bordered:bi=!0,placement:Ni,placeholder:ki,popupClassName:Un,dropdownClassName:Co,disabled:co,status:zo,clearIcon:cr,allowClear:fr}=Mn,ar=Fl(Mn,["prefixCls","getPopupContainer","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","clearIcon","allowClear"]),{getPrefixCls:ts,direction:or,getPopupContainer:Xo,[jn]:dr}=(0,kt.useContext)($r.E_),zr=ts("picker",_n),{compactSize:es,compactItemClassnames:Cr}=(0,ho.ri)(zr,or),Gr=kt.useRef(null),{format:Ns,showTime:fa}=Mn,[Ga,$s]=Dr(zr);(0,kt.useImperativeHandle)(nn,()=>({focus:()=>{var Eo;return(Eo=Gr.current)===null||Eo===void 0?void 0:Eo.focus()},blur:()=>{var Eo;return(Eo=Gr.current)===null||Eo===void 0?void 0:Eo.blur()}}));const ba={showToday:!0};let bo={};Qe&&(bo.picker=Qe);const ms=Qe||Mn.picker;bo=Object.assign(Object.assign(Object.assign({},bo),fa?fi(Object.assign({format:Ns,picker:ms},fa)):{}),ms==="time"?fi(Object.assign(Object.assign({format:Ns},Mn),{picker:ms})):{});const Po=ts(),kr=(0,qe.Z)(Eo=>{var $a;return($a=mi!=null?mi:es)!==null&&$a!==void 0?$a:Eo}),xr=kt.useContext(Mo.Z),Kr=co!=null?co:xr,qa=(0,kt.useContext)(Li.aM),{hasFeedback:lo,status:Cs,feedbackIcon:ta}=qa,Ta=kt.createElement(kt.Fragment,null,ms==="time"?kt.createElement(fn,null):kt.createElement(ae,null),lo&&ta),[ns]=(0,Wi.Z)("DatePicker",_i.Z),bs=Object.assign(Object.assign({},ns),Mn.locale);return Ga(kt.createElement(no,Object.assign({ref:Gr,placeholder:Er(bs,ms,ki),suffixIcon:Ta,dropdownAlign:Ru(or,Ni),prevIcon:kt.createElement("span",{className:`${zr}-prev-icon`}),nextIcon:kt.createElement("span",{className:`${zr}-next-icon`}),superPrevIcon:kt.createElement("span",{className:`${zr}-super-prev-icon`}),superNextIcon:kt.createElement("span",{className:`${zr}-super-next-icon`}),transitionName:`${Po}-slide-up`},ba,ar,bo,{locale:bs.lang,className:Se()({[`${zr}-${kr}`]:kr,[`${zr}-borderless`]:!bi},(0,ga.Z)(zr,(0,ga.F)(Cs,zo),lo),$s,Cr,dr==null?void 0:dr.className,Jn,Ei),style:Object.assign(Object.assign({},dr==null?void 0:dr.style),Ln),prefixCls:zr,getPopupContainer:Ve||Xo,generateConfig:bt,components:Aa,direction:or,disabled:Kr,dropdownClassName:Se()($s,Ei,Un||Co),allowClear:Rh(fr,cr,kt.createElement(bn.Z,null))})))});return rn&&(an.displayName=rn),an}const Ht=Ot(),le=Ot("week","WeekPicker"),de=Ot("month","MonthPicker"),se=Ot("year","YearPicker"),ye=Ot("time","TimePicker"),Te=Ot("quarter","QuarterPicker");return{DatePicker:Ht,WeekPicker:le,MonthPicker:de,YearPicker:se,TimePicker:ye,QuarterPicker:Te}}const as=null;function ls(bt){const{DatePicker:Ot,WeekPicker:Ht,MonthPicker:le,YearPicker:de,TimePicker:se,QuarterPicker:ye}=zu(bt),Te=js(bt),Qe=Ot;return Qe.WeekPicker=Ht,Qe.MonthPicker=le,Qe.YearPicker=de,Qe.RangePicker=Te,Qe.TimePicker=se,Qe.QuarterPicker=ye,Qe}var Vi=ls;const qs=Vi(vt);function vl(bt){const Ot=Ru(bt.direction,bt.placement);return Ot.overflow.adjustY=!1,Ot.overflow.adjustX=!1,Object.assign(Object.assign({},bt),{dropdownAlign:Ot})}const fs=(0,Lt.Z)(qs,"picker",null,vl);qs._InternalPanelDoNotUseOrYouWillBeFired=fs;const Lo=(0,Lt.Z)(qs.RangePicker,"picker",null,vl);qs._InternalRangePanelDoNotUseOrYouWillBeFired=Lo,qs.generatePicker=Vi;var Rs=qs},14478:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{Z:function(){return qt}});var St=Ft(96512),Ut=Ft(92310),Me=Ft.n(Ut),_e=Ft(10228),fe=Ft(18929),je=Ft(2738),ie=Ft(59301),Ne=Ft(92343),we=Ft(36355),Le=Ft(60324),Pe=Ft(92806),Ie=Ft(77578),Ue=Ft(3113),Tt=Ft(67797),et=Ft(9763),nt=Ft(31724),dt=Ft(39722),lt=Ft(83116);const pt=ue=>{const{componentCls:ae,iconCls:Fe,antCls:xe,zIndexPopup:Re,colorText:En,colorWarning:fn,marginXXS:bn,marginXS:cn,fontSize:he,fontWeightStrong:Qt,colorTextHeading:Ae}=ue;return{[ae]:{zIndex:Re,[`&${xe}-popover`]:{fontSize:he},[`${ae}-message`]:{marginBottom:cn,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${ae}-message-icon ${Fe}`]:{color:fn,fontSize:he,lineHeight:1,marginInlineEnd:cn},[`${ae}-title`]:{fontWeight:Qt,color:Ae,"&:only-child":{fontWeight:"normal"}},[`${ae}-description`]:{marginTop:bn,color:En}},[`${ae}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:cn}}}}};var vt=(0,lt.Z)("Popconfirm",ue=>pt(ue),ue=>{const{zIndexPopupBase:ae}=ue;return{zIndexPopup:ae+60}},{resetStyle:!1}),Lt=function(ue,ae){var Fe={};for(var xe in ue)Object.prototype.hasOwnProperty.call(ue,xe)&&ae.indexOf(xe)<0&&(Fe[xe]=ue[xe]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,xe=Object.getOwnPropertySymbols(ue);Re{const{prefixCls:ae,okButtonProps:Fe,cancelButtonProps:xe,title:Re,description:En,cancelText:fn,okText:bn,okType:cn="primary",icon:he=ie.createElement(St.Z,null),showCancel:Qt=!0,close:Ae,onConfirm:Gn,onCancel:An,onPopupClick:Se}=ue,{getPrefixCls:sn}=ie.useContext(we.E_),[wn]=(0,et.Z)("Popconfirm",nt.Z.Popconfirm),Xn=(0,Ie.Z)(Re),Hn=(0,Ie.Z)(En);return ie.createElement("div",{className:`${ae}-inner-content`,onClick:Se},ie.createElement("div",{className:`${ae}-message`},he&&ie.createElement("span",{className:`${ae}-message-icon`},he),ie.createElement("div",{className:`${ae}-message-text`},Xn&&ie.createElement("div",{className:Me()(`${ae}-title`)},Xn),Hn&&ie.createElement("div",{className:`${ae}-description`},Hn))),ie.createElement("div",{className:`${ae}-buttons`},Qt&&ie.createElement(Ue.ZP,Object.assign({onClick:An,size:"small"},xe),fn!=null?fn:wn==null?void 0:wn.cancelText),ie.createElement(Pe.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,Tt.n)(cn)),Fe),actionFn:Gn,close:Ae,prefixCls:sn("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},bn!=null?bn:wn==null?void 0:wn.okText)))};var Kt=ue=>{const{prefixCls:ae,placement:Fe,className:xe,style:Re}=ue,En=Lt(ue,["prefixCls","placement","className","style"]),{getPrefixCls:fn}=ie.useContext(we.E_),bn=fn("popconfirm",ae),[cn]=vt(bn);return cn(ie.createElement(dt.ZP,{placement:Fe,className:Me()(bn,xe),style:Re,content:ie.createElement(At,Object.assign({prefixCls:bn},En))}))},$t=function(ue,ae){var Fe={};for(var xe in ue)Object.prototype.hasOwnProperty.call(ue,xe)&&ae.indexOf(xe)<0&&(Fe[xe]=ue[xe]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,xe=Object.getOwnPropertySymbols(ue);Re{const{prefixCls:Fe,placement:xe="top",trigger:Re="click",okType:En="primary",icon:fn=ie.createElement(St.Z,null),children:bn,overlayClassName:cn,onOpenChange:he,onVisibleChange:Qt}=ue,Ae=$t(ue,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:Gn}=ie.useContext(we.E_),[An,Se]=(0,fe.Z)(!1,{value:ue.open,defaultValue:ue.defaultOpen}),sn=(ni,Hi)=>{Se(ni,!0),Qt==null||Qt(ni),he==null||he(ni,Hi)},wn=ni=>{sn(!1,ni)},Xn=ni=>{var Hi;return(Hi=ue.onConfirm)===null||Hi===void 0?void 0:Hi.call(void 0,ni)},Hn=ni=>{var Hi;sn(!1,ni),(Hi=ue.onCancel)===null||Hi===void 0||Hi.call(void 0,ni)},ii=ni=>{ni.keyCode===_e.Z.ESC&&An&&sn(!1,ni)},re=ni=>{const{disabled:Hi=!1}=ue;Hi||sn(ni)},Dn=Gn("popconfirm",Fe),Zn=Me()(Dn,cn),[qn]=vt(Dn);return qn(ie.createElement(Le.Z,Object.assign({},(0,je.Z)(Ae,["title"]),{trigger:Re,placement:xe,onOpenChange:re,open:An,ref:ae,overlayClassName:Zn,content:ie.createElement(At,Object.assign({okType:En,icon:fn},ue,{prefixCls:Dn,close:wn,onConfirm:Xn,onCancel:Hn})),"data-popover-inject":!0}),(0,Ne.Tm)(bn,{onKeyDown:ni=>{var Hi,Jo;ie.isValidElement(bn)&&((Jo=bn==null?void 0:(Hi=bn.props).onKeyDown)===null||Jo===void 0||Jo.call(Hi,ni)),ii(ni)}})))});ne._InternalPanelDoNotUseOrYouWillBeFired=Kt;var qt=ne},39722:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{t5:function(){return Le}});var St=Ft(92310),Ut=Ft.n(St),Me=Ft(55477),_e=Ft(59301),fe=Ft(36355),je=Ft(77578),ie=Ft(17356),Ne=function(Ie,Ue){var Tt={};for(var et in Ie)Object.prototype.hasOwnProperty.call(Ie,et)&&Ue.indexOf(et)<0&&(Tt[et]=Ie[et]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,et=Object.getOwnPropertySymbols(Ie);nt{if(!(!Ue&&!Tt))return _e.createElement(_e.Fragment,null,Ue&&_e.createElement("div",{className:`${Ie}-title`},(0,je.Z)(Ue)),_e.createElement("div",{className:`${Ie}-inner-content`},(0,je.Z)(Tt)))},Le=Ie=>{const{hashId:Ue,prefixCls:Tt,className:et,style:nt,placement:dt="top",title:lt,content:pt,children:vt}=Ie;return _e.createElement("div",{className:Ut()(Ue,Tt,`${Tt}-pure`,`${Tt}-placement-${dt}`,et),style:nt},_e.createElement("div",{className:`${Tt}-arrow`}),_e.createElement(Me.G,Object.assign({},Ie,{className:Ue,prefixCls:Tt}),vt||we(Tt,lt,pt)))},Pe=Ie=>{const{prefixCls:Ue}=Ie,Tt=Ne(Ie,["prefixCls"]),{getPrefixCls:et}=_e.useContext(fe.E_),nt=et("popover",Ue),[dt,lt]=(0,ie.Z)(nt);return dt(_e.createElement(Le,Object.assign({},Tt,{prefixCls:nt,hashId:lt})))};Fn.ZP=Pe},60324:function(tn,Fn,Ft){"use strict";var St=Ft(92310),Ut=Ft.n(St),Me=Ft(59301),_e=Ft(77578),fe=Ft(62892),je=Ft(36355),ie=Ft(6848),Ne=Ft(39722),we=Ft(17356),Le=function(Ue,Tt){var et={};for(var nt in Ue)Object.prototype.hasOwnProperty.call(Ue,nt)&&Tt.indexOf(nt)<0&&(et[nt]=Ue[nt]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,nt=Object.getOwnPropertySymbols(Ue);dt{let{title:Tt,content:et,prefixCls:nt}=Ue;return Me.createElement(Me.Fragment,null,Tt&&Me.createElement("div",{className:`${nt}-title`},(0,_e.Z)(Tt)),Me.createElement("div",{className:`${nt}-inner-content`},(0,_e.Z)(et)))},Ie=Me.forwardRef((Ue,Tt)=>{const{prefixCls:et,title:nt,content:dt,overlayClassName:lt,placement:pt="top",trigger:vt="hover",mouseEnterDelay:Lt=.1,mouseLeaveDelay:At=.1,overlayStyle:kt={}}=Ue,Kt=Le(Ue,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:$t}=Me.useContext(je.E_),ne=$t("popover",et),[qt,ue]=(0,we.Z)(ne),ae=$t(),Fe=Ut()(lt,ue);return qt(Me.createElement(ie.Z,Object.assign({placement:pt,trigger:vt,mouseEnterDelay:Lt,mouseLeaveDelay:At,overlayStyle:kt},Kt,{prefixCls:ne,overlayClassName:Fe,ref:Tt,overlay:nt||dt?Me.createElement(Pe,{prefixCls:ne,title:nt,content:dt}):null,transitionName:(0,fe.m)(ae,"zoom-big",Kt.transitionName),"data-popover-inject":!0})))});Ie._InternalPanelDoNotUseOrYouWillBeFired=Ne.ZP,Fn.Z=Ie},17356:function(tn,Fn,Ft){"use strict";var St=Ft(17313),Ut=Ft(29878),Me=Ft(19447),_e=Ft(33166),fe=Ft(83116),je=Ft(37613);const ie=Le=>{const{componentCls:Pe,popoverColor:Ie,minWidth:Ue,fontWeightStrong:Tt,popoverPadding:et,boxShadowSecondary:nt,colorTextHeading:dt,borderRadiusLG:lt,zIndexPopup:pt,marginXS:vt,colorBgElevated:Lt,popoverBg:At}=Le;return[{[Pe]:Object.assign(Object.assign({},(0,St.Wf)(Le)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:pt,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":Lt,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${Pe}-content`]:{position:"relative"},[`${Pe}-inner`]:{backgroundColor:At,backgroundClip:"padding-box",borderRadius:lt,boxShadow:nt,padding:et},[`${Pe}-title`]:{minWidth:Ue,marginBottom:vt,color:dt,fontWeight:Tt},[`${Pe}-inner-content`]:{color:Ie}})},(0,Me.ZP)(Le,{colorBg:"var(--antd-arrow-background-color)"}),{[`${Pe}-pure`]:{position:"relative",maxWidth:"none",margin:Le.sizePopupArrow,display:"inline-block",[`${Pe}-content`]:{display:"inline-block"}}}]},Ne=Le=>{const{componentCls:Pe}=Le;return{[Pe]:_e.i.map(Ie=>{const Ue=Le[`${Ie}6`];return{[`&${Pe}-${Ie}`]:{"--antd-arrow-background-color":Ue,[`${Pe}-inner`]:{backgroundColor:Ue},[`${Pe}-arrow`]:{background:"transparent"}}}})}},we=Le=>{const{componentCls:Pe,lineWidth:Ie,lineType:Ue,colorSplit:Tt,paddingSM:et,controlHeight:nt,fontSize:dt,lineHeight:lt,padding:pt}=Le,vt=nt-Math.round(dt*lt),Lt=vt/2,At=vt/2-Ie,kt=pt;return{[Pe]:{[`${Pe}-inner`]:{padding:0},[`${Pe}-title`]:{margin:0,padding:`${Lt}px ${kt}px ${At}px`,borderBottom:`${Ie}px ${Ue} ${Tt}`},[`${Pe}-inner-content`]:{padding:`${et}px ${kt}px`}}}};Fn.Z=(0,fe.Z)("Popover",Le=>{const{colorBgElevated:Pe,colorText:Ie,wireframe:Ue}=Le,Tt=(0,je.TS)(Le,{popoverPadding:12,popoverBg:Pe,popoverColor:Ie});return[ie(Tt),Ne(Tt),Ue&&we(Tt),(0,Ut._y)(Tt,"zoom-big")]},Le=>({width:177,minWidth:177,zIndexPopup:Le.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},13570:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{Z:function(){return Qt}});var St=Ft(72308),Ut=Ft(59301),Me={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},_e=Me,fe=Ft(7657),je=function(Gn,An){return Ut.createElement(fe.Z,(0,St.Z)({},Gn,{ref:An,icon:_e}))},ie=Ut.forwardRef(je),Ne=ie,we=Ft(92310),Le=Ft.n(we),Pe=Ft(49618),Ie=Ft(52487),Ue=Ft(74416),Tt=Ft(18929),et=Ft(10228),nt=Ft(26112);function dt(Ae,Gn){var An=Ae.disabled,Se=Ae.prefixCls,sn=Ae.character,wn=Ae.characterRender,Xn=Ae.index,Hn=Ae.count,ii=Ae.value,re=Ae.allowHalf,Dn=Ae.focused,Zn=Ae.onHover,qn=Ae.onClick,ni=function(zn){Zn(zn,Xn)},Hi=function(zn){qn(zn,Xn)},Jo=function(zn){zn.keyCode===et.Z.ENTER&&qn(zn,Xn)},pn=Xn+1,Pn=new Set([Se]);ii===0&&Xn===0&&Dn?Pn.add("".concat(Se,"-focused")):re&&ii+.5>=pn&&iiXn?"true":"false","aria-posinset":Xn+1,"aria-setsize":Hn,tabIndex:An?-1:0},Ut.createElement("div",{className:"".concat(Se,"-first")},ti),Ut.createElement("div",{className:"".concat(Se,"-second")},ti)));return wn&&(gn=wn(gn,Ae)),gn}var lt=Ut.forwardRef(dt);function pt(){var Ae=Ut.useRef({});function Gn(Se){return Ae.current[Se]}function An(Se){return function(sn){Ae.current[Se]=sn}}return[Gn,An]}function vt(Ae){var Gn=Ae.pageXOffset,An="scrollLeft";if(typeof Gn!="number"){var Se=Ae.document;Gn=Se.documentElement[An],typeof Gn!="number"&&(Gn=Se.body[An])}return Gn}function Lt(Ae){var Gn,An,Se=Ae.ownerDocument,sn=Se.body,wn=Se&&Se.documentElement,Xn=Ae.getBoundingClientRect();return Gn=Xn.left,An=Xn.top,Gn-=wn.clientLeft||sn.clientLeft||0,An-=wn.clientTop||sn.clientTop||0,{left:Gn,top:An}}function At(Ae){var Gn=Lt(Ae),An=Ae.ownerDocument,Se=An.defaultView||An.parentWindow;return Gn.left+=vt(Se),Gn.left}var kt=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Kt(Ae,Gn){var An,Se=Ae.prefixCls,sn=Se===void 0?"rc-rate":Se,wn=Ae.className,Xn=Ae.defaultValue,Hn=Ae.value,ii=Ae.count,re=ii===void 0?5:ii,Dn=Ae.allowHalf,Zn=Dn===void 0?!1:Dn,qn=Ae.allowClear,ni=qn===void 0?!0:qn,Hi=Ae.character,Jo=Hi===void 0?"\u2605":Hi,pn=Ae.characterRender,Pn=Ae.disabled,ti=Ae.direction,gn=ti===void 0?"ltr":ti,Bn=Ae.tabIndex,zn=Bn===void 0?0:Bn,jt=Ae.autoFocus,Mt=Ae.onHoverChange,xt=Ae.onChange,Bt=Ae.onFocus,Zt=Ae.onBlur,Nt=Ae.onKeyDown,me=Ae.onMouseLeave,Sn=(0,Ue.Z)(Ae,kt),xn=pt(),yn=(0,Ie.Z)(xn,2),Rn=yn[0],ji=yn[1],Qi=Ut.useRef(null),Ti=function(){if(!Pn){var Ge;(Ge=Qi.current)===null||Ge===void 0||Ge.focus()}};Ut.useImperativeHandle(Gn,function(){return{focus:Ti,blur:function(){if(!Pn){var Ge;(Ge=Qi.current)===null||Ge===void 0||Ge.blur()}}}});var vo=(0,Tt.Z)(Xn||0,{value:Hn}),Ri=(0,Ie.Z)(vo,2),er=Ri[0],As=Ri[1],Or=(0,Tt.Z)(null),jr=(0,Ie.Z)(Or,2),gr=jr[0],pr=jr[1],ps=function(Ge,Tn){var Si=gn==="rtl",ui=Ge+1;if(Zn){var ao=Rn(Ge),oe=At(ao),mn=ao.clientWidth;(Si&&Tn-oe>mn/2||!Si&&Tn-oe0&&!Si||Tn===et.Z.RIGHT&&ui>0&&Si?(Zn?ui-=.5:ui-=1,Yr(ui),Ge.preventDefault()):Tn===et.Z.LEFT&&ui{const{componentCls:Gn}=Ae;return{[`${Gn}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:Ae.marginXS},"> div":{transition:`all ${Ae.motionDurationMid}, outline 0s`,"&:hover":{transform:Ae.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${Ae.lineWidth}px dashed ${Ae.starColor}`,transform:Ae.starHoverScale}},"&-first, &-second":{color:Ae.starBg,transition:`all ${Ae.motionDurationMid}`,userSelect:"none",[Ae.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${Gn}-star-first, &-half ${Gn}-star-second`]:{opacity:1},[`&-half ${Gn}-star-first, &-full ${Gn}-star-second`]:{color:"inherit"}}}},En=Ae=>({[`&-rtl${Ae.componentCls}`]:{direction:"rtl"}}),fn=Ae=>{const{componentCls:Gn}=Ae;return{[Gn]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ae.Wf)(Ae)),{display:"inline-block",margin:0,padding:0,color:Ae.starColor,fontSize:Ae.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${Gn} ${Gn}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Re(Ae)),{[`+ ${Gn}-text`]:{display:"inline-block",marginInlineStart:Ae.marginXS,fontSize:Ae.fontSize}}),En(Ae))}};var bn=(0,Fe.Z)("Rate",Ae=>{const Gn=(0,xe.TS)(Ae,{});return[fn(Gn)]},Ae=>({starColor:Ae.yellow6,starSize:Ae.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:Ae.colorFillContent})),cn=function(Ae,Gn){var An={};for(var Se in Ae)Object.prototype.hasOwnProperty.call(Ae,Se)&&Gn.indexOf(Se)<0&&(An[Se]=Ae[Se]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var sn=0,Se=Object.getOwnPropertySymbols(Ae);sn{const{prefixCls:An,className:Se,rootClassName:sn,style:wn,tooltips:Xn,character:Hn=Ut.createElement(Ne,null)}=Ae,ii=cn(Ae,["prefixCls","className","rootClassName","style","tooltips","character"]),re=(Pn,ti)=>{let{index:gn}=ti;return Xn?Ut.createElement(ue.Z,{title:Xn[gn]},Pn):Pn},{getPrefixCls:Dn,direction:Zn,rate:qn}=Ut.useContext(qt.E_),ni=Dn("rate",An),[Hi,Jo]=bn(ni),pn=Object.assign(Object.assign({},qn==null?void 0:qn.style),wn);return Hi(Ut.createElement(ne,Object.assign({ref:Gn,character:Hn,characterRender:re},ii,{className:Le()(Se,sn,Jo,qn==null?void 0:qn.className),style:pn,prefixCls:ni,direction:Zn})))})},61621:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{Z:function(){return Jo}});var St=Ft(92310),Ut=Ft.n(St),Me=Ft(59301),_e=Ft(36355),fe=Ft(2738),ie=pn=>{const{prefixCls:Pn,className:ti,style:gn,size:Bn,shape:zn}=pn,jt=Ut()({[`${Pn}-lg`]:Bn==="large",[`${Pn}-sm`]:Bn==="small"}),Mt=Ut()({[`${Pn}-circle`]:zn==="circle",[`${Pn}-square`]:zn==="square",[`${Pn}-round`]:zn==="round"}),xt=Me.useMemo(()=>typeof Bn=="number"?{width:Bn,height:Bn,lineHeight:`${Bn}px`}:{},[Bn]);return Me.createElement("span",{className:Ut()(Pn,jt,Mt,ti),style:Object.assign(Object.assign({},xt),gn)})},Ne=Ft(93083),we=Ft(83116),Le=Ft(37613);const Pe=new Ne.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Ie=pn=>({height:pn,lineHeight:`${pn}px`}),Ue=pn=>Object.assign({width:pn},Ie(pn)),Tt=pn=>({background:pn.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Pe,animationDuration:pn.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),et=pn=>Object.assign({width:pn*5,minWidth:pn*5},Ie(pn)),nt=pn=>{const{skeletonAvatarCls:Pn,gradientFromColor:ti,controlHeight:gn,controlHeightLG:Bn,controlHeightSM:zn}=pn;return{[`${Pn}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ti},Ue(gn)),[`${Pn}${Pn}-circle`]:{borderRadius:"50%"},[`${Pn}${Pn}-lg`]:Object.assign({},Ue(Bn)),[`${Pn}${Pn}-sm`]:Object.assign({},Ue(zn))}},dt=pn=>{const{controlHeight:Pn,borderRadiusSM:ti,skeletonInputCls:gn,controlHeightLG:Bn,controlHeightSM:zn,gradientFromColor:jt}=pn;return{[`${gn}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:jt,borderRadius:ti},et(Pn)),[`${gn}-lg`]:Object.assign({},et(Bn)),[`${gn}-sm`]:Object.assign({},et(zn))}},lt=pn=>Object.assign({width:pn},Ie(pn)),pt=pn=>{const{skeletonImageCls:Pn,imageSizeBase:ti,gradientFromColor:gn,borderRadiusSM:Bn}=pn;return{[`${Pn}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:gn,borderRadius:Bn},lt(ti*2)),{[`${Pn}-path`]:{fill:"#bfbfbf"},[`${Pn}-svg`]:Object.assign(Object.assign({},lt(ti)),{maxWidth:ti*4,maxHeight:ti*4}),[`${Pn}-svg${Pn}-svg-circle`]:{borderRadius:"50%"}}),[`${Pn}${Pn}-circle`]:{borderRadius:"50%"}}},vt=(pn,Pn,ti)=>{const{skeletonButtonCls:gn}=pn;return{[`${ti}${gn}-circle`]:{width:Pn,minWidth:Pn,borderRadius:"50%"},[`${ti}${gn}-round`]:{borderRadius:Pn}}},Lt=pn=>Object.assign({width:pn*2,minWidth:pn*2},Ie(pn)),At=pn=>{const{borderRadiusSM:Pn,skeletonButtonCls:ti,controlHeight:gn,controlHeightLG:Bn,controlHeightSM:zn,gradientFromColor:jt}=pn;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${ti}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:jt,borderRadius:Pn,width:gn*2,minWidth:gn*2},Lt(gn))},vt(pn,gn,ti)),{[`${ti}-lg`]:Object.assign({},Lt(Bn))}),vt(pn,Bn,`${ti}-lg`)),{[`${ti}-sm`]:Object.assign({},Lt(zn))}),vt(pn,zn,`${ti}-sm`))},kt=pn=>{const{componentCls:Pn,skeletonAvatarCls:ti,skeletonTitleCls:gn,skeletonParagraphCls:Bn,skeletonButtonCls:zn,skeletonInputCls:jt,skeletonImageCls:Mt,controlHeight:xt,controlHeightLG:Bt,controlHeightSM:Zt,gradientFromColor:Nt,padding:me,marginSM:Sn,borderRadius:xn,titleHeight:yn,blockRadius:Rn,paragraphLiHeight:ji,controlHeightXS:Qi,paragraphMarginTop:Ti}=pn;return{[`${Pn}`]:{display:"table",width:"100%",[`${Pn}-header`]:{display:"table-cell",paddingInlineEnd:me,verticalAlign:"top",[`${ti}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Nt},Ue(xt)),[`${ti}-circle`]:{borderRadius:"50%"},[`${ti}-lg`]:Object.assign({},Ue(Bt)),[`${ti}-sm`]:Object.assign({},Ue(Zt))},[`${Pn}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${gn}`]:{width:"100%",height:yn,background:Nt,borderRadius:Rn,[`+ ${Bn}`]:{marginBlockStart:Zt}},[`${Bn}`]:{padding:0,"> li":{width:"100%",height:ji,listStyle:"none",background:Nt,borderRadius:Rn,"+ li":{marginBlockStart:Qi}}},[`${Bn}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${Pn}-content`]:{[`${gn}, ${Bn} > li`]:{borderRadius:xn}}},[`${Pn}-with-avatar ${Pn}-content`]:{[`${gn}`]:{marginBlockStart:Sn,[`+ ${Bn}`]:{marginBlockStart:Ti}}},[`${Pn}${Pn}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},At(pn)),nt(pn)),dt(pn)),pt(pn)),[`${Pn}${Pn}-block`]:{width:"100%",[`${zn}`]:{width:"100%"},[`${jt}`]:{width:"100%"}},[`${Pn}${Pn}-active`]:{[` + table`]:{textAlign:"center"},"&-focused":{borderColor:rn}}}}),"&-dropdown-range":{padding:`${Xo*2/3}px 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${Ot}-separator`]:{transform:"rotate(180deg)"},[`${Ot}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,Lr.oN)(bt,"slide-up"),(0,Lr.oN)(bt,"slide-down"),(0,so.Fm)(bt,"move-up"),(0,so.Fm)(bt,"move-down")]},oo=bt=>{const{componentCls:Ot,controlHeightLG:Ht,paddingXXS:le,padding:de}=bt;return{pickerCellCls:`${Ot}-cell`,pickerCellInnerCls:`${Ot}-cell-inner`,pickerYearMonthCellWidth:Ht*1.5,pickerQuarterPanelContentHeight:Ht*1.4,pickerCellPaddingVertical:le+le/2,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:de+le/2}},tr=bt=>({cellHoverBg:bt.controlItemBgHover,cellActiveWithRangeBg:bt.controlItemBgActive,cellHoverWithRangeBg:new Ui.C(bt.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Ui.C(bt.colorPrimary).lighten(20).toHexString(),cellBgDisabled:bt.colorBgContainerDisabled,timeColumnWidth:bt.controlHeightLG*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:bt.controlHeightSM*1.5,cellHeight:bt.controlHeightSM,textHeight:bt.controlHeightLG,withoutTimeCellHeight:bt.controlHeightLG*1.65});var Dr=(0,Xl.Z)("DatePicker",bt=>{const Ot=(0,ml.TS)((0,sr.e5)(bt),oo(bt));return[gs(Ot),_s(Ot),(0,Io.c)(bt,{focusElCls:`${bt.componentCls}-focused`})]},bt=>Object.assign(Object.assign(Object.assign({},(0,sr.TM)(bt)),tr(bt)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:bt.zIndexPopupBase+50}));function Er(bt,Ot,Ht){return Ht!==void 0?Ht:Ot==="year"&&bt.lang.yearPlaceholder?bt.lang.yearPlaceholder:Ot==="quarter"&&bt.lang.quarterPlaceholder?bt.lang.quarterPlaceholder:Ot==="month"&&bt.lang.monthPlaceholder?bt.lang.monthPlaceholder:Ot==="week"&&bt.lang.weekPlaceholder?bt.lang.weekPlaceholder:Ot==="time"&&bt.timePickerLocale.placeholder?bt.timePickerLocale.placeholder:bt.lang.placeholder}function Ph(bt,Ot,Ht){return Ht!==void 0?Ht:Ot==="year"&&bt.lang.yearPlaceholder?bt.lang.rangeYearPlaceholder:Ot==="quarter"&&bt.lang.quarterPlaceholder?bt.lang.rangeQuarterPlaceholder:Ot==="month"&&bt.lang.monthPlaceholder?bt.lang.rangeMonthPlaceholder:Ot==="week"&&bt.lang.weekPlaceholder?bt.lang.rangeWeekPlaceholder:Ot==="time"&&bt.timePickerLocale.placeholder?bt.timePickerLocale.rangePlaceholder:bt.lang.rangePlaceholder}function Ru(bt,Ot){const Ht={adjustX:1,adjustY:1};switch(Ot){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:Ht};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:Ht};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:Ht};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:Ht};default:return{points:bt==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:Ht}}}function jh(bt){return bt?Array.isArray(bt)?bt:[bt]:[]}function fi(bt){const{format:Ot,picker:Ht,showHour:le,showMinute:de,showSecond:se,use12Hours:ye}=bt,Te=jh(Ot)[0],Qe=Object.assign({},bt);return Ot&&Array.isArray(Ot)&&(Qe.format=Te),Te&&typeof Te=="string"&&(!Te.includes("s")&&se===void 0&&(Qe.showSecond=!1),!Te.includes("m")&&de===void 0&&(Qe.showMinute=!1),!Te.includes("H")&&!Te.includes("h")&&!Te.includes("K")&&!Te.includes("k")&&le===void 0&&(Qe.showHour=!1),(Te.includes("a")||Te.includes("A"))&&ye===void 0&&(Qe.use12Hours=!0)),Ht==="time"?Qe:(typeof Te=="function"&&delete Qe.format,{showTime:Qe})}function Rh(bt,Ot,Ht){if(bt===!1)return!1;const le={clearIcon:Ot!=null?Ot:Ht};return typeof bt=="object"?Object.assign(Object.assign({},le),bt):le}var _t=Ft(3113);function He(bt){return kt.createElement(_t.ZP,Object.assign({size:"small",type:"primary"},bt))}var Aa={button:He},Vs=function(bt,Ot){var Ht={};for(var le in bt)Object.prototype.hasOwnProperty.call(bt,le)&&Ot.indexOf(le)<0&&(Ht[le]=bt[le]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,le=Object.getOwnPropertySymbols(bt);de{const{prefixCls:de,getPopupContainer:se,className:ye,placement:Te,size:Qe,disabled:rn,bordered:jn=!0,placeholder:an,popupClassName:Mn,dropdownClassName:nn,status:_n,clearIcon:Ve,allowClear:Ln,rootClassName:Jn}=Ht,Ei=Vs(Ht,["prefixCls","getPopupContainer","className","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","clearIcon","allowClear","rootClassName"]),mi=kt.useRef(null),{getPrefixCls:bi,direction:Ni,getPopupContainer:ki}=(0,kt.useContext)($r.E_),Un=bi("picker",de),{compactSize:Co,compactItemClassnames:co}=(0,ho.ri)(Un,Ni),{format:zo,showTime:cr,picker:fr}=Ht,ar=bi(),[ts,or]=Dr(Un),Xo=Object.assign(Object.assign({},cr?fi(Object.assign({format:zo,picker:fr},cr)):{}),fr==="time"?fi(Object.assign(Object.assign({format:zo},Ht),{picker:fr})):{}),dr=(0,qe.Z)(bo=>{var ms;return(ms=Qe!=null?Qe:Co)!==null&&ms!==void 0?ms:bo}),zr=kt.useContext(Mo.Z),es=rn!=null?rn:zr,Cr=(0,kt.useContext)(Li.aM),{hasFeedback:Gr,status:Ns,feedbackIcon:fa}=Cr,Ga=kt.createElement(kt.Fragment,null,fr==="time"?kt.createElement(fn,null):kt.createElement(ae,null),Gr&&fa);(0,kt.useImperativeHandle)(le,()=>({focus:()=>{var bo;return(bo=mi.current)===null||bo===void 0?void 0:bo.focus()},blur:()=>{var bo;return(bo=mi.current)===null||bo===void 0?void 0:bo.blur()}}));const[$s]=(0,Wi.Z)("Calendar",_i.Z),ba=Object.assign(Object.assign({},$s),Ht.locale);return ts(kt.createElement(eo,Object.assign({separator:kt.createElement("span",{"aria-label":"to",className:`${Un}-separator`},kt.createElement(Gn,null)),disabled:es,ref:mi,dropdownAlign:Ru(Ni,Te),placeholder:Ph(ba,fr,an),suffixIcon:Ga,prevIcon:kt.createElement("span",{className:`${Un}-prev-icon`}),nextIcon:kt.createElement("span",{className:`${Un}-next-icon`}),superPrevIcon:kt.createElement("span",{className:`${Un}-super-prev-icon`}),superNextIcon:kt.createElement("span",{className:`${Un}-super-next-icon`}),transitionName:`${ar}-slide-up`},Ei,Xo,{className:Se()({[`${Un}-${dr}`]:dr,[`${Un}-borderless`]:!jn},(0,ga.Z)(Un,(0,ga.F)(Ns,_n),Gr),or,co,ye,Jn),locale:ba.lang,prefixCls:Un,getPopupContainer:se||ki,generateConfig:bt,components:Aa,direction:Ni,dropdownClassName:Se()(or,Mn||nn,Jn),allowClear:Rh(Ln,Ve,kt.createElement(bn.Z,null))})))})}var Fl=function(bt,Ot){var Ht={};for(var le in bt)Object.prototype.hasOwnProperty.call(bt,le)&&Ot.indexOf(le)<0&&(Ht[le]=bt[le]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,le=Object.getOwnPropertySymbols(bt);de{const{prefixCls:_n,getPopupContainer:Ve,style:Ln,className:Jn,rootClassName:Ei,size:mi,bordered:bi=!0,placement:Ni,placeholder:ki,popupClassName:Un,dropdownClassName:Co,disabled:co,status:zo,clearIcon:cr,allowClear:fr}=Mn,ar=Fl(Mn,["prefixCls","getPopupContainer","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","clearIcon","allowClear"]),{getPrefixCls:ts,direction:or,getPopupContainer:Xo,[jn]:dr}=(0,kt.useContext)($r.E_),zr=ts("picker",_n),{compactSize:es,compactItemClassnames:Cr}=(0,ho.ri)(zr,or),Gr=kt.useRef(null),{format:Ns,showTime:fa}=Mn,[Ga,$s]=Dr(zr);(0,kt.useImperativeHandle)(nn,()=>({focus:()=>{var Eo;return(Eo=Gr.current)===null||Eo===void 0?void 0:Eo.focus()},blur:()=>{var Eo;return(Eo=Gr.current)===null||Eo===void 0?void 0:Eo.blur()}}));const ba={showToday:!0};let bo={};Qe&&(bo.picker=Qe);const ms=Qe||Mn.picker;bo=Object.assign(Object.assign(Object.assign({},bo),fa?fi(Object.assign({format:Ns,picker:ms},fa)):{}),ms==="time"?fi(Object.assign(Object.assign({format:Ns},Mn),{picker:ms})):{});const Po=ts(),kr=(0,qe.Z)(Eo=>{var $a;return($a=mi!=null?mi:es)!==null&&$a!==void 0?$a:Eo}),xr=kt.useContext(Mo.Z),Kr=co!=null?co:xr,qa=(0,kt.useContext)(Li.aM),{hasFeedback:lo,status:Cs,feedbackIcon:ta}=qa,Ta=kt.createElement(kt.Fragment,null,ms==="time"?kt.createElement(fn,null):kt.createElement(ae,null),lo&&ta),[ns]=(0,Wi.Z)("DatePicker",_i.Z),bs=Object.assign(Object.assign({},ns),Mn.locale);return Ga(kt.createElement(no,Object.assign({ref:Gr,placeholder:Er(bs,ms,ki),suffixIcon:Ta,dropdownAlign:Ru(or,Ni),prevIcon:kt.createElement("span",{className:`${zr}-prev-icon`}),nextIcon:kt.createElement("span",{className:`${zr}-next-icon`}),superPrevIcon:kt.createElement("span",{className:`${zr}-super-prev-icon`}),superNextIcon:kt.createElement("span",{className:`${zr}-super-next-icon`}),transitionName:`${Po}-slide-up`},ba,ar,bo,{locale:bs.lang,className:Se()({[`${zr}-${kr}`]:kr,[`${zr}-borderless`]:!bi},(0,ga.Z)(zr,(0,ga.F)(Cs,zo),lo),$s,Cr,dr==null?void 0:dr.className,Jn,Ei),style:Object.assign(Object.assign({},dr==null?void 0:dr.style),Ln),prefixCls:zr,getPopupContainer:Ve||Xo,generateConfig:bt,components:Aa,direction:or,disabled:Kr,dropdownClassName:Se()($s,Ei,Un||Co),allowClear:Rh(fr,cr,kt.createElement(bn.Z,null))})))});return rn&&(an.displayName=rn),an}const Ht=Ot(),le=Ot("week","WeekPicker"),de=Ot("month","MonthPicker"),se=Ot("year","YearPicker"),ye=Ot("time","TimePicker"),Te=Ot("quarter","QuarterPicker");return{DatePicker:Ht,WeekPicker:le,MonthPicker:de,YearPicker:se,TimePicker:ye,QuarterPicker:Te}}const as=null;function ls(bt){const{DatePicker:Ot,WeekPicker:Ht,MonthPicker:le,YearPicker:de,TimePicker:se,QuarterPicker:ye}=zu(bt),Te=js(bt),Qe=Ot;return Qe.WeekPicker=Ht,Qe.MonthPicker=le,Qe.YearPicker=de,Qe.RangePicker=Te,Qe.TimePicker=se,Qe.QuarterPicker=ye,Qe}var Vi=ls;const qs=Vi(vt);function vl(bt){const Ot=Ru(bt.direction,bt.placement);return Ot.overflow.adjustY=!1,Ot.overflow.adjustX=!1,Object.assign(Object.assign({},bt),{dropdownAlign:Ot})}const fs=(0,Lt.Z)(qs,"picker",null,vl);qs._InternalPanelDoNotUseOrYouWillBeFired=fs;const Lo=(0,Lt.Z)(qs.RangePicker,"picker",null,vl);qs._InternalRangePanelDoNotUseOrYouWillBeFired=Lo,qs.generatePicker=Vi;var Rs=qs},14478:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{Z:function(){return qt}});var St=Ft(96512),Ut=Ft(92310),Me=Ft.n(Ut),_e=Ft(10228),fe=Ft(18929),je=Ft(2738),ie=Ft(59301),Ne=Ft(92343),we=Ft(36355),Le=Ft(60324),Pe=Ft(92806),Ie=Ft(77578),Ue=Ft(3113),Tt=Ft(67797),et=Ft(9763),nt=Ft(31724),dt=Ft(39722),lt=Ft(83116);const pt=ue=>{const{componentCls:ae,iconCls:Fe,antCls:xe,zIndexPopup:Re,colorText:En,colorWarning:fn,marginXXS:bn,marginXS:cn,fontSize:he,fontWeightStrong:Qt,colorTextHeading:Ae}=ue;return{[ae]:{zIndex:Re,[`&${xe}-popover`]:{fontSize:he},[`${ae}-message`]:{marginBottom:cn,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${ae}-message-icon ${Fe}`]:{color:fn,fontSize:he,lineHeight:1,marginInlineEnd:cn},[`${ae}-title`]:{fontWeight:Qt,color:Ae,"&:only-child":{fontWeight:"normal"}},[`${ae}-description`]:{marginTop:bn,color:En}},[`${ae}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:cn}}}}};var vt=(0,lt.Z)("Popconfirm",ue=>pt(ue),ue=>{const{zIndexPopupBase:ae}=ue;return{zIndexPopup:ae+60}},{resetStyle:!1}),Lt=function(ue,ae){var Fe={};for(var xe in ue)Object.prototype.hasOwnProperty.call(ue,xe)&&ae.indexOf(xe)<0&&(Fe[xe]=ue[xe]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,xe=Object.getOwnPropertySymbols(ue);Re{const{prefixCls:ae,okButtonProps:Fe,cancelButtonProps:xe,title:Re,description:En,cancelText:fn,okText:bn,okType:cn="primary",icon:he=ie.createElement(St.Z,null),showCancel:Qt=!0,close:Ae,onConfirm:Gn,onCancel:An,onPopupClick:Se}=ue,{getPrefixCls:sn}=ie.useContext(we.E_),[wn]=(0,et.Z)("Popconfirm",nt.Z.Popconfirm),Xn=(0,Ie.Z)(Re),Hn=(0,Ie.Z)(En);return ie.createElement("div",{className:`${ae}-inner-content`,onClick:Se},ie.createElement("div",{className:`${ae}-message`},he&&ie.createElement("span",{className:`${ae}-message-icon`},he),ie.createElement("div",{className:`${ae}-message-text`},Xn&&ie.createElement("div",{className:Me()(`${ae}-title`)},Xn),Hn&&ie.createElement("div",{className:`${ae}-description`},Hn))),ie.createElement("div",{className:`${ae}-buttons`},Qt&&ie.createElement(Ue.ZP,Object.assign({onClick:An,size:"small"},xe),fn!=null?fn:wn==null?void 0:wn.cancelText),ie.createElement(Pe.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,Tt.n)(cn)),Fe),actionFn:Gn,close:Ae,prefixCls:sn("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},bn!=null?bn:wn==null?void 0:wn.okText)))};var Kt=ue=>{const{prefixCls:ae,placement:Fe,className:xe,style:Re}=ue,En=Lt(ue,["prefixCls","placement","className","style"]),{getPrefixCls:fn}=ie.useContext(we.E_),bn=fn("popconfirm",ae),[cn]=vt(bn);return cn(ie.createElement(dt.ZP,{placement:Fe,className:Me()(bn,xe),style:Re,content:ie.createElement(At,Object.assign({prefixCls:bn},En))}))},$t=function(ue,ae){var Fe={};for(var xe in ue)Object.prototype.hasOwnProperty.call(ue,xe)&&ae.indexOf(xe)<0&&(Fe[xe]=ue[xe]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,xe=Object.getOwnPropertySymbols(ue);Re{const{prefixCls:Fe,placement:xe="top",trigger:Re="click",okType:En="primary",icon:fn=ie.createElement(St.Z,null),children:bn,overlayClassName:cn,onOpenChange:he,onVisibleChange:Qt}=ue,Ae=$t(ue,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:Gn}=ie.useContext(we.E_),[An,Se]=(0,fe.Z)(!1,{value:ue.open,defaultValue:ue.defaultOpen}),sn=(ni,Hi)=>{Se(ni,!0),Qt==null||Qt(ni),he==null||he(ni,Hi)},wn=ni=>{sn(!1,ni)},Xn=ni=>{var Hi;return(Hi=ue.onConfirm)===null||Hi===void 0?void 0:Hi.call(void 0,ni)},Hn=ni=>{var Hi;sn(!1,ni),(Hi=ue.onCancel)===null||Hi===void 0||Hi.call(void 0,ni)},ii=ni=>{ni.keyCode===_e.Z.ESC&&An&&sn(!1,ni)},re=ni=>{const{disabled:Hi=!1}=ue;Hi||sn(ni)},Dn=Gn("popconfirm",Fe),Zn=Me()(Dn,cn),[qn]=vt(Dn);return qn(ie.createElement(Le.Z,Object.assign({},(0,je.Z)(Ae,["title"]),{trigger:Re,placement:xe,onOpenChange:re,open:An,ref:ae,overlayClassName:Zn,content:ie.createElement(At,Object.assign({okType:En,icon:fn},ue,{prefixCls:Dn,close:wn,onConfirm:Xn,onCancel:Hn})),"data-popover-inject":!0}),(0,Ne.Tm)(bn,{onKeyDown:ni=>{var Hi,Jo;ie.isValidElement(bn)&&((Jo=bn==null?void 0:(Hi=bn.props).onKeyDown)===null||Jo===void 0||Jo.call(Hi,ni)),ii(ni)}})))});ne._InternalPanelDoNotUseOrYouWillBeFired=Kt;var qt=ne},39722:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{t5:function(){return Le}});var St=Ft(92310),Ut=Ft.n(St),Me=Ft(55477),_e=Ft(59301),fe=Ft(36355),je=Ft(77578),ie=Ft(17356),Ne=function(Ie,Ue){var Tt={};for(var et in Ie)Object.prototype.hasOwnProperty.call(Ie,et)&&Ue.indexOf(et)<0&&(Tt[et]=Ie[et]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,et=Object.getOwnPropertySymbols(Ie);nt{if(!(!Ue&&!Tt))return _e.createElement(_e.Fragment,null,Ue&&_e.createElement("div",{className:`${Ie}-title`},(0,je.Z)(Ue)),_e.createElement("div",{className:`${Ie}-inner-content`},(0,je.Z)(Tt)))},Le=Ie=>{const{hashId:Ue,prefixCls:Tt,className:et,style:nt,placement:dt="top",title:lt,content:pt,children:vt}=Ie;return _e.createElement("div",{className:Ut()(Ue,Tt,`${Tt}-pure`,`${Tt}-placement-${dt}`,et),style:nt},_e.createElement("div",{className:`${Tt}-arrow`}),_e.createElement(Me.G,Object.assign({},Ie,{className:Ue,prefixCls:Tt}),vt||we(Tt,lt,pt)))},Pe=Ie=>{const{prefixCls:Ue}=Ie,Tt=Ne(Ie,["prefixCls"]),{getPrefixCls:et}=_e.useContext(fe.E_),nt=et("popover",Ue),[dt,lt]=(0,ie.Z)(nt);return dt(_e.createElement(Le,Object.assign({},Tt,{prefixCls:nt,hashId:lt})))};Fn.ZP=Pe},60324:function(tn,Fn,Ft){"use strict";var St=Ft(92310),Ut=Ft.n(St),Me=Ft(59301),_e=Ft(77578),fe=Ft(62892),je=Ft(36355),ie=Ft(6848),Ne=Ft(39722),we=Ft(17356),Le=function(Ue,Tt){var et={};for(var nt in Ue)Object.prototype.hasOwnProperty.call(Ue,nt)&&Tt.indexOf(nt)<0&&(et[nt]=Ue[nt]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,nt=Object.getOwnPropertySymbols(Ue);dt{let{title:Tt,content:et,prefixCls:nt}=Ue;return Me.createElement(Me.Fragment,null,Tt&&Me.createElement("div",{className:`${nt}-title`},(0,_e.Z)(Tt)),Me.createElement("div",{className:`${nt}-inner-content`},(0,_e.Z)(et)))},Ie=Me.forwardRef((Ue,Tt)=>{const{prefixCls:et,title:nt,content:dt,overlayClassName:lt,placement:pt="top",trigger:vt="hover",mouseEnterDelay:Lt=.1,mouseLeaveDelay:At=.1,overlayStyle:kt={}}=Ue,Kt=Le(Ue,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:$t}=Me.useContext(je.E_),ne=$t("popover",et),[qt,ue]=(0,we.Z)(ne),ae=$t(),Fe=Ut()(lt,ue);return qt(Me.createElement(ie.Z,Object.assign({placement:pt,trigger:vt,mouseEnterDelay:Lt,mouseLeaveDelay:At,overlayStyle:kt},Kt,{prefixCls:ne,overlayClassName:Fe,ref:Tt,overlay:nt||dt?Me.createElement(Pe,{prefixCls:ne,title:nt,content:dt}):null,transitionName:(0,fe.m)(ae,"zoom-big",Kt.transitionName),"data-popover-inject":!0})))});Ie._InternalPanelDoNotUseOrYouWillBeFired=Ne.ZP,Fn.Z=Ie},17356:function(tn,Fn,Ft){"use strict";var St=Ft(17313),Ut=Ft(29878),Me=Ft(19447),_e=Ft(33166),fe=Ft(83116),je=Ft(37613);const ie=Le=>{const{componentCls:Pe,popoverColor:Ie,minWidth:Ue,fontWeightStrong:Tt,popoverPadding:et,boxShadowSecondary:nt,colorTextHeading:dt,borderRadiusLG:lt,zIndexPopup:pt,marginXS:vt,colorBgElevated:Lt,popoverBg:At}=Le;return[{[Pe]:Object.assign(Object.assign({},(0,St.Wf)(Le)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:pt,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":Lt,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${Pe}-content`]:{position:"relative"},[`${Pe}-inner`]:{backgroundColor:At,backgroundClip:"padding-box",borderRadius:lt,boxShadow:nt,padding:et},[`${Pe}-title`]:{minWidth:Ue,marginBottom:vt,color:dt,fontWeight:Tt},[`${Pe}-inner-content`]:{color:Ie}})},(0,Me.ZP)(Le,{colorBg:"var(--antd-arrow-background-color)"}),{[`${Pe}-pure`]:{position:"relative",maxWidth:"none",margin:Le.sizePopupArrow,display:"inline-block",[`${Pe}-content`]:{display:"inline-block"}}}]},Ne=Le=>{const{componentCls:Pe}=Le;return{[Pe]:_e.i.map(Ie=>{const Ue=Le[`${Ie}6`];return{[`&${Pe}-${Ie}`]:{"--antd-arrow-background-color":Ue,[`${Pe}-inner`]:{backgroundColor:Ue},[`${Pe}-arrow`]:{background:"transparent"}}}})}},we=Le=>{const{componentCls:Pe,lineWidth:Ie,lineType:Ue,colorSplit:Tt,paddingSM:et,controlHeight:nt,fontSize:dt,lineHeight:lt,padding:pt}=Le,vt=nt-Math.round(dt*lt),Lt=vt/2,At=vt/2-Ie,kt=pt;return{[Pe]:{[`${Pe}-inner`]:{padding:0},[`${Pe}-title`]:{margin:0,padding:`${Lt}px ${kt}px ${At}px`,borderBottom:`${Ie}px ${Ue} ${Tt}`},[`${Pe}-inner-content`]:{padding:`${et}px ${kt}px`}}}};Fn.Z=(0,fe.Z)("Popover",Le=>{const{colorBgElevated:Pe,colorText:Ie,wireframe:Ue}=Le,Tt=(0,je.TS)(Le,{popoverPadding:12,popoverBg:Pe,popoverColor:Ie});return[ie(Tt),Ne(Tt),Ue&&we(Tt),(0,Ut._y)(Tt,"zoom-big")]},Le=>({width:177,minWidth:177,zIndexPopup:Le.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},13570:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{Z:function(){return Qt}});var St=Ft(72308),Ut=Ft(59301),Me={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},_e=Me,fe=Ft(7657),je=function(Gn,An){return Ut.createElement(fe.Z,(0,St.Z)({},Gn,{ref:An,icon:_e}))},ie=Ut.forwardRef(je),Ne=ie,we=Ft(92310),Le=Ft.n(we),Pe=Ft(49618),Ie=Ft(52487),Ue=Ft(74416),Tt=Ft(18929),et=Ft(10228),nt=Ft(26112);function dt(Ae,Gn){var An=Ae.disabled,Se=Ae.prefixCls,sn=Ae.character,wn=Ae.characterRender,Xn=Ae.index,Hn=Ae.count,ii=Ae.value,re=Ae.allowHalf,Dn=Ae.focused,Zn=Ae.onHover,qn=Ae.onClick,ni=function(zn){Zn(zn,Xn)},Hi=function(zn){qn(zn,Xn)},Jo=function(zn){zn.keyCode===et.Z.ENTER&&qn(zn,Xn)},pn=Xn+1,Pn=new Set([Se]);ii===0&&Xn===0&&Dn?Pn.add("".concat(Se,"-focused")):re&&ii+.5>=pn&&iiXn?"true":"false","aria-posinset":Xn+1,"aria-setsize":Hn,tabIndex:An?-1:0},Ut.createElement("div",{className:"".concat(Se,"-first")},ti),Ut.createElement("div",{className:"".concat(Se,"-second")},ti)));return wn&&(gn=wn(gn,Ae)),gn}var lt=Ut.forwardRef(dt);function pt(){var Ae=Ut.useRef({});function Gn(Se){return Ae.current[Se]}function An(Se){return function(sn){Ae.current[Se]=sn}}return[Gn,An]}function vt(Ae){var Gn=Ae.pageXOffset,An="scrollLeft";if(typeof Gn!="number"){var Se=Ae.document;Gn=Se.documentElement[An],typeof Gn!="number"&&(Gn=Se.body[An])}return Gn}function Lt(Ae){var Gn,An,Se=Ae.ownerDocument,sn=Se.body,wn=Se&&Se.documentElement,Xn=Ae.getBoundingClientRect();return Gn=Xn.left,An=Xn.top,Gn-=wn.clientLeft||sn.clientLeft||0,An-=wn.clientTop||sn.clientTop||0,{left:Gn,top:An}}function At(Ae){var Gn=Lt(Ae),An=Ae.ownerDocument,Se=An.defaultView||An.parentWindow;return Gn.left+=vt(Se),Gn.left}var kt=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Kt(Ae,Gn){var An,Se=Ae.prefixCls,sn=Se===void 0?"rc-rate":Se,wn=Ae.className,Xn=Ae.defaultValue,Hn=Ae.value,ii=Ae.count,re=ii===void 0?5:ii,Dn=Ae.allowHalf,Zn=Dn===void 0?!1:Dn,qn=Ae.allowClear,ni=qn===void 0?!0:qn,Hi=Ae.character,Jo=Hi===void 0?"\u2605":Hi,pn=Ae.characterRender,Pn=Ae.disabled,ti=Ae.direction,gn=ti===void 0?"ltr":ti,Bn=Ae.tabIndex,zn=Bn===void 0?0:Bn,jt=Ae.autoFocus,Mt=Ae.onHoverChange,xt=Ae.onChange,Bt=Ae.onFocus,Zt=Ae.onBlur,Nt=Ae.onKeyDown,me=Ae.onMouseLeave,Sn=(0,Ue.Z)(Ae,kt),xn=pt(),yn=(0,Ie.Z)(xn,2),Rn=yn[0],ji=yn[1],Qi=Ut.useRef(null),Ti=function(){if(!Pn){var Ge;(Ge=Qi.current)===null||Ge===void 0||Ge.focus()}};Ut.useImperativeHandle(Gn,function(){return{focus:Ti,blur:function(){if(!Pn){var Ge;(Ge=Qi.current)===null||Ge===void 0||Ge.blur()}}}});var vo=(0,Tt.Z)(Xn||0,{value:Hn}),Ri=(0,Ie.Z)(vo,2),er=Ri[0],As=Ri[1],Or=(0,Tt.Z)(null),jr=(0,Ie.Z)(Or,2),gr=jr[0],pr=jr[1],ps=function(Ge,Tn){var Si=gn==="rtl",ui=Ge+1;if(Zn){var ao=Rn(Ge),oe=At(ao),mn=ao.clientWidth;(Si&&Tn-oe>mn/2||!Si&&Tn-oe0&&!Si||Tn===et.Z.RIGHT&&ui>0&&Si?(Zn?ui-=.5:ui-=1,Yr(ui),Ge.preventDefault()):Tn===et.Z.LEFT&&ui{const{componentCls:Gn}=Ae;return{[`${Gn}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:Ae.marginXS},"> div":{transition:`all ${Ae.motionDurationMid}, outline 0s`,"&:hover":{transform:Ae.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${Ae.lineWidth}px dashed ${Ae.starColor}`,transform:Ae.starHoverScale}},"&-first, &-second":{color:Ae.starBg,transition:`all ${Ae.motionDurationMid}`,userSelect:"none",[Ae.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${Gn}-star-first, &-half ${Gn}-star-second`]:{opacity:1},[`&-half ${Gn}-star-first, &-full ${Gn}-star-second`]:{color:"inherit"}}}},En=Ae=>({[`&-rtl${Ae.componentCls}`]:{direction:"rtl"}}),fn=Ae=>{const{componentCls:Gn}=Ae;return{[Gn]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ae.Wf)(Ae)),{display:"inline-block",margin:0,padding:0,color:Ae.starColor,fontSize:Ae.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${Gn} ${Gn}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Re(Ae)),{[`+ ${Gn}-text`]:{display:"inline-block",marginInlineStart:Ae.marginXS,fontSize:Ae.fontSize}}),En(Ae))}};var bn=(0,Fe.Z)("Rate",Ae=>{const Gn=(0,xe.TS)(Ae,{});return[fn(Gn)]},Ae=>({starColor:Ae.yellow6,starSize:Ae.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:Ae.colorFillContent})),cn=function(Ae,Gn){var An={};for(var Se in Ae)Object.prototype.hasOwnProperty.call(Ae,Se)&&Gn.indexOf(Se)<0&&(An[Se]=Ae[Se]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var sn=0,Se=Object.getOwnPropertySymbols(Ae);sn{const{prefixCls:An,className:Se,rootClassName:sn,style:wn,tooltips:Xn,character:Hn=Ut.createElement(Ne,null)}=Ae,ii=cn(Ae,["prefixCls","className","rootClassName","style","tooltips","character"]),re=(Pn,ti)=>{let{index:gn}=ti;return Xn?Ut.createElement(ue.Z,{title:Xn[gn]},Pn):Pn},{getPrefixCls:Dn,direction:Zn,rate:qn}=Ut.useContext(qt.E_),ni=Dn("rate",An),[Hi,Jo]=bn(ni),pn=Object.assign(Object.assign({},qn==null?void 0:qn.style),wn);return Hi(Ut.createElement(ne,Object.assign({ref:Gn,character:Hn,characterRender:re},ii,{className:Le()(Se,sn,Jo,qn==null?void 0:qn.className),style:pn,prefixCls:ni,direction:Zn})))})},61621:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{Z:function(){return Jo}});var St=Ft(92310),Ut=Ft.n(St),Me=Ft(59301),_e=Ft(36355),fe=Ft(2738),ie=pn=>{const{prefixCls:Pn,className:ti,style:gn,size:Bn,shape:zn}=pn,jt=Ut()({[`${Pn}-lg`]:Bn==="large",[`${Pn}-sm`]:Bn==="small"}),Mt=Ut()({[`${Pn}-circle`]:zn==="circle",[`${Pn}-square`]:zn==="square",[`${Pn}-round`]:zn==="round"}),xt=Me.useMemo(()=>typeof Bn=="number"?{width:Bn,height:Bn,lineHeight:`${Bn}px`}:{},[Bn]);return Me.createElement("span",{className:Ut()(Pn,jt,Mt,ti),style:Object.assign(Object.assign({},xt),gn)})},Ne=Ft(93083),we=Ft(83116),Le=Ft(37613);const Pe=new Ne.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Ie=pn=>({height:pn,lineHeight:`${pn}px`}),Ue=pn=>Object.assign({width:pn},Ie(pn)),Tt=pn=>({background:pn.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Pe,animationDuration:pn.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),et=pn=>Object.assign({width:pn*5,minWidth:pn*5},Ie(pn)),nt=pn=>{const{skeletonAvatarCls:Pn,gradientFromColor:ti,controlHeight:gn,controlHeightLG:Bn,controlHeightSM:zn}=pn;return{[`${Pn}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ti},Ue(gn)),[`${Pn}${Pn}-circle`]:{borderRadius:"50%"},[`${Pn}${Pn}-lg`]:Object.assign({},Ue(Bn)),[`${Pn}${Pn}-sm`]:Object.assign({},Ue(zn))}},dt=pn=>{const{controlHeight:Pn,borderRadiusSM:ti,skeletonInputCls:gn,controlHeightLG:Bn,controlHeightSM:zn,gradientFromColor:jt}=pn;return{[`${gn}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:jt,borderRadius:ti},et(Pn)),[`${gn}-lg`]:Object.assign({},et(Bn)),[`${gn}-sm`]:Object.assign({},et(zn))}},lt=pn=>Object.assign({width:pn},Ie(pn)),pt=pn=>{const{skeletonImageCls:Pn,imageSizeBase:ti,gradientFromColor:gn,borderRadiusSM:Bn}=pn;return{[`${Pn}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:gn,borderRadius:Bn},lt(ti*2)),{[`${Pn}-path`]:{fill:"#bfbfbf"},[`${Pn}-svg`]:Object.assign(Object.assign({},lt(ti)),{maxWidth:ti*4,maxHeight:ti*4}),[`${Pn}-svg${Pn}-svg-circle`]:{borderRadius:"50%"}}),[`${Pn}${Pn}-circle`]:{borderRadius:"50%"}}},vt=(pn,Pn,ti)=>{const{skeletonButtonCls:gn}=pn;return{[`${ti}${gn}-circle`]:{width:Pn,minWidth:Pn,borderRadius:"50%"},[`${ti}${gn}-round`]:{borderRadius:Pn}}},Lt=pn=>Object.assign({width:pn*2,minWidth:pn*2},Ie(pn)),At=pn=>{const{borderRadiusSM:Pn,skeletonButtonCls:ti,controlHeight:gn,controlHeightLG:Bn,controlHeightSM:zn,gradientFromColor:jt}=pn;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${ti}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:jt,borderRadius:Pn,width:gn*2,minWidth:gn*2},Lt(gn))},vt(pn,gn,ti)),{[`${ti}-lg`]:Object.assign({},Lt(Bn))}),vt(pn,Bn,`${ti}-lg`)),{[`${ti}-sm`]:Object.assign({},Lt(zn))}),vt(pn,zn,`${ti}-sm`))},kt=pn=>{const{componentCls:Pn,skeletonAvatarCls:ti,skeletonTitleCls:gn,skeletonParagraphCls:Bn,skeletonButtonCls:zn,skeletonInputCls:jt,skeletonImageCls:Mt,controlHeight:xt,controlHeightLG:Bt,controlHeightSM:Zt,gradientFromColor:Nt,padding:me,marginSM:Sn,borderRadius:xn,titleHeight:yn,blockRadius:Rn,paragraphLiHeight:ji,controlHeightXS:Qi,paragraphMarginTop:Ti}=pn;return{[`${Pn}`]:{display:"table",width:"100%",[`${Pn}-header`]:{display:"table-cell",paddingInlineEnd:me,verticalAlign:"top",[`${ti}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Nt},Ue(xt)),[`${ti}-circle`]:{borderRadius:"50%"},[`${ti}-lg`]:Object.assign({},Ue(Bt)),[`${ti}-sm`]:Object.assign({},Ue(Zt))},[`${Pn}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${gn}`]:{width:"100%",height:yn,background:Nt,borderRadius:Rn,[`+ ${Bn}`]:{marginBlockStart:Zt}},[`${Bn}`]:{padding:0,"> li":{width:"100%",height:ji,listStyle:"none",background:Nt,borderRadius:Rn,"+ li":{marginBlockStart:Qi}}},[`${Bn}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${Pn}-content`]:{[`${gn}, ${Bn} > li`]:{borderRadius:xn}}},[`${Pn}-with-avatar ${Pn}-content`]:{[`${gn}`]:{marginBlockStart:Sn,[`+ ${Bn}`]:{marginBlockStart:Ti}}},[`${Pn}${Pn}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},At(pn)),nt(pn)),dt(pn)),pt(pn)),[`${Pn}${Pn}-block`]:{width:"100%",[`${zn}`]:{width:"100%"},[`${jt}`]:{width:"100%"}},[`${Pn}${Pn}-active`]:{[` ${gn}, ${Bn} > li, ${ti}, @@ -1146,35 +1146,35 @@ ${Se} `]:Object.assign({},Tt(pn))}}};var Kt=(0,we.Z)("Skeleton",pn=>{const{componentCls:Pn}=pn,ti=(0,Le.TS)(pn,{skeletonAvatarCls:`${Pn}-avatar`,skeletonTitleCls:`${Pn}-title`,skeletonParagraphCls:`${Pn}-paragraph`,skeletonButtonCls:`${Pn}-button`,skeletonInputCls:`${Pn}-input`,skeletonImageCls:`${Pn}-image`,imageSizeBase:pn.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${pn.gradientFromColor} 25%, ${pn.gradientToColor} 37%, ${pn.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[kt(ti)]},pn=>{const{colorFillContent:Pn,colorFill:ti}=pn,gn=Pn,Bn=ti;return{color:gn,colorGradientEnd:Bn,gradientFromColor:gn,gradientToColor:Bn,titleHeight:pn.controlHeight/2,blockRadius:pn.borderRadiusSM,paragraphMarginTop:pn.marginLG+pn.marginXXS,paragraphLiHeight:pn.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),ne=pn=>{const{prefixCls:Pn,className:ti,rootClassName:gn,active:Bn,shape:zn="circle",size:jt="default"}=pn,{getPrefixCls:Mt}=Me.useContext(_e.E_),xt=Mt("skeleton",Pn),[Bt,Zt]=Kt(xt),Nt=(0,fe.Z)(pn,["prefixCls","className"]),me=Ut()(xt,`${xt}-element`,{[`${xt}-active`]:Bn},ti,gn,Zt);return Bt(Me.createElement("div",{className:me},Me.createElement(ie,Object.assign({prefixCls:`${xt}-avatar`,shape:zn,size:jt},Nt))))},ue=pn=>{const{prefixCls:Pn,className:ti,rootClassName:gn,active:Bn,block:zn=!1,size:jt="default"}=pn,{getPrefixCls:Mt}=Me.useContext(_e.E_),xt=Mt("skeleton",Pn),[Bt,Zt]=Kt(xt),Nt=(0,fe.Z)(pn,["prefixCls"]),me=Ut()(xt,`${xt}-element`,{[`${xt}-active`]:Bn,[`${xt}-block`]:zn},ti,gn,Zt);return Bt(Me.createElement("div",{className:me},Me.createElement(ie,Object.assign({prefixCls:`${xt}-button`,size:jt},Nt))))};const ae="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var xe=pn=>{const{prefixCls:Pn,className:ti,rootClassName:gn,style:Bn,active:zn}=pn,{getPrefixCls:jt}=Me.useContext(_e.E_),Mt=jt("skeleton",Pn),[xt,Bt]=Kt(Mt),Zt=Ut()(Mt,`${Mt}-element`,{[`${Mt}-active`]:zn},ti,gn,Bt);return xt(Me.createElement("div",{className:Zt},Me.createElement("div",{className:Ut()(`${Mt}-image`,ti),style:Bn},Me.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Mt}-image-svg`},Me.createElement("path",{d:ae,className:`${Mt}-image-path`})))))},En=pn=>{const{prefixCls:Pn,className:ti,rootClassName:gn,active:Bn,block:zn,size:jt="default"}=pn,{getPrefixCls:Mt}=Me.useContext(_e.E_),xt=Mt("skeleton",Pn),[Bt,Zt]=Kt(xt),Nt=(0,fe.Z)(pn,["prefixCls"]),me=Ut()(xt,`${xt}-element`,{[`${xt}-active`]:Bn,[`${xt}-block`]:zn},ti,gn,Zt);return Bt(Me.createElement("div",{className:me},Me.createElement(ie,Object.assign({prefixCls:`${xt}-input`,size:jt},Nt))))},fn=Ft(72308),bn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},cn=bn,he=Ft(7657),Qt=function(Pn,ti){return Me.createElement(he.Z,(0,fn.Z)({},Pn,{ref:ti,icon:cn}))},Ae=Me.forwardRef(Qt),Gn=Ae,Se=pn=>{const{prefixCls:Pn,className:ti,rootClassName:gn,style:Bn,active:zn,children:jt}=pn,{getPrefixCls:Mt}=Me.useContext(_e.E_),xt=Mt("skeleton",Pn),[Bt,Zt]=Kt(xt),Nt=Ut()(xt,`${xt}-element`,{[`${xt}-active`]:zn},Zt,ti,gn),me=jt!=null?jt:Me.createElement(Gn,null);return Bt(Me.createElement("div",{className:Nt},Me.createElement("div",{className:Ut()(`${xt}-image`,ti),style:Bn},me)))},sn=Ft(80702),Xn=pn=>{const Pn=Mt=>{const{width:xt,rows:Bt=2}=pn;if(Array.isArray(xt))return xt[Mt];if(Bt-1===Mt)return xt},{prefixCls:ti,className:gn,style:Bn,rows:zn}=pn,jt=(0,sn.Z)(Array(zn)).map((Mt,xt)=>Me.createElement("li",{key:xt,style:{width:Pn(xt)}}));return Me.createElement("ul",{className:Ut()(ti,gn),style:Bn},jt)},ii=pn=>{let{prefixCls:Pn,className:ti,width:gn,style:Bn}=pn;return Me.createElement("h3",{className:Ut()(Pn,ti),style:Object.assign({width:gn},Bn)})};function re(pn){return pn&&typeof pn=="object"?pn:{}}function Dn(pn,Pn){return pn&&!Pn?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Zn(pn,Pn){return!pn&&Pn?{width:"38%"}:pn&&Pn?{width:"50%"}:{}}function qn(pn,Pn){const ti={};return(!pn||!Pn)&&(ti.width="61%"),!pn&&Pn?ti.rows=3:ti.rows=2,ti}const ni=pn=>{const{prefixCls:Pn,loading:ti,className:gn,rootClassName:Bn,style:zn,children:jt,avatar:Mt=!1,title:xt=!0,paragraph:Bt=!0,active:Zt,round:Nt}=pn,{getPrefixCls:me,direction:Sn,skeleton:xn}=Me.useContext(_e.E_),yn=me("skeleton",Pn),[Rn,ji]=Kt(yn);if(ti||!("loading"in pn)){const Qi=!!Mt,Ti=!!xt,vo=!!Bt;let Ri;if(Qi){const Or=Object.assign(Object.assign({prefixCls:`${yn}-avatar`},Dn(Ti,vo)),re(Mt));Ri=Me.createElement("div",{className:`${yn}-header`},Me.createElement(ie,Object.assign({},Or)))}let er;if(Ti||vo){let Or;if(Ti){const gr=Object.assign(Object.assign({prefixCls:`${yn}-title`},Zn(Qi,vo)),re(xt));Or=Me.createElement(ii,Object.assign({},gr))}let jr;if(vo){const gr=Object.assign(Object.assign({prefixCls:`${yn}-paragraph`},qn(Qi,Ti)),re(Bt));jr=Me.createElement(Xn,Object.assign({},gr))}er=Me.createElement("div",{className:`${yn}-content`},Or,jr)}const As=Ut()(yn,{[`${yn}-with-avatar`]:Qi,[`${yn}-active`]:Zt,[`${yn}-rtl`]:Sn==="rtl",[`${yn}-round`]:Nt},xn==null?void 0:xn.className,gn,Bn,ji);return Rn(Me.createElement("div",{className:As,style:Object.assign(Object.assign({},xn==null?void 0:xn.style),zn)},Ri,er))}return typeof jt!="undefined"?jt:null};ni.Button=ue,ni.Avatar=ne,ni.Input=En,ni.Image=xe,ni.Node=Se;var Hi=ni,Jo=Hi},31797:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{default:function(){return Kt}});var St=Ft(59301),Ut=Ft(56762),Me=Ft(92343),_e=Ft(92310),fe=Ft.n(_e),je=Ft(36355),ie=Ft(61621),we=$t=>{const{value:ne,formatter:qt,precision:ue,decimalSeparator:ae,groupSeparator:Fe="",prefixCls:xe}=$t;let Re;if(typeof qt=="function")Re=qt(ne);else{const En=String(ne),fn=En.match(/^(-?)(\d*)(\.(\d+))?$/);if(!fn||En==="-")Re=En;else{const bn=fn[1];let cn=fn[2]||"0",he=fn[4]||"";cn=cn.replace(/\B(?=(\d{3})+(?!\d))/g,Fe),typeof ue=="number"&&(he=he.padEnd(ue,"0").slice(0,ue>0?ue:0)),he&&(he=`${ae}${he}`),Re=[St.createElement("span",{key:"int",className:`${xe}-content-value-int`},bn,cn),he&&St.createElement("span",{key:"decimal",className:`${xe}-content-value-decimal`},he)]}}return St.createElement("span",{className:`${xe}-content-value`},Re)},Le=Ft(17313),Pe=Ft(83116),Ie=Ft(37613);const Ue=$t=>{const{componentCls:ne,marginXXS:qt,padding:ue,colorTextDescription:ae,titleFontSize:Fe,colorTextHeading:xe,contentFontSize:Re,fontFamily:En}=$t;return{[`${ne}`]:Object.assign(Object.assign({},(0,Le.Wf)($t)),{[`${ne}-title`]:{marginBottom:qt,color:ae,fontSize:Fe},[`${ne}-skeleton`]:{paddingTop:ue},[`${ne}-content`]:{color:xe,fontSize:Re,fontFamily:En,[`${ne}-content-value`]:{display:"inline-block",direction:"ltr"},[`${ne}-content-prefix, ${ne}-content-suffix`]:{display:"inline-block"},[`${ne}-content-prefix`]:{marginInlineEnd:qt},[`${ne}-content-suffix`]:{marginInlineStart:qt}}})}};var Tt=(0,Pe.Z)("Statistic",$t=>{const ne=(0,Ie.TS)($t,{});return[Ue(ne)]},$t=>{const{fontSizeHeading3:ne,fontSize:qt}=$t;return{titleFontSize:qt,contentFontSize:ne}}),nt=$t=>{const{prefixCls:ne,className:qt,rootClassName:ue,style:ae,valueStyle:Fe,value:xe=0,title:Re,valueRender:En,prefix:fn,suffix:bn,loading:cn=!1,onMouseEnter:he,onMouseLeave:Qt,decimalSeparator:Ae=".",groupSeparator:Gn=","}=$t,{getPrefixCls:An,direction:Se,statistic:sn}=St.useContext(je.E_),wn=An("statistic",ne),[Xn,Hn]=Tt(wn),ii=St.createElement(we,Object.assign({decimalSeparator:Ae,groupSeparator:Gn,prefixCls:wn},$t,{value:xe})),re=fe()(wn,{[`${wn}-rtl`]:Se==="rtl"},sn==null?void 0:sn.className,qt,ue,Hn);return Xn(St.createElement("div",{className:re,style:Object.assign(Object.assign({},sn==null?void 0:sn.style),ae),onMouseEnter:he,onMouseLeave:Qt},Re&&St.createElement("div",{className:`${wn}-title`},Re),St.createElement(ie.Z,{paragraph:!1,loading:cn,className:`${wn}-skeleton`},St.createElement("div",{style:Fe,className:`${wn}-content`},fn&&St.createElement("span",{className:`${wn}-content-prefix`},fn),En?En(ii):ii,bn&&St.createElement("span",{className:`${wn}-content-suffix`},bn)))))};const dt=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function lt($t,ne){let qt=$t;const ue=/\[[^\]]*]/g,ae=(ne.match(ue)||[]).map(En=>En.slice(1,-1)),Fe=ne.replace(ue,"[]"),xe=dt.reduce((En,fn)=>{let[bn,cn]=fn;if(En.includes(bn)){const he=Math.floor(qt/cn);return qt-=he*cn,En.replace(new RegExp(`${bn}+`,"g"),Qt=>{const Ae=Qt.length;return he.toString().padStart(Ae,"0")})}return En},Fe);let Re=0;return xe.replace(ue,()=>{const En=ae[Re];return Re+=1,En})}function pt($t,ne){const{format:qt=""}=ne,ue=new Date($t).getTime(),ae=Date.now(),Fe=Math.max(ue-ae,0);return lt(Fe,qt)}const vt=1e3/30;function Lt($t){return new Date($t).getTime()}const At=$t=>{const{value:ne,format:qt="HH:mm:ss",onChange:ue,onFinish:ae}=$t,Fe=(0,Ut.Z)(),xe=St.useRef(null),Re=()=>{ae==null||ae(),xe.current&&(clearInterval(xe.current),xe.current=null)},En=()=>{const cn=Lt(ne);cn>=Date.now()&&(xe.current=setInterval(()=>{Fe(),ue==null||ue(cn-Date.now()),cn(En(),()=>{xe.current&&(clearInterval(xe.current),xe.current=null)}),[ne]);const fn=(cn,he)=>pt(cn,Object.assign(Object.assign({},he),{format:qt})),bn=cn=>(0,Me.Tm)(cn,{title:void 0});return St.createElement(nt,Object.assign({},$t,{valueRender:bn,formatter:fn}))};var kt=St.memo(At);nt.Countdown=kt;var Kt=nt},78673:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{Z:function(){return Fe}});var St=Ft(58617),Ut=Ft(92310),Me=Ft.n(Ut),_e=Ft(72308),fe=Ft(49618),je=Ft(52487),ie=Ft(74416),Ne=Ft(59301),we=Ft(18929),Le=Ft(10228),Pe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Ie=Ne.forwardRef(function(xe,Re){var En,fn=xe.prefixCls,bn=fn===void 0?"rc-switch":fn,cn=xe.className,he=xe.checked,Qt=xe.defaultChecked,Ae=xe.disabled,Gn=xe.loadingIcon,An=xe.checkedChildren,Se=xe.unCheckedChildren,sn=xe.onClick,wn=xe.onChange,Xn=xe.onKeyDown,Hn=(0,ie.Z)(xe,Pe),ii=(0,we.Z)(!1,{value:he,defaultValue:Qt}),re=(0,je.Z)(ii,2),Dn=re[0],Zn=re[1];function qn(pn,Pn){var ti=Dn;return Ae||(ti=pn,Zn(ti),wn==null||wn(ti,Pn)),ti}function ni(pn){pn.which===Le.Z.LEFT?qn(!1,pn):pn.which===Le.Z.RIGHT&&qn(!0,pn),Xn==null||Xn(pn)}function Hi(pn){var Pn=qn(!Dn,pn);sn==null||sn(Pn,pn)}var Jo=Me()(bn,cn,(En={},(0,fe.Z)(En,"".concat(bn,"-checked"),Dn),(0,fe.Z)(En,"".concat(bn,"-disabled"),Ae),En));return Ne.createElement("button",(0,_e.Z)({},Hn,{type:"button",role:"switch","aria-checked":Dn,disabled:Ae,className:Jo,ref:Re,onKeyDown:ni,onClick:Hi}),Gn,Ne.createElement("span",{className:"".concat(bn,"-inner")},Ne.createElement("span",{className:"".concat(bn,"-inner-checked")},An),Ne.createElement("span",{className:"".concat(bn,"-inner-unchecked")},Se)))});Ie.displayName="Switch";var Ue=Ie,Tt=Ft(14088),et=Ft(36355),nt=Ft(1684),dt=Ft(19716),lt=Ft(64993),pt=Ft(17313),vt=Ft(83116),Lt=Ft(37613);const At=xe=>{const{componentCls:Re,trackHeightSM:En,trackPadding:fn,trackMinWidthSM:bn,innerMinMarginSM:cn,innerMaxMarginSM:he,handleSizeSM:Qt}=xe,Ae=`${Re}-inner`;return{[Re]:{[`&${Re}-small`]:{minWidth:bn,height:En,lineHeight:`${En}px`,[`${Re}-inner`]:{paddingInlineStart:he,paddingInlineEnd:cn,[`${Ae}-checked`]:{marginInlineStart:`calc(-100% + ${Qt+fn*2}px - ${he*2}px)`,marginInlineEnd:`calc(100% - ${Qt+fn*2}px + ${he*2}px)`},[`${Ae}-unchecked`]:{marginTop:-En,marginInlineStart:0,marginInlineEnd:0}},[`${Re}-handle`]:{width:Qt,height:Qt},[`${Re}-loading-icon`]:{top:(Qt-xe.switchLoadingIconSize)/2,fontSize:xe.switchLoadingIconSize},[`&${Re}-checked`]:{[`${Re}-inner`]:{paddingInlineStart:cn,paddingInlineEnd:he,[`${Ae}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ae}-unchecked`]:{marginInlineStart:`calc(100% - ${Qt+fn*2}px + ${he*2}px)`,marginInlineEnd:`calc(-100% + ${Qt+fn*2}px - ${he*2}px)`}},[`${Re}-handle`]:{insetInlineStart:`calc(100% - ${Qt+fn}px)`}},[`&:not(${Re}-disabled):active`]:{[`&:not(${Re}-checked) ${Ae}`]:{[`${Ae}-unchecked`]:{marginInlineStart:xe.marginXXS/2,marginInlineEnd:-xe.marginXXS/2}},[`&${Re}-checked ${Ae}`]:{[`${Ae}-checked`]:{marginInlineStart:-xe.marginXXS/2,marginInlineEnd:xe.marginXXS/2}}}}}}},kt=xe=>{const{componentCls:Re,handleSize:En}=xe;return{[Re]:{[`${Re}-loading-icon${xe.iconCls}`]:{position:"relative",top:(En-xe.fontSize)/2,color:xe.switchLoadingIconColor,verticalAlign:"top"},[`&${Re}-checked ${Re}-loading-icon`]:{color:xe.switchColor}}}},Kt=xe=>{const{componentCls:Re,motion:En,trackPadding:fn,handleBg:bn,handleShadow:cn,handleSize:he}=xe,Qt=`${Re}-handle`;return{[Re]:{[Qt]:{position:"absolute",top:fn,insetInlineStart:fn,width:he,height:he,transition:`all ${xe.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:bn,borderRadius:he/2,boxShadow:cn,transition:`all ${xe.switchDuration} ease-in-out`,content:'""'}},[`&${Re}-checked ${Qt}`]:{insetInlineStart:`calc(100% - ${he+fn}px)`},[`&:not(${Re}-disabled):active`]:En?{[`${Qt}::before`]:{insetInlineEnd:xe.switchHandleActiveInset,insetInlineStart:0},[`&${Re}-checked ${Qt}::before`]:{insetInlineEnd:0,insetInlineStart:xe.switchHandleActiveInset}}:{}}}},$t=xe=>{const{componentCls:Re,trackHeight:En,trackPadding:fn,innerMinMargin:bn,innerMaxMargin:cn,handleSize:he}=xe,Qt=`${Re}-inner`;return{[Re]:{[Qt]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:cn,paddingInlineEnd:bn,transition:`padding-inline-start ${xe.switchDuration} ease-in-out, padding-inline-end ${xe.switchDuration} ease-in-out`,[`${Qt}-checked, ${Qt}-unchecked`]:{display:"block",color:xe.colorTextLightSolid,fontSize:xe.fontSizeSM,transition:`margin-inline-start ${xe.switchDuration} ease-in-out, margin-inline-end ${xe.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Qt}-checked`]:{marginInlineStart:`calc(-100% + ${he+fn*2}px - ${cn*2}px)`,marginInlineEnd:`calc(100% - ${he+fn*2}px + ${cn*2}px)`},[`${Qt}-unchecked`]:{marginTop:-En,marginInlineStart:0,marginInlineEnd:0}},[`&${Re}-checked ${Qt}`]:{paddingInlineStart:bn,paddingInlineEnd:cn,[`${Qt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Qt}-unchecked`]:{marginInlineStart:`calc(100% - ${he+fn*2}px + ${cn*2}px)`,marginInlineEnd:`calc(-100% + ${he+fn*2}px - ${cn*2}px)`}},[`&:not(${Re}-disabled):active`]:{[`&:not(${Re}-checked) ${Qt}`]:{[`${Qt}-unchecked`]:{marginInlineStart:fn*2,marginInlineEnd:-fn*2}},[`&${Re}-checked ${Qt}`]:{[`${Qt}-checked`]:{marginInlineStart:-fn*2,marginInlineEnd:fn*2}}}}}},ne=xe=>{const{componentCls:Re,trackHeight:En,trackMinWidth:fn}=xe;return{[Re]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,pt.Wf)(xe)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:fn,height:En,lineHeight:`${En}px`,verticalAlign:"middle",background:xe.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${xe.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Re}-disabled)`]:{background:xe.colorTextTertiary}}),(0,pt.Qy)(xe)),{[`&${Re}-checked`]:{background:xe.switchColor,[`&:hover:not(${Re}-disabled)`]:{background:xe.colorPrimaryHover}},[`&${Re}-loading, &${Re}-disabled`]:{cursor:"not-allowed",opacity:xe.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Re}-rtl`]:{direction:"rtl"}})}};var qt=(0,vt.Z)("Switch",xe=>{const Re=(0,Lt.TS)(xe,{switchDuration:xe.motionDurationMid,switchColor:xe.colorPrimary,switchDisabledOpacity:xe.opacityLoading,switchLoadingIconSize:xe.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${xe.opacityLoading})`,switchHandleActiveInset:"-30%"});return[ne(Re),$t(Re),Kt(Re),kt(Re),At(Re)]},xe=>{const{fontSize:Re,lineHeight:En,controlHeight:fn,colorWhite:bn}=xe,cn=Re*En,he=fn/2,Qt=2,Ae=cn-Qt*2,Gn=he-Qt*2;return{trackHeight:cn,trackHeightSM:he,trackMinWidth:Ae*2+Qt*4,trackMinWidthSM:Gn*2+Qt*2,trackPadding:Qt,handleBg:bn,handleSize:Ae,handleSizeSM:Gn,handleShadow:`0 2px 4px 0 ${new lt.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:Ae/2,innerMaxMargin:Ae+Qt+Qt*2,innerMinMarginSM:Gn/2,innerMaxMarginSM:Gn+Qt+Qt*2}}),ue=function(xe,Re){var En={};for(var fn in xe)Object.prototype.hasOwnProperty.call(xe,fn)&&Re.indexOf(fn)<0&&(En[fn]=xe[fn]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bn=0,fn=Object.getOwnPropertySymbols(xe);bn{const{prefixCls:En,size:fn,disabled:bn,loading:cn,className:he,rootClassName:Qt,style:Ae}=xe,Gn=ue(xe,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:An,direction:Se,switch:sn}=Ne.useContext(et.E_),wn=Ne.useContext(nt.Z),Xn=(bn!=null?bn:wn)||cn,Hn=An("switch",En),ii=Ne.createElement("div",{className:`${Hn}-handle`},cn&&Ne.createElement(St.Z,{className:`${Hn}-loading-icon`})),[re,Dn]=qt(Hn),Zn=(0,dt.Z)(fn),qn=Me()(sn==null?void 0:sn.className,{[`${Hn}-small`]:Zn==="small",[`${Hn}-loading`]:cn,[`${Hn}-rtl`]:Se==="rtl"},he,Qt,Dn),ni=Object.assign(Object.assign({},sn==null?void 0:sn.style),Ae);return re(Ne.createElement(Tt.Z,{component:"Switch"},Ne.createElement(Ue,Object.assign({},Gn,{prefixCls:Hn,className:qn,style:ni,disabled:Xn,ref:Re,loadingIcon:ii}))))});ae.__ANT_SWITCH=!0;var Fe=ae},99498:function(tn,Fn,Ft){(function(St){St(Ft(89780))})(function(St){St.defineOption("placeholder","",function(Ne,we,Le){var Pe=Le&&Le!=St.Init;if(we&&!Pe)Ne.on("blur",fe),Ne.on("change",je),Ne.on("swapDoc",je),St.on(Ne.getInputField(),"compositionupdate",Ne.state.placeholderCompose=function(){_e(Ne)}),je(Ne);else if(!we&&Pe){Ne.off("blur",fe),Ne.off("change",je),Ne.off("swapDoc",je),St.off(Ne.getInputField(),"compositionupdate",Ne.state.placeholderCompose),Ut(Ne);var Ie=Ne.getWrapperElement();Ie.className=Ie.className.replace(" CodeMirror-empty","")}we&&!Ne.hasFocus()&&fe(Ne)});function Ut(Ne){Ne.state.placeholder&&(Ne.state.placeholder.parentNode.removeChild(Ne.state.placeholder),Ne.state.placeholder=null)}function Me(Ne){Ut(Ne);var we=Ne.state.placeholder=document.createElement("pre");we.style.cssText="height: 0; overflow: visible",we.style.direction=Ne.getOption("direction"),we.className="CodeMirror-placeholder CodeMirror-line-like";var Le=Ne.getOption("placeholder");typeof Le=="string"&&(Le=document.createTextNode(Le)),we.appendChild(Le),Ne.display.lineSpace.insertBefore(we,Ne.display.lineSpace.firstChild)}function _e(Ne){setTimeout(function(){var we=!1,Le=Ne.getInputField();Le.nodeName=="TEXTAREA"?we=!Le.value:Ne.lineCount()==1&&(we=!/[^\u200b]/.test(Le.querySelector(".CodeMirror-line").textContent)),we?Me(Ne):Ut(Ne)},20)}function fe(Ne){ie(Ne)&&Me(Ne)}function je(Ne){var we=Ne.getWrapperElement(),Le=ie(Ne);we.className=we.className.replace(" CodeMirror-empty","")+(Le?" CodeMirror-empty":""),Le?Me(Ne):Ut(Ne)}function ie(Ne){return Ne.lineCount()===1&&Ne.getLine(0)===""}})},25717:function(tn,Fn,Ft){(function(St){St(Ft(89780))})(function(St){var Ut={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Me=St.Pos;St.defineOption("autoCloseBrackets",!1,function(et,nt,dt){dt&&dt!=St.Init&&(et.removeKeyMap(fe),et.state.closeBrackets=null),nt&&(je(_e(nt,"pairs")),et.state.closeBrackets=nt,et.addKeyMap(fe))});function _e(et,nt){return nt=="pairs"&&typeof et=="string"?et:typeof et=="object"&&et[nt]!=null?et[nt]:Ut[nt]}var fe={Backspace:we,Enter:Le};function je(et){for(var nt=0;nt=0;pt--){var Lt=lt[pt].head;et.replaceRange("",Me(Lt.line,Lt.ch-1),Me(Lt.line,Lt.ch+1),"+delete")}}function Le(et){var nt=Ne(et),dt=nt&&_e(nt,"explode");if(!dt||et.getOption("disableInput"))return St.Pass;for(var lt=et.listSelections(),pt=0;pt0;return{anchor:new Me(et.anchor.line,et.anchor.ch+(nt?-1:1)),head:new Me(et.head.line,et.head.ch+(nt?1:-1))}}function Ie(et,nt){var dt=Ne(et);if(!dt||et.getOption("disableInput"))return St.Pass;var lt=_e(dt,"pairs"),pt=lt.indexOf(nt);if(pt==-1)return St.Pass;for(var vt=_e(dt,"closeBefore"),Lt=_e(dt,"triples"),At=lt.charAt(pt+1)==nt,kt=et.listSelections(),Kt=pt%2==0,$t,ne=0;ne=0&&et.getRange(ue,Me(ue.line,ue.ch+3))==nt+nt+nt?ae="skipThree":ae="skip";else if(At&&ue.ch>1&&Lt.indexOf(nt)>=0&&et.getRange(Me(ue.line,ue.ch-2),ue)==nt+nt){if(ue.ch>2&&/\bstring/.test(et.getTokenTypeAt(Me(ue.line,ue.ch-2))))return St.Pass;ae="addFour"}else if(At){var xe=ue.ch==0?" ":et.getRange(Me(ue.line,ue.ch-1),ue);if(!St.isWordChar(Fe)&&xe!=nt&&!St.isWordChar(xe))ae="both";else return St.Pass}else if(Kt&&(Fe.length===0||/\s/.test(Fe)||vt.indexOf(Fe)>-1))ae="both";else return St.Pass;if(!$t)$t=ae;else if($t!=ae)return St.Pass}var Re=pt%2?lt.charAt(pt-1):nt,En=pt%2?nt:lt.charAt(pt+1);et.operation(function(){if($t=="skip")et.execCommand("goCharRight");else if($t=="skipThree")for(var fn=0;fn<3;fn++)et.execCommand("goCharRight");else if($t=="surround"){for(var bn=et.getSelections(),fn=0;fn'"]=function(Ue){return _e(Ue)}),we.addKeyMap(Ie)}});var Ut=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Me=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function _e(we){if(we.getOption("disableInput"))return St.Pass;for(var Le=we.listSelections(),Pe=[],Ie=we.getOption("autoCloseTags"),Ue=0;UeTt.ch&&(pt=pt.slice(0,pt.length-et.end+Tt.ch));var kt=pt.toLowerCase();if(!pt||et.type=="string"&&(et.end!=Tt.ch||!/[\"\']/.test(et.string.charAt(et.string.length-1))||et.string.length==1)||et.type=="tag"&<.close||et.string.indexOf("/")==Tt.ch-et.start-1||Lt&&ie(Lt,kt)>-1||Ne(we,nt.mode.xmlCurrentContext&&nt.mode.xmlCurrentContext(dt)||[],pt,Tt,!0))return St.Pass;var Kt=typeof Ie=="object"&&Ie.emptyTags;if(Kt&&ie(Kt,pt)>-1){Pe[Ue]={text:"/>",newPos:St.Pos(Tt.line,Tt.ch+2)};continue}var $t=At&&ie(At,kt)>-1;Pe[Ue]={indent:$t,text:">"+($t?` -`:"")+"",newPos:$t?St.Pos(Tt.line+1,0):St.Pos(Tt.line,Tt.ch+1)}}for(var ne=typeof Ie=="object"&&Ie.dontIndentOnAutoClose,Ue=Le.length-1;Ue>=0;Ue--){var qt=Pe[Ue];we.replaceRange(qt.text,Le[Ue].head,Le[Ue].anchor,"+insert");var ue=we.listSelections().slice(0);ue[Ue]={head:qt.newPos,anchor:qt.newPos},we.setSelections(ue),!ne&&qt.indent&&(we.indentLine(qt.newPos.line,null,!0),we.indentLine(qt.newPos.line+1,null,!0))}}function fe(we,Le){for(var Pe=we.listSelections(),Ie=[],Ue=Le?"/":""&&(Lt+=">"),Ie[nt]=Lt}if(we.replaceSelections(Ie),Pe=we.listSelections(),!et)for(var nt=0;nt=0&&Le[dt]==Pe;dt--)++nt;Ie=et.to;for(var dt=1;dt=dt.max))return dt.ch=0,dt.text=dt.cm.getLine(++dt.line),!0}function Le(dt){if(!(dt.line<=dt.min))return dt.text=dt.cm.getLine(--dt.line),dt.ch=dt.text.length,!0}function Pe(dt){for(;;){var lt=dt.text.indexOf(">",dt.ch);if(lt==-1){if(we(dt))continue;return}if(!Ne(dt,lt+1)){dt.ch=lt+1;continue}var pt=dt.text.lastIndexOf("/",lt),vt=pt>-1&&!/\S/.test(dt.text.slice(pt+1,lt));return dt.ch=lt+1,vt?"selfClose":"regular"}}function Ie(dt){for(;;){var lt=dt.ch?dt.text.lastIndexOf("<",dt.ch-1):-1;if(lt==-1){if(Le(dt))continue;return}if(!Ne(dt,lt+1)){dt.ch=lt;continue}je.lastIndex=lt,dt.ch=lt;var pt=je.exec(dt.text);if(pt&&pt.index==lt)return pt}}function Ue(dt){for(;;){je.lastIndex=dt.ch;var lt=je.exec(dt.text);if(!lt){if(we(dt))continue;return}if(!Ne(dt,lt.index+1)){dt.ch=lt.index+1;continue}return dt.ch=lt.index+lt[0].length,lt}}function Tt(dt){for(;;){var lt=dt.ch?dt.text.lastIndexOf(">",dt.ch-1):-1;if(lt==-1){if(Le(dt))continue;return}if(!Ne(dt,lt+1)){dt.ch=lt;continue}var pt=dt.text.lastIndexOf("/",lt),vt=pt>-1&&!/\S/.test(dt.text.slice(pt+1,lt));return dt.ch=lt+1,vt?"selfClose":"regular"}}function et(dt,lt){for(var pt=[];;){var vt=Ue(dt),Lt,At=dt.line,kt=dt.ch-(vt?vt[0].length:0);if(!vt||!(Lt=Pe(dt)))return;if(Lt!="selfClose")if(vt[1]){for(var Kt=pt.length-1;Kt>=0;--Kt)if(pt[Kt]==vt[2]){pt.length=Kt;break}if(Kt<0&&(!lt||lt==vt[2]))return{tag:vt[2],from:Ut(At,kt),to:Ut(dt.line,dt.ch)}}else pt.push(vt[2])}}function nt(dt,lt){for(var pt=[];;){var vt=Tt(dt);if(!vt)return;if(vt=="selfClose"){Ie(dt);continue}var Lt=dt.line,At=dt.ch,kt=Ie(dt);if(!kt)return;if(kt[1])pt.push(kt[2]);else{for(var Kt=pt.length-1;Kt>=0;--Kt)if(pt[Kt]==kt[2]){pt.length=Kt;break}if(Kt<0&&(!lt||lt==kt[2]))return{tag:kt[2],from:Ut(dt.line,dt.ch),to:Ut(Lt,At)}}}}St.registerHelper("fold","xml",function(dt,lt){for(var pt=new ie(dt,lt.line,0);;){var vt=Ue(pt);if(!vt||pt.line!=lt.line)return;var Lt=Pe(pt);if(!Lt)return;if(!vt[1]&&Lt!="selfClose"){var At=Ut(pt.line,pt.ch),kt=et(pt,vt[2]);return kt&&Me(kt.from,At)>0?{from:At,to:kt.from}:null}}}),St.findMatchingTag=function(dt,lt,pt){var vt=new ie(dt,lt.line,lt.ch,pt);if(!(vt.text.indexOf(">")==-1&&vt.text.indexOf("<")==-1)){var Lt=Pe(vt),At=Lt&&Ut(vt.line,vt.ch),kt=Lt&&Ie(vt);if(!(!Lt||!kt||Me(vt,lt)>0)){var Kt={from:Ut(vt.line,vt.ch),to:At,tag:kt[2]};return Lt=="selfClose"?{open:Kt,close:null,at:"open"}:kt[1]?{open:nt(vt,kt[2]),close:Kt,at:"close"}:(vt=new ie(dt,At.line,At.ch,pt),{open:Kt,close:et(vt,kt[2]),at:"open"})}}},St.findEnclosingTag=function(dt,lt,pt,vt){for(var Lt=new ie(dt,lt.line,lt.ch,pt);;){var At=nt(Lt,vt);if(!At)break;var kt=new ie(dt,lt.line,lt.ch,pt),Kt=et(kt,At.tag);if(Kt)return{open:At,close:Kt}}},St.scanForClosingTag=function(dt,lt,pt,vt){var Lt=new ie(dt,lt.line,lt.ch,vt?{from:0,to:vt}:null);return et(Lt,pt)}})},89780:function(tn){(function(Fn,Ft){tn.exports=Ft()})(this,function(){"use strict";var Fn=navigator.userAgent,Ft=navigator.platform,St=/gecko\/\d/i.test(Fn),Ut=/MSIE \d/.test(Fn),Me=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Fn),_e=/Edge\/(\d+)/.exec(Fn),fe=Ut||Me||_e,je=fe&&(Ut?document.documentMode||6:+(_e||Me)[1]),ie=!_e&&/WebKit\//.test(Fn),Ne=ie&&/Qt\/\d+\.\d+/.test(Fn),we=!_e&&/Chrome\//.test(Fn),Le=/Opera\//.test(Fn),Pe=/Apple Computer/.test(navigator.vendor),Ie=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Fn),Ue=/PhantomJS/.test(Fn),Tt=!_e&&/AppleWebKit/.test(Fn)&&/Mobile\/\w+/.test(Fn),et=/Android/.test(Fn),nt=Tt||et||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Fn),dt=Tt||/Mac/.test(Ft),lt=/\bCrOS\b/.test(Fn),pt=/win/i.test(Ft),vt=Le&&Fn.match(/Version\/(\d*\.\d*)/);vt&&(vt=Number(vt[1])),vt&&vt>=15&&(Le=!1,ie=!0);var Lt=dt&&(Ne||Le&&(vt==null||vt<12.11)),At=St||fe&&je>=9;function kt(it){return new RegExp("(^|\\s)"+it+"(?:$|\\s)\\s*")}var Kt=function(it,st){var ct=it.className,ht=kt(st).exec(ct);if(ht){var ft=ct.slice(ht.index+ht[0].length);it.className=ct.slice(0,ht.index)+(ft?ht[1]+ft:"")}};function $t(it){for(var st=it.childNodes.length;st>0;--st)it.removeChild(it.firstChild);return it}function ne(it,st){return $t(it).appendChild(st)}function qt(it,st,ct,ht){var ft=document.createElement(it);if(ct&&(ft.className=ct),ht&&(ft.style.cssText=ht),typeof st=="string")ft.appendChild(document.createTextNode(st));else if(st)for(var Pt=0;Pt=st)return Dt+(st-Pt);Dt+=Gt-Pt,Dt+=ct-Dt%ct,Pt=Gt+1}}var Qt=function(){this.id=null,this.f=null,this.time=0,this.handler=bn(this.onTimeout,this)};Qt.prototype.onTimeout=function(it){it.id=0,it.time<=+new Date?it.f():setTimeout(it.handler,it.time-+new Date)},Qt.prototype.set=function(it,st){this.f=st;var ct=+new Date+it;(!this.id||ct=st)return ht+Math.min(Dt,st-ft);if(ft+=Pt-ht,ft+=ct-ft%ct,ht=Pt+1,ft>=st)return ht}}var Hn=[""];function ii(it){for(;Hn.length<=it;)Hn.push(re(Hn)+" ");return Hn[it]}function re(it){return it[it.length-1]}function Dn(it,st){for(var ct=[],ht=0;ht"\x80"&&(it.toUpperCase()!=it.toLowerCase()||Hi.test(it))}function pn(it,st){return st?st.source.indexOf("\\w")>-1&&Jo(it)?!0:st.test(it):Jo(it)}function Pn(it){for(var st in it)if(it.hasOwnProperty(st)&&it[st])return!1;return!0}var ti=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function gn(it){return it.charCodeAt(0)>=768&&ti.test(it)}function Bn(it,st,ct){for(;(ct<0?st>0:stct?-1:1;;){if(st==ct)return st;var ft=(st+ct)/2,Pt=ht<0?Math.ceil(ft):Math.floor(ft);if(Pt==st)return it(Pt)?st:ct;it(Pt)?ct=Pt:st=Pt+ht}}function jt(it,st,ct,ht){if(!it)return ht(st,ct,"ltr",0);for(var ft=!1,Pt=0;Ptst||st==ct&&Dt.to==st)&&(ht(Math.max(Dt.from,st),Math.min(Dt.to,ct),Dt.level==1?"rtl":"ltr",Pt),ft=!0)}ft||ht(st,ct,"ltr")}var Mt=null;function xt(it,st,ct){var ht;Mt=null;for(var ft=0;ftst)return ft;Pt.to==st&&(Pt.from!=Pt.to&&ct=="before"?ht=ft:Mt=ft),Pt.from==st&&(Pt.from!=Pt.to&&ct!="before"?ht=ft:Mt=ft)}return ht!=null?ht:Mt}var Bt=function(){var it="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",st="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ct(Jt){return Jt<=247?it.charAt(Jt):1424<=Jt&&Jt<=1524?"R":1536<=Jt&&Jt<=1785?st.charAt(Jt-1536):1774<=Jt&&Jt<=2220?"r":8192<=Jt&&Jt<=8203?"w":Jt==8204?"b":"L"}var ht=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ft=/[stwN]/,Pt=/[LRr]/,Dt=/[Lb1n]/,Gt=/[1n]/;function Rt(Jt,Ce,ee){this.level=Jt,this.from=Ce,this.to=ee}return function(Jt,Ce){var ee=Ce=="ltr"?"L":"R";if(Jt.length==0||Ce=="ltr"&&!ht.test(Jt))return!1;for(var Ze=Jt.length,ze=[],kn=0;kn-1&&(ht[st]=ft.slice(0,Pt).concat(ft.slice(Pt+1)))}}}function yn(it,st){var ct=Sn(it,st);if(ct.length)for(var ht=Array.prototype.slice.call(arguments,2),ft=0;ft0}function Ti(it){it.prototype.on=function(st,ct){me(this,st,ct)},it.prototype.off=function(st,ct){xn(this,st,ct)}}function vo(it){it.preventDefault?it.preventDefault():it.returnValue=!1}function Ri(it){it.stopPropagation?it.stopPropagation():it.cancelBubble=!0}function er(it){return it.defaultPrevented!=null?it.defaultPrevented:it.returnValue==!1}function As(it){vo(it),Ri(it)}function Or(it){return it.target||it.srcElement}function jr(it){var st=it.which;return st==null&&(it.button&1?st=1:it.button&2?st=3:it.button&4&&(st=2)),dt&&it.ctrlKey&&st==1&&(st=3),st}var gr=function(){if(fe&&je<9)return!1;var it=qt("div");return"draggable"in it||"dragDrop"in it}(),pr;function ps(it){if(pr==null){var st=qt("span","\u200B");ne(it,qt("span",[st,document.createTextNode("x")])),it.firstChild.offsetHeight!=0&&(pr=st.offsetWidth<=1&&st.offsetHeight>2&&!(fe&&je<8))}var ct=pr?qt("span","\u200B"):qt("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ct.setAttribute("cm-text",""),ct}var Yr;function Xr(it){if(Yr!=null)return Yr;var st=ne(it,document.createTextNode("A\u062EA")),ct=ae(st,0,1).getBoundingClientRect(),ht=ae(st,1,2).getBoundingClientRect();return $t(it),!ct||ct.left==ct.right?!1:Yr=ht.right-ct.right<3}var qi=` +`:"")+"",newPos:$t?St.Pos(Tt.line+1,0):St.Pos(Tt.line,Tt.ch+1)}}for(var ne=typeof Ie=="object"&&Ie.dontIndentOnAutoClose,Ue=Le.length-1;Ue>=0;Ue--){var qt=Pe[Ue];we.replaceRange(qt.text,Le[Ue].head,Le[Ue].anchor,"+insert");var ue=we.listSelections().slice(0);ue[Ue]={head:qt.newPos,anchor:qt.newPos},we.setSelections(ue),!ne&&qt.indent&&(we.indentLine(qt.newPos.line,null,!0),we.indentLine(qt.newPos.line+1,null,!0))}}function fe(we,Le){for(var Pe=we.listSelections(),Ie=[],Ue=Le?"/":""&&(Lt+=">"),Ie[nt]=Lt}if(we.replaceSelections(Ie),Pe=we.listSelections(),!et)for(var nt=0;nt=0&&Le[dt]==Pe;dt--)++nt;Ie=et.to;for(var dt=1;dt=dt.max))return dt.ch=0,dt.text=dt.cm.getLine(++dt.line),!0}function Le(dt){if(!(dt.line<=dt.min))return dt.text=dt.cm.getLine(--dt.line),dt.ch=dt.text.length,!0}function Pe(dt){for(;;){var lt=dt.text.indexOf(">",dt.ch);if(lt==-1){if(we(dt))continue;return}if(!Ne(dt,lt+1)){dt.ch=lt+1;continue}var pt=dt.text.lastIndexOf("/",lt),vt=pt>-1&&!/\S/.test(dt.text.slice(pt+1,lt));return dt.ch=lt+1,vt?"selfClose":"regular"}}function Ie(dt){for(;;){var lt=dt.ch?dt.text.lastIndexOf("<",dt.ch-1):-1;if(lt==-1){if(Le(dt))continue;return}if(!Ne(dt,lt+1)){dt.ch=lt;continue}je.lastIndex=lt,dt.ch=lt;var pt=je.exec(dt.text);if(pt&&pt.index==lt)return pt}}function Ue(dt){for(;;){je.lastIndex=dt.ch;var lt=je.exec(dt.text);if(!lt){if(we(dt))continue;return}if(!Ne(dt,lt.index+1)){dt.ch=lt.index+1;continue}return dt.ch=lt.index+lt[0].length,lt}}function Tt(dt){for(;;){var lt=dt.ch?dt.text.lastIndexOf(">",dt.ch-1):-1;if(lt==-1){if(Le(dt))continue;return}if(!Ne(dt,lt+1)){dt.ch=lt;continue}var pt=dt.text.lastIndexOf("/",lt),vt=pt>-1&&!/\S/.test(dt.text.slice(pt+1,lt));return dt.ch=lt+1,vt?"selfClose":"regular"}}function et(dt,lt){for(var pt=[];;){var vt=Ue(dt),Lt,At=dt.line,kt=dt.ch-(vt?vt[0].length:0);if(!vt||!(Lt=Pe(dt)))return;if(Lt!="selfClose")if(vt[1]){for(var Kt=pt.length-1;Kt>=0;--Kt)if(pt[Kt]==vt[2]){pt.length=Kt;break}if(Kt<0&&(!lt||lt==vt[2]))return{tag:vt[2],from:Ut(At,kt),to:Ut(dt.line,dt.ch)}}else pt.push(vt[2])}}function nt(dt,lt){for(var pt=[];;){var vt=Tt(dt);if(!vt)return;if(vt=="selfClose"){Ie(dt);continue}var Lt=dt.line,At=dt.ch,kt=Ie(dt);if(!kt)return;if(kt[1])pt.push(kt[2]);else{for(var Kt=pt.length-1;Kt>=0;--Kt)if(pt[Kt]==kt[2]){pt.length=Kt;break}if(Kt<0&&(!lt||lt==kt[2]))return{tag:kt[2],from:Ut(dt.line,dt.ch),to:Ut(Lt,At)}}}}St.registerHelper("fold","xml",function(dt,lt){for(var pt=new ie(dt,lt.line,0);;){var vt=Ue(pt);if(!vt||pt.line!=lt.line)return;var Lt=Pe(pt);if(!Lt)return;if(!vt[1]&&Lt!="selfClose"){var At=Ut(pt.line,pt.ch),kt=et(pt,vt[2]);return kt&&Me(kt.from,At)>0?{from:At,to:kt.from}:null}}}),St.findMatchingTag=function(dt,lt,pt){var vt=new ie(dt,lt.line,lt.ch,pt);if(!(vt.text.indexOf(">")==-1&&vt.text.indexOf("<")==-1)){var Lt=Pe(vt),At=Lt&&Ut(vt.line,vt.ch),kt=Lt&&Ie(vt);if(!(!Lt||!kt||Me(vt,lt)>0)){var Kt={from:Ut(vt.line,vt.ch),to:At,tag:kt[2]};return Lt=="selfClose"?{open:Kt,close:null,at:"open"}:kt[1]?{open:nt(vt,kt[2]),close:Kt,at:"close"}:(vt=new ie(dt,At.line,At.ch,pt),{open:Kt,close:et(vt,kt[2]),at:"open"})}}},St.findEnclosingTag=function(dt,lt,pt,vt){for(var Lt=new ie(dt,lt.line,lt.ch,pt);;){var At=nt(Lt,vt);if(!At)break;var kt=new ie(dt,lt.line,lt.ch,pt),Kt=et(kt,At.tag);if(Kt)return{open:At,close:Kt}}},St.scanForClosingTag=function(dt,lt,pt,vt){var Lt=new ie(dt,lt.line,lt.ch,vt?{from:0,to:vt}:null);return et(Lt,pt)}})},89780:function(tn){(function(Fn,Ft){tn.exports=Ft()})(this,function(){"use strict";var Fn=navigator.userAgent,Ft=navigator.platform,St=/gecko\/\d/i.test(Fn),Ut=/MSIE \d/.test(Fn),Me=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Fn),_e=/Edge\/(\d+)/.exec(Fn),fe=Ut||Me||_e,je=fe&&(Ut?document.documentMode||6:+(_e||Me)[1]),ie=!_e&&/WebKit\//.test(Fn),Ne=ie&&/Qt\/\d+\.\d+/.test(Fn),we=!_e&&/Chrome\//.test(Fn),Le=/Opera\//.test(Fn),Pe=/Apple Computer/.test(navigator.vendor),Ie=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Fn),Ue=/PhantomJS/.test(Fn),Tt=!_e&&/AppleWebKit/.test(Fn)&&/Mobile\/\w+/.test(Fn),et=/Android/.test(Fn),nt=Tt||et||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Fn),dt=Tt||/Mac/.test(Ft),lt=/\bCrOS\b/.test(Fn),pt=/win/i.test(Ft),vt=Le&&Fn.match(/Version\/(\d*\.\d*)/);vt&&(vt=Number(vt[1])),vt&&vt>=15&&(Le=!1,ie=!0);var Lt=dt&&(Ne||Le&&(vt==null||vt<12.11)),At=St||fe&&je>=9;function kt(it){return new RegExp("(^|\\s)"+it+"(?:$|\\s)\\s*")}var Kt=function(it,st){var ct=it.className,ht=kt(st).exec(ct);if(ht){var ft=ct.slice(ht.index+ht[0].length);it.className=ct.slice(0,ht.index)+(ft?ht[1]+ft:"")}};function $t(it){for(var st=it.childNodes.length;st>0;--st)it.removeChild(it.firstChild);return it}function ne(it,st){return $t(it).appendChild(st)}function qt(it,st,ct,ht){var ft=document.createElement(it);if(ct&&(ft.className=ct),ht&&(ft.style.cssText=ht),typeof st=="string")ft.appendChild(document.createTextNode(st));else if(st)for(var Pt=0;Pt=st)return Dt+(st-Pt);Dt+=Gt-Pt,Dt+=ct-Dt%ct,Pt=Gt+1}}var Qt=function(){this.id=null,this.f=null,this.time=0,this.handler=bn(this.onTimeout,this)};Qt.prototype.onTimeout=function(it){it.id=0,it.time<=+new Date?it.f():setTimeout(it.handler,it.time-+new Date)},Qt.prototype.set=function(it,st){this.f=st;var ct=+new Date+it;(!this.id||ct=st)return ht+Math.min(Dt,st-ft);if(ft+=Pt-ht,ft+=ct-ft%ct,ht=Pt+1,ft>=st)return ht}}var Hn=[""];function ii(it){for(;Hn.length<=it;)Hn.push(re(Hn)+" ");return Hn[it]}function re(it){return it[it.length-1]}function Dn(it,st){for(var ct=[],ht=0;ht"\x80"&&(it.toUpperCase()!=it.toLowerCase()||Hi.test(it))}function pn(it,st){return st?st.source.indexOf("\\w")>-1&&Jo(it)?!0:st.test(it):Jo(it)}function Pn(it){for(var st in it)if(it.hasOwnProperty(st)&&it[st])return!1;return!0}var ti=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function gn(it){return it.charCodeAt(0)>=768&&ti.test(it)}function Bn(it,st,ct){for(;(ct<0?st>0:stct?-1:1;;){if(st==ct)return st;var ft=(st+ct)/2,Pt=ht<0?Math.ceil(ft):Math.floor(ft);if(Pt==st)return it(Pt)?st:ct;it(Pt)?ct=Pt:st=Pt+ht}}function jt(it,st,ct,ht){if(!it)return ht(st,ct,"ltr",0);for(var ft=!1,Pt=0;Ptst||st==ct&&Dt.to==st)&&(ht(Math.max(Dt.from,st),Math.min(Dt.to,ct),Dt.level==1?"rtl":"ltr",Pt),ft=!0)}ft||ht(st,ct,"ltr")}var Mt=null;function xt(it,st,ct){var ht;Mt=null;for(var ft=0;ftst)return ft;Pt.to==st&&(Pt.from!=Pt.to&&ct=="before"?ht=ft:Mt=ft),Pt.from==st&&(Pt.from!=Pt.to&&ct!="before"?ht=ft:Mt=ft)}return ht!=null?ht:Mt}var Bt=function(){var it="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",st="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ct(Jt){return Jt<=247?it.charAt(Jt):1424<=Jt&&Jt<=1524?"R":1536<=Jt&&Jt<=1785?st.charAt(Jt-1536):1774<=Jt&&Jt<=2220?"r":8192<=Jt&&Jt<=8203?"w":Jt==8204?"b":"L"}var ht=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ft=/[stwN]/,Pt=/[LRr]/,Dt=/[Lb1n]/,Gt=/[1n]/;function Rt(Jt,Ce,ee){this.level=Jt,this.from=Ce,this.to=ee}return function(Jt,Ce){var ee=Ce=="ltr"?"L":"R";if(Jt.length==0||Ce=="ltr"&&!ht.test(Jt))return!1;for(var Ze=Jt.length,ze=[],kn=0;kn-1&&(ht[st]=ft.slice(0,Pt).concat(ft.slice(Pt+1)))}}}function yn(it,st){var ct=Sn(it,st);if(ct.length)for(var ht=Array.prototype.slice.call(arguments,2),ft=0;ft0}function Ti(it){it.prototype.on=function(st,ct){me(this,st,ct)},it.prototype.off=function(st,ct){xn(this,st,ct)}}function vo(it){it.preventDefault?it.preventDefault():it.returnValue=!1}function Ri(it){it.stopPropagation?it.stopPropagation():it.cancelBubble=!0}function er(it){return it.defaultPrevented!=null?it.defaultPrevented:it.returnValue==!1}function As(it){vo(it),Ri(it)}function Or(it){return it.target||it.srcElement}function jr(it){var st=it.which;return st==null&&(it.button&1?st=1:it.button&2?st=3:it.button&4&&(st=2)),dt&&it.ctrlKey&&st==1&&(st=3),st}var gr=function(){if(fe&&je<9)return!1;var it=qt("div");return"draggable"in it||"dragDrop"in it}(),pr;function ps(it){if(pr==null){var st=qt("span","\u200B");ne(it,qt("span",[st,document.createTextNode("x")])),it.firstChild.offsetHeight!=0&&(pr=st.offsetWidth<=1&&st.offsetHeight>2&&!(fe&&je<8))}var ct=pr?qt("span","\u200B"):qt("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ct.setAttribute("cm-text",""),ct}var Yr;function Xr(it){if(Yr!=null)return Yr;var st=ne(it,document.createTextNode("A\u062EA")),ct=ae(st,0,1).getBoundingClientRect(),ht=ae(st,1,2).getBoundingClientRect();return $t(it),!ct||ct.left==ct.right?!1:Yr=ht.right-ct.right<3}var qi=` b`.split(/\n/).length!=3?function(it){for(var st=0,ct=[],ht=it.length;st<=ht;){var ft=it.indexOf(` -`,st);ft==-1&&(ft=it.length);var Pt=it.slice(st,it.charAt(ft-1)=="\r"?ft-1:ft),Dt=Pt.indexOf("\r");Dt!=-1?(ct.push(Pt.slice(0,Dt)),st+=Dt+1):(ct.push(Pt),st=ft+1)}return ct}:function(it){return it.split(/\r\n?|\n/)},Ct=window.getSelection?function(it){try{return it.selectionStart!=it.selectionEnd}catch(st){return!1}}:function(it){var st;try{st=it.ownerDocument.selection.createRange()}catch(ct){}return!st||st.parentElement()!=it?!1:st.compareEndPoints("StartToEnd",st)!=0},Na=function(){var it=qt("div");return"oncopy"in it?!0:(it.setAttribute("oncopy","return;"),typeof it.oncopy=="function")}(),mr=null;function Ra(it){if(mr!=null)return mr;var st=ne(it,qt("span","x")),ct=st.getBoundingClientRect(),ht=ae(st,0,1).getBoundingClientRect();return mr=Math.abs(ct.left-ht.left)>1}var za={},da={};function Xa(it,st){arguments.length>2&&(st.dependencies=Array.prototype.slice.call(arguments,2)),za[it]=st}function ei(it,st){da[it]=st}function ai(it){if(typeof it=="string"&&da.hasOwnProperty(it))it=da[it];else if(it&&typeof it.name=="string"&&da.hasOwnProperty(it.name)){var st=da[it.name];typeof st=="string"&&(st={name:st}),it=ni(st,it),it.name=st.name}else{if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(it))return ai("application/xml");if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(it))return ai("application/json")}return typeof it=="string"?{name:it}:it||{name:"null"}}function Ee(it,st){st=ai(st);var ct=za[st.name];if(!ct)return Ee(it,"text/plain");var ht=ct(it,st);if(pe.hasOwnProperty(st.name)){var ft=pe[st.name];for(var Pt in ft)ft.hasOwnProperty(Pt)&&(ht.hasOwnProperty(Pt)&&(ht["_"+Pt]=ht[Pt]),ht[Pt]=ft[Pt])}if(ht.name=st.name,st.helperType&&(ht.helperType=st.helperType),st.modeProps)for(var Dt in st.modeProps)ht[Dt]=st.modeProps[Dt];return ht}var pe={};function ve(it,st){var ct=pe.hasOwnProperty(it)?pe[it]:pe[it]={};cn(st,ct)}function Wn(it,st){if(st===!0)return st;if(it.copyState)return it.copyState(st);var ct={};for(var ht in st){var ft=st[ht];ft instanceof Array&&(ft=ft.concat([])),ct[ht]=ft}return ct}function On(it,st){for(var ct;it.innerMode&&(ct=it.innerMode(st),!(!ct||ct.mode==it));)st=ct.state,it=ct.mode;return ct||{mode:it,state:st}}function Kn(it,st,ct){return it.startState?it.startState(st,ct):!0}var Ge=function(it,st,ct){this.pos=this.start=0,this.string=it,this.tabSize=st||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ct};Ge.prototype.eol=function(){return this.pos>=this.string.length},Ge.prototype.sol=function(){return this.pos==this.lineStart},Ge.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ge.prototype.next=function(){if(this.posst},Ge.prototype.eatSpace=function(){for(var it=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>it},Ge.prototype.skipToEnd=function(){this.pos=this.string.length},Ge.prototype.skipTo=function(it){var st=this.string.indexOf(it,this.pos);if(st>-1)return this.pos=st,!0},Ge.prototype.backUp=function(it){this.pos-=it},Ge.prototype.column=function(){return this.lastColumnPos0?null:(Pt&&st!==!1&&(this.pos+=Pt[0].length),Pt)}},Ge.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ge.prototype.hideFirstChars=function(it,st){this.lineStart+=it;try{return st()}finally{this.lineStart-=it}},Ge.prototype.lookAhead=function(it){var st=this.lineOracle;return st&&st.lookAhead(it)},Ge.prototype.baseToken=function(){var it=this.lineOracle;return it&&it.baseToken(this.pos)};function Tn(it,st){if(st-=it.first,st<0||st>=it.size)throw new Error("There is no line "+(st+it.first)+" in the document.");for(var ct=it;!ct.lines;)for(var ht=0;;++ht){var ft=ct.children[ht],Pt=ft.chunkSize();if(st=it.first&&stct?De(ct,Tn(it,ct).text.length):Wo(st,Tn(it,st.line).text.length)}function Wo(it,st){var ct=it.ch;return ct==null||ct>st?De(it.line,st):ct<0?De(it.line,0):it}function br(it,st){for(var ct=[],ht=0;htthis.maxLookAhead&&(this.maxLookAhead=it),st},$e.prototype.baseToken=function(it){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=it;)this.baseTokenPos+=2;var st=this.baseTokens[this.baseTokenPos+1];return{type:st&&st.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-it}},$e.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},$e.fromSaved=function(it,st,ct){return st instanceof wr?new $e(it,Wn(it.mode,st.state),ct,st.lookAhead):new $e(it,Wn(it.mode,st),ct)},$e.prototype.save=function(it){var st=it!==!1?Wn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new wr(st,this.maxLookAhead):st};function vr(it,st,ct,ht){var ft=[it.state.modeGen],Pt={};nr(it,st.text,it.doc.mode,ct,function(Jt,Ce){return ft.push(Jt,Ce)},Pt,ht);for(var Dt=ct.state,Gt=function(Jt){ct.baseTokens=ft;var Ce=it.state.overlays[Jt],ee=1,Ze=0;ct.state=!0,nr(it,st.text,Ce.mode,ct,function(ze,kn){for(var In=ee;Zeze&&ft.splice(ee,1,ze,ft[ee+1],$n),ee+=2,Ze=Math.min(ze,$n)}if(kn)if(Ce.opaque)ft.splice(In,ee-In,ze,"overlay "+kn),ee=In+2;else for(;Init.options.maxHighlightLength&&Wn(it.doc.mode,ht.state),Pt=vr(it,st,ht);ft&&(ht.state=ft),st.stateAfter=ht.save(!ft),st.styles=Pt.styles,Pt.classes?st.styleClasses=Pt.classes:st.styleClasses&&(st.styleClasses=null),ct===it.doc.highlightFrontier&&(it.doc.modeFrontier=Math.max(it.doc.modeFrontier,++it.doc.highlightFrontier))}return st.styles}function ko(it,st,ct){var ht=it.doc,ft=it.display;if(!ht.mode.startState)return new $e(ht,!0,st);var Pt=Ro(it,st,ct),Dt=Pt>ht.first&&Tn(ht,Pt-1).stateAfter,Gt=Dt?$e.fromSaved(ht,Dt,Pt):new $e(ht,Kn(ht.mode),Pt);return ht.iter(Pt,st,function(Rt){Ye(it,Rt.text,Gt);var Jt=Gt.line;Rt.stateAfter=Jt==st-1||Jt%5==0||Jt>=ft.viewFrom&&Jtst.start)return Pt}throw new Error("Mode "+it.name+" failed to advance stream.")}var Bi=function(it,st,ct){this.start=it.start,this.end=it.pos,this.string=it.current(),this.type=st||null,this.state=ct};function Ai(it,st,ct,ht){var ft=it.doc,Pt=ft.mode,Dt;st=Pi(ft,st);var Gt=Tn(ft,st.line),Rt=ko(it,st.line,ct),Jt=new Ge(Gt.text,it.options.tabSize,Rt),Ce;for(ht&&(Ce=[]);(ht||Jt.posit.options.maxHighlightLength?(Gt=!1,Dt&&Ye(it,st,ht,Ce.pos),Ce.pos=st.length,ee=null):ee=wo(Ci(ct,Ce,ht.state,Ze),Pt),Ze){var ze=Ze[0].name;ze&&(ee="m-"+(ee?ze+" "+ee:ze))}if(!Gt||Jt!=ee){for(;RtDt;--Gt){if(Gt<=Pt.first)return Pt.first;var Rt=Tn(Pt,Gt-1),Jt=Rt.stateAfter;if(Jt&&(!ct||Gt+(Jt instanceof wr?Jt.lookAhead:0)<=Pt.modeFrontier))return Gt;var Ce=he(Rt.text,null,it.options.tabSize);(ft==null||ht>Ce)&&(ft=Gt-1,ht=Ce)}return ft}function Do(it,st){if(it.modeFrontier=Math.min(it.modeFrontier,st),!(it.highlightFrontierct;ht--){var ft=Tn(it,ht).stateAfter;if(ft&&(!(ft instanceof wr)||ht+ft.lookAhead=st:Pt.to>st);(ht||(ht=[])).push(new Ko(Dt,Pt.from,Rt?null:Pt.to))}}return ht}function Ao(it,st,ct){var ht;if(it)for(var ft=0;ft=st:Pt.to>st);if(Gt||Pt.from==st&&Dt.type=="bookmark"&&(!ct||Pt.marker.insertLeft)){var Rt=Pt.from==null||(Dt.inclusiveLeft?Pt.from<=st:Pt.from0&&Gt)for(var Zi=0;Zi0)){var Ce=[Rt,1],ee=dn(Jt.from,Gt.from),Ze=dn(Jt.to,Gt.to);(ee<0||!Dt.inclusiveLeft&&!ee)&&Ce.push({from:Jt.from,to:Gt.from}),(Ze>0||!Dt.inclusiveRight&&!Ze)&&Ce.push({from:Gt.to,to:Jt.to}),ft.splice.apply(ft,Ce),Rt+=Ce.length-3}}return ft}function oi(it){var st=it.markedSpans;if(st){for(var ct=0;ctst)&&(!ht||Mu(ht,Pt.marker)<0)&&(ht=Pt.marker)}return ht}function Ih(it,st,ct,ht,ft){var Pt=Tn(it,st),Dt=on&&Pt.markedSpans;if(Dt)for(var Gt=0;Gt=0&&ee<=0||Ce<=0&&ee>=0)&&(Ce<=0&&(Rt.marker.inclusiveRight&&ft.inclusiveLeft?dn(Jt.to,ct)>=0:dn(Jt.to,ct)>0)||Ce>=0&&(Rt.marker.inclusiveRight&&ft.inclusiveLeft?dn(Jt.from,ht)<=0:dn(Jt.from,ht)<0)))return!0}}}function Tr(it){for(var st;st=lu(it);)it=st.find(-1,!0).line;return it}function _r(it){for(var st;st=$u(it);)it=st.find(1,!0).line;return it}function gl(it){for(var st,ct;st=$u(it);)it=st.find(1,!0).line,(ct||(ct=[])).push(it);return ct}function Ki(it,st){var ct=Tn(it,st),ht=Tr(ct);return ct==ht?st:oe(ht)}function Mi(it,st){if(st>it.lastLine())return st;var ct=Tn(it,st),ht;if(!un(it,ct))return st;for(;ht=$u(ct);)ct=ht.find(1,!0).line;return oe(ct)+1}function un(it,st){var ct=on&&st.markedSpans;if(ct){for(var ht=void 0,ft=0;ftst.maxLineLength&&(st.maxLineLength=ft,st.maxLine=ht)})}var qr=function(it,st,ct){this.text=it,Wt(this,st),this.height=ct?ct(this):1};qr.prototype.lineNo=function(){return oe(this)},Ti(qr);function vi(it,st,ct,ht){it.text=st,it.stateAfter&&(it.stateAfter=null),it.styles&&(it.styles=null),it.order!=null&&(it.order=null),oi(it),Wt(it,ct);var ft=ht?ht(it):1;ft!=it.height&&ao(it,ft)}function cs(it){it.parent=null,oi(it)}var fl={},Ea={};function uu(it,st){if(!it||/^\s*$/.test(it))return null;var ct=st.addModeClass?Ea:fl;return ct[it]||(ct[it]=it.replace(/\S+/g,"cm-$&"))}function ke(it,st){var ct=ue("span",null,null,ie?"padding-right: .1px":null),ht={pre:ue("pre",[ct],"CodeMirror-line"),content:ct,col:0,pos:0,cm:it,trailingSpace:!1,splitSpaces:it.getOption("lineWrapping")};st.measure={};for(var ft=0;ft<=(st.rest?st.rest.length:0);ft++){var Pt=ft?st.rest[ft-1]:st.line,Dt=void 0;ht.pos=0,ht.addToken=pl,Xr(it.display.measure)&&(Dt=Zt(Pt,it.doc.direction))&&(ht.addToken=th(ht.addToken,Dt)),ht.map=[];var Gt=st!=it.display.externalMeasured&&oe(Pt);Vl(Pt,ht,ur(it,Pt,Gt)),Pt.styleClasses&&(Pt.styleClasses.bgClass&&(ht.bgClass=En(Pt.styleClasses.bgClass,ht.bgClass||"")),Pt.styleClasses.textClass&&(ht.textClass=En(Pt.styleClasses.textClass,ht.textClass||""))),ht.map.length==0&&ht.map.push(0,0,ht.content.appendChild(ps(it.display.measure))),ft==0?(st.measure.map=ht.map,st.measure.cache={}):((st.measure.maps||(st.measure.maps=[])).push(ht.map),(st.measure.caches||(st.measure.caches=[])).push({}))}if(ie){var Rt=ht.content.lastChild;(/\bcm-tab\b/.test(Rt.className)||Rt.querySelector&&Rt.querySelector(".cm-tab"))&&(ht.content.className="cm-tab-wrap-hack")}return yn(it,"renderLine",it,st.line,ht.pre),ht.pre.className&&(ht.textClass=En(ht.pre.className,ht.textClass||"")),ht}function oa(it){var st=qt("span","\u2022","cm-invalidchar");return st.title="\\u"+it.charCodeAt(0).toString(16),st.setAttribute("aria-label",st.title),st}function pl(it,st,ct,ht,ft,Pt,Dt){if(st){var Gt=it.splitSpaces?Tl(st,it.trailingSpace):st,Rt=it.cm.state.specialChars,Jt=!1,Ce;if(!Rt.test(st))it.col+=st.length,Ce=document.createTextNode(Gt),it.map.push(it.pos,it.pos+st.length,Ce),fe&&je<9&&(Jt=!0),it.pos+=st.length;else{Ce=document.createDocumentFragment();for(var ee=0;;){Rt.lastIndex=ee;var Ze=Rt.exec(st),ze=Ze?Ze.index-ee:st.length-ee;if(ze){var kn=document.createTextNode(Gt.slice(ee,ee+ze));fe&&je<9?Ce.appendChild(qt("span",[kn])):Ce.appendChild(kn),it.map.push(it.pos,it.pos+ze,kn),it.col+=ze,it.pos+=ze}if(!Ze)break;ee+=ze+1;var In=void 0;if(Ze[0]==" "){var $n=it.cm.options.tabSize,ci=$n-it.col%$n;In=Ce.appendChild(qt("span",ii(ci),"cm-tab")),In.setAttribute("role","presentation"),In.setAttribute("cm-text"," "),it.col+=ci}else Ze[0]=="\r"||Ze[0]==` -`?(In=Ce.appendChild(qt("span",Ze[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),In.setAttribute("cm-text",Ze[0]),it.col+=1):(In=it.cm.options.specialCharPlaceholder(Ze[0]),In.setAttribute("cm-text",Ze[0]),fe&&je<9?Ce.appendChild(qt("span",[In])):Ce.appendChild(In),it.col+=1);it.map.push(it.pos,it.pos+1,In),it.pos++}}if(it.trailingSpace=Gt.charCodeAt(st.length-1)==32,ct||ht||ft||Jt||Pt||Dt){var Gi=ct||"";ht&&(Gi+=ht),ft&&(Gi+=ft);var wi=qt("span",[Ce],Gi,Pt);if(Dt)for(var Zi in Dt)Dt.hasOwnProperty(Zi)&&Zi!="style"&&Zi!="class"&&wi.setAttribute(Zi,Dt[Zi]);return it.content.appendChild(wi)}it.content.appendChild(Ce)}}function Tl(it,st){if(it.length>1&&!/ /.test(it))return it;for(var ct=st,ht="",ft=0;ftJt&&ee.from<=Jt));Ze++);if(ee.to>=Ce)return it(ct,ht,ft,Pt,Dt,Gt,Rt);it(ct,ht.slice(0,ee.to-Jt),ft,Pt,null,Gt,Rt),Pt=null,ht=ht.slice(ee.to-Jt),Jt=ee.to}}}function ss(it,st,ct,ht){var ft=!ht&&ct.widgetNode;ft&&it.map.push(it.pos,it.pos+st,ft),!ht&&it.cm.display.input.needsContentAttribute&&(ft||(ft=it.content.appendChild(document.createElement("span"))),ft.setAttribute("cm-marker",ct.id)),ft&&(it.cm.display.input.setUneditable(ft),it.content.appendChild(ft)),it.pos+=st,it.trailingSpace=!1}function Vl(it,st,ct){var ht=it.markedSpans,ft=it.text,Pt=0;if(!ht){for(var Dt=1;DtRt||$o.collapsed&&xi.to==Rt&&xi.from==Rt)){if(xi.to!=null&&xi.to!=Rt&&ze>xi.to&&(ze=xi.to,In=""),$o.className&&(kn+=" "+$o.className),$o.css&&(Ze=(Ze?Ze+";":"")+$o.css),$o.startStyle&&xi.from==Rt&&($n+=" "+$o.startStyle),$o.endStyle&&xi.to==ze&&(Zi||(Zi=[])).push($o.endStyle,xi.to),$o.title&&((Gi||(Gi={})).title=$o.title),$o.attributes)for(var Ws in $o.attributes)(Gi||(Gi={}))[Ws]=$o.attributes[Ws];$o.collapsed&&(!ci||Mu(ci.marker,$o)<0)&&(ci=xi)}else xi.from>Rt&&ze>xi.from&&(ze=xi.from)}if(Zi)for(var Va=0;Va=Gt)break;for(var nu=Math.min(Gt,ze);;){if(Ce){var Ll=Rt+Ce.length;if(!ci){var Ia=Ll>nu?Ce.slice(0,nu-Rt):Ce;st.addToken(st,Ia,ee?ee+kn:kn,$n,Rt+Ia.length==ze?In:"",Ze,Gi)}if(Ll>=nu){Ce=Ce.slice(nu-Rt),Rt=nu;break}Rt=Ll,$n=""}Ce=ft.slice(Pt,Pt=ct[Jt++]),ee=uu(ct[Jt++],st.cm.options)}}}function Zl(it,st,ct){this.line=st,this.rest=gl(st),this.size=this.rest?oe(re(this.rest))-ct+1:1,this.node=this.text=null,this.hidden=un(it,st)}function Sr(it,st,ct){for(var ht=[],ft,Pt=st;Pt2&&Pt.push((Rt.bottom+Jt.top)/2-ct.top)}}Pt.push(ct.bottom-ct.top)}}function Wi(it,st,ct){if(it.line==st)return{map:it.measure.map,cache:it.measure.cache};for(var ht=0;htct)return{map:it.measure.maps[ft],cache:it.measure.caches[ft],before:!0}}function ho(it,st){st=Tr(st);var ct=oe(st),ht=it.display.externalMeasured=new Zl(it.doc,st,ct);ht.lineN=ct;var ft=ht.built=ke(it,ht);return ht.text=ft.pre,ne(it.display.lineMeasure,ft.pre),ht}function _i(it,st,ct,ht){return Qo(it,sr(it,st),ct,ht)}function Ui(it,st){if(st>=it.display.viewFrom&&st=ct.lineN&&stst)&&(Pt=Rt-Gt,ft=Pt-1,st>=Rt&&(Dt="right")),ft!=null){if(ht=it[Jt+2],Gt==Rt&&ct==(ht.insertLeft?"left":"right")&&(Dt=ct),ct=="left"&&ft==0)for(;Jt&&it[Jt-2]==it[Jt-3]&&it[Jt-1].insertLeft;)ht=it[(Jt-=3)+2],Dt="left";if(ct=="right"&&ft==Rt-Gt)for(;Jt=0&&(ct=it[ft]).left==ct.right;ft--);return ct}function so(it,st,ct,ht){var ft=Io(st.map,ct,ht),Pt=ft.node,Dt=ft.start,Gt=ft.end,Rt=ft.collapse,Jt;if(Pt.nodeType==3){for(var Ce=0;Ce<4;Ce++){for(;Dt&&gn(st.line.text.charAt(ft.coverStart+Dt));)--Dt;for(;ft.coverStart+Gt0&&(Rt=ht="right");var ee;it.options.lineWrapping&&(ee=Pt.getClientRects()).length>1?Jt=ee[ht=="right"?ee.length-1:0]:Jt=Pt.getBoundingClientRect()}if(fe&&je<9&&!Dt&&(!Jt||!Jt.left&&!Jt.right)){var Ze=Pt.parentNode.getClientRects()[0];Ze?Jt={left:Ze.left,right:Ze.left+Fl(it.display),top:Ze.top,bottom:Ze.bottom}:Jt=io}for(var ze=Jt.top-st.rect.top,kn=Jt.bottom-st.rect.top,In=(ze+kn)/2,$n=st.view.measure.heights,ci=0;ci<$n.length-1&&!(In<$n[ci]);ci++);var Gi=ci?$n[ci-1]:0,wi=$n[ci],Zi={left:(Rt=="right"?Jt.right:Jt.left)-st.rect.left,right:(Rt=="left"?Jt.left:Jt.right)-st.rect.left,top:Gi,bottom:wi};return!Jt.left&&!Jt.right&&(Zi.bogus=!0),it.options.singleCursorHeightPerLine||(Zi.rtop=ze,Zi.rbottom=kn),Zi}function ml(it,st){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Ra(it))return st;var ct=screen.logicalXDPI/screen.deviceXDPI,ht=screen.logicalYDPI/screen.deviceYDPI;return{left:st.left*ct,right:st.right*ct,top:st.top*ht,bottom:st.bottom*ht}}function Ql(it){if(it.measure&&(it.measure.cache={},it.measure.heights=null,it.rest))for(var st=0;st=ht.text.length?(Rt=ht.text.length,Jt="before"):Rt<=0&&(Rt=0,Jt="after"),!Gt)return Dt(Jt=="before"?Rt-1:Rt,Jt=="before");function Ce(kn,In,$n){var ci=Gt[In],Gi=ci.level==1;return Dt($n?kn-1:kn,Gi!=$n)}var ee=xt(Gt,Rt,Jt),Ze=Mt,ze=Ce(Rt,ee,Jt=="before");return Ze!=null&&(ze.other=Ce(Rt,Ze,Jt!="before")),ze}function Ph(it,st){var ct=0;st=Pi(it.doc,st),it.options.lineWrapping||(ct=Fl(it.display)*st.ch);var ht=Tn(it.doc,st.line),ft=No(ht)+$i(it.display);return{left:ct,right:ct,top:ft,bottom:ft+ht.height}}function Ru(it,st,ct,ht,ft){var Pt=De(it,st,ct);return Pt.xRel=ft,ht&&(Pt.outside=ht),Pt}function jh(it,st,ct){var ht=it.doc;if(ct+=it.display.viewOffset,ct<0)return Ru(ht.first,0,null,-1,-1);var ft=mn(ht,ct),Pt=ht.first+ht.size-1;if(ft>Pt)return Ru(ht.first+ht.size-1,Tn(ht,Pt).text.length,null,1,1);st<0&&(st=0);for(var Dt=Tn(ht,ft);;){var Gt=He(it,Dt,ft,st,ct),Rt=ad(Dt,Gt.ch+(Gt.xRel>0||Gt.outside>0?1:0));if(!Rt)return Gt;var Jt=Rt.find(1);if(Jt.line==ft)return Jt;Dt=Tn(ht,ft=Jt.line)}}function fi(it,st,ct,ht){ht-=gs(st);var ft=st.text.length,Pt=zn(function(Dt){return Qo(it,ct,Dt-1).bottom<=ht},ft,0);return ft=zn(function(Dt){return Qo(it,ct,Dt).top>ht},Pt,ft),{begin:Pt,end:ft}}function Rh(it,st,ct,ht){ct||(ct=sr(it,st));var ft=oo(it,st,Qo(it,ct,ht),"line").top;return fi(it,st,ct,ft)}function _t(it,st,ct,ht){return it.bottom<=ct?!1:it.top>ct?!0:(ht?it.left:it.right)>st}function He(it,st,ct,ht,ft){ft-=No(st);var Pt=sr(it,st),Dt=gs(st),Gt=0,Rt=st.text.length,Jt=!0,Ce=Zt(st,it.doc.direction);if(Ce){var ee=(it.options.lineWrapping?Aa:Ps)(it,st,ct,Pt,Ce,ht,ft);Jt=ee.level!=1,Gt=Jt?ee.from:ee.to-1,Rt=Jt?ee.to:ee.from-1}var Ze=null,ze=null,kn=zn(function(xo){var xi=Qo(it,Pt,xo);return xi.top+=Dt,xi.bottom+=Dt,_t(xi,ht,ft,!1)?(xi.top<=ft&&xi.left<=ht&&(Ze=xo,ze=xi),!0):!1},Gt,Rt),In,$n,ci=!1;if(ze){var Gi=ht-ze.left=Zi.bottom?1:0}return kn=Bn(st.text,kn,1),Ru(ct,kn,$n,ci,ht-In)}function Ps(it,st,ct,ht,ft,Pt,Dt){var Gt=zn(function(ee){var Ze=ft[ee],ze=Ze.level!=1;return _t(Er(it,De(ct,ze?Ze.to:Ze.from,ze?"before":"after"),"line",st,ht),Pt,Dt,!0)},0,ft.length-1),Rt=ft[Gt];if(Gt>0){var Jt=Rt.level!=1,Ce=Er(it,De(ct,Jt?Rt.from:Rt.to,Jt?"after":"before"),"line",st,ht);_t(Ce,Pt,Dt,!0)&&Ce.top>Dt&&(Rt=ft[Gt-1])}return Rt}function Aa(it,st,ct,ht,ft,Pt,Dt){var Gt=fi(it,st,ht,Dt),Rt=Gt.begin,Jt=Gt.end;/\s/.test(st.text.charAt(Jt-1))&&Jt--;for(var Ce=null,ee=null,Ze=0;Ze=Jt||ze.to<=Rt)){var kn=ze.level!=1,In=Qo(it,ht,kn?Math.min(Jt,ze.to)-1:Math.max(Rt,ze.from)).right,$n=In$n)&&(Ce=ze,ee=$n)}}return Ce||(Ce=ft[ft.length-1]),Ce.fromJt&&(Ce={from:Ce.from,to:Jt,level:Ce.level}),Ce}var Vs;function js(it){if(it.cachedTextHeight!=null)return it.cachedTextHeight;if(Vs==null){Vs=qt("pre",null,"CodeMirror-line-like");for(var st=0;st<49;++st)Vs.appendChild(document.createTextNode("x")),Vs.appendChild(qt("br"));Vs.appendChild(document.createTextNode("x"))}ne(it.measure,Vs);var ct=Vs.offsetHeight/50;return ct>3&&(it.cachedTextHeight=ct),$t(it.measure),ct||1}function Fl(it){if(it.cachedCharWidth!=null)return it.cachedCharWidth;var st=qt("span","xxxxxxxxxx"),ct=qt("pre",[st],"CodeMirror-line-like");ne(it.measure,ct);var ht=st.getBoundingClientRect(),ft=(ht.right-ht.left)/10;return ft>2&&(it.cachedCharWidth=ft),ft||10}function zu(it){for(var st=it.display,ct={},ht={},ft=st.gutters.clientLeft,Pt=st.gutters.firstChild,Dt=0;Pt;Pt=Pt.nextSibling,++Dt){var Gt=it.display.gutterSpecs[Dt].className;ct[Gt]=Pt.offsetLeft+Pt.clientLeft+ft,ht[Gt]=Pt.clientWidth}return{fixedPos:as(st),gutterTotalWidth:st.gutters.offsetWidth,gutterLeft:ct,gutterWidth:ht,wrapperWidth:st.wrapper.clientWidth}}function as(it){return it.scroller.getBoundingClientRect().left-it.sizer.getBoundingClientRect().left}function ls(it){var st=js(it.display),ct=it.options.lineWrapping,ht=ct&&Math.max(5,it.display.scroller.clientWidth/Fl(it.display)-3);return function(ft){if(un(it.doc,ft))return 0;var Pt=0;if(ft.widgets)for(var Dt=0;Dt0&&(Jt=Tn(it.doc,Rt.line).text).length==Rt.ch){var Ce=he(Jt,Jt.length,it.options.tabSize)-Jt.length;Rt=De(Rt.line,Math.max(0,Math.round((Pt-ga(it.display).left)/Fl(it.display))-Ce))}return Rt}function vl(it,st){if(st>=it.display.viewTo||(st-=it.display.viewFrom,st<0))return null;for(var ct=it.display.view,ht=0;htst)&&(ft.updateLineNumbers=st),it.curOp.viewChanged=!0,st>=ft.viewTo)on&&Ki(it.doc,st)ft.viewFrom?Rs(it):(ft.viewFrom+=ht,ft.viewTo+=ht);else if(st<=ft.viewFrom&&ct>=ft.viewTo)Rs(it);else if(st<=ft.viewFrom){var Pt=bt(it,ct,ct+ht,1);Pt?(ft.view=ft.view.slice(Pt.index),ft.viewFrom=Pt.lineN,ft.viewTo+=ht):Rs(it)}else if(ct>=ft.viewTo){var Dt=bt(it,st,st,-1);Dt?(ft.view=ft.view.slice(0,Dt.index),ft.viewTo=Dt.lineN):Rs(it)}else{var Gt=bt(it,st,st,-1),Rt=bt(it,ct,ct+ht,1);Gt&&Rt?(ft.view=ft.view.slice(0,Gt.index).concat(Sr(it,Gt.lineN,Rt.lineN)).concat(ft.view.slice(Rt.index)),ft.viewTo+=ht):Rs(it)}var Jt=ft.externalMeasured;Jt&&(ct=ft.lineN&&st=ht.viewTo)){var Pt=ht.view[vl(it,st)];if(Pt.node!=null){var Dt=Pt.changes||(Pt.changes=[]);Ae(Dt,ct)==-1&&Dt.push(ct)}}}function Rs(it){it.display.viewFrom=it.display.viewTo=it.doc.first,it.display.view=[],it.display.viewOffset=0}function bt(it,st,ct,ht){var ft=vl(it,st),Pt,Dt=it.display.view;if(!on||ct==it.doc.first+it.doc.size)return{index:ft,lineN:ct};for(var Gt=it.display.viewFrom,Rt=0;Rt0){if(ft==Dt.length-1)return null;Pt=Gt+Dt[ft].size-st,ft++}else Pt=Gt-st;st+=Pt,ct+=Pt}for(;Ki(it.doc,ct)!=ct;){if(ft==(ht<0?0:Dt.length-1))return null;ct+=ht*Dt[ft-(ht<0?1:0)].size,ft+=ht}return{index:ft,lineN:ct}}function Ot(it,st,ct){var ht=it.display,ft=ht.view;ft.length==0||st>=ht.viewTo||ct<=ht.viewFrom?(ht.view=Sr(it,st,ct),ht.viewFrom=st):(ht.viewFrom>st?ht.view=Sr(it,st,ht.viewFrom).concat(ht.view):ht.viewFromct&&(ht.view=ht.view.slice(0,vl(it,ct)))),ht.viewTo=ct}function Ht(it){for(var st=it.display.view,ct=0,ht=0;ht=it.display.viewTo||Gt.to().line1}var za={},da={};function Xa(it,st){arguments.length>2&&(st.dependencies=Array.prototype.slice.call(arguments,2)),za[it]=st}function ei(it,st){da[it]=st}function ai(it){if(typeof it=="string"&&da.hasOwnProperty(it))it=da[it];else if(it&&typeof it.name=="string"&&da.hasOwnProperty(it.name)){var st=da[it.name];typeof st=="string"&&(st={name:st}),it=ni(st,it),it.name=st.name}else{if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(it))return ai("application/xml");if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(it))return ai("application/json")}return typeof it=="string"?{name:it}:it||{name:"null"}}function Ee(it,st){st=ai(st);var ct=za[st.name];if(!ct)return Ee(it,"text/plain");var ht=ct(it,st);if(pe.hasOwnProperty(st.name)){var ft=pe[st.name];for(var Pt in ft)ft.hasOwnProperty(Pt)&&(ht.hasOwnProperty(Pt)&&(ht["_"+Pt]=ht[Pt]),ht[Pt]=ft[Pt])}if(ht.name=st.name,st.helperType&&(ht.helperType=st.helperType),st.modeProps)for(var Dt in st.modeProps)ht[Dt]=st.modeProps[Dt];return ht}var pe={};function ve(it,st){var ct=pe.hasOwnProperty(it)?pe[it]:pe[it]={};cn(st,ct)}function Wn(it,st){if(st===!0)return st;if(it.copyState)return it.copyState(st);var ct={};for(var ht in st){var ft=st[ht];ft instanceof Array&&(ft=ft.concat([])),ct[ht]=ft}return ct}function On(it,st){for(var ct;it.innerMode&&(ct=it.innerMode(st),!(!ct||ct.mode==it));)st=ct.state,it=ct.mode;return ct||{mode:it,state:st}}function Kn(it,st,ct){return it.startState?it.startState(st,ct):!0}var Ge=function(it,st,ct){this.pos=this.start=0,this.string=it,this.tabSize=st||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ct};Ge.prototype.eol=function(){return this.pos>=this.string.length},Ge.prototype.sol=function(){return this.pos==this.lineStart},Ge.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ge.prototype.next=function(){if(this.posst},Ge.prototype.eatSpace=function(){for(var it=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>it},Ge.prototype.skipToEnd=function(){this.pos=this.string.length},Ge.prototype.skipTo=function(it){var st=this.string.indexOf(it,this.pos);if(st>-1)return this.pos=st,!0},Ge.prototype.backUp=function(it){this.pos-=it},Ge.prototype.column=function(){return this.lastColumnPos0?null:(Pt&&st!==!1&&(this.pos+=Pt[0].length),Pt)}},Ge.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ge.prototype.hideFirstChars=function(it,st){this.lineStart+=it;try{return st()}finally{this.lineStart-=it}},Ge.prototype.lookAhead=function(it){var st=this.lineOracle;return st&&st.lookAhead(it)},Ge.prototype.baseToken=function(){var it=this.lineOracle;return it&&it.baseToken(this.pos)};function Tn(it,st){if(st-=it.first,st<0||st>=it.size)throw new Error("There is no line "+(st+it.first)+" in the document.");for(var ct=it;!ct.lines;)for(var ht=0;;++ht){var ft=ct.children[ht],Pt=ft.chunkSize();if(st=it.first&&stct?De(ct,Tn(it,ct).text.length):Wo(st,Tn(it,st.line).text.length)}function Wo(it,st){var ct=it.ch;return ct==null||ct>st?De(it.line,st):ct<0?De(it.line,0):it}function br(it,st){for(var ct=[],ht=0;htthis.maxLookAhead&&(this.maxLookAhead=it),st},$e.prototype.baseToken=function(it){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=it;)this.baseTokenPos+=2;var st=this.baseTokens[this.baseTokenPos+1];return{type:st&&st.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-it}},$e.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},$e.fromSaved=function(it,st,ct){return st instanceof wr?new $e(it,Wn(it.mode,st.state),ct,st.lookAhead):new $e(it,Wn(it.mode,st),ct)},$e.prototype.save=function(it){var st=it!==!1?Wn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new wr(st,this.maxLookAhead):st};function vr(it,st,ct,ht){var ft=[it.state.modeGen],Pt={};nr(it,st.text,it.doc.mode,ct,function(Jt,Ce){return ft.push(Jt,Ce)},Pt,ht);for(var Dt=ct.state,Gt=function(Jt){ct.baseTokens=ft;var Ce=it.state.overlays[Jt],ee=1,Ze=0;ct.state=!0,nr(it,st.text,Ce.mode,ct,function(ze,kn){for(var In=ee;Zeze&&ft.splice(ee,1,ze,ft[ee+1],$n),ee+=2,Ze=Math.min(ze,$n)}if(kn)if(Ce.opaque)ft.splice(In,ee-In,ze,"overlay "+kn),ee=In+2;else for(;Init.options.maxHighlightLength&&Wn(it.doc.mode,ht.state),Pt=vr(it,st,ht);ft&&(ht.state=ft),st.stateAfter=ht.save(!ft),st.styles=Pt.styles,Pt.classes?st.styleClasses=Pt.classes:st.styleClasses&&(st.styleClasses=null),ct===it.doc.highlightFrontier&&(it.doc.modeFrontier=Math.max(it.doc.modeFrontier,++it.doc.highlightFrontier))}return st.styles}function ko(it,st,ct){var ht=it.doc,ft=it.display;if(!ht.mode.startState)return new $e(ht,!0,st);var Pt=Ro(it,st,ct),Dt=Pt>ht.first&&Tn(ht,Pt-1).stateAfter,Gt=Dt?$e.fromSaved(ht,Dt,Pt):new $e(ht,Kn(ht.mode),Pt);return ht.iter(Pt,st,function(Rt){Ye(it,Rt.text,Gt);var Jt=Gt.line;Rt.stateAfter=Jt==st-1||Jt%5==0||Jt>=ft.viewFrom&&Jtst.start)return Pt}throw new Error("Mode "+it.name+" failed to advance stream.")}var Bi=function(it,st,ct){this.start=it.start,this.end=it.pos,this.string=it.current(),this.type=st||null,this.state=ct};function Ai(it,st,ct,ht){var ft=it.doc,Pt=ft.mode,Dt;st=Pi(ft,st);var Gt=Tn(ft,st.line),Rt=ko(it,st.line,ct),Jt=new Ge(Gt.text,it.options.tabSize,Rt),Ce;for(ht&&(Ce=[]);(ht||Jt.posit.options.maxHighlightLength?(Gt=!1,Dt&&Ye(it,st,ht,Ce.pos),Ce.pos=st.length,ee=null):ee=wo(Ci(ct,Ce,ht.state,Ze),Pt),Ze){var ze=Ze[0].name;ze&&(ee="m-"+(ee?ze+" "+ee:ze))}if(!Gt||Jt!=ee){for(;RtDt;--Gt){if(Gt<=Pt.first)return Pt.first;var Rt=Tn(Pt,Gt-1),Jt=Rt.stateAfter;if(Jt&&(!ct||Gt+(Jt instanceof wr?Jt.lookAhead:0)<=Pt.modeFrontier))return Gt;var Ce=he(Rt.text,null,it.options.tabSize);(ft==null||ht>Ce)&&(ft=Gt-1,ht=Ce)}return ft}function Do(it,st){if(it.modeFrontier=Math.min(it.modeFrontier,st),!(it.highlightFrontierct;ht--){var ft=Tn(it,ht).stateAfter;if(ft&&(!(ft instanceof wr)||ht+ft.lookAhead=st:Pt.to>st);(ht||(ht=[])).push(new Ko(Dt,Pt.from,Rt?null:Pt.to))}}return ht}function Ao(it,st,ct){var ht;if(it)for(var ft=0;ft=st:Pt.to>st);if(Gt||Pt.from==st&&Dt.type=="bookmark"&&(!ct||Pt.marker.insertLeft)){var Rt=Pt.from==null||(Dt.inclusiveLeft?Pt.from<=st:Pt.from0&&Gt)for(var Zi=0;Zi0)){var Ce=[Rt,1],ee=dn(Jt.from,Gt.from),Ze=dn(Jt.to,Gt.to);(ee<0||!Dt.inclusiveLeft&&!ee)&&Ce.push({from:Jt.from,to:Gt.from}),(Ze>0||!Dt.inclusiveRight&&!Ze)&&Ce.push({from:Gt.to,to:Jt.to}),ft.splice.apply(ft,Ce),Rt+=Ce.length-3}}return ft}function oi(it){var st=it.markedSpans;if(st){for(var ct=0;ctst)&&(!ht||Mu(ht,Pt.marker)<0)&&(ht=Pt.marker)}return ht}function Ih(it,st,ct,ht,ft){var Pt=Tn(it,st),Dt=on&&Pt.markedSpans;if(Dt)for(var Gt=0;Gt=0&&ee<=0||Ce<=0&&ee>=0)&&(Ce<=0&&(Rt.marker.inclusiveRight&&ft.inclusiveLeft?dn(Jt.to,ct)>=0:dn(Jt.to,ct)>0)||Ce>=0&&(Rt.marker.inclusiveRight&&ft.inclusiveLeft?dn(Jt.from,ht)<=0:dn(Jt.from,ht)<0)))return!0}}}function Tr(it){for(var st;st=Vl(it);)it=st.find(-1,!0).line;return it}function _r(it){for(var st;st=$u(it);)it=st.find(1,!0).line;return it}function gl(it){for(var st,ct;st=$u(it);)it=st.find(1,!0).line,(ct||(ct=[])).push(it);return ct}function Ki(it,st){var ct=Tn(it,st),ht=Tr(ct);return ct==ht?st:oe(ht)}function Mi(it,st){if(st>it.lastLine())return st;var ct=Tn(it,st),ht;if(!un(it,ct))return st;for(;ht=$u(ct);)ct=ht.find(1,!0).line;return oe(ct)+1}function un(it,st){var ct=on&&st.markedSpans;if(ct){for(var ht=void 0,ft=0;ftst.maxLineLength&&(st.maxLineLength=ft,st.maxLine=ht)})}var qr=function(it,st,ct){this.text=it,Wt(this,st),this.height=ct?ct(this):1};qr.prototype.lineNo=function(){return oe(this)},Ti(qr);function vi(it,st,ct,ht){it.text=st,it.stateAfter&&(it.stateAfter=null),it.styles&&(it.styles=null),it.order!=null&&(it.order=null),oi(it),Wt(it,ct);var ft=ht?ht(it):1;ft!=it.height&&ao(it,ft)}function cs(it){it.parent=null,oi(it)}var fl={},Ea={};function uu(it,st){if(!it||/^\s*$/.test(it))return null;var ct=st.addModeClass?Ea:fl;return ct[it]||(ct[it]=it.replace(/\S+/g,"cm-$&"))}function ke(it,st){var ct=ue("span",null,null,ie?"padding-right: .1px":null),ht={pre:ue("pre",[ct],"CodeMirror-line"),content:ct,col:0,pos:0,cm:it,trailingSpace:!1,splitSpaces:it.getOption("lineWrapping")};st.measure={};for(var ft=0;ft<=(st.rest?st.rest.length:0);ft++){var Pt=ft?st.rest[ft-1]:st.line,Dt=void 0;ht.pos=0,ht.addToken=pl,Xr(it.display.measure)&&(Dt=Zt(Pt,it.doc.direction))&&(ht.addToken=th(ht.addToken,Dt)),ht.map=[];var Gt=st!=it.display.externalMeasured&&oe(Pt);Zl(Pt,ht,ur(it,Pt,Gt)),Pt.styleClasses&&(Pt.styleClasses.bgClass&&(ht.bgClass=En(Pt.styleClasses.bgClass,ht.bgClass||"")),Pt.styleClasses.textClass&&(ht.textClass=En(Pt.styleClasses.textClass,ht.textClass||""))),ht.map.length==0&&ht.map.push(0,0,ht.content.appendChild(ps(it.display.measure))),ft==0?(st.measure.map=ht.map,st.measure.cache={}):((st.measure.maps||(st.measure.maps=[])).push(ht.map),(st.measure.caches||(st.measure.caches=[])).push({}))}if(ie){var Rt=ht.content.lastChild;(/\bcm-tab\b/.test(Rt.className)||Rt.querySelector&&Rt.querySelector(".cm-tab"))&&(ht.content.className="cm-tab-wrap-hack")}return yn(it,"renderLine",it,st.line,ht.pre),ht.pre.className&&(ht.textClass=En(ht.pre.className,ht.textClass||"")),ht}function oa(it){var st=qt("span","\u2022","cm-invalidchar");return st.title="\\u"+it.charCodeAt(0).toString(16),st.setAttribute("aria-label",st.title),st}function pl(it,st,ct,ht,ft,Pt,Dt){if(st){var Gt=it.splitSpaces?Tl(st,it.trailingSpace):st,Rt=it.cm.state.specialChars,Jt=!1,Ce;if(!Rt.test(st))it.col+=st.length,Ce=document.createTextNode(Gt),it.map.push(it.pos,it.pos+st.length,Ce),fe&&je<9&&(Jt=!0),it.pos+=st.length;else{Ce=document.createDocumentFragment();for(var ee=0;;){Rt.lastIndex=ee;var Ze=Rt.exec(st),ze=Ze?Ze.index-ee:st.length-ee;if(ze){var kn=document.createTextNode(Gt.slice(ee,ee+ze));fe&&je<9?Ce.appendChild(qt("span",[kn])):Ce.appendChild(kn),it.map.push(it.pos,it.pos+ze,kn),it.col+=ze,it.pos+=ze}if(!Ze)break;ee+=ze+1;var In=void 0;if(Ze[0]==" "){var $n=it.cm.options.tabSize,ci=$n-it.col%$n;In=Ce.appendChild(qt("span",ii(ci),"cm-tab")),In.setAttribute("role","presentation"),In.setAttribute("cm-text"," "),it.col+=ci}else Ze[0]=="\r"||Ze[0]==` +`?(In=Ce.appendChild(qt("span",Ze[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),In.setAttribute("cm-text",Ze[0]),it.col+=1):(In=it.cm.options.specialCharPlaceholder(Ze[0]),In.setAttribute("cm-text",Ze[0]),fe&&je<9?Ce.appendChild(qt("span",[In])):Ce.appendChild(In),it.col+=1);it.map.push(it.pos,it.pos+1,In),it.pos++}}if(it.trailingSpace=Gt.charCodeAt(st.length-1)==32,ct||ht||ft||Jt||Pt||Dt){var Gi=ct||"";ht&&(Gi+=ht),ft&&(Gi+=ft);var wi=qt("span",[Ce],Gi,Pt);if(Dt)for(var Zi in Dt)Dt.hasOwnProperty(Zi)&&Zi!="style"&&Zi!="class"&&wi.setAttribute(Zi,Dt[Zi]);return it.content.appendChild(wi)}it.content.appendChild(Ce)}}function Tl(it,st){if(it.length>1&&!/ /.test(it))return it;for(var ct=st,ht="",ft=0;ftJt&&ee.from<=Jt));Ze++);if(ee.to>=Ce)return it(ct,ht,ft,Pt,Dt,Gt,Rt);it(ct,ht.slice(0,ee.to-Jt),ft,Pt,null,Gt,Rt),Pt=null,ht=ht.slice(ee.to-Jt),Jt=ee.to}}}function ss(it,st,ct,ht){var ft=!ht&&ct.widgetNode;ft&&it.map.push(it.pos,it.pos+st,ft),!ht&&it.cm.display.input.needsContentAttribute&&(ft||(ft=it.content.appendChild(document.createElement("span"))),ft.setAttribute("cm-marker",ct.id)),ft&&(it.cm.display.input.setUneditable(ft),it.content.appendChild(ft)),it.pos+=st,it.trailingSpace=!1}function Zl(it,st,ct){var ht=it.markedSpans,ft=it.text,Pt=0;if(!ht){for(var Dt=1;DtRt||$o.collapsed&&xi.to==Rt&&xi.from==Rt)){if(xi.to!=null&&xi.to!=Rt&&ze>xi.to&&(ze=xi.to,In=""),$o.className&&(kn+=" "+$o.className),$o.css&&(Ze=(Ze?Ze+";":"")+$o.css),$o.startStyle&&xi.from==Rt&&($n+=" "+$o.startStyle),$o.endStyle&&xi.to==ze&&(Zi||(Zi=[])).push($o.endStyle,xi.to),$o.title&&((Gi||(Gi={})).title=$o.title),$o.attributes)for(var Ws in $o.attributes)(Gi||(Gi={}))[Ws]=$o.attributes[Ws];$o.collapsed&&(!ci||Mu(ci.marker,$o)<0)&&(ci=xi)}else xi.from>Rt&&ze>xi.from&&(ze=xi.from)}if(Zi)for(var Va=0;Va=Gt)break;for(var iu=Math.min(Gt,ze);;){if(Ce){var Ll=Rt+Ce.length;if(!ci){var Ia=Ll>iu?Ce.slice(0,iu-Rt):Ce;st.addToken(st,Ia,ee?ee+kn:kn,$n,Rt+Ia.length==ze?In:"",Ze,Gi)}if(Ll>=iu){Ce=Ce.slice(iu-Rt),Rt=iu;break}Rt=Ll,$n=""}Ce=ft.slice(Pt,Pt=ct[Jt++]),ee=uu(ct[Jt++],st.cm.options)}}}function Kl(it,st,ct){this.line=st,this.rest=gl(st),this.size=this.rest?oe(re(this.rest))-ct+1:1,this.node=this.text=null,this.hidden=un(it,st)}function Sr(it,st,ct){for(var ht=[],ft,Pt=st;Pt2&&Pt.push((Rt.bottom+Jt.top)/2-ct.top)}}Pt.push(ct.bottom-ct.top)}}function Wi(it,st,ct){if(it.line==st)return{map:it.measure.map,cache:it.measure.cache};for(var ht=0;htct)return{map:it.measure.maps[ft],cache:it.measure.caches[ft],before:!0}}function ho(it,st){st=Tr(st);var ct=oe(st),ht=it.display.externalMeasured=new Kl(it.doc,st,ct);ht.lineN=ct;var ft=ht.built=ke(it,ht);return ht.text=ft.pre,ne(it.display.lineMeasure,ft.pre),ht}function _i(it,st,ct,ht){return Qo(it,sr(it,st),ct,ht)}function Ui(it,st){if(st>=it.display.viewFrom&&st=ct.lineN&&stst)&&(Pt=Rt-Gt,ft=Pt-1,st>=Rt&&(Dt="right")),ft!=null){if(ht=it[Jt+2],Gt==Rt&&ct==(ht.insertLeft?"left":"right")&&(Dt=ct),ct=="left"&&ft==0)for(;Jt&&it[Jt-2]==it[Jt-3]&&it[Jt-1].insertLeft;)ht=it[(Jt-=3)+2],Dt="left";if(ct=="right"&&ft==Rt-Gt)for(;Jt=0&&(ct=it[ft]).left==ct.right;ft--);return ct}function so(it,st,ct,ht){var ft=Io(st.map,ct,ht),Pt=ft.node,Dt=ft.start,Gt=ft.end,Rt=ft.collapse,Jt;if(Pt.nodeType==3){for(var Ce=0;Ce<4;Ce++){for(;Dt&&gn(st.line.text.charAt(ft.coverStart+Dt));)--Dt;for(;ft.coverStart+Gt0&&(Rt=ht="right");var ee;it.options.lineWrapping&&(ee=Pt.getClientRects()).length>1?Jt=ee[ht=="right"?ee.length-1:0]:Jt=Pt.getBoundingClientRect()}if(fe&&je<9&&!Dt&&(!Jt||!Jt.left&&!Jt.right)){var Ze=Pt.parentNode.getClientRects()[0];Ze?Jt={left:Ze.left,right:Ze.left+Fl(it.display),top:Ze.top,bottom:Ze.bottom}:Jt=io}for(var ze=Jt.top-st.rect.top,kn=Jt.bottom-st.rect.top,In=(ze+kn)/2,$n=st.view.measure.heights,ci=0;ci<$n.length-1&&!(In<$n[ci]);ci++);var Gi=ci?$n[ci-1]:0,wi=$n[ci],Zi={left:(Rt=="right"?Jt.right:Jt.left)-st.rect.left,right:(Rt=="left"?Jt.left:Jt.right)-st.rect.left,top:Gi,bottom:wi};return!Jt.left&&!Jt.right&&(Zi.bogus=!0),it.options.singleCursorHeightPerLine||(Zi.rtop=ze,Zi.rbottom=kn),Zi}function ml(it,st){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Ra(it))return st;var ct=screen.logicalXDPI/screen.deviceXDPI,ht=screen.logicalYDPI/screen.deviceYDPI;return{left:st.left*ct,right:st.right*ct,top:st.top*ht,bottom:st.bottom*ht}}function Xl(it){if(it.measure&&(it.measure.cache={},it.measure.heights=null,it.rest))for(var st=0;st=ht.text.length?(Rt=ht.text.length,Jt="before"):Rt<=0&&(Rt=0,Jt="after"),!Gt)return Dt(Jt=="before"?Rt-1:Rt,Jt=="before");function Ce(kn,In,$n){var ci=Gt[In],Gi=ci.level==1;return Dt($n?kn-1:kn,Gi!=$n)}var ee=xt(Gt,Rt,Jt),Ze=Mt,ze=Ce(Rt,ee,Jt=="before");return Ze!=null&&(ze.other=Ce(Rt,Ze,Jt!="before")),ze}function Ph(it,st){var ct=0;st=Pi(it.doc,st),it.options.lineWrapping||(ct=Fl(it.display)*st.ch);var ht=Tn(it.doc,st.line),ft=No(ht)+eo(it.display);return{left:ct,right:ct,top:ft,bottom:ft+ht.height}}function Ru(it,st,ct,ht,ft){var Pt=De(it,st,ct);return Pt.xRel=ft,ht&&(Pt.outside=ht),Pt}function jh(it,st,ct){var ht=it.doc;if(ct+=it.display.viewOffset,ct<0)return Ru(ht.first,0,null,-1,-1);var ft=mn(ht,ct),Pt=ht.first+ht.size-1;if(ft>Pt)return Ru(ht.first+ht.size-1,Tn(ht,Pt).text.length,null,1,1);st<0&&(st=0);for(var Dt=Tn(ht,ft);;){var Gt=He(it,Dt,ft,st,ct),Rt=ad(Dt,Gt.ch+(Gt.xRel>0||Gt.outside>0?1:0));if(!Rt)return Gt;var Jt=Rt.find(1);if(Jt.line==ft)return Jt;Dt=Tn(ht,ft=Jt.line)}}function fi(it,st,ct,ht){ht-=gs(st);var ft=st.text.length,Pt=zn(function(Dt){return Qo(it,ct,Dt-1).bottom<=ht},ft,0);return ft=zn(function(Dt){return Qo(it,ct,Dt).top>ht},Pt,ft),{begin:Pt,end:ft}}function Rh(it,st,ct,ht){ct||(ct=sr(it,st));var ft=oo(it,st,Qo(it,ct,ht),"line").top;return fi(it,st,ct,ft)}function _t(it,st,ct,ht){return it.bottom<=ct?!1:it.top>ct?!0:(ht?it.left:it.right)>st}function He(it,st,ct,ht,ft){ft-=No(st);var Pt=sr(it,st),Dt=gs(st),Gt=0,Rt=st.text.length,Jt=!0,Ce=Zt(st,it.doc.direction);if(Ce){var ee=(it.options.lineWrapping?Aa:Ps)(it,st,ct,Pt,Ce,ht,ft);Jt=ee.level!=1,Gt=Jt?ee.from:ee.to-1,Rt=Jt?ee.to:ee.from-1}var Ze=null,ze=null,kn=zn(function(xo){var xi=Qo(it,Pt,xo);return xi.top+=Dt,xi.bottom+=Dt,_t(xi,ht,ft,!1)?(xi.top<=ft&&xi.left<=ht&&(Ze=xo,ze=xi),!0):!1},Gt,Rt),In,$n,ci=!1;if(ze){var Gi=ht-ze.left=Zi.bottom?1:0}return kn=Bn(st.text,kn,1),Ru(ct,kn,$n,ci,ht-In)}function Ps(it,st,ct,ht,ft,Pt,Dt){var Gt=zn(function(ee){var Ze=ft[ee],ze=Ze.level!=1;return _t(Er(it,De(ct,ze?Ze.to:Ze.from,ze?"before":"after"),"line",st,ht),Pt,Dt,!0)},0,ft.length-1),Rt=ft[Gt];if(Gt>0){var Jt=Rt.level!=1,Ce=Er(it,De(ct,Jt?Rt.from:Rt.to,Jt?"after":"before"),"line",st,ht);_t(Ce,Pt,Dt,!0)&&Ce.top>Dt&&(Rt=ft[Gt-1])}return Rt}function Aa(it,st,ct,ht,ft,Pt,Dt){var Gt=fi(it,st,ht,Dt),Rt=Gt.begin,Jt=Gt.end;/\s/.test(st.text.charAt(Jt-1))&&Jt--;for(var Ce=null,ee=null,Ze=0;Ze=Jt||ze.to<=Rt)){var kn=ze.level!=1,In=Qo(it,ht,kn?Math.min(Jt,ze.to)-1:Math.max(Rt,ze.from)).right,$n=In$n)&&(Ce=ze,ee=$n)}}return Ce||(Ce=ft[ft.length-1]),Ce.fromJt&&(Ce={from:Ce.from,to:Jt,level:Ce.level}),Ce}var Vs;function js(it){if(it.cachedTextHeight!=null)return it.cachedTextHeight;if(Vs==null){Vs=qt("pre",null,"CodeMirror-line-like");for(var st=0;st<49;++st)Vs.appendChild(document.createTextNode("x")),Vs.appendChild(qt("br"));Vs.appendChild(document.createTextNode("x"))}ne(it.measure,Vs);var ct=Vs.offsetHeight/50;return ct>3&&(it.cachedTextHeight=ct),$t(it.measure),ct||1}function Fl(it){if(it.cachedCharWidth!=null)return it.cachedCharWidth;var st=qt("span","xxxxxxxxxx"),ct=qt("pre",[st],"CodeMirror-line-like");ne(it.measure,ct);var ht=st.getBoundingClientRect(),ft=(ht.right-ht.left)/10;return ft>2&&(it.cachedCharWidth=ft),ft||10}function zu(it){for(var st=it.display,ct={},ht={},ft=st.gutters.clientLeft,Pt=st.gutters.firstChild,Dt=0;Pt;Pt=Pt.nextSibling,++Dt){var Gt=it.display.gutterSpecs[Dt].className;ct[Gt]=Pt.offsetLeft+Pt.clientLeft+ft,ht[Gt]=Pt.clientWidth}return{fixedPos:as(st),gutterTotalWidth:st.gutters.offsetWidth,gutterLeft:ct,gutterWidth:ht,wrapperWidth:st.wrapper.clientWidth}}function as(it){return it.scroller.getBoundingClientRect().left-it.sizer.getBoundingClientRect().left}function ls(it){var st=js(it.display),ct=it.options.lineWrapping,ht=ct&&Math.max(5,it.display.scroller.clientWidth/Fl(it.display)-3);return function(ft){if(un(it.doc,ft))return 0;var Pt=0;if(ft.widgets)for(var Dt=0;Dt0&&(Jt=Tn(it.doc,Rt.line).text).length==Rt.ch){var Ce=he(Jt,Jt.length,it.options.tabSize)-Jt.length;Rt=De(Rt.line,Math.max(0,Math.round((Pt-ga(it.display).left)/Fl(it.display))-Ce))}return Rt}function vl(it,st){if(st>=it.display.viewTo||(st-=it.display.viewFrom,st<0))return null;for(var ct=it.display.view,ht=0;htst)&&(ft.updateLineNumbers=st),it.curOp.viewChanged=!0,st>=ft.viewTo)on&&Ki(it.doc,st)ft.viewFrom?Rs(it):(ft.viewFrom+=ht,ft.viewTo+=ht);else if(st<=ft.viewFrom&&ct>=ft.viewTo)Rs(it);else if(st<=ft.viewFrom){var Pt=bt(it,ct,ct+ht,1);Pt?(ft.view=ft.view.slice(Pt.index),ft.viewFrom=Pt.lineN,ft.viewTo+=ht):Rs(it)}else if(ct>=ft.viewTo){var Dt=bt(it,st,st,-1);Dt?(ft.view=ft.view.slice(0,Dt.index),ft.viewTo=Dt.lineN):Rs(it)}else{var Gt=bt(it,st,st,-1),Rt=bt(it,ct,ct+ht,1);Gt&&Rt?(ft.view=ft.view.slice(0,Gt.index).concat(Sr(it,Gt.lineN,Rt.lineN)).concat(ft.view.slice(Rt.index)),ft.viewTo+=ht):Rs(it)}var Jt=ft.externalMeasured;Jt&&(ct=ft.lineN&&st=ht.viewTo)){var Pt=ht.view[vl(it,st)];if(Pt.node!=null){var Dt=Pt.changes||(Pt.changes=[]);Ae(Dt,ct)==-1&&Dt.push(ct)}}}function Rs(it){it.display.viewFrom=it.display.viewTo=it.doc.first,it.display.view=[],it.display.viewOffset=0}function bt(it,st,ct,ht){var ft=vl(it,st),Pt,Dt=it.display.view;if(!on||ct==it.doc.first+it.doc.size)return{index:ft,lineN:ct};for(var Gt=it.display.viewFrom,Rt=0;Rt0){if(ft==Dt.length-1)return null;Pt=Gt+Dt[ft].size-st,ft++}else Pt=Gt-st;st+=Pt,ct+=Pt}for(;Ki(it.doc,ct)!=ct;){if(ft==(ht<0?0:Dt.length-1))return null;ct+=ht*Dt[ft-(ht<0?1:0)].size,ft+=ht}return{index:ft,lineN:ct}}function Ot(it,st,ct){var ht=it.display,ft=ht.view;ft.length==0||st>=ht.viewTo||ct<=ht.viewFrom?(ht.view=Sr(it,st,ct),ht.viewFrom=st):(ht.viewFrom>st?ht.view=Sr(it,st,ht.viewFrom).concat(ht.view):ht.viewFromct&&(ht.view=ht.view.slice(0,vl(it,ct)))),ht.viewTo=ct}function Ht(it){for(var st=it.display.view,ct=0,ht=0;ht=it.display.viewTo||Gt.to().line0?st.blinker=setInterval(function(){it.hasFocus()||Mn(it),st.cursorDiv.style.visibility=(ct=!ct)?"":"hidden"},it.options.cursorBlinkRate):it.options.cursorBlinkRate<0&&(st.cursorDiv.style.visibility="hidden")}}function rn(it){it.state.focused||(it.display.input.focus(),an(it))}function jn(it){it.state.delayingBlurEvent=!0,setTimeout(function(){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1,Mn(it))},100)}function an(it,st){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1),it.options.readOnly!="nocursor"&&(it.state.focused||(yn(it,"focus",it,st),it.state.focused=!0,Re(it.display.wrapper,"CodeMirror-focused"),!it.curOp&&it.display.selForContextMenu!=it.doc.sel&&(it.display.input.reset(),ie&&setTimeout(function(){return it.display.input.reset(!0)},20)),it.display.input.receivedFocus()),Qe(it))}function Mn(it,st){it.state.delayingBlurEvent||(it.state.focused&&(yn(it,"blur",it,st),it.state.focused=!1,Kt(it.display.wrapper,"CodeMirror-focused")),clearInterval(it.display.blinker),setTimeout(function(){it.state.focused||(it.display.shift=!1)},150))}function nn(it){for(var st=it.display,ct=st.lineDiv.offsetTop,ht=0;ht.005||Ce<-.005)&&(ao(ft.line,Dt),_n(ft.line),ft.rest))for(var ee=0;eeit.display.sizerWidth){var Ze=Math.ceil(Gt/Fl(it.display));Ze>it.display.maxLineLength&&(it.display.maxLineLength=Ze,it.display.maxLine=ft.line,it.display.maxLineChanged=!0)}}}}function _n(it){if(it.widgets)for(var st=0;st=Dt&&(Pt=mn(st,No(Tn(st,Rt))-it.wrapper.clientHeight),Dt=Rt)}return{from:Pt,to:Math.max(Dt,Pt+1)}}function Ln(it,st){if(!Rn(it,"scrollCursorIntoView")){var ct=it.display,ht=ct.sizer.getBoundingClientRect(),ft=null;if(st.top+ht.top<0?ft=!0:st.bottom+ht.top>(window.innerHeight||document.documentElement.clientHeight)&&(ft=!1),ft!=null&&!Ue){var Pt=qt("div","\u200B",null,`position: absolute; - top: `+(st.top-ct.viewOffset-$i(it.display))+`px; + height: `+(xi-Zi)+"px"))}function ee(wi,Zi,xo){var xi=Tn(ft,wi),$o=xi.text.length,Ws,Va;function ea(Ia,pu){return Dr(it,De(wi,Ia),"div",xi,pu)}function iu(Ia,pu,yl){var Oa=Rh(it,xi,null,Ia),Ir=pu=="ltr"==(yl=="after")?"left":"right",la=yl=="after"?Oa.begin:Oa.end-(/\s/.test(xi.text.charAt(Oa.end-1))?2:1);return ea(la,Ir)[Ir]}var Ll=Zt(xi,ft.direction);return jt(Ll,Zi||0,xo==null?$o:xo,function(Ia,pu,yl,Oa){var Ir=yl=="ltr",la=ea(Ia,Ir?"left":"right"),nl=ea(pu-1,Ir?"right":"left"),Sl=Zi==null&&Ia==0,ch=xo==null&&pu==$o,na=Oa==0,Uu=!Ll||Oa==Ll.length-1;if(nl.top-la.top<=3){var ya=(Jt?Sl:ch)&&na,Yg=(Jt?ch:Sl)&&Uu,Nu=ya?Gt:(Ir?la:nl).left,mu=Yg?Rt:(Ir?nl:la).right;Ce(Nu,la.top,mu-Nu,la.bottom)}else{var ou,ys,il,Kh;Ir?(ou=Jt&&Sl&&na?Gt:la.left,ys=Jt?Rt:iu(Ia,yl,"before"),il=Jt?Gt:iu(pu,yl,"after"),Kh=Jt&&ch&&Uu?Rt:nl.right):(ou=Jt?iu(Ia,yl,"before"):Gt,ys=!Jt&&Sl&&na?Rt:la.right,il=!Jt&&ch&&Uu?Gt:nl.left,Kh=Jt?iu(pu,yl,"after"):Rt),Ce(ou,la.top,ys-ou,la.bottom),la.bottom0?st.blinker=setInterval(function(){it.hasFocus()||Mn(it),st.cursorDiv.style.visibility=(ct=!ct)?"":"hidden"},it.options.cursorBlinkRate):it.options.cursorBlinkRate<0&&(st.cursorDiv.style.visibility="hidden")}}function rn(it){it.state.focused||(it.display.input.focus(),an(it))}function jn(it){it.state.delayingBlurEvent=!0,setTimeout(function(){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1,Mn(it))},100)}function an(it,st){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1),it.options.readOnly!="nocursor"&&(it.state.focused||(yn(it,"focus",it,st),it.state.focused=!0,Re(it.display.wrapper,"CodeMirror-focused"),!it.curOp&&it.display.selForContextMenu!=it.doc.sel&&(it.display.input.reset(),ie&&setTimeout(function(){return it.display.input.reset(!0)},20)),it.display.input.receivedFocus()),Qe(it))}function Mn(it,st){it.state.delayingBlurEvent||(it.state.focused&&(yn(it,"blur",it,st),it.state.focused=!1,Kt(it.display.wrapper,"CodeMirror-focused")),clearInterval(it.display.blinker),setTimeout(function(){it.state.focused||(it.display.shift=!1)},150))}function nn(it){for(var st=it.display,ct=st.lineDiv.offsetTop,ht=0;ht.005||Ce<-.005)&&(ao(ft.line,Dt),_n(ft.line),ft.rest))for(var ee=0;eeit.display.sizerWidth){var Ze=Math.ceil(Gt/Fl(it.display));Ze>it.display.maxLineLength&&(it.display.maxLineLength=Ze,it.display.maxLine=ft.line,it.display.maxLineChanged=!0)}}}}function _n(it){if(it.widgets)for(var st=0;st=Dt&&(Pt=mn(st,No(Tn(st,Rt))-it.wrapper.clientHeight),Dt=Rt)}return{from:Pt,to:Math.max(Dt,Pt+1)}}function Ln(it,st){if(!Rn(it,"scrollCursorIntoView")){var ct=it.display,ht=ct.sizer.getBoundingClientRect(),ft=null;if(st.top+ht.top<0?ft=!0:st.bottom+ht.top>(window.innerHeight||document.documentElement.clientHeight)&&(ft=!1),ft!=null&&!Ue){var Pt=qt("div","\u200B",null,`position: absolute; + top: `+(st.top-ct.viewOffset-eo(it.display))+`px; height: `+(st.bottom-st.top+$r(it)+ct.barHeight)+`px; - left: `+st.left+"px; width: "+Math.max(2,st.right-st.left)+"px;");it.display.lineSpace.appendChild(Pt),Pt.scrollIntoView(ft),it.display.lineSpace.removeChild(Pt)}}}function Jn(it,st,ct,ht){ht==null&&(ht=0);var ft;!it.options.lineWrapping&&st==ct&&(st=st.ch?De(st.line,st.sticky=="before"?st.ch-1:st.ch,"after"):st,ct=st.sticky=="before"?De(st.line,st.ch+1,"before"):st);for(var Pt=0;Pt<5;Pt++){var Dt=!1,Gt=Er(it,st),Rt=!ct||ct==st?Gt:Er(it,ct);ft={left:Math.min(Gt.left,Rt.left),top:Math.min(Gt.top,Rt.top)-ht,right:Math.max(Gt.left,Rt.left),bottom:Math.max(Gt.bottom,Rt.bottom)+ht};var Jt=mi(it,ft),Ce=it.doc.scrollTop,ee=it.doc.scrollLeft;if(Jt.scrollTop!=null&&(zo(it,Jt.scrollTop),Math.abs(it.doc.scrollTop-Ce)>1&&(Dt=!0)),Jt.scrollLeft!=null&&(fr(it,Jt.scrollLeft),Math.abs(it.doc.scrollLeft-ee)>1&&(Dt=!0)),!Dt)break}return ft}function Ei(it,st){var ct=mi(it,st);ct.scrollTop!=null&&zo(it,ct.scrollTop),ct.scrollLeft!=null&&fr(it,ct.scrollLeft)}function mi(it,st){var ct=it.display,ht=js(it.display);st.top<0&&(st.top=0);var ft=it.curOp&&it.curOp.scrollTop!=null?it.curOp.scrollTop:ct.scroller.scrollTop,Pt=qe(it),Dt={};st.bottom-st.top>Pt&&(st.bottom=st.top+Pt);var Gt=it.doc.height+no(ct),Rt=st.topGt-ht;if(st.topft+Pt){var Ce=Math.min(st.top,(Jt?Gt:st.bottom)-Pt);Ce!=ft&&(Dt.scrollTop=Ce)}var ee=it.options.fixedGutter?0:ct.gutters.offsetWidth,Ze=it.curOp&&it.curOp.scrollLeft!=null?it.curOp.scrollLeft:ct.scroller.scrollLeft-ee,ze=Mo(it)-ct.gutters.offsetWidth,kn=st.right-st.left>ze;return kn&&(st.right=st.left+ze),st.left<10?Dt.scrollLeft=0:st.leftze+Ze-3&&(Dt.scrollLeft=st.right+(kn?0:10)-ze),Dt}function bi(it,st){st!=null&&(Co(it),it.curOp.scrollTop=(it.curOp.scrollTop==null?it.doc.scrollTop:it.curOp.scrollTop)+st)}function Ni(it){Co(it);var st=it.getCursor();it.curOp.scrollToPos={from:st,to:st,margin:it.options.cursorScrollMargin}}function ki(it,st,ct){(st!=null||ct!=null)&&Co(it),st!=null&&(it.curOp.scrollLeft=st),ct!=null&&(it.curOp.scrollTop=ct)}function Un(it,st){Co(it),it.curOp.scrollToPos=st}function Co(it){var st=it.curOp.scrollToPos;if(st){it.curOp.scrollToPos=null;var ct=Ph(it,st.from),ht=Ph(it,st.to);co(it,ct,ht,st.margin)}}function co(it,st,ct,ht){var ft=mi(it,{left:Math.min(st.left,ct.left),top:Math.min(st.top,ct.top)-ht,right:Math.max(st.right,ct.right),bottom:Math.max(st.bottom,ct.bottom)+ht});ki(it,ft.scrollLeft,ft.scrollTop)}function zo(it,st){Math.abs(it.doc.scrollTop-st)<2||(St||$a(it,{top:st}),cr(it,st,!0),St&&$a(it),qa(it,100))}function cr(it,st,ct){st=Math.max(0,Math.min(it.display.scroller.scrollHeight-it.display.scroller.clientHeight,st)),!(it.display.scroller.scrollTop==st&&!ct)&&(it.doc.scrollTop=st,it.display.scrollbars.setScrollTop(st),it.display.scroller.scrollTop!=st&&(it.display.scroller.scrollTop=st))}function fr(it,st,ct,ht){st=Math.max(0,Math.min(st,it.display.scroller.scrollWidth-it.display.scroller.clientWidth)),!((ct?st==it.doc.scrollLeft:Math.abs(it.doc.scrollLeft-st)<2)&&!ht)&&(it.doc.scrollLeft=st,Ch(it),it.display.scroller.scrollLeft!=st&&(it.display.scroller.scrollLeft=st),it.display.scrollbars.setScrollLeft(st))}function ar(it){var st=it.display,ct=st.gutters.offsetWidth,ht=Math.round(it.doc.height+no(it.display));return{clientHeight:st.scroller.clientHeight,viewHeight:st.wrapper.clientHeight,scrollWidth:st.scroller.scrollWidth,clientWidth:st.scroller.clientWidth,viewWidth:st.wrapper.clientWidth,barLeft:it.options.fixedGutter?ct:0,docHeight:ht,scrollHeight:ht+$r(it)+st.barHeight,nativeBarWidth:st.nativeBarWidth,gutterWidth:ct}}var ts=function(it,st,ct){this.cm=ct;var ht=this.vert=qt("div",[qt("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ft=this.horiz=qt("div",[qt("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ht.tabIndex=ft.tabIndex=-1,it(ht),it(ft),me(ht,"scroll",function(){ht.clientHeight&&st(ht.scrollTop,"vertical")}),me(ft,"scroll",function(){ft.clientWidth&&st(ft.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,fe&&je<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ts.prototype.update=function(it){var st=it.scrollWidth>it.clientWidth+1,ct=it.scrollHeight>it.clientHeight+1,ht=it.nativeBarWidth;if(ct){this.vert.style.display="block",this.vert.style.bottom=st?ht+"px":"0";var ft=it.viewHeight-(st?ht:0);this.vert.firstChild.style.height=Math.max(0,it.scrollHeight-it.clientHeight+ft)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(st){this.horiz.style.display="block",this.horiz.style.right=ct?ht+"px":"0",this.horiz.style.left=it.barLeft+"px";var Pt=it.viewWidth-it.barLeft-(ct?ht:0);this.horiz.firstChild.style.width=Math.max(0,it.scrollWidth-it.clientWidth+Pt)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&it.clientHeight>0&&(ht==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ct?ht:0,bottom:st?ht:0}},ts.prototype.setScrollLeft=function(it){this.horiz.scrollLeft!=it&&(this.horiz.scrollLeft=it),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ts.prototype.setScrollTop=function(it){this.vert.scrollTop!=it&&(this.vert.scrollTop=it),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ts.prototype.zeroWidthHack=function(){var it=dt&&!Ie?"12px":"18px";this.horiz.style.height=this.vert.style.width=it,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Qt,this.disableVert=new Qt},ts.prototype.enableZeroWidthBar=function(it,st,ct){it.style.pointerEvents="auto";function ht(){var ft=it.getBoundingClientRect(),Pt=ct=="vert"?document.elementFromPoint(ft.right-1,(ft.top+ft.bottom)/2):document.elementFromPoint((ft.right+ft.left)/2,ft.bottom-1);Pt!=it?it.style.pointerEvents="none":st.set(1e3,ht)}st.set(1e3,ht)},ts.prototype.clear=function(){var it=this.horiz.parentNode;it.removeChild(this.horiz),it.removeChild(this.vert)};var or=function(){};or.prototype.update=function(){return{bottom:0,right:0}},or.prototype.setScrollLeft=function(){},or.prototype.setScrollTop=function(){},or.prototype.clear=function(){};function Xo(it,st){st||(st=ar(it));var ct=it.display.barWidth,ht=it.display.barHeight;dr(it,st);for(var ft=0;ft<4&&ct!=it.display.barWidth||ht!=it.display.barHeight;ft++)ct!=it.display.barWidth&&it.options.lineWrapping&&nn(it),dr(it,ar(it)),ct=it.display.barWidth,ht=it.display.barHeight}function dr(it,st){var ct=it.display,ht=ct.scrollbars.update(st);ct.sizer.style.paddingRight=(ct.barWidth=ht.right)+"px",ct.sizer.style.paddingBottom=(ct.barHeight=ht.bottom)+"px",ct.heightForcer.style.borderBottom=ht.bottom+"px solid transparent",ht.right&&ht.bottom?(ct.scrollbarFiller.style.display="block",ct.scrollbarFiller.style.height=ht.bottom+"px",ct.scrollbarFiller.style.width=ht.right+"px"):ct.scrollbarFiller.style.display="",ht.bottom&&it.options.coverGutterNextToScrollbar&&it.options.fixedGutter?(ct.gutterFiller.style.display="block",ct.gutterFiller.style.height=ht.bottom+"px",ct.gutterFiller.style.width=st.gutterWidth+"px"):ct.gutterFiller.style.display=""}var zr={native:ts,null:or};function es(it){it.display.scrollbars&&(it.display.scrollbars.clear(),it.display.scrollbars.addClass&&Kt(it.display.wrapper,it.display.scrollbars.addClass)),it.display.scrollbars=new zr[it.options.scrollbarStyle](function(st){it.display.wrapper.insertBefore(st,it.display.scrollbarFiller),me(st,"mousedown",function(){it.state.focused&&setTimeout(function(){return it.display.input.focus()},0)}),st.setAttribute("cm-not-content","true")},function(st,ct){ct=="horizontal"?fr(it,st):zo(it,st)},it),it.display.scrollbars.addClass&&Re(it.display.wrapper,it.display.scrollbars.addClass)}var Cr=0;function Gr(it){it.curOp={cm:it,viewChanged:!1,startHeight:it.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Cr},eh(it.curOp)}function Ns(it){var st=it.curOp;st&&ju(st,function(ct){for(var ht=0;ht=ct.viewTo)||ct.maxLineChanged&&st.options.lineWrapping,it.update=it.mustUpdate&&new Cs(st,it.mustUpdate&&{top:it.scrollTop,ensure:it.scrollToPos},it.forceUpdate)}function $s(it){it.updatedDisplay=it.mustUpdate&&bs(it.cm,it.update)}function ba(it){var st=it.cm,ct=st.display;it.updatedDisplay&&nn(st),it.barMeasure=ar(st),ct.maxLineChanged&&!st.options.lineWrapping&&(it.adjustWidthTo=_i(st,ct.maxLine,ct.maxLine.text.length).left+3,st.display.sizerWidth=it.adjustWidthTo,it.barMeasure.scrollWidth=Math.max(ct.scroller.clientWidth,ct.sizer.offsetLeft+it.adjustWidthTo+$r(st)+st.display.barWidth),it.maxScrollLeft=Math.max(0,ct.sizer.offsetLeft+it.adjustWidthTo-Mo(st))),(it.updatedDisplay||it.selectionChanged)&&(it.preparedSelection=ct.input.prepareSelection())}function bo(it){var st=it.cm;it.adjustWidthTo!=null&&(st.display.sizer.style.minWidth=it.adjustWidthTo+"px",it.maxScrollLeft=it.display.viewTo)){var ct=+new Date+it.options.workTime,ht=ko(it,st.highlightFrontier),ft=[];st.iter(ht.line,Math.min(st.first+st.size,it.display.viewTo+500),function(Pt){if(ht.line>=it.display.viewFrom){var Dt=Pt.styles,Gt=Pt.text.length>it.options.maxHighlightLength?Wn(st.mode,ht.state):null,Rt=vr(it,Pt,ht,!0);Gt&&(ht.state=Gt),Pt.styles=Rt.styles;var Jt=Pt.styleClasses,Ce=Rt.classes;Ce?Pt.styleClasses=Ce:Jt&&(Pt.styleClasses=null);for(var ee=!Dt||Dt.length!=Pt.styles.length||Jt!=Ce&&(!Jt||!Ce||Jt.bgClass!=Ce.bgClass||Jt.textClass!=Ce.textClass),Ze=0;!ee&&Zect)return qa(it,it.options.workDelay),!0}),st.highlightFrontier=ht.line,st.modeFrontier=Math.max(st.modeFrontier,ht.line),ft.length&&Po(it,function(){for(var Pt=0;Pt=ct.viewFrom&&st.visible.to<=ct.viewTo&&(ct.updateLineNumbers==null||ct.updateLineNumbers>=ct.viewTo)&&ct.renderedView==ct.view&&Ht(it)==0)return!1;Ms(it)&&(Rs(it),st.dims=zu(it));var ft=ht.first+ht.size,Pt=Math.max(st.visible.from-it.options.viewportMargin,ht.first),Dt=Math.min(ft,st.visible.to+it.options.viewportMargin);ct.viewFromDt&&ct.viewTo-Dt<20&&(Dt=Math.min(ft,ct.viewTo)),on&&(Pt=Ki(it.doc,Pt),Dt=Mi(it.doc,Dt));var Gt=Pt!=ct.viewFrom||Dt!=ct.viewTo||ct.lastWrapHeight!=st.wrapperHeight||ct.lastWrapWidth!=st.wrapperWidth;Ot(it,Pt,Dt),ct.viewOffset=No(Tn(it.doc,ct.viewFrom)),it.display.mover.style.top=ct.viewOffset+"px";var Rt=Ht(it);if(!Gt&&Rt==0&&!st.force&&ct.renderedView==ct.view&&(ct.updateLineNumbers==null||ct.updateLineNumbers>=ct.viewTo))return!1;var Jt=Ta(it);return Rt>4&&(ct.lineDiv.style.display="none"),Xl(it,ct.updateLineNumbers,st.dims),Rt>4&&(ct.lineDiv.style.display=""),ct.renderedView=ct.view,ns(Jt),$t(ct.cursorDiv),$t(ct.selectionDiv),ct.gutters.style.height=ct.sizer.style.minHeight=0,Gt&&(ct.lastWrapHeight=st.wrapperHeight,ct.lastWrapWidth=st.wrapperWidth,qa(it,400)),ct.updateLineNumbers=null,!0}function Eo(it,st){for(var ct=st.viewport,ht=!0;;ht=!1){if(!ht||!it.options.lineWrapping||st.oldDisplayWidth==Mo(it)){if(ct&&ct.top!=null&&(ct={top:Math.min(it.doc.height+no(it.display)-qe(it),ct.top)}),st.visible=Ve(it.display,it.doc,ct),st.visible.from>=it.display.viewFrom&&st.visible.to<=it.display.viewTo)break}else ht&&(st.visible=Ve(it.display,it.doc,ct));if(!bs(it,st))break;nn(it);var ft=ar(it);le(it),Xo(it,ft),Bl(it,ft),st.force=!1}st.signal(it,"update",it),(it.display.viewFrom!=it.display.reportedViewFrom||it.display.viewTo!=it.display.reportedViewTo)&&(st.signal(it,"viewportChange",it,it.display.viewFrom,it.display.viewTo),it.display.reportedViewFrom=it.display.viewFrom,it.display.reportedViewTo=it.display.viewTo)}function $a(it,st){var ct=new Cs(it,st);if(bs(it,ct)){nn(it),Eo(it,ct);var ht=ar(it);le(it),Xo(it,ht),Bl(it,ht),ct.finish()}}function Xl(it,st,ct){var ht=it.display,ft=it.options.lineNumbers,Pt=ht.lineDiv,Dt=Pt.firstChild;function Gt(kn){var In=kn.nextSibling;return ie&&dt&&it.display.currentWheelTarget==kn?kn.style.display="none":kn.parentNode.removeChild(kn),In}for(var Rt=ht.view,Jt=ht.viewFrom,Ce=0;Ce-1&&(ze=!1),Oh(it,ee,Jt,ct)),ze&&($t(ee.lineNumber),ee.lineNumber.appendChild(document.createTextNode(eo(it.options,Jt)))),Dt=ee.node.nextSibling}Jt+=ee.size}for(;Dt;)Dt=Gt(Dt)}function pa(it){var st=it.gutters.offsetWidth;it.sizer.style.marginLeft=st+"px"}function Bl(it,st){it.display.sizer.style.minHeight=st.docHeight+"px",it.display.heightForcer.style.top=st.docHeight+"px",it.display.gutters.style.height=st.docHeight+it.display.barHeight+$r(it)+"px"}function Ch(it){var st=it.display,ct=st.view;if(!(!st.alignWidgets&&(!st.gutters.firstChild||!it.options.fixedGutter))){for(var ht=as(st)-st.scroller.scrollLeft+it.doc.scrollLeft,ft=st.gutters.offsetWidth,Pt=ht+"px",Dt=0;DtDt.clientWidth,Rt=Dt.scrollHeight>Dt.clientHeight;if(ht&&Gt||ft&&Rt){if(ft&&dt&&ie){t:for(var Jt=st.target,Ce=Pt.view;Jt!=Dt;Jt=Jt.parentNode)for(var ee=0;ee=0&&dn(it,ht.to())<=0)return ct}return-1};var _o=function(it,st){this.anchor=it,this.head=st};_o.prototype.from=function(){return Ii(this.anchor,this.head)},_o.prototype.to=function(){return Vo(this.anchor,this.head)},_o.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ra(it,st,ct){var ht=it&&it.options.selectionsMayTouch,ft=st[ct];st.sort(function(Ze,ze){return dn(Ze.from(),ze.from())}),ct=Ae(st,ft);for(var Pt=1;Pt0:Rt>=0){var Jt=Ii(Gt.from(),Dt.from()),Ce=Vo(Gt.to(),Dt.to()),ee=Gt.empty()?Dt.from()==Dt.head:Gt.from()==Gt.head;Pt<=ct&&--ct,st.splice(--Pt,2,new _o(ee?Ce:Jt,ee?Jt:Ce))}}return new wa(st,ct)}function Ha(it,st){return new wa([new _o(it,st||it)],0)}function Ds(it){return it.text?De(it.from.line+it.text.length-1,re(it.text).length+(it.text.length==1?it.from.ch:0)):it.to}function Pa(it,st){if(dn(it,st.from)<0)return it;if(dn(it,st.to)<=0)return Ds(st);var ct=it.line+st.text.length-(st.to.line-st.from.line)-1,ht=it.ch;return it.line==st.to.line&&(ht+=Ds(st).ch-st.to.ch),De(ct,ht)}function hu(it,st){for(var ct=[],ht=0;ht1&&it.remove(Gt.line+1,kn-1),it.insert(Gt.line+1,ci)}gi(it,"change",it,st)}function Ca(it,st,ct){function ht(ft,Pt,Dt){if(ft.linked)for(var Gt=0;Gt1&&!it.done[it.done.length-2].ranges)return it.done.pop(),re(it.done)}function Fs(it,st,ct,ht){var ft=it.history;ft.undone.length=0;var Pt=+new Date,Dt,Gt;if((ft.lastOp==ht||ft.lastOrigin==st.origin&&st.origin&&(st.origin.charAt(0)=="+"&&ft.lastModTime>Pt-(it.cm?it.cm.options.historyEventDelay:500)||st.origin.charAt(0)=="*"))&&(Dt=qo(ft,ft.lastOp==ht)))Gt=re(Dt.changes),dn(st.from,st.to)==0&&dn(st.from,Gt.to)==0?Gt.to=Ds(st):Dt.changes.push(To(it,st));else{var Rt=re(ft.done);for((!Rt||!Rt.ranges)&&ih(it.sel,ft.done),Dt={changes:[To(it,st)],generation:ft.generation},ft.done.push(Dt);ft.done.length>ft.undoDepth;)ft.done.shift(),ft.done[0].ranges||ft.done.shift()}ft.done.push(ct),ft.generation=++ft.maxGeneration,ft.lastModTime=ft.lastSelTime=Pt,ft.lastOp=ft.lastSelOp=ht,ft.lastOrigin=ft.lastSelOrigin=st.origin,Gt||yn(it,"historyAdded")}function _l(it,st,ct,ht){var ft=st.charAt(0);return ft=="*"||ft=="+"&&ct.ranges.length==ht.ranges.length&&ct.somethingSelected()==ht.somethingSelected()&&new Date-it.history.lastSelTime<=(it.cm?it.cm.options.historyEventDelay:500)}function zh(it,st,ct,ht){var ft=it.history,Pt=ht&&ht.origin;ct==ft.lastSelOp||Pt&&ft.lastSelOrigin==Pt&&(ft.lastModTime==ft.lastSelTime&&ft.lastOrigin==Pt||_l(it,Pt,re(ft.done),st))?ft.done[ft.done.length-1]=st:ih(st,ft.done),ft.lastSelTime=+new Date,ft.lastSelOrigin=Pt,ft.lastSelOp=ct,ht&&ht.clearRedo!==!1&&Oi(ft.undone)}function ih(it,st){var ct=re(st);ct&&ct.ranges&&ct.equals(it)||st.push(it)}function Gu(it,st,ct,ht){var ft=st["spans_"+it.id],Pt=0;it.iter(Math.max(it.first,ct),Math.min(it.first+it.size,ht),function(Dt){Dt.markedSpans&&((ft||(ft=st["spans_"+it.id]={}))[Pt]=Dt.markedSpans),++Pt})}function Ma(it){if(!it)return null;for(var st,ct=0;ct-1&&(re(Gt)[ee]=Jt[ee],delete Jt[ee])}}return ht}function Ol(it,st,ct,ht){if(ht){var ft=it.anchor;if(ct){var Pt=dn(st,ft)<0;Pt!=dn(ct,ft)<0?(ft=st,st=ct):Pt!=dn(st,ct)<0&&(st=ct)}return new _o(ft,st)}else return new _o(ct||st,st)}function hd(it,st,ct,ht,ft){ft==null&&(ft=it.cm&&(it.cm.display.shift||it.extend)),Da(it,new wa([Ol(it.sel.primary(),st,ct,ft)],0),ht)}function Wc(it,st,ct){for(var ht=[],ft=it.cm&&(it.cm.display.shift||it.extend),Pt=0;Pt=st.ch:Gt.to>st.ch))){if(ft&&(yn(Rt,"beforeCursorEnter"),Rt.explicitlyCleared))if(Pt.markedSpans){--Dt;continue}else break;if(!Rt.atomic)continue;if(ct){var ee=Rt.find(ht<0?1:-1),Ze=void 0;if((ht<0?Ce:Jt)&&(ee=Yc(it,ee,-ht,ee&&ee.line==st.line?Pt:null)),ee&&ee.line==st.line&&(Ze=dn(ee,ct))&&(ht<0?Ze<0:Ze>0))return va(it,ee,st,ht,ft)}var ze=Rt.find(ht<0?-1:1);return(ht<0?Jt:Ce)&&(ze=Yc(it,ze,ht,ze.line==st.line?Pt:null)),ze?va(it,ze,st,ht,ft):null}}return st}function uc(it,st,ct,ht,ft){var Pt=ht||1,Dt=va(it,st,ct,Pt,ft)||!ft&&va(it,st,ct,Pt,!0)||va(it,st,ct,-Pt,ft)||!ft&&va(it,st,ct,-Pt,!0);return Dt||(it.cantEdit=!0,De(it.first,0))}function Yc(it,st,ct,ht){return ct<0&&st.ch==0?st.line>it.first?Pi(it,De(st.line-1)):null:ct>0&&st.ch==(ht||Tn(it,st.line)).text.length?st.line=0;--ft)cd(it,{from:ht[ft].from,to:ht[ft].to,text:ft?[""]:st.text,origin:st.origin});else cd(it,st)}}function cd(it,st){if(!(st.text.length==1&&st.text[0]==""&&dn(st.from,st.to)==0)){var ct=hu(it,st);Fs(it,st,ct,it.cm?it.cm.curOp.id:NaN),Mh(it,st,ct,Pr(it,st));var ht=[];Ca(it,function(ft,Pt){!Pt&&Ae(ht,ft.history)==-1&&(Fd(ft.history,st),ht.push(ft.history)),Mh(ft,st,null,Pr(ft,st))})}}function hc(it,st,ct){var ht=it.cm&&it.cm.state.suppressEdits;if(!(ht&&!ct)){for(var ft=it.history,Pt,Dt=it.sel,Gt=st=="undo"?ft.done:ft.undone,Rt=st=="undo"?ft.undone:ft.done,Jt=0;Jt=0;--ze){var kn=Ze(ze);if(kn)return kn.v}}}}function Uc(it,st){if(st!=0&&(it.first+=st,it.sel=new wa(Dn(it.sel.ranges,function(ft){return new _o(De(ft.anchor.line+st,ft.anchor.ch),De(ft.head.line+st,ft.head.ch))}),it.sel.primIndex),it.cm)){fs(it.cm,it.first,it.first-st,st);for(var ct=it.cm.display,ht=ct.viewFrom;htit.lastLine())){if(st.from.linePt&&(st={from:st.from,to:De(Pt,Tn(it,Pt).text.length),text:[st.text[0]],origin:st.origin}),st.removed=Si(it,st.from,st.to),ct||(ct=hu(it,st)),it.cm?gf(it.cm,st,ht):Il(it,st,ht),sh(it,ct,Se),it.cantEdit&&uc(it,De(it.firstLine(),0))&&(it.cantEdit=!1)}}function gf(it,st,ct){var ht=it.doc,ft=it.display,Pt=st.from,Dt=st.to,Gt=!1,Rt=Pt.line;it.options.lineWrapping||(Rt=oe(Tr(Tn(ht,Pt.line))),ht.iter(Rt,Dt.line+1,function(ze){if(ze==ft.maxLine)return Gt=!0,!0})),ht.sel.contains(st.from,st.to)>-1&&ji(it),Il(ht,st,ct,ls(it)),it.options.lineWrapping||(ht.iter(Rt,Pt.line+st.text.length,function(ze){var kn=Rr(ze);kn>ft.maxLineLength&&(ft.maxLine=ze,ft.maxLineLength=kn,ft.maxLineChanged=!0,Gt=!1)}),Gt&&(it.curOp.updateMaxLine=!0)),Do(ht,Pt.line),qa(it,400);var Jt=st.text.length-(Dt.line-Pt.line)-1;st.full?fs(it):Pt.line==Dt.line&&st.text.length==1&&!Lu(it.doc,st)?Lo(it,Pt.line,"text"):fs(it,Pt.line,Dt.line+1,Jt);var Ce=Qi(it,"changes"),ee=Qi(it,"change");if(ee||Ce){var Ze={from:Pt,to:Dt,text:st.text,removed:st.removed,origin:st.origin};ee&&gi(it,"change",it,Ze),Ce&&(it.curOp.changeObjs||(it.curOp.changeObjs=[])).push(Ze)}it.display.selForContextMenu=null}function Gh(it,st,ct,ht,ft){var Pt;ht||(ht=ct),dn(ht,ct)<0&&(Pt=[ht,ct],ct=Pt[0],ht=Pt[1]),typeof st=="string"&&(st=it.splitLines(st)),Hu(it,{from:ct,to:ht,text:st,origin:ft})}function fu(it,st,ct,ht){ct1||!(this.children[0]instanceof gd))){var Gt=[];this.collapse(Gt),this.children=[new gd(Gt)],this.children[0].parent=this}},collapse:function(it){for(var st=0;st50){for(var Dt=ft.lines.length%25+25,Gt=Dt;Gt10);it.parent.maybeSpill()}},iterN:function(it,st,ct){for(var ht=0;htit.display.maxLineLength&&(it.display.maxLine=Jt,it.display.maxLineLength=Ce,it.display.maxLineChanged=!0)}ht!=null&&it&&this.collapsed&&fs(it,ht,ft+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,it&&uo(it.doc)),it&&gi(it,"markerCleared",it,this,ht,ft),st&&Ns(it),this.parent&&this.parent.clear()}},ce.prototype.find=function(it,st){it==null&&this.type=="bookmark"&&(it=1);for(var ct,ht,ft=0;ft0||Dt==0&&Pt.clearWhenEmpty!==!1)return Pt;if(Pt.replacedWith&&(Pt.collapsed=!0,Pt.widgetNode=ue("span",[Pt.replacedWith],"CodeMirror-widget"),ht.handleMouseEvents||Pt.widgetNode.setAttribute("cm-ignore-events","true"),ht.insertLeft&&(Pt.widgetNode.insertLeft=!0)),Pt.collapsed){if(Ih(it,st.line,st,ct,Pt)||st.line!=ct.line&&Ih(it,ct.line,st,ct,Pt))throw new Error("Inserting collapsed marker partially overlapping an existing one");en()}Pt.addToHistory&&Fs(it,{from:st,to:ct,origin:"markText"},it.sel,NaN);var Gt=st.line,Rt=it.cm,Jt;if(it.iter(Gt,ct.line+1,function(ee){Rt&&Pt.collapsed&&!Rt.options.lineWrapping&&Tr(ee)==Rt.display.maxLine&&(Jt=!0),Pt.collapsed&&Gt!=st.line&&ao(ee,0),Sa(ee,new Ko(Pt,Gt==st.line?st.ch:null,Gt==ct.line?ct.ch:null)),++Gt}),Pt.collapsed&&it.iter(st.line,ct.line+1,function(ee){un(it,ee)&&ao(ee,0)}),Pt.clearOnEnter&&me(Pt,"beforeCursorEnter",function(){return Pt.clear()}),Pt.readOnly&&(Zo(),(it.history.done.length||it.history.undone.length)&&it.clearHistory()),Pt.collapsed&&(Pt.id=++kg,Pt.atomic=!0),Rt){if(Jt&&(Rt.curOp.updateMaxLine=!0),Pt.collapsed)fs(Rt,st.line,ct.line+1);else if(Pt.className||Pt.startStyle||Pt.endStyle||Pt.css||Pt.attributes||Pt.title)for(var Ce=st.line;Ce<=ct.line;Ce++)Lo(Rt,Ce,"text");Pt.atomic&&uo(Rt.doc),gi(Rt,"markerAdded",Rt,Pt)}return Pt}var ah=function(it,st){this.markers=it,this.primary=st;for(var ct=0;ct=0;Rt--)Hu(this,ht[Rt]);Gt?dd(this,Gt):this.cm&&Ni(this.cm)}),undo:Kr(function(){hc(this,"undo")}),redo:Kr(function(){hc(this,"redo")}),undoSelection:Kr(function(){hc(this,"undo",!0)}),redoSelection:Kr(function(){hc(this,"redo",!0)}),setExtending:function(it){this.extend=it},getExtending:function(){return this.extend},historySize:function(){for(var it=this.history,st=0,ct=0,ht=0;ht=it.ch)&&st.push(ft.marker.parent||ft.marker)}return st},findMarks:function(it,st,ct){it=Pi(this,it),st=Pi(this,st);var ht=[],ft=it.line;return this.iter(it.line,st.line+1,function(Pt){var Dt=Pt.markedSpans;if(Dt)for(var Gt=0;Gt=Rt.to||Rt.from==null&&ft!=it.line||Rt.from!=null&&ft==st.line&&Rt.from>=st.ch)&&(!ct||ct(Rt.marker))&&ht.push(Rt.marker.parent||Rt.marker)}++ft}),ht},getAllMarks:function(){var it=[];return this.iter(function(st){var ct=st.markedSpans;if(ct)for(var ht=0;htit)return st=it,!0;it-=Pt,++ct}),Pi(this,De(ct,st))},indexFromPos:function(it){it=Pi(this,it);var st=it.ch;if(it.linest&&(st=it.from),it.to!=null&&it.to-1){st.state.draggingText(it),setTimeout(function(){return st.display.input.focus()},20);return}try{var Ce=it.dataTransfer.getData("Text");if(Ce){var ee;if(st.state.draggingText&&!st.state.draggingText.copy&&(ee=st.listSelections()),sh(st.doc,Ha(ct,ct)),ee)for(var Ze=0;Ze=0;Gt--)Gh(it.doc,"",ht[Gt].from,ht[Gt].to,"+delete");Ni(it)})}function qc(it,st,ct){var ht=Bn(it.text,st+ct,ct);return ht<0||ht>it.text.length?null:ht}function aa(it,st,ct){var ht=qc(it,st.ch,ct);return ht==null?null:new De(st.line,ht,ct<0?"after":"before")}function Id(it,st,ct,ht,ft){if(it){st.doc.direction=="rtl"&&(ft=-ft);var Pt=Zt(ct,st.doc.direction);if(Pt){var Dt=ft<0?re(Pt):Pt[0],Gt=ft<0==(Dt.level==1),Rt=Gt?"after":"before",Jt;if(Dt.level>0||st.doc.direction=="rtl"){var Ce=sr(st,ct);Jt=ft<0?ct.text.length-1:0;var ee=Qo(st,Ce,Jt).top;Jt=zn(function(Ze){return Qo(st,Ce,Ze).top==ee},ft<0==(Dt.level==1)?Dt.from:Dt.to-1,Jt),Rt=="before"&&(Jt=qc(ct,Jt,1))}else Jt=ft<0?Dt.to:Dt.from;return new De(ht,Jt,Rt)}}return new De(ht,ft<0?ct.text.length:0,ft<0?"before":"after")}function $c(it,st,ct,ht){var ft=Zt(st,it.doc.direction);if(!ft)return aa(st,ct,ht);ct.ch>=st.text.length?(ct.ch=st.text.length,ct.sticky="before"):ct.ch<=0&&(ct.ch=0,ct.sticky="after");var Pt=xt(ft,ct.ch,ct.sticky),Dt=ft[Pt];if(it.doc.direction=="ltr"&&Dt.level%2==0&&(ht>0?Dt.to>ct.ch:Dt.from=Dt.from&&Ze>=Ce.begin)){var ze=ee?"before":"after";return new De(ct.line,Ze,ze)}}var kn=function(ci,Gi,wi){for(var Zi=function(Ws,Va){return Va?new De(ct.line,Gt(Ws,1),"before"):new De(ct.line,Ws,"after")};ci>=0&&ci0==(xo.level!=1),$o=xi?wi.begin:Gt(wi.end,-1);if(xo.from<=$o&&$o0?Ce.end:Gt(Ce.begin,-1);return $n!=null&&!(ht>0&&$n==st.text.length)&&(In=kn(ht>0?0:ft.length-1,ht,Jt($n)),In)?In:null}var Lh={selectAll:sa,singleSelection:function(it){return it.setSelection(it.getCursor("anchor"),it.getCursor("head"),Se)},killLine:function(it){return Ml(it,function(st){if(st.empty()){var ct=Tn(it.doc,st.head.line).text.length;return st.head.ch==ct&&st.head.line0)ft=new De(ft.line,ft.ch+1),it.replaceRange(Pt.charAt(ft.ch-1)+Pt.charAt(ft.ch-2),De(ft.line,ft.ch-2),ft,"+transpose");else if(ft.line>it.doc.first){var Dt=Tn(it.doc,ft.line-1).text;Dt&&(ft=new De(ft.line,1),it.replaceRange(Pt.charAt(0)+it.doc.lineSeparator()+Dt.charAt(Dt.length-1),De(ft.line-1,Dt.length-1),ft,"+transpose"))}}ct.push(new _o(ft,ft))}it.setSelections(ct)})},newlineAndIndent:function(it){return Po(it,function(){for(var st=it.listSelections(),ct=st.length-1;ct>=0;ct--)it.replaceRange(it.doc.lineSeparator(),st[ct].anchor,st[ct].head,"+input");st=it.listSelections();for(var ht=0;htit&&dn(st,this.pos)==0&&ct==this.button};var Rd,Zh;function Og(it,st){var ct=+new Date;return Zh&&Zh.compare(ct,it,st)?(Rd=Zh=null,"triple"):Rd&&Rd.compare(ct,it,st)?(Zh=new Ig(ct,it,st),Rd=null,"double"):(Rd=new Ig(ct,it,st),Zh=null,"single")}function Yu(it){var st=this,ct=st.display;if(!(Rn(st,it)||ct.activeTouch&&ct.input.supportsTouch())){if(ct.input.ensurePolled(),ct.shift=it.shiftKey,yi(ct,it)){ie||(ct.scroller.draggable=!1,setTimeout(function(){return ct.scroller.draggable=!0},100));return}if(!So(st,it)){var ht=qs(st,it),ft=jr(it),Pt=ht?Og(ht,ft):"single";window.focus(),ft==1&&st.state.selectingText&&st.state.selectingText(it),!(ht&&jg(st,ft,ht,Pt,it))&&(ft==1?ht?og(st,ht,Pt,it):Or(it)==ct.scroller&&vo(it):ft==2?(ht&&hd(st.doc,ht),setTimeout(function(){return ct.input.focus()},20)):ft==3&&(At?st.display.input.onContextMenu(it):jn(st)))}}}function jg(it,st,ct,ht,ft){var Pt="Click";return ht=="double"?Pt="Double"+Pt:ht=="triple"&&(Pt="Triple"+Pt),Pt=(st==1?"Left":st==2?"Middle":"Right")+Pt,Eh(it,_c(Pt,ft),ft,function(Dt){if(typeof Dt=="string"&&(Dt=Lh[Dt]),!Dt)return!1;var Gt=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),Gt=Dt(it,ct)!=An}finally{it.state.suppressEdits=!1}return Gt})}function mc(it,st,ct){var ht=it.getOption("configureMouse"),ft=ht?ht(it,st,ct):{};if(ft.unit==null){var Pt=lt?ct.shiftKey&&ct.metaKey:ct.altKey;ft.unit=Pt?"rectangle":st=="single"?"char":st=="double"?"word":"line"}return(ft.extend==null||it.doc.extend)&&(ft.extend=it.doc.extend||ct.shiftKey),ft.addNew==null&&(ft.addNew=dt?ct.metaKey:ct.ctrlKey),ft.moveOnDrag==null&&(ft.moveOnDrag=!(dt?ct.altKey:ct.ctrlKey)),ft}function og(it,st,ct,ht){fe?setTimeout(bn(rn,it),0):it.curOp.focus=xe();var ft=mc(it,ct,ht),Pt=it.doc.sel,Dt;it.options.dragDrop&&gr&&!it.isReadOnly()&&ct=="single"&&(Dt=Pt.contains(st))>-1&&(dn((Dt=Pt.ranges[Dt]).from(),st)<0||st.xRel>0)&&(dn(Dt.to(),st)>0||st.xRel<0)?vc(it,ht,st,ft):ap(it,ht,st,ft)}function vc(it,st,ct,ht){var ft=it.display,Pt=!1,Dt=kr(it,function(Jt){ie&&(ft.scroller.draggable=!1),it.state.draggingText=!1,xn(ft.wrapper.ownerDocument,"mouseup",Dt),xn(ft.wrapper.ownerDocument,"mousemove",Gt),xn(ft.scroller,"dragstart",Rt),xn(ft.scroller,"drop",Dt),Pt||(vo(Jt),ht.addNew||hd(it.doc,ct,null,null,ht.extend),ie&&!Pe||fe&&je==9?setTimeout(function(){ft.wrapper.ownerDocument.body.focus({preventScroll:!0}),ft.input.focus()},20):ft.input.focus())}),Gt=function(Jt){Pt=Pt||Math.abs(st.clientX-Jt.clientX)+Math.abs(st.clientY-Jt.clientY)>=10},Rt=function(){return Pt=!0};ie&&(ft.scroller.draggable=!0),it.state.draggingText=Dt,Dt.copy=!ht.moveOnDrag,ft.scroller.dragDrop&&ft.scroller.dragDrop(),me(ft.wrapper.ownerDocument,"mouseup",Dt),me(ft.wrapper.ownerDocument,"mousemove",Gt),me(ft.scroller,"dragstart",Rt),me(ft.scroller,"drop",Dt),jn(it),setTimeout(function(){return ft.input.focus()},20)}function Rg(it,st,ct){if(ct=="char")return new _o(st,st);if(ct=="word")return it.findWordAt(st);if(ct=="line")return new _o(De(st.line,0),Pi(it.doc,De(st.line+1,0)));var ht=ct(it,st);return new _o(ht.from,ht.to)}function ap(it,st,ct,ht){var ft=it.display,Pt=it.doc;vo(st);var Dt,Gt,Rt=Pt.sel,Jt=Rt.ranges;if(ht.addNew&&!ht.extend?(Gt=Pt.sel.contains(ct),Gt>-1?Dt=Jt[Gt]:Dt=new _o(ct,ct)):(Dt=Pt.sel.primary(),Gt=Pt.sel.primIndex),ht.unit=="rectangle")ht.addNew||(Dt=new _o(ct,ct)),ct=qs(it,st,!0,!0),Gt=-1;else{var Ce=Rg(it,ct,ht.unit);ht.extend?Dt=Ol(Dt,Ce.anchor,Ce.head,ht.extend):Dt=Ce}ht.addNew?Gt==-1?(Gt=Jt.length,Da(Pt,ra(it,Jt.concat([Dt]),Gt),{scroll:!1,origin:"*mouse"})):Jt.length>1&&Jt[Gt].empty()&&ht.unit=="char"&&!ht.extend?(Da(Pt,ra(it,Jt.slice(0,Gt).concat(Jt.slice(Gt+1)),0),{scroll:!1,origin:"*mouse"}),Rt=Pt.sel):oh(Pt,Gt,Dt,sn):(Gt=0,Da(Pt,new wa([Dt],0),sn),Rt=Pt.sel);var ee=ct;function Ze(wi){if(dn(ee,wi)!=0)if(ee=wi,ht.unit=="rectangle"){for(var Zi=[],xo=it.options.tabSize,xi=he(Tn(Pt,ct.line).text,ct.ch,xo),$o=he(Tn(Pt,wi.line).text,wi.ch,xo),Ws=Math.min(xi,$o),Va=Math.max(xi,$o),ea=Math.min(ct.line,wi.line),nu=Math.min(it.lastLine(),Math.max(ct.line,wi.line));ea<=nu;ea++){var Ll=Tn(Pt,ea).text,Ia=Xn(Ll,Ws,xo);Ws==Va?Zi.push(new _o(De(ea,Ia),De(ea,Ia))):Ll.length>Ia&&Zi.push(new _o(De(ea,Ia),De(ea,Xn(Ll,Va,xo))))}Zi.length||Zi.push(new _o(ct,ct)),Da(Pt,ra(it,Rt.ranges.slice(0,Gt).concat(Zi),Gt),{origin:"*mouse",scroll:!1}),it.scrollIntoView(wi)}else{var pu=Dt,yl=Rg(it,wi,ht.unit),Oa=pu.anchor,Ir;dn(yl.anchor,Oa)>0?(Ir=yl.head,Oa=Ii(pu.from(),yl.anchor)):(Ir=yl.anchor,Oa=Vo(pu.to(),yl.head));var la=Rt.ranges.slice(0);la[Gt]=Ar(it,new _o(Pi(Pt,Oa),Ir)),Da(Pt,ra(it,la,Gt),sn)}}var ze=ft.wrapper.getBoundingClientRect(),kn=0;function In(wi){var Zi=++kn,xo=qs(it,wi,!0,ht.unit=="rectangle");if(xo)if(dn(xo,ee)!=0){it.curOp.focus=xe(),Ze(xo);var xi=Ve(ft,Pt);(xo.line>=xi.to||xo.lineze.bottom?20:0;$o&&setTimeout(kr(it,function(){kn==Zi&&(ft.scroller.scrollTop+=$o,In(wi))}),50)}}function $n(wi){it.state.selectingText=!1,kn=1/0,wi&&(vo(wi),ft.input.focus()),xn(ft.wrapper.ownerDocument,"mousemove",ci),xn(ft.wrapper.ownerDocument,"mouseup",Gi),Pt.history.lastSelOrigin=null}var ci=kr(it,function(wi){wi.buttons===0||!jr(wi)?$n(wi):In(wi)}),Gi=kr(it,$n);it.state.selectingText=Gi,me(ft.wrapper.ownerDocument,"mousemove",ci),me(ft.wrapper.ownerDocument,"mouseup",Gi)}function Ar(it,st){var ct=st.anchor,ht=st.head,ft=Tn(it.doc,ct.line);if(dn(ct,ht)==0&&ct.sticky==ht.sticky)return st;var Pt=Zt(ft);if(!Pt)return st;var Dt=xt(Pt,ct.ch,ct.sticky),Gt=Pt[Dt];if(Gt.from!=ct.ch&&Gt.to!=ct.ch)return st;var Rt=Dt+(Gt.from==ct.ch==(Gt.level!=1)?0:1);if(Rt==0||Rt==Pt.length)return st;var Jt;if(ht.line!=ct.line)Jt=(ht.line-ct.line)*(it.doc.direction=="ltr"?1:-1)>0;else{var Ce=xt(Pt,ht.ch,ht.sticky),ee=Ce-Dt||(ht.ch-ct.ch)*(Gt.level==1?-1:1);Ce==Rt-1||Ce==Rt?Jt=ee<0:Jt=ee>0}var Ze=Pt[Rt+(Jt?-1:0)],ze=Jt==(Ze.level==1),kn=ze?Ze.from:Ze.to,In=ze?"after":"before";return ct.ch==kn&&ct.sticky==In?st:new _o(new De(ct.line,kn,In),ht)}function Xi(it,st,ct,ht){var ft,Pt;if(st.touches)ft=st.touches[0].clientX,Pt=st.touches[0].clientY;else try{ft=st.clientX,Pt=st.clientY}catch(Ze){return!1}if(ft>=Math.floor(it.display.gutters.getBoundingClientRect().right))return!1;ht&&vo(st);var Dt=it.display,Gt=Dt.lineDiv.getBoundingClientRect();if(Pt>Gt.bottom||!Qi(it,ct))return er(st);Pt-=Gt.top-Dt.viewOffset;for(var Rt=0;Rt=ft){var Ce=mn(it.doc,Pt),ee=it.display.gutterSpecs[Rt];return yn(it,ct,it,Ce,ee.className,st),er(st)}}}function So(it,st){return Xi(it,st,"gutterClick",!0)}function Mr(it,st){yi(it.display,st)||Ks(it,st)||Rn(it,st,"contextmenu")||At||it.display.input.onContextMenu(st)}function Ks(it,st){return Qi(it,"gutterContextMenu")?Xi(it,st,"gutterContextMenu",!1):!1}function kh(it){it.display.wrapper.className=it.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+it.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ka(it)}var el={toString:function(){return"CodeMirror.Init"}},hh={},ku={};function zd(it){var st=it.optionHandlers;function ct(ht,ft,Pt,Dt){it.defaults[ht]=ft,Pt&&(st[ht]=Dt?function(Gt,Rt,Jt){Jt!=el&&Pt(Gt,Rt,Jt)}:Pt)}it.defineOption=ct,it.Init=el,ct("value","",function(ht,ft){return ht.setValue(ft)},!0),ct("mode",null,function(ht,ft){ht.doc.modeOption=ft,yo(ht)},!0),ct("indentUnit",2,yo,!0),ct("indentWithTabs",!1),ct("smartIndent",!0),ct("tabSize",4,function(ht){Hr(ht),ka(ht),fs(ht)},!0),ct("lineSeparator",null,function(ht,ft){if(ht.doc.lineSep=ft,!!ft){var Pt=[],Dt=ht.doc.first;ht.doc.iter(function(Rt){for(var Jt=0;;){var Ce=Rt.text.indexOf(ft,Jt);if(Ce==-1)break;Jt=Ce+ft.length,Pt.push(De(Dt,Ce))}Dt++});for(var Gt=Pt.length-1;Gt>=0;Gt--)Gh(ht.doc,ft,Pt[Gt],De(Pt[Gt].line,Pt[Gt].ch+ft.length))}}),ct("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ht,ft,Pt){ht.state.specialChars=new RegExp(ft.source+(ft.test(" ")?"":"| "),"g"),Pt!=el&&ht.refresh()}),ct("specialCharPlaceholder",oa,function(ht){return ht.refresh()},!0),ct("electricChars",!0),ct("inputStyle",nt?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ct("spellcheck",!1,function(ht,ft){return ht.getInputField().spellcheck=ft},!0),ct("autocorrect",!1,function(ht,ft){return ht.getInputField().autocorrect=ft},!0),ct("autocapitalize",!1,function(ht,ft){return ht.getInputField().autocapitalize=ft},!0),ct("rtlMoveVisually",!pt),ct("wholeLineUpdateBefore",!0),ct("theme","default",function(ht){kh(ht),zs(ht)},!0),ct("keyMap","default",function(ht,ft,Pt){var Dt=Vh(ft),Gt=Pt!=el&&Vh(Pt);Gt&&Gt.detach&&Gt.detach(ht,Dt),Dt.attach&&Dt.attach(ht,Gt||null)}),ct("extraKeys",null),ct("configureMouse",null),ct("lineWrapping",!1,Au,!0),ct("gutters",[],function(ht,ft){ht.display.gutterSpecs=Fr(ft,ht.options.lineNumbers),zs(ht)},!0),ct("fixedGutter",!0,function(ht,ft){ht.display.gutters.style.left=ft?as(ht.display)+"px":"0",ht.refresh()},!0),ct("coverGutterNextToScrollbar",!1,function(ht){return Xo(ht)},!0),ct("scrollbarStyle","native",function(ht){es(ht),Xo(ht),ht.display.scrollbars.setScrollTop(ht.doc.scrollTop),ht.display.scrollbars.setScrollLeft(ht.doc.scrollLeft)},!0),ct("lineNumbers",!1,function(ht,ft){ht.display.gutterSpecs=Fr(ht.options.gutters,ft),zs(ht)},!0),ct("firstLineNumber",1,zs,!0),ct("lineNumberFormatter",function(ht){return ht},zs,!0),ct("showCursorWhenSelecting",!1,le,!0),ct("resetSelectionOnContextMenu",!0),ct("lineWiseCopyCut",!0),ct("pasteLinesPerSelection",!0),ct("selectionsMayTouch",!1),ct("readOnly",!1,function(ht,ft){ft=="nocursor"&&(Mn(ht),ht.display.input.blur()),ht.display.input.readOnlyChanged(ft)}),ct("screenReaderLabel",null,function(ht,ft){ft=ft===""?null:ft,ht.display.input.screenReaderLabelChanged(ft)}),ct("disableInput",!1,function(ht,ft){ft||ht.display.input.reset()},!0),ct("dragDrop",!0,dh),ct("allowDropFileTypes",null),ct("cursorBlinkRate",530),ct("cursorScrollMargin",0),ct("cursorHeight",1,le,!0),ct("singleCursorHeightPerLine",!0,le,!0),ct("workTime",100),ct("workDelay",100),ct("flattenSpans",!0,Hr,!0),ct("addModeClass",!1,Hr,!0),ct("pollInterval",100),ct("undoDepth",200,function(ht,ft){return ht.doc.history.undoDepth=ft}),ct("historyEventDelay",1250),ct("viewportMargin",10,function(ht){return ht.refresh()},!0),ct("maxHighlightLength",1e4,Hr,!0),ct("moveInputWithCursor",!0,function(ht,ft){ft||ht.display.input.resetPosition()}),ct("tabindex",null,function(ht,ft){return ht.display.input.getField().tabIndex=ft||""}),ct("autofocus",null),ct("direction","ltr",function(ht,ft){return ht.doc.setDirection(ft)},!0),ct("phrases",null)}function dh(it,st,ct){var ht=ct&&ct!=el;if(!st!=!ht){var ft=it.display.dragFunctions,Pt=st?me:xn;Pt(it.display.scroller,"dragstart",ft.start),Pt(it.display.scroller,"dragenter",ft.enter),Pt(it.display.scroller,"dragover",ft.over),Pt(it.display.scroller,"dragleave",ft.leave),Pt(it.display.scroller,"drop",ft.drop)}}function Au(it){it.options.lineWrapping?(Re(it.display.wrapper,"CodeMirror-wrap"),it.display.sizer.style.minWidth="",it.display.sizerWidth=null):(Kt(it.display.wrapper,"CodeMirror-wrap"),rs(it)),Vi(it),fs(it),ka(it),setTimeout(function(){return Xo(it)},100)}function Nr(it,st){var ct=this;if(!(this instanceof Nr))return new Nr(it,st);this.options=st=st?cn(st):{},cn(hh,st,!1);var ht=st.value;typeof ht=="string"?ht=new Ya(ht,st.mode,null,st.lineSeparator,st.direction):st.mode&&(ht.modeOption=st.mode),this.doc=ht;var ft=new Nr.inputStyles[st.inputStyle](this),Pt=this.display=new Jl(it,ht,ft,st);Pt.wrapper.CodeMirror=this,kh(this),st.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),es(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Qt,keySeq:null,specialChars:null},st.autofocus&&!nt&&Pt.input.focus(),fe&&je<11&&setTimeout(function(){return ct.display.input.reset(!0)},20),rg(this),ql(),Gr(this),this.curOp.forceUpdate=!0,nh(this,ht),st.autofocus&&!nt||this.hasFocus()?setTimeout(function(){ct.hasFocus()&&!ct.state.focused&&an(ct)},20):Mn(this);for(var Dt in ku)ku.hasOwnProperty(Dt)&&ku[Dt](this,st[Dt],el);Ms(this),st.finishInit&&st.finishInit(this);for(var Gt=0;Gt20*20}me(st.scroller,"touchstart",function(Rt){if(!Rn(it,Rt)&&!Pt(Rt)&&!So(it,Rt)){st.input.ensurePolled(),clearTimeout(ct);var Jt=+new Date;st.activeTouch={start:Jt,moved:!1,prev:Jt-ht.end<=300?ht:null},Rt.touches.length==1&&(st.activeTouch.left=Rt.touches[0].pageX,st.activeTouch.top=Rt.touches[0].pageY)}}),me(st.scroller,"touchmove",function(){st.activeTouch&&(st.activeTouch.moved=!0)}),me(st.scroller,"touchend",function(Rt){var Jt=st.activeTouch;if(Jt&&!yi(st,Rt)&&Jt.left!=null&&!Jt.moved&&new Date-Jt.start<300){var Ce=it.coordsChar(st.activeTouch,"page"),ee;!Jt.prev||Dt(Jt,Jt.prev)?ee=new _o(Ce,Ce):!Jt.prev.prev||Dt(Jt,Jt.prev.prev)?ee=it.findWordAt(Ce):ee=new _o(De(Ce.line,0),Pi(it.doc,De(Ce.line+1,0))),it.setSelection(ee.anchor,ee.head),it.focus(),vo(Rt)}ft()}),me(st.scroller,"touchcancel",ft),me(st.scroller,"scroll",function(){st.scroller.clientHeight&&(zo(it,st.scroller.scrollTop),fr(it,st.scroller.scrollLeft,!0),yn(it,"scroll",it))}),me(st.scroller,"mousewheel",function(Rt){return Ls(it,Rt)}),me(st.scroller,"DOMMouseScroll",function(Rt){return Ls(it,Rt)}),me(st.wrapper,"scroll",function(){return st.wrapper.scrollTop=st.wrapper.scrollLeft=0}),st.dragFunctions={enter:function(Rt){Rn(it,Rt)||As(Rt)},over:function(Rt){Rn(it,Rt)||(Kc(it,Rt),As(Rt))},start:function(Rt){return mf(it,Rt)},drop:kr(it,Zc),leave:function(Rt){Rn(it,Rt)||vf(it)}};var Gt=st.input.getField();me(Gt,"keyup",function(Rt){return ig.call(it,Rt)}),me(Gt,"keydown",kr(it,ng)),me(Gt,"keypress",kr(it,Eu)),me(Gt,"focus",function(Rt){return an(it,Rt)}),me(Gt,"blur",function(Rt){return Mn(it,Rt)})}var yc=[];Nr.defineInitHook=function(it){return yc.push(it)};function Ua(it,st,ct,ht){var ft=it.doc,Pt;ct==null&&(ct="add"),ct=="smart"&&(ft.mode.indent?Pt=ko(it,st).state:ct="prev");var Dt=it.options.tabSize,Gt=Tn(ft,st),Rt=he(Gt.text,null,Dt);Gt.stateAfter&&(Gt.stateAfter=null);var Jt=Gt.text.match(/^\s*/)[0],Ce;if(!ht&&!/\S/.test(Gt.text))Ce=0,ct="not";else if(ct=="smart"&&(Ce=ft.mode.indent(Pt,Gt.text.slice(Jt.length),Gt.text),Ce==An||Ce>150)){if(!ht)return;ct="prev"}ct=="prev"?st>ft.first?Ce=he(Tn(ft,st-1).text,null,Dt):Ce=0:ct=="add"?Ce=Rt+it.options.indentUnit:ct=="subtract"?Ce=Rt-it.options.indentUnit:typeof ct=="number"&&(Ce=Rt+ct),Ce=Math.max(0,Ce);var ee="",Ze=0;if(it.options.indentWithTabs)for(var ze=Math.floor(Ce/Dt);ze;--ze)Ze+=Dt,ee+=" ";if(ZeDt,Rt=qi(st),Jt=null;if(Gt&&ht.ranges.length>1)if(eu&&eu.text.join(` -`)==st){if(ht.ranges.length%eu.text.length==0){Jt=[];for(var Ce=0;Ce=0;Ze--){var ze=ht.ranges[Ze],kn=ze.from(),In=ze.to();ze.empty()&&(ct&&ct>0?kn=De(kn.line,kn.ch-ct):it.state.overwrite&&!Gt?In=De(In.line,Math.min(Tn(Pt,In.line).text.length,In.ch+re(Rt).length)):Gt&&eu&&eu.lineWise&&eu.text.join(` + left: `+st.left+"px; width: "+Math.max(2,st.right-st.left)+"px;");it.display.lineSpace.appendChild(Pt),Pt.scrollIntoView(ft),it.display.lineSpace.removeChild(Pt)}}}function Jn(it,st,ct,ht){ht==null&&(ht=0);var ft;!it.options.lineWrapping&&st==ct&&(st=st.ch?De(st.line,st.sticky=="before"?st.ch-1:st.ch,"after"):st,ct=st.sticky=="before"?De(st.line,st.ch+1,"before"):st);for(var Pt=0;Pt<5;Pt++){var Dt=!1,Gt=Er(it,st),Rt=!ct||ct==st?Gt:Er(it,ct);ft={left:Math.min(Gt.left,Rt.left),top:Math.min(Gt.top,Rt.top)-ht,right:Math.max(Gt.left,Rt.left),bottom:Math.max(Gt.bottom,Rt.bottom)+ht};var Jt=mi(it,ft),Ce=it.doc.scrollTop,ee=it.doc.scrollLeft;if(Jt.scrollTop!=null&&(zo(it,Jt.scrollTop),Math.abs(it.doc.scrollTop-Ce)>1&&(Dt=!0)),Jt.scrollLeft!=null&&(fr(it,Jt.scrollLeft),Math.abs(it.doc.scrollLeft-ee)>1&&(Dt=!0)),!Dt)break}return ft}function Ei(it,st){var ct=mi(it,st);ct.scrollTop!=null&&zo(it,ct.scrollTop),ct.scrollLeft!=null&&fr(it,ct.scrollLeft)}function mi(it,st){var ct=it.display,ht=js(it.display);st.top<0&&(st.top=0);var ft=it.curOp&&it.curOp.scrollTop!=null?it.curOp.scrollTop:ct.scroller.scrollTop,Pt=qe(it),Dt={};st.bottom-st.top>Pt&&(st.bottom=st.top+Pt);var Gt=it.doc.height+no(ct),Rt=st.topGt-ht;if(st.topft+Pt){var Ce=Math.min(st.top,(Jt?Gt:st.bottom)-Pt);Ce!=ft&&(Dt.scrollTop=Ce)}var ee=it.options.fixedGutter?0:ct.gutters.offsetWidth,Ze=it.curOp&&it.curOp.scrollLeft!=null?it.curOp.scrollLeft:ct.scroller.scrollLeft-ee,ze=Mo(it)-ct.gutters.offsetWidth,kn=st.right-st.left>ze;return kn&&(st.right=st.left+ze),st.left<10?Dt.scrollLeft=0:st.leftze+Ze-3&&(Dt.scrollLeft=st.right+(kn?0:10)-ze),Dt}function bi(it,st){st!=null&&(Co(it),it.curOp.scrollTop=(it.curOp.scrollTop==null?it.doc.scrollTop:it.curOp.scrollTop)+st)}function Ni(it){Co(it);var st=it.getCursor();it.curOp.scrollToPos={from:st,to:st,margin:it.options.cursorScrollMargin}}function ki(it,st,ct){(st!=null||ct!=null)&&Co(it),st!=null&&(it.curOp.scrollLeft=st),ct!=null&&(it.curOp.scrollTop=ct)}function Un(it,st){Co(it),it.curOp.scrollToPos=st}function Co(it){var st=it.curOp.scrollToPos;if(st){it.curOp.scrollToPos=null;var ct=Ph(it,st.from),ht=Ph(it,st.to);co(it,ct,ht,st.margin)}}function co(it,st,ct,ht){var ft=mi(it,{left:Math.min(st.left,ct.left),top:Math.min(st.top,ct.top)-ht,right:Math.max(st.right,ct.right),bottom:Math.max(st.bottom,ct.bottom)+ht});ki(it,ft.scrollLeft,ft.scrollTop)}function zo(it,st){Math.abs(it.doc.scrollTop-st)<2||(St||$a(it,{top:st}),cr(it,st,!0),St&&$a(it),qa(it,100))}function cr(it,st,ct){st=Math.max(0,Math.min(it.display.scroller.scrollHeight-it.display.scroller.clientHeight,st)),!(it.display.scroller.scrollTop==st&&!ct)&&(it.doc.scrollTop=st,it.display.scrollbars.setScrollTop(st),it.display.scroller.scrollTop!=st&&(it.display.scroller.scrollTop=st))}function fr(it,st,ct,ht){st=Math.max(0,Math.min(st,it.display.scroller.scrollWidth-it.display.scroller.clientWidth)),!((ct?st==it.doc.scrollLeft:Math.abs(it.doc.scrollLeft-st)<2)&&!ht)&&(it.doc.scrollLeft=st,Ch(it),it.display.scroller.scrollLeft!=st&&(it.display.scroller.scrollLeft=st),it.display.scrollbars.setScrollLeft(st))}function ar(it){var st=it.display,ct=st.gutters.offsetWidth,ht=Math.round(it.doc.height+no(it.display));return{clientHeight:st.scroller.clientHeight,viewHeight:st.wrapper.clientHeight,scrollWidth:st.scroller.scrollWidth,clientWidth:st.scroller.clientWidth,viewWidth:st.wrapper.clientWidth,barLeft:it.options.fixedGutter?ct:0,docHeight:ht,scrollHeight:ht+$r(it)+st.barHeight,nativeBarWidth:st.nativeBarWidth,gutterWidth:ct}}var ts=function(it,st,ct){this.cm=ct;var ht=this.vert=qt("div",[qt("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ft=this.horiz=qt("div",[qt("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ht.tabIndex=ft.tabIndex=-1,it(ht),it(ft),me(ht,"scroll",function(){ht.clientHeight&&st(ht.scrollTop,"vertical")}),me(ft,"scroll",function(){ft.clientWidth&&st(ft.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,fe&&je<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ts.prototype.update=function(it){var st=it.scrollWidth>it.clientWidth+1,ct=it.scrollHeight>it.clientHeight+1,ht=it.nativeBarWidth;if(ct){this.vert.style.display="block",this.vert.style.bottom=st?ht+"px":"0";var ft=it.viewHeight-(st?ht:0);this.vert.firstChild.style.height=Math.max(0,it.scrollHeight-it.clientHeight+ft)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(st){this.horiz.style.display="block",this.horiz.style.right=ct?ht+"px":"0",this.horiz.style.left=it.barLeft+"px";var Pt=it.viewWidth-it.barLeft-(ct?ht:0);this.horiz.firstChild.style.width=Math.max(0,it.scrollWidth-it.clientWidth+Pt)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&it.clientHeight>0&&(ht==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ct?ht:0,bottom:st?ht:0}},ts.prototype.setScrollLeft=function(it){this.horiz.scrollLeft!=it&&(this.horiz.scrollLeft=it),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ts.prototype.setScrollTop=function(it){this.vert.scrollTop!=it&&(this.vert.scrollTop=it),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ts.prototype.zeroWidthHack=function(){var it=dt&&!Ie?"12px":"18px";this.horiz.style.height=this.vert.style.width=it,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Qt,this.disableVert=new Qt},ts.prototype.enableZeroWidthBar=function(it,st,ct){it.style.pointerEvents="auto";function ht(){var ft=it.getBoundingClientRect(),Pt=ct=="vert"?document.elementFromPoint(ft.right-1,(ft.top+ft.bottom)/2):document.elementFromPoint((ft.right+ft.left)/2,ft.bottom-1);Pt!=it?it.style.pointerEvents="none":st.set(1e3,ht)}st.set(1e3,ht)},ts.prototype.clear=function(){var it=this.horiz.parentNode;it.removeChild(this.horiz),it.removeChild(this.vert)};var or=function(){};or.prototype.update=function(){return{bottom:0,right:0}},or.prototype.setScrollLeft=function(){},or.prototype.setScrollTop=function(){},or.prototype.clear=function(){};function Xo(it,st){st||(st=ar(it));var ct=it.display.barWidth,ht=it.display.barHeight;dr(it,st);for(var ft=0;ft<4&&ct!=it.display.barWidth||ht!=it.display.barHeight;ft++)ct!=it.display.barWidth&&it.options.lineWrapping&&nn(it),dr(it,ar(it)),ct=it.display.barWidth,ht=it.display.barHeight}function dr(it,st){var ct=it.display,ht=ct.scrollbars.update(st);ct.sizer.style.paddingRight=(ct.barWidth=ht.right)+"px",ct.sizer.style.paddingBottom=(ct.barHeight=ht.bottom)+"px",ct.heightForcer.style.borderBottom=ht.bottom+"px solid transparent",ht.right&&ht.bottom?(ct.scrollbarFiller.style.display="block",ct.scrollbarFiller.style.height=ht.bottom+"px",ct.scrollbarFiller.style.width=ht.right+"px"):ct.scrollbarFiller.style.display="",ht.bottom&&it.options.coverGutterNextToScrollbar&&it.options.fixedGutter?(ct.gutterFiller.style.display="block",ct.gutterFiller.style.height=ht.bottom+"px",ct.gutterFiller.style.width=st.gutterWidth+"px"):ct.gutterFiller.style.display=""}var zr={native:ts,null:or};function es(it){it.display.scrollbars&&(it.display.scrollbars.clear(),it.display.scrollbars.addClass&&Kt(it.display.wrapper,it.display.scrollbars.addClass)),it.display.scrollbars=new zr[it.options.scrollbarStyle](function(st){it.display.wrapper.insertBefore(st,it.display.scrollbarFiller),me(st,"mousedown",function(){it.state.focused&&setTimeout(function(){return it.display.input.focus()},0)}),st.setAttribute("cm-not-content","true")},function(st,ct){ct=="horizontal"?fr(it,st):zo(it,st)},it),it.display.scrollbars.addClass&&Re(it.display.wrapper,it.display.scrollbars.addClass)}var Cr=0;function Gr(it){it.curOp={cm:it,viewChanged:!1,startHeight:it.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Cr},eh(it.curOp)}function Ns(it){var st=it.curOp;st&&ju(st,function(ct){for(var ht=0;ht=ct.viewTo)||ct.maxLineChanged&&st.options.lineWrapping,it.update=it.mustUpdate&&new Cs(st,it.mustUpdate&&{top:it.scrollTop,ensure:it.scrollToPos},it.forceUpdate)}function $s(it){it.updatedDisplay=it.mustUpdate&&bs(it.cm,it.update)}function ba(it){var st=it.cm,ct=st.display;it.updatedDisplay&&nn(st),it.barMeasure=ar(st),ct.maxLineChanged&&!st.options.lineWrapping&&(it.adjustWidthTo=_i(st,ct.maxLine,ct.maxLine.text.length).left+3,st.display.sizerWidth=it.adjustWidthTo,it.barMeasure.scrollWidth=Math.max(ct.scroller.clientWidth,ct.sizer.offsetLeft+it.adjustWidthTo+$r(st)+st.display.barWidth),it.maxScrollLeft=Math.max(0,ct.sizer.offsetLeft+it.adjustWidthTo-Mo(st))),(it.updatedDisplay||it.selectionChanged)&&(it.preparedSelection=ct.input.prepareSelection())}function bo(it){var st=it.cm;it.adjustWidthTo!=null&&(st.display.sizer.style.minWidth=it.adjustWidthTo+"px",it.maxScrollLeft=it.display.viewTo)){var ct=+new Date+it.options.workTime,ht=ko(it,st.highlightFrontier),ft=[];st.iter(ht.line,Math.min(st.first+st.size,it.display.viewTo+500),function(Pt){if(ht.line>=it.display.viewFrom){var Dt=Pt.styles,Gt=Pt.text.length>it.options.maxHighlightLength?Wn(st.mode,ht.state):null,Rt=vr(it,Pt,ht,!0);Gt&&(ht.state=Gt),Pt.styles=Rt.styles;var Jt=Pt.styleClasses,Ce=Rt.classes;Ce?Pt.styleClasses=Ce:Jt&&(Pt.styleClasses=null);for(var ee=!Dt||Dt.length!=Pt.styles.length||Jt!=Ce&&(!Jt||!Ce||Jt.bgClass!=Ce.bgClass||Jt.textClass!=Ce.textClass),Ze=0;!ee&&Zect)return qa(it,it.options.workDelay),!0}),st.highlightFrontier=ht.line,st.modeFrontier=Math.max(st.modeFrontier,ht.line),ft.length&&Po(it,function(){for(var Pt=0;Pt=ct.viewFrom&&st.visible.to<=ct.viewTo&&(ct.updateLineNumbers==null||ct.updateLineNumbers>=ct.viewTo)&&ct.renderedView==ct.view&&Ht(it)==0)return!1;Ms(it)&&(Rs(it),st.dims=zu(it));var ft=ht.first+ht.size,Pt=Math.max(st.visible.from-it.options.viewportMargin,ht.first),Dt=Math.min(ft,st.visible.to+it.options.viewportMargin);ct.viewFromDt&&ct.viewTo-Dt<20&&(Dt=Math.min(ft,ct.viewTo)),on&&(Pt=Ki(it.doc,Pt),Dt=Mi(it.doc,Dt));var Gt=Pt!=ct.viewFrom||Dt!=ct.viewTo||ct.lastWrapHeight!=st.wrapperHeight||ct.lastWrapWidth!=st.wrapperWidth;Ot(it,Pt,Dt),ct.viewOffset=No(Tn(it.doc,ct.viewFrom)),it.display.mover.style.top=ct.viewOffset+"px";var Rt=Ht(it);if(!Gt&&Rt==0&&!st.force&&ct.renderedView==ct.view&&(ct.updateLineNumbers==null||ct.updateLineNumbers>=ct.viewTo))return!1;var Jt=Ta(it);return Rt>4&&(ct.lineDiv.style.display="none"),Jl(it,ct.updateLineNumbers,st.dims),Rt>4&&(ct.lineDiv.style.display=""),ct.renderedView=ct.view,ns(Jt),$t(ct.cursorDiv),$t(ct.selectionDiv),ct.gutters.style.height=ct.sizer.style.minHeight=0,Gt&&(ct.lastWrapHeight=st.wrapperHeight,ct.lastWrapWidth=st.wrapperWidth,qa(it,400)),ct.updateLineNumbers=null,!0}function Eo(it,st){for(var ct=st.viewport,ht=!0;;ht=!1){if(!ht||!it.options.lineWrapping||st.oldDisplayWidth==Mo(it)){if(ct&&ct.top!=null&&(ct={top:Math.min(it.doc.height+no(it.display)-qe(it),ct.top)}),st.visible=Ve(it.display,it.doc,ct),st.visible.from>=it.display.viewFrom&&st.visible.to<=it.display.viewTo)break}else ht&&(st.visible=Ve(it.display,it.doc,ct));if(!bs(it,st))break;nn(it);var ft=ar(it);le(it),Xo(it,ft),Bl(it,ft),st.force=!1}st.signal(it,"update",it),(it.display.viewFrom!=it.display.reportedViewFrom||it.display.viewTo!=it.display.reportedViewTo)&&(st.signal(it,"viewportChange",it,it.display.viewFrom,it.display.viewTo),it.display.reportedViewFrom=it.display.viewFrom,it.display.reportedViewTo=it.display.viewTo)}function $a(it,st){var ct=new Cs(it,st);if(bs(it,ct)){nn(it),Eo(it,ct);var ht=ar(it);le(it),Xo(it,ht),Bl(it,ht),ct.finish()}}function Jl(it,st,ct){var ht=it.display,ft=it.options.lineNumbers,Pt=ht.lineDiv,Dt=Pt.firstChild;function Gt(kn){var In=kn.nextSibling;return ie&&dt&&it.display.currentWheelTarget==kn?kn.style.display="none":kn.parentNode.removeChild(kn),In}for(var Rt=ht.view,Jt=ht.viewFrom,Ce=0;Ce-1&&(ze=!1),Oh(it,ee,Jt,ct)),ze&&($t(ee.lineNumber),ee.lineNumber.appendChild(document.createTextNode(to(it.options,Jt)))),Dt=ee.node.nextSibling}Jt+=ee.size}for(;Dt;)Dt=Gt(Dt)}function pa(it){var st=it.gutters.offsetWidth;it.sizer.style.marginLeft=st+"px"}function Bl(it,st){it.display.sizer.style.minHeight=st.docHeight+"px",it.display.heightForcer.style.top=st.docHeight+"px",it.display.gutters.style.height=st.docHeight+it.display.barHeight+$r(it)+"px"}function Ch(it){var st=it.display,ct=st.view;if(!(!st.alignWidgets&&(!st.gutters.firstChild||!it.options.fixedGutter))){for(var ht=as(st)-st.scroller.scrollLeft+it.doc.scrollLeft,ft=st.gutters.offsetWidth,Pt=ht+"px",Dt=0;DtDt.clientWidth,Rt=Dt.scrollHeight>Dt.clientHeight;if(ht&&Gt||ft&&Rt){if(ft&&dt&&ie){t:for(var Jt=st.target,Ce=Pt.view;Jt!=Dt;Jt=Jt.parentNode)for(var ee=0;ee=0&&dn(it,ht.to())<=0)return ct}return-1};var _o=function(it,st){this.anchor=it,this.head=st};_o.prototype.from=function(){return Ii(this.anchor,this.head)},_o.prototype.to=function(){return Vo(this.anchor,this.head)},_o.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ra(it,st,ct){var ht=it&&it.options.selectionsMayTouch,ft=st[ct];st.sort(function(Ze,ze){return dn(Ze.from(),ze.from())}),ct=Ae(st,ft);for(var Pt=1;Pt0:Rt>=0){var Jt=Ii(Gt.from(),Dt.from()),Ce=Vo(Gt.to(),Dt.to()),ee=Gt.empty()?Dt.from()==Dt.head:Gt.from()==Gt.head;Pt<=ct&&--ct,st.splice(--Pt,2,new _o(ee?Ce:Jt,ee?Jt:Ce))}}return new wa(st,ct)}function Ha(it,st){return new wa([new _o(it,st||it)],0)}function Ds(it){return it.text?De(it.from.line+it.text.length-1,re(it.text).length+(it.text.length==1?it.from.ch:0)):it.to}function Pa(it,st){if(dn(it,st.from)<0)return it;if(dn(it,st.to)<=0)return Ds(st);var ct=it.line+st.text.length-(st.to.line-st.from.line)-1,ht=it.ch;return it.line==st.to.line&&(ht+=Ds(st).ch-st.to.ch),De(ct,ht)}function hu(it,st){for(var ct=[],ht=0;ht1&&it.remove(Gt.line+1,kn-1),it.insert(Gt.line+1,ci)}gi(it,"change",it,st)}function Ca(it,st,ct){function ht(ft,Pt,Dt){if(ft.linked)for(var Gt=0;Gt1&&!it.done[it.done.length-2].ranges)return it.done.pop(),re(it.done)}function Fs(it,st,ct,ht){var ft=it.history;ft.undone.length=0;var Pt=+new Date,Dt,Gt;if((ft.lastOp==ht||ft.lastOrigin==st.origin&&st.origin&&(st.origin.charAt(0)=="+"&&ft.lastModTime>Pt-(it.cm?it.cm.options.historyEventDelay:500)||st.origin.charAt(0)=="*"))&&(Dt=qo(ft,ft.lastOp==ht)))Gt=re(Dt.changes),dn(st.from,st.to)==0&&dn(st.from,Gt.to)==0?Gt.to=Ds(st):Dt.changes.push(To(it,st));else{var Rt=re(ft.done);for((!Rt||!Rt.ranges)&&ih(it.sel,ft.done),Dt={changes:[To(it,st)],generation:ft.generation},ft.done.push(Dt);ft.done.length>ft.undoDepth;)ft.done.shift(),ft.done[0].ranges||ft.done.shift()}ft.done.push(ct),ft.generation=++ft.maxGeneration,ft.lastModTime=ft.lastSelTime=Pt,ft.lastOp=ft.lastSelOp=ht,ft.lastOrigin=ft.lastSelOrigin=st.origin,Gt||yn(it,"historyAdded")}function ql(it,st,ct,ht){var ft=st.charAt(0);return ft=="*"||ft=="+"&&ct.ranges.length==ht.ranges.length&&ct.somethingSelected()==ht.somethingSelected()&&new Date-it.history.lastSelTime<=(it.cm?it.cm.options.historyEventDelay:500)}function zh(it,st,ct,ht){var ft=it.history,Pt=ht&&ht.origin;ct==ft.lastSelOp||Pt&&ft.lastSelOrigin==Pt&&(ft.lastModTime==ft.lastSelTime&&ft.lastOrigin==Pt||ql(it,Pt,re(ft.done),st))?ft.done[ft.done.length-1]=st:ih(st,ft.done),ft.lastSelTime=+new Date,ft.lastSelOrigin=Pt,ft.lastSelOp=ct,ht&&ht.clearRedo!==!1&&Oi(ft.undone)}function ih(it,st){var ct=re(st);ct&&ct.ranges&&ct.equals(it)||st.push(it)}function Gu(it,st,ct,ht){var ft=st["spans_"+it.id],Pt=0;it.iter(Math.max(it.first,ct),Math.min(it.first+it.size,ht),function(Dt){Dt.markedSpans&&((ft||(ft=st["spans_"+it.id]={}))[Pt]=Dt.markedSpans),++Pt})}function Ma(it){if(!it)return null;for(var st,ct=0;ct-1&&(re(Gt)[ee]=Jt[ee],delete Jt[ee])}}return ht}function Ol(it,st,ct,ht){if(ht){var ft=it.anchor;if(ct){var Pt=dn(st,ft)<0;Pt!=dn(ct,ft)<0?(ft=st,st=ct):Pt!=dn(st,ct)<0&&(st=ct)}return new _o(ft,st)}else return new _o(ct||st,st)}function hd(it,st,ct,ht,ft){ft==null&&(ft=it.cm&&(it.cm.display.shift||it.extend)),Da(it,new wa([Ol(it.sel.primary(),st,ct,ft)],0),ht)}function Wc(it,st,ct){for(var ht=[],ft=it.cm&&(it.cm.display.shift||it.extend),Pt=0;Pt=st.ch:Gt.to>st.ch))){if(ft&&(yn(Rt,"beforeCursorEnter"),Rt.explicitlyCleared))if(Pt.markedSpans){--Dt;continue}else break;if(!Rt.atomic)continue;if(ct){var ee=Rt.find(ht<0?1:-1),Ze=void 0;if((ht<0?Ce:Jt)&&(ee=Yc(it,ee,-ht,ee&&ee.line==st.line?Pt:null)),ee&&ee.line==st.line&&(Ze=dn(ee,ct))&&(ht<0?Ze<0:Ze>0))return va(it,ee,st,ht,ft)}var ze=Rt.find(ht<0?-1:1);return(ht<0?Jt:Ce)&&(ze=Yc(it,ze,ht,ze.line==st.line?Pt:null)),ze?va(it,ze,st,ht,ft):null}}return st}function uc(it,st,ct,ht,ft){var Pt=ht||1,Dt=va(it,st,ct,Pt,ft)||!ft&&va(it,st,ct,Pt,!0)||va(it,st,ct,-Pt,ft)||!ft&&va(it,st,ct,-Pt,!0);return Dt||(it.cantEdit=!0,De(it.first,0))}function Yc(it,st,ct,ht){return ct<0&&st.ch==0?st.line>it.first?Pi(it,De(st.line-1)):null:ct>0&&st.ch==(ht||Tn(it,st.line)).text.length?st.line=0;--ft)cd(it,{from:ht[ft].from,to:ht[ft].to,text:ft?[""]:st.text,origin:st.origin});else cd(it,st)}}function cd(it,st){if(!(st.text.length==1&&st.text[0]==""&&dn(st.from,st.to)==0)){var ct=hu(it,st);Fs(it,st,ct,it.cm?it.cm.curOp.id:NaN),Mh(it,st,ct,Pr(it,st));var ht=[];Ca(it,function(ft,Pt){!Pt&&Ae(ht,ft.history)==-1&&(Fd(ft.history,st),ht.push(ft.history)),Mh(ft,st,null,Pr(ft,st))})}}function hc(it,st,ct){var ht=it.cm&&it.cm.state.suppressEdits;if(!(ht&&!ct)){for(var ft=it.history,Pt,Dt=it.sel,Gt=st=="undo"?ft.done:ft.undone,Rt=st=="undo"?ft.undone:ft.done,Jt=0;Jt=0;--ze){var kn=Ze(ze);if(kn)return kn.v}}}}function Uc(it,st){if(st!=0&&(it.first+=st,it.sel=new wa(Dn(it.sel.ranges,function(ft){return new _o(De(ft.anchor.line+st,ft.anchor.ch),De(ft.head.line+st,ft.head.ch))}),it.sel.primIndex),it.cm)){fs(it.cm,it.first,it.first-st,st);for(var ct=it.cm.display,ht=ct.viewFrom;htit.lastLine())){if(st.from.linePt&&(st={from:st.from,to:De(Pt,Tn(it,Pt).text.length),text:[st.text[0]],origin:st.origin}),st.removed=Si(it,st.from,st.to),ct||(ct=hu(it,st)),it.cm?gf(it.cm,st,ht):Il(it,st,ht),sh(it,ct,Se),it.cantEdit&&uc(it,De(it.firstLine(),0))&&(it.cantEdit=!1)}}function gf(it,st,ct){var ht=it.doc,ft=it.display,Pt=st.from,Dt=st.to,Gt=!1,Rt=Pt.line;it.options.lineWrapping||(Rt=oe(Tr(Tn(ht,Pt.line))),ht.iter(Rt,Dt.line+1,function(ze){if(ze==ft.maxLine)return Gt=!0,!0})),ht.sel.contains(st.from,st.to)>-1&&ji(it),Il(ht,st,ct,ls(it)),it.options.lineWrapping||(ht.iter(Rt,Pt.line+st.text.length,function(ze){var kn=Rr(ze);kn>ft.maxLineLength&&(ft.maxLine=ze,ft.maxLineLength=kn,ft.maxLineChanged=!0,Gt=!1)}),Gt&&(it.curOp.updateMaxLine=!0)),Do(ht,Pt.line),qa(it,400);var Jt=st.text.length-(Dt.line-Pt.line)-1;st.full?fs(it):Pt.line==Dt.line&&st.text.length==1&&!Lu(it.doc,st)?Lo(it,Pt.line,"text"):fs(it,Pt.line,Dt.line+1,Jt);var Ce=Qi(it,"changes"),ee=Qi(it,"change");if(ee||Ce){var Ze={from:Pt,to:Dt,text:st.text,removed:st.removed,origin:st.origin};ee&&gi(it,"change",it,Ze),Ce&&(it.curOp.changeObjs||(it.curOp.changeObjs=[])).push(Ze)}it.display.selForContextMenu=null}function Gh(it,st,ct,ht,ft){var Pt;ht||(ht=ct),dn(ht,ct)<0&&(Pt=[ht,ct],ct=Pt[0],ht=Pt[1]),typeof st=="string"&&(st=it.splitLines(st)),Hu(it,{from:ct,to:ht,text:st,origin:ft})}function fu(it,st,ct,ht){ct1||!(this.children[0]instanceof gd))){var Gt=[];this.collapse(Gt),this.children=[new gd(Gt)],this.children[0].parent=this}},collapse:function(it){for(var st=0;st50){for(var Dt=ft.lines.length%25+25,Gt=Dt;Gt10);it.parent.maybeSpill()}},iterN:function(it,st,ct){for(var ht=0;htit.display.maxLineLength&&(it.display.maxLine=Jt,it.display.maxLineLength=Ce,it.display.maxLineChanged=!0)}ht!=null&&it&&this.collapsed&&fs(it,ht,ft+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,it&&uo(it.doc)),it&&gi(it,"markerCleared",it,this,ht,ft),st&&Ns(it),this.parent&&this.parent.clear()}},ce.prototype.find=function(it,st){it==null&&this.type=="bookmark"&&(it=1);for(var ct,ht,ft=0;ft0||Dt==0&&Pt.clearWhenEmpty!==!1)return Pt;if(Pt.replacedWith&&(Pt.collapsed=!0,Pt.widgetNode=ue("span",[Pt.replacedWith],"CodeMirror-widget"),ht.handleMouseEvents||Pt.widgetNode.setAttribute("cm-ignore-events","true"),ht.insertLeft&&(Pt.widgetNode.insertLeft=!0)),Pt.collapsed){if(Ih(it,st.line,st,ct,Pt)||st.line!=ct.line&&Ih(it,ct.line,st,ct,Pt))throw new Error("Inserting collapsed marker partially overlapping an existing one");en()}Pt.addToHistory&&Fs(it,{from:st,to:ct,origin:"markText"},it.sel,NaN);var Gt=st.line,Rt=it.cm,Jt;if(it.iter(Gt,ct.line+1,function(ee){Rt&&Pt.collapsed&&!Rt.options.lineWrapping&&Tr(ee)==Rt.display.maxLine&&(Jt=!0),Pt.collapsed&&Gt!=st.line&&ao(ee,0),Sa(ee,new Ko(Pt,Gt==st.line?st.ch:null,Gt==ct.line?ct.ch:null)),++Gt}),Pt.collapsed&&it.iter(st.line,ct.line+1,function(ee){un(it,ee)&&ao(ee,0)}),Pt.clearOnEnter&&me(Pt,"beforeCursorEnter",function(){return Pt.clear()}),Pt.readOnly&&(Zo(),(it.history.done.length||it.history.undone.length)&&it.clearHistory()),Pt.collapsed&&(Pt.id=++kg,Pt.atomic=!0),Rt){if(Jt&&(Rt.curOp.updateMaxLine=!0),Pt.collapsed)fs(Rt,st.line,ct.line+1);else if(Pt.className||Pt.startStyle||Pt.endStyle||Pt.css||Pt.attributes||Pt.title)for(var Ce=st.line;Ce<=ct.line;Ce++)Lo(Rt,Ce,"text");Pt.atomic&&uo(Rt.doc),gi(Rt,"markerAdded",Rt,Pt)}return Pt}var ah=function(it,st){this.markers=it,this.primary=st;for(var ct=0;ct=0;Rt--)Hu(this,ht[Rt]);Gt?dd(this,Gt):this.cm&&Ni(this.cm)}),undo:Kr(function(){hc(this,"undo")}),redo:Kr(function(){hc(this,"redo")}),undoSelection:Kr(function(){hc(this,"undo",!0)}),redoSelection:Kr(function(){hc(this,"redo",!0)}),setExtending:function(it){this.extend=it},getExtending:function(){return this.extend},historySize:function(){for(var it=this.history,st=0,ct=0,ht=0;ht=it.ch)&&st.push(ft.marker.parent||ft.marker)}return st},findMarks:function(it,st,ct){it=Pi(this,it),st=Pi(this,st);var ht=[],ft=it.line;return this.iter(it.line,st.line+1,function(Pt){var Dt=Pt.markedSpans;if(Dt)for(var Gt=0;Gt=Rt.to||Rt.from==null&&ft!=it.line||Rt.from!=null&&ft==st.line&&Rt.from>=st.ch)&&(!ct||ct(Rt.marker))&&ht.push(Rt.marker.parent||Rt.marker)}++ft}),ht},getAllMarks:function(){var it=[];return this.iter(function(st){var ct=st.markedSpans;if(ct)for(var ht=0;htit)return st=it,!0;it-=Pt,++ct}),Pi(this,De(ct,st))},indexFromPos:function(it){it=Pi(this,it);var st=it.ch;if(it.linest&&(st=it.from),it.to!=null&&it.to-1){st.state.draggingText(it),setTimeout(function(){return st.display.input.focus()},20);return}try{var Ce=it.dataTransfer.getData("Text");if(Ce){var ee;if(st.state.draggingText&&!st.state.draggingText.copy&&(ee=st.listSelections()),sh(st.doc,Ha(ct,ct)),ee)for(var Ze=0;Ze=0;Gt--)Gh(it.doc,"",ht[Gt].from,ht[Gt].to,"+delete");Ni(it)})}function qc(it,st,ct){var ht=Bn(it.text,st+ct,ct);return ht<0||ht>it.text.length?null:ht}function aa(it,st,ct){var ht=qc(it,st.ch,ct);return ht==null?null:new De(st.line,ht,ct<0?"after":"before")}function Id(it,st,ct,ht,ft){if(it){st.doc.direction=="rtl"&&(ft=-ft);var Pt=Zt(ct,st.doc.direction);if(Pt){var Dt=ft<0?re(Pt):Pt[0],Gt=ft<0==(Dt.level==1),Rt=Gt?"after":"before",Jt;if(Dt.level>0||st.doc.direction=="rtl"){var Ce=sr(st,ct);Jt=ft<0?ct.text.length-1:0;var ee=Qo(st,Ce,Jt).top;Jt=zn(function(Ze){return Qo(st,Ce,Ze).top==ee},ft<0==(Dt.level==1)?Dt.from:Dt.to-1,Jt),Rt=="before"&&(Jt=qc(ct,Jt,1))}else Jt=ft<0?Dt.to:Dt.from;return new De(ht,Jt,Rt)}}return new De(ht,ft<0?ct.text.length:0,ft<0?"before":"after")}function $c(it,st,ct,ht){var ft=Zt(st,it.doc.direction);if(!ft)return aa(st,ct,ht);ct.ch>=st.text.length?(ct.ch=st.text.length,ct.sticky="before"):ct.ch<=0&&(ct.ch=0,ct.sticky="after");var Pt=xt(ft,ct.ch,ct.sticky),Dt=ft[Pt];if(it.doc.direction=="ltr"&&Dt.level%2==0&&(ht>0?Dt.to>ct.ch:Dt.from=Dt.from&&Ze>=Ce.begin)){var ze=ee?"before":"after";return new De(ct.line,Ze,ze)}}var kn=function(ci,Gi,wi){for(var Zi=function(Ws,Va){return Va?new De(ct.line,Gt(Ws,1),"before"):new De(ct.line,Ws,"after")};ci>=0&&ci0==(xo.level!=1),$o=xi?wi.begin:Gt(wi.end,-1);if(xo.from<=$o&&$o0?Ce.end:Gt(Ce.begin,-1);return $n!=null&&!(ht>0&&$n==st.text.length)&&(In=kn(ht>0?0:ft.length-1,ht,Jt($n)),In)?In:null}var Lh={selectAll:sa,singleSelection:function(it){return it.setSelection(it.getCursor("anchor"),it.getCursor("head"),Se)},killLine:function(it){return Ml(it,function(st){if(st.empty()){var ct=Tn(it.doc,st.head.line).text.length;return st.head.ch==ct&&st.head.line0)ft=new De(ft.line,ft.ch+1),it.replaceRange(Pt.charAt(ft.ch-1)+Pt.charAt(ft.ch-2),De(ft.line,ft.ch-2),ft,"+transpose");else if(ft.line>it.doc.first){var Dt=Tn(it.doc,ft.line-1).text;Dt&&(ft=new De(ft.line,1),it.replaceRange(Pt.charAt(0)+it.doc.lineSeparator()+Dt.charAt(Dt.length-1),De(ft.line-1,Dt.length-1),ft,"+transpose"))}}ct.push(new _o(ft,ft))}it.setSelections(ct)})},newlineAndIndent:function(it){return Po(it,function(){for(var st=it.listSelections(),ct=st.length-1;ct>=0;ct--)it.replaceRange(it.doc.lineSeparator(),st[ct].anchor,st[ct].head,"+input");st=it.listSelections();for(var ht=0;htit&&dn(st,this.pos)==0&&ct==this.button};var Rd,Zh;function Og(it,st){var ct=+new Date;return Zh&&Zh.compare(ct,it,st)?(Rd=Zh=null,"triple"):Rd&&Rd.compare(ct,it,st)?(Zh=new Ig(ct,it,st),Rd=null,"double"):(Rd=new Ig(ct,it,st),Zh=null,"single")}function Yu(it){var st=this,ct=st.display;if(!(Rn(st,it)||ct.activeTouch&&ct.input.supportsTouch())){if(ct.input.ensurePolled(),ct.shift=it.shiftKey,yi(ct,it)){ie||(ct.scroller.draggable=!1,setTimeout(function(){return ct.scroller.draggable=!0},100));return}if(!So(st,it)){var ht=qs(st,it),ft=jr(it),Pt=ht?Og(ht,ft):"single";window.focus(),ft==1&&st.state.selectingText&&st.state.selectingText(it),!(ht&&jg(st,ft,ht,Pt,it))&&(ft==1?ht?og(st,ht,Pt,it):Or(it)==ct.scroller&&vo(it):ft==2?(ht&&hd(st.doc,ht),setTimeout(function(){return ct.input.focus()},20)):ft==3&&(At?st.display.input.onContextMenu(it):jn(st)))}}}function jg(it,st,ct,ht,ft){var Pt="Click";return ht=="double"?Pt="Double"+Pt:ht=="triple"&&(Pt="Triple"+Pt),Pt=(st==1?"Left":st==2?"Middle":"Right")+Pt,Eh(it,_c(Pt,ft),ft,function(Dt){if(typeof Dt=="string"&&(Dt=Lh[Dt]),!Dt)return!1;var Gt=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),Gt=Dt(it,ct)!=An}finally{it.state.suppressEdits=!1}return Gt})}function mc(it,st,ct){var ht=it.getOption("configureMouse"),ft=ht?ht(it,st,ct):{};if(ft.unit==null){var Pt=lt?ct.shiftKey&&ct.metaKey:ct.altKey;ft.unit=Pt?"rectangle":st=="single"?"char":st=="double"?"word":"line"}return(ft.extend==null||it.doc.extend)&&(ft.extend=it.doc.extend||ct.shiftKey),ft.addNew==null&&(ft.addNew=dt?ct.metaKey:ct.ctrlKey),ft.moveOnDrag==null&&(ft.moveOnDrag=!(dt?ct.altKey:ct.ctrlKey)),ft}function og(it,st,ct,ht){fe?setTimeout(bn(rn,it),0):it.curOp.focus=xe();var ft=mc(it,ct,ht),Pt=it.doc.sel,Dt;it.options.dragDrop&&gr&&!it.isReadOnly()&&ct=="single"&&(Dt=Pt.contains(st))>-1&&(dn((Dt=Pt.ranges[Dt]).from(),st)<0||st.xRel>0)&&(dn(Dt.to(),st)>0||st.xRel<0)?vc(it,ht,st,ft):ap(it,ht,st,ft)}function vc(it,st,ct,ht){var ft=it.display,Pt=!1,Dt=kr(it,function(Jt){ie&&(ft.scroller.draggable=!1),it.state.draggingText=!1,xn(ft.wrapper.ownerDocument,"mouseup",Dt),xn(ft.wrapper.ownerDocument,"mousemove",Gt),xn(ft.scroller,"dragstart",Rt),xn(ft.scroller,"drop",Dt),Pt||(vo(Jt),ht.addNew||hd(it.doc,ct,null,null,ht.extend),ie&&!Pe||fe&&je==9?setTimeout(function(){ft.wrapper.ownerDocument.body.focus({preventScroll:!0}),ft.input.focus()},20):ft.input.focus())}),Gt=function(Jt){Pt=Pt||Math.abs(st.clientX-Jt.clientX)+Math.abs(st.clientY-Jt.clientY)>=10},Rt=function(){return Pt=!0};ie&&(ft.scroller.draggable=!0),it.state.draggingText=Dt,Dt.copy=!ht.moveOnDrag,ft.scroller.dragDrop&&ft.scroller.dragDrop(),me(ft.wrapper.ownerDocument,"mouseup",Dt),me(ft.wrapper.ownerDocument,"mousemove",Gt),me(ft.scroller,"dragstart",Rt),me(ft.scroller,"drop",Dt),jn(it),setTimeout(function(){return ft.input.focus()},20)}function Rg(it,st,ct){if(ct=="char")return new _o(st,st);if(ct=="word")return it.findWordAt(st);if(ct=="line")return new _o(De(st.line,0),Pi(it.doc,De(st.line+1,0)));var ht=ct(it,st);return new _o(ht.from,ht.to)}function ap(it,st,ct,ht){var ft=it.display,Pt=it.doc;vo(st);var Dt,Gt,Rt=Pt.sel,Jt=Rt.ranges;if(ht.addNew&&!ht.extend?(Gt=Pt.sel.contains(ct),Gt>-1?Dt=Jt[Gt]:Dt=new _o(ct,ct)):(Dt=Pt.sel.primary(),Gt=Pt.sel.primIndex),ht.unit=="rectangle")ht.addNew||(Dt=new _o(ct,ct)),ct=qs(it,st,!0,!0),Gt=-1;else{var Ce=Rg(it,ct,ht.unit);ht.extend?Dt=Ol(Dt,Ce.anchor,Ce.head,ht.extend):Dt=Ce}ht.addNew?Gt==-1?(Gt=Jt.length,Da(Pt,ra(it,Jt.concat([Dt]),Gt),{scroll:!1,origin:"*mouse"})):Jt.length>1&&Jt[Gt].empty()&&ht.unit=="char"&&!ht.extend?(Da(Pt,ra(it,Jt.slice(0,Gt).concat(Jt.slice(Gt+1)),0),{scroll:!1,origin:"*mouse"}),Rt=Pt.sel):oh(Pt,Gt,Dt,sn):(Gt=0,Da(Pt,new wa([Dt],0),sn),Rt=Pt.sel);var ee=ct;function Ze(wi){if(dn(ee,wi)!=0)if(ee=wi,ht.unit=="rectangle"){for(var Zi=[],xo=it.options.tabSize,xi=he(Tn(Pt,ct.line).text,ct.ch,xo),$o=he(Tn(Pt,wi.line).text,wi.ch,xo),Ws=Math.min(xi,$o),Va=Math.max(xi,$o),ea=Math.min(ct.line,wi.line),iu=Math.min(it.lastLine(),Math.max(ct.line,wi.line));ea<=iu;ea++){var Ll=Tn(Pt,ea).text,Ia=Xn(Ll,Ws,xo);Ws==Va?Zi.push(new _o(De(ea,Ia),De(ea,Ia))):Ll.length>Ia&&Zi.push(new _o(De(ea,Ia),De(ea,Xn(Ll,Va,xo))))}Zi.length||Zi.push(new _o(ct,ct)),Da(Pt,ra(it,Rt.ranges.slice(0,Gt).concat(Zi),Gt),{origin:"*mouse",scroll:!1}),it.scrollIntoView(wi)}else{var pu=Dt,yl=Rg(it,wi,ht.unit),Oa=pu.anchor,Ir;dn(yl.anchor,Oa)>0?(Ir=yl.head,Oa=Ii(pu.from(),yl.anchor)):(Ir=yl.anchor,Oa=Vo(pu.to(),yl.head));var la=Rt.ranges.slice(0);la[Gt]=Ar(it,new _o(Pi(Pt,Oa),Ir)),Da(Pt,ra(it,la,Gt),sn)}}var ze=ft.wrapper.getBoundingClientRect(),kn=0;function In(wi){var Zi=++kn,xo=qs(it,wi,!0,ht.unit=="rectangle");if(xo)if(dn(xo,ee)!=0){it.curOp.focus=xe(),Ze(xo);var xi=Ve(ft,Pt);(xo.line>=xi.to||xo.lineze.bottom?20:0;$o&&setTimeout(kr(it,function(){kn==Zi&&(ft.scroller.scrollTop+=$o,In(wi))}),50)}}function $n(wi){it.state.selectingText=!1,kn=1/0,wi&&(vo(wi),ft.input.focus()),xn(ft.wrapper.ownerDocument,"mousemove",ci),xn(ft.wrapper.ownerDocument,"mouseup",Gi),Pt.history.lastSelOrigin=null}var ci=kr(it,function(wi){wi.buttons===0||!jr(wi)?$n(wi):In(wi)}),Gi=kr(it,$n);it.state.selectingText=Gi,me(ft.wrapper.ownerDocument,"mousemove",ci),me(ft.wrapper.ownerDocument,"mouseup",Gi)}function Ar(it,st){var ct=st.anchor,ht=st.head,ft=Tn(it.doc,ct.line);if(dn(ct,ht)==0&&ct.sticky==ht.sticky)return st;var Pt=Zt(ft);if(!Pt)return st;var Dt=xt(Pt,ct.ch,ct.sticky),Gt=Pt[Dt];if(Gt.from!=ct.ch&&Gt.to!=ct.ch)return st;var Rt=Dt+(Gt.from==ct.ch==(Gt.level!=1)?0:1);if(Rt==0||Rt==Pt.length)return st;var Jt;if(ht.line!=ct.line)Jt=(ht.line-ct.line)*(it.doc.direction=="ltr"?1:-1)>0;else{var Ce=xt(Pt,ht.ch,ht.sticky),ee=Ce-Dt||(ht.ch-ct.ch)*(Gt.level==1?-1:1);Ce==Rt-1||Ce==Rt?Jt=ee<0:Jt=ee>0}var Ze=Pt[Rt+(Jt?-1:0)],ze=Jt==(Ze.level==1),kn=ze?Ze.from:Ze.to,In=ze?"after":"before";return ct.ch==kn&&ct.sticky==In?st:new _o(new De(ct.line,kn,In),ht)}function Xi(it,st,ct,ht){var ft,Pt;if(st.touches)ft=st.touches[0].clientX,Pt=st.touches[0].clientY;else try{ft=st.clientX,Pt=st.clientY}catch(Ze){return!1}if(ft>=Math.floor(it.display.gutters.getBoundingClientRect().right))return!1;ht&&vo(st);var Dt=it.display,Gt=Dt.lineDiv.getBoundingClientRect();if(Pt>Gt.bottom||!Qi(it,ct))return er(st);Pt-=Gt.top-Dt.viewOffset;for(var Rt=0;Rt=ft){var Ce=mn(it.doc,Pt),ee=it.display.gutterSpecs[Rt];return yn(it,ct,it,Ce,ee.className,st),er(st)}}}function So(it,st){return Xi(it,st,"gutterClick",!0)}function Mr(it,st){yi(it.display,st)||Ks(it,st)||Rn(it,st,"contextmenu")||At||it.display.input.onContextMenu(st)}function Ks(it,st){return Qi(it,"gutterContextMenu")?Xi(it,st,"gutterContextMenu",!1):!1}function kh(it){it.display.wrapper.className=it.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+it.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ka(it)}var el={toString:function(){return"CodeMirror.Init"}},hh={},ku={};function zd(it){var st=it.optionHandlers;function ct(ht,ft,Pt,Dt){it.defaults[ht]=ft,Pt&&(st[ht]=Dt?function(Gt,Rt,Jt){Jt!=el&&Pt(Gt,Rt,Jt)}:Pt)}it.defineOption=ct,it.Init=el,ct("value","",function(ht,ft){return ht.setValue(ft)},!0),ct("mode",null,function(ht,ft){ht.doc.modeOption=ft,yo(ht)},!0),ct("indentUnit",2,yo,!0),ct("indentWithTabs",!1),ct("smartIndent",!0),ct("tabSize",4,function(ht){Hr(ht),ka(ht),fs(ht)},!0),ct("lineSeparator",null,function(ht,ft){if(ht.doc.lineSep=ft,!!ft){var Pt=[],Dt=ht.doc.first;ht.doc.iter(function(Rt){for(var Jt=0;;){var Ce=Rt.text.indexOf(ft,Jt);if(Ce==-1)break;Jt=Ce+ft.length,Pt.push(De(Dt,Ce))}Dt++});for(var Gt=Pt.length-1;Gt>=0;Gt--)Gh(ht.doc,ft,Pt[Gt],De(Pt[Gt].line,Pt[Gt].ch+ft.length))}}),ct("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ht,ft,Pt){ht.state.specialChars=new RegExp(ft.source+(ft.test(" ")?"":"| "),"g"),Pt!=el&&ht.refresh()}),ct("specialCharPlaceholder",oa,function(ht){return ht.refresh()},!0),ct("electricChars",!0),ct("inputStyle",nt?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ct("spellcheck",!1,function(ht,ft){return ht.getInputField().spellcheck=ft},!0),ct("autocorrect",!1,function(ht,ft){return ht.getInputField().autocorrect=ft},!0),ct("autocapitalize",!1,function(ht,ft){return ht.getInputField().autocapitalize=ft},!0),ct("rtlMoveVisually",!pt),ct("wholeLineUpdateBefore",!0),ct("theme","default",function(ht){kh(ht),zs(ht)},!0),ct("keyMap","default",function(ht,ft,Pt){var Dt=Vh(ft),Gt=Pt!=el&&Vh(Pt);Gt&&Gt.detach&&Gt.detach(ht,Dt),Dt.attach&&Dt.attach(ht,Gt||null)}),ct("extraKeys",null),ct("configureMouse",null),ct("lineWrapping",!1,Au,!0),ct("gutters",[],function(ht,ft){ht.display.gutterSpecs=Fr(ft,ht.options.lineNumbers),zs(ht)},!0),ct("fixedGutter",!0,function(ht,ft){ht.display.gutters.style.left=ft?as(ht.display)+"px":"0",ht.refresh()},!0),ct("coverGutterNextToScrollbar",!1,function(ht){return Xo(ht)},!0),ct("scrollbarStyle","native",function(ht){es(ht),Xo(ht),ht.display.scrollbars.setScrollTop(ht.doc.scrollTop),ht.display.scrollbars.setScrollLeft(ht.doc.scrollLeft)},!0),ct("lineNumbers",!1,function(ht,ft){ht.display.gutterSpecs=Fr(ht.options.gutters,ft),zs(ht)},!0),ct("firstLineNumber",1,zs,!0),ct("lineNumberFormatter",function(ht){return ht},zs,!0),ct("showCursorWhenSelecting",!1,le,!0),ct("resetSelectionOnContextMenu",!0),ct("lineWiseCopyCut",!0),ct("pasteLinesPerSelection",!0),ct("selectionsMayTouch",!1),ct("readOnly",!1,function(ht,ft){ft=="nocursor"&&(Mn(ht),ht.display.input.blur()),ht.display.input.readOnlyChanged(ft)}),ct("screenReaderLabel",null,function(ht,ft){ft=ft===""?null:ft,ht.display.input.screenReaderLabelChanged(ft)}),ct("disableInput",!1,function(ht,ft){ft||ht.display.input.reset()},!0),ct("dragDrop",!0,dh),ct("allowDropFileTypes",null),ct("cursorBlinkRate",530),ct("cursorScrollMargin",0),ct("cursorHeight",1,le,!0),ct("singleCursorHeightPerLine",!0,le,!0),ct("workTime",100),ct("workDelay",100),ct("flattenSpans",!0,Hr,!0),ct("addModeClass",!1,Hr,!0),ct("pollInterval",100),ct("undoDepth",200,function(ht,ft){return ht.doc.history.undoDepth=ft}),ct("historyEventDelay",1250),ct("viewportMargin",10,function(ht){return ht.refresh()},!0),ct("maxHighlightLength",1e4,Hr,!0),ct("moveInputWithCursor",!0,function(ht,ft){ft||ht.display.input.resetPosition()}),ct("tabindex",null,function(ht,ft){return ht.display.input.getField().tabIndex=ft||""}),ct("autofocus",null),ct("direction","ltr",function(ht,ft){return ht.doc.setDirection(ft)},!0),ct("phrases",null)}function dh(it,st,ct){var ht=ct&&ct!=el;if(!st!=!ht){var ft=it.display.dragFunctions,Pt=st?me:xn;Pt(it.display.scroller,"dragstart",ft.start),Pt(it.display.scroller,"dragenter",ft.enter),Pt(it.display.scroller,"dragover",ft.over),Pt(it.display.scroller,"dragleave",ft.leave),Pt(it.display.scroller,"drop",ft.drop)}}function Au(it){it.options.lineWrapping?(Re(it.display.wrapper,"CodeMirror-wrap"),it.display.sizer.style.minWidth="",it.display.sizerWidth=null):(Kt(it.display.wrapper,"CodeMirror-wrap"),rs(it)),Vi(it),fs(it),ka(it),setTimeout(function(){return Xo(it)},100)}function Nr(it,st){var ct=this;if(!(this instanceof Nr))return new Nr(it,st);this.options=st=st?cn(st):{},cn(hh,st,!1);var ht=st.value;typeof ht=="string"?ht=new Ya(ht,st.mode,null,st.lineSeparator,st.direction):st.mode&&(ht.modeOption=st.mode),this.doc=ht;var ft=new Nr.inputStyles[st.inputStyle](this),Pt=this.display=new _l(it,ht,ft,st);Pt.wrapper.CodeMirror=this,kh(this),st.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),es(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Qt,keySeq:null,specialChars:null},st.autofocus&&!nt&&Pt.input.focus(),fe&&je<11&&setTimeout(function(){return ct.display.input.reset(!0)},20),rg(this),$l(),Gr(this),this.curOp.forceUpdate=!0,nh(this,ht),st.autofocus&&!nt||this.hasFocus()?setTimeout(function(){ct.hasFocus()&&!ct.state.focused&&an(ct)},20):Mn(this);for(var Dt in ku)ku.hasOwnProperty(Dt)&&ku[Dt](this,st[Dt],el);Ms(this),st.finishInit&&st.finishInit(this);for(var Gt=0;Gt20*20}me(st.scroller,"touchstart",function(Rt){if(!Rn(it,Rt)&&!Pt(Rt)&&!So(it,Rt)){st.input.ensurePolled(),clearTimeout(ct);var Jt=+new Date;st.activeTouch={start:Jt,moved:!1,prev:Jt-ht.end<=300?ht:null},Rt.touches.length==1&&(st.activeTouch.left=Rt.touches[0].pageX,st.activeTouch.top=Rt.touches[0].pageY)}}),me(st.scroller,"touchmove",function(){st.activeTouch&&(st.activeTouch.moved=!0)}),me(st.scroller,"touchend",function(Rt){var Jt=st.activeTouch;if(Jt&&!yi(st,Rt)&&Jt.left!=null&&!Jt.moved&&new Date-Jt.start<300){var Ce=it.coordsChar(st.activeTouch,"page"),ee;!Jt.prev||Dt(Jt,Jt.prev)?ee=new _o(Ce,Ce):!Jt.prev.prev||Dt(Jt,Jt.prev.prev)?ee=it.findWordAt(Ce):ee=new _o(De(Ce.line,0),Pi(it.doc,De(Ce.line+1,0))),it.setSelection(ee.anchor,ee.head),it.focus(),vo(Rt)}ft()}),me(st.scroller,"touchcancel",ft),me(st.scroller,"scroll",function(){st.scroller.clientHeight&&(zo(it,st.scroller.scrollTop),fr(it,st.scroller.scrollLeft,!0),yn(it,"scroll",it))}),me(st.scroller,"mousewheel",function(Rt){return Ls(it,Rt)}),me(st.scroller,"DOMMouseScroll",function(Rt){return Ls(it,Rt)}),me(st.wrapper,"scroll",function(){return st.wrapper.scrollTop=st.wrapper.scrollLeft=0}),st.dragFunctions={enter:function(Rt){Rn(it,Rt)||As(Rt)},over:function(Rt){Rn(it,Rt)||(Kc(it,Rt),As(Rt))},start:function(Rt){return mf(it,Rt)},drop:kr(it,Zc),leave:function(Rt){Rn(it,Rt)||vf(it)}};var Gt=st.input.getField();me(Gt,"keyup",function(Rt){return ig.call(it,Rt)}),me(Gt,"keydown",kr(it,ng)),me(Gt,"keypress",kr(it,Eu)),me(Gt,"focus",function(Rt){return an(it,Rt)}),me(Gt,"blur",function(Rt){return Mn(it,Rt)})}var yc=[];Nr.defineInitHook=function(it){return yc.push(it)};function Ua(it,st,ct,ht){var ft=it.doc,Pt;ct==null&&(ct="add"),ct=="smart"&&(ft.mode.indent?Pt=ko(it,st).state:ct="prev");var Dt=it.options.tabSize,Gt=Tn(ft,st),Rt=he(Gt.text,null,Dt);Gt.stateAfter&&(Gt.stateAfter=null);var Jt=Gt.text.match(/^\s*/)[0],Ce;if(!ht&&!/\S/.test(Gt.text))Ce=0,ct="not";else if(ct=="smart"&&(Ce=ft.mode.indent(Pt,Gt.text.slice(Jt.length),Gt.text),Ce==An||Ce>150)){if(!ht)return;ct="prev"}ct=="prev"?st>ft.first?Ce=he(Tn(ft,st-1).text,null,Dt):Ce=0:ct=="add"?Ce=Rt+it.options.indentUnit:ct=="subtract"?Ce=Rt-it.options.indentUnit:typeof ct=="number"&&(Ce=Rt+ct),Ce=Math.max(0,Ce);var ee="",Ze=0;if(it.options.indentWithTabs)for(var ze=Math.floor(Ce/Dt);ze;--ze)Ze+=Dt,ee+=" ";if(ZeDt,Rt=qi(st),Jt=null;if(Gt&&ht.ranges.length>1)if(nu&&nu.text.join(` +`)==st){if(ht.ranges.length%nu.text.length==0){Jt=[];for(var Ce=0;Ce=0;Ze--){var ze=ht.ranges[Ze],kn=ze.from(),In=ze.to();ze.empty()&&(ct&&ct>0?kn=De(kn.line,kn.ch-ct):it.state.overwrite&&!Gt?In=De(In.line,Math.min(Tn(Pt,In.line).text.length,In.ch+re(Rt).length)):Gt&&nu&&nu.lineWise&&nu.text.join(` `)==Rt.join(` `)&&(kn=In=De(kn.line,0)));var $n={from:kn,to:In,text:Jt?Jt[Ze%Jt.length]:Rt,origin:ft||(Gt?"paste":it.state.cutIncoming>Dt?"cut":"+input")};Hu(it.doc,$n),gi(it,"inputRead",it,$n)}st&&!Gt&&up(it,st),Ni(it),it.curOp.updateInput<2&&(it.curOp.updateInput=ee),it.curOp.typing=!0,it.state.pasteIncoming=it.state.cutIncoming=-1}function lp(it,st){var ct=it.clipboardData&&it.clipboardData.getData("Text");if(ct)return it.preventDefault(),!st.isReadOnly()&&!st.options.disableInput&&Po(st,function(){return zg(st,ct,0,null,"paste")}),!0}function up(it,st){if(!(!it.options.electricChars||!it.options.smartIndent))for(var ct=it.doc.sel,ht=ct.ranges.length-1;ht>=0;ht--){var ft=ct.ranges[ht];if(!(ft.head.ch>100||ht&&ct.ranges[ht-1].head.line==ft.head.line)){var Pt=it.getModeAt(ft.head),Dt=!1;if(Pt.electricChars){for(var Gt=0;Gt-1){Dt=Ua(it,ft.head.line,"smart");break}}else Pt.electricInput&&Pt.electricInput.test(Tn(it.doc,ft.head.line).text.slice(0,ft.head.ch))&&(Dt=Ua(it,ft.head.line,"smart"));Dt&&gi(it,"electricInput",it,ft.head.line)}}}function hp(it){for(var st=[],ct=[],ht=0;htPt&&(Ua(this,Gt.head.line,ht,!0),Pt=Gt.head.line,Dt==this.doc.sel.primIndex&&Ni(this));else{var Rt=Gt.from(),Jt=Gt.to(),Ce=Math.max(Pt,Rt.line);Pt=Math.min(this.lastLine(),Jt.line-(Jt.ch?0:1))+1;for(var ee=Ce;ee0&&oh(this.doc,Dt,new _o(Rt,Ze[Dt].to()),Se)}}}),getTokenAt:function(ht,ft){return Ai(this,ht,ft)},getLineTokens:function(ht,ft){return Ai(this,De(ht),ft,!0)},getTokenTypeAt:function(ht){ht=Pi(this.doc,ht);var ft=ur(this,Tn(this.doc,ht.line)),Pt=0,Dt=(ft.length-1)/2,Gt=ht.ch,Rt;if(Gt==0)Rt=ft[2];else for(;;){var Jt=Pt+Dt>>1;if((Jt?ft[Jt*2-1]:0)>=Gt)Dt=Jt;else if(ft[Jt*2+1]Rt&&(ht=Rt,Dt=!0),Gt=Tn(this.doc,ht)}else Gt=ht;return oo(this,Gt,{top:0,left:0},ft||"page",Pt||Dt).top+(Dt?this.doc.height-No(Gt):0)},defaultTextHeight:function(){return js(this.display)},defaultCharWidth:function(){return Fl(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ht,ft,Pt,Dt,Gt){var Rt=this.display;ht=Er(this,Pi(this.doc,ht));var Jt=ht.bottom,Ce=ht.left;if(ft.style.position="absolute",ft.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ft),Rt.sizer.appendChild(ft),Dt=="over")Jt=ht.top;else if(Dt=="above"||Dt=="near"){var ee=Math.max(Rt.wrapper.clientHeight,this.doc.height),Ze=Math.max(Rt.sizer.clientWidth,Rt.lineSpace.clientWidth);(Dt=="above"||ht.bottom+ft.offsetHeight>ee)&&ht.top>ft.offsetHeight?Jt=ht.top-ft.offsetHeight:ht.bottom+ft.offsetHeight<=ee&&(Jt=ht.bottom),Ce+ft.offsetWidth>Ze&&(Ce=Ze-ft.offsetWidth)}ft.style.top=Jt+"px",ft.style.left=ft.style.right="",Gt=="right"?(Ce=Rt.sizer.clientWidth-ft.offsetWidth,ft.style.right="0px"):(Gt=="left"?Ce=0:Gt=="middle"&&(Ce=(Rt.sizer.clientWidth-ft.offsetWidth)/2),ft.style.left=Ce+"px"),Pt&&Ei(this,{left:Ce,top:Jt,right:Ce+ft.offsetWidth,bottom:Jt+ft.offsetHeight})},triggerOnKeyDown:xr(ng),triggerOnKeyPress:xr(Eu),triggerOnKeyUp:ig,triggerOnMouseDown:xr(Yu),execCommand:function(ht){if(Lh.hasOwnProperty(ht))return Lh[ht].call(null,this)},triggerElectric:xr(function(ht){up(this,ht)}),findPosH:function(ht,ft,Pt,Dt){var Gt=1;ft<0&&(Gt=-1,ft=-ft);for(var Rt=Pi(this.doc,ht),Jt=0;Jt0&&Ce(Pt.charAt(Dt-1));)--Dt;for(;Gt.5||this.options.lineWrapping)&&Vi(this),yn(this,"refresh",this)}),swapDoc:xr(function(ht){var ft=this.doc;return ft.cm=null,this.state.selectingText&&this.state.selectingText(),nh(this,ht),ka(this),this.display.input.reset(),ki(this,ht.scrollLeft,ht.scrollTop),this.curOp.forceScroll=!0,gi(this,"swapDoc",this,ft),ft}),phrase:function(ht){var ft=this.options.phrases;return ft&&Object.prototype.hasOwnProperty.call(ft,ht)?ft[ht]:ht},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ti(it),it.registerHelper=function(ht,ft,Pt){ct.hasOwnProperty(ht)||(ct[ht]=it[ht]={_global:[]}),ct[ht][ft]=Pt},it.registerGlobalHelper=function(ht,ft,Pt,Dt){it.registerHelper(ht,ft,Dt),ct[ht]._global.push({pred:Pt,val:Dt})}}function Gg(it,st,ct,ht,ft){var Pt=st,Dt=ct,Gt=Tn(it,st.line),Rt=ft&&it.direction=="rtl"?-ct:ct;function Jt(){var Gi=st.line+Rt;return Gi=it.first+it.size?!1:(st=new De(Gi,st.ch,st.sticky),Gt=Tn(it,Gi))}function Ce(Gi){var wi;if(ht=="codepoint"){var Zi=Gt.text.charCodeAt(st.ch+(ht>0?0:-1));isNaN(Zi)?wi=null:wi=new De(st.line,Math.max(0,Math.min(Gt.text.length,st.ch+ct*(Zi>=55296&&Zi<56320?2:1))),-ct)}else ft?wi=$c(it.cm,Gt,st,ct):wi=aa(Gt,st,ct);if(wi==null)if(!Gi&&Jt())st=Id(ft,it.cm,Gt,st.line,Rt);else return!1;else st=wi;return!0}if(ht=="char"||ht=="codepoint")Ce();else if(ht=="column")Ce(!0);else if(ht=="word"||ht=="group")for(var ee=null,Ze=ht=="group",ze=it.cm&&it.cm.getHelper(st,"wordChars"),kn=!0;!(ct<0&&!Ce(!kn));kn=!1){var In=Gt.text.charAt(st.ch)||` `,$n=pn(In,ze)?"w":Ze&&In==` -`?"n":!Ze||/\s/.test(In)?null:"p";if(Ze&&!kn&&!$n&&($n="s"),ee&&ee!=$n){ct<0&&(ct=1,Ce(),st.sticky="after");break}if($n&&(ee=$n),ct>0&&!Ce(!kn))break}var ci=uc(it,st,Pt,Dt,!0);return ro(Pt,ci)&&(ci.hitSide=!0),ci}function Hd(it,st,ct,ht){var ft=it.doc,Pt=st.left,Dt;if(ht=="page"){var Gt=Math.min(it.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Rt=Math.max(Gt-.5*js(it.display),3);Dt=(ct>0?st.bottom:st.top)+ct*Rt}else ht=="line"&&(Dt=ct>0?st.bottom+3:st.top-3);for(var Jt;Jt=jh(it,Pt,Dt),!!Jt.outside;){if(ct<0?Dt<=0:Dt>=ft.height){Jt.hitSide=!0;break}Dt+=ct*5}return Jt}var vs=function(it){this.cm=it,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Qt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};vs.prototype.init=function(it){var st=this,ct=this,ht=ct.cm,ft=ct.div=it.lineDiv;dp(ft,ht.options.spellcheck,ht.options.autocorrect,ht.options.autocapitalize);function Pt(Gt){for(var Rt=Gt.target;Rt;Rt=Rt.parentNode){if(Rt==ft)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Rt.className))break}return!1}me(ft,"paste",function(Gt){!Pt(Gt)||Rn(ht,Gt)||lp(Gt,ht)||je<=11&&setTimeout(kr(ht,function(){return st.updateFromDOM()}),20)}),me(ft,"compositionstart",function(Gt){st.composing={data:Gt.data,done:!1}}),me(ft,"compositionupdate",function(Gt){st.composing||(st.composing={data:Gt.data,done:!1})}),me(ft,"compositionend",function(Gt){st.composing&&(Gt.data!=st.composing.data&&st.readFromDOMSoon(),st.composing.done=!0)}),me(ft,"touchstart",function(){return ct.forceCompositionEnd()}),me(ft,"input",function(){st.composing||st.readFromDOMSoon()});function Dt(Gt){if(!(!Pt(Gt)||Rn(ht,Gt))){if(ht.somethingSelected())Sc({lineWise:!1,text:ht.getSelections()}),Gt.type=="cut"&&ht.replaceSelection("",null,"cut");else if(ht.options.lineWiseCopyCut){var Rt=hp(ht);Sc({lineWise:!0,text:Rt.text}),Gt.type=="cut"&&ht.operation(function(){ht.setSelections(Rt.ranges,0,Se),ht.replaceSelection("",null,"cut")})}else return;if(Gt.clipboardData){Gt.clipboardData.clearData();var Jt=eu.text.join(` -`);if(Gt.clipboardData.setData("Text",Jt),Gt.clipboardData.getData("Text")==Jt){Gt.preventDefault();return}}var Ce=cp(),ee=Ce.firstChild;ht.display.lineSpace.insertBefore(Ce,ht.display.lineSpace.firstChild),ee.value=eu.text.join(` +`?"n":!Ze||/\s/.test(In)?null:"p";if(Ze&&!kn&&!$n&&($n="s"),ee&&ee!=$n){ct<0&&(ct=1,Ce(),st.sticky="after");break}if($n&&(ee=$n),ct>0&&!Ce(!kn))break}var ci=uc(it,st,Pt,Dt,!0);return ro(Pt,ci)&&(ci.hitSide=!0),ci}function Hd(it,st,ct,ht){var ft=it.doc,Pt=st.left,Dt;if(ht=="page"){var Gt=Math.min(it.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Rt=Math.max(Gt-.5*js(it.display),3);Dt=(ct>0?st.bottom:st.top)+ct*Rt}else ht=="line"&&(Dt=ct>0?st.bottom+3:st.top-3);for(var Jt;Jt=jh(it,Pt,Dt),!!Jt.outside;){if(ct<0?Dt<=0:Dt>=ft.height){Jt.hitSide=!0;break}Dt+=ct*5}return Jt}var vs=function(it){this.cm=it,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Qt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};vs.prototype.init=function(it){var st=this,ct=this,ht=ct.cm,ft=ct.div=it.lineDiv;dp(ft,ht.options.spellcheck,ht.options.autocorrect,ht.options.autocapitalize);function Pt(Gt){for(var Rt=Gt.target;Rt;Rt=Rt.parentNode){if(Rt==ft)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Rt.className))break}return!1}me(ft,"paste",function(Gt){!Pt(Gt)||Rn(ht,Gt)||lp(Gt,ht)||je<=11&&setTimeout(kr(ht,function(){return st.updateFromDOM()}),20)}),me(ft,"compositionstart",function(Gt){st.composing={data:Gt.data,done:!1}}),me(ft,"compositionupdate",function(Gt){st.composing||(st.composing={data:Gt.data,done:!1})}),me(ft,"compositionend",function(Gt){st.composing&&(Gt.data!=st.composing.data&&st.readFromDOMSoon(),st.composing.done=!0)}),me(ft,"touchstart",function(){return ct.forceCompositionEnd()}),me(ft,"input",function(){st.composing||st.readFromDOMSoon()});function Dt(Gt){if(!(!Pt(Gt)||Rn(ht,Gt))){if(ht.somethingSelected())Sc({lineWise:!1,text:ht.getSelections()}),Gt.type=="cut"&&ht.replaceSelection("",null,"cut");else if(ht.options.lineWiseCopyCut){var Rt=hp(ht);Sc({lineWise:!0,text:Rt.text}),Gt.type=="cut"&&ht.operation(function(){ht.setSelections(Rt.ranges,0,Se),ht.replaceSelection("",null,"cut")})}else return;if(Gt.clipboardData){Gt.clipboardData.clearData();var Jt=nu.text.join(` +`);if(Gt.clipboardData.setData("Text",Jt),Gt.clipboardData.getData("Text")==Jt){Gt.preventDefault();return}}var Ce=cp(),ee=Ce.firstChild;ht.display.lineSpace.insertBefore(Ce,ht.display.lineSpace.firstChild),ee.value=nu.text.join(` `);var Ze=document.activeElement;fn(ee),setTimeout(function(){ht.display.lineSpace.removeChild(Ce),Ze.focus(),Ze==ft&&ct.showPrimarySelection()},50)}}me(ft,"copy",Dt),me(ft,"cut",Dt)},vs.prototype.screenReaderLabelChanged=function(it){it?this.div.setAttribute("aria-label",it):this.div.removeAttribute("aria-label")},vs.prototype.prepareSelection=function(){var it=de(this.cm,!1);return it.focus=document.activeElement==this.div,it},vs.prototype.showSelection=function(it,st){!it||!this.cm.display.view.length||((it.focus||st)&&this.showPrimarySelection(),this.showMultipleSelections(it))},vs.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},vs.prototype.showPrimarySelection=function(){var it=this.getSelection(),st=this.cm,ct=st.doc.sel.primary(),ht=ct.from(),ft=ct.to();if(st.display.viewTo==st.display.viewFrom||ht.line>=st.display.viewTo||ft.line=st.display.viewFrom&&xf(st,ht)||{node:Gt[0].measure.map[2],offset:0},Jt=ft.lineit.firstLine()&&(ht=De(ht.line-1,Tn(it.doc,ht.line-1).length)),ft.ch==Tn(it.doc,ft.line).text.length&&ft.linest.viewTo-1)return!1;var Pt,Dt,Gt;ht.line==st.viewFrom||(Pt=vl(it,ht.line))==0?(Dt=oe(st.view[0].line),Gt=st.view[0].node):(Dt=oe(st.view[Pt].line),Gt=st.view[Pt-1].node.nextSibling);var Rt=vl(it,ft.line),Jt,Ce;if(Rt==st.view.length-1?(Jt=st.viewTo-1,Ce=st.lineDiv.lastChild):(Jt=oe(st.view[Rt+1].line)-1,Ce=st.view[Rt+1].node.previousSibling),!Gt)return!1;for(var ee=it.doc.splitLines(ag(it,Gt,Ce,Dt,Jt)),Ze=Si(it.doc,De(Dt,0),De(Jt,Tn(it.doc,Jt).text.length));ee.length>1&&Ze.length>1;)if(re(ee)==re(Ze))ee.pop(),Ze.pop(),Jt--;else if(ee[0]==Ze[0])ee.shift(),Ze.shift(),Dt++;else break;for(var ze=0,kn=0,In=ee[0],$n=Ze[0],ci=Math.min(In.length,$n.length);zeht.ch&&Gi.charCodeAt(Gi.length-kn-1)==wi.charCodeAt(wi.length-kn-1);)ze--,kn++;ee[ee.length-1]=Gi.slice(0,Gi.length-kn).replace(/^\u200b+/,""),ee[0]=ee[0].slice(ze).replace(/\u200b+$/,"");var xo=De(Dt,ze),xi=De(Jt,Ze.length?re(Ze).length-kn:0);if(ee.length>1||ee[0]||dn(xo,xi))return Gh(it.doc,ee,xo,xi,"+input"),!0},vs.prototype.ensurePolled=function(){this.forceCompositionEnd()},vs.prototype.reset=function(){this.forceCompositionEnd()},vs.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},vs.prototype.readFromDOMSoon=function(){var it=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(it.readDOMTimeout=null,it.composing)if(it.composing.done)it.composing=null;else return;it.updateFromDOM()},80))},vs.prototype.updateFromDOM=function(){var it=this;(this.cm.isReadOnly()||!this.pollContent())&&Po(this.cm,function(){return fs(it.cm)})},vs.prototype.setUneditable=function(it){it.contentEditable="false"},vs.prototype.onKeyPress=function(it){it.charCode==0||this.composing||(it.preventDefault(),this.cm.isReadOnly()||kr(this.cm,zg)(this.cm,String.fromCharCode(it.charCode==null?it.keyCode:it.charCode),0))},vs.prototype.readOnlyChanged=function(it){this.div.contentEditable=String(it!="nocursor")},vs.prototype.onContextMenu=function(){},vs.prototype.resetPosition=function(){},vs.prototype.needsContentAttribute=!0;function xf(it,st){var ct=Ui(it,st.line);if(!ct||ct.hidden)return null;var ht=Tn(it.doc,st.line),ft=Wi(ct,ht,st.line),Pt=Zt(ht,it.doc.direction),Dt="left";if(Pt){var Gt=xt(Pt,st.ch);Dt=Gt%2?"right":"left"}var Rt=Io(ft.map,st.ch,Dt);return Rt.offset=Rt.collapse=="right"?Rt.end:Rt.start,Rt}function gp(it){for(var st=it;st;st=st.parentNode)if(/CodeMirror-gutter-wrapper/.test(st.className))return!0;return!1}function sg(it,st){return st&&(it.bad=!0),it}function ag(it,st,ct,ht,ft){var Pt="",Dt=!1,Gt=it.doc.lineSeparator(),Rt=!1;function Jt(ze){return function(kn){return kn.id==ze}}function Ce(){Dt&&(Pt+=Gt,Rt&&(Pt+=Gt),Dt=Rt=!1)}function ee(ze){ze&&(Ce(),Pt+=ze)}function Ze(ze){if(ze.nodeType==1){var kn=ze.getAttribute("cm-text");if(kn){ee(kn);return}var In=ze.getAttribute("cm-marker"),$n;if(In){var ci=it.findMarks(De(ht,0),De(ft+1,0),Jt(+In));ci.length&&($n=ci[0].find(0))&&ee(Si(it.doc,$n.from,$n.to).join(Gt));return}if(ze.getAttribute("contenteditable")=="false")return;var Gi=/^(pre|div|p|li|table|br)$/i.test(ze.nodeName);if(!/^br$/i.test(ze.nodeName)&&ze.textContent.length==0)return;Gi&&Ce();for(var wi=0;wi=9&&st.hasSelection&&(st.hasSelection=null),ct.poll()}),me(ft,"paste",function(Dt){Rn(ht,Dt)||lp(Dt,ht)||(ht.state.pasteIncoming=+new Date,ct.fastPoll())});function Pt(Dt){if(!Rn(ht,Dt)){if(ht.somethingSelected())Sc({lineWise:!1,text:ht.getSelections()});else if(ht.options.lineWiseCopyCut){var Gt=hp(ht);Sc({lineWise:!0,text:Gt.text}),Dt.type=="cut"?ht.setSelections(Gt.ranges,null,Se):(ct.prevInput="",ft.value=Gt.text.join(` `),fn(ft))}else return;Dt.type=="cut"&&(ht.state.cutIncoming=+new Date)}}me(ft,"cut",Pt),me(ft,"copy",Pt),me(it.scroller,"paste",function(Dt){if(!(yi(it,Dt)||Rn(ht,Dt))){if(!ft.dispatchEvent){ht.state.pasteIncoming=+new Date,ct.focus();return}var Gt=new Event("paste");Gt.clipboardData=Dt.clipboardData,ft.dispatchEvent(Gt)}}),me(it.lineSpace,"selectstart",function(Dt){yi(it,Dt)||vo(Dt)}),me(ft,"compositionstart",function(){var Dt=ht.getCursor("from");ct.composing&&ct.composing.range.clear(),ct.composing={start:Dt,range:ht.markText(Dt,ht.getCursor("to"),{className:"CodeMirror-composing"})}}),me(ft,"compositionend",function(){ct.composing&&(ct.poll(),ct.composing.range.clear(),ct.composing=null)})},Ba.prototype.createField=function(it){this.wrapper=cp(),this.textarea=this.wrapper.firstChild},Ba.prototype.screenReaderLabelChanged=function(it){it?this.textarea.setAttribute("aria-label",it):this.textarea.removeAttribute("aria-label")},Ba.prototype.prepareSelection=function(){var it=this.cm,st=it.display,ct=it.doc,ht=de(it);if(it.options.moveInputWithCursor){var ft=Er(it,ct.sel.primary().head,"div"),Pt=st.wrapper.getBoundingClientRect(),Dt=st.lineDiv.getBoundingClientRect();ht.teTop=Math.max(0,Math.min(st.wrapper.clientHeight-10,ft.top+Dt.top-Pt.top)),ht.teLeft=Math.max(0,Math.min(st.wrapper.clientWidth-10,ft.left+Dt.left-Pt.left))}return ht},Ba.prototype.showSelection=function(it){var st=this.cm,ct=st.display;ne(ct.cursorDiv,it.cursors),ne(ct.selectionDiv,it.selection),it.teTop!=null&&(this.wrapper.style.top=it.teTop+"px",this.wrapper.style.left=it.teLeft+"px")},Ba.prototype.reset=function(it){if(!(this.contextMenuPending||this.composing)){var st=this.cm;if(st.somethingSelected()){this.prevInput="";var ct=st.getSelection();this.textarea.value=ct,st.state.focused&&fn(this.textarea),fe&&je>=9&&(this.hasSelection=ct)}else it||(this.prevInput=this.textarea.value="",fe&&je>=9&&(this.hasSelection=null))}},Ba.prototype.getField=function(){return this.textarea},Ba.prototype.supportsTouch=function(){return!1},Ba.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!nt||xe()!=this.textarea))try{this.textarea.focus()}catch(it){}},Ba.prototype.blur=function(){this.textarea.blur()},Ba.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ba.prototype.receivedFocus=function(){this.slowPoll()},Ba.prototype.slowPoll=function(){var it=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){it.poll(),it.cm.state.focused&&it.slowPoll()})},Ba.prototype.fastPoll=function(){var it=!1,st=this;st.pollingFast=!0;function ct(){var ht=st.poll();!ht&&!it?(it=!0,st.polling.set(60,ct)):(st.pollingFast=!1,st.slowPoll())}st.polling.set(20,ct)},Ba.prototype.poll=function(){var it=this,st=this.cm,ct=this.textarea,ht=this.prevInput;if(this.contextMenuPending||!st.state.focused||Ct(ct)&&!ht&&!this.composing||st.isReadOnly()||st.options.disableInput||st.state.keySeq)return!1;var ft=ct.value;if(ft==ht&&!st.somethingSelected())return!1;if(fe&&je>=9&&this.hasSelection===ft||dt&&/[\uf700-\uf7ff]/.test(ft))return st.display.input.reset(),!1;if(st.doc.sel==st.display.selForContextMenu){var Pt=ft.charCodeAt(0);if(Pt==8203&&!ht&&(ht="\u200B"),Pt==8666)return this.reset(),this.cm.execCommand("undo")}for(var Dt=0,Gt=Math.min(ht.length,ft.length);Dt1e3||ft.indexOf(` `)>-1?ct.value=it.prevInput="":it.prevInput=ft,it.composing&&(it.composing.range.clear(),it.composing.range=st.markText(it.composing.start,st.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ba.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ba.prototype.onKeyPress=function(){fe&&je>=9&&(this.hasSelection=null),this.fastPoll()},Ba.prototype.onContextMenu=function(it){var st=this,ct=st.cm,ht=ct.display,ft=st.textarea;st.contextMenuPending&&st.contextMenuPending();var Pt=qs(ct,it),Dt=ht.scroller.scrollTop;if(!Pt||Le)return;var Gt=ct.options.resetSelectionOnContextMenu;Gt&&ct.doc.sel.contains(Pt)==-1&&kr(ct,Da)(ct.doc,Ha(Pt),Se);var Rt=ft.style.cssText,Jt=st.wrapper.style.cssText,Ce=st.wrapper.offsetParent.getBoundingClientRect();st.wrapper.style.cssText="position: static",ft.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(it.clientY-Ce.top-5)+"px; left: "+(it.clientX-Ce.left-5)+`px; z-index: 1000; background: `+(fe?"rgba(255, 255, 255, .05)":"transparent")+`; - outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var ee;ie&&(ee=window.scrollY),ht.input.focus(),ie&&window.scrollTo(null,ee),ht.input.reset(),ct.somethingSelected()||(ft.value=st.prevInput=" "),st.contextMenuPending=ze,ht.selForContextMenu=ct.doc.sel,clearTimeout(ht.detectingSelectAll);function Ze(){if(ft.selectionStart!=null){var In=ct.somethingSelected(),$n="\u200B"+(In?ft.value:"");ft.value="\u21DA",ft.value=$n,st.prevInput=In?"":"\u200B",ft.selectionStart=1,ft.selectionEnd=$n.length,ht.selForContextMenu=ct.doc.sel}}function ze(){if(st.contextMenuPending==ze&&(st.contextMenuPending=!1,st.wrapper.style.cssText=Jt,ft.style.cssText=Rt,fe&&je<9&&ht.scrollbars.setScrollTop(ht.scroller.scrollTop=Dt),ft.selectionStart!=null)){(!fe||fe&&je<9)&&Ze();var In=0,$n=function(){ht.selForContextMenu==ct.doc.sel&&ft.selectionStart==0&&ft.selectionEnd>0&&st.prevInput=="\u200B"?kr(ct,sa)(ct):In++<10?ht.detectingSelectAll=setTimeout($n,500):(ht.selForContextMenu=null,ht.input.reset())};ht.detectingSelectAll=setTimeout($n,200)}}if(fe&&je>=9&&Ze(),At){As(it);var kn=function(){xn(window,"mouseup",kn),setTimeout(ze,20)};me(window,"mouseup",kn)}else setTimeout(ze,50)},Ba.prototype.readOnlyChanged=function(it){it||this.reset(),this.textarea.disabled=it=="nocursor",this.textarea.readOnly=!!it},Ba.prototype.setUneditable=function(){},Ba.prototype.needsContentAttribute=!1;function cm(it,st){if(st=st?cn(st):{},st.value=it.value,!st.tabindex&&it.tabIndex&&(st.tabindex=it.tabIndex),!st.placeholder&&it.placeholder&&(st.placeholder=it.placeholder),st.autofocus==null){var ct=xe();st.autofocus=ct==it||it.getAttribute("autofocus")!=null&&ct==document.body}function ht(){it.value=Gt.getValue()}var ft;if(it.form&&(me(it.form,"submit",ht),!st.leaveSubmitMethodAlone)){var Pt=it.form;ft=Pt.submit;try{var Dt=Pt.submit=function(){ht(),Pt.submit=ft,Pt.submit(),Pt.submit=Dt}}catch(Rt){}}st.finishInit=function(Rt){Rt.save=ht,Rt.getTextArea=function(){return it},Rt.toTextArea=function(){Rt.toTextArea=isNaN,ht(),it.parentNode.removeChild(Rt.getWrapperElement()),it.style.display="",it.form&&(xn(it.form,"submit",ht),!st.leaveSubmitMethodAlone&&typeof it.form.submit=="function"&&(it.form.submit=ft))}},it.style.display="none";var Gt=Nr(function(Rt){return it.parentNode.insertBefore(Rt,it.nextSibling)},st);return Gt}function lg(it){it.off=xn,it.on=me,it.wheelEventPixels=Ts,it.Doc=Ya,it.splitLines=qi,it.countColumn=he,it.findColumn=Xn,it.isWordChar=Jo,it.Pass=An,it.signal=yn,it.Line=qr,it.changeEnd=Ds,it.scrollbarModel=zr,it.Pos=De,it.cmpPos=dn,it.modes=za,it.mimeModes=da,it.resolveMode=ai,it.getMode=Ee,it.modeExtensions=pe,it.extendMode=ve,it.copyState=Wn,it.startState=Kn,it.innerMode=On,it.commands=Lh,it.keyMap=jl,it.keyName=yf,it.isModifierKey=Bd,it.lookupKey=$l,it.normalizeKeyMap=Jc,it.StringStream=Ge,it.SharedTextMarker=ah,it.TextMarker=ce,it.LineWidget=Wu,it.e_preventDefault=vo,it.e_stopPropagation=Ri,it.e_stop=As,it.addClass=Re,it.contains=Fe,it.rmClass=Kt,it.keyNames=lh}zd(Nr),Gd(Nr);var vd="iter insert remove copy getEditor constructor".split(" ");for(var Wg in Ya.prototype)Ya.prototype.hasOwnProperty(Wg)&&Ae(vd,Wg)<0&&(Nr.prototype[Wg]=function(it){return function(){return it.apply(this.doc,arguments)}}(Ya.prototype[Wg]));return Ti(Ya),Nr.inputStyles={textarea:Ba,contenteditable:vs},Nr.defineMode=function(it){!Nr.defaults.mode&&it!="null"&&(Nr.defaults.mode=it),Xa.apply(this,arguments)},Nr.defineMIME=ei,Nr.defineMode("null",function(){return{token:function(it){return it.skipToEnd()}}}),Nr.defineMIME("text/plain","null"),Nr.defineExtension=function(it,st){Nr.prototype[it]=st},Nr.defineDocExtension=function(it,st){Ya.prototype[it]=st},Nr.fromTextArea=cm,lg(Nr),Nr.version="5.58.2",Nr})},25419:function(tn,Fn,Ft){(function(St){St(Ft(89780),Ft(15525),Ft(98101))})(function(St){"use strict";St.defineMode("markdown",function(Ut,Me){var _e=St.getMode(Ut,"text/html"),fe=_e.name=="null";function je(he){if(St.findModeByName){var Qt=St.findModeByName(he);Qt&&(he=Qt.mime||Qt.mimes[0])}var Ae=St.getMode(Ut,he);return Ae.name=="null"?null:Ae}Me.highlightFormatting===void 0&&(Me.highlightFormatting=!1),Me.maxBlockquoteDepth===void 0&&(Me.maxBlockquoteDepth=0),Me.taskLists===void 0&&(Me.taskLists=!1),Me.strikethrough===void 0&&(Me.strikethrough=!1),Me.emoji===void 0&&(Me.emoji=!1),Me.fencedCodeBlockHighlighting===void 0&&(Me.fencedCodeBlockHighlighting=!0),Me.fencedCodeBlockDefaultMode===void 0&&(Me.fencedCodeBlockDefaultMode="text/plain"),Me.xml===void 0&&(Me.xml=!0),Me.tokenTypeOverrides===void 0&&(Me.tokenTypeOverrides={});var ie={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var Ne in ie)ie.hasOwnProperty(Ne)&&Me.tokenTypeOverrides[Ne]&&(ie[Ne]=Me.tokenTypeOverrides[Ne]);var we=/^([*\-_])(?:\s*\1){2,}\s*$/,Le=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Pe=/^\[(x| )\](?=\s)/i,Ie=Me.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Ue=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Tt=/^[^#!\[\]*_\\<>` "'(~:]+/,et=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,nt=/^\s*\[[^\]]+?\]:.*$/,dt=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,lt=" ";function pt(he,Qt,Ae){return Qt.f=Qt.inline=Ae,Ae(he,Qt)}function vt(he,Qt,Ae){return Qt.f=Qt.block=Ae,Ae(he,Qt)}function Lt(he){return!he||!/\S/.test(he.string)}function At(he){if(he.linkTitle=!1,he.linkHref=!1,he.linkText=!1,he.em=!1,he.strong=!1,he.strikethrough=!1,he.quote=0,he.indentedCode=!1,he.f==Kt){var Qt=fe;if(!Qt){var Ae=St.innerMode(_e,he.htmlState);Qt=Ae.mode.name=="xml"&&Ae.state.tagStart===null&&!Ae.state.context&&Ae.state.tokenize.isInText}Qt&&(he.f=ue,he.block=kt,he.htmlState=null)}return he.trailingSpace=0,he.trailingSpaceNewLine=!1,he.prevLine=he.thisLine,he.thisLine={stream:null},null}function kt(he,Qt){var Ae=he.column()===Qt.indentation,Gn=Lt(Qt.prevLine.stream),An=Qt.indentedCode,Se=Qt.prevLine.hr,sn=Qt.list!==!1,wn=(Qt.listStack[Qt.listStack.length-1]||0)+3;Qt.indentedCode=!1;var Xn=Qt.indentation;if(Qt.indentationDiff===null&&(Qt.indentationDiff=Qt.indentation,sn)){for(Qt.list=null;Xn=4&&(An||Qt.prevLine.fencedCodeEnd||Qt.prevLine.header||Gn))return he.skipToEnd(),Qt.indentedCode=!0,ie.code;if(he.eatSpace())return null;if(Ae&&Qt.indentation<=wn&&(re=he.match(Ie))&&re[1].length<=6)return Qt.quote=0,Qt.header=re[1].length,Qt.thisLine.header=!0,Me.highlightFormatting&&(Qt.formatting="header"),Qt.f=Qt.inline,ne(Qt);if(Qt.indentation<=wn&&he.eat(">"))return Qt.quote=Ae?1:Qt.quote+1,Me.highlightFormatting&&(Qt.formatting="quote"),he.eatSpace(),ne(Qt);if(!ii&&!Qt.setext&&Ae&&Qt.indentation<=wn&&(re=he.match(Le))){var Dn=re[1]?"ol":"ul";return Qt.indentation=Xn+he.current().length,Qt.list=!0,Qt.quote=0,Qt.listStack.push(Qt.indentation),Qt.em=!1,Qt.strong=!1,Qt.code=!1,Qt.strikethrough=!1,Me.taskLists&&he.match(Pe,!1)&&(Qt.taskList=!0),Qt.f=Qt.inline,Me.highlightFormatting&&(Qt.formatting=["list","list-"+Dn]),ne(Qt)}else{if(Ae&&Qt.indentation<=wn&&(re=he.match(et,!0)))return Qt.quote=0,Qt.fencedEndRE=new RegExp(re[1]+"+ *$"),Qt.localMode=Me.fencedCodeBlockHighlighting&&je(re[2]||Me.fencedCodeBlockDefaultMode),Qt.localMode&&(Qt.localState=St.startState(Qt.localMode)),Qt.f=Qt.block=$t,Me.highlightFormatting&&(Qt.formatting="code-block"),Qt.code=-1,ne(Qt);if(Qt.setext||(!Hn||!sn)&&!Qt.quote&&Qt.list===!1&&!Qt.code&&!ii&&!nt.test(he.string)&&(re=he.lookAhead(1))&&(re=re.match(Ue)))return Qt.setext?(Qt.header=Qt.setext,Qt.setext=0,he.skipToEnd(),Me.highlightFormatting&&(Qt.formatting="header")):(Qt.header=re[0].charAt(0)=="="?1:2,Qt.setext=Qt.header),Qt.thisLine.header=!0,Qt.f=Qt.inline,ne(Qt);if(ii)return he.skipToEnd(),Qt.hr=!0,Qt.thisLine.hr=!0,ie.hr;if(he.peek()==="[")return pt(he,Qt,En)}return pt(he,Qt,Qt.inline)}function Kt(he,Qt){var Ae=_e.token(he,Qt.htmlState);if(!fe){var Gn=St.innerMode(_e,Qt.htmlState);(Gn.mode.name=="xml"&&Gn.state.tagStart===null&&!Gn.state.context&&Gn.state.tokenize.isInText||Qt.md_inside&&he.current().indexOf(">")>-1)&&(Qt.f=ue,Qt.block=kt,Qt.htmlState=null)}return Ae}function $t(he,Qt){var Ae=Qt.listStack[Qt.listStack.length-1]||0,Gn=Qt.indentation=he.quote?Qt.push(ie.formatting+"-"+he.formatting[Ae]+"-"+he.quote):Qt.push("error"))}if(he.taskOpen)return Qt.push("meta"),Qt.length?Qt.join(" "):null;if(he.taskClosed)return Qt.push("property"),Qt.length?Qt.join(" "):null;if(he.linkHref?Qt.push(ie.linkHref,"url"):(he.strong&&Qt.push(ie.strong),he.em&&Qt.push(ie.em),he.strikethrough&&Qt.push(ie.strikethrough),he.emoji&&Qt.push(ie.emoji),he.linkText&&Qt.push(ie.linkText),he.code&&Qt.push(ie.code),he.image&&Qt.push(ie.image),he.imageAltText&&Qt.push(ie.imageAltText,"link"),he.imageMarker&&Qt.push(ie.imageMarker)),he.header&&Qt.push(ie.header,ie.header+"-"+he.header),he.quote&&(Qt.push(ie.quote),!Me.maxBlockquoteDepth||Me.maxBlockquoteDepth>=he.quote?Qt.push(ie.quote+"-"+he.quote):Qt.push(ie.quote+"-"+Me.maxBlockquoteDepth)),he.list!==!1){var Gn=(he.listStack.length-1)%3;Gn?Gn===1?Qt.push(ie.list2):Qt.push(ie.list3):Qt.push(ie.list1)}return he.trailingSpaceNewLine?Qt.push("trailing-space-new-line"):he.trailingSpace&&Qt.push("trailing-space-"+(he.trailingSpace%2?"a":"b")),Qt.length?Qt.join(" "):null}function qt(he,Qt){if(he.match(Tt,!0))return ne(Qt)}function ue(he,Qt){var Ae=Qt.text(he,Qt);if(typeof Ae!="undefined")return Ae;if(Qt.list)return Qt.list=null,ne(Qt);if(Qt.taskList){var Gn=he.match(Pe,!0)[1]===" ";return Gn?Qt.taskOpen=!0:Qt.taskClosed=!0,Me.highlightFormatting&&(Qt.formatting="task"),Qt.taskList=!1,ne(Qt)}if(Qt.taskOpen=!1,Qt.taskClosed=!1,Qt.header&&he.match(/^#+$/,!0))return Me.highlightFormatting&&(Qt.formatting="header"),ne(Qt);var An=he.next();if(Qt.linkTitle){Qt.linkTitle=!1;var Se=An;An==="("&&(Se=")"),Se=(Se+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var sn="^\\s*(?:[^"+Se+"\\\\]+|\\\\\\\\|\\\\.)"+Se;if(he.match(new RegExp(sn),!0))return ie.linkHref}if(An==="`"){var wn=Qt.formatting;Me.highlightFormatting&&(Qt.formatting="code"),he.eatWhile("`");var Xn=he.current().length;if(Qt.code==0&&(!Qt.quote||Xn==1))return Qt.code=Xn,ne(Qt);if(Xn==Qt.code){var Hn=ne(Qt);return Qt.code=0,Hn}else return Qt.formatting=wn,ne(Qt)}else if(Qt.code)return ne(Qt);if(An==="\\"&&(he.next(),Me.highlightFormatting)){var ii=ne(Qt),re=ie.formatting+"-escape";return ii?ii+" "+re:re}if(An==="!"&&he.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Qt.imageMarker=!0,Qt.image=!0,Me.highlightFormatting&&(Qt.formatting="image"),ne(Qt);if(An==="["&&Qt.imageMarker&&he.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Qt.imageMarker=!1,Qt.imageAltText=!0,Me.highlightFormatting&&(Qt.formatting="image"),ne(Qt);if(An==="]"&&Qt.imageAltText){Me.highlightFormatting&&(Qt.formatting="image");var ii=ne(Qt);return Qt.imageAltText=!1,Qt.image=!1,Qt.inline=Qt.f=Fe,ii}if(An==="["&&!Qt.image)return Qt.linkText&&he.match(/^.*?\]/)||(Qt.linkText=!0,Me.highlightFormatting&&(Qt.formatting="link")),ne(Qt);if(An==="]"&&Qt.linkText){Me.highlightFormatting&&(Qt.formatting="link");var ii=ne(Qt);return Qt.linkText=!1,Qt.inline=Qt.f=he.match(/\(.*?\)| ?\[.*?\]/,!1)?Fe:ue,ii}if(An==="<"&&he.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Qt.f=Qt.inline=ae,Me.highlightFormatting&&(Qt.formatting="link");var ii=ne(Qt);return ii?ii+=" ":ii="",ii+ie.linkInline}if(An==="<"&&he.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Qt.f=Qt.inline=ae,Me.highlightFormatting&&(Qt.formatting="link");var ii=ne(Qt);return ii?ii+=" ":ii="",ii+ie.linkEmail}if(Me.xml&&An==="<"&&he.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Dn=he.string.indexOf(">",he.pos);if(Dn!=-1){var Zn=he.string.substring(he.start,Dn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Zn)&&(Qt.md_inside=!0)}return he.backUp(1),Qt.htmlState=St.startState(_e),vt(he,Qt,Kt)}if(Me.xml&&An==="<"&&he.match(/^\/\w*?>/))return Qt.md_inside=!1,"tag";if(An==="*"||An==="_"){for(var qn=1,ni=he.pos==1?" ":he.string.charAt(he.pos-2);qn<3&&he.eat(An);)qn++;var Hi=he.peek()||" ",Jo=!/\s/.test(Hi)&&(!dt.test(Hi)||/\s/.test(ni)||dt.test(ni)),pn=!/\s/.test(ni)&&(!dt.test(ni)||/\s/.test(Hi)||dt.test(Hi)),Pn=null,ti=null;if(qn%2&&(!Qt.em&&Jo&&(An==="*"||!pn||dt.test(ni))?Pn=!0:Qt.em==An&&pn&&(An==="*"||!Jo||dt.test(Hi))&&(Pn=!1)),qn>1&&(!Qt.strong&&Jo&&(An==="*"||!pn||dt.test(ni))?ti=!0:Qt.strong==An&&pn&&(An==="*"||!Jo||dt.test(Hi))&&(ti=!1)),ti!=null||Pn!=null){Me.highlightFormatting&&(Qt.formatting=Pn==null?"strong":ti==null?"em":"strong em"),Pn===!0&&(Qt.em=An),ti===!0&&(Qt.strong=An);var Hn=ne(Qt);return Pn===!1&&(Qt.em=!1),ti===!1&&(Qt.strong=!1),Hn}}else if(An===" "&&(he.eat("*")||he.eat("_"))){if(he.peek()===" ")return ne(Qt);he.backUp(1)}if(Me.strikethrough){if(An==="~"&&he.eatWhile(An)){if(Qt.strikethrough){Me.highlightFormatting&&(Qt.formatting="strikethrough");var Hn=ne(Qt);return Qt.strikethrough=!1,Hn}else if(he.match(/^[^\s]/,!1))return Qt.strikethrough=!0,Me.highlightFormatting&&(Qt.formatting="strikethrough"),ne(Qt)}else if(An===" "&&he.match(/^~~/,!0)){if(he.peek()===" ")return ne(Qt);he.backUp(2)}}if(Me.emoji&&An===":"&&he.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Qt.emoji=!0,Me.highlightFormatting&&(Qt.formatting="emoji");var gn=ne(Qt);return Qt.emoji=!1,gn}return An===" "&&(he.match(/^ +$/,!1)?Qt.trailingSpace++:Qt.trailingSpace&&(Qt.trailingSpaceNewLine=!0)),ne(Qt)}function ae(he,Qt){var Ae=he.next();if(Ae===">"){Qt.f=Qt.inline=ue,Me.highlightFormatting&&(Qt.formatting="link");var Gn=ne(Qt);return Gn?Gn+=" ":Gn="",Gn+ie.linkInline}return he.match(/^[^>]+/,!0),ie.linkInline}function Fe(he,Qt){if(he.eatSpace())return null;var Ae=he.next();return Ae==="("||Ae==="["?(Qt.f=Qt.inline=Re(Ae==="("?")":"]"),Me.highlightFormatting&&(Qt.formatting="link-string"),Qt.linkHref=!0,ne(Qt)):"error"}var xe={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Re(he){return function(Qt,Ae){var Gn=Qt.next();if(Gn===he){Ae.f=Ae.inline=ue,Me.highlightFormatting&&(Ae.formatting="link-string");var An=ne(Ae);return Ae.linkHref=!1,An}return Qt.match(xe[he]),Ae.linkHref=!0,ne(Ae)}}function En(he,Qt){return he.match(/^([^\]\\]|\\.)*\]:/,!1)?(Qt.f=fn,he.next(),Me.highlightFormatting&&(Qt.formatting="link"),Qt.linkText=!0,ne(Qt)):pt(he,Qt,ue)}function fn(he,Qt){if(he.match(/^\]:/,!0)){Qt.f=Qt.inline=bn,Me.highlightFormatting&&(Qt.formatting="link");var Ae=ne(Qt);return Qt.linkText=!1,Ae}return he.match(/^([^\]\\]|\\.)+/,!0),ie.linkText}function bn(he,Qt){return he.eatSpace()?null:(he.match(/^[^\s]+/,!0),he.peek()===void 0?Qt.linkTitle=!0:he.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Qt.f=Qt.inline=ue,ie.linkHref+" url")}var cn={startState:function(){return{f:kt,prevLine:{stream:null},thisLine:{stream:null},block:kt,htmlState:null,indentation:0,inline:ue,text:qt,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(he){return{f:he.f,prevLine:he.prevLine,thisLine:he.thisLine,block:he.block,htmlState:he.htmlState&&St.copyState(_e,he.htmlState),indentation:he.indentation,localMode:he.localMode,localState:he.localMode?St.copyState(he.localMode,he.localState):null,inline:he.inline,text:he.text,formatting:!1,linkText:he.linkText,linkTitle:he.linkTitle,linkHref:he.linkHref,code:he.code,em:he.em,strong:he.strong,strikethrough:he.strikethrough,emoji:he.emoji,header:he.header,setext:he.setext,hr:he.hr,taskList:he.taskList,list:he.list,listStack:he.listStack.slice(0),quote:he.quote,indentedCode:he.indentedCode,trailingSpace:he.trailingSpace,trailingSpaceNewLine:he.trailingSpaceNewLine,md_inside:he.md_inside,fencedEndRE:he.fencedEndRE}},token:function(he,Qt){if(Qt.formatting=!1,he!=Qt.thisLine.stream){if(Qt.header=0,Qt.hr=!1,he.match(/^\s*$/,!0))return At(Qt),null;if(Qt.prevLine=Qt.thisLine,Qt.thisLine={stream:he},Qt.taskList=!1,Qt.trailingSpace=0,Qt.trailingSpaceNewLine=!1,!Qt.localState&&(Qt.f=Qt.block,Qt.f!=Kt)){var Ae=he.match(/^\s*/,!0)[0].replace(/\t/g,lt).length;if(Qt.indentation=Ae,Qt.indentationDiff=null,Ae>0)return null}}return Qt.f(he,Qt)},innerMode:function(he){return he.block==Kt?{state:he.htmlState,mode:_e}:he.localState?{state:he.localState,mode:he.localMode}:{state:he,mode:cn}},indent:function(he,Qt,Ae){return he.block==Kt&&_e.indent?_e.indent(he.htmlState,Qt,Ae):he.localState&&he.localMode.indent?he.localMode.indent(he.localState,Qt,Ae):St.Pass},blankLine:At,getType:ne,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return cn},"xml"),St.defineMIME("text/markdown","markdown"),St.defineMIME("text/x-markdown","markdown")})},98101:function(tn,Fn,Ft){(function(St){St(Ft(89780))})(function(St){"use strict";St.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var Ut=0;Ut-1&&_e.substring(ie+1,_e.length);if(Ne)return St.findModeByExtension(Ne)},St.findModeByName=function(_e){_e=_e.toLowerCase();for(var fe=0;fe0?Tt.cmdState[Tt.cmdState.length-1]:null}function je(Tt){var et=Tt.cmdState.pop();et&&et.closeBracket()}function ie(Tt){for(var et=Tt.cmdState,nt=et.length-1;nt>=0;nt--){var dt=et[nt];if(dt.name!="DEFAULT")return dt}return{styleIdentifier:function(){return null}}}function Ne(Tt,et,nt){return function(){this.name=Tt,this.bracketNo=0,this.style=et,this.styles=nt,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var we={};we.importmodule=Ne("importmodule","tag",["string","builtin"]),we.documentclass=Ne("documentclass","tag",["","atom"]),we.usepackage=Ne("usepackage","tag",["atom"]),we.begin=Ne("begin","tag",["atom"]),we.end=Ne("end","tag",["atom"]),we.label=Ne("label","tag",["atom"]),we.ref=Ne("ref","tag",["atom"]),we.eqref=Ne("eqref","tag",["atom"]),we.cite=Ne("cite","tag",["atom"]),we.bibitem=Ne("bibitem","tag",["atom"]),we.Bibitem=Ne("Bibitem","tag",["atom"]),we.RBibitem=Ne("RBibitem","tag",["atom"]),we.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Le(Tt,et){Tt.f=et}function Pe(Tt,et){var nt;if(Tt.match(/^\\[a-zA-Z@]+/)){var dt=Tt.current().slice(1);return nt=we.hasOwnProperty(dt)?we[dt]:we.DEFAULT,nt=new nt,_e(et,nt),Le(et,Ue),nt.style}if(Tt.match(/^\\[$&%#{}_]/)||Tt.match(/^\\[,;!\/\\]/))return"tag";if(Tt.match("\\["))return Le(et,function(pt,vt){return Ie(pt,vt,"\\]")}),"keyword";if(Tt.match("\\("))return Le(et,function(pt,vt){return Ie(pt,vt,"\\)")}),"keyword";if(Tt.match("$$"))return Le(et,function(pt,vt){return Ie(pt,vt,"$$")}),"keyword";if(Tt.match("$"))return Le(et,function(pt,vt){return Ie(pt,vt,"$")}),"keyword";var lt=Tt.next();if(lt=="%")return Tt.skipToEnd(),"comment";if(lt=="}"||lt=="]"){if(nt=fe(et),nt)nt.closeBracket(lt),Le(et,Ue);else return"error";return"bracket"}else return lt=="{"||lt=="["?(nt=we.DEFAULT,nt=new nt,_e(et,nt),"bracket"):/\d/.test(lt)?(Tt.eatWhile(/[\w.%]/),"atom"):(Tt.eatWhile(/[\w\-_]/),nt=ie(et),nt.name=="begin"&&(nt.argument=Tt.current()),nt.styleIdentifier())}function Ie(Tt,et,nt){if(Tt.eatSpace())return null;if(nt&&Tt.match(nt))return Le(et,Pe),"keyword";if(Tt.match(/^\\[a-zA-Z@]+/))return"tag";if(Tt.match(/^[a-zA-Z]+/))return"variable-2";if(Tt.match(/^\\[$&%#{}_]/)||Tt.match(/^\\[,;!\/]/)||Tt.match(/^[\^_&]/))return"tag";if(Tt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Tt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var dt=Tt.next();return dt=="{"||dt=="}"||dt=="["||dt=="]"||dt=="("||dt==")"?"bracket":dt=="%"?(Tt.skipToEnd(),"comment"):"error"}function Ue(Tt,et){var nt=Tt.peek(),dt;return nt=="{"||nt=="["?(dt=fe(et),dt.openBracket(nt),Tt.eat(nt),Le(et,Pe),"bracket"):/[ \t\r]/.test(nt)?(Tt.eat(nt),null):(Le(et,Pe),je(et),Pe(Tt,et))}return{startState:function(){var Tt=Me.inMathMode?function(et,nt){return Ie(et,nt)}:Pe;return{cmdState:[],f:Tt}},copyState:function(Tt){return{cmdState:Tt.cmdState.slice(),f:Tt.f}},token:function(Tt,et){return et.f(Tt,et)},blankLine:function(Tt){Tt.f=Pe,Tt.cmdState.length=0},lineComment:"%"}}),St.defineMIME("text/x-stex","stex"),St.defineMIME("text/x-latex","stex")})},15525:function(tn,Fn,Ft){(function(St){St(Ft(89780))})(function(St){"use strict";var Ut={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},Me={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};St.defineMode("xml",function(_e,fe){var je=_e.indentUnit,ie={},Ne=fe.htmlMode?Ut:Me;for(var we in Ne)ie[we]=Ne[we];for(var we in fe)ie[we]=fe[we];var Le,Pe;function Ie(ae,Fe){function xe(fn){return Fe.tokenize=fn,fn(ae,Fe)}var Re=ae.next();if(Re=="<")return ae.eat("!")?ae.eat("[")?ae.match("CDATA[")?xe(et("atom","]]>")):null:ae.match("--")?xe(et("comment","-->")):ae.match("DOCTYPE",!0,!0)?(ae.eatWhile(/[\w\._\-]/),xe(nt(1))):null:ae.eat("?")?(ae.eatWhile(/[\w\._\-]/),Fe.tokenize=et("meta","?>"),"meta"):(Le=ae.eat("/")?"closeTag":"openTag",Fe.tokenize=Ue,"tag bracket");if(Re=="&"){var En;return ae.eat("#")?ae.eat("x")?En=ae.eatWhile(/[a-fA-F\d]/)&&ae.eat(";"):En=ae.eatWhile(/[\d]/)&&ae.eat(";"):En=ae.eatWhile(/[\w\.\-:]/)&&ae.eat(";"),En?"atom":"error"}else return ae.eatWhile(/[^&<]/),null}Ie.isInText=!0;function Ue(ae,Fe){var xe=ae.next();if(xe==">"||xe=="/"&&ae.eat(">"))return Fe.tokenize=Ie,Le=xe==">"?"endTag":"selfcloseTag","tag bracket";if(xe=="=")return Le="equals",null;if(xe=="<"){Fe.tokenize=Ie,Fe.state=vt,Fe.tagName=Fe.tagStart=null;var Re=Fe.tokenize(ae,Fe);return Re?Re+" tag error":"tag error"}else return/[\'\"]/.test(xe)?(Fe.tokenize=Tt(xe),Fe.stringStartCol=ae.column(),Fe.tokenize(ae,Fe)):(ae.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Tt(ae){var Fe=function(xe,Re){for(;!xe.eol();)if(xe.next()==ae){Re.tokenize=Ue;break}return"string"};return Fe.isInAttribute=!0,Fe}function et(ae,Fe){return function(xe,Re){for(;!xe.eol();){if(xe.match(Fe)){Re.tokenize=Ie;break}xe.next()}return ae}}function nt(ae){return function(Fe,xe){for(var Re;(Re=Fe.next())!=null;){if(Re=="<")return xe.tokenize=nt(ae+1),xe.tokenize(Fe,xe);if(Re==">")if(ae==1){xe.tokenize=Ie;break}else return xe.tokenize=nt(ae-1),xe.tokenize(Fe,xe)}return"meta"}}function dt(ae,Fe,xe){this.prev=ae.context,this.tagName=Fe,this.indent=ae.indented,this.startOfLine=xe,(ie.doNotIndent.hasOwnProperty(Fe)||ae.context&&ae.context.noIndent)&&(this.noIndent=!0)}function lt(ae){ae.context&&(ae.context=ae.context.prev)}function pt(ae,Fe){for(var xe;;){if(!ae.context||(xe=ae.context.tagName,!ie.contextGrabbers.hasOwnProperty(xe)||!ie.contextGrabbers[xe].hasOwnProperty(Fe)))return;lt(ae)}}function vt(ae,Fe,xe){return ae=="openTag"?(xe.tagStart=Fe.column(),Lt):ae=="closeTag"?At:vt}function Lt(ae,Fe,xe){return ae=="word"?(xe.tagName=Fe.current(),Pe="tag",$t):ie.allowMissingTagName&&ae=="endTag"?(Pe="tag bracket",$t(ae,Fe,xe)):(Pe="error",Lt)}function At(ae,Fe,xe){if(ae=="word"){var Re=Fe.current();return xe.context&&xe.context.tagName!=Re&&ie.implicitlyClosed.hasOwnProperty(xe.context.tagName)&<(xe),xe.context&&xe.context.tagName==Re||ie.matchClosing===!1?(Pe="tag",kt):(Pe="tag error",Kt)}else return ie.allowMissingTagName&&ae=="endTag"?(Pe="tag bracket",kt(ae,Fe,xe)):(Pe="error",Kt)}function kt(ae,Fe,xe){return ae!="endTag"?(Pe="error",kt):(lt(xe),vt)}function Kt(ae,Fe,xe){return Pe="error",kt(ae,Fe,xe)}function $t(ae,Fe,xe){if(ae=="word")return Pe="attribute",ne;if(ae=="endTag"||ae=="selfcloseTag"){var Re=xe.tagName,En=xe.tagStart;return xe.tagName=xe.tagStart=null,ae=="selfcloseTag"||ie.autoSelfClosers.hasOwnProperty(Re)?pt(xe,Re):(pt(xe,Re),xe.context=new dt(xe,Re,En==xe.indented)),vt}return Pe="error",$t}function ne(ae,Fe,xe){return ae=="equals"?qt:(ie.allowMissing||(Pe="error"),$t(ae,Fe,xe))}function qt(ae,Fe,xe){return ae=="string"?ue:ae=="word"&&ie.allowUnquoted?(Pe="string",$t):(Pe="error",$t(ae,Fe,xe))}function ue(ae,Fe,xe){return ae=="string"?ue:$t(ae,Fe,xe)}return{startState:function(ae){var Fe={tokenize:Ie,state:vt,indented:ae||0,tagName:null,tagStart:null,context:null};return ae!=null&&(Fe.baseIndent=ae),Fe},token:function(ae,Fe){if(!Fe.tagName&&ae.sol()&&(Fe.indented=ae.indentation()),ae.eatSpace())return null;Le=null;var xe=Fe.tokenize(ae,Fe);return(xe||Le)&&xe!="comment"&&(Pe=null,Fe.state=Fe.state(Le||xe,ae,Fe),Pe&&(xe=Pe=="error"?xe+" error":Pe)),xe},indent:function(ae,Fe,xe){var Re=ae.context;if(ae.tokenize.isInAttribute)return ae.tagStart==ae.indented?ae.stringStartCol+1:ae.indented+je;if(Re&&Re.noIndent)return St.Pass;if(ae.tokenize!=Ue&&ae.tokenize!=Ie)return xe?xe.match(/^(\s*)/)[0].length:0;if(ae.tagName)return ie.multilineTagIndentPastTag!==!1?ae.tagStart+ae.tagName.length+2:ae.tagStart+je*(ie.multilineTagIndentFactor||1);if(ie.alignCDATA&&/$/,blockCommentStart:"",configuration:ie.htmlMode?"html":"xml",helperType:ie.htmlMode?"html":"xml",skipAttribute:function(ae){ae.state==qt&&(ae.state=$t)},xmlCurrentTag:function(ae){return ae.tagName?{name:ae.tagName,close:ae.type=="closeTag"}:null},xmlCurrentContext:function(ae){for(var Fe=[],xe=ae.context;xe;xe=xe.prev)xe.tagName&&Fe.push(xe.tagName);return Fe.reverse()}}}),St.defineMIME("text/xml","xml"),St.defineMIME("application/xml","xml"),St.mimeModes.hasOwnProperty("text/html")||St.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{$u:function(){return we},BD:function(){return qn},E9:function(){return Ne},FF:function(){return pr},FJ:function(){return vt},Hn:function(){return pt},KX:function(){return At},NB:function(){return jt},S0:function(){return re},UL:function(){return Le},Vk:function(){return lt},Vm:function(){return xt},YI:function(){return Dn},ZA:function(){return Me},Zt:function(){return Pe},al:function(){return Pn},bn:function(){return pn},bx:function(){return ni},g2:function(){return Zn},h1:function(){return qt},hD:function(){return Ti},l4:function(){return je},rU:function(){return Mt},s_:function(){return Hi},uz:function(){return zn},z6:function(){return Ie}}),tn=Ft.hmd(tn),function(){var Ct;function Na(a){var y=0;return function(){return yx&&(x=Math.max(0,b+x)),(E==null||E>b)&&(E=b),E=Number(E),0>E&&(E=Math.max(0,b+E)),x=Number(x||0);x=a.length?a.push(x):a.splice(y,0,x):oe("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function Vo(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):oe("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function Ii(){var a=ko.pop();return a===void 0?[]:a}function Fi(a){a.length=0,ko.push(a)}function Pi(a){if(typeof a=="function"){if(a.className)return a.className;if(a.name)return a.name;var y=a.toString();if(y=y.substring(9,y.indexOf("(")).trim(),y!=="")return a._className=y}else if(De(a)&&a.constructor)return Pi(a.constructor);return typeof a}function Wo(a){var y=a;return De(a)&&(a.text?y=a.text:a.name?y=a.name:a.key!==void 0?y=a.key:a.id!==void 0?y=a.id:a.constructor===Object&&(a.Text?y=a.Text:a.Name?y=a.Name:a.Key!==void 0?y=a.Key:a.Id!==void 0?y=a.Id:a.ID!==void 0&&(y=a.ID))),y===void 0?"undefined":y===null?"null":y.toString()}function br(a,y){if(a.hasOwnProperty(y))return!0;for(a=Object.getPrototypeOf(a);a&&a!==Function;){if(a.hasOwnProperty(y))return!0;var x=a.CA;if(x&&x[y])return!0;a=Object.getPrototypeOf(a)}return!1}function wr(a,y,x){Object.defineProperty(Ve.prototype,a,{get:y,set:x})}function $e(a){for(var y=[],x=0;256>x;x++)y["0123456789abcdef".charAt(x>>4)+"0123456789abcdef".charAt(x&15)]=String.fromCharCode(x);a.length%2&&(a="0"+a),x=[];for(var E=0,b=0;bx;x++)y[x]=x;for(x=E=0;256>x;x++)E=(E+y[x]+119)%256,b=y[x],y[x]=y[E],y[E]=b;E=x=0;for(var z="",tt=0;tt-1||z.indexOf("\xA9 1998-2021 Northwoods Software")>-1||z.indexOf("Not for distribution or production use")>-1||z.indexOf("gojs.net")>-1?"":z}var vr=Ge.navigator!==void 0&&0this.key)return!1;a=a.s;var y=a.length,x=++this.Za,E=this.qf;if(E!==null)for(;xthis.key)return!1;var y=--this.Za;return 0<=y?(this.key=y,this.value=a.s[y],!0):(this.de(),!1)},hr.prototype.Ad=function(){return this.next()},hr.prototype.first=function(){var a=this.Bb;this.qa=a.Ja;var y=a.s;return this.Za=a=y.length-1,0<=a?(y=y[a],this.key=a,this.value=y):null},hr.prototype.any=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(a(y[x]))return!0;return!1},hr.prototype.all=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(!a(y[x]))return!1;return!0},hr.prototype.each=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)a(y[x]);return this},hr.prototype.map=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--)x.push(a(y[E]));return a=new on,a.s=x,a.xb(),a.iterator},hr.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--){var b=y[E];a(b)&&x.push(b)}return a=new on,a.s=x,a.xb(),a.iterator},hr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},hr.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},ve.Object.defineProperties(hr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),hr.prototype.first=hr.prototype.first,hr.prototype.hasNext=hr.prototype.Ad,hr.prototype.next=hr.prototype.next,hr.prototype.reset=hr.prototype.reset,hr.className="ListIteratorBackwards";function on(a){Ko(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&oe("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ct=on.prototype,Ct.xb=function(){var a=this.Ja;a++,999999999a||a>=y.length)&&li(a,"0 <= i < length",on,"elt:i"),y[a]},Ct.get=function(a){return this.M(a)},Ct.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&li(a,"0 <= i < length",on,"setElt:i"),this._isFrozen&&mn(this,a),x[a]=y},Ct.set=function(a,y){this.cd(a,y)},Ct.first=function(){var a=this.s;return a.length===0?null:a[0]},Ct.jc=function(){var a=this.s,y=a.length;return 0a&&li(a,">= 0",on,"insertAt:i"),this._isFrozen&&mn(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Ct.remove=function(a){if(a===null)return!1;this._isFrozen&&mn(this,a);var y=this.s;return a=y.indexOf(a),a===-1?!1:(a===y.length-1?y.pop():y.splice(a,1),this.xb(),!0)},Ct.delete=function(a){return this.remove(a)},Ct.mb=function(a){var y=this.s;(0>a||a>=y.length)&&li(a,"0 <= i < length",on,"removeAt:i"),this._isFrozen&&mn(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Ct.removeRange=function(a,y){var x=this.s,E=x.length;if(0>a)a=0;else if(a>=E)return this;if(0>y)return this;if(y>=E&&(y=E-1),a>y)return this;this._isFrozen&&mn(this);for(var b=a,z=y+1;z=z)return this;if((0>y||y>=b-1)&&li(y,"0 <= from < length",on,"sortRange:from"),z===2)return x=E[y],b=E[y+1],0=b)E.sort(a);else for(y=E.slice(0,x),y.sort(a),a=0;a=b)for(x=E.slice(y),x.sort(a),a=y;a=this.s.length)return nr;var a=this.Sa;return a!==null?(a.reset(),a):new Do(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return nr;var a=this.Hg;return a!==null?(a.reset(),a):new hr(this)}}}),on.prototype.reverse=on.prototype.reverse,on.prototype.sortRange=on.prototype.zi,on.prototype.sort=on.prototype.sort,on.prototype.toSet=on.prototype.Iv,on.prototype.toArray=on.prototype.Fa,on.prototype.removeRange=on.prototype.removeRange,on.prototype.removeAt=on.prototype.mb,on.prototype.delete=on.prototype.delete,on.prototype.remove=on.prototype.remove,on.prototype.insertAt=on.prototype.Gb,on.prototype.pop=on.prototype.pop,on.prototype.last=on.prototype.jc,on.prototype.first=on.prototype.first,on.prototype.set=on.prototype.set,on.prototype.setElt=on.prototype.cd,on.prototype.get=on.prototype.get,on.prototype.elt=on.prototype.M,on.prototype.indexOf=on.prototype.indexOf,on.prototype.has=on.prototype.has,on.prototype.contains=on.prototype.contains,on.prototype.clear=on.prototype.clear,on.prototype.addAll=on.prototype.addAll,on.prototype.push=on.prototype.push,on.prototype.add=on.prototype.add,on.prototype.thaw=on.prototype.ka,on.prototype.freeze=on.prototype.freeze,on.className="List";function Zo(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Zo.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},Zo.prototype.next=function(){var a=this.eg;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},Zo.prototype.Ad=function(){return this.next()},Zo.prototype.first=function(){var a=this.eg;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},Zo.prototype.any=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Zo.prototype.all=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Zo.prototype.each=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},Zo.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new on;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Zo.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new on;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},Zo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},Zo.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},ve.Object.defineProperties(Zo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),Zo.prototype.first=Zo.prototype.first,Zo.prototype.hasNext=Zo.prototype.Ad,Zo.prototype.next=Zo.prototype.next,Zo.prototype.reset=Zo.prototype.reset,Zo.className="SetIterator";function en(a){Ko(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&oe("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ct=en.prototype,Ct.xb=function(){var a=this.Ja;a++,999999999=this.Sb)return nr;var a=this.Sa;return a!==null?(a.reset(),a):new Zo(this)}}}),en.prototype.toList=en.prototype.Hv,en.prototype.toArray=en.prototype.Fa,en.prototype.clear=en.prototype.clear,en.prototype.retainAll=en.prototype.pA,en.prototype.removeAll=en.prototype.hp,en.prototype.delete=en.prototype.delete,en.prototype.remove=en.prototype.remove,en.prototype.first=en.prototype.first,en.prototype.containsAny=en.prototype.Ty,en.prototype.containsAll=en.prototype.Sy,en.prototype.has=en.prototype.has,en.prototype.contains=en.prototype.contains,en.prototype.addAll=en.prototype.addAll,en.prototype.add=en.prototype.add,en.prototype.thaw=en.prototype.ka,en.prototype.freeze=en.prototype.freeze;var Sa=1;en.className="Set",en.uniqueHash=Ko,en.hashIdUnique=ia,en.hashId=os;function Jr(a){this.ma=a,this.qa=a.Ja,this.sa=null}Jr.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Jr.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=this.key=a=y.key,!0):(this.de(),!1)},Jr.prototype.Ad=function(){return this.next()},Jr.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.value=this.key=a=a.key):null},Jr.prototype.any=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Jr.prototype.all=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Jr.prototype.each=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;)a(y.key),y=y.va;return this},Jr.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new on;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},Jr.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new on;for(y=y.ea;y!==null;){var E=y.key;a(E)&&x.add(E),y=y.va}return x.iterator},Jr.prototype.de=function(){this.value=this.key=null,this.qa=-1},Jr.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},ve.Object.defineProperties(Jr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Jr.prototype.first=Jr.prototype.first,Jr.prototype.hasNext=Jr.prototype.Ad,Jr.prototype.next=Jr.prototype.next,Jr.prototype.reset=Jr.prototype.reset,Jr.className="MapKeySetIterator";function Ao(a){en.call(this),Ko(this),this._isFrozen=!0,this.ma=a}pe(Ao,en),Ct=Ao.prototype,Ct.freeze=function(){return this},Ct.ka=function(){return this},Ct.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Ct.add=function(){oe("This Set is read-only: "+this.toString())},Ct.contains=function(a){return this.ma.contains(a)},Ct.has=function(a){return this.contains(a)},Ct.remove=function(){oe("This Set is read-only: "+this.toString())},Ct.delete=function(a){return this.remove(a)},Ct.clear=function(){oe("This Set is read-only: "+this.toString())},Ct.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Ao.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Ao.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Ao.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Ao.prototype.map=function(a){for(var y=new en,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},Ao.prototype.filter=function(a){for(var y=new en,x=this.ma.ea;x!==null;){var E=x.key;a(E)&&y.add(E),x=x.va}return y},Ao.prototype.copy=function(){return new Ao(this.ma)},Ao.prototype.Iv=function(){var a=new en,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Ao.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),x=0,E;for(E in a)y[x]=a[E].key,x++;return y},Ao.prototype.Hv=function(){var a=new on,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},ve.Object.defineProperties(Ao.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?nr:new Jr(this.ma)}}}),Ao.prototype.toList=Ao.prototype.Hv,Ao.prototype.toArray=Ao.prototype.Fa,Ao.prototype.toSet=Ao.prototype.Iv,Ao.prototype.first=Ao.prototype.first,Ao.prototype.clear=Ao.prototype.clear,Ao.prototype.delete=Ao.prototype.delete,Ao.prototype.remove=Ao.prototype.remove,Ao.prototype.has=Ao.prototype.has,Ao.prototype.contains=Ao.prototype.contains,Ao.prototype.add=Ao.prototype.add,Ao.prototype.thaw=Ao.prototype.ka,Ao.prototype.freeze=Ao.prototype.freeze,Ao.className="MapKeySet";function Pr(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}Pr.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},Pr.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},Pr.prototype.Ad=function(){return this.next()},Pr.prototype.first=function(){var a=this.ma;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},Pr.prototype.any=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Pr.prototype.all=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Pr.prototype.each=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},Pr.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new on;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Pr.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new on;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},Pr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},Pr.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},ve.Object.defineProperties(Pr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Pr.prototype.first=Pr.prototype.first,Pr.prototype.hasNext=Pr.prototype.Ad,Pr.prototype.next=Pr.prototype.next,Pr.prototype.reset=Pr.prototype.reset,Pr.className="MapValueSetIterator";function Ja(a,y){this.key=a,this.value=y,this.ll=this.va=null}Ja.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Ja.className="KeyValuePair";function ws(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}ws.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},ws.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.key=y.key,this.value=y.value,!0):(this.de(),!1)},ws.prototype.Ad=function(){return this.next()},ws.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.key=a.key,this.value=a.value,a):null},ws.prototype.any=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},ws.prototype.all=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},ws.prototype.each=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y),y=y.va;return this},ws.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new on;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},ws.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new on;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},ws.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},ws.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},ve.Object.defineProperties(ws.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),ws.prototype.first=ws.prototype.first,ws.prototype.hasNext=ws.prototype.Ad,ws.prototype.next=ws.prototype.next,ws.prototype.reset=ws.prototype.reset,ws.className="MapIterator";function oi(a){Ko(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.jf=this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&oe("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ct=oi.prototype,Ct.xb=function(){var a=this.Ja;a++,999999999=this.count)return nr;var a=this.Sa;return a!==null?(a.reset(),a):new ws(this)}},iteratorKeys:{get:function(){return 0>=this.count?nr:new Jr(this)}},iteratorValues:{get:function(){if(0>=this.count)return nr;var a=this.jf;return a!==null?(a.reset(),a):new Pr(this)}}}),oi.prototype.toKeySet=oi.prototype.Lf,oi.prototype.toArray=oi.prototype.Fa,oi.prototype.clear=oi.prototype.clear,oi.prototype.delete=oi.prototype.delete,oi.prototype.remove=oi.prototype.remove,oi.prototype.get=oi.prototype.get,oi.prototype.getValue=oi.prototype.I,oi.prototype.has=oi.prototype.has,oi.prototype.contains=oi.prototype.contains,oi.prototype.first=oi.prototype.first,oi.prototype.addAll=oi.prototype.addAll,oi.prototype.set=oi.prototype.set,oi.prototype.add=oi.prototype.add,oi.prototype.thaw=oi.prototype.ka,oi.prototype.freeze=oi.prototype.freeze,oi.className="Map";function Wt(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):oe("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var Js,ca,Mu,_a,lu;Wt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Wt.prototype.h=function(a,y){return this.x=a,this.y=y,this},Wt.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Wt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Wt.prototype.copy=function(){var a=new Wt;return a.x=this.x,a.y=this.y,a},Ct=Wt.prototype,Ct.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ct.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return Object.isFrozen(this)&&oe("cannot thaw constant: "+this),this._isFrozen=!1,this};function $u(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new Wt(x,b)}return new Wt}function ad(a){return a.x.toString()+" "+a.y.toString()}Ct.toString=function(){return"Point("+this.x+","+this.y+")"},Ct.D=function(a){return a instanceof Wt?this.x===a.x&&this.y===a.y:!1},Ct.hi=function(a,y){return this.x===a&&this.y===y},Ct.Xa=function(a){return _t.B(this.x,a.x)&&_t.B(this.y,a.y)},Ct.add=function(a){return this.x+=a.x,this.y+=a.y,this},Ct.re=function(a){return this.x-=a.x,this.y-=a.y,this},Ct.offset=function(a,y){return this.x+=a,this.y+=y,this},Wt.prototype.rotate=function(a){if(a===0)return this;var y=this.x,x=this.y;if(y===0&&x===0)return this;if(360<=a?a-=360:0>a&&(a+=360),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));return this.x=a*y-E*x,this.y=E*y+a*x,this},Ct=Wt.prototype,Ct.scale=function(a,y){return this.x*=a,this.y*=y,this},Ct.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Ct.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Ct.normalize=function(){var a=this.x,y=this.y,x=Math.sqrt(a*a+y*y);return 0y?270:0;if(y===0)return 0a?x=0>y?x+180:180-x:0>y&&(x=360-x),x}Ct.Ry=function(a,y){return _t.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Ct.fA=function(a,y,x,E){return _t.qh(a,y,x,E,this.x,this.y,this),this},Ct.gA=function(a,y){return _t.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Ct.uA=function(a,y,x,E){return _t.No(this.x,this.y,a,y,x,E,this),this},Ct.vA=function(a,y){return _t.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Ct.xi=function(a,y){return this.x=a.x+y.x*a.width+y.offsetX,this.y=a.y+y.y*a.height+y.offsetY,this},Ct.yi=function(a,y,x,E,b){return this.x=a+b.x*x+b.offsetX,this.y=y+b.y*E+b.offsetY,this},Ct.transform=function(a){return a.Ga(this),this};function Tr(a,y){return y.Cd(a),a}function _r(a,y,x,E,b,z){var tt=b-x,ot=z-E,rt=tt*tt+ot*ot;x-=a,E-=y;var at=-x*tt-E*ot;return 0>=at||at>=rt?(tt=b-a,ot=z-y,Math.min(x*x+E*E,tt*tt+ot*ot)):(a=tt*E-ot*x,a*a/rt)}function gl(a,y,x,E){return a=x-a,y=E-y,a*a+y*y}function Ki(a,y,x,E){return a=x-a,y=E-y,a===0?0y?270:0:y===0?0a?E=0>y?E+180:180-E:0>y&&(E=360-E),E)}Ct.w=function(){return isFinite(this.x)&&isFinite(this.y)},Wt.alloc=function(){var a=Mi.pop();return a===void 0?new Wt:a},Wt.allocAt=function(a,y){var x=Mi.pop();return x===void 0?new Wt(a,y):(x.x=a,x.y=y,x)},Wt.free=function(a){Mi.push(a)},Wt.prototype.isReal=Wt.prototype.w,Wt.prototype.setSpot=Wt.prototype.yi,Wt.prototype.setRectSpot=Wt.prototype.xi,Wt.prototype.snapToGridPoint=Wt.prototype.vA,Wt.prototype.snapToGrid=Wt.prototype.uA,Wt.prototype.projectOntoLineSegmentPoint=Wt.prototype.gA,Wt.prototype.projectOntoLineSegment=Wt.prototype.fA,Wt.intersectingLineSegments=function(a,y,x,E,b,z,tt,ot){return _t.Rl(a,y,x,E,b,z,tt,ot)},Wt.prototype.compareWithLineSegmentPoint=Wt.prototype.Ry,Wt.compareWithLineSegment=function(a,y,x,E,b,z){return _t.Fl(a,y,x,E,b,z)},Wt.prototype.direction=Wt.prototype.direction,Wt.prototype.directionPoint=Wt.prototype.ab,Wt.prototype.normalize=Wt.prototype.normalize,Wt.prototype.distanceSquared=Wt.prototype.zd,Wt.prototype.distanceSquaredPoint=Wt.prototype.Bf,Wt.prototype.scale=Wt.prototype.scale,Wt.prototype.rotate=Wt.prototype.rotate,Wt.prototype.offset=Wt.prototype.offset,Wt.prototype.subtract=Wt.prototype.re,Wt.prototype.add=Wt.prototype.add,Wt.prototype.equalsApprox=Wt.prototype.Xa,Wt.prototype.equalTo=Wt.prototype.hi,Wt.prototype.equals=Wt.prototype.D,Wt.prototype.set=Wt.prototype.set,Wt.prototype.setTo=Wt.prototype.sg;var Mi=[];Wt.className="Point",Wt.parse=$u,Wt.stringify=ad,Wt.distanceLineSegmentSquared=_r,Wt.distanceSquared=gl,Wt.direction=Ki,Wt.Origin=Js=new Wt(0,0).ja(),Wt.InfiniteTopLeft=ca=new Wt(-1/0,-1/0).ja(),Wt.InfiniteBottomRight=Mu=new Wt(1/0,1/0).ja(),Wt.SixPoint=_a=new Wt(6,6).ja(),Wt.NoPoint=lu=new Wt(NaN,NaN).ja(),Wt.parse=$u,Wt.stringify=ad,Wt.distanceLineSegmentSquared=_r,Wt.distanceSquared=gl,Wt.direction=Ki;function un(a,y){a===void 0?this.height=this.width=0:typeof a=="number"&&(0<=a||isNaN(a))&&typeof y=="number"&&(0<=y||isNaN(y))?(this.width=a,this.height=y):oe("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var zi,No,Rr,rs,qr,vi,cs;un.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},un.prototype.h=function(a,y){return this.width=a,this.height=y,this},un.prototype.sg=function(a,y){return this.width=a,this.height=y,this},un.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},un.prototype.copy=function(){var a=new un;return a.width=this.width,a.height=this.height,a},Ct=un.prototype,Ct.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ct.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return Object.isFrozen(this)&&oe("cannot thaw constant: "+this),this._isFrozen=!1,this};function fl(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new un(x,b)}return new un}function Ea(a){return a.width.toString()+" "+a.height.toString()}Ct.toString=function(){return"Size("+this.width+","+this.height+")"},Ct.D=function(a){return a instanceof un?this.width===a.width&&this.height===a.height:!1},Ct.hi=function(a,y){return this.width===a&&this.height===y},Ct.Xa=function(a){return _t.B(this.width,a.width)&&_t.B(this.height,a.height)},Ct.Bc=function(a,y){return a=this.width+a,this.width=0<=a?a:0,y=this.height+y,this.height=0<=y?y:0,this},Ct.w=function(){return isFinite(this.width)&&isFinite(this.height)},un.alloc=function(){var a=uu.pop();return a===void 0?new un:a},un.free=function(a){uu.push(a)},un.prototype.isReal=un.prototype.w,un.prototype.inflate=un.prototype.Bc,un.prototype.equalsApprox=un.prototype.Xa,un.prototype.equalTo=un.prototype.hi,un.prototype.equals=un.prototype.D,un.prototype.set=un.prototype.set,un.prototype.setTo=un.prototype.sg;var uu=[];un.className="Size",un.parse=fl,un.stringify=Ea,un.ZeroSize=zi=new un(0,0).ja(),un.OneSize=No=new un(1,1).ja(),un.SixSize=Rr=new un(6,6).ja(),un.EightSize=rs=new un(8,8).ja(),un.TenSize=qr=new un(10,10).ja(),un.InfiniteSize=vi=new un(1/0,1/0).ja(),un.NoSize=cs=new un(NaN,NaN).ja(),un.parse=fl,un.stringify=Ea;function ke(a,y,x,E){a===void 0?this.height=this.width=this.y=this.x=0:typeof a=="number"&&typeof y=="number"&&typeof x=="number"&&(0<=x||isNaN(x))&&typeof E=="number"&&(0<=E||isNaN(E))?(this.x=a,this.y=y,this.width=x,this.height=E):a instanceof Wt?(x=a.x,a=a.y,y instanceof Wt?(E=y.x,y=y.y,this.x=Math.min(x,E),this.y=Math.min(a,y),this.width=Math.abs(x-E),this.height=Math.abs(a-y)):y instanceof un?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):oe("Incorrect second argument supplied to Rect constructor "+y)):oe("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}Ct=ke.prototype,Ct.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Ct.h=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this};function oa(a,y,x){a.width=y,a.height=x}Ct.sg=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this},Ct.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Ct.dd=function(a){return this.x=a.x,this.y=a.y,this},Ct.tA=function(a){return this.width=a.width,this.height=a.height,this},ke.prototype.copy=function(){var a=new ke;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Ct=ke.prototype,Ct.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ct.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return Object.isFrozen(this)&&oe("cannot thaw constant: "+this),this._isFrozen=!1,this};function pl(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;(E=a[y++])&&(b=parseFloat(E));for(var z=0;a[y]==="";)y++;(E=a[y++])&&(z=parseFloat(E));for(var tt=0;a[y]==="";)y++;return(E=a[y++])&&(tt=parseFloat(E)),new ke(x,b,z,tt)}return new ke}function Tl(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Ct.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Ct.D=function(a){return a instanceof ke?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Ct.hi=function(a,y,x,E){return this.x===a&&this.y===y&&this.width===x&&this.height===E},Ct.Xa=function(a){return _t.B(this.x,a.x)&&_t.B(this.y,a.y)&&_t.B(this.width,a.width)&&_t.B(this.height,a.height)};function th(a,y){return _t.$(a.x,y.x)&&_t.$(a.y,y.y)&&_t.$(a.width,y.width)&&_t.$(a.height,y.height)}Ct.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Ct.Re=function(a){return this.x<=a.x&&a.x+a.width<=this.x+this.width&&this.y<=a.y&&a.y+a.height<=this.y+this.height},Ct.contains=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),this.x<=a&&a+x<=this.x+this.width&&this.y<=y&&y+E<=this.y+this.height},Ct.offset=function(a,y){return this.x+=a,this.y+=y,this},Ct.Bc=function(a,y){return ss(this,y,a,y,a)},Ct.Co=function(a){return ss(this,a.top,a.right,a.bottom,a.left)},Ct.Fv=function(a){return ss(this,-a.top,-a.right,-a.bottom,-a.left)},Ct.Hz=function(a,y,x,E){return ss(this,a,y,x,E)};function ss(a,y,x,E,b){var z=a.width;return x+b<=-z?(a.x+=z/2,a.width=0):(a.x-=b,a.width+=x+b),x=a.height,y+E<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+E),a}Ct.Ex=function(a){return Vl(this,a.x,a.y,a.width,a.height)},Ct.Uu=function(a,y,x,E){return Vl(this,a,y,x,E)};function Vl(a,y,x,E,b){var z=Math.max(a.x,y),tt=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+E),x=Math.min(a.y+a.height,x+b),a.x=z,a.y=tt,a.width=Math.max(0,y-z),a.height=Math.max(0,x-tt),a}Ct.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Ct.Vu=function(a,y,x,E){var b=this.width,z=this.x;return b!==1/0&&x!==1/0&&(b+=z,x+=a,isNaN(x)||isNaN(b)||z>x||a>b)?!1:(a=this.height,x=this.y,!(a!==1/0&&E!==1/0&&(a+=x,E+=y,isNaN(E)||isNaN(a)||x>E||y>a)))};function Zl(a,y){var x=a.width,E=a.x,b=y.x-10;return E>y.width+10+10+b||b>x+E?!1:(x=a.height,a=a.y,E=y.y-10,!(a>y.height+10+10+E||E>x+a))}Ct.Ye=function(a){return Sr(this,a.x,a.y,0,0)},Ct.ed=function(a){return Sr(this,a.x,a.y,a.width,a.height)},Ct.Kv=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),Sr(this,a,y,x,E)};function Sr(a,y,x,E,b){var z=Math.min(a.x,y),tt=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+E),x=Math.max(a.y+a.height,x+b),a.x=z,a.y=tt,a.width=y-z,a.height=x-tt,a}Ct.yi=function(a,y,x){return this.x=a-x.offsetX-x.x*this.width,this.y=y-x.offsetY-x.y*this.height,this};function Is(a,y,x,E,b,z,tt,ot){return tt===void 0&&(tt=0),ot===void 0&&(ot=0),a<=b&&b+tt<=a+x&&y<=z&&z+ot<=y+E}function eh(a,y,x,E,b,z,tt,ot){return a>tt+b||b>x+a?!1:!(y>ot+z||z>E+y)}Ct.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Ct.Mz=function(){return this.width===0&&this.height===0},ke.alloc=function(){var a=Os.pop();return a===void 0?new ke:a},ke.allocAt=function(a,y,x,E){var b=Os.pop();return b===void 0?new ke(a,y,x,E):b.h(a,y,x,E)},ke.free=function(a){Os.push(a)},ve.Object.defineProperties(ke.prototype,{left:{get:function(){return this.x},set:function(a){this.x=a}},top:{get:function(){return this.y},set:function(a){this.y=a}},right:{get:function(){return this.x+this.width},set:function(a){this.x+=a-(this.x+this.width)}},bottom:{get:function(){return this.y+this.height},set:function(a){this.y+=a-(this.y+this.height)}},position:{get:function(){return new Wt(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new un(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Wt(this.x+this.width/2,this.y+this.height/2)},set:function(a){this.x=a.x-this.width/2,this.y=a.y-this.height/2}},centerX:{get:function(){return this.x+this.width/2},set:function(a){this.x=a-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(a){this.y=a-this.height/2}}}),ke.prototype.isEmpty=ke.prototype.Mz,ke.prototype.isReal=ke.prototype.w,ke.intersectsLineSegment=function(a,y,x,E,b,z,tt,ot){return _t.Fx(a,y,x,E,b,z,tt,ot)},ke.prototype.setSpot=ke.prototype.yi,ke.prototype.union=ke.prototype.Kv,ke.prototype.unionRect=ke.prototype.ed,ke.prototype.unionPoint=ke.prototype.Ye,ke.prototype.intersects=ke.prototype.Vu,ke.prototype.intersectsRect=ke.prototype.Yc,ke.prototype.intersect=ke.prototype.Uu,ke.prototype.intersectRect=ke.prototype.Ex,ke.prototype.grow=ke.prototype.Hz,ke.prototype.subtractMargin=ke.prototype.Fv,ke.prototype.addMargin=ke.prototype.Co,ke.prototype.inflate=ke.prototype.Bc,ke.prototype.offset=ke.prototype.offset,ke.prototype.contains=ke.prototype.contains,ke.prototype.containsRect=ke.prototype.Re,ke.prototype.containsPoint=ke.prototype.ca,ke.prototype.equalsApprox=ke.prototype.Xa,ke.prototype.equalTo=ke.prototype.hi,ke.prototype.equals=ke.prototype.D,ke.prototype.setSize=ke.prototype.tA,ke.prototype.setPoint=ke.prototype.dd,ke.prototype.set=ke.prototype.set,ke.prototype.setTo=ke.prototype.sg;var xa=null,ju=null,Os=[];ke.className="Rect",ke.parse=pl,ke.stringify=Tl,ke.contains=Is,ke.intersects=eh,ke.ZeroRect=xa=new ke(0,0,0,0).ja(),ke.NoRect=ju=new ke(NaN,NaN,NaN,NaN).ja(),ke.parse=pl,ke.stringify=Tl,ke.contains=Is,ke.intersects=eh;function gi(a,y,x,E){a===void 0?this.left=this.bottom=this.right=this.top=0:y===void 0?this.left=this.bottom=this.right=this.top=a:x===void 0?(this.top=a,this.right=y,this.bottom=a,this.left=y):E!==void 0?(this.top=a,this.right=y,this.bottom=x,this.left=E):oe("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}gi.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},gi.prototype.sg=function(a,y,x,E){return this.top=a,this.right=y,this.bottom=x,this.left=E,this},gi.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},gi.prototype.copy=function(){var a=new gi;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Ct=gi.prototype,Ct.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ct.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return Object.isFrozen(this)&&oe("cannot thaw constant: "+this),this._isFrozen=!1,this};function Kl(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=NaN;a[y]==="";)y++;var E=a[y++];if(E&&(x=parseFloat(E)),isNaN(x))return new gi;for(var b=NaN;a[y]==="";)y++;if((E=a[y++])&&(b=parseFloat(E)),isNaN(b))return new gi(x);for(var z=NaN;a[y]==="";)y++;if((E=a[y++])&&(z=parseFloat(E)),isNaN(z))return new gi(x,b);for(var tt=NaN;a[y]==="";)y++;return(E=a[y++])&&(tt=parseFloat(E)),isNaN(tt)?new gi(x,b):new gi(x,b,z,tt)}return new gi}function Oh(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Ct.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Ct.D=function(a){return a instanceof gi?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Ct.hi=function(a,y,x,E){return this.top===a&&this.right===y&&this.bottom===x&&this.left===E},Ct.Xa=function(a){return _t.B(this.top,a.top)&&_t.B(this.right,a.right)&&_t.B(this.bottom,a.bottom)&&_t.B(this.left,a.left)},Ct.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},gi.alloc=function(){var a=ud.pop();return a===void 0?new gi:a},gi.free=function(a){ud.push(a)},gi.prototype.isReal=gi.prototype.w,gi.prototype.equalsApprox=gi.prototype.Xa,gi.prototype.equalTo=gi.prototype.hi,gi.prototype.equals=gi.prototype.D,gi.prototype.set=gi.prototype.set,gi.prototype.setTo=gi.prototype.sg;var Dl=null,ld=null,ud=[];gi.className="Margin",gi.parse=Kl,gi.stringify=Oh,gi.ZeroMargin=Dl=new gi(0,0,0,0).ja(),gi.TwoMargin=ld=new gi(2,2,2,2).ja(),gi.parse=Kl,gi.stringify=Oh;function Qn(a,y,x,E){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),E===void 0&&(E=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=E),this._isFrozen=!1}var We,be,Be,ir,Fo,ri,Ur,Bo,yi,$i,no,ga,$r,Mo,qe,Li,Wi,ho,_i,Ui,sr,Qo,io,Io,Lr,so,ml,Ql,Vr,ka,Zr,_s,gs,oo,tr,Dr;Qn.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Qn.prototype.sg=function(a,y,x,E){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=E,this},Qn.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Qn.prototype.copy=function(){var a=new Qn;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Ct=Qn.prototype,Ct.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ct.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return Object.isFrozen(this)&&oe("cannot thaw constant: "+this),this._isFrozen=!1,this};function Er(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function Ph(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return We;if(a==="TopLeft")return be;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Be;if(a==="TopRight")return ir;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Fo;if(a==="Center")return ri;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return Ur;if(a==="BottomLeft")return Bo;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return yi;if(a==="BottomRight")return $i;if(a==="TopSide")return no;if(a==="LeftSide")return ga;if(a==="RightSide")return $r;if(a==="BottomSide")return Mo;if(a==="TopBottomSides")return qe;if(a==="LeftRightSides")return Li;if(a==="TopLeftSides")return Wi;if(a==="TopRightSides")return ho;if(a==="BottomLeftSides")return _i;if(a==="BottomRightSides")return Ui;if(a==="NotTopSide")return sr;if(a==="NotLeftSide")return Qo;if(a==="NotRightSide")return io;if(a==="NotBottomSide")return Io;if(a==="AllSides")return Lr;if(a==="Default")return so;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E!==void 0&&0a&&(a+=360),a===0)return this;if(this.translate(y,x),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.m12*a+this.m22*E,z=this.m11*-E+this.m21*a,tt=this.m12*-E+this.m22*a;return this.m11=this.m11*a+this.m21*E,this.m12=b,this.m21=z,this.m22=tt,this.translate(-y,-x),this},Ct=fi.prototype,Ct.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Ct.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Ct.Ga=function(a){var y=a.x,x=a.y;return a.h(y*this.m11+x*this.m21+this.dx,y*this.m12+x*this.m22+this.dy)},Ct.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=a.x,E=a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Ct.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=1.25*a.x,E=1.2*a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Ct.pp=function(a){var y=a.x,x=a.y,E=y+a.width,b=x+a.height,z=this.m11,tt=this.m12,ot=this.m21,rt=this.m22,at=this.dx,ut=this.dy,gt=y*z+x*ot+at,mt=y*tt+x*rt+ut,yt=E*z+x*ot+at,wt=E*tt+x*rt+ut;return x=y*z+b*ot+at,y=y*tt+b*rt+ut,z=E*z+b*ot+at,E=E*tt+b*rt+ut,b=Math.min(gt,yt),gt=Math.max(gt,yt),yt=Math.min(mt,wt),mt=Math.max(mt,wt),b=Math.min(b,x),gt=Math.max(gt,x),yt=Math.min(yt,y),mt=Math.max(mt,y),b=Math.min(b,z),gt=Math.max(gt,z),yt=Math.min(yt,E),mt=Math.max(mt,E),a.h(b,yt,gt-b,mt-yt),a},fi.alloc=function(){var a=Rh.pop();return a===void 0?new fi:a},fi.free=function(a){Rh.push(a)},fi.prototype.transformRect=fi.prototype.pp,fi.prototype.transformPoint=fi.prototype.Ga,fi.prototype.scale=fi.prototype.scale,fi.prototype.translate=fi.prototype.translate,fi.prototype.rotate=fi.prototype.rotate,fi.prototype.invert=fi.prototype.Vj,fi.prototype.multiplyInverted=fi.prototype.bv,fi.prototype.multiply=fi.prototype.multiply,fi.prototype.reset=fi.prototype.reset,fi.prototype.isIdentity=fi.prototype.ws,fi.prototype.equals=fi.prototype.D,fi.prototype.setTransform=fi.prototype.setTransform,fi.prototype.set=fi.prototype.set;var Rh=[];fi.className="Transform",fi.xF="54a702f3e53909c447824c6706603faf4c";var _t={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=_t.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);_t.Uv=y}return 1>a?(x=1/a,2e3>=x?1/y[x|0]:Math.sqrt(a)):2e3>=a?y[a|0]:Math.sqrt(a)},B:function(a,y){return a-=y,.5>a&&-.5a&&-5e-8=b&&(b=1e-6),aut-at)if(a-x>b||x-a>b){if(z=(E-y)/(x-a)*(z-a)+y,z-b<=tt&&tt<=z+b)return!0}else return!0;else if(y-E>b||E-y>b){if(tt=(x-a)/(E-y)*(tt-y)+a,tt-b<=z&&z<=tt+b)return!0}else return!0;return!1},cs:function(a,y,x,E,b,z,tt,ot,rt,at,ut,gt){if(_t.Yb(a,y,tt,ot,gt,x,E)&&_t.Yb(a,y,tt,ot,gt,b,z))return _t.Yb(a,y,tt,ot,gt,at,ut);var mt=(a+x)/2,yt=(y+E)/2,wt=(x+b)/2,Et=(E+z)/2;b=(b+tt)/2,z=(z+ot)/2,E=(mt+wt)/2,x=(yt+Et)/2,wt=(wt+b)/2,Et=(Et+z)/2;var zt=(E+wt)/2,It=(x+Et)/2;return _t.cs(a,y,mt,yt,E,x,zt,It,rt,at,ut,gt)||_t.cs(zt,It,wt,Et,b,z,tt,ot,rt,at,ut,gt)},ax:function(a,y,x,E,b,z,tt,ot,rt){var at=(x+b)/2,ut=(E+z)/2;return rt.h((((a+x)/2+at)/2+(at+(b+tt)/2)/2)/2,(((y+E)/2+ut)/2+(ut+(z+ot)/2)/2)/2),rt},My:function(a,y,x,E,b,z,tt,ot){var rt=(x+b)/2,at=(E+z)/2;return Ki(((a+x)/2+rt)/2,((y+E)/2+at)/2,(rt+(b+tt)/2)/2,(at+(z+ot)/2)/2)},Dl:function(a,y,x,E,b,z,tt,ot,rt,at){if(_t.Yb(a,y,tt,ot,rt,x,E)&&_t.Yb(a,y,tt,ot,rt,b,z))Sr(at,a,y,0,0),Sr(at,tt,ot,0,0);else{var ut=(a+x)/2,gt=(y+E)/2,mt=(x+b)/2,yt=(E+z)/2;b=(b+tt)/2,z=(z+ot)/2,E=(ut+mt)/2,x=(gt+yt)/2,mt=(mt+b)/2,yt=(yt+z)/2;var wt=(E+mt)/2,Et=(x+yt)/2;_t.Dl(a,y,ut,gt,E,x,wt,Et,rt,at),_t.Dl(wt,Et,mt,yt,b,z,tt,ot,rt,at)}return at},Qe:function(a,y,x,E,b,z,tt,ot,rt,at){if(_t.Yb(a,y,tt,ot,rt,x,E)&&_t.Yb(a,y,tt,ot,rt,b,z))at.length===0&&(at.push(a),at.push(y)),at.push(tt),at.push(ot);else{var ut=(a+x)/2,gt=(y+E)/2,mt=(x+b)/2,yt=(E+z)/2;b=(b+tt)/2,z=(z+ot)/2,E=(ut+mt)/2,x=(gt+yt)/2,mt=(mt+b)/2,yt=(yt+z)/2;var wt=(E+mt)/2,Et=(x+yt)/2;_t.Qe(a,y,ut,gt,E,x,wt,Et,rt,at),_t.Qe(wt,Et,mt,yt,b,z,tt,ot,rt,at)}return at},jv:function(a,y,x,E,b,z,tt,ot,rt,at){if(_t.Yb(a,y,b,z,at,x,E))return _t.Yb(a,y,b,z,at,ot,rt);var ut=(a+x)/2,gt=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var mt=(ut+x)/2,yt=(gt+E)/2;return _t.jv(a,y,ut,gt,mt,yt,tt,ot,rt,at)||_t.jv(mt,yt,x,E,b,z,tt,ot,rt,at)},OA:function(a,y,x,E,b,z,tt){return tt.h(((a+x)/2+(x+b)/2)/2,((y+E)/2+(E+z)/2)/2),tt},iv:function(a,y,x,E,b,z,tt,ot){if(_t.Yb(a,y,b,z,tt,x,E))Sr(ot,a,y,0,0),Sr(ot,b,z,0,0);else{var rt=(a+x)/2,at=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ut=(rt+x)/2,gt=(at+E)/2;_t.iv(a,y,rt,at,ut,gt,tt,ot),_t.iv(ut,gt,x,E,b,z,tt,ot)}return ot},ep:function(a,y,x,E,b,z,tt,ot){if(_t.Yb(a,y,b,z,tt,x,E))ot.length===0&&(ot.push(a),ot.push(y)),ot.push(b),ot.push(z);else{var rt=(a+x)/2,at=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ut=(rt+x)/2,gt=(at+E)/2;_t.ep(a,y,rt,at,ut,gt,tt,ot),_t.ep(ut,gt,x,E,b,z,tt,ot)}return ot},Eo:function(a,y,x,E,b,z,tt,ot,rt,at,ut,gt,mt,yt){if(_t.Yb(a,y,tt,ot,mt,x,E)&&_t.Yb(a,y,tt,ot,mt,b,z))return!_t.Rl(a,y,tt,ot,rt,at,ut,gt)||(mt=(a-tt)*(at-gt)-(y-ot)*(rt-ut),mt===0)?!1:(yt.h(((a*ot-y*tt)*(rt-ut)-(a-tt)*(rt*gt-at*ut))/mt,((a*ot-y*tt)*(at-gt)-(y-ot)*(rt*gt-at*ut))/mt),!0);var wt=(a+x)/2,Et=(y+E)/2,zt=(x+b)/2,It=(E+z)/2;b=(b+tt)/2,z=(z+ot)/2,E=(wt+zt)/2,x=(Et+It)/2,zt=(zt+b)/2,It=(It+z)/2;var Yt=(E+zt)/2,Vt=(x+It)/2,Xt=1/0,te=!1,ge=0,ln=0;return _t.Eo(a,y,wt,Et,E,x,Yt,Vt,rt,at,ut,gt,mt,yt)&&(a=(yt.x-rt)*(yt.x-rt)+(yt.y-at)*(yt.y-at),a=ut)return yt;if((rt>ut?rt-ut:ut-rt)<(at>gt?at-gt:gt-at)){if(ya)return yt}else if(aa)return yt;0mt&&yt--}else{wt=(a+x)/2,Et=(y+E)/2;var zt=(x+b)/2,It=(E+z)/2;b=(b+tt)/2,z=(z+ot)/2,E=(wt+zt)/2,x=(Et+It)/2,zt=(zt+b)/2,It=(It+z)/2;var Yt=(E+zt)/2,Vt=(x+It)/2;yt+=_t.Fo(a,y,wt,Et,E,x,Yt,Vt,rt,at,ut,gt,mt),yt+=_t.Fo(Yt,Vt,zt,It,b,z,tt,ot,rt,at,ut,gt,mt)}return yt},qh:function(a,y,x,E,b,z,tt){return _t.$(a,x)?(yy?(tt.h(a,y),!1):(tt.h(a,z),!0)):_t.$(y,E)?(aa?(tt.h(a,y),!1):(tt.h(b,y),!0)):(b=((a-b)*(a-x)+(y-z)*(y-E))/((x-a)*(x-a)+(E-y)*(E-y)),-5e-6>b?(tt.h(a,y),!1):1.000005y?(rt.h(a,y),!1):(rt.h(a,x),!0)):(tt=(E-y)/(x-a),_t.$(ot,tt)?(_t.qh(a,y,x,E,b,z,rt),!1):(b=(tt*a-ot*b+z-y)/(tt-ot),_t.$(tt,0)?(aa?(rt.h(a,y),!1):(rt.h(b,y),!0)):_t.qh(a,y,x,E,b,tt*(b-a)+y,rt))))},MA:function(a,y,x,E,b){return _t.Ve(x.x,x.y,E.x,E.y,a.x,a.y,y.x,y.y,b)},KA:function(a,y,x,E,b,z,tt,ot,rt,at){function ut(zt,It){var Yt=(zt-a)*(zt-a)+(It-y)*(It-y);Yt(x>a?x-a:a-x)){if(mt=1-(x-b)*(x-b)/(mt*mt),0>mt)return rt;mt=Math.sqrt(mt),E=-at*mt+z,ut(x,at*mt+z),ut(x,E)}else{if(x=(E-y)/(x-a),E=1/(mt*mt)+x*x/(at*at),ot=2*x*(y-x*a)/(at*at)-2*x*z/(at*at)-2*b/(mt*mt),mt=ot*ot-4*E*(2*x*a*z/(at*at)-2*y*z/(at*at)+z*z/(at*at)+b*b/(mt*mt)-1+(y-x*a)*(y-x*a)/(at*at)),0>mt)return rt;mt=Math.sqrt(mt),at=(-ot+mt)/(2*E),ut(at,x*at-x*a+y),mt=(-ot-mt)/(2*E),ut(mt,x*mt-x*a+y)}return rt},Ff:function(a,y,x,E,b,z,tt,ot,rt){var at=1e21,ut=a,gt=y;if(_t.Ve(a,y,a,E,b,z,tt,ot,rt)){var mt=(rt.x-b)*(rt.x-b)+(rt.y-z)*(rt.y-z);mtat},us:function(a,y,x){return _t.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,E,b,z,tt,ot){var rt=a+x,at=y+E;return b===tt?(z=y):z===ot?(b=a):!!(Is(a,y,x,E,b,z)||Is(a,y,x,E,tt,ot)||_t.Rl(a,y,rt,y,b,z,tt,ot)||_t.Rl(rt,y,rt,at,b,z,tt,ot)||_t.Rl(rt,at,a,at,b,z,tt,ot)||_t.Rl(a,at,a,y,b,z,tt,ot))},Rl:function(a,y,x,E,b,z,tt,ot){return a===x&&y===E&&b===tt&&z===ot?a===b&&y===z:0>=_t.Fl(a,y,x,E,b,z)*_t.Fl(a,y,x,E,tt,ot)&&0>=_t.Fl(b,z,tt,ot,a,y)*_t.Fl(b,z,tt,ot,x,E)},Fl:function(a,y,x,E,b,z){return x-=a,E-=y,a=b-a,y=z-y,z=a*E-y*x,z===0&&(z=a*x+y*E,0z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,E,b,z){var tt=Math.PI;z||(E*=tt/180,b*=tt/180);var ot=E>b?-1:1;z=[];var rt=tt/2,at=E;if(E=Math.min(2*tt,Math.abs(b-E)),1e-5>E)return rt=at+ot*Math.min(E,rt),ot=a+x*Math.cos(at),at=y+x*Math.sin(at),a+=x*Math.cos(rt),y+=x*Math.sin(rt),x=(ot+a)/2,rt=(at+y)/2,z.push([ot,at,x,rt,x,rt,a,y]),z;for(;1e-5x,z=0>E;if(aat&&(y=.5*(ot+rt),!(y===ot||y===rt));++at){var ut=a/(y+b),gt=tt/(y+z);if(ut=ut*ut+gt*gt-1,0ut)rt=y;else break}x=b*x/(y+b)-x,E=z*E/(y+z)-E,x=Math.sqrt(x*x+E*E)}else x=Math.abs(E-y);else E=a*a-y*y,z=a*x,za?"M"+this.startX.toString()+" "+this.startY.toString()+"L"+this.endX.toString()+" "+this.endY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a)+"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);case He.u:var y=new ke(this.startX,this.startY,0,0);return y.Kv(this.endX,this.endY,0,0),0>a?"M"+y.x.toString()+" "+y.y.toString()+"H"+y.right.toString()+"V"+y.bottom.toString()+"H"+y.left.toString()+"z":"M"+y.x.toFixed(a)+" "+y.y.toFixed(a)+"H"+y.right.toFixed(a)+"V"+y.bottom.toFixed(a)+"H"+y.left.toFixed(a)+"z";case He.F:if(y=new ke(this.startX,this.startY,0,0),y.Kv(this.endX,this.endY,0,0),0>a)return a=y.left.toString()+" "+(y.y+y.height/2).toString(),"M"+a+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+(y.right.toString()+" "+(y.y+y.height/2).toString())+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+a;var x=y.left.toFixed(a)+" "+(y.y+y.height/2).toFixed(a);return"M"+x+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+(y.right.toFixed(a)+" "+(y.y+y.height/2).toFixed(a))+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+x;case He.o:y="",x=this.figures.s;for(var E=x.length,b=0;b=Xt-1?!0:at[Et+1].match(te)!==null}function E(){return Et++,at[Et]}function b(hi){var si=parseFloat(E()),to=parseFloat(E());zt===zt.toLowerCase()&&(si=Vt.x+si,to=Vt.y+to),hi.h(si,to)}function z(){return b(Vt),Vt}function tt(){return b(Yt),Yt}function ot(){var hi=It.toLowerCase();return hi!=="c"&&hi!=="s"&&hi!=="q"&&hi!=="t"?Vt:new Wt(2*Vt.x-Yt.x,2*Vt.y-Yt.y)}y===void 0&&(y=!1);var rt=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(rt,"$1 $2"),a=a.replace(rt,"$1 $2"),a=a.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),a=a.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),a=a.replace(/([0-9])([+\-])/gm,"$1 $2"),a=a.replace(/[\s\r\t\n]+/gm," "),a=a.replace(/^\s+|\s+$/g,"");var at=a.split(" ");for(a=0;a=Xt-1);)if(It=zt,zt=E(),zt!=="")switch(zt.toUpperCase()){case"X":yt=!0,gt=ut=!1;break;case"M":for(wt=z(),a.mc===null||yt===!0?(Bf(a,wt.x,wt.y,ut,!gt,mt),yt=!1):a.moveTo(wt.x,wt.y),rt.assign(Vt);!x();)wt=z(),a.lineTo(wt.x,wt.y);break;case"L":for(;!x();)wt=z(),a.lineTo(wt.x,wt.y);break;case"H":for(;!x();)Vt=new Wt((zt===zt.toLowerCase()?Vt.x:0)+parseFloat(E()),Vt.y),a.lineTo(Vt.x,Vt.y);break;case"V":for(;!x();)Vt=new Wt(Vt.x,(zt===zt.toLowerCase()?Vt.y:0)+parseFloat(E())),a.lineTo(Vt.x,Vt.y);break;case"C":for(;!x();){wt=new Wt,b(wt);var ge=tt(),ln=z();Vd(a,wt.x,wt.y,ge.x,ge.y,ln.x,ln.y)}break;case"S":for(;!x();)wt=ot(),ge=tt(),ln=z(),Vd(a,wt.x,wt.y,ge.x,ge.y,ln.x,ln.y);break;case"Q":for(;!x();)wt=tt(),ge=z(),Wm(a,wt.x,wt.y,ge.x,ge.y);break;case"T":for(;!x();)Yt=wt=ot(),ge=z(),Wm(a,wt.x,wt.y,ge.x,ge.y);break;case"B":for(;!x();){wt=parseFloat(E()),ge=parseFloat(E()),ln=parseFloat(E());var Cn=parseFloat(E()),vn=parseFloat(E()),Xe=vn,Oe=!1;x()||(Xe=parseFloat(E()),x()||(Oe=parseFloat(E())!==0)),zt===zt.toLowerCase()&&(ln+=Vt.x,Cn+=Vt.y),a.arcTo(wt,ge,ln,Cn,vn,Xe,Oe)}break;case"A":for(;!x();)wt=Math.abs(parseFloat(E())),ge=Math.abs(parseFloat(E())),ln=parseFloat(E()),vn=Cn=!1,Oe=Xe=0,Xe=E(),Xe.length===1?(Cn=!!parseFloat(Xe),vn=!!parseFloat(E()),Xe=parseFloat(E())):Xe.length===2?(Cn=!!parseFloat(Xe[0]),vn=!!parseFloat(Xe[1]),Xe=parseFloat(E())):(Cn=!!parseFloat(Xe[0]),vn=!!parseFloat(Xe[1]),Xe=parseFloat(Xe.slice(2))),Oe=parseFloat(E()),zt===zt.toLowerCase()&&(Xe=Vt.x+Xe,Oe=Vt.y+Oe),Vt.h(Xe,Oe),Px(a,wt,ge,ln,Cn,vn,Xe,Oe);break;case"Z":wx(a),Vt.assign(rt);break;case"F":for(wt="",ge=1;at[Et+ge];)if(at[Et+ge]==="0")mt=!0,ge++;else if(at[Et+ge].match(/[Uu]/)!==null)ge++;else if(at[Et+ge].match(te)===null)ge++;else{wt=at[Et+ge];break}wt.match(/[Mm]/)?ut=!0:0tt&&(tt+=360),wt.startAngle+=tt),0>a&&(wt.startAngle=180-wt.startAngle,wt.sweepAngle=-wt.sweepAngle),0>E&&(wt.startAngle=-wt.startAngle,wt.sweepAngle=-wt.sweepAngle),wt.radiusX*=Math.sqrt(a*a+x*x),wt.radiusY!==void 0&&(wt.radiusY*=Math.sqrt(y*y+E*E));break;case Ht:if(tt=wt.endX,ot=wt.endY,wt.endX=tt*a+ot*x+b,wt.endY=tt*y+ot*E+z,wt.radiusX===0||wt.radiusY===0)break;y!==0&&(tt=180*Math.atan2(y,a)/Math.PI,0>tt&&(tt+=360),wt.xAxisRotation+=tt),0>a&&(wt.xAxisRotation=180-wt.xAxisRotation,wt.isClockwiseArc=!wt.isClockwiseArc),0>E&&(wt.xAxisRotation=-wt.xAxisRotation,wt.isClockwiseArc=!wt.isClockwiseArc),wt.radiusX*=Math.sqrt(a*a+x*x),wt.radiusY*=Math.sqrt(y*y+E*E);break;default:oe("Unknown Segment type: "+wt.type)}}}}return this._isInvalidBounds=!0,this},Ct.ca=function(a,y){y===void 0&&(y=0);var x=this.od,E=this.pd,b=this.Dc,z=this.Ec;switch(this.type){case He.j:return _t.Yb(x,E,b,z,y,a.x,a.y);case He.u:var tt=ke.allocAt(Math.min(x,b)-y,Math.min(E,z)-y,Math.abs(b-x)+2*y,Math.abs(z-E)+2*y);return a=tt.ca(a),ke.free(tt),a;case He.F:tt=Math.min(x,b)-y;var ot=Math.min(E,z)-y;return x=(Math.abs(b-x)+2*y)/2,y=(Math.abs(z-E)+2*y)/2,0>=x||0>=y?!1:(tt=a.x-(tt+x),ot=a.y-(ot+y),1>=tt*tt/(x*x)+ot*ot/(y*y));case He.o:return Vs(this,a,y,!0,!1);default:return!1}};function Vs(a,y,x,E,b){var z=y.x;y=y.y;for(var tt=a.bounds.x-20,ot=0,rt,at,ut,gt,mt=a.figures.s,yt=mt.length,wt=0;wt=a)return 0;if((b>tt?b-tt:tt-b)<(z>ot?z-ot:ot-z)){if(zot)return 0}else if(yz)return 0}else if(btt)return 0}else if(atb)return 0;return 0a?a=0:1=z)return E=z-tt,E=ut===0?0:E/ut,x=x[ot],ot=x[2*a],b=x[2*a+1],y.h(ot+(x[2*a+2]-ot)*E,b+(x[2*a+3]-b)*E),y;tt+=ut}}return y},Ct.wx=function(a){if(0>a?a=0:1=b)return b=y[tt],y=b[2*a],x=b[2*a+1],E=b[2*a+2],a=b[2*a+3],1>Math.abs(E-y)&&1>Math.abs(a-x)?0:1>Math.abs(E-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=E-y?0:180:180*Math.atan2(a-x,E-y)/Math.PI;z+=at}}return NaN},Ct.Qu=function(a,y){if(0>a?a=0:1=z)return E=z-tt,E=ut===0?0:E/ut,ut=x[ot],x=ut[2*a],ot=ut[2*a+1],b=ut[2*a+2],a=ut[2*a+3],y[0]=x+(b-x)*E,y[1]=ot+(a-ot)*E,y[2]=1>Math.abs(b-x)&&1>Math.abs(a-ot)?0:1>Math.abs(b-x)?0<=a-ot?90:270:1>Math.abs(a-ot)?0<=b-x?0:180:180*Math.atan2(a-ot,b-x)/Math.PI,y;tt+=ut}}return y},Ct.xx=function(a){if(this.type===He.j){var y=this.startX,x=this.startY,E=this.endX,b=this.endY;if(y!==E||x!==b){var z=a.x;if(a=a.y,y===E){if(x=E?E===x?0:1:Math.abs(a-x)/(E-tt)}if(x===b)return y=E?E===y?0:1:Math.abs(z-y)/(E-tt);tt=(E-y)*(E-y)+(b-x)*(b-x);var ot=Wt.alloc();return _t.qh(y,x,E,b,z,a,ot),a=ot.x,z=ot.y,Wt.free(ot),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/tt)}}else if(this.type===He.u){tt=this.startX,ot=this.startY;var rt=this.endX;if(b=this.endY,tt!==rt||ot!==b){y=rt-tt,x=b-ot,z=2*y+2*x,E=a.x,a=a.y,E=Math.min(Math.max(E,tt),rt),a=Math.min(Math.max(a,ot),b),tt=Math.abs(E-tt),rt=Math.abs(E-rt),ot=Math.abs(a-ot),b=Math.abs(a-b);var at=Math.min(tt,rt,ot,b);if(at===ot)return E/z;if(at===rt)return(y+a)/z;if(at===b)return(2*y+x-E)/z;if(at===tt)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,E=Wt.alloc(),b=1/0,ot=tt=0,rt=y.length;for(var ut=at=0,gt=0;gta?0:1a?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a),x=this.segments.s,E=x.length,b=0;ba&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(E,0),this.Pg=Math.max(b,0),typeof tt=="boolean"?tt&&(this.isLargeArc=!0):typeof tt=="number"&&tt&&(this.isLargeArc=!0),ot&&(this.isClockwiseArc=!0)):(this.Ne=E,this.Vh=b,a===Ot&&(z=Math.max(z,0)),this.Wh=z,typeof tt=="number"?(a===Ot&&(tt=Math.max(tt,0)),this.Pg=tt):this.Pg=0),this.ae=null}Vi.prototype.copy=function(){var a=new Vi;return a.na=this.na,a.l=this.l&-2,a.Dc=this.Dc,a.Ec=this.Ec,a.Ne=this.Ne,a.Vh=this.Vh,a.Wh=this.Wh,a.Pg=this.Pg,a},Ct=Vi.prototype,Ct.Xa=function(a){if(!(a instanceof Vi)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case fs:case Lo:return _t.B(this.endX,a.endX)&&_t.B(this.endY,a.endY);case Rs:return _t.B(this.endX,a.endX)&&_t.B(this.endY,a.endY)&&_t.B(this.point1X,a.point1X)&&_t.B(this.point1Y,a.point1Y)&&_t.B(this.point2X,a.point2X)&&_t.B(this.point2Y,a.point2Y);case bt:return _t.B(this.endX,a.endX)&&_t.B(this.endY,a.endY)&&_t.B(this.point1X,a.point1X)&&_t.B(this.point1Y,a.point1Y);case Ot:return _t.B(this.startAngle,a.startAngle)&&_t.B(this.sweepAngle,a.sweepAngle)&&_t.B(this.centerX,a.centerX)&&_t.B(this.centerY,a.centerY)&&_t.B(this.radiusX,a.radiusX)&&_t.B(this.radiusY,a.radiusY);case Ht:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&_t.B(this.xAxisRotation,a.xAxisRotation)&&_t.B(this.endX,a.endX)&&_t.B(this.endY,a.endY)&&_t.B(this.radiusX,a.radiusX)&&_t.B(this.radiusY,a.radiusY);default:return!1}},Ct.qb=function(a){a.classType===Vi&&(this.type=a)},Ct.toString=function(a){switch(a===void 0&&(a=-1),this.type){case fs:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Lo:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Rs:a=0>a?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.point2X.toFixed(a)+" "+this.point2Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case bt:a=0>a?"Q"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"Q"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Ot:a=0>a?"B"+this.startAngle.toString()+" "+this.sweepAngle.toString()+" "+this.centerX.toString()+" "+this.centerY.toString()+" "+this.radiusX.toString()+" "+this.radiusY.toString():"B"+this.startAngle.toFixed(a)+" "+this.sweepAngle.toFixed(a)+" "+this.centerX.toFixed(a)+" "+this.centerY.toFixed(a)+" "+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a);break;case Ht:a=0>a?"A"+this.radiusX.toString()+" "+this.radiusY.toString()+" "+this.xAxisRotation.toString()+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toString()+" "+this.endY.toString():"A"+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a)+" "+this.xAxisRotation.toFixed(a)+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;default:a=this.type.toString()}return a+(this.isClosed?"z":"")},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return this._isFrozen=!1,this},Ct.close=function(){return this.isClosed=!0,this};function qs(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var x=a.radiusX,E=a.radiusY;if(E===void 0&&(E=x),x===0||E===0)return a.ae=[],a.ae;y=a.Ne;var b=a.Vh,z=_t.jx(0,0,x=yt?tt=Math.PI:1<=yt&&(tt=0),!rt&&0tt&&(tt+=2*Math.PI),rt=y>z?1:y/z,yt=y>z?z/y:1,y=_t.jx(0,0,y>z?y:z,ut,ut+tt,!0),z=fi.alloc(),z.reset(),z.translate(x,E),z.rotate(a.Ne,0,0),z.scale(rt,yt),He.Ha(y,z),fi.free(z),a.ae=y,a.ae}ve.Object.defineProperties(Vi.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},isClosed:{get:function(){return(this.l&8)!==0},set:function(a){this.isClosed!==a&&(this.l=a?this.l|8:this.l&-9,this._isInvalidBounds=!0)}},type:{get:function(){return this.na},set:function(a){this._isFrozen&&mn(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&mn(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&mn(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&mn(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&mn(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&mn(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&mn(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&mn(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&mn(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&li(a,">= zero",Vi,"radiusX"),this._isFrozen&&mn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&li(a,">= zero",Vi,"radiusY"),this._isFrozen&&mn(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&mn(this,a),a%=360,0>a&&(a+=360),this.Dc=a,this._isInvalidBounds=!0}},sweepAngle:{get:function(){return this.Ec},set:function(a){this._isFrozen&&mn(this,a),360a&&(a=-360),this.Ec=a,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&mn(this,a),this.l=a?this.l|4:this.l&-5,this._isInvalidBounds=!0}},isLargeArc:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&mn(this,a),this.l=a?this.l|16:this.l&-17,this._isInvalidBounds=!0}},xAxisRotation:{get:function(){return this.Ne},set:function(a){this._isFrozen&&mn(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),Vi.prototype.equalsApprox=Vi.prototype.Xa;var fs=new Ye(Vi,"Move",0),Lo=new Ye(Vi,"Line",1),Rs=new Ye(Vi,"Bezier",2),bt=new Ye(Vi,"QuadraticBezier",3),Ot=new Ye(Vi,"Arc",4),Ht=new Ye(Vi,"SvgArc",4);Vi.className="PathSegment",Vi.Move=fs,Vi.Line=Lo,Vi.Bezier=Rs,Vi.QuadraticBezier=bt,Vi.Arc=Ot,Vi.SvgArc=Ht;function le(){this.H=null,this.xu=new Wt(0,0).freeze(),this.mt=new Wt(0,0).freeze(),this.Bp=this.Rq=0,this.Cp=1,this.xq="",this.Wr=this.Tp=!1,this.Rp=this.Ep=0,this.xg=this.nq=this.tq=!1,this.Zp=null,this.Rr=0,this.xd=this.Nr=null}le.prototype.copy=function(){var a=new le;return this.clone(a)},le.prototype.clone=function(a){return a.H=this.H,a.xu.assign(this.viewPoint),a.mt.assign(this.documentPoint),a.Rq=this.Rq,a.Bp=this.Bp,a.Cp=this.Cp,a.xq=this.xq,a.Tp=this.Tp,a.Wr=this.Wr,a.Ep=this.Ep,a.Rp=this.Rp,a.tq=this.tq,a.nq=this.nq,a.xg=this.xg,a.Zp=this.Zp,a.Rr=this.Rr,a.Nr=this.Nr,a.xd=this.xd,a},le.prototype.toString=function(){var a="^";return this.modifiers!==0&&(a+="M:"+this.modifiers),this.button!==0&&(a+="B:"+this.button),this.key!==""&&(a+="K:"+this.key),this.clickCount!==0&&(a+="C:"+this.clickCount),this.delta!==0&&(a+="D:"+this.delta),this.handled&&(a+="h"),this.bubbles&&(a+="b"),this.documentPoint!==null&&(a+="@"+this.documentPoint.toString()),a},le.prototype.So=function(a,y){var x=this.diagram;return x===null||_c(x,a,y),y},le.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(_c(x,a,y),y.assign(x.Ps(y))),y},ve.Object.defineProperties(le.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},viewPoint:{get:function(){return this.xu},set:function(a){this.xu.assign(a)}},documentPoint:{get:function(){return this.mt},set:function(a){this.mt.assign(a)}},modifiers:{get:function(){return this.Rq},set:function(a){this.Rq=a}},button:{get:function(){return this.Bp},set:function(a){if(this.Bp=a,this.event===null)switch(a){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2}}},buttons:{get:function(){return this.Cp},set:function(a){this.Cp=a}},key:{get:function(){return this.xq},set:function(a){this.xq=a}},down:{get:function(){return this.Tp},set:function(a){this.Tp=a}},up:{get:function(){return this.Wr},set:function(a){this.Wr=a}},clickCount:{get:function(){return this.Ep},set:function(a){this.Ep=a}},delta:{get:function(){return this.Rp},set:function(a){this.Rp=a}},isMultiTouch:{get:function(){return this.tq},set:function(a){this.tq=a}},handled:{get:function(){return this.nq},set:function(a){this.nq=a}},bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},event:{get:function(){return this.Zp},set:function(a){this.Zp=a}},isTouchEvent:{get:function(){var a=this.event;return a===null?!1:a.pointerType==="touch"||a.pointerType==="pen"}},timestamp:{get:function(){return this.Rr},set:function(a){this.Rr=a}},targetDiagram:{get:function(){return this.Nr},set:function(a){this.Nr=a}},targetObject:{get:function(){return this.xd},set:function(a){this.xd=a}},control:{get:function(){return(this.modifiers&1)!==0},set:function(a){this.modifiers=a?this.modifiers|1:this.modifiers&-2}},shift:{get:function(){return(this.modifiers&4)!==0},set:function(a){this.modifiers=a?this.modifiers|4:this.modifiers&-5}},alt:{get:function(){return(this.modifiers&2)!==0},set:function(a){this.modifiers=a?this.modifiers|2:this.modifiers&-3}},meta:{get:function(){return(this.modifiers&8)!==0},set:function(a){this.modifiers=a?this.modifiers|8:this.modifiers&-9}},left:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&1)!==0:this.button===0},set:function(a){this.buttons=a?this.buttons|1:this.buttons&-2}},right:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&2)!==0:this.button===2},set:function(a){this.buttons=a?this.buttons|2:this.buttons&-3}},middle:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&4)!==0:this.button===1},set:function(a){this.buttons=a?this.buttons|4:this.buttons&-5}}}),le.prototype.getMultiTouchDocumentPoint=le.prototype.Bz,le.prototype.getMultiTouchViewPoint=le.prototype.So,le.className="InputEvent";function de(){this.H=null,this.xa="",this.ar=this.Lr=null}de.prototype.copy=function(){var a=new de;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},de.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},ve.Object.defineProperties(de.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},subject:{get:function(){return this.Lr},set:function(a){this.Lr=a}},parameter:{get:function(){return this.ar},set:function(a){this.ar=a}}}),de.className="DiagramEvent";function se(){this.Fm=Te,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}se.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},se.prototype.copy=function(){var a=new se;a.Fm=this.Fm,a.Qq=this.Qq,a.rf=this.rf,a.cc=this.cc,a.H=this.H,a.Qn=this.Qn;var y=this.Sn;return a.Sn=De(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=De(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=De(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=De(y)&&typeof y.J=="function"?y.J():y,a},se.prototype.qb=function(a){a.classType===se&&(this.change=a)},se.prototype.toString=function(){var a="";return a=this.change===ye?a+"* ":this.change===Te?a+(this.model!==null?"!m":"!d"):a+((this.model!==null?"!m":"!d")+this.change),this.propertyName&&typeof this.propertyName=="string"&&(a+=" "+this.propertyName),this.modelChange&&this.modelChange!==this.propertyName&&(a+=" "+this.modelChange),a+=": ",this.change===ye?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=Wo(this.object)),this.oldValue!==null&&(a+=" old: "+Wo(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+Wo(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},se.prototype.I=function(a){return a?this.oldValue:this.newValue},se.prototype.Dz=function(a){return a?this.oldParam:this.newParam},se.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},se.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},se.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},se.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},ve.Object.defineProperties(se.prototype,{model:{get:function(){return this.cc},set:function(a){this.cc=a}},diagram:{get:function(){return this.H},set:function(a){this.H=a}},change:{get:function(){return this.Fm},set:function(a){this.Fm=a}},modelChange:{get:function(){return this.Qq},set:function(a){this.Qq=a}},propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},isTransactionFinished:{get:function(){return this.Fm===ye&&(this.rf==="CommittedTransaction"||this.rf==="FinishedUndo"||this.rf==="FinishedRedo")}},object:{get:function(){return this.Qn},set:function(a){this.Qn=a}},oldValue:{get:function(){return this.Sn},set:function(a){this.Sn=a}},oldParam:{get:function(){return this.Rn},set:function(a){this.Rn=a}},newValue:{get:function(){return this.Mn},set:function(a){this.Mn=a}},newParam:{get:function(){return this.Ln},set:function(a){this.Ln=a}}}),se.prototype.redo=se.prototype.redo,se.prototype.canRedo=se.prototype.canRedo,se.prototype.undo=se.prototype.undo,se.prototype.canUndo=se.prototype.canUndo,se.prototype.getParam=se.prototype.Dz,se.prototype.getValue=se.prototype.I,se.prototype.clear=se.prototype.clear;var ye=new Ye(se,"Transaction",-1),Te=new Ye(se,"Property",0),Qe=new Ye(se,"Insert",1),rn=new Ye(se,"Remove",2);se.className="ChangedEvent",se.Transaction=ye,se.Property=Te,se.Insert=Qe,se.Remove=rn;function jn(){this.o=new on().freeze(),this.xa="",this.j=!1}jn.prototype.toString=function(a){var y="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(a!==void 0&&00&&st.prevInput=="\u200B"?kr(ct,sa)(ct):In++<10?ht.detectingSelectAll=setTimeout($n,500):(ht.selForContextMenu=null,ht.input.reset())};ht.detectingSelectAll=setTimeout($n,200)}}if(fe&&je>=9&&Ze(),At){As(it);var kn=function(){xn(window,"mouseup",kn),setTimeout(ze,20)};me(window,"mouseup",kn)}else setTimeout(ze,50)},Ba.prototype.readOnlyChanged=function(it){it||this.reset(),this.textarea.disabled=it=="nocursor",this.textarea.readOnly=!!it},Ba.prototype.setUneditable=function(){},Ba.prototype.needsContentAttribute=!1;function cm(it,st){if(st=st?cn(st):{},st.value=it.value,!st.tabindex&&it.tabIndex&&(st.tabindex=it.tabIndex),!st.placeholder&&it.placeholder&&(st.placeholder=it.placeholder),st.autofocus==null){var ct=xe();st.autofocus=ct==it||it.getAttribute("autofocus")!=null&&ct==document.body}function ht(){it.value=Gt.getValue()}var ft;if(it.form&&(me(it.form,"submit",ht),!st.leaveSubmitMethodAlone)){var Pt=it.form;ft=Pt.submit;try{var Dt=Pt.submit=function(){ht(),Pt.submit=ft,Pt.submit(),Pt.submit=Dt}}catch(Rt){}}st.finishInit=function(Rt){Rt.save=ht,Rt.getTextArea=function(){return it},Rt.toTextArea=function(){Rt.toTextArea=isNaN,ht(),it.parentNode.removeChild(Rt.getWrapperElement()),it.style.display="",it.form&&(xn(it.form,"submit",ht),!st.leaveSubmitMethodAlone&&typeof it.form.submit=="function"&&(it.form.submit=ft))}},it.style.display="none";var Gt=Nr(function(Rt){return it.parentNode.insertBefore(Rt,it.nextSibling)},st);return Gt}function lg(it){it.off=xn,it.on=me,it.wheelEventPixels=Ts,it.Doc=Ya,it.splitLines=qi,it.countColumn=he,it.findColumn=Xn,it.isWordChar=Jo,it.Pass=An,it.signal=yn,it.Line=qr,it.changeEnd=Ds,it.scrollbarModel=zr,it.Pos=De,it.cmpPos=dn,it.modes=za,it.mimeModes=da,it.resolveMode=ai,it.getMode=Ee,it.modeExtensions=pe,it.extendMode=ve,it.copyState=Wn,it.startState=Kn,it.innerMode=On,it.commands=Lh,it.keyMap=jl,it.keyName=yf,it.isModifierKey=Bd,it.lookupKey=tu,it.normalizeKeyMap=Jc,it.StringStream=Ge,it.SharedTextMarker=ah,it.TextMarker=ce,it.LineWidget=Wu,it.e_preventDefault=vo,it.e_stopPropagation=Ri,it.e_stop=As,it.addClass=Re,it.contains=Fe,it.rmClass=Kt,it.keyNames=lh}zd(Nr),Gd(Nr);var vd="iter insert remove copy getEditor constructor".split(" ");for(var Wg in Ya.prototype)Ya.prototype.hasOwnProperty(Wg)&&Ae(vd,Wg)<0&&(Nr.prototype[Wg]=function(it){return function(){return it.apply(this.doc,arguments)}}(Ya.prototype[Wg]));return Ti(Ya),Nr.inputStyles={textarea:Ba,contenteditable:vs},Nr.defineMode=function(it){!Nr.defaults.mode&&it!="null"&&(Nr.defaults.mode=it),Xa.apply(this,arguments)},Nr.defineMIME=ei,Nr.defineMode("null",function(){return{token:function(it){return it.skipToEnd()}}}),Nr.defineMIME("text/plain","null"),Nr.defineExtension=function(it,st){Nr.prototype[it]=st},Nr.defineDocExtension=function(it,st){Ya.prototype[it]=st},Nr.fromTextArea=cm,lg(Nr),Nr.version="5.58.2",Nr})},25419:function(tn,Fn,Ft){(function(St){St(Ft(89780),Ft(15525),Ft(98101))})(function(St){"use strict";St.defineMode("markdown",function(Ut,Me){var _e=St.getMode(Ut,"text/html"),fe=_e.name=="null";function je(he){if(St.findModeByName){var Qt=St.findModeByName(he);Qt&&(he=Qt.mime||Qt.mimes[0])}var Ae=St.getMode(Ut,he);return Ae.name=="null"?null:Ae}Me.highlightFormatting===void 0&&(Me.highlightFormatting=!1),Me.maxBlockquoteDepth===void 0&&(Me.maxBlockquoteDepth=0),Me.taskLists===void 0&&(Me.taskLists=!1),Me.strikethrough===void 0&&(Me.strikethrough=!1),Me.emoji===void 0&&(Me.emoji=!1),Me.fencedCodeBlockHighlighting===void 0&&(Me.fencedCodeBlockHighlighting=!0),Me.fencedCodeBlockDefaultMode===void 0&&(Me.fencedCodeBlockDefaultMode="text/plain"),Me.xml===void 0&&(Me.xml=!0),Me.tokenTypeOverrides===void 0&&(Me.tokenTypeOverrides={});var ie={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var Ne in ie)ie.hasOwnProperty(Ne)&&Me.tokenTypeOverrides[Ne]&&(ie[Ne]=Me.tokenTypeOverrides[Ne]);var we=/^([*\-_])(?:\s*\1){2,}\s*$/,Le=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Pe=/^\[(x| )\](?=\s)/i,Ie=Me.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Ue=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Tt=/^[^#!\[\]*_\\<>` "'(~:]+/,et=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,nt=/^\s*\[[^\]]+?\]:.*$/,dt=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,lt=" ";function pt(he,Qt,Ae){return Qt.f=Qt.inline=Ae,Ae(he,Qt)}function vt(he,Qt,Ae){return Qt.f=Qt.block=Ae,Ae(he,Qt)}function Lt(he){return!he||!/\S/.test(he.string)}function At(he){if(he.linkTitle=!1,he.linkHref=!1,he.linkText=!1,he.em=!1,he.strong=!1,he.strikethrough=!1,he.quote=0,he.indentedCode=!1,he.f==Kt){var Qt=fe;if(!Qt){var Ae=St.innerMode(_e,he.htmlState);Qt=Ae.mode.name=="xml"&&Ae.state.tagStart===null&&!Ae.state.context&&Ae.state.tokenize.isInText}Qt&&(he.f=ue,he.block=kt,he.htmlState=null)}return he.trailingSpace=0,he.trailingSpaceNewLine=!1,he.prevLine=he.thisLine,he.thisLine={stream:null},null}function kt(he,Qt){var Ae=he.column()===Qt.indentation,Gn=Lt(Qt.prevLine.stream),An=Qt.indentedCode,Se=Qt.prevLine.hr,sn=Qt.list!==!1,wn=(Qt.listStack[Qt.listStack.length-1]||0)+3;Qt.indentedCode=!1;var Xn=Qt.indentation;if(Qt.indentationDiff===null&&(Qt.indentationDiff=Qt.indentation,sn)){for(Qt.list=null;Xn=4&&(An||Qt.prevLine.fencedCodeEnd||Qt.prevLine.header||Gn))return he.skipToEnd(),Qt.indentedCode=!0,ie.code;if(he.eatSpace())return null;if(Ae&&Qt.indentation<=wn&&(re=he.match(Ie))&&re[1].length<=6)return Qt.quote=0,Qt.header=re[1].length,Qt.thisLine.header=!0,Me.highlightFormatting&&(Qt.formatting="header"),Qt.f=Qt.inline,ne(Qt);if(Qt.indentation<=wn&&he.eat(">"))return Qt.quote=Ae?1:Qt.quote+1,Me.highlightFormatting&&(Qt.formatting="quote"),he.eatSpace(),ne(Qt);if(!ii&&!Qt.setext&&Ae&&Qt.indentation<=wn&&(re=he.match(Le))){var Dn=re[1]?"ol":"ul";return Qt.indentation=Xn+he.current().length,Qt.list=!0,Qt.quote=0,Qt.listStack.push(Qt.indentation),Qt.em=!1,Qt.strong=!1,Qt.code=!1,Qt.strikethrough=!1,Me.taskLists&&he.match(Pe,!1)&&(Qt.taskList=!0),Qt.f=Qt.inline,Me.highlightFormatting&&(Qt.formatting=["list","list-"+Dn]),ne(Qt)}else{if(Ae&&Qt.indentation<=wn&&(re=he.match(et,!0)))return Qt.quote=0,Qt.fencedEndRE=new RegExp(re[1]+"+ *$"),Qt.localMode=Me.fencedCodeBlockHighlighting&&je(re[2]||Me.fencedCodeBlockDefaultMode),Qt.localMode&&(Qt.localState=St.startState(Qt.localMode)),Qt.f=Qt.block=$t,Me.highlightFormatting&&(Qt.formatting="code-block"),Qt.code=-1,ne(Qt);if(Qt.setext||(!Hn||!sn)&&!Qt.quote&&Qt.list===!1&&!Qt.code&&!ii&&!nt.test(he.string)&&(re=he.lookAhead(1))&&(re=re.match(Ue)))return Qt.setext?(Qt.header=Qt.setext,Qt.setext=0,he.skipToEnd(),Me.highlightFormatting&&(Qt.formatting="header")):(Qt.header=re[0].charAt(0)=="="?1:2,Qt.setext=Qt.header),Qt.thisLine.header=!0,Qt.f=Qt.inline,ne(Qt);if(ii)return he.skipToEnd(),Qt.hr=!0,Qt.thisLine.hr=!0,ie.hr;if(he.peek()==="[")return pt(he,Qt,En)}return pt(he,Qt,Qt.inline)}function Kt(he,Qt){var Ae=_e.token(he,Qt.htmlState);if(!fe){var Gn=St.innerMode(_e,Qt.htmlState);(Gn.mode.name=="xml"&&Gn.state.tagStart===null&&!Gn.state.context&&Gn.state.tokenize.isInText||Qt.md_inside&&he.current().indexOf(">")>-1)&&(Qt.f=ue,Qt.block=kt,Qt.htmlState=null)}return Ae}function $t(he,Qt){var Ae=Qt.listStack[Qt.listStack.length-1]||0,Gn=Qt.indentation=he.quote?Qt.push(ie.formatting+"-"+he.formatting[Ae]+"-"+he.quote):Qt.push("error"))}if(he.taskOpen)return Qt.push("meta"),Qt.length?Qt.join(" "):null;if(he.taskClosed)return Qt.push("property"),Qt.length?Qt.join(" "):null;if(he.linkHref?Qt.push(ie.linkHref,"url"):(he.strong&&Qt.push(ie.strong),he.em&&Qt.push(ie.em),he.strikethrough&&Qt.push(ie.strikethrough),he.emoji&&Qt.push(ie.emoji),he.linkText&&Qt.push(ie.linkText),he.code&&Qt.push(ie.code),he.image&&Qt.push(ie.image),he.imageAltText&&Qt.push(ie.imageAltText,"link"),he.imageMarker&&Qt.push(ie.imageMarker)),he.header&&Qt.push(ie.header,ie.header+"-"+he.header),he.quote&&(Qt.push(ie.quote),!Me.maxBlockquoteDepth||Me.maxBlockquoteDepth>=he.quote?Qt.push(ie.quote+"-"+he.quote):Qt.push(ie.quote+"-"+Me.maxBlockquoteDepth)),he.list!==!1){var Gn=(he.listStack.length-1)%3;Gn?Gn===1?Qt.push(ie.list2):Qt.push(ie.list3):Qt.push(ie.list1)}return he.trailingSpaceNewLine?Qt.push("trailing-space-new-line"):he.trailingSpace&&Qt.push("trailing-space-"+(he.trailingSpace%2?"a":"b")),Qt.length?Qt.join(" "):null}function qt(he,Qt){if(he.match(Tt,!0))return ne(Qt)}function ue(he,Qt){var Ae=Qt.text(he,Qt);if(typeof Ae!="undefined")return Ae;if(Qt.list)return Qt.list=null,ne(Qt);if(Qt.taskList){var Gn=he.match(Pe,!0)[1]===" ";return Gn?Qt.taskOpen=!0:Qt.taskClosed=!0,Me.highlightFormatting&&(Qt.formatting="task"),Qt.taskList=!1,ne(Qt)}if(Qt.taskOpen=!1,Qt.taskClosed=!1,Qt.header&&he.match(/^#+$/,!0))return Me.highlightFormatting&&(Qt.formatting="header"),ne(Qt);var An=he.next();if(Qt.linkTitle){Qt.linkTitle=!1;var Se=An;An==="("&&(Se=")"),Se=(Se+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var sn="^\\s*(?:[^"+Se+"\\\\]+|\\\\\\\\|\\\\.)"+Se;if(he.match(new RegExp(sn),!0))return ie.linkHref}if(An==="`"){var wn=Qt.formatting;Me.highlightFormatting&&(Qt.formatting="code"),he.eatWhile("`");var Xn=he.current().length;if(Qt.code==0&&(!Qt.quote||Xn==1))return Qt.code=Xn,ne(Qt);if(Xn==Qt.code){var Hn=ne(Qt);return Qt.code=0,Hn}else return Qt.formatting=wn,ne(Qt)}else if(Qt.code)return ne(Qt);if(An==="\\"&&(he.next(),Me.highlightFormatting)){var ii=ne(Qt),re=ie.formatting+"-escape";return ii?ii+" "+re:re}if(An==="!"&&he.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Qt.imageMarker=!0,Qt.image=!0,Me.highlightFormatting&&(Qt.formatting="image"),ne(Qt);if(An==="["&&Qt.imageMarker&&he.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Qt.imageMarker=!1,Qt.imageAltText=!0,Me.highlightFormatting&&(Qt.formatting="image"),ne(Qt);if(An==="]"&&Qt.imageAltText){Me.highlightFormatting&&(Qt.formatting="image");var ii=ne(Qt);return Qt.imageAltText=!1,Qt.image=!1,Qt.inline=Qt.f=Fe,ii}if(An==="["&&!Qt.image)return Qt.linkText&&he.match(/^.*?\]/)||(Qt.linkText=!0,Me.highlightFormatting&&(Qt.formatting="link")),ne(Qt);if(An==="]"&&Qt.linkText){Me.highlightFormatting&&(Qt.formatting="link");var ii=ne(Qt);return Qt.linkText=!1,Qt.inline=Qt.f=he.match(/\(.*?\)| ?\[.*?\]/,!1)?Fe:ue,ii}if(An==="<"&&he.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Qt.f=Qt.inline=ae,Me.highlightFormatting&&(Qt.formatting="link");var ii=ne(Qt);return ii?ii+=" ":ii="",ii+ie.linkInline}if(An==="<"&&he.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Qt.f=Qt.inline=ae,Me.highlightFormatting&&(Qt.formatting="link");var ii=ne(Qt);return ii?ii+=" ":ii="",ii+ie.linkEmail}if(Me.xml&&An==="<"&&he.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Dn=he.string.indexOf(">",he.pos);if(Dn!=-1){var Zn=he.string.substring(he.start,Dn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Zn)&&(Qt.md_inside=!0)}return he.backUp(1),Qt.htmlState=St.startState(_e),vt(he,Qt,Kt)}if(Me.xml&&An==="<"&&he.match(/^\/\w*?>/))return Qt.md_inside=!1,"tag";if(An==="*"||An==="_"){for(var qn=1,ni=he.pos==1?" ":he.string.charAt(he.pos-2);qn<3&&he.eat(An);)qn++;var Hi=he.peek()||" ",Jo=!/\s/.test(Hi)&&(!dt.test(Hi)||/\s/.test(ni)||dt.test(ni)),pn=!/\s/.test(ni)&&(!dt.test(ni)||/\s/.test(Hi)||dt.test(Hi)),Pn=null,ti=null;if(qn%2&&(!Qt.em&&Jo&&(An==="*"||!pn||dt.test(ni))?Pn=!0:Qt.em==An&&pn&&(An==="*"||!Jo||dt.test(Hi))&&(Pn=!1)),qn>1&&(!Qt.strong&&Jo&&(An==="*"||!pn||dt.test(ni))?ti=!0:Qt.strong==An&&pn&&(An==="*"||!Jo||dt.test(Hi))&&(ti=!1)),ti!=null||Pn!=null){Me.highlightFormatting&&(Qt.formatting=Pn==null?"strong":ti==null?"em":"strong em"),Pn===!0&&(Qt.em=An),ti===!0&&(Qt.strong=An);var Hn=ne(Qt);return Pn===!1&&(Qt.em=!1),ti===!1&&(Qt.strong=!1),Hn}}else if(An===" "&&(he.eat("*")||he.eat("_"))){if(he.peek()===" ")return ne(Qt);he.backUp(1)}if(Me.strikethrough){if(An==="~"&&he.eatWhile(An)){if(Qt.strikethrough){Me.highlightFormatting&&(Qt.formatting="strikethrough");var Hn=ne(Qt);return Qt.strikethrough=!1,Hn}else if(he.match(/^[^\s]/,!1))return Qt.strikethrough=!0,Me.highlightFormatting&&(Qt.formatting="strikethrough"),ne(Qt)}else if(An===" "&&he.match(/^~~/,!0)){if(he.peek()===" ")return ne(Qt);he.backUp(2)}}if(Me.emoji&&An===":"&&he.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Qt.emoji=!0,Me.highlightFormatting&&(Qt.formatting="emoji");var gn=ne(Qt);return Qt.emoji=!1,gn}return An===" "&&(he.match(/^ +$/,!1)?Qt.trailingSpace++:Qt.trailingSpace&&(Qt.trailingSpaceNewLine=!0)),ne(Qt)}function ae(he,Qt){var Ae=he.next();if(Ae===">"){Qt.f=Qt.inline=ue,Me.highlightFormatting&&(Qt.formatting="link");var Gn=ne(Qt);return Gn?Gn+=" ":Gn="",Gn+ie.linkInline}return he.match(/^[^>]+/,!0),ie.linkInline}function Fe(he,Qt){if(he.eatSpace())return null;var Ae=he.next();return Ae==="("||Ae==="["?(Qt.f=Qt.inline=Re(Ae==="("?")":"]"),Me.highlightFormatting&&(Qt.formatting="link-string"),Qt.linkHref=!0,ne(Qt)):"error"}var xe={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Re(he){return function(Qt,Ae){var Gn=Qt.next();if(Gn===he){Ae.f=Ae.inline=ue,Me.highlightFormatting&&(Ae.formatting="link-string");var An=ne(Ae);return Ae.linkHref=!1,An}return Qt.match(xe[he]),Ae.linkHref=!0,ne(Ae)}}function En(he,Qt){return he.match(/^([^\]\\]|\\.)*\]:/,!1)?(Qt.f=fn,he.next(),Me.highlightFormatting&&(Qt.formatting="link"),Qt.linkText=!0,ne(Qt)):pt(he,Qt,ue)}function fn(he,Qt){if(he.match(/^\]:/,!0)){Qt.f=Qt.inline=bn,Me.highlightFormatting&&(Qt.formatting="link");var Ae=ne(Qt);return Qt.linkText=!1,Ae}return he.match(/^([^\]\\]|\\.)+/,!0),ie.linkText}function bn(he,Qt){return he.eatSpace()?null:(he.match(/^[^\s]+/,!0),he.peek()===void 0?Qt.linkTitle=!0:he.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Qt.f=Qt.inline=ue,ie.linkHref+" url")}var cn={startState:function(){return{f:kt,prevLine:{stream:null},thisLine:{stream:null},block:kt,htmlState:null,indentation:0,inline:ue,text:qt,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(he){return{f:he.f,prevLine:he.prevLine,thisLine:he.thisLine,block:he.block,htmlState:he.htmlState&&St.copyState(_e,he.htmlState),indentation:he.indentation,localMode:he.localMode,localState:he.localMode?St.copyState(he.localMode,he.localState):null,inline:he.inline,text:he.text,formatting:!1,linkText:he.linkText,linkTitle:he.linkTitle,linkHref:he.linkHref,code:he.code,em:he.em,strong:he.strong,strikethrough:he.strikethrough,emoji:he.emoji,header:he.header,setext:he.setext,hr:he.hr,taskList:he.taskList,list:he.list,listStack:he.listStack.slice(0),quote:he.quote,indentedCode:he.indentedCode,trailingSpace:he.trailingSpace,trailingSpaceNewLine:he.trailingSpaceNewLine,md_inside:he.md_inside,fencedEndRE:he.fencedEndRE}},token:function(he,Qt){if(Qt.formatting=!1,he!=Qt.thisLine.stream){if(Qt.header=0,Qt.hr=!1,he.match(/^\s*$/,!0))return At(Qt),null;if(Qt.prevLine=Qt.thisLine,Qt.thisLine={stream:he},Qt.taskList=!1,Qt.trailingSpace=0,Qt.trailingSpaceNewLine=!1,!Qt.localState&&(Qt.f=Qt.block,Qt.f!=Kt)){var Ae=he.match(/^\s*/,!0)[0].replace(/\t/g,lt).length;if(Qt.indentation=Ae,Qt.indentationDiff=null,Ae>0)return null}}return Qt.f(he,Qt)},innerMode:function(he){return he.block==Kt?{state:he.htmlState,mode:_e}:he.localState?{state:he.localState,mode:he.localMode}:{state:he,mode:cn}},indent:function(he,Qt,Ae){return he.block==Kt&&_e.indent?_e.indent(he.htmlState,Qt,Ae):he.localState&&he.localMode.indent?he.localMode.indent(he.localState,Qt,Ae):St.Pass},blankLine:At,getType:ne,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return cn},"xml"),St.defineMIME("text/markdown","markdown"),St.defineMIME("text/x-markdown","markdown")})},98101:function(tn,Fn,Ft){(function(St){St(Ft(89780))})(function(St){"use strict";St.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var Ut=0;Ut-1&&_e.substring(ie+1,_e.length);if(Ne)return St.findModeByExtension(Ne)},St.findModeByName=function(_e){_e=_e.toLowerCase();for(var fe=0;fe0?Tt.cmdState[Tt.cmdState.length-1]:null}function je(Tt){var et=Tt.cmdState.pop();et&&et.closeBracket()}function ie(Tt){for(var et=Tt.cmdState,nt=et.length-1;nt>=0;nt--){var dt=et[nt];if(dt.name!="DEFAULT")return dt}return{styleIdentifier:function(){return null}}}function Ne(Tt,et,nt){return function(){this.name=Tt,this.bracketNo=0,this.style=et,this.styles=nt,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var we={};we.importmodule=Ne("importmodule","tag",["string","builtin"]),we.documentclass=Ne("documentclass","tag",["","atom"]),we.usepackage=Ne("usepackage","tag",["atom"]),we.begin=Ne("begin","tag",["atom"]),we.end=Ne("end","tag",["atom"]),we.label=Ne("label","tag",["atom"]),we.ref=Ne("ref","tag",["atom"]),we.eqref=Ne("eqref","tag",["atom"]),we.cite=Ne("cite","tag",["atom"]),we.bibitem=Ne("bibitem","tag",["atom"]),we.Bibitem=Ne("Bibitem","tag",["atom"]),we.RBibitem=Ne("RBibitem","tag",["atom"]),we.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Le(Tt,et){Tt.f=et}function Pe(Tt,et){var nt;if(Tt.match(/^\\[a-zA-Z@]+/)){var dt=Tt.current().slice(1);return nt=we.hasOwnProperty(dt)?we[dt]:we.DEFAULT,nt=new nt,_e(et,nt),Le(et,Ue),nt.style}if(Tt.match(/^\\[$&%#{}_]/)||Tt.match(/^\\[,;!\/\\]/))return"tag";if(Tt.match("\\["))return Le(et,function(pt,vt){return Ie(pt,vt,"\\]")}),"keyword";if(Tt.match("\\("))return Le(et,function(pt,vt){return Ie(pt,vt,"\\)")}),"keyword";if(Tt.match("$$"))return Le(et,function(pt,vt){return Ie(pt,vt,"$$")}),"keyword";if(Tt.match("$"))return Le(et,function(pt,vt){return Ie(pt,vt,"$")}),"keyword";var lt=Tt.next();if(lt=="%")return Tt.skipToEnd(),"comment";if(lt=="}"||lt=="]"){if(nt=fe(et),nt)nt.closeBracket(lt),Le(et,Ue);else return"error";return"bracket"}else return lt=="{"||lt=="["?(nt=we.DEFAULT,nt=new nt,_e(et,nt),"bracket"):/\d/.test(lt)?(Tt.eatWhile(/[\w.%]/),"atom"):(Tt.eatWhile(/[\w\-_]/),nt=ie(et),nt.name=="begin"&&(nt.argument=Tt.current()),nt.styleIdentifier())}function Ie(Tt,et,nt){if(Tt.eatSpace())return null;if(nt&&Tt.match(nt))return Le(et,Pe),"keyword";if(Tt.match(/^\\[a-zA-Z@]+/))return"tag";if(Tt.match(/^[a-zA-Z]+/))return"variable-2";if(Tt.match(/^\\[$&%#{}_]/)||Tt.match(/^\\[,;!\/]/)||Tt.match(/^[\^_&]/))return"tag";if(Tt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Tt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var dt=Tt.next();return dt=="{"||dt=="}"||dt=="["||dt=="]"||dt=="("||dt==")"?"bracket":dt=="%"?(Tt.skipToEnd(),"comment"):"error"}function Ue(Tt,et){var nt=Tt.peek(),dt;return nt=="{"||nt=="["?(dt=fe(et),dt.openBracket(nt),Tt.eat(nt),Le(et,Pe),"bracket"):/[ \t\r]/.test(nt)?(Tt.eat(nt),null):(Le(et,Pe),je(et),Pe(Tt,et))}return{startState:function(){var Tt=Me.inMathMode?function(et,nt){return Ie(et,nt)}:Pe;return{cmdState:[],f:Tt}},copyState:function(Tt){return{cmdState:Tt.cmdState.slice(),f:Tt.f}},token:function(Tt,et){return et.f(Tt,et)},blankLine:function(Tt){Tt.f=Pe,Tt.cmdState.length=0},lineComment:"%"}}),St.defineMIME("text/x-stex","stex"),St.defineMIME("text/x-latex","stex")})},15525:function(tn,Fn,Ft){(function(St){St(Ft(89780))})(function(St){"use strict";var Ut={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},Me={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};St.defineMode("xml",function(_e,fe){var je=_e.indentUnit,ie={},Ne=fe.htmlMode?Ut:Me;for(var we in Ne)ie[we]=Ne[we];for(var we in fe)ie[we]=fe[we];var Le,Pe;function Ie(ae,Fe){function xe(fn){return Fe.tokenize=fn,fn(ae,Fe)}var Re=ae.next();if(Re=="<")return ae.eat("!")?ae.eat("[")?ae.match("CDATA[")?xe(et("atom","]]>")):null:ae.match("--")?xe(et("comment","-->")):ae.match("DOCTYPE",!0,!0)?(ae.eatWhile(/[\w\._\-]/),xe(nt(1))):null:ae.eat("?")?(ae.eatWhile(/[\w\._\-]/),Fe.tokenize=et("meta","?>"),"meta"):(Le=ae.eat("/")?"closeTag":"openTag",Fe.tokenize=Ue,"tag bracket");if(Re=="&"){var En;return ae.eat("#")?ae.eat("x")?En=ae.eatWhile(/[a-fA-F\d]/)&&ae.eat(";"):En=ae.eatWhile(/[\d]/)&&ae.eat(";"):En=ae.eatWhile(/[\w\.\-:]/)&&ae.eat(";"),En?"atom":"error"}else return ae.eatWhile(/[^&<]/),null}Ie.isInText=!0;function Ue(ae,Fe){var xe=ae.next();if(xe==">"||xe=="/"&&ae.eat(">"))return Fe.tokenize=Ie,Le=xe==">"?"endTag":"selfcloseTag","tag bracket";if(xe=="=")return Le="equals",null;if(xe=="<"){Fe.tokenize=Ie,Fe.state=vt,Fe.tagName=Fe.tagStart=null;var Re=Fe.tokenize(ae,Fe);return Re?Re+" tag error":"tag error"}else return/[\'\"]/.test(xe)?(Fe.tokenize=Tt(xe),Fe.stringStartCol=ae.column(),Fe.tokenize(ae,Fe)):(ae.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Tt(ae){var Fe=function(xe,Re){for(;!xe.eol();)if(xe.next()==ae){Re.tokenize=Ue;break}return"string"};return Fe.isInAttribute=!0,Fe}function et(ae,Fe){return function(xe,Re){for(;!xe.eol();){if(xe.match(Fe)){Re.tokenize=Ie;break}xe.next()}return ae}}function nt(ae){return function(Fe,xe){for(var Re;(Re=Fe.next())!=null;){if(Re=="<")return xe.tokenize=nt(ae+1),xe.tokenize(Fe,xe);if(Re==">")if(ae==1){xe.tokenize=Ie;break}else return xe.tokenize=nt(ae-1),xe.tokenize(Fe,xe)}return"meta"}}function dt(ae,Fe,xe){this.prev=ae.context,this.tagName=Fe,this.indent=ae.indented,this.startOfLine=xe,(ie.doNotIndent.hasOwnProperty(Fe)||ae.context&&ae.context.noIndent)&&(this.noIndent=!0)}function lt(ae){ae.context&&(ae.context=ae.context.prev)}function pt(ae,Fe){for(var xe;;){if(!ae.context||(xe=ae.context.tagName,!ie.contextGrabbers.hasOwnProperty(xe)||!ie.contextGrabbers[xe].hasOwnProperty(Fe)))return;lt(ae)}}function vt(ae,Fe,xe){return ae=="openTag"?(xe.tagStart=Fe.column(),Lt):ae=="closeTag"?At:vt}function Lt(ae,Fe,xe){return ae=="word"?(xe.tagName=Fe.current(),Pe="tag",$t):ie.allowMissingTagName&&ae=="endTag"?(Pe="tag bracket",$t(ae,Fe,xe)):(Pe="error",Lt)}function At(ae,Fe,xe){if(ae=="word"){var Re=Fe.current();return xe.context&&xe.context.tagName!=Re&&ie.implicitlyClosed.hasOwnProperty(xe.context.tagName)&<(xe),xe.context&&xe.context.tagName==Re||ie.matchClosing===!1?(Pe="tag",kt):(Pe="tag error",Kt)}else return ie.allowMissingTagName&&ae=="endTag"?(Pe="tag bracket",kt(ae,Fe,xe)):(Pe="error",Kt)}function kt(ae,Fe,xe){return ae!="endTag"?(Pe="error",kt):(lt(xe),vt)}function Kt(ae,Fe,xe){return Pe="error",kt(ae,Fe,xe)}function $t(ae,Fe,xe){if(ae=="word")return Pe="attribute",ne;if(ae=="endTag"||ae=="selfcloseTag"){var Re=xe.tagName,En=xe.tagStart;return xe.tagName=xe.tagStart=null,ae=="selfcloseTag"||ie.autoSelfClosers.hasOwnProperty(Re)?pt(xe,Re):(pt(xe,Re),xe.context=new dt(xe,Re,En==xe.indented)),vt}return Pe="error",$t}function ne(ae,Fe,xe){return ae=="equals"?qt:(ie.allowMissing||(Pe="error"),$t(ae,Fe,xe))}function qt(ae,Fe,xe){return ae=="string"?ue:ae=="word"&&ie.allowUnquoted?(Pe="string",$t):(Pe="error",$t(ae,Fe,xe))}function ue(ae,Fe,xe){return ae=="string"?ue:$t(ae,Fe,xe)}return{startState:function(ae){var Fe={tokenize:Ie,state:vt,indented:ae||0,tagName:null,tagStart:null,context:null};return ae!=null&&(Fe.baseIndent=ae),Fe},token:function(ae,Fe){if(!Fe.tagName&&ae.sol()&&(Fe.indented=ae.indentation()),ae.eatSpace())return null;Le=null;var xe=Fe.tokenize(ae,Fe);return(xe||Le)&&xe!="comment"&&(Pe=null,Fe.state=Fe.state(Le||xe,ae,Fe),Pe&&(xe=Pe=="error"?xe+" error":Pe)),xe},indent:function(ae,Fe,xe){var Re=ae.context;if(ae.tokenize.isInAttribute)return ae.tagStart==ae.indented?ae.stringStartCol+1:ae.indented+je;if(Re&&Re.noIndent)return St.Pass;if(ae.tokenize!=Ue&&ae.tokenize!=Ie)return xe?xe.match(/^(\s*)/)[0].length:0;if(ae.tagName)return ie.multilineTagIndentPastTag!==!1?ae.tagStart+ae.tagName.length+2:ae.tagStart+je*(ie.multilineTagIndentFactor||1);if(ie.alignCDATA&&/$/,blockCommentStart:"",configuration:ie.htmlMode?"html":"xml",helperType:ie.htmlMode?"html":"xml",skipAttribute:function(ae){ae.state==qt&&(ae.state=$t)},xmlCurrentTag:function(ae){return ae.tagName?{name:ae.tagName,close:ae.type=="closeTag"}:null},xmlCurrentContext:function(ae){for(var Fe=[],xe=ae.context;xe;xe=xe.prev)xe.tagName&&Fe.push(xe.tagName);return Fe.reverse()}}}),St.defineMIME("text/xml","xml"),St.defineMIME("application/xml","xml"),St.mimeModes.hasOwnProperty("text/html")||St.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(tn,Fn,Ft){"use strict";Ft.d(Fn,{$u:function(){return we},BD:function(){return qn},E9:function(){return Ne},FF:function(){return pr},FJ:function(){return vt},Hn:function(){return pt},KX:function(){return At},NB:function(){return jt},S0:function(){return re},UL:function(){return Le},Vk:function(){return lt},Vm:function(){return xt},YI:function(){return Dn},ZA:function(){return Me},Zt:function(){return Pe},al:function(){return Pn},bn:function(){return pn},bx:function(){return ni},g2:function(){return Zn},h1:function(){return qt},hD:function(){return Ti},l4:function(){return je},rU:function(){return Mt},s_:function(){return Hi},uz:function(){return zn},z6:function(){return Ie}}),tn=Ft.hmd(tn),function(){var Ct;function Na(a){var y=0;return function(){return yx&&(x=Math.max(0,b+x)),(E==null||E>b)&&(E=b),E=Number(E),0>E&&(E=Math.max(0,b+E)),x=Number(x||0);x=a.length?a.push(x):a.splice(y,0,x):oe("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function Vo(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):oe("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function Ii(){var a=ko.pop();return a===void 0?[]:a}function Fi(a){a.length=0,ko.push(a)}function Pi(a){if(typeof a=="function"){if(a.className)return a.className;if(a.name)return a.name;var y=a.toString();if(y=y.substring(9,y.indexOf("(")).trim(),y!=="")return a._className=y}else if(De(a)&&a.constructor)return Pi(a.constructor);return typeof a}function Wo(a){var y=a;return De(a)&&(a.text?y=a.text:a.name?y=a.name:a.key!==void 0?y=a.key:a.id!==void 0?y=a.id:a.constructor===Object&&(a.Text?y=a.Text:a.Name?y=a.Name:a.Key!==void 0?y=a.Key:a.Id!==void 0?y=a.Id:a.ID!==void 0&&(y=a.ID))),y===void 0?"undefined":y===null?"null":y.toString()}function br(a,y){if(a.hasOwnProperty(y))return!0;for(a=Object.getPrototypeOf(a);a&&a!==Function;){if(a.hasOwnProperty(y))return!0;var x=a.CA;if(x&&x[y])return!0;a=Object.getPrototypeOf(a)}return!1}function wr(a,y,x){Object.defineProperty(Ve.prototype,a,{get:y,set:x})}function $e(a){for(var y=[],x=0;256>x;x++)y["0123456789abcdef".charAt(x>>4)+"0123456789abcdef".charAt(x&15)]=String.fromCharCode(x);a.length%2&&(a="0"+a),x=[];for(var E=0,b=0;bx;x++)y[x]=x;for(x=E=0;256>x;x++)E=(E+y[x]+119)%256,b=y[x],y[x]=y[E],y[E]=b;E=x=0;for(var z="",tt=0;tt-1||z.indexOf("\xA9 1998-2021 Northwoods Software")>-1||z.indexOf("Not for distribution or production use")>-1||z.indexOf("gojs.net")>-1?"":z}var vr=Ge.navigator!==void 0&&0this.key)return!1;a=a.s;var y=a.length,x=++this.Za,E=this.qf;if(E!==null)for(;xthis.key)return!1;var y=--this.Za;return 0<=y?(this.key=y,this.value=a.s[y],!0):(this.de(),!1)},hr.prototype.Ad=function(){return this.next()},hr.prototype.first=function(){var a=this.Bb;this.qa=a.Ja;var y=a.s;return this.Za=a=y.length-1,0<=a?(y=y[a],this.key=a,this.value=y):null},hr.prototype.any=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(a(y[x]))return!0;return!1},hr.prototype.all=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(!a(y[x]))return!1;return!0},hr.prototype.each=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)a(y[x]);return this},hr.prototype.map=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--)x.push(a(y[E]));return a=new on,a.s=x,a.xb(),a.iterator},hr.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--){var b=y[E];a(b)&&x.push(b)}return a=new on,a.s=x,a.xb(),a.iterator},hr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},hr.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},ve.Object.defineProperties(hr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),hr.prototype.first=hr.prototype.first,hr.prototype.hasNext=hr.prototype.Ad,hr.prototype.next=hr.prototype.next,hr.prototype.reset=hr.prototype.reset,hr.className="ListIteratorBackwards";function on(a){Ko(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&oe("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ct=on.prototype,Ct.xb=function(){var a=this.Ja;a++,999999999a||a>=y.length)&&li(a,"0 <= i < length",on,"elt:i"),y[a]},Ct.get=function(a){return this.M(a)},Ct.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&li(a,"0 <= i < length",on,"setElt:i"),this._isFrozen&&mn(this,a),x[a]=y},Ct.set=function(a,y){this.cd(a,y)},Ct.first=function(){var a=this.s;return a.length===0?null:a[0]},Ct.jc=function(){var a=this.s,y=a.length;return 0a&&li(a,">= 0",on,"insertAt:i"),this._isFrozen&&mn(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Ct.remove=function(a){if(a===null)return!1;this._isFrozen&&mn(this,a);var y=this.s;return a=y.indexOf(a),a===-1?!1:(a===y.length-1?y.pop():y.splice(a,1),this.xb(),!0)},Ct.delete=function(a){return this.remove(a)},Ct.mb=function(a){var y=this.s;(0>a||a>=y.length)&&li(a,"0 <= i < length",on,"removeAt:i"),this._isFrozen&&mn(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Ct.removeRange=function(a,y){var x=this.s,E=x.length;if(0>a)a=0;else if(a>=E)return this;if(0>y)return this;if(y>=E&&(y=E-1),a>y)return this;this._isFrozen&&mn(this);for(var b=a,z=y+1;z=z)return this;if((0>y||y>=b-1)&&li(y,"0 <= from < length",on,"sortRange:from"),z===2)return x=E[y],b=E[y+1],0=b)E.sort(a);else for(y=E.slice(0,x),y.sort(a),a=0;a=b)for(x=E.slice(y),x.sort(a),a=y;a=this.s.length)return nr;var a=this.Sa;return a!==null?(a.reset(),a):new Do(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return nr;var a=this.Hg;return a!==null?(a.reset(),a):new hr(this)}}}),on.prototype.reverse=on.prototype.reverse,on.prototype.sortRange=on.prototype.zi,on.prototype.sort=on.prototype.sort,on.prototype.toSet=on.prototype.Iv,on.prototype.toArray=on.prototype.Fa,on.prototype.removeRange=on.prototype.removeRange,on.prototype.removeAt=on.prototype.mb,on.prototype.delete=on.prototype.delete,on.prototype.remove=on.prototype.remove,on.prototype.insertAt=on.prototype.Gb,on.prototype.pop=on.prototype.pop,on.prototype.last=on.prototype.jc,on.prototype.first=on.prototype.first,on.prototype.set=on.prototype.set,on.prototype.setElt=on.prototype.cd,on.prototype.get=on.prototype.get,on.prototype.elt=on.prototype.M,on.prototype.indexOf=on.prototype.indexOf,on.prototype.has=on.prototype.has,on.prototype.contains=on.prototype.contains,on.prototype.clear=on.prototype.clear,on.prototype.addAll=on.prototype.addAll,on.prototype.push=on.prototype.push,on.prototype.add=on.prototype.add,on.prototype.thaw=on.prototype.ka,on.prototype.freeze=on.prototype.freeze,on.className="List";function Zo(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Zo.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},Zo.prototype.next=function(){var a=this.eg;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},Zo.prototype.Ad=function(){return this.next()},Zo.prototype.first=function(){var a=this.eg;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},Zo.prototype.any=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Zo.prototype.all=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Zo.prototype.each=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},Zo.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new on;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Zo.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new on;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},Zo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},Zo.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},ve.Object.defineProperties(Zo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),Zo.prototype.first=Zo.prototype.first,Zo.prototype.hasNext=Zo.prototype.Ad,Zo.prototype.next=Zo.prototype.next,Zo.prototype.reset=Zo.prototype.reset,Zo.className="SetIterator";function en(a){Ko(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&oe("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ct=en.prototype,Ct.xb=function(){var a=this.Ja;a++,999999999=this.Sb)return nr;var a=this.Sa;return a!==null?(a.reset(),a):new Zo(this)}}}),en.prototype.toList=en.prototype.Hv,en.prototype.toArray=en.prototype.Fa,en.prototype.clear=en.prototype.clear,en.prototype.retainAll=en.prototype.pA,en.prototype.removeAll=en.prototype.hp,en.prototype.delete=en.prototype.delete,en.prototype.remove=en.prototype.remove,en.prototype.first=en.prototype.first,en.prototype.containsAny=en.prototype.Ty,en.prototype.containsAll=en.prototype.Sy,en.prototype.has=en.prototype.has,en.prototype.contains=en.prototype.contains,en.prototype.addAll=en.prototype.addAll,en.prototype.add=en.prototype.add,en.prototype.thaw=en.prototype.ka,en.prototype.freeze=en.prototype.freeze;var Sa=1;en.className="Set",en.uniqueHash=Ko,en.hashIdUnique=ia,en.hashId=os;function Jr(a){this.ma=a,this.qa=a.Ja,this.sa=null}Jr.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Jr.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=this.key=a=y.key,!0):(this.de(),!1)},Jr.prototype.Ad=function(){return this.next()},Jr.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.value=this.key=a=a.key):null},Jr.prototype.any=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Jr.prototype.all=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Jr.prototype.each=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;)a(y.key),y=y.va;return this},Jr.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new on;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},Jr.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new on;for(y=y.ea;y!==null;){var E=y.key;a(E)&&x.add(E),y=y.va}return x.iterator},Jr.prototype.de=function(){this.value=this.key=null,this.qa=-1},Jr.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},ve.Object.defineProperties(Jr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Jr.prototype.first=Jr.prototype.first,Jr.prototype.hasNext=Jr.prototype.Ad,Jr.prototype.next=Jr.prototype.next,Jr.prototype.reset=Jr.prototype.reset,Jr.className="MapKeySetIterator";function Ao(a){en.call(this),Ko(this),this._isFrozen=!0,this.ma=a}pe(Ao,en),Ct=Ao.prototype,Ct.freeze=function(){return this},Ct.ka=function(){return this},Ct.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Ct.add=function(){oe("This Set is read-only: "+this.toString())},Ct.contains=function(a){return this.ma.contains(a)},Ct.has=function(a){return this.contains(a)},Ct.remove=function(){oe("This Set is read-only: "+this.toString())},Ct.delete=function(a){return this.remove(a)},Ct.clear=function(){oe("This Set is read-only: "+this.toString())},Ct.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Ao.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Ao.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Ao.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Ao.prototype.map=function(a){for(var y=new en,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},Ao.prototype.filter=function(a){for(var y=new en,x=this.ma.ea;x!==null;){var E=x.key;a(E)&&y.add(E),x=x.va}return y},Ao.prototype.copy=function(){return new Ao(this.ma)},Ao.prototype.Iv=function(){var a=new en,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Ao.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),x=0,E;for(E in a)y[x]=a[E].key,x++;return y},Ao.prototype.Hv=function(){var a=new on,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},ve.Object.defineProperties(Ao.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?nr:new Jr(this.ma)}}}),Ao.prototype.toList=Ao.prototype.Hv,Ao.prototype.toArray=Ao.prototype.Fa,Ao.prototype.toSet=Ao.prototype.Iv,Ao.prototype.first=Ao.prototype.first,Ao.prototype.clear=Ao.prototype.clear,Ao.prototype.delete=Ao.prototype.delete,Ao.prototype.remove=Ao.prototype.remove,Ao.prototype.has=Ao.prototype.has,Ao.prototype.contains=Ao.prototype.contains,Ao.prototype.add=Ao.prototype.add,Ao.prototype.thaw=Ao.prototype.ka,Ao.prototype.freeze=Ao.prototype.freeze,Ao.className="MapKeySet";function Pr(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}Pr.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},Pr.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},Pr.prototype.Ad=function(){return this.next()},Pr.prototype.first=function(){var a=this.ma;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},Pr.prototype.any=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Pr.prototype.all=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Pr.prototype.each=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},Pr.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new on;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Pr.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new on;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},Pr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},Pr.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},ve.Object.defineProperties(Pr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Pr.prototype.first=Pr.prototype.first,Pr.prototype.hasNext=Pr.prototype.Ad,Pr.prototype.next=Pr.prototype.next,Pr.prototype.reset=Pr.prototype.reset,Pr.className="MapValueSetIterator";function Ja(a,y){this.key=a,this.value=y,this.ll=this.va=null}Ja.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Ja.className="KeyValuePair";function ws(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}ws.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},ws.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.key=y.key,this.value=y.value,!0):(this.de(),!1)},ws.prototype.Ad=function(){return this.next()},ws.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.key=a.key,this.value=a.value,a):null},ws.prototype.any=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},ws.prototype.all=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},ws.prototype.each=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y),y=y.va;return this},ws.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new on;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},ws.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new on;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},ws.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},ws.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},ve.Object.defineProperties(ws.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),ws.prototype.first=ws.prototype.first,ws.prototype.hasNext=ws.prototype.Ad,ws.prototype.next=ws.prototype.next,ws.prototype.reset=ws.prototype.reset,ws.className="MapIterator";function oi(a){Ko(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.jf=this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&oe("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ct=oi.prototype,Ct.xb=function(){var a=this.Ja;a++,999999999=this.count)return nr;var a=this.Sa;return a!==null?(a.reset(),a):new ws(this)}},iteratorKeys:{get:function(){return 0>=this.count?nr:new Jr(this)}},iteratorValues:{get:function(){if(0>=this.count)return nr;var a=this.jf;return a!==null?(a.reset(),a):new Pr(this)}}}),oi.prototype.toKeySet=oi.prototype.Lf,oi.prototype.toArray=oi.prototype.Fa,oi.prototype.clear=oi.prototype.clear,oi.prototype.delete=oi.prototype.delete,oi.prototype.remove=oi.prototype.remove,oi.prototype.get=oi.prototype.get,oi.prototype.getValue=oi.prototype.I,oi.prototype.has=oi.prototype.has,oi.prototype.contains=oi.prototype.contains,oi.prototype.first=oi.prototype.first,oi.prototype.addAll=oi.prototype.addAll,oi.prototype.set=oi.prototype.set,oi.prototype.add=oi.prototype.add,oi.prototype.thaw=oi.prototype.ka,oi.prototype.freeze=oi.prototype.freeze,oi.className="Map";function Wt(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):oe("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var Js,ca,Mu,_a,Vl;Wt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Wt.prototype.h=function(a,y){return this.x=a,this.y=y,this},Wt.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Wt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Wt.prototype.copy=function(){var a=new Wt;return a.x=this.x,a.y=this.y,a},Ct=Wt.prototype,Ct.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ct.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return Object.isFrozen(this)&&oe("cannot thaw constant: "+this),this._isFrozen=!1,this};function $u(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new Wt(x,b)}return new Wt}function ad(a){return a.x.toString()+" "+a.y.toString()}Ct.toString=function(){return"Point("+this.x+","+this.y+")"},Ct.D=function(a){return a instanceof Wt?this.x===a.x&&this.y===a.y:!1},Ct.hi=function(a,y){return this.x===a&&this.y===y},Ct.Xa=function(a){return _t.B(this.x,a.x)&&_t.B(this.y,a.y)},Ct.add=function(a){return this.x+=a.x,this.y+=a.y,this},Ct.re=function(a){return this.x-=a.x,this.y-=a.y,this},Ct.offset=function(a,y){return this.x+=a,this.y+=y,this},Wt.prototype.rotate=function(a){if(a===0)return this;var y=this.x,x=this.y;if(y===0&&x===0)return this;if(360<=a?a-=360:0>a&&(a+=360),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));return this.x=a*y-E*x,this.y=E*y+a*x,this},Ct=Wt.prototype,Ct.scale=function(a,y){return this.x*=a,this.y*=y,this},Ct.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Ct.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Ct.normalize=function(){var a=this.x,y=this.y,x=Math.sqrt(a*a+y*y);return 0y?270:0;if(y===0)return 0a?x=0>y?x+180:180-x:0>y&&(x=360-x),x}Ct.Ry=function(a,y){return _t.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Ct.fA=function(a,y,x,E){return _t.qh(a,y,x,E,this.x,this.y,this),this},Ct.gA=function(a,y){return _t.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Ct.uA=function(a,y,x,E){return _t.No(this.x,this.y,a,y,x,E,this),this},Ct.vA=function(a,y){return _t.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Ct.xi=function(a,y){return this.x=a.x+y.x*a.width+y.offsetX,this.y=a.y+y.y*a.height+y.offsetY,this},Ct.yi=function(a,y,x,E,b){return this.x=a+b.x*x+b.offsetX,this.y=y+b.y*E+b.offsetY,this},Ct.transform=function(a){return a.Ga(this),this};function Tr(a,y){return y.Cd(a),a}function _r(a,y,x,E,b,z){var tt=b-x,ot=z-E,rt=tt*tt+ot*ot;x-=a,E-=y;var at=-x*tt-E*ot;return 0>=at||at>=rt?(tt=b-a,ot=z-y,Math.min(x*x+E*E,tt*tt+ot*ot)):(a=tt*E-ot*x,a*a/rt)}function gl(a,y,x,E){return a=x-a,y=E-y,a*a+y*y}function Ki(a,y,x,E){return a=x-a,y=E-y,a===0?0y?270:0:y===0?0a?E=0>y?E+180:180-E:0>y&&(E=360-E),E)}Ct.w=function(){return isFinite(this.x)&&isFinite(this.y)},Wt.alloc=function(){var a=Mi.pop();return a===void 0?new Wt:a},Wt.allocAt=function(a,y){var x=Mi.pop();return x===void 0?new Wt(a,y):(x.x=a,x.y=y,x)},Wt.free=function(a){Mi.push(a)},Wt.prototype.isReal=Wt.prototype.w,Wt.prototype.setSpot=Wt.prototype.yi,Wt.prototype.setRectSpot=Wt.prototype.xi,Wt.prototype.snapToGridPoint=Wt.prototype.vA,Wt.prototype.snapToGrid=Wt.prototype.uA,Wt.prototype.projectOntoLineSegmentPoint=Wt.prototype.gA,Wt.prototype.projectOntoLineSegment=Wt.prototype.fA,Wt.intersectingLineSegments=function(a,y,x,E,b,z,tt,ot){return _t.Rl(a,y,x,E,b,z,tt,ot)},Wt.prototype.compareWithLineSegmentPoint=Wt.prototype.Ry,Wt.compareWithLineSegment=function(a,y,x,E,b,z){return _t.Fl(a,y,x,E,b,z)},Wt.prototype.direction=Wt.prototype.direction,Wt.prototype.directionPoint=Wt.prototype.ab,Wt.prototype.normalize=Wt.prototype.normalize,Wt.prototype.distanceSquared=Wt.prototype.zd,Wt.prototype.distanceSquaredPoint=Wt.prototype.Bf,Wt.prototype.scale=Wt.prototype.scale,Wt.prototype.rotate=Wt.prototype.rotate,Wt.prototype.offset=Wt.prototype.offset,Wt.prototype.subtract=Wt.prototype.re,Wt.prototype.add=Wt.prototype.add,Wt.prototype.equalsApprox=Wt.prototype.Xa,Wt.prototype.equalTo=Wt.prototype.hi,Wt.prototype.equals=Wt.prototype.D,Wt.prototype.set=Wt.prototype.set,Wt.prototype.setTo=Wt.prototype.sg;var Mi=[];Wt.className="Point",Wt.parse=$u,Wt.stringify=ad,Wt.distanceLineSegmentSquared=_r,Wt.distanceSquared=gl,Wt.direction=Ki,Wt.Origin=Js=new Wt(0,0).ja(),Wt.InfiniteTopLeft=ca=new Wt(-1/0,-1/0).ja(),Wt.InfiniteBottomRight=Mu=new Wt(1/0,1/0).ja(),Wt.SixPoint=_a=new Wt(6,6).ja(),Wt.NoPoint=Vl=new Wt(NaN,NaN).ja(),Wt.parse=$u,Wt.stringify=ad,Wt.distanceLineSegmentSquared=_r,Wt.distanceSquared=gl,Wt.direction=Ki;function un(a,y){a===void 0?this.height=this.width=0:typeof a=="number"&&(0<=a||isNaN(a))&&typeof y=="number"&&(0<=y||isNaN(y))?(this.width=a,this.height=y):oe("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var zi,No,Rr,rs,qr,vi,cs;un.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},un.prototype.h=function(a,y){return this.width=a,this.height=y,this},un.prototype.sg=function(a,y){return this.width=a,this.height=y,this},un.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},un.prototype.copy=function(){var a=new un;return a.width=this.width,a.height=this.height,a},Ct=un.prototype,Ct.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ct.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return Object.isFrozen(this)&&oe("cannot thaw constant: "+this),this._isFrozen=!1,this};function fl(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new un(x,b)}return new un}function Ea(a){return a.width.toString()+" "+a.height.toString()}Ct.toString=function(){return"Size("+this.width+","+this.height+")"},Ct.D=function(a){return a instanceof un?this.width===a.width&&this.height===a.height:!1},Ct.hi=function(a,y){return this.width===a&&this.height===y},Ct.Xa=function(a){return _t.B(this.width,a.width)&&_t.B(this.height,a.height)},Ct.Bc=function(a,y){return a=this.width+a,this.width=0<=a?a:0,y=this.height+y,this.height=0<=y?y:0,this},Ct.w=function(){return isFinite(this.width)&&isFinite(this.height)},un.alloc=function(){var a=uu.pop();return a===void 0?new un:a},un.free=function(a){uu.push(a)},un.prototype.isReal=un.prototype.w,un.prototype.inflate=un.prototype.Bc,un.prototype.equalsApprox=un.prototype.Xa,un.prototype.equalTo=un.prototype.hi,un.prototype.equals=un.prototype.D,un.prototype.set=un.prototype.set,un.prototype.setTo=un.prototype.sg;var uu=[];un.className="Size",un.parse=fl,un.stringify=Ea,un.ZeroSize=zi=new un(0,0).ja(),un.OneSize=No=new un(1,1).ja(),un.SixSize=Rr=new un(6,6).ja(),un.EightSize=rs=new un(8,8).ja(),un.TenSize=qr=new un(10,10).ja(),un.InfiniteSize=vi=new un(1/0,1/0).ja(),un.NoSize=cs=new un(NaN,NaN).ja(),un.parse=fl,un.stringify=Ea;function ke(a,y,x,E){a===void 0?this.height=this.width=this.y=this.x=0:typeof a=="number"&&typeof y=="number"&&typeof x=="number"&&(0<=x||isNaN(x))&&typeof E=="number"&&(0<=E||isNaN(E))?(this.x=a,this.y=y,this.width=x,this.height=E):a instanceof Wt?(x=a.x,a=a.y,y instanceof Wt?(E=y.x,y=y.y,this.x=Math.min(x,E),this.y=Math.min(a,y),this.width=Math.abs(x-E),this.height=Math.abs(a-y)):y instanceof un?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):oe("Incorrect second argument supplied to Rect constructor "+y)):oe("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}Ct=ke.prototype,Ct.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Ct.h=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this};function oa(a,y,x){a.width=y,a.height=x}Ct.sg=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this},Ct.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Ct.dd=function(a){return this.x=a.x,this.y=a.y,this},Ct.tA=function(a){return this.width=a.width,this.height=a.height,this},ke.prototype.copy=function(){var a=new ke;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Ct=ke.prototype,Ct.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ct.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return Object.isFrozen(this)&&oe("cannot thaw constant: "+this),this._isFrozen=!1,this};function pl(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;(E=a[y++])&&(b=parseFloat(E));for(var z=0;a[y]==="";)y++;(E=a[y++])&&(z=parseFloat(E));for(var tt=0;a[y]==="";)y++;return(E=a[y++])&&(tt=parseFloat(E)),new ke(x,b,z,tt)}return new ke}function Tl(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Ct.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Ct.D=function(a){return a instanceof ke?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Ct.hi=function(a,y,x,E){return this.x===a&&this.y===y&&this.width===x&&this.height===E},Ct.Xa=function(a){return _t.B(this.x,a.x)&&_t.B(this.y,a.y)&&_t.B(this.width,a.width)&&_t.B(this.height,a.height)};function th(a,y){return _t.$(a.x,y.x)&&_t.$(a.y,y.y)&&_t.$(a.width,y.width)&&_t.$(a.height,y.height)}Ct.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Ct.Re=function(a){return this.x<=a.x&&a.x+a.width<=this.x+this.width&&this.y<=a.y&&a.y+a.height<=this.y+this.height},Ct.contains=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),this.x<=a&&a+x<=this.x+this.width&&this.y<=y&&y+E<=this.y+this.height},Ct.offset=function(a,y){return this.x+=a,this.y+=y,this},Ct.Bc=function(a,y){return ss(this,y,a,y,a)},Ct.Co=function(a){return ss(this,a.top,a.right,a.bottom,a.left)},Ct.Fv=function(a){return ss(this,-a.top,-a.right,-a.bottom,-a.left)},Ct.Hz=function(a,y,x,E){return ss(this,a,y,x,E)};function ss(a,y,x,E,b){var z=a.width;return x+b<=-z?(a.x+=z/2,a.width=0):(a.x-=b,a.width+=x+b),x=a.height,y+E<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+E),a}Ct.Ex=function(a){return Zl(this,a.x,a.y,a.width,a.height)},Ct.Uu=function(a,y,x,E){return Zl(this,a,y,x,E)};function Zl(a,y,x,E,b){var z=Math.max(a.x,y),tt=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+E),x=Math.min(a.y+a.height,x+b),a.x=z,a.y=tt,a.width=Math.max(0,y-z),a.height=Math.max(0,x-tt),a}Ct.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Ct.Vu=function(a,y,x,E){var b=this.width,z=this.x;return b!==1/0&&x!==1/0&&(b+=z,x+=a,isNaN(x)||isNaN(b)||z>x||a>b)?!1:(a=this.height,x=this.y,!(a!==1/0&&E!==1/0&&(a+=x,E+=y,isNaN(E)||isNaN(a)||x>E||y>a)))};function Kl(a,y){var x=a.width,E=a.x,b=y.x-10;return E>y.width+10+10+b||b>x+E?!1:(x=a.height,a=a.y,E=y.y-10,!(a>y.height+10+10+E||E>x+a))}Ct.Ye=function(a){return Sr(this,a.x,a.y,0,0)},Ct.ed=function(a){return Sr(this,a.x,a.y,a.width,a.height)},Ct.Kv=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),Sr(this,a,y,x,E)};function Sr(a,y,x,E,b){var z=Math.min(a.x,y),tt=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+E),x=Math.max(a.y+a.height,x+b),a.x=z,a.y=tt,a.width=y-z,a.height=x-tt,a}Ct.yi=function(a,y,x){return this.x=a-x.offsetX-x.x*this.width,this.y=y-x.offsetY-x.y*this.height,this};function Is(a,y,x,E,b,z,tt,ot){return tt===void 0&&(tt=0),ot===void 0&&(ot=0),a<=b&&b+tt<=a+x&&y<=z&&z+ot<=y+E}function eh(a,y,x,E,b,z,tt,ot){return a>tt+b||b>x+a?!1:!(y>ot+z||z>E+y)}Ct.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Ct.Mz=function(){return this.width===0&&this.height===0},ke.alloc=function(){var a=Os.pop();return a===void 0?new ke:a},ke.allocAt=function(a,y,x,E){var b=Os.pop();return b===void 0?new ke(a,y,x,E):b.h(a,y,x,E)},ke.free=function(a){Os.push(a)},ve.Object.defineProperties(ke.prototype,{left:{get:function(){return this.x},set:function(a){this.x=a}},top:{get:function(){return this.y},set:function(a){this.y=a}},right:{get:function(){return this.x+this.width},set:function(a){this.x+=a-(this.x+this.width)}},bottom:{get:function(){return this.y+this.height},set:function(a){this.y+=a-(this.y+this.height)}},position:{get:function(){return new Wt(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new un(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Wt(this.x+this.width/2,this.y+this.height/2)},set:function(a){this.x=a.x-this.width/2,this.y=a.y-this.height/2}},centerX:{get:function(){return this.x+this.width/2},set:function(a){this.x=a-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(a){this.y=a-this.height/2}}}),ke.prototype.isEmpty=ke.prototype.Mz,ke.prototype.isReal=ke.prototype.w,ke.intersectsLineSegment=function(a,y,x,E,b,z,tt,ot){return _t.Fx(a,y,x,E,b,z,tt,ot)},ke.prototype.setSpot=ke.prototype.yi,ke.prototype.union=ke.prototype.Kv,ke.prototype.unionRect=ke.prototype.ed,ke.prototype.unionPoint=ke.prototype.Ye,ke.prototype.intersects=ke.prototype.Vu,ke.prototype.intersectsRect=ke.prototype.Yc,ke.prototype.intersect=ke.prototype.Uu,ke.prototype.intersectRect=ke.prototype.Ex,ke.prototype.grow=ke.prototype.Hz,ke.prototype.subtractMargin=ke.prototype.Fv,ke.prototype.addMargin=ke.prototype.Co,ke.prototype.inflate=ke.prototype.Bc,ke.prototype.offset=ke.prototype.offset,ke.prototype.contains=ke.prototype.contains,ke.prototype.containsRect=ke.prototype.Re,ke.prototype.containsPoint=ke.prototype.ca,ke.prototype.equalsApprox=ke.prototype.Xa,ke.prototype.equalTo=ke.prototype.hi,ke.prototype.equals=ke.prototype.D,ke.prototype.setSize=ke.prototype.tA,ke.prototype.setPoint=ke.prototype.dd,ke.prototype.set=ke.prototype.set,ke.prototype.setTo=ke.prototype.sg;var xa=null,ju=null,Os=[];ke.className="Rect",ke.parse=pl,ke.stringify=Tl,ke.contains=Is,ke.intersects=eh,ke.ZeroRect=xa=new ke(0,0,0,0).ja(),ke.NoRect=ju=new ke(NaN,NaN,NaN,NaN).ja(),ke.parse=pl,ke.stringify=Tl,ke.contains=Is,ke.intersects=eh;function gi(a,y,x,E){a===void 0?this.left=this.bottom=this.right=this.top=0:y===void 0?this.left=this.bottom=this.right=this.top=a:x===void 0?(this.top=a,this.right=y,this.bottom=a,this.left=y):E!==void 0?(this.top=a,this.right=y,this.bottom=x,this.left=E):oe("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}gi.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},gi.prototype.sg=function(a,y,x,E){return this.top=a,this.right=y,this.bottom=x,this.left=E,this},gi.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},gi.prototype.copy=function(){var a=new gi;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Ct=gi.prototype,Ct.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ct.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return Object.isFrozen(this)&&oe("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ql(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=NaN;a[y]==="";)y++;var E=a[y++];if(E&&(x=parseFloat(E)),isNaN(x))return new gi;for(var b=NaN;a[y]==="";)y++;if((E=a[y++])&&(b=parseFloat(E)),isNaN(b))return new gi(x);for(var z=NaN;a[y]==="";)y++;if((E=a[y++])&&(z=parseFloat(E)),isNaN(z))return new gi(x,b);for(var tt=NaN;a[y]==="";)y++;return(E=a[y++])&&(tt=parseFloat(E)),isNaN(tt)?new gi(x,b):new gi(x,b,z,tt)}return new gi}function Oh(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Ct.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Ct.D=function(a){return a instanceof gi?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Ct.hi=function(a,y,x,E){return this.top===a&&this.right===y&&this.bottom===x&&this.left===E},Ct.Xa=function(a){return _t.B(this.top,a.top)&&_t.B(this.right,a.right)&&_t.B(this.bottom,a.bottom)&&_t.B(this.left,a.left)},Ct.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},gi.alloc=function(){var a=ud.pop();return a===void 0?new gi:a},gi.free=function(a){ud.push(a)},gi.prototype.isReal=gi.prototype.w,gi.prototype.equalsApprox=gi.prototype.Xa,gi.prototype.equalTo=gi.prototype.hi,gi.prototype.equals=gi.prototype.D,gi.prototype.set=gi.prototype.set,gi.prototype.setTo=gi.prototype.sg;var Dl=null,ld=null,ud=[];gi.className="Margin",gi.parse=Ql,gi.stringify=Oh,gi.ZeroMargin=Dl=new gi(0,0,0,0).ja(),gi.TwoMargin=ld=new gi(2,2,2,2).ja(),gi.parse=Ql,gi.stringify=Oh;function Qn(a,y,x,E){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),E===void 0&&(E=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=E),this._isFrozen=!1}var We,be,Be,ir,Fo,ri,Ur,Bo,yi,eo,no,ga,$r,Mo,qe,Li,Wi,ho,_i,Ui,sr,Qo,io,Io,Lr,so,ml,Xl,Vr,ka,Zr,_s,gs,oo,tr,Dr;Qn.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Qn.prototype.sg=function(a,y,x,E){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=E,this},Qn.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Qn.prototype.copy=function(){var a=new Qn;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Ct=Qn.prototype,Ct.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ct.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return Object.isFrozen(this)&&oe("cannot thaw constant: "+this),this._isFrozen=!1,this};function Er(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function Ph(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return We;if(a==="TopLeft")return be;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Be;if(a==="TopRight")return ir;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Fo;if(a==="Center")return ri;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return Ur;if(a==="BottomLeft")return Bo;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return yi;if(a==="BottomRight")return eo;if(a==="TopSide")return no;if(a==="LeftSide")return ga;if(a==="RightSide")return $r;if(a==="BottomSide")return Mo;if(a==="TopBottomSides")return qe;if(a==="LeftRightSides")return Li;if(a==="TopLeftSides")return Wi;if(a==="TopRightSides")return ho;if(a==="BottomLeftSides")return _i;if(a==="BottomRightSides")return Ui;if(a==="NotTopSide")return sr;if(a==="NotLeftSide")return Qo;if(a==="NotRightSide")return io;if(a==="NotBottomSide")return Io;if(a==="AllSides")return Lr;if(a==="Default")return so;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E!==void 0&&0a&&(a+=360),a===0)return this;if(this.translate(y,x),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.m12*a+this.m22*E,z=this.m11*-E+this.m21*a,tt=this.m12*-E+this.m22*a;return this.m11=this.m11*a+this.m21*E,this.m12=b,this.m21=z,this.m22=tt,this.translate(-y,-x),this},Ct=fi.prototype,Ct.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Ct.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Ct.Ga=function(a){var y=a.x,x=a.y;return a.h(y*this.m11+x*this.m21+this.dx,y*this.m12+x*this.m22+this.dy)},Ct.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=a.x,E=a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Ct.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=1.25*a.x,E=1.2*a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Ct.pp=function(a){var y=a.x,x=a.y,E=y+a.width,b=x+a.height,z=this.m11,tt=this.m12,ot=this.m21,rt=this.m22,at=this.dx,ut=this.dy,gt=y*z+x*ot+at,mt=y*tt+x*rt+ut,yt=E*z+x*ot+at,wt=E*tt+x*rt+ut;return x=y*z+b*ot+at,y=y*tt+b*rt+ut,z=E*z+b*ot+at,E=E*tt+b*rt+ut,b=Math.min(gt,yt),gt=Math.max(gt,yt),yt=Math.min(mt,wt),mt=Math.max(mt,wt),b=Math.min(b,x),gt=Math.max(gt,x),yt=Math.min(yt,y),mt=Math.max(mt,y),b=Math.min(b,z),gt=Math.max(gt,z),yt=Math.min(yt,E),mt=Math.max(mt,E),a.h(b,yt,gt-b,mt-yt),a},fi.alloc=function(){var a=Rh.pop();return a===void 0?new fi:a},fi.free=function(a){Rh.push(a)},fi.prototype.transformRect=fi.prototype.pp,fi.prototype.transformPoint=fi.prototype.Ga,fi.prototype.scale=fi.prototype.scale,fi.prototype.translate=fi.prototype.translate,fi.prototype.rotate=fi.prototype.rotate,fi.prototype.invert=fi.prototype.Vj,fi.prototype.multiplyInverted=fi.prototype.bv,fi.prototype.multiply=fi.prototype.multiply,fi.prototype.reset=fi.prototype.reset,fi.prototype.isIdentity=fi.prototype.ws,fi.prototype.equals=fi.prototype.D,fi.prototype.setTransform=fi.prototype.setTransform,fi.prototype.set=fi.prototype.set;var Rh=[];fi.className="Transform",fi.xF="54a702f3e53909c447824c6706603faf4c";var _t={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=_t.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);_t.Uv=y}return 1>a?(x=1/a,2e3>=x?1/y[x|0]:Math.sqrt(a)):2e3>=a?y[a|0]:Math.sqrt(a)},B:function(a,y){return a-=y,.5>a&&-.5a&&-5e-8=b&&(b=1e-6),aut-at)if(a-x>b||x-a>b){if(z=(E-y)/(x-a)*(z-a)+y,z-b<=tt&&tt<=z+b)return!0}else return!0;else if(y-E>b||E-y>b){if(tt=(x-a)/(E-y)*(tt-y)+a,tt-b<=z&&z<=tt+b)return!0}else return!0;return!1},cs:function(a,y,x,E,b,z,tt,ot,rt,at,ut,gt){if(_t.Yb(a,y,tt,ot,gt,x,E)&&_t.Yb(a,y,tt,ot,gt,b,z))return _t.Yb(a,y,tt,ot,gt,at,ut);var mt=(a+x)/2,yt=(y+E)/2,wt=(x+b)/2,Et=(E+z)/2;b=(b+tt)/2,z=(z+ot)/2,E=(mt+wt)/2,x=(yt+Et)/2,wt=(wt+b)/2,Et=(Et+z)/2;var zt=(E+wt)/2,It=(x+Et)/2;return _t.cs(a,y,mt,yt,E,x,zt,It,rt,at,ut,gt)||_t.cs(zt,It,wt,Et,b,z,tt,ot,rt,at,ut,gt)},ax:function(a,y,x,E,b,z,tt,ot,rt){var at=(x+b)/2,ut=(E+z)/2;return rt.h((((a+x)/2+at)/2+(at+(b+tt)/2)/2)/2,(((y+E)/2+ut)/2+(ut+(z+ot)/2)/2)/2),rt},My:function(a,y,x,E,b,z,tt,ot){var rt=(x+b)/2,at=(E+z)/2;return Ki(((a+x)/2+rt)/2,((y+E)/2+at)/2,(rt+(b+tt)/2)/2,(at+(z+ot)/2)/2)},Dl:function(a,y,x,E,b,z,tt,ot,rt,at){if(_t.Yb(a,y,tt,ot,rt,x,E)&&_t.Yb(a,y,tt,ot,rt,b,z))Sr(at,a,y,0,0),Sr(at,tt,ot,0,0);else{var ut=(a+x)/2,gt=(y+E)/2,mt=(x+b)/2,yt=(E+z)/2;b=(b+tt)/2,z=(z+ot)/2,E=(ut+mt)/2,x=(gt+yt)/2,mt=(mt+b)/2,yt=(yt+z)/2;var wt=(E+mt)/2,Et=(x+yt)/2;_t.Dl(a,y,ut,gt,E,x,wt,Et,rt,at),_t.Dl(wt,Et,mt,yt,b,z,tt,ot,rt,at)}return at},Qe:function(a,y,x,E,b,z,tt,ot,rt,at){if(_t.Yb(a,y,tt,ot,rt,x,E)&&_t.Yb(a,y,tt,ot,rt,b,z))at.length===0&&(at.push(a),at.push(y)),at.push(tt),at.push(ot);else{var ut=(a+x)/2,gt=(y+E)/2,mt=(x+b)/2,yt=(E+z)/2;b=(b+tt)/2,z=(z+ot)/2,E=(ut+mt)/2,x=(gt+yt)/2,mt=(mt+b)/2,yt=(yt+z)/2;var wt=(E+mt)/2,Et=(x+yt)/2;_t.Qe(a,y,ut,gt,E,x,wt,Et,rt,at),_t.Qe(wt,Et,mt,yt,b,z,tt,ot,rt,at)}return at},jv:function(a,y,x,E,b,z,tt,ot,rt,at){if(_t.Yb(a,y,b,z,at,x,E))return _t.Yb(a,y,b,z,at,ot,rt);var ut=(a+x)/2,gt=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var mt=(ut+x)/2,yt=(gt+E)/2;return _t.jv(a,y,ut,gt,mt,yt,tt,ot,rt,at)||_t.jv(mt,yt,x,E,b,z,tt,ot,rt,at)},OA:function(a,y,x,E,b,z,tt){return tt.h(((a+x)/2+(x+b)/2)/2,((y+E)/2+(E+z)/2)/2),tt},iv:function(a,y,x,E,b,z,tt,ot){if(_t.Yb(a,y,b,z,tt,x,E))Sr(ot,a,y,0,0),Sr(ot,b,z,0,0);else{var rt=(a+x)/2,at=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ut=(rt+x)/2,gt=(at+E)/2;_t.iv(a,y,rt,at,ut,gt,tt,ot),_t.iv(ut,gt,x,E,b,z,tt,ot)}return ot},ep:function(a,y,x,E,b,z,tt,ot){if(_t.Yb(a,y,b,z,tt,x,E))ot.length===0&&(ot.push(a),ot.push(y)),ot.push(b),ot.push(z);else{var rt=(a+x)/2,at=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ut=(rt+x)/2,gt=(at+E)/2;_t.ep(a,y,rt,at,ut,gt,tt,ot),_t.ep(ut,gt,x,E,b,z,tt,ot)}return ot},Eo:function(a,y,x,E,b,z,tt,ot,rt,at,ut,gt,mt,yt){if(_t.Yb(a,y,tt,ot,mt,x,E)&&_t.Yb(a,y,tt,ot,mt,b,z))return!_t.Rl(a,y,tt,ot,rt,at,ut,gt)||(mt=(a-tt)*(at-gt)-(y-ot)*(rt-ut),mt===0)?!1:(yt.h(((a*ot-y*tt)*(rt-ut)-(a-tt)*(rt*gt-at*ut))/mt,((a*ot-y*tt)*(at-gt)-(y-ot)*(rt*gt-at*ut))/mt),!0);var wt=(a+x)/2,Et=(y+E)/2,zt=(x+b)/2,It=(E+z)/2;b=(b+tt)/2,z=(z+ot)/2,E=(wt+zt)/2,x=(Et+It)/2,zt=(zt+b)/2,It=(It+z)/2;var Yt=(E+zt)/2,Vt=(x+It)/2,Xt=1/0,te=!1,ge=0,ln=0;return _t.Eo(a,y,wt,Et,E,x,Yt,Vt,rt,at,ut,gt,mt,yt)&&(a=(yt.x-rt)*(yt.x-rt)+(yt.y-at)*(yt.y-at),a=ut)return yt;if((rt>ut?rt-ut:ut-rt)<(at>gt?at-gt:gt-at)){if(ya)return yt}else if(aa)return yt;0mt&&yt--}else{wt=(a+x)/2,Et=(y+E)/2;var zt=(x+b)/2,It=(E+z)/2;b=(b+tt)/2,z=(z+ot)/2,E=(wt+zt)/2,x=(Et+It)/2,zt=(zt+b)/2,It=(It+z)/2;var Yt=(E+zt)/2,Vt=(x+It)/2;yt+=_t.Fo(a,y,wt,Et,E,x,Yt,Vt,rt,at,ut,gt,mt),yt+=_t.Fo(Yt,Vt,zt,It,b,z,tt,ot,rt,at,ut,gt,mt)}return yt},qh:function(a,y,x,E,b,z,tt){return _t.$(a,x)?(yy?(tt.h(a,y),!1):(tt.h(a,z),!0)):_t.$(y,E)?(aa?(tt.h(a,y),!1):(tt.h(b,y),!0)):(b=((a-b)*(a-x)+(y-z)*(y-E))/((x-a)*(x-a)+(E-y)*(E-y)),-5e-6>b?(tt.h(a,y),!1):1.000005y?(rt.h(a,y),!1):(rt.h(a,x),!0)):(tt=(E-y)/(x-a),_t.$(ot,tt)?(_t.qh(a,y,x,E,b,z,rt),!1):(b=(tt*a-ot*b+z-y)/(tt-ot),_t.$(tt,0)?(aa?(rt.h(a,y),!1):(rt.h(b,y),!0)):_t.qh(a,y,x,E,b,tt*(b-a)+y,rt))))},MA:function(a,y,x,E,b){return _t.Ve(x.x,x.y,E.x,E.y,a.x,a.y,y.x,y.y,b)},KA:function(a,y,x,E,b,z,tt,ot,rt,at){function ut(zt,It){var Yt=(zt-a)*(zt-a)+(It-y)*(It-y);Yt(x>a?x-a:a-x)){if(mt=1-(x-b)*(x-b)/(mt*mt),0>mt)return rt;mt=Math.sqrt(mt),E=-at*mt+z,ut(x,at*mt+z),ut(x,E)}else{if(x=(E-y)/(x-a),E=1/(mt*mt)+x*x/(at*at),ot=2*x*(y-x*a)/(at*at)-2*x*z/(at*at)-2*b/(mt*mt),mt=ot*ot-4*E*(2*x*a*z/(at*at)-2*y*z/(at*at)+z*z/(at*at)+b*b/(mt*mt)-1+(y-x*a)*(y-x*a)/(at*at)),0>mt)return rt;mt=Math.sqrt(mt),at=(-ot+mt)/(2*E),ut(at,x*at-x*a+y),mt=(-ot-mt)/(2*E),ut(mt,x*mt-x*a+y)}return rt},Ff:function(a,y,x,E,b,z,tt,ot,rt){var at=1e21,ut=a,gt=y;if(_t.Ve(a,y,a,E,b,z,tt,ot,rt)){var mt=(rt.x-b)*(rt.x-b)+(rt.y-z)*(rt.y-z);mtat},us:function(a,y,x){return _t.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,E,b,z,tt,ot){var rt=a+x,at=y+E;return b===tt?(z=y):z===ot?(b=a):!!(Is(a,y,x,E,b,z)||Is(a,y,x,E,tt,ot)||_t.Rl(a,y,rt,y,b,z,tt,ot)||_t.Rl(rt,y,rt,at,b,z,tt,ot)||_t.Rl(rt,at,a,at,b,z,tt,ot)||_t.Rl(a,at,a,y,b,z,tt,ot))},Rl:function(a,y,x,E,b,z,tt,ot){return a===x&&y===E&&b===tt&&z===ot?a===b&&y===z:0>=_t.Fl(a,y,x,E,b,z)*_t.Fl(a,y,x,E,tt,ot)&&0>=_t.Fl(b,z,tt,ot,a,y)*_t.Fl(b,z,tt,ot,x,E)},Fl:function(a,y,x,E,b,z){return x-=a,E-=y,a=b-a,y=z-y,z=a*E-y*x,z===0&&(z=a*x+y*E,0z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,E,b,z){var tt=Math.PI;z||(E*=tt/180,b*=tt/180);var ot=E>b?-1:1;z=[];var rt=tt/2,at=E;if(E=Math.min(2*tt,Math.abs(b-E)),1e-5>E)return rt=at+ot*Math.min(E,rt),ot=a+x*Math.cos(at),at=y+x*Math.sin(at),a+=x*Math.cos(rt),y+=x*Math.sin(rt),x=(ot+a)/2,rt=(at+y)/2,z.push([ot,at,x,rt,x,rt,a,y]),z;for(;1e-5x,z=0>E;if(aat&&(y=.5*(ot+rt),!(y===ot||y===rt));++at){var ut=a/(y+b),gt=tt/(y+z);if(ut=ut*ut+gt*gt-1,0ut)rt=y;else break}x=b*x/(y+b)-x,E=z*E/(y+z)-E,x=Math.sqrt(x*x+E*E)}else x=Math.abs(E-y);else E=a*a-y*y,z=a*x,za?"M"+this.startX.toString()+" "+this.startY.toString()+"L"+this.endX.toString()+" "+this.endY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a)+"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);case He.u:var y=new ke(this.startX,this.startY,0,0);return y.Kv(this.endX,this.endY,0,0),0>a?"M"+y.x.toString()+" "+y.y.toString()+"H"+y.right.toString()+"V"+y.bottom.toString()+"H"+y.left.toString()+"z":"M"+y.x.toFixed(a)+" "+y.y.toFixed(a)+"H"+y.right.toFixed(a)+"V"+y.bottom.toFixed(a)+"H"+y.left.toFixed(a)+"z";case He.F:if(y=new ke(this.startX,this.startY,0,0),y.Kv(this.endX,this.endY,0,0),0>a)return a=y.left.toString()+" "+(y.y+y.height/2).toString(),"M"+a+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+(y.right.toString()+" "+(y.y+y.height/2).toString())+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+a;var x=y.left.toFixed(a)+" "+(y.y+y.height/2).toFixed(a);return"M"+x+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+(y.right.toFixed(a)+" "+(y.y+y.height/2).toFixed(a))+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+x;case He.o:y="",x=this.figures.s;for(var E=x.length,b=0;b=Xt-1?!0:at[Et+1].match(te)!==null}function E(){return Et++,at[Et]}function b(hi){var si=parseFloat(E()),$i=parseFloat(E());zt===zt.toLowerCase()&&(si=Vt.x+si,$i=Vt.y+$i),hi.h(si,$i)}function z(){return b(Vt),Vt}function tt(){return b(Yt),Yt}function ot(){var hi=It.toLowerCase();return hi!=="c"&&hi!=="s"&&hi!=="q"&&hi!=="t"?Vt:new Wt(2*Vt.x-Yt.x,2*Vt.y-Yt.y)}y===void 0&&(y=!1);var rt=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(rt,"$1 $2"),a=a.replace(rt,"$1 $2"),a=a.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),a=a.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),a=a.replace(/([0-9])([+\-])/gm,"$1 $2"),a=a.replace(/[\s\r\t\n]+/gm," "),a=a.replace(/^\s+|\s+$/g,"");var at=a.split(" ");for(a=0;a=Xt-1);)if(It=zt,zt=E(),zt!=="")switch(zt.toUpperCase()){case"X":yt=!0,gt=ut=!1;break;case"M":for(wt=z(),a.mc===null||yt===!0?(Bf(a,wt.x,wt.y,ut,!gt,mt),yt=!1):a.moveTo(wt.x,wt.y),rt.assign(Vt);!x();)wt=z(),a.lineTo(wt.x,wt.y);break;case"L":for(;!x();)wt=z(),a.lineTo(wt.x,wt.y);break;case"H":for(;!x();)Vt=new Wt((zt===zt.toLowerCase()?Vt.x:0)+parseFloat(E()),Vt.y),a.lineTo(Vt.x,Vt.y);break;case"V":for(;!x();)Vt=new Wt(Vt.x,(zt===zt.toLowerCase()?Vt.y:0)+parseFloat(E())),a.lineTo(Vt.x,Vt.y);break;case"C":for(;!x();){wt=new Wt,b(wt);var ge=tt(),ln=z();Vd(a,wt.x,wt.y,ge.x,ge.y,ln.x,ln.y)}break;case"S":for(;!x();)wt=ot(),ge=tt(),ln=z(),Vd(a,wt.x,wt.y,ge.x,ge.y,ln.x,ln.y);break;case"Q":for(;!x();)wt=tt(),ge=z(),Wm(a,wt.x,wt.y,ge.x,ge.y);break;case"T":for(;!x();)Yt=wt=ot(),ge=z(),Wm(a,wt.x,wt.y,ge.x,ge.y);break;case"B":for(;!x();){wt=parseFloat(E()),ge=parseFloat(E()),ln=parseFloat(E());var Cn=parseFloat(E()),vn=parseFloat(E()),Xe=vn,Oe=!1;x()||(Xe=parseFloat(E()),x()||(Oe=parseFloat(E())!==0)),zt===zt.toLowerCase()&&(ln+=Vt.x,Cn+=Vt.y),a.arcTo(wt,ge,ln,Cn,vn,Xe,Oe)}break;case"A":for(;!x();)wt=Math.abs(parseFloat(E())),ge=Math.abs(parseFloat(E())),ln=parseFloat(E()),vn=Cn=!1,Oe=Xe=0,Xe=E(),Xe.length===1?(Cn=!!parseFloat(Xe),vn=!!parseFloat(E()),Xe=parseFloat(E())):Xe.length===2?(Cn=!!parseFloat(Xe[0]),vn=!!parseFloat(Xe[1]),Xe=parseFloat(E())):(Cn=!!parseFloat(Xe[0]),vn=!!parseFloat(Xe[1]),Xe=parseFloat(Xe.slice(2))),Oe=parseFloat(E()),zt===zt.toLowerCase()&&(Xe=Vt.x+Xe,Oe=Vt.y+Oe),Vt.h(Xe,Oe),Px(a,wt,ge,ln,Cn,vn,Xe,Oe);break;case"Z":wx(a),Vt.assign(rt);break;case"F":for(wt="",ge=1;at[Et+ge];)if(at[Et+ge]==="0")mt=!0,ge++;else if(at[Et+ge].match(/[Uu]/)!==null)ge++;else if(at[Et+ge].match(te)===null)ge++;else{wt=at[Et+ge];break}wt.match(/[Mm]/)?ut=!0:0tt&&(tt+=360),wt.startAngle+=tt),0>a&&(wt.startAngle=180-wt.startAngle,wt.sweepAngle=-wt.sweepAngle),0>E&&(wt.startAngle=-wt.startAngle,wt.sweepAngle=-wt.sweepAngle),wt.radiusX*=Math.sqrt(a*a+x*x),wt.radiusY!==void 0&&(wt.radiusY*=Math.sqrt(y*y+E*E));break;case Ht:if(tt=wt.endX,ot=wt.endY,wt.endX=tt*a+ot*x+b,wt.endY=tt*y+ot*E+z,wt.radiusX===0||wt.radiusY===0)break;y!==0&&(tt=180*Math.atan2(y,a)/Math.PI,0>tt&&(tt+=360),wt.xAxisRotation+=tt),0>a&&(wt.xAxisRotation=180-wt.xAxisRotation,wt.isClockwiseArc=!wt.isClockwiseArc),0>E&&(wt.xAxisRotation=-wt.xAxisRotation,wt.isClockwiseArc=!wt.isClockwiseArc),wt.radiusX*=Math.sqrt(a*a+x*x),wt.radiusY*=Math.sqrt(y*y+E*E);break;default:oe("Unknown Segment type: "+wt.type)}}}}return this._isInvalidBounds=!0,this},Ct.ca=function(a,y){y===void 0&&(y=0);var x=this.od,E=this.pd,b=this.Dc,z=this.Ec;switch(this.type){case He.j:return _t.Yb(x,E,b,z,y,a.x,a.y);case He.u:var tt=ke.allocAt(Math.min(x,b)-y,Math.min(E,z)-y,Math.abs(b-x)+2*y,Math.abs(z-E)+2*y);return a=tt.ca(a),ke.free(tt),a;case He.F:tt=Math.min(x,b)-y;var ot=Math.min(E,z)-y;return x=(Math.abs(b-x)+2*y)/2,y=(Math.abs(z-E)+2*y)/2,0>=x||0>=y?!1:(tt=a.x-(tt+x),ot=a.y-(ot+y),1>=tt*tt/(x*x)+ot*ot/(y*y));case He.o:return Vs(this,a,y,!0,!1);default:return!1}};function Vs(a,y,x,E,b){var z=y.x;y=y.y;for(var tt=a.bounds.x-20,ot=0,rt,at,ut,gt,mt=a.figures.s,yt=mt.length,wt=0;wt=a)return 0;if((b>tt?b-tt:tt-b)<(z>ot?z-ot:ot-z)){if(zot)return 0}else if(yz)return 0}else if(btt)return 0}else if(atb)return 0;return 0a?a=0:1=z)return E=z-tt,E=ut===0?0:E/ut,x=x[ot],ot=x[2*a],b=x[2*a+1],y.h(ot+(x[2*a+2]-ot)*E,b+(x[2*a+3]-b)*E),y;tt+=ut}}return y},Ct.wx=function(a){if(0>a?a=0:1=b)return b=y[tt],y=b[2*a],x=b[2*a+1],E=b[2*a+2],a=b[2*a+3],1>Math.abs(E-y)&&1>Math.abs(a-x)?0:1>Math.abs(E-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=E-y?0:180:180*Math.atan2(a-x,E-y)/Math.PI;z+=at}}return NaN},Ct.Qu=function(a,y){if(0>a?a=0:1=z)return E=z-tt,E=ut===0?0:E/ut,ut=x[ot],x=ut[2*a],ot=ut[2*a+1],b=ut[2*a+2],a=ut[2*a+3],y[0]=x+(b-x)*E,y[1]=ot+(a-ot)*E,y[2]=1>Math.abs(b-x)&&1>Math.abs(a-ot)?0:1>Math.abs(b-x)?0<=a-ot?90:270:1>Math.abs(a-ot)?0<=b-x?0:180:180*Math.atan2(a-ot,b-x)/Math.PI,y;tt+=ut}}return y},Ct.xx=function(a){if(this.type===He.j){var y=this.startX,x=this.startY,E=this.endX,b=this.endY;if(y!==E||x!==b){var z=a.x;if(a=a.y,y===E){if(x=E?E===x?0:1:Math.abs(a-x)/(E-tt)}if(x===b)return y=E?E===y?0:1:Math.abs(z-y)/(E-tt);tt=(E-y)*(E-y)+(b-x)*(b-x);var ot=Wt.alloc();return _t.qh(y,x,E,b,z,a,ot),a=ot.x,z=ot.y,Wt.free(ot),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/tt)}}else if(this.type===He.u){tt=this.startX,ot=this.startY;var rt=this.endX;if(b=this.endY,tt!==rt||ot!==b){y=rt-tt,x=b-ot,z=2*y+2*x,E=a.x,a=a.y,E=Math.min(Math.max(E,tt),rt),a=Math.min(Math.max(a,ot),b),tt=Math.abs(E-tt),rt=Math.abs(E-rt),ot=Math.abs(a-ot),b=Math.abs(a-b);var at=Math.min(tt,rt,ot,b);if(at===ot)return E/z;if(at===rt)return(y+a)/z;if(at===b)return(2*y+x-E)/z;if(at===tt)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,E=Wt.alloc(),b=1/0,ot=tt=0,rt=y.length;for(var ut=at=0,gt=0;gta?0:1a?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a),x=this.segments.s,E=x.length,b=0;ba&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(E,0),this.Pg=Math.max(b,0),typeof tt=="boolean"?tt&&(this.isLargeArc=!0):typeof tt=="number"&&tt&&(this.isLargeArc=!0),ot&&(this.isClockwiseArc=!0)):(this.Ne=E,this.Vh=b,a===Ot&&(z=Math.max(z,0)),this.Wh=z,typeof tt=="number"?(a===Ot&&(tt=Math.max(tt,0)),this.Pg=tt):this.Pg=0),this.ae=null}Vi.prototype.copy=function(){var a=new Vi;return a.na=this.na,a.l=this.l&-2,a.Dc=this.Dc,a.Ec=this.Ec,a.Ne=this.Ne,a.Vh=this.Vh,a.Wh=this.Wh,a.Pg=this.Pg,a},Ct=Vi.prototype,Ct.Xa=function(a){if(!(a instanceof Vi)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case fs:case Lo:return _t.B(this.endX,a.endX)&&_t.B(this.endY,a.endY);case Rs:return _t.B(this.endX,a.endX)&&_t.B(this.endY,a.endY)&&_t.B(this.point1X,a.point1X)&&_t.B(this.point1Y,a.point1Y)&&_t.B(this.point2X,a.point2X)&&_t.B(this.point2Y,a.point2Y);case bt:return _t.B(this.endX,a.endX)&&_t.B(this.endY,a.endY)&&_t.B(this.point1X,a.point1X)&&_t.B(this.point1Y,a.point1Y);case Ot:return _t.B(this.startAngle,a.startAngle)&&_t.B(this.sweepAngle,a.sweepAngle)&&_t.B(this.centerX,a.centerX)&&_t.B(this.centerY,a.centerY)&&_t.B(this.radiusX,a.radiusX)&&_t.B(this.radiusY,a.radiusY);case Ht:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&_t.B(this.xAxisRotation,a.xAxisRotation)&&_t.B(this.endX,a.endX)&&_t.B(this.endY,a.endY)&&_t.B(this.radiusX,a.radiusX)&&_t.B(this.radiusY,a.radiusY);default:return!1}},Ct.qb=function(a){a.classType===Vi&&(this.type=a)},Ct.toString=function(a){switch(a===void 0&&(a=-1),this.type){case fs:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Lo:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Rs:a=0>a?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.point2X.toFixed(a)+" "+this.point2Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case bt:a=0>a?"Q"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"Q"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Ot:a=0>a?"B"+this.startAngle.toString()+" "+this.sweepAngle.toString()+" "+this.centerX.toString()+" "+this.centerY.toString()+" "+this.radiusX.toString()+" "+this.radiusY.toString():"B"+this.startAngle.toFixed(a)+" "+this.sweepAngle.toFixed(a)+" "+this.centerX.toFixed(a)+" "+this.centerY.toFixed(a)+" "+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a);break;case Ht:a=0>a?"A"+this.radiusX.toString()+" "+this.radiusY.toString()+" "+this.xAxisRotation.toString()+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toString()+" "+this.endY.toString():"A"+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a)+" "+this.xAxisRotation.toFixed(a)+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;default:a=this.type.toString()}return a+(this.isClosed?"z":"")},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return this._isFrozen=!1,this},Ct.close=function(){return this.isClosed=!0,this};function qs(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var x=a.radiusX,E=a.radiusY;if(E===void 0&&(E=x),x===0||E===0)return a.ae=[],a.ae;y=a.Ne;var b=a.Vh,z=_t.jx(0,0,x=yt?tt=Math.PI:1<=yt&&(tt=0),!rt&&0tt&&(tt+=2*Math.PI),rt=y>z?1:y/z,yt=y>z?z/y:1,y=_t.jx(0,0,y>z?y:z,ut,ut+tt,!0),z=fi.alloc(),z.reset(),z.translate(x,E),z.rotate(a.Ne,0,0),z.scale(rt,yt),He.Ha(y,z),fi.free(z),a.ae=y,a.ae}ve.Object.defineProperties(Vi.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},isClosed:{get:function(){return(this.l&8)!==0},set:function(a){this.isClosed!==a&&(this.l=a?this.l|8:this.l&-9,this._isInvalidBounds=!0)}},type:{get:function(){return this.na},set:function(a){this._isFrozen&&mn(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&mn(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&mn(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&mn(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&mn(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&mn(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&mn(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&mn(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&mn(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&li(a,">= zero",Vi,"radiusX"),this._isFrozen&&mn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&li(a,">= zero",Vi,"radiusY"),this._isFrozen&&mn(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&mn(this,a),a%=360,0>a&&(a+=360),this.Dc=a,this._isInvalidBounds=!0}},sweepAngle:{get:function(){return this.Ec},set:function(a){this._isFrozen&&mn(this,a),360a&&(a=-360),this.Ec=a,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&mn(this,a),this.l=a?this.l|4:this.l&-5,this._isInvalidBounds=!0}},isLargeArc:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&mn(this,a),this.l=a?this.l|16:this.l&-17,this._isInvalidBounds=!0}},xAxisRotation:{get:function(){return this.Ne},set:function(a){this._isFrozen&&mn(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),Vi.prototype.equalsApprox=Vi.prototype.Xa;var fs=new Ye(Vi,"Move",0),Lo=new Ye(Vi,"Line",1),Rs=new Ye(Vi,"Bezier",2),bt=new Ye(Vi,"QuadraticBezier",3),Ot=new Ye(Vi,"Arc",4),Ht=new Ye(Vi,"SvgArc",4);Vi.className="PathSegment",Vi.Move=fs,Vi.Line=Lo,Vi.Bezier=Rs,Vi.QuadraticBezier=bt,Vi.Arc=Ot,Vi.SvgArc=Ht;function le(){this.H=null,this.xu=new Wt(0,0).freeze(),this.mt=new Wt(0,0).freeze(),this.Bp=this.Rq=0,this.Cp=1,this.xq="",this.Wr=this.Tp=!1,this.Rp=this.Ep=0,this.xg=this.nq=this.tq=!1,this.Zp=null,this.Rr=0,this.xd=this.Nr=null}le.prototype.copy=function(){var a=new le;return this.clone(a)},le.prototype.clone=function(a){return a.H=this.H,a.xu.assign(this.viewPoint),a.mt.assign(this.documentPoint),a.Rq=this.Rq,a.Bp=this.Bp,a.Cp=this.Cp,a.xq=this.xq,a.Tp=this.Tp,a.Wr=this.Wr,a.Ep=this.Ep,a.Rp=this.Rp,a.tq=this.tq,a.nq=this.nq,a.xg=this.xg,a.Zp=this.Zp,a.Rr=this.Rr,a.Nr=this.Nr,a.xd=this.xd,a},le.prototype.toString=function(){var a="^";return this.modifiers!==0&&(a+="M:"+this.modifiers),this.button!==0&&(a+="B:"+this.button),this.key!==""&&(a+="K:"+this.key),this.clickCount!==0&&(a+="C:"+this.clickCount),this.delta!==0&&(a+="D:"+this.delta),this.handled&&(a+="h"),this.bubbles&&(a+="b"),this.documentPoint!==null&&(a+="@"+this.documentPoint.toString()),a},le.prototype.So=function(a,y){var x=this.diagram;return x===null||_c(x,a,y),y},le.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(_c(x,a,y),y.assign(x.Ps(y))),y},ve.Object.defineProperties(le.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},viewPoint:{get:function(){return this.xu},set:function(a){this.xu.assign(a)}},documentPoint:{get:function(){return this.mt},set:function(a){this.mt.assign(a)}},modifiers:{get:function(){return this.Rq},set:function(a){this.Rq=a}},button:{get:function(){return this.Bp},set:function(a){if(this.Bp=a,this.event===null)switch(a){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2}}},buttons:{get:function(){return this.Cp},set:function(a){this.Cp=a}},key:{get:function(){return this.xq},set:function(a){this.xq=a}},down:{get:function(){return this.Tp},set:function(a){this.Tp=a}},up:{get:function(){return this.Wr},set:function(a){this.Wr=a}},clickCount:{get:function(){return this.Ep},set:function(a){this.Ep=a}},delta:{get:function(){return this.Rp},set:function(a){this.Rp=a}},isMultiTouch:{get:function(){return this.tq},set:function(a){this.tq=a}},handled:{get:function(){return this.nq},set:function(a){this.nq=a}},bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},event:{get:function(){return this.Zp},set:function(a){this.Zp=a}},isTouchEvent:{get:function(){var a=this.event;return a===null?!1:a.pointerType==="touch"||a.pointerType==="pen"}},timestamp:{get:function(){return this.Rr},set:function(a){this.Rr=a}},targetDiagram:{get:function(){return this.Nr},set:function(a){this.Nr=a}},targetObject:{get:function(){return this.xd},set:function(a){this.xd=a}},control:{get:function(){return(this.modifiers&1)!==0},set:function(a){this.modifiers=a?this.modifiers|1:this.modifiers&-2}},shift:{get:function(){return(this.modifiers&4)!==0},set:function(a){this.modifiers=a?this.modifiers|4:this.modifiers&-5}},alt:{get:function(){return(this.modifiers&2)!==0},set:function(a){this.modifiers=a?this.modifiers|2:this.modifiers&-3}},meta:{get:function(){return(this.modifiers&8)!==0},set:function(a){this.modifiers=a?this.modifiers|8:this.modifiers&-9}},left:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&1)!==0:this.button===0},set:function(a){this.buttons=a?this.buttons|1:this.buttons&-2}},right:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&2)!==0:this.button===2},set:function(a){this.buttons=a?this.buttons|2:this.buttons&-3}},middle:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&4)!==0:this.button===1},set:function(a){this.buttons=a?this.buttons|4:this.buttons&-5}}}),le.prototype.getMultiTouchDocumentPoint=le.prototype.Bz,le.prototype.getMultiTouchViewPoint=le.prototype.So,le.className="InputEvent";function de(){this.H=null,this.xa="",this.ar=this.Lr=null}de.prototype.copy=function(){var a=new de;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},de.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},ve.Object.defineProperties(de.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},subject:{get:function(){return this.Lr},set:function(a){this.Lr=a}},parameter:{get:function(){return this.ar},set:function(a){this.ar=a}}}),de.className="DiagramEvent";function se(){this.Fm=Te,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}se.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},se.prototype.copy=function(){var a=new se;a.Fm=this.Fm,a.Qq=this.Qq,a.rf=this.rf,a.cc=this.cc,a.H=this.H,a.Qn=this.Qn;var y=this.Sn;return a.Sn=De(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=De(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=De(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=De(y)&&typeof y.J=="function"?y.J():y,a},se.prototype.qb=function(a){a.classType===se&&(this.change=a)},se.prototype.toString=function(){var a="";return a=this.change===ye?a+"* ":this.change===Te?a+(this.model!==null?"!m":"!d"):a+((this.model!==null?"!m":"!d")+this.change),this.propertyName&&typeof this.propertyName=="string"&&(a+=" "+this.propertyName),this.modelChange&&this.modelChange!==this.propertyName&&(a+=" "+this.modelChange),a+=": ",this.change===ye?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=Wo(this.object)),this.oldValue!==null&&(a+=" old: "+Wo(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+Wo(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},se.prototype.I=function(a){return a?this.oldValue:this.newValue},se.prototype.Dz=function(a){return a?this.oldParam:this.newParam},se.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},se.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},se.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},se.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},ve.Object.defineProperties(se.prototype,{model:{get:function(){return this.cc},set:function(a){this.cc=a}},diagram:{get:function(){return this.H},set:function(a){this.H=a}},change:{get:function(){return this.Fm},set:function(a){this.Fm=a}},modelChange:{get:function(){return this.Qq},set:function(a){this.Qq=a}},propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},isTransactionFinished:{get:function(){return this.Fm===ye&&(this.rf==="CommittedTransaction"||this.rf==="FinishedUndo"||this.rf==="FinishedRedo")}},object:{get:function(){return this.Qn},set:function(a){this.Qn=a}},oldValue:{get:function(){return this.Sn},set:function(a){this.Sn=a}},oldParam:{get:function(){return this.Rn},set:function(a){this.Rn=a}},newValue:{get:function(){return this.Mn},set:function(a){this.Mn=a}},newParam:{get:function(){return this.Ln},set:function(a){this.Ln=a}}}),se.prototype.redo=se.prototype.redo,se.prototype.canRedo=se.prototype.canRedo,se.prototype.undo=se.prototype.undo,se.prototype.canUndo=se.prototype.canUndo,se.prototype.getParam=se.prototype.Dz,se.prototype.getValue=se.prototype.I,se.prototype.clear=se.prototype.clear;var ye=new Ye(se,"Transaction",-1),Te=new Ye(se,"Property",0),Qe=new Ye(se,"Insert",1),rn=new Ye(se,"Remove",2);se.className="ChangedEvent",se.Transaction=ye,se.Property=Te,se.Insert=Qe,se.Remove=rn;function jn(){this.o=new on().freeze(),this.xa="",this.j=!1}jn.prototype.toString=function(a){var y="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(a!==void 0&&0y&&a.cd(y,E),y++);for(;a.length>y;)a.pop();a.freeze()}},ve.Object.defineProperties(jn.prototype,{changes:{get:function(){return this.o}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isComplete:{get:function(){return this.j},set:function(a){this.j=a}}}),jn.prototype.optimize=jn.prototype.ak,jn.prototype.redo=jn.prototype.redo,jn.prototype.canRedo=jn.prototype.canRedo,jn.prototype.undo=jn.prototype.undo,jn.prototype.canUndo=jn.prototype.canUndo,jn.prototype.clear=jn.prototype.clear,jn.className="Transaction";function an(){this.Pt=new en,this.Jd=!1,this.u=new on().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new on().freeze(),this.hl=new on,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}an.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var x=this.nestedTransactionNames.count,E=0;Ea.transactionLevel&&eo("Ending transaction without having started a transaction: "+x);var E=a.transactionLevel===1,b=a.currentTransaction;E&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,b));var z=0;if(0=E&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),E===0||y.count!==0&&y.get(y.count-1)===b||(y.add(b),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,b);else{a.Fe=!0;try{a.isEnabled&&b!==null&&(b.isComplete=!0,b.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,b),a.Fe=!1}b!==null&&b.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&b!==null){for(a=z,x=b.changes,b=x.count-1;b>=a;b--)y=x.M(b),y!==null&&y.undo(),x.ka(),x.mb(b);x.freeze()}return!1}Ct.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var a=this.history;a.ka();for(var y=a.count-1;y>this.historyIndex;y--){var x=a.M(y);x!==null&&x.clear(),a.mb(y),this.rq=!0}a.freeze()}},an.prototype.canUndo=function(){if(!this.isEnabled||0=this.transactionLevel&&!this.tt&&(a=a.diagram,a!==null&&a.pi===!1||eo("Change not within a transaction: "+x.toString()))}},an.prototype.skipsEvent=function(a){if(a===null||0>a.change.value)return!0;if(a=a.object,a===null)return!1;if(a.layer!==void 0){if(a=a.layer,a!==null&&a.isTemporary)return!0}else if(a.isTemporary)return!0;return!1},ve.Object.defineProperties(an.prototype,{models:{get:function(){return this.Pt.iterator}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},transactionToUndo:{get:function(){return 0<=this.historyIndex&&this.historyIndex<=this.history.count-1?this.history.M(this.historyIndex):null}},transactionToRedo:{get:function(){return this.historyIndexb||Math.abs(y.y-a.y)>E},ve.Object.defineProperties(nn.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof ce&&(this.H=a)}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},isActive:{get:function(){return this.nb},set:function(a){this.nb=a}},transactionResult:{get:function(){return this.wm},set:function(a){this.wm=a}}}),nn.prototype.startTransaction=nn.prototype.Ea,nn.className="Tool";function Ve(){nn.call(this),this.name="ToolManager",this.hb=new on,this.ob=new on,this.Hb=new on,this.F=this.V=850,this.o=new un(2,2).ja(),this.Ha=5e3,this.ia=Jn,this.u=bi,this.Mp=this.j=null,this.zj=-1}pe(Ve,nn),Ve.prototype.initializeStandardTools=function(){},Ve.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof Ji&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},Ve.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===Ni&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===ki){y.bubbles=!0;return}if(this.gestureBehavior===Ni)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,E=0;Eb.right&&(x.x-=E.width+5/y.scale),x.xb.bottom?x.y-(E.height+5/y.scale):x.y+20/y.scale,x.yx.pointsCount)){var E=a.diagram;if(!E.isReadOnly){var b=a.Oe;if(b!==null){var z=null,tt=null;x.fromNode===null&&(z=Cr(a,x.i(0),!1),z!==null&&(tt=z.part));var ot=null,rt=null;x.toNode===null&&(ot=Cr(a,x.i(x.pointsCount-1),!0),ot!==null&&(rt=ot.part)),b.isValidLink(tt,z,rt,ot)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=tt,z!==null&&(x.fromPortId=z.portId),x.toNode=rt,ot!==null&&(x.toPortId=ot.portId),x.fromPort!==E.Mx&&E.R("LinkRelinked",x,E.Mx),x.toPort!==E.Nx&&E.R("LinkRelinked",x,E.Nx)):bs(b,tt,z,rt,ot):bs(b,null,null,null,null)}}}}Un.prototype.doDragOver=function(){};function Ns(a,y){var x=a.diagram;a.dragsLink&&Gr(a,!0),zo(a);var E=a.findDragOverObject(y),b=x.lastInput;if(b.targetObject=E,E!==null){b.handled=!1;for(var z=E;z!==null;){var tt=z.mouseDrop;if(tt!==null&&(tt(b,z),b.handled))break;fa(a,b,z),z=es(z)}}else z=x.mouseDrop,z!==null&&z(b);if(a.isActive||bo!==null){for(b=(a.copiedParts||a.draggedParts).iterator;b.next();)z=b.key,z instanceof hn&&z.linksConnected.each(function(ot){ot.suspendsRouting=!1});if(a.doDropOnto(y,E),a.isActive||bo!==null){for(a=ke.alloc(),y=x.selection.iterator;y.next();)E=y.value,E instanceof hn&&Ga(x,E,a);ke.free(a)}}}function fa(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof di||(x=a.mouseDrop,x!==null&&x(y))}function Ga(a,y,x){var E=!1;if(x=y.getAvoidableRect(x),a.viewportBounds.Re(x)&&(E=!0),a=a.Nu(x,function(b){return b.part},function(b){return b instanceof Je},!0,function(b){return b instanceof Je},E),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}Un.prototype.doDropOnto=function(){},Un.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;this.simulatedMouseMove(y.event,y.documentPoint,y.targetDiagram)||this.currentPart===null||this.draggedParts===null||(this.mayCopy()?(fr(this,!1),jd(a,this.copiedParts),or(this,this.copiedParts,!1),tu(a,this.copiedParts)):this.mayMove()?(ar(this),or(this,this.draggedParts,!0)):this.mayDragOut()?(fr(this,!1),or(this,this.copiedParts,!1)):ar(this),dr(this,a.lastInput.documentPoint))}},Un.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;if(!this.simulatedMouseUp(y.event,y.documentPoint,y.targetDiagram)){y=!1;var x=this.mayCopy();if(x&&this.copiedParts!==null?(ar(this),fr(this,!0),jd(a,this.copiedParts),or(this,this.copiedParts,!1),tu(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0}))):(y=!0,ar(this),this.mayMove()&&(or(this,this.draggedParts,!0),dr(this,a.lastInput.documentPoint))),this.Ym=!0,Ns(this,a.lastInput.documentPoint),this.isActive){var E=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&$s(this),a.Ya(),tu(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",E)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},Un.prototype.simulatedMouseMove=function(a,y,x){if(bo===null)return!1;var E=bo.diagram;x instanceof ce||(x=null);var b=ms;return x!==b&&(b!==null&&b!==E&&(b.ug(),bo.isDragOutStarted=!1,b=b.toolManager.findTool("Dragging"),b!==null&&b.doSimulatedDragLeave()),ms=x,x!==null&&x!==E&&(cr(),b=x.toolManager.findTool("Dragging"),b!==null&&(Co.contains(b)||Co.add(b),b.doSimulatedDragEnter())),this.doUpdateCursor(null)),x===null||x===E||!x.allowDrop||x.isReadOnly||!x.allowInsert?!1:(E=x.toolManager.findTool("Dragging"),E!==null&&(a!==null&&(a.targetTouches!==void 0&&(0tt&&(tt=at),ut>ot&&(ot=ut))}}for(E===1/0?z.h(0,0,0,0):z.h(E,b,tt-E,ot-b),E=z.x+z.width/2,b=z.y+z.height/2,ke.free(z),z=a.Fr,tt=new oi,ot=Wt.alloc(),rt=y.iterator;rt.next();)at=rt.value,at instanceof Je&&at.canCopy()&&(ut=x.I(at),ut!==null&&(ut.points=at.points,Qd(ut,z.x-E,z.y-b),ut.suspendsRouting=!0,tt.add(ut,a.Pd())));for(y=y.iterator;y.next();)at=y.value,at.Zc()&&at.canCopy()&&(rt=x.I(at),rt!==null&&(at=at.location,ot.h(z.x-(E-at.x),z.y-(b-at.y)),rt.location=ot,rt.Va(),tt.add(rt,a.Pd(ot))));Wt.free(ot),a.copiedParts=tt,co(a,tt.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Qd(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}Un.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},Un.prototype.computeMove=function(a,y,x,E){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,E):new Wt},ve.Object.defineProperties(Un.prototype,{isCopyEnabled:{get:function(){return this.ob},set:function(a){this.ob=a}},copiesEffectiveCollection:{get:function(){return this.u},set:function(a){this.u=a}},dragOptions:{get:function(){return this.ia},set:function(a){this.ia=a}},isGridSnapEnabled:{get:function(){return this.dragOptions.isGridSnapEnabled},set:function(a){this.dragOptions.isGridSnapEnabled=a}},isComplexRoutingRealtime:{get:function(){return this.hb},set:function(a){this.hb=a}},isGridSnapRealtime:{get:function(){return this.dragOptions.isGridSnapRealtime},set:function(a){this.dragOptions.isGridSnapRealtime=a}},gridSnapCellSize:{get:function(){return this.dragOptions.gridSnapCellSize},set:function(a){this.dragOptions.gridSnapCellSize.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSize=a)}},gridSnapCellSpot:{get:function(){return this.dragOptions.gridSnapCellSpot},set:function(a){this.dragOptions.gridSnapCellSpot.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSpot=a)}},gridSnapOrigin:{get:function(){return this.dragOptions.gridSnapOrigin},set:function(a){this.dragOptions.gridSnapOrigin.D(a)||(a=a.J(),this.dragOptions.gridSnapOrigin=a)}},dragsLink:{get:function(){return this.dragOptions.dragsLink},set:function(a){this.dragOptions.dragsLink=a}},dragsTree:{get:function(){return this.dragOptions.dragsTree},set:function(a){this.dragOptions.dragsTree=a}},copyCursor:{get:function(){return this.F},set:function(a){this.F=a}},moveCursor:{get:function(){return this.Oc},set:function(a){this.Oc=a}},nodropCursor:{get:function(){return this.Pc},set:function(a){this.Pc=a}},currentPart:{get:function(){return this.V},set:function(a){this.V=a}},copiedParts:{get:function(){return this.o},set:function(a){this.o=a}},draggedParts:{get:function(){return this.Ha},set:function(a){this.Ha=a}},draggingParts:{get:function(){return this.copiedParts!==null?this.copiedParts.Lf():this.draggedParts!==null?this.draggedParts.Lf():this.te}},draggedLink:{get:function(){return this.diagram.draggedLink},set:function(a){this.diagram.draggedLink=a}},isDragOutStarted:{get:function(){return this.Hb},set:function(a){this.Hb=a}},startPoint:{get:function(){return this.Fr},set:function(a){this.Fr.D(a)||this.Fr.assign(a)}},delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}}}),Un.prototype.getDraggingSource=Un.prototype.Az;var bo=null,ms=null;Un.className="DraggingTool",Co=new on,wr("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),Ve.prototype.doCancel=function(){bo!==null&&bo.doCancel(),nn.prototype.doCancel.call(this)};function Po(){nn.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Je,y=new pi;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new pi,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new hn,y=new pi,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=No,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new hn,y=new pi,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=No,a.add(y),a.selectable=!1,a.layerName="Tool",this.Di=a,this.o=y,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new oi,this.Of=this.gj=this.Pf=null}pe(Po,nn),Po.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},Po.prototype.copyPortProperties=function(a,y,x,E,b){if(a!==null&&y!==null&&x!==null&&E!==null){var z=y.Df(),tt=un.alloc();tt.width=y.naturalBounds.width*z,tt.height=y.naturalBounds.height*z,E.desiredSize=tt,un.free(tt),b?(E.toSpot=y.toSpot,E.toEndSegmentLength=y.toEndSegmentLength):(E.fromSpot=y.fromSpot,E.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=ri,z=Wt.alloc(),x.location=y.ga(ri,z),Wt.free(z),E.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,E,b)}},Po.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=No,y.fromSpot=We,y.toSpot=We),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},Po.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},Po.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof hn){var y=this.targetPort.part;this.isForwards?this.copyPortProperties(y,this.targetPort,this.temporaryToNode,this.temporaryToPort,!0):this.copyPortProperties(y,this.targetPort,this.temporaryFromNode,this.temporaryFromPort,!1)}else this.isForwards?this.setNoTargetPortProperties(this.temporaryToNode,this.temporaryToPort,!0):this.setNoTargetPortProperties(this.temporaryFromNode,this.temporaryFromPort,!1);(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},Po.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof hn))return null;for(;a!==null;){var E=y?a.toLinkable:a.fromLinkable;if(E===!0&&(a.portId!==null||a instanceof hn)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(E===!1)break;a=a.panel}return null},Po.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,E=this.portGravity;0>=E&&(E=.1);var b=this,z=y.og(x,E,function(gt){return b.findValidLinkablePort(gt,a)},null,!0);for(E=1/0,y=null,z=z.iterator;z.next();){var tt=z.value,ot=tt.part;if(ot instanceof hn){var rt=tt.ga(ri,Wt.alloc()),at=x.x-rt.x,ut=x.y-rt.y;Wt.free(rt),rt=at*at+ut*ut,rtx){if(this.originalLink!==null&&a===this.originalFromNode&&y===this.originalFromPort)return!0;if(y=y.portId,y===null&&(y=""),a.Mo(y).count>=x)return!1}return!0},Po.prototype.isValidTo=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.toLinkable!==!0))return!1;var x=y.toMaxLinks;if(1/0>x){if(this.originalLink!==null&&a===this.originalToNode&&y===this.originalToPort)return!0;if(y=y.portId,y===null&&(y=""),a.Sd(y).count>=x)return!1}return!0},Po.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},Po.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof hn))return!1;a=a.portId,a===null&&(a="");var E=y.part;if(!(E instanceof hn))return!1;for(y=y.portId,y===null&&(y=""),y=E.Sd(y);y.next();)if(E=y.value,E.fromNode===x&&E.fromPortId===a)return!0;return!1},Po.prototype.isValidLink=function(a,y,x,E){if(!this.isValidFrom(a,y)||!this.isValidTo(x,E)||!(y===null||E===null||(y.fromLinkableSelfNode&&E.toLinkableSelfNode||!this.isInSameNode(y,E))&&(y.fromLinkableDuplicates&&E.toLinkableDuplicates||!this.isLinked(y,E)))||this.originalLink!==null&&(a!==null&&this.isLabelDependentOnLink(a,this.originalLink)||x!==null&&this.isLabelDependentOnLink(x,this.originalLink))||a!==null&&x!==null&&(a.data===null&&x.data!==null||a.data!==null&&x.data===null)||!this.isValidCycle(a,x,this.originalLink))return!1;if(a!==null){var b=a.linkValidation;if(b!==null&&!b(a,y,x,E,this.originalLink))return!1}return x!==null&&(b=x.linkValidation,b!==null&&!b(a,y,x,E,this.originalLink))?!1:(b=this.linkValidation,b!==null?b(a,y,x,E,this.originalLink):!0)},Po.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var x=a.labeledLink;if(x===null)return!1;if(x===y)return!0;var E=new en;return E.add(a),kr(this,x,y,E)};function kr(a,y,x,E){if(y===x)return!0;var b=y.fromNode;return b!==null&&b.isLinkLabel&&(E.add(b),kr(a,b.labeledLink,x,E))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(E.add(y),kr(a,y.labeledLink,x,E))))}Po.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var E=this.diagram.validCycle;if(E!==zg){if(E===dp){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=y.linksConnected;E.next();){var b=E.value;if(b!==x&&b.isTreeLink&&b.toNode===y)return!1}return!xr(this,a,y,x,!0)}if(E===cp){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=a.linksConnected;E.next();)if(b=E.value,b!==x&&b.isTreeLink&&b.fromNode===a)return!1;return!xr(this,a,y,x,!0)}if(E===lp)return a===y?a=!0:(E=new en,E.add(y),a=Kr(this,E,a,y,x)),!a;if(E===up)return!xr(this,a,y,x,!1);if(E===hp)return a===y?a=!0:(E=new en,E.add(y),a=qa(this,E,a,y,x)),!a}return!0};function xr(a,y,x,E,b){if(y===x)return!0;if(y===null||x===null)return!1;for(var z=y.linksConnected;z.next();){var tt=z.value;if(tt!==E&&(!b||tt.isTreeLink)&&tt.toNode===y&&(tt=tt.fromNode,tt!==y&&xr(a,tt,x,E,b)))return!0}return!1}function Kr(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==b&&tt.toNode===x&&(tt=tt.fromNode,tt!==x&&Kr(a,y,tt,E,b)))return!0}return!1}function qa(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==b){var ot=tt.fromNode;if(tt=tt.toNode,ot=ot===x?tt:ot,ot!==x&&qa(a,y,ot,E,b))return!0}}return!1}ve.Object.defineProperties(Po.prototype,{portGravity:{get:function(){return this.te},set:function(a){0<=a&&(this.te=a)}},isUnconnectedLinkValid:{get:function(){return this.Ha},set:function(a){this.Ha=a}},linkingCursor:{get:function(){return this.u},set:function(a){this.u=a}},temporaryLink:{get:function(){return this.Ci},set:function(a){this.Ci=a}},temporaryFromNode:{get:function(){return this.Bi},set:function(a){(this.Bi=a)&&(this.j=a.port)}},temporaryFromPort:{get:function(){return this.j},set:function(a){if(this.j!==null){var y=this.j.panel;if(y!==null){var x=y.O.indexOf(this.j);y.mb(x),y.Gb(x,a)}}this.j=a}},temporaryToNode:{get:function(){return this.Di},set:function(a){(this.Di=a)&&(this.o=a.port)}},temporaryToPort:{get:function(){return this.o},set:function(a){if(this.o!==null){var y=this.o.panel;if(y!==null){var x=y.O.indexOf(this.o);y.mb(x),y.Gb(x,a)}}this.o=a}},originalLink:{get:function(){return this.Hb},set:function(a){this.Hb=a}},originalFromNode:{get:function(){return this.hb},set:function(a){this.hb=a}},originalFromPort:{get:function(){return this.ob},set:function(a){this.ob=a}},originalToNode:{get:function(){return this.Oc},set:function(a){this.Oc=a}},originalToPort:{get:function(){return this.Pc},set:function(a){this.Pc=a}},isForwards:{get:function(){return this.ia},set:function(a){this.ia=a}},validPortsCache:{get:function(){return this.hy}},targetPort:{get:function(){return this.Pf},set:function(a){this.Pf=a}},linkValidation:{get:function(){return this.gj},set:function(a){this.gj=a}},portTargeted:{get:function(){return this.Of},set:function(a){this.Of=a}}}),Po.className="LinkingBaseTool";function lo(){Po.call(this),this.name="Linking",this.V={},this.F=null,this.K=Cs,this.Xd=null}pe(lo,Po),lo.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return a.isReadOnly||a.isModelReadOnly||!a.allowLink||!a.model.xs()||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize()?!1:this.findLinkablePort()!==null},lo.prototype.findLinkablePort=function(){var a=this.diagram,y=this.startObject;if(y===null&&(y=a.ic(a.firstInput.documentPoint,null,null)),y===null||(a=y.part,!(a instanceof hn)))return null;var x=this.direction;if(x===Cs||x===ta){var E=this.findValidLinkablePort(y,!1);if(E!==null||this.startObject===a&&(E=a.port,this.findValidLinkablePort(E,!1)))return this.isForwards=!0,E}return(x===Cs||x===Ta)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},lo.prototype.doActivate=function(){var a=this.diagram,y=this.findLinkablePort();y===null?this.stopTool():(this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.isForwards?(this.temporaryToNode!==null&&(this.temporaryToNode.location=a.lastInput.documentPoint),this.originalFromPort=y,y=this.originalFromPort.part,y instanceof hn&&(this.originalFromNode=y),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(this.temporaryFromNode!==null&&(this.temporaryFromNode.location=a.lastInput.documentPoint),this.originalToPort=y,y=this.originalToPort.part,y instanceof hn&&(this.originalToNode=y),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),a.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),a.add(this.temporaryToNode),this.temporaryToNode&&this.temporaryToNode.Va(),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0)},lo.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},lo.prototype.doStop=function(){Po.prototype.doStop.call(this),this.startObject=null},lo.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,E=null,b=null,z=null;try{var tt=this.targetPort=this.findTargetPort(this.isForwards);if(tt!==null){var ot=tt.part;ot instanceof hn&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),E=ot,b=tt):(y=ot,x=tt,this.originalToNode!==null&&(E=this.originalToNode,b=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(E=this.originalToNode,b=this.originalToPort);y!==null||E!==null?(z=this.insertLink(y,x,E,b),z!==null?(tt===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),z.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",z)):this.doNoLink(y,x,E,b)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),z&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},lo.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof Je)return a.isTreeLink;var y=this.diagram;return y===null?!0:(a=y.partManager.getLinkCategoryForData(a),y=y.partManager.findLinkTemplateForCategory(a),y!==null?y.isTreeLink:!0)},lo.prototype.insertLink=function(a,y,x,E){return this.diagram.partManager.insertLink(a,y,x,E)},lo.prototype.doNoLink=function(){},ve.Object.defineProperties(lo.prototype,{archetypeLinkData:{get:function(){return this.V},set:function(a){this.V=a}},archetypeLabelNodeData:{get:function(){return this.F},set:function(a){this.F=a}},direction:{get:function(){return this.K},set:function(a){this.K=a}},startObject:{get:function(){return this.Xd},set:function(a){this.Xd=a}}});var Cs=new Ye(lo,"Either",0),ta=new Ye(lo,"ForwardsOnly",0),Ta=new Ye(lo,"BackwardsOnly",0);lo.className="LinkingTool",lo.Either=Cs,lo.ForwardsOnly=ta,lo.BackwardsOnly=Ta;function ns(){Po.call(this),this.name="Relinking";var a=new pi;a.figure="Diamond",a.desiredSize=rs,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new pi,a.figure="Diamond",a.desiredSize=rs,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new ke}pe(ns,Po),ns.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Je){var y="RelinkFrom",x=null;if(a.isSelected&&!this.diagram.isReadOnly){var E=a.selectionObject;E!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null&&(x=this.makeAdornment(E,!1),a.bh(y,x)))}x===null&&a.Jf(y),y="RelinkTo",x=null,a.isSelected&&!this.diagram.isReadOnly&&(E=a.selectionObject,E!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null?(x=this.makeAdornment(E,!0),a.bh(y,x)):x.v())),x===null&&a.Jf(y)}},ns.prototype.makeAdornment=function(a,y){var x=new Ji;return x.type=Ke.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},ns.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowRelink||!a.model.xs()||!a.lastInput.left)return!1;var y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom");return y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo")),y!==null},ns.prototype.doActivate=function(){var a=this.diagram;if(this.originalLink===null){var y=this.handle;if(y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom"),y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo"))),y===null)return;var x=y.part;if(!(x instanceof Ji&&x.adornedPart instanceof Je))return;this.handle=y,this.isForwards=x===null||x.category==="RelinkTo",this.originalLink=x.adornedPart}this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.originalFromPort=this.originalLink.fromPort,this.originalFromNode=this.originalLink.fromNode,this.originalToPort=this.originalLink.toPort,this.originalToNode=this.originalLink.toNode,this.Ew.set(this.originalLink.actualBounds),this.originalLink!==null&&0y.firstPickIndex+1&&x=x.x)y=0>=x.y?y+225:1<=x.y?y+135:y+180;else if(1<=x.x)0>=x.y?y+=315:1<=x.y&&(y+=45);else if(0>=x.y)y+=270;else if(1<=x.y)y+=90;else break t;0>y?y+=360:360<=y&&(y-=360),a.cursor=22.5>y?"e-resize":67.5>y?"se-resize":112.5>y?"s-resize":157.5>y?"sw-resize":202.5>y?"w-resize":247.5>y?"nw-resize":292.5>y?"n-resize":337.5>y?"ne-resize":"e-resize"}else if(a instanceof Ke)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},Ms.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowResize&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},Ms.prototype.doActivate=function(){var a=this.diagram;this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null&&(this.adornedObject=this.handle.part.adornedObject,this.adornedObject!==null&&(a.isMouseCaptured=!0,a.animationManager.Cc(),this.Ea(this.name),this.Xq.set(this.adornedObject.ga(this.handle.alignment.gv())),this.Tn.set(this.adornedObject.part.location),this.Dw.set(this.adornedObject.desiredSize),this.pt=this.computeCellSize(),this.rt=this.computeMinSize(),this.qt=this.computeMaxSize(),this.isActive=!0))},Ms.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},Ms.prototype.stopTransaction=function(){var a=this.diagram,y=nn.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Ms.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},Ms.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,Wt.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),a.bd(),Wt.free(b)}},Ms.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,Wt.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),Wt.free(b),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},Ms.prototype.resize=function(a){var y=this.diagram,x=this.adornedObject;if(x!==null){if(x.desiredSize=a.size,a=x.part,a.Va(),x=x.ga(this.handle.alignment.gv()),a instanceof di){var E=new on;if(E.add(a),!this.dragsMembers&&a.placeholder===null){var b=new st;b.dragsMembers=!1}y.moveParts(E,this.oppositePoint.copy().re(x),!0,b)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},Ms.prototype.computeResize=function(a,y,x,E,b,z){y.Mc()&&(y=ri);var tt=this.adornedObject.naturalBounds,ot=tt.x,rt=tt.y,at=tt.x+tt.width,ut=tt.y+tt.height,gt=1;if(!z){gt=tt.width;var mt=tt.height;0>=gt&&(gt=1),0>=mt&&(mt=1),gt=mt/gt}return mt=Wt.alloc(),_t.No(a.x,a.y,ot,rt,b.width,b.height,mt),a=tt.copy(),0>=y.x?0>=y.y?(a.x=Math.max(mt.x,at-E.width),a.x=Math.min(a.x,at-x.width),a.width=Math.max(at-a.x,x.width),a.y=Math.max(mt.y,ut-E.height),a.y=Math.min(a.y,ut-x.height),a.height=Math.max(ut-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(gt*a.width,E.height),x.height),a.width=a.height/gt):(a.width=Math.max(Math.min(a.height/gt,E.width),x.width),a.height=gt*a.width),a.x=at-a.width,a.y=ut-a.height)):1<=y.y?(a.x=Math.max(mt.x,at-E.width),a.x=Math.min(a.x,at-x.width),a.width=Math.max(at-a.x,x.width),a.height=Math.max(Math.min(mt.y-rt,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(gt*a.width,E.height),x.height),a.width=a.height/gt):(a.width=Math.max(Math.min(a.height/gt,E.width),x.width),a.height=gt*a.width),a.x=at-a.width)):(a.x=Math.max(mt.x,at-E.width),a.x=Math.min(a.x,at-x.width),a.width=at-a.x,z||(a.height=Math.max(Math.min(gt*a.width,E.height),x.height),a.width=a.height/gt,a.y=rt+.5*(ut-rt-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(mt.x-ot,E.width),x.width),a.y=Math.max(mt.y,ut-E.height),a.y=Math.min(a.y,ut-x.height),a.height=Math.max(ut-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(gt*a.width,E.height),x.height),a.width=a.height/gt):(a.width=Math.max(Math.min(a.height/gt,E.width),x.width),a.height=gt*a.width),a.y=ut-a.height)):1<=y.y?(a.width=Math.max(Math.min(mt.x-ot,E.width),x.width),a.height=Math.max(Math.min(mt.y-rt,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(gt*a.width,E.height),x.height),a.width=a.height/gt):(a.width=Math.max(Math.min(a.height/gt,E.width),x.width),a.height=gt*a.width))):(a.width=Math.max(Math.min(mt.x-ot,E.width),x.width),z||(a.height=Math.max(Math.min(gt*a.width,E.height),x.height),a.width=a.height/gt,a.y=rt+.5*(ut-rt-a.height))):0>=y.y?(a.y=Math.max(mt.y,ut-E.height),a.y=Math.min(a.y,ut-x.height),a.height=ut-a.y,z||(a.width=Math.max(Math.min(a.height/gt,E.width),x.width),a.height=gt*a.width,a.x=ot+.5*(at-ot-a.width))):1<=y.y&&(a.height=Math.max(Math.min(mt.y-rt,E.height),x.height),z||(a.width=Math.max(Math.min(a.height/gt,E.width),x.width),a.height=gt*a.width,a.x=ot+.5*(at-ot-a.width))),Wt.free(mt),a},Ms.prototype.computeReshape=function(){var a=ze;return this.adornedObject instanceof pi&&(a=Mv(this.adornedObject)),!(a===kn||this.diagram.lastInput.shift)},Ms.prototype.computeMinSize=function(){var a=this.adornedObject.minSize.copy(),y=this.minSize;return!isNaN(y.width)&&y.width>a.width&&(a.width=y.width),!isNaN(y.height)&&y.height>a.height&&(a.height=y.height),a},Ms.prototype.computeMaxSize=function(){var a=this.adornedObject.maxSize.copy(),y=this.maxSize;return!isNaN(y.width)&&y.widthx?x+=360:360<=x&&(x-=360),x=Math.round(45*Math.round(x/45));var E=this.handleDistance;return x===0?y.x=a.naturalBounds.width+E:x===45?(y.x=a.naturalBounds.width+E,y.y=a.naturalBounds.height+E):x===90?y.y=a.naturalBounds.height+E:x===135?(y.x=-E,y.y=a.naturalBounds.height+E):x===180?y.x=-E:x===225?(y.x=-E,y.y=-E):x===270?y.y=-E:x===315&&(y.x=a.naturalBounds.width+E,y.y=-E),a.ga(y)},Fr.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Wt(NaN,NaN),this.isActive=a.isMouseCaptured=!1},Fr.prototype.stopTransaction=function(){var a=this.diagram,y=nn.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Fr.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Fr.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},Fr.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){a.delaysLayout=!1;var y=this.computeRotate(a.lastInput.documentPoint);this.rotate(y),a.Ya(),this.transactionResult=this.name,a.R("PartRotated",this.adornedObject,this.originalAngle)}this.stopTool()},Fr.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var x=y.locationObject,E=y.rotateObject;(x===E||x.rg(E))&&(x=this.Tn.copy(),y.location=x.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},Fr.prototype.computeRotate=function(a){a=this.rotationPoint.ab(a)-this.handleAngle;var y=this.adornedObject.panel;y!==null&&(a-=y.li()),360<=a?a-=360:0>a&&(a+=360),y=Math.min(Math.abs(this.snapAngleMultiple),180);var x=Math.min(Math.abs(this.snapAngleEpsilon),y/2);return!this.diagram.lastInput.shift&&0y-x&&(a=(Math.floor(a/y)+1)*y)),360<=a?a-=360:0>a&&(a+=360),a},ve.Object.defineProperties(Fr.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof Ji))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof Ji)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},snapAngleMultiple:{get:function(){return this.ia},set:function(a){this.ia=a}},snapAngleEpsilon:{get:function(){return this.V},set:function(a){this.V=a}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(a){this.kr=a.copy()}},handleAngle:{get:function(){return this.u},set:function(a){this.u=a}},handleDistance:{get:function(){return this.F},set:function(a){this.F=a}}}),Fr.className="RotatingTool",wr("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function tl(){nn.call(this),this.name="ClickSelecting"}pe(tl,nn),tl.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},tl.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},tl.className="ClickSelectingTool";function zs(){nn.call(this),this.name="Action",this.pk=null}pe(zs,nn),zs.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,x=a.ic(y.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E});return x!==null&&x.isActionable?(this.pk=x,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},zs.prototype.doMouseDown=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionDown!==null&&y.actionDown(a,y))}else this.canStart()&&this.doActivate()},zs.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionMove!==null&&y.actionMove(a,y))}},zs.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;if(y===null)return;a.targetObject=y,y.actionUp!==null&&y.actionUp(a,y),this.standardMouseClick(function(x){for(;x.panel!==null&&(!x.isActionable||x!==y);)x=x.panel;return x},function(x){return x===y})}this.stopTool()},zs.prototype.doCancel=function(){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionCancel!==null&&y.actionCancel(a,y),this.stopTool())},zs.prototype.doStop=function(){this.pk=null},zs.className="ActionTool";function Jl(){nn.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Wt(0,0)}pe(Jl,nn),Jl.prototype.canStart=function(){if(!this.isEnabled||this.archetypeNodeData===null)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.lastInput.left||this.isBeyondDragSize())return!1;if(this.isDoubleClick){if(a.lastInput.clickCount===1&&(this.mw=a.lastInput.viewPoint.copy()),a.lastInput.clickCount!==2||this.isBeyondDragSize(this.mw))return!1}else if(a.lastInput.clickCount!==1)return!1;return!(a.currentTool!==this&&a.Ol(a.lastInput.documentPoint,!0)!==null)},Jl.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},Jl.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var E=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof Vn)x.Zc()&&(Tu(x),E=x.copy(),E!==null&&y.add(E));else if(x!==null){var b=y.model.copyNodeData(x);De(b)&&(y.model.xf(b),E=y.Lc(b))}if(E!==null){var z=Wt.allocAt(a.x,a.y);this.isGridSnapEnabled&&eg(this.diagram,E,a,z),E.location=z,y.allowSelect&&(y.clearSelection(!0),E.isSelected=!0),Wt.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",E)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return E},ve.Object.defineProperties(Jl.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){this.Ri=a}},isDoubleClick:{get:function(){return this.o},set:function(a){this.o=a}},isGridSnapEnabled:{get:function(){return this.j},set:function(a){this.j=a}}}),Jl.className="ClickCreatingTool";function ma(){nn.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new Vn;a.layerName="Tool",a.selectable=!1;var y=new pi;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}pe(ma,nn),ma.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(!a.allowSelect)return!1;var y=a.lastInput;return!(!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.timestamp-a.firstInput.timestampb.right&&(x.x-=E.width+5/y.scale),x.xb.bottom&&(x.y-=E.height+5/y.scale),x.ya.lastInput.clickCount)):!1},yo.prototype.doStart=function(){Gu=this,this.textBlock!==null&&this.doActivate()},yo.prototype.doActivate=function(){if(!this.isActive){var a=this.diagram;if(a!==null){var y=this.textBlock;if(y===null&&(y=a.ic(a.lastInput.documentPoint)),y!==null&&y instanceof Go&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=qo;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var E=new ke(this.textBlock.ga(be),this.textBlock.ga($i));a.tv(E),x.show(y,a,this),this.currentTextEditor=x}}}},yo.prototype.doCancel=function(){this.stopTool()},yo.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},yo.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Ca)},yo.prototype.acceptText=function(a){switch(a){case Ca:this.qa===ih?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===qo||this.qa===zh||this.qa===Fs)&&(this.qa=_l,Lu(this));break;case Il:case du:case nh:(du!==a||this.textBlock.isMultiline!==!0)&&(this.qa===qo||this.qa===zh||this.qa===Fs)&&(this.qa=_l,Lu(this))}};function Lu(a){var y=a.textBlock,x=a.diagram,E=a.currentTextEditor;if(y!==null&&E!==null){var b=y.text,z="";E.valueFunction!==null&&(z=E.valueFunction()),a.isValidText(y,b,z)?(a.Ea(a.name),a.qa=ih,a.transactionResult=a.name,y.text=z,a.doSuccess(b,z),x!==null&&x.R("TextEdited",y,b),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=zh,a.doError(b,z))}}yo.prototype.doError=function(a,y){var x=this.textBlock;x.errorFunction!==null&&x.errorFunction(this,a,y),(a=this.currentTextEditor)&&a.show(x,this.diagram,this)},yo.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},yo.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=Oi,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},yo.prototype.doStop=function(){Gu=null},yo.prototype.isValidText=function(a,y,x){var E=this.textValidation;return E!==null&&!E(a,y,x)?!1:(E=a.textValidation,!!(E===null||E(a,y,x)))},yo.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},ve.Object.defineProperties(yo.prototype,{textBlock:{get:function(){return this.ia},set:function(a){this.ia=a}},currentTextEditor:{get:function(){return this.o},set:function(a){this.o=a}},defaultTextEditor:{get:function(){return this.j},set:function(a){this.j=a}},starting:{get:function(){return this.V},set:function(a){this.V=a}},textValidation:{get:function(){return this.vj},set:function(a){this.vj=a}},minimumEditorScale:{get:function(){return this.u},set:function(a){this.u=a}},selectsTextOnActivate:{get:function(){return this.F},set:function(a){this.F=a}},state:{get:function(){return this.qa},set:function(a){this.qa!==a&&(this.qa=a)}}}),yo.prototype.measureTemporaryTextBlock=yo.prototype.Lx;var Il=new Ye(yo,"LostFocus",0),Ca=new Ye(yo,"MouseDown",1),nh=new Ye(yo,"Tab",2),du=new Ye(yo,"Enter",3),bd=new Ye(yo,"SingleClick",0),cu=new Ye(yo,"SingleClickSelected",1),To=new Ye(yo,"DoubleClick",2),Oi=new Ye(yo,"StateNone",0),qo=new Ye(yo,"StateActive",1),Fs=new Ye(yo,"StateEditing",2),_l=new Ye(yo,"StateValidating",3),zh=new Ye(yo,"StateInvalid",4),ih=new Ye(yo,"StateValidated",5),Gu=null;yo.className="TextEditingTool",yo.LostFocus=Il,yo.MouseDown=Ca,yo.Tab=nh,yo.Enter=du,yo.SingleClick=bd,yo.SingleClickSelected=cu,yo.DoubleClick=To,yo.StateNone=Oi,yo.StateActive=qo,yo.StateEditing=Fs,yo.StateValidating=_l,yo.StateInvalid=zh,yo.StateValidated=ih,wr("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function Ma(a){Fa||(Zs(),Fa=!0),this.H=ah,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=va,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new en,this.ce=new sa,this.ce.Yd=this,this.Ei=new en,this.pu=new en,this.Sr=new en,this.pr=new en,a&&Object.assign(this,a)}Ma.prototype.Xe=function(a){this.H=a},Ma.prototype.canStart=function(){return!0};function Bs(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),aa(a.H),a.zb=!0)}function Oo(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,E=a.Zd.contains("Model");E&&(a.Ok=!0,a.Pk===va?(y.isViewportUnconstrained=!0,y.vc.clear(),y.add(x,"position",x.position.copy().offset(0,-200),x.position),y.add(x,"opacity",0,1)):a.Pk===Yc&&y.vc.clear(),a.Qw=!!(a.Pk===uc&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),E&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),Dd(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,E=y.vc.get(x),x.autoScale!==Ua&&E!==null&&(delete E.start.scale,delete E.end.scale),Ge.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&Ya(x),Zc(x),a.zb=!1,y.start(),y.bc&&(oh(a),x.Ya(),Uc(y,0),Ml(x,!0),rh(a),x.R("AnimationStarting",a)))}))}}function gu(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function Ol(a,y,x,E){a.isTicking||gu(a)||y instanceof Je&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,E,!1)}Ct=Ma.prototype,Ct.fv=function(a){return this.ce.fv(a)},Ct.Xu=function(a){return this.ce.Xu(a)};function hd(a,y){function x(){if(0z?z+=360:rt+=360),z=b(x,z,rt-z,E)%360,tt=b(x,tt,at-tt,E),ot=b(x,ot,ut-ot,E),x=b(x,a,y-a,E),"hsla("+z+", "+tt+"%, "+ot+"%, "+x+")"}function Zs(){function a(x,E,b,z,tt,ot){x.position=new Wt(z(tt,E.x,b.x-E.x,ot),z(tt,E.y,b.y-E.y,ot))}var y=new oi;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,E,b,z,tt,ot){tta&&li(a,">= 1",Ma,"duration"),this.Dg=a}},isAnimating:{get:function(){return this.bc}},isTicking:{get:function(){return this.vq}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a}},defaultAnimation:{get:function(){return this.ce}},activeAnimations:{get:function(){return this.Ei}},initialAnimationStyle:{get:function(){return this.Pk},set:function(a){this.Pk=a}}}),Ma.prototype.stopAnimation=Ma.prototype.Cc;var uo=null,Fa=!1,va=new Ye(Ma,"Default",1),uc=new Ye(Ma,"AnimateLocations",2),Yc=new Ye(Ma,"None",3);Ma.className="AnimationManager",Ma.defineAnimationEffect=function(a,y){Fa||(Zs(),Fa=!0),uo.add(a,y)},Ma.Default=va,Ma.AnimateLocations=uc,Ma.None=Yc;function sa(a){this.vu=this.Nw=this.Yd=this.H=null,this.Xk=this.bc=this.j=!1,this.cn=this.Qd=0,this.Lp=this.ot=Mh,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=Js,this.vc=new oi,this.Tt=new oi,this.yl=new en,this.Ut=new en,this.dw=Gd,a&&Object.assign(this,a)}sa.prototype.suspend=function(){this.Xk=!0},sa.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,hc(this,!0),oh(this.Yd),Ml(this.H),rh(this.Yd),this.H.redraw()};function Dd(a,y){if(a.Tt.clear(),a.Wk=!1,a.au=0,a.Gd=NaN,0a.cn?a.Gd:E-a.Qd;y&&(b=a.gw,ba.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function Uc(a,y){for(var x=a.Gd,E=a.vc.iterator,b=a.Wk;E.next();){var z=E.key;if(!(z instanceof ee&&z.diagram===null)){var tt=E.value,ot=b?tt.end:tt.start;tt=b?tt.start:tt.end;var rt=uo,at;for(at in tt)at==="position"&&(tt["position:placeholder"]||tt["position:nodeCollapse"])||rt.get(at)===null||rt.get(at)(z,ot[at],tt[at],a.Lp,y,x,a)}}}Ct.stop=function(){return this.bc?(this.Ml(!0),this):this},Ct.Ml=function(a){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var y=this.H,x=this.Yd;this.Xk=this.bc=x.Ok=!1,oh(x);for(var E=this.vc,b=this.yl.iterator;b.next();)y.remove(b.value);for(b=this.Ut.iterator;b.next();)b.value.v();b=this.ho,E=E.iterator;for(var z=uo;E.next();){var tt=E.key,ot=E.value,rt=b?ot.end:ot.start,at=b?ot.start:ot.end,ut=ot.Ku,gt;for(gt in at)if(z.get(gt)!==null){var mt=gt;!ot.Hu||mt!=="position:nodeCollapse"&&mt!=="position:placeholder"||(mt="position"),z.get(mt)(tt,rt[gt],ut[gt]!==void 0?ut[gt]:ot.Hu?rt[gt]:at[gt],this.Lp,this.Gd,this.Gd,this)}ot.Hu&&ut.location!==void 0&&tt instanceof Vn&&(tt.location=ut.location),ot.nv&&tt instanceof Vn&&tt.Zb(!1)}if(y.As.clear(),fd(y,!1),y.Ya(),y.N(),Ml(y,!0),x.defaultAnimation===this){for(gt=x.pr.iterator;gt.next();)b=gt.value,b.Tg!==null&&(b.points=b.Tg,b.Tg=null);x.pr.clear()}Ml(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),rh(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),Dd(this,null),x.Ml(this),y.$b())}},Ct.Cj=function(a,y){var x=y.actualBounds,E=null;if(y instanceof di&&(E=y.placeholder),E!==null?(x=E.ga(be),E=E.padding,x.x+=E.left,x.y+=E.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Wt(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof di)for(a=a.memberParts;a.next();)E=a.value,E instanceof hn&&this.Cj(E,y)},Ct.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof di&&(x=y.placeholder),x!==null){var E=x.ga(be);x=x.padding,E.x+=x.left,E.y+=x.top,this.add(a,"position:placeholder",a.position,E,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),E=this.vc,E.contains(a)&&(E.I(a).nv=!0),a instanceof di)for(a=a.memberParts;a.next();)E=a.value,E instanceof hn&&this.Aj(E,y)}},Ct.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},ve.Object.defineProperties(sa.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&li(a,">= 1",sa,"duration"),this.Dg=a}},reversible:{get:function(){return this.ho},set:function(a){this.ho=a}},runCount:{get:function(){return this.cu},set:function(a){0a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function gf(a,y,x,E){return a===E?y+x:x*(-Math.pow(2,-10*a/E)+1)+y}sa.className="Animation",sa.EaseLinear=function(a,y,x,E){return x*a/E+y},sa.EaseInOutQuad=Mh,sa.EaseInQuad=function(a,y,x,E){return x*(a/=E)*a+y},sa.EaseOutQuad=function(a,y,x,E){return-x*(a/=E)*(a-2)+y},sa.EaseInExpo=function(a,y,x,E){return a===0?y:x*Math.pow(2,10*(a/E-1))+y},sa.EaseOutExpo=gf;function Gh(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}Gh.className="AnimationState";function fu(a,y,x){this.xd=null,this.rf=a,this.so=x||Fd,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=Hh))}fu.prototype.copy=function(){var a=new fu(this.rf);a.so=this.so;var y=this.uk;if(y!==null){var x={};y.duration!==void 0&&(x.duration=y.duration),y.finished!==void 0&&(x.finished=y.finished),y.easing!==void 0&&(x.easing=y.easing),a.uk=x}return a};function Vc(a,y){a=a.uk,a!==null&&(a.duration&&(y.duration=a.duration),a.finished&&(y.finished=a.finished),a.easing&&(y.easing=a.easing))}ve.Object.defineProperties(fu.prototype,{propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},animationSettings:{get:function(){return this.uk},set:function(a){this.uk=a}},startCondition:{get:function(){return this.so},set:function(a){this.so=a}}});var Fd=new Ye(fu,"Default",1),Hh=new Ye(fu,"Immediate",2),gd=new Ye(fu,"Bundled",3);fu.className="AnimationTrigger",fu.Default=Fd,fu.Immediate=Hh,fu.Bundled=gd;function Hs(a){Ko(this),this.H=null,this.Pa=new on,this.xa="",this.pb=1,this.o=!1,this.j=this.Uh=this.u=this.Oi=this.Ni=this.Mi=this.Li=this.Ji=this.Ki=this.Ii=this.Qi=this.Hi=this.Pi=this.Gi=this.Fi=!0,this.Zq=[],a&&Object.assign(this,a)}Ct=Hs.prototype,Ct.clear=function(){for(var a=this.Pa,y=0;y=a)return y;for(var x=0,E=0,b=0,z=0,tt=0,ot=this.Pa.iterator;ot.next();){var rt=ot.value;rt instanceof di?b++:rt instanceof hn?E++:rt instanceof Je?z++:rt instanceof Ji?tt++:x++}if(ot="",0x.Oq||ot.height*b>x.Oq?y.gc(a,x):(b=y.actualBounds,z=y.naturalBounds,b.width===0||b.height===0||isNaN(b.x)||isNaN(b.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(Ir(y,a,y.areaBackground,!0,!0,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.areaBackground===null&&y.background===null&&(Ir(y,a,"rgba(0,0,0,0.3)",!0,!1,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),Ir(y,a,y.background,!0,!1,z,b),a.fillRect(0,0,z.width/2,z.height/2),x.ws()||(y=1/(x.m11*x.m22-x.m12*x.m21),a.transform(x.m22*y,-x.m12*y,-x.m21*y,x.m11*y,y*(x.m21*x.dy-x.m22*x.dx),y*(x.m12*x.dx-x.m11*x.dy)))))),E&&(a.restore(),a.Vc(!0))}},Ct.g=function(a,y,x,E,b){var z=this.diagram;z!==null&&z.cb(Te,a,this,y,x,E,b)},Ct.oi=function(a,y,x){var E=this.Pa;if(y.Ig=this,this===null&&Oa(y),a>=E.count)a=E.count;else if(E.M(a)===y)return-1;return E.Gb(a,y),y.Vo(x),E=this.diagram,E!==null&&(x?E.N():E.oi(y)),cc(this,a,y),a},Ct.pc=function(a,y,x){if(!x&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,x);var E=this.Pa;if(0>a||a>=E.length){if(a=E.indexOf(y),0>a)return-1}else if(E.M(a)!==y&&(a=E.indexOf(y),0>a))return-1;return y.Wo(x),E.mb(a),E=this.diagram,E!==null&&(x?E.N():E.pc(y)),y.Ig=null,Oa(y),a};function cc(a,y,x){if(y=kg(a,y,x),x instanceof di&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var E=-1,b=a.Pa.s,z=b.length,tt=0;ttE&&ot.containingGroup===x&&(E=tt,0<=y))break}!(0>E)&&E=b)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var z=y-1,tt=NaN;0<=z&&(tt=a.M(z).zOrder,!!isNaN(tt));)z--;for(var ot=y+1,rt=NaN;otE)for(;;){if(z===-1||tt<=E){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(tt=NaN;0<=--z&&(tt=a.M(z).zOrder,isNaN(tt)););}else if(!isNaN(rt)&&rt=E){if(ot--,ot===y)break;return a.mb(y),a.Gb(ot,x),ot}for(rt=NaN;++ota||1=a)return y;for(var x=this.Wa.iterator;x.next();)y+=` - `+x.value.toString(a-1);return y};function Yh(a,y){if(Nr){if(y!=null||oe("Diagram setup requires an argument DIV."),a.Ka!==null&&oe("Diagram has already completed setup."),typeof y=="string"?a.Ka=Ge.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:oe("No DIV or DIV id supplied: "+y),a.Ka===null&&oe("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&oe("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Ge.ResizeObserver){var x=Si(function(){a.$b()},250);a.ol=new Ge.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}Ge.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var E="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=E,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=Ge.go;var b=new bu(a);if(b.style!==void 0&&(b.style.position="absolute",b.style.top="0px",b.style.left="0px",Ge.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),b.style.zIndex="2",b.style.userSelect="none",b.style.MozUserSelect="none",b.style.touchAction="none",b.style.letterSpacing="normal !important",b.style.wordSpacing="normal !important"),a.ta=b,a.ib=b.context,E=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),Dg(a,a.Aa,a.ya),a.Ka.insertBefore(b.Oa,a.Ka.firstChild),b=new bu(null),b.width=1,b.height=1,a.jw=b,a.oy=b.context,Nr){b=ao("div");var z=ao("div");b.style.position="absolute",b.style.overflow="auto",b.style.width=a.Aa+"px",b.style.height=a.ya+"px",b.style.zIndex="1",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(b),b.appendChild(z),b.onscroll=vf,b.addEventListener("pointerdown",Qc),b.H=a,b.uy=!0,b.vy=!0,a.ku=b,a.hu=z}a.hk=Si(function(){a.Yh=null,a.N()},300),a.Ov=Si(function(){Zc(a)},250),a.preventDefault=function(tt){return tt.preventDefault(),!1},a.$j=function(tt){if(a.isEnabled){var ot=jl(a,tt,!0);ot.bubbles=!0;var rt=0,at=0;ot.delta=0,tt.deltaX!==void 0?(tt.deltaX!==0&&(rt=0Math.abs(tt.deltaY)?-rt:-at):tt.wheelDeltaX!==void 0?(tt.wheelDeltaX!==0&&(rt=0Math.abs(tt.wheelDeltaY)?-rt:-at):tt.wheelDelta!==void 0&&tt.wheelDelta!==0&&(ot.delta=0ot||Math.abs(at.y-tt.screenY)>ot)?a.yq++:a.yq=1,rt.clickCount=a.yq,a.tw=tt.timeStamp,a.uw.sg(tt.screenX,tt.screenY),a.doMouseDown(),tt.button===1?tt.preventDefault():$l(rt,tt)}},a.dk=function(tt){if(a.isEnabled){a.Vk=!0;var ot=a.oj;if(ot[0]===null||ot[0].pointerId!==tt.pointerId&&ot[0].pointerType===tt.pointerType){if(ot[1]!==null&&ot[1].pointerId===tt.pointerId){ot[1]=tt;return}if(ot[0]===null)ot[0]=tt;else return}else ot[0]=tt;if(ot[0].pointerId===tt.pointerId){ot=Jc(a,tt,!1,!1,!1,ot[1]!==null);var rt=Ge.document.elementFromPoint(tt.clientX,tt.clientY)||null;rt!==null&&rt.shadowRoot!==void 0&&rt.shadowRoot!==null&&(rt=rt.shadowRoot.elementFromPoint(tt.clientX,tt.clientY));var at=a,ut=tt;rt&&rt.H&&(ut=tt,at=rt.H),ot.targetDiagram=at,Bd(a,ut,ot),ot.targetObject=null,a.doMouseMove(),$l(ot,tt)}}},a.fk=function(tt){if(a.isEnabled){a.Vk=!0;var ot=tt.pointerType==="touch"||tt.pointerType==="pen",rt=a.Yt;if(ot&&a.qu)delete rt[tt.pointerId],tt.preventDefault();else if(rt=a.oj,rt[0]===null||rt[0].pointerId!==tt.pointerId&&rt[0].pointerType===tt.pointerType)rt[1]!==null&&rt[1].pointerId===tt.pointerId&&(rt[1]=null);else{rt[0]=null,rt=Jc(a,tt,!1,!0,!0,!1);var at=Ge.document.elementFromPoint(tt.clientX,tt.clientY)||null;at!==null&&at.shadowRoot!==void 0&&at.shadowRoot!==null&&(at=at.shadowRoot.elementFromPoint(tt.clientX,tt.clientY)),at!==null&&at.H instanceof ce&&at.H!==a&&Bd(at.H,tt,rt),at===null&&(at=tt.target),Bd(a,tt,rt),rt.clickCount=a.yq,rt.targetDiagram=Tg(tt,at),rt.targetObject=null,a.doMouseUp(),$l(rt,tt),ot&&(a.wq=!1)}}},a.ek=function(tt){if(a.isEnabled){a.Vk=!1;var ot=a.Yt;ot[tt.pointerId]&&delete ot[tt.pointerId],ot=a.oj,ot[0]!==null&&ot[0].pointerId===tt.pointerId&&(ot[0]=null),ot[1]!==null&&ot[1].pointerId===tt.pointerId&&(ot[1]=null),tt.pointerType!=="touch"&&tt.pointerType!=="pen"&&(tt=a.currentTool,tt.cancelWaitAfter(),tt.standardMouseOver())}},a.ck=function(tt){var ot=a.oj;ot[0]!==null&&ot[0].pointerId===tt.pointerId?(ot[0]=null,a.wq=!1):ot[1]!==null&&ot[1].pointerId===tt.pointerId&&(ot[1]=null)},a.Vp=E.Z["d"+Wg[1]+Wg[2]+"wI"+ag.slice(1,5)]["b"+Dx.slice(1,y)](E.Z,Hg,y,y),E.Vc(!0),pf(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}ce.prototype.addEventListener=function(a,y,x,E){a.addEventListener(y,x,{capture:E,passive:!1})},ce.prototype.removeEventListener=function(a,y,x,E){a.removeEventListener(y,x,{capture:E})};function pf(a){var y=a.ta.Oa;y instanceof HTMLCanvasElement||(y=a.div),a.addEventListener(y,"pointerdown",a.ui,!1),a.addEventListener(y,"pointermove",a.dk,!1),a.addEventListener(y,"pointerup",a.fk,!1),a.addEventListener(y,"pointerout",a.ek,!1),a.addEventListener(y,"pointercancel",a.ck,!1),a.addEventListener(y,"pointerenter",a.bz,!1),a.addEventListener(y,"pointerleave",a.cz,!1),a.addEventListener(y,"wheel",a.$j,!1),a.addEventListener(y,"keydown",a.Qz,!1),a.addEventListener(y,"keyup",a.Rz,!1),a.addEventListener(y,"blur",a.Ny,!1),a.addEventListener(y,"focus",a.Oy,!1),a.addEventListener(y,"selectstart",function(x){return x.preventDefault(),!1},!1),a.addEventListener(y,"contextmenu",function(x){return x.preventDefault(),!1},!1),a.addEventListener(Ge,"resize",a.Ov,!1)}function Ya(a){30wt&&(this.position=zt.h(-(y.scrollWidth-this.Aa)+It-this.Aa/b+ut,this.position.y))),a.vy&&this.allowVerticalScroll&&(otEt&&(this.position=zt.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/b+z))),Wt.free(zt),this.vd=!0,this.Ee=this.qr=!1,E=this.documentBounds,b=this.viewportBounds,ut=E.right,wt=b.right,z=E.bottom,Et=b.bottom,tt=E.x,gt=b.x,ot=E.y,E=b.y,mt>=rt&&tt>=gt&&ut<=wt&&(x.style.width="1px"),yt>=at&&ot>=E&&z<=Et&&(x.style.height="1px"))}},ce.prototype.computeBounds=function(a){return a===void 0&&(a=new ke),aa(this),Xc(this,a)};function Xc(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,E=a.Wa.s,b=E.length,z=0;zx&&(y=x),ya.maxScale&&(y=a.maxScale),y):y===Sc?(y=rt>ot?(tt-a.Db)/E:(z-a.Db)/b,y>x&&(y=x),ya.maxScale&&(y=a.maxScale),y):a.scale}ce.prototype.zoomToFit=function(){var a=this.sj;this.sj=Gd,this.scale=Uh(this,eu),a!==Gd&&(ql(this,!1),bg(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Ct=ce.prototype,Ct.BA=function(a,y){y===void 0&&(y=eu);var x=a.width,E=a.height;if(!(x===0||E===0||isNaN(x)&&isNaN(E))){var b=1;if(y===eu||y===Sc)if(isNaN(x))b=this.viewportBounds.height*this.scale/E;else if(isNaN(E))b=this.viewportBounds.width*this.scale/x;else{b=this.Aa;var z=this.ya;b=y===Sc?z/E>b/x?(z-(this.Be?this.Db:0))/E:(b-(this.gf?this.Db:0))/x:Math.min(z/E,b/x)}this.scale=b,this.position=new Wt(a.x,a.y)}},Ct.Jy=function(a,y){this.Va();var x=this.documentBounds,E=this.viewportBounds;this.position=new Wt(x.x+(a.x*x.width+a.offsetX)-(y.x*E.width-y.offsetX),x.y+(a.y*x.height+a.offsetY)-(y.y*E.height-y.offsetY))},Ct.zz=function(a){if(a instanceof ee){this.eq=a;var y=Wt.alloc();this.fq=this.op(a.ga(be,y)),Wt.free(y)}else this.eq=null,this.fq=lu};function bg(a,y,x,E,b,z){var tt=Wt.allocAt(a.pa.x,a.pa.y),ot=tt.x,rt=tt.y;if(a.eq!==null){var at=Wt.alloc();at=a.eq.ga(be,at),ot=at.x-a.fq.x/a.scale,rt=at.y-a.fq.y/a.scale,b=We,Wt.free(at)}(z||a.scrollMode===Gd)&&(b.sb()&&(x>y.width&&(ot=y.x+(b.x*y.width+b.offsetX)-(b.x*x-b.offsetX)),E>y.height&&(rt=y.y+(b.y*y.height+b.offsetY)-(b.y*E-b.offsetY))),b=a.rj,z=x-y.width,xy.left?ot=y.left:oty.top?rt=y.top:rty;y++){var x=a.De.iterator;if(x===null||a.De.count===0)break;a.De=new en,a.Nv(x,a.De)}a.nodes.each(function(E){E instanceof di&&E.U&65536&&(E.U=E.U^65536)})}}Ct.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof di||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof di&&x.isVisible()&&Id(this,x);for(a.reset();a.next();)x=a.value,x instanceof Je&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x));for(a.reset();a.next();)x=a.value,x instanceof Ji&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function Id(a,y){for(var x=Ii(),E=Ii(),b=y.memberParts;b.next();){var z=b.value;z.isVisible()&&(z instanceof di?(iu(z)||il(z)||wc(z))&&Id(a,z):z instanceof Je?z.fromNode===y||z.toNode===y?E.push(z):x.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=x.length,b=0;bte&&(It=ln.left,Yt=ln.right),zt.height>ge&&(Vt=ln.top,Xt=ln.bottom)):(It=ln.left,Yt=ln.right,Vt=ln.top,Xt=ln.bottom);var Cn=zt.width+It+Yt,vn=zt.height+Vt+Xt;ln=a.scale;var Xe=Cn>rt/ln,Oe=vn>at/ln;if(!(z||a.gf||a.Be||Xe||Oe))return!0;It=zt.x-It,rt=ut.x,Yt=zt.right+Yt,at=ut.right+tt,Vt=zt.y-Vt;var hi=ut.y;zt=zt.bottom+Xt,ut=ut.bottom+ot;var si="1px";if(Xt="1px",a.scrollMode===Gd&&(Xe||Oe)&&(Xe&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Xe=1,It+1at+1&&(Xe=Math.max((Yt-at)*ln+a.Aa,Xe)),te+tt+1ut+1&&(Xe=Math.max((zt-ut)*ln+a.ya,Xe)),ge+ot+1at+1&&(tt=Math.max((Yt-at)*ln+a.Aa,tt)),te+1ut+1&&(ot=Math.max((zt-ut)*ln+tt,ot)),ge+1at+1&&(y=a.position.x*ln)),a.tn)switch(a.bu){case"negative":y=-(wt.scrollWidth-y-wt.clientWidth);break;case"reverse":y=wt.scrollWidth-y-wt.clientWidth}return wt.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(ge+1ut+1&&(wt.scrollTop=a.position.y*ln)),rt=a.Aa,at=a.ya,wt.style.width=rt+(a.gf?a.Db:0)+"px",wt.style.height=at+(a.Be?a.Db:0)+"px",x!==rt||E!==at||a.animationManager.zb?(x=ke.allocAt(b,gt,mt,yt),a.onViewportBoundsChanged(x,a.viewportBounds,ln,z),ke.free(x),!1):!0}Ct=ce.prototype,Ct.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&oe("Cannot add part "+a.toString()+" to "+this.toString()+". It is already a part of "+y.toString()),y=this.Qj(a.layerName),y===null&&(y=this.Qj("")),y===null&&oe('Cannot add a Part when unable find a Layer named "'+a.layerName+'" and there is no default Layer'),a.layer!==y)){var x=y.oi(99999999,a,a.diagram===this);0<=x&&this.cb(Qe,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},Ct.oi=function(a){this.partManager.oi(a);var y=this;cg(a,function(x){Rd(y,x)}),(a instanceof Ji||a instanceof di&&a.placeholder!==null)&&a.v(),a.data!==null&&cg(a,function(x){ay(y.partManager,x)}),il(a)!==!0&&wc(a)!==!0||this.De.add(a),j1(a,!0,this),z1(a)?(a.actualBounds.w()&&this.N(pg(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(pg(a,a.actualBounds)),this.$b()},Ct.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&cg(a,function(x){ly(y.partManager,x,y)}),this.De.remove(a),z1(a)?(a.actualBounds.w()&&this.N(pg(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(pg(a,a.actualBounds)),this.$b()},Ct.remove=function(a){Fg(this,a,!0)};function Fg(a,y,x){var E=y.layer;E!==null&&E.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),x&&y.Lj(),x=E.pc(-1,y,!1),0<=x&&a.cb(rn,"parts",E,y,null,x,null),a=y.layerChanged,a!==null&&a(y,E,null))}Ct.Is=function(a,y){if(y===void 0&&(y=!1),dn(a))for(var x=a.length,E=0;EE&&this.Ya(),this},Ct.Cy=function(a,y){Bg(this,a,y),a.Xe(this);var x=this.Wa,E=x.indexOf(a);0<=E&&(x.remove(a),this.cc!==null&&this.cb(rn,"layers",this,a,null,E,null));var b=x.count,z;for(z=0;zE&&this.Ya(),this},Ct.kA=function(a){if(a.diagram!==this&&oe("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,x=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var E=y.value,b=E.layerName;b!==a.name?E.layerName=b:E.layerName=""}this.cc!==null&&this.cb(rn,"layers",this,a,null,x,null),this.N(),this.Ya()}}},Ct.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},Ct.Yw=function(a){return this.pf===null&&(this.pf=new on),this.pf.add(a),this.model.Pe(a),this},Ct.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Ct.Pe=function(a){return this.zg===null&&(this.zg=new on),this.zg.add(a),this},Ct.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Ct.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==ye&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,E=0;Egt.Pa.indexOf(yt)&>.oi(mt,yt,wt):(yt.isSelected=!1,yt.isHighlighted=!1,yt.Wb(),gt.pc(wt?mt:-1,yt,wt)))}else gt instanceof ce?typeof mt=="number"&&yt instanceof Hs&&(y?(yt.Xe(this),this.Wa.Gb(mt,yt)):this.Wa.mb(mt)):oe("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else E!==ye&&oe("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},ce.prototype.Ea=function(a){return this.undoManager.Ea(a)},ce.prototype.eb=function(a){return this.undoManager.eb(a)},ce.prototype.Kf=function(){return this.undoManager.Kf()},ce.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var E=!1;try{a(this),E=!0}finally{E?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},ce.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},ce.prototype.rp=function(){this.partManager.rp()};function ig(a,y,x){var E=a.animationManager;if(a.vb||a.ld)a.Ca=x,Yu(a),a.N(),a.Ee=!0,E.zb&&(gu(E)||E.ce.add(E.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,Yu(a);else{a.vb=!0;var b=a.viewportBounds.copy(),z=a.Aa,tt=a.ya,ot=a.zoomPoint.x,rt=a.zoomPoint.y,at=a.contentAlignment;isNaN(ot)&&(at.$c()?at.Hf(ga)?ot=0:at.Hf($r)&&(ot=z-1):ot=at.sb()?at.x*(z-1):z/2),isNaN(rt)&&(at.$c()?at.Hf(no)?rt=0:at.Hf(Mo)&&(rt=tt-1):rt=at.sb()?at.y*(tt-1):tt/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(x=a.scaleComputation(a,x)),xa.maxScale&&(x=a.maxScale),z=Wt.allocAt(a.pa.x+ot/y-ot/x,a.pa.y+rt/y-rt/x),a.position=z,Wt.free(z),a.Ca=x,Yu(a),a.vb=!1,a.onViewportBoundsChanged(b,a.viewportBounds,y,!1),ql(a,!1),E.zb&&(gu(E)||E.ce.add(E.H,"scale",y,a.Ca))}}ce.prototype.onViewportBoundsChanged=function(a,y,x,E){if(!a.D(y)){E===void 0&&(E=!1),E||(this.Ee=!0),this.vd=!0;var b=this.layout;b===null||!b.isViewportSized||this.autoScale!==Ua||a.width===y.width&&a.height===y.height||b.C(),b=this.currentTool,this.Vk===!0&&b instanceof Ve&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Ln(b,this)),this.vb||this.invalidateViewport(a,y),Eu(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.canvasSize.width=Math.round(a.width*x),this.fc.canvasSize.height=Math.round(a.height*x),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=E,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function Eu(a,y){var x=a.fe;if(x!==null&&x.visible){for(var E=un.alloc(),b=1,z=1,tt=x.O.s,ot=tt.length,rt=0;rtut||(pv(at.figure)?z=z*ut/_t.vx(z,ut):b=b*ut/_t.vx(b,ut))}if(tt=x.gridCellSize,E.h(z*tt.width,b*tt.height),y!==void 0)b=y.width,z=y.height,a=y.x,tt=y.y;else{if(y=ke.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){ke.free(y);return}b=y.width,z=y.height,a=y.x,tt=y.y,ke.free(y)}x.width=b+2*E.width,x.height=z+2*E.height,y=Wt.alloc(),_t.No(a,tt,0,0,E.width,E.height,y),y.offset(-E.width,-E.height),un.free(E),x.part.location=y,Wt.free(y)}}ce.prototype.clearSelection=function(a){a===void 0&&(a=!1);var y=this.selection;if(y.count!==0){a||this.R("ChangingSelection",y);for(var x=y.Fa(),E=x.length,b=0;b=E&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||Bs(z,"Layout")),a.xh=!1;for(var tt=a.ai.iterator;tt.next();)Rg(a,tt.value,y,E);b.isValidLayout||(!y||b.isRealtime||b.isRealtime===null||E===0?(b.doLayout(a),aa(a),b.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,E===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||E!==0&&E!==1||Oo(z),a.aa=x}}}function Rg(a,y,x,E){if(y!==null){for(var b=y.gl.iterator;b.next();)Rg(a,b.value,x,E);b=y.layout,b===null||b.isValidLayout||(!x||b.isRealtime||E===0?(y.rh=!y.location.w(),b.doLayout(y),y.C(32),Id(a,y),b.isValidLayout=!0):a.xh=!0)}}Ct.yz=function(){for(var a=new on,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function ap(a){function y(b){var z=b.toLowerCase(),tt=new on;x.add(b,tt),x.add(z,tt),E.add(b,b),E.add(z,b)}var x=new oi,E=new oi;y("InitialAnimationStarting"),y("AnimationStarting"),y("AnimationFinished"),y("BackgroundSingleClicked"),y("BackgroundDoubleClicked"),y("BackgroundContextClicked"),y("ClipboardChanged"),y("ClipboardPasted"),y("DocumentBoundsChanged"),y("ExternalObjectsDropped"),y("GainedFocus"),y("InitialLayoutCompleted"),y("LayoutCompleted"),y("LinkDrawn"),y("LinkRelinked"),y("LinkReshaped"),y("LostFocus"),y("Modified"),y("ObjectSingleClicked"),y("ObjectDoubleClicked"),y("ObjectContextClicked"),y("PartCreated"),y("PartResized"),y("PartRotated"),y("SelectionMoved"),y("SelectionCopied"),y("SelectionDeleting"),y("SelectionDeleted"),y("SelectionGrouped"),y("SelectionUngrouped"),y("ChangingSelection"),y("ChangedSelection"),y("SubGraphCollapsed"),y("SubGraphExpanded"),y("TextEdited"),y("TreeCollapsed"),y("TreeExpanded"),y("ViewportBoundsChanged"),y("InvalidateDraw"),a.iw=x,a.hw=E}function Ar(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function Xi(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;oe("Unknown DiagramEvent name: "+y)}Ct.Bj=function(a,y){return a=Xi(this,a),a!==null&&a.add(y),this},Ct.am=function(a,y){a=Xi(this,a),a!==null&&a.remove(y)},Ct.R=function(a,y,x){var E=Xi(this,a),b=new de;if(b.diagram=this,a=Ar(this,a),a!==null&&(b.name=a),y!==void 0&&(b.subject=y),x!==void 0&&(b.parameter=x),y=E.length,y===1)E.M(0)(b);else if(y!==0)for(E=E.Fa(),x=0;x=x.top&&0>=x.left&&0>=x.right&&0>=x.bottom)return y;var E=this.viewportBounds,b=this.scale;E=ke.allocAt(0,0,E.width*b,E.height*b);var z=Wt.allocAt(0,0);if(a.x>=E.x&&a.xE.x+E.width-x.right&&this.allowHorizontalScroll&&(tt=Math.max(this.scrollHorizontalLineChange,1),tt|=0,z.x+=tt,a.x>E.x+E.width-x.right/2&&(z.x+=tt),a.x>E.x+E.width-x.right/4&&(z.x+=4*tt));return a.y>=E.y&&a.yE.y+E.height-x.bottom&&this.allowVerticalScroll&&(tt=Math.max(this.scrollVerticalLineChange,1),tt|=0,z.y+=tt,a.y>E.y+E.height-x.bottom/2&&(z.y+=tt),a.y>E.y+E.height-x.bottom/4&&(z.y+=4*tt)),z.Xa(Js)||(y=new Wt(y.x+z.x/b,y.y+z.y/b)),ke.free(E),Wt.free(z),y},Ct=ce.prototype,Ct.Cs=function(){return null},Ct.av=function(){return null},Ct.bs=function(a,y){this.pj.add(a,y)},Ct.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof di&&(y.$p=null)})};function ku(a,y,x){function E(){var ut=+new Date;for(z=!0,tt.reset();tt.next();)if(!tt.value[0].al){z=!1;break}z||ut-at>rt?y(x,b,ot):Ge.requestAnimationFrame(E)}for(var b=x.callback,z=!0,tt=a.Og.iterator;tt.next();)if(!tt.value[0].al){z=!1;break}if(typeof b!="function"||z)return y(x,b,a);var ot=a,rt=x.callbackTimeout||300,at=+new Date;return Ge.requestAnimationFrame(function(){E()}),null}Ct.Wz=function(a){return Nr?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Ct.Jx=function(a){return a===void 0&&(a={}),ku(this,this.Xz,a)},Ct.Xz=function(a,y,x){var E=zd(x,a,"canvas",null);if(E===null)return null;x=E.Z.canvas;var b=null;if(x!==null)switch(b=a.returnType,b===void 0?b="string":b=b.toLowerCase(),b){case ag+"data":b=E.getImageData(0,0,x.width,x.height);break;case ag:E=(a.document||document).createElement("img"),E.src=x.toDataURL(a.type,a.details),b=E;break;case"blob":return typeof y!="function"&&oe('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof x.toBlob=="function"?(x.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:b=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(b),null):b};function zd(a,y,x,E){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&oe("properties argument must be an Object.");var b=y.size||null,z=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(z="NaN");var tt=y.maxSize;y.maxSize===void 0&&(tt=x==="SVG"?new un(1/0,1/0):new un(2e3,2e3));var ot=y.position||null,rt=y.parts||null,at=y.padding===void 0?1:y.padding,ut=y.background||null,gt=y.omitTemporary;gt===void 0&&(gt=!0);var mt=y.document||document,yt=y.elementFinished||null,wt=y.showTemporary;wt===void 0&&(wt=!gt),y=y.showGrid,y===void 0&&(y=wt),b!==null&&isNaN(b.width)&&isNaN(b.height)&&(b=null),typeof at=="number"?at=new gi(at):at instanceof gi||oe("MakeImage padding must be a Margin or a number."),at.left=Math.max(at.left,0),at.right=Math.max(at.right,0),at.top=Math.max(at.top,0),at.bottom=Math.max(at.bottom,0),a.ib.Vc(!0),gt=new bu(null,mt,void 0,!0);var Et=gt.context;if(!(b||z||rt||ot))return gt.width=a.Aa+Math.ceil(at.left+at.right),gt.height=a.ya+Math.ceil(at.top+at.bottom),x==="SVG"?E===null?null:(E.resize(gt.width,gt.height,gt.width,gt.height),E.ownerDocument=mt,E.hs=yt,$c(a,E.context,at,new un(gt.width,gt.height),a.Ca,a.pa,rt,ut,wt,y),E.context):(a.Xm=!1,$c(a,Et,at,new un(gt.width,gt.height),a.Ca,a.pa,rt,ut,wt,y),a.Xm=!0,gt.context);var zt=a.Pp,It=a.documentBounds.copy();if(It.Fv(a.yb),wt)for(var Yt=a.Wa.s,Vt=Yt.length,Xt=0;Xtzt?(z=zt,b=It.width,It=It.height):(b=tt.width,It=tt.height)):(b=It.width*z,It=It.height*z):(z=zt,b=It.width,It=It.height),at!==null?(b+=ot,It+=Vt):at=new gi(0),tt!==null&&(zt=tt.width,tt=tt.height,isNaN(zt)&&(zt=2e3),isNaN(tt)&&(tt=2e3),isFinite(zt)&&(b=Math.min(b,zt)),isFinite(tt)&&(It=Math.min(It,tt))),gt.width=Math.ceil(b),gt.height=Math.ceil(It),x==="SVG"?E===null?null:(E.resize(gt.width,gt.height,gt.width,gt.height),E.ownerDocument=mt,E.hs=yt,$c(a,E.context,at,new un(Math.ceil(b),Math.ceil(It)),z,Yt,rt,ut,wt,y),E.context):(a.Xm=!1,$c(a,Et,at,new un(Math.ceil(b),Math.ceil(It)),z,Yt,rt,ut,wt,y),a.Xm=!0,gt.context)}ve.Object.defineProperties(ce.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof ft||(a===""&&(a="default"),a=a.toLowerCase(),a!==this.nl&&(this.nl=a,a==="default"||a==="canvas"?(a=this.pj.get("svg"),a!==null&&a.Oa.remove(),this.ta&&(this.ib=this.ta.context)):a==="svg"?(this.pj.contains("svg")?a=this.pj.get("svg"):(a=new Ah(this,Ge.document),this.bs("svg",a)),this.div!==null&&this.div.appendChild(a.Oa),this.ib=a.context,this.ta&&(this.ta.context.setTransform(this.Mb,0,0,this.Mb,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya))):a!=="debug"||this.pj.contains("SVG")||(a=new Ah(this,Ge.document),this.bs("SVG",a),a.Oa.style.backgroundColor="whitesmoke",this.div!==null&&this.div.after(a.Oa)),this.hk()))}},div:{get:function(){return this.Ka},set:function(a){if(this.Ka!==a){var y=this.Ka;y!==null?(y.H=void 0,y.goDiagram=void 0,y.go=void 0,y.innerHTML="",this.ta!==null&&(y=this.ta.Oa,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.ta.mx()),this.ol&&(this.ol.disconnect(),this.ol=null),y=this.toolManager,y!==null&&(y.mouseDownTools.each(function(x){x.cancelWaitAfter()}),y.mouseMoveTools.each(function(x){x.cancelWaitAfter()}),y.mouseUpTools.each(function(x){x.cancelWaitAfter()})),y.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(Ge,"resize",this.Ov,!1),this.removeEventListener(Ge,"wheel",this.$j,!0),ah===this&&(ah=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),Yh(this,a),this.hk())}}},$w:{get:function(){return this.Sq}},pi:{get:function(){return this.hf}},draggedLink:{get:function(){return this.nt},set:function(a){this.nt!==a&&(this.nt=a,a!==null&&(this.Vt=a.fromPort,this.Wt=a.toPort))}},Mx:{get:function(){return this.Vt},set:function(a){this.Vt=a}},Nx:{get:function(){return this.Wt},set:function(a){this.Wt=a}},animationManager:{get:function(){return this.Yd}},undoManager:{get:function(){return this.cc.undoManager}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a,this.cc.skipsUndoManager=a}},delaysLayout:{get:function(){return this.lt},set:function(a){this.lt=a}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1a&&li(a,">= 0",ce,"scrollHorizontalLineChange"),this.iu=a,this.g("scrollHorizontalLineChange",y,a))}},scrollVerticalLineChange:{get:function(){return this.mu},set:function(a){var y=this.mu;y!==a&&(0>a&&li(a,">= 0",ce,"scrollVerticalLineChange"),this.mu=a,this.g("scrollVerticalLineChange",y,a))}},lastInput:{get:function(){return this.cj},set:function(a){this.cj=a}},previousInput:{get:function(){return this.Qg},set:function(a){this.Qg=a}},firstInput:{get:function(){return this.bq},set:function(a){this.bq=a}},currentCursor:{get:function(){return this.it},set:function(a){if(a===""&&(a=this.Op),this.it!==a){var y=this.ta,x=this.Ka;if(y!==null&&x!==null){this.it=a;var E=y.style.cursor;y.style.cursor=a,x.style.cursor=a,y.style.cursor===E&&(y.style.cursor="-webkit-"+a,x.style.cursor="-webkit-"+a,y.style.cursor===E&&(y.style.cursor="-moz-"+a,x.style.cursor="-moz-"+a,y.style.cursor===E&&(y.style.cursor=a,x.style.cursor=a)))}}}},defaultCursor:{get:function(){return this.Op},set:function(a){a===""&&(a="auto");var y=this.Op;y!==a&&(this.Op=a,this.g("defaultCursor",y,a))}},click:{get:function(){return this.zh},set:function(a){var y=this.zh;y!==a&&(this.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.Fh},set:function(a){var y=this.Fh;y!==a&&(this.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.Bh},set:function(a){var y=this.Bh;y!==a&&(this.Bh=a,this.g("contextClick",y,a))}},mouseOver:{get:function(){return this.Qh},set:function(a){var y=this.Qh;y!==a&&(this.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.Oh},set:function(a){var y=this.Oh;y!==a&&(this.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.Nh},set:function(a){var y=this.Nh;y!==a&&(this.Nh=a,this.g("mouseHold",y,a))}},mouseDragOver:{get:function(){return this.Qt},set:function(a){var y=this.Qt;y!==a&&(this.Qt=a,this.g("mouseDragOver",y,a))}},mouseDrop:{get:function(){return this.Lh},set:function(a){var y=this.Lh;y!==a&&(this.Lh=a,this.g("mouseDrop",y,a))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(a){var y=this.xt;y!==a&&(this.xt=a,this.g("handlesDragDropForTopLevelParts",y,a))}},mouseEnter:{get:function(){return this.Mh},set:function(a){var y=this.Mh;y!==a&&(this.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.Ph},set:function(a){var y=this.Ph;y!==a&&(this.Ph=a,this.g("mouseLeave",y,a))}},toolTip:{get:function(){return this.$h},set:function(a){var y=this.$h;y!==a&&(this.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.Ch},set:function(a){var y=this.Ch;y!==a&&(this.Ch=a,this.g("contextMenu",y,a))}},commandHandler:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a,a.Xe(this))}},toolManager:{get:function(){return this.te},set:function(a){this.te!==a&&(this.te=a,a.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(a){var y=this.ob;y!==a&&(this.ob=a,a.diagram=this,this.currentTool===y&&(this.currentTool=a))}},currentTool:{get:function(){return this.hb},set:function(a){var y=this.hb;y&&(y.isActive&&y.doDeactivate(),y.cancelWaitAfter(),y.doStop()),a===null&&(a=this.defaultTool),a!==null&&(this.hb=a,a.diagram=this,a.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(a){var y=this.Nt;if(y!==a)if(0<=a&&!isNaN(a)){if(this.Nt=a,this.g("maxSelectionCount",y,a),!this.undoManager.isUndoingRedoing&&(a=this.selection.count-a,0= 0",ce,"maxSelectionCount")}},nodeSelectionAdornmentTemplate:{get:function(){return this.St},set:function(a){var y=this.St;y!==a&&(this.St=a,this.g("nodeSelectionAdornmentTemplate",y,a))}},groupSelectionAdornmentTemplate:{get:function(){return this.wt},set:function(a){var y=this.wt;y!==a&&(this.wt=a,this.g("groupSelectionAdornmentTemplate",y,a))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kt},set:function(a){var y=this.Kt;y!==a&&(this.Kt=a,this.g("linkSelectionAdornmentTemplate",y,a))}},highlighteds:{get:function(){return this.nw}},isModified:{get:function(){var a=this.undoManager;return a.isEnabled?a.currentTransaction!==null?!0:this.rn&&this.Ce!==a.historyIndex:this.rn},set:function(a){if(this.rn!==a){this.rn=a;var y=this.undoManager;!a&&y.isEnabled&&(this.Ce=y.historyIndex),a||Sf(this)}}},model:{get:function(){return this.cc},set:function(a){var y=this.cc;if(y!==a){this.currentTool.doCancel(),y&&y.undoManager!==a.undoManager&&y.undoManager.isInTransaction&&oe("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=Ag(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var E=this.vb;this.vb=!0,Bs(this.animationManager,"Model"),y&&(this.pf!==null&&this.pf.each(function(z){return y.ik(z)}),y.ik(this.Oc)),this.cc=a,this.partManager=Ig(this.cc.type);for(var b=0;bthis.scale&&(this.scale=a)):li(a,"> 0",ce,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(a){var y=this.Mt;y!==a&&(0 0",ce,"maxScale"))}},zoomPoint:{get:function(){return this.zu},set:function(a){this.zu.D(a)||(this.zu=a=a.J())}},contentAlignment:{get:function(){return this.zk},set:function(a){var y=this.zk;y.D(a)||(this.zk=a=a.J(),this.g("contentAlignment",y,a),ql(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(a){var y=this.pq;y.D(a)||(this.pq=a=a.J(),this.g("initialContentAlignment",y,a))}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new gi(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.Ya(),this.g("padding",y,a))}},partManager:{get:function(){return this.Pc},set:function(a){var y=this.Pc;y!==a&&(a.diagram!==null&&oe("Cannot share PartManagers between Diagrams: "+a.toString()),y&&y.Xe(null),this.Pc=a,a.Xe(this))}},nodes:{get:function(){return this.partManager.nodes.iterator}},links:{get:function(){return this.partManager.links.iterator}},parts:{get:function(){return this.partManager.parts.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;y!==a&&(this.Sc=a,a.diagram=this,a.group=null,this.xh=!0,this.g("layout",y,a),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(a){var y=this.Ht;if(y!==a&&(this.Ht=a,this.g("isTreePathToChildren",y,a),!this.undoManager.isUndoingRedoing))for(a=this.nodes;a.next();)Lp(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==Hd&&a!==vs&&a!==xf&&oe("Unknown Diagram.treeCollapsePolicy: "+a),this.uu=a,this.g("treeCollapsePolicy",y,a))}},Ue:{get:function(){return this.pw},set:function(a){this.pw=a}},avoidanceCellSize:{get:function(){return this.aw},set:function(a){this.Xh=null,this.aw=new un(Math.max(1,a.width),Math.max(1,a.height))}},avoidanceLimit:{get:function(){return this.bw},set:function(a){this.bw=Math.max(1,a)}},autoScrollInterval:{get:function(){return this.vp},set:function(a){var y=this.vp;y!==a&&(this.vp=a,this.g("autoScrollInterval",y,a))}},autoScrollRegion:{get:function(){return this.xp},set:function(a){typeof a=="number"&&(a=new gi(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),ve.Object.defineProperties(ce,{licenseKey:{get:function(){return gp.jc()},set:function(a){gp.add(a.replace(/\s/g,""))}},version:{get:function(){return sg}}}),ce.prototype.makeImageData=ce.prototype.Jx,ce.prototype.makeImage=ce.prototype.Wz,ce.prototype.cacheGroupExternalLinks=ce.prototype.Fu,ce.prototype.addRenderer=ce.prototype.bs,ce.prototype.makeSVG=ce.prototype.av,ce.prototype.makeSvg=ce.prototype.Cs,ce.prototype.stopAutoScroll=ce.prototype.ug,ce.prototype.doAutoScroll=ce.prototype.gs,ce.prototype.isUnoccupied=ce.prototype.Yj,ce.prototype.raiseDiagramEvent=ce.prototype.R,ce.prototype.removeDiagramListener=ce.prototype.am,ce.prototype.addDiagramListener=ce.prototype.Bj,ce.prototype.findTreeRoots=ce.prototype.yz,ce.prototype.layoutDiagram=ce.prototype.Uz,ce.prototype.findTopLevelGroups=ce.prototype.qz,ce.prototype.findTopLevelNodesAndLinks=ce.prototype.rz,ce.prototype.ensureBounds=ce.prototype.Va,ce.prototype.findLinksByExample=ce.prototype.ls,ce.prototype.findNodesByExample=ce.prototype.ms,ce.prototype.findLinkForData=ce.prototype.Kc,ce.prototype.findNodeForData=ce.prototype.ii,ce.prototype.findPartForData=ce.prototype.Lc,ce.prototype.findLinkForKey=ce.prototype.findLinkForKey,ce.prototype.findNodeForKey=ce.prototype.Vb,ce.prototype.findPartForKey=ce.prototype.findPartForKey,ce.prototype.rebuildParts=ce.prototype.Wd,ce.prototype.transformViewToDoc=ce.prototype.Ps,ce.prototype.transformRectDocToView=ce.prototype.zA,ce.prototype.transformDocToView=ce.prototype.op,ce.prototype.centerRect=ce.prototype.es,ce.prototype.scrollToRect=ce.prototype.tv,ce.prototype.scroll=ce.prototype.scroll,ce.prototype.highlightCollection=ce.prototype.Jz,ce.prototype.highlight=ce.prototype.Iz,ce.prototype.selectCollection=ce.prototype.rA,ce.prototype.select=ce.prototype.select,ce.prototype.updateAllRelationshipsFromData=ce.prototype.rp,ce.prototype.updateAllTargetBindings=ce.prototype.updateAllTargetBindings,ce.prototype.commit=ce.prototype.commit,ce.prototype.rollbackTransaction=ce.prototype.Kf,ce.prototype.commitTransaction=ce.prototype.eb,ce.prototype.startTransaction=ce.prototype.Ea,ce.prototype.raiseChanged=ce.prototype.g,ce.prototype.raiseChangedEvent=ce.prototype.cb,ce.prototype.removeChangedListener=ce.prototype.ik,ce.prototype.addChangedListener=ce.prototype.Pe,ce.prototype.removeModelChangedListener=ce.prototype.mA,ce.prototype.addModelChangedListener=ce.prototype.Yw,ce.prototype.findLayer=ce.prototype.Qj,ce.prototype.removeLayer=ce.prototype.kA,ce.prototype.addLayerAfter=ce.prototype.Cy,ce.prototype.addLayerBefore=ce.prototype.Ww,ce.prototype.addLayer=ce.prototype.Al,ce.prototype.moveParts=ce.prototype.moveParts,ce.prototype.copyParts=ce.prototype.Kj,ce.prototype.removeParts=ce.prototype.Is,ce.prototype.remove=ce.prototype.remove,ce.prototype.add=ce.prototype.add,ce.prototype.clearDelayedGeometries=ce.prototype.bx,ce.prototype.setProperties=ce.prototype.nm,ce.prototype.attach=ce.prototype.Du,ce.prototype.set=ce.prototype.set,ce.prototype.resetInputOptions=ce.prototype.Sx,ce.prototype.setInputOption=ce.prototype.sA,ce.prototype.getInputOption=ce.prototype.Ql,ce.prototype.resetRenderingHints=ce.prototype.Tx,ce.prototype.setRenderingHint=ce.prototype.Xx,ce.prototype.getRenderingHint=ce.prototype.Gf,ce.prototype.maybeUpdate=ce.prototype.bd,ce.prototype.requestUpdate=ce.prototype.$b,ce.prototype.delayInitialization=ce.prototype.Xy,ce.prototype.isUpdateRequested=ce.prototype.Pz,ce.prototype.invalidateDocumentBounds=ce.prototype.Ya,ce.prototype.findObjectsNear=ce.prototype.og,ce.prototype.findPartsNear=ce.prototype.mz,ce.prototype.findObjectsIn=ce.prototype.Cf,ce.prototype.findPartsIn=ce.prototype.ux,ce.prototype.findObjectsAt=ce.prototype.ji,ce.prototype.findPartsAt=ce.prototype.lz,ce.prototype.findObjectAt=ce.prototype.ic,ce.prototype.findPartAt=ce.prototype.Ol,ce.prototype.focusObject=ce.prototype.zz,ce.prototype.alignDocument=ce.prototype.Jy,ce.prototype.zoomToRect=ce.prototype.BA,ce.prototype.zoomToFit=ce.prototype.zoomToFit,ce.prototype.diagramScroll=ce.prototype.kx,ce.prototype.focus=ce.prototype.focus;var dh=new oi,Au=null,Nr=Ge.document!==void 0,rg=null,yc="",Ua=new Ye(ce,"None",0),eu=new Ye(ce,"Uniform",1),Sc=new Ye(ce,"UniformToFill",2),zg=new Ye(ce,"CycleAll",10),lp=new Ye(ce,"CycleNotDirected",11),up=new Ye(ce,"CycleNotDirectedFast",12),hp=new Ye(ce,"CycleNotUndirected",13),dp=new Ye(ce,"CycleDestinationTree",14),cp=new Ye(ce,"CycleSourceTree",15),Gd=new Ye(ce,"DocumentScroll",1),Gg=new Ye(ce,"InfiniteScroll",2),Hd=new Ye(ce,"TreeParentCollapsed",21),vs=new Ye(ce,"AllParentsCollapsed",22),xf=new Ye(ce,"AnyParentsCollapsed",23),gp=new on,sg="2.3.10",ag="image",Hg=null,dm=!1;function Ba(){if(Nr){var a=Ge.document.createElement("canvas"),y=a.getContext("2d"),x=$e("7ca11abfd022028846");y[x]=$e("398c3597c01238");for(var E=["5da73c80a36455d7038e4972187c3cae51fd22",Tn.Dx+"4ae6247590da4bb21c324ba3a84e385776",fi.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",_t.za],b=1;5>b;b++)y[$e("7ca11abfd7330390")]($e(E[b-1]),10,15*b);for(y[x]=$e("39f046ebb36e4b"),x=1;5>x;x++)y[$e("7ca11abfd7330390")]($e(E[x-1]),10,15*x);(E.length!==4||E[0][0]!=="5"||E[3][0]!=="7")&&(fi.prototype.Cd=fi.prototype.Eu),Hg=a}}ce.className="Diagram",ce.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Ge.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof ce?y.H:null},ce.inherit=function(a,y){function x(){}if(Object.getPrototypeOf(a).prototype)throw Error(`Used go.Diagram.inherit defining already defined class -`+a);x.prototype=y.prototype,a.prototype=new x,a.prototype.constructor=a},ce.useDOM=function(a){Nr=a?Ge.document!==void 0:!1},ce.isUsingDOM=function(){return Nr},ce.None=Ua,ce.Uniform=eu,ce.UniformToFill=Sc,ce.CycleAll=zg,ce.CycleNotDirected=lp,ce.CycleNotDirectedFast=up,ce.CycleNotUndirected=hp,ce.CycleDestinationTree=dp,ce.CycleSourceTree=cp,ce.DocumentScroll=Gd,ce.InfiniteScroll=Gg,ce.TreeParentCollapsed=Hd,ce.AllParentsCollapsed=vs,ce.AnyParentsCollapsed=xf;function cm(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function lg(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)t:{y="f";var x=Ge[$e("76a715b2f73f148a")][$e("72ba13b5")]||"";if(a.Rc=!0,Nr){var E=ce[$e("76a115b6ed251eaf4692")];if(E)for(var b=gp.iterator;b.next()&&(E=b.value,E=$e(E).split($e("39e9")),!(6>E.length));){var z=$e(E[1]).split(".");if(E[4]!=="7da71ca0")break;var tt=$e(Tn[$e("6cae19")]).split(".");if(z[0]>tt[0]||z[0]===tt[0]&&z[1]>=tt[1]){var ot=Ge[$e("74a900bae4370f8b51")][$e("6fbb13a1c2311e8a57")].toLowerCase();if(tt=ot[$e("73a612b6fb191d")]($e("3aad1ab6e022098b4dc4")),z=$e(E[2]),-1tt&&z!==$e("7da71ca0ad381e90")&&(tt=y[$e("73a612b6fb191d")]($e("76a715b2ef3e149757"))),0>tt&&(tt=y[$e("73a612b6fb191d")]($e("76a715b2ef3e149757"))),0>tt&&(tt=y[$e("73a612b6fb191d")]($e("2bfa41fdb3784bca12"))),0>tt&&(tt=x[$e("73a612b6fb191d")]($e("7baa19a6f76c1988428554"))),a.Rc=!(0<=tt&&ttot),!a.Rc)))break;if(z[0]==="#"){tt=Ge.document.createElement("div");for(var rt=E[0].replace(/[A-Za-z]/g,"");4>rt.length;)rt+="9";if(ot=rt,rt=rt.substr(rt.length-4),E="",E+=["gsh","gsf"][parseInt(rt.substr(0,1),10)%2],E+=["Header","Background","Display","Feedback"][parseInt(rt.substr(0,1),10)%4],tt[$e("79a417a0f0181a8946")]=E,Ge.document[$e("78a712aa")]){Ge.document[$e("78a712aa")][$e("7bb806b6ed32388c4a875b")](tt),rt=Ge.getComputedStyle(tt).getPropertyValue($e("78a704b7e62456904c9b12701b6532a8"));var at=Ge.getComputedStyle(tt).getPropertyValue($e("75b817b0ea2202"));if(Ge.document[$e("78a712aa")][$e("68ad1bbcf533388c4a875b")](tt),rt){if(tt=Ge[$e("77a902b0eb1b1e804a8a")],at==="0."+parseInt(ot,10)%100||rt.indexOf(parseInt(z[1]+z[2],16))!==-1&&rt.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(tt&&tt($e("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(E="."+E,z=0;zE.updateDelay?E.N():E.o||(E.o=!0,setTimeout(function(){return E.redraw()},E.updateDelay))},x.Of=function(){E.observed!==null&&Dt(E)},x.autoScale=eu,x.vb=!1,y&&Object.assign(x,y),x}pe(ft,ce),ft.prototype.computePixelRatio=function(){return 1},ft.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var a=this.ta,y=this.ib;if(a!==null&&y!==null){if(md(this),this.ql===null){var x=new bu(null);x.width=a.width,x.height=a.height,this.ql=x}try{this.ta=this.ql,this.ib=this.ta.context,this.ib.Vc(!0),this.ib.setTransform(1,0,0,1,0,0),this.ib.clearRect(0,0,this.ta.width,this.ta.height),Pt(this)}finally{this.ta=a,this.ib=y}}}ce.prototype.redraw.call(this)},ft.prototype.gc=function(){if(this.Ka===null&&oe("No div specified"),this.ta===null&&oe("No canvas specified"),!(this.ta instanceof Ah)&&(Iv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){md(this);var y=this.ta;a=this.ib,a.Vc(!0),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,y.width,y.height),1>this.updateDelay?Pt(this):this.ql!==null&&(a.drawImage(this.ql.Oa,0,0),y=this.Ab,y.reset(),this.scale!==1&&y.scale(this.scale),this.position.x===0&&this.position.y===0||y.translate(-this.position.x,-this.position.y),a.scale(this.Mb,this.Mb),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.yc()),y=this.Wa.s;for(var x=y.length,E=0;Ea&&(a=0),this.ia!==a&&(this.ia=a)}}}),ft.className="Overview";function Gt(){Un.call(this),this.j=null}pe(Gt,Un),Gt.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||!a.allowMove||!a.allowSelect)return!1;var y=a.observed;if(y===null)return!1;var x=a.lastInput;return!x.left||a.currentTool!==this&&(!this.isBeyondDragSize()||x.isTouchEvent&&x.timestamp-a.firstInput.timestampy.maxScale||(y.scale=a))},Rt.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==Ua?!1:(a=y.scale*a,ay.maxScale?!1:y.allowZoom)},Rt.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===Ua&&(a=y.scale*a,ay.maxScale||(y.scale=a))},Rt.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==Ua?!1:(a=y.scale*a,ay.maxScale?!1:y.allowZoom)},Rt.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;ay.maxScale||(y.scale=a)},Rt.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return ay.maxScale?!1:y.allowZoom},Rt.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,E=a.scale;Bs(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&E===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=xa):(this.Jt=E,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),Oo(y)},Rt.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Rt.prototype.scrollToPart=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.Va(),a===null){try{this.cg!==null&&(this.cg.next()?a=this.cg.value:this.cg=null)}catch(rt){this.cg=null}a===null&&(0a&&(a+=360)),a},Ct.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Ct.qs=function(a,y){return y===void 0&&(y=new Wt),y.assign(a),this.oe.Cd(y),y},Ct.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Ct.Sj=function(a,y,x,E,b){var z=this.transform,tt=1/(z.m11*z.m22-z.m12*z.m21),ot=z.m22*tt,rt=-z.m12*tt,at=-z.m21*tt,ut=z.m11*tt,gt=tt*(z.m21*z.dy-z.m22*z.dx),mt=tt*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,_t.Ff(z.left,z.top,z.right,z.bottom,a,y,x,E,b)):(tt=a*ot+y*at+gt,a=a*rt+y*ut+mt,y=x*ot+E*at+gt,x=x*rt+E*ut+mt,b.h(0,0),E=this.naturalBounds,x=_t.Ff(0,0,E.width,E.height,tt,a,y,x,b),b.transform(z),x)},ee.prototype.measure=function(a,y,x,E){if(iu(this)!==!1){var b=this.Kg,z=b.right+b.left;b=b.top+b.bottom,a=Math.max(a-z,0),y=Math.max(y-b,0),x=Math.max((x||0)-z,0),E=Math.max((E||0)-b,0),z=this.angle,b=this.desiredSize;var tt=this.kq();z===90||z===270?(a=isFinite(b.height)?b.height+tt:a,y=isFinite(b.width)?b.width+tt:y):(a=isFinite(b.width)?b.width+tt:a,y=isFinite(b.height)?b.height+tt:y),b=x||0,tt=E||0;var ot=this instanceof Ke;switch(Sl(this,!0)){case ze:tt=b=0,ot&&(y=a=1/0);break;case Ze:isFinite(a)&&a>x&&(b=a),isFinite(y)&&y>E&&(tt=y);break;case In:isFinite(a)&&a>x&&(b=a),tt=0,ot&&(y=1/0);break;case $n:isFinite(y)&&y>E&&(tt=y),b=0,ot&&(a=1/0)}ot=this.maxSize;var rt=this.minSize;b>ot.width&&rt.widthot.height&&rt.heighta.height||this.Cb>a.width))&&(x=!0)),this.l=x?this.l|256:this.l&-257,this.Ib.w()||oe("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Kh(this,!1),ke.free(z)},Ct=ee.prototype,Ct.eh=function(){};function Va(a,y,x,E,b){if(a.Ib.h(y,x,E,b),!a.desiredSize.w()){var z=a.uc;x=a.Kg,y=x.right+x.left;var tt=x.top+x.bottom;switch(x=z.width+y,z=z.height+tt,E+=y,b+=tt,y=Sl(a,!0),x===E&&z===b&&(y=ze),y){case ze:(x>E||z>b)&&(ys(a,!0),a.measure(x>E?E:x,z>b?b:z,0,0));break;case Ze:ys(a,!0),a.measure(E,b,0,0);break;case In:ys(a,!0),a.measure(E,z,0,0);break;case $n:ys(a,!0),a.measure(x,b,0,0)}}}Ct.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||Rv(x,!0),this.N(),th(a,y)||(x.oh(),this.Pn(x)))},Ct.Pn=function(a){this.portId!==null&&(Rv(a,!0),a instanceof hn&&Y1(a,this))},Ct.gc=function(a,y){if(!pu(this,a,y)&&this.visible){var x=this.opacity;if(x!==0){var E=1;x!==1&&(E=a.globalAlpha,a.globalAlpha=E*x);var b="";this.filter!==""&&(b=a.filter,a.filter=this.filter);var z=this instanceof Ke&&Ud(this),tt=this.Ib;if(z){var ot=this.Ib,rt=this.dc,at=this.areaBackground,ut=this.Ma;at===null&&ut===null||a.yc(),at!==null&&(Ir(this,a,at,!0,!0,rt,ot),at instanceof fo&&at.type===yu?(a.beginPath(),a.rect(ot.x,ot.y,ot.width,ot.height),a.ng(at)):a.fillRect(ot.x,ot.y,ot.width,ot.height)),ut!==null&&(Ir(this,a,ut,!0,!1,rt,ot),ut instanceof fo&&ut.type===yu?(a.beginPath(),a.rect(ot.x,ot.y,ot.width,ot.height),a.ng(ut)):a.fillRect(ot.x,ot.y,ot.width,ot.height)),this.hh(a,y)}if(!z&&(z||tt.width!==0&&tt.height!==0&&!isNaN(tt.x)&&!isNaN(tt.y))){z=this.transform,ot=this.panel,this.l&4096&&la(this),at=this.part,rt=!1;var gt=0;at&&y.Gf("drawShadows")&&(rt=at.isShadowed)&&(ut=at.shadowOffset,gt=Math.max(ut.y,ut.x)*y.scale*y.Mb),ut=this.Dd();var mt;if(!(mt=y.$i||!ut)){var yt=this.naturalBounds;mt=this.wh;var wt=mt.m11,Et=mt.m21,zt=mt.dx,It=mt.m12,Yt=mt.m22,Vt=mt.dy,Xt,te=Xt=0;mt=Xt*wt+te*Et+zt;var ge=Xt*It+te*Yt+Vt;Xt=yt.width+gt,te=0;var ln=Xt*wt+te*Et+zt;Xt=Xt*It+te*Yt+Vt,te=Math.min(mt,ln);var Cn=Math.min(ge,Xt),vn=Math.max(mt+0,ln)-te,Xe=Math.max(ge+0,Xt)-Cn;mt=te,ge=Cn,Xt=yt.width+gt,te=yt.height+gt,ln=Xt*wt+te*Et+zt,Xt=Xt*It+te*Yt+Vt,te=Math.min(mt,ln),Cn=Math.min(ge,Xt),vn=Math.max(mt+vn,ln)-te,Xe=Math.max(ge+Xe,Xt)-Cn,mt=te,ge=Cn,Xt=0,te=yt.height+gt,ln=Xt*wt+te*Et+zt,Xt=Xt*It+te*Yt+Vt,te=Math.min(mt,ln),Cn=Math.min(ge,Xt),vn=Math.max(mt+vn,ln)-te,Xe=Math.max(ge+Xe,Xt)-Cn,mt=te,ge=Cn,gt=y.viewportBounds,yt=gt.x,wt=gt.y,mt=!(mt>gt.width+yt||yt>vn+mt||ge>gt.height+wt||wt>Xe+ge)}if(mt){if(mt=(this.l&256)!==0,a.clipInsteadOfFill&&(mt=!1),this instanceof Go&&(a.font=this.font),mt){if(ge=ot.se()?ot.naturalBounds:ot.actualBounds,vn=Math.max(tt.x,ge.x),Xe=Math.max(tt.y,ge.y),gt=Math.min(tt.right,ge.right)-vn,yt=Math.min(tt.bottom,ge.bottom)-Xe,wt=this.tb,wt!==null&&(vn=wt.x,Xe=wt.y,gt=wt.width,yt=wt.height),vn>tt.width+tt.x||tt.x>ge.width+ge.x){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}a.save(),a.beginPath(),a.rect(vn,Xe,gt,yt),a.clip()}if(ut){if(!at.isVisible()){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}rt&&(ge=at.shadowOffset,a.Ev(ge.x*y.scale*this.scale*y.Mb,ge.y*y.scale*this.scale*y.Mb,at.shadowBlur),yd(a),a.shadowColor=at.shadowColor)}rt&&this.shadowVisible===!0?yd(a):rt&&this.shadowVisible===!1&&Qh(a),at=this.naturalBounds,this.areaBackground!==null&&(a.yc(),nu(this,a,at,tt)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),rt&&ea(this,ot)&&this.shadowVisible===null&&Qh(a),this.Ma!==null&&(a.yc(),Ll(this,a,at,tt)),rt&&(this.Ma!==null||this.areaBackground!==null||ea(this,ot))?(Uu(this,!0),this.shadowVisible===null&&Qh(a)):Uu(this,!1),this.hh(a,y),rt&&this.l&512&&yd(a),ut&&rt&&Qh(a),mt&&(a.restore(),a.Vc(this instanceof Ke)),z.ws()||(y=1/(z.m11*z.m22-z.m12*z.m21),a.transform(z.m22*y,-z.m12*y,-z.m21*y,z.m11*y,y*(z.m21*z.dy-z.m22*z.dx),y*(z.m12*z.dx-z.m11*z.dy)))}}x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b)}}};function ea(a,y){return y===null?!1:(Ud(y)&&(y=y.panel),(y.l&512)!==0||(y.type===Ke.Auto||y.type===Ke.Spot)&&y.Pb()!==a)}Ct.Dv=function(){};function nu(a,y,x,E){Ir(a,y,a.areaBackground,!0,!0,x,E),a.areaBackground instanceof fo&&a.areaBackground.type===yu?(y.beginPath(),y.rect(E.x,E.y,E.width,E.height),y.ng(a.areaBackground)):y.fillRect(E.x,E.y,E.width,E.height)}function Ll(a,y,x,E){var b=a.kq(),z=x.x,tt=x.y,ot=x.width+b,rt=x.height+b;Ir(a,y,a.Ma,!0,!1,x,E),a.Ma instanceof fo&&a.Ma.type===yu?(y.beginPath(),y.rect(z-b/2,tt-b/2,ot,rt),y.ng(a.Ma)):y.fillRect(z-b/2,tt-b/2,ot,rt)}function Ia(a,y,x){for(var E=y.O.s,b=E.length,z=-1,tt=0;ttb)&&oe("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+b),a.isRow=!0,a.index=b):y.column!==void 0&&(b=y.column,(b==null||b===1/0||isNaN(b)||0>b)&&oe("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+b),a.isRow=!1,a.index=b),b=new Bi;for(x in y)x!=="row"&&x!=="column"&&(b[x]=y[x]);pd(a,b)}else pd(a,y);else oe('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function Wd(a,y){wf.add(a,y)}function gm(a,y,x){x===void 0&&(x=null);var E=a[1];if(typeof x=="function"?x(E):typeof E=="string")return a.splice(1,1),E;if(y===void 0)throw Error("no "+(typeof x=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}ve.Object.defineProperties(ee.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new Ug),this.A.zp=a)}},localBindings:{get:function(){return this.A!==null?this.A.te:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new Ug),this.A.te=a)}},srcBindings:{get:function(){return this.A!==null?this.A.wm:null},set:function(a){this.srcBindings!==a&&(this.A===null&&(this.A=new Ug),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(xi(this),this.A.Ci=a,this.Uc=!0,this.N(),this.g("shadowVisible",y,a))}},enabledChanged:{get:function(){return this.A!==null?this.A.Hb:null},set:function(a){var y=this.enabledChanged;y!==a&&(xi(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:sl},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new xc),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===sl&&(this.angle=0))}},segmentIndex:{get:function(){return this.Ua!==null?this.Ua.u:-1/0},set:function(a){a=Math.round(a);var y=this.segmentIndex;y!==a&&(this.Ua===null&&(this.Ua=new xc),this.Ua.u=a,this.v(),this.g("segmentIndex",y,a))}},segmentFraction:{get:function(){return this.Ua!==null?this.Ua.o:0},set:function(a){isNaN(a)||0>a?a=0:1a||1=a&&oe("GraphObject.scale for "+this+" must be greater than zero, not: "+a),this.Ca=a,this.v(),this.g("scale",y,a))}},angle:{get:function(){return this.Kb},set:function(a){var y=this.Kb;y!==a&&(a%=360,0>a&&(a+=360),y!==a&&(this.Kb=a,Ky(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,E=this.jd,b=E.width,z=E.height;(b===y||isNaN(b)&&isNaN(y))&&(z===x||isNaN(z)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof pi&&this.qc(),this.g("desiredSize",E,a),ya(this)&&(a=this.part,a!==null&&($o(this,a,"width"),$o(this,a,"height"))))}},width:{get:function(){return this.jd.width},set:function(a){var y=this.jd.width;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new un(a,this.jd.height).freeze(),this.v(),this instanceof pi&&this.qc(),this.g("desiredSize",y,a),ya(this)&&(a=this.part,a!==null&&$o(this,a,"width")))}},height:{get:function(){return this.jd.height},set:function(a){var y=this.jd.height;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new un(this.jd.width,a).freeze(),this.v(),this instanceof pi&&this.qc(),this.g("desiredSize",y,a),ya(this)&&(a=this.part,a!==null&&$o(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:zi},set:function(a){var y=this.minSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=0),isNaN(a.height)&&(a.height=0),a.freeze(),xi(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:vi},set:function(a){var y=this.maxSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=1/0),isNaN(a.height)&&(a.height=1/0),a.freeze(),xi(this),this.A.o=a,this.v(),this.g("maxSize",y,a))}},measuredBounds:{get:function(){return this.uc}},naturalBounds:{get:function(){return this.dc}},margin:{get:function(){return this.Kg},set:function(a){typeof a=="number"&&(a=new gi(a));var y=this.Kg;y.D(a)||(this.Kg=a=a.J(),this.v(),this.g("margin",y,a))}},transform:{get:function(){return this.l&2048&&la(this),this.Ab}},oe:{get:function(){return this.l&4096&&la(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(xi(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:ze},set:function(a){this.reshapingBehavior!==a&&(xi(this),this.A.Pf=a)}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(a.Mc()&&!a.Xb()&&oe("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),nl(this),this.g("alignment",y,a))}},column:{get:function(){return this.Ag},set:function(a){a=Math.round(a);var y=this.Ag;y!==a&&(0>a&&li(a,">= 0",ee,"column"),this.Ag=a,this.v(),this.g("column",y,a),this.svg!==null&&this.svg.remove())}},columnSpan:{get:function(){return this.A!==null?this.A.ob:1},set:function(a){a=Math.round(a);var y=this.columnSpan;y!==a&&(1>a&&li(a,">= 1",ee,"columnSpan"),xi(this),this.A.ob=a,this.v(),this.g("columnSpan",y,a))}},row:{get:function(){return this.io},set:function(a){a=Math.round(a);var y=this.io;y!==a&&(0>a&&li(a,">= 0",ee,"row"),this.io=a,this.v(),this.g("row",y,a),this.svg!==null&&this.svg.remove())}},rowSpan:{get:function(){return this.A!==null?this.A.Bi:1},set:function(a){a=Math.round(a);var y=this.rowSpan;y!==a&&(1>a&&li(a,">= 1",ee,"rowSpan"),xi(this),this.A.Bi=a,this.v(),this.g("rowSpan",y,a))}},spanAllocation:{get:function(){return this.A!==null?this.A.Di:null},set:function(a){var y=this.spanAllocation;y!==a&&(xi(this),this.A.Di=a,this.v(),this.g("spanAllocation",y,a))}},alignmentFocus:{get:function(){return this.sk},set:function(a){var y=this.sk;y.D(a)||(this.sk=a=a.J(),this.v(),this.g("alignmentFocus",y,a))}},portId:{get:function(){return this.Yn},set:function(a){var y=this.Yn;if(y!==a){var x=this.part;x===null||x instanceof hn||oe("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Wv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,Z1(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:We},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),ug(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&li(a,">= 0",ee,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),ug(this))}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:0},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.g("toShortLength",y,a),ug(this))}},toLinkable:{get:function(){return this.ba!==null?this.ba.Tr:null},set:function(a){var y=this.toLinkable;y!==a&&(this.Xc(),this.ba.Tr=a,this.g("toLinkable",y,a))}},toMaxLinks:{get:function(){return this.ba!==null?this.ba.Ur:1/0},set:function(a){var y=this.toMaxLinks;y!==a&&(0>a&&li(a,">= 0",ee,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:We},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),ug(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&li(a,">= 0",ee,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),ug(this))}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:0},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.g("fromShortLength",y,a),ug(this))}},fromLinkable:{get:function(){return this.ba!==null?this.ba.hq:null},set:function(a){var y=this.fromLinkable;y!==a&&(this.Xc(),this.ba.hq=a,this.g("fromLinkable",y,a))}},fromMaxLinks:{get:function(){return this.ba!==null?this.ba.iq:1/0},set:function(a){var y=this.fromMaxLinks;y!==a&&(0>a&&li(a,">= 0",ee,"fromMaxLinks"),this.Xc(),this.ba.iq=a,this.g("fromMaxLinks",y,a))}},cursor:{get:function(){return this.A!==null?this.A.j:""},set:function(a){var y=this.cursor;y!==a&&(xi(this),this.A.j=a,this.g("cursor",y,a))}},click:{get:function(){return this.A!==null?this.A.zh:null},set:function(a){var y=this.click;y!==a&&(xi(this),this.A.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.A!==null?this.A.Fh:null},set:function(a){var y=this.doubleClick;y!==a&&(xi(this),this.A.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.A!==null?this.A.Bh:null},set:function(a){var y=this.contextClick;y!==a&&(xi(this),this.A.Bh=a,this.g("contextClick",y,a))}},mouseEnter:{get:function(){return this.A!==null?this.A.Mh:null},set:function(a){var y=this.mouseEnter;y!==a&&(xi(this),this.A.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.A!==null?this.A.Ph:null},set:function(a){var y=this.mouseLeave;y!==a&&(xi(this),this.A.Ph=a,this.g("mouseLeave",y,a))}},mouseOver:{get:function(){return this.A!==null?this.A.Qh:null},set:function(a){var y=this.mouseOver;y!==a&&(xi(this),this.A.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.A!==null?this.A.Oh:null},set:function(a){var y=this.mouseHover;y!==a&&(xi(this),this.A.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.A!==null?this.A.Nh:null},set:function(a){var y=this.mouseHold;y!==a&&(xi(this),this.A.Nh=a,this.g("mouseHold",y,a))}},mouseDragEnter:{get:function(){return this.A!==null?this.A.Of:null},set:function(a){var y=this.mouseDragEnter;y!==a&&(xi(this),this.A.Of=a,this.g("mouseDragEnter",y,a))}},mouseDragLeave:{get:function(){return this.A!==null?this.A.Xd:null},set:function(a){var y=this.mouseDragLeave;y!==a&&(xi(this),this.A.Xd=a,this.g("mouseDragLeave",y,a))}},mouseDrop:{get:function(){return this.A!==null?this.A.Lh:null},set:function(a){var y=this.mouseDrop;y!==a&&(xi(this),this.A.Lh=a,this.g("mouseDrop",y,a))}},actionDown:{get:function(){return this.A!==null?this.A.V:null},set:function(a){var y=this.actionDown;y!==a&&(xi(this),this.A.V=a,this.g("actionDown",y,a))}},actionMove:{get:function(){return this.A!==null?this.A.ia:null},set:function(a){var y=this.actionMove;y!==a&&(xi(this),this.A.ia=a,this.g("actionMove",y,a))}},actionUp:{get:function(){return this.A!==null?this.A.Ha:null},set:function(a){var y=this.actionUp;y!==a&&(xi(this),this.A.Ha=a,this.g("actionUp",y,a))}},actionCancel:{get:function(){return this.A!==null?this.A.F:null},set:function(a){var y=this.actionCancel;y!==a&&(xi(this),this.A.F=a,this.g("actionCancel",y,a))}},toolTip:{get:function(){return this.A!==null?this.A.$h:null},set:function(a){var y=this.toolTip;y!==a&&(xi(this),this.A.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.A!==null?this.A.Ch:null},set:function(a){var y=this.contextMenu;y!==a&&(xi(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),ee.prototype.trigger=ee.prototype.Jv,ee.prototype.findBindingPanel=ee.prototype.ih,ee.prototype.findTemplateBinder=ee.prototype.pz,ee.prototype.setProperties=ee.prototype.nm,ee.prototype.apply=ee.prototype.apply,ee.prototype.attach=ee.prototype.Du,ee.prototype.set=ee.prototype.set,ee.prototype.isEnabledObject=ee.prototype.If,ee.prototype.isVisibleObject=ee.prototype.Ed,ee.prototype.isContainedBy=ee.prototype.rg,ee.prototype.getNearestIntersectionPoint=ee.prototype.rs,ee.prototype.getLocalPoint=ee.prototype.qs,ee.prototype.getDocumentScale=ee.prototype.Df,ee.prototype.getDocumentAngle=ee.prototype.li,ee.prototype.getDocumentBounds=ee.prototype.mi,ee.prototype.getDocumentPoint=ee.prototype.ga,ee.prototype.intersectsRect=ee.prototype.Yc,ee.prototype.containedInRect=ee.prototype.fh,ee.prototype.containsRect=ee.prototype.Re,ee.prototype.containsPoint=ee.prototype.ca,ee.prototype.raiseChanged=ee.prototype.g,ee.prototype.raiseChangedEvent=ee.prototype.cb,ee.prototype.addCopyProperty=ee.prototype.Vw;var wf=null;ee.className="GraphObject",wf=new oi,Wd("Button",function(){function a(x,E){return x.diagram.ic(x.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b},function(b){return b===E})!==null}var y=vu(Ke,Ke.Auto,{isActionable:!0,enabledChanged:function(x,E){if(x instanceof Ke){var b=x.fb("ButtonBorder");b!==null&&(b.fill=E?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},vu(pi,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new Qn(0,0,2.76142374915397,2.761423749153969),spot2:new Qn(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,E){if(E.If()&&E instanceof Ke&&(x=E.fb("ButtonBorder"),x instanceof pi)){var b=E._buttonFillOver;E._buttonFillNormal=x.fill,x.fill=b,b=E._buttonStrokeOver,E._buttonStrokeNormal=x.stroke,x.stroke=b}},y.mouseLeave=function(x,E){E.If()&&E instanceof Ke&&(x=E.fb("ButtonBorder"),x instanceof pi&&(x.fill=E._buttonFillNormal,x.stroke=E._buttonStrokeNormal))},y.actionDown=function(x,E){if(E.If()&&E instanceof Ke&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof pi){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var tt=E._buttonFillPressed;E._buttonFillOver=b.fill,b.fill=tt,tt=E._buttonStrokePressed,E._buttonStrokeOver=b.stroke,b.stroke=tt,x.skipsUndoManager=z}}},y.actionUp=function(x,E){if(E.If()&&E instanceof Ke&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof pi){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionCancel=function(x,E){if(E.If()&&E instanceof Ke&&E._buttonFillPressed!==null){var b=E.fb("ButtonBorder");if(b instanceof pi){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionMove=function(x,E){if(E.If()&&E instanceof Ke&&E._buttonFillPressed!==null){var b=x.diagram;if(b.firstInput.button===0&&(b.currentTool.standardMouseOver(),a(x,E)&&(x=E.fb("ButtonBorder"),x instanceof pi))){var z=b.skipsUndoManager;b.skipsUndoManager=!0;var tt=E._buttonFillPressed;x.fill!==tt&&(x.fill=tt),tt=E._buttonStrokePressed,x.stroke!==tt&&(x.stroke=tt),b.skipsUndoManager=z}}},y}),Wd("TreeExpanderButton",function(){var a=vu("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},vu(pi,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:rs},new us("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new us("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof Ji&&(x=x.adornedPart),x instanceof hn){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isTreeExpanded){if(!E.canCollapseTree(x))return}else if(!E.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?E.collapseTree(x):E.expandTree(x)}}},a}),Wd("SubGraphExpanderButton",function(){var a=vu("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},vu(pi,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:rs},new us("figure","isSubGraphExpanded",function(y,x){return x=x.panel,y?x._subGraphExpandedFigure:x._subGraphCollapsedFigure}).cp()));return a.click=function(y,x){if(x=x.part,x instanceof Ji&&(x=x.adornedPart),x instanceof di){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isSubGraphExpanded){if(!E.canCollapseSubGraph(x))return}else if(!E.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?E.collapseSubGraph(x):E.expandSubGraph(x)}}},a}),Wd("ToolTip",function(){return vu(Ji,Ke.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Wt(0,3),shadowBlur:5},vu(pi,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new Qn(0,0,4,6),spot2:new Qn(1,1,-4,-4)}))}),Wd("ContextMenu",function(){return vu(Ji,Ke.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Wt(0,3),shadowBlur:5},new us("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),Wd("ContextMenuButton",function(){var a=vu("Button");a.stretch=In;var y=a.fb("ButtonBorder");return y instanceof pi&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new Qn(0,0,2,3),y.spot2=new Qn(1,1,-2,-2)),a}),Wd("PanelExpanderButton",function(a){var y=gm(a,"COLLAPSIBLE"),x=vu("Button",{_buttonExpandedFigure:"M0 0 M0 6 L4 2 8 6 M8 8",_buttonCollapsedFigure:"M0 0 M0 2 L4 6 8 2 M8 8",_buttonFillNormal:"rgba(0, 0, 0, 0)",_buttonStrokeNormal:null,_buttonFillOver:"rgba(0, 0, 0, .2)",_buttonStrokeOver:null,_buttonFillPressed:"rgba(0, 0, 0, .4)",_buttonStrokePressed:null},vu(pi,{name:"ButtonIcon",strokeWidth:2},new us("geometryString","visible",function(E){return E?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof pi&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(E,b){var z=b.diagram;if(z!==null&&!z.isReadOnly){var tt=b.ih();tt===null&&(tt=b.part),tt!==null&&(b=tt.fb(y),b!==null&&(E.handled=!0,z.Ea("Collapse/Expand Panel"),b.visible=!b.visible,z.eb("Collapse/Expand Panel")))}},x}),Wd("CheckBoxButton",function(a){var y=gm(a);return a=vu("Button",{desiredSize:new un(14,14)},vu(pi,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Ze,geometryStretch:kn,visible:!1},y!==""?new us("visible",y).Kx():[])),a.click=function(x,E){if(E instanceof Ke){var b=x.diagram;if(!(b===null||b.isReadOnly||y!==""&&b.model.isReadOnly)){x.handled=!0;var z=E.fb("ButtonIcon");b.Ea("checkbox"),z.visible=!z.visible,typeof E._doClick=="function"&&E._doClick(x,E),b.eb("checkbox")}}},a}),Wd("CheckBox",function(a){a=gm(a),a=vu("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new gi(0,1,0,0)});var y=vu(Ke,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new gi(1),_buttonFillNormal:a._buttonFillNormal,_buttonStrokeNormal:a._buttonStrokeNormal,_buttonFillOver:a._buttonFillOver,_buttonStrokeOver:a._buttonStrokeOver,_buttonFillPressed:a._buttonFillPressed,_buttonStrokePressed:a._buttonStrokePressed,_buttonFillDisabled:a._buttonFillDisabled,mouseEnter:a.mouseEnter,mouseLeave:a.mouseLeave,actionDown:a.actionDown,actionUp:a.actionUp,actionCancel:a.actionCancel,actionMove:a.actionMove,click:a.click,_buttonClick:a.click});return a.mouseEnter=null,a.mouseLeave=null,a.actionDown=null,a.actionUp=null,a.actionCancel=null,a.actionMove=null,a.click=null,y}),ee.None=ze=new Ye(ee,"None",0),ee.Default=ci=new Ye(ee,"Default",0),ee.Vertical=$n=new Ye(ee,"Vertical",4),ee.Horizontal=In=new Ye(ee,"Horizontal",5),ee.Fill=Ze=new Ye(ee,"Fill",3),ee.Uniform=kn=new Ye(ee,"Uniform",1),ee.UniformToFill=Gi=new Ye(ee,"UniformToFill",2),ee.FlipVertical=wi=new Ye(ee,"FlipVertical",1),ee.FlipHorizontal=Zi=new Ye(ee,"FlipHorizontal",2),ee.FlipBoth=xo=new Ye(ee,"FlipBoth",3),ee.make=vu,ee.getBuilders=function(){var a=new oi,y;for(y in wf)if(y!==y.toLowerCase()){var x=wf.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},ee.defineBuilder=Wd,ee.build=function(a,y,x){for(var E=[],b=2;ba&&(a+=360),a!==0){if(this.translate(y,x),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.ha[1]*a+this.ha[3]*E,z=this.ha[0]*-E+this.ha[2]*a,tt=this.ha[1]*-E+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*E,this.ha[1]=b,this.ha[2]=z,this.ha[3]=tt,this.translate(-y,-x)}},hg.className="STransform";function Vg(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}Vg.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},Vg.className="SGradient";function Ah(a,y,x){this.ownerDocument=a=y===void 0?Ge.document:y,this.cA="http://www.w3.org/2000/svg",a!==void 0&&(this.Oa=this.Ud("svg",{width:"1px",height:"1px",viewBox:"0 0 1 1"}),this.style.display="block",this.style.letterSpacing="normal",this.style.wordSpacing="normal",this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink")),this.hs=null,this.context=new Rl(this,x)}Ah.prototype.resize=function(a,y,x,E){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=E+"px",this.Oa.setAttributeNS(null,"width",x+"px"),this.Oa.setAttributeNS(null,"height",E+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+x+" "+E),this.context.ww.firstElementChild.setAttributeNS(null,"width",x+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",E+"px"),!0):!1},Ah.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),De(y))for(var E in y)a.setAttributeNS(E==="href"?"http://www.w3.org/1999/xlink":"",E,y[E]);return x!==void 0&&(a.textContent=x),a},Ah.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Ah.prototype.focus=function(){this.Oa.focus()},Ah.prototype.mx=function(){this.ownerDocument=null},ve.Object.defineProperties(Ah.prototype,{width:{get:function(){return this.Oa.width.baseVal.value},set:function(a){this.Oa.setAttribute("width",a+"px")}},height:{get:function(){return this.Oa.height.baseVal.value},set:function(a){this.Oa.setAttribute("height",a+"px")}},style:{get:function(){return this.Oa.style}}}),Ah.className="SVGSurface";function Rl(a,y){this.Gv=a,this.svg=a.Oa,this.stack=[],this.nh=[],this.fillStyle="#000000",this.font="10px sans-serif",this.globalAlpha=1,this.lineCap="butt",this.lineDashOffset=0,this.lineJoin="miter",this.lineWidth=1,this.miterLimit=10,this.shadowBlur=0,this.shadowColor="rgba(0, 0, 0, 0)",this.shadowOffsetY=this.shadowOffsetX=0,this.Il=!1,this.strokeStyle="#000000",this.textAlign="start",this.clipInsteadOfFill=!1,this.Vg=this.Br=this.Ar=0,this.yd=this.ad=null,this.path=[],this.Yl={},this.Ct=!1,this.Yg=null,this.uj=0,this.rb=new hg,this.j=fm(this),this.Nj=fm(this,"gojs-diagram"),this.Hl=this.ti=null;var x=Sa++,E=this.Ud("clipPath",{id:"mainClip"+x});E.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=E,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(E),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function Qy(a,y,x,E,b,z,tt){a.Nj===void 0?pp(a,y,x,E,b,z,tt):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+E+", "+b+", "+z+", "+tt+")")}Ct=Rl.prototype,Ct.arc=function(a,y,x,E,b,z,tt,ot){var rt=2*Math.PI,at=rt-1e-6,ut=x*Math.cos(E),gt=x*Math.sin(E),mt=a+ut,yt=y+gt,wt=z?0:1;E=z?E-b:b-E,(1e-6E&&(E=E%rt+rt),E>at?(this.path.push(["A",x,x,0,1,wt,a-ut,y-gt]),this.path.push(["A",x,x,0,1,wt,mt,yt])):1e-6=Math.PI),wt,a+x*Math.cos(b),y+x*Math.sin(b)])},Ct.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Ct.Se=function(a){this.addPath(this.path,this.rb,a||0)},Ct.bezierCurveTo=function(a,y,x,E,b,z){this.path.push(["C",a,y,x,E,b,z])},Ct.clearRect=function(){},Ct.clip=function(){this.Yl.clipPath=!0},Ct.closePath=function(){this.path.push(["z"])},Ct.createLinearGradient=function(a,y,x,E){var b=new Vg("linear");return b.x1=a,b.y1=y,b.x2=x,b.y2=E,b},Ct.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var x=this.eA;if(x[y])return"url(#"+x[y]+")";var E="PATTERN"+Sa++,b={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:E,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(ag,b)),this.svg.appendChild(a),x[y]=E,"url(#"+E+")"},Ct.createRadialGradient=function(a,y,x,E,b,z){var tt=new Vg("radial");return tt.x1=a,tt.y1=y,tt.r1=x,tt.x2=E,tt.y2=b,tt.r2=z,tt};function Xy(a,y,x,E,b,z,tt,ot,rt){E=ot/E,b=rt/b,z===0&&tt===0||a.rb.translate(z,tt),E===1&&b===1||a.rb.scale(E,b),y===0&&x===0||a.rb.translate(-y,-x)}Ct.drawImage=function(a,y,x,E,b,z,tt,ot,rt){var at="";a instanceof HTMLCanvasElement&&(at=a.toDataURL()),a instanceof HTMLImageElement&&(at=a.getAttribute("src"));var ut=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,E===void 0&&(z=y,tt=x,ot=E=ut,rt=b=a),E=E||0,b=b||0,ot=ot||0,rt=rt||0,Xy(this,y,x,E,b,z||0,tt||0,ot,rt),z={x:0,y:0,width:ut||E,height:a||b,href:at},_t.$(E,ot)&&_t.$(b,rt)?at.toLowerCase().indexOf(".svg")===-1&&at.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||E!==ut||b!==a)&&(E+=y,b+=x,z["clip-path"]="path('M "+y+","+x+" L "+E+" "+x+" L "+E+" "+b+" L "+y+" "+b+" z')"),Pf(this,ag,z,this.rb),this.addElement(ag,z)},Ct.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),iv(this,this.Yl)},Ct.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Ct.fillRect=function(a,y,x,E){a=[a,y,x,E],a={x:a[0],y:a[1],width:a[2],height:a[3]},Pf(this,"fill",a,this.rb),this.addElement("rect",a)},Ct.ox=function(a,y,x,E){a={x:a,y,width:x,height:E},Pf(this,"fill",a,this.rb),iv(this,a),this.svg.prepend(this.Ud("rect",a))},Ct.fillText=function(a,y,x){a=[a,y,x],y=this.textAlign,y==="left"?y="start":y==="right"?y="end":y==="center"&&(y="middle"),y={x:a[1],y:a[2],style:"font: "+this.font,"text-anchor":y},Pf(this,"fill",y,this.rb),this.addElement("text",y,a[0])},Ct.lineTo=function(a,y){this.path.push(["L",a,y])},Ct.moveTo=function(a,y){this.path.push(["M",a,y])},Ct.quadraticCurveTo=function(a,y,x,E){this.path.push(["Q",a,y,x,E])},Ct.rect=function(a,y,x,E){this.path.push(["M",a,y],["L",a+x,y],["L",a+x,y+E],["L",a,y+E],["z"])},Ct.restore=function(){this.rb=this.stack.pop(),this.path=this.stack.pop();var a=this.stack.pop();this.fillStyle=a.fillStyle,this.font=a.font,this.globalAlpha=a.globalAlpha,this.lineCap=a.lineCap,this.lineDashOffset=a.lineDashOffset,this.lineJoin=a.lineJoin,this.lineWidth=a.lineWidth,this.miterLimit=a.miterLimit,this.shadowBlur=a.shadowBlur,this.shadowColor=a.shadowColor,this.shadowOffsetX=a.shadowOffsetX,this.shadowOffsetY=a.shadowOffsetY,this.strokeStyle=a.strokeStyle,this.textAlign=a.textAlign,this.bk=a.bk},Ct.save=function(){this.stack.push({fillStyle:this.fillStyle,font:this.font,globalAlpha:this.globalAlpha,lineCap:this.lineCap,lineDashOffset:this.lineDashOffset,lineJoin:this.lineJoin,lineWidth:this.lineWidth,miterLimit:this.miterLimit,shadowBlur:this.shadowBlur,shadowColor:this.shadowColor,shadowOffsetX:this.shadowOffsetX,shadowOffsetY:this.shadowOffsetY,strokeStyle:this.strokeStyle,textAlign:this.textAlign,bk:this.bk});for(var a=[],y=0;yut.offset?1:-1}),b=0;bx?(this.scale(x/a,1),this.translate((a-x)/2,0)):x>a&&(this.scale(1,a/x),this.translate(0,(x-a)/2)),this.Hm?this.clip():this.fill(y),a>x?(this.translate(-(a-x)/2,0),this.scale(1/(x/a),1)):x>a&&(this.translate(0,-(x-a)/2),this.scale(1,1/(a/x)))}else this.Hm?this.clip():this.fill(y)},Ct.jk=function(){this.Hm||this.stroke()},Ct.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Ct.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Ct.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(mx),a.lineDashOffset=0)},Ct.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Ct.Hs=function(){},ve.Object.defineProperties(dg.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(a){this.ct!==a&&(this.ct=this.Z.fillStyle=a)}},font:{get:function(){return this.Z.font},set:function(a){this.dt!==a&&(this.dt=this.Z.font=a)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(a){this.Z.globalAlpha=a}},lineCap:{get:function(){return this.Z.lineCap},set:function(a){this.Z.lineCap=a}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(a){this.Z.lineDashOffset=a}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(a){this.Z.lineJoin=a}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(a){this.Z.lineWidth=a}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(a){this.Z.miterLimit=a}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(a){this.Z.shadowBlur=a}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(a){this.Z.shadowColor=a}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(a){this.Z.shadowOffsetX=a}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(a){this.Z.shadowOffsetY=a}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(a){this.et!==a&&(this.et=this.Z.strokeStyle=a)}},textAlign:{get:function(){return this.Z.textAlign},set:function(a){this.Z.textAlign=a}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(a){this.Z.imageSmoothingEnabled=a}},filter:{get:function(){return this.Z.filter},set:function(a){this.Z.filter=a===""?"none":a}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(a){this.Hm=a}}});var mx=Object.freeze([]);dg.className="CanvasSurfaceContext";function mp(){this.F=this.o=this.u=this.j=0}mp.className="ColorNumbers";function fo(a,y){Ef||(hv(),Ef=!0),Ko(this),this._isFrozen=!1,a===void 0?(this.na=Yd,this.xk="black"):typeof a=="string"?(this.na=Yd,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===xd?(this.Qd=Be,this.Lk=yi):this.Lk=a===yu?this.Qd=ri:this.Qd=We,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}fo.prototype.copy=function(){var a=new fo;return a.na=this.na,a.xk=this.xk,a.Qd=this.Qd.J(),a.Lk=this.Lk.J(),a.Gr=this.Gr,a.Xp=this.Xp,this.we!==null&&(a.we=this.we.copy()),a.cr=this.cr,a},Ct=fo.prototype,Ct.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Ct.ka=function(){return Object.isFrozen(this)&&oe("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Ct.qb=function(a){a.classType===fo&&(this.type=a)},Ct.toString=function(){var a="Brush(";if(this.type===Yd)a+=this.color;else if(a=this.type===xd?a+"Linear ":this.type===yu?a+"Radial ":this.type===kf?a+"Pattern ":a+"(unknown) ",a+=this.start+" "+this.end,this.colorStops!==null)for(var y=this.colorStops.iterator;y.next();)a+=" "+y.key+":"+y.value;return a+")"},Ct.addColorStop=function(a,y){return this._isFrozen&&mn(this),(typeof a!="number"||!isFinite(a)||1a)&&li(a,"0 <= loc <= 1",fo,"addColorStop:loc"),this.we===null&&(this.we=new oi),this.we.add(a,y),this.na===Yd&&(this.type=xd),this.xe=null,this},Ct.Vz=function(a,y){if(this._isFrozen&&mn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Af:y,this.type===Yd)Sd(this.color),this.color=Mf(a,y);else if((this.type===xd||this.type===yu)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)Sd(x.value),this.addColorStop(x.key,Mf(a,y));return this};function $y(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Af:x,Sd(a),Mf(y,x)}Ct.Wy=function(a,y){if(this._isFrozen&&mn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Af:y,this.type===Yd)Sd(this.color),this.color=Mf(-a,y);else if((this.type===xd||this.type===yu)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)Sd(x.value),this.addColorStop(x.key,Mf(-a,y));return this};function t1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Af:x,Sd(a),Mf(-y,x)}function rv(a,y,x){Sd(a),a=Yo.j;var E=Yo.u,b=Yo.o,z=Yo.F;return Sd(y),x===void 0&&(x=.5),"rgba("+Math.round((Yo.j-a)*x+a)+", "+Math.round((Yo.u-E)*x+E)+", "+Math.round((Yo.o-b)*x+b)+", "+Math.round((Yo.F-z)*x+z)+")"}Ct.Gx=function(){if(this.type===Yd)return Cf(this.color);if((this.type===xd||this.type===yu)&&this.colorStops!==null){var a=this.colorStops;if(this.type===yu)return Cf(a.first().value);if(a.get(.5)!==null)return Cf(a.get(.5));if(a.count===2)return a=a.Fa(),Cf(rv(a[0].value,a[1].value));for(var y=a.iterator,x=-1,E=-1,b=1,z=1;y.next();){var tt=y.key,ot=Math.abs(.5-y.key);b>z&&ot=b&&otE&&(z=x,x=E,E=z,z=b),b=E-x,Cf(rv(a.get(x),a.get(E),1-z/b))}return!1};function Cf(a){return a?a instanceof fo?a.Gx():(Sd(a),128>(299*Yo.j+587*Yo.u+114*Yo.o)/1e3):!1}function Mf(a,y){switch(y){case Af:y=100*av(Yo.j);var x=100*av(Yo.u),E=100*av(Yo.o);return ol.j=.4124564*y+.3575761*x+.1804375*E,ol.u=.2126729*y+.7151522*x+.072175*E,ol.o=.0193339*y+.119192*x+.9503041*E,ol.F=Yo.F,y=uv(ol.j/Lf[0]),x=uv(ol.u/Lf[1]),E=uv(ol.o/Lf[2]),Xh.j=116*x-16,Xh.u=500*(y-x),Xh.o=200*(x-E),Xh.F=ol.F,Xh.j=Math.min(100,Math.max(0,Xh.j+100*a)),a=(Xh.j+16)/116,y=a-Xh.o/200,ol.j=Lf[0]*e1(Xh.u/500+a),ol.u=Lf[1]*(Xh.j>mm*dv?Math.pow(a,3):Xh.j/mm),ol.o=Lf[2]*e1(y),ol.F=Xh.F,a=-.969266*ol.j+1.8760108*ol.u+.041556*ol.o,y=.0556434*ol.j+-.2040259*ol.u+1.0572252*ol.o,Yo.j=255*lv((3.2404542*ol.j+-1.5371385*ol.u+-.4985314*ol.o)/100),Yo.u=255*lv(a/100),Yo.o=255*lv(y/100),Yo.F=ol.F,Yo.j=Math.round(Yo.j),255Yo.j&&(Yo.j=0),Yo.u=Math.round(Yo.u),255Yo.u&&(Yo.u=0),Yo.o=Math.round(Yo.o),255Yo.o&&(Yo.o=0),"rgba("+Yo.j+", "+Yo.u+", "+Yo.o+", "+Yo.F+")";case n1:return sv(),ou.o=Math.min(100,Math.max(0,ou.o+100*a)),"hsla("+ou.j+", "+ou.u+"%, "+ou.o+"%, "+ou.F+")";default:oe("Unknown color space: "+y)}}function Sd(a){Ef||(hv(),Ef=!0);var y=cv;if(y!==null){y.clearRect(0,0,1,1),y.fillStyle="#000000";var x=y.fillStyle;y.fillStyle=a,y.fillStyle!==x?(y.fillRect(0,0,1,1),a=y.getImageData(0,0,1,1).data,Yo.j=a[0],Yo.u=a[1],Yo.o=a[2],Yo.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,Yo.j=0,Yo.u=0,Yo.o=0,Yo.F=1)}}function sv(){var a=Yo.j/255,y=Yo.u/255,x=Yo.o/255,E=Math.max(a,y,x),b=Math.min(a,y,x),z=E-b;if(b=(E+b)/2,z===0)var tt=a=0;else{switch(E){case a:tt=(y-x)/z%6;break;case y:tt=(x-a)/z+2;break;case x:tt=(a-y)/z+4}tt*=60,0>tt&&(tt+=360),a=z/(1-Math.abs(2*b-1))}ou.j=Math.round(tt),ou.u=Math.round(100*a),ou.o=Math.round(100*b),ou.F=Yo.F}function av(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function lv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function uv(a){return a>dv?Math.pow(a,1/3):(mm*a+16)/116}function e1(a){var y=a*a*a;return y>dv?y:(116*a-16)/mm}function Zg(a,y){typeof a!="string"&&(a instanceof fo||oe("Value for "+y+" must be a color string or a Brush, not "+a))}function hv(){cv=Nr?new bu(null,void 0,{willReadFrequently:!0}).context:null}ve.Object.defineProperties(fo.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&mn(this,a),this.na=a,this.start.Mc()&&(a===xd?this.start=Be:a===yu&&(this.start=ri)),this.end.Mc()&&(a===xd?this.end=yi:a===yu&&(this.end=ri)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&mn(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&mn(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&mn(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&mn(this,a),0>a&&li(a,">= zero",fo,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&mn(this,a),0>a&&li(a,">= zero",fo,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&mn(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&mn(this,a),this.cr=a,this.xe=null}}}),fo.prototype.isDark=fo.prototype.Gx,fo.prototype.darkenBy=fo.prototype.Wy,fo.prototype.lightenBy=fo.prototype.Vz,fo.prototype.addColorStop=fo.prototype.addColorStop;var dv=216/24389,mm=24389/27,Lf=[95.047,100,108.883],cv=null,Yo=new mp,ou=new mp,ol=new mp,Xh=new mp,Ef=!1;fo.className="Brush";var Yd;fo.Solid=Yd=new Ye(fo,"Solid",0);var xd;fo.Linear=xd=new Ye(fo,"Linear",1);var yu;fo.Radial=yu=new Ye(fo,"Radial",2);var kf;fo.Pattern=kf=new Ye(fo,"Pattern",4);var Af;fo.Lab=Af=new Ye(fo,"Lab",5);var n1;fo.HSL=n1=new Ye(fo,"HSL",6),fo.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var x=Math.abs(y-a);y=Math.floor(a+Math.random()*x).toString(16);var E=Math.floor(a+Math.random()*x).toString(16);return a=Math.floor(a+Math.random()*x).toString(16),2>y.length&&(y="0"+y),2>E.length&&(E="0"+E),2>a.length&&(a="0"+a),"#"+y+E+a},fo.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;Ef||(hv(),Ef=!0);var y=cv;if(y===null)return!0;y.fillStyle="#000000";var x=y.fillStyle;return y.fillStyle=a,y.fillStyle!==x?!0:(y.fillStyle="#FFFFFF",x=y.fillStyle,y.fillStyle=a,y.fillStyle!==x)},fo.lighten=function(a){return $y(a)},fo.lightenBy=$y,fo.darken=function(a){return t1(a)},fo.darkenBy=t1,fo.mix=rv,fo.isDark=Cf;function Es(){this.xa="Base"}Es.prototype.measure=function(){},Es.prototype.Yz=function(a,y,x,E,b){a.measure(y,x,E,b)},Es.prototype.arrange=function(){},Es.prototype.Ly=function(a,y,x,E,b,z){a.arrange(y,x,E,b,z)},Es.prototype.iA=function(a){a.Uj()},Es.prototype.gc=function(){},ve.Object.defineProperties(Es.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return Ke}}}),Es.prototype.remeasureObject=Es.prototype.iA,Es.prototype.arrangeElement=Es.prototype.Ly,Es.prototype.measureElement=Es.prototype.Yz,Es.className="PanelLayout";function vm(){this.xa="Base"}pe(vm,Es),vm.prototype.measure=function(a,y,x,E,b,z,tt){var ot=E.length;a=wd(a);for(var rt=0;rtCn&&(Us=Math.max(Cn-Ic,0));var V0=Oe.oa===0;Oe.oc=Oe.oc+Us,Oe.actual=Oe.oa+Us,Cn=Math.max(Cn-(Us+(V0?Ic:0)),0)}if(kl.columnSpan===1&&(Qa===ze||Qa===$n)){Oe=a.Eb(Ka);var om=Oe.Wc();Us=Math.max(xg-Oe.actual,0),Us+om>ln&&(Us=Math.max(ln-om,0));var Gy=Oe.oa===0;Oe.oc=Oe.oc+Us,Oe.actual=Oe.oa+Us,ln=Math.max(ln-(Us+(Gy?om:0)),0)}Bc&&kl.Uj()}}}}}Fi(Yt);var od=0,Md=0;z=a.columnCount;for(var sf=0;sf=a.rowCount);oc++)Oe=a.Fb(Wr.row+oc),Us=0,Us=Qa===Ze||Qa===$n?Math.max(Oe.minimum,xh[Wr.row+oc]===0?Oe.maximum:Math.min(xh[Wr.row+oc],Oe.maximum)):Math.max(Oe.minimum,isNaN(Oe.Hc)?Oe.maximum:Math.min(Oe.Hc,Oe.maximum)),kd.height+=Us,Ul+=Oe.minimum;for(var Ou=1;Ou=a.columnCount);Ou++)Oe=a.Eb(Wr.column+Ou),Us=0,Us=Qa===Ze||Qa===In?Math.max(Oe.minimum,Cu[Wr.column+Ou]===0?Oe.maximum:Math.min(Cu[Wr.column+Ou],Oe.maximum)):Math.max(Oe.minimum,isNaN(Oe.Hc)?Oe.maximum:Math.min(Oe.Hc,Oe.maximum)),kd.width+=Us,X0+=Oe.minimum;ha.width+=kd.width,ha.height+=kd.height;var op=Wr.margin,Gc=op.right+op.left,sm=op.top+op.bottom;Wr.measure(ha.width,ha.height,X0,Ul);for(var rp=Wr.measuredBounds,Bh=Math.max(rp.width+Gc,0),Mg=Math.max(rp.height+sm,0),Hc=0,sp=0;sp=a.rowCount);sp++)Oe=a.Fb(Wr.row+sp),Hc+=Oe.total||0;if(Hc=rc)&&!(Wr.row+Ad>=a.rowCount);Ad++){Oe=a.Fb(Wr.row+Ad);var ac=Oe.oa||0,Lg=sc(Wr,Oe,sd);Oe.actual=Math.min(Oe.maximum,ac+Lg),Oe.oa!==ac&&(rc-=Oe.oa-ac)}for(;0wh&&(Oe.actual=Math.min(Oe.maximum,wh+rc),Oe.oa!==wh&&(rc-=Oe.oa-wh)),Oe.index===0)break;Oe=a.Fb(Oe.index-1)}}for(var uf=0,lc=0;lc=a.columnCount);lc++)Oe=a.Eb(Wr.column+lc),uf+=Oe.total||0;if(uf=hf)&&!(Wr.column+Eg>=a.columnCount);Eg++){Oe=a.Eb(Wr.column+Eg);var am=Oe.oa||0,Yy=Nd(Wr,Oe,Wy);Oe.actual=Math.min(Oe.maximum,am+Yy),Oe.oa!==am&&(hf-=Oe.oa-am)}for(;0J0&&(Oe.actual=Math.min(Oe.maximum,J0+hf),Oe.oa!==J0&&(hf-=Oe.oa-J0)),Oe.index===0)break;Oe=a.Eb(Oe.index-1)}}}}Fi(Vt),un.free(kd),un.free(ha),xh!==void 0&&Fi(xh),Cu!==void 0&&Fi(Cu);var df=0,cf=0,_0=a.desiredSize,fx=a.maxSize;Qa=Sl(a,!0);var lm=Md=od=0,um=0;z=a.columnCount;for(var q0=0;q0=a.rowCount);Oe++){var hi=a.Fb(Yt+Oe);hi.oa!==0&&(It.height+=hi.total)}for(Oe=1;Oe=a.columnCount);Oe++)hi=a.Eb(Xt+Oe),hi.oa!==0&&(It.width+=hi.total);var si=te.oa+It.width,to=Vt.oa+It.height;Oe=ot,hi=rt;var jo=si,Ys=to,Xs=ot,Za=rt,Us=si,tc=to;ot+si>x.width&&(Us=Math.max(x.width-ot,0)),rt+to>x.height&&(tc=Math.max(x.height-rt,0));var hs=vn.alignment;if(hs.Xb()){hs=a.defaultAlignment,hs.sb()||(hs=ri);var vh=hs.x,Ka=hs.y,ec=hs.offsetX;hs=hs.offsetY;var au=te.alignment,Bu=Vt.alignment;au.sb()&&(vh=au.x,ec=au.offsetX),Bu.sb()&&(Ka=Bu.y,hs=Bu.offsetY)}else vh=hs.x,Ka=hs.y,ec=hs.offsetX,hs=hs.offsetY;(isNaN(vh)||isNaN(Ka))&&(Ka=vh=.5,hs=ec=0),au=Xe.width,Bu=Xe.height;var Hl=vn.margin,kl=Hl.left+Hl.right,Bc=Hl.top+Hl.bottom,yh=ch(vn,Vt,te,!1);!isNaN(vn.desiredSize.width)||yh!==Ze&&yh!==In||(au=Math.max(si-kl,0)),!isNaN(vn.desiredSize.height)||yh!==Ze&&yh!==$n||(Bu=Math.max(to-Bc,0)),si=vn.maxSize,to=vn.minSize,au=Math.min(si.width,au),Bu=Math.min(si.height,Bu),au=Math.max(to.width,au),Bu=Math.max(to.height,Bu),si=Bu+Bc,Oe+=jo*vh-(au+kl)*vh+ec+Hl.left,hi+=Ys*Ka-si*Ka+hs+Hl.top,vn.visible&&(Is(Xs,Za,Us,tc,Oe,hi,Xe.width,Xe.height)?vn.arrange(Oe,hi,au,Bu):vn.arrange(Oe,hi,au,Bu,new ke(Xs,Za,Us,tc)))}}}for(un.free(It),a=0;a=x&&(x=1);var E=a.gridCellSize,b=E.width;E=E.height;var z=a.naturalBounds,tt=a.actualBounds,ot=z.width,rt=z.height,at=Math.ceil(ot/b),ut=Math.ceil(rt/E),gt=a.gridOrigin,mt=gt.x;gt=gt.y,y.save(),y.beginPath(),y.rect(0,0,ot,rt),y.clip(),y.Se();for(var yt=[],wt=a.O.s,Et=wt.length,zt=0;ztVt)){It=pv(It.figure);for(var Xt=0;XtVt&&Yt.push(te))}}}}for(wt=a.O.s,Et=wt.length,zt=0;ztb*It*x))){if(Vt=ge.segmentIndex,(!isFinite(Vt)||isNaN(Vt))&&(Vt=0),0>Vt&&(Vt=It-Math.min(-Vt,It)),Vt=Math.round(Vt%It),It=ge.opacity,Xt=1,It!==1){if(It===0)continue;Xt=y.globalAlpha,y.globalAlpha=Xt*It}te=yt[zt];var ln=!1,Cn=ge.strokeDashArray;if(Cn!==null&&(ln=!0,y.js(Cn,ge.strokeDashOffset)),ge.figure==="LineV"&&ge.stroke!==null&&0y)return a%y===x;if(a%y!==x)return!1;y=E.length;for(var b=0;bgt)Yt.measure(1/0,1/0,0,0),Vt=Yt.measuredBounds,x.ed(Vt),yt.push(Vt);else{var Xt=Yt.segmentIndex,te=Yt.segmentFraction,ge=Yt.alignmentFocus;ge.Mc()&&(ge=ri);var ln=Yt.segmentOrientation,Cn=Yt.segmentOffset;if(isNaN(Xt)){var vn=rt.ua;Vt=Ii(),vn.Qu(te,Vt);var Xe=Wt.allocAt(Vt[0],Vt[1]);if(Xe.add(rt.i(0)),vn.type===He.j?Xe.offset(-vn.startX,-vn.startY):(vn=vn.figures.first(),vn!==null&&Xe.offset(-vn.startX,-vn.startY)),vn=Vt[2],ln!==sl){var Oe=rt.computeAngle(Yt,ln,vn);Yt.Kb=Oe}Oe=Xe.x-y.x;var hi=Xe.y-y.y;Wt.free(Xe),Fi(Vt)}else if(Xt<-gt||Xt>=gt)Vt=Wt.alloc(),rt.vg(),rt.computeMidPoint(Vt),vn=rt.midAngle,ln!==sl&&(Oe=rt.computeAngle(Yt,ln,vn),Yt.Kb=Oe),Oe=Vt.x-y.x,hi=Vt.y-y.y,Wt.free(Vt);else{if(Oe=0,0<=Xt?(hi=ut.M(Xt),Vt=Xtsi+10?0<=Xt?vn.ab(hi):hi.ab(vn):si>Xe+10?0<=Xt?Vt.ab(Oe):Oe.ab(Vt):0<=Xt?vn.ab(Oe):Oe.ab(vn)}else vn=0<=Xt?hi.ab(Vt):Vt.ab(hi);ln!==sl&&(Oe=rt.computeAngle(Yt,ln,vn),Yt.Kb=Oe),Oe=hi.x+(Vt.x-hi.x)*te-y.x,hi=hi.y+(Vt.y-hi.y)*te-y.y}Yt.measure(1/0,1/0,0,0),Vt=Yt.measuredBounds,Xe=Yt.naturalBounds;var to=0;Yt instanceof pi&&(to=Yt.strokeWidth),si=Xe.width+to;var jo=Xe.height+to;wt.reset(),wt.translate(-Vt.x,-Vt.y),wt.scale(Yt.scale,Yt.scale),wt.rotate(ln===sl?Yt.angle:vn,si/2,jo/2),ln!==bp&&ln!==Dp||wt.rotate(90,si/2,jo/2),ln!==Tp&&ln!==Fp||wt.rotate(-90,si/2,jo/2),ln===i0&&(45vn||225vn)&&wt.rotate(-vn,si/2,jo/2),Xe=new ke(0,0,si,jo),Et.xi(Xe,ge),wt.Ga(Et),ge=-Et.x+to/2*Yt.scale,Yt=-Et.y+to/2*Yt.scale,zt.assign(Cn),to=isNaN(Cn.x);var Ys=isNaN(Cn.y);if(to||Ys){si=si/2+3,jo=jo/2+3;var Xs=45<=vn&&135>=vn,Za=225<=vn&&315>=vn;ln===sl&&(Xs||Za)?(zt.x=Ys?si:Cn.y,zt.y=to?jo:Cn.x,Xs?0<=Xt||isNaN(Xt)&&.5>te||!to||(zt.y=-jo):Za&&((0<=Xt||isNaN(Xt)&&.5>te)&&to&&(zt.y=-jo),Ys&&(zt.x=-si))):(to&&(zt.x=0<=Xt||isNaN(Xt)&&.5>te?si:-si),Ys&&(zt.y=-jo),zt.rotate(vn))}else zt.rotate(vn);Oe+=zt.x,hi+=zt.y,Xe.set(Vt),Xe.h(Oe+ge,hi+Yt,Vt.width,Vt.height),yt.push(Xe),x.ed(Xe)}}if(tt!==null)for(E=tt.labelNodes;E.next();)E.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),oa(b,x.width||0,x.height||0),fi.free(wt),Wt.free(Et),Wt.free(zt)}}}},km.prototype.arrange=function(a,y){var x=y.length;if(a instanceof Ji||a instanceof Je){var E=a,b=null;a instanceof Ji&&(b=a,E=b.adornedPart);var z=a instanceof Ji?null:E.path,tt=a.j;if(tt.length!==0){var ot=0;if(z!==null&&ot=x)wt=Wt.alloc(),yt=gt,zt=wt,yt.vg(),yt.computeMidPoint(zt),yt=gt.midAngle,at!==sl&&(gt=gt.computeAngle(tt,at,yt),tt.angle=gt),gt=wt.x,zt=wt.y,Wt.free(wt);else{if(Et=0,0<=ot?(wt=y.s[ot],zt=otYt+10?0<=ot?yt.ab(wt):wt.ab(yt):Yt>It+10?0<=ot?zt.ab(Et):Et.ab(zt):0<=ot?yt.ab(Et):Et.ab(yt)}else yt=0<=ot?wt.ab(zt):zt.ab(wt);at!==sl&&(gt=gt.computeAngle(tt,at,yt),tt.angle=gt),gt=wt.x+(zt.x-wt.x)*rt,zt=wt.y+(zt.y-wt.y)*rt}if(mt.ys())tt.location=new Wt(gt,zt);else{mt.Mc()&&(mt=ri),wt=fi.alloc(),wt.reset(),wt.scale(tt.scale,tt.scale),wt.rotate(tt.angle,0,0);var Vt=tt.naturalBounds;Et=ke.allocAt(0,0,Vt.width,Vt.height),It=Wt.alloc(),It.xi(Et,mt),wt.Ga(It),mt=-It.x,Yt=-It.y;var Xt=Vt.width,te=Vt.height;Vt=Wt.alloc(),Vt.assign(ut);var ge=isNaN(ut.x),ln=isNaN(ut.y);if(ge||ln){Xt=Xt/2+3,te=te/2+3;var Cn=45<=yt&&135>=yt,vn=225<=yt&&315>=yt;at===sl&&(Cn||vn)?(Vt.x=ln?Xt:ut.y,Vt.y=ge?te:ut.x,Cn?0<=ot||isNaN(ot)&&.5>rt||!ge||(Vt.y=-te):vn&&((0<=ot||isNaN(ot)&&.5>rt)&&ge&&(Vt.y=-te),ln&&(Vt.x=-Xt))):(ge&&(Vt.x=0<=ot||isNaN(ot)&&.5>rt?Xt:-Xt),ln&&(Vt.y=-te),Vt.rotate(yt))}else Vt.rotate(yt);gt+=Vt.x,zt+=Vt.y,wt.pp(Et),mt+=Et.x,Yt+=Et.y,ot=Wt.allocAt(gt+mt,zt+Yt),tt.move(ot),Wt.free(ot),Wt.free(Vt),Wt.free(It),ke.free(Et),fi.free(wt)}}b!==null?b.Ul(!1):E.Ul(!1),E=D1(a),a.location.h(a.position.x+E.x,a.position.y+E.y),Wt.free(E)}};function i1(a,y,x,E){if(iu(E)!==!1){var b=E.strokeWidth;b===0&&a instanceof Ji&&a.type===Ke.Link&&a.adornedObject instanceof pi&&(b=a.adornedObject.strokeWidth),b*=E.Ca,a instanceof Je&&a.ua!==null?(a=a.geometry.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):a instanceof Ji&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):E.Ge(-(b/2),-(b/2),y+b,x+b),b=E.desiredSize,b.w()||E.ua===null?E.dc.h(0,0,b.width,b.height):E.dc.assign(E.ua.bounds),ys(E,!1)}}function yp(){this.xa="Base"}pe(yp,Es),yp.prototype.measure=function(a,y,x,E,b,z,tt){var ot=a.Pb();a.graduatedBounds=[];var rt=ot.margin,at=rt.right+rt.left,ut=rt.top+rt.bottom;ot.measure(y,x,z,tt);var gt=ot.measuredBounds,mt=new ke(-rt.left,-rt.top,Math.max(gt.width+at,0),Math.max(gt.height+ut,0));a.graduatedBounds.push(mt),b.assign(mt);for(var yt=ot.geometry,wt=ot.strokeWidth,Et=yt.flattenedSegments,zt=yt.flattenedLengths,It=yt.flattenedTotalLength,Yt=Et.length,Vt=0,Xt=0,te=Ii(),ge=0;gesi&&(si+=360),Cn.push(si)}Vt=Oe,Xt=hi}te.push(Cn)}if(a.graduatedIntervals===null){for(var to=[],jo=a.O.s,Ys=jo.length,Xs=0;Xstc)){for(var hs=0;hstc&&Us.push(Ka)}}}}}a.graduatedIntervals=to}var ec=a.graduatedIntervals,au=a.O.s,Bu=au.length,Hl=0,kl=0,Bc=It;a.graduatedMarks=[];for(var yh,_f=0;_fim*Qa*It/a.graduatedRange&&Wl.graduatedSkip===null)){var rf=zt[0][0],Th=0,Al=0;kl=It*Wl.graduatedStart-1e-4,Bc=It*Wl.graduatedEnd+1e-4;var xg=im*Qa,Yl=a.graduatedTickBase;if(Yla.graduatedMin+xg&&(Yl-=Math.floor((Yl-a.graduatedMin)/xg)*xg);for(var V0=ec[_f],om=Yl,Gy=1e-6*a.graduatedMax,od=1;Yl<=a.graduatedMax+Gy;od++){t:{for(var Md=V0.length,sf=0;sf-qf){var jc=!1;break t}}jc=!0}if(jc&&(Yl>a.graduatedMax&&(Yl=a.graduatedMax),Wl.graduatedSkip===null||Wl instanceof Go&&!Wl.graduatedSkip(Yl,Wl)||Wl instanceof pi&&!Wl.graduatedSkip(Yl,Wl))&&(Hl=(Yl-a.graduatedMin)*It/a.graduatedRange,Hl>It&&(Hl=It),kl<=Hl&&Hl<=Bc)){for(var rd=te[Th][Al],nc=zt[Th][Al];Thrf&&AlLd&&.4995Ld?0Ld||.9995af){var tp=1-Math.abs(.5-Ld);rd=(Sh*tp+Fh*(1-tp))%360;break t}}}rd=Sh}if(Wl instanceof Go){var _u="";Wl.graduatedFunction!==null?(_u=Wl.graduatedFunction(Yl,Wl),_u=_u!=null?_u.toString():""):_u=(+Yl.toFixed(2)).toString(),_u!==""&&yh.push({$l:$f,angle:rd,text:_u})}else yh.push({$l:$f,angle:rd})}Yl=om+od*xg}}}a.graduatedMarks.push(yh)}Fi(te);var ha=a.graduatedMarks;if(ha!==null)for(var rm=E.length,dl=0;dlqu;qu++){switch(qu){case 0:bl.h(kd,xh);break;case 1:bl.h(kd+ep,xh);break;case 2:bl.h(kd,xh+Cg);break;case 3:bl.h(kd+ep,xh+Cg)}bl.rotate(Wr+ds.angle),bl.offset(Q0,ip),np===0&&qu===0?Cu.h(bl.x,bl.y,0,0):Cu.Ye(bl),bl.offset(-Q0,-ip),bl.rotate(-Wr-ds.angle)}Wt.free(bl),Ed.graduatedBounds!==null&&Ed.graduatedBounds.push(Cu),Sr(ic,Cu.x,Cu.y,Cu.width,Cu.height)}else if(ds instanceof Go){var Iu=a,X0=b;Iu.temporaryTextBlock===null&&(Iu.temporaryTextBlock=new Go);var Ul=Iu.temporaryTextBlock;y1(Ul,ds);var oc=ds.alignmentFocus;oc.Mc()&&(oc=Be);for(var Ou=ds.segmentOrientation,op=ds.segmentOffset,Gc=new ke,sm=0,rp=0,Bh=0,Mg=0,Hc=0,sp=cl.length,rc=0;rcBh||225Bh)&&wh.rotate(-Bh,ac/2,Lg/2);var uf=ke.allocAt(0,0,ac,Lg),lc=Wt.alloc();lc.xi(uf,oc),wh.Ga(lc);var hf=-lc.x,Wy=-lc.y,Nd=Wt.alloc();Nd.assign(op),isNaN(Nd.x)&&(Nd.x=ac/2+3),isNaN(Nd.y)&&(Nd.y=-(Lg/2+3)),Nd.rotate(Bh),sm+=Nd.x+hf,rp+=Nd.y+Wy;var Eg=new ke(sm,rp,sc.width,sc.height),am=new ke(sc.x,sc.y,sc.width,sc.height),Yy=new ke(Ad.x,Ad.y,Ad.width,Ad.height);sd.Sz=Mg,sd.lineCount=Ul.lineCount,sd.lines=[Ul.Cb,Ul.Ih,Ul.df,Ul.Le,Ul.Qc,Ul.Qb,Ul.ze],sd.actualBounds=Eg,sd.measuredBounds=am,sd.naturalBounds=Yy,rc===0?Gc.assign(Eg):Gc.ed(Eg),Wt.free(Nd),Wt.free(lc),ke.free(uf),fi.free(wh)}Iu.graduatedBounds!==null&&Iu.graduatedBounds.push(Gc),Sr(X0,Gc.x,Gc.y,Gc.width,Gc.height)}ys(ds,!1)}}},yp.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var E=a.Pb(),b=a.graduatedMarks;if(b!==null){var z=a.graduatedBounds,tt=0,ot=z[tt];tt++,E!==null&&E.arrange(ot.x-x.x,ot.y-x.y,ot.width,ot.height);for(var rt=y.length,at=0;at=tt&&(tt=1);for(var ot=z.actualBounds,rt=a.O.s,at=a.graduatedMarks,ut=rt.length,gt=0;gta.graduatedTickUnit*mt.interval*z.geometry.flattenedTotalLength/a.graduatedRange*tt&&mt.graduatedSkip===null)){var Et=mt.measuredBounds,zt=mt.strokeWidth*mt.scale,It=mt.alignmentFocus;It.Mc()&&(It=Be);for(var Yt=0;Yttt.height)continue}else if(at.position>tt.width)continue;var ut=at.separatorStrokeWidth;isNaN(ut)&&(ut=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var gt=at.separatorStroke;if(gt===null&&(gt=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ut!==0&>!==null){Ir(a,y,gt,!1,!1,tt,z),gt=!1;var mt=at.separatorDashArray;mt===null&&(mt=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),mt!==null&&(gt=!0,y.js(mt,0)),y.beginPath(),mt=at.position+ut,x?mt>tt.height&&(ut-=mt-tt.height):mt>tt.width&&(ut-=mt-tt.width),at=at.position+ut/2,y.lineWidth=ut,ut=a.yb,x?(at+=ut.top,mt=tt.width-ut.right,y.moveTo(ut.left,at),y.lineTo(mt,at)):(at+=ut.left,mt=tt.height-ut.bottom,y.moveTo(at,ut.top),y.lineTo(at,mt)),y.stroke(),y.Se(),gt&&y.fs()}}}}function Am(a,y,x,E,b){for(var z=E.length,tt=a.actualBounds,ot=a.naturalBounds,rt=r1(a,!0),at=r1(a,!1),ut=0;utmt)){var yt=gt.Wc(),wt=gt.separatorStrokeWidth;isNaN(wt)&&(wt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Et=gt.separatorStroke;Et===null&&(Et=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Et===null||gt.index===(x?rt:at))&&(wt=0),yt-=wt,wt=gt.position+wt,yt+=gt.actual,wt+yt>mt&&(yt=mt-wt),0>=yt||(mt=a.yb,Ir(a,y,gt.background,!0,!1,ot,tt),x?y.fillRect(mt.left,wt+mt.top,tt.width-(mt.left+mt.right),yt):y.fillRect(wt+mt.left,mt.top,yt,tt.height-(mt.top+mt.bottom)))}}}}function r1(a,y){for(var x=y?a.rowCount:a.columnCount,E=0;EE&&b.set(wt),Wt.free(wt)),Wt.free(ut),z&&b.transform(tt),at},Ct.Gj=function(){for(var a=this.O.s,y=a.length,x=0;xx||z>E)&&(this.v(),this.measure(y>x?x:y,z>E?E:z,0,0));break;case Ze:this.v(!0),this.measure(x+ot,E+tt,0,0);break;case In:this.v(!0),this.measure(x+ot,z+tt,0,0);break;case $n:this.v(!0),this.measure(y+ot,E+tt,0,0)}}this.na.arrange(this,b,this.jg)}},Ct.gh=function(a){var y=this.naturalBounds,x=wd(this);if(Is(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var E=y.length,b=Wt.allocAt(0,0);E--;){var z=y[E];if((z.visible||z===x)&&(Tr(b.set(a),z.transform),z.ca(b)))return Wt.free(b),!0}return Wt.free(b),!(this.Ma===null&&this.areaBackground===null)}return!1},Ct.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,E=0;Emt.width||gt.y>mt.height||0>gt.x+gt.width||0>gt.y+gt.height||(gt=ut,ut=ut instanceof Ke?ut:null,mt=fi.alloc(),mt.set(tt),(ut!==null?ut.Cf(a,y,x,E,b,mt):Ws(gt,a,E,mt))&&(y!==null&&(gt=y(gt)),gt===null||x!==null&&!x(gt)||b.add(gt)),fi.free(mt))}}return z===void 0&&fi.free(tt),E}return z===void 0&&fi.free(tt),!1};function mv(a,y,x,E){for(var b=a.O.s,z=b.length;z--;){var tt=b[z];if(tt.visible){var ot=tt.actualBounds,rt=a.naturalBounds;ot.x>rt.width||ot.y>rt.height||0>ot.x+ot.width||0>ot.y+ot.height||(tt instanceof Ke&&mv(tt,y,x,E),y!==null&&(tt=y(tt)),tt===null||x!==null&&!x(tt)||E.add(tt))}}}Ct.og=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;x===void 0&&(x=null),E===void 0&&(E=null);var tt=this.naturalBounds,ot=this.se(),rt=ot?a:Tr(Wt.allocAt(a.x,a.y),this.transform),at=ot?y:Tr(Wt.allocAt(y.x,y.y),this.transform),ut=rt.Bf(at),gt=0zt.width||Et.y>zt.height||0>Et.x+Et.width||0>Et.y+Et.height))&&(wt.se()?(Et=wt.transform,Tr(rt.set(a),Et),Tr(at.set(y),Et)):(rt.set(a),at.set(y)),Et=wt,wt=wt instanceof Ke?wt:null,(wt!==null?wt.og(rt,at,x,E,b,z):Et.tx(rt,at,b))&&(x!==null&&(Et=x(Et)),Et===null||E!==null&&!E(Et)||z.add(Et)))}}Wt.free(rt),Wt.free(at)}return b?gt:tt}return!1};function vv(a){var y=null;return a instanceof pi&&(y=a.spot1,y===so&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=be),y}function yv(a){var y=null;return a instanceof pi&&(y=a.spot2,y===so&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=$i),y}Ct.add=function(a){for(var y=[],x=0;x=b.count&&a>=b.count)return;b.mb(z),E=z}else oe("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>b.count)&&(a=b.count),b.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),iu(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof Ke&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||bm(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof hn&&(x.Te=!0),x.Te&&x instanceof hn&&(x.wc=null),b=this.diagram,b!==null&&b.undoManager.isUndoingRedoing||(E!==-1&&x.cb(rn,"elements",this,y,null,E,null),x.cb(Qe,"elements",this,null,y,null,a)))};function Sv(a,y){a.l=y?a.l|16777216:a.l&-16777217}Ct.remove=function(a){for(var y=this.O.s,x=y.length,E=-1,b=0;ba&&li(a,">= 0",Ke,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Ss;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(Qe,"rowdefs",this,null,x,null,a)}return y[a]},Ct.oA=function(a){if(0>a&&li(a,">= 0",Ke,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(rn,"rowdefs",this,x,null,a,null),this.v()}}};function h1(a,y,x){var E=a.rowDefs;if(!(0>y)){if(E[y]=x instanceof Ss?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Ct.Eb=function(a){0>a&&li(a,">= 0",Ke,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Ss;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(Qe,"coldefs",this,null,x,null,a)}return y[a]},Ct.jA=function(a){if(0>a&&li(a,">= 0",Ke,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(rn,"coldefs",this,x,null,a,null),this.v()}}};function d1(a,y,x){var E=a.colDefs;if(!(0>y)){if(E[y]=x instanceof Ss?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Ct.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Tm(y,a),this},Ct.Hy=function(a,y){return(a=this.Fb(a))&&Tm(a,new Ss(y)),this},Ct.By=function(a,y){return(a=this.Eb(a))&&Tm(a,new Ss(y)),this},Ct.nz=function(a){if(0>a||this.type!==Ke.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,E=x.length,b=this.topIndex;ba||this.type!==Ke.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,E=x.length,b=this.leftIndex;ba;)this.pc(this.O.length-1,!1);g1(this,this.itemArray)};function g1(a,y){var x=Sp(a);if(y===null||y.length===0)for(;a.O.length>x;)a.pc(a.O.length-1,!1);else if(a.O.length<=x){x=y.length;for(var E=0;Ex)){var b=wv(a,y);if(b=Pv(a,b),b!==null){if(Tu(b),b=b.copy(),b.l&16777216){var z=a.ih();z!==null&&Sv(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new oi),a.ge.add(y,b)),z=x+Sp(a),a.Gb(z,b),E&&(b.ub=y,xv(a,z,x),b.ub=null),b.data=y}}}function xv(a,y,x){for(a=a.O;ya&&li(a,">= 0",Ke,"padding"),a=new gi(a)):(0>a.left&&li(a.left,">= 0",Ke,"padding:value.left"),0>a.right&&li(a.right,">= 0",Ke,"padding:value.right"),0>a.top&&li(a.top,">= 0",Ke,"padding:value.top"),0>a.bottom&&li(a.bottom,">= 0",Ke,"padding:value.bottom"));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.v(),this.g("padding",y,a))}},defaultAlignment:{get:function(){return this.Tm},set:function(a){var y=this.Tm;y.D(a)||(this.Tm=a=a.J(),this.v(),this.g("defaultAlignment",y,a))}},defaultStretch:{get:function(){return this.Uf},set:function(a){var y=this.Uf;y!==a&&(this.Uf=a,this.v(),this.g("defaultStretch",y,a))}},defaultSeparatorPadding:{get:function(){return this.T!==null?this.T.Qp:Dl},set:function(a){typeof a=="number"&&(a=new gi(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new Su),this.T.Qp=a,this.v(),this.g("defaultSeparatorPadding",y,a))}},defaultRowSeparatorStroke:{get:function(){return this.T!==null?this.T.ia:null},set:function(a){var y=this.defaultRowSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof fo)&&(a instanceof fo&&a.freeze(),this.T===null&&(this.T=new Su),this.T.ia=a,this.N(),this.g("defaultRowSeparatorStroke",y,a))}},defaultRowSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.Ha:1},set:function(a){var y=this.defaultRowSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new Su),this.T.Ha=a,this.v(),this.g("defaultRowSeparatorStrokeWidth",y,a))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(a){var y=this.defaultRowSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;ba)&&oe("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Su),this.T.Hb=a,this.v(),this.g("topIndex",y,a))}},leftIndex:{get:function(){return this.T!==null?this.T.hb:0},set:function(a){var y=this.leftIndex;y!==a&&((!isFinite(a)||0>a)&&oe("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Su),this.T.hb=a,this.v(),this.g("leftIndex",y,a))}},data:{get:function(){return this.ub},set:function(a){var y=this.ub;if(y!==a){var x=this instanceof Vn&&!(this instanceof Ji);Tu(this),this.ub=a;var E=this.diagram;E!==null&&(x?(x=E.partManager,this instanceof Je?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof Vn&&(y!==null&&x.cf.remove(y),a!==null&&x.cf.add(a,this))):(x=this.panel,x!==null&&x.ge!==null&&(y!==null&&x.ge.remove(y),a!==null&&x.ge.add(a,this)))),this.g("data",y,a),E!==null&&E.undoManager.isUndoingRedoing||a!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(a){var y=this.zn;y!==a&&(this.zn=a,this.g("itemIndex",y,a))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new Ug),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&yx(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&ly(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&ay(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||g1(this,a)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(a){if(this.itemTemplateMap===null){if(a===null)return;this.itemTemplateMap=new oi}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof Vn||a.isPanelMain)&&oe("Panel.itemTemplate must not be a Part or be Panel.isPanelMain: "+a),this.itemTemplateMap.add("",a),this.g("itemTemplate",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv())}},itemTemplateMap:{get:function(){return this.A!==null?this.A.Pc:null},set:function(a){var y=this.itemTemplateMap;if(y!==a){for(var x=a.iterator;x.next(););xi(this),this.A.Pc=a,this.g("itemTemplateMap",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv()}}},itemCategoryProperty:{get:function(){return this.A!==null?this.A.Oc:"category"},set:function(a){var y=this.itemCategoryProperty;y!==a&&(xi(this),this.A.Oc=a,this.g("itemCategoryProperty",y,a))}},isAtomic:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("isAtomic",y,a))}},isClipping:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this instanceof di&&(this.tb=null),this.v(),this.g("isClipping",y,a))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(a){var y=(this.l&33554432)!==0;y!==a&&(this.l^=33554432,this.v(),this.g("isOpposite",y,a))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;if(y!==a){var x=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",y,a),y=this.diagram,y!==null&&y.undoManager.isUndoingRedoing||x&&bm(this,this,a)}}},alignmentFocusName:{get:function(){return this.$e},set:function(a){var y=this.$e;y!==a&&(this.$e=a,this.v(),this.g("alignmentFocusName",y,a))}}}),ve.Object.defineProperties(Ke,{Position:{get:function(){return Vu.I("Position")}},Horizontal:{get:function(){return Vu.I("Horizontal")}},Vertical:{get:function(){return Vu.I("Vertical")}},Spot:{get:function(){return Vu.I("Spot")}},Auto:{get:function(){return Vu.I("Auto")}},Table:{get:function(){return Vu.I("Table")}},Viewbox:{get:function(){return Vu.I("Viewbox")}},TableRow:{get:function(){return Vu.I("TableRow")}},TableColumn:{get:function(){return Vu.I("TableColumn")}},Link:{get:function(){return Vu.I("Link")}},Grid:{get:function(){return Vu.I("Grid")}},Graduated:{get:function(){return Vu.I("Graduated")}}}),Ke.prototype.rebuildItemElements=Ke.prototype.mv,Ke.prototype.findItemPanelForData=Ke.prototype.sx,Ke.prototype.updateTargetBindings=Ke.prototype.La,Ke.prototype.copyTemplate=Ke.prototype.Uy,Ke.prototype.graduatedValueForPoint=Ke.prototype.Gz,Ke.prototype.graduatedPointForValue=Ke.prototype.Fz,Ke.prototype.findColumnForLocalX=Ke.prototype.fz,Ke.prototype.findRowForLocalY=Ke.prototype.nz,Ke.prototype.addColumnDefinition=Ke.prototype.By,Ke.prototype.addRowDefinition=Ke.prototype.Hy,Ke.prototype.addRowColumnDefinition=Ke.prototype.Gy,Ke.prototype.removeColumnDefinition=Ke.prototype.jA,Ke.prototype.getColumnDefinition=Ke.prototype.Eb,Ke.prototype.removeRowDefinition=Ke.prototype.oA,Ke.prototype.getRowDefinition=Ke.prototype.Fb,Ke.prototype.removeAt=Ke.prototype.mb,Ke.prototype.remove=Ke.prototype.remove,Ke.prototype.insertAt=Ke.prototype.Gb,Ke.prototype.elt=Ke.prototype.M,Ke.prototype.add=Ke.prototype.add,Ke.prototype.findObject=Ke.prototype.fb,Ke.prototype.findInVisualTree=Ke.prototype.Nl,Ke.prototype.walkVisualTreeFrom=Ke.prototype.qm,Ke.prototype.findMainElement=Ke.prototype.Pb;var f1=!1,p1=null,Vu=new oi;Ke.className="Panel",Ke.definePanelLayout=Nh,Nh("Position",new vm),Nh("Vertical",new Sm),Nh("Auto",new wm),Nh("Link",new km);function Pd(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}Pd.prototype.copy=function(){var a=new Pd;return a.lq=this.lq,a.F=this.F,a.ia=this.ia,a.V=this.V,a.u=this.u,a.j=this.j,a.o=this.o,a.Zh=this.Zh,a},Pd.className="GradPanelSettings";function Su(){this.Pc=[],this.Oc=[],this.j=this.ob=Fm,this.hb=this.Hb=0,this.Qp=Dl,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}Su.prototype.copy=function(a){for(var y=new Su,x=this.Pc,E=x.length,b=y.Pc,z=0;za&&li(a,">= 0",Ss,"height"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("height",y,a))}},width:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&li(a,">= 0",Ss,"width"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("width",y,a))}},minimum:{get:function(){return this.jj},set:function(a){var y=this.jj;y!==a&&((0>a||!isFinite(a))&&li(a,">= 0",Ss,"minimum"),this.jj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("minimum",y,a))}},maximum:{get:function(){return this.hj},set:function(a){var y=this.hj;y!==a&&(0>a&&li(a,">= 0",Ss,"maximum"),this.hj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("maximum",y,a))}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(this.Jb=a.J(),this.panel!==null&&this.panel.v(),this.Ob("alignment",y,a))}},stretch:{get:function(){return this.hg},set:function(a){var y=this.hg;y!==a&&(this.hg=a,this.panel!==null&&this.panel.v(),this.Ob("stretch",y,a))}},separatorPadding:{get:function(){return this.dg},set:function(a){typeof a=="number"&&(a=new gi(a));var y=this.dg;a!==null&&y!==null&&y.D(a)||(a!==null&&(a=a.J()),this.dg=a,this.panel!==null&&this.panel.v(),this.Ob("separatorPadding",y,a))}},separatorStroke:{get:function(){return this.lo},set:function(a){var y=this.lo;y!==a&&(a!==null&&Zg(a,"RowColumnDefinition.separatorStroke"),a instanceof fo&&a.freeze(),this.lo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",y,a))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(a){var y=this.mo;y!==a&&(this.mo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",y,a))}},separatorDashArray:{get:function(){return this.tj},set:function(a){var y=this.tj;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;bb)){var z=E.measuredBounds,tt=Math.max(1,z.width);z=z.height;for(var ot=x[0],rt=x[1],at,ut,gt,mt,yt,wt,Et=0,zt=Ii(),It=2;Itgt&&(gt=1),b=x=gt,at=tt/2,ut=at!==0,It=0,wt=zt[It],gt=wt[0],yt=wt[1],mt=wt[2],wt=wt[3];for(var Yt=0;.1<=Et;){if(Yt===0&&(ut?(b=x,b-=at,Et-=at,ut=!1):b=x,b===0&&(b=1)),b>Et){Fi(zt);return}b>wt?(Yt=b-wt,b=wt):Yt=0;var Vt=Math.sqrt(b*b/(1+mt*mt));if(0>gt&&(Vt=-Vt),ot+=Vt,rt+=mt*Vt,a.translate(ot,rt),a.rotate(yt),a.translate(-(tt/2),-(z/2)),Yt===0&&E.hh(a,y),a.translate(tt/2,z/2),a.rotate(-yt),a.translate(-ot,-rt),Et-=b,wt-=b,Yt!==0){if(It++,It===zt.length){Fi(zt);return}wt=zt[It],gt=wt[0],yt=wt[1],mt=wt[2],wt=wt[3],b=Yt}}Fi(zt)}}Ct.hh=function(a,y){var x=this.xc,E=this.Ui;if(x!==null||E!==null){var b=this.ua;if(b!==null){a.yc();var z=this.actualBounds,tt=this.naturalBounds;E!==null&&Ir(this,a,E,!0,!1,tt,z);var ot=this.part,rt=this.ig;if(x===null||rt!==0||ot===null||!this.isPanelMain&&ot.Pb()!==this||(rt=ot.type===Ke.Link&&ot instanceof Ji&&ot.category==="Selection"&&ot.adornedObject instanceof pi&&ot.adornedPart.Pb()===ot.adornedObject?ot.adornedObject.strokeWidth:0),rt===0&&(x=null),x!==null&&rt!==0&&(Ir(this,a,x,!1,!1,tt,z),a.lineWidth=rt,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,ot&&y.Gf("drawShadows")&&(z=ot.isShadowed),a.Il===!1&&(z=!1),ot=!0,x===null||E!==null&&E!=="transparent"||(ot=!1),tt=!1,rt=this.strokeDashArray,rt!==null&&(tt=!0,a.js(rt,this.strokeDashOffset)),b.type===He.j)a.beginPath(),a.moveTo(b.startX,b.startY),a.lineTo(b.endX,b.endY),x!==null&&a.jk(),a.Se();else if(b.type===He.u){var at=b.startX;rt=b.startY;var ut=b.endX,gt=b.endY;b=Math.min(at,ut);var mt=Math.min(rt,gt);at=Math.abs(ut-at),rt=Math.abs(gt-rt),a.beginPath(),a.rect(b,mt,at,rt),E!==null&&a.ng(E),x!==null&&(ot&&z&&Qh(a),a.jk(),ot&&z&&yd(a)),a.Se()}else if(b.type===He.F)at=b.startX,rt=b.startY,ut=b.endX,gt=b.endY,b=Math.abs(ut-at)/2,mt=Math.abs(gt-rt)/2,at=Math.min(at,ut)+b,rt=Math.min(rt,gt)+mt,a.beginPath(),a.moveTo(at,rt-mt),a.bezierCurveTo(at+_t.wg*b,rt-mt,at+b,rt-_t.wg*mt,at+b,rt),a.bezierCurveTo(at+b,rt+_t.wg*mt,at+_t.wg*b,rt+mt,at,rt+mt),a.bezierCurveTo(at-_t.wg*b,rt+mt,at-b,rt+_t.wg*mt,at-b,rt),a.bezierCurveTo(at-b,rt-_t.wg*mt,at-_t.wg*b,rt-mt,at,rt-mt),a.closePath(),E!==null&&a.ng(E),x!==null&&(ot&&z&&Qh(a),a.jk(),ot&&z&&yd(a)),a.Se();else if(b.type===He.o)for(b=b.figures,rt=b.length,mt=0;mtEt.sweepAngle,yt!==null?yt.endX:at.startX,yt!==null?yt.endY:at.startY)}else if(yt=qs(Et,at),zt=yt.length,zt===0)a.lineTo(Et.centerX,Et.centerY);else for(var It=0;It(x.startX-x.endX)*(a.x-x.endX)+(x.startY-x.endY)*(a.y-x.endY)||0>E)?!1:(ke.free(z),_t.Yb(x.startX,x.startY,x.endX,x.endY,b,a.x,a.y));if(x.type===He.u){y=x.startX;var tt=x.startY,ot=x.endX;if(x=x.endY,z.x=Math.min(y,ot),z.y=Math.min(tt,x),z.width=Math.abs(ot-y),z.height=Math.abs(x-tt),this.fill===null){if(z.Bc(-E,-E),z.ca(a))return ke.free(z),!1;z.Bc(E,E)}return this.stroke!==null&&z.Bc(b,b),a=z.ca(a),ke.free(z),a}if(x.type===He.F){tt=x.startX,b=x.startY,ot=x.endX;var rt=x.endY;if(x=Math.min(tt,ot),y=Math.min(b,rt),tt=Math.abs(ot-tt)/2,b=Math.abs(rt-b)/2,x=a.x-(x+tt),y=a.y-(y+b),this.fill===null){if(tt-=E,b-=E,0>=tt||0>=b||1>=x*x/(tt*tt)+y*y/(b*b))return ke.free(z),!1;tt+=E,b+=E}return this.stroke!==null&&(tt+=E,b+=E),ke.free(z),0>=tt||0>=b?!1:1>=x*x/(tt*tt)+y*y/(b*b)}if(x.type===He.o)return ke.free(z),this.fill===null?Fl(x,a.x,a.y,b):Vs(x,a,b,1=this.strokeWidth)ut=_t.Ve(at.startX,at.startY,at.endX,at.endY,z,tt,ot,rt,b);else{if(at.startX===at.endX?(E=gt,ut=0):(y=(at.endY-at.startY)/(at.endX-at.startX),ut=gt/Math.sqrt(1+y*y),E=ut*y),y=Ii(),a=new Wt,_t.Ve(at.startX+E,at.startY+ut,at.endX+E,at.endY+ut,z,tt,ot,rt,a)&&y.push(a),a=new Wt,_t.Ve(at.startX-E,at.startY-ut,at.endX-E,at.endY-ut,z,tt,ot,rt,a)&&y.push(a),a=new Wt,_t.Ve(at.startX+E,at.startY+ut,at.startX-E,at.startY-ut,z,tt,ot,rt,a)&&y.push(a),a=new Wt,_t.Ve(at.endX+E,at.endY+ut,at.endX-E,at.endY-ut,z,tt,ot,rt,a)&&y.push(a),ot=y.length,ot===0)return Fi(y),!1;for(ut=!0,rt=1/0,E=0;EMath.abs(x)){if(rt=tt-ut-x*(z-E),0>a*a*x*x+at*at-rt*rt){b.x=NaN,b.y=NaN,ut=!1;break t}gt=Math.sqrt(a*a*x*x+at*at-rt*rt),ot=(-(a*a*x*rt)+a*at*gt)/(at*at+a*a*x*x)+E,a=(-(a*a*x*rt)-a*at*gt)/(at*at+a*a*x*x)+E,at=x*(ot-E)+rt+ut,rt=x*(a-E)+rt+ut,Math.abs((z-ot)*(z-ot))+Math.abs((tt-at)*(tt-at))ot){b.x=NaN,b.y=NaN,ut=!1;break t}rt=Math.sqrt(ot),ot=ut+rt,rt=ut-rt,Math.abs(ot-tt)Math.abs(wt)?(Et*=.5/wt,wt=.5):Et!==0&&.5>Math.abs(Et)&&(wt*=.5/Et,Et=.5),It-=wt,Yt-=Et;yt.contains(It,Yt);)It-=wt,Yt-=Et;for(b.x=ot,b.y=rt,Et=0;Etx?a-x:x-a)<(y>E?y-E:E-y)?(a=ya||_t.$(rt.y,a))&&(rt.yy||_t.$(rt.x,y))&&(rt.x=a&&E<=y):(a=E&&x<=a)}Ct.tx=function(a,y,x){function E(zt,It){for(var Yt=zt.length,Vt=0;Vtb)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var b=a.Bf(y),z=b;if(1.5=b||gl(y,z,0,-gt)>=b||gl(y,z,0,gt)>=b||gl(y,z,ut,0)>=b)}else if(y.type===He.o){if(at=y.bounds,z=at.x,ot=at.y,rt=at.x+at.width,at=at.y+at.height,a.x>rt&&a.xat&&a.yb&&_r(a.x,a.y,z,ot,rt,ot)>b&&_r(a.x,a.y,rt,at,z,at)>b&&_r(a.x,a.y,rt,at,rt,ot)>b)return!1;if(z=Math.sqrt(b),x){if(this.fill===null?Fl(y,a.x,a.y,z):Vs(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;yb)return!1;for(ot=z.segments.s,rt=ot.length,at=0;atb)return!1;break;case Rs:var mt=Ii();if(_t.Qe(tt,ut,gt.point1X,gt.point1Y,gt.point2X,gt.point2Y,gt.endX,gt.endY,.8,mt),tt=E(mt,a),Fi(mt),tt||(tt=gt.endX,ut=gt.endY,a.zd(tt,ut)>b))return!1;break;case bt:if(mt=Ii(),_t.ep(tt,ut,gt.point1X,gt.point1Y,gt.endX,gt.endY,.8,mt),tt=E(mt,a),Fi(mt),tt||(tt=gt.endX,ut=gt.endY,a.zd(tt,ut)>b))return!1;break;case Ot:case Ht:mt=gt.type===Ot?qs(gt,z):vl(gt,z,tt,ut);var yt=mt.length;if(yt===0){if(tt=gt.type===Ot?gt.centerX:gt.endX,ut=gt.type===Ot?gt.centerY:gt.endY,a.zd(tt,ut)>b)return!1;break}gt=null;for(var wt=Ii(),Et=0;Et= 0",pi,"strokeWidth:value")}},strokeCap:{get:function(){return this.Na!==null?this.Na.Hr:"butt"},set:function(a){var y=this.strokeCap;y!==a&&(typeof a!="string"||a!=="butt"&&a!=="round"&&a!=="square"?li(a,'"butt", "round", or "square"',pi,"strokeCap"):(gg(this),this.Na.Hr=a,this.N(),this.g("strokeCap",y,a)))}},strokeJoin:{get:function(){return this.Na!==null?this.Na.Ir:"miter"},set:function(a){var y=this.strokeJoin;y!==a&&(typeof a!="string"||a!=="miter"&&a!=="bevel"&&a!=="round"?li(a,'"miter", "bevel", or "round"',pi,"strokeJoin"):(gg(this),this.Na.Ir=a,this.N(),this.g("strokeJoin",y,a)))}},strokeMiterLimit:{get:function(){return this.Na!==null?this.Na.Jr:10},set:function(a){var y=this.strokeMiterLimit;if(y!==a&&1<=a){gg(this),this.Na.Jr=a,this.N();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeMiterLimit",y,a)}}},strokeDashArray:{get:function(){return this.Yg},set:function(a){var y=this.Yg;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;ba?a=0:1a?a=0:1(gt*gt+ut*ut)*mt*mt&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof Rl&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,gt=this.spacingBelow,this.flip){case Zi:a.translate(b,0),a.scale(-1,1);break;case wi:a.translate(0,z),a.scale(1,-1);break;case xo:a.translate(b,z),a.scale(-1,-1)}if(a.yc(),ut=this.Gc,mt=(y+tt+gt)*ut,z>mt&&(E=this.verticalAlignment,E=E.y*z-E.y*mt+E.offsetY),ut===1&&this.ze!==null)gt=this.Cb,gt>b&&(gt=b),this.Oj(this.ze,a,0,E+y,b,tt,gt,x,ot,rt,at);else if(this.Qc!==null&&this.Qb!==null)for(mt=0;mtb&&(yt=b),E+=y,this.Oj(this.Qb[mt],a,0,E,b,tt,yt,x,ot,rt,at),E+=tt+gt}switch(this.flip){case Zi:a.scale(-1,1),a.translate(-b,0);break;case wi:a.scale(1,-1),a.translate(0,-z);break;case xo:a.scale(-1,-1),a.translate(-b,-z)}}},Ct.Oj=function(a,y,x,E,b,z,tt,ot,rt,at,ut){var gt=0;if(ot)rt==="left"?gt=0:rt==="right"?gt=b-tt:rt==="center"&&(gt=(b-tt)/2),y.fillRect(x+gt,E+.25*z,tt,1);else{if(rt==="left"?gt=0:rt==="right"?gt=b:rt==="center"&&(gt=b/2),b=Om!==null?Om(this,z):.75*z,y.fillText(a,x+gt,E+b),a=z/20|0,a===0&&(a=1),rt==="right"?gt-=tt:rt==="center"&&(gt-=tt/2),at){ot=jm!==null?jm(this,z):.8*z,rt=x+gt,at=E+ot,b=x+gt+tt,ot=E+ot;var mt=a;y.beginPath(),y.lineWidth=mt,y.moveTo(rt,at),y.lineTo(b,ot),y.stroke(),y.Se(),y instanceof Rl&&y.ad.classList.add("gojs-td")}ut&&(ut=E+z-z/2.2|0,a%2!==0&&(ut+=.5),E=x+gt,z=ut,x=x+gt+tt,tt=ut,gt=a,y.beginPath(),y.lineWidth=gt,y.moveTo(E,z),y.lineTo(x,tt),y.stroke(),y.Se(),y instanceof Rl&&y.ad.classList.add("gojs-td"))}},Ct.kk=function(a,y,x){if(!ee.prototype.kk.call(this,a,y,x))return!1;if(Ir(this,a,this.xc,!0,!1,this.naturalBounds,this.actualBounds),x){if(this.svg.getElementsByTagName("text").length===0)return!0;for(y=this.svg.getElementsByClassName("gojs-td"),x=0;xa.transactionLevel&&to("Ending transaction without having started a transaction: "+x);var E=a.transactionLevel===1,b=a.currentTransaction;E&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,b));var z=0;if(0=E&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),E===0||y.count!==0&&y.get(y.count-1)===b||(y.add(b),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,b);else{a.Fe=!0;try{a.isEnabled&&b!==null&&(b.isComplete=!0,b.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,b),a.Fe=!1}b!==null&&b.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&b!==null){for(a=z,x=b.changes,b=x.count-1;b>=a;b--)y=x.M(b),y!==null&&y.undo(),x.ka(),x.mb(b);x.freeze()}return!1}Ct.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var a=this.history;a.ka();for(var y=a.count-1;y>this.historyIndex;y--){var x=a.M(y);x!==null&&x.clear(),a.mb(y),this.rq=!0}a.freeze()}},an.prototype.canUndo=function(){if(!this.isEnabled||0=this.transactionLevel&&!this.tt&&(a=a.diagram,a!==null&&a.pi===!1||to("Change not within a transaction: "+x.toString()))}},an.prototype.skipsEvent=function(a){if(a===null||0>a.change.value)return!0;if(a=a.object,a===null)return!1;if(a.layer!==void 0){if(a=a.layer,a!==null&&a.isTemporary)return!0}else if(a.isTemporary)return!0;return!1},ve.Object.defineProperties(an.prototype,{models:{get:function(){return this.Pt.iterator}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},transactionToUndo:{get:function(){return 0<=this.historyIndex&&this.historyIndex<=this.history.count-1?this.history.M(this.historyIndex):null}},transactionToRedo:{get:function(){return this.historyIndexb||Math.abs(y.y-a.y)>E},ve.Object.defineProperties(nn.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof ce&&(this.H=a)}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},isActive:{get:function(){return this.nb},set:function(a){this.nb=a}},transactionResult:{get:function(){return this.wm},set:function(a){this.wm=a}}}),nn.prototype.startTransaction=nn.prototype.Ea,nn.className="Tool";function Ve(){nn.call(this),this.name="ToolManager",this.hb=new on,this.ob=new on,this.Hb=new on,this.F=this.V=850,this.o=new un(2,2).ja(),this.Ha=5e3,this.ia=Jn,this.u=bi,this.Mp=this.j=null,this.zj=-1}pe(Ve,nn),Ve.prototype.initializeStandardTools=function(){},Ve.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof Ji&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},Ve.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===Ni&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===ki){y.bubbles=!0;return}if(this.gestureBehavior===Ni)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,E=0;Eb.right&&(x.x-=E.width+5/y.scale),x.xb.bottom?x.y-(E.height+5/y.scale):x.y+20/y.scale,x.yx.pointsCount)){var E=a.diagram;if(!E.isReadOnly){var b=a.Oe;if(b!==null){var z=null,tt=null;x.fromNode===null&&(z=Cr(a,x.i(0),!1),z!==null&&(tt=z.part));var ot=null,rt=null;x.toNode===null&&(ot=Cr(a,x.i(x.pointsCount-1),!0),ot!==null&&(rt=ot.part)),b.isValidLink(tt,z,rt,ot)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=tt,z!==null&&(x.fromPortId=z.portId),x.toNode=rt,ot!==null&&(x.toPortId=ot.portId),x.fromPort!==E.Mx&&E.R("LinkRelinked",x,E.Mx),x.toPort!==E.Nx&&E.R("LinkRelinked",x,E.Nx)):bs(b,tt,z,rt,ot):bs(b,null,null,null,null)}}}}Un.prototype.doDragOver=function(){};function Ns(a,y){var x=a.diagram;a.dragsLink&&Gr(a,!0),zo(a);var E=a.findDragOverObject(y),b=x.lastInput;if(b.targetObject=E,E!==null){b.handled=!1;for(var z=E;z!==null;){var tt=z.mouseDrop;if(tt!==null&&(tt(b,z),b.handled))break;fa(a,b,z),z=es(z)}}else z=x.mouseDrop,z!==null&&z(b);if(a.isActive||bo!==null){for(b=(a.copiedParts||a.draggedParts).iterator;b.next();)z=b.key,z instanceof hn&&z.linksConnected.each(function(ot){ot.suspendsRouting=!1});if(a.doDropOnto(y,E),a.isActive||bo!==null){for(a=ke.alloc(),y=x.selection.iterator;y.next();)E=y.value,E instanceof hn&&Ga(x,E,a);ke.free(a)}}}function fa(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof di||(x=a.mouseDrop,x!==null&&x(y))}function Ga(a,y,x){var E=!1;if(x=y.getAvoidableRect(x),a.viewportBounds.Re(x)&&(E=!0),a=a.Nu(x,function(b){return b.part},function(b){return b instanceof Je},!0,function(b){return b instanceof Je},E),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}Un.prototype.doDropOnto=function(){},Un.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;this.simulatedMouseMove(y.event,y.documentPoint,y.targetDiagram)||this.currentPart===null||this.draggedParts===null||(this.mayCopy()?(fr(this,!1),jd(a,this.copiedParts),or(this,this.copiedParts,!1),eu(a,this.copiedParts)):this.mayMove()?(ar(this),or(this,this.draggedParts,!0)):this.mayDragOut()?(fr(this,!1),or(this,this.copiedParts,!1)):ar(this),dr(this,a.lastInput.documentPoint))}},Un.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;if(!this.simulatedMouseUp(y.event,y.documentPoint,y.targetDiagram)){y=!1;var x=this.mayCopy();if(x&&this.copiedParts!==null?(ar(this),fr(this,!0),jd(a,this.copiedParts),or(this,this.copiedParts,!1),eu(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0}))):(y=!0,ar(this),this.mayMove()&&(or(this,this.draggedParts,!0),dr(this,a.lastInput.documentPoint))),this.Ym=!0,Ns(this,a.lastInput.documentPoint),this.isActive){var E=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&$s(this),a.Ya(),eu(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",E)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},Un.prototype.simulatedMouseMove=function(a,y,x){if(bo===null)return!1;var E=bo.diagram;x instanceof ce||(x=null);var b=ms;return x!==b&&(b!==null&&b!==E&&(b.ug(),bo.isDragOutStarted=!1,b=b.toolManager.findTool("Dragging"),b!==null&&b.doSimulatedDragLeave()),ms=x,x!==null&&x!==E&&(cr(),b=x.toolManager.findTool("Dragging"),b!==null&&(Co.contains(b)||Co.add(b),b.doSimulatedDragEnter())),this.doUpdateCursor(null)),x===null||x===E||!x.allowDrop||x.isReadOnly||!x.allowInsert?!1:(E=x.toolManager.findTool("Dragging"),E!==null&&(a!==null&&(a.targetTouches!==void 0&&(0tt&&(tt=at),ut>ot&&(ot=ut))}}for(E===1/0?z.h(0,0,0,0):z.h(E,b,tt-E,ot-b),E=z.x+z.width/2,b=z.y+z.height/2,ke.free(z),z=a.Fr,tt=new oi,ot=Wt.alloc(),rt=y.iterator;rt.next();)at=rt.value,at instanceof Je&&at.canCopy()&&(ut=x.I(at),ut!==null&&(ut.points=at.points,Qd(ut,z.x-E,z.y-b),ut.suspendsRouting=!0,tt.add(ut,a.Pd())));for(y=y.iterator;y.next();)at=y.value,at.Zc()&&at.canCopy()&&(rt=x.I(at),rt!==null&&(at=at.location,ot.h(z.x-(E-at.x),z.y-(b-at.y)),rt.location=ot,rt.Va(),tt.add(rt,a.Pd(ot))));Wt.free(ot),a.copiedParts=tt,co(a,tt.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Qd(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}Un.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},Un.prototype.computeMove=function(a,y,x,E){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,E):new Wt},ve.Object.defineProperties(Un.prototype,{isCopyEnabled:{get:function(){return this.ob},set:function(a){this.ob=a}},copiesEffectiveCollection:{get:function(){return this.u},set:function(a){this.u=a}},dragOptions:{get:function(){return this.ia},set:function(a){this.ia=a}},isGridSnapEnabled:{get:function(){return this.dragOptions.isGridSnapEnabled},set:function(a){this.dragOptions.isGridSnapEnabled=a}},isComplexRoutingRealtime:{get:function(){return this.hb},set:function(a){this.hb=a}},isGridSnapRealtime:{get:function(){return this.dragOptions.isGridSnapRealtime},set:function(a){this.dragOptions.isGridSnapRealtime=a}},gridSnapCellSize:{get:function(){return this.dragOptions.gridSnapCellSize},set:function(a){this.dragOptions.gridSnapCellSize.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSize=a)}},gridSnapCellSpot:{get:function(){return this.dragOptions.gridSnapCellSpot},set:function(a){this.dragOptions.gridSnapCellSpot.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSpot=a)}},gridSnapOrigin:{get:function(){return this.dragOptions.gridSnapOrigin},set:function(a){this.dragOptions.gridSnapOrigin.D(a)||(a=a.J(),this.dragOptions.gridSnapOrigin=a)}},dragsLink:{get:function(){return this.dragOptions.dragsLink},set:function(a){this.dragOptions.dragsLink=a}},dragsTree:{get:function(){return this.dragOptions.dragsTree},set:function(a){this.dragOptions.dragsTree=a}},copyCursor:{get:function(){return this.F},set:function(a){this.F=a}},moveCursor:{get:function(){return this.Oc},set:function(a){this.Oc=a}},nodropCursor:{get:function(){return this.Pc},set:function(a){this.Pc=a}},currentPart:{get:function(){return this.V},set:function(a){this.V=a}},copiedParts:{get:function(){return this.o},set:function(a){this.o=a}},draggedParts:{get:function(){return this.Ha},set:function(a){this.Ha=a}},draggingParts:{get:function(){return this.copiedParts!==null?this.copiedParts.Lf():this.draggedParts!==null?this.draggedParts.Lf():this.te}},draggedLink:{get:function(){return this.diagram.draggedLink},set:function(a){this.diagram.draggedLink=a}},isDragOutStarted:{get:function(){return this.Hb},set:function(a){this.Hb=a}},startPoint:{get:function(){return this.Fr},set:function(a){this.Fr.D(a)||this.Fr.assign(a)}},delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}}}),Un.prototype.getDraggingSource=Un.prototype.Az;var bo=null,ms=null;Un.className="DraggingTool",Co=new on,wr("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),Ve.prototype.doCancel=function(){bo!==null&&bo.doCancel(),nn.prototype.doCancel.call(this)};function Po(){nn.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Je,y=new pi;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new pi,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new hn,y=new pi,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=No,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new hn,y=new pi,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=No,a.add(y),a.selectable=!1,a.layerName="Tool",this.Di=a,this.o=y,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new oi,this.Of=this.gj=this.Pf=null}pe(Po,nn),Po.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},Po.prototype.copyPortProperties=function(a,y,x,E,b){if(a!==null&&y!==null&&x!==null&&E!==null){var z=y.Df(),tt=un.alloc();tt.width=y.naturalBounds.width*z,tt.height=y.naturalBounds.height*z,E.desiredSize=tt,un.free(tt),b?(E.toSpot=y.toSpot,E.toEndSegmentLength=y.toEndSegmentLength):(E.fromSpot=y.fromSpot,E.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=ri,z=Wt.alloc(),x.location=y.ga(ri,z),Wt.free(z),E.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,E,b)}},Po.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=No,y.fromSpot=We,y.toSpot=We),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},Po.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},Po.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof hn){var y=this.targetPort.part;this.isForwards?this.copyPortProperties(y,this.targetPort,this.temporaryToNode,this.temporaryToPort,!0):this.copyPortProperties(y,this.targetPort,this.temporaryFromNode,this.temporaryFromPort,!1)}else this.isForwards?this.setNoTargetPortProperties(this.temporaryToNode,this.temporaryToPort,!0):this.setNoTargetPortProperties(this.temporaryFromNode,this.temporaryFromPort,!1);(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},Po.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof hn))return null;for(;a!==null;){var E=y?a.toLinkable:a.fromLinkable;if(E===!0&&(a.portId!==null||a instanceof hn)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(E===!1)break;a=a.panel}return null},Po.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,E=this.portGravity;0>=E&&(E=.1);var b=this,z=y.og(x,E,function(gt){return b.findValidLinkablePort(gt,a)},null,!0);for(E=1/0,y=null,z=z.iterator;z.next();){var tt=z.value,ot=tt.part;if(ot instanceof hn){var rt=tt.ga(ri,Wt.alloc()),at=x.x-rt.x,ut=x.y-rt.y;Wt.free(rt),rt=at*at+ut*ut,rtx){if(this.originalLink!==null&&a===this.originalFromNode&&y===this.originalFromPort)return!0;if(y=y.portId,y===null&&(y=""),a.Mo(y).count>=x)return!1}return!0},Po.prototype.isValidTo=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.toLinkable!==!0))return!1;var x=y.toMaxLinks;if(1/0>x){if(this.originalLink!==null&&a===this.originalToNode&&y===this.originalToPort)return!0;if(y=y.portId,y===null&&(y=""),a.Sd(y).count>=x)return!1}return!0},Po.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},Po.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof hn))return!1;a=a.portId,a===null&&(a="");var E=y.part;if(!(E instanceof hn))return!1;for(y=y.portId,y===null&&(y=""),y=E.Sd(y);y.next();)if(E=y.value,E.fromNode===x&&E.fromPortId===a)return!0;return!1},Po.prototype.isValidLink=function(a,y,x,E){if(!this.isValidFrom(a,y)||!this.isValidTo(x,E)||!(y===null||E===null||(y.fromLinkableSelfNode&&E.toLinkableSelfNode||!this.isInSameNode(y,E))&&(y.fromLinkableDuplicates&&E.toLinkableDuplicates||!this.isLinked(y,E)))||this.originalLink!==null&&(a!==null&&this.isLabelDependentOnLink(a,this.originalLink)||x!==null&&this.isLabelDependentOnLink(x,this.originalLink))||a!==null&&x!==null&&(a.data===null&&x.data!==null||a.data!==null&&x.data===null)||!this.isValidCycle(a,x,this.originalLink))return!1;if(a!==null){var b=a.linkValidation;if(b!==null&&!b(a,y,x,E,this.originalLink))return!1}return x!==null&&(b=x.linkValidation,b!==null&&!b(a,y,x,E,this.originalLink))?!1:(b=this.linkValidation,b!==null?b(a,y,x,E,this.originalLink):!0)},Po.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var x=a.labeledLink;if(x===null)return!1;if(x===y)return!0;var E=new en;return E.add(a),kr(this,x,y,E)};function kr(a,y,x,E){if(y===x)return!0;var b=y.fromNode;return b!==null&&b.isLinkLabel&&(E.add(b),kr(a,b.labeledLink,x,E))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(E.add(y),kr(a,y.labeledLink,x,E))))}Po.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var E=this.diagram.validCycle;if(E!==zg){if(E===dp){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=y.linksConnected;E.next();){var b=E.value;if(b!==x&&b.isTreeLink&&b.toNode===y)return!1}return!xr(this,a,y,x,!0)}if(E===cp){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=a.linksConnected;E.next();)if(b=E.value,b!==x&&b.isTreeLink&&b.fromNode===a)return!1;return!xr(this,a,y,x,!0)}if(E===lp)return a===y?a=!0:(E=new en,E.add(y),a=Kr(this,E,a,y,x)),!a;if(E===up)return!xr(this,a,y,x,!1);if(E===hp)return a===y?a=!0:(E=new en,E.add(y),a=qa(this,E,a,y,x)),!a}return!0};function xr(a,y,x,E,b){if(y===x)return!0;if(y===null||x===null)return!1;for(var z=y.linksConnected;z.next();){var tt=z.value;if(tt!==E&&(!b||tt.isTreeLink)&&tt.toNode===y&&(tt=tt.fromNode,tt!==y&&xr(a,tt,x,E,b)))return!0}return!1}function Kr(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==b&&tt.toNode===x&&(tt=tt.fromNode,tt!==x&&Kr(a,y,tt,E,b)))return!0}return!1}function qa(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==b){var ot=tt.fromNode;if(tt=tt.toNode,ot=ot===x?tt:ot,ot!==x&&qa(a,y,ot,E,b))return!0}}return!1}ve.Object.defineProperties(Po.prototype,{portGravity:{get:function(){return this.te},set:function(a){0<=a&&(this.te=a)}},isUnconnectedLinkValid:{get:function(){return this.Ha},set:function(a){this.Ha=a}},linkingCursor:{get:function(){return this.u},set:function(a){this.u=a}},temporaryLink:{get:function(){return this.Ci},set:function(a){this.Ci=a}},temporaryFromNode:{get:function(){return this.Bi},set:function(a){(this.Bi=a)&&(this.j=a.port)}},temporaryFromPort:{get:function(){return this.j},set:function(a){if(this.j!==null){var y=this.j.panel;if(y!==null){var x=y.O.indexOf(this.j);y.mb(x),y.Gb(x,a)}}this.j=a}},temporaryToNode:{get:function(){return this.Di},set:function(a){(this.Di=a)&&(this.o=a.port)}},temporaryToPort:{get:function(){return this.o},set:function(a){if(this.o!==null){var y=this.o.panel;if(y!==null){var x=y.O.indexOf(this.o);y.mb(x),y.Gb(x,a)}}this.o=a}},originalLink:{get:function(){return this.Hb},set:function(a){this.Hb=a}},originalFromNode:{get:function(){return this.hb},set:function(a){this.hb=a}},originalFromPort:{get:function(){return this.ob},set:function(a){this.ob=a}},originalToNode:{get:function(){return this.Oc},set:function(a){this.Oc=a}},originalToPort:{get:function(){return this.Pc},set:function(a){this.Pc=a}},isForwards:{get:function(){return this.ia},set:function(a){this.ia=a}},validPortsCache:{get:function(){return this.hy}},targetPort:{get:function(){return this.Pf},set:function(a){this.Pf=a}},linkValidation:{get:function(){return this.gj},set:function(a){this.gj=a}},portTargeted:{get:function(){return this.Of},set:function(a){this.Of=a}}}),Po.className="LinkingBaseTool";function lo(){Po.call(this),this.name="Linking",this.V={},this.F=null,this.K=Cs,this.Xd=null}pe(lo,Po),lo.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return a.isReadOnly||a.isModelReadOnly||!a.allowLink||!a.model.xs()||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize()?!1:this.findLinkablePort()!==null},lo.prototype.findLinkablePort=function(){var a=this.diagram,y=this.startObject;if(y===null&&(y=a.ic(a.firstInput.documentPoint,null,null)),y===null||(a=y.part,!(a instanceof hn)))return null;var x=this.direction;if(x===Cs||x===ta){var E=this.findValidLinkablePort(y,!1);if(E!==null||this.startObject===a&&(E=a.port,this.findValidLinkablePort(E,!1)))return this.isForwards=!0,E}return(x===Cs||x===Ta)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},lo.prototype.doActivate=function(){var a=this.diagram,y=this.findLinkablePort();y===null?this.stopTool():(this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.isForwards?(this.temporaryToNode!==null&&(this.temporaryToNode.location=a.lastInput.documentPoint),this.originalFromPort=y,y=this.originalFromPort.part,y instanceof hn&&(this.originalFromNode=y),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(this.temporaryFromNode!==null&&(this.temporaryFromNode.location=a.lastInput.documentPoint),this.originalToPort=y,y=this.originalToPort.part,y instanceof hn&&(this.originalToNode=y),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),a.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),a.add(this.temporaryToNode),this.temporaryToNode&&this.temporaryToNode.Va(),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0)},lo.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},lo.prototype.doStop=function(){Po.prototype.doStop.call(this),this.startObject=null},lo.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,E=null,b=null,z=null;try{var tt=this.targetPort=this.findTargetPort(this.isForwards);if(tt!==null){var ot=tt.part;ot instanceof hn&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),E=ot,b=tt):(y=ot,x=tt,this.originalToNode!==null&&(E=this.originalToNode,b=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(E=this.originalToNode,b=this.originalToPort);y!==null||E!==null?(z=this.insertLink(y,x,E,b),z!==null?(tt===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),z.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",z)):this.doNoLink(y,x,E,b)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),z&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},lo.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof Je)return a.isTreeLink;var y=this.diagram;return y===null?!0:(a=y.partManager.getLinkCategoryForData(a),y=y.partManager.findLinkTemplateForCategory(a),y!==null?y.isTreeLink:!0)},lo.prototype.insertLink=function(a,y,x,E){return this.diagram.partManager.insertLink(a,y,x,E)},lo.prototype.doNoLink=function(){},ve.Object.defineProperties(lo.prototype,{archetypeLinkData:{get:function(){return this.V},set:function(a){this.V=a}},archetypeLabelNodeData:{get:function(){return this.F},set:function(a){this.F=a}},direction:{get:function(){return this.K},set:function(a){this.K=a}},startObject:{get:function(){return this.Xd},set:function(a){this.Xd=a}}});var Cs=new Ye(lo,"Either",0),ta=new Ye(lo,"ForwardsOnly",0),Ta=new Ye(lo,"BackwardsOnly",0);lo.className="LinkingTool",lo.Either=Cs,lo.ForwardsOnly=ta,lo.BackwardsOnly=Ta;function ns(){Po.call(this),this.name="Relinking";var a=new pi;a.figure="Diamond",a.desiredSize=rs,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new pi,a.figure="Diamond",a.desiredSize=rs,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new ke}pe(ns,Po),ns.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Je){var y="RelinkFrom",x=null;if(a.isSelected&&!this.diagram.isReadOnly){var E=a.selectionObject;E!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null&&(x=this.makeAdornment(E,!1),a.bh(y,x)))}x===null&&a.Jf(y),y="RelinkTo",x=null,a.isSelected&&!this.diagram.isReadOnly&&(E=a.selectionObject,E!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null?(x=this.makeAdornment(E,!0),a.bh(y,x)):x.v())),x===null&&a.Jf(y)}},ns.prototype.makeAdornment=function(a,y){var x=new Ji;return x.type=Ke.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},ns.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowRelink||!a.model.xs()||!a.lastInput.left)return!1;var y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom");return y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo")),y!==null},ns.prototype.doActivate=function(){var a=this.diagram;if(this.originalLink===null){var y=this.handle;if(y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom"),y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo"))),y===null)return;var x=y.part;if(!(x instanceof Ji&&x.adornedPart instanceof Je))return;this.handle=y,this.isForwards=x===null||x.category==="RelinkTo",this.originalLink=x.adornedPart}this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.originalFromPort=this.originalLink.fromPort,this.originalFromNode=this.originalLink.fromNode,this.originalToPort=this.originalLink.toPort,this.originalToNode=this.originalLink.toNode,this.Ew.set(this.originalLink.actualBounds),this.originalLink!==null&&0y.firstPickIndex+1&&x=x.x)y=0>=x.y?y+225:1<=x.y?y+135:y+180;else if(1<=x.x)0>=x.y?y+=315:1<=x.y&&(y+=45);else if(0>=x.y)y+=270;else if(1<=x.y)y+=90;else break t;0>y?y+=360:360<=y&&(y-=360),a.cursor=22.5>y?"e-resize":67.5>y?"se-resize":112.5>y?"s-resize":157.5>y?"sw-resize":202.5>y?"w-resize":247.5>y?"nw-resize":292.5>y?"n-resize":337.5>y?"ne-resize":"e-resize"}else if(a instanceof Ke)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},Ms.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowResize&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},Ms.prototype.doActivate=function(){var a=this.diagram;this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null&&(this.adornedObject=this.handle.part.adornedObject,this.adornedObject!==null&&(a.isMouseCaptured=!0,a.animationManager.Cc(),this.Ea(this.name),this.Xq.set(this.adornedObject.ga(this.handle.alignment.gv())),this.Tn.set(this.adornedObject.part.location),this.Dw.set(this.adornedObject.desiredSize),this.pt=this.computeCellSize(),this.rt=this.computeMinSize(),this.qt=this.computeMaxSize(),this.isActive=!0))},Ms.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},Ms.prototype.stopTransaction=function(){var a=this.diagram,y=nn.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Ms.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},Ms.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,Wt.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),a.bd(),Wt.free(b)}},Ms.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,Wt.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),Wt.free(b),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},Ms.prototype.resize=function(a){var y=this.diagram,x=this.adornedObject;if(x!==null){if(x.desiredSize=a.size,a=x.part,a.Va(),x=x.ga(this.handle.alignment.gv()),a instanceof di){var E=new on;if(E.add(a),!this.dragsMembers&&a.placeholder===null){var b=new st;b.dragsMembers=!1}y.moveParts(E,this.oppositePoint.copy().re(x),!0,b)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},Ms.prototype.computeResize=function(a,y,x,E,b,z){y.Mc()&&(y=ri);var tt=this.adornedObject.naturalBounds,ot=tt.x,rt=tt.y,at=tt.x+tt.width,ut=tt.y+tt.height,gt=1;if(!z){gt=tt.width;var mt=tt.height;0>=gt&&(gt=1),0>=mt&&(mt=1),gt=mt/gt}return mt=Wt.alloc(),_t.No(a.x,a.y,ot,rt,b.width,b.height,mt),a=tt.copy(),0>=y.x?0>=y.y?(a.x=Math.max(mt.x,at-E.width),a.x=Math.min(a.x,at-x.width),a.width=Math.max(at-a.x,x.width),a.y=Math.max(mt.y,ut-E.height),a.y=Math.min(a.y,ut-x.height),a.height=Math.max(ut-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(gt*a.width,E.height),x.height),a.width=a.height/gt):(a.width=Math.max(Math.min(a.height/gt,E.width),x.width),a.height=gt*a.width),a.x=at-a.width,a.y=ut-a.height)):1<=y.y?(a.x=Math.max(mt.x,at-E.width),a.x=Math.min(a.x,at-x.width),a.width=Math.max(at-a.x,x.width),a.height=Math.max(Math.min(mt.y-rt,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(gt*a.width,E.height),x.height),a.width=a.height/gt):(a.width=Math.max(Math.min(a.height/gt,E.width),x.width),a.height=gt*a.width),a.x=at-a.width)):(a.x=Math.max(mt.x,at-E.width),a.x=Math.min(a.x,at-x.width),a.width=at-a.x,z||(a.height=Math.max(Math.min(gt*a.width,E.height),x.height),a.width=a.height/gt,a.y=rt+.5*(ut-rt-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(mt.x-ot,E.width),x.width),a.y=Math.max(mt.y,ut-E.height),a.y=Math.min(a.y,ut-x.height),a.height=Math.max(ut-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(gt*a.width,E.height),x.height),a.width=a.height/gt):(a.width=Math.max(Math.min(a.height/gt,E.width),x.width),a.height=gt*a.width),a.y=ut-a.height)):1<=y.y?(a.width=Math.max(Math.min(mt.x-ot,E.width),x.width),a.height=Math.max(Math.min(mt.y-rt,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(gt*a.width,E.height),x.height),a.width=a.height/gt):(a.width=Math.max(Math.min(a.height/gt,E.width),x.width),a.height=gt*a.width))):(a.width=Math.max(Math.min(mt.x-ot,E.width),x.width),z||(a.height=Math.max(Math.min(gt*a.width,E.height),x.height),a.width=a.height/gt,a.y=rt+.5*(ut-rt-a.height))):0>=y.y?(a.y=Math.max(mt.y,ut-E.height),a.y=Math.min(a.y,ut-x.height),a.height=ut-a.y,z||(a.width=Math.max(Math.min(a.height/gt,E.width),x.width),a.height=gt*a.width,a.x=ot+.5*(at-ot-a.width))):1<=y.y&&(a.height=Math.max(Math.min(mt.y-rt,E.height),x.height),z||(a.width=Math.max(Math.min(a.height/gt,E.width),x.width),a.height=gt*a.width,a.x=ot+.5*(at-ot-a.width))),Wt.free(mt),a},Ms.prototype.computeReshape=function(){var a=ze;return this.adornedObject instanceof pi&&(a=Mv(this.adornedObject)),!(a===kn||this.diagram.lastInput.shift)},Ms.prototype.computeMinSize=function(){var a=this.adornedObject.minSize.copy(),y=this.minSize;return!isNaN(y.width)&&y.width>a.width&&(a.width=y.width),!isNaN(y.height)&&y.height>a.height&&(a.height=y.height),a},Ms.prototype.computeMaxSize=function(){var a=this.adornedObject.maxSize.copy(),y=this.maxSize;return!isNaN(y.width)&&y.widthx?x+=360:360<=x&&(x-=360),x=Math.round(45*Math.round(x/45));var E=this.handleDistance;return x===0?y.x=a.naturalBounds.width+E:x===45?(y.x=a.naturalBounds.width+E,y.y=a.naturalBounds.height+E):x===90?y.y=a.naturalBounds.height+E:x===135?(y.x=-E,y.y=a.naturalBounds.height+E):x===180?y.x=-E:x===225?(y.x=-E,y.y=-E):x===270?y.y=-E:x===315&&(y.x=a.naturalBounds.width+E,y.y=-E),a.ga(y)},Fr.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Wt(NaN,NaN),this.isActive=a.isMouseCaptured=!1},Fr.prototype.stopTransaction=function(){var a=this.diagram,y=nn.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Fr.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Fr.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},Fr.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){a.delaysLayout=!1;var y=this.computeRotate(a.lastInput.documentPoint);this.rotate(y),a.Ya(),this.transactionResult=this.name,a.R("PartRotated",this.adornedObject,this.originalAngle)}this.stopTool()},Fr.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var x=y.locationObject,E=y.rotateObject;(x===E||x.rg(E))&&(x=this.Tn.copy(),y.location=x.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},Fr.prototype.computeRotate=function(a){a=this.rotationPoint.ab(a)-this.handleAngle;var y=this.adornedObject.panel;y!==null&&(a-=y.li()),360<=a?a-=360:0>a&&(a+=360),y=Math.min(Math.abs(this.snapAngleMultiple),180);var x=Math.min(Math.abs(this.snapAngleEpsilon),y/2);return!this.diagram.lastInput.shift&&0y-x&&(a=(Math.floor(a/y)+1)*y)),360<=a?a-=360:0>a&&(a+=360),a},ve.Object.defineProperties(Fr.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof Ji))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof Ji)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},snapAngleMultiple:{get:function(){return this.ia},set:function(a){this.ia=a}},snapAngleEpsilon:{get:function(){return this.V},set:function(a){this.V=a}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(a){this.kr=a.copy()}},handleAngle:{get:function(){return this.u},set:function(a){this.u=a}},handleDistance:{get:function(){return this.F},set:function(a){this.F=a}}}),Fr.className="RotatingTool",wr("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function tl(){nn.call(this),this.name="ClickSelecting"}pe(tl,nn),tl.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},tl.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},tl.className="ClickSelectingTool";function zs(){nn.call(this),this.name="Action",this.pk=null}pe(zs,nn),zs.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,x=a.ic(y.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E});return x!==null&&x.isActionable?(this.pk=x,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},zs.prototype.doMouseDown=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionDown!==null&&y.actionDown(a,y))}else this.canStart()&&this.doActivate()},zs.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionMove!==null&&y.actionMove(a,y))}},zs.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;if(y===null)return;a.targetObject=y,y.actionUp!==null&&y.actionUp(a,y),this.standardMouseClick(function(x){for(;x.panel!==null&&(!x.isActionable||x!==y);)x=x.panel;return x},function(x){return x===y})}this.stopTool()},zs.prototype.doCancel=function(){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionCancel!==null&&y.actionCancel(a,y),this.stopTool())},zs.prototype.doStop=function(){this.pk=null},zs.className="ActionTool";function _l(){nn.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Wt(0,0)}pe(_l,nn),_l.prototype.canStart=function(){if(!this.isEnabled||this.archetypeNodeData===null)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.lastInput.left||this.isBeyondDragSize())return!1;if(this.isDoubleClick){if(a.lastInput.clickCount===1&&(this.mw=a.lastInput.viewPoint.copy()),a.lastInput.clickCount!==2||this.isBeyondDragSize(this.mw))return!1}else if(a.lastInput.clickCount!==1)return!1;return!(a.currentTool!==this&&a.Ol(a.lastInput.documentPoint,!0)!==null)},_l.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},_l.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var E=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof Vn)x.Zc()&&(Tu(x),E=x.copy(),E!==null&&y.add(E));else if(x!==null){var b=y.model.copyNodeData(x);De(b)&&(y.model.xf(b),E=y.Lc(b))}if(E!==null){var z=Wt.allocAt(a.x,a.y);this.isGridSnapEnabled&&eg(this.diagram,E,a,z),E.location=z,y.allowSelect&&(y.clearSelection(!0),E.isSelected=!0),Wt.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",E)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return E},ve.Object.defineProperties(_l.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){this.Ri=a}},isDoubleClick:{get:function(){return this.o},set:function(a){this.o=a}},isGridSnapEnabled:{get:function(){return this.j},set:function(a){this.j=a}}}),_l.className="ClickCreatingTool";function ma(){nn.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new Vn;a.layerName="Tool",a.selectable=!1;var y=new pi;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}pe(ma,nn),ma.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(!a.allowSelect)return!1;var y=a.lastInput;return!(!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.timestamp-a.firstInput.timestampb.right&&(x.x-=E.width+5/y.scale),x.xb.bottom&&(x.y-=E.height+5/y.scale),x.ya.lastInput.clickCount)):!1},yo.prototype.doStart=function(){Gu=this,this.textBlock!==null&&this.doActivate()},yo.prototype.doActivate=function(){if(!this.isActive){var a=this.diagram;if(a!==null){var y=this.textBlock;if(y===null&&(y=a.ic(a.lastInput.documentPoint)),y!==null&&y instanceof Go&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=qo;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var E=new ke(this.textBlock.ga(be),this.textBlock.ga(eo));a.tv(E),x.show(y,a,this),this.currentTextEditor=x}}}},yo.prototype.doCancel=function(){this.stopTool()},yo.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},yo.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Ca)},yo.prototype.acceptText=function(a){switch(a){case Ca:this.qa===ih?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===qo||this.qa===zh||this.qa===Fs)&&(this.qa=ql,Lu(this));break;case Il:case du:case nh:(du!==a||this.textBlock.isMultiline!==!0)&&(this.qa===qo||this.qa===zh||this.qa===Fs)&&(this.qa=ql,Lu(this))}};function Lu(a){var y=a.textBlock,x=a.diagram,E=a.currentTextEditor;if(y!==null&&E!==null){var b=y.text,z="";E.valueFunction!==null&&(z=E.valueFunction()),a.isValidText(y,b,z)?(a.Ea(a.name),a.qa=ih,a.transactionResult=a.name,y.text=z,a.doSuccess(b,z),x!==null&&x.R("TextEdited",y,b),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=zh,a.doError(b,z))}}yo.prototype.doError=function(a,y){var x=this.textBlock;x.errorFunction!==null&&x.errorFunction(this,a,y),(a=this.currentTextEditor)&&a.show(x,this.diagram,this)},yo.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},yo.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=Oi,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},yo.prototype.doStop=function(){Gu=null},yo.prototype.isValidText=function(a,y,x){var E=this.textValidation;return E!==null&&!E(a,y,x)?!1:(E=a.textValidation,!!(E===null||E(a,y,x)))},yo.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},ve.Object.defineProperties(yo.prototype,{textBlock:{get:function(){return this.ia},set:function(a){this.ia=a}},currentTextEditor:{get:function(){return this.o},set:function(a){this.o=a}},defaultTextEditor:{get:function(){return this.j},set:function(a){this.j=a}},starting:{get:function(){return this.V},set:function(a){this.V=a}},textValidation:{get:function(){return this.vj},set:function(a){this.vj=a}},minimumEditorScale:{get:function(){return this.u},set:function(a){this.u=a}},selectsTextOnActivate:{get:function(){return this.F},set:function(a){this.F=a}},state:{get:function(){return this.qa},set:function(a){this.qa!==a&&(this.qa=a)}}}),yo.prototype.measureTemporaryTextBlock=yo.prototype.Lx;var Il=new Ye(yo,"LostFocus",0),Ca=new Ye(yo,"MouseDown",1),nh=new Ye(yo,"Tab",2),du=new Ye(yo,"Enter",3),bd=new Ye(yo,"SingleClick",0),cu=new Ye(yo,"SingleClickSelected",1),To=new Ye(yo,"DoubleClick",2),Oi=new Ye(yo,"StateNone",0),qo=new Ye(yo,"StateActive",1),Fs=new Ye(yo,"StateEditing",2),ql=new Ye(yo,"StateValidating",3),zh=new Ye(yo,"StateInvalid",4),ih=new Ye(yo,"StateValidated",5),Gu=null;yo.className="TextEditingTool",yo.LostFocus=Il,yo.MouseDown=Ca,yo.Tab=nh,yo.Enter=du,yo.SingleClick=bd,yo.SingleClickSelected=cu,yo.DoubleClick=To,yo.StateNone=Oi,yo.StateActive=qo,yo.StateEditing=Fs,yo.StateValidating=ql,yo.StateInvalid=zh,yo.StateValidated=ih,wr("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function Ma(a){Fa||(Zs(),Fa=!0),this.H=ah,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=va,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new en,this.ce=new sa,this.ce.Yd=this,this.Ei=new en,this.pu=new en,this.Sr=new en,this.pr=new en,a&&Object.assign(this,a)}Ma.prototype.Xe=function(a){this.H=a},Ma.prototype.canStart=function(){return!0};function Bs(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),aa(a.H),a.zb=!0)}function Oo(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,E=a.Zd.contains("Model");E&&(a.Ok=!0,a.Pk===va?(y.isViewportUnconstrained=!0,y.vc.clear(),y.add(x,"position",x.position.copy().offset(0,-200),x.position),y.add(x,"opacity",0,1)):a.Pk===Yc&&y.vc.clear(),a.Qw=!!(a.Pk===uc&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),E&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),Dd(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,E=y.vc.get(x),x.autoScale!==Ua&&E!==null&&(delete E.start.scale,delete E.end.scale),Ge.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&Ya(x),Zc(x),a.zb=!1,y.start(),y.bc&&(oh(a),x.Ya(),Uc(y,0),Ml(x,!0),rh(a),x.R("AnimationStarting",a)))}))}}function gu(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function Ol(a,y,x,E){a.isTicking||gu(a)||y instanceof Je&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,E,!1)}Ct=Ma.prototype,Ct.fv=function(a){return this.ce.fv(a)},Ct.Xu=function(a){return this.ce.Xu(a)};function hd(a,y){function x(){if(0z?z+=360:rt+=360),z=b(x,z,rt-z,E)%360,tt=b(x,tt,at-tt,E),ot=b(x,ot,ut-ot,E),x=b(x,a,y-a,E),"hsla("+z+", "+tt+"%, "+ot+"%, "+x+")"}function Zs(){function a(x,E,b,z,tt,ot){x.position=new Wt(z(tt,E.x,b.x-E.x,ot),z(tt,E.y,b.y-E.y,ot))}var y=new oi;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,E,b,z,tt,ot){tta&&li(a,">= 1",Ma,"duration"),this.Dg=a}},isAnimating:{get:function(){return this.bc}},isTicking:{get:function(){return this.vq}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a}},defaultAnimation:{get:function(){return this.ce}},activeAnimations:{get:function(){return this.Ei}},initialAnimationStyle:{get:function(){return this.Pk},set:function(a){this.Pk=a}}}),Ma.prototype.stopAnimation=Ma.prototype.Cc;var uo=null,Fa=!1,va=new Ye(Ma,"Default",1),uc=new Ye(Ma,"AnimateLocations",2),Yc=new Ye(Ma,"None",3);Ma.className="AnimationManager",Ma.defineAnimationEffect=function(a,y){Fa||(Zs(),Fa=!0),uo.add(a,y)},Ma.Default=va,Ma.AnimateLocations=uc,Ma.None=Yc;function sa(a){this.vu=this.Nw=this.Yd=this.H=null,this.Xk=this.bc=this.j=!1,this.cn=this.Qd=0,this.Lp=this.ot=Mh,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=Js,this.vc=new oi,this.Tt=new oi,this.yl=new en,this.Ut=new en,this.dw=Gd,a&&Object.assign(this,a)}sa.prototype.suspend=function(){this.Xk=!0},sa.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,hc(this,!0),oh(this.Yd),Ml(this.H),rh(this.Yd),this.H.redraw()};function Dd(a,y){if(a.Tt.clear(),a.Wk=!1,a.au=0,a.Gd=NaN,0a.cn?a.Gd:E-a.Qd;y&&(b=a.gw,ba.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function Uc(a,y){for(var x=a.Gd,E=a.vc.iterator,b=a.Wk;E.next();){var z=E.key;if(!(z instanceof ee&&z.diagram===null)){var tt=E.value,ot=b?tt.end:tt.start;tt=b?tt.start:tt.end;var rt=uo,at;for(at in tt)at==="position"&&(tt["position:placeholder"]||tt["position:nodeCollapse"])||rt.get(at)===null||rt.get(at)(z,ot[at],tt[at],a.Lp,y,x,a)}}}Ct.stop=function(){return this.bc?(this.Ml(!0),this):this},Ct.Ml=function(a){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var y=this.H,x=this.Yd;this.Xk=this.bc=x.Ok=!1,oh(x);for(var E=this.vc,b=this.yl.iterator;b.next();)y.remove(b.value);for(b=this.Ut.iterator;b.next();)b.value.v();b=this.ho,E=E.iterator;for(var z=uo;E.next();){var tt=E.key,ot=E.value,rt=b?ot.end:ot.start,at=b?ot.start:ot.end,ut=ot.Ku,gt;for(gt in at)if(z.get(gt)!==null){var mt=gt;!ot.Hu||mt!=="position:nodeCollapse"&&mt!=="position:placeholder"||(mt="position"),z.get(mt)(tt,rt[gt],ut[gt]!==void 0?ut[gt]:ot.Hu?rt[gt]:at[gt],this.Lp,this.Gd,this.Gd,this)}ot.Hu&&ut.location!==void 0&&tt instanceof Vn&&(tt.location=ut.location),ot.nv&&tt instanceof Vn&&tt.Zb(!1)}if(y.As.clear(),fd(y,!1),y.Ya(),y.N(),Ml(y,!0),x.defaultAnimation===this){for(gt=x.pr.iterator;gt.next();)b=gt.value,b.Tg!==null&&(b.points=b.Tg,b.Tg=null);x.pr.clear()}Ml(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),rh(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),Dd(this,null),x.Ml(this),y.$b())}},Ct.Cj=function(a,y){var x=y.actualBounds,E=null;if(y instanceof di&&(E=y.placeholder),E!==null?(x=E.ga(be),E=E.padding,x.x+=E.left,x.y+=E.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Wt(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof di)for(a=a.memberParts;a.next();)E=a.value,E instanceof hn&&this.Cj(E,y)},Ct.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof di&&(x=y.placeholder),x!==null){var E=x.ga(be);x=x.padding,E.x+=x.left,E.y+=x.top,this.add(a,"position:placeholder",a.position,E,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),E=this.vc,E.contains(a)&&(E.I(a).nv=!0),a instanceof di)for(a=a.memberParts;a.next();)E=a.value,E instanceof hn&&this.Aj(E,y)}},Ct.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},ve.Object.defineProperties(sa.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&li(a,">= 1",sa,"duration"),this.Dg=a}},reversible:{get:function(){return this.ho},set:function(a){this.ho=a}},runCount:{get:function(){return this.cu},set:function(a){0a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function gf(a,y,x,E){return a===E?y+x:x*(-Math.pow(2,-10*a/E)+1)+y}sa.className="Animation",sa.EaseLinear=function(a,y,x,E){return x*a/E+y},sa.EaseInOutQuad=Mh,sa.EaseInQuad=function(a,y,x,E){return x*(a/=E)*a+y},sa.EaseOutQuad=function(a,y,x,E){return-x*(a/=E)*(a-2)+y},sa.EaseInExpo=function(a,y,x,E){return a===0?y:x*Math.pow(2,10*(a/E-1))+y},sa.EaseOutExpo=gf;function Gh(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}Gh.className="AnimationState";function fu(a,y,x){this.xd=null,this.rf=a,this.so=x||Fd,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=Hh))}fu.prototype.copy=function(){var a=new fu(this.rf);a.so=this.so;var y=this.uk;if(y!==null){var x={};y.duration!==void 0&&(x.duration=y.duration),y.finished!==void 0&&(x.finished=y.finished),y.easing!==void 0&&(x.easing=y.easing),a.uk=x}return a};function Vc(a,y){a=a.uk,a!==null&&(a.duration&&(y.duration=a.duration),a.finished&&(y.finished=a.finished),a.easing&&(y.easing=a.easing))}ve.Object.defineProperties(fu.prototype,{propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},animationSettings:{get:function(){return this.uk},set:function(a){this.uk=a}},startCondition:{get:function(){return this.so},set:function(a){this.so=a}}});var Fd=new Ye(fu,"Default",1),Hh=new Ye(fu,"Immediate",2),gd=new Ye(fu,"Bundled",3);fu.className="AnimationTrigger",fu.Default=Fd,fu.Immediate=Hh,fu.Bundled=gd;function Hs(a){Ko(this),this.H=null,this.Pa=new on,this.xa="",this.pb=1,this.o=!1,this.j=this.Uh=this.u=this.Oi=this.Ni=this.Mi=this.Li=this.Ji=this.Ki=this.Ii=this.Qi=this.Hi=this.Pi=this.Gi=this.Fi=!0,this.Zq=[],a&&Object.assign(this,a)}Ct=Hs.prototype,Ct.clear=function(){for(var a=this.Pa,y=0;y=a)return y;for(var x=0,E=0,b=0,z=0,tt=0,ot=this.Pa.iterator;ot.next();){var rt=ot.value;rt instanceof di?b++:rt instanceof hn?E++:rt instanceof Je?z++:rt instanceof Ji?tt++:x++}if(ot="",0x.Oq||ot.height*b>x.Oq?y.gc(a,x):(b=y.actualBounds,z=y.naturalBounds,b.width===0||b.height===0||isNaN(b.x)||isNaN(b.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(Ir(y,a,y.areaBackground,!0,!0,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.areaBackground===null&&y.background===null&&(Ir(y,a,"rgba(0,0,0,0.3)",!0,!1,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),Ir(y,a,y.background,!0,!1,z,b),a.fillRect(0,0,z.width/2,z.height/2),x.ws()||(y=1/(x.m11*x.m22-x.m12*x.m21),a.transform(x.m22*y,-x.m12*y,-x.m21*y,x.m11*y,y*(x.m21*x.dy-x.m22*x.dx),y*(x.m12*x.dx-x.m11*x.dy)))))),E&&(a.restore(),a.Vc(!0))}},Ct.g=function(a,y,x,E,b){var z=this.diagram;z!==null&&z.cb(Te,a,this,y,x,E,b)},Ct.oi=function(a,y,x){var E=this.Pa;if(y.Ig=this,this===null&&Oa(y),a>=E.count)a=E.count;else if(E.M(a)===y)return-1;return E.Gb(a,y),y.Vo(x),E=this.diagram,E!==null&&(x?E.N():E.oi(y)),cc(this,a,y),a},Ct.pc=function(a,y,x){if(!x&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,x);var E=this.Pa;if(0>a||a>=E.length){if(a=E.indexOf(y),0>a)return-1}else if(E.M(a)!==y&&(a=E.indexOf(y),0>a))return-1;return y.Wo(x),E.mb(a),E=this.diagram,E!==null&&(x?E.N():E.pc(y)),y.Ig=null,Oa(y),a};function cc(a,y,x){if(y=kg(a,y,x),x instanceof di&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var E=-1,b=a.Pa.s,z=b.length,tt=0;ttE&&ot.containingGroup===x&&(E=tt,0<=y))break}!(0>E)&&E=b)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var z=y-1,tt=NaN;0<=z&&(tt=a.M(z).zOrder,!!isNaN(tt));)z--;for(var ot=y+1,rt=NaN;otE)for(;;){if(z===-1||tt<=E){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(tt=NaN;0<=--z&&(tt=a.M(z).zOrder,isNaN(tt)););}else if(!isNaN(rt)&&rt=E){if(ot--,ot===y)break;return a.mb(y),a.Gb(ot,x),ot}for(rt=NaN;++ota||1=a)return y;for(var x=this.Wa.iterator;x.next();)y+=` + `+x.value.toString(a-1);return y};function Yh(a,y){if(Nr){if(y!=null||oe("Diagram setup requires an argument DIV."),a.Ka!==null&&oe("Diagram has already completed setup."),typeof y=="string"?a.Ka=Ge.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:oe("No DIV or DIV id supplied: "+y),a.Ka===null&&oe("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&oe("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Ge.ResizeObserver){var x=Si(function(){a.$b()},250);a.ol=new Ge.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}Ge.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var E="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=E,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=Ge.go;var b=new bu(a);if(b.style!==void 0&&(b.style.position="absolute",b.style.top="0px",b.style.left="0px",Ge.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),b.style.zIndex="2",b.style.userSelect="none",b.style.MozUserSelect="none",b.style.touchAction="none",b.style.letterSpacing="normal !important",b.style.wordSpacing="normal !important"),a.ta=b,a.ib=b.context,E=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),Dg(a,a.Aa,a.ya),a.Ka.insertBefore(b.Oa,a.Ka.firstChild),b=new bu(null),b.width=1,b.height=1,a.jw=b,a.oy=b.context,Nr){b=ao("div");var z=ao("div");b.style.position="absolute",b.style.overflow="auto",b.style.width=a.Aa+"px",b.style.height=a.ya+"px",b.style.zIndex="1",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(b),b.appendChild(z),b.onscroll=vf,b.addEventListener("pointerdown",Qc),b.H=a,b.uy=!0,b.vy=!0,a.ku=b,a.hu=z}a.hk=Si(function(){a.Yh=null,a.N()},300),a.Ov=Si(function(){Zc(a)},250),a.preventDefault=function(tt){return tt.preventDefault(),!1},a.$j=function(tt){if(a.isEnabled){var ot=jl(a,tt,!0);ot.bubbles=!0;var rt=0,at=0;ot.delta=0,tt.deltaX!==void 0?(tt.deltaX!==0&&(rt=0Math.abs(tt.deltaY)?-rt:-at):tt.wheelDeltaX!==void 0?(tt.wheelDeltaX!==0&&(rt=0Math.abs(tt.wheelDeltaY)?-rt:-at):tt.wheelDelta!==void 0&&tt.wheelDelta!==0&&(ot.delta=0ot||Math.abs(at.y-tt.screenY)>ot)?a.yq++:a.yq=1,rt.clickCount=a.yq,a.tw=tt.timeStamp,a.uw.sg(tt.screenX,tt.screenY),a.doMouseDown(),tt.button===1?tt.preventDefault():tu(rt,tt)}},a.dk=function(tt){if(a.isEnabled){a.Vk=!0;var ot=a.oj;if(ot[0]===null||ot[0].pointerId!==tt.pointerId&&ot[0].pointerType===tt.pointerType){if(ot[1]!==null&&ot[1].pointerId===tt.pointerId){ot[1]=tt;return}if(ot[0]===null)ot[0]=tt;else return}else ot[0]=tt;if(ot[0].pointerId===tt.pointerId){ot=Jc(a,tt,!1,!1,!1,ot[1]!==null);var rt=Ge.document.elementFromPoint(tt.clientX,tt.clientY)||null;rt!==null&&rt.shadowRoot!==void 0&&rt.shadowRoot!==null&&(rt=rt.shadowRoot.elementFromPoint(tt.clientX,tt.clientY));var at=a,ut=tt;rt&&rt.H&&(ut=tt,at=rt.H),ot.targetDiagram=at,Bd(a,ut,ot),ot.targetObject=null,a.doMouseMove(),tu(ot,tt)}}},a.fk=function(tt){if(a.isEnabled){a.Vk=!0;var ot=tt.pointerType==="touch"||tt.pointerType==="pen",rt=a.Yt;if(ot&&a.qu)delete rt[tt.pointerId],tt.preventDefault();else if(rt=a.oj,rt[0]===null||rt[0].pointerId!==tt.pointerId&&rt[0].pointerType===tt.pointerType)rt[1]!==null&&rt[1].pointerId===tt.pointerId&&(rt[1]=null);else{rt[0]=null,rt=Jc(a,tt,!1,!0,!0,!1);var at=Ge.document.elementFromPoint(tt.clientX,tt.clientY)||null;at!==null&&at.shadowRoot!==void 0&&at.shadowRoot!==null&&(at=at.shadowRoot.elementFromPoint(tt.clientX,tt.clientY)),at!==null&&at.H instanceof ce&&at.H!==a&&Bd(at.H,tt,rt),at===null&&(at=tt.target),Bd(a,tt,rt),rt.clickCount=a.yq,rt.targetDiagram=Tg(tt,at),rt.targetObject=null,a.doMouseUp(),tu(rt,tt),ot&&(a.wq=!1)}}},a.ek=function(tt){if(a.isEnabled){a.Vk=!1;var ot=a.Yt;ot[tt.pointerId]&&delete ot[tt.pointerId],ot=a.oj,ot[0]!==null&&ot[0].pointerId===tt.pointerId&&(ot[0]=null),ot[1]!==null&&ot[1].pointerId===tt.pointerId&&(ot[1]=null),tt.pointerType!=="touch"&&tt.pointerType!=="pen"&&(tt=a.currentTool,tt.cancelWaitAfter(),tt.standardMouseOver())}},a.ck=function(tt){var ot=a.oj;ot[0]!==null&&ot[0].pointerId===tt.pointerId?(ot[0]=null,a.wq=!1):ot[1]!==null&&ot[1].pointerId===tt.pointerId&&(ot[1]=null)},a.Vp=E.Z["d"+Wg[1]+Wg[2]+"wI"+ag.slice(1,5)]["b"+Dx.slice(1,y)](E.Z,Hg,y,y),E.Vc(!0),pf(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}ce.prototype.addEventListener=function(a,y,x,E){a.addEventListener(y,x,{capture:E,passive:!1})},ce.prototype.removeEventListener=function(a,y,x,E){a.removeEventListener(y,x,{capture:E})};function pf(a){var y=a.ta.Oa;y instanceof HTMLCanvasElement||(y=a.div),a.addEventListener(y,"pointerdown",a.ui,!1),a.addEventListener(y,"pointermove",a.dk,!1),a.addEventListener(y,"pointerup",a.fk,!1),a.addEventListener(y,"pointerout",a.ek,!1),a.addEventListener(y,"pointercancel",a.ck,!1),a.addEventListener(y,"pointerenter",a.bz,!1),a.addEventListener(y,"pointerleave",a.cz,!1),a.addEventListener(y,"wheel",a.$j,!1),a.addEventListener(y,"keydown",a.Qz,!1),a.addEventListener(y,"keyup",a.Rz,!1),a.addEventListener(y,"blur",a.Ny,!1),a.addEventListener(y,"focus",a.Oy,!1),a.addEventListener(y,"selectstart",function(x){return x.preventDefault(),!1},!1),a.addEventListener(y,"contextmenu",function(x){return x.preventDefault(),!1},!1),a.addEventListener(Ge,"resize",a.Ov,!1)}function Ya(a){30wt&&(this.position=zt.h(-(y.scrollWidth-this.Aa)+It-this.Aa/b+ut,this.position.y))),a.vy&&this.allowVerticalScroll&&(otEt&&(this.position=zt.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/b+z))),Wt.free(zt),this.vd=!0,this.Ee=this.qr=!1,E=this.documentBounds,b=this.viewportBounds,ut=E.right,wt=b.right,z=E.bottom,Et=b.bottom,tt=E.x,gt=b.x,ot=E.y,E=b.y,mt>=rt&&tt>=gt&&ut<=wt&&(x.style.width="1px"),yt>=at&&ot>=E&&z<=Et&&(x.style.height="1px"))}},ce.prototype.computeBounds=function(a){return a===void 0&&(a=new ke),aa(this),Xc(this,a)};function Xc(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,E=a.Wa.s,b=E.length,z=0;zx&&(y=x),ya.maxScale&&(y=a.maxScale),y):y===Sc?(y=rt>ot?(tt-a.Db)/E:(z-a.Db)/b,y>x&&(y=x),ya.maxScale&&(y=a.maxScale),y):a.scale}ce.prototype.zoomToFit=function(){var a=this.sj;this.sj=Gd,this.scale=Uh(this,nu),a!==Gd&&($l(this,!1),bg(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Ct=ce.prototype,Ct.BA=function(a,y){y===void 0&&(y=nu);var x=a.width,E=a.height;if(!(x===0||E===0||isNaN(x)&&isNaN(E))){var b=1;if(y===nu||y===Sc)if(isNaN(x))b=this.viewportBounds.height*this.scale/E;else if(isNaN(E))b=this.viewportBounds.width*this.scale/x;else{b=this.Aa;var z=this.ya;b=y===Sc?z/E>b/x?(z-(this.Be?this.Db:0))/E:(b-(this.gf?this.Db:0))/x:Math.min(z/E,b/x)}this.scale=b,this.position=new Wt(a.x,a.y)}},Ct.Jy=function(a,y){this.Va();var x=this.documentBounds,E=this.viewportBounds;this.position=new Wt(x.x+(a.x*x.width+a.offsetX)-(y.x*E.width-y.offsetX),x.y+(a.y*x.height+a.offsetY)-(y.y*E.height-y.offsetY))},Ct.zz=function(a){if(a instanceof ee){this.eq=a;var y=Wt.alloc();this.fq=this.op(a.ga(be,y)),Wt.free(y)}else this.eq=null,this.fq=Vl};function bg(a,y,x,E,b,z){var tt=Wt.allocAt(a.pa.x,a.pa.y),ot=tt.x,rt=tt.y;if(a.eq!==null){var at=Wt.alloc();at=a.eq.ga(be,at),ot=at.x-a.fq.x/a.scale,rt=at.y-a.fq.y/a.scale,b=We,Wt.free(at)}(z||a.scrollMode===Gd)&&(b.sb()&&(x>y.width&&(ot=y.x+(b.x*y.width+b.offsetX)-(b.x*x-b.offsetX)),E>y.height&&(rt=y.y+(b.y*y.height+b.offsetY)-(b.y*E-b.offsetY))),b=a.rj,z=x-y.width,xy.left?ot=y.left:oty.top?rt=y.top:rty;y++){var x=a.De.iterator;if(x===null||a.De.count===0)break;a.De=new en,a.Nv(x,a.De)}a.nodes.each(function(E){E instanceof di&&E.U&65536&&(E.U=E.U^65536)})}}Ct.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof di||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof di&&x.isVisible()&&Id(this,x);for(a.reset();a.next();)x=a.value,x instanceof Je&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x));for(a.reset();a.next();)x=a.value,x instanceof Ji&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function Id(a,y){for(var x=Ii(),E=Ii(),b=y.memberParts;b.next();){var z=b.value;z.isVisible()&&(z instanceof di?(ou(z)||il(z)||wc(z))&&Id(a,z):z instanceof Je?z.fromNode===y||z.toNode===y?E.push(z):x.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=x.length,b=0;bte&&(It=ln.left,Yt=ln.right),zt.height>ge&&(Vt=ln.top,Xt=ln.bottom)):(It=ln.left,Yt=ln.right,Vt=ln.top,Xt=ln.bottom);var Cn=zt.width+It+Yt,vn=zt.height+Vt+Xt;ln=a.scale;var Xe=Cn>rt/ln,Oe=vn>at/ln;if(!(z||a.gf||a.Be||Xe||Oe))return!0;It=zt.x-It,rt=ut.x,Yt=zt.right+Yt,at=ut.right+tt,Vt=zt.y-Vt;var hi=ut.y;zt=zt.bottom+Xt,ut=ut.bottom+ot;var si="1px";if(Xt="1px",a.scrollMode===Gd&&(Xe||Oe)&&(Xe&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Xe=1,It+1at+1&&(Xe=Math.max((Yt-at)*ln+a.Aa,Xe)),te+tt+1ut+1&&(Xe=Math.max((zt-ut)*ln+a.ya,Xe)),ge+ot+1at+1&&(tt=Math.max((Yt-at)*ln+a.Aa,tt)),te+1ut+1&&(ot=Math.max((zt-ut)*ln+tt,ot)),ge+1at+1&&(y=a.position.x*ln)),a.tn)switch(a.bu){case"negative":y=-(wt.scrollWidth-y-wt.clientWidth);break;case"reverse":y=wt.scrollWidth-y-wt.clientWidth}return wt.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(ge+1ut+1&&(wt.scrollTop=a.position.y*ln)),rt=a.Aa,at=a.ya,wt.style.width=rt+(a.gf?a.Db:0)+"px",wt.style.height=at+(a.Be?a.Db:0)+"px",x!==rt||E!==at||a.animationManager.zb?(x=ke.allocAt(b,gt,mt,yt),a.onViewportBoundsChanged(x,a.viewportBounds,ln,z),ke.free(x),!1):!0}Ct=ce.prototype,Ct.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&oe("Cannot add part "+a.toString()+" to "+this.toString()+". It is already a part of "+y.toString()),y=this.Qj(a.layerName),y===null&&(y=this.Qj("")),y===null&&oe('Cannot add a Part when unable find a Layer named "'+a.layerName+'" and there is no default Layer'),a.layer!==y)){var x=y.oi(99999999,a,a.diagram===this);0<=x&&this.cb(Qe,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},Ct.oi=function(a){this.partManager.oi(a);var y=this;cg(a,function(x){Rd(y,x)}),(a instanceof Ji||a instanceof di&&a.placeholder!==null)&&a.v(),a.data!==null&&cg(a,function(x){ay(y.partManager,x)}),il(a)!==!0&&wc(a)!==!0||this.De.add(a),j1(a,!0,this),z1(a)?(a.actualBounds.w()&&this.N(pg(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(pg(a,a.actualBounds)),this.$b()},Ct.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&cg(a,function(x){ly(y.partManager,x,y)}),this.De.remove(a),z1(a)?(a.actualBounds.w()&&this.N(pg(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(pg(a,a.actualBounds)),this.$b()},Ct.remove=function(a){Fg(this,a,!0)};function Fg(a,y,x){var E=y.layer;E!==null&&E.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),x&&y.Lj(),x=E.pc(-1,y,!1),0<=x&&a.cb(rn,"parts",E,y,null,x,null),a=y.layerChanged,a!==null&&a(y,E,null))}Ct.Is=function(a,y){if(y===void 0&&(y=!1),dn(a))for(var x=a.length,E=0;EE&&this.Ya(),this},Ct.Cy=function(a,y){Bg(this,a,y),a.Xe(this);var x=this.Wa,E=x.indexOf(a);0<=E&&(x.remove(a),this.cc!==null&&this.cb(rn,"layers",this,a,null,E,null));var b=x.count,z;for(z=0;zE&&this.Ya(),this},Ct.kA=function(a){if(a.diagram!==this&&oe("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,x=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var E=y.value,b=E.layerName;b!==a.name?E.layerName=b:E.layerName=""}this.cc!==null&&this.cb(rn,"layers",this,a,null,x,null),this.N(),this.Ya()}}},Ct.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},Ct.Yw=function(a){return this.pf===null&&(this.pf=new on),this.pf.add(a),this.model.Pe(a),this},Ct.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Ct.Pe=function(a){return this.zg===null&&(this.zg=new on),this.zg.add(a),this},Ct.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Ct.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==ye&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,E=0;Egt.Pa.indexOf(yt)&>.oi(mt,yt,wt):(yt.isSelected=!1,yt.isHighlighted=!1,yt.Wb(),gt.pc(wt?mt:-1,yt,wt)))}else gt instanceof ce?typeof mt=="number"&&yt instanceof Hs&&(y?(yt.Xe(this),this.Wa.Gb(mt,yt)):this.Wa.mb(mt)):oe("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else E!==ye&&oe("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},ce.prototype.Ea=function(a){return this.undoManager.Ea(a)},ce.prototype.eb=function(a){return this.undoManager.eb(a)},ce.prototype.Kf=function(){return this.undoManager.Kf()},ce.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var E=!1;try{a(this),E=!0}finally{E?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},ce.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},ce.prototype.rp=function(){this.partManager.rp()};function ig(a,y,x){var E=a.animationManager;if(a.vb||a.ld)a.Ca=x,Yu(a),a.N(),a.Ee=!0,E.zb&&(gu(E)||E.ce.add(E.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,Yu(a);else{a.vb=!0;var b=a.viewportBounds.copy(),z=a.Aa,tt=a.ya,ot=a.zoomPoint.x,rt=a.zoomPoint.y,at=a.contentAlignment;isNaN(ot)&&(at.$c()?at.Hf(ga)?ot=0:at.Hf($r)&&(ot=z-1):ot=at.sb()?at.x*(z-1):z/2),isNaN(rt)&&(at.$c()?at.Hf(no)?rt=0:at.Hf(Mo)&&(rt=tt-1):rt=at.sb()?at.y*(tt-1):tt/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(x=a.scaleComputation(a,x)),xa.maxScale&&(x=a.maxScale),z=Wt.allocAt(a.pa.x+ot/y-ot/x,a.pa.y+rt/y-rt/x),a.position=z,Wt.free(z),a.Ca=x,Yu(a),a.vb=!1,a.onViewportBoundsChanged(b,a.viewportBounds,y,!1),$l(a,!1),E.zb&&(gu(E)||E.ce.add(E.H,"scale",y,a.Ca))}}ce.prototype.onViewportBoundsChanged=function(a,y,x,E){if(!a.D(y)){E===void 0&&(E=!1),E||(this.Ee=!0),this.vd=!0;var b=this.layout;b===null||!b.isViewportSized||this.autoScale!==Ua||a.width===y.width&&a.height===y.height||b.C(),b=this.currentTool,this.Vk===!0&&b instanceof Ve&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Ln(b,this)),this.vb||this.invalidateViewport(a,y),Eu(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.canvasSize.width=Math.round(a.width*x),this.fc.canvasSize.height=Math.round(a.height*x),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=E,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function Eu(a,y){var x=a.fe;if(x!==null&&x.visible){for(var E=un.alloc(),b=1,z=1,tt=x.O.s,ot=tt.length,rt=0;rtut||(pv(at.figure)?z=z*ut/_t.vx(z,ut):b=b*ut/_t.vx(b,ut))}if(tt=x.gridCellSize,E.h(z*tt.width,b*tt.height),y!==void 0)b=y.width,z=y.height,a=y.x,tt=y.y;else{if(y=ke.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){ke.free(y);return}b=y.width,z=y.height,a=y.x,tt=y.y,ke.free(y)}x.width=b+2*E.width,x.height=z+2*E.height,y=Wt.alloc(),_t.No(a,tt,0,0,E.width,E.height,y),y.offset(-E.width,-E.height),un.free(E),x.part.location=y,Wt.free(y)}}ce.prototype.clearSelection=function(a){a===void 0&&(a=!1);var y=this.selection;if(y.count!==0){a||this.R("ChangingSelection",y);for(var x=y.Fa(),E=x.length,b=0;b=E&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||Bs(z,"Layout")),a.xh=!1;for(var tt=a.ai.iterator;tt.next();)Rg(a,tt.value,y,E);b.isValidLayout||(!y||b.isRealtime||b.isRealtime===null||E===0?(b.doLayout(a),aa(a),b.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,E===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||E!==0&&E!==1||Oo(z),a.aa=x}}}function Rg(a,y,x,E){if(y!==null){for(var b=y.gl.iterator;b.next();)Rg(a,b.value,x,E);b=y.layout,b===null||b.isValidLayout||(!x||b.isRealtime||E===0?(y.rh=!y.location.w(),b.doLayout(y),y.C(32),Id(a,y),b.isValidLayout=!0):a.xh=!0)}}Ct.yz=function(){for(var a=new on,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function ap(a){function y(b){var z=b.toLowerCase(),tt=new on;x.add(b,tt),x.add(z,tt),E.add(b,b),E.add(z,b)}var x=new oi,E=new oi;y("InitialAnimationStarting"),y("AnimationStarting"),y("AnimationFinished"),y("BackgroundSingleClicked"),y("BackgroundDoubleClicked"),y("BackgroundContextClicked"),y("ClipboardChanged"),y("ClipboardPasted"),y("DocumentBoundsChanged"),y("ExternalObjectsDropped"),y("GainedFocus"),y("InitialLayoutCompleted"),y("LayoutCompleted"),y("LinkDrawn"),y("LinkRelinked"),y("LinkReshaped"),y("LostFocus"),y("Modified"),y("ObjectSingleClicked"),y("ObjectDoubleClicked"),y("ObjectContextClicked"),y("PartCreated"),y("PartResized"),y("PartRotated"),y("SelectionMoved"),y("SelectionCopied"),y("SelectionDeleting"),y("SelectionDeleted"),y("SelectionGrouped"),y("SelectionUngrouped"),y("ChangingSelection"),y("ChangedSelection"),y("SubGraphCollapsed"),y("SubGraphExpanded"),y("TextEdited"),y("TreeCollapsed"),y("TreeExpanded"),y("ViewportBoundsChanged"),y("InvalidateDraw"),a.iw=x,a.hw=E}function Ar(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function Xi(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;oe("Unknown DiagramEvent name: "+y)}Ct.Bj=function(a,y){return a=Xi(this,a),a!==null&&a.add(y),this},Ct.am=function(a,y){a=Xi(this,a),a!==null&&a.remove(y)},Ct.R=function(a,y,x){var E=Xi(this,a),b=new de;if(b.diagram=this,a=Ar(this,a),a!==null&&(b.name=a),y!==void 0&&(b.subject=y),x!==void 0&&(b.parameter=x),y=E.length,y===1)E.M(0)(b);else if(y!==0)for(E=E.Fa(),x=0;x=x.top&&0>=x.left&&0>=x.right&&0>=x.bottom)return y;var E=this.viewportBounds,b=this.scale;E=ke.allocAt(0,0,E.width*b,E.height*b);var z=Wt.allocAt(0,0);if(a.x>=E.x&&a.xE.x+E.width-x.right&&this.allowHorizontalScroll&&(tt=Math.max(this.scrollHorizontalLineChange,1),tt|=0,z.x+=tt,a.x>E.x+E.width-x.right/2&&(z.x+=tt),a.x>E.x+E.width-x.right/4&&(z.x+=4*tt));return a.y>=E.y&&a.yE.y+E.height-x.bottom&&this.allowVerticalScroll&&(tt=Math.max(this.scrollVerticalLineChange,1),tt|=0,z.y+=tt,a.y>E.y+E.height-x.bottom/2&&(z.y+=tt),a.y>E.y+E.height-x.bottom/4&&(z.y+=4*tt)),z.Xa(Js)||(y=new Wt(y.x+z.x/b,y.y+z.y/b)),ke.free(E),Wt.free(z),y},Ct=ce.prototype,Ct.Cs=function(){return null},Ct.av=function(){return null},Ct.bs=function(a,y){this.pj.add(a,y)},Ct.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof di&&(y.$p=null)})};function ku(a,y,x){function E(){var ut=+new Date;for(z=!0,tt.reset();tt.next();)if(!tt.value[0].al){z=!1;break}z||ut-at>rt?y(x,b,ot):Ge.requestAnimationFrame(E)}for(var b=x.callback,z=!0,tt=a.Og.iterator;tt.next();)if(!tt.value[0].al){z=!1;break}if(typeof b!="function"||z)return y(x,b,a);var ot=a,rt=x.callbackTimeout||300,at=+new Date;return Ge.requestAnimationFrame(function(){E()}),null}Ct.Wz=function(a){return Nr?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Ct.Jx=function(a){return a===void 0&&(a={}),ku(this,this.Xz,a)},Ct.Xz=function(a,y,x){var E=zd(x,a,"canvas",null);if(E===null)return null;x=E.Z.canvas;var b=null;if(x!==null)switch(b=a.returnType,b===void 0?b="string":b=b.toLowerCase(),b){case ag+"data":b=E.getImageData(0,0,x.width,x.height);break;case ag:E=(a.document||document).createElement("img"),E.src=x.toDataURL(a.type,a.details),b=E;break;case"blob":return typeof y!="function"&&oe('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof x.toBlob=="function"?(x.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:b=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(b),null):b};function zd(a,y,x,E){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&oe("properties argument must be an Object.");var b=y.size||null,z=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(z="NaN");var tt=y.maxSize;y.maxSize===void 0&&(tt=x==="SVG"?new un(1/0,1/0):new un(2e3,2e3));var ot=y.position||null,rt=y.parts||null,at=y.padding===void 0?1:y.padding,ut=y.background||null,gt=y.omitTemporary;gt===void 0&&(gt=!0);var mt=y.document||document,yt=y.elementFinished||null,wt=y.showTemporary;wt===void 0&&(wt=!gt),y=y.showGrid,y===void 0&&(y=wt),b!==null&&isNaN(b.width)&&isNaN(b.height)&&(b=null),typeof at=="number"?at=new gi(at):at instanceof gi||oe("MakeImage padding must be a Margin or a number."),at.left=Math.max(at.left,0),at.right=Math.max(at.right,0),at.top=Math.max(at.top,0),at.bottom=Math.max(at.bottom,0),a.ib.Vc(!0),gt=new bu(null,mt,void 0,!0);var Et=gt.context;if(!(b||z||rt||ot))return gt.width=a.Aa+Math.ceil(at.left+at.right),gt.height=a.ya+Math.ceil(at.top+at.bottom),x==="SVG"?E===null?null:(E.resize(gt.width,gt.height,gt.width,gt.height),E.ownerDocument=mt,E.hs=yt,$c(a,E.context,at,new un(gt.width,gt.height),a.Ca,a.pa,rt,ut,wt,y),E.context):(a.Xm=!1,$c(a,Et,at,new un(gt.width,gt.height),a.Ca,a.pa,rt,ut,wt,y),a.Xm=!0,gt.context);var zt=a.Pp,It=a.documentBounds.copy();if(It.Fv(a.yb),wt)for(var Yt=a.Wa.s,Vt=Yt.length,Xt=0;Xtzt?(z=zt,b=It.width,It=It.height):(b=tt.width,It=tt.height)):(b=It.width*z,It=It.height*z):(z=zt,b=It.width,It=It.height),at!==null?(b+=ot,It+=Vt):at=new gi(0),tt!==null&&(zt=tt.width,tt=tt.height,isNaN(zt)&&(zt=2e3),isNaN(tt)&&(tt=2e3),isFinite(zt)&&(b=Math.min(b,zt)),isFinite(tt)&&(It=Math.min(It,tt))),gt.width=Math.ceil(b),gt.height=Math.ceil(It),x==="SVG"?E===null?null:(E.resize(gt.width,gt.height,gt.width,gt.height),E.ownerDocument=mt,E.hs=yt,$c(a,E.context,at,new un(Math.ceil(b),Math.ceil(It)),z,Yt,rt,ut,wt,y),E.context):(a.Xm=!1,$c(a,Et,at,new un(Math.ceil(b),Math.ceil(It)),z,Yt,rt,ut,wt,y),a.Xm=!0,gt.context)}ve.Object.defineProperties(ce.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof ft||(a===""&&(a="default"),a=a.toLowerCase(),a!==this.nl&&(this.nl=a,a==="default"||a==="canvas"?(a=this.pj.get("svg"),a!==null&&a.Oa.remove(),this.ta&&(this.ib=this.ta.context)):a==="svg"?(this.pj.contains("svg")?a=this.pj.get("svg"):(a=new Ah(this,Ge.document),this.bs("svg",a)),this.div!==null&&this.div.appendChild(a.Oa),this.ib=a.context,this.ta&&(this.ta.context.setTransform(this.Mb,0,0,this.Mb,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya))):a!=="debug"||this.pj.contains("SVG")||(a=new Ah(this,Ge.document),this.bs("SVG",a),a.Oa.style.backgroundColor="whitesmoke",this.div!==null&&this.div.after(a.Oa)),this.hk()))}},div:{get:function(){return this.Ka},set:function(a){if(this.Ka!==a){var y=this.Ka;y!==null?(y.H=void 0,y.goDiagram=void 0,y.go=void 0,y.innerHTML="",this.ta!==null&&(y=this.ta.Oa,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.ta.mx()),this.ol&&(this.ol.disconnect(),this.ol=null),y=this.toolManager,y!==null&&(y.mouseDownTools.each(function(x){x.cancelWaitAfter()}),y.mouseMoveTools.each(function(x){x.cancelWaitAfter()}),y.mouseUpTools.each(function(x){x.cancelWaitAfter()})),y.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(Ge,"resize",this.Ov,!1),this.removeEventListener(Ge,"wheel",this.$j,!0),ah===this&&(ah=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),Yh(this,a),this.hk())}}},$w:{get:function(){return this.Sq}},pi:{get:function(){return this.hf}},draggedLink:{get:function(){return this.nt},set:function(a){this.nt!==a&&(this.nt=a,a!==null&&(this.Vt=a.fromPort,this.Wt=a.toPort))}},Mx:{get:function(){return this.Vt},set:function(a){this.Vt=a}},Nx:{get:function(){return this.Wt},set:function(a){this.Wt=a}},animationManager:{get:function(){return this.Yd}},undoManager:{get:function(){return this.cc.undoManager}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a,this.cc.skipsUndoManager=a}},delaysLayout:{get:function(){return this.lt},set:function(a){this.lt=a}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1a&&li(a,">= 0",ce,"scrollHorizontalLineChange"),this.iu=a,this.g("scrollHorizontalLineChange",y,a))}},scrollVerticalLineChange:{get:function(){return this.mu},set:function(a){var y=this.mu;y!==a&&(0>a&&li(a,">= 0",ce,"scrollVerticalLineChange"),this.mu=a,this.g("scrollVerticalLineChange",y,a))}},lastInput:{get:function(){return this.cj},set:function(a){this.cj=a}},previousInput:{get:function(){return this.Qg},set:function(a){this.Qg=a}},firstInput:{get:function(){return this.bq},set:function(a){this.bq=a}},currentCursor:{get:function(){return this.it},set:function(a){if(a===""&&(a=this.Op),this.it!==a){var y=this.ta,x=this.Ka;if(y!==null&&x!==null){this.it=a;var E=y.style.cursor;y.style.cursor=a,x.style.cursor=a,y.style.cursor===E&&(y.style.cursor="-webkit-"+a,x.style.cursor="-webkit-"+a,y.style.cursor===E&&(y.style.cursor="-moz-"+a,x.style.cursor="-moz-"+a,y.style.cursor===E&&(y.style.cursor=a,x.style.cursor=a)))}}}},defaultCursor:{get:function(){return this.Op},set:function(a){a===""&&(a="auto");var y=this.Op;y!==a&&(this.Op=a,this.g("defaultCursor",y,a))}},click:{get:function(){return this.zh},set:function(a){var y=this.zh;y!==a&&(this.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.Fh},set:function(a){var y=this.Fh;y!==a&&(this.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.Bh},set:function(a){var y=this.Bh;y!==a&&(this.Bh=a,this.g("contextClick",y,a))}},mouseOver:{get:function(){return this.Qh},set:function(a){var y=this.Qh;y!==a&&(this.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.Oh},set:function(a){var y=this.Oh;y!==a&&(this.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.Nh},set:function(a){var y=this.Nh;y!==a&&(this.Nh=a,this.g("mouseHold",y,a))}},mouseDragOver:{get:function(){return this.Qt},set:function(a){var y=this.Qt;y!==a&&(this.Qt=a,this.g("mouseDragOver",y,a))}},mouseDrop:{get:function(){return this.Lh},set:function(a){var y=this.Lh;y!==a&&(this.Lh=a,this.g("mouseDrop",y,a))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(a){var y=this.xt;y!==a&&(this.xt=a,this.g("handlesDragDropForTopLevelParts",y,a))}},mouseEnter:{get:function(){return this.Mh},set:function(a){var y=this.Mh;y!==a&&(this.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.Ph},set:function(a){var y=this.Ph;y!==a&&(this.Ph=a,this.g("mouseLeave",y,a))}},toolTip:{get:function(){return this.$h},set:function(a){var y=this.$h;y!==a&&(this.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.Ch},set:function(a){var y=this.Ch;y!==a&&(this.Ch=a,this.g("contextMenu",y,a))}},commandHandler:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a,a.Xe(this))}},toolManager:{get:function(){return this.te},set:function(a){this.te!==a&&(this.te=a,a.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(a){var y=this.ob;y!==a&&(this.ob=a,a.diagram=this,this.currentTool===y&&(this.currentTool=a))}},currentTool:{get:function(){return this.hb},set:function(a){var y=this.hb;y&&(y.isActive&&y.doDeactivate(),y.cancelWaitAfter(),y.doStop()),a===null&&(a=this.defaultTool),a!==null&&(this.hb=a,a.diagram=this,a.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(a){var y=this.Nt;if(y!==a)if(0<=a&&!isNaN(a)){if(this.Nt=a,this.g("maxSelectionCount",y,a),!this.undoManager.isUndoingRedoing&&(a=this.selection.count-a,0= 0",ce,"maxSelectionCount")}},nodeSelectionAdornmentTemplate:{get:function(){return this.St},set:function(a){var y=this.St;y!==a&&(this.St=a,this.g("nodeSelectionAdornmentTemplate",y,a))}},groupSelectionAdornmentTemplate:{get:function(){return this.wt},set:function(a){var y=this.wt;y!==a&&(this.wt=a,this.g("groupSelectionAdornmentTemplate",y,a))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kt},set:function(a){var y=this.Kt;y!==a&&(this.Kt=a,this.g("linkSelectionAdornmentTemplate",y,a))}},highlighteds:{get:function(){return this.nw}},isModified:{get:function(){var a=this.undoManager;return a.isEnabled?a.currentTransaction!==null?!0:this.rn&&this.Ce!==a.historyIndex:this.rn},set:function(a){if(this.rn!==a){this.rn=a;var y=this.undoManager;!a&&y.isEnabled&&(this.Ce=y.historyIndex),a||Sf(this)}}},model:{get:function(){return this.cc},set:function(a){var y=this.cc;if(y!==a){this.currentTool.doCancel(),y&&y.undoManager!==a.undoManager&&y.undoManager.isInTransaction&&oe("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=Ag(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var E=this.vb;this.vb=!0,Bs(this.animationManager,"Model"),y&&(this.pf!==null&&this.pf.each(function(z){return y.ik(z)}),y.ik(this.Oc)),this.cc=a,this.partManager=Ig(this.cc.type);for(var b=0;bthis.scale&&(this.scale=a)):li(a,"> 0",ce,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(a){var y=this.Mt;y!==a&&(0 0",ce,"maxScale"))}},zoomPoint:{get:function(){return this.zu},set:function(a){this.zu.D(a)||(this.zu=a=a.J())}},contentAlignment:{get:function(){return this.zk},set:function(a){var y=this.zk;y.D(a)||(this.zk=a=a.J(),this.g("contentAlignment",y,a),$l(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(a){var y=this.pq;y.D(a)||(this.pq=a=a.J(),this.g("initialContentAlignment",y,a))}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new gi(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.Ya(),this.g("padding",y,a))}},partManager:{get:function(){return this.Pc},set:function(a){var y=this.Pc;y!==a&&(a.diagram!==null&&oe("Cannot share PartManagers between Diagrams: "+a.toString()),y&&y.Xe(null),this.Pc=a,a.Xe(this))}},nodes:{get:function(){return this.partManager.nodes.iterator}},links:{get:function(){return this.partManager.links.iterator}},parts:{get:function(){return this.partManager.parts.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;y!==a&&(this.Sc=a,a.diagram=this,a.group=null,this.xh=!0,this.g("layout",y,a),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(a){var y=this.Ht;if(y!==a&&(this.Ht=a,this.g("isTreePathToChildren",y,a),!this.undoManager.isUndoingRedoing))for(a=this.nodes;a.next();)Lp(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==Hd&&a!==vs&&a!==xf&&oe("Unknown Diagram.treeCollapsePolicy: "+a),this.uu=a,this.g("treeCollapsePolicy",y,a))}},Ue:{get:function(){return this.pw},set:function(a){this.pw=a}},avoidanceCellSize:{get:function(){return this.aw},set:function(a){this.Xh=null,this.aw=new un(Math.max(1,a.width),Math.max(1,a.height))}},avoidanceLimit:{get:function(){return this.bw},set:function(a){this.bw=Math.max(1,a)}},autoScrollInterval:{get:function(){return this.vp},set:function(a){var y=this.vp;y!==a&&(this.vp=a,this.g("autoScrollInterval",y,a))}},autoScrollRegion:{get:function(){return this.xp},set:function(a){typeof a=="number"&&(a=new gi(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),ve.Object.defineProperties(ce,{licenseKey:{get:function(){return gp.jc()},set:function(a){gp.add(a.replace(/\s/g,""))}},version:{get:function(){return sg}}}),ce.prototype.makeImageData=ce.prototype.Jx,ce.prototype.makeImage=ce.prototype.Wz,ce.prototype.cacheGroupExternalLinks=ce.prototype.Fu,ce.prototype.addRenderer=ce.prototype.bs,ce.prototype.makeSVG=ce.prototype.av,ce.prototype.makeSvg=ce.prototype.Cs,ce.prototype.stopAutoScroll=ce.prototype.ug,ce.prototype.doAutoScroll=ce.prototype.gs,ce.prototype.isUnoccupied=ce.prototype.Yj,ce.prototype.raiseDiagramEvent=ce.prototype.R,ce.prototype.removeDiagramListener=ce.prototype.am,ce.prototype.addDiagramListener=ce.prototype.Bj,ce.prototype.findTreeRoots=ce.prototype.yz,ce.prototype.layoutDiagram=ce.prototype.Uz,ce.prototype.findTopLevelGroups=ce.prototype.qz,ce.prototype.findTopLevelNodesAndLinks=ce.prototype.rz,ce.prototype.ensureBounds=ce.prototype.Va,ce.prototype.findLinksByExample=ce.prototype.ls,ce.prototype.findNodesByExample=ce.prototype.ms,ce.prototype.findLinkForData=ce.prototype.Kc,ce.prototype.findNodeForData=ce.prototype.ii,ce.prototype.findPartForData=ce.prototype.Lc,ce.prototype.findLinkForKey=ce.prototype.findLinkForKey,ce.prototype.findNodeForKey=ce.prototype.Vb,ce.prototype.findPartForKey=ce.prototype.findPartForKey,ce.prototype.rebuildParts=ce.prototype.Wd,ce.prototype.transformViewToDoc=ce.prototype.Ps,ce.prototype.transformRectDocToView=ce.prototype.zA,ce.prototype.transformDocToView=ce.prototype.op,ce.prototype.centerRect=ce.prototype.es,ce.prototype.scrollToRect=ce.prototype.tv,ce.prototype.scroll=ce.prototype.scroll,ce.prototype.highlightCollection=ce.prototype.Jz,ce.prototype.highlight=ce.prototype.Iz,ce.prototype.selectCollection=ce.prototype.rA,ce.prototype.select=ce.prototype.select,ce.prototype.updateAllRelationshipsFromData=ce.prototype.rp,ce.prototype.updateAllTargetBindings=ce.prototype.updateAllTargetBindings,ce.prototype.commit=ce.prototype.commit,ce.prototype.rollbackTransaction=ce.prototype.Kf,ce.prototype.commitTransaction=ce.prototype.eb,ce.prototype.startTransaction=ce.prototype.Ea,ce.prototype.raiseChanged=ce.prototype.g,ce.prototype.raiseChangedEvent=ce.prototype.cb,ce.prototype.removeChangedListener=ce.prototype.ik,ce.prototype.addChangedListener=ce.prototype.Pe,ce.prototype.removeModelChangedListener=ce.prototype.mA,ce.prototype.addModelChangedListener=ce.prototype.Yw,ce.prototype.findLayer=ce.prototype.Qj,ce.prototype.removeLayer=ce.prototype.kA,ce.prototype.addLayerAfter=ce.prototype.Cy,ce.prototype.addLayerBefore=ce.prototype.Ww,ce.prototype.addLayer=ce.prototype.Al,ce.prototype.moveParts=ce.prototype.moveParts,ce.prototype.copyParts=ce.prototype.Kj,ce.prototype.removeParts=ce.prototype.Is,ce.prototype.remove=ce.prototype.remove,ce.prototype.add=ce.prototype.add,ce.prototype.clearDelayedGeometries=ce.prototype.bx,ce.prototype.setProperties=ce.prototype.nm,ce.prototype.attach=ce.prototype.Du,ce.prototype.set=ce.prototype.set,ce.prototype.resetInputOptions=ce.prototype.Sx,ce.prototype.setInputOption=ce.prototype.sA,ce.prototype.getInputOption=ce.prototype.Ql,ce.prototype.resetRenderingHints=ce.prototype.Tx,ce.prototype.setRenderingHint=ce.prototype.Xx,ce.prototype.getRenderingHint=ce.prototype.Gf,ce.prototype.maybeUpdate=ce.prototype.bd,ce.prototype.requestUpdate=ce.prototype.$b,ce.prototype.delayInitialization=ce.prototype.Xy,ce.prototype.isUpdateRequested=ce.prototype.Pz,ce.prototype.invalidateDocumentBounds=ce.prototype.Ya,ce.prototype.findObjectsNear=ce.prototype.og,ce.prototype.findPartsNear=ce.prototype.mz,ce.prototype.findObjectsIn=ce.prototype.Cf,ce.prototype.findPartsIn=ce.prototype.ux,ce.prototype.findObjectsAt=ce.prototype.ji,ce.prototype.findPartsAt=ce.prototype.lz,ce.prototype.findObjectAt=ce.prototype.ic,ce.prototype.findPartAt=ce.prototype.Ol,ce.prototype.focusObject=ce.prototype.zz,ce.prototype.alignDocument=ce.prototype.Jy,ce.prototype.zoomToRect=ce.prototype.BA,ce.prototype.zoomToFit=ce.prototype.zoomToFit,ce.prototype.diagramScroll=ce.prototype.kx,ce.prototype.focus=ce.prototype.focus;var dh=new oi,Au=null,Nr=Ge.document!==void 0,rg=null,yc="",Ua=new Ye(ce,"None",0),nu=new Ye(ce,"Uniform",1),Sc=new Ye(ce,"UniformToFill",2),zg=new Ye(ce,"CycleAll",10),lp=new Ye(ce,"CycleNotDirected",11),up=new Ye(ce,"CycleNotDirectedFast",12),hp=new Ye(ce,"CycleNotUndirected",13),dp=new Ye(ce,"CycleDestinationTree",14),cp=new Ye(ce,"CycleSourceTree",15),Gd=new Ye(ce,"DocumentScroll",1),Gg=new Ye(ce,"InfiniteScroll",2),Hd=new Ye(ce,"TreeParentCollapsed",21),vs=new Ye(ce,"AllParentsCollapsed",22),xf=new Ye(ce,"AnyParentsCollapsed",23),gp=new on,sg="2.3.10",ag="image",Hg=null,dm=!1;function Ba(){if(Nr){var a=Ge.document.createElement("canvas"),y=a.getContext("2d"),x=$e("7ca11abfd022028846");y[x]=$e("398c3597c01238");for(var E=["5da73c80a36455d7038e4972187c3cae51fd22",Tn.Dx+"4ae6247590da4bb21c324ba3a84e385776",fi.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",_t.za],b=1;5>b;b++)y[$e("7ca11abfd7330390")]($e(E[b-1]),10,15*b);for(y[x]=$e("39f046ebb36e4b"),x=1;5>x;x++)y[$e("7ca11abfd7330390")]($e(E[x-1]),10,15*x);(E.length!==4||E[0][0]!=="5"||E[3][0]!=="7")&&(fi.prototype.Cd=fi.prototype.Eu),Hg=a}}ce.className="Diagram",ce.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Ge.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof ce?y.H:null},ce.inherit=function(a,y){function x(){}if(Object.getPrototypeOf(a).prototype)throw Error(`Used go.Diagram.inherit defining already defined class +`+a);x.prototype=y.prototype,a.prototype=new x,a.prototype.constructor=a},ce.useDOM=function(a){Nr=a?Ge.document!==void 0:!1},ce.isUsingDOM=function(){return Nr},ce.None=Ua,ce.Uniform=nu,ce.UniformToFill=Sc,ce.CycleAll=zg,ce.CycleNotDirected=lp,ce.CycleNotDirectedFast=up,ce.CycleNotUndirected=hp,ce.CycleDestinationTree=dp,ce.CycleSourceTree=cp,ce.DocumentScroll=Gd,ce.InfiniteScroll=Gg,ce.TreeParentCollapsed=Hd,ce.AllParentsCollapsed=vs,ce.AnyParentsCollapsed=xf;function cm(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function lg(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)t:{y="f";var x=Ge[$e("76a715b2f73f148a")][$e("72ba13b5")]||"";if(a.Rc=!0,Nr){var E=ce[$e("76a115b6ed251eaf4692")];if(E)for(var b=gp.iterator;b.next()&&(E=b.value,E=$e(E).split($e("39e9")),!(6>E.length));){var z=$e(E[1]).split(".");if(E[4]!=="7da71ca0")break;var tt=$e(Tn[$e("6cae19")]).split(".");if(z[0]>tt[0]||z[0]===tt[0]&&z[1]>=tt[1]){var ot=Ge[$e("74a900bae4370f8b51")][$e("6fbb13a1c2311e8a57")].toLowerCase();if(tt=ot[$e("73a612b6fb191d")]($e("3aad1ab6e022098b4dc4")),z=$e(E[2]),-1tt&&z!==$e("7da71ca0ad381e90")&&(tt=y[$e("73a612b6fb191d")]($e("76a715b2ef3e149757"))),0>tt&&(tt=y[$e("73a612b6fb191d")]($e("76a715b2ef3e149757"))),0>tt&&(tt=y[$e("73a612b6fb191d")]($e("2bfa41fdb3784bca12"))),0>tt&&(tt=x[$e("73a612b6fb191d")]($e("7baa19a6f76c1988428554"))),a.Rc=!(0<=tt&&ttot),!a.Rc)))break;if(z[0]==="#"){tt=Ge.document.createElement("div");for(var rt=E[0].replace(/[A-Za-z]/g,"");4>rt.length;)rt+="9";if(ot=rt,rt=rt.substr(rt.length-4),E="",E+=["gsh","gsf"][parseInt(rt.substr(0,1),10)%2],E+=["Header","Background","Display","Feedback"][parseInt(rt.substr(0,1),10)%4],tt[$e("79a417a0f0181a8946")]=E,Ge.document[$e("78a712aa")]){Ge.document[$e("78a712aa")][$e("7bb806b6ed32388c4a875b")](tt),rt=Ge.getComputedStyle(tt).getPropertyValue($e("78a704b7e62456904c9b12701b6532a8"));var at=Ge.getComputedStyle(tt).getPropertyValue($e("75b817b0ea2202"));if(Ge.document[$e("78a712aa")][$e("68ad1bbcf533388c4a875b")](tt),rt){if(tt=Ge[$e("77a902b0eb1b1e804a8a")],at==="0."+parseInt(ot,10)%100||rt.indexOf(parseInt(z[1]+z[2],16))!==-1&&rt.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(tt&&tt($e("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(E="."+E,z=0;zE.updateDelay?E.N():E.o||(E.o=!0,setTimeout(function(){return E.redraw()},E.updateDelay))},x.Of=function(){E.observed!==null&&Dt(E)},x.autoScale=nu,x.vb=!1,y&&Object.assign(x,y),x}pe(ft,ce),ft.prototype.computePixelRatio=function(){return 1},ft.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var a=this.ta,y=this.ib;if(a!==null&&y!==null){if(md(this),this.ql===null){var x=new bu(null);x.width=a.width,x.height=a.height,this.ql=x}try{this.ta=this.ql,this.ib=this.ta.context,this.ib.Vc(!0),this.ib.setTransform(1,0,0,1,0,0),this.ib.clearRect(0,0,this.ta.width,this.ta.height),Pt(this)}finally{this.ta=a,this.ib=y}}}ce.prototype.redraw.call(this)},ft.prototype.gc=function(){if(this.Ka===null&&oe("No div specified"),this.ta===null&&oe("No canvas specified"),!(this.ta instanceof Ah)&&(Iv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){md(this);var y=this.ta;a=this.ib,a.Vc(!0),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,y.width,y.height),1>this.updateDelay?Pt(this):this.ql!==null&&(a.drawImage(this.ql.Oa,0,0),y=this.Ab,y.reset(),this.scale!==1&&y.scale(this.scale),this.position.x===0&&this.position.y===0||y.translate(-this.position.x,-this.position.y),a.scale(this.Mb,this.Mb),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.yc()),y=this.Wa.s;for(var x=y.length,E=0;Ea&&(a=0),this.ia!==a&&(this.ia=a)}}}),ft.className="Overview";function Gt(){Un.call(this),this.j=null}pe(Gt,Un),Gt.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||!a.allowMove||!a.allowSelect)return!1;var y=a.observed;if(y===null)return!1;var x=a.lastInput;return!x.left||a.currentTool!==this&&(!this.isBeyondDragSize()||x.isTouchEvent&&x.timestamp-a.firstInput.timestampy.maxScale||(y.scale=a))},Rt.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==Ua?!1:(a=y.scale*a,ay.maxScale?!1:y.allowZoom)},Rt.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===Ua&&(a=y.scale*a,ay.maxScale||(y.scale=a))},Rt.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==Ua?!1:(a=y.scale*a,ay.maxScale?!1:y.allowZoom)},Rt.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;ay.maxScale||(y.scale=a)},Rt.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return ay.maxScale?!1:y.allowZoom},Rt.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,E=a.scale;Bs(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&E===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=xa):(this.Jt=E,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),Oo(y)},Rt.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Rt.prototype.scrollToPart=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.Va(),a===null){try{this.cg!==null&&(this.cg.next()?a=this.cg.value:this.cg=null)}catch(rt){this.cg=null}a===null&&(0a&&(a+=360)),a},Ct.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Ct.qs=function(a,y){return y===void 0&&(y=new Wt),y.assign(a),this.oe.Cd(y),y},Ct.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Ct.Sj=function(a,y,x,E,b){var z=this.transform,tt=1/(z.m11*z.m22-z.m12*z.m21),ot=z.m22*tt,rt=-z.m12*tt,at=-z.m21*tt,ut=z.m11*tt,gt=tt*(z.m21*z.dy-z.m22*z.dx),mt=tt*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,_t.Ff(z.left,z.top,z.right,z.bottom,a,y,x,E,b)):(tt=a*ot+y*at+gt,a=a*rt+y*ut+mt,y=x*ot+E*at+gt,x=x*rt+E*ut+mt,b.h(0,0),E=this.naturalBounds,x=_t.Ff(0,0,E.width,E.height,tt,a,y,x,b),b.transform(z),x)},ee.prototype.measure=function(a,y,x,E){if(ou(this)!==!1){var b=this.Kg,z=b.right+b.left;b=b.top+b.bottom,a=Math.max(a-z,0),y=Math.max(y-b,0),x=Math.max((x||0)-z,0),E=Math.max((E||0)-b,0),z=this.angle,b=this.desiredSize;var tt=this.kq();z===90||z===270?(a=isFinite(b.height)?b.height+tt:a,y=isFinite(b.width)?b.width+tt:y):(a=isFinite(b.width)?b.width+tt:a,y=isFinite(b.height)?b.height+tt:y),b=x||0,tt=E||0;var ot=this instanceof Ke;switch(Sl(this,!0)){case ze:tt=b=0,ot&&(y=a=1/0);break;case Ze:isFinite(a)&&a>x&&(b=a),isFinite(y)&&y>E&&(tt=y);break;case In:isFinite(a)&&a>x&&(b=a),tt=0,ot&&(y=1/0);break;case $n:isFinite(y)&&y>E&&(tt=y),b=0,ot&&(a=1/0)}ot=this.maxSize;var rt=this.minSize;b>ot.width&&rt.widthot.height&&rt.heighta.height||this.Cb>a.width))&&(x=!0)),this.l=x?this.l|256:this.l&-257,this.Ib.w()||oe("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Kh(this,!1),ke.free(z)},Ct=ee.prototype,Ct.eh=function(){};function Va(a,y,x,E,b){if(a.Ib.h(y,x,E,b),!a.desiredSize.w()){var z=a.uc;x=a.Kg,y=x.right+x.left;var tt=x.top+x.bottom;switch(x=z.width+y,z=z.height+tt,E+=y,b+=tt,y=Sl(a,!0),x===E&&z===b&&(y=ze),y){case ze:(x>E||z>b)&&(ys(a,!0),a.measure(x>E?E:x,z>b?b:z,0,0));break;case Ze:ys(a,!0),a.measure(E,b,0,0);break;case In:ys(a,!0),a.measure(E,z,0,0);break;case $n:ys(a,!0),a.measure(x,b,0,0)}}}Ct.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||Rv(x,!0),this.N(),th(a,y)||(x.oh(),this.Pn(x)))},Ct.Pn=function(a){this.portId!==null&&(Rv(a,!0),a instanceof hn&&Y1(a,this))},Ct.gc=function(a,y){if(!pu(this,a,y)&&this.visible){var x=this.opacity;if(x!==0){var E=1;x!==1&&(E=a.globalAlpha,a.globalAlpha=E*x);var b="";this.filter!==""&&(b=a.filter,a.filter=this.filter);var z=this instanceof Ke&&Ud(this),tt=this.Ib;if(z){var ot=this.Ib,rt=this.dc,at=this.areaBackground,ut=this.Ma;at===null&&ut===null||a.yc(),at!==null&&(Ir(this,a,at,!0,!0,rt,ot),at instanceof fo&&at.type===yu?(a.beginPath(),a.rect(ot.x,ot.y,ot.width,ot.height),a.ng(at)):a.fillRect(ot.x,ot.y,ot.width,ot.height)),ut!==null&&(Ir(this,a,ut,!0,!1,rt,ot),ut instanceof fo&&ut.type===yu?(a.beginPath(),a.rect(ot.x,ot.y,ot.width,ot.height),a.ng(ut)):a.fillRect(ot.x,ot.y,ot.width,ot.height)),this.hh(a,y)}if(!z&&(z||tt.width!==0&&tt.height!==0&&!isNaN(tt.x)&&!isNaN(tt.y))){z=this.transform,ot=this.panel,this.l&4096&&la(this),at=this.part,rt=!1;var gt=0;at&&y.Gf("drawShadows")&&(rt=at.isShadowed)&&(ut=at.shadowOffset,gt=Math.max(ut.y,ut.x)*y.scale*y.Mb),ut=this.Dd();var mt;if(!(mt=y.$i||!ut)){var yt=this.naturalBounds;mt=this.wh;var wt=mt.m11,Et=mt.m21,zt=mt.dx,It=mt.m12,Yt=mt.m22,Vt=mt.dy,Xt,te=Xt=0;mt=Xt*wt+te*Et+zt;var ge=Xt*It+te*Yt+Vt;Xt=yt.width+gt,te=0;var ln=Xt*wt+te*Et+zt;Xt=Xt*It+te*Yt+Vt,te=Math.min(mt,ln);var Cn=Math.min(ge,Xt),vn=Math.max(mt+0,ln)-te,Xe=Math.max(ge+0,Xt)-Cn;mt=te,ge=Cn,Xt=yt.width+gt,te=yt.height+gt,ln=Xt*wt+te*Et+zt,Xt=Xt*It+te*Yt+Vt,te=Math.min(mt,ln),Cn=Math.min(ge,Xt),vn=Math.max(mt+vn,ln)-te,Xe=Math.max(ge+Xe,Xt)-Cn,mt=te,ge=Cn,Xt=0,te=yt.height+gt,ln=Xt*wt+te*Et+zt,Xt=Xt*It+te*Yt+Vt,te=Math.min(mt,ln),Cn=Math.min(ge,Xt),vn=Math.max(mt+vn,ln)-te,Xe=Math.max(ge+Xe,Xt)-Cn,mt=te,ge=Cn,gt=y.viewportBounds,yt=gt.x,wt=gt.y,mt=!(mt>gt.width+yt||yt>vn+mt||ge>gt.height+wt||wt>Xe+ge)}if(mt){if(mt=(this.l&256)!==0,a.clipInsteadOfFill&&(mt=!1),this instanceof Go&&(a.font=this.font),mt){if(ge=ot.se()?ot.naturalBounds:ot.actualBounds,vn=Math.max(tt.x,ge.x),Xe=Math.max(tt.y,ge.y),gt=Math.min(tt.right,ge.right)-vn,yt=Math.min(tt.bottom,ge.bottom)-Xe,wt=this.tb,wt!==null&&(vn=wt.x,Xe=wt.y,gt=wt.width,yt=wt.height),vn>tt.width+tt.x||tt.x>ge.width+ge.x){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}a.save(),a.beginPath(),a.rect(vn,Xe,gt,yt),a.clip()}if(ut){if(!at.isVisible()){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}rt&&(ge=at.shadowOffset,a.Ev(ge.x*y.scale*this.scale*y.Mb,ge.y*y.scale*this.scale*y.Mb,at.shadowBlur),yd(a),a.shadowColor=at.shadowColor)}rt&&this.shadowVisible===!0?yd(a):rt&&this.shadowVisible===!1&&Qh(a),at=this.naturalBounds,this.areaBackground!==null&&(a.yc(),iu(this,a,at,tt)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),rt&&ea(this,ot)&&this.shadowVisible===null&&Qh(a),this.Ma!==null&&(a.yc(),Ll(this,a,at,tt)),rt&&(this.Ma!==null||this.areaBackground!==null||ea(this,ot))?(Uu(this,!0),this.shadowVisible===null&&Qh(a)):Uu(this,!1),this.hh(a,y),rt&&this.l&512&&yd(a),ut&&rt&&Qh(a),mt&&(a.restore(),a.Vc(this instanceof Ke)),z.ws()||(y=1/(z.m11*z.m22-z.m12*z.m21),a.transform(z.m22*y,-z.m12*y,-z.m21*y,z.m11*y,y*(z.m21*z.dy-z.m22*z.dx),y*(z.m12*z.dx-z.m11*z.dy)))}}x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b)}}};function ea(a,y){return y===null?!1:(Ud(y)&&(y=y.panel),(y.l&512)!==0||(y.type===Ke.Auto||y.type===Ke.Spot)&&y.Pb()!==a)}Ct.Dv=function(){};function iu(a,y,x,E){Ir(a,y,a.areaBackground,!0,!0,x,E),a.areaBackground instanceof fo&&a.areaBackground.type===yu?(y.beginPath(),y.rect(E.x,E.y,E.width,E.height),y.ng(a.areaBackground)):y.fillRect(E.x,E.y,E.width,E.height)}function Ll(a,y,x,E){var b=a.kq(),z=x.x,tt=x.y,ot=x.width+b,rt=x.height+b;Ir(a,y,a.Ma,!0,!1,x,E),a.Ma instanceof fo&&a.Ma.type===yu?(y.beginPath(),y.rect(z-b/2,tt-b/2,ot,rt),y.ng(a.Ma)):y.fillRect(z-b/2,tt-b/2,ot,rt)}function Ia(a,y,x){for(var E=y.O.s,b=E.length,z=-1,tt=0;ttb)&&oe("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+b),a.isRow=!0,a.index=b):y.column!==void 0&&(b=y.column,(b==null||b===1/0||isNaN(b)||0>b)&&oe("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+b),a.isRow=!1,a.index=b),b=new Bi;for(x in y)x!=="row"&&x!=="column"&&(b[x]=y[x]);pd(a,b)}else pd(a,y);else oe('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function Wd(a,y){wf.add(a,y)}function gm(a,y,x){x===void 0&&(x=null);var E=a[1];if(typeof x=="function"?x(E):typeof E=="string")return a.splice(1,1),E;if(y===void 0)throw Error("no "+(typeof x=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}ve.Object.defineProperties(ee.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new Ug),this.A.zp=a)}},localBindings:{get:function(){return this.A!==null?this.A.te:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new Ug),this.A.te=a)}},srcBindings:{get:function(){return this.A!==null?this.A.wm:null},set:function(a){this.srcBindings!==a&&(this.A===null&&(this.A=new Ug),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(xi(this),this.A.Ci=a,this.Uc=!0,this.N(),this.g("shadowVisible",y,a))}},enabledChanged:{get:function(){return this.A!==null?this.A.Hb:null},set:function(a){var y=this.enabledChanged;y!==a&&(xi(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:sl},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new xc),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===sl&&(this.angle=0))}},segmentIndex:{get:function(){return this.Ua!==null?this.Ua.u:-1/0},set:function(a){a=Math.round(a);var y=this.segmentIndex;y!==a&&(this.Ua===null&&(this.Ua=new xc),this.Ua.u=a,this.v(),this.g("segmentIndex",y,a))}},segmentFraction:{get:function(){return this.Ua!==null?this.Ua.o:0},set:function(a){isNaN(a)||0>a?a=0:1a||1=a&&oe("GraphObject.scale for "+this+" must be greater than zero, not: "+a),this.Ca=a,this.v(),this.g("scale",y,a))}},angle:{get:function(){return this.Kb},set:function(a){var y=this.Kb;y!==a&&(a%=360,0>a&&(a+=360),y!==a&&(this.Kb=a,Ky(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,E=this.jd,b=E.width,z=E.height;(b===y||isNaN(b)&&isNaN(y))&&(z===x||isNaN(z)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof pi&&this.qc(),this.g("desiredSize",E,a),ya(this)&&(a=this.part,a!==null&&($o(this,a,"width"),$o(this,a,"height"))))}},width:{get:function(){return this.jd.width},set:function(a){var y=this.jd.width;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new un(a,this.jd.height).freeze(),this.v(),this instanceof pi&&this.qc(),this.g("desiredSize",y,a),ya(this)&&(a=this.part,a!==null&&$o(this,a,"width")))}},height:{get:function(){return this.jd.height},set:function(a){var y=this.jd.height;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new un(this.jd.width,a).freeze(),this.v(),this instanceof pi&&this.qc(),this.g("desiredSize",y,a),ya(this)&&(a=this.part,a!==null&&$o(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:zi},set:function(a){var y=this.minSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=0),isNaN(a.height)&&(a.height=0),a.freeze(),xi(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:vi},set:function(a){var y=this.maxSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=1/0),isNaN(a.height)&&(a.height=1/0),a.freeze(),xi(this),this.A.o=a,this.v(),this.g("maxSize",y,a))}},measuredBounds:{get:function(){return this.uc}},naturalBounds:{get:function(){return this.dc}},margin:{get:function(){return this.Kg},set:function(a){typeof a=="number"&&(a=new gi(a));var y=this.Kg;y.D(a)||(this.Kg=a=a.J(),this.v(),this.g("margin",y,a))}},transform:{get:function(){return this.l&2048&&la(this),this.Ab}},oe:{get:function(){return this.l&4096&&la(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(xi(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:ze},set:function(a){this.reshapingBehavior!==a&&(xi(this),this.A.Pf=a)}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(a.Mc()&&!a.Xb()&&oe("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),nl(this),this.g("alignment",y,a))}},column:{get:function(){return this.Ag},set:function(a){a=Math.round(a);var y=this.Ag;y!==a&&(0>a&&li(a,">= 0",ee,"column"),this.Ag=a,this.v(),this.g("column",y,a),this.svg!==null&&this.svg.remove())}},columnSpan:{get:function(){return this.A!==null?this.A.ob:1},set:function(a){a=Math.round(a);var y=this.columnSpan;y!==a&&(1>a&&li(a,">= 1",ee,"columnSpan"),xi(this),this.A.ob=a,this.v(),this.g("columnSpan",y,a))}},row:{get:function(){return this.io},set:function(a){a=Math.round(a);var y=this.io;y!==a&&(0>a&&li(a,">= 0",ee,"row"),this.io=a,this.v(),this.g("row",y,a),this.svg!==null&&this.svg.remove())}},rowSpan:{get:function(){return this.A!==null?this.A.Bi:1},set:function(a){a=Math.round(a);var y=this.rowSpan;y!==a&&(1>a&&li(a,">= 1",ee,"rowSpan"),xi(this),this.A.Bi=a,this.v(),this.g("rowSpan",y,a))}},spanAllocation:{get:function(){return this.A!==null?this.A.Di:null},set:function(a){var y=this.spanAllocation;y!==a&&(xi(this),this.A.Di=a,this.v(),this.g("spanAllocation",y,a))}},alignmentFocus:{get:function(){return this.sk},set:function(a){var y=this.sk;y.D(a)||(this.sk=a=a.J(),this.v(),this.g("alignmentFocus",y,a))}},portId:{get:function(){return this.Yn},set:function(a){var y=this.Yn;if(y!==a){var x=this.part;x===null||x instanceof hn||oe("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Wv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,Z1(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:We},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),ug(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&li(a,">= 0",ee,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),ug(this))}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:0},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.g("toShortLength",y,a),ug(this))}},toLinkable:{get:function(){return this.ba!==null?this.ba.Tr:null},set:function(a){var y=this.toLinkable;y!==a&&(this.Xc(),this.ba.Tr=a,this.g("toLinkable",y,a))}},toMaxLinks:{get:function(){return this.ba!==null?this.ba.Ur:1/0},set:function(a){var y=this.toMaxLinks;y!==a&&(0>a&&li(a,">= 0",ee,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:We},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),ug(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&li(a,">= 0",ee,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),ug(this))}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:0},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.g("fromShortLength",y,a),ug(this))}},fromLinkable:{get:function(){return this.ba!==null?this.ba.hq:null},set:function(a){var y=this.fromLinkable;y!==a&&(this.Xc(),this.ba.hq=a,this.g("fromLinkable",y,a))}},fromMaxLinks:{get:function(){return this.ba!==null?this.ba.iq:1/0},set:function(a){var y=this.fromMaxLinks;y!==a&&(0>a&&li(a,">= 0",ee,"fromMaxLinks"),this.Xc(),this.ba.iq=a,this.g("fromMaxLinks",y,a))}},cursor:{get:function(){return this.A!==null?this.A.j:""},set:function(a){var y=this.cursor;y!==a&&(xi(this),this.A.j=a,this.g("cursor",y,a))}},click:{get:function(){return this.A!==null?this.A.zh:null},set:function(a){var y=this.click;y!==a&&(xi(this),this.A.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.A!==null?this.A.Fh:null},set:function(a){var y=this.doubleClick;y!==a&&(xi(this),this.A.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.A!==null?this.A.Bh:null},set:function(a){var y=this.contextClick;y!==a&&(xi(this),this.A.Bh=a,this.g("contextClick",y,a))}},mouseEnter:{get:function(){return this.A!==null?this.A.Mh:null},set:function(a){var y=this.mouseEnter;y!==a&&(xi(this),this.A.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.A!==null?this.A.Ph:null},set:function(a){var y=this.mouseLeave;y!==a&&(xi(this),this.A.Ph=a,this.g("mouseLeave",y,a))}},mouseOver:{get:function(){return this.A!==null?this.A.Qh:null},set:function(a){var y=this.mouseOver;y!==a&&(xi(this),this.A.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.A!==null?this.A.Oh:null},set:function(a){var y=this.mouseHover;y!==a&&(xi(this),this.A.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.A!==null?this.A.Nh:null},set:function(a){var y=this.mouseHold;y!==a&&(xi(this),this.A.Nh=a,this.g("mouseHold",y,a))}},mouseDragEnter:{get:function(){return this.A!==null?this.A.Of:null},set:function(a){var y=this.mouseDragEnter;y!==a&&(xi(this),this.A.Of=a,this.g("mouseDragEnter",y,a))}},mouseDragLeave:{get:function(){return this.A!==null?this.A.Xd:null},set:function(a){var y=this.mouseDragLeave;y!==a&&(xi(this),this.A.Xd=a,this.g("mouseDragLeave",y,a))}},mouseDrop:{get:function(){return this.A!==null?this.A.Lh:null},set:function(a){var y=this.mouseDrop;y!==a&&(xi(this),this.A.Lh=a,this.g("mouseDrop",y,a))}},actionDown:{get:function(){return this.A!==null?this.A.V:null},set:function(a){var y=this.actionDown;y!==a&&(xi(this),this.A.V=a,this.g("actionDown",y,a))}},actionMove:{get:function(){return this.A!==null?this.A.ia:null},set:function(a){var y=this.actionMove;y!==a&&(xi(this),this.A.ia=a,this.g("actionMove",y,a))}},actionUp:{get:function(){return this.A!==null?this.A.Ha:null},set:function(a){var y=this.actionUp;y!==a&&(xi(this),this.A.Ha=a,this.g("actionUp",y,a))}},actionCancel:{get:function(){return this.A!==null?this.A.F:null},set:function(a){var y=this.actionCancel;y!==a&&(xi(this),this.A.F=a,this.g("actionCancel",y,a))}},toolTip:{get:function(){return this.A!==null?this.A.$h:null},set:function(a){var y=this.toolTip;y!==a&&(xi(this),this.A.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.A!==null?this.A.Ch:null},set:function(a){var y=this.contextMenu;y!==a&&(xi(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),ee.prototype.trigger=ee.prototype.Jv,ee.prototype.findBindingPanel=ee.prototype.ih,ee.prototype.findTemplateBinder=ee.prototype.pz,ee.prototype.setProperties=ee.prototype.nm,ee.prototype.apply=ee.prototype.apply,ee.prototype.attach=ee.prototype.Du,ee.prototype.set=ee.prototype.set,ee.prototype.isEnabledObject=ee.prototype.If,ee.prototype.isVisibleObject=ee.prototype.Ed,ee.prototype.isContainedBy=ee.prototype.rg,ee.prototype.getNearestIntersectionPoint=ee.prototype.rs,ee.prototype.getLocalPoint=ee.prototype.qs,ee.prototype.getDocumentScale=ee.prototype.Df,ee.prototype.getDocumentAngle=ee.prototype.li,ee.prototype.getDocumentBounds=ee.prototype.mi,ee.prototype.getDocumentPoint=ee.prototype.ga,ee.prototype.intersectsRect=ee.prototype.Yc,ee.prototype.containedInRect=ee.prototype.fh,ee.prototype.containsRect=ee.prototype.Re,ee.prototype.containsPoint=ee.prototype.ca,ee.prototype.raiseChanged=ee.prototype.g,ee.prototype.raiseChangedEvent=ee.prototype.cb,ee.prototype.addCopyProperty=ee.prototype.Vw;var wf=null;ee.className="GraphObject",wf=new oi,Wd("Button",function(){function a(x,E){return x.diagram.ic(x.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b},function(b){return b===E})!==null}var y=vu(Ke,Ke.Auto,{isActionable:!0,enabledChanged:function(x,E){if(x instanceof Ke){var b=x.fb("ButtonBorder");b!==null&&(b.fill=E?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},vu(pi,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new Qn(0,0,2.76142374915397,2.761423749153969),spot2:new Qn(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,E){if(E.If()&&E instanceof Ke&&(x=E.fb("ButtonBorder"),x instanceof pi)){var b=E._buttonFillOver;E._buttonFillNormal=x.fill,x.fill=b,b=E._buttonStrokeOver,E._buttonStrokeNormal=x.stroke,x.stroke=b}},y.mouseLeave=function(x,E){E.If()&&E instanceof Ke&&(x=E.fb("ButtonBorder"),x instanceof pi&&(x.fill=E._buttonFillNormal,x.stroke=E._buttonStrokeNormal))},y.actionDown=function(x,E){if(E.If()&&E instanceof Ke&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof pi){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var tt=E._buttonFillPressed;E._buttonFillOver=b.fill,b.fill=tt,tt=E._buttonStrokePressed,E._buttonStrokeOver=b.stroke,b.stroke=tt,x.skipsUndoManager=z}}},y.actionUp=function(x,E){if(E.If()&&E instanceof Ke&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof pi){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionCancel=function(x,E){if(E.If()&&E instanceof Ke&&E._buttonFillPressed!==null){var b=E.fb("ButtonBorder");if(b instanceof pi){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionMove=function(x,E){if(E.If()&&E instanceof Ke&&E._buttonFillPressed!==null){var b=x.diagram;if(b.firstInput.button===0&&(b.currentTool.standardMouseOver(),a(x,E)&&(x=E.fb("ButtonBorder"),x instanceof pi))){var z=b.skipsUndoManager;b.skipsUndoManager=!0;var tt=E._buttonFillPressed;x.fill!==tt&&(x.fill=tt),tt=E._buttonStrokePressed,x.stroke!==tt&&(x.stroke=tt),b.skipsUndoManager=z}}},y}),Wd("TreeExpanderButton",function(){var a=vu("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},vu(pi,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:rs},new us("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new us("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof Ji&&(x=x.adornedPart),x instanceof hn){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isTreeExpanded){if(!E.canCollapseTree(x))return}else if(!E.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?E.collapseTree(x):E.expandTree(x)}}},a}),Wd("SubGraphExpanderButton",function(){var a=vu("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},vu(pi,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:rs},new us("figure","isSubGraphExpanded",function(y,x){return x=x.panel,y?x._subGraphExpandedFigure:x._subGraphCollapsedFigure}).cp()));return a.click=function(y,x){if(x=x.part,x instanceof Ji&&(x=x.adornedPart),x instanceof di){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isSubGraphExpanded){if(!E.canCollapseSubGraph(x))return}else if(!E.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?E.collapseSubGraph(x):E.expandSubGraph(x)}}},a}),Wd("ToolTip",function(){return vu(Ji,Ke.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Wt(0,3),shadowBlur:5},vu(pi,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new Qn(0,0,4,6),spot2:new Qn(1,1,-4,-4)}))}),Wd("ContextMenu",function(){return vu(Ji,Ke.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Wt(0,3),shadowBlur:5},new us("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),Wd("ContextMenuButton",function(){var a=vu("Button");a.stretch=In;var y=a.fb("ButtonBorder");return y instanceof pi&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new Qn(0,0,2,3),y.spot2=new Qn(1,1,-2,-2)),a}),Wd("PanelExpanderButton",function(a){var y=gm(a,"COLLAPSIBLE"),x=vu("Button",{_buttonExpandedFigure:"M0 0 M0 6 L4 2 8 6 M8 8",_buttonCollapsedFigure:"M0 0 M0 2 L4 6 8 2 M8 8",_buttonFillNormal:"rgba(0, 0, 0, 0)",_buttonStrokeNormal:null,_buttonFillOver:"rgba(0, 0, 0, .2)",_buttonStrokeOver:null,_buttonFillPressed:"rgba(0, 0, 0, .4)",_buttonStrokePressed:null},vu(pi,{name:"ButtonIcon",strokeWidth:2},new us("geometryString","visible",function(E){return E?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof pi&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(E,b){var z=b.diagram;if(z!==null&&!z.isReadOnly){var tt=b.ih();tt===null&&(tt=b.part),tt!==null&&(b=tt.fb(y),b!==null&&(E.handled=!0,z.Ea("Collapse/Expand Panel"),b.visible=!b.visible,z.eb("Collapse/Expand Panel")))}},x}),Wd("CheckBoxButton",function(a){var y=gm(a);return a=vu("Button",{desiredSize:new un(14,14)},vu(pi,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Ze,geometryStretch:kn,visible:!1},y!==""?new us("visible",y).Kx():[])),a.click=function(x,E){if(E instanceof Ke){var b=x.diagram;if(!(b===null||b.isReadOnly||y!==""&&b.model.isReadOnly)){x.handled=!0;var z=E.fb("ButtonIcon");b.Ea("checkbox"),z.visible=!z.visible,typeof E._doClick=="function"&&E._doClick(x,E),b.eb("checkbox")}}},a}),Wd("CheckBox",function(a){a=gm(a),a=vu("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new gi(0,1,0,0)});var y=vu(Ke,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new gi(1),_buttonFillNormal:a._buttonFillNormal,_buttonStrokeNormal:a._buttonStrokeNormal,_buttonFillOver:a._buttonFillOver,_buttonStrokeOver:a._buttonStrokeOver,_buttonFillPressed:a._buttonFillPressed,_buttonStrokePressed:a._buttonStrokePressed,_buttonFillDisabled:a._buttonFillDisabled,mouseEnter:a.mouseEnter,mouseLeave:a.mouseLeave,actionDown:a.actionDown,actionUp:a.actionUp,actionCancel:a.actionCancel,actionMove:a.actionMove,click:a.click,_buttonClick:a.click});return a.mouseEnter=null,a.mouseLeave=null,a.actionDown=null,a.actionUp=null,a.actionCancel=null,a.actionMove=null,a.click=null,y}),ee.None=ze=new Ye(ee,"None",0),ee.Default=ci=new Ye(ee,"Default",0),ee.Vertical=$n=new Ye(ee,"Vertical",4),ee.Horizontal=In=new Ye(ee,"Horizontal",5),ee.Fill=Ze=new Ye(ee,"Fill",3),ee.Uniform=kn=new Ye(ee,"Uniform",1),ee.UniformToFill=Gi=new Ye(ee,"UniformToFill",2),ee.FlipVertical=wi=new Ye(ee,"FlipVertical",1),ee.FlipHorizontal=Zi=new Ye(ee,"FlipHorizontal",2),ee.FlipBoth=xo=new Ye(ee,"FlipBoth",3),ee.make=vu,ee.getBuilders=function(){var a=new oi,y;for(y in wf)if(y!==y.toLowerCase()){var x=wf.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},ee.defineBuilder=Wd,ee.build=function(a,y,x){for(var E=[],b=2;ba&&(a+=360),a!==0){if(this.translate(y,x),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.ha[1]*a+this.ha[3]*E,z=this.ha[0]*-E+this.ha[2]*a,tt=this.ha[1]*-E+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*E,this.ha[1]=b,this.ha[2]=z,this.ha[3]=tt,this.translate(-y,-x)}},hg.className="STransform";function Vg(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}Vg.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},Vg.className="SGradient";function Ah(a,y,x){this.ownerDocument=a=y===void 0?Ge.document:y,this.cA="http://www.w3.org/2000/svg",a!==void 0&&(this.Oa=this.Ud("svg",{width:"1px",height:"1px",viewBox:"0 0 1 1"}),this.style.display="block",this.style.letterSpacing="normal",this.style.wordSpacing="normal",this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink")),this.hs=null,this.context=new Rl(this,x)}Ah.prototype.resize=function(a,y,x,E){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=E+"px",this.Oa.setAttributeNS(null,"width",x+"px"),this.Oa.setAttributeNS(null,"height",E+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+x+" "+E),this.context.ww.firstElementChild.setAttributeNS(null,"width",x+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",E+"px"),!0):!1},Ah.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),De(y))for(var E in y)a.setAttributeNS(E==="href"?"http://www.w3.org/1999/xlink":"",E,y[E]);return x!==void 0&&(a.textContent=x),a},Ah.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Ah.prototype.focus=function(){this.Oa.focus()},Ah.prototype.mx=function(){this.ownerDocument=null},ve.Object.defineProperties(Ah.prototype,{width:{get:function(){return this.Oa.width.baseVal.value},set:function(a){this.Oa.setAttribute("width",a+"px")}},height:{get:function(){return this.Oa.height.baseVal.value},set:function(a){this.Oa.setAttribute("height",a+"px")}},style:{get:function(){return this.Oa.style}}}),Ah.className="SVGSurface";function Rl(a,y){this.Gv=a,this.svg=a.Oa,this.stack=[],this.nh=[],this.fillStyle="#000000",this.font="10px sans-serif",this.globalAlpha=1,this.lineCap="butt",this.lineDashOffset=0,this.lineJoin="miter",this.lineWidth=1,this.miterLimit=10,this.shadowBlur=0,this.shadowColor="rgba(0, 0, 0, 0)",this.shadowOffsetY=this.shadowOffsetX=0,this.Il=!1,this.strokeStyle="#000000",this.textAlign="start",this.clipInsteadOfFill=!1,this.Vg=this.Br=this.Ar=0,this.yd=this.ad=null,this.path=[],this.Yl={},this.Ct=!1,this.Yg=null,this.uj=0,this.rb=new hg,this.j=fm(this),this.Nj=fm(this,"gojs-diagram"),this.Hl=this.ti=null;var x=Sa++,E=this.Ud("clipPath",{id:"mainClip"+x});E.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=E,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(E),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function Qy(a,y,x,E,b,z,tt){a.Nj===void 0?pp(a,y,x,E,b,z,tt):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+E+", "+b+", "+z+", "+tt+")")}Ct=Rl.prototype,Ct.arc=function(a,y,x,E,b,z,tt,ot){var rt=2*Math.PI,at=rt-1e-6,ut=x*Math.cos(E),gt=x*Math.sin(E),mt=a+ut,yt=y+gt,wt=z?0:1;E=z?E-b:b-E,(1e-6E&&(E=E%rt+rt),E>at?(this.path.push(["A",x,x,0,1,wt,a-ut,y-gt]),this.path.push(["A",x,x,0,1,wt,mt,yt])):1e-6=Math.PI),wt,a+x*Math.cos(b),y+x*Math.sin(b)])},Ct.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Ct.Se=function(a){this.addPath(this.path,this.rb,a||0)},Ct.bezierCurveTo=function(a,y,x,E,b,z){this.path.push(["C",a,y,x,E,b,z])},Ct.clearRect=function(){},Ct.clip=function(){this.Yl.clipPath=!0},Ct.closePath=function(){this.path.push(["z"])},Ct.createLinearGradient=function(a,y,x,E){var b=new Vg("linear");return b.x1=a,b.y1=y,b.x2=x,b.y2=E,b},Ct.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var x=this.eA;if(x[y])return"url(#"+x[y]+")";var E="PATTERN"+Sa++,b={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:E,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(ag,b)),this.svg.appendChild(a),x[y]=E,"url(#"+E+")"},Ct.createRadialGradient=function(a,y,x,E,b,z){var tt=new Vg("radial");return tt.x1=a,tt.y1=y,tt.r1=x,tt.x2=E,tt.y2=b,tt.r2=z,tt};function Xy(a,y,x,E,b,z,tt,ot,rt){E=ot/E,b=rt/b,z===0&&tt===0||a.rb.translate(z,tt),E===1&&b===1||a.rb.scale(E,b),y===0&&x===0||a.rb.translate(-y,-x)}Ct.drawImage=function(a,y,x,E,b,z,tt,ot,rt){var at="";a instanceof HTMLCanvasElement&&(at=a.toDataURL()),a instanceof HTMLImageElement&&(at=a.getAttribute("src"));var ut=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,E===void 0&&(z=y,tt=x,ot=E=ut,rt=b=a),E=E||0,b=b||0,ot=ot||0,rt=rt||0,Xy(this,y,x,E,b,z||0,tt||0,ot,rt),z={x:0,y:0,width:ut||E,height:a||b,href:at},_t.$(E,ot)&&_t.$(b,rt)?at.toLowerCase().indexOf(".svg")===-1&&at.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||E!==ut||b!==a)&&(E+=y,b+=x,z["clip-path"]="path('M "+y+","+x+" L "+E+" "+x+" L "+E+" "+b+" L "+y+" "+b+" z')"),Pf(this,ag,z,this.rb),this.addElement(ag,z)},Ct.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),iv(this,this.Yl)},Ct.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Ct.fillRect=function(a,y,x,E){a=[a,y,x,E],a={x:a[0],y:a[1],width:a[2],height:a[3]},Pf(this,"fill",a,this.rb),this.addElement("rect",a)},Ct.ox=function(a,y,x,E){a={x:a,y,width:x,height:E},Pf(this,"fill",a,this.rb),iv(this,a),this.svg.prepend(this.Ud("rect",a))},Ct.fillText=function(a,y,x){a=[a,y,x],y=this.textAlign,y==="left"?y="start":y==="right"?y="end":y==="center"&&(y="middle"),y={x:a[1],y:a[2],style:"font: "+this.font,"text-anchor":y},Pf(this,"fill",y,this.rb),this.addElement("text",y,a[0])},Ct.lineTo=function(a,y){this.path.push(["L",a,y])},Ct.moveTo=function(a,y){this.path.push(["M",a,y])},Ct.quadraticCurveTo=function(a,y,x,E){this.path.push(["Q",a,y,x,E])},Ct.rect=function(a,y,x,E){this.path.push(["M",a,y],["L",a+x,y],["L",a+x,y+E],["L",a,y+E],["z"])},Ct.restore=function(){this.rb=this.stack.pop(),this.path=this.stack.pop();var a=this.stack.pop();this.fillStyle=a.fillStyle,this.font=a.font,this.globalAlpha=a.globalAlpha,this.lineCap=a.lineCap,this.lineDashOffset=a.lineDashOffset,this.lineJoin=a.lineJoin,this.lineWidth=a.lineWidth,this.miterLimit=a.miterLimit,this.shadowBlur=a.shadowBlur,this.shadowColor=a.shadowColor,this.shadowOffsetX=a.shadowOffsetX,this.shadowOffsetY=a.shadowOffsetY,this.strokeStyle=a.strokeStyle,this.textAlign=a.textAlign,this.bk=a.bk},Ct.save=function(){this.stack.push({fillStyle:this.fillStyle,font:this.font,globalAlpha:this.globalAlpha,lineCap:this.lineCap,lineDashOffset:this.lineDashOffset,lineJoin:this.lineJoin,lineWidth:this.lineWidth,miterLimit:this.miterLimit,shadowBlur:this.shadowBlur,shadowColor:this.shadowColor,shadowOffsetX:this.shadowOffsetX,shadowOffsetY:this.shadowOffsetY,strokeStyle:this.strokeStyle,textAlign:this.textAlign,bk:this.bk});for(var a=[],y=0;yut.offset?1:-1}),b=0;bx?(this.scale(x/a,1),this.translate((a-x)/2,0)):x>a&&(this.scale(1,a/x),this.translate(0,(x-a)/2)),this.Hm?this.clip():this.fill(y),a>x?(this.translate(-(a-x)/2,0),this.scale(1/(x/a),1)):x>a&&(this.translate(0,-(x-a)/2),this.scale(1,1/(a/x)))}else this.Hm?this.clip():this.fill(y)},Ct.jk=function(){this.Hm||this.stroke()},Ct.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Ct.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Ct.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(mx),a.lineDashOffset=0)},Ct.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Ct.Hs=function(){},ve.Object.defineProperties(dg.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(a){this.ct!==a&&(this.ct=this.Z.fillStyle=a)}},font:{get:function(){return this.Z.font},set:function(a){this.dt!==a&&(this.dt=this.Z.font=a)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(a){this.Z.globalAlpha=a}},lineCap:{get:function(){return this.Z.lineCap},set:function(a){this.Z.lineCap=a}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(a){this.Z.lineDashOffset=a}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(a){this.Z.lineJoin=a}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(a){this.Z.lineWidth=a}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(a){this.Z.miterLimit=a}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(a){this.Z.shadowBlur=a}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(a){this.Z.shadowColor=a}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(a){this.Z.shadowOffsetX=a}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(a){this.Z.shadowOffsetY=a}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(a){this.et!==a&&(this.et=this.Z.strokeStyle=a)}},textAlign:{get:function(){return this.Z.textAlign},set:function(a){this.Z.textAlign=a}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(a){this.Z.imageSmoothingEnabled=a}},filter:{get:function(){return this.Z.filter},set:function(a){this.Z.filter=a===""?"none":a}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(a){this.Hm=a}}});var mx=Object.freeze([]);dg.className="CanvasSurfaceContext";function mp(){this.F=this.o=this.u=this.j=0}mp.className="ColorNumbers";function fo(a,y){Ef||(hv(),Ef=!0),Ko(this),this._isFrozen=!1,a===void 0?(this.na=Yd,this.xk="black"):typeof a=="string"?(this.na=Yd,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===xd?(this.Qd=Be,this.Lk=yi):this.Lk=a===yu?this.Qd=ri:this.Qd=We,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}fo.prototype.copy=function(){var a=new fo;return a.na=this.na,a.xk=this.xk,a.Qd=this.Qd.J(),a.Lk=this.Lk.J(),a.Gr=this.Gr,a.Xp=this.Xp,this.we!==null&&(a.we=this.we.copy()),a.cr=this.cr,a},Ct=fo.prototype,Ct.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Ct.ka=function(){return Object.isFrozen(this)&&oe("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Ct.qb=function(a){a.classType===fo&&(this.type=a)},Ct.toString=function(){var a="Brush(";if(this.type===Yd)a+=this.color;else if(a=this.type===xd?a+"Linear ":this.type===yu?a+"Radial ":this.type===kf?a+"Pattern ":a+"(unknown) ",a+=this.start+" "+this.end,this.colorStops!==null)for(var y=this.colorStops.iterator;y.next();)a+=" "+y.key+":"+y.value;return a+")"},Ct.addColorStop=function(a,y){return this._isFrozen&&mn(this),(typeof a!="number"||!isFinite(a)||1a)&&li(a,"0 <= loc <= 1",fo,"addColorStop:loc"),this.we===null&&(this.we=new oi),this.we.add(a,y),this.na===Yd&&(this.type=xd),this.xe=null,this},Ct.Vz=function(a,y){if(this._isFrozen&&mn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Af:y,this.type===Yd)Sd(this.color),this.color=Mf(a,y);else if((this.type===xd||this.type===yu)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)Sd(x.value),this.addColorStop(x.key,Mf(a,y));return this};function $y(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Af:x,Sd(a),Mf(y,x)}Ct.Wy=function(a,y){if(this._isFrozen&&mn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Af:y,this.type===Yd)Sd(this.color),this.color=Mf(-a,y);else if((this.type===xd||this.type===yu)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)Sd(x.value),this.addColorStop(x.key,Mf(-a,y));return this};function t1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Af:x,Sd(a),Mf(-y,x)}function rv(a,y,x){Sd(a),a=Yo.j;var E=Yo.u,b=Yo.o,z=Yo.F;return Sd(y),x===void 0&&(x=.5),"rgba("+Math.round((Yo.j-a)*x+a)+", "+Math.round((Yo.u-E)*x+E)+", "+Math.round((Yo.o-b)*x+b)+", "+Math.round((Yo.F-z)*x+z)+")"}Ct.Gx=function(){if(this.type===Yd)return Cf(this.color);if((this.type===xd||this.type===yu)&&this.colorStops!==null){var a=this.colorStops;if(this.type===yu)return Cf(a.first().value);if(a.get(.5)!==null)return Cf(a.get(.5));if(a.count===2)return a=a.Fa(),Cf(rv(a[0].value,a[1].value));for(var y=a.iterator,x=-1,E=-1,b=1,z=1;y.next();){var tt=y.key,ot=Math.abs(.5-y.key);b>z&&ot=b&&otE&&(z=x,x=E,E=z,z=b),b=E-x,Cf(rv(a.get(x),a.get(E),1-z/b))}return!1};function Cf(a){return a?a instanceof fo?a.Gx():(Sd(a),128>(299*Yo.j+587*Yo.u+114*Yo.o)/1e3):!1}function Mf(a,y){switch(y){case Af:y=100*av(Yo.j);var x=100*av(Yo.u),E=100*av(Yo.o);return ol.j=.4124564*y+.3575761*x+.1804375*E,ol.u=.2126729*y+.7151522*x+.072175*E,ol.o=.0193339*y+.119192*x+.9503041*E,ol.F=Yo.F,y=uv(ol.j/Lf[0]),x=uv(ol.u/Lf[1]),E=uv(ol.o/Lf[2]),Xh.j=116*x-16,Xh.u=500*(y-x),Xh.o=200*(x-E),Xh.F=ol.F,Xh.j=Math.min(100,Math.max(0,Xh.j+100*a)),a=(Xh.j+16)/116,y=a-Xh.o/200,ol.j=Lf[0]*e1(Xh.u/500+a),ol.u=Lf[1]*(Xh.j>mm*dv?Math.pow(a,3):Xh.j/mm),ol.o=Lf[2]*e1(y),ol.F=Xh.F,a=-.969266*ol.j+1.8760108*ol.u+.041556*ol.o,y=.0556434*ol.j+-.2040259*ol.u+1.0572252*ol.o,Yo.j=255*lv((3.2404542*ol.j+-1.5371385*ol.u+-.4985314*ol.o)/100),Yo.u=255*lv(a/100),Yo.o=255*lv(y/100),Yo.F=ol.F,Yo.j=Math.round(Yo.j),255Yo.j&&(Yo.j=0),Yo.u=Math.round(Yo.u),255Yo.u&&(Yo.u=0),Yo.o=Math.round(Yo.o),255Yo.o&&(Yo.o=0),"rgba("+Yo.j+", "+Yo.u+", "+Yo.o+", "+Yo.F+")";case n1:return sv(),ru.o=Math.min(100,Math.max(0,ru.o+100*a)),"hsla("+ru.j+", "+ru.u+"%, "+ru.o+"%, "+ru.F+")";default:oe("Unknown color space: "+y)}}function Sd(a){Ef||(hv(),Ef=!0);var y=cv;if(y!==null){y.clearRect(0,0,1,1),y.fillStyle="#000000";var x=y.fillStyle;y.fillStyle=a,y.fillStyle!==x?(y.fillRect(0,0,1,1),a=y.getImageData(0,0,1,1).data,Yo.j=a[0],Yo.u=a[1],Yo.o=a[2],Yo.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,Yo.j=0,Yo.u=0,Yo.o=0,Yo.F=1)}}function sv(){var a=Yo.j/255,y=Yo.u/255,x=Yo.o/255,E=Math.max(a,y,x),b=Math.min(a,y,x),z=E-b;if(b=(E+b)/2,z===0)var tt=a=0;else{switch(E){case a:tt=(y-x)/z%6;break;case y:tt=(x-a)/z+2;break;case x:tt=(a-y)/z+4}tt*=60,0>tt&&(tt+=360),a=z/(1-Math.abs(2*b-1))}ru.j=Math.round(tt),ru.u=Math.round(100*a),ru.o=Math.round(100*b),ru.F=Yo.F}function av(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function lv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function uv(a){return a>dv?Math.pow(a,1/3):(mm*a+16)/116}function e1(a){var y=a*a*a;return y>dv?y:(116*a-16)/mm}function Zg(a,y){typeof a!="string"&&(a instanceof fo||oe("Value for "+y+" must be a color string or a Brush, not "+a))}function hv(){cv=Nr?new bu(null,void 0,{willReadFrequently:!0}).context:null}ve.Object.defineProperties(fo.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&mn(this,a),this.na=a,this.start.Mc()&&(a===xd?this.start=Be:a===yu&&(this.start=ri)),this.end.Mc()&&(a===xd?this.end=yi:a===yu&&(this.end=ri)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&mn(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&mn(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&mn(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&mn(this,a),0>a&&li(a,">= zero",fo,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&mn(this,a),0>a&&li(a,">= zero",fo,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&mn(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&mn(this,a),this.cr=a,this.xe=null}}}),fo.prototype.isDark=fo.prototype.Gx,fo.prototype.darkenBy=fo.prototype.Wy,fo.prototype.lightenBy=fo.prototype.Vz,fo.prototype.addColorStop=fo.prototype.addColorStop;var dv=216/24389,mm=24389/27,Lf=[95.047,100,108.883],cv=null,Yo=new mp,ru=new mp,ol=new mp,Xh=new mp,Ef=!1;fo.className="Brush";var Yd;fo.Solid=Yd=new Ye(fo,"Solid",0);var xd;fo.Linear=xd=new Ye(fo,"Linear",1);var yu;fo.Radial=yu=new Ye(fo,"Radial",2);var kf;fo.Pattern=kf=new Ye(fo,"Pattern",4);var Af;fo.Lab=Af=new Ye(fo,"Lab",5);var n1;fo.HSL=n1=new Ye(fo,"HSL",6),fo.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var x=Math.abs(y-a);y=Math.floor(a+Math.random()*x).toString(16);var E=Math.floor(a+Math.random()*x).toString(16);return a=Math.floor(a+Math.random()*x).toString(16),2>y.length&&(y="0"+y),2>E.length&&(E="0"+E),2>a.length&&(a="0"+a),"#"+y+E+a},fo.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;Ef||(hv(),Ef=!0);var y=cv;if(y===null)return!0;y.fillStyle="#000000";var x=y.fillStyle;return y.fillStyle=a,y.fillStyle!==x?!0:(y.fillStyle="#FFFFFF",x=y.fillStyle,y.fillStyle=a,y.fillStyle!==x)},fo.lighten=function(a){return $y(a)},fo.lightenBy=$y,fo.darken=function(a){return t1(a)},fo.darkenBy=t1,fo.mix=rv,fo.isDark=Cf;function Es(){this.xa="Base"}Es.prototype.measure=function(){},Es.prototype.Yz=function(a,y,x,E,b){a.measure(y,x,E,b)},Es.prototype.arrange=function(){},Es.prototype.Ly=function(a,y,x,E,b,z){a.arrange(y,x,E,b,z)},Es.prototype.iA=function(a){a.Uj()},Es.prototype.gc=function(){},ve.Object.defineProperties(Es.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return Ke}}}),Es.prototype.remeasureObject=Es.prototype.iA,Es.prototype.arrangeElement=Es.prototype.Ly,Es.prototype.measureElement=Es.prototype.Yz,Es.className="PanelLayout";function vm(){this.xa="Base"}pe(vm,Es),vm.prototype.measure=function(a,y,x,E,b,z,tt){var ot=E.length;a=wd(a);for(var rt=0;rtCn&&(Us=Math.max(Cn-Ic,0));var V0=Oe.oa===0;Oe.oc=Oe.oc+Us,Oe.actual=Oe.oa+Us,Cn=Math.max(Cn-(Us+(V0?Ic:0)),0)}if(kl.columnSpan===1&&(Qa===ze||Qa===$n)){Oe=a.Eb(Ka);var om=Oe.Wc();Us=Math.max(xg-Oe.actual,0),Us+om>ln&&(Us=Math.max(ln-om,0));var Gy=Oe.oa===0;Oe.oc=Oe.oc+Us,Oe.actual=Oe.oa+Us,ln=Math.max(ln-(Us+(Gy?om:0)),0)}Bc&&kl.Uj()}}}}}Fi(Yt);var od=0,Md=0;z=a.columnCount;for(var sf=0;sf=a.rowCount);oc++)Oe=a.Fb(Wr.row+oc),Us=0,Us=Qa===Ze||Qa===$n?Math.max(Oe.minimum,xh[Wr.row+oc]===0?Oe.maximum:Math.min(xh[Wr.row+oc],Oe.maximum)):Math.max(Oe.minimum,isNaN(Oe.Hc)?Oe.maximum:Math.min(Oe.Hc,Oe.maximum)),kd.height+=Us,Ul+=Oe.minimum;for(var Ou=1;Ou=a.columnCount);Ou++)Oe=a.Eb(Wr.column+Ou),Us=0,Us=Qa===Ze||Qa===In?Math.max(Oe.minimum,Cu[Wr.column+Ou]===0?Oe.maximum:Math.min(Cu[Wr.column+Ou],Oe.maximum)):Math.max(Oe.minimum,isNaN(Oe.Hc)?Oe.maximum:Math.min(Oe.Hc,Oe.maximum)),kd.width+=Us,X0+=Oe.minimum;ha.width+=kd.width,ha.height+=kd.height;var op=Wr.margin,Gc=op.right+op.left,sm=op.top+op.bottom;Wr.measure(ha.width,ha.height,X0,Ul);for(var rp=Wr.measuredBounds,Bh=Math.max(rp.width+Gc,0),Mg=Math.max(rp.height+sm,0),Hc=0,sp=0;sp=a.rowCount);sp++)Oe=a.Fb(Wr.row+sp),Hc+=Oe.total||0;if(Hc=rc)&&!(Wr.row+Ad>=a.rowCount);Ad++){Oe=a.Fb(Wr.row+Ad);var ac=Oe.oa||0,Lg=sc(Wr,Oe,sd);Oe.actual=Math.min(Oe.maximum,ac+Lg),Oe.oa!==ac&&(rc-=Oe.oa-ac)}for(;0wh&&(Oe.actual=Math.min(Oe.maximum,wh+rc),Oe.oa!==wh&&(rc-=Oe.oa-wh)),Oe.index===0)break;Oe=a.Fb(Oe.index-1)}}for(var uf=0,lc=0;lc=a.columnCount);lc++)Oe=a.Eb(Wr.column+lc),uf+=Oe.total||0;if(uf=hf)&&!(Wr.column+Eg>=a.columnCount);Eg++){Oe=a.Eb(Wr.column+Eg);var am=Oe.oa||0,Yy=Nd(Wr,Oe,Wy);Oe.actual=Math.min(Oe.maximum,am+Yy),Oe.oa!==am&&(hf-=Oe.oa-am)}for(;0J0&&(Oe.actual=Math.min(Oe.maximum,J0+hf),Oe.oa!==J0&&(hf-=Oe.oa-J0)),Oe.index===0)break;Oe=a.Eb(Oe.index-1)}}}}Fi(Vt),un.free(kd),un.free(ha),xh!==void 0&&Fi(xh),Cu!==void 0&&Fi(Cu);var df=0,cf=0,_0=a.desiredSize,fx=a.maxSize;Qa=Sl(a,!0);var lm=Md=od=0,um=0;z=a.columnCount;for(var q0=0;q0=a.rowCount);Oe++){var hi=a.Fb(Yt+Oe);hi.oa!==0&&(It.height+=hi.total)}for(Oe=1;Oe=a.columnCount);Oe++)hi=a.Eb(Xt+Oe),hi.oa!==0&&(It.width+=hi.total);var si=te.oa+It.width,$i=Vt.oa+It.height;Oe=ot,hi=rt;var jo=si,Ys=$i,Xs=ot,Za=rt,Us=si,tc=$i;ot+si>x.width&&(Us=Math.max(x.width-ot,0)),rt+$i>x.height&&(tc=Math.max(x.height-rt,0));var hs=vn.alignment;if(hs.Xb()){hs=a.defaultAlignment,hs.sb()||(hs=ri);var vh=hs.x,Ka=hs.y,ec=hs.offsetX;hs=hs.offsetY;var lu=te.alignment,Bu=Vt.alignment;lu.sb()&&(vh=lu.x,ec=lu.offsetX),Bu.sb()&&(Ka=Bu.y,hs=Bu.offsetY)}else vh=hs.x,Ka=hs.y,ec=hs.offsetX,hs=hs.offsetY;(isNaN(vh)||isNaN(Ka))&&(Ka=vh=.5,hs=ec=0),lu=Xe.width,Bu=Xe.height;var Hl=vn.margin,kl=Hl.left+Hl.right,Bc=Hl.top+Hl.bottom,yh=ch(vn,Vt,te,!1);!isNaN(vn.desiredSize.width)||yh!==Ze&&yh!==In||(lu=Math.max(si-kl,0)),!isNaN(vn.desiredSize.height)||yh!==Ze&&yh!==$n||(Bu=Math.max($i-Bc,0)),si=vn.maxSize,$i=vn.minSize,lu=Math.min(si.width,lu),Bu=Math.min(si.height,Bu),lu=Math.max($i.width,lu),Bu=Math.max($i.height,Bu),si=Bu+Bc,Oe+=jo*vh-(lu+kl)*vh+ec+Hl.left,hi+=Ys*Ka-si*Ka+hs+Hl.top,vn.visible&&(Is(Xs,Za,Us,tc,Oe,hi,Xe.width,Xe.height)?vn.arrange(Oe,hi,lu,Bu):vn.arrange(Oe,hi,lu,Bu,new ke(Xs,Za,Us,tc)))}}}for(un.free(It),a=0;a=x&&(x=1);var E=a.gridCellSize,b=E.width;E=E.height;var z=a.naturalBounds,tt=a.actualBounds,ot=z.width,rt=z.height,at=Math.ceil(ot/b),ut=Math.ceil(rt/E),gt=a.gridOrigin,mt=gt.x;gt=gt.y,y.save(),y.beginPath(),y.rect(0,0,ot,rt),y.clip(),y.Se();for(var yt=[],wt=a.O.s,Et=wt.length,zt=0;ztVt)){It=pv(It.figure);for(var Xt=0;XtVt&&Yt.push(te))}}}}for(wt=a.O.s,Et=wt.length,zt=0;ztb*It*x))){if(Vt=ge.segmentIndex,(!isFinite(Vt)||isNaN(Vt))&&(Vt=0),0>Vt&&(Vt=It-Math.min(-Vt,It)),Vt=Math.round(Vt%It),It=ge.opacity,Xt=1,It!==1){if(It===0)continue;Xt=y.globalAlpha,y.globalAlpha=Xt*It}te=yt[zt];var ln=!1,Cn=ge.strokeDashArray;if(Cn!==null&&(ln=!0,y.js(Cn,ge.strokeDashOffset)),ge.figure==="LineV"&&ge.stroke!==null&&0y)return a%y===x;if(a%y!==x)return!1;y=E.length;for(var b=0;bgt)Yt.measure(1/0,1/0,0,0),Vt=Yt.measuredBounds,x.ed(Vt),yt.push(Vt);else{var Xt=Yt.segmentIndex,te=Yt.segmentFraction,ge=Yt.alignmentFocus;ge.Mc()&&(ge=ri);var ln=Yt.segmentOrientation,Cn=Yt.segmentOffset;if(isNaN(Xt)){var vn=rt.ua;Vt=Ii(),vn.Qu(te,Vt);var Xe=Wt.allocAt(Vt[0],Vt[1]);if(Xe.add(rt.i(0)),vn.type===He.j?Xe.offset(-vn.startX,-vn.startY):(vn=vn.figures.first(),vn!==null&&Xe.offset(-vn.startX,-vn.startY)),vn=Vt[2],ln!==sl){var Oe=rt.computeAngle(Yt,ln,vn);Yt.Kb=Oe}Oe=Xe.x-y.x;var hi=Xe.y-y.y;Wt.free(Xe),Fi(Vt)}else if(Xt<-gt||Xt>=gt)Vt=Wt.alloc(),rt.vg(),rt.computeMidPoint(Vt),vn=rt.midAngle,ln!==sl&&(Oe=rt.computeAngle(Yt,ln,vn),Yt.Kb=Oe),Oe=Vt.x-y.x,hi=Vt.y-y.y,Wt.free(Vt);else{if(Oe=0,0<=Xt?(hi=ut.M(Xt),Vt=Xtsi+10?0<=Xt?vn.ab(hi):hi.ab(vn):si>Xe+10?0<=Xt?Vt.ab(Oe):Oe.ab(Vt):0<=Xt?vn.ab(Oe):Oe.ab(vn)}else vn=0<=Xt?hi.ab(Vt):Vt.ab(hi);ln!==sl&&(Oe=rt.computeAngle(Yt,ln,vn),Yt.Kb=Oe),Oe=hi.x+(Vt.x-hi.x)*te-y.x,hi=hi.y+(Vt.y-hi.y)*te-y.y}Yt.measure(1/0,1/0,0,0),Vt=Yt.measuredBounds,Xe=Yt.naturalBounds;var $i=0;Yt instanceof pi&&($i=Yt.strokeWidth),si=Xe.width+$i;var jo=Xe.height+$i;wt.reset(),wt.translate(-Vt.x,-Vt.y),wt.scale(Yt.scale,Yt.scale),wt.rotate(ln===sl?Yt.angle:vn,si/2,jo/2),ln!==bp&&ln!==Dp||wt.rotate(90,si/2,jo/2),ln!==Tp&&ln!==Fp||wt.rotate(-90,si/2,jo/2),ln===i0&&(45vn||225vn)&&wt.rotate(-vn,si/2,jo/2),Xe=new ke(0,0,si,jo),Et.xi(Xe,ge),wt.Ga(Et),ge=-Et.x+$i/2*Yt.scale,Yt=-Et.y+$i/2*Yt.scale,zt.assign(Cn),$i=isNaN(Cn.x);var Ys=isNaN(Cn.y);if($i||Ys){si=si/2+3,jo=jo/2+3;var Xs=45<=vn&&135>=vn,Za=225<=vn&&315>=vn;ln===sl&&(Xs||Za)?(zt.x=Ys?si:Cn.y,zt.y=$i?jo:Cn.x,Xs?0<=Xt||isNaN(Xt)&&.5>te||!$i||(zt.y=-jo):Za&&((0<=Xt||isNaN(Xt)&&.5>te)&&$i&&(zt.y=-jo),Ys&&(zt.x=-si))):($i&&(zt.x=0<=Xt||isNaN(Xt)&&.5>te?si:-si),Ys&&(zt.y=-jo),zt.rotate(vn))}else zt.rotate(vn);Oe+=zt.x,hi+=zt.y,Xe.set(Vt),Xe.h(Oe+ge,hi+Yt,Vt.width,Vt.height),yt.push(Xe),x.ed(Xe)}}if(tt!==null)for(E=tt.labelNodes;E.next();)E.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),oa(b,x.width||0,x.height||0),fi.free(wt),Wt.free(Et),Wt.free(zt)}}}},km.prototype.arrange=function(a,y){var x=y.length;if(a instanceof Ji||a instanceof Je){var E=a,b=null;a instanceof Ji&&(b=a,E=b.adornedPart);var z=a instanceof Ji?null:E.path,tt=a.j;if(tt.length!==0){var ot=0;if(z!==null&&ot=x)wt=Wt.alloc(),yt=gt,zt=wt,yt.vg(),yt.computeMidPoint(zt),yt=gt.midAngle,at!==sl&&(gt=gt.computeAngle(tt,at,yt),tt.angle=gt),gt=wt.x,zt=wt.y,Wt.free(wt);else{if(Et=0,0<=ot?(wt=y.s[ot],zt=otYt+10?0<=ot?yt.ab(wt):wt.ab(yt):Yt>It+10?0<=ot?zt.ab(Et):Et.ab(zt):0<=ot?yt.ab(Et):Et.ab(yt)}else yt=0<=ot?wt.ab(zt):zt.ab(wt);at!==sl&&(gt=gt.computeAngle(tt,at,yt),tt.angle=gt),gt=wt.x+(zt.x-wt.x)*rt,zt=wt.y+(zt.y-wt.y)*rt}if(mt.ys())tt.location=new Wt(gt,zt);else{mt.Mc()&&(mt=ri),wt=fi.alloc(),wt.reset(),wt.scale(tt.scale,tt.scale),wt.rotate(tt.angle,0,0);var Vt=tt.naturalBounds;Et=ke.allocAt(0,0,Vt.width,Vt.height),It=Wt.alloc(),It.xi(Et,mt),wt.Ga(It),mt=-It.x,Yt=-It.y;var Xt=Vt.width,te=Vt.height;Vt=Wt.alloc(),Vt.assign(ut);var ge=isNaN(ut.x),ln=isNaN(ut.y);if(ge||ln){Xt=Xt/2+3,te=te/2+3;var Cn=45<=yt&&135>=yt,vn=225<=yt&&315>=yt;at===sl&&(Cn||vn)?(Vt.x=ln?Xt:ut.y,Vt.y=ge?te:ut.x,Cn?0<=ot||isNaN(ot)&&.5>rt||!ge||(Vt.y=-te):vn&&((0<=ot||isNaN(ot)&&.5>rt)&&ge&&(Vt.y=-te),ln&&(Vt.x=-Xt))):(ge&&(Vt.x=0<=ot||isNaN(ot)&&.5>rt?Xt:-Xt),ln&&(Vt.y=-te),Vt.rotate(yt))}else Vt.rotate(yt);gt+=Vt.x,zt+=Vt.y,wt.pp(Et),mt+=Et.x,Yt+=Et.y,ot=Wt.allocAt(gt+mt,zt+Yt),tt.move(ot),Wt.free(ot),Wt.free(Vt),Wt.free(It),ke.free(Et),fi.free(wt)}}b!==null?b.Ul(!1):E.Ul(!1),E=D1(a),a.location.h(a.position.x+E.x,a.position.y+E.y),Wt.free(E)}};function i1(a,y,x,E){if(ou(E)!==!1){var b=E.strokeWidth;b===0&&a instanceof Ji&&a.type===Ke.Link&&a.adornedObject instanceof pi&&(b=a.adornedObject.strokeWidth),b*=E.Ca,a instanceof Je&&a.ua!==null?(a=a.geometry.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):a instanceof Ji&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):E.Ge(-(b/2),-(b/2),y+b,x+b),b=E.desiredSize,b.w()||E.ua===null?E.dc.h(0,0,b.width,b.height):E.dc.assign(E.ua.bounds),ys(E,!1)}}function yp(){this.xa="Base"}pe(yp,Es),yp.prototype.measure=function(a,y,x,E,b,z,tt){var ot=a.Pb();a.graduatedBounds=[];var rt=ot.margin,at=rt.right+rt.left,ut=rt.top+rt.bottom;ot.measure(y,x,z,tt);var gt=ot.measuredBounds,mt=new ke(-rt.left,-rt.top,Math.max(gt.width+at,0),Math.max(gt.height+ut,0));a.graduatedBounds.push(mt),b.assign(mt);for(var yt=ot.geometry,wt=ot.strokeWidth,Et=yt.flattenedSegments,zt=yt.flattenedLengths,It=yt.flattenedTotalLength,Yt=Et.length,Vt=0,Xt=0,te=Ii(),ge=0;gesi&&(si+=360),Cn.push(si)}Vt=Oe,Xt=hi}te.push(Cn)}if(a.graduatedIntervals===null){for(var $i=[],jo=a.O.s,Ys=jo.length,Xs=0;Xstc)){for(var hs=0;hstc&&Us.push(Ka)}}}}}a.graduatedIntervals=$i}var ec=a.graduatedIntervals,lu=a.O.s,Bu=lu.length,Hl=0,kl=0,Bc=It;a.graduatedMarks=[];for(var yh,_f=0;_fim*Qa*It/a.graduatedRange&&Wl.graduatedSkip===null)){var rf=zt[0][0],Th=0,Al=0;kl=It*Wl.graduatedStart-1e-4,Bc=It*Wl.graduatedEnd+1e-4;var xg=im*Qa,Yl=a.graduatedTickBase;if(Yla.graduatedMin+xg&&(Yl-=Math.floor((Yl-a.graduatedMin)/xg)*xg);for(var V0=ec[_f],om=Yl,Gy=1e-6*a.graduatedMax,od=1;Yl<=a.graduatedMax+Gy;od++){t:{for(var Md=V0.length,sf=0;sf-qf){var jc=!1;break t}}jc=!0}if(jc&&(Yl>a.graduatedMax&&(Yl=a.graduatedMax),Wl.graduatedSkip===null||Wl instanceof Go&&!Wl.graduatedSkip(Yl,Wl)||Wl instanceof pi&&!Wl.graduatedSkip(Yl,Wl))&&(Hl=(Yl-a.graduatedMin)*It/a.graduatedRange,Hl>It&&(Hl=It),kl<=Hl&&Hl<=Bc)){for(var rd=te[Th][Al],nc=zt[Th][Al];Thrf&&AlLd&&.4995Ld?0Ld||.9995af){var tp=1-Math.abs(.5-Ld);rd=(Sh*tp+Fh*(1-tp))%360;break t}}}rd=Sh}if(Wl instanceof Go){var _u="";Wl.graduatedFunction!==null?(_u=Wl.graduatedFunction(Yl,Wl),_u=_u!=null?_u.toString():""):_u=(+Yl.toFixed(2)).toString(),_u!==""&&yh.push({$l:$f,angle:rd,text:_u})}else yh.push({$l:$f,angle:rd})}Yl=om+od*xg}}}a.graduatedMarks.push(yh)}Fi(te);var ha=a.graduatedMarks;if(ha!==null)for(var rm=E.length,dl=0;dlqu;qu++){switch(qu){case 0:bl.h(kd,xh);break;case 1:bl.h(kd+ep,xh);break;case 2:bl.h(kd,xh+Cg);break;case 3:bl.h(kd+ep,xh+Cg)}bl.rotate(Wr+ds.angle),bl.offset(Q0,ip),np===0&&qu===0?Cu.h(bl.x,bl.y,0,0):Cu.Ye(bl),bl.offset(-Q0,-ip),bl.rotate(-Wr-ds.angle)}Wt.free(bl),Ed.graduatedBounds!==null&&Ed.graduatedBounds.push(Cu),Sr(ic,Cu.x,Cu.y,Cu.width,Cu.height)}else if(ds instanceof Go){var Iu=a,X0=b;Iu.temporaryTextBlock===null&&(Iu.temporaryTextBlock=new Go);var Ul=Iu.temporaryTextBlock;y1(Ul,ds);var oc=ds.alignmentFocus;oc.Mc()&&(oc=Be);for(var Ou=ds.segmentOrientation,op=ds.segmentOffset,Gc=new ke,sm=0,rp=0,Bh=0,Mg=0,Hc=0,sp=cl.length,rc=0;rcBh||225Bh)&&wh.rotate(-Bh,ac/2,Lg/2);var uf=ke.allocAt(0,0,ac,Lg),lc=Wt.alloc();lc.xi(uf,oc),wh.Ga(lc);var hf=-lc.x,Wy=-lc.y,Nd=Wt.alloc();Nd.assign(op),isNaN(Nd.x)&&(Nd.x=ac/2+3),isNaN(Nd.y)&&(Nd.y=-(Lg/2+3)),Nd.rotate(Bh),sm+=Nd.x+hf,rp+=Nd.y+Wy;var Eg=new ke(sm,rp,sc.width,sc.height),am=new ke(sc.x,sc.y,sc.width,sc.height),Yy=new ke(Ad.x,Ad.y,Ad.width,Ad.height);sd.Sz=Mg,sd.lineCount=Ul.lineCount,sd.lines=[Ul.Cb,Ul.Ih,Ul.df,Ul.Le,Ul.Qc,Ul.Qb,Ul.ze],sd.actualBounds=Eg,sd.measuredBounds=am,sd.naturalBounds=Yy,rc===0?Gc.assign(Eg):Gc.ed(Eg),Wt.free(Nd),Wt.free(lc),ke.free(uf),fi.free(wh)}Iu.graduatedBounds!==null&&Iu.graduatedBounds.push(Gc),Sr(X0,Gc.x,Gc.y,Gc.width,Gc.height)}ys(ds,!1)}}},yp.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var E=a.Pb(),b=a.graduatedMarks;if(b!==null){var z=a.graduatedBounds,tt=0,ot=z[tt];tt++,E!==null&&E.arrange(ot.x-x.x,ot.y-x.y,ot.width,ot.height);for(var rt=y.length,at=0;at=tt&&(tt=1);for(var ot=z.actualBounds,rt=a.O.s,at=a.graduatedMarks,ut=rt.length,gt=0;gta.graduatedTickUnit*mt.interval*z.geometry.flattenedTotalLength/a.graduatedRange*tt&&mt.graduatedSkip===null)){var Et=mt.measuredBounds,zt=mt.strokeWidth*mt.scale,It=mt.alignmentFocus;It.Mc()&&(It=Be);for(var Yt=0;Yttt.height)continue}else if(at.position>tt.width)continue;var ut=at.separatorStrokeWidth;isNaN(ut)&&(ut=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var gt=at.separatorStroke;if(gt===null&&(gt=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ut!==0&>!==null){Ir(a,y,gt,!1,!1,tt,z),gt=!1;var mt=at.separatorDashArray;mt===null&&(mt=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),mt!==null&&(gt=!0,y.js(mt,0)),y.beginPath(),mt=at.position+ut,x?mt>tt.height&&(ut-=mt-tt.height):mt>tt.width&&(ut-=mt-tt.width),at=at.position+ut/2,y.lineWidth=ut,ut=a.yb,x?(at+=ut.top,mt=tt.width-ut.right,y.moveTo(ut.left,at),y.lineTo(mt,at)):(at+=ut.left,mt=tt.height-ut.bottom,y.moveTo(at,ut.top),y.lineTo(at,mt)),y.stroke(),y.Se(),gt&&y.fs()}}}}function Am(a,y,x,E,b){for(var z=E.length,tt=a.actualBounds,ot=a.naturalBounds,rt=r1(a,!0),at=r1(a,!1),ut=0;utmt)){var yt=gt.Wc(),wt=gt.separatorStrokeWidth;isNaN(wt)&&(wt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Et=gt.separatorStroke;Et===null&&(Et=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Et===null||gt.index===(x?rt:at))&&(wt=0),yt-=wt,wt=gt.position+wt,yt+=gt.actual,wt+yt>mt&&(yt=mt-wt),0>=yt||(mt=a.yb,Ir(a,y,gt.background,!0,!1,ot,tt),x?y.fillRect(mt.left,wt+mt.top,tt.width-(mt.left+mt.right),yt):y.fillRect(wt+mt.left,mt.top,yt,tt.height-(mt.top+mt.bottom)))}}}}function r1(a,y){for(var x=y?a.rowCount:a.columnCount,E=0;EE&&b.set(wt),Wt.free(wt)),Wt.free(ut),z&&b.transform(tt),at},Ct.Gj=function(){for(var a=this.O.s,y=a.length,x=0;xx||z>E)&&(this.v(),this.measure(y>x?x:y,z>E?E:z,0,0));break;case Ze:this.v(!0),this.measure(x+ot,E+tt,0,0);break;case In:this.v(!0),this.measure(x+ot,z+tt,0,0);break;case $n:this.v(!0),this.measure(y+ot,E+tt,0,0)}}this.na.arrange(this,b,this.jg)}},Ct.gh=function(a){var y=this.naturalBounds,x=wd(this);if(Is(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var E=y.length,b=Wt.allocAt(0,0);E--;){var z=y[E];if((z.visible||z===x)&&(Tr(b.set(a),z.transform),z.ca(b)))return Wt.free(b),!0}return Wt.free(b),!(this.Ma===null&&this.areaBackground===null)}return!1},Ct.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,E=0;Emt.width||gt.y>mt.height||0>gt.x+gt.width||0>gt.y+gt.height||(gt=ut,ut=ut instanceof Ke?ut:null,mt=fi.alloc(),mt.set(tt),(ut!==null?ut.Cf(a,y,x,E,b,mt):Ws(gt,a,E,mt))&&(y!==null&&(gt=y(gt)),gt===null||x!==null&&!x(gt)||b.add(gt)),fi.free(mt))}}return z===void 0&&fi.free(tt),E}return z===void 0&&fi.free(tt),!1};function mv(a,y,x,E){for(var b=a.O.s,z=b.length;z--;){var tt=b[z];if(tt.visible){var ot=tt.actualBounds,rt=a.naturalBounds;ot.x>rt.width||ot.y>rt.height||0>ot.x+ot.width||0>ot.y+ot.height||(tt instanceof Ke&&mv(tt,y,x,E),y!==null&&(tt=y(tt)),tt===null||x!==null&&!x(tt)||E.add(tt))}}}Ct.og=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;x===void 0&&(x=null),E===void 0&&(E=null);var tt=this.naturalBounds,ot=this.se(),rt=ot?a:Tr(Wt.allocAt(a.x,a.y),this.transform),at=ot?y:Tr(Wt.allocAt(y.x,y.y),this.transform),ut=rt.Bf(at),gt=0zt.width||Et.y>zt.height||0>Et.x+Et.width||0>Et.y+Et.height))&&(wt.se()?(Et=wt.transform,Tr(rt.set(a),Et),Tr(at.set(y),Et)):(rt.set(a),at.set(y)),Et=wt,wt=wt instanceof Ke?wt:null,(wt!==null?wt.og(rt,at,x,E,b,z):Et.tx(rt,at,b))&&(x!==null&&(Et=x(Et)),Et===null||E!==null&&!E(Et)||z.add(Et)))}}Wt.free(rt),Wt.free(at)}return b?gt:tt}return!1};function vv(a){var y=null;return a instanceof pi&&(y=a.spot1,y===so&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=be),y}function yv(a){var y=null;return a instanceof pi&&(y=a.spot2,y===so&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=eo),y}Ct.add=function(a){for(var y=[],x=0;x=b.count&&a>=b.count)return;b.mb(z),E=z}else oe("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>b.count)&&(a=b.count),b.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),ou(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof Ke&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||bm(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof hn&&(x.Te=!0),x.Te&&x instanceof hn&&(x.wc=null),b=this.diagram,b!==null&&b.undoManager.isUndoingRedoing||(E!==-1&&x.cb(rn,"elements",this,y,null,E,null),x.cb(Qe,"elements",this,null,y,null,a)))};function Sv(a,y){a.l=y?a.l|16777216:a.l&-16777217}Ct.remove=function(a){for(var y=this.O.s,x=y.length,E=-1,b=0;ba&&li(a,">= 0",Ke,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Ss;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(Qe,"rowdefs",this,null,x,null,a)}return y[a]},Ct.oA=function(a){if(0>a&&li(a,">= 0",Ke,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(rn,"rowdefs",this,x,null,a,null),this.v()}}};function h1(a,y,x){var E=a.rowDefs;if(!(0>y)){if(E[y]=x instanceof Ss?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Ct.Eb=function(a){0>a&&li(a,">= 0",Ke,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Ss;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(Qe,"coldefs",this,null,x,null,a)}return y[a]},Ct.jA=function(a){if(0>a&&li(a,">= 0",Ke,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(rn,"coldefs",this,x,null,a,null),this.v()}}};function d1(a,y,x){var E=a.colDefs;if(!(0>y)){if(E[y]=x instanceof Ss?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Ct.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Tm(y,a),this},Ct.Hy=function(a,y){return(a=this.Fb(a))&&Tm(a,new Ss(y)),this},Ct.By=function(a,y){return(a=this.Eb(a))&&Tm(a,new Ss(y)),this},Ct.nz=function(a){if(0>a||this.type!==Ke.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,E=x.length,b=this.topIndex;ba||this.type!==Ke.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,E=x.length,b=this.leftIndex;ba;)this.pc(this.O.length-1,!1);g1(this,this.itemArray)};function g1(a,y){var x=Sp(a);if(y===null||y.length===0)for(;a.O.length>x;)a.pc(a.O.length-1,!1);else if(a.O.length<=x){x=y.length;for(var E=0;Ex)){var b=wv(a,y);if(b=Pv(a,b),b!==null){if(Tu(b),b=b.copy(),b.l&16777216){var z=a.ih();z!==null&&Sv(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new oi),a.ge.add(y,b)),z=x+Sp(a),a.Gb(z,b),E&&(b.ub=y,xv(a,z,x),b.ub=null),b.data=y}}}function xv(a,y,x){for(a=a.O;ya&&li(a,">= 0",Ke,"padding"),a=new gi(a)):(0>a.left&&li(a.left,">= 0",Ke,"padding:value.left"),0>a.right&&li(a.right,">= 0",Ke,"padding:value.right"),0>a.top&&li(a.top,">= 0",Ke,"padding:value.top"),0>a.bottom&&li(a.bottom,">= 0",Ke,"padding:value.bottom"));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.v(),this.g("padding",y,a))}},defaultAlignment:{get:function(){return this.Tm},set:function(a){var y=this.Tm;y.D(a)||(this.Tm=a=a.J(),this.v(),this.g("defaultAlignment",y,a))}},defaultStretch:{get:function(){return this.Uf},set:function(a){var y=this.Uf;y!==a&&(this.Uf=a,this.v(),this.g("defaultStretch",y,a))}},defaultSeparatorPadding:{get:function(){return this.T!==null?this.T.Qp:Dl},set:function(a){typeof a=="number"&&(a=new gi(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new Su),this.T.Qp=a,this.v(),this.g("defaultSeparatorPadding",y,a))}},defaultRowSeparatorStroke:{get:function(){return this.T!==null?this.T.ia:null},set:function(a){var y=this.defaultRowSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof fo)&&(a instanceof fo&&a.freeze(),this.T===null&&(this.T=new Su),this.T.ia=a,this.N(),this.g("defaultRowSeparatorStroke",y,a))}},defaultRowSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.Ha:1},set:function(a){var y=this.defaultRowSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new Su),this.T.Ha=a,this.v(),this.g("defaultRowSeparatorStrokeWidth",y,a))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(a){var y=this.defaultRowSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;ba)&&oe("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Su),this.T.Hb=a,this.v(),this.g("topIndex",y,a))}},leftIndex:{get:function(){return this.T!==null?this.T.hb:0},set:function(a){var y=this.leftIndex;y!==a&&((!isFinite(a)||0>a)&&oe("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Su),this.T.hb=a,this.v(),this.g("leftIndex",y,a))}},data:{get:function(){return this.ub},set:function(a){var y=this.ub;if(y!==a){var x=this instanceof Vn&&!(this instanceof Ji);Tu(this),this.ub=a;var E=this.diagram;E!==null&&(x?(x=E.partManager,this instanceof Je?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof Vn&&(y!==null&&x.cf.remove(y),a!==null&&x.cf.add(a,this))):(x=this.panel,x!==null&&x.ge!==null&&(y!==null&&x.ge.remove(y),a!==null&&x.ge.add(a,this)))),this.g("data",y,a),E!==null&&E.undoManager.isUndoingRedoing||a!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(a){var y=this.zn;y!==a&&(this.zn=a,this.g("itemIndex",y,a))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new Ug),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&yx(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&ly(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&ay(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||g1(this,a)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(a){if(this.itemTemplateMap===null){if(a===null)return;this.itemTemplateMap=new oi}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof Vn||a.isPanelMain)&&oe("Panel.itemTemplate must not be a Part or be Panel.isPanelMain: "+a),this.itemTemplateMap.add("",a),this.g("itemTemplate",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv())}},itemTemplateMap:{get:function(){return this.A!==null?this.A.Pc:null},set:function(a){var y=this.itemTemplateMap;if(y!==a){for(var x=a.iterator;x.next(););xi(this),this.A.Pc=a,this.g("itemTemplateMap",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv()}}},itemCategoryProperty:{get:function(){return this.A!==null?this.A.Oc:"category"},set:function(a){var y=this.itemCategoryProperty;y!==a&&(xi(this),this.A.Oc=a,this.g("itemCategoryProperty",y,a))}},isAtomic:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("isAtomic",y,a))}},isClipping:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this instanceof di&&(this.tb=null),this.v(),this.g("isClipping",y,a))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(a){var y=(this.l&33554432)!==0;y!==a&&(this.l^=33554432,this.v(),this.g("isOpposite",y,a))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;if(y!==a){var x=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",y,a),y=this.diagram,y!==null&&y.undoManager.isUndoingRedoing||x&&bm(this,this,a)}}},alignmentFocusName:{get:function(){return this.$e},set:function(a){var y=this.$e;y!==a&&(this.$e=a,this.v(),this.g("alignmentFocusName",y,a))}}}),ve.Object.defineProperties(Ke,{Position:{get:function(){return Vu.I("Position")}},Horizontal:{get:function(){return Vu.I("Horizontal")}},Vertical:{get:function(){return Vu.I("Vertical")}},Spot:{get:function(){return Vu.I("Spot")}},Auto:{get:function(){return Vu.I("Auto")}},Table:{get:function(){return Vu.I("Table")}},Viewbox:{get:function(){return Vu.I("Viewbox")}},TableRow:{get:function(){return Vu.I("TableRow")}},TableColumn:{get:function(){return Vu.I("TableColumn")}},Link:{get:function(){return Vu.I("Link")}},Grid:{get:function(){return Vu.I("Grid")}},Graduated:{get:function(){return Vu.I("Graduated")}}}),Ke.prototype.rebuildItemElements=Ke.prototype.mv,Ke.prototype.findItemPanelForData=Ke.prototype.sx,Ke.prototype.updateTargetBindings=Ke.prototype.La,Ke.prototype.copyTemplate=Ke.prototype.Uy,Ke.prototype.graduatedValueForPoint=Ke.prototype.Gz,Ke.prototype.graduatedPointForValue=Ke.prototype.Fz,Ke.prototype.findColumnForLocalX=Ke.prototype.fz,Ke.prototype.findRowForLocalY=Ke.prototype.nz,Ke.prototype.addColumnDefinition=Ke.prototype.By,Ke.prototype.addRowDefinition=Ke.prototype.Hy,Ke.prototype.addRowColumnDefinition=Ke.prototype.Gy,Ke.prototype.removeColumnDefinition=Ke.prototype.jA,Ke.prototype.getColumnDefinition=Ke.prototype.Eb,Ke.prototype.removeRowDefinition=Ke.prototype.oA,Ke.prototype.getRowDefinition=Ke.prototype.Fb,Ke.prototype.removeAt=Ke.prototype.mb,Ke.prototype.remove=Ke.prototype.remove,Ke.prototype.insertAt=Ke.prototype.Gb,Ke.prototype.elt=Ke.prototype.M,Ke.prototype.add=Ke.prototype.add,Ke.prototype.findObject=Ke.prototype.fb,Ke.prototype.findInVisualTree=Ke.prototype.Nl,Ke.prototype.walkVisualTreeFrom=Ke.prototype.qm,Ke.prototype.findMainElement=Ke.prototype.Pb;var f1=!1,p1=null,Vu=new oi;Ke.className="Panel",Ke.definePanelLayout=Nh,Nh("Position",new vm),Nh("Vertical",new Sm),Nh("Auto",new wm),Nh("Link",new km);function Pd(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}Pd.prototype.copy=function(){var a=new Pd;return a.lq=this.lq,a.F=this.F,a.ia=this.ia,a.V=this.V,a.u=this.u,a.j=this.j,a.o=this.o,a.Zh=this.Zh,a},Pd.className="GradPanelSettings";function Su(){this.Pc=[],this.Oc=[],this.j=this.ob=Fm,this.hb=this.Hb=0,this.Qp=Dl,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}Su.prototype.copy=function(a){for(var y=new Su,x=this.Pc,E=x.length,b=y.Pc,z=0;za&&li(a,">= 0",Ss,"height"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("height",y,a))}},width:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&li(a,">= 0",Ss,"width"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("width",y,a))}},minimum:{get:function(){return this.jj},set:function(a){var y=this.jj;y!==a&&((0>a||!isFinite(a))&&li(a,">= 0",Ss,"minimum"),this.jj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("minimum",y,a))}},maximum:{get:function(){return this.hj},set:function(a){var y=this.hj;y!==a&&(0>a&&li(a,">= 0",Ss,"maximum"),this.hj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("maximum",y,a))}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(this.Jb=a.J(),this.panel!==null&&this.panel.v(),this.Ob("alignment",y,a))}},stretch:{get:function(){return this.hg},set:function(a){var y=this.hg;y!==a&&(this.hg=a,this.panel!==null&&this.panel.v(),this.Ob("stretch",y,a))}},separatorPadding:{get:function(){return this.dg},set:function(a){typeof a=="number"&&(a=new gi(a));var y=this.dg;a!==null&&y!==null&&y.D(a)||(a!==null&&(a=a.J()),this.dg=a,this.panel!==null&&this.panel.v(),this.Ob("separatorPadding",y,a))}},separatorStroke:{get:function(){return this.lo},set:function(a){var y=this.lo;y!==a&&(a!==null&&Zg(a,"RowColumnDefinition.separatorStroke"),a instanceof fo&&a.freeze(),this.lo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",y,a))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(a){var y=this.mo;y!==a&&(this.mo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",y,a))}},separatorDashArray:{get:function(){return this.tj},set:function(a){var y=this.tj;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;bb)){var z=E.measuredBounds,tt=Math.max(1,z.width);z=z.height;for(var ot=x[0],rt=x[1],at,ut,gt,mt,yt,wt,Et=0,zt=Ii(),It=2;Itgt&&(gt=1),b=x=gt,at=tt/2,ut=at!==0,It=0,wt=zt[It],gt=wt[0],yt=wt[1],mt=wt[2],wt=wt[3];for(var Yt=0;.1<=Et;){if(Yt===0&&(ut?(b=x,b-=at,Et-=at,ut=!1):b=x,b===0&&(b=1)),b>Et){Fi(zt);return}b>wt?(Yt=b-wt,b=wt):Yt=0;var Vt=Math.sqrt(b*b/(1+mt*mt));if(0>gt&&(Vt=-Vt),ot+=Vt,rt+=mt*Vt,a.translate(ot,rt),a.rotate(yt),a.translate(-(tt/2),-(z/2)),Yt===0&&E.hh(a,y),a.translate(tt/2,z/2),a.rotate(-yt),a.translate(-ot,-rt),Et-=b,wt-=b,Yt!==0){if(It++,It===zt.length){Fi(zt);return}wt=zt[It],gt=wt[0],yt=wt[1],mt=wt[2],wt=wt[3],b=Yt}}Fi(zt)}}Ct.hh=function(a,y){var x=this.xc,E=this.Ui;if(x!==null||E!==null){var b=this.ua;if(b!==null){a.yc();var z=this.actualBounds,tt=this.naturalBounds;E!==null&&Ir(this,a,E,!0,!1,tt,z);var ot=this.part,rt=this.ig;if(x===null||rt!==0||ot===null||!this.isPanelMain&&ot.Pb()!==this||(rt=ot.type===Ke.Link&&ot instanceof Ji&&ot.category==="Selection"&&ot.adornedObject instanceof pi&&ot.adornedPart.Pb()===ot.adornedObject?ot.adornedObject.strokeWidth:0),rt===0&&(x=null),x!==null&&rt!==0&&(Ir(this,a,x,!1,!1,tt,z),a.lineWidth=rt,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,ot&&y.Gf("drawShadows")&&(z=ot.isShadowed),a.Il===!1&&(z=!1),ot=!0,x===null||E!==null&&E!=="transparent"||(ot=!1),tt=!1,rt=this.strokeDashArray,rt!==null&&(tt=!0,a.js(rt,this.strokeDashOffset)),b.type===He.j)a.beginPath(),a.moveTo(b.startX,b.startY),a.lineTo(b.endX,b.endY),x!==null&&a.jk(),a.Se();else if(b.type===He.u){var at=b.startX;rt=b.startY;var ut=b.endX,gt=b.endY;b=Math.min(at,ut);var mt=Math.min(rt,gt);at=Math.abs(ut-at),rt=Math.abs(gt-rt),a.beginPath(),a.rect(b,mt,at,rt),E!==null&&a.ng(E),x!==null&&(ot&&z&&Qh(a),a.jk(),ot&&z&&yd(a)),a.Se()}else if(b.type===He.F)at=b.startX,rt=b.startY,ut=b.endX,gt=b.endY,b=Math.abs(ut-at)/2,mt=Math.abs(gt-rt)/2,at=Math.min(at,ut)+b,rt=Math.min(rt,gt)+mt,a.beginPath(),a.moveTo(at,rt-mt),a.bezierCurveTo(at+_t.wg*b,rt-mt,at+b,rt-_t.wg*mt,at+b,rt),a.bezierCurveTo(at+b,rt+_t.wg*mt,at+_t.wg*b,rt+mt,at,rt+mt),a.bezierCurveTo(at-_t.wg*b,rt+mt,at-b,rt+_t.wg*mt,at-b,rt),a.bezierCurveTo(at-b,rt-_t.wg*mt,at-_t.wg*b,rt-mt,at,rt-mt),a.closePath(),E!==null&&a.ng(E),x!==null&&(ot&&z&&Qh(a),a.jk(),ot&&z&&yd(a)),a.Se();else if(b.type===He.o)for(b=b.figures,rt=b.length,mt=0;mtEt.sweepAngle,yt!==null?yt.endX:at.startX,yt!==null?yt.endY:at.startY)}else if(yt=qs(Et,at),zt=yt.length,zt===0)a.lineTo(Et.centerX,Et.centerY);else for(var It=0;It(x.startX-x.endX)*(a.x-x.endX)+(x.startY-x.endY)*(a.y-x.endY)||0>E)?!1:(ke.free(z),_t.Yb(x.startX,x.startY,x.endX,x.endY,b,a.x,a.y));if(x.type===He.u){y=x.startX;var tt=x.startY,ot=x.endX;if(x=x.endY,z.x=Math.min(y,ot),z.y=Math.min(tt,x),z.width=Math.abs(ot-y),z.height=Math.abs(x-tt),this.fill===null){if(z.Bc(-E,-E),z.ca(a))return ke.free(z),!1;z.Bc(E,E)}return this.stroke!==null&&z.Bc(b,b),a=z.ca(a),ke.free(z),a}if(x.type===He.F){tt=x.startX,b=x.startY,ot=x.endX;var rt=x.endY;if(x=Math.min(tt,ot),y=Math.min(b,rt),tt=Math.abs(ot-tt)/2,b=Math.abs(rt-b)/2,x=a.x-(x+tt),y=a.y-(y+b),this.fill===null){if(tt-=E,b-=E,0>=tt||0>=b||1>=x*x/(tt*tt)+y*y/(b*b))return ke.free(z),!1;tt+=E,b+=E}return this.stroke!==null&&(tt+=E,b+=E),ke.free(z),0>=tt||0>=b?!1:1>=x*x/(tt*tt)+y*y/(b*b)}if(x.type===He.o)return ke.free(z),this.fill===null?Fl(x,a.x,a.y,b):Vs(x,a,b,1=this.strokeWidth)ut=_t.Ve(at.startX,at.startY,at.endX,at.endY,z,tt,ot,rt,b);else{if(at.startX===at.endX?(E=gt,ut=0):(y=(at.endY-at.startY)/(at.endX-at.startX),ut=gt/Math.sqrt(1+y*y),E=ut*y),y=Ii(),a=new Wt,_t.Ve(at.startX+E,at.startY+ut,at.endX+E,at.endY+ut,z,tt,ot,rt,a)&&y.push(a),a=new Wt,_t.Ve(at.startX-E,at.startY-ut,at.endX-E,at.endY-ut,z,tt,ot,rt,a)&&y.push(a),a=new Wt,_t.Ve(at.startX+E,at.startY+ut,at.startX-E,at.startY-ut,z,tt,ot,rt,a)&&y.push(a),a=new Wt,_t.Ve(at.endX+E,at.endY+ut,at.endX-E,at.endY-ut,z,tt,ot,rt,a)&&y.push(a),ot=y.length,ot===0)return Fi(y),!1;for(ut=!0,rt=1/0,E=0;EMath.abs(x)){if(rt=tt-ut-x*(z-E),0>a*a*x*x+at*at-rt*rt){b.x=NaN,b.y=NaN,ut=!1;break t}gt=Math.sqrt(a*a*x*x+at*at-rt*rt),ot=(-(a*a*x*rt)+a*at*gt)/(at*at+a*a*x*x)+E,a=(-(a*a*x*rt)-a*at*gt)/(at*at+a*a*x*x)+E,at=x*(ot-E)+rt+ut,rt=x*(a-E)+rt+ut,Math.abs((z-ot)*(z-ot))+Math.abs((tt-at)*(tt-at))ot){b.x=NaN,b.y=NaN,ut=!1;break t}rt=Math.sqrt(ot),ot=ut+rt,rt=ut-rt,Math.abs(ot-tt)Math.abs(wt)?(Et*=.5/wt,wt=.5):Et!==0&&.5>Math.abs(Et)&&(wt*=.5/Et,Et=.5),It-=wt,Yt-=Et;yt.contains(It,Yt);)It-=wt,Yt-=Et;for(b.x=ot,b.y=rt,Et=0;Etx?a-x:x-a)<(y>E?y-E:E-y)?(a=ya||_t.$(rt.y,a))&&(rt.yy||_t.$(rt.x,y))&&(rt.x=a&&E<=y):(a=E&&x<=a)}Ct.tx=function(a,y,x){function E(zt,It){for(var Yt=zt.length,Vt=0;Vtb)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var b=a.Bf(y),z=b;if(1.5=b||gl(y,z,0,-gt)>=b||gl(y,z,0,gt)>=b||gl(y,z,ut,0)>=b)}else if(y.type===He.o){if(at=y.bounds,z=at.x,ot=at.y,rt=at.x+at.width,at=at.y+at.height,a.x>rt&&a.xat&&a.yb&&_r(a.x,a.y,z,ot,rt,ot)>b&&_r(a.x,a.y,rt,at,z,at)>b&&_r(a.x,a.y,rt,at,rt,ot)>b)return!1;if(z=Math.sqrt(b),x){if(this.fill===null?Fl(y,a.x,a.y,z):Vs(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;yb)return!1;for(ot=z.segments.s,rt=ot.length,at=0;atb)return!1;break;case Rs:var mt=Ii();if(_t.Qe(tt,ut,gt.point1X,gt.point1Y,gt.point2X,gt.point2Y,gt.endX,gt.endY,.8,mt),tt=E(mt,a),Fi(mt),tt||(tt=gt.endX,ut=gt.endY,a.zd(tt,ut)>b))return!1;break;case bt:if(mt=Ii(),_t.ep(tt,ut,gt.point1X,gt.point1Y,gt.endX,gt.endY,.8,mt),tt=E(mt,a),Fi(mt),tt||(tt=gt.endX,ut=gt.endY,a.zd(tt,ut)>b))return!1;break;case Ot:case Ht:mt=gt.type===Ot?qs(gt,z):vl(gt,z,tt,ut);var yt=mt.length;if(yt===0){if(tt=gt.type===Ot?gt.centerX:gt.endX,ut=gt.type===Ot?gt.centerY:gt.endY,a.zd(tt,ut)>b)return!1;break}gt=null;for(var wt=Ii(),Et=0;Et= 0",pi,"strokeWidth:value")}},strokeCap:{get:function(){return this.Na!==null?this.Na.Hr:"butt"},set:function(a){var y=this.strokeCap;y!==a&&(typeof a!="string"||a!=="butt"&&a!=="round"&&a!=="square"?li(a,'"butt", "round", or "square"',pi,"strokeCap"):(gg(this),this.Na.Hr=a,this.N(),this.g("strokeCap",y,a)))}},strokeJoin:{get:function(){return this.Na!==null?this.Na.Ir:"miter"},set:function(a){var y=this.strokeJoin;y!==a&&(typeof a!="string"||a!=="miter"&&a!=="bevel"&&a!=="round"?li(a,'"miter", "bevel", or "round"',pi,"strokeJoin"):(gg(this),this.Na.Ir=a,this.N(),this.g("strokeJoin",y,a)))}},strokeMiterLimit:{get:function(){return this.Na!==null?this.Na.Jr:10},set:function(a){var y=this.strokeMiterLimit;if(y!==a&&1<=a){gg(this),this.Na.Jr=a,this.N();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeMiterLimit",y,a)}}},strokeDashArray:{get:function(){return this.Yg},set:function(a){var y=this.Yg;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;ba?a=0:1a?a=0:1(gt*gt+ut*ut)*mt*mt&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof Rl&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,gt=this.spacingBelow,this.flip){case Zi:a.translate(b,0),a.scale(-1,1);break;case wi:a.translate(0,z),a.scale(1,-1);break;case xo:a.translate(b,z),a.scale(-1,-1)}if(a.yc(),ut=this.Gc,mt=(y+tt+gt)*ut,z>mt&&(E=this.verticalAlignment,E=E.y*z-E.y*mt+E.offsetY),ut===1&&this.ze!==null)gt=this.Cb,gt>b&&(gt=b),this.Oj(this.ze,a,0,E+y,b,tt,gt,x,ot,rt,at);else if(this.Qc!==null&&this.Qb!==null)for(mt=0;mtb&&(yt=b),E+=y,this.Oj(this.Qb[mt],a,0,E,b,tt,yt,x,ot,rt,at),E+=tt+gt}switch(this.flip){case Zi:a.scale(-1,1),a.translate(-b,0);break;case wi:a.scale(1,-1),a.translate(0,-z);break;case xo:a.scale(-1,-1),a.translate(-b,-z)}}},Ct.Oj=function(a,y,x,E,b,z,tt,ot,rt,at,ut){var gt=0;if(ot)rt==="left"?gt=0:rt==="right"?gt=b-tt:rt==="center"&&(gt=(b-tt)/2),y.fillRect(x+gt,E+.25*z,tt,1);else{if(rt==="left"?gt=0:rt==="right"?gt=b:rt==="center"&&(gt=b/2),b=Om!==null?Om(this,z):.75*z,y.fillText(a,x+gt,E+b),a=z/20|0,a===0&&(a=1),rt==="right"?gt-=tt:rt==="center"&&(gt-=tt/2),at){ot=jm!==null?jm(this,z):.8*z,rt=x+gt,at=E+ot,b=x+gt+tt,ot=E+ot;var mt=a;y.beginPath(),y.lineWidth=mt,y.moveTo(rt,at),y.lineTo(b,ot),y.stroke(),y.Se(),y instanceof Rl&&y.ad.classList.add("gojs-td")}ut&&(ut=E+z-z/2.2|0,a%2!==0&&(ut+=.5),E=x+gt,z=ut,x=x+gt+tt,tt=ut,gt=a,y.beginPath(),y.lineWidth=gt,y.moveTo(E,z),y.lineTo(x,tt),y.stroke(),y.Se(),y instanceof Rl&&y.ad.classList.add("gojs-td"))}},Ct.kk=function(a,y,x){if(!ee.prototype.kk.call(this,a,y,x))return!1;if(Ir(this,a,this.xc,!0,!1,this.naturalBounds,this.actualBounds),x){if(this.svg.getElementsByTagName("text").length===0)return!0;for(y=this.svg.getElementsByClassName("gojs-td"),x=0;xa?a=0:1a?a=0:1=a&&li(a,"> 0",Go,"maxLines"),bh(this),this.da.Jq=a,this.v(),this.g("maxLines",y,a))}},metrics:{get:function(){return{arrSize:this.Qc!==null?this.Qc:[this.Cb],arrText:this.Qb!==null?this.Qb:[this.ze],maxLineWidth:this.Cb,fontHeight:this.df}}},choices:{get:function(){return this.Gm},set:function(a){var y=this.Gm;y!==a&&(this.Gm=a,this.g("choices",y,a))}}});var Om=null,jm=null,Av=new Ye(Go,"None",0),w1=new Ye(Go,"WrapFit",1),Nv=new Ye(Go,"WrapDesiredSize",2),P1=new Ye(Go,"WrapBreakAll",3),bv=new Ye(Go,"OverflowClip",0),Rm=new Ye(Go,"OverflowEllipsis",1),Cp=new Ye(Go,"FormatTrim",0),C1=new Ye(Go,"FormatNone",0),Sx=/[ \u200b\u00ad]/,Tv=new Bi,M1=0,zm=new Bi,Dv=0,Mp="...",L1="",xl=null,Gm=!1;Go.className="TextBlock";function Fv(){this.nc=!1,this.Hd=null,this.Xf=ze,this.gq=Cp,this.Jq=1/0,this.$q=bv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Vr,this.$r=Nv}Fv.prototype.copy=function(){var a=new Fv;return a.Hd=this.Hd,a.Xf=this.Xf,a.gq=this.gq,a.Jq=this.Jq,a.$q=this.$q,a.Dr=this.Dr,a.Er=this.Er,a.Or=this.Or,a.Pr=this.Pr,a.Qr=this.Qr,a.vj=this.vj,a.Yr=this.Yr,a.$r=this.$r,a},Go.getEllipsis=function(){return Mp},Go.setEllipsis=function(a){Mp=a,zm=new Bi,Dv=0},Go.getBaseline=function(){return Om},Go.setBaseline=function(a){Om=a},Go.getUnderline=function(){return jm},Go.setUnderline=function(a){jm=a},Go.isValidFont=function(a){if(Gm||(xl=Nr?new bu(null).context:null,Gm=!0),xl===null)return!0;var y=xl.font;if(a===y||a==="10px sans-serif")return!0;xl.font="10px sans-serif",xl.font=a;var x=xl.font;if(x!=="10px sans-serif")return xl.font=y,!0;xl.font="19px serif";var E=xl.font;return xl.font=a,x=xl.font,xl.font=y,x!==E},Go.FormatNone=C1,Go.FormatTrim=Cp,Go.None=Av,Go.OverflowClip=bv,Go.OverflowEllipsis=Rm,Go.WrapBreakAll=P1,Go.WrapDesiredSize=Nv,Go.WrapFit=w1;function _h(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}_h.prototype.copy=function(){var a=new _h;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},_h.className="GradElementSettings";function wl(a,y){ee.call(this),this.Eg=null,this.qo="",this.Xg=ju,this.Nk=Ze,this.Zg=this.Hd=null,this.Mk=ri,this.Xf=ze,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,typeof a=="string"?this.source=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}var Tf;pe(wl,ee),wl.prototype.cloneProtected=function(a){ee.prototype.cloneProtected.call(this,a),a.qo=this.qo,a.element=this.Eg,a.Xg=this.Xg.J(),a.Nk=this.Nk,a.Xf=this.Xf,a.Hd=this.Hd,a.Zg=this.Zg,a.Mk=this.Mk.J(),a.en=this.en,a.rl=this.rl},wl.prototype.qb=function(a){a===ze||a===kn||a===Gi?this.imageStretch=a:ee.prototype.qb.call(this,a)},wl.prototype.toString=function(){return"Picture("+this.source+")#"+os(this)};function Df(a){a===void 0&&(a=""),a!==""?Tf[a]&&(delete Tf[a],Hm--):(Tf=new Bi,Hm=0)}function E1(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var E=y.Bg.copy();if(E!=null){for(E=E.iterator;E.next();){var b=E.value;b.N();var z=y.getAttribute("src")||"",tt=b.Og.I(z);if(tt!==null)for(var ot=tt.length,rt=0;rt=E.width&&(z=z+wt.offsetX+(gt*wt.x-E.width*wt.x)),mt>=E.height&&(tt=tt+wt.offsetY+(mt*wt.y-E.height*wt.y)),rt=Math.min(E.width,gt),ot=Math.min(E.height,mt);break;case Ze:gt=E.width,mt=E.height;break;case kn:case Gi:yt===kn?(yt=Math.min(E.height/mt,E.width/gt),gt*=yt,mt*=yt):yt===Gi&&(yt=Math.max(E.height/mt,E.width/gt),gt*=yt,mt*=yt,gt>=E.width&&(z=(z+wt.offsetX+(gt*wt.x-E.width*wt.x)/gt)*rt),mt>=E.height&&(tt=(tt+wt.offsetY+(mt*wt.y-E.height*wt.y)/mt)*ot),rt*=1/(gt/E.width),ot*=1/(mt/E.height),gt=E.width,mt=E.height)}yt=this.Df()*y.scale;var Et=gt*yt*mt*yt,zt=rt*ot/Et,It=x.__goCache;yt=null;var Yt=xx;if(!b){if(x.sq&&It!==void 0&&4Yt*Yt)for(It.gi===null&&(A1(It,4,at,ut,x),A1(It,16,at,ut,x)),b=It.gi,at=b.length,ut=0;uta)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,x/3);var E="rr"+y+","+x+","+a,b=_t.Mf[E];if(b!==void 0)return b;var z=a*_t.wg;return b=new He().add(new ls(a,0,!0).add(new Vi(Lo,y-a,0)).add(new Vi(Rs,y,a,y-z,0,y,z)).add(new Vi(Lo,y,x-a)).add(new Vi(Rs,y-a,x,y,x-z,y-z,x)).add(new Vi(Lo,a,x)).add(new Vi(Rs,0,x-a,z,x,0,x-z)).add(new Vi(Lo,0,a)).add(new Vi(Rs,a,0,0,z,z,0).close())),1b.x&&a.y>b.y&&a.rightb.x&&y.y>b.y&&y.right=x.maxSelectionCount)){this.G^=4096;var E=!1;if(x!==null){E=x.skipsUndoManager,x.skipsUndoManager=!0;var b=x.selection;b.ka(),a?b.add(this):b.remove(this),b.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),x!==null&&(x.$b(),x.skipsUndoManager=E)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(a){var y=(this.G&524288)!==0;if(y!==a){this.G^=524288;var x=this.diagram;x!==null&&(x=x.highlighteds,x.ka(),a?x.add(this):x.remove(this),x.freeze()),this.g("isHighlighted",y,a),this.N(),a=this.highlightedChanged,a!==null&&a(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(a){var y=(this.G&8192)!==0;y!==a&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",y,a),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(a){var y=(this.G&262144)!==0;y!==a&&(this.G^=262144,this.g("isAnimated",y,a))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(a){var y=this.highlightedChanged;y!==a&&(Pl(this),this.P.oq=a,this.g("highlightedChanged",y,a))}},selectionObjectName:{get:function(){return this.P!==null?this.P.vr:""},set:function(a){var y=this.selectionObjectName;y!==a&&(Pl(this),this.P.vr=a,this.Ug=null,this.g("selectionObjectName",y,a))}},selectionAdornmentTemplate:{get:function(){return this.P!==null?this.P.tr:null},set:function(a){var y=this.selectionAdornmentTemplate;y!==a&&(Pl(this),this.P.tr=a,this.g("selectionAdornmentTemplate",y,a))}},selectionObject:{get:function(){if(this.Ug===null){var a=this.selectionObjectName;a!==null&&a!==""?(a=this.fb(a),a!==null?this.Ug=a:this.Ug=this):this instanceof Je?(a=this.path,a!==null?this.Ug=a:this.Ug=this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return this.P!==null?this.P.ur:null},set:function(a){var y=this.selectionChanged;y!==a&&(Pl(this),this.P.ur=a,this.g("selectionChanged",y,a))}},resizeAdornmentTemplate:{get:function(){return this.P!==null?this.P.fr:null},set:function(a){var y=this.resizeAdornmentTemplate;y!==a&&(Pl(this),this.P.fr=a,this.g("resizeAdornmentTemplate",y,a))}},resizeObjectName:{get:function(){return this.P!==null?this.P.hr:""},set:function(a){var y=this.resizeObjectName;y!==a&&(Pl(this),this.P.hr=a,this.g("resizeObjectName",y,a))}},resizeObject:{get:function(){var a=this.resizeObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},resizeCellSize:{get:function(){return this.P!==null?this.P.gr:cs},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),Pl(this),this.P.gr=a,this.g("resizeCellSize",y,a))}},rotateAdornmentTemplate:{get:function(){return this.P!==null?this.P.ir:null},set:function(a){var y=this.rotateAdornmentTemplate;y!==a&&(Pl(this),this.P.ir=a,this.g("rotateAdornmentTemplate",y,a))}},rotateObjectName:{get:function(){return this.P!==null?this.P.jr:""},set:function(a){var y=this.rotateObjectName;y!==a&&(Pl(this),this.P.jr=a,this.g("rotateObjectName",y,a))}},rotateObject:{get:function(){var a=this.rotateObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},rotationSpot:{get:function(){return this.P!==null?this.P.lr:so},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),Pl(this),this.P.lr=a,this.g("rotationSpot",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;y!==a&&(this.ec=a,this.g("text",y,a))}},containingGroup:{get:function(){return this.Ah},set:function(a){if(this.Zc()){var y=this.Ah;if(y!==a){a===null||this!==a&&!a.Td(this)||(this===a&&oe("Cannot make a Group a member of itself: "+this.toString()),oe("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?Vv(y,this):this instanceof di&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Uv(a,this):this instanceof di&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var E=this.data,b=x.model;if(E!==null&&b.Xj()){var z=b.wa(a!==null?a.data:null);b.mp(E,z)}}if(E=this.containingGroupChanged,E!==null&&(b=!0,x!==null&&(b=x.aa,x.aa=!0),E(this,y,a),x!==null&&(x.aa=b)),this instanceof di){for(x=new en,Cc(x,this,!0,0,!0),x=x.iterator;x.next();)if(E=x.value,E instanceof hn)for(E=E.linksConnected;E.next();)If(E.value)}if(this instanceof hn){for(x=this.linksConnected;x.next();)If(x.value);x=this.labeledLink,x!==null&&If(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&cc(y,-1,a))}}else oe("cannot set the Part.containingGroup of a Link or Adornment")}},containingGroupChanged:{get:function(){return this.P!==null?this.P.Kp:null},set:function(a){var y=this.containingGroupChanged;y!==a&&(Pl(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof hn&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(Pl(this),this.P.Cq=a,this.g("layoutConditions",y,a))}},dragComputation:{get:function(){return this.P!==null?this.P.Up:null},set:function(a){var y=this.dragComputation;y!==a&&(Pl(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:_a},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),Pl(this),this.P.zr=a,this.N(),this.g("shadowOffset",y,a))}},shadowColor:{get:function(){return this.P!==null?this.P.yr:"gray"},set:function(a){var y=this.shadowColor;y!==a&&(Pl(this),this.P.yr=a,this.N(),this.g("shadowColor",y,a))}},shadowBlur:{get:function(){return this.P!==null?this.P.Vg:4},set:function(a){var y=this.shadowBlur;y!==a&&(Pl(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),Vn.prototype.invalidateLayout=Vn.prototype.C,Vn.prototype.findCommonContainingGroup=Vn.prototype.px,Vn.prototype.isMemberOf=Vn.prototype.Td,Vn.prototype.findTopLevelPart=Vn.prototype.sz,Vn.prototype.findSubGraphLevel=Vn.prototype.oz,Vn.prototype.ensureBounds=Vn.prototype.Va,Vn.prototype.getDocumentBounds=Vn.prototype.mi,Vn.prototype.findObject=Vn.prototype.fb,Vn.prototype.moveTo=Vn.prototype.moveTo,Vn.prototype.invalidateAdornments=Vn.prototype.Wb,Vn.prototype.clearAdornments=Vn.prototype.Ej,Vn.prototype.removeAdornment=Vn.prototype.Jf,Vn.prototype.addAdornment=Vn.prototype.bh,Vn.prototype.findAdornment=Vn.prototype.Pj,Vn.prototype.updateTargetBindings=Vn.prototype.La;var G1=!1;Vn.className="Part",Vn.LayoutNone=0,Vn.LayoutAdded=1,Vn.LayoutRemoved=2,Vn.LayoutShown=4,Vn.LayoutHidden=8,Vn.LayoutNodeSized=16,Vn.LayoutGroupLayout=32,Vn.LayoutNodeReplaced=64,Vn.LayoutStandard=127,Vn.LayoutAll=16777215;function Ji(a,y){a===void 0||a instanceof Es||typeof a=="string"?Vn.call(this,a):(Vn.call(this),a&&(y=a)),this.G&=-257,this.Jg="Adornment",this.ue=null,this.Aw=0,this.Uw=!1,this.j=this.$a=null,y&&Object.assign(this,y)}pe(Ji,Vn),Ji.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},Ji.prototype.updateRelationshipsFromData=function(){},Ji.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof Je&&y instanceof pi){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var E=0;Ea&&(a=1);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new en;x.add(this),Q1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Hd),y.Ue=!1}};function Q1(a,y,x,E,b,z,tt){if(1a&&(a=2);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new en;x.add(this),J1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Hd),y.Ue=!1}};function J1(a,y,x,E,b,z,tt){for(var ot=z===a?!1:a.isTreeExpanded,rt=x?a.Mo():a.Sd(),at={};rt.next();){var ut=rt.value;if(ut.isTreeLink&&(ot||ut.fd||ut.bb(),ut=ut.To(a),ut!==null&&ut!==a&&!y.contains(ut))){if(y.add(ut),!ot){ut.Zb(!0),ut.oh();var gt=x?ut.Oo():ut.Po();at.vv=a,gt.all(function(mt){return function(yt){return yt===mt.vv||!yt.isTreeExpanded}}(at))&&b.Cj(ut,z)}(2b&&(b=ot.right),ot.bottom>z&&(z=ot.bottom)}}return isFinite(x)&&isFinite(E)?a.h(x,E,b-x,z-E):(y=y.location,a.h(y.x,y.y,0,0)),a},ve.Object.defineProperties(rl.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new gi(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),rl.className="Placeholder";function Je(a){Vn.call(this,Ke.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=sl,this.Om=0,this.Qm=sl,this.Rm=NaN,this.qj=Jv,this.po=.5,this.wd=null,this.Nb=new on().freeze(),this.Tg=this.Mg=null,this.ml=new ke,this.ua=new He,this.u=this.o=this.Sf=this.Wf=null,this.su=new Wt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}pe(Je,Vn),Je.prototype.cloneProtected=function(a){Vn.prototype.cloneProtected.call(this,a),a.Qa=this.Qa&-113,a.ff=this.ff,a.gn=this.gn,a.vf=this.vf,a.uo=this.uo,a.qk=this.qk,a.Om=this.Om,a.Qm=this.Qm,a.Rm=this.Rm,a.qj=this.qj,a.po=this.po,this.ba!==null&&(a.ba=this.ba.copy())},Ct=Je.prototype,Ct.Af=function(a){Vn.prototype.Af.call(this,a),this.ff=a.ff,this.vf=a.vf,a.Mg=null,a.bb(),a.Sf=this.Sf;var y=a.fromPort;y!==null&&zl(y),a=a.toPort,a!==null&&zl(a)},Ct.qb=function(a){a.classType===Je?(a.value&2)===2?this.routing=a:a===ru||a===Xd||a===jf?this.curve=a:a===Ap||a===t0||a===e0?this.adjusting=a:a!==Jv&&a!==sl&&oe("Unknown Link enum value for a Link property: "+a):Vn.prototype.qb.call(this,a)},Ct.Xc=function(){this.ba===null&&(this.ba=new fp)},Ct.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),il(a)||wc(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),il(a)||wc(a)))},Ct.zv=function(){return!1},Ct.Av=function(){},Ct.Zc=function(){return!1},Je.prototype.computeAngle=function(a,y,x){return Je.computeAngle(y,x)},Je.computeAngle=function(a,y){switch(a){default:case sl:a=0;break;case Np:a=y;break;case bp:a=y+90;break;case Tp:a=y-90;break;case _v:a=y+180;break;case n0:a=_t.bp(y),90a&&(a-=180);break;case Dp:a=_t.bp(y+90),90a&&(a-=180);break;case Fp:a=_t.bp(y-90),90a&&(a-=180);break;case i0:if(a=_t.bp(y),45a||225a)return 0;90a&&(a-=180)}return _t.bp(a)};function If(a){var y=a.fromNode,x=a.toNode,E=null;if(y!==null?E=x!==null?y.px(x):y.containingGroup:x!==null?E=x.containingGroup:E=null,y=E,x=a.Ah,x!==y){x!==null&&Vv(x,a),a.Ah=y,y!==null&&Uv(y,a);var b=a.containingGroupChanged;if(b!==null){var z=!0,tt=a.diagram;tt!==null&&(z=tt.aa,tt.aa=!0),b(a,x,y),tt!==null&&(tt.aa=z)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=E}Ct=Je.prototype,Ct.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Vn.prototype.oh.call(this)},Ct.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Ct.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function $1(a,y){a.wd===null&&(a.wd=new en),a.wd.add(y),a.v()}Ct.Vo=function(a){if(Vn.prototype.Vo.call(this,a),mg(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Zm(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||Zm(x,this,E)}Ep(this)}},Ct.Wo=function(a){if(Vn.prototype.Wo.call(this,a),mg(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Km(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||Km(x,this,E)}kp(this)}},Ct.Lj=function(){if(this.fd=!0,this.wd!==null){var a=this.diagram;if(a!==null)for(var y=this.wd.copy().iterator;y.next();)a.remove(y.value)}this.data!==null&&(a=this.diagram,a!==null&&a.partManager.removeDataForLink(this))},Je.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},Je.prototype.move=function(a,y){var x=y?this.location:this.position,E=x.x;isNaN(E)&&(E=0);var b=x.y;for(isNaN(b)&&(b=0),E=a.x-E,b=a.y-b,y===!0?Vn.prototype.move.call(this,a,!1):(a=Wt.allocAt(x.x+E,x.y+b),Vn.prototype.move.call(this,a,!1),Wt.free(a)),Qd(this,E,b),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+E,x.y+b)},Je.prototype.canRelinkFrom=function(){if(!this.relinkableFrom)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},Je.prototype.canRelinkTo=function(){if(!this.relinkableTo)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},Je.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(lu),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var x=this.i(0),E=this.i(1);return a.h((x.x+E.x)/2,(x.y+E.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===ru))return this.ua.Pu(.5,a),a.add(this.i(0)),x=this.ua.figures.first(),a.offset(-x.startX,-x.startY),a;if(this.computeCurve()===ru){if(y===3){x=this.i(0),E=this.i(1);var b=this.i(2);return _t.ax(x.x,x.y,E.x,E.y,E.x,E.y,b.x,b.y,a),a}if(E=(y-1)/3|0,x=3*(E/2|0),E%2===1){E=this.i(x),b=this.i(x+1);var z=this.i(x+2);x=this.i(x+3),_t.ax(E.x,E.y,b.x,b.y,z.x,z.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var tt=this.flattenedLengths;for(x=this.flattenedTotalLength,b=z=E=0;Ex/2));)E+=b,z++;return y=this.i(z),z=this.i(z+1),1>Math.abs(y.x-z.x)?y.y>z.y?a.h(y.x,y.y-(x/2-E)):a.h(y.x,y.y+(x/2-E)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(x/2-E),y.y):a.h(y.x+(x/2-E),y.y):(x=(x/2-E)/b,a.h(y.x+x*(z.x-y.x),y.y+x*(z.y-y.y))),a},Je.prototype.computeMidAngle=function(){var a=this.pointsCount;if(2>a)return NaN;if(a===2)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===ru))return this.ua.wx(.5);if(this.computeCurve()===ru&&4<=a){var y=(a-1)/3|0,x=3*(y/2|0);if(y%2===1){x=Math.floor(x),a=this.i(x),y=this.i(x+1);var E=this.i(x+2);return x=this.i(x+3),_t.My(a.x,a.y,y.x,y.y,E.x,E.y,x.x,x.y)}if(0E/2));)b+=z,x++;if(y=this.i(x),E=this.i(x+1),1>Math.abs(y.x-E.x)&&1>Math.abs(y.y-E.y)){if(0Math.abs(y.x-E.x))return y.y>E.y?270:90;if(1>Math.abs(y.y-E.y))return y.x>E.x?180:0}return y.ab(E)},Ct=Je.prototype,Ct.i=function(a){return this.Nb.s[a]},Ct.dd=function(a,y){this.Nb.cd(a,y)},Ct.L=function(a,y,x){this.Nb.cd(a,new Wt(y,x))},Ct.Kz=function(a,y){this.Nb.Gb(a,y)},Ct.m=function(a,y,x){this.Nb.Gb(a,new Wt(y,x))},Ct.ne=function(a){this.Nb.add(a)},Ct.yf=function(a,y){this.Nb.add(new Wt(a,y))},Ct.pv=function(a){this.Nb.mb(a)},Ct.Fj=function(){this.Nb.clear()};function Qd(a,y,x){if(y!==0||x!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,x),a.defaultToPoint&&a.defaultToPoint.offset(y,x);else{for(var E=a.fd,b=new on,z=a.Nb.iterator;z.next();){var tt=z.value;b.add(new Wt(tt.x+y,tt.y+x).freeze())}b.freeze(),z=a.Nb,a.Nb=b,tt=a.diagram,isNaN(y)||isNaN(x)||tt!==null&&tt.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+x),a.pa.h(a.pa.x+y,a.pa.y+x),nl(a)),E?Xm(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),tt!==null&&tt.animationManager.zb&&dd(tt.animationManager,a,b),a.g("points",z,b)}}Ct.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Ct.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,E=1/0,b=a.s,z=b.length,tt=0;ttat&&(gt=-gt),Et=(0>rt?-1:1)*gt+yt,zt=ut*(Et-yt)+wt),yt=z.x+2*ot/3,wt=z.y+2*rt/3;var It=yt,Yt=wt;_t.B(rt,0)?Yt=0rt?-1:1)*gt+yt,Yt=ut*(It-yt)+wt),this.Fj(),this.ne(z),this.yf(Et,zt),this.yf(It,Yt),this.ne(mt),this.dd(0,this.getLinkPoint(a,y,tt,!0,!1,E,b)),this.dd(3,this.getLinkPoint(E,b,x,!1,!1,a,y))}else z=E,mt=b,E=this.getLinkPoint(a,y,tt,!0,!1,z,mt),b=this.getLinkPoint(z,mt,x,!1,!1,a,y),this.hasCurviness()?(mt=b.x-E.x,x=b.y-E.y,tt=this.computeCurviness(),a=E.x+mt/2,y=E.y+x/2,z=a,ot=y,_t.B(x,0)?ot=0tt&&(z=-z),z=(0>x?-1:1)*z+a,ot=mt*(z-a)+y),this.ne(E),this.yf(z,ot),this.ne(b)):(this.ne(E),this.ne(b),ot=ke.alloc(),y.mi(ot),rt=ot.ca(b),mt.mi(ot),at=ot.ca(E),(rt||at)&&(tt=y.ga(_m(tt),new Wt),this.dd(0,this.getLinkPointFromPoint(a,y,tt,b,!0,tt)),x=mt.ga(_m(x),new Wt),this.dd(1,this.getLinkPointFromPoint(z,mt,x,E,!1,x))),ke.free(ot))}else{gt=this.isAvoiding,mt&&(ut&>||at)&&this.Fj();var Vt=at?this.computeCurviness():0;gt=this.getLinkPoint(a,y,tt,!0,ut,E,b),yt=Et=wt=0,(ut||!ot||at)&&(zt=this.computeEndSegmentLength(a,y,tt,!0),yt=this.getLinkDirection(a,y,gt,tt,!0,ut,E,b),at&&(ot||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(yt-=ut?90:30,0>Vt&&(yt-=180)),0>yt?yt+=360:360<=yt&&(yt-=360),at&&(zt+=Math.abs(Vt)*(ut?1:2)),yt===0?wt=zt:yt===90?Et=zt:yt===180?wt=-zt:yt===270?Et=-zt:(wt=zt*Math.cos(yt*Math.PI/180),Et=zt*Math.sin(yt*Math.PI/180)),tt.Mc()&&at&&(zt=y.ga(ri,Wt.alloc()),It=Wt.allocAt(zt.x+1e3*wt,zt.y+1e3*Et),this.getLinkPointFromPoint(a,y,zt,It,!0,gt),Wt.free(zt),Wt.free(It))),zt=this.getLinkPoint(E,b,x,!1,ut,a,y);var Xt=Yt=It=0;if(ut||!rt||at){var te=this.computeEndSegmentLength(E,b,x,!1);Xt=this.getLinkDirection(E,b,zt,x,!1,ut,a,y),at&&(rt||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(Xt+=ut?0:30,0>Vt&&(Xt+=180)),0>Xt?Xt+=360:360<=Xt&&(Xt-=360),at&&(te+=Math.abs(Vt)*(ut?1:2)),Xt===0?It=te:Xt===90?Yt=te:Xt===180?It=-te:Xt===270?Yt=-te:(It=te*Math.cos(Xt*Math.PI/180),Yt=te*Math.sin(Xt*Math.PI/180)),x.Mc()&&at&&(x=b.ga(ri,Wt.alloc()),tt=Wt.allocAt(x.x+1e3*It,x.y+1e3*Yt),this.getLinkPointFromPoint(E,b,x,tt,!1,zt),Wt.free(x),Wt.free(tt))}x=gt,(ut||!ot||at)&&(x=new Wt(gt.x+wt,gt.y+Et)),tt=zt,(ut||!rt||at)&&(tt=new Wt(zt.x+It,zt.y+Yt)),!mt&&!ut&&ot&&3Math.abs(y.y-a.y)?(y.x>=a.x?y.x=a.x+9e9:y.x=a.x-9e9,y.y=a.y):(y.y>=a.y?y.y=a.y+9e9:y.y=a.y-9e9,y.x=a.x),y}Je.prototype.getLinkPointFromPoint=function(a,y,x,E,b,z){if(z===void 0&&(z=new Wt),a===null||y===null)return z.assign(x),z;if(a.isVisible()||(b=a.findVisibleNode(),b!==null&&b!==a&&(y=b.port)),a=null,b=y.panel,b===null||b.se()||(b=b.panel),b===null){b=E.x,E=E.y;var tt=x.x;x=x.y}else{a=b.oe,b=1/(a.m11*a.m22-a.m12*a.m21),tt=a.m22*b;var ot=-a.m12*b,rt=-a.m21*b,at=a.m11*b,ut=b*(a.m21*a.dy-a.m22*a.dx),gt=b*(a.m12*a.dx-a.m11*a.dy);b=E.x*tt+E.y*rt+ut,E=E.x*ot+E.y*at+gt,tt=x.x*tt+x.y*rt+ut,x=x.x*ot+x.y*at+gt}return y.Sj(b,E,tt,x,z),a!==null&&z.transform(a),z};function Jm(a,y){var x=y.Zn;return x===null&&(x=new _g,x.port=y,x.node=y.part,y.Zn=x),aS(x,a)}Je.prototype.getLinkPoint=function(a,y,x,E,b,z,tt,ot){if(ot===void 0&&(ot=new Wt),x.sb()&&!Of(x))return y.ga(x,ot),ot;if(x.$c()){var rt=Jm(this,y);if(rt!==null){if(ot.assign(rt.Zo),b&&this.routing===eS){var at=Jm(this,tt);if(at!==null&&rt.Gl=ut.y&&a.y<=ut.y+ut.height?ot.y=a.y:(x.Hf(no)||x.Hf(Mo))&&a.x>=ut.x&&a.x<=ut.x+ut.width&&(ot.x=a.x),Wt.free(rt),Wt.free(at)}}return ot}}return x=y.ga(_m(x),Wt.alloc()),this.pointsCount>(b?6:2)?(tt=E?this.i(1):this.i(this.pointsCount-2),b&&(tt=Zv(x,tt.copy()))):(rt=this.computeSpot(!E,tt),z=Wt.alloc(),tt=tt.ga(_m(rt),z),b&&(tt=Zv(x,tt)),Wt.free(z)),this.getLinkPointFromPoint(a,y,x,tt,E,ot),Wt.free(x),ot},Je.prototype.getLinkDirection=function(a,y,x,E,b,z,tt,ot){t:if(E.sb())var rt=E.x>E.y?E.x>1-E.y?0:E.x<1-E.y?270:315:E.x1-E.y?90:E.x<1-E.y?180:135:.5>E.x?225:.5(z?6:2)?(ot=b?this.i(1):this.i(this.pointsCount-2),ot=z?Zv(rt,ot.copy()):x):(x=Wt.alloc(),ot=ot.ga(ri,x),Wt.free(x)),x=Math.abs(ot.x-rt.x)>Math.abs(ot.y-rt.y)?ot.x>=rt.x?0:180:ot.y>=rt.y?90:270,Wt.free(rt),rt=x}return E.Mc()&&tt.Td(a)&&(rt+=180,360<=rt&&(rt-=360)),Of(E)||(a=y.li(),a===0)||(45<=a&&135>a?rt+=90:135<=a&&225>a?rt+=180:225<=a&&315>a&&(rt+=270),360<=rt&&(rt-=360)),rt},Je.prototype.computeEndSegmentLength=function(a,y,x,E){return y!==null&&x.$c()&&(a=Jm(this,y),a!==null)?a.Ju:(a=E?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=E?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},Je.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=ri:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===so?We:y)):(a=y||this.toPort,a===null?a=ri:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===so?We:y)),a};function Of(a){return a===We||a.x===.5&&a.y===.5}function _m(a){return a.x===.5&&a.y===.5?a:ri}Je.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==sl&&4mt.width||gt.y>mt.height||0>gt.x+gt.width||0>gt.y+gt.height)){if(gt=fi.alloc(),gt.set(tt),ut instanceof Ke)ot=ut.Cf(a,y,x,E,b,gt);else if(this.path===ut){if(ut instanceof pi)if(ot=a,mt=E,ut.pickable===!1)ot=!1;else if(gt.multiply(ut.transform),mt)t:{var yt=ot,wt=gt;if(ut.fh(yt,wt))ot=!0;else{if(wt===void 0&&(wt=ut.transform,yt.Re(ut.actualBounds))){ot=!0;break t}ot=yt.left,mt=yt.right;var Et=yt.top;yt=yt.bottom;var zt=Wt.alloc(),It=Wt.alloc(),Yt=Wt.alloc(),Vt=fi.alloc();Vt.set(wt),Vt.bv(ut.transform),Vt.Vj(),It.x=mt,It.y=Et,It.transform(Vt),zt.x=ot,zt.y=Et,zt.transform(Vt),wt=!1,fg(ut,zt,It,Yt)?wt=!0:(zt.x=mt,zt.y=yt,zt.transform(Vt),fg(ut,zt,It,Yt)?wt=!0:(It.x=ot,It.y=yt,It.transform(Vt),fg(ut,zt,It,Yt)?wt=!0:(zt.x=ot,zt.y=Et,zt.transform(Vt),fg(ut,zt,It,Yt)&&(wt=!0)))),fi.free(Vt),Wt.free(zt),Wt.free(It),Wt.free(Yt),ot=wt}}else ot=ut.fh(ot,gt)}else ot=Ws(ut,a,E,gt);ot&&(mt=ut,y!==null&&(mt=y(ut)),mt&&(x===null||x(mt))&&b.add(mt)),fi.free(gt)}}}return z===void 0&&fi.free(tt),ot||this.background!==null||this.areaBackground!==null}return z===void 0&&fi.free(tt),!1},Je.prototype.computeCurve=function(){if(this.Wf===null){var a=this.fromPort,y=this.isOrthogonal;this.Wf=a!==null&&a===this.toPort&&!y}return this.Wf?ru:this.curve},Je.prototype.computeCorner=function(){if(this.curve===ru)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},Je.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,E=0;Ert?-Math.PI/2:Math.PI/2;else ut=Math.atan(rt/Math.abs(ot)),0>ot&&(ut=Math.PI-ut);tt=y.x;var gt=y.y;ot=E.x-tt;var mt=E.y-gt;for(rt=Math.sqrt(ot*ot+mt*mt),_t.$(ot,0)?mt=0>mt?-Math.PI/2:Math.PI/2:(mt=Math.atan(mt/Math.abs(ot)),0>ot&&(mt=Math.PI-mt)),at=rt/at,ut=mt-ut,this.dd(a,y),a+=1;art?-Math.PI/2:Math.PI/2:(rt=Math.atan(rt/Math.abs(ot)),0>ot&&(rt=Math.PI-rt)),ot=rt+ut,y*=at,this.L(a,tt+y*Math.cos(ot),gt+y*Math.sin(ot)));this.dd(x,E)}}return!0;case e0:if(z=this.i(a),gt=this.i(x),!z.Xa(y)||!gt.Xa(E)){b=z.x,z=z.y,tt=gt.x,gt=gt.y,at=(tt-b)*(tt-b)+(gt-z)*(gt-z),ot=y.x,ut=y.y,rt=E.x,mt=E.y;var yt=1;if(rt-ot!==0){var wt=(mt-ut)/(rt-ot);yt=Math.sqrt(1+1/(wt*wt))}else wt=9e9;for(this.dd(a,y),a+=1;ay?y+=360:360<=y&&(y-=360),0>E?E+=360:360<=E&&(E-=360);var tt=E;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,E=315<=E||45>E?0:45<=E&&135>E?90:135<=E&&225>E?180:270;var ot=b.actualBounds.copy(),rt=z.actualBounds.copy();if(ot.w()&&rt.w()){ot.Bc(Bp,Bp),rt.Bc(Bp,Bp),ot.Ye(a),rt.Ye(x);var at=Wt.alloc(),ut=Wt.alloc();y===0?x.x>a.x||E===270&&x.ya.x||E===90&&x.y>a.y&&rt.right>a.x?(at.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),E===180?(at.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ut.x=at.x,ut.y=x.y):E===270&&x.ya.y?(at.x=a.xrt.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):rt.right,ut.x=at.x,ut.y=x.y):E===0&&a.xrt.top&&a.yot.bottom)&&(E===180&&(rt.ca(a)||ot.ca(x))?at.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.ya.y&&(E===180||E===270)&&(at.y=this.computeMidOrthoPosition(a.x,ot.bottom,x.x,Math.min(x.y,rt.top),!0)),ut.x=x.x,ut.y=at.y),at.y>ot.top&&at.y=ot.left&&x.x<=a.x||a.x<=rt.right&&a.x>=x.x?(E===90||E===270)&&(at.h(Math.max((a.x+x.x)/2,a.x),a.y),ut.h(at.x,x.y)):(at.y=E===270||(E===0||E===180)&&x.ya.y&&rt.lefta.y?(at.x=a.x>rt.right?this.computeMidOrthoPosition(a.x,a.y,rt.right,x.y,!1):a.x>rt.left&&(E===270&&a.yrt.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):rt.left,ut.x=at.x,ut.y=x.y):E===180&&a.x>rt.right&&a.y>rt.top&&a.yot.bottom)&&(E===0&&(rt.ca(a)||ot.ca(x))?at.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.ya.y&&(E===0||E===270)&&(at.y=this.computeMidOrthoPosition(a.x,ot.bottom,x.x,Math.min(x.y,rt.top),!0)),ut.x=x.x,ut.y=at.y),at.y>ot.top&&at.y=a.x||a.x>=rt.left&&a.x<=x.x?(E===90||E===270)&&(at.h(Math.min((a.x+x.x)/2,a.x),a.y),ut.h(at.x,x.y)):(at.y=E===270||(E===0||E===180)&&x.ya.y||E===180&&x.xa.y||E===0&&x.x>a.x&&rt.bottom>a.y?(at.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),E===270?(at.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ut.x=x.x,ut.y=at.y):E===180&&x.xa.x?(at.y=a.yrt.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):rt.bottom,ut.x=x.x,ut.y=at.y):E===90&&a.yrt.left&&a.xot.right)&&(E===270&&(rt.ca(a)||ot.ca(x))?at.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.xa.x&&(E===270||E===180)&&(at.x=this.computeMidOrthoPosition(ot.right,a.y,Math.min(x.x,rt.left),x.y,!1)),ut.x=at.x,ut.y=x.y),at.x>ot.left&&at.x=ot.top&&x.y<=a.y||a.y<=rt.bottom&&a.y>=x.y?(E===0||E===180)&&(at.h(a.x,Math.max((a.y+x.y)/2,a.y)),ut.h(x.x,at.y)):(at.x=E===180||(E===90||E===270)&&x.xa.x&&rt.top=a.x?(at.y=a.y>rt.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,rt.bottom,!0):a.y>rt.top&&(E===180&&a.xrt.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):rt.top,ut.x=x.x,ut.y=at.y):E===270&&a.y>rt.bottom&&a.x>rt.left&&a.xot.right)&&(E===90&&(rt.ca(a)||ot.ca(x))?at.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.xa.x&&(E===90||E===180)&&(at.x=this.computeMidOrthoPosition(ot.right,a.y,Math.min(x.x,rt.left),x.y,!1)),ut.x=at.x,ut.y=x.y),at.x>ot.left&&at.x=a.y||a.y>=rt.top&&a.y<=x.y?(E===0||E===180)&&(at.h(a.x,Math.min((a.y+x.y)/2,a.y)),ut.h(x.x,at.y)):(at.x=E===180||(E===90||E===270)&&x.x=zf&&(oS(yt),ot.Bc(yt.Ho*yt.Hx,yt.Go*yt.Ix),rS(yt,a,y,gt,E,ot,!1),rt=qh(yt,gt.x,gt.y)),!yt.abort&&rtthis.pointsCount?(y===0||y===180?(ot.x=a.x,ot.y=gt.y):(ot.x=gt.x,ot.y=a.y),this.L(2,ot.x,ot.y),this.m(3,ot.x,ot.y)):(tt=this.i(3),y===0||y===180?_t.B(ot.x,tt.x)?(ot=y===0?Math.max(ot.x,a.x):Math.min(ot.x,a.x),this.L(2,ot,a.y),this.L(3,ot,tt.y)):_t.B(ot.y,tt.y)?(Math.abs(a.y-ot.y)<=yt.Go/2&&(this.L(2,ot.x,a.y),this.L(3,tt.x,a.y)),this.m(2,ot.x,a.y)):this.L(2,a.x,ot.y):(y===90||y===270)&&(_t.B(ot.y,tt.y)?(ot=y===90?Math.max(ot.y,a.y):Math.min(ot.y,a.y),this.L(2,a.x,ot),this.L(3,tt.x,ot)):_t.B(ot.x,tt.x)?(Math.abs(a.x-ot.x)<=yt.Ho/2&&(this.L(2,a.x,ot.y),this.L(3,a.x,tt.y)),this.m(2,a.x,ot.y)):this.L(2,ot.x,a.y))),x!==null&&(a=this.i(1),tt=this.i(2),a.x!==tt.x&&a.y!==tt.y?y===0||y===180?this.m(2,a.x,tt.y):this.m(2,tt.x,a.y):y===0||y===180?this.m(2,b.x,x.y):this.m(2,x.x,b.y)),wt!==null&&(E===0||E===180?this.yf(z.x,wt.y):this.yf(wt.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(at.copy()),this.ne(ut.copy())),Wt.free(at),Wt.free(ut)}},Je.prototype.computeMidOrthoPosition=function(a,y,x,E,b){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),b?(y+E)/2+z:(a+x)/2+z};function Kv(a){if(a.diagram===null||!a.isAvoiding||!So(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=Mr(a.diagram,!0,a.containingGroup,null);for(var E=1;Evg&&qh(y,ut,gt)!==at-1&&(qh(y,x-ot,E)===at-1?(b=180,ut=x-ot,gt=E):qh(y,x+ot,E)===at-1?(b=0,ut=x+ot,gt=E):qh(y,x,E-rt)===at-1?(b=270,ut=x,gt=E-rt):qh(y,x,E+rt)===at-1&&(b=90,ut=x,gt=E+rt));at>vg&&qh(y,ut,gt)===at-1;)x=ut,E=gt,b===0?ut+=ot:b===90?gt+=rt:b===180?ut-=ot:gt-=rt,--at;z?at>vg&&(b===180||b===0?x=Math.floor(x/ot)*ot+ot/2:(b===90||b===270)&&(E=Math.floor(E/rt)*rt+rt/2)):(x=Math.floor(x/ot)*ot+ot/2,E=Math.floor(E/rt)*rt+rt/2),at>vg&&(z=b,tt=x,ut=E,b===0?(z=90,ut+=rt):b===90?(z=180,tt-=ot):b===180?(z=270,ut-=rt):b===270&&(z=0,tt+=ot),qh(y,tt,ut)===at-1?Qv(a,y,tt,ut,z,!1,z):(tt=x,ut=E,b===0?(z=270,ut-=rt):b===90?(z=0,tt+=ot):b===180?(z=90,ut+=rt):b===270&&(z=180,tt-=ot),qh(y,tt,ut)===at-1&&Qv(a,y,tt,ut,z,!1,z))),a.yf(x,E)}Je.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),E=this.i(1),b=_r(y,a,x.x,x.y,E.x,E.y),z=0,tt=1;ttthis.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),a=this.path,a!==null)){a.ua=this.ua;for(var y=this.O.s,x=y.length,E=0;E=y&&(E=y-1),rt=this.i(E),z.x=Math.min(rt.x,z.x),z.y=Math.min(rt.y,z.y);E=z.x,rt=z.y}else{for(rt=0;rtzt?wt>yt?(z.x=It-Vt,z.y=yt-Vt,b.x=It+Et,b.y=yt+Et):(z.x=It-Vt,z.y=yt+Vt,b.x=It+Et,b.y=yt-Et):wt>yt?(z.x=It+Vt,z.y=yt-Vt,b.x=It-Et,b.y=yt+Et):(z.x=It+Vt,z.y=yt+Vt,b.x=It-Et,b.y=yt-Et)),_t.$(zt,It)&&_t.$(yt,wt)&&(yt>mt?(Yt>It?(z.x=It-Vt,z.y=yt-Vt,b.x=It+Et):(z.x=It+Vt,z.y=yt-Vt,b.x=It-Et),b.y=yt+Et):(Yt>It?(z.x=It-Vt,z.y=yt+Vt,b.x=It+Et):(z.x=It+Vt,z.y=yt+Vt,b.x=It-Et),b.y=yt-Et)),(_t.$(zt,It)&&_t.$(It,Yt)||_t.$(mt,yt)&&_t.$(yt,wt))&&(zt=.5*(zt+Yt),mt=.5*(mt+wt),z.x=zt,z.y=mt,b.x=zt,b.y=mt),(gt===1||gt===2&&_t.$(tt.x,this.i(0).x)&&_t.$(tt.y,this.i(0).y))&&(x.x=.5*(tt.x+at.x),x.y=.5*(tt.y+at.y)),Vd(ot,x.x-E,x.y-rt,z.x-E,z.y-rt,at.x-E,at.y-rt),y.set(z),x.set(b),tt=at}}at=tt.x,tt=tt.y,ut=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ut=Kg(this,ut.copy(),!1,Js)),at=.5*(at+ut.x),tt=.5*(tt+ut.y),Vd(ot,b.x-E,b.y-rt,at-E,tt-rt,ut.x-E,ut.y-rt),Wt.free(y),Wt.free(x),Wt.free(z),Wt.free(b)}else for(x=3;x=y&&(x=y-1),b=this.i(x-1),tt=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(tt=Kg(this,tt.copy(),!1,Js)),Vd(ot,z.x-E,z.y-rt,b.x-E,b.y-rt,tt.x-E,tt.y-rt);else{for(z=Wt.alloc(),z.assign(this.i(0)),b=Wt.alloc(),b.assign(z),tt=this.computeCorner(),gt=1,at=0;gt=y-1){if(!z.D(ut))this.computeShortLength(!1)!==0&&(ut=Kg(this,ut.copy(),!1,Js)),Qg(this,ot,-E,-rt,z,ut,x);else if(at===0)for(gt=1;gtz.x?Xt=mt.x-wt:Xt=mt.x+wt,It.y>mt.y?Yt=mt.y+Vt:Yt=mt.y-Vt,It=Wt.allocAt(Xt,te),Qg(this,ot,gt,zt,z,It,Et),Wt.free(It),Wm(ot,mt.x+gt,mt.y+zt,yt+gt,Yt+zt),z.h(yt,Yt)}else _t.B(z.x,mt.x)&&_t.B(mt.y,It.y)?(wt=Math.min(tt,Math.abs(mt.y-b.y)/2),wt=Vt=Math.min(wt,Math.abs(It.x-mt.x)/2),_t.B(Vt,0)?(Qg(this,ot,gt,zt,z,mt,Et),z.assign(mt)):(Xt=mt.x,te=mt.y,yt=Xt,Yt=te,mt.y>z.y?te=mt.y-wt:te=mt.y+wt,It.x>mt.x?yt=mt.x+Vt:yt=mt.x-Vt,It=Wt.allocAt(Xt,te),Qg(this,ot,gt,zt,z,It,Et),Wt.free(It),Wm(ot,mt.x+gt,mt.y+zt,yt+gt,Yt+zt),z.h(yt,Yt))):(Qg(this,ot,gt,zt,z,mt,Et),z.assign(mt));b.assign(ut),gt=at}Wt.free(z)}Ym=ot}else ot=this.i(1).copy(),ot.x-=E,ot.y-=rt,this.computeShortLength(!0)!==0&&(b=Kg(this,b,!0,z)),this.computeShortLength(!1)!==0&&(ot=Kg(this,ot,!1,z)),a.type=He.j,a.startX=b.x,a.startY=b.y,a.endX=ot.x,a.endY=ot.y;return this.lk=!0,a};function qm(a,y,x,E){return a=x-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=E-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),_t.$(a,0)?y:_t.$(y,0)?a:Math.sqrt(a*a+y*y)))}function Kg(a,y,x,E){var b=a.pointsCount;if(2>b)return y;if(x){var z=a.i(1);if(x=z.x-E.x,z=z.y-E.y,E=qm(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!0),a>b&&(a=b),b=a*(z-y.y)/E,y.x+=a*(x-y.x)/E,y.y+=b}else{if(z=a.i(b-2),x=z.x-E.x,z=z.y-E.y,E=qm(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!1),a>b&&(a=b),b=a*(y.y-z)/E,y.x-=a*(y.x-x)/E,y.y-=b}return y}function Xv(a,y,x,E){for(var b=a.pointsCount,z=y;_t.$(y.x,z.x)&&_t.$(y.y,z.y);){if(x>=b)return b-1;z=a.i(x++)}if(!_t.$(y.x,z.x)&&!_t.$(y.y,z.y))return x-1;for(var tt=z;_t.$(y.x,z.x)&&_t.$(z.x,tt.x)&&(!E||(y.y>=z.y?z.y>=tt.y:z.y<=tt.y))||_t.$(y.y,z.y)&&_t.$(z.y,tt.y)&&(!E||(y.x>=z.x?z.x>=tt.x:z.x<=tt.x));){if(x>=b)return b-1;tt=a.i(x++)}return x-2}Je.prototype.computeJumpLength=function(){return 10};function Qg(a,y,x,E,b,z,tt){if(!tt&&mg(a)){tt=a.computeJumpLength();var ot=tt/2,rt=[],at=0;if(a.isVisible()&&(at=Lx(a,b,z,rt)),0gt-tt);)at--,gt=Math.max(ut-ot,z.x);ut=z.y-tt+E,gt+=x,yt=z.y+E,a.curve===Xd?Bf(y,gt,yt,!1):Vd(y,mt,ut,gt,ut,gt,yt)}else if(_t.B(b.x,z.x))if(b.yut-tt);)at--,ut=Math.max(gt-ot,z.y);gt=z.x-tt+x,yt=z.x+x,ut+=E,a.curve===Xd?Bf(y,yt,ut,!1):Vd(y,gt,mt,gt,ut,yt,ut)}}}y.lineTo(z.x+x,z.y+E)}function Lx(a,y,x,E){var b=a.diagram;if(b===null||y.D(x))return 0;for(b=b.layers;b.next();){var z=b.value;if(z!==null&&z.visible){z=z.Pa.s;for(var tt=z.length,ot=0;ottt.x&&ut.x>=at.x||at.xtt.y&&ut.y>=at.y||at.ytt&&Math.min(wt,Et)ut&&!_t.B(wt,Et)){ot.x=ut,ot.y=tt,ut=!0;break t}}else if(_t.B(gt,yt)&&_t.B(wt,Et)&&Math.min(ut,mt)wt&&Math.min(tt,zt)gt&&!_t.B(tt,zt)){ot.x=wt,ot.y=gt,ut=!0;break t}ot.x=0,ot.y=0,ut=!1}ut&&(b?x.push(ot.x):x.push(ot.y)),tt=at}Wt.free(ot)}function mg(a){return a=a.curve,a===jf||a===Xd}function $m(a,y){(y||mg(a))&&(y=a.diagram,y===null||y.animationManager.isTicking||y.Eh.contains(a)||a.ml.width===0&&a.ml.height===0||y.Eh.add(a,a.ml.copy()))}Je.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var x=y.diagram;if(x!==null&&!x.animationManager.isTicking){var E=!1;for(x=x.layers;x.next();){var b=x.value;if(b.visible){if(b===y){E=!0;var z=!1;b=b.Pa.s;for(var tt=b.length,ot=0;ota&&li(a,">= 0",Je,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),this.bb())}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:NaN},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.qc(),this.g("fromShortLength",y,a))}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:so},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),(y.$c()||a.$c())&&this.toNode!==null&&zl(this.toPort),this.bb())}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:NaN},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&li(a,">= 0",Je,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),this.bb())}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:NaN},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.qc(),this.g("toShortLength",y,a))}},isLabeledLink:{get:function(){return this.wd===null?!1:0=E&&(z=E-1);var ot=this.i(z-1),rt=this.i(z);_t.Dl(b.x,b.y,tt.x,tt.y,ot.x,ot.y,rt.x,rt.y,.5,a),y=Math.min(rt.x,y),x=Math.min(rt.y,x),b=rt}else for(b=this.i(0),z=this.i(1),y=Math.min(b.x,z.x),x=Math.min(b.y,z.y),a.h(b.x,b.y,0,0),a.Ye(z),b=2;bE&&(E=-E)):_t.$(E.y,b.y)?(E=b.x-E.x,0>E&&(E=-E)):E=Math.sqrt(E.Bf(b)),a.push(E)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,x=y.length,E=a=0;Ethis.pointsCount)return this.lk=!0,this.ua;this.ua=this.makeGeometry()}return this.ua}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!Of(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!Of(this.computeSpot(!1))?a-2:a-1}},adjusting:{get:function(){return this.qk},set:function(a){var y=this.qk;y!==a&&(this.qk=a,this.g("adjusting",y,a))}},corner:{get:function(){return this.Om},set:function(a){var y=this.Om;y!==a&&(this.Om=a,this.qc(),this.g("corner",y,a))}},curve:{get:function(){return this.Qm},set:function(a){var y=this.Qm;y!==a&&(this.Qm=a,this.bb(),this.qc(),$m(this,y===Xd||y===jf||a===Xd||a===jf),this.g("curve",y,a))}},curviness:{get:function(){return this.Rm},set:function(a){var y=this.Rm;y!==a&&(this.Rm=a,this.bb(),this.qc(),this.g("curviness",y,a))}},routing:{get:function(){return this.qj},set:function(a){var y=this.qj;y!==a&&(this.qj=a,this.Wf=null,this.bb(),$m(this,(y.value&2)===2||(a.value&2)===2),this.g("routing",y,a))}},smoothness:{get:function(){return this.po},set:function(a){var y=this.po;y!==a&&(this.po=a,this.qc(),this.g("smoothness",y,a))}},key:{get:function(){var a=this.diagram;if(a!==null&&a.model.ri())return a.model.Ac(this.data)}}}),Je.prototype.invalidateOtherJumpOvers=Je.prototype.Xo,Je.prototype.findClosestSegment=Je.prototype.ez,Je.prototype.updateRoute=Je.prototype.vg,Je.prototype.invalidateRoute=Je.prototype.bb,Je.prototype.rollbackRoute=Je.prototype.rv,Je.prototype.commitRoute=Je.prototype.zf,Je.prototype.startRoute=Je.prototype.uh,Je.prototype.clearPoints=Je.prototype.Fj,Je.prototype.removePoint=Je.prototype.pv,Je.prototype.addPointAt=Je.prototype.yf,Je.prototype.addPoint=Je.prototype.ne,Je.prototype.insertPointAt=Je.prototype.m,Je.prototype.insertPoint=Je.prototype.Kz,Je.prototype.setPointAt=Je.prototype.L,Je.prototype.setPoint=Je.prototype.dd,Je.prototype.getPoint=Je.prototype.i,Je.prototype.getOtherPort=Je.prototype.Cz,Je.prototype.getOtherNode=Je.prototype.To;var Xg=null,Jg=null,Jv=new Ye(Je,"Normal",1),kx=new Ye(Je,"Orthogonal",2),Ax=new Ye(Je,"AvoidsNodes",6),eS=new Ye(Je,"AvoidsNodesStraight",7),sl=new Ye(Je,"None",0),ru=new Ye(Je,"Bezier",9),Xd=new Ye(Je,"JumpGap",10),jf=new Ye(Je,"JumpOver",11),Ap=new Ye(Je,"End",17),t0=new Ye(Je,"Scale",18),e0=new Ye(Je,"Stretch",19),Np=new Ye(Je,"OrientAlong",21),bp=new Ye(Je,"OrientPlus90",22),Tp=new Ye(Je,"OrientMinus90",23),_v=new Ye(Je,"OrientOpposite",24),n0=new Ye(Je,"OrientUpright",25),Dp=new Ye(Je,"OrientPlus90Upright",26),Fp=new Ye(Je,"OrientMinus90Upright",27),i0=new Ye(Je,"OrientUpright45",28),nS=16,iS=14,Bp=8;Je.className="Link",Je.Normal=Jv,Je.Orthogonal=kx,Je.AvoidsNodes=Ax,Je.AvoidsNodesStraight=eS,Je.None=sl,Je.Bezier=ru,Je.JumpGap=Xd,Je.JumpOver=jf,Je.End=Ap,Je.Scale=t0,Je.Stretch=e0,Je.OrientAlong=Np,Je.OrientPlus90=bp,Je.OrientMinus90=Tp,Je.OrientOpposite=_v,Je.OrientUpright=n0,Je.OrientPlus90Upright=Dp,Je.OrientMinus90Upright=Fp,Je.OrientUpright45=i0,Je.EndSegmentStep=8,Je.CurvinessStart=nS,Je.SpacingMin=iS,Je.OrthoShortCut=Bp;function o0(a,y,x,E){Ko(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=E,this.links=[]}o0.prototype.Sl=function(){if(!this.qq){var a=this.links;0=a.width||0>=a.height)){var y=a.y,x=a.x+a.width,E=a.y+a.height;if(this.Nd=Math.floor((a.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((y-this.sc)/this.sc)*this.sc,this.En=Math.ceil((x+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((E+2*this.sc)/this.sc)*this.sc,a=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),y=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di=vg&&(x[E]=qv)}Ip.prototype.Yj=function(a,y,x,E){if(a>this.En||a+xthis.Fn||y+Ea&&(x+=a,a=0),0>y&&(b+=y,y=0),0>x||0>b)return!0;for(E=Math.min(a+x-1,this.di)|0,x=Math.min(y+b-1,this.ei)|0;a<=E;a++){b=this.ac[a];for(var z=y;z<=x;z++)if(b[z]===Jd)return!1}return!0};function $h(a,y,x,E,b,z,tt,ot,rt){if(!(ytt||xrt)){var at=y|0,ut=x|0,gt=a.ac[at][ut];if(gt>=vg&>=a.ac[at][ut]);)a.ac[at][ut]=gt,gt+=1,b?ut+=E:at+=E;if(at=b?ut:at,b)if(0at;x+=E)$h(a,y,x,1,!b,z,tt,ot,rt),$h(a,y,x,-1,!b,z,tt,ot,rt);else if(0at;y+=E)$h(a,y,x,1,!b,z,tt,ot,rt),$h(a,y,x,-1,!b,z,tt,ot,rt)}}function r0(a,y,x,E,b,z,tt,ot,rt){y|=0,x|=0;var at=Jd,ut=vg;for(a.ac[y][x]=ut;at===Jd&&y>z&&yot&&xz&&yot&&x=Math.abs(ot-at)&&1>=Math.abs(rt-ut))a.abort=!0;else{var gt=z.x;E=z.y,y=z.x+z.width;var mt=z.y+z.height;gt-=a.Nd,gt/=a.rc,E-=a.Od,E/=a.sc,y-=a.Nd,y/=a.rc,mt-=a.Od,mt/=a.sc,z=Math.max(0,Math.min(a.di,gt|0)),y=Math.min(a.di,Math.max(0,y|0)),gt=Math.max(0,Math.min(a.ei,E|0)),mt=Math.min(a.ei,Math.max(0,mt|0)),E=a.ac,ot|=0,rt|=0,at|=0,ut|=0;var yt=x===0||x===90?1:-1;if(x=x===90||x===270,E[ot][rt]===Jd?(r0(a,ot,rt,yt,x,z,y,gt,mt),r0(a,ot,rt,1,!x,z,y,gt,mt),r0(a,ot,rt,-1,!x,z,y,gt,mt)):r0(a,ot,rt,yt,x,ot,rt,ot,rt),E[at][ut]===Jd?(s0(a,at,ut,b===0||b===90?1:-1,b===90||b===270,z,y,gt,mt),s0(a,at,ut,1,!(b===90||b===270),z,y,gt,mt),s0(a,at,ut,-1,!(b===90||b===270),z,y,gt,mt)):s0(a,at,ut,yt,x,at,ut,at,ut),x=Ii(),tt&&sS(a,at,ut,b,ot,rt,x))for((x[0]!==at||x[1]!==ut)&&(x.unshift(ut),x.unshift(at)),(x[x.length-2]!==ot||x[x.length-1]!==rt)&&(x.push(ot),x.push(rt)),a=vg,b=x[x.length-2],tt=x[x.length-1],E[b][tt]=a++,z=x.length-4;0<=z;z-=2)for(b=x[z+2],tt=x[z+3],y=x[z],at=x[z+1];y>b?b++:ytt?tt++:atb)ut--;else break;else if(gt>z)gt--;else break;var mt=ot[ut][gt];if(mt===0||mt===$v)break;rt=ut,at=gt}for(;;){if(ut=E,gt=rt,mt=at,E===0?mtz&&(ut=270,mt--):E===90?gtb&&(ut=180,gt--):E===180?mtz&&(ut=270,mt--):gtb&&(ut=180,gt--),gt=ot[gt][mt],ut!==E&>!==0&>!==$v){if(tt.push(rt),tt.push(at),sS(a,rt,at,ut,b,z,tt))return!0;tt.pop(),tt.pop()}if(ot[rt][at]=$v,E===0){if(rt===y)return!1;rt--}else if(E===90){if(at===x)return!1;at--}else if(E===180){if(rt===y)return!1;rt++}else{if(at===x)return!1;at++}}}ve.Object.defineProperties(Ip.prototype,{bounds:{get:function(){return new ke(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(a){0=x?180:0}switch(a=180*Math.atan2(a.height,a.width)/Math.PI,y){case 3:return x>a&&x<=180+a?180:270;case 5:return x>180-a&&x<=360-a?270:0;case 12:return x>a&&x<=180+a?90:0;case 10:return x>180-a&&x<=360-a?180:90;case 7:return 90180+a&&x<=360-a?270:0;case 13:return 180a&&180>=x?90:0;case 14:return x>a&&x<=180-a?90:x>180-a&&270>=x?180:0;case 11:return x>180-a&&x<=180+a?180:x>180+a?270:90}return E&&y!==15&&(x-=15,0>x&&(x+=360)),x>a&&x<180-a?90:x>=180-a&&x<=180+a?180:x>180+a&&x<360-a?270:0}_g.prototype.Sl=function(){this.pe.length=0};function aS(a,y){var x=a.pe;if(x.length===0){t:if(!a.ap){x=a.ap,a.ap=!0;var E=null,b=a.node,z=b instanceof di?b:null;if(z===null||z.isSubGraphExpanded)var tt=b.isTreeExpanded?b.findLinksConnected(a.port.portId):b.qx();else{if(!z.actualBounds.w()){a.ap=x;break t}E=z,tt=E.Lu()}z=a.pe.length=0;var ot=a.port.ga(be,Wt.alloc()),rt=a.port.ga($i,Wt.alloc());for(b=ke.allocAt(ot.x,ot.y,0,0),b.Ye(rt),Wt.free(ot),Wt.free(rt),ot=Wt.allocAt(b.x+b.width/2,b.y+b.height/2),rt=a.port.li(),tt=tt.iterator;tt.next();){var at=tt.value;if(at.isVisible()&&at.fromPort!==at.toPort){var ut=at.fromPort===a.port||at.fromNode!==null&&at.fromNode.Td(E),gt=at.computeSpot(ut,a.port);if(gt.$c()&&(ut=ut?at.toPort:at.fromPort,ut!==null)){var mt=ut.part;if(mt!==null){var yt=mt.findVisibleNode();yt!==null&&yt!==mt&&(mt=yt,ut=mt.port),ut=at.computeOtherPoint(mt,ut),mt=ot.ab(ut),mt-=rt,0>mt?mt+=360:360<=mt&&(mt-=360),gt=Nx(b,gt,mt,at.isOrthogonal),gt===0?(gt=4,180mt&&(mt+=360)),yt=a.pe[z],yt===void 0?(yt=new ty(at,mt,gt),a.pe[z]=yt):(yt.link=at,yt.angle=mt,yt.Nc=gt),yt.hv.set(ut),z++}}}}for(Wt.free(ot),a.pe.sort(_g.prototype.j),rt=a.pe.length,E=-1,z=ot=0;zMath.abs(Et)?(Yt=Math.abs(Et)/mt,mt=Math.abs(Et)):Yt=1;break;case 2:yt>Math.abs(Vt)?(Yt=Math.abs(Vt)/yt,yt=Math.abs(Vt)):Yt=1;break;case 1:gt>Math.abs(Et)?(Yt=Math.abs(Et)/gt,gt=Math.abs(Et)):Yt=1;break;default:case 4:ut>Math.abs(Vt)?(Yt=Math.abs(Vt)/ut,ut=Math.abs(Vt)):Yt=1}It=0}var ge=Xt.Zo;if(E===Yv){switch(Xt=Xt.link.computeThickness(),Xt*=Yt,ge.set(te),wt){case 8:ge.x=te.x+Et/2+mt/2-It-Xt/2;break;case 2:ge.y=te.y+Vt/2+yt/2-It-Xt/2;break;case 1:ge.x=te.x+Et/2-gt/2+It+Xt/2;break;default:case 4:ge.y=te.y+Vt/2-ut/2+It+Xt/2}It+=Xt}else{var ln=.5;E===Qm&&(ln=(Xt.Uo+1)/(Xt.Gl+1)),ge.x=te.x+Et*ln,ge.y=te.y+Vt*ln}}}for(Wt.free(ot),Wt.free(rt),Wt.free(tt),Wt.free(at),te=a.pe,z=0;zy.Nc?1:a.angley.angle?1:0},_g.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,We,y.fromPort===this.port),E=a.Uo;if(0>E)return x;var b=a.Gl;if(1>=b||!y.isOrthogonal)return x;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(E=b-1-E),((a=a.Nc===2||a.Nc===4)?y.y=y-1?(z=0,E=x,b+=tt+20,tt=0):z++}},lr.prototype.doMinimalNetworkLayout=function(){var a=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var y=this.arrangementOrigin.x,x=y,E=this.arrangementOrigin.y,b=0,z=0,tt=this.network.vertexes.iterator;tt.next();){var ot=tt.value.node;if(!(ot===null||ot instanceof Je)&&(Op(ot),this.rh(ot))){var rt=ot.measuredBounds,at=rt.width;rt=rt.height,ot.moveTo(x,E),ot instanceof di&&(ot.rh=!1),x+=Math.max(at,50)+20,z=Math.max(z,Math.max(rt,50)),b>=a-1?(b=0,x=y,E+=z+20,z=0):b++}}},lr.prototype.rh=function(a){return!!(!a.location.w()||a instanceof di&&a.rh)};function Mc(a,y,x,E,b,z,tt,ot){for(x=x.iterator;x.next();){var rt=x.value;E&&!rt.isTopLevel||b!==null&&!b(rt)||!rt.canLayout()||(z&&rt instanceof hn?rt.isLinkLabel||(rt instanceof di&&rt.layout===null?Mc(a,y,rt.memberParts,!1,b,z,tt,ot):(Op(rt),y.add(rt))):tt&&rt instanceof Je?y.add(rt):!ot||!rt.Zc()||rt instanceof hn||(Op(rt),y.add(rt)))}}function Op(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}lr.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new ke),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},lr.prototype.ex=function(a){var y=new en;return a instanceof ce?(Mc(this,y,a.nodes,!0,null,!0,!0,!0),Mc(this,y,a.links,!0,null,!0,!0,!0),Mc(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof di?Mc(this,y,a.memberParts,!1,null,!0,!0,!0):Mc(this,y,a.iterator,!1,null,!0,!0,!0),y},lr.prototype.initialOrigin=function(a){var y=this.group;if(y!==null){var x=y.position.copy();return(isNaN(x.x)||isNaN(x.y))&&x.set(a),y=y.placeholder,y!==null&&(x=y.ga(be),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},ve.Object.defineProperties(lr.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},group:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a,a!==null&&(this.H=a.diagram))}},isOngoing:{get:function(){return this.sn},set:function(a){this.sn!==a&&(this.sn=a)}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a,a||(this.xn=!0)}},isViewportSized:{get:function(){return this.yn},set:function(a){this.yn!==a&&(this.yn=a)&&this.C()}},isRouting:{get:function(){return this.vn},set:function(a){this.vn!==a&&(this.vn=a)}},isRealtime:{get:function(){return this.un},set:function(a){this.un!==a&&(this.un=a)}},isValidLayout:{get:function(){return this.xn},set:function(a){this.xn!==a&&(this.xn=a,a||(a=this.diagram,a!==null&&(a.xh=!0)))}},network:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,a!==null&&(a.layout=this))}},boundsComputation:{get:function(){return this.Em},set:function(a){this.Em!==a&&(this.Em=a,this.C())}},arrangementOrigin:{get:function(){return this.Am},set:function(a){this.Am.D(a)||(this.Am.assign(a),this.C())}}}),lr.prototype.collectParts=lr.prototype.ex,lr.prototype.getLayoutBounds=lr.prototype.ni,lr.prototype.invalidateLayout=lr.prototype.C,lr.className="Layout";function Ho(a){Ko(this),this.Sc=a,this.wf=new en,this.ye=new en,this.Es=new oi,this.zs=new oi}Ho.prototype.clear=function(){if(this.wf)for(var a=this.wf.iterator;a.next();)a.value.clear();if(this.ye)for(a=this.ye.iterator;a.next();)a.value.clear();this.wf=new en,this.ye=new en,this.Es=new oi,this.zs=new oi},Ho.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutNetwork"+(this.layout!==null?"("+this.layout.toString()+")":"");if(0>=a)return y;if(y+=" vertexes: "+this.wf.count+" edges: "+this.ye.count,1a?a=0:1a?a=0:1=a&&li(a,"> 0",Go,"maxLines"),bh(this),this.da.Jq=a,this.v(),this.g("maxLines",y,a))}},metrics:{get:function(){return{arrSize:this.Qc!==null?this.Qc:[this.Cb],arrText:this.Qb!==null?this.Qb:[this.ze],maxLineWidth:this.Cb,fontHeight:this.df}}},choices:{get:function(){return this.Gm},set:function(a){var y=this.Gm;y!==a&&(this.Gm=a,this.g("choices",y,a))}}});var Om=null,jm=null,Av=new Ye(Go,"None",0),w1=new Ye(Go,"WrapFit",1),Nv=new Ye(Go,"WrapDesiredSize",2),P1=new Ye(Go,"WrapBreakAll",3),bv=new Ye(Go,"OverflowClip",0),Rm=new Ye(Go,"OverflowEllipsis",1),Cp=new Ye(Go,"FormatTrim",0),C1=new Ye(Go,"FormatNone",0),Sx=/[ \u200b\u00ad]/,Tv=new Bi,M1=0,zm=new Bi,Dv=0,Mp="...",L1="",xl=null,Gm=!1;Go.className="TextBlock";function Fv(){this.nc=!1,this.Hd=null,this.Xf=ze,this.gq=Cp,this.Jq=1/0,this.$q=bv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Vr,this.$r=Nv}Fv.prototype.copy=function(){var a=new Fv;return a.Hd=this.Hd,a.Xf=this.Xf,a.gq=this.gq,a.Jq=this.Jq,a.$q=this.$q,a.Dr=this.Dr,a.Er=this.Er,a.Or=this.Or,a.Pr=this.Pr,a.Qr=this.Qr,a.vj=this.vj,a.Yr=this.Yr,a.$r=this.$r,a},Go.getEllipsis=function(){return Mp},Go.setEllipsis=function(a){Mp=a,zm=new Bi,Dv=0},Go.getBaseline=function(){return Om},Go.setBaseline=function(a){Om=a},Go.getUnderline=function(){return jm},Go.setUnderline=function(a){jm=a},Go.isValidFont=function(a){if(Gm||(xl=Nr?new bu(null).context:null,Gm=!0),xl===null)return!0;var y=xl.font;if(a===y||a==="10px sans-serif")return!0;xl.font="10px sans-serif",xl.font=a;var x=xl.font;if(x!=="10px sans-serif")return xl.font=y,!0;xl.font="19px serif";var E=xl.font;return xl.font=a,x=xl.font,xl.font=y,x!==E},Go.FormatNone=C1,Go.FormatTrim=Cp,Go.None=Av,Go.OverflowClip=bv,Go.OverflowEllipsis=Rm,Go.WrapBreakAll=P1,Go.WrapDesiredSize=Nv,Go.WrapFit=w1;function _h(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}_h.prototype.copy=function(){var a=new _h;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},_h.className="GradElementSettings";function wl(a,y){ee.call(this),this.Eg=null,this.qo="",this.Xg=ju,this.Nk=Ze,this.Zg=this.Hd=null,this.Mk=ri,this.Xf=ze,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,typeof a=="string"?this.source=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}var Tf;pe(wl,ee),wl.prototype.cloneProtected=function(a){ee.prototype.cloneProtected.call(this,a),a.qo=this.qo,a.element=this.Eg,a.Xg=this.Xg.J(),a.Nk=this.Nk,a.Xf=this.Xf,a.Hd=this.Hd,a.Zg=this.Zg,a.Mk=this.Mk.J(),a.en=this.en,a.rl=this.rl},wl.prototype.qb=function(a){a===ze||a===kn||a===Gi?this.imageStretch=a:ee.prototype.qb.call(this,a)},wl.prototype.toString=function(){return"Picture("+this.source+")#"+os(this)};function Df(a){a===void 0&&(a=""),a!==""?Tf[a]&&(delete Tf[a],Hm--):(Tf=new Bi,Hm=0)}function E1(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var E=y.Bg.copy();if(E!=null){for(E=E.iterator;E.next();){var b=E.value;b.N();var z=y.getAttribute("src")||"",tt=b.Og.I(z);if(tt!==null)for(var ot=tt.length,rt=0;rt=E.width&&(z=z+wt.offsetX+(gt*wt.x-E.width*wt.x)),mt>=E.height&&(tt=tt+wt.offsetY+(mt*wt.y-E.height*wt.y)),rt=Math.min(E.width,gt),ot=Math.min(E.height,mt);break;case Ze:gt=E.width,mt=E.height;break;case kn:case Gi:yt===kn?(yt=Math.min(E.height/mt,E.width/gt),gt*=yt,mt*=yt):yt===Gi&&(yt=Math.max(E.height/mt,E.width/gt),gt*=yt,mt*=yt,gt>=E.width&&(z=(z+wt.offsetX+(gt*wt.x-E.width*wt.x)/gt)*rt),mt>=E.height&&(tt=(tt+wt.offsetY+(mt*wt.y-E.height*wt.y)/mt)*ot),rt*=1/(gt/E.width),ot*=1/(mt/E.height),gt=E.width,mt=E.height)}yt=this.Df()*y.scale;var Et=gt*yt*mt*yt,zt=rt*ot/Et,It=x.__goCache;yt=null;var Yt=xx;if(!b){if(x.sq&&It!==void 0&&4Yt*Yt)for(It.gi===null&&(A1(It,4,at,ut,x),A1(It,16,at,ut,x)),b=It.gi,at=b.length,ut=0;uta)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,x/3);var E="rr"+y+","+x+","+a,b=_t.Mf[E];if(b!==void 0)return b;var z=a*_t.wg;return b=new He().add(new ls(a,0,!0).add(new Vi(Lo,y-a,0)).add(new Vi(Rs,y,a,y-z,0,y,z)).add(new Vi(Lo,y,x-a)).add(new Vi(Rs,y-a,x,y,x-z,y-z,x)).add(new Vi(Lo,a,x)).add(new Vi(Rs,0,x-a,z,x,0,x-z)).add(new Vi(Lo,0,a)).add(new Vi(Rs,a,0,0,z,z,0).close())),1b.x&&a.y>b.y&&a.rightb.x&&y.y>b.y&&y.right=x.maxSelectionCount)){this.G^=4096;var E=!1;if(x!==null){E=x.skipsUndoManager,x.skipsUndoManager=!0;var b=x.selection;b.ka(),a?b.add(this):b.remove(this),b.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),x!==null&&(x.$b(),x.skipsUndoManager=E)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(a){var y=(this.G&524288)!==0;if(y!==a){this.G^=524288;var x=this.diagram;x!==null&&(x=x.highlighteds,x.ka(),a?x.add(this):x.remove(this),x.freeze()),this.g("isHighlighted",y,a),this.N(),a=this.highlightedChanged,a!==null&&a(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(a){var y=(this.G&8192)!==0;y!==a&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",y,a),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(a){var y=(this.G&262144)!==0;y!==a&&(this.G^=262144,this.g("isAnimated",y,a))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(a){var y=this.highlightedChanged;y!==a&&(Pl(this),this.P.oq=a,this.g("highlightedChanged",y,a))}},selectionObjectName:{get:function(){return this.P!==null?this.P.vr:""},set:function(a){var y=this.selectionObjectName;y!==a&&(Pl(this),this.P.vr=a,this.Ug=null,this.g("selectionObjectName",y,a))}},selectionAdornmentTemplate:{get:function(){return this.P!==null?this.P.tr:null},set:function(a){var y=this.selectionAdornmentTemplate;y!==a&&(Pl(this),this.P.tr=a,this.g("selectionAdornmentTemplate",y,a))}},selectionObject:{get:function(){if(this.Ug===null){var a=this.selectionObjectName;a!==null&&a!==""?(a=this.fb(a),a!==null?this.Ug=a:this.Ug=this):this instanceof Je?(a=this.path,a!==null?this.Ug=a:this.Ug=this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return this.P!==null?this.P.ur:null},set:function(a){var y=this.selectionChanged;y!==a&&(Pl(this),this.P.ur=a,this.g("selectionChanged",y,a))}},resizeAdornmentTemplate:{get:function(){return this.P!==null?this.P.fr:null},set:function(a){var y=this.resizeAdornmentTemplate;y!==a&&(Pl(this),this.P.fr=a,this.g("resizeAdornmentTemplate",y,a))}},resizeObjectName:{get:function(){return this.P!==null?this.P.hr:""},set:function(a){var y=this.resizeObjectName;y!==a&&(Pl(this),this.P.hr=a,this.g("resizeObjectName",y,a))}},resizeObject:{get:function(){var a=this.resizeObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},resizeCellSize:{get:function(){return this.P!==null?this.P.gr:cs},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),Pl(this),this.P.gr=a,this.g("resizeCellSize",y,a))}},rotateAdornmentTemplate:{get:function(){return this.P!==null?this.P.ir:null},set:function(a){var y=this.rotateAdornmentTemplate;y!==a&&(Pl(this),this.P.ir=a,this.g("rotateAdornmentTemplate",y,a))}},rotateObjectName:{get:function(){return this.P!==null?this.P.jr:""},set:function(a){var y=this.rotateObjectName;y!==a&&(Pl(this),this.P.jr=a,this.g("rotateObjectName",y,a))}},rotateObject:{get:function(){var a=this.rotateObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},rotationSpot:{get:function(){return this.P!==null?this.P.lr:so},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),Pl(this),this.P.lr=a,this.g("rotationSpot",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;y!==a&&(this.ec=a,this.g("text",y,a))}},containingGroup:{get:function(){return this.Ah},set:function(a){if(this.Zc()){var y=this.Ah;if(y!==a){a===null||this!==a&&!a.Td(this)||(this===a&&oe("Cannot make a Group a member of itself: "+this.toString()),oe("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?Vv(y,this):this instanceof di&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Uv(a,this):this instanceof di&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var E=this.data,b=x.model;if(E!==null&&b.Xj()){var z=b.wa(a!==null?a.data:null);b.mp(E,z)}}if(E=this.containingGroupChanged,E!==null&&(b=!0,x!==null&&(b=x.aa,x.aa=!0),E(this,y,a),x!==null&&(x.aa=b)),this instanceof di){for(x=new en,Cc(x,this,!0,0,!0),x=x.iterator;x.next();)if(E=x.value,E instanceof hn)for(E=E.linksConnected;E.next();)If(E.value)}if(this instanceof hn){for(x=this.linksConnected;x.next();)If(x.value);x=this.labeledLink,x!==null&&If(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&cc(y,-1,a))}}else oe("cannot set the Part.containingGroup of a Link or Adornment")}},containingGroupChanged:{get:function(){return this.P!==null?this.P.Kp:null},set:function(a){var y=this.containingGroupChanged;y!==a&&(Pl(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof hn&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(Pl(this),this.P.Cq=a,this.g("layoutConditions",y,a))}},dragComputation:{get:function(){return this.P!==null?this.P.Up:null},set:function(a){var y=this.dragComputation;y!==a&&(Pl(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:_a},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),Pl(this),this.P.zr=a,this.N(),this.g("shadowOffset",y,a))}},shadowColor:{get:function(){return this.P!==null?this.P.yr:"gray"},set:function(a){var y=this.shadowColor;y!==a&&(Pl(this),this.P.yr=a,this.N(),this.g("shadowColor",y,a))}},shadowBlur:{get:function(){return this.P!==null?this.P.Vg:4},set:function(a){var y=this.shadowBlur;y!==a&&(Pl(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),Vn.prototype.invalidateLayout=Vn.prototype.C,Vn.prototype.findCommonContainingGroup=Vn.prototype.px,Vn.prototype.isMemberOf=Vn.prototype.Td,Vn.prototype.findTopLevelPart=Vn.prototype.sz,Vn.prototype.findSubGraphLevel=Vn.prototype.oz,Vn.prototype.ensureBounds=Vn.prototype.Va,Vn.prototype.getDocumentBounds=Vn.prototype.mi,Vn.prototype.findObject=Vn.prototype.fb,Vn.prototype.moveTo=Vn.prototype.moveTo,Vn.prototype.invalidateAdornments=Vn.prototype.Wb,Vn.prototype.clearAdornments=Vn.prototype.Ej,Vn.prototype.removeAdornment=Vn.prototype.Jf,Vn.prototype.addAdornment=Vn.prototype.bh,Vn.prototype.findAdornment=Vn.prototype.Pj,Vn.prototype.updateTargetBindings=Vn.prototype.La;var G1=!1;Vn.className="Part",Vn.LayoutNone=0,Vn.LayoutAdded=1,Vn.LayoutRemoved=2,Vn.LayoutShown=4,Vn.LayoutHidden=8,Vn.LayoutNodeSized=16,Vn.LayoutGroupLayout=32,Vn.LayoutNodeReplaced=64,Vn.LayoutStandard=127,Vn.LayoutAll=16777215;function Ji(a,y){a===void 0||a instanceof Es||typeof a=="string"?Vn.call(this,a):(Vn.call(this),a&&(y=a)),this.G&=-257,this.Jg="Adornment",this.ue=null,this.Aw=0,this.Uw=!1,this.j=this.$a=null,y&&Object.assign(this,y)}pe(Ji,Vn),Ji.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},Ji.prototype.updateRelationshipsFromData=function(){},Ji.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof Je&&y instanceof pi){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var E=0;Ea&&(a=1);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new en;x.add(this),Q1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Hd),y.Ue=!1}};function Q1(a,y,x,E,b,z,tt){if(1a&&(a=2);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new en;x.add(this),J1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Hd),y.Ue=!1}};function J1(a,y,x,E,b,z,tt){for(var ot=z===a?!1:a.isTreeExpanded,rt=x?a.Mo():a.Sd(),at={};rt.next();){var ut=rt.value;if(ut.isTreeLink&&(ot||ut.fd||ut.bb(),ut=ut.To(a),ut!==null&&ut!==a&&!y.contains(ut))){if(y.add(ut),!ot){ut.Zb(!0),ut.oh();var gt=x?ut.Oo():ut.Po();at.vv=a,gt.all(function(mt){return function(yt){return yt===mt.vv||!yt.isTreeExpanded}}(at))&&b.Cj(ut,z)}(2b&&(b=ot.right),ot.bottom>z&&(z=ot.bottom)}}return isFinite(x)&&isFinite(E)?a.h(x,E,b-x,z-E):(y=y.location,a.h(y.x,y.y,0,0)),a},ve.Object.defineProperties(rl.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new gi(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),rl.className="Placeholder";function Je(a){Vn.call(this,Ke.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=sl,this.Om=0,this.Qm=sl,this.Rm=NaN,this.qj=Jv,this.po=.5,this.wd=null,this.Nb=new on().freeze(),this.Tg=this.Mg=null,this.ml=new ke,this.ua=new He,this.u=this.o=this.Sf=this.Wf=null,this.su=new Wt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}pe(Je,Vn),Je.prototype.cloneProtected=function(a){Vn.prototype.cloneProtected.call(this,a),a.Qa=this.Qa&-113,a.ff=this.ff,a.gn=this.gn,a.vf=this.vf,a.uo=this.uo,a.qk=this.qk,a.Om=this.Om,a.Qm=this.Qm,a.Rm=this.Rm,a.qj=this.qj,a.po=this.po,this.ba!==null&&(a.ba=this.ba.copy())},Ct=Je.prototype,Ct.Af=function(a){Vn.prototype.Af.call(this,a),this.ff=a.ff,this.vf=a.vf,a.Mg=null,a.bb(),a.Sf=this.Sf;var y=a.fromPort;y!==null&&zl(y),a=a.toPort,a!==null&&zl(a)},Ct.qb=function(a){a.classType===Je?(a.value&2)===2?this.routing=a:a===su||a===Xd||a===jf?this.curve=a:a===Ap||a===t0||a===e0?this.adjusting=a:a!==Jv&&a!==sl&&oe("Unknown Link enum value for a Link property: "+a):Vn.prototype.qb.call(this,a)},Ct.Xc=function(){this.ba===null&&(this.ba=new fp)},Ct.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),il(a)||wc(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),il(a)||wc(a)))},Ct.zv=function(){return!1},Ct.Av=function(){},Ct.Zc=function(){return!1},Je.prototype.computeAngle=function(a,y,x){return Je.computeAngle(y,x)},Je.computeAngle=function(a,y){switch(a){default:case sl:a=0;break;case Np:a=y;break;case bp:a=y+90;break;case Tp:a=y-90;break;case _v:a=y+180;break;case n0:a=_t.bp(y),90a&&(a-=180);break;case Dp:a=_t.bp(y+90),90a&&(a-=180);break;case Fp:a=_t.bp(y-90),90a&&(a-=180);break;case i0:if(a=_t.bp(y),45a||225a)return 0;90a&&(a-=180)}return _t.bp(a)};function If(a){var y=a.fromNode,x=a.toNode,E=null;if(y!==null?E=x!==null?y.px(x):y.containingGroup:x!==null?E=x.containingGroup:E=null,y=E,x=a.Ah,x!==y){x!==null&&Vv(x,a),a.Ah=y,y!==null&&Uv(y,a);var b=a.containingGroupChanged;if(b!==null){var z=!0,tt=a.diagram;tt!==null&&(z=tt.aa,tt.aa=!0),b(a,x,y),tt!==null&&(tt.aa=z)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=E}Ct=Je.prototype,Ct.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Vn.prototype.oh.call(this)},Ct.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Ct.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function $1(a,y){a.wd===null&&(a.wd=new en),a.wd.add(y),a.v()}Ct.Vo=function(a){if(Vn.prototype.Vo.call(this,a),mg(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Zm(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||Zm(x,this,E)}Ep(this)}},Ct.Wo=function(a){if(Vn.prototype.Wo.call(this,a),mg(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Km(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||Km(x,this,E)}kp(this)}},Ct.Lj=function(){if(this.fd=!0,this.wd!==null){var a=this.diagram;if(a!==null)for(var y=this.wd.copy().iterator;y.next();)a.remove(y.value)}this.data!==null&&(a=this.diagram,a!==null&&a.partManager.removeDataForLink(this))},Je.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},Je.prototype.move=function(a,y){var x=y?this.location:this.position,E=x.x;isNaN(E)&&(E=0);var b=x.y;for(isNaN(b)&&(b=0),E=a.x-E,b=a.y-b,y===!0?Vn.prototype.move.call(this,a,!1):(a=Wt.allocAt(x.x+E,x.y+b),Vn.prototype.move.call(this,a,!1),Wt.free(a)),Qd(this,E,b),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+E,x.y+b)},Je.prototype.canRelinkFrom=function(){if(!this.relinkableFrom)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},Je.prototype.canRelinkTo=function(){if(!this.relinkableTo)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},Je.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(Vl),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var x=this.i(0),E=this.i(1);return a.h((x.x+E.x)/2,(x.y+E.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===su))return this.ua.Pu(.5,a),a.add(this.i(0)),x=this.ua.figures.first(),a.offset(-x.startX,-x.startY),a;if(this.computeCurve()===su){if(y===3){x=this.i(0),E=this.i(1);var b=this.i(2);return _t.ax(x.x,x.y,E.x,E.y,E.x,E.y,b.x,b.y,a),a}if(E=(y-1)/3|0,x=3*(E/2|0),E%2===1){E=this.i(x),b=this.i(x+1);var z=this.i(x+2);x=this.i(x+3),_t.ax(E.x,E.y,b.x,b.y,z.x,z.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var tt=this.flattenedLengths;for(x=this.flattenedTotalLength,b=z=E=0;Ex/2));)E+=b,z++;return y=this.i(z),z=this.i(z+1),1>Math.abs(y.x-z.x)?y.y>z.y?a.h(y.x,y.y-(x/2-E)):a.h(y.x,y.y+(x/2-E)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(x/2-E),y.y):a.h(y.x+(x/2-E),y.y):(x=(x/2-E)/b,a.h(y.x+x*(z.x-y.x),y.y+x*(z.y-y.y))),a},Je.prototype.computeMidAngle=function(){var a=this.pointsCount;if(2>a)return NaN;if(a===2)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===su))return this.ua.wx(.5);if(this.computeCurve()===su&&4<=a){var y=(a-1)/3|0,x=3*(y/2|0);if(y%2===1){x=Math.floor(x),a=this.i(x),y=this.i(x+1);var E=this.i(x+2);return x=this.i(x+3),_t.My(a.x,a.y,y.x,y.y,E.x,E.y,x.x,x.y)}if(0E/2));)b+=z,x++;if(y=this.i(x),E=this.i(x+1),1>Math.abs(y.x-E.x)&&1>Math.abs(y.y-E.y)){if(0Math.abs(y.x-E.x))return y.y>E.y?270:90;if(1>Math.abs(y.y-E.y))return y.x>E.x?180:0}return y.ab(E)},Ct=Je.prototype,Ct.i=function(a){return this.Nb.s[a]},Ct.dd=function(a,y){this.Nb.cd(a,y)},Ct.L=function(a,y,x){this.Nb.cd(a,new Wt(y,x))},Ct.Kz=function(a,y){this.Nb.Gb(a,y)},Ct.m=function(a,y,x){this.Nb.Gb(a,new Wt(y,x))},Ct.ne=function(a){this.Nb.add(a)},Ct.yf=function(a,y){this.Nb.add(new Wt(a,y))},Ct.pv=function(a){this.Nb.mb(a)},Ct.Fj=function(){this.Nb.clear()};function Qd(a,y,x){if(y!==0||x!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,x),a.defaultToPoint&&a.defaultToPoint.offset(y,x);else{for(var E=a.fd,b=new on,z=a.Nb.iterator;z.next();){var tt=z.value;b.add(new Wt(tt.x+y,tt.y+x).freeze())}b.freeze(),z=a.Nb,a.Nb=b,tt=a.diagram,isNaN(y)||isNaN(x)||tt!==null&&tt.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+x),a.pa.h(a.pa.x+y,a.pa.y+x),nl(a)),E?Xm(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),tt!==null&&tt.animationManager.zb&&dd(tt.animationManager,a,b),a.g("points",z,b)}}Ct.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Ct.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,E=1/0,b=a.s,z=b.length,tt=0;ttat&&(gt=-gt),Et=(0>rt?-1:1)*gt+yt,zt=ut*(Et-yt)+wt),yt=z.x+2*ot/3,wt=z.y+2*rt/3;var It=yt,Yt=wt;_t.B(rt,0)?Yt=0rt?-1:1)*gt+yt,Yt=ut*(It-yt)+wt),this.Fj(),this.ne(z),this.yf(Et,zt),this.yf(It,Yt),this.ne(mt),this.dd(0,this.getLinkPoint(a,y,tt,!0,!1,E,b)),this.dd(3,this.getLinkPoint(E,b,x,!1,!1,a,y))}else z=E,mt=b,E=this.getLinkPoint(a,y,tt,!0,!1,z,mt),b=this.getLinkPoint(z,mt,x,!1,!1,a,y),this.hasCurviness()?(mt=b.x-E.x,x=b.y-E.y,tt=this.computeCurviness(),a=E.x+mt/2,y=E.y+x/2,z=a,ot=y,_t.B(x,0)?ot=0tt&&(z=-z),z=(0>x?-1:1)*z+a,ot=mt*(z-a)+y),this.ne(E),this.yf(z,ot),this.ne(b)):(this.ne(E),this.ne(b),ot=ke.alloc(),y.mi(ot),rt=ot.ca(b),mt.mi(ot),at=ot.ca(E),(rt||at)&&(tt=y.ga(_m(tt),new Wt),this.dd(0,this.getLinkPointFromPoint(a,y,tt,b,!0,tt)),x=mt.ga(_m(x),new Wt),this.dd(1,this.getLinkPointFromPoint(z,mt,x,E,!1,x))),ke.free(ot))}else{gt=this.isAvoiding,mt&&(ut&>||at)&&this.Fj();var Vt=at?this.computeCurviness():0;gt=this.getLinkPoint(a,y,tt,!0,ut,E,b),yt=Et=wt=0,(ut||!ot||at)&&(zt=this.computeEndSegmentLength(a,y,tt,!0),yt=this.getLinkDirection(a,y,gt,tt,!0,ut,E,b),at&&(ot||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(yt-=ut?90:30,0>Vt&&(yt-=180)),0>yt?yt+=360:360<=yt&&(yt-=360),at&&(zt+=Math.abs(Vt)*(ut?1:2)),yt===0?wt=zt:yt===90?Et=zt:yt===180?wt=-zt:yt===270?Et=-zt:(wt=zt*Math.cos(yt*Math.PI/180),Et=zt*Math.sin(yt*Math.PI/180)),tt.Mc()&&at&&(zt=y.ga(ri,Wt.alloc()),It=Wt.allocAt(zt.x+1e3*wt,zt.y+1e3*Et),this.getLinkPointFromPoint(a,y,zt,It,!0,gt),Wt.free(zt),Wt.free(It))),zt=this.getLinkPoint(E,b,x,!1,ut,a,y);var Xt=Yt=It=0;if(ut||!rt||at){var te=this.computeEndSegmentLength(E,b,x,!1);Xt=this.getLinkDirection(E,b,zt,x,!1,ut,a,y),at&&(rt||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(Xt+=ut?0:30,0>Vt&&(Xt+=180)),0>Xt?Xt+=360:360<=Xt&&(Xt-=360),at&&(te+=Math.abs(Vt)*(ut?1:2)),Xt===0?It=te:Xt===90?Yt=te:Xt===180?It=-te:Xt===270?Yt=-te:(It=te*Math.cos(Xt*Math.PI/180),Yt=te*Math.sin(Xt*Math.PI/180)),x.Mc()&&at&&(x=b.ga(ri,Wt.alloc()),tt=Wt.allocAt(x.x+1e3*It,x.y+1e3*Yt),this.getLinkPointFromPoint(E,b,x,tt,!1,zt),Wt.free(x),Wt.free(tt))}x=gt,(ut||!ot||at)&&(x=new Wt(gt.x+wt,gt.y+Et)),tt=zt,(ut||!rt||at)&&(tt=new Wt(zt.x+It,zt.y+Yt)),!mt&&!ut&&ot&&3Math.abs(y.y-a.y)?(y.x>=a.x?y.x=a.x+9e9:y.x=a.x-9e9,y.y=a.y):(y.y>=a.y?y.y=a.y+9e9:y.y=a.y-9e9,y.x=a.x),y}Je.prototype.getLinkPointFromPoint=function(a,y,x,E,b,z){if(z===void 0&&(z=new Wt),a===null||y===null)return z.assign(x),z;if(a.isVisible()||(b=a.findVisibleNode(),b!==null&&b!==a&&(y=b.port)),a=null,b=y.panel,b===null||b.se()||(b=b.panel),b===null){b=E.x,E=E.y;var tt=x.x;x=x.y}else{a=b.oe,b=1/(a.m11*a.m22-a.m12*a.m21),tt=a.m22*b;var ot=-a.m12*b,rt=-a.m21*b,at=a.m11*b,ut=b*(a.m21*a.dy-a.m22*a.dx),gt=b*(a.m12*a.dx-a.m11*a.dy);b=E.x*tt+E.y*rt+ut,E=E.x*ot+E.y*at+gt,tt=x.x*tt+x.y*rt+ut,x=x.x*ot+x.y*at+gt}return y.Sj(b,E,tt,x,z),a!==null&&z.transform(a),z};function Jm(a,y){var x=y.Zn;return x===null&&(x=new _g,x.port=y,x.node=y.part,y.Zn=x),aS(x,a)}Je.prototype.getLinkPoint=function(a,y,x,E,b,z,tt,ot){if(ot===void 0&&(ot=new Wt),x.sb()&&!Of(x))return y.ga(x,ot),ot;if(x.$c()){var rt=Jm(this,y);if(rt!==null){if(ot.assign(rt.Zo),b&&this.routing===eS){var at=Jm(this,tt);if(at!==null&&rt.Gl=ut.y&&a.y<=ut.y+ut.height?ot.y=a.y:(x.Hf(no)||x.Hf(Mo))&&a.x>=ut.x&&a.x<=ut.x+ut.width&&(ot.x=a.x),Wt.free(rt),Wt.free(at)}}return ot}}return x=y.ga(_m(x),Wt.alloc()),this.pointsCount>(b?6:2)?(tt=E?this.i(1):this.i(this.pointsCount-2),b&&(tt=Zv(x,tt.copy()))):(rt=this.computeSpot(!E,tt),z=Wt.alloc(),tt=tt.ga(_m(rt),z),b&&(tt=Zv(x,tt)),Wt.free(z)),this.getLinkPointFromPoint(a,y,x,tt,E,ot),Wt.free(x),ot},Je.prototype.getLinkDirection=function(a,y,x,E,b,z,tt,ot){t:if(E.sb())var rt=E.x>E.y?E.x>1-E.y?0:E.x<1-E.y?270:315:E.x1-E.y?90:E.x<1-E.y?180:135:.5>E.x?225:.5(z?6:2)?(ot=b?this.i(1):this.i(this.pointsCount-2),ot=z?Zv(rt,ot.copy()):x):(x=Wt.alloc(),ot=ot.ga(ri,x),Wt.free(x)),x=Math.abs(ot.x-rt.x)>Math.abs(ot.y-rt.y)?ot.x>=rt.x?0:180:ot.y>=rt.y?90:270,Wt.free(rt),rt=x}return E.Mc()&&tt.Td(a)&&(rt+=180,360<=rt&&(rt-=360)),Of(E)||(a=y.li(),a===0)||(45<=a&&135>a?rt+=90:135<=a&&225>a?rt+=180:225<=a&&315>a&&(rt+=270),360<=rt&&(rt-=360)),rt},Je.prototype.computeEndSegmentLength=function(a,y,x,E){return y!==null&&x.$c()&&(a=Jm(this,y),a!==null)?a.Ju:(a=E?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=E?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},Je.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=ri:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===so?We:y)):(a=y||this.toPort,a===null?a=ri:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===so?We:y)),a};function Of(a){return a===We||a.x===.5&&a.y===.5}function _m(a){return a.x===.5&&a.y===.5?a:ri}Je.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==sl&&4mt.width||gt.y>mt.height||0>gt.x+gt.width||0>gt.y+gt.height)){if(gt=fi.alloc(),gt.set(tt),ut instanceof Ke)ot=ut.Cf(a,y,x,E,b,gt);else if(this.path===ut){if(ut instanceof pi)if(ot=a,mt=E,ut.pickable===!1)ot=!1;else if(gt.multiply(ut.transform),mt)t:{var yt=ot,wt=gt;if(ut.fh(yt,wt))ot=!0;else{if(wt===void 0&&(wt=ut.transform,yt.Re(ut.actualBounds))){ot=!0;break t}ot=yt.left,mt=yt.right;var Et=yt.top;yt=yt.bottom;var zt=Wt.alloc(),It=Wt.alloc(),Yt=Wt.alloc(),Vt=fi.alloc();Vt.set(wt),Vt.bv(ut.transform),Vt.Vj(),It.x=mt,It.y=Et,It.transform(Vt),zt.x=ot,zt.y=Et,zt.transform(Vt),wt=!1,fg(ut,zt,It,Yt)?wt=!0:(zt.x=mt,zt.y=yt,zt.transform(Vt),fg(ut,zt,It,Yt)?wt=!0:(It.x=ot,It.y=yt,It.transform(Vt),fg(ut,zt,It,Yt)?wt=!0:(zt.x=ot,zt.y=Et,zt.transform(Vt),fg(ut,zt,It,Yt)&&(wt=!0)))),fi.free(Vt),Wt.free(zt),Wt.free(It),Wt.free(Yt),ot=wt}}else ot=ut.fh(ot,gt)}else ot=Ws(ut,a,E,gt);ot&&(mt=ut,y!==null&&(mt=y(ut)),mt&&(x===null||x(mt))&&b.add(mt)),fi.free(gt)}}}return z===void 0&&fi.free(tt),ot||this.background!==null||this.areaBackground!==null}return z===void 0&&fi.free(tt),!1},Je.prototype.computeCurve=function(){if(this.Wf===null){var a=this.fromPort,y=this.isOrthogonal;this.Wf=a!==null&&a===this.toPort&&!y}return this.Wf?su:this.curve},Je.prototype.computeCorner=function(){if(this.curve===su)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},Je.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,E=0;Ert?-Math.PI/2:Math.PI/2;else ut=Math.atan(rt/Math.abs(ot)),0>ot&&(ut=Math.PI-ut);tt=y.x;var gt=y.y;ot=E.x-tt;var mt=E.y-gt;for(rt=Math.sqrt(ot*ot+mt*mt),_t.$(ot,0)?mt=0>mt?-Math.PI/2:Math.PI/2:(mt=Math.atan(mt/Math.abs(ot)),0>ot&&(mt=Math.PI-mt)),at=rt/at,ut=mt-ut,this.dd(a,y),a+=1;art?-Math.PI/2:Math.PI/2:(rt=Math.atan(rt/Math.abs(ot)),0>ot&&(rt=Math.PI-rt)),ot=rt+ut,y*=at,this.L(a,tt+y*Math.cos(ot),gt+y*Math.sin(ot)));this.dd(x,E)}}return!0;case e0:if(z=this.i(a),gt=this.i(x),!z.Xa(y)||!gt.Xa(E)){b=z.x,z=z.y,tt=gt.x,gt=gt.y,at=(tt-b)*(tt-b)+(gt-z)*(gt-z),ot=y.x,ut=y.y,rt=E.x,mt=E.y;var yt=1;if(rt-ot!==0){var wt=(mt-ut)/(rt-ot);yt=Math.sqrt(1+1/(wt*wt))}else wt=9e9;for(this.dd(a,y),a+=1;ay?y+=360:360<=y&&(y-=360),0>E?E+=360:360<=E&&(E-=360);var tt=E;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,E=315<=E||45>E?0:45<=E&&135>E?90:135<=E&&225>E?180:270;var ot=b.actualBounds.copy(),rt=z.actualBounds.copy();if(ot.w()&&rt.w()){ot.Bc(Bp,Bp),rt.Bc(Bp,Bp),ot.Ye(a),rt.Ye(x);var at=Wt.alloc(),ut=Wt.alloc();y===0?x.x>a.x||E===270&&x.ya.x||E===90&&x.y>a.y&&rt.right>a.x?(at.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),E===180?(at.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ut.x=at.x,ut.y=x.y):E===270&&x.ya.y?(at.x=a.xrt.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):rt.right,ut.x=at.x,ut.y=x.y):E===0&&a.xrt.top&&a.yot.bottom)&&(E===180&&(rt.ca(a)||ot.ca(x))?at.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.ya.y&&(E===180||E===270)&&(at.y=this.computeMidOrthoPosition(a.x,ot.bottom,x.x,Math.min(x.y,rt.top),!0)),ut.x=x.x,ut.y=at.y),at.y>ot.top&&at.y=ot.left&&x.x<=a.x||a.x<=rt.right&&a.x>=x.x?(E===90||E===270)&&(at.h(Math.max((a.x+x.x)/2,a.x),a.y),ut.h(at.x,x.y)):(at.y=E===270||(E===0||E===180)&&x.ya.y&&rt.lefta.y?(at.x=a.x>rt.right?this.computeMidOrthoPosition(a.x,a.y,rt.right,x.y,!1):a.x>rt.left&&(E===270&&a.yrt.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):rt.left,ut.x=at.x,ut.y=x.y):E===180&&a.x>rt.right&&a.y>rt.top&&a.yot.bottom)&&(E===0&&(rt.ca(a)||ot.ca(x))?at.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.ya.y&&(E===0||E===270)&&(at.y=this.computeMidOrthoPosition(a.x,ot.bottom,x.x,Math.min(x.y,rt.top),!0)),ut.x=x.x,ut.y=at.y),at.y>ot.top&&at.y=a.x||a.x>=rt.left&&a.x<=x.x?(E===90||E===270)&&(at.h(Math.min((a.x+x.x)/2,a.x),a.y),ut.h(at.x,x.y)):(at.y=E===270||(E===0||E===180)&&x.ya.y||E===180&&x.xa.y||E===0&&x.x>a.x&&rt.bottom>a.y?(at.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),E===270?(at.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ut.x=x.x,ut.y=at.y):E===180&&x.xa.x?(at.y=a.yrt.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):rt.bottom,ut.x=x.x,ut.y=at.y):E===90&&a.yrt.left&&a.xot.right)&&(E===270&&(rt.ca(a)||ot.ca(x))?at.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.xa.x&&(E===270||E===180)&&(at.x=this.computeMidOrthoPosition(ot.right,a.y,Math.min(x.x,rt.left),x.y,!1)),ut.x=at.x,ut.y=x.y),at.x>ot.left&&at.x=ot.top&&x.y<=a.y||a.y<=rt.bottom&&a.y>=x.y?(E===0||E===180)&&(at.h(a.x,Math.max((a.y+x.y)/2,a.y)),ut.h(x.x,at.y)):(at.x=E===180||(E===90||E===270)&&x.xa.x&&rt.top=a.x?(at.y=a.y>rt.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,rt.bottom,!0):a.y>rt.top&&(E===180&&a.xrt.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):rt.top,ut.x=x.x,ut.y=at.y):E===270&&a.y>rt.bottom&&a.x>rt.left&&a.xot.right)&&(E===90&&(rt.ca(a)||ot.ca(x))?at.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.xa.x&&(E===90||E===180)&&(at.x=this.computeMidOrthoPosition(ot.right,a.y,Math.min(x.x,rt.left),x.y,!1)),ut.x=at.x,ut.y=x.y),at.x>ot.left&&at.x=a.y||a.y>=rt.top&&a.y<=x.y?(E===0||E===180)&&(at.h(a.x,Math.min((a.y+x.y)/2,a.y)),ut.h(x.x,at.y)):(at.x=E===180||(E===90||E===270)&&x.x=zf&&(oS(yt),ot.Bc(yt.Ho*yt.Hx,yt.Go*yt.Ix),rS(yt,a,y,gt,E,ot,!1),rt=qh(yt,gt.x,gt.y)),!yt.abort&&rtthis.pointsCount?(y===0||y===180?(ot.x=a.x,ot.y=gt.y):(ot.x=gt.x,ot.y=a.y),this.L(2,ot.x,ot.y),this.m(3,ot.x,ot.y)):(tt=this.i(3),y===0||y===180?_t.B(ot.x,tt.x)?(ot=y===0?Math.max(ot.x,a.x):Math.min(ot.x,a.x),this.L(2,ot,a.y),this.L(3,ot,tt.y)):_t.B(ot.y,tt.y)?(Math.abs(a.y-ot.y)<=yt.Go/2&&(this.L(2,ot.x,a.y),this.L(3,tt.x,a.y)),this.m(2,ot.x,a.y)):this.L(2,a.x,ot.y):(y===90||y===270)&&(_t.B(ot.y,tt.y)?(ot=y===90?Math.max(ot.y,a.y):Math.min(ot.y,a.y),this.L(2,a.x,ot),this.L(3,tt.x,ot)):_t.B(ot.x,tt.x)?(Math.abs(a.x-ot.x)<=yt.Ho/2&&(this.L(2,a.x,ot.y),this.L(3,a.x,tt.y)),this.m(2,a.x,ot.y)):this.L(2,ot.x,a.y))),x!==null&&(a=this.i(1),tt=this.i(2),a.x!==tt.x&&a.y!==tt.y?y===0||y===180?this.m(2,a.x,tt.y):this.m(2,tt.x,a.y):y===0||y===180?this.m(2,b.x,x.y):this.m(2,x.x,b.y)),wt!==null&&(E===0||E===180?this.yf(z.x,wt.y):this.yf(wt.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(at.copy()),this.ne(ut.copy())),Wt.free(at),Wt.free(ut)}},Je.prototype.computeMidOrthoPosition=function(a,y,x,E,b){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),b?(y+E)/2+z:(a+x)/2+z};function Kv(a){if(a.diagram===null||!a.isAvoiding||!So(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=Mr(a.diagram,!0,a.containingGroup,null);for(var E=1;Evg&&qh(y,ut,gt)!==at-1&&(qh(y,x-ot,E)===at-1?(b=180,ut=x-ot,gt=E):qh(y,x+ot,E)===at-1?(b=0,ut=x+ot,gt=E):qh(y,x,E-rt)===at-1?(b=270,ut=x,gt=E-rt):qh(y,x,E+rt)===at-1&&(b=90,ut=x,gt=E+rt));at>vg&&qh(y,ut,gt)===at-1;)x=ut,E=gt,b===0?ut+=ot:b===90?gt+=rt:b===180?ut-=ot:gt-=rt,--at;z?at>vg&&(b===180||b===0?x=Math.floor(x/ot)*ot+ot/2:(b===90||b===270)&&(E=Math.floor(E/rt)*rt+rt/2)):(x=Math.floor(x/ot)*ot+ot/2,E=Math.floor(E/rt)*rt+rt/2),at>vg&&(z=b,tt=x,ut=E,b===0?(z=90,ut+=rt):b===90?(z=180,tt-=ot):b===180?(z=270,ut-=rt):b===270&&(z=0,tt+=ot),qh(y,tt,ut)===at-1?Qv(a,y,tt,ut,z,!1,z):(tt=x,ut=E,b===0?(z=270,ut-=rt):b===90?(z=0,tt+=ot):b===180?(z=90,ut+=rt):b===270&&(z=180,tt-=ot),qh(y,tt,ut)===at-1&&Qv(a,y,tt,ut,z,!1,z))),a.yf(x,E)}Je.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),E=this.i(1),b=_r(y,a,x.x,x.y,E.x,E.y),z=0,tt=1;ttthis.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),a=this.path,a!==null)){a.ua=this.ua;for(var y=this.O.s,x=y.length,E=0;E=y&&(E=y-1),rt=this.i(E),z.x=Math.min(rt.x,z.x),z.y=Math.min(rt.y,z.y);E=z.x,rt=z.y}else{for(rt=0;rtzt?wt>yt?(z.x=It-Vt,z.y=yt-Vt,b.x=It+Et,b.y=yt+Et):(z.x=It-Vt,z.y=yt+Vt,b.x=It+Et,b.y=yt-Et):wt>yt?(z.x=It+Vt,z.y=yt-Vt,b.x=It-Et,b.y=yt+Et):(z.x=It+Vt,z.y=yt+Vt,b.x=It-Et,b.y=yt-Et)),_t.$(zt,It)&&_t.$(yt,wt)&&(yt>mt?(Yt>It?(z.x=It-Vt,z.y=yt-Vt,b.x=It+Et):(z.x=It+Vt,z.y=yt-Vt,b.x=It-Et),b.y=yt+Et):(Yt>It?(z.x=It-Vt,z.y=yt+Vt,b.x=It+Et):(z.x=It+Vt,z.y=yt+Vt,b.x=It-Et),b.y=yt-Et)),(_t.$(zt,It)&&_t.$(It,Yt)||_t.$(mt,yt)&&_t.$(yt,wt))&&(zt=.5*(zt+Yt),mt=.5*(mt+wt),z.x=zt,z.y=mt,b.x=zt,b.y=mt),(gt===1||gt===2&&_t.$(tt.x,this.i(0).x)&&_t.$(tt.y,this.i(0).y))&&(x.x=.5*(tt.x+at.x),x.y=.5*(tt.y+at.y)),Vd(ot,x.x-E,x.y-rt,z.x-E,z.y-rt,at.x-E,at.y-rt),y.set(z),x.set(b),tt=at}}at=tt.x,tt=tt.y,ut=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ut=Kg(this,ut.copy(),!1,Js)),at=.5*(at+ut.x),tt=.5*(tt+ut.y),Vd(ot,b.x-E,b.y-rt,at-E,tt-rt,ut.x-E,ut.y-rt),Wt.free(y),Wt.free(x),Wt.free(z),Wt.free(b)}else for(x=3;x=y&&(x=y-1),b=this.i(x-1),tt=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(tt=Kg(this,tt.copy(),!1,Js)),Vd(ot,z.x-E,z.y-rt,b.x-E,b.y-rt,tt.x-E,tt.y-rt);else{for(z=Wt.alloc(),z.assign(this.i(0)),b=Wt.alloc(),b.assign(z),tt=this.computeCorner(),gt=1,at=0;gt=y-1){if(!z.D(ut))this.computeShortLength(!1)!==0&&(ut=Kg(this,ut.copy(),!1,Js)),Qg(this,ot,-E,-rt,z,ut,x);else if(at===0)for(gt=1;gtz.x?Xt=mt.x-wt:Xt=mt.x+wt,It.y>mt.y?Yt=mt.y+Vt:Yt=mt.y-Vt,It=Wt.allocAt(Xt,te),Qg(this,ot,gt,zt,z,It,Et),Wt.free(It),Wm(ot,mt.x+gt,mt.y+zt,yt+gt,Yt+zt),z.h(yt,Yt)}else _t.B(z.x,mt.x)&&_t.B(mt.y,It.y)?(wt=Math.min(tt,Math.abs(mt.y-b.y)/2),wt=Vt=Math.min(wt,Math.abs(It.x-mt.x)/2),_t.B(Vt,0)?(Qg(this,ot,gt,zt,z,mt,Et),z.assign(mt)):(Xt=mt.x,te=mt.y,yt=Xt,Yt=te,mt.y>z.y?te=mt.y-wt:te=mt.y+wt,It.x>mt.x?yt=mt.x+Vt:yt=mt.x-Vt,It=Wt.allocAt(Xt,te),Qg(this,ot,gt,zt,z,It,Et),Wt.free(It),Wm(ot,mt.x+gt,mt.y+zt,yt+gt,Yt+zt),z.h(yt,Yt))):(Qg(this,ot,gt,zt,z,mt,Et),z.assign(mt));b.assign(ut),gt=at}Wt.free(z)}Ym=ot}else ot=this.i(1).copy(),ot.x-=E,ot.y-=rt,this.computeShortLength(!0)!==0&&(b=Kg(this,b,!0,z)),this.computeShortLength(!1)!==0&&(ot=Kg(this,ot,!1,z)),a.type=He.j,a.startX=b.x,a.startY=b.y,a.endX=ot.x,a.endY=ot.y;return this.lk=!0,a};function qm(a,y,x,E){return a=x-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=E-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),_t.$(a,0)?y:_t.$(y,0)?a:Math.sqrt(a*a+y*y)))}function Kg(a,y,x,E){var b=a.pointsCount;if(2>b)return y;if(x){var z=a.i(1);if(x=z.x-E.x,z=z.y-E.y,E=qm(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!0),a>b&&(a=b),b=a*(z-y.y)/E,y.x+=a*(x-y.x)/E,y.y+=b}else{if(z=a.i(b-2),x=z.x-E.x,z=z.y-E.y,E=qm(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!1),a>b&&(a=b),b=a*(y.y-z)/E,y.x-=a*(y.x-x)/E,y.y-=b}return y}function Xv(a,y,x,E){for(var b=a.pointsCount,z=y;_t.$(y.x,z.x)&&_t.$(y.y,z.y);){if(x>=b)return b-1;z=a.i(x++)}if(!_t.$(y.x,z.x)&&!_t.$(y.y,z.y))return x-1;for(var tt=z;_t.$(y.x,z.x)&&_t.$(z.x,tt.x)&&(!E||(y.y>=z.y?z.y>=tt.y:z.y<=tt.y))||_t.$(y.y,z.y)&&_t.$(z.y,tt.y)&&(!E||(y.x>=z.x?z.x>=tt.x:z.x<=tt.x));){if(x>=b)return b-1;tt=a.i(x++)}return x-2}Je.prototype.computeJumpLength=function(){return 10};function Qg(a,y,x,E,b,z,tt){if(!tt&&mg(a)){tt=a.computeJumpLength();var ot=tt/2,rt=[],at=0;if(a.isVisible()&&(at=Lx(a,b,z,rt)),0gt-tt);)at--,gt=Math.max(ut-ot,z.x);ut=z.y-tt+E,gt+=x,yt=z.y+E,a.curve===Xd?Bf(y,gt,yt,!1):Vd(y,mt,ut,gt,ut,gt,yt)}else if(_t.B(b.x,z.x))if(b.yut-tt);)at--,ut=Math.max(gt-ot,z.y);gt=z.x-tt+x,yt=z.x+x,ut+=E,a.curve===Xd?Bf(y,yt,ut,!1):Vd(y,gt,mt,gt,ut,yt,ut)}}}y.lineTo(z.x+x,z.y+E)}function Lx(a,y,x,E){var b=a.diagram;if(b===null||y.D(x))return 0;for(b=b.layers;b.next();){var z=b.value;if(z!==null&&z.visible){z=z.Pa.s;for(var tt=z.length,ot=0;ottt.x&&ut.x>=at.x||at.xtt.y&&ut.y>=at.y||at.ytt&&Math.min(wt,Et)ut&&!_t.B(wt,Et)){ot.x=ut,ot.y=tt,ut=!0;break t}}else if(_t.B(gt,yt)&&_t.B(wt,Et)&&Math.min(ut,mt)wt&&Math.min(tt,zt)gt&&!_t.B(tt,zt)){ot.x=wt,ot.y=gt,ut=!0;break t}ot.x=0,ot.y=0,ut=!1}ut&&(b?x.push(ot.x):x.push(ot.y)),tt=at}Wt.free(ot)}function mg(a){return a=a.curve,a===jf||a===Xd}function $m(a,y){(y||mg(a))&&(y=a.diagram,y===null||y.animationManager.isTicking||y.Eh.contains(a)||a.ml.width===0&&a.ml.height===0||y.Eh.add(a,a.ml.copy()))}Je.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var x=y.diagram;if(x!==null&&!x.animationManager.isTicking){var E=!1;for(x=x.layers;x.next();){var b=x.value;if(b.visible){if(b===y){E=!0;var z=!1;b=b.Pa.s;for(var tt=b.length,ot=0;ota&&li(a,">= 0",Je,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),this.bb())}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:NaN},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.qc(),this.g("fromShortLength",y,a))}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:so},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),(y.$c()||a.$c())&&this.toNode!==null&&zl(this.toPort),this.bb())}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:NaN},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&li(a,">= 0",Je,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),this.bb())}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:NaN},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.qc(),this.g("toShortLength",y,a))}},isLabeledLink:{get:function(){return this.wd===null?!1:0=E&&(z=E-1);var ot=this.i(z-1),rt=this.i(z);_t.Dl(b.x,b.y,tt.x,tt.y,ot.x,ot.y,rt.x,rt.y,.5,a),y=Math.min(rt.x,y),x=Math.min(rt.y,x),b=rt}else for(b=this.i(0),z=this.i(1),y=Math.min(b.x,z.x),x=Math.min(b.y,z.y),a.h(b.x,b.y,0,0),a.Ye(z),b=2;bE&&(E=-E)):_t.$(E.y,b.y)?(E=b.x-E.x,0>E&&(E=-E)):E=Math.sqrt(E.Bf(b)),a.push(E)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,x=y.length,E=a=0;Ethis.pointsCount)return this.lk=!0,this.ua;this.ua=this.makeGeometry()}return this.ua}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!Of(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!Of(this.computeSpot(!1))?a-2:a-1}},adjusting:{get:function(){return this.qk},set:function(a){var y=this.qk;y!==a&&(this.qk=a,this.g("adjusting",y,a))}},corner:{get:function(){return this.Om},set:function(a){var y=this.Om;y!==a&&(this.Om=a,this.qc(),this.g("corner",y,a))}},curve:{get:function(){return this.Qm},set:function(a){var y=this.Qm;y!==a&&(this.Qm=a,this.bb(),this.qc(),$m(this,y===Xd||y===jf||a===Xd||a===jf),this.g("curve",y,a))}},curviness:{get:function(){return this.Rm},set:function(a){var y=this.Rm;y!==a&&(this.Rm=a,this.bb(),this.qc(),this.g("curviness",y,a))}},routing:{get:function(){return this.qj},set:function(a){var y=this.qj;y!==a&&(this.qj=a,this.Wf=null,this.bb(),$m(this,(y.value&2)===2||(a.value&2)===2),this.g("routing",y,a))}},smoothness:{get:function(){return this.po},set:function(a){var y=this.po;y!==a&&(this.po=a,this.qc(),this.g("smoothness",y,a))}},key:{get:function(){var a=this.diagram;if(a!==null&&a.model.ri())return a.model.Ac(this.data)}}}),Je.prototype.invalidateOtherJumpOvers=Je.prototype.Xo,Je.prototype.findClosestSegment=Je.prototype.ez,Je.prototype.updateRoute=Je.prototype.vg,Je.prototype.invalidateRoute=Je.prototype.bb,Je.prototype.rollbackRoute=Je.prototype.rv,Je.prototype.commitRoute=Je.prototype.zf,Je.prototype.startRoute=Je.prototype.uh,Je.prototype.clearPoints=Je.prototype.Fj,Je.prototype.removePoint=Je.prototype.pv,Je.prototype.addPointAt=Je.prototype.yf,Je.prototype.addPoint=Je.prototype.ne,Je.prototype.insertPointAt=Je.prototype.m,Je.prototype.insertPoint=Je.prototype.Kz,Je.prototype.setPointAt=Je.prototype.L,Je.prototype.setPoint=Je.prototype.dd,Je.prototype.getPoint=Je.prototype.i,Je.prototype.getOtherPort=Je.prototype.Cz,Je.prototype.getOtherNode=Je.prototype.To;var Xg=null,Jg=null,Jv=new Ye(Je,"Normal",1),kx=new Ye(Je,"Orthogonal",2),Ax=new Ye(Je,"AvoidsNodes",6),eS=new Ye(Je,"AvoidsNodesStraight",7),sl=new Ye(Je,"None",0),su=new Ye(Je,"Bezier",9),Xd=new Ye(Je,"JumpGap",10),jf=new Ye(Je,"JumpOver",11),Ap=new Ye(Je,"End",17),t0=new Ye(Je,"Scale",18),e0=new Ye(Je,"Stretch",19),Np=new Ye(Je,"OrientAlong",21),bp=new Ye(Je,"OrientPlus90",22),Tp=new Ye(Je,"OrientMinus90",23),_v=new Ye(Je,"OrientOpposite",24),n0=new Ye(Je,"OrientUpright",25),Dp=new Ye(Je,"OrientPlus90Upright",26),Fp=new Ye(Je,"OrientMinus90Upright",27),i0=new Ye(Je,"OrientUpright45",28),nS=16,iS=14,Bp=8;Je.className="Link",Je.Normal=Jv,Je.Orthogonal=kx,Je.AvoidsNodes=Ax,Je.AvoidsNodesStraight=eS,Je.None=sl,Je.Bezier=su,Je.JumpGap=Xd,Je.JumpOver=jf,Je.End=Ap,Je.Scale=t0,Je.Stretch=e0,Je.OrientAlong=Np,Je.OrientPlus90=bp,Je.OrientMinus90=Tp,Je.OrientOpposite=_v,Je.OrientUpright=n0,Je.OrientPlus90Upright=Dp,Je.OrientMinus90Upright=Fp,Je.OrientUpright45=i0,Je.EndSegmentStep=8,Je.CurvinessStart=nS,Je.SpacingMin=iS,Je.OrthoShortCut=Bp;function o0(a,y,x,E){Ko(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=E,this.links=[]}o0.prototype.Sl=function(){if(!this.qq){var a=this.links;0=a.width||0>=a.height)){var y=a.y,x=a.x+a.width,E=a.y+a.height;if(this.Nd=Math.floor((a.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((y-this.sc)/this.sc)*this.sc,this.En=Math.ceil((x+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((E+2*this.sc)/this.sc)*this.sc,a=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),y=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di=vg&&(x[E]=qv)}Ip.prototype.Yj=function(a,y,x,E){if(a>this.En||a+xthis.Fn||y+Ea&&(x+=a,a=0),0>y&&(b+=y,y=0),0>x||0>b)return!0;for(E=Math.min(a+x-1,this.di)|0,x=Math.min(y+b-1,this.ei)|0;a<=E;a++){b=this.ac[a];for(var z=y;z<=x;z++)if(b[z]===Jd)return!1}return!0};function $h(a,y,x,E,b,z,tt,ot,rt){if(!(ytt||xrt)){var at=y|0,ut=x|0,gt=a.ac[at][ut];if(gt>=vg&>=a.ac[at][ut]);)a.ac[at][ut]=gt,gt+=1,b?ut+=E:at+=E;if(at=b?ut:at,b)if(0at;x+=E)$h(a,y,x,1,!b,z,tt,ot,rt),$h(a,y,x,-1,!b,z,tt,ot,rt);else if(0at;y+=E)$h(a,y,x,1,!b,z,tt,ot,rt),$h(a,y,x,-1,!b,z,tt,ot,rt)}}function r0(a,y,x,E,b,z,tt,ot,rt){y|=0,x|=0;var at=Jd,ut=vg;for(a.ac[y][x]=ut;at===Jd&&y>z&&yot&&xz&&yot&&x=Math.abs(ot-at)&&1>=Math.abs(rt-ut))a.abort=!0;else{var gt=z.x;E=z.y,y=z.x+z.width;var mt=z.y+z.height;gt-=a.Nd,gt/=a.rc,E-=a.Od,E/=a.sc,y-=a.Nd,y/=a.rc,mt-=a.Od,mt/=a.sc,z=Math.max(0,Math.min(a.di,gt|0)),y=Math.min(a.di,Math.max(0,y|0)),gt=Math.max(0,Math.min(a.ei,E|0)),mt=Math.min(a.ei,Math.max(0,mt|0)),E=a.ac,ot|=0,rt|=0,at|=0,ut|=0;var yt=x===0||x===90?1:-1;if(x=x===90||x===270,E[ot][rt]===Jd?(r0(a,ot,rt,yt,x,z,y,gt,mt),r0(a,ot,rt,1,!x,z,y,gt,mt),r0(a,ot,rt,-1,!x,z,y,gt,mt)):r0(a,ot,rt,yt,x,ot,rt,ot,rt),E[at][ut]===Jd?(s0(a,at,ut,b===0||b===90?1:-1,b===90||b===270,z,y,gt,mt),s0(a,at,ut,1,!(b===90||b===270),z,y,gt,mt),s0(a,at,ut,-1,!(b===90||b===270),z,y,gt,mt)):s0(a,at,ut,yt,x,at,ut,at,ut),x=Ii(),tt&&sS(a,at,ut,b,ot,rt,x))for((x[0]!==at||x[1]!==ut)&&(x.unshift(ut),x.unshift(at)),(x[x.length-2]!==ot||x[x.length-1]!==rt)&&(x.push(ot),x.push(rt)),a=vg,b=x[x.length-2],tt=x[x.length-1],E[b][tt]=a++,z=x.length-4;0<=z;z-=2)for(b=x[z+2],tt=x[z+3],y=x[z],at=x[z+1];y>b?b++:ytt?tt++:atb)ut--;else break;else if(gt>z)gt--;else break;var mt=ot[ut][gt];if(mt===0||mt===$v)break;rt=ut,at=gt}for(;;){if(ut=E,gt=rt,mt=at,E===0?mtz&&(ut=270,mt--):E===90?gtb&&(ut=180,gt--):E===180?mtz&&(ut=270,mt--):gtb&&(ut=180,gt--),gt=ot[gt][mt],ut!==E&>!==0&>!==$v){if(tt.push(rt),tt.push(at),sS(a,rt,at,ut,b,z,tt))return!0;tt.pop(),tt.pop()}if(ot[rt][at]=$v,E===0){if(rt===y)return!1;rt--}else if(E===90){if(at===x)return!1;at--}else if(E===180){if(rt===y)return!1;rt++}else{if(at===x)return!1;at++}}}ve.Object.defineProperties(Ip.prototype,{bounds:{get:function(){return new ke(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(a){0=x?180:0}switch(a=180*Math.atan2(a.height,a.width)/Math.PI,y){case 3:return x>a&&x<=180+a?180:270;case 5:return x>180-a&&x<=360-a?270:0;case 12:return x>a&&x<=180+a?90:0;case 10:return x>180-a&&x<=360-a?180:90;case 7:return 90180+a&&x<=360-a?270:0;case 13:return 180a&&180>=x?90:0;case 14:return x>a&&x<=180-a?90:x>180-a&&270>=x?180:0;case 11:return x>180-a&&x<=180+a?180:x>180+a?270:90}return E&&y!==15&&(x-=15,0>x&&(x+=360)),x>a&&x<180-a?90:x>=180-a&&x<=180+a?180:x>180+a&&x<360-a?270:0}_g.prototype.Sl=function(){this.pe.length=0};function aS(a,y){var x=a.pe;if(x.length===0){t:if(!a.ap){x=a.ap,a.ap=!0;var E=null,b=a.node,z=b instanceof di?b:null;if(z===null||z.isSubGraphExpanded)var tt=b.isTreeExpanded?b.findLinksConnected(a.port.portId):b.qx();else{if(!z.actualBounds.w()){a.ap=x;break t}E=z,tt=E.Lu()}z=a.pe.length=0;var ot=a.port.ga(be,Wt.alloc()),rt=a.port.ga(eo,Wt.alloc());for(b=ke.allocAt(ot.x,ot.y,0,0),b.Ye(rt),Wt.free(ot),Wt.free(rt),ot=Wt.allocAt(b.x+b.width/2,b.y+b.height/2),rt=a.port.li(),tt=tt.iterator;tt.next();){var at=tt.value;if(at.isVisible()&&at.fromPort!==at.toPort){var ut=at.fromPort===a.port||at.fromNode!==null&&at.fromNode.Td(E),gt=at.computeSpot(ut,a.port);if(gt.$c()&&(ut=ut?at.toPort:at.fromPort,ut!==null)){var mt=ut.part;if(mt!==null){var yt=mt.findVisibleNode();yt!==null&&yt!==mt&&(mt=yt,ut=mt.port),ut=at.computeOtherPoint(mt,ut),mt=ot.ab(ut),mt-=rt,0>mt?mt+=360:360<=mt&&(mt-=360),gt=Nx(b,gt,mt,at.isOrthogonal),gt===0?(gt=4,180mt&&(mt+=360)),yt=a.pe[z],yt===void 0?(yt=new ty(at,mt,gt),a.pe[z]=yt):(yt.link=at,yt.angle=mt,yt.Nc=gt),yt.hv.set(ut),z++}}}}for(Wt.free(ot),a.pe.sort(_g.prototype.j),rt=a.pe.length,E=-1,z=ot=0;zMath.abs(Et)?(Yt=Math.abs(Et)/mt,mt=Math.abs(Et)):Yt=1;break;case 2:yt>Math.abs(Vt)?(Yt=Math.abs(Vt)/yt,yt=Math.abs(Vt)):Yt=1;break;case 1:gt>Math.abs(Et)?(Yt=Math.abs(Et)/gt,gt=Math.abs(Et)):Yt=1;break;default:case 4:ut>Math.abs(Vt)?(Yt=Math.abs(Vt)/ut,ut=Math.abs(Vt)):Yt=1}It=0}var ge=Xt.Zo;if(E===Yv){switch(Xt=Xt.link.computeThickness(),Xt*=Yt,ge.set(te),wt){case 8:ge.x=te.x+Et/2+mt/2-It-Xt/2;break;case 2:ge.y=te.y+Vt/2+yt/2-It-Xt/2;break;case 1:ge.x=te.x+Et/2-gt/2+It+Xt/2;break;default:case 4:ge.y=te.y+Vt/2-ut/2+It+Xt/2}It+=Xt}else{var ln=.5;E===Qm&&(ln=(Xt.Uo+1)/(Xt.Gl+1)),ge.x=te.x+Et*ln,ge.y=te.y+Vt*ln}}}for(Wt.free(ot),Wt.free(rt),Wt.free(tt),Wt.free(at),te=a.pe,z=0;zy.Nc?1:a.angley.angle?1:0},_g.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,We,y.fromPort===this.port),E=a.Uo;if(0>E)return x;var b=a.Gl;if(1>=b||!y.isOrthogonal)return x;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(E=b-1-E),((a=a.Nc===2||a.Nc===4)?y.y=y-1?(z=0,E=x,b+=tt+20,tt=0):z++}},lr.prototype.doMinimalNetworkLayout=function(){var a=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var y=this.arrangementOrigin.x,x=y,E=this.arrangementOrigin.y,b=0,z=0,tt=this.network.vertexes.iterator;tt.next();){var ot=tt.value.node;if(!(ot===null||ot instanceof Je)&&(Op(ot),this.rh(ot))){var rt=ot.measuredBounds,at=rt.width;rt=rt.height,ot.moveTo(x,E),ot instanceof di&&(ot.rh=!1),x+=Math.max(at,50)+20,z=Math.max(z,Math.max(rt,50)),b>=a-1?(b=0,x=y,E+=z+20,z=0):b++}}},lr.prototype.rh=function(a){return!!(!a.location.w()||a instanceof di&&a.rh)};function Mc(a,y,x,E,b,z,tt,ot){for(x=x.iterator;x.next();){var rt=x.value;E&&!rt.isTopLevel||b!==null&&!b(rt)||!rt.canLayout()||(z&&rt instanceof hn?rt.isLinkLabel||(rt instanceof di&&rt.layout===null?Mc(a,y,rt.memberParts,!1,b,z,tt,ot):(Op(rt),y.add(rt))):tt&&rt instanceof Je?y.add(rt):!ot||!rt.Zc()||rt instanceof hn||(Op(rt),y.add(rt)))}}function Op(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}lr.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new ke),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},lr.prototype.ex=function(a){var y=new en;return a instanceof ce?(Mc(this,y,a.nodes,!0,null,!0,!0,!0),Mc(this,y,a.links,!0,null,!0,!0,!0),Mc(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof di?Mc(this,y,a.memberParts,!1,null,!0,!0,!0):Mc(this,y,a.iterator,!1,null,!0,!0,!0),y},lr.prototype.initialOrigin=function(a){var y=this.group;if(y!==null){var x=y.position.copy();return(isNaN(x.x)||isNaN(x.y))&&x.set(a),y=y.placeholder,y!==null&&(x=y.ga(be),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},ve.Object.defineProperties(lr.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},group:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a,a!==null&&(this.H=a.diagram))}},isOngoing:{get:function(){return this.sn},set:function(a){this.sn!==a&&(this.sn=a)}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a,a||(this.xn=!0)}},isViewportSized:{get:function(){return this.yn},set:function(a){this.yn!==a&&(this.yn=a)&&this.C()}},isRouting:{get:function(){return this.vn},set:function(a){this.vn!==a&&(this.vn=a)}},isRealtime:{get:function(){return this.un},set:function(a){this.un!==a&&(this.un=a)}},isValidLayout:{get:function(){return this.xn},set:function(a){this.xn!==a&&(this.xn=a,a||(a=this.diagram,a!==null&&(a.xh=!0)))}},network:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,a!==null&&(a.layout=this))}},boundsComputation:{get:function(){return this.Em},set:function(a){this.Em!==a&&(this.Em=a,this.C())}},arrangementOrigin:{get:function(){return this.Am},set:function(a){this.Am.D(a)||(this.Am.assign(a),this.C())}}}),lr.prototype.collectParts=lr.prototype.ex,lr.prototype.getLayoutBounds=lr.prototype.ni,lr.prototype.invalidateLayout=lr.prototype.C,lr.className="Layout";function Ho(a){Ko(this),this.Sc=a,this.wf=new en,this.ye=new en,this.Es=new oi,this.zs=new oi}Ho.prototype.clear=function(){if(this.wf)for(var a=this.wf.iterator;a.next();)a.value.clear();if(this.ye)for(a=this.ye.iterator;a.next();)a.value.clear();this.wf=new en,this.ye=new en,this.Es=new oi,this.zs=new oi},Ho.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutNetwork"+(this.layout!==null?"("+this.layout.toString()+")":"");if(0>=a)return y;if(y+=" vertexes: "+this.wf.count+" edges: "+this.ye.count,1y?1:0):1:y!==null?-1:0}ve.Object.defineProperties(ks.prototype,{sourceEdgesArrayAccess:{get:function(){return this.tg._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.mg._dataArray}},data:{get:function(){return this.ub},set:function(a){if(this.ub=a,a!==null&&a.bounds){var y=a.bounds;a=y.x;var x=y.y,E=y.width;y=y.height,this.o.h(E/2,y/2),this.j.h(a,x,E,y)}}},node:{get:function(){return this.Sh},set:function(a){if(this.Sh!==a){this.Sh=a,a.Va();var y=this.network.layout,x=ke.alloc(),E=y.ni(a,x);y=E.x;var b=E.y,z=E.width;if(E=E.height,isNaN(y)&&(y=0),isNaN(b)&&(b=0),this.j.h(y,b,z,E),ke.free(x),!(a instanceof di)&&(a=a.locationObject.ga(ri),a.w())){this.o.h(a.x-y,a.y-b);return}this.o.h(z/2,E/2)}}},bounds:{get:function(){return this.j},set:function(a){this.j.D(a)||this.j.assign(a)}},focus:{get:function(){return this.o},set:function(a){this.o.D(a)||this.o.assign(a)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(a){var y=this.j;y.x+this.o.x!==a&&(y.ka(),y.x=a-this.o.x,y.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(a){var y=this.j;y.y+this.o.y!==a&&(y.ka(),y.y=a-this.o.y,y.freeze())}},focusX:{get:function(){return this.o.x},set:function(a){var y=this.o;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},focusY:{get:function(){return this.o.y},set:function(a){var y=this.o;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},x:{get:function(){return this.j.x},set:function(a){var y=this.j;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},y:{get:function(){return this.j.y},set:function(a){var y=this.j;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},width:{get:function(){return this.j.width},set:function(a){var y=this.j;y.width!==a&&(y.ka(),y.width=a,y.freeze())}},height:{get:function(){return this.j.height},set:function(a){var y=this.j;y.height!==a&&(y.ka(),y.height=a,y.freeze())}},network:{get:function(){return this.ob},set:function(a){this.ob=a}},sourceVertexes:{get:function(){for(var a=new en,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new en,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new en,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);for(y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},sourceEdges:{get:function(){return this.tg.iterator}},destinationEdges:{get:function(){return this.mg.iterator}},edges:{get:function(){for(var a=new on,y=this.sourceEdges;y.next();)a.add(y.value);for(y=this.destinationEdges;y.next();)a.add(y.value);return a.iterator}},edgesCount:{get:function(){return this.tg.count+this.mg.count}}}),ks.prototype.deleteDestinationEdge=ks.prototype.Jl,ks.prototype.addDestinationEdge=ks.prototype.zl,ks.prototype.deleteSourceEdge=ks.prototype.Kl,ks.prototype.addSourceEdge=ks.prototype.Cl,ks.className="LayoutVertex",ks.standardComparer=oy,ks.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.Sh;var x=y.Sh;if(a!==null){if(x!==null){for(y=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),a=x.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),x=0;x "+(this.qd?this.qd.toString():"null"))),y},Gl.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},Gl.prototype.commit=function(){},Gl.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},ve.Object.defineProperties(Gl.prototype,{network:{get:function(){return this.nb},set:function(a){this.nb=a}},data:{get:function(){return this.ub},set:function(a){this.ub!==a&&(this.ub=a)}},link:{get:function(){return this.$k},set:function(a){this.$k!==a&&(this.$k=a)}},fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}}}),Gl.prototype.getOtherVertex=Gl.prototype.Ax,Gl.className="LayoutEdge";function ua(a){lr.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new un(NaN,NaN).freeze(),this.tf=new un(10,10).freeze(),this.Jb=jp,this.Rb=l0,this.nd=Rp,this.hd=uS,a&&Object.assign(this,a)}pe(ua,lr),ua.prototype.cloneProtected=function(a){lr.prototype.cloneProtected.call(this,a),a.zo=this.zo,a.yo=this.yo,a.yg.assign(this.yg),a.tf.assign(this.tf),a.Jb=this.Jb,a.Rb=this.Rb,a.nd=this.nd,a.hd=this.hd},ua.prototype.qb=function(a){a.classType===ua?a===Rp||a===h0||a===ry||a===u0?this.sorting=a:a===l0||a===gh?this.arrangement=a:a===jp||a===a0?this.alignment=a:oe("Unknown enum value: "+a):lr.prototype.qb.call(this,a)},ua.prototype.doLayout=function(a){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var y=this.ex(a);a=this.diagram;for(var x=y.copy().iterator;x.next();){var E=x.value;if(!E.ph()||E.fromNode===null&&E.toNode===null){if(E.Va(),E instanceof di)for(E=E.memberParts;E.next();)y.remove(E.value)}else y.remove(E)}var b=y.Fa();if(b.length!==0){switch(this.sorting){case u0:b.reverse();break;case Rp:b.sort(this.comparer);break;case h0:b.sort(this.comparer),b.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var tt=this.wrappingWidth;switch(isNaN(tt)&&a!==null?(y=a.padding,tt=Math.max(a.viewportBounds.width-y.left-y.right,0)):tt=Math.max(this.wrappingWidth,0),0>=z&&0>=tt&&(z=1),y=this.spacing.width,isFinite(y)||(y=0),x=this.spacing.height,isFinite(x)||(x=0),a!==null&&a.Ea("Layout"),E=[],this.alignment){case a0:var ot=y,rt=x,at=ke.alloc(),ut=Math.max(this.cellSize.width,1);if(!isFinite(ut))for(var gt=ut=0;gtz-1||0tt)&&(E.push(new ke(0,Et,tt+ot,It)),zt=0,wt=yt,Et+=It,It=0),It=Math.max(It,ge),mt){case gh:Xt=-Xt.width;break;default:Xt=0}switch(Vt.moveTo(wt+Xt,Et),mt){case gh:wt-=te;break;default:wt+=te}zt++}E.push(new ke(0,Et,tt+ot,It)),ke.free(at);break;case jp:for(rt=tt,ut=z,gt=y,mt=x,tt=ke.alloc(),yt=Math.max(this.cellSize.width,1),z=Et=at=0,ot=Wt.alloc(),wt=0;wt=at&&(rt-=at),at=Vt=0,te=Math.max(this.cellSize.height,1),Xt=z=0,ge=!0,zt=Wt.alloc(),ln=0;lnut-1||0rt){for(E.push(new ke(0,ge?Yt-z:Yt,rt+gt,Xt+z+mt)),Cn=0;Cnat&&(z.width+=z.x-at,z.x=at);ke.free(tt)}for(ot=z=tt=b=0;oty?1:0}ve.Object.defineProperties(ua.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(a){this.zo!==a&&(0gt)){var Et=gt+Sp(wt);wt.pc(Et,!0),xv(wt,Et,gt)}}y.isModified=!0}}finally{y.aa=!0}}}}},po.prototype.updateAllTargetBindings=function(a){a===void 0&&(a="");for(var y=this.parts.iterator;y.next();)y.value.La(a);for(y=this.nodes.iterator;y.next();)y.value.La(a);for(y=this.links.iterator;y.next();)y.value.La(a)},po.prototype.rp=function(){for(var a=this.H.model,y=new en,x=a.nodeDataArray,E=0;Ey?1:0):1:y!==null?-1:0}ve.Object.defineProperties(ks.prototype,{sourceEdgesArrayAccess:{get:function(){return this.tg._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.mg._dataArray}},data:{get:function(){return this.ub},set:function(a){if(this.ub=a,a!==null&&a.bounds){var y=a.bounds;a=y.x;var x=y.y,E=y.width;y=y.height,this.o.h(E/2,y/2),this.j.h(a,x,E,y)}}},node:{get:function(){return this.Sh},set:function(a){if(this.Sh!==a){this.Sh=a,a.Va();var y=this.network.layout,x=ke.alloc(),E=y.ni(a,x);y=E.x;var b=E.y,z=E.width;if(E=E.height,isNaN(y)&&(y=0),isNaN(b)&&(b=0),this.j.h(y,b,z,E),ke.free(x),!(a instanceof di)&&(a=a.locationObject.ga(ri),a.w())){this.o.h(a.x-y,a.y-b);return}this.o.h(z/2,E/2)}}},bounds:{get:function(){return this.j},set:function(a){this.j.D(a)||this.j.assign(a)}},focus:{get:function(){return this.o},set:function(a){this.o.D(a)||this.o.assign(a)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(a){var y=this.j;y.x+this.o.x!==a&&(y.ka(),y.x=a-this.o.x,y.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(a){var y=this.j;y.y+this.o.y!==a&&(y.ka(),y.y=a-this.o.y,y.freeze())}},focusX:{get:function(){return this.o.x},set:function(a){var y=this.o;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},focusY:{get:function(){return this.o.y},set:function(a){var y=this.o;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},x:{get:function(){return this.j.x},set:function(a){var y=this.j;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},y:{get:function(){return this.j.y},set:function(a){var y=this.j;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},width:{get:function(){return this.j.width},set:function(a){var y=this.j;y.width!==a&&(y.ka(),y.width=a,y.freeze())}},height:{get:function(){return this.j.height},set:function(a){var y=this.j;y.height!==a&&(y.ka(),y.height=a,y.freeze())}},network:{get:function(){return this.ob},set:function(a){this.ob=a}},sourceVertexes:{get:function(){for(var a=new en,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new en,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new en,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);for(y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},sourceEdges:{get:function(){return this.tg.iterator}},destinationEdges:{get:function(){return this.mg.iterator}},edges:{get:function(){for(var a=new on,y=this.sourceEdges;y.next();)a.add(y.value);for(y=this.destinationEdges;y.next();)a.add(y.value);return a.iterator}},edgesCount:{get:function(){return this.tg.count+this.mg.count}}}),ks.prototype.deleteDestinationEdge=ks.prototype.Jl,ks.prototype.addDestinationEdge=ks.prototype.zl,ks.prototype.deleteSourceEdge=ks.prototype.Kl,ks.prototype.addSourceEdge=ks.prototype.Cl,ks.className="LayoutVertex",ks.standardComparer=oy,ks.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.Sh;var x=y.Sh;if(a!==null){if(x!==null){for(y=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),a=x.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),x=0;x "+(this.qd?this.qd.toString():"null"))),y},Gl.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},Gl.prototype.commit=function(){},Gl.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},ve.Object.defineProperties(Gl.prototype,{network:{get:function(){return this.nb},set:function(a){this.nb=a}},data:{get:function(){return this.ub},set:function(a){this.ub!==a&&(this.ub=a)}},link:{get:function(){return this.$k},set:function(a){this.$k!==a&&(this.$k=a)}},fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}}}),Gl.prototype.getOtherVertex=Gl.prototype.Ax,Gl.className="LayoutEdge";function ua(a){lr.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new un(NaN,NaN).freeze(),this.tf=new un(10,10).freeze(),this.Jb=jp,this.Rb=l0,this.nd=Rp,this.hd=uS,a&&Object.assign(this,a)}pe(ua,lr),ua.prototype.cloneProtected=function(a){lr.prototype.cloneProtected.call(this,a),a.zo=this.zo,a.yo=this.yo,a.yg.assign(this.yg),a.tf.assign(this.tf),a.Jb=this.Jb,a.Rb=this.Rb,a.nd=this.nd,a.hd=this.hd},ua.prototype.qb=function(a){a.classType===ua?a===Rp||a===h0||a===ry||a===u0?this.sorting=a:a===l0||a===gh?this.arrangement=a:a===jp||a===a0?this.alignment=a:oe("Unknown enum value: "+a):lr.prototype.qb.call(this,a)},ua.prototype.doLayout=function(a){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var y=this.ex(a);a=this.diagram;for(var x=y.copy().iterator;x.next();){var E=x.value;if(!E.ph()||E.fromNode===null&&E.toNode===null){if(E.Va(),E instanceof di)for(E=E.memberParts;E.next();)y.remove(E.value)}else y.remove(E)}var b=y.Fa();if(b.length!==0){switch(this.sorting){case u0:b.reverse();break;case Rp:b.sort(this.comparer);break;case h0:b.sort(this.comparer),b.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var tt=this.wrappingWidth;switch(isNaN(tt)&&a!==null?(y=a.padding,tt=Math.max(a.viewportBounds.width-y.left-y.right,0)):tt=Math.max(this.wrappingWidth,0),0>=z&&0>=tt&&(z=1),y=this.spacing.width,isFinite(y)||(y=0),x=this.spacing.height,isFinite(x)||(x=0),a!==null&&a.Ea("Layout"),E=[],this.alignment){case a0:var ot=y,rt=x,at=ke.alloc(),ut=Math.max(this.cellSize.width,1);if(!isFinite(ut))for(var gt=ut=0;gtz-1||0tt)&&(E.push(new ke(0,Et,tt+ot,It)),zt=0,wt=yt,Et+=It,It=0),It=Math.max(It,ge),mt){case gh:Xt=-Xt.width;break;default:Xt=0}switch(Vt.moveTo(wt+Xt,Et),mt){case gh:wt-=te;break;default:wt+=te}zt++}E.push(new ke(0,Et,tt+ot,It)),ke.free(at);break;case jp:for(rt=tt,ut=z,gt=y,mt=x,tt=ke.alloc(),yt=Math.max(this.cellSize.width,1),z=Et=at=0,ot=Wt.alloc(),wt=0;wt=at&&(rt-=at),at=Vt=0,te=Math.max(this.cellSize.height,1),Xt=z=0,ge=!0,zt=Wt.alloc(),ln=0;lnut-1||0rt){for(E.push(new ke(0,ge?Yt-z:Yt,rt+gt,Xt+z+mt)),Cn=0;Cnat&&(z.width+=z.x-at,z.x=at);ke.free(tt)}for(ot=z=tt=b=0;oty?1:0}ve.Object.defineProperties(ua.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(a){this.zo!==a&&(0gt)){var Et=gt+Sp(wt);wt.pc(Et,!0),xv(wt,Et,gt)}}y.isModified=!0}}finally{y.aa=!0}}}}},po.prototype.updateAllTargetBindings=function(a){a===void 0&&(a="");for(var y=this.parts.iterator;y.next();)y.value.La(a);for(y=this.nodes.iterator;y.next();)y.value.La(a);for(y=this.links.iterator;y.next();)y.value.La(a)},po.prototype.rp=function(){for(var a=this.H.model,y=new en,x=a.nodeDataArray,E=0;E=E)return"[]";var b=new Ci;b.add("["),x&&1E)return;Vo(a.Tc,E)}xs(a,"nodeDataArray",rn,"nodeDataArray",a,y,null,E,null),a.qp(y)}Ct.nA=function(a){if(dn(a))for(var y=a.length,x=0;xy&&(y=a.length),Uo(a,y,x),xs(this,"",Qe,"",a,null,x,null,y)},Ct.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&oe("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];Vo(a,y),xs(this,"",rn,"",a,x,null,y,null)},Ct.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=is(a,y),y===void 0))return"";if(typeof y=="string")return y;oe("getCategoryForNodeData found a non-string category for "+a+": "+y)},Ct.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var E=is(a,x);E===void 0&&(E=""),E!==y&&(rr(a,x,y),xs(this,"nodeCategory",Te,x,a,E,y))}else rr(a,x,y)}},Ct.lm=function(a,y){this.jm(y,this.Ro(a))},Ct.Tl=function(){return!1},Ct.Wj=function(){return!1},Ct.ri=function(){return!1},Ct.xs=function(){return!1},Ct.Xj=function(){return!1};function hy(){return new Nn}function Gp(a,y){if(typeof y=="function"){if(y.className)return y.className;if(y.name)return y.name}else if(typeof y=="object"&&y!==null&&y.constructor)return Gp(a,y.constructor);return typeof y}function dy(a){return Ku[a]?Ku[a]:Ge.go!==void 0&&Ge.go[a]?Ge.go[a]:null}function is(a,y){if(!a||!y)return null;try{if(typeof y=="function")var x=y(a);else typeof a.getAttribute=="function"?(x=a.getAttribute(y),x===null&&(x=void 0)):x=a[y]}catch(E){}return x}function rr(a,y,x){if(a&&y)try{typeof y=="function"?y(a,x):typeof a.setAttribute=="function"?a.setAttribute(y,x):a[y]=x}catch(E){}}ve.Object.defineProperties(Nn.prototype,{name:{get:function(){return this.xa},set:function(a){var y=this.xa;y!==a&&(this.xa=a,this.g("name",y,a))}},dataFormat:{get:function(){return this.Sm},set:function(a){var y=this.Sm;y!==a&&(this.Sm=a,this.g("dataFormat",y,a))}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},modelData:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.g("modelData",y,a),this.La(a))}},undoManager:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&(y!==null&&y.Rx(this),this.o=a,a!==null&&a.Xw(this))}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a}},nodeKeyProperty:{get:function(){return this.Th},set:function(a){var y=this.Th;y!==a&&(a===""&&oe("Model.nodeKeyProperty may not be the empty string"),0E)return;Vo(a.Tc,E)}xs(a,"nodeDataArray",rn,"nodeDataArray",a,y,null,E,null),a.qp(y)}Ct.nA=function(a){if(dn(a))for(var y=a.length,x=0;xy&&(y=a.length),Uo(a,y,x),xs(this,"",Qe,"",a,null,x,null,y)},Ct.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&oe("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];Vo(a,y),xs(this,"",rn,"",a,x,null,y,null)},Ct.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=is(a,y),y===void 0))return"";if(typeof y=="string")return y;oe("getCategoryForNodeData found a non-string category for "+a+": "+y)},Ct.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var E=is(a,x);E===void 0&&(E=""),E!==y&&(rr(a,x,y),xs(this,"nodeCategory",Te,x,a,E,y))}else rr(a,x,y)}},Ct.lm=function(a,y){this.jm(y,this.Ro(a))},Ct.Tl=function(){return!1},Ct.Wj=function(){return!1},Ct.ri=function(){return!1},Ct.xs=function(){return!1},Ct.Xj=function(){return!1};function hy(){return new Nn}function Gp(a,y){if(typeof y=="function"){if(y.className)return y.className;if(y.name)return y.name}else if(typeof y=="object"&&y!==null&&y.constructor)return Gp(a,y.constructor);return typeof y}function dy(a){return Ku[a]?Ku[a]:Ge.go!==void 0&&Ge.go[a]?Ge.go[a]:null}function is(a,y){if(!a||!y)return null;try{if(typeof y=="function")var x=y(a);else typeof a.getAttribute=="function"?(x=a.getAttribute(y),x===null&&(x=void 0)):x=a[y]}catch(E){}return x}function rr(a,y,x){if(a&&y)try{typeof y=="function"?y(a,x):typeof a.setAttribute=="function"?a.setAttribute(y,x):a[y]=x}catch(E){}}ve.Object.defineProperties(Nn.prototype,{name:{get:function(){return this.xa},set:function(a){var y=this.xa;y!==a&&(this.xa=a,this.g("name",y,a))}},dataFormat:{get:function(){return this.Sm},set:function(a){var y=this.Sm;y!==a&&(this.Sm=a,this.g("dataFormat",y,a))}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},modelData:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.g("modelData",y,a),this.La(a))}},undoManager:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&(y!==null&&y.Rx(this),this.o=a,a!==null&&a.Xw(this))}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a}},nodeKeyProperty:{get:function(){return this.Th},set:function(a){var y=this.Th;y!==a&&(a===""&&oe("Model.nodeKeyProperty may not be the empty string"),0"+su(this,b,!1)}return y},Ct.Qv=function(a,y){this.linkKeyProperty===""&&oe("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=Nn.prototype.Qv.call(this,a,y),E=this,b=new en,z=new en,tt=new en,ot=this.vh;a.changes.each(function(ut){ut.model===E&&(ut.modelChange==="linkDataArray"?ut.change===Qe?b.add(ut.newValue):ut.change===rn&&tt.add(ut.oldValue):E.Jc(ut.object)?z.add(ut.object):ut.object!==null&&(ut.object!==null&&ot&&ot.contains(ut.object)?ot.get(ut.object).each(function(gt){E.Jc(gt)&&z.add(gt)}):ut.object instanceof Nn||E.lb(ut.object)||AS(E,ut.object).each(function(gt){z.add(gt)})))});var rt=this.il;rt.clear(),b.each(function(ut){rt.add(E.Ac(ut)),y||z.add(ut)});var at=this.kl;return at.clear(),tt.each(function(ut){at.add(E.Ac(ut)),y&&z.add(ut)}),a=E.cloneDeep(z.Fa()),0"+au(this,b,!1)}return y},Ct.Qv=function(a,y){this.linkKeyProperty===""&&oe("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=Nn.prototype.Qv.call(this,a,y),E=this,b=new en,z=new en,tt=new en,ot=this.vh;a.changes.each(function(ut){ut.model===E&&(ut.modelChange==="linkDataArray"?ut.change===Qe?b.add(ut.newValue):ut.change===rn&&tt.add(ut.oldValue):E.Jc(ut.object)?z.add(ut.object):ut.object!==null&&(ut.object!==null&&ot&&ot.contains(ut.object)?ot.get(ut.object).each(function(gt){E.Jc(gt)&&z.add(gt)}):ut.object instanceof Nn||E.lb(ut.object)||AS(E,ut.object).each(function(gt){z.add(gt)})))});var rt=this.il;rt.clear(),b.each(function(ut){rt.add(E.Ac(ut)),y||z.add(ut)});var at=this.kl;return at.clear(),tt.each(function(ut){at.add(E.Ac(ut)),y&&z.add(ut)}),a=E.cloneDeep(z.Fa()),0E.indexOf(a.newValue)&&E.splice(x,0,a.newValue));return}}else if(a.change===rn){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,De(a)&&typeof x=="number"&&(E=this.Ac(a),y?(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),E!==void 0&&this.wb.add(E,a)):(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),E!==void 0&&this.wb.remove(E)));return}if(a.modelChange==="linkLabelKeys"){E=this.Ef(a.object),Array.isArray(E)&&typeof x=="number"&&(y?0>E.indexOf(a.newValue)&&E.splice(x,0,a.newValue):(x=E.indexOf(a.newValue),0<=x&&E.splice(x,1)));return}}Nn.prototype.changeState.call(this,a,y)}},Ct=Yi.prototype,Ct.Vl=function(a){if(a!==void 0){var y=this.Ri;if(y!==null){var x=this.hc(a);x===null&&(x=this.copyNodeData(y),rr(x,this.nodeKeyProperty,a),this.xf(x))}return a}},Ct.yx=function(a){return su(this,a,!0)},Ct.wv=function(a,y){Hf(this,a,y,!0)},Ct.Bx=function(a){return su(this,a,!1)},Ct.Bv=function(a,y){Hf(this,a,y,!1)};function su(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=is(y,a),a!==void 0))){if(Ec(a))return a;oe((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Hf(a,y,x,E){if(x===null&&(x=void 0),y!==null){var b=E?a.lf:a.mf;if(b!=="")if(x=a.Vl(x),a.Jc(y)){var z=is(y,b);z!==x&&(ph(a,z,y),rr(y,b,x),a.hc(x)===null&&fh(a,x,y),xs(a,E?"linkFromKey":"linkToKey",Te,b,y,z,x),typeof b=="string"&&a.La(y,b))}else rr(y,b,x)}}Ct.zx=function(a){return p0(this,a,!0)},Ct.xv=function(a,y){Wf(this,a,y,!0)},Ct.Cx=function(a){return p0(this,a,!1)},Ct.Cv=function(a,y){Wf(this,a,y,!1)};function p0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=is(y,a),y===void 0?"":y)}function Wf(a,y,x,E){if(y!==null){var b=E?a.ej:a.fj;if(b!=="")if(a.Jc(y)){var z=is(y,b);z===void 0&&(z=""),z!==x&&(rr(y,b,x),xs(a,E?"linkFromPortId":"linkToPortId",Te,b,y,z,x),typeof b=="string"&&a.La(y,b))}else rr(y,b,x)}}Ct.Ef=function(a){if(a===null)return m0;var y=this.je;return y===""?m0:(a=is(a,y),a===void 0?m0:a)},Ct.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var E=is(a,x);if(E===void 0&&(E=m0),E!==y){if(Array.isArray(E))for(var b=E.length,z=0;zb||(E.splice(b,1),this.Jc(a)&&(ph(this,y,a),xs(this,"linkLabelKeys",rn,x,a,y,null,b,null)))}else E!==void 0&&oe(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Ct.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=is(a,y),y!==void 0)){if(Ec(y))return y;oe("Key value for link data "+a+" is not a number or a string: "+y)}}},Ct.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var E=is(a,x);E!==y&&this.jh(y)===null&&(rr(a,x,y),E!==void 0&&this.wb.remove(E),this.wb.add(y,a),xs(this,"linkKey",Te,x,a,E,y),typeof x=="string"&&this.La(a,x))}else rr(a,x,y)}},Ct.jh=function(a){return a===null&&oe("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&Ec(a)?this.wb.I(a):null},Ct.Bs=function(a){if(a!==null){var y=this.Jh;if(y!==""){var x=this.Ac(a);if(x===void 0||this.wb.contains(x)){var E=this.cl;if(E!==null&&(x=E(this,a),x!=null&&!this.wb.contains(x))){rr(a,y,x);return}if(typeof x=="string"){for(E=2;this.wb.contains(x+E);)E++;rr(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;rr(a,y,x)}}}}},Ct.Jc=function(a){return a===null?!1:this.$f.contains(a)},Ct.fi=function(a){a!==null&&(ia(a),this.Jc(a)||NS(this,a,!0))};function NS(a,y,x){if(a.linkKeyProperty!==""){var E=a.Ac(y);if(E!==void 0&&a.wb.I(E)===y)return;a.Bs(y),E=a.Ac(y),E===void 0&&oe("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(E,y)}a.$f.add(y),E=null,x&&(E=a.md.length,a.md.splice(E,0,y)),xs(a,"linkDataArray",Qe,"linkDataArray",a,null,y,null,E),cy(a,y)}Ct.Ey=function(a){if(Array.isArray(a))for(var y=a.length,x=0;xE)return;a.md.splice(E,1)}if(xs(a,"linkDataArray",rn,"linkDataArray",a,y,null,E,null),x=su(a,y,!0),ph(a,x,y),x=su(a,y,!1),ph(a,x,y),E=a.Ef(y),Array.isArray(E))for(var b=E.length,z=0;zE.indexOf(a.newValue)&&E.splice(x,0,a.newValue));return}}else if(a.change===rn){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,De(a)&&typeof x=="number"&&(E=this.Ac(a),y?(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),E!==void 0&&this.wb.add(E,a)):(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),E!==void 0&&this.wb.remove(E)));return}if(a.modelChange==="linkLabelKeys"){E=this.Ef(a.object),Array.isArray(E)&&typeof x=="number"&&(y?0>E.indexOf(a.newValue)&&E.splice(x,0,a.newValue):(x=E.indexOf(a.newValue),0<=x&&E.splice(x,1)));return}}Nn.prototype.changeState.call(this,a,y)}},Ct=Yi.prototype,Ct.Vl=function(a){if(a!==void 0){var y=this.Ri;if(y!==null){var x=this.hc(a);x===null&&(x=this.copyNodeData(y),rr(x,this.nodeKeyProperty,a),this.xf(x))}return a}},Ct.yx=function(a){return au(this,a,!0)},Ct.wv=function(a,y){Hf(this,a,y,!0)},Ct.Bx=function(a){return au(this,a,!1)},Ct.Bv=function(a,y){Hf(this,a,y,!1)};function au(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=is(y,a),a!==void 0))){if(Ec(a))return a;oe((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Hf(a,y,x,E){if(x===null&&(x=void 0),y!==null){var b=E?a.lf:a.mf;if(b!=="")if(x=a.Vl(x),a.Jc(y)){var z=is(y,b);z!==x&&(ph(a,z,y),rr(y,b,x),a.hc(x)===null&&fh(a,x,y),xs(a,E?"linkFromKey":"linkToKey",Te,b,y,z,x),typeof b=="string"&&a.La(y,b))}else rr(y,b,x)}}Ct.zx=function(a){return p0(this,a,!0)},Ct.xv=function(a,y){Wf(this,a,y,!0)},Ct.Cx=function(a){return p0(this,a,!1)},Ct.Cv=function(a,y){Wf(this,a,y,!1)};function p0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=is(y,a),y===void 0?"":y)}function Wf(a,y,x,E){if(y!==null){var b=E?a.ej:a.fj;if(b!=="")if(a.Jc(y)){var z=is(y,b);z===void 0&&(z=""),z!==x&&(rr(y,b,x),xs(a,E?"linkFromPortId":"linkToPortId",Te,b,y,z,x),typeof b=="string"&&a.La(y,b))}else rr(y,b,x)}}Ct.Ef=function(a){if(a===null)return m0;var y=this.je;return y===""?m0:(a=is(a,y),a===void 0?m0:a)},Ct.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var E=is(a,x);if(E===void 0&&(E=m0),E!==y){if(Array.isArray(E))for(var b=E.length,z=0;zb||(E.splice(b,1),this.Jc(a)&&(ph(this,y,a),xs(this,"linkLabelKeys",rn,x,a,y,null,b,null)))}else E!==void 0&&oe(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Ct.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=is(a,y),y!==void 0)){if(Ec(y))return y;oe("Key value for link data "+a+" is not a number or a string: "+y)}}},Ct.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var E=is(a,x);E!==y&&this.jh(y)===null&&(rr(a,x,y),E!==void 0&&this.wb.remove(E),this.wb.add(y,a),xs(this,"linkKey",Te,x,a,E,y),typeof x=="string"&&this.La(a,x))}else rr(a,x,y)}},Ct.jh=function(a){return a===null&&oe("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&Ec(a)?this.wb.I(a):null},Ct.Bs=function(a){if(a!==null){var y=this.Jh;if(y!==""){var x=this.Ac(a);if(x===void 0||this.wb.contains(x)){var E=this.cl;if(E!==null&&(x=E(this,a),x!=null&&!this.wb.contains(x))){rr(a,y,x);return}if(typeof x=="string"){for(E=2;this.wb.contains(x+E);)E++;rr(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;rr(a,y,x)}}}}},Ct.Jc=function(a){return a===null?!1:this.$f.contains(a)},Ct.fi=function(a){a!==null&&(ia(a),this.Jc(a)||NS(this,a,!0))};function NS(a,y,x){if(a.linkKeyProperty!==""){var E=a.Ac(y);if(E!==void 0&&a.wb.I(E)===y)return;a.Bs(y),E=a.Ac(y),E===void 0&&oe("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(E,y)}a.$f.add(y),E=null,x&&(E=a.md.length,a.md.splice(E,0,y)),xs(a,"linkDataArray",Qe,"linkDataArray",a,null,y,null,E),cy(a,y)}Ct.Ey=function(a){if(Array.isArray(a))for(var y=a.length,x=0;xE)return;a.md.splice(E,1)}if(xs(a,"linkDataArray",rn,"linkDataArray",a,y,null,E,null),x=au(a,y,!0),ph(a,x,y),x=au(a,y,!1),ph(a,x,y),E=a.Ef(y),Array.isArray(E))for(var b=E.length,z=0;z=a.count)a.count===1&&(a=a.first(),a.centerX=0,a.centerY=0);else{var y=new on;y.addAll(a.iterator),a=new on;var x=new on,E=this.sort(y),b,z,tt=this.Jp,ot=this.arrangement,rt=this.nodeDiameterFormula,at=this.radius;(!isFinite(at)||0>=at)&&(at=NaN);var ut=this.aspectRatio;(!isFinite(ut)||0>=ut)&&(ut=1);var gt=this.startAngle;isFinite(gt)||(gt=0);var mt=this.sweepAngle;if((!isFinite(mt)||360mt)&&(mt=360),y=this.spacing,isFinite(y)||(y=NaN),ot===Xu&&rt===qg?ot=Qu:ot===Xu&&rt!==qg&&(ot=this.arrangement),(this.direction===yg||this.direction===Yf)&&this.sorting!==Uf){for(rt=0;!(rt>=E.length)&&(a.add(E.M(rt)),!(rt+1>=E.length));rt+=2)x.add(E.M(rt+1));this.direction===yg?(this.arrangement===Xu&&a.reverse(),E=new on,E.addAll(a),E.addAll(x)):(this.arrangement===Xu&&x.reverse(),E=new on,E.addAll(x),E.addAll(a))}rt=E.length;for(var yt=z=b=0;ytmt&&(yt===0||yt===E.length-1)&&(Et/=2),b+=Et,z++}if(isNaN(at)||ot===Xu){if(isNaN(y)&&(y=6),ot!==Qu&&ot!==Xu){for(z=-1/0,tt=0;ttat?(at=b,z=at*ut):tt=yt/(360<=mt?rt:rt-1)}if(this.kw=ot,this.lc=at,this.Zm=ut,this.lw=gt,this.Wp=mt,this.Ti=y,this.me=z,this.Jp=tt,y=E,E=this.kw,ot=this.lc,at=this.lw,ut=this.Wp,gt=this.Ti,mt=this.me,rt=this.Jp,this.direction!==yg&&this.direction!==Yf||E!==Xu)if(this.direction===yg||this.direction===Yf){switch(tt=0,E){case kc:tt=180*y0(this,ot,mt,at,rt)/Math.PI;break;case Qu:rt=y=0,tt=a.first(),tt!==null&&(y=Nc(tt,Math.PI/2)),tt=x.first(),tt!==null&&(rt=Nc(tt,Math.PI/2)),tt=180*y0(this,ot,mt,at,gt+(y+rt)/2)/Math.PI;break;case _d:tt=ut/y.length}if(this.direction===yg){switch(E){case kc:Up(this,a,at,Ac);break;case Qu:Yp(this,a,at,Ac);break;case _d:Wp(this,a,ut/2,at,Ac)}switch(E){case kc:Up(this,x,at+tt,hl);break;case Qu:Yp(this,x,at+tt,hl);break;case _d:Wp(this,x,ut/2,at+tt,hl)}}else{switch(E){case kc:Up(this,x,at,Ac);break;case Qu:Yp(this,x,at,Ac);break;case _d:Wp(this,x,ut/2,at,Ac)}switch(E){case kc:Up(this,a,at+tt,hl);break;case Qu:Yp(this,a,at+tt,hl);break;case _d:Wp(this,a,ut/2,at+tt,hl)}}}else switch(E){case kc:Up(this,y,at,this.direction);break;case Qu:Yp(this,y,at,this.direction);break;case _d:Wp(this,y,ut,at,this.direction);break;case Xu:DS(this,y,ut,at,this.direction)}else DS(this,y,ut,at-ut/2,hl)}this.updateParts(),this.network=null,this.isValidLayout=!0};function Wp(a,y,x,E,b){var z=a.Wp,tt=a.lc;a=a.me,E=E*Math.PI/180,x=x*Math.PI/180;for(var ot=y.length,rt=0;rtx){for(z=E+(b===hl?z:-z);0>z;)z+=360;z%=360,180=ut.length-1));gt++)IS(a,rt,at,ut,gt,b,z)||OS(a,rt,at,ut,gt,b,z),rt=z.x,at=z.y;if(Wt.free(z),a.mj++,!(23Math.abs(yt)?Math.abs(rt-z)<(ut[0].width+ut[ut.length-1].width)/2&&(tt=0):tt=0Math.abs(mt)?0:mt,rt=Math.abs(z)>Math.abs(gt)?0gt:0a.mj?a.lc-tt/(2*Math.PI):5>ut.length&&10=gt.length-1));mt++)IS(a,rt,at,gt,mt,b,ut)||OS(a,rt,at,gt,mt,b,ut),rt=ut.x,at=ut.y;if(Wt.free(ut),a.mj++,!(23a.mj?a.lc-z/(2*Math.PI):a.lc-(0ot){if(z=y-a,z<-ot)return tt.x=z,tt.y=at,!1;ut=!0}}else if(z=y-a,z<-ot){if(z=y+a,z>ot)return tt.x=z,tt.y=at,!1;ut=!0}return at=Math.sqrt(1-Math.min(1,z*z/(ot*ot)))*rt,0>x!==ut&&(at=-at),Math.abs(x-at)>(E[b].height+E[b+1].height)/2?(tt.x=z,tt.y=at,!1):(tt.x=z,tt.y=at,!0)}function OS(a,y,x,E,b,z,tt){var ot=a.lc,rt=a.me,at=0;if(a=(E[b].height+E[b+1].height)/2+a.Ti,E=!1,0<=y!=(z===hl)){if(z=x-a,z<-rt){if(z=x+a,z>rt){tt.x=at,tt.y=z;return}E=!0}}else if(z=x+a,z>rt){if(z=x-a,z<-rt){tt.x=at,tt.y=z;return}E=!0}at=Math.sqrt(1-Math.min(1,z*z/(rt*rt)))*ot,0>y!==E&&(at=-at),tt.x=at,tt.y=z}yr.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},yr.prototype.commitNodes=function(){var a=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,y=a?this.group.location.copy():null,x=this.actualCenter;a?x=new Wt(0,0):(x.x=this.arrangementOrigin.x+this.lc,x.y=this.arrangementOrigin.y+this.me);for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;b.x+=x.x,b.y+=x.y,b.commit()}a&&(this.group.Va(),a=this.group.position.copy(),x=this.group.location.copy(),y=y.re(x.re(a)),this.group.move(y),this.Zv=y.re(a))},yr.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function gy(a,y,x,E,b){var z=a.ty;if(.001>Math.abs(a.Zm-1))return E!==void 0&&b!==void 0?b*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var tt=0,ot=E!==void 0&&b!==void 0?b/(z+1):Math.PI/(2*(z+1)),rt=0,at=0;at<=z;at++){E!==void 0&&b!==void 0?rt=E+at*b/z:rt=at*Math.PI/(2*z);var ut=Math.sin(rt);tt+=Math.sqrt(1-a*a*ut*ut)*ot}return E!==void 0&&b!==void 0?(y>x?y:x)*tt:4*(y>x?y:x)*tt}function v0(a,y,x,E,b){return y/(E!==void 0&&b!==void 0?gy(a,1,x,E,b):gy(a,1,x))}function y0(a,y,x,E,b){if(.001>Math.abs(a.Zm-1))return b/y;var z=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,tt=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(E+=Math.PI/2);for(var ot=0;;ot++){var rt=Math.sin(E+ot*a);if(tt+=(y>x?y:x)*Math.sqrt(1-z*z*rt*rt)*a,tt>=b)return ot*a}}yr.prototype.sort=function(a){switch(this.sorting){case S0:break;case x0:a.reverse();break;case w0:a.sort(this.comparer);break;case P0:a.sort(this.comparer),a.reverse();break;case Uf:return this.ak(Fx(a));default:oe("Invalid sorting type.")}return a};function Fx(a){for(var y=[],x=0;xb&&(b=ot,z=tt)}else for(tt=0;ttb&&(b=ot,z=tt);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),tt=z.sourceEdges;tt.next();)b=a.indexOf(tt.value.fromVertex),0>b||0<=y[b]&&y[b]++;for(z=z.destinationEdges;z.next();)b=a.indexOf(z.value.toVertex),0>b||0<=y[b]&&y[b]++}return x}yr.prototype.ak=function(a){for(var y=[],x=0;xy[x].indexOf(b)&&y[x].push(b);for(E=E.sourceEdges;E.next();)b=a.indexOf(E.value.fromVertex),b!==x&&0>y[x].indexOf(b)&&y[x].push(b)}for(z=[],x=0;xy[x[wt]].indexOf(x[wt===x.length-1?0:wt+1])&&yt.push(wt===x.length-1?0:wt+1);if(yt.length===0)for(wt=0;wtx.indexOf(ge)||tex.indexOf(ge)||te=Et?te+1:te)),It+=te=Et&&te++,Vt>=Et&&Vt++,te>Vt&&(Xt=Vt,Vt=te,te=Xt),Vt-te<(x.length+2)/2==(teyt||yt===ut||(wt=yt>ut?yt-ut:ut-yt,gt+=yttt-wt?1:-1);x.splice(0>gt?ut:ut+1,0,rt),E.splice(ot,1),ot--}else z=!1;if(z)break;x.push(E[0]),E.splice(0,1)}for(y=0;y=a?this.ul=a:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==Xu&&a!==Qu&&a!==kc&&a!==_d||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==hl&&a!==Ac&&a!==yg&&a!==Yf||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==S0&&a!==x0&&a!==w0&&!P0&&a!==Uf||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf!==a&&(this.tf=a,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(a){this.Nn===a||a!==C0&&a!==qg||(this.Nn=a,this.C())}},actualXRadius:{get:function(){return this.lc}},actualYRadius:{get:function(){return this.me}},actualSpacing:{get:function(){return this.Ti}},actualCenter:{get:function(){return this.Zv}}});var Qu=new Ye(yr,"ConstantSpacing",0),kc=new Ye(yr,"ConstantDistance",1),_d=new Ye(yr,"ConstantAngle",2),Xu=new Ye(yr,"Packed",3),hl=new Ye(yr,"Clockwise",4),Ac=new Ye(yr,"Counterclockwise",5),yg=new Ye(yr,"BidirectionalLeft",6),Yf=new Ye(yr,"BidirectionalRight",7),S0=new Ye(yr,"Forwards",8),x0=new Ye(yr,"Reverse",9),w0=new Ye(yr,"Ascending",10),P0=new Ye(yr,"Descending",11),Uf=new Ye(yr,"Optimized",12),C0=new Ye(yr,"Pythagorean",13),qg=new Ye(yr,"Circular",14);yr.className="CircularLayout",yr.ConstantSpacing=Qu,yr.ConstantDistance=kc,yr.ConstantAngle=_d,yr.Packed=Xu,yr.Clockwise=hl,yr.Counterclockwise=Ac,yr.BidirectionalLeft=yg,yr.BidirectionalRight=Yf,yr.Forwards=S0,yr.Reverse=x0,yr.Ascending=w0,yr.Descending=P0,yr.Optimized=Uf,yr.Pythagorean=C0,yr.Circular=qg;function Vp(){this.Pl=-1/0,this.tm=this.mk=null}Vp.prototype.compare=function(a,y){if(0this.Pl||Math.abs(a)a&&0ot?(b=mt.x+mt.width/2,z=mt.y+mt.height/2,at[0]=new Wt(mt.x+mt.width+E.width,mt.y),at[1]=new Wt(mt.x,mt.y+mt.height+E.height),ot=2):(rt=RS(at,ot,b,z,mt.width,mt.height,E),gt=at[rt],yt=new Wt(gt.x+mt.width+E.width,gt.y),mt=new Wt(gt.x,gt.y+mt.height+E.height),rt+1this.network.vertexes.count)return!1;for(var a=0,y=0,x=this.network.vertexes.first().bounds,E=this.network.vertexes.iterator;E.next();){if(E.value.bounds.Yc(x)&&(a++,2a.network.vertexes.count)return!1;for(a.ah=a.network.vertexes.Fa(),a=a.ah,a.sort(function(x,E){return x===null||E===null||x===E?0:E.Vd-x.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1=tt))){for(var at=ot=0,ut=rt.count-tt;utyt&&(yt=1),ot=_t.sqrt((ot+yt+at*at*4/(tt*tt))/yt),tt=(ot-1)*ut/2,ot=(ot-1)*gt/2,b.bounds=new ke(z-mt.x-tt,rt-mt.y-ot,ut+2*tt,gt+2*ot),b.focus=new Wt(mt.x+tt,mt.y+ot)}}return a.network=E,x}function Ox(a,y){for(var x=a.network.vertexes.iterator;x.next();){var E=x.value;if(E.network=y,E.We!==null){var b=E.We.M(E.sv);E.Vd=b.Rs;var z=b.Sv,tt=b.Tv;E.bounds=new ke(E.centerX-z,E.centerY-tt,b.Ss,b.Qs),E.focus=new Wt(z,tt),E.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function jx(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var E=y.centerX,b=y.centerY,z=y.width,tt=y.height;y.We!==null&&0=gt.Vd?rt++:(ot=!0,at++,tt+=Math.atan2(y.centerY-gt.centerY,y.centerX-gt.centerX))}if(rt!==0){for(0>1)+at)*(ot%2===0?1:-1),rt.centerX=E+ut*Math.cos(gt),rt.centerY=b+ut*Math.sin(gt),ot++}}}}function RS(a,y,x,E,b,z,tt){var ot=9e19,rt=-1,at=0;t:for(;atut.y&&a[mt].x-ut.xut.x&&a[mt].y-ut.yy+z?(x=E+b-tt,a=a-y-z,_t.sqrt(x*x+a*a)):a+xtt+ot?a>y+z?(x=E-tt-ot,a=a-y-z,_t.sqrt(x*x+a*a)):a+xy+z?a-(y+z):a+x=y.length)return!1;var x=y[0];x.forceX=0,x.forceY=0;for(var E=x.centerX,b=E,z=x=x.centerY,tt=1;ttz-x)?y.sort(function(Et,zt){return Et===null||zt===null||Et===zt?0:Et.centerX-zt.centerX}):y.sort(function(Et,zt){return Et===null||zt===null||Et===zt?0:Et.centerY-zt.centerY}),x=a.Zf;var at=E=ot=0;for(z=0;zx||at-rt>x){if(b)break}else if(ut-yt>x||yt-ut>x){if(!b)break}else{var wt=zS(tt,mt);1>wt?(E=a.randomNumberGenerator,E===null&&(a.randomNumberGenerator=E=new L0),wt=E.random(),ot=E.random(),rt>at?(E=Math.abs(mt.bounds.right-tt.bounds.x),E=(1+E)*wt):rtyt?(at=Math.abs(mt.bounds.bottom-tt.bounds.y),at=(1+at)*ot):rtgt?(gt=a.randomNumberGenerator,gt===null&&(a.randomNumberGenerator=gt=new L0),ot=gt.random(),gt=gt.random(),E=(E>rt?1:-1)*(1+(z.width>x.width?z.width:x.width))*ot,at=(tt>ut?1:-1)*(1+(z.height>x.height?z.height:x.height))*gt):(ot=ot.stiffness*(gt-ot.length),E=(rt-E)/gt*ot,at=(ut-tt)/gt*ot),x.forceX+=E,x.forceY+=at,z.forceX-=E,z.forceY-=at;for(b=E=0;ba.epsilonDistance*a.epsilonDistance}La.prototype.moveVertex=function(a){var y=a.forceX,x=a.forceY,E=this.moveLimit;return y<-E?y=-E:y>E&&(y=E),x<-E?x=-E:x>E&&(x=E),a.centerX+=y,a.centerY+=x,y*y+x*x},La.prototype.moveFixedVertex=function(){},La.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},La.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=so,y.toSpot=so)}},La.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=ke.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,ke.free(x)}x=ke.alloc();for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;(a!==0||y!==0)&&(x.assign(b.bounds),x.x+=a,x.y+=y,b.bounds=x),b.commit()}ke.free(x)},La.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},La.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},La.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},La.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},La.prototype.electricalFieldX=function(){return 0},La.prototype.electricalFieldY=function(){return 0},La.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},La.prototype.gravitationalFieldX=function(){return 0},La.prototype.gravitationalFieldY=function(){return 0},La.prototype.isFixed=function(a){return a.isFixed},ve.Object.defineProperties(La.prototype,{currentIteration:{get:function(){return this.An}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},arrangesToOrigin:{get:function(){return this.Bm},set:function(a){this.Bm!==a&&(this.Bm=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},maxIterations:{get:function(){return this.dl},set:function(a){this.dl!==a&&0<=a&&(this.dl=a,this.C())}},epsilonDistance:{get:function(){return this.$m},set:function(a){this.$m!==a&&0Et&&0Et&&0a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]tt)for(var ut=tt+1;utrt;ut--)gt=E[ut],gt.near===at&>.Dj===at.Dj||ot++;var mt;if(0<=x)for(rt=E[tt].sourceEdgesArrayAccess,at=0;atEt||gt===Et&&yt>wt)&&ot++,ztgt||Et===gt&&wt>yt)&&ot++}}}if(0>=x){for(rt=E[tt].destinationEdgesArrayAccess,at=0;atEt||gt===Et&&ut>zt)&&ot++,wtgt||Et===gt&&zt>ut)&&ot++)}for(z[tt*b+tt]=ot,rt=tt+1;rt=x){for(ot=E[tt].destinationEdgesArrayAccess,Vt=E[rt].destinationEdgesArrayAccess,at=0;at=x&&(rt=ot.sourceEdgesArrayAccess);var at=null;0<=x&&(at=ot.destinationEdgesArrayAccess);var ut=0,gt=0,mt=ot.near;if(mt!==null&&mt.layer===ot.layer&&(ut+=mt.column-1,gt++),rt!==null)for(mt=0;mt=x&&(rt=ot.sourceEdgesArrayAccess);var at=null;0<=x&&(at=ot.destinationEdgesArrayAccess);var ut=0,gt=[],mt=ot.near;if(mt!==null&&mt.layer===ot.layer&&(gt[ut]=mt.column-1,ut++),ot=void 0,rt!==null)for(mt=0;mt>1,z[tt]=ut&1?gt[at]:gt[at-1]+gt[at]>>1)}return Tc(a,y,E),z}function Xp(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var tt=y.destinationEdges;tt.next();){var ot=tt.value,rt=ot.toVertex,at=y.layer-rt.layer;ot=a.linkMinLength(ot),at===ot&&Xp(a,rt,x,E,b,z)}if(z)for(tt=y.sourceEdges;tt.next();)ot=tt.value,rt=ot.fromVertex,at=rt.layer-y.layer,ot=a.linkMinLength(ot),at===ot&&Xp(a,rt,x,E,b,z)}}function my(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var tt=y.destinationEdges;tt.next();)my(a,tt.value.toVertex,x,E,b,z);if(z)for(y=y.sourceEdges;y.next();)my(a,y.value.fromVertex,x,E,b,z)}}mo.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case Sy:a=this.network;var y=0,x=a.vertexes.count-1,E=[];E.length=x+1;for(var b=a.vertexes.iterator;b.next();)b.value.valid=!0;for(;zx(a)!==null;){for(b=US(a);b!==null;)E[x]=b,x--,b.valid=!1,b=US(a);for(b=VS(a);b!==null;)E[y]=b,y++,b.valid=!1,b=VS(a);b=null;for(var z=0,tt=this.network.vertexes.iterator;tt.next();){var ot=tt.value;if(ot.valid){for(var rt=0,at=ot.destinationEdges;at.next();)at.value.toVertex.valid&&rt++;at=0;for(var ut=ot.sourceEdges;ut.next();)ut.value.fromVertex.valid&&at++;(b===null||zy.toVertex.index&&(a.gm(y),y.rev=!0);break;case b0:for(E=this.network.vertexes.iterator;E.next();)a=E.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,E.reset();E.next();)y=E.value,y.sourceEdges.count===0&&vy(this,y);for(E.reset();E.next();)y=E.value,y.Ll===-1&&vy(this,y);for(a.reset();a.next();)E=a.value,E.forest||(y=E.fromVertex,x=y.finish,b=E.toVertex,z=b.finish,b.LlE){if(0>E)for(y.reset();y.next();)y.value.layer-=E;for(E=[],y.reset();y.next();)x=y.value,b=E[x.layer],b===void 0?E[x.layer]=[x]:b.push(x);for(x=y=0;xtt&&Xp(a,ot,0,-1,!0,!1)}for(Xp(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,E=1/0,ot=0,rt=null,tt=a.network.vertexes.iterator;tt.next();){var at=tt.value;if(at.component===1){var ut=0,gt=!1,mt=at.sourceEdgesArrayAccess;b=mt.length;for(var yt=0;ytz)&&!ut&&(ot=tt,z=at)}if(0>E){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer-=b);y.component=0}else ot.component=0}}}function JS(a,y,x){return a.K===90?x&&!y.rev||!x&&y.rev?270:90:a.K===180?x&&!y.rev||!x&&y.rev?0:180:a.K===270?x&&!y.rev||!x&&y.rev?90:270:x&&!y.rev||!x&&y.rev?180:0}mo.prototype.initializeIndices=function(){switch(this.Qk){default:case Cy:for(var a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;y.index=this.tc[x],this.tc[x]++}break;case D0:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&_S(this,x);break;case Py:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&qS(this,x)}};function _S(a,y){var x=y.layer;for(y.index=a.tc[x],a.tc[x]++,y=y.destinationEdgesArrayAccess,x=!0;x;){x=!1;for(var E=0;Ez.portFromColOffset&&(x=!0,y[E]=z,y[E+1]=b)}}for(x=0;xz.portToColOffset&&(E=!0,y[x]=z,y[x+1]=b)}for(x=0;x=tt;E--)z=Du(this,E,-1)||z;for(b=this.countCrossings(),b>=a?wu(this,y):(a=b,y=Cl(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Du(this,E,1)||z;for(b=this.countCrossings(),b>=a?wu(this,y):(a=b,y=Cl(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Du(this,E,1)||z;for(b>=a?wu(this,y):(a=b,y=Cl(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Du(this,E,-1)||z;for(b>=a?wu(this,y):(a=b,y=Cl(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Du(this,E,0)||z;for(b>=a?wu(this,y):(a=b,y=Cl(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Du(this,E,0)||z;b>=a?wu(this,y):(a=b,y=Cl(this))}break;default:case F0:for(x=this.Ia,tt=0,ot=a+1;(E=this.countCrossings())=tt;E--)z=Du(this,E,-1)||z;for(b=this.countCrossings(),b>=a?wu(this,y):(a=b,y=Cl(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Du(this,E,1)||z;for(b=this.countCrossings(),b>=a?wu(this,y):(a=b,y=Cl(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Du(this,E,1)||z;for(b>=a?wu(this,y):(a=b,y=Cl(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Du(this,E,-1)||z;for(b>=a?wu(this,y):(a=b,y=Cl(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Du(this,E,0)||z;for(b>=a?wu(this,y):(a=b,y=Cl(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Du(this,E,0)||z;b>=a?wu(this,y):(a=b,y=Cl(this))}}wu(this,y)};function k0(a,y,x){var E=bc(a,y),b=a.tc[y],z=YS(a,y,x),tt=py(a,y,x);for(x=0;xz+1&&(mt+=4*(Yt-z),yt+=4*(Yt-(z+1)))}for(Xt=E[z].destinationEdges.iterator,Xt.reset();Xt.next();)if(Yt=Xt.value,Vt=Yt.toVertex,Yt.valid&&Vt.layer===y){for(Yt=0;E[Yt]!==Vt;)Yt++;Yt===z+1&&(yt+=1)}for(Xt=E[z+1].sourceEdges.iterator,Xt.reset();Xt.next();)if(Yt=Xt.value,Vt=Yt.fromVertex,Yt.valid&&Vt.layer===y){for(Yt=0;E[Yt]!==Vt;)Yt++;Ytz+1&&(mt+=4*(Yt-(z+1)),yt+=4*(Yt-z))}for(Xt=E[z+1].destinationEdges.iterator,Xt.reset();Xt.next();)if(Yt=Xt.value,Vt=Yt.toVertex,Yt.valid&&Vt.layer===y){for(Yt=0;E[Yt]!==Vt;)Yt++;Yt===z&&(mt+=1)}Yt=Vt=0,Xt=tt[E[z].index];var te=ot[E[z].index],ge=tt[E[z+1].index],ln=ot[E[z+1].index];Xt!==-1&&(Vt+=Math.abs(Xt-wt),Yt+=Math.abs(Xt-It)),te!==-1&&(Vt+=Math.abs(te-wt),Yt+=Math.abs(te-It)),ge!==-1&&(Vt+=Math.abs(ge-Et),Yt+=Math.abs(ge-zt)),ln!==-1&&(Vt+=Math.abs(ln-Et),Yt+=Math.abs(ln-zt)),(yt>1)+8*E;this.Ra*=8}if(this.bg&2)for(x=!0;x;){for(x=!1,y=this.Md+1;y<=this.Ia;y++)x=Zf(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Zf(this,y,-1)||x;x=Zf(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)yy(this,y,1);for(y=this.Md-1;0<=y;y--)yy(this,y,-1);yy(this,this.Md,0)}if(a&&($S(this,-1),$S(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Zf(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Zf(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Zf(this,y,0)||x}}else Yx(this)};function Zf(a,y,x){for(var E=!1;Gx(a,y,x);)E=!0;return E}function Gx(a,y,x){var E,b=bc(a,y),z=a.tc[y],tt=py(a,y,-1);if(0x)for(E=0;EE-1||ut-b[E-1].column-1>gt+a.nodeMinColumnSpace(b[E-1],!1)?yt=ut-1:yt=ut,gt=E+1>=z||b[E+1].column-ut-1>mt+a.nodeMinColumnSpace(b[E+1],!0)?ut+1:ut;var wt=mt=0,Et=0;if(0>=x)for(var zt=b[E].sourceEdges.iterator;zt.next();){var It=zt.value,Yt=It.fromVertex;if(It.valid&&Yt.layer!==y){var Vt=fy(It),Xt=It.portFromColOffset;It=It.portToColOffset,Yt=Yt.column,mt+=(Math.abs(ut+It-(Yt+Xt))+1)*Vt,wt+=(Math.abs(yt+It-(Yt+Xt))+1)*Vt,Et+=(Math.abs(gt+It-(Yt+Xt))+1)*Vt}}if(0<=x)for(zt=b[E].destinationEdges.iterator;zt.next();)It=zt.value,Yt=It.toVertex,It.valid&&Yt.layer!==y&&(Vt=fy(It),Xt=It.portFromColOffset,It=It.portToColOffset,Yt=Yt.column,mt+=(Math.abs(ut+Xt-(Yt+It))+1)*Vt,wt+=(Math.abs(yt+Xt-(Yt+It))+1)*Vt,Et+=(Math.abs(gt+Xt-(Yt+It))+1)*Vt);It=Xt=Vt=0,zt=tt[b[E].index],Yt=ot[b[E].index],zt!==-1&&(Vt+=Math.abs(zt-ut),Xt+=Math.abs(zt-yt),It+=Math.abs(zt-gt)),Yt!==-1&&(Vt+=Math.abs(Yt-ut),Xt+=Math.abs(Yt-yt),It+=Math.abs(Yt-gt)),wt=tt[x]?ut=rt:at<=tt[x]&&(ut=at));ut!==ot&&(z=!0,E[x].column=ut)}Tc(a,y,E),a.normalize()}function Hx(a,y){for(var x=!0,E=a.network.vertexes.iterator;E.next();){var b=E.value,z=a.nodeMinColumnSpace(b,!0),tt=a.nodeMinColumnSpace(b,!1);if(b.column-z<=y&&b.column+tt>=y){x=!1;break}}if(a=!1,x)for(E.reset();E.next();)x=E.value,x.column>y&&(--x.column,a=!0);return a}function Wx(a,y){var x=y+1,E,b=[],z=[];for(E=0;E<=a.Ia;E++)b[E]=!1,z[E]=!1;for(var tt=a.network.vertexes.iterator;tt.next();){E=tt.value;var ot=E.column-a.nodeMinColumnSpace(E,!0),rt=E.column+a.nodeMinColumnSpace(E,!1);ot<=y&&rt>=y&&(b[E.layer]=!0),ot<=x&&rt>=x&&(z[E.layer]=!0)}for(ot=!0,x=!1,E=0;E<=a.Ia;E++)ot=ot&&!(b[E]&&z[E]);if(ot)for(tt.reset();tt.next();)a=tt.value,a.column>y&&(--a.column,x=!0);return x}function $S(a,y){for(var x=0;x<=a.Ra;x++)for(;Hx(a,x););for(a.normalize(),x=0;xz?wu(a,b):tty)for(x=a.Ra;0<=x;x--)for(b=Cl(a),z=E0(a),E=z+1;zz?wu(a,b):ttx)for(E.reset();E.next();)b=E.value,b.column+a.nodeMinColumnSpace(b,!1)>=y&&(b.component=a.le);for(a.le++,E.reset();E.next();)y=E.value,y.component===-1&&(my(a,y,a.le,-1,!0,!0),a.le++);var z;for(y=[],z=0;zx)for(tt=a.Ra;0x)for(E.reset();E.next();)x=E.value,b[x.component]&&(x.column+=1)}function Yx(a){for(var y=Ii(),x=a.fl.length,E=0;E<=x;E++)y[E]=[];for(E=a.network.vertexes.iterator;E.next();){var b=E.value;y[x-b.layer][b.index]=b}x=new en,Ux(y,x);var z=null,tt=null,ot=null,rt=null,at=(a.ve&1)!==0,ut=(a.ve&2)!==0,gt=(a.ve&4)!==0,mt=(a.ve&8)!==0;for(at&&(a.verticalAlignment(y,x,!0),z=A0(a,y,!0,!1)),y.reverse(),gt&&(a.verticalAlignment(y,x,!1),ot=A0(a,y,!1,!1)),E=mr(y),b=E.next();!b.done;b=E.next())b.value.reverse();mt&&(a.verticalAlignment(y,x,!1),rt=A0(a,y,!1,!0)),y.reverse(),ut&&(a.verticalAlignment(y,x,!0),tt=A0(a,y,!0,!0)),Fi(y),a.u(z,tt,ot,rt),a.network.vertexes.each(function(yt){var wt=Ii();at&&wt.push(z.get(yt)),ut&&wt.push(tt.get(yt)),gt&&wt.push(ot.get(yt)),mt&&wt.push(rt.get(yt)),wt.sort(function(zt,It){return zt-It});var Et=wt.length;Et=(wt[Math.floor((Et-1)/2)]+wt[Math.ceil((Et-1)/2)])/2,Fi(wt),yt.zc=Et})}function Ux(a,y){for(var x=a.length,E=1;Eut)&&y.add(gt);z++}b=ut}}}mo.prototype.verticalAlignment=function(a,y,x){Vx(a),a=mr(a);for(var E=a.next();!E.done;E=a.next()){var b=-1;E=mr(E.value);for(var z=E.next();!z.done;z=E.next()){z=z.value;var tt=x?Ey(z):Qx(z),ot=tt.length;if(0=y[x].length)&&(tt=y[x][0],tt.sd===tt)){tt.sd.shift===1/0&&(tt.sd.shift=0),tt=x,ot=0;do{for(z=y[tt][ot];z.align!==z.root;)z=z.align,tt++,0a&&oe("Could not determine previous vertex in layer"),y[x][a-1]}mo.prototype.u=function(a){for(var y=[],x=0;xtt;tt++)if(y[tt]){var ot=Zx(this,y[tt],E,b,tt);ottt;z={delta:z.delta},tt++)y[tt]&&(z.delta=tt===0||tt===2?E[x]-E[tt]:b[x]-b[tt],z.delta!==0&&y[tt].each(function(rt){return function(at){at.value+=rt.delta}}(z)));Fi(E),Fi(b)};function Zx(a,y,x,E,b){if(!y||y.count===0)return x[b]=0,E[b]=0,1/0;var z=1/0,tt=-1/0;return y.each(function(ot){var rt=ot.key;ot=ot.value,rt=a.K===90||a.K===270?rt.width:rt.height,ottt&&(tt=ot+rt)}),x[b]=z,E[b]=tt,tt-z}mo.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=N0(this,!0),y=N0(this,!1),x=this.network.edges.iterator;x.next();){var E=x.value.link;E!==null&&(E.fromSpot=a,E.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function N0(a,y){return a.K===270?y?Zr:oo:a.K===90?y?oo:Zr:a.K===180?y?_s:gs:y?gs:_s}mo.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var a=0;a<=this.Ia;a++)this.he[a]=0,this.Ld[a]=0,this.Kd[a]=0,this.Ta[a]=0;for(a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;this.he[x]=Math.max(this.he[x],this.nodeMinLayerSpace(y,!0)),this.Ld[x]=Math.max(this.Ld[x],this.nodeMinLayerSpace(y,!1))}y=0,x=this.ie;for(var E=0;E<=this.Ia;E++){var b=x;0>=this.he[E]+this.Ld[E]&&(b=0),0=gt.bounds.bottom?(gt=gt.bounds.y+gt.bounds.height,y.m(Et++,Xt,gt+ge),y.m(Et++,Xt,gt),y.m(Et++,Xt,gt-Vt)):(y.m(Et++,Xt,te+ge),y.m(Et++,Xt,te),y.m(Et++,Xt,te-Vt)):this.K===270?te<=gt.bounds.y?(gt=gt.bounds.y,y.m(Et++,Xt,gt-Vt),y.m(Et++,Xt,gt),y.m(Et++,Xt,gt+ge)):(y.m(Et++,Xt,te-Vt),y.m(Et++,Xt,te),y.m(Et++,Xt,te+ge)):this.K===0&&(Xt>=gt.bounds.right?(gt=gt.bounds.x+gt.bounds.width,y.m(Et++,gt+ge,te),y.m(Et++,gt,te),y.m(Et++,gt-Vt,te)):(y.m(Et++,Xt+ge,te),y.m(Et++,Xt,te),y.m(Et++,Xt-Vt,te)));else{y.m(Et++,It,Yt);var ln=0;this.K===180||this.K===0?((this.K===180?Xt>=gt.bounds.right:Xt<=gt.bounds.x)&&(ln=(this.K===0?-Vt:ge)/2),y.m(Et++,It+ln,te)):((this.K===270?te>=gt.bounds.bottom:te<=gt.bounds.y)&&(ln=(this.K===90?-Vt:ge)/2),y.m(Et++,Xt,Yt+ln)),y.m(Et++,Xt,te)}}else Vt=Math.max(10,this.he[zt.layer]),ge=Math.max(10,this.Ld[zt.layer]),mt?this.K===180?(y.m(Et++,Xt-Vt-wt,te),y.m(Et++,Math.min(Xt-Vt+wt/2,Xt),te),y.m(Et++,Xt,te),y.m(Et++,Xt,te),y.m(Et++,Math.max(Xt+ge-wt/2,Xt),te),y.m(Et++,Xt+ge+wt,te)):this.K===90?(y.m(Et++,Xt,te+ge+wt),y.m(Et++,Xt,Math.max(te+ge-wt/2,te)),y.m(Et++,Xt,te),y.m(Et++,Xt,te),y.m(Et++,Xt,Math.min(te-Vt+wt/2,te)),y.m(Et++,Xt,te-Vt-wt)):this.K===270?(y.m(Et++,Xt,te-Vt-wt),y.m(Et++,Xt,Math.min(te-Vt+wt/2,te)),y.m(Et++,Xt,te),y.m(Et++,Xt,te),y.m(Et++,Xt,Math.max(te+ge-wt/2,te)),y.m(Et++,Xt,te+ge+wt)):(y.m(Et++,Xt+ge+wt,te),y.m(Et++,Math.max(Xt+ge-wt/2,Xt),te),y.m(Et++,Xt,te),y.m(Et++,Xt,te),y.m(Et++,Math.min(Xt-Vt+wt/2,Xt),te),y.m(Et++,Xt-Vt-wt,te)):y.m(Et++,Xt,te)}gt=zt}(ot===null||at!==We||yt)&&(It=y.i(Et-1).x,Yt=y.i(Et-1).y,Xt=y.i(Et).x,te=y.i(Et).y,yt?(wt=this.Ld[ut.layer],this.K===180||this.K===0?(yt=Yt,yt>=ut.bounds.y&&yt<=ut.bounds.bottom&&(this.K===180?Xt>=ut.bounds.x:Xt<=ut.bounds.right)&&(gt=ut.centerX+(this.K===180?-wt:wt),yt=ut.bounds.x&&yt<=ut.bounds.right&&(this.K===270?te>=ut.bounds.y:te<=ut.bounds.bottom)&&(gt=ut.centerY+(this.K===270?-wt:wt),yt=ut.bounds.x?(gt=ut.bounds.x+ut.bounds.width,y.L(Et-2,gt,Yt),y.L(Et-1,gt+ge,Yt)):this.K===90&&te<=ut.bounds.bottom?(gt=ut.bounds.y,y.L(Et-2,It,gt),y.L(Et-1,It,gt-Vt)):this.K===270&&te>=ut.bounds.y?(gt=ut.bounds.y+ut.bounds.height,y.L(Et-2,It,gt),y.L(Et-1,It,gt+ge)):this.K===0&&Xt<=ut.bounds.right&&(gt=ut.bounds.x,y.L(Et-2,gt,Yt),y.L(Et-1,gt-Vt,Yt))):(Vt=Math.max(10,this.he[ut.layer]),ge=Math.max(10,this.Ld[ut.layer]),yt=0,this.K===180||this.K===0?((this.K===180?Xt<=ut.bounds.x:Xt>=ut.bounds.right)&&(yt=(this.K===0?ge:-Vt)/2),y.m(Et++,Xt+yt,Yt)):((this.K===270?te<=ut.bounds.y:te>=ut.bounds.bottom)&&(yt=(this.K===90?ge:-Vt)/2),y.m(Et++,It,te+yt)),y.m(Et++,Xt,te)))}else{for(;ut!==null&&ut!==gt;){for(Vt=zt=null,ut=ut.destinationEdges.iterator;ut.next()&&(It=ut.value,It.link!==x.link||(zt=It.toVertex,Vt=It.fromVertex,Vt.node!==null&&(Vt=null),zt.node!==null)););if(zt===null)break;zt!==gt&&(It=y.i(Et-1).x,Yt=y.i(Et-1).y,Xt=zt.centerX,te=zt.centerY,yt?this.K===180||this.K===0?(Vt!==null?Vt.centerY:Yt)!==te&&(Vt=this.Ta[zt.layer]+this.Rf.x,Et===y.firstPickIndex+1&&(Vt=this.K===0?Math.max(Vt,It):Math.min(Vt,It)),y.m(Et++,Vt,Yt),y.m(Et++,Vt,te)):(Vt!==null?Vt.centerX:It)!==Xt&&(Vt=this.Ta[zt.layer]+this.Rf.y,Et===y.firstPickIndex+1&&(Vt=this.K===90?Math.max(Vt,Yt):Math.min(Vt,Yt)),y.m(Et++,It,Vt),y.m(Et++,Xt,Vt)):(Vt=Math.max(10,this.he[zt.layer]),ge=Math.max(10,this.Ld[zt.layer]),mt?this.K===180?(y.m(Et++,Xt+ge+wt,te),y.m(Et++,Math.max(Xt+ge-wt/2,Xt),te),y.m(Et++,Xt,te),y.m(Et++,Xt,te),y.m(Et++,Math.min(Xt-Vt+wt/2,Xt),te),y.m(Et++,Xt-Vt-wt,te)):this.K===90?(y.m(Et++,Xt,te-Vt-wt),y.m(Et++,Xt,Math.min(te-Vt+wt/2,te)),y.m(Et++,Xt,te),y.m(Et++,Xt,te),y.m(Et++,Xt,Math.max(te+ge-wt/2,te)),y.m(Et++,Xt,te+ge+wt)):this.K===270?(y.m(Et++,Xt,te+ge+wt),y.m(Et++,Xt,Math.max(te+ge-wt/2,te)),y.m(Et++,Xt,te),y.m(Et++,Xt,te),y.m(Et++,Xt,Math.min(te-Vt+wt/2,te)),y.m(Et++,Xt,te-Vt-wt)):(y.m(Et++,Xt-Vt-wt,te),y.m(Et++,Math.min(Xt-Vt+wt/2,Xt),te),y.m(Et++,Xt,te),y.m(Et++,Xt,te),y.m(Et++,Math.max(Xt+ge-wt/2,Xt),te),y.m(Et++,Xt+ge+wt,te)):this.K===180?(y.m(Et++,Xt+ge,te),y.m(Et++,Xt-Vt,te)):this.K===90?(y.m(Et++,Xt,te-Vt),y.m(Et++,Xt,te+ge)):this.K===270?(y.m(Et++,Xt,te+ge),y.m(Et++,Xt,te-Vt)):(y.m(Et++,Xt-Vt,te),y.m(Et++,Xt+ge,te)))),ut=zt}yt&&(It=y.i(Et-1).x,Yt=y.i(Et-1).y,Xt=y.i(Et).x,te=y.i(Et).y,this.K===180||this.K===0?Yt!==te&&(Vt=this.K===0?Math.min(Math.max((Xt+It)/2,this.Ta[gt.layer]+this.Rf.x),Xt):Math.max(Math.min((Xt+It)/2,this.Ta[gt.layer]+this.Rf.x),Xt),y.m(Et++,Vt,Yt),y.m(Et++,Vt,te)):It!==Xt&&(Vt=this.K===90?Math.min(Math.max((te+Yt)/2,this.Ta[gt.layer]+this.Rf.y),te):Math.max(Math.min((te+Yt)/2,this.Ta[gt.layer]+this.Rf.y),te),y.m(Et++,It,Vt),y.m(Et++,Xt,Vt)))}E!==null&&mt&&4<=y.pointsCount&&(tt!==null&&(tt=at===We?y.getLinkPointFromPoint(b,tt,tt.ga(ri),y.i(3),!0):y.i(0),at===We&&(at=y.i(2),E=y.i(3),this.direction===90||this.direction===270?(y.L(1,(tt.x+at.x)/2,at.y),y.L(2,E.x,(at.y+E.y)/2)):(y.L(1,at.x,(tt.y+at.y)/2),y.L(2,(at.x+E.x)/2,E.y))),tt.w()||tt.set(b.actualBounds.center),y.L(0,tt.x,tt.y)),ot!==null&&(b=rt===We?y.getLinkPointFromPoint(z,ot,ot.ga(ri),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),rt===We&&(ot=y.i(y.pointsCount-3),rt=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(b.x+ot.x)/2,ot.y),y.L(y.pointsCount-2,rt.x,(ot.y+rt.y)/2)):(y.L(y.pointsCount-2,ot.x,(b.y+ot.y)/2),y.L(y.pointsCount-3,(ot.x+rt.x)/2,rt.y))),b.w()||b.set(z.actualBounds.center),y.L(y.pointsCount-1,b.x,b.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},mo.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new on,y=this.network.edges.iterator;y.next();){var x=y.value.link;x!==null&&x.isOrthogonal&&!a.contains(x)&&a.add(x)}if(0z.y&&(ut=at.y>z.y?0:tt.xz.x&&(ut=at.x>z.x?0:tt.yy.layer?1:a.rdy.rd?1:a.Icy.Ic?1:0:0},Ct.Ux=function(a,y){return a instanceof Dc&&y instanceof Dc&&a!==y?a.firsty.first||a.jy.j||a.rdy.rd?1:a.Icy.Ic?1:0:0},Ct.Js=function(a,y){return a instanceof Dc&&y instanceof Dc&&a!==y?a.jcy.jc||a.jy.j||a.rdy.rd?1:a.Icy.Ic?1:0:0},Ct.B=function(a,y){return a-=y,-1a},Ct.zi=function(a,y,x,E){var b=a.length,z=E-x;if(!(1>=z))if((0>x||x>=b-1)&&oe("not in range 0 <= from < length: "+x),z===2)E=a[x],b=a[x+1],0=b)a.sort(y);else for(x=a.slice(0,E),x.sort(y),y=0;y=b)for(E=a.slice(x),E.sort(y),y=x;y=a.He.length){for(var E=[],b=0;ba&&(this.bg=a,this.C())}},alignOption:{get:function(){return this.ve},set:function(a){this.ve!==a&&0<=a&&16>a&&(this.ve=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(a){this.Cn!==a&&0<=a&&(this.Cn=a,this.C())}},maxLayer:{get:function(){return this.Ia}},maxIndex:{get:function(){return this.Iq}},maxColumn:{get:function(){return this.Ra}},minIndexLayer:{get:function(){return this.Hn}},maxIndexLayer:{get:function(){return this.Md}}});var b0=new Ye(mo,"CycleDepthFirst",0),Sy=new Ye(mo,"CycleGreedy",1),Jp=new Ye(mo,"CycleFromLayers",2),T0=new Ye(mo,"LayerOptimalLinkLength",0),xy=new Ye(mo,"LayerLongestPathSink",1),wy=new Ye(mo,"LayerLongestPathSource",2),D0=new Ye(mo,"InitDepthFirstOut",0),Py=new Ye(mo,"InitDepthFirstIn",1),Cy=new Ye(mo,"InitNaive",2),My=new Ye(mo,"AggressiveNone",0),F0=new Ye(mo,"AggressiveLess",1),Ly=new Ye(mo,"AggressiveMore",2),Kx=8;mo.className="LayeredDigraphLayout",mo.CycleDepthFirst=b0,mo.CycleGreedy=Sy,mo.CycleFromLayers=Jp,mo.LayerOptimalLinkLength=T0,mo.LayerLongestPathSink=xy,mo.LayerLongestPathSource=wy,mo.InitDepthFirstOut=D0,mo.InitDepthFirstIn=Py,mo.InitNaive=Cy,mo.AggressiveNone=My,mo.AggressiveLess=F0,mo.AggressiveMore=Ly,mo.PackNone=0,mo.PackExpand=1,mo.PackStraighten=2,mo.PackMedian=4,mo.PackAll=15,mo.AlignNone=0,mo.AlignUpperLeft=1,mo.AlignUpperRight=2,mo.AlignLowerLeft=4,mo.AlignLowerRight=8,mo.AlignAll=15;function Dc(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}Dc.className="SegInfo";function Kf(a){Ho.call(this,a)}pe(Kf,Ho),Kf.prototype.createVertex=function(){return new Pu(this)},Kf.prototype.createEdge=function(){return new _p(this)},Kf.className="LayeredDigraphNetwork";function Pu(a){ks.call(this,a),this.$n=this.bo=this.ao=this.co=null,this.Za=this.Ag=this.Ig=-1,this.u=NaN,this.F=null,this.valid=!1,this.finish=this.Ll=NaN,this.Dj=0,this.dv=this.ev=null}pe(Pu,ks);function ix(a,y){return a.index-y.index}function B0(a,y){if(!a.$n){for(var x=[],E=mr(a.destinationEdgesArrayAccess),b=E.next();!b.done;b=E.next())b=b.value,b.valid&&x.push(b);a.$n=x}for(a=mr(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;oe("Unable to find destination edge to given vertex")}function Ey(a){if(!a.co){for(var y=[],x=mr(a.sourceEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.fromVertex);y.sort(ix),a.co=y}return a.co}function Qx(a){if(!a.ao){for(var y=[],x=mr(a.destinationEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.toVertex);y.sort(ix),a.ao=y}return a.ao}Pu.prototype.Cl=function(a){ks.prototype.Cl.call(this,a),this.bo=this.co=null},Pu.prototype.Kl=function(a){ks.prototype.Kl.call(this,a),this.bo=this.co=null},Pu.prototype.zl=function(a){ks.prototype.zl.call(this,a),this.$n=this.ao=null},Pu.prototype.Jl=function(a){ks.prototype.Jl.call(this,a),this.$n=this.ao=null},ve.Object.defineProperties(Pu.prototype,{layer:{get:function(){return this.Ig},set:function(a){this.Ig!==a&&(this.Ig=a)}},column:{get:function(){return this.Ag},set:function(a){this.Ag!==a&&(this.Ag=a)}},index:{get:function(){return this.Za},set:function(a){this.Za!==a&&(this.Za=a)}},component:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},near:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),Pu.prototype.deleteDestinationEdge=Pu.prototype.Jl,Pu.prototype.addDestinationEdge=Pu.prototype.zl,Pu.prototype.deleteSourceEdge=Pu.prototype.Kl,Pu.prototype.addSourceEdge=Pu.prototype.Cl,Pu.className="LayeredDigraphVertex";function _p(a){Gl.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}pe(_p,Gl),ve.Object.defineProperties(_p.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},valid:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},rev:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},forest:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},portFromPos:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},portToPos:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},portFromColOffset:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},portToColOffset:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),_p.className="LayeredDigraphEdge";function Di(a){lr.call(this),this.Ub=new en,this.Wn=R0,this.ud=td,this.vo=G0,this.Bq=jy,this.$v=[],this.td=!0,this.Rb=H0,this.$d=new un(10,10).freeze();var y=new of(this);this.W=new Fu(y),this.Y=new Fu(y),this.ru=[],a&&Object.assign(this,a)}pe(Di,lr),Di.prototype.cloneProtected=function(a){lr.prototype.cloneProtected.call(this,a),a.Wn=this.Wn,a.vo=this.vo,a.Bq=this.Bq,a.td=this.td,a.Rb=this.Rb,a.$d.assign(this.$d),a.W.copyInheritedPropertiesFrom(this.W),a.Y.copyInheritedPropertiesFrom(this.Y)},Di.prototype.qb=function(a){a.classType===Di?a.name.indexOf("Alignment")===0?this.alignment=a:a.name.indexOf("Arrangement")===0?this.arrangement=a:a.name.indexOf("Compaction")===0?this.compaction=a:a.name.indexOf("Path")===0?this.path=a:a.name.indexOf("Sorting")===0?this.sorting=a:a.name.indexOf("Style")===0?this.treeStyle=a:oe("Unknown enum value: "+a):lr.prototype.qb.call(this,a)},Di.prototype.createNetwork=function(){return new of(this)},Di.prototype.makeNetwork=function(a){function y(E){if(E instanceof hn)return!E.isLinkLabel&&E.category!=="Comment";if(E instanceof Je){var b=E.fromNode;return b===null||b.isLinkLabel||b.category==="Comment"?!1:(E=E.toNode,!(E===null||E.isLinkLabel||E.category==="Comment"))}return!1}var x=this.createNetwork();return a instanceof ce?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof di?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},Di.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==W0&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof ce&&(y=a),this.path===R0&&y!==null?this.ud=y.isTreePathToChildren?td:ef:this.ud=this.path===R0?td:this.path,0y.level)return!1;a.removeChild(x.parent,x)}return!0}Di.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,E=0,b=0;bb?hx(this,a,tt,si,It,Yt):dx(this,a,tt,si,It,Yt),si=Yt.x,It=Yt.width,Yt=Yt.height;break;case $d:for(Xt=0;Xtgt&&(CnXs&&(tf(a,-Xs,0,hi,to-1),j0(Xt,-Xs,0),j0(te,-Xs,0),Xs=0)}jo.S.h(Xs,vn),It=Math.max(It,ge),Yt=Math.max(Yt,Vt+(Xe===0?0:wt)+Ys.height),Cn=ge}else 0gt&&(vnXs&&(tf(a,0,-Xs,hi,to-1),j0(Xt,0,-Xs),j0(te,0,-Xs),Xs=0)),jo.S.h(Cn,Xs),Yt=Math.max(Yt,ln),It=Math.max(It,Vt+(Xe===0?0:wt)+Ys.width),vn=ln;Oe++}switch(0at&&(at=0),135Et&&(Et=0),rt===Cd&&(ot+=mt/2+a.focus.y),tt+=E+x):y?(a.comments===null?E>It&&(It=Ty(rt,E-It,0),tt=It.x,ot=It.y,It=E,at=0):It=Ny(a,It,at),0>at&&(tt-=at,at=0),135Yt&&(Yt=Ty(rt,0,zt-Yt),tt=Yt.x,ot=Yt.y,Yt=zt,Et=0):Yt=by(a,Yt,Et),0>Et&&(ot-=Et,Et=0),tt+=E+x),0b[0].x?b[2].assign(b[1]):b[1].assign(b[2])),b[3].yb[0].x?b[3].assign(b[2]):b[2].assign(b[3])),Xe[0].h(at+E,0),Xe[1].h(Xe[0].x,zt),Xe[2].yb[0].y?b[2].assign(b[1]):b[1].assign(b[2])),b[3].xb[0].y?b[3].assign(b[2]):b[2].assign(b[3])),Xe[0].h(0,Et+zt),Xe[1].h(E,Xe[0].y),Xe[2].xE?hx(a,y,b,Oe,Vt,Xt):dx(a,y,b,Oe,Vt,Xt),Oe=Xt.x,Vt=Xt.width,Xt=Xt.height;break;case $d:for(mt=0;mtmt&&(gemt&&(lngt&&(gt=0),135It&&(It=0)),y.la.h(gt,It),y.Da.h(Vt,Xt)}}Di.prototype.customAlignment=function(a,y,x,E,b){return[y,x,E,b]};function hx(a,y,x,E,b,z){var tt=x.length;if(tt===0)return new ke(E,0,b,z);if(tt===1)return y=x[0],b=y.Da.width,z=y.Da.height,new ke(E,0,b,z);for(var ot=y.nodeSpacing,rt=y.rowSpacing,at=Ju(y)===90,ut=0,gt=0,mt=0,yt=0;ytat&&(b-=at),z=Math.max(z,Math.max(yt,mt)+a+tt.height),0>x.S.x&&(E=I0(y,x.S.x,!1,E,ot))):(x.S.h(b+a,E+ot/2-x.focus.y-x.la.y),b=Math.max(b,Math.max(wt,gt)+a+tt.width),mt=E+ot/2-x.focus.y-x.la.y,z=Math.max(z,mt+tt.height),0>mt&&(z-=mt),0>x.S.y&&(E=I0(y,x.S.y,!0,E,ot)))),new ke(E,0,b,z)}function dx(a,y,x,E,b,z){var tt=x.length;if(tt===0)return new ke(E,0,b,z);if(tt===1)return x=x[0],b=x.Da.width,z=x.Da.height,new ke(E,0,b,z);for(var ot=y.nodeSpacing,rt=y.rowSpacing,at=Ju(y)===270,ut=0,gt=0,mt=0,yt=0;ytgt&&(b-=gt),z=Math.max(z,Math.abs(Math.min(yt,mt))+a+ut.height),0>rt.S.x&&(E=I0(y,rt.S.x,!1,E,ot))):(rt.S.h(-b-ut.width-a,E+ot/2-rt.focus.y-rt.la.y),b=Math.max(b,Math.abs(Math.min(wt,gt))+a+ut.width),mt=E+ot/2-rt.focus.y-rt.la.y,z=Math.max(z,mt+ut.height),0>mt&&(z-=mt),0>rt.S.y&&(E=I0(y,rt.S.y,!0,E,ot)))),y=0;yy&&(y=x+a.width),0>x&&(y-=x),y;case ed:return a.width>y?a.width:y;case nd:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case qd:case id:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case $d:return a.width-a.focus.x+a.nodeSpacing/2+y;case Cd:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function by(a,y,x){switch(a.alignment){case nf:case Xf:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case ed:return a.height>y?a.height:y;case nd:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case qd:case id:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case $d:return a.height-a.focus.y+a.nodeSpacing/2+y;case Cd:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Ty(a,y,x){switch(a){case Xf:y/=2,x/=2;break;case nf:y/=2,x/=2;break;case ed:x=y=0;break;case nd:break;default:oe("Unhandled alignment value "+a.toString())}return new Wt(y,x)}function Sg(a,y,x,E,b,z){y=Ty(y,x,E),tf(a,y.x,y.y,b,z)}function tf(a,y,x,E,b){if(y!==0||x!==0)for(a=a.children;E<=b;E++){var z=a[E].S;z.x+=y,z.y+=x}}function O0(a,y,x,E){var b=y.parent;switch(a.ud){case td:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===b&&y.relativePoint.h(x,E);break;case ef:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===b&&y.relativePoint.h(x,E);break;default:oe("Unhandled path value "+a.ud.toString())}}function j0(a,y,x){for(var E=0;Egt.length||yt===null||2>yt.length))for(b=x=0;xat&&z.yz.y&&aty.length||x===null||2>x.length)E=null;else{for(ut=El(a,y.length+x.length),E=z=rt=0;zrt;)at=x[z++],ut[E++].h(at.x+b,at.y);for(x=El(a,E),rt=0;rtgt.length||z===null||2>z.length)b=null;else{for(ut=El(a,gt.length+z.length),b=at=x=0;xz;)rt=gt[x++],ut[b++].h(rt.x,rt.y);for(z=El(a,b),x=0;xgt.length||yt===null||2>yt.length))for(b=x=0;xrt&&z.xz.x&&rty.length||x===null||2>x.length)E=null;else{for(ut=El(a,y.length+x.length),E=z=rt=0;zrt;)at=x[z++],ut[E++].h(at.x,at.y+b);for(x=El(a,E),rt=0;rtgt.length||z===null||2>z.length)b=null;else{for(ut=El(a,gt.length+z.length),b=at=x=0;xz;)rt=gt[x++],ut[b++].h(rt.x,rt.y);for(z=El(a,b),x=0;x=a?0:135>=a?90:225>=a?180:315>=a?270:0}Di.prototype.computeLayerSpacing=function(a){var y=Ju(a);y=y===90||y===270;var x=a.layerSpacing;if(0=a&&(this.W.nodeIndentPastParent=a,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(a){this.W.nodeSpacing!==a&&(this.W.nodeSpacing=a,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(a){this.W.layerSpacing!==a&&(this.W.layerSpacing=a,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(a){this.W.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.W.layerSpacingParentOverlap=a,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(a){this.W.compaction===a||a!==z0&&a!==nm||(this.W.compaction=a,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(a){this.W.breadthLimit!==a&&0<=a&&(this.W.breadthLimit=a,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(a){this.W.rowSpacing!==a&&(this.W.rowSpacing=a,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(a){this.W.rowIndent!==a&&0<=a&&(this.W.rowIndent=a,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(a){this.W.commentSpacing!==a&&(this.W.commentSpacing=a,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(a){this.W.commentMargin!==a&&(this.W.commentMargin=a,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(a){this.W.setsPortSpot!==a&&(this.W.setsPortSpot=a,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(a){this.W.portSpot.D(a)||(this.W.portSpot=a,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(a){this.W.setsChildPortSpot!==a&&(this.W.setsChildPortSpot=a,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(a){this.W.childPortSpot.D(a)||(this.W.childPortSpot=a,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(a){this.Y.sorting===a||a!==Qf&&a!==$p&&a!==tm&&!em||(this.Y.sorting=a,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(a){this.Y.comparer!==a&&(this.Y.comparer=a,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(a){this.Y.angle===a||a!==0&&a!==90&&a!==180&&a!==270||(this.Y.angle=a,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(a){this.Y.alignment!==a&&(this.Y.alignment=a,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(a){this.Y.nodeIndent!==a&&0<=a&&(this.Y.nodeIndent=a,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(a){this.Y.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.Y.nodeIndentPastParent=a,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(a){this.Y.nodeSpacing!==a&&(this.Y.nodeSpacing=a,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(a){this.Y.layerSpacing!==a&&(this.Y.layerSpacing=a,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(a){this.Y.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.Y.layerSpacingParentOverlap=a,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(a){this.Y.compaction===a||a!==z0&&a!==nm||(this.Y.compaction=a,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(a){this.Y.breadthLimit!==a&&0<=a&&(this.Y.breadthLimit=a,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(a){this.Y.rowSpacing!==a&&(this.Y.rowSpacing=a,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(a){this.Y.rowIndent!==a&&0<=a&&(this.Y.rowIndent=a,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(a){this.Y.commentSpacing!==a&&(this.Y.commentSpacing=a,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(a){this.Y.commentMargin!==a&&(this.Y.commentMargin=a,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(a){this.Y.setsPortSpot!==a&&(this.Y.setsPortSpot=a,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(a){this.Y.portSpot.D(a)||(this.Y.portSpot=a,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(a){this.Y.setsChildPortSpot!==a&&(this.Y.setsChildPortSpot=a,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(a){this.Y.childPortSpot.D(a)||(this.Y.childPortSpot=a,this.C())}}});var R0=new Ye(Di,"PathDefault",-1),td=new Ye(Di,"PathDestination",0),ef=new Ye(Di,"PathSource",1),Qf=new Ye(Di,"SortingForwards",10),$p=new Ye(Di,"SortingReverse",11),tm=new Ye(Di,"SortingAscending",12),em=new Ye(Di,"SortingDescending",13),Xf=new Ye(Di,"AlignmentCenterSubtrees",20),nf=new Ye(Di,"AlignmentCenterChildren",21),ed=new Ye(Di,"AlignmentStart",22),nd=new Ye(Di,"AlignmentEnd",23),qd=new Ye(Di,"AlignmentBus",24),id=new Ye(Di,"AlignmentBusBranching",25),$d=new Ye(Di,"AlignmentTopLeftBus",26),Cd=new Ye(Di,"AlignmentBottomRightBus",27),z0=new Ye(Di,"CompactionNone",30),nm=new Ye(Di,"CompactionBlock",31),G0=new Ye(Di,"StyleLayered",40),Fy=new Ye(Di,"StyleLastParents",41),By=new Ye(Di,"StyleAlternating",42),Iy=new Ye(Di,"StyleRootOnly",43),H0=new Ye(Di,"ArrangementVertical",50),Oy=new Ye(Di,"ArrangementHorizontal",51),W0=new Ye(Di,"ArrangementFixedRoots",52),jy=new Ye(Di,"LayerIndividual",60),Ry=new Ye(Di,"LayerSiblings",61),Y0=new Ye(Di,"LayerUniform",62);Di.className="TreeLayout",Di.PathDefault=R0,Di.PathDestination=td,Di.PathSource=ef,Di.SortingForwards=Qf,Di.SortingReverse=$p,Di.SortingAscending=tm,Di.SortingDescending=em,Di.AlignmentCenterSubtrees=Xf,Di.AlignmentCenterChildren=nf,Di.AlignmentStart=ed,Di.AlignmentEnd=nd,Di.AlignmentBus=qd,Di.AlignmentBusBranching=id,Di.AlignmentTopLeftBus=$d,Di.AlignmentBottomRightBus=Cd,Di.CompactionNone=z0,Di.CompactionBlock=nm,Di.StyleLayered=G0,Di.StyleLastParents=Fy,Di.StyleAlternating=By,Di.StyleRootOnly=Iy,Di.ArrangementVertical=H0,Di.ArrangementHorizontal=Oy,Di.ArrangementFixedRoots=W0,Di.LayerIndividual=jy,Di.LayerSiblings=Ry,Di.LayerUniform=Y0;function of(a){Ho.call(this,a)}pe(of,Ho),of.prototype.createVertex=function(){return new Fu(this)},of.prototype.createEdge=function(){return new Jf(this)},of.className="TreeNetwork";function Fu(a){ks.call(this,a),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new Wt(0,0),this.Da=new un(0,0),this.la=new Wt(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=Qf,this.hd=oy,this.Kb=0,this.Jb=nf,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=nm,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=so,this.wr=!0,this.Dp=so}pe(Fu,ks),Fu.prototype.copyInheritedPropertiesFrom=function(a){a!==null&&(this.nd=a.sorting,this.hd=a.comparer,this.Kb=a.angle,this.Jb=a.alignment,this.Uq=a.nodeIndent,this.Vq=a.nodeIndentPastParent,this.Wq=a.nodeSpacing,this.ie=a.layerSpacing,this.Aq=a.layerSpacingParentOverlap,this.Hp=a.compaction,this.Ap=a.breadthLimit,this.nr=a.rowSpacing,this.mr=a.rowIndent,this.Gp=a.commentSpacing,this.Fp=a.commentMargin,this.xr=a.setsPortSpot,this.dr=a.portSpot,this.wr=a.setsChildPortSpot,this.Dp=a.childPortSpot)},ve.Object.defineProperties(Fu.prototype,{initialized:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},parent:{get:function(){return this.hb},set:function(a){this.hb!==a&&(this.hb=a)}},children:{get:function(){return this.u},set:function(a){if(this.u!==a){if(a!==null)for(var y=a.length,x=0;xyt.y+x.rowIndent&&(z=Math.min(z,Math.max(gt.y,z-y.computeNodeIndent(x))))):x.alignment===ed?(z=E.top+b.y,b.y===0&>.yyt.x+x.rowIndent&&(z=Math.min(z,Math.max(gt.x,z-y.computeNodeIndent(x))))):x.alignment===ed?(z=E.left+b.x,b.x===0&>.xyt.y+x.rowIndent&&(z=Math.min(z,Math.max(gt.y,z-y.computeNodeIndent(x))))):x.alignment===ed?(z=E.top+b.y,b.y===0&>.yyt.x+x.rowIndent&&(z=Math.min(z,Math.max(gt.x,z-y.computeNodeIndent(x))))):x.alignment===ed?(z=E.left+b.x,b.x===0&>.x=0||Object.prototype.hasOwnProperty.call(Ie,et)&&(Tt[et]=Ie[et]);return Tt}function Ne(Ie,Ue){if(!(Ie instanceof Ue))throw new TypeError("Cannot call a class as a function")}function we(Ie,Ue){if(!Ie)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ue&&(typeof Ue=="object"||typeof Ue=="function")?Ue:Ie}function Le(Ie,Ue){if(typeof Ue!="function"&&Ue!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Ue);Ie.prototype=Object.create(Ue&&Ue.prototype,{constructor:{value:Ie,enumerable:!1,writable:!0,configurable:!0}}),Ue&&(Object.setPrototypeOf?Object.setPrototypeOf(Ie,Ue):Ie.__proto__=Ue)}var Pe=function(Ie){Le(Ue,Ie);function Ue(Tt){Ne(this,Ue);var et=we(this,(Ue.__proto__||Object.getPrototypeOf(Ue)).call(this,Tt));return et.scrollListener=et.scrollListener.bind(et),et.eventListenerOptions=et.eventListenerOptions.bind(et),et.mousewheelListener=et.mousewheelListener.bind(et),et}return St(Ue,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var et=this.getParentElement(this.scrollComponent);et.scrollTop=et.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var et=!1,nt={get passive(){et=!0}};try{document.addEventListener("test",null,nt),document.removeEventListener("test",null,nt)}catch(dt){}return et}},{key:"eventListenerOptions",value:function(){var et=this.props.useCapture;return this.isPassiveSupported()&&(et={useCapture:this.props.useCapture,passive:!0}),et}},{key:"setDefaultLoader",value:function(et){this.defaultLoader=et}},{key:"detachMousewheelListener",value:function(){var et=window;this.props.useWindow===!1&&(et=this.scrollComponent.parentNode),et.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var et=window;this.props.useWindow===!1&&(et=this.getParentElement(this.scrollComponent)),et.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),et.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(et){var nt=this.props.getScrollParent&&this.props.getScrollParent();return nt!=null?nt:et&&et.parentNode}},{key:"filterProps",value:function(et){return et}},{key:"attachScrollListener",value:function(){var et=this.getParentElement(this.scrollComponent);if(!(!this.props.hasMore||!et)){var nt=window;this.props.useWindow===!1&&(nt=et),nt.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),nt.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),nt.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(et){et.deltaY===1&&!this.isPassiveSupported()&&et.preventDefault()}},{key:"scrollListener",value:function(){var et=this.scrollComponent,nt=window,dt=this.getParentElement(et),lt=void 0;if(this.props.useWindow){var pt=document.documentElement||document.body.parentNode||document.body,vt=nt.pageYOffset!==void 0?nt.pageYOffset:pt.scrollTop;this.props.isReverse?lt=vt:lt=this.calculateOffset(et,vt)}else this.props.isReverse?lt=dt.scrollTop:lt=et.scrollHeight-dt.scrollTop-dt.clientHeight;lt=a.count)a.count===1&&(a=a.first(),a.centerX=0,a.centerY=0);else{var y=new on;y.addAll(a.iterator),a=new on;var x=new on,E=this.sort(y),b,z,tt=this.Jp,ot=this.arrangement,rt=this.nodeDiameterFormula,at=this.radius;(!isFinite(at)||0>=at)&&(at=NaN);var ut=this.aspectRatio;(!isFinite(ut)||0>=ut)&&(ut=1);var gt=this.startAngle;isFinite(gt)||(gt=0);var mt=this.sweepAngle;if((!isFinite(mt)||360mt)&&(mt=360),y=this.spacing,isFinite(y)||(y=NaN),ot===Xu&&rt===qg?ot=Qu:ot===Xu&&rt!==qg&&(ot=this.arrangement),(this.direction===yg||this.direction===Yf)&&this.sorting!==Uf){for(rt=0;!(rt>=E.length)&&(a.add(E.M(rt)),!(rt+1>=E.length));rt+=2)x.add(E.M(rt+1));this.direction===yg?(this.arrangement===Xu&&a.reverse(),E=new on,E.addAll(a),E.addAll(x)):(this.arrangement===Xu&&x.reverse(),E=new on,E.addAll(x),E.addAll(a))}rt=E.length;for(var yt=z=b=0;ytmt&&(yt===0||yt===E.length-1)&&(Et/=2),b+=Et,z++}if(isNaN(at)||ot===Xu){if(isNaN(y)&&(y=6),ot!==Qu&&ot!==Xu){for(z=-1/0,tt=0;ttat?(at=b,z=at*ut):tt=yt/(360<=mt?rt:rt-1)}if(this.kw=ot,this.lc=at,this.Zm=ut,this.lw=gt,this.Wp=mt,this.Ti=y,this.me=z,this.Jp=tt,y=E,E=this.kw,ot=this.lc,at=this.lw,ut=this.Wp,gt=this.Ti,mt=this.me,rt=this.Jp,this.direction!==yg&&this.direction!==Yf||E!==Xu)if(this.direction===yg||this.direction===Yf){switch(tt=0,E){case kc:tt=180*y0(this,ot,mt,at,rt)/Math.PI;break;case Qu:rt=y=0,tt=a.first(),tt!==null&&(y=Nc(tt,Math.PI/2)),tt=x.first(),tt!==null&&(rt=Nc(tt,Math.PI/2)),tt=180*y0(this,ot,mt,at,gt+(y+rt)/2)/Math.PI;break;case _d:tt=ut/y.length}if(this.direction===yg){switch(E){case kc:Up(this,a,at,Ac);break;case Qu:Yp(this,a,at,Ac);break;case _d:Wp(this,a,ut/2,at,Ac)}switch(E){case kc:Up(this,x,at+tt,hl);break;case Qu:Yp(this,x,at+tt,hl);break;case _d:Wp(this,x,ut/2,at+tt,hl)}}else{switch(E){case kc:Up(this,x,at,Ac);break;case Qu:Yp(this,x,at,Ac);break;case _d:Wp(this,x,ut/2,at,Ac)}switch(E){case kc:Up(this,a,at+tt,hl);break;case Qu:Yp(this,a,at+tt,hl);break;case _d:Wp(this,a,ut/2,at+tt,hl)}}}else switch(E){case kc:Up(this,y,at,this.direction);break;case Qu:Yp(this,y,at,this.direction);break;case _d:Wp(this,y,ut,at,this.direction);break;case Xu:DS(this,y,ut,at,this.direction)}else DS(this,y,ut,at-ut/2,hl)}this.updateParts(),this.network=null,this.isValidLayout=!0};function Wp(a,y,x,E,b){var z=a.Wp,tt=a.lc;a=a.me,E=E*Math.PI/180,x=x*Math.PI/180;for(var ot=y.length,rt=0;rtx){for(z=E+(b===hl?z:-z);0>z;)z+=360;z%=360,180=ut.length-1));gt++)IS(a,rt,at,ut,gt,b,z)||OS(a,rt,at,ut,gt,b,z),rt=z.x,at=z.y;if(Wt.free(z),a.mj++,!(23Math.abs(yt)?Math.abs(rt-z)<(ut[0].width+ut[ut.length-1].width)/2&&(tt=0):tt=0Math.abs(mt)?0:mt,rt=Math.abs(z)>Math.abs(gt)?0gt:0a.mj?a.lc-tt/(2*Math.PI):5>ut.length&&10=gt.length-1));mt++)IS(a,rt,at,gt,mt,b,ut)||OS(a,rt,at,gt,mt,b,ut),rt=ut.x,at=ut.y;if(Wt.free(ut),a.mj++,!(23a.mj?a.lc-z/(2*Math.PI):a.lc-(0ot){if(z=y-a,z<-ot)return tt.x=z,tt.y=at,!1;ut=!0}}else if(z=y-a,z<-ot){if(z=y+a,z>ot)return tt.x=z,tt.y=at,!1;ut=!0}return at=Math.sqrt(1-Math.min(1,z*z/(ot*ot)))*rt,0>x!==ut&&(at=-at),Math.abs(x-at)>(E[b].height+E[b+1].height)/2?(tt.x=z,tt.y=at,!1):(tt.x=z,tt.y=at,!0)}function OS(a,y,x,E,b,z,tt){var ot=a.lc,rt=a.me,at=0;if(a=(E[b].height+E[b+1].height)/2+a.Ti,E=!1,0<=y!=(z===hl)){if(z=x-a,z<-rt){if(z=x+a,z>rt){tt.x=at,tt.y=z;return}E=!0}}else if(z=x+a,z>rt){if(z=x-a,z<-rt){tt.x=at,tt.y=z;return}E=!0}at=Math.sqrt(1-Math.min(1,z*z/(rt*rt)))*ot,0>y!==E&&(at=-at),tt.x=at,tt.y=z}yr.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},yr.prototype.commitNodes=function(){var a=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,y=a?this.group.location.copy():null,x=this.actualCenter;a?x=new Wt(0,0):(x.x=this.arrangementOrigin.x+this.lc,x.y=this.arrangementOrigin.y+this.me);for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;b.x+=x.x,b.y+=x.y,b.commit()}a&&(this.group.Va(),a=this.group.position.copy(),x=this.group.location.copy(),y=y.re(x.re(a)),this.group.move(y),this.Zv=y.re(a))},yr.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function gy(a,y,x,E,b){var z=a.ty;if(.001>Math.abs(a.Zm-1))return E!==void 0&&b!==void 0?b*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var tt=0,ot=E!==void 0&&b!==void 0?b/(z+1):Math.PI/(2*(z+1)),rt=0,at=0;at<=z;at++){E!==void 0&&b!==void 0?rt=E+at*b/z:rt=at*Math.PI/(2*z);var ut=Math.sin(rt);tt+=Math.sqrt(1-a*a*ut*ut)*ot}return E!==void 0&&b!==void 0?(y>x?y:x)*tt:4*(y>x?y:x)*tt}function v0(a,y,x,E,b){return y/(E!==void 0&&b!==void 0?gy(a,1,x,E,b):gy(a,1,x))}function y0(a,y,x,E,b){if(.001>Math.abs(a.Zm-1))return b/y;var z=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,tt=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(E+=Math.PI/2);for(var ot=0;;ot++){var rt=Math.sin(E+ot*a);if(tt+=(y>x?y:x)*Math.sqrt(1-z*z*rt*rt)*a,tt>=b)return ot*a}}yr.prototype.sort=function(a){switch(this.sorting){case S0:break;case x0:a.reverse();break;case w0:a.sort(this.comparer);break;case P0:a.sort(this.comparer),a.reverse();break;case Uf:return this.ak(Fx(a));default:oe("Invalid sorting type.")}return a};function Fx(a){for(var y=[],x=0;xb&&(b=ot,z=tt)}else for(tt=0;ttb&&(b=ot,z=tt);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),tt=z.sourceEdges;tt.next();)b=a.indexOf(tt.value.fromVertex),0>b||0<=y[b]&&y[b]++;for(z=z.destinationEdges;z.next();)b=a.indexOf(z.value.toVertex),0>b||0<=y[b]&&y[b]++}return x}yr.prototype.ak=function(a){for(var y=[],x=0;xy[x].indexOf(b)&&y[x].push(b);for(E=E.sourceEdges;E.next();)b=a.indexOf(E.value.fromVertex),b!==x&&0>y[x].indexOf(b)&&y[x].push(b)}for(z=[],x=0;xy[x[wt]].indexOf(x[wt===x.length-1?0:wt+1])&&yt.push(wt===x.length-1?0:wt+1);if(yt.length===0)for(wt=0;wtx.indexOf(ge)||tex.indexOf(ge)||te=Et?te+1:te)),It+=te=Et&&te++,Vt>=Et&&Vt++,te>Vt&&(Xt=Vt,Vt=te,te=Xt),Vt-te<(x.length+2)/2==(teyt||yt===ut||(wt=yt>ut?yt-ut:ut-yt,gt+=yttt-wt?1:-1);x.splice(0>gt?ut:ut+1,0,rt),E.splice(ot,1),ot--}else z=!1;if(z)break;x.push(E[0]),E.splice(0,1)}for(y=0;y=a?this.ul=a:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==Xu&&a!==Qu&&a!==kc&&a!==_d||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==hl&&a!==Ac&&a!==yg&&a!==Yf||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==S0&&a!==x0&&a!==w0&&!P0&&a!==Uf||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf!==a&&(this.tf=a,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(a){this.Nn===a||a!==C0&&a!==qg||(this.Nn=a,this.C())}},actualXRadius:{get:function(){return this.lc}},actualYRadius:{get:function(){return this.me}},actualSpacing:{get:function(){return this.Ti}},actualCenter:{get:function(){return this.Zv}}});var Qu=new Ye(yr,"ConstantSpacing",0),kc=new Ye(yr,"ConstantDistance",1),_d=new Ye(yr,"ConstantAngle",2),Xu=new Ye(yr,"Packed",3),hl=new Ye(yr,"Clockwise",4),Ac=new Ye(yr,"Counterclockwise",5),yg=new Ye(yr,"BidirectionalLeft",6),Yf=new Ye(yr,"BidirectionalRight",7),S0=new Ye(yr,"Forwards",8),x0=new Ye(yr,"Reverse",9),w0=new Ye(yr,"Ascending",10),P0=new Ye(yr,"Descending",11),Uf=new Ye(yr,"Optimized",12),C0=new Ye(yr,"Pythagorean",13),qg=new Ye(yr,"Circular",14);yr.className="CircularLayout",yr.ConstantSpacing=Qu,yr.ConstantDistance=kc,yr.ConstantAngle=_d,yr.Packed=Xu,yr.Clockwise=hl,yr.Counterclockwise=Ac,yr.BidirectionalLeft=yg,yr.BidirectionalRight=Yf,yr.Forwards=S0,yr.Reverse=x0,yr.Ascending=w0,yr.Descending=P0,yr.Optimized=Uf,yr.Pythagorean=C0,yr.Circular=qg;function Vp(){this.Pl=-1/0,this.tm=this.mk=null}Vp.prototype.compare=function(a,y){if(0this.Pl||Math.abs(a)a&&0ot?(b=mt.x+mt.width/2,z=mt.y+mt.height/2,at[0]=new Wt(mt.x+mt.width+E.width,mt.y),at[1]=new Wt(mt.x,mt.y+mt.height+E.height),ot=2):(rt=RS(at,ot,b,z,mt.width,mt.height,E),gt=at[rt],yt=new Wt(gt.x+mt.width+E.width,gt.y),mt=new Wt(gt.x,gt.y+mt.height+E.height),rt+1this.network.vertexes.count)return!1;for(var a=0,y=0,x=this.network.vertexes.first().bounds,E=this.network.vertexes.iterator;E.next();){if(E.value.bounds.Yc(x)&&(a++,2a.network.vertexes.count)return!1;for(a.ah=a.network.vertexes.Fa(),a=a.ah,a.sort(function(x,E){return x===null||E===null||x===E?0:E.Vd-x.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1=tt))){for(var at=ot=0,ut=rt.count-tt;utyt&&(yt=1),ot=_t.sqrt((ot+yt+at*at*4/(tt*tt))/yt),tt=(ot-1)*ut/2,ot=(ot-1)*gt/2,b.bounds=new ke(z-mt.x-tt,rt-mt.y-ot,ut+2*tt,gt+2*ot),b.focus=new Wt(mt.x+tt,mt.y+ot)}}return a.network=E,x}function Ox(a,y){for(var x=a.network.vertexes.iterator;x.next();){var E=x.value;if(E.network=y,E.We!==null){var b=E.We.M(E.sv);E.Vd=b.Rs;var z=b.Sv,tt=b.Tv;E.bounds=new ke(E.centerX-z,E.centerY-tt,b.Ss,b.Qs),E.focus=new Wt(z,tt),E.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function jx(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var E=y.centerX,b=y.centerY,z=y.width,tt=y.height;y.We!==null&&0=gt.Vd?rt++:(ot=!0,at++,tt+=Math.atan2(y.centerY-gt.centerY,y.centerX-gt.centerX))}if(rt!==0){for(0>1)+at)*(ot%2===0?1:-1),rt.centerX=E+ut*Math.cos(gt),rt.centerY=b+ut*Math.sin(gt),ot++}}}}function RS(a,y,x,E,b,z,tt){var ot=9e19,rt=-1,at=0;t:for(;atut.y&&a[mt].x-ut.xut.x&&a[mt].y-ut.yy+z?(x=E+b-tt,a=a-y-z,_t.sqrt(x*x+a*a)):a+xtt+ot?a>y+z?(x=E-tt-ot,a=a-y-z,_t.sqrt(x*x+a*a)):a+xy+z?a-(y+z):a+x=y.length)return!1;var x=y[0];x.forceX=0,x.forceY=0;for(var E=x.centerX,b=E,z=x=x.centerY,tt=1;ttz-x)?y.sort(function(Et,zt){return Et===null||zt===null||Et===zt?0:Et.centerX-zt.centerX}):y.sort(function(Et,zt){return Et===null||zt===null||Et===zt?0:Et.centerY-zt.centerY}),x=a.Zf;var at=E=ot=0;for(z=0;zx||at-rt>x){if(b)break}else if(ut-yt>x||yt-ut>x){if(!b)break}else{var wt=zS(tt,mt);1>wt?(E=a.randomNumberGenerator,E===null&&(a.randomNumberGenerator=E=new L0),wt=E.random(),ot=E.random(),rt>at?(E=Math.abs(mt.bounds.right-tt.bounds.x),E=(1+E)*wt):rtyt?(at=Math.abs(mt.bounds.bottom-tt.bounds.y),at=(1+at)*ot):rtgt?(gt=a.randomNumberGenerator,gt===null&&(a.randomNumberGenerator=gt=new L0),ot=gt.random(),gt=gt.random(),E=(E>rt?1:-1)*(1+(z.width>x.width?z.width:x.width))*ot,at=(tt>ut?1:-1)*(1+(z.height>x.height?z.height:x.height))*gt):(ot=ot.stiffness*(gt-ot.length),E=(rt-E)/gt*ot,at=(ut-tt)/gt*ot),x.forceX+=E,x.forceY+=at,z.forceX-=E,z.forceY-=at;for(b=E=0;ba.epsilonDistance*a.epsilonDistance}La.prototype.moveVertex=function(a){var y=a.forceX,x=a.forceY,E=this.moveLimit;return y<-E?y=-E:y>E&&(y=E),x<-E?x=-E:x>E&&(x=E),a.centerX+=y,a.centerY+=x,y*y+x*x},La.prototype.moveFixedVertex=function(){},La.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},La.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=so,y.toSpot=so)}},La.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=ke.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,ke.free(x)}x=ke.alloc();for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;(a!==0||y!==0)&&(x.assign(b.bounds),x.x+=a,x.y+=y,b.bounds=x),b.commit()}ke.free(x)},La.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},La.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},La.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},La.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},La.prototype.electricalFieldX=function(){return 0},La.prototype.electricalFieldY=function(){return 0},La.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},La.prototype.gravitationalFieldX=function(){return 0},La.prototype.gravitationalFieldY=function(){return 0},La.prototype.isFixed=function(a){return a.isFixed},ve.Object.defineProperties(La.prototype,{currentIteration:{get:function(){return this.An}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},arrangesToOrigin:{get:function(){return this.Bm},set:function(a){this.Bm!==a&&(this.Bm=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},maxIterations:{get:function(){return this.dl},set:function(a){this.dl!==a&&0<=a&&(this.dl=a,this.C())}},epsilonDistance:{get:function(){return this.$m},set:function(a){this.$m!==a&&0Et&&0Et&&0a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]tt)for(var ut=tt+1;utrt;ut--)gt=E[ut],gt.near===at&>.Dj===at.Dj||ot++;var mt;if(0<=x)for(rt=E[tt].sourceEdgesArrayAccess,at=0;atEt||gt===Et&&yt>wt)&&ot++,ztgt||Et===gt&&wt>yt)&&ot++}}}if(0>=x){for(rt=E[tt].destinationEdgesArrayAccess,at=0;atEt||gt===Et&&ut>zt)&&ot++,wtgt||Et===gt&&zt>ut)&&ot++)}for(z[tt*b+tt]=ot,rt=tt+1;rt=x){for(ot=E[tt].destinationEdgesArrayAccess,Vt=E[rt].destinationEdgesArrayAccess,at=0;at=x&&(rt=ot.sourceEdgesArrayAccess);var at=null;0<=x&&(at=ot.destinationEdgesArrayAccess);var ut=0,gt=0,mt=ot.near;if(mt!==null&&mt.layer===ot.layer&&(ut+=mt.column-1,gt++),rt!==null)for(mt=0;mt=x&&(rt=ot.sourceEdgesArrayAccess);var at=null;0<=x&&(at=ot.destinationEdgesArrayAccess);var ut=0,gt=[],mt=ot.near;if(mt!==null&&mt.layer===ot.layer&&(gt[ut]=mt.column-1,ut++),ot=void 0,rt!==null)for(mt=0;mt>1,z[tt]=ut&1?gt[at]:gt[at-1]+gt[at]>>1)}return Tc(a,y,E),z}function Xp(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var tt=y.destinationEdges;tt.next();){var ot=tt.value,rt=ot.toVertex,at=y.layer-rt.layer;ot=a.linkMinLength(ot),at===ot&&Xp(a,rt,x,E,b,z)}if(z)for(tt=y.sourceEdges;tt.next();)ot=tt.value,rt=ot.fromVertex,at=rt.layer-y.layer,ot=a.linkMinLength(ot),at===ot&&Xp(a,rt,x,E,b,z)}}function my(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var tt=y.destinationEdges;tt.next();)my(a,tt.value.toVertex,x,E,b,z);if(z)for(y=y.sourceEdges;y.next();)my(a,y.value.fromVertex,x,E,b,z)}}mo.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case Sy:a=this.network;var y=0,x=a.vertexes.count-1,E=[];E.length=x+1;for(var b=a.vertexes.iterator;b.next();)b.value.valid=!0;for(;zx(a)!==null;){for(b=US(a);b!==null;)E[x]=b,x--,b.valid=!1,b=US(a);for(b=VS(a);b!==null;)E[y]=b,y++,b.valid=!1,b=VS(a);b=null;for(var z=0,tt=this.network.vertexes.iterator;tt.next();){var ot=tt.value;if(ot.valid){for(var rt=0,at=ot.destinationEdges;at.next();)at.value.toVertex.valid&&rt++;at=0;for(var ut=ot.sourceEdges;ut.next();)ut.value.fromVertex.valid&&at++;(b===null||zy.toVertex.index&&(a.gm(y),y.rev=!0);break;case b0:for(E=this.network.vertexes.iterator;E.next();)a=E.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,E.reset();E.next();)y=E.value,y.sourceEdges.count===0&&vy(this,y);for(E.reset();E.next();)y=E.value,y.Ll===-1&&vy(this,y);for(a.reset();a.next();)E=a.value,E.forest||(y=E.fromVertex,x=y.finish,b=E.toVertex,z=b.finish,b.LlE){if(0>E)for(y.reset();y.next();)y.value.layer-=E;for(E=[],y.reset();y.next();)x=y.value,b=E[x.layer],b===void 0?E[x.layer]=[x]:b.push(x);for(x=y=0;xtt&&Xp(a,ot,0,-1,!0,!1)}for(Xp(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,E=1/0,ot=0,rt=null,tt=a.network.vertexes.iterator;tt.next();){var at=tt.value;if(at.component===1){var ut=0,gt=!1,mt=at.sourceEdgesArrayAccess;b=mt.length;for(var yt=0;ytz)&&!ut&&(ot=tt,z=at)}if(0>E){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer-=b);y.component=0}else ot.component=0}}}function JS(a,y,x){return a.K===90?x&&!y.rev||!x&&y.rev?270:90:a.K===180?x&&!y.rev||!x&&y.rev?0:180:a.K===270?x&&!y.rev||!x&&y.rev?90:270:x&&!y.rev||!x&&y.rev?180:0}mo.prototype.initializeIndices=function(){switch(this.Qk){default:case Cy:for(var a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;y.index=this.tc[x],this.tc[x]++}break;case D0:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&_S(this,x);break;case Py:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&qS(this,x)}};function _S(a,y){var x=y.layer;for(y.index=a.tc[x],a.tc[x]++,y=y.destinationEdgesArrayAccess,x=!0;x;){x=!1;for(var E=0;Ez.portFromColOffset&&(x=!0,y[E]=z,y[E+1]=b)}}for(x=0;xz.portToColOffset&&(E=!0,y[x]=z,y[x+1]=b)}for(x=0;x=tt;E--)z=Du(this,E,-1)||z;for(b=this.countCrossings(),b>=a?wu(this,y):(a=b,y=Cl(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Du(this,E,1)||z;for(b=this.countCrossings(),b>=a?wu(this,y):(a=b,y=Cl(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Du(this,E,1)||z;for(b>=a?wu(this,y):(a=b,y=Cl(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Du(this,E,-1)||z;for(b>=a?wu(this,y):(a=b,y=Cl(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Du(this,E,0)||z;for(b>=a?wu(this,y):(a=b,y=Cl(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Du(this,E,0)||z;b>=a?wu(this,y):(a=b,y=Cl(this))}break;default:case F0:for(x=this.Ia,tt=0,ot=a+1;(E=this.countCrossings())=tt;E--)z=Du(this,E,-1)||z;for(b=this.countCrossings(),b>=a?wu(this,y):(a=b,y=Cl(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Du(this,E,1)||z;for(b=this.countCrossings(),b>=a?wu(this,y):(a=b,y=Cl(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Du(this,E,1)||z;for(b>=a?wu(this,y):(a=b,y=Cl(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Du(this,E,-1)||z;for(b>=a?wu(this,y):(a=b,y=Cl(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Du(this,E,0)||z;for(b>=a?wu(this,y):(a=b,y=Cl(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Du(this,E,0)||z;b>=a?wu(this,y):(a=b,y=Cl(this))}}wu(this,y)};function k0(a,y,x){var E=bc(a,y),b=a.tc[y],z=YS(a,y,x),tt=py(a,y,x);for(x=0;xz+1&&(mt+=4*(Yt-z),yt+=4*(Yt-(z+1)))}for(Xt=E[z].destinationEdges.iterator,Xt.reset();Xt.next();)if(Yt=Xt.value,Vt=Yt.toVertex,Yt.valid&&Vt.layer===y){for(Yt=0;E[Yt]!==Vt;)Yt++;Yt===z+1&&(yt+=1)}for(Xt=E[z+1].sourceEdges.iterator,Xt.reset();Xt.next();)if(Yt=Xt.value,Vt=Yt.fromVertex,Yt.valid&&Vt.layer===y){for(Yt=0;E[Yt]!==Vt;)Yt++;Ytz+1&&(mt+=4*(Yt-(z+1)),yt+=4*(Yt-z))}for(Xt=E[z+1].destinationEdges.iterator,Xt.reset();Xt.next();)if(Yt=Xt.value,Vt=Yt.toVertex,Yt.valid&&Vt.layer===y){for(Yt=0;E[Yt]!==Vt;)Yt++;Yt===z&&(mt+=1)}Yt=Vt=0,Xt=tt[E[z].index];var te=ot[E[z].index],ge=tt[E[z+1].index],ln=ot[E[z+1].index];Xt!==-1&&(Vt+=Math.abs(Xt-wt),Yt+=Math.abs(Xt-It)),te!==-1&&(Vt+=Math.abs(te-wt),Yt+=Math.abs(te-It)),ge!==-1&&(Vt+=Math.abs(ge-Et),Yt+=Math.abs(ge-zt)),ln!==-1&&(Vt+=Math.abs(ln-Et),Yt+=Math.abs(ln-zt)),(yt>1)+8*E;this.Ra*=8}if(this.bg&2)for(x=!0;x;){for(x=!1,y=this.Md+1;y<=this.Ia;y++)x=Zf(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Zf(this,y,-1)||x;x=Zf(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)yy(this,y,1);for(y=this.Md-1;0<=y;y--)yy(this,y,-1);yy(this,this.Md,0)}if(a&&($S(this,-1),$S(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Zf(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Zf(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Zf(this,y,0)||x}}else Yx(this)};function Zf(a,y,x){for(var E=!1;Gx(a,y,x);)E=!0;return E}function Gx(a,y,x){var E,b=bc(a,y),z=a.tc[y],tt=py(a,y,-1);if(0x)for(E=0;EE-1||ut-b[E-1].column-1>gt+a.nodeMinColumnSpace(b[E-1],!1)?yt=ut-1:yt=ut,gt=E+1>=z||b[E+1].column-ut-1>mt+a.nodeMinColumnSpace(b[E+1],!0)?ut+1:ut;var wt=mt=0,Et=0;if(0>=x)for(var zt=b[E].sourceEdges.iterator;zt.next();){var It=zt.value,Yt=It.fromVertex;if(It.valid&&Yt.layer!==y){var Vt=fy(It),Xt=It.portFromColOffset;It=It.portToColOffset,Yt=Yt.column,mt+=(Math.abs(ut+It-(Yt+Xt))+1)*Vt,wt+=(Math.abs(yt+It-(Yt+Xt))+1)*Vt,Et+=(Math.abs(gt+It-(Yt+Xt))+1)*Vt}}if(0<=x)for(zt=b[E].destinationEdges.iterator;zt.next();)It=zt.value,Yt=It.toVertex,It.valid&&Yt.layer!==y&&(Vt=fy(It),Xt=It.portFromColOffset,It=It.portToColOffset,Yt=Yt.column,mt+=(Math.abs(ut+Xt-(Yt+It))+1)*Vt,wt+=(Math.abs(yt+Xt-(Yt+It))+1)*Vt,Et+=(Math.abs(gt+Xt-(Yt+It))+1)*Vt);It=Xt=Vt=0,zt=tt[b[E].index],Yt=ot[b[E].index],zt!==-1&&(Vt+=Math.abs(zt-ut),Xt+=Math.abs(zt-yt),It+=Math.abs(zt-gt)),Yt!==-1&&(Vt+=Math.abs(Yt-ut),Xt+=Math.abs(Yt-yt),It+=Math.abs(Yt-gt)),wt=tt[x]?ut=rt:at<=tt[x]&&(ut=at));ut!==ot&&(z=!0,E[x].column=ut)}Tc(a,y,E),a.normalize()}function Hx(a,y){for(var x=!0,E=a.network.vertexes.iterator;E.next();){var b=E.value,z=a.nodeMinColumnSpace(b,!0),tt=a.nodeMinColumnSpace(b,!1);if(b.column-z<=y&&b.column+tt>=y){x=!1;break}}if(a=!1,x)for(E.reset();E.next();)x=E.value,x.column>y&&(--x.column,a=!0);return a}function Wx(a,y){var x=y+1,E,b=[],z=[];for(E=0;E<=a.Ia;E++)b[E]=!1,z[E]=!1;for(var tt=a.network.vertexes.iterator;tt.next();){E=tt.value;var ot=E.column-a.nodeMinColumnSpace(E,!0),rt=E.column+a.nodeMinColumnSpace(E,!1);ot<=y&&rt>=y&&(b[E.layer]=!0),ot<=x&&rt>=x&&(z[E.layer]=!0)}for(ot=!0,x=!1,E=0;E<=a.Ia;E++)ot=ot&&!(b[E]&&z[E]);if(ot)for(tt.reset();tt.next();)a=tt.value,a.column>y&&(--a.column,x=!0);return x}function $S(a,y){for(var x=0;x<=a.Ra;x++)for(;Hx(a,x););for(a.normalize(),x=0;xz?wu(a,b):tty)for(x=a.Ra;0<=x;x--)for(b=Cl(a),z=E0(a),E=z+1;zz?wu(a,b):ttx)for(E.reset();E.next();)b=E.value,b.column+a.nodeMinColumnSpace(b,!1)>=y&&(b.component=a.le);for(a.le++,E.reset();E.next();)y=E.value,y.component===-1&&(my(a,y,a.le,-1,!0,!0),a.le++);var z;for(y=[],z=0;zx)for(tt=a.Ra;0x)for(E.reset();E.next();)x=E.value,b[x.component]&&(x.column+=1)}function Yx(a){for(var y=Ii(),x=a.fl.length,E=0;E<=x;E++)y[E]=[];for(E=a.network.vertexes.iterator;E.next();){var b=E.value;y[x-b.layer][b.index]=b}x=new en,Ux(y,x);var z=null,tt=null,ot=null,rt=null,at=(a.ve&1)!==0,ut=(a.ve&2)!==0,gt=(a.ve&4)!==0,mt=(a.ve&8)!==0;for(at&&(a.verticalAlignment(y,x,!0),z=A0(a,y,!0,!1)),y.reverse(),gt&&(a.verticalAlignment(y,x,!1),ot=A0(a,y,!1,!1)),E=mr(y),b=E.next();!b.done;b=E.next())b.value.reverse();mt&&(a.verticalAlignment(y,x,!1),rt=A0(a,y,!1,!0)),y.reverse(),ut&&(a.verticalAlignment(y,x,!0),tt=A0(a,y,!0,!0)),Fi(y),a.u(z,tt,ot,rt),a.network.vertexes.each(function(yt){var wt=Ii();at&&wt.push(z.get(yt)),ut&&wt.push(tt.get(yt)),gt&&wt.push(ot.get(yt)),mt&&wt.push(rt.get(yt)),wt.sort(function(zt,It){return zt-It});var Et=wt.length;Et=(wt[Math.floor((Et-1)/2)]+wt[Math.ceil((Et-1)/2)])/2,Fi(wt),yt.zc=Et})}function Ux(a,y){for(var x=a.length,E=1;Eut)&&y.add(gt);z++}b=ut}}}mo.prototype.verticalAlignment=function(a,y,x){Vx(a),a=mr(a);for(var E=a.next();!E.done;E=a.next()){var b=-1;E=mr(E.value);for(var z=E.next();!z.done;z=E.next()){z=z.value;var tt=x?Ey(z):Qx(z),ot=tt.length;if(0=y[x].length)&&(tt=y[x][0],tt.sd===tt)){tt.sd.shift===1/0&&(tt.sd.shift=0),tt=x,ot=0;do{for(z=y[tt][ot];z.align!==z.root;)z=z.align,tt++,0a&&oe("Could not determine previous vertex in layer"),y[x][a-1]}mo.prototype.u=function(a){for(var y=[],x=0;xtt;tt++)if(y[tt]){var ot=Zx(this,y[tt],E,b,tt);ottt;z={delta:z.delta},tt++)y[tt]&&(z.delta=tt===0||tt===2?E[x]-E[tt]:b[x]-b[tt],z.delta!==0&&y[tt].each(function(rt){return function(at){at.value+=rt.delta}}(z)));Fi(E),Fi(b)};function Zx(a,y,x,E,b){if(!y||y.count===0)return x[b]=0,E[b]=0,1/0;var z=1/0,tt=-1/0;return y.each(function(ot){var rt=ot.key;ot=ot.value,rt=a.K===90||a.K===270?rt.width:rt.height,ottt&&(tt=ot+rt)}),x[b]=z,E[b]=tt,tt-z}mo.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=N0(this,!0),y=N0(this,!1),x=this.network.edges.iterator;x.next();){var E=x.value.link;E!==null&&(E.fromSpot=a,E.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function N0(a,y){return a.K===270?y?Zr:oo:a.K===90?y?oo:Zr:a.K===180?y?_s:gs:y?gs:_s}mo.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var a=0;a<=this.Ia;a++)this.he[a]=0,this.Ld[a]=0,this.Kd[a]=0,this.Ta[a]=0;for(a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;this.he[x]=Math.max(this.he[x],this.nodeMinLayerSpace(y,!0)),this.Ld[x]=Math.max(this.Ld[x],this.nodeMinLayerSpace(y,!1))}y=0,x=this.ie;for(var E=0;E<=this.Ia;E++){var b=x;0>=this.he[E]+this.Ld[E]&&(b=0),0=gt.bounds.bottom?(gt=gt.bounds.y+gt.bounds.height,y.m(Et++,Xt,gt+ge),y.m(Et++,Xt,gt),y.m(Et++,Xt,gt-Vt)):(y.m(Et++,Xt,te+ge),y.m(Et++,Xt,te),y.m(Et++,Xt,te-Vt)):this.K===270?te<=gt.bounds.y?(gt=gt.bounds.y,y.m(Et++,Xt,gt-Vt),y.m(Et++,Xt,gt),y.m(Et++,Xt,gt+ge)):(y.m(Et++,Xt,te-Vt),y.m(Et++,Xt,te),y.m(Et++,Xt,te+ge)):this.K===0&&(Xt>=gt.bounds.right?(gt=gt.bounds.x+gt.bounds.width,y.m(Et++,gt+ge,te),y.m(Et++,gt,te),y.m(Et++,gt-Vt,te)):(y.m(Et++,Xt+ge,te),y.m(Et++,Xt,te),y.m(Et++,Xt-Vt,te)));else{y.m(Et++,It,Yt);var ln=0;this.K===180||this.K===0?((this.K===180?Xt>=gt.bounds.right:Xt<=gt.bounds.x)&&(ln=(this.K===0?-Vt:ge)/2),y.m(Et++,It+ln,te)):((this.K===270?te>=gt.bounds.bottom:te<=gt.bounds.y)&&(ln=(this.K===90?-Vt:ge)/2),y.m(Et++,Xt,Yt+ln)),y.m(Et++,Xt,te)}}else Vt=Math.max(10,this.he[zt.layer]),ge=Math.max(10,this.Ld[zt.layer]),mt?this.K===180?(y.m(Et++,Xt-Vt-wt,te),y.m(Et++,Math.min(Xt-Vt+wt/2,Xt),te),y.m(Et++,Xt,te),y.m(Et++,Xt,te),y.m(Et++,Math.max(Xt+ge-wt/2,Xt),te),y.m(Et++,Xt+ge+wt,te)):this.K===90?(y.m(Et++,Xt,te+ge+wt),y.m(Et++,Xt,Math.max(te+ge-wt/2,te)),y.m(Et++,Xt,te),y.m(Et++,Xt,te),y.m(Et++,Xt,Math.min(te-Vt+wt/2,te)),y.m(Et++,Xt,te-Vt-wt)):this.K===270?(y.m(Et++,Xt,te-Vt-wt),y.m(Et++,Xt,Math.min(te-Vt+wt/2,te)),y.m(Et++,Xt,te),y.m(Et++,Xt,te),y.m(Et++,Xt,Math.max(te+ge-wt/2,te)),y.m(Et++,Xt,te+ge+wt)):(y.m(Et++,Xt+ge+wt,te),y.m(Et++,Math.max(Xt+ge-wt/2,Xt),te),y.m(Et++,Xt,te),y.m(Et++,Xt,te),y.m(Et++,Math.min(Xt-Vt+wt/2,Xt),te),y.m(Et++,Xt-Vt-wt,te)):y.m(Et++,Xt,te)}gt=zt}(ot===null||at!==We||yt)&&(It=y.i(Et-1).x,Yt=y.i(Et-1).y,Xt=y.i(Et).x,te=y.i(Et).y,yt?(wt=this.Ld[ut.layer],this.K===180||this.K===0?(yt=Yt,yt>=ut.bounds.y&&yt<=ut.bounds.bottom&&(this.K===180?Xt>=ut.bounds.x:Xt<=ut.bounds.right)&&(gt=ut.centerX+(this.K===180?-wt:wt),yt=ut.bounds.x&&yt<=ut.bounds.right&&(this.K===270?te>=ut.bounds.y:te<=ut.bounds.bottom)&&(gt=ut.centerY+(this.K===270?-wt:wt),yt=ut.bounds.x?(gt=ut.bounds.x+ut.bounds.width,y.L(Et-2,gt,Yt),y.L(Et-1,gt+ge,Yt)):this.K===90&&te<=ut.bounds.bottom?(gt=ut.bounds.y,y.L(Et-2,It,gt),y.L(Et-1,It,gt-Vt)):this.K===270&&te>=ut.bounds.y?(gt=ut.bounds.y+ut.bounds.height,y.L(Et-2,It,gt),y.L(Et-1,It,gt+ge)):this.K===0&&Xt<=ut.bounds.right&&(gt=ut.bounds.x,y.L(Et-2,gt,Yt),y.L(Et-1,gt-Vt,Yt))):(Vt=Math.max(10,this.he[ut.layer]),ge=Math.max(10,this.Ld[ut.layer]),yt=0,this.K===180||this.K===0?((this.K===180?Xt<=ut.bounds.x:Xt>=ut.bounds.right)&&(yt=(this.K===0?ge:-Vt)/2),y.m(Et++,Xt+yt,Yt)):((this.K===270?te<=ut.bounds.y:te>=ut.bounds.bottom)&&(yt=(this.K===90?ge:-Vt)/2),y.m(Et++,It,te+yt)),y.m(Et++,Xt,te)))}else{for(;ut!==null&&ut!==gt;){for(Vt=zt=null,ut=ut.destinationEdges.iterator;ut.next()&&(It=ut.value,It.link!==x.link||(zt=It.toVertex,Vt=It.fromVertex,Vt.node!==null&&(Vt=null),zt.node!==null)););if(zt===null)break;zt!==gt&&(It=y.i(Et-1).x,Yt=y.i(Et-1).y,Xt=zt.centerX,te=zt.centerY,yt?this.K===180||this.K===0?(Vt!==null?Vt.centerY:Yt)!==te&&(Vt=this.Ta[zt.layer]+this.Rf.x,Et===y.firstPickIndex+1&&(Vt=this.K===0?Math.max(Vt,It):Math.min(Vt,It)),y.m(Et++,Vt,Yt),y.m(Et++,Vt,te)):(Vt!==null?Vt.centerX:It)!==Xt&&(Vt=this.Ta[zt.layer]+this.Rf.y,Et===y.firstPickIndex+1&&(Vt=this.K===90?Math.max(Vt,Yt):Math.min(Vt,Yt)),y.m(Et++,It,Vt),y.m(Et++,Xt,Vt)):(Vt=Math.max(10,this.he[zt.layer]),ge=Math.max(10,this.Ld[zt.layer]),mt?this.K===180?(y.m(Et++,Xt+ge+wt,te),y.m(Et++,Math.max(Xt+ge-wt/2,Xt),te),y.m(Et++,Xt,te),y.m(Et++,Xt,te),y.m(Et++,Math.min(Xt-Vt+wt/2,Xt),te),y.m(Et++,Xt-Vt-wt,te)):this.K===90?(y.m(Et++,Xt,te-Vt-wt),y.m(Et++,Xt,Math.min(te-Vt+wt/2,te)),y.m(Et++,Xt,te),y.m(Et++,Xt,te),y.m(Et++,Xt,Math.max(te+ge-wt/2,te)),y.m(Et++,Xt,te+ge+wt)):this.K===270?(y.m(Et++,Xt,te+ge+wt),y.m(Et++,Xt,Math.max(te+ge-wt/2,te)),y.m(Et++,Xt,te),y.m(Et++,Xt,te),y.m(Et++,Xt,Math.min(te-Vt+wt/2,te)),y.m(Et++,Xt,te-Vt-wt)):(y.m(Et++,Xt-Vt-wt,te),y.m(Et++,Math.min(Xt-Vt+wt/2,Xt),te),y.m(Et++,Xt,te),y.m(Et++,Xt,te),y.m(Et++,Math.max(Xt+ge-wt/2,Xt),te),y.m(Et++,Xt+ge+wt,te)):this.K===180?(y.m(Et++,Xt+ge,te),y.m(Et++,Xt-Vt,te)):this.K===90?(y.m(Et++,Xt,te-Vt),y.m(Et++,Xt,te+ge)):this.K===270?(y.m(Et++,Xt,te+ge),y.m(Et++,Xt,te-Vt)):(y.m(Et++,Xt-Vt,te),y.m(Et++,Xt+ge,te)))),ut=zt}yt&&(It=y.i(Et-1).x,Yt=y.i(Et-1).y,Xt=y.i(Et).x,te=y.i(Et).y,this.K===180||this.K===0?Yt!==te&&(Vt=this.K===0?Math.min(Math.max((Xt+It)/2,this.Ta[gt.layer]+this.Rf.x),Xt):Math.max(Math.min((Xt+It)/2,this.Ta[gt.layer]+this.Rf.x),Xt),y.m(Et++,Vt,Yt),y.m(Et++,Vt,te)):It!==Xt&&(Vt=this.K===90?Math.min(Math.max((te+Yt)/2,this.Ta[gt.layer]+this.Rf.y),te):Math.max(Math.min((te+Yt)/2,this.Ta[gt.layer]+this.Rf.y),te),y.m(Et++,It,Vt),y.m(Et++,Xt,Vt)))}E!==null&&mt&&4<=y.pointsCount&&(tt!==null&&(tt=at===We?y.getLinkPointFromPoint(b,tt,tt.ga(ri),y.i(3),!0):y.i(0),at===We&&(at=y.i(2),E=y.i(3),this.direction===90||this.direction===270?(y.L(1,(tt.x+at.x)/2,at.y),y.L(2,E.x,(at.y+E.y)/2)):(y.L(1,at.x,(tt.y+at.y)/2),y.L(2,(at.x+E.x)/2,E.y))),tt.w()||tt.set(b.actualBounds.center),y.L(0,tt.x,tt.y)),ot!==null&&(b=rt===We?y.getLinkPointFromPoint(z,ot,ot.ga(ri),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),rt===We&&(ot=y.i(y.pointsCount-3),rt=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(b.x+ot.x)/2,ot.y),y.L(y.pointsCount-2,rt.x,(ot.y+rt.y)/2)):(y.L(y.pointsCount-2,ot.x,(b.y+ot.y)/2),y.L(y.pointsCount-3,(ot.x+rt.x)/2,rt.y))),b.w()||b.set(z.actualBounds.center),y.L(y.pointsCount-1,b.x,b.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},mo.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new on,y=this.network.edges.iterator;y.next();){var x=y.value.link;x!==null&&x.isOrthogonal&&!a.contains(x)&&a.add(x)}if(0z.y&&(ut=at.y>z.y?0:tt.xz.x&&(ut=at.x>z.x?0:tt.yy.layer?1:a.rdy.rd?1:a.Icy.Ic?1:0:0},Ct.Ux=function(a,y){return a instanceof Dc&&y instanceof Dc&&a!==y?a.firsty.first||a.jy.j||a.rdy.rd?1:a.Icy.Ic?1:0:0},Ct.Js=function(a,y){return a instanceof Dc&&y instanceof Dc&&a!==y?a.jcy.jc||a.jy.j||a.rdy.rd?1:a.Icy.Ic?1:0:0},Ct.B=function(a,y){return a-=y,-1a},Ct.zi=function(a,y,x,E){var b=a.length,z=E-x;if(!(1>=z))if((0>x||x>=b-1)&&oe("not in range 0 <= from < length: "+x),z===2)E=a[x],b=a[x+1],0=b)a.sort(y);else for(x=a.slice(0,E),x.sort(y),y=0;y=b)for(E=a.slice(x),E.sort(y),y=x;y=a.He.length){for(var E=[],b=0;ba&&(this.bg=a,this.C())}},alignOption:{get:function(){return this.ve},set:function(a){this.ve!==a&&0<=a&&16>a&&(this.ve=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(a){this.Cn!==a&&0<=a&&(this.Cn=a,this.C())}},maxLayer:{get:function(){return this.Ia}},maxIndex:{get:function(){return this.Iq}},maxColumn:{get:function(){return this.Ra}},minIndexLayer:{get:function(){return this.Hn}},maxIndexLayer:{get:function(){return this.Md}}});var b0=new Ye(mo,"CycleDepthFirst",0),Sy=new Ye(mo,"CycleGreedy",1),Jp=new Ye(mo,"CycleFromLayers",2),T0=new Ye(mo,"LayerOptimalLinkLength",0),xy=new Ye(mo,"LayerLongestPathSink",1),wy=new Ye(mo,"LayerLongestPathSource",2),D0=new Ye(mo,"InitDepthFirstOut",0),Py=new Ye(mo,"InitDepthFirstIn",1),Cy=new Ye(mo,"InitNaive",2),My=new Ye(mo,"AggressiveNone",0),F0=new Ye(mo,"AggressiveLess",1),Ly=new Ye(mo,"AggressiveMore",2),Kx=8;mo.className="LayeredDigraphLayout",mo.CycleDepthFirst=b0,mo.CycleGreedy=Sy,mo.CycleFromLayers=Jp,mo.LayerOptimalLinkLength=T0,mo.LayerLongestPathSink=xy,mo.LayerLongestPathSource=wy,mo.InitDepthFirstOut=D0,mo.InitDepthFirstIn=Py,mo.InitNaive=Cy,mo.AggressiveNone=My,mo.AggressiveLess=F0,mo.AggressiveMore=Ly,mo.PackNone=0,mo.PackExpand=1,mo.PackStraighten=2,mo.PackMedian=4,mo.PackAll=15,mo.AlignNone=0,mo.AlignUpperLeft=1,mo.AlignUpperRight=2,mo.AlignLowerLeft=4,mo.AlignLowerRight=8,mo.AlignAll=15;function Dc(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}Dc.className="SegInfo";function Kf(a){Ho.call(this,a)}pe(Kf,Ho),Kf.prototype.createVertex=function(){return new Pu(this)},Kf.prototype.createEdge=function(){return new _p(this)},Kf.className="LayeredDigraphNetwork";function Pu(a){ks.call(this,a),this.$n=this.bo=this.ao=this.co=null,this.Za=this.Ag=this.Ig=-1,this.u=NaN,this.F=null,this.valid=!1,this.finish=this.Ll=NaN,this.Dj=0,this.dv=this.ev=null}pe(Pu,ks);function ix(a,y){return a.index-y.index}function B0(a,y){if(!a.$n){for(var x=[],E=mr(a.destinationEdgesArrayAccess),b=E.next();!b.done;b=E.next())b=b.value,b.valid&&x.push(b);a.$n=x}for(a=mr(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;oe("Unable to find destination edge to given vertex")}function Ey(a){if(!a.co){for(var y=[],x=mr(a.sourceEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.fromVertex);y.sort(ix),a.co=y}return a.co}function Qx(a){if(!a.ao){for(var y=[],x=mr(a.destinationEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.toVertex);y.sort(ix),a.ao=y}return a.ao}Pu.prototype.Cl=function(a){ks.prototype.Cl.call(this,a),this.bo=this.co=null},Pu.prototype.Kl=function(a){ks.prototype.Kl.call(this,a),this.bo=this.co=null},Pu.prototype.zl=function(a){ks.prototype.zl.call(this,a),this.$n=this.ao=null},Pu.prototype.Jl=function(a){ks.prototype.Jl.call(this,a),this.$n=this.ao=null},ve.Object.defineProperties(Pu.prototype,{layer:{get:function(){return this.Ig},set:function(a){this.Ig!==a&&(this.Ig=a)}},column:{get:function(){return this.Ag},set:function(a){this.Ag!==a&&(this.Ag=a)}},index:{get:function(){return this.Za},set:function(a){this.Za!==a&&(this.Za=a)}},component:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},near:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),Pu.prototype.deleteDestinationEdge=Pu.prototype.Jl,Pu.prototype.addDestinationEdge=Pu.prototype.zl,Pu.prototype.deleteSourceEdge=Pu.prototype.Kl,Pu.prototype.addSourceEdge=Pu.prototype.Cl,Pu.className="LayeredDigraphVertex";function _p(a){Gl.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}pe(_p,Gl),ve.Object.defineProperties(_p.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},valid:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},rev:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},forest:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},portFromPos:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},portToPos:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},portFromColOffset:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},portToColOffset:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),_p.className="LayeredDigraphEdge";function Di(a){lr.call(this),this.Ub=new en,this.Wn=R0,this.ud=td,this.vo=G0,this.Bq=jy,this.$v=[],this.td=!0,this.Rb=H0,this.$d=new un(10,10).freeze();var y=new of(this);this.W=new Fu(y),this.Y=new Fu(y),this.ru=[],a&&Object.assign(this,a)}pe(Di,lr),Di.prototype.cloneProtected=function(a){lr.prototype.cloneProtected.call(this,a),a.Wn=this.Wn,a.vo=this.vo,a.Bq=this.Bq,a.td=this.td,a.Rb=this.Rb,a.$d.assign(this.$d),a.W.copyInheritedPropertiesFrom(this.W),a.Y.copyInheritedPropertiesFrom(this.Y)},Di.prototype.qb=function(a){a.classType===Di?a.name.indexOf("Alignment")===0?this.alignment=a:a.name.indexOf("Arrangement")===0?this.arrangement=a:a.name.indexOf("Compaction")===0?this.compaction=a:a.name.indexOf("Path")===0?this.path=a:a.name.indexOf("Sorting")===0?this.sorting=a:a.name.indexOf("Style")===0?this.treeStyle=a:oe("Unknown enum value: "+a):lr.prototype.qb.call(this,a)},Di.prototype.createNetwork=function(){return new of(this)},Di.prototype.makeNetwork=function(a){function y(E){if(E instanceof hn)return!E.isLinkLabel&&E.category!=="Comment";if(E instanceof Je){var b=E.fromNode;return b===null||b.isLinkLabel||b.category==="Comment"?!1:(E=E.toNode,!(E===null||E.isLinkLabel||E.category==="Comment"))}return!1}var x=this.createNetwork();return a instanceof ce?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof di?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},Di.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==W0&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof ce&&(y=a),this.path===R0&&y!==null?this.ud=y.isTreePathToChildren?td:ef:this.ud=this.path===R0?td:this.path,0y.level)return!1;a.removeChild(x.parent,x)}return!0}Di.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,E=0,b=0;bb?hx(this,a,tt,si,It,Yt):dx(this,a,tt,si,It,Yt),si=Yt.x,It=Yt.width,Yt=Yt.height;break;case $d:for(Xt=0;Xtgt&&(CnXs&&(tf(a,-Xs,0,hi,$i-1),j0(Xt,-Xs,0),j0(te,-Xs,0),Xs=0)}jo.S.h(Xs,vn),It=Math.max(It,ge),Yt=Math.max(Yt,Vt+(Xe===0?0:wt)+Ys.height),Cn=ge}else 0gt&&(vnXs&&(tf(a,0,-Xs,hi,$i-1),j0(Xt,0,-Xs),j0(te,0,-Xs),Xs=0)),jo.S.h(Cn,Xs),Yt=Math.max(Yt,ln),It=Math.max(It,Vt+(Xe===0?0:wt)+Ys.width),vn=ln;Oe++}switch(0at&&(at=0),135Et&&(Et=0),rt===Cd&&(ot+=mt/2+a.focus.y),tt+=E+x):y?(a.comments===null?E>It&&(It=Ty(rt,E-It,0),tt=It.x,ot=It.y,It=E,at=0):It=Ny(a,It,at),0>at&&(tt-=at,at=0),135Yt&&(Yt=Ty(rt,0,zt-Yt),tt=Yt.x,ot=Yt.y,Yt=zt,Et=0):Yt=by(a,Yt,Et),0>Et&&(ot-=Et,Et=0),tt+=E+x),0b[0].x?b[2].assign(b[1]):b[1].assign(b[2])),b[3].yb[0].x?b[3].assign(b[2]):b[2].assign(b[3])),Xe[0].h(at+E,0),Xe[1].h(Xe[0].x,zt),Xe[2].yb[0].y?b[2].assign(b[1]):b[1].assign(b[2])),b[3].xb[0].y?b[3].assign(b[2]):b[2].assign(b[3])),Xe[0].h(0,Et+zt),Xe[1].h(E,Xe[0].y),Xe[2].xE?hx(a,y,b,Oe,Vt,Xt):dx(a,y,b,Oe,Vt,Xt),Oe=Xt.x,Vt=Xt.width,Xt=Xt.height;break;case $d:for(mt=0;mtmt&&(gemt&&(lngt&&(gt=0),135It&&(It=0)),y.la.h(gt,It),y.Da.h(Vt,Xt)}}Di.prototype.customAlignment=function(a,y,x,E,b){return[y,x,E,b]};function hx(a,y,x,E,b,z){var tt=x.length;if(tt===0)return new ke(E,0,b,z);if(tt===1)return y=x[0],b=y.Da.width,z=y.Da.height,new ke(E,0,b,z);for(var ot=y.nodeSpacing,rt=y.rowSpacing,at=Ju(y)===90,ut=0,gt=0,mt=0,yt=0;ytat&&(b-=at),z=Math.max(z,Math.max(yt,mt)+a+tt.height),0>x.S.x&&(E=I0(y,x.S.x,!1,E,ot))):(x.S.h(b+a,E+ot/2-x.focus.y-x.la.y),b=Math.max(b,Math.max(wt,gt)+a+tt.width),mt=E+ot/2-x.focus.y-x.la.y,z=Math.max(z,mt+tt.height),0>mt&&(z-=mt),0>x.S.y&&(E=I0(y,x.S.y,!0,E,ot)))),new ke(E,0,b,z)}function dx(a,y,x,E,b,z){var tt=x.length;if(tt===0)return new ke(E,0,b,z);if(tt===1)return x=x[0],b=x.Da.width,z=x.Da.height,new ke(E,0,b,z);for(var ot=y.nodeSpacing,rt=y.rowSpacing,at=Ju(y)===270,ut=0,gt=0,mt=0,yt=0;ytgt&&(b-=gt),z=Math.max(z,Math.abs(Math.min(yt,mt))+a+ut.height),0>rt.S.x&&(E=I0(y,rt.S.x,!1,E,ot))):(rt.S.h(-b-ut.width-a,E+ot/2-rt.focus.y-rt.la.y),b=Math.max(b,Math.abs(Math.min(wt,gt))+a+ut.width),mt=E+ot/2-rt.focus.y-rt.la.y,z=Math.max(z,mt+ut.height),0>mt&&(z-=mt),0>rt.S.y&&(E=I0(y,rt.S.y,!0,E,ot)))),y=0;yy&&(y=x+a.width),0>x&&(y-=x),y;case ed:return a.width>y?a.width:y;case nd:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case qd:case id:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case $d:return a.width-a.focus.x+a.nodeSpacing/2+y;case Cd:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function by(a,y,x){switch(a.alignment){case nf:case Xf:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case ed:return a.height>y?a.height:y;case nd:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case qd:case id:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case $d:return a.height-a.focus.y+a.nodeSpacing/2+y;case Cd:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Ty(a,y,x){switch(a){case Xf:y/=2,x/=2;break;case nf:y/=2,x/=2;break;case ed:x=y=0;break;case nd:break;default:oe("Unhandled alignment value "+a.toString())}return new Wt(y,x)}function Sg(a,y,x,E,b,z){y=Ty(y,x,E),tf(a,y.x,y.y,b,z)}function tf(a,y,x,E,b){if(y!==0||x!==0)for(a=a.children;E<=b;E++){var z=a[E].S;z.x+=y,z.y+=x}}function O0(a,y,x,E){var b=y.parent;switch(a.ud){case td:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===b&&y.relativePoint.h(x,E);break;case ef:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===b&&y.relativePoint.h(x,E);break;default:oe("Unhandled path value "+a.ud.toString())}}function j0(a,y,x){for(var E=0;Egt.length||yt===null||2>yt.length))for(b=x=0;xat&&z.yz.y&&aty.length||x===null||2>x.length)E=null;else{for(ut=El(a,y.length+x.length),E=z=rt=0;zrt;)at=x[z++],ut[E++].h(at.x+b,at.y);for(x=El(a,E),rt=0;rtgt.length||z===null||2>z.length)b=null;else{for(ut=El(a,gt.length+z.length),b=at=x=0;xz;)rt=gt[x++],ut[b++].h(rt.x,rt.y);for(z=El(a,b),x=0;xgt.length||yt===null||2>yt.length))for(b=x=0;xrt&&z.xz.x&&rty.length||x===null||2>x.length)E=null;else{for(ut=El(a,y.length+x.length),E=z=rt=0;zrt;)at=x[z++],ut[E++].h(at.x,at.y+b);for(x=El(a,E),rt=0;rtgt.length||z===null||2>z.length)b=null;else{for(ut=El(a,gt.length+z.length),b=at=x=0;xz;)rt=gt[x++],ut[b++].h(rt.x,rt.y);for(z=El(a,b),x=0;x=a?0:135>=a?90:225>=a?180:315>=a?270:0}Di.prototype.computeLayerSpacing=function(a){var y=Ju(a);y=y===90||y===270;var x=a.layerSpacing;if(0=a&&(this.W.nodeIndentPastParent=a,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(a){this.W.nodeSpacing!==a&&(this.W.nodeSpacing=a,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(a){this.W.layerSpacing!==a&&(this.W.layerSpacing=a,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(a){this.W.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.W.layerSpacingParentOverlap=a,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(a){this.W.compaction===a||a!==z0&&a!==nm||(this.W.compaction=a,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(a){this.W.breadthLimit!==a&&0<=a&&(this.W.breadthLimit=a,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(a){this.W.rowSpacing!==a&&(this.W.rowSpacing=a,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(a){this.W.rowIndent!==a&&0<=a&&(this.W.rowIndent=a,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(a){this.W.commentSpacing!==a&&(this.W.commentSpacing=a,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(a){this.W.commentMargin!==a&&(this.W.commentMargin=a,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(a){this.W.setsPortSpot!==a&&(this.W.setsPortSpot=a,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(a){this.W.portSpot.D(a)||(this.W.portSpot=a,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(a){this.W.setsChildPortSpot!==a&&(this.W.setsChildPortSpot=a,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(a){this.W.childPortSpot.D(a)||(this.W.childPortSpot=a,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(a){this.Y.sorting===a||a!==Qf&&a!==$p&&a!==tm&&!em||(this.Y.sorting=a,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(a){this.Y.comparer!==a&&(this.Y.comparer=a,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(a){this.Y.angle===a||a!==0&&a!==90&&a!==180&&a!==270||(this.Y.angle=a,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(a){this.Y.alignment!==a&&(this.Y.alignment=a,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(a){this.Y.nodeIndent!==a&&0<=a&&(this.Y.nodeIndent=a,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(a){this.Y.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.Y.nodeIndentPastParent=a,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(a){this.Y.nodeSpacing!==a&&(this.Y.nodeSpacing=a,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(a){this.Y.layerSpacing!==a&&(this.Y.layerSpacing=a,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(a){this.Y.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.Y.layerSpacingParentOverlap=a,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(a){this.Y.compaction===a||a!==z0&&a!==nm||(this.Y.compaction=a,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(a){this.Y.breadthLimit!==a&&0<=a&&(this.Y.breadthLimit=a,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(a){this.Y.rowSpacing!==a&&(this.Y.rowSpacing=a,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(a){this.Y.rowIndent!==a&&0<=a&&(this.Y.rowIndent=a,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(a){this.Y.commentSpacing!==a&&(this.Y.commentSpacing=a,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(a){this.Y.commentMargin!==a&&(this.Y.commentMargin=a,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(a){this.Y.setsPortSpot!==a&&(this.Y.setsPortSpot=a,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(a){this.Y.portSpot.D(a)||(this.Y.portSpot=a,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(a){this.Y.setsChildPortSpot!==a&&(this.Y.setsChildPortSpot=a,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(a){this.Y.childPortSpot.D(a)||(this.Y.childPortSpot=a,this.C())}}});var R0=new Ye(Di,"PathDefault",-1),td=new Ye(Di,"PathDestination",0),ef=new Ye(Di,"PathSource",1),Qf=new Ye(Di,"SortingForwards",10),$p=new Ye(Di,"SortingReverse",11),tm=new Ye(Di,"SortingAscending",12),em=new Ye(Di,"SortingDescending",13),Xf=new Ye(Di,"AlignmentCenterSubtrees",20),nf=new Ye(Di,"AlignmentCenterChildren",21),ed=new Ye(Di,"AlignmentStart",22),nd=new Ye(Di,"AlignmentEnd",23),qd=new Ye(Di,"AlignmentBus",24),id=new Ye(Di,"AlignmentBusBranching",25),$d=new Ye(Di,"AlignmentTopLeftBus",26),Cd=new Ye(Di,"AlignmentBottomRightBus",27),z0=new Ye(Di,"CompactionNone",30),nm=new Ye(Di,"CompactionBlock",31),G0=new Ye(Di,"StyleLayered",40),Fy=new Ye(Di,"StyleLastParents",41),By=new Ye(Di,"StyleAlternating",42),Iy=new Ye(Di,"StyleRootOnly",43),H0=new Ye(Di,"ArrangementVertical",50),Oy=new Ye(Di,"ArrangementHorizontal",51),W0=new Ye(Di,"ArrangementFixedRoots",52),jy=new Ye(Di,"LayerIndividual",60),Ry=new Ye(Di,"LayerSiblings",61),Y0=new Ye(Di,"LayerUniform",62);Di.className="TreeLayout",Di.PathDefault=R0,Di.PathDestination=td,Di.PathSource=ef,Di.SortingForwards=Qf,Di.SortingReverse=$p,Di.SortingAscending=tm,Di.SortingDescending=em,Di.AlignmentCenterSubtrees=Xf,Di.AlignmentCenterChildren=nf,Di.AlignmentStart=ed,Di.AlignmentEnd=nd,Di.AlignmentBus=qd,Di.AlignmentBusBranching=id,Di.AlignmentTopLeftBus=$d,Di.AlignmentBottomRightBus=Cd,Di.CompactionNone=z0,Di.CompactionBlock=nm,Di.StyleLayered=G0,Di.StyleLastParents=Fy,Di.StyleAlternating=By,Di.StyleRootOnly=Iy,Di.ArrangementVertical=H0,Di.ArrangementHorizontal=Oy,Di.ArrangementFixedRoots=W0,Di.LayerIndividual=jy,Di.LayerSiblings=Ry,Di.LayerUniform=Y0;function of(a){Ho.call(this,a)}pe(of,Ho),of.prototype.createVertex=function(){return new Fu(this)},of.prototype.createEdge=function(){return new Jf(this)},of.className="TreeNetwork";function Fu(a){ks.call(this,a),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new Wt(0,0),this.Da=new un(0,0),this.la=new Wt(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=Qf,this.hd=oy,this.Kb=0,this.Jb=nf,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=nm,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=so,this.wr=!0,this.Dp=so}pe(Fu,ks),Fu.prototype.copyInheritedPropertiesFrom=function(a){a!==null&&(this.nd=a.sorting,this.hd=a.comparer,this.Kb=a.angle,this.Jb=a.alignment,this.Uq=a.nodeIndent,this.Vq=a.nodeIndentPastParent,this.Wq=a.nodeSpacing,this.ie=a.layerSpacing,this.Aq=a.layerSpacingParentOverlap,this.Hp=a.compaction,this.Ap=a.breadthLimit,this.nr=a.rowSpacing,this.mr=a.rowIndent,this.Gp=a.commentSpacing,this.Fp=a.commentMargin,this.xr=a.setsPortSpot,this.dr=a.portSpot,this.wr=a.setsChildPortSpot,this.Dp=a.childPortSpot)},ve.Object.defineProperties(Fu.prototype,{initialized:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},parent:{get:function(){return this.hb},set:function(a){this.hb!==a&&(this.hb=a)}},children:{get:function(){return this.u},set:function(a){if(this.u!==a){if(a!==null)for(var y=a.length,x=0;xyt.y+x.rowIndent&&(z=Math.min(z,Math.max(gt.y,z-y.computeNodeIndent(x))))):x.alignment===ed?(z=E.top+b.y,b.y===0&>.yyt.x+x.rowIndent&&(z=Math.min(z,Math.max(gt.x,z-y.computeNodeIndent(x))))):x.alignment===ed?(z=E.left+b.x,b.x===0&>.xyt.y+x.rowIndent&&(z=Math.min(z,Math.max(gt.y,z-y.computeNodeIndent(x))))):x.alignment===ed?(z=E.top+b.y,b.y===0&>.yyt.x+x.rowIndent&&(z=Math.min(z,Math.max(gt.x,z-y.computeNodeIndent(x))))):x.alignment===ed?(z=E.left+b.x,b.x===0&>.x=0||Object.prototype.hasOwnProperty.call(Ie,et)&&(Tt[et]=Ie[et]);return Tt}function Ne(Ie,Ue){if(!(Ie instanceof Ue))throw new TypeError("Cannot call a class as a function")}function we(Ie,Ue){if(!Ie)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ue&&(typeof Ue=="object"||typeof Ue=="function")?Ue:Ie}function Le(Ie,Ue){if(typeof Ue!="function"&&Ue!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Ue);Ie.prototype=Object.create(Ue&&Ue.prototype,{constructor:{value:Ie,enumerable:!1,writable:!0,configurable:!0}}),Ue&&(Object.setPrototypeOf?Object.setPrototypeOf(Ie,Ue):Ie.__proto__=Ue)}var Pe=function(Ie){Le(Ue,Ie);function Ue(Tt){Ne(this,Ue);var et=we(this,(Ue.__proto__||Object.getPrototypeOf(Ue)).call(this,Tt));return et.scrollListener=et.scrollListener.bind(et),et.eventListenerOptions=et.eventListenerOptions.bind(et),et.mousewheelListener=et.mousewheelListener.bind(et),et}return St(Ue,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var et=this.getParentElement(this.scrollComponent);et.scrollTop=et.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var et=!1,nt={get passive(){et=!0}};try{document.addEventListener("test",null,nt),document.removeEventListener("test",null,nt)}catch(dt){}return et}},{key:"eventListenerOptions",value:function(){var et=this.props.useCapture;return this.isPassiveSupported()&&(et={useCapture:this.props.useCapture,passive:!0}),et}},{key:"setDefaultLoader",value:function(et){this.defaultLoader=et}},{key:"detachMousewheelListener",value:function(){var et=window;this.props.useWindow===!1&&(et=this.scrollComponent.parentNode),et.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var et=window;this.props.useWindow===!1&&(et=this.getParentElement(this.scrollComponent)),et.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),et.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(et){var nt=this.props.getScrollParent&&this.props.getScrollParent();return nt!=null?nt:et&&et.parentNode}},{key:"filterProps",value:function(et){return et}},{key:"attachScrollListener",value:function(){var et=this.getParentElement(this.scrollComponent);if(!(!this.props.hasMore||!et)){var nt=window;this.props.useWindow===!1&&(nt=et),nt.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),nt.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),nt.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(et){et.deltaY===1&&!this.isPassiveSupported()&&et.preventDefault()}},{key:"scrollListener",value:function(){var et=this.scrollComponent,nt=window,dt=this.getParentElement(et),lt=void 0;if(this.props.useWindow){var pt=document.documentElement||document.body.parentNode||document.body,vt=nt.pageYOffset!==void 0?nt.pageYOffset:pt.scrollTop;this.props.isReverse?lt=vt:lt=this.calculateOffset(et,vt)}else this.props.isReverse?lt=dt.scrollTop:lt=et.scrollHeight-dt.scrollTop-dt.clientHeight;lt0){ae(It),ye(It.length),(!$t||ee>0)&&!te&&Dn();return}else if(We{ae(It.slice(0,We+2)),ye(Qe=>Qe+2)},ne>10?Math.max(500/(ne/2),20):50);return()=>clearInterval(De)}else $t||Dn()},[Yt,$t,ee,te,We]),(0,vt.useMemo)(()=>vt.createElement("section",{className:`${qt.answer} fadeIn animated edu_md`},vt.createElement(oe.UG,{remarkPlugins:[se.Z,Ae.Z],rehypePlugins:[ve.Z,Be.Z],components:{code(Vt){var It=Vt,{node:ne,inline:De,className:Qe,children:le}=It,Oe=yt(It,["node","inline","className","children"]);const on=/language-(\w+)/.exec(Qe||""),Cn=String(le).trim();return De||!on?vt.createElement("code",pt({className:Qe},Oe),le):vt.createElement("code",{className:qt.codeCopy,"data-text":`\`\`\`${on?on[1]:""} ${le} -\`\`\``},vt.createElement(Ee.CopyToClipboard,{text:Cn,onCopy:()=>Ce.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},vt.createElement("button",null,"\u590D\u5236")),vt.createElement(ue.Z,pt({style:me.Z,language:on[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},Oe),Cn))},img({node:Vt}){var It;const ne=(It=Vt.properties)==null?void 0:It.src;return vt.createElement(Se.Z,{src:ne,width:320,"data-text":ne,onLoad:()=>te&&setTimeout(()=>Dn(),500)})}}},Ne?Pe:`${Pe}__`)),[Pe])}},19909:function(Ze,En,bt){"use strict";bt.d(En,{Z:function(){return ge}});var vt=bt(59301),oe=bt(8591),ue=bt(54580),Be=bt(43418),me=bt(6848),Ee=bt(92832),qt=bt(3113),Ce=bt(71418),Se=bt(64165),ve=bt(14478),se=bt(43428),Ae=bt(38854),_e=bt(92310),Dt=bt.n(_e),et=bt(43276),nt={reasoning:"reasoning___S0mKl",btn:"btn____CIJG",content:"content___CIAh9"},ct=bt(59301),lt=(dn,gn,pn)=>new Promise((Rn,Mi)=>{var ji=wo=>{try{Ji(pn.next(wo))}catch(Io){Mi(Io)}},wi=wo=>{try{Ji(pn.throw(wo))}catch(Io){Mi(Io)}},Ji=wo=>wo.done?Rn(wo.value):Promise.resolve(wo.value).then(ji,wi);Ji((pn=pn.apply(dn,gn)).next())}),yt=({value:dn="",streamingStatus:gn,onFinish:pn,cancelIndex:Rn,time:Mi,loading:ji,loadAll:wi})=>{const[Ji,wo]=(0,vt.useState)(""),[Io,Wr]=(0,vt.useState)(!0),nr=(0,vt.useRef)(dn),Cr=(0,vt.useRef)(gn),bo=(0,vt.useRef)(0),Fo=(0,vt.useRef)(null),[fo,hr]=(0,vt.useState)(!1),dr=70;(0,vt.useEffect)(()=>{Cr.current=gn},[gn]),(0,vt.useEffect)(()=>{nr.current=dn},[dn]),(0,vt.useEffect)(()=>{if(!gn){wo(nr.current);return}return hr(!0),Fo.current=setInterval(Ui,dr),()=>{clearInterval(Fo.current)}},[]),(0,vt.useEffect)(()=>{fo&&(wo(nr.current),clearInterval(Fo.current),hr(!1),pn())},[Rn]);const Ui=()=>lt(void 0,null,function*(){const Ct=nr.current[bo.current];Ct!==void 0?(wo(Rs=>Rs+Ct),bo.current++,clearInterval(Fo.current),Fo.current=setInterval(Ui,280/(nr.current.length-bo.current))):Cr.current===!1&&(wo(nr.current),clearInterval(Fo.current),hr(!1),pn())});return ct.createElement("div",{className:`${nt.reasoning} fadeIn animated`},ct.createElement("div",{className:nt.btn,onClick:()=>Wr(!Io)},ct.createElement("i",{className:"iconfont icon-shendusikao"}),Mi?ct.createElement("span",null,"\u5DF2\u6DF1\u5EA6\u601D\u8003\uFF08\u7528\u65F6 ",Mi," \u79D2\uFF09"):ct.createElement("span",null,"\u601D\u8003\u4E2D..."),Io?ct.createElement("b",{className:"iconfont icon-shouqi6"}):ct.createElement("b",{className:"iconfont icon-zhankai6"})),ji&&ct.createElement(Ce.Z,{spinning:!0,className:"mt20"}),Io&&!ji&&ct.createElement("div",{className:nt.content},Ji,fo?ct.createElement("span",{className:"aiBlink"},"__"):""))},Lt={select:"select___Kt_GE",box:"box___S5_ly",text:"text___dtZDv",itemWrap:"itemWrap___xmw7x",item:"item___io6Bx",active:"active___nHRTI"},kt=bt(81327),Ht=Object.defineProperty,Yt=Object.getOwnPropertySymbols,$t=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,te=(dn,gn,pn)=>gn in dn?Ht(dn,gn,{enumerable:!0,configurable:!0,writable:!0,value:pn}):dn[gn]=pn,Pe=(dn,gn)=>{for(var pn in gn||(gn={}))$t.call(gn,pn)&&te(dn,pn,gn[pn]);if(Yt)for(var pn of Yt(gn))ee.call(gn,pn)&&te(dn,pn,gn[pn]);return dn};const ae=dn=>React.createElement("svg",Pe({className:"logo1_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},dn),React.createElement("path",{d:"M1019.407 620.8 891.834 397.781 946.49 293.12a29.099 29.099 0 0 0 6.4-36.395l-70.187-126.592a30.08 30.08 0 0 0-24.576-13.653H597.519L539.194 14.507a27.35 27.35 0 0 0-20.907-14.55H380.644a29.141 29.141 0 0 0-24.618 14.55v5.546L225.806 243.03H100.923a29.184 29.184 0 0 0-25.515 13.654L3.428 384.085a32.768 32.768 0 0 0 0 29.184L132.836 638.08 74.511 740.053a32.768 32.768 0 0 0 0 29.056l66.517 116.566a29.907 29.907 0 0 0 25.515 14.506H427.15l62.848 109.227A30.08 30.08 0 0 0 512.783 1024H660.41a29.141 29.141 0 0 0 24.576-14.55l128.469-224.853h114.773a31.915 31.915 0 0 0 24.662-15.445l66.474-117.419a28.16 28.16 0 0 0 0-30.976l.043.043zm-161.28 14.592L791.61 512.469 518.287 993.963l-74.752-122.88h-273.28l65.621-119.211h139.392L101.86 272.213h143.062L380.687 30.08l68.352 119.253-70.187 122.88H925.54l-69.205 121.942 137.6 241.194H858.17z",fill:"#605BEC"}),React.createElement("path",{d:"m499.983 699.307 174.379-274.731H324.708z",fill:"#605BEC"}));var We="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTEwMTkuNDA3IDYyMC44IDg5MS44MzQgMzk3Ljc4MSA5NDYuNDkgMjkzLjEyYTI5LjA5OSAyOS4wOTkgMCAwIDAgNi40LTM2LjM5NWwtNzAuMTg3LTEyNi41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3IDE3NC4zNzktMjc0LjczMUgzMjQuNzA4eiIgZmlsbD0iIzYwNUJFQyIvPjwvc3ZnPg==",ye=Object.defineProperty,Ne=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,rn=Object.prototype.propertyIsEnumerable,Dn=(dn,gn,pn)=>gn in dn?ye(dn,gn,{enumerable:!0,configurable:!0,writable:!0,value:pn}):dn[gn]=pn,vn=(dn,gn)=>{for(var pn in gn||(gn={}))Ie.call(gn,pn)&&Dn(dn,pn,gn[pn]);if(Ne)for(var pn of Ne(gn))rn.call(gn,pn)&&Dn(dn,pn,gn[pn]);return dn};const Vt=dn=>React.createElement("svg",vn({className:"logo2_svg__icon",viewBox:"0 0 1417 1024",xmlns:"http://www.w3.org/2000/svg",width:276.758,height:200},dn),React.createElement("path",{d:"M1364.44 118.705c-14.178-6.695-20.322 6.065-28.593 12.525-2.914 2.048-5.277 4.726-7.64 7.246-20.717 21.268-44.899 35.21-76.643 33.556a152.576 152.576 0 0 0-120.674 45.371c-7.404-41.826-32.06-66.875-69.553-82.865-19.693-8.35-39.543-16.7-53.248-34.737-9.61-12.919-12.288-27.333-17.015-41.512-3.15-8.507-6.144-17.25-16.384-18.668-11.185-1.733-15.517 7.247-19.928 14.73a189.125 189.125 0 0 0-23.552 98.461c1.575 76.88 35.446 138.083 102.636 181.642 7.562 4.963 9.531 9.925 7.09 17.25-4.49 14.967-9.926 29.54-14.81 44.584-2.992 9.61-7.561 11.658-18.274 7.483a309.484 309.484 0 0 1-96.886-63.015c-47.813-44.426-91.057-93.342-144.935-131.702a635.825 635.825 0 0 0-38.36-25.207c-54.982-51.2 7.167-93.262 21.582-98.225 14.966-5.199 5.277-23.158-43.402-22.922-48.68.237-93.184 15.833-149.977 36.628-8.428 3.15-17.092 5.514-25.993 7.326a557.844 557.844 0 0 0-160.768-5.436c-105.157 11.264-189.204 58.92-250.96 140.367-74.2 97.832-91.687 208.975-70.261 325.002 22.449 122.25 87.434 223.468 187.47 302.631 103.582 82 222.917 122.172 359.188 114.452 82.708-4.568 174.79-15.202 278.686-99.485 26.151 12.445 53.642 17.486 99.249 21.267 35.131 3.072 69.002-1.733 95.153-6.931 40.96-8.35 38.203-44.741 23.316-51.437-120.202-53.72-93.814-31.822-117.839-49.624 61.125-69.317 153.206-141.312 189.204-374.706 2.835-18.51.472-30.168 0-45.213-.237-9.137 1.969-12.603 12.918-13.706a240.089 240.089 0 0 0 86.173-25.442c77.982-40.803 109.332-107.914 116.736-188.259 1.103-12.288-.236-24.97-13.705-31.429zM685.45 842.043C569.108 754.215 512.55 725.307 489.157 726.49c-21.82 1.26-17.96 25.206-13.155 40.802 5.042 15.439 11.58 26.073 20.717 39.621 6.301 8.9 10.791 22.213-6.302 32.295-37.494 22.213-102.794-7.561-105.787-8.98-76.012-42.929-139.421-99.564-184.241-176.994a523.894 523.894 0 0 1-72.468-239.93c-1.024-20.56 5.278-27.885 26.703-31.587a272.148 272.148 0 0 1 85.307-2.127c118.942 16.699 220.16 67.741 305.073 148.48 48.443 46.001 85.071 100.982 122.88 154.703 40.173 57.029 83.338 111.458 138.32 155.963 19.376 15.675 34.894 27.569 49.781 36.234-44.74 4.805-119.414 5.829-170.456-32.926zm55.926-344.615c0-5.357 2.757-10.398 7.326-13.47a17.723 17.723 0 0 1 22.134 2.048c3.072 2.915 4.805 7.09 4.805 11.422a16.778 16.778 0 0 1-17.25 16.541 17.33 17.33 0 0 1-12.131-4.883 15.911 15.911 0 0 1-4.884-11.658zm173.529 85.464a104.37 104.37 0 0 1-33.005 8.586 71.444 71.444 0 0 1-44.504-13.548c-15.282-12.288-26.23-19.141-30.72-40.645a89.167 89.167 0 0 1 .787-31.429c3.939-17.487-.393-28.75-13.312-38.912-10.476-8.35-23.71-10.634-38.36-10.634a32.06 32.06 0 0 1-14.179-4.175c-6.144-2.914-11.106-10.24-6.301-19.14a60.18 60.18 0 0 1 10.712-11.265c19.85-10.79 42.693-7.246 63.882.788 19.693 7.798 34.501 21.898 55.926 41.905 21.74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A1IDExLjQyMmExNi43NzggMTYuNzc4IDAgMCAxLTE3LjI1IDE2LjU0MSAxNy4zMyAxNy4zMyAwIDAgMS0xMi4xMzEtNC44ODMgMTUuOTExIDE1LjkxMSAwIDAgMS00Ljg4NC0xMS42NTh6bTE3My41MjkgODUuNDY0YTEwNC4zNyAxMDQuMzcgMCAwIDEtMzMuMDA1IDguNTg2IDcxLjQ0NCA3MS40NDQgMCAwIDEtNDQuNTA0LTEzLjU0OGMtMTUuMjgyLTEyLjI4OC0yNi4yMy0xOS4xNDEtMzAuNzItNDAuNjQ1YTg5LjE2NyA4OS4xNjcgMCAwIDEgLjc4Ny0zMS40MjljMy45MzktMTcuNDg3LS4zOTMtMjguNzUtMTMuMzEyLTM4LjkxMi0xMC40NzYtOC4zNS0yMy43MS0xMC42MzQtMzguMzYtMTAuNjM0YTMyLjA2IDMyLjA2IDAgMCAxLTE0LjE3OS00LjE3NWMtNi4xNDQtMi45MTQtMTEuMTA2LTEwLjI0LTYuMzAxLTE5LjE0YTYwLjE4IDYwLjE4IDAgMCAxIDEwLjcxMi0xMS4yNjVjMTkuODUtMTAuNzkgNDIuNjkzLTcuMjQ2IDYzLjg4Mi43ODggMTkuNjkzIDcuNzk4IDM0LjUwMSAyMS44OTggNTUuOTI2IDQxLjkwNSAyMS43NCAyNC4xODMgMjUuNjggMzAuOCAzOC4xMjUgNDguOTE2IDkuODQ2IDE0LjE3OSAxOC43NDcgMjguNzUgMjQuODkgNDUuNDUgMy43MDMgMTAuMzk3LTEuMTAyIDE4LjkwNS0xMy45NDEgMjQuMTAzeiIgZmlsbD0iIzRENkJGRSIvPjwvc3ZnPg==",ne=bt(59301),Qe=({value:dn,onChange:gn})=>{const[pn,Rn]=(0,vt.useState)(!1),Mi=[{name:"\u901A\u4E49\u5343\u95EE",key:"qwen-max",img:We},{name:"DeepSeek R1-671B",key:"deepseek-r1",img:It}],ji=Mi.find(wi=>wi.key===dn);return ne.createElement("div",{className:Lt.select},ne.createElement(kt.Z,{size:10},ne.createElement("span",{className:"c-grey-333 font16"},"\u6A21\u578B"),ne.createElement("div",{className:Lt.box,onMouseLeave:()=>Rn(!1)},ne.createElement("div",{className:Lt.text,onClick:()=>Rn(!0)},ne.createElement("img",{src:ji.img,width:20}),ne.createElement("span",null,ji.name),ne.createElement("b",{className:"iconfont icon-zhankai6"})),pn&&ne.createElement("div",{className:Lt.itemWrap},ne.createElement("aside",null,Mi.map(wi=>ne.createElement("div",{key:wi.key,className:`${Lt.item} ${wi.key===dn?Lt.active:""}`,onClick:Ji=>{Ji.stopPropagation(),gn(wi.key),Rn(!1)}},ne.createElement("img",{src:wi.img,width:20}),ne.createElement("span",null,wi.name))))))))},le={loadingPic:"loadingPic___y2kKZ",loading:"loading___UEUk1",dot:"dot___TYXFV","dot-fade":"dot-fade___KWn1a",wrap:"wrap___nU3cS",chatContainer:"chatContainer___PNe3Q",footerContainer:"footerContainer___hQATV",btnWrp:"btnWrp___mS8l6",btn:"btn___3za5U",btnActive:"btnActive____jzfb",inputContainer:"inputContainer___iCQ3u",uploadBtn:"uploadBtn___OHHJF",sendBtn:"sendBtn___ktaQl",sendBtnDisabled:"sendBtnDisabled___DVncF",cancelBtn:"cancelBtn___bzMDI",lineFour:"lineFour___Lhbz5",fullIcon:"fullIcon___YWXTV",footerContainerSelected:"footerContainerSelected___pGBh3",full:"full___dZLXo",li:"li___PjMV3",avatarIcon:"avatarIcon___ztGQ3",img:"img___wZqEA",content:"content___OlYYG",borderBox:"borderBox___tjHwt",text:"text___yWTCV",fileWrap:"fileWrap___IX778",file:"file___fxAKb",fileName:"fileName___RA8nu",source:"source___nkLC0",action:"action___I2zGy",disabledInput:"disabledInput___Buork",backBottom:"backBottom___SMuL2",head:"head___v8Eom",headBtn:"headBtn___IS7xR",menuWarp:"menuWarp___G6yj0",menu:"menu___M8VWP",menuText:"menuText___gRpb5",menuDel:"menuDel___eH_wg",active:"active___KWwPV"},Oe=bt(99064),on=bt(955),Cn={draggableImage:"draggableImage___vcTso",img:"img___xAyno",close:"close___WUtfj"},xn=({src:dn,onClick:gn,topPercentage:pn=.62,draggableExtraNode:Rn})=>{const Mi=(0,vt.useRef)(null),ji=(0,vt.useRef)(!1),wi=(0,vt.useRef)(!1),[Ji,wo]=(0,vt.useState)(window.innerHeight*pn),[Io,Wr]=(0,vt.useState)(!1),nr=10;return(0,vt.useEffect)(()=>{if(Mi.current){let Cr=function(dr){var Ui;ji.current=!0,hr=dr.pageY,fo=dr.pageY-(((Ui=Mi.current)==null?void 0:Ui.getBoundingClientRect().top)||0),(0,on.kk)("none"),document.onselectstart=function(){return!1}},bo=function(){ji.current&&!wi.current&&gn&&gn(),ji.current=!1,wi.current=!1,(0,on.kk)("auto"),document.onselectstart=null},Fo=function(dr){var Ui;if(ji.current){const Rs=dr.pageY-fo,Wo=window.innerHeight-(((Ui=Mi.current)==null?void 0:Ui.offsetHeight)||0)-50,Ss=50;if(!wi.current&&Math.abs(hr-dr.pageY)>nr&&(wi.current=!0),wi.current){let ta=Math.max(Ss,Math.min(Rs,Wo));wo(ta)}}},fo=0,hr=0;return Mi.current.addEventListener("mousedown",Cr),document.addEventListener("mousemove",Fo),document.addEventListener("mouseup",bo),()=>{var dr,Ui;(Ui=(dr=Mi==null?void 0:Mi.current)==null?void 0:dr.removeEventListener)==null||Ui.call(dr,"mousedown",Cr),document.removeEventListener("mousemove",Fo),document.removeEventListener("mouseup",bo)}}},[gn]),(0,vt.useEffect)(()=>{const Cr=()=>{wo(window.innerHeight*pn)};return window.addEventListener("resize",Cr),()=>{window.removeEventListener("resize",Cr)}},[pn]),vt.createElement("div",{className:Cn.draggableImage,style:{top:`${Ji}px`,display:Io?"none":"block",cursor:ji.current?"grabbing":"grab"},ref:Mi},Rn,vt.createElement("img",{className:Cn.img,src:dn,width:60,draggable:"false"}),vt.createElement("i",{className:`iconfont icon-tupianguanbi ${Cn.close}`,onMouseUp:Cr=>{Cr.stopPropagation(),Wr(!0)}}))},re="data:image/png;base64,iVBORw0KGgoAAAANS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4l6SfnkljNmnkF/992kIK0hZv3z+8tdPeOvTTuaHBmAUFWCFgrjhPGLDB5MYFIWQg0gGKJq/kVC6AzfWTaqpmf+IdDNuRF66ra3r19fcf+2dnzeT9VWs9B4FINP89sSP3lz1UHtd16SVK9vZvDlNLGaQJ4p0cfzZJa9g6Wk8Q89nnHjYQC754dGYwTBVQ/vw3D83MG/hZmQmiekFsHOjLN+cwczvy6rD9sfOyaO0O8E+bz1NjimYNLIUy1FDb8bCwr6hS39298++tfHhXiKsePbm4CdrzP9csyp+3dat6f52xiKfPqRthzmr5hK3u5CeIJxjcPbUcZx07HcIRMKU9S1iyRsp1s0V1CXqWd6xgWGFVSxoa6cqL6BbO6VFebpNU5IfYvnqFFPLv1PXUb7qDoPOx25+7uZvf0B8e9bfdd5/5aza6E5vaU5evk/JyLHddlysaVrOmoZqDAJUlORy/eXHU1FaSCg3gkhFWT3bZM7y1azt3ki/gjJC0RysYIa059LeGaeqJJ94Ii6H9Kv8NNcovk+uKXvqF8un/N/+CcBu5N24Yb8H9pfF6XOW1M+bUtNYP6yoIGRccPphjBrZT7dBcosjtC2PsnRBnNUNDdiik5I+BeREQnpsMZm2VQt7vcR+PRoJPC1mtc2/mZv///ojj90punz2WfN/nntvQHFezmRXpPcdP3bIqIL8whGWF6xc+04oL7kqQ2Pfpu5omAZThNY6GWuV4waWOp6xcGg0UDPtuWn/lj/j+X+Lbso4jJUfOwAAAABJRU5ErkJggg==",On=bt(3294),Un=bt(56102),hi=bt(24544),Ri=bt(58617),nn=bt(32050),un=Object.defineProperty,wn=Object.defineProperties,ze=Object.getOwnPropertyDescriptors,fn=Object.getOwnPropertySymbols,sn=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable,Mt=(dn,gn,pn)=>gn in dn?un(dn,gn,{enumerable:!0,configurable:!0,writable:!0,value:pn}):dn[gn]=pn,xt=(dn,gn)=>{for(var pn in gn||(gn={}))sn.call(gn,pn)&&Mt(dn,pn,gn[pn]);if(fn)for(var pn of fn(gn))Bt.call(gn,pn)&&Mt(dn,pn,gn[pn]);return dn},Ft=(dn,gn)=>wn(dn,ze(gn)),Ut=(dn,gn,pn)=>new Promise((Rn,Mi)=>{var ji=wo=>{try{Ji(pn.next(wo))}catch(Io){Mi(Io)}},wi=wo=>{try{Ji(pn.throw(wo))}catch(Io){Mi(Io)}},Ji=wo=>wo.done?Rn(wo.value):Promise.resolve(wo.value).then(ji,wi);Ji((pn=pn.apply(dn,gn)).next())}),ge=({title:dn="\u5934\u6B4CAI",placeholder:gn,hideUpload:pn,hideInputBox:Rn,aiIcon:Mi=re,userIcon:ji=kn,dragIcon:wi=Zn,children:Ji,fetchUrl:wo,fetchData:Io={},extraAnswerAction:Wr,showDefaultTips:nr=!0,onOpen:Cr,onClose:bo,loadingOption:Fo,showPreference:fo=!1,initMessage:hr,customRequest:dr,visible:Ui,width:Ct=1200,isCheckRestrictNumber:Rs=!1,headNode:Wo,headFunctionNode:Ss,showRedraw:ta,showEdit:ss,promptPropName:ea="prompt",topPercentage:Tn,showSwitchingModel:Qn=!1,showImageGenerator:we=!1,showLookHistory:pe=!1,fetchListObject:fe,customPreference:Bn,customDataNode:zn,showAddSession:Wn,historyId:be,draggableExtraNode:An,drawerExtraNode:li,menuExtraFunctionNode:Jn,showSceneAwareness:Ki=!1})=>{var ie,yn;const[Kn,Wi]=(0,vt.useState)(!1),[ke,an]=(0,vt.useState)("qwen-max"),[Gi,Co]=(0,vt.useState)([]),[Po,vi]=(0,vt.useState)([]),[Ci,ui]=(0,vt.useState)(!1),[yo,cr]=(0,vt.useState)(!1),[Vo,Xe]=(0,vt.useState)(!1),[_o,Do]=(0,vt.useState)([]),[io,je]=(0,vt.useState)(""),[bn,di]=(0,vt.useState)(0),[mi,fi]=(0,vt.useState)(void 0),[qi,To]=(0,vt.useState)(!1),[ho,co]=(0,vt.useState)(null),[jo,Je]=(0,vt.useState)(""),po=(0,vt.useRef)(),Ke=(0,vt.useRef)(null),Lo=(0,vt.useRef)(null),[as,vr]=(0,vt.useState)(!1),[Fs,yr]=(0,vt.useState)(!1),[cn,$o]=(0,vt.useState)(!1),[Ra,Ir]=(0,vt.useState)(!1),[Vn,Rt]=(0,vt.useState)(0),$r=(0,vt.useRef)(null),ps=(0,vt.useRef)(!1),na=(0,vt.useRef)(null),[ca,_l]=(0,vt.useState)(void 0),[ga,Eu]=(0,vt.useState)(!0),[Zl,tr]=(0,vt.useState)(Ct-28),[gr,Ea]=(0,vt.useState)(!1),[Ti,ci]=(0,vt.useState)(!0),[tn,Pi]=(0,vt.useState)([]),oo=(0,vt.useRef)([]),ir=(0,vt.useRef)(null),fr=(0,vt.useRef)(null),pr=(0,vt.useRef)(!1),Rr=Zl-22,Sr=io==null?void 0:io.split(` -`).length,{onAdd:Ga,onGetList:fa,onListClick:Ql,onListDelete:Me,onListDealData:Ts}=fe||{},Au=50,qa=10,au={maxCount:Au,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:Gi,multiple:!0,accept:".doc,.docx,.md,.txt,.pdf,.xlsx,.xls",beforeUpload:qe=>Ut(void 0,null,function*(){var Ni,Yi,to,No;const Bi=(No=(to=(Yi=(Ni=qe==null?void 0:qe.name)==null?void 0:Ni.split("."))==null?void 0:Yi.slice(-1))==null?void 0:to[0])==null?void 0:No.toLowerCase(),Yo=["doc","docx","md","pdf","txt","xlsx","xls"].includes(Bi);return qe.size==0?(oe.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),ue.default.LIST_IGNORE):Yo?qe.size/1024/1024>100?(oe.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u5236100MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),ue.default.LIST_IGNORE):!0:(oe.ZP.warning("\u76EE\u524D\u652F\u6301txt\u3001md\u3001doc\u3001docx\u3001pdf\u3001xlsx\u3001xls\u6587\u4EF6"),ue.default.LIST_IGNORE)}),onChange:({fileList:qe})=>{Co(qe)},action:`${(ie=On.Z)==null?void 0:ie.API_SERVER}/api/intelligent_imports/upload_file.json`},Lr={maxCount:qa,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:Po,multiple:!0,accept:".jpg,.png,",beforeUpload:qe=>{var Ni,Yi,to,No;const Bi=(No=(to=(Yi=(Ni=qe==null?void 0:qe.name)==null?void 0:Ni.split("."))==null?void 0:Yi.slice(-1))==null?void 0:to[0])==null?void 0:No.toLowerCase(),Yo=["jpg","png"].includes(Bi);return qe.size==0?(oe.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),ue.default.LIST_IGNORE):Yo?qe.size/1024/1024>10?(oe.ZP.warning("\u4E0A\u4F20\u7684\u56FE\u7247\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),ue.default.LIST_IGNORE):!0:(oe.ZP.warning("\u76EE\u524D\u652F\u6301jpg\u3001png"),ue.default.LIST_IGNORE)},onChange:({fileList:qe})=>{vi(qe)},action:`${(yn=On.Z)==null?void 0:yn.API_SERVER}/api/ai/generals/update_file.json`};(0,vt.useEffect)(()=>{if(!_o.length||!po.current)return;const qe=_o[_o.length-1];qe!=null&&qe.loading&&(po.current.scrollTop=po.current.scrollHeight)},[_o.length]),(0,vt.useEffect)(()=>{if(!po.current||!$r.current)return;const qe=new IntersectionObserver(([Ni])=>{Eu(Ni.isIntersecting)},{root:po.current,rootMargin:"70px",threshold:0});return qe.observe($r.current),()=>{$r.current&&qe.unobserve($r.current)}},[po.current,$r.current]),(0,vt.useEffect)(()=>{if(!as)return;const qe=po.current,Ni=na.current;ps.current=!1;let Yi=qe.scrollTop;const to=()=>{const{scrollTop:Bi,scrollHeight:Oo,clientHeight:Yo}=qe;Bi>Yi?Bi+Yo>=Oo-50&&(qe.scrollTop=qe.scrollHeight,ps.current=!1):Bi{ps.current||(qe.scrollTop=qe.scrollHeight)});return No.observe(Ni),()=>{var Bi;No.unobserve(Ni),(Bi=qe==null?void 0:qe.removeEventListener)==null||Bi.call(qe,"scroll",to)}},[as]),(0,vt.useEffect)(()=>{!as&&oo.current.length&&(Do([..._o,...oo.current]),oo.current=[])},[as]),(0,vt.useEffect)(()=>{if(!po.current)return;const qe=new ResizeObserver(()=>{tr(po.current.offsetWidth)});return qe.observe(po.current),()=>{po.current&&qe.unobserve(po.current)}},[po.current]),(0,vt.useEffect)(()=>{typeof Ui=="boolean"&&Wi(Ui)},[Ui]),(0,vt.useEffect)(()=>{var qe;if(Ke.current&&ho!==null){Ke.current.focus();const Ni=(qe=Ke.current.resizableTextArea)==null?void 0:qe.textArea;Ni&&(Ni.selectionStart=Ni.selectionEnd=Ni.value.length)}},[ho]),(0,vt.useEffect)(()=>{Sr<5&&To(!1)},[Sr]),(0,vt.useEffect)(()=>{Kn&&hr&&(Do(kl(hr)),ui(!0),ii(hr,{history:[]})),Kn&&(xs(),be?Dl(be):Wn&&!ca&&pa()),Kn||gl()},[Kn]);const kl=(qe="",Ni=[],Yi=[])=>{const to=Date.now();return[{text:qe,key:to,sender:"user",fileList:Ni,imageList:Yi,show:!0},{loading:!0,key:to,sender:"AI",show:!0,model:ke,imageGenerator:cn,thinkingEnabled:Fs}]},gl=()=>{Je(""),co(null),Co([]),vi([]),je("")},Ko=()=>{if(Cr){Cr({chatData:_o,setChatData:Do,setLoading:ui,getData:ii,renderChatItems:kl,handleAdd:pa,identifier:ca});return}Wi(!0)},Yr=()=>{if(ci(!0),bo){bo();return}Wi(!1)},Nu=()=>{To(!qi)},xs=()=>Ut(void 0,null,function*(){if(!Rs)return;const qe=yield(0,Oe.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});(qe==null?void 0:qe.status)===0&&(qe==null?void 0:qe.total_number)!==-1&&(di((qe==null?void 0:qe.total_number)-(qe==null?void 0:qe.remaining_number)),fi(qe==null?void 0:qe.total_number))}),ku=()=>{Be.default.info({title:"\u63D0\u793A",icon:null,okText:"\u6211\u77E5\u9053\u4E86",width:510,centered:!0,content:vt.createElement("div",null,vt.createElement("div",{style:{color:"#FA6400"}},"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),vt.createElement("div",{className:"c-grey-333 mt5"},"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F\u7528",mi,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))})},Aa=qe=>qe.reduce((Yi,to)=>{if(to.sender==="user"){const No=qe.find(Bi=>Bi.key===to.key&&Bi.sender==="AI");No&&(No!=null&&No.text)&&!(No!=null&&No.error)&&Yi.push({question:to.text,answer:No.text})}return Yi},[]),ii=(...qe)=>Ut(void 0,[...qe],function*(Ni="",Yi={},to=_o){if(dr&&(yield dr({mes:Ni,setChatData:Do,fileList:Gi,body:Yi,checkNum:xs,setLoading:ui,bodyChatData:to,setTyping:vr,setImageGenerator:$o,renderChatItems:kl})),!dr){const No=Gi==null?void 0:Gi.map(_r=>{var Hs;return(Hs=_r==null?void 0:_r.response)==null?void 0:Hs.file_id}),Bi=Po==null?void 0:Po.map(_r=>{var Hs;return(Hs=_r==null?void 0:_r.response)==null?void 0:Hs.data}),Oo=Yi.history||Aa(to),Yo=xt(xt({identifier:ca,response_mode:"streaming",model:ke,scene_awareness:Ra,thinking_enabled:Fs,image_generator:cn,file_ids:No,image_list:Bi,history:Oo,[ea]:Ni},Io),Yi),ws=Object.fromEntries(Object.entries(Yo).filter(([_r,Hs])=>Hs!==void 0));Lo.current=new hi.Z(On.Z.API_SERVER+wo,ws),yield new Promise((_r,Hs)=>{let Dr=null,Ph=null;Lo.current.on("data",Le=>{vr(!0);const{chunk:{content:ce,type:Qt,created:ti,msg:yi}}=Le,Si=yi==="error";Qt==="thinking"&&(Dr=Dr||ti,Do(Oi=>[...Oi].map((Li,ei)=>ei===Oi.length-1?Ft(xt({},Li),{reasoning:(Li.reasoning||"")+ce,loading:!1,hideAnswer:!0,error:Si}):Li))),Qt==="text"&&(Ph=Ph||ti,Do(Oi=>[...Oi].map((Li,ei)=>ei===Oi.length-1?Ft(xt({},Li),{text:(Li.text||"")+ce,loading:!1,startTime:Dr,endTime:Ph,error:Si}):Li)))}),Lo.current.on("done",()=>{_r()}),Lo.current.on("error",()=>{const Le="\u62B1\u6B49\uFF0C\u6211\u521A\u521A\u9047\u5230\u4E86\u4E00\u70B9\u95EE\u9898\uFF0C\u6CA1\u80FD\u5B8C\u6210\u60A8\u7684\u8BF7\u6C42\u3002\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\u4E00\u6B21\uFF0C\u6216\u8005\u8054\u7CFB\u6280\u672F\u652F\u6301\u5E2E\u5FD9\u89E3\u51B3!";Do(ce=>[...ce].map((Qt,ti)=>ti===ce.length-1?Ft(xt({},Qt),{text:Le,loading:!1,error:!0}):Qt)),_r()}),Lo.current.on("cancelled",()=>{_r()}),Lo.current.startStream()})}xs(),ui(!1)}),xh=qe=>{je(qe.target.value)},wh=(qe,Ni)=>{if(gl(),ui(!0),qe==="edit"){oo.current=_o.slice(Ni+2);const Yi=_o.splice(Ni),{fileList:to,imageList:No}=(Yi==null?void 0:Yi[0])||{},Bi=to.map(ws=>{var _r;return(_r=ws.response)==null?void 0:_r.file_id}),Oo=No.map(ws=>{var _r;return(_r=ws.response)==null?void 0:_r.data}),Yo={history:Aa(_o),file_ids:Bi,image_list:Oo,edit:!0};Do([..._o,...kl(jo,to,No)]),ii(jo,Yo,_o)}if(qe==="redraw"){oo.current=_o.slice(Ni+1);const Yi=_o.splice(Ni-1),{text:to,fileList:No,imageList:Bi}=(Yi==null?void 0:Yi[0])||{},Oo=No.map(_r=>{var Hs;return(Hs=_r.response)==null?void 0:Hs.file_id}),Yo=Bi.map(_r=>{var Hs;return(Hs=_r.response)==null?void 0:Hs.data}),ws={history:Aa(_o),file_ids:Oo,image_list:Yo,edit:!0};Do([..._o,...kl(to,No,Bi)]),ii(to,ws,_o)}},Ha=()=>{if(io.trim()!==""){gl(),ui(!0);const qe=Gi.filter(Yi=>Yi.status==="done"),Ni=Po.filter(Yi=>Yi.status==="done");Do([..._o,...kl(io,qe,Ni)]),ii(io)}},ed=qe=>{if(qe.shiftKey){if(qe.key==="Enter")return}else if(qe.key==="Enter"){if(qe.preventDefault(),Fl||pr.current)return;Ha()}},nd=(qe,Ni)=>{let Yi=!1;ss===!0?Yi=!0:ss==="last"&&(Yi=_o.reduce((Oo,Yo,ws)=>Yo.sender==="user"?ws:Oo,-1)===Ni);const to=Ni===ho,No=[...(qe==null?void 0:qe.fileList)||[],...(qe==null?void 0:qe.imageList)||[]];return vt.createElement("div",{className:le.li,style:{width:Rr}},vt.createElement("div",{className:le.avatarIcon},vt.createElement("img",{className:le.img,src:ji})),vt.createElement("div",{className:le.content},!!(No!=null&&No.length)&&vt.createElement("div",{className:le.fileWrap},No==null?void 0:No.map((Bi,Oo)=>{var Yo,ws;return vt.createElement("div",{key:Oo,className:le.file},vt.createElement("img",{src:bt(90034)(`./${((ws=(Yo=Bi==null?void 0:Bi.name)==null?void 0:Yo.split("."))==null?void 0:ws.pop())||"txt"}.png`),width:20,className:"mr10"}),vt.createElement("aside",null,vt.createElement(me.Z,{title:Bi==null?void 0:Bi.name},vt.createElement("div",{className:le.fileName},Bi==null?void 0:Bi.name)),vt.createElement("div",{className:"c-grey-999 font12"},(0,on.RD)(Bi==null?void 0:Bi.size))))})),vt.createElement("div",{className:le.borderBox},to?vt.createElement(Ee.default.TextArea,{value:jo,ref:Ke,autoSize:!0,placeholder:"\u8BF7\u8F93\u5165",bordered:!1,onChange:Bi=>Je(Bi.target.value)}):vt.createElement("div",{className:le.text},qe==null?void 0:qe.text)),to?vt.createElement("div",{className:le.action},vt.createElement(qt.ZP,{onClick:()=>{Je(""),co(null)},size:"small"},"\u53D6\u6D88"),vt.createElement(qt.ZP,{disabled:!jo.trim(),onClick:()=>wh("edit",Ni),type:"primary",size:"small"},"\u786E\u8BA4")):vt.createElement("div",{className:le.action},vt.createElement(Un.CopyToClipboard,{text:(qe==null?void 0:qe.text)||"",onCopy:()=>oe.ZP.success("\u590D\u5236\u6210\u529F")},vt.createElement(me.Z,{title:"\u590D\u5236"},vt.createElement("i",{className:"iconfont icon-fuzhi8 font13"}))),Yi&&!Ci&&vt.createElement(me.Z,{title:"\u7F16\u8F91"},vt.createElement("i",{onClick:()=>{co(Ni),Je((qe==null?void 0:qe.text)||"")},className:"iconfont icon-bianji10 font14"})))))},jn=(qe,Ni)=>{let Yi=!1;ta===!0?Yi=!0:ta==="last"&&(Yi=_o.reduce((Bi,Oo,Yo)=>Oo.sender==="AI"?Yo:Bi,-1)===Ni);let to="";return qe!=null&&qe.source?to=qe==null?void 0:qe.source:(qe==null?void 0:qe.model)==="deepseek-r1"?to="\u7531deepseek\u751F\u6210":(qe==null?void 0:qe.model)==="qwen-max"&&(to="\u7531\u901A\u4E49\u5343\u95EE\u751F\u6210"),vt.createElement("div",{className:le.li,style:{width:Rr}},vt.createElement("div",{className:le.avatarIcon},vt.createElement("img",{className:le.img,src:Mi})),vt.createElement("div",{className:le.content},vt.createElement("div",{className:le.borderBox},qe.loading&&vt.createElement(vt.Fragment,null,qe!=null&&qe.imageGenerator?vt.createElement("div",{className:le.loadingPic},"\u6B63\u5728\u751F\u6210\u4E2D",vt.createElement("div",{className:"ai-loading"})):!(qe!=null&&qe.thinkingEnabled)&&vt.createElement("div",null,vt.createElement("div",{className:le.loading},vt.createElement("div",{className:le.dot}),vt.createElement("div",{className:le.dot}),vt.createElement("div",{className:le.dot})),vt.createElement("div",{style:{marginTop:10,color:"#9096A3"}},(Fo==null?void 0:Fo.text)||"\u8BF7\u8010\u5FC3\u7B49\u5F85\uFF0C\u76EE\u524D\u9AD8\u5CF0\u671F\u4F53\u9A8C\u4EBA\u6570\u8FC7\u591A\uFF0C\u6211\u4EEC\u5DF2\u8BB0\u5F55\u4E0B\u60A8\u7684\u9700\u6C42\uFF0C\u7A0D\u540E\u5C06\u81EA\u52A8\u4E3A\u60A8\u751F\u6210\u7B54\u6848\u3002"))),(qe==null?void 0:qe.thinkingEnabled)&&vt.createElement(yt,{time:qe==null?void 0:qe.time,cancelIndex:Vn,loading:qe.loading,streamingStatus:!(qe!=null&&qe.text),onFinish:()=>{Rt(0),Do(No=>[...No].map((Bi,Oo)=>Oo===No.length-1?Ft(xt({},Bi),{hideAnswer:!1,time:Bi.startTime?Bi.endTime-Bi.startTime:null}):Bi))},value:qe==null?void 0:qe.reasoning}),!!(qe!=null&&qe.text)&&!qe.hideAnswer&&vt.createElement(et.Z,{cancelIndex:Vn,streamingStatus:Ci,loadImage:!!(qe!=null&&qe.imageGenerator),onFinish:()=>Ut(void 0,null,function*(){Rt(0),setTimeout(()=>vr(!1),0)}),value:qe==null?void 0:qe.text})),!!(qe!=null&&qe.text)&&to&&vt.createElement("div",{className:le.source},to),vt.createElement("div",{className:le.action},Wr==null?void 0:Wr(qe,Ni,{onMenuClick:Dl}),vt.createElement(Un.CopyToClipboard,{text:String((qe==null?void 0:qe.text)||""),onCopy:()=>oe.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},vt.createElement(me.Z,{title:"\u590D\u5236"},vt.createElement("i",{className:"iconfot icon-fuzhi8 font13"}))),fo&&!Ci&&vt.createElement(vt.Fragment,null,vt.createElement(me.Z,{title:"\u559C\u6B22"},vt.createElement("i",{style:qe!=null&&qe.like?{color:"#FA8D30"}:{},onClick:()=>Er("like",!(qe!=null&&qe.like),Ni),className:"iconfot icon-yijiejue font15"})),vt.createElement(me.Z,{title:"\u4E0D\u559C\u6B22"},vt.createElement("i",{style:qe!=null&&qe.dislike?{color:"#e86d7c"}:{},onClick:()=>Er("dislike",!(qe!=null&&qe.dislike),Ni),className:"iconfot icon-weijiejuezhengchang font15"}))),Yi&&!Ci&&vt.createElement(me.Z,{title:"\u91CD\u65B0\u751F\u6210"},vt.createElement("i",{onClick:()=>wh("redraw",Ni),className:"iconfot icon-gengxin-genghuan-tihuan"})))))},Er=(qe,Ni,Yi)=>Ut(void 0,null,function*(){if(Bn){const to=_o.slice(0,Yi+1),Bi=Aa(to).length;yield Bn({type:qe,value:Ni,index:Yi,identifier:ca,objectIndex:Bi})}Do(to=>(to[Yi][qe]=Ni,Ni&&(to[Yi][qe==="like"?"dislike":"like"]=!1),[...to]))}),Vr=()=>{var qe,Ni;Rt(1),(Ni=(qe=Lo.current)==null?void 0:qe.cancelRequest)==null||Ni.call(qe),ui(!1),vr(!1)},pa=()=>Ut(void 0,null,function*(){var qe,Ni,Yi;(Ni=(qe=Lo.current)==null?void 0:qe.cancelRequest)==null||Ni.call(qe),gl(),Do([]),ui(!0);const to=yield Ga();(to==null?void 0:to.status)===0&&_l((Yi=to==null?void 0:to.data)==null?void 0:Yi.identifier),ui(!1),vr(!1)}),lu=()=>Ut(void 0,null,function*(){var qe;Xe(!0);const Ni=yield fa();(Ni==null?void 0:Ni.status)===0&&Pi(((qe=Ni==null?void 0:Ni.data)==null?void 0:qe.list)||[]),Xe(!1)}),Dl=(...qe)=>Ut(void 0,[...qe],function*(Ni=ca){var Yi,to,No,Bi;(to=(Yi=Lo.current)==null?void 0:Yi.cancelRequest)==null||to.call(Yi),gl(),cr(!0);const Oo=yield Ql(Ni);if(Oo.status===0){const Yo=Ts(((No=Oo==null?void 0:Oo.data)==null?void 0:No.messages)||[]);Do(Yo),cr(!1),_l((Bi=Oo==null?void 0:Oo.data)==null?void 0:Bi.identifier);return}Do([]),cr(!1)}),zi=(qe,Ni)=>Ut(void 0,null,function*(){(yield Me(qe)).status===0&&(oe.ZP.success("\u5220\u9664\u6210\u529F"),Ni===ca&&pa(),lu())}),Ju=()=>vt.createElement("div",{className:le.menuWarp},vt.createElement("h4",null,"\u5386\u53F2\u5BF9\u8BDD"),vt.createElement(Ce.Z,{spinning:Vo},!tn.length&&vt.createElement(Se.Z,{style:{width:250,paddingBottom:30},image:Se.Z.PRESENTED_IMAGE_SIMPLE}),!!tn.length&&vt.createElement("div",{className:le.menu},tn.map(function(qe,Ni){return vt.createElement("aside",{className:Dt()(ca===qe.identifier&&le.active),key:qe.id,onClick:()=>Dl(qe.id)},vt.createElement("div",{className:le.menuText},vt.createElement(me.Z,{title:qe==null?void 0:qe.question},vt.createElement("span",null,qe==null?void 0:qe.question)),Jn&&Jn(qe)),vt.createElement("div",{className:le.menuDel,onClick:Yi=>Yi.stopPropagation()},vt.createElement(ve.Z,{title:"\u63D0\u793A",description:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u672C\u6761\u5BF9\u8BDD\u5417\uFF1F",onConfirm:()=>zi(qe.id,qe.identifier),okText:"\u786E\u8BA4",zIndex:1100,cancelText:"\u53D6\u6D88"},vt.createElement("i",{className:"iconfont icon-shanchu14 delete-hover font14"}))))})))),$a=qe=>{if(qe==="file"){if(Po.length){Be.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4\u8986\u76D6",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5DF2\u5B58\u5728\u56FE\u7247\uFF0C\u4E0A\u4F20\u6587\u4EF6\u540E\u56FE\u7247\u5C06\u4F1A\u88AB\u8986\u76D6?",onOk:()=>{vi([]),ir.current.upload.uploader.fileInput.click()}});return}ir.current.upload.uploader.fileInput.click()}if(qe==="image"){if(Gi.length){Be.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4\u8986\u76D6",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5DF2\u5B58\u5728\u6587\u4EF6\uFF0C\u4E0A\u4F20\u56FE\u7247\u540E\u6587\u4EF6\u5C06\u4F1A\u88AB\u8986\u76D6?",onOk:()=>{Co([]),fr.current.upload.uploader.fileInput.click()}});return}fr.current.upload.uploader.fileInput.click()}},ia=[{key:"file",disabled:Gi.length>=Au,label:vt.createElement(me.Z,{placement:"right",title:vt.createElement("div",null,vt.createElement("b",null,"\u4E0A\u4F20\u9644\u4EF6\uFF08\u4EC5\u8BC6\u522B\u6587\u5B57\uFF09"),vt.createElement("div",null,"\u6700\u591A 50 \u4E2A\uFF0C\u6BCF\u4E2A 100 MB\uFF0C\u652F\u6301\u5404\u7C7B\u578B\u6587\u6863"))},vt.createElement("span",null,vt.createElement("i",{className:"iconfont icon-fujian3 font14 mr5"}),"\u4E0A\u4F20\u6587\u6863"))},ke!=="deepseek-r1"&&{key:"image",disabled:Po.length>=qa,label:vt.createElement(me.Z,{placement:"right",title:"\u652F\u6301\u4E0D\u8D85\u8FC710M\u7684PNG/JPG\u56FE\u7247\uFF0C\u6700\u591A10\u4E2A"},vt.createElement("span",null,vt.createElement("i",{className:"iconfont icon-tupianshangchuan font14 mr5"}),"\u4E0A\u4F20\u56FE\u7247"))}].filter(Boolean),Bs=[...Gi,...Po],Fl=Bs.some(qe=>qe.status==="uploading")||Ci||as,Ge=bn>=mi,Gs=pn||Gi.length>=Au||Po.length>=qa,Ua=cn||Fs||Ra||!!Bs.length;return console.log(Bs,"fileAndImageList"),vt.createElement("div",null,Ji?vt.createElement("div",{onClick:Ko},Ji):vt.createElement(xn,{draggableExtraNode:An,src:wi,onClick:Ko,topPercentage:Tn}),vt.createElement(se.Z,{open:Kn,width:gr?"100%":Ct,afterOpenChange:qe=>{qe&&ci(!1)},push:!1,contentWrapperStyle:Ti?{}:{transition:"none"},extra:vt.createElement("div",{className:le.head},li,Qn&&vt.createElement(Qe,{value:ke,onChange:qe=>{yr(!1),$o(!1),an(qe),vi([]),Co([])}}),pe&&vt.createElement(vt.Fragment,null,vt.createElement(Ae.Z,{dropdownRender:Ju,onOpenChange:qe=>{qe&&lu()},placement:"bottomLeft",arrow:!0},vt.createElement("div",{className:le.headBtn},vt.createElement("i",{className:"icon-lishiduihua1 font14 mr10"}),"\u5386\u53F2\u5BF9\u8BDD"))),Wn&&vt.createElement(vt.Fragment,null,vt.createElement("div",{className:le.headBtn,onClick:pa},vt.createElement("i",{className:"icon-xinjianduihua font14 mr10"}),"\u65B0\u5EFA\u5BF9\u8BDD")),vt.createElement(me.Z,{title:gr?"\u9000\u51FA\u5168\u5C4F":"\u5168\u5C4F"},vt.createElement("div",{className:le.headBtn,style:{padding:"0 12px"},onClick:()=>Ea(!gr)},gr&&vt.createElement("i",{className:"iconfont icon-tuichuquanping3"}),!gr&&vt.createElement("i",{className:"iconfont icon-quanping4"})))),title:vt.createElement("span",{className:"c-grey-333 font16"},dn),onClose:Yr,bodyStyle:{paddingRight:4}},vt.createElement("div",{className:Dt()(le.wrap,Kn&&"body-overflow-hidden")},vt.createElement("div",{ref:po,className:le.chatContainer},nr&&vt.createElement("div",{className:`${le.li} mb20`,style:{width:Rr}},vt.createElement("div",{className:le.avatarIcon},vt.createElement("img",{className:le.img,src:Mi})),vt.createElement("div",{className:le.content},vt.createElement("div",{className:le.borderBox},Wo,Ss==null?void 0:Ss({isDisabledNum:Ge,checkNumModal:ku,checkNum:xs,onClose:Yr,setChatData:Do,setLoading:ui,getData:ii,clearStatus:gl,typing:as,setImageGenerator:$o,renderChatItems:kl,setSceneAwareness:Ir})))),vt.createElement("div",{ref:na},vt.createElement(Ce.Z,{spinning:yo,className:"mt20"},_o==null?void 0:_o.map((qe,Ni)=>vt.createElement(vt.Fragment,{key:qe.key+Ni},qe.show&&vt.createElement(vt.Fragment,null,qe.sender==="user"&&nd(qe,Ni),qe.sender==="AI"&&jn(qe,Ni),zn&&!["AI","user"].includes(qe.sender)&&zn(qe,Ni,{width:Rr})))))),!ga&&vt.createElement("div",{className:le.backBottom,onClick:()=>{po.current.scrollTop=po.current.scrollHeight}},vt.createElement("i",{className:"iconfont icon-huidaodibu"})),vt.createElement("div",{ref:$r})),!Rn&&vt.createElement("div",{className:Dt()(le.footerContainer,qi&&le.full,Ua&&le.footerContainerSelected)},vt.createElement("div",{className:le.btnWrp},Ki&&vt.createElement(me.Z,{title:"\u667A\u80FD\u611F\u77E5\u5F53\u524D\u60C5\u5883\uFF0C\u63D0\u4F9B\u9488\u5BF9\u6027\u89E3\u7B54"},vt.createElement("div",{onClick:()=>Ir(!Ra),className:Dt()(le.btn,Ra&&le.btnActive)},vt.createElement("i",{className:"iconfont icon-changjingganzhi mr10 font12"}),"\u573A\u666F\u611F\u77E5")),ke==="deepseek-r1"&&vt.createElement(me.Z,{title:"\u8C03\u7528\u65B0\u6A21\u578B DeepSeek-R1\uFF0C\u89E3\u51B3\u63A8\u7406\u95EE\u9898"},vt.createElement("div",{onClick:()=>yr(!Fs),className:Dt()(le.btn,Fs&&le.btnActive)},vt.createElement("i",{className:"iconfont icon-shendusikao mr10 font12"}),"\u6DF1\u5EA6\u601D\u8003\uFF08R1\uFF09")),we&&ke==="qwen-max"&&vt.createElement("div",{onClick:()=>$o(!cn),className:Dt()(le.btn,cn&&le.btnActive)},vt.createElement("i",{className:"iconfont icon-shangchuantupian2 mr10 font12"}),"\u56FE\u50CF\u751F\u6210"),Bs.map(qe=>vt.createElement("div",{key:qe.uid},(qe==null?void 0:qe.status)==="uploading"&&vt.createElement(Ce.Z,{indicator:vt.createElement(Ri.Z,{spin:!0}),className:"mr10",size:"small",spinning:!0}),vt.createElement("span",{title:qe==null?void 0:qe.name,className:"mr10"},(0,on.Pq)(qe.name,20)),vt.createElement("i",{onClick:()=>{Co(Ni=>Ni.filter(Yi=>Yi.uid!==qe.uid)),vi(Ni=>Ni.filter(Yi=>Yi.uid!==qe.uid))},className:"iconfont current icon-shanchu15 delete-hover c-red-ee4 font12"})))),vt.createElement(me.Z,{title:Ge&&vt.createElement("div",null,vt.createElement("div",null,"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),vt.createElement("div",null,"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F",mi,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))},vt.createElement("div",{className:Dt()(le.inputContainer,Sr>4&&le.lineFour,Ge&&le.disabledInput)},vt.createElement(ue.default,xt({ref:ir},au)),vt.createElement(ue.default,xt({ref:fr},Lr)),vt.createElement(Ae.Z,{className:`${Gs&&"hide"}`,menu:{items:ia,onClick:qe=>$a(qe.key)},placement:"top"},vt.createElement(qt.ZP,{className:le.uploadBtn,icon:vt.createElement(nn.Z,{style:{fontSize:18,color:"#FFF"}})})),vt.createElement(Ee.default.TextArea,{rows:Sr>4?4:Sr,placeholder:gn||"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u95EE\u9898\u5427,Shift+Enter\u6362\u884C\uFF5E",value:io,bordered:!1,style:Gs?{paddingLeft:0,marginLeft:0}:{},onChange:xh,onPressEnter:ed,onCompositionStart:()=>{pr.current=!0},onCompositionEnd:()=>{pr.current=!1}}),as?vt.createElement(me.Z,{title:"\u505C\u6B62\u751F\u6210"},vt.createElement("div",{className:`iconfont icon-tingzhihuida ${le.cancelBtn}`,onClick:Vr})):vt.createElement(qt.ZP,{className:(io==null?void 0:io.trim())===""?le.sendBtnDisabled:le.sendBtn,icon:vt.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:Fl,onClick:Ha}),Sr>4&&vt.createElement("span",{className:le.fullIcon,onClick:Nu},qi&&vt.createElement("span",{className:"iconfont icon-shousuo"}),!qi&&vt.createElement("span",{className:"iconfont icon-zhankai"}))))))))}},23765:function(Ze,En,bt){"use strict";bt.d(En,{Z:function(){return et}});var vt=bt(59301),oe={flex_box_center:"flex_box_center___A3pzf",flex_space_between:"flex_space_between___JBoa5",flex_box_vertical_center:"flex_box_vertical_center___MJuIO",flex_box_center_end:"flex_box_center_end___OcjUA",flex_box_column:"flex_box_column___zSH4A",list:"list___KhJas",middle:"middle___IjlYi",row:"row___GGtIx",title:"title___o_xqf",size:"size___OVRoL",download:"download___ZLcIH",preview:"preview___gi0kI",annotation:"annotation___KVSwj"},ue=bt(92310),Be=bt.n(ue),me=bt(23210),Ee=bt(16406),qt=bt(955),Ce=bt(3294),Se=bt(99064),ve=bt(24065),se=bt(89070),Ae=bt(8591),_e=(nt,ct,lt)=>new Promise((pt,yt)=>{var Lt=Yt=>{try{Ht(lt.next(Yt))}catch($t){yt($t)}},kt=Yt=>{try{Ht(lt.throw(Yt))}catch($t){yt($t)}},Ht=Yt=>Yt.done?pt(Yt.value):Promise.resolve(Yt.value).then(Lt,kt);Ht((lt=lt.apply(nt,ct)).next())});const Dt=({className:nt,style:ct,dataSource:lt=[],authority:pt=!1,callback:yt,showDimensions:Lt=!0,classroomList:kt})=>{var Ht;const[Yt,$t]=(0,vt.useState)({content:"",type:""}),[ee,te]=(0,vt.useState)({}),[Pe,ae]=(0,vt.useState)(!1),[We,ye]=(0,vt.useState)({title:"",visible:!1,src:"",snapshotData:{}}),Ne=(0,vt.useRef)(),Ie=Vt=>_e(void 0,null,function*(){if(te(Vt),Vt.file_type==="txt"){const It=yield(0,Se.ZP)(Vt.url,{method:"get",headers:{"Content-Type":"application/xml"}});Ne.current=It}$t({type:Vt.file_type,content:Ce.Z.API_SERVER+Vt.url})}),rn=Vt=>{var It;ye({visible:!0,src:Ce.Z.API_SERVER+Vt.url,id:Vt.id,title:Vt.title,snapshotData:(It=Vt==null?void 0:Vt.subitem)==null?void 0:It.settings})},Dn=Vt=>_e(void 0,null,function*(){var It;$t({type:Vt.file_type,content:Ce.Z.API_SERVER+((It=Vt==null?void 0:Vt.subitem)==null?void 0:It.url)})}),vn=()=>{yt(),ye({visible:!1})};return lt!=null&<.length?vt.createElement(vt.Fragment,null,vt.createElement("div",{className:Be()(oe.list,nt),style:ct},lt.map((Vt,It)=>{var ne,De,Qe;return vt.createElement("div",{key:It,className:oe.row},vt.createElement("div",{className:oe.title,onClick:()=>Ie(Vt)},vt.createElement("i",{className:"iconfont icon-fujian1"}),vt.createElement("span",{title:Vt.title},Vt.title)),vt.createElement("div",{className:oe.size},Vt.filesize),vt.createElement("div",{className:oe.download,onClick:()=>{var le,Oe;if((0,ve.Rm)()&&!((le=kt.AssistantObject.normal)!=null&&le.can_download)){Ae.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}(0,qt.Nd)("",`${Ce.Z.API_SERVER}${(Oe=Vt.url)==null?void 0:Oe.replace("disposition=inline","")}`)}},vt.createElement("i",{className:"iconfont icon-xiazai4"}),"\u4E0B\u8F7D"),!["other","download"].includes(Vt==null?void 0:Vt.file_type)&&vt.createElement("div",{className:oe.preview,onClick:()=>Ie(Vt)},vt.createElement("i",{className:"iconfont icon-yulan"}),"\u9884\u89C8"),["image"].includes(Vt==null?void 0:Vt.file_type)&&Lt&&(pt?vt.createElement("div",{className:oe.annotation,onClick:()=>rn(Vt)},vt.createElement("i",{className:"iconfont icon-pizhu"}),(ne=Vt.subitem)!=null&&ne.id?"\u4FEE\u6539\u6279\u6CE8":"\u6279\u6CE8"):((De=Vt.subitem)==null?void 0:De.id)&&vt.createElement("div",{className:oe.annotation,onClick:()=>Dn(Vt)},vt.createElement("i",{className:"iconfont icon-chakanlaoshipizhu1"}),"\u67E5\u770B\u8001\u5E08\u6279\u6CE8")),["image"].includes(Vt==null?void 0:Vt.file_type)&&((Qe=Vt.subitem)==null?void 0:Qe.id)&&vt.createElement("div",{className:oe.download,style:{marginLeft:20},onClick:()=>{var le,Oe;(0,qt.Nd)("",`${Ce.Z.API_SERVER}${(Oe=(le=Vt==null?void 0:Vt.subitem)==null?void 0:le.url)==null?void 0:Oe.replace("disposition=inline","")}`)}},vt.createElement("i",{className:"iconfont icon-xiazai4"}),"\u4E0B\u8F7D\u6279\u6CE8\u6587\u4EF6"),["office"].includes(Vt==null?void 0:Vt.file_type)&&(0,ve.eB)()&&["xlsx","docx","pptx"].includes(Vt==null?void 0:Vt.file_sub)&&Lt&&vt.createElement("div",{className:oe.annotation,onClick:()=>{ae(!0),Ie(Vt)}},vt.createElement("i",{className:"iconfont icon-pizhu"}),Vt.is_edit?"\u4FEE\u6539\u6279\u6CE8":"\u6279\u6CE8"),Vt.is_edit&&(0,ve.dE)()&&Lt&&vt.createElement("div",{className:oe.annotation,onClick:()=>{Ie(Vt)}},vt.createElement("i",{className:"iconfont icon-sousuo7"}),"\u67E5\u770B\u8001\u5E08\u6279\u6CE8"))})),vt.createElement(me.Z,{close:!0,data:Yt==null?void 0:Yt.content,type:Yt==null?void 0:Yt.type,hasMask:!0,disabledDownload:(0,ve.Rm)()&&!((Ht=kt.AssistantObject.normal)!=null&&Ht.can_download),editOffice:Pe?"edit":"view",monacoEditor:{value:Ne.current,language:"txt",onChange:()=>{},options:{readOnly:!0,fontSize:14,minimap:{enabled:!1}}},onImgDimensions:pt&&Lt&&Yt.type==="image"?()=>rn(ee):null,onClose:()=>{yt(),ae(!1),$t({content:"",type:""})}}),vt.createElement(Ee.Z,{onOk:vn,onClose:()=>ye({visible:!1}),data:We,showFullTools:!0})):null};var et=(0,se.connect)(({classroomList:nt})=>({classroomList:nt}))(Dt)},16406:function(Ze,En,bt){"use strict";bt.d(En,{Z:function(){return sn}});var vt=bt(59301),oe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},ue=bt(92310),Be=bt.n(ue),me=bt(71418);var Ee=function(Bt,Mt){return(Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(xt,Ft){xt.__proto__=Ft}||function(xt,Ft){for(var Ut in Ft)Object.prototype.hasOwnProperty.call(Ft,Ut)&&(xt[Ut]=Ft[Ut])})(Bt,Mt)};function qt(Bt,Mt){function xt(){this.constructor=Bt}Ee(Bt,Mt),Bt.prototype=Mt===null?Object.create(Mt):(xt.prototype=Mt.prototype,new xt)}function Ce(Bt,Mt,xt,Ft){return new(xt||(xt=Promise))(function(Ut,At){function ge(pn){try{gn(Ft.next(pn))}catch(Rn){At(Rn)}}function dn(pn){try{gn(Ft.throw(pn))}catch(Rn){At(Rn)}}function gn(pn){var Rn;pn.done?Ut(pn.value):(Rn=pn.value,Rn instanceof xt?Rn:new xt(function(Mi){Mi(Rn)})).then(ge,dn)}gn((Ft=Ft.apply(Bt,Mt||[])).next())})}function Se(Bt,Mt){var xt,Ft,Ut,At,ge={label:0,sent:function(){if(1&Ut[0])throw Ut[1];return Ut[1]},trys:[],ops:[]};return At={next:dn(0),throw:dn(1),return:dn(2)},typeof Symbol=="function"&&(At[Symbol.iterator]=function(){return this}),At;function dn(gn){return function(pn){return function(Rn){if(xt)throw new TypeError("Generator is already executing.");for(;ge;)try{if(xt=1,Ft&&(Ut=2&Rn[0]?Ft.return:Rn[0]?Ft.throw||((Ut=Ft.return)&&Ut.call(Ft),0):Ft.next)&&!(Ut=Ut.call(Ft,Rn[1])).done)return Ut;switch(Ft=0,Ut&&(Rn=[2&Rn[0],Ut.value]),Rn[0]){case 0:case 1:Ut=Rn;break;case 4:return ge.label++,{value:Rn[1],done:!1};case 5:ge.label++,Ft=Rn[1],Rn=[0];continue;case 7:Rn=ge.ops.pop(),ge.trys.pop();continue;default:if(Ut=ge.trys,!((Ut=Ut.length>0&&Ut[Ut.length-1])||Rn[0]!==6&&Rn[0]!==2)){ge=0;continue}if(Rn[0]===3&&(!Ut||Rn[1]>Ut[0]&&Rn[1]Ce.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},vt.createElement("button",null,"\u590D\u5236")),vt.createElement(ue.Z,pt({style:me.Z,language:on[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},Oe),Cn))},img({node:Vt}){var It;const ne=(It=Vt.properties)==null?void 0:It.src;return vt.createElement(Se.Z,{src:ne,width:320,"data-text":ne,onLoad:()=>te&&setTimeout(()=>Dn(),500)})}}},Ne?Pe:`${Pe}__`)),[Pe])}},19909:function(Ze,En,bt){"use strict";bt.d(En,{Z:function(){return ge}});var vt=bt(59301),oe=bt(8591),ue=bt(54580),Be=bt(43418),me=bt(6848),Ee=bt(92832),qt=bt(3113),Ce=bt(71418),Se=bt(64165),ve=bt(14478),se=bt(43428),Ae=bt(38854),_e=bt(92310),Dt=bt.n(_e),et=bt(43276),nt={reasoning:"reasoning___S0mKl",btn:"btn____CIJG",content:"content___CIAh9"},ct=bt(59301),lt=(dn,gn,pn)=>new Promise((Rn,Mi)=>{var ji=wo=>{try{Ji(pn.next(wo))}catch(Io){Mi(Io)}},wi=wo=>{try{Ji(pn.throw(wo))}catch(Io){Mi(Io)}},Ji=wo=>wo.done?Rn(wo.value):Promise.resolve(wo.value).then(ji,wi);Ji((pn=pn.apply(dn,gn)).next())}),yt=({value:dn="",streamingStatus:gn,onFinish:pn,cancelIndex:Rn,time:Mi,loading:ji,loadAll:wi})=>{const[Ji,wo]=(0,vt.useState)(""),[Io,Wr]=(0,vt.useState)(!0),nr=(0,vt.useRef)(dn),Cr=(0,vt.useRef)(gn),bo=(0,vt.useRef)(0),Fo=(0,vt.useRef)(null),[fo,hr]=(0,vt.useState)(!1),dr=70;(0,vt.useEffect)(()=>{Cr.current=gn},[gn]),(0,vt.useEffect)(()=>{nr.current=dn},[dn]),(0,vt.useEffect)(()=>{if(!gn){wo(nr.current);return}return hr(!0),Fo.current=setInterval(Ui,dr),()=>{clearInterval(Fo.current)}},[]),(0,vt.useEffect)(()=>{fo&&(wo(nr.current),clearInterval(Fo.current),hr(!1),pn())},[Rn]);const Ui=()=>lt(void 0,null,function*(){const Ct=nr.current[bo.current];Ct!==void 0?(wo(zs=>zs+Ct),bo.current++,clearInterval(Fo.current),Fo.current=setInterval(Ui,280/(nr.current.length-bo.current))):Cr.current===!1&&(wo(nr.current),clearInterval(Fo.current),hr(!1),pn())});return ct.createElement("div",{className:`${nt.reasoning} fadeIn animated`},ct.createElement("div",{className:nt.btn,onClick:()=>Wr(!Io)},ct.createElement("i",{className:"iconfont icon-shendusikao"}),Mi?ct.createElement("span",null,"\u5DF2\u6DF1\u5EA6\u601D\u8003\uFF08\u7528\u65F6 ",Mi," \u79D2\uFF09"):ct.createElement("span",null,"\u601D\u8003\u4E2D..."),Io?ct.createElement("b",{className:"iconfont icon-shouqi6"}):ct.createElement("b",{className:"iconfont icon-zhankai6"})),ji&&ct.createElement(Ce.Z,{spinning:!0,className:"mt20"}),Io&&!ji&&ct.createElement("div",{className:nt.content},Ji,fo?ct.createElement("span",{className:"aiBlink"},"__"):""))},Lt={select:"select___Kt_GE",box:"box___S5_ly",text:"text___dtZDv",itemWrap:"itemWrap___xmw7x",item:"item___io6Bx",active:"active___nHRTI"},kt=bt(81327),Ht=Object.defineProperty,Yt=Object.getOwnPropertySymbols,$t=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,te=(dn,gn,pn)=>gn in dn?Ht(dn,gn,{enumerable:!0,configurable:!0,writable:!0,value:pn}):dn[gn]=pn,Pe=(dn,gn)=>{for(var pn in gn||(gn={}))$t.call(gn,pn)&&te(dn,pn,gn[pn]);if(Yt)for(var pn of Yt(gn))ee.call(gn,pn)&&te(dn,pn,gn[pn]);return dn};const ae=dn=>React.createElement("svg",Pe({className:"logo1_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},dn),React.createElement("path",{d:"M1019.407 620.8 891.834 397.781 946.49 293.12a29.099 29.099 0 0 0 6.4-36.395l-70.187-126.592a30.08 30.08 0 0 0-24.576-13.653H597.519L539.194 14.507a27.35 27.35 0 0 0-20.907-14.55H380.644a29.141 29.141 0 0 0-24.618 14.55v5.546L225.806 243.03H100.923a29.184 29.184 0 0 0-25.515 13.654L3.428 384.085a32.768 32.768 0 0 0 0 29.184L132.836 638.08 74.511 740.053a32.768 32.768 0 0 0 0 29.056l66.517 116.566a29.907 29.907 0 0 0 25.515 14.506H427.15l62.848 109.227A30.08 30.08 0 0 0 512.783 1024H660.41a29.141 29.141 0 0 0 24.576-14.55l128.469-224.853h114.773a31.915 31.915 0 0 0 24.662-15.445l66.474-117.419a28.16 28.16 0 0 0 0-30.976l.043.043zm-161.28 14.592L791.61 512.469 518.287 993.963l-74.752-122.88h-273.28l65.621-119.211h139.392L101.86 272.213h143.062L380.687 30.08l68.352 119.253-70.187 122.88H925.54l-69.205 121.942 137.6 241.194H858.17z",fill:"#605BEC"}),React.createElement("path",{d:"m499.983 699.307 174.379-274.731H324.708z",fill:"#605BEC"}));var We="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTEwMTkuNDA3IDYyMC44IDg5MS44MzQgMzk3Ljc4MSA5NDYuNDkgMjkzLjEyYTI5LjA5OSAyOS4wOTkgMCAwIDAgNi40LTM2LjM5NWwtNzAuMTg3LTEyNi41OTJhMzAuMDggMzAuMDggMCAwIDAtMjQuNTc2LTEzLjY1M0g1OTcuNTE5TDUzOS4xOTQgMTQuNTA3YTI3LjM1IDI3LjM1IDAgMCAwLTIwLjkwNy0xNC41NUgzODAuNjQ0YTI5LjE0MSAyOS4xNDEgMCAwIDAtMjQuNjE4IDE0LjU1djUuNTQ2TDIyNS44MDYgMjQzLjAzSDEwMC45MjNhMjkuMTg0IDI5LjE4NCAwIDAgMC0yNS41MTUgMTMuNjU0TDMuNDI4IDM4NC4wODVhMzIuNzY4IDMyLjc2OCAwIDAgMCAwIDI5LjE4NEwxMzIuODM2IDYzOC4wOCA3NC41MTEgNzQwLjA1M2EzMi43NjggMzIuNzY4IDAgMCAwIDAgMjkuMDU2bDY2LjUxNyAxMTYuNTY2YTI5LjkwNyAyOS45MDcgMCAwIDAgMjUuNTE1IDE0LjUwNkg0MjcuMTVsNjIuODQ4IDEwOS4yMjdBMzAuMDggMzAuMDggMCAwIDAgNTEyLjc4MyAxMDI0SDY2MC40MWEyOS4xNDEgMjkuMTQxIDAgMCAwIDI0LjU3Ni0xNC41NWwxMjguNDY5LTIyNC44NTNoMTE0Ljc3M2EzMS45MTUgMzEuOTE1IDAgMCAwIDI0LjY2Mi0xNS40NDVsNjYuNDc0LTExNy40MTlhMjguMTYgMjguMTYgMCAwIDAgMC0zMC45NzZsLjA0My4wNDN6bS0xNjEuMjggMTQuNTkyTDc5MS42MSA1MTIuNDY5IDUxOC4yODcgOTkzLjk2M2wtNzQuNzUyLTEyMi44OGgtMjczLjI4bDY1LjYyMS0xMTkuMjExaDEzOS4zOTJMMTAxLjg2IDI3Mi4yMTNoMTQzLjA2MkwzODAuNjg3IDMwLjA4bDY4LjM1MiAxMTkuMjUzLTcwLjE4NyAxMjIuODhIOTI1LjU0bC02OS4yMDUgMTIxLjk0MiAxMzcuNiAyNDEuMTk0SDg1OC4xN3oiIGZpbGw9IiM2MDVCRUMiLz48cGF0aCBkPSJtNDk5Ljk4MyA2OTkuMzA3IDE3NC4zNzktMjc0LjczMUgzMjQuNzA4eiIgZmlsbD0iIzYwNUJFQyIvPjwvc3ZnPg==",ye=Object.defineProperty,Ne=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,rn=Object.prototype.propertyIsEnumerable,Dn=(dn,gn,pn)=>gn in dn?ye(dn,gn,{enumerable:!0,configurable:!0,writable:!0,value:pn}):dn[gn]=pn,vn=(dn,gn)=>{for(var pn in gn||(gn={}))Ie.call(gn,pn)&&Dn(dn,pn,gn[pn]);if(Ne)for(var pn of Ne(gn))rn.call(gn,pn)&&Dn(dn,pn,gn[pn]);return dn};const Vt=dn=>React.createElement("svg",vn({className:"logo2_svg__icon",viewBox:"0 0 1417 1024",xmlns:"http://www.w3.org/2000/svg",width:276.758,height:200},dn),React.createElement("path",{d:"M1364.44 118.705c-14.178-6.695-20.322 6.065-28.593 12.525-2.914 2.048-5.277 4.726-7.64 7.246-20.717 21.268-44.899 35.21-76.643 33.556a152.576 152.576 0 0 0-120.674 45.371c-7.404-41.826-32.06-66.875-69.553-82.865-19.693-8.35-39.543-16.7-53.248-34.737-9.61-12.919-12.288-27.333-17.015-41.512-3.15-8.507-6.144-17.25-16.384-18.668-11.185-1.733-15.517 7.247-19.928 14.73a189.125 189.125 0 0 0-23.552 98.461c1.575 76.88 35.446 138.083 102.636 181.642 7.562 4.963 9.531 9.925 7.09 17.25-4.49 14.967-9.926 29.54-14.81 44.584-2.992 9.61-7.561 11.658-18.274 7.483a309.484 309.484 0 0 1-96.886-63.015c-47.813-44.426-91.057-93.342-144.935-131.702a635.825 635.825 0 0 0-38.36-25.207c-54.982-51.2 7.167-93.262 21.582-98.225 14.966-5.199 5.277-23.158-43.402-22.922-48.68.237-93.184 15.833-149.977 36.628-8.428 3.15-17.092 5.514-25.993 7.326a557.844 557.844 0 0 0-160.768-5.436c-105.157 11.264-189.204 58.92-250.96 140.367-74.2 97.832-91.687 208.975-70.261 325.002 22.449 122.25 87.434 223.468 187.47 302.631 103.582 82 222.917 122.172 359.188 114.452 82.708-4.568 174.79-15.202 278.686-99.485 26.151 12.445 53.642 17.486 99.249 21.267 35.131 3.072 69.002-1.733 95.153-6.931 40.96-8.35 38.203-44.741 23.316-51.437-120.202-53.72-93.814-31.822-117.839-49.624 61.125-69.317 153.206-141.312 189.204-374.706 2.835-18.51.472-30.168 0-45.213-.237-9.137 1.969-12.603 12.918-13.706a240.089 240.089 0 0 0 86.173-25.442c77.982-40.803 109.332-107.914 116.736-188.259 1.103-12.288-.236-24.97-13.705-31.429zM685.45 842.043C569.108 754.215 512.55 725.307 489.157 726.49c-21.82 1.26-17.96 25.206-13.155 40.802 5.042 15.439 11.58 26.073 20.717 39.621 6.301 8.9 10.791 22.213-6.302 32.295-37.494 22.213-102.794-7.561-105.787-8.98-76.012-42.929-139.421-99.564-184.241-176.994a523.894 523.894 0 0 1-72.468-239.93c-1.024-20.56 5.278-27.885 26.703-31.587a272.148 272.148 0 0 1 85.307-2.127c118.942 16.699 220.16 67.741 305.073 148.48 48.443 46.001 85.071 100.982 122.88 154.703 40.173 57.029 83.338 111.458 138.32 155.963 19.376 15.675 34.894 27.569 49.781 36.234-44.74 4.805-119.414 5.829-170.456-32.926zm55.926-344.615c0-5.357 2.757-10.398 7.326-13.47a17.723 17.723 0 0 1 22.134 2.048c3.072 2.915 4.805 7.09 4.805 11.422a16.778 16.778 0 0 1-17.25 16.541 17.33 17.33 0 0 1-12.131-4.883 15.911 15.911 0 0 1-4.884-11.658zm173.529 85.464a104.37 104.37 0 0 1-33.005 8.586 71.444 71.444 0 0 1-44.504-13.548c-15.282-12.288-26.23-19.141-30.72-40.645a89.167 89.167 0 0 1 .787-31.429c3.939-17.487-.393-28.75-13.312-38.912-10.476-8.35-23.71-10.634-38.36-10.634a32.06 32.06 0 0 1-14.179-4.175c-6.144-2.914-11.106-10.24-6.301-19.14a60.18 60.18 0 0 1 10.712-11.265c19.85-10.79 42.693-7.246 63.882.788 19.693 7.798 34.501 21.898 55.926 41.905 21.74 24.183 25.68 30.8 38.125 48.916 9.846 14.179 18.747 28.75 24.89 45.45 3.703 10.397-1.102 18.905-13.941 24.103z",fill:"#4D6BFE"}));var It="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDE0MTcgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjc2Ljc1OCIgaGVpZ2h0PSIyMDAiPjxwYXRoIGQ9Ik0xMzY0LjQ0IDExOC43MDVjLTE0LjE3OC02LjY5NS0yMC4zMjIgNi4wNjUtMjguNTkzIDEyLjUyNS0yLjkxNCAyLjA0OC01LjI3NyA0LjcyNi03LjY0IDcuMjQ2LTIwLjcxNyAyMS4yNjgtNDQuODk5IDM1LjIxLTc2LjY0MyAzMy41NTZhMTUyLjU3NiAxNTIuNTc2IDAgMCAwLTEyMC42NzQgNDUuMzcxYy03LjQwNC00MS44MjYtMzIuMDYtNjYuODc1LTY5LjU1My04Mi44NjUtMTkuNjkzLTguMzUtMzkuNTQzLTE2LjctNTMuMjQ4LTM0LjczNy05LjYxLTEyLjkxOS0xMi4yODgtMjcuMzMzLTE3LjAxNS00MS41MTItMy4xNS04LjUwNy02LjE0NC0xNy4yNS0xNi4zODQtMTguNjY4LTExLj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AyNC4xODMgMjUuNjggMzAuOCAzOC4xMjUgNDguOTE2IDkuODQ2IDE0LjE3OSAxOC43NDcgMjguNzUgMjQuODkgNDUuNDUgMy43MDMgMTAuMzk3LTEuMTAyIDE4LjkwNS0xMy45NDEgMjQuMTAzeiIgZmlsbD0iIzRENkJGRSIvPjwvc3ZnPg==",ne=bt(59301),Qe=({value:dn,onChange:gn})=>{const[pn,Rn]=(0,vt.useState)(!1),Mi=[{name:"\u901A\u4E49\u5343\u95EE",key:"qwen-max",img:We},{name:"DeepSeek R1-671B",key:"deepseek-r1",img:It}],ji=Mi.find(wi=>wi.key===dn);return ne.createElement("div",{className:Lt.select},ne.createElement(kt.Z,{size:10},ne.createElement("span",{className:"c-grey-333 font16"},"\u6A21\u578B"),ne.createElement("div",{className:Lt.box,onMouseLeave:()=>Rn(!1)},ne.createElement("div",{className:Lt.text,onClick:()=>Rn(!0)},ne.createElement("img",{src:ji.img,width:20}),ne.createElement("span",null,ji.name),ne.createElement("b",{className:"iconfont icon-zhankai6"})),pn&&ne.createElement("div",{className:Lt.itemWrap},ne.createElement("aside",null,Mi.map(wi=>ne.createElement("div",{key:wi.key,className:`${Lt.item} ${wi.key===dn?Lt.active:""}`,onClick:Ji=>{Ji.stopPropagation(),gn(wi.key),Rn(!1)}},ne.createElement("img",{src:wi.img,width:20}),ne.createElement("span",null,wi.name))))))))},le={loadingPic:"loadingPic___y2kKZ",loading:"loading___UEUk1",dot:"dot___TYXFV","dot-fade":"dot-fade___KWn1a",wrap:"wrap___nU3cS",chatContainer:"chatContainer___PNe3Q",footerContainer:"footerContainer___hQATV",btnWrp:"btnWrp___mS8l6",btn:"btn___3za5U",btnActive:"btnActive____jzfb",inputContainer:"inputContainer___iCQ3u",uploadBtn:"uploadBtn___OHHJF",sendBtn:"sendBtn___ktaQl",sendBtnDisabled:"sendBtnDisabled___DVncF",cancelBtn:"cancelBtn___bzMDI",lineFour:"lineFour___Lhbz5",fullIcon:"fullIcon___YWXTV",footerContainerSelected:"footerContainerSelected___pGBh3",full:"full___dZLXo",li:"li___PjMV3",avatarIcon:"avatarIcon___ztGQ3",img:"img___wZqEA",content:"content___OlYYG",borderBox:"borderBox___tjHwt",text:"text___yWTCV",fileWrap:"fileWrap___IX778",file:"file___fxAKb",fileName:"fileName___RA8nu",source:"source___nkLC0",action:"action___I2zGy",disabledInput:"disabledInput___Buork",backBottom:"backBottom___SMuL2",head:"head___v8Eom",headBtn:"headBtn___IS7xR",menuWarp:"menuWarp___G6yj0",menu:"menu___M8VWP",menuText:"menuText___gRpb5",menuDel:"menuDel___eH_wg",active:"active___KWwPV"},Oe=bt(99064),on=bt(955),Cn={draggableImage:"draggableImage___vcTso",img:"img___xAyno",close:"close___WUtfj"},xn=({src:dn,onClick:gn,topPercentage:pn=.62,draggableExtraNode:Rn})=>{const Mi=(0,vt.useRef)(null),ji=(0,vt.useRef)(!1),wi=(0,vt.useRef)(!1),[Ji,wo]=(0,vt.useState)(window.innerHeight*pn),[Io,Wr]=(0,vt.useState)(!1),nr=10;return(0,vt.useEffect)(()=>{if(Mi.current){let Cr=function(dr){var Ui;ji.current=!0,hr=dr.pageY,fo=dr.pageY-(((Ui=Mi.current)==null?void 0:Ui.getBoundingClientRect().top)||0),(0,on.kk)("none"),document.onselectstart=function(){return!1}},bo=function(){ji.current&&!wi.current&&gn&&gn(),ji.current=!1,wi.current=!1,(0,on.kk)("auto"),document.onselectstart=null},Fo=function(dr){var Ui;if(ji.current){const zs=dr.pageY-fo,Wo=window.innerHeight-(((Ui=Mi.current)==null?void 0:Ui.offsetHeight)||0)-50,Ss=50;if(!wi.current&&Math.abs(hr-dr.pageY)>nr&&(wi.current=!0),wi.current){let ta=Math.max(Ss,Math.min(zs,Wo));wo(ta)}}},fo=0,hr=0;return Mi.current.addEventListener("mousedown",Cr),document.addEventListener("mousemove",Fo),document.addEventListener("mouseup",bo),()=>{var dr,Ui;(Ui=(dr=Mi==null?void 0:Mi.current)==null?void 0:dr.removeEventListener)==null||Ui.call(dr,"mousedown",Cr),document.removeEventListener("mousemove",Fo),document.removeEventListener("mouseup",bo)}}},[gn]),(0,vt.useEffect)(()=>{const Cr=()=>{wo(window.innerHeight*pn)};return window.addEventListener("resize",Cr),()=>{window.removeEventListener("resize",Cr)}},[pn]),vt.createElement("div",{className:Cn.draggableImage,style:{top:`${Ji}px`,display:Io?"none":"block",cursor:ji.current?"grabbing":"grab"},ref:Mi},Rn,vt.createElement("img",{className:Cn.img,src:dn,width:60,draggable:"false"}),vt.createElement("i",{className:`iconfont icon-tupianguanbi ${Cn.close}`,onMouseUp:Cr=>{Cr.stopPropagation(),Wr(!0)}}))},re="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAIABJREFUeF6VnQmAnGV9/z/vMffeV3azuRMCSUgCSQggiCBFEE9UvFpqW6utFopa71bx6GHRWq31xKtSFS0eqICV+wwSIJKQkDvZJJvsObOzO/d7PH9/z/O+s5sY2/4XhpmdnXln3u/7/f1+39/xPFj8H39Wr742GRaOXaYs65WWnVhtuc58y7Lmh4oWZYFv2fpIgdxZFtg2oZMgdByU7eA7Npbt6L958rttUXMsQtsCyyawLEI5gC0HMMcCpf8193ILIVT6ZoUhlgqxw5BEoLAD87ulAuxQkZC/h4ogDHBCX79eXivHsfShQizkOJQsFR63FMdVGO6yHfWz1s4FD+za9V+N/ws01v/2otVLzuv36tZHwfpDlN1m2w6W62LLiVpyLhahpQixNRiBxkPAE+BcQtvRj+Veyd8dG99x8CyLIOESuC4qlPcJ6BH48lgOHoMnXzIMIAJA7gUQ/VwQ4obgBgGOgBiGOAiIIY4fEqoQFXoazEQIlrwnuhhKLoB8hgZXPlH/IhdsGmV911HpTxwef3Dkf8Lo9wL40hUvTR0uTfxtiHpPYFk527KxQhfLtbGdhAZJoQiEEChC+V1AsS0sR8AU0ISB8pwLtkPg2niuTaAZaBO4CXwBUL6hMFiA0zdDuuYDfcLyQQJaBJwG0QAo906gcAXMiIn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Pfpu5omAZThNY6GWuV4waWOp6xcGg0UDPtuWn/lj/j+X+Lbso4jJUfOwAAAABJRU5ErkJggg==",On=bt(3294),Un=bt(56102),hi=bt(24544),Ri=bt(58617),nn=bt(32050),un=Object.defineProperty,wn=Object.defineProperties,ze=Object.getOwnPropertyDescriptors,fn=Object.getOwnPropertySymbols,sn=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable,Mt=(dn,gn,pn)=>gn in dn?un(dn,gn,{enumerable:!0,configurable:!0,writable:!0,value:pn}):dn[gn]=pn,xt=(dn,gn)=>{for(var pn in gn||(gn={}))sn.call(gn,pn)&&Mt(dn,pn,gn[pn]);if(fn)for(var pn of fn(gn))Bt.call(gn,pn)&&Mt(dn,pn,gn[pn]);return dn},Ft=(dn,gn)=>wn(dn,ze(gn)),Ut=(dn,gn,pn)=>new Promise((Rn,Mi)=>{var ji=wo=>{try{Ji(pn.next(wo))}catch(Io){Mi(Io)}},wi=wo=>{try{Ji(pn.throw(wo))}catch(Io){Mi(Io)}},Ji=wo=>wo.done?Rn(wo.value):Promise.resolve(wo.value).then(ji,wi);Ji((pn=pn.apply(dn,gn)).next())}),ge=({title:dn="\u5934\u6B4CAI",placeholder:gn,hideUpload:pn,hideInputBox:Rn,aiIcon:Mi=re,userIcon:ji=kn,dragIcon:wi=Zn,children:Ji,fetchUrl:wo,fetchData:Io={},extraAnswerAction:Wr,showDefaultTips:nr=!0,onOpen:Cr,onClose:bo,loadingOption:Fo,showPreference:fo=!1,initMessage:hr,customRequest:dr,visible:Ui,width:Ct=1200,isCheckRestrictNumber:zs=!1,headNode:Wo,headFunctionNode:Ss,showRedraw:ta,showEdit:ss,promptPropName:ea="prompt",topPercentage:Tn,showSwitchingModel:Qn=!1,showImageGenerator:we=!1,showLookHistory:pe=!1,fetchListObject:fe,customPreference:Bn,customDataNode:zn,showAddSession:Wn,historyId:be,draggableExtraNode:An,drawerExtraNode:li,menuExtraFunctionNode:Jn,showSceneAwareness:Ki=!1})=>{var ie,yn;const[Kn,Wi]=(0,vt.useState)(!1),[ke,an]=(0,vt.useState)("qwen-max"),[Gi,Co]=(0,vt.useState)([]),[Po,vi]=(0,vt.useState)([]),[Ci,ui]=(0,vt.useState)(!1),[yo,cr]=(0,vt.useState)(!1),[Vo,Xe]=(0,vt.useState)(!1),[_o,Do]=(0,vt.useState)([]),[io,je]=(0,vt.useState)(""),[bn,di]=(0,vt.useState)(0),[mi,fi]=(0,vt.useState)(void 0),[qi,To]=(0,vt.useState)(!1),[ho,co]=(0,vt.useState)(null),[jo,Je]=(0,vt.useState)(""),po=(0,vt.useRef)(),Ke=(0,vt.useRef)(null),Lo=(0,vt.useRef)(null),[as,vr]=(0,vt.useState)(!1),[Fs,yr]=(0,vt.useState)(!1),[cn,$o]=(0,vt.useState)(!1),[Ra,Ir]=(0,vt.useState)(!1),[Vn,Rt]=(0,vt.useState)(0),$r=(0,vt.useRef)(null),ps=(0,vt.useRef)(!1),na=(0,vt.useRef)(null),[ca,kl]=(0,vt.useState)(void 0),[ga,Eu]=(0,vt.useState)(!0),[Zl,tr]=(0,vt.useState)(Ct-28),[gr,Ea]=(0,vt.useState)(!1),[Ti,ci]=(0,vt.useState)(!0),[tn,Pi]=(0,vt.useState)([]),oo=(0,vt.useRef)([]),ir=(0,vt.useRef)(null),fr=(0,vt.useRef)(null),pr=(0,vt.useRef)(!1),Rr=Zl-22,Sr=io==null?void 0:io.split(` +`).length,{onAdd:Ga,onGetList:fa,onListClick:Ql,onListDelete:Me,onListDealData:Ts}=fe||{},Au=50,qa=10,au={maxCount:Au,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:Gi,multiple:!0,accept:".doc,.docx,.md,.txt,.pdf,.xlsx,.xls",beforeUpload:qe=>Ut(void 0,null,function*(){var Ni,Yi,to,No;const Bi=(No=(to=(Yi=(Ni=qe==null?void 0:qe.name)==null?void 0:Ni.split("."))==null?void 0:Yi.slice(-1))==null?void 0:to[0])==null?void 0:No.toLowerCase(),Yo=["doc","docx","md","pdf","txt","xlsx","xls"].includes(Bi);return qe.size==0?(oe.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),ue.default.LIST_IGNORE):Yo?qe.size/1024/1024>100?(oe.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u5236100MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),ue.default.LIST_IGNORE):!0:(oe.ZP.warning("\u76EE\u524D\u652F\u6301txt\u3001md\u3001doc\u3001docx\u3001pdf\u3001xlsx\u3001xls\u6587\u4EF6"),ue.default.LIST_IGNORE)}),onChange:({fileList:qe})=>{Co(qe)},action:`${(ie=On.Z)==null?void 0:ie.API_SERVER}/api/intelligent_imports/upload_file.json`},Lr={maxCount:qa,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:Po,multiple:!0,accept:".jpg,.png,",beforeUpload:qe=>{var Ni,Yi,to,No;const Bi=(No=(to=(Yi=(Ni=qe==null?void 0:qe.name)==null?void 0:Ni.split("."))==null?void 0:Yi.slice(-1))==null?void 0:to[0])==null?void 0:No.toLowerCase(),Yo=["jpg","png"].includes(Bi);return qe.size==0?(oe.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),ue.default.LIST_IGNORE):Yo?qe.size/1024/1024>10?(oe.ZP.warning("\u4E0A\u4F20\u7684\u56FE\u7247\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),ue.default.LIST_IGNORE):!0:(oe.ZP.warning("\u76EE\u524D\u652F\u6301jpg\u3001png"),ue.default.LIST_IGNORE)},onChange:({fileList:qe})=>{vi(qe)},action:`${(yn=On.Z)==null?void 0:yn.API_SERVER}/api/ai/generals/update_file.json`};(0,vt.useEffect)(()=>{if(!_o.length||!po.current)return;const qe=_o[_o.length-1];qe!=null&&qe.loading&&(po.current.scrollTop=po.current.scrollHeight)},[_o.length]),(0,vt.useEffect)(()=>{if(!po.current||!$r.current)return;const qe=new IntersectionObserver(([Ni])=>{Eu(Ni.isIntersecting)},{root:po.current,rootMargin:"70px",threshold:0});return qe.observe($r.current),()=>{$r.current&&qe.unobserve($r.current)}},[po.current,$r.current]),(0,vt.useEffect)(()=>{if(!as)return;const qe=po.current,Ni=na.current;ps.current=!1;let Yi=qe.scrollTop;const to=()=>{const{scrollTop:Bi,scrollHeight:Oo,clientHeight:Yo}=qe;Bi>Yi?Bi+Yo>=Oo-50&&(qe.scrollTop=qe.scrollHeight,ps.current=!1):Bi{ps.current||(qe.scrollTop=qe.scrollHeight)});return No.observe(Ni),()=>{var Bi;No.unobserve(Ni),(Bi=qe==null?void 0:qe.removeEventListener)==null||Bi.call(qe,"scroll",to)}},[as]),(0,vt.useEffect)(()=>{!as&&oo.current.length&&(Do([..._o,...oo.current]),oo.current=[])},[as]),(0,vt.useEffect)(()=>{if(!po.current)return;const qe=new ResizeObserver(()=>{tr(po.current.offsetWidth)});return qe.observe(po.current),()=>{po.current&&qe.unobserve(po.current)}},[po.current]),(0,vt.useEffect)(()=>{typeof Ui=="boolean"&&Wi(Ui)},[Ui]),(0,vt.useEffect)(()=>{var qe;if(Ke.current&&ho!==null){Ke.current.focus();const Ni=(qe=Ke.current.resizableTextArea)==null?void 0:qe.textArea;Ni&&(Ni.selectionStart=Ni.selectionEnd=Ni.value.length)}},[ho]),(0,vt.useEffect)(()=>{Sr<5&&To(!1)},[Sr]),(0,vt.useEffect)(()=>{Kn&&hr&&(Do(Dl(hr)),ui(!0),ii(hr,{history:[]})),Kn&&(xs(),be?Fl(be):Wn&&!ca&&pa()),Kn||gl()},[Kn]);const Dl=(qe="",Ni=[],Yi=[])=>{const to=Date.now();return[{text:qe,key:to,sender:"user",fileList:Ni,imageList:Yi,show:!0},{loading:!0,key:to,sender:"AI",show:!0,model:ke,imageGenerator:cn,thinkingEnabled:Fs}]},gl=()=>{Je(""),co(null),Co([]),vi([]),je("")},Ko=()=>{if(Cr){Cr({chatData:_o,setChatData:Do,setLoading:ui,getData:ii,renderChatItems:Dl,handleAdd:pa,identifier:ca});return}Wi(!0)},Yr=()=>{if(ci(!0),bo){bo();return}Wi(!1)},Nu=()=>{To(!qi)},xs=()=>Ut(void 0,null,function*(){if(!zs)return;const qe=yield(0,Oe.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});(qe==null?void 0:qe.status)===0&&(qe==null?void 0:qe.total_number)!==-1&&(di((qe==null?void 0:qe.total_number)-(qe==null?void 0:qe.remaining_number)),fi(qe==null?void 0:qe.total_number))}),ku=()=>{Be.default.info({title:"\u63D0\u793A",icon:null,okText:"\u6211\u77E5\u9053\u4E86",width:510,centered:!0,content:vt.createElement("div",null,vt.createElement("div",{style:{color:"#FA6400"}},"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),vt.createElement("div",{className:"c-grey-333 mt5"},"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F\u7528",mi,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))})},Aa=qe=>qe.reduce((Yi,to)=>{if(to.sender==="user"){const No=qe.find(Bi=>Bi.key===to.key&&Bi.sender==="AI");No&&(No!=null&&No.text)&&!(No!=null&&No.error)&&Yi.push({question:to.text,answer:No.text})}return Yi},[]),ii=(...qe)=>Ut(void 0,[...qe],function*(Ni="",Yi={},to=_o){if(dr&&(yield dr({mes:Ni,setChatData:Do,fileList:Gi,body:Yi,checkNum:xs,setLoading:ui,bodyChatData:to,setTyping:vr,setImageGenerator:$o,renderChatItems:Dl})),!dr){const No=Gi==null?void 0:Gi.map(_r=>{var Hs;return(Hs=_r==null?void 0:_r.response)==null?void 0:Hs.file_id}),Bi=Po==null?void 0:Po.map(_r=>{var Hs;return(Hs=_r==null?void 0:_r.response)==null?void 0:Hs.data}),Oo=Yi.history||Aa(to),Yo=xt(xt({identifier:ca,response_mode:"streaming",model:ke,scene_awareness:Ra,thinking_enabled:Fs,image_generator:cn,file_ids:No,image_list:Bi,history:Oo,[ea]:Ni},Io),Yi),ws=Object.fromEntries(Object.entries(Yo).filter(([_r,Hs])=>Hs!==void 0));Lo.current=new hi.Z(On.Z.API_SERVER+wo,ws),yield new Promise((_r,Hs)=>{let Dr=null,Ph=null;Lo.current.on("data",Le=>{vr(!0);const{chunk:{content:ce,type:Qt,created:ti,msg:yi}}=Le,Si=yi==="error";Qt==="thinking"&&(Dr=Dr||ti,Do(Oi=>[...Oi].map((Li,ei)=>ei===Oi.length-1?Ft(xt({},Li),{reasoning:(Li.reasoning||"")+ce,loading:!1,hideAnswer:!0,error:Si}):Li))),Qt==="text"&&(Ph=Ph||ti,Do(Oi=>[...Oi].map((Li,ei)=>ei===Oi.length-1?Ft(xt({},Li),{text:(Li.text||"")+ce,loading:!1,startTime:Dr,endTime:Ph,error:Si}):Li)))}),Lo.current.on("done",()=>{_r()}),Lo.current.on("error",()=>{const Le="\u62B1\u6B49\uFF0C\u6211\u521A\u521A\u9047\u5230\u4E86\u4E00\u70B9\u95EE\u9898\uFF0C\u6CA1\u80FD\u5B8C\u6210\u60A8\u7684\u8BF7\u6C42\u3002\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\u4E00\u6B21\uFF0C\u6216\u8005\u8054\u7CFB\u6280\u672F\u652F\u6301\u5E2E\u5FD9\u89E3\u51B3!";Do(ce=>[...ce].map((Qt,ti)=>ti===ce.length-1?Ft(xt({},Qt),{text:Le,loading:!1,error:!0}):Qt)),_r()}),Lo.current.on("cancelled",()=>{_r()}),Lo.current.startStream()})}xs(),ui(!1)}),xh=qe=>{je(qe.target.value)},wh=(qe,Ni)=>{if(gl(),ui(!0),qe==="edit"){oo.current=_o.slice(Ni+2);const Yi=_o.splice(Ni),{fileList:to,imageList:No}=(Yi==null?void 0:Yi[0])||{},Bi=to.map(ws=>{var _r;return(_r=ws.response)==null?void 0:_r.file_id}),Oo=No.map(ws=>{var _r;return(_r=ws.response)==null?void 0:_r.data}),Yo={history:Aa(_o),file_ids:Bi,image_list:Oo,edit:!0};Do([..._o,...Dl(jo,to,No)]),ii(jo,Yo,_o)}if(qe==="redraw"){oo.current=_o.slice(Ni+1);const Yi=_o.splice(Ni-1),{text:to,fileList:No,imageList:Bi}=(Yi==null?void 0:Yi[0])||{},Oo=No.map(_r=>{var Hs;return(Hs=_r.response)==null?void 0:Hs.file_id}),Yo=Bi.map(_r=>{var Hs;return(Hs=_r.response)==null?void 0:Hs.data}),ws={history:Aa(_o),file_ids:Oo,image_list:Yo,edit:!0};Do([..._o,...Dl(to,No,Bi)]),ii(to,ws,_o)}},Ha=()=>{if(io.trim()!==""){gl(),ui(!0);const qe=Gi.filter(Yi=>Yi.status==="done"),Ni=Po.filter(Yi=>Yi.status==="done");Do([..._o,...Dl(io,qe,Ni)]),ii(io)}},ed=qe=>{if(qe.shiftKey){if(qe.key==="Enter")return}else if(qe.key==="Enter"){if(qe.preventDefault(),Tl||pr.current)return;Ha()}},nd=(qe,Ni)=>{let Yi=!1;ss===!0?Yi=!0:ss==="last"&&(Yi=_o.reduce((Oo,Yo,ws)=>Yo.sender==="user"?ws:Oo,-1)===Ni);const to=Ni===ho,No=[...(qe==null?void 0:qe.fileList)||[],...(qe==null?void 0:qe.imageList)||[]];return vt.createElement("div",{className:le.li,style:{width:Rr}},vt.createElement("div",{className:le.avatarIcon},vt.createElement("img",{className:le.img,src:ji})),vt.createElement("div",{className:le.content},!!(No!=null&&No.length)&&vt.createElement("div",{className:le.fileWrap},No==null?void 0:No.map((Bi,Oo)=>{var Yo,ws;return vt.createElement("div",{key:Oo,className:le.file},vt.createElement("img",{src:bt(90034)(`./${((ws=(Yo=Bi==null?void 0:Bi.name)==null?void 0:Yo.split("."))==null?void 0:ws.pop())||"txt"}.png`),width:20,className:"mr10"}),vt.createElement("aside",null,vt.createElement(me.Z,{title:Bi==null?void 0:Bi.name},vt.createElement("div",{className:le.fileName},Bi==null?void 0:Bi.name)),vt.createElement("div",{className:"c-grey-999 font12"},(0,on.RD)(Bi==null?void 0:Bi.size))))})),vt.createElement("div",{className:le.borderBox},to?vt.createElement(Ee.default.TextArea,{value:jo,ref:Ke,autoSize:!0,placeholder:"\u8BF7\u8F93\u5165",bordered:!1,onChange:Bi=>Je(Bi.target.value)}):vt.createElement("div",{className:le.text},qe==null?void 0:qe.text)),to?vt.createElement("div",{className:le.action},vt.createElement(qt.ZP,{onClick:()=>{Je(""),co(null)},size:"small"},"\u53D6\u6D88"),vt.createElement(qt.ZP,{disabled:!jo.trim(),onClick:()=>wh("edit",Ni),type:"primary",size:"small"},"\u786E\u8BA4")):vt.createElement("div",{className:le.action},vt.createElement(Un.CopyToClipboard,{text:(qe==null?void 0:qe.text)||"",onCopy:()=>oe.ZP.success("\u590D\u5236\u6210\u529F")},vt.createElement(me.Z,{title:"\u590D\u5236"},vt.createElement("i",{className:"iconfont icon-fuzhi8 font13"}))),Yi&&!Ci&&vt.createElement(me.Z,{title:"\u7F16\u8F91"},vt.createElement("i",{onClick:()=>{co(Ni),Je((qe==null?void 0:qe.text)||"")},className:"iconfont icon-bianji10 font14"})))))},jn=(qe,Ni)=>{let Yi=!1;ta===!0?Yi=!0:ta==="last"&&(Yi=_o.reduce((Bi,Oo,Yo)=>Oo.sender==="AI"?Yo:Bi,-1)===Ni);let to="";return qe!=null&&qe.source?to=qe==null?void 0:qe.source:(qe==null?void 0:qe.model)==="deepseek-r1"?to="\u7531deepseek\u751F\u6210":(qe==null?void 0:qe.model)==="qwen-max"&&(to="\u7531\u901A\u4E49\u5343\u95EE\u751F\u6210"),vt.createElement("div",{className:le.li,style:{width:Rr}},vt.createElement("div",{className:le.avatarIcon},vt.createElement("img",{className:le.img,src:Mi})),vt.createElement("div",{className:le.content},vt.createElement("div",{className:le.borderBox},qe.loading&&vt.createElement(vt.Fragment,null,qe!=null&&qe.imageGenerator?vt.createElement("div",{className:le.loadingPic},"\u6B63\u5728\u751F\u6210\u4E2D",vt.createElement("div",{className:"ai-loading"})):!(qe!=null&&qe.thinkingEnabled)&&vt.createElement("div",null,vt.createElement("div",{className:le.loading},vt.createElement("div",{className:le.dot}),vt.createElement("div",{className:le.dot}),vt.createElement("div",{className:le.dot})),vt.createElement("div",{style:{marginTop:10,color:"#9096A3"}},(Fo==null?void 0:Fo.text)||"\u8BF7\u8010\u5FC3\u7B49\u5F85\uFF0C\u76EE\u524D\u9AD8\u5CF0\u671F\u4F53\u9A8C\u4EBA\u6570\u8FC7\u591A\uFF0C\u6211\u4EEC\u5DF2\u8BB0\u5F55\u4E0B\u60A8\u7684\u9700\u6C42\uFF0C\u7A0D\u540E\u5C06\u81EA\u52A8\u4E3A\u60A8\u751F\u6210\u7B54\u6848\u3002"))),(qe==null?void 0:qe.thinkingEnabled)&&vt.createElement(yt,{time:qe==null?void 0:qe.time,cancelIndex:Vn,loading:qe.loading,streamingStatus:!(qe!=null&&qe.text),onFinish:()=>{Rt(0),Do(No=>[...No].map((Bi,Oo)=>Oo===No.length-1?Ft(xt({},Bi),{hideAnswer:!1,time:Bi.startTime?Bi.endTime-Bi.startTime:null}):Bi))},value:qe==null?void 0:qe.reasoning}),!!(qe!=null&&qe.text)&&!qe.hideAnswer&&vt.createElement(et.Z,{cancelIndex:Vn,streamingStatus:Ci,loadImage:!!(qe!=null&&qe.imageGenerator),onFinish:()=>Ut(void 0,null,function*(){Rt(0),setTimeout(()=>vr(!1),0)}),value:qe==null?void 0:qe.text})),!!(qe!=null&&qe.text)&&to&&vt.createElement("div",{className:le.source},to),vt.createElement("div",{className:le.action},Wr==null?void 0:Wr(qe,Ni,{onMenuClick:Fl}),vt.createElement(Un.CopyToClipboard,{text:String((qe==null?void 0:qe.text)||""),onCopy:()=>oe.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},vt.createElement(me.Z,{title:"\u590D\u5236"},vt.createElement("i",{className:"iconfot icon-fuzhi8 font13"}))),fo&&!Ci&&vt.createElement(vt.Fragment,null,vt.createElement(me.Z,{title:"\u559C\u6B22"},vt.createElement("i",{style:qe!=null&&qe.like?{color:"#FA8D30"}:{},onClick:()=>Er("like",!(qe!=null&&qe.like),Ni),className:"iconfot icon-yijiejue font15"})),vt.createElement(me.Z,{title:"\u4E0D\u559C\u6B22"},vt.createElement("i",{style:qe!=null&&qe.dislike?{color:"#e86d7c"}:{},onClick:()=>Er("dislike",!(qe!=null&&qe.dislike),Ni),className:"iconfot icon-weijiejuezhengchang font15"}))),Yi&&!Ci&&vt.createElement(me.Z,{title:"\u91CD\u65B0\u751F\u6210"},vt.createElement("i",{onClick:()=>wh("redraw",Ni),className:"iconfot icon-gengxin-genghuan-tihuan"})))))},Er=(qe,Ni,Yi)=>Ut(void 0,null,function*(){if(Bn){const to=_o.slice(0,Yi+1),Bi=Aa(to).length;yield Bn({type:qe,value:Ni,index:Yi,identifier:ca,objectIndex:Bi})}Do(to=>(to[Yi][qe]=Ni,Ni&&(to[Yi][qe==="like"?"dislike":"like"]=!1),[...to]))}),Vr=()=>{var qe,Ni;Rt(1),(Ni=(qe=Lo.current)==null?void 0:qe.cancelRequest)==null||Ni.call(qe),ui(!1),vr(!1)},pa=()=>Ut(void 0,null,function*(){var qe,Ni,Yi;(Ni=(qe=Lo.current)==null?void 0:qe.cancelRequest)==null||Ni.call(qe),gl(),Do([]),ui(!0);const to=yield Ga();(to==null?void 0:to.status)===0&&kl((Yi=to==null?void 0:to.data)==null?void 0:Yi.identifier),ui(!1),vr(!1)}),lu=()=>Ut(void 0,null,function*(){var qe;Xe(!0);const Ni=yield fa();(Ni==null?void 0:Ni.status)===0&&Pi(((qe=Ni==null?void 0:Ni.data)==null?void 0:qe.list)||[]),Xe(!1)}),Fl=(...qe)=>Ut(void 0,[...qe],function*(Ni=ca){var Yi,to,No,Bi;(to=(Yi=Lo.current)==null?void 0:Yi.cancelRequest)==null||to.call(Yi),gl(),cr(!0);const Oo=yield Ql(Ni);if(Oo.status===0){const Yo=Ts(((No=Oo==null?void 0:Oo.data)==null?void 0:No.messages)||[]);Do(Yo),cr(!1),kl((Bi=Oo==null?void 0:Oo.data)==null?void 0:Bi.identifier);return}Do([]),cr(!1)}),zi=(qe,Ni)=>Ut(void 0,null,function*(){(yield Me(qe)).status===0&&(oe.ZP.success("\u5220\u9664\u6210\u529F"),Ni===ca&&pa(),lu())}),Ju=()=>vt.createElement("div",{className:le.menuWarp},vt.createElement("h4",null,"\u5386\u53F2\u5BF9\u8BDD"),vt.createElement(Ce.Z,{spinning:Vo},!tn.length&&vt.createElement(Se.Z,{style:{width:250,paddingBottom:30},image:Se.Z.PRESENTED_IMAGE_SIMPLE}),!!tn.length&&vt.createElement("div",{className:le.menu},tn.map(function(qe,Ni){return vt.createElement("aside",{className:Dt()(ca===qe.identifier&&le.active),key:qe.id,onClick:()=>Fl(qe.id)},vt.createElement("div",{className:le.menuText},vt.createElement(me.Z,{title:qe==null?void 0:qe.question},vt.createElement("span",null,qe==null?void 0:qe.question)),Jn&&Jn(qe)),vt.createElement("div",{className:le.menuDel,onClick:Yi=>Yi.stopPropagation()},vt.createElement(ve.Z,{title:"\u63D0\u793A",description:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u672C\u6761\u5BF9\u8BDD\u5417\uFF1F",onConfirm:()=>zi(qe.id,qe.identifier),okText:"\u786E\u8BA4",zIndex:1100,cancelText:"\u53D6\u6D88"},vt.createElement("i",{className:"iconfont icon-shanchu14 delete-hover font14"}))))})))),$a=qe=>{if(qe==="file"){if(Po.length){Be.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4\u8986\u76D6",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5DF2\u5B58\u5728\u56FE\u7247\uFF0C\u4E0A\u4F20\u6587\u4EF6\u540E\u56FE\u7247\u5C06\u4F1A\u88AB\u8986\u76D6?",onOk:()=>{vi([]),ir.current.upload.uploader.fileInput.click()}});return}ir.current.upload.uploader.fileInput.click()}if(qe==="image"){if(Gi.length){Be.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4\u8986\u76D6",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5DF2\u5B58\u5728\u6587\u4EF6\uFF0C\u4E0A\u4F20\u56FE\u7247\u540E\u6587\u4EF6\u5C06\u4F1A\u88AB\u8986\u76D6?",onOk:()=>{Co([]),fr.current.upload.uploader.fileInput.click()}});return}fr.current.upload.uploader.fileInput.click()}},ia=[{key:"file",disabled:Gi.length>=Au,label:vt.createElement(me.Z,{placement:"right",title:vt.createElement("div",null,vt.createElement("b",null,"\u4E0A\u4F20\u9644\u4EF6\uFF08\u4EC5\u8BC6\u522B\u6587\u5B57\uFF09"),vt.createElement("div",null,"\u6700\u591A 50 \u4E2A\uFF0C\u6BCF\u4E2A 100 MB\uFF0C\u652F\u6301\u5404\u7C7B\u578B\u6587\u6863"))},vt.createElement("span",null,vt.createElement("i",{className:"iconfont icon-fujian3 font14 mr5"}),"\u4E0A\u4F20\u6587\u6863"))},ke!=="deepseek-r1"&&{key:"image",disabled:Po.length>=qa,label:vt.createElement(me.Z,{placement:"right",title:"\u652F\u6301\u4E0D\u8D85\u8FC710M\u7684PNG/JPG\u56FE\u7247\uFF0C\u6700\u591A10\u4E2A"},vt.createElement("span",null,vt.createElement("i",{className:"iconfont icon-tupianshangchuan font14 mr5"}),"\u4E0A\u4F20\u56FE\u7247"))}].filter(Boolean),Rs=[...Gi,...Po],Tl=Rs.some(qe=>qe.status==="uploading")||Ci||as,Ge=bn>=mi,Gs=pn||Gi.length>=Au||Po.length>=qa,Ua=cn||Fs||Ra||!!Rs.length;return vt.createElement("div",null,Ji?vt.createElement("div",{onClick:Ko},Ji):vt.createElement(xn,{draggableExtraNode:An,src:wi,onClick:Ko,topPercentage:Tn}),vt.createElement(se.Z,{open:Kn,width:gr?"100%":Ct,afterOpenChange:qe=>{qe&&ci(!1)},push:!1,contentWrapperStyle:Ti?{}:{transition:"none"},extra:vt.createElement("div",{className:le.head},li,Qn&&vt.createElement(Qe,{value:ke,onChange:qe=>{yr(!1),$o(!1),an(qe),vi([]),Co([])}}),pe&&vt.createElement(vt.Fragment,null,vt.createElement(Ae.Z,{dropdownRender:Ju,onOpenChange:qe=>{qe&&lu()},placement:"bottomLeft",arrow:!0},vt.createElement("div",{className:le.headBtn},vt.createElement("i",{className:"icon-lishiduihua1 font14 mr10"}),"\u5386\u53F2\u5BF9\u8BDD"))),Wn&&vt.createElement(vt.Fragment,null,vt.createElement("div",{className:le.headBtn,onClick:pa},vt.createElement("i",{className:"icon-xinjianduihua font14 mr10"}),"\u65B0\u5EFA\u5BF9\u8BDD")),vt.createElement(me.Z,{title:gr?"\u9000\u51FA\u5168\u5C4F":"\u5168\u5C4F"},vt.createElement("div",{className:le.headBtn,style:{padding:"0 12px"},onClick:()=>Ea(!gr)},gr&&vt.createElement("i",{className:"iconfont icon-tuichuquanping3"}),!gr&&vt.createElement("i",{className:"iconfont icon-quanping4"})))),title:vt.createElement("span",{className:"c-grey-333 font16"},dn),onClose:Yr,bodyStyle:{paddingRight:4}},vt.createElement("div",{className:Dt()(le.wrap,Kn&&"body-overflow-hidden")},vt.createElement("div",{ref:po,className:le.chatContainer},nr&&vt.createElement("div",{className:`${le.li} mb20`,style:{width:Rr}},vt.createElement("div",{className:le.avatarIcon},vt.createElement("img",{className:le.img,src:Mi})),vt.createElement("div",{className:le.content},vt.createElement("div",{className:le.borderBox},Wo,Ss==null?void 0:Ss({isDisabledNum:Ge,checkNumModal:ku,checkNum:xs,onClose:Yr,setChatData:Do,setLoading:ui,getData:ii,clearStatus:gl,typing:as,setImageGenerator:$o,renderChatItems:Dl,setSceneAwareness:Ir,setIdentifier:kl})))),vt.createElement("div",{ref:na},vt.createElement(Ce.Z,{spinning:yo,className:"mt20"},_o==null?void 0:_o.map((qe,Ni)=>vt.createElement(vt.Fragment,{key:qe.key+Ni},qe.show&&vt.createElement(vt.Fragment,null,qe.sender==="user"&&nd(qe,Ni),qe.sender==="AI"&&jn(qe,Ni),zn&&!["AI","user"].includes(qe.sender)&&zn(qe,Ni,{width:Rr})))))),!ga&&vt.createElement("div",{className:le.backBottom,onClick:()=>{po.current.scrollTop=po.current.scrollHeight}},vt.createElement("i",{className:"iconfont icon-huidaodibu"})),vt.createElement("div",{ref:$r})),!Rn&&vt.createElement("div",{className:Dt()(le.footerContainer,qi&&le.full,Ua&&le.footerContainerSelected)},vt.createElement("div",{className:le.btnWrp},Ki&&vt.createElement(me.Z,{title:"\u667A\u80FD\u611F\u77E5\u5F53\u524D\u60C5\u5883\uFF0C\u63D0\u4F9B\u9488\u5BF9\u6027\u89E3\u7B54"},vt.createElement("div",{onClick:()=>Ir(!Ra),className:Dt()(le.btn,Ra&&le.btnActive)},vt.createElement("i",{className:"iconfont icon-changjingganzhi mr10 font12"}),"\u573A\u666F\u611F\u77E5")),ke==="deepseek-r1"&&vt.createElement(me.Z,{title:"\u8C03\u7528\u65B0\u6A21\u578B DeepSeek-R1\uFF0C\u89E3\u51B3\u63A8\u7406\u95EE\u9898"},vt.createElement("div",{onClick:()=>yr(!Fs),className:Dt()(le.btn,Fs&&le.btnActive)},vt.createElement("i",{className:"iconfont icon-shendusikao mr10 font12"}),"\u6DF1\u5EA6\u601D\u8003\uFF08R1\uFF09")),we&&ke==="qwen-max"&&vt.createElement("div",{onClick:()=>$o(!cn),className:Dt()(le.btn,cn&&le.btnActive)},vt.createElement("i",{className:"iconfont icon-shangchuantupian2 mr10 font12"}),"\u56FE\u50CF\u751F\u6210"),Rs.map(qe=>vt.createElement("div",{key:qe.uid},(qe==null?void 0:qe.status)==="uploading"&&vt.createElement(Ce.Z,{indicator:vt.createElement(Ri.Z,{spin:!0}),className:"mr10",size:"small",spinning:!0}),vt.createElement("span",{title:qe==null?void 0:qe.name,className:"mr10"},(0,on.Pq)(qe.name,20)),vt.createElement("i",{onClick:()=>{Co(Ni=>Ni.filter(Yi=>Yi.uid!==qe.uid)),vi(Ni=>Ni.filter(Yi=>Yi.uid!==qe.uid))},className:"iconfont current icon-shanchu15 delete-hover c-red-ee4 font12"})))),vt.createElement(me.Z,{title:Ge&&vt.createElement("div",null,vt.createElement("div",null,"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),vt.createElement("div",null,"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F",mi,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))},vt.createElement("div",{className:Dt()(le.inputContainer,Sr>4&&le.lineFour,Ge&&le.disabledInput)},vt.createElement(ue.default,xt({ref:ir},au)),vt.createElement(ue.default,xt({ref:fr},Lr)),vt.createElement(Ae.Z,{className:`${Gs&&"hide"}`,menu:{items:ia,onClick:qe=>$a(qe.key)},placement:"top"},vt.createElement(qt.ZP,{className:le.uploadBtn,icon:vt.createElement(nn.Z,{style:{fontSize:18,color:"#FFF"}})})),vt.createElement(Ee.default.TextArea,{rows:Sr>4?4:Sr,placeholder:gn||"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u95EE\u9898\u5427,Shift+Enter\u6362\u884C\uFF5E",value:io,bordered:!1,style:Gs?{paddingLeft:0,marginLeft:0}:{},onChange:xh,onPressEnter:ed,onCompositionStart:()=>{pr.current=!0},onCompositionEnd:()=>{pr.current=!1}}),as?vt.createElement(me.Z,{title:"\u505C\u6B62\u751F\u6210"},vt.createElement("div",{className:`iconfont icon-tingzhihuida ${le.cancelBtn}`,onClick:Vr})):vt.createElement(qt.ZP,{className:(io==null?void 0:io.trim())===""?le.sendBtnDisabled:le.sendBtn,icon:vt.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:Tl,onClick:Ha}),Sr>4&&vt.createElement("span",{className:le.fullIcon,onClick:Nu},qi&&vt.createElement("span",{className:"iconfont icon-shousuo"}),!qi&&vt.createElement("span",{className:"iconfont icon-zhankai"}))))))))}},23765:function(Ze,En,bt){"use strict";bt.d(En,{Z:function(){return et}});var vt=bt(59301),oe={flex_box_center:"flex_box_center___A3pzf",flex_space_between:"flex_space_between___JBoa5",flex_box_vertical_center:"flex_box_vertical_center___MJuIO",flex_box_center_end:"flex_box_center_end___OcjUA",flex_box_column:"flex_box_column___zSH4A",list:"list___KhJas",middle:"middle___IjlYi",row:"row___GGtIx",title:"title___o_xqf",size:"size___OVRoL",download:"download___ZLcIH",preview:"preview___gi0kI",annotation:"annotation___KVSwj"},ue=bt(92310),Be=bt.n(ue),me=bt(23210),Ee=bt(16406),qt=bt(955),Ce=bt(3294),Se=bt(99064),ve=bt(24065),se=bt(89070),Ae=bt(8591),_e=(nt,ct,lt)=>new Promise((pt,yt)=>{var Lt=Yt=>{try{Ht(lt.next(Yt))}catch($t){yt($t)}},kt=Yt=>{try{Ht(lt.throw(Yt))}catch($t){yt($t)}},Ht=Yt=>Yt.done?pt(Yt.value):Promise.resolve(Yt.value).then(Lt,kt);Ht((lt=lt.apply(nt,ct)).next())});const Dt=({className:nt,style:ct,dataSource:lt=[],authority:pt=!1,callback:yt,showDimensions:Lt=!0,classroomList:kt})=>{var Ht;const[Yt,$t]=(0,vt.useState)({content:"",type:""}),[ee,te]=(0,vt.useState)({}),[Pe,ae]=(0,vt.useState)(!1),[We,ye]=(0,vt.useState)({title:"",visible:!1,src:"",snapshotData:{}}),Ne=(0,vt.useRef)(),Ie=Vt=>_e(void 0,null,function*(){if(te(Vt),Vt.file_type==="txt"){const It=yield(0,Se.ZP)(Vt.url,{method:"get",headers:{"Content-Type":"application/xml"}});Ne.current=It}$t({type:Vt.file_type,content:Ce.Z.API_SERVER+Vt.url})}),rn=Vt=>{var It;ye({visible:!0,src:Ce.Z.API_SERVER+Vt.url,id:Vt.id,title:Vt.title,snapshotData:(It=Vt==null?void 0:Vt.subitem)==null?void 0:It.settings})},Dn=Vt=>_e(void 0,null,function*(){var It;$t({type:Vt.file_type,content:Ce.Z.API_SERVER+((It=Vt==null?void 0:Vt.subitem)==null?void 0:It.url)})}),vn=()=>{yt(),ye({visible:!1})};return lt!=null&<.length?vt.createElement(vt.Fragment,null,vt.createElement("div",{className:Be()(oe.list,nt),style:ct},lt.map((Vt,It)=>{var ne,De,Qe;return vt.createElement("div",{key:It,className:oe.row},vt.createElement("div",{className:oe.title,onClick:()=>Ie(Vt)},vt.createElement("i",{className:"iconfont icon-fujian1"}),vt.createElement("span",{title:Vt.title},Vt.title)),vt.createElement("div",{className:oe.size},Vt.filesize),vt.createElement("div",{className:oe.download,onClick:()=>{var le,Oe;if((0,ve.Rm)()&&!((le=kt.AssistantObject.normal)!=null&&le.can_download)){Ae.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}(0,qt.Nd)("",`${Ce.Z.API_SERVER}${(Oe=Vt.url)==null?void 0:Oe.replace("disposition=inline","")}`)}},vt.createElement("i",{className:"iconfont icon-xiazai4"}),"\u4E0B\u8F7D"),!["other","download"].includes(Vt==null?void 0:Vt.file_type)&&vt.createElement("div",{className:oe.preview,onClick:()=>Ie(Vt)},vt.createElement("i",{className:"iconfont icon-yulan"}),"\u9884\u89C8"),["image"].includes(Vt==null?void 0:Vt.file_type)&&Lt&&(pt?vt.createElement("div",{className:oe.annotation,onClick:()=>rn(Vt)},vt.createElement("i",{className:"iconfont icon-pizhu"}),(ne=Vt.subitem)!=null&&ne.id?"\u4FEE\u6539\u6279\u6CE8":"\u6279\u6CE8"):((De=Vt.subitem)==null?void 0:De.id)&&vt.createElement("div",{className:oe.annotation,onClick:()=>Dn(Vt)},vt.createElement("i",{className:"iconfont icon-chakanlaoshipizhu1"}),"\u67E5\u770B\u8001\u5E08\u6279\u6CE8")),["image"].includes(Vt==null?void 0:Vt.file_type)&&((Qe=Vt.subitem)==null?void 0:Qe.id)&&vt.createElement("div",{className:oe.download,style:{marginLeft:20},onClick:()=>{var le,Oe;(0,qt.Nd)("",`${Ce.Z.API_SERVER}${(Oe=(le=Vt==null?void 0:Vt.subitem)==null?void 0:le.url)==null?void 0:Oe.replace("disposition=inline","")}`)}},vt.createElement("i",{className:"iconfont icon-xiazai4"}),"\u4E0B\u8F7D\u6279\u6CE8\u6587\u4EF6"),["office"].includes(Vt==null?void 0:Vt.file_type)&&(0,ve.eB)()&&["xlsx","docx","pptx"].includes(Vt==null?void 0:Vt.file_sub)&&Lt&&vt.createElement("div",{className:oe.annotation,onClick:()=>{ae(!0),Ie(Vt)}},vt.createElement("i",{className:"iconfont icon-pizhu"}),Vt.is_edit?"\u4FEE\u6539\u6279\u6CE8":"\u6279\u6CE8"),Vt.is_edit&&(0,ve.dE)()&&Lt&&vt.createElement("div",{className:oe.annotation,onClick:()=>{Ie(Vt)}},vt.createElement("i",{className:"iconfont icon-sousuo7"}),"\u67E5\u770B\u8001\u5E08\u6279\u6CE8"))})),vt.createElement(me.Z,{close:!0,data:Yt==null?void 0:Yt.content,type:Yt==null?void 0:Yt.type,hasMask:!0,disabledDownload:(0,ve.Rm)()&&!((Ht=kt.AssistantObject.normal)!=null&&Ht.can_download),editOffice:Pe?"edit":"view",monacoEditor:{value:Ne.current,language:"txt",onChange:()=>{},options:{readOnly:!0,fontSize:14,minimap:{enabled:!1}}},onImgDimensions:pt&&Lt&&Yt.type==="image"?()=>rn(ee):null,onClose:()=>{yt(),ae(!1),$t({content:"",type:""})}}),vt.createElement(Ee.Z,{onOk:vn,onClose:()=>ye({visible:!1}),data:We,showFullTools:!0})):null};var et=(0,se.connect)(({classroomList:nt})=>({classroomList:nt}))(Dt)},16406:function(Ze,En,bt){"use strict";bt.d(En,{Z:function(){return sn}});var vt=bt(59301),oe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},ue=bt(92310),Be=bt.n(ue),me=bt(71418);var Ee=function(Bt,Mt){return(Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(xt,Ft){xt.__proto__=Ft}||function(xt,Ft){for(var Ut in Ft)Object.prototype.hasOwnProperty.call(Ft,Ut)&&(xt[Ut]=Ft[Ut])})(Bt,Mt)};function qt(Bt,Mt){function xt(){this.constructor=Bt}Ee(Bt,Mt),Bt.prototype=Mt===null?Object.create(Mt):(xt.prototype=Mt.prototype,new xt)}function Ce(Bt,Mt,xt,Ft){return new(xt||(xt=Promise))(function(Ut,At){function ge(pn){try{gn(Ft.next(pn))}catch(Rn){At(Rn)}}function dn(pn){try{gn(Ft.throw(pn))}catch(Rn){At(Rn)}}function gn(pn){var Rn;pn.done?Ut(pn.value):(Rn=pn.value,Rn instanceof xt?Rn:new xt(function(Mi){Mi(Rn)})).then(ge,dn)}gn((Ft=Ft.apply(Bt,Mt||[])).next())})}function Se(Bt,Mt){var xt,Ft,Ut,At,ge={label:0,sent:function(){if(1&Ut[0])throw Ut[1];return Ut[1]},trys:[],ops:[]};return At={next:dn(0),throw:dn(1),return:dn(2)},typeof Symbol=="function"&&(At[Symbol.iterator]=function(){return this}),At;function dn(gn){return function(pn){return function(Rn){if(xt)throw new TypeError("Generator is already executing.");for(;ge;)try{if(xt=1,Ft&&(Ut=2&Rn[0]?Ft.return:Rn[0]?Ft.throw||((Ut=Ft.return)&&Ut.call(Ft),0):Ft.next)&&!(Ut=Ut.call(Ft,Rn[1])).done)return Ut;switch(Ft=0,Ut&&(Rn=[2&Rn[0],Ut.value]),Rn[0]){case 0:case 1:Ut=Rn;break;case 4:return ge.label++,{value:Rn[1],done:!1};case 5:ge.label++,Ft=Rn[1],Rn=[0];continue;case 7:Rn=ge.ops.pop(),ge.trys.pop();continue;default:if(Ut=ge.trys,!((Ut=Ut.length>0&&Ut[Ut.length-1])||Rn[0]!==6&&Rn[0]!==2)){ge=0;continue}if(Rn[0]===3&&(!Ut||Rn[1]>Ut[0]&&Rn[1]=0}var je=new re.YI(zn.current,{maxSelectionCount:1,linkTemplate:ie(re.rU,{locationSpot:re.z6.Center,selectionAdornmentTemplate:ie(re.uz,"Link",{locationSpot:re.z6.Center},ie(re.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),ie(re.bn,{toArrow:"Standard",stroke:null}))},{routing:re.rU.AvoidsNodes,curve:re.rU.JumpOver,corner:5,toShortLength:4},new re.KX("points"),ie(re.bn,{isPanelMain:!0,strokeWidth:2}),ie(re.bn,{toArrow:"Standard",stroke:null})),model:new re.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...re.bn.getFigureGenerators().toArray().map(bn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:bn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return fe.current.addDiagramListener("TextEdited",function(bn){var di;const mi=bn.subject.part;var fi=(di=document.activeElement)==null?void 0:di.value;typeof fi=="string"&&fi.trim()===""&&fe.current.model.commit(function(qi){qi.set(mi.data,"text","\u672A\u547D\u540D"),fe.current.commandHandler.stopCommand()},"increment")}),je.nodeTemplate=ie(re.NB,"Auto",{locationSpot:re.z6.Center},new re.KX("location","location",re.E9.parse).makeTwoWay(re.E9.stringify),ie(re.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 re.KX("stroke").makeTwoWay(),new re.KX("fill").makeTwoWay(),new re.KX("figure")),ie(re.al,{margin:new re.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new re.$u(16,16),maxSize:new re.$u(10,NaN),textAlign:"center",editable:!0},new re.KX("key").makeTwoWay())),setTimeout(()=>{fe.current.grid=ie(re.s_,"Grid",ie(re.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ie(re.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),fe.current.grid.visible=!0,fe.current.grid.gridCellStroke="darkgray",fe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=fe.current,fe.current}const Ki=()=>wn(this,null,function*(){var ie,yn=fe.current.makeImage();const Kn=yield(0,hi.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:yn.src,file_data:JSON.stringify({login:(ie=(0,nn.eY)())==null?void 0:ie.login,data:JSON.parse(fe.current.model.toJson())})}});pe({src:Kn.url})});return(0,vt.useEffect)(()=>(setTimeout(()=>{Jn()},500),li(An+1),()=>{fe.current=null}),[]),un.createElement("div",{ref:be,className:Wn.current?`${Ri.maxH60} body-overflow-initial`:"body-overflow-initial"},un.createElement(Oe.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!An,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:un.createElement(on.Z,null,un.createElement(Un.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),un.createElement(Un.Z,{onClick:()=>{var ie,yn,Kn=fe.current.selection.first();if(Wn.current=!Wn.current,document.activeElement&&Kn){let Wi=(yn=(ie=document.activeElement)==null?void 0:ie.value)==null?void 0:yn.trim();typeof Wi=="string"&&fe.current.model.commit(function(ke){ke.set(Kn.data,"text",Wi||"\u672A\u547D\u540D"),fe.current.commandHandler.stopCommand()},"increment")}li(An+1)}},un.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:we},un.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Ri.flowChartWrp},un.createElement("div",{style:{display:"flex",height:"100%"}},un.createElement("div",{style:{width:"300px",height:"100%"}},un.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),un.createElement("div",{style:{height:"calc(100% - 50px)"},className:Ri.myPaletteDiv,ref:zn})),un.createElement("div",{style:{flex:1,position:"relative"}},un.createElement("div",{ref:Bn,style:{height:"80vh"}}))),un.createElement("div",{className:"tr"},un.createElement(ae.ZP,{size:"large",onClick:Ki,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var fn=ze,sn=bt(5112),Bt=bt(5871);const Mt=sn.ZP.Group,xt={margin:"0 8px"};var Ft=({callback:we,onCancel:pe})=>{function fe(Bn){we(Bn)}return vt.createElement(te.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:fe},vt.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},vt.createElement("span",{style:xt},"\u5355\u5143\u683C\u6570\uFF1A"),vt.createElement("span",{style:xt},"\u884C\u6570"),vt.createElement(te.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},vt.createElement(Bt.Z,null)),vt.createElement("span",{style:xt},"\u5217\u6570"),vt.createElement(te.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},vt.createElement(Bt.Z,null))),vt.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},vt.createElement("span",{style:xt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),vt.createElement(te.default.Item,{name:"align"},vt.createElement(Mt,null,vt.createElement(sn.ZP,{value:"default"},vt.createElement("i",{className:"fa fa-align-justify"})),vt.createElement(sn.ZP,{value:"left"},vt.createElement("i",{className:"fa fa-align-left"})),vt.createElement(sn.ZP,{value:"center"},vt.createElement("i",{className:"fa fa-align-center"})),vt.createElement(sn.ZP,{value:"right"},vt.createElement("i",{className:"fa fa-align-right"}))))),vt.createElement("div",{className:"flex-container flex-end"},vt.createElement(ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),vt.createElement(ae.ZP,{type:"ghost",onClick:pe},"\u53D6\u6D88")))},Ut=bt(78673),At=bt(80727),ge=bt.n(At),gn=(0,vt.forwardRef)(({use3d:we,width:pe,height:fe,callback:Bn,showSaveButton:zn},Wn)=>{const be=(0,vt.useRef)(),An=(0,vt.useRef)(),[li,Jn]=(0,vt.useState)(!1),Ki=(0,vt.useRef)({id:be,appName:"graphing",width:pe||1e3,height:fe||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,vt.useEffect)(()=>{An.current=new(ge())(Ki.current,!0),window.onload=function(){An.current.inject("applet_container")}},[]);const ie=()=>{var yn=window.ggbApplet.getPNGBase64(1,!0,72);return Bn&&Bn(yn),yn};return(0,vt.useEffect)(()=>{Ki.current.appName=li?"3D":"graphing",An.current.inject("applet_container")},[li]),(0,vt.useEffect)(()=>{Jn(we)},[we]),(0,vt.useImperativeHandle)(Wn,()=>({getImgData:ie})),vt.createElement(vt.Fragment,null,vt.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:be}),vt.createElement(on.Z,{align:"middle"},vt.createElement(Un.Z,{flex:1},vt.createElement(Ut.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:li,onChange:yn=>Jn(yn)})),vt.createElement(Un.Z,null,vt.createElement(ae.ZP,{size:"large",onClick:ie,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),pn=bt(41588),Rn=bt(8591);const Mi="link",ji="upload-image",wi="add-flowchart",Ji="draw-image",wo="add-flowchart",Io="code-block",Wr="add-table",nr="------------",Cr={default:nr,left:`:${nr}`,center:`:${nr}:`,right:`${nr}:`};var bo=bt(58856);function Fo(){}let fo=0;const hr=1e4,dr="\u2581",Ui="@\u2581\u2581@",Ct="@\u2581@",Rs=` +]}`;var Do=["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 io(bn){return console.log("shapeName:",bn),Do.indexOf(bn)>=0}var je=new re.YI(zn.current,{maxSelectionCount:1,linkTemplate:ie(re.rU,{locationSpot:re.z6.Center,selectionAdornmentTemplate:ie(re.uz,"Link",{locationSpot:re.z6.Center},ie(re.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),ie(re.bn,{toArrow:"Standard",stroke:null}))},{routing:re.rU.AvoidsNodes,curve:re.rU.JumpOver,corner:5,toShortLength:4},new re.KX("points"),ie(re.bn,{isPanelMain:!0,strokeWidth:2}),ie(re.bn,{toArrow:"Standard",stroke:null})),model:new re.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...re.bn.getFigureGenerators().toArray().map(bn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:bn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return fe.current.addDiagramListener("TextEdited",function(bn){var di;const mi=bn.subject.part;var fi=(di=document.activeElement)==null?void 0:di.value;typeof fi=="string"&&fi.trim()===""&&fe.current.model.commit(function(qi){qi.set(mi.data,"text","\u672A\u547D\u540D"),fe.current.commandHandler.stopCommand()},"increment")}),je.nodeTemplate=ie(re.NB,"Auto",{locationSpot:re.z6.Center},new re.KX("location","location",re.E9.parse).makeTwoWay(re.E9.stringify),ie(re.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 re.KX("stroke").makeTwoWay(),new re.KX("fill").makeTwoWay(),new re.KX("figure")),ie(re.al,{margin:new re.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new re.$u(16,16),maxSize:new re.$u(10,NaN),textAlign:"center",editable:!0},new re.KX("key").makeTwoWay())),setTimeout(()=>{fe.current.grid=ie(re.s_,"Grid",ie(re.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ie(re.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),fe.current.grid.visible=!0,fe.current.grid.gridCellStroke="darkgray",fe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=fe.current,fe.current}const Ki=()=>wn(this,null,function*(){var ie,yn=fe.current.makeImage();const Kn=yield(0,hi.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:yn.src,file_data:JSON.stringify({login:(ie=(0,nn.eY)())==null?void 0:ie.login,data:JSON.parse(fe.current.model.toJson())})}});pe({src:Kn.url})});return(0,vt.useEffect)(()=>(setTimeout(()=>{Jn()},500),li(An+1),()=>{fe.current=null}),[]),un.createElement("div",{ref:be,className:Wn.current?`${Ri.maxH60} body-overflow-initial`:"body-overflow-initial"},un.createElement(Oe.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!An,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:un.createElement(on.Z,null,un.createElement(Un.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),un.createElement(Un.Z,{onClick:()=>{var ie,yn,Kn=fe.current.selection.first();if(Wn.current=!Wn.current,document.activeElement&&Kn){let Wi=(yn=(ie=document.activeElement)==null?void 0:ie.value)==null?void 0:yn.trim();typeof Wi=="string"&&fe.current.model.commit(function(ke){ke.set(Kn.data,"text",Wi||"\u672A\u547D\u540D"),fe.current.commandHandler.stopCommand()},"increment")}li(An+1)}},un.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:we},un.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Ri.flowChartWrp},un.createElement("div",{style:{display:"flex",height:"100%"}},un.createElement("div",{style:{width:"300px",height:"100%"}},un.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),un.createElement("div",{style:{height:"calc(100% - 50px)"},className:Ri.myPaletteDiv,ref:zn})),un.createElement("div",{style:{flex:1,position:"relative"}},un.createElement("div",{ref:Bn,style:{height:"80vh"}}))),un.createElement("div",{className:"tr"},un.createElement(ae.ZP,{size:"large",onClick:Ki,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var fn=ze,sn=bt(5112),Bt=bt(5871);const Mt=sn.ZP.Group,xt={margin:"0 8px"};var Ft=({callback:we,onCancel:pe})=>{function fe(Bn){we(Bn)}return vt.createElement(te.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:fe},vt.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},vt.createElement("span",{style:xt},"\u5355\u5143\u683C\u6570\uFF1A"),vt.createElement("span",{style:xt},"\u884C\u6570"),vt.createElement(te.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},vt.createElement(Bt.Z,null)),vt.createElement("span",{style:xt},"\u5217\u6570"),vt.createElement(te.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},vt.createElement(Bt.Z,null))),vt.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},vt.createElement("span",{style:xt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),vt.createElement(te.default.Item,{name:"align"},vt.createElement(Mt,null,vt.createElement(sn.ZP,{value:"default"},vt.createElement("i",{className:"fa fa-align-justify"})),vt.createElement(sn.ZP,{value:"left"},vt.createElement("i",{className:"fa fa-align-left"})),vt.createElement(sn.ZP,{value:"center"},vt.createElement("i",{className:"fa fa-align-center"})),vt.createElement(sn.ZP,{value:"right"},vt.createElement("i",{className:"fa fa-align-right"}))))),vt.createElement("div",{className:"flex-container flex-end"},vt.createElement(ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),vt.createElement(ae.ZP,{type:"ghost",onClick:pe},"\u53D6\u6D88")))},Ut=bt(78673),At=bt(80727),ge=bt.n(At),gn=(0,vt.forwardRef)(({use3d:we,width:pe,height:fe,callback:Bn,showSaveButton:zn},Wn)=>{const be=(0,vt.useRef)(),An=(0,vt.useRef)(),[li,Jn]=(0,vt.useState)(!1),Ki=(0,vt.useRef)({id:be,appName:"graphing",width:pe||1e3,height:fe||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,vt.useEffect)(()=>{An.current=new(ge())(Ki.current,!0),window.onload=function(){An.current.inject("applet_container")}},[]);const ie=()=>{var yn=window.ggbApplet.getPNGBase64(1,!0,72);return Bn&&Bn(yn),yn};return(0,vt.useEffect)(()=>{Ki.current.appName=li?"3D":"graphing",An.current.inject("applet_container")},[li]),(0,vt.useEffect)(()=>{Jn(we)},[we]),(0,vt.useImperativeHandle)(Wn,()=>({getImgData:ie})),vt.createElement(vt.Fragment,null,vt.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:be}),vt.createElement(on.Z,{align:"middle"},vt.createElement(Un.Z,{flex:1},vt.createElement(Ut.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:li,onChange:yn=>Jn(yn)})),vt.createElement(Un.Z,null,vt.createElement(ae.ZP,{size:"large",onClick:ie,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),pn=bt(41588),Rn=bt(8591);const Mi="link",ji="upload-image",wi="add-flowchart",Ji="draw-image",wo="add-flowchart",Io="code-block",Wr="add-table",nr="------------",Cr={default:nr,left:`:${nr}`,center:`:${nr}:`,right:`${nr}:`};var bo=bt(58856);function Fo(){}let fo=0;const hr=1e4,dr="\u2581",Ui="@\u2581\u2581@",Ct="@\u2581@",zs=` **\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`,Wo=["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 Ss(we){return/^\d+$/.test(we)?`${we}px`:we}const ss=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",ea={[ss+"-B"]:"bold",[ss+"-I"]:"italic"},Tn={[Mi]:"\u6DFB\u52A0\u94FE\u63A5",[Io]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[ji]:"\u6DFB\u52A0\u56FE\u7247",[Ji]:"\u6DFB\u52A0\u753B\u56FE",[wi]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Wr]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Qn=({defaultValue:we="",onChange:pe,width:fe="100%",height:Bn=400,miniToolbar:zn=!1,isFocus:Wn=!1,watch:be,insertTemp:An,mode:li="markdown",id:Jn="markdown-editor-id",showResizeBar:Ki=!1,noStorage:ie=!1,showNullButton:yn=!1,showNullProgramButton:Kn=!1,hidetoolBar:Wi=!1,fullScreen:ke=!1,onBlur:an,onCMBeforeChange:Gi,onFullScreen:Co,className:Po="",disablePaste:vi=!1,disabled:Ci=!1,disabledFill:ui=!1,placeholder:yo="",values:cr="",extraUse:Vo})=>{const[Xe,_o]=(0,vt.useState)(null),[Do,io]=(0,vt.useState)(we),[je,bn]=(0,vt.useState)(be),[di,mi]=(0,vt.useState)(ke),[fi,qi]=(0,vt.useState)(""),[To,ho]=(0,vt.useState)(0),[co,jo]=(0,vt.useState)(Bn),[Je,po]=(0,vt.useState)(!1),[Ke,Lo]=(0,vt.useState)(0),[as,vr]=(0,vt.useState)(0),Fs=(0,vt.useRef)(),yr=(0,vt.useRef)(),cn=(0,vt.useRef)(),$o=(0,vt.useRef)();(0,vt.useEffect)(()=>{const Ti=window.scrollY||window.pageYOffset;io(cr),Xe==null||Xe.setValue(cr),window.scrollTo(0,Ti)},[cr]),(0,vt.useEffect)(()=>{Co==null||Co(di)},[di]),(0,vt.useEffect)(()=>{if(Fs.current){let Ti=function(tn,Pi){var oo;if(vi){Pi.preventDefault();return}const ir=Pi.clipboardData;if(ir){const fr=ir.types.toString(),pr=ir.items;if(fr==="Files"||ir.types.indexOf("Files")>-1){if(Pi.preventDefault(),li=="stex")return;try{let Rr=pr[1];((oo=pr[0])==null?void 0:oo.kind)==="file"&&(Rr=pr[0]);const Sr=Rr.getAsFile(),Ga=Sr.name.split(".").pop();(0,le.I)(Sr,fa=>{var Ql,Me,Ts;fa.id?((Ql=Sr==null?void 0:Sr.type)==null?void 0:Ql.indexOf("image"))>-1?ci.replaceSelection(``):((Me=Sr==null?void 0:Sr.type)==null?void 0:Me.indexOf("video"))>-1?ci.replaceSelection(``):((Ts=Sr==null?void 0:Sr.type)==null?void 0:Ts.indexOf("pdf"))>-1?ci.replaceSelection(`${Sr.name}`):Wo.includes(Ga)?ci.replaceSelection(`${Sr.name}`):ci.replaceSelection(`[${Sr.name}](/api/attachments/${fa.id}?type=${fa.content_type})`):(fa==null?void 0:fa.status)===401&&(document.location.href="/user/login")})}catch(Rr){Rn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const ci=ue().fromTextArea(Fs.current,{mode:li,lineNumbers:!zn,lineWrapping:!0,value:we,autoCloseTags:!0,autoCloseBrackets:!0});return ci.on("keyup",function(tn,Pi){Pi.keyCode===8&&(tn.getValue()==""?ci.setOption("placeholder",yo):ci.setOption("placeholder",null))}),ci.on("keydown",function(tn,Pi){if(Pi.keyCode===8){var oo=Ir(tn);oo&&Pi.preventDefault()}}),Wn&&ci.focus(),ci.on("paste",Ti),Ci&&ci.on("beforeChange",function(tn,Pi){(Pi.origin==="paste"||Pi.origin==="+input")&&Pi.cancel()}),_o(ci),()=>{ci.off("paste",Ti)}}},[]);const Ra=(0,vt.useCallback)(()=>{if(yr.current)try{}catch(Ti){console.log(Ti,"---- to set md editor body height")}},[co,yr,di]);(0,vt.useEffect)(()=>{function Ti(){let ci=new Be.Z(tn=>{for(let Pi of tn)(Pi.target.offsetHeight>0||Pi.target.offsetWidth>0)&&(Ra(),Xe.setSize("100%","100%"),Xe.refresh())});return ci.observe(Fs.current.parentElement),ci}if(Xe){const ci=Ti();return()=>{var tn,Pi;(tn=Fs.current)!=null&&tn.parentElement&&ci.unobserve((Pi=Fs.current)==null?void 0:Pi.parentElement)}}},[Xe,Ra]),(0,vt.useEffect)(()=>{if(Xe){let Ti=[];for(const[ci,tn]of Object.entries(ea)){let Pi={[ci]:()=>{Vn(tn)}};Ti.push(Pi),Xe.addKeyMap(Pi)}return()=>{for(let ci of Ti)Xe.removeKeyMap(ci)}}},[Xe]),(0,vt.useEffect)(()=>{ke!==di&&mi(ke)},[ke]),(0,bo.Z)(()=>{if(!ie&&To>0){let Ti=new Date().getTime(),ci=window.sessionStorage.getItem(Jn);Ti>=To+hr&&(!ci||ci!==Do)&&(window.sessionStorage.setItem(Jn,Do),po(!0))}},hr),(0,vt.useEffect)(()=>{bn(be)},[Xe,be]),(0,vt.useEffect)(()=>{Xe&&Wn&&Xe.focus()},[Xe,Wn]),(0,vt.useEffect)(()=>{if(je&&Xe){let Ti=function(tn){let Pi=tn.target;if($o.current){let oo=Pi.scrollTop/Pi.scrollHeight;$o.current.scrollTop=$o.current.scrollHeight*oo}};const ci=Xe.getScrollerElement();return ci.addEventListener("scroll",Ti),()=>{ci.removeEventListener("scroll",Ti)}}},[Xe,je]),(0,vt.useEffect)(()=>{if(Xe&&Gi){let Ti=function(ci,tn){Gi(ci,tn)};return Xe.on("beforeChange",Ti),()=>{Xe.off("beforeChange",Ti)}}},[Xe,Gi]),(0,vt.useEffect)(()=>{if(Xe&&an){let Ti=function(){an(Xe.getValue())};return Xe.on("blur",Ti),()=>{Xe.off("blur",Ti)}}},[Xe,an]);function Ir(Ti,ci){var tn=Ti.getDoc(),Pi=tn.getCursor(),oo=tn.getLine(Pi.line),ir=oo.charAt(Pi.ch-1),fr=oo.lastIndexOf("@\u2581@",Pi.ch),pr=oo.lastIndexOf("@\u2581\u2581@",Pi.ch),Rr=fr>pr?fr:pr,Sr=fr>pr?3:4;if(Ui.indexOf(ir)===-1)return null;if(console.log("change1:",ci,Ti,oo,Pi,Rr,fr,pr,ir),Rr>=0&&Pi.ch-Rr<5){var Ga=Rr+Sr;return tn.replaceRange("",{line:Pi.line,ch:Rr},{line:Pi.line,ch:Ga}),{line:Pi.line,ch:Ga}}return null}(0,vt.useEffect)(()=>{if(Xe){let Ti=function(ci,tn){const Pi=ci.getValue();io(Pi),ho(new Date().getTime()),ci.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),pe&&(Kn?pe(Pi,Eu(Pi)):pe(Pi))};return Xe.on("change",Ti),()=>{Xe.off("change",Ti)}}},[Xe,pe]),(0,vt.useEffect)(()=>{if(Xe)if(we==null)Xe.setValue(""),io("");else{const Ti=window.scrollY||window.pageYOffset;we!==Xe.getValue()&&(Xe.setValue(we),io(we),Xe.setCursor(Ci?1:Xe.lineCount(),0),window.scrollTo(0,Ti))}},[Xe,we]);const Vn=(0,vt.useCallback)(Ti=>{const ci=Xe.getCursor(),tn=Xe.getSelection();let Pi=tn.split(` `);switch(Ti){case"bold":return Xe.replaceSelection("**"+tn+"**"),tn===""&&Xe.setCursor(ci.line,ci.ch+2),Xe.focus();case"italic":return Xe.replaceSelection("*"+tn+"*"),tn===""&&Xe.setCursor(ci.line,ci.ch+1),Xe.focus();case"code":return Xe.replaceSelection("`"+tn+"`"),tn===""&&Xe.setCursor(ci.line,ci.ch+1),Xe.focus();case"inline-latex":return qi("inline-latex"),Xe.focus();case"latex":return Xe.replaceSelection("```latex\n"+tn+"\n```"),Xe.setCursor(ci.line+1,tn.length+1),Xe.focus();case"line-break":return Xe.replaceSelection(`
          `),Xe.focus();case"list-ul":return tn===""?Xe.replaceSelection("- "+tn):Xe.replaceSelection(Pi.map(oo=>oo===""?"":`- ${oo}`).join(` `)),Xe.focus();case"list-ol":return tn===""?Xe.replaceSelection("1. "+tn):Xe.replaceSelection(Pi.map((oo,ir)=>oo===""?"":`${ir+1}. ${oo}`).join(` -`)),Xe.focus();case"add-null-ch":return tn===""&&Xe.setCursor(ci.line,ci.ch),Xe.replaceSelection(dr),Xe.focus();case"add-signal":return tn===""&&Xe.setCursor(ci.line,ci.ch),Xe.replaceSelection(Ct),Xe.focus();case"add-multiple":return tn===""&&Xe.setCursor(ci.line,ci.ch),Xe.replaceSelection(Ui),Xe.focus();case"inster-template-1":return tn===""&&Xe.setCursor(ci.line,ci.ch),Xe.replaceSelection(Rs),Xe.focus();case"eraser":return Xe.setValue(""),Xe.focus();case"trigger-watch":return bn(!je),Xe.focus();case"trigger-full-screen":return mi(!di),Xe.focus();case Mi:qi(Mi);return;case Io:qi(Io);return;case ji:qi(ji);return;case Ji:qi(Ji);return;case"maths-latex":qi("maths-latex");return;case wi:qi(wi);return;case Wr:qi(Wr);return;default:throw new Error}},[Xe,je,di]),Rt=(0,vt.useCallback)((Ti,ci)=>{var tn,Pi,oo,ir,fr,pr;switch(qi(""),fi){case Mi:const{title:Ql,link:Me}=Ti;return Xe.replaceSelection(`[${Ql}](${Me})`),Xe.focus();case Io:const{language:Ts,content:Au}=Ti;return Xe.replaceSelection(["```"+Ts,Au,"```"].join(` -`)),Xe.focus();case"maths-latex":for(var Rr=atob(Ti),Sr=new Uint8Array(Rr.length),Ga=0;Ga{xs.id?Xe.replaceSelection(`![,](/api/attachments/${xs.id}?type=${xs.content_type})`):(xs==null?void 0:xs.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Xe.replaceSelection("`$$"+Ti+"$$`");break;case ji:case Ji:case wo:const{src:qa,alt:au}=Ti,Lr=ci,kl=(oo=(Pi=(tn=Lr==null?void 0:Lr.name)==null?void 0:tn.split("."))==null?void 0:Pi.pop)==null?void 0:oo.call(Pi);return((ir=Lr==null?void 0:Lr.type)==null?void 0:ir.indexOf("image"))>-1||!(Lr!=null&&Lr.type)?Lr!=null&&Lr.align||Lr!=null&&Lr.width?Xe.replaceSelection(`

          ${au||

          `):Xe.replaceSelection(`${au||`):((fr=Lr==null?void 0:Lr.type)==null?void 0:fr.indexOf("video"))>-1?Xe.replaceSelection(``):((pr=Lr==null?void 0:Lr.type)==null?void 0:pr.indexOf("pdf"))>-1?Xe.replaceSelection(`${Lr.name}`):Wo.includes(kl)?Xe.replaceSelection(`${Lr.name}`):Xe.replaceSelection(`[${Lr.name}](${qa})`),Xe.focus();case Wr:const{row:gl,col:Ko,align:Yr}=Ti;let Nu=` +`)),Xe.focus();case"add-null-ch":return tn===""&&Xe.setCursor(ci.line,ci.ch),Xe.replaceSelection(dr),Xe.focus();case"add-signal":return tn===""&&Xe.setCursor(ci.line,ci.ch),Xe.replaceSelection(Ct),Xe.focus();case"add-multiple":return tn===""&&Xe.setCursor(ci.line,ci.ch),Xe.replaceSelection(Ui),Xe.focus();case"inster-template-1":return tn===""&&Xe.setCursor(ci.line,ci.ch),Xe.replaceSelection(zs),Xe.focus();case"eraser":return Xe.setValue(""),Xe.focus();case"trigger-watch":return bn(!je),Xe.focus();case"trigger-full-screen":return mi(!di),Xe.focus();case Mi:qi(Mi);return;case Io:qi(Io);return;case ji:qi(ji);return;case Ji:qi(Ji);return;case"maths-latex":qi("maths-latex");return;case wi:qi(wi);return;case Wr:qi(Wr);return;default:throw new Error}},[Xe,je,di]),Rt=(0,vt.useCallback)((Ti,ci)=>{var tn,Pi,oo,ir,fr,pr;switch(qi(""),fi){case Mi:const{title:Ql,link:Me}=Ti;return Xe.replaceSelection(`[${Ql}](${Me})`),Xe.focus();case Io:const{language:Ts,content:Au}=Ti;return Xe.replaceSelection(["```"+Ts,Au,"```"].join(` +`)),Xe.focus();case"maths-latex":for(var Rr=atob(Ti),Sr=new Uint8Array(Rr.length),Ga=0;Ga{xs.id?Xe.replaceSelection(`![,](/api/attachments/${xs.id}?type=${xs.content_type})`):(xs==null?void 0:xs.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Xe.replaceSelection("`$$"+Ti+"$$`");break;case ji:case Ji:case wo:const{src:qa,alt:au}=Ti,Lr=ci,Dl=(oo=(Pi=(tn=Lr==null?void 0:Lr.name)==null?void 0:tn.split("."))==null?void 0:Pi.pop)==null?void 0:oo.call(Pi);return((ir=Lr==null?void 0:Lr.type)==null?void 0:ir.indexOf("image"))>-1||!(Lr!=null&&Lr.type)?Lr!=null&&Lr.align||Lr!=null&&Lr.width?Xe.replaceSelection(`

          ${au||

          `):Xe.replaceSelection(`${au||`):((fr=Lr==null?void 0:Lr.type)==null?void 0:fr.indexOf("video"))>-1?Xe.replaceSelection(``):((pr=Lr==null?void 0:Lr.type)==null?void 0:pr.indexOf("pdf"))>-1?Xe.replaceSelection(`${Lr.name}`):Wo.includes(Dl)?Xe.replaceSelection(`${Lr.name}`):Xe.replaceSelection(`[${Lr.name}](${qa})`),Xe.focus();case Wr:const{row:gl,col:Ko,align:Yr}=Ti;let Nu=` `;for(let xs=0;xs{switch(fi){case Mi:return vt.createElement(De,{callback:Rt,onCancel:ps});case Io:return vt.createElement(Qe.Z,{callback:Rt,onCancel:ps});case ji:return vt.createElement(le.Z,{callback:Rt,onCancel:ps});case wi:return vt.createElement(fn,{callback:Rt,onCancel:ps});case Wr:return vt.createElement(Ft,{callback:Rt,onCancel:ps});case"maths-latex":return vt.createElement(gn,{showSaveButton:!0,callback:Rt});case"inline-latex":return vt.createElement(pn.Z,{showSaveButton:!0,callback:Rt});default:return null}},[fi]);function ps(){qi("")}(0,vt.useEffect)(()=>{if(cn.current){let Ti=function(fr){oo=!0,ir=fr.pageY},ci=function(){oo=!1},tn=function(fr){if(oo){let pr=fr.pageY-ir;pr<0&&(pr=0),pr>300&&(pr=300);let Rr=Bn+pr+"px";jo(Rr)}},Pi=cn.current,oo=!1,ir=0;return Pi.addEventListener("mousedown",Ti),document.addEventListener("mousemove",tn),document.addEventListener("mouseup",ci),()=>{Pi.removeEventListener("mousedown",Ti),document.removeEventListener("mousemove",tn),document.removeEventListener("mouseup",ci)}}},[Xe,cn]),(0,vt.useEffect)(()=>{jo(Bn)},[Bn]);const na=Ss(fe),ca=Ss(co),_l={width:na,height:ca},ga=(0,vt.useMemo)(()=>{if(To){let Ti=new Date(To),ci=Ti.getHours(),tn=Ti.getMinutes(),Pi=Ti.getSeconds();return ci=ci<10?"0"+ci:ci,tn=tn<10?"0"+tn:tn,Pi=Pi<10?"0"+Pi:Pi,`${ci}:${tn}:${Pi}`}return 0},[To]),Eu=Ti=>{const ci=[];if(Kn){let tn=-1;Ti=Ti.replace(/(@▁▁@|@▁@)/g,function(Pi,oo,ir){ci.push({multiLine:Pi!==Ct})})}return ci};function Zl(){window.sessionStorage.removeItem(Jn),po(!1),ho(0)}function tr(){po(!1),ho(0),Xe.setValue(window.sessionStorage.getItem(Jn))}(0,vt.useEffect)(()=>{Tn[fi]&&fi!==Ji&&fi!==wi&&setTimeout(()=>{const Ti=document.getElementsByClassName("markdown-popup-form")[0],ci=window.innerWidth/2-Ti.offsetWidth/2,tn=window.innerHeight/2-Ti.offsetHeight/2;Lo(ci),vr(tn)},0)},[fi]);const gr=Ti=>{Ti.preventDefault();const ci=Ti.clientX-Ke,tn=Ti.clientY-as;document.body.onmousemove=Pi=>{let oo=Pi.clientX-ci,ir=Pi.clientY-tn;const fr=document.getElementsByClassName("markdown-popup-form")[0],pr=window.innerWidth-fr.offsetWidth,Rr=window.innerHeight-fr.offsetHeight;oo=Math.max(0,Math.min(oo,pr)),ir=Math.max(0,Math.min(ir,Rr)),Ea(Pi.clientX,Pi.clientY,ci,tn)&&(Lo(oo),vr(ir))},document.body.onmouseup=function(){document.body.onmousemove=null}},Ea=(Ti,ci,tn,Pi)=>{const oo=document.body.clientHeight,ir=document.body.clientWidth;return Ti<20&&tn>Ti||Ti>ir-20&&tnci||ci>oo-20&&Pite in ee?se(ee,te,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ee[te]=Pe,lt=(ee,te)=>{for(var Pe in te||(te={}))et.call(te,Pe)&&ct(ee,Pe,te[Pe]);if(Dt)for(var Pe of Dt(te))nt.call(te,Pe)&&ct(ee,Pe,te[Pe]);return ee},pt=(ee,te)=>Ae(ee,_e(te));const{useForm:yt}=vt.default,Lt={width:280,marginRight:10},kt={labelCol:{span:5},wrapperCol:{span:19}};var Ht=({callback:ee,onCancel:te})=>{const[Pe]=yt();let ae=(0,Se.useRef)();function We(Ie){ae.current.width=Pe.getFieldValue("width"),ae.current.align=Pe.getFieldValue("align"),ee(Ie,ae.current)}function ye(Ie,rn){if(Ie.status===-1){oe.ZP.error(Ie.message);return}Pe.setFieldsValue({src:`/api/attachments/${Ie.id}`,type:rn.type})}function Ne(Ie){let rn=Ie.target.files[0];ae.current=rn,$t(rn,ye)}return ve.createElement(vt.default,pt(lt({form:Pe},kt),{className:"upload-image-panel",onFinish:We,style:{width:470,overflow:"hidden"}}),ve.createElement(vt.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ve.createElement("div",{className:"flex-container"},ve.createElement(vt.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},ve.createElement(ue.default,{style:Lt})),ve.createElement(Yt,{onFileChange:Ne}))),ve.createElement(vt.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ve.createElement(ue.default,{style:{width:264}})),ve.createElement(vt.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ve.createElement(Be.Z,null,ve.createElement(vt.default.Item,{name:"width",style:{margin:0}},ve.createElement(me.Z,{style:{width:264}})),ve.createElement("span",{className:"ml8"},"%"))),ve.createElement(vt.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ve.createElement(Ee.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"}]})),ve.createElement("aside",null,ve.createElement(vt.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ve.createElement(qt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ve.createElement(qt.ZP,{type:"default",onClick:te},"\u53D6\u6D88"))))};function Yt({onFileChange:ee}){return ve.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ve.createElement("input",{type:"file",onChange:ee}))}function $t(ee,te){if(!ee)throw new String("\u6CA1\u6709\u6587\u4EF6");let Pe=new FormData;Pe.append("editormd-image-file",ee),Pe.append("file_param_name","editormd-image-file"),Pe.append("byxhr","true");var ae=new window.XMLHttpRequest;ae.withCredentials=!0,ae.addEventListener("load",function(We){te(JSON.parse(We.target.responseText),ee)},!1),ae.addEventListener("error",function(We){console.error(We)},!1),ae.open("POST",`${Ce.KI}/api/attachments.json`),ae.send(Pe)}},79346:function(Ze,En,bt){"use strict";bt.d(En,{Z:function(){return ue}});var vt=bt(59301),oe=bt(4676);class ue extends vt.Component{constructor(me){super(me);const Ee=window.document;this.node=Ee.createElement("div"),Ee.body.appendChild(this.node)}render(){const{children:me}=this.props;return(0,oe.createPortal)(me,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23954:function(Ze,En,bt){"use strict";bt.d(En,{SV:function(){return wn},ZP:function(){return un}});var vt=bt(59301),oe=bt(76374);const ue={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"]},Be={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(` +`),Xe.focus();default:throw new Error}},[Xe,fi]),$r=(0,vt.useMemo)(()=>{switch(fi){case Mi:return vt.createElement(De,{callback:Rt,onCancel:ps});case Io:return vt.createElement(Qe.Z,{callback:Rt,onCancel:ps});case ji:return vt.createElement(le.Z,{callback:Rt,onCancel:ps});case wi:return vt.createElement(fn,{callback:Rt,onCancel:ps});case Wr:return vt.createElement(Ft,{callback:Rt,onCancel:ps});case"maths-latex":return vt.createElement(gn,{showSaveButton:!0,callback:Rt});case"inline-latex":return vt.createElement(pn.Z,{showSaveButton:!0,callback:Rt});default:return null}},[fi]);function ps(){qi("")}(0,vt.useEffect)(()=>{if(cn.current){let Ti=function(fr){oo=!0,ir=fr.pageY},ci=function(){oo=!1},tn=function(fr){if(oo){let pr=fr.pageY-ir;pr<0&&(pr=0),pr>300&&(pr=300);let Rr=Bn+pr+"px";jo(Rr)}},Pi=cn.current,oo=!1,ir=0;return Pi.addEventListener("mousedown",Ti),document.addEventListener("mousemove",tn),document.addEventListener("mouseup",ci),()=>{Pi.removeEventListener("mousedown",Ti),document.removeEventListener("mousemove",tn),document.removeEventListener("mouseup",ci)}}},[Xe,cn]),(0,vt.useEffect)(()=>{jo(Bn)},[Bn]);const na=Ss(fe),ca=Ss(co),kl={width:na,height:ca},ga=(0,vt.useMemo)(()=>{if(To){let Ti=new Date(To),ci=Ti.getHours(),tn=Ti.getMinutes(),Pi=Ti.getSeconds();return ci=ci<10?"0"+ci:ci,tn=tn<10?"0"+tn:tn,Pi=Pi<10?"0"+Pi:Pi,`${ci}:${tn}:${Pi}`}return 0},[To]),Eu=Ti=>{const ci=[];if(Kn){let tn=-1;Ti=Ti.replace(/(@▁▁@|@▁@)/g,function(Pi,oo,ir){ci.push({multiLine:Pi!==Ct})})}return ci};function Zl(){window.sessionStorage.removeItem(Jn),po(!1),ho(0)}function tr(){po(!1),ho(0),Xe.setValue(window.sessionStorage.getItem(Jn))}(0,vt.useEffect)(()=>{Tn[fi]&&fi!==Ji&&fi!==wi&&setTimeout(()=>{const Ti=document.getElementsByClassName("markdown-popup-form")[0],ci=window.innerWidth/2-Ti.offsetWidth/2,tn=window.innerHeight/2-Ti.offsetHeight/2;Lo(ci),vr(tn)},0)},[fi]);const gr=Ti=>{Ti.preventDefault();const ci=Ti.clientX-Ke,tn=Ti.clientY-as;document.body.onmousemove=Pi=>{let oo=Pi.clientX-ci,ir=Pi.clientY-tn;const fr=document.getElementsByClassName("markdown-popup-form")[0],pr=window.innerWidth-fr.offsetWidth,Rr=window.innerHeight-fr.offsetHeight;oo=Math.max(0,Math.min(oo,pr)),ir=Math.max(0,Math.min(ir,Rr)),Ea(Pi.clientX,Pi.clientY,ci,tn)&&(Lo(oo),vr(ir))},document.body.onmouseup=function(){document.body.onmousemove=null}},Ea=(Ti,ci,tn,Pi)=>{const oo=document.body.clientHeight,ir=document.body.clientWidth;return Ti<20&&tn>Ti||Ti>ir-20&&tnci||ci>oo-20&&Pite in ee?se(ee,te,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ee[te]=Pe,lt=(ee,te)=>{for(var Pe in te||(te={}))et.call(te,Pe)&&ct(ee,Pe,te[Pe]);if(Dt)for(var Pe of Dt(te))nt.call(te,Pe)&&ct(ee,Pe,te[Pe]);return ee},pt=(ee,te)=>Ae(ee,_e(te));const{useForm:yt}=vt.default,Lt={width:280,marginRight:10},kt={labelCol:{span:5},wrapperCol:{span:19}};var Ht=({callback:ee,onCancel:te})=>{const[Pe]=yt();let ae=(0,Se.useRef)();function We(Ie){ae.current.width=Pe.getFieldValue("width"),ae.current.align=Pe.getFieldValue("align"),ee(Ie,ae.current)}function ye(Ie,rn){if(Ie.status===-1){oe.ZP.error(Ie.message);return}Pe.setFieldsValue({src:`/api/attachments/${Ie.id}`,type:rn.type})}function Ne(Ie){let rn=Ie.target.files[0];ae.current=rn,$t(rn,ye)}return ve.createElement(vt.default,pt(lt({form:Pe},kt),{className:"upload-image-panel",onFinish:We,style:{width:470,overflow:"hidden"}}),ve.createElement(vt.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ve.createElement("div",{className:"flex-container"},ve.createElement(vt.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},ve.createElement(ue.default,{style:Lt})),ve.createElement(Yt,{onFileChange:Ne}))),ve.createElement(vt.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ve.createElement(ue.default,{style:{width:264}})),ve.createElement(vt.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ve.createElement(Be.Z,null,ve.createElement(vt.default.Item,{name:"width",style:{margin:0}},ve.createElement(me.Z,{style:{width:264}})),ve.createElement("span",{className:"ml8"},"%"))),ve.createElement(vt.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ve.createElement(Ee.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"}]})),ve.createElement("aside",null,ve.createElement(vt.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ve.createElement(qt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ve.createElement(qt.ZP,{type:"default",onClick:te},"\u53D6\u6D88"))))};function Yt({onFileChange:ee}){return ve.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ve.createElement("input",{type:"file",onChange:ee}))}function $t(ee,te){if(!ee)throw new String("\u6CA1\u6709\u6587\u4EF6");let Pe=new FormData;Pe.append("editormd-image-file",ee),Pe.append("file_param_name","editormd-image-file"),Pe.append("byxhr","true");var ae=new window.XMLHttpRequest;ae.withCredentials=!0,ae.addEventListener("load",function(We){te(JSON.parse(We.target.responseText),ee)},!1),ae.addEventListener("error",function(We){console.error(We)},!1),ae.open("POST",`${Ce.KI}/api/attachments.json`),ae.send(Pe)}},79346:function(Ze,En,bt){"use strict";bt.d(En,{Z:function(){return ue}});var vt=bt(59301),oe=bt(4676);class ue extends vt.Component{constructor(me){super(me);const Ee=window.document;this.node=Ee.createElement("div"),Ee.body.appendChild(this.node)}render(){const{children:me}=this.props;return(0,oe.createPortal)(me,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23954:function(Ze,En,bt){"use strict";bt.d(En,{SV:function(){return wn},ZP:function(){return un}});var vt=bt(59301),oe=bt(76374);const ue={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"]},Be={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"]},me={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(` @@ -1085,10 +1085,10 @@ ${le} `)},{label:"include ",content:["#include "].join(` `)}]},Ee={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(` `)}]},qt={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 Ce=bt(53184),Se=bt.n(Ce),ve=Object.defineProperty,se=Object.defineProperties,Ae=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,Dt=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,nt=(ze,fn,sn)=>fn in ze?ve(ze,fn,{enumerable:!0,configurable:!0,writable:!0,value:sn}):ze[fn]=sn,ct=(ze,fn)=>{for(var sn in fn||(fn={}))Dt.call(fn,sn)&&nt(ze,sn,fn[sn]);if(_e)for(var sn of _e(fn))et.call(fn,sn)&&nt(ze,sn,fn[sn]);return ze},lt=(ze,fn)=>se(ze,Ae(fn)),pt=(ze,fn,sn)=>new Promise((Bt,Mt)=>{var xt=At=>{try{Ut(sn.next(At))}catch(ge){Mt(ge)}},Ft=At=>{try{Ut(sn.throw(At))}catch(ge){Mt(ge)}},Ut=At=>At.done?Bt(At.value):Promise.resolve(At.value).then(xt,Ft);Ut((sn=sn.apply(ze,fn)).next())});const yt={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"]}},Lt=(ze,fn)=>fn.map(sn=>({label:sn,kind:ze.languages.CompletionItemKind.Keyword,insertText:sn})),kt=ze=>Object.keys(yt.tables).map(fn=>({label:fn,kind:ze.languages.CompletionItemKind.Variable,insertText:fn})),Ht=(ze,fn)=>{const sn=yt.tables[ze];return sn?sn.map(Bt=>({label:Bt,kind:fn.languages.CompletionItemKind.Field,insertText:Bt})):[]};function Yt(ze,fn,sn,Bt,Mt){let xt=fn.getWordUntilPosition(sn),Ft={startLineNumber:sn.lineNumber,endLineNumber:sn.lineNumber,startColumn:xt.startColumn,endColumn:xt.endColumn},Ut=Bt.map(At=>({label:At,kind:ze.languages.CompletionItemKind.Keyword,insertText:At,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ft}));return Mt.map(At=>{Ut.push(lt(ct({},At),{range:Ft}))}),Ut}var $t=ze=>{yt.languages.map(Mt=>(ze.languages.registerDocumentFormattingEditProvider(Mt,{provideDocumentFormattingEdits(xt,Ft,Ut){return pt(this,null,function*(){const At=Se()(xt.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:xt.getFullModelRange(),text:At}]})}}),Mt));const fn=me.quickKey.map(Mt=>({label:Mt.label,kind:ze.languages.CompletionItemKind.Method,insertText:Mt.content,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet})),sn=Ee.quickKey.map(Mt=>({label:Mt.label,kind:ze.languages.CompletionItemKind.Method,insertText:Mt.content,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Bt=Be.quickKey.map(Mt=>({label:Mt.label,kind:ze.languages.CompletionItemKind.Method,insertText:Mt.content,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet}));ze.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Mt,xt){var Ft=Mt.getWordUntilPosition(xt),Ut={startLineNumber:xt.lineNumber,endLineNumber:xt.lineNumber,startColumn:Ft.startColumn,endColumn:Ft.endColumn},At=Mt.getLineContent(xt.lineNumber).substring(Ft.startColumn-2,Ft.endColumn);return{suggestions:[...me.keywords.map(ge=>({label:ge,kind:ze.languages.CompletionItemKind.Function,documentation:ge,insertText:ge,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ut})),...me.quickKey.map(ge=>({label:ge.label,kind:ze.languages.CompletionItemKind.Function,documentation:ge.content,insertText:At.startsWith("#")?ge.content.replace(/#/,""):ge.content,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ut}))]}}}),ze.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Mt,xt){var Ft=Mt.getWordUntilPosition(xt),Ut={startLineNumber:xt.lineNumber,endLineNumber:xt.lineNumber,startColumn:Ft.startColumn,endColumn:Ft.endColumn};return{suggestions:[...ue.keywords.map(At=>({label:At,kind:ze.languages.CompletionItemKind.Function,documentation:At,insertText:At,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ut}))]}}}),ze.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Mt,xt){var Ft=Mt.getWordUntilPosition(xt),Ut={startLineNumber:xt.lineNumber,endLineNumber:xt.lineNumber,startColumn:Ft.startColumn,endColumn:Ft.endColumn},At=Mt.getLineContent(xt.lineNumber).substring(Ft.startColumn-2,Ft.endColumn);return{suggestions:[...Be.keywords.map(ge=>({label:ge,kind:ze.languages.CompletionItemKind.Function,documentation:ge,insertText:ge,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ut})),...Be.quickKey.map(ge=>({label:ge.label,kind:ze.languages.CompletionItemKind.Function,documentation:ge.content,insertText:At.startsWith("#")?ge.content.replace(/#/,""):ge.content,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ut}))]}}}),ze.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Mt,xt){var Ft=Mt.getWordUntilPosition(xt),Ut={startLineNumber:xt.lineNumber,endLineNumber:xt.lineNumber,startColumn:Ft.startColumn,endColumn:Ft.endColumn},At=Mt.getLineContent(xt.lineNumber).substring(Ft.startColumn-2,Ft.endColumn);return{suggestions:[...qt.keywords.map(ge=>({label:ge,kind:ze.languages.CompletionItemKind.Function,documentation:ge,insertText:ge,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ut})),...qt.quickKey.map(ge=>({label:ge.label,kind:ze.languages.CompletionItemKind.Function,documentation:ge.content,insertText:At.startsWith("#")?ge.content.replace(/#/,""):ge.content,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ut}))]}}}),ze.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Mt,xt){var Ft=Mt.getWordUntilPosition(xt),Ut={startLineNumber:xt.lineNumber,endLineNumber:xt.lineNumber,startColumn:Ft.startColumn,endColumn:Ft.endColumn},At=Mt.getLineContent(xt.lineNumber).substring(Ft.startColumn-2,Ft.endColumn);return{suggestions:[...Ee.keywords.map(ge=>({label:ge,kind:ze.languages.CompletionItemKind.Function,documentation:ge,insertText:ge,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ut})),...Ee.quickKey.map(ge=>({label:ge.label,kind:ze.languages.CompletionItemKind.Function,documentation:ge.content,insertText:At.startsWith("#")?ge.content.replace(/#/,""):ge.content,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ut}))]}}})};const ee="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var te=Object.defineProperty,Pe=(ze,fn,sn)=>fn in ze?te(ze,fn,{enumerable:!0,configurable:!0,writable:!0,value:sn}):ze[fn]=sn,ae=(ze,fn,sn)=>Pe(ze,typeof fn!="symbol"?fn+"":fn,sn);const We=class px{constructor(fn,sn,Bt){this.placeholder=fn,this.editor=sn,this.monaco=Bt,sn.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return px.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)}};ae(We,"ID","editor.widget.placeholderHint");var Ne=We,Ie=bt(96236),rn=bt(8591),Dn=bt(6848),vn=bt(89392),Vt=bt(34604),It=bt(56102),ne=Object.defineProperty,De=Object.defineProperties,Qe=Object.getOwnPropertyDescriptors,le=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,on=Object.prototype.propertyIsEnumerable,Cn=(ze,fn,sn)=>fn in ze?ne(ze,fn,{enumerable:!0,configurable:!0,writable:!0,value:sn}):ze[fn]=sn,ln=(ze,fn)=>{for(var sn in fn||(fn={}))Oe.call(fn,sn)&&Cn(ze,sn,fn[sn]);if(le)for(var sn of le(fn))on.call(fn,sn)&&Cn(ze,sn,fn[sn]);return ze},xn=(ze,fn)=>De(ze,Qe(fn)),re=(ze,fn)=>{var sn={};for(var Bt in ze)Oe.call(ze,Bt)&&fn.indexOf(Bt)<0&&(sn[Bt]=ze[Bt]);if(ze!=null&&le)for(var Bt of le(ze))fn.indexOf(Bt)<0&&on.call(ze,Bt)&&(sn[Bt]=ze[Bt]);return sn},kn=(ze,fn,sn)=>new Promise((Bt,Mt)=>{var xt=At=>{try{Ut(sn.next(At))}catch(ge){Mt(ge)}},Ft=At=>{try{Ut(sn.throw(At))}catch(ge){Mt(ge)}},Ut=At=>At.done?Bt(At.value):Promise.resolve(At.value).then(xt,Ft);Ut((sn=sn.apply(ze,fn)).next())});function Zn(ze){return/^\d+$/.test(ze)?`${ze}px`:ze}function On(){}let Un=!1;const hi={"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 Ri(ze=[]){let fn=ze;if(Array.isArray(ze)){for(let sn=0;sn{var fn=ze,{width:sn="100%",height:Bt="100%",value:Mt,language:xt="javascript",style:Ft={},options:Ut={},overrideServices:At={},theme:ge="vs-dark",onEditBlur:dn,isCopy:gn=!1,onSave:pn,autoHeight:Rn=!1,forbidCopy:Mi=!1,onChange:ji=On,editorDidMount:wi=On,onFocus:Ji=On,onBreakPoint:wo=On,breakPointValue:Io=[],filename:Wr="educoder.txt",errorLine:nr,errorContent:Cr="",highlightLine:bo,openBreakPoint:Fo=!1,placeholder:fo=""}=fn,hr=re(fn,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder"]);const dr=(0,vt.useRef)(),Ui=(0,vt.useRef)({}),Ct=(0,vt.useRef)(),Rs=(0,vt.useRef)(),Wo=(0,vt.useRef)([]),Ss=(0,vt.useRef)(!1),ta=(0,vt.useRef)(),ss=(0,vt.useRef)(),ea=(0,vt.useRef)(!1),[Tn,Qn]=(0,vt.useState)(!1);function we(){let ke;return dr.current&&(ke=new oe.Z(an=>{for(let Gi of an)(Gi.target.offsetHeight>0||Gi.target.offsetWidth>0)&&Ui.current.instance.layout()}),ke.observe(dr.current)),ke}function pe(){rn.ZP.warning({content:decodeURIComponent(ee),key:"monaco-editor-tip"})}const fe=()=>{let ke=Ui.current.instance;if(Mt!=null&&ke&&Tn){const an=ke.getModel();an&&Mt!==an.getValue()&&(Un=!0,an.setValue(Mt),ke.layout(),Un=!1)}};(0,vt.useEffect)(()=>{const ke=Vt.Z.subscribe("formatDocument",an=>{var Gi;let Co=Ui.current.instance;(Gi=Co==null?void 0:Co.getAction)==null||Gi.call(Co,"editor.action.formatDocument").run()});return window.updateMonacoValue=an=>{ji(an)},ke},[]),(0,vt.useEffect)(()=>{var ke;let an=Ui.current.instance;Rs.current&&clearTimeout(Rs.current),Rs.current=setTimeout(()=>{fe()},500),Mt&&(Mt!=null&&Mt.length)&&((ke=an==null?void 0:an.updateOptions)==null||ke.call(an,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Mt.split(/\r\n|\r|\n/g).length))+3,5)}))},[Mt,Tn,Ui.current]),(0,vt.useEffect)(()=>{if(nr&&Ui.current&&Ui.current.instance){let an=Ui.current.instance;an.changeViewZones(function(Gi){var Co=document.createElement("div");Co.style.padding="10px 20px",Co.style.width="calc(100% - 20px)",Co.className="my-error-line-wrp",Co.innerHTML=Cr,Gi.addZone({afterLineNumber:nr||11,heightInLines:3,domNode:Co})});var ke={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}};an.addOverlayWidget(ke),an.revealPositionInCenter({lineNumber:20,column:1})}},[nr,Ui.current,Tn]);const Bn=(ke="",an)=>{if(!ke||ke.trim()==="")return!0;const Co=Ui.current.instance.getModel().getLineTokens(an);let Po=!1;for(let vi=0;vi<2;vi++)Co.getStandardTokenType(vi)===1&&(Po=!0);return Po};(0,vt.useEffect)(()=>{var ke;const an=(ke=Ui.current)==null?void 0:ke.instance;if(an&&Tn&&Mi){const Gi=an.onDidBlurEditorWidget(()=>{ea.current=!1}),Co=an.onDidFocusEditorText(()=>{ea.current=!0});return()=>{Gi.dispose(),Co.dispose()}}},[Ui.current,Tn,Mi]),(0,vt.useEffect)(()=>{var ke;if((ke=Ui.current)!=null&&ke.instance&&Tn&&Fo){let an=Ui.current.instance,Gi=an.getModel();if(!Gi)return;(()=>{var io;let je=[],bn=[];const di=Gi.getAllDecorations();for(let fi of di)fi.options.className==="highlighted-line"&&(je.push((io=fi==null?void 0:fi.range)==null?void 0:io.startLineNumber),bn.push(fi==null?void 0:fi.id));if(bo===je[0])return;Gi.deltaDecorations(bn,[]);const mi=Gi.getLineCount();bo&&bo<=mi&&(an.deltaDecorations([],[{range:new nn.Range(bo,1,bo,Gi.getLineMaxColumn(bo)),options:{isWholeLine:!0,className:"highlighted-line"}}]),an.revealLineInCenter(bo))})();const Po=(io=!1)=>{var je;let bn=[],di=[];const mi=Gi.getAllDecorations();for(let fi of mi)fi.options.linesDecorationsClassName==="breakpoints-select"&&(bn.push((je=fi==null?void 0:fi.range)==null?void 0:je.startLineNumber),di.push(fi==null?void 0:fi.id));if(io)return{lines:bn,ids:di};wo(bn)},vi=io=>kn(void 0,null,function*(){let je={range:new nn.Range(io,1,io,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Gi.deltaDecorations([],[je]),Po()}),Ci=io=>kn(void 0,null,function*(){let je=[];const bn=an.getLineDecorations(io);for(let di of bn)di.options.linesDecorationsClassName==="breakpoints-select"&&je.push(di.id);yield Gi.deltaDecorations(je,[]),Po()}),ui=io=>{let je=an.getLineDecorations(io);for(let bn of je)if(bn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,vn.isEqual)(Io,Po(!0).lines)){Gi.deltaDecorations(Po(!0).ids,[]);const io=Io.map(je=>({range:new nn.Range(je,1,je,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Gi.deltaDecorations([],io)}const yo=an.onDidChangeModelContent(io=>{let je=an.getPosition();if(je){let bn=je.lineNumber;clearTimeout(ss.current),ss.current=setTimeout(()=>{Bn(Gi.getLineContent(bn),bn)?Ci(bn):ui(bn)?(Ci(bn),vi(bn)):Po()},100)}}),cr=an.onMouseDown(io=>{var je,bn,di;if(io.target.detail&&((di=(bn=(je=io.target)==null?void 0:je.element)==null?void 0:bn.className)!=null&&di.includes("line-numbers"))){let mi=io.target.position.lineNumber;if(Bn(Gi.getLineContent(mi),mi))return;ui(mi)?Ci(mi):vi(mi)}}),Vo=io=>{let je={range:new nn.Range(io,1,io,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Wo.current=an.deltaDecorations(Wo.current,[je])},Xe=()=>{Wo.current=an.deltaDecorations(Wo.current,[])},_o=an.onMouseMove(io=>{var je,bn,di;if(Xe(),io.target.detail&&((di=(bn=(je=io.target)==null?void 0:je.element)==null?void 0:bn.className)!=null&&di.includes("line-numbers"))){let mi=io.target.position.lineNumber;if(Bn(Gi.getLineContent(mi),mi))return;Vo(mi)}}),Do=an.onMouseLeave(()=>{Xe()});return()=>{yo.dispose(),cr.dispose(),_o.dispose(),Do.dispose()}}},[Ui.current,Tn,Io,bo,Fo,xt]),(0,vt.useEffect)(()=>{var ke;(ke=Ui.current)!=null&&ke.instance&&Fo&&Ui.current.instance.setPosition({lineNumber:0,column:0})},[bo]);function zn(){let ke=Ui.current.instance;if(ke){const an=ke.getSelection(),Gi=Ui.current.pastePos||{},Co=new nn.Range(Gi.startLineNumber||an.endLineNumber,Gi.startColumn||an.endColumn,Gi.endLineNumber||an.endLineNumber,Gi.endColumn||an.endColumn);setTimeout(()=>{ke.executeEdits("",[{range:Co,text:""}])},300)}}function Wn(ke){(window.navigator.platform.match("Mac")?ke.metaKey:ke.ctrlKey)&&ke.keyCode==83&&(ke.preventDefault(),pn())}const be=()=>{if(Rn&&Ui.current.instance){const ke=Ui.current.instance.getContentHeight();Kn(ke{if(!ea.current)return;const{keyCode:an,ctrlKey:Gi,metaKey:Co,target:Po,type:vi}=ke;return(vi==="paste"||(an===67||an===86)&&(Co||Gi))&&Po.nodeName==="TEXTAREA"&&(pe(),ke.preventDefault()),!1};function Jn(ke,an){var Gi=window.URL||window.webkitURL||window,Co=new Blob([an]),Po=document.createElementNS("http://www.w3.org/1999/xhtml","a");Po.href=Gi.createObjectURL(Co),Po.download=ke,An(Po)}(0,vt.useEffect)(()=>{be()},[be]),(0,vt.useEffect)(()=>{dr.current&&!Tn&&Promise.all([bt.e(8909),bt.e(3267)]).then(bt.bind(bt,71448)).then(ke=>{try{nn=ke,Ui.current.instance=nn.editor.create(dr.current,{value:Mt,language:Ri(xt),theme:ge,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},At);const an=Ui.current.instance;let Po=[...Ie.BH._menuItems].find(yo=>yo[0]._debugName=="EditorContext")[1],vi=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Ci=(yo,cr)=>{var Vo,Xe;let _o=yo._first;do cr.includes((Xe=(Vo=_o.element)==null?void 0:Vo.command)==null?void 0:Xe.id)&&yo._remove(_o);while(_o=_o.next)};if(wi(an,nn),setTimeout(()=>{be(),Ui.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Jn(Wr||"educoder.txt",an.getValue())}})},500),Ui.current.subscription=an.onDidChangeModelContent(yo=>{Ss.current?clearTimeout(ta.current):(be(),ji(an.getValue(),yo)),ta.current=setTimeout(()=>{Ss.current=!1},500)}),window.Monaco||$t(nn,Ri(xt)),Mi&&(Ci(Po,vi),dr.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",li),window.removeEventListener("paste",li),window.addEventListener("keydown",li),window.addEventListener("paste",li)),window.Monaco=nn,dn&&an.onDidBlurEditorWidget(()=>{dn(an.getValue())}),Ji&&an.onDidFocusEditorText(()=>{Ji(an.getValue())}),Mi)try{an.onDidPaste(yo=>{const cr=an.getSelection(),Vo=Ui.current.pastePos||{},Xe=new nn.Range(Vo.startLineNumber||cr.endLineNumber,Vo.startColumn||cr.endColumn,Vo.endLineNumber||cr.endLineNumber,Vo.endColumn||cr.endColumn);an.executeEdits("",[{range:yo.range,text:""}])})}catch(yo){}let ui=we();return fo&&typeof fo=="string"&&new Ne(fo,an,nn),Qn(!0),()=>{const yo=Ui.current.instance;yo.dispose();const cr=yo.getModel();cr&&cr.dispose(),Ui.current.subscription&&Ui.current.subscription.dispose(),ui.unobserve(dr.current)}}catch(an){}})},[]),(0,vt.useEffect)(()=>{if(Ui.current.instance&&Tn)return document.addEventListener("keydown",Wn,!1),()=>{document.removeEventListener("keydown",Wn)}},[pn,Tn]),(0,vt.useEffect)(()=>{let ke=Ui.current.instance;if(ke&&Tn){let an=Ri(xt);nn.editor.setModelLanguage(ke.getModel(),an)}},[xt,Tn]),(0,vt.useEffect)(()=>{Ui.current.instance&&Tn&&nn.editor.setTheme(ge)},[ge,Tn]),(0,vt.useEffect)(()=>{let ke=Ui.current.instance;Ct.current=Ut,ke&&Tn&&(ke.updateOptions(ln({},Ut)),setTimeout(()=>{ke.getModel().updateOptions(ln({},Ut))},200))},[JSON.stringify(Ut),Tn]),(0,vt.useEffect)(()=>{let ke=Ui.current.instance;ke&&Tn&&ke.layout()},[sn,Bt,Tn]);const[Ki,ie]=(0,vt.useState)(Zn(sn)),[yn,Kn]=(0,vt.useState)(Zn(Bt)),Wi=xn(ln({},Ft),{width:Ki,height:yn,position:"relative"});return vt.createElement("div",{className:"my-monaco-editor",ref:dr,style:Wi},gn&&vt.createElement(It.CopyToClipboard,{text:Mt,onCopy:()=>rn.ZP.success("\u590D\u5236\u6210\u529F")},vt.createElement(Dn.Z,{title:"\u590D\u5236\u4EE3\u7801"},vt.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},vt.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function wn({width:ze="100%",height:fn="100%",original:sn,modified:Bt,language:Mt,options:xt={}}){const Ft=(0,vt.useRef)(),[Ut,At]=(0,vt.useState)(null);function ge(Rn){let Mi;return Ft.current&&(Mi=new oe.Z(ji=>{for(let wi of ji)(wi.target.offsetHeight>0||wi.target.offsetWidth>0)&&Rn.layout()}),Mi.observe(Ft.current)),Mi}(0,vt.useEffect)(()=>(Ft.current&&Promise.all([bt.e(8909),bt.e(9404)]).then(bt.bind(bt,2550)).then(Rn=>{nn=Rn;const Mi=nn.editor.createDiffEditor(Ft.current,xn(ln({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},xt),{wordWrap:!0}));At(Mi);let ji=ge(Mi);return()=>{Mi.dispose();const wi=Mi.getModel();wi&&wi.dispose(),ji.unobserve(Ft.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,vt.useEffect)(()=>{Ut&&Ut.setModel({original:nn.editor.createModel(sn,Mt),modified:nn.editor.createModel(Bt,Mt)})},[sn,Bt,Mt,Ut]);const dn=Zn(ze),gn=Zn(fn),pn={width:dn,height:gn};return vt.createElement("div",{className:"my-diff-editor",ref:Ft,style:pn})}},85057:function(Ze,En,bt){"use strict";bt.d(En,{jL:function(){return me},w9:function(){return Oe},QD:function(){return ji},cQ:function(){return It},op:function(){return ge},O5:function(){return ea},_b:function(){return nr},t7:function(){return lt},Gi:function(){return kn},YG:function(){return xn},qp:function(){return se},vr:function(){return wo},qE:function(){return pn},Je:function(){return Lt},wb:function(){return Ie},cq:function(){return nn},tp:function(){return Dt}});var vt=bt(59301),oe={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"},ue="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/6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1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",me=({dataSource:Tn=[],img:Qn,imgWidth:we=346,title:pe,sunTitle:fe,bannerExtraContent:Bn})=>vt.createElement("div",{className:oe.banner},vt.createElement("div",{className:oe.content},vt.createElement("aside",null,vt.createElement("p",null,vt.createElement("b",null,pe),vt.createElement("span",null,fe)),Tn.length>0&&vt.createElement("div",{className:oe.btns},Tn.map((zn,Wn)=>vt.createElement("div",{key:Wn,onClick:zn.click},zn.name,zn.sign?vt.createElement("img",{src:ue,width:39}):null))),Bn),Qn&&vt.createElement("img",{style:{marginTop:33,marginRight:38},src:Qn,width:we}))),Ee={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"},qt=bt(92310),Ce=bt.n(qt),Se=bt(89392),se=({dataSource:Tn=[],value:Qn,onChange:we,onTitleChange:pe,className:fe,title:Bn,titleWidth:zn=41,style:Wn={},fontColor:be="#6A7283",showCount:An})=>{const[li,Jn]=(0,vt.useState)(0),[Ki,ie]=(0,vt.useState)(!1),yn=(0,vt.useRef)(null),Kn=(0,vt.useRef)(null);return(0,vt.useEffect)(()=>{var Wi;Tn.length!==0&&(((Wi=yn==null?void 0:yn.current)==null?void 0:Wi.clientHeight)>97?Jn(1):Jn(0)),Tn.length===0&&Jn(0),ie(!1)},[Tn]),vt.createElement("div",{className:Ce()(Ee.row,fe),style:Wn},vt.createElement("div",{onClick:(0,Se.throttle)(()=>pe==null?void 0:pe(),2e3),style:{width:zn,marginTop:Ki?12:4},className:`${Ee.title} ${pe?"current":""}`},Bn),vt.createElement("div",{className:Ki?`${Ee.tagsWrap} ${Ee.tagsBorderWrap}`:Ee.tagsWrap},vt.createElement("div",{className:Ee.bar,ref:Kn,style:li>0?{height:li===1?97:"auto",overflow:li===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},vt.createElement("div",{className:Ee.tag,ref:yn},Tn==null?void 0:Tn.map(Wi=>vt.createElement("span",{onClick:()=>we(Wi.id),key:Wi.id,style:{color:be},className:Qn===Wi.id?Ee.active:""},vt.createElement("span",{title:Wi.name,className:Ee.name},Wi.name),!!An&&vt.createElement("span",{className:Ee.num},Wi.count))))),!!li&&vt.createElement(vt.Fragment,null,li===1?vt.createElement("div",{onClick:()=>{var Wi;Jn(2),((Wi=yn==null?void 0:yn.current)==null?void 0:Wi.clientHeight)>245?ie(!0):ie(!1)},className:Ee.action},"\u5C55\u5F00",vt.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):vt.createElement("div",{onClick:()=>{Kn.current.scrollTop=0,Jn(1),ie(!1)},className:Ee.action},"\u6536\u8D77",vt.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Ae={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"},Dt=({dataSource:Tn=[],value:Qn,onChange:we,className:pe,style:fe={}})=>vt.createElement("div",{style:fe,className:Ce()(Ae.tabs,pe)},Tn.map(Bn=>vt.createElement("span",{onClick:()=>we(Bn.id),className:Qn===Bn.id?Ae.active:"",key:Bn.id},Bn.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"},nt=bt(92832),lt=({dataSource:Tn=[],value:Qn="",onChange:we,onInputChange:pe=()=>{},className:fe,style:Bn={},placeholder:zn,allowClear:Wn=!1})=>{var be;const[An,li]=(0,vt.useState)(""),[Jn,Ki]=(0,vt.useState)("");(0,vt.useEffect)(()=>{var Kn;let Wi=Qn;(Kn=JSON.stringify(Qn))!=null&&Kn.includes("{")&&(li(Qn.id),Wi=Qn.value||"");try{Ki(decodeURIComponent(Wi||""))}catch(ke){Ki(decodeURIComponent(Wi||""))}},[Qn]);const ie=()=>{we(encodeURIComponent(Jn),An||null)},yn=Kn=>{Kn!==An&&(li(Kn),we(encodeURIComponent(Jn),Kn))};return vt.createElement("div",{className:Ce()(et.input,fe),style:Bn},!!Tn.length&&vt.createElement("div",{className:et.dropdown},vt.createElement("div",{className:et.text},(be=Tn.find(Kn=>Kn.id===An))==null?void 0:be.name,vt.createElement("i",{className:"iconfont icon-zhankai4"}),vt.createElement("b",{className:et.b1}),vt.createElement("b",{className:et.b2})),vt.createElement("div",{className:et.menu},Tn.map((Kn,Wi)=>vt.createElement("div",{key:Wi,onClick:()=>yn(Kn.id)},Kn.name)))),vt.createElement(nt.default,{onPressEnter:ie,value:Jn,onChange:Kn=>{Ki(Kn.target.value),pe(encodeURIComponent(Kn.target.value),An||null)},bordered:!1,placeholder:zn}),vt.createElement("i",{onClick:ie,className:"iconfont icon-sousuo9 font14 pl10 current"}))},pt={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"},Lt=({value:Tn,onChange:Qn,className:we,total:pe,pageSize:fe,style:Bn={}})=>{const zn=Tn<2,Wn=Tn>=Math.ceil(pe/fe);return pe<=fe?vt.createElement(vt.Fragment,null):vt.createElement("div",{className:Ce()(pt.quickPager,we),style:Bn},vt.createElement("div",{onClick:()=>{zn||Qn(Tn-1,"prev")},className:zn?pt.disabled:""},"\u4E0A\u4E00\u9875"),vt.createElement("div",{onClick:()=>{Wn||Qn(Tn+1,"next")},className:Wn?pt.disabled:""},"\u4E0B\u4E00\u9875"))},kt={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"},Ht=bt(71418),Yt=bt(6848),$t=bt(13570),ee=bt(3294),te=bt(955),Pe=bt(96908),ae=bt(57177),We=bt(81378),ye=bt(8797),Ie=({className:Tn,dataSource:Qn=[],col:we=4,right:pe,bottom:fe=23,precision:Bn=0,wrapWidth:zn=1200,trackEventItems:Wn,loading:be})=>{const An=Math.floor((zn-(we-1)*pe)/we);return vt.createElement(Ht.Z,{spinning:be},vt.createElement("div",{className:Ce()(kt.list,Tn)},!!Qn.length&&Qn.map((li,Jn)=>{const{name:Ki,id:ie,identifier:yn,power:Kn,cover_image_id:Wi,pic:ke}=li;return vt.createElement("div",{className:kt.wrap,key:ie,style:{width:An,marginRight:(1+Jn)%we===0?0:pe+Bn,marginBottom:fe}},vt.createElement("a",{target:"_blank",href:`/shixuns/${yn}/challenges`,className:kt.li,onClick:an=>{an.preventDefault(),Wn&&(0,te.L9)([Wn]),Kn&&(0,te.xg)(`/shixuns/${yn}/challenges`)}},vt.createElement("div",{className:kt.img},vt.createElement("img",{className:kt.cover,src:`${ke}`}),li.is_jupyter&&vt.createElement("img",{className:kt.sign,src:Pe}),li.is_jupyter_lab&&vt.createElement("img",{className:kt.sign,src:ae}),li.is_unity_3d&&vt.createElement("img",{className:kt.sign,src:We})),vt.createElement("div",{className:kt.name},vt.createElement(Yt.Z,{title:Ki||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},vt.createElement("span",{className:kt.e},Ki||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),vt.createElement("div",{className:kt.tags},vt.createElement(Yt.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},vt.createElement("span",null,vt.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),vt.createElement("span",null,li.challenges_count))),!!li.myshixuns_count&&vt.createElement(Yt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},vt.createElement("span",null,vt.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),vt.createElement("span",null,li.myshixuns_count))),vt.createElement(Yt.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},vt.createElement("span",null,vt.createElement("span",null,li.level))),vt.createElement("div",{className:kt.rate},vt.createElement($t.Z,{allowHalf:!0,disabled:!0,defaultValue:li.score_info}),vt.createElement("span",null,"\xA0",li.score_info?`${li.score_info}\u5206`:"5\u5206")))),!Kn&&vt.createElement("div",{className:kt.lockWrap},vt.createElement("img",{src:`${ee.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),vt.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Qn.length&&vt.createElement(ye.Z,null)))},rn={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"},Dn=bt(24065),vn=bt(59301),It=({className:Tn,dataSource:Qn=[],col:we=4,right:pe,bottom:fe=23,precision:Bn=0,wrapWidth:zn=1200,trackEventItems:Wn,loading:be,onRemove:An=()=>{},isCurrent:li=!0,showAlias:Jn=!1})=>{const Ki=Math.floor((zn-(we-1)*pe)/we),ie=[{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 vn.createElement(Ht.Z,{spinning:be},vn.createElement("div",{className:Ce()(rn.list,Tn)},!!(Qn!=null&&Qn.length)&&(Qn==null?void 0:Qn.map((yn,Kn)=>{var Wi;const{name:ke,id:an,identifier:Gi,featured:Co,school_name:Po,image_url:vi,excellent:Ci,is_plan:ui}=yn;return vn.createElement("div",{key:an,className:rn.wrap,style:{width:Ki,marginRight:(1+Kn)%we===0?0:pe+Bn,marginBottom:fe}},vn.createElement("a",{className:rn.li,onClick:yo=>{yo.preventDefault(),yo.stopPropagation(),Wn&&(0,te.L9)([Wn]),(0,te.xg)(`/paths/${Gi}`)}},vn.createElement("div",{className:rn.img},vn.createElement("img",{className:rn.cover,src:`${vi}`}),li&&(0,Dn.bg)()&&(yn==null?void 0:yn.studying)&&vn.createElement("div",{className:`${rn.movebq} user-path-items`,onClick:yo=>{yo.stopPropagation(),An(yn)}},vn.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),vn.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Wi=yn==null?void 0:yn.subject_tags)==null?void 0:Wi.map((yo,cr)=>{var Vo,Xe;if(cr===0){const Do=(Vo=ie.find(io=>io.name==yo))==null?void 0:Vo.swimg;return vn.createElement("img",{className:rn.sign,src:Do,style:{left:"-4px"}})}const _o=(Xe=ie.find(Do=>Do.name==yo))==null?void 0:Xe.ptimg;return vn.createElement("img",{className:rn.sign,src:_o,style:{left:`${48+52*(cr-1)+2*cr}px`}})}),vn.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(yn==null?void 0:yn.excellent)&&vn.createElement("div",{className:rn.bq},"\u5F00\u653E\u8BFE\u7A0B"))),vn.createElement("div",{className:rn.name},vn.createElement(Yt.Z,{title:Jn&&(yn!=null&&yn.excellent_alias_name)?vn.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${ke}`,vn.createElement("br",null),vn.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${yn==null?void 0:yn.excellent_alias_name}`)):ke},vn.createElement("span",{className:rn.e},Jn&&(yn==null?void 0:yn.excellent_alias_name)||ke))),vn.createElement(Yt.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Po}`},vn.createElement("div",{className:rn.unit},vn.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Po)),vn.createElement("div",{className:rn.tags},vn.createElement("div",null,vn.createElement(Yt.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},vn.createElement("span",null,vn.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),vn.createElement("span",null,yn.stages_count))),vn.createElement(Yt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},vn.createElement("span",null,vn.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),vn.createElement("span",null,yn.members_count)))))))})),!Qn.length&&vn.createElement(ye.Z,null)))},ne={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"},De="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/s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jhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Qe=bt(59301),Oe=({className:Tn,dataSource:Qn=[],col:we=4,right:pe,bottom:fe=23,precision:Bn=0,wrapWidth:zn=1200,trackEventItems:Wn,loading:be,handleVery:An=()=>!0})=>{const li=Math.floor((zn-(we-1)*pe)/we);return Qe.createElement(Ht.Z,{spinning:be},Qe.createElement("div",{className:Ce()(ne.list,Tn)},!!Qn.length&&Qn.map((Jn,Ki)=>{const{subject_identifier:ie,id:yn,identifier:Kn,power:Wi}=Jn,ke=Jn.is_public!=0&&Jn.is_public;return Qe.createElement("div",{className:ne.wrap,key:yn,style:{width:li,marginRight:(1+Ki)%we===0?0:pe+Bn,marginBottom:fe}},Qe.createElement("a",{className:ne.li,onClick:an=>{an.preventDefault(),An(Jn==null?void 0:Jn.first_category_url)&&(Wn&&(0,te.L9)([Wn]),(0,te.xg)(Jn.first_category_url))}},Qe.createElement("div",{className:ne.top},Qe.createElement(Yt.Z,{title:Jn.name},Qe.createElement("div",{className:ne.name},Jn.name)),Qe.createElement("img",{className:ne.img,src:ee.Z.IMG_SERVER+"/images/"+Jn.avatar_url}),Qe.createElement("div",{className:ne.text,title:Jn.creator},Jn.creator),ie&&Qe.createElement("div",{className:ne.btns},Qe.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Qe.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),ke&&Qe.createElement("div",{className:ne.sign},"\u516C\u5F00")),Qe.createElement("div",{className:ne.bottom},Jn.visits>0&&Qe.createElement(Yt.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Qe.createElement("span",null,Qe.createElement("i",{className:"iconfont icon-liulanyan"}),Qe.createElement("span",null,Jn.visits))),Jn.course_members_count>0&&Qe.createElement(Yt.Z,{title:"\u6210\u5458",placement:"bottom"},Qe.createElement("span",null,Qe.createElement("i",{className:"iconfont icon-chengyuan"}),Jn.course_members_count)),Jn.tasks_count>0&&Qe.createElement(Yt.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Qe.createElement("span",null,Qe.createElement("i",{className:"iconfont icon-zuoye"}),Jn.tasks_count)),Jn.is_end?Qe.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Qe.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Jn.is_accessible&&Qe.createElement("div",{className:ne.lockWrap},Qe.createElement("img",{src:`${ee.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Qe.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Qn.length&&Qe.createElement(ye.Z,null)))},on={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"},Cn=bt(89070),xn=({dataSource:Tn=[],value:Qn,onChange:we,className:pe,style:fe={},tabBarExtraContent:Bn})=>vt.createElement("div",{className:Ce()(on.tabs,pe),style:fe},vt.createElement("div",{className:on.tabsWrap},Tn.map((zn,Wn)=>!(zn!=null&&zn.hide)&&vt.createElement("aside",{className:on.tab,onClick:()=>{we(zn.id),zn.link&&Cn.history.push(zn.link)},key:Wn},vt.createElement("div",{className:Qn===zn.id?on.active:""},zn.name),(zn==null?void 0:zn.resetCount)==null&&(zn==null?void 0:zn.total)!==void 0&&vt.createElement("span",null,"\uFF08",zn==null?void 0:zn.total,"\uFF09"),(zn==null?void 0:zn.resetCount)!==void 0&&(zn==null?void 0:zn.total)!==void 0&&vt.createElement(Yt.Z,{title:(zn==null?void 0:zn.tip)!=null?zn==null?void 0:zn.tip:""},vt.createElement("span",{style:{color:"#9096A3"}},"\uFF08",vt.createElement("span",{style:{color:"#000"}},zn==null?void 0:zn.resetCount),"/",vt.createElement("span",null,zn==null?void 0:zn.total),"\uFF09"))))),vt.createElement("div",{className:on.tabBar},Bn)),kn=({className:Tn,style:Qn={},children:we})=>vt.createElement("div",{className:Ce()(Tn),style:Qn},we),Zn={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"},On=bt(38854),Un=bt(20834);const hi=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var nn=({sortValue:Tn,dropValue:Qn,className:we,onSort:pe,onDrop:fe,dataSource:Bn=hi})=>{var zn;return vt.createElement("div",{className:Ce()(Zn.orderWrap,we)},vt.createElement(On.Z,{dropdownRender:()=>vt.createElement(Un.default,null,Bn.map((Wn,be)=>vt.createElement(Un.default.Item,{key:be,onClick:()=>fe(Wn.id)},Wn.name)))},vt.createElement("span",{className:Zn.orderTextWrap},(zn=Bn.find(Wn=>Qn===Wn.id))==null?void 0:zn.name)),vt.createElement("span",{className:Zn.orderIconWrap},vt.createElement("span",{className:Zn.orderAsc},vt.createElement("i",{className:Tn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Zn.cursorPointer} ${Zn.active}`:`iconfont icon-sanjiaoxing-up font12 ${Zn.cursorPointer}`,onClick:()=>pe(Tn==="asc"?"desc":"asc")})),vt.createElement("span",{className:Zn.orderDesc},vt.createElement("i",{className:Tn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Zn.cursorPointer} ${Zn.active}`:`iconfont icon-sanjiaoxing-down font12 ${Zn.cursorPointer}`,onClick:()=>pe(Tn==="asc"?"desc":"asc")}))))},un={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"},wn=bt(3113),ze=Object.defineProperty,fn=Object.getOwnPropertySymbols,sn=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable,Mt=(Tn,Qn,we)=>Qn in Tn?ze(Tn,Qn,{enumerable:!0,configurable:!0,writable:!0,value:we}):Tn[Qn]=we,xt=(Tn,Qn)=>{for(var we in Qn||(Qn={}))sn.call(Qn,we)&&Mt(Tn,we,Qn[we]);if(fn)for(var we of fn(Qn))Bt.call(Qn,we)&&Mt(Tn,we,Qn[we]);return Tn},Ft=(Tn,Qn)=>{var we={};for(var pe in Tn)sn.call(Tn,pe)&&Qn.indexOf(pe)<0&&(we[pe]=Tn[pe]);if(Tn!=null&&fn)for(var pe of fn(Tn))Qn.indexOf(pe)<0&&Bt.call(Tn,pe)&&(we[pe]=Tn[pe]);return we},Ut=(Tn,Qn,we)=>new Promise((pe,fe)=>{var Bn=be=>{try{Wn(we.next(be))}catch(An){fe(An)}},zn=be=>{try{Wn(we.throw(be))}catch(An){fe(An)}},Wn=be=>be.done?pe(be.value):Promise.resolve(be.value).then(Bn,zn);Wn((we=we.apply(Tn,Qn)).next())}),ge=Tn=>{var Qn=Tn,{className:we,style:pe,children:fe,loading:Bn=!1,openLoading:zn,onClick:Wn=()=>{},size:be="middle",shape:An="round"}=Qn,li=Ft(Qn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Jn,Ki]=(0,vt.useState)(!1);return vt.createElement(wn.ZP,xt({onClick:(0,Se.throttle)(ie=>Ut(void 0,null,function*(){zn&&Ki(!0);try{yield Wn(ie)}catch(yn){console.log("error",yn)}zn&&Ki(!1)}),2e3,{leading:!0,trailing:!1}),className:Ce()(un.btn,un[`${be}-${An}`],we),style:pe,size:be,shape:An,loading:Jn||Bn},li),fe)},dn={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"},pn=({className:Tn,style:Qn,children:we=null,onClick:pe,title:fe})=>vt.createElement("div",{className:Ce()(dn.head,Tn),style:Qn},vt.createElement("span",{className:"primary-hover",onClick:pe},vt.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),vt.createElement("b",{title:fe},fe),vt.createElement("div",{className:dn.node},we)),Rn={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"},ji=({confirmShow:Tn=!0,confirmTitle:Qn,confirmClick:we,cancelShow:pe=!0,cancelTitle:fe,cancelClick:Bn,className:zn,style:Wn,confirmLoading:be=!1})=>vt.createElement("div",{className:Ce()(Rn.btns,zn),style:Wn},Tn&&vt.createElement(wn.ZP,{loading:be,onClick:we,type:"primary",className:Rn.confirm},Qn),pe&&vt.createElement(wn.ZP,{onClick:Bn,className:Rn.cancel},fe)),wi={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"},wo=({className:Tn,style:Qn={},LeftContent:we,children:pe,RightContent:fe})=>vt.createElement("div",{className:Ce()(wi.fixedBottom,Tn),style:Qn},vt.createElement("div",{className:wi.wrap},vt.createElement("div",{className:wi.left},we),vt.createElement("div",{className:wi.center},pe),vt.createElement("div",{className:wi.right},fe))),Io={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"},nr=({className:Tn,style:Qn={},dataSource:we=[]})=>vt.createElement("div",{className:Ce()(Io.crumbs,Tn),style:Qn},we.map((pe,fe)=>feCn.history.push(pe.path)},pe.name):vt.createElement("span",null,pe.name),vt.createElement("span",null,"\xA0",">","\xA0")):vt.createElement("span",{key:fe,style:{color:"#5F6368"}},pe.name))),Cr=bt(31797),bo=Object.defineProperty,Fo=Object.defineProperties,fo=Object.getOwnPropertyDescriptors,hr=Object.getOwnPropertySymbols,dr=Object.prototype.hasOwnProperty,Ui=Object.prototype.propertyIsEnumerable,Ct=(Tn,Qn,we)=>Qn in Tn?bo(Tn,Qn,{enumerable:!0,configurable:!0,writable:!0,value:we}):Tn[Qn]=we,Rs=(Tn,Qn)=>{for(var we in Qn||(Qn={}))dr.call(Qn,we)&&Ct(Tn,we,Qn[we]);if(hr)for(var we of hr(Qn))Ui.call(Qn,we)&&Ct(Tn,we,Qn[we]);return Tn},Wo=(Tn,Qn)=>Fo(Tn,fo(Qn)),Ss=(Tn,Qn)=>{var we={};for(var pe in Tn)dr.call(Tn,pe)&&Qn.indexOf(pe)<0&&(we[pe]=Tn[pe]);if(Tn!=null&&hr)for(var pe of hr(Tn))Qn.indexOf(pe)<0&&Ui.call(Tn,pe)&&(we[pe]=Tn[pe]);return we};const{Countdown:ta}=Cr.default;var ea=Tn=>{var Qn=Tn,{onChange:we}=Qn,pe=Ss(Qn,["onChange"]);const[fe,Bn]=(0,vt.useState)(null);(0,vt.useEffect)(()=>{typeof fe=="number"&&fe>=0&&we(fe)},[fe]);const zn=Wn=>{const be=Math.floor(Wn/1e3);Bn(be)};return vt.createElement(ta,Wo(Rs({},pe),{onChange:zn}))}},58856:function(Ze,En,bt){"use strict";bt.d(En,{Z:function(){return oe}});var vt=bt(59301);function oe(ue,Be){const me=(0,vt.useRef)();(0,vt.useEffect)(()=>{me.current=ue}),(0,vt.useEffect)(()=>{function Ee(){me.current()}if(Be!==null){let qt=setInterval(Ee,Be);return()=>clearInterval(qt)}},[Be])}},57700:function(Ze,En,bt){"use strict";bt.r(En),bt.d(En,{default:function(){return Ph}});var vt=bt(59301),oe=bt(89070),ue=bt(78241),Be=bt(43418),me=bt(8591),Ee=bt(3113),qt=bt(38854),Ce=bt(6848),Se=bt(99313),ve=bt(71418),se=bt(24905),Ae=bt(1710),_e=bt(92832),Dt=bt(61398),et=bt(99064),nt=bt(12290),ct=bt(34604),lt=bt(23210),pt=bt(61186),yt=bt.n(pt),Lt=bt(3294),kt=bt(36708),Ht=bt(5871),Yt=Object.defineProperty,$t=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,Pe=(Le,ce,Qt)=>ce in Le?Yt(Le,ce,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Le[ce]=Qt,ae=(Le,ce)=>{for(var Qt in ce||(ce={}))ee.call(ce,Qt)&&Pe(Le,Qt,ce[Qt]);if($t)for(var Qt of $t(ce))te.call(ce,Qt)&&Pe(Le,Qt,ce[Qt]);return Le},We=(Le,ce,Qt)=>new Promise((ti,yi)=>{var Si=ei=>{try{Li(Qt.next(ei))}catch(Mn){yi(Mn)}},Oi=ei=>{try{Li(Qt.throw(ei))}catch(Mn){yi(Mn)}},Li=ei=>ei.done?ti(ei.value):Promise.resolve(ei.value).then(Si,Oi);Li((Qt=Qt.apply(Le,ce)).next())});const ye=({shixunHomeworks:Le,dispatch:ce})=>{const Qt=(0,oe.useParams)(),[ti,yi]=(0,vt.useState)(!0),[Si]=ue.default.useForm();return vt.createElement(vt.Fragment,null,vt.createElement(Be.default,{centered:!0,title:"\u8C03\u5206",open:Le.actionTabs.key==="\u8C03\u5206",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>We(void 0,null,function*(){yield Si.validateFields();const Oi=Si.getFieldsValue();(yield(0,et.ZP)(`/api/student_works/${Le.actionTabs.id}/adjust_score.json`,{method:"post",body:ae({},Oi)})).status===0&&(me.ZP.success("\u8BC4\u9605\u6210\u529F"),Si.resetFields(),ce({type:"shixunHomeworks/setActionTabs",payload:{}}),ce({type:"shixunHomeworks/getStudentWorkCommon",payload:ae({},Qt)}))}),onCancel:()=>{ce({type:"shixunHomeworks/setActionTabs",payload:{}})}},vt.createElement("p",{className:"tc"},"\u8BE5\u5B66\u751F\u7684\u6700\u7EC8\u6210\u7EE9\u5C06\u4E0D\u4F1A\u6309\u7167\u8BC4\u5206\u89C4\u5219\u8FDB\u884C\u8BA1\u7B97"),vt.createElement(ue.default,{form:Si,layout:"horizontal"},vt.createElement("div",{style:{display:"flex",alignItems:"baseline"}},vt.createElement(ue.default.Item,{label:"\u6210\u7EE9",name:"score",rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}]},vt.createElement(Ht.Z,{min:0,placeholder:"\u8BF7\u586B\u5199\u5206\u6570"})),vt.createElement("span",{className:"ml10"},"\u5206")),vt.createElement("div",null,vt.createElement(ue.default.Item,{name:"comment"},vt.createElement(_e.default.TextArea,{placeholder:"\u8BF7\u586B\u5199\u60A8\u5BF9\u4F5C\u54C1\u8C03\u5206\u7684\u539F\u56E0",rows:8}))))))};var Ne=(0,oe.connect)(({shixunHomeworks:Le})=>({shixunHomeworks:Le}))(ye),Ie={flex_box_center:"flex_box_center___tMwax",flex_space_between:"flex_space_between___8GJsg",flex_box_vertical_center:"flex_box_vertical_center___IFELt",flex_box_center_end:"flex_box_center_end___IrFRG",flex_box_column:"flex_box_column___s0LgG",TabsStyle:"TabsStyle___r0bwM",bg:"bg___sFhaA",title:"title___bk4oD",nextComment:"nextComment___NmNBo",modal:"modal___tWPO8",MdEditor:"MdEditor___AAxeb",ratewarp:"ratewarp___NGrsd",item:"item___Le8W0",total:"total___MNh4V",a1:"a1___g1iJT",a2:"a2___h8k2X",a3:"a3___yk1km",export_type_modal_title:"export_type_modal_title___nMqX0",export_type_modal:"export_type_modal___dbFVU",export_type_modal_con:"export_type_modal_con___ujWeL",type_item:"type_item___oF9R5",type_item_active:"type_item_active___dfBaM",export_type_modal_waring:"export_type_modal_waring___k8RaP",ReviewStyle:"ReviewStyle___o5d5N",left_content:"left_content___Tdt77",left_title:"left_title___V11QV",see_work:"see_work___HAfMs",left_list:"left_list___sXmxX",list_title:"list_title___NmWRs",list_box:"list_box___nK01J",list_item:"list_item___rrWl_",item_img:"item_img___yMYSc",item_content:"item_content___ZJr_4",item_name:"item_name___PkA99",item_code:"item_code___g13cU",item_states:"item_states___Rwb1r",center_top:"center_top___hgoJF",center_top_title:"center_top_title___rVfnl",center_top_content:"center_top_content___Wfmlt",right_content:"right_content___nMMjC",right_form:"right_form___ahOzz",work_score:"work_score___sJRnv",work_img:"work_img___p6zO4",work_button:"work_button___NDoqh",pingyue:"pingyue___PDoT9",pingyue_title:"pingyue_title___Wsqbg",pingyue_score:"pingyue_score___kvMiC",pingyue_teacher_title:"pingyue_teacher_title___lyJ0m",top_content:"top_content___mJifP",top_content_img:"top_content_img___vbTWm",item_tags:"item_tags___K9Qrr",daochu:"daochu___WdJvT",foldClose:"foldClose___DQSiP",foldOpen:"foldOpen___J18go",ScoreDetailsBase:"ScoreDetailsBase___UG7u2",lastAdd:"lastAdd___T9F0p",btnAdd:"btnAdd___GCat1",buttonStyle:"buttonStyle___jWXWa",hiddenBar:"hiddenBar___ZRZYH",apply:"apply___WQ6t7"},rn=bt(85149),Dn=bt(89392),vn=bt(57490),Vt=bt(59301),It=Object.defineProperty,ne=Object.defineProperties,De=Object.getOwnPropertyDescriptors,Qe=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,on=(Le,ce,Qt)=>ce in Le?It(Le,ce,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Le[ce]=Qt,Cn=(Le,ce)=>{for(var Qt in ce||(ce={}))le.call(ce,Qt)&&on(Le,Qt,ce[Qt]);if(Qe)for(var Qt of Qe(ce))Oe.call(ce,Qt)&&on(Le,Qt,ce[Qt]);return Le},ln=(Le,ce)=>ne(Le,De(ce)),xn=(Le,ce,Qt)=>new Promise((ti,yi)=>{var Si=ei=>{try{Li(Qt.next(ei))}catch(Mn){yi(Mn)}},Oi=ei=>{try{Li(Qt.throw(ei))}catch(Mn){yi(Mn)}},Li=ei=>ei.done?ti(ei.value):Promise.resolve(ei.value).then(Si,Oi);Li((Qt=Qt.apply(Le,ce)).next())});const re=({classroomList:Le,loading:ce,dispatch:Qt,studentWorkDetail:ti})=>{const yi=(0,oe.useParams)(),[Si]=ue.default.useForm(),Oi=()=>xn(void 0,null,function*(){var Li;yield Si.validateFields();const ei=Cn({},Si.getFieldValue()),{selectArrs:Mn}=Le.actionTabs;ei.attachment_ids=(Li=ei.attachment_ids)==null?void 0:Li.map(er=>er.response.id),(yield(0,kt.mz)(ln(Cn({},ei),{homeworkId:Mn.work_id}))).status===0&&(Si.resetFields(),Qt({type:"shixunHomeworks/getStudentWorkSupplyDetail",payload:Cn({},Le.actionTabs.params)}),Qt({type:"classroomList/setActionTabs",payload:{}}))});return Vt.createElement(Be.default,{centered:!0,title:"\u8865\u4EA4\u9644\u4EF6",open:Le.actionTabs.key==="\u8865\u4EA4\u9644\u4EF6",bodyStyle:{minHeight:200},onOk:()=>xn(void 0,null,function*(){if(ti!=null&&ti.can_submit){if(!(ti!=null&&ti.submit_size)){me.ZP.warning("\u60A8\u7684\u4F5C\u54C1\u63D0\u4EA4\u673A\u4F1A\u5DF2\u7528\u5B8C\u3002\u5982\u9700\u7EE7\u7EED\u4FEE\u6539\uFF0C\u8BF7\u8054\u7CFB\u6307\u5BFC\u8001\u5E08\u6216\u5E73\u53F0\u8FD0\u8425\u3002");return}Be.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,width:472,content:Vt.createElement(Vt.Fragment,null,"\u4F60\u8FD8\u6709 ",Vt.createElement("span",{className:"ml5 mr5",style:{color:"#DF711C"}},ti==null?void 0:ti.submit_size)," \u6B21\u63D0\u4EA4\u673A\u4F1A\u3002\u786E\u8BA4\u63D0\u4EA4\u540E\uFF0C\u4E0A\u4E00\u6B21\u7684\u63D0\u4EA4\u8BB0\u5F55\u4F1A\u88AB\u8986\u76D6\u3002\u8BF7\u6CE8\u610F\uFF0C\u5230\u8FBE\u89C4\u5B9A\u7684\u63D0\u4EA4\u6B21\u6570\u540E\u5C06\u4E0D\u53EF\u518D\u6B21\u63D0\u4EA4\uFF0C\u786E\u5B9A\u662F\u5426\u63D0\u4EA4\uFF1F"),onOk:()=>{Oi()}});return}Oi()}),onCancel:()=>{Si.resetFields(),Qt({type:"classroomList/setActionTabs",payload:{}})}},Vt.createElement(ue.default,{form:Si,initialValues:{}},Vt.createElement(ue.default.Item,{name:"attachment_ids",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u9644\u4EF6"}]},Vt.createElement(vn.Z,null)),Vt.createElement(ue.default.Item,{name:"description"},Vt.createElement(_e.default.TextArea,{placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u8865\u4EA4\u9644\u4EF6\u7684\u539F\u56E0\uFF0C\u6700\u5927\u9650\u5236100\u4E2A\u5B57\u7B26",rows:7}))))};var kn=(0,oe.connect)(({classroomList:Le,loading:ce})=>({classroomList:Le,loading:ce}))(re),Zn=bt(955),On=bt(24065),Un=bt(39020),hi=bt(96460),Ri=bt(83312),nn=bt(8797),un=bt(23765),wn=bt(95237),ze=bt(43604),fn=bt(37906),sn={pinfen:"pinfen____hgN7",left:"left___ZyTXs",right:"right___OSPEM",tagStyleSzz:"tagStyleSzz___fzxbk",headpic:"headpic___d7fnl",new_style_box:"new_style_box___XOWhi",box_child:"box_child___uYxgt",box_item_top:"box_item_top___MohWv",yichang:"yichang___ppIPI",text_style:"text_style___V3FT_",text_style_red:"text_style_red___reUfY",btnWarp:"btnWarp___n5eYa",active:"active___JVU0m",feedbackSty:"feedbackSty___CeTDz"},Bt=bt(41984),Mt=bt(30917),xt=bt(19909),Ft=Object.defineProperty,Ut=Object.getOwnPropertySymbols,At=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,dn=(Le,ce,Qt)=>ce in Le?Ft(Le,ce,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Le[ce]=Qt,gn=(Le,ce)=>{for(var Qt in ce||(ce={}))At.call(ce,Qt)&&dn(Le,Qt,ce[Qt]);if(Ut)for(var Qt of Ut(ce))ge.call(ce,Qt)&&dn(Le,Qt,ce[Qt]);return Le};const pn=Le=>React.createElement("svg",gn({width:14,height:13,xmlns:"http://www.w3.org/2000/svg"},Le),React.createElement("title",null,"\u661F\u5F62"),React.createElement("path",{d:"m7 10.5-4.114 2.163.785-4.581L.343 4.837l4.6-.669L7 0l2.057 4.168 4.6.669-3.328 3.245.785 4.581z",fill:"#FA6400",fillRule:"evenodd"}));var Rn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTcgMTAuNS00LjExNCAyLjE2My43ODUtNC41ODFMLjM0MyA0LjgzN2w0LjYtLjY2OUw3IDBsMi4wNTcgNC4xNjggNC42LjY2OS0zLjMyOCAzLjI0NS43ODUgNC41ODF6IiBmaWxsPSIjRkE2NDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=",Mi=Object.defineProperty,ji=Object.getOwnPropertySymbols,wi=Object.prototype.hasOwnProperty,Ji=Object.prototype.propertyIsEnumerable,wo=(Le,ce,Qt)=>ce in Le?Mi(Le,ce,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Le[ce]=Qt,Io=(Le,ce)=>{for(var Qt in ce||(ce={}))wi.call(ce,Qt)&&wo(Le,Qt,ce[Qt]);if(ji)for(var Qt of ji(ce))Ji.call(ce,Qt)&&wo(Le,Qt,ce[Qt]);return Le};const Wr=Le=>React.createElement("svg",Io({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},Le),React.createElement("title",null,"\u62A5\u544A"),React.createElement("path",{d:"M3.629 14a2.38 2.38 0 0 1-2.373-2.373V4.311a.057.057 0 0 0-.06-.06H.564A.542.542 0 0 1 0 3.737V1.691C0 .76.81 0 1.81 0h8.868c.999 0 1.809.81 1.81 1.81v7.563a.057.057 0 0 0 .059.06h1.997a.557.557 0 0 1 .563.563v2.185a1.81 1.81 0 0 1-1.809 1.81L3.628 14Zm8.927-3.56a.057.057 0 0 0-.059.06v1.69a.81.81 0 0 0 1.622 0V10.5a.057.057 0 0 0-.06-.06h-1.503ZM2.314 4.252a.057.057 0 0 0-.06.06v7.306a1.377 1.377 0 0 0 1.375 1.375h7.959c.02 0 .04-.012.049-.03a.063.063 0 0 0 0-.06 1.814 1.814 0 0 1-.148-.721V1.819a.81.81 0 0 0-1.622 0v1.918a.536.536 0 0 1-.563.514h-6.99Zm-.505-3.243c-.445 0-.81.307-.81.683v1.502a.058.058 0 0 0 .059.06h7.741a.057.057 0 0 0 .06-.06V1.82c0-.248.05-.494.148-.722.01-.02 0-.04 0-.059a.054.054 0 0 0-.05-.03H1.81Zm2.314 9.462a.504.504 0 1 1 0-1.008H9.62a.504.504 0 1 1 0 1.008H4.123Zm0-2.689a.504.504 0 0 1 0-1.008H9.62a.504.504 0 1 1 0 1.008H4.123Z",fill:"#3061D0",fillRule:"nonzero"}));var nr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTMuNjI5IDE0YTIuMzggMi4zOCAwIDAgMS0yLjM3My0yLjM3M1Y0LjMxMWEuMDU3LjA1NyAwIDAgMC0uMDYtLjA2SC41NjRBLjU0Mi41NDIgMCAwIDEgMCAzLjczN1YxLjY5MUMwIC43Ni44MSAwIDEuODEgMGg4Ljg2OGMuOTk5IDAgMS44MDkuODEgMS44MSAxLjgxdjcuNTYzYS4wNTcuMDU3IDAgMCAwIC4wNTkuMDZoMS45OTdhLjU1Ny41NTcgMCAwIDEgLjU2My41NjN2Mi4xODVhMS44MSAxLjgxIDAgMCAxLTEuODA5IDEuODFMMy42MjggMTRabTguOTI3LTMuNTZhLjA1Ny4wNTcgMCAwIDAtLjA1OS4wNnYxLjY5YS44MS44MSAwIDAgMCAxLjYyMiAwVjEwLjVhLjA1Ny4wNTcgMCAwIDAtLjA2LS4wNmgtMS41MDNaTTIuMzE0IDQuMjUyYS4wNTcuMDU3IDAgMCAwLS4wNi4wNnY3LjMwNmExLjM3NyAxLjM3NyAwIDAgMCAxLjM3NSAxLjM3NWg3Ljk1OWMuMDIgMCAuMDQtLjAxMi4wNDktLjAzYS4wNjMuMDYzIDAgMCAwIDAtLjA2IDEuODE0IDEuODE0IDAgMCAxLS4xNDgtLjcyMVYxLjgxOWEuODEuODEgMCAwIDAtMS42MjIgMHYxLjkxOGEuNTM2LjUzNiAwIDAgMS0uNTYzLjUxNGgtNi45OVptLS41MDUtMy4yNDNjLS40NDUgMC0uODEuMzA3LS44MS42ODN2MS41MDJhLjA1OC4wNTggMCAwIDAgLjA1OS4wNmg3Ljc0MWEuMDU3LjA1NyAwIDAgMCAuMDYtLjA2VjEuODJjMC0uMjQ4LjA1LS40OTQuMTQ4LS43MjIuMDEtLjAyIDAtLjA0IDAtLjA1OWEuMDU0LjA1NCAwIDAgMC0uMDUtLjAzSDEuODFabTIuMzE0IDkuNDYyYS41MDQuNTA0IDAgMSAxIDAtMS4wMDhIOS42MmEuNTA0LjUwNCAwIDEgMSAwIDEuMDA4SDQuMTIzWm0wLTIuNjg5YS41MDQuNTA0IDAgMCAxIDAtMS4wMDhIOS42MmEuNTA0LjUwNCAwIDEgMSAwIDEuMDA4SDQuMTIzWiIgZmlsbD0iIzMwNjFEMCIgZmlsbC1ydWxlPSJub256ZXJvIi8+PC9zdmc+";const Cr=({handleCloseOrOpenModal:Le,dataInfo:ce,isShowButton:Qt=!0,className:ti=""})=>{const yi=()=>{if(ce!=null&&ce.teacher_score&&(ce==null?void 0:ce.teacher_score)>=0)return vt.createElement(vt.Fragment,null,"\u6559\u5E08\u8BC4\u5206",vt.createElement("span",{style:{color:"#CA7720"}},ce==null?void 0:ce.teacher_score));if(ce!=null&&ce.teaching_asistant_score&&(ce==null?void 0:ce.teaching_asistant_score)>=0)return vt.createElement(vt.Fragment,null,"\u52A9\u6559\u8BC4\u5206",vt.createElement("span",{style:{color:"#CA7720"}},ce==null?void 0:ce.teaching_asistant_score));if(ce!=null&&ce.student_score&&(ce==null?void 0:ce.student_score)>=0)return vt.createElement(vt.Fragment,null,"\u533F\u8BC4\u8BC4\u5206",vt.createElement("span",{style:{color:"#CA7720"}},ce==null?void 0:ce.student_score))};return vt.createElement(vt.Fragment,null,vt.createElement("div",{className:`${Ie.work_score} ${ti}`},vt.createElement("div",{style:{color:"#191919",fontWeight:600}},"\u4F5C\u4E1A\u5F97\u5206"),vt.createElement("div",{className:Ie.work_img},vt.createElement("div",{style:{height:"40px",lineHeight:"50px",fontSize:"24px",color:"#009C0F",fontWeight:600}},(ce==null?void 0:ce.work_score)||"--",vt.createElement("span",{style:{fontSize:"14px"}},"\u5206")),vt.createElement("div",{style:{fontSize:"12px",color:"#666666"}},"\u6700\u7EC8\u6210\u7EE9")),vt.createElement("img",{src:Rn}),vt.createElement("div",{style:{marginLeft:"10px",flex:1,marginRight:"10px",fontSize:"12px"}},"\u8BA1\u7B97\u89C4\u5219",vt.createElement(Ce.Z,{title:vt.createElement("span",{className:"font12"},"\u5728\u591A\u9879\u8BC4\u5206\u5360\u6BD4\u8BBE\u7F6E\u4E2D\uFF0C\u82E5\u67D0\u9879\u8BC4\u5206\u7F3A\u5931\uFF0C\u5176\u5360\u6BD4\u5C06\u7531\u5176\u4ED6\u5DF2\u8BC4\u5206\u9879\u5E73\u5206\uFF1B\u82E5\u4E24\u9879\u8BC4\u5206\u7F3A\u5931\uFF0C\u5219\u552F\u4E00\u5DF2\u8BC4\u5206\u9879\u5C06\u5360100%\u7684\u6BD4\u91CD\u3002")},vt.createElement("i",{className:"iconfont icon-tishixiaowenhao ml5 mr5 font12 c-grey-999 current",style:{lineHeight:"18px"}})),"=",ce!=null&&ce.final_mode?yi():vt.createElement(vt.Fragment,null,"\u6559\u5E08\u8BC4\u5206",vt.createElement("span",{style:{color:"#CA7720"}},(ce==null?void 0:ce.teacher_score)||"--","*",ce==null?void 0:ce.te_proportion),"+\u52A9\u6559\u8BC4\u5206",vt.createElement("span",{style:{color:"#CA7720"}},(ce==null?void 0:ce.teaching_asistant_score)||"--","*",ce==null?void 0:ce.ta_proportion),"+\u533F\u8BC4\u8BC4\u5206",vt.createElement("span",{style:{color:"#CA7720"}},(ce==null?void 0:ce.student_score)||"--","*",ce==null?void 0:ce.st_proportion)),"-\u6263\u5206\u9879 (\u8865\u4EA4\u6263\u5206",vt.createElement("span",{style:{color:"#CA7720"}},ce==null?void 0:ce.late_penalty),"+\u67E5\u91CD\u6263\u5206",vt.createElement("span",{style:{color:"#CA7720"}},ce==null?void 0:ce.repeat_minus_score),"+\u7F3A\u8BC4\u6263\u5206",vt.createElement("span",{style:{color:"#CA7720"}},ce==null?void 0:ce.absence_penalty),")"),Qt&&vt.createElement("div",{className:Ie.work_button,onClick:()=>{Le({key:"\u5F97\u5206\u8BE6\u60C5"})}},vt.createElement("img",{src:nr,style:{marginRight:"5px"}}),"\u67E5\u770B\u5F97\u5206\u8BE6\u60C5")))};var bo=(0,oe.connect)(({shixunHomeworks:Le})=>({shixunHomeworks:Le}))(Cr),Fo={form_item_warp:"form_item_warp___jRcx8",lable_name1:"lable_name1___NOUD6",h_lh_40:"h_lh_40___murfL",config_title:"config_title___Pz2EP"},fo=bt(59301),hr=(Le,ce,Qt)=>new Promise((ti,yi)=>{var Si=ei=>{try{Li(Qt.next(ei))}catch(Mn){yi(Mn)}},Oi=ei=>{try{Li(Qt.throw(ei))}catch(Mn){yi(Mn)}},Li=ei=>ei.done?ti(ei.value):Promise.resolve(ei.value).then(Si,Oi);Li((Qt=Qt.apply(Le,ce)).next())});const dr=({shixunHomeworks:Le,loading:ce,dispatch:Qt,getData:ti})=>{var yi,Si;const{ai_review_settings:Oi}=Le==null?void 0:Le.studentWorkDetail,[Li]=ue.default.useForm(),ei=[{name:"\u683C\u5F0F\u89C4\u8303",content:"\u4F5C\u4E1A\u7B26\u5408\u63D0\u4EA4\u8981\u6C42\uFF08\u547D\u540D\u3001\u683C\u5F0F\u3001\u9644\u4EF6\u5B8C\u6574\uFF09\uFF0C\u6587\u6863\u7ED3\u6784\u6E05\u6670\uFF0C\u8BED\u8A00\u8868\u8FBE\u51C6\u786E",weight:10},{name:"\u903B\u8F91\u4E25\u8C28",content:"\u8BBA\u8FF0\u6E05\u6670\uFF0C\u5185\u5BB9\u8FDE\u8D2F\uFF0C\u8BBA\u8BC1\u5408\u7406\uFF0C\u6709\u5145\u5206\u7684\u6570\u636E\u6216\u7406\u8BBA\u652F\u6491",weight:20},{name:"\u5185\u5BB9\u5B8C\u6574",content:"\u8986\u76D6\u6240\u6709\u8981\u6C42\u7684\u5185\u5BB9\uFF0C\u5206\u6790\u6DF1\u5165\uFF0C\u5305\u542B\u5B9E\u9A8C\u73B0\u8C61\u3001\u6570\u636E\u548C\u7ED3\u8BBA",weight:60},{name:"\u521B\u65B0\u4E0E\u601D\u8003",content:"\u63D0\u51FA\u4E2A\u4EBA\u89C1\u89E3\u6216\u6539\u8FDB\u5EFA\u8BAE\uFF0C\u5BF9\u5B9E\u9A8C\u7ED3\u679C\u6216\u95EE\u9898\u6709\u53CD\u601D\u4E0E\u603B\u7ED3",weight:10}];(0,vt.useEffect)(()=>{var er;((er=Le.actionTabs)==null?void 0:er.key)==="\u667A\u80FD\u8BC4\u9605\u914D\u7F6E"&&Li.setFieldsValue({ai_review_settings:(Oi==null?void 0:Oi.length)>0?Oi:ei,update_ai_review_settings:!1})},[(yi=Le.actionTabs)==null?void 0:yi.key]);const Mn=()=>{Qt({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},Di=()=>hr(void 0,null,function*(){var er;const Ps=Li.getFieldValue("ai_review_settings");if(!(0,Zn.BR)(Ps))return;const ro=Li.getFieldsValue();(er=Le.actionTabs)==null||er.onOk(ro),Mn()});return fo.createElement(Be.default,{width:1150,centered:!0,title:"\u667A\u80FD\u8BC4\u9605",open:((Si=Le.actionTabs)==null?void 0:Si.key)==="\u667A\u80FD\u8BC4\u9605\u914D\u7F6E",destroyOnClose:!0,onCancel:()=>Mn(),okText:"\u5F00\u59CB\u8BC4\u9605",onOk:()=>Di(),bodyStyle:{maxHeight:"calc(100vh - 200px)",overflowY:"auto"}},fo.createElement("div",{className:`${Fo.config_title}`},"\u8BC4\u5206\u6807\u51C6"),fo.createElement(ue.default,{form:Li,colon:!1},fo.createElement("div",{className:Fo.form_item_warp},fo.createElement(ue.default.List,{name:"ai_review_settings"},(er,{add:Ps,remove:In})=>er.map((ro,Jt)=>{var He;return fo.createElement(wn.Z,{key:ro.key,style:{padding:"5px 14px 5px 30px"}},fo.createElement(ze.Z,{className:Fo.lable_name1},"\u8BC4\u5206\u9879\u76EE"),fo.createElement(ze.Z,null,fo.createElement(ue.default.Item,{className:"ml10",name:[ro.name,"name"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC4\u5206\u9879\u76EE"}]},fo.createElement(_e.default,{onChange:ls=>{Li.setFieldValue([ro.name,"content"],ls.target.value)},placeholder:"\u8BF7\u8F93\u5165\u6700\u591A10\u5B57\u7B26",size:"large",style:{width:164},maxLength:10,className:"mr20"}))),fo.createElement(ze.Z,{className:Fo.lable_name1},"\u8BC4\u5206\u6807\u51C6"),fo.createElement(ze.Z,null,fo.createElement(ue.default.Item,{className:"ml10",name:[ro.name,"content"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC4\u5206\u6807\u51C6"}]},fo.createElement(_e.default,{onChange:ls=>{Li.setFieldValue([ro.name,"content"],ls.target.value)},placeholder:"\u8BF7\u8F93\u5165\u8BC4\u5206\u6807\u51C6",size:"large",style:{width:467},className:"mr20",maxLength:500}))),fo.createElement(ze.Z,{className:Fo.lable_name1},"\u6743\u91CD"),fo.createElement(ze.Z,null,fo.createElement(ue.default.Item,{className:"ml10",name:[ro.name,"weight"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6743\u91CD"}]},fo.createElement(Ht.Z,{onChange:ls=>{Number.isInteger(ls)||Li.setFieldValue([ro.name,"weight"],parseFloat(ls).toFixed(2))},size:"large",addonAfter:"%",placeholder:"\u8BF7\u8F93\u5165\u6743\u91CD",min:.01,step:1,max:100,style:{width:"134px"}}))),fo.createElement(wn.Z,{className:(He=Fo)==null?void 0:He.h_lh_40},fo.createElement(ze.Z,null,fo.createElement("i",{className:"iconfont icon-tianjiatimu ml20 current",style:{color:"#00B187"},onClick:()=>{if(er.length>=10)return me.ZP.info("\u6700\u591A\u53EA\u80FD\u6DFB\u52A010\u4E2A\u8BC4\u5206\u9879\u76EE");Ps()}})),Jt>0&&fo.createElement(ze.Z,null,fo.createElement("i",{className:"iconfont icon-shanjian1 ml10 current",style:{color:"#E30000"},onClick:()=>{In(ro.name)}}))))}))),fo.createElement(ue.default.Item,{name:"update_ai_review_settings",valuePropName:"checked"},fo.createElement(se.default,{style:{color:"#000"}},"\u5C06\u5F53\u524D\u8BC4\u5206\u6807\u51C6\u5E94\u7528\u4E8E\u6574\u4EFD\u4F5C\u4E1A",fo.createElement("span",{style:{color:"#666"}},"\uFF08\u9009\u4E2D\u540E\uFF0C\u5C06\u66FF\u6362\u667A\u80FD\u8BC4\u9605\u7684\u8BC4\u5206\u6807\u51C6\uFF1B\u672A\u9009\u4E2D\uFF0C\u4EC5\u5BF9\u672C\u6B21\u667A\u80FD\u8BC4\u9605\u751F\u6548\uFF09")))))};var Ui=(0,oe.connect)(({shixunHomeworks:Le,loading:ce,user:Qt})=>({shixunHomeworks:Le,loading:ce.effects,user:Qt}))(dr),Ct=Object.defineProperty,Rs=Object.defineProperties,Wo=Object.getOwnPropertyDescriptors,Ss=Object.getOwnPropertySymbols,ta=Object.prototype.hasOwnProperty,ss=Object.prototype.propertyIsEnumerable,ea=(Le,ce,Qt)=>ce in Le?Ct(Le,ce,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Le[ce]=Qt,Tn=(Le,ce)=>{for(var Qt in ce||(ce={}))ta.call(ce,Qt)&&ea(Le,Qt,ce[Qt]);if(Ss)for(var Qt of Ss(ce))ss.call(ce,Qt)&&ea(Le,Qt,ce[Qt]);return Le},Qn=(Le,ce)=>Rs(Le,Wo(ce)),we=(Le,ce)=>{var Qt={};for(var ti in Le)ta.call(Le,ti)&&ce.indexOf(ti)<0&&(Qt[ti]=Le[ti]);if(Le!=null&&Ss)for(var ti of Ss(Le))ce.indexOf(ti)<0&&ss.call(Le,ti)&&(Qt[ti]=Le[ti]);return Qt},pe=(Le,ce,Qt)=>new Promise((ti,yi)=>{var Si=ei=>{try{Li(Qt.next(ei))}catch(Mn){yi(Mn)}},Oi=ei=>{try{Li(Qt.throw(ei))}catch(Mn){yi(Mn)}},Li=ei=>ei.done?ti(ei.value):Promise.resolve(ei.value).then(Si,Oi);Li((Qt=Qt.apply(Le,ce)).next())});const fe=({shixunHomeworks:Le,loading:ce,user:Qt,globalSetting:ti})=>({shixunHomeworks:Le,loading:ce.effects,user:Qt,globalSetting:ti}),Bn=Le=>{var ce=Le,{ModalProps:Qt={},shixunHomeworks:ti,user:yi}=ce,Si=we(ce,["ModalProps","shixunHomeworks","user"]),Oi,Li;const[ei]=ue.default.useForm(),Mn=(0,oe.useParams)(),{userInfo:Di={}}=yi,[,er,Ps,In]=(0,Ri.U)(kt.Yn,{homeworkId:Mn==null?void 0:Mn.userId}),[,ro,Jt,He]=(0,Ri.U)(kt.Am,{homeworkId:Mn==null?void 0:Mn.userId}),[,ls,Na]=(0,Ri.U)(kt.QC,{userId:Mn==null?void 0:Mn.userId}),[Jo,Gr]=(0,vt.useState)({page:1,limit:10}),[Zr,Ho]=(0,vt.useState)(!1),Qr=[{title:"\u8BC4\u9605\u4EBA\u59D3\u540D",dataIndex:"user_name",ellipsis:!0,width:100,render:Yn=>vt.createElement(Ce.Z,{title:Yn},vt.createElement("span",null,Yn))},{title:"\u8BC4\u5206",dataIndex:"score",width:80},{title:"\u8BC4\u8BED",dataIndex:"content",ellipsis:!0,render:Yn=>vt.createElement(Ce.Z,{title:Yn},vt.createElement("span",null,Yn))},{title:"\u63D0\u4EA4\u4F5C\u4E1A\u7248\u672C",dataIndex:"student_work_num",width:110,render:(Yn,_i)=>{var zo;return vt.createElement("a",{style:{color:Yn===((zo=In==null?void 0:In.data)==null?void 0:zo.max_student_work_num)?"#1B8565":"#FA6400"},target:"_blank",href:`/classrooms/${Mn==null?void 0:Mn.coursesId}/common_homework/${Mn==null?void 0:Mn.categoryId}/review/${_i==null?void 0:_i.student_work_id}?history_id=${_i==null?void 0:_i.history_id}`},"\u7B2C ",Yn," \u6B21")}},{title:"\u64CD\u4F5C",dataIndex:"comment_id",width:150,render:(Yn,_i)=>vt.createElement("div",{className:"flex item-center gap-20px"},(_i==null?void 0:_i.user_login)===(Di==null?void 0:Di.login)&&vt.createElement("a",{onClick:()=>{var zo;ei.setFieldsValue(Qn(Tn({},_i),{comment:_i==null?void 0:_i.content,score_details:((zo=_i==null?void 0:_i.score_details)==null?void 0:zo.map(Hi=>Tn({},Hi)))||[]})),Ho(!0)}},"\u7F16\u8F91"),vt.createElement("a",{target:"_blank",href:`/classrooms/${Mn==null?void 0:Mn.coursesId}/common_homework/${Mn==null?void 0:Mn.categoryId}/review/${_i==null?void 0:_i.student_work_id}?history_id=${_i==null?void 0:_i.history_id}`},"\u67E5\u770B"),(_i==null?void 0:_i.user_login)===(Di==null?void 0:Di.login)&&vt.createElement("a",{className:"current-delete-hover",onClick:()=>{Zo(_i)}},"\u5220\u9664"))}],Zo=(Yn={})=>{Be.default.confirm({title:"\u662F\u5426\u786E\u8BA4\u5220\u9664?",centered:!0,onOk:()=>pe(void 0,null,function*(){(yield Na({score_id:Yn==null?void 0:Yn.comment_id})).status===0&&(me.ZP.success("\u5220\u9664\u6210\u529F"),Gr({page:1,limit:10}),Ho(!1))})})};return(0,vt.useEffect)(()=>{Qt!=null&&Qt.open&&Ps(Tn({homeworkId:Mn==null?void 0:Mn.userId},Jo))},[Jo,Qt==null?void 0:Qt.open]),vt.createElement(vt.Fragment,null,vt.createElement(Be.default,Tn({},Tn({title:"\u5386\u53F2\u8BC4\u9605\u8BB0\u5F55",centered:!0,width:800},Qt)),vt.createElement(Ae.default,{className:"mt10",loading:er,columns:Qr,locale:{emptyText:vt.createElement(nn.Z,null)},dataSource:((Oi=In==null?void 0:In.data)==null?void 0:Oi.list)||[],pagination:{hideOnSinglePage:!0,total:((Li=In==null?void 0:In.data)==null?void 0:Li.size)||0,onChange:(Yn,_i)=>{Gr(Qn(Tn({},Jo),{page:Yn,limit:_i}))},current:Jo==null?void 0:Jo.page,pageSize:Jo==null?void 0:Jo.limit,showTotal:Yn=>vt.createElement(vt.Fragment,null,"\u5171",vt.createElement("span",{className:"ml5 mr5 c-blue"},Yn),"\u6761\u6570\u636E")}})),vt.createElement(li,{FormProps:{form:ei,onFinish:(...Yn)=>pe(void 0,[...Yn],function*(_i={}){const zo=yield Jt(Qn(Tn({},_i),{homeworkId:Mn==null?void 0:Mn.userId}));(zo==null?void 0:zo.status)===0&&(me.ZP.success("\u4FEE\u6539\u6210\u529F"),Gr({page:1,limit:10}),Ho(!1))})},ModalProps:{open:Zr,onCancel:()=>{Ho(!1)},onOk:()=>{ei.submit()},confirmLoading:ro}}))},zn=(0,oe.connect)(fe)(Bn),Wn=Le=>{var ce=Le,{FormProps:Qt,DataProps:ti={},isShowStyles:yi=!0,shixunHomeworks:Si,dispatch:Oi}=ce,Li=we(ce,["FormProps","DataProps","isShowStyles","shixunHomeworks","dispatch"]);const[ei]=ue.default.useForm(),{form:Mn=ei}=Qt,{studentWorkDetail:Di,workDetail:er}=Si,Ps=(0,oe.useParams)(),In=ue.default.useWatch("comment",Mn),ro=ue.default.useWatch("score",Mn),Jt=ue.default.useWatch("score_details",Mn),[He,ls]=Be.default.useModal(),[Na,Jo]=(0,vt.useState)(!1),[Gr,Zr]=(0,vt.useState)(!1),Ho=(0,vt.useRef)({});(0,vt.useEffect)(()=>{var Yn;!(Di!=null&&Di.single_score)&&(Jt==null?void 0:Jt.length)>0&&Mn.setFieldsValue({score:(Yn=Jt||[])==null?void 0:Yn.reduce((_i,zo)=>(0,Zn.EN)(_i,zo.score||0,"+"),0)})},[Jt]);const Qr=Yn=>pe(void 0,null,function*(){const{mes:_i,setChatData:zo,setTyping:Hi}=Yn,Ei=yield(0,et.ZP)("/api/intelligent_reviews/large_model_intelligent_qa.json",{method:"post",body:Tn({query:_i,student_work_id:Ps.userId},Ho.current)});Ei.answer=(Ei==null?void 0:Ei.status)==-3?Ei.message:Ei==null?void 0:Ei.answer,Ei!=null&&Ei.answer&&zo(Uo=>[...Uo].map((Fr,Bo)=>Bo===Uo.length-1?Qn(Tn({},Fr),{text:Ei==null?void 0:Ei.answer,loading:!1,response:Ei}):Fr))}),Zo=({chatData:Yn,setChatData:_i,setLoading:zo,getData:Hi,renderChatItems:Ei})=>{Oi({type:"shixunHomeworks/setActionTabs",payload:{key:"\u667A\u80FD\u8BC4\u9605\u914D\u7F6E",onOk:Uo=>{Ho.current=Uo,Zr(!0),zo(!0);const Fr=Ei();Fr[0].show=!1,_i(Fr),Hi()}}})};return vt.createElement(vt.Fragment,null,ls,vt.createElement(ue.default.Item,{hidden:!0,name:"score_id",label:"\u8FD9\u4E2A\u662F\u7528\u6765\u6536\u96C6score_id\u7684"}),!(ti!=null&&ti.disabledScore)&&vt.createElement(vt.Fragment,null,Di!=null&&Di.single_score?vt.createElement(ue.default.Item,{className:Ie.ReviewStyle,name:"score",rules:[{required:!(0,On.GJ)(),message:"\u8BF7\u586B\u5199\u5206\u6570"}],label:vt.createElement("div",{className:"w-full flex justify-between item-center"},vt.createElement("span",null,"\u8BC4\u5206"),(er==null?void 0:er.is_open_ai_review)&&vt.createElement(xt.Z,{title:"\u667A\u80FD\u8BC4\u9605",visible:Gr,onOpen:Zo,onClose:()=>{Zr(!1)},loadingOption:{text:"AI\u8BC4\u9605\u4E2D..."},hideUpload:!0,showDefaultTips:!1,hideInputBox:!0,customRequest:Qr,extraAnswerAction:Yn=>{var _i;return!Yn.loading&&![-1,-3].includes((_i=Yn==null?void 0:Yn.response)==null?void 0:_i.status)&&vt.createElement("div",{className:Ie.apply,onClick:()=>{const zo=()=>{var Hi,Ei;Mn.setFieldsValue({score:(Hi=Yn==null?void 0:Yn.response)==null?void 0:Hi.score,comment:(Ei=Yn==null?void 0:Yn.response)==null?void 0:Ei.remarks}),Zr(!1)};if(ro||In){He.confirm({icon:null,title:"\u63D0\u793A",centered:!0,content:"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8BC4\u5206\u6216\u8BC4\u8BED\u8F93\u5165\u6846\u4E2D\u5DF2\u6709\u5185\u5BB9\uFF0C\u4E00\u952E\u5E94\u7528\u5C06\u4F1A\u8986\u76D6\u539F\u6709\u5185\u5BB9\u3002\u662F\u5426\u5E94\u7528\uFF1F",okText:"\u5E94\u7528",onOk:zo});return}zo()}},vt.createElement("i",{style:{color:"#3061D0"},className:"iconfont icon-yijianyingyong1 font12 mr5"}),"\u4E00\u952E\u5E94\u7528")}},vt.createElement(Ee.ZP,{icon:vt.createElement("img",{src:bt(11689)}),type:"link"},"\u667A\u80FD\u8BC4\u9605")))},vt.createElement(Ht.Z,{className:"w-full",step:.1,min:0,placeholder:"\u8BF7\u586B\u5199\u5206\u6570",addonAfter:"\u5206"})):vt.createElement("div",{className:yi?"gap-10px":"gap-20px mb20",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(200px, 1fr))"}},vt.createElement(ue.default.List,{name:"score_details"},(Yn,{add:_i,remove:zo})=>vt.createElement(vt.Fragment,null,Yn.map(Hi=>vt.createElement("div",{key:Hi.key,className:yi?"pt10 pb10 p20":"",style:{background:yi&&"#F6F7F9"}},vt.createElement("div",{className:"flex justify-between mb10"},vt.createElement("div",{className:"multi_ellipsis1"},Mn.getFieldValue(["score_details",Hi.name,"name"])),vt.createElement("div",{className:"c-grey-666"},"\uFF08\u6EE1\u5206",Mn.getFieldValue(["score_details",Hi.name,"full_score"]),"\u5206\uFF09")),vt.createElement(ue.default.Item,{className:"mb0",name:[Hi.name,"score"],rules:Mn.getFieldValue(["score_details",Hi.name,"isAllScore"])?null:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u6570"}]},vt.createElement(Ht.Z,{className:"w-full",stringMode:!0,min:0,max:Mn.getFieldValue(["score_details",Hi.name,"full_score"]),placeholder:"\u8BF7\u8F93\u5165\u5206\u6570",controls:!1,addonAfter:"\u5206"})))))),vt.createElement("div",{key:"allScore",className:yi?"pt10 pb10 p20":"",style:{background:yi&&"#F6F7F9"}},vt.createElement("div",{className:"flex justify-between mb10"},vt.createElement("div",{className:"multi_ellipsis1 c-blue"},"\u7EFC\u5408\u5F97\u5206"),vt.createElement("div",{className:"c-grey-666"},"\uFF08\u6EE1\u5206100\u5206\uFF09")),vt.createElement(ue.default.Item,{className:"mb0",name:"score"},vt.createElement(Ht.Z,{className:"w-full",stringMode:!0,disabled:!0,placeholder:"\u8BF7\u8F93\u5165\u5206\u6570",controls:!1,addonAfter:"\u5206"}))))),vt.createElement(ue.default.Item,{name:"comment",className:Ie.ReviewStyle,label:vt.createElement("div",{className:"w-full flex justify-between item-center"},vt.createElement("span",null,"\u8BC4\u8BED"),vt.createElement(Mt.Z,{isShowComponent:(0,On.G5)(),ModalProps:{open:Na,onCancel:()=>{Jo(!1)}},onDataSelect:(Yn,{node:_i})=>{const zo=()=>{Mn.setFieldsValue({comment:_i==null?void 0:_i.value}),Jo(!1)};if(In){He.confirm({icon:null,title:"\u63D0\u793A",centered:!0,content:"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8BC4\u8BED\u8F93\u5165\u6846\u4E2D\u5DF2\u6709\u5185\u5BB9\uFF0C\u4F7F\u7528\u5E38\u7528\u8BC4\u8BED\u5C06\u4F1A\u8986\u76D6\u539F\u6709\u5185\u5BB9\u3002\u662F\u5426\u4F7F\u7528\uFF1F",okText:"\u4F7F\u7528",onOk:zo});return}zo()}},vt.createElement(Ee.ZP,{style:{padding:0,height:"auto"},icon:vt.createElement("i",{className:"iconfont icon-changyongpingyu"}),type:"link",onClick:Yn=>{Yn.stopPropagation(),Jo(!0)}},"\u5E38\u7528\u8BC4\u8BED")))},vt.createElement(Bt.h,{height:200,scrollId:"comment",placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5BF9\u672C\u4F5C\u54C1\u7684\u8BC4\u8BED\uFF0C\u6700\u5927\u9650\u52362000\u4E2A\u5B57\u7B26"})),vt.createElement(Ui,null))},be=(0,oe.connect)(fe)(Wn),An=Le=>{var ce=Le,{ModalProps:Qt={},DataProps:ti={},shixunHomeworks:yi,FormProps:Si}=ce,Oi=we(ce,["ModalProps","DataProps","shixunHomeworks","FormProps"]);const{form:Li}=Si,{studentWorkDetail:ei}=yi;return vt.createElement(Be.default,Tn({},Tn({title:vt.createElement(vt.Fragment,null,"\u7F16\u8F91\u8BC4\u8BED",!(ei!=null&&ei.single_score)&&vt.createElement("span",{className:"ml20 font16",style:{color:"#FA6400"}},"\u6CE8\u610F\uFF1A\u5F00\u542F\u591A\u7EF4\u5EA6\u8BC4\u5206")),centered:!0,width:ei!=null&&ei.single_score?662:1120},Qt)),vt.createElement(ue.default,Tn({},Tn({size:"large",layout:"vertical"},Si)),vt.createElement(be,{FormProps:{form:Li},DataProps:ti})))},li=(0,oe.connect)(fe)(An),Jn=Le=>{var ce=Le,{ModalProps:Qt={},DataProps:ti={},shixunHomeworks:yi}=ce,Si=we(ce,["ModalProps","DataProps","shixunHomeworks"]),Oi,Li,ei;const{studentWorkDetail:Mn}=yi,[Di,er]=(0,vt.useState)({teacherList:[],assistantsList:[],anonymousCommentList:[]}),Ps=(In,ro,Jt="")=>({title:Jt==="anonymous_comment"?vt.createElement(Ce.Z,{title:(0,On.G5)()&&(In==null?void 0:In.name)},vt.createElement("a",null,"\u533F\u540D")):In==null?void 0:In.name,dataIndex:`score${ro}`,align:"center",render:(He,ls,Na)=>Na===0?vt.createElement(vt.Fragment,null,He,ls[`old_score${ro}`]&&vt.createElement("span",{style:{color:"#009C0F"}},"\uFF08\u6559\u5E08\u8865\u5206\uFF1A",ls[`old_score${ro}`],"\uFF09")):vt.createElement("div",{className:"flex item-center justify-center"},vt.createElement("div",{style:{width:166}},He==null?void 0:He.map((Jo,Gr)=>vt.createElement("div",{key:Gr,className:"flex justify-between"},Jo==null?void 0:Jo.name,vt.createElement("span",{className:"ml5",style:{color:"#009C0F"}},Jo==null?void 0:Jo.score)))))});return(0,vt.useEffect)(()=>{var In,ro,Jt,He,ls,Na;if(Mn&&(Qt!=null&&Qt.open)){const Jo=[{},{}],Gr=[{},{}],Zr=[{},{}];((In=Mn==null?void 0:Mn.teacher_score_list)==null?void 0:In.length)>0&&((ro=Mn==null?void 0:Mn.teacher_score_list)==null||ro.forEach((Ho,Qr)=>{Jo[0][`score${Qr}`]=Ho==null?void 0:Ho.score,Jo[1][`score${Qr}`]=Ho==null?void 0:Ho.user_score})),((Jt=Mn==null?void 0:Mn.assistants_score_list)==null?void 0:Jt.length)>0&&((He=Mn==null?void 0:Mn.assistants_score_list)==null||He.forEach((Ho,Qr)=>{Gr[0][`score${Qr}`]=Ho==null?void 0:Ho.score,Gr[1][`score${Qr}`]=Ho==null?void 0:Ho.user_score})),((ls=Mn==null?void 0:Mn.anonymous_comment_score_list)==null?void 0:ls.length)>0&&((Na=Mn==null?void 0:Mn.anonymous_comment_score_list)==null||Na.forEach((Ho,Qr)=>{Ho!=null&&Ho.old_score?(Zr[0][`score${Qr}`]=Ho==null?void 0:Ho.old_score,Zr[0][`old_score${Qr}`]=Ho==null?void 0:Ho.score):(Zr[0][`score${Qr}`]=Ho==null?void 0:Ho.score,Zr[0][`old_score${Qr}`]=Ho==null?void 0:Ho.old_score),Zr[1][`score${Qr}`]=Ho==null?void 0:Ho.user_score})),er({teacherList:Mn!=null&&Mn.single_score?[Jo[0]]:Jo,assistantsList:Mn!=null&&Mn.single_score?[Gr[0]]:Gr,anonymousCommentList:Mn!=null&&Mn.single_score?[Zr[0]]:Zr})}},[Mn,Qt==null?void 0:Qt.open]),vt.createElement(Be.default,Tn({},Tn({title:"\u5F97\u5206\u8BE6\u60C5",centered:!0,width:1200,bodyStyle:{maxHeight:"80vh"}},Qt)),vt.createElement(bo,{className:"mt0",dataInfo:Mn,isShowButton:!1}),vt.createElement("div",{className:`${Ie.ScoreDetailsBase} flex flex-col gap-20px`},((Oi=Mn==null?void 0:Mn.teacher_score_list)==null?void 0:Oi.length)>0&&vt.createElement("div",{className:"flex"},vt.createElement("div",{className:"c-grey-333 font14 blod flex item-center justify-center",style:{background:"rgba(48,97,208,0.1)",width:60,padding:"20px 15px"}},"\u6559\u5E08\u8BC4\u5206"),vt.createElement(Ae.default,{className:"flex-1",style:{minWidth:0},bordered:!0,dataSource:Di==null?void 0:Di.teacherList,pagination:!1,scroll:{x:"max-content"},columns:[...((Mn==null?void 0:Mn.teacher_score_list)||[]).map((In,ro)=>Ps(In,ro)),{title:`\u6700\u7EC8\u5F97\u5206\uFF08${(Mn==null?void 0:Mn.teacher_mode)===1?"\u5E73\u5747\u8BC4\u5206":"\u6700\u7EC8\u8BC4\u5206"}\uFF09`,dataIndex:"value",align:"center",width:224,fixed:"right",render:In=>vt.createElement("span",{style:{color:"#009C0F"}},Mn==null?void 0:Mn.teacher_score),onCell:(In,ro)=>({rowSpan:ro%2==0?2:0})}]})),((Li=Mn==null?void 0:Mn.assistants_score_list)==null?void 0:Li.length)>0&&vt.createElement("div",{className:"flex"},vt.createElement("div",{className:"c-grey-333 font14 blod flex item-center justify-center",style:{background:"rgba(48,97,208,0.1)",width:60,padding:"20px 15px"}},"\u52A9\u6559\u8BC4\u5206"),vt.createElement(Ae.default,{className:"flex-1",style:{minWidth:0},bordered:!0,dataSource:(Di==null?void 0:Di.assistantsList)||[],pagination:!1,scroll:{x:"max-content"},columns:[...((Mn==null?void 0:Mn.assistants_score_list)||[]).map((In,ro)=>Ps(In,ro)),{title:`\u6700\u7EC8\u5F97\u5206\uFF08${(Mn==null?void 0:Mn.ta_mode)===1?"\u5E73\u5747\u8BC4\u5206":"\u6700\u7EC8\u8BC4\u5206"}\uFF09`,dataIndex:"value",align:"center",width:224,fixed:"right",render:In=>vt.createElement("span",{style:{color:"#009C0F"}},Mn==null?void 0:Mn.teaching_asistant_score),onCell:(In,ro)=>({rowSpan:ro%2==0?2:0})}]})),(Mn==null?void 0:Mn.anonymous_comment)&&((ei=Mn==null?void 0:Mn.anonymous_comment_score_list)==null?void 0:ei.length)>0&&vt.createElement("div",{className:"flex"},vt.createElement("div",{className:"c-grey-333 font14 blod flex item-center justify-center",style:{background:"rgba(48,97,208,0.1)",width:60,padding:"20px 15px"}},"\u533F\u8BC4\u8BC4\u5206"),vt.createElement(Ae.default,{className:"flex-1",style:{minWidth:0},bordered:!0,dataSource:(Di==null?void 0:Di.anonymousCommentList)||[],pagination:!1,scroll:{x:"max-content"},columns:[...((Mn==null?void 0:Mn.anonymous_comment_score_list)||[]).map((In,ro)=>Ps(In,ro,"anonymous_comment")),{title:"\u6700\u7EC8\u5F97\u5206\uFF08\u53D6\u5E73\u5747\u5206\uFF09",dataIndex:"value",align:"center",width:224,fixed:"right",render:In=>vt.createElement("span",{style:{color:"#009C0F"}}," ",Mn==null?void 0:Mn.student_score),onCell:(In,ro)=>({rowSpan:ro%2==0?2:0})}]})),vt.createElement("div",{className:"flex"},vt.createElement("div",{className:"c-grey-333 font14 blod flex item-center justify-center",style:{background:"rgba(48,97,208,0.1)",width:60,padding:"20px 15px"}},"\u6263\u5206"),vt.createElement(Ae.default,{className:" flex-1",bordered:!0,dataSource:[Mn],pagination:!1,columns:[{title:"\u8865\u4EA4\u6263\u5206",dataIndex:"late_penalty",align:"center"},{title:"\u67E5\u91CD\u6263\u5206",dataIndex:"repeat_minus_score",align:"center"},(Mn==null?void 0:Mn.anonymous_comment)&&{title:"\u7F3A\u8BC4\u6263\u5206",dataIndex:"absence_penalty",align:"center"},{title:"\u8FDD\u8BC4\u6263\u5206",dataIndex:"appeal_penalty",align:"center"},{title:"\u6700\u7EC8\u6263\u5206",dataIndex:"value",align:"center",width:224,render:(In,ro)=>vt.createElement("span",{style:{color:"#009C0F"}},((ro==null?void 0:ro.late_penalty)||0)+((ro==null?void 0:ro.repeat_minus_score)||0)+((ro==null?void 0:ro.absence_penalty)||0)+((ro==null?void 0:ro.appeal_penalty)||0))}].filter(In=>In)}))))},Ki=(0,oe.connect)(fe)(Jn),ie=Le=>{var ce=Le,{ModalProps:Qt={},DataProps:ti={},shixunHomeworks:yi,dispatch:Si}=ce,Oi=we(ce,["ModalProps","DataProps","shixunHomeworks","dispatch"]);const{workDetail:Li}=yi,ei=(0,oe.useParams)();return vt.createElement(Be.default,Tn({},Tn({title:"\u4F5C\u4E1A\u63CF\u8FF0",centered:!0,width:1200,bodyStyle:{maxHeight:"80vh"}},Qt)),vt.createElement(rn.Z,{className:"mt10",value:(Li==null?void 0:Li.description)||"\u6682\u65E0\uFF5E"}),vt.createElement(un.Z,{authority:(0,On.GJ)(),showDimensions:!1,dataSource:Li==null?void 0:Li.attachments,callback:()=>{Si({type:"shixunHomeworks/getWorkDetail",payload:{categoryId:ei.categoryId}})}}))},yn=(0,oe.connect)(fe)(ie);var Kn=Object.defineProperty,Wi=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,an=Object.prototype.propertyIsEnumerable,Gi=(Le,ce,Qt)=>ce in Le?Kn(Le,ce,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Le[ce]=Qt,Co=(Le,ce)=>{for(var Qt in ce||(ce={}))ke.call(ce,Qt)&&Gi(Le,Qt,ce[Qt]);if(Wi)for(var Qt of Wi(ce))an.call(ce,Qt)&&Gi(Le,Qt,ce[Qt]);return Le};const Po=Le=>React.createElement("svg",Co({width:13,height:12,xmlns:"http://www.w3.org/2000/svg"},Le),React.createElement("title",null,"4"),React.createElement("path",{d:"M2.573 1.787v.006c.018.135.324 2.394 2.146 4.04C6.597 7.53 9.481 7.66 9.481 7.66h.003c.084.001 1.985.07 3.035 3.16.033.096.074.232.123.407a.583.583 0 0 1-.563.739H3.578a.583.583 0 0 1-.584-.592c.025-1.732-.115-2.97-.421-3.714C2.057 6.405.735 5.392.038 2.183c-.04-.188-.246-1.41.997-1.578C2.277.437 2.573 1.787 2.573 1.787ZM7.876.007c1.611 0 2.917 1.371 2.917 3.063 0 1.69-1.306 3.062-2.917 3.062-1.611 0-2.917-1.37-2.917-3.062C4.96 1.379 6.265.007 7.876.007Z",fill:"#FA6400",fillRule:"nonzero"}));var vi="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIuNTczIDEuNzg3di4wMDZjLjAxOC4xMzUuMzI0IDIuMzk0IDIuMTQ2IDQuMDRDNi41OTcgNy41MyA5LjQ4MSA3LjY2IDkuNDgxIDcuNjZoLjAwM2MuMDg0LjAwMSAxLjk4NS4wNyAzLjAzNSAzLjE2LjAzMy4wOTYuMDc0LjIzMi4xMjMuNDA3YS41ODMuNTgzIDAgMCAxLS41NjMuNzM5SDMuNTc4YS41ODMuNTgzIDAgMCAxLS41ODQtLjU5MmMuMDI1LTEuNzMyLS4xMTUtMi45Ny0uNDIxLTMuNzE0QzIuMDU3IDYuNDA1LjczNSA1LjM5Mi4wMzggMi4xODNjLS4wNC0uMTg4LS4yNDYtMS40MS45OTctMS41NzhDMi4yNzcuNDM3IDIuNTczIDEuNzg3IDIuNTczIDEuNzg3Wk03Ljg3Ni4wMDdjMS42MTEgMCAyLjkxNyAxLjM3MSAyLjkxNyAzLjA2MyAwIDEuNjktMS4zMDYgMy4wNjItMi45MTcgMy4wNjItMS42MTEgMC0yLjkxNy0xLjM3LTIuOTE3LTMuMDYyQzQuOTYgMS4zNzkgNi4yNjUuMDA3IDcuODc2LjAwN1oiIGZpbGw9IiNGQTY0MDAiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",Ci=Object.defineProperty,ui=Object.getOwnPropertySymbols,yo=Object.prototype.hasOwnProperty,cr=Object.prototype.propertyIsEnumerable,Vo=(Le,ce,Qt)=>ce in Le?Ci(Le,ce,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Le[ce]=Qt,Xe=(Le,ce)=>{for(var Qt in ce||(ce={}))yo.call(ce,Qt)&&Vo(Le,Qt,ce[Qt]);if(ui)for(var Qt of ui(ce))cr.call(ce,Qt)&&Vo(Le,Qt,ce[Qt]);return Le};const _o=Le=>React.createElement("svg",Xe({width:12,height:12,xmlns:"http://www.w3.org/2000/svg"},Le),React.createElement("title",null,"5"),React.createElement("g",{fill:"#5E54E7",fillRule:"nonzero"},React.createElement("path",{d:"M8.477 5.651c.569 0 1.101.138 1.569.377V1.257C10.046.56 9.486 0 8.789 0H1.257C.56 0 0 .56 0 1.257v8.789c0 .697.56 1.257 1.257 1.257h4.56a3.411 3.411 0 0 1-.79-2.193 3.448 3.448 0 0 1 3.45-3.459Zm-3.138.624H2.202a.31.31 0 0 1-.312-.312.31.31 0 0 1 .312-.312h3.137a.31.31 0 0 1 .312.312.31.31 0 0 1-.312.312ZM1.257 3.138V1.88c0-.349.284-.624.624-.624h6.275c.349 0 .624.284.624.624v1.257H1.257Zm2.826 5.651H2.202a.31.31 0 0 1-.312-.312.31.31 0 0 1 .312-.312h1.88a.31.31 0 0 1 .312.312.31.31 0 0 1-.311.312Z"}),React.createElement("path",{d:"M8.477 6.275a2.827 2.827 0 0 0 0 5.652 2.827 2.827 0 0 0 0-5.652Zm1.587 4.743C10.22 8.752 8.44 9.661 8.44 9.661v.981L6.908 9.101 8.44 7.54l-.009.9c2.835.421 1.633 2.577 1.633 2.577Z"})));var Do="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzVFNTRFNyIgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNOC40NzcgNS42NTFjLjU2OSAwIDEuMTAxLjEzOCAxLjU2OS4zNzdWMS4yNTdDMTAuMDQ2LjU2IDkuNDg2IDAgOC43ODkgMEgxLjI1N0MuNTYgMCAwIC41NiAwIDEuMjU3djguNzg5YzAgLjY5Ny41NiAxLjI1NyAxLjI1NyAxLjI1N2g0LjU2YTMuNDExIDMuNDExIDAgMCAxLS43OS0yLjE5MyAzLjQ0OCAzLjQ0OCAwIDAgMSAzLjQ1LTMuNDU5Wm0tMy4xMzguNjI0SDIuMjAyYS4zMS4zMSAwIDAgMS0uMzEyLS4zMTIuMzEuMzEgMCAwIDEgLjMxMi0uMzEyaDMuMTM3YS4zMS4zMSAwIDAgMSAuMzEyLjMxMi4zMS4zMSAwIDAgMS0uMzEyLjMxMlpNMS4yNTcgMy4xMzhWMS44OGMwLS4zNDkuMjg0LS42MjQuNjI0LS42MjRoNi4yNzVjLjM0OSAwIC42MjQuMjg0LjYyNC42MjR2MS4yNTdIMS4yNTdabTIuODI2IDUuNjUxSDIuMjAyYS4zMS4zMSAwIDAgMS0uMzEyLS4zMTIuMzEuMzEgMCAwIDEgLjMxMi0uMzEyaDEuODhhLjMxLjMxIDAgMCAxIC4zMTIuMzEyLjMxLjMxIDAgMCAxLS4zMTEuMzEyWiIvPjxwYXRoIGQ9Ik04LjQ3NyA2LjI3NWEyLjgyNyAyLjgyNyAwIDAgMCAwIDUuNjUyIDIuODI3IDIuODI3IDAgMCAwIDAtNS42NTJabTEuNTg3IDQuNzQzQzEwLjIyIDguNzUyIDguNDQgOS42NjEgOC40NCA5LjY2MXYuOTgxTDYuOTA4IDkuMTAxIDguNDQgNy41NGwtLjAwOS45YzIuODM1LjQyMSAxLjYzMyAyLjU3NyAxLjYzMyAyLjU3N1oiLz48L2c+PC9zdmc+",io=Object.defineProperty,je=Object.getOwnPropertySymbols,bn=Object.prototype.hasOwnProperty,di=Object.prototype.propertyIsEnumerable,mi=(Le,ce,Qt)=>ce in Le?io(Le,ce,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Le[ce]=Qt,fi=(Le,ce)=>{for(var Qt in ce||(ce={}))bn.call(ce,Qt)&&mi(Le,Qt,ce[Qt]);if(je)for(var Qt of je(ce))di.call(ce,Qt)&&mi(Le,Qt,ce[Qt]);return Le};const qi=Le=>React.createElement("svg",fi({width:16,height:12,xmlns:"http://www.w3.org/2000/svg"},Le),React.createElement("title",null,"2"),React.createElement("g",{fill:"#00B187",fillRule:"nonzero"},React.createElement("path",{d:"M2.573 1.787v.006c.018.135.324 2.394 2.146 4.04C6.597 7.53 9.481 7.66 9.481 7.66h.003c.084.001 1.985.07 3.035 3.16.033.096.074.232.123.407a.583.583 0 0 1-.563.739H3.578a.583.583 0 0 1-.584-.592c.025-1.732-.115-2.97-.421-3.714C2.057 6.405.735 5.392.038 2.183c-.04-.188-.246-1.41.997-1.578C2.277.437 2.573 1.787 2.573 1.787Z"}),React.createElement("path",{d:"M13.09 1.787v.006c-.017.135-.324 2.394-2.146 4.04C9.066 7.53 6.182 7.66 6.182 7.66h-.003c-.084.001-1.985.07-3.035 3.16a7.91 7.91 0 0 0-.122.407.583.583 0 0 0 .562.739h8.502a.583.583 0 0 0 .583-.592c-.025-1.732.116-2.97.422-3.714.515-1.255 1.837-2.268 2.534-5.477.041-.188.246-1.41-.996-1.578-1.242-.168-1.538 1.182-1.538 1.182Z"}),React.createElement("path",{d:"M7.876.007c1.611 0 2.917 1.371 2.917 3.063 0 1.69-1.306 3.062-2.917 3.062-1.611 0-2.917-1.37-2.917-3.062C4.96 1.379 6.265.007 7.876.007Z"})));var To="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwQjE4NyIgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNMi41NzMgMS43ODd2LjAwNmMuMDE4LjEzNS4zMjQgMi4zOTQgMi4xNDYgNC4wNEM2LjU5NyA3LjUzIDkuNDgxIDcuNjYgOS40ODEgNy42NmguMDAzYy4wODQuMDAxIDEuOTg1LjA3IDMuMDM1IDMuMTYuMDMzLjA5Ni4wNzQuMjMyLjEyMy40MDdhLjU4My41ODMgMCAwIDEtLjU2My43MzlIMy41NzhhLjU4My41ODMgMCAwIDEtLjU4NC0uNTkyYy4wMjUtMS43MzItLjExNS0yLjk3LS40MjEtMy43MTRDMi4wNTcgNi40MDUuNzM1IDUuMzkyLjAzOCAyLjE4M2MtLjA0LS4xODgtLjI0Ni0xLjQxLjk5Ny0xLjU3OEMyLjI3Ny40MzcgMi41NzMgMS43ODcgMi41NzMgMS43ODdaIi8+PHBhdGggZD0iTTEzLjA5IDEuNzg3di4wMDZjLS4wMTcuMTM1LS4zMjQgMi4zOTQtMi4xNDYgNC4wNEM5LjA2NiA3LjUzIDYuMTgyIDcuNjYgNi4xODIgNy42NmgtLjAwM2MtLjA4NC4wMDEtMS45ODUuMDctMy4wMzUgMy4xNmE3LjkxIDcuOTEgMCAwIDAtLjEyMi40MDcuNTgzLjU4MyAwIDAgMCAuNTYyLjczOWg4LjUwMmEuNTgzLjU4MyAwIDAgMCAuNTgzLS41OTJjLS4wMjUtMS43MzIuMTE2LTIuOTcuNDIyLTMuNzE0LjUxNS0xLjI1NSAxLjgzNy0yLjI2OCAyLjUzNC01LjQ3Ny4wNDEtLjE4OC4yNDYtMS40MS0uOTk2LTEuNTc4LTEuMjQyLS4xNjgtMS41MzggMS4xODItMS41MzggMS4xODJaIi8+PHBhdGggZD0iTTcuODc2LjAwN2MxLjYxMSAwIDIuOTE3IDEuMzcxIDIuOTE3IDMuMDYzIDAgMS42OS0xLjMwNiAzLjA2Mi0yLjkxNyAzLjA2Mi0xLjYxMSAwLTIuOTE3LTEuMzctMi45MTctMy4wNjJDNC45NiAxLjM3OSA2LjI2NS4wMDcgNy44NzYuMDA3WiIvPjwvZz48L3N2Zz4=",ho=Object.defineProperty,co=Object.getOwnPropertySymbols,jo=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,po=(Le,ce,Qt)=>ce in Le?ho(Le,ce,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Le[ce]=Qt,Ke=(Le,ce)=>{for(var Qt in ce||(ce={}))jo.call(ce,Qt)&&po(Le,Qt,ce[Qt]);if(co)for(var Qt of co(ce))Je.call(ce,Qt)&&po(Le,Qt,ce[Qt]);return Le};const Lo=Le=>React.createElement("svg",Ke({width:12,height:12,xmlns:"http://www.w3.org/2000/svg"},Le),React.createElement("title",null,"1"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M6.325 1.6a.578.578 0 0 1 .448.197c.135.176.215.387.23.608a.672.672 0 0 1 .535-.107c.497.088.628.632.653 1.043a.565.565 0 0 1 .292-.037c.699.079.686.756.68 1.046-.008.29-.248 2.06-.28 2.288.04.277.343 2.649-.851 3.6l.057.849-3.338.113v-1.168c-.27-.219-1.33-1.136-1.544-2.283a4.077 4.077 0 0 0-.475-1.201c-.277-.514-.515-.96-.114-1.436a.585.585 0 0 1 .457-.236c.608 0 1.154 1.1 1.302 1.935l.16.08-.12-3.53c0-.015-.043-.516.228-.809a.651.651 0 0 1 .493-.205h.036a.767.767 0 0 1 .375.106c.016-.233.104-.456.252-.636a.692.692 0 0 1 .524-.217Z",fill:"#EE5D5D"}),React.createElement("path",{d:"M6 0a6 6 0 1 1 0 12A6 6 0 0 1 6 0ZM2.019 2.655a5.2 5.2 0 0 0 6.472 7.91ZM6 .8a5.18 5.18 0 0 0-3.417 1.28l6.582 8.046A5.2 5.2 0 0 0 6 .8Z",fill:"#E30000"})));var as="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNi4zMjUgMS42YS41NzguNTc4IDAgMCAxIC40NDguMTk3Yy4xMzUuMTc2LjIxNS4zODcuMjMuNjA4YS42NzIuNjcyIDAgMCAxI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(Le,ce)).next())}),yr=({open:Le,onClose:ce,onOk:Qt})=>{const[ti,yi]=(0,vt.useState)(!1),[Si,Oi]=(0,vt.useState)("\u6263\u5206\u7406\u7531\u4E0D\u6E05\u6670"),[Li,ei]=(0,vt.useState)(""),Mn=()=>vr(void 0,null,function*(){yi(!0),(yield Qt(Si,Li))===0&&ce(),yi(!1)}),Di=["\u6263\u5206\u7406\u7531\u4E0D\u6E05\u6670","\u4F5C\u4E1A\u6B63\u786E\u4F46\u88AB\u6263\u5206","\u8BC4\u8BED\u8FC7\u4E8E\u4E3B\u89C2\u6216\u7B3C\u7EDF","\u8BC4\u8BED\u4E0E\u5B9E\u9645\u60C5\u51B5\u4E0D\u7B26","\u8BC4\u8BED\u4E0E\u8BC4\u5206\u4E0D\u5339\u914D","\u8BC4\u5206\u6807\u51C6\u6267\u884C\u4E0D\u4E00\u81F4","\u7F3A\u4E4F\u6539\u8FDB\u5EFA\u8BAE","\u81EA\u52A8\u8BC4\u5206\u7CFB\u7EDF\u95EE\u9898","\u5176\u5B83"];return vt.createElement(Be.default,{centered:!0,open:Le,confirmLoading:ti,onCancel:()=>{ce()},afterClose:()=>{ei(""),Oi("\u6263\u5206\u7406\u7531\u4E0D\u6E05\u6670")},onOk:Mn,title:"\u53CD\u9988",width:"1000px",okText:"\u63D0\u4EA4"},vt.createElement("div",{className:sn.btnWarp},Di.map(er=>vt.createElement("div",{key:er,className:Si===er?sn.active:"",onClick:()=>Oi(er)},er))),vt.createElement(_e.default.TextArea,{style:{height:280},placeholder:"\u6211\u4EEC\u60F3\u77E5\u9053\u4F60\u5BF9\u8BC4\u5206\u6216\u8BC4\u8BED\u4E0D\u6EE1\u610F\u7684\u539F\u56E0~",value:Li,onChange:er=>ei(er.target.value)}))},cn=bt(59301),$o=Object.defineProperty,Ra=Object.defineProperties,Ir=Object.getOwnPropertyDescriptors,Vn=Object.getOwnPropertySymbols,Rt=Object.prototype.hasOwnProperty,$r=Object.prototype.propertyIsEnumerable,ps=(Le,ce,Qt)=>ce in Le?$o(Le,ce,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Le[ce]=Qt,na=(Le,ce)=>{for(var Qt in ce||(ce={}))Rt.call(ce,Qt)&&ps(Le,Qt,ce[Qt]);if(Vn)for(var Qt of Vn(ce))$r.call(ce,Qt)&&ps(Le,Qt,ce[Qt]);return Le},ca=(Le,ce)=>Ra(Le,Ir(ce)),_l=(Le,ce)=>{var Qt={};for(var ti in Le)Rt.call(Le,ti)&&ce.indexOf(ti)<0&&(Qt[ti]=Le[ti]);if(Le!=null&&Vn)for(var ti of Vn(Le))ce.indexOf(ti)<0&&$r.call(Le,ti)&&(Qt[ti]=Le[ti]);return Qt},ga=(Le,ce,Qt)=>new Promise((ti,yi)=>{var Si=ei=>{try{Li(Qt.next(ei))}catch(Mn){yi(Mn)}},Oi=ei=>{try{Li(Qt.throw(ei))}catch(Mn){yi(Mn)}},Li=ei=>ei.done?ti(ei.value):Promise.resolve(ei.value).then(Si,Oi);Li((Qt=Qt.apply(Le,ce)).next())});const Eu=Le=>{var ce=Le,{Data:Qt,layer:ti=1,type:yi,index:Si=0,newType:Oi,user:Li,showName:ei,showNm:Mn}=ce,Di=_l(ce,["Data","layer","type","index","newType","user","showName","showNm"]),er,Ps,In,ro,Jt,He,ls,Na,Jo,Gr,Zr,Ho,Qr,Zo,Yn,_i,zo;const Hi=(0,oe.useParams)(),{studentWorkDetail:Ei}=Di==null?void 0:Di.shixunHomeworks,[Uo,Fr]=(0,vt.useState)({type:0,show:!1}),[Bo,Us]=(0,vt.useState)(null),[,So,ri]=(0,Ri.U)(kt.qP,{userId:Hi==null?void 0:Hi.userId}),[,$i,ts]=(0,Ri.U)(kt.R$,{userId:Hi==null?void 0:Hi.userId}),[,Eo,mn]=(0,Ri.U)(kt.QC,{userId:Hi==null?void 0:Hi.userId}),[,gi,Ar]=(0,Ri.U)(kt.Mf,{userId:Hi==null?void 0:Hi.userId}),[,ko,Du,si]=(0,Ri.U)(kt.Am,{homeworkId:Hi==null?void 0:Hi.userId}),[,Wd,mo,Yd]=(0,Ri.U)(kt.oK,{}),[Fu,Tl]=(0,vt.useState)(!1),[uu]=ue.default.useForm(),[hu]=ue.default.useForm(),[tl]=ue.default.useForm(),[fl,xo]=(0,vt.useState)(!1),[Bl,qu]=(0,vt.useState)(!1),[Ms,$u]=(0,vt.useState)(!1),us=(eo=Qt)=>{Be.default.confirm({title:"\u662F\u5426\u786E\u8BA4\u5220\u9664?",centered:!0,onOk:()=>ga(void 0,null,function*(){(yield mn({score_id:eo==null?void 0:eo.comment_id})).status===0&&(me.ZP.success("\u5220\u9664\u6210\u529F"),Di!=null&&Di.getInitData&&(Di==null||Di.getInitData()))})})},ma=(eo=Qt)=>{Be.default.confirm({title:"\u662F\u5426\u786E\u8BA4\u5220\u9664?",centered:!0,onOk:()=>ga(void 0,null,function*(){(yield Ar({object_id:eo.id,object_type:"journals_for_message"})).status===0&&(me.ZP.success("\u5220\u9664\u6210\u529F"),Di!=null&&Di.getInitData&&(Di==null||Di.getInitData()))})})},pl=(eo,Tr)=>{let Ya="";for(let Il=0;Il<(eo==null?void 0:eo.length);Il++){const Kl=eo[Il];Tr!=null&&Tr.old_score?Ya+=`${Kl.name} ${Kl.score}\u5206 `:Ya+=`${Kl.name} ${Kl.score}\u5206 `,Il<(eo==null?void 0:eo.length)-1&&(Tr!=null&&Tr.old_score?Ya+=' + ':Ya+=" + ")}return cn.createElement("span",{dangerouslySetInnerHTML:{__html:Ya}})},Wa=(eo,Tr,Ya)=>ga(void 0,null,function*(){const Il={type:eo,score_id:Qt==null?void 0:Qt.comment_id,reason:Tr||null,content:Ya||null},Kl=yield(0,et.ZP)(`/api/student_works/${Hi==null?void 0:Hi.categoryId}/add_score_like.json`,{method:"post",body:Il});return Kl.status===0&&Di!=null&&Di.getInitData&&(Di==null||Di.getInitData()),Kl.status});return cn.createElement("div",{className:ti==1&&sn.new_style_box,style:Oi&&{background:"#FCF8F4",border:"none"}},cn.createElement(wn.Z,{wrap:!1,gutter:15,className:ti!=1&&sn.box_child,style:Oi&&{marginTop:"0px"}},yi=="appeal_info"?cn.createElement(ze.Z,{flex:1},cn.createElement("div",{className:sn.box_item_top},cn.createElement(Ce.Z,{title:ei?(er=Qt==null?void 0:Qt.appeal_info)==null?void 0:er.user_name:""},cn.createElement("span",{style:{color:ei?"#3061D0":"#333333",fontWeight:600}},Mn?"\u533F\u540D":(Ps=Qt==null?void 0:Qt.appeal_info)==null?void 0:Ps.user_name)),(Qt==null?void 0:Qt.appeal_status)==1&&cn.createElement("span",{className:sn.tagStyleSzz,style:{color:"#CF5300",border:"1px solid rgba(250,100,0,0.2)",background:"rgba(250,100,0,0.1)",display:"flex",alignItems:"center",padding:"0 5px",marginLeft:"10px"}},cn.createElement("img",{src:vi,className:"mr5"}),"\u7533\u8BC9\u4E2D"),(Qt==null?void 0:Qt.appeal_status)==2&&cn.createElement("span",{className:sn.tagStyleSzz,style:{color:"#4237E7",border:"1px solid rgba(94,84,231,0.2)",background:"rgba(94,84,231,0.1)",display:"flex",alignItems:"center",padding:"0 5px",marginLeft:"10px"}},cn.createElement("img",{src:Do,className:"mr5"}),"\u7533\u8BC9\u5DF2\u64A4\u9500"),(Qt==null?void 0:Qt.appeal_status)==3&&cn.createElement("span",{className:sn.tagStyleSzz,style:{color:"#00B187",border:"1px rgba(0,177,135,0.2) solid",background:"rgba(0,177,135,0.1)",display:"flex",alignItems:"center",padding:"0 5px",marginLeft:"10px"}},cn.createElement("img",{src:To,className:"mr5"}),"\u7533\u8BC9\u6210\u529F"),(Qt==null?void 0:Qt.appeal_status)==4&&cn.createElement("span",{className:sn.tagStyleSzz,style:{color:"#E30000",border:"1px solid rgba(227,0,0,0.2)",background:"rgba(227,0,0,0.1)",display:"flex",alignItems:"center",padding:"0 5px",marginLeft:"10px"}},cn.createElement("img",{src:as,className:"mr5"}),"\u7533\u8BC9\u88AB\u62D2\u7EDD"),(Qt==null?void 0:Qt.reason)&&cn.createElement("span",{className:`${sn.tagStyleSzz} ${sn.feedbackSty}`},Qt==null?void 0:Qt.reason)),cn.createElement(rn.Z,{className:"font14 mt10",value:`${((In=Qt==null?void 0:Qt.appeal_info)==null?void 0:In.content)||"\u6682\u672A\u5199\u8BC4\u8BED"}`})):cn.createElement(ze.Z,{flex:1},cn.createElement("div",{className:sn.box_item_top},cn.createElement(Ce.Z,{title:ei?(ro=Qt==null?void 0:Qt.user_info)==null?void 0:ro.user_name:""},cn.createElement("span",{style:{color:ei?"#3061D0":"#333333",fontWeight:600}},Mn?"\u533F\u540D":(Jt=Qt==null?void 0:Qt.user_info)==null?void 0:Jt.user_name)),(Qt==null?void 0:Qt.student_work_num)&&cn.createElement(ze.Z,null,cn.createElement("span",{style:{padding:"3px 8px",background:(Qt==null?void 0:Qt.student_work_num)==1?"#5A9781":"#FFD28D",color:(Qt==null?void 0:Qt.student_work_num)==1?"#FFFFFF":"#AC4C0C",fontSize:"12px",borderRadius:"2px"}},"\u7B2C ",Qt==null?void 0:Qt.student_work_num," \u6B21\u63D0\u4EA4\u7684\u4F5C\u4E1A")),((Qt==null?void 0:Qt.score)||(Qt==null?void 0:Qt.score)==0)&&(Ei==null?void 0:Ei.single_score)&&cn.createElement(ze.Z,null,cn.createElement("span",{style:{color:Qt!=null&&Qt.anonymous_exception?"#E30000":Qt!=null&&Qt.old_score?"#999999":"#009C0F",fontWeight:600,marginLeft:"-7px"}}," ",(Qt==null?void 0:Qt.old_score)||(Qt==null?void 0:Qt.score),"\u5206 ",(Qt==null?void 0:Qt.old_score)&&"\uFF08\u5DF2\u5931\u6548\uFF09")),yi!="feedback"&&(ti==1&&!(Qt!=null&&Qt.can_reply)||!(Qt!=null&&Qt.can_reply)&&yi=="teacher"&&Si!=0)&&cn.createElement(ze.Z,null,cn.createElement("span",{className:"c-light-black"},"\uFF08\u5DF2\u5931\u6548\uFF09")),!(Ei!=null&&Ei.single_score)&&(Qt==null?void 0:Qt.score)!==null&&cn.createElement("div",{style:{color:"#333333"}},cn.createElement(Ce.Z,{title:((He=Qt==null?void 0:Qt.score_details)==null?void 0:He.length)>0?pl(Qt==null?void 0:Qt.score_details,Qt):"",overlayInnerStyle:{width:"min-content",whiteSpace:"nowrap",overflow:"visible"},placement:"topLeft"},cn.createElement("div",{style:{display:"flex",alignItems:"center"}},((Qt==null?void 0:Qt.score)||(Qt==null?void 0:Qt.score)==0)&&cn.createElement("span",{style:{color:Qt!=null&&Qt.anonymous_exception?"#E30000":Qt!=null&&Qt.old_score?"#999999":"#009C0F",fontWeight:600,marginRight:"5px"}},(Qt==null?void 0:Qt.old_score)||(Qt==null?void 0:Qt.score),"\u5206 ",(Qt==null?void 0:Qt.old_score)&&"\uFF08\u5DF2\u5931\u6548\uFF09"),((ls=Qt==null?void 0:Qt.score_details)==null?void 0:ls.length)>0&&cn.createElement("div",{className:sn.left,style:{width:"200px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},"= ",pl(Qt==null?void 0:Qt.score_details,Qt))))),(Qt==null?void 0:Qt.anonymous_exception)&&cn.createElement("div",{className:sn.yichang,style:{marginLeft:((Na=Qt==null?void 0:Qt.score_details)==null?void 0:Na.length)>0&&"10px"}},cn.createElement("i",{className:"iconfont icon-tishi12",style:{fontSize:"11px",marginRight:"3px"}}),"\u8BC4\u5206\u5F02\u5E38"),(Qt==null?void 0:Qt.reason)&&cn.createElement("span",{className:`${sn.tagStyleSzz} ${sn.feedbackSty}`},Qt==null?void 0:Qt.reason)),cn.createElement(rn.Z,{className:"font14 mt10",value:`${(Qt==null?void 0:Qt.content)||(Qt==null?void 0:Qt.hidden_comment)||"\u6682\u672A\u5199\u8BC4\u8BED"}`}),((Jo=Qt==null?void 0:Qt.attachments)==null?void 0:Jo.length)>0&&cn.createElement("div",{className:"mt10",style:{display:"flex",flexDirection:"column",gap:10}},(Gr=Qt==null?void 0:Qt.attachments)==null?void 0:Gr.map((eo,Tr)=>cn.createElement("a",{key:Tr,href:`${Lt.Z.API_SERVER}${eo.url}`},cn.createElement("i",{className:"iconfont icon-fujian font14"}),cn.createElement("span",{className:"ml10"},eo==null?void 0:eo.title),cn.createElement("span",{className:"c-light-black ml20 font12"},eo==null?void 0:eo.filesize))))),yi!="feedback"&&cn.createElement(cn.Fragment,null,yi=="appeal_info"?cn.createElement(ze.Z,{style:{whiteSpace:"nowrap"}},cn.createElement(wn.Z,{wrap:!1,gutter:10},(Qt==null?void 0:Qt.delete)&&(Qt==null?void 0:Qt.can_appeal)&&cn.createElement(ze.Z,null,cn.createElement("span",{className:sn.text_style,onClick:()=>{Be.default.confirm({centered:!0,title:cn.createElement("div",null,"\u64A4\u9500\u7533\u8BC9\u540E\uFF0C\u65E0\u6CD5\u518D\u5BF9\u672C\u8BC4\u9605\u8BB0\u5F55\u8FDB\u884C\u7533\u8BC9",cn.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u64A4\u9500\u7533\u8BC9"),onOk:()=>ga(void 0,null,function*(){Di!=null&&Di.getInitData&&(Di==null||Di.getInitData())})})}},"\u64A4\u9500\u7533\u8BC9")),(Qt==null?void 0:Qt.appeal_status)==1&&(0,On.GJ)()&&cn.createElement(ze.Z,null,cn.createElement("span",{className:sn.text_style,style:{marginRight:"10pz"},onClick:()=>{xo(!0)}},"\u63A5\u53D7\u7533\u8BC9")),(Qt==null?void 0:Qt.appeal_status)==1&&(0,On.GJ)()&&cn.createElement(ze.Z,null,cn.createElement("span",{className:sn.text_style_red,onClick:()=>{Be.default.confirm({centered:!0,title:cn.createElement("div",null,"\u6B64\u533F\u8BC4\u6210\u7EE9\u5C06\u88AB\u8BA4\u4E3A\u5408\u7406",cn.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u62D2\u7EDD\u7533\u8BC9"),onOk:()=>ga(void 0,null,function*(){const eo=yield(0,et.ZP)(`/api/student_works/${Hi.userId}/deal_appeal_score.json`,{method:"post",body:{score_id:Qt==null?void 0:Qt.score_id,status:4}});(eo==null?void 0:eo.status)===0&&Di!=null&&Di.getInitData&&(Di==null||Di.getInitData())})})}},"\u62D2\u7EDD\u7533\u8BC9")))):cn.createElement(cn.Fragment,null,ti==1&&(0,On.Yh)()&&(Ei==null?void 0:Ei.can_feedback)&&cn.createElement(cn.Fragment,null,cn.createElement(Ce.Z,{title:"\u559C\u6B22"},cn.createElement("i",{style:{color:(Qt==null?void 0:Qt.like)&&"#E30000",cursor:"pointer",lineHeight:"21px"},onClick:()=>Wa("like"),className:"iconfot icon-yijiejue font16 mr15"})),cn.createElement(Ce.Z,{title:"\u4E0D\u559C\u6B22"},cn.createElement("i",{style:{color:(Qt==null?void 0:Qt.dislike)&&"#37AD83",cursor:"pointer",lineHeight:"21px"},onClick:()=>{Qt!=null&&Qt.dislike?Wa("dislike"):$u(!0)},className:"iconfot icon-weijiejuezhengchang font16 mr5"}))),(ti==1||yi=="teacher")&&cn.createElement(ze.Z,{style:{whiteSpace:"nowrap"}},cn.createElement(wn.Z,{wrap:!1,gutter:10},((Qt==null?void 0:Qt.delete)||((Zr=Li==null?void 0:Li.userInfo)==null?void 0:Zr.user_id)==(Qt==null?void 0:Qt.user_id))&&cn.createElement(ze.Z,null,cn.createElement("span",{className:`${sn.text_style} ml5`,onClick:()=>{var eo;Tl(!0),hu.setFieldsValue(ca(na({},Qt),{comment:Qt==null?void 0:Qt.content,score_details:((eo=Qt==null?void 0:Qt.score_details)==null?void 0:eo.map(Tr=>na({},Tr)))||[]}))}},"\u7F16\u8F91")),(Qt==null?void 0:Qt.is_invalid)&&(Qt==null?void 0:Qt.delete)&&cn.createElement(ze.Z,null,cn.createElement("span",{className:sn.text_style,onClick:()=>{us(Qt)}},"\u5220\u9664")),(Qt==null?void 0:Qt.can_appeal)&&cn.createElement(ze.Z,null,cn.createElement("span",{className:sn.text_style,onClick:()=>{Fr({type:1,show:!0})}},"\u7533\u8BC9")),(Qt==null?void 0:Qt.can_reply)&&cn.createElement(ze.Z,null,cn.createElement("span",{className:sn.text_style,onClick:()=>{Fr({type:0,show:!0})}},"\u56DE\u590D")))),cn.createElement(ze.Z,{style:{whiteSpace:"nowrap",padding:0}},ti!=1&&((Qt==null?void 0:Qt.can_delete)&&yi!="teacher"||((Ho=Li==null?void 0:Li.userInfo)==null?void 0:Ho.user_id)==((Qr=Qt==null?void 0:Qt.user_info)==null?void 0:Qr.user_id))&&cn.createElement("span",{className:sn.text_style,onClick:()=>{qu(!0),tl.setFieldsValue(na({},Qt))}},"\u7F16\u8F91"),ti!=1&&(Qt==null?void 0:Qt.can_delete)&&yi!="teacher"&&cn.createElement("span",{className:sn.text_style,style:{marginLeft:"10px"},onClick:()=>{ma(Qt)}},"\u5220\u9664")))),ti!=1&&(Qt==null?void 0:Qt.old_score)&&cn.createElement("span",{style:{color:"#009C0F"}},"\u6559\u5E08\u533F\u8BC4\u8865\u5206\uFF1A",Qt==null?void 0:Qt.score,"\u5206")),ti==1&&(Qt==null?void 0:Qt.appeal_info)&&(Qt==null?void 0:Qt.appeal_info)!=""&&cn.createElement("div",{className:"mt20",style:{display:"flex",flexDirection:"column",gap:"20px"}},cn.createElement(Eu,na({type:"appeal_info",Data:Qt,layer:ti+1},Di))),ti==1&&((Zo=Qt==null?void 0:Qt.journals)==null?void 0:Zo.length)>0&&cn.createElement("div",{className:"mt20",style:{display:"flex",flexDirection:"column",gap:"20px"}},(Yn=Qt==null?void 0:Qt.journals)==null?void 0:Yn.map((eo,Tr)=>cn.createElement(Eu,na({key:Tr,type:yi,Data:eo,layer:ti+1},Di)))),(Uo==null?void 0:Uo.show)&&cn.createElement("div",{className:"mt20",style:{marginLeft:"56px"}},cn.createElement(nt.Z,{height:150,isFocus:!0,watch:!0,onChange:eo=>{Us(eo)}}),cn.createElement(wn.Z,{align:"middle",justify:"end",gutter:20},cn.createElement(ze.Z,null,cn.createElement(Ee.ZP,{onClick:()=>{Fr({type:0,show:!1})}},"\u53D6\u6D88")),cn.createElement(ze.Z,null,cn.createElement(Ee.ZP,{loading:So||$i,type:"primary",onClick:()=>ga(void 0,null,function*(){if(Bo===""){me.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");return}let eo;yi=="teacher"?eo=(yield Uo==null?void 0:Uo.type)==0?ri({hidden_comment:Bo,score_id:Qt==null?void 0:Qt.score_id}):ts({comment:Bo,score_id:Qt==null?void 0:Qt.score_id}):eo=yield((Uo==null?void 0:Uo.type)==0?ri:ts)({comment:Bo,score_id:Qt==null?void 0:Qt.score_id}),eo.status===0&&(me.ZP.success("\u64CD\u4F5C\u6210\u529F"),Fr({type:0,show:!1}),Di!=null&&Di.getInitData&&(Di==null||Di.getInitData()))})},(Uo==null?void 0:Uo.type)==0?"\u56DE\u590D":"\u7533\u8BC9")))),cn.createElement(Be.default,{title:"\u63A5\u53D7\u7533\u8BC9",open:fl,centered:!0,destroyOnClose:!0,onCancel:()=>{xo(!1)},maskClosable:!1,width:544,onOk:()=>{uu.submit()}},cn.createElement(ue.default,{form:uu,colon:!1,onFinish:eo=>ga(void 0,null,function*(){(yield(0,et.ZP)(`/api/student_works/${Hi.userId}/deal_appeal_score.json`,{method:"post",body:ca(na({},eo),{userId:Hi.userId,score_id:Qt==null?void 0:Qt.score_id,status:3})})).status===0&&(xo(!1),Di!=null&&Di.getInitData&&(Di==null||Di.getInitData()))})},cn.createElement("div",{style:{color:"#191919"}},"\u786E\u8BA4\u662F\u5426\u63A5\u53D7\u7533\u8BC9\uFF1F\u4E00\u65E6\u63A5\u53D7\uFF0C\u88AB\u7533\u8BC9\u7684\u8BC4\u5206\u8BB0\u5F55\u5C06\u4F5C\u5E9F\u3002\u8BF7\u60A8\u8865\u5145\u533F\u8BC4\u8BC4\u5206\uFF1A"),cn.createElement(fn.Z,{style:{marginTop:"20px"},colon:!1,items:[{key:"1",label:"\u7533\u8BC9\u4EBA",children:cn.createElement("span",null,(_i=Qt==null?void 0:Qt.appeal_info)==null?void 0:_i.user_name)},{key:"2",label:"\u88AB\u7533\u8BC9\u4EBA",children:cn.createElement("span",{style:{color:"#191919"}},(zo=Qt==null?void 0:Qt.user_info)==null?void 0:zo.user_name)},{key:"3",label:"\u88AB\u7533\u8BC9\u4EBA\u8BC4\u5206",children:cn.createElement("span",{style:{color:"#191919"}},Qt==null?void 0:Qt.score)}]}),cn.createElement(wn.Z,{className:"mt20",wrap:!1},cn.createElement(ze.Z,null,cn.createElement(ue.default.Item,{label:"\u533F\u8BC4\u5206\u6570",name:"score",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u6570"}]},cn.createElement(Ht.Z,{min:1,max:100,step:1}))),cn.createElement(ze.Z,null,cn.createElement("span",{className:"ml10",style:{lineHeight:"30px"}},"\u5206")),cn.createElement(ze.Z,null,cn.createElement(ue.default.Item,{className:"ml20",valuePropName:"checked",name:"is_appeal_penalty",initialValue:!0},cn.createElement(se.default,null,"\u6263\u9664\u8FDD\u89C4\u533F\u8BC4\u5206\u6570")))))),cn.createElement(Be.default,{title:"\u7F16\u8F91\u56DE\u590D",width:800,centered:!0,open:Bl,confirmLoading:Wd,onCancel:()=>{qu(!1)},onOk:()=>{tl.submit()}},cn.createElement(ue.default,{form:tl,colon:!1,onFinish:eo=>ga(void 0,null,function*(){const Tr=yield mo(na({},eo));(Tr==null?void 0:Tr.status)===0&&(me.ZP.success("\u4FEE\u6539\u6210\u529F"),qu(!1),Di!=null&&Di.getInitData&&(Di==null||Di.getInitData()))})},cn.createElement(ue.default.Item,{hidden:!0,name:"id",label:"\u8FD9\u4E2A\u662F\u7528\u6765\u6536\u96C6score_id\u7684"}),cn.createElement(ue.default.Item,{name:"content",label:"\u8BC4\u8BED"},cn.createElement(Bt.h,{height:200,scrollId:"notes",placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5BF9\u672C\u4F5C\u54C1\u7684\u8BC4\u8BED\uFF0C\u6700\u5927\u9650\u52362000\u4E2A\u5B57\u7B26"})))),cn.createElement(li,{DataProps:{disabledScore:Oi=="teacher"},FormProps:{form:hu,onFinish:(...eo)=>ga(void 0,[...eo],function*(Tr={}){const Ya=yield Du(ca(na({},Tr),{homeworkId:Hi==null?void 0:Hi.userId}));(Ya==null?void 0:Ya.status)===0&&(me.ZP.success("\u4FEE\u6539\u6210\u529F"),Tl(!1),Di!=null&&Di.getInitData&&(Di==null||Di.getInitData()),Di!=null&&Di.updateData&&(Di==null||Di.updateData()))})},ModalProps:{open:Fu,onCancel:()=>{Tl(!1),hu.resetFields()},onOk:()=>{hu.submit()},confirmLoading:ko}}),cn.createElement(yr,{open:Ms,onClose:()=>$u(!1),onOk:(eo,Tr)=>Wa("dislike",eo,Tr)}))};var Zl=(0,oe.connect)(({user:Le})=>({user:Le}))(Eu),tr=Object.defineProperty,gr=Object.getOwnPropertySymbols,Ea=Object.prototype.hasOwnProperty,Ti=Object.prototype.propertyIsEnumerable,ci=(Le,ce,Qt)=>ce in Le?tr(Le,ce,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Le[ce]=Qt,tn=(Le,ce)=>{for(var Qt in ce||(ce={}))Ea.call(ce,Qt)&&ci(Le,Qt,ce[Qt]);if(gr)for(var Qt of gr(ce))Ti.call(ce,Qt)&&ci(Le,Qt,ce[Qt]);return Le};const Pi=Le=>React.createElement("svg",tn({width:18,height:18,xmlns:"http://www.w3.org/2000/svg"},Le),React.createElement("title",null,"\u4F5C\u4E1A\u63D0\u4EA4\u5185\u5BB9"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M9 0C4.032 0 0 4.032 0 9s4.032 9 9 9 9-4.032 9-9-4.032-9-9-9Z",fill:"#009CDC"}),React.createElement("path",{d:"M11.511 5H5.956a.954.954 0 0 0-.952.951v6.032c0 .524.428.952.952.952h5.555a.954.954 0 0 0 .952-.952V5.951A.954.954 0 0 0 11.511 5ZM6.607 6.881h2.58a.34.34 0 0 1 0 .68h-2.58a.34.34 0 0 1 0-.68Zm1.603 4.17H6.608a.34.34 0 0 1 0-.68H8.21a.34.34 0 0 1 0 .68Zm2.445-1.744H6.607a.34.34 0 0 1 0-.68h4.048a.34.34 0 0 1 0 .68Z",fill:"#FFF"})));var oo="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNOSAwQzQuMDMyIDAgMCA0LjAzMiAwIDlzNC4wMzIgOSA5IDkgOS00LjAzMiA5LTktNC4wMzItOS05LTlaIiBmaWxsPSIjMDA5Q0RDIi8+PHBhdGggZD0iTTExLjUxMSA1SDUuOTU2YS45NTQuOTU0IDAgMCAwLS45NTIuOTUxdjYuMDMyYzAgLjUyNC40MjguOTUyLjk1Mi45NTJoNS41NTVhLjk1NC45NTQgMCAwIDAgLjk1Mi0uOTUyVjUuOTUxQS45NTQuOTU0IDAgMCAwIDExLjUxMSA1Wk02LjYwNyA2Ljg4MWgyLjU4YS4zNC4zNCAwIDAgMSAwIC42OGgtMi41OGEuMzQuMzQgMCAwIDEgMC0uNjhabTEuNjAzIDQuMTdINi42MDhhLjM0LjM0IDAgMCAxIDAtLjY4SDguMjFhLjM0LjM0IDAgMCAxIDAgLjY4Wm0yLjQ0NS0xLjc0NEg2LjYwN2EuMzQuMzQgMCAwIDEgMC0uNjhoNC4wNDhhLjM0LjM0IDAgMCAxIDAgLjY4WiIgZmlsbD0iI0ZGRiIvPjwvZz48L3N2Zz4=",ir=Object.defineProperty,fr=Object.getOwnPropertySymbols,pr=Object.prototype.hasOwnProperty,Rr=Object.prototype.propertyIsEnumerable,Sr=(Le,ce,Qt)=>ce in Le?ir(Le,ce,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Le[ce]=Qt,Ga=(Le,ce)=>{for(var Qt in ce||(ce={}))pr.call(ce,Qt)&&Sr(Le,Qt,ce[Qt]);if(fr)for(var Qt of fr(ce))Rr.call(ce,Qt)&&Sr(Le,Qt,ce[Qt]);return Le};const fa=Le=>React.createElement("svg",Ga({width:70,height:24,xmlns:"http://www.w3.org/2000/svg"},Le),React.createElement("title",null,"\u5F85\u8BC4\u9605"),React.createElement("path",{d:"m70 0-6.146 11.936L70 24H0V0h70ZM40.992 5.229H31.7v1.646h3.768v5.83H31.21v1.663h4.258v5.796h1.724v-5.796h4.325v-1.663h-4.325v-5.83h3.801V5.23Zm4.157 2.167h-1.724v12.768h1.724V7.396Zm-32.34.958c-.845 1.848-2.112 3.46-3.802 4.821l.524 1.663a27.003 27.003 0 0 0 1.656-1.41v6.618h1.706v-8.55a12.713 12.713 0 0 0 1.42-2.437l-1.504-.705Zm44.793-3.142h-8.01v1.613h6.286v10.953c0 .47-.152.706-.44.706l-.658-.034c.186-.37.32-1.008.405-1.932l-1.487-.47c-.05.706-.135 1.126-.253 1.26a.506.506 0 0 1-.422.218h-.305c-.22 0-.32-.134-.32-.386v-1.966h1.672V10.32h-1.487c.406-.672.794-1.411 1.132-2.234l-1.656-.588a23.536 23.536 0 0 1-1.165 2.822H49l1.217-.605c-.406-.739-.811-1.428-1.25-2.032l-1.47.705c.439.571.861 1.21 1.25 1.932h-1.842v4.855h1.538c-.237 1.31-1.183 2.235-2.856 2.806l.913 1.445c2.06-.89 3.21-2.302 3.446-4.25h.913v2.301c0 1.042.456 1.58 1.368 1.58h1.082c.49 0 .878-.102 1.149-.27l.32 1.26h1.015c1.2 0 1.808-.588 1.808-1.764V5.212Zm-35.095 6.3H20.75v1.058h-6.353v1.63h6.353v3.394c0 .537-.253.823-.76.823-.676 0-1.403-.034-2.18-.101l.406 1.663h2.399c1.25 0 1.892-.655 1.892-1.949V14.2h1.775v-1.63h-1.775v-1.058Zm7.317-1.949h-4.022v1.68h2.315v5.964c0 .353-.152.655-.44.907l.66 1.58a25.152 25.152 0 0 0 3.328-2.672l-.49-1.848c-.473.47-.929.908-1.351 1.294V9.563Zm-13.146 4.973-1.369.857c.88.924 1.589 1.764 2.113 2.52l1.368-.958c-.49-.705-1.2-1.512-2.112-2.419Zm35.787-2.806v2.033h-3.97V11.73h3.97Zm-19.11-4.233L31.851 8a28.8 28.8 0 0 1 1.2 4.099l1.504-.37a35.374 35.374 0 0 0-1.2-4.233Zm5.796-.05c-.355 1.646-.76 3.023-1.234 4.099l1.47.52c.524-1.21.963-2.604 1.301-4.216l-1.537-.404ZM20.226 4.573H18.52V6.22h-3.565v1.596h3.565v1.596h-4.174v1.613h10.172V9.412h-4.292V7.816h3.6V6.22h-3.6V4.574Zm-8.025-.101c-.727 1.562-1.842 2.923-3.346 4.065l.524 1.68c2.061-1.512 3.497-3.175 4.342-5.023l-1.52-.722Zm16 .235-1.25 1.21c1.2.873 2.13 1.696 2.771 2.47L30.94 7.16a23.623 23.623 0 0 0-2.737-2.453Zm18.283-.269-1.606.706A15.91 15.91 0 0 1 46.686 7.9l1.572-.806a14.573 14.573 0 0 0-1.774-2.655Z",fill:"#FA6400",fillRule:"nonzero"}));var Ql="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzAiIGhlaWdodD0iMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTcwIDAtNi4xNDYgMTEuOTM2TDcwIDI0SDBWMGg3MFpNNDAuOTkyIDUuMjI5SDMxLjd2MS42NDZoMy43Njh2NS44M0gzMS4yMXYxLjY2M2g0LjI1OHY1Ljc5NmgxLjcyNHYtNS43OTZoNC4zMjV2LTEuNjYzaC00LjMyNXYtNS44M2gzLjgwMVY1LjIzWm00LjE1NyAyLjE2N2gtMS43MjR2MTIuNzY4aDEuNzI0VjcuMzk2Wm0tMzIuMzQuOTU4Yy0uODQ1IDEuODQ4LTIuMTEyIDMuNDYtMy44MDIgNC44MjFsLjUyNCAxLjY2M2EyNy4wMDMgMjcuMDAzIDAgMCAwIDEuNjU2LTEuNDF2Ni42MThoMS43MDZ2LTguNTVhMTIuNzEzIDEyLjcxMyAwIDAgMCAxLjQyLTIuNDM3bC0xLjUwNC0uNzA1Wm00NC43OTMtMy4xNDJoLTguMDF2MS42MTNoNi4yODZ2MTAuOTUzYzAgLjQ3LS4xNTIuNzA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0yLjY1NVoiIGZpbGw9IiNGQTY0MDAiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",Me=Object.defineProperty,Ts=Object.getOwnPropertySymbols,Au=Object.prototype.hasOwnProperty,qa=Object.prototype.propertyIsEnumerable,au=(Le,ce,Qt)=>ce in Le?Me(Le,ce,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Le[ce]=Qt,Lr=(Le,ce)=>{for(var Qt in ce||(ce={}))Au.call(ce,Qt)&&au(Le,Qt,ce[Qt]);if(Ts)for(var Qt of Ts(ce))qa.call(ce,Qt)&&au(Le,Qt,ce[Qt]);return Le};const kl=Le=>React.createElement("svg",Lr({width:17,height:14,xmlns:"http://www.w3.org/2000/svg"},Le),React.createElement("title",null,"\u4EC5\u6559\u5E08\u53EF\u89C1"),React.createElement("g",{fill:"#CA7720",fillRule:"nonzero"},React.createElement("path",{d:"M7.046 13.302V14h1.566v-.698c0-.557.248-1.093.689-1.485a2.487 2.487 0 0 1 1.66-.615v-1.4c-2.163 0-3.915 1.565-3.915 3.5ZM0 9.802v1.4c.623 0 1.22.22 1.66.615.44.394.688.928.688 1.485V14h1.566v-.698c0-1.935-1.752-3.5-3.914-3.5Z"}),React.createElement("path",{d:"M10.96 3.502a4.878 4.878 0 0 0-.954-2.8 6.002 6.002 0 0 0-2.623 1.476A5.414 5.414 0 0 0 5.48 0a5.39 5.39 0 0 0-1.893 2.178A6 6 0 0 0 .957.702a4.87 4.87 0 0 0-.954 2.8V4.2C.005 6.633 2.007 8.695 4.7 9.044V14h1.566V9.045c2.693-.347 4.694-2.41 4.695-4.843v-.7Z"}),React.createElement("path",{d:"M10.977 8.084c-.061 0-.12-.004-.177-.013a.65.65 0 0 1-.15-.042.343.343 0 0 1-.175-.167.885.885 0 0 1-.075-.214l-.029-.133-.002-.009-.02-.092-.001-.006-.002-.005a.697.697 0 0 0-.005-.018l-.001-.002a.546.546 0 0 1-.013-.046.963.963 0 0 0-.009-.033l-.024-.08-.07-.047a.019.019 0 0 1-.008-.014l-.001-.005a.11.11 0 0 1-.003-.022l.005-.142v-.037c.001-.011.008-.02.02-.023l.011-.003a.422.422 0 0 1 .052-.012l.301-.039c.111-.013.23-.02.383-.02H11.011c.165 0 .333.016.5.047.096.018.188.048.27.074.06.02.106.032.15.04a.425.425 0 0 0 .072.008l-.198.512c-.02.054-.042.101-.065.145a.858.858 0 0 1-.2.25.499.499 0 0 1-.184.096 1.258 1.258 0 0 1-.38.052Zm-.205-.097c.022.005.042.01.062.013a1.09 1.09 0 0 0 .452-.026.435.435 0 0 0 .196-.104.61.61 0 0 0 .105-.138c.055-.095.095-.194.118-.294a.65.65 0 0 0 .018-.205l-.01-.126-.112-.058a.506.506 0 0 0-.13-.042l-.01-.002a1.717 1.717 0 0 0-.374-.039h-.008l-.038.002a4.311 4.311 0 0 0-.128.008 1.43 1.43 0 0 0-.25.041l-.133.036-.032.136a.514.514 0 0 0-.009.059v.001l-.002.018a.708.708 0 0 0-.002.155c.007.073.018.17.041.266a.57.57 0 0 0 .078.189c.019.027.04.05.063.067l.06.043h.045Zm2.28.091a1.4 1.4 0 0 1-.27-.025.75.75 0 0 1-.22-.077.594.594 0 0 1-.228-.228 1.782 1.782 0 0 1-.105-.212l-.21-.507a.565.565 0 0 0 .16-.029l.08-.028.075-.025c.09-.03.19-.05.315-.066a2.854 2.854 0 0 1 .525-.019h.009l.265.015c.11.008.219.024.34.043l.02.004.003.002c.01.002.017.007.018.021l.001.023v.006a.984.984 0 0 1 .005.138l-.034-.062-.048.167-.024.08-.082.288.014-.008c-.018.075-.04.152-.07.225a.512.512 0 0 1-.07.125.333.333 0 0 1-.178.115.855.855 0 0 1-.21.032 1.846 1.846 0 0 1-.08.002Zm-.106-1.115a1.641 1.641 0 0 0-.486.075l-.142.049-.012.15a.722.722 0 0 0 .023.21.868.868 0 0 0 .167.354c.066.083.15.136.249.157.109.024.208.035.303.035h.01a.815.815 0 0 0 .21-.024.319.319 0 0 0 .146-.076.342.342 0 0 0 .079-.128c.041-.11.064-.23.068-.358v-.008c.002-.042 0-.084-.002-.125v-.02a.489.489 0 0 0-.003-.039l-.004-.032-.012-.03a.424.424 0 0 0-.004-.01l-.044-.099-.104-.029a1.763 1.763 0 0 0-.396-.053h-.046Zm1.042 3.06-1.42 2.599-.21-.62.388-.78-.778-.782-.778.781.39.782-.251.633-1.38-2.613s-2.942 1.564-2.942 3.113c0 .428.176.823.605.823h8.731c.427 0 .607-.391.607-.817 0-1.454-2.962-3.12-2.962-3.12Zm.54-3.202-.003-.122-.102-.068c-.012-.01-.024-.017-.037-.024-.208-1.803-.194-2.866-2.287-2.551-.734.11-1.535-.118-1.99.215-.574.539-.615 1.348-.459 2.297-.035.019-.07.04-.103.063l-.102.068-.002.123c-.005.316.034.582.12.787a.788.788 0 0 0 .345.407c.182.62.444 1.084.772 1.419.357.365.787.572 1.273.654l.043.007.044-.01c.538-.113.968-.329 1.31-.69.319-.335.556-.787.73-1.39a.8.8 0 0 0 .332-.41c.083-.203.12-.465.115-.775Zm-.556.6c-.041.102-.098.17-.17.194l-.119.042-.032.12c-.156.58-.365.999-.644 1.293-.264.277-.598.449-1.02.544a1.78 1.78 0 0 1-.967-.509c-.292-.297-.524-.729-.685-1.322l-.034-.126-.126-.04c-.074-.022-.132-.088-.174-.19-.043-.101-.069-.23-.08-.383.116-.018.245-.05.308-.009l.022-.074h.003l.01-.05c.034-.137.073-1 .108-1.139.014-.04.019-.086.045-.12.169.23 1.444.257 2.185-.257l-.139.375.141.028.158-.253-.02.177.15.02.093-.291c.184.105.387.246.568.17.06.136.107.967.137 1.127l.039.206.068-.004.032.107c.08-.01.15-.011.22-.013a1.25 1.25 0 0 1-.077.376Z"})));var gl="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iI0NBNzcyMCIgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aC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yMDMuMTItLjQ2NS4xMTUtLjc3NVptLS41NTYuNmMtLjA0MS4xMDItLjA5OC4xNy0uMTcuMTk0bC0uMTE5LjA0Mi0uMDMyLjEyYy0uMTU2LjU4LS4zNjUuOTk5LS42NDQgMS4yOTMtLjI2NC4yNzctLjU5OC40NDktMS4wMi41NDRhMS43OCAxLjc4IDAgMCAxLS45NjctLjUwOWMtLjI5Mi0uMjk3LS41MjQtLjcyOS0uNjg1LTEuMzIybC0uMDM0LS4xMjYtLjEyNi0uMDRjLS4wNzQtLjAyMi0uMTMyLS4wODgtLjE3NC0uMTktLjA0My0uMTAxLS4wNjktLjIzLS4wOC0uMzgzLjExNi0uMDE4LjI0NS0uMDUuMzA4LS4wMDlsLjAyMi0uMDc0aC4wMDNsLjAxLS4wNWMuMDM0LS4xMzcuMDczLTEgLjEwOC0xLjEzOS4wMTQtLjA0LjAxOS0uMDg2LjA0NS0uMTIuMTY5LjIzIDEuNDQ0LjI1NyAyLjE4NS0uMjU3bC0uMTM5LjM3NS4xNDEuMDI4LjE1OC0uMjUzLS4wMi4xNzcuMTUuMDIuMDkzLS4yOTFjLjE4NC4xMDUuMzg3LjI0Ni41NjguMTcuMDYuMTM2LjEwNy45NjcuMTM3IDEuMTI3bC4wMzkuMjA2LjA2OC0uMDA0LjAzMi4xMDdjLjA4LS4wMS4xNS0uMDExLjIyLS4wMTNhMS4yNSAxLjI1IDAgMCAxLS4wNzcuMzc2WiIvPjwvZz48L2c+PC9zdmc+",Ko=Object.defineProperty,Yr=Object.getOwnPropertySymbols,Nu=Object.prototype.hasOwnProperty,xs=Object.prototype.propertyIsEnumerable,ku=(Le,ce,Qt)=>ce in Le?Ko(Le,ce,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Le[ce]=Qt,Aa=(Le,ce)=>{for(var Qt in ce||(ce={}))Nu.call(ce,Qt)&&ku(Le,Qt,ce[Qt]);if(Yr)for(var Qt of Yr(ce))xs.call(ce,Qt)&&ku(Le,Qt,ce[Qt]);return Le};const ii=Le=>React.createElement("svg",Aa({width:11,height:14,xmlns:"http://www.w3.org/2000/svg"},Le),React.createElement("title",null,"\u8BC4\u8BED"),React.createElement("g",{fill:"#000",fillRule:"nonzero"},React.createElement("path",{d:"M7.046 13.302V14h1.566v-.698c0-.557.248-1.093.689-1.485a2.487 2.487 0 0 1 1.66-.615v-1.4c-2.163 0-3.915 1.565-3.915 3.5ZM0 9.802v1.4c.623 0 1.22.22 1.66.615.44.394.688.928.688 1.485V14h1.566v-.698c0-1.935-1.752-3.5-3.914-3.5Z"}),React.createElement("path",{d:"M10.96 3.502a4.878 4.878 0 0 0-.954-2.8 6.002 6.002 0 0 0-2.623 1.476A5.414 5.414 0 0 0 5.48 0a5.39 5.39 0 0 0-1.893 2.178A6 6 0 0 0 .957.702a4.87 4.87 0 0 0-.954 2.8V4.2C.005 6.633 2.007 8.695 4.7 9.044V14h1.566V9.045c2.693-.347 4.694-2.41 4.695-4.843v-.7Z"})));var xh="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTEiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNNy4wNDYgMTMuMzAyVjE0aDEuNTY2di0uNjk4YzAtLjU1Ny4yNDgtMS4wOTMuNjg5LTEuNDg1YTIuNDg3IDIuNDg3IDAgMCAxIDEuNjYtLjYxNXYtMS40Yy0yLjE2MyAwLTMuOTE1IDEuNTY1LTMuOTE1IDMuNVpNMCA5LjgwMnYxLjRjLjYyMyAwIDEuMjIuMjIgMS42Ni42MTUuNDQuMzk0LjY4OC45MjguNjg4IDEuNDg1VjE0aDEuNTY2di0uNjk4YzAtMS45MzUtMS43NTItMy41LTMuOTE0LTMuNVoiLz48cGF0aCBkPSJNMTAuOTYgMy41MDJhNC44NzggNC44NzggMCAwIDAtLjk1NC0yLjggNi4wMDIgNi4wMDIgMCAwIDAtMi42MjMgMS40NzZBNS40MTQgNS40MTQgMCAwIDAgNS40OCAwYTUuMzkgNS4zOSAwIDAgMC0xLjg5MyAyLjE3OEE2IDYgMCAwIDAgLjk1Ny43MDJhNC44NyA0Ljg3IDAgMCAwLS45NTQgMi44VjQuMkMuMDA1IDYuNjMzIDIuMDA3IDguNjk1IDQuNyA5LjA0NFYxNGgxLjU2NlY5LjA0NWMyLjY5My0uMzQ3IDQuNjk0LTIuNDEgNC42OTUtNC44NDN2LS43WiIvPjwvZz48L3N2Zz4=",wh=Object.defineProperty,Ha=Object.getOwnPropertySymbols,ed=Object.prototype.hasOwnProperty,nd=Object.prototype.propertyIsEnumerable,jn=(Le,ce,Qt)=>ce in Le?wh(Le,ce,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Le[ce]=Qt,Er=(Le,ce)=>{for(var Qt in ce||(ce={}))ed.call(ce,Qt)&&jn(Le,Qt,ce[Qt]);if(Ha)for(var Qt of Ha(ce))nd.call(ce,Qt)&&jn(Le,Qt,ce[Qt]);return Le};const Vr=Le=>React.createElement("svg",Er({width:20,height:20,xmlns:"http://www.w3.org/2000/svg"},Le),React.createElement("title",null,"\u8FD4\u56DE"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"#3061D0",width:20,height:20,rx:4}),React.createElement("g",{stroke:"#FFF",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2},React.createElement("path",{d:"M4.678 10.176h10.526M8.187 13.684l-3.509-3.509 3.509-3.508"}))));var pa="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSIjMzA2MUQwIiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHJ4PSI0Ii8+PGcgc3Ryb2tlPSIjRkZGIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMiI+PHBhdGggZD0iTTQuNjc4IDEwLjE3NmgxMC41MjZNOC4xODcgMTMuNjg0bC0zLjUwOS0zLjUwOSAzLjUwOS0zLjUwOCIvPjwvZz48L2c+PC9zdmc+",lu=Object.defineProperty,Dl=Object.getOwnPropertySymbols,zi=Object.prototype.hasOwnProperty,Ju=Object.prototype.propertyIsEnumerable,$a=(Le,ce,Qt)=>ce in Le?lu(Le,ce,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Le[ce]=Qt,ia=(Le,ce)=>{for(var Qt in ce||(ce={}))zi.call(ce,Qt)&&$a(Le,Qt,ce[Qt]);if(Dl)for(var Qt of Dl(ce))Ju.call(ce,Qt)&&$a(Le,Qt,ce[Qt]);return Le};const Bs=Le=>React.createElement("svg",ia({width:70,height:24,xmlns:"http://www.w3.org/2000/svg"},Le),React.createElement("title",null,"\u5DF2\u8BC4\u9605"),React.createElement("path",{d:"m70 0-6.146 11.936L70 24H0V0h70ZM40.74 5.229h-9.292v1.646h3.768v5.83h-4.258v1.663h4.258v5.796h1.723v-5.796h4.326v-1.663h-4.326v-5.83h3.802V5.23Zm4.157 2.167h-1.723v12.768h1.723V7.396ZM57.35 5.212h-8.009v1.613h6.286v10.953c0 .47-.152.706-.44.706l-.659-.034c.186-.37.321-1.008.406-1.932l-1.487-.47c-.05.706-.135 1.126-.253 1.26a.506.506 0 0 1-.423.218h-.304c-.22 0-.321-.134-.321-.386v-1.966h1.673V10.32h-1.487c.405-.672.794-1.411 1.132-2.234l-1.656-.588a23.536 23.536 0 0 1-1.166 2.822H48.75l1.216-.605c-.405-.739-.81-1.428-1.25-2.032l-1.47.705c.44.571.862 1.21 1.25 1.932h-1.841v4.855h1.537c-.236 1.31-1.183 2.235-2.855 2.806l.912 1.445c2.061-.89 3.21-2.302 3.447-4.25h.912v2.301c0 1.042.457 1.58 1.369 1.58h1.081c.49 0 .879-.102 1.15-.27l.32 1.26h1.014c1.2 0 1.808-.588 1.808-1.764V5.212ZM29.572 9.563h-4.021v1.68h2.315v5.964c0 .353-.152.655-.44.907l.66 1.58a25.152 25.152 0 0 0 3.328-2.672l-.49-1.848c-.473.47-.93.908-1.352 1.294V9.563Zm-7.215-4.217H9.465v1.68h11.101v3.83h-8.634V8.64h-1.757v8.703c0 1.512.71 2.268 2.163 2.268h9.394c.676-.034 1.234-.236 1.64-.605.337-.37.624-1.63.844-3.78l-1.723-.538c-.102 1.714-.254 2.705-.49 2.94-.237.202-.49.303-.76.303h-8.398c-.609 0-.913-.303-.913-.908v-4.485h10.425v-7.19Zm29.857 6.384v2.033h-3.971V11.73h3.97Zm-19.11-4.233L31.6 8a28.8 28.8 0 0 1 1.2 4.099l1.503-.37a35.374 35.374 0 0 0-1.2-4.233Zm5.795-.05c-.355 1.646-.76 3.023-1.233 4.099l1.47.52c.523-1.21.963-2.604 1.3-4.216L38.9 7.446ZM27.95 4.707l-1.25 1.21c1.2.873 2.129 1.696 2.77 2.47l1.217-1.227a23.623 23.623 0 0 0-2.737-2.453Zm18.282-.269-1.605.706A15.91 15.91 0 0 1 46.435 7.9l1.571-.806a14.573 14.573 0 0 0-1.774-2.655Z",fill:"#37AD83",fillRule:"nonzero"}));var Fl="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzAiIGhlaWdodD0iMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTcwIDAtNi4xNDYgMTEuOTM2TDcwIDI0SDBWMGg3MFpNNDAuNzQgNS4yMjloLTkuMjkydjEuNjQ2aDMuNzY4djUuODNoLTQuMjU4djEuNjYzaDQuMjU4djUuNzk2aDEuNzIzdi01Ljc5Nmg0LjMyNnYtMS42NjNoLTQuMzI2di01LjgzaDMuODAyVjUuMjNabTQuMTU3IDIuMTY3aC0xLjcyM3YxMi43NjhoMS43MjNWNy4zOTZaTTU3LjM1IDUu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jguNjRoLTEuNzU3djguNzAzYzAgMS41MTIuNzEgMi4yNjggMi4xNjMgMi4yNjhoOS4zOTRjLjY3Ni0uMDM0IDEuMjM0LS4yMzYgMS42NC0uNjA1LjMzNy0uMzcuNjI0LTEuNjMuODQ0LTMuNzhsLTEuNzIzLS41MzhjLS4xMDIgMS43MTQtLjI1NCAyLjcwNS0uNDkgMi45NC0uMjM3LjIwMi0uNDkuMzAzLS43Ni4zMDNoLTguMzk4Yy0uNjA5IDAtLjkxMy0uMzAzLS45MTMtLjkwOHYtNC40ODVoMTAuNDI1di03LjE5Wm0yOS44NTcgNi4zODR2Mi4wMzNoLTMuOTcxVjExLjczaDMuOTdabS0xOS4xMS00LjIzM0wzMS42IDhhMjguOCAyOC44IDAgMCAxIDEuMiA0LjA5OWwxLjUwMy0uMzdhMzUuMzc0IDM1LjM3NCAwIDAgMC0xLjItNC4yMzNabTUuNzk1LS4wNWMtLjM1NSAxLjY0Ni0uNzYgMy4wMjMtMS4yMzMgNC4wOTlsMS40Ny41MmMuNTIzLTEuMjEuOTYzLTIuNjA0IDEuMy00LjIxNkwzOC45IDcuNDQ2Wk0yNy45NSA0LjcwN2wtMS4yNSAxLjIxYzEuMi44NzMgMi4xMjkgMS42OTYgMi43NyAyLjQ3bDEuMjE3LTEuMjI3YTIzLjYyMyAyMy42MjMgMCAwIDAtMi43MzctMi40NTNabTE4LjI4Mi0uMjY5LTEuNjA1LjcwNkExNS45MSAxNS45MSAwIDAgMSA0Ni40MzUgNy45bDEuNTcxLS44MDZhMTQuNTczIDE0LjU3MyAwIDAgMC0xLjc3NC0yLjY1NVoiIGZpbGw9IiMzN0FEODMiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",Ge=bt(59301),Gs=Object.defineProperty,Ua=Object.defineProperties,qe=Object.getOwnPropertyDescriptors,Ni=Object.getOwnPropertySymbols,Yi=Object.prototype.hasOwnProperty,to=Object.prototype.propertyIsEnumerable,No=(Le,ce,Qt)=>ce in Le?Gs(Le,ce,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Le[ce]=Qt,Bi=(Le,ce)=>{for(var Qt in ce||(ce={}))Yi.call(ce,Qt)&&No(Le,Qt,ce[Qt]);if(Ni)for(var Qt of Ni(ce))to.call(ce,Qt)&&No(Le,Qt,ce[Qt]);return Le},Oo=(Le,ce)=>Ua(Le,qe(ce)),Yo=(Le,ce,Qt)=>new Promise((ti,yi)=>{var Si=ei=>{try{Li(Qt.next(ei))}catch(Mn){yi(Mn)}},Oi=ei=>{try{Li(Qt.throw(ei))}catch(Mn){yi(Mn)}},Li=ei=>ei.done?ti(ei.value):Promise.resolve(ei.value).then(Si,Oi);Li((Qt=Qt.apply(Le,ce)).next())});const ws={0:"\u672A\u63D0\u4EA4",1:"\u6309\u65F6\u63D0\u4EA4",2:"\u5EF6\u65F6\u63D0\u4EA4",3:"\u90E8\u5206\u63D0\u4EA4",4:"\u6309\u65F6\u63D0\u4EA4\uFF08\u6559\u5E08\u63D0\u4EA4\uFF09",5:"\u672A\u63D0\u4EA4\uFF08\u6559\u5E08\u63D0\u4EA4\uFF09",6:"\u6309\u65F6\u63D0\u4EA4\uFF08\u7EBF\u4E0B\uFF09","-1":"\u91CD\u505A\u4E2D"},_r={0:"#4D5865",1:"#FFFFFF",2:"#AC4C0C",3:"#AC4C0C",4:"#FFFFFF",5:"#4D5865",6:"#FFFFFF","-1":"#FFFFFF"},Hs={0:"#D0D8E0",1:"#37AD83",2:"#FFD28D",3:"#FFD28D",4:"#37AD83",5:"#D0D8E0",6:"#37AD83","-1":"#776FE8"},Dr=({shixunHomeworks:Le,globalSetting:ce,loading:Qt,user:ti,classroomList:yi,dispatch:Si})=>{var Oi,Li,ei,Mn,Di,er,Ps,In,ro,Jt,He,ls,Na,Jo,Gr,Zr,Ho,Qr,Zo,Yn,_i,zo,Hi,Ei,Uo,Fr,Bo,Us;const[So]=(0,oe.useSearchParams)(),ri=(0,oe.useParams)(),[$i]=ue.default.useForm(),[ts]=ue.default.useForm(),{userInfo:Eo}=ti,{studentWorkDetail:mn,studentWorkCommon:gi,studentWorkSupplyDetail:Ar,workList:ko,workDetail:Du,actionTabs:si}=Le,[,Wd,mo,Yd]=(0,Ri.U)(kt.wT,{userId:ri==null?void 0:ri.userId}),[,Fu,Tl,uu]=(0,Ri.U)(kt.Wr,{userId:ri==null?void 0:ri.userId}),[,hu,tl]=(0,Ri.U)(kt.G$,{userId:ri==null?void 0:ri.userId,id:ri==null?void 0:ri.userId}),[fl,xo]=(0,vt.useState)("1"),[Bl,qu]=(0,vt.useState)(!1),[Ms,$u]=(0,vt.useState)({last:!1}),[us,ma]=(0,vt.useState)({last:!1}),pl=(0,vt.useRef)(),[Wa,eo]=(0,vt.useState)(!1),[Tr,Ya]=(0,vt.useState)("");let[Il,Kl]=(0,vt.useState)([]);const[Tu,du]=(0,vt.useState)(!1),cf=(0,vt.useRef)(),[gf,Vd]=(0,vt.useState)(!1),[id,Br]=(0,vt.useState)(""),[Bu,Ro]=(0,vt.useState)(!1),[hs,Cs]=(0,vt.useState)(!1),[mr,Mh]=(0,vt.useState)(""),[ds,th]=(0,vt.useState)(!0),[ff,pf]=Be.default.useModal(),[ka,Cc]=(0,vt.useState)(!1),[or,eh]=(0,vt.useState)(!1),[od,cu]=(0,vt.useState)(!1),[Xl,rd]=(0,vt.useState)(!1),[Kr,ms]=(0,vt.useState)(!1),[gu,Da]=(0,vt.useState)(!1),[ml,Fa]=(0,vt.useState)(!0),[es,vl]=(0,vt.useState)(!1),[oa,Ls]=(0,vt.useState)({content:"",type:""}),[va,rr]=(0,vt.useState)({status:0}),yl=[{title:"\u63D0\u4EA4\u6B21\u6570",dataIndex:"id",ellipsis:!0,width:80,render:(Gn,Ii,vs)=>vs+1},{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"commit_time",ellipsis:!0,render:Gn=>yt()(Gn).format("YYYY-MM-DD HH:mm")},{title:"\u63D0\u4EA4\u9636\u6BB5",dataIndex:"stage_name",ellipsis:!0,width:180,render:(Gn,Ii)=>Ge.createElement(Ge.Fragment,null,Gn,Ii!=null&&Ii.is_redo?Ge.createElement("span",{style:{color:"#FF9D18"}},"\uFF08\u6253\u56DE\u91CD\u505A\uFF09"):(Ii==null?void 0:Ii.is_redo_commit)&&Ge.createElement("span",{style:{color:"#2FA34F"}},"\uFF08\u91CD\u505A\u63D0\u4EA4\uFF09"))},{title:"\u6559\u5E08\u8BC4\u5206",dataIndex:"teacher_score",ellipsis:!0},{title:"\u52A9\u6559\u8BC4\u5206",dataIndex:"teaching_asistant_score",ellipsis:!0},{title:"\u533F\u8BC4\u5F97\u5206",dataIndex:"student_score",ellipsis:!0},{title:"\u64CD\u4F5C",dataIndex:"history_id",ellipsis:!0,width:80,align:"right",render:(Gn,Ii)=>Ge.createElement("a",{target:"_blank",href:`/classrooms/${ri==null?void 0:ri.coursesId}/common_homework/${ri==null?void 0:ri.categoryId}/review/${Ii==null?void 0:Ii.student_work_id}?history_id=${Ii==null?void 0:Ii.history_id}`},"\u67E5\u770B")}],br=(Gn={key:""})=>{Si({type:"shixunHomeworks/setActionTabs",payload:Gn}),Gn.key===""&&($i.resetFields(),ts.resetFields())},ya=()=>{Si({type:"shixunHomeworks/getStudentWorkCommon",payload:Bi({is_invalid:!1,history_id:So.get("history_id")},ri)})},nh=Gn=>{let Ii=0;for(let vs=0;vsYo(void 0,null,function*(){var Ii;mn!=null&&mn.single_score||(Gn.score=nh(Gn.score_details)),Gn.attachment_ids=(Ii=Gn.attachment_ids)==null?void 0:Ii.map(ys=>{var el;return(el=ys==null?void 0:ys.response)==null?void 0:el.id}),du(!0),(yield(0,kt.yy)(Oo(Bi({},Gn),{userId:ri.userId,is_hidden_comment:es}))).status===0&&($i.resetFields(),vl(!1),mn!=null&&mn.next_work_id?(me.ZP.success("\u8BC4\u9605\u6210\u529F\uFF01\u5DF2\u4E3A\u60A8\u81EA\u52A8\u5207\u6362\u81F3\u4E0B\u4E00\u4E2A\u5F85\u8BC4\u9605\u7684\u5B66\u751F",2),fu("read")):(me.ZP.success("\u8BC4\u9605\u6210\u529F\uFF01",2),ya(),pu())),eo(!0),du(!1)}),fu=Gn=>Yo(void 0,null,function*(){const{comment:Ii,score:vs,score_details:ys,attachment_ids:el}=$i.getFieldsValue();let Ah=!1;if(mn!=null&&mn.single_score?Ah=!(0,Dn.isNil)((vs==null?void 0:vs.length)==0?null:vs):ys==null||ys.some(Sl=>{if(!(0,Dn.isNil)(Sl!=null&&Sl.score?Sl==null?void 0:Sl.score:null))return Ah=!0,!0}),Ii||Ah||el){Be.default.confirm({centered:!0,okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:Ge.createElement("div",{className:"tc"},"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539"),onOk:()=>{$i.resetFields(),Gn==="last"?oe.history.push(So.get("ids")?`/classrooms/${ri==null?void 0:ri.coursesId}/common_homework/${ri==null?void 0:ri.categoryId}/review/${us==null?void 0:us.student_work_id}?ids=${So.get("ids")}&page=${So.get("page")}`:`/classrooms/${ri==null?void 0:ri.coursesId}/common_homework/${ri==null?void 0:ri.categoryId}/review/${us==null?void 0:us.student_work_id}&page=${So.get("page")}`):Gn==="read"?oe.history.push(So.get("ids")?`/classrooms/${ri==null?void 0:ri.coursesId}/common_homework/${ri==null?void 0:ri.categoryId}/review/${Ms==null?void 0:Ms.student_work_id}?ids=${So.get("ids")}&page=${So.get("page")}`:`/classrooms/${ri==null?void 0:ri.coursesId}/common_homework/${ri==null?void 0:ri.categoryId}/review/${Ms==null?void 0:Ms.student_work_id}&page=${So.get("page")}`):oe.history.push(`/classrooms/${ri.coursesId}/common_homework/${ri.categoryId}/detail?page=${So.get("page")}`)}});return}Gn==="last"?oe.history.push(So.get("ids")?`/classrooms/${ri==null?void 0:ri.coursesId}/common_homework/${ri==null?void 0:ri.categoryId}/review/${us==null?void 0:us.student_work_id}?ids=${So.get("ids")}&page=${So.get("page")}`:`/classrooms/${ri==null?void 0:ri.coursesId}/common_homework/${ri==null?void 0:ri.categoryId}/review/${us==null?void 0:us.student_work_id}&page=${So.get("page")}`):Gn==="read"?oe.history.push(So.get("ids")?`/classrooms/${ri==null?void 0:ri.coursesId}/common_homework/${ri==null?void 0:ri.categoryId}/review/${Ms==null?void 0:Ms.student_work_id}?ids=${So.get("ids")}&page=${So.get("page")}`:`/classrooms/${ri==null?void 0:ri.coursesId}/common_homework/${ri==null?void 0:ri.categoryId}/review/${Ms==null?void 0:Ms.student_work_id}&page=${So.get("page")}`):oe.history.push(`/classrooms/${ri.coursesId}/common_homework/${ri.categoryId}/detail?page=${So.get("page")}`)}),Ch=Gn=>Yo(void 0,null,function*(){Ro(!0),(yield(0,et.ZP)(`/api/homework_commons/${ri.categoryId}/student_works/export_normal_word_all.json`,{method:"post",body:{with_edit:Gn,with_submit_record:ds}})).status===0&&(Vd(!1),oe.history.push(`/classrooms/${ri==null?void 0:ri.coursesId}/exportlist/normal_work_list`)),Ro(!1)}),so=Gn=>{Ro(!0),(0,Zn.Nd)("",`${Lt.Z.API_SERVER}/api/student_works/${ri.userId}/export_normal_word_single.json?with_edit=${Gn}&with_submit_record=${ds}`),Ro(!1),Vd(!1)},Lh=Gn=>{Cs(Gn),Br("\u9644\u4EF6"),Vd(!0)};(0,vt.useEffect)(()=>{mn!=null&&mn.homework_id&&(mn!=null&&mn.prev_work_id?ma({student_work_id:mn==null?void 0:mn.prev_work_id}):ma({last:!0}),mn!=null&&mn.next_work_id?$u({student_work_id:mn==null?void 0:mn.next_work_id}):$u({last:!0}))},[mn]),(0,vt.useEffect)(()=>{const Gn=JSON.parse(localStorage.getItem("all_student_works_param")||"{}");Si({type:"shixunHomeworks/getStudentWorkDetail",payload:Oo(Bi(Bi({},ri),Gn),{history_id:So.get("history_id")||mr})}),Si({type:"shixunHomeworks/getStudentWorkSupplyDetail",payload:Bi({},ri)}),ya(),fl=="3"&&Tl({userId:ri==null?void 0:ri.userId}),pl.current.onclick=Ii=>{Ii.target.nodeName==="IMG"&&Ii.target.alt!==""&&ct.Z.publish("preview-image",Ii.target.src)}},[ri.categoryId,ri.userId]),(0,vt.useEffect)(()=>{mn!=null&&mn.score_details&&Kl(mn==null?void 0:mn.score_details.map(Gn=>Oo(Bi({},Gn),{score:""})))},[mn]),(0,vt.useEffect)(()=>{Il.every(Gn=>Gn.score==="")?eo(!0):eo(!1)},[Il]);const pu=()=>{const Gn=JSON.parse(localStorage.getItem("all_student_works_param")||"{}");Si({type:"shixunHomeworks/getStudentWorkDetail",payload:Oo(Bi(Bi({},ri),Gn),{history_id:So.get("history_id")||mr})}),Si({type:"shixunHomeworks/getStudentWorkSupplyDetail",payload:Bi({},ri)}),Si({type:"shixunHomeworks/getWorkDetail",payload:{categoryId:ri.categoryId}})};(0,vt.useEffect)(()=>{Mh(So.get("history_id")||"")},[So.get("history_id")]),(0,vt.useEffect)(()=>(Si({type:"classroomList/getAssistantPermissions",payload:{course_id:ri.coursesId}}),Si({type:"shixunHomeworks/getWorkDetail",payload:{categoryId:ri.categoryId}}),Si({type:"globalSetting/footerToggle",payload:!1}),()=>{Si({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,vt.useEffect)(()=>{(0,On.Rm)()&&Si({type:"classroomList/getAssistantPermissions",payload:{course_id:ri.coursesId}})},[(Oi=ti==null?void 0:ti.userInfo)==null?void 0:Oi.username]);const mu=()=>{var Gn,Ii,vs;return mr?!1:(0,On.G5)()||(0,On.Rm)()&&((Ii=(Gn=yi==null?void 0:yi.AssistantObject)==null?void 0:Gn.practice)!=null&&Ii.can_appraise)?!0:!!((0,On.dE)()&&((vs=mn==null?void 0:mn.homework_status)!=null&&vs.includes("\u533F\u8BC4\u4E2D"))&&!gi.is_author)},Es=(0,On.dE)()&&((Li=mn==null?void 0:mn.homework_status)==null?void 0:Li.includes("\u533F\u8BC4\u4E2D"))&&!gi.is_author,[_d,Eh]=(0,vt.useState)(!1),[mf,ih]=(0,vt.useState)(!1),[Zd,oh]=(0,vt.useState)(!1),ad=Gn=>{const Ii=Gn.currentTarget;Ii.scrollHeight>Ii.clientHeight&&Eh(!0)},ld=Gn=>{const Ii=Gn.currentTarget;Ii.scrollHeight>Ii.clientHeight&&ih(!0)},Lc=Gn=>{const Ii=Gn.currentTarget;Ii.scrollHeight>Ii.clientHeight&&oh(!0)};return(0,vt.useEffect)(()=>{var Gn;!(mn!=null&&mn.single_score)&&$i.setFieldValue("score_details",(Gn=mn==null?void 0:mn.score_details)==null?void 0:Gn.map(Ii=>Bi({},Ii)))},[mn]),Ge.createElement("section",{className:"edu-container",ref:pl,style:{width:mu()?"100%":"1200px",overflow:"hidden",overflowX:"auto"}},Ge.createElement("div",{style:(0,On.bg)()&&mu()?{minWidth:"1200px"}:{}},Ge.createElement("section",{className:"animated fadeIn"},Ge.createElement("div",{style:{height:"52px",background:"#FFFFFF",marginBottom:"10px",padding:"0 20px",display:"flex",alignItems:"center"}},Ge.createElement("div",{style:{cursor:"pointer",display:"flex",alignItems:"center"},onClick:()=>{fu("list")}},Ge.createElement("img",{src:pa}),Ge.createElement("div",{style:{fontWeight:400,color:"#666666",marginLeft:"5px",fontSize:"16px"}},"\u8FD4\u56DE")),Ge.createElement("div",{className:Ie.top_content},!Es&&(mn==null?void 0:mn.image_url)&&Ge.createElement("img",{src:`${Lt.Z.IMG_SERVER}/images/${mn==null?void 0:mn.image_url}`,className:Ie.top_content_img}),Ge.createElement("div",{className:Ie.item_content},Ge.createElement("div",{className:Ie.item_name,style:{height:Es?"40px":"20px",lineHeight:Es?"40px":"20px"}},mn==null?void 0:mn.author_name,!Es&&Ge.createElement("span",{className:Ie.item_tags,style:{color:_r[mn==null?void 0:mn.work_status],background:Hs[mn==null?void 0:mn.work_status]}},ws[mn==null?void 0:mn.work_status])),!Es&&((mn==null?void 0:mn.student_id)||(mn==null?void 0:mn.group_name))&&Ge.createElement("div",{className:Ie.item_code},Ge.createElement("span",null,"\u5B66\u53F7\uFF1A",mn==null?void 0:mn.student_id),Ge.createElement("span",{style:{marginLeft:"20px"}},"\u73ED\u7EA7\uFF1A",mn==null?void 0:mn.group_name)))),Ge.createElement("div",{style:{marginLeft:"auto",display:"flex",alignItems:"center"}},((mn==null?void 0:mn.score_given_user)||(mn==null?void 0:mn.score_given_user)==0)&&!mr&&Ge.createElement("div",{className:"mr10 font24",style:{fontWeight:600,color:"#009C0F"}},mn==null?void 0:mn.score_given_user,Ge.createElement("span",{style:{fontSize:"14px"}},"\u5206")),mr&&Ge.createElement("span",{style:{padding:"3px",marginRight:30,background:"rgba(219,243,224,0.88)",color:"#1FBE3C",fontSize:"12px"}},"\u7B2C",mn==null?void 0:mn.commit_count,"\u6B21\u63D0\u4EA4\u7684\u4F5C\u4E1A"),mr&&Ge.createElement("div",{className:Ie.buttonStyle,style:{border:"1px solid rgba(48,97,208,0.5)",color:"#3061D0",display:"flex",alignItems:"center",padding:"0 10px",marginRight:10,height:32,cursor:"pointer"},onClick:()=>{br({key:"\u4F5C\u4E1A\u63CF\u8FF0"})}},Ge.createElement("i",{className:"iconfont icon-fenzuzuoye3 font18",style:{color:"#009CDC"}}),Ge.createElement("span",{style:{marginLeft:5}},"\u4F5C\u4E1A\u63CF\u8FF0")),!mr&&Ge.createElement("div",null,!((0,On.dE)()&&gi.is_author)&&(mn!=null&&mn.rated_already?Ge.createElement("img",{src:Fl,style:{margin:"0 20px 0 0"}}):Ge.createElement("img",{src:Ql,style:{marginRight:"20px"}}))),(0,On.dE)()&&gi.is_author?Ge.createElement(Ge.Fragment,null):(mn==null?void 0:mn.have_history_comment)&&Ge.createElement(Ee.ZP,{className:Ie.buttonStyle,style:{border:"1px solid rgba(48,97,208,0.5)",color:"#3061D0",display:"flex",alignItems:"center",padding:"0 10px"},icon:Ge.createElement("i",{className:"iconfont icon-chakanshenqingjilu"}),onClick:()=>{br({key:"\u5386\u53F2\u8BC4\u9605\u8BB0\u5F55"})}},"\u5386\u53F2\u8BC4\u9605\u8BB0\u5F55"),!mr&&(0,On.G5)()&&Ge.createElement(qt.Z,{menu:{items:[{label:Ge.createElement("div",{onClick:()=>{Lh(!1)}},"\u5BFC\u51FA\u7B54\u9898\u8BB0\u5F55\u4E0E\u9644\u4EF6"),key:"1"},{label:Ge.createElement("div",{onClick:()=>{Lh(!0)}},"\u5BFC\u51FA\u5168\u90E8\u5B66\u751F\u7B54\u9898\u8BB0\u5F55\u4E0E\u9644\u4EF6"),key:"2"}]}},Ge.createElement("div",{className:`${Ie.daochu} ${Ie.buttonStyle}`},"\u5BFC\u51FA",Ge.createElement("i",{className:"iconfont icon-a-xialazhankai",style:{fontSize:"6px",marginLeft:"6px"}})))))),Ge.createElement("div",{style:{display:"flex"}},ml&&mu()&&Ge.createElement("div",{className:Ie.left_content},Ge.createElement("div",{className:Ie.left_title},Ge.createElement("i",{className:"iconfont icon-fenzuzuoye3 font18",style:{color:"#009CDC"}}),Ge.createElement("span",{className:"ml10"},"\u4F5C\u4E1A\u63CF\u8FF0"),Ge.createElement("span",{className:Ie.see_work,onClick:()=>{br({key:"\u4F5C\u4E1A\u63CF\u8FF0"})}},"\u67E5\u770B")),Ge.createElement("div",{className:Ie.left_list},Ge.createElement("div",{className:Ie.list_title},Ge.createElement("div",{style:{width:"5px",height:"10px",background:"#3061D0"}}),Ge.createElement("span",{style:{color:"#171717",fontWeight:600,marginLeft:"10px"}},"\u8BC4\u9605\u4EFB\u52A1"),Ge.createElement("span",{style:{marginLeft:"auto",color:"#333333"}},"\u5DF2\u8BC4"),Ge.createElement("span",{style:{color:"#009C0F",margin:"0 20px 0 8px",fontWeight:600}},mn==null?void 0:mn.commented_size),Ge.createElement("span",{style:{color:"#333333",marginRight:"8px"}},"\u672A\u8BC4"),Ge.createElement("span",{style:{color:"#FA6400",fontWeight:600}},mn==null?void 0:mn.no_commented_size)),Ge.createElement("div",{className:`${Ie.list_box} ${_d?"":Ie.hiddenBar}`,onMouseEnter:ad,onMouseLeave:()=>Eh(!1)},(ei=mn==null?void 0:mn.all_student_works)==null?void 0:ei.map(Gn=>{var Ii;return Ge.createElement("div",{className:Ie.list_item,style:{background:(Ii=ri==null?void 0:ri.userId)!=null&&Ii.includes(Gn==null?void 0:Gn.student_work_id)?"#F1F4F9":""},onClick:()=>{oe.history.push(Gn==null?void 0:Gn.url)}},Ge.createElement("img",{src:`${Lt.Z.IMG_SERVER}/images/${Gn==null?void 0:Gn.image_url}`,className:Ie.item_img,style:{filter:Es&&"blur(10px)",border:Es&&"none"}}),Ge.createElement("div",{className:Ie.item_content},Ge.createElement("div",{className:Ie.item_name,style:{height:Es?"40px":"20px",lineHeight:Es?"40px":"20px"}},Gn==null?void 0:Gn.username),!Es&&Ge.createElement("div",{className:Ie.item_code},"\u5B66\u53F7\uFF1A",Gn==null?void 0:Gn.student_id)),Ge.createElement("div",{className:Ie.item_states,style:{color:(Gn==null?void 0:Gn.score)=="\u5F85\u8BC4"?"#FA6400":"#009C0F"}},Gn==null?void 0:Gn.score,(Gn==null?void 0:Gn.score)!="\u5F85\u8BC4"&&"\u5206"))})))),mu()&&Ge.createElement("div",{className:ml?Ie.foldClose:Ie.foldOpen,onClick:()=>Fa(!ml)},ml&&Ge.createElement(Ce.Z,{placement:"right",title:"\u6536\u8D77"},Ge.createElement("span",{className:"icon-zuojiantou iconfont c-grey-c"})),!ml&&Ge.createElement(Ce.Z,{placement:"right",title:"\u5C55\u5F00"},Ge.createElement("span",{className:"icon-youjiantou iconfont",style:{color:"#3061D0"}}))),Ge.createElement("div",{style:{flex:1,margin:mu()?"0 20px 0 5px":"auto",minWidth:"600px"}},Ge.createElement(Se.default,{className:Ie.TabsStyle,destroyInactiveTabPane:!0,defaultActiveKey:"1",activeKey:fl,tabBarExtraContent:Ge.createElement(Ge.Fragment,null,!mr&&(mn==null?void 0:mn.commit_count)>1&&Ge.createElement(Ee.ZP,{style:{border:"none",color:"#3061D0",display:"flex",alignItems:"center",padding:0},icon:Ge.createElement("i",{className:"iconfont icon-chakanshenqingjilu"}),loading:Wd,onClick:()=>Yo(void 0,null,function*(){yield mo({},!0),br({key:"\u4F5C\u4E1A\u63D0\u4EA4\u8BB0\u5F55"})})},"\u4F5C\u4E1A\u63D0\u4EA4\u8BB0\u5F55")),onChange:Gn=>{xo(Gn),Gn=="2"&&oe.history.push(`/classrooms/${ri.coursesId}/common_homework/${ri.categoryId}/lab-report-view/${ri.userId}`),Gn=="3"&&Tl({})}},Ge.createElement(Se.default.TabPane,{tab:Ge.createElement("span",{style:{position:"relative"}},"\u5B66\u751F\u4F5C\u4E1A",Ge.createElement(Ce.Z,{title:Ge.createElement("span",{className:"font14"},"\uFF08\u5F53\u524D\u652F\u6301\u6279\u6CE8\u7684\u6587\u6863\u7C7B\u578B\uFF1A.docx\u3001.xlsx\u3001.pptx\uFF09")},Ge.createElement("i",{className:"iconfont icon-tishixiaowenhao ml10 font14 c-grey-999 current",style:{lineHeight:"18px"}}))),key:"1"}),!mr&&(0,On.j5)()&&Ge.createElement(Se.default.TabPane,{tab:"\u5B9E\u9A8C\u62A5\u544A",key:"2"}),(mn==null?void 0:mn.anonymous_comment)&&!mr&&Ge.createElement(Se.default.TabPane,{tab:"\u95EE\u9898\u53CD\u9988",key:"3"})),Ge.createElement("div",{className:`${mf?"":Ie.hiddenBar}`,onMouseEnter:ld,onMouseLeave:()=>ih(!1),style:{overflowY:"auto",height:"calc(100vh - 180px)"}},Ge.createElement(ve.Z,{spinning:Fu||!!Qt["shixunHomeworks/getStudentWorkDetail"]||!!Qt["shixunHomeworks/getStudentWorkSupplyDetail"]},Ge.createElement("div",{key:"1",style:{display:fl==="1"?"block":"none"}},Ge.createElement("div",{style:{background:"#F5F6F8",padding:"20px"}},Ge.createElement("div",{className:Ie.center_top},Ge.createElement("div",{className:Ie.center_top_title},Ge.createElement("img",{src:oo}),Ge.createElement("span",{className:"ml5",style:{color:"#3061D0",fontWeight:600}},"\u4F5C\u4E1A\u63D0\u4EA4\u5185\u5BB9"),(mn==null?void 0:mn.update_time)&&Ge.createElement(Ge.Fragment,null,Ge.createElement("span",{style:{marginLeft:"auto",cursor:"pointer",color:"#333333"}},yt()(mn==null?void 0:mn.update_time).format("YYYY-MM-DD HH:mm")),Ge.createElement("span",{className:"ml10",style:{color:"#333333"}},"\u66F4\u65B0"))),Ge.createElement("div",{className:Ie.center_top_content},Ge.createElement(rn.Z,{value:(mn==null?void 0:mn.description)||"\u6682\u65E0\uFF5E"}),Ge.createElement(un.Z,{authority:(0,On.GJ)(),dataSource:mn==null?void 0:mn.attachments,callback:()=>{Si({type:"shixunHomeworks/getStudentWorkDetail",payload:Bi({},ri)})}})))),((mn==null?void 0:mn.work_score)||(mn==null?void 0:mn.work_score)==0)&&!mr&&Ge.createElement(bo,{dataInfo:mn,handleCloseOrOpenModal:Gn=>{br(Gn)}})),Ge.createElement("div",{key:"3",style:{display:fl==="3"?"block":"none"}},Ge.createElement("div",{style:{background:"#fff",display:"flex",flexDirection:"column",padding:"10px 30px 30px 30px"}},((Mn=uu==null?void 0:uu.data)==null?void 0:Mn.count)>0?Ge.createElement(Ge.Fragment,null,(er=(Di=uu==null?void 0:uu.data)==null?void 0:Di.list)==null?void 0:er.map((Gn,Ii)=>Ge.createElement(Zl,{key:Ii,type:"feedback",Data:Oo(Bi({},Gn),{time:Gn==null?void 0:Gn.created_at,user_info:{user_image_url:Gn.avatar_url,user_id:Gn.user_id,user_name:Gn.real_name}}),getInitData:ya,updateData:pu,shixunHomeworks:Le}))):Ge.createElement(nn.Z,null)))),(Ps=gi==null?void 0:gi.teacher_list)!=null&&Ps.length?Ge.createElement("div",{className:Ie.pingyue},Ge.createElement("div",{className:Ie.pingyue_title},Ge.createElement("img",{src:xh,style:{marginRight:"5px"}}),Ge.createElement("div",{style:{color:"#333333",fontWeight:600}},"\u6559\u5E08\u8BC4\u9605"),((mn==null?void 0:mn.teacher_score)||(mn==null?void 0:mn.teacher_score)==0)&&Ge.createElement("div",{className:Ie.pingyue_score},Ge.createElement("div",{style:{height:"30px",lineHeight:"35px",fontSize:"24px",color:"#009C0F",fontWeight:600,marginLeft:"12px"}},mn==null?void 0:mn.teacher_score,Ge.createElement("span",{style:{fontSize:"14px"}},"\u5206")),Ge.createElement("div",{style:{fontSize:"12px",color:"#666666",marginLeft:"12px"}},"\u6700\u7EC8\u5F97\u5206\uFF08",(mn==null?void 0:mn.teacher_mode)==1?"\u5E73\u5747\u8BC4\u5206":"\u6700\u7EC8\u8BC4\u5206","\uFF09"))),Ge.createElement("div",{style:{padding:"20px"}},Ge.createElement("div",{style:{display:"flex",flexDirection:"column",gap:"20px"}},(In=gi==null?void 0:gi.teacher_list)!=null&&In.length?(ro=od?gi==null?void 0:gi.teacher_list:gi==null?void 0:gi.teacher_list.slice(0,3))==null?void 0:ro.map((Gn,Ii)=>Ge.createElement(Zl,{key:Ii,index:Ii,type:va.status==1&&"teacher",Data:Oo(Bi({},Gn),{user_info:{user_image_url:Gn.user_image_url,user_login:Gn.user_login,user_name:Gn.user_name}}),getInitData:ya,updateData:pu,shixunHomeworks:Le})):Ge.createElement(nn.Z,{styles:{margin:"50px auto"}}),((Jt=gi==null?void 0:gi.teacher_list)==null?void 0:Jt.length)>3&&!od&&Ge.createElement("div",{style:{color:"#3061D0",textAlign:"center",cursor:"pointer"},onClick:()=>{cu(!0)}},"\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u67E5\u770B\u5168\u90E8\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026"),((He=gi==null?void 0:gi.teacher_list)==null?void 0:He.length)>3&&od&&Ge.createElement("div",{style:{color:"#3061D0",textAlign:"center",cursor:"pointer"},onClick:()=>{cu(!1)}},"\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u5DF2\u5C55\u793A\u5168\u90E8\u4F5C\u4E1A\u8BC4\u8BED\uFF0C\u70B9\u51FB\u53EF\u6536\u8D77\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026")),((ls=gi==null?void 0:gi.hidden_comment_scores)==null?void 0:ls.length)>0&&Ge.createElement("div",{className:Ie.pingyue_teacher_title},Ge.createElement("img",{src:gl,style:{marginRight:"5px"}}),Ge.createElement("div",{style:{color:"#CA7720",fontWeight:600}},"\u4EC5\u6559\u5E08\u53EF\u89C1\u8BC4\u8BED")),((Na=gi==null?void 0:gi.hidden_comment_scores)==null?void 0:Na.length)>0&&Ge.createElement("div",{style:{display:"flex",flexDirection:"column"}},(Jo=gi==null?void 0:gi.hidden_comment_scores)!=null&&Jo.length?(Gr=Xl?gi==null?void 0:gi.hidden_comment_scores:gi==null?void 0:gi.hidden_comment_scores.slice(0,3))==null?void 0:Gr.map((Gn,Ii)=>Ge.createElement(Zl,{newType:"teacher",key:Ii,index:Ii,type:va.status==1&&"teacher",Data:Oo(Bi({},Gn),{user_info:{user_image_url:Gn.user_image_url,user_login:Gn.user_login,user_name:Gn.user_name}}),getInitData:ya,updateData:pu,shixunHomeworks:Le})):Ge.createElement(nn.Z,{styles:{margin:"50px auto"}}),((Zr=gi==null?void 0:gi.hidden_comment_scores)==null?void 0:Zr.length)>3&&!Xl&&Ge.createElement("div",{style:{color:"#3061D0",textAlign:"center",cursor:"pointer"},onClick:()=>{rd(!0)}},"\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u67E5\u770B\u5168\u90E8\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026"),((Ho=gi==null?void 0:gi.hidden_comment_scores)==null?void 0:Ho.length)>3&&Xl&&Ge.createElement("div",{style:{color:"#3061D0",textAlign:"center",cursor:"pointer"},onClick:()=>{rd(!1)}},"\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u5DF2\u5C55\u793A\u5168\u90E8\u4F5C\u4E1A\u8BC4\u8BED\uFF0C\u70B9\u51FB\u53EF\u6536\u8D77\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026")))):null,(Qr=gi==null?void 0:gi.teaching_assistant_list)!=null&&Qr.length?Ge.createElement("div",{className:Ie.pingyue,style:{marginTop:"20px"}},Ge.createElement("div",{className:Ie.pingyue_title},Ge.createElement("img",{src:xh,style:{marginRight:"5px"}}),Ge.createElement("div",{style:{color:"#333333",fontWeight:600}},"\u52A9\u6559\u8BC4\u9605"),((mn==null?void 0:mn.teaching_asistant_score)||(mn==null?void 0:mn.teaching_asistant_score)==0)&&Ge.createElement("div",{className:Ie.pingyue_score},Ge.createElement("div",{style:{height:"30px",lineHeight:"35px",fontSize:"24px",color:"#009C0F",fontWeight:600,marginLeft:"12px"}},mn==null?void 0:mn.teaching_asistant_score,Ge.createElement("span",{style:{fontSize:"14px"}},"\u5206")),Ge.createElement("div",{style:{fontSize:"12px",color:"#666666",marginLeft:"12px"}},"\u6700\u7EC8\u5F97\u5206\uFF08",(mn==null?void 0:mn.ta_mode)==1?"\u5E73\u5747\u8BC4\u5206":"\u6700\u7EC8\u8BC4\u5206","\uFF09"))),Ge.createElement("div",{style:{display:"flex",flexDirection:"column",gap:"20px",padding:"20px"}},(Zo=gi==null?void 0:gi.teaching_assistant_list)!=null&&Zo.length?(Yn=Kr?gi==null?void 0:gi.teaching_assistant_list:gi==null?void 0:gi.teaching_assistant_list.slice(0,3))==null?void 0:Yn.map((Gn,Ii)=>Ge.createElement(Zl,{key:Ii,index:Ii,type:va.status==1&&"teacher",Data:Oo(Bi({},Gn),{user_info:{user_image_url:Gn.user_image_url,user_login:Gn.user_login,user_name:Gn.user_name}}),getInitData:ya,updateData:pu,shixunHomeworks:Le})):Ge.createElement(nn.Z,{styles:{margin:"50px auto"}}),((_i=gi==null?void 0:gi.teaching_assistant_list)==null?void 0:_i.length)>3&&!Kr&&Ge.createElement("div",{style:{color:"#3061D0",textAlign:"center",cursor:"pointer"},onClick:()=>{ms(!0)}},"\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u67E5\u770B\u5168\u90E8\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026"),((zo=gi==null?void 0:gi.teaching_assistant_list)==null?void 0:zo.length)>3&&Kr&&Ge.createElement("div",{style:{color:"#3061D0",textAlign:"center",cursor:"pointer"},onClick:()=>{ms(!1)}},"\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u5DF2\u5C55\u793A\u5168\u90E8\u4F5C\u4E1A\u8BC4\u8BED\uFF0C\u70B9\u51FB\u53EF\u6536\u8D77\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026"))):null,(Hi=gi==null?void 0:gi.student_list)!=null&&Hi.length?Ge.createElement("div",{className:Ie.pingyue,style:{marginTop:"20px"}},Ge.createElement("div",{className:Ie.pingyue_title},Ge.createElement("img",{src:xh,style:{marginRight:"5px"}}),Ge.createElement("div",{style:{color:"#333333",fontWeight:600}},"\u533F\u8BC4\u8BC4\u9605"),((mn==null?void 0:mn.student_score)||(mn==null?void 0:mn.student_score)==0)&&Ge.createElement("div",{className:Ie.pingyue_score},Ge.createElement("div",{style:{height:"30px",lineHeight:"35px",fontSize:"24px",color:"#009C0F",fontWeight:600,marginLeft:"12px"}},mn==null?void 0:mn.student_score,Ge.createElement("span",{style:{fontSize:"14px"}},"\u5206")),Ge.createElement("div",{style:{fontSize:"12px",color:"#666666",marginLeft:"12px"}},"\u6700\u7EC8\u5F97\u5206\uFF08\u5E73\u5747\u8BC4\u5206\uFF09"))),Ge.createElement("div",{style:{display:"flex",flexDirection:"column",gap:"20px",padding:"20px"}},(Ei=gi==null?void 0:gi.student_list)!=null&&Ei.length?(Uo=gu?gi==null?void 0:gi.student_list:gi==null?void 0:gi.student_list.slice(0,3))==null?void 0:Uo.map((Gn,Ii)=>Ge.createElement(Zl,{showNm:!0,showName:!(0,On.dE)(),key:Ii,index:Ii,type:va.status==1&&"teacher",Data:Oo(Bi({},Gn),{user_info:{user_image_url:Gn.user_image_url,user_login:Gn.user_login,user_name:Gn.user_name}}),getInitData:ya,updateData:pu,shixunHomeworks:Le})):Ge.createElement(nn.Z,{styles:{margin:"50px auto"}}),((Fr=gi==null?void 0:gi.student_list)==null?void 0:Fr.length)>3&&!gu&&Ge.createElement("div",{style:{color:"#3061D0",textAlign:"center",cursor:"pointer"},onClick:()=>{Da(!0)}},"\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u67E5\u770B\u5168\u90E8\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026"),((Bo=gi==null?void 0:gi.student_list)==null?void 0:Bo.length)>3&&gu&&Ge.createElement("div",{style:{color:"#3061D0",textAlign:"center",cursor:"pointer"},onClick:()=>{Da(!1)}},"\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u5DF2\u5C55\u793A\u5168\u90E8\u4F5C\u4E1A\u8BC4\u8BED\uFF0C\u70B9\u51FB\u53EF\u6536\u8D77\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026"))):null)),mu()&&Ge.createElement("div",{style:{padding:"15px",height:"calc(100vh - 143px)",overflowY:"auto",background:"#ffffff"},className:`${Ie.right_content} ${Zd?"":Ie.hiddenBar}`,onMouseEnter:Lc,onMouseLeave:()=>oh(!1)},Ge.createElement(ue.default,{form:$i,layout:"vertical",size:"large",className:Ie.right_form,style:{position:"relative"},scrollToFirstError:!0,onFinish:Gn=>{sd(Gn)}},Ge.createElement("div",{className:"blod font16 mb10",style:{color:"#191919"}},"\u8BC4\u9605"),Ge.createElement(be,{FormProps:{form:$i},isShowStyles:!1}),Ge.createElement(ue.default.Item,{name:"attachment_ids",className:"mb20",style:{marginTop:"-12px"}},Ge.createElement(vn.Z,null)),(0,On.GJ)()&&Ge.createElement("div",null,Ge.createElement(ue.default.Item,{name:"hidden_comment",style:{background:"#F6F7F9",height:"50px",display:"flex",alignItems:"center",padding:"0 20px"}},Ge.createElement(se.default,{onChange:Gn=>{var Ii;vl((Ii=Gn==null?void 0:Gn.target)==null?void 0:Ii.checked)}},"\u8BC4\u8BED\u4EC5\u8BFE\u5802\u6559\u5E08\u53EF\u89C1")))),Ge.createElement("div",null,Ge.createElement(Ee.ZP,{loading:Tu,style:{width:"100%",height:"40px",background:"#3061D0",borderRadius:"7px"},type:"primary",onClick:()=>{$i.submit()}}," \u63D0\u4EA4\u8BC4\u9605 ")),Ge.createElement("div",{style:{display:"flex",marginTop:"20px",justifyContent:"space-between"}},(mn==null?void 0:mn.is_new_rule)&&(0,On.G5)()&&mn.work_status!==-1&&mn.work_status!==0&&Ge.createElement(Ee.ZP,{className:Ie.btnAdd,onClick:()=>{br({key:"\u786E\u8BA4\u6253\u56DE\u91CD\u505A"})}}," \u6253\u56DE\u91CD\u505A "),!(mn!=null&&mn.is_new_rule)&&(0,On.G5)()&&["\u63D0\u4EA4\u4E2D","\u8865\u4EA4\u4E2D","\u8FDB\u884C\u4E2D"].some(Gn=>{var Ii;return(Ii=mn==null?void 0:mn.homework_status)==null?void 0:Ii.includes(Gn)})&&Ge.createElement(Ee.ZP,{className:Ie.btnAdd,onClick:()=>{br({key:"\u786E\u8BA4\u6253\u56DE\u91CD\u505A"})}}," \u6253\u56DE\u91CD\u505A "),!(mn!=null&&mn.is_author)&&(0,On.dE)()&&((Us=mn==null?void 0:mn.homework_status)==null?void 0:Us.includes("\u533F\u8BC4\u4E2D"))&&So.get("review")!=="review"&&Ge.createElement(Ee.ZP,{className:Ie.btnAdd,onClick:()=>{br({key:"\u95EE\u9898\u53CD\u9988"})}}," \u95EE\u9898\u53CD\u9988 "),Ge.createElement(Ee.ZP,{className:`${!(us!=null&&us.last)&&Ie.btnAdd} ${Ie.lastAdd}`,style:{display:"flex",alignItems:"center"},onClick:()=>fu("last"),disabled:us==null?void 0:us.last},Ge.createElement("i",{className:"iconfont icon-zuojiantou font12 mr5"})," \u4E0A\u4E00\u4E2A "),Ge.createElement(Ee.ZP,{className:!(Ms!=null&&Ms.last)&&Ie.btnAdd,style:{display:"flex",alignItems:"center"},disabled:Ms==null?void 0:Ms.last,onClick:()=>fu("read")},"\u4E0B\u4E00\u4E2A ",Ge.createElement("i",{className:"iconfont icon-youjiantou font12 ml5"})))))),Ge.createElement(Ne,null),Ge.createElement(kn,{studentWorkDetail:mn}),Ge.createElement(Dt.Z,null),Ge.createElement(Be.default,{title:"\u786E\u8BA4\u6253\u56DE\u91CD\u505A",open:(si==null?void 0:si.key)=="\u786E\u8BA4\u6253\u56DE\u91CD\u505A",destroyOnClose:!0,forceRender:!0,width:700,onCancel:()=>{br("")},onOk:()=>Yo(void 0,null,function*(){if(!Tr){me.ZP.info("\u8BC4\u8BED\u4E0D\u80FD\u4E3A\u7A7A");return}const Gn=yield(0,et.ZP)(`/api/student_works/${ri.userId}/redo_modal.json`,{method:"post",body:{comment:Tr,id:ri.userId}});(Gn==null?void 0:Gn.status)===0&&(me.ZP.info("\u6253\u56DE\u91CD\u505A\u6210\u529F"),br(""),ya(),pu())})},Ge.createElement("div",{style:{padding:"32px"}},Ge.createElement("span",null,"\u786E\u8BA4\u5C06",mn==null?void 0:mn.author_name,"\u7684\u4F5C\u4E1A\u6253\u56DE\u91CD\u505A\u5417"),Ge.createElement("div",{style:{marginTop:"20px"}},Ge.createElement("label",null,Ge.createElement("span",{style:{marginRight:"5px",color:"red"}},"*"),"\u8BC4\u8BED\uFF1A"),Ge.createElement(nt.Z,{className:Ie.MdEditor,onChange:Gn=>Ya(Gn),defaultValue:"",height:250})))),Ge.createElement(lt.Z,{close:!0,data:oa==null?void 0:oa.content,type:oa==null?void 0:oa.type,hasMask:!0,monacoEditor:{value:cf.current,language:"txt",onChange:()=>{},options:{readOnly:!0,fontSize:14,minimap:{enabled:!1}}},onClose:()=>Ls({content:"",type:""})}),Ge.createElement(Be.default,{width:675,title:"\u8BF7\u9009\u62E9\u9700\u8981\u5BFC\u51FA\u7684\u683C\u5F0F",open:gf,confirmLoading:Bu,centered:!0,onCancel:()=>Vd(!1),onOk:()=>{id=="\u9644\u4EF6"?hs?Ch(!1):so(!1):id=="\u6279\u6CE8"&&(hs?Ch(!0):so(!0))}},Ge.createElement(se.default,{checked:ds,onChange:Gn=>{th(Gn.target.checked)}},"\u540C\u65F6\u5BFC\u51FA\u5B66\u751F\u63D0\u4EA4\u8BB0\u5F55"),Ge.createElement("div",{className:Ie.export_type_modal_title},"\u8BF7\u9009\u62E9\u9700\u8981\u5BFC\u51FA\u7684\u9644\u4EF6\u7C7B\u578B"),Ge.createElement("div",{className:Ie.export_type_modal},Ge.createElement("div",{className:Ie.export_type_modal_con},Ge.createElement("div",{className:`${Ie.type_item} ${id=="\u9644\u4EF6"?Ie.type_item_active:""}`,onClick:()=>Br("\u9644\u4EF6")},Ge.createElement("div",{className:`${Ie.img_warp}`},Ge.createElement("img",{src:Un.Z,width:72,height:80})),Ge.createElement("span",null,"\u5B66\u751F\u63D0\u4EA4\u7684\u9644\u4EF6")),Ge.createElement("div",{className:`${Ie.type_item} ${id=="\u6279\u6CE8"?Ie.type_item_active:""}`,onClick:()=>Br("\u6279\u6CE8")},Ge.createElement("div",{className:`${Ie.img_warp}`},Ge.createElement("img",{src:hi.Z,width:99,height:80})),Ge.createElement("span",null,"\u5305\u542B\u6279\u6CE8\u5185\u5BB9\u7684\u9644\u4EF6"))),Ge.createElement("div",{className:Ie.export_type_modal_waring},"\u5982\u5B66\u751F\u672A\u4E0A\u4F20\u9644\u4EF6\uFF0C\u4EC5\u4F1A\u5BFC\u51FA\u8BE5\u5B66\u751F\u63D0\u4EA4\u7684\u7B54\u9898\u8BB0\u5F55"))),Ge.createElement(Be.default,{title:si==null?void 0:si.key,open:(si==null?void 0:si.key)=="\u4F5C\u4E1A\u63D0\u4EA4\u8BB0\u5F55",centered:!0,destroyOnClose:!0,width:969,footer:null,onCancel:()=>br("")},Ge.createElement(Ae.default,{locale:{emptyText:Ge.createElement(nn.Z,null)},columns:yl,dataSource:Yd==null?void 0:Yd.student_works,pagination:!1})),Ge.createElement(Be.default,{title:si==null?void 0:si.key,open:(si==null?void 0:si.key)=="\u95EE\u9898\u53CD\u9988",centered:!0,destroyOnClose:!0,width:700,onCancel:()=>{br(""),ts.resetFields()},confirmLoading:hu,onOk:()=>{ts.submit()}},Ge.createElement(ue.default,{form:ts,onFinish:Gn=>Yo(void 0,null,function*(){const Ii=yield tl({userId:ri==null?void 0:ri.userId,id:ri==null?void 0:ri.userId,student_work_feedback:Bi({},Gn)});(Ii==null?void 0:Ii.status)==0&&(me.ZP.success("\u63D0\u4EA4\u6210\u529F"),br(""),ts.resetFields(),Tl({}),ya())})},Ge.createElement("div",{className:"mb20 p20 pt10 pb10 c-grey-333",style:{background:"#F6F7F9"}}," \u5982\u679C\u4F5C\u54C1\u65E0\u6CD5\u533F\u8BC4\uFF0C\u8BF7\u63CF\u8FF0\u95EE\u9898\u5E76\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u6309\u94AE\u8FDB\u884C\u53CD\u9988\u3002\u53CD\u9988\u540E\u7CFB\u7EDF\u5C06\u4E0D\u4F1A\u6263\u9664\u7F3A\u8BC4\u5206\u6570\u3002"),Ge.createElement(ue.default.Item,{className:"mb0",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5185\u5BB9"}]},Ge.createElement(_e.default.TextArea,{rows:6,placeholder:"\u4F8B\u5982\uFF1A\u4F5C\u54C1\u63D0\u4EA4\u7684\u9644\u4EF6\u4E0D\u6E05\u6670",maxLength:200})))),Ge.createElement(zn,{ModalProps:{open:(si==null?void 0:si.key)=="\u5386\u53F2\u8BC4\u9605\u8BB0\u5F55",onCancel:()=>{br("")},onOk:()=>{br("")}}}),Ge.createElement(Ki,{ModalProps:{open:(si==null?void 0:si.key)=="\u5F97\u5206\u8BE6\u60C5",onCancel:()=>{br("")},onOk:()=>{br("")}}}),Ge.createElement(yn,{ModalProps:{open:(si==null?void 0:si.key)=="\u4F5C\u4E1A\u63CF\u8FF0",footer:[Ge.createElement(Ee.ZP,{type:"primary",onClick:()=>br("")},"\u786E\u5B9A")],onCancel:()=>{br("")}}}))};var Ph=(0,oe.connect)(({shixunHomeworks:Le,loading:ce,user:Qt,globalSetting:ti,classroomList:yi})=>({shixunHomeworks:Le,globalSetting:ti,user:Qt,loading:ce.effects,classroomList:yi}))(Dr)},23538:function(Ze,En,bt){"use strict";bt.d(En,{$J:function(){return ue},JZ:function(){return me},bN:function(){return qt},jP:function(){return Ee},rO:function(){return Be}});var vt=bt(99064),oe=(Ce,Se,ve)=>new Promise((se,Ae)=>{var _e=nt=>{try{et(ve.next(nt))}catch(ct){Ae(ct)}},Dt=nt=>{try{et(ve.throw(nt))}catch(ct){Ae(ct)}},et=nt=>nt.done?se(nt.value):Promise.resolve(nt.value).then(_e,Dt);et((ve=ve.apply(Ce,Se)).next())});function ue(Ce){return(0,vt.U2)(`libraries/${Ce}.json`)}function Be(){return(0,vt.U2)("library_tags.json")}function me(Ce){return oe(this,null,function*(){return(yield(0,vt.IV)(`attachments/${Ce}.json`)).status===0})}function Ee(Ce){return(0,vt.v_)("libraries.json",Ce)}function qt(Ce,Se){return(0,vt.gz)(`libraries/${Ce}.json`,Se)}},83312:function(Ze,En,bt){"use strict";bt.d(En,{U:function(){return Se}});var vt=bt(59301),oe=Object.defineProperty,ue=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,Ee=(ve,se,Ae)=>se in ve?oe(ve,se,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):ve[se]=Ae,qt=(ve,se)=>{for(var Ae in se||(se={}))Be.call(se,Ae)&&Ee(ve,Ae,se[Ae]);if(ue)for(var Ae of ue(se))me.call(se,Ae)&&Ee(ve,Ae,se[Ae]);return ve},Ce=(ve,se,Ae)=>new Promise((_e,Dt)=>{var et=lt=>{try{ct(Ae.next(lt))}catch(pt){Dt(pt)}},nt=lt=>{try{ct(Ae.throw(lt))}catch(pt){Dt(pt)}},ct=lt=>lt.done?_e(lt.value):Promise.resolve(lt.value).then(et,nt);ct((Ae=Ae.apply(ve,se)).next())});function Se(ve,se){const[Ae,_e]=(0,vt.useState)(se),[Dt,et]=(0,vt.useState)(!1),[nt,ct]=(0,vt.useState)();return[Ae,Dt,(pt,yt=!1)=>Ce(this,null,function*(){const Lt=yt?se:qt(qt({},Ae),pt);et(!0),_e(Lt);const kt=yield ve(Lt);return et(!1),ct(kt),kt}),nt,ct]}},24768:function(Ze,En,bt){"use strict";bt.d(En,{AL:function(){return Lt},Iy:function(){return se},Qv:function(){return Dt},ez:function(){return yt},jb:function(){return Ae}});var vt=bt(32834),oe=bt.n(vt),ue=bt(11690),Be=bt.n(ue);let me=1;function Ee(ee,te){const Pe=ee.match(/^(\s+)(?:```)/);if(Pe===null)return te;const ae=Pe[1];return te.split(` +`)}]};var Ce=bt(53184),Se=bt.n(Ce),ve=Object.defineProperty,se=Object.defineProperties,Ae=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,Dt=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,nt=(ze,fn,sn)=>fn in ze?ve(ze,fn,{enumerable:!0,configurable:!0,writable:!0,value:sn}):ze[fn]=sn,ct=(ze,fn)=>{for(var sn in fn||(fn={}))Dt.call(fn,sn)&&nt(ze,sn,fn[sn]);if(_e)for(var sn of _e(fn))et.call(fn,sn)&&nt(ze,sn,fn[sn]);return ze},lt=(ze,fn)=>se(ze,Ae(fn)),pt=(ze,fn,sn)=>new Promise((Bt,Mt)=>{var xt=At=>{try{Ut(sn.next(At))}catch(ge){Mt(ge)}},Ft=At=>{try{Ut(sn.throw(At))}catch(ge){Mt(ge)}},Ut=At=>At.done?Bt(At.value):Promise.resolve(At.value).then(xt,Ft);Ut((sn=sn.apply(ze,fn)).next())});const yt={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"]}},Lt=(ze,fn)=>fn.map(sn=>({label:sn,kind:ze.languages.CompletionItemKind.Keyword,insertText:sn})),kt=ze=>Object.keys(yt.tables).map(fn=>({label:fn,kind:ze.languages.CompletionItemKind.Variable,insertText:fn})),Ht=(ze,fn)=>{const sn=yt.tables[ze];return sn?sn.map(Bt=>({label:Bt,kind:fn.languages.CompletionItemKind.Field,insertText:Bt})):[]};function Yt(ze,fn,sn,Bt,Mt){let xt=fn.getWordUntilPosition(sn),Ft={startLineNumber:sn.lineNumber,endLineNumber:sn.lineNumber,startColumn:xt.startColumn,endColumn:xt.endColumn},Ut=Bt.map(At=>({label:At,kind:ze.languages.CompletionItemKind.Keyword,insertText:At,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ft}));return Mt.map(At=>{Ut.push(lt(ct({},At),{range:Ft}))}),Ut}var $t=ze=>{yt.languages.map(Mt=>(ze.languages.registerDocumentFormattingEditProvider(Mt,{provideDocumentFormattingEdits(xt,Ft,Ut){return pt(this,null,function*(){const At=Se()(xt.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:xt.getFullModelRange(),text:At}]})}}),Mt));const fn=me.quickKey.map(Mt=>({label:Mt.label,kind:ze.languages.CompletionItemKind.Method,insertText:Mt.content,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet})),sn=Ee.quickKey.map(Mt=>({label:Mt.label,kind:ze.languages.CompletionItemKind.Method,insertText:Mt.content,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Bt=Be.quickKey.map(Mt=>({label:Mt.label,kind:ze.languages.CompletionItemKind.Method,insertText:Mt.content,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet}));ze.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Mt,xt){var Ft=Mt.getWordUntilPosition(xt),Ut={startLineNumber:xt.lineNumber,endLineNumber:xt.lineNumber,startColumn:Ft.startColumn,endColumn:Ft.endColumn},At=Mt.getLineContent(xt.lineNumber).substring(Ft.startColumn-2,Ft.endColumn);return{suggestions:[...me.keywords.map(ge=>({label:ge,kind:ze.languages.CompletionItemKind.Function,documentation:ge,insertText:ge,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ut})),...me.quickKey.map(ge=>({label:ge.label,kind:ze.languages.CompletionItemKind.Function,documentation:ge.content,insertText:At.startsWith("#")?ge.content.replace(/#/,""):ge.content,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ut}))]}}}),ze.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Mt,xt){var Ft=Mt.getWordUntilPosition(xt),Ut={startLineNumber:xt.lineNumber,endLineNumber:xt.lineNumber,startColumn:Ft.startColumn,endColumn:Ft.endColumn};return{suggestions:[...ue.keywords.map(At=>({label:At,kind:ze.languages.CompletionItemKind.Function,documentation:At,insertText:At,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ut}))]}}}),ze.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Mt,xt){var Ft=Mt.getWordUntilPosition(xt),Ut={startLineNumber:xt.lineNumber,endLineNumber:xt.lineNumber,startColumn:Ft.startColumn,endColumn:Ft.endColumn},At=Mt.getLineContent(xt.lineNumber).substring(Ft.startColumn-2,Ft.endColumn);return{suggestions:[...Be.keywords.map(ge=>({label:ge,kind:ze.languages.CompletionItemKind.Function,documentation:ge,insertText:ge,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ut})),...Be.quickKey.map(ge=>({label:ge.label,kind:ze.languages.CompletionItemKind.Function,documentation:ge.content,insertText:At.startsWith("#")?ge.content.replace(/#/,""):ge.content,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ut}))]}}}),ze.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Mt,xt){var Ft=Mt.getWordUntilPosition(xt),Ut={startLineNumber:xt.lineNumber,endLineNumber:xt.lineNumber,startColumn:Ft.startColumn,endColumn:Ft.endColumn},At=Mt.getLineContent(xt.lineNumber).substring(Ft.startColumn-2,Ft.endColumn);return{suggestions:[...qt.keywords.map(ge=>({label:ge,kind:ze.languages.CompletionItemKind.Function,documentation:ge,insertText:ge,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ut})),...qt.quickKey.map(ge=>({label:ge.label,kind:ze.languages.CompletionItemKind.Function,documentation:ge.content,insertText:At.startsWith("#")?ge.content.replace(/#/,""):ge.content,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ut}))]}}}),ze.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Mt,xt){var Ft=Mt.getWordUntilPosition(xt),Ut={startLineNumber:xt.lineNumber,endLineNumber:xt.lineNumber,startColumn:Ft.startColumn,endColumn:Ft.endColumn},At=Mt.getLineContent(xt.lineNumber).substring(Ft.startColumn-2,Ft.endColumn);return{suggestions:[...Ee.keywords.map(ge=>({label:ge,kind:ze.languages.CompletionItemKind.Function,documentation:ge,insertText:ge,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ut})),...Ee.quickKey.map(ge=>({label:ge.label,kind:ze.languages.CompletionItemKind.Function,documentation:ge.content,insertText:At.startsWith("#")?ge.content.replace(/#/,""):ge.content,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ut}))]}}})};const ee="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var te=Object.defineProperty,Pe=(ze,fn,sn)=>fn in ze?te(ze,fn,{enumerable:!0,configurable:!0,writable:!0,value:sn}):ze[fn]=sn,ae=(ze,fn,sn)=>Pe(ze,typeof fn!="symbol"?fn+"":fn,sn);const We=class px{constructor(fn,sn,Bt){this.placeholder=fn,this.editor=sn,this.monaco=Bt,sn.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return px.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)}};ae(We,"ID","editor.widget.placeholderHint");var Ne=We,Ie=bt(96236),rn=bt(8591),Dn=bt(6848),vn=bt(89392),Vt=bt(34604),It=bt(56102),ne=Object.defineProperty,De=Object.defineProperties,Qe=Object.getOwnPropertyDescriptors,le=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,on=Object.prototype.propertyIsEnumerable,Cn=(ze,fn,sn)=>fn in ze?ne(ze,fn,{enumerable:!0,configurable:!0,writable:!0,value:sn}):ze[fn]=sn,ln=(ze,fn)=>{for(var sn in fn||(fn={}))Oe.call(fn,sn)&&Cn(ze,sn,fn[sn]);if(le)for(var sn of le(fn))on.call(fn,sn)&&Cn(ze,sn,fn[sn]);return ze},xn=(ze,fn)=>De(ze,Qe(fn)),re=(ze,fn)=>{var sn={};for(var Bt in ze)Oe.call(ze,Bt)&&fn.indexOf(Bt)<0&&(sn[Bt]=ze[Bt]);if(ze!=null&&le)for(var Bt of le(ze))fn.indexOf(Bt)<0&&on.call(ze,Bt)&&(sn[Bt]=ze[Bt]);return sn},kn=(ze,fn,sn)=>new Promise((Bt,Mt)=>{var xt=At=>{try{Ut(sn.next(At))}catch(ge){Mt(ge)}},Ft=At=>{try{Ut(sn.throw(At))}catch(ge){Mt(ge)}},Ut=At=>At.done?Bt(At.value):Promise.resolve(At.value).then(xt,Ft);Ut((sn=sn.apply(ze,fn)).next())});function Zn(ze){return/^\d+$/.test(ze)?`${ze}px`:ze}function On(){}let Un=!1;const hi={"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 Ri(ze=[]){let fn=ze;if(Array.isArray(ze)){for(let sn=0;sn{var fn=ze,{width:sn="100%",height:Bt="100%",value:Mt,language:xt="javascript",style:Ft={},options:Ut={},overrideServices:At={},theme:ge="vs-dark",onEditBlur:dn,isCopy:gn=!1,onSave:pn,autoHeight:Rn=!1,forbidCopy:Mi=!1,onChange:ji=On,editorDidMount:wi=On,onFocus:Ji=On,onBreakPoint:wo=On,breakPointValue:Io=[],filename:Wr="educoder.txt",errorLine:nr,errorContent:Cr="",highlightLine:bo,openBreakPoint:Fo=!1,placeholder:fo=""}=fn,hr=re(fn,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder"]);const dr=(0,vt.useRef)(),Ui=(0,vt.useRef)({}),Ct=(0,vt.useRef)(),zs=(0,vt.useRef)(),Wo=(0,vt.useRef)([]),Ss=(0,vt.useRef)(!1),ta=(0,vt.useRef)(),ss=(0,vt.useRef)(),ea=(0,vt.useRef)(!1),[Tn,Qn]=(0,vt.useState)(!1);function we(){let ke;return dr.current&&(ke=new oe.Z(an=>{for(let Gi of an)(Gi.target.offsetHeight>0||Gi.target.offsetWidth>0)&&Ui.current.instance.layout()}),ke.observe(dr.current)),ke}function pe(){rn.ZP.warning({content:decodeURIComponent(ee),key:"monaco-editor-tip"})}const fe=()=>{let ke=Ui.current.instance;if(Mt!=null&&ke&&Tn){const an=ke.getModel();an&&Mt!==an.getValue()&&(Un=!0,an.setValue(Mt),ke.layout(),Un=!1)}};(0,vt.useEffect)(()=>{const ke=Vt.Z.subscribe("formatDocument",an=>{var Gi;let Co=Ui.current.instance;(Gi=Co==null?void 0:Co.getAction)==null||Gi.call(Co,"editor.action.formatDocument").run()});return window.updateMonacoValue=an=>{ji(an)},ke},[]),(0,vt.useEffect)(()=>{var ke;let an=Ui.current.instance;zs.current&&clearTimeout(zs.current),zs.current=setTimeout(()=>{fe()},500),Mt&&(Mt!=null&&Mt.length)&&((ke=an==null?void 0:an.updateOptions)==null||ke.call(an,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Mt.split(/\r\n|\r|\n/g).length))+3,5)}))},[Mt,Tn,Ui.current]),(0,vt.useEffect)(()=>{if(nr&&Ui.current&&Ui.current.instance){let an=Ui.current.instance;an.changeViewZones(function(Gi){var Co=document.createElement("div");Co.style.padding="10px 20px",Co.style.width="calc(100% - 20px)",Co.className="my-error-line-wrp",Co.innerHTML=Cr,Gi.addZone({afterLineNumber:nr||11,heightInLines:3,domNode:Co})});var ke={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}};an.addOverlayWidget(ke),an.revealPositionInCenter({lineNumber:20,column:1})}},[nr,Ui.current,Tn]);const Bn=(ke="",an)=>{if(!ke||ke.trim()==="")return!0;const Co=Ui.current.instance.getModel().getLineTokens(an);let Po=!1;for(let vi=0;vi<2;vi++)Co.getStandardTokenType(vi)===1&&(Po=!0);return Po};(0,vt.useEffect)(()=>{var ke;const an=(ke=Ui.current)==null?void 0:ke.instance;if(an&&Tn&&Mi){const Gi=an.onDidBlurEditorWidget(()=>{ea.current=!1}),Co=an.onDidFocusEditorText(()=>{ea.current=!0});return()=>{Gi.dispose(),Co.dispose()}}},[Ui.current,Tn,Mi]),(0,vt.useEffect)(()=>{var ke;if((ke=Ui.current)!=null&&ke.instance&&Tn&&Fo){let an=Ui.current.instance,Gi=an.getModel();if(!Gi)return;(()=>{var io;let je=[],bn=[];const di=Gi.getAllDecorations();for(let fi of di)fi.options.className==="highlighted-line"&&(je.push((io=fi==null?void 0:fi.range)==null?void 0:io.startLineNumber),bn.push(fi==null?void 0:fi.id));if(bo===je[0])return;Gi.deltaDecorations(bn,[]);const mi=Gi.getLineCount();bo&&bo<=mi&&(an.deltaDecorations([],[{range:new nn.Range(bo,1,bo,Gi.getLineMaxColumn(bo)),options:{isWholeLine:!0,className:"highlighted-line"}}]),an.revealLineInCenter(bo))})();const Po=(io=!1)=>{var je;let bn=[],di=[];const mi=Gi.getAllDecorations();for(let fi of mi)fi.options.linesDecorationsClassName==="breakpoints-select"&&(bn.push((je=fi==null?void 0:fi.range)==null?void 0:je.startLineNumber),di.push(fi==null?void 0:fi.id));if(io)return{lines:bn,ids:di};wo(bn)},vi=io=>kn(void 0,null,function*(){let je={range:new nn.Range(io,1,io,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Gi.deltaDecorations([],[je]),Po()}),Ci=io=>kn(void 0,null,function*(){let je=[];const bn=an.getLineDecorations(io);for(let di of bn)di.options.linesDecorationsClassName==="breakpoints-select"&&je.push(di.id);yield Gi.deltaDecorations(je,[]),Po()}),ui=io=>{let je=an.getLineDecorations(io);for(let bn of je)if(bn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,vn.isEqual)(Io,Po(!0).lines)){Gi.deltaDecorations(Po(!0).ids,[]);const io=Io.map(je=>({range:new nn.Range(je,1,je,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Gi.deltaDecorations([],io)}const yo=an.onDidChangeModelContent(io=>{let je=an.getPosition();if(je){let bn=je.lineNumber;clearTimeout(ss.current),ss.current=setTimeout(()=>{Bn(Gi.getLineContent(bn),bn)?Ci(bn):ui(bn)?(Ci(bn),vi(bn)):Po()},100)}}),cr=an.onMouseDown(io=>{var je,bn,di;if(io.target.detail&&((di=(bn=(je=io.target)==null?void 0:je.element)==null?void 0:bn.className)!=null&&di.includes("line-numbers"))){let mi=io.target.position.lineNumber;if(Bn(Gi.getLineContent(mi),mi))return;ui(mi)?Ci(mi):vi(mi)}}),Vo=io=>{let je={range:new nn.Range(io,1,io,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Wo.current=an.deltaDecorations(Wo.current,[je])},Xe=()=>{Wo.current=an.deltaDecorations(Wo.current,[])},_o=an.onMouseMove(io=>{var je,bn,di;if(Xe(),io.target.detail&&((di=(bn=(je=io.target)==null?void 0:je.element)==null?void 0:bn.className)!=null&&di.includes("line-numbers"))){let mi=io.target.position.lineNumber;if(Bn(Gi.getLineContent(mi),mi))return;Vo(mi)}}),Do=an.onMouseLeave(()=>{Xe()});return()=>{yo.dispose(),cr.dispose(),_o.dispose(),Do.dispose()}}},[Ui.current,Tn,Io,bo,Fo,xt]),(0,vt.useEffect)(()=>{var ke;(ke=Ui.current)!=null&&ke.instance&&Fo&&Ui.current.instance.setPosition({lineNumber:0,column:0})},[bo]);function zn(){let ke=Ui.current.instance;if(ke){const an=ke.getSelection(),Gi=Ui.current.pastePos||{},Co=new nn.Range(Gi.startLineNumber||an.endLineNumber,Gi.startColumn||an.endColumn,Gi.endLineNumber||an.endLineNumber,Gi.endColumn||an.endColumn);setTimeout(()=>{ke.executeEdits("",[{range:Co,text:""}])},300)}}function Wn(ke){(window.navigator.platform.match("Mac")?ke.metaKey:ke.ctrlKey)&&ke.keyCode==83&&(ke.preventDefault(),pn())}const be=()=>{if(Rn&&Ui.current.instance){const ke=Ui.current.instance.getContentHeight();Kn(ke{if(!ea.current)return;const{keyCode:an,ctrlKey:Gi,metaKey:Co,target:Po,type:vi}=ke;return(vi==="paste"||(an===67||an===86)&&(Co||Gi))&&Po.nodeName==="TEXTAREA"&&(pe(),ke.preventDefault()),!1};function Jn(ke,an){var Gi=window.URL||window.webkitURL||window,Co=new Blob([an]),Po=document.createElementNS("http://www.w3.org/1999/xhtml","a");Po.href=Gi.createObjectURL(Co),Po.download=ke,An(Po)}(0,vt.useEffect)(()=>{be()},[be]),(0,vt.useEffect)(()=>{dr.current&&!Tn&&Promise.all([bt.e(8909),bt.e(3267)]).then(bt.bind(bt,71448)).then(ke=>{try{nn=ke,Ui.current.instance=nn.editor.create(dr.current,{value:Mt,language:Ri(xt),theme:ge,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},At);const an=Ui.current.instance;let Po=[...Ie.BH._menuItems].find(yo=>yo[0]._debugName=="EditorContext")[1],vi=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Ci=(yo,cr)=>{var Vo,Xe;let _o=yo._first;do cr.includes((Xe=(Vo=_o.element)==null?void 0:Vo.command)==null?void 0:Xe.id)&&yo._remove(_o);while(_o=_o.next)};if(wi(an,nn),setTimeout(()=>{be(),Ui.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Jn(Wr||"educoder.txt",an.getValue())}})},500),Ui.current.subscription=an.onDidChangeModelContent(yo=>{Ss.current?clearTimeout(ta.current):(be(),ji(an.getValue(),yo)),ta.current=setTimeout(()=>{Ss.current=!1},500)}),window.Monaco||$t(nn,Ri(xt)),Mi&&(Ci(Po,vi),dr.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",li),window.removeEventListener("paste",li),window.addEventListener("keydown",li),window.addEventListener("paste",li)),window.Monaco=nn,dn&&an.onDidBlurEditorWidget(()=>{dn(an.getValue())}),Ji&&an.onDidFocusEditorText(()=>{Ji(an.getValue())}),Mi)try{an.onDidPaste(yo=>{const cr=an.getSelection(),Vo=Ui.current.pastePos||{},Xe=new nn.Range(Vo.startLineNumber||cr.endLineNumber,Vo.startColumn||cr.endColumn,Vo.endLineNumber||cr.endLineNumber,Vo.endColumn||cr.endColumn);an.executeEdits("",[{range:yo.range,text:""}])})}catch(yo){}let ui=we();return fo&&typeof fo=="string"&&new Ne(fo,an,nn),Qn(!0),()=>{const yo=Ui.current.instance;yo.dispose();const cr=yo.getModel();cr&&cr.dispose(),Ui.current.subscription&&Ui.current.subscription.dispose(),ui.unobserve(dr.current)}}catch(an){}})},[]),(0,vt.useEffect)(()=>{if(Ui.current.instance&&Tn)return document.addEventListener("keydown",Wn,!1),()=>{document.removeEventListener("keydown",Wn)}},[pn,Tn]),(0,vt.useEffect)(()=>{let ke=Ui.current.instance;if(ke&&Tn){let an=Ri(xt);nn.editor.setModelLanguage(ke.getModel(),an)}},[xt,Tn]),(0,vt.useEffect)(()=>{Ui.current.instance&&Tn&&nn.editor.setTheme(ge)},[ge,Tn]),(0,vt.useEffect)(()=>{let ke=Ui.current.instance;Ct.current=Ut,ke&&Tn&&(ke.updateOptions(ln({},Ut)),setTimeout(()=>{ke.getModel().updateOptions(ln({},Ut))},200))},[JSON.stringify(Ut),Tn]),(0,vt.useEffect)(()=>{let ke=Ui.current.instance;ke&&Tn&&ke.layout()},[sn,Bt,Tn]);const[Ki,ie]=(0,vt.useState)(Zn(sn)),[yn,Kn]=(0,vt.useState)(Zn(Bt)),Wi=xn(ln({},Ft),{width:Ki,height:yn,position:"relative"});return vt.createElement("div",{className:"my-monaco-editor",ref:dr,style:Wi},gn&&vt.createElement(It.CopyToClipboard,{text:Mt,onCopy:()=>rn.ZP.success("\u590D\u5236\u6210\u529F")},vt.createElement(Dn.Z,{title:"\u590D\u5236\u4EE3\u7801"},vt.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},vt.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function wn({width:ze="100%",height:fn="100%",original:sn,modified:Bt,language:Mt,options:xt={}}){const Ft=(0,vt.useRef)(),[Ut,At]=(0,vt.useState)(null);function ge(Rn){let Mi;return Ft.current&&(Mi=new oe.Z(ji=>{for(let wi of ji)(wi.target.offsetHeight>0||wi.target.offsetWidth>0)&&Rn.layout()}),Mi.observe(Ft.current)),Mi}(0,vt.useEffect)(()=>(Ft.current&&Promise.all([bt.e(8909),bt.e(9404)]).then(bt.bind(bt,2550)).then(Rn=>{nn=Rn;const Mi=nn.editor.createDiffEditor(Ft.current,xn(ln({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},xt),{wordWrap:!0}));At(Mi);let ji=ge(Mi);return()=>{Mi.dispose();const wi=Mi.getModel();wi&&wi.dispose(),ji.unobserve(Ft.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,vt.useEffect)(()=>{Ut&&Ut.setModel({original:nn.editor.createModel(sn,Mt),modified:nn.editor.createModel(Bt,Mt)})},[sn,Bt,Mt,Ut]);const dn=Zn(ze),gn=Zn(fn),pn={width:dn,height:gn};return vt.createElement("div",{className:"my-diff-editor",ref:Ft,style:pn})}},85057:function(Ze,En,bt){"use strict";bt.d(En,{jL:function(){return me},w9:function(){return Oe},QD:function(){return ji},cQ:function(){return It},op:function(){return ge},O5:function(){return ea},_b:function(){return nr},t7:function(){return lt},Gi:function(){return kn},YG:function(){return xn},qp:function(){return se},vr:function(){return wo},qE:function(){return pn},Je:function(){return Lt},wb:function(){return Ie},cq:function(){return nn},tp:function(){return Dt}});var vt=bt(59301),oe={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"},ue="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJry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G47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",me=({dataSource:Tn=[],img:Qn,imgWidth:we=346,title:pe,sunTitle:fe,bannerExtraContent:Bn})=>vt.createElement("div",{className:oe.banner},vt.createElement("div",{className:oe.content},vt.createElement("aside",null,vt.createElement("p",null,vt.createElement("b",null,pe),vt.createElement("span",null,fe)),Tn.length>0&&vt.createElement("div",{className:oe.btns},Tn.map((zn,Wn)=>vt.createElement("div",{key:Wn,onClick:zn.click},zn.name,zn.sign?vt.createElement("img",{src:ue,width:39}):null))),Bn),Qn&&vt.createElement("img",{style:{marginTop:33,marginRight:38},src:Qn,width:we}))),Ee={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"},qt=bt(92310),Ce=bt.n(qt),Se=bt(89392),se=({dataSource:Tn=[],value:Qn,onChange:we,onTitleChange:pe,className:fe,title:Bn,titleWidth:zn=41,style:Wn={},fontColor:be="#6A7283",showCount:An})=>{const[li,Jn]=(0,vt.useState)(0),[Ki,ie]=(0,vt.useState)(!1),yn=(0,vt.useRef)(null),Kn=(0,vt.useRef)(null);return(0,vt.useEffect)(()=>{var Wi;Tn.length!==0&&(((Wi=yn==null?void 0:yn.current)==null?void 0:Wi.clientHeight)>97?Jn(1):Jn(0)),Tn.length===0&&Jn(0),ie(!1)},[Tn]),vt.createElement("div",{className:Ce()(Ee.row,fe),style:Wn},vt.createElement("div",{onClick:(0,Se.throttle)(()=>pe==null?void 0:pe(),2e3),style:{width:zn,marginTop:Ki?12:4},className:`${Ee.title} ${pe?"current":""}`},Bn),vt.createElement("div",{className:Ki?`${Ee.tagsWrap} ${Ee.tagsBorderWrap}`:Ee.tagsWrap},vt.createElement("div",{className:Ee.bar,ref:Kn,style:li>0?{height:li===1?97:"auto",overflow:li===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},vt.createElement("div",{className:Ee.tag,ref:yn},Tn==null?void 0:Tn.map(Wi=>vt.createElement("span",{onClick:()=>we(Wi.id),key:Wi.id,style:{color:be},className:Qn===Wi.id?Ee.active:""},vt.createElement("span",{title:Wi.name,className:Ee.name},Wi.name),!!An&&vt.createElement("span",{className:Ee.num},Wi.count))))),!!li&&vt.createElement(vt.Fragment,null,li===1?vt.createElement("div",{onClick:()=>{var Wi;Jn(2),((Wi=yn==null?void 0:yn.current)==null?void 0:Wi.clientHeight)>245?ie(!0):ie(!1)},className:Ee.action},"\u5C55\u5F00",vt.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):vt.createElement("div",{onClick:()=>{Kn.current.scrollTop=0,Jn(1),ie(!1)},className:Ee.action},"\u6536\u8D77",vt.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Ae={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"},Dt=({dataSource:Tn=[],value:Qn,onChange:we,className:pe,style:fe={}})=>vt.createElement("div",{style:fe,className:Ce()(Ae.tabs,pe)},Tn.map(Bn=>vt.createElement("span",{onClick:()=>we(Bn.id),className:Qn===Bn.id?Ae.active:"",key:Bn.id},Bn.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"},nt=bt(92832),lt=({dataSource:Tn=[],value:Qn="",onChange:we,onInputChange:pe=()=>{},className:fe,style:Bn={},placeholder:zn,allowClear:Wn=!1})=>{var be;const[An,li]=(0,vt.useState)(""),[Jn,Ki]=(0,vt.useState)("");(0,vt.useEffect)(()=>{var Kn;let Wi=Qn;(Kn=JSON.stringify(Qn))!=null&&Kn.includes("{")&&(li(Qn.id),Wi=Qn.value||"");try{Ki(decodeURIComponent(Wi||""))}catch(ke){Ki(decodeURIComponent(Wi||""))}},[Qn]);const ie=()=>{we(encodeURIComponent(Jn),An||null)},yn=Kn=>{Kn!==An&&(li(Kn),we(encodeURIComponent(Jn),Kn))};return vt.createElement("div",{className:Ce()(et.input,fe),style:Bn},!!Tn.length&&vt.createElement("div",{className:et.dropdown},vt.createElement("div",{className:et.text},(be=Tn.find(Kn=>Kn.id===An))==null?void 0:be.name,vt.createElement("i",{className:"iconfont icon-zhankai4"}),vt.createElement("b",{className:et.b1}),vt.createElement("b",{className:et.b2})),vt.createElement("div",{className:et.menu},Tn.map((Kn,Wi)=>vt.createElement("div",{key:Wi,onClick:()=>yn(Kn.id)},Kn.name)))),vt.createElement(nt.default,{onPressEnter:ie,value:Jn,onChange:Kn=>{Ki(Kn.target.value),pe(encodeURIComponent(Kn.target.value),An||null)},bordered:!1,placeholder:zn}),vt.createElement("i",{onClick:ie,className:"iconfont icon-sousuo9 font14 pl10 current"}))},pt={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"},Lt=({value:Tn,onChange:Qn,className:we,total:pe,pageSize:fe,style:Bn={}})=>{const zn=Tn<2,Wn=Tn>=Math.ceil(pe/fe);return pe<=fe?vt.createElement(vt.Fragment,null):vt.createElement("div",{className:Ce()(pt.quickPager,we),style:Bn},vt.createElement("div",{onClick:()=>{zn||Qn(Tn-1,"prev")},className:zn?pt.disabled:""},"\u4E0A\u4E00\u9875"),vt.createElement("div",{onClick:()=>{Wn||Qn(Tn+1,"next")},className:Wn?pt.disabled:""},"\u4E0B\u4E00\u9875"))},kt={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"},Ht=bt(71418),Yt=bt(6848),$t=bt(13570),ee=bt(3294),te=bt(955),Pe=bt(96908),ae=bt(57177),We=bt(81378),ye=bt(8797),Ie=({className:Tn,dataSource:Qn=[],col:we=4,right:pe,bottom:fe=23,precision:Bn=0,wrapWidth:zn=1200,trackEventItems:Wn,loading:be})=>{const An=Math.floor((zn-(we-1)*pe)/we);return vt.createElement(Ht.Z,{spinning:be},vt.createElement("div",{className:Ce()(kt.list,Tn)},!!Qn.length&&Qn.map((li,Jn)=>{const{name:Ki,id:ie,identifier:yn,power:Kn,cover_image_id:Wi,pic:ke}=li;return vt.createElement("div",{className:kt.wrap,key:ie,style:{width:An,marginRight:(1+Jn)%we===0?0:pe+Bn,marginBottom:fe}},vt.createElement("a",{target:"_blank",href:`/shixuns/${yn}/challenges`,className:kt.li,onClick:an=>{an.preventDefault(),Wn&&(0,te.L9)([Wn]),Kn&&(0,te.xg)(`/shixuns/${yn}/challenges`)}},vt.createElement("div",{className:kt.img},vt.createElement("img",{className:kt.cover,src:`${ke}`}),li.is_jupyter&&vt.createElement("img",{className:kt.sign,src:Pe}),li.is_jupyter_lab&&vt.createElement("img",{className:kt.sign,src:ae}),li.is_unity_3d&&vt.createElement("img",{className:kt.sign,src:We})),vt.createElement("div",{className:kt.name},vt.createElement(Yt.Z,{title:Ki||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},vt.createElement("span",{className:kt.e},Ki||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),vt.createElement("div",{className:kt.tags},vt.createElement(Yt.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},vt.createElement("span",null,vt.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),vt.createElement("span",null,li.challenges_count))),!!li.myshixuns_count&&vt.createElement(Yt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},vt.createElement("span",null,vt.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),vt.createElement("span",null,li.myshixuns_count))),vt.createElement(Yt.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},vt.createElement("span",null,vt.createElement("span",null,li.level))),vt.createElement("div",{className:kt.rate},vt.createElement($t.Z,{allowHalf:!0,disabled:!0,defaultValue:li.score_info}),vt.createElement("span",null,"\xA0",li.score_info?`${li.score_info}\u5206`:"5\u5206")))),!Kn&&vt.createElement("div",{className:kt.lockWrap},vt.createElement("img",{src:`${ee.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),vt.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Qn.length&&vt.createElement(ye.Z,null)))},rn={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"},Dn=bt(24065),vn=bt(59301),It=({className:Tn,dataSource:Qn=[],col:we=4,right:pe,bottom:fe=23,precision:Bn=0,wrapWidth:zn=1200,trackEventItems:Wn,loading:be,onRemove:An=()=>{},isCurrent:li=!0,showAlias:Jn=!1})=>{const Ki=Math.floor((zn-(we-1)*pe)/we),ie=[{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 vn.createElement(Ht.Z,{spinning:be},vn.createElement("div",{className:Ce()(rn.list,Tn)},!!(Qn!=null&&Qn.length)&&(Qn==null?void 0:Qn.map((yn,Kn)=>{var Wi;const{name:ke,id:an,identifier:Gi,featured:Co,school_name:Po,image_url:vi,excellent:Ci,is_plan:ui}=yn;return vn.createElement("div",{key:an,className:rn.wrap,style:{width:Ki,marginRight:(1+Kn)%we===0?0:pe+Bn,marginBottom:fe}},vn.createElement("a",{className:rn.li,onClick:yo=>{yo.preventDefault(),yo.stopPropagation(),Wn&&(0,te.L9)([Wn]),(0,te.xg)(`/paths/${Gi}`)}},vn.createElement("div",{className:rn.img},vn.createElement("img",{className:rn.cover,src:`${vi}`}),li&&(0,Dn.bg)()&&(yn==null?void 0:yn.studying)&&vn.createElement("div",{className:`${rn.movebq} user-path-items`,onClick:yo=>{yo.stopPropagation(),An(yn)}},vn.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),vn.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Wi=yn==null?void 0:yn.subject_tags)==null?void 0:Wi.map((yo,cr)=>{var Vo,Xe;if(cr===0){const Do=(Vo=ie.find(io=>io.name==yo))==null?void 0:Vo.swimg;return vn.createElement("img",{className:rn.sign,src:Do,style:{left:"-4px"}})}const _o=(Xe=ie.find(Do=>Do.name==yo))==null?void 0:Xe.ptimg;return vn.createElement("img",{className:rn.sign,src:_o,style:{left:`${48+52*(cr-1)+2*cr}px`}})}),vn.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(yn==null?void 0:yn.excellent)&&vn.createElement("div",{className:rn.bq},"\u5F00\u653E\u8BFE\u7A0B"))),vn.createElement("div",{className:rn.name},vn.createElement(Yt.Z,{title:Jn&&(yn!=null&&yn.excellent_alias_name)?vn.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${ke}`,vn.createElement("br",null),vn.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${yn==null?void 0:yn.excellent_alias_name}`)):ke},vn.createElement("span",{className:rn.e},Jn&&(yn==null?void 0:yn.excellent_alias_name)||ke))),vn.createElement(Yt.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Po}`},vn.createElement("div",{className:rn.unit},vn.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Po)),vn.createElement("div",{className:rn.tags},vn.createElement("div",null,vn.createElement(Yt.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},vn.createElement("span",null,vn.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),vn.createElement("span",null,yn.stages_count))),vn.createElement(Yt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},vn.createElement("span",null,vn.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),vn.createElement("span",null,yn.members_count)))))))})),!Qn.length&&vn.createElement(ye.Z,null)))},ne={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"},De="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBH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hdo5e+n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Qe=bt(59301),Oe=({className:Tn,dataSource:Qn=[],col:we=4,right:pe,bottom:fe=23,precision:Bn=0,wrapWidth:zn=1200,trackEventItems:Wn,loading:be,handleVery:An=()=>!0})=>{const li=Math.floor((zn-(we-1)*pe)/we);return Qe.createElement(Ht.Z,{spinning:be},Qe.createElement("div",{className:Ce()(ne.list,Tn)},!!Qn.length&&Qn.map((Jn,Ki)=>{const{subject_identifier:ie,id:yn,identifier:Kn,power:Wi}=Jn,ke=Jn.is_public!=0&&Jn.is_public;return Qe.createElement("div",{className:ne.wrap,key:yn,style:{width:li,marginRight:(1+Ki)%we===0?0:pe+Bn,marginBottom:fe}},Qe.createElement("a",{className:ne.li,onClick:an=>{an.preventDefault(),An(Jn==null?void 0:Jn.first_category_url)&&(Wn&&(0,te.L9)([Wn]),(0,te.xg)(Jn.first_category_url))}},Qe.createElement("div",{className:ne.top},Qe.createElement(Yt.Z,{title:Jn.name},Qe.createElement("div",{className:ne.name},Jn.name)),Qe.createElement("img",{className:ne.img,src:ee.Z.IMG_SERVER+"/images/"+Jn.avatar_url}),Qe.createElement("div",{className:ne.text,title:Jn.creator},Jn.creator),ie&&Qe.createElement("div",{className:ne.btns},Qe.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Qe.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),ke&&Qe.createElement("div",{className:ne.sign},"\u516C\u5F00")),Qe.createElement("div",{className:ne.bottom},Jn.visits>0&&Qe.createElement(Yt.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Qe.createElement("span",null,Qe.createElement("i",{className:"iconfont icon-liulanyan"}),Qe.createElement("span",null,Jn.visits))),Jn.course_members_count>0&&Qe.createElement(Yt.Z,{title:"\u6210\u5458",placement:"bottom"},Qe.createElement("span",null,Qe.createElement("i",{className:"iconfont icon-chengyuan"}),Jn.course_members_count)),Jn.tasks_count>0&&Qe.createElement(Yt.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Qe.createElement("span",null,Qe.createElement("i",{className:"iconfont icon-zuoye"}),Jn.tasks_count)),Jn.is_end?Qe.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Qe.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Jn.is_accessible&&Qe.createElement("div",{className:ne.lockWrap},Qe.createElement("img",{src:`${ee.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Qe.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Qn.length&&Qe.createElement(ye.Z,null)))},on={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"},Cn=bt(89070),xn=({dataSource:Tn=[],value:Qn,onChange:we,className:pe,style:fe={},tabBarExtraContent:Bn})=>vt.createElement("div",{className:Ce()(on.tabs,pe),style:fe},vt.createElement("div",{className:on.tabsWrap},Tn.map((zn,Wn)=>!(zn!=null&&zn.hide)&&vt.createElement("aside",{className:on.tab,onClick:()=>{we(zn.id),zn.link&&Cn.history.push(zn.link)},key:Wn},vt.createElement("div",{className:Qn===zn.id?on.active:""},zn.name),(zn==null?void 0:zn.resetCount)==null&&(zn==null?void 0:zn.total)!==void 0&&vt.createElement("span",null,"\uFF08",zn==null?void 0:zn.total,"\uFF09"),(zn==null?void 0:zn.resetCount)!==void 0&&(zn==null?void 0:zn.total)!==void 0&&vt.createElement(Yt.Z,{title:(zn==null?void 0:zn.tip)!=null?zn==null?void 0:zn.tip:""},vt.createElement("span",{style:{color:"#9096A3"}},"\uFF08",vt.createElement("span",{style:{color:"#000"}},zn==null?void 0:zn.resetCount),"/",vt.createElement("span",null,zn==null?void 0:zn.total),"\uFF09"))))),vt.createElement("div",{className:on.tabBar},Bn)),kn=({className:Tn,style:Qn={},children:we})=>vt.createElement("div",{className:Ce()(Tn),style:Qn},we),Zn={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"},On=bt(38854),Un=bt(20834);const hi=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var nn=({sortValue:Tn,dropValue:Qn,className:we,onSort:pe,onDrop:fe,dataSource:Bn=hi})=>{var zn;return vt.createElement("div",{className:Ce()(Zn.orderWrap,we)},vt.createElement(On.Z,{dropdownRender:()=>vt.createElement(Un.default,null,Bn.map((Wn,be)=>vt.createElement(Un.default.Item,{key:be,onClick:()=>fe(Wn.id)},Wn.name)))},vt.createElement("span",{className:Zn.orderTextWrap},(zn=Bn.find(Wn=>Qn===Wn.id))==null?void 0:zn.name)),vt.createElement("span",{className:Zn.orderIconWrap},vt.createElement("span",{className:Zn.orderAsc},vt.createElement("i",{className:Tn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Zn.cursorPointer} ${Zn.active}`:`iconfont icon-sanjiaoxing-up font12 ${Zn.cursorPointer}`,onClick:()=>pe(Tn==="asc"?"desc":"asc")})),vt.createElement("span",{className:Zn.orderDesc},vt.createElement("i",{className:Tn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Zn.cursorPointer} ${Zn.active}`:`iconfont icon-sanjiaoxing-down font12 ${Zn.cursorPointer}`,onClick:()=>pe(Tn==="asc"?"desc":"asc")}))))},un={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"},wn=bt(3113),ze=Object.defineProperty,fn=Object.getOwnPropertySymbols,sn=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable,Mt=(Tn,Qn,we)=>Qn in Tn?ze(Tn,Qn,{enumerable:!0,configurable:!0,writable:!0,value:we}):Tn[Qn]=we,xt=(Tn,Qn)=>{for(var we in Qn||(Qn={}))sn.call(Qn,we)&&Mt(Tn,we,Qn[we]);if(fn)for(var we of fn(Qn))Bt.call(Qn,we)&&Mt(Tn,we,Qn[we]);return Tn},Ft=(Tn,Qn)=>{var we={};for(var pe in Tn)sn.call(Tn,pe)&&Qn.indexOf(pe)<0&&(we[pe]=Tn[pe]);if(Tn!=null&&fn)for(var pe of fn(Tn))Qn.indexOf(pe)<0&&Bt.call(Tn,pe)&&(we[pe]=Tn[pe]);return we},Ut=(Tn,Qn,we)=>new Promise((pe,fe)=>{var Bn=be=>{try{Wn(we.next(be))}catch(An){fe(An)}},zn=be=>{try{Wn(we.throw(be))}catch(An){fe(An)}},Wn=be=>be.done?pe(be.value):Promise.resolve(be.value).then(Bn,zn);Wn((we=we.apply(Tn,Qn)).next())}),ge=Tn=>{var Qn=Tn,{className:we,style:pe,children:fe,loading:Bn=!1,openLoading:zn,onClick:Wn=()=>{},size:be="middle",shape:An="round"}=Qn,li=Ft(Qn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Jn,Ki]=(0,vt.useState)(!1);return vt.createElement(wn.ZP,xt({onClick:(0,Se.throttle)(ie=>Ut(void 0,null,function*(){zn&&Ki(!0);try{yield Wn(ie)}catch(yn){console.log("error",yn)}zn&&Ki(!1)}),2e3,{leading:!0,trailing:!1}),className:Ce()(un.btn,un[`${be}-${An}`],we),style:pe,size:be,shape:An,loading:Jn||Bn},li),fe)},dn={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"},pn=({className:Tn,style:Qn,children:we=null,onClick:pe,title:fe})=>vt.createElement("div",{className:Ce()(dn.head,Tn),style:Qn},vt.createElement("span",{className:"primary-hover",onClick:pe},vt.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),vt.createElement("b",{title:fe},fe),vt.createElement("div",{className:dn.node},we)),Rn={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"},ji=({confirmShow:Tn=!0,confirmTitle:Qn,confirmClick:we,cancelShow:pe=!0,cancelTitle:fe,cancelClick:Bn,className:zn,style:Wn,confirmLoading:be=!1})=>vt.createElement("div",{className:Ce()(Rn.btns,zn),style:Wn},Tn&&vt.createElement(wn.ZP,{loading:be,onClick:we,type:"primary",className:Rn.confirm},Qn),pe&&vt.createElement(wn.ZP,{onClick:Bn,className:Rn.cancel},fe)),wi={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"},wo=({className:Tn,style:Qn={},LeftContent:we,children:pe,RightContent:fe})=>vt.createElement("div",{className:Ce()(wi.fixedBottom,Tn),style:Qn},vt.createElement("div",{className:wi.wrap},vt.createElement("div",{className:wi.left},we),vt.createElement("div",{className:wi.center},pe),vt.createElement("div",{className:wi.right},fe))),Io={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"},nr=({className:Tn,style:Qn={},dataSource:we=[]})=>vt.createElement("div",{className:Ce()(Io.crumbs,Tn),style:Qn},we.map((pe,fe)=>feCn.history.push(pe.path)},pe.name):vt.createElement("span",null,pe.name),vt.createElement("span",null,"\xA0",">","\xA0")):vt.createElement("span",{key:fe,style:{color:"#5F6368"}},pe.name))),Cr=bt(31797),bo=Object.defineProperty,Fo=Object.defineProperties,fo=Object.getOwnPropertyDescriptors,hr=Object.getOwnPropertySymbols,dr=Object.prototype.hasOwnProperty,Ui=Object.prototype.propertyIsEnumerable,Ct=(Tn,Qn,we)=>Qn in Tn?bo(Tn,Qn,{enumerable:!0,configurable:!0,writable:!0,value:we}):Tn[Qn]=we,zs=(Tn,Qn)=>{for(var we in Qn||(Qn={}))dr.call(Qn,we)&&Ct(Tn,we,Qn[we]);if(hr)for(var we of hr(Qn))Ui.call(Qn,we)&&Ct(Tn,we,Qn[we]);return Tn},Wo=(Tn,Qn)=>Fo(Tn,fo(Qn)),Ss=(Tn,Qn)=>{var we={};for(var pe in Tn)dr.call(Tn,pe)&&Qn.indexOf(pe)<0&&(we[pe]=Tn[pe]);if(Tn!=null&&hr)for(var pe of hr(Tn))Qn.indexOf(pe)<0&&Ui.call(Tn,pe)&&(we[pe]=Tn[pe]);return we};const{Countdown:ta}=Cr.default;var ea=Tn=>{var Qn=Tn,{onChange:we}=Qn,pe=Ss(Qn,["onChange"]);const[fe,Bn]=(0,vt.useState)(null);(0,vt.useEffect)(()=>{typeof fe=="number"&&fe>=0&&we(fe)},[fe]);const zn=Wn=>{const be=Math.floor(Wn/1e3);Bn(be)};return vt.createElement(ta,Wo(zs({},pe),{onChange:zn}))}},58856:function(Ze,En,bt){"use strict";bt.d(En,{Z:function(){return oe}});var vt=bt(59301);function oe(ue,Be){const me=(0,vt.useRef)();(0,vt.useEffect)(()=>{me.current=ue}),(0,vt.useEffect)(()=>{function Ee(){me.current()}if(Be!==null){let qt=setInterval(Ee,Be);return()=>clearInterval(qt)}},[Be])}},57700:function(Ze,En,bt){"use strict";bt.r(En),bt.d(En,{default:function(){return Ph}});var vt=bt(59301),oe=bt(89070),ue=bt(78241),Be=bt(43418),me=bt(8591),Ee=bt(3113),qt=bt(38854),Ce=bt(6848),Se=bt(99313),ve=bt(71418),se=bt(24905),Ae=bt(1710),_e=bt(92832),Dt=bt(61398),et=bt(99064),nt=bt(12290),ct=bt(34604),lt=bt(23210),pt=bt(61186),yt=bt.n(pt),Lt=bt(3294),kt=bt(36708),Ht=bt(5871),Yt=Object.defineProperty,$t=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,Pe=(Le,ce,Qt)=>ce in Le?Yt(Le,ce,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Le[ce]=Qt,ae=(Le,ce)=>{for(var Qt in ce||(ce={}))ee.call(ce,Qt)&&Pe(Le,Qt,ce[Qt]);if($t)for(var Qt of $t(ce))te.call(ce,Qt)&&Pe(Le,Qt,ce[Qt]);return Le},We=(Le,ce,Qt)=>new Promise((ti,yi)=>{var Si=ei=>{try{Li(Qt.next(ei))}catch(Mn){yi(Mn)}},Oi=ei=>{try{Li(Qt.throw(ei))}catch(Mn){yi(Mn)}},Li=ei=>ei.done?ti(ei.value):Promise.resolve(ei.value).then(Si,Oi);Li((Qt=Qt.apply(Le,ce)).next())});const ye=({shixunHomeworks:Le,dispatch:ce})=>{const Qt=(0,oe.useParams)(),[ti,yi]=(0,vt.useState)(!0),[Si]=ue.default.useForm();return vt.createElement(vt.Fragment,null,vt.createElement(Be.default,{centered:!0,title:"\u8C03\u5206",open:Le.actionTabs.key==="\u8C03\u5206",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>We(void 0,null,function*(){yield Si.validateFields();const Oi=Si.getFieldsValue();(yield(0,et.ZP)(`/api/student_works/${Le.actionTabs.id}/adjust_score.json`,{method:"post",body:ae({},Oi)})).status===0&&(me.ZP.success("\u8BC4\u9605\u6210\u529F"),Si.resetFields(),ce({type:"shixunHomeworks/setActionTabs",payload:{}}),ce({type:"shixunHomeworks/getStudentWorkCommon",payload:ae({},Qt)}))}),onCancel:()=>{ce({type:"shixunHomeworks/setActionTabs",payload:{}})}},vt.createElement("p",{className:"tc"},"\u8BE5\u5B66\u751F\u7684\u6700\u7EC8\u6210\u7EE9\u5C06\u4E0D\u4F1A\u6309\u7167\u8BC4\u5206\u89C4\u5219\u8FDB\u884C\u8BA1\u7B97"),vt.createElement(ue.default,{form:Si,layout:"horizontal"},vt.createElement("div",{style:{display:"flex",alignItems:"baseline"}},vt.createElement(ue.default.Item,{label:"\u6210\u7EE9",name:"score",rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}]},vt.createElement(Ht.Z,{min:0,placeholder:"\u8BF7\u586B\u5199\u5206\u6570"})),vt.createElement("span",{className:"ml10"},"\u5206")),vt.createElement("div",null,vt.createElement(ue.default.Item,{name:"comment"},vt.createElement(_e.default.TextArea,{placeholder:"\u8BF7\u586B\u5199\u60A8\u5BF9\u4F5C\u54C1\u8C03\u5206\u7684\u539F\u56E0",rows:8}))))))};var Ne=(0,oe.connect)(({shixunHomeworks:Le})=>({shixunHomeworks:Le}))(ye),Ie={flex_box_center:"flex_box_center___tMwax",flex_space_between:"flex_space_between___8GJsg",flex_box_vertical_center:"flex_box_vertical_center___IFELt",flex_box_center_end:"flex_box_center_end___IrFRG",flex_box_column:"flex_box_column___s0LgG",TabsStyle:"TabsStyle___r0bwM",bg:"bg___sFhaA",title:"title___bk4oD",nextComment:"nextComment___NmNBo",modal:"modal___tWPO8",MdEditor:"MdEditor___AAxeb",ratewarp:"ratewarp___NGrsd",item:"item___Le8W0",total:"total___MNh4V",a1:"a1___g1iJT",a2:"a2___h8k2X",a3:"a3___yk1km",export_type_modal_title:"export_type_modal_title___nMqX0",export_type_modal:"export_type_modal___dbFVU",export_type_modal_con:"export_type_modal_con___ujWeL",type_item:"type_item___oF9R5",type_item_active:"type_item_active___dfBaM",export_type_modal_waring:"export_type_modal_waring___k8RaP",ReviewStyle:"ReviewStyle___o5d5N",left_content:"left_content___Tdt77",left_title:"left_title___V11QV",see_work:"see_work___HAfMs",left_list:"left_list___sXmxX",list_title:"list_title___NmWRs",list_box:"list_box___nK01J",list_item:"list_item___rrWl_",item_img:"item_img___yMYSc",item_content:"item_content___ZJr_4",item_name:"item_name___PkA99",item_code:"item_code___g13cU",item_states:"item_states___Rwb1r",center_top:"center_top___hgoJF",center_top_title:"center_top_title___rVfnl",center_top_content:"center_top_content___Wfmlt",right_content:"right_content___nMMjC",right_form:"right_form___ahOzz",work_score:"work_score___sJRnv",work_img:"work_img___p6zO4",work_button:"work_button___NDoqh",pingyue:"pingyue___PDoT9",pingyue_title:"pingyue_title___Wsqbg",pingyue_score:"pingyue_score___kvMiC",pingyue_teacher_title:"pingyue_teacher_title___lyJ0m",top_content:"top_content___mJifP",top_content_img:"top_content_img___vbTWm",item_tags:"item_tags___K9Qrr",daochu:"daochu___WdJvT",foldClose:"foldClose___DQSiP",foldOpen:"foldOpen___J18go",ScoreDetailsBase:"ScoreDetailsBase___UG7u2",lastAdd:"lastAdd___T9F0p",btnAdd:"btnAdd___GCat1",buttonStyle:"buttonStyle___jWXWa",hiddenBar:"hiddenBar___ZRZYH",apply:"apply___WQ6t7"},rn=bt(85149),Dn=bt(89392),vn=bt(57490),Vt=bt(59301),It=Object.defineProperty,ne=Object.defineProperties,De=Object.getOwnPropertyDescriptors,Qe=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,on=(Le,ce,Qt)=>ce in Le?It(Le,ce,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Le[ce]=Qt,Cn=(Le,ce)=>{for(var Qt in ce||(ce={}))le.call(ce,Qt)&&on(Le,Qt,ce[Qt]);if(Qe)for(var Qt of Qe(ce))Oe.call(ce,Qt)&&on(Le,Qt,ce[Qt]);return Le},ln=(Le,ce)=>ne(Le,De(ce)),xn=(Le,ce,Qt)=>new Promise((ti,yi)=>{var Si=ei=>{try{Li(Qt.next(ei))}catch(Mn){yi(Mn)}},Oi=ei=>{try{Li(Qt.throw(ei))}catch(Mn){yi(Mn)}},Li=ei=>ei.done?ti(ei.value):Promise.resolve(ei.value).then(Si,Oi);Li((Qt=Qt.apply(Le,ce)).next())});const re=({classroomList:Le,loading:ce,dispatch:Qt,studentWorkDetail:ti})=>{const yi=(0,oe.useParams)(),[Si]=ue.default.useForm(),Oi=()=>xn(void 0,null,function*(){var Li;yield Si.validateFields();const ei=Cn({},Si.getFieldValue()),{selectArrs:Mn}=Le.actionTabs;ei.attachment_ids=(Li=ei.attachment_ids)==null?void 0:Li.map(er=>er.response.id),(yield(0,kt.mz)(ln(Cn({},ei),{homeworkId:Mn.work_id}))).status===0&&(Si.resetFields(),Qt({type:"shixunHomeworks/getStudentWorkSupplyDetail",payload:Cn({},Le.actionTabs.params)}),Qt({type:"classroomList/setActionTabs",payload:{}}))});return Vt.createElement(Be.default,{centered:!0,title:"\u8865\u4EA4\u9644\u4EF6",open:Le.actionTabs.key==="\u8865\u4EA4\u9644\u4EF6",bodyStyle:{minHeight:200},onOk:()=>xn(void 0,null,function*(){if(ti!=null&&ti.can_submit){if(!(ti!=null&&ti.submit_size)){me.ZP.warning("\u60A8\u7684\u4F5C\u54C1\u63D0\u4EA4\u673A\u4F1A\u5DF2\u7528\u5B8C\u3002\u5982\u9700\u7EE7\u7EED\u4FEE\u6539\uFF0C\u8BF7\u8054\u7CFB\u6307\u5BFC\u8001\u5E08\u6216\u5E73\u53F0\u8FD0\u8425\u3002");return}Be.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,width:472,content:Vt.createElement(Vt.Fragment,null,"\u4F60\u8FD8\u6709 ",Vt.createElement("span",{className:"ml5 mr5",style:{color:"#DF711C"}},ti==null?void 0:ti.submit_size)," \u6B21\u63D0\u4EA4\u673A\u4F1A\u3002\u786E\u8BA4\u63D0\u4EA4\u540E\uFF0C\u4E0A\u4E00\u6B21\u7684\u63D0\u4EA4\u8BB0\u5F55\u4F1A\u88AB\u8986\u76D6\u3002\u8BF7\u6CE8\u610F\uFF0C\u5230\u8FBE\u89C4\u5B9A\u7684\u63D0\u4EA4\u6B21\u6570\u540E\u5C06\u4E0D\u53EF\u518D\u6B21\u63D0\u4EA4\uFF0C\u786E\u5B9A\u662F\u5426\u63D0\u4EA4\uFF1F"),onOk:()=>{Oi()}});return}Oi()}),onCancel:()=>{Si.resetFields(),Qt({type:"classroomList/setActionTabs",payload:{}})}},Vt.createElement(ue.default,{form:Si,initialValues:{}},Vt.createElement(ue.default.Item,{name:"attachment_ids",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u9644\u4EF6"}]},Vt.createElement(vn.Z,null)),Vt.createElement(ue.default.Item,{name:"description"},Vt.createElement(_e.default.TextArea,{placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u8865\u4EA4\u9644\u4EF6\u7684\u539F\u56E0\uFF0C\u6700\u5927\u9650\u5236100\u4E2A\u5B57\u7B26",rows:7}))))};var kn=(0,oe.connect)(({classroomList:Le,loading:ce})=>({classroomList:Le,loading:ce}))(re),Zn=bt(955),On=bt(24065),Un=bt(39020),hi=bt(96460),Ri=bt(83312),nn=bt(8797),un=bt(23765),wn=bt(95237),ze=bt(43604),fn=bt(37906),sn={pinfen:"pinfen____hgN7",left:"left___ZyTXs",right:"right___OSPEM",tagStyleSzz:"tagStyleSzz___fzxbk",headpic:"headpic___d7fnl",new_style_box:"new_style_box___XOWhi",box_child:"box_child___uYxgt",box_item_top:"box_item_top___MohWv",yichang:"yichang___ppIPI",text_style:"text_style___V3FT_",text_style_red:"text_style_red___reUfY",btnWarp:"btnWarp___n5eYa",active:"active___JVU0m",feedbackSty:"feedbackSty___CeTDz"},Bt=bt(41984),Mt=bt(30917),xt=bt(19909),Ft=Object.defineProperty,Ut=Object.getOwnPropertySymbols,At=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,dn=(Le,ce,Qt)=>ce in Le?Ft(Le,ce,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Le[ce]=Qt,gn=(Le,ce)=>{for(var Qt in ce||(ce={}))At.call(ce,Qt)&&dn(Le,Qt,ce[Qt]);if(Ut)for(var Qt of Ut(ce))ge.call(ce,Qt)&&dn(Le,Qt,ce[Qt]);return Le};const pn=Le=>React.createElement("svg",gn({width:14,height:13,xmlns:"http://www.w3.org/2000/svg"},Le),React.createElement("title",null,"\u661F\u5F62"),React.createElement("path",{d:"m7 10.5-4.114 2.163.785-4.581L.343 4.837l4.6-.669L7 0l2.057 4.168 4.6.669-3.328 3.245.785 4.581z",fill:"#FA6400",fillRule:"evenodd"}));var Rn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTcgMTAuNS00LjExNCAyLjE2My43ODUtNC41ODFMLjM0MyA0LjgzN2w0LjYtLjY2OUw3IDBsMi4wNTcgNC4xNjggNC42LjY2OS0zLjMyOCAzLjI0NS43ODUgNC41ODF6IiBmaWxsPSIjRkE2NDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=",Mi=Object.defineProperty,ji=Object.getOwnPropertySymbols,wi=Object.prototype.hasOwnProperty,Ji=Object.prototype.propertyIsEnumerable,wo=(Le,ce,Qt)=>ce in Le?Mi(Le,ce,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Le[ce]=Qt,Io=(Le,ce)=>{for(var Qt in ce||(ce={}))wi.call(ce,Qt)&&wo(Le,Qt,ce[Qt]);if(ji)for(var Qt of ji(ce))Ji.call(ce,Qt)&&wo(Le,Qt,ce[Qt]);return Le};const Wr=Le=>React.createElement("svg",Io({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},Le),React.createElement("title",null,"\u62A5\u544A"),React.createElement("path",{d:"M3.629 14a2.38 2.38 0 0 1-2.373-2.373V4.311a.057.057 0 0 0-.06-.06H.564A.542.542 0 0 1 0 3.737V1.691C0 .76.81 0 1.81 0h8.868c.999 0 1.809.81 1.81 1.81v7.563a.057.057 0 0 0 .059.06h1.997a.557.557 0 0 1 .563.563v2.185a1.81 1.81 0 0 1-1.809 1.81L3.628 14Zm8.927-3.56a.057.057 0 0 0-.059.06v1.69a.81.81 0 0 0 1.622 0V10.5a.057.057 0 0 0-.06-.06h-1.503ZM2.314 4.252a.057.057 0 0 0-.06.06v7.306a1.377 1.377 0 0 0 1.375 1.375h7.959c.02 0 .04-.012.049-.03a.063.063 0 0 0 0-.06 1.814 1.814 0 0 1-.148-.721V1.819a.81.81 0 0 0-1.622 0v1.918a.536.536 0 0 1-.563.514h-6.99Zm-.505-3.243c-.445 0-.81.307-.81.683v1.502a.058.058 0 0 0 .059.06h7.741a.057.057 0 0 0 .06-.06V1.82c0-.248.05-.494.148-.722.01-.02 0-.04 0-.059a.054.054 0 0 0-.05-.03H1.81Zm2.314 9.462a.504.504 0 1 1 0-1.008H9.62a.504.504 0 1 1 0 1.008H4.123Zm0-2.689a.504.504 0 0 1 0-1.008H9.62a.504.504 0 1 1 0 1.008H4.123Z",fill:"#3061D0",fillRule:"nonzero"}));var nr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTMuNjI5IDE0YTIuMzggMi4zOCAwIDAgMS0yLjM3My0yLjM3M1Y0LjMxMWEuMDU3LjA1NyAwIDAgMC0uMDYtLjA2SC41NjRBLjU0Mi41NDIgMCAwIDEgMCAzLjczN1YxLjY5MUMwIC43Ni44MSAwIDEuODEgMGg4Ljg2OGMuOTk5IDAgMS44MDkuODEgMS44MSAxLjgxdjcuNTYzYS4wNTcuMDU3IDAgMCAwIC4wNTkuMDZoMS45OTdhLjU1Ny41NTcgMCAwIDEgLjU2My41NjN2Mi4xODVhMS44MSAxLjgxIDAgMCAxLTEuODA5IDEuODFMMy42MjggMTRabTguOTI3LTMuNTZhLjA1Ny4wNTcgMCAwIDAtLjA1OS4wNnYxLjY5YS44MS44MSAwIDAgMCAxLjYyMiAwVjEwLjVhLjA1Ny4wNTcgMCAwIDAtLjA2LS4wNmgtMS41MDNaTTIuMzE0IDQuMjUyYS4wNTcuMDU3IDAgMCAwLS4wNi4wNnY3LjMwNmExLjM3NyAxLjM3NyAwIDAgMCAxLjM3NSAxLjM3NWg3Ljk1OWMuMDIgMCAuMDQtLjAxMi4wNDktLjAzYS4wNjMuMDYzIDAgMCAwIDAtLjA2IDEuODE0IDEuODE0IDAgMCAxLS4xNDgtLjcyMVYxLjgxOWEuODEuODEgMCAwIDAtMS42MjIgMHYxLjkxOGEuNTM2LjUzNiAwIDAgMS0uNTYzLjUxNGgtNi45OVptLS41MDUtMy4yNDNjLS40NDUgMC0uODEuMzA3LS44MS42ODN2MS41MDJhLjA1OC4wNTggMCAwIDAgLjA1OS4wNmg3Ljc0MWEuMDU3LjA1NyAwIDAgMCAuMDYtLjA2VjEuODJjMC0uMjQ4LjA1LS40OTQuMTQ4LS43MjIuMDEtLjAyIDAtLjA0IDAtLjA1OWEuMDU0LjA1NCAwIDAgMC0uMDUtLjAzSDEuODFabTIuMzE0IDkuNDYyYS41MDQuNTA0IDAgMSAxIDAtMS4wMDhIOS42MmEuNTA0LjUwNCAwIDEgMSAwIDEuMDA4SDQuMTIzWm0wLTIuNjg5YS41MDQuNTA0IDAgMCAxIDAtMS4wMDhIOS42MmEuNTA0LjUwNCAwIDEgMSAwIDEuMDA4SDQuMTIzWiIgZmlsbD0iIzMwNjFEMCIgZmlsbC1ydWxlPSJub256ZXJvIi8+PC9zdmc+";const Cr=({handleCloseOrOpenModal:Le,dataInfo:ce,isShowButton:Qt=!0,className:ti=""})=>{const yi=()=>{if(ce!=null&&ce.teacher_score&&(ce==null?void 0:ce.teacher_score)>=0)return vt.createElement(vt.Fragment,null,"\u6559\u5E08\u8BC4\u5206",vt.createElement("span",{style:{color:"#CA7720"}},ce==null?void 0:ce.teacher_score));if(ce!=null&&ce.teaching_asistant_score&&(ce==null?void 0:ce.teaching_asistant_score)>=0)return vt.createElement(vt.Fragment,null,"\u52A9\u6559\u8BC4\u5206",vt.createElement("span",{style:{color:"#CA7720"}},ce==null?void 0:ce.teaching_asistant_score));if(ce!=null&&ce.student_score&&(ce==null?void 0:ce.student_score)>=0)return vt.createElement(vt.Fragment,null,"\u533F\u8BC4\u8BC4\u5206",vt.createElement("span",{style:{color:"#CA7720"}},ce==null?void 0:ce.student_score))};return vt.createElement(vt.Fragment,null,vt.createElement("div",{className:`${Ie.work_score} ${ti}`},vt.createElement("div",{style:{color:"#191919",fontWeight:600}},"\u4F5C\u4E1A\u5F97\u5206"),vt.createElement("div",{className:Ie.work_img},vt.createElement("div",{style:{height:"40px",lineHeight:"50px",fontSize:"24px",color:"#009C0F",fontWeight:600}},(ce==null?void 0:ce.work_score)||"--",vt.createElement("span",{style:{fontSize:"14px"}},"\u5206")),vt.createElement("div",{style:{fontSize:"12px",color:"#666666"}},"\u6700\u7EC8\u6210\u7EE9")),vt.createElement("img",{src:Rn}),vt.createElement("div",{style:{marginLeft:"10px",flex:1,marginRight:"10px",fontSize:"12px"}},"\u8BA1\u7B97\u89C4\u5219",vt.createElement(Ce.Z,{title:vt.createElement("span",{className:"font12"},"\u5728\u591A\u9879\u8BC4\u5206\u5360\u6BD4\u8BBE\u7F6E\u4E2D\uFF0C\u82E5\u67D0\u9879\u8BC4\u5206\u7F3A\u5931\uFF0C\u5176\u5360\u6BD4\u5C06\u7531\u5176\u4ED6\u5DF2\u8BC4\u5206\u9879\u5E73\u5206\uFF1B\u82E5\u4E24\u9879\u8BC4\u5206\u7F3A\u5931\uFF0C\u5219\u552F\u4E00\u5DF2\u8BC4\u5206\u9879\u5C06\u5360100%\u7684\u6BD4\u91CD\u3002")},vt.createElement("i",{className:"iconfont icon-tishixiaowenhao ml5 mr5 font12 c-grey-999 current",style:{lineHeight:"18px"}})),"=",ce!=null&&ce.final_mode?yi():vt.createElement(vt.Fragment,null,"\u6559\u5E08\u8BC4\u5206",vt.createElement("span",{style:{color:"#CA7720"}},(ce==null?void 0:ce.teacher_score)||"--","*",ce==null?void 0:ce.te_proportion),"+\u52A9\u6559\u8BC4\u5206",vt.createElement("span",{style:{color:"#CA7720"}},(ce==null?void 0:ce.teaching_asistant_score)||"--","*",ce==null?void 0:ce.ta_proportion),"+\u533F\u8BC4\u8BC4\u5206",vt.createElement("span",{style:{color:"#CA7720"}},(ce==null?void 0:ce.student_score)||"--","*",ce==null?void 0:ce.st_proportion)),"-\u6263\u5206\u9879 (\u8865\u4EA4\u6263\u5206",vt.createElement("span",{style:{color:"#CA7720"}},ce==null?void 0:ce.late_penalty),"+\u67E5\u91CD\u6263\u5206",vt.createElement("span",{style:{color:"#CA7720"}},ce==null?void 0:ce.repeat_minus_score),"+\u7F3A\u8BC4\u6263\u5206",vt.createElement("span",{style:{color:"#CA7720"}},ce==null?void 0:ce.absence_penalty),")"),Qt&&vt.createElement("div",{className:Ie.work_button,onClick:()=>{Le({key:"\u5F97\u5206\u8BE6\u60C5"})}},vt.createElement("img",{src:nr,style:{marginRight:"5px"}}),"\u67E5\u770B\u5F97\u5206\u8BE6\u60C5")))};var bo=(0,oe.connect)(({shixunHomeworks:Le})=>({shixunHomeworks:Le}))(Cr),Fo={form_item_warp:"form_item_warp___jRcx8",lable_name1:"lable_name1___NOUD6",h_lh_40:"h_lh_40___murfL",config_title:"config_title___Pz2EP"},fo=bt(59301),hr=(Le,ce,Qt)=>new Promise((ti,yi)=>{var Si=ei=>{try{Li(Qt.next(ei))}catch(Mn){yi(Mn)}},Oi=ei=>{try{Li(Qt.throw(ei))}catch(Mn){yi(Mn)}},Li=ei=>ei.done?ti(ei.value):Promise.resolve(ei.value).then(Si,Oi);Li((Qt=Qt.apply(Le,ce)).next())});const dr=({shixunHomeworks:Le,loading:ce,dispatch:Qt,getData:ti})=>{var yi,Si;const{ai_review_settings:Oi}=Le==null?void 0:Le.studentWorkDetail,[Li]=ue.default.useForm(),ei=[{name:"\u683C\u5F0F\u89C4\u8303",content:"\u4F5C\u4E1A\u7B26\u5408\u63D0\u4EA4\u8981\u6C42\uFF08\u547D\u540D\u3001\u683C\u5F0F\u3001\u9644\u4EF6\u5B8C\u6574\uFF09\uFF0C\u6587\u6863\u7ED3\u6784\u6E05\u6670\uFF0C\u8BED\u8A00\u8868\u8FBE\u51C6\u786E",weight:10},{name:"\u903B\u8F91\u4E25\u8C28",content:"\u8BBA\u8FF0\u6E05\u6670\uFF0C\u5185\u5BB9\u8FDE\u8D2F\uFF0C\u8BBA\u8BC1\u5408\u7406\uFF0C\u6709\u5145\u5206\u7684\u6570\u636E\u6216\u7406\u8BBA\u652F\u6491",weight:20},{name:"\u5185\u5BB9\u5B8C\u6574",content:"\u8986\u76D6\u6240\u6709\u8981\u6C42\u7684\u5185\u5BB9\uFF0C\u5206\u6790\u6DF1\u5165\uFF0C\u5305\u542B\u5B9E\u9A8C\u73B0\u8C61\u3001\u6570\u636E\u548C\u7ED3\u8BBA",weight:60},{name:"\u521B\u65B0\u4E0E\u601D\u8003",content:"\u63D0\u51FA\u4E2A\u4EBA\u89C1\u89E3\u6216\u6539\u8FDB\u5EFA\u8BAE\uFF0C\u5BF9\u5B9E\u9A8C\u7ED3\u679C\u6216\u95EE\u9898\u6709\u53CD\u601D\u4E0E\u603B\u7ED3",weight:10}];(0,vt.useEffect)(()=>{var er;((er=Le.actionTabs)==null?void 0:er.key)==="\u667A\u80FD\u8BC4\u9605\u914D\u7F6E"&&Li.setFieldsValue({ai_review_settings:(Oi==null?void 0:Oi.length)>0?Oi:ei,update_ai_review_settings:!1})},[(yi=Le.actionTabs)==null?void 0:yi.key]);const Mn=()=>{Qt({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},Di=()=>hr(void 0,null,function*(){var er;const Ps=Li.getFieldValue("ai_review_settings");if(!(0,Zn.BR)(Ps))return;const ro=Li.getFieldsValue();(er=Le.actionTabs)==null||er.onOk(ro),Mn()});return fo.createElement(Be.default,{width:1150,centered:!0,title:"\u667A\u80FD\u8BC4\u9605",open:((Si=Le.actionTabs)==null?void 0:Si.key)==="\u667A\u80FD\u8BC4\u9605\u914D\u7F6E",destroyOnClose:!0,onCancel:()=>Mn(),okText:"\u5F00\u59CB\u8BC4\u9605",onOk:()=>Di(),bodyStyle:{maxHeight:"calc(100vh - 200px)",overflowY:"auto"}},fo.createElement("div",{className:`${Fo.config_title}`},"\u8BC4\u5206\u6807\u51C6"),fo.createElement(ue.default,{form:Li,colon:!1},fo.createElement("div",{className:Fo.form_item_warp},fo.createElement(ue.default.List,{name:"ai_review_settings"},(er,{add:Ps,remove:In})=>er.map((ro,Jt)=>{var He;return fo.createElement(wn.Z,{key:ro.key,style:{padding:"5px 14px 5px 30px"}},fo.createElement(ze.Z,{className:Fo.lable_name1},"\u8BC4\u5206\u9879\u76EE"),fo.createElement(ze.Z,null,fo.createElement(ue.default.Item,{className:"ml10",name:[ro.name,"name"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC4\u5206\u9879\u76EE"}]},fo.createElement(_e.default,{onChange:ls=>{Li.setFieldValue([ro.name,"content"],ls.target.value)},placeholder:"\u8BF7\u8F93\u5165\u6700\u591A10\u5B57\u7B26",size:"large",style:{width:164},maxLength:10,className:"mr20"}))),fo.createElement(ze.Z,{className:Fo.lable_name1},"\u8BC4\u5206\u6807\u51C6"),fo.createElement(ze.Z,null,fo.createElement(ue.default.Item,{className:"ml10",name:[ro.name,"content"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC4\u5206\u6807\u51C6"}]},fo.createElement(_e.default,{onChange:ls=>{Li.setFieldValue([ro.name,"content"],ls.target.value)},placeholder:"\u8BF7\u8F93\u5165\u8BC4\u5206\u6807\u51C6",size:"large",style:{width:467},className:"mr20",maxLength:500}))),fo.createElement(ze.Z,{className:Fo.lable_name1},"\u6743\u91CD"),fo.createElement(ze.Z,null,fo.createElement(ue.default.Item,{className:"ml10",name:[ro.name,"weight"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6743\u91CD"}]},fo.createElement(Ht.Z,{onChange:ls=>{Number.isInteger(ls)||Li.setFieldValue([ro.name,"weight"],parseFloat(ls).toFixed(2))},size:"large",addonAfter:"%",placeholder:"\u8BF7\u8F93\u5165\u6743\u91CD",min:.01,step:1,max:100,style:{width:"134px"}}))),fo.createElement(wn.Z,{className:(He=Fo)==null?void 0:He.h_lh_40},fo.createElement(ze.Z,null,fo.createElement("i",{className:"iconfont icon-tianjiatimu ml20 current",style:{color:"#00B187"},onClick:()=>{if(er.length>=10)return me.ZP.info("\u6700\u591A\u53EA\u80FD\u6DFB\u52A010\u4E2A\u8BC4\u5206\u9879\u76EE");Ps()}})),Jt>0&&fo.createElement(ze.Z,null,fo.createElement("i",{className:"iconfont icon-shanjian1 ml10 current",style:{color:"#E30000"},onClick:()=>{In(ro.name)}}))))}))),fo.createElement(ue.default.Item,{name:"update_ai_review_settings",valuePropName:"checked"},fo.createElement(se.default,{style:{color:"#000"}},"\u5C06\u5F53\u524D\u8BC4\u5206\u6807\u51C6\u5E94\u7528\u4E8E\u6574\u4EFD\u4F5C\u4E1A",fo.createElement("span",{style:{color:"#666"}},"\uFF08\u9009\u4E2D\u540E\uFF0C\u5C06\u66FF\u6362\u667A\u80FD\u8BC4\u9605\u7684\u8BC4\u5206\u6807\u51C6\uFF1B\u672A\u9009\u4E2D\uFF0C\u4EC5\u5BF9\u672C\u6B21\u667A\u80FD\u8BC4\u9605\u751F\u6548\uFF09")))))};var Ui=(0,oe.connect)(({shixunHomeworks:Le,loading:ce,user:Qt})=>({shixunHomeworks:Le,loading:ce.effects,user:Qt}))(dr),Ct=Object.defineProperty,zs=Object.defineProperties,Wo=Object.getOwnPropertyDescriptors,Ss=Object.getOwnPropertySymbols,ta=Object.prototype.hasOwnProperty,ss=Object.prototype.propertyIsEnumerable,ea=(Le,ce,Qt)=>ce in Le?Ct(Le,ce,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Le[ce]=Qt,Tn=(Le,ce)=>{for(var Qt in ce||(ce={}))ta.call(ce,Qt)&&ea(Le,Qt,ce[Qt]);if(Ss)for(var Qt of Ss(ce))ss.call(ce,Qt)&&ea(Le,Qt,ce[Qt]);return Le},Qn=(Le,ce)=>zs(Le,Wo(ce)),we=(Le,ce)=>{var Qt={};for(var ti in Le)ta.call(Le,ti)&&ce.indexOf(ti)<0&&(Qt[ti]=Le[ti]);if(Le!=null&&Ss)for(var ti of Ss(Le))ce.indexOf(ti)<0&&ss.call(Le,ti)&&(Qt[ti]=Le[ti]);return Qt},pe=(Le,ce,Qt)=>new Promise((ti,yi)=>{var Si=ei=>{try{Li(Qt.next(ei))}catch(Mn){yi(Mn)}},Oi=ei=>{try{Li(Qt.throw(ei))}catch(Mn){yi(Mn)}},Li=ei=>ei.done?ti(ei.value):Promise.resolve(ei.value).then(Si,Oi);Li((Qt=Qt.apply(Le,ce)).next())});const fe=({shixunHomeworks:Le,loading:ce,user:Qt,globalSetting:ti})=>({shixunHomeworks:Le,loading:ce.effects,user:Qt,globalSetting:ti}),Bn=Le=>{var ce=Le,{ModalProps:Qt={},shixunHomeworks:ti,user:yi}=ce,Si=we(ce,["ModalProps","shixunHomeworks","user"]),Oi,Li;const[ei]=ue.default.useForm(),Mn=(0,oe.useParams)(),{userInfo:Di={}}=yi,[,er,Ps,In]=(0,Ri.U)(kt.Yn,{homeworkId:Mn==null?void 0:Mn.userId}),[,ro,Jt,He]=(0,Ri.U)(kt.Am,{homeworkId:Mn==null?void 0:Mn.userId}),[,ls,Na]=(0,Ri.U)(kt.QC,{userId:Mn==null?void 0:Mn.userId}),[Jo,Gr]=(0,vt.useState)({page:1,limit:10}),[Zr,Ho]=(0,vt.useState)(!1),Qr=[{title:"\u8BC4\u9605\u4EBA\u59D3\u540D",dataIndex:"user_name",ellipsis:!0,width:100,render:Yn=>vt.createElement(Ce.Z,{title:Yn},vt.createElement("span",null,Yn))},{title:"\u8BC4\u5206",dataIndex:"score",width:80},{title:"\u8BC4\u8BED",dataIndex:"content",ellipsis:!0,render:Yn=>vt.createElement(Ce.Z,{title:Yn},vt.createElement("span",null,Yn))},{title:"\u63D0\u4EA4\u4F5C\u4E1A\u7248\u672C",dataIndex:"student_work_num",width:110,render:(Yn,_i)=>{var zo;return vt.createElement("a",{style:{color:Yn===((zo=In==null?void 0:In.data)==null?void 0:zo.max_student_work_num)?"#1B8565":"#FA6400"},target:"_blank",href:`/classrooms/${Mn==null?void 0:Mn.coursesId}/common_homework/${Mn==null?void 0:Mn.categoryId}/review/${_i==null?void 0:_i.student_work_id}?history_id=${_i==null?void 0:_i.history_id}`},"\u7B2C ",Yn," \u6B21")}},{title:"\u64CD\u4F5C",dataIndex:"comment_id",width:150,render:(Yn,_i)=>vt.createElement("div",{className:"flex item-center gap-20px"},(_i==null?void 0:_i.user_login)===(Di==null?void 0:Di.login)&&vt.createElement("a",{onClick:()=>{var zo;ei.setFieldsValue(Qn(Tn({},_i),{comment:_i==null?void 0:_i.content,score_details:((zo=_i==null?void 0:_i.score_details)==null?void 0:zo.map(Hi=>Tn({},Hi)))||[]})),Ho(!0)}},"\u7F16\u8F91"),vt.createElement("a",{target:"_blank",href:`/classrooms/${Mn==null?void 0:Mn.coursesId}/common_homework/${Mn==null?void 0:Mn.categoryId}/review/${_i==null?void 0:_i.student_work_id}?history_id=${_i==null?void 0:_i.history_id}`},"\u67E5\u770B"),(_i==null?void 0:_i.user_login)===(Di==null?void 0:Di.login)&&vt.createElement("a",{className:"current-delete-hover",onClick:()=>{Zo(_i)}},"\u5220\u9664"))}],Zo=(Yn={})=>{Be.default.confirm({title:"\u662F\u5426\u786E\u8BA4\u5220\u9664?",centered:!0,onOk:()=>pe(void 0,null,function*(){(yield Na({score_id:Yn==null?void 0:Yn.comment_id})).status===0&&(me.ZP.success("\u5220\u9664\u6210\u529F"),Gr({page:1,limit:10}),Ho(!1))})})};return(0,vt.useEffect)(()=>{Qt!=null&&Qt.open&&Ps(Tn({homeworkId:Mn==null?void 0:Mn.userId},Jo))},[Jo,Qt==null?void 0:Qt.open]),vt.createElement(vt.Fragment,null,vt.createElement(Be.default,Tn({},Tn({title:"\u5386\u53F2\u8BC4\u9605\u8BB0\u5F55",centered:!0,width:800},Qt)),vt.createElement(Ae.default,{className:"mt10",loading:er,columns:Qr,locale:{emptyText:vt.createElement(nn.Z,null)},dataSource:((Oi=In==null?void 0:In.data)==null?void 0:Oi.list)||[],pagination:{hideOnSinglePage:!0,total:((Li=In==null?void 0:In.data)==null?void 0:Li.size)||0,onChange:(Yn,_i)=>{Gr(Qn(Tn({},Jo),{page:Yn,limit:_i}))},current:Jo==null?void 0:Jo.page,pageSize:Jo==null?void 0:Jo.limit,showTotal:Yn=>vt.createElement(vt.Fragment,null,"\u5171",vt.createElement("span",{className:"ml5 mr5 c-blue"},Yn),"\u6761\u6570\u636E")}})),vt.createElement(li,{FormProps:{form:ei,onFinish:(...Yn)=>pe(void 0,[...Yn],function*(_i={}){const zo=yield Jt(Qn(Tn({},_i),{homeworkId:Mn==null?void 0:Mn.userId}));(zo==null?void 0:zo.status)===0&&(me.ZP.success("\u4FEE\u6539\u6210\u529F"),Gr({page:1,limit:10}),Ho(!1))})},ModalProps:{open:Zr,onCancel:()=>{Ho(!1)},onOk:()=>{ei.submit()},confirmLoading:ro}}))},zn=(0,oe.connect)(fe)(Bn),Wn=Le=>{var ce=Le,{FormProps:Qt,DataProps:ti={},isShowStyles:yi=!0,shixunHomeworks:Si,dispatch:Oi}=ce,Li=we(ce,["FormProps","DataProps","isShowStyles","shixunHomeworks","dispatch"]);const[ei]=ue.default.useForm(),{form:Mn=ei}=Qt,{studentWorkDetail:Di,workDetail:er}=Si,Ps=(0,oe.useParams)(),In=ue.default.useWatch("comment",Mn),ro=ue.default.useWatch("score",Mn),Jt=ue.default.useWatch("score_details",Mn),[He,ls]=Be.default.useModal(),[Na,Jo]=(0,vt.useState)(!1),[Gr,Zr]=(0,vt.useState)(!1),Ho=(0,vt.useRef)({});(0,vt.useEffect)(()=>{var Yn;!(Di!=null&&Di.single_score)&&(Jt==null?void 0:Jt.length)>0&&Mn.setFieldsValue({score:(Yn=Jt||[])==null?void 0:Yn.reduce((_i,zo)=>(0,Zn.EN)(_i,zo.score||0,"+"),0)})},[Jt]);const Qr=Yn=>pe(void 0,null,function*(){const{mes:_i,setChatData:zo,setTyping:Hi}=Yn,Ei=yield(0,et.ZP)("/api/intelligent_reviews/large_model_intelligent_qa.json",{method:"post",body:Tn({query:_i,student_work_id:Ps.userId},Ho.current)});Ei.answer=(Ei==null?void 0:Ei.status)==-3?Ei.message:Ei==null?void 0:Ei.answer,Ei!=null&&Ei.answer&&zo(Uo=>[...Uo].map((Fr,Bo)=>Bo===Uo.length-1?Qn(Tn({},Fr),{text:Ei==null?void 0:Ei.answer,loading:!1,response:Ei}):Fr))}),Zo=({chatData:Yn,setChatData:_i,setLoading:zo,getData:Hi,renderChatItems:Ei})=>{Oi({type:"shixunHomeworks/setActionTabs",payload:{key:"\u667A\u80FD\u8BC4\u9605\u914D\u7F6E",onOk:Uo=>{Ho.current=Uo,Zr(!0),zo(!0);const Fr=Ei();Fr[0].show=!1,_i(Fr),Hi()}}})};return vt.createElement(vt.Fragment,null,ls,vt.createElement(ue.default.Item,{hidden:!0,name:"score_id",label:"\u8FD9\u4E2A\u662F\u7528\u6765\u6536\u96C6score_id\u7684"}),!(ti!=null&&ti.disabledScore)&&vt.createElement(vt.Fragment,null,Di!=null&&Di.single_score?vt.createElement(ue.default.Item,{className:Ie.ReviewStyle,name:"score",rules:[{required:!(0,On.GJ)(),message:"\u8BF7\u586B\u5199\u5206\u6570"}],label:vt.createElement("div",{className:"w-full flex justify-between item-center"},vt.createElement("span",null,"\u8BC4\u5206"),(er==null?void 0:er.is_open_ai_review)&&vt.createElement(xt.Z,{title:"\u667A\u80FD\u8BC4\u9605",visible:Gr,onOpen:Zo,onClose:()=>{Zr(!1)},loadingOption:{text:"AI\u8BC4\u9605\u4E2D..."},hideUpload:!0,showDefaultTips:!1,hideInputBox:!0,customRequest:Qr,extraAnswerAction:Yn=>{var _i;return!Yn.loading&&![-1,-3].includes((_i=Yn==null?void 0:Yn.response)==null?void 0:_i.status)&&vt.createElement("div",{className:Ie.apply,onClick:()=>{const zo=()=>{var Hi,Ei;Mn.setFieldsValue({score:(Hi=Yn==null?void 0:Yn.response)==null?void 0:Hi.score,comment:(Ei=Yn==null?void 0:Yn.response)==null?void 0:Ei.remarks}),Zr(!1)};if(ro||In){He.confirm({icon:null,title:"\u63D0\u793A",centered:!0,content:"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8BC4\u5206\u6216\u8BC4\u8BED\u8F93\u5165\u6846\u4E2D\u5DF2\u6709\u5185\u5BB9\uFF0C\u4E00\u952E\u5E94\u7528\u5C06\u4F1A\u8986\u76D6\u539F\u6709\u5185\u5BB9\u3002\u662F\u5426\u5E94\u7528\uFF1F",okText:"\u5E94\u7528",onOk:zo});return}zo()}},vt.createElement("i",{style:{color:"#3061D0"},className:"iconfont icon-yijianyingyong1 font12 mr5"}),"\u4E00\u952E\u5E94\u7528")}},vt.createElement(Ee.ZP,{icon:vt.createElement("img",{src:bt(11689)}),type:"link"},"\u667A\u80FD\u8BC4\u9605")))},vt.createElement(Ht.Z,{className:"w-full",step:.1,min:0,placeholder:"\u8BF7\u586B\u5199\u5206\u6570",addonAfter:"\u5206"})):vt.createElement("div",{className:yi?"gap-10px":"gap-20px mb20",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(200px, 1fr))"}},vt.createElement(ue.default.List,{name:"score_details"},(Yn,{add:_i,remove:zo})=>vt.createElement(vt.Fragment,null,Yn.map(Hi=>vt.createElement("div",{key:Hi.key,className:yi?"pt10 pb10 p20":"",style:{background:yi&&"#F6F7F9"}},vt.createElement("div",{className:"flex justify-between mb10"},vt.createElement("div",{className:"multi_ellipsis1"},Mn.getFieldValue(["score_details",Hi.name,"name"])),vt.createElement("div",{className:"c-grey-666"},"\uFF08\u6EE1\u5206",Mn.getFieldValue(["score_details",Hi.name,"full_score"]),"\u5206\uFF09")),vt.createElement(ue.default.Item,{className:"mb0",name:[Hi.name,"score"],rules:Mn.getFieldValue(["score_details",Hi.name,"isAllScore"])?null:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u6570"}]},vt.createElement(Ht.Z,{className:"w-full",stringMode:!0,min:0,max:Mn.getFieldValue(["score_details",Hi.name,"full_score"]),placeholder:"\u8BF7\u8F93\u5165\u5206\u6570",controls:!1,addonAfter:"\u5206"})))))),vt.createElement("div",{key:"allScore",className:yi?"pt10 pb10 p20":"",style:{background:yi&&"#F6F7F9"}},vt.createElement("div",{className:"flex justify-between mb10"},vt.createElement("div",{className:"multi_ellipsis1 c-blue"},"\u7EFC\u5408\u5F97\u5206"),vt.createElement("div",{className:"c-grey-666"},"\uFF08\u6EE1\u5206100\u5206\uFF09")),vt.createElement(ue.default.Item,{className:"mb0",name:"score"},vt.createElement(Ht.Z,{className:"w-full",stringMode:!0,disabled:!0,placeholder:"\u8BF7\u8F93\u5165\u5206\u6570",controls:!1,addonAfter:"\u5206"}))))),vt.createElement(ue.default.Item,{name:"comment",className:Ie.ReviewStyle,label:vt.createElement("div",{className:"w-full flex justify-between item-center"},vt.createElement("span",null,"\u8BC4\u8BED"),vt.createElement(Mt.Z,{isShowComponent:(0,On.G5)(),ModalProps:{open:Na,onCancel:()=>{Jo(!1)}},onDataSelect:(Yn,{node:_i})=>{const zo=()=>{Mn.setFieldsValue({comment:_i==null?void 0:_i.value}),Jo(!1)};if(In){He.confirm({icon:null,title:"\u63D0\u793A",centered:!0,content:"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8BC4\u8BED\u8F93\u5165\u6846\u4E2D\u5DF2\u6709\u5185\u5BB9\uFF0C\u4F7F\u7528\u5E38\u7528\u8BC4\u8BED\u5C06\u4F1A\u8986\u76D6\u539F\u6709\u5185\u5BB9\u3002\u662F\u5426\u4F7F\u7528\uFF1F",okText:"\u4F7F\u7528",onOk:zo});return}zo()}},vt.createElement(Ee.ZP,{style:{padding:0,height:"auto"},icon:vt.createElement("i",{className:"iconfont icon-changyongpingyu"}),type:"link",onClick:Yn=>{Yn.stopPropagation(),Jo(!0)}},"\u5E38\u7528\u8BC4\u8BED")))},vt.createElement(Bt.h,{height:200,scrollId:"comment",placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5BF9\u672C\u4F5C\u54C1\u7684\u8BC4\u8BED\uFF0C\u6700\u5927\u9650\u52362000\u4E2A\u5B57\u7B26"})),vt.createElement(Ui,null))},be=(0,oe.connect)(fe)(Wn),An=Le=>{var ce=Le,{ModalProps:Qt={},DataProps:ti={},shixunHomeworks:yi,FormProps:Si}=ce,Oi=we(ce,["ModalProps","DataProps","shixunHomeworks","FormProps"]);const{form:Li}=Si,{studentWorkDetail:ei}=yi;return vt.createElement(Be.default,Tn({},Tn({title:vt.createElement(vt.Fragment,null,"\u7F16\u8F91\u8BC4\u8BED",!(ei!=null&&ei.single_score)&&vt.createElement("span",{className:"ml20 font16",style:{color:"#FA6400"}},"\u6CE8\u610F\uFF1A\u5F00\u542F\u591A\u7EF4\u5EA6\u8BC4\u5206")),centered:!0,width:ei!=null&&ei.single_score?662:1120},Qt)),vt.createElement(ue.default,Tn({},Tn({size:"large",layout:"vertical"},Si)),vt.createElement(be,{FormProps:{form:Li},DataProps:ti})))},li=(0,oe.connect)(fe)(An),Jn=Le=>{var ce=Le,{ModalProps:Qt={},DataProps:ti={},shixunHomeworks:yi}=ce,Si=we(ce,["ModalProps","DataProps","shixunHomeworks"]),Oi,Li,ei;const{studentWorkDetail:Mn}=yi,[Di,er]=(0,vt.useState)({teacherList:[],assistantsList:[],anonymousCommentList:[]}),Ps=(In,ro,Jt="")=>({title:Jt==="anonymous_comment"?vt.createElement(Ce.Z,{title:(0,On.G5)()&&(In==null?void 0:In.name)},vt.createElement("a",null,"\u533F\u540D")):In==null?void 0:In.name,dataIndex:`score${ro}`,align:"center",render:(He,ls,Na)=>Na===0?vt.createElement(vt.Fragment,null,He,ls[`old_score${ro}`]&&vt.createElement("span",{style:{color:"#009C0F"}},"\uFF08\u6559\u5E08\u8865\u5206\uFF1A",ls[`old_score${ro}`],"\uFF09")):vt.createElement("div",{className:"flex item-center justify-center"},vt.createElement("div",{style:{width:166}},He==null?void 0:He.map((Jo,Gr)=>vt.createElement("div",{key:Gr,className:"flex justify-between"},Jo==null?void 0:Jo.name,vt.createElement("span",{className:"ml5",style:{color:"#009C0F"}},Jo==null?void 0:Jo.score)))))});return(0,vt.useEffect)(()=>{var In,ro,Jt,He,ls,Na;if(Mn&&(Qt!=null&&Qt.open)){const Jo=[{},{}],Gr=[{},{}],Zr=[{},{}];((In=Mn==null?void 0:Mn.teacher_score_list)==null?void 0:In.length)>0&&((ro=Mn==null?void 0:Mn.teacher_score_list)==null||ro.forEach((Ho,Qr)=>{Jo[0][`score${Qr}`]=Ho==null?void 0:Ho.score,Jo[1][`score${Qr}`]=Ho==null?void 0:Ho.user_score})),((Jt=Mn==null?void 0:Mn.assistants_score_list)==null?void 0:Jt.length)>0&&((He=Mn==null?void 0:Mn.assistants_score_list)==null||He.forEach((Ho,Qr)=>{Gr[0][`score${Qr}`]=Ho==null?void 0:Ho.score,Gr[1][`score${Qr}`]=Ho==null?void 0:Ho.user_score})),((ls=Mn==null?void 0:Mn.anonymous_comment_score_list)==null?void 0:ls.length)>0&&((Na=Mn==null?void 0:Mn.anonymous_comment_score_list)==null||Na.forEach((Ho,Qr)=>{Ho!=null&&Ho.old_score?(Zr[0][`score${Qr}`]=Ho==null?void 0:Ho.old_score,Zr[0][`old_score${Qr}`]=Ho==null?void 0:Ho.score):(Zr[0][`score${Qr}`]=Ho==null?void 0:Ho.score,Zr[0][`old_score${Qr}`]=Ho==null?void 0:Ho.old_score),Zr[1][`score${Qr}`]=Ho==null?void 0:Ho.user_score})),er({teacherList:Mn!=null&&Mn.single_score?[Jo[0]]:Jo,assistantsList:Mn!=null&&Mn.single_score?[Gr[0]]:Gr,anonymousCommentList:Mn!=null&&Mn.single_score?[Zr[0]]:Zr})}},[Mn,Qt==null?void 0:Qt.open]),vt.createElement(Be.default,Tn({},Tn({title:"\u5F97\u5206\u8BE6\u60C5",centered:!0,width:1200,bodyStyle:{maxHeight:"80vh"}},Qt)),vt.createElement(bo,{className:"mt0",dataInfo:Mn,isShowButton:!1}),vt.createElement("div",{className:`${Ie.ScoreDetailsBase} flex flex-col gap-20px`},((Oi=Mn==null?void 0:Mn.teacher_score_list)==null?void 0:Oi.length)>0&&vt.createElement("div",{className:"flex"},vt.createElement("div",{className:"c-grey-333 font14 blod flex item-center justify-center",style:{background:"rgba(48,97,208,0.1)",width:60,padding:"20px 15px"}},"\u6559\u5E08\u8BC4\u5206"),vt.createElement(Ae.default,{className:"flex-1",style:{minWidth:0},bordered:!0,dataSource:Di==null?void 0:Di.teacherList,pagination:!1,scroll:{x:"max-content"},columns:[...((Mn==null?void 0:Mn.teacher_score_list)||[]).map((In,ro)=>Ps(In,ro)),{title:`\u6700\u7EC8\u5F97\u5206\uFF08${(Mn==null?void 0:Mn.teacher_mode)===1?"\u5E73\u5747\u8BC4\u5206":"\u6700\u7EC8\u8BC4\u5206"}\uFF09`,dataIndex:"value",align:"center",width:224,fixed:"right",render:In=>vt.createElement("span",{style:{color:"#009C0F"}},Mn==null?void 0:Mn.teacher_score),onCell:(In,ro)=>({rowSpan:ro%2==0?2:0})}]})),((Li=Mn==null?void 0:Mn.assistants_score_list)==null?void 0:Li.length)>0&&vt.createElement("div",{className:"flex"},vt.createElement("div",{className:"c-grey-333 font14 blod flex item-center justify-center",style:{background:"rgba(48,97,208,0.1)",width:60,padding:"20px 15px"}},"\u52A9\u6559\u8BC4\u5206"),vt.createElement(Ae.default,{className:"flex-1",style:{minWidth:0},bordered:!0,dataSource:(Di==null?void 0:Di.assistantsList)||[],pagination:!1,scroll:{x:"max-content"},columns:[...((Mn==null?void 0:Mn.assistants_score_list)||[]).map((In,ro)=>Ps(In,ro)),{title:`\u6700\u7EC8\u5F97\u5206\uFF08${(Mn==null?void 0:Mn.ta_mode)===1?"\u5E73\u5747\u8BC4\u5206":"\u6700\u7EC8\u8BC4\u5206"}\uFF09`,dataIndex:"value",align:"center",width:224,fixed:"right",render:In=>vt.createElement("span",{style:{color:"#009C0F"}},Mn==null?void 0:Mn.teaching_asistant_score),onCell:(In,ro)=>({rowSpan:ro%2==0?2:0})}]})),(Mn==null?void 0:Mn.anonymous_comment)&&((ei=Mn==null?void 0:Mn.anonymous_comment_score_list)==null?void 0:ei.length)>0&&vt.createElement("div",{className:"flex"},vt.createElement("div",{className:"c-grey-333 font14 blod flex item-center justify-center",style:{background:"rgba(48,97,208,0.1)",width:60,padding:"20px 15px"}},"\u533F\u8BC4\u8BC4\u5206"),vt.createElement(Ae.default,{className:"flex-1",style:{minWidth:0},bordered:!0,dataSource:(Di==null?void 0:Di.anonymousCommentList)||[],pagination:!1,scroll:{x:"max-content"},columns:[...((Mn==null?void 0:Mn.anonymous_comment_score_list)||[]).map((In,ro)=>Ps(In,ro,"anonymous_comment")),{title:"\u6700\u7EC8\u5F97\u5206\uFF08\u53D6\u5E73\u5747\u5206\uFF09",dataIndex:"value",align:"center",width:224,fixed:"right",render:In=>vt.createElement("span",{style:{color:"#009C0F"}}," ",Mn==null?void 0:Mn.student_score),onCell:(In,ro)=>({rowSpan:ro%2==0?2:0})}]})),vt.createElement("div",{className:"flex"},vt.createElement("div",{className:"c-grey-333 font14 blod flex item-center justify-center",style:{background:"rgba(48,97,208,0.1)",width:60,padding:"20px 15px"}},"\u6263\u5206"),vt.createElement(Ae.default,{className:" flex-1",bordered:!0,dataSource:[Mn],pagination:!1,columns:[{title:"\u8865\u4EA4\u6263\u5206",dataIndex:"late_penalty",align:"center"},{title:"\u67E5\u91CD\u6263\u5206",dataIndex:"repeat_minus_score",align:"center"},(Mn==null?void 0:Mn.anonymous_comment)&&{title:"\u7F3A\u8BC4\u6263\u5206",dataIndex:"absence_penalty",align:"center"},{title:"\u8FDD\u8BC4\u6263\u5206",dataIndex:"appeal_penalty",align:"center"},{title:"\u6700\u7EC8\u6263\u5206",dataIndex:"value",align:"center",width:224,render:(In,ro)=>vt.createElement("span",{style:{color:"#009C0F"}},((ro==null?void 0:ro.late_penalty)||0)+((ro==null?void 0:ro.repeat_minus_score)||0)+((ro==null?void 0:ro.absence_penalty)||0)+((ro==null?void 0:ro.appeal_penalty)||0))}].filter(In=>In)}))))},Ki=(0,oe.connect)(fe)(Jn),ie=Le=>{var ce=Le,{ModalProps:Qt={},DataProps:ti={},shixunHomeworks:yi,dispatch:Si}=ce,Oi=we(ce,["ModalProps","DataProps","shixunHomeworks","dispatch"]);const{workDetail:Li}=yi,ei=(0,oe.useParams)();return vt.createElement(Be.default,Tn({},Tn({title:"\u4F5C\u4E1A\u63CF\u8FF0",centered:!0,width:1200,bodyStyle:{maxHeight:"80vh"}},Qt)),vt.createElement(rn.Z,{className:"mt10",value:(Li==null?void 0:Li.description)||"\u6682\u65E0\uFF5E"}),vt.createElement(un.Z,{authority:(0,On.GJ)(),showDimensions:!1,dataSource:Li==null?void 0:Li.attachments,callback:()=>{Si({type:"shixunHomeworks/getWorkDetail",payload:{categoryId:ei.categoryId}})}}))},yn=(0,oe.connect)(fe)(ie);var Kn=Object.defineProperty,Wi=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,an=Object.prototype.propertyIsEnumerable,Gi=(Le,ce,Qt)=>ce in Le?Kn(Le,ce,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Le[ce]=Qt,Co=(Le,ce)=>{for(var Qt in ce||(ce={}))ke.call(ce,Qt)&&Gi(Le,Qt,ce[Qt]);if(Wi)for(var Qt of Wi(ce))an.call(ce,Qt)&&Gi(Le,Qt,ce[Qt]);return Le};const Po=Le=>React.createElement("svg",Co({width:13,height:12,xmlns:"http://www.w3.org/2000/svg"},Le),React.createElement("title",null,"4"),React.createElement("path",{d:"M2.573 1.787v.006c.018.135.324 2.394 2.146 4.04C6.597 7.53 9.481 7.66 9.481 7.66h.003c.084.001 1.985.07 3.035 3.16.033.096.074.232.123.407a.583.583 0 0 1-.563.739H3.578a.583.583 0 0 1-.584-.592c.025-1.732-.115-2.97-.421-3.714C2.057 6.405.735 5.392.038 2.183c-.04-.188-.246-1.41.997-1.578C2.277.437 2.573 1.787 2.573 1.787ZM7.876.007c1.611 0 2.917 1.371 2.917 3.063 0 1.69-1.306 3.062-2.917 3.062-1.611 0-2.917-1.37-2.917-3.062C4.96 1.379 6.265.007 7.876.007Z",fill:"#FA6400",fillRule:"nonzero"}));var vi="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIuNTczIDEuNzg3di4wMDZjLjAxOC4xMzUuMzI0IDIuMzk0IDIuMTQ2IDQuMDRDNi41OTcgNy41MyA5LjQ4MSA3LjY2IDkuNDgxIDcuNjZoLjAwM2MuMDg0LjAwMSAxLjk4NS4wNyAzLjAzNSAzLjE2LjAzMy4wOTYuMDc0LjIzMi4xMjMuNDA3YS41ODMuNTgzIDAgMCAxLS41NjMuNzM5SDMuNTc4YS41ODMuNTgzIDAgMCAxLS41ODQtLjU5MmMuMDI1LTEuNzMyLS4xMTUtMi45Ny0uNDIxLTMuNzE0QzIuMDU3IDYuNDA1LjczNSA1LjM5Mi4wMzggMi4xODNjLS4wNC0uMTg4LS4yNDYtMS40MS45OTctMS41NzhDMi4yNzcuNDM3IDIuNTczIDEuNzg3IDIuNTczIDEuNzg3Wk03Ljg3Ni4wMDdjMS42MTEgMCAyLjkxNyAxLjM3MSAyLjkxNyAzLjA2MyAwIDEuNjktMS4zMDYgMy4wNjItMi45MTcgMy4wNjItMS42MTEgMC0yLjkxNy0xLjM3LTIuOTE3LTMuMDYyQzQuOTYgMS4zNzkgNi4yNjUuMDA3IDcuODc2LjAwN1oiIGZpbGw9IiNGQTY0MDAiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",Ci=Object.defineProperty,ui=Object.getOwnPropertySymbols,yo=Object.prototype.hasOwnProperty,cr=Object.prototype.propertyIsEnumerable,Vo=(Le,ce,Qt)=>ce in Le?Ci(Le,ce,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Le[ce]=Qt,Xe=(Le,ce)=>{for(var Qt in ce||(ce={}))yo.call(ce,Qt)&&Vo(Le,Qt,ce[Qt]);if(ui)for(var Qt of ui(ce))cr.call(ce,Qt)&&Vo(Le,Qt,ce[Qt]);return Le};const _o=Le=>React.createElement("svg",Xe({width:12,height:12,xmlns:"http://www.w3.org/2000/svg"},Le),React.createElement("title",null,"5"),React.createElement("g",{fill:"#5E54E7",fillRule:"nonzero"},React.createElement("path",{d:"M8.477 5.651c.569 0 1.101.138 1.569.377V1.257C10.046.56 9.486 0 8.789 0H1.257C.56 0 0 .56 0 1.257v8.789c0 .697.56 1.257 1.257 1.257h4.56a3.411 3.411 0 0 1-.79-2.193 3.448 3.448 0 0 1 3.45-3.459Zm-3.138.624H2.202a.31.31 0 0 1-.312-.312.31.31 0 0 1 .312-.312h3.137a.31.31 0 0 1 .312.312.31.31 0 0 1-.312.312ZM1.257 3.138V1.88c0-.349.284-.624.624-.624h6.275c.349 0 .624.284.624.624v1.257H1.257Zm2.826 5.651H2.202a.31.31 0 0 1-.312-.312.31.31 0 0 1 .312-.312h1.88a.31.31 0 0 1 .312.312.31.31 0 0 1-.311.312Z"}),React.createElement("path",{d:"M8.477 6.275a2.827 2.827 0 0 0 0 5.652 2.827 2.827 0 0 0 0-5.652Zm1.587 4.743C10.22 8.752 8.44 9.661 8.44 9.661v.981L6.908 9.101 8.44 7.54l-.009.9c2.835.421 1.633 2.577 1.633 2.577Z"})));var Do="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD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prototype.propertyIsEnumerable,mi=(Le,ce,Qt)=>ce in Le?io(Le,ce,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Le[ce]=Qt,fi=(Le,ce)=>{for(var Qt in ce||(ce={}))bn.call(ce,Qt)&&mi(Le,Qt,ce[Qt]);if(je)for(var Qt of je(ce))di.call(ce,Qt)&&mi(Le,Qt,ce[Qt]);return Le};const qi=Le=>React.createElement("svg",fi({width:16,height:12,xmlns:"http://www.w3.org/2000/svg"},Le),React.createElement("title",null,"2"),React.createElement("g",{fill:"#00B187",fillRule:"nonzero"},React.createElement("path",{d:"M2.573 1.787v.006c.018.135.324 2.394 2.146 4.04C6.597 7.53 9.481 7.66 9.481 7.66h.003c.084.001 1.985.07 3.035 3.16.033.096.074.232.123.407a.583.583 0 0 1-.563.739H3.578a.583.583 0 0 1-.584-.592c.025-1.732-.115-2.97-.421-3.714C2.057 6.405.735 5.392.038 2.183c-.04-.188-.246-1.41.997-1.578C2.277.437 2.573 1.787 2.573 1.787Z"}),React.createElement("path",{d:"M13.09 1.787v.006c-.017.135-.324 2.394-2.146 4.04C9.066 7.53 6.182 7.66 6.182 7.66h-.003c-.084.001-1.985.07-3.035 3.16a7.91 7.91 0 0 0-.122.407.583.583 0 0 0 .562.739h8.502a.583.583 0 0 0 .583-.592c-.025-1.732.116-2.97.422-3.714.515-1.255 1.837-2.268 2.534-5.477.041-.188.246-1.41-.996-1.578-1.242-.168-1.538 1.182-1.538 1.182Z"}),React.createElement("path",{d:"M7.876.007c1.611 0 2.917 1.371 2.917 3.063 0 1.69-1.306 3.062-2.917 3.062-1.611 0-2.917-1.37-2.917-3.062C4.96 1.379 6.265.007 7.876.007Z"})));var To="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwQjE4NyIgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNM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YuMDA3WiIvPjwvZz48L3N2Zz4=",ho=Object.defineProperty,co=Object.getOwnPropertySymbols,jo=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,po=(Le,ce,Qt)=>ce in Le?ho(Le,ce,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Le[ce]=Qt,Ke=(Le,ce)=>{for(var Qt in ce||(ce={}))jo.call(ce,Qt)&&po(Le,Qt,ce[Qt]);if(co)for(var Qt of co(ce))Je.call(ce,Qt)&&po(Le,Qt,ce[Qt]);return Le};const Lo=Le=>React.createElement("svg",Ke({width:12,height:12,xmlns:"http://www.w3.org/2000/svg"},Le),React.createElement("title",null,"1"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M6.325 1.6a.578.578 0 0 1 .448.197c.135.176.215.387.23.608a.672.672 0 0 1 .535-.107c.497.088.628.632.653 1.043a.565.565 0 0 1 .292-.037c.699.079.686.756.68 1.046-.008.29-.248 2.06-.28 2.288.04.277.343 2.649-.851 3.6l.057.849-3.338.113v-1.168c-.27-.219-1.33-1.136-1.544-2.283a4.077 4.077 0 0 0-.475-1.201c-.277-.514-.515-.96-.114-1.436a.585.585 0 0 1 .457-.236c.608 0 1.154 1.1 1.302 1.935l.16.08-.12-3.53c0-.015-.043-.516.228-.809a.651.651 0 0 1 .493-.205h.036a.767.767 0 0 1 .375.106c.016-.233.104-.456.252-.636a.692.692 0 0 1 .524-.217Z",fill:"#EE5D5D"}),React.createElement("path",{d:"M6 0a6 6 0 1 1 0 12A6 6 0 0 1 6 0ZM2.019 2.655a5.2 5.2 0 0 0 6.472 7.91ZM6 .8a5.18 5.18 0 0 0-3.417 1.28l6.582 8.046A5.2 5.2 0 0 0 6 .8Z",fill:"#E30000"})));var as="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZX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Qt.next(ei))}catch(Mn){yi(Mn)}},Oi=ei=>{try{Li(Qt.throw(ei))}catch(Mn){yi(Mn)}},Li=ei=>ei.done?ti(ei.value):Promise.resolve(ei.value).then(Si,Oi);Li((Qt=Qt.apply(Le,ce)).next())}),yr=({open:Le,onClose:ce,onOk:Qt})=>{const[ti,yi]=(0,vt.useState)(!1),[Si,Oi]=(0,vt.useState)("\u6263\u5206\u7406\u7531\u4E0D\u6E05\u6670"),[Li,ei]=(0,vt.useState)(""),Mn=()=>vr(void 0,null,function*(){yi(!0),(yield Qt(Si,Li))===0&&ce(),yi(!1)}),Di=["\u6263\u5206\u7406\u7531\u4E0D\u6E05\u6670","\u4F5C\u4E1A\u6B63\u786E\u4F46\u88AB\u6263\u5206","\u8BC4\u8BED\u8FC7\u4E8E\u4E3B\u89C2\u6216\u7B3C\u7EDF","\u8BC4\u8BED\u4E0E\u5B9E\u9645\u60C5\u51B5\u4E0D\u7B26","\u8BC4\u8BED\u4E0E\u8BC4\u5206\u4E0D\u5339\u914D","\u8BC4\u5206\u6807\u51C6\u6267\u884C\u4E0D\u4E00\u81F4","\u7F3A\u4E4F\u6539\u8FDB\u5EFA\u8BAE","\u81EA\u52A8\u8BC4\u5206\u7CFB\u7EDF\u95EE\u9898","\u5176\u5B83"];return vt.createElement(Be.default,{centered:!0,open:Le,confirmLoading:ti,onCancel:()=>{ce()},afterClose:()=>{ei(""),Oi("\u6263\u5206\u7406\u7531\u4E0D\u6E05\u6670")},onOk:Mn,title:"\u53CD\u9988",width:"1000px",okText:"\u63D0\u4EA4"},vt.createElement("div",{className:sn.btnWarp},Di.map(er=>vt.createElement("div",{key:er,className:Si===er?sn.active:"",onClick:()=>Oi(er)},er))),vt.createElement(_e.default.TextArea,{style:{height:280},placeholder:"\u6211\u4EEC\u60F3\u77E5\u9053\u4F60\u5BF9\u8BC4\u5206\u6216\u8BC4\u8BED\u4E0D\u6EE1\u610F\u7684\u539F\u56E0~",value:Li,onChange:er=>ei(er.target.value)}))},cn=bt(59301),$o=Object.defineProperty,Ra=Object.defineProperties,Ir=Object.getOwnPropertyDescriptors,Vn=Object.getOwnPropertySymbols,Rt=Object.prototype.hasOwnProperty,$r=Object.prototype.propertyIsEnumerable,ps=(Le,ce,Qt)=>ce in Le?$o(Le,ce,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Le[ce]=Qt,na=(Le,ce)=>{for(var Qt in ce||(ce={}))Rt.call(ce,Qt)&&ps(Le,Qt,ce[Qt]);if(Vn)for(var Qt of Vn(ce))$r.call(ce,Qt)&&ps(Le,Qt,ce[Qt]);return Le},ca=(Le,ce)=>Ra(Le,Ir(ce)),kl=(Le,ce)=>{var Qt={};for(var ti in Le)Rt.call(Le,ti)&&ce.indexOf(ti)<0&&(Qt[ti]=Le[ti]);if(Le!=null&&Vn)for(var ti of Vn(Le))ce.indexOf(ti)<0&&$r.call(Le,ti)&&(Qt[ti]=Le[ti]);return Qt},ga=(Le,ce,Qt)=>new Promise((ti,yi)=>{var Si=ei=>{try{Li(Qt.next(ei))}catch(Mn){yi(Mn)}},Oi=ei=>{try{Li(Qt.throw(ei))}catch(Mn){yi(Mn)}},Li=ei=>ei.done?ti(ei.value):Promise.resolve(ei.value).then(Si,Oi);Li((Qt=Qt.apply(Le,ce)).next())});const Eu=Le=>{var ce=Le,{Data:Qt,layer:ti=1,type:yi,index:Si=0,newType:Oi,user:Li,showName:ei,showNm:Mn}=ce,Di=kl(ce,["Data","layer","type","index","newType","user","showName","showNm"]),er,Ps,In,ro,Jt,He,ls,Na,Jo,Gr,Zr,Ho,Qr,Zo,Yn,_i,zo;const Hi=(0,oe.useParams)(),{studentWorkDetail:Ei}=Di==null?void 0:Di.shixunHomeworks,[Uo,Fr]=(0,vt.useState)({type:0,show:!1}),[Bo,Us]=(0,vt.useState)(null),[,So,ri]=(0,Ri.U)(kt.qP,{userId:Hi==null?void 0:Hi.userId}),[,$i,ts]=(0,Ri.U)(kt.R$,{userId:Hi==null?void 0:Hi.userId}),[,Eo,mn]=(0,Ri.U)(kt.QC,{userId:Hi==null?void 0:Hi.userId}),[,gi,Ar]=(0,Ri.U)(kt.Mf,{userId:Hi==null?void 0:Hi.userId}),[,ko,Du,si]=(0,Ri.U)(kt.Am,{homeworkId:Hi==null?void 0:Hi.userId}),[,Wd,mo,Yd]=(0,Ri.U)(kt.oK,{}),[Fu,Bl]=(0,vt.useState)(!1),[uu]=ue.default.useForm(),[hu]=ue.default.useForm(),[tl]=ue.default.useForm(),[fl,xo]=(0,vt.useState)(!1),[Il,qu]=(0,vt.useState)(!1),[Ms,$u]=(0,vt.useState)(!1),us=(eo=Qt)=>{Be.default.confirm({title:"\u662F\u5426\u786E\u8BA4\u5220\u9664?",centered:!0,onOk:()=>ga(void 0,null,function*(){(yield mn({score_id:eo==null?void 0:eo.comment_id})).status===0&&(me.ZP.success("\u5220\u9664\u6210\u529F"),Di!=null&&Di.getInitData&&(Di==null||Di.getInitData()))})})},ma=(eo=Qt)=>{Be.default.confirm({title:"\u662F\u5426\u786E\u8BA4\u5220\u9664?",centered:!0,onOk:()=>ga(void 0,null,function*(){(yield Ar({object_id:eo.id,object_type:"journals_for_message"})).status===0&&(me.ZP.success("\u5220\u9664\u6210\u529F"),Di!=null&&Di.getInitData&&(Di==null||Di.getInitData()))})})},pl=(eo,Tr)=>{let Ya="";for(let bl=0;bl<(eo==null?void 0:eo.length);bl++){const Kl=eo[bl];Tr!=null&&Tr.old_score?Ya+=`${Kl.name} ${Kl.score}\u5206 `:Ya+=`${Kl.name} ${Kl.score}\u5206 `,bl<(eo==null?void 0:eo.length)-1&&(Tr!=null&&Tr.old_score?Ya+=' + ':Ya+=" + ")}return cn.createElement("span",{dangerouslySetInnerHTML:{__html:Ya}})},Wa=(eo,Tr,Ya)=>ga(void 0,null,function*(){const bl={type:eo,score_id:Qt==null?void 0:Qt.comment_id,reason:Tr||null,content:Ya||null},Kl=yield(0,et.ZP)(`/api/student_works/${Hi==null?void 0:Hi.categoryId}/add_score_like.json`,{method:"post",body:bl});return Kl.status===0&&Di!=null&&Di.getInitData&&(Di==null||Di.getInitData()),Kl.status});return cn.createElement("div",{className:ti==1&&sn.new_style_box,style:Oi&&{background:"#FCF8F4",border:"none"}},cn.createElement(wn.Z,{wrap:!1,gutter:15,className:ti!=1&&sn.box_child,style:Oi&&{marginTop:"0px"}},yi=="appeal_info"?cn.createElement(ze.Z,{flex:1},cn.createElement("div",{className:sn.box_item_top},cn.createElement(Ce.Z,{title:ei?(er=Qt==null?void 0:Qt.appeal_info)==null?void 0:er.user_name:""},cn.createElement("span",{style:{color:ei?"#3061D0":"#333333",fontWeight:600}},Mn?"\u533F\u540D":(Ps=Qt==null?void 0:Qt.appeal_info)==null?void 0:Ps.user_name)),(Qt==null?void 0:Qt.appeal_status)==1&&cn.createElement("span",{className:sn.tagStyleSzz,style:{color:"#CF5300",border:"1px solid rgba(250,100,0,0.2)",background:"rgba(250,100,0,0.1)",display:"flex",alignItems:"center",padding:"0 5px",marginLeft:"10px"}},cn.createElement("img",{src:vi,className:"mr5"}),"\u7533\u8BC9\u4E2D"),(Qt==null?void 0:Qt.appeal_status)==2&&cn.createElement("span",{className:sn.tagStyleSzz,style:{color:"#4237E7",border:"1px solid rgba(94,84,231,0.2)",background:"rgba(94,84,231,0.1)",display:"flex",alignItems:"center",padding:"0 5px",marginLeft:"10px"}},cn.createElement("img",{src:Do,className:"mr5"}),"\u7533\u8BC9\u5DF2\u64A4\u9500"),(Qt==null?void 0:Qt.appeal_status)==3&&cn.createElement("span",{className:sn.tagStyleSzz,style:{color:"#00B187",border:"1px rgba(0,177,135,0.2) solid",background:"rgba(0,177,135,0.1)",display:"flex",alignItems:"center",padding:"0 5px",marginLeft:"10px"}},cn.createElement("img",{src:To,className:"mr5"}),"\u7533\u8BC9\u6210\u529F"),(Qt==null?void 0:Qt.appeal_status)==4&&cn.createElement("span",{className:sn.tagStyleSzz,style:{color:"#E30000",border:"1px solid rgba(227,0,0,0.2)",background:"rgba(227,0,0,0.1)",display:"flex",alignItems:"center",padding:"0 5px",marginLeft:"10px"}},cn.createElement("img",{src:as,className:"mr5"}),"\u7533\u8BC9\u88AB\u62D2\u7EDD"),(Qt==null?void 0:Qt.reason)&&cn.createElement("span",{className:`${sn.tagStyleSzz} ${sn.feedbackSty}`},Qt==null?void 0:Qt.reason)),cn.createElement(rn.Z,{className:"font14 mt10",value:`${((In=Qt==null?void 0:Qt.appeal_info)==null?void 0:In.content)||"\u6682\u672A\u5199\u8BC4\u8BED"}`})):cn.createElement(ze.Z,{flex:1},cn.createElement("div",{className:sn.box_item_top},cn.createElement(Ce.Z,{title:ei?(ro=Qt==null?void 0:Qt.user_info)==null?void 0:ro.user_name:""},cn.createElement("span",{style:{color:ei?"#3061D0":"#333333",fontWeight:600}},Mn?"\u533F\u540D":(Jt=Qt==null?void 0:Qt.user_info)==null?void 0:Jt.user_name)),(Qt==null?void 0:Qt.student_work_num)&&cn.createElement(ze.Z,null,cn.createElement("span",{style:{padding:"3px 8px",background:(Qt==null?void 0:Qt.student_work_num)==1?"#5A9781":"#FFD28D",color:(Qt==null?void 0:Qt.student_work_num)==1?"#FFFFFF":"#AC4C0C",fontSize:"12px",borderRadius:"2px"}},"\u7B2C ",Qt==null?void 0:Qt.student_work_num," \u6B21\u63D0\u4EA4\u7684\u4F5C\u4E1A")),((Qt==null?void 0:Qt.score)||(Qt==null?void 0:Qt.score)==0)&&(Ei==null?void 0:Ei.single_score)&&cn.createElement(ze.Z,null,cn.createElement("span",{style:{color:Qt!=null&&Qt.anonymous_exception?"#E30000":Qt!=null&&Qt.old_score?"#999999":"#009C0F",fontWeight:600,marginLeft:"-7px"}}," ",(Qt==null?void 0:Qt.old_score)||(Qt==null?void 0:Qt.score),"\u5206 ",(Qt==null?void 0:Qt.old_score)&&"\uFF08\u5DF2\u5931\u6548\uFF09")),yi!="feedback"&&(ti==1&&!(Qt!=null&&Qt.can_reply)||!(Qt!=null&&Qt.can_reply)&&yi=="teacher"&&Si!=0)&&cn.createElement(ze.Z,null,cn.createElement("span",{className:"c-light-black"},"\uFF08\u5DF2\u5931\u6548\uFF09")),!(Ei!=null&&Ei.single_score)&&(Qt==null?void 0:Qt.score)!==null&&cn.createElement("div",{style:{color:"#333333"}},cn.createElement(Ce.Z,{title:((He=Qt==null?void 0:Qt.score_details)==null?void 0:He.length)>0?pl(Qt==null?void 0:Qt.score_details,Qt):"",overlayInnerStyle:{width:"min-content",whiteSpace:"nowrap",overflow:"visible"},placement:"topLeft"},cn.createElement("div",{style:{display:"flex",alignItems:"center"}},((Qt==null?void 0:Qt.score)||(Qt==null?void 0:Qt.score)==0)&&cn.createElement("span",{style:{color:Qt!=null&&Qt.anonymous_exception?"#E30000":Qt!=null&&Qt.old_score?"#999999":"#009C0F",fontWeight:600,marginRight:"5px"}},(Qt==null?void 0:Qt.old_score)||(Qt==null?void 0:Qt.score),"\u5206 ",(Qt==null?void 0:Qt.old_score)&&"\uFF08\u5DF2\u5931\u6548\uFF09"),((ls=Qt==null?void 0:Qt.score_details)==null?void 0:ls.length)>0&&cn.createElement("div",{className:sn.left,style:{width:"200px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},"= ",pl(Qt==null?void 0:Qt.score_details,Qt))))),(Qt==null?void 0:Qt.anonymous_exception)&&cn.createElement("div",{className:sn.yichang,style:{marginLeft:((Na=Qt==null?void 0:Qt.score_details)==null?void 0:Na.length)>0&&"10px"}},cn.createElement("i",{className:"iconfont icon-tishi12",style:{fontSize:"11px",marginRight:"3px"}}),"\u8BC4\u5206\u5F02\u5E38"),(Qt==null?void 0:Qt.reason)&&cn.createElement("span",{className:`${sn.tagStyleSzz} ${sn.feedbackSty}`},Qt==null?void 0:Qt.reason)),cn.createElement(rn.Z,{className:"font14 mt10",value:`${(Qt==null?void 0:Qt.content)||(Qt==null?void 0:Qt.hidden_comment)||"\u6682\u672A\u5199\u8BC4\u8BED"}`}),((Jo=Qt==null?void 0:Qt.attachments)==null?void 0:Jo.length)>0&&cn.createElement("div",{className:"mt10",style:{display:"flex",flexDirection:"column",gap:10}},(Gr=Qt==null?void 0:Qt.attachments)==null?void 0:Gr.map((eo,Tr)=>cn.createElement("a",{key:Tr,href:`${Lt.Z.API_SERVER}${eo.url}`},cn.createElement("i",{className:"iconfont icon-fujian font14"}),cn.createElement("span",{className:"ml10"},eo==null?void 0:eo.title),cn.createElement("span",{className:"c-light-black ml20 font12"},eo==null?void 0:eo.filesize))))),yi!="feedback"&&cn.createElement(cn.Fragment,null,yi=="appeal_info"?cn.createElement(ze.Z,{style:{whiteSpace:"nowrap"}},cn.createElement(wn.Z,{wrap:!1,gutter:10},(Qt==null?void 0:Qt.delete)&&(Qt==null?void 0:Qt.can_appeal)&&cn.createElement(ze.Z,null,cn.createElement("span",{className:sn.text_style,onClick:()=>{Be.default.confirm({centered:!0,title:cn.createElement("div",null,"\u64A4\u9500\u7533\u8BC9\u540E\uFF0C\u65E0\u6CD5\u518D\u5BF9\u672C\u8BC4\u9605\u8BB0\u5F55\u8FDB\u884C\u7533\u8BC9",cn.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u64A4\u9500\u7533\u8BC9"),onOk:()=>ga(void 0,null,function*(){Di!=null&&Di.getInitData&&(Di==null||Di.getInitData())})})}},"\u64A4\u9500\u7533\u8BC9")),(Qt==null?void 0:Qt.appeal_status)==1&&(0,On.GJ)()&&cn.createElement(ze.Z,null,cn.createElement("span",{className:sn.text_style,style:{marginRight:"10pz"},onClick:()=>{xo(!0)}},"\u63A5\u53D7\u7533\u8BC9")),(Qt==null?void 0:Qt.appeal_status)==1&&(0,On.GJ)()&&cn.createElement(ze.Z,null,cn.createElement("span",{className:sn.text_style_red,onClick:()=>{Be.default.confirm({centered:!0,title:cn.createElement("div",null,"\u6B64\u533F\u8BC4\u6210\u7EE9\u5C06\u88AB\u8BA4\u4E3A\u5408\u7406",cn.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u62D2\u7EDD\u7533\u8BC9"),onOk:()=>ga(void 0,null,function*(){const eo=yield(0,et.ZP)(`/api/student_works/${Hi.userId}/deal_appeal_score.json`,{method:"post",body:{score_id:Qt==null?void 0:Qt.score_id,status:4}});(eo==null?void 0:eo.status)===0&&Di!=null&&Di.getInitData&&(Di==null||Di.getInitData())})})}},"\u62D2\u7EDD\u7533\u8BC9")))):cn.createElement(cn.Fragment,null,ti==1&&(0,On.Yh)()&&(Ei==null?void 0:Ei.can_feedback)&&cn.createElement(cn.Fragment,null,cn.createElement(Ce.Z,{title:"\u559C\u6B22"},cn.createElement("i",{style:{color:(Qt==null?void 0:Qt.like)&&"#E30000",cursor:"pointer",lineHeight:"21px"},onClick:()=>Wa("like"),className:"iconfot icon-yijiejue font16 mr15"})),cn.createElement(Ce.Z,{title:"\u4E0D\u559C\u6B22"},cn.createElement("i",{style:{color:(Qt==null?void 0:Qt.dislike)&&"#37AD83",cursor:"pointer",lineHeight:"21px"},onClick:()=>{Qt!=null&&Qt.dislike?Wa("dislike"):$u(!0)},className:"iconfot icon-weijiejuezhengchang font16 mr5"}))),(ti==1||yi=="teacher")&&cn.createElement(ze.Z,{style:{whiteSpace:"nowrap"}},cn.createElement(wn.Z,{wrap:!1,gutter:10},((Qt==null?void 0:Qt.delete)||((Zr=Li==null?void 0:Li.userInfo)==null?void 0:Zr.user_id)==(Qt==null?void 0:Qt.user_id))&&cn.createElement(ze.Z,null,cn.createElement("span",{className:`${sn.text_style} ml5`,onClick:()=>{var eo;Bl(!0),hu.setFieldsValue(ca(na({},Qt),{comment:Qt==null?void 0:Qt.content,score_details:((eo=Qt==null?void 0:Qt.score_details)==null?void 0:eo.map(Tr=>na({},Tr)))||[]}))}},"\u7F16\u8F91")),(Qt==null?void 0:Qt.is_invalid)&&(Qt==null?void 0:Qt.delete)&&cn.createElement(ze.Z,null,cn.createElement("span",{className:sn.text_style,onClick:()=>{us(Qt)}},"\u5220\u9664")),(Qt==null?void 0:Qt.can_appeal)&&cn.createElement(ze.Z,null,cn.createElement("span",{className:sn.text_style,onClick:()=>{Fr({type:1,show:!0})}},"\u7533\u8BC9")),(Qt==null?void 0:Qt.can_reply)&&cn.createElement(ze.Z,null,cn.createElement("span",{className:sn.text_style,onClick:()=>{Fr({type:0,show:!0})}},"\u56DE\u590D")))),cn.createElement(ze.Z,{style:{whiteSpace:"nowrap",padding:0}},ti!=1&&((Qt==null?void 0:Qt.can_delete)&&yi!="teacher"||((Ho=Li==null?void 0:Li.userInfo)==null?void 0:Ho.user_id)==((Qr=Qt==null?void 0:Qt.user_info)==null?void 0:Qr.user_id))&&cn.createElement("span",{className:sn.text_style,onClick:()=>{qu(!0),tl.setFieldsValue(na({},Qt))}},"\u7F16\u8F91"),ti!=1&&(Qt==null?void 0:Qt.can_delete)&&yi!="teacher"&&cn.createElement("span",{className:sn.text_style,style:{marginLeft:"10px"},onClick:()=>{ma(Qt)}},"\u5220\u9664")))),ti!=1&&(Qt==null?void 0:Qt.old_score)&&cn.createElement("span",{style:{color:"#009C0F"}},"\u6559\u5E08\u533F\u8BC4\u8865\u5206\uFF1A",Qt==null?void 0:Qt.score,"\u5206")),ti==1&&(Qt==null?void 0:Qt.appeal_info)&&(Qt==null?void 0:Qt.appeal_info)!=""&&cn.createElement("div",{className:"mt20",style:{display:"flex",flexDirection:"column",gap:"20px"}},cn.createElement(Eu,na({type:"appeal_info",Data:Qt,layer:ti+1},Di))),ti==1&&((Zo=Qt==null?void 0:Qt.journals)==null?void 0:Zo.length)>0&&cn.createElement("div",{className:"mt20",style:{display:"flex",flexDirection:"column",gap:"20px"}},(Yn=Qt==null?void 0:Qt.journals)==null?void 0:Yn.map((eo,Tr)=>cn.createElement(Eu,na({key:Tr,type:yi,Data:eo,layer:ti+1},Di)))),(Uo==null?void 0:Uo.show)&&cn.createElement("div",{className:"mt20",style:{marginLeft:"56px"}},cn.createElement(nt.Z,{height:150,isFocus:!0,watch:!0,onChange:eo=>{Us(eo)}}),cn.createElement(wn.Z,{align:"middle",justify:"end",gutter:20},cn.createElement(ze.Z,null,cn.createElement(Ee.ZP,{onClick:()=>{Fr({type:0,show:!1})}},"\u53D6\u6D88")),cn.createElement(ze.Z,null,cn.createElement(Ee.ZP,{loading:So||$i,type:"primary",onClick:()=>ga(void 0,null,function*(){if(Bo===""){me.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");return}let eo;yi=="teacher"?eo=(yield Uo==null?void 0:Uo.type)==0?ri({hidden_comment:Bo,score_id:Qt==null?void 0:Qt.score_id}):ts({comment:Bo,score_id:Qt==null?void 0:Qt.score_id}):eo=yield((Uo==null?void 0:Uo.type)==0?ri:ts)({comment:Bo,score_id:Qt==null?void 0:Qt.score_id}),eo.status===0&&(me.ZP.success("\u64CD\u4F5C\u6210\u529F"),Fr({type:0,show:!1}),Di!=null&&Di.getInitData&&(Di==null||Di.getInitData()))})},(Uo==null?void 0:Uo.type)==0?"\u56DE\u590D":"\u7533\u8BC9")))),cn.createElement(Be.default,{title:"\u63A5\u53D7\u7533\u8BC9",open:fl,centered:!0,destroyOnClose:!0,onCancel:()=>{xo(!1)},maskClosable:!1,width:544,onOk:()=>{uu.submit()}},cn.createElement(ue.default,{form:uu,colon:!1,onFinish:eo=>ga(void 0,null,function*(){(yield(0,et.ZP)(`/api/student_works/${Hi.userId}/deal_appeal_score.json`,{method:"post",body:ca(na({},eo),{userId:Hi.userId,score_id:Qt==null?void 0:Qt.score_id,status:3})})).status===0&&(xo(!1),Di!=null&&Di.getInitData&&(Di==null||Di.getInitData()))})},cn.createElement("div",{style:{color:"#191919"}},"\u786E\u8BA4\u662F\u5426\u63A5\u53D7\u7533\u8BC9\uFF1F\u4E00\u65E6\u63A5\u53D7\uFF0C\u88AB\u7533\u8BC9\u7684\u8BC4\u5206\u8BB0\u5F55\u5C06\u4F5C\u5E9F\u3002\u8BF7\u60A8\u8865\u5145\u533F\u8BC4\u8BC4\u5206\uFF1A"),cn.createElement(fn.Z,{style:{marginTop:"20px"},colon:!1,items:[{key:"1",label:"\u7533\u8BC9\u4EBA",children:cn.createElement("span",null,(_i=Qt==null?void 0:Qt.appeal_info)==null?void 0:_i.user_name)},{key:"2",label:"\u88AB\u7533\u8BC9\u4EBA",children:cn.createElement("span",{style:{color:"#191919"}},(zo=Qt==null?void 0:Qt.user_info)==null?void 0:zo.user_name)},{key:"3",label:"\u88AB\u7533\u8BC9\u4EBA\u8BC4\u5206",children:cn.createElement("span",{style:{color:"#191919"}},Qt==null?void 0:Qt.score)}]}),cn.createElement(wn.Z,{className:"mt20",wrap:!1},cn.createElement(ze.Z,null,cn.createElement(ue.default.Item,{label:"\u533F\u8BC4\u5206\u6570",name:"score",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u6570"}]},cn.createElement(Ht.Z,{min:1,max:100,step:1}))),cn.createElement(ze.Z,null,cn.createElement("span",{className:"ml10",style:{lineHeight:"30px"}},"\u5206")),cn.createElement(ze.Z,null,cn.createElement(ue.default.Item,{className:"ml20",valuePropName:"checked",name:"is_appeal_penalty",initialValue:!0},cn.createElement(se.default,null,"\u6263\u9664\u8FDD\u89C4\u533F\u8BC4\u5206\u6570")))))),cn.createElement(Be.default,{title:"\u7F16\u8F91\u56DE\u590D",width:800,centered:!0,open:Il,confirmLoading:Wd,onCancel:()=>{qu(!1)},onOk:()=>{tl.submit()}},cn.createElement(ue.default,{form:tl,colon:!1,onFinish:eo=>ga(void 0,null,function*(){const Tr=yield mo(na({},eo));(Tr==null?void 0:Tr.status)===0&&(me.ZP.success("\u4FEE\u6539\u6210\u529F"),qu(!1),Di!=null&&Di.getInitData&&(Di==null||Di.getInitData()))})},cn.createElement(ue.default.Item,{hidden:!0,name:"id",label:"\u8FD9\u4E2A\u662F\u7528\u6765\u6536\u96C6score_id\u7684"}),cn.createElement(ue.default.Item,{name:"content",label:"\u8BC4\u8BED"},cn.createElement(Bt.h,{height:200,scrollId:"notes",placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5BF9\u672C\u4F5C\u54C1\u7684\u8BC4\u8BED\uFF0C\u6700\u5927\u9650\u52362000\u4E2A\u5B57\u7B26"})))),cn.createElement(li,{DataProps:{disabledScore:Oi=="teacher"},FormProps:{form:hu,onFinish:(...eo)=>ga(void 0,[...eo],function*(Tr={}){const Ya=yield Du(ca(na({},Tr),{homeworkId:Hi==null?void 0:Hi.userId}));(Ya==null?void 0:Ya.status)===0&&(me.ZP.success("\u4FEE\u6539\u6210\u529F"),Bl(!1),Di!=null&&Di.getInitData&&(Di==null||Di.getInitData()),Di!=null&&Di.updateData&&(Di==null||Di.updateData()))})},ModalProps:{open:Fu,onCancel:()=>{Bl(!1),hu.resetFields()},onOk:()=>{hu.submit()},confirmLoading:ko}}),cn.createElement(yr,{open:Ms,onClose:()=>$u(!1),onOk:(eo,Tr)=>Wa("dislike",eo,Tr)}))};var Zl=(0,oe.connect)(({user:Le})=>({user:Le}))(Eu),tr=Object.defineProperty,gr=Object.getOwnPropertySymbols,Ea=Object.prototype.hasOwnProperty,Ti=Object.prototype.propertyIsEnumerable,ci=(Le,ce,Qt)=>ce in Le?tr(Le,ce,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Le[ce]=Qt,tn=(Le,ce)=>{for(var Qt in ce||(ce={}))Ea.call(ce,Qt)&&ci(Le,Qt,ce[Qt]);if(gr)for(var Qt of gr(ce))Ti.call(ce,Qt)&&ci(Le,Qt,ce[Qt]);return Le};const Pi=Le=>React.createElement("svg",tn({width:18,height:18,xmlns:"http://www.w3.org/2000/svg"},Le),React.createElement("title",null,"\u4F5C\u4E1A\u63D0\u4EA4\u5185\u5BB9"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M9 0C4.032 0 0 4.032 0 9s4.032 9 9 9 9-4.032 9-9-4.032-9-9-9Z",fill:"#009CDC"}),React.createElement("path",{d:"M11.511 5H5.956a.954.954 0 0 0-.952.951v6.032c0 .524.428.952.952.952h5.555a.954.954 0 0 0 .952-.952V5.951A.954.954 0 0 0 11.511 5ZM6.607 6.881h2.58a.34.34 0 0 1 0 .68h-2.58a.34.34 0 0 1 0-.68Zm1.603 4.17H6.608a.34.34 0 0 1 0-.68H8.21a.34.34 0 0 1 0 .68Zm2.445-1.744H6.607a.34.34 0 0 1 0-.68h4.048a.34.34 0 0 1 0 .68Z",fill:"#FFF"})));var oo="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNOSAwQzQuMDMyIDAgMCA0LjAzMiAwIDlzNC4wMzIgOSA5IDkgOS00LjAzMiA5LTktNC4wMzItOS05LTlaIiBmaWxsPSIjMDA5Q0RDIi8+PHBhdGggZD0iTTExLjUxMSA1SDUuOTU2YS45NTQuOTU0IDAgMCAwLS45NTIuOTUxdjYuMDMyYzAgLjUyNC40MjguOTUyLjk1Mi45NTJoNS41NTVhLjk1NC45NTQgMCAwIDAgLjk1Mi0uOTUyVjUuOTUxQS45NTQuOTU0IDAgMCAwIDExLjUxMSA1Wk02LjYwNyA2Ljg4MWgyLjU4YS4zNC4zNCAwIDAgMSAwIC42OGgtMi41OGEuMzQuMzQgMCAwIDEgMC0uNjhabTEuNjAzIDQuMTdINi42MDhhLjM0LjM0IDAgMCAxIDAtLjY4SDguMjFhLjM0LjM0IDAgMCAxIDAgLjY4Wm0yLjQ0NS0xLjc0NEg2LjYwN2EuMzQuMzQgMCAwIDEgMC0uNjhoNC4wNDhhLjM0LjM0IDAgMCAxIDAgLjY4WiIgZmlsbD0iI0ZGRiIvPjwvZz48L3N2Zz4=",ir=Object.defineProperty,fr=Object.getOwnPropertySymbols,pr=Object.prototype.hasOwnProperty,Rr=Object.prototype.propertyIsEnumerable,Sr=(Le,ce,Qt)=>ce in Le?ir(Le,ce,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Le[ce]=Qt,Ga=(Le,ce)=>{for(var Qt in ce||(ce={}))pr.call(ce,Qt)&&Sr(Le,Qt,ce[Qt]);if(fr)for(var Qt of fr(ce))Rr.call(ce,Qt)&&Sr(Le,Qt,ce[Qt]);return Le};const fa=Le=>React.createElement("svg",Ga({width:70,height:24,xmlns:"http://www.w3.org/2000/svg"},Le),React.createElement("title",null,"\u5F85\u8BC4\u9605"),React.createElement("path",{d:"m70 0-6.146 11.936L70 24H0V0h70ZM40.992 5.229H31.7v1.646h3.768v5.83H31.21v1.663h4.258v5.796h1.724v-5.796h4.325v-1.663h-4.325v-5.83h3.801V5.23Zm4.157 2.167h-1.724v12.768h1.724V7.396Zm-32.34.958c-.845 1.848-2.112 3.46-3.802 4.821l.524 1.663a27.003 27.003 0 0 0 1.656-1.41v6.618h1.706v-8.55a12.713 12.713 0 0 0 1.42-2.437l-1.504-.705Zm44.793-3.142h-8.01v1.613h6.286v10.953c0 .47-.152.706-.44.706l-.658-.034c.186-.37.32-1.008.405-1.932l-1.487-.47c-.05.706-.135 1.126-.253 1.26a.506.506 0 0 1-.422.218h-.305c-.22 0-.32-.134-.32-.386v-1.966h1.672V10.32h-1.487c.406-.672.794-1.411 1.132-2.234l-1.656-.588a23.536 23.536 0 0 1-1.165 2.822H49l1.217-.605c-.406-.739-.811-1.428-1.25-2.032l-1.47.705c.439.571.861 1.21 1.25 1.932h-1.842v4.855h1.538c-.237 1.31-1.183 2.235-2.856 2.806l.913 1.445c2.06-.89 3.21-2.302 3.446-4.25h.913v2.301c0 1.042.456 1.58 1.368 1.58h1.082c.49 0 .878-.102 1.149-.27l.32 1.26h1.015c1.2 0 1.808-.588 1.808-1.764V5.212Zm-35.095 6.3H20.75v1.058h-6.353v1.63h6.353v3.394c0 .537-.253.823-.76.823-.676 0-1.403-.034-2.18-.101l.406 1.663h2.399c1.25 0 1.892-.655 1.892-1.949V14.2h1.775v-1.63h-1.775v-1.058Zm7.317-1.949h-4.022v1.68h2.315v5.964c0 .353-.152.655-.44.907l.66 1.58a25.152 25.152 0 0 0 3.328-2.672l-.49-1.848c-.473.47-.929.908-1.351 1.294V9.563Zm-13.146 4.973-1.369.857c.88.924 1.589 1.764 2.113 2.52l1.368-.958c-.49-.705-1.2-1.512-2.112-2.419Zm35.787-2.806v2.033h-3.97V11.73h3.97Zm-19.11-4.233L31.851 8a28.8 28.8 0 0 1 1.2 4.099l1.504-.37a35.374 35.374 0 0 0-1.2-4.233Zm5.796-.05c-.355 1.646-.76 3.023-1.234 4.099l1.47.52c.524-1.21.963-2.604 1.301-4.216l-1.537-.404ZM20.226 4.573H18.52V6.22h-3.565v1.596h3.565v1.596h-4.174v1.613h10.172V9.412h-4.292V7.816h3.6V6.22h-3.6V4.574Zm-8.025-.101c-.727 1.562-1.842 2.923-3.346 4.065l.524 1.68c2.061-1.512 3.497-3.175 4.342-5.023l-1.52-.722Zm16 .235-1.25 1.21c1.2.873 2.13 1.696 2.771 2.47L30.94 7.16a23.623 23.623 0 0 0-2.737-2.453Zm18.283-.269-1.606.706A15.91 15.91 0 0 1 46.686 7.9l1.572-.806a14.573 14.573 0 0 0-1.774-2.655Z",fill:"#FA6400",fillRule:"nonzero"}));var Ql="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzAiIGhlaWdodD0iMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTcwIDAtNi4xNDYgMTEuOTM2TDcwIDI0SDBWMGg3MFpNNDAuOTkyIDUuMjI5SDMxLjd2MS42NDZoMy43Njh2NS44M0gzMS4yMXYxLjY2M2g0LjI1OHY1Ljc5NmgxLjcyNHYtNS43OTZoNC4zMjV2LTEuNjYzaC00LjMyNXYtNS44M2gzLjgwMVY1LjIzWm00LjE1NyAyLjE2N2gtMS43MjR2MTIuNzY4aDEuNzI0VjcuMzk2Wm0tMzIuMzQuOTU4Yy0uODQ1IDEuODQ4LTIuMTEyIDMuNDYtMy44MDIgNC44MjFsLjUyNCAxLjY2M2EyNy4wMDMgMjcuMDAzIDAgMCAwIDEuNjU2LTEuNDF2Ni42MThoMS43MDZ2LTguNTVhMTIuN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MzctMi40NTNabTE4LjI4My0uMjY5LTEuNjA2LjcwNkExNS45MSAxNS45MSAwIDAgMSA0Ni42ODYgNy45bDEuNTcyLS44MDZhMTQuNTczIDE0LjU3MyAwIDAgMC0xLjc3NC0yLjY1NVoiIGZpbGw9IiNGQTY0MDAiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",Me=Object.defineProperty,Ts=Object.getOwnPropertySymbols,Au=Object.prototype.hasOwnProperty,qa=Object.prototype.propertyIsEnumerable,au=(Le,ce,Qt)=>ce in Le?Me(Le,ce,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Le[ce]=Qt,Lr=(Le,ce)=>{for(var Qt in ce||(ce={}))Au.call(ce,Qt)&&au(Le,Qt,ce[Qt]);if(Ts)for(var Qt of Ts(ce))qa.call(ce,Qt)&&au(Le,Qt,ce[Qt]);return Le};const Dl=Le=>React.createElement("svg",Lr({width:17,height:14,xmlns:"http://www.w3.org/2000/svg"},Le),React.createElement("title",null,"\u4EC5\u6559\u5E08\u53EF\u89C1"),React.createElement("g",{fill:"#CA7720",fillRule:"nonzero"},React.createElement("path",{d:"M7.046 13.302V14h1.566v-.698c0-.557.248-1.093.689-1.485a2.487 2.487 0 0 1 1.66-.615v-1.4c-2.163 0-3.915 1.565-3.915 3.5ZM0 9.802v1.4c.623 0 1.22.22 1.66.615.44.394.688.928.688 1.485V14h1.566v-.698c0-1.935-1.752-3.5-3.914-3.5Z"}),React.createElement("path",{d:"M10.96 3.502a4.878 4.878 0 0 0-.954-2.8 6.002 6.002 0 0 0-2.623 1.476A5.414 5.414 0 0 0 5.48 0a5.39 5.39 0 0 0-1.893 2.178A6 6 0 0 0 .957.702a4.87 4.87 0 0 0-.954 2.8V4.2C.005 6.633 2.007 8.695 4.7 9.044V14h1.566V9.045c2.693-.347 4.694-2.41 4.695-4.843v-.7Z"}),React.createElement("path",{d:"M10.977 8.084c-.061 0-.12-.004-.177-.013a.65.65 0 0 1-.15-.042.343.343 0 0 1-.175-.167.885.885 0 0 1-.075-.214l-.029-.133-.002-.009-.02-.092-.001-.006-.002-.005a.697.697 0 0 0-.005-.018l-.001-.002a.546.546 0 0 1-.013-.046.963.963 0 0 0-.009-.033l-.024-.08-.07-.047a.019.019 0 0 1-.008-.014l-.001-.005a.11.11 0 0 1-.003-.022l.005-.142v-.037c.001-.011.008-.02.02-.023l.011-.003a.422.422 0 0 1 .052-.012l.301-.039c.111-.013.23-.02.383-.02H11.011c.165 0 .333.016.5.047.096.018.188.048.27.074.06.02.106.032.15.04a.425.425 0 0 0 .072.008l-.198.512c-.02.054-.042.101-.065.145a.858.858 0 0 1-.2.25.499.499 0 0 1-.184.096 1.258 1.258 0 0 1-.38.052Zm-.205-.097c.022.005.042.01.062.013a1.09 1.09 0 0 0 .452-.026.435.435 0 0 0 .196-.104.61.61 0 0 0 .105-.138c.055-.095.095-.194.118-.294a.65.65 0 0 0 .018-.205l-.01-.126-.112-.058a.506.506 0 0 0-.13-.042l-.01-.002a1.717 1.717 0 0 0-.374-.039h-.008l-.038.002a4.311 4.311 0 0 0-.128.008 1.43 1.43 0 0 0-.25.041l-.133.036-.032.136a.514.514 0 0 0-.009.059v.001l-.002.018a.708.708 0 0 0-.002.155c.007.073.018.17.041.266a.57.57 0 0 0 .078.189c.019.027.04.05.063.067l.06.043h.045Zm2.28.091a1.4 1.4 0 0 1-.27-.025.75.75 0 0 1-.22-.077.594.594 0 0 1-.228-.228 1.782 1.782 0 0 1-.105-.212l-.21-.507a.565.565 0 0 0 .16-.029l.08-.028.075-.025c.09-.03.19-.05.315-.066a2.854 2.854 0 0 1 .525-.019h.009l.265.015c.11.008.219.024.34.043l.02.004.003.002c.01.002.017.007.018.021l.001.023v.006a.984.984 0 0 1 .005.138l-.034-.062-.048.167-.024.08-.082.288.014-.008c-.018.075-.04.152-.07.225a.512.512 0 0 1-.07.125.333.333 0 0 1-.178.115.855.855 0 0 1-.21.032 1.846 1.846 0 0 1-.08.002Zm-.106-1.115a1.641 1.641 0 0 0-.486.075l-.142.049-.012.15a.722.722 0 0 0 .023.21.868.868 0 0 0 .167.354c.066.083.15.136.249.157.109.024.208.035.303.035h.01a.815.815 0 0 0 .21-.024.319.319 0 0 0 .146-.076.342.342 0 0 0 .079-.128c.041-.11.064-.23.068-.358v-.008c.002-.042 0-.084-.002-.125v-.02a.489.489 0 0 0-.003-.039l-.004-.032-.012-.03a.424.424 0 0 0-.004-.01l-.044-.099-.104-.029a1.763 1.763 0 0 0-.396-.053h-.046Zm1.042 3.06-1.42 2.599-.21-.62.388-.78-.778-.782-.778.781.39.782-.251.633-1.38-2.613s-2.942 1.564-2.942 3.113c0 .428.176.823.605.823h8.731c.427 0 .607-.391.607-.817 0-1.454-2.962-3.12-2.962-3.12Zm.54-3.202-.003-.122-.102-.068c-.012-.01-.024-.017-.037-.024-.208-1.803-.194-2.866-2.287-2.551-.734.11-1.535-.118-1.99.215-.574.539-.615 1.348-.459 2.297-.035.019-.07.04-.103.063l-.102.068-.002.123c-.005.316.034.582.12.787a.788.788 0 0 0 .345.407c.182.62.444 1.084.772 1.419.357.365.787.572 1.273.654l.043.007.044-.01c.538-.113.968-.329 1.31-.69.319-.335.556-.787.73-1.39a.8.8 0 0 0 .332-.41c.083-.203.12-.465.115-.775Zm-.556.6c-.041.102-.098.17-.17.194l-.119.042-.032.12c-.156.58-.365.999-.644 1.293-.264.277-.598.449-1.02.544a1.78 1.78 0 0 1-.967-.509c-.292-.297-.524-.729-.685-1.322l-.034-.126-.126-.04c-.074-.022-.132-.088-.174-.19-.043-.101-.069-.23-.08-.383.116-.018.245-.05.308-.009l.022-.074h.003l.01-.05c.034-.137.073-1 .108-1.139.014-.04.019-.086.045-.12.169.23 1.444.257 2.185-.257l-.139.375.141.028.158-.253-.02.177.15.02.093-.291c.184.105.387.246.568.17.06.136.107.967.137 1.127l.039.206.068-.004.032.107c.08-.01.15-.011.22-.013a1.25 1.25 0 0 1-.077.376Z"})));var gl="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0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MDA3LjA0NC0uMDFjLjUzOC0uMTEzLjk2OC0uMzI5IDEuMzEtLjY5LjMxOS0uMzM1LjU1Ni0uNzg3LjczLTEuMzlhLjguOCAwIDAgMCAuMzMyLS40MWMuMDgzLS4yMDMuMTItLjQ2NS4xMTUtLjc3NVptLS41NTYuNmMtLjA0MS4xMDItLjA5OC4xNy0uMTcuMTk0bC0uMTE5LjA0Mi0uMDMyLjEyYy0uMTU2LjU4LS4zNjUuOTk5LS42NDQgMS4yOTMtLjI2NC4yNzctLjU5OC40NDktMS4wMi41NDRhMS43OCAxLjc4IDAgMCAxLS45NjctLjUwOWMtLjI5Mi0uMjk3LS41MjQtLjcyOS0uNjg1LTEuMzIybC0uMDM0LS4xMjYtLjEyNi0uMDRjLS4wNzQtLjAyMi0uMTMyLS4wODgtLjE3NC0uMTktLjA0My0uMTAxLS4wNjktLjIzLS4wOC0uMzgzLjExNi0uMDE4LjI0NS0uMDUuMzA4LS4wMDlsLjAyMi0uMDc0aC4wMDNsLjAxLS4wNWMuMDM0LS4xMzcuMDczLTEgLjEwOC0xLjEzOS4wMTQtLjA0LjAxOS0uMDg2LjA0NS0uMTIuMTY5LjIzIDEuNDQ0LjI1NyAyLjE4NS0uMjU3bC0uMTM5LjM3NS4xNDEuMDI4LjE1OC0uMjUzLS4wMi4xNzcuMTUuMDIuMDkzLS4yOTFjLjE4NC4xMDUuMzg3LjI0Ni41NjguMTcuMDYuMTM2LjEwNy45NjcuMTM3IDEuMTI3bC4wMzkuMjA2LjA2OC0uMDA0LjAzMi4xMDdjLjA4LS4wMS4xNS0uMDExLjIyLS4wMTNhMS4yNSAxLjI1IDAgMCAxLS4wNzcuMzc2WiIvPjwvZz48L2c+PC9zdmc+",Ko=Object.defineProperty,Yr=Object.getOwnPropertySymbols,Nu=Object.prototype.hasOwnProperty,xs=Object.prototype.propertyIsEnumerable,ku=(Le,ce,Qt)=>ce in Le?Ko(Le,ce,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Le[ce]=Qt,Aa=(Le,ce)=>{for(var Qt in ce||(ce={}))Nu.call(ce,Qt)&&ku(Le,Qt,ce[Qt]);if(Yr)for(var Qt of Yr(ce))xs.call(ce,Qt)&&ku(Le,Qt,ce[Qt]);return Le};const ii=Le=>React.createElement("svg",Aa({width:11,height:14,xmlns:"http://www.w3.org/2000/svg"},Le),React.createElement("title",null,"\u8BC4\u8BED"),React.createElement("g",{fill:"#000",fillRule:"nonzero"},React.createElement("path",{d:"M7.046 13.302V14h1.566v-.698c0-.557.248-1.093.689-1.485a2.487 2.487 0 0 1 1.66-.615v-1.4c-2.163 0-3.915 1.565-3.915 3.5ZM0 9.802v1.4c.623 0 1.22.22 1.66.615.44.394.688.928.688 1.485V14h1.566v-.698c0-1.935-1.752-3.5-3.914-3.5Z"}),React.createElement("path",{d:"M10.96 3.502a4.878 4.878 0 0 0-.954-2.8 6.002 6.002 0 0 0-2.623 1.476A5.414 5.414 0 0 0 5.48 0a5.39 5.39 0 0 0-1.893 2.178A6 6 0 0 0 .957.702a4.87 4.87 0 0 0-.954 2.8V4.2C.005 6.633 2.007 8.695 4.7 9.044V14h1.566V9.045c2.693-.347 4.694-2.41 4.695-4.843v-.7Z"})));var xh="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTEiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNNy4wNDYgMTMuMzAyVjE0aDEuNTY2di0uNjk4YzAtLjU1Ny4yNDgtMS4wOTMuNjg5LTEuNDg1YTIuNDg3IDIuNDg3IDAgMCAxIDEuNjYtLjYxNXYtMS40Yy0yLjE2MyAwLTMuOTE1IDEuNTY1LTMuOTE1IDMuNVpNMCA5LjgwMnYxLjRjLjYyMyAwIDEuMjIuMjIgMS42Ni42MTUuNDQuMzk0LjY4OC45MjguNjg4IDEuNDg1VjE0aDEuNTY2di0uNjk4YzAtMS45MzUtMS43NTItMy41LTMuOTE0LTMuNVoiLz48cGF0aCBkPSJNMTAuOTYgMy41MDJhNC44NzggNC44NzggMCAwIDAtLjk1NC0yLjggNi4wMDIgNi4wMDIgMCAwIDAtMi42MjMgMS40NzZBNS40MTQgNS40MTQgMCAwIDAgNS40OCAwYTUuMzkgNS4zOSAwIDAgMC0xLjg5MyAyLjE3OEE2IDYgMCAwIDAgLjk1Ny43MDJhNC44NyA0Ljg3IDAgMCAwLS45NTQgMi44VjQuMkMuMDA1IDYuNjMzIDIuMDA3IDguNjk1IDQuNyA5LjA0NFYxNGgxLjU2NlY5LjA0NWMyLjY5My0uMzQ3IDQuNjk0LTIuNDEgNC42OTUtNC44NDN2LS43WiIvPjwvZz48L3N2Zz4=",wh=Object.defineProperty,Ha=Object.getOwnPropertySymbols,ed=Object.prototype.hasOwnProperty,nd=Object.prototype.propertyIsEnumerable,jn=(Le,ce,Qt)=>ce in Le?wh(Le,ce,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Le[ce]=Qt,Er=(Le,ce)=>{for(var Qt in ce||(ce={}))ed.call(ce,Qt)&&jn(Le,Qt,ce[Qt]);if(Ha)for(var Qt of Ha(ce))nd.call(ce,Qt)&&jn(Le,Qt,ce[Qt]);return Le};const Vr=Le=>React.createElement("svg",Er({width:20,height:20,xmlns:"http://www.w3.org/2000/svg"},Le),React.createElement("title",null,"\u8FD4\u56DE"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"#3061D0",width:20,height:20,rx:4}),React.createElement("g",{stroke:"#FFF",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2},React.createElement("path",{d:"M4.678 10.176h10.526M8.187 13.684l-3.509-3.509 3.509-3.508"}))));var pa="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSIjMzA2MUQwIiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHJ4PSI0Ii8+PGcgc3Ryb2tlPSIjRkZGIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMiI+PHBhdGggZD0iTTQuNjc4IDEwLjE3NmgxMC41MjZNOC4xODcgMTMuNjg0bC0zLjUwOS0zLjUwOSAzLjUwOS0zLjUwOCIvPjwvZz48L2c+PC9zdmc+",lu=Object.defineProperty,Fl=Object.getOwnPropertySymbols,zi=Object.prototype.hasOwnProperty,Ju=Object.prototype.propertyIsEnumerable,$a=(Le,ce,Qt)=>ce in Le?lu(Le,ce,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Le[ce]=Qt,ia=(Le,ce)=>{for(var Qt in ce||(ce={}))zi.call(ce,Qt)&&$a(Le,Qt,ce[Qt]);if(Fl)for(var Qt of Fl(ce))Ju.call(ce,Qt)&&$a(Le,Qt,ce[Qt]);return Le};const Rs=Le=>React.createElement("svg",ia({width:70,height:24,xmlns:"http://www.w3.org/2000/svg"},Le),React.createElement("title",null,"\u5DF2\u8BC4\u9605"),React.createElement("path",{d:"m70 0-6.146 11.936L70 24H0V0h70ZM40.74 5.229h-9.292v1.646h3.768v5.83h-4.258v1.663h4.258v5.796h1.723v-5.796h4.326v-1.663h-4.326v-5.83h3.802V5.23Zm4.157 2.167h-1.723v12.768h1.723V7.396ZM57.35 5.212h-8.009v1.613h6.286v10.953c0 .47-.152.706-.44.706l-.659-.034c.186-.37.321-1.008.406-1.932l-1.487-.47c-.05.706-.135 1.126-.253 1.26a.506.506 0 0 1-.423.218h-.304c-.22 0-.321-.134-.321-.386v-1.966h1.673V10.32h-1.487c.405-.672.794-1.411 1.132-2.234l-1.656-.588a23.536 23.536 0 0 1-1.166 2.822H48.75l1.216-.605c-.405-.739-.81-1.428-1.25-2.032l-1.47.705c.44.571.862 1.21 1.25 1.932h-1.841v4.855h1.537c-.236 1.31-1.183 2.235-2.855 2.806l.912 1.445c2.061-.89 3.21-2.302 3.447-4.25h.912v2.301c0 1.042.457 1.58 1.369 1.58h1.081c.49 0 .879-.102 1.15-.27l.32 1.26h1.014c1.2 0 1.808-.588 1.808-1.764V5.212ZM29.572 9.563h-4.021v1.68h2.315v5.964c0 .353-.152.655-.44.907l.66 1.58a25.152 25.152 0 0 0 3.328-2.672l-.49-1.848c-.473.47-.93.908-1.352 1.294V9.563Zm-7.215-4.217H9.465v1.68h11.101v3.83h-8.634V8.64h-1.757v8.703c0 1.512.71 2.268 2.163 2.268h9.394c.676-.034 1.234-.236 1.64-.605.337-.37.624-1.63.844-3.78l-1.723-.538c-.102 1.714-.254 2.705-.49 2.94-.237.202-.49.303-.76.303h-8.398c-.609 0-.913-.303-.913-.908v-4.485h10.425v-7.19Zm29.857 6.384v2.033h-3.971V11.73h3.97Zm-19.11-4.233L31.6 8a28.8 28.8 0 0 1 1.2 4.099l1.503-.37a35.374 35.374 0 0 0-1.2-4.233Zm5.795-.05c-.355 1.646-.76 3.023-1.233 4.099l1.47.52c.523-1.21.963-2.604 1.3-4.216L38.9 7.446ZM27.95 4.707l-1.25 1.21c1.2.873 2.129 1.696 2.77 2.47l1.217-1.227a23.623 23.623 0 0 0-2.737-2.453Zm18.282-.269-1.605.706A15.91 15.91 0 0 1 46.435 7.9l1.571-.806a14.573 14.573 0 0 0-1.774-2.655Z",fill:"#37AD83",fillRule:"nonzero"}));var Tl="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzAiIGhlaWdodD0iMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTcwIDAtNi4xNDYgMTEuOTM2TDcwIDI0SDBWMGg3MFpNNDAuNzQgNS4yMjloLTkuMjkydjEuNjQ2aDMuNzY4djUuODNoLTQuMjU4djEuNjYzaDQuMjU4djUuNzk2aDEuN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.defineProperty,Ua=Object.defineProperties,qe=Object.getOwnPropertyDescriptors,Ni=Object.getOwnPropertySymbols,Yi=Object.prototype.hasOwnProperty,to=Object.prototype.propertyIsEnumerable,No=(Le,ce,Qt)=>ce in Le?Gs(Le,ce,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Le[ce]=Qt,Bi=(Le,ce)=>{for(var Qt in ce||(ce={}))Yi.call(ce,Qt)&&No(Le,Qt,ce[Qt]);if(Ni)for(var Qt of Ni(ce))to.call(ce,Qt)&&No(Le,Qt,ce[Qt]);return Le},Oo=(Le,ce)=>Ua(Le,qe(ce)),Yo=(Le,ce,Qt)=>new Promise((ti,yi)=>{var Si=ei=>{try{Li(Qt.next(ei))}catch(Mn){yi(Mn)}},Oi=ei=>{try{Li(Qt.throw(ei))}catch(Mn){yi(Mn)}},Li=ei=>ei.done?ti(ei.value):Promise.resolve(ei.value).then(Si,Oi);Li((Qt=Qt.apply(Le,ce)).next())});const ws={0:"\u672A\u63D0\u4EA4",1:"\u6309\u65F6\u63D0\u4EA4",2:"\u5EF6\u65F6\u63D0\u4EA4",3:"\u90E8\u5206\u63D0\u4EA4",4:"\u6309\u65F6\u63D0\u4EA4\uFF08\u6559\u5E08\u63D0\u4EA4\uFF09",5:"\u672A\u63D0\u4EA4\uFF08\u6559\u5E08\u63D0\u4EA4\uFF09",6:"\u6309\u65F6\u63D0\u4EA4\uFF08\u7EBF\u4E0B\uFF09","-1":"\u91CD\u505A\u4E2D"},_r={0:"#4D5865",1:"#FFFFFF",2:"#AC4C0C",3:"#AC4C0C",4:"#FFFFFF",5:"#4D5865",6:"#FFFFFF","-1":"#FFFFFF"},Hs={0:"#D0D8E0",1:"#37AD83",2:"#FFD28D",3:"#FFD28D",4:"#37AD83",5:"#D0D8E0",6:"#37AD83","-1":"#776FE8"},Dr=({shixunHomeworks:Le,globalSetting:ce,loading:Qt,user:ti,classroomList:yi,dispatch:Si})=>{var Oi,Li,ei,Mn,Di,er,Ps,In,ro,Jt,He,ls,Na,Jo,Gr,Zr,Ho,Qr,Zo,Yn,_i,zo,Hi,Ei,Uo,Fr,Bo,Us;const[So]=(0,oe.useSearchParams)(),ri=(0,oe.useParams)(),[$i]=ue.default.useForm(),[ts]=ue.default.useForm(),{userInfo:Eo}=ti,{studentWorkDetail:mn,studentWorkCommon:gi,studentWorkSupplyDetail:Ar,workList:ko,workDetail:Du,actionTabs:si}=Le,[,Wd,mo,Yd]=(0,Ri.U)(kt.wT,{userId:ri==null?void 0:ri.userId}),[,Fu,Bl,uu]=(0,Ri.U)(kt.Wr,{userId:ri==null?void 0:ri.userId}),[,hu,tl]=(0,Ri.U)(kt.G$,{userId:ri==null?void 0:ri.userId,id:ri==null?void 0:ri.userId}),[fl,xo]=(0,vt.useState)("1"),[Il,qu]=(0,vt.useState)(!1),[Ms,$u]=(0,vt.useState)({last:!1}),[us,ma]=(0,vt.useState)({last:!1}),pl=(0,vt.useRef)(),[Wa,eo]=(0,vt.useState)(!1),[Tr,Ya]=(0,vt.useState)("");let[bl,Kl]=(0,vt.useState)([]);const[Tu,du]=(0,vt.useState)(!1),cf=(0,vt.useRef)(),[gf,Vd]=(0,vt.useState)(!1),[id,Br]=(0,vt.useState)(""),[Bu,Ro]=(0,vt.useState)(!1),[hs,Cs]=(0,vt.useState)(!1),[mr,Mh]=(0,vt.useState)(""),[ds,th]=(0,vt.useState)(!0),[ff,pf]=Be.default.useModal(),[ka,Cc]=(0,vt.useState)(!1),[or,eh]=(0,vt.useState)(!1),[od,cu]=(0,vt.useState)(!1),[Xl,rd]=(0,vt.useState)(!1),[Kr,ms]=(0,vt.useState)(!1),[gu,Da]=(0,vt.useState)(!1),[ml,Fa]=(0,vt.useState)(!0),[es,vl]=(0,vt.useState)(!1),[oa,Ls]=(0,vt.useState)({content:"",type:""}),[va,rr]=(0,vt.useState)({status:0}),yl=[{title:"\u63D0\u4EA4\u6B21\u6570",dataIndex:"id",ellipsis:!0,width:80,render:(Gn,Ii,vs)=>vs+1},{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"commit_time",ellipsis:!0,render:Gn=>yt()(Gn).format("YYYY-MM-DD HH:mm")},{title:"\u63D0\u4EA4\u9636\u6BB5",dataIndex:"stage_name",ellipsis:!0,width:180,render:(Gn,Ii)=>Ge.createElement(Ge.Fragment,null,Gn,Ii!=null&&Ii.is_redo?Ge.createElement("span",{style:{color:"#FF9D18"}},"\uFF08\u6253\u56DE\u91CD\u505A\uFF09"):(Ii==null?void 0:Ii.is_redo_commit)&&Ge.createElement("span",{style:{color:"#2FA34F"}},"\uFF08\u91CD\u505A\u63D0\u4EA4\uFF09"))},{title:"\u6559\u5E08\u8BC4\u5206",dataIndex:"teacher_score",ellipsis:!0},{title:"\u52A9\u6559\u8BC4\u5206",dataIndex:"teaching_asistant_score",ellipsis:!0},{title:"\u533F\u8BC4\u5F97\u5206",dataIndex:"student_score",ellipsis:!0},{title:"\u64CD\u4F5C",dataIndex:"history_id",ellipsis:!0,width:80,align:"right",render:(Gn,Ii)=>Ge.createElement("a",{target:"_blank",href:`/classrooms/${ri==null?void 0:ri.coursesId}/common_homework/${ri==null?void 0:ri.categoryId}/review/${Ii==null?void 0:Ii.student_work_id}?history_id=${Ii==null?void 0:Ii.history_id}`},"\u67E5\u770B")}],br=(Gn={key:""})=>{Si({type:"shixunHomeworks/setActionTabs",payload:Gn}),Gn.key===""&&($i.resetFields(),ts.resetFields())},ya=()=>{Si({type:"shixunHomeworks/getStudentWorkCommon",payload:Bi({is_invalid:!1,history_id:So.get("history_id")},ri)})},nh=Gn=>{let Ii=0;for(let vs=0;vsYo(void 0,null,function*(){var Ii;mn!=null&&mn.single_score||(Gn.score=nh(Gn.score_details)),Gn.attachment_ids=(Ii=Gn.attachment_ids)==null?void 0:Ii.map(ys=>{var el;return(el=ys==null?void 0:ys.response)==null?void 0:el.id}),du(!0),(yield(0,kt.yy)(Oo(Bi({},Gn),{userId:ri.userId,is_hidden_comment:es}))).status===0&&($i.resetFields(),vl(!1),mn!=null&&mn.next_work_id?(me.ZP.success("\u8BC4\u9605\u6210\u529F\uFF01\u5DF2\u4E3A\u60A8\u81EA\u52A8\u5207\u6362\u81F3\u4E0B\u4E00\u4E2A\u5F85\u8BC4\u9605\u7684\u5B66\u751F",2),fu("read")):(me.ZP.success("\u8BC4\u9605\u6210\u529F\uFF01",2),ya(),pu())),eo(!0),du(!1)}),fu=Gn=>Yo(void 0,null,function*(){const{comment:Ii,score:vs,score_details:ys,attachment_ids:el}=$i.getFieldsValue();let Ah=!1;if(mn!=null&&mn.single_score?Ah=!(0,Dn.isNil)((vs==null?void 0:vs.length)==0?null:vs):ys==null||ys.some(Sl=>{if(!(0,Dn.isNil)(Sl!=null&&Sl.score?Sl==null?void 0:Sl.score:null))return Ah=!0,!0}),Ii||Ah||el){Be.default.confirm({centered:!0,okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:Ge.createElement("div",{className:"tc"},"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539"),onOk:()=>{$i.resetFields(),Gn==="last"?oe.history.push(So.get("ids")?`/classrooms/${ri==null?void 0:ri.coursesId}/common_homework/${ri==null?void 0:ri.categoryId}/review/${us==null?void 0:us.student_work_id}?ids=${So.get("ids")}&page=${So.get("page")}`:`/classrooms/${ri==null?void 0:ri.coursesId}/common_homework/${ri==null?void 0:ri.categoryId}/review/${us==null?void 0:us.student_work_id}&page=${So.get("page")}`):Gn==="read"?oe.history.push(So.get("ids")?`/classrooms/${ri==null?void 0:ri.coursesId}/common_homework/${ri==null?void 0:ri.categoryId}/review/${Ms==null?void 0:Ms.student_work_id}?ids=${So.get("ids")}&page=${So.get("page")}`:`/classrooms/${ri==null?void 0:ri.coursesId}/common_homework/${ri==null?void 0:ri.categoryId}/review/${Ms==null?void 0:Ms.student_work_id}&page=${So.get("page")}`):oe.history.push(`/classrooms/${ri.coursesId}/common_homework/${ri.categoryId}/detail?page=${So.get("page")}`)}});return}Gn==="last"?oe.history.push(So.get("ids")?`/classrooms/${ri==null?void 0:ri.coursesId}/common_homework/${ri==null?void 0:ri.categoryId}/review/${us==null?void 0:us.student_work_id}?ids=${So.get("ids")}&page=${So.get("page")}`:`/classrooms/${ri==null?void 0:ri.coursesId}/common_homework/${ri==null?void 0:ri.categoryId}/review/${us==null?void 0:us.student_work_id}&page=${So.get("page")}`):Gn==="read"?oe.history.push(So.get("ids")?`/classrooms/${ri==null?void 0:ri.coursesId}/common_homework/${ri==null?void 0:ri.categoryId}/review/${Ms==null?void 0:Ms.student_work_id}?ids=${So.get("ids")}&page=${So.get("page")}`:`/classrooms/${ri==null?void 0:ri.coursesId}/common_homework/${ri==null?void 0:ri.categoryId}/review/${Ms==null?void 0:Ms.student_work_id}&page=${So.get("page")}`):oe.history.push(`/classrooms/${ri.coursesId}/common_homework/${ri.categoryId}/detail?page=${So.get("page")}`)}),Ch=Gn=>Yo(void 0,null,function*(){Ro(!0),(yield(0,et.ZP)(`/api/homework_commons/${ri.categoryId}/student_works/export_normal_word_all.json`,{method:"post",body:{with_edit:Gn,with_submit_record:ds}})).status===0&&(Vd(!1),oe.history.push(`/classrooms/${ri==null?void 0:ri.coursesId}/exportlist/normal_work_list`)),Ro(!1)}),so=Gn=>{Ro(!0),(0,Zn.Nd)("",`${Lt.Z.API_SERVER}/api/student_works/${ri.userId}/export_normal_word_single.json?with_edit=${Gn}&with_submit_record=${ds}`),Ro(!1),Vd(!1)},Lh=Gn=>{Cs(Gn),Br("\u9644\u4EF6"),Vd(!0)};(0,vt.useEffect)(()=>{mn!=null&&mn.homework_id&&(mn!=null&&mn.prev_work_id?ma({student_work_id:mn==null?void 0:mn.prev_work_id}):ma({last:!0}),mn!=null&&mn.next_work_id?$u({student_work_id:mn==null?void 0:mn.next_work_id}):$u({last:!0}))},[mn]),(0,vt.useEffect)(()=>{const Gn=JSON.parse(localStorage.getItem("all_student_works_param")||"{}");Si({type:"shixunHomeworks/getStudentWorkDetail",payload:Oo(Bi(Bi({},ri),Gn),{history_id:So.get("history_id")||mr})}),Si({type:"shixunHomeworks/getStudentWorkSupplyDetail",payload:Bi({},ri)}),ya(),fl=="3"&&Bl({userId:ri==null?void 0:ri.userId}),pl.current.onclick=Ii=>{Ii.target.nodeName==="IMG"&&Ii.target.alt!==""&&ct.Z.publish("preview-image",Ii.target.src)}},[ri.categoryId,ri.userId]),(0,vt.useEffect)(()=>{mn!=null&&mn.score_details&&Kl(mn==null?void 0:mn.score_details.map(Gn=>Oo(Bi({},Gn),{score:""})))},[mn]),(0,vt.useEffect)(()=>{bl.every(Gn=>Gn.score==="")?eo(!0):eo(!1)},[bl]);const pu=()=>{const Gn=JSON.parse(localStorage.getItem("all_student_works_param")||"{}");Si({type:"shixunHomeworks/getStudentWorkDetail",payload:Oo(Bi(Bi({},ri),Gn),{history_id:So.get("history_id")||mr})}),Si({type:"shixunHomeworks/getStudentWorkSupplyDetail",payload:Bi({},ri)}),Si({type:"shixunHomeworks/getWorkDetail",payload:{categoryId:ri.categoryId}})};(0,vt.useEffect)(()=>{Mh(So.get("history_id")||"")},[So.get("history_id")]),(0,vt.useEffect)(()=>(Si({type:"classroomList/getAssistantPermissions",payload:{course_id:ri.coursesId}}),Si({type:"shixunHomeworks/getWorkDetail",payload:{categoryId:ri.categoryId}}),Si({type:"globalSetting/footerToggle",payload:!1}),()=>{Si({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,vt.useEffect)(()=>{(0,On.Rm)()&&Si({type:"classroomList/getAssistantPermissions",payload:{course_id:ri.coursesId}})},[(Oi=ti==null?void 0:ti.userInfo)==null?void 0:Oi.username]);const mu=()=>{var Gn,Ii,vs;return mr?!1:(0,On.G5)()||(0,On.Rm)()&&((Ii=(Gn=yi==null?void 0:yi.AssistantObject)==null?void 0:Gn.practice)!=null&&Ii.can_appraise)?!0:!!((0,On.dE)()&&((vs=mn==null?void 0:mn.homework_status)!=null&&vs.includes("\u533F\u8BC4\u4E2D"))&&!gi.is_author)},Es=(0,On.dE)()&&((Li=mn==null?void 0:mn.homework_status)==null?void 0:Li.includes("\u533F\u8BC4\u4E2D"))&&!gi.is_author,[_d,Eh]=(0,vt.useState)(!1),[mf,ih]=(0,vt.useState)(!1),[Zd,oh]=(0,vt.useState)(!1),ad=Gn=>{const Ii=Gn.currentTarget;Ii.scrollHeight>Ii.clientHeight&&Eh(!0)},ld=Gn=>{const Ii=Gn.currentTarget;Ii.scrollHeight>Ii.clientHeight&&ih(!0)},Lc=Gn=>{const Ii=Gn.currentTarget;Ii.scrollHeight>Ii.clientHeight&&oh(!0)};return(0,vt.useEffect)(()=>{var Gn;!(mn!=null&&mn.single_score)&&$i.setFieldValue("score_details",(Gn=mn==null?void 0:mn.score_details)==null?void 0:Gn.map(Ii=>Bi({},Ii)))},[mn]),Ge.createElement("section",{className:"edu-container",ref:pl,style:{width:mu()?"100%":"1200px",overflow:"hidden",overflowX:"auto"}},Ge.createElement("div",{style:(0,On.bg)()&&mu()?{minWidth:"1200px"}:{}},Ge.createElement("section",{className:"animated fadeIn"},Ge.createElement("div",{style:{height:"52px",background:"#FFFFFF",marginBottom:"10px",padding:"0 20px",display:"flex",alignItems:"center"}},Ge.createElement("div",{style:{cursor:"pointer",display:"flex",alignItems:"center"},onClick:()=>{fu("list")}},Ge.createElement("img",{src:pa}),Ge.createElement("div",{style:{fontWeight:400,color:"#666666",marginLeft:"5px",fontSize:"16px"}},"\u8FD4\u56DE")),Ge.createElement("div",{className:Ie.top_content},!Es&&(mn==null?void 0:mn.image_url)&&Ge.createElement("img",{src:`${Lt.Z.IMG_SERVER}/images/${mn==null?void 0:mn.image_url}`,className:Ie.top_content_img}),Ge.createElement("div",{className:Ie.item_content},Ge.createElement("div",{className:Ie.item_name,style:{height:Es?"40px":"20px",lineHeight:Es?"40px":"20px"}},mn==null?void 0:mn.author_name,!Es&&Ge.createElement("span",{className:Ie.item_tags,style:{color:_r[mn==null?void 0:mn.work_status],background:Hs[mn==null?void 0:mn.work_status]}},ws[mn==null?void 0:mn.work_status])),!Es&&((mn==null?void 0:mn.student_id)||(mn==null?void 0:mn.group_name))&&Ge.createElement("div",{className:Ie.item_code},Ge.createElement("span",null,"\u5B66\u53F7\uFF1A",mn==null?void 0:mn.student_id),Ge.createElement("span",{style:{marginLeft:"20px"}},"\u73ED\u7EA7\uFF1A",mn==null?void 0:mn.group_name)))),Ge.createElement("div",{style:{marginLeft:"auto",display:"flex",alignItems:"center"}},((mn==null?void 0:mn.score_given_user)||(mn==null?void 0:mn.score_given_user)==0)&&!mr&&Ge.createElement("div",{className:"mr10 font24",style:{fontWeight:600,color:"#009C0F"}},mn==null?void 0:mn.score_given_user,Ge.createElement("span",{style:{fontSize:"14px"}},"\u5206")),mr&&Ge.createElement("span",{style:{padding:"3px",marginRight:30,background:"rgba(219,243,224,0.88)",color:"#1FBE3C",fontSize:"12px"}},"\u7B2C",mn==null?void 0:mn.commit_count,"\u6B21\u63D0\u4EA4\u7684\u4F5C\u4E1A"),mr&&Ge.createElement("div",{className:Ie.buttonStyle,style:{border:"1px solid rgba(48,97,208,0.5)",color:"#3061D0",display:"flex",alignItems:"center",padding:"0 10px",marginRight:10,height:32,cursor:"pointer"},onClick:()=>{br({key:"\u4F5C\u4E1A\u63CF\u8FF0"})}},Ge.createElement("i",{className:"iconfont icon-fenzuzuoye3 font18",style:{color:"#009CDC"}}),Ge.createElement("span",{style:{marginLeft:5}},"\u4F5C\u4E1A\u63CF\u8FF0")),!mr&&Ge.createElement("div",null,!((0,On.dE)()&&gi.is_author)&&(mn!=null&&mn.rated_already?Ge.createElement("img",{src:Tl,style:{margin:"0 20px 0 0"}}):Ge.createElement("img",{src:Ql,style:{marginRight:"20px"}}))),(0,On.dE)()&&gi.is_author?Ge.createElement(Ge.Fragment,null):(mn==null?void 0:mn.have_history_comment)&&Ge.createElement(Ee.ZP,{className:Ie.buttonStyle,style:{border:"1px solid rgba(48,97,208,0.5)",color:"#3061D0",display:"flex",alignItems:"center",padding:"0 10px"},icon:Ge.createElement("i",{className:"iconfont icon-chakanshenqingjilu"}),onClick:()=>{br({key:"\u5386\u53F2\u8BC4\u9605\u8BB0\u5F55"})}},"\u5386\u53F2\u8BC4\u9605\u8BB0\u5F55"),!mr&&(0,On.G5)()&&Ge.createElement(qt.Z,{menu:{items:[{label:Ge.createElement("div",{onClick:()=>{Lh(!1)}},"\u5BFC\u51FA\u7B54\u9898\u8BB0\u5F55\u4E0E\u9644\u4EF6"),key:"1"},{label:Ge.createElement("div",{onClick:()=>{Lh(!0)}},"\u5BFC\u51FA\u5168\u90E8\u5B66\u751F\u7B54\u9898\u8BB0\u5F55\u4E0E\u9644\u4EF6"),key:"2"}]}},Ge.createElement("div",{className:`${Ie.daochu} ${Ie.buttonStyle}`},"\u5BFC\u51FA",Ge.createElement("i",{className:"iconfont icon-a-xialazhankai",style:{fontSize:"6px",marginLeft:"6px"}})))))),Ge.createElement("div",{style:{display:"flex"}},ml&&mu()&&Ge.createElement("div",{className:Ie.left_content},Ge.createElement("div",{className:Ie.left_title},Ge.createElement("i",{className:"iconfont icon-fenzuzuoye3 font18",style:{color:"#009CDC"}}),Ge.createElement("span",{className:"ml10"},"\u4F5C\u4E1A\u63CF\u8FF0"),Ge.createElement("span",{className:Ie.see_work,onClick:()=>{br({key:"\u4F5C\u4E1A\u63CF\u8FF0"})}},"\u67E5\u770B")),Ge.createElement("div",{className:Ie.left_list},Ge.createElement("div",{className:Ie.list_title},Ge.createElement("div",{style:{width:"5px",height:"10px",background:"#3061D0"}}),Ge.createElement("span",{style:{color:"#171717",fontWeight:600,marginLeft:"10px"}},"\u8BC4\u9605\u4EFB\u52A1"),Ge.createElement("span",{style:{marginLeft:"auto",color:"#333333"}},"\u5DF2\u8BC4"),Ge.createElement("span",{style:{color:"#009C0F",margin:"0 20px 0 8px",fontWeight:600}},mn==null?void 0:mn.commented_size),Ge.createElement("span",{style:{color:"#333333",marginRight:"8px"}},"\u672A\u8BC4"),Ge.createElement("span",{style:{color:"#FA6400",fontWeight:600}},mn==null?void 0:mn.no_commented_size)),Ge.createElement("div",{className:`${Ie.list_box} ${_d?"":Ie.hiddenBar}`,onMouseEnter:ad,onMouseLeave:()=>Eh(!1)},(ei=mn==null?void 0:mn.all_student_works)==null?void 0:ei.map(Gn=>{var Ii;return Ge.createElement("div",{className:Ie.list_item,style:{background:(Ii=ri==null?void 0:ri.userId)!=null&&Ii.includes(Gn==null?void 0:Gn.student_work_id)?"#F1F4F9":""},onClick:()=>{oe.history.push(Gn==null?void 0:Gn.url)}},Ge.createElement("img",{src:`${Lt.Z.IMG_SERVER}/images/${Gn==null?void 0:Gn.image_url}`,className:Ie.item_img,style:{filter:Es&&"blur(10px)",border:Es&&"none"}}),Ge.createElement("div",{className:Ie.item_content},Ge.createElement("div",{className:Ie.item_name,style:{height:Es?"40px":"20px",lineHeight:Es?"40px":"20px"}},Gn==null?void 0:Gn.username),!Es&&Ge.createElement("div",{className:Ie.item_code},"\u5B66\u53F7\uFF1A",Gn==null?void 0:Gn.student_id)),Ge.createElement("div",{className:Ie.item_states,style:{color:(Gn==null?void 0:Gn.score)=="\u5F85\u8BC4"?"#FA6400":"#009C0F"}},Gn==null?void 0:Gn.score,(Gn==null?void 0:Gn.score)!="\u5F85\u8BC4"&&"\u5206"))})))),mu()&&Ge.createElement("div",{className:ml?Ie.foldClose:Ie.foldOpen,onClick:()=>Fa(!ml)},ml&&Ge.createElement(Ce.Z,{placement:"right",title:"\u6536\u8D77"},Ge.createElement("span",{className:"icon-zuojiantou iconfont c-grey-c"})),!ml&&Ge.createElement(Ce.Z,{placement:"right",title:"\u5C55\u5F00"},Ge.createElement("span",{className:"icon-youjiantou iconfont",style:{color:"#3061D0"}}))),Ge.createElement("div",{style:{flex:1,margin:mu()?"0 20px 0 5px":"auto",minWidth:"600px"}},Ge.createElement(Se.default,{className:Ie.TabsStyle,destroyInactiveTabPane:!0,defaultActiveKey:"1",activeKey:fl,tabBarExtraContent:Ge.createElement(Ge.Fragment,null,!mr&&(mn==null?void 0:mn.commit_count)>1&&Ge.createElement(Ee.ZP,{style:{border:"none",color:"#3061D0",display:"flex",alignItems:"center",padding:0},icon:Ge.createElement("i",{className:"iconfont icon-chakanshenqingjilu"}),loading:Wd,onClick:()=>Yo(void 0,null,function*(){yield mo({},!0),br({key:"\u4F5C\u4E1A\u63D0\u4EA4\u8BB0\u5F55"})})},"\u4F5C\u4E1A\u63D0\u4EA4\u8BB0\u5F55")),onChange:Gn=>{xo(Gn),Gn=="2"&&oe.history.push(`/classrooms/${ri.coursesId}/common_homework/${ri.categoryId}/lab-report-view/${ri.userId}`),Gn=="3"&&Bl({})}},Ge.createElement(Se.default.TabPane,{tab:Ge.createElement("span",{style:{position:"relative"}},"\u5B66\u751F\u4F5C\u4E1A",Ge.createElement(Ce.Z,{title:Ge.createElement("span",{className:"font14"},"\uFF08\u5F53\u524D\u652F\u6301\u6279\u6CE8\u7684\u6587\u6863\u7C7B\u578B\uFF1A.docx\u3001.xlsx\u3001.pptx\uFF09")},Ge.createElement("i",{className:"iconfont icon-tishixiaowenhao ml10 font14 c-grey-999 current",style:{lineHeight:"18px"}}))),key:"1"}),!mr&&(0,On.j5)()&&Ge.createElement(Se.default.TabPane,{tab:"\u5B9E\u9A8C\u62A5\u544A",key:"2"}),(mn==null?void 0:mn.anonymous_comment)&&!mr&&Ge.createElement(Se.default.TabPane,{tab:"\u95EE\u9898\u53CD\u9988",key:"3"})),Ge.createElement("div",{className:`${mf?"":Ie.hiddenBar}`,onMouseEnter:ld,onMouseLeave:()=>ih(!1),style:{overflowY:"auto",height:"calc(100vh - 180px)"}},Ge.createElement(ve.Z,{spinning:Fu||!!Qt["shixunHomeworks/getStudentWorkDetail"]||!!Qt["shixunHomeworks/getStudentWorkSupplyDetail"]},Ge.createElement("div",{key:"1",style:{display:fl==="1"?"block":"none"}},Ge.createElement("div",{style:{background:"#F5F6F8",padding:"20px"}},Ge.createElement("div",{className:Ie.center_top},Ge.createElement("div",{className:Ie.center_top_title},Ge.createElement("img",{src:oo}),Ge.createElement("span",{className:"ml5",style:{color:"#3061D0",fontWeight:600}},"\u4F5C\u4E1A\u63D0\u4EA4\u5185\u5BB9"),(mn==null?void 0:mn.update_time)&&Ge.createElement(Ge.Fragment,null,Ge.createElement("span",{style:{marginLeft:"auto",cursor:"pointer",color:"#333333"}},yt()(mn==null?void 0:mn.update_time).format("YYYY-MM-DD HH:mm")),Ge.createElement("span",{className:"ml10",style:{color:"#333333"}},"\u66F4\u65B0"))),Ge.createElement("div",{className:Ie.center_top_content},Ge.createElement(rn.Z,{value:(mn==null?void 0:mn.description)||"\u6682\u65E0\uFF5E"}),Ge.createElement(un.Z,{authority:(0,On.GJ)(),dataSource:mn==null?void 0:mn.attachments,callback:()=>{Si({type:"shixunHomeworks/getStudentWorkDetail",payload:Bi({},ri)})}})))),((mn==null?void 0:mn.work_score)||(mn==null?void 0:mn.work_score)==0)&&!mr&&Ge.createElement(bo,{dataInfo:mn,handleCloseOrOpenModal:Gn=>{br(Gn)}})),Ge.createElement("div",{key:"3",style:{display:fl==="3"?"block":"none"}},Ge.createElement("div",{style:{background:"#fff",display:"flex",flexDirection:"column",padding:"10px 30px 30px 30px"}},((Mn=uu==null?void 0:uu.data)==null?void 0:Mn.count)>0?Ge.createElement(Ge.Fragment,null,(er=(Di=uu==null?void 0:uu.data)==null?void 0:Di.list)==null?void 0:er.map((Gn,Ii)=>Ge.createElement(Zl,{key:Ii,type:"feedback",Data:Oo(Bi({},Gn),{time:Gn==null?void 0:Gn.created_at,user_info:{user_image_url:Gn.avatar_url,user_id:Gn.user_id,user_name:Gn.real_name}}),getInitData:ya,updateData:pu,shixunHomeworks:Le}))):Ge.createElement(nn.Z,null)))),(Ps=gi==null?void 0:gi.teacher_list)!=null&&Ps.length?Ge.createElement("div",{className:Ie.pingyue},Ge.createElement("div",{className:Ie.pingyue_title},Ge.createElement("img",{src:xh,style:{marginRight:"5px"}}),Ge.createElement("div",{style:{color:"#333333",fontWeight:600}},"\u6559\u5E08\u8BC4\u9605"),((mn==null?void 0:mn.teacher_score)||(mn==null?void 0:mn.teacher_score)==0)&&Ge.createElement("div",{className:Ie.pingyue_score},Ge.createElement("div",{style:{height:"30px",lineHeight:"35px",fontSize:"24px",color:"#009C0F",fontWeight:600,marginLeft:"12px"}},mn==null?void 0:mn.teacher_score,Ge.createElement("span",{style:{fontSize:"14px"}},"\u5206")),Ge.createElement("div",{style:{fontSize:"12px",color:"#666666",marginLeft:"12px"}},"\u6700\u7EC8\u5F97\u5206\uFF08",(mn==null?void 0:mn.teacher_mode)==1?"\u5E73\u5747\u8BC4\u5206":"\u6700\u7EC8\u8BC4\u5206","\uFF09"))),Ge.createElement("div",{style:{padding:"20px"}},Ge.createElement("div",{style:{display:"flex",flexDirection:"column",gap:"20px"}},(In=gi==null?void 0:gi.teacher_list)!=null&&In.length?(ro=od?gi==null?void 0:gi.teacher_list:gi==null?void 0:gi.teacher_list.slice(0,3))==null?void 0:ro.map((Gn,Ii)=>Ge.createElement(Zl,{key:Ii,index:Ii,type:va.status==1&&"teacher",Data:Oo(Bi({},Gn),{user_info:{user_image_url:Gn.user_image_url,user_login:Gn.user_login,user_name:Gn.user_name}}),getInitData:ya,updateData:pu,shixunHomeworks:Le})):Ge.createElement(nn.Z,{styles:{margin:"50px auto"}}),((Jt=gi==null?void 0:gi.teacher_list)==null?void 0:Jt.length)>3&&!od&&Ge.createElement("div",{style:{color:"#3061D0",textAlign:"center",cursor:"pointer"},onClick:()=>{cu(!0)}},"\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u67E5\u770B\u5168\u90E8\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026"),((He=gi==null?void 0:gi.teacher_list)==null?void 0:He.length)>3&&od&&Ge.createElement("div",{style:{color:"#3061D0",textAlign:"center",cursor:"pointer"},onClick:()=>{cu(!1)}},"\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u5DF2\u5C55\u793A\u5168\u90E8\u4F5C\u4E1A\u8BC4\u8BED\uFF0C\u70B9\u51FB\u53EF\u6536\u8D77\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026")),((ls=gi==null?void 0:gi.hidden_comment_scores)==null?void 0:ls.length)>0&&Ge.createElement("div",{className:Ie.pingyue_teacher_title},Ge.createElement("img",{src:gl,style:{marginRight:"5px"}}),Ge.createElement("div",{style:{color:"#CA7720",fontWeight:600}},"\u4EC5\u6559\u5E08\u53EF\u89C1\u8BC4\u8BED")),((Na=gi==null?void 0:gi.hidden_comment_scores)==null?void 0:Na.length)>0&&Ge.createElement("div",{style:{display:"flex",flexDirection:"column"}},(Jo=gi==null?void 0:gi.hidden_comment_scores)!=null&&Jo.length?(Gr=Xl?gi==null?void 0:gi.hidden_comment_scores:gi==null?void 0:gi.hidden_comment_scores.slice(0,3))==null?void 0:Gr.map((Gn,Ii)=>Ge.createElement(Zl,{newType:"teacher",key:Ii,index:Ii,type:va.status==1&&"teacher",Data:Oo(Bi({},Gn),{user_info:{user_image_url:Gn.user_image_url,user_login:Gn.user_login,user_name:Gn.user_name}}),getInitData:ya,updateData:pu,shixunHomeworks:Le})):Ge.createElement(nn.Z,{styles:{margin:"50px auto"}}),((Zr=gi==null?void 0:gi.hidden_comment_scores)==null?void 0:Zr.length)>3&&!Xl&&Ge.createElement("div",{style:{color:"#3061D0",textAlign:"center",cursor:"pointer"},onClick:()=>{rd(!0)}},"\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u67E5\u770B\u5168\u90E8\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026"),((Ho=gi==null?void 0:gi.hidden_comment_scores)==null?void 0:Ho.length)>3&&Xl&&Ge.createElement("div",{style:{color:"#3061D0",textAlign:"center",cursor:"pointer"},onClick:()=>{rd(!1)}},"\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u5DF2\u5C55\u793A\u5168\u90E8\u4F5C\u4E1A\u8BC4\u8BED\uFF0C\u70B9\u51FB\u53EF\u6536\u8D77\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026")))):null,(Qr=gi==null?void 0:gi.teaching_assistant_list)!=null&&Qr.length?Ge.createElement("div",{className:Ie.pingyue,style:{marginTop:"20px"}},Ge.createElement("div",{className:Ie.pingyue_title},Ge.createElement("img",{src:xh,style:{marginRight:"5px"}}),Ge.createElement("div",{style:{color:"#333333",fontWeight:600}},"\u52A9\u6559\u8BC4\u9605"),((mn==null?void 0:mn.teaching_asistant_score)||(mn==null?void 0:mn.teaching_asistant_score)==0)&&Ge.createElement("div",{className:Ie.pingyue_score},Ge.createElement("div",{style:{height:"30px",lineHeight:"35px",fontSize:"24px",color:"#009C0F",fontWeight:600,marginLeft:"12px"}},mn==null?void 0:mn.teaching_asistant_score,Ge.createElement("span",{style:{fontSize:"14px"}},"\u5206")),Ge.createElement("div",{style:{fontSize:"12px",color:"#666666",marginLeft:"12px"}},"\u6700\u7EC8\u5F97\u5206\uFF08",(mn==null?void 0:mn.ta_mode)==1?"\u5E73\u5747\u8BC4\u5206":"\u6700\u7EC8\u8BC4\u5206","\uFF09"))),Ge.createElement("div",{style:{display:"flex",flexDirection:"column",gap:"20px",padding:"20px"}},(Zo=gi==null?void 0:gi.teaching_assistant_list)!=null&&Zo.length?(Yn=Kr?gi==null?void 0:gi.teaching_assistant_list:gi==null?void 0:gi.teaching_assistant_list.slice(0,3))==null?void 0:Yn.map((Gn,Ii)=>Ge.createElement(Zl,{key:Ii,index:Ii,type:va.status==1&&"teacher",Data:Oo(Bi({},Gn),{user_info:{user_image_url:Gn.user_image_url,user_login:Gn.user_login,user_name:Gn.user_name}}),getInitData:ya,updateData:pu,shixunHomeworks:Le})):Ge.createElement(nn.Z,{styles:{margin:"50px auto"}}),((_i=gi==null?void 0:gi.teaching_assistant_list)==null?void 0:_i.length)>3&&!Kr&&Ge.createElement("div",{style:{color:"#3061D0",textAlign:"center",cursor:"pointer"},onClick:()=>{ms(!0)}},"\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u67E5\u770B\u5168\u90E8\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026"),((zo=gi==null?void 0:gi.teaching_assistant_list)==null?void 0:zo.length)>3&&Kr&&Ge.createElement("div",{style:{color:"#3061D0",textAlign:"center",cursor:"pointer"},onClick:()=>{ms(!1)}},"\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u5DF2\u5C55\u793A\u5168\u90E8\u4F5C\u4E1A\u8BC4\u8BED\uFF0C\u70B9\u51FB\u53EF\u6536\u8D77\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026"))):null,(Hi=gi==null?void 0:gi.student_list)!=null&&Hi.length?Ge.createElement("div",{className:Ie.pingyue,style:{marginTop:"20px"}},Ge.createElement("div",{className:Ie.pingyue_title},Ge.createElement("img",{src:xh,style:{marginRight:"5px"}}),Ge.createElement("div",{style:{color:"#333333",fontWeight:600}},"\u533F\u8BC4\u8BC4\u9605"),((mn==null?void 0:mn.student_score)||(mn==null?void 0:mn.student_score)==0)&&Ge.createElement("div",{className:Ie.pingyue_score},Ge.createElement("div",{style:{height:"30px",lineHeight:"35px",fontSize:"24px",color:"#009C0F",fontWeight:600,marginLeft:"12px"}},mn==null?void 0:mn.student_score,Ge.createElement("span",{style:{fontSize:"14px"}},"\u5206")),Ge.createElement("div",{style:{fontSize:"12px",color:"#666666",marginLeft:"12px"}},"\u6700\u7EC8\u5F97\u5206\uFF08\u5E73\u5747\u8BC4\u5206\uFF09"))),Ge.createElement("div",{style:{display:"flex",flexDirection:"column",gap:"20px",padding:"20px"}},(Ei=gi==null?void 0:gi.student_list)!=null&&Ei.length?(Uo=gu?gi==null?void 0:gi.student_list:gi==null?void 0:gi.student_list.slice(0,3))==null?void 0:Uo.map((Gn,Ii)=>Ge.createElement(Zl,{showNm:!0,showName:!(0,On.dE)(),key:Ii,index:Ii,type:va.status==1&&"teacher",Data:Oo(Bi({},Gn),{user_info:{user_image_url:Gn.user_image_url,user_login:Gn.user_login,user_name:Gn.user_name}}),getInitData:ya,updateData:pu,shixunHomeworks:Le})):Ge.createElement(nn.Z,{styles:{margin:"50px auto"}}),((Fr=gi==null?void 0:gi.student_list)==null?void 0:Fr.length)>3&&!gu&&Ge.createElement("div",{style:{color:"#3061D0",textAlign:"center",cursor:"pointer"},onClick:()=>{Da(!0)}},"\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u67E5\u770B\u5168\u90E8\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026"),((Bo=gi==null?void 0:gi.student_list)==null?void 0:Bo.length)>3&&gu&&Ge.createElement("div",{style:{color:"#3061D0",textAlign:"center",cursor:"pointer"},onClick:()=>{Da(!1)}},"\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u5DF2\u5C55\u793A\u5168\u90E8\u4F5C\u4E1A\u8BC4\u8BED\uFF0C\u70B9\u51FB\u53EF\u6536\u8D77\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026"))):null)),mu()&&Ge.createElement("div",{style:{padding:"15px",height:"calc(100vh - 143px)",overflowY:"auto",background:"#ffffff"},className:`${Ie.right_content} ${Zd?"":Ie.hiddenBar}`,onMouseEnter:Lc,onMouseLeave:()=>oh(!1)},Ge.createElement(ue.default,{form:$i,layout:"vertical",size:"large",className:Ie.right_form,style:{position:"relative"},scrollToFirstError:!0,onFinish:Gn=>{sd(Gn)}},Ge.createElement("div",{className:"blod font16 mb10",style:{color:"#191919"}},"\u8BC4\u9605"),Ge.createElement(be,{FormProps:{form:$i},isShowStyles:!1}),Ge.createElement(ue.default.Item,{name:"attachment_ids",className:"mb20",style:{marginTop:"-12px"}},Ge.createElement(vn.Z,null)),(0,On.GJ)()&&Ge.createElement("div",null,Ge.createElement(ue.default.Item,{name:"hidden_comment",style:{background:"#F6F7F9",height:"50px",display:"flex",alignItems:"center",padding:"0 20px"}},Ge.createElement(se.default,{onChange:Gn=>{var Ii;vl((Ii=Gn==null?void 0:Gn.target)==null?void 0:Ii.checked)}},"\u8BC4\u8BED\u4EC5\u8BFE\u5802\u6559\u5E08\u53EF\u89C1")))),Ge.createElement("div",null,Ge.createElement(Ee.ZP,{loading:Tu,style:{width:"100%",height:"40px",background:"#3061D0",borderRadius:"7px"},type:"primary",onClick:()=>{$i.submit()}}," \u63D0\u4EA4\u8BC4\u9605 ")),Ge.createElement("div",{style:{display:"flex",marginTop:"20px",justifyContent:"space-between"}},(mn==null?void 0:mn.is_new_rule)&&(0,On.G5)()&&mn.work_status!==-1&&mn.work_status!==0&&Ge.createElement(Ee.ZP,{className:Ie.btnAdd,onClick:()=>{br({key:"\u786E\u8BA4\u6253\u56DE\u91CD\u505A"})}}," \u6253\u56DE\u91CD\u505A "),!(mn!=null&&mn.is_new_rule)&&(0,On.G5)()&&["\u63D0\u4EA4\u4E2D","\u8865\u4EA4\u4E2D","\u8FDB\u884C\u4E2D"].some(Gn=>{var Ii;return(Ii=mn==null?void 0:mn.homework_status)==null?void 0:Ii.includes(Gn)})&&Ge.createElement(Ee.ZP,{className:Ie.btnAdd,onClick:()=>{br({key:"\u786E\u8BA4\u6253\u56DE\u91CD\u505A"})}}," \u6253\u56DE\u91CD\u505A "),!(mn!=null&&mn.is_author)&&(0,On.dE)()&&((Us=mn==null?void 0:mn.homework_status)==null?void 0:Us.includes("\u533F\u8BC4\u4E2D"))&&So.get("review")!=="review"&&Ge.createElement(Ee.ZP,{className:Ie.btnAdd,onClick:()=>{br({key:"\u95EE\u9898\u53CD\u9988"})}}," \u95EE\u9898\u53CD\u9988 "),Ge.createElement(Ee.ZP,{className:`${!(us!=null&&us.last)&&Ie.btnAdd} ${Ie.lastAdd}`,style:{display:"flex",alignItems:"center"},onClick:()=>fu("last"),disabled:us==null?void 0:us.last},Ge.createElement("i",{className:"iconfont icon-zuojiantou font12 mr5"})," \u4E0A\u4E00\u4E2A "),Ge.createElement(Ee.ZP,{className:!(Ms!=null&&Ms.last)&&Ie.btnAdd,style:{display:"flex",alignItems:"center"},disabled:Ms==null?void 0:Ms.last,onClick:()=>fu("read")},"\u4E0B\u4E00\u4E2A ",Ge.createElement("i",{className:"iconfont icon-youjiantou font12 ml5"})))))),Ge.createElement(Ne,null),Ge.createElement(kn,{studentWorkDetail:mn}),Ge.createElement(Dt.Z,null),Ge.createElement(Be.default,{title:"\u786E\u8BA4\u6253\u56DE\u91CD\u505A",open:(si==null?void 0:si.key)=="\u786E\u8BA4\u6253\u56DE\u91CD\u505A",destroyOnClose:!0,forceRender:!0,width:700,onCancel:()=>{br("")},onOk:()=>Yo(void 0,null,function*(){if(!Tr){me.ZP.info("\u8BC4\u8BED\u4E0D\u80FD\u4E3A\u7A7A");return}const Gn=yield(0,et.ZP)(`/api/student_works/${ri.userId}/redo_modal.json`,{method:"post",body:{comment:Tr,id:ri.userId}});(Gn==null?void 0:Gn.status)===0&&(me.ZP.info("\u6253\u56DE\u91CD\u505A\u6210\u529F"),br(""),ya(),pu())})},Ge.createElement("div",{style:{padding:"32px"}},Ge.createElement("span",null,"\u786E\u8BA4\u5C06",mn==null?void 0:mn.author_name,"\u7684\u4F5C\u4E1A\u6253\u56DE\u91CD\u505A\u5417"),Ge.createElement("div",{style:{marginTop:"20px"}},Ge.createElement("label",null,Ge.createElement("span",{style:{marginRight:"5px",color:"red"}},"*"),"\u8BC4\u8BED\uFF1A"),Ge.createElement(nt.Z,{className:Ie.MdEditor,onChange:Gn=>Ya(Gn),defaultValue:"",height:250})))),Ge.createElement(lt.Z,{close:!0,data:oa==null?void 0:oa.content,type:oa==null?void 0:oa.type,hasMask:!0,monacoEditor:{value:cf.current,language:"txt",onChange:()=>{},options:{readOnly:!0,fontSize:14,minimap:{enabled:!1}}},onClose:()=>Ls({content:"",type:""})}),Ge.createElement(Be.default,{width:675,title:"\u8BF7\u9009\u62E9\u9700\u8981\u5BFC\u51FA\u7684\u683C\u5F0F",open:gf,confirmLoading:Bu,centered:!0,onCancel:()=>Vd(!1),onOk:()=>{id=="\u9644\u4EF6"?hs?Ch(!1):so(!1):id=="\u6279\u6CE8"&&(hs?Ch(!0):so(!0))}},Ge.createElement(se.default,{checked:ds,onChange:Gn=>{th(Gn.target.checked)}},"\u540C\u65F6\u5BFC\u51FA\u5B66\u751F\u63D0\u4EA4\u8BB0\u5F55"),Ge.createElement("div",{className:Ie.export_type_modal_title},"\u8BF7\u9009\u62E9\u9700\u8981\u5BFC\u51FA\u7684\u9644\u4EF6\u7C7B\u578B"),Ge.createElement("div",{className:Ie.export_type_modal},Ge.createElement("div",{className:Ie.export_type_modal_con},Ge.createElement("div",{className:`${Ie.type_item} ${id=="\u9644\u4EF6"?Ie.type_item_active:""}`,onClick:()=>Br("\u9644\u4EF6")},Ge.createElement("div",{className:`${Ie.img_warp}`},Ge.createElement("img",{src:Un.Z,width:72,height:80})),Ge.createElement("span",null,"\u5B66\u751F\u63D0\u4EA4\u7684\u9644\u4EF6")),Ge.createElement("div",{className:`${Ie.type_item} ${id=="\u6279\u6CE8"?Ie.type_item_active:""}`,onClick:()=>Br("\u6279\u6CE8")},Ge.createElement("div",{className:`${Ie.img_warp}`},Ge.createElement("img",{src:hi.Z,width:99,height:80})),Ge.createElement("span",null,"\u5305\u542B\u6279\u6CE8\u5185\u5BB9\u7684\u9644\u4EF6"))),Ge.createElement("div",{className:Ie.export_type_modal_waring},"\u5982\u5B66\u751F\u672A\u4E0A\u4F20\u9644\u4EF6\uFF0C\u4EC5\u4F1A\u5BFC\u51FA\u8BE5\u5B66\u751F\u63D0\u4EA4\u7684\u7B54\u9898\u8BB0\u5F55"))),Ge.createElement(Be.default,{title:si==null?void 0:si.key,open:(si==null?void 0:si.key)=="\u4F5C\u4E1A\u63D0\u4EA4\u8BB0\u5F55",centered:!0,destroyOnClose:!0,width:969,footer:null,onCancel:()=>br("")},Ge.createElement(Ae.default,{locale:{emptyText:Ge.createElement(nn.Z,null)},columns:yl,dataSource:Yd==null?void 0:Yd.student_works,pagination:!1})),Ge.createElement(Be.default,{title:si==null?void 0:si.key,open:(si==null?void 0:si.key)=="\u95EE\u9898\u53CD\u9988",centered:!0,destroyOnClose:!0,width:700,onCancel:()=>{br(""),ts.resetFields()},confirmLoading:hu,onOk:()=>{ts.submit()}},Ge.createElement(ue.default,{form:ts,onFinish:Gn=>Yo(void 0,null,function*(){const Ii=yield tl({userId:ri==null?void 0:ri.userId,id:ri==null?void 0:ri.userId,student_work_feedback:Bi({},Gn)});(Ii==null?void 0:Ii.status)==0&&(me.ZP.success("\u63D0\u4EA4\u6210\u529F"),br(""),ts.resetFields(),Bl({}),ya())})},Ge.createElement("div",{className:"mb20 p20 pt10 pb10 c-grey-333",style:{background:"#F6F7F9"}}," \u5982\u679C\u4F5C\u54C1\u65E0\u6CD5\u533F\u8BC4\uFF0C\u8BF7\u63CF\u8FF0\u95EE\u9898\u5E76\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u6309\u94AE\u8FDB\u884C\u53CD\u9988\u3002\u53CD\u9988\u540E\u7CFB\u7EDF\u5C06\u4E0D\u4F1A\u6263\u9664\u7F3A\u8BC4\u5206\u6570\u3002"),Ge.createElement(ue.default.Item,{className:"mb0",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5185\u5BB9"}]},Ge.createElement(_e.default.TextArea,{rows:6,placeholder:"\u4F8B\u5982\uFF1A\u4F5C\u54C1\u63D0\u4EA4\u7684\u9644\u4EF6\u4E0D\u6E05\u6670",maxLength:200})))),Ge.createElement(zn,{ModalProps:{open:(si==null?void 0:si.key)=="\u5386\u53F2\u8BC4\u9605\u8BB0\u5F55",onCancel:()=>{br("")},onOk:()=>{br("")}}}),Ge.createElement(Ki,{ModalProps:{open:(si==null?void 0:si.key)=="\u5F97\u5206\u8BE6\u60C5",onCancel:()=>{br("")},onOk:()=>{br("")}}}),Ge.createElement(yn,{ModalProps:{open:(si==null?void 0:si.key)=="\u4F5C\u4E1A\u63CF\u8FF0",footer:[Ge.createElement(Ee.ZP,{type:"primary",onClick:()=>br("")},"\u786E\u5B9A")],onCancel:()=>{br("")}}}))};var Ph=(0,oe.connect)(({shixunHomeworks:Le,loading:ce,user:Qt,globalSetting:ti,classroomList:yi})=>({shixunHomeworks:Le,globalSetting:ti,user:Qt,loading:ce.effects,classroomList:yi}))(Dr)},23538:function(Ze,En,bt){"use strict";bt.d(En,{$J:function(){return ue},JZ:function(){return me},bN:function(){return qt},jP:function(){return Ee},rO:function(){return Be}});var vt=bt(99064),oe=(Ce,Se,ve)=>new Promise((se,Ae)=>{var _e=nt=>{try{et(ve.next(nt))}catch(ct){Ae(ct)}},Dt=nt=>{try{et(ve.throw(nt))}catch(ct){Ae(ct)}},et=nt=>nt.done?se(nt.value):Promise.resolve(nt.value).then(_e,Dt);et((ve=ve.apply(Ce,Se)).next())});function ue(Ce){return(0,vt.U2)(`libraries/${Ce}.json`)}function Be(){return(0,vt.U2)("library_tags.json")}function me(Ce){return oe(this,null,function*(){return(yield(0,vt.IV)(`attachments/${Ce}.json`)).status===0})}function Ee(Ce){return(0,vt.v_)("libraries.json",Ce)}function qt(Ce,Se){return(0,vt.gz)(`libraries/${Ce}.json`,Se)}},83312:function(Ze,En,bt){"use strict";bt.d(En,{U:function(){return Se}});var vt=bt(59301),oe=Object.defineProperty,ue=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,Ee=(ve,se,Ae)=>se in ve?oe(ve,se,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):ve[se]=Ae,qt=(ve,se)=>{for(var Ae in se||(se={}))Be.call(se,Ae)&&Ee(ve,Ae,se[Ae]);if(ue)for(var Ae of ue(se))me.call(se,Ae)&&Ee(ve,Ae,se[Ae]);return ve},Ce=(ve,se,Ae)=>new Promise((_e,Dt)=>{var et=lt=>{try{ct(Ae.next(lt))}catch(pt){Dt(pt)}},nt=lt=>{try{ct(Ae.throw(lt))}catch(pt){Dt(pt)}},ct=lt=>lt.done?_e(lt.value):Promise.resolve(lt.value).then(et,nt);ct((Ae=Ae.apply(ve,se)).next())});function Se(ve,se){const[Ae,_e]=(0,vt.useState)(se),[Dt,et]=(0,vt.useState)(!1),[nt,ct]=(0,vt.useState)();return[Ae,Dt,(pt,yt=!1)=>Ce(this,null,function*(){const Lt=yt?se:qt(qt({},Ae),pt);et(!0),_e(Lt);const kt=yield ve(Lt);return et(!1),ct(kt),kt}),nt,ct]}},24768:function(Ze,En,bt){"use strict";bt.d(En,{AL:function(){return Lt},Iy:function(){return se},Qv:function(){return Dt},ez:function(){return yt},jb:function(){return Ae}});var vt=bt(32834),oe=bt.n(vt),ue=bt(11690),Be=bt.n(ue);let me=1;function Ee(ee,te){const Pe=ee.match(/^(\s+)(?:```)/);if(Pe===null)return te;const ae=Pe[1];return te.split(` `).map(We=>{const ye=We.match(/^\s+/);if(ye===null)return We;const[Ne]=ye;return Ne.length>=ae.length?We.slice(ae.length):We}).join(` `)}let qt=[],Ce=["
            "];const Se=new(oe()).Renderer,ve=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function se(){qt.length=0,Ce=["
              "]}const Ae={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function _e(ee,te,Pe,ae){if(te>=ee.length||ee[te].level<=Pe)return te;var We=ee[te];ae.push("
            • "+We.text+""),te++;var ye=[];return te=_e(ee,te,We.level,ye),ye.length>0&&(ae.push("
                "),ye.forEach(function(Ne){ae.push(Ne)}),ae.push("
              ")),ae.push("
            • "),te=_e(ee,te,Pe,ae),te}function Dt(){return _e(qt,0,0,Ce),Ce.push("
            "),Ce.join("")}const et={heading(ee){const te=ve.exec(ee);if(me+=1,te)return{type:"heading",raw:te[0],depth:te[1].length,text:te[2]}},fences(ee){const te=this.rules.block.fences.exec(ee);if(te){const Pe=te[0];let ae=Ee(Pe,te[3]||"");const We=te[2]?te[2].trim():te[2];if(["latex","katex","math"].indexOf(We)>=0){const ye=lt(),Ne=ae;ae=ye,pt[ye]={type:"block",expression:Ne}}return{type:"code",raw:Pe,lang:We,text:ae}}}},nt=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ct=0;const lt=()=>`__special_katext_id_${ct++}__`;let pt={};function yt(){return pt}function Lt(){ct=0,pt={}}function kt(ee){return ee=ee.replace(nt,(te,Pe)=>{const ae=lt();return pt[ae]={type:"inline",expression:Pe},ae}),ee}const Ht=Se.listitem;Se.listitem=function(ee){return Ht(kt(ee))};const Yt=Se.paragraph;Se.paragraph=function(ee){return Yt(kt(ee))};const $t=Se.tablecell;Se.tablecell=function(ee,te){return $t(kt(ee),te)},Se.code=function(ee,te,Pe){const ae=(te||"").match(/\S*/)[0];return ae?["latex","katex","math"].indexOf(ae)>=0?`

            ${ee}

            `:`
            ${Pe?ee:(0,ue.escape)(ee,!0)}
            -`:'
            '+(Pe?ee:(0,ue.escape)(ee,!0))+"
            "},Se.heading=function(ee,te,Pe){let ae=this.options.headerPrefix+Pe.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return qt.push({anchor:ae,level:te,text:ee}),"'+ee+""},oe().setOptions({silent:!0,gfm:!0,pedantic:!1}),oe().use({tokenizer:et,renderer:Se}),En.ZP=oe()},77578:function(Ze,En,bt){"use strict";bt.d(En,{Z:function(){return vt}});const vt=oe=>oe?typeof oe=="function"?oe():oe:null},37906:function(Ze,En,bt){"use strict";bt.d(En,{Z:function(){return vn}});var vt=bt(59301),oe=bt(92310),ue=bt.n(oe),Be=bt(69507),me=bt(36355),Ee=bt(19716),qt=bt(8628),Se={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},se=vt.createContext({}),Ae=bt(11592),_e=function(Vt,It){var ne={};for(var De in Vt)Object.prototype.hasOwnProperty.call(Vt,De)&&It.indexOf(De)<0&&(ne[De]=Vt[De]);if(Vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,De=Object.getOwnPropertySymbols(Vt);Qe(0,Ae.Z)(Vt).map(It=>Object.assign({},It==null?void 0:It.props));function et(Vt,It,ne){const De=vt.useMemo(()=>It||Dt(ne),[It,ne]);return vt.useMemo(()=>De.map(le=>{var{span:Oe}=le,on=_e(le,["span"]);return Object.assign(Object.assign({},on),{span:typeof Oe=="number"?Oe:(0,Be.m9)(Vt,Oe)})}),[De,Vt])}function nt(Vt,It,ne){let De=Vt;return(ne===void 0||ne>It)&&(De=Object.assign(Object.assign({},Vt),{span:It})),De}function ct(Vt,It){const ne=[];let De=[],Qe=It;return Vt.filter(le=>le).forEach((le,Oe)=>{const on=le==null?void 0:le.span,Cn=on||1;if(Oe===Vt.length-1){De.push(nt(le,Qe,on)),ne.push(De);return}Cn(0,vt.useMemo)(()=>ct(It,Vt),[It,Vt]),Lt=Vt=>{let{children:It}=Vt;return It};function kt(Vt){return Vt!=null}var Yt=Vt=>{const{itemPrefixCls:It,component:ne,span:De,className:Qe,style:le,labelStyle:Oe,contentStyle:on,bordered:Cn,label:ln,content:xn,colon:re}=Vt,kn=ne;return Cn?vt.createElement(kn,{className:ue()({[`${It}-item-label`]:kt(ln),[`${It}-item-content`]:kt(xn)},Qe),style:le,colSpan:De},kt(ln)&&vt.createElement("span",{style:Oe},ln),kt(xn)&&vt.createElement("span",{style:on},xn)):vt.createElement(kn,{className:ue()(`${It}-item`,Qe),style:le,colSpan:De},vt.createElement("div",{className:`${It}-item-container`},(ln||ln===0)&&vt.createElement("span",{className:ue()(`${It}-item-label`,{[`${It}-item-no-colon`]:!re}),style:Oe},ln),(xn||xn===0)&&vt.createElement("span",{className:ue()(`${It}-item-content`),style:on},xn)))};function $t(Vt,It,ne){let{colon:De,prefixCls:Qe,bordered:le}=It,{component:Oe,type:on,showLabel:Cn,showContent:ln,labelStyle:xn,contentStyle:re}=ne;return Vt.map((kn,Zn)=>{let{label:On,children:Un,prefixCls:hi=Qe,className:Ri,style:nn,labelStyle:un,contentStyle:wn,span:ze=1,key:fn}=kn;return typeof Oe=="string"?vt.createElement(Yt,{key:`${on}-${fn||Zn}`,className:Ri,style:nn,labelStyle:Object.assign(Object.assign({},xn),un),contentStyle:Object.assign(Object.assign({},re),wn),span:ze,colon:De,component:Oe,itemPrefixCls:hi,bordered:le,label:Cn?On:null,content:ln?Un:null}):[vt.createElement(Yt,{key:`label-${fn||Zn}`,className:Ri,style:Object.assign(Object.assign(Object.assign({},xn),nn),un),span:1,colon:De,component:Oe[0],itemPrefixCls:hi,bordered:le,label:On}),vt.createElement(Yt,{key:`content-${fn||Zn}`,className:Ri,style:Object.assign(Object.assign(Object.assign({},re),nn),wn),span:ze*2-1,component:Oe[1],itemPrefixCls:hi,bordered:le,content:Un})]})}var te=Vt=>{const It=vt.useContext(se),{prefixCls:ne,vertical:De,row:Qe,index:le,bordered:Oe}=Vt;return De?vt.createElement(vt.Fragment,null,vt.createElement("tr",{key:`label-${le}`,className:`${ne}-row`},$t(Qe,Vt,Object.assign({component:"th",type:"label",showLabel:!0},It))),vt.createElement("tr",{key:`content-${le}`,className:`${ne}-row`},$t(Qe,Vt,Object.assign({component:"td",type:"content",showContent:!0},It)))):vt.createElement("tr",{key:le,className:`${ne}-row`},$t(Qe,Vt,Object.assign({component:Oe?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},It)))},Pe=bt(17313),ae=bt(83116),We=bt(37613);const ye=Vt=>{const{componentCls:It,labelBg:ne}=Vt;return{[`&${It}-bordered`]:{[`> ${It}-view`]:{border:`${Vt.lineWidth}px ${Vt.lineType} ${Vt.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"},[`${It}-row`]:{borderBottom:`${Vt.lineWidth}px ${Vt.lineType} ${Vt.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${It}-item-label, > ${It}-item-content`]:{padding:`${Vt.padding}px ${Vt.paddingLG}px`,borderInlineEnd:`${Vt.lineWidth}px ${Vt.lineType} ${Vt.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${It}-item-label`]:{color:Vt.colorTextSecondary,backgroundColor:ne,"&::after":{display:"none"}}}},[`&${It}-middle`]:{[`${It}-row`]:{[`> ${It}-item-label, > ${It}-item-content`]:{padding:`${Vt.paddingSM}px ${Vt.paddingLG}px`}}},[`&${It}-small`]:{[`${It}-row`]:{[`> ${It}-item-label, > ${It}-item-content`]:{padding:`${Vt.paddingXS}px ${Vt.padding}px`}}}}}},Ne=Vt=>{const{componentCls:It,extraColor:ne,itemPaddingBottom:De,colonMarginRight:Qe,colonMarginLeft:le,titleMarginBottom:Oe}=Vt;return{[It]:Object.assign(Object.assign(Object.assign({},(0,Pe.Wf)(Vt)),ye(Vt)),{"&-rtl":{direction:"rtl"},[`${It}-header`]:{display:"flex",alignItems:"center",marginBottom:Oe},[`${It}-title`]:Object.assign(Object.assign({},Pe.vS),{flex:"auto",color:Vt.colorText,fontWeight:Vt.fontWeightStrong,fontSize:Vt.fontSizeLG,lineHeight:Vt.lineHeightLG}),[`${It}-extra`]:{marginInlineStart:"auto",color:ne,fontSize:Vt.fontSize},[`${It}-view`]:{width:"100%",borderRadius:Vt.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${It}-row`]:{"> th, > td":{paddingBottom:De},"&:last-child":{borderBottom:"none"}},[`${It}-item-label`]:{color:Vt.colorTextTertiary,fontWeight:"normal",fontSize:Vt.fontSize,lineHeight:Vt.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${le}px ${Qe}px`},[`&${It}-item-no-colon::after`]:{content:'""'}},[`${It}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${It}-item-content`]:{display:"table-cell",flex:1,color:Vt.colorText,fontSize:Vt.fontSize,lineHeight:Vt.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${It}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${It}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${It}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${It}-row`]:{"> th, > td":{paddingBottom:Vt.paddingSM}}},"&-small":{[`${It}-row`]:{"> th, > td":{paddingBottom:Vt.paddingXS}}}})}};var Ie=(0,ae.Z)("Descriptions",Vt=>{const It=(0,We.TS)(Vt,{});return[Ne(It)]},Vt=>({labelBg:Vt.colorFillAlter,titleMarginBottom:Vt.fontSizeSM*Vt.lineHeightSM,itemPaddingBottom:Vt.padding,colonMarginRight:Vt.marginXS,colonMarginLeft:Vt.marginXXS/2,extraColor:Vt.colorText})),rn=function(Vt,It){var ne={};for(var De in Vt)Object.prototype.hasOwnProperty.call(Vt,De)&&It.indexOf(De)<0&&(ne[De]=Vt[De]);if(Vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,De=Object.getOwnPropertySymbols(Vt);Qe{const{prefixCls:It,title:ne,extra:De,column:Qe,colon:le=!0,bordered:Oe,layout:on,children:Cn,className:ln,rootClassName:xn,style:re,size:kn,labelStyle:Zn,contentStyle:On,items:Un}=Vt,hi=rn(Vt,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","items"]),{getPrefixCls:Ri,direction:nn,descriptions:un}=vt.useContext(me.E_),wn=Ri("descriptions",It),ze=(0,qt.Z)(),fn=vt.useMemo(()=>{var At;return typeof Qe=="number"?Qe:(At=(0,Be.m9)(ze,Object.assign(Object.assign({},Se),Qe)))!==null&&At!==void 0?At:3},[ze,Qe]),sn=et(ze,Un,Cn),Bt=(0,Ee.Z)(kn),Mt=pt(fn,sn),[xt,Ft]=Ie(wn),Ut=vt.useMemo(()=>({labelStyle:Zn,contentStyle:On}),[Zn,On]);return xt(vt.createElement(se.Provider,{value:Ut},vt.createElement("div",Object.assign({className:ue()(wn,un==null?void 0:un.className,{[`${wn}-${Bt}`]:Bt&&Bt!=="default",[`${wn}-bordered`]:!!Oe,[`${wn}-rtl`]:nn==="rtl"},ln,xn,Ft),style:Object.assign(Object.assign({},un==null?void 0:un.style),re)},hi),(ne||De)&&vt.createElement("div",{className:`${wn}-header`},ne&&vt.createElement("div",{className:`${wn}-title`},ne),De&&vt.createElement("div",{className:`${wn}-extra`},De)),vt.createElement("div",{className:`${wn}-view`},vt.createElement("table",null,vt.createElement("tbody",null,Mt.map((At,ge)=>vt.createElement(te,{key:ge,index:ge,colon:le,prefixCls:wn,vertical:on==="vertical",bordered:Oe,row:At}))))))))};Dn.Item=Lt;var vn=Dn},14478:function(Ze,En,bt){"use strict";bt.d(En,{Z:function(){return te}});var vt=bt(96512),oe=bt(92310),ue=bt.n(oe),Be=bt(10228),me=bt(18929),Ee=bt(2738),qt=bt(59301),Ce=bt(92343),Se=bt(36355),ve=bt(60324),se=bt(92806),Ae=bt(77578),_e=bt(3113),Dt=bt(67797),et=bt(9763),nt=bt(31724),ct=bt(39722),lt=bt(83116);const pt=Pe=>{const{componentCls:ae,iconCls:We,antCls:ye,zIndexPopup:Ne,colorText:Ie,colorWarning:rn,marginXXS:Dn,marginXS:vn,fontSize:Vt,fontWeightStrong:It,colorTextHeading:ne}=Pe;return{[ae]:{zIndex:Ne,[`&${ye}-popover`]:{fontSize:Vt},[`${ae}-message`]:{marginBottom:vn,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${ae}-message-icon ${We}`]:{color:rn,fontSize:Vt,lineHeight:1,marginInlineEnd:vn},[`${ae}-title`]:{fontWeight:It,color:ne,"&:only-child":{fontWeight:"normal"}},[`${ae}-description`]:{marginTop:Dn,color:Ie}},[`${ae}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:vn}}}}};var yt=(0,lt.Z)("Popconfirm",Pe=>pt(Pe),Pe=>{const{zIndexPopupBase:ae}=Pe;return{zIndexPopup:ae+60}},{resetStyle:!1}),Lt=function(Pe,ae){var We={};for(var ye in Pe)Object.prototype.hasOwnProperty.call(Pe,ye)&&ae.indexOf(ye)<0&&(We[ye]=Pe[ye]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,ye=Object.getOwnPropertySymbols(Pe);Ne{const{prefixCls:ae,okButtonProps:We,cancelButtonProps:ye,title:Ne,description:Ie,cancelText:rn,okText:Dn,okType:vn="primary",icon:Vt=qt.createElement(vt.Z,null),showCancel:It=!0,close:ne,onConfirm:De,onCancel:Qe,onPopupClick:le}=Pe,{getPrefixCls:Oe}=qt.useContext(Se.E_),[on]=(0,et.Z)("Popconfirm",nt.Z.Popconfirm),Cn=(0,Ae.Z)(Ne),ln=(0,Ae.Z)(Ie);return qt.createElement("div",{className:`${ae}-inner-content`,onClick:le},qt.createElement("div",{className:`${ae}-message`},Vt&&qt.createElement("span",{className:`${ae}-message-icon`},Vt),qt.createElement("div",{className:`${ae}-message-text`},Cn&&qt.createElement("div",{className:ue()(`${ae}-title`)},Cn),ln&&qt.createElement("div",{className:`${ae}-description`},ln))),qt.createElement("div",{className:`${ae}-buttons`},It&&qt.createElement(_e.ZP,Object.assign({onClick:Qe,size:"small"},ye),rn!=null?rn:on==null?void 0:on.cancelText),qt.createElement(se.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,Dt.n)(vn)),We),actionFn:De,close:ne,prefixCls:Oe("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},Dn!=null?Dn:on==null?void 0:on.okText)))};var Yt=Pe=>{const{prefixCls:ae,placement:We,className:ye,style:Ne}=Pe,Ie=Lt(Pe,["prefixCls","placement","className","style"]),{getPrefixCls:rn}=qt.useContext(Se.E_),Dn=rn("popconfirm",ae),[vn]=yt(Dn);return vn(qt.createElement(ct.ZP,{placement:We,className:ue()(Dn,ye),style:Ne,content:qt.createElement(kt,Object.assign({prefixCls:Dn},Ie))}))},$t=function(Pe,ae){var We={};for(var ye in Pe)Object.prototype.hasOwnProperty.call(Pe,ye)&&ae.indexOf(ye)<0&&(We[ye]=Pe[ye]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,ye=Object.getOwnPropertySymbols(Pe);Ne{const{prefixCls:We,placement:ye="top",trigger:Ne="click",okType:Ie="primary",icon:rn=qt.createElement(vt.Z,null),children:Dn,overlayClassName:vn,onOpenChange:Vt,onVisibleChange:It}=Pe,ne=$t(Pe,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:De}=qt.useContext(Se.E_),[Qe,le]=(0,me.Z)(!1,{value:Pe.open,defaultValue:Pe.defaultOpen}),Oe=(Un,hi)=>{le(Un,!0),It==null||It(Un),Vt==null||Vt(Un,hi)},on=Un=>{Oe(!1,Un)},Cn=Un=>{var hi;return(hi=Pe.onConfirm)===null||hi===void 0?void 0:hi.call(void 0,Un)},ln=Un=>{var hi;Oe(!1,Un),(hi=Pe.onCancel)===null||hi===void 0||hi.call(void 0,Un)},xn=Un=>{Un.keyCode===Be.Z.ESC&&Qe&&Oe(!1,Un)},re=Un=>{const{disabled:hi=!1}=Pe;hi||Oe(Un)},kn=De("popconfirm",We),Zn=ue()(kn,vn),[On]=yt(kn);return On(qt.createElement(ve.Z,Object.assign({},(0,Ee.Z)(ne,["title"]),{trigger:Ne,placement:ye,onOpenChange:re,open:Qe,ref:ae,overlayClassName:Zn,content:qt.createElement(kt,Object.assign({okType:Ie,icon:rn},Pe,{prefixCls:kn,close:on,onConfirm:Cn,onCancel:ln})),"data-popover-inject":!0}),(0,Ce.Tm)(Dn,{onKeyDown:Un=>{var hi,Ri;qt.isValidElement(Dn)&&((Ri=Dn==null?void 0:(hi=Dn.props).onKeyDown)===null||Ri===void 0||Ri.call(hi,Un)),xn(Un)}})))});ee._InternalPanelDoNotUseOrYouWillBeFired=Yt;var te=ee},39722:function(Ze,En,bt){"use strict";bt.d(En,{t5:function(){return ve}});var vt=bt(92310),oe=bt.n(vt),ue=bt(55477),Be=bt(59301),me=bt(36355),Ee=bt(77578),qt=bt(17356),Ce=function(Ae,_e){var Dt={};for(var et in Ae)Object.prototype.hasOwnProperty.call(Ae,et)&&_e.indexOf(et)<0&&(Dt[et]=Ae[et]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,et=Object.getOwnPropertySymbols(Ae);nt{if(!(!_e&&!Dt))return Be.createElement(Be.Fragment,null,_e&&Be.createElement("div",{className:`${Ae}-title`},(0,Ee.Z)(_e)),Be.createElement("div",{className:`${Ae}-inner-content`},(0,Ee.Z)(Dt)))},ve=Ae=>{const{hashId:_e,prefixCls:Dt,className:et,style:nt,placement:ct="top",title:lt,content:pt,children:yt}=Ae;return Be.createElement("div",{className:oe()(_e,Dt,`${Dt}-pure`,`${Dt}-placement-${ct}`,et),style:nt},Be.createElement("div",{className:`${Dt}-arrow`}),Be.createElement(ue.G,Object.assign({},Ae,{className:_e,prefixCls:Dt}),yt||Se(Dt,lt,pt)))},se=Ae=>{const{prefixCls:_e}=Ae,Dt=Ce(Ae,["prefixCls"]),{getPrefixCls:et}=Be.useContext(me.E_),nt=et("popover",_e),[ct,lt]=(0,qt.Z)(nt);return ct(Be.createElement(ve,Object.assign({},Dt,{prefixCls:nt,hashId:lt})))};En.ZP=se},60324:function(Ze,En,bt){"use strict";var vt=bt(92310),oe=bt.n(vt),ue=bt(59301),Be=bt(77578),me=bt(62892),Ee=bt(36355),qt=bt(6848),Ce=bt(39722),Se=bt(17356),ve=function(_e,Dt){var et={};for(var nt in _e)Object.prototype.hasOwnProperty.call(_e,nt)&&Dt.indexOf(nt)<0&&(et[nt]=_e[nt]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,nt=Object.getOwnPropertySymbols(_e);ct{let{title:Dt,content:et,prefixCls:nt}=_e;return ue.createElement(ue.Fragment,null,Dt&&ue.createElement("div",{className:`${nt}-title`},(0,Be.Z)(Dt)),ue.createElement("div",{className:`${nt}-inner-content`},(0,Be.Z)(et)))},Ae=ue.forwardRef((_e,Dt)=>{const{prefixCls:et,title:nt,content:ct,overlayClassName:lt,placement:pt="top",trigger:yt="hover",mouseEnterDelay:Lt=.1,mouseLeaveDelay:kt=.1,overlayStyle:Ht={}}=_e,Yt=ve(_e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:$t}=ue.useContext(Ee.E_),ee=$t("popover",et),[te,Pe]=(0,Se.Z)(ee),ae=$t(),We=oe()(lt,Pe);return te(ue.createElement(qt.Z,Object.assign({placement:pt,trigger:yt,mouseEnterDelay:Lt,mouseLeaveDelay:kt,overlayStyle:Ht},Yt,{prefixCls:ee,overlayClassName:We,ref:Dt,overlay:nt||ct?ue.createElement(se,{prefixCls:ee,title:nt,content:ct}):null,transitionName:(0,me.m)(ae,"zoom-big",Yt.transitionName),"data-popover-inject":!0})))});Ae._InternalPanelDoNotUseOrYouWillBeFired=Ce.ZP,En.Z=Ae},17356:function(Ze,En,bt){"use strict";var vt=bt(17313),oe=bt(29878),ue=bt(19447),Be=bt(33166),me=bt(83116),Ee=bt(37613);const qt=ve=>{const{componentCls:se,popoverColor:Ae,minWidth:_e,fontWeightStrong:Dt,popoverPadding:et,boxShadowSecondary:nt,colorTextHeading:ct,borderRadiusLG:lt,zIndexPopup:pt,marginXS:yt,colorBgElevated:Lt,popoverBg:kt}=ve;return[{[se]:Object.assign(Object.assign({},(0,vt.Wf)(ve)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:pt,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":Lt,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${se}-content`]:{position:"relative"},[`${se}-inner`]:{backgroundColor:kt,backgroundClip:"padding-box",borderRadius:lt,boxShadow:nt,padding:et},[`${se}-title`]:{minWidth:_e,marginBottom:yt,color:ct,fontWeight:Dt},[`${se}-inner-content`]:{color:Ae}})},(0,ue.ZP)(ve,{colorBg:"var(--antd-arrow-background-color)"}),{[`${se}-pure`]:{position:"relative",maxWidth:"none",margin:ve.sizePopupArrow,display:"inline-block",[`${se}-content`]:{display:"inline-block"}}}]},Ce=ve=>{const{componentCls:se}=ve;return{[se]:Be.i.map(Ae=>{const _e=ve[`${Ae}6`];return{[`&${se}-${Ae}`]:{"--antd-arrow-background-color":_e,[`${se}-inner`]:{backgroundColor:_e},[`${se}-arrow`]:{background:"transparent"}}}})}},Se=ve=>{const{componentCls:se,lineWidth:Ae,lineType:_e,colorSplit:Dt,paddingSM:et,controlHeight:nt,fontSize:ct,lineHeight:lt,padding:pt}=ve,yt=nt-Math.round(ct*lt),Lt=yt/2,kt=yt/2-Ae,Ht=pt;return{[se]:{[`${se}-inner`]:{padding:0},[`${se}-title`]:{margin:0,padding:`${Lt}px ${Ht}px ${kt}px`,borderBottom:`${Ae}px ${_e} ${Dt}`},[`${se}-inner-content`]:{padding:`${et}px ${Ht}px`}}}};En.Z=(0,me.Z)("Popover",ve=>{const{colorBgElevated:se,colorText:Ae,wireframe:_e}=ve,Dt=(0,Ee.TS)(ve,{popoverPadding:12,popoverBg:se,popoverColor:Ae});return[qt(Dt),Ce(Dt),_e&&Se(Dt),(0,oe._y)(Dt,"zoom-big")]},ve=>({width:177,minWidth:177,zIndexPopup:ve.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},13570:function(Ze,En,bt){"use strict";bt.d(En,{Z:function(){return It}});var vt=bt(72308),oe=bt(59301),ue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},Be=ue,me=bt(7657),Ee=function(De,Qe){return oe.createElement(me.Z,(0,vt.Z)({},De,{ref:Qe,icon:Be}))},qt=oe.forwardRef(Ee),Ce=qt,Se=bt(92310),ve=bt.n(Se),se=bt(49618),Ae=bt(52487),_e=bt(74416),Dt=bt(18929),et=bt(10228),nt=bt(26112);function ct(ne,De){var Qe=ne.disabled,le=ne.prefixCls,Oe=ne.character,on=ne.characterRender,Cn=ne.index,ln=ne.count,xn=ne.value,re=ne.allowHalf,kn=ne.focused,Zn=ne.onHover,On=ne.onClick,Un=function(sn){Zn(sn,Cn)},hi=function(sn){On(sn,Cn)},Ri=function(sn){sn.keyCode===et.Z.ENTER&&On(sn,Cn)},nn=Cn+1,un=new Set([le]);xn===0&&Cn===0&&kn?un.add("".concat(le,"-focused")):re&&xn+.5>=nn&&xnCn?"true":"false","aria-posinset":Cn+1,"aria-setsize":ln,tabIndex:Qe?-1:0},oe.createElement("div",{className:"".concat(le,"-first")},wn),oe.createElement("div",{className:"".concat(le,"-second")},wn)));return on&&(ze=on(ze,ne)),ze}var lt=oe.forwardRef(ct);function pt(){var ne=oe.useRef({});function De(le){return ne.current[le]}function Qe(le){return function(Oe){ne.current[le]=Oe}}return[De,Qe]}function yt(ne){var De=ne.pageXOffset,Qe="scrollLeft";if(typeof De!="number"){var le=ne.document;De=le.documentElement[Qe],typeof De!="number"&&(De=le.body[Qe])}return De}function Lt(ne){var De,Qe,le=ne.ownerDocument,Oe=le.body,on=le&&le.documentElement,Cn=ne.getBoundingClientRect();return De=Cn.left,Qe=Cn.top,De-=on.clientLeft||Oe.clientLeft||0,Qe-=on.clientTop||Oe.clientTop||0,{left:De,top:Qe}}function kt(ne){var De=Lt(ne),Qe=ne.ownerDocument,le=Qe.defaultView||Qe.parentWindow;return De.left+=yt(le),De.left}var Ht=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Yt(ne,De){var Qe,le=ne.prefixCls,Oe=le===void 0?"rc-rate":le,on=ne.className,Cn=ne.defaultValue,ln=ne.value,xn=ne.count,re=xn===void 0?5:xn,kn=ne.allowHalf,Zn=kn===void 0?!1:kn,On=ne.allowClear,Un=On===void 0?!0:On,hi=ne.character,Ri=hi===void 0?"\u2605":hi,nn=ne.characterRender,un=ne.disabled,wn=ne.direction,ze=wn===void 0?"ltr":wn,fn=ne.tabIndex,sn=fn===void 0?0:fn,Bt=ne.autoFocus,Mt=ne.onHoverChange,xt=ne.onChange,Ft=ne.onFocus,Ut=ne.onBlur,At=ne.onKeyDown,ge=ne.onMouseLeave,dn=(0,_e.Z)(ne,Ht),gn=pt(),pn=(0,Ae.Z)(gn,2),Rn=pn[0],Mi=pn[1],ji=oe.useRef(null),wi=function(){if(!un){var be;(be=ji.current)===null||be===void 0||be.focus()}};oe.useImperativeHandle(De,function(){return{focus:wi,blur:function(){if(!un){var be;(be=ji.current)===null||be===void 0||be.blur()}}}});var Ji=(0,Dt.Z)(Cn||0,{value:ln}),wo=(0,Ae.Z)(Ji,2),Io=wo[0],Wr=wo[1],nr=(0,Dt.Z)(null),Cr=(0,Ae.Z)(nr,2),bo=Cr[0],Fo=Cr[1],fo=function(be,An){var li=ze==="rtl",Jn=be+1;if(Zn){var Ki=Rn(be),ie=kt(Ki),yn=Ki.clientWidth;(li&&An-ie>yn/2||!li&&An-ie0&&!li||An===et.Z.RIGHT&&Jn>0&&li?(Zn?Jn-=.5:Jn-=1,hr(Jn),be.preventDefault()):An===et.Z.LEFT&&Jn{const{componentCls:De}=ne;return{[`${De}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:ne.marginXS},"> div":{transition:`all ${ne.motionDurationMid}, outline 0s`,"&:hover":{transform:ne.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${ne.lineWidth}px dashed ${ne.starColor}`,transform:ne.starHoverScale}},"&-first, &-second":{color:ne.starBg,transition:`all ${ne.motionDurationMid}`,userSelect:"none",[ne.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${De}-star-first, &-half ${De}-star-second`]:{opacity:1},[`&-half ${De}-star-first, &-full ${De}-star-second`]:{color:"inherit"}}}},Ie=ne=>({[`&-rtl${ne.componentCls}`]:{direction:"rtl"}}),rn=ne=>{const{componentCls:De}=ne;return{[De]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ae.Wf)(ne)),{display:"inline-block",margin:0,padding:0,color:ne.starColor,fontSize:ne.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${De} ${De}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Ne(ne)),{[`+ ${De}-text`]:{display:"inline-block",marginInlineStart:ne.marginXS,fontSize:ne.fontSize}}),Ie(ne))}};var Dn=(0,We.Z)("Rate",ne=>{const De=(0,ye.TS)(ne,{});return[rn(De)]},ne=>({starColor:ne.yellow6,starSize:ne.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:ne.colorFillContent})),vn=function(ne,De){var Qe={};for(var le in ne)Object.prototype.hasOwnProperty.call(ne,le)&&De.indexOf(le)<0&&(Qe[le]=ne[le]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,le=Object.getOwnPropertySymbols(ne);Oe{const{prefixCls:Qe,className:le,rootClassName:Oe,style:on,tooltips:Cn,character:ln=oe.createElement(Ce,null)}=ne,xn=vn(ne,["prefixCls","className","rootClassName","style","tooltips","character"]),re=(un,wn)=>{let{index:ze}=wn;return Cn?oe.createElement(Pe.Z,{title:Cn[ze]},un):un},{getPrefixCls:kn,direction:Zn,rate:On}=oe.useContext(te.E_),Un=kn("rate",Qe),[hi,Ri]=Dn(Un),nn=Object.assign(Object.assign({},On==null?void 0:On.style),on);return hi(oe.createElement(ee,Object.assign({ref:De,character:ln,characterRender:re},xn,{className:ve()(le,Oe,Ri,On==null?void 0:On.className),style:nn,prefixCls:Un,direction:Zn})))})},61621:function(Ze,En,bt){"use strict";bt.d(En,{Z:function(){return Ri}});var vt=bt(92310),oe=bt.n(vt),ue=bt(59301),Be=bt(36355),me=bt(2738),qt=nn=>{const{prefixCls:un,className:wn,style:ze,size:fn,shape:sn}=nn,Bt=oe()({[`${un}-lg`]:fn==="large",[`${un}-sm`]:fn==="small"}),Mt=oe()({[`${un}-circle`]:sn==="circle",[`${un}-square`]:sn==="square",[`${un}-round`]:sn==="round"}),xt=ue.useMemo(()=>typeof fn=="number"?{width:fn,height:fn,lineHeight:`${fn}px`}:{},[fn]);return ue.createElement("span",{className:oe()(un,Bt,Mt,wn),style:Object.assign(Object.assign({},xt),ze)})},Ce=bt(93083),Se=bt(83116),ve=bt(37613);const se=new Ce.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Ae=nn=>({height:nn,lineHeight:`${nn}px`}),_e=nn=>Object.assign({width:nn},Ae(nn)),Dt=nn=>({background:nn.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:se,animationDuration:nn.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),et=nn=>Object.assign({width:nn*5,minWidth:nn*5},Ae(nn)),nt=nn=>{const{skeletonAvatarCls:un,gradientFromColor:wn,controlHeight:ze,controlHeightLG:fn,controlHeightSM:sn}=nn;return{[`${un}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:wn},_e(ze)),[`${un}${un}-circle`]:{borderRadius:"50%"},[`${un}${un}-lg`]:Object.assign({},_e(fn)),[`${un}${un}-sm`]:Object.assign({},_e(sn))}},ct=nn=>{const{controlHeight:un,borderRadiusSM:wn,skeletonInputCls:ze,controlHeightLG:fn,controlHeightSM:sn,gradientFromColor:Bt}=nn;return{[`${ze}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Bt,borderRadius:wn},et(un)),[`${ze}-lg`]:Object.assign({},et(fn)),[`${ze}-sm`]:Object.assign({},et(sn))}},lt=nn=>Object.assign({width:nn},Ae(nn)),pt=nn=>{const{skeletonImageCls:un,imageSizeBase:wn,gradientFromColor:ze,borderRadiusSM:fn}=nn;return{[`${un}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:ze,borderRadius:fn},lt(wn*2)),{[`${un}-path`]:{fill:"#bfbfbf"},[`${un}-svg`]:Object.assign(Object.assign({},lt(wn)),{maxWidth:wn*4,maxHeight:wn*4}),[`${un}-svg${un}-svg-circle`]:{borderRadius:"50%"}}),[`${un}${un}-circle`]:{borderRadius:"50%"}}},yt=(nn,un,wn)=>{const{skeletonButtonCls:ze}=nn;return{[`${wn}${ze}-circle`]:{width:un,minWidth:un,borderRadius:"50%"},[`${wn}${ze}-round`]:{borderRadius:un}}},Lt=nn=>Object.assign({width:nn*2,minWidth:nn*2},Ae(nn)),kt=nn=>{const{borderRadiusSM:un,skeletonButtonCls:wn,controlHeight:ze,controlHeightLG:fn,controlHeightSM:sn,gradientFromColor:Bt}=nn;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${wn}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Bt,borderRadius:un,width:ze*2,minWidth:ze*2},Lt(ze))},yt(nn,ze,wn)),{[`${wn}-lg`]:Object.assign({},Lt(fn))}),yt(nn,fn,`${wn}-lg`)),{[`${wn}-sm`]:Object.assign({},Lt(sn))}),yt(nn,sn,`${wn}-sm`))},Ht=nn=>{const{componentCls:un,skeletonAvatarCls:wn,skeletonTitleCls:ze,skeletonParagraphCls:fn,skeletonButtonCls:sn,skeletonInputCls:Bt,skeletonImageCls:Mt,controlHeight:xt,controlHeightLG:Ft,controlHeightSM:Ut,gradientFromColor:At,padding:ge,marginSM:dn,borderRadius:gn,titleHeight:pn,blockRadius:Rn,paragraphLiHeight:Mi,controlHeightXS:ji,paragraphMarginTop:wi}=nn;return{[`${un}`]:{display:"table",width:"100%",[`${un}-header`]:{display:"table-cell",paddingInlineEnd:ge,verticalAlign:"top",[`${wn}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:At},_e(xt)),[`${wn}-circle`]:{borderRadius:"50%"},[`${wn}-lg`]:Object.assign({},_e(Ft)),[`${wn}-sm`]:Object.assign({},_e(Ut))},[`${un}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${ze}`]:{width:"100%",height:pn,background:At,borderRadius:Rn,[`+ ${fn}`]:{marginBlockStart:Ut}},[`${fn}`]:{padding:0,"> li":{width:"100%",height:Mi,listStyle:"none",background:At,borderRadius:Rn,"+ li":{marginBlockStart:ji}}},[`${fn}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${un}-content`]:{[`${ze}, ${fn} > li`]:{borderRadius:gn}}},[`${un}-with-avatar ${un}-content`]:{[`${ze}`]:{marginBlockStart:dn,[`+ ${fn}`]:{marginBlockStart:wi}}},[`${un}${un}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},kt(nn)),nt(nn)),ct(nn)),pt(nn)),[`${un}${un}-block`]:{width:"100%",[`${sn}`]:{width:"100%"},[`${Bt}`]:{width:"100%"}},[`${un}${un}-active`]:{[` +`:'
            '+(Pe?ee:(0,ue.escape)(ee,!0))+"
            "},Se.heading=function(ee,te,Pe){let ae=this.options.headerPrefix+Pe.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return qt.push({anchor:ae,level:te,text:ee}),"'+ee+""},oe().setOptions({silent:!0,gfm:!0,pedantic:!1}),oe().use({tokenizer:et,renderer:Se}),En.ZP=oe()},77578:function(Ze,En,bt){"use strict";bt.d(En,{Z:function(){return vt}});const vt=oe=>oe?typeof oe=="function"?oe():oe:null},37906:function(Ze,En,bt){"use strict";bt.d(En,{Z:function(){return vn}});var vt=bt(59301),oe=bt(92310),ue=bt.n(oe),Be=bt(69507),me=bt(36355),Ee=bt(19716),qt=bt(8628),Se={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},se=vt.createContext({}),Ae=bt(11592),_e=function(Vt,It){var ne={};for(var De in Vt)Object.prototype.hasOwnProperty.call(Vt,De)&&It.indexOf(De)<0&&(ne[De]=Vt[De]);if(Vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,De=Object.getOwnPropertySymbols(Vt);Qe(0,Ae.Z)(Vt).map(It=>Object.assign({},It==null?void 0:It.props));function et(Vt,It,ne){const De=vt.useMemo(()=>It||Dt(ne),[It,ne]);return vt.useMemo(()=>De.map(le=>{var{span:Oe}=le,on=_e(le,["span"]);return Object.assign(Object.assign({},on),{span:typeof Oe=="number"?Oe:(0,Be.m9)(Vt,Oe)})}),[De,Vt])}function nt(Vt,It,ne){let De=Vt;return(ne===void 0||ne>It)&&(De=Object.assign(Object.assign({},Vt),{span:It})),De}function ct(Vt,It){const ne=[];let De=[],Qe=It;return Vt.filter(le=>le).forEach((le,Oe)=>{const on=le==null?void 0:le.span,Cn=on||1;if(Oe===Vt.length-1){De.push(nt(le,Qe,on)),ne.push(De);return}Cn(0,vt.useMemo)(()=>ct(It,Vt),[It,Vt]),Lt=Vt=>{let{children:It}=Vt;return It};function kt(Vt){return Vt!=null}var Yt=Vt=>{const{itemPrefixCls:It,component:ne,span:De,className:Qe,style:le,labelStyle:Oe,contentStyle:on,bordered:Cn,label:ln,content:xn,colon:re}=Vt,kn=ne;return Cn?vt.createElement(kn,{className:ue()({[`${It}-item-label`]:kt(ln),[`${It}-item-content`]:kt(xn)},Qe),style:le,colSpan:De},kt(ln)&&vt.createElement("span",{style:Oe},ln),kt(xn)&&vt.createElement("span",{style:on},xn)):vt.createElement(kn,{className:ue()(`${It}-item`,Qe),style:le,colSpan:De},vt.createElement("div",{className:`${It}-item-container`},(ln||ln===0)&&vt.createElement("span",{className:ue()(`${It}-item-label`,{[`${It}-item-no-colon`]:!re}),style:Oe},ln),(xn||xn===0)&&vt.createElement("span",{className:ue()(`${It}-item-content`),style:on},xn)))};function $t(Vt,It,ne){let{colon:De,prefixCls:Qe,bordered:le}=It,{component:Oe,type:on,showLabel:Cn,showContent:ln,labelStyle:xn,contentStyle:re}=ne;return Vt.map((kn,Zn)=>{let{label:On,children:Un,prefixCls:hi=Qe,className:Ri,style:nn,labelStyle:un,contentStyle:wn,span:ze=1,key:fn}=kn;return typeof Oe=="string"?vt.createElement(Yt,{key:`${on}-${fn||Zn}`,className:Ri,style:nn,labelStyle:Object.assign(Object.assign({},xn),un),contentStyle:Object.assign(Object.assign({},re),wn),span:ze,colon:De,component:Oe,itemPrefixCls:hi,bordered:le,label:Cn?On:null,content:ln?Un:null}):[vt.createElement(Yt,{key:`label-${fn||Zn}`,className:Ri,style:Object.assign(Object.assign(Object.assign({},xn),nn),un),span:1,colon:De,component:Oe[0],itemPrefixCls:hi,bordered:le,label:On}),vt.createElement(Yt,{key:`content-${fn||Zn}`,className:Ri,style:Object.assign(Object.assign(Object.assign({},re),nn),wn),span:ze*2-1,component:Oe[1],itemPrefixCls:hi,bordered:le,content:Un})]})}var te=Vt=>{const It=vt.useContext(se),{prefixCls:ne,vertical:De,row:Qe,index:le,bordered:Oe}=Vt;return De?vt.createElement(vt.Fragment,null,vt.createElement("tr",{key:`label-${le}`,className:`${ne}-row`},$t(Qe,Vt,Object.assign({component:"th",type:"label",showLabel:!0},It))),vt.createElement("tr",{key:`content-${le}`,className:`${ne}-row`},$t(Qe,Vt,Object.assign({component:"td",type:"content",showContent:!0},It)))):vt.createElement("tr",{key:le,className:`${ne}-row`},$t(Qe,Vt,Object.assign({component:Oe?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},It)))},Pe=bt(17313),ae=bt(83116),We=bt(37613);const ye=Vt=>{const{componentCls:It,labelBg:ne}=Vt;return{[`&${It}-bordered`]:{[`> ${It}-view`]:{border:`${Vt.lineWidth}px ${Vt.lineType} ${Vt.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"},[`${It}-row`]:{borderBottom:`${Vt.lineWidth}px ${Vt.lineType} ${Vt.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${It}-item-label, > ${It}-item-content`]:{padding:`${Vt.padding}px ${Vt.paddingLG}px`,borderInlineEnd:`${Vt.lineWidth}px ${Vt.lineType} ${Vt.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${It}-item-label`]:{color:Vt.colorTextSecondary,backgroundColor:ne,"&::after":{display:"none"}}}},[`&${It}-middle`]:{[`${It}-row`]:{[`> ${It}-item-label, > ${It}-item-content`]:{padding:`${Vt.paddingSM}px ${Vt.paddingLG}px`}}},[`&${It}-small`]:{[`${It}-row`]:{[`> ${It}-item-label, > ${It}-item-content`]:{padding:`${Vt.paddingXS}px ${Vt.padding}px`}}}}}},Ne=Vt=>{const{componentCls:It,extraColor:ne,itemPaddingBottom:De,colonMarginRight:Qe,colonMarginLeft:le,titleMarginBottom:Oe}=Vt;return{[It]:Object.assign(Object.assign(Object.assign({},(0,Pe.Wf)(Vt)),ye(Vt)),{"&-rtl":{direction:"rtl"},[`${It}-header`]:{display:"flex",alignItems:"center",marginBottom:Oe},[`${It}-title`]:Object.assign(Object.assign({},Pe.vS),{flex:"auto",color:Vt.colorText,fontWeight:Vt.fontWeightStrong,fontSize:Vt.fontSizeLG,lineHeight:Vt.lineHeightLG}),[`${It}-extra`]:{marginInlineStart:"auto",color:ne,fontSize:Vt.fontSize},[`${It}-view`]:{width:"100%",borderRadius:Vt.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${It}-row`]:{"> th, > td":{paddingBottom:De},"&:last-child":{borderBottom:"none"}},[`${It}-item-label`]:{color:Vt.colorTextTertiary,fontWeight:"normal",fontSize:Vt.fontSize,lineHeight:Vt.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${le}px ${Qe}px`},[`&${It}-item-no-colon::after`]:{content:'""'}},[`${It}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${It}-item-content`]:{display:"table-cell",flex:1,color:Vt.colorText,fontSize:Vt.fontSize,lineHeight:Vt.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${It}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${It}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${It}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${It}-row`]:{"> th, > td":{paddingBottom:Vt.paddingSM}}},"&-small":{[`${It}-row`]:{"> th, > td":{paddingBottom:Vt.paddingXS}}}})}};var Ie=(0,ae.Z)("Descriptions",Vt=>{const It=(0,We.TS)(Vt,{});return[Ne(It)]},Vt=>({labelBg:Vt.colorFillAlter,titleMarginBottom:Vt.fontSizeSM*Vt.lineHeightSM,itemPaddingBottom:Vt.padding,colonMarginRight:Vt.marginXS,colonMarginLeft:Vt.marginXXS/2,extraColor:Vt.colorText})),rn=function(Vt,It){var ne={};for(var De in Vt)Object.prototype.hasOwnProperty.call(Vt,De)&&It.indexOf(De)<0&&(ne[De]=Vt[De]);if(Vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,De=Object.getOwnPropertySymbols(Vt);Qe{const{prefixCls:It,title:ne,extra:De,column:Qe,colon:le=!0,bordered:Oe,layout:on,children:Cn,className:ln,rootClassName:xn,style:re,size:kn,labelStyle:Zn,contentStyle:On,items:Un}=Vt,hi=rn(Vt,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","items"]),{getPrefixCls:Ri,direction:nn,descriptions:un}=vt.useContext(me.E_),wn=Ri("descriptions",It),ze=(0,qt.Z)(),fn=vt.useMemo(()=>{var At;return typeof Qe=="number"?Qe:(At=(0,Be.m9)(ze,Object.assign(Object.assign({},Se),Qe)))!==null&&At!==void 0?At:3},[ze,Qe]),sn=et(ze,Un,Cn),Bt=(0,Ee.Z)(kn),Mt=pt(fn,sn),[xt,Ft]=Ie(wn),Ut=vt.useMemo(()=>({labelStyle:Zn,contentStyle:On}),[Zn,On]);return xt(vt.createElement(se.Provider,{value:Ut},vt.createElement("div",Object.assign({className:ue()(wn,un==null?void 0:un.className,{[`${wn}-${Bt}`]:Bt&&Bt!=="default",[`${wn}-bordered`]:!!Oe,[`${wn}-rtl`]:nn==="rtl"},ln,xn,Ft),style:Object.assign(Object.assign({},un==null?void 0:un.style),re)},hi),(ne||De)&&vt.createElement("div",{className:`${wn}-header`},ne&&vt.createElement("div",{className:`${wn}-title`},ne),De&&vt.createElement("div",{className:`${wn}-extra`},De)),vt.createElement("div",{className:`${wn}-view`},vt.createElement("table",null,vt.createElement("tbody",null,Mt.map((At,ge)=>vt.createElement(te,{key:ge,index:ge,colon:le,prefixCls:wn,vertical:on==="vertical",bordered:Oe,row:At}))))))))};Dn.Item=Lt;var vn=Dn},14478:function(Ze,En,bt){"use strict";bt.d(En,{Z:function(){return te}});var vt=bt(96512),oe=bt(92310),ue=bt.n(oe),Be=bt(10228),me=bt(18929),Ee=bt(2738),qt=bt(59301),Ce=bt(92343),Se=bt(36355),ve=bt(60324),se=bt(92806),Ae=bt(77578),_e=bt(3113),Dt=bt(67797),et=bt(9763),nt=bt(31724),ct=bt(39722),lt=bt(83116);const pt=Pe=>{const{componentCls:ae,iconCls:We,antCls:ye,zIndexPopup:Ne,colorText:Ie,colorWarning:rn,marginXXS:Dn,marginXS:vn,fontSize:Vt,fontWeightStrong:It,colorTextHeading:ne}=Pe;return{[ae]:{zIndex:Ne,[`&${ye}-popover`]:{fontSize:Vt},[`${ae}-message`]:{marginBottom:vn,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${ae}-message-icon ${We}`]:{color:rn,fontSize:Vt,lineHeight:1,marginInlineEnd:vn},[`${ae}-title`]:{fontWeight:It,color:ne,"&:only-child":{fontWeight:"normal"}},[`${ae}-description`]:{marginTop:Dn,color:Ie}},[`${ae}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:vn}}}}};var yt=(0,lt.Z)("Popconfirm",Pe=>pt(Pe),Pe=>{const{zIndexPopupBase:ae}=Pe;return{zIndexPopup:ae+60}},{resetStyle:!1}),Lt=function(Pe,ae){var We={};for(var ye in Pe)Object.prototype.hasOwnProperty.call(Pe,ye)&&ae.indexOf(ye)<0&&(We[ye]=Pe[ye]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,ye=Object.getOwnPropertySymbols(Pe);Ne{const{prefixCls:ae,okButtonProps:We,cancelButtonProps:ye,title:Ne,description:Ie,cancelText:rn,okText:Dn,okType:vn="primary",icon:Vt=qt.createElement(vt.Z,null),showCancel:It=!0,close:ne,onConfirm:De,onCancel:Qe,onPopupClick:le}=Pe,{getPrefixCls:Oe}=qt.useContext(Se.E_),[on]=(0,et.Z)("Popconfirm",nt.Z.Popconfirm),Cn=(0,Ae.Z)(Ne),ln=(0,Ae.Z)(Ie);return qt.createElement("div",{className:`${ae}-inner-content`,onClick:le},qt.createElement("div",{className:`${ae}-message`},Vt&&qt.createElement("span",{className:`${ae}-message-icon`},Vt),qt.createElement("div",{className:`${ae}-message-text`},Cn&&qt.createElement("div",{className:ue()(`${ae}-title`)},Cn),ln&&qt.createElement("div",{className:`${ae}-description`},ln))),qt.createElement("div",{className:`${ae}-buttons`},It&&qt.createElement(_e.ZP,Object.assign({onClick:Qe,size:"small"},ye),rn!=null?rn:on==null?void 0:on.cancelText),qt.createElement(se.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,Dt.n)(vn)),We),actionFn:De,close:ne,prefixCls:Oe("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},Dn!=null?Dn:on==null?void 0:on.okText)))};var Yt=Pe=>{const{prefixCls:ae,placement:We,className:ye,style:Ne}=Pe,Ie=Lt(Pe,["prefixCls","placement","className","style"]),{getPrefixCls:rn}=qt.useContext(Se.E_),Dn=rn("popconfirm",ae),[vn]=yt(Dn);return vn(qt.createElement(ct.ZP,{placement:We,className:ue()(Dn,ye),style:Ne,content:qt.createElement(kt,Object.assign({prefixCls:Dn},Ie))}))},$t=function(Pe,ae){var We={};for(var ye in Pe)Object.prototype.hasOwnProperty.call(Pe,ye)&&ae.indexOf(ye)<0&&(We[ye]=Pe[ye]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,ye=Object.getOwnPropertySymbols(Pe);Ne{const{prefixCls:We,placement:ye="top",trigger:Ne="click",okType:Ie="primary",icon:rn=qt.createElement(vt.Z,null),children:Dn,overlayClassName:vn,onOpenChange:Vt,onVisibleChange:It}=Pe,ne=$t(Pe,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:De}=qt.useContext(Se.E_),[Qe,le]=(0,me.Z)(!1,{value:Pe.open,defaultValue:Pe.defaultOpen}),Oe=(Un,hi)=>{le(Un,!0),It==null||It(Un),Vt==null||Vt(Un,hi)},on=Un=>{Oe(!1,Un)},Cn=Un=>{var hi;return(hi=Pe.onConfirm)===null||hi===void 0?void 0:hi.call(void 0,Un)},ln=Un=>{var hi;Oe(!1,Un),(hi=Pe.onCancel)===null||hi===void 0||hi.call(void 0,Un)},xn=Un=>{Un.keyCode===Be.Z.ESC&&Qe&&Oe(!1,Un)},re=Un=>{const{disabled:hi=!1}=Pe;hi||Oe(Un)},kn=De("popconfirm",We),Zn=ue()(kn,vn),[On]=yt(kn);return On(qt.createElement(ve.Z,Object.assign({},(0,Ee.Z)(ne,["title"]),{trigger:Ne,placement:ye,onOpenChange:re,open:Qe,ref:ae,overlayClassName:Zn,content:qt.createElement(kt,Object.assign({okType:Ie,icon:rn},Pe,{prefixCls:kn,close:on,onConfirm:Cn,onCancel:ln})),"data-popover-inject":!0}),(0,Ce.Tm)(Dn,{onKeyDown:Un=>{var hi,Ri;qt.isValidElement(Dn)&&((Ri=Dn==null?void 0:(hi=Dn.props).onKeyDown)===null||Ri===void 0||Ri.call(hi,Un)),xn(Un)}})))});ee._InternalPanelDoNotUseOrYouWillBeFired=Yt;var te=ee},39722:function(Ze,En,bt){"use strict";bt.d(En,{t5:function(){return ve}});var vt=bt(92310),oe=bt.n(vt),ue=bt(55477),Be=bt(59301),me=bt(36355),Ee=bt(77578),qt=bt(17356),Ce=function(Ae,_e){var Dt={};for(var et in Ae)Object.prototype.hasOwnProperty.call(Ae,et)&&_e.indexOf(et)<0&&(Dt[et]=Ae[et]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,et=Object.getOwnPropertySymbols(Ae);nt{if(!(!_e&&!Dt))return Be.createElement(Be.Fragment,null,_e&&Be.createElement("div",{className:`${Ae}-title`},(0,Ee.Z)(_e)),Be.createElement("div",{className:`${Ae}-inner-content`},(0,Ee.Z)(Dt)))},ve=Ae=>{const{hashId:_e,prefixCls:Dt,className:et,style:nt,placement:ct="top",title:lt,content:pt,children:yt}=Ae;return Be.createElement("div",{className:oe()(_e,Dt,`${Dt}-pure`,`${Dt}-placement-${ct}`,et),style:nt},Be.createElement("div",{className:`${Dt}-arrow`}),Be.createElement(ue.G,Object.assign({},Ae,{className:_e,prefixCls:Dt}),yt||Se(Dt,lt,pt)))},se=Ae=>{const{prefixCls:_e}=Ae,Dt=Ce(Ae,["prefixCls"]),{getPrefixCls:et}=Be.useContext(me.E_),nt=et("popover",_e),[ct,lt]=(0,qt.Z)(nt);return ct(Be.createElement(ve,Object.assign({},Dt,{prefixCls:nt,hashId:lt})))};En.ZP=se},60324:function(Ze,En,bt){"use strict";var vt=bt(92310),oe=bt.n(vt),ue=bt(59301),Be=bt(77578),me=bt(62892),Ee=bt(36355),qt=bt(6848),Ce=bt(39722),Se=bt(17356),ve=function(_e,Dt){var et={};for(var nt in _e)Object.prototype.hasOwnProperty.call(_e,nt)&&Dt.indexOf(nt)<0&&(et[nt]=_e[nt]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,nt=Object.getOwnPropertySymbols(_e);ct{let{title:Dt,content:et,prefixCls:nt}=_e;return ue.createElement(ue.Fragment,null,Dt&&ue.createElement("div",{className:`${nt}-title`},(0,Be.Z)(Dt)),ue.createElement("div",{className:`${nt}-inner-content`},(0,Be.Z)(et)))},Ae=ue.forwardRef((_e,Dt)=>{const{prefixCls:et,title:nt,content:ct,overlayClassName:lt,placement:pt="top",trigger:yt="hover",mouseEnterDelay:Lt=.1,mouseLeaveDelay:kt=.1,overlayStyle:Ht={}}=_e,Yt=ve(_e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:$t}=ue.useContext(Ee.E_),ee=$t("popover",et),[te,Pe]=(0,Se.Z)(ee),ae=$t(),We=oe()(lt,Pe);return te(ue.createElement(qt.Z,Object.assign({placement:pt,trigger:yt,mouseEnterDelay:Lt,mouseLeaveDelay:kt,overlayStyle:Ht},Yt,{prefixCls:ee,overlayClassName:We,ref:Dt,overlay:nt||ct?ue.createElement(se,{prefixCls:ee,title:nt,content:ct}):null,transitionName:(0,me.m)(ae,"zoom-big",Yt.transitionName),"data-popover-inject":!0})))});Ae._InternalPanelDoNotUseOrYouWillBeFired=Ce.ZP,En.Z=Ae},17356:function(Ze,En,bt){"use strict";var vt=bt(17313),oe=bt(29878),ue=bt(19447),Be=bt(33166),me=bt(83116),Ee=bt(37613);const qt=ve=>{const{componentCls:se,popoverColor:Ae,minWidth:_e,fontWeightStrong:Dt,popoverPadding:et,boxShadowSecondary:nt,colorTextHeading:ct,borderRadiusLG:lt,zIndexPopup:pt,marginXS:yt,colorBgElevated:Lt,popoverBg:kt}=ve;return[{[se]:Object.assign(Object.assign({},(0,vt.Wf)(ve)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:pt,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":Lt,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${se}-content`]:{position:"relative"},[`${se}-inner`]:{backgroundColor:kt,backgroundClip:"padding-box",borderRadius:lt,boxShadow:nt,padding:et},[`${se}-title`]:{minWidth:_e,marginBottom:yt,color:ct,fontWeight:Dt},[`${se}-inner-content`]:{color:Ae}})},(0,ue.ZP)(ve,{colorBg:"var(--antd-arrow-background-color)"}),{[`${se}-pure`]:{position:"relative",maxWidth:"none",margin:ve.sizePopupArrow,display:"inline-block",[`${se}-content`]:{display:"inline-block"}}}]},Ce=ve=>{const{componentCls:se}=ve;return{[se]:Be.i.map(Ae=>{const _e=ve[`${Ae}6`];return{[`&${se}-${Ae}`]:{"--antd-arrow-background-color":_e,[`${se}-inner`]:{backgroundColor:_e},[`${se}-arrow`]:{background:"transparent"}}}})}},Se=ve=>{const{componentCls:se,lineWidth:Ae,lineType:_e,colorSplit:Dt,paddingSM:et,controlHeight:nt,fontSize:ct,lineHeight:lt,padding:pt}=ve,yt=nt-Math.round(ct*lt),Lt=yt/2,kt=yt/2-Ae,Ht=pt;return{[se]:{[`${se}-inner`]:{padding:0},[`${se}-title`]:{margin:0,padding:`${Lt}px ${Ht}px ${kt}px`,borderBottom:`${Ae}px ${_e} ${Dt}`},[`${se}-inner-content`]:{padding:`${et}px ${Ht}px`}}}};En.Z=(0,me.Z)("Popover",ve=>{const{colorBgElevated:se,colorText:Ae,wireframe:_e}=ve,Dt=(0,Ee.TS)(ve,{popoverPadding:12,popoverBg:se,popoverColor:Ae});return[qt(Dt),Ce(Dt),_e&&Se(Dt),(0,oe._y)(Dt,"zoom-big")]},ve=>({width:177,minWidth:177,zIndexPopup:ve.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},13570:function(Ze,En,bt){"use strict";bt.d(En,{Z:function(){return It}});var vt=bt(72308),oe=bt(59301),ue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},Be=ue,me=bt(7657),Ee=function(De,Qe){return oe.createElement(me.Z,(0,vt.Z)({},De,{ref:Qe,icon:Be}))},qt=oe.forwardRef(Ee),Ce=qt,Se=bt(92310),ve=bt.n(Se),se=bt(49618),Ae=bt(52487),_e=bt(74416),Dt=bt(18929),et=bt(10228),nt=bt(26112);function ct(ne,De){var Qe=ne.disabled,le=ne.prefixCls,Oe=ne.character,on=ne.characterRender,Cn=ne.index,ln=ne.count,xn=ne.value,re=ne.allowHalf,kn=ne.focused,Zn=ne.onHover,On=ne.onClick,Un=function(sn){Zn(sn,Cn)},hi=function(sn){On(sn,Cn)},Ri=function(sn){sn.keyCode===et.Z.ENTER&&On(sn,Cn)},nn=Cn+1,un=new Set([le]);xn===0&&Cn===0&&kn?un.add("".concat(le,"-focused")):re&&xn+.5>=nn&&xnCn?"true":"false","aria-posinset":Cn+1,"aria-setsize":ln,tabIndex:Qe?-1:0},oe.createElement("div",{className:"".concat(le,"-first")},wn),oe.createElement("div",{className:"".concat(le,"-second")},wn)));return on&&(ze=on(ze,ne)),ze}var lt=oe.forwardRef(ct);function pt(){var ne=oe.useRef({});function De(le){return ne.current[le]}function Qe(le){return function(Oe){ne.current[le]=Oe}}return[De,Qe]}function yt(ne){var De=ne.pageXOffset,Qe="scrollLeft";if(typeof De!="number"){var le=ne.document;De=le.documentElement[Qe],typeof De!="number"&&(De=le.body[Qe])}return De}function Lt(ne){var De,Qe,le=ne.ownerDocument,Oe=le.body,on=le&&le.documentElement,Cn=ne.getBoundingClientRect();return De=Cn.left,Qe=Cn.top,De-=on.clientLeft||Oe.clientLeft||0,Qe-=on.clientTop||Oe.clientTop||0,{left:De,top:Qe}}function kt(ne){var De=Lt(ne),Qe=ne.ownerDocument,le=Qe.defaultView||Qe.parentWindow;return De.left+=yt(le),De.left}var Ht=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Yt(ne,De){var Qe,le=ne.prefixCls,Oe=le===void 0?"rc-rate":le,on=ne.className,Cn=ne.defaultValue,ln=ne.value,xn=ne.count,re=xn===void 0?5:xn,kn=ne.allowHalf,Zn=kn===void 0?!1:kn,On=ne.allowClear,Un=On===void 0?!0:On,hi=ne.character,Ri=hi===void 0?"\u2605":hi,nn=ne.characterRender,un=ne.disabled,wn=ne.direction,ze=wn===void 0?"ltr":wn,fn=ne.tabIndex,sn=fn===void 0?0:fn,Bt=ne.autoFocus,Mt=ne.onHoverChange,xt=ne.onChange,Ft=ne.onFocus,Ut=ne.onBlur,At=ne.onKeyDown,ge=ne.onMouseLeave,dn=(0,_e.Z)(ne,Ht),gn=pt(),pn=(0,Ae.Z)(gn,2),Rn=pn[0],Mi=pn[1],ji=oe.useRef(null),wi=function(){if(!un){var be;(be=ji.current)===null||be===void 0||be.focus()}};oe.useImperativeHandle(De,function(){return{focus:wi,blur:function(){if(!un){var be;(be=ji.current)===null||be===void 0||be.blur()}}}});var Ji=(0,Dt.Z)(Cn||0,{value:ln}),wo=(0,Ae.Z)(Ji,2),Io=wo[0],Wr=wo[1],nr=(0,Dt.Z)(null),Cr=(0,Ae.Z)(nr,2),bo=Cr[0],Fo=Cr[1],fo=function(be,An){var li=ze==="rtl",Jn=be+1;if(Zn){var Ki=Rn(be),ie=kt(Ki),yn=Ki.clientWidth;(li&&An-ie>yn/2||!li&&An-ie0&&!li||An===et.Z.RIGHT&&Jn>0&&li?(Zn?Jn-=.5:Jn-=1,hr(Jn),be.preventDefault()):An===et.Z.LEFT&&Jn{const{componentCls:De}=ne;return{[`${De}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:ne.marginXS},"> div":{transition:`all ${ne.motionDurationMid}, outline 0s`,"&:hover":{transform:ne.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${ne.lineWidth}px dashed ${ne.starColor}`,transform:ne.starHoverScale}},"&-first, &-second":{color:ne.starBg,transition:`all ${ne.motionDurationMid}`,userSelect:"none",[ne.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${De}-star-first, &-half ${De}-star-second`]:{opacity:1},[`&-half ${De}-star-first, &-full ${De}-star-second`]:{color:"inherit"}}}},Ie=ne=>({[`&-rtl${ne.componentCls}`]:{direction:"rtl"}}),rn=ne=>{const{componentCls:De}=ne;return{[De]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ae.Wf)(ne)),{display:"inline-block",margin:0,padding:0,color:ne.starColor,fontSize:ne.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${De} ${De}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Ne(ne)),{[`+ ${De}-text`]:{display:"inline-block",marginInlineStart:ne.marginXS,fontSize:ne.fontSize}}),Ie(ne))}};var Dn=(0,We.Z)("Rate",ne=>{const De=(0,ye.TS)(ne,{});return[rn(De)]},ne=>({starColor:ne.yellow6,starSize:ne.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:ne.colorFillContent})),vn=function(ne,De){var Qe={};for(var le in ne)Object.prototype.hasOwnProperty.call(ne,le)&&De.indexOf(le)<0&&(Qe[le]=ne[le]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,le=Object.getOwnPropertySymbols(ne);Oe{const{prefixCls:Qe,className:le,rootClassName:Oe,style:on,tooltips:Cn,character:ln=oe.createElement(Ce,null)}=ne,xn=vn(ne,["prefixCls","className","rootClassName","style","tooltips","character"]),re=(un,wn)=>{let{index:ze}=wn;return Cn?oe.createElement(Pe.Z,{title:Cn[ze]},un):un},{getPrefixCls:kn,direction:Zn,rate:On}=oe.useContext(te.E_),Un=kn("rate",Qe),[hi,Ri]=Dn(Un),nn=Object.assign(Object.assign({},On==null?void 0:On.style),on);return hi(oe.createElement(ee,Object.assign({ref:De,character:ln,characterRender:re},xn,{className:ve()(le,Oe,Ri,On==null?void 0:On.className),style:nn,prefixCls:Un,direction:Zn})))})},61621:function(Ze,En,bt){"use strict";bt.d(En,{Z:function(){return Ri}});var vt=bt(92310),oe=bt.n(vt),ue=bt(59301),Be=bt(36355),me=bt(2738),qt=nn=>{const{prefixCls:un,className:wn,style:ze,size:fn,shape:sn}=nn,Bt=oe()({[`${un}-lg`]:fn==="large",[`${un}-sm`]:fn==="small"}),Mt=oe()({[`${un}-circle`]:sn==="circle",[`${un}-square`]:sn==="square",[`${un}-round`]:sn==="round"}),xt=ue.useMemo(()=>typeof fn=="number"?{width:fn,height:fn,lineHeight:`${fn}px`}:{},[fn]);return ue.createElement("span",{className:oe()(un,Bt,Mt,wn),style:Object.assign(Object.assign({},xt),ze)})},Ce=bt(93083),Se=bt(83116),ve=bt(37613);const se=new Ce.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Ae=nn=>({height:nn,lineHeight:`${nn}px`}),_e=nn=>Object.assign({width:nn},Ae(nn)),Dt=nn=>({background:nn.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:se,animationDuration:nn.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),et=nn=>Object.assign({width:nn*5,minWidth:nn*5},Ae(nn)),nt=nn=>{const{skeletonAvatarCls:un,gradientFromColor:wn,controlHeight:ze,controlHeightLG:fn,controlHeightSM:sn}=nn;return{[`${un}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:wn},_e(ze)),[`${un}${un}-circle`]:{borderRadius:"50%"},[`${un}${un}-lg`]:Object.assign({},_e(fn)),[`${un}${un}-sm`]:Object.assign({},_e(sn))}},ct=nn=>{const{controlHeight:un,borderRadiusSM:wn,skeletonInputCls:ze,controlHeightLG:fn,controlHeightSM:sn,gradientFromColor:Bt}=nn;return{[`${ze}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Bt,borderRadius:wn},et(un)),[`${ze}-lg`]:Object.assign({},et(fn)),[`${ze}-sm`]:Object.assign({},et(sn))}},lt=nn=>Object.assign({width:nn},Ae(nn)),pt=nn=>{const{skeletonImageCls:un,imageSizeBase:wn,gradientFromColor:ze,borderRadiusSM:fn}=nn;return{[`${un}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:ze,borderRadius:fn},lt(wn*2)),{[`${un}-path`]:{fill:"#bfbfbf"},[`${un}-svg`]:Object.assign(Object.assign({},lt(wn)),{maxWidth:wn*4,maxHeight:wn*4}),[`${un}-svg${un}-svg-circle`]:{borderRadius:"50%"}}),[`${un}${un}-circle`]:{borderRadius:"50%"}}},yt=(nn,un,wn)=>{const{skeletonButtonCls:ze}=nn;return{[`${wn}${ze}-circle`]:{width:un,minWidth:un,borderRadius:"50%"},[`${wn}${ze}-round`]:{borderRadius:un}}},Lt=nn=>Object.assign({width:nn*2,minWidth:nn*2},Ae(nn)),kt=nn=>{const{borderRadiusSM:un,skeletonButtonCls:wn,controlHeight:ze,controlHeightLG:fn,controlHeightSM:sn,gradientFromColor:Bt}=nn;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${wn}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Bt,borderRadius:un,width:ze*2,minWidth:ze*2},Lt(ze))},yt(nn,ze,wn)),{[`${wn}-lg`]:Object.assign({},Lt(fn))}),yt(nn,fn,`${wn}-lg`)),{[`${wn}-sm`]:Object.assign({},Lt(sn))}),yt(nn,sn,`${wn}-sm`))},Ht=nn=>{const{componentCls:un,skeletonAvatarCls:wn,skeletonTitleCls:ze,skeletonParagraphCls:fn,skeletonButtonCls:sn,skeletonInputCls:Bt,skeletonImageCls:Mt,controlHeight:xt,controlHeightLG:Ft,controlHeightSM:Ut,gradientFromColor:At,padding:ge,marginSM:dn,borderRadius:gn,titleHeight:pn,blockRadius:Rn,paragraphLiHeight:Mi,controlHeightXS:ji,paragraphMarginTop:wi}=nn;return{[`${un}`]:{display:"table",width:"100%",[`${un}-header`]:{display:"table-cell",paddingInlineEnd:ge,verticalAlign:"top",[`${wn}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:At},_e(xt)),[`${wn}-circle`]:{borderRadius:"50%"},[`${wn}-lg`]:Object.assign({},_e(Ft)),[`${wn}-sm`]:Object.assign({},_e(Ut))},[`${un}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${ze}`]:{width:"100%",height:pn,background:At,borderRadius:Rn,[`+ ${fn}`]:{marginBlockStart:Ut}},[`${fn}`]:{padding:0,"> li":{width:"100%",height:Mi,listStyle:"none",background:At,borderRadius:Rn,"+ li":{marginBlockStart:ji}}},[`${fn}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${un}-content`]:{[`${ze}, ${fn} > li`]:{borderRadius:gn}}},[`${un}-with-avatar ${un}-content`]:{[`${ze}`]:{marginBlockStart:dn,[`+ ${fn}`]:{marginBlockStart:wi}}},[`${un}${un}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},kt(nn)),nt(nn)),ct(nn)),pt(nn)),[`${un}${un}-block`]:{width:"100%",[`${sn}`]:{width:"100%"},[`${Bt}`]:{width:"100%"}},[`${un}${un}-active`]:{[` ${ze}, ${fn} > li, ${wn}, @@ -1098,21 +1098,21 @@ ${le} `]:Object.assign({},Dt(nn))}}};var Yt=(0,Se.Z)("Skeleton",nn=>{const{componentCls:un}=nn,wn=(0,ve.TS)(nn,{skeletonAvatarCls:`${un}-avatar`,skeletonTitleCls:`${un}-title`,skeletonParagraphCls:`${un}-paragraph`,skeletonButtonCls:`${un}-button`,skeletonInputCls:`${un}-input`,skeletonImageCls:`${un}-image`,imageSizeBase:nn.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${nn.gradientFromColor} 25%, ${nn.gradientToColor} 37%, ${nn.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Ht(wn)]},nn=>{const{colorFillContent:un,colorFill:wn}=nn,ze=un,fn=wn;return{color:ze,colorGradientEnd:fn,gradientFromColor:ze,gradientToColor:fn,titleHeight:nn.controlHeight/2,blockRadius:nn.borderRadiusSM,paragraphMarginTop:nn.marginLG+nn.marginXXS,paragraphLiHeight:nn.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),ee=nn=>{const{prefixCls:un,className:wn,rootClassName:ze,active:fn,shape:sn="circle",size:Bt="default"}=nn,{getPrefixCls:Mt}=ue.useContext(Be.E_),xt=Mt("skeleton",un),[Ft,Ut]=Yt(xt),At=(0,me.Z)(nn,["prefixCls","className"]),ge=oe()(xt,`${xt}-element`,{[`${xt}-active`]:fn},wn,ze,Ut);return Ft(ue.createElement("div",{className:ge},ue.createElement(qt,Object.assign({prefixCls:`${xt}-avatar`,shape:sn,size:Bt},At))))},Pe=nn=>{const{prefixCls:un,className:wn,rootClassName:ze,active:fn,block:sn=!1,size:Bt="default"}=nn,{getPrefixCls:Mt}=ue.useContext(Be.E_),xt=Mt("skeleton",un),[Ft,Ut]=Yt(xt),At=(0,me.Z)(nn,["prefixCls"]),ge=oe()(xt,`${xt}-element`,{[`${xt}-active`]:fn,[`${xt}-block`]:sn},wn,ze,Ut);return Ft(ue.createElement("div",{className:ge},ue.createElement(qt,Object.assign({prefixCls:`${xt}-button`,size:Bt},At))))};const ae="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var ye=nn=>{const{prefixCls:un,className:wn,rootClassName:ze,style:fn,active:sn}=nn,{getPrefixCls:Bt}=ue.useContext(Be.E_),Mt=Bt("skeleton",un),[xt,Ft]=Yt(Mt),Ut=oe()(Mt,`${Mt}-element`,{[`${Mt}-active`]:sn},wn,ze,Ft);return xt(ue.createElement("div",{className:Ut},ue.createElement("div",{className:oe()(`${Mt}-image`,wn),style:fn},ue.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Mt}-image-svg`},ue.createElement("path",{d:ae,className:`${Mt}-image-path`})))))},Ie=nn=>{const{prefixCls:un,className:wn,rootClassName:ze,active:fn,block:sn,size:Bt="default"}=nn,{getPrefixCls:Mt}=ue.useContext(Be.E_),xt=Mt("skeleton",un),[Ft,Ut]=Yt(xt),At=(0,me.Z)(nn,["prefixCls"]),ge=oe()(xt,`${xt}-element`,{[`${xt}-active`]:fn,[`${xt}-block`]:sn},wn,ze,Ut);return Ft(ue.createElement("div",{className:ge},ue.createElement(qt,Object.assign({prefixCls:`${xt}-input`,size:Bt},At))))},rn=bt(72308),Dn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},vn=Dn,Vt=bt(7657),It=function(un,wn){return ue.createElement(Vt.Z,(0,rn.Z)({},un,{ref:wn,icon:vn}))},ne=ue.forwardRef(It),De=ne,le=nn=>{const{prefixCls:un,className:wn,rootClassName:ze,style:fn,active:sn,children:Bt}=nn,{getPrefixCls:Mt}=ue.useContext(Be.E_),xt=Mt("skeleton",un),[Ft,Ut]=Yt(xt),At=oe()(xt,`${xt}-element`,{[`${xt}-active`]:sn},Ut,wn,ze),ge=Bt!=null?Bt:ue.createElement(De,null);return Ft(ue.createElement("div",{className:At},ue.createElement("div",{className:oe()(`${xt}-image`,wn),style:fn},ge)))},Oe=bt(80702),Cn=nn=>{const un=Mt=>{const{width:xt,rows:Ft=2}=nn;if(Array.isArray(xt))return xt[Mt];if(Ft-1===Mt)return xt},{prefixCls:wn,className:ze,style:fn,rows:sn}=nn,Bt=(0,Oe.Z)(Array(sn)).map((Mt,xt)=>ue.createElement("li",{key:xt,style:{width:un(xt)}}));return ue.createElement("ul",{className:oe()(wn,ze),style:fn},Bt)},xn=nn=>{let{prefixCls:un,className:wn,width:ze,style:fn}=nn;return ue.createElement("h3",{className:oe()(un,wn),style:Object.assign({width:ze},fn)})};function re(nn){return nn&&typeof nn=="object"?nn:{}}function kn(nn,un){return nn&&!un?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Zn(nn,un){return!nn&&un?{width:"38%"}:nn&&un?{width:"50%"}:{}}function On(nn,un){const wn={};return(!nn||!un)&&(wn.width="61%"),!nn&&un?wn.rows=3:wn.rows=2,wn}const Un=nn=>{const{prefixCls:un,loading:wn,className:ze,rootClassName:fn,style:sn,children:Bt,avatar:Mt=!1,title:xt=!0,paragraph:Ft=!0,active:Ut,round:At}=nn,{getPrefixCls:ge,direction:dn,skeleton:gn}=ue.useContext(Be.E_),pn=ge("skeleton",un),[Rn,Mi]=Yt(pn);if(wn||!("loading"in nn)){const ji=!!Mt,wi=!!xt,Ji=!!Ft;let wo;if(ji){const nr=Object.assign(Object.assign({prefixCls:`${pn}-avatar`},kn(wi,Ji)),re(Mt));wo=ue.createElement("div",{className:`${pn}-header`},ue.createElement(qt,Object.assign({},nr)))}let Io;if(wi||Ji){let nr;if(wi){const bo=Object.assign(Object.assign({prefixCls:`${pn}-title`},Zn(ji,Ji)),re(xt));nr=ue.createElement(xn,Object.assign({},bo))}let Cr;if(Ji){const bo=Object.assign(Object.assign({prefixCls:`${pn}-paragraph`},On(ji,wi)),re(Ft));Cr=ue.createElement(Cn,Object.assign({},bo))}Io=ue.createElement("div",{className:`${pn}-content`},nr,Cr)}const Wr=oe()(pn,{[`${pn}-with-avatar`]:ji,[`${pn}-active`]:Ut,[`${pn}-rtl`]:dn==="rtl",[`${pn}-round`]:At},gn==null?void 0:gn.className,ze,fn,Mi);return Rn(ue.createElement("div",{className:Wr,style:Object.assign(Object.assign({},gn==null?void 0:gn.style),sn)},wo,Io))}return typeof Bt!="undefined"?Bt:null};Un.Button=Pe,Un.Avatar=ee,Un.Input=Ie,Un.Image=ye,Un.Node=le;var hi=Un,Ri=hi},31797:function(Ze,En,bt){"use strict";bt.d(En,{default:function(){return Yt}});var vt=bt(59301),oe=bt(56762),ue=bt(92343),Be=bt(92310),me=bt.n(Be),Ee=bt(36355),qt=bt(61621),Se=$t=>{const{value:ee,formatter:te,precision:Pe,decimalSeparator:ae,groupSeparator:We="",prefixCls:ye}=$t;let Ne;if(typeof te=="function")Ne=te(ee);else{const Ie=String(ee),rn=Ie.match(/^(-?)(\d*)(\.(\d+))?$/);if(!rn||Ie==="-")Ne=Ie;else{const Dn=rn[1];let vn=rn[2]||"0",Vt=rn[4]||"";vn=vn.replace(/\B(?=(\d{3})+(?!\d))/g,We),typeof Pe=="number"&&(Vt=Vt.padEnd(Pe,"0").slice(0,Pe>0?Pe:0)),Vt&&(Vt=`${ae}${Vt}`),Ne=[vt.createElement("span",{key:"int",className:`${ye}-content-value-int`},Dn,vn),Vt&&vt.createElement("span",{key:"decimal",className:`${ye}-content-value-decimal`},Vt)]}}return vt.createElement("span",{className:`${ye}-content-value`},Ne)},ve=bt(17313),se=bt(83116),Ae=bt(37613);const _e=$t=>{const{componentCls:ee,marginXXS:te,padding:Pe,colorTextDescription:ae,titleFontSize:We,colorTextHeading:ye,contentFontSize:Ne,fontFamily:Ie}=$t;return{[`${ee}`]:Object.assign(Object.assign({},(0,ve.Wf)($t)),{[`${ee}-title`]:{marginBottom:te,color:ae,fontSize:We},[`${ee}-skeleton`]:{paddingTop:Pe},[`${ee}-content`]:{color:ye,fontSize:Ne,fontFamily:Ie,[`${ee}-content-value`]:{display:"inline-block",direction:"ltr"},[`${ee}-content-prefix, ${ee}-content-suffix`]:{display:"inline-block"},[`${ee}-content-prefix`]:{marginInlineEnd:te},[`${ee}-content-suffix`]:{marginInlineStart:te}}})}};var Dt=(0,se.Z)("Statistic",$t=>{const ee=(0,Ae.TS)($t,{});return[_e(ee)]},$t=>{const{fontSizeHeading3:ee,fontSize:te}=$t;return{titleFontSize:te,contentFontSize:ee}}),nt=$t=>{const{prefixCls:ee,className:te,rootClassName:Pe,style:ae,valueStyle:We,value:ye=0,title:Ne,valueRender:Ie,prefix:rn,suffix:Dn,loading:vn=!1,onMouseEnter:Vt,onMouseLeave:It,decimalSeparator:ne=".",groupSeparator:De=","}=$t,{getPrefixCls:Qe,direction:le,statistic:Oe}=vt.useContext(Ee.E_),on=Qe("statistic",ee),[Cn,ln]=Dt(on),xn=vt.createElement(Se,Object.assign({decimalSeparator:ne,groupSeparator:De,prefixCls:on},$t,{value:ye})),re=me()(on,{[`${on}-rtl`]:le==="rtl"},Oe==null?void 0:Oe.className,te,Pe,ln);return Cn(vt.createElement("div",{className:re,style:Object.assign(Object.assign({},Oe==null?void 0:Oe.style),ae),onMouseEnter:Vt,onMouseLeave:It},Ne&&vt.createElement("div",{className:`${on}-title`},Ne),vt.createElement(qt.Z,{paragraph:!1,loading:vn,className:`${on}-skeleton`},vt.createElement("div",{style:We,className:`${on}-content`},rn&&vt.createElement("span",{className:`${on}-content-prefix`},rn),Ie?Ie(xn):xn,Dn&&vt.createElement("span",{className:`${on}-content-suffix`},Dn)))))};const ct=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function lt($t,ee){let te=$t;const Pe=/\[[^\]]*]/g,ae=(ee.match(Pe)||[]).map(Ie=>Ie.slice(1,-1)),We=ee.replace(Pe,"[]"),ye=ct.reduce((Ie,rn)=>{let[Dn,vn]=rn;if(Ie.includes(Dn)){const Vt=Math.floor(te/vn);return te-=Vt*vn,Ie.replace(new RegExp(`${Dn}+`,"g"),It=>{const ne=It.length;return Vt.toString().padStart(ne,"0")})}return Ie},We);let Ne=0;return ye.replace(Pe,()=>{const Ie=ae[Ne];return Ne+=1,Ie})}function pt($t,ee){const{format:te=""}=ee,Pe=new Date($t).getTime(),ae=Date.now(),We=Math.max(Pe-ae,0);return lt(We,te)}const yt=1e3/30;function Lt($t){return new Date($t).getTime()}const kt=$t=>{const{value:ee,format:te="HH:mm:ss",onChange:Pe,onFinish:ae}=$t,We=(0,oe.Z)(),ye=vt.useRef(null),Ne=()=>{ae==null||ae(),ye.current&&(clearInterval(ye.current),ye.current=null)},Ie=()=>{const vn=Lt(ee);vn>=Date.now()&&(ye.current=setInterval(()=>{We(),Pe==null||Pe(vn-Date.now()),vn(Ie(),()=>{ye.current&&(clearInterval(ye.current),ye.current=null)}),[ee]);const rn=(vn,Vt)=>pt(vn,Object.assign(Object.assign({},Vt),{format:te})),Dn=vn=>(0,ue.Tm)(vn,{title:void 0});return vt.createElement(nt,Object.assign({},$t,{valueRender:Dn,formatter:rn}))};var Ht=vt.memo(kt);nt.Countdown=Ht;var Yt=nt},78673:function(Ze,En,bt){"use strict";bt.d(En,{Z:function(){return We}});var vt=bt(58617),oe=bt(92310),ue=bt.n(oe),Be=bt(72308),me=bt(49618),Ee=bt(52487),qt=bt(74416),Ce=bt(59301),Se=bt(18929),ve=bt(10228),se=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Ae=Ce.forwardRef(function(ye,Ne){var Ie,rn=ye.prefixCls,Dn=rn===void 0?"rc-switch":rn,vn=ye.className,Vt=ye.checked,It=ye.defaultChecked,ne=ye.disabled,De=ye.loadingIcon,Qe=ye.checkedChildren,le=ye.unCheckedChildren,Oe=ye.onClick,on=ye.onChange,Cn=ye.onKeyDown,ln=(0,qt.Z)(ye,se),xn=(0,Se.Z)(!1,{value:Vt,defaultValue:It}),re=(0,Ee.Z)(xn,2),kn=re[0],Zn=re[1];function On(nn,un){var wn=kn;return ne||(wn=nn,Zn(wn),on==null||on(wn,un)),wn}function Un(nn){nn.which===ve.Z.LEFT?On(!1,nn):nn.which===ve.Z.RIGHT&&On(!0,nn),Cn==null||Cn(nn)}function hi(nn){var un=On(!kn,nn);Oe==null||Oe(un,nn)}var Ri=ue()(Dn,vn,(Ie={},(0,me.Z)(Ie,"".concat(Dn,"-checked"),kn),(0,me.Z)(Ie,"".concat(Dn,"-disabled"),ne),Ie));return Ce.createElement("button",(0,Be.Z)({},ln,{type:"button",role:"switch","aria-checked":kn,disabled:ne,className:Ri,ref:Ne,onKeyDown:Un,onClick:hi}),De,Ce.createElement("span",{className:"".concat(Dn,"-inner")},Ce.createElement("span",{className:"".concat(Dn,"-inner-checked")},Qe),Ce.createElement("span",{className:"".concat(Dn,"-inner-unchecked")},le)))});Ae.displayName="Switch";var _e=Ae,Dt=bt(14088),et=bt(36355),nt=bt(1684),ct=bt(19716),lt=bt(64993),pt=bt(17313),yt=bt(83116),Lt=bt(37613);const kt=ye=>{const{componentCls:Ne,trackHeightSM:Ie,trackPadding:rn,trackMinWidthSM:Dn,innerMinMarginSM:vn,innerMaxMarginSM:Vt,handleSizeSM:It}=ye,ne=`${Ne}-inner`;return{[Ne]:{[`&${Ne}-small`]:{minWidth:Dn,height:Ie,lineHeight:`${Ie}px`,[`${Ne}-inner`]:{paddingInlineStart:Vt,paddingInlineEnd:vn,[`${ne}-checked`]:{marginInlineStart:`calc(-100% + ${It+rn*2}px - ${Vt*2}px)`,marginInlineEnd:`calc(100% - ${It+rn*2}px + ${Vt*2}px)`},[`${ne}-unchecked`]:{marginTop:-Ie,marginInlineStart:0,marginInlineEnd:0}},[`${Ne}-handle`]:{width:It,height:It},[`${Ne}-loading-icon`]:{top:(It-ye.switchLoadingIconSize)/2,fontSize:ye.switchLoadingIconSize},[`&${Ne}-checked`]:{[`${Ne}-inner`]:{paddingInlineStart:vn,paddingInlineEnd:Vt,[`${ne}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ne}-unchecked`]:{marginInlineStart:`calc(100% - ${It+rn*2}px + ${Vt*2}px)`,marginInlineEnd:`calc(-100% + ${It+rn*2}px - ${Vt*2}px)`}},[`${Ne}-handle`]:{insetInlineStart:`calc(100% - ${It+rn}px)`}},[`&:not(${Ne}-disabled):active`]:{[`&:not(${Ne}-checked) ${ne}`]:{[`${ne}-unchecked`]:{marginInlineStart:ye.marginXXS/2,marginInlineEnd:-ye.marginXXS/2}},[`&${Ne}-checked ${ne}`]:{[`${ne}-checked`]:{marginInlineStart:-ye.marginXXS/2,marginInlineEnd:ye.marginXXS/2}}}}}}},Ht=ye=>{const{componentCls:Ne,handleSize:Ie}=ye;return{[Ne]:{[`${Ne}-loading-icon${ye.iconCls}`]:{position:"relative",top:(Ie-ye.fontSize)/2,color:ye.switchLoadingIconColor,verticalAlign:"top"},[`&${Ne}-checked ${Ne}-loading-icon`]:{color:ye.switchColor}}}},Yt=ye=>{const{componentCls:Ne,motion:Ie,trackPadding:rn,handleBg:Dn,handleShadow:vn,handleSize:Vt}=ye,It=`${Ne}-handle`;return{[Ne]:{[It]:{position:"absolute",top:rn,insetInlineStart:rn,width:Vt,height:Vt,transition:`all ${ye.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Dn,borderRadius:Vt/2,boxShadow:vn,transition:`all ${ye.switchDuration} ease-in-out`,content:'""'}},[`&${Ne}-checked ${It}`]:{insetInlineStart:`calc(100% - ${Vt+rn}px)`},[`&:not(${Ne}-disabled):active`]:Ie?{[`${It}::before`]:{insetInlineEnd:ye.switchHandleActiveInset,insetInlineStart:0},[`&${Ne}-checked ${It}::before`]:{insetInlineEnd:0,insetInlineStart:ye.switchHandleActiveInset}}:{}}}},$t=ye=>{const{componentCls:Ne,trackHeight:Ie,trackPadding:rn,innerMinMargin:Dn,innerMaxMargin:vn,handleSize:Vt}=ye,It=`${Ne}-inner`;return{[Ne]:{[It]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:vn,paddingInlineEnd:Dn,transition:`padding-inline-start ${ye.switchDuration} ease-in-out, padding-inline-end ${ye.switchDuration} ease-in-out`,[`${It}-checked, ${It}-unchecked`]:{display:"block",color:ye.colorTextLightSolid,fontSize:ye.fontSizeSM,transition:`margin-inline-start ${ye.switchDuration} ease-in-out, margin-inline-end ${ye.switchDuration} ease-in-out`,pointerEvents:"none"},[`${It}-checked`]:{marginInlineStart:`calc(-100% + ${Vt+rn*2}px - ${vn*2}px)`,marginInlineEnd:`calc(100% - ${Vt+rn*2}px + ${vn*2}px)`},[`${It}-unchecked`]:{marginTop:-Ie,marginInlineStart:0,marginInlineEnd:0}},[`&${Ne}-checked ${It}`]:{paddingInlineStart:Dn,paddingInlineEnd:vn,[`${It}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${It}-unchecked`]:{marginInlineStart:`calc(100% - ${Vt+rn*2}px + ${vn*2}px)`,marginInlineEnd:`calc(-100% + ${Vt+rn*2}px - ${vn*2}px)`}},[`&:not(${Ne}-disabled):active`]:{[`&:not(${Ne}-checked) ${It}`]:{[`${It}-unchecked`]:{marginInlineStart:rn*2,marginInlineEnd:-rn*2}},[`&${Ne}-checked ${It}`]:{[`${It}-checked`]:{marginInlineStart:-rn*2,marginInlineEnd:rn*2}}}}}},ee=ye=>{const{componentCls:Ne,trackHeight:Ie,trackMinWidth:rn}=ye;return{[Ne]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,pt.Wf)(ye)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:rn,height:Ie,lineHeight:`${Ie}px`,verticalAlign:"middle",background:ye.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${ye.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Ne}-disabled)`]:{background:ye.colorTextTertiary}}),(0,pt.Qy)(ye)),{[`&${Ne}-checked`]:{background:ye.switchColor,[`&:hover:not(${Ne}-disabled)`]:{background:ye.colorPrimaryHover}},[`&${Ne}-loading, &${Ne}-disabled`]:{cursor:"not-allowed",opacity:ye.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Ne}-rtl`]:{direction:"rtl"}})}};var te=(0,yt.Z)("Switch",ye=>{const Ne=(0,Lt.TS)(ye,{switchDuration:ye.motionDurationMid,switchColor:ye.colorPrimary,switchDisabledOpacity:ye.opacityLoading,switchLoadingIconSize:ye.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${ye.opacityLoading})`,switchHandleActiveInset:"-30%"});return[ee(Ne),$t(Ne),Yt(Ne),Ht(Ne),kt(Ne)]},ye=>{const{fontSize:Ne,lineHeight:Ie,controlHeight:rn,colorWhite:Dn}=ye,vn=Ne*Ie,Vt=rn/2,It=2,ne=vn-It*2,De=Vt-It*2;return{trackHeight:vn,trackHeightSM:Vt,trackMinWidth:ne*2+It*4,trackMinWidthSM:De*2+It*2,trackPadding:It,handleBg:Dn,handleSize:ne,handleSizeSM:De,handleShadow:`0 2px 4px 0 ${new lt.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:ne/2,innerMaxMargin:ne+It+It*2,innerMinMarginSM:De/2,innerMaxMarginSM:De+It+It*2}}),Pe=function(ye,Ne){var Ie={};for(var rn in ye)Object.prototype.hasOwnProperty.call(ye,rn)&&Ne.indexOf(rn)<0&&(Ie[rn]=ye[rn]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dn=0,rn=Object.getOwnPropertySymbols(ye);Dn{const{prefixCls:Ie,size:rn,disabled:Dn,loading:vn,className:Vt,rootClassName:It,style:ne}=ye,De=Pe(ye,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Qe,direction:le,switch:Oe}=Ce.useContext(et.E_),on=Ce.useContext(nt.Z),Cn=(Dn!=null?Dn:on)||vn,ln=Qe("switch",Ie),xn=Ce.createElement("div",{className:`${ln}-handle`},vn&&Ce.createElement(vt.Z,{className:`${ln}-loading-icon`})),[re,kn]=te(ln),Zn=(0,ct.Z)(rn),On=ue()(Oe==null?void 0:Oe.className,{[`${ln}-small`]:Zn==="small",[`${ln}-loading`]:vn,[`${ln}-rtl`]:le==="rtl"},Vt,It,kn),Un=Object.assign(Object.assign({},Oe==null?void 0:Oe.style),ne);return re(Ce.createElement(Dt.Z,{component:"Switch"},Ce.createElement(_e,Object.assign({},De,{prefixCls:ln,className:On,style:Un,disabled:Cn,ref:Ne,loadingIcon:xn}))))});ae.__ANT_SWITCH=!0;var We=ae},99498:function(Ze,En,bt){(function(vt){vt(bt(89780))})(function(vt){vt.defineOption("placeholder","",function(Ce,Se,ve){var se=ve&&ve!=vt.Init;if(Se&&!se)Ce.on("blur",me),Ce.on("change",Ee),Ce.on("swapDoc",Ee),vt.on(Ce.getInputField(),"compositionupdate",Ce.state.placeholderCompose=function(){Be(Ce)}),Ee(Ce);else if(!Se&&se){Ce.off("blur",me),Ce.off("change",Ee),Ce.off("swapDoc",Ee),vt.off(Ce.getInputField(),"compositionupdate",Ce.state.placeholderCompose),oe(Ce);var Ae=Ce.getWrapperElement();Ae.className=Ae.className.replace(" CodeMirror-empty","")}Se&&!Ce.hasFocus()&&me(Ce)});function oe(Ce){Ce.state.placeholder&&(Ce.state.placeholder.parentNode.removeChild(Ce.state.placeholder),Ce.state.placeholder=null)}function ue(Ce){oe(Ce);var Se=Ce.state.placeholder=document.createElement("pre");Se.style.cssText="height: 0; overflow: visible",Se.style.direction=Ce.getOption("direction"),Se.className="CodeMirror-placeholder CodeMirror-line-like";var ve=Ce.getOption("placeholder");typeof ve=="string"&&(ve=document.createTextNode(ve)),Se.appendChild(ve),Ce.display.lineSpace.insertBefore(Se,Ce.display.lineSpace.firstChild)}function Be(Ce){setTimeout(function(){var Se=!1,ve=Ce.getInputField();ve.nodeName=="TEXTAREA"?Se=!ve.value:Ce.lineCount()==1&&(Se=!/[^\u200b]/.test(ve.querySelector(".CodeMirror-line").textContent)),Se?ue(Ce):oe(Ce)},20)}function me(Ce){qt(Ce)&&ue(Ce)}function Ee(Ce){var Se=Ce.getWrapperElement(),ve=qt(Ce);Se.className=Se.className.replace(" CodeMirror-empty","")+(ve?" CodeMirror-empty":""),ve?ue(Ce):oe(Ce)}function qt(Ce){return Ce.lineCount()===1&&Ce.getLine(0)===""}})},25717:function(Ze,En,bt){(function(vt){vt(bt(89780))})(function(vt){var oe={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ue=vt.Pos;vt.defineOption("autoCloseBrackets",!1,function(et,nt,ct){ct&&ct!=vt.Init&&(et.removeKeyMap(me),et.state.closeBrackets=null),nt&&(Ee(Be(nt,"pairs")),et.state.closeBrackets=nt,et.addKeyMap(me))});function Be(et,nt){return nt=="pairs"&&typeof et=="string"?et:typeof et=="object"&&et[nt]!=null?et[nt]:oe[nt]}var me={Backspace:Se,Enter:ve};function Ee(et){for(var nt=0;nt=0;pt--){var Lt=lt[pt].head;et.replaceRange("",ue(Lt.line,Lt.ch-1),ue(Lt.line,Lt.ch+1),"+delete")}}function ve(et){var nt=Ce(et),ct=nt&&Be(nt,"explode");if(!ct||et.getOption("disableInput"))return vt.Pass;for(var lt=et.listSelections(),pt=0;pt0;return{anchor:new ue(et.anchor.line,et.anchor.ch+(nt?-1:1)),head:new ue(et.head.line,et.head.ch+(nt?1:-1))}}function Ae(et,nt){var ct=Ce(et);if(!ct||et.getOption("disableInput"))return vt.Pass;var lt=Be(ct,"pairs"),pt=lt.indexOf(nt);if(pt==-1)return vt.Pass;for(var yt=Be(ct,"closeBefore"),Lt=Be(ct,"triples"),kt=lt.charAt(pt+1)==nt,Ht=et.listSelections(),Yt=pt%2==0,$t,ee=0;ee=0&&et.getRange(Pe,ue(Pe.line,Pe.ch+3))==nt+nt+nt?ae="skipThree":ae="skip";else if(kt&&Pe.ch>1&&Lt.indexOf(nt)>=0&&et.getRange(ue(Pe.line,Pe.ch-2),Pe)==nt+nt){if(Pe.ch>2&&/\bstring/.test(et.getTokenTypeAt(ue(Pe.line,Pe.ch-2))))return vt.Pass;ae="addFour"}else if(kt){var ye=Pe.ch==0?" ":et.getRange(ue(Pe.line,Pe.ch-1),Pe);if(!vt.isWordChar(We)&&ye!=nt&&!vt.isWordChar(ye))ae="both";else return vt.Pass}else if(Yt&&(We.length===0||/\s/.test(We)||yt.indexOf(We)>-1))ae="both";else return vt.Pass;if(!$t)$t=ae;else if($t!=ae)return vt.Pass}var Ne=pt%2?lt.charAt(pt-1):nt,Ie=pt%2?nt:lt.charAt(pt+1);et.operation(function(){if($t=="skip")et.execCommand("goCharRight");else if($t=="skipThree")for(var rn=0;rn<3;rn++)et.execCommand("goCharRight");else if($t=="surround"){for(var Dn=et.getSelections(),rn=0;rn'"]=function(_e){return Be(_e)}),Se.addKeyMap(Ae)}});var oe=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],ue=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function Be(Se){if(Se.getOption("disableInput"))return vt.Pass;for(var ve=Se.listSelections(),se=[],Ae=Se.getOption("autoCloseTags"),_e=0;_eDt.ch&&(pt=pt.slice(0,pt.length-et.end+Dt.ch));var Ht=pt.toLowerCase();if(!pt||et.type=="string"&&(et.end!=Dt.ch||!/[\"\']/.test(et.string.charAt(et.string.length-1))||et.string.length==1)||et.type=="tag"&<.close||et.string.indexOf("/")==Dt.ch-et.start-1||Lt&&qt(Lt,Ht)>-1||Ce(Se,nt.mode.xmlCurrentContext&&nt.mode.xmlCurrentContext(ct)||[],pt,Dt,!0))return vt.Pass;var Yt=typeof Ae=="object"&&Ae.emptyTags;if(Yt&&qt(Yt,pt)>-1){se[_e]={text:"/>",newPos:vt.Pos(Dt.line,Dt.ch+2)};continue}var $t=kt&&qt(kt,Ht)>-1;se[_e]={indent:$t,text:">"+($t?` -`:"")+"",newPos:$t?vt.Pos(Dt.line+1,0):vt.Pos(Dt.line,Dt.ch+1)}}for(var ee=typeof Ae=="object"&&Ae.dontIndentOnAutoClose,_e=ve.length-1;_e>=0;_e--){var te=se[_e];Se.replaceRange(te.text,ve[_e].head,ve[_e].anchor,"+insert");var Pe=Se.listSelections().slice(0);Pe[_e]={head:te.newPos,anchor:te.newPos},Se.setSelections(Pe),!ee&&te.indent&&(Se.indentLine(te.newPos.line,null,!0),Se.indentLine(te.newPos.line+1,null,!0))}}function me(Se,ve){for(var se=Se.listSelections(),Ae=[],_e=ve?"/":""&&(Lt+=">"),Ae[nt]=Lt}if(Se.replaceSelections(Ae),se=Se.listSelections(),!et)for(var nt=0;nt=0&&ve[ct]==se;ct--)++nt;Ae=et.to;for(var ct=1;ct=ct.max))return ct.ch=0,ct.text=ct.cm.getLine(++ct.line),!0}function ve(ct){if(!(ct.line<=ct.min))return ct.text=ct.cm.getLine(--ct.line),ct.ch=ct.text.length,!0}function se(ct){for(;;){var lt=ct.text.indexOf(">",ct.ch);if(lt==-1){if(Se(ct))continue;return}if(!Ce(ct,lt+1)){ct.ch=lt+1;continue}var pt=ct.text.lastIndexOf("/",lt),yt=pt>-1&&!/\S/.test(ct.text.slice(pt+1,lt));return ct.ch=lt+1,yt?"selfClose":"regular"}}function Ae(ct){for(;;){var lt=ct.ch?ct.text.lastIndexOf("<",ct.ch-1):-1;if(lt==-1){if(ve(ct))continue;return}if(!Ce(ct,lt+1)){ct.ch=lt;continue}Ee.lastIndex=lt,ct.ch=lt;var pt=Ee.exec(ct.text);if(pt&&pt.index==lt)return pt}}function _e(ct){for(;;){Ee.lastIndex=ct.ch;var lt=Ee.exec(ct.text);if(!lt){if(Se(ct))continue;return}if(!Ce(ct,lt.index+1)){ct.ch=lt.index+1;continue}return ct.ch=lt.index+lt[0].length,lt}}function Dt(ct){for(;;){var lt=ct.ch?ct.text.lastIndexOf(">",ct.ch-1):-1;if(lt==-1){if(ve(ct))continue;return}if(!Ce(ct,lt+1)){ct.ch=lt;continue}var pt=ct.text.lastIndexOf("/",lt),yt=pt>-1&&!/\S/.test(ct.text.slice(pt+1,lt));return ct.ch=lt+1,yt?"selfClose":"regular"}}function et(ct,lt){for(var pt=[];;){var yt=_e(ct),Lt,kt=ct.line,Ht=ct.ch-(yt?yt[0].length:0);if(!yt||!(Lt=se(ct)))return;if(Lt!="selfClose")if(yt[1]){for(var Yt=pt.length-1;Yt>=0;--Yt)if(pt[Yt]==yt[2]){pt.length=Yt;break}if(Yt<0&&(!lt||lt==yt[2]))return{tag:yt[2],from:oe(kt,Ht),to:oe(ct.line,ct.ch)}}else pt.push(yt[2])}}function nt(ct,lt){for(var pt=[];;){var yt=Dt(ct);if(!yt)return;if(yt=="selfClose"){Ae(ct);continue}var Lt=ct.line,kt=ct.ch,Ht=Ae(ct);if(!Ht)return;if(Ht[1])pt.push(Ht[2]);else{for(var Yt=pt.length-1;Yt>=0;--Yt)if(pt[Yt]==Ht[2]){pt.length=Yt;break}if(Yt<0&&(!lt||lt==Ht[2]))return{tag:Ht[2],from:oe(ct.line,ct.ch),to:oe(Lt,kt)}}}}vt.registerHelper("fold","xml",function(ct,lt){for(var pt=new qt(ct,lt.line,0);;){var yt=_e(pt);if(!yt||pt.line!=lt.line)return;var Lt=se(pt);if(!Lt)return;if(!yt[1]&&Lt!="selfClose"){var kt=oe(pt.line,pt.ch),Ht=et(pt,yt[2]);return Ht&&ue(Ht.from,kt)>0?{from:kt,to:Ht.from}:null}}}),vt.findMatchingTag=function(ct,lt,pt){var yt=new qt(ct,lt.line,lt.ch,pt);if(!(yt.text.indexOf(">")==-1&&yt.text.indexOf("<")==-1)){var Lt=se(yt),kt=Lt&&oe(yt.line,yt.ch),Ht=Lt&&Ae(yt);if(!(!Lt||!Ht||ue(yt,lt)>0)){var Yt={from:oe(yt.line,yt.ch),to:kt,tag:Ht[2]};return Lt=="selfClose"?{open:Yt,close:null,at:"open"}:Ht[1]?{open:nt(yt,Ht[2]),close:Yt,at:"close"}:(yt=new qt(ct,kt.line,kt.ch,pt),{open:Yt,close:et(yt,Ht[2]),at:"open"})}}},vt.findEnclosingTag=function(ct,lt,pt,yt){for(var Lt=new qt(ct,lt.line,lt.ch,pt);;){var kt=nt(Lt,yt);if(!kt)break;var Ht=new qt(ct,lt.line,lt.ch,pt),Yt=et(Ht,kt.tag);if(Yt)return{open:kt,close:Yt}}},vt.scanForClosingTag=function(ct,lt,pt,yt){var Lt=new qt(ct,lt.line,lt.ch,yt?{from:0,to:yt}:null);return et(Lt,pt)}})},89780:function(Ze){(function(En,bt){Ze.exports=bt()})(this,function(){"use strict";var En=navigator.userAgent,bt=navigator.platform,vt=/gecko\/\d/i.test(En),oe=/MSIE \d/.test(En),ue=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(En),Be=/Edge\/(\d+)/.exec(En),me=oe||ue||Be,Ee=me&&(oe?document.documentMode||6:+(Be||ue)[1]),qt=!Be&&/WebKit\//.test(En),Ce=qt&&/Qt\/\d+\.\d+/.test(En),Se=!Be&&/Chrome\//.test(En),ve=/Opera\//.test(En),se=/Apple Computer/.test(navigator.vendor),Ae=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(En),_e=/PhantomJS/.test(En),Dt=!Be&&/AppleWebKit/.test(En)&&/Mobile\/\w+/.test(En),et=/Android/.test(En),nt=Dt||et||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(En),ct=Dt||/Mac/.test(bt),lt=/\bCrOS\b/.test(En),pt=/win/i.test(bt),yt=ve&&En.match(/Version\/(\d*\.\d*)/);yt&&(yt=Number(yt[1])),yt&&yt>=15&&(ve=!1,qt=!0);var Lt=ct&&(Ce||ve&&(yt==null||yt<12.11)),kt=vt||me&&Ee>=9;function Ht(it){return new RegExp("(^|\\s)"+it+"(?:$|\\s)\\s*")}var Yt=function(it,st){var dt=it.className,ht=Ht(st).exec(dt);if(ht){var ft=dt.slice(ht.index+ht[0].length);it.className=dt.slice(0,ht.index)+(ft?ht[1]+ft:"")}};function $t(it){for(var st=it.childNodes.length;st>0;--st)it.removeChild(it.firstChild);return it}function ee(it,st){return $t(it).appendChild(st)}function te(it,st,dt,ht){var ft=document.createElement(it);if(dt&&(ft.className=dt),ht&&(ft.style.cssText=ht),typeof st=="string")ft.appendChild(document.createTextNode(st));else if(st)for(var Pt=0;Pt=st)return Nt+(st-Pt);Nt+=zt-Pt,Nt+=dt-Nt%dt,Pt=zt+1}}var It=function(){this.id=null,this.f=null,this.time=0,this.handler=Dn(this.onTimeout,this)};It.prototype.onTimeout=function(it){it.id=0,it.time<=+new Date?it.f():setTimeout(it.handler,it.time-+new Date)},It.prototype.set=function(it,st){this.f=st;var dt=+new Date+it;(!this.id||dt=st)return ht+Math.min(Nt,st-ft);if(ft+=Pt-ht,ft+=dt-ft%dt,ht=Pt+1,ft>=st)return ht}}var ln=[""];function xn(it){for(;ln.length<=it;)ln.push(re(ln)+" ");return ln[it]}function re(it){return it[it.length-1]}function kn(it,st){for(var dt=[],ht=0;ht"\x80"&&(it.toUpperCase()!=it.toLowerCase()||hi.test(it))}function nn(it,st){return st?st.source.indexOf("\\w")>-1&&Ri(it)?!0:st.test(it):Ri(it)}function un(it){for(var st in it)if(it.hasOwnProperty(st)&&it[st])return!1;return!0}var wn=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ze(it){return it.charCodeAt(0)>=768&&wn.test(it)}function fn(it,st,dt){for(;(dt<0?st>0:stdt?-1:1;;){if(st==dt)return st;var ft=(st+dt)/2,Pt=ht<0?Math.ceil(ft):Math.floor(ft);if(Pt==st)return it(Pt)?st:dt;it(Pt)?dt=Pt:st=Pt+ht}}function Bt(it,st,dt,ht){if(!it)return ht(st,dt,"ltr",0);for(var ft=!1,Pt=0;Ptst||st==dt&&Nt.to==st)&&(ht(Math.max(Nt.from,st),Math.min(Nt.to,dt),Nt.level==1?"rtl":"ltr",Pt),ft=!0)}ft||ht(st,dt,"ltr")}var Mt=null;function xt(it,st,dt){var ht;Mt=null;for(var ft=0;ftst)return ft;Pt.to==st&&(Pt.from!=Pt.to&&dt=="before"?ht=ft:Mt=ft),Pt.from==st&&(Pt.from!=Pt.to&&dt!="before"?ht=ft:Mt=ft)}return ht!=null?ht:Mt}var Ft=function(){var it="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",st="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function dt(Zt){return Zt<=247?it.charAt(Zt):1424<=Zt&&Zt<=1524?"R":1536<=Zt&&Zt<=1785?st.charAt(Zt-1536):1774<=Zt&&Zt<=2220?"r":8192<=Zt&&Zt<=8203?"w":Zt==8204?"b":"L"}var ht=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ft=/[stwN]/,Pt=/[LRr]/,Nt=/[Lb1n]/,zt=/[1n]/;function jt(Zt,xe,Xt){this.level=Zt,this.from=xe,this.to=Xt}return function(Zt,xe){var Xt=xe=="ltr"?"L":"R";if(Zt.length==0||xe=="ltr"&&!ht.test(Zt))return!1;for(var Re=Zt.length,Te=[],Pn=0;Pn-1&&(ht[st]=ft.slice(0,Pt).concat(ft.slice(Pt+1)))}}}function pn(it,st){var dt=dn(it,st);if(dt.length)for(var ht=Array.prototype.slice.call(arguments,2),ft=0;ft0}function wi(it){it.prototype.on=function(st,dt){ge(this,st,dt)},it.prototype.off=function(st,dt){gn(this,st,dt)}}function Ji(it){it.preventDefault?it.preventDefault():it.returnValue=!1}function wo(it){it.stopPropagation?it.stopPropagation():it.cancelBubble=!0}function Io(it){return it.defaultPrevented!=null?it.defaultPrevented:it.returnValue==!1}function Wr(it){Ji(it),wo(it)}function nr(it){return it.target||it.srcElement}function Cr(it){var st=it.which;return st==null&&(it.button&1?st=1:it.button&2?st=3:it.button&4&&(st=2)),ct&&it.ctrlKey&&st==1&&(st=3),st}var bo=function(){if(me&&Ee<9)return!1;var it=te("div");return"draggable"in it||"dragDrop"in it}(),Fo;function fo(it){if(Fo==null){var st=te("span","\u200B");ee(it,te("span",[st,document.createTextNode("x")])),it.firstChild.offsetHeight!=0&&(Fo=st.offsetWidth<=1&&st.offsetHeight>2&&!(me&&Ee<8))}var dt=Fo?te("span","\u200B"):te("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return dt.setAttribute("cm-text",""),dt}var hr;function dr(it){if(hr!=null)return hr;var st=ee(it,document.createTextNode("A\u062EA")),dt=ae(st,0,1).getBoundingClientRect(),ht=ae(st,1,2).getBoundingClientRect();return $t(it),!dt||dt.left==dt.right?!1:hr=ht.right-dt.right<3}var Ui=` +`:"")+"",newPos:$t?vt.Pos(Dt.line+1,0):vt.Pos(Dt.line,Dt.ch+1)}}for(var ee=typeof Ae=="object"&&Ae.dontIndentOnAutoClose,_e=ve.length-1;_e>=0;_e--){var te=se[_e];Se.replaceRange(te.text,ve[_e].head,ve[_e].anchor,"+insert");var Pe=Se.listSelections().slice(0);Pe[_e]={head:te.newPos,anchor:te.newPos},Se.setSelections(Pe),!ee&&te.indent&&(Se.indentLine(te.newPos.line,null,!0),Se.indentLine(te.newPos.line+1,null,!0))}}function me(Se,ve){for(var se=Se.listSelections(),Ae=[],_e=ve?"/":""&&(Lt+=">"),Ae[nt]=Lt}if(Se.replaceSelections(Ae),se=Se.listSelections(),!et)for(var nt=0;nt=0&&ve[ct]==se;ct--)++nt;Ae=et.to;for(var ct=1;ct=ct.max))return ct.ch=0,ct.text=ct.cm.getLine(++ct.line),!0}function ve(ct){if(!(ct.line<=ct.min))return ct.text=ct.cm.getLine(--ct.line),ct.ch=ct.text.length,!0}function se(ct){for(;;){var lt=ct.text.indexOf(">",ct.ch);if(lt==-1){if(Se(ct))continue;return}if(!Ce(ct,lt+1)){ct.ch=lt+1;continue}var pt=ct.text.lastIndexOf("/",lt),yt=pt>-1&&!/\S/.test(ct.text.slice(pt+1,lt));return ct.ch=lt+1,yt?"selfClose":"regular"}}function Ae(ct){for(;;){var lt=ct.ch?ct.text.lastIndexOf("<",ct.ch-1):-1;if(lt==-1){if(ve(ct))continue;return}if(!Ce(ct,lt+1)){ct.ch=lt;continue}Ee.lastIndex=lt,ct.ch=lt;var pt=Ee.exec(ct.text);if(pt&&pt.index==lt)return pt}}function _e(ct){for(;;){Ee.lastIndex=ct.ch;var lt=Ee.exec(ct.text);if(!lt){if(Se(ct))continue;return}if(!Ce(ct,lt.index+1)){ct.ch=lt.index+1;continue}return ct.ch=lt.index+lt[0].length,lt}}function Dt(ct){for(;;){var lt=ct.ch?ct.text.lastIndexOf(">",ct.ch-1):-1;if(lt==-1){if(ve(ct))continue;return}if(!Ce(ct,lt+1)){ct.ch=lt;continue}var pt=ct.text.lastIndexOf("/",lt),yt=pt>-1&&!/\S/.test(ct.text.slice(pt+1,lt));return ct.ch=lt+1,yt?"selfClose":"regular"}}function et(ct,lt){for(var pt=[];;){var yt=_e(ct),Lt,kt=ct.line,Ht=ct.ch-(yt?yt[0].length:0);if(!yt||!(Lt=se(ct)))return;if(Lt!="selfClose")if(yt[1]){for(var Yt=pt.length-1;Yt>=0;--Yt)if(pt[Yt]==yt[2]){pt.length=Yt;break}if(Yt<0&&(!lt||lt==yt[2]))return{tag:yt[2],from:oe(kt,Ht),to:oe(ct.line,ct.ch)}}else pt.push(yt[2])}}function nt(ct,lt){for(var pt=[];;){var yt=Dt(ct);if(!yt)return;if(yt=="selfClose"){Ae(ct);continue}var Lt=ct.line,kt=ct.ch,Ht=Ae(ct);if(!Ht)return;if(Ht[1])pt.push(Ht[2]);else{for(var Yt=pt.length-1;Yt>=0;--Yt)if(pt[Yt]==Ht[2]){pt.length=Yt;break}if(Yt<0&&(!lt||lt==Ht[2]))return{tag:Ht[2],from:oe(ct.line,ct.ch),to:oe(Lt,kt)}}}}vt.registerHelper("fold","xml",function(ct,lt){for(var pt=new qt(ct,lt.line,0);;){var yt=_e(pt);if(!yt||pt.line!=lt.line)return;var Lt=se(pt);if(!Lt)return;if(!yt[1]&&Lt!="selfClose"){var kt=oe(pt.line,pt.ch),Ht=et(pt,yt[2]);return Ht&&ue(Ht.from,kt)>0?{from:kt,to:Ht.from}:null}}}),vt.findMatchingTag=function(ct,lt,pt){var yt=new qt(ct,lt.line,lt.ch,pt);if(!(yt.text.indexOf(">")==-1&&yt.text.indexOf("<")==-1)){var Lt=se(yt),kt=Lt&&oe(yt.line,yt.ch),Ht=Lt&&Ae(yt);if(!(!Lt||!Ht||ue(yt,lt)>0)){var Yt={from:oe(yt.line,yt.ch),to:kt,tag:Ht[2]};return Lt=="selfClose"?{open:Yt,close:null,at:"open"}:Ht[1]?{open:nt(yt,Ht[2]),close:Yt,at:"close"}:(yt=new qt(ct,kt.line,kt.ch,pt),{open:Yt,close:et(yt,Ht[2]),at:"open"})}}},vt.findEnclosingTag=function(ct,lt,pt,yt){for(var Lt=new qt(ct,lt.line,lt.ch,pt);;){var kt=nt(Lt,yt);if(!kt)break;var Ht=new qt(ct,lt.line,lt.ch,pt),Yt=et(Ht,kt.tag);if(Yt)return{open:kt,close:Yt}}},vt.scanForClosingTag=function(ct,lt,pt,yt){var Lt=new qt(ct,lt.line,lt.ch,yt?{from:0,to:yt}:null);return et(Lt,pt)}})},89780:function(Ze){(function(En,bt){Ze.exports=bt()})(this,function(){"use strict";var En=navigator.userAgent,bt=navigator.platform,vt=/gecko\/\d/i.test(En),oe=/MSIE \d/.test(En),ue=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(En),Be=/Edge\/(\d+)/.exec(En),me=oe||ue||Be,Ee=me&&(oe?document.documentMode||6:+(Be||ue)[1]),qt=!Be&&/WebKit\//.test(En),Ce=qt&&/Qt\/\d+\.\d+/.test(En),Se=!Be&&/Chrome\//.test(En),ve=/Opera\//.test(En),se=/Apple Computer/.test(navigator.vendor),Ae=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(En),_e=/PhantomJS/.test(En),Dt=!Be&&/AppleWebKit/.test(En)&&/Mobile\/\w+/.test(En),et=/Android/.test(En),nt=Dt||et||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(En),ct=Dt||/Mac/.test(bt),lt=/\bCrOS\b/.test(En),pt=/win/i.test(bt),yt=ve&&En.match(/Version\/(\d*\.\d*)/);yt&&(yt=Number(yt[1])),yt&&yt>=15&&(ve=!1,qt=!0);var Lt=ct&&(Ce||ve&&(yt==null||yt<12.11)),kt=vt||me&&Ee>=9;function Ht(it){return new RegExp("(^|\\s)"+it+"(?:$|\\s)\\s*")}var Yt=function(it,st){var dt=it.className,ht=Ht(st).exec(dt);if(ht){var ft=dt.slice(ht.index+ht[0].length);it.className=dt.slice(0,ht.index)+(ft?ht[1]+ft:"")}};function $t(it){for(var st=it.childNodes.length;st>0;--st)it.removeChild(it.firstChild);return it}function ee(it,st){return $t(it).appendChild(st)}function te(it,st,dt,ht){var ft=document.createElement(it);if(dt&&(ft.className=dt),ht&&(ft.style.cssText=ht),typeof st=="string")ft.appendChild(document.createTextNode(st));else if(st)for(var Pt=0;Pt=st)return Nt+(st-Pt);Nt+=zt-Pt,Nt+=dt-Nt%dt,Pt=zt+1}}var It=function(){this.id=null,this.f=null,this.time=0,this.handler=Dn(this.onTimeout,this)};It.prototype.onTimeout=function(it){it.id=0,it.time<=+new Date?it.f():setTimeout(it.handler,it.time-+new Date)},It.prototype.set=function(it,st){this.f=st;var dt=+new Date+it;(!this.id||dt=st)return ht+Math.min(Nt,st-ft);if(ft+=Pt-ht,ft+=dt-ft%dt,ht=Pt+1,ft>=st)return ht}}var ln=[""];function xn(it){for(;ln.length<=it;)ln.push(re(ln)+" ");return ln[it]}function re(it){return it[it.length-1]}function kn(it,st){for(var dt=[],ht=0;ht"\x80"&&(it.toUpperCase()!=it.toLowerCase()||hi.test(it))}function nn(it,st){return st?st.source.indexOf("\\w")>-1&&Ri(it)?!0:st.test(it):Ri(it)}function un(it){for(var st in it)if(it.hasOwnProperty(st)&&it[st])return!1;return!0}var wn=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ze(it){return it.charCodeAt(0)>=768&&wn.test(it)}function fn(it,st,dt){for(;(dt<0?st>0:stdt?-1:1;;){if(st==dt)return st;var ft=(st+dt)/2,Pt=ht<0?Math.ceil(ft):Math.floor(ft);if(Pt==st)return it(Pt)?st:dt;it(Pt)?dt=Pt:st=Pt+ht}}function Bt(it,st,dt,ht){if(!it)return ht(st,dt,"ltr",0);for(var ft=!1,Pt=0;Ptst||st==dt&&Nt.to==st)&&(ht(Math.max(Nt.from,st),Math.min(Nt.to,dt),Nt.level==1?"rtl":"ltr",Pt),ft=!0)}ft||ht(st,dt,"ltr")}var Mt=null;function xt(it,st,dt){var ht;Mt=null;for(var ft=0;ftst)return ft;Pt.to==st&&(Pt.from!=Pt.to&&dt=="before"?ht=ft:Mt=ft),Pt.from==st&&(Pt.from!=Pt.to&&dt!="before"?ht=ft:Mt=ft)}return ht!=null?ht:Mt}var Ft=function(){var it="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",st="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function dt(Zt){return Zt<=247?it.charAt(Zt):1424<=Zt&&Zt<=1524?"R":1536<=Zt&&Zt<=1785?st.charAt(Zt-1536):1774<=Zt&&Zt<=2220?"r":8192<=Zt&&Zt<=8203?"w":Zt==8204?"b":"L"}var ht=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ft=/[stwN]/,Pt=/[LRr]/,Nt=/[Lb1n]/,zt=/[1n]/;function jt(Zt,xe,Xt){this.level=Zt,this.from=xe,this.to=Xt}return function(Zt,xe){var Xt=xe=="ltr"?"L":"R";if(Zt.length==0||xe=="ltr"&&!ht.test(Zt))return!1;for(var Re=Zt.length,Te=[],Pn=0;Pn-1&&(ht[st]=ft.slice(0,Pt).concat(ft.slice(Pt+1)))}}}function pn(it,st){var dt=dn(it,st);if(dt.length)for(var ht=Array.prototype.slice.call(arguments,2),ft=0;ft0}function wi(it){it.prototype.on=function(st,dt){ge(this,st,dt)},it.prototype.off=function(st,dt){gn(this,st,dt)}}function Ji(it){it.preventDefault?it.preventDefault():it.returnValue=!1}function wo(it){it.stopPropagation?it.stopPropagation():it.cancelBubble=!0}function Io(it){return it.defaultPrevented!=null?it.defaultPrevented:it.returnValue==!1}function Wr(it){Ji(it),wo(it)}function nr(it){return it.target||it.srcElement}function Cr(it){var st=it.which;return st==null&&(it.button&1?st=1:it.button&2?st=3:it.button&4&&(st=2)),ct&&it.ctrlKey&&st==1&&(st=3),st}var bo=function(){if(me&&Ee<9)return!1;var it=te("div");return"draggable"in it||"dragDrop"in it}(),Fo;function fo(it){if(Fo==null){var st=te("span","\u200B");ee(it,te("span",[st,document.createTextNode("x")])),it.firstChild.offsetHeight!=0&&(Fo=st.offsetWidth<=1&&st.offsetHeight>2&&!(me&&Ee<8))}var dt=Fo?te("span","\u200B"):te("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return dt.setAttribute("cm-text",""),dt}var hr;function dr(it){if(hr!=null)return hr;var st=ee(it,document.createTextNode("A\u062EA")),dt=ae(st,0,1).getBoundingClientRect(),ht=ae(st,1,2).getBoundingClientRect();return $t(it),!dt||dt.left==dt.right?!1:hr=ht.right-dt.right<3}var Ui=` b`.split(/\n/).length!=3?function(it){for(var st=0,dt=[],ht=it.length;st<=ht;){var ft=it.indexOf(` -`,st);ft==-1&&(ft=it.length);var Pt=it.slice(st,it.charAt(ft-1)=="\r"?ft-1:ft),Nt=Pt.indexOf("\r");Nt!=-1?(dt.push(Pt.slice(0,Nt)),st+=Nt+1):(dt.push(Pt),st=ft+1)}return dt}:function(it){return it.split(/\r\n?|\n/)},Ct=window.getSelection?function(it){try{return it.selectionStart!=it.selectionEnd}catch(st){return!1}}:function(it){var st;try{st=it.ownerDocument.selection.createRange()}catch(dt){}return!st||st.parentElement()!=it?!1:st.compareEndPoints("StartToEnd",st)!=0},Rs=function(){var it=te("div");return"oncopy"in it?!0:(it.setAttribute("oncopy","return;"),typeof it.oncopy=="function")}(),Wo=null;function Ss(it){if(Wo!=null)return Wo;var st=ee(it,te("span","x")),dt=st.getBoundingClientRect(),ht=ae(st,0,1).getBoundingClientRect();return Wo=Math.abs(dt.left-ht.left)>1}var ta={},ss={};function ea(it,st){arguments.length>2&&(st.dependencies=Array.prototype.slice.call(arguments,2)),ta[it]=st}function Tn(it,st){ss[it]=st}function Qn(it){if(typeof it=="string"&&ss.hasOwnProperty(it))it=ss[it];else if(it&&typeof it.name=="string"&&ss.hasOwnProperty(it.name)){var st=ss[it.name];typeof st=="string"&&(st={name:st}),it=Un(st,it),it.name=st.name}else{if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(it))return Qn("application/xml");if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(it))return Qn("application/json")}return typeof it=="string"?{name:it}:it||{name:"null"}}function we(it,st){st=Qn(st);var dt=ta[st.name];if(!dt)return we(it,"text/plain");var ht=dt(it,st);if(pe.hasOwnProperty(st.name)){var ft=pe[st.name];for(var Pt in ft)ft.hasOwnProperty(Pt)&&(ht.hasOwnProperty(Pt)&&(ht["_"+Pt]=ht[Pt]),ht[Pt]=ft[Pt])}if(ht.name=st.name,st.helperType&&(ht.helperType=st.helperType),st.modeProps)for(var Nt in st.modeProps)ht[Nt]=st.modeProps[Nt];return ht}var pe={};function fe(it,st){var dt=pe.hasOwnProperty(it)?pe[it]:pe[it]={};vn(st,dt)}function Bn(it,st){if(st===!0)return st;if(it.copyState)return it.copyState(st);var dt={};for(var ht in st){var ft=st[ht];ft instanceof Array&&(ft=ft.concat([])),dt[ht]=ft}return dt}function zn(it,st){for(var dt;it.innerMode&&(dt=it.innerMode(st),!(!dt||dt.mode==it));)st=dt.state,it=dt.mode;return dt||{mode:it,state:st}}function Wn(it,st,dt){return it.startState?it.startState(st,dt):!0}var be=function(it,st,dt){this.pos=this.start=0,this.string=it,this.tabSize=st||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=dt};be.prototype.eol=function(){return this.pos>=this.string.length},be.prototype.sol=function(){return this.pos==this.lineStart},be.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},be.prototype.next=function(){if(this.posst},be.prototype.eatSpace=function(){for(var it=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>it},be.prototype.skipToEnd=function(){this.pos=this.string.length},be.prototype.skipTo=function(it){var st=this.string.indexOf(it,this.pos);if(st>-1)return this.pos=st,!0},be.prototype.backUp=function(it){this.pos-=it},be.prototype.column=function(){return this.lastColumnPos0?null:(Pt&&st!==!1&&(this.pos+=Pt[0].length),Pt)}},be.prototype.current=function(){return this.string.slice(this.start,this.pos)},be.prototype.hideFirstChars=function(it,st){this.lineStart+=it;try{return st()}finally{this.lineStart-=it}},be.prototype.lookAhead=function(it){var st=this.lineOracle;return st&&st.lookAhead(it)},be.prototype.baseToken=function(){var it=this.lineOracle;return it&&it.baseToken(this.pos)};function An(it,st){if(st-=it.first,st<0||st>=it.size)throw new Error("There is no line "+(st+it.first)+" in the document.");for(var dt=it;!dt.lines;)for(var ht=0;;++ht){var ft=dt.children[ht],Pt=ft.chunkSize();if(st=it.first&&stdt?ke(dt,An(it,dt).text.length):yo(st,An(it,st.line).text.length)}function yo(it,st){var dt=it.ch;return dt==null||dt>st?ke(it.line,st):dt<0?ke(it.line,0):it}function cr(it,st){for(var dt=[],ht=0;htthis.maxLookAhead&&(this.maxLookAhead=it),st},Xe.prototype.baseToken=function(it){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=it;)this.baseTokenPos+=2;var st=this.baseTokens[this.baseTokenPos+1];return{type:st&&st.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-it}},Xe.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Xe.fromSaved=function(it,st,dt){return st instanceof Vo?new Xe(it,Bn(it.mode,st.state),dt,st.lookAhead):new Xe(it,Bn(it.mode,st),dt)},Xe.prototype.save=function(it){var st=it!==!1?Bn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Vo(st,this.maxLookAhead):st};function _o(it,st,dt,ht){var ft=[it.state.modeGen],Pt={};To(it,st.text,it.doc.mode,dt,function(Zt,xe){return ft.push(Zt,xe)},Pt,ht);for(var Nt=dt.state,zt=function(Zt){dt.baseTokens=ft;var xe=it.state.overlays[Zt],Xt=1,Re=0;dt.state=!0,To(it,st.text,xe.mode,dt,function(Te,Pn){for(var Nn=Xt;ReTe&&ft.splice(Xt,1,Te,ft[Xt+1],Hn),Xt+=2,Re=Math.min(Te,Hn)}if(Pn)if(xe.opaque)ft.splice(Nn,Xt-Nn,Te,"overlay "+Pn),Xt=Nn+2;else for(;Nnit.options.maxHighlightLength&&Bn(it.doc.mode,ht.state),Pt=_o(it,st,ht);ft&&(ht.state=ft),st.stateAfter=ht.save(!ft),st.styles=Pt.styles,Pt.classes?st.styleClasses=Pt.classes:st.styleClasses&&(st.styleClasses=null),dt===it.doc.highlightFrontier&&(it.doc.modeFrontier=Math.max(it.doc.modeFrontier,++it.doc.highlightFrontier))}return st.styles}function io(it,st,dt){var ht=it.doc,ft=it.display;if(!ht.mode.startState)return new Xe(ht,!0,st);var Pt=ho(it,st,dt),Nt=Pt>ht.first&&An(ht,Pt-1).stateAfter,zt=Nt?Xe.fromSaved(ht,Nt,Pt):new Xe(ht,Wn(ht.mode),Pt);return ht.iter(Pt,st,function(jt){je(it,jt.text,zt);var Zt=zt.line;jt.stateAfter=Zt==st-1||Zt%5==0||Zt>=ft.viewFrom&&Ztst.start)return Pt}throw new Error("Mode "+it.name+" failed to advance stream.")}var mi=function(it,st,dt){this.start=it.start,this.end=it.pos,this.string=it.current(),this.type=st||null,this.state=dt};function fi(it,st,dt,ht){var ft=it.doc,Pt=ft.mode,Nt;st=ui(ft,st);var zt=An(ft,st.line),jt=io(it,st.line,dt),Zt=new be(zt.text,it.options.tabSize,jt),xe;for(ht&&(xe=[]);(ht||Zt.posit.options.maxHighlightLength?(zt=!1,Nt&&je(it,st,ht,xe.pos),xe.pos=st.length,Xt=null):Xt=qi(di(dt,xe,ht.state,Re),Pt),Re){var Te=Re[0].name;Te&&(Xt="m-"+(Xt?Te+" "+Xt:Te))}if(!zt||Zt!=Xt){for(;jtNt;--zt){if(zt<=Pt.first)return Pt.first;var jt=An(Pt,zt-1),Zt=jt.stateAfter;if(Zt&&(!dt||zt+(Zt instanceof Vo?Zt.lookAhead:0)<=Pt.modeFrontier))return zt;var xe=Vt(jt.text,null,it.options.tabSize);(ft==null||ht>xe)&&(ft=zt-1,ht=xe)}return ft}function co(it,st){if(it.modeFrontier=Math.min(it.modeFrontier,st),!(it.highlightFrontierdt;ht--){var ft=An(it,ht).stateAfter;if(ft&&(!(ft instanceof Vo)||ht+ft.lookAhead=st:Pt.to>st);(ht||(ht=[])).push(new Lo(Nt,Pt.from,jt?null:Pt.to))}}return ht}function cn(it,st,dt){var ht;if(it)for(var ft=0;ft=st:Pt.to>st);if(zt||Pt.from==st&&Nt.type=="bookmark"&&(!dt||Pt.marker.insertLeft)){var jt=Pt.from==null||(Nt.inclusiveLeft?Pt.from<=st:Pt.from0&&zt)for(var ki=0;ki0)){var xe=[jt,1],Xt=an(Zt.from,zt.from),Re=an(Zt.to,zt.to);(Xt<0||!Nt.inclusiveLeft&&!Xt)&&xe.push({from:Zt.from,to:zt.from}),(Re>0||!Nt.inclusiveRight&&!Re)&&xe.push({from:zt.to,to:Zt.to}),ft.splice.apply(ft,xe),jt+=xe.length-3}}return ft}function Vn(it){var st=it.markedSpans;if(st){for(var dt=0;dtst)&&(!ht||na(ht,Pt.marker)<0)&&(ht=Pt.marker)}return ht}function Zl(it,st,dt,ht,ft){var Pt=An(it,st),Nt=Je&&Pt.markedSpans;if(Nt)for(var zt=0;zt=0&&Xt<=0||xe<=0&&Xt>=0)&&(xe<=0&&(jt.marker.inclusiveRight&&ft.inclusiveLeft?an(Zt.to,dt)>=0:an(Zt.to,dt)>0)||xe>=0&&(jt.marker.inclusiveRight&&ft.inclusiveLeft?an(Zt.from,ht)<=0:an(Zt.from,ht)<0)))return!0}}}function tr(it){for(var st;st=_l(it);)it=st.find(-1,!0).line;return it}function gr(it){for(var st;st=ga(it);)it=st.find(1,!0).line;return it}function Ea(it){for(var st,dt;st=ga(it);)it=st.find(1,!0).line,(dt||(dt=[])).push(it);return dt}function Ti(it,st){var dt=An(it,st),ht=tr(dt);return dt==ht?st:ie(ht)}function ci(it,st){if(st>it.lastLine())return st;var dt=An(it,st),ht;if(!tn(it,dt))return st;for(;ht=ga(dt);)dt=ht.find(1,!0).line;return ie(dt)+1}function tn(it,st){var dt=Je&&st.markedSpans;if(dt){for(var ht=void 0,ft=0;ftst.maxLineLength&&(st.maxLineLength=ft,st.maxLine=ht)})}var pr=function(it,st,dt){this.text=it,Rt(this,st),this.height=dt?dt(this):1};pr.prototype.lineNo=function(){return ie(this)},wi(pr);function Rr(it,st,dt,ht){it.text=st,it.stateAfter&&(it.stateAfter=null),it.styles&&(it.styles=null),it.order!=null&&(it.order=null),Vn(it),Rt(it,dt);var ft=ht?ht(it):1;ft!=it.height&&Ki(it,ft)}function Sr(it){it.parent=null,Vn(it)}var Ga={},fa={};function Ql(it,st){if(!it||/^\s*$/.test(it))return null;var dt=st.addModeClass?fa:Ga;return dt[it]||(dt[it]=it.replace(/\S+/g,"cm-$&"))}function Me(it,st){var dt=Pe("span",null,null,qt?"padding-right: .1px":null),ht={pre:Pe("pre",[dt],"CodeMirror-line"),content:dt,col:0,pos:0,cm:it,trailingSpace:!1,splitSpaces:it.getOption("lineWrapping")};st.measure={};for(var ft=0;ft<=(st.rest?st.rest.length:0);ft++){var Pt=ft?st.rest[ft-1]:st.line,Nt=void 0;ht.pos=0,ht.addToken=Au,dr(it.display.measure)&&(Nt=Ut(Pt,it.doc.direction))&&(ht.addToken=au(ht.addToken,Nt)),ht.map=[];var zt=st!=it.display.externalMeasured&&ie(Pt);kl(Pt,ht,Do(it,Pt,zt)),Pt.styleClasses&&(Pt.styleClasses.bgClass&&(ht.bgClass=Ie(Pt.styleClasses.bgClass,ht.bgClass||"")),Pt.styleClasses.textClass&&(ht.textClass=Ie(Pt.styleClasses.textClass,ht.textClass||""))),ht.map.length==0&&ht.map.push(0,0,ht.content.appendChild(fo(it.display.measure))),ft==0?(st.measure.map=ht.map,st.measure.cache={}):((st.measure.maps||(st.measure.maps=[])).push(ht.map),(st.measure.caches||(st.measure.caches=[])).push({}))}if(qt){var jt=ht.content.lastChild;(/\bcm-tab\b/.test(jt.className)||jt.querySelector&&jt.querySelector(".cm-tab"))&&(ht.content.className="cm-tab-wrap-hack")}return pn(it,"renderLine",it,st.line,ht.pre),ht.pre.className&&(ht.textClass=Ie(ht.pre.className,ht.textClass||"")),ht}function Ts(it){var st=te("span","\u2022","cm-invalidchar");return st.title="\\u"+it.charCodeAt(0).toString(16),st.setAttribute("aria-label",st.title),st}function Au(it,st,dt,ht,ft,Pt,Nt){if(st){var zt=it.splitSpaces?qa(st,it.trailingSpace):st,jt=it.cm.state.specialChars,Zt=!1,xe;if(!jt.test(st))it.col+=st.length,xe=document.createTextNode(zt),it.map.push(it.pos,it.pos+st.length,xe),me&&Ee<9&&(Zt=!0),it.pos+=st.length;else{xe=document.createDocumentFragment();for(var Xt=0;;){jt.lastIndex=Xt;var Re=jt.exec(st),Te=Re?Re.index-Xt:st.length-Xt;if(Te){var Pn=document.createTextNode(zt.slice(Xt,Xt+Te));me&&Ee<9?xe.appendChild(te("span",[Pn])):xe.appendChild(Pn),it.map.push(it.pos,it.pos+Te,Pn),it.col+=Te,it.pos+=Te}if(!Re)break;Xt+=Te+1;var Nn=void 0;if(Re[0]==" "){var Hn=it.cm.options.tabSize,$n=Hn-it.col%Hn;Nn=xe.appendChild(te("span",xn($n),"cm-tab")),Nn.setAttribute("role","presentation"),Nn.setAttribute("cm-text"," "),it.col+=$n}else Re[0]=="\r"||Re[0]==` -`?(Nn=xe.appendChild(te("span",Re[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Nn.setAttribute("cm-text",Re[0]),it.col+=1):(Nn=it.cm.options.specialCharPlaceholder(Re[0]),Nn.setAttribute("cm-text",Re[0]),me&&Ee<9?xe.appendChild(te("span",[Nn])):xe.appendChild(Nn),it.col+=1);it.map.push(it.pos,it.pos+1,Nn),it.pos++}}if(it.trailingSpace=zt.charCodeAt(st.length-1)==32,dt||ht||ft||Zt||Pt||Nt){var xi=dt||"";ht&&(xi+=ht),ft&&(xi+=ft);var ai=te("span",[xe],xi,Pt);if(Nt)for(var ki in Nt)Nt.hasOwnProperty(ki)&&ki!="style"&&ki!="class"&&ai.setAttribute(ki,Nt[ki]);return it.content.appendChild(ai)}it.content.appendChild(xe)}}function qa(it,st){if(it.length>1&&!/ /.test(it))return it;for(var dt=st,ht="",ft=0;ftZt&&Xt.from<=Zt));Re++);if(Xt.to>=xe)return it(dt,ht,ft,Pt,Nt,zt,jt);it(dt,ht.slice(0,Xt.to-Zt),ft,Pt,null,zt,jt),Pt=null,ht=ht.slice(Xt.to-Zt),Zt=Xt.to}}}function Lr(it,st,dt,ht){var ft=!ht&&dt.widgetNode;ft&&it.map.push(it.pos,it.pos+st,ft),!ht&&it.cm.display.input.needsContentAttribute&&(ft||(ft=it.content.appendChild(document.createElement("span"))),ft.setAttribute("cm-marker",dt.id)),ft&&(it.cm.display.input.setUneditable(ft),it.content.appendChild(ft)),it.pos+=st,it.trailingSpace=!1}function kl(it,st,dt){var ht=it.markedSpans,ft=it.text,Pt=0;if(!ht){for(var Nt=1;Ntjt||vo.collapsed&&oi.to==jt&&oi.from==jt)){if(oi.to!=null&&oi.to!=jt&&Te>oi.to&&(Te=oi.to,Nn=""),vo.className&&(Pn+=" "+vo.className),vo.css&&(Re=(Re?Re+";":"")+vo.css),vo.startStyle&&oi.from==jt&&(Hn+=" "+vo.startStyle),vo.endStyle&&oi.to==Te&&(ki||(ki=[])).push(vo.endStyle,oi.to),vo.title&&((xi||(xi={})).title=vo.title),vo.attributes)for(var jr in vo.attributes)(xi||(xi={}))[jr]=vo.attributes[jr];vo.collapsed&&(!$n||na($n.marker,vo)<0)&&($n=oi)}else oi.from>jt&&Te>oi.from&&(Te=oi.from)}if(ki)for(var bs=0;bs=zt)break;for(var _a=Math.min(zt,Te);;){if(xe){var xa=jt+xe.length;if(!$n){var Ns=xa>_a?xe.slice(0,_a-jt):xe;st.addToken(st,Ns,Xt?Xt+Pn:Pn,Hn,jt+Ns.length==Te?Nn:"",Re,xi)}if(xa>=_a){xe=xe.slice(_a-jt),jt=_a;break}jt=xa,Hn=""}xe=ft.slice(Pt,Pt=dt[Zt++]),Xt=Ql(dt[Zt++],st.cm.options)}}}function gl(it,st,dt){this.line=st,this.rest=Ea(st),this.size=this.rest?ie(re(this.rest))-dt+1:1,this.node=this.text=null,this.hidden=tn(it,st)}function Ko(it,st,dt){for(var ht=[],ft,Pt=st;Pt2&&Pt.push((jt.bottom+Zt.top)/2-dt.top)}}Pt.push(dt.bottom-dt.top)}}function Yi(it,st,dt){if(it.line==st)return{map:it.measure.map,cache:it.measure.cache};for(var ht=0;htdt)return{map:it.measure.maps[ft],cache:it.measure.caches[ft],before:!0}}function to(it,st){st=tr(st);var dt=ie(st),ht=it.display.externalMeasured=new gl(it.doc,st,dt);ht.lineN=dt;var ft=ht.built=Me(it,ht);return ht.text=ft.pre,ee(it.display.lineMeasure,ft.pre),ht}function No(it,st,dt,ht){return Yo(it,Oo(it,st),dt,ht)}function Bi(it,st){if(st>=it.display.viewFrom&&st=dt.lineN&&stst)&&(Pt=jt-zt,ft=Pt-1,st>=jt&&(Nt="right")),ft!=null){if(ht=it[Zt+2],zt==jt&&dt==(ht.insertLeft?"left":"right")&&(Nt=dt),dt=="left"&&ft==0)for(;Zt&&it[Zt-2]==it[Zt-3]&&it[Zt-1].insertLeft;)ht=it[(Zt-=3)+2],Nt="left";if(dt=="right"&&ft==jt-zt)for(;Zt=0&&(dt=it[ft]).left==dt.right;ft--);return dt}function Dr(it,st,dt,ht){var ft=_r(st.map,dt,ht),Pt=ft.node,Nt=ft.start,zt=ft.end,jt=ft.collapse,Zt;if(Pt.nodeType==3){for(var xe=0;xe<4;xe++){for(;Nt&&ze(st.line.text.charAt(ft.coverStart+Nt));)--Nt;for(;ft.coverStart+zt0&&(jt=ht="right");var Xt;it.options.lineWrapping&&(Xt=Pt.getClientRects()).length>1?Zt=Xt[ht=="right"?Xt.length-1:0]:Zt=Pt.getBoundingClientRect()}if(me&&Ee<9&&!Nt&&(!Zt||!Zt.left&&!Zt.right)){var Re=Pt.parentNode.getClientRects()[0];Re?Zt={left:Re.left,right:Re.left+Zr(it.display),top:Re.top,bottom:Re.bottom}:Zt=ws}for(var Te=Zt.top-st.rect.top,Pn=Zt.bottom-st.rect.top,Nn=(Te+Pn)/2,Hn=st.view.measure.heights,$n=0;$n=ht.text.length?(jt=ht.text.length,Zt="before"):jt<=0&&(jt=0,Zt="after"),!zt)return Nt(Zt=="before"?jt-1:jt,Zt=="before");function xe(Pn,Nn,Hn){var $n=zt[Nn],xi=$n.level==1;return Nt(Hn?Pn-1:Pn,xi!=Hn)}var Xt=xt(zt,jt,Zt),Re=Mt,Te=xe(jt,Xt,Zt=="before");return Re!=null&&(Te.other=xe(jt,Re,Zt!="before")),Te}function Di(it,st){var dt=0;st=ui(it.doc,st),it.options.lineWrapping||(dt=Zr(it.display)*st.ch);var ht=An(it.doc,st.line),ft=oo(ht)+Bs(it.display);return{left:dt,right:dt,top:ft,bottom:ft+ht.height}}function er(it,st,dt,ht,ft){var Pt=ke(it,st,dt);return Pt.xRel=ft,ht&&(Pt.outside=ht),Pt}function Ps(it,st,dt){var ht=it.doc;if(dt+=it.display.viewOffset,dt<0)return er(ht.first,0,null,-1,-1);var ft=yn(ht,dt),Pt=ht.first+ht.size-1;if(ft>Pt)return er(ht.first+ht.size-1,An(ht,Pt).text.length,null,1,1);st<0&&(st=0);for(var Nt=An(ht,ft);;){var zt=He(it,Nt,ft,st,dt),jt=Eu(Nt,zt.ch+(zt.xRel>0||zt.outside>0?1:0));if(!jt)return zt;var Zt=jt.find(1);if(Zt.line==ft)return Zt;Nt=An(ht,ft=Zt.line)}}function In(it,st,dt,ht){ht-=Si(st);var ft=st.text.length,Pt=sn(function(Nt){return Yo(it,dt,Nt-1).bottom<=ht},ft,0);return ft=sn(function(Nt){return Yo(it,dt,Nt).top>ht},Pt,ft),{begin:Pt,end:ft}}function ro(it,st,dt,ht){dt||(dt=Oo(it,st));var ft=Oi(it,st,Yo(it,dt,ht),"line").top;return In(it,st,dt,ft)}function Jt(it,st,dt,ht){return it.bottom<=dt?!1:it.top>dt?!0:(ht?it.left:it.right)>st}function He(it,st,dt,ht,ft){ft-=oo(st);var Pt=Oo(it,st),Nt=Si(st),zt=0,jt=st.text.length,Zt=!0,xe=Ut(st,it.doc.direction);if(xe){var Xt=(it.options.lineWrapping?Na:ls)(it,st,dt,Pt,xe,ht,ft);Zt=Xt.level!=1,zt=Zt?Xt.from:Xt.to-1,jt=Zt?Xt.to:Xt.from-1}var Re=null,Te=null,Pn=sn(function(Xi){var oi=Yo(it,Pt,Xi);return oi.top+=Nt,oi.bottom+=Nt,Jt(oi,ht,ft,!1)?(oi.top<=ft&&oi.left<=ht&&(Re=Xi,Te=oi),!0):!1},zt,jt),Nn,Hn,$n=!1;if(Te){var xi=ht-Te.left=ki.bottom?1:0}return Pn=fn(st.text,Pn,1),er(dt,Pn,Hn,$n,ht-Nn)}function ls(it,st,dt,ht,ft,Pt,Nt){var zt=sn(function(Xt){var Re=ft[Xt],Te=Re.level!=1;return Jt(Mn(it,ke(dt,Te?Re.to:Re.from,Te?"before":"after"),"line",st,ht),Pt,Nt,!0)},0,ft.length-1),jt=ft[zt];if(zt>0){var Zt=jt.level!=1,xe=Mn(it,ke(dt,Zt?jt.from:jt.to,Zt?"after":"before"),"line",st,ht);Jt(xe,Pt,Nt,!0)&&xe.top>Nt&&(jt=ft[zt-1])}return jt}function Na(it,st,dt,ht,ft,Pt,Nt){var zt=In(it,st,ht,Nt),jt=zt.begin,Zt=zt.end;/\s/.test(st.text.charAt(Zt-1))&&Zt--;for(var xe=null,Xt=null,Re=0;Re=Zt||Te.to<=jt)){var Pn=Te.level!=1,Nn=Yo(it,ht,Pn?Math.min(Zt,Te.to)-1:Math.max(jt,Te.from)).right,Hn=NnHn)&&(xe=Te,Xt=Hn)}}return xe||(xe=ft[ft.length-1]),xe.fromZt&&(xe={from:xe.from,to:Zt,level:xe.level}),xe}var Jo;function Gr(it){if(it.cachedTextHeight!=null)return it.cachedTextHeight;if(Jo==null){Jo=te("pre",null,"CodeMirror-line-like");for(var st=0;st<49;++st)Jo.appendChild(document.createTextNode("x")),Jo.appendChild(te("br"));Jo.appendChild(document.createTextNode("x"))}ee(it.measure,Jo);var dt=Jo.offsetHeight/50;return dt>3&&(it.cachedTextHeight=dt),$t(it.measure),dt||1}function Zr(it){if(it.cachedCharWidth!=null)return it.cachedCharWidth;var st=te("span","xxxxxxxxxx"),dt=te("pre",[st],"CodeMirror-line-like");ee(it.measure,dt);var ht=st.getBoundingClientRect(),ft=(ht.right-ht.left)/10;return ft>2&&(it.cachedCharWidth=ft),ft||10}function Ho(it){for(var st=it.display,dt={},ht={},ft=st.gutters.clientLeft,Pt=st.gutters.firstChild,Nt=0;Pt;Pt=Pt.nextSibling,++Nt){var zt=it.display.gutterSpecs[Nt].className;dt[zt]=Pt.offsetLeft+Pt.clientLeft+ft,ht[zt]=Pt.clientWidth}return{fixedPos:Qr(st),gutterTotalWidth:st.gutters.offsetWidth,gutterLeft:dt,gutterWidth:ht,wrapperWidth:st.wrapper.clientWidth}}function Qr(it){return it.scroller.getBoundingClientRect().left-it.sizer.getBoundingClientRect().left}function Zo(it){var st=Gr(it.display),dt=it.options.lineWrapping,ht=dt&&Math.max(5,it.display.scroller.clientWidth/Zr(it.display)-3);return function(ft){if(tn(it.doc,ft))return 0;var Pt=0;if(ft.widgets)for(var Nt=0;Nt0&&(Zt=An(it.doc,jt.line).text).length==jt.ch){var xe=Vt(Zt,Zt.length,it.options.tabSize)-Zt.length;jt=ke(jt.line,Math.max(0,Math.round((Pt-Ge(it.display).left)/Zr(it.display))-xe))}return jt}function zo(it,st){if(st>=it.display.viewTo||(st-=it.display.viewFrom,st<0))return null;for(var dt=it.display.view,ht=0;htst)&&(ft.updateLineNumbers=st),it.curOp.viewChanged=!0,st>=ft.viewTo)Je&&Ti(it.doc,st)ft.viewFrom?Uo(it):(ft.viewFrom+=ht,ft.viewTo+=ht);else if(st<=ft.viewFrom&&dt>=ft.viewTo)Uo(it);else if(st<=ft.viewFrom){var Pt=Fr(it,dt,dt+ht,1);Pt?(ft.view=ft.view.slice(Pt.index),ft.viewFrom=Pt.lineN,ft.viewTo+=ht):Uo(it)}else if(dt>=ft.viewTo){var Nt=Fr(it,st,st,-1);Nt?(ft.view=ft.view.slice(0,Nt.index),ft.viewTo=Nt.lineN):Uo(it)}else{var zt=Fr(it,st,st,-1),jt=Fr(it,dt,dt+ht,1);zt&&jt?(ft.view=ft.view.slice(0,zt.index).concat(Ko(it,zt.lineN,jt.lineN)).concat(ft.view.slice(jt.index)),ft.viewTo+=ht):Uo(it)}var Zt=ft.externalMeasured;Zt&&(dt=ft.lineN&&st=ht.viewTo)){var Pt=ht.view[zo(it,st)];if(Pt.node!=null){var Nt=Pt.changes||(Pt.changes=[]);ne(Nt,dt)==-1&&Nt.push(dt)}}}function Uo(it){it.display.viewFrom=it.display.viewTo=it.doc.first,it.display.view=[],it.display.viewOffset=0}function Fr(it,st,dt,ht){var ft=zo(it,st),Pt,Nt=it.display.view;if(!Je||dt==it.doc.first+it.doc.size)return{index:ft,lineN:dt};for(var zt=it.display.viewFrom,jt=0;jt0){if(ft==Nt.length-1)return null;Pt=zt+Nt[ft].size-st,ft++}else Pt=zt-st;st+=Pt,dt+=Pt}for(;Ti(it.doc,dt)!=dt;){if(ft==(ht<0?0:Nt.length-1))return null;dt+=ht*Nt[ft-(ht<0?1:0)].size,ft+=ht}return{index:ft,lineN:dt}}function Bo(it,st,dt){var ht=it.display,ft=ht.view;ft.length==0||st>=ht.viewTo||dt<=ht.viewFrom?(ht.view=Ko(it,st,dt),ht.viewFrom=st):(ht.viewFrom>st?ht.view=Ko(it,st,ht.viewFrom).concat(ht.view):ht.viewFromdt&&(ht.view=ht.view.slice(0,zo(it,dt)))),ht.viewTo=dt}function Us(it){for(var st=it.display.view,dt=0,ht=0;ht=it.display.viewTo||zt.to().line1}var ta={},ss={};function ea(it,st){arguments.length>2&&(st.dependencies=Array.prototype.slice.call(arguments,2)),ta[it]=st}function Tn(it,st){ss[it]=st}function Qn(it){if(typeof it=="string"&&ss.hasOwnProperty(it))it=ss[it];else if(it&&typeof it.name=="string"&&ss.hasOwnProperty(it.name)){var st=ss[it.name];typeof st=="string"&&(st={name:st}),it=Un(st,it),it.name=st.name}else{if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(it))return Qn("application/xml");if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(it))return Qn("application/json")}return typeof it=="string"?{name:it}:it||{name:"null"}}function we(it,st){st=Qn(st);var dt=ta[st.name];if(!dt)return we(it,"text/plain");var ht=dt(it,st);if(pe.hasOwnProperty(st.name)){var ft=pe[st.name];for(var Pt in ft)ft.hasOwnProperty(Pt)&&(ht.hasOwnProperty(Pt)&&(ht["_"+Pt]=ht[Pt]),ht[Pt]=ft[Pt])}if(ht.name=st.name,st.helperType&&(ht.helperType=st.helperType),st.modeProps)for(var Nt in st.modeProps)ht[Nt]=st.modeProps[Nt];return ht}var pe={};function fe(it,st){var dt=pe.hasOwnProperty(it)?pe[it]:pe[it]={};vn(st,dt)}function Bn(it,st){if(st===!0)return st;if(it.copyState)return it.copyState(st);var dt={};for(var ht in st){var ft=st[ht];ft instanceof Array&&(ft=ft.concat([])),dt[ht]=ft}return dt}function zn(it,st){for(var dt;it.innerMode&&(dt=it.innerMode(st),!(!dt||dt.mode==it));)st=dt.state,it=dt.mode;return dt||{mode:it,state:st}}function Wn(it,st,dt){return it.startState?it.startState(st,dt):!0}var be=function(it,st,dt){this.pos=this.start=0,this.string=it,this.tabSize=st||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=dt};be.prototype.eol=function(){return this.pos>=this.string.length},be.prototype.sol=function(){return this.pos==this.lineStart},be.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},be.prototype.next=function(){if(this.posst},be.prototype.eatSpace=function(){for(var it=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>it},be.prototype.skipToEnd=function(){this.pos=this.string.length},be.prototype.skipTo=function(it){var st=this.string.indexOf(it,this.pos);if(st>-1)return this.pos=st,!0},be.prototype.backUp=function(it){this.pos-=it},be.prototype.column=function(){return this.lastColumnPos0?null:(Pt&&st!==!1&&(this.pos+=Pt[0].length),Pt)}},be.prototype.current=function(){return this.string.slice(this.start,this.pos)},be.prototype.hideFirstChars=function(it,st){this.lineStart+=it;try{return st()}finally{this.lineStart-=it}},be.prototype.lookAhead=function(it){var st=this.lineOracle;return st&&st.lookAhead(it)},be.prototype.baseToken=function(){var it=this.lineOracle;return it&&it.baseToken(this.pos)};function An(it,st){if(st-=it.first,st<0||st>=it.size)throw new Error("There is no line "+(st+it.first)+" in the document.");for(var dt=it;!dt.lines;)for(var ht=0;;++ht){var ft=dt.children[ht],Pt=ft.chunkSize();if(st=it.first&&stdt?ke(dt,An(it,dt).text.length):yo(st,An(it,st.line).text.length)}function yo(it,st){var dt=it.ch;return dt==null||dt>st?ke(it.line,st):dt<0?ke(it.line,0):it}function cr(it,st){for(var dt=[],ht=0;htthis.maxLookAhead&&(this.maxLookAhead=it),st},Xe.prototype.baseToken=function(it){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=it;)this.baseTokenPos+=2;var st=this.baseTokens[this.baseTokenPos+1];return{type:st&&st.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-it}},Xe.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Xe.fromSaved=function(it,st,dt){return st instanceof Vo?new Xe(it,Bn(it.mode,st.state),dt,st.lookAhead):new Xe(it,Bn(it.mode,st),dt)},Xe.prototype.save=function(it){var st=it!==!1?Bn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Vo(st,this.maxLookAhead):st};function _o(it,st,dt,ht){var ft=[it.state.modeGen],Pt={};To(it,st.text,it.doc.mode,dt,function(Zt,xe){return ft.push(Zt,xe)},Pt,ht);for(var Nt=dt.state,zt=function(Zt){dt.baseTokens=ft;var xe=it.state.overlays[Zt],Xt=1,Re=0;dt.state=!0,To(it,st.text,xe.mode,dt,function(Te,Pn){for(var Nn=Xt;ReTe&&ft.splice(Xt,1,Te,ft[Xt+1],Hn),Xt+=2,Re=Math.min(Te,Hn)}if(Pn)if(xe.opaque)ft.splice(Nn,Xt-Nn,Te,"overlay "+Pn),Xt=Nn+2;else for(;Nnit.options.maxHighlightLength&&Bn(it.doc.mode,ht.state),Pt=_o(it,st,ht);ft&&(ht.state=ft),st.stateAfter=ht.save(!ft),st.styles=Pt.styles,Pt.classes?st.styleClasses=Pt.classes:st.styleClasses&&(st.styleClasses=null),dt===it.doc.highlightFrontier&&(it.doc.modeFrontier=Math.max(it.doc.modeFrontier,++it.doc.highlightFrontier))}return st.styles}function io(it,st,dt){var ht=it.doc,ft=it.display;if(!ht.mode.startState)return new Xe(ht,!0,st);var Pt=ho(it,st,dt),Nt=Pt>ht.first&&An(ht,Pt-1).stateAfter,zt=Nt?Xe.fromSaved(ht,Nt,Pt):new Xe(ht,Wn(ht.mode),Pt);return ht.iter(Pt,st,function(jt){je(it,jt.text,zt);var Zt=zt.line;jt.stateAfter=Zt==st-1||Zt%5==0||Zt>=ft.viewFrom&&Ztst.start)return Pt}throw new Error("Mode "+it.name+" failed to advance stream.")}var mi=function(it,st,dt){this.start=it.start,this.end=it.pos,this.string=it.current(),this.type=st||null,this.state=dt};function fi(it,st,dt,ht){var ft=it.doc,Pt=ft.mode,Nt;st=ui(ft,st);var zt=An(ft,st.line),jt=io(it,st.line,dt),Zt=new be(zt.text,it.options.tabSize,jt),xe;for(ht&&(xe=[]);(ht||Zt.posit.options.maxHighlightLength?(zt=!1,Nt&&je(it,st,ht,xe.pos),xe.pos=st.length,Xt=null):Xt=qi(di(dt,xe,ht.state,Re),Pt),Re){var Te=Re[0].name;Te&&(Xt="m-"+(Xt?Te+" "+Xt:Te))}if(!zt||Zt!=Xt){for(;jtNt;--zt){if(zt<=Pt.first)return Pt.first;var jt=An(Pt,zt-1),Zt=jt.stateAfter;if(Zt&&(!dt||zt+(Zt instanceof Vo?Zt.lookAhead:0)<=Pt.modeFrontier))return zt;var xe=Vt(jt.text,null,it.options.tabSize);(ft==null||ht>xe)&&(ft=zt-1,ht=xe)}return ft}function co(it,st){if(it.modeFrontier=Math.min(it.modeFrontier,st),!(it.highlightFrontierdt;ht--){var ft=An(it,ht).stateAfter;if(ft&&(!(ft instanceof Vo)||ht+ft.lookAhead=st:Pt.to>st);(ht||(ht=[])).push(new Lo(Nt,Pt.from,jt?null:Pt.to))}}return ht}function cn(it,st,dt){var ht;if(it)for(var ft=0;ft=st:Pt.to>st);if(zt||Pt.from==st&&Nt.type=="bookmark"&&(!dt||Pt.marker.insertLeft)){var jt=Pt.from==null||(Nt.inclusiveLeft?Pt.from<=st:Pt.from0&&zt)for(var ki=0;ki0)){var xe=[jt,1],Xt=an(Zt.from,zt.from),Re=an(Zt.to,zt.to);(Xt<0||!Nt.inclusiveLeft&&!Xt)&&xe.push({from:Zt.from,to:zt.from}),(Re>0||!Nt.inclusiveRight&&!Re)&&xe.push({from:zt.to,to:Zt.to}),ft.splice.apply(ft,xe),jt+=xe.length-3}}return ft}function Vn(it){var st=it.markedSpans;if(st){for(var dt=0;dtst)&&(!ht||na(ht,Pt.marker)<0)&&(ht=Pt.marker)}return ht}function Zl(it,st,dt,ht,ft){var Pt=An(it,st),Nt=Je&&Pt.markedSpans;if(Nt)for(var zt=0;zt=0&&Xt<=0||xe<=0&&Xt>=0)&&(xe<=0&&(jt.marker.inclusiveRight&&ft.inclusiveLeft?an(Zt.to,dt)>=0:an(Zt.to,dt)>0)||xe>=0&&(jt.marker.inclusiveRight&&ft.inclusiveLeft?an(Zt.from,ht)<=0:an(Zt.from,ht)<0)))return!0}}}function tr(it){for(var st;st=kl(it);)it=st.find(-1,!0).line;return it}function gr(it){for(var st;st=ga(it);)it=st.find(1,!0).line;return it}function Ea(it){for(var st,dt;st=ga(it);)it=st.find(1,!0).line,(dt||(dt=[])).push(it);return dt}function Ti(it,st){var dt=An(it,st),ht=tr(dt);return dt==ht?st:ie(ht)}function ci(it,st){if(st>it.lastLine())return st;var dt=An(it,st),ht;if(!tn(it,dt))return st;for(;ht=ga(dt);)dt=ht.find(1,!0).line;return ie(dt)+1}function tn(it,st){var dt=Je&&st.markedSpans;if(dt){for(var ht=void 0,ft=0;ftst.maxLineLength&&(st.maxLineLength=ft,st.maxLine=ht)})}var pr=function(it,st,dt){this.text=it,Rt(this,st),this.height=dt?dt(this):1};pr.prototype.lineNo=function(){return ie(this)},wi(pr);function Rr(it,st,dt,ht){it.text=st,it.stateAfter&&(it.stateAfter=null),it.styles&&(it.styles=null),it.order!=null&&(it.order=null),Vn(it),Rt(it,dt);var ft=ht?ht(it):1;ft!=it.height&&Ki(it,ft)}function Sr(it){it.parent=null,Vn(it)}var Ga={},fa={};function Ql(it,st){if(!it||/^\s*$/.test(it))return null;var dt=st.addModeClass?fa:Ga;return dt[it]||(dt[it]=it.replace(/\S+/g,"cm-$&"))}function Me(it,st){var dt=Pe("span",null,null,qt?"padding-right: .1px":null),ht={pre:Pe("pre",[dt],"CodeMirror-line"),content:dt,col:0,pos:0,cm:it,trailingSpace:!1,splitSpaces:it.getOption("lineWrapping")};st.measure={};for(var ft=0;ft<=(st.rest?st.rest.length:0);ft++){var Pt=ft?st.rest[ft-1]:st.line,Nt=void 0;ht.pos=0,ht.addToken=Au,dr(it.display.measure)&&(Nt=Ut(Pt,it.doc.direction))&&(ht.addToken=au(ht.addToken,Nt)),ht.map=[];var zt=st!=it.display.externalMeasured&&ie(Pt);Dl(Pt,ht,Do(it,Pt,zt)),Pt.styleClasses&&(Pt.styleClasses.bgClass&&(ht.bgClass=Ie(Pt.styleClasses.bgClass,ht.bgClass||"")),Pt.styleClasses.textClass&&(ht.textClass=Ie(Pt.styleClasses.textClass,ht.textClass||""))),ht.map.length==0&&ht.map.push(0,0,ht.content.appendChild(fo(it.display.measure))),ft==0?(st.measure.map=ht.map,st.measure.cache={}):((st.measure.maps||(st.measure.maps=[])).push(ht.map),(st.measure.caches||(st.measure.caches=[])).push({}))}if(qt){var jt=ht.content.lastChild;(/\bcm-tab\b/.test(jt.className)||jt.querySelector&&jt.querySelector(".cm-tab"))&&(ht.content.className="cm-tab-wrap-hack")}return pn(it,"renderLine",it,st.line,ht.pre),ht.pre.className&&(ht.textClass=Ie(ht.pre.className,ht.textClass||"")),ht}function Ts(it){var st=te("span","\u2022","cm-invalidchar");return st.title="\\u"+it.charCodeAt(0).toString(16),st.setAttribute("aria-label",st.title),st}function Au(it,st,dt,ht,ft,Pt,Nt){if(st){var zt=it.splitSpaces?qa(st,it.trailingSpace):st,jt=it.cm.state.specialChars,Zt=!1,xe;if(!jt.test(st))it.col+=st.length,xe=document.createTextNode(zt),it.map.push(it.pos,it.pos+st.length,xe),me&&Ee<9&&(Zt=!0),it.pos+=st.length;else{xe=document.createDocumentFragment();for(var Xt=0;;){jt.lastIndex=Xt;var Re=jt.exec(st),Te=Re?Re.index-Xt:st.length-Xt;if(Te){var Pn=document.createTextNode(zt.slice(Xt,Xt+Te));me&&Ee<9?xe.appendChild(te("span",[Pn])):xe.appendChild(Pn),it.map.push(it.pos,it.pos+Te,Pn),it.col+=Te,it.pos+=Te}if(!Re)break;Xt+=Te+1;var Nn=void 0;if(Re[0]==" "){var Hn=it.cm.options.tabSize,$n=Hn-it.col%Hn;Nn=xe.appendChild(te("span",xn($n),"cm-tab")),Nn.setAttribute("role","presentation"),Nn.setAttribute("cm-text"," "),it.col+=$n}else Re[0]=="\r"||Re[0]==` +`?(Nn=xe.appendChild(te("span",Re[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Nn.setAttribute("cm-text",Re[0]),it.col+=1):(Nn=it.cm.options.specialCharPlaceholder(Re[0]),Nn.setAttribute("cm-text",Re[0]),me&&Ee<9?xe.appendChild(te("span",[Nn])):xe.appendChild(Nn),it.col+=1);it.map.push(it.pos,it.pos+1,Nn),it.pos++}}if(it.trailingSpace=zt.charCodeAt(st.length-1)==32,dt||ht||ft||Zt||Pt||Nt){var xi=dt||"";ht&&(xi+=ht),ft&&(xi+=ft);var ai=te("span",[xe],xi,Pt);if(Nt)for(var ki in Nt)Nt.hasOwnProperty(ki)&&ki!="style"&&ki!="class"&&ai.setAttribute(ki,Nt[ki]);return it.content.appendChild(ai)}it.content.appendChild(xe)}}function qa(it,st){if(it.length>1&&!/ /.test(it))return it;for(var dt=st,ht="",ft=0;ftZt&&Xt.from<=Zt));Re++);if(Xt.to>=xe)return it(dt,ht,ft,Pt,Nt,zt,jt);it(dt,ht.slice(0,Xt.to-Zt),ft,Pt,null,zt,jt),Pt=null,ht=ht.slice(Xt.to-Zt),Zt=Xt.to}}}function Lr(it,st,dt,ht){var ft=!ht&&dt.widgetNode;ft&&it.map.push(it.pos,it.pos+st,ft),!ht&&it.cm.display.input.needsContentAttribute&&(ft||(ft=it.content.appendChild(document.createElement("span"))),ft.setAttribute("cm-marker",dt.id)),ft&&(it.cm.display.input.setUneditable(ft),it.content.appendChild(ft)),it.pos+=st,it.trailingSpace=!1}function Dl(it,st,dt){var ht=it.markedSpans,ft=it.text,Pt=0;if(!ht){for(var Nt=1;Ntjt||vo.collapsed&&oi.to==jt&&oi.from==jt)){if(oi.to!=null&&oi.to!=jt&&Te>oi.to&&(Te=oi.to,Nn=""),vo.className&&(Pn+=" "+vo.className),vo.css&&(Re=(Re?Re+";":"")+vo.css),vo.startStyle&&oi.from==jt&&(Hn+=" "+vo.startStyle),vo.endStyle&&oi.to==Te&&(ki||(ki=[])).push(vo.endStyle,oi.to),vo.title&&((xi||(xi={})).title=vo.title),vo.attributes)for(var jr in vo.attributes)(xi||(xi={}))[jr]=vo.attributes[jr];vo.collapsed&&(!$n||na($n.marker,vo)<0)&&($n=oi)}else oi.from>jt&&Te>oi.from&&(Te=oi.from)}if(ki)for(var Is=0;Is=zt)break;for(var _a=Math.min(zt,Te);;){if(xe){var xa=jt+xe.length;if(!$n){var Ns=xa>_a?xe.slice(0,_a-jt):xe;st.addToken(st,Ns,Xt?Xt+Pn:Pn,Hn,jt+Ns.length==Te?Nn:"",Re,xi)}if(xa>=_a){xe=xe.slice(_a-jt),jt=_a;break}jt=xa,Hn=""}xe=ft.slice(Pt,Pt=dt[Zt++]),Xt=Ql(dt[Zt++],st.cm.options)}}}function gl(it,st,dt){this.line=st,this.rest=Ea(st),this.size=this.rest?ie(re(this.rest))-dt+1:1,this.node=this.text=null,this.hidden=tn(it,st)}function Ko(it,st,dt){for(var ht=[],ft,Pt=st;Pt2&&Pt.push((jt.bottom+Zt.top)/2-dt.top)}}Pt.push(dt.bottom-dt.top)}}function Yi(it,st,dt){if(it.line==st)return{map:it.measure.map,cache:it.measure.cache};for(var ht=0;htdt)return{map:it.measure.maps[ft],cache:it.measure.caches[ft],before:!0}}function to(it,st){st=tr(st);var dt=ie(st),ht=it.display.externalMeasured=new gl(it.doc,st,dt);ht.lineN=dt;var ft=ht.built=Me(it,ht);return ht.text=ft.pre,ee(it.display.lineMeasure,ft.pre),ht}function No(it,st,dt,ht){return Yo(it,Oo(it,st),dt,ht)}function Bi(it,st){if(st>=it.display.viewFrom&&st=dt.lineN&&stst)&&(Pt=jt-zt,ft=Pt-1,st>=jt&&(Nt="right")),ft!=null){if(ht=it[Zt+2],zt==jt&&dt==(ht.insertLeft?"left":"right")&&(Nt=dt),dt=="left"&&ft==0)for(;Zt&&it[Zt-2]==it[Zt-3]&&it[Zt-1].insertLeft;)ht=it[(Zt-=3)+2],Nt="left";if(dt=="right"&&ft==jt-zt)for(;Zt=0&&(dt=it[ft]).left==dt.right;ft--);return dt}function Dr(it,st,dt,ht){var ft=_r(st.map,dt,ht),Pt=ft.node,Nt=ft.start,zt=ft.end,jt=ft.collapse,Zt;if(Pt.nodeType==3){for(var xe=0;xe<4;xe++){for(;Nt&&ze(st.line.text.charAt(ft.coverStart+Nt));)--Nt;for(;ft.coverStart+zt0&&(jt=ht="right");var Xt;it.options.lineWrapping&&(Xt=Pt.getClientRects()).length>1?Zt=Xt[ht=="right"?Xt.length-1:0]:Zt=Pt.getBoundingClientRect()}if(me&&Ee<9&&!Nt&&(!Zt||!Zt.left&&!Zt.right)){var Re=Pt.parentNode.getClientRects()[0];Re?Zt={left:Re.left,right:Re.left+Zr(it.display),top:Re.top,bottom:Re.bottom}:Zt=ws}for(var Te=Zt.top-st.rect.top,Pn=Zt.bottom-st.rect.top,Nn=(Te+Pn)/2,Hn=st.view.measure.heights,$n=0;$n=ht.text.length?(jt=ht.text.length,Zt="before"):jt<=0&&(jt=0,Zt="after"),!zt)return Nt(Zt=="before"?jt-1:jt,Zt=="before");function xe(Pn,Nn,Hn){var $n=zt[Nn],xi=$n.level==1;return Nt(Hn?Pn-1:Pn,xi!=Hn)}var Xt=xt(zt,jt,Zt),Re=Mt,Te=xe(jt,Xt,Zt=="before");return Re!=null&&(Te.other=xe(jt,Re,Zt!="before")),Te}function Di(it,st){var dt=0;st=ui(it.doc,st),it.options.lineWrapping||(dt=Zr(it.display)*st.ch);var ht=An(it.doc,st.line),ft=oo(ht)+Rs(it.display);return{left:dt,right:dt,top:ft,bottom:ft+ht.height}}function er(it,st,dt,ht,ft){var Pt=ke(it,st,dt);return Pt.xRel=ft,ht&&(Pt.outside=ht),Pt}function Ps(it,st,dt){var ht=it.doc;if(dt+=it.display.viewOffset,dt<0)return er(ht.first,0,null,-1,-1);var ft=yn(ht,dt),Pt=ht.first+ht.size-1;if(ft>Pt)return er(ht.first+ht.size-1,An(ht,Pt).text.length,null,1,1);st<0&&(st=0);for(var Nt=An(ht,ft);;){var zt=He(it,Nt,ft,st,dt),jt=Eu(Nt,zt.ch+(zt.xRel>0||zt.outside>0?1:0));if(!jt)return zt;var Zt=jt.find(1);if(Zt.line==ft)return Zt;Nt=An(ht,ft=Zt.line)}}function In(it,st,dt,ht){ht-=Si(st);var ft=st.text.length,Pt=sn(function(Nt){return Yo(it,dt,Nt-1).bottom<=ht},ft,0);return ft=sn(function(Nt){return Yo(it,dt,Nt).top>ht},Pt,ft),{begin:Pt,end:ft}}function ro(it,st,dt,ht){dt||(dt=Oo(it,st));var ft=Oi(it,st,Yo(it,dt,ht),"line").top;return In(it,st,dt,ft)}function Jt(it,st,dt,ht){return it.bottom<=dt?!1:it.top>dt?!0:(ht?it.left:it.right)>st}function He(it,st,dt,ht,ft){ft-=oo(st);var Pt=Oo(it,st),Nt=Si(st),zt=0,jt=st.text.length,Zt=!0,xe=Ut(st,it.doc.direction);if(xe){var Xt=(it.options.lineWrapping?Na:ls)(it,st,dt,Pt,xe,ht,ft);Zt=Xt.level!=1,zt=Zt?Xt.from:Xt.to-1,jt=Zt?Xt.to:Xt.from-1}var Re=null,Te=null,Pn=sn(function(Xi){var oi=Yo(it,Pt,Xi);return oi.top+=Nt,oi.bottom+=Nt,Jt(oi,ht,ft,!1)?(oi.top<=ft&&oi.left<=ht&&(Re=Xi,Te=oi),!0):!1},zt,jt),Nn,Hn,$n=!1;if(Te){var xi=ht-Te.left=ki.bottom?1:0}return Pn=fn(st.text,Pn,1),er(dt,Pn,Hn,$n,ht-Nn)}function ls(it,st,dt,ht,ft,Pt,Nt){var zt=sn(function(Xt){var Re=ft[Xt],Te=Re.level!=1;return Jt(Mn(it,ke(dt,Te?Re.to:Re.from,Te?"before":"after"),"line",st,ht),Pt,Nt,!0)},0,ft.length-1),jt=ft[zt];if(zt>0){var Zt=jt.level!=1,xe=Mn(it,ke(dt,Zt?jt.from:jt.to,Zt?"after":"before"),"line",st,ht);Jt(xe,Pt,Nt,!0)&&xe.top>Nt&&(jt=ft[zt-1])}return jt}function Na(it,st,dt,ht,ft,Pt,Nt){var zt=In(it,st,ht,Nt),jt=zt.begin,Zt=zt.end;/\s/.test(st.text.charAt(Zt-1))&&Zt--;for(var xe=null,Xt=null,Re=0;Re=Zt||Te.to<=jt)){var Pn=Te.level!=1,Nn=Yo(it,ht,Pn?Math.min(Zt,Te.to)-1:Math.max(jt,Te.from)).right,Hn=NnHn)&&(xe=Te,Xt=Hn)}}return xe||(xe=ft[ft.length-1]),xe.fromZt&&(xe={from:xe.from,to:Zt,level:xe.level}),xe}var Jo;function Gr(it){if(it.cachedTextHeight!=null)return it.cachedTextHeight;if(Jo==null){Jo=te("pre",null,"CodeMirror-line-like");for(var st=0;st<49;++st)Jo.appendChild(document.createTextNode("x")),Jo.appendChild(te("br"));Jo.appendChild(document.createTextNode("x"))}ee(it.measure,Jo);var dt=Jo.offsetHeight/50;return dt>3&&(it.cachedTextHeight=dt),$t(it.measure),dt||1}function Zr(it){if(it.cachedCharWidth!=null)return it.cachedCharWidth;var st=te("span","xxxxxxxxxx"),dt=te("pre",[st],"CodeMirror-line-like");ee(it.measure,dt);var ht=st.getBoundingClientRect(),ft=(ht.right-ht.left)/10;return ft>2&&(it.cachedCharWidth=ft),ft||10}function Ho(it){for(var st=it.display,dt={},ht={},ft=st.gutters.clientLeft,Pt=st.gutters.firstChild,Nt=0;Pt;Pt=Pt.nextSibling,++Nt){var zt=it.display.gutterSpecs[Nt].className;dt[zt]=Pt.offsetLeft+Pt.clientLeft+ft,ht[zt]=Pt.clientWidth}return{fixedPos:Qr(st),gutterTotalWidth:st.gutters.offsetWidth,gutterLeft:dt,gutterWidth:ht,wrapperWidth:st.wrapper.clientWidth}}function Qr(it){return it.scroller.getBoundingClientRect().left-it.sizer.getBoundingClientRect().left}function Zo(it){var st=Gr(it.display),dt=it.options.lineWrapping,ht=dt&&Math.max(5,it.display.scroller.clientWidth/Zr(it.display)-3);return function(ft){if(tn(it.doc,ft))return 0;var Pt=0;if(ft.widgets)for(var Nt=0;Nt0&&(Zt=An(it.doc,jt.line).text).length==jt.ch){var xe=Vt(Zt,Zt.length,it.options.tabSize)-Zt.length;jt=ke(jt.line,Math.max(0,Math.round((Pt-Ge(it.display).left)/Zr(it.display))-xe))}return jt}function zo(it,st){if(st>=it.display.viewTo||(st-=it.display.viewFrom,st<0))return null;for(var dt=it.display.view,ht=0;htst)&&(ft.updateLineNumbers=st),it.curOp.viewChanged=!0,st>=ft.viewTo)Je&&Ti(it.doc,st)ft.viewFrom?Uo(it):(ft.viewFrom+=ht,ft.viewTo+=ht);else if(st<=ft.viewFrom&&dt>=ft.viewTo)Uo(it);else if(st<=ft.viewFrom){var Pt=Fr(it,dt,dt+ht,1);Pt?(ft.view=ft.view.slice(Pt.index),ft.viewFrom=Pt.lineN,ft.viewTo+=ht):Uo(it)}else if(dt>=ft.viewTo){var Nt=Fr(it,st,st,-1);Nt?(ft.view=ft.view.slice(0,Nt.index),ft.viewTo=Nt.lineN):Uo(it)}else{var zt=Fr(it,st,st,-1),jt=Fr(it,dt,dt+ht,1);zt&&jt?(ft.view=ft.view.slice(0,zt.index).concat(Ko(it,zt.lineN,jt.lineN)).concat(ft.view.slice(jt.index)),ft.viewTo+=ht):Uo(it)}var Zt=ft.externalMeasured;Zt&&(dt=ft.lineN&&st=ht.viewTo)){var Pt=ht.view[zo(it,st)];if(Pt.node!=null){var Nt=Pt.changes||(Pt.changes=[]);ne(Nt,dt)==-1&&Nt.push(dt)}}}function Uo(it){it.display.viewFrom=it.display.viewTo=it.doc.first,it.display.view=[],it.display.viewOffset=0}function Fr(it,st,dt,ht){var ft=zo(it,st),Pt,Nt=it.display.view;if(!Je||dt==it.doc.first+it.doc.size)return{index:ft,lineN:dt};for(var zt=it.display.viewFrom,jt=0;jt0){if(ft==Nt.length-1)return null;Pt=zt+Nt[ft].size-st,ft++}else Pt=zt-st;st+=Pt,dt+=Pt}for(;Ti(it.doc,dt)!=dt;){if(ft==(ht<0?0:Nt.length-1))return null;dt+=ht*Nt[ft-(ht<0?1:0)].size,ft+=ht}return{index:ft,lineN:dt}}function Bo(it,st,dt){var ht=it.display,ft=ht.view;ft.length==0||st>=ht.viewTo||dt<=ht.viewFrom?(ht.view=Ko(it,st,dt),ht.viewFrom=st):(ht.viewFrom>st?ht.view=Ko(it,st,ht.viewFrom).concat(ht.view):ht.viewFromdt&&(ht.view=ht.view.slice(0,zo(it,dt)))),ht.viewTo=dt}function Us(it){for(var st=it.display.view,dt=0,ht=0;ht=it.display.viewTo||zt.to().line0?st.blinker=setInterval(function(){it.hasFocus()||Du(it),st.cursorDiv.style.visibility=(dt=!dt)?"":"hidden"},it.options.cursorBlinkRate):it.options.cursorBlinkRate<0&&(st.cursorDiv.style.visibility="hidden")}}function gi(it){it.state.focused||(it.display.input.focus(),ko(it))}function Ar(it){it.state.delayingBlurEvent=!0,setTimeout(function(){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1,Du(it))},100)}function ko(it,st){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1),it.options.readOnly!="nocursor"&&(it.state.focused||(pn(it,"focus",it,st),it.state.focused=!0,Ne(it.display.wrapper,"CodeMirror-focused"),!it.curOp&&it.display.selForContextMenu!=it.doc.sel&&(it.display.input.reset(),qt&&setTimeout(function(){return it.display.input.reset(!0)},20)),it.display.input.receivedFocus()),mn(it))}function Du(it,st){it.state.delayingBlurEvent||(it.state.focused&&(pn(it,"blur",it,st),it.state.focused=!1,Yt(it.display.wrapper,"CodeMirror-focused")),clearInterval(it.display.blinker),setTimeout(function(){it.state.focused||(it.display.shift=!1)},150))}function si(it){for(var st=it.display,dt=st.lineDiv.offsetTop,ht=0;ht.005||xe<-.005)&&(Ki(ft.line,Nt),Wd(ft.line),ft.rest))for(var Xt=0;Xtit.display.sizerWidth){var Re=Math.ceil(zt/Zr(it.display));Re>it.display.maxLineLength&&(it.display.maxLineLength=Re,it.display.maxLine=ft.line,it.display.maxLineChanged=!0)}}}}function Wd(it){if(it.widgets)for(var st=0;st=Nt&&(Pt=yn(st,oo(An(st,jt))-it.wrapper.clientHeight),Nt=jt)}return{from:Pt,to:Math.max(Nt,Pt+1)}}function Yd(it,st){if(!Rn(it,"scrollCursorIntoView")){var dt=it.display,ht=dt.sizer.getBoundingClientRect(),ft=null;if(st.top+ht.top<0?ft=!0:st.bottom+ht.top>(window.innerHeight||document.documentElement.clientHeight)&&(ft=!1),ft!=null&&!_e){var Pt=te("div","\u200B",null,`position: absolute; - top: `+(st.top-dt.viewOffset-Bs(it.display))+`px; + height: `+(oi-ki)+"px"))}function Xt(ai,ki,Xi){var oi=An(ft,ai),vo=oi.text.length,jr,Is;function Jr(Ns,ol){return ei(it,ke(ai,Ns),"div",oi,ol)}function _a(Ns,ol,sa){var ks=ro(it,oi,null,Ns),Xo=ol=="ltr"==(sa=="after")?"left":"right",ns=sa=="after"?ks.begin:ks.end-(/\s/.test(oi.text.charAt(ks.end-1))?2:1);return Jr(ns,Xo)[Xo]}var xa=Ut(oi,ft.direction);return Bt(xa,ki||0,Xi==null?vo:Xi,function(Ns,ol,sa,ks){var Xo=sa=="ltr",ns=Jr(Ns,Xo?"left":"right"),Ws=Jr(ol-1,Xo?"right":"left"),aa=ki==null&&Ns==0,Jl=Xi==null&&ol==vo,qr=ks==0,zl=!xa||ks==xa.length-1;if(Ws.top-ns.top<=3){var rs=(Zt?aa:Jl)&&qr,Gc=(Zt?Jl:aa)&&zl,wl=rs?zt:(Xo?ns:Ws).left,rl=Gc?jt:(Xo?Ws:ns).right;xe(wl,ns.top,rl-wl,ns.bottom)}else{var Za,wr,Ys,Ou;Xo?(Za=Zt&&aa&&qr?zt:ns.left,wr=Zt?jt:_a(Ns,sa,"before"),Ys=Zt?zt:_a(ol,sa,"after"),Ou=Zt&&Jl&&zl?jt:Ws.right):(Za=Zt?_a(Ns,sa,"before"):zt,wr=!Zt&&aa&&qr?jt:ns.right,Ys=!Zt&&Jl&&zl?zt:Ws.left,Ou=Zt?_a(ol,sa,"after"):jt),xe(Za,ns.top,wr-Za,ns.bottom),ns.bottom0?st.blinker=setInterval(function(){it.hasFocus()||Du(it),st.cursorDiv.style.visibility=(dt=!dt)?"":"hidden"},it.options.cursorBlinkRate):it.options.cursorBlinkRate<0&&(st.cursorDiv.style.visibility="hidden")}}function gi(it){it.state.focused||(it.display.input.focus(),ko(it))}function Ar(it){it.state.delayingBlurEvent=!0,setTimeout(function(){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1,Du(it))},100)}function ko(it,st){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1),it.options.readOnly!="nocursor"&&(it.state.focused||(pn(it,"focus",it,st),it.state.focused=!0,Ne(it.display.wrapper,"CodeMirror-focused"),!it.curOp&&it.display.selForContextMenu!=it.doc.sel&&(it.display.input.reset(),qt&&setTimeout(function(){return it.display.input.reset(!0)},20)),it.display.input.receivedFocus()),mn(it))}function Du(it,st){it.state.delayingBlurEvent||(it.state.focused&&(pn(it,"blur",it,st),it.state.focused=!1,Yt(it.display.wrapper,"CodeMirror-focused")),clearInterval(it.display.blinker),setTimeout(function(){it.state.focused||(it.display.shift=!1)},150))}function si(it){for(var st=it.display,dt=st.lineDiv.offsetTop,ht=0;ht.005||xe<-.005)&&(Ki(ft.line,Nt),Wd(ft.line),ft.rest))for(var Xt=0;Xtit.display.sizerWidth){var Re=Math.ceil(zt/Zr(it.display));Re>it.display.maxLineLength&&(it.display.maxLineLength=Re,it.display.maxLine=ft.line,it.display.maxLineChanged=!0)}}}}function Wd(it){if(it.widgets)for(var st=0;st=Nt&&(Pt=yn(st,oo(An(st,jt))-it.wrapper.clientHeight),Nt=jt)}return{from:Pt,to:Math.max(Nt,Pt+1)}}function Yd(it,st){if(!Rn(it,"scrollCursorIntoView")){var dt=it.display,ht=dt.sizer.getBoundingClientRect(),ft=null;if(st.top+ht.top<0?ft=!0:st.bottom+ht.top>(window.innerHeight||document.documentElement.clientHeight)&&(ft=!1),ft!=null&&!_e){var Pt=te("div","\u200B",null,`position: absolute; + top: `+(st.top-dt.viewOffset-Rs(it.display))+`px; height: `+(st.bottom-st.top+Gs(it)+dt.barHeight)+`px; - left: `+st.left+"px; width: "+Math.max(2,st.right-st.left)+"px;");it.display.lineSpace.appendChild(Pt),Pt.scrollIntoView(ft),it.display.lineSpace.removeChild(Pt)}}}function Fu(it,st,dt,ht){ht==null&&(ht=0);var ft;!it.options.lineWrapping&&st==dt&&(st=st.ch?ke(st.line,st.sticky=="before"?st.ch-1:st.ch,"after"):st,dt=st.sticky=="before"?ke(st.line,st.ch+1,"before"):st);for(var Pt=0;Pt<5;Pt++){var Nt=!1,zt=Mn(it,st),jt=!dt||dt==st?zt:Mn(it,dt);ft={left:Math.min(zt.left,jt.left),top:Math.min(zt.top,jt.top)-ht,right:Math.max(zt.left,jt.left),bottom:Math.max(zt.bottom,jt.bottom)+ht};var Zt=uu(it,ft),xe=it.doc.scrollTop,Xt=it.doc.scrollLeft;if(Zt.scrollTop!=null&&(Ms(it,Zt.scrollTop),Math.abs(it.doc.scrollTop-xe)>1&&(Nt=!0)),Zt.scrollLeft!=null&&(us(it,Zt.scrollLeft),Math.abs(it.doc.scrollLeft-Xt)>1&&(Nt=!0)),!Nt)break}return ft}function Tl(it,st){var dt=uu(it,st);dt.scrollTop!=null&&Ms(it,dt.scrollTop),dt.scrollLeft!=null&&us(it,dt.scrollLeft)}function uu(it,st){var dt=it.display,ht=Gr(it.display);st.top<0&&(st.top=0);var ft=it.curOp&&it.curOp.scrollTop!=null?it.curOp.scrollTop:dt.scroller.scrollTop,Pt=qe(it),Nt={};st.bottom-st.top>Pt&&(st.bottom=st.top+Pt);var zt=it.doc.height+Fl(dt),jt=st.topzt-ht;if(st.topft+Pt){var xe=Math.min(st.top,(Zt?zt:st.bottom)-Pt);xe!=ft&&(Nt.scrollTop=xe)}var Xt=it.options.fixedGutter?0:dt.gutters.offsetWidth,Re=it.curOp&&it.curOp.scrollLeft!=null?it.curOp.scrollLeft:dt.scroller.scrollLeft-Xt,Te=Ua(it)-dt.gutters.offsetWidth,Pn=st.right-st.left>Te;return Pn&&(st.right=st.left+Te),st.left<10?Nt.scrollLeft=0:st.leftTe+Re-3&&(Nt.scrollLeft=st.right+(Pn?0:10)-Te),Nt}function hu(it,st){st!=null&&(Bl(it),it.curOp.scrollTop=(it.curOp.scrollTop==null?it.doc.scrollTop:it.curOp.scrollTop)+st)}function tl(it){Bl(it);var st=it.getCursor();it.curOp.scrollToPos={from:st,to:st,margin:it.options.cursorScrollMargin}}function fl(it,st,dt){(st!=null||dt!=null)&&Bl(it),st!=null&&(it.curOp.scrollLeft=st),dt!=null&&(it.curOp.scrollTop=dt)}function xo(it,st){Bl(it),it.curOp.scrollToPos=st}function Bl(it){var st=it.curOp.scrollToPos;if(st){it.curOp.scrollToPos=null;var dt=Di(it,st.from),ht=Di(it,st.to);qu(it,dt,ht,st.margin)}}function qu(it,st,dt,ht){var ft=uu(it,{left:Math.min(st.left,dt.left),top:Math.min(st.top,dt.top)-ht,right:Math.max(st.right,dt.right),bottom:Math.max(st.bottom,dt.bottom)+ht});fl(it,ft.scrollLeft,ft.scrollTop)}function Ms(it,st){Math.abs(it.doc.scrollTop-st)<2||(vt||eh(it,{top:st}),$u(it,st,!0),vt&&eh(it),Mh(it,100))}function $u(it,st,dt){st=Math.max(0,Math.min(it.display.scroller.scrollHeight-it.display.scroller.clientHeight,st)),!(it.display.scroller.scrollTop==st&&!dt)&&(it.doc.scrollTop=st,it.display.scrollbars.setScrollTop(st),it.display.scroller.scrollTop!=st&&(it.display.scroller.scrollTop=st))}function us(it,st,dt,ht){st=Math.max(0,Math.min(st,it.display.scroller.scrollWidth-it.display.scroller.clientWidth)),!((dt?st==it.doc.scrollLeft:Math.abs(it.doc.scrollLeft-st)<2)&&!ht)&&(it.doc.scrollLeft=st,rd(it),it.display.scroller.scrollLeft!=st&&(it.display.scroller.scrollLeft=st),it.display.scrollbars.setScrollLeft(st))}function ma(it){var st=it.display,dt=st.gutters.offsetWidth,ht=Math.round(it.doc.height+Fl(it.display));return{clientHeight:st.scroller.clientHeight,viewHeight:st.wrapper.clientHeight,scrollWidth:st.scroller.scrollWidth,clientWidth:st.scroller.clientWidth,viewWidth:st.wrapper.clientWidth,barLeft:it.options.fixedGutter?dt:0,docHeight:ht,scrollHeight:ht+Gs(it)+st.barHeight,nativeBarWidth:st.nativeBarWidth,gutterWidth:dt}}var pl=function(it,st,dt){this.cm=dt;var ht=this.vert=te("div",[te("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ft=this.horiz=te("div",[te("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ht.tabIndex=ft.tabIndex=-1,it(ht),it(ft),ge(ht,"scroll",function(){ht.clientHeight&&st(ht.scrollTop,"vertical")}),ge(ft,"scroll",function(){ft.clientWidth&&st(ft.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,me&&Ee<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};pl.prototype.update=function(it){var st=it.scrollWidth>it.clientWidth+1,dt=it.scrollHeight>it.clientHeight+1,ht=it.nativeBarWidth;if(dt){this.vert.style.display="block",this.vert.style.bottom=st?ht+"px":"0";var ft=it.viewHeight-(st?ht:0);this.vert.firstChild.style.height=Math.max(0,it.scrollHeight-it.clientHeight+ft)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(st){this.horiz.style.display="block",this.horiz.style.right=dt?ht+"px":"0",this.horiz.style.left=it.barLeft+"px";var Pt=it.viewWidth-it.barLeft-(dt?ht:0);this.horiz.firstChild.style.width=Math.max(0,it.scrollWidth-it.clientWidth+Pt)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&it.clientHeight>0&&(ht==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:dt?ht:0,bottom:st?ht:0}},pl.prototype.setScrollLeft=function(it){this.horiz.scrollLeft!=it&&(this.horiz.scrollLeft=it),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},pl.prototype.setScrollTop=function(it){this.vert.scrollTop!=it&&(this.vert.scrollTop=it),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},pl.prototype.zeroWidthHack=function(){var it=ct&&!Ae?"12px":"18px";this.horiz.style.height=this.vert.style.width=it,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new It,this.disableVert=new It},pl.prototype.enableZeroWidthBar=function(it,st,dt){it.style.pointerEvents="auto";function ht(){var ft=it.getBoundingClientRect(),Pt=dt=="vert"?document.elementFromPoint(ft.right-1,(ft.top+ft.bottom)/2):document.elementFromPoint((ft.right+ft.left)/2,ft.bottom-1);Pt!=it?it.style.pointerEvents="none":st.set(1e3,ht)}st.set(1e3,ht)},pl.prototype.clear=function(){var it=this.horiz.parentNode;it.removeChild(this.horiz),it.removeChild(this.vert)};var Wa=function(){};Wa.prototype.update=function(){return{bottom:0,right:0}},Wa.prototype.setScrollLeft=function(){},Wa.prototype.setScrollTop=function(){},Wa.prototype.clear=function(){};function eo(it,st){st||(st=ma(it));var dt=it.display.barWidth,ht=it.display.barHeight;Tr(it,st);for(var ft=0;ft<4&&dt!=it.display.barWidth||ht!=it.display.barHeight;ft++)dt!=it.display.barWidth&&it.options.lineWrapping&&si(it),Tr(it,ma(it)),dt=it.display.barWidth,ht=it.display.barHeight}function Tr(it,st){var dt=it.display,ht=dt.scrollbars.update(st);dt.sizer.style.paddingRight=(dt.barWidth=ht.right)+"px",dt.sizer.style.paddingBottom=(dt.barHeight=ht.bottom)+"px",dt.heightForcer.style.borderBottom=ht.bottom+"px solid transparent",ht.right&&ht.bottom?(dt.scrollbarFiller.style.display="block",dt.scrollbarFiller.style.height=ht.bottom+"px",dt.scrollbarFiller.style.width=ht.right+"px"):dt.scrollbarFiller.style.display="",ht.bottom&&it.options.coverGutterNextToScrollbar&&it.options.fixedGutter?(dt.gutterFiller.style.display="block",dt.gutterFiller.style.height=ht.bottom+"px",dt.gutterFiller.style.width=st.gutterWidth+"px"):dt.gutterFiller.style.display=""}var Ya={native:pl,null:Wa};function Il(it){it.display.scrollbars&&(it.display.scrollbars.clear(),it.display.scrollbars.addClass&&Yt(it.display.wrapper,it.display.scrollbars.addClass)),it.display.scrollbars=new Ya[it.options.scrollbarStyle](function(st){it.display.wrapper.insertBefore(st,it.display.scrollbarFiller),ge(st,"mousedown",function(){it.state.focused&&setTimeout(function(){return it.display.input.focus()},0)}),st.setAttribute("cm-not-content","true")},function(st,dt){dt=="horizontal"?us(it,st):Ms(it,st)},it),it.display.scrollbars.addClass&&Ne(it.display.wrapper,it.display.scrollbars.addClass)}var Kl=0;function Tu(it){it.curOp={cm:it,viewChanged:!1,startHeight:it.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Kl},Nu(it.curOp)}function du(it){var st=it.curOp;st&&ku(st,function(dt){for(var ht=0;ht=dt.viewTo)||dt.maxLineChanged&&st.options.lineWrapping,it.update=it.mustUpdate&&new th(st,it.mustUpdate&&{top:it.scrollTop,ensure:it.scrollToPos},it.forceUpdate)}function Vd(it){it.updatedDisplay=it.mustUpdate&&Cc(it.cm,it.update)}function id(it){var st=it.cm,dt=st.display;it.updatedDisplay&&si(st),it.barMeasure=ma(st),dt.maxLineChanged&&!st.options.lineWrapping&&(it.adjustWidthTo=No(st,dt.maxLine,dt.maxLine.text.length).left+3,st.display.sizerWidth=it.adjustWidthTo,it.barMeasure.scrollWidth=Math.max(dt.scroller.clientWidth,dt.sizer.offsetLeft+it.adjustWidthTo+Gs(st)+st.display.barWidth),it.maxScrollLeft=Math.max(0,dt.sizer.offsetLeft+it.adjustWidthTo-Ua(st))),(it.updatedDisplay||it.selectionChanged)&&(it.preparedSelection=dt.input.prepareSelection())}function Br(it){var st=it.cm;it.adjustWidthTo!=null&&(st.display.sizer.style.minWidth=it.adjustWidthTo+"px",it.maxScrollLeft=it.display.viewTo)){var dt=+new Date+it.options.workTime,ht=io(it,st.highlightFrontier),ft=[];st.iter(ht.line,Math.min(st.first+st.size,it.display.viewTo+500),function(Pt){if(ht.line>=it.display.viewFrom){var Nt=Pt.styles,zt=Pt.text.length>it.options.maxHighlightLength?Bn(st.mode,ht.state):null,jt=_o(it,Pt,ht,!0);zt&&(ht.state=zt),Pt.styles=jt.styles;var Zt=Pt.styleClasses,xe=jt.classes;xe?Pt.styleClasses=xe:Zt&&(Pt.styleClasses=null);for(var Xt=!Nt||Nt.length!=Pt.styles.length||Zt!=xe&&(!Zt||!xe||Zt.bgClass!=xe.bgClass||Zt.textClass!=xe.textClass),Re=0;!Xt&&Redt)return Mh(it,it.options.workDelay),!0}),st.highlightFrontier=ht.line,st.modeFrontier=Math.max(st.modeFrontier,ht.line),ft.length&&Ro(it,function(){for(var Pt=0;Pt=dt.viewFrom&&st.visible.to<=dt.viewTo&&(dt.updateLineNumbers==null||dt.updateLineNumbers>=dt.viewTo)&&dt.renderedView==dt.view&&Us(it)==0)return!1;Kr(it)&&(Uo(it),st.dims=Ho(it));var ft=ht.first+ht.size,Pt=Math.max(st.visible.from-it.options.viewportMargin,ht.first),Nt=Math.min(ft,st.visible.to+it.options.viewportMargin);dt.viewFromNt&&dt.viewTo-Nt<20&&(Nt=Math.min(ft,dt.viewTo)),Je&&(Pt=Ti(it.doc,Pt),Nt=ci(it.doc,Nt));var zt=Pt!=dt.viewFrom||Nt!=dt.viewTo||dt.lastWrapHeight!=st.wrapperHeight||dt.lastWrapWidth!=st.wrapperWidth;Bo(it,Pt,Nt),dt.viewOffset=oo(An(it.doc,dt.viewFrom)),it.display.mover.style.top=dt.viewOffset+"px";var jt=Us(it);if(!zt&&jt==0&&!st.force&&dt.renderedView==dt.view&&(dt.updateLineNumbers==null||dt.updateLineNumbers>=dt.viewTo))return!1;var Zt=pf(it);return jt>4&&(dt.lineDiv.style.display="none"),od(it,dt.updateLineNumbers,st.dims),jt>4&&(dt.lineDiv.style.display=""),dt.renderedView=dt.view,ka(Zt),$t(dt.cursorDiv),$t(dt.selectionDiv),dt.gutters.style.height=dt.sizer.style.minHeight=0,zt&&(dt.lastWrapHeight=st.wrapperHeight,dt.lastWrapWidth=st.wrapperWidth,Mh(it,400)),dt.updateLineNumbers=null,!0}function or(it,st){for(var dt=st.viewport,ht=!0;;ht=!1){if(!ht||!it.options.lineWrapping||st.oldDisplayWidth==Ua(it)){if(dt&&dt.top!=null&&(dt={top:Math.min(it.doc.height+Fl(it.display)-qe(it),dt.top)}),st.visible=mo(it.display,it.doc,dt),st.visible.from>=it.display.viewFrom&&st.visible.to<=it.display.viewTo)break}else ht&&(st.visible=mo(it.display,it.doc,dt));if(!Cc(it,st))break;si(it);var ft=ma(it);So(it),eo(it,ft),Xl(it,ft),st.force=!1}st.signal(it,"update",it),(it.display.viewFrom!=it.display.reportedViewFrom||it.display.viewTo!=it.display.reportedViewTo)&&(st.signal(it,"viewportChange",it,it.display.viewFrom,it.display.viewTo),it.display.reportedViewFrom=it.display.viewFrom,it.display.reportedViewTo=it.display.viewTo)}function eh(it,st){var dt=new th(it,st);if(Cc(it,dt)){si(it),or(it,dt);var ht=ma(it);So(it),eo(it,ht),Xl(it,ht),dt.finish()}}function od(it,st,dt){var ht=it.display,ft=it.options.lineNumbers,Pt=ht.lineDiv,Nt=Pt.firstChild;function zt(Pn){var Nn=Pn.nextSibling;return qt&&ct&&it.display.currentWheelTarget==Pn?Pn.style.display="none":Pn.parentNode.removeChild(Pn),Nn}for(var jt=ht.view,Zt=ht.viewFrom,xe=0;xe-1&&(Te=!1),wh(it,Xt,Zt,dt)),Te&&($t(Xt.lineNumber),Xt.lineNumber.appendChild(document.createTextNode(Wi(it.options,Zt)))),Nt=Xt.node.nextSibling}Zt+=Xt.size}for(;Nt;)Nt=zt(Nt)}function cu(it){var st=it.gutters.offsetWidth;it.sizer.style.marginLeft=st+"px"}function Xl(it,st){it.display.sizer.style.minHeight=st.docHeight+"px",it.display.heightForcer.style.top=st.docHeight+"px",it.display.gutters.style.height=st.docHeight+it.display.barHeight+Gs(it)+"px"}function rd(it){var st=it.display,dt=st.view;if(!(!st.alignWidgets&&(!st.gutters.firstChild||!it.options.fixedGutter))){for(var ht=Qr(st)-st.scroller.scrollLeft+it.doc.scrollLeft,ft=st.gutters.offsetWidth,Pt=ht+"px",Nt=0;NtNt.clientWidth,jt=Nt.scrollHeight>Nt.clientHeight;if(ht&&zt||ft&&jt){if(ft&&ct&&qt){t:for(var Zt=st.target,xe=Pt.view;Zt!=Nt;Zt=Zt.parentNode)for(var Xt=0;Xt=0&&an(it,ht.to())<=0)return dt}return-1};var rr=function(it,st){this.anchor=it,this.head=st};rr.prototype.from=function(){return vi(this.anchor,this.head)},rr.prototype.to=function(){return Po(this.anchor,this.head)},rr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function yl(it,st,dt){var ht=it&&it.options.selectionsMayTouch,ft=st[dt];st.sort(function(Re,Te){return an(Re.from(),Te.from())}),dt=ne(st,ft);for(var Pt=1;Pt0:jt>=0){var Zt=vi(zt.from(),Nt.from()),xe=Po(zt.to(),Nt.to()),Xt=zt.empty()?Nt.from()==Nt.head:zt.from()==zt.head;Pt<=dt&&--dt,st.splice(--Pt,2,new rr(Xt?xe:Zt,Xt?Zt:xe))}}return new va(st,dt)}function br(it,st){return new va([new rr(it,st||it)],0)}function ya(it){return it.text?ke(it.from.line+it.text.length-1,re(it.text).length+(it.text.length==1?it.from.ch:0)):it.to}function nh(it,st){if(an(it,st.from)<0)return it;if(an(it,st.to)<=0)return ya(st);var dt=it.line+st.text.length-(st.to.line-st.from.line)-1,ht=it.ch;return it.line==st.to.line&&(ht+=ya(st).ch-st.to.ch),ke(dt,ht)}function sd(it,st){for(var dt=[],ht=0;ht1&&it.remove(zt.line+1,Pn-1),it.insert(zt.line+1,$n)}ii(it,"change",it,st)}function Es(it,st,dt){function ht(ft,Pt,Nt){if(ft.linked)for(var zt=0;zt1&&!it.done[it.done.length-2].ranges)return it.done.pop(),re(it.done)}function ld(it,st,dt,ht){var ft=it.history;ft.undone.length=0;var Pt=+new Date,Nt,zt;if((ft.lastOp==ht||ft.lastOrigin==st.origin&&st.origin&&(st.origin.charAt(0)=="+"&&ft.lastModTime>Pt-(it.cm?it.cm.options.historyEventDelay:500)||st.origin.charAt(0)=="*"))&&(Nt=ad(ft,ft.lastOp==ht)))zt=re(Nt.changes),an(st.from,st.to)==0&&an(st.from,zt.to)==0?zt.to=ya(st):Nt.changes.push(Zd(it,st));else{var jt=re(ft.done);for((!jt||!jt.ranges)&&Ii(it.sel,ft.done),Nt={changes:[Zd(it,st)],generation:ft.generation},ft.done.push(Nt);ft.done.length>ft.undoDepth;)ft.done.shift(),ft.done[0].ranges||ft.done.shift()}ft.done.push(dt),ft.generation=++ft.maxGeneration,ft.lastModTime=ft.lastSelTime=Pt,ft.lastOp=ft.lastSelOp=ht,ft.lastOrigin=ft.lastSelOrigin=st.origin,zt||pn(it,"historyAdded")}function Lc(it,st,dt,ht){var ft=st.charAt(0);return ft=="*"||ft=="+"&&dt.ranges.length==ht.ranges.length&&dt.somethingSelected()==ht.somethingSelected()&&new Date-it.history.lastSelTime<=(it.cm?it.cm.options.historyEventDelay:500)}function Gn(it,st,dt,ht){var ft=it.history,Pt=ht&&ht.origin;dt==ft.lastSelOp||Pt&&ft.lastSelOrigin==Pt&&(ft.lastModTime==ft.lastSelTime&&ft.lastOrigin==Pt||Lc(it,Pt,re(ft.done),st))?ft.done[ft.done.length-1]=st:Ii(st,ft.done),ft.lastSelTime=+new Date,ft.lastSelOrigin=Pt,ft.lastSelOp=dt,ht&&ht.clearRedo!==!1&&oh(ft.undone)}function Ii(it,st){var dt=re(st);dt&&dt.ranges&&dt.equals(it)||st.push(it)}function vs(it,st,dt,ht){var ft=st["spans_"+it.id],Pt=0;it.iter(Math.max(it.first,dt),Math.min(it.first+it.size,ht),function(Nt){Nt.markedSpans&&((ft||(ft=st["spans_"+it.id]={}))[Pt]=Nt.markedSpans),++Pt})}function ys(it){if(!it)return null;for(var st,dt=0;dt-1&&(re(zt)[Xt]=Zt[Xt],delete Zt[Xt])}}return ht}function ug(it,st,dt,ht){if(ht){var ft=it.anchor;if(dt){var Pt=an(st,ft)<0;Pt!=an(dt,ft)<0?(ft=st,st=dt):Pt!=an(st,dt)<0&&(st=dt)}return new rr(ft,st)}else return new rr(dt||st,st)}function hg(it,st,dt,ht,ft){ft==null&&(ft=it.cm&&(it.cm.display.shift||it.extend)),Sa(it,new va([ug(it.sel.primary(),st,dt,ft)],0),ht)}function Y0(it,st,dt){for(var ht=[],ft=it.cm&&(it.cm.display.shift||it.extend),Pt=0;Pt=st.ch:zt.to>st.ch))){if(ft&&(pn(jt,"beforeCursorEnter"),jt.explicitlyCleared))if(Pt.markedSpans){--Nt;continue}else break;if(!jt.atomic)continue;if(dt){var Xt=jt.find(ht<0?1:-1),Re=void 0;if((ht<0?xe:Zt)&&(Xt=yf(it,Xt,-ht,Xt&&Xt.line==st.line?Pt:null)),Xt&&Xt.line==st.line&&(Re=an(Xt,dt))&&(ht<0?Re<0:Re>0))return rh(it,Xt,st,ht,ft)}var Te=jt.find(ht<0?-1:1);return(ht<0?Zt:xe)&&(Te=yf(it,Te,ht,Te.line==st.line?Pt:null)),Te?rh(it,Te,st,ht,ft):null}}return st}function Nc(it,st,dt,ht,ft){var Pt=ht||1,Nt=rh(it,st,dt,Pt,ft)||!ft&&rh(it,st,dt,Pt,!0)||rh(it,st,dt,-Pt,ft)||!ft&&rh(it,st,dt,-Pt,!0);return Nt||(it.cantEdit=!0,ke(it.first,0))}function yf(it,st,dt,ht){return dt<0&&st.ch==0?st.line>it.first?ui(it,ke(st.line-1)):null:dt>0&&st.ch==(ht||An(it,st.line)).text.length?st.line=0;--ft)dd(it,{from:ht[ft].from,to:ht[ft].to,text:ft?[""]:st.text,origin:st.origin});else dd(it,st)}}function dd(it,st){if(!(st.text.length==1&&st.text[0]==""&&an(st.from,st.to)==0)){var dt=sd(it,st);ld(it,st,dt,it.cm?it.cm.curOp.id:NaN),Qd(it,st,dt,$o(it,st));var ht=[];Es(it,function(ft,Pt){!Pt&&ne(ht,ft.history)==-1&&(xf(ft.history,st),ht.push(ft.history)),Qd(ft,st,null,$o(ft,st))})}}function Dc(it,st,dt){var ht=it.cm&&it.cm.state.suppressEdits;if(!(ht&&!dt)){for(var ft=it.history,Pt,Nt=it.sel,zt=st=="undo"?ft.done:ft.undone,jt=st=="undo"?ft.undone:ft.done,Zt=0;Zt=0;--Te){var Pn=Re(Te);if(Pn)return Pn.v}}}}function Sf(it,st){if(st!=0&&(it.first+=st,it.sel=new va(kn(it.sel.ranges,function(ft){return new rr(ke(ft.anchor.line+st,ft.anchor.ch),ke(ft.head.line+st,ft.head.ch))}),it.sel.primIndex),it.cm)){Hi(it.cm,it.first,it.first-st,st);for(var dt=it.cm.display,ht=dt.viewFrom;htit.lastLine())){if(st.from.linePt&&(st={from:st.from,to:ke(Pt,An(it,Pt).text.length),text:[st.text[0]],origin:st.origin}),st.removed=li(it,st.from,st.to),dt||(dt=sd(it,st)),it.cm?_0(it.cm,st,ht):mu(it,st,ht),hd(it,dt,le),it.cantEdit&&Nc(it,ke(it.firstLine(),0))&&(it.cantEdit=!1)}}function _0(it,st,dt){var ht=it.doc,ft=it.display,Pt=st.from,Nt=st.to,zt=!1,jt=Pt.line;it.options.lineWrapping||(jt=ie(tr(An(ht,Pt.line))),ht.iter(jt,Nt.line+1,function(Te){if(Te==ft.maxLine)return zt=!0,!0})),ht.sel.contains(st.from,st.to)>-1&&Mi(it),mu(ht,st,dt,Zo(it)),it.options.lineWrapping||(ht.iter(jt,Pt.line+st.text.length,function(Te){var Pn=ir(Te);Pn>ft.maxLineLength&&(ft.maxLine=Te,ft.maxLineLength=Pn,ft.maxLineChanged=!0,zt=!1)}),zt&&(it.curOp.updateMaxLine=!0)),co(ht,Pt.line),Mh(it,400);var Zt=st.text.length-(Nt.line-Pt.line)-1;st.full?Hi(it):Pt.line==Nt.line&&st.text.length==1&&!pu(it.doc,st)?Ei(it,Pt.line,"text"):Hi(it,Pt.line,Nt.line+1,Zt);var xe=ji(it,"changes"),Xt=ji(it,"change");if(Xt||xe){var Re={from:Pt,to:Nt,text:st.text,removed:st.removed,origin:st.origin};Xt&&ii(it,"change",it,Re),xe&&(it.curOp.changeObjs||(it.curOp.changeObjs=[])).push(Re)}it.display.selForContextMenu=null}function cd(it,st,dt,ht,ft){var Pt;ht||(ht=dt),an(ht,dt)<0&&(Pt=[ht,dt],dt=Pt[0],ht=Pt[1]),typeof st=="string"&&(st=it.splitLines(st)),kh(it,{from:dt,to:ht,text:st,origin:ft})}function bl(it,st,dt,ht){dt1||!(this.children[0]instanceof Kd))){var zt=[];this.collapse(zt),this.children=[new Kd(zt)],this.children[0].parent=this}},collapse:function(it){for(var st=0;st50){for(var Nt=ft.lines.length%25+25,zt=Nt;zt10);it.parent.maybeSpill()}},iterN:function(it,st,dt){for(var ht=0;htit.display.maxLineLength&&(it.display.maxLine=Zt,it.display.maxLineLength=xe,it.display.maxLineChanged=!0)}ht!=null&&it&&this.collapsed&&Hi(it,ht,ft+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,it&&Ec(it.doc)),it&&ii(it,"markerCleared",it,this,ht,ft),st&&du(it),this.parent&&this.parent.clear()}},de.prototype.find=function(it,st){it==null&&this.type=="bookmark"&&(it=1);for(var dt,ht,ft=0;ft0||Nt==0&&Pt.clearWhenEmpty!==!1)return Pt;if(Pt.replacedWith&&(Pt.collapsed=!0,Pt.widgetNode=Pe("span",[Pt.replacedWith],"CodeMirror-widget"),ht.handleMouseEvents||Pt.widgetNode.setAttribute("cm-ignore-events","true"),ht.insertLeft&&(Pt.widgetNode.insertLeft=!0)),Pt.collapsed){if(Zl(it,st.line,st,dt,Pt)||st.line!=dt.line&&Zl(it,dt.line,st,dt,Pt))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ke()}Pt.addToHistory&&ld(it,{from:st,to:dt,origin:"markText"},it.sel,NaN);var zt=st.line,jt=it.cm,Zt;if(it.iter(zt,dt.line+1,function(Xt){jt&&Pt.collapsed&&!jt.options.lineWrapping&&tr(Xt)==jt.display.maxLine&&(Zt=!0),Pt.collapsed&&zt!=st.line&&Ki(Xt,0),Fs(Xt,new Lo(Pt,zt==st.line?st.ch:null,zt==dt.line?dt.ch:null)),++zt}),Pt.collapsed&&it.iter(st.line,dt.line+1,function(Xt){tn(it,Xt)&&Ki(Xt,0)}),Pt.clearOnEnter&&ge(Pt,"beforeCursorEnter",function(){return Pt.clear()}),Pt.readOnly&&(po(),(it.history.done.length||it.history.undone.length)&&it.clearHistory()),Pt.collapsed&&(Pt.id=++K0,Pt.atomic=!0),jt){if(Zt&&(jt.curOp.updateMaxLine=!0),Pt.collapsed)Hi(jt,st.line,dt.line+1);else if(Pt.className||Pt.startStyle||Pt.endStyle||Pt.css||Pt.attributes||Pt.title)for(var xe=st.line;xe<=dt.line;xe++)Ei(jt,xe,"text");Pt.atomic&&Ec(jt.doc),ii(jt,"markerAdded",jt,Pt)}return Pt}var Iu=function(it,st){this.markers=it,this.primary=st;for(var dt=0;dt=0;jt--)kh(this,ht[jt]);zt?dg(this,zt):this.cm&&tl(this.cm)}),undo:mr(function(){Dc(this,"undo")}),redo:mr(function(){Dc(this,"redo")}),undoSelection:mr(function(){Dc(this,"undo",!0)}),redoSelection:mr(function(){Dc(this,"redo",!0)}),setExtending:function(it){this.extend=it},getExtending:function(){return this.extend},historySize:function(){for(var it=this.history,st=0,dt=0,ht=0;ht=it.ch)&&st.push(ft.marker.parent||ft.marker)}return st},findMarks:function(it,st,dt){it=ui(this,it),st=ui(this,st);var ht=[],ft=it.line;return this.iter(it.line,st.line+1,function(Pt){var Nt=Pt.markedSpans;if(Nt)for(var zt=0;zt=jt.to||jt.from==null&&ft!=it.line||jt.from!=null&&ft==st.line&&jt.from>=st.ch)&&(!dt||dt(jt.marker))&&ht.push(jt.marker.parent||jt.marker)}++ft}),ht},getAllMarks:function(){var it=[];return this.iter(function(st){var dt=st.markedSpans;if(dt)for(var ht=0;htit)return st=it,!0;it-=Pt,++dt}),ui(this,ke(dt,st))},indexFromPos:function(it){it=ui(this,it);var st=it.ch;if(it.linest&&(st=it.from),it.to!=null&&it.to-1){st.state.draggingText(it),setTimeout(function(){return st.display.input.focus()},20);return}try{var xe=it.dataTransfer.getData("Text");if(xe){var Xt;if(st.state.draggingText&&!st.state.draggingText.copy&&(Xt=st.listSelections()),hd(st.doc,br(dt,dt)),Xt)for(var Re=0;Re=0;zt--)cd(it.doc,"",ht[zt].from,ht[zt].to,"+delete");tl(it)})}function kf(it,st,dt){var ht=fn(it.text,st+dt,dt);return ht<0||ht>it.text.length?null:ht}function gs(it,st,dt){var ht=kf(it,st.ch,dt);return ht==null?null:new ke(st.line,ht,dt<0?"after":"before")}function Ic(it,st,dt,ht,ft){if(it){st.doc.direction=="rtl"&&(ft=-ft);var Pt=Ut(dt,st.doc.direction);if(Pt){var Nt=ft<0?re(Pt):Pt[0],zt=ft<0==(Nt.level==1),jt=zt?"after":"before",Zt;if(Nt.level>0||st.doc.direction=="rtl"){var xe=Oo(st,dt);Zt=ft<0?dt.text.length-1:0;var Xt=Yo(st,xe,Zt).top;Zt=sn(function(Re){return Yo(st,xe,Re).top==Xt},ft<0==(Nt.level==1)?Nt.from:Nt.to-1,Zt),jt=="before"&&(Zt=kf(dt,Zt,1))}else Zt=ft<0?Nt.to:Nt.from;return new ke(ht,Zt,jt)}}return new ke(ht,ft<0?dt.text.length:0,ft<0?"before":"after")}function fg(it,st,dt,ht){var ft=Ut(st,it.doc.direction);if(!ft)return gs(st,dt,ht);dt.ch>=st.text.length?(dt.ch=st.text.length,dt.sticky="before"):dt.ch<=0&&(dt.ch=0,dt.sticky="after");var Pt=xt(ft,dt.ch,dt.sticky),Nt=ft[Pt];if(it.doc.direction=="ltr"&&Nt.level%2==0&&(ht>0?Nt.to>dt.ch:Nt.from=Nt.from&&Re>=xe.begin)){var Te=Xt?"before":"after";return new ke(dt.line,Re,Te)}}var Pn=function($n,xi,ai){for(var ki=function(jr,bs){return bs?new ke(dt.line,zt(jr,1),"before"):new ke(dt.line,jr,"after")};$n>=0&&$n0==(Xi.level!=1),vo=oi?ai.begin:zt(ai.end,-1);if(Xi.from<=vo&&vo0?xe.end:zt(xe.begin,-1);return Hn!=null&&!(ht>0&&Hn==st.text.length)&&(Nn=Pn(ht>0?0:ft.length-1,ht,Zt(Hn)),Nn)?Nn:null}var Dh={selectAll:cs,singleSelection:function(it){return it.setSelection(it.getCursor("anchor"),it.getCursor("head"),le)},killLine:function(it){return il(it,function(st){if(st.empty()){var dt=An(it.doc,st.head.line).text.length;return st.head.ch==dt&&st.head.line0)ft=new ke(ft.line,ft.ch+1),it.replaceRange(Pt.charAt(ft.ch-1)+Pt.charAt(ft.ch-2),ke(ft.line,ft.ch-2),ft,"+transpose");else if(ft.line>it.doc.first){var Nt=An(it.doc,ft.line-1).text;Nt&&(ft=new ke(ft.line,1),it.replaceRange(Pt.charAt(0)+it.doc.lineSeparator()+Nt.charAt(Nt.length-1),ke(ft.line-1,Nt.length-1),ft,"+transpose"))}}dt.push(new rr(ft,ft))}it.setSelections(dt)})},newlineAndIndent:function(it){return Ro(it,function(){for(var st=it.listSelections(),dt=st.length-1;dt>=0;dt--)it.replaceRange(it.doc.lineSeparator(),st[dt].anchor,st[dt].head,"+input");st=it.listSelections();for(var ht=0;htit&&an(st,this.pos)==0&&dt==this.button};var ec,yd;function jf(it,st){var dt=+new Date;return yd&&yd.compare(dt,it,st)?(ec=yd=null,"triple"):ec&&ec.compare(dt,it,st)?(yd=new bf(dt,it,st),ec=null,"double"):(ec=new bf(dt,it,st),yd=null,"single")}function yu(it){var st=this,dt=st.display;if(!(Rn(st,it)||dt.activeTouch&&dt.input.supportsTouch())){if(dt.input.ensurePolled(),dt.shift=it.shiftKey,ia(dt,it)){qt||(dt.scroller.draggable=!1,setTimeout(function(){return dt.scroller.draggable=!0},100));return}if(!xg(st,it)){var ht=_i(st,it),ft=Cr(it),Pt=ht?jf(ht,ft):"single";window.focus(),ft==1&&st.state.selectingText&&st.state.selectingText(it),!(ht&&Of(st,ft,ht,Pt,it))&&(ft==1?ht?op(st,ht,Pt,it):nr(it)==dt.scroller&&Ji(it):ft==2?(ht&&hg(st.doc,ht),setTimeout(function(){return dt.input.focus()},20)):ft==3&&(kt?st.display.input.onContextMenu(it):Ar(st)))}}}function Of(it,st,dt,ht,ft){var Pt="Click";return ht=="double"?Pt="Double"+Pt:ht=="triple"&&(Pt="Triple"+Pt),Pt=(st==1?"Left":st==2?"Middle":"Right")+Pt,md(it,Nf(Pt,ft),ft,function(Nt){if(typeof Nt=="string"&&(Nt=Dh[Nt]),!Nt)return!1;var zt=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),zt=Nt(it,dt)!=Qe}finally{it.state.suppressEdits=!1}return zt})}function yg(it,st,dt){var ht=it.getOption("configureMouse"),ft=ht?ht(it,st,dt):{};if(ft.unit==null){var Pt=lt?dt.shiftKey&&dt.metaKey:dt.altKey;ft.unit=Pt?"rectangle":st=="single"?"char":st=="double"?"word":"line"}return(ft.extend==null||it.doc.extend)&&(ft.extend=it.doc.extend||dt.shiftKey),ft.addNew==null&&(ft.addNew=ct?dt.metaKey:dt.ctrlKey),ft.moveOnDrag==null&&(ft.moveOnDrag=!(ct?dt.altKey:dt.ctrlKey)),ft}function op(it,st,dt,ht){me?setTimeout(Dn(gi,it),0):it.curOp.focus=ye();var ft=yg(it,dt,ht),Pt=it.doc.sel,Nt;it.options.dragDrop&&bo&&!it.isReadOnly()&&dt=="single"&&(Nt=Pt.contains(st))>-1&&(an((Nt=Pt.ranges[Nt]).from(),st)<0||st.xRel>0)&&(an(Nt.to(),st)>0||st.xRel<0)?zf(it,ht,st,ft):ev(it,ht,st,ft)}function zf(it,st,dt,ht){var ft=it.display,Pt=!1,Nt=hs(it,function(Zt){qt&&(ft.scroller.draggable=!1),it.state.draggingText=!1,gn(ft.wrapper.ownerDocument,"mouseup",Nt),gn(ft.wrapper.ownerDocument,"mousemove",zt),gn(ft.scroller,"dragstart",jt),gn(ft.scroller,"drop",Nt),Pt||(Ji(Zt),ht.addNew||hg(it.doc,dt,null,null,ht.extend),qt&&!se||me&&Ee==9?setTimeout(function(){ft.wrapper.ownerDocument.body.focus({preventScroll:!0}),ft.input.focus()},20):ft.input.focus())}),zt=function(Zt){Pt=Pt||Math.abs(st.clientX-Zt.clientX)+Math.abs(st.clientY-Zt.clientY)>=10},jt=function(){return Pt=!0};qt&&(ft.scroller.draggable=!0),it.state.draggingText=Nt,Nt.copy=!ht.moveOnDrag,ft.scroller.dragDrop&&ft.scroller.dragDrop(),ge(ft.wrapper.ownerDocument,"mouseup",Nt),ge(ft.wrapper.ownerDocument,"mousemove",zt),ge(ft.scroller,"dragstart",jt),ge(ft.scroller,"drop",Nt),Ar(it),setTimeout(function(){return ft.input.focus()},20)}function Rf(it,st,dt){if(dt=="char")return new rr(st,st);if(dt=="word")return it.findWordAt(st);if(dt=="line")return new rr(ke(st.line,0),ui(it.doc,ke(st.line+1,0)));var ht=dt(it,st);return new rr(ht.from,ht.to)}function ev(it,st,dt,ht){var ft=it.display,Pt=it.doc;Ji(st);var Nt,zt,jt=Pt.sel,Zt=jt.ranges;if(ht.addNew&&!ht.extend?(zt=Pt.sel.contains(dt),zt>-1?Nt=Zt[zt]:Nt=new rr(dt,dt)):(Nt=Pt.sel.primary(),zt=Pt.sel.primIndex),ht.unit=="rectangle")ht.addNew||(Nt=new rr(dt,dt)),dt=_i(it,st,!0,!0),zt=-1;else{var xe=Rf(it,dt,ht.unit);ht.extend?Nt=ug(Nt,xe.anchor,xe.head,ht.extend):Nt=xe}ht.addNew?zt==-1?(zt=Zt.length,Sa(Pt,yl(it,Zt.concat([Nt]),zt),{scroll:!1,origin:"*mouse"})):Zt.length>1&&Zt[zt].empty()&&ht.unit=="char"&&!ht.extend?(Sa(Pt,yl(it,Zt.slice(0,zt).concat(Zt.slice(zt+1)),0),{scroll:!1,origin:"*mouse"}),jt=Pt.sel):Nh(Pt,zt,Nt,Oe):(zt=0,Sa(Pt,new va([Nt],0),Oe),jt=Pt.sel);var Xt=dt;function Re(ai){if(an(Xt,ai)!=0)if(Xt=ai,ht.unit=="rectangle"){for(var ki=[],Xi=it.options.tabSize,oi=Vt(An(Pt,dt.line).text,dt.ch,Xi),vo=Vt(An(Pt,ai.line).text,ai.ch,Xi),jr=Math.min(oi,vo),bs=Math.max(oi,vo),Jr=Math.min(dt.line,ai.line),_a=Math.min(it.lastLine(),Math.max(dt.line,ai.line));Jr<=_a;Jr++){var xa=An(Pt,Jr).text,Ns=Cn(xa,jr,Xi);jr==bs?ki.push(new rr(ke(Jr,Ns),ke(Jr,Ns))):xa.length>Ns&&ki.push(new rr(ke(Jr,Ns),ke(Jr,Cn(xa,bs,Xi))))}ki.length||ki.push(new rr(dt,dt)),Sa(Pt,yl(it,jt.ranges.slice(0,zt).concat(ki),zt),{origin:"*mouse",scroll:!1}),it.scrollIntoView(ai)}else{var ol=Nt,sa=Rf(it,ai,ht.unit),ks=ol.anchor,Xo;an(sa.anchor,ks)>0?(Xo=sa.head,ks=vi(ol.from(),sa.anchor)):(Xo=sa.anchor,ks=Po(ol.to(),sa.head));var ns=jt.ranges.slice(0);ns[zt]=rp(it,new rr(ui(Pt,ks),Xo)),Sa(Pt,yl(it,ns,zt),Oe)}}var Te=ft.wrapper.getBoundingClientRect(),Pn=0;function Nn(ai){var ki=++Pn,Xi=_i(it,ai,!0,ht.unit=="rectangle");if(Xi)if(an(Xi,Xt)!=0){it.curOp.focus=ye(),Re(Xi);var oi=mo(ft,Pt);(Xi.line>=oi.to||Xi.lineTe.bottom?20:0;vo&&setTimeout(hs(it,function(){Pn==ki&&(ft.scroller.scrollTop+=vo,Nn(ai))}),50)}}function Hn(ai){it.state.selectingText=!1,Pn=1/0,ai&&(Ji(ai),ft.input.focus()),gn(ft.wrapper.ownerDocument,"mousemove",$n),gn(ft.wrapper.ownerDocument,"mouseup",xi),Pt.history.lastSelOrigin=null}var $n=hs(it,function(ai){ai.buttons===0||!Cr(ai)?Hn(ai):Nn(ai)}),xi=hs(it,Hn);it.state.selectingText=xi,ge(ft.wrapper.ownerDocument,"mousemove",$n),ge(ft.wrapper.ownerDocument,"mouseup",xi)}function rp(it,st){var dt=st.anchor,ht=st.head,ft=An(it.doc,dt.line);if(an(dt,ht)==0&&dt.sticky==ht.sticky)return st;var Pt=Ut(ft);if(!Pt)return st;var Nt=xt(Pt,dt.ch,dt.sticky),zt=Pt[Nt];if(zt.from!=dt.ch&&zt.to!=dt.ch)return st;var jt=Nt+(zt.from==dt.ch==(zt.level!=1)?0:1);if(jt==0||jt==Pt.length)return st;var Zt;if(ht.line!=dt.line)Zt=(ht.line-dt.line)*(it.doc.direction=="ltr"?1:-1)>0;else{var xe=xt(Pt,ht.ch,ht.sticky),Xt=xe-Nt||(ht.ch-dt.ch)*(zt.level==1?-1:1);xe==jt-1||xe==jt?Zt=Xt<0:Zt=Xt>0}var Re=Pt[jt+(Zt?-1:0)],Te=Zt==(Re.level==1),Pn=Te?Re.from:Re.to,Nn=Te?"after":"before";return dt.ch==Pn&&dt.sticky==Nn?st:new rr(new ke(dt.line,Pn,Nn),ht)}function Sg(it,st,dt,ht){var ft,Pt;if(st.touches)ft=st.touches[0].clientX,Pt=st.touches[0].clientY;else try{ft=st.clientX,Pt=st.clientY}catch(Re){return!1}if(ft>=Math.floor(it.display.gutters.getBoundingClientRect().right))return!1;ht&&Ji(st);var Nt=it.display,zt=Nt.lineDiv.getBoundingClientRect();if(Pt>zt.bottom||!ji(it,dt))return Io(st);Pt-=zt.top-Nt.viewOffset;for(var jt=0;jt=ft){var xe=yn(it.doc,Pt),Xt=it.display.gutterSpecs[jt];return pn(it,dt,it,xe,Xt.className,st),Io(st)}}}function xg(it,st){return Sg(it,st,"gutterClick",!0)}function wg(it,st){ia(it.display,st)||sp(it,st)||Rn(it,st,"contextmenu")||kt||it.display.input.onContextMenu(st)}function sp(it,st){return ji(it,"gutterContextMenu")?Sg(it,st,"gutterContextMenu",!1):!1}function Pg(it){it.display.wrapper.className=it.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+it.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Qt(it)}var Fh={toString:function(){return"CodeMirror.Init"}},Gf={},bc={};function ap(it){var st=it.optionHandlers;function dt(ht,ft,Pt,Nt){it.defaults[ht]=ft,Pt&&(st[ht]=Nt?function(zt,jt,Zt){Zt!=Fh&&Pt(zt,jt,Zt)}:Pt)}it.defineOption=dt,it.Init=Fh,dt("value","",function(ht,ft){return ht.setValue(ft)},!0),dt("mode",null,function(ht,ft){ht.doc.modeOption=ft,so(ht)},!0),dt("indentUnit",2,so,!0),dt("indentWithTabs",!1),dt("smartIndent",!0),dt("tabSize",4,function(ht){Lh(ht),Qt(ht),Hi(ht)},!0),dt("lineSeparator",null,function(ht,ft){if(ht.doc.lineSep=ft,!!ft){var Pt=[],Nt=ht.doc.first;ht.doc.iter(function(jt){for(var Zt=0;;){var xe=jt.text.indexOf(ft,Zt);if(xe==-1)break;Zt=xe+ft.length,Pt.push(ke(Nt,xe))}Nt++});for(var zt=Pt.length-1;zt>=0;zt--)cd(ht.doc,ft,Pt[zt],ke(Pt[zt].line,Pt[zt].ch+ft.length))}}),dt("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ht,ft,Pt){ht.state.specialChars=new RegExp(ft.source+(ft.test(" ")?"":"| "),"g"),Pt!=Fh&&ht.refresh()}),dt("specialCharPlaceholder",Ts,function(ht){return ht.refresh()},!0),dt("electricChars",!0),dt("inputStyle",nt?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),dt("spellcheck",!1,function(ht,ft){return ht.getInputField().spellcheck=ft},!0),dt("autocorrect",!1,function(ht,ft){return ht.getInputField().autocorrect=ft},!0),dt("autocapitalize",!1,function(ht,ft){return ht.getInputField().autocapitalize=ft},!0),dt("rtlMoveVisually",!pt),dt("wholeLineUpdateBefore",!0),dt("theme","default",function(ht){Pg(ht),Da(ht)},!0),dt("keyMap","default",function(ht,ft,Pt){var Nt=pd(ft),zt=Pt!=Fh&&pd(Pt);zt&&zt.detach&&zt.detach(ht,Nt),Nt.attach&&Nt.attach(ht,zt||null)}),dt("extraKeys",null),dt("configureMouse",null),dt("lineWrapping",!1,lp,!0),dt("gutters",[],function(ht,ft){ht.display.gutterSpecs=ms(ft,ht.options.lineNumbers),Da(ht)},!0),dt("fixedGutter",!0,function(ht,ft){ht.display.gutters.style.left=ft?Qr(ht.display)+"px":"0",ht.refresh()},!0),dt("coverGutterNextToScrollbar",!1,function(ht){return eo(ht)},!0),dt("scrollbarStyle","native",function(ht){Il(ht),eo(ht),ht.display.scrollbars.setScrollTop(ht.doc.scrollTop),ht.display.scrollbars.setScrollLeft(ht.doc.scrollLeft)},!0),dt("lineNumbers",!1,function(ht,ft){ht.display.gutterSpecs=ms(ht.options.gutters,ft),Da(ht)},!0),dt("firstLineNumber",1,Da,!0),dt("lineNumberFormatter",function(ht){return ht},Da,!0),dt("showCursorWhenSelecting",!1,So,!0),dt("resetSelectionOnContextMenu",!0),dt("lineWiseCopyCut",!0),dt("pasteLinesPerSelection",!0),dt("selectionsMayTouch",!1),dt("readOnly",!1,function(ht,ft){ft=="nocursor"&&(Du(ht),ht.display.input.blur()),ht.display.input.readOnlyChanged(ft)}),dt("screenReaderLabel",null,function(ht,ft){ft=ft===""?null:ft,ht.display.input.screenReaderLabelChanged(ft)}),dt("disableInput",!1,function(ht,ft){ft||ht.display.input.reset()},!0),dt("dragDrop",!0,Mg),dt("allowDropFileTypes",null),dt("cursorBlinkRate",530),dt("cursorScrollMargin",0),dt("cursorHeight",1,So,!0),dt("singleCursorHeightPerLine",!0,So,!0),dt("workTime",100),dt("workDelay",100),dt("flattenSpans",!0,Lh,!0),dt("addModeClass",!1,Lh,!0),dt("pollInterval",100),dt("undoDepth",200,function(ht,ft){return ht.doc.history.undoDepth=ft}),dt("historyEventDelay",1250),dt("viewportMargin",10,function(ht){return ht.refresh()},!0),dt("maxHighlightLength",1e4,Lh,!0),dt("moveInputWithCursor",!0,function(ht,ft){ft||ht.display.input.resetPosition()}),dt("tabindex",null,function(ht,ft){return ht.display.input.getField().tabIndex=ft||""}),dt("autofocus",null),dt("direction","ltr",function(ht,ft){return ht.doc.setDirection(ft)},!0),dt("phrases",null)}function Mg(it,st,dt){var ht=dt&&dt!=Fh;if(!st!=!ht){var ft=it.display.dragFunctions,Pt=st?ge:gn;Pt(it.display.scroller,"dragstart",ft.start),Pt(it.display.scroller,"dragenter",ft.enter),Pt(it.display.scroller,"dragover",ft.over),Pt(it.display.scroller,"dragleave",ft.leave),Pt(it.display.scroller,"drop",ft.drop)}}function lp(it){it.options.lineWrapping?(Ne(it.display.wrapper,"CodeMirror-wrap"),it.display.sizer.style.minWidth="",it.display.sizerWidth=null):(Yt(it.display.wrapper,"CodeMirror-wrap"),fr(it)),Yn(it),Hi(it),Qt(it),setTimeout(function(){return eo(it)},100)}function Qo(it,st){var dt=this;if(!(this instanceof Qo))return new Qo(it,st);this.options=st=st?vn(st):{},vn(Gf,st,!1);var ht=st.value;typeof ht=="string"?ht=new ra(ht,st.mode,null,st.lineSeparator,st.direction):st.mode&&(ht.modeOption=st.mode),this.doc=ht;var ft=new Qo.inputStyles[st.inputStyle](this),Pt=this.display=new ml(it,ht,ft,st);Pt.wrapper.CodeMirror=this,Pg(this),st.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Il(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new It,keySeq:null,specialChars:null},st.autofocus&&!nt&&Pt.input.focus(),me&&Ee<11&&setTimeout(function(){return dt.display.input.reset(!0)},20),nc(this),xl(),Tu(this),this.curOp.forceUpdate=!0,_d(this,ht),st.autofocus&&!nt||this.hasFocus()?setTimeout(function(){dt.hasFocus()&&!dt.state.focused&&ko(dt)},20):Du(this);for(var Nt in bc)bc.hasOwnProperty(Nt)&&bc[Nt](this,st[Nt],Fh);Kr(this),st.finishInit&&st.finishInit(this);for(var zt=0;zt20*20}ge(st.scroller,"touchstart",function(jt){if(!Rn(it,jt)&&!Pt(jt)&&!xg(it,jt)){st.input.ensurePolled(),clearTimeout(dt);var Zt=+new Date;st.activeTouch={start:Zt,moved:!1,prev:Zt-ht.end<=300?ht:null},jt.touches.length==1&&(st.activeTouch.left=jt.touches[0].pageX,st.activeTouch.top=jt.touches[0].pageY)}}),ge(st.scroller,"touchmove",function(){st.activeTouch&&(st.activeTouch.moved=!0)}),ge(st.scroller,"touchend",function(jt){var Zt=st.activeTouch;if(Zt&&!ia(st,jt)&&Zt.left!=null&&!Zt.moved&&new Date-Zt.start<300){var xe=it.coordsChar(st.activeTouch,"page"),Xt;!Zt.prev||Nt(Zt,Zt.prev)?Xt=new rr(xe,xe):!Zt.prev.prev||Nt(Zt,Zt.prev.prev)?Xt=it.findWordAt(xe):Xt=new rr(ke(xe.line,0),ui(it.doc,ke(xe.line+1,0))),it.setSelection(Xt.anchor,Xt.head),it.focus(),Ji(jt)}ft()}),ge(st.scroller,"touchcancel",ft),ge(st.scroller,"scroll",function(){st.scroller.clientHeight&&(Ms(it,st.scroller.scrollTop),us(it,st.scroller.scrollLeft,!0),pn(it,"scroll",it))}),ge(st.scroller,"mousewheel",function(jt){return Ls(it,jt)}),ge(st.scroller,"DOMMouseScroll",function(jt){return Ls(it,jt)}),ge(st.wrapper,"scroll",function(){return st.wrapper.scrollTop=st.wrapper.scrollLeft=0}),st.dragFunctions={enter:function(jt){Rn(it,jt)||Wr(jt)},over:function(jt){Rn(it,jt)||($0(it,jt),Wr(jt))},start:function(jt){return q0(it,jt)},drop:hs(it,Mf),leave:function(jt){Rn(it,jt)||tp(it)}};var zt=st.input.getField();ge(zt,"keyup",function(jt){return If.call(it,jt)}),ge(zt,"keydown",hs(it,Tf)),ge(zt,"keypress",hs(it,vu)),ge(zt,"focus",function(jt){return ko(it,jt)}),ge(zt,"blur",function(jt){return Du(it,jt)})}var Sd=[];Qo.defineInitHook=function(it){return Sd.push(it)};function Is(it,st,dt,ht){var ft=it.doc,Pt;dt==null&&(dt="add"),dt=="smart"&&(ft.mode.indent?Pt=io(it,st).state:dt="prev");var Nt=it.options.tabSize,zt=An(ft,st),jt=Vt(zt.text,null,Nt);zt.stateAfter&&(zt.stateAfter=null);var Zt=zt.text.match(/^\s*/)[0],xe;if(!ht&&!/\S/.test(zt.text))xe=0,dt="not";else if(dt=="smart"&&(xe=ft.mode.indent(Pt,zt.text.slice(Zt.length),zt.text),xe==Qe||xe>150)){if(!ht)return;dt="prev"}dt=="prev"?st>ft.first?xe=Vt(An(ft,st-1).text,null,Nt):xe=0:dt=="add"?xe=jt+it.options.indentUnit:dt=="subtract"?xe=jt-it.options.indentUnit:typeof dt=="number"&&(xe=jt+dt),xe=Math.max(0,xe);var Xt="",Re=0;if(it.options.indentWithTabs)for(var Te=Math.floor(xe/Nt);Te;--Te)Re+=Nt,Xt+=" ";if(ReNt,jt=Ui(st),Zt=null;if(zt&&ht.ranges.length>1)if(Va&&Va.text.join(` + left: `+st.left+"px; width: "+Math.max(2,st.right-st.left)+"px;");it.display.lineSpace.appendChild(Pt),Pt.scrollIntoView(ft),it.display.lineSpace.removeChild(Pt)}}}function Fu(it,st,dt,ht){ht==null&&(ht=0);var ft;!it.options.lineWrapping&&st==dt&&(st=st.ch?ke(st.line,st.sticky=="before"?st.ch-1:st.ch,"after"):st,dt=st.sticky=="before"?ke(st.line,st.ch+1,"before"):st);for(var Pt=0;Pt<5;Pt++){var Nt=!1,zt=Mn(it,st),jt=!dt||dt==st?zt:Mn(it,dt);ft={left:Math.min(zt.left,jt.left),top:Math.min(zt.top,jt.top)-ht,right:Math.max(zt.left,jt.left),bottom:Math.max(zt.bottom,jt.bottom)+ht};var Zt=uu(it,ft),xe=it.doc.scrollTop,Xt=it.doc.scrollLeft;if(Zt.scrollTop!=null&&(Ms(it,Zt.scrollTop),Math.abs(it.doc.scrollTop-xe)>1&&(Nt=!0)),Zt.scrollLeft!=null&&(us(it,Zt.scrollLeft),Math.abs(it.doc.scrollLeft-Xt)>1&&(Nt=!0)),!Nt)break}return ft}function Bl(it,st){var dt=uu(it,st);dt.scrollTop!=null&&Ms(it,dt.scrollTop),dt.scrollLeft!=null&&us(it,dt.scrollLeft)}function uu(it,st){var dt=it.display,ht=Gr(it.display);st.top<0&&(st.top=0);var ft=it.curOp&&it.curOp.scrollTop!=null?it.curOp.scrollTop:dt.scroller.scrollTop,Pt=qe(it),Nt={};st.bottom-st.top>Pt&&(st.bottom=st.top+Pt);var zt=it.doc.height+Tl(dt),jt=st.topzt-ht;if(st.topft+Pt){var xe=Math.min(st.top,(Zt?zt:st.bottom)-Pt);xe!=ft&&(Nt.scrollTop=xe)}var Xt=it.options.fixedGutter?0:dt.gutters.offsetWidth,Re=it.curOp&&it.curOp.scrollLeft!=null?it.curOp.scrollLeft:dt.scroller.scrollLeft-Xt,Te=Ua(it)-dt.gutters.offsetWidth,Pn=st.right-st.left>Te;return Pn&&(st.right=st.left+Te),st.left<10?Nt.scrollLeft=0:st.leftTe+Re-3&&(Nt.scrollLeft=st.right+(Pn?0:10)-Te),Nt}function hu(it,st){st!=null&&(Il(it),it.curOp.scrollTop=(it.curOp.scrollTop==null?it.doc.scrollTop:it.curOp.scrollTop)+st)}function tl(it){Il(it);var st=it.getCursor();it.curOp.scrollToPos={from:st,to:st,margin:it.options.cursorScrollMargin}}function fl(it,st,dt){(st!=null||dt!=null)&&Il(it),st!=null&&(it.curOp.scrollLeft=st),dt!=null&&(it.curOp.scrollTop=dt)}function xo(it,st){Il(it),it.curOp.scrollToPos=st}function Il(it){var st=it.curOp.scrollToPos;if(st){it.curOp.scrollToPos=null;var dt=Di(it,st.from),ht=Di(it,st.to);qu(it,dt,ht,st.margin)}}function qu(it,st,dt,ht){var ft=uu(it,{left:Math.min(st.left,dt.left),top:Math.min(st.top,dt.top)-ht,right:Math.max(st.right,dt.right),bottom:Math.max(st.bottom,dt.bottom)+ht});fl(it,ft.scrollLeft,ft.scrollTop)}function Ms(it,st){Math.abs(it.doc.scrollTop-st)<2||(vt||eh(it,{top:st}),$u(it,st,!0),vt&&eh(it),Mh(it,100))}function $u(it,st,dt){st=Math.max(0,Math.min(it.display.scroller.scrollHeight-it.display.scroller.clientHeight,st)),!(it.display.scroller.scrollTop==st&&!dt)&&(it.doc.scrollTop=st,it.display.scrollbars.setScrollTop(st),it.display.scroller.scrollTop!=st&&(it.display.scroller.scrollTop=st))}function us(it,st,dt,ht){st=Math.max(0,Math.min(st,it.display.scroller.scrollWidth-it.display.scroller.clientWidth)),!((dt?st==it.doc.scrollLeft:Math.abs(it.doc.scrollLeft-st)<2)&&!ht)&&(it.doc.scrollLeft=st,rd(it),it.display.scroller.scrollLeft!=st&&(it.display.scroller.scrollLeft=st),it.display.scrollbars.setScrollLeft(st))}function ma(it){var st=it.display,dt=st.gutters.offsetWidth,ht=Math.round(it.doc.height+Tl(it.display));return{clientHeight:st.scroller.clientHeight,viewHeight:st.wrapper.clientHeight,scrollWidth:st.scroller.scrollWidth,clientWidth:st.scroller.clientWidth,viewWidth:st.wrapper.clientWidth,barLeft:it.options.fixedGutter?dt:0,docHeight:ht,scrollHeight:ht+Gs(it)+st.barHeight,nativeBarWidth:st.nativeBarWidth,gutterWidth:dt}}var pl=function(it,st,dt){this.cm=dt;var ht=this.vert=te("div",[te("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ft=this.horiz=te("div",[te("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ht.tabIndex=ft.tabIndex=-1,it(ht),it(ft),ge(ht,"scroll",function(){ht.clientHeight&&st(ht.scrollTop,"vertical")}),ge(ft,"scroll",function(){ft.clientWidth&&st(ft.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,me&&Ee<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};pl.prototype.update=function(it){var st=it.scrollWidth>it.clientWidth+1,dt=it.scrollHeight>it.clientHeight+1,ht=it.nativeBarWidth;if(dt){this.vert.style.display="block",this.vert.style.bottom=st?ht+"px":"0";var ft=it.viewHeight-(st?ht:0);this.vert.firstChild.style.height=Math.max(0,it.scrollHeight-it.clientHeight+ft)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(st){this.horiz.style.display="block",this.horiz.style.right=dt?ht+"px":"0",this.horiz.style.left=it.barLeft+"px";var Pt=it.viewWidth-it.barLeft-(dt?ht:0);this.horiz.firstChild.style.width=Math.max(0,it.scrollWidth-it.clientWidth+Pt)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&it.clientHeight>0&&(ht==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:dt?ht:0,bottom:st?ht:0}},pl.prototype.setScrollLeft=function(it){this.horiz.scrollLeft!=it&&(this.horiz.scrollLeft=it),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},pl.prototype.setScrollTop=function(it){this.vert.scrollTop!=it&&(this.vert.scrollTop=it),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},pl.prototype.zeroWidthHack=function(){var it=ct&&!Ae?"12px":"18px";this.horiz.style.height=this.vert.style.width=it,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new It,this.disableVert=new It},pl.prototype.enableZeroWidthBar=function(it,st,dt){it.style.pointerEvents="auto";function ht(){var ft=it.getBoundingClientRect(),Pt=dt=="vert"?document.elementFromPoint(ft.right-1,(ft.top+ft.bottom)/2):document.elementFromPoint((ft.right+ft.left)/2,ft.bottom-1);Pt!=it?it.style.pointerEvents="none":st.set(1e3,ht)}st.set(1e3,ht)},pl.prototype.clear=function(){var it=this.horiz.parentNode;it.removeChild(this.horiz),it.removeChild(this.vert)};var Wa=function(){};Wa.prototype.update=function(){return{bottom:0,right:0}},Wa.prototype.setScrollLeft=function(){},Wa.prototype.setScrollTop=function(){},Wa.prototype.clear=function(){};function eo(it,st){st||(st=ma(it));var dt=it.display.barWidth,ht=it.display.barHeight;Tr(it,st);for(var ft=0;ft<4&&dt!=it.display.barWidth||ht!=it.display.barHeight;ft++)dt!=it.display.barWidth&&it.options.lineWrapping&&si(it),Tr(it,ma(it)),dt=it.display.barWidth,ht=it.display.barHeight}function Tr(it,st){var dt=it.display,ht=dt.scrollbars.update(st);dt.sizer.style.paddingRight=(dt.barWidth=ht.right)+"px",dt.sizer.style.paddingBottom=(dt.barHeight=ht.bottom)+"px",dt.heightForcer.style.borderBottom=ht.bottom+"px solid transparent",ht.right&&ht.bottom?(dt.scrollbarFiller.style.display="block",dt.scrollbarFiller.style.height=ht.bottom+"px",dt.scrollbarFiller.style.width=ht.right+"px"):dt.scrollbarFiller.style.display="",ht.bottom&&it.options.coverGutterNextToScrollbar&&it.options.fixedGutter?(dt.gutterFiller.style.display="block",dt.gutterFiller.style.height=ht.bottom+"px",dt.gutterFiller.style.width=st.gutterWidth+"px"):dt.gutterFiller.style.display=""}var Ya={native:pl,null:Wa};function bl(it){it.display.scrollbars&&(it.display.scrollbars.clear(),it.display.scrollbars.addClass&&Yt(it.display.wrapper,it.display.scrollbars.addClass)),it.display.scrollbars=new Ya[it.options.scrollbarStyle](function(st){it.display.wrapper.insertBefore(st,it.display.scrollbarFiller),ge(st,"mousedown",function(){it.state.focused&&setTimeout(function(){return it.display.input.focus()},0)}),st.setAttribute("cm-not-content","true")},function(st,dt){dt=="horizontal"?us(it,st):Ms(it,st)},it),it.display.scrollbars.addClass&&Ne(it.display.wrapper,it.display.scrollbars.addClass)}var Kl=0;function Tu(it){it.curOp={cm:it,viewChanged:!1,startHeight:it.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Kl},Nu(it.curOp)}function du(it){var st=it.curOp;st&&ku(st,function(dt){for(var ht=0;ht=dt.viewTo)||dt.maxLineChanged&&st.options.lineWrapping,it.update=it.mustUpdate&&new th(st,it.mustUpdate&&{top:it.scrollTop,ensure:it.scrollToPos},it.forceUpdate)}function Vd(it){it.updatedDisplay=it.mustUpdate&&Cc(it.cm,it.update)}function id(it){var st=it.cm,dt=st.display;it.updatedDisplay&&si(st),it.barMeasure=ma(st),dt.maxLineChanged&&!st.options.lineWrapping&&(it.adjustWidthTo=No(st,dt.maxLine,dt.maxLine.text.length).left+3,st.display.sizerWidth=it.adjustWidthTo,it.barMeasure.scrollWidth=Math.max(dt.scroller.clientWidth,dt.sizer.offsetLeft+it.adjustWidthTo+Gs(st)+st.display.barWidth),it.maxScrollLeft=Math.max(0,dt.sizer.offsetLeft+it.adjustWidthTo-Ua(st))),(it.updatedDisplay||it.selectionChanged)&&(it.preparedSelection=dt.input.prepareSelection())}function Br(it){var st=it.cm;it.adjustWidthTo!=null&&(st.display.sizer.style.minWidth=it.adjustWidthTo+"px",it.maxScrollLeft=it.display.viewTo)){var dt=+new Date+it.options.workTime,ht=io(it,st.highlightFrontier),ft=[];st.iter(ht.line,Math.min(st.first+st.size,it.display.viewTo+500),function(Pt){if(ht.line>=it.display.viewFrom){var Nt=Pt.styles,zt=Pt.text.length>it.options.maxHighlightLength?Bn(st.mode,ht.state):null,jt=_o(it,Pt,ht,!0);zt&&(ht.state=zt),Pt.styles=jt.styles;var Zt=Pt.styleClasses,xe=jt.classes;xe?Pt.styleClasses=xe:Zt&&(Pt.styleClasses=null);for(var Xt=!Nt||Nt.length!=Pt.styles.length||Zt!=xe&&(!Zt||!xe||Zt.bgClass!=xe.bgClass||Zt.textClass!=xe.textClass),Re=0;!Xt&&Redt)return Mh(it,it.options.workDelay),!0}),st.highlightFrontier=ht.line,st.modeFrontier=Math.max(st.modeFrontier,ht.line),ft.length&&Ro(it,function(){for(var Pt=0;Pt=dt.viewFrom&&st.visible.to<=dt.viewTo&&(dt.updateLineNumbers==null||dt.updateLineNumbers>=dt.viewTo)&&dt.renderedView==dt.view&&Us(it)==0)return!1;Kr(it)&&(Uo(it),st.dims=Ho(it));var ft=ht.first+ht.size,Pt=Math.max(st.visible.from-it.options.viewportMargin,ht.first),Nt=Math.min(ft,st.visible.to+it.options.viewportMargin);dt.viewFromNt&&dt.viewTo-Nt<20&&(Nt=Math.min(ft,dt.viewTo)),Je&&(Pt=Ti(it.doc,Pt),Nt=ci(it.doc,Nt));var zt=Pt!=dt.viewFrom||Nt!=dt.viewTo||dt.lastWrapHeight!=st.wrapperHeight||dt.lastWrapWidth!=st.wrapperWidth;Bo(it,Pt,Nt),dt.viewOffset=oo(An(it.doc,dt.viewFrom)),it.display.mover.style.top=dt.viewOffset+"px";var jt=Us(it);if(!zt&&jt==0&&!st.force&&dt.renderedView==dt.view&&(dt.updateLineNumbers==null||dt.updateLineNumbers>=dt.viewTo))return!1;var Zt=pf(it);return jt>4&&(dt.lineDiv.style.display="none"),od(it,dt.updateLineNumbers,st.dims),jt>4&&(dt.lineDiv.style.display=""),dt.renderedView=dt.view,ka(Zt),$t(dt.cursorDiv),$t(dt.selectionDiv),dt.gutters.style.height=dt.sizer.style.minHeight=0,zt&&(dt.lastWrapHeight=st.wrapperHeight,dt.lastWrapWidth=st.wrapperWidth,Mh(it,400)),dt.updateLineNumbers=null,!0}function or(it,st){for(var dt=st.viewport,ht=!0;;ht=!1){if(!ht||!it.options.lineWrapping||st.oldDisplayWidth==Ua(it)){if(dt&&dt.top!=null&&(dt={top:Math.min(it.doc.height+Tl(it.display)-qe(it),dt.top)}),st.visible=mo(it.display,it.doc,dt),st.visible.from>=it.display.viewFrom&&st.visible.to<=it.display.viewTo)break}else ht&&(st.visible=mo(it.display,it.doc,dt));if(!Cc(it,st))break;si(it);var ft=ma(it);So(it),eo(it,ft),Xl(it,ft),st.force=!1}st.signal(it,"update",it),(it.display.viewFrom!=it.display.reportedViewFrom||it.display.viewTo!=it.display.reportedViewTo)&&(st.signal(it,"viewportChange",it,it.display.viewFrom,it.display.viewTo),it.display.reportedViewFrom=it.display.viewFrom,it.display.reportedViewTo=it.display.viewTo)}function eh(it,st){var dt=new th(it,st);if(Cc(it,dt)){si(it),or(it,dt);var ht=ma(it);So(it),eo(it,ht),Xl(it,ht),dt.finish()}}function od(it,st,dt){var ht=it.display,ft=it.options.lineNumbers,Pt=ht.lineDiv,Nt=Pt.firstChild;function zt(Pn){var Nn=Pn.nextSibling;return qt&&ct&&it.display.currentWheelTarget==Pn?Pn.style.display="none":Pn.parentNode.removeChild(Pn),Nn}for(var jt=ht.view,Zt=ht.viewFrom,xe=0;xe-1&&(Te=!1),wh(it,Xt,Zt,dt)),Te&&($t(Xt.lineNumber),Xt.lineNumber.appendChild(document.createTextNode(Wi(it.options,Zt)))),Nt=Xt.node.nextSibling}Zt+=Xt.size}for(;Nt;)Nt=zt(Nt)}function cu(it){var st=it.gutters.offsetWidth;it.sizer.style.marginLeft=st+"px"}function Xl(it,st){it.display.sizer.style.minHeight=st.docHeight+"px",it.display.heightForcer.style.top=st.docHeight+"px",it.display.gutters.style.height=st.docHeight+it.display.barHeight+Gs(it)+"px"}function rd(it){var st=it.display,dt=st.view;if(!(!st.alignWidgets&&(!st.gutters.firstChild||!it.options.fixedGutter))){for(var ht=Qr(st)-st.scroller.scrollLeft+it.doc.scrollLeft,ft=st.gutters.offsetWidth,Pt=ht+"px",Nt=0;NtNt.clientWidth,jt=Nt.scrollHeight>Nt.clientHeight;if(ht&&zt||ft&&jt){if(ft&&ct&&qt){t:for(var Zt=st.target,xe=Pt.view;Zt!=Nt;Zt=Zt.parentNode)for(var Xt=0;Xt=0&&an(it,ht.to())<=0)return dt}return-1};var rr=function(it,st){this.anchor=it,this.head=st};rr.prototype.from=function(){return vi(this.anchor,this.head)},rr.prototype.to=function(){return Po(this.anchor,this.head)},rr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function yl(it,st,dt){var ht=it&&it.options.selectionsMayTouch,ft=st[dt];st.sort(function(Re,Te){return an(Re.from(),Te.from())}),dt=ne(st,ft);for(var Pt=1;Pt0:jt>=0){var Zt=vi(zt.from(),Nt.from()),xe=Po(zt.to(),Nt.to()),Xt=zt.empty()?Nt.from()==Nt.head:zt.from()==zt.head;Pt<=dt&&--dt,st.splice(--Pt,2,new rr(Xt?xe:Zt,Xt?Zt:xe))}}return new va(st,dt)}function br(it,st){return new va([new rr(it,st||it)],0)}function ya(it){return it.text?ke(it.from.line+it.text.length-1,re(it.text).length+(it.text.length==1?it.from.ch:0)):it.to}function nh(it,st){if(an(it,st.from)<0)return it;if(an(it,st.to)<=0)return ya(st);var dt=it.line+st.text.length-(st.to.line-st.from.line)-1,ht=it.ch;return it.line==st.to.line&&(ht+=ya(st).ch-st.to.ch),ke(dt,ht)}function sd(it,st){for(var dt=[],ht=0;ht1&&it.remove(zt.line+1,Pn-1),it.insert(zt.line+1,$n)}ii(it,"change",it,st)}function Es(it,st,dt){function ht(ft,Pt,Nt){if(ft.linked)for(var zt=0;zt1&&!it.done[it.done.length-2].ranges)return it.done.pop(),re(it.done)}function ld(it,st,dt,ht){var ft=it.history;ft.undone.length=0;var Pt=+new Date,Nt,zt;if((ft.lastOp==ht||ft.lastOrigin==st.origin&&st.origin&&(st.origin.charAt(0)=="+"&&ft.lastModTime>Pt-(it.cm?it.cm.options.historyEventDelay:500)||st.origin.charAt(0)=="*"))&&(Nt=ad(ft,ft.lastOp==ht)))zt=re(Nt.changes),an(st.from,st.to)==0&&an(st.from,zt.to)==0?zt.to=ya(st):Nt.changes.push(Zd(it,st));else{var jt=re(ft.done);for((!jt||!jt.ranges)&&Ii(it.sel,ft.done),Nt={changes:[Zd(it,st)],generation:ft.generation},ft.done.push(Nt);ft.done.length>ft.undoDepth;)ft.done.shift(),ft.done[0].ranges||ft.done.shift()}ft.done.push(dt),ft.generation=++ft.maxGeneration,ft.lastModTime=ft.lastSelTime=Pt,ft.lastOp=ft.lastSelOp=ht,ft.lastOrigin=ft.lastSelOrigin=st.origin,zt||pn(it,"historyAdded")}function Lc(it,st,dt,ht){var ft=st.charAt(0);return ft=="*"||ft=="+"&&dt.ranges.length==ht.ranges.length&&dt.somethingSelected()==ht.somethingSelected()&&new Date-it.history.lastSelTime<=(it.cm?it.cm.options.historyEventDelay:500)}function Gn(it,st,dt,ht){var ft=it.history,Pt=ht&&ht.origin;dt==ft.lastSelOp||Pt&&ft.lastSelOrigin==Pt&&(ft.lastModTime==ft.lastSelTime&&ft.lastOrigin==Pt||Lc(it,Pt,re(ft.done),st))?ft.done[ft.done.length-1]=st:Ii(st,ft.done),ft.lastSelTime=+new Date,ft.lastSelOrigin=Pt,ft.lastSelOp=dt,ht&&ht.clearRedo!==!1&&oh(ft.undone)}function Ii(it,st){var dt=re(st);dt&&dt.ranges&&dt.equals(it)||st.push(it)}function vs(it,st,dt,ht){var ft=st["spans_"+it.id],Pt=0;it.iter(Math.max(it.first,dt),Math.min(it.first+it.size,ht),function(Nt){Nt.markedSpans&&((ft||(ft=st["spans_"+it.id]={}))[Pt]=Nt.markedSpans),++Pt})}function ys(it){if(!it)return null;for(var st,dt=0;dt-1&&(re(zt)[Xt]=Zt[Xt],delete Zt[Xt])}}return ht}function ug(it,st,dt,ht){if(ht){var ft=it.anchor;if(dt){var Pt=an(st,ft)<0;Pt!=an(dt,ft)<0?(ft=st,st=dt):Pt!=an(st,dt)<0&&(st=dt)}return new rr(ft,st)}else return new rr(dt||st,st)}function hg(it,st,dt,ht,ft){ft==null&&(ft=it.cm&&(it.cm.display.shift||it.extend)),Sa(it,new va([ug(it.sel.primary(),st,dt,ft)],0),ht)}function Y0(it,st,dt){for(var ht=[],ft=it.cm&&(it.cm.display.shift||it.extend),Pt=0;Pt=st.ch:zt.to>st.ch))){if(ft&&(pn(jt,"beforeCursorEnter"),jt.explicitlyCleared))if(Pt.markedSpans){--Nt;continue}else break;if(!jt.atomic)continue;if(dt){var Xt=jt.find(ht<0?1:-1),Re=void 0;if((ht<0?xe:Zt)&&(Xt=yf(it,Xt,-ht,Xt&&Xt.line==st.line?Pt:null)),Xt&&Xt.line==st.line&&(Re=an(Xt,dt))&&(ht<0?Re<0:Re>0))return rh(it,Xt,st,ht,ft)}var Te=jt.find(ht<0?-1:1);return(ht<0?Zt:xe)&&(Te=yf(it,Te,ht,Te.line==st.line?Pt:null)),Te?rh(it,Te,st,ht,ft):null}}return st}function Nc(it,st,dt,ht,ft){var Pt=ht||1,Nt=rh(it,st,dt,Pt,ft)||!ft&&rh(it,st,dt,Pt,!0)||rh(it,st,dt,-Pt,ft)||!ft&&rh(it,st,dt,-Pt,!0);return Nt||(it.cantEdit=!0,ke(it.first,0))}function yf(it,st,dt,ht){return dt<0&&st.ch==0?st.line>it.first?ui(it,ke(st.line-1)):null:dt>0&&st.ch==(ht||An(it,st.line)).text.length?st.line=0;--ft)dd(it,{from:ht[ft].from,to:ht[ft].to,text:ft?[""]:st.text,origin:st.origin});else dd(it,st)}}function dd(it,st){if(!(st.text.length==1&&st.text[0]==""&&an(st.from,st.to)==0)){var dt=sd(it,st);ld(it,st,dt,it.cm?it.cm.curOp.id:NaN),Qd(it,st,dt,$o(it,st));var ht=[];Es(it,function(ft,Pt){!Pt&&ne(ht,ft.history)==-1&&(xf(ft.history,st),ht.push(ft.history)),Qd(ft,st,null,$o(ft,st))})}}function Dc(it,st,dt){var ht=it.cm&&it.cm.state.suppressEdits;if(!(ht&&!dt)){for(var ft=it.history,Pt,Nt=it.sel,zt=st=="undo"?ft.done:ft.undone,jt=st=="undo"?ft.undone:ft.done,Zt=0;Zt=0;--Te){var Pn=Re(Te);if(Pn)return Pn.v}}}}function Sf(it,st){if(st!=0&&(it.first+=st,it.sel=new va(kn(it.sel.ranges,function(ft){return new rr(ke(ft.anchor.line+st,ft.anchor.ch),ke(ft.head.line+st,ft.head.ch))}),it.sel.primIndex),it.cm)){Hi(it.cm,it.first,it.first-st,st);for(var dt=it.cm.display,ht=dt.viewFrom;htit.lastLine())){if(st.from.linePt&&(st={from:st.from,to:ke(Pt,An(it,Pt).text.length),text:[st.text[0]],origin:st.origin}),st.removed=li(it,st.from,st.to),dt||(dt=sd(it,st)),it.cm?_0(it.cm,st,ht):mu(it,st,ht),hd(it,dt,le),it.cantEdit&&Nc(it,ke(it.firstLine(),0))&&(it.cantEdit=!1)}}function _0(it,st,dt){var ht=it.doc,ft=it.display,Pt=st.from,Nt=st.to,zt=!1,jt=Pt.line;it.options.lineWrapping||(jt=ie(tr(An(ht,Pt.line))),ht.iter(jt,Nt.line+1,function(Te){if(Te==ft.maxLine)return zt=!0,!0})),ht.sel.contains(st.from,st.to)>-1&&Mi(it),mu(ht,st,dt,Zo(it)),it.options.lineWrapping||(ht.iter(jt,Pt.line+st.text.length,function(Te){var Pn=ir(Te);Pn>ft.maxLineLength&&(ft.maxLine=Te,ft.maxLineLength=Pn,ft.maxLineChanged=!0,zt=!1)}),zt&&(it.curOp.updateMaxLine=!0)),co(ht,Pt.line),Mh(it,400);var Zt=st.text.length-(Nt.line-Pt.line)-1;st.full?Hi(it):Pt.line==Nt.line&&st.text.length==1&&!pu(it.doc,st)?Ei(it,Pt.line,"text"):Hi(it,Pt.line,Nt.line+1,Zt);var xe=ji(it,"changes"),Xt=ji(it,"change");if(Xt||xe){var Re={from:Pt,to:Nt,text:st.text,removed:st.removed,origin:st.origin};Xt&&ii(it,"change",it,Re),xe&&(it.curOp.changeObjs||(it.curOp.changeObjs=[])).push(Re)}it.display.selForContextMenu=null}function cd(it,st,dt,ht,ft){var Pt;ht||(ht=dt),an(ht,dt)<0&&(Pt=[ht,dt],dt=Pt[0],ht=Pt[1]),typeof st=="string"&&(st=it.splitLines(st)),kh(it,{from:dt,to:ht,text:st,origin:ft})}function jl(it,st,dt,ht){dt1||!(this.children[0]instanceof Kd))){var zt=[];this.collapse(zt),this.children=[new Kd(zt)],this.children[0].parent=this}},collapse:function(it){for(var st=0;st50){for(var Nt=ft.lines.length%25+25,zt=Nt;zt10);it.parent.maybeSpill()}},iterN:function(it,st,dt){for(var ht=0;htit.display.maxLineLength&&(it.display.maxLine=Zt,it.display.maxLineLength=xe,it.display.maxLineChanged=!0)}ht!=null&&it&&this.collapsed&&Hi(it,ht,ft+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,it&&Ec(it.doc)),it&&ii(it,"markerCleared",it,this,ht,ft),st&&du(it),this.parent&&this.parent.clear()}},de.prototype.find=function(it,st){it==null&&this.type=="bookmark"&&(it=1);for(var dt,ht,ft=0;ft0||Nt==0&&Pt.clearWhenEmpty!==!1)return Pt;if(Pt.replacedWith&&(Pt.collapsed=!0,Pt.widgetNode=Pe("span",[Pt.replacedWith],"CodeMirror-widget"),ht.handleMouseEvents||Pt.widgetNode.setAttribute("cm-ignore-events","true"),ht.insertLeft&&(Pt.widgetNode.insertLeft=!0)),Pt.collapsed){if(Zl(it,st.line,st,dt,Pt)||st.line!=dt.line&&Zl(it,dt.line,st,dt,Pt))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ke()}Pt.addToHistory&&ld(it,{from:st,to:dt,origin:"markText"},it.sel,NaN);var zt=st.line,jt=it.cm,Zt;if(it.iter(zt,dt.line+1,function(Xt){jt&&Pt.collapsed&&!jt.options.lineWrapping&&tr(Xt)==jt.display.maxLine&&(Zt=!0),Pt.collapsed&&zt!=st.line&&Ki(Xt,0),Fs(Xt,new Lo(Pt,zt==st.line?st.ch:null,zt==dt.line?dt.ch:null)),++zt}),Pt.collapsed&&it.iter(st.line,dt.line+1,function(Xt){tn(it,Xt)&&Ki(Xt,0)}),Pt.clearOnEnter&&ge(Pt,"beforeCursorEnter",function(){return Pt.clear()}),Pt.readOnly&&(po(),(it.history.done.length||it.history.undone.length)&&it.clearHistory()),Pt.collapsed&&(Pt.id=++K0,Pt.atomic=!0),jt){if(Zt&&(jt.curOp.updateMaxLine=!0),Pt.collapsed)Hi(jt,st.line,dt.line+1);else if(Pt.className||Pt.startStyle||Pt.endStyle||Pt.css||Pt.attributes||Pt.title)for(var xe=st.line;xe<=dt.line;xe++)Ei(jt,xe,"text");Pt.atomic&&Ec(jt.doc),ii(jt,"markerAdded",jt,Pt)}return Pt}var Iu=function(it,st){this.markers=it,this.primary=st;for(var dt=0;dt=0;jt--)kh(this,ht[jt]);zt?dg(this,zt):this.cm&&tl(this.cm)}),undo:mr(function(){Dc(this,"undo")}),redo:mr(function(){Dc(this,"redo")}),undoSelection:mr(function(){Dc(this,"undo",!0)}),redoSelection:mr(function(){Dc(this,"redo",!0)}),setExtending:function(it){this.extend=it},getExtending:function(){return this.extend},historySize:function(){for(var it=this.history,st=0,dt=0,ht=0;ht=it.ch)&&st.push(ft.marker.parent||ft.marker)}return st},findMarks:function(it,st,dt){it=ui(this,it),st=ui(this,st);var ht=[],ft=it.line;return this.iter(it.line,st.line+1,function(Pt){var Nt=Pt.markedSpans;if(Nt)for(var zt=0;zt=jt.to||jt.from==null&&ft!=it.line||jt.from!=null&&ft==st.line&&jt.from>=st.ch)&&(!dt||dt(jt.marker))&&ht.push(jt.marker.parent||jt.marker)}++ft}),ht},getAllMarks:function(){var it=[];return this.iter(function(st){var dt=st.markedSpans;if(dt)for(var ht=0;htit)return st=it,!0;it-=Pt,++dt}),ui(this,ke(dt,st))},indexFromPos:function(it){it=ui(this,it);var st=it.ch;if(it.linest&&(st=it.from),it.to!=null&&it.to-1){st.state.draggingText(it),setTimeout(function(){return st.display.input.focus()},20);return}try{var xe=it.dataTransfer.getData("Text");if(xe){var Xt;if(st.state.draggingText&&!st.state.draggingText.copy&&(Xt=st.listSelections()),hd(st.doc,br(dt,dt)),Xt)for(var Re=0;Re=0;zt--)cd(it.doc,"",ht[zt].from,ht[zt].to,"+delete");tl(it)})}function kf(it,st,dt){var ht=fn(it.text,st+dt,dt);return ht<0||ht>it.text.length?null:ht}function gs(it,st,dt){var ht=kf(it,st.ch,dt);return ht==null?null:new ke(st.line,ht,dt<0?"after":"before")}function Ic(it,st,dt,ht,ft){if(it){st.doc.direction=="rtl"&&(ft=-ft);var Pt=Ut(dt,st.doc.direction);if(Pt){var Nt=ft<0?re(Pt):Pt[0],zt=ft<0==(Nt.level==1),jt=zt?"after":"before",Zt;if(Nt.level>0||st.doc.direction=="rtl"){var xe=Oo(st,dt);Zt=ft<0?dt.text.length-1:0;var Xt=Yo(st,xe,Zt).top;Zt=sn(function(Re){return Yo(st,xe,Re).top==Xt},ft<0==(Nt.level==1)?Nt.from:Nt.to-1,Zt),jt=="before"&&(Zt=kf(dt,Zt,1))}else Zt=ft<0?Nt.to:Nt.from;return new ke(ht,Zt,jt)}}return new ke(ht,ft<0?dt.text.length:0,ft<0?"before":"after")}function fg(it,st,dt,ht){var ft=Ut(st,it.doc.direction);if(!ft)return gs(st,dt,ht);dt.ch>=st.text.length?(dt.ch=st.text.length,dt.sticky="before"):dt.ch<=0&&(dt.ch=0,dt.sticky="after");var Pt=xt(ft,dt.ch,dt.sticky),Nt=ft[Pt];if(it.doc.direction=="ltr"&&Nt.level%2==0&&(ht>0?Nt.to>dt.ch:Nt.from=Nt.from&&Re>=xe.begin)){var Te=Xt?"before":"after";return new ke(dt.line,Re,Te)}}var Pn=function($n,xi,ai){for(var ki=function(jr,Is){return Is?new ke(dt.line,zt(jr,1),"before"):new ke(dt.line,jr,"after")};$n>=0&&$n0==(Xi.level!=1),vo=oi?ai.begin:zt(ai.end,-1);if(Xi.from<=vo&&vo0?xe.end:zt(xe.begin,-1);return Hn!=null&&!(ht>0&&Hn==st.text.length)&&(Nn=Pn(ht>0?0:ft.length-1,ht,Zt(Hn)),Nn)?Nn:null}var Dh={selectAll:cs,singleSelection:function(it){return it.setSelection(it.getCursor("anchor"),it.getCursor("head"),le)},killLine:function(it){return il(it,function(st){if(st.empty()){var dt=An(it.doc,st.head.line).text.length;return st.head.ch==dt&&st.head.line0)ft=new ke(ft.line,ft.ch+1),it.replaceRange(Pt.charAt(ft.ch-1)+Pt.charAt(ft.ch-2),ke(ft.line,ft.ch-2),ft,"+transpose");else if(ft.line>it.doc.first){var Nt=An(it.doc,ft.line-1).text;Nt&&(ft=new ke(ft.line,1),it.replaceRange(Pt.charAt(0)+it.doc.lineSeparator()+Nt.charAt(Nt.length-1),ke(ft.line-1,Nt.length-1),ft,"+transpose"))}}dt.push(new rr(ft,ft))}it.setSelections(dt)})},newlineAndIndent:function(it){return Ro(it,function(){for(var st=it.listSelections(),dt=st.length-1;dt>=0;dt--)it.replaceRange(it.doc.lineSeparator(),st[dt].anchor,st[dt].head,"+input");st=it.listSelections();for(var ht=0;htit&&an(st,this.pos)==0&&dt==this.button};var ec,yd;function jf(it,st){var dt=+new Date;return yd&&yd.compare(dt,it,st)?(ec=yd=null,"triple"):ec&&ec.compare(dt,it,st)?(yd=new bf(dt,it,st),ec=null,"double"):(ec=new bf(dt,it,st),yd=null,"single")}function yu(it){var st=this,dt=st.display;if(!(Rn(st,it)||dt.activeTouch&&dt.input.supportsTouch())){if(dt.input.ensurePolled(),dt.shift=it.shiftKey,ia(dt,it)){qt||(dt.scroller.draggable=!1,setTimeout(function(){return dt.scroller.draggable=!0},100));return}if(!xg(st,it)){var ht=_i(st,it),ft=Cr(it),Pt=ht?jf(ht,ft):"single";window.focus(),ft==1&&st.state.selectingText&&st.state.selectingText(it),!(ht&&Of(st,ft,ht,Pt,it))&&(ft==1?ht?op(st,ht,Pt,it):nr(it)==dt.scroller&&Ji(it):ft==2?(ht&&hg(st.doc,ht),setTimeout(function(){return dt.input.focus()},20)):ft==3&&(kt?st.display.input.onContextMenu(it):Ar(st)))}}}function Of(it,st,dt,ht,ft){var Pt="Click";return ht=="double"?Pt="Double"+Pt:ht=="triple"&&(Pt="Triple"+Pt),Pt=(st==1?"Left":st==2?"Middle":"Right")+Pt,md(it,Nf(Pt,ft),ft,function(Nt){if(typeof Nt=="string"&&(Nt=Dh[Nt]),!Nt)return!1;var zt=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),zt=Nt(it,dt)!=Qe}finally{it.state.suppressEdits=!1}return zt})}function yg(it,st,dt){var ht=it.getOption("configureMouse"),ft=ht?ht(it,st,dt):{};if(ft.unit==null){var Pt=lt?dt.shiftKey&&dt.metaKey:dt.altKey;ft.unit=Pt?"rectangle":st=="single"?"char":st=="double"?"word":"line"}return(ft.extend==null||it.doc.extend)&&(ft.extend=it.doc.extend||dt.shiftKey),ft.addNew==null&&(ft.addNew=ct?dt.metaKey:dt.ctrlKey),ft.moveOnDrag==null&&(ft.moveOnDrag=!(ct?dt.altKey:dt.ctrlKey)),ft}function op(it,st,dt,ht){me?setTimeout(Dn(gi,it),0):it.curOp.focus=ye();var ft=yg(it,dt,ht),Pt=it.doc.sel,Nt;it.options.dragDrop&&bo&&!it.isReadOnly()&&dt=="single"&&(Nt=Pt.contains(st))>-1&&(an((Nt=Pt.ranges[Nt]).from(),st)<0||st.xRel>0)&&(an(Nt.to(),st)>0||st.xRel<0)?zf(it,ht,st,ft):ev(it,ht,st,ft)}function zf(it,st,dt,ht){var ft=it.display,Pt=!1,Nt=hs(it,function(Zt){qt&&(ft.scroller.draggable=!1),it.state.draggingText=!1,gn(ft.wrapper.ownerDocument,"mouseup",Nt),gn(ft.wrapper.ownerDocument,"mousemove",zt),gn(ft.scroller,"dragstart",jt),gn(ft.scroller,"drop",Nt),Pt||(Ji(Zt),ht.addNew||hg(it.doc,dt,null,null,ht.extend),qt&&!se||me&&Ee==9?setTimeout(function(){ft.wrapper.ownerDocument.body.focus({preventScroll:!0}),ft.input.focus()},20):ft.input.focus())}),zt=function(Zt){Pt=Pt||Math.abs(st.clientX-Zt.clientX)+Math.abs(st.clientY-Zt.clientY)>=10},jt=function(){return Pt=!0};qt&&(ft.scroller.draggable=!0),it.state.draggingText=Nt,Nt.copy=!ht.moveOnDrag,ft.scroller.dragDrop&&ft.scroller.dragDrop(),ge(ft.wrapper.ownerDocument,"mouseup",Nt),ge(ft.wrapper.ownerDocument,"mousemove",zt),ge(ft.scroller,"dragstart",jt),ge(ft.scroller,"drop",Nt),Ar(it),setTimeout(function(){return ft.input.focus()},20)}function Rf(it,st,dt){if(dt=="char")return new rr(st,st);if(dt=="word")return it.findWordAt(st);if(dt=="line")return new rr(ke(st.line,0),ui(it.doc,ke(st.line+1,0)));var ht=dt(it,st);return new rr(ht.from,ht.to)}function ev(it,st,dt,ht){var ft=it.display,Pt=it.doc;Ji(st);var Nt,zt,jt=Pt.sel,Zt=jt.ranges;if(ht.addNew&&!ht.extend?(zt=Pt.sel.contains(dt),zt>-1?Nt=Zt[zt]:Nt=new rr(dt,dt)):(Nt=Pt.sel.primary(),zt=Pt.sel.primIndex),ht.unit=="rectangle")ht.addNew||(Nt=new rr(dt,dt)),dt=_i(it,st,!0,!0),zt=-1;else{var xe=Rf(it,dt,ht.unit);ht.extend?Nt=ug(Nt,xe.anchor,xe.head,ht.extend):Nt=xe}ht.addNew?zt==-1?(zt=Zt.length,Sa(Pt,yl(it,Zt.concat([Nt]),zt),{scroll:!1,origin:"*mouse"})):Zt.length>1&&Zt[zt].empty()&&ht.unit=="char"&&!ht.extend?(Sa(Pt,yl(it,Zt.slice(0,zt).concat(Zt.slice(zt+1)),0),{scroll:!1,origin:"*mouse"}),jt=Pt.sel):Nh(Pt,zt,Nt,Oe):(zt=0,Sa(Pt,new va([Nt],0),Oe),jt=Pt.sel);var Xt=dt;function Re(ai){if(an(Xt,ai)!=0)if(Xt=ai,ht.unit=="rectangle"){for(var ki=[],Xi=it.options.tabSize,oi=Vt(An(Pt,dt.line).text,dt.ch,Xi),vo=Vt(An(Pt,ai.line).text,ai.ch,Xi),jr=Math.min(oi,vo),Is=Math.max(oi,vo),Jr=Math.min(dt.line,ai.line),_a=Math.min(it.lastLine(),Math.max(dt.line,ai.line));Jr<=_a;Jr++){var xa=An(Pt,Jr).text,Ns=Cn(xa,jr,Xi);jr==Is?ki.push(new rr(ke(Jr,Ns),ke(Jr,Ns))):xa.length>Ns&&ki.push(new rr(ke(Jr,Ns),ke(Jr,Cn(xa,Is,Xi))))}ki.length||ki.push(new rr(dt,dt)),Sa(Pt,yl(it,jt.ranges.slice(0,zt).concat(ki),zt),{origin:"*mouse",scroll:!1}),it.scrollIntoView(ai)}else{var ol=Nt,sa=Rf(it,ai,ht.unit),ks=ol.anchor,Xo;an(sa.anchor,ks)>0?(Xo=sa.head,ks=vi(ol.from(),sa.anchor)):(Xo=sa.anchor,ks=Po(ol.to(),sa.head));var ns=jt.ranges.slice(0);ns[zt]=rp(it,new rr(ui(Pt,ks),Xo)),Sa(Pt,yl(it,ns,zt),Oe)}}var Te=ft.wrapper.getBoundingClientRect(),Pn=0;function Nn(ai){var ki=++Pn,Xi=_i(it,ai,!0,ht.unit=="rectangle");if(Xi)if(an(Xi,Xt)!=0){it.curOp.focus=ye(),Re(Xi);var oi=mo(ft,Pt);(Xi.line>=oi.to||Xi.lineTe.bottom?20:0;vo&&setTimeout(hs(it,function(){Pn==ki&&(ft.scroller.scrollTop+=vo,Nn(ai))}),50)}}function Hn(ai){it.state.selectingText=!1,Pn=1/0,ai&&(Ji(ai),ft.input.focus()),gn(ft.wrapper.ownerDocument,"mousemove",$n),gn(ft.wrapper.ownerDocument,"mouseup",xi),Pt.history.lastSelOrigin=null}var $n=hs(it,function(ai){ai.buttons===0||!Cr(ai)?Hn(ai):Nn(ai)}),xi=hs(it,Hn);it.state.selectingText=xi,ge(ft.wrapper.ownerDocument,"mousemove",$n),ge(ft.wrapper.ownerDocument,"mouseup",xi)}function rp(it,st){var dt=st.anchor,ht=st.head,ft=An(it.doc,dt.line);if(an(dt,ht)==0&&dt.sticky==ht.sticky)return st;var Pt=Ut(ft);if(!Pt)return st;var Nt=xt(Pt,dt.ch,dt.sticky),zt=Pt[Nt];if(zt.from!=dt.ch&&zt.to!=dt.ch)return st;var jt=Nt+(zt.from==dt.ch==(zt.level!=1)?0:1);if(jt==0||jt==Pt.length)return st;var Zt;if(ht.line!=dt.line)Zt=(ht.line-dt.line)*(it.doc.direction=="ltr"?1:-1)>0;else{var xe=xt(Pt,ht.ch,ht.sticky),Xt=xe-Nt||(ht.ch-dt.ch)*(zt.level==1?-1:1);xe==jt-1||xe==jt?Zt=Xt<0:Zt=Xt>0}var Re=Pt[jt+(Zt?-1:0)],Te=Zt==(Re.level==1),Pn=Te?Re.from:Re.to,Nn=Te?"after":"before";return dt.ch==Pn&&dt.sticky==Nn?st:new rr(new ke(dt.line,Pn,Nn),ht)}function Sg(it,st,dt,ht){var ft,Pt;if(st.touches)ft=st.touches[0].clientX,Pt=st.touches[0].clientY;else try{ft=st.clientX,Pt=st.clientY}catch(Re){return!1}if(ft>=Math.floor(it.display.gutters.getBoundingClientRect().right))return!1;ht&&Ji(st);var Nt=it.display,zt=Nt.lineDiv.getBoundingClientRect();if(Pt>zt.bottom||!ji(it,dt))return Io(st);Pt-=zt.top-Nt.viewOffset;for(var jt=0;jt=ft){var xe=yn(it.doc,Pt),Xt=it.display.gutterSpecs[jt];return pn(it,dt,it,xe,Xt.className,st),Io(st)}}}function xg(it,st){return Sg(it,st,"gutterClick",!0)}function wg(it,st){ia(it.display,st)||sp(it,st)||Rn(it,st,"contextmenu")||kt||it.display.input.onContextMenu(st)}function sp(it,st){return ji(it,"gutterContextMenu")?Sg(it,st,"gutterContextMenu",!1):!1}function Pg(it){it.display.wrapper.className=it.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+it.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Qt(it)}var Fh={toString:function(){return"CodeMirror.Init"}},Gf={},bc={};function ap(it){var st=it.optionHandlers;function dt(ht,ft,Pt,Nt){it.defaults[ht]=ft,Pt&&(st[ht]=Nt?function(zt,jt,Zt){Zt!=Fh&&Pt(zt,jt,Zt)}:Pt)}it.defineOption=dt,it.Init=Fh,dt("value","",function(ht,ft){return ht.setValue(ft)},!0),dt("mode",null,function(ht,ft){ht.doc.modeOption=ft,so(ht)},!0),dt("indentUnit",2,so,!0),dt("indentWithTabs",!1),dt("smartIndent",!0),dt("tabSize",4,function(ht){Lh(ht),Qt(ht),Hi(ht)},!0),dt("lineSeparator",null,function(ht,ft){if(ht.doc.lineSep=ft,!!ft){var Pt=[],Nt=ht.doc.first;ht.doc.iter(function(jt){for(var Zt=0;;){var xe=jt.text.indexOf(ft,Zt);if(xe==-1)break;Zt=xe+ft.length,Pt.push(ke(Nt,xe))}Nt++});for(var zt=Pt.length-1;zt>=0;zt--)cd(ht.doc,ft,Pt[zt],ke(Pt[zt].line,Pt[zt].ch+ft.length))}}),dt("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ht,ft,Pt){ht.state.specialChars=new RegExp(ft.source+(ft.test(" ")?"":"| "),"g"),Pt!=Fh&&ht.refresh()}),dt("specialCharPlaceholder",Ts,function(ht){return ht.refresh()},!0),dt("electricChars",!0),dt("inputStyle",nt?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),dt("spellcheck",!1,function(ht,ft){return ht.getInputField().spellcheck=ft},!0),dt("autocorrect",!1,function(ht,ft){return ht.getInputField().autocorrect=ft},!0),dt("autocapitalize",!1,function(ht,ft){return ht.getInputField().autocapitalize=ft},!0),dt("rtlMoveVisually",!pt),dt("wholeLineUpdateBefore",!0),dt("theme","default",function(ht){Pg(ht),Da(ht)},!0),dt("keyMap","default",function(ht,ft,Pt){var Nt=pd(ft),zt=Pt!=Fh&&pd(Pt);zt&&zt.detach&&zt.detach(ht,Nt),Nt.attach&&Nt.attach(ht,zt||null)}),dt("extraKeys",null),dt("configureMouse",null),dt("lineWrapping",!1,lp,!0),dt("gutters",[],function(ht,ft){ht.display.gutterSpecs=ms(ft,ht.options.lineNumbers),Da(ht)},!0),dt("fixedGutter",!0,function(ht,ft){ht.display.gutters.style.left=ft?Qr(ht.display)+"px":"0",ht.refresh()},!0),dt("coverGutterNextToScrollbar",!1,function(ht){return eo(ht)},!0),dt("scrollbarStyle","native",function(ht){bl(ht),eo(ht),ht.display.scrollbars.setScrollTop(ht.doc.scrollTop),ht.display.scrollbars.setScrollLeft(ht.doc.scrollLeft)},!0),dt("lineNumbers",!1,function(ht,ft){ht.display.gutterSpecs=ms(ht.options.gutters,ft),Da(ht)},!0),dt("firstLineNumber",1,Da,!0),dt("lineNumberFormatter",function(ht){return ht},Da,!0),dt("showCursorWhenSelecting",!1,So,!0),dt("resetSelectionOnContextMenu",!0),dt("lineWiseCopyCut",!0),dt("pasteLinesPerSelection",!0),dt("selectionsMayTouch",!1),dt("readOnly",!1,function(ht,ft){ft=="nocursor"&&(Du(ht),ht.display.input.blur()),ht.display.input.readOnlyChanged(ft)}),dt("screenReaderLabel",null,function(ht,ft){ft=ft===""?null:ft,ht.display.input.screenReaderLabelChanged(ft)}),dt("disableInput",!1,function(ht,ft){ft||ht.display.input.reset()},!0),dt("dragDrop",!0,Mg),dt("allowDropFileTypes",null),dt("cursorBlinkRate",530),dt("cursorScrollMargin",0),dt("cursorHeight",1,So,!0),dt("singleCursorHeightPerLine",!0,So,!0),dt("workTime",100),dt("workDelay",100),dt("flattenSpans",!0,Lh,!0),dt("addModeClass",!1,Lh,!0),dt("pollInterval",100),dt("undoDepth",200,function(ht,ft){return ht.doc.history.undoDepth=ft}),dt("historyEventDelay",1250),dt("viewportMargin",10,function(ht){return ht.refresh()},!0),dt("maxHighlightLength",1e4,Lh,!0),dt("moveInputWithCursor",!0,function(ht,ft){ft||ht.display.input.resetPosition()}),dt("tabindex",null,function(ht,ft){return ht.display.input.getField().tabIndex=ft||""}),dt("autofocus",null),dt("direction","ltr",function(ht,ft){return ht.doc.setDirection(ft)},!0),dt("phrases",null)}function Mg(it,st,dt){var ht=dt&&dt!=Fh;if(!st!=!ht){var ft=it.display.dragFunctions,Pt=st?ge:gn;Pt(it.display.scroller,"dragstart",ft.start),Pt(it.display.scroller,"dragenter",ft.enter),Pt(it.display.scroller,"dragover",ft.over),Pt(it.display.scroller,"dragleave",ft.leave),Pt(it.display.scroller,"drop",ft.drop)}}function lp(it){it.options.lineWrapping?(Ne(it.display.wrapper,"CodeMirror-wrap"),it.display.sizer.style.minWidth="",it.display.sizerWidth=null):(Yt(it.display.wrapper,"CodeMirror-wrap"),fr(it)),Yn(it),Hi(it),Qt(it),setTimeout(function(){return eo(it)},100)}function Qo(it,st){var dt=this;if(!(this instanceof Qo))return new Qo(it,st);this.options=st=st?vn(st):{},vn(Gf,st,!1);var ht=st.value;typeof ht=="string"?ht=new ra(ht,st.mode,null,st.lineSeparator,st.direction):st.mode&&(ht.modeOption=st.mode),this.doc=ht;var ft=new Qo.inputStyles[st.inputStyle](this),Pt=this.display=new ml(it,ht,ft,st);Pt.wrapper.CodeMirror=this,Pg(this),st.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),bl(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new It,keySeq:null,specialChars:null},st.autofocus&&!nt&&Pt.input.focus(),me&&Ee<11&&setTimeout(function(){return dt.display.input.reset(!0)},20),nc(this),xl(),Tu(this),this.curOp.forceUpdate=!0,_d(this,ht),st.autofocus&&!nt||this.hasFocus()?setTimeout(function(){dt.hasFocus()&&!dt.state.focused&&ko(dt)},20):Du(this);for(var Nt in bc)bc.hasOwnProperty(Nt)&&bc[Nt](this,st[Nt],Fh);Kr(this),st.finishInit&&st.finishInit(this);for(var zt=0;zt20*20}ge(st.scroller,"touchstart",function(jt){if(!Rn(it,jt)&&!Pt(jt)&&!xg(it,jt)){st.input.ensurePolled(),clearTimeout(dt);var Zt=+new Date;st.activeTouch={start:Zt,moved:!1,prev:Zt-ht.end<=300?ht:null},jt.touches.length==1&&(st.activeTouch.left=jt.touches[0].pageX,st.activeTouch.top=jt.touches[0].pageY)}}),ge(st.scroller,"touchmove",function(){st.activeTouch&&(st.activeTouch.moved=!0)}),ge(st.scroller,"touchend",function(jt){var Zt=st.activeTouch;if(Zt&&!ia(st,jt)&&Zt.left!=null&&!Zt.moved&&new Date-Zt.start<300){var xe=it.coordsChar(st.activeTouch,"page"),Xt;!Zt.prev||Nt(Zt,Zt.prev)?Xt=new rr(xe,xe):!Zt.prev.prev||Nt(Zt,Zt.prev.prev)?Xt=it.findWordAt(xe):Xt=new rr(ke(xe.line,0),ui(it.doc,ke(xe.line+1,0))),it.setSelection(Xt.anchor,Xt.head),it.focus(),Ji(jt)}ft()}),ge(st.scroller,"touchcancel",ft),ge(st.scroller,"scroll",function(){st.scroller.clientHeight&&(Ms(it,st.scroller.scrollTop),us(it,st.scroller.scrollLeft,!0),pn(it,"scroll",it))}),ge(st.scroller,"mousewheel",function(jt){return Ls(it,jt)}),ge(st.scroller,"DOMMouseScroll",function(jt){return Ls(it,jt)}),ge(st.wrapper,"scroll",function(){return st.wrapper.scrollTop=st.wrapper.scrollLeft=0}),st.dragFunctions={enter:function(jt){Rn(it,jt)||Wr(jt)},over:function(jt){Rn(it,jt)||($0(it,jt),Wr(jt))},start:function(jt){return q0(it,jt)},drop:hs(it,Mf),leave:function(jt){Rn(it,jt)||tp(it)}};var zt=st.input.getField();ge(zt,"keyup",function(jt){return If.call(it,jt)}),ge(zt,"keydown",hs(it,Tf)),ge(zt,"keypress",hs(it,vu)),ge(zt,"focus",function(jt){return ko(it,jt)}),ge(zt,"blur",function(jt){return Du(it,jt)})}var Sd=[];Qo.defineInitHook=function(it){return Sd.push(it)};function Bs(it,st,dt,ht){var ft=it.doc,Pt;dt==null&&(dt="add"),dt=="smart"&&(ft.mode.indent?Pt=io(it,st).state:dt="prev");var Nt=it.options.tabSize,zt=An(ft,st),jt=Vt(zt.text,null,Nt);zt.stateAfter&&(zt.stateAfter=null);var Zt=zt.text.match(/^\s*/)[0],xe;if(!ht&&!/\S/.test(zt.text))xe=0,dt="not";else if(dt=="smart"&&(xe=ft.mode.indent(Pt,zt.text.slice(Zt.length),zt.text),xe==Qe||xe>150)){if(!ht)return;dt="prev"}dt=="prev"?st>ft.first?xe=Vt(An(ft,st-1).text,null,Nt):xe=0:dt=="add"?xe=jt+it.options.indentUnit:dt=="subtract"?xe=jt-it.options.indentUnit:typeof dt=="number"&&(xe=jt+dt),xe=Math.max(0,xe);var Xt="",Re=0;if(it.options.indentWithTabs)for(var Te=Math.floor(xe/Nt);Te;--Te)Re+=Nt,Xt+=" ";if(ReNt,jt=Ui(st),Zt=null;if(zt&&ht.ranges.length>1)if(Va&&Va.text.join(` `)==st){if(ht.ranges.length%Va.text.length==0){Zt=[];for(var xe=0;xe=0;Re--){var Te=ht.ranges[Re],Pn=Te.from(),Nn=Te.to();Te.empty()&&(dt&&dt>0?Pn=ke(Pn.line,Pn.ch-dt):it.state.overwrite&&!zt?Nn=ke(Nn.line,Math.min(An(Pt,Nn.line).text.length,Nn.ch+re(jt).length)):zt&&Va&&Va.lineWise&&Va.text.join(` `)==jt.join(` -`)&&(Pn=Nn=ke(Pn.line,0)));var Hn={from:Pn,to:Nn,text:Zt?Zt[Re%Zt.length]:jt,origin:ft||(zt?"paste":it.state.cutIncoming>Nt?"cut":"+input")};kh(it.doc,Hn),ii(it,"inputRead",it,Hn)}st&&!zt&&Uf(it,st),tl(it),it.curOp.updateInput<2&&(it.curOp.updateInput=Xt),it.curOp.typing=!0,it.state.pasteIncoming=it.state.cutIncoming=-1}function Hf(it,st){var dt=it.clipboardData&&it.clipboardData.getData("Text");if(dt)return it.preventDefault(),!st.isReadOnly()&&!st.options.disableInput&&Ro(st,function(){return jc(st,dt,0,null,"paste")}),!0}function Uf(it,st){if(!(!it.options.electricChars||!it.options.smartIndent))for(var dt=it.doc.sel,ht=dt.ranges.length-1;ht>=0;ht--){var ft=dt.ranges[ht];if(!(ft.head.ch>100||ht&&dt.ranges[ht-1].head.line==ft.head.line)){var Pt=it.getModeAt(ft.head),Nt=!1;if(Pt.electricChars){for(var zt=0;zt-1){Nt=Is(it,ft.head.line,"smart");break}}else Pt.electricInput&&Pt.electricInput.test(An(it.doc,ft.head.line).text.slice(0,ft.head.ch))&&(Nt=Is(it,ft.head.line,"smart"));Nt&&ii(it,"electricInput",it,ft.head.line)}}}function Wf(it){for(var st=[],dt=[],ht=0;htPt&&(Is(this,zt.head.line,ht,!0),Pt=zt.head.line,Nt==this.doc.sel.primIndex&&tl(this));else{var jt=zt.from(),Zt=zt.to(),xe=Math.max(Pt,jt.line);Pt=Math.min(this.lastLine(),Zt.line-(Zt.ch?0:1))+1;for(var Xt=xe;Xt0&&Nh(this.doc,Nt,new rr(jt,Re[Nt].to()),le)}}}),getTokenAt:function(ht,ft){return fi(this,ht,ft)},getLineTokens:function(ht,ft){return fi(this,ke(ht),ft,!0)},getTokenTypeAt:function(ht){ht=ui(this.doc,ht);var ft=Do(this,An(this.doc,ht.line)),Pt=0,Nt=(ft.length-1)/2,zt=ht.ch,jt;if(zt==0)jt=ft[2];else for(;;){var Zt=Pt+Nt>>1;if((Zt?ft[Zt*2-1]:0)>=zt)Nt=Zt;else if(ft[Zt*2+1]jt&&(ht=jt,Nt=!0),zt=An(this.doc,ht)}else zt=ht;return Oi(this,zt,{top:0,left:0},ft||"page",Pt||Nt).top+(Nt?this.doc.height-oo(zt):0)},defaultTextHeight:function(){return Gr(this.display)},defaultCharWidth:function(){return Zr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ht,ft,Pt,Nt,zt){var jt=this.display;ht=Mn(this,ui(this.doc,ht));var Zt=ht.bottom,xe=ht.left;if(ft.style.position="absolute",ft.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ft),jt.sizer.appendChild(ft),Nt=="over")Zt=ht.top;else if(Nt=="above"||Nt=="near"){var Xt=Math.max(jt.wrapper.clientHeight,this.doc.height),Re=Math.max(jt.sizer.clientWidth,jt.lineSpace.clientWidth);(Nt=="above"||ht.bottom+ft.offsetHeight>Xt)&&ht.top>ft.offsetHeight?Zt=ht.top-ft.offsetHeight:ht.bottom+ft.offsetHeight<=Xt&&(Zt=ht.bottom),xe+ft.offsetWidth>Re&&(xe=Re-ft.offsetWidth)}ft.style.top=Zt+"px",ft.style.left=ft.style.right="",zt=="right"?(xe=jt.sizer.clientWidth-ft.offsetWidth,ft.style.right="0px"):(zt=="left"?xe=0:zt=="middle"&&(xe=(jt.sizer.clientWidth-ft.offsetWidth)/2),ft.style.left=xe+"px"),Pt&&Tl(this,{left:xe,top:Zt,right:xe+ft.offsetWidth,bottom:Zt+ft.offsetHeight})},triggerOnKeyDown:Cs(Tf),triggerOnKeyPress:Cs(vu),triggerOnKeyUp:If,triggerOnMouseDown:Cs(yu),execCommand:function(ht){if(Dh.hasOwnProperty(ht))return Dh[ht].call(null,this)},triggerElectric:Cs(function(ht){Uf(this,ht)}),findPosH:function(ht,ft,Pt,Nt){var zt=1;ft<0&&(zt=-1,ft=-ft);for(var jt=ui(this.doc,ht),Zt=0;Zt0&&xe(Pt.charAt(Nt-1));)--Nt;for(;zt.5||this.options.lineWrapping)&&Yn(this),pn(this,"refresh",this)}),swapDoc:Cs(function(ht){var ft=this.doc;return ft.cm=null,this.state.selectingText&&this.state.selectingText(),_d(this,ht),Qt(this),this.display.input.reset(),fl(this,ht.scrollLeft,ht.scrollTop),this.curOp.forceScroll=!0,ii(this,"swapDoc",this,ft),ft}),phrase:function(ht){var ft=this.options.phrases;return ft&&Object.prototype.hasOwnProperty.call(ft,ht)?ft[ht]:ht},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},wi(it),it.registerHelper=function(ht,ft,Pt){dt.hasOwnProperty(ht)||(dt[ht]=it[ht]={_global:[]}),dt[ht][ft]=Pt},it.registerGlobalHelper=function(ht,ft,Pt,Nt){it.registerHelper(ht,ft,Nt),dt[ht]._global.push({pred:Pt,val:Nt})}}function Oc(it,st,dt,ht,ft){var Pt=st,Nt=dt,zt=An(it,st.line),jt=ft&&it.direction=="rtl"?-dt:dt;function Zt(){var xi=st.line+jt;return xi=it.first+it.size?!1:(st=new ke(xi,st.ch,st.sticky),zt=An(it,xi))}function xe(xi){var ai;if(ht=="codepoint"){var ki=zt.text.charCodeAt(st.ch+(ht>0?0:-1));isNaN(ki)?ai=null:ai=new ke(st.line,Math.max(0,Math.min(zt.text.length,st.ch+dt*(ki>=55296&&ki<56320?2:1))),-dt)}else ft?ai=fg(it.cm,zt,st,dt):ai=gs(zt,st,dt);if(ai==null)if(!xi&&Zt())st=Ic(ft,it.cm,zt,st.line,jt);else return!1;else st=ai;return!0}if(ht=="char"||ht=="codepoint")xe();else if(ht=="column")xe(!0);else if(ht=="word"||ht=="group")for(var Xt=null,Re=ht=="group",Te=it.cm&&it.cm.getHelper(st,"wordChars"),Pn=!0;!(dt<0&&!xe(!Pn));Pn=!1){var Nn=zt.text.charAt(st.ch)||` +`)&&(Pn=Nn=ke(Pn.line,0)));var Hn={from:Pn,to:Nn,text:Zt?Zt[Re%Zt.length]:jt,origin:ft||(zt?"paste":it.state.cutIncoming>Nt?"cut":"+input")};kh(it.doc,Hn),ii(it,"inputRead",it,Hn)}st&&!zt&&Uf(it,st),tl(it),it.curOp.updateInput<2&&(it.curOp.updateInput=Xt),it.curOp.typing=!0,it.state.pasteIncoming=it.state.cutIncoming=-1}function Hf(it,st){var dt=it.clipboardData&&it.clipboardData.getData("Text");if(dt)return it.preventDefault(),!st.isReadOnly()&&!st.options.disableInput&&Ro(st,function(){return jc(st,dt,0,null,"paste")}),!0}function Uf(it,st){if(!(!it.options.electricChars||!it.options.smartIndent))for(var dt=it.doc.sel,ht=dt.ranges.length-1;ht>=0;ht--){var ft=dt.ranges[ht];if(!(ft.head.ch>100||ht&&dt.ranges[ht-1].head.line==ft.head.line)){var Pt=it.getModeAt(ft.head),Nt=!1;if(Pt.electricChars){for(var zt=0;zt-1){Nt=Bs(it,ft.head.line,"smart");break}}else Pt.electricInput&&Pt.electricInput.test(An(it.doc,ft.head.line).text.slice(0,ft.head.ch))&&(Nt=Bs(it,ft.head.line,"smart"));Nt&&ii(it,"electricInput",it,ft.head.line)}}}function Wf(it){for(var st=[],dt=[],ht=0;htPt&&(Bs(this,zt.head.line,ht,!0),Pt=zt.head.line,Nt==this.doc.sel.primIndex&&tl(this));else{var jt=zt.from(),Zt=zt.to(),xe=Math.max(Pt,jt.line);Pt=Math.min(this.lastLine(),Zt.line-(Zt.ch?0:1))+1;for(var Xt=xe;Xt0&&Nh(this.doc,Nt,new rr(jt,Re[Nt].to()),le)}}}),getTokenAt:function(ht,ft){return fi(this,ht,ft)},getLineTokens:function(ht,ft){return fi(this,ke(ht),ft,!0)},getTokenTypeAt:function(ht){ht=ui(this.doc,ht);var ft=Do(this,An(this.doc,ht.line)),Pt=0,Nt=(ft.length-1)/2,zt=ht.ch,jt;if(zt==0)jt=ft[2];else for(;;){var Zt=Pt+Nt>>1;if((Zt?ft[Zt*2-1]:0)>=zt)Nt=Zt;else if(ft[Zt*2+1]jt&&(ht=jt,Nt=!0),zt=An(this.doc,ht)}else zt=ht;return Oi(this,zt,{top:0,left:0},ft||"page",Pt||Nt).top+(Nt?this.doc.height-oo(zt):0)},defaultTextHeight:function(){return Gr(this.display)},defaultCharWidth:function(){return Zr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ht,ft,Pt,Nt,zt){var jt=this.display;ht=Mn(this,ui(this.doc,ht));var Zt=ht.bottom,xe=ht.left;if(ft.style.position="absolute",ft.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ft),jt.sizer.appendChild(ft),Nt=="over")Zt=ht.top;else if(Nt=="above"||Nt=="near"){var Xt=Math.max(jt.wrapper.clientHeight,this.doc.height),Re=Math.max(jt.sizer.clientWidth,jt.lineSpace.clientWidth);(Nt=="above"||ht.bottom+ft.offsetHeight>Xt)&&ht.top>ft.offsetHeight?Zt=ht.top-ft.offsetHeight:ht.bottom+ft.offsetHeight<=Xt&&(Zt=ht.bottom),xe+ft.offsetWidth>Re&&(xe=Re-ft.offsetWidth)}ft.style.top=Zt+"px",ft.style.left=ft.style.right="",zt=="right"?(xe=jt.sizer.clientWidth-ft.offsetWidth,ft.style.right="0px"):(zt=="left"?xe=0:zt=="middle"&&(xe=(jt.sizer.clientWidth-ft.offsetWidth)/2),ft.style.left=xe+"px"),Pt&&Bl(this,{left:xe,top:Zt,right:xe+ft.offsetWidth,bottom:Zt+ft.offsetHeight})},triggerOnKeyDown:Cs(Tf),triggerOnKeyPress:Cs(vu),triggerOnKeyUp:If,triggerOnMouseDown:Cs(yu),execCommand:function(ht){if(Dh.hasOwnProperty(ht))return Dh[ht].call(null,this)},triggerElectric:Cs(function(ht){Uf(this,ht)}),findPosH:function(ht,ft,Pt,Nt){var zt=1;ft<0&&(zt=-1,ft=-ft);for(var jt=ui(this.doc,ht),Zt=0;Zt0&&xe(Pt.charAt(Nt-1));)--Nt;for(;zt.5||this.options.lineWrapping)&&Yn(this),pn(this,"refresh",this)}),swapDoc:Cs(function(ht){var ft=this.doc;return ft.cm=null,this.state.selectingText&&this.state.selectingText(),_d(this,ht),Qt(this),this.display.input.reset(),fl(this,ht.scrollLeft,ht.scrollTop),this.curOp.forceScroll=!0,ii(this,"swapDoc",this,ft),ft}),phrase:function(ht){var ft=this.options.phrases;return ft&&Object.prototype.hasOwnProperty.call(ft,ht)?ft[ht]:ht},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},wi(it),it.registerHelper=function(ht,ft,Pt){dt.hasOwnProperty(ht)||(dt[ht]=it[ht]={_global:[]}),dt[ht][ft]=Pt},it.registerGlobalHelper=function(ht,ft,Pt,Nt){it.registerHelper(ht,ft,Nt),dt[ht]._global.push({pred:Pt,val:Nt})}}function Oc(it,st,dt,ht,ft){var Pt=st,Nt=dt,zt=An(it,st.line),jt=ft&&it.direction=="rtl"?-dt:dt;function Zt(){var xi=st.line+jt;return xi=it.first+it.size?!1:(st=new ke(xi,st.ch,st.sticky),zt=An(it,xi))}function xe(xi){var ai;if(ht=="codepoint"){var ki=zt.text.charCodeAt(st.ch+(ht>0?0:-1));isNaN(ki)?ai=null:ai=new ke(st.line,Math.max(0,Math.min(zt.text.length,st.ch+dt*(ki>=55296&&ki<56320?2:1))),-dt)}else ft?ai=fg(it.cm,zt,st,dt):ai=gs(zt,st,dt);if(ai==null)if(!xi&&Zt())st=Ic(ft,it.cm,zt,st.line,jt);else return!1;else st=ai;return!0}if(ht=="char"||ht=="codepoint")xe();else if(ht=="column")xe(!0);else if(ht=="word"||ht=="group")for(var Xt=null,Re=ht=="group",Te=it.cm&&it.cm.getHelper(st,"wordChars"),Pn=!0;!(dt<0&&!xe(!Pn));Pn=!1){var Nn=zt.text.charAt(st.ch)||` `,Hn=nn(Nn,Te)?"w":Re&&Nn==` `?"n":!Re||/\s/.test(Nn)?null:"p";if(Re&&!Pn&&!Hn&&(Hn="s"),Xt&&Xt!=Hn){dt<0&&(dt=1,xe(),st.sticky="after");break}if(Hn&&(Xt=Hn),dt>0&&!xe(!Pn))break}var $n=Nc(it,st,Pt,Nt,!0);return Gi(Pt,$n)&&($n.hitSide=!0),$n}function Bh(it,st,dt,ht){var ft=it.doc,Pt=st.left,Nt;if(ht=="page"){var zt=Math.min(it.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),jt=Math.max(zt-.5*Gr(it.display),3);Nt=(dt>0?st.bottom:st.top)+dt*jt}else ht=="line"&&(Nt=dt>0?st.bottom+3:st.top-3);for(var Zt;Zt=Ps(it,Pt,Nt),!!Zt.outside;){if(dt<0?Nt<=0:Nt>=ft.height){Zt.hitSide=!0;break}Nt+=dt*5}return Zt}var xr=function(it){this.cm=it,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new It,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};xr.prototype.init=function(it){var st=this,dt=this,ht=dt.cm,ft=dt.div=it.lineDiv;Yf(ft,ht.options.spellcheck,ht.options.autocorrect,ht.options.autocapitalize);function Pt(zt){for(var jt=zt.target;jt;jt=jt.parentNode){if(jt==ft)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(jt.className))break}return!1}ge(ft,"paste",function(zt){!Pt(zt)||Rn(ht,zt)||Hf(zt,ht)||Ee<=11&&setTimeout(hs(ht,function(){return st.updateFromDOM()}),20)}),ge(ft,"compositionstart",function(zt){st.composing={data:zt.data,done:!1}}),ge(ft,"compositionupdate",function(zt){st.composing||(st.composing={data:zt.data,done:!1})}),ge(ft,"compositionend",function(zt){st.composing&&(zt.data!=st.composing.data&&st.readFromDOMSoon(),st.composing.done=!0)}),ge(ft,"touchstart",function(){return dt.forceCompositionEnd()}),ge(ft,"input",function(){st.composing||st.readFromDOMSoon()});function Nt(zt){if(!(!Pt(zt)||Rn(ht,zt))){if(ht.somethingSelected())xd({lineWise:!1,text:ht.getSelections()}),zt.type=="cut"&&ht.replaceSelection("",null,"cut");else if(ht.options.lineWiseCopyCut){var jt=Wf(ht);xd({lineWise:!0,text:jt.text}),zt.type=="cut"&&ht.operation(function(){ht.setSelections(jt.ranges,0,le),ht.replaceSelection("",null,"cut")})}else return;if(zt.clipboardData){zt.clipboardData.clearData();var Zt=Va.text.join(` `);if(zt.clipboardData.setData("Text",Zt),zt.clipboardData.getData("Text")==Zt){zt.preventDefault();return}}var xe=Vf(),Xt=xe.firstChild;ht.display.lineSpace.insertBefore(xe,ht.display.lineSpace.firstChild),Xt.value=Va.text.join(` @@ -1121,21 +1121,21 @@ b`.split(/\n/).length!=3?function(it){for(var st=0,dt=[],ht=it.length;st<=ht;){v `)>-1?dt.value=it.prevInput="":it.prevInput=ft,it.composing&&(it.composing.range.clear(),it.composing.range=st.markText(it.composing.start,st.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},As.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},As.prototype.onKeyPress=function(){me&&Ee>=9&&(this.hasSelection=null),this.fastPoll()},As.prototype.onContextMenu=function(it){var st=this,dt=st.cm,ht=dt.display,ft=st.textarea;st.contextMenuPending&&st.contextMenuPending();var Pt=_i(dt,it),Nt=ht.scroller.scrollTop;if(!Pt||ve)return;var zt=dt.options.resetSelectionOnContextMenu;zt&&dt.doc.sel.contains(Pt)==-1&&hs(dt,Sa)(dt.doc,br(Pt),le);var jt=ft.style.cssText,Zt=st.wrapper.style.cssText,xe=st.wrapper.offsetParent.getBoundingClientRect();st.wrapper.style.cssText="position: static",ft.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(it.clientY-xe.top-5)+"px; left: "+(it.clientX-xe.left-5)+`px; z-index: 1000; background: `+(me?"rgba(255, 255, 255, .05)":"transparent")+`; - outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Xt;qt&&(Xt=window.scrollY),ht.input.focus(),qt&&window.scrollTo(null,Xt),ht.input.reset(),dt.somethingSelected()||(ft.value=st.prevInput=" "),st.contextMenuPending=Te,ht.selForContextMenu=dt.doc.sel,clearTimeout(ht.detectingSelectAll);function Re(){if(ft.selectionStart!=null){var Nn=dt.somethingSelected(),Hn="\u200B"+(Nn?ft.value:"");ft.value="\u21DA",ft.value=Hn,st.prevInput=Nn?"":"\u200B",ft.selectionStart=1,ft.selectionEnd=Hn.length,ht.selForContextMenu=dt.doc.sel}}function Te(){if(st.contextMenuPending==Te&&(st.contextMenuPending=!1,st.wrapper.style.cssText=Zt,ft.style.cssText=jt,me&&Ee<9&&ht.scrollbars.setScrollTop(ht.scroller.scrollTop=Nt),ft.selectionStart!=null)){(!me||me&&Ee<9)&&Re();var Nn=0,Hn=function(){ht.selForContextMenu==dt.doc.sel&&ft.selectionStart==0&&ft.selectionEnd>0&&st.prevInput=="\u200B"?hs(dt,cs)(dt):Nn++<10?ht.detectingSelectAll=setTimeout(Hn,500):(ht.selForContextMenu=null,ht.input.reset())};ht.detectingSelectAll=setTimeout(Hn,200)}}if(me&&Ee>=9&&Re(),kt){Wr(it);var Pn=function(){gn(window,"mouseup",Pn),setTimeout(Te,20)};ge(window,"mouseup",Pn)}else setTimeout(Te,50)},As.prototype.readOnlyChanged=function(it){it||this.reset(),this.textarea.disabled=it=="nocursor",this.textarea.readOnly=!!it},As.prototype.setUneditable=function(){},As.prototype.needsContentAttribute=!1;function hp(it,st){if(st=st?vn(st):{},st.value=it.value,!st.tabindex&&it.tabIndex&&(st.tabindex=it.tabIndex),!st.placeholder&&it.placeholder&&(st.placeholder=it.placeholder),st.autofocus==null){var dt=ye();st.autofocus=dt==it||it.getAttribute("autofocus")!=null&&dt==document.body}function ht(){it.value=zt.getValue()}var ft;if(it.form&&(ge(it.form,"submit",ht),!st.leaveSubmitMethodAlone)){var Pt=it.form;ft=Pt.submit;try{var Nt=Pt.submit=function(){ht(),Pt.submit=ft,Pt.submit(),Pt.submit=Nt}}catch(jt){}}st.finishInit=function(jt){jt.save=ht,jt.getTextArea=function(){return it},jt.toTextArea=function(){jt.toTextArea=isNaN,ht(),it.parentNode.removeChild(jt.getWrapperElement()),it.style.display="",it.form&&(gn(it.form,"submit",ht),!st.leaveSubmitMethodAlone&&typeof it.form.submit=="function"&&(it.form.submit=ft))}},it.style.display="none";var zt=Qo(function(jt){return it.parentNode.insertBefore(jt,it.nextSibling)},st);return zt}function rc(it){it.off=gn,it.on=ge,it.wheelEventPixels=oa,it.Doc=ra,it.splitLines=Ui,it.countColumn=Vt,it.findColumn=Cn,it.isWordChar=Ri,it.Pass=Qe,it.signal=pn,it.Line=pr,it.changeEnd=ya,it.scrollbarModel=Ya,it.Pos=ke,it.cmpPos=an,it.modes=ta,it.mimeModes=ss,it.resolveMode=Qn,it.getMode=we,it.modeExtensions=pe,it.extendMode=fe,it.copyState=Bn,it.startState=Wn,it.innerMode=zn,it.commands=Dh,it.keyMap=nl,it.keyName=np,it.isModifierKey=Jd,it.lookupKey=jl,it.normalizeKeyMap=Af,it.StringStream=be,it.SharedTextMarker=Iu,it.TextMarker=de,it.LineWidget=sh,it.e_preventDefault=Ji,it.e_stopPropagation=wo,it.e_stop=Wr,it.addClass=Ne,it.contains=We,it.rmClass=Yt,it.keyNames=bu}ap(Qo),Th(Qo);var ah="iter insert remove copy getEditor constructor".split(" ");for(var Rc in ra.prototype)ra.prototype.hasOwnProperty(Rc)&&ne(ah,Rc)<0&&(Qo.prototype[Rc]=function(it){return function(){return it.apply(this.doc,arguments)}}(ra.prototype[Rc]));return wi(ra),Qo.inputStyles={textarea:As,contenteditable:xr},Qo.defineMode=function(it){!Qo.defaults.mode&&it!="null"&&(Qo.defaults.mode=it),ea.apply(this,arguments)},Qo.defineMIME=Tn,Qo.defineMode("null",function(){return{token:function(it){return it.skipToEnd()}}}),Qo.defineMIME("text/plain","null"),Qo.defineExtension=function(it,st){Qo.prototype[it]=st},Qo.defineDocExtension=function(it,st){ra.prototype[it]=st},Qo.fromTextArea=hp,rc(Qo),Qo.version="5.58.2",Qo})},25419:function(Ze,En,bt){(function(vt){vt(bt(89780),bt(15525),bt(98101))})(function(vt){"use strict";vt.defineMode("markdown",function(oe,ue){var Be=vt.getMode(oe,"text/html"),me=Be.name=="null";function Ee(Vt){if(vt.findModeByName){var It=vt.findModeByName(Vt);It&&(Vt=It.mime||It.mimes[0])}var ne=vt.getMode(oe,Vt);return ne.name=="null"?null:ne}ue.highlightFormatting===void 0&&(ue.highlightFormatting=!1),ue.maxBlockquoteDepth===void 0&&(ue.maxBlockquoteDepth=0),ue.taskLists===void 0&&(ue.taskLists=!1),ue.strikethrough===void 0&&(ue.strikethrough=!1),ue.emoji===void 0&&(ue.emoji=!1),ue.fencedCodeBlockHighlighting===void 0&&(ue.fencedCodeBlockHighlighting=!0),ue.fencedCodeBlockDefaultMode===void 0&&(ue.fencedCodeBlockDefaultMode="text/plain"),ue.xml===void 0&&(ue.xml=!0),ue.tokenTypeOverrides===void 0&&(ue.tokenTypeOverrides={});var qt={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var Ce in qt)qt.hasOwnProperty(Ce)&&ue.tokenTypeOverrides[Ce]&&(qt[Ce]=ue.tokenTypeOverrides[Ce]);var Se=/^([*\-_])(?:\s*\1){2,}\s*$/,ve=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,se=/^\[(x| )\](?=\s)/i,Ae=ue.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,_e=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Dt=/^[^#!\[\]*_\\<>` "'(~:]+/,et=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,nt=/^\s*\[[^\]]+?\]:.*$/,ct=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,lt=" ";function pt(Vt,It,ne){return It.f=It.inline=ne,ne(Vt,It)}function yt(Vt,It,ne){return It.f=It.block=ne,ne(Vt,It)}function Lt(Vt){return!Vt||!/\S/.test(Vt.string)}function kt(Vt){if(Vt.linkTitle=!1,Vt.linkHref=!1,Vt.linkText=!1,Vt.em=!1,Vt.strong=!1,Vt.strikethrough=!1,Vt.quote=0,Vt.indentedCode=!1,Vt.f==Yt){var It=me;if(!It){var ne=vt.innerMode(Be,Vt.htmlState);It=ne.mode.name=="xml"&&ne.state.tagStart===null&&!ne.state.context&&ne.state.tokenize.isInText}It&&(Vt.f=Pe,Vt.block=Ht,Vt.htmlState=null)}return Vt.trailingSpace=0,Vt.trailingSpaceNewLine=!1,Vt.prevLine=Vt.thisLine,Vt.thisLine={stream:null},null}function Ht(Vt,It){var ne=Vt.column()===It.indentation,De=Lt(It.prevLine.stream),Qe=It.indentedCode,le=It.prevLine.hr,Oe=It.list!==!1,on=(It.listStack[It.listStack.length-1]||0)+3;It.indentedCode=!1;var Cn=It.indentation;if(It.indentationDiff===null&&(It.indentationDiff=It.indentation,Oe)){for(It.list=null;Cn=4&&(Qe||It.prevLine.fencedCodeEnd||It.prevLine.header||De))return Vt.skipToEnd(),It.indentedCode=!0,qt.code;if(Vt.eatSpace())return null;if(ne&&It.indentation<=on&&(re=Vt.match(Ae))&&re[1].length<=6)return It.quote=0,It.header=re[1].length,It.thisLine.header=!0,ue.highlightFormatting&&(It.formatting="header"),It.f=It.inline,ee(It);if(It.indentation<=on&&Vt.eat(">"))return It.quote=ne?1:It.quote+1,ue.highlightFormatting&&(It.formatting="quote"),Vt.eatSpace(),ee(It);if(!xn&&!It.setext&&ne&&It.indentation<=on&&(re=Vt.match(ve))){var kn=re[1]?"ol":"ul";return It.indentation=Cn+Vt.current().length,It.list=!0,It.quote=0,It.listStack.push(It.indentation),It.em=!1,It.strong=!1,It.code=!1,It.strikethrough=!1,ue.taskLists&&Vt.match(se,!1)&&(It.taskList=!0),It.f=It.inline,ue.highlightFormatting&&(It.formatting=["list","list-"+kn]),ee(It)}else{if(ne&&It.indentation<=on&&(re=Vt.match(et,!0)))return It.quote=0,It.fencedEndRE=new RegExp(re[1]+"+ *$"),It.localMode=ue.fencedCodeBlockHighlighting&&Ee(re[2]||ue.fencedCodeBlockDefaultMode),It.localMode&&(It.localState=vt.startState(It.localMode)),It.f=It.block=$t,ue.highlightFormatting&&(It.formatting="code-block"),It.code=-1,ee(It);if(It.setext||(!ln||!Oe)&&!It.quote&&It.list===!1&&!It.code&&!xn&&!nt.test(Vt.string)&&(re=Vt.lookAhead(1))&&(re=re.match(_e)))return It.setext?(It.header=It.setext,It.setext=0,Vt.skipToEnd(),ue.highlightFormatting&&(It.formatting="header")):(It.header=re[0].charAt(0)=="="?1:2,It.setext=It.header),It.thisLine.header=!0,It.f=It.inline,ee(It);if(xn)return Vt.skipToEnd(),It.hr=!0,It.thisLine.hr=!0,qt.hr;if(Vt.peek()==="[")return pt(Vt,It,Ie)}return pt(Vt,It,It.inline)}function Yt(Vt,It){var ne=Be.token(Vt,It.htmlState);if(!me){var De=vt.innerMode(Be,It.htmlState);(De.mode.name=="xml"&&De.state.tagStart===null&&!De.state.context&&De.state.tokenize.isInText||It.md_inside&&Vt.current().indexOf(">")>-1)&&(It.f=Pe,It.block=Ht,It.htmlState=null)}return ne}function $t(Vt,It){var ne=It.listStack[It.listStack.length-1]||0,De=It.indentation=Vt.quote?It.push(qt.formatting+"-"+Vt.formatting[ne]+"-"+Vt.quote):It.push("error"))}if(Vt.taskOpen)return It.push("meta"),It.length?It.join(" "):null;if(Vt.taskClosed)return It.push("property"),It.length?It.join(" "):null;if(Vt.linkHref?It.push(qt.linkHref,"url"):(Vt.strong&&It.push(qt.strong),Vt.em&&It.push(qt.em),Vt.strikethrough&&It.push(qt.strikethrough),Vt.emoji&&It.push(qt.emoji),Vt.linkText&&It.push(qt.linkText),Vt.code&&It.push(qt.code),Vt.image&&It.push(qt.image),Vt.imageAltText&&It.push(qt.imageAltText,"link"),Vt.imageMarker&&It.push(qt.imageMarker)),Vt.header&&It.push(qt.header,qt.header+"-"+Vt.header),Vt.quote&&(It.push(qt.quote),!ue.maxBlockquoteDepth||ue.maxBlockquoteDepth>=Vt.quote?It.push(qt.quote+"-"+Vt.quote):It.push(qt.quote+"-"+ue.maxBlockquoteDepth)),Vt.list!==!1){var De=(Vt.listStack.length-1)%3;De?De===1?It.push(qt.list2):It.push(qt.list3):It.push(qt.list1)}return Vt.trailingSpaceNewLine?It.push("trailing-space-new-line"):Vt.trailingSpace&&It.push("trailing-space-"+(Vt.trailingSpace%2?"a":"b")),It.length?It.join(" "):null}function te(Vt,It){if(Vt.match(Dt,!0))return ee(It)}function Pe(Vt,It){var ne=It.text(Vt,It);if(typeof ne!="undefined")return ne;if(It.list)return It.list=null,ee(It);if(It.taskList){var De=Vt.match(se,!0)[1]===" ";return De?It.taskOpen=!0:It.taskClosed=!0,ue.highlightFormatting&&(It.formatting="task"),It.taskList=!1,ee(It)}if(It.taskOpen=!1,It.taskClosed=!1,It.header&&Vt.match(/^#+$/,!0))return ue.highlightFormatting&&(It.formatting="header"),ee(It);var Qe=Vt.next();if(It.linkTitle){It.linkTitle=!1;var le=Qe;Qe==="("&&(le=")"),le=(le+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Oe="^\\s*(?:[^"+le+"\\\\]+|\\\\\\\\|\\\\.)"+le;if(Vt.match(new RegExp(Oe),!0))return qt.linkHref}if(Qe==="`"){var on=It.formatting;ue.highlightFormatting&&(It.formatting="code"),Vt.eatWhile("`");var Cn=Vt.current().length;if(It.code==0&&(!It.quote||Cn==1))return It.code=Cn,ee(It);if(Cn==It.code){var ln=ee(It);return It.code=0,ln}else return It.formatting=on,ee(It)}else if(It.code)return ee(It);if(Qe==="\\"&&(Vt.next(),ue.highlightFormatting)){var xn=ee(It),re=qt.formatting+"-escape";return xn?xn+" "+re:re}if(Qe==="!"&&Vt.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return It.imageMarker=!0,It.image=!0,ue.highlightFormatting&&(It.formatting="image"),ee(It);if(Qe==="["&&It.imageMarker&&Vt.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return It.imageMarker=!1,It.imageAltText=!0,ue.highlightFormatting&&(It.formatting="image"),ee(It);if(Qe==="]"&&It.imageAltText){ue.highlightFormatting&&(It.formatting="image");var xn=ee(It);return It.imageAltText=!1,It.image=!1,It.inline=It.f=We,xn}if(Qe==="["&&!It.image)return It.linkText&&Vt.match(/^.*?\]/)||(It.linkText=!0,ue.highlightFormatting&&(It.formatting="link")),ee(It);if(Qe==="]"&&It.linkText){ue.highlightFormatting&&(It.formatting="link");var xn=ee(It);return It.linkText=!1,It.inline=It.f=Vt.match(/\(.*?\)| ?\[.*?\]/,!1)?We:Pe,xn}if(Qe==="<"&&Vt.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){It.f=It.inline=ae,ue.highlightFormatting&&(It.formatting="link");var xn=ee(It);return xn?xn+=" ":xn="",xn+qt.linkInline}if(Qe==="<"&&Vt.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){It.f=It.inline=ae,ue.highlightFormatting&&(It.formatting="link");var xn=ee(It);return xn?xn+=" ":xn="",xn+qt.linkEmail}if(ue.xml&&Qe==="<"&&Vt.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var kn=Vt.string.indexOf(">",Vt.pos);if(kn!=-1){var Zn=Vt.string.substring(Vt.start,kn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Zn)&&(It.md_inside=!0)}return Vt.backUp(1),It.htmlState=vt.startState(Be),yt(Vt,It,Yt)}if(ue.xml&&Qe==="<"&&Vt.match(/^\/\w*?>/))return It.md_inside=!1,"tag";if(Qe==="*"||Qe==="_"){for(var On=1,Un=Vt.pos==1?" ":Vt.string.charAt(Vt.pos-2);On<3&&Vt.eat(Qe);)On++;var hi=Vt.peek()||" ",Ri=!/\s/.test(hi)&&(!ct.test(hi)||/\s/.test(Un)||ct.test(Un)),nn=!/\s/.test(Un)&&(!ct.test(Un)||/\s/.test(hi)||ct.test(hi)),un=null,wn=null;if(On%2&&(!It.em&&Ri&&(Qe==="*"||!nn||ct.test(Un))?un=!0:It.em==Qe&&nn&&(Qe==="*"||!Ri||ct.test(hi))&&(un=!1)),On>1&&(!It.strong&&Ri&&(Qe==="*"||!nn||ct.test(Un))?wn=!0:It.strong==Qe&&nn&&(Qe==="*"||!Ri||ct.test(hi))&&(wn=!1)),wn!=null||un!=null){ue.highlightFormatting&&(It.formatting=un==null?"strong":wn==null?"em":"strong em"),un===!0&&(It.em=Qe),wn===!0&&(It.strong=Qe);var ln=ee(It);return un===!1&&(It.em=!1),wn===!1&&(It.strong=!1),ln}}else if(Qe===" "&&(Vt.eat("*")||Vt.eat("_"))){if(Vt.peek()===" ")return ee(It);Vt.backUp(1)}if(ue.strikethrough){if(Qe==="~"&&Vt.eatWhile(Qe)){if(It.strikethrough){ue.highlightFormatting&&(It.formatting="strikethrough");var ln=ee(It);return It.strikethrough=!1,ln}else if(Vt.match(/^[^\s]/,!1))return It.strikethrough=!0,ue.highlightFormatting&&(It.formatting="strikethrough"),ee(It)}else if(Qe===" "&&Vt.match(/^~~/,!0)){if(Vt.peek()===" ")return ee(It);Vt.backUp(2)}}if(ue.emoji&&Qe===":"&&Vt.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){It.emoji=!0,ue.highlightFormatting&&(It.formatting="emoji");var ze=ee(It);return It.emoji=!1,ze}return Qe===" "&&(Vt.match(/^ +$/,!1)?It.trailingSpace++:It.trailingSpace&&(It.trailingSpaceNewLine=!0)),ee(It)}function ae(Vt,It){var ne=Vt.next();if(ne===">"){It.f=It.inline=Pe,ue.highlightFormatting&&(It.formatting="link");var De=ee(It);return De?De+=" ":De="",De+qt.linkInline}return Vt.match(/^[^>]+/,!0),qt.linkInline}function We(Vt,It){if(Vt.eatSpace())return null;var ne=Vt.next();return ne==="("||ne==="["?(It.f=It.inline=Ne(ne==="("?")":"]"),ue.highlightFormatting&&(It.formatting="link-string"),It.linkHref=!0,ee(It)):"error"}var ye={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Ne(Vt){return function(It,ne){var De=It.next();if(De===Vt){ne.f=ne.inline=Pe,ue.highlightFormatting&&(ne.formatting="link-string");var Qe=ee(ne);return ne.linkHref=!1,Qe}return It.match(ye[Vt]),ne.linkHref=!0,ee(ne)}}function Ie(Vt,It){return Vt.match(/^([^\]\\]|\\.)*\]:/,!1)?(It.f=rn,Vt.next(),ue.highlightFormatting&&(It.formatting="link"),It.linkText=!0,ee(It)):pt(Vt,It,Pe)}function rn(Vt,It){if(Vt.match(/^\]:/,!0)){It.f=It.inline=Dn,ue.highlightFormatting&&(It.formatting="link");var ne=ee(It);return It.linkText=!1,ne}return Vt.match(/^([^\]\\]|\\.)+/,!0),qt.linkText}function Dn(Vt,It){return Vt.eatSpace()?null:(Vt.match(/^[^\s]+/,!0),Vt.peek()===void 0?It.linkTitle=!0:Vt.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),It.f=It.inline=Pe,qt.linkHref+" url")}var vn={startState:function(){return{f:Ht,prevLine:{stream:null},thisLine:{stream:null},block:Ht,htmlState:null,indentation:0,inline:Pe,text:te,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(Vt){return{f:Vt.f,prevLine:Vt.prevLine,thisLine:Vt.thisLine,block:Vt.block,htmlState:Vt.htmlState&&vt.copyState(Be,Vt.htmlState),indentation:Vt.indentation,localMode:Vt.localMode,localState:Vt.localMode?vt.copyState(Vt.localMode,Vt.localState):null,inline:Vt.inline,text:Vt.text,formatting:!1,linkText:Vt.linkText,linkTitle:Vt.linkTitle,linkHref:Vt.linkHref,code:Vt.code,em:Vt.em,strong:Vt.strong,strikethrough:Vt.strikethrough,emoji:Vt.emoji,header:Vt.header,setext:Vt.setext,hr:Vt.hr,taskList:Vt.taskList,list:Vt.list,listStack:Vt.listStack.slice(0),quote:Vt.quote,indentedCode:Vt.indentedCode,trailingSpace:Vt.trailingSpace,trailingSpaceNewLine:Vt.trailingSpaceNewLine,md_inside:Vt.md_inside,fencedEndRE:Vt.fencedEndRE}},token:function(Vt,It){if(It.formatting=!1,Vt!=It.thisLine.stream){if(It.header=0,It.hr=!1,Vt.match(/^\s*$/,!0))return kt(It),null;if(It.prevLine=It.thisLine,It.thisLine={stream:Vt},It.taskList=!1,It.trailingSpace=0,It.trailingSpaceNewLine=!1,!It.localState&&(It.f=It.block,It.f!=Yt)){var ne=Vt.match(/^\s*/,!0)[0].replace(/\t/g,lt).length;if(It.indentation=ne,It.indentationDiff=null,ne>0)return null}}return It.f(Vt,It)},innerMode:function(Vt){return Vt.block==Yt?{state:Vt.htmlState,mode:Be}:Vt.localState?{state:Vt.localState,mode:Vt.localMode}:{state:Vt,mode:vn}},indent:function(Vt,It,ne){return Vt.block==Yt&&Be.indent?Be.indent(Vt.htmlState,It,ne):Vt.localState&&Vt.localMode.indent?Vt.localMode.indent(Vt.localState,It,ne):vt.Pass},blankLine:kt,getType:ee,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return vn},"xml"),vt.defineMIME("text/markdown","markdown"),vt.defineMIME("text/x-markdown","markdown")})},98101:function(Ze,En,bt){(function(vt){vt(bt(89780))})(function(vt){"use strict";vt.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var oe=0;oe-1&&Be.substring(qt+1,Be.length);if(Ce)return vt.findModeByExtension(Ce)},vt.findModeByName=function(Be){Be=Be.toLowerCase();for(var me=0;me0?Dt.cmdState[Dt.cmdState.length-1]:null}function Ee(Dt){var et=Dt.cmdState.pop();et&&et.closeBracket()}function qt(Dt){for(var et=Dt.cmdState,nt=et.length-1;nt>=0;nt--){var ct=et[nt];if(ct.name!="DEFAULT")return ct}return{styleIdentifier:function(){return null}}}function Ce(Dt,et,nt){return function(){this.name=Dt,this.bracketNo=0,this.style=et,this.styles=nt,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Se={};Se.importmodule=Ce("importmodule","tag",["string","builtin"]),Se.documentclass=Ce("documentclass","tag",["","atom"]),Se.usepackage=Ce("usepackage","tag",["atom"]),Se.begin=Ce("begin","tag",["atom"]),Se.end=Ce("end","tag",["atom"]),Se.label=Ce("label","tag",["atom"]),Se.ref=Ce("ref","tag",["atom"]),Se.eqref=Ce("eqref","tag",["atom"]),Se.cite=Ce("cite","tag",["atom"]),Se.bibitem=Ce("bibitem","tag",["atom"]),Se.Bibitem=Ce("Bibitem","tag",["atom"]),Se.RBibitem=Ce("RBibitem","tag",["atom"]),Se.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function ve(Dt,et){Dt.f=et}function se(Dt,et){var nt;if(Dt.match(/^\\[a-zA-Z@]+/)){var ct=Dt.current().slice(1);return nt=Se.hasOwnProperty(ct)?Se[ct]:Se.DEFAULT,nt=new nt,Be(et,nt),ve(et,_e),nt.style}if(Dt.match(/^\\[$&%#{}_]/)||Dt.match(/^\\[,;!\/\\]/))return"tag";if(Dt.match("\\["))return ve(et,function(pt,yt){return Ae(pt,yt,"\\]")}),"keyword";if(Dt.match("\\("))return ve(et,function(pt,yt){return Ae(pt,yt,"\\)")}),"keyword";if(Dt.match("$$"))return ve(et,function(pt,yt){return Ae(pt,yt,"$$")}),"keyword";if(Dt.match("$"))return ve(et,function(pt,yt){return Ae(pt,yt,"$")}),"keyword";var lt=Dt.next();if(lt=="%")return Dt.skipToEnd(),"comment";if(lt=="}"||lt=="]"){if(nt=me(et),nt)nt.closeBracket(lt),ve(et,_e);else return"error";return"bracket"}else return lt=="{"||lt=="["?(nt=Se.DEFAULT,nt=new nt,Be(et,nt),"bracket"):/\d/.test(lt)?(Dt.eatWhile(/[\w.%]/),"atom"):(Dt.eatWhile(/[\w\-_]/),nt=qt(et),nt.name=="begin"&&(nt.argument=Dt.current()),nt.styleIdentifier())}function Ae(Dt,et,nt){if(Dt.eatSpace())return null;if(nt&&Dt.match(nt))return ve(et,se),"keyword";if(Dt.match(/^\\[a-zA-Z@]+/))return"tag";if(Dt.match(/^[a-zA-Z]+/))return"variable-2";if(Dt.match(/^\\[$&%#{}_]/)||Dt.match(/^\\[,;!\/]/)||Dt.match(/^[\^_&]/))return"tag";if(Dt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Dt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ct=Dt.next();return ct=="{"||ct=="}"||ct=="["||ct=="]"||ct=="("||ct==")"?"bracket":ct=="%"?(Dt.skipToEnd(),"comment"):"error"}function _e(Dt,et){var nt=Dt.peek(),ct;return nt=="{"||nt=="["?(ct=me(et),ct.openBracket(nt),Dt.eat(nt),ve(et,se),"bracket"):/[ \t\r]/.test(nt)?(Dt.eat(nt),null):(ve(et,se),Ee(et),se(Dt,et))}return{startState:function(){var Dt=ue.inMathMode?function(et,nt){return Ae(et,nt)}:se;return{cmdState:[],f:Dt}},copyState:function(Dt){return{cmdState:Dt.cmdState.slice(),f:Dt.f}},token:function(Dt,et){return et.f(Dt,et)},blankLine:function(Dt){Dt.f=se,Dt.cmdState.length=0},lineComment:"%"}}),vt.defineMIME("text/x-stex","stex"),vt.defineMIME("text/x-latex","stex")})},15525:function(Ze,En,bt){(function(vt){vt(bt(89780))})(function(vt){"use strict";var oe={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},ue={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};vt.defineMode("xml",function(Be,me){var Ee=Be.indentUnit,qt={},Ce=me.htmlMode?oe:ue;for(var Se in Ce)qt[Se]=Ce[Se];for(var Se in me)qt[Se]=me[Se];var ve,se;function Ae(ae,We){function ye(rn){return We.tokenize=rn,rn(ae,We)}var Ne=ae.next();if(Ne=="<")return ae.eat("!")?ae.eat("[")?ae.match("CDATA[")?ye(et("atom","]]>")):null:ae.match("--")?ye(et("comment","-->")):ae.match("DOCTYPE",!0,!0)?(ae.eatWhile(/[\w\._\-]/),ye(nt(1))):null:ae.eat("?")?(ae.eatWhile(/[\w\._\-]/),We.tokenize=et("meta","?>"),"meta"):(ve=ae.eat("/")?"closeTag":"openTag",We.tokenize=_e,"tag bracket");if(Ne=="&"){var Ie;return ae.eat("#")?ae.eat("x")?Ie=ae.eatWhile(/[a-fA-F\d]/)&&ae.eat(";"):Ie=ae.eatWhile(/[\d]/)&&ae.eat(";"):Ie=ae.eatWhile(/[\w\.\-:]/)&&ae.eat(";"),Ie?"atom":"error"}else return ae.eatWhile(/[^&<]/),null}Ae.isInText=!0;function _e(ae,We){var ye=ae.next();if(ye==">"||ye=="/"&&ae.eat(">"))return We.tokenize=Ae,ve=ye==">"?"endTag":"selfcloseTag","tag bracket";if(ye=="=")return ve="equals",null;if(ye=="<"){We.tokenize=Ae,We.state=yt,We.tagName=We.tagStart=null;var Ne=We.tokenize(ae,We);return Ne?Ne+" tag error":"tag error"}else return/[\'\"]/.test(ye)?(We.tokenize=Dt(ye),We.stringStartCol=ae.column(),We.tokenize(ae,We)):(ae.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Dt(ae){var We=function(ye,Ne){for(;!ye.eol();)if(ye.next()==ae){Ne.tokenize=_e;break}return"string"};return We.isInAttribute=!0,We}function et(ae,We){return function(ye,Ne){for(;!ye.eol();){if(ye.match(We)){Ne.tokenize=Ae;break}ye.next()}return ae}}function nt(ae){return function(We,ye){for(var Ne;(Ne=We.next())!=null;){if(Ne=="<")return ye.tokenize=nt(ae+1),ye.tokenize(We,ye);if(Ne==">")if(ae==1){ye.tokenize=Ae;break}else return ye.tokenize=nt(ae-1),ye.tokenize(We,ye)}return"meta"}}function ct(ae,We,ye){this.prev=ae.context,this.tagName=We,this.indent=ae.indented,this.startOfLine=ye,(qt.doNotIndent.hasOwnProperty(We)||ae.context&&ae.context.noIndent)&&(this.noIndent=!0)}function lt(ae){ae.context&&(ae.context=ae.context.prev)}function pt(ae,We){for(var ye;;){if(!ae.context||(ye=ae.context.tagName,!qt.contextGrabbers.hasOwnProperty(ye)||!qt.contextGrabbers[ye].hasOwnProperty(We)))return;lt(ae)}}function yt(ae,We,ye){return ae=="openTag"?(ye.tagStart=We.column(),Lt):ae=="closeTag"?kt:yt}function Lt(ae,We,ye){return ae=="word"?(ye.tagName=We.current(),se="tag",$t):qt.allowMissingTagName&&ae=="endTag"?(se="tag bracket",$t(ae,We,ye)):(se="error",Lt)}function kt(ae,We,ye){if(ae=="word"){var Ne=We.current();return ye.context&&ye.context.tagName!=Ne&&qt.implicitlyClosed.hasOwnProperty(ye.context.tagName)&<(ye),ye.context&&ye.context.tagName==Ne||qt.matchClosing===!1?(se="tag",Ht):(se="tag error",Yt)}else return qt.allowMissingTagName&&ae=="endTag"?(se="tag bracket",Ht(ae,We,ye)):(se="error",Yt)}function Ht(ae,We,ye){return ae!="endTag"?(se="error",Ht):(lt(ye),yt)}function Yt(ae,We,ye){return se="error",Ht(ae,We,ye)}function $t(ae,We,ye){if(ae=="word")return se="attribute",ee;if(ae=="endTag"||ae=="selfcloseTag"){var Ne=ye.tagName,Ie=ye.tagStart;return ye.tagName=ye.tagStart=null,ae=="selfcloseTag"||qt.autoSelfClosers.hasOwnProperty(Ne)?pt(ye,Ne):(pt(ye,Ne),ye.context=new ct(ye,Ne,Ie==ye.indented)),yt}return se="error",$t}function ee(ae,We,ye){return ae=="equals"?te:(qt.allowMissing||(se="error"),$t(ae,We,ye))}function te(ae,We,ye){return ae=="string"?Pe:ae=="word"&&qt.allowUnquoted?(se="string",$t):(se="error",$t(ae,We,ye))}function Pe(ae,We,ye){return ae=="string"?Pe:$t(ae,We,ye)}return{startState:function(ae){var We={tokenize:Ae,state:yt,indented:ae||0,tagName:null,tagStart:null,context:null};return ae!=null&&(We.baseIndent=ae),We},token:function(ae,We){if(!We.tagName&&ae.sol()&&(We.indented=ae.indentation()),ae.eatSpace())return null;ve=null;var ye=We.tokenize(ae,We);return(ye||ve)&&ye!="comment"&&(se=null,We.state=We.state(ve||ye,ae,We),se&&(ye=se=="error"?ye+" error":se)),ye},indent:function(ae,We,ye){var Ne=ae.context;if(ae.tokenize.isInAttribute)return ae.tagStart==ae.indented?ae.stringStartCol+1:ae.indented+Ee;if(Ne&&Ne.noIndent)return vt.Pass;if(ae.tokenize!=_e&&ae.tokenize!=Ae)return ye?ye.match(/^(\s*)/)[0].length:0;if(ae.tagName)return qt.multilineTagIndentPastTag!==!1?ae.tagStart+ae.tagName.length+2:ae.tagStart+Ee*(qt.multilineTagIndentFactor||1);if(qt.alignCDATA&&/$/,blockCommentStart:"",configuration:qt.htmlMode?"html":"xml",helperType:qt.htmlMode?"html":"xml",skipAttribute:function(ae){ae.state==te&&(ae.state=$t)},xmlCurrentTag:function(ae){return ae.tagName?{name:ae.tagName,close:ae.type=="closeTag"}:null},xmlCurrentContext:function(ae){for(var We=[],ye=ae.context;ye;ye=ye.prev)ye.tagName&&We.push(ye.tagName);return We.reverse()}}}),vt.defineMIME("text/xml","xml"),vt.defineMIME("application/xml","xml"),vt.mimeModes.hasOwnProperty("text/html")||vt.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(Ze,En,bt){"use strict";bt.d(En,{$u:function(){return Se},BD:function(){return On},E9:function(){return Ce},FF:function(){return Fo},FJ:function(){return yt},Hn:function(){return pt},KX:function(){return kt},NB:function(){return Bt},S0:function(){return re},UL:function(){return ve},Vk:function(){return lt},Vm:function(){return xt},YI:function(){return kn},ZA:function(){return ue},Zt:function(){return se},al:function(){return un},bn:function(){return nn},bx:function(){return Un},g2:function(){return Zn},h1:function(){return te},hD:function(){return wi},l4:function(){return Ee},rU:function(){return Mt},s_:function(){return hi},uz:function(){return sn},z6:function(){return Ae}}),Ze=bt.hmd(Ze),function(){var Ct;function Rs(a){var y=0;return function(){return yx&&(x=Math.max(0,b+x)),(E==null||E>b)&&(E=b),E=Number(E),0>E&&(E=Math.max(0,b+E)),x=Number(x||0);x=a.length?a.push(x):a.splice(y,0,x):ie("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function Po(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):ie("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function vi(){var a=io.pop();return a===void 0?[]:a}function Ci(a){a.length=0,io.push(a)}function ui(a){if(typeof a=="function"){if(a.className)return a.className;if(a.name)return a.name;var y=a.toString();if(y=y.substring(9,y.indexOf("(")).trim(),y!=="")return a._className=y}else if(ke(a)&&a.constructor)return ui(a.constructor);return typeof a}function yo(a){var y=a;return ke(a)&&(a.text?y=a.text:a.name?y=a.name:a.key!==void 0?y=a.key:a.id!==void 0?y=a.id:a.constructor===Object&&(a.Text?y=a.Text:a.Name?y=a.Name:a.Key!==void 0?y=a.Key:a.Id!==void 0?y=a.Id:a.ID!==void 0&&(y=a.ID))),y===void 0?"undefined":y===null?"null":y.toString()}function cr(a,y){if(a.hasOwnProperty(y))return!0;for(a=Object.getPrototypeOf(a);a&&a!==Function;){if(a.hasOwnProperty(y))return!0;var x=a.CA;if(x&&x[y])return!0;a=Object.getPrototypeOf(a)}return!1}function Vo(a,y,x){Object.defineProperty(mo.prototype,a,{get:y,set:x})}function Xe(a){for(var y=[],x=0;256>x;x++)y["0123456789abcdef".charAt(x>>4)+"0123456789abcdef".charAt(x&15)]=String.fromCharCode(x);a.length%2&&(a="0"+a),x=[];for(var E=0,b=0;bx;x++)y[x]=x;for(x=E=0;256>x;x++)E=(E+y[x]+119)%256,b=y[x],y[x]=y[E],y[E]=b;E=x=0;for(var z="",tt=0;tt-1||z.indexOf("\xA9 1998-2021 Northwoods Software")>-1||z.indexOf("Not for distribution or production use")>-1||z.indexOf("gojs.net")>-1?"":z}var _o=be.navigator!==void 0&&0this.key)return!1;a=a.s;var y=a.length,x=++this.Za,E=this.qf;if(E!==null)for(;xthis.key)return!1;var y=--this.Za;return 0<=y?(this.key=y,this.value=a.s[y],!0):(this.de(),!1)},jo.prototype.Ad=function(){return this.next()},jo.prototype.first=function(){var a=this.Bb;this.qa=a.Ja;var y=a.s;return this.Za=a=y.length-1,0<=a?(y=y[a],this.key=a,this.value=y):null},jo.prototype.any=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(a(y[x]))return!0;return!1},jo.prototype.all=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(!a(y[x]))return!1;return!0},jo.prototype.each=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)a(y[x]);return this},jo.prototype.map=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--)x.push(a(y[E]));return a=new Je,a.s=x,a.xb(),a.iterator},jo.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--){var b=y[E];a(b)&&x.push(b)}return a=new Je,a.s=x,a.xb(),a.iterator},jo.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},jo.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},fe.Object.defineProperties(jo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),jo.prototype.first=jo.prototype.first,jo.prototype.hasNext=jo.prototype.Ad,jo.prototype.next=jo.prototype.next,jo.prototype.reset=jo.prototype.reset,jo.className="ListIteratorBackwards";function Je(a){Lo(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&ie("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ct=Je.prototype,Ct.xb=function(){var a=this.Ja;a++,999999999a||a>=y.length)&&Kn(a,"0 <= i < length",Je,"elt:i"),y[a]},Ct.get=function(a){return this.M(a)},Ct.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Kn(a,"0 <= i < length",Je,"setElt:i"),this._isFrozen&&yn(this,a),x[a]=y},Ct.set=function(a,y){this.cd(a,y)},Ct.first=function(){var a=this.s;return a.length===0?null:a[0]},Ct.jc=function(){var a=this.s,y=a.length;return 0a&&Kn(a,">= 0",Je,"insertAt:i"),this._isFrozen&&yn(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Ct.remove=function(a){if(a===null)return!1;this._isFrozen&&yn(this,a);var y=this.s;return a=y.indexOf(a),a===-1?!1:(a===y.length-1?y.pop():y.splice(a,1),this.xb(),!0)},Ct.delete=function(a){return this.remove(a)},Ct.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Kn(a,"0 <= i < length",Je,"removeAt:i"),this._isFrozen&&yn(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Ct.removeRange=function(a,y){var x=this.s,E=x.length;if(0>a)a=0;else if(a>=E)return this;if(0>y)return this;if(y>=E&&(y=E-1),a>y)return this;this._isFrozen&&yn(this);for(var b=a,z=y+1;z=z)return this;if((0>y||y>=b-1)&&Kn(y,"0 <= from < length",Je,"sortRange:from"),z===2)return x=E[y],b=E[y+1],0=b)E.sort(a);else for(y=E.slice(0,x),y.sort(a),a=0;a=b)for(x=E.slice(y),x.sort(a),a=y;a=this.s.length)return To;var a=this.Sa;return a!==null?(a.reset(),a):new co(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return To;var a=this.Hg;return a!==null?(a.reset(),a):new jo(this)}}}),Je.prototype.reverse=Je.prototype.reverse,Je.prototype.sortRange=Je.prototype.zi,Je.prototype.sort=Je.prototype.sort,Je.prototype.toSet=Je.prototype.Iv,Je.prototype.toArray=Je.prototype.Fa,Je.prototype.removeRange=Je.prototype.removeRange,Je.prototype.removeAt=Je.prototype.mb,Je.prototype.delete=Je.prototype.delete,Je.prototype.remove=Je.prototype.remove,Je.prototype.insertAt=Je.prototype.Gb,Je.prototype.pop=Je.prototype.pop,Je.prototype.last=Je.prototype.jc,Je.prototype.first=Je.prototype.first,Je.prototype.set=Je.prototype.set,Je.prototype.setElt=Je.prototype.cd,Je.prototype.get=Je.prototype.get,Je.prototype.elt=Je.prototype.M,Je.prototype.indexOf=Je.prototype.indexOf,Je.prototype.has=Je.prototype.has,Je.prototype.contains=Je.prototype.contains,Je.prototype.clear=Je.prototype.clear,Je.prototype.addAll=Je.prototype.addAll,Je.prototype.push=Je.prototype.push,Je.prototype.add=Je.prototype.add,Je.prototype.thaw=Je.prototype.ka,Je.prototype.freeze=Je.prototype.freeze,Je.className="List";function po(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}po.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},po.prototype.next=function(){var a=this.eg;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},po.prototype.Ad=function(){return this.next()},po.prototype.first=function(){var a=this.eg;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},po.prototype.any=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},po.prototype.all=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},po.prototype.each=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},po.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new Je;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},po.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new Je;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},po.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},po.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},fe.Object.defineProperties(po.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),po.prototype.first=po.prototype.first,po.prototype.hasNext=po.prototype.Ad,po.prototype.next=po.prototype.next,po.prototype.reset=po.prototype.reset,po.className="SetIterator";function Ke(a){Lo(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&ie("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ct=Ke.prototype,Ct.xb=function(){var a=this.Ja;a++,999999999=this.Sb)return To;var a=this.Sa;return a!==null?(a.reset(),a):new po(this)}}}),Ke.prototype.toList=Ke.prototype.Hv,Ke.prototype.toArray=Ke.prototype.Fa,Ke.prototype.clear=Ke.prototype.clear,Ke.prototype.retainAll=Ke.prototype.pA,Ke.prototype.removeAll=Ke.prototype.hp,Ke.prototype.delete=Ke.prototype.delete,Ke.prototype.remove=Ke.prototype.remove,Ke.prototype.first=Ke.prototype.first,Ke.prototype.containsAny=Ke.prototype.Ty,Ke.prototype.containsAll=Ke.prototype.Sy,Ke.prototype.has=Ke.prototype.has,Ke.prototype.contains=Ke.prototype.contains,Ke.prototype.addAll=Ke.prototype.addAll,Ke.prototype.add=Ke.prototype.add,Ke.prototype.thaw=Ke.prototype.ka,Ke.prototype.freeze=Ke.prototype.freeze;var Fs=1;Ke.className="Set",Ke.uniqueHash=Lo,Ke.hashIdUnique=as,Ke.hashId=vr;function yr(a){this.ma=a,this.qa=a.Ja,this.sa=null}yr.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},yr.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=this.key=a=y.key,!0):(this.de(),!1)},yr.prototype.Ad=function(){return this.next()},yr.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.value=this.key=a=a.key):null},yr.prototype.any=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},yr.prototype.all=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},yr.prototype.each=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;)a(y.key),y=y.va;return this},yr.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new Je;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},yr.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new Je;for(y=y.ea;y!==null;){var E=y.key;a(E)&&x.add(E),y=y.va}return x.iterator},yr.prototype.de=function(){this.value=this.key=null,this.qa=-1},yr.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},fe.Object.defineProperties(yr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),yr.prototype.first=yr.prototype.first,yr.prototype.hasNext=yr.prototype.Ad,yr.prototype.next=yr.prototype.next,yr.prototype.reset=yr.prototype.reset,yr.className="MapKeySetIterator";function cn(a){Ke.call(this),Lo(this),this._isFrozen=!0,this.ma=a}pe(cn,Ke),Ct=cn.prototype,Ct.freeze=function(){return this},Ct.ka=function(){return this},Ct.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Ct.add=function(){ie("This Set is read-only: "+this.toString())},Ct.contains=function(a){return this.ma.contains(a)},Ct.has=function(a){return this.contains(a)},Ct.remove=function(){ie("This Set is read-only: "+this.toString())},Ct.delete=function(a){return this.remove(a)},Ct.clear=function(){ie("This Set is read-only: "+this.toString())},Ct.first=function(){var a=this.ma.ea;return a!==null?a.key:null},cn.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},cn.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},cn.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},cn.prototype.map=function(a){for(var y=new Ke,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},cn.prototype.filter=function(a){for(var y=new Ke,x=this.ma.ea;x!==null;){var E=x.key;a(E)&&y.add(E),x=x.va}return y},cn.prototype.copy=function(){return new cn(this.ma)},cn.prototype.Iv=function(){var a=new Ke,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},cn.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),x=0,E;for(E in a)y[x]=a[E].key,x++;return y},cn.prototype.Hv=function(){var a=new Je,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},fe.Object.defineProperties(cn.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?To:new yr(this.ma)}}}),cn.prototype.toList=cn.prototype.Hv,cn.prototype.toArray=cn.prototype.Fa,cn.prototype.toSet=cn.prototype.Iv,cn.prototype.first=cn.prototype.first,cn.prototype.clear=cn.prototype.clear,cn.prototype.delete=cn.prototype.delete,cn.prototype.remove=cn.prototype.remove,cn.prototype.has=cn.prototype.has,cn.prototype.contains=cn.prototype.contains,cn.prototype.add=cn.prototype.add,cn.prototype.thaw=cn.prototype.ka,cn.prototype.freeze=cn.prototype.freeze,cn.className="MapKeySet";function $o(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}$o.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},$o.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},$o.prototype.Ad=function(){return this.next()},$o.prototype.first=function(){var a=this.ma;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},$o.prototype.any=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},$o.prototype.all=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},$o.prototype.each=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},$o.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Je;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},$o.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Je;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},$o.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},$o.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},fe.Object.defineProperties($o.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),$o.prototype.first=$o.prototype.first,$o.prototype.hasNext=$o.prototype.Ad,$o.prototype.next=$o.prototype.next,$o.prototype.reset=$o.prototype.reset,$o.className="MapValueSetIterator";function Ra(a,y){this.key=a,this.value=y,this.ll=this.va=null}Ra.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Ra.className="KeyValuePair";function Ir(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Ir.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},Ir.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.key=y.key,this.value=y.value,!0):(this.de(),!1)},Ir.prototype.Ad=function(){return this.next()},Ir.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.key=a.key,this.value=a.value,a):null},Ir.prototype.any=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},Ir.prototype.all=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},Ir.prototype.each=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y),y=y.va;return this},Ir.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Je;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},Ir.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Je;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},Ir.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},Ir.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},fe.Object.defineProperties(Ir.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Ir.prototype.first=Ir.prototype.first,Ir.prototype.hasNext=Ir.prototype.Ad,Ir.prototype.next=Ir.prototype.next,Ir.prototype.reset=Ir.prototype.reset,Ir.className="MapIterator";function Vn(a){Lo(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.jf=this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&ie("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ct=Vn.prototype,Ct.xb=function(){var a=this.Ja;a++,999999999=this.count)return To;var a=this.Sa;return a!==null?(a.reset(),a):new Ir(this)}},iteratorKeys:{get:function(){return 0>=this.count?To:new yr(this)}},iteratorValues:{get:function(){if(0>=this.count)return To;var a=this.jf;return a!==null?(a.reset(),a):new $o(this)}}}),Vn.prototype.toKeySet=Vn.prototype.Lf,Vn.prototype.toArray=Vn.prototype.Fa,Vn.prototype.clear=Vn.prototype.clear,Vn.prototype.delete=Vn.prototype.delete,Vn.prototype.remove=Vn.prototype.remove,Vn.prototype.get=Vn.prototype.get,Vn.prototype.getValue=Vn.prototype.I,Vn.prototype.has=Vn.prototype.has,Vn.prototype.contains=Vn.prototype.contains,Vn.prototype.first=Vn.prototype.first,Vn.prototype.addAll=Vn.prototype.addAll,Vn.prototype.set=Vn.prototype.set,Vn.prototype.add=Vn.prototype.add,Vn.prototype.thaw=Vn.prototype.ka,Vn.prototype.freeze=Vn.prototype.freeze,Vn.className="Map";function Rt(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):ie("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var $r,ps,na,ca,_l;Rt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Rt.prototype.h=function(a,y){return this.x=a,this.y=y,this},Rt.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Rt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Rt.prototype.copy=function(){var a=new Rt;return a.x=this.x,a.y=this.y,a},Ct=Rt.prototype,Ct.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ct.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return Object.isFrozen(this)&&ie("cannot thaw constant: "+this),this._isFrozen=!1,this};function ga(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new Rt(x,b)}return new Rt}function Eu(a){return a.x.toString()+" "+a.y.toString()}Ct.toString=function(){return"Point("+this.x+","+this.y+")"},Ct.D=function(a){return a instanceof Rt?this.x===a.x&&this.y===a.y:!1},Ct.hi=function(a,y){return this.x===a&&this.y===y},Ct.Xa=function(a){return Jt.B(this.x,a.x)&&Jt.B(this.y,a.y)},Ct.add=function(a){return this.x+=a.x,this.y+=a.y,this},Ct.re=function(a){return this.x-=a.x,this.y-=a.y,this},Ct.offset=function(a,y){return this.x+=a,this.y+=y,this},Rt.prototype.rotate=function(a){if(a===0)return this;var y=this.x,x=this.y;if(y===0&&x===0)return this;if(360<=a?a-=360:0>a&&(a+=360),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));return this.x=a*y-E*x,this.y=E*y+a*x,this},Ct=Rt.prototype,Ct.scale=function(a,y){return this.x*=a,this.y*=y,this},Ct.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Ct.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Ct.normalize=function(){var a=this.x,y=this.y,x=Math.sqrt(a*a+y*y);return 0y?270:0;if(y===0)return 0a?x=0>y?x+180:180-x:0>y&&(x=360-x),x}Ct.Ry=function(a,y){return Jt.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Ct.fA=function(a,y,x,E){return Jt.qh(a,y,x,E,this.x,this.y,this),this},Ct.gA=function(a,y){return Jt.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Ct.uA=function(a,y,x,E){return Jt.No(this.x,this.y,a,y,x,E,this),this},Ct.vA=function(a,y){return Jt.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Ct.xi=function(a,y){return this.x=a.x+y.x*a.width+y.offsetX,this.y=a.y+y.y*a.height+y.offsetY,this},Ct.yi=function(a,y,x,E,b){return this.x=a+b.x*x+b.offsetX,this.y=y+b.y*E+b.offsetY,this},Ct.transform=function(a){return a.Ga(this),this};function tr(a,y){return y.Cd(a),a}function gr(a,y,x,E,b,z){var tt=b-x,ot=z-E,rt=tt*tt+ot*ot;x-=a,E-=y;var at=-x*tt-E*ot;return 0>=at||at>=rt?(tt=b-a,ot=z-y,Math.min(x*x+E*E,tt*tt+ot*ot)):(a=tt*E-ot*x,a*a/rt)}function Ea(a,y,x,E){return a=x-a,y=E-y,a*a+y*y}function Ti(a,y,x,E){return a=x-a,y=E-y,a===0?0y?270:0:y===0?0a?E=0>y?E+180:180-E:0>y&&(E=360-E),E)}Ct.w=function(){return isFinite(this.x)&&isFinite(this.y)},Rt.alloc=function(){var a=ci.pop();return a===void 0?new Rt:a},Rt.allocAt=function(a,y){var x=ci.pop();return x===void 0?new Rt(a,y):(x.x=a,x.y=y,x)},Rt.free=function(a){ci.push(a)},Rt.prototype.isReal=Rt.prototype.w,Rt.prototype.setSpot=Rt.prototype.yi,Rt.prototype.setRectSpot=Rt.prototype.xi,Rt.prototype.snapToGridPoint=Rt.prototype.vA,Rt.prototype.snapToGrid=Rt.prototype.uA,Rt.prototype.projectOntoLineSegmentPoint=Rt.prototype.gA,Rt.prototype.projectOntoLineSegment=Rt.prototype.fA,Rt.intersectingLineSegments=function(a,y,x,E,b,z,tt,ot){return Jt.Rl(a,y,x,E,b,z,tt,ot)},Rt.prototype.compareWithLineSegmentPoint=Rt.prototype.Ry,Rt.compareWithLineSegment=function(a,y,x,E,b,z){return Jt.Fl(a,y,x,E,b,z)},Rt.prototype.direction=Rt.prototype.direction,Rt.prototype.directionPoint=Rt.prototype.ab,Rt.prototype.normalize=Rt.prototype.normalize,Rt.prototype.distanceSquared=Rt.prototype.zd,Rt.prototype.distanceSquaredPoint=Rt.prototype.Bf,Rt.prototype.scale=Rt.prototype.scale,Rt.prototype.rotate=Rt.prototype.rotate,Rt.prototype.offset=Rt.prototype.offset,Rt.prototype.subtract=Rt.prototype.re,Rt.prototype.add=Rt.prototype.add,Rt.prototype.equalsApprox=Rt.prototype.Xa,Rt.prototype.equalTo=Rt.prototype.hi,Rt.prototype.equals=Rt.prototype.D,Rt.prototype.set=Rt.prototype.set,Rt.prototype.setTo=Rt.prototype.sg;var ci=[];Rt.className="Point",Rt.parse=ga,Rt.stringify=Eu,Rt.distanceLineSegmentSquared=gr,Rt.distanceSquared=Ea,Rt.direction=Ti,Rt.Origin=$r=new Rt(0,0).ja(),Rt.InfiniteTopLeft=ps=new Rt(-1/0,-1/0).ja(),Rt.InfiniteBottomRight=na=new Rt(1/0,1/0).ja(),Rt.SixPoint=ca=new Rt(6,6).ja(),Rt.NoPoint=_l=new Rt(NaN,NaN).ja(),Rt.parse=ga,Rt.stringify=Eu,Rt.distanceLineSegmentSquared=gr,Rt.distanceSquared=Ea,Rt.direction=Ti;function tn(a,y){a===void 0?this.height=this.width=0:typeof a=="number"&&(0<=a||isNaN(a))&&typeof y=="number"&&(0<=y||isNaN(y))?(this.width=a,this.height=y):ie("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var Pi,oo,ir,fr,pr,Rr,Sr;tn.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},tn.prototype.h=function(a,y){return this.width=a,this.height=y,this},tn.prototype.sg=function(a,y){return this.width=a,this.height=y,this},tn.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},tn.prototype.copy=function(){var a=new tn;return a.width=this.width,a.height=this.height,a},Ct=tn.prototype,Ct.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ct.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return Object.isFrozen(this)&&ie("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ga(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new tn(x,b)}return new tn}function fa(a){return a.width.toString()+" "+a.height.toString()}Ct.toString=function(){return"Size("+this.width+","+this.height+")"},Ct.D=function(a){return a instanceof tn?this.width===a.width&&this.height===a.height:!1},Ct.hi=function(a,y){return this.width===a&&this.height===y},Ct.Xa=function(a){return Jt.B(this.width,a.width)&&Jt.B(this.height,a.height)},Ct.Bc=function(a,y){return a=this.width+a,this.width=0<=a?a:0,y=this.height+y,this.height=0<=y?y:0,this},Ct.w=function(){return isFinite(this.width)&&isFinite(this.height)},tn.alloc=function(){var a=Ql.pop();return a===void 0?new tn:a},tn.free=function(a){Ql.push(a)},tn.prototype.isReal=tn.prototype.w,tn.prototype.inflate=tn.prototype.Bc,tn.prototype.equalsApprox=tn.prototype.Xa,tn.prototype.equalTo=tn.prototype.hi,tn.prototype.equals=tn.prototype.D,tn.prototype.set=tn.prototype.set,tn.prototype.setTo=tn.prototype.sg;var Ql=[];tn.className="Size",tn.parse=Ga,tn.stringify=fa,tn.ZeroSize=Pi=new tn(0,0).ja(),tn.OneSize=oo=new tn(1,1).ja(),tn.SixSize=ir=new tn(6,6).ja(),tn.EightSize=fr=new tn(8,8).ja(),tn.TenSize=pr=new tn(10,10).ja(),tn.InfiniteSize=Rr=new tn(1/0,1/0).ja(),tn.NoSize=Sr=new tn(NaN,NaN).ja(),tn.parse=Ga,tn.stringify=fa;function Me(a,y,x,E){a===void 0?this.height=this.width=this.y=this.x=0:typeof a=="number"&&typeof y=="number"&&typeof x=="number"&&(0<=x||isNaN(x))&&typeof E=="number"&&(0<=E||isNaN(E))?(this.x=a,this.y=y,this.width=x,this.height=E):a instanceof Rt?(x=a.x,a=a.y,y instanceof Rt?(E=y.x,y=y.y,this.x=Math.min(x,E),this.y=Math.min(a,y),this.width=Math.abs(x-E),this.height=Math.abs(a-y)):y instanceof tn?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):ie("Incorrect second argument supplied to Rect constructor "+y)):ie("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}Ct=Me.prototype,Ct.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Ct.h=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this};function Ts(a,y,x){a.width=y,a.height=x}Ct.sg=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this},Ct.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Ct.dd=function(a){return this.x=a.x,this.y=a.y,this},Ct.tA=function(a){return this.width=a.width,this.height=a.height,this},Me.prototype.copy=function(){var a=new Me;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Ct=Me.prototype,Ct.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ct.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return Object.isFrozen(this)&&ie("cannot thaw constant: "+this),this._isFrozen=!1,this};function Au(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;(E=a[y++])&&(b=parseFloat(E));for(var z=0;a[y]==="";)y++;(E=a[y++])&&(z=parseFloat(E));for(var tt=0;a[y]==="";)y++;return(E=a[y++])&&(tt=parseFloat(E)),new Me(x,b,z,tt)}return new Me}function qa(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Ct.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Ct.D=function(a){return a instanceof Me?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Ct.hi=function(a,y,x,E){return this.x===a&&this.y===y&&this.width===x&&this.height===E},Ct.Xa=function(a){return Jt.B(this.x,a.x)&&Jt.B(this.y,a.y)&&Jt.B(this.width,a.width)&&Jt.B(this.height,a.height)};function au(a,y){return Jt.$(a.x,y.x)&&Jt.$(a.y,y.y)&&Jt.$(a.width,y.width)&&Jt.$(a.height,y.height)}Ct.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Ct.Re=function(a){return this.x<=a.x&&a.x+a.width<=this.x+this.width&&this.y<=a.y&&a.y+a.height<=this.y+this.height},Ct.contains=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),this.x<=a&&a+x<=this.x+this.width&&this.y<=y&&y+E<=this.y+this.height},Ct.offset=function(a,y){return this.x+=a,this.y+=y,this},Ct.Bc=function(a,y){return Lr(this,y,a,y,a)},Ct.Co=function(a){return Lr(this,a.top,a.right,a.bottom,a.left)},Ct.Fv=function(a){return Lr(this,-a.top,-a.right,-a.bottom,-a.left)},Ct.Hz=function(a,y,x,E){return Lr(this,a,y,x,E)};function Lr(a,y,x,E,b){var z=a.width;return x+b<=-z?(a.x+=z/2,a.width=0):(a.x-=b,a.width+=x+b),x=a.height,y+E<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+E),a}Ct.Ex=function(a){return kl(this,a.x,a.y,a.width,a.height)},Ct.Uu=function(a,y,x,E){return kl(this,a,y,x,E)};function kl(a,y,x,E,b){var z=Math.max(a.x,y),tt=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+E),x=Math.min(a.y+a.height,x+b),a.x=z,a.y=tt,a.width=Math.max(0,y-z),a.height=Math.max(0,x-tt),a}Ct.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Ct.Vu=function(a,y,x,E){var b=this.width,z=this.x;return b!==1/0&&x!==1/0&&(b+=z,x+=a,isNaN(x)||isNaN(b)||z>x||a>b)?!1:(a=this.height,x=this.y,!(a!==1/0&&E!==1/0&&(a+=x,E+=y,isNaN(E)||isNaN(a)||x>E||y>a)))};function gl(a,y){var x=a.width,E=a.x,b=y.x-10;return E>y.width+10+10+b||b>x+E?!1:(x=a.height,a=a.y,E=y.y-10,!(a>y.height+10+10+E||E>x+a))}Ct.Ye=function(a){return Ko(this,a.x,a.y,0,0)},Ct.ed=function(a){return Ko(this,a.x,a.y,a.width,a.height)},Ct.Kv=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),Ko(this,a,y,x,E)};function Ko(a,y,x,E,b){var z=Math.min(a.x,y),tt=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+E),x=Math.max(a.y+a.height,x+b),a.x=z,a.y=tt,a.width=y-z,a.height=x-tt,a}Ct.yi=function(a,y,x){return this.x=a-x.offsetX-x.x*this.width,this.y=y-x.offsetY-x.y*this.height,this};function Yr(a,y,x,E,b,z,tt,ot){return tt===void 0&&(tt=0),ot===void 0&&(ot=0),a<=b&&b+tt<=a+x&&y<=z&&z+ot<=y+E}function Nu(a,y,x,E,b,z,tt,ot){return a>tt+b||b>x+a?!1:!(y>ot+z||z>E+y)}Ct.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Ct.Mz=function(){return this.width===0&&this.height===0},Me.alloc=function(){var a=Aa.pop();return a===void 0?new Me:a},Me.allocAt=function(a,y,x,E){var b=Aa.pop();return b===void 0?new Me(a,y,x,E):b.h(a,y,x,E)},Me.free=function(a){Aa.push(a)},fe.Object.defineProperties(Me.prototype,{left:{get:function(){return this.x},set:function(a){this.x=a}},top:{get:function(){return this.y},set:function(a){this.y=a}},right:{get:function(){return this.x+this.width},set:function(a){this.x+=a-(this.x+this.width)}},bottom:{get:function(){return this.y+this.height},set:function(a){this.y+=a-(this.y+this.height)}},position:{get:function(){return new Rt(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new tn(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Rt(this.x+this.width/2,this.y+this.height/2)},set:function(a){this.x=a.x-this.width/2,this.y=a.y-this.height/2}},centerX:{get:function(){return this.x+this.width/2},set:function(a){this.x=a-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(a){this.y=a-this.height/2}}}),Me.prototype.isEmpty=Me.prototype.Mz,Me.prototype.isReal=Me.prototype.w,Me.intersectsLineSegment=function(a,y,x,E,b,z,tt,ot){return Jt.Fx(a,y,x,E,b,z,tt,ot)},Me.prototype.setSpot=Me.prototype.yi,Me.prototype.union=Me.prototype.Kv,Me.prototype.unionRect=Me.prototype.ed,Me.prototype.unionPoint=Me.prototype.Ye,Me.prototype.intersects=Me.prototype.Vu,Me.prototype.intersectsRect=Me.prototype.Yc,Me.prototype.intersect=Me.prototype.Uu,Me.prototype.intersectRect=Me.prototype.Ex,Me.prototype.grow=Me.prototype.Hz,Me.prototype.subtractMargin=Me.prototype.Fv,Me.prototype.addMargin=Me.prototype.Co,Me.prototype.inflate=Me.prototype.Bc,Me.prototype.offset=Me.prototype.offset,Me.prototype.contains=Me.prototype.contains,Me.prototype.containsRect=Me.prototype.Re,Me.prototype.containsPoint=Me.prototype.ca,Me.prototype.equalsApprox=Me.prototype.Xa,Me.prototype.equalTo=Me.prototype.hi,Me.prototype.equals=Me.prototype.D,Me.prototype.setSize=Me.prototype.tA,Me.prototype.setPoint=Me.prototype.dd,Me.prototype.set=Me.prototype.set,Me.prototype.setTo=Me.prototype.sg;var xs=null,ku=null,Aa=[];Me.className="Rect",Me.parse=Au,Me.stringify=qa,Me.contains=Yr,Me.intersects=Nu,Me.ZeroRect=xs=new Me(0,0,0,0).ja(),Me.NoRect=ku=new Me(NaN,NaN,NaN,NaN).ja(),Me.parse=Au,Me.stringify=qa,Me.contains=Yr,Me.intersects=Nu;function ii(a,y,x,E){a===void 0?this.left=this.bottom=this.right=this.top=0:y===void 0?this.left=this.bottom=this.right=this.top=a:x===void 0?(this.top=a,this.right=y,this.bottom=a,this.left=y):E!==void 0?(this.top=a,this.right=y,this.bottom=x,this.left=E):ie("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}ii.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},ii.prototype.sg=function(a,y,x,E){return this.top=a,this.right=y,this.bottom=x,this.left=E,this},ii.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},ii.prototype.copy=function(){var a=new ii;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Ct=ii.prototype,Ct.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ct.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return Object.isFrozen(this)&&ie("cannot thaw constant: "+this),this._isFrozen=!1,this};function xh(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=NaN;a[y]==="";)y++;var E=a[y++];if(E&&(x=parseFloat(E)),isNaN(x))return new ii;for(var b=NaN;a[y]==="";)y++;if((E=a[y++])&&(b=parseFloat(E)),isNaN(b))return new ii(x);for(var z=NaN;a[y]==="";)y++;if((E=a[y++])&&(z=parseFloat(E)),isNaN(z))return new ii(x,b);for(var tt=NaN;a[y]==="";)y++;return(E=a[y++])&&(tt=parseFloat(E)),isNaN(tt)?new ii(x,b):new ii(x,b,z,tt)}return new ii}function wh(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Ct.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Ct.D=function(a){return a instanceof ii?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Ct.hi=function(a,y,x,E){return this.top===a&&this.right===y&&this.bottom===x&&this.left===E},Ct.Xa=function(a){return Jt.B(this.top,a.top)&&Jt.B(this.right,a.right)&&Jt.B(this.bottom,a.bottom)&&Jt.B(this.left,a.left)},Ct.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},ii.alloc=function(){var a=nd.pop();return a===void 0?new ii:a},ii.free=function(a){nd.push(a)},ii.prototype.isReal=ii.prototype.w,ii.prototype.equalsApprox=ii.prototype.Xa,ii.prototype.equalTo=ii.prototype.hi,ii.prototype.equals=ii.prototype.D,ii.prototype.set=ii.prototype.set,ii.prototype.setTo=ii.prototype.sg;var Ha=null,ed=null,nd=[];ii.className="Margin",ii.parse=xh,ii.stringify=wh,ii.ZeroMargin=Ha=new ii(0,0,0,0).ja(),ii.TwoMargin=ed=new ii(2,2,2,2).ja(),ii.parse=xh,ii.stringify=wh;function jn(a,y,x,E){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),E===void 0&&(E=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=E),this._isFrozen=!1}var Er,Vr,pa,lu,Dl,zi,Ju,$a,ia,Bs,Fl,Ge,Gs,Ua,qe,Ni,Yi,to,No,Bi,Oo,Yo,ws,_r,Hs,Dr,Ph,Le,ce,Qt,ti,yi,Si,Oi,Li,ei;jn.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},jn.prototype.sg=function(a,y,x,E){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=E,this},jn.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},jn.prototype.copy=function(){var a=new jn;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Ct=jn.prototype,Ct.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ct.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return Object.isFrozen(this)&&ie("cannot thaw constant: "+this),this._isFrozen=!1,this};function Mn(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function Di(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return Er;if(a==="TopLeft")return Vr;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return pa;if(a==="TopRight")return lu;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Dl;if(a==="Center")return zi;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return Ju;if(a==="BottomLeft")return $a;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return ia;if(a==="BottomRight")return Bs;if(a==="TopSide")return Fl;if(a==="LeftSide")return Ge;if(a==="RightSide")return Gs;if(a==="BottomSide")return Ua;if(a==="TopBottomSides")return qe;if(a==="LeftRightSides")return Ni;if(a==="TopLeftSides")return Yi;if(a==="TopRightSides")return to;if(a==="BottomLeftSides")return No;if(a==="BottomRightSides")return Bi;if(a==="NotTopSide")return Oo;if(a==="NotLeftSide")return Yo;if(a==="NotRightSide")return ws;if(a==="NotBottomSide")return _r;if(a==="AllSides")return Hs;if(a==="Default")return Dr;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E!==void 0&&0a&&(a+=360),a===0)return this;if(this.translate(y,x),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.m12*a+this.m22*E,z=this.m11*-E+this.m21*a,tt=this.m12*-E+this.m22*a;return this.m11=this.m11*a+this.m21*E,this.m12=b,this.m21=z,this.m22=tt,this.translate(-y,-x),this},Ct=In.prototype,Ct.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Ct.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Ct.Ga=function(a){var y=a.x,x=a.y;return a.h(y*this.m11+x*this.m21+this.dx,y*this.m12+x*this.m22+this.dy)},Ct.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=a.x,E=a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Ct.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=1.25*a.x,E=1.2*a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Ct.pp=function(a){var y=a.x,x=a.y,E=y+a.width,b=x+a.height,z=this.m11,tt=this.m12,ot=this.m21,rt=this.m22,at=this.dx,ut=this.dy,gt=y*z+x*ot+at,mt=y*tt+x*rt+ut,St=E*z+x*ot+at,wt=E*tt+x*rt+ut;return x=y*z+b*ot+at,y=y*tt+b*rt+ut,z=E*z+b*ot+at,E=E*tt+b*rt+ut,b=Math.min(gt,St),gt=Math.max(gt,St),St=Math.min(mt,wt),mt=Math.max(mt,wt),b=Math.min(b,x),gt=Math.max(gt,x),St=Math.min(St,y),mt=Math.max(mt,y),b=Math.min(b,z),gt=Math.max(gt,z),St=Math.min(St,E),mt=Math.max(mt,E),a.h(b,St,gt-b,mt-St),a},In.alloc=function(){var a=ro.pop();return a===void 0?new In:a},In.free=function(a){ro.push(a)},In.prototype.transformRect=In.prototype.pp,In.prototype.transformPoint=In.prototype.Ga,In.prototype.scale=In.prototype.scale,In.prototype.translate=In.prototype.translate,In.prototype.rotate=In.prototype.rotate,In.prototype.invert=In.prototype.Vj,In.prototype.multiplyInverted=In.prototype.bv,In.prototype.multiply=In.prototype.multiply,In.prototype.reset=In.prototype.reset,In.prototype.isIdentity=In.prototype.ws,In.prototype.equals=In.prototype.D,In.prototype.setTransform=In.prototype.setTransform,In.prototype.set=In.prototype.set;var ro=[];In.className="Transform",In.xF="54a702f3e53909c447824c6706603faf4c";var Jt={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Jt.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);Jt.Uv=y}return 1>a?(x=1/a,2e3>=x?1/y[x|0]:Math.sqrt(a)):2e3>=a?y[a|0]:Math.sqrt(a)},B:function(a,y){return a-=y,.5>a&&-.5a&&-5e-8=b&&(b=1e-6),aut-at)if(a-x>b||x-a>b){if(z=(E-y)/(x-a)*(z-a)+y,z-b<=tt&&tt<=z+b)return!0}else return!0;else if(y-E>b||E-y>b){if(tt=(x-a)/(E-y)*(tt-y)+a,tt-b<=z&&z<=tt+b)return!0}else return!0;return!1},cs:function(a,y,x,E,b,z,tt,ot,rt,at,ut,gt){if(Jt.Yb(a,y,tt,ot,gt,x,E)&&Jt.Yb(a,y,tt,ot,gt,b,z))return Jt.Yb(a,y,tt,ot,gt,at,ut);var mt=(a+x)/2,St=(y+E)/2,wt=(x+b)/2,Et=(E+z)/2;b=(b+tt)/2,z=(z+ot)/2,E=(mt+wt)/2,x=(St+Et)/2,wt=(wt+b)/2,Et=(Et+z)/2;var Ot=(E+wt)/2,Tt=(x+Et)/2;return Jt.cs(a,y,mt,St,E,x,Ot,Tt,rt,at,ut,gt)||Jt.cs(Ot,Tt,wt,Et,b,z,tt,ot,rt,at,ut,gt)},ax:function(a,y,x,E,b,z,tt,ot,rt){var at=(x+b)/2,ut=(E+z)/2;return rt.h((((a+x)/2+at)/2+(at+(b+tt)/2)/2)/2,(((y+E)/2+ut)/2+(ut+(z+ot)/2)/2)/2),rt},My:function(a,y,x,E,b,z,tt,ot){var rt=(x+b)/2,at=(E+z)/2;return Ti(((a+x)/2+rt)/2,((y+E)/2+at)/2,(rt+(b+tt)/2)/2,(at+(z+ot)/2)/2)},Dl:function(a,y,x,E,b,z,tt,ot,rt,at){if(Jt.Yb(a,y,tt,ot,rt,x,E)&&Jt.Yb(a,y,tt,ot,rt,b,z))Ko(at,a,y,0,0),Ko(at,tt,ot,0,0);else{var ut=(a+x)/2,gt=(y+E)/2,mt=(x+b)/2,St=(E+z)/2;b=(b+tt)/2,z=(z+ot)/2,E=(ut+mt)/2,x=(gt+St)/2,mt=(mt+b)/2,St=(St+z)/2;var wt=(E+mt)/2,Et=(x+St)/2;Jt.Dl(a,y,ut,gt,E,x,wt,Et,rt,at),Jt.Dl(wt,Et,mt,St,b,z,tt,ot,rt,at)}return at},Qe:function(a,y,x,E,b,z,tt,ot,rt,at){if(Jt.Yb(a,y,tt,ot,rt,x,E)&&Jt.Yb(a,y,tt,ot,rt,b,z))at.length===0&&(at.push(a),at.push(y)),at.push(tt),at.push(ot);else{var ut=(a+x)/2,gt=(y+E)/2,mt=(x+b)/2,St=(E+z)/2;b=(b+tt)/2,z=(z+ot)/2,E=(ut+mt)/2,x=(gt+St)/2,mt=(mt+b)/2,St=(St+z)/2;var wt=(E+mt)/2,Et=(x+St)/2;Jt.Qe(a,y,ut,gt,E,x,wt,Et,rt,at),Jt.Qe(wt,Et,mt,St,b,z,tt,ot,rt,at)}return at},jv:function(a,y,x,E,b,z,tt,ot,rt,at){if(Jt.Yb(a,y,b,z,at,x,E))return Jt.Yb(a,y,b,z,at,ot,rt);var ut=(a+x)/2,gt=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var mt=(ut+x)/2,St=(gt+E)/2;return Jt.jv(a,y,ut,gt,mt,St,tt,ot,rt,at)||Jt.jv(mt,St,x,E,b,z,tt,ot,rt,at)},OA:function(a,y,x,E,b,z,tt){return tt.h(((a+x)/2+(x+b)/2)/2,((y+E)/2+(E+z)/2)/2),tt},iv:function(a,y,x,E,b,z,tt,ot){if(Jt.Yb(a,y,b,z,tt,x,E))Ko(ot,a,y,0,0),Ko(ot,b,z,0,0);else{var rt=(a+x)/2,at=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ut=(rt+x)/2,gt=(at+E)/2;Jt.iv(a,y,rt,at,ut,gt,tt,ot),Jt.iv(ut,gt,x,E,b,z,tt,ot)}return ot},ep:function(a,y,x,E,b,z,tt,ot){if(Jt.Yb(a,y,b,z,tt,x,E))ot.length===0&&(ot.push(a),ot.push(y)),ot.push(b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(at-gt)-(y-ot)*(rt*gt-at*ut))/mt;if(wt>=ut)return St;if((rt>ut?rt-ut:ut-rt)<(at>gt?at-gt:gt-at)){if(ya)return St}else if(aa)return St;0mt&&St--}else{wt=(a+x)/2,Et=(y+E)/2;var Ot=(x+b)/2,Tt=(E+z)/2;b=(b+tt)/2,z=(z+ot)/2,E=(wt+Ot)/2,x=(Et+Tt)/2,Ot=(Ot+b)/2,Tt=(Tt+z)/2;var Gt=(E+Ot)/2,Wt=(x+Tt)/2;St+=Jt.Fo(a,y,wt,Et,E,x,Gt,Wt,rt,at,ut,gt,mt),St+=Jt.Fo(Gt,Wt,Ot,Tt,b,z,tt,ot,rt,at,ut,gt,mt)}return St},qh:function(a,y,x,E,b,z,tt){return Jt.$(a,x)?(yy?(tt.h(a,y),!1):(tt.h(a,z),!0)):Jt.$(y,E)?(aa?(tt.h(a,y),!1):(tt.h(b,y),!0)):(b=((a-b)*(a-x)+(y-z)*(y-E))/((x-a)*(x-a)+(E-y)*(E-y)),-5e-6>b?(tt.h(a,y),!1):1.000005y?(rt.h(a,y),!1):(rt.h(a,x),!0)):(tt=(E-y)/(x-a),Jt.$(ot,tt)?(Jt.qh(a,y,x,E,b,z,rt),!1):(b=(tt*a-ot*b+z-y)/(tt-ot),Jt.$(tt,0)?(aa?(rt.h(a,y),!1):(rt.h(b,y),!0)):Jt.qh(a,y,x,E,b,tt*(b-a)+y,rt))))},MA:function(a,y,x,E,b){return Jt.Ve(x.x,x.y,E.x,E.y,a.x,a.y,y.x,y.y,b)},KA:function(a,y,x,E,b,z,tt,ot,rt,at){function ut(Ot,Tt){var Gt=(Ot-a)*(Ot-a)+(Tt-y)*(Tt-y);Gt(x>a?x-a:a-x)){if(mt=1-(x-b)*(x-b)/(mt*mt),0>mt)return rt;mt=Math.sqrt(mt),E=-at*mt+z,ut(x,at*mt+z),ut(x,E)}else{if(x=(E-y)/(x-a),E=1/(mt*mt)+x*x/(at*at),ot=2*x*(y-x*a)/(at*at)-2*x*z/(at*at)-2*b/(mt*mt),mt=ot*ot-4*E*(2*x*a*z/(at*at)-2*y*z/(at*at)+z*z/(at*at)+b*b/(mt*mt)-1+(y-x*a)*(y-x*a)/(at*at)),0>mt)return rt;mt=Math.sqrt(mt),at=(-ot+mt)/(2*E),ut(at,x*at-x*a+y),mt=(-ot-mt)/(2*E),ut(mt,x*mt-x*a+y)}return rt},Ff:function(a,y,x,E,b,z,tt,ot,rt){var at=1e21,ut=a,gt=y;if(Jt.Ve(a,y,a,E,b,z,tt,ot,rt)){var mt=(rt.x-b)*(rt.x-b)+(rt.y-z)*(rt.y-z);mtat},us:function(a,y,x){return Jt.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,E,b,z,tt,ot){var rt=a+x,at=y+E;return b===tt?(z=y):z===ot?(b=a):!!(Yr(a,y,x,E,b,z)||Yr(a,y,x,E,tt,ot)||Jt.Rl(a,y,rt,y,b,z,tt,ot)||Jt.Rl(rt,y,rt,at,b,z,tt,ot)||Jt.Rl(rt,at,a,at,b,z,tt,ot)||Jt.Rl(a,at,a,y,b,z,tt,ot))},Rl:function(a,y,x,E,b,z,tt,ot){return a===x&&y===E&&b===tt&&z===ot?a===b&&y===z:0>=Jt.Fl(a,y,x,E,b,z)*Jt.Fl(a,y,x,E,tt,ot)&&0>=Jt.Fl(b,z,tt,ot,a,y)*Jt.Fl(b,z,tt,ot,x,E)},Fl:function(a,y,x,E,b,z){return x-=a,E-=y,a=b-a,y=z-y,z=a*E-y*x,z===0&&(z=a*x+y*E,0z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,E,b,z){var tt=Math.PI;z||(E*=tt/180,b*=tt/180);var ot=E>b?-1:1;z=[];var rt=tt/2,at=E;if(E=Math.min(2*tt,Math.abs(b-E)),1e-5>E)return rt=at+ot*Math.min(E,rt),ot=a+x*Math.cos(at),at=y+x*Math.sin(at),a+=x*Math.cos(rt),y+=x*Math.sin(rt),x=(ot+a)/2,rt=(at+y)/2,z.push([ot,at,x,rt,x,rt,a,y]),z;for(;1e-5x,z=0>E;if(aat&&(y=.5*(ot+rt),!(y===ot||y===rt));++at){var ut=a/(y+b),gt=tt/(y+z);if(ut=ut*ut+gt*gt-1,0ut)rt=y;else break}x=b*x/(y+b)-x,E=z*E/(y+z)-E,x=Math.sqrt(x*x+E*E)}else x=Math.abs(E-y);else E=a*a-y*y,z=a*x,za?"M"+this.startX.toString()+" "+this.startY.toString()+"L"+this.endX.toString()+" "+this.endY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a)+"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);case He.u:var y=new Me(this.startX,this.startY,0,0);return y.Kv(this.endX,this.endY,0,0),0>a?"M"+y.x.toString()+" "+y.y.toString()+"H"+y.right.toString()+"V"+y.bottom.toString()+"H"+y.left.toString()+"z":"M"+y.x.toFixed(a)+" "+y.y.toFixed(a)+"H"+y.right.toFixed(a)+"V"+y.bottom.toFixed(a)+"H"+y.left.toFixed(a)+"z";case He.F:if(y=new Me(this.startX,this.startY,0,0),y.Kv(this.endX,this.endY,0,0),0>a)return a=y.left.toString()+" "+(y.y+y.height/2).toString(),"M"+a+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+(y.right.toString()+" "+(y.y+y.height/2).toString())+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+a;var x=y.left.toFixed(a)+" "+(y.y+y.height/2).toFixed(a);return"M"+x+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+(y.right.toFixed(a)+" "+(y.y+y.height/2).toFixed(a))+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+x;case He.o:y="",x=this.figures.s;for(var E=x.length,b=0;b=_t-1?!0:at[Et+1].match(Kt)!==null}function E(){return Et++,at[Et]}function b(Xn){var _n=parseFloat(E()),bi=parseFloat(E());Ot===Ot.toLowerCase()&&(_n=Wt.x+_n,bi=Wt.y+bi),Xn.h(_n,bi)}function z(){return b(Wt),Wt}function tt(){return b(Gt),Gt}function ot(){var Xn=Tt.toLowerCase();return Xn!=="c"&&Xn!=="s"&&Xn!=="q"&&Xn!=="t"?Wt:new Rt(2*Wt.x-Gt.x,2*Wt.y-Gt.y)}y===void 0&&(y=!1);var rt=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(rt,"$1 $2"),a=a.replace(rt,"$1 $2"),a=a.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),a=a.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),a=a.replace(/([0-9])([+\-])/gm,"$1 $2"),a=a.replace(/[\s\r\t\n]+/gm," "),a=a.replace(/^\s+|\s+$/g,"");var at=a.split(" ");for(a=0;a=_t-1);)if(Tt=Ot,Ot=E(),Ot!=="")switch(Ot.toUpperCase()){case"X":St=!0,gt=ut=!1;break;case"M":for(wt=z(),a.mc===null||St===!0?(zg(a,wt.x,wt.y,ut,!gt,mt),St=!1):a.moveTo(wt.x,wt.y),rt.assign(Wt);!x();)wt=z(),a.lineTo(wt.x,wt.y);break;case"L":for(;!x();)wt=z(),a.lineTo(wt.x,wt.y);break;case"H":for(;!x();)Wt=new Rt((Ot===Ot.toLowerCase()?Wt.x:0)+parseFloat(E()),Wt.y),a.lineTo(Wt.x,Wt.y);break;case"V":for(;!x();)Wt=new Rt(Wt.x,(Ot===Ot.toLowerCase()?Wt.y:0)+parseFloat(E())),a.lineTo(Wt.x,Wt.y);break;case"C":for(;!x();){wt=new Rt,b(wt);var he=tt(),$e=z();Oh(a,wt.x,wt.y,he.x,he.y,$e.x,$e.y)}break;case"S":for(;!x();)wt=ot(),he=tt(),$e=z(),Oh(a,wt.x,wt.y,he.x,he.y,$e.x,$e.y);break;case"Q":for(;!x();)wt=tt(),he=z(),Gp(a,wt.x,wt.y,he.x,he.y);break;case"T":for(;!x();)Gt=wt=ot(),he=z(),Gp(a,wt.x,wt.y,he.x,he.y);break;case"B":for(;!x();){wt=parseFloat(E()),he=parseFloat(E()),$e=parseFloat(E());var Sn=parseFloat(E()),hn=parseFloat(E()),Ye=hn,Fe=!1;x()||(Ye=parseFloat(E()),x()||(Fe=parseFloat(E())!==0)),Ot===Ot.toLowerCase()&&($e+=Wt.x,Sn+=Wt.y),a.arcTo(wt,he,$e,Sn,hn,Ye,Fe)}break;case"A":for(;!x();)wt=Math.abs(parseFloat(E())),he=Math.abs(parseFloat(E())),$e=parseFloat(E()),hn=Sn=!1,Fe=Ye=0,Ye=E(),Ye.length===1?(Sn=!!parseFloat(Ye),hn=!!parseFloat(E()),Ye=parseFloat(E())):Ye.length===2?(Sn=!!parseFloat(Ye[0]),hn=!!parseFloat(Ye[1]),Ye=parseFloat(E())):(Sn=!!parseFloat(Ye[0]),hn=!!parseFloat(Ye[1]),Ye=parseFloat(Ye.slice(2))),Fe=parseFloat(E()),Ot===Ot.toLowerCase()&&(Ye=Wt.x+Ye,Fe=Wt.y+Fe),Wt.h(Ye,Fe),Px(a,wt,he,$e,Sn,hn,Ye,Fe);break;case"Z":wx(a),Wt.assign(rt);break;case"F":for(wt="",he=1;at[Et+he];)if(at[Et+he]==="0")mt=!0,he++;else if(at[Et+he].match(/[Uu]/)!==null)he++;else if(at[Et+he].match(Kt)===null)he++;else{wt=at[Et+he];break}wt.match(/[Mm]/)?ut=!0:0tt&&(tt+=360),wt.startAngle+=tt),0>a&&(wt.startAngle=180-wt.startAngle,wt.sweepAngle=-wt.sweepAngle),0>E&&(wt.startAngle=-wt.startAngle,wt.sweepAngle=-wt.sweepAngle),wt.radiusX*=Math.sqrt(a*a+x*x),wt.radiusY!==void 0&&(wt.radiusY*=Math.sqrt(y*y+E*E));break;case Us:if(tt=wt.endX,ot=wt.endY,wt.endX=tt*a+ot*x+b,wt.endY=tt*y+ot*E+z,wt.radiusX===0||wt.radiusY===0)break;y!==0&&(tt=180*Math.atan2(y,a)/Math.PI,0>tt&&(tt+=360),wt.xAxisRotation+=tt),0>a&&(wt.xAxisRotation=180-wt.xAxisRotation,wt.isClockwiseArc=!wt.isClockwiseArc),0>E&&(wt.xAxisRotation=-wt.xAxisRotation,wt.isClockwiseArc=!wt.isClockwiseArc),wt.radiusX*=Math.sqrt(a*a+x*x),wt.radiusY*=Math.sqrt(y*y+E*E);break;default:ie("Unknown Segment type: "+wt.type)}}}}return this._isInvalidBounds=!0,this},Ct.ca=function(a,y){y===void 0&&(y=0);var x=this.od,E=this.pd,b=this.Dc,z=this.Ec;switch(this.type){case He.j:return Jt.Yb(x,E,b,z,y,a.x,a.y);case He.u:var tt=Me.allocAt(Math.min(x,b)-y,Math.min(E,z)-y,Math.abs(b-x)+2*y,Math.abs(z-E)+2*y);return a=tt.ca(a),Me.free(tt),a;case He.F:tt=Math.min(x,b)-y;var ot=Math.min(E,z)-y;return x=(Math.abs(b-x)+2*y)/2,y=(Math.abs(z-E)+2*y)/2,0>=x||0>=y?!1:(tt=a.x-(tt+x),ot=a.y-(ot+y),1>=tt*tt/(x*x)+ot*ot/(y*y));case He.o:return Jo(this,a,y,!0,!1);default:return!1}};function Jo(a,y,x,E,b){var z=y.x;y=y.y;for(var tt=a.bounds.x-20,ot=0,rt,at,ut,gt,mt=a.figures.s,St=mt.length,wt=0;wt=a)return 0;if((b>tt?b-tt:tt-b)<(z>ot?z-ot:ot-z)){if(zot)return 0}else if(yz)return 0}else if(btt)return 0}else if(atb)return 0;return 0a?a=0:1=z)return E=z-tt,E=ut===0?0:E/ut,x=x[ot],ot=x[2*a],b=x[2*a+1],y.h(ot+(x[2*a+2]-ot)*E,b+(x[2*a+3]-b)*E),y;tt+=ut}}return y},Ct.wx=function(a){if(0>a?a=0:1=b)return b=y[tt],y=b[2*a],x=b[2*a+1],E=b[2*a+2],a=b[2*a+3],1>Math.abs(E-y)&&1>Math.abs(a-x)?0:1>Math.abs(E-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=E-y?0:180:180*Math.atan2(a-x,E-y)/Math.PI;z+=at}}return NaN},Ct.Qu=function(a,y){if(0>a?a=0:1=z)return E=z-tt,E=ut===0?0:E/ut,ut=x[ot],x=ut[2*a],ot=ut[2*a+1],b=ut[2*a+2],a=ut[2*a+3],y[0]=x+(b-x)*E,y[1]=ot+(a-ot)*E,y[2]=1>Math.abs(b-x)&&1>Math.abs(a-ot)?0:1>Math.abs(b-x)?0<=a-ot?90:270:1>Math.abs(a-ot)?0<=b-x?0:180:180*Math.atan2(a-ot,b-x)/Math.PI,y;tt+=ut}}return y},Ct.xx=function(a){if(this.type===He.j){var y=this.startX,x=this.startY,E=this.endX,b=this.endY;if(y!==E||x!==b){var z=a.x;if(a=a.y,y===E){if(x=E?E===x?0:1:Math.abs(a-x)/(E-tt)}if(x===b)return y=E?E===y?0:1:Math.abs(z-y)/(E-tt);tt=(E-y)*(E-y)+(b-x)*(b-x);var ot=Rt.alloc();return Jt.qh(y,x,E,b,z,a,ot),a=ot.x,z=ot.y,Rt.free(ot),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/tt)}}else if(this.type===He.u){tt=this.startX,ot=this.startY;var rt=this.endX;if(b=this.endY,tt!==rt||ot!==b){y=rt-tt,x=b-ot,z=2*y+2*x,E=a.x,a=a.y,E=Math.min(Math.max(E,tt),rt),a=Math.min(Math.max(a,ot),b),tt=Math.abs(E-tt),rt=Math.abs(E-rt),ot=Math.abs(a-ot),b=Math.abs(a-b);var at=Math.min(tt,rt,ot,b);if(at===ot)return E/z;if(at===rt)return(y+a)/z;if(at===b)return(2*y+x-E)/z;if(at===tt)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,E=Rt.alloc(),b=1/0,ot=tt=0,rt=y.length;for(var ut=at=0,gt=0;gta?0:1a?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a),x=this.segments.s,E=x.length,b=0;ba&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(E,0),this.Pg=Math.max(b,0),typeof tt=="boolean"?tt&&(this.isLargeArc=!0):typeof tt=="number"&&tt&&(this.isLargeArc=!0),ot&&(this.isClockwiseArc=!0)):(this.Ne=E,this.Vh=b,a===Bo&&(z=Math.max(z,0)),this.Wh=z,typeof tt=="number"?(a===Bo&&(tt=Math.max(tt,0)),this.Pg=tt):this.Pg=0),this.ae=null}Yn.prototype.copy=function(){var a=new Yn;return a.na=this.na,a.l=this.l&-2,a.Dc=this.Dc,a.Ec=this.Ec,a.Ne=this.Ne,a.Vh=this.Vh,a.Wh=this.Wh,a.Pg=this.Pg,a},Ct=Yn.prototype,Ct.Xa=function(a){if(!(a instanceof Yn)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case Hi:case Ei:return Jt.B(this.endX,a.endX)&&Jt.B(this.endY,a.endY);case Uo:return Jt.B(this.endX,a.endX)&&Jt.B(this.endY,a.endY)&&Jt.B(this.point1X,a.point1X)&&Jt.B(this.point1Y,a.point1Y)&&Jt.B(this.point2X,a.point2X)&&Jt.B(this.point2Y,a.point2Y);case Fr:return Jt.B(this.endX,a.endX)&&Jt.B(this.endY,a.endY)&&Jt.B(this.point1X,a.point1X)&&Jt.B(this.point1Y,a.point1Y);case Bo:return Jt.B(this.startAngle,a.startAngle)&&Jt.B(this.sweepAngle,a.sweepAngle)&&Jt.B(this.centerX,a.centerX)&&Jt.B(this.centerY,a.centerY)&&Jt.B(this.radiusX,a.radiusX)&&Jt.B(this.radiusY,a.radiusY);case Us:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Jt.B(this.xAxisRotation,a.xAxisRotation)&&Jt.B(this.endX,a.endX)&&Jt.B(this.endY,a.endY)&&Jt.B(this.radiusX,a.radiusX)&&Jt.B(this.radiusY,a.radiusY);default:return!1}},Ct.qb=function(a){a.classType===Yn&&(this.type=a)},Ct.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Hi:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Ei:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Uo:a=0>a?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.point2X.toFixed(a)+" "+this.point2Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Fr:a=0>a?"Q"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"Q"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Bo:a=0>a?"B"+this.startAngle.toString()+" "+this.sweepAngle.toString()+" "+this.centerX.toString()+" "+this.centerY.toString()+" "+this.radiusX.toString()+" "+this.radiusY.toString():"B"+this.startAngle.toFixed(a)+" "+this.sweepAngle.toFixed(a)+" "+this.centerX.toFixed(a)+" "+this.centerY.toFixed(a)+" "+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a);break;case Us:a=0>a?"A"+this.radiusX.toString()+" "+this.radiusY.toString()+" "+this.xAxisRotation.toString()+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toString()+" "+this.endY.toString():"A"+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a)+" "+this.xAxisRotation.toFixed(a)+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;default:a=this.type.toString()}return a+(this.isClosed?"z":"")},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return this._isFrozen=!1,this},Ct.close=function(){return this.isClosed=!0,this};function _i(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var x=a.radiusX,E=a.radiusY;if(E===void 0&&(E=x),x===0||E===0)return a.ae=[],a.ae;y=a.Ne;var b=a.Vh,z=Jt.jx(0,0,x=St?tt=Math.PI:1<=St&&(tt=0),!rt&&0tt&&(tt+=2*Math.PI),rt=y>z?1:y/z,St=y>z?z/y:1,y=Jt.jx(0,0,y>z?y:z,ut,ut+tt,!0),z=In.alloc(),z.reset(),z.translate(x,E),z.rotate(a.Ne,0,0),z.scale(rt,St),He.Ha(y,z),In.free(z),a.ae=y,a.ae}fe.Object.defineProperties(Yn.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},isClosed:{get:function(){return(this.l&8)!==0},set:function(a){this.isClosed!==a&&(this.l=a?this.l|8:this.l&-9,this._isInvalidBounds=!0)}},type:{get:function(){return this.na},set:function(a){this._isFrozen&&yn(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&yn(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&yn(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&yn(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&yn(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&yn(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&yn(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&yn(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&yn(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Kn(a,">= zero",Yn,"radiusX"),this._isFrozen&&yn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Kn(a,">= zero",Yn,"radiusY"),this._isFrozen&&yn(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&yn(this,a),a%=360,0>a&&(a+=360),this.Dc=a,this._isInvalidBounds=!0}},sweepAngle:{get:function(){return this.Ec},set:function(a){this._isFrozen&&yn(this,a),360a&&(a=-360),this.Ec=a,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&yn(this,a),this.l=a?this.l|4:this.l&-5,this._isInvalidBounds=!0}},isLargeArc:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&yn(this,a),this.l=a?this.l|16:this.l&-17,this._isInvalidBounds=!0}},xAxisRotation:{get:function(){return this.Ne},set:function(a){this._isFrozen&&yn(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),Yn.prototype.equalsApprox=Yn.prototype.Xa;var Hi=new je(Yn,"Move",0),Ei=new je(Yn,"Line",1),Uo=new je(Yn,"Bezier",2),Fr=new je(Yn,"QuadraticBezier",3),Bo=new je(Yn,"Arc",4),Us=new je(Yn,"SvgArc",4);Yn.className="PathSegment",Yn.Move=Hi,Yn.Line=Ei,Yn.Bezier=Uo,Yn.QuadraticBezier=Fr,Yn.Arc=Bo,Yn.SvgArc=Us;function So(){this.H=null,this.xu=new Rt(0,0).freeze(),this.mt=new Rt(0,0).freeze(),this.Bp=this.Rq=0,this.Cp=1,this.xq="",this.Wr=this.Tp=!1,this.Rp=this.Ep=0,this.xg=this.nq=this.tq=!1,this.Zp=null,this.Rr=0,this.xd=this.Nr=null}So.prototype.copy=function(){var a=new So;return this.clone(a)},So.prototype.clone=function(a){return a.H=this.H,a.xu.assign(this.viewPoint),a.mt.assign(this.documentPoint),a.Rq=this.Rq,a.Bp=this.Bp,a.Cp=this.Cp,a.xq=this.xq,a.Tp=this.Tp,a.Wr=this.Wr,a.Ep=this.Ep,a.Rp=this.Rp,a.tq=this.tq,a.nq=this.nq,a.xg=this.xg,a.Zp=this.Zp,a.Rr=this.Rr,a.Nr=this.Nr,a.xd=this.xd,a},So.prototype.toString=function(){var a="^";return this.modifiers!==0&&(a+="M:"+this.modifiers),this.button!==0&&(a+="B:"+this.button),this.key!==""&&(a+="K:"+this.key),this.clickCount!==0&&(a+="C:"+this.clickCount),this.delta!==0&&(a+="D:"+this.delta),this.handled&&(a+="h"),this.bubbles&&(a+="b"),this.documentPoint!==null&&(a+="@"+this.documentPoint.toString()),a},So.prototype.So=function(a,y){var x=this.diagram;return x===null||Nf(x,a,y),y},So.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(Nf(x,a,y),y.assign(x.Ps(y))),y},fe.Object.defineProperties(So.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},viewPoint:{get:function(){return this.xu},set:function(a){this.xu.assign(a)}},documentPoint:{get:function(){return this.mt},set:function(a){this.mt.assign(a)}},modifiers:{get:function(){return this.Rq},set:function(a){this.Rq=a}},button:{get:function(){return this.Bp},set:function(a){if(this.Bp=a,this.event===null)switch(a){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2}}},buttons:{get:function(){return this.Cp},set:function(a){this.Cp=a}},key:{get:function(){return this.xq},set:function(a){this.xq=a}},down:{get:function(){return this.Tp},set:function(a){this.Tp=a}},up:{get:function(){return this.Wr},set:function(a){this.Wr=a}},clickCount:{get:function(){return this.Ep},set:function(a){this.Ep=a}},delta:{get:function(){return this.Rp},set:function(a){this.Rp=a}},isMultiTouch:{get:function(){return this.tq},set:function(a){this.tq=a}},handled:{get:function(){return this.nq},set:function(a){this.nq=a}},bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},event:{get:function(){return this.Zp},set:function(a){this.Zp=a}},isTouchEvent:{get:function(){var a=this.event;return a===null?!1:a.pointerType==="touch"||a.pointerType==="pen"}},timestamp:{get:function(){return this.Rr},set:function(a){this.Rr=a}},targetDiagram:{get:function(){return this.Nr},set:function(a){this.Nr=a}},targetObject:{get:function(){return this.xd},set:function(a){this.xd=a}},control:{get:function(){return(this.modifiers&1)!==0},set:function(a){this.modifiers=a?this.modifiers|1:this.modifiers&-2}},shift:{get:function(){return(this.modifiers&4)!==0},set:function(a){this.modifiers=a?this.modifiers|4:this.modifiers&-5}},alt:{get:function(){return(this.modifiers&2)!==0},set:function(a){this.modifiers=a?this.modifiers|2:this.modifiers&-3}},meta:{get:function(){return(this.modifiers&8)!==0},set:function(a){this.modifiers=a?this.modifiers|8:this.modifiers&-9}},left:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&1)!==0:this.button===0},set:function(a){this.buttons=a?this.buttons|1:this.buttons&-2}},right:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&2)!==0:this.button===2},set:function(a){this.buttons=a?this.buttons|2:this.buttons&-3}},middle:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&4)!==0:this.button===1},set:function(a){this.buttons=a?this.buttons|4:this.buttons&-5}}}),So.prototype.getMultiTouchDocumentPoint=So.prototype.Bz,So.prototype.getMultiTouchViewPoint=So.prototype.So,So.className="InputEvent";function ri(){this.H=null,this.xa="",this.ar=this.Lr=null}ri.prototype.copy=function(){var a=new ri;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},ri.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},fe.Object.defineProperties(ri.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},subject:{get:function(){return this.Lr},set:function(a){this.Lr=a}},parameter:{get:function(){return this.ar},set:function(a){this.ar=a}}}),ri.className="DiagramEvent";function $i(){this.Fm=Eo,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}$i.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},$i.prototype.copy=function(){var a=new $i;a.Fm=this.Fm,a.Qq=this.Qq,a.rf=this.rf,a.cc=this.cc,a.H=this.H,a.Qn=this.Qn;var y=this.Sn;return a.Sn=ke(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=ke(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=ke(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=ke(y)&&typeof y.J=="function"?y.J():y,a},$i.prototype.qb=function(a){a.classType===$i&&(this.change=a)},$i.prototype.toString=function(){var a="";return a=this.change===ts?a+"* ":this.change===Eo?a+(this.model!==null?"!m":"!d"):a+((this.model!==null?"!m":"!d")+this.change),this.propertyName&&typeof this.propertyName=="string"&&(a+=" "+this.propertyName),this.modelChange&&this.modelChange!==this.propertyName&&(a+=" "+this.modelChange),a+=": ",this.change===ts?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=yo(this.object)),this.oldValue!==null&&(a+=" old: "+yo(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+yo(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},$i.prototype.I=function(a){return a?this.oldValue:this.newValue},$i.prototype.Dz=function(a){return a?this.oldParam:this.newParam},$i.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},$i.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},$i.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},$i.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},fe.Object.defineProperties($i.prototype,{model:{get:function(){return this.cc},set:function(a){this.cc=a}},diagram:{get:function(){return this.H},set:function(a){this.H=a}},change:{get:function(){return this.Fm},set:function(a){this.Fm=a}},modelChange:{get:function(){return this.Qq},set:function(a){this.Qq=a}},propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},isTransactionFinished:{get:function(){return this.Fm===ts&&(this.rf==="CommittedTransaction"||this.rf==="FinishedUndo"||this.rf==="FinishedRedo")}},object:{get:function(){return this.Qn},set:function(a){this.Qn=a}},oldValue:{get:function(){return this.Sn},set:function(a){this.Sn=a}},oldParam:{get:function(){return this.Rn},set:function(a){this.Rn=a}},newValue:{get:function(){return this.Mn},set:function(a){this.Mn=a}},newParam:{get:function(){return this.Ln},set:function(a){this.Ln=a}}}),$i.prototype.redo=$i.prototype.redo,$i.prototype.canRedo=$i.prototype.canRedo,$i.prototype.undo=$i.prototype.undo,$i.prototype.canUndo=$i.prototype.canUndo,$i.prototype.getParam=$i.prototype.Dz,$i.prototype.getValue=$i.prototype.I,$i.prototype.clear=$i.prototype.clear;var ts=new je($i,"Transaction",-1),Eo=new je($i,"Property",0),mn=new je($i,"Insert",1),gi=new je($i,"Remove",2);$i.className="ChangedEvent",$i.Transaction=ts,$i.Property=Eo,$i.Insert=mn,$i.Remove=gi;function Ar(){this.o=new Je().freeze(),this.xa="",this.j=!1}Ar.prototype.toString=function(a){var y="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(a!==void 0&&00&&st.prevInput=="\u200B"?hs(dt,cs)(dt):Nn++<10?ht.detectingSelectAll=setTimeout(Hn,500):(ht.selForContextMenu=null,ht.input.reset())};ht.detectingSelectAll=setTimeout(Hn,200)}}if(me&&Ee>=9&&Re(),kt){Wr(it);var Pn=function(){gn(window,"mouseup",Pn),setTimeout(Te,20)};ge(window,"mouseup",Pn)}else setTimeout(Te,50)},As.prototype.readOnlyChanged=function(it){it||this.reset(),this.textarea.disabled=it=="nocursor",this.textarea.readOnly=!!it},As.prototype.setUneditable=function(){},As.prototype.needsContentAttribute=!1;function hp(it,st){if(st=st?vn(st):{},st.value=it.value,!st.tabindex&&it.tabIndex&&(st.tabindex=it.tabIndex),!st.placeholder&&it.placeholder&&(st.placeholder=it.placeholder),st.autofocus==null){var dt=ye();st.autofocus=dt==it||it.getAttribute("autofocus")!=null&&dt==document.body}function ht(){it.value=zt.getValue()}var ft;if(it.form&&(ge(it.form,"submit",ht),!st.leaveSubmitMethodAlone)){var Pt=it.form;ft=Pt.submit;try{var Nt=Pt.submit=function(){ht(),Pt.submit=ft,Pt.submit(),Pt.submit=Nt}}catch(jt){}}st.finishInit=function(jt){jt.save=ht,jt.getTextArea=function(){return it},jt.toTextArea=function(){jt.toTextArea=isNaN,ht(),it.parentNode.removeChild(jt.getWrapperElement()),it.style.display="",it.form&&(gn(it.form,"submit",ht),!st.leaveSubmitMethodAlone&&typeof it.form.submit=="function"&&(it.form.submit=ft))}},it.style.display="none";var zt=Qo(function(jt){return it.parentNode.insertBefore(jt,it.nextSibling)},st);return zt}function rc(it){it.off=gn,it.on=ge,it.wheelEventPixels=oa,it.Doc=ra,it.splitLines=Ui,it.countColumn=Vt,it.findColumn=Cn,it.isWordChar=Ri,it.Pass=Qe,it.signal=pn,it.Line=pr,it.changeEnd=ya,it.scrollbarModel=Ya,it.Pos=ke,it.cmpPos=an,it.modes=ta,it.mimeModes=ss,it.resolveMode=Qn,it.getMode=we,it.modeExtensions=pe,it.extendMode=fe,it.copyState=Bn,it.startState=Wn,it.innerMode=zn,it.commands=Dh,it.keyMap=nl,it.keyName=np,it.isModifierKey=Jd,it.lookupKey=Ol,it.normalizeKeyMap=Af,it.StringStream=be,it.SharedTextMarker=Iu,it.TextMarker=de,it.LineWidget=sh,it.e_preventDefault=Ji,it.e_stopPropagation=wo,it.e_stop=Wr,it.addClass=Ne,it.contains=We,it.rmClass=Yt,it.keyNames=bu}ap(Qo),Th(Qo);var ah="iter insert remove copy getEditor constructor".split(" ");for(var Rc in ra.prototype)ra.prototype.hasOwnProperty(Rc)&&ne(ah,Rc)<0&&(Qo.prototype[Rc]=function(it){return function(){return it.apply(this.doc,arguments)}}(ra.prototype[Rc]));return wi(ra),Qo.inputStyles={textarea:As,contenteditable:xr},Qo.defineMode=function(it){!Qo.defaults.mode&&it!="null"&&(Qo.defaults.mode=it),ea.apply(this,arguments)},Qo.defineMIME=Tn,Qo.defineMode("null",function(){return{token:function(it){return it.skipToEnd()}}}),Qo.defineMIME("text/plain","null"),Qo.defineExtension=function(it,st){Qo.prototype[it]=st},Qo.defineDocExtension=function(it,st){ra.prototype[it]=st},Qo.fromTextArea=hp,rc(Qo),Qo.version="5.58.2",Qo})},25419:function(Ze,En,bt){(function(vt){vt(bt(89780),bt(15525),bt(98101))})(function(vt){"use strict";vt.defineMode("markdown",function(oe,ue){var Be=vt.getMode(oe,"text/html"),me=Be.name=="null";function Ee(Vt){if(vt.findModeByName){var It=vt.findModeByName(Vt);It&&(Vt=It.mime||It.mimes[0])}var ne=vt.getMode(oe,Vt);return ne.name=="null"?null:ne}ue.highlightFormatting===void 0&&(ue.highlightFormatting=!1),ue.maxBlockquoteDepth===void 0&&(ue.maxBlockquoteDepth=0),ue.taskLists===void 0&&(ue.taskLists=!1),ue.strikethrough===void 0&&(ue.strikethrough=!1),ue.emoji===void 0&&(ue.emoji=!1),ue.fencedCodeBlockHighlighting===void 0&&(ue.fencedCodeBlockHighlighting=!0),ue.fencedCodeBlockDefaultMode===void 0&&(ue.fencedCodeBlockDefaultMode="text/plain"),ue.xml===void 0&&(ue.xml=!0),ue.tokenTypeOverrides===void 0&&(ue.tokenTypeOverrides={});var qt={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var Ce in qt)qt.hasOwnProperty(Ce)&&ue.tokenTypeOverrides[Ce]&&(qt[Ce]=ue.tokenTypeOverrides[Ce]);var Se=/^([*\-_])(?:\s*\1){2,}\s*$/,ve=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,se=/^\[(x| )\](?=\s)/i,Ae=ue.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,_e=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Dt=/^[^#!\[\]*_\\<>` "'(~:]+/,et=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,nt=/^\s*\[[^\]]+?\]:.*$/,ct=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,lt=" ";function pt(Vt,It,ne){return It.f=It.inline=ne,ne(Vt,It)}function yt(Vt,It,ne){return It.f=It.block=ne,ne(Vt,It)}function Lt(Vt){return!Vt||!/\S/.test(Vt.string)}function kt(Vt){if(Vt.linkTitle=!1,Vt.linkHref=!1,Vt.linkText=!1,Vt.em=!1,Vt.strong=!1,Vt.strikethrough=!1,Vt.quote=0,Vt.indentedCode=!1,Vt.f==Yt){var It=me;if(!It){var ne=vt.innerMode(Be,Vt.htmlState);It=ne.mode.name=="xml"&&ne.state.tagStart===null&&!ne.state.context&&ne.state.tokenize.isInText}It&&(Vt.f=Pe,Vt.block=Ht,Vt.htmlState=null)}return Vt.trailingSpace=0,Vt.trailingSpaceNewLine=!1,Vt.prevLine=Vt.thisLine,Vt.thisLine={stream:null},null}function Ht(Vt,It){var ne=Vt.column()===It.indentation,De=Lt(It.prevLine.stream),Qe=It.indentedCode,le=It.prevLine.hr,Oe=It.list!==!1,on=(It.listStack[It.listStack.length-1]||0)+3;It.indentedCode=!1;var Cn=It.indentation;if(It.indentationDiff===null&&(It.indentationDiff=It.indentation,Oe)){for(It.list=null;Cn=4&&(Qe||It.prevLine.fencedCodeEnd||It.prevLine.header||De))return Vt.skipToEnd(),It.indentedCode=!0,qt.code;if(Vt.eatSpace())return null;if(ne&&It.indentation<=on&&(re=Vt.match(Ae))&&re[1].length<=6)return It.quote=0,It.header=re[1].length,It.thisLine.header=!0,ue.highlightFormatting&&(It.formatting="header"),It.f=It.inline,ee(It);if(It.indentation<=on&&Vt.eat(">"))return It.quote=ne?1:It.quote+1,ue.highlightFormatting&&(It.formatting="quote"),Vt.eatSpace(),ee(It);if(!xn&&!It.setext&&ne&&It.indentation<=on&&(re=Vt.match(ve))){var kn=re[1]?"ol":"ul";return It.indentation=Cn+Vt.current().length,It.list=!0,It.quote=0,It.listStack.push(It.indentation),It.em=!1,It.strong=!1,It.code=!1,It.strikethrough=!1,ue.taskLists&&Vt.match(se,!1)&&(It.taskList=!0),It.f=It.inline,ue.highlightFormatting&&(It.formatting=["list","list-"+kn]),ee(It)}else{if(ne&&It.indentation<=on&&(re=Vt.match(et,!0)))return It.quote=0,It.fencedEndRE=new RegExp(re[1]+"+ *$"),It.localMode=ue.fencedCodeBlockHighlighting&&Ee(re[2]||ue.fencedCodeBlockDefaultMode),It.localMode&&(It.localState=vt.startState(It.localMode)),It.f=It.block=$t,ue.highlightFormatting&&(It.formatting="code-block"),It.code=-1,ee(It);if(It.setext||(!ln||!Oe)&&!It.quote&&It.list===!1&&!It.code&&!xn&&!nt.test(Vt.string)&&(re=Vt.lookAhead(1))&&(re=re.match(_e)))return It.setext?(It.header=It.setext,It.setext=0,Vt.skipToEnd(),ue.highlightFormatting&&(It.formatting="header")):(It.header=re[0].charAt(0)=="="?1:2,It.setext=It.header),It.thisLine.header=!0,It.f=It.inline,ee(It);if(xn)return Vt.skipToEnd(),It.hr=!0,It.thisLine.hr=!0,qt.hr;if(Vt.peek()==="[")return pt(Vt,It,Ie)}return pt(Vt,It,It.inline)}function Yt(Vt,It){var ne=Be.token(Vt,It.htmlState);if(!me){var De=vt.innerMode(Be,It.htmlState);(De.mode.name=="xml"&&De.state.tagStart===null&&!De.state.context&&De.state.tokenize.isInText||It.md_inside&&Vt.current().indexOf(">")>-1)&&(It.f=Pe,It.block=Ht,It.htmlState=null)}return ne}function $t(Vt,It){var ne=It.listStack[It.listStack.length-1]||0,De=It.indentation=Vt.quote?It.push(qt.formatting+"-"+Vt.formatting[ne]+"-"+Vt.quote):It.push("error"))}if(Vt.taskOpen)return It.push("meta"),It.length?It.join(" "):null;if(Vt.taskClosed)return It.push("property"),It.length?It.join(" "):null;if(Vt.linkHref?It.push(qt.linkHref,"url"):(Vt.strong&&It.push(qt.strong),Vt.em&&It.push(qt.em),Vt.strikethrough&&It.push(qt.strikethrough),Vt.emoji&&It.push(qt.emoji),Vt.linkText&&It.push(qt.linkText),Vt.code&&It.push(qt.code),Vt.image&&It.push(qt.image),Vt.imageAltText&&It.push(qt.imageAltText,"link"),Vt.imageMarker&&It.push(qt.imageMarker)),Vt.header&&It.push(qt.header,qt.header+"-"+Vt.header),Vt.quote&&(It.push(qt.quote),!ue.maxBlockquoteDepth||ue.maxBlockquoteDepth>=Vt.quote?It.push(qt.quote+"-"+Vt.quote):It.push(qt.quote+"-"+ue.maxBlockquoteDepth)),Vt.list!==!1){var De=(Vt.listStack.length-1)%3;De?De===1?It.push(qt.list2):It.push(qt.list3):It.push(qt.list1)}return Vt.trailingSpaceNewLine?It.push("trailing-space-new-line"):Vt.trailingSpace&&It.push("trailing-space-"+(Vt.trailingSpace%2?"a":"b")),It.length?It.join(" "):null}function te(Vt,It){if(Vt.match(Dt,!0))return ee(It)}function Pe(Vt,It){var ne=It.text(Vt,It);if(typeof ne!="undefined")return ne;if(It.list)return It.list=null,ee(It);if(It.taskList){var De=Vt.match(se,!0)[1]===" ";return De?It.taskOpen=!0:It.taskClosed=!0,ue.highlightFormatting&&(It.formatting="task"),It.taskList=!1,ee(It)}if(It.taskOpen=!1,It.taskClosed=!1,It.header&&Vt.match(/^#+$/,!0))return ue.highlightFormatting&&(It.formatting="header"),ee(It);var Qe=Vt.next();if(It.linkTitle){It.linkTitle=!1;var le=Qe;Qe==="("&&(le=")"),le=(le+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Oe="^\\s*(?:[^"+le+"\\\\]+|\\\\\\\\|\\\\.)"+le;if(Vt.match(new RegExp(Oe),!0))return qt.linkHref}if(Qe==="`"){var on=It.formatting;ue.highlightFormatting&&(It.formatting="code"),Vt.eatWhile("`");var Cn=Vt.current().length;if(It.code==0&&(!It.quote||Cn==1))return It.code=Cn,ee(It);if(Cn==It.code){var ln=ee(It);return It.code=0,ln}else return It.formatting=on,ee(It)}else if(It.code)return ee(It);if(Qe==="\\"&&(Vt.next(),ue.highlightFormatting)){var xn=ee(It),re=qt.formatting+"-escape";return xn?xn+" "+re:re}if(Qe==="!"&&Vt.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return It.imageMarker=!0,It.image=!0,ue.highlightFormatting&&(It.formatting="image"),ee(It);if(Qe==="["&&It.imageMarker&&Vt.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return It.imageMarker=!1,It.imageAltText=!0,ue.highlightFormatting&&(It.formatting="image"),ee(It);if(Qe==="]"&&It.imageAltText){ue.highlightFormatting&&(It.formatting="image");var xn=ee(It);return It.imageAltText=!1,It.image=!1,It.inline=It.f=We,xn}if(Qe==="["&&!It.image)return It.linkText&&Vt.match(/^.*?\]/)||(It.linkText=!0,ue.highlightFormatting&&(It.formatting="link")),ee(It);if(Qe==="]"&&It.linkText){ue.highlightFormatting&&(It.formatting="link");var xn=ee(It);return It.linkText=!1,It.inline=It.f=Vt.match(/\(.*?\)| ?\[.*?\]/,!1)?We:Pe,xn}if(Qe==="<"&&Vt.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){It.f=It.inline=ae,ue.highlightFormatting&&(It.formatting="link");var xn=ee(It);return xn?xn+=" ":xn="",xn+qt.linkInline}if(Qe==="<"&&Vt.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){It.f=It.inline=ae,ue.highlightFormatting&&(It.formatting="link");var xn=ee(It);return xn?xn+=" ":xn="",xn+qt.linkEmail}if(ue.xml&&Qe==="<"&&Vt.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var kn=Vt.string.indexOf(">",Vt.pos);if(kn!=-1){var Zn=Vt.string.substring(Vt.start,kn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Zn)&&(It.md_inside=!0)}return Vt.backUp(1),It.htmlState=vt.startState(Be),yt(Vt,It,Yt)}if(ue.xml&&Qe==="<"&&Vt.match(/^\/\w*?>/))return It.md_inside=!1,"tag";if(Qe==="*"||Qe==="_"){for(var On=1,Un=Vt.pos==1?" ":Vt.string.charAt(Vt.pos-2);On<3&&Vt.eat(Qe);)On++;var hi=Vt.peek()||" ",Ri=!/\s/.test(hi)&&(!ct.test(hi)||/\s/.test(Un)||ct.test(Un)),nn=!/\s/.test(Un)&&(!ct.test(Un)||/\s/.test(hi)||ct.test(hi)),un=null,wn=null;if(On%2&&(!It.em&&Ri&&(Qe==="*"||!nn||ct.test(Un))?un=!0:It.em==Qe&&nn&&(Qe==="*"||!Ri||ct.test(hi))&&(un=!1)),On>1&&(!It.strong&&Ri&&(Qe==="*"||!nn||ct.test(Un))?wn=!0:It.strong==Qe&&nn&&(Qe==="*"||!Ri||ct.test(hi))&&(wn=!1)),wn!=null||un!=null){ue.highlightFormatting&&(It.formatting=un==null?"strong":wn==null?"em":"strong em"),un===!0&&(It.em=Qe),wn===!0&&(It.strong=Qe);var ln=ee(It);return un===!1&&(It.em=!1),wn===!1&&(It.strong=!1),ln}}else if(Qe===" "&&(Vt.eat("*")||Vt.eat("_"))){if(Vt.peek()===" ")return ee(It);Vt.backUp(1)}if(ue.strikethrough){if(Qe==="~"&&Vt.eatWhile(Qe)){if(It.strikethrough){ue.highlightFormatting&&(It.formatting="strikethrough");var ln=ee(It);return It.strikethrough=!1,ln}else if(Vt.match(/^[^\s]/,!1))return It.strikethrough=!0,ue.highlightFormatting&&(It.formatting="strikethrough"),ee(It)}else if(Qe===" "&&Vt.match(/^~~/,!0)){if(Vt.peek()===" ")return ee(It);Vt.backUp(2)}}if(ue.emoji&&Qe===":"&&Vt.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){It.emoji=!0,ue.highlightFormatting&&(It.formatting="emoji");var ze=ee(It);return It.emoji=!1,ze}return Qe===" "&&(Vt.match(/^ +$/,!1)?It.trailingSpace++:It.trailingSpace&&(It.trailingSpaceNewLine=!0)),ee(It)}function ae(Vt,It){var ne=Vt.next();if(ne===">"){It.f=It.inline=Pe,ue.highlightFormatting&&(It.formatting="link");var De=ee(It);return De?De+=" ":De="",De+qt.linkInline}return Vt.match(/^[^>]+/,!0),qt.linkInline}function We(Vt,It){if(Vt.eatSpace())return null;var ne=Vt.next();return ne==="("||ne==="["?(It.f=It.inline=Ne(ne==="("?")":"]"),ue.highlightFormatting&&(It.formatting="link-string"),It.linkHref=!0,ee(It)):"error"}var ye={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Ne(Vt){return function(It,ne){var De=It.next();if(De===Vt){ne.f=ne.inline=Pe,ue.highlightFormatting&&(ne.formatting="link-string");var Qe=ee(ne);return ne.linkHref=!1,Qe}return It.match(ye[Vt]),ne.linkHref=!0,ee(ne)}}function Ie(Vt,It){return Vt.match(/^([^\]\\]|\\.)*\]:/,!1)?(It.f=rn,Vt.next(),ue.highlightFormatting&&(It.formatting="link"),It.linkText=!0,ee(It)):pt(Vt,It,Pe)}function rn(Vt,It){if(Vt.match(/^\]:/,!0)){It.f=It.inline=Dn,ue.highlightFormatting&&(It.formatting="link");var ne=ee(It);return It.linkText=!1,ne}return Vt.match(/^([^\]\\]|\\.)+/,!0),qt.linkText}function Dn(Vt,It){return Vt.eatSpace()?null:(Vt.match(/^[^\s]+/,!0),Vt.peek()===void 0?It.linkTitle=!0:Vt.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),It.f=It.inline=Pe,qt.linkHref+" url")}var vn={startState:function(){return{f:Ht,prevLine:{stream:null},thisLine:{stream:null},block:Ht,htmlState:null,indentation:0,inline:Pe,text:te,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(Vt){return{f:Vt.f,prevLine:Vt.prevLine,thisLine:Vt.thisLine,block:Vt.block,htmlState:Vt.htmlState&&vt.copyState(Be,Vt.htmlState),indentation:Vt.indentation,localMode:Vt.localMode,localState:Vt.localMode?vt.copyState(Vt.localMode,Vt.localState):null,inline:Vt.inline,text:Vt.text,formatting:!1,linkText:Vt.linkText,linkTitle:Vt.linkTitle,linkHref:Vt.linkHref,code:Vt.code,em:Vt.em,strong:Vt.strong,strikethrough:Vt.strikethrough,emoji:Vt.emoji,header:Vt.header,setext:Vt.setext,hr:Vt.hr,taskList:Vt.taskList,list:Vt.list,listStack:Vt.listStack.slice(0),quote:Vt.quote,indentedCode:Vt.indentedCode,trailingSpace:Vt.trailingSpace,trailingSpaceNewLine:Vt.trailingSpaceNewLine,md_inside:Vt.md_inside,fencedEndRE:Vt.fencedEndRE}},token:function(Vt,It){if(It.formatting=!1,Vt!=It.thisLine.stream){if(It.header=0,It.hr=!1,Vt.match(/^\s*$/,!0))return kt(It),null;if(It.prevLine=It.thisLine,It.thisLine={stream:Vt},It.taskList=!1,It.trailingSpace=0,It.trailingSpaceNewLine=!1,!It.localState&&(It.f=It.block,It.f!=Yt)){var ne=Vt.match(/^\s*/,!0)[0].replace(/\t/g,lt).length;if(It.indentation=ne,It.indentationDiff=null,ne>0)return null}}return It.f(Vt,It)},innerMode:function(Vt){return Vt.block==Yt?{state:Vt.htmlState,mode:Be}:Vt.localState?{state:Vt.localState,mode:Vt.localMode}:{state:Vt,mode:vn}},indent:function(Vt,It,ne){return Vt.block==Yt&&Be.indent?Be.indent(Vt.htmlState,It,ne):Vt.localState&&Vt.localMode.indent?Vt.localMode.indent(Vt.localState,It,ne):vt.Pass},blankLine:kt,getType:ee,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return vn},"xml"),vt.defineMIME("text/markdown","markdown"),vt.defineMIME("text/x-markdown","markdown")})},98101:function(Ze,En,bt){(function(vt){vt(bt(89780))})(function(vt){"use strict";vt.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var oe=0;oe-1&&Be.substring(qt+1,Be.length);if(Ce)return vt.findModeByExtension(Ce)},vt.findModeByName=function(Be){Be=Be.toLowerCase();for(var me=0;me0?Dt.cmdState[Dt.cmdState.length-1]:null}function Ee(Dt){var et=Dt.cmdState.pop();et&&et.closeBracket()}function qt(Dt){for(var et=Dt.cmdState,nt=et.length-1;nt>=0;nt--){var ct=et[nt];if(ct.name!="DEFAULT")return ct}return{styleIdentifier:function(){return null}}}function Ce(Dt,et,nt){return function(){this.name=Dt,this.bracketNo=0,this.style=et,this.styles=nt,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Se={};Se.importmodule=Ce("importmodule","tag",["string","builtin"]),Se.documentclass=Ce("documentclass","tag",["","atom"]),Se.usepackage=Ce("usepackage","tag",["atom"]),Se.begin=Ce("begin","tag",["atom"]),Se.end=Ce("end","tag",["atom"]),Se.label=Ce("label","tag",["atom"]),Se.ref=Ce("ref","tag",["atom"]),Se.eqref=Ce("eqref","tag",["atom"]),Se.cite=Ce("cite","tag",["atom"]),Se.bibitem=Ce("bibitem","tag",["atom"]),Se.Bibitem=Ce("Bibitem","tag",["atom"]),Se.RBibitem=Ce("RBibitem","tag",["atom"]),Se.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function ve(Dt,et){Dt.f=et}function se(Dt,et){var nt;if(Dt.match(/^\\[a-zA-Z@]+/)){var ct=Dt.current().slice(1);return nt=Se.hasOwnProperty(ct)?Se[ct]:Se.DEFAULT,nt=new nt,Be(et,nt),ve(et,_e),nt.style}if(Dt.match(/^\\[$&%#{}_]/)||Dt.match(/^\\[,;!\/\\]/))return"tag";if(Dt.match("\\["))return ve(et,function(pt,yt){return Ae(pt,yt,"\\]")}),"keyword";if(Dt.match("\\("))return ve(et,function(pt,yt){return Ae(pt,yt,"\\)")}),"keyword";if(Dt.match("$$"))return ve(et,function(pt,yt){return Ae(pt,yt,"$$")}),"keyword";if(Dt.match("$"))return ve(et,function(pt,yt){return Ae(pt,yt,"$")}),"keyword";var lt=Dt.next();if(lt=="%")return Dt.skipToEnd(),"comment";if(lt=="}"||lt=="]"){if(nt=me(et),nt)nt.closeBracket(lt),ve(et,_e);else return"error";return"bracket"}else return lt=="{"||lt=="["?(nt=Se.DEFAULT,nt=new nt,Be(et,nt),"bracket"):/\d/.test(lt)?(Dt.eatWhile(/[\w.%]/),"atom"):(Dt.eatWhile(/[\w\-_]/),nt=qt(et),nt.name=="begin"&&(nt.argument=Dt.current()),nt.styleIdentifier())}function Ae(Dt,et,nt){if(Dt.eatSpace())return null;if(nt&&Dt.match(nt))return ve(et,se),"keyword";if(Dt.match(/^\\[a-zA-Z@]+/))return"tag";if(Dt.match(/^[a-zA-Z]+/))return"variable-2";if(Dt.match(/^\\[$&%#{}_]/)||Dt.match(/^\\[,;!\/]/)||Dt.match(/^[\^_&]/))return"tag";if(Dt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Dt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ct=Dt.next();return ct=="{"||ct=="}"||ct=="["||ct=="]"||ct=="("||ct==")"?"bracket":ct=="%"?(Dt.skipToEnd(),"comment"):"error"}function _e(Dt,et){var nt=Dt.peek(),ct;return nt=="{"||nt=="["?(ct=me(et),ct.openBracket(nt),Dt.eat(nt),ve(et,se),"bracket"):/[ \t\r]/.test(nt)?(Dt.eat(nt),null):(ve(et,se),Ee(et),se(Dt,et))}return{startState:function(){var Dt=ue.inMathMode?function(et,nt){return Ae(et,nt)}:se;return{cmdState:[],f:Dt}},copyState:function(Dt){return{cmdState:Dt.cmdState.slice(),f:Dt.f}},token:function(Dt,et){return et.f(Dt,et)},blankLine:function(Dt){Dt.f=se,Dt.cmdState.length=0},lineComment:"%"}}),vt.defineMIME("text/x-stex","stex"),vt.defineMIME("text/x-latex","stex")})},15525:function(Ze,En,bt){(function(vt){vt(bt(89780))})(function(vt){"use strict";var oe={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},ue={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};vt.defineMode("xml",function(Be,me){var Ee=Be.indentUnit,qt={},Ce=me.htmlMode?oe:ue;for(var Se in Ce)qt[Se]=Ce[Se];for(var Se in me)qt[Se]=me[Se];var ve,se;function Ae(ae,We){function ye(rn){return We.tokenize=rn,rn(ae,We)}var Ne=ae.next();if(Ne=="<")return ae.eat("!")?ae.eat("[")?ae.match("CDATA[")?ye(et("atom","]]>")):null:ae.match("--")?ye(et("comment","-->")):ae.match("DOCTYPE",!0,!0)?(ae.eatWhile(/[\w\._\-]/),ye(nt(1))):null:ae.eat("?")?(ae.eatWhile(/[\w\._\-]/),We.tokenize=et("meta","?>"),"meta"):(ve=ae.eat("/")?"closeTag":"openTag",We.tokenize=_e,"tag bracket");if(Ne=="&"){var Ie;return ae.eat("#")?ae.eat("x")?Ie=ae.eatWhile(/[a-fA-F\d]/)&&ae.eat(";"):Ie=ae.eatWhile(/[\d]/)&&ae.eat(";"):Ie=ae.eatWhile(/[\w\.\-:]/)&&ae.eat(";"),Ie?"atom":"error"}else return ae.eatWhile(/[^&<]/),null}Ae.isInText=!0;function _e(ae,We){var ye=ae.next();if(ye==">"||ye=="/"&&ae.eat(">"))return We.tokenize=Ae,ve=ye==">"?"endTag":"selfcloseTag","tag bracket";if(ye=="=")return ve="equals",null;if(ye=="<"){We.tokenize=Ae,We.state=yt,We.tagName=We.tagStart=null;var Ne=We.tokenize(ae,We);return Ne?Ne+" tag error":"tag error"}else return/[\'\"]/.test(ye)?(We.tokenize=Dt(ye),We.stringStartCol=ae.column(),We.tokenize(ae,We)):(ae.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Dt(ae){var We=function(ye,Ne){for(;!ye.eol();)if(ye.next()==ae){Ne.tokenize=_e;break}return"string"};return We.isInAttribute=!0,We}function et(ae,We){return function(ye,Ne){for(;!ye.eol();){if(ye.match(We)){Ne.tokenize=Ae;break}ye.next()}return ae}}function nt(ae){return function(We,ye){for(var Ne;(Ne=We.next())!=null;){if(Ne=="<")return ye.tokenize=nt(ae+1),ye.tokenize(We,ye);if(Ne==">")if(ae==1){ye.tokenize=Ae;break}else return ye.tokenize=nt(ae-1),ye.tokenize(We,ye)}return"meta"}}function ct(ae,We,ye){this.prev=ae.context,this.tagName=We,this.indent=ae.indented,this.startOfLine=ye,(qt.doNotIndent.hasOwnProperty(We)||ae.context&&ae.context.noIndent)&&(this.noIndent=!0)}function lt(ae){ae.context&&(ae.context=ae.context.prev)}function pt(ae,We){for(var ye;;){if(!ae.context||(ye=ae.context.tagName,!qt.contextGrabbers.hasOwnProperty(ye)||!qt.contextGrabbers[ye].hasOwnProperty(We)))return;lt(ae)}}function yt(ae,We,ye){return ae=="openTag"?(ye.tagStart=We.column(),Lt):ae=="closeTag"?kt:yt}function Lt(ae,We,ye){return ae=="word"?(ye.tagName=We.current(),se="tag",$t):qt.allowMissingTagName&&ae=="endTag"?(se="tag bracket",$t(ae,We,ye)):(se="error",Lt)}function kt(ae,We,ye){if(ae=="word"){var Ne=We.current();return ye.context&&ye.context.tagName!=Ne&&qt.implicitlyClosed.hasOwnProperty(ye.context.tagName)&<(ye),ye.context&&ye.context.tagName==Ne||qt.matchClosing===!1?(se="tag",Ht):(se="tag error",Yt)}else return qt.allowMissingTagName&&ae=="endTag"?(se="tag bracket",Ht(ae,We,ye)):(se="error",Yt)}function Ht(ae,We,ye){return ae!="endTag"?(se="error",Ht):(lt(ye),yt)}function Yt(ae,We,ye){return se="error",Ht(ae,We,ye)}function $t(ae,We,ye){if(ae=="word")return se="attribute",ee;if(ae=="endTag"||ae=="selfcloseTag"){var Ne=ye.tagName,Ie=ye.tagStart;return ye.tagName=ye.tagStart=null,ae=="selfcloseTag"||qt.autoSelfClosers.hasOwnProperty(Ne)?pt(ye,Ne):(pt(ye,Ne),ye.context=new ct(ye,Ne,Ie==ye.indented)),yt}return se="error",$t}function ee(ae,We,ye){return ae=="equals"?te:(qt.allowMissing||(se="error"),$t(ae,We,ye))}function te(ae,We,ye){return ae=="string"?Pe:ae=="word"&&qt.allowUnquoted?(se="string",$t):(se="error",$t(ae,We,ye))}function Pe(ae,We,ye){return ae=="string"?Pe:$t(ae,We,ye)}return{startState:function(ae){var We={tokenize:Ae,state:yt,indented:ae||0,tagName:null,tagStart:null,context:null};return ae!=null&&(We.baseIndent=ae),We},token:function(ae,We){if(!We.tagName&&ae.sol()&&(We.indented=ae.indentation()),ae.eatSpace())return null;ve=null;var ye=We.tokenize(ae,We);return(ye||ve)&&ye!="comment"&&(se=null,We.state=We.state(ve||ye,ae,We),se&&(ye=se=="error"?ye+" error":se)),ye},indent:function(ae,We,ye){var Ne=ae.context;if(ae.tokenize.isInAttribute)return ae.tagStart==ae.indented?ae.stringStartCol+1:ae.indented+Ee;if(Ne&&Ne.noIndent)return vt.Pass;if(ae.tokenize!=_e&&ae.tokenize!=Ae)return ye?ye.match(/^(\s*)/)[0].length:0;if(ae.tagName)return qt.multilineTagIndentPastTag!==!1?ae.tagStart+ae.tagName.length+2:ae.tagStart+Ee*(qt.multilineTagIndentFactor||1);if(qt.alignCDATA&&/$/,blockCommentStart:"",configuration:qt.htmlMode?"html":"xml",helperType:qt.htmlMode?"html":"xml",skipAttribute:function(ae){ae.state==te&&(ae.state=$t)},xmlCurrentTag:function(ae){return ae.tagName?{name:ae.tagName,close:ae.type=="closeTag"}:null},xmlCurrentContext:function(ae){for(var We=[],ye=ae.context;ye;ye=ye.prev)ye.tagName&&We.push(ye.tagName);return We.reverse()}}}),vt.defineMIME("text/xml","xml"),vt.defineMIME("application/xml","xml"),vt.mimeModes.hasOwnProperty("text/html")||vt.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(Ze,En,bt){"use strict";bt.d(En,{$u:function(){return Se},BD:function(){return On},E9:function(){return Ce},FF:function(){return Fo},FJ:function(){return yt},Hn:function(){return pt},KX:function(){return kt},NB:function(){return Bt},S0:function(){return re},UL:function(){return ve},Vk:function(){return lt},Vm:function(){return xt},YI:function(){return kn},ZA:function(){return ue},Zt:function(){return se},al:function(){return un},bn:function(){return nn},bx:function(){return Un},g2:function(){return Zn},h1:function(){return te},hD:function(){return wi},l4:function(){return Ee},rU:function(){return Mt},s_:function(){return hi},uz:function(){return sn},z6:function(){return Ae}}),Ze=bt.hmd(Ze),function(){var Ct;function zs(a){var y=0;return function(){return yx&&(x=Math.max(0,b+x)),(E==null||E>b)&&(E=b),E=Number(E),0>E&&(E=Math.max(0,b+E)),x=Number(x||0);x=a.length?a.push(x):a.splice(y,0,x):ie("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function Po(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):ie("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function vi(){var a=io.pop();return a===void 0?[]:a}function Ci(a){a.length=0,io.push(a)}function ui(a){if(typeof a=="function"){if(a.className)return a.className;if(a.name)return a.name;var y=a.toString();if(y=y.substring(9,y.indexOf("(")).trim(),y!=="")return a._className=y}else if(ke(a)&&a.constructor)return ui(a.constructor);return typeof a}function yo(a){var y=a;return ke(a)&&(a.text?y=a.text:a.name?y=a.name:a.key!==void 0?y=a.key:a.id!==void 0?y=a.id:a.constructor===Object&&(a.Text?y=a.Text:a.Name?y=a.Name:a.Key!==void 0?y=a.Key:a.Id!==void 0?y=a.Id:a.ID!==void 0&&(y=a.ID))),y===void 0?"undefined":y===null?"null":y.toString()}function cr(a,y){if(a.hasOwnProperty(y))return!0;for(a=Object.getPrototypeOf(a);a&&a!==Function;){if(a.hasOwnProperty(y))return!0;var x=a.CA;if(x&&x[y])return!0;a=Object.getPrototypeOf(a)}return!1}function Vo(a,y,x){Object.defineProperty(mo.prototype,a,{get:y,set:x})}function Xe(a){for(var y=[],x=0;256>x;x++)y["0123456789abcdef".charAt(x>>4)+"0123456789abcdef".charAt(x&15)]=String.fromCharCode(x);a.length%2&&(a="0"+a),x=[];for(var E=0,b=0;bx;x++)y[x]=x;for(x=E=0;256>x;x++)E=(E+y[x]+119)%256,b=y[x],y[x]=y[E],y[E]=b;E=x=0;for(var z="",tt=0;tt-1||z.indexOf("\xA9 1998-2021 Northwoods Software")>-1||z.indexOf("Not for distribution or production use")>-1||z.indexOf("gojs.net")>-1?"":z}var _o=be.navigator!==void 0&&0this.key)return!1;a=a.s;var y=a.length,x=++this.Za,E=this.qf;if(E!==null)for(;xthis.key)return!1;var y=--this.Za;return 0<=y?(this.key=y,this.value=a.s[y],!0):(this.de(),!1)},jo.prototype.Ad=function(){return this.next()},jo.prototype.first=function(){var a=this.Bb;this.qa=a.Ja;var y=a.s;return this.Za=a=y.length-1,0<=a?(y=y[a],this.key=a,this.value=y):null},jo.prototype.any=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(a(y[x]))return!0;return!1},jo.prototype.all=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(!a(y[x]))return!1;return!0},jo.prototype.each=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)a(y[x]);return this},jo.prototype.map=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--)x.push(a(y[E]));return a=new Je,a.s=x,a.xb(),a.iterator},jo.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--){var b=y[E];a(b)&&x.push(b)}return a=new Je,a.s=x,a.xb(),a.iterator},jo.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},jo.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},fe.Object.defineProperties(jo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),jo.prototype.first=jo.prototype.first,jo.prototype.hasNext=jo.prototype.Ad,jo.prototype.next=jo.prototype.next,jo.prototype.reset=jo.prototype.reset,jo.className="ListIteratorBackwards";function Je(a){Lo(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&ie("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ct=Je.prototype,Ct.xb=function(){var a=this.Ja;a++,999999999a||a>=y.length)&&Kn(a,"0 <= i < length",Je,"elt:i"),y[a]},Ct.get=function(a){return this.M(a)},Ct.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Kn(a,"0 <= i < length",Je,"setElt:i"),this._isFrozen&&yn(this,a),x[a]=y},Ct.set=function(a,y){this.cd(a,y)},Ct.first=function(){var a=this.s;return a.length===0?null:a[0]},Ct.jc=function(){var a=this.s,y=a.length;return 0a&&Kn(a,">= 0",Je,"insertAt:i"),this._isFrozen&&yn(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Ct.remove=function(a){if(a===null)return!1;this._isFrozen&&yn(this,a);var y=this.s;return a=y.indexOf(a),a===-1?!1:(a===y.length-1?y.pop():y.splice(a,1),this.xb(),!0)},Ct.delete=function(a){return this.remove(a)},Ct.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Kn(a,"0 <= i < length",Je,"removeAt:i"),this._isFrozen&&yn(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Ct.removeRange=function(a,y){var x=this.s,E=x.length;if(0>a)a=0;else if(a>=E)return this;if(0>y)return this;if(y>=E&&(y=E-1),a>y)return this;this._isFrozen&&yn(this);for(var b=a,z=y+1;z=z)return this;if((0>y||y>=b-1)&&Kn(y,"0 <= from < length",Je,"sortRange:from"),z===2)return x=E[y],b=E[y+1],0=b)E.sort(a);else for(y=E.slice(0,x),y.sort(a),a=0;a=b)for(x=E.slice(y),x.sort(a),a=y;a=this.s.length)return To;var a=this.Sa;return a!==null?(a.reset(),a):new co(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return To;var a=this.Hg;return a!==null?(a.reset(),a):new jo(this)}}}),Je.prototype.reverse=Je.prototype.reverse,Je.prototype.sortRange=Je.prototype.zi,Je.prototype.sort=Je.prototype.sort,Je.prototype.toSet=Je.prototype.Iv,Je.prototype.toArray=Je.prototype.Fa,Je.prototype.removeRange=Je.prototype.removeRange,Je.prototype.removeAt=Je.prototype.mb,Je.prototype.delete=Je.prototype.delete,Je.prototype.remove=Je.prototype.remove,Je.prototype.insertAt=Je.prototype.Gb,Je.prototype.pop=Je.prototype.pop,Je.prototype.last=Je.prototype.jc,Je.prototype.first=Je.prototype.first,Je.prototype.set=Je.prototype.set,Je.prototype.setElt=Je.prototype.cd,Je.prototype.get=Je.prototype.get,Je.prototype.elt=Je.prototype.M,Je.prototype.indexOf=Je.prototype.indexOf,Je.prototype.has=Je.prototype.has,Je.prototype.contains=Je.prototype.contains,Je.prototype.clear=Je.prototype.clear,Je.prototype.addAll=Je.prototype.addAll,Je.prototype.push=Je.prototype.push,Je.prototype.add=Je.prototype.add,Je.prototype.thaw=Je.prototype.ka,Je.prototype.freeze=Je.prototype.freeze,Je.className="List";function po(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}po.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},po.prototype.next=function(){var a=this.eg;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},po.prototype.Ad=function(){return this.next()},po.prototype.first=function(){var a=this.eg;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},po.prototype.any=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},po.prototype.all=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},po.prototype.each=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},po.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new Je;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},po.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new Je;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},po.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},po.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},fe.Object.defineProperties(po.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),po.prototype.first=po.prototype.first,po.prototype.hasNext=po.prototype.Ad,po.prototype.next=po.prototype.next,po.prototype.reset=po.prototype.reset,po.className="SetIterator";function Ke(a){Lo(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&ie("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ct=Ke.prototype,Ct.xb=function(){var a=this.Ja;a++,999999999=this.Sb)return To;var a=this.Sa;return a!==null?(a.reset(),a):new po(this)}}}),Ke.prototype.toList=Ke.prototype.Hv,Ke.prototype.toArray=Ke.prototype.Fa,Ke.prototype.clear=Ke.prototype.clear,Ke.prototype.retainAll=Ke.prototype.pA,Ke.prototype.removeAll=Ke.prototype.hp,Ke.prototype.delete=Ke.prototype.delete,Ke.prototype.remove=Ke.prototype.remove,Ke.prototype.first=Ke.prototype.first,Ke.prototype.containsAny=Ke.prototype.Ty,Ke.prototype.containsAll=Ke.prototype.Sy,Ke.prototype.has=Ke.prototype.has,Ke.prototype.contains=Ke.prototype.contains,Ke.prototype.addAll=Ke.prototype.addAll,Ke.prototype.add=Ke.prototype.add,Ke.prototype.thaw=Ke.prototype.ka,Ke.prototype.freeze=Ke.prototype.freeze;var Fs=1;Ke.className="Set",Ke.uniqueHash=Lo,Ke.hashIdUnique=as,Ke.hashId=vr;function yr(a){this.ma=a,this.qa=a.Ja,this.sa=null}yr.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},yr.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=this.key=a=y.key,!0):(this.de(),!1)},yr.prototype.Ad=function(){return this.next()},yr.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.value=this.key=a=a.key):null},yr.prototype.any=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},yr.prototype.all=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},yr.prototype.each=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;)a(y.key),y=y.va;return this},yr.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new Je;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},yr.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new Je;for(y=y.ea;y!==null;){var E=y.key;a(E)&&x.add(E),y=y.va}return x.iterator},yr.prototype.de=function(){this.value=this.key=null,this.qa=-1},yr.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},fe.Object.defineProperties(yr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),yr.prototype.first=yr.prototype.first,yr.prototype.hasNext=yr.prototype.Ad,yr.prototype.next=yr.prototype.next,yr.prototype.reset=yr.prototype.reset,yr.className="MapKeySetIterator";function cn(a){Ke.call(this),Lo(this),this._isFrozen=!0,this.ma=a}pe(cn,Ke),Ct=cn.prototype,Ct.freeze=function(){return this},Ct.ka=function(){return this},Ct.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Ct.add=function(){ie("This Set is read-only: "+this.toString())},Ct.contains=function(a){return this.ma.contains(a)},Ct.has=function(a){return this.contains(a)},Ct.remove=function(){ie("This Set is read-only: "+this.toString())},Ct.delete=function(a){return this.remove(a)},Ct.clear=function(){ie("This Set is read-only: "+this.toString())},Ct.first=function(){var a=this.ma.ea;return a!==null?a.key:null},cn.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},cn.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},cn.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},cn.prototype.map=function(a){for(var y=new Ke,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},cn.prototype.filter=function(a){for(var y=new Ke,x=this.ma.ea;x!==null;){var E=x.key;a(E)&&y.add(E),x=x.va}return y},cn.prototype.copy=function(){return new cn(this.ma)},cn.prototype.Iv=function(){var a=new Ke,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},cn.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),x=0,E;for(E in a)y[x]=a[E].key,x++;return y},cn.prototype.Hv=function(){var a=new Je,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},fe.Object.defineProperties(cn.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?To:new yr(this.ma)}}}),cn.prototype.toList=cn.prototype.Hv,cn.prototype.toArray=cn.prototype.Fa,cn.prototype.toSet=cn.prototype.Iv,cn.prototype.first=cn.prototype.first,cn.prototype.clear=cn.prototype.clear,cn.prototype.delete=cn.prototype.delete,cn.prototype.remove=cn.prototype.remove,cn.prototype.has=cn.prototype.has,cn.prototype.contains=cn.prototype.contains,cn.prototype.add=cn.prototype.add,cn.prototype.thaw=cn.prototype.ka,cn.prototype.freeze=cn.prototype.freeze,cn.className="MapKeySet";function $o(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}$o.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},$o.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},$o.prototype.Ad=function(){return this.next()},$o.prototype.first=function(){var a=this.ma;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},$o.prototype.any=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},$o.prototype.all=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},$o.prototype.each=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},$o.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Je;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},$o.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Je;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},$o.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},$o.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},fe.Object.defineProperties($o.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),$o.prototype.first=$o.prototype.first,$o.prototype.hasNext=$o.prototype.Ad,$o.prototype.next=$o.prototype.next,$o.prototype.reset=$o.prototype.reset,$o.className="MapValueSetIterator";function Ra(a,y){this.key=a,this.value=y,this.ll=this.va=null}Ra.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Ra.className="KeyValuePair";function Ir(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Ir.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},Ir.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.key=y.key,this.value=y.value,!0):(this.de(),!1)},Ir.prototype.Ad=function(){return this.next()},Ir.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.key=a.key,this.value=a.value,a):null},Ir.prototype.any=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},Ir.prototype.all=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},Ir.prototype.each=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y),y=y.va;return this},Ir.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Je;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},Ir.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Je;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},Ir.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},Ir.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},fe.Object.defineProperties(Ir.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Ir.prototype.first=Ir.prototype.first,Ir.prototype.hasNext=Ir.prototype.Ad,Ir.prototype.next=Ir.prototype.next,Ir.prototype.reset=Ir.prototype.reset,Ir.className="MapIterator";function Vn(a){Lo(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.jf=this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&ie("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ct=Vn.prototype,Ct.xb=function(){var a=this.Ja;a++,999999999=this.count)return To;var a=this.Sa;return a!==null?(a.reset(),a):new Ir(this)}},iteratorKeys:{get:function(){return 0>=this.count?To:new yr(this)}},iteratorValues:{get:function(){if(0>=this.count)return To;var a=this.jf;return a!==null?(a.reset(),a):new $o(this)}}}),Vn.prototype.toKeySet=Vn.prototype.Lf,Vn.prototype.toArray=Vn.prototype.Fa,Vn.prototype.clear=Vn.prototype.clear,Vn.prototype.delete=Vn.prototype.delete,Vn.prototype.remove=Vn.prototype.remove,Vn.prototype.get=Vn.prototype.get,Vn.prototype.getValue=Vn.prototype.I,Vn.prototype.has=Vn.prototype.has,Vn.prototype.contains=Vn.prototype.contains,Vn.prototype.first=Vn.prototype.first,Vn.prototype.addAll=Vn.prototype.addAll,Vn.prototype.set=Vn.prototype.set,Vn.prototype.add=Vn.prototype.add,Vn.prototype.thaw=Vn.prototype.ka,Vn.prototype.freeze=Vn.prototype.freeze,Vn.className="Map";function Rt(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):ie("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var $r,ps,na,ca,kl;Rt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Rt.prototype.h=function(a,y){return this.x=a,this.y=y,this},Rt.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Rt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Rt.prototype.copy=function(){var a=new Rt;return a.x=this.x,a.y=this.y,a},Ct=Rt.prototype,Ct.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ct.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return Object.isFrozen(this)&&ie("cannot thaw constant: "+this),this._isFrozen=!1,this};function ga(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new Rt(x,b)}return new Rt}function Eu(a){return a.x.toString()+" "+a.y.toString()}Ct.toString=function(){return"Point("+this.x+","+this.y+")"},Ct.D=function(a){return a instanceof Rt?this.x===a.x&&this.y===a.y:!1},Ct.hi=function(a,y){return this.x===a&&this.y===y},Ct.Xa=function(a){return Jt.B(this.x,a.x)&&Jt.B(this.y,a.y)},Ct.add=function(a){return this.x+=a.x,this.y+=a.y,this},Ct.re=function(a){return this.x-=a.x,this.y-=a.y,this},Ct.offset=function(a,y){return this.x+=a,this.y+=y,this},Rt.prototype.rotate=function(a){if(a===0)return this;var y=this.x,x=this.y;if(y===0&&x===0)return this;if(360<=a?a-=360:0>a&&(a+=360),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));return this.x=a*y-E*x,this.y=E*y+a*x,this},Ct=Rt.prototype,Ct.scale=function(a,y){return this.x*=a,this.y*=y,this},Ct.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Ct.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Ct.normalize=function(){var a=this.x,y=this.y,x=Math.sqrt(a*a+y*y);return 0y?270:0;if(y===0)return 0a?x=0>y?x+180:180-x:0>y&&(x=360-x),x}Ct.Ry=function(a,y){return Jt.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Ct.fA=function(a,y,x,E){return Jt.qh(a,y,x,E,this.x,this.y,this),this},Ct.gA=function(a,y){return Jt.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Ct.uA=function(a,y,x,E){return Jt.No(this.x,this.y,a,y,x,E,this),this},Ct.vA=function(a,y){return Jt.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Ct.xi=function(a,y){return this.x=a.x+y.x*a.width+y.offsetX,this.y=a.y+y.y*a.height+y.offsetY,this},Ct.yi=function(a,y,x,E,b){return this.x=a+b.x*x+b.offsetX,this.y=y+b.y*E+b.offsetY,this},Ct.transform=function(a){return a.Ga(this),this};function tr(a,y){return y.Cd(a),a}function gr(a,y,x,E,b,z){var tt=b-x,ot=z-E,rt=tt*tt+ot*ot;x-=a,E-=y;var at=-x*tt-E*ot;return 0>=at||at>=rt?(tt=b-a,ot=z-y,Math.min(x*x+E*E,tt*tt+ot*ot)):(a=tt*E-ot*x,a*a/rt)}function Ea(a,y,x,E){return a=x-a,y=E-y,a*a+y*y}function Ti(a,y,x,E){return a=x-a,y=E-y,a===0?0y?270:0:y===0?0a?E=0>y?E+180:180-E:0>y&&(E=360-E),E)}Ct.w=function(){return isFinite(this.x)&&isFinite(this.y)},Rt.alloc=function(){var a=ci.pop();return a===void 0?new Rt:a},Rt.allocAt=function(a,y){var x=ci.pop();return x===void 0?new Rt(a,y):(x.x=a,x.y=y,x)},Rt.free=function(a){ci.push(a)},Rt.prototype.isReal=Rt.prototype.w,Rt.prototype.setSpot=Rt.prototype.yi,Rt.prototype.setRectSpot=Rt.prototype.xi,Rt.prototype.snapToGridPoint=Rt.prototype.vA,Rt.prototype.snapToGrid=Rt.prototype.uA,Rt.prototype.projectOntoLineSegmentPoint=Rt.prototype.gA,Rt.prototype.projectOntoLineSegment=Rt.prototype.fA,Rt.intersectingLineSegments=function(a,y,x,E,b,z,tt,ot){return Jt.Rl(a,y,x,E,b,z,tt,ot)},Rt.prototype.compareWithLineSegmentPoint=Rt.prototype.Ry,Rt.compareWithLineSegment=function(a,y,x,E,b,z){return Jt.Fl(a,y,x,E,b,z)},Rt.prototype.direction=Rt.prototype.direction,Rt.prototype.directionPoint=Rt.prototype.ab,Rt.prototype.normalize=Rt.prototype.normalize,Rt.prototype.distanceSquared=Rt.prototype.zd,Rt.prototype.distanceSquaredPoint=Rt.prototype.Bf,Rt.prototype.scale=Rt.prototype.scale,Rt.prototype.rotate=Rt.prototype.rotate,Rt.prototype.offset=Rt.prototype.offset,Rt.prototype.subtract=Rt.prototype.re,Rt.prototype.add=Rt.prototype.add,Rt.prototype.equalsApprox=Rt.prototype.Xa,Rt.prototype.equalTo=Rt.prototype.hi,Rt.prototype.equals=Rt.prototype.D,Rt.prototype.set=Rt.prototype.set,Rt.prototype.setTo=Rt.prototype.sg;var ci=[];Rt.className="Point",Rt.parse=ga,Rt.stringify=Eu,Rt.distanceLineSegmentSquared=gr,Rt.distanceSquared=Ea,Rt.direction=Ti,Rt.Origin=$r=new Rt(0,0).ja(),Rt.InfiniteTopLeft=ps=new Rt(-1/0,-1/0).ja(),Rt.InfiniteBottomRight=na=new Rt(1/0,1/0).ja(),Rt.SixPoint=ca=new Rt(6,6).ja(),Rt.NoPoint=kl=new Rt(NaN,NaN).ja(),Rt.parse=ga,Rt.stringify=Eu,Rt.distanceLineSegmentSquared=gr,Rt.distanceSquared=Ea,Rt.direction=Ti;function tn(a,y){a===void 0?this.height=this.width=0:typeof a=="number"&&(0<=a||isNaN(a))&&typeof y=="number"&&(0<=y||isNaN(y))?(this.width=a,this.height=y):ie("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var Pi,oo,ir,fr,pr,Rr,Sr;tn.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},tn.prototype.h=function(a,y){return this.width=a,this.height=y,this},tn.prototype.sg=function(a,y){return this.width=a,this.height=y,this},tn.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},tn.prototype.copy=function(){var a=new tn;return a.width=this.width,a.height=this.height,a},Ct=tn.prototype,Ct.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ct.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return Object.isFrozen(this)&&ie("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ga(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new tn(x,b)}return new tn}function fa(a){return a.width.toString()+" "+a.height.toString()}Ct.toString=function(){return"Size("+this.width+","+this.height+")"},Ct.D=function(a){return a instanceof tn?this.width===a.width&&this.height===a.height:!1},Ct.hi=function(a,y){return this.width===a&&this.height===y},Ct.Xa=function(a){return Jt.B(this.width,a.width)&&Jt.B(this.height,a.height)},Ct.Bc=function(a,y){return a=this.width+a,this.width=0<=a?a:0,y=this.height+y,this.height=0<=y?y:0,this},Ct.w=function(){return isFinite(this.width)&&isFinite(this.height)},tn.alloc=function(){var a=Ql.pop();return a===void 0?new tn:a},tn.free=function(a){Ql.push(a)},tn.prototype.isReal=tn.prototype.w,tn.prototype.inflate=tn.prototype.Bc,tn.prototype.equalsApprox=tn.prototype.Xa,tn.prototype.equalTo=tn.prototype.hi,tn.prototype.equals=tn.prototype.D,tn.prototype.set=tn.prototype.set,tn.prototype.setTo=tn.prototype.sg;var Ql=[];tn.className="Size",tn.parse=Ga,tn.stringify=fa,tn.ZeroSize=Pi=new tn(0,0).ja(),tn.OneSize=oo=new tn(1,1).ja(),tn.SixSize=ir=new tn(6,6).ja(),tn.EightSize=fr=new tn(8,8).ja(),tn.TenSize=pr=new tn(10,10).ja(),tn.InfiniteSize=Rr=new tn(1/0,1/0).ja(),tn.NoSize=Sr=new tn(NaN,NaN).ja(),tn.parse=Ga,tn.stringify=fa;function Me(a,y,x,E){a===void 0?this.height=this.width=this.y=this.x=0:typeof a=="number"&&typeof y=="number"&&typeof x=="number"&&(0<=x||isNaN(x))&&typeof E=="number"&&(0<=E||isNaN(E))?(this.x=a,this.y=y,this.width=x,this.height=E):a instanceof Rt?(x=a.x,a=a.y,y instanceof Rt?(E=y.x,y=y.y,this.x=Math.min(x,E),this.y=Math.min(a,y),this.width=Math.abs(x-E),this.height=Math.abs(a-y)):y instanceof tn?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):ie("Incorrect second argument supplied to Rect constructor "+y)):ie("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}Ct=Me.prototype,Ct.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Ct.h=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this};function Ts(a,y,x){a.width=y,a.height=x}Ct.sg=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this},Ct.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Ct.dd=function(a){return this.x=a.x,this.y=a.y,this},Ct.tA=function(a){return this.width=a.width,this.height=a.height,this},Me.prototype.copy=function(){var a=new Me;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Ct=Me.prototype,Ct.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ct.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return Object.isFrozen(this)&&ie("cannot thaw constant: "+this),this._isFrozen=!1,this};function Au(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;(E=a[y++])&&(b=parseFloat(E));for(var z=0;a[y]==="";)y++;(E=a[y++])&&(z=parseFloat(E));for(var tt=0;a[y]==="";)y++;return(E=a[y++])&&(tt=parseFloat(E)),new Me(x,b,z,tt)}return new Me}function qa(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Ct.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Ct.D=function(a){return a instanceof Me?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Ct.hi=function(a,y,x,E){return this.x===a&&this.y===y&&this.width===x&&this.height===E},Ct.Xa=function(a){return Jt.B(this.x,a.x)&&Jt.B(this.y,a.y)&&Jt.B(this.width,a.width)&&Jt.B(this.height,a.height)};function au(a,y){return Jt.$(a.x,y.x)&&Jt.$(a.y,y.y)&&Jt.$(a.width,y.width)&&Jt.$(a.height,y.height)}Ct.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Ct.Re=function(a){return this.x<=a.x&&a.x+a.width<=this.x+this.width&&this.y<=a.y&&a.y+a.height<=this.y+this.height},Ct.contains=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),this.x<=a&&a+x<=this.x+this.width&&this.y<=y&&y+E<=this.y+this.height},Ct.offset=function(a,y){return this.x+=a,this.y+=y,this},Ct.Bc=function(a,y){return Lr(this,y,a,y,a)},Ct.Co=function(a){return Lr(this,a.top,a.right,a.bottom,a.left)},Ct.Fv=function(a){return Lr(this,-a.top,-a.right,-a.bottom,-a.left)},Ct.Hz=function(a,y,x,E){return Lr(this,a,y,x,E)};function Lr(a,y,x,E,b){var z=a.width;return x+b<=-z?(a.x+=z/2,a.width=0):(a.x-=b,a.width+=x+b),x=a.height,y+E<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+E),a}Ct.Ex=function(a){return Dl(this,a.x,a.y,a.width,a.height)},Ct.Uu=function(a,y,x,E){return Dl(this,a,y,x,E)};function Dl(a,y,x,E,b){var z=Math.max(a.x,y),tt=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+E),x=Math.min(a.y+a.height,x+b),a.x=z,a.y=tt,a.width=Math.max(0,y-z),a.height=Math.max(0,x-tt),a}Ct.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Ct.Vu=function(a,y,x,E){var b=this.width,z=this.x;return b!==1/0&&x!==1/0&&(b+=z,x+=a,isNaN(x)||isNaN(b)||z>x||a>b)?!1:(a=this.height,x=this.y,!(a!==1/0&&E!==1/0&&(a+=x,E+=y,isNaN(E)||isNaN(a)||x>E||y>a)))};function gl(a,y){var x=a.width,E=a.x,b=y.x-10;return E>y.width+10+10+b||b>x+E?!1:(x=a.height,a=a.y,E=y.y-10,!(a>y.height+10+10+E||E>x+a))}Ct.Ye=function(a){return Ko(this,a.x,a.y,0,0)},Ct.ed=function(a){return Ko(this,a.x,a.y,a.width,a.height)},Ct.Kv=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),Ko(this,a,y,x,E)};function Ko(a,y,x,E,b){var z=Math.min(a.x,y),tt=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+E),x=Math.max(a.y+a.height,x+b),a.x=z,a.y=tt,a.width=y-z,a.height=x-tt,a}Ct.yi=function(a,y,x){return this.x=a-x.offsetX-x.x*this.width,this.y=y-x.offsetY-x.y*this.height,this};function Yr(a,y,x,E,b,z,tt,ot){return tt===void 0&&(tt=0),ot===void 0&&(ot=0),a<=b&&b+tt<=a+x&&y<=z&&z+ot<=y+E}function Nu(a,y,x,E,b,z,tt,ot){return a>tt+b||b>x+a?!1:!(y>ot+z||z>E+y)}Ct.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Ct.Mz=function(){return this.width===0&&this.height===0},Me.alloc=function(){var a=Aa.pop();return a===void 0?new Me:a},Me.allocAt=function(a,y,x,E){var b=Aa.pop();return b===void 0?new Me(a,y,x,E):b.h(a,y,x,E)},Me.free=function(a){Aa.push(a)},fe.Object.defineProperties(Me.prototype,{left:{get:function(){return this.x},set:function(a){this.x=a}},top:{get:function(){return this.y},set:function(a){this.y=a}},right:{get:function(){return this.x+this.width},set:function(a){this.x+=a-(this.x+this.width)}},bottom:{get:function(){return this.y+this.height},set:function(a){this.y+=a-(this.y+this.height)}},position:{get:function(){return new Rt(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new tn(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Rt(this.x+this.width/2,this.y+this.height/2)},set:function(a){this.x=a.x-this.width/2,this.y=a.y-this.height/2}},centerX:{get:function(){return this.x+this.width/2},set:function(a){this.x=a-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(a){this.y=a-this.height/2}}}),Me.prototype.isEmpty=Me.prototype.Mz,Me.prototype.isReal=Me.prototype.w,Me.intersectsLineSegment=function(a,y,x,E,b,z,tt,ot){return Jt.Fx(a,y,x,E,b,z,tt,ot)},Me.prototype.setSpot=Me.prototype.yi,Me.prototype.union=Me.prototype.Kv,Me.prototype.unionRect=Me.prototype.ed,Me.prototype.unionPoint=Me.prototype.Ye,Me.prototype.intersects=Me.prototype.Vu,Me.prototype.intersectsRect=Me.prototype.Yc,Me.prototype.intersect=Me.prototype.Uu,Me.prototype.intersectRect=Me.prototype.Ex,Me.prototype.grow=Me.prototype.Hz,Me.prototype.subtractMargin=Me.prototype.Fv,Me.prototype.addMargin=Me.prototype.Co,Me.prototype.inflate=Me.prototype.Bc,Me.prototype.offset=Me.prototype.offset,Me.prototype.contains=Me.prototype.contains,Me.prototype.containsRect=Me.prototype.Re,Me.prototype.containsPoint=Me.prototype.ca,Me.prototype.equalsApprox=Me.prototype.Xa,Me.prototype.equalTo=Me.prototype.hi,Me.prototype.equals=Me.prototype.D,Me.prototype.setSize=Me.prototype.tA,Me.prototype.setPoint=Me.prototype.dd,Me.prototype.set=Me.prototype.set,Me.prototype.setTo=Me.prototype.sg;var xs=null,ku=null,Aa=[];Me.className="Rect",Me.parse=Au,Me.stringify=qa,Me.contains=Yr,Me.intersects=Nu,Me.ZeroRect=xs=new Me(0,0,0,0).ja(),Me.NoRect=ku=new Me(NaN,NaN,NaN,NaN).ja(),Me.parse=Au,Me.stringify=qa,Me.contains=Yr,Me.intersects=Nu;function ii(a,y,x,E){a===void 0?this.left=this.bottom=this.right=this.top=0:y===void 0?this.left=this.bottom=this.right=this.top=a:x===void 0?(this.top=a,this.right=y,this.bottom=a,this.left=y):E!==void 0?(this.top=a,this.right=y,this.bottom=x,this.left=E):ie("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}ii.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},ii.prototype.sg=function(a,y,x,E){return this.top=a,this.right=y,this.bottom=x,this.left=E,this},ii.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},ii.prototype.copy=function(){var a=new ii;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Ct=ii.prototype,Ct.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ct.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return Object.isFrozen(this)&&ie("cannot thaw constant: "+this),this._isFrozen=!1,this};function xh(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=NaN;a[y]==="";)y++;var E=a[y++];if(E&&(x=parseFloat(E)),isNaN(x))return new ii;for(var b=NaN;a[y]==="";)y++;if((E=a[y++])&&(b=parseFloat(E)),isNaN(b))return new ii(x);for(var z=NaN;a[y]==="";)y++;if((E=a[y++])&&(z=parseFloat(E)),isNaN(z))return new ii(x,b);for(var tt=NaN;a[y]==="";)y++;return(E=a[y++])&&(tt=parseFloat(E)),isNaN(tt)?new ii(x,b):new ii(x,b,z,tt)}return new ii}function wh(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Ct.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Ct.D=function(a){return a instanceof ii?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Ct.hi=function(a,y,x,E){return this.top===a&&this.right===y&&this.bottom===x&&this.left===E},Ct.Xa=function(a){return Jt.B(this.top,a.top)&&Jt.B(this.right,a.right)&&Jt.B(this.bottom,a.bottom)&&Jt.B(this.left,a.left)},Ct.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},ii.alloc=function(){var a=nd.pop();return a===void 0?new ii:a},ii.free=function(a){nd.push(a)},ii.prototype.isReal=ii.prototype.w,ii.prototype.equalsApprox=ii.prototype.Xa,ii.prototype.equalTo=ii.prototype.hi,ii.prototype.equals=ii.prototype.D,ii.prototype.set=ii.prototype.set,ii.prototype.setTo=ii.prototype.sg;var Ha=null,ed=null,nd=[];ii.className="Margin",ii.parse=xh,ii.stringify=wh,ii.ZeroMargin=Ha=new ii(0,0,0,0).ja(),ii.TwoMargin=ed=new ii(2,2,2,2).ja(),ii.parse=xh,ii.stringify=wh;function jn(a,y,x,E){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),E===void 0&&(E=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=E),this._isFrozen=!1}var Er,Vr,pa,lu,Fl,zi,Ju,$a,ia,Rs,Tl,Ge,Gs,Ua,qe,Ni,Yi,to,No,Bi,Oo,Yo,ws,_r,Hs,Dr,Ph,Le,ce,Qt,ti,yi,Si,Oi,Li,ei;jn.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},jn.prototype.sg=function(a,y,x,E){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=E,this},jn.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},jn.prototype.copy=function(){var a=new jn;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Ct=jn.prototype,Ct.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ct.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return Object.isFrozen(this)&&ie("cannot thaw constant: "+this),this._isFrozen=!1,this};function Mn(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function Di(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return Er;if(a==="TopLeft")return Vr;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return pa;if(a==="TopRight")return lu;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Fl;if(a==="Center")return zi;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return Ju;if(a==="BottomLeft")return $a;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return ia;if(a==="BottomRight")return Rs;if(a==="TopSide")return Tl;if(a==="LeftSide")return Ge;if(a==="RightSide")return Gs;if(a==="BottomSide")return Ua;if(a==="TopBottomSides")return qe;if(a==="LeftRightSides")return Ni;if(a==="TopLeftSides")return Yi;if(a==="TopRightSides")return to;if(a==="BottomLeftSides")return No;if(a==="BottomRightSides")return Bi;if(a==="NotTopSide")return Oo;if(a==="NotLeftSide")return Yo;if(a==="NotRightSide")return ws;if(a==="NotBottomSide")return _r;if(a==="AllSides")return Hs;if(a==="Default")return Dr;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E!==void 0&&0a&&(a+=360),a===0)return this;if(this.translate(y,x),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.m12*a+this.m22*E,z=this.m11*-E+this.m21*a,tt=this.m12*-E+this.m22*a;return this.m11=this.m11*a+this.m21*E,this.m12=b,this.m21=z,this.m22=tt,this.translate(-y,-x),this},Ct=In.prototype,Ct.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Ct.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Ct.Ga=function(a){var y=a.x,x=a.y;return a.h(y*this.m11+x*this.m21+this.dx,y*this.m12+x*this.m22+this.dy)},Ct.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=a.x,E=a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Ct.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=1.25*a.x,E=1.2*a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Ct.pp=function(a){var y=a.x,x=a.y,E=y+a.width,b=x+a.height,z=this.m11,tt=this.m12,ot=this.m21,rt=this.m22,at=this.dx,ut=this.dy,gt=y*z+x*ot+at,mt=y*tt+x*rt+ut,St=E*z+x*ot+at,wt=E*tt+x*rt+ut;return x=y*z+b*ot+at,y=y*tt+b*rt+ut,z=E*z+b*ot+at,E=E*tt+b*rt+ut,b=Math.min(gt,St),gt=Math.max(gt,St),St=Math.min(mt,wt),mt=Math.max(mt,wt),b=Math.min(b,x),gt=Math.max(gt,x),St=Math.min(St,y),mt=Math.max(mt,y),b=Math.min(b,z),gt=Math.max(gt,z),St=Math.min(St,E),mt=Math.max(mt,E),a.h(b,St,gt-b,mt-St),a},In.alloc=function(){var a=ro.pop();return a===void 0?new In:a},In.free=function(a){ro.push(a)},In.prototype.transformRect=In.prototype.pp,In.prototype.transformPoint=In.prototype.Ga,In.prototype.scale=In.prototype.scale,In.prototype.translate=In.prototype.translate,In.prototype.rotate=In.prototype.rotate,In.prototype.invert=In.prototype.Vj,In.prototype.multiplyInverted=In.prototype.bv,In.prototype.multiply=In.prototype.multiply,In.prototype.reset=In.prototype.reset,In.prototype.isIdentity=In.prototype.ws,In.prototype.equals=In.prototype.D,In.prototype.setTransform=In.prototype.setTransform,In.prototype.set=In.prototype.set;var ro=[];In.className="Transform",In.xF="54a702f3e53909c447824c6706603faf4c";var Jt={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Jt.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);Jt.Uv=y}return 1>a?(x=1/a,2e3>=x?1/y[x|0]:Math.sqrt(a)):2e3>=a?y[a|0]:Math.sqrt(a)},B:function(a,y){return a-=y,.5>a&&-.5a&&-5e-8=b&&(b=1e-6),aut-at)if(a-x>b||x-a>b){if(z=(E-y)/(x-a)*(z-a)+y,z-b<=tt&&tt<=z+b)return!0}else return!0;else if(y-E>b||E-y>b){if(tt=(x-a)/(E-y)*(tt-y)+a,tt-b<=z&&z<=tt+b)return!0}else return!0;return!1},cs:function(a,y,x,E,b,z,tt,ot,rt,at,ut,gt){if(Jt.Yb(a,y,tt,ot,gt,x,E)&&Jt.Yb(a,y,tt,ot,gt,b,z))return Jt.Yb(a,y,tt,ot,gt,at,ut);var mt=(a+x)/2,St=(y+E)/2,wt=(x+b)/2,Et=(E+z)/2;b=(b+tt)/2,z=(z+ot)/2,E=(mt+wt)/2,x=(St+Et)/2,wt=(wt+b)/2,Et=(Et+z)/2;var Ot=(E+wt)/2,Tt=(x+Et)/2;return Jt.cs(a,y,mt,St,E,x,Ot,Tt,rt,at,ut,gt)||Jt.cs(Ot,Tt,wt,Et,b,z,tt,ot,rt,at,ut,gt)},ax:function(a,y,x,E,b,z,tt,ot,rt){var at=(x+b)/2,ut=(E+z)/2;return rt.h((((a+x)/2+at)/2+(at+(b+tt)/2)/2)/2,(((y+E)/2+ut)/2+(ut+(z+ot)/2)/2)/2),rt},My:function(a,y,x,E,b,z,tt,ot){var rt=(x+b)/2,at=(E+z)/2;return Ti(((a+x)/2+rt)/2,((y+E)/2+at)/2,(rt+(b+tt)/2)/2,(at+(z+ot)/2)/2)},Dl:function(a,y,x,E,b,z,tt,ot,rt,at){if(Jt.Yb(a,y,tt,ot,rt,x,E)&&Jt.Yb(a,y,tt,ot,rt,b,z))Ko(at,a,y,0,0),Ko(at,tt,ot,0,0);else{var ut=(a+x)/2,gt=(y+E)/2,mt=(x+b)/2,St=(E+z)/2;b=(b+tt)/2,z=(z+ot)/2,E=(ut+mt)/2,x=(gt+St)/2,mt=(mt+b)/2,St=(St+z)/2;var wt=(E+mt)/2,Et=(x+St)/2;Jt.Dl(a,y,ut,gt,E,x,wt,Et,rt,at),Jt.Dl(wt,Et,mt,St,b,z,tt,ot,rt,at)}return at},Qe:function(a,y,x,E,b,z,tt,ot,rt,at){if(Jt.Yb(a,y,tt,ot,rt,x,E)&&Jt.Yb(a,y,tt,ot,rt,b,z))at.length===0&&(at.push(a),at.push(y)),at.push(tt),at.push(ot);else{var ut=(a+x)/2,gt=(y+E)/2,mt=(x+b)/2,St=(E+z)/2;b=(b+tt)/2,z=(z+ot)/2,E=(ut+mt)/2,x=(gt+St)/2,mt=(mt+b)/2,St=(St+z)/2;var wt=(E+mt)/2,Et=(x+St)/2;Jt.Qe(a,y,ut,gt,E,x,wt,Et,rt,at),Jt.Qe(wt,Et,mt,St,b,z,tt,ot,rt,at)}return at},jv:function(a,y,x,E,b,z,tt,ot,rt,at){if(Jt.Yb(a,y,b,z,at,x,E))return Jt.Yb(a,y,b,z,at,ot,rt);var ut=(a+x)/2,gt=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var mt=(ut+x)/2,St=(gt+E)/2;return Jt.jv(a,y,ut,gt,mt,St,tt,ot,rt,at)||Jt.jv(mt,St,x,E,b,z,tt,ot,rt,at)},OA:function(a,y,x,E,b,z,tt){return tt.h(((a+x)/2+(x+b)/2)/2,((y+E)/2+(E+z)/2)/2),tt},iv:function(a,y,x,E,b,z,tt,ot){if(Jt.Yb(a,y,b,z,tt,x,E))Ko(ot,a,y,0,0),Ko(ot,b,z,0,0);else{var rt=(a+x)/2,at=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ut=(rt+x)/2,gt=(at+E)/2;Jt.iv(a,y,rt,at,ut,gt,tt,ot),Jt.iv(ut,gt,x,E,b,z,tt,ot)}return ot},ep:function(a,y,x,E,b,z,tt,ot){if(Jt.Yb(a,y,b,z,tt,x,E))ot.length===0&&(ot.push(a),ot.push(y)),ot.push(b),ot.push(z);else{var rt=(a+x)/2,at=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ut=(rt+x)/2,gt=(at+E)/2;Jt.ep(a,y,rt,at,ut,gt,tt,ot),Jt.ep(ut,gt,x,E,b,z,tt,ot)}return ot},Eo:function(a,y,x,E,b,z,tt,ot,rt,at,ut,gt,mt,St){if(Jt.Yb(a,y,tt,ot,mt,x,E)&&Jt.Yb(a,y,tt,ot,mt,b,z))return!Jt.Rl(a,y,tt,ot,rt,at,ut,gt)||(mt=(a-tt)*(at-gt)-(y-ot)*(rt-ut),mt===0)?!1:(St.h(((a*ot-y*tt)*(rt-ut)-(a-tt)*(rt*gt-at*ut))/mt,((a*ot-y*tt)*(at-gt)-(y-ot)*(rt*gt-at*ut))/mt),!0);var wt=(a+x)/2,Et=(y+E)/2,Ot=(x+b)/2,Tt=(E+z)/2;b=(b+tt)/2,z=(z+ot)/2,E=(wt+Ot)/2,x=(Et+Tt)/2,Ot=(Ot+b)/2,Tt=(Tt+z)/2;var Gt=(E+Ot)/2,Wt=(x+Tt)/2,_t=1/0,Kt=!1,he=0,$e=0;return Jt.Eo(a,y,wt,Et,E,x,Gt,Wt,rt,at,ut,gt,mt,St)&&(a=(St.x-rt)*(St.x-rt)+(St.y-at)*(St.y-at),a<_t&&(_t=a,Kt=!0,he=St.x,$e=St.y)),Jt.Eo(Gt,Wt,Ot,Tt,b,z,tt,ot,rt,at,ut,gt,mt,St)&&(St.x-rt)*(St.x-rt)+(St.y-at)*(St.y-at)<_t&&(Kt=!0,he=St.x,$e=St.y),Kt&&(St.x=he,St.y=$e),Kt},Fo:function(a,y,x,E,b,z,tt,ot,rt,at,ut,gt,mt){var St=0;if(Jt.Yb(a,y,tt,ot,mt,x,E)&&Jt.Yb(a,y,tt,ot,mt,b,z)){if(mt=(a-tt)*(at-gt)-(y-ot)*(rt-ut),mt===0)return St;var wt=((a*ot-y*tt)*(rt-ut)-(a-tt)*(rt*gt-at*ut))/mt,Et=((a*ot-y*tt)*(at-gt)-(y-ot)*(rt*gt-at*ut))/mt;if(wt>=ut)return St;if((rt>ut?rt-ut:ut-rt)<(at>gt?at-gt:gt-at)){if(ya)return St}else if(aa)return St;0mt&&St--}else{wt=(a+x)/2,Et=(y+E)/2;var Ot=(x+b)/2,Tt=(E+z)/2;b=(b+tt)/2,z=(z+ot)/2,E=(wt+Ot)/2,x=(Et+Tt)/2,Ot=(Ot+b)/2,Tt=(Tt+z)/2;var Gt=(E+Ot)/2,Wt=(x+Tt)/2;St+=Jt.Fo(a,y,wt,Et,E,x,Gt,Wt,rt,at,ut,gt,mt),St+=Jt.Fo(Gt,Wt,Ot,Tt,b,z,tt,ot,rt,at,ut,gt,mt)}return St},qh:function(a,y,x,E,b,z,tt){return Jt.$(a,x)?(yy?(tt.h(a,y),!1):(tt.h(a,z),!0)):Jt.$(y,E)?(aa?(tt.h(a,y),!1):(tt.h(b,y),!0)):(b=((a-b)*(a-x)+(y-z)*(y-E))/((x-a)*(x-a)+(E-y)*(E-y)),-5e-6>b?(tt.h(a,y),!1):1.000005y?(rt.h(a,y),!1):(rt.h(a,x),!0)):(tt=(E-y)/(x-a),Jt.$(ot,tt)?(Jt.qh(a,y,x,E,b,z,rt),!1):(b=(tt*a-ot*b+z-y)/(tt-ot),Jt.$(tt,0)?(aa?(rt.h(a,y),!1):(rt.h(b,y),!0)):Jt.qh(a,y,x,E,b,tt*(b-a)+y,rt))))},MA:function(a,y,x,E,b){return Jt.Ve(x.x,x.y,E.x,E.y,a.x,a.y,y.x,y.y,b)},KA:function(a,y,x,E,b,z,tt,ot,rt,at){function ut(Ot,Tt){var Gt=(Ot-a)*(Ot-a)+(Tt-y)*(Tt-y);Gt(x>a?x-a:a-x)){if(mt=1-(x-b)*(x-b)/(mt*mt),0>mt)return rt;mt=Math.sqrt(mt),E=-at*mt+z,ut(x,at*mt+z),ut(x,E)}else{if(x=(E-y)/(x-a),E=1/(mt*mt)+x*x/(at*at),ot=2*x*(y-x*a)/(at*at)-2*x*z/(at*at)-2*b/(mt*mt),mt=ot*ot-4*E*(2*x*a*z/(at*at)-2*y*z/(at*at)+z*z/(at*at)+b*b/(mt*mt)-1+(y-x*a)*(y-x*a)/(at*at)),0>mt)return rt;mt=Math.sqrt(mt),at=(-ot+mt)/(2*E),ut(at,x*at-x*a+y),mt=(-ot-mt)/(2*E),ut(mt,x*mt-x*a+y)}return rt},Ff:function(a,y,x,E,b,z,tt,ot,rt){var at=1e21,ut=a,gt=y;if(Jt.Ve(a,y,a,E,b,z,tt,ot,rt)){var mt=(rt.x-b)*(rt.x-b)+(rt.y-z)*(rt.y-z);mtat},us:function(a,y,x){return Jt.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,E,b,z,tt,ot){var rt=a+x,at=y+E;return b===tt?(z=y):z===ot?(b=a):!!(Yr(a,y,x,E,b,z)||Yr(a,y,x,E,tt,ot)||Jt.Rl(a,y,rt,y,b,z,tt,ot)||Jt.Rl(rt,y,rt,at,b,z,tt,ot)||Jt.Rl(rt,at,a,at,b,z,tt,ot)||Jt.Rl(a,at,a,y,b,z,tt,ot))},Rl:function(a,y,x,E,b,z,tt,ot){return a===x&&y===E&&b===tt&&z===ot?a===b&&y===z:0>=Jt.Fl(a,y,x,E,b,z)*Jt.Fl(a,y,x,E,tt,ot)&&0>=Jt.Fl(b,z,tt,ot,a,y)*Jt.Fl(b,z,tt,ot,x,E)},Fl:function(a,y,x,E,b,z){return x-=a,E-=y,a=b-a,y=z-y,z=a*E-y*x,z===0&&(z=a*x+y*E,0z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,E,b,z){var tt=Math.PI;z||(E*=tt/180,b*=tt/180);var ot=E>b?-1:1;z=[];var rt=tt/2,at=E;if(E=Math.min(2*tt,Math.abs(b-E)),1e-5>E)return rt=at+ot*Math.min(E,rt),ot=a+x*Math.cos(at),at=y+x*Math.sin(at),a+=x*Math.cos(rt),y+=x*Math.sin(rt),x=(ot+a)/2,rt=(at+y)/2,z.push([ot,at,x,rt,x,rt,a,y]),z;for(;1e-5x,z=0>E;if(aat&&(y=.5*(ot+rt),!(y===ot||y===rt));++at){var ut=a/(y+b),gt=tt/(y+z);if(ut=ut*ut+gt*gt-1,0ut)rt=y;else break}x=b*x/(y+b)-x,E=z*E/(y+z)-E,x=Math.sqrt(x*x+E*E)}else x=Math.abs(E-y);else E=a*a-y*y,z=a*x,za?"M"+this.startX.toString()+" "+this.startY.toString()+"L"+this.endX.toString()+" "+this.endY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a)+"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);case He.u:var y=new Me(this.startX,this.startY,0,0);return y.Kv(this.endX,this.endY,0,0),0>a?"M"+y.x.toString()+" "+y.y.toString()+"H"+y.right.toString()+"V"+y.bottom.toString()+"H"+y.left.toString()+"z":"M"+y.x.toFixed(a)+" "+y.y.toFixed(a)+"H"+y.right.toFixed(a)+"V"+y.bottom.toFixed(a)+"H"+y.left.toFixed(a)+"z";case He.F:if(y=new Me(this.startX,this.startY,0,0),y.Kv(this.endX,this.endY,0,0),0>a)return a=y.left.toString()+" "+(y.y+y.height/2).toString(),"M"+a+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+(y.right.toString()+" "+(y.y+y.height/2).toString())+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+a;var x=y.left.toFixed(a)+" "+(y.y+y.height/2).toFixed(a);return"M"+x+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+(y.right.toFixed(a)+" "+(y.y+y.height/2).toFixed(a))+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+x;case He.o:y="",x=this.figures.s;for(var E=x.length,b=0;b=_t-1?!0:at[Et+1].match(Kt)!==null}function E(){return Et++,at[Et]}function b(Xn){var _n=parseFloat(E()),bi=parseFloat(E());Ot===Ot.toLowerCase()&&(_n=Wt.x+_n,bi=Wt.y+bi),Xn.h(_n,bi)}function z(){return b(Wt),Wt}function tt(){return b(Gt),Gt}function ot(){var Xn=Tt.toLowerCase();return Xn!=="c"&&Xn!=="s"&&Xn!=="q"&&Xn!=="t"?Wt:new Rt(2*Wt.x-Gt.x,2*Wt.y-Gt.y)}y===void 0&&(y=!1);var rt=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(rt,"$1 $2"),a=a.replace(rt,"$1 $2"),a=a.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),a=a.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),a=a.replace(/([0-9])([+\-])/gm,"$1 $2"),a=a.replace(/[\s\r\t\n]+/gm," "),a=a.replace(/^\s+|\s+$/g,"");var at=a.split(" ");for(a=0;a=_t-1);)if(Tt=Ot,Ot=E(),Ot!=="")switch(Ot.toUpperCase()){case"X":St=!0,gt=ut=!1;break;case"M":for(wt=z(),a.mc===null||St===!0?(zg(a,wt.x,wt.y,ut,!gt,mt),St=!1):a.moveTo(wt.x,wt.y),rt.assign(Wt);!x();)wt=z(),a.lineTo(wt.x,wt.y);break;case"L":for(;!x();)wt=z(),a.lineTo(wt.x,wt.y);break;case"H":for(;!x();)Wt=new Rt((Ot===Ot.toLowerCase()?Wt.x:0)+parseFloat(E()),Wt.y),a.lineTo(Wt.x,Wt.y);break;case"V":for(;!x();)Wt=new Rt(Wt.x,(Ot===Ot.toLowerCase()?Wt.y:0)+parseFloat(E())),a.lineTo(Wt.x,Wt.y);break;case"C":for(;!x();){wt=new Rt,b(wt);var he=tt(),$e=z();Oh(a,wt.x,wt.y,he.x,he.y,$e.x,$e.y)}break;case"S":for(;!x();)wt=ot(),he=tt(),$e=z(),Oh(a,wt.x,wt.y,he.x,he.y,$e.x,$e.y);break;case"Q":for(;!x();)wt=tt(),he=z(),Gp(a,wt.x,wt.y,he.x,he.y);break;case"T":for(;!x();)Gt=wt=ot(),he=z(),Gp(a,wt.x,wt.y,he.x,he.y);break;case"B":for(;!x();){wt=parseFloat(E()),he=parseFloat(E()),$e=parseFloat(E());var Sn=parseFloat(E()),hn=parseFloat(E()),Ye=hn,Fe=!1;x()||(Ye=parseFloat(E()),x()||(Fe=parseFloat(E())!==0)),Ot===Ot.toLowerCase()&&($e+=Wt.x,Sn+=Wt.y),a.arcTo(wt,he,$e,Sn,hn,Ye,Fe)}break;case"A":for(;!x();)wt=Math.abs(parseFloat(E())),he=Math.abs(parseFloat(E())),$e=parseFloat(E()),hn=Sn=!1,Fe=Ye=0,Ye=E(),Ye.length===1?(Sn=!!parseFloat(Ye),hn=!!parseFloat(E()),Ye=parseFloat(E())):Ye.length===2?(Sn=!!parseFloat(Ye[0]),hn=!!parseFloat(Ye[1]),Ye=parseFloat(E())):(Sn=!!parseFloat(Ye[0]),hn=!!parseFloat(Ye[1]),Ye=parseFloat(Ye.slice(2))),Fe=parseFloat(E()),Ot===Ot.toLowerCase()&&(Ye=Wt.x+Ye,Fe=Wt.y+Fe),Wt.h(Ye,Fe),Px(a,wt,he,$e,Sn,hn,Ye,Fe);break;case"Z":wx(a),Wt.assign(rt);break;case"F":for(wt="",he=1;at[Et+he];)if(at[Et+he]==="0")mt=!0,he++;else if(at[Et+he].match(/[Uu]/)!==null)he++;else if(at[Et+he].match(Kt)===null)he++;else{wt=at[Et+he];break}wt.match(/[Mm]/)?ut=!0:0tt&&(tt+=360),wt.startAngle+=tt),0>a&&(wt.startAngle=180-wt.startAngle,wt.sweepAngle=-wt.sweepAngle),0>E&&(wt.startAngle=-wt.startAngle,wt.sweepAngle=-wt.sweepAngle),wt.radiusX*=Math.sqrt(a*a+x*x),wt.radiusY!==void 0&&(wt.radiusY*=Math.sqrt(y*y+E*E));break;case Us:if(tt=wt.endX,ot=wt.endY,wt.endX=tt*a+ot*x+b,wt.endY=tt*y+ot*E+z,wt.radiusX===0||wt.radiusY===0)break;y!==0&&(tt=180*Math.atan2(y,a)/Math.PI,0>tt&&(tt+=360),wt.xAxisRotation+=tt),0>a&&(wt.xAxisRotation=180-wt.xAxisRotation,wt.isClockwiseArc=!wt.isClockwiseArc),0>E&&(wt.xAxisRotation=-wt.xAxisRotation,wt.isClockwiseArc=!wt.isClockwiseArc),wt.radiusX*=Math.sqrt(a*a+x*x),wt.radiusY*=Math.sqrt(y*y+E*E);break;default:ie("Unknown Segment type: "+wt.type)}}}}return this._isInvalidBounds=!0,this},Ct.ca=function(a,y){y===void 0&&(y=0);var x=this.od,E=this.pd,b=this.Dc,z=this.Ec;switch(this.type){case He.j:return Jt.Yb(x,E,b,z,y,a.x,a.y);case He.u:var tt=Me.allocAt(Math.min(x,b)-y,Math.min(E,z)-y,Math.abs(b-x)+2*y,Math.abs(z-E)+2*y);return a=tt.ca(a),Me.free(tt),a;case He.F:tt=Math.min(x,b)-y;var ot=Math.min(E,z)-y;return x=(Math.abs(b-x)+2*y)/2,y=(Math.abs(z-E)+2*y)/2,0>=x||0>=y?!1:(tt=a.x-(tt+x),ot=a.y-(ot+y),1>=tt*tt/(x*x)+ot*ot/(y*y));case He.o:return Jo(this,a,y,!0,!1);default:return!1}};function Jo(a,y,x,E,b){var z=y.x;y=y.y;for(var tt=a.bounds.x-20,ot=0,rt,at,ut,gt,mt=a.figures.s,St=mt.length,wt=0;wt=a)return 0;if((b>tt?b-tt:tt-b)<(z>ot?z-ot:ot-z)){if(zot)return 0}else if(yz)return 0}else if(btt)return 0}else if(atb)return 0;return 0a?a=0:1=z)return E=z-tt,E=ut===0?0:E/ut,x=x[ot],ot=x[2*a],b=x[2*a+1],y.h(ot+(x[2*a+2]-ot)*E,b+(x[2*a+3]-b)*E),y;tt+=ut}}return y},Ct.wx=function(a){if(0>a?a=0:1=b)return b=y[tt],y=b[2*a],x=b[2*a+1],E=b[2*a+2],a=b[2*a+3],1>Math.abs(E-y)&&1>Math.abs(a-x)?0:1>Math.abs(E-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=E-y?0:180:180*Math.atan2(a-x,E-y)/Math.PI;z+=at}}return NaN},Ct.Qu=function(a,y){if(0>a?a=0:1=z)return E=z-tt,E=ut===0?0:E/ut,ut=x[ot],x=ut[2*a],ot=ut[2*a+1],b=ut[2*a+2],a=ut[2*a+3],y[0]=x+(b-x)*E,y[1]=ot+(a-ot)*E,y[2]=1>Math.abs(b-x)&&1>Math.abs(a-ot)?0:1>Math.abs(b-x)?0<=a-ot?90:270:1>Math.abs(a-ot)?0<=b-x?0:180:180*Math.atan2(a-ot,b-x)/Math.PI,y;tt+=ut}}return y},Ct.xx=function(a){if(this.type===He.j){var y=this.startX,x=this.startY,E=this.endX,b=this.endY;if(y!==E||x!==b){var z=a.x;if(a=a.y,y===E){if(x=E?E===x?0:1:Math.abs(a-x)/(E-tt)}if(x===b)return y=E?E===y?0:1:Math.abs(z-y)/(E-tt);tt=(E-y)*(E-y)+(b-x)*(b-x);var ot=Rt.alloc();return Jt.qh(y,x,E,b,z,a,ot),a=ot.x,z=ot.y,Rt.free(ot),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/tt)}}else if(this.type===He.u){tt=this.startX,ot=this.startY;var rt=this.endX;if(b=this.endY,tt!==rt||ot!==b){y=rt-tt,x=b-ot,z=2*y+2*x,E=a.x,a=a.y,E=Math.min(Math.max(E,tt),rt),a=Math.min(Math.max(a,ot),b),tt=Math.abs(E-tt),rt=Math.abs(E-rt),ot=Math.abs(a-ot),b=Math.abs(a-b);var at=Math.min(tt,rt,ot,b);if(at===ot)return E/z;if(at===rt)return(y+a)/z;if(at===b)return(2*y+x-E)/z;if(at===tt)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,E=Rt.alloc(),b=1/0,ot=tt=0,rt=y.length;for(var ut=at=0,gt=0;gta?0:1a?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a),x=this.segments.s,E=x.length,b=0;ba&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(E,0),this.Pg=Math.max(b,0),typeof tt=="boolean"?tt&&(this.isLargeArc=!0):typeof tt=="number"&&tt&&(this.isLargeArc=!0),ot&&(this.isClockwiseArc=!0)):(this.Ne=E,this.Vh=b,a===Bo&&(z=Math.max(z,0)),this.Wh=z,typeof tt=="number"?(a===Bo&&(tt=Math.max(tt,0)),this.Pg=tt):this.Pg=0),this.ae=null}Yn.prototype.copy=function(){var a=new Yn;return a.na=this.na,a.l=this.l&-2,a.Dc=this.Dc,a.Ec=this.Ec,a.Ne=this.Ne,a.Vh=this.Vh,a.Wh=this.Wh,a.Pg=this.Pg,a},Ct=Yn.prototype,Ct.Xa=function(a){if(!(a instanceof Yn)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case Hi:case Ei:return Jt.B(this.endX,a.endX)&&Jt.B(this.endY,a.endY);case Uo:return Jt.B(this.endX,a.endX)&&Jt.B(this.endY,a.endY)&&Jt.B(this.point1X,a.point1X)&&Jt.B(this.point1Y,a.point1Y)&&Jt.B(this.point2X,a.point2X)&&Jt.B(this.point2Y,a.point2Y);case Fr:return Jt.B(this.endX,a.endX)&&Jt.B(this.endY,a.endY)&&Jt.B(this.point1X,a.point1X)&&Jt.B(this.point1Y,a.point1Y);case Bo:return Jt.B(this.startAngle,a.startAngle)&&Jt.B(this.sweepAngle,a.sweepAngle)&&Jt.B(this.centerX,a.centerX)&&Jt.B(this.centerY,a.centerY)&&Jt.B(this.radiusX,a.radiusX)&&Jt.B(this.radiusY,a.radiusY);case Us:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Jt.B(this.xAxisRotation,a.xAxisRotation)&&Jt.B(this.endX,a.endX)&&Jt.B(this.endY,a.endY)&&Jt.B(this.radiusX,a.radiusX)&&Jt.B(this.radiusY,a.radiusY);default:return!1}},Ct.qb=function(a){a.classType===Yn&&(this.type=a)},Ct.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Hi:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Ei:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Uo:a=0>a?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.point2X.toFixed(a)+" "+this.point2Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Fr:a=0>a?"Q"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"Q"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Bo:a=0>a?"B"+this.startAngle.toString()+" "+this.sweepAngle.toString()+" "+this.centerX.toString()+" "+this.centerY.toString()+" "+this.radiusX.toString()+" "+this.radiusY.toString():"B"+this.startAngle.toFixed(a)+" "+this.sweepAngle.toFixed(a)+" "+this.centerX.toFixed(a)+" "+this.centerY.toFixed(a)+" "+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a);break;case Us:a=0>a?"A"+this.radiusX.toString()+" "+this.radiusY.toString()+" "+this.xAxisRotation.toString()+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toString()+" "+this.endY.toString():"A"+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a)+" "+this.xAxisRotation.toFixed(a)+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;default:a=this.type.toString()}return a+(this.isClosed?"z":"")},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return this._isFrozen=!1,this},Ct.close=function(){return this.isClosed=!0,this};function _i(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var x=a.radiusX,E=a.radiusY;if(E===void 0&&(E=x),x===0||E===0)return a.ae=[],a.ae;y=a.Ne;var b=a.Vh,z=Jt.jx(0,0,x=St?tt=Math.PI:1<=St&&(tt=0),!rt&&0tt&&(tt+=2*Math.PI),rt=y>z?1:y/z,St=y>z?z/y:1,y=Jt.jx(0,0,y>z?y:z,ut,ut+tt,!0),z=In.alloc(),z.reset(),z.translate(x,E),z.rotate(a.Ne,0,0),z.scale(rt,St),He.Ha(y,z),In.free(z),a.ae=y,a.ae}fe.Object.defineProperties(Yn.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},isClosed:{get:function(){return(this.l&8)!==0},set:function(a){this.isClosed!==a&&(this.l=a?this.l|8:this.l&-9,this._isInvalidBounds=!0)}},type:{get:function(){return this.na},set:function(a){this._isFrozen&&yn(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&yn(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&yn(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&yn(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&yn(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&yn(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&yn(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&yn(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&yn(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Kn(a,">= zero",Yn,"radiusX"),this._isFrozen&&yn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Kn(a,">= zero",Yn,"radiusY"),this._isFrozen&&yn(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&yn(this,a),a%=360,0>a&&(a+=360),this.Dc=a,this._isInvalidBounds=!0}},sweepAngle:{get:function(){return this.Ec},set:function(a){this._isFrozen&&yn(this,a),360a&&(a=-360),this.Ec=a,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&yn(this,a),this.l=a?this.l|4:this.l&-5,this._isInvalidBounds=!0}},isLargeArc:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&yn(this,a),this.l=a?this.l|16:this.l&-17,this._isInvalidBounds=!0}},xAxisRotation:{get:function(){return this.Ne},set:function(a){this._isFrozen&&yn(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),Yn.prototype.equalsApprox=Yn.prototype.Xa;var Hi=new je(Yn,"Move",0),Ei=new je(Yn,"Line",1),Uo=new je(Yn,"Bezier",2),Fr=new je(Yn,"QuadraticBezier",3),Bo=new je(Yn,"Arc",4),Us=new je(Yn,"SvgArc",4);Yn.className="PathSegment",Yn.Move=Hi,Yn.Line=Ei,Yn.Bezier=Uo,Yn.QuadraticBezier=Fr,Yn.Arc=Bo,Yn.SvgArc=Us;function So(){this.H=null,this.xu=new Rt(0,0).freeze(),this.mt=new Rt(0,0).freeze(),this.Bp=this.Rq=0,this.Cp=1,this.xq="",this.Wr=this.Tp=!1,this.Rp=this.Ep=0,this.xg=this.nq=this.tq=!1,this.Zp=null,this.Rr=0,this.xd=this.Nr=null}So.prototype.copy=function(){var a=new So;return this.clone(a)},So.prototype.clone=function(a){return a.H=this.H,a.xu.assign(this.viewPoint),a.mt.assign(this.documentPoint),a.Rq=this.Rq,a.Bp=this.Bp,a.Cp=this.Cp,a.xq=this.xq,a.Tp=this.Tp,a.Wr=this.Wr,a.Ep=this.Ep,a.Rp=this.Rp,a.tq=this.tq,a.nq=this.nq,a.xg=this.xg,a.Zp=this.Zp,a.Rr=this.Rr,a.Nr=this.Nr,a.xd=this.xd,a},So.prototype.toString=function(){var a="^";return this.modifiers!==0&&(a+="M:"+this.modifiers),this.button!==0&&(a+="B:"+this.button),this.key!==""&&(a+="K:"+this.key),this.clickCount!==0&&(a+="C:"+this.clickCount),this.delta!==0&&(a+="D:"+this.delta),this.handled&&(a+="h"),this.bubbles&&(a+="b"),this.documentPoint!==null&&(a+="@"+this.documentPoint.toString()),a},So.prototype.So=function(a,y){var x=this.diagram;return x===null||Nf(x,a,y),y},So.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(Nf(x,a,y),y.assign(x.Ps(y))),y},fe.Object.defineProperties(So.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},viewPoint:{get:function(){return this.xu},set:function(a){this.xu.assign(a)}},documentPoint:{get:function(){return this.mt},set:function(a){this.mt.assign(a)}},modifiers:{get:function(){return this.Rq},set:function(a){this.Rq=a}},button:{get:function(){return this.Bp},set:function(a){if(this.Bp=a,this.event===null)switch(a){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2}}},buttons:{get:function(){return this.Cp},set:function(a){this.Cp=a}},key:{get:function(){return this.xq},set:function(a){this.xq=a}},down:{get:function(){return this.Tp},set:function(a){this.Tp=a}},up:{get:function(){return this.Wr},set:function(a){this.Wr=a}},clickCount:{get:function(){return this.Ep},set:function(a){this.Ep=a}},delta:{get:function(){return this.Rp},set:function(a){this.Rp=a}},isMultiTouch:{get:function(){return this.tq},set:function(a){this.tq=a}},handled:{get:function(){return this.nq},set:function(a){this.nq=a}},bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},event:{get:function(){return this.Zp},set:function(a){this.Zp=a}},isTouchEvent:{get:function(){var a=this.event;return a===null?!1:a.pointerType==="touch"||a.pointerType==="pen"}},timestamp:{get:function(){return this.Rr},set:function(a){this.Rr=a}},targetDiagram:{get:function(){return this.Nr},set:function(a){this.Nr=a}},targetObject:{get:function(){return this.xd},set:function(a){this.xd=a}},control:{get:function(){return(this.modifiers&1)!==0},set:function(a){this.modifiers=a?this.modifiers|1:this.modifiers&-2}},shift:{get:function(){return(this.modifiers&4)!==0},set:function(a){this.modifiers=a?this.modifiers|4:this.modifiers&-5}},alt:{get:function(){return(this.modifiers&2)!==0},set:function(a){this.modifiers=a?this.modifiers|2:this.modifiers&-3}},meta:{get:function(){return(this.modifiers&8)!==0},set:function(a){this.modifiers=a?this.modifiers|8:this.modifiers&-9}},left:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&1)!==0:this.button===0},set:function(a){this.buttons=a?this.buttons|1:this.buttons&-2}},right:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&2)!==0:this.button===2},set:function(a){this.buttons=a?this.buttons|2:this.buttons&-3}},middle:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&4)!==0:this.button===1},set:function(a){this.buttons=a?this.buttons|4:this.buttons&-5}}}),So.prototype.getMultiTouchDocumentPoint=So.prototype.Bz,So.prototype.getMultiTouchViewPoint=So.prototype.So,So.className="InputEvent";function ri(){this.H=null,this.xa="",this.ar=this.Lr=null}ri.prototype.copy=function(){var a=new ri;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},ri.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},fe.Object.defineProperties(ri.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},subject:{get:function(){return this.Lr},set:function(a){this.Lr=a}},parameter:{get:function(){return this.ar},set:function(a){this.ar=a}}}),ri.className="DiagramEvent";function $i(){this.Fm=Eo,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}$i.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},$i.prototype.copy=function(){var a=new $i;a.Fm=this.Fm,a.Qq=this.Qq,a.rf=this.rf,a.cc=this.cc,a.H=this.H,a.Qn=this.Qn;var y=this.Sn;return a.Sn=ke(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=ke(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=ke(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=ke(y)&&typeof y.J=="function"?y.J():y,a},$i.prototype.qb=function(a){a.classType===$i&&(this.change=a)},$i.prototype.toString=function(){var a="";return a=this.change===ts?a+"* ":this.change===Eo?a+(this.model!==null?"!m":"!d"):a+((this.model!==null?"!m":"!d")+this.change),this.propertyName&&typeof this.propertyName=="string"&&(a+=" "+this.propertyName),this.modelChange&&this.modelChange!==this.propertyName&&(a+=" "+this.modelChange),a+=": ",this.change===ts?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=yo(this.object)),this.oldValue!==null&&(a+=" old: "+yo(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+yo(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},$i.prototype.I=function(a){return a?this.oldValue:this.newValue},$i.prototype.Dz=function(a){return a?this.oldParam:this.newParam},$i.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},$i.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},$i.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},$i.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},fe.Object.defineProperties($i.prototype,{model:{get:function(){return this.cc},set:function(a){this.cc=a}},diagram:{get:function(){return this.H},set:function(a){this.H=a}},change:{get:function(){return this.Fm},set:function(a){this.Fm=a}},modelChange:{get:function(){return this.Qq},set:function(a){this.Qq=a}},propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},isTransactionFinished:{get:function(){return this.Fm===ts&&(this.rf==="CommittedTransaction"||this.rf==="FinishedUndo"||this.rf==="FinishedRedo")}},object:{get:function(){return this.Qn},set:function(a){this.Qn=a}},oldValue:{get:function(){return this.Sn},set:function(a){this.Sn=a}},oldParam:{get:function(){return this.Rn},set:function(a){this.Rn=a}},newValue:{get:function(){return this.Mn},set:function(a){this.Mn=a}},newParam:{get:function(){return this.Ln},set:function(a){this.Ln=a}}}),$i.prototype.redo=$i.prototype.redo,$i.prototype.canRedo=$i.prototype.canRedo,$i.prototype.undo=$i.prototype.undo,$i.prototype.canUndo=$i.prototype.canUndo,$i.prototype.getParam=$i.prototype.Dz,$i.prototype.getValue=$i.prototype.I,$i.prototype.clear=$i.prototype.clear;var ts=new je($i,"Transaction",-1),Eo=new je($i,"Property",0),mn=new je($i,"Insert",1),gi=new je($i,"Remove",2);$i.className="ChangedEvent",$i.Transaction=ts,$i.Property=Eo,$i.Insert=mn,$i.Remove=gi;function Ar(){this.o=new Je().freeze(),this.xa="",this.j=!1}Ar.prototype.toString=function(a){var y="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(a!==void 0&&0y&&a.cd(y,E),y++);for(;a.length>y;)a.pop();a.freeze()}},fe.Object.defineProperties(Ar.prototype,{changes:{get:function(){return this.o}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isComplete:{get:function(){return this.j},set:function(a){this.j=a}}}),Ar.prototype.optimize=Ar.prototype.ak,Ar.prototype.redo=Ar.prototype.redo,Ar.prototype.canRedo=Ar.prototype.canRedo,Ar.prototype.undo=Ar.prototype.undo,Ar.prototype.canUndo=Ar.prototype.canUndo,Ar.prototype.clear=Ar.prototype.clear,Ar.className="Transaction";function ko(){this.Pt=new Ke,this.Jd=!1,this.u=new Je().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new Je().freeze(),this.hl=new Je,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}ko.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var x=this.nestedTransactionNames.count,E=0;Ea.transactionLevel&&Wi("Ending transaction without having started a transaction: "+x);var E=a.transactionLevel===1,b=a.currentTransaction;E&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,b));var z=0;if(0=E&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),E===0||y.count!==0&&y.get(y.count-1)===b||(y.add(b),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,b);else{a.Fe=!0;try{a.isEnabled&&b!==null&&(b.isComplete=!0,b.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,b),a.Fe=!1}b!==null&&b.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&b!==null){for(a=z,x=b.changes,b=x.count-1;b>=a;b--)y=x.M(b),y!==null&&y.undo(),x.ka(),x.mb(b);x.freeze()}return!1}Ct.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var a=this.history;a.ka();for(var y=a.count-1;y>this.historyIndex;y--){var x=a.M(y);x!==null&&x.clear(),a.mb(y),this.rq=!0}a.freeze()}},ko.prototype.canUndo=function(){if(!this.isEnabled||0=this.transactionLevel&&!this.tt&&(a=a.diagram,a!==null&&a.pi===!1||Wi("Change not within a transaction: "+x.toString()))}},ko.prototype.skipsEvent=function(a){if(a===null||0>a.change.value)return!0;if(a=a.object,a===null)return!1;if(a.layer!==void 0){if(a=a.layer,a!==null&&a.isTemporary)return!0}else if(a.isTemporary)return!0;return!1},fe.Object.defineProperties(ko.prototype,{models:{get:function(){return this.Pt.iterator}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},transactionToUndo:{get:function(){return 0<=this.historyIndex&&this.historyIndex<=this.history.count-1?this.history.M(this.historyIndex):null}},transactionToRedo:{get:function(){return this.historyIndexb||Math.abs(y.y-a.y)>E},fe.Object.defineProperties(si.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof de&&(this.H=a)}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},isActive:{get:function(){return this.nb},set:function(a){this.nb=a}},transactionResult:{get:function(){return this.wm},set:function(a){this.wm=a}}}),si.prototype.startTransaction=si.prototype.Ea,si.className="Tool";function mo(){si.call(this),this.name="ToolManager",this.hb=new Je,this.ob=new Je,this.Hb=new Je,this.F=this.V=850,this.o=new tn(2,2).ja(),this.Ha=5e3,this.ia=Fu,this.u=hu,this.Mp=this.j=null,this.zj=-1}pe(mo,si),mo.prototype.initializeStandardTools=function(){},mo.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof Fi&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},mo.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===tl&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===fl){y.bubbles=!0;return}if(this.gestureBehavior===tl)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,E=0;Eb.right&&(x.x-=E.width+5/y.scale),x.xb.bottom?x.y-(E.height+5/y.scale):x.y+20/y.scale,x.yx.pointsCount)){var E=a.diagram;if(!E.isReadOnly){var b=a.Oe;if(b!==null){var z=null,tt=null;x.fromNode===null&&(z=Kl(a,x.i(0),!1),z!==null&&(tt=z.part));var ot=null,rt=null;x.toNode===null&&(ot=Kl(a,x.i(x.pointsCount-1),!0),ot!==null&&(rt=ot.part)),b.isValidLink(tt,z,rt,ot)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=tt,z!==null&&(x.fromPortId=z.portId),x.toNode=rt,ot!==null&&(x.toPortId=ot.portId),x.fromPort!==E.Mx&&E.R("LinkRelinked",x,E.Mx),x.toPort!==E.Nx&&E.R("LinkRelinked",x,E.Nx)):Cc(b,tt,z,rt,ot):Cc(b,null,null,null,null)}}}}xo.prototype.doDragOver=function(){};function du(a,y){var x=a.diagram;a.dragsLink&&Tu(a,!0),Ms(a);var E=a.findDragOverObject(y),b=x.lastInput;if(b.targetObject=E,E!==null){b.handled=!1;for(var z=E;z!==null;){var tt=z.mouseDrop;if(tt!==null&&(tt(b,z),b.handled))break;cf(a,b,z),z=Il(z)}}else z=x.mouseDrop,z!==null&&z(b);if(a.isActive||Br!==null){for(b=(a.copiedParts||a.draggedParts).iterator;b.next();)z=b.key,z instanceof en&&z.linksConnected.each(function(ot){ot.suspendsRouting=!1});if(a.doDropOnto(y,E),a.isActive||Br!==null){for(a=Me.alloc(),y=x.selection.iterator;y.next();)E=y.value,E instanceof en&&gf(x,E,a);Me.free(a)}}}function cf(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof qn||(x=a.mouseDrop,x!==null&&x(y))}function gf(a,y,x){var E=!1;if(x=y.getAvoidableRect(x),a.viewportBounds.Re(x)&&(E=!0),a=a.Nu(x,function(b){return b.part},function(b){return b instanceof Ve},!0,function(b){return b instanceof Ve},E),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}xo.prototype.doDropOnto=function(){},xo.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;this.simulatedMouseMove(y.event,y.documentPoint,y.targetDiagram)||this.currentPart===null||this.draggedParts===null||(this.mayCopy()?(us(this,!1),vg(a,this.copiedParts),Wa(this,this.copiedParts,!1),vd(a,this.copiedParts)):this.mayMove()?(ma(this),Wa(this,this.draggedParts,!0)):this.mayDragOut()?(us(this,!1),Wa(this,this.copiedParts,!1)):ma(this),Tr(this,a.lastInput.documentPoint))}},xo.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;if(!this.simulatedMouseUp(y.event,y.documentPoint,y.targetDiagram)){y=!1;var x=this.mayCopy();if(x&&this.copiedParts!==null?(ma(this),us(this,!0),vg(a,this.copiedParts),Wa(this,this.copiedParts,!1),vd(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0}))):(y=!0,ma(this),this.mayMove()&&(Wa(this,this.draggedParts,!0),Tr(this,a.lastInput.documentPoint))),this.Ym=!0,du(this,a.lastInput.documentPoint),this.isActive){var E=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&Vd(this),a.Ya(),vd(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",E)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},xo.prototype.simulatedMouseMove=function(a,y,x){if(Br===null)return!1;var E=Br.diagram;x instanceof de||(x=null);var b=Bu;return x!==b&&(b!==null&&b!==E&&(b.ug(),Br.isDragOutStarted=!1,b=b.toolManager.findTool("Dragging"),b!==null&&b.doSimulatedDragLeave()),Bu=x,x!==null&&x!==E&&($u(),b=x.toolManager.findTool("Dragging"),b!==null&&(Bl.contains(b)||Bl.add(b),b.doSimulatedDragEnter())),this.doUpdateCursor(null)),x===null||x===E||!x.allowDrop||x.isReadOnly||!x.allowInsert?!1:(E=x.toolManager.findTool("Dragging"),E!==null&&(a!==null&&(a.targetTouches!==void 0&&(0tt&&(tt=at),ut>ot&&(ot=ut))}}for(E===1/0?z.h(0,0,0,0):z.h(E,b,tt-E,ot-b),E=z.x+z.width/2,b=z.y+z.height/2,Me.free(z),z=a.Fr,tt=new Vn,ot=Rt.alloc(),rt=y.iterator;rt.next();)at=rt.value,at instanceof Ve&&at.canCopy()&&(ut=x.I(at),ut!==null&&(ut.points=at.points,Gh(ut,z.x-E,z.y-b),ut.suspendsRouting=!0,tt.add(ut,a.Pd())));for(y=y.iterator;y.next();)at=y.value,at.Zc()&&at.canCopy()&&(rt=x.I(at),rt!==null&&(at=at.location,ot.h(z.x-(E-at.x),z.y-(b-at.y)),rt.location=ot,rt.Va(),tt.add(rt,a.Pd(ot))));Rt.free(ot),a.copiedParts=tt,qu(a,tt.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Gh(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}xo.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},xo.prototype.computeMove=function(a,y,x,E){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,E):new Rt},fe.Object.defineProperties(xo.prototype,{isCopyEnabled:{get:function(){return this.ob},set:function(a){this.ob=a}},copiesEffectiveCollection:{get:function(){return this.u},set:function(a){this.u=a}},dragOptions:{get:function(){return this.ia},set:function(a){this.ia=a}},isGridSnapEnabled:{get:function(){return this.dragOptions.isGridSnapEnabled},set:function(a){this.dragOptions.isGridSnapEnabled=a}},isComplexRoutingRealtime:{get:function(){return this.hb},set:function(a){this.hb=a}},isGridSnapRealtime:{get:function(){return this.dragOptions.isGridSnapRealtime},set:function(a){this.dragOptions.isGridSnapRealtime=a}},gridSnapCellSize:{get:function(){return this.dragOptions.gridSnapCellSize},set:function(a){this.dragOptions.gridSnapCellSize.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSize=a)}},gridSnapCellSpot:{get:function(){return this.dragOptions.gridSnapCellSpot},set:function(a){this.dragOptions.gridSnapCellSpot.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSpot=a)}},gridSnapOrigin:{get:function(){return this.dragOptions.gridSnapOrigin},set:function(a){this.dragOptions.gridSnapOrigin.D(a)||(a=a.J(),this.dragOptions.gridSnapOrigin=a)}},dragsLink:{get:function(){return this.dragOptions.dragsLink},set:function(a){this.dragOptions.dragsLink=a}},dragsTree:{get:function(){return this.dragOptions.dragsTree},set:function(a){this.dragOptions.dragsTree=a}},copyCursor:{get:function(){return this.F},set:function(a){this.F=a}},moveCursor:{get:function(){return this.Oc},set:function(a){this.Oc=a}},nodropCursor:{get:function(){return this.Pc},set:function(a){this.Pc=a}},currentPart:{get:function(){return this.V},set:function(a){this.V=a}},copiedParts:{get:function(){return this.o},set:function(a){this.o=a}},draggedParts:{get:function(){return this.Ha},set:function(a){this.Ha=a}},draggingParts:{get:function(){return this.copiedParts!==null?this.copiedParts.Lf():this.draggedParts!==null?this.draggedParts.Lf():this.te}},draggedLink:{get:function(){return this.diagram.draggedLink},set:function(a){this.diagram.draggedLink=a}},isDragOutStarted:{get:function(){return this.Hb},set:function(a){this.Hb=a}},startPoint:{get:function(){return this.Fr},set:function(a){this.Fr.D(a)||this.Fr.assign(a)}},delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}}}),xo.prototype.getDraggingSource=xo.prototype.Az;var Br=null,Bu=null;xo.className="DraggingTool",Bl=new Je,Vo("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),mo.prototype.doCancel=function(){Br!==null&&Br.doCancel(),si.prototype.doCancel.call(this)};function Ro(){si.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Ve,y=new ni;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new ni,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new en,y=new ni,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=oo,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new en,y=new ni,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=oo,a.add(y),a.selectable=!1,a.layerName="Tool",this.Di=a,this.o=y,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new Vn,this.Of=this.gj=this.Pf=null}pe(Ro,si),Ro.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},Ro.prototype.copyPortProperties=function(a,y,x,E,b){if(a!==null&&y!==null&&x!==null&&E!==null){var z=y.Df(),tt=tn.alloc();tt.width=y.naturalBounds.width*z,tt.height=y.naturalBounds.height*z,E.desiredSize=tt,tn.free(tt),b?(E.toSpot=y.toSpot,E.toEndSegmentLength=y.toEndSegmentLength):(E.fromSpot=y.fromSpot,E.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=zi,z=Rt.alloc(),x.location=y.ga(zi,z),Rt.free(z),E.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,E,b)}},Ro.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=oo,y.fromSpot=Er,y.toSpot=Er),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},Ro.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},Ro.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof en){var y=this.targetPort.part;this.isForwards?this.copyPortProperties(y,this.targetPort,this.temporaryToNode,this.temporaryToPort,!0):this.copyPortProperties(y,this.targetPort,this.temporaryFromNode,this.temporaryFromPort,!1)}else this.isForwards?this.setNoTargetPortProperties(this.temporaryToNode,this.temporaryToPort,!0):this.setNoTargetPortProperties(this.temporaryFromNode,this.temporaryFromPort,!1);(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},Ro.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof en))return null;for(;a!==null;){var E=y?a.toLinkable:a.fromLinkable;if(E===!0&&(a.portId!==null||a instanceof en)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(E===!1)break;a=a.panel}return null},Ro.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,E=this.portGravity;0>=E&&(E=.1);var b=this,z=y.og(x,E,function(gt){return b.findValidLinkablePort(gt,a)},null,!0);for(E=1/0,y=null,z=z.iterator;z.next();){var tt=z.value,ot=tt.part;if(ot instanceof en){var rt=tt.ga(zi,Rt.alloc()),at=x.x-rt.x,ut=x.y-rt.y;Rt.free(rt),rt=at*at+ut*ut,rtx){if(this.originalLink!==null&&a===this.originalFromNode&&y===this.originalFromPort)return!0;if(y=y.portId,y===null&&(y=""),a.Mo(y).count>=x)return!1}return!0},Ro.prototype.isValidTo=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.toLinkable!==!0))return!1;var x=y.toMaxLinks;if(1/0>x){if(this.originalLink!==null&&a===this.originalToNode&&y===this.originalToPort)return!0;if(y=y.portId,y===null&&(y=""),a.Sd(y).count>=x)return!1}return!0},Ro.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},Ro.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof en))return!1;a=a.portId,a===null&&(a="");var E=y.part;if(!(E instanceof en))return!1;for(y=y.portId,y===null&&(y=""),y=E.Sd(y);y.next();)if(E=y.value,E.fromNode===x&&E.fromPortId===a)return!0;return!1},Ro.prototype.isValidLink=function(a,y,x,E){if(!this.isValidFrom(a,y)||!this.isValidTo(x,E)||!(y===null||E===null||(y.fromLinkableSelfNode&&E.toLinkableSelfNode||!this.isInSameNode(y,E))&&(y.fromLinkableDuplicates&&E.toLinkableDuplicates||!this.isLinked(y,E)))||this.originalLink!==null&&(a!==null&&this.isLabelDependentOnLink(a,this.originalLink)||x!==null&&this.isLabelDependentOnLink(x,this.originalLink))||a!==null&&x!==null&&(a.data===null&&x.data!==null||a.data!==null&&x.data===null)||!this.isValidCycle(a,x,this.originalLink))return!1;if(a!==null){var b=a.linkValidation;if(b!==null&&!b(a,y,x,E,this.originalLink))return!1}return x!==null&&(b=x.linkValidation,b!==null&&!b(a,y,x,E,this.originalLink))?!1:(b=this.linkValidation,b!==null?b(a,y,x,E,this.originalLink):!0)},Ro.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var x=a.labeledLink;if(x===null)return!1;if(x===y)return!0;var E=new Ke;return E.add(a),hs(this,x,y,E)};function hs(a,y,x,E){if(y===x)return!0;var b=y.fromNode;return b!==null&&b.isLinkLabel&&(E.add(b),hs(a,b.labeledLink,x,E))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(E.add(y),hs(a,y.labeledLink,x,E))))}Ro.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var E=this.diagram.validCycle;if(E!==jc){if(E===Yf){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=y.linksConnected;E.next();){var b=E.value;if(b!==x&&b.isTreeLink&&b.toNode===y)return!1}return!Cs(this,a,y,x,!0)}if(E===Vf){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=a.linksConnected;E.next();)if(b=E.value,b!==x&&b.isTreeLink&&b.fromNode===a)return!1;return!Cs(this,a,y,x,!0)}if(E===Hf)return a===y?a=!0:(E=new Ke,E.add(y),a=mr(this,E,a,y,x)),!a;if(E===Uf)return!Cs(this,a,y,x,!1);if(E===Wf)return a===y?a=!0:(E=new Ke,E.add(y),a=Mh(this,E,a,y,x)),!a}return!0};function Cs(a,y,x,E,b){if(y===x)return!0;if(y===null||x===null)return!1;for(var z=y.linksConnected;z.next();){var tt=z.value;if(tt!==E&&(!b||tt.isTreeLink)&&tt.toNode===y&&(tt=tt.fromNode,tt!==y&&Cs(a,tt,x,E,b)))return!0}return!1}function mr(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==b&&tt.toNode===x&&(tt=tt.fromNode,tt!==x&&mr(a,y,tt,E,b)))return!0}return!1}function Mh(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==b){var ot=tt.fromNode;if(tt=tt.toNode,ot=ot===x?tt:ot,ot!==x&&Mh(a,y,ot,E,b))return!0}}return!1}fe.Object.defineProperties(Ro.prototype,{portGravity:{get:function(){return this.te},set:function(a){0<=a&&(this.te=a)}},isUnconnectedLinkValid:{get:function(){return this.Ha},set:function(a){this.Ha=a}},linkingCursor:{get:function(){return this.u},set:function(a){this.u=a}},temporaryLink:{get:function(){return this.Ci},set:function(a){this.Ci=a}},temporaryFromNode:{get:function(){return this.Bi},set:function(a){(this.Bi=a)&&(this.j=a.port)}},temporaryFromPort:{get:function(){return this.j},set:function(a){if(this.j!==null){var y=this.j.panel;if(y!==null){var x=y.O.indexOf(this.j);y.mb(x),y.Gb(x,a)}}this.j=a}},temporaryToNode:{get:function(){return this.Di},set:function(a){(this.Di=a)&&(this.o=a.port)}},temporaryToPort:{get:function(){return this.o},set:function(a){if(this.o!==null){var y=this.o.panel;if(y!==null){var x=y.O.indexOf(this.o);y.mb(x),y.Gb(x,a)}}this.o=a}},originalLink:{get:function(){return this.Hb},set:function(a){this.Hb=a}},originalFromNode:{get:function(){return this.hb},set:function(a){this.hb=a}},originalFromPort:{get:function(){return this.ob},set:function(a){this.ob=a}},originalToNode:{get:function(){return this.Oc},set:function(a){this.Oc=a}},originalToPort:{get:function(){return this.Pc},set:function(a){this.Pc=a}},isForwards:{get:function(){return this.ia},set:function(a){this.ia=a}},validPortsCache:{get:function(){return this.hy}},targetPort:{get:function(){return this.Pf},set:function(a){this.Pf=a}},linkValidation:{get:function(){return this.gj},set:function(a){this.gj=a}},portTargeted:{get:function(){return this.Of},set:function(a){this.Of=a}}}),Ro.className="LinkingBaseTool";function ds(){Ro.call(this),this.name="Linking",this.V={},this.F=null,this.K=th,this.Xd=null}pe(ds,Ro),ds.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return a.isReadOnly||a.isModelReadOnly||!a.allowLink||!a.model.xs()||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize()?!1:this.findLinkablePort()!==null},ds.prototype.findLinkablePort=function(){var a=this.diagram,y=this.startObject;if(y===null&&(y=a.ic(a.firstInput.documentPoint,null,null)),y===null||(a=y.part,!(a instanceof en)))return null;var x=this.direction;if(x===th||x===ff){var E=this.findValidLinkablePort(y,!1);if(E!==null||this.startObject===a&&(E=a.port,this.findValidLinkablePort(E,!1)))return this.isForwards=!0,E}return(x===th||x===pf)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},ds.prototype.doActivate=function(){var a=this.diagram,y=this.findLinkablePort();y===null?this.stopTool():(this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.isForwards?(this.temporaryToNode!==null&&(this.temporaryToNode.location=a.lastInput.documentPoint),this.originalFromPort=y,y=this.originalFromPort.part,y instanceof en&&(this.originalFromNode=y),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(this.temporaryFromNode!==null&&(this.temporaryFromNode.location=a.lastInput.documentPoint),this.originalToPort=y,y=this.originalToPort.part,y instanceof en&&(this.originalToNode=y),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),a.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),a.add(this.temporaryToNode),this.temporaryToNode&&this.temporaryToNode.Va(),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0)},ds.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},ds.prototype.doStop=function(){Ro.prototype.doStop.call(this),this.startObject=null},ds.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,E=null,b=null,z=null;try{var tt=this.targetPort=this.findTargetPort(this.isForwards);if(tt!==null){var ot=tt.part;ot instanceof en&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),E=ot,b=tt):(y=ot,x=tt,this.originalToNode!==null&&(E=this.originalToNode,b=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(E=this.originalToNode,b=this.originalToPort);y!==null||E!==null?(z=this.insertLink(y,x,E,b),z!==null?(tt===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),z.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",z)):this.doNoLink(y,x,E,b)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),z&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},ds.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof Ve)return a.isTreeLink;var y=this.diagram;return y===null?!0:(a=y.partManager.getLinkCategoryForData(a),y=y.partManager.findLinkTemplateForCategory(a),y!==null?y.isTreeLink:!0)},ds.prototype.insertLink=function(a,y,x,E){return this.diagram.partManager.insertLink(a,y,x,E)},ds.prototype.doNoLink=function(){},fe.Object.defineProperties(ds.prototype,{archetypeLinkData:{get:function(){return this.V},set:function(a){this.V=a}},archetypeLabelNodeData:{get:function(){return this.F},set:function(a){this.F=a}},direction:{get:function(){return this.K},set:function(a){this.K=a}},startObject:{get:function(){return this.Xd},set:function(a){this.Xd=a}}});var th=new je(ds,"Either",0),ff=new je(ds,"ForwardsOnly",0),pf=new je(ds,"BackwardsOnly",0);ds.className="LinkingTool",ds.Either=th,ds.ForwardsOnly=ff,ds.BackwardsOnly=pf;function ka(){Ro.call(this),this.name="Relinking";var a=new ni;a.figure="Diamond",a.desiredSize=fr,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new ni,a.figure="Diamond",a.desiredSize=fr,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new Me}pe(ka,Ro),ka.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Ve){var y="RelinkFrom",x=null;if(a.isSelected&&!this.diagram.isReadOnly){var E=a.selectionObject;E!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null&&(x=this.makeAdornment(E,!1),a.bh(y,x)))}x===null&&a.Jf(y),y="RelinkTo",x=null,a.isSelected&&!this.diagram.isReadOnly&&(E=a.selectionObject,E!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null?(x=this.makeAdornment(E,!0),a.bh(y,x)):x.v())),x===null&&a.Jf(y)}},ka.prototype.makeAdornment=function(a,y){var x=new Fi;return x.type=Ue.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},ka.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowRelink||!a.model.xs()||!a.lastInput.left)return!1;var y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom");return y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo")),y!==null},ka.prototype.doActivate=function(){var a=this.diagram;if(this.originalLink===null){var y=this.handle;if(y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom"),y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo"))),y===null)return;var x=y.part;if(!(x instanceof Fi&&x.adornedPart instanceof Ve))return;this.handle=y,this.isForwards=x===null||x.category==="RelinkTo",this.originalLink=x.adornedPart}this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.originalFromPort=this.originalLink.fromPort,this.originalFromNode=this.originalLink.fromNode,this.originalToPort=this.originalLink.toPort,this.originalToNode=this.originalLink.toNode,this.Ew.set(this.originalLink.actualBounds),this.originalLink!==null&&0y.firstPickIndex+1&&x=x.x)y=0>=x.y?y+225:1<=x.y?y+135:y+180;else if(1<=x.x)0>=x.y?y+=315:1<=x.y&&(y+=45);else if(0>=x.y)y+=270;else if(1<=x.y)y+=90;else break t;0>y?y+=360:360<=y&&(y-=360),a.cursor=22.5>y?"e-resize":67.5>y?"se-resize":112.5>y?"s-resize":157.5>y?"sw-resize":202.5>y?"w-resize":247.5>y?"nw-resize":292.5>y?"n-resize":337.5>y?"ne-resize":"e-resize"}else if(a instanceof Ue)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},Kr.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowResize&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},Kr.prototype.doActivate=function(){var a=this.diagram;this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null&&(this.adornedObject=this.handle.part.adornedObject,this.adornedObject!==null&&(a.isMouseCaptured=!0,a.animationManager.Cc(),this.Ea(this.name),this.Xq.set(this.adornedObject.ga(this.handle.alignment.gv())),this.Tn.set(this.adornedObject.part.location),this.Dw.set(this.adornedObject.desiredSize),this.pt=this.computeCellSize(),this.rt=this.computeMinSize(),this.qt=this.computeMaxSize(),this.isActive=!0))},Kr.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},Kr.prototype.stopTransaction=function(){var a=this.diagram,y=si.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Kr.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},Kr.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,Rt.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),a.bd(),Rt.free(b)}},Kr.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,Rt.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),Rt.free(b),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},Kr.prototype.resize=function(a){var y=this.diagram,x=this.adornedObject;if(x!==null){if(x.desiredSize=a.size,a=x.part,a.Va(),x=x.ga(this.handle.alignment.gv()),a instanceof qn){var E=new Je;if(E.add(a),!this.dragsMembers&&a.placeholder===null){var b=new st;b.dragsMembers=!1}y.moveParts(E,this.oppositePoint.copy().re(x),!0,b)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},Kr.prototype.computeResize=function(a,y,x,E,b,z){y.Mc()&&(y=zi);var tt=this.adornedObject.naturalBounds,ot=tt.x,rt=tt.y,at=tt.x+tt.width,ut=tt.y+tt.height,gt=1;if(!z){gt=tt.width;var mt=tt.height;0>=gt&&(gt=1),0>=mt&&(mt=1),gt=mt/gt}return mt=Rt.alloc(),Jt.No(a.x,a.y,ot,rt,b.width,b.height,mt),a=tt.copy(),0>=y.x?0>=y.y?(a.x=Math.max(mt.x,at-E.width),a.x=Math.min(a.x,at-x.width),a.width=Math.max(at-a.x,x.width),a.y=Math.max(mt.y,ut-E.height),a.y=Math.min(a.y,ut-x.height),a.height=Math.max(ut-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(gt*a.width,E.height),x.height),a.width=a.height/gt):(a.width=Math.max(Math.min(a.height/gt,E.width),x.width),a.height=gt*a.width),a.x=at-a.width,a.y=ut-a.height)):1<=y.y?(a.x=Math.max(mt.x,at-E.width),a.x=Math.min(a.x,at-x.width),a.width=Math.max(at-a.x,x.width),a.height=Math.max(Math.min(mt.y-rt,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(gt*a.width,E.height),x.height),a.width=a.height/gt):(a.width=Math.max(Math.min(a.height/gt,E.width),x.width),a.height=gt*a.width),a.x=at-a.width)):(a.x=Math.max(mt.x,at-E.width),a.x=Math.min(a.x,at-x.width),a.width=at-a.x,z||(a.height=Math.max(Math.min(gt*a.width,E.height),x.height),a.width=a.height/gt,a.y=rt+.5*(ut-rt-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(mt.x-ot,E.width),x.width),a.y=Math.max(mt.y,ut-E.height),a.y=Math.min(a.y,ut-x.height),a.height=Math.max(ut-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(gt*a.width,E.height),x.height),a.width=a.height/gt):(a.width=Math.max(Math.min(a.height/gt,E.width),x.width),a.height=gt*a.width),a.y=ut-a.height)):1<=y.y?(a.width=Math.max(Math.min(mt.x-ot,E.width),x.width),a.height=Math.max(Math.min(mt.y-rt,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(gt*a.width,E.height),x.height),a.width=a.height/gt):(a.width=Math.max(Math.min(a.height/gt,E.width),x.width),a.height=gt*a.width))):(a.width=Math.max(Math.min(mt.x-ot,E.width),x.width),z||(a.height=Math.max(Math.min(gt*a.width,E.height),x.height),a.width=a.height/gt,a.y=rt+.5*(ut-rt-a.height))):0>=y.y?(a.y=Math.max(mt.y,ut-E.height),a.y=Math.min(a.y,ut-x.height),a.height=ut-a.y,z||(a.width=Math.max(Math.min(a.height/gt,E.width),x.width),a.height=gt*a.width,a.x=ot+.5*(at-ot-a.width))):1<=y.y&&(a.height=Math.max(Math.min(mt.y-rt,E.height),x.height),z||(a.width=Math.max(Math.min(a.height/gt,E.width),x.width),a.height=gt*a.width,a.x=ot+.5*(at-ot-a.width))),Rt.free(mt),a},Kr.prototype.computeReshape=function(){var a=Te;return this.adornedObject instanceof ni&&(a=Cv(this.adornedObject)),!(a===Pn||this.diagram.lastInput.shift)},Kr.prototype.computeMinSize=function(){var a=this.adornedObject.minSize.copy(),y=this.minSize;return!isNaN(y.width)&&y.width>a.width&&(a.width=y.width),!isNaN(y.height)&&y.height>a.height&&(a.height=y.height),a},Kr.prototype.computeMaxSize=function(){var a=this.adornedObject.maxSize.copy(),y=this.maxSize;return!isNaN(y.width)&&y.widthx?x+=360:360<=x&&(x-=360),x=Math.round(45*Math.round(x/45));var E=this.handleDistance;return x===0?y.x=a.naturalBounds.width+E:x===45?(y.x=a.naturalBounds.width+E,y.y=a.naturalBounds.height+E):x===90?y.y=a.naturalBounds.height+E:x===135?(y.x=-E,y.y=a.naturalBounds.height+E):x===180?y.x=-E:x===225?(y.x=-E,y.y=-E):x===270?y.y=-E:x===315&&(y.x=a.naturalBounds.width+E,y.y=-E),a.ga(y)},ms.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Rt(NaN,NaN),this.isActive=a.isMouseCaptured=!1},ms.prototype.stopTransaction=function(){var a=this.diagram,y=si.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},ms.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},ms.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},ms.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){a.delaysLayout=!1;var y=this.computeRotate(a.lastInput.documentPoint);this.rotate(y),a.Ya(),this.transactionResult=this.name,a.R("PartRotated",this.adornedObject,this.originalAngle)}this.stopTool()},ms.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var x=y.locationObject,E=y.rotateObject;(x===E||x.rg(E))&&(x=this.Tn.copy(),y.location=x.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},ms.prototype.computeRotate=function(a){a=this.rotationPoint.ab(a)-this.handleAngle;var y=this.adornedObject.panel;y!==null&&(a-=y.li()),360<=a?a-=360:0>a&&(a+=360),y=Math.min(Math.abs(this.snapAngleMultiple),180);var x=Math.min(Math.abs(this.snapAngleEpsilon),y/2);return!this.diagram.lastInput.shift&&0y-x&&(a=(Math.floor(a/y)+1)*y)),360<=a?a-=360:0>a&&(a+=360),a},fe.Object.defineProperties(ms.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof Fi))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof Fi)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},snapAngleMultiple:{get:function(){return this.ia},set:function(a){this.ia=a}},snapAngleEpsilon:{get:function(){return this.V},set:function(a){this.V=a}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(a){this.kr=a.copy()}},handleAngle:{get:function(){return this.u},set:function(a){this.u=a}},handleDistance:{get:function(){return this.F},set:function(a){this.F=a}}}),ms.className="RotatingTool",Vo("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function gu(){si.call(this),this.name="ClickSelecting"}pe(gu,si),gu.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},gu.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},gu.className="ClickSelectingTool";function Da(){si.call(this),this.name="Action",this.pk=null}pe(Da,si),Da.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,x=a.ic(y.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E});return x!==null&&x.isActionable?(this.pk=x,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},Da.prototype.doMouseDown=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionDown!==null&&y.actionDown(a,y))}else this.canStart()&&this.doActivate()},Da.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionMove!==null&&y.actionMove(a,y))}},Da.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;if(y===null)return;a.targetObject=y,y.actionUp!==null&&y.actionUp(a,y),this.standardMouseClick(function(x){for(;x.panel!==null&&(!x.isActionable||x!==y);)x=x.panel;return x},function(x){return x===y})}this.stopTool()},Da.prototype.doCancel=function(){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionCancel!==null&&y.actionCancel(a,y),this.stopTool())},Da.prototype.doStop=function(){this.pk=null},Da.className="ActionTool";function ml(){si.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Rt(0,0)}pe(ml,si),ml.prototype.canStart=function(){if(!this.isEnabled||this.archetypeNodeData===null)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.lastInput.left||this.isBeyondDragSize())return!1;if(this.isDoubleClick){if(a.lastInput.clickCount===1&&(this.mw=a.lastInput.viewPoint.copy()),a.lastInput.clickCount!==2||this.isBeyondDragSize(this.mw))return!1}else if(a.lastInput.clickCount!==1)return!1;return!(a.currentTool!==this&&a.Ol(a.lastInput.documentPoint,!0)!==null)},ml.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},ml.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var E=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof Fn)x.Zc()&&(Ml(x),E=x.copy(),E!==null&&y.add(E));else if(x!==null){var b=y.model.copyNodeData(x);ke(b)&&(y.model.xf(b),E=y.Lc(b))}if(E!==null){var z=Rt.allocAt(a.x,a.y);this.isGridSnapEnabled&&mg(this.diagram,E,a,z),E.location=z,y.allowSelect&&(y.clearSelection(!0),E.isSelected=!0),Rt.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",E)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return E},fe.Object.defineProperties(ml.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){this.Ri=a}},isDoubleClick:{get:function(){return this.o},set:function(a){this.o=a}},isGridSnapEnabled:{get:function(){return this.j},set:function(a){this.j=a}}}),ml.className="ClickCreatingTool";function Fa(){si.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new Fn;a.layerName="Tool",a.selectable=!1;var y=new ni;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}pe(Fa,si),Fa.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(!a.allowSelect)return!1;var y=a.lastInput;return!(!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.timestamp-a.firstInput.timestampb.right&&(x.x-=E.width+5/y.scale),x.xb.bottom&&(x.y-=E.height+5/y.scale),x.ya.lastInput.clickCount)):!1},so.prototype.doStart=function(){vs=this,this.textBlock!==null&&this.doActivate()},so.prototype.doActivate=function(){if(!this.isActive){var a=this.diagram;if(a!==null){var y=this.textBlock;if(y===null&&(y=a.ic(a.lastInput.documentPoint)),y!==null&&y instanceof ao&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=ad;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var E=new Me(this.textBlock.ga(Vr),this.textBlock.ga(Bs));a.tv(E),x.show(y,a,this),this.currentTextEditor=x}}}},so.prototype.doCancel=function(){this.stopTool()},so.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},so.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Es)},so.prototype.acceptText=function(a){switch(a){case Es:this.qa===Ii?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===ad||this.qa===Gn||this.qa===ld)&&(this.qa=Lc,pu(this));break;case mu:case Eh:case _d:(Eh!==a||this.textBlock.isMultiline!==!0)&&(this.qa===ad||this.qa===Gn||this.qa===ld)&&(this.qa=Lc,pu(this))}};function pu(a){var y=a.textBlock,x=a.diagram,E=a.currentTextEditor;if(y!==null&&E!==null){var b=y.text,z="";E.valueFunction!==null&&(z=E.valueFunction()),a.isValidText(y,b,z)?(a.Ea(a.name),a.qa=Ii,a.transactionResult=a.name,y.text=z,a.doSuccess(b,z),x!==null&&x.R("TextEdited",y,b),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=Gn,a.doError(b,z))}}so.prototype.doError=function(a,y){var x=this.textBlock;x.errorFunction!==null&&x.errorFunction(this,a,y),(a=this.currentTextEditor)&&a.show(x,this.diagram,this)},so.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},so.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=oh,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},so.prototype.doStop=function(){vs=null},so.prototype.isValidText=function(a,y,x){var E=this.textValidation;return E!==null&&!E(a,y,x)?!1:(E=a.textValidation,!!(E===null||E(a,y,x)))},so.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},fe.Object.defineProperties(so.prototype,{textBlock:{get:function(){return this.ia},set:function(a){this.ia=a}},currentTextEditor:{get:function(){return this.o},set:function(a){this.o=a}},defaultTextEditor:{get:function(){return this.j},set:function(a){this.j=a}},starting:{get:function(){return this.V},set:function(a){this.V=a}},textValidation:{get:function(){return this.vj},set:function(a){this.vj=a}},minimumEditorScale:{get:function(){return this.u},set:function(a){this.u=a}},selectsTextOnActivate:{get:function(){return this.F},set:function(a){this.F=a}},state:{get:function(){return this.qa},set:function(a){this.qa!==a&&(this.qa=a)}}}),so.prototype.measureTemporaryTextBlock=so.prototype.Lx;var mu=new je(so,"LostFocus",0),Es=new je(so,"MouseDown",1),_d=new je(so,"Tab",2),Eh=new je(so,"Enter",3),mf=new je(so,"SingleClick",0),ih=new je(so,"SingleClickSelected",1),Zd=new je(so,"DoubleClick",2),oh=new je(so,"StateNone",0),ad=new je(so,"StateActive",1),ld=new je(so,"StateEditing",2),Lc=new je(so,"StateValidating",3),Gn=new je(so,"StateInvalid",4),Ii=new je(so,"StateValidated",5),vs=null;so.className="TextEditingTool",so.LostFocus=mu,so.MouseDown=Es,so.Tab=_d,so.Enter=Eh,so.SingleClick=mf,so.SingleClickSelected=ih,so.DoubleClick=Zd,so.StateNone=oh,so.StateActive=ad,so.StateEditing=ld,so.StateValidating=Lc,so.StateInvalid=Gn,so.StateValidated=Ii,Vo("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function ys(a){Ac||(vf(),Ac=!0),this.H=Iu,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=rh,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Ke,this.ce=new cs,this.ce.Yd=this,this.Ei=new Ke,this.pu=new Ke,this.Sr=new Ke,this.pr=new Ke,a&&Object.assign(this,a)}ys.prototype.Xe=function(a){this.H=a},ys.prototype.canStart=function(){return!0};function el(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),gs(a.H),a.zb=!0)}function Ah(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,E=a.Zd.contains("Model");E&&(a.Ok=!0,a.Pk===rh?(y.isViewportUnconstrained=!0,y.vc.clear(),y.add(x,"position",x.position.copy().offset(0,-200),x.position),y.add(x,"opacity",0,1)):a.Pk===yf&&y.vc.clear(),a.Qw=!!(a.Pk===Nc&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),E&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),kc(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,E=y.vc.get(x),x.autoScale!==Is&&E!==null&&(delete E.start.scale,delete E.end.scale),be.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&ra(x),Mf(x),a.zb=!1,y.start(),y.bc&&(Nh(a),x.Ya(),Sf(y,0),il(x,!0),ud(a),x.R("AnimationStarting",a)))}))}}function Sl(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function ug(a,y,x,E){a.isTicking||Sl(a)||y instanceof Ve&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,E,!1)}Ct=ys.prototype,Ct.fv=function(a){return this.ce.fv(a)},Ct.Xu=function(a){return this.ce.Xu(a)};function hg(a,y){function x(){if(0z?z+=360:rt+=360),z=b(x,z,rt-z,E)%360,tt=b(x,tt,at-tt,E),ot=b(x,ot,ut-ot,E),x=b(x,a,y-a,E),"hsla("+z+", "+tt+"%, "+ot+"%, "+x+")"}function vf(){function a(x,E,b,z,tt,ot){x.position=new Rt(z(tt,E.x,b.x-E.x,ot),z(tt,E.y,b.y-E.y,ot))}var y=new Vn;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,E,b,z,tt,ot){tta&&Kn(a,">= 1",ys,"duration"),this.Dg=a}},isAnimating:{get:function(){return this.bc}},isTicking:{get:function(){return this.vq}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a}},defaultAnimation:{get:function(){return this.ce}},activeAnimations:{get:function(){return this.Ei}},initialAnimationStyle:{get:function(){return this.Pk},set:function(a){this.Pk=a}}}),ys.prototype.stopAnimation=ys.prototype.Cc;var Ec=null,Ac=!1,rh=new je(ys,"Default",1),Nc=new je(ys,"AnimateLocations",2),yf=new je(ys,"None",3);ys.className="AnimationManager",ys.defineAnimationEffect=function(a,y){Ac||(vf(),Ac=!0),Ec.add(a,y)},ys.Default=rh,ys.AnimateLocations=Nc,ys.None=yf;function cs(a){this.vu=this.Nw=this.Yd=this.H=null,this.Xk=this.bc=this.j=!1,this.cn=this.Qd=0,this.Lp=this.ot=Qd,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=$r,this.vc=new Vn,this.Tt=new Vn,this.yl=new Ke,this.Ut=new Ke,this.dw=Th,a&&Object.assign(this,a)}cs.prototype.suspend=function(){this.Xk=!0},cs.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,Dc(this,!0),Nh(this.Yd),il(this.H),ud(this.Yd),this.H.redraw()};function kc(a,y){if(a.Tt.clear(),a.Wk=!1,a.au=0,a.Gd=NaN,0a.cn?a.Gd:E-a.Qd;y&&(b=a.gw,ba.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function Sf(a,y){for(var x=a.Gd,E=a.vc.iterator,b=a.Wk;E.next();){var z=E.key;if(!(z instanceof Xt&&z.diagram===null)){var tt=E.value,ot=b?tt.end:tt.start;tt=b?tt.start:tt.end;var rt=Ec,at;for(at in tt)at==="position"&&(tt["position:placeholder"]||tt["position:nodeCollapse"])||rt.get(at)===null||rt.get(at)(z,ot[at],tt[at],a.Lp,y,x,a)}}}Ct.stop=function(){return this.bc?(this.Ml(!0),this):this},Ct.Ml=function(a){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var y=this.H,x=this.Yd;this.Xk=this.bc=x.Ok=!1,Nh(x);for(var E=this.vc,b=this.yl.iterator;b.next();)y.remove(b.value);for(b=this.Ut.iterator;b.next();)b.value.v();b=this.ho,E=E.iterator;for(var z=Ec;E.next();){var tt=E.key,ot=E.value,rt=b?ot.end:ot.start,at=b?ot.start:ot.end,ut=ot.Ku,gt;for(gt in at)if(z.get(gt)!==null){var mt=gt;!ot.Hu||mt!=="position:nodeCollapse"&&mt!=="position:placeholder"||(mt="position"),z.get(mt)(tt,rt[gt],ut[gt]!==void 0?ut[gt]:ot.Hu?rt[gt]:at[gt],this.Lp,this.Gd,this.Gd,this)}ot.Hu&&ut.location!==void 0&&tt instanceof Fn&&(tt.location=ut.location),ot.nv&&tt instanceof Fn&&tt.Zb(!1)}if(y.As.clear(),Fc(y,!1),y.Ya(),y.N(),il(y,!0),x.defaultAnimation===this){for(gt=x.pr.iterator;gt.next();)b=gt.value,b.Tg!==null&&(b.points=b.Tg,b.Tg=null);x.pr.clear()}il(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),ud(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),kc(this,null),x.Ml(this),y.$b())}},Ct.Cj=function(a,y){var x=y.actualBounds,E=null;if(y instanceof qn&&(E=y.placeholder),E!==null?(x=E.ga(Vr),E=E.padding,x.x+=E.left,x.y+=E.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Rt(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof qn)for(a=a.memberParts;a.next();)E=a.value,E instanceof en&&this.Cj(E,y)},Ct.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof qn&&(x=y.placeholder),x!==null){var E=x.ga(Vr);x=x.padding,E.x+=x.left,E.y+=x.top,this.add(a,"position:placeholder",a.position,E,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),E=this.vc,E.contains(a)&&(E.I(a).nv=!0),a instanceof qn)for(a=a.memberParts;a.next();)E=a.value,E instanceof en&&this.Aj(E,y)}},Ct.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},fe.Object.defineProperties(cs.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Kn(a,">= 1",cs,"duration"),this.Dg=a}},reversible:{get:function(){return this.ho},set:function(a){this.ho=a}},runCount:{get:function(){return this.cu},set:function(a){0a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function _0(a,y,x,E){return a===E?y+x:x*(-Math.pow(2,-10*a/E)+1)+y}cs.className="Animation",cs.EaseLinear=function(a,y,x,E){return x*a/E+y},cs.EaseInOutQuad=Qd,cs.EaseInQuad=function(a,y,x,E){return x*(a/=E)*a+y},cs.EaseOutQuad=function(a,y,x,E){return-x*(a/=E)*(a-2)+y},cs.EaseInExpo=function(a,y,x,E){return a===0?y:x*Math.pow(2,10*(a/E-1))+y},cs.EaseOutExpo=_0;function cd(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}cd.className="AnimationState";function bl(a,y,x){this.xd=null,this.rf=a,this.so=x||xf,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=gd))}bl.prototype.copy=function(){var a=new bl(this.rf);a.so=this.so;var y=this.uk;if(y!==null){var x={};y.duration!==void 0&&(x.duration=y.duration),y.finished!==void 0&&(x.finished=y.finished),y.easing!==void 0&&(x.easing=y.easing),a.uk=x}return a};function Z0(a,y){a=a.uk,a!==null&&(a.duration&&(y.duration=a.duration),a.finished&&(y.finished=a.finished),a.easing&&(y.easing=a.easing))}fe.Object.defineProperties(bl.prototype,{propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},animationSettings:{get:function(){return this.uk},set:function(a){this.uk=a}},startCondition:{get:function(){return this.so},set:function(a){this.so=a}}});var xf=new je(bl,"Default",1),gd=new je(bl,"Immediate",2),Kd=new je(bl,"Bundled",3);bl.className="AnimationTrigger",bl.Default=xf,bl.Immediate=gd,bl.Bundled=Kd;function Xr(a){Lo(this),this.H=null,this.Pa=new Je,this.xa="",this.pb=1,this.o=!1,this.j=this.Uh=this.u=this.Oi=this.Ni=this.Mi=this.Li=this.Ji=this.Ki=this.Ii=this.Qi=this.Hi=this.Pi=this.Gi=this.Fi=!0,this.Zq=[],a&&Object.assign(this,a)}Ct=Xr.prototype,Ct.clear=function(){for(var a=this.Pa,y=0;y=a)return y;for(var x=0,E=0,b=0,z=0,tt=0,ot=this.Pa.iterator;ot.next();){var rt=ot.value;rt instanceof qn?b++:rt instanceof en?E++:rt instanceof Ve?z++:rt instanceof Fi?tt++:x++}if(ot="",0x.Oq||ot.height*b>x.Oq?y.gc(a,x):(b=y.actualBounds,z=y.naturalBounds,b.width===0||b.height===0||isNaN(b.x)||isNaN(b.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(Xo(y,a,y.areaBackground,!0,!0,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.areaBackground===null&&y.background===null&&(Xo(y,a,"rgba(0,0,0,0.3)",!0,!1,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),Xo(y,a,y.background,!0,!1,z,b),a.fillRect(0,0,z.width/2,z.height/2),x.ws()||(y=1/(x.m11*x.m22-x.m12*x.m21),a.transform(x.m22*y,-x.m12*y,-x.m21*y,x.m11*y,y*(x.m21*x.dy-x.m22*x.dx),y*(x.m12*x.dx-x.m11*x.dy)))))),E&&(a.restore(),a.Vc(!0))}},Ct.g=function(a,y,x,E,b){var z=this.diagram;z!==null&&z.cb(Eo,a,this,y,x,E,b)},Ct.oi=function(a,y,x){var E=this.Pa;if(y.Ig=this,this===null&&ks(y),a>=E.count)a=E.count;else if(E.M(a)===y)return-1;return E.Gb(a,y),y.Vo(x),E=this.diagram,E!==null&&(x?E.N():E.oi(y)),cg(this,a,y),a},Ct.pc=function(a,y,x){if(!x&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,x);var E=this.Pa;if(0>a||a>=E.length){if(a=E.indexOf(y),0>a)return-1}else if(E.M(a)!==y&&(a=E.indexOf(y),0>a))return-1;return y.Wo(x),E.mb(a),E=this.diagram,E!==null&&(x?E.N():E.pc(y)),y.Ig=null,ks(y),a};function cg(a,y,x){if(y=K0(a,y,x),x instanceof qn&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var E=-1,b=a.Pa.s,z=b.length,tt=0;ttE&&ot.containingGroup===x&&(E=tt,0<=y))break}!(0>E)&&E=b)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var z=y-1,tt=NaN;0<=z&&(tt=a.M(z).zOrder,!!isNaN(tt));)z--;for(var ot=y+1,rt=NaN;otE)for(;;){if(z===-1||tt<=E){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(tt=NaN;0<=--z&&(tt=a.M(z).zOrder,isNaN(tt)););}else if(!isNaN(rt)&&rt=E){if(ot--,ot===y)break;return a.mb(y),a.Gb(ot,x),ot}for(rt=NaN;++ota||1=a)return y;for(var x=this.Wa.iterator;x.next();)y+=` - `+x.value.toString(a-1);return y};function Pf(a,y){if(Qo){if(y!=null||ie("Diagram setup requires an argument DIV."),a.Ka!==null&&ie("Diagram has already completed setup."),typeof y=="string"?a.Ka=be.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:ie("No DIV or DIV id supplied: "+y),a.Ka===null&&ie("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&ie("Invalid div id; div already has a Diagram associated with it."),!a.ol&&be.ResizeObserver){var x=li(function(){a.$b()},250);a.ol=new be.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}be.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var E="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=E,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=be.go;var b=new Pl(a);if(b.style!==void 0&&(b.style.position="absolute",b.style.top="0px",b.style.left="0px",be.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),b.style.zIndex="2",b.style.userSelect="none",b.style.MozUserSelect="none",b.style.touchAction="none",b.style.letterSpacing="normal !important",b.style.wordSpacing="normal !important"),a.ta=b,a.ib=b.context,E=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),Df(a,a.Aa,a.ya),a.Ka.insertBefore(b.Oa,a.Ka.firstChild),b=new Pl(null),b.width=1,b.height=1,a.jw=b,a.oy=b.context,Qo){b=Ki("div");var z=Ki("div");b.style.position="absolute",b.style.overflow="auto",b.style.width=a.Aa+"px",b.style.height=a.ya+"px",b.style.zIndex="1",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(b),b.appendChild(z),b.onscroll=tp,b.addEventListener("pointerdown",ep),b.H=a,b.uy=!0,b.vy=!0,a.ku=b,a.hu=z}a.hk=li(function(){a.Yh=null,a.N()},300),a.Ov=li(function(){Mf(a)},250),a.preventDefault=function(tt){return tt.preventDefault(),!1},a.$j=function(tt){if(a.isEnabled){var ot=nl(a,tt,!0);ot.bubbles=!0;var rt=0,at=0;ot.delta=0,tt.deltaX!==void 0?(tt.deltaX!==0&&(rt=0Math.abs(tt.deltaY)?-rt:-at):tt.wheelDeltaX!==void 0?(tt.wheelDeltaX!==0&&(rt=0Math.abs(tt.wheelDeltaY)?-rt:-at):tt.wheelDelta!==void 0&&tt.wheelDelta!==0&&(ot.delta=0ot||Math.abs(at.y-tt.screenY)>ot)?a.yq++:a.yq=1,rt.clickCount=a.yq,a.tw=tt.timeStamp,a.uw.sg(tt.screenX,tt.screenY),a.doMouseDown(),tt.button===1?tt.preventDefault():jl(rt,tt)}},a.dk=function(tt){if(a.isEnabled){a.Vk=!0;var ot=a.oj;if(ot[0]===null||ot[0].pointerId!==tt.pointerId&&ot[0].pointerType===tt.pointerType){if(ot[1]!==null&&ot[1].pointerId===tt.pointerId){ot[1]=tt;return}if(ot[0]===null)ot[0]=tt;else return}else ot[0]=tt;if(ot[0].pointerId===tt.pointerId){ot=Af(a,tt,!1,!1,!1,ot[1]!==null);var rt=be.document.elementFromPoint(tt.clientX,tt.clientY)||null;rt!==null&&rt.shadowRoot!==void 0&&rt.shadowRoot!==null&&(rt=rt.shadowRoot.elementFromPoint(tt.clientX,tt.clientY));var at=a,ut=tt;rt&&rt.H&&(ut=tt,at=rt.H),ot.targetDiagram=at,Jd(a,ut,ot),ot.targetObject=null,a.doMouseMove(),jl(ot,tt)}}},a.fk=function(tt){if(a.isEnabled){a.Vk=!0;var ot=tt.pointerType==="touch"||tt.pointerType==="pen",rt=a.Yt;if(ot&&a.qu)delete rt[tt.pointerId],tt.preventDefault();else if(rt=a.oj,rt[0]===null||rt[0].pointerId!==tt.pointerId&&rt[0].pointerType===tt.pointerType)rt[1]!==null&&rt[1].pointerId===tt.pointerId&&(rt[1]=null);else{rt[0]=null,rt=Af(a,tt,!1,!0,!0,!1);var at=be.document.elementFromPoint(tt.clientX,tt.clientY)||null;at!==null&&at.shadowRoot!==void 0&&at.shadowRoot!==null&&(at=at.shadowRoot.elementFromPoint(tt.clientX,tt.clientY)),at!==null&&at.H instanceof de&&at.H!==a&&Jd(at.H,tt,rt),at===null&&(at=tt.target),Jd(a,tt,rt),rt.clickCount=a.yq,rt.targetDiagram=Ef(tt,at),rt.targetObject=null,a.doMouseUp(),jl(rt,tt),ot&&(a.wq=!1)}}},a.ek=function(tt){if(a.isEnabled){a.Vk=!1;var ot=a.Yt;ot[tt.pointerId]&&delete ot[tt.pointerId],ot=a.oj,ot[0]!==null&&ot[0].pointerId===tt.pointerId&&(ot[0]=null),ot[1]!==null&&ot[1].pointerId===tt.pointerId&&(ot[1]=null),tt.pointerType!=="touch"&&tt.pointerType!=="pen"&&(tt=a.currentTool,tt.cancelWaitAfter(),tt.standardMouseOver())}},a.ck=function(tt){var ot=a.oj;ot[0]!==null&&ot[0].pointerId===tt.pointerId?(ot[0]=null,a.wq=!1):ot[1]!==null&&ot[1].pointerId===tt.pointerId&&(ot[1]=null)},a.Vp=E.Z["d"+Rc[1]+Rc[2]+"wI"+oc.slice(1,5)]["b"+Tx.slice(1,y)](E.Z,zc,y,y),E.Vc(!0),tv(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}de.prototype.addEventListener=function(a,y,x,E){a.addEventListener(y,x,{capture:E,passive:!1})},de.prototype.removeEventListener=function(a,y,x,E){a.removeEventListener(y,x,{capture:E})};function tv(a){var y=a.ta.Oa;y instanceof HTMLCanvasElement||(y=a.div),a.addEventListener(y,"pointerdown",a.ui,!1),a.addEventListener(y,"pointermove",a.dk,!1),a.addEventListener(y,"pointerup",a.fk,!1),a.addEventListener(y,"pointerout",a.ek,!1),a.addEventListener(y,"pointercancel",a.ck,!1),a.addEventListener(y,"pointerenter",a.bz,!1),a.addEventListener(y,"pointerleave",a.cz,!1),a.addEventListener(y,"wheel",a.$j,!1),a.addEventListener(y,"keydown",a.Qz,!1),a.addEventListener(y,"keyup",a.Rz,!1),a.addEventListener(y,"blur",a.Ny,!1),a.addEventListener(y,"focus",a.Oy,!1),a.addEventListener(y,"selectstart",function(x){return x.preventDefault(),!1},!1),a.addEventListener(y,"contextmenu",function(x){return x.preventDefault(),!1},!1),a.addEventListener(be,"resize",a.Ov,!1)}function ra(a){30wt&&(this.position=Ot.h(-(y.scrollWidth-this.Aa)+Tt-this.Aa/b+ut,this.position.y))),a.vy&&this.allowVerticalScroll&&(otEt&&(this.position=Ot.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/b+z))),Rt.free(Ot),this.vd=!0,this.Ee=this.qr=!1,E=this.documentBounds,b=this.viewportBounds,ut=E.right,wt=b.right,z=E.bottom,Et=b.bottom,tt=E.x,gt=b.x,ot=E.y,E=b.y,mt>=rt&&tt>=gt&&ut<=wt&&(x.style.width="1px"),St>=at&&ot>=E&&z<=Et&&(x.style.height="1px"))}},de.prototype.computeBounds=function(a){return a===void 0&&(a=new Me),gs(this),Cf(this,a)};function Cf(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,E=a.Wa.s,b=E.length,z=0;zx&&(y=x),ya.maxScale&&(y=a.maxScale),y):y===xd?(y=rt>ot?(tt-a.Db)/E:(z-a.Db)/b,y>x&&(y=x),ya.maxScale&&(y=a.maxScale),y):a.scale}de.prototype.zoomToFit=function(){var a=this.sj;this.sj=Th,this.scale=Xd(this,Va),a!==Th&&(xl(this,!1),Lf(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Ct=de.prototype,Ct.BA=function(a,y){y===void 0&&(y=Va);var x=a.width,E=a.height;if(!(x===0||E===0||isNaN(x)&&isNaN(E))){var b=1;if(y===Va||y===xd)if(isNaN(x))b=this.viewportBounds.height*this.scale/E;else if(isNaN(E))b=this.viewportBounds.width*this.scale/x;else{b=this.Aa;var z=this.ya;b=y===xd?z/E>b/x?(z-(this.Be?this.Db:0))/E:(b-(this.gf?this.Db:0))/x:Math.min(z/E,b/x)}this.scale=b,this.position=new Rt(a.x,a.y)}},Ct.Jy=function(a,y){this.Va();var x=this.documentBounds,E=this.viewportBounds;this.position=new Rt(x.x+(a.x*x.width+a.offsetX)-(y.x*E.width-y.offsetX),x.y+(a.y*x.height+a.offsetY)-(y.y*E.height-y.offsetY))},Ct.zz=function(a){if(a instanceof Xt){this.eq=a;var y=Rt.alloc();this.fq=this.op(a.ga(Vr,y)),Rt.free(y)}else this.eq=null,this.fq=_l};function Lf(a,y,x,E,b,z){var tt=Rt.allocAt(a.pa.x,a.pa.y),ot=tt.x,rt=tt.y;if(a.eq!==null){var at=Rt.alloc();at=a.eq.ga(Vr,at),ot=at.x-a.fq.x/a.scale,rt=at.y-a.fq.y/a.scale,b=Er,Rt.free(at)}(z||a.scrollMode===Th)&&(b.sb()&&(x>y.width&&(ot=y.x+(b.x*y.width+b.offsetX)-(b.x*x-b.offsetX)),E>y.height&&(rt=y.y+(b.y*y.height+b.offsetY)-(b.y*E-b.offsetY))),b=a.rj,z=x-y.width,xy.left?ot=y.left:oty.top?rt=y.top:rty;y++){var x=a.De.iterator;if(x===null||a.De.count===0)break;a.De=new Ke,a.Nv(x,a.De)}a.nodes.each(function(E){E instanceof qn&&E.U&65536&&(E.U=E.U^65536)})}}Ct.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof qn||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof qn&&x.isVisible()&&Ic(this,x);for(a.reset();a.next();)x=a.value,x instanceof Ve&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x));for(a.reset();a.next();)x=a.value,x instanceof Fi&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function Ic(a,y){for(var x=vi(),E=vi(),b=y.memberParts;b.next();){var z=b.value;z.isVisible()&&(z instanceof qn?(Za(z)||Ys(z)||Pd(z))&&Ic(a,z):z instanceof Ve?z.fromNode===y||z.toNode===y?E.push(z):x.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=x.length,b=0;bKt&&(Tt=$e.left,Gt=$e.right),Ot.height>he&&(Wt=$e.top,_t=$e.bottom)):(Tt=$e.left,Gt=$e.right,Wt=$e.top,_t=$e.bottom);var Sn=Ot.width+Tt+Gt,hn=Ot.height+Wt+_t;$e=a.scale;var Ye=Sn>rt/$e,Fe=hn>at/$e;if(!(z||a.gf||a.Be||Ye||Fe))return!0;Tt=Ot.x-Tt,rt=ut.x,Gt=Ot.right+Gt,at=ut.right+tt,Wt=Ot.y-Wt;var Xn=ut.y;Ot=Ot.bottom+_t,ut=ut.bottom+ot;var _n="1px";if(_t="1px",a.scrollMode===Th&&(Ye||Fe)&&(Ye&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Ye=1,Tt+1at+1&&(Ye=Math.max((Gt-at)*$e+a.Aa,Ye)),Kt+tt+1ut+1&&(Ye=Math.max((Ot-ut)*$e+a.ya,Ye)),he+ot+1at+1&&(tt=Math.max((Gt-at)*$e+a.Aa,tt)),Kt+1ut+1&&(ot=Math.max((Ot-ut)*$e+tt,ot)),he+1at+1&&(y=a.position.x*$e)),a.tn)switch(a.bu){case"negative":y=-(wt.scrollWidth-y-wt.clientWidth);break;case"reverse":y=wt.scrollWidth-y-wt.clientWidth}return wt.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(he+1ut+1&&(wt.scrollTop=a.position.y*$e)),rt=a.Aa,at=a.ya,wt.style.width=rt+(a.gf?a.Db:0)+"px",wt.style.height=at+(a.Be?a.Db:0)+"px",x!==rt||E!==at||a.animationManager.zb?(x=Me.allocAt(b,gt,mt,St),a.onViewportBoundsChanged(x,a.viewportBounds,$e,z),Me.free(x),!1):!0}Ct=de.prototype,Ct.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&ie("Cannot add part "+a.toString()+" to "+this.toString()+". It is already a part of "+y.toString()),y=this.Qj(a.layerName),y===null&&(y=this.Qj("")),y===null&&ie('Cannot add a Part when unable find a Layer named "'+a.layerName+'" and there is no default Layer'),a.layer!==y)){var x=y.oi(99999999,a,a.diagram===this);0<=x&&this.cb(mn,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},Ct.oi=function(a){this.partManager.oi(a);var y=this;uc(a,function(x){ec(y,x)}),(a instanceof Fi||a instanceof qn&&a.placeholder!==null)&&a.v(),a.data!==null&&uc(a,function(x){ay(y.partManager,x)}),Ys(a)!==!0&&Pd(a)!==!0||this.De.add(a),O1(a,!0,this),R1(a)?(a.actualBounds.w()&&this.N(cc(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(cc(a,a.actualBounds)),this.$b()},Ct.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&uc(a,function(x){ly(y.partManager,x,y)}),this.De.remove(a),R1(a)?(a.actualBounds.w()&&this.N(cc(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(cc(a,a.actualBounds)),this.$b()},Ct.remove=function(a){Ff(this,a,!0)};function Ff(a,y,x){var E=y.layer;E!==null&&E.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),x&&y.Lj(),x=E.pc(-1,y,!1),0<=x&&a.cb(gi,"parts",E,y,null,x,null),a=y.layerChanged,a!==null&&a(y,E,null))}Ct.Is=function(a,y){if(y===void 0&&(y=!1),an(a))for(var x=a.length,E=0;EE&&this.Ya(),this},Ct.Cy=function(a,y){Bf(this,a,y),a.Xe(this);var x=this.Wa,E=x.indexOf(a);0<=E&&(x.remove(a),this.cc!==null&&this.cb(gi,"layers",this,a,null,E,null));var b=x.count,z;for(z=0;zE&&this.Ya(),this},Ct.kA=function(a){if(a.diagram!==this&&ie("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,x=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var E=y.value,b=E.layerName;b!==a.name?E.layerName=b:E.layerName=""}this.cc!==null&&this.cb(gi,"layers",this,a,null,x,null),this.N(),this.Ya()}}},Ct.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},Ct.Yw=function(a){return this.pf===null&&(this.pf=new Je),this.pf.add(a),this.model.Pe(a),this},Ct.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Ct.Pe=function(a){return this.zg===null&&(this.zg=new Je),this.zg.add(a),this},Ct.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Ct.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==ts&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,E=0;Egt.Pa.indexOf(St)&>.oi(mt,St,wt):(St.isSelected=!1,St.isHighlighted=!1,St.Wb(),gt.pc(wt?mt:-1,St,wt)))}else gt instanceof de?typeof mt=="number"&&St instanceof Xr&&(y?(St.Xe(this),this.Wa.Gb(mt,St)):this.Wa.mb(mt)):ie("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else E!==ts&&ie("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},de.prototype.Ea=function(a){return this.undoManager.Ea(a)},de.prototype.eb=function(a){return this.undoManager.eb(a)},de.prototype.Kf=function(){return this.undoManager.Kf()},de.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var E=!1;try{a(this),E=!0}finally{E?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},de.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},de.prototype.rp=function(){this.partManager.rp()};function If(a,y,x){var E=a.animationManager;if(a.vb||a.ld)a.Ca=x,yu(a),a.N(),a.Ee=!0,E.zb&&(Sl(E)||E.ce.add(E.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,yu(a);else{a.vb=!0;var b=a.viewportBounds.copy(),z=a.Aa,tt=a.ya,ot=a.zoomPoint.x,rt=a.zoomPoint.y,at=a.contentAlignment;isNaN(ot)&&(at.$c()?at.Hf(Ge)?ot=0:at.Hf(Gs)&&(ot=z-1):ot=at.sb()?at.x*(z-1):z/2),isNaN(rt)&&(at.$c()?at.Hf(Fl)?rt=0:at.Hf(Ua)&&(rt=tt-1):rt=at.sb()?at.y*(tt-1):tt/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(x=a.scaleComputation(a,x)),xa.maxScale&&(x=a.maxScale),z=Rt.allocAt(a.pa.x+ot/y-ot/x,a.pa.y+rt/y-rt/x),a.position=z,Rt.free(z),a.Ca=x,yu(a),a.vb=!1,a.onViewportBoundsChanged(b,a.viewportBounds,y,!1),xl(a,!1),E.zb&&(Sl(E)||E.ce.add(E.H,"scale",y,a.Ca))}}de.prototype.onViewportBoundsChanged=function(a,y,x,E){if(!a.D(y)){E===void 0&&(E=!1),E||(this.Ee=!0),this.vd=!0;var b=this.layout;b===null||!b.isViewportSized||this.autoScale!==Is||a.width===y.width&&a.height===y.height||b.C(),b=this.currentTool,this.Vk===!0&&b instanceof mo&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Yd(b,this)),this.vb||this.invalidateViewport(a,y),vu(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.canvasSize.width=Math.round(a.width*x),this.fc.canvasSize.height=Math.round(a.height*x),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=E,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function vu(a,y){var x=a.fe;if(x!==null&&x.visible){for(var E=tn.alloc(),b=1,z=1,tt=x.O.s,ot=tt.length,rt=0;rtut||(pv(at.figure)?z=z*ut/Jt.vx(z,ut):b=b*ut/Jt.vx(b,ut))}if(tt=x.gridCellSize,E.h(z*tt.width,b*tt.height),y!==void 0)b=y.width,z=y.height,a=y.x,tt=y.y;else{if(y=Me.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){Me.free(y);return}b=y.width,z=y.height,a=y.x,tt=y.y,Me.free(y)}x.width=b+2*E.width,x.height=z+2*E.height,y=Rt.alloc(),Jt.No(a,tt,0,0,E.width,E.height,y),y.offset(-E.width,-E.height),tn.free(E),x.part.location=y,Rt.free(y)}}de.prototype.clearSelection=function(a){a===void 0&&(a=!1);var y=this.selection;if(y.count!==0){a||this.R("ChangingSelection",y);for(var x=y.Fa(),E=x.length,b=0;b=E&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||el(z,"Layout")),a.xh=!1;for(var tt=a.ai.iterator;tt.next();)Rf(a,tt.value,y,E);b.isValidLayout||(!y||b.isRealtime||b.isRealtime===null||E===0?(b.doLayout(a),gs(a),b.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,E===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||E!==0&&E!==1||Ah(z),a.aa=x}}}function Rf(a,y,x,E){if(y!==null){for(var b=y.gl.iterator;b.next();)Rf(a,b.value,x,E);b=y.layout,b===null||b.isValidLayout||(!x||b.isRealtime||E===0?(y.rh=!y.location.w(),b.doLayout(y),y.C(32),Ic(a,y),b.isValidLayout=!0):a.xh=!0)}}Ct.yz=function(){for(var a=new Je,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function ev(a){function y(b){var z=b.toLowerCase(),tt=new Je;x.add(b,tt),x.add(z,tt),E.add(b,b),E.add(z,b)}var x=new Vn,E=new Vn;y("InitialAnimationStarting"),y("AnimationStarting"),y("AnimationFinished"),y("BackgroundSingleClicked"),y("BackgroundDoubleClicked"),y("BackgroundContextClicked"),y("ClipboardChanged"),y("ClipboardPasted"),y("DocumentBoundsChanged"),y("ExternalObjectsDropped"),y("GainedFocus"),y("InitialLayoutCompleted"),y("LayoutCompleted"),y("LinkDrawn"),y("LinkRelinked"),y("LinkReshaped"),y("LostFocus"),y("Modified"),y("ObjectSingleClicked"),y("ObjectDoubleClicked"),y("ObjectContextClicked"),y("PartCreated"),y("PartResized"),y("PartRotated"),y("SelectionMoved"),y("SelectionCopied"),y("SelectionDeleting"),y("SelectionDeleted"),y("SelectionGrouped"),y("SelectionUngrouped"),y("ChangingSelection"),y("ChangedSelection"),y("SubGraphCollapsed"),y("SubGraphExpanded"),y("TextEdited"),y("TreeCollapsed"),y("TreeExpanded"),y("ViewportBoundsChanged"),y("InvalidateDraw"),a.iw=x,a.hw=E}function rp(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function Sg(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;ie("Unknown DiagramEvent name: "+y)}Ct.Bj=function(a,y){return a=Sg(this,a),a!==null&&a.add(y),this},Ct.am=function(a,y){a=Sg(this,a),a!==null&&a.remove(y)},Ct.R=function(a,y,x){var E=Sg(this,a),b=new ri;if(b.diagram=this,a=rp(this,a),a!==null&&(b.name=a),y!==void 0&&(b.subject=y),x!==void 0&&(b.parameter=x),y=E.length,y===1)E.M(0)(b);else if(y!==0)for(E=E.Fa(),x=0;x=x.top&&0>=x.left&&0>=x.right&&0>=x.bottom)return y;var E=this.viewportBounds,b=this.scale;E=Me.allocAt(0,0,E.width*b,E.height*b);var z=Rt.allocAt(0,0);if(a.x>=E.x&&a.xE.x+E.width-x.right&&this.allowHorizontalScroll&&(tt=Math.max(this.scrollHorizontalLineChange,1),tt|=0,z.x+=tt,a.x>E.x+E.width-x.right/2&&(z.x+=tt),a.x>E.x+E.width-x.right/4&&(z.x+=4*tt));return a.y>=E.y&&a.yE.y+E.height-x.bottom&&this.allowVerticalScroll&&(tt=Math.max(this.scrollVerticalLineChange,1),tt|=0,z.y+=tt,a.y>E.y+E.height-x.bottom/2&&(z.y+=tt),a.y>E.y+E.height-x.bottom/4&&(z.y+=4*tt)),z.Xa($r)||(y=new Rt(y.x+z.x/b,y.y+z.y/b)),Me.free(E),Rt.free(z),y},Ct=de.prototype,Ct.Cs=function(){return null},Ct.av=function(){return null},Ct.bs=function(a,y){this.pj.add(a,y)},Ct.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof qn&&(y.$p=null)})};function bc(a,y,x){function E(){var ut=+new Date;for(z=!0,tt.reset();tt.next();)if(!tt.value[0].al){z=!1;break}z||ut-at>rt?y(x,b,ot):be.requestAnimationFrame(E)}for(var b=x.callback,z=!0,tt=a.Og.iterator;tt.next();)if(!tt.value[0].al){z=!1;break}if(typeof b!="function"||z)return y(x,b,a);var ot=a,rt=x.callbackTimeout||300,at=+new Date;return be.requestAnimationFrame(function(){E()}),null}Ct.Wz=function(a){return Qo?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Ct.Jx=function(a){return a===void 0&&(a={}),bc(this,this.Xz,a)},Ct.Xz=function(a,y,x){var E=ap(x,a,"canvas",null);if(E===null)return null;x=E.Z.canvas;var b=null;if(x!==null)switch(b=a.returnType,b===void 0?b="string":b=b.toLowerCase(),b){case oc+"data":b=E.getImageData(0,0,x.width,x.height);break;case oc:E=(a.document||document).createElement("img"),E.src=x.toDataURL(a.type,a.details),b=E;break;case"blob":return typeof y!="function"&&ie('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof x.toBlob=="function"?(x.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:b=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(b),null):b};function ap(a,y,x,E){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&ie("properties argument must be an Object.");var b=y.size||null,z=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(z="NaN");var tt=y.maxSize;y.maxSize===void 0&&(tt=x==="SVG"?new tn(1/0,1/0):new tn(2e3,2e3));var ot=y.position||null,rt=y.parts||null,at=y.padding===void 0?1:y.padding,ut=y.background||null,gt=y.omitTemporary;gt===void 0&&(gt=!0);var mt=y.document||document,St=y.elementFinished||null,wt=y.showTemporary;wt===void 0&&(wt=!gt),y=y.showGrid,y===void 0&&(y=wt),b!==null&&isNaN(b.width)&&isNaN(b.height)&&(b=null),typeof at=="number"?at=new ii(at):at instanceof ii||ie("MakeImage padding must be a Margin or a number."),at.left=Math.max(at.left,0),at.right=Math.max(at.right,0),at.top=Math.max(at.top,0),at.bottom=Math.max(at.bottom,0),a.ib.Vc(!0),gt=new Pl(null,mt,void 0,!0);var Et=gt.context;if(!(b||z||rt||ot))return gt.width=a.Aa+Math.ceil(at.left+at.right),gt.height=a.ya+Math.ceil(at.top+at.bottom),x==="SVG"?E===null?null:(E.resize(gt.width,gt.height,gt.width,gt.height),E.ownerDocument=mt,E.hs=St,fg(a,E.context,at,new tn(gt.width,gt.height),a.Ca,a.pa,rt,ut,wt,y),E.context):(a.Xm=!1,fg(a,Et,at,new tn(gt.width,gt.height),a.Ca,a.pa,rt,ut,wt,y),a.Xm=!0,gt.context);var Ot=a.Pp,Tt=a.documentBounds.copy();if(Tt.Fv(a.yb),wt)for(var Gt=a.Wa.s,Wt=Gt.length,_t=0;_tOt?(z=Ot,b=Tt.width,Tt=Tt.height):(b=tt.width,Tt=tt.height)):(b=Tt.width*z,Tt=Tt.height*z):(z=Ot,b=Tt.width,Tt=Tt.height),at!==null?(b+=ot,Tt+=Wt):at=new ii(0),tt!==null&&(Ot=tt.width,tt=tt.height,isNaN(Ot)&&(Ot=2e3),isNaN(tt)&&(tt=2e3),isFinite(Ot)&&(b=Math.min(b,Ot)),isFinite(tt)&&(Tt=Math.min(Tt,tt))),gt.width=Math.ceil(b),gt.height=Math.ceil(Tt),x==="SVG"?E===null?null:(E.resize(gt.width,gt.height,gt.width,gt.height),E.ownerDocument=mt,E.hs=St,fg(a,E.context,at,new tn(Math.ceil(b),Math.ceil(Tt)),z,Gt,rt,ut,wt,y),E.context):(a.Xm=!1,fg(a,Et,at,new tn(Math.ceil(b),Math.ceil(Tt)),z,Gt,rt,ut,wt,y),a.Xm=!0,gt.context)}fe.Object.defineProperties(de.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof ft||(a===""&&(a="default"),a=a.toLowerCase(),a!==this.nl&&(this.nl=a,a==="default"||a==="canvas"?(a=this.pj.get("svg"),a!==null&&a.Oa.remove(),this.ta&&(this.ib=this.ta.context)):a==="svg"?(this.pj.contains("svg")?a=this.pj.get("svg"):(a=new Su(this,be.document),this.bs("svg",a)),this.div!==null&&this.div.appendChild(a.Oa),this.ib=a.context,this.ta&&(this.ta.context.setTransform(this.Mb,0,0,this.Mb,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya))):a!=="debug"||this.pj.contains("SVG")||(a=new Su(this,be.document),this.bs("SVG",a),a.Oa.style.backgroundColor="whitesmoke",this.div!==null&&this.div.after(a.Oa)),this.hk()))}},div:{get:function(){return this.Ka},set:function(a){if(this.Ka!==a){var y=this.Ka;y!==null?(y.H=void 0,y.goDiagram=void 0,y.go=void 0,y.innerHTML="",this.ta!==null&&(y=this.ta.Oa,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.ta.mx()),this.ol&&(this.ol.disconnect(),this.ol=null),y=this.toolManager,y!==null&&(y.mouseDownTools.each(function(x){x.cancelWaitAfter()}),y.mouseMoveTools.each(function(x){x.cancelWaitAfter()}),y.mouseUpTools.each(function(x){x.cancelWaitAfter()})),y.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(be,"resize",this.Ov,!1),this.removeEventListener(be,"wheel",this.$j,!0),Iu===this&&(Iu=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),Pf(this,a),this.hk())}}},$w:{get:function(){return this.Sq}},pi:{get:function(){return this.hf}},draggedLink:{get:function(){return this.nt},set:function(a){this.nt!==a&&(this.nt=a,a!==null&&(this.Vt=a.fromPort,this.Wt=a.toPort))}},Mx:{get:function(){return this.Vt},set:function(a){this.Vt=a}},Nx:{get:function(){return this.Wt},set:function(a){this.Wt=a}},animationManager:{get:function(){return this.Yd}},undoManager:{get:function(){return this.cc.undoManager}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a,this.cc.skipsUndoManager=a}},delaysLayout:{get:function(){return this.lt},set:function(a){this.lt=a}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1a&&Kn(a,">= 0",de,"scrollHorizontalLineChange"),this.iu=a,this.g("scrollHorizontalLineChange",y,a))}},scrollVerticalLineChange:{get:function(){return this.mu},set:function(a){var y=this.mu;y!==a&&(0>a&&Kn(a,">= 0",de,"scrollVerticalLineChange"),this.mu=a,this.g("scrollVerticalLineChange",y,a))}},lastInput:{get:function(){return this.cj},set:function(a){this.cj=a}},previousInput:{get:function(){return this.Qg},set:function(a){this.Qg=a}},firstInput:{get:function(){return this.bq},set:function(a){this.bq=a}},currentCursor:{get:function(){return this.it},set:function(a){if(a===""&&(a=this.Op),this.it!==a){var y=this.ta,x=this.Ka;if(y!==null&&x!==null){this.it=a;var E=y.style.cursor;y.style.cursor=a,x.style.cursor=a,y.style.cursor===E&&(y.style.cursor="-webkit-"+a,x.style.cursor="-webkit-"+a,y.style.cursor===E&&(y.style.cursor="-moz-"+a,x.style.cursor="-moz-"+a,y.style.cursor===E&&(y.style.cursor=a,x.style.cursor=a)))}}}},defaultCursor:{get:function(){return this.Op},set:function(a){a===""&&(a="auto");var y=this.Op;y!==a&&(this.Op=a,this.g("defaultCursor",y,a))}},click:{get:function(){return this.zh},set:function(a){var y=this.zh;y!==a&&(this.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.Fh},set:function(a){var y=this.Fh;y!==a&&(this.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.Bh},set:function(a){var y=this.Bh;y!==a&&(this.Bh=a,this.g("contextClick",y,a))}},mouseOver:{get:function(){return this.Qh},set:function(a){var y=this.Qh;y!==a&&(this.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.Oh},set:function(a){var y=this.Oh;y!==a&&(this.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.Nh},set:function(a){var y=this.Nh;y!==a&&(this.Nh=a,this.g("mouseHold",y,a))}},mouseDragOver:{get:function(){return this.Qt},set:function(a){var y=this.Qt;y!==a&&(this.Qt=a,this.g("mouseDragOver",y,a))}},mouseDrop:{get:function(){return this.Lh},set:function(a){var y=this.Lh;y!==a&&(this.Lh=a,this.g("mouseDrop",y,a))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(a){var y=this.xt;y!==a&&(this.xt=a,this.g("handlesDragDropForTopLevelParts",y,a))}},mouseEnter:{get:function(){return this.Mh},set:function(a){var y=this.Mh;y!==a&&(this.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.Ph},set:function(a){var y=this.Ph;y!==a&&(this.Ph=a,this.g("mouseLeave",y,a))}},toolTip:{get:function(){return this.$h},set:function(a){var y=this.$h;y!==a&&(this.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.Ch},set:function(a){var y=this.Ch;y!==a&&(this.Ch=a,this.g("contextMenu",y,a))}},commandHandler:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a,a.Xe(this))}},toolManager:{get:function(){return this.te},set:function(a){this.te!==a&&(this.te=a,a.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(a){var y=this.ob;y!==a&&(this.ob=a,a.diagram=this,this.currentTool===y&&(this.currentTool=a))}},currentTool:{get:function(){return this.hb},set:function(a){var y=this.hb;y&&(y.isActive&&y.doDeactivate(),y.cancelWaitAfter(),y.doStop()),a===null&&(a=this.defaultTool),a!==null&&(this.hb=a,a.diagram=this,a.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(a){var y=this.Nt;if(y!==a)if(0<=a&&!isNaN(a)){if(this.Nt=a,this.g("maxSelectionCount",y,a),!this.undoManager.isUndoingRedoing&&(a=this.selection.count-a,0= 0",de,"maxSelectionCount")}},nodeSelectionAdornmentTemplate:{get:function(){return this.St},set:function(a){var y=this.St;y!==a&&(this.St=a,this.g("nodeSelectionAdornmentTemplate",y,a))}},groupSelectionAdornmentTemplate:{get:function(){return this.wt},set:function(a){var y=this.wt;y!==a&&(this.wt=a,this.g("groupSelectionAdornmentTemplate",y,a))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kt},set:function(a){var y=this.Kt;y!==a&&(this.Kt=a,this.g("linkSelectionAdornmentTemplate",y,a))}},highlighteds:{get:function(){return this.nw}},isModified:{get:function(){var a=this.undoManager;return a.isEnabled?a.currentTransaction!==null?!0:this.rn&&this.Ce!==a.historyIndex:this.rn},set:function(a){if(this.rn!==a){this.rn=a;var y=this.undoManager;!a&&y.isEnabled&&(this.Ce=y.historyIndex),a||ip(this)}}},model:{get:function(){return this.cc},set:function(a){var y=this.cc;if(y!==a){this.currentTool.doCancel(),y&&y.undoManager!==a.undoManager&&y.undoManager.isInTransaction&&ie("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=wf(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var E=this.vb;this.vb=!0,el(this.animationManager,"Model"),y&&(this.pf!==null&&this.pf.each(function(z){return y.ik(z)}),y.ik(this.Oc)),this.cc=a,this.partManager=bf(this.cc.type);for(var b=0;bthis.scale&&(this.scale=a)):Kn(a,"> 0",de,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(a){var y=this.Mt;y!==a&&(0 0",de,"maxScale"))}},zoomPoint:{get:function(){return this.zu},set:function(a){this.zu.D(a)||(this.zu=a=a.J())}},contentAlignment:{get:function(){return this.zk},set:function(a){var y=this.zk;y.D(a)||(this.zk=a=a.J(),this.g("contentAlignment",y,a),xl(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(a){var y=this.pq;y.D(a)||(this.pq=a=a.J(),this.g("initialContentAlignment",y,a))}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new ii(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.Ya(),this.g("padding",y,a))}},partManager:{get:function(){return this.Pc},set:function(a){var y=this.Pc;y!==a&&(a.diagram!==null&&ie("Cannot share PartManagers between Diagrams: "+a.toString()),y&&y.Xe(null),this.Pc=a,a.Xe(this))}},nodes:{get:function(){return this.partManager.nodes.iterator}},links:{get:function(){return this.partManager.links.iterator}},parts:{get:function(){return this.partManager.parts.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;y!==a&&(this.Sc=a,a.diagram=this,a.group=null,this.xh=!0,this.g("layout",y,a),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(a){var y=this.Ht;if(y!==a&&(this.Ht=a,this.g("isTreePathToChildren",y,a),!this.undoManager.isUndoingRedoing))for(a=this.nodes;a.next();)o0(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==Bh&&a!==xr&&a!==Cg&&ie("Unknown Diagram.treeCollapsePolicy: "+a),this.uu=a,this.g("treeCollapsePolicy",y,a))}},Ue:{get:function(){return this.pw},set:function(a){this.pw=a}},avoidanceCellSize:{get:function(){return this.aw},set:function(a){this.Xh=null,this.aw=new tn(Math.max(1,a.width),Math.max(1,a.height))}},avoidanceLimit:{get:function(){return this.bw},set:function(a){this.bw=Math.max(1,a)}},autoScrollInterval:{get:function(){return this.vp},set:function(a){var y=this.vp;y!==a&&(this.vp=a,this.g("autoScrollInterval",y,a))}},autoScrollRegion:{get:function(){return this.xp},set:function(a){typeof a=="number"&&(a=new ii(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),fe.Object.defineProperties(de,{licenseKey:{get:function(){return _f.jc()},set:function(a){_f.add(a.replace(/\s/g,""))}},version:{get:function(){return ic}}}),de.prototype.makeImageData=de.prototype.Jx,de.prototype.makeImage=de.prototype.Wz,de.prototype.cacheGroupExternalLinks=de.prototype.Fu,de.prototype.addRenderer=de.prototype.bs,de.prototype.makeSVG=de.prototype.av,de.prototype.makeSvg=de.prototype.Cs,de.prototype.stopAutoScroll=de.prototype.ug,de.prototype.doAutoScroll=de.prototype.gs,de.prototype.isUnoccupied=de.prototype.Yj,de.prototype.raiseDiagramEvent=de.prototype.R,de.prototype.removeDiagramListener=de.prototype.am,de.prototype.addDiagramListener=de.prototype.Bj,de.prototype.findTreeRoots=de.prototype.yz,de.prototype.layoutDiagram=de.prototype.Uz,de.prototype.findTopLevelGroups=de.prototype.qz,de.prototype.findTopLevelNodesAndLinks=de.prototype.rz,de.prototype.ensureBounds=de.prototype.Va,de.prototype.findLinksByExample=de.prototype.ls,de.prototype.findNodesByExample=de.prototype.ms,de.prototype.findLinkForData=de.prototype.Kc,de.prototype.findNodeForData=de.prototype.ii,de.prototype.findPartForData=de.prototype.Lc,de.prototype.findLinkForKey=de.prototype.findLinkForKey,de.prototype.findNodeForKey=de.prototype.Vb,de.prototype.findPartForKey=de.prototype.findPartForKey,de.prototype.rebuildParts=de.prototype.Wd,de.prototype.transformViewToDoc=de.prototype.Ps,de.prototype.transformRectDocToView=de.prototype.zA,de.prototype.transformDocToView=de.prototype.op,de.prototype.centerRect=de.prototype.es,de.prototype.scrollToRect=de.prototype.tv,de.prototype.scroll=de.prototype.scroll,de.prototype.highlightCollection=de.prototype.Jz,de.prototype.highlight=de.prototype.Iz,de.prototype.selectCollection=de.prototype.rA,de.prototype.select=de.prototype.select,de.prototype.updateAllRelationshipsFromData=de.prototype.rp,de.prototype.updateAllTargetBindings=de.prototype.updateAllTargetBindings,de.prototype.commit=de.prototype.commit,de.prototype.rollbackTransaction=de.prototype.Kf,de.prototype.commitTransaction=de.prototype.eb,de.prototype.startTransaction=de.prototype.Ea,de.prototype.raiseChanged=de.prototype.g,de.prototype.raiseChangedEvent=de.prototype.cb,de.prototype.removeChangedListener=de.prototype.ik,de.prototype.addChangedListener=de.prototype.Pe,de.prototype.removeModelChangedListener=de.prototype.mA,de.prototype.addModelChangedListener=de.prototype.Yw,de.prototype.findLayer=de.prototype.Qj,de.prototype.removeLayer=de.prototype.kA,de.prototype.addLayerAfter=de.prototype.Cy,de.prototype.addLayerBefore=de.prototype.Ww,de.prototype.addLayer=de.prototype.Al,de.prototype.moveParts=de.prototype.moveParts,de.prototype.copyParts=de.prototype.Kj,de.prototype.removeParts=de.prototype.Is,de.prototype.remove=de.prototype.remove,de.prototype.add=de.prototype.add,de.prototype.clearDelayedGeometries=de.prototype.bx,de.prototype.setProperties=de.prototype.nm,de.prototype.attach=de.prototype.Du,de.prototype.set=de.prototype.set,de.prototype.resetInputOptions=de.prototype.Sx,de.prototype.setInputOption=de.prototype.sA,de.prototype.getInputOption=de.prototype.Ql,de.prototype.resetRenderingHints=de.prototype.Tx,de.prototype.setRenderingHint=de.prototype.Xx,de.prototype.getRenderingHint=de.prototype.Gf,de.prototype.maybeUpdate=de.prototype.bd,de.prototype.requestUpdate=de.prototype.$b,de.prototype.delayInitialization=de.prototype.Xy,de.prototype.isUpdateRequested=de.prototype.Pz,de.prototype.invalidateDocumentBounds=de.prototype.Ya,de.prototype.findObjectsNear=de.prototype.og,de.prototype.findPartsNear=de.prototype.mz,de.prototype.findObjectsIn=de.prototype.Cf,de.prototype.findPartsIn=de.prototype.ux,de.prototype.findObjectsAt=de.prototype.ji,de.prototype.findPartsAt=de.prototype.lz,de.prototype.findObjectAt=de.prototype.ic,de.prototype.findPartAt=de.prototype.Ol,de.prototype.focusObject=de.prototype.zz,de.prototype.alignDocument=de.prototype.Jy,de.prototype.zoomToRect=de.prototype.BA,de.prototype.zoomToFit=de.prototype.zoomToFit,de.prototype.diagramScroll=de.prototype.kx,de.prototype.focus=de.prototype.focus;var Mg=new Vn,lp=null,Qo=be.document!==void 0,nc=null,Sd="",Is=new je(de,"None",0),Va=new je(de,"Uniform",1),xd=new je(de,"UniformToFill",2),jc=new je(de,"CycleAll",10),Hf=new je(de,"CycleNotDirected",11),Uf=new je(de,"CycleNotDirectedFast",12),Wf=new je(de,"CycleNotUndirected",13),Yf=new je(de,"CycleDestinationTree",14),Vf=new je(de,"CycleSourceTree",15),Th=new je(de,"DocumentScroll",1),Oc=new je(de,"InfiniteScroll",2),Bh=new je(de,"TreeParentCollapsed",21),xr=new je(de,"AllParentsCollapsed",22),Cg=new je(de,"AnyParentsCollapsed",23),_f=new Je,ic="2.3.10",oc="image",zc=null,up=!1;function As(){if(Qo){var a=be.document.createElement("canvas"),y=a.getContext("2d"),x=Xe("7ca11abfd022028846");y[x]=Xe("398c3597c01238");for(var E=["5da73c80a36455d7038e4972187c3cae51fd22",An.Dx+"4ae6247590da4bb21c324ba3a84e385776",In.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Jt.za],b=1;5>b;b++)y[Xe("7ca11abfd7330390")](Xe(E[b-1]),10,15*b);for(y[x]=Xe("39f046ebb36e4b"),x=1;5>x;x++)y[Xe("7ca11abfd7330390")](Xe(E[x-1]),10,15*x);(E.length!==4||E[0][0]!=="5"||E[3][0]!=="7")&&(In.prototype.Cd=In.prototype.Eu),zc=a}}de.className="Diagram",de.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=be.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof de?y.H:null},de.inherit=function(a,y){function x(){}if(Object.getPrototypeOf(a).prototype)throw Error(`Used go.Diagram.inherit defining already defined class -`+a);x.prototype=y.prototype,a.prototype=new x,a.prototype.constructor=a},de.useDOM=function(a){Qo=a?be.document!==void 0:!1},de.isUsingDOM=function(){return Qo},de.None=Is,de.Uniform=Va,de.UniformToFill=xd,de.CycleAll=jc,de.CycleNotDirected=Hf,de.CycleNotDirectedFast=Uf,de.CycleNotUndirected=Wf,de.CycleDestinationTree=Yf,de.CycleSourceTree=Vf,de.DocumentScroll=Th,de.InfiniteScroll=Oc,de.TreeParentCollapsed=Bh,de.AllParentsCollapsed=xr,de.AnyParentsCollapsed=Cg;function hp(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function rc(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)t:{y="f";var x=be[Xe("76a715b2f73f148a")][Xe("72ba13b5")]||"";if(a.Rc=!0,Qo){var E=de[Xe("76a115b6ed251eaf4692")];if(E)for(var b=_f.iterator;b.next()&&(E=b.value,E=Xe(E).split(Xe("39e9")),!(6>E.length));){var z=Xe(E[1]).split(".");if(E[4]!=="7da71ca0")break;var tt=Xe(An[Xe("6cae19")]).split(".");if(z[0]>tt[0]||z[0]===tt[0]&&z[1]>=tt[1]){var ot=be[Xe("74a900bae4370f8b51")][Xe("6fbb13a1c2311e8a57")].toLowerCase();if(tt=ot[Xe("73a612b6fb191d")](Xe("3aad1ab6e022098b4dc4")),z=Xe(E[2]),-1tt&&z!==Xe("7da71ca0ad381e90")&&(tt=y[Xe("73a612b6fb191d")](Xe("76a715b2ef3e149757"))),0>tt&&(tt=y[Xe("73a612b6fb191d")](Xe("76a715b2ef3e149757"))),0>tt&&(tt=y[Xe("73a612b6fb191d")](Xe("2bfa41fdb3784bca12"))),0>tt&&(tt=x[Xe("73a612b6fb191d")](Xe("7baa19a6f76c1988428554"))),a.Rc=!(0<=tt&&ttot),!a.Rc)))break;if(z[0]==="#"){tt=be.document.createElement("div");for(var rt=E[0].replace(/[A-Za-z]/g,"");4>rt.length;)rt+="9";if(ot=rt,rt=rt.substr(rt.length-4),E="",E+=["gsh","gsf"][parseInt(rt.substr(0,1),10)%2],E+=["Header","Background","Display","Feedback"][parseInt(rt.substr(0,1),10)%4],tt[Xe("79a417a0f0181a8946")]=E,be.document[Xe("78a712aa")]){be.document[Xe("78a712aa")][Xe("7bb806b6ed32388c4a875b")](tt),rt=be.getComputedStyle(tt).getPropertyValue(Xe("78a704b7e62456904c9b12701b6532a8"));var at=be.getComputedStyle(tt).getPropertyValue(Xe("75b817b0ea2202"));if(be.document[Xe("78a712aa")][Xe("68ad1bbcf533388c4a875b")](tt),rt){if(tt=be[Xe("77a902b0eb1b1e804a8a")],at==="0."+parseInt(ot,10)%100||rt.indexOf(parseInt(z[1]+z[2],16))!==-1&&rt.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(tt&&tt(Xe("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(E="."+E,z=0;zE.updateDelay?E.N():E.o||(E.o=!0,setTimeout(function(){return E.redraw()},E.updateDelay))},x.Of=function(){E.observed!==null&&Nt(E)},x.autoScale=Va,x.vb=!1,y&&Object.assign(x,y),x}pe(ft,de),ft.prototype.computePixelRatio=function(){return 1},ft.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var a=this.ta,y=this.ib;if(a!==null&&y!==null){if($d(this),this.ql===null){var x=new Pl(null);x.width=a.width,x.height=a.height,this.ql=x}try{this.ta=this.ql,this.ib=this.ta.context,this.ib.Vc(!0),this.ib.setTransform(1,0,0,1,0,0),this.ib.clearRect(0,0,this.ta.width,this.ta.height),Pt(this)}finally{this.ta=a,this.ib=y}}}de.prototype.redraw.call(this)},ft.prototype.gc=function(){if(this.Ka===null&&ie("No div specified"),this.ta===null&&ie("No canvas specified"),!(this.ta instanceof Su)&&(bv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){$d(this);var y=this.ta;a=this.ib,a.Vc(!0),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,y.width,y.height),1>this.updateDelay?Pt(this):this.ql!==null&&(a.drawImage(this.ql.Oa,0,0),y=this.Ab,y.reset(),this.scale!==1&&y.scale(this.scale),this.position.x===0&&this.position.y===0||y.translate(-this.position.x,-this.position.y),a.scale(this.Mb,this.Mb),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.yc()),y=this.Wa.s;for(var x=y.length,E=0;Ea&&(a=0),this.ia!==a&&(this.ia=a)}}}),ft.className="Overview";function zt(){xo.call(this),this.j=null}pe(zt,xo),zt.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||!a.allowMove||!a.allowSelect)return!1;var y=a.observed;if(y===null)return!1;var x=a.lastInput;return!x.left||a.currentTool!==this&&(!this.isBeyondDragSize()||x.isTouchEvent&&x.timestamp-a.firstInput.timestampy.maxScale||(y.scale=a))},jt.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==Is?!1:(a=y.scale*a,ay.maxScale?!1:y.allowZoom)},jt.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===Is&&(a=y.scale*a,ay.maxScale||(y.scale=a))},jt.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==Is?!1:(a=y.scale*a,ay.maxScale?!1:y.allowZoom)},jt.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;ay.maxScale||(y.scale=a)},jt.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return ay.maxScale?!1:y.allowZoom},jt.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,E=a.scale;el(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&E===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=xs):(this.Jt=E,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),Ah(y)},jt.prototype.canZoomToFit=function(){return this.diagram.allowZoom},jt.prototype.scrollToPart=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.Va(),a===null){try{this.cg!==null&&(this.cg.next()?a=this.cg.value:this.cg=null)}catch(rt){this.cg=null}a===null&&(0a&&(a+=360)),a},Ct.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Ct.qs=function(a,y){return y===void 0&&(y=new Rt),y.assign(a),this.oe.Cd(y),y},Ct.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Ct.Sj=function(a,y,x,E,b){var z=this.transform,tt=1/(z.m11*z.m22-z.m12*z.m21),ot=z.m22*tt,rt=-z.m12*tt,at=-z.m21*tt,ut=z.m11*tt,gt=tt*(z.m21*z.dy-z.m22*z.dx),mt=tt*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,Jt.Ff(z.left,z.top,z.right,z.bottom,a,y,x,E,b)):(tt=a*ot+y*at+gt,a=a*rt+y*ut+mt,y=x*ot+E*at+gt,x=x*rt+E*ut+mt,b.h(0,0),E=this.naturalBounds,x=Jt.Ff(0,0,E.width,E.height,tt,a,y,x,b),b.transform(z),x)},Xt.prototype.measure=function(a,y,x,E){if(Za(this)!==!1){var b=this.Kg,z=b.right+b.left;b=b.top+b.bottom,a=Math.max(a-z,0),y=Math.max(y-b,0),x=Math.max((x||0)-z,0),E=Math.max((E||0)-b,0),z=this.angle,b=this.desiredSize;var tt=this.kq();z===90||z===270?(a=isFinite(b.height)?b.height+tt:a,y=isFinite(b.width)?b.width+tt:y):(a=isFinite(b.width)?b.width+tt:a,y=isFinite(b.height)?b.height+tt:y),b=x||0,tt=E||0;var ot=this instanceof Ue;switch(aa(this,!0)){case Te:tt=b=0,ot&&(y=a=1/0);break;case Re:isFinite(a)&&a>x&&(b=a),isFinite(y)&&y>E&&(tt=y);break;case Nn:isFinite(a)&&a>x&&(b=a),tt=0,ot&&(y=1/0);break;case Hn:isFinite(y)&&y>E&&(tt=y),b=0,ot&&(a=1/0)}ot=this.maxSize;var rt=this.minSize;b>ot.width&&rt.widthot.height&&rt.heighta.height||this.Cb>a.width))&&(x=!0)),this.l=x?this.l|256:this.l&-257,this.Ib.w()||ie("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Ou(this,!1),Me.free(z)},Ct=Xt.prototype,Ct.eh=function(){};function bs(a,y,x,E,b){if(a.Ib.h(y,x,E,b),!a.desiredSize.w()){var z=a.uc;x=a.Kg,y=x.right+x.left;var tt=x.top+x.bottom;switch(x=z.width+y,z=z.height+tt,E+=y,b+=tt,y=aa(a,!0),x===E&&z===b&&(y=Te),y){case Te:(x>E||z>b)&&(wr(a,!0),a.measure(x>E?E:x,z>b?b:z,0,0));break;case Re:wr(a,!0),a.measure(E,b,0,0);break;case Nn:wr(a,!0),a.measure(E,z,0,0);break;case Hn:wr(a,!0),a.measure(x,b,0,0)}}}Ct.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||zv(x,!0),this.N(),au(a,y)||(x.oh(),this.Pn(x)))},Ct.Pn=function(a){this.portId!==null&&(zv(a,!0),a instanceof en&&W1(a,this))},Ct.gc=function(a,y){if(!ol(this,a,y)&&this.visible){var x=this.opacity;if(x!==0){var E=1;x!==1&&(E=a.globalAlpha,a.globalAlpha=E*x);var b="";this.filter!==""&&(b=a.filter,a.filter=this.filter);var z=this instanceof Ue&&jh(this),tt=this.Ib;if(z){var ot=this.Ib,rt=this.dc,at=this.areaBackground,ut=this.Ma;at===null&&ut===null||a.yc(),at!==null&&(Xo(this,a,at,!0,!0,rt,ot),at instanceof Vi&&at.type===al?(a.beginPath(),a.rect(ot.x,ot.y,ot.width,ot.height),a.ng(at)):a.fillRect(ot.x,ot.y,ot.width,ot.height)),ut!==null&&(Xo(this,a,ut,!0,!1,rt,ot),ut instanceof Vi&&ut.type===al?(a.beginPath(),a.rect(ot.x,ot.y,ot.width,ot.height),a.ng(ut)):a.fillRect(ot.x,ot.y,ot.width,ot.height)),this.hh(a,y)}if(!z&&(z||tt.width!==0&&tt.height!==0&&!isNaN(tt.x)&&!isNaN(tt.y))){z=this.transform,ot=this.panel,this.l&4096&&ns(this),at=this.part,rt=!1;var gt=0;at&&y.Gf("drawShadows")&&(rt=at.isShadowed)&&(ut=at.shadowOffset,gt=Math.max(ut.y,ut.x)*y.scale*y.Mb),ut=this.Dd();var mt;if(!(mt=y.$i||!ut)){var St=this.naturalBounds;mt=this.wh;var wt=mt.m11,Et=mt.m21,Ot=mt.dx,Tt=mt.m12,Gt=mt.m22,Wt=mt.dy,_t,Kt=_t=0;mt=_t*wt+Kt*Et+Ot;var he=_t*Tt+Kt*Gt+Wt;_t=St.width+gt,Kt=0;var $e=_t*wt+Kt*Et+Ot;_t=_t*Tt+Kt*Gt+Wt,Kt=Math.min(mt,$e);var Sn=Math.min(he,_t),hn=Math.max(mt+0,$e)-Kt,Ye=Math.max(he+0,_t)-Sn;mt=Kt,he=Sn,_t=St.width+gt,Kt=St.height+gt,$e=_t*wt+Kt*Et+Ot,_t=_t*Tt+Kt*Gt+Wt,Kt=Math.min(mt,$e),Sn=Math.min(he,_t),hn=Math.max(mt+hn,$e)-Kt,Ye=Math.max(he+Ye,_t)-Sn,mt=Kt,he=Sn,_t=0,Kt=St.height+gt,$e=_t*wt+Kt*Et+Ot,_t=_t*Tt+Kt*Gt+Wt,Kt=Math.min(mt,$e),Sn=Math.min(he,_t),hn=Math.max(mt+hn,$e)-Kt,Ye=Math.max(he+Ye,_t)-Sn,mt=Kt,he=Sn,gt=y.viewportBounds,St=gt.x,wt=gt.y,mt=!(mt>gt.width+St||St>hn+mt||he>gt.height+wt||wt>Ye+he)}if(mt){if(mt=(this.l&256)!==0,a.clipInsteadOfFill&&(mt=!1),this instanceof ao&&(a.font=this.font),mt){if(he=ot.se()?ot.naturalBounds:ot.actualBounds,hn=Math.max(tt.x,he.x),Ye=Math.max(tt.y,he.y),gt=Math.min(tt.right,he.right)-hn,St=Math.min(tt.bottom,he.bottom)-Ye,wt=this.tb,wt!==null&&(hn=wt.x,Ye=wt.y,gt=wt.width,St=wt.height),hn>tt.width+tt.x||tt.x>he.width+he.x){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}a.save(),a.beginPath(),a.rect(hn,Ye,gt,St),a.clip()}if(ut){if(!at.isVisible()){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}rt&&(he=at.shadowOffset,a.Ev(he.x*y.scale*this.scale*y.Mb,he.y*y.scale*this.scale*y.Mb,at.shadowBlur),lh(a),a.shadowColor=at.shadowColor)}rt&&this.shadowVisible===!0?lh(a):rt&&this.shadowVisible===!1&&zu(a),at=this.naturalBounds,this.areaBackground!==null&&(a.yc(),_a(this,a,at,tt)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),rt&&Jr(this,ot)&&this.shadowVisible===null&&zu(a),this.Ma!==null&&(a.yc(),xa(this,a,at,tt)),rt&&(this.Ma!==null||this.areaBackground!==null||Jr(this,ot))?(Ol(this,!0),this.shadowVisible===null&&zu(a)):Ol(this,!1),this.hh(a,y),rt&&this.l&512&&lh(a),ut&&rt&&zu(a),mt&&(a.restore(),a.Vc(this instanceof Ue)),z.ws()||(y=1/(z.m11*z.m22-z.m12*z.m21),a.transform(z.m22*y,-z.m12*y,-z.m21*y,z.m11*y,y*(z.m21*z.dy-z.m22*z.dx),y*(z.m12*z.dx-z.m11*z.dy)))}}x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b)}}};function Jr(a,y){return y===null?!1:(jh(y)&&(y=y.panel),(y.l&512)!==0||(y.type===Ue.Auto||y.type===Ue.Spot)&&y.Pb()!==a)}Ct.Dv=function(){};function _a(a,y,x,E){Xo(a,y,a.areaBackground,!0,!0,x,E),a.areaBackground instanceof Vi&&a.areaBackground.type===al?(y.beginPath(),y.rect(E.x,E.y,E.width,E.height),y.ng(a.areaBackground)):y.fillRect(E.x,E.y,E.width,E.height)}function xa(a,y,x,E){var b=a.kq(),z=x.x,tt=x.y,ot=x.width+b,rt=x.height+b;Xo(a,y,a.Ma,!0,!1,x,E),a.Ma instanceof Vi&&a.Ma.type===al?(y.beginPath(),y.rect(z-b/2,tt-b/2,ot,rt),y.ng(a.Ma)):y.fillRect(z-b/2,tt-b/2,ot,rt)}function Ns(a,y,x){for(var E=y.O.s,b=E.length,z=-1,tt=0;ttb)&&ie("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+b),a.isRow=!0,a.index=b):y.column!==void 0&&(b=y.column,(b==null||b===1/0||isNaN(b)||0>b)&&ie("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+b),a.isRow=!1,a.index=b),b=new mi;for(x in y)x!=="row"&&x!=="column"&&(b[x]=y[x]);qd(a,b)}else qd(a,y);else ie('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function Ih(a,y){Lg.add(a,y)}function dp(a,y,x){x===void 0&&(x=null);var E=a[1];if(typeof x=="function"?x(E):typeof E=="string")return a.splice(1,1),E;if(y===void 0)throw Error("no "+(typeof x=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}fe.Object.defineProperties(Xt.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new Hc),this.A.zp=a)}},localBindings:{get:function(){return this.A!==null?this.A.te:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new Hc),this.A.te=a)}},srcBindings:{get:function(){return this.A!==null?this.A.wm:null},set:function(a){this.srcBindings!==a&&(this.A===null&&(this.A=new Hc),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(oi(this),this.A.Ci=a,this.Uc=!0,this.N(),this.g("shadowVisible",y,a))}},enabledChanged:{get:function(){return this.A!==null?this.A.Hb:null},set:function(a){var y=this.enabledChanged;y!==a&&(oi(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Zs},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new wd),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===Zs&&(this.angle=0))}},segmentIndex:{get:function(){return this.Ua!==null?this.Ua.u:-1/0},set:function(a){a=Math.round(a);var y=this.segmentIndex;y!==a&&(this.Ua===null&&(this.Ua=new wd),this.Ua.u=a,this.v(),this.g("segmentIndex",y,a))}},segmentFraction:{get:function(){return this.Ua!==null?this.Ua.o:0},set:function(a){isNaN(a)||0>a?a=0:1a||1=a&&ie("GraphObject.scale for "+this+" must be greater than zero, not: "+a),this.Ca=a,this.v(),this.g("scale",y,a))}},angle:{get:function(){return this.Kb},set:function(a){var y=this.Kb;y!==a&&(a%=360,0>a&&(a+=360),y!==a&&(this.Kb=a,Zy(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,E=this.jd,b=E.width,z=E.height;(b===y||isNaN(b)&&isNaN(y))&&(z===x||isNaN(z)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof ni&&this.qc(),this.g("desiredSize",E,a),rs(this)&&(a=this.part,a!==null&&(vo(this,a,"width"),vo(this,a,"height"))))}},width:{get:function(){return this.jd.width},set:function(a){var y=this.jd.width;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new tn(a,this.jd.height).freeze(),this.v(),this instanceof ni&&this.qc(),this.g("desiredSize",y,a),rs(this)&&(a=this.part,a!==null&&vo(this,a,"width")))}},height:{get:function(){return this.jd.height},set:function(a){var y=this.jd.height;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new tn(this.jd.width,a).freeze(),this.v(),this instanceof ni&&this.qc(),this.g("desiredSize",y,a),rs(this)&&(a=this.part,a!==null&&vo(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:Pi},set:function(a){var y=this.minSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=0),isNaN(a.height)&&(a.height=0),a.freeze(),oi(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Rr},set:function(a){var y=this.maxSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=1/0),isNaN(a.height)&&(a.height=1/0),a.freeze(),oi(this),this.A.o=a,this.v(),this.g("maxSize",y,a))}},measuredBounds:{get:function(){return this.uc}},naturalBounds:{get:function(){return this.dc}},margin:{get:function(){return this.Kg},set:function(a){typeof a=="number"&&(a=new ii(a));var y=this.Kg;y.D(a)||(this.Kg=a=a.J(),this.v(),this.g("margin",y,a))}},transform:{get:function(){return this.l&2048&&ns(this),this.Ab}},oe:{get:function(){return this.l&4096&&ns(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(oi(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:Te},set:function(a){this.reshapingBehavior!==a&&(oi(this),this.A.Pf=a)}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(a.Mc()&&!a.Xb()&&ie("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),Ws(this),this.g("alignment",y,a))}},column:{get:function(){return this.Ag},set:function(a){a=Math.round(a);var y=this.Ag;y!==a&&(0>a&&Kn(a,">= 0",Xt,"column"),this.Ag=a,this.v(),this.g("column",y,a),this.svg!==null&&this.svg.remove())}},columnSpan:{get:function(){return this.A!==null?this.A.ob:1},set:function(a){a=Math.round(a);var y=this.columnSpan;y!==a&&(1>a&&Kn(a,">= 1",Xt,"columnSpan"),oi(this),this.A.ob=a,this.v(),this.g("columnSpan",y,a))}},row:{get:function(){return this.io},set:function(a){a=Math.round(a);var y=this.io;y!==a&&(0>a&&Kn(a,">= 0",Xt,"row"),this.io=a,this.v(),this.g("row",y,a),this.svg!==null&&this.svg.remove())}},rowSpan:{get:function(){return this.A!==null?this.A.Bi:1},set:function(a){a=Math.round(a);var y=this.rowSpan;y!==a&&(1>a&&Kn(a,">= 1",Xt,"rowSpan"),oi(this),this.A.Bi=a,this.v(),this.g("rowSpan",y,a))}},spanAllocation:{get:function(){return this.A!==null?this.A.Di:null},set:function(a){var y=this.spanAllocation;y!==a&&(oi(this),this.A.Di=a,this.v(),this.g("spanAllocation",y,a))}},alignmentFocus:{get:function(){return this.sk},set:function(a){var y=this.sk;y.D(a)||(this.sk=a=a.J(),this.v(),this.g("alignmentFocus",y,a))}},portId:{get:function(){return this.Yn},set:function(a){var y=this.Yn;if(y!==a){var x=this.part;x===null||x instanceof en||ie("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Uv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,_1(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Er},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),sc(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Kn(a,">= 0",Xt,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),sc(this))}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:0},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.g("toShortLength",y,a),sc(this))}},toLinkable:{get:function(){return this.ba!==null?this.ba.Tr:null},set:function(a){var y=this.toLinkable;y!==a&&(this.Xc(),this.ba.Tr=a,this.g("toLinkable",y,a))}},toMaxLinks:{get:function(){return this.ba!==null?this.ba.Ur:1/0},set:function(a){var y=this.toMaxLinks;y!==a&&(0>a&&Kn(a,">= 0",Xt,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Er},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),sc(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Kn(a,">= 0",Xt,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),sc(this))}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:0},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.g("fromShortLength",y,a),sc(this))}},fromLinkable:{get:function(){return this.ba!==null?this.ba.hq:null},set:function(a){var y=this.fromLinkable;y!==a&&(this.Xc(),this.ba.hq=a,this.g("fromLinkable",y,a))}},fromMaxLinks:{get:function(){return this.ba!==null?this.ba.iq:1/0},set:function(a){var y=this.fromMaxLinks;y!==a&&(0>a&&Kn(a,">= 0",Xt,"fromMaxLinks"),this.Xc(),this.ba.iq=a,this.g("fromMaxLinks",y,a))}},cursor:{get:function(){return this.A!==null?this.A.j:""},set:function(a){var y=this.cursor;y!==a&&(oi(this),this.A.j=a,this.g("cursor",y,a))}},click:{get:function(){return this.A!==null?this.A.zh:null},set:function(a){var y=this.click;y!==a&&(oi(this),this.A.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.A!==null?this.A.Fh:null},set:function(a){var y=this.doubleClick;y!==a&&(oi(this),this.A.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.A!==null?this.A.Bh:null},set:function(a){var y=this.contextClick;y!==a&&(oi(this),this.A.Bh=a,this.g("contextClick",y,a))}},mouseEnter:{get:function(){return this.A!==null?this.A.Mh:null},set:function(a){var y=this.mouseEnter;y!==a&&(oi(this),this.A.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.A!==null?this.A.Ph:null},set:function(a){var y=this.mouseLeave;y!==a&&(oi(this),this.A.Ph=a,this.g("mouseLeave",y,a))}},mouseOver:{get:function(){return this.A!==null?this.A.Qh:null},set:function(a){var y=this.mouseOver;y!==a&&(oi(this),this.A.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.A!==null?this.A.Oh:null},set:function(a){var y=this.mouseHover;y!==a&&(oi(this),this.A.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.A!==null?this.A.Nh:null},set:function(a){var y=this.mouseHold;y!==a&&(oi(this),this.A.Nh=a,this.g("mouseHold",y,a))}},mouseDragEnter:{get:function(){return this.A!==null?this.A.Of:null},set:function(a){var y=this.mouseDragEnter;y!==a&&(oi(this),this.A.Of=a,this.g("mouseDragEnter",y,a))}},mouseDragLeave:{get:function(){return this.A!==null?this.A.Xd:null},set:function(a){var y=this.mouseDragLeave;y!==a&&(oi(this),this.A.Xd=a,this.g("mouseDragLeave",y,a))}},mouseDrop:{get:function(){return this.A!==null?this.A.Lh:null},set:function(a){var y=this.mouseDrop;y!==a&&(oi(this),this.A.Lh=a,this.g("mouseDrop",y,a))}},actionDown:{get:function(){return this.A!==null?this.A.V:null},set:function(a){var y=this.actionDown;y!==a&&(oi(this),this.A.V=a,this.g("actionDown",y,a))}},actionMove:{get:function(){return this.A!==null?this.A.ia:null},set:function(a){var y=this.actionMove;y!==a&&(oi(this),this.A.ia=a,this.g("actionMove",y,a))}},actionUp:{get:function(){return this.A!==null?this.A.Ha:null},set:function(a){var y=this.actionUp;y!==a&&(oi(this),this.A.Ha=a,this.g("actionUp",y,a))}},actionCancel:{get:function(){return this.A!==null?this.A.F:null},set:function(a){var y=this.actionCancel;y!==a&&(oi(this),this.A.F=a,this.g("actionCancel",y,a))}},toolTip:{get:function(){return this.A!==null?this.A.$h:null},set:function(a){var y=this.toolTip;y!==a&&(oi(this),this.A.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.A!==null?this.A.Ch:null},set:function(a){var y=this.contextMenu;y!==a&&(oi(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),Xt.prototype.trigger=Xt.prototype.Jv,Xt.prototype.findBindingPanel=Xt.prototype.ih,Xt.prototype.findTemplateBinder=Xt.prototype.pz,Xt.prototype.setProperties=Xt.prototype.nm,Xt.prototype.apply=Xt.prototype.apply,Xt.prototype.attach=Xt.prototype.Du,Xt.prototype.set=Xt.prototype.set,Xt.prototype.isEnabledObject=Xt.prototype.If,Xt.prototype.isVisibleObject=Xt.prototype.Ed,Xt.prototype.isContainedBy=Xt.prototype.rg,Xt.prototype.getNearestIntersectionPoint=Xt.prototype.rs,Xt.prototype.getLocalPoint=Xt.prototype.qs,Xt.prototype.getDocumentScale=Xt.prototype.Df,Xt.prototype.getDocumentAngle=Xt.prototype.li,Xt.prototype.getDocumentBounds=Xt.prototype.mi,Xt.prototype.getDocumentPoint=Xt.prototype.ga,Xt.prototype.intersectsRect=Xt.prototype.Yc,Xt.prototype.containedInRect=Xt.prototype.fh,Xt.prototype.containsRect=Xt.prototype.Re,Xt.prototype.containsPoint=Xt.prototype.ca,Xt.prototype.raiseChanged=Xt.prototype.g,Xt.prototype.raiseChangedEvent=Xt.prototype.cb,Xt.prototype.addCopyProperty=Xt.prototype.Vw;var Lg=null;Xt.className="GraphObject",Lg=new Vn,Ih("Button",function(){function a(x,E){return x.diagram.ic(x.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b},function(b){return b===E})!==null}var y=sl(Ue,Ue.Auto,{isActionable:!0,enabledChanged:function(x,E){if(x instanceof Ue){var b=x.fb("ButtonBorder");b!==null&&(b.fill=E?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},sl(ni,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new jn(0,0,2.76142374915397,2.761423749153969),spot2:new jn(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,E){if(E.If()&&E instanceof Ue&&(x=E.fb("ButtonBorder"),x instanceof ni)){var b=E._buttonFillOver;E._buttonFillNormal=x.fill,x.fill=b,b=E._buttonStrokeOver,E._buttonStrokeNormal=x.stroke,x.stroke=b}},y.mouseLeave=function(x,E){E.If()&&E instanceof Ue&&(x=E.fb("ButtonBorder"),x instanceof ni&&(x.fill=E._buttonFillNormal,x.stroke=E._buttonStrokeNormal))},y.actionDown=function(x,E){if(E.If()&&E instanceof Ue&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof ni){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var tt=E._buttonFillPressed;E._buttonFillOver=b.fill,b.fill=tt,tt=E._buttonStrokePressed,E._buttonStrokeOver=b.stroke,b.stroke=tt,x.skipsUndoManager=z}}},y.actionUp=function(x,E){if(E.If()&&E instanceof Ue&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof ni){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionCancel=function(x,E){if(E.If()&&E instanceof Ue&&E._buttonFillPressed!==null){var b=E.fb("ButtonBorder");if(b instanceof ni){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionMove=function(x,E){if(E.If()&&E instanceof Ue&&E._buttonFillPressed!==null){var b=x.diagram;if(b.firstInput.button===0&&(b.currentTool.standardMouseOver(),a(x,E)&&(x=E.fb("ButtonBorder"),x instanceof ni))){var z=b.skipsUndoManager;b.skipsUndoManager=!0;var tt=E._buttonFillPressed;x.fill!==tt&&(x.fill=tt),tt=E._buttonStrokePressed,x.stroke!==tt&&(x.stroke=tt),b.skipsUndoManager=z}}},y}),Ih("TreeExpanderButton",function(){var a=sl("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},sl(ni,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:fr},new ar("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new ar("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof Fi&&(x=x.adornedPart),x instanceof en){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isTreeExpanded){if(!E.canCollapseTree(x))return}else if(!E.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?E.collapseTree(x):E.expandTree(x)}}},a}),Ih("SubGraphExpanderButton",function(){var a=sl("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},sl(ni,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:fr},new ar("figure","isSubGraphExpanded",function(y,x){return x=x.panel,y?x._subGraphExpandedFigure:x._subGraphCollapsedFigure}).cp()));return a.click=function(y,x){if(x=x.part,x instanceof Fi&&(x=x.adornedPart),x instanceof qn){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isSubGraphExpanded){if(!E.canCollapseSubGraph(x))return}else if(!E.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?E.collapseSubGraph(x):E.expandSubGraph(x)}}},a}),Ih("ToolTip",function(){return sl(Fi,Ue.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Rt(0,3),shadowBlur:5},sl(ni,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new jn(0,0,4,6),spot2:new jn(1,1,-4,-4)}))}),Ih("ContextMenu",function(){return sl(Fi,Ue.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Rt(0,3),shadowBlur:5},new ar("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),Ih("ContextMenuButton",function(){var a=sl("Button");a.stretch=Nn;var y=a.fb("ButtonBorder");return y instanceof ni&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new jn(0,0,2,3),y.spot2=new jn(1,1,-2,-2)),a}),Ih("PanelExpanderButton",function(a){var y=dp(a,"COLLAPSIBLE"),x=sl("Button",{_buttonExpandedFigure:"M0 0 M0 6 L4 2 8 6 M8 8",_buttonCollapsedFigure:"M0 0 M0 2 L4 6 8 2 M8 8",_buttonFillNormal:"rgba(0, 0, 0, 0)",_buttonStrokeNormal:null,_buttonFillOver:"rgba(0, 0, 0, .2)",_buttonStrokeOver:null,_buttonFillPressed:"rgba(0, 0, 0, .4)",_buttonStrokePressed:null},sl(ni,{name:"ButtonIcon",strokeWidth:2},new ar("geometryString","visible",function(E){return E?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof ni&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(E,b){var z=b.diagram;if(z!==null&&!z.isReadOnly){var tt=b.ih();tt===null&&(tt=b.part),tt!==null&&(b=tt.fb(y),b!==null&&(E.handled=!0,z.Ea("Collapse/Expand Panel"),b.visible=!b.visible,z.eb("Collapse/Expand Panel")))}},x}),Ih("CheckBoxButton",function(a){var y=dp(a);return a=sl("Button",{desiredSize:new tn(14,14)},sl(ni,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Re,geometryStretch:Pn,visible:!1},y!==""?new ar("visible",y).Kx():[])),a.click=function(x,E){if(E instanceof Ue){var b=x.diagram;if(!(b===null||b.isReadOnly||y!==""&&b.model.isReadOnly)){x.handled=!0;var z=E.fb("ButtonIcon");b.Ea("checkbox"),z.visible=!z.visible,typeof E._doClick=="function"&&E._doClick(x,E),b.eb("checkbox")}}},a}),Ih("CheckBox",function(a){a=dp(a),a=sl("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new ii(0,1,0,0)});var y=sl(Ue,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new ii(1),_buttonFillNormal:a._buttonFillNormal,_buttonStrokeNormal:a._buttonStrokeNormal,_buttonFillOver:a._buttonFillOver,_buttonStrokeOver:a._buttonStrokeOver,_buttonFillPressed:a._buttonFillPressed,_buttonStrokePressed:a._buttonStrokePressed,_buttonFillDisabled:a._buttonFillDisabled,mouseEnter:a.mouseEnter,mouseLeave:a.mouseLeave,actionDown:a.actionDown,actionUp:a.actionUp,actionCancel:a.actionCancel,actionMove:a.actionMove,click:a.click,_buttonClick:a.click});return a.mouseEnter=null,a.mouseLeave=null,a.actionDown=null,a.actionUp=null,a.actionCancel=null,a.actionMove=null,a.click=null,y}),Xt.None=Te=new je(Xt,"None",0),Xt.Default=$n=new je(Xt,"Default",0),Xt.Vertical=Hn=new je(Xt,"Vertical",4),Xt.Horizontal=Nn=new je(Xt,"Horizontal",5),Xt.Fill=Re=new je(Xt,"Fill",3),Xt.Uniform=Pn=new je(Xt,"Uniform",1),Xt.UniformToFill=xi=new je(Xt,"UniformToFill",2),Xt.FlipVertical=ai=new je(Xt,"FlipVertical",1),Xt.FlipHorizontal=ki=new je(Xt,"FlipHorizontal",2),Xt.FlipBoth=Xi=new je(Xt,"FlipBoth",3),Xt.make=sl,Xt.getBuilders=function(){var a=new Vn,y;for(y in Lg)if(y!==y.toLowerCase()){var x=Lg.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},Xt.defineBuilder=Ih,Xt.build=function(a,y,x){for(var E=[],b=2;ba&&(a+=360),a!==0){if(this.translate(y,x),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.ha[1]*a+this.ha[3]*E,z=this.ha[0]*-E+this.ha[2]*a,tt=this.ha[1]*-E+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*E,this.ha[1]=b,this.ha[2]=z,this.ha[3]=tt,this.translate(-y,-x)}},ac.className="STransform";function Uc(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}Uc.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},Uc.className="SGradient";function Su(a,y,x){this.ownerDocument=a=y===void 0?be.document:y,this.cA="http://www.w3.org/2000/svg",a!==void 0&&(this.Oa=this.Ud("svg",{width:"1px",height:"1px",viewBox:"0 0 1 1"}),this.style.display="block",this.style.letterSpacing="normal",this.style.wordSpacing="normal",this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink")),this.hs=null,this.context=new Ta(this,x)}Su.prototype.resize=function(a,y,x,E){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=E+"px",this.Oa.setAttributeNS(null,"width",x+"px"),this.Oa.setAttributeNS(null,"height",E+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+x+" "+E),this.context.ww.firstElementChild.setAttributeNS(null,"width",x+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",E+"px"),!0):!1},Su.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),ke(y))for(var E in y)a.setAttributeNS(E==="href"?"http://www.w3.org/1999/xlink":"",E,y[E]);return x!==void 0&&(a.textContent=x),a},Su.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Su.prototype.focus=function(){this.Oa.focus()},Su.prototype.mx=function(){this.ownerDocument=null},fe.Object.defineProperties(Su.prototype,{width:{get:function(){return this.Oa.width.baseVal.value},set:function(a){this.Oa.setAttribute("width",a+"px")}},height:{get:function(){return this.Oa.height.baseVal.value},set:function(a){this.Oa.setAttribute("height",a+"px")}},style:{get:function(){return this.Oa.style}}}),Su.className="SVGSurface";function Ta(a,y){this.Gv=a,this.svg=a.Oa,this.stack=[],this.nh=[],this.fillStyle="#000000",this.font="10px sans-serif",this.globalAlpha=1,this.lineCap="butt",this.lineDashOffset=0,this.lineJoin="miter",this.lineWidth=1,this.miterLimit=10,this.shadowBlur=0,this.shadowColor="rgba(0, 0, 0, 0)",this.shadowOffsetY=this.shadowOffsetX=0,this.Il=!1,this.strokeStyle="#000000",this.textAlign="start",this.clipInsteadOfFill=!1,this.Vg=this.Br=this.Ar=0,this.yd=this.ad=null,this.path=[],this.Yl={},this.Ct=!1,this.Yg=null,this.uj=0,this.rb=new ac,this.j=cp(this),this.Nj=cp(this,"gojs-diagram"),this.Hl=this.ti=null;var x=Fs++,E=this.Ud("clipPath",{id:"mainClip"+x});E.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=E,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(E),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function Qy(a,y,x,E,b,z,tt){a.Nj===void 0?Qf(a,y,x,E,b,z,tt):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+E+", "+b+", "+z+", "+tt+")")}Ct=Ta.prototype,Ct.arc=function(a,y,x,E,b,z,tt,ot){var rt=2*Math.PI,at=rt-1e-6,ut=x*Math.cos(E),gt=x*Math.sin(E),mt=a+ut,St=y+gt,wt=z?0:1;E=z?E-b:b-E,(1e-6E&&(E=E%rt+rt),E>at?(this.path.push(["A",x,x,0,1,wt,a-ut,y-gt]),this.path.push(["A",x,x,0,1,wt,mt,St])):1e-6=Math.PI),wt,a+x*Math.cos(b),y+x*Math.sin(b)])},Ct.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Ct.Se=function(a){this.addPath(this.path,this.rb,a||0)},Ct.bezierCurveTo=function(a,y,x,E,b,z){this.path.push(["C",a,y,x,E,b,z])},Ct.clearRect=function(){},Ct.clip=function(){this.Yl.clipPath=!0},Ct.closePath=function(){this.path.push(["z"])},Ct.createLinearGradient=function(a,y,x,E){var b=new Uc("linear");return b.x1=a,b.y1=y,b.x2=x,b.y2=E,b},Ct.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var x=this.eA;if(x[y])return"url(#"+x[y]+")";var E="PATTERN"+Fs++,b={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:E,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(oc,b)),this.svg.appendChild(a),x[y]=E,"url(#"+E+")"},Ct.createRadialGradient=function(a,y,x,E,b,z){var tt=new Uc("radial");return tt.x1=a,tt.y1=y,tt.r1=x,tt.x2=E,tt.y2=b,tt.r2=z,tt};function Ky(a,y,x,E,b,z,tt,ot,rt){E=ot/E,b=rt/b,z===0&&tt===0||a.rb.translate(z,tt),E===1&&b===1||a.rb.scale(E,b),y===0&&x===0||a.rb.translate(-y,-x)}Ct.drawImage=function(a,y,x,E,b,z,tt,ot,rt){var at="";a instanceof HTMLCanvasElement&&(at=a.toDataURL()),a instanceof HTMLImageElement&&(at=a.getAttribute("src"));var ut=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,E===void 0&&(z=y,tt=x,ot=E=ut,rt=b=a),E=E||0,b=b||0,ot=ot||0,rt=rt||0,Ky(this,y,x,E,b,z||0,tt||0,ot,rt),z={x:0,y:0,width:ut||E,height:a||b,href:at},Jt.$(E,ot)&&Jt.$(b,rt)?at.toLowerCase().indexOf(".svg")===-1&&at.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||E!==ut||b!==a)&&(E+=y,b+=x,z["clip-path"]="path('M "+y+","+x+" L "+E+" "+x+" L "+E+" "+b+" L "+y+" "+b+" z')"),Eg(this,oc,z,this.rb),this.addElement(oc,z)},Ct.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),iv(this,this.Yl)},Ct.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Ct.fillRect=function(a,y,x,E){a=[a,y,x,E],a={x:a[0],y:a[1],width:a[2],height:a[3]},Eg(this,"fill",a,this.rb),this.addElement("rect",a)},Ct.ox=function(a,y,x,E){a={x:a,y,width:x,height:E},Eg(this,"fill",a,this.rb),iv(this,a),this.svg.prepend(this.Ud("rect",a))},Ct.fillText=function(a,y,x){a=[a,y,x],y=this.textAlign,y==="left"?y="start":y==="right"?y="end":y==="center"&&(y="middle"),y={x:a[1],y:a[2],style:"font: "+this.font,"text-anchor":y},Eg(this,"fill",y,this.rb),this.addElement("text",y,a[0])},Ct.lineTo=function(a,y){this.path.push(["L",a,y])},Ct.moveTo=function(a,y){this.path.push(["M",a,y])},Ct.quadraticCurveTo=function(a,y,x,E){this.path.push(["Q",a,y,x,E])},Ct.rect=function(a,y,x,E){this.path.push(["M",a,y],["L",a+x,y],["L",a+x,y+E],["L",a,y+E],["z"])},Ct.restore=function(){this.rb=this.stack.pop(),this.path=this.stack.pop();var a=this.stack.pop();this.fillStyle=a.fillStyle,this.font=a.font,this.globalAlpha=a.globalAlpha,this.lineCap=a.lineCap,this.lineDashOffset=a.lineDashOffset,this.lineJoin=a.lineJoin,this.lineWidth=a.lineWidth,this.miterLimit=a.miterLimit,this.shadowBlur=a.shadowBlur,this.shadowColor=a.shadowColor,this.shadowOffsetX=a.shadowOffsetX,this.shadowOffsetY=a.shadowOffsetY,this.strokeStyle=a.strokeStyle,this.textAlign=a.textAlign,this.bk=a.bk},Ct.save=function(){this.stack.push({fillStyle:this.fillStyle,font:this.font,globalAlpha:this.globalAlpha,lineCap:this.lineCap,lineDashOffset:this.lineDashOffset,lineJoin:this.lineJoin,lineWidth:this.lineWidth,miterLimit:this.miterLimit,shadowBlur:this.shadowBlur,shadowColor:this.shadowColor,shadowOffsetX:this.shadowOffsetX,shadowOffsetY:this.shadowOffsetY,strokeStyle:this.strokeStyle,textAlign:this.textAlign,bk:this.bk});for(var a=[],y=0;yut.offset?1:-1}),b=0;bx?(this.scale(x/a,1),this.translate((a-x)/2,0)):x>a&&(this.scale(1,a/x),this.translate(0,(x-a)/2)),this.Hm?this.clip():this.fill(y),a>x?(this.translate(-(a-x)/2,0),this.scale(1/(x/a),1)):x>a&&(this.translate(0,-(x-a)/2),this.scale(1,1/(a/x)))}else this.Hm?this.clip():this.fill(y)},Ct.jk=function(){this.Hm||this.stroke()},Ct.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Ct.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Ct.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(mx),a.lineDashOffset=0)},Ct.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Ct.Hs=function(){},fe.Object.defineProperties(lc.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(a){this.ct!==a&&(this.ct=this.Z.fillStyle=a)}},font:{get:function(){return this.Z.font},set:function(a){this.dt!==a&&(this.dt=this.Z.font=a)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(a){this.Z.globalAlpha=a}},lineCap:{get:function(){return this.Z.lineCap},set:function(a){this.Z.lineCap=a}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(a){this.Z.lineDashOffset=a}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(a){this.Z.lineJoin=a}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(a){this.Z.lineWidth=a}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(a){this.Z.miterLimit=a}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(a){this.Z.shadowBlur=a}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(a){this.Z.shadowColor=a}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(a){this.Z.shadowOffsetX=a}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(a){this.Z.shadowOffsetY=a}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(a){this.et!==a&&(this.et=this.Z.strokeStyle=a)}},textAlign:{get:function(){return this.Z.textAlign},set:function(a){this.Z.textAlign=a}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(a){this.Z.imageSmoothingEnabled=a}},filter:{get:function(){return this.Z.filter},set:function(a){this.Z.filter=a===""?"none":a}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(a){this.Hm=a}}});var mx=Object.freeze([]);lc.className="CanvasSurfaceContext";function Kf(){this.F=this.o=this.u=this.j=0}Kf.className="ColorNumbers";function Vi(a,y){Dg||(hv(),Dg=!0),Lo(this),this._isFrozen=!1,a===void 0?(this.na=bh,this.xk="black"):typeof a=="string"?(this.na=bh,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===hh?(this.Qd=pa,this.Lk=ia):this.Lk=a===al?this.Qd=zi:this.Qd=Er,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}Vi.prototype.copy=function(){var a=new Vi;return a.na=this.na,a.xk=this.xk,a.Qd=this.Qd.J(),a.Lk=this.Lk.J(),a.Gr=this.Gr,a.Xp=this.Xp,this.we!==null&&(a.we=this.we.copy()),a.cr=this.cr,a},Ct=Vi.prototype,Ct.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Ct.ka=function(){return Object.isFrozen(this)&&ie("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Ct.qb=function(a){a.classType===Vi&&(this.type=a)},Ct.toString=function(){var a="Brush(";if(this.type===bh)a+=this.color;else if(a=this.type===hh?a+"Linear ":this.type===al?a+"Radial ":this.type===Fg?a+"Pattern ":a+"(unknown) ",a+=this.start+" "+this.end,this.colorStops!==null)for(var y=this.colorStops.iterator;y.next();)a+=" "+y.key+":"+y.value;return a+")"},Ct.addColorStop=function(a,y){return this._isFrozen&&yn(this),(typeof a!="number"||!isFinite(a)||1a)&&Kn(a,"0 <= loc <= 1",Vi,"addColorStop:loc"),this.we===null&&(this.we=new Vn),this.we.add(a,y),this.na===bh&&(this.type=hh),this.xe=null,this},Ct.Vz=function(a,y){if(this._isFrozen&&yn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Tg:y,this.type===bh)uh(this.color),this.color=Ng(a,y);else if((this.type===hh||this.type===al)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)uh(x.value),this.addColorStop(x.key,Ng(a,y));return this};function $y(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Tg:x,uh(a),Ng(y,x)}Ct.Wy=function(a,y){if(this._isFrozen&&yn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Tg:y,this.type===bh)uh(this.color),this.color=Ng(-a,y);else if((this.type===hh||this.type===al)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)uh(x.value),this.addColorStop(x.key,Ng(-a,y));return this};function t1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Tg:x,uh(a),Ng(-y,x)}function rv(a,y,x){uh(a),a=uo.j;var E=uo.u,b=uo.o,z=uo.F;return uh(y),x===void 0&&(x=.5),"rgba("+Math.round((uo.j-a)*x+a)+", "+Math.round((uo.u-E)*x+E)+", "+Math.round((uo.o-b)*x+b)+", "+Math.round((uo.F-z)*x+z)+")"}Ct.Gx=function(){if(this.type===bh)return Ag(this.color);if((this.type===hh||this.type===al)&&this.colorStops!==null){var a=this.colorStops;if(this.type===al)return Ag(a.first().value);if(a.get(.5)!==null)return Ag(a.get(.5));if(a.count===2)return a=a.Fa(),Ag(rv(a[0].value,a[1].value));for(var y=a.iterator,x=-1,E=-1,b=1,z=1;y.next();){var tt=y.key,ot=Math.abs(.5-y.key);b>z&&ot=b&&otE&&(z=x,x=E,E=z,z=b),b=E-x,Ag(rv(a.get(x),a.get(E),1-z/b))}return!1};function Ag(a){return a?a instanceof Vi?a.Gx():(uh(a),128>(299*uo.j+587*uo.u+114*uo.o)/1e3):!1}function Ng(a,y){switch(y){case Tg:y=100*av(uo.j);var x=100*av(uo.u),E=100*av(uo.o);return Vs.j=.4124564*y+.3575761*x+.1804375*E,Vs.u=.2126729*y+.7151522*x+.072175*E,Vs.o=.0193339*y+.119192*x+.9503041*E,Vs.F=uo.F,y=uv(Vs.j/kg[0]),x=uv(Vs.u/kg[1]),E=uv(Vs.o/kg[2]),Ru.j=116*x-16,Ru.u=500*(y-x),Ru.o=200*(x-E),Ru.F=Vs.F,Ru.j=Math.min(100,Math.max(0,Ru.j+100*a)),a=(Ru.j+16)/116,y=a-Ru.o/200,Vs.j=kg[0]*e1(Ru.u/500+a),Vs.u=kg[1]*(Ru.j>fp*dv?Math.pow(a,3):Ru.j/fp),Vs.o=kg[2]*e1(y),Vs.F=Ru.F,a=-.969266*Vs.j+1.8760108*Vs.u+.041556*Vs.o,y=.0556434*Vs.j+-.2040259*Vs.u+1.0572252*Vs.o,uo.j=255*lv((3.2404542*Vs.j+-1.5371385*Vs.u+-.4985314*Vs.o)/100),uo.u=255*lv(a/100),uo.o=255*lv(y/100),uo.F=Vs.F,uo.j=Math.round(uo.j),255uo.j&&(uo.j=0),uo.u=Math.round(uo.u),255uo.u&&(uo.u=0),uo.o=Math.round(uo.o),255uo.o&&(uo.o=0),"rgba("+uo.j+", "+uo.u+", "+uo.o+", "+uo.F+")";case n1:return sv(),Qa.o=Math.min(100,Math.max(0,Qa.o+100*a)),"hsla("+Qa.j+", "+Qa.u+"%, "+Qa.o+"%, "+Qa.F+")";default:ie("Unknown color space: "+y)}}function uh(a){Dg||(hv(),Dg=!0);var y=cv;if(y!==null){y.clearRect(0,0,1,1),y.fillStyle="#000000";var x=y.fillStyle;y.fillStyle=a,y.fillStyle!==x?(y.fillRect(0,0,1,1),a=y.getImageData(0,0,1,1).data,uo.j=a[0],uo.u=a[1],uo.o=a[2],uo.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,uo.j=0,uo.u=0,uo.o=0,uo.F=1)}}function sv(){var a=uo.j/255,y=uo.u/255,x=uo.o/255,E=Math.max(a,y,x),b=Math.min(a,y,x),z=E-b;if(b=(E+b)/2,z===0)var tt=a=0;else{switch(E){case a:tt=(y-x)/z%6;break;case y:tt=(x-a)/z+2;break;case x:tt=(a-y)/z+4}tt*=60,0>tt&&(tt+=360),a=z/(1-Math.abs(2*b-1))}Qa.j=Math.round(tt),Qa.u=Math.round(100*a),Qa.o=Math.round(100*b),Qa.F=uo.F}function av(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function lv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function uv(a){return a>dv?Math.pow(a,1/3):(fp*a+16)/116}function e1(a){var y=a*a*a;return y>dv?y:(116*a-16)/fp}function Wc(a,y){typeof a!="string"&&(a instanceof Vi||ie("Value for "+y+" must be a color string or a Brush, not "+a))}function hv(){cv=Qo?new Pl(null,void 0,{willReadFrequently:!0}).context:null}fe.Object.defineProperties(Vi.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&yn(this,a),this.na=a,this.start.Mc()&&(a===hh?this.start=pa:a===al&&(this.start=zi)),this.end.Mc()&&(a===hh?this.end=ia:a===al&&(this.end=zi)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&yn(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&yn(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&yn(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&yn(this,a),0>a&&Kn(a,">= zero",Vi,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&yn(this,a),0>a&&Kn(a,">= zero",Vi,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&yn(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&yn(this,a),this.cr=a,this.xe=null}}}),Vi.prototype.isDark=Vi.prototype.Gx,Vi.prototype.darkenBy=Vi.prototype.Wy,Vi.prototype.lightenBy=Vi.prototype.Vz,Vi.prototype.addColorStop=Vi.prototype.addColorStop;var dv=216/24389,fp=24389/27,kg=[95.047,100,108.883],cv=null,uo=new Kf,Qa=new Kf,Vs=new Kf,Ru=new Kf,Dg=!1;Vi.className="Brush";var bh;Vi.Solid=bh=new je(Vi,"Solid",0);var hh;Vi.Linear=hh=new je(Vi,"Linear",1);var al;Vi.Radial=al=new je(Vi,"Radial",2);var Fg;Vi.Pattern=Fg=new je(Vi,"Pattern",4);var Tg;Vi.Lab=Tg=new je(Vi,"Lab",5);var n1;Vi.HSL=n1=new je(Vi,"HSL",6),Vi.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var x=Math.abs(y-a);y=Math.floor(a+Math.random()*x).toString(16);var E=Math.floor(a+Math.random()*x).toString(16);return a=Math.floor(a+Math.random()*x).toString(16),2>y.length&&(y="0"+y),2>E.length&&(E="0"+E),2>a.length&&(a="0"+a),"#"+y+E+a},Vi.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;Dg||(hv(),Dg=!0);var y=cv;if(y===null)return!0;y.fillStyle="#000000";var x=y.fillStyle;return y.fillStyle=a,y.fillStyle!==x?!0:(y.fillStyle="#FFFFFF",x=y.fillStyle,y.fillStyle=a,y.fillStyle!==x)},Vi.lighten=function(a){return $y(a)},Vi.lightenBy=$y,Vi.darken=function(a){return t1(a)},Vi.darkenBy=t1,Vi.mix=rv,Vi.isDark=Ag;function Nr(){this.xa="Base"}Nr.prototype.measure=function(){},Nr.prototype.Yz=function(a,y,x,E,b){a.measure(y,x,E,b)},Nr.prototype.arrange=function(){},Nr.prototype.Ly=function(a,y,x,E,b,z){a.arrange(y,x,E,b,z)},Nr.prototype.iA=function(a){a.Uj()},Nr.prototype.gc=function(){},fe.Object.defineProperties(Nr.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return Ue}}}),Nr.prototype.remeasureObject=Nr.prototype.iA,Nr.prototype.arrangeElement=Nr.prototype.Ly,Nr.prototype.measureElement=Nr.prototype.Yz,Nr.className="PanelLayout";function pp(){this.xa="Base"}pe(pp,Nr),pp.prototype.measure=function(a,y,x,E,b,z,tt){var ot=E.length;a=dh(a);for(var rt=0;rtSn&&(zr=Math.max(Sn-jd,0));var Wm=Fe.oa===0;Fe.oc=Fe.oc+zr,Fe.actual=Fe.oa+zr,Sn=Math.max(Sn-(zr+(Wm?jd:0)),0)}if(Pa.columnSpan===1&&(zs===Te||zs===Hn)){Fe=a.Eb(Os);var O0=Fe.Wc();zr=Math.max(vc-Fe.actual,0),zr+O0>$e&&(zr=Math.max($e-O0,0));var Gy=Fe.oa===0;Fe.oc=Fe.oc+zr,Fe.actual=Fe.oa+zr,$e=Math.max($e-(zr+(Gy?O0:0)),0)}bd&&Pa.Uj()}}}}}Ci(Gt);var Qu=0,fh=0;z=a.columnCount;for(var ng=0;ng=a.rowCount);Xh++)Fe=a.Fb(qo.row+Xh),zr=0,zr=zs===Re||zs===Hn?Math.max(Fe.minimum,ru[qo.row+Xh]===0?Fe.maximum:Math.min(ru[qo.row+Xh],Fe.maximum)):Math.max(Fe.minimum,isNaN(Fe.Hc)?Fe.maximum:Math.min(Fe.Hc,Fe.maximum)),vh.height+=zr,za+=Fe.minimum;for(var Nl=1;Nl=a.columnCount);Nl++)Fe=a.Eb(qo.column+Nl),zr=0,zr=zs===Re||zs===Nn?Math.max(Fe.minimum,cl[qo.column+Nl]===0?Fe.maximum:Math.min(cl[qo.column+Nl],Fe.maximum)):Math.max(Fe.minimum,isNaN(Fe.Hc)?Fe.maximum:Math.min(Fe.Hc,Fe.maximum)),vh.width+=zr,Zm+=Fe.minimum;os.width+=vh.width,os.height+=vh.height;var uf=qo.margin,Hd=uf.right+uf.left,R0=uf.top+uf.bottom;qo.measure(os.width,os.height,Zm,za);for(var hf=qo.measuredBounds,Lu=Math.max(hf.width+Hd,0),wc=Math.max(hf.height+R0,0),Ud=0,df=0;df=a.rowCount);df++)Fe=a.Fb(qo.row+df),Ud+=Fe.total||0;if(Ud=Jh)&&!(qo.row+yh>=a.rowCount);yh++){Fe=a.Fb(qo.row+yh);var $h=Fe.oa||0,Pc=qh(qo,Fe,Xu);Fe.actual=Math.min(Fe.maximum,$h+Pc),Fe.oa!==$h&&(Jh-=Fe.oa-$h)}for(;0su&&(Fe.actual=Math.min(Fe.maximum,su+Jh),Fe.oa!==su&&(Jh-=Fe.oa-su)),Fe.index===0)break;Fe=a.Fb(Fe.index-1)}}for(var rg=0,td=0;td=a.columnCount);td++)Fe=a.Eb(qo.column+td),rg+=Fe.total||0;if(rg=sg)&&!(qo.column+Mc>=a.columnCount);Mc++){Fe=a.Eb(qo.column+Mc);var G0=Fe.oa||0,Wy=Sh(qo,Fe,Uy);Fe.actual=Math.min(Fe.maximum,G0+Wy),Fe.oa!==G0&&(sg-=Fe.oa-G0)}for(;0Qm&&(Fe.actual=Math.min(Fe.maximum,Qm+sg),Fe.oa!==Qm&&(sg-=Fe.oa-Qm)),Fe.index===0)break;Fe=a.Eb(Fe.index-1)}}}}Ci(Wt),tn.free(vh),tn.free(os),ru!==void 0&&Ci(ru),cl!==void 0&&Ci(cl);var ag=0,lg=0,Km=a.desiredSize,fx=a.maxSize;zs=aa(a,!0);var H0=fh=Qu=0,U0=0;z=a.columnCount;for(var Xm=0;Xm=a.rowCount);Fe++){var Xn=a.Fb(Gt+Fe);Xn.oa!==0&&(Tt.height+=Xn.total)}for(Fe=1;Fe=a.columnCount);Fe++)Xn=a.Eb(_t+Fe),Xn.oa!==0&&(Tt.width+=Xn.total);var _n=Kt.oa+Tt.width,bi=Wt.oa+Tt.height;Fe=ot,Xn=rt;var no=_n,Or=bi,Ur=ot,js=rt,zr=_n,_h=bi;ot+_n>x.width&&(zr=Math.max(x.width-ot,0)),rt+bi>x.height&&(_h=Math.max(x.height-rt,0));var lr=hn.alignment;if(lr.Xb()){lr=a.defaultAlignment,lr.sb()||(lr=zi);var nu=lr.x,Os=lr.y,Zh=lr.offsetX;lr=lr.offsetY;var Ja=Kt.alignment,El=Wt.alignment;Ja.sb()&&(nu=Ja.x,Zh=Ja.offsetX),El.sb()&&(Os=El.y,lr=El.offsetY)}else nu=lr.x,Os=lr.y,Zh=lr.offsetX,lr=lr.offsetY;(isNaN(nu)||isNaN(Os))&&(Os=nu=.5,lr=Zh=0),Ja=Ye.width,El=Ye.height;var ba=hn.margin,Pa=ba.left+ba.right,bd=ba.top+ba.bottom,iu=Jl(hn,Wt,Kt,!1);!isNaN(hn.desiredSize.width)||iu!==Re&&iu!==Nn||(Ja=Math.max(_n-Pa,0)),!isNaN(hn.desiredSize.height)||iu!==Re&&iu!==Hn||(El=Math.max(bi-bd,0)),_n=hn.maxSize,bi=hn.minSize,Ja=Math.min(_n.width,Ja),El=Math.min(_n.height,El),Ja=Math.max(bi.width,Ja),El=Math.max(bi.height,El),_n=El+bd,Fe+=no*nu-(Ja+Pa)*nu+Zh+ba.left,Xn+=Or*Os-_n*Os+lr+ba.top,hn.visible&&(Yr(Ur,js,zr,_h,Fe,Xn,Ye.width,Ye.height)?hn.arrange(Fe,Xn,Ja,El):hn.arrange(Fe,Xn,Ja,El,new Me(Ur,js,zr,_h)))}}}for(tn.free(Tt),a=0;a=x&&(x=1);var E=a.gridCellSize,b=E.width;E=E.height;var z=a.naturalBounds,tt=a.actualBounds,ot=z.width,rt=z.height,at=Math.ceil(ot/b),ut=Math.ceil(rt/E),gt=a.gridOrigin,mt=gt.x;gt=gt.y,y.save(),y.beginPath(),y.rect(0,0,ot,rt),y.clip(),y.Se();for(var St=[],wt=a.O.s,Et=wt.length,Ot=0;OtWt)){Tt=pv(Tt.figure);for(var _t=0;_tWt&&Gt.push(Kt))}}}}for(wt=a.O.s,Et=wt.length,Ot=0;Otb*Tt*x))){if(Wt=he.segmentIndex,(!isFinite(Wt)||isNaN(Wt))&&(Wt=0),0>Wt&&(Wt=Tt-Math.min(-Wt,Tt)),Wt=Math.round(Wt%Tt),Tt=he.opacity,_t=1,Tt!==1){if(Tt===0)continue;_t=y.globalAlpha,y.globalAlpha=_t*Tt}Kt=St[Ot];var $e=!1,Sn=he.strokeDashArray;if(Sn!==null&&($e=!0,y.js(Sn,he.strokeDashOffset)),he.figure==="LineV"&&he.stroke!==null&&0y)return a%y===x;if(a%y!==x)return!1;y=E.length;for(var b=0;bgt)Gt.measure(1/0,1/0,0,0),Wt=Gt.measuredBounds,x.ed(Wt),St.push(Wt);else{var _t=Gt.segmentIndex,Kt=Gt.segmentFraction,he=Gt.alignmentFocus;he.Mc()&&(he=zi);var $e=Gt.segmentOrientation,Sn=Gt.segmentOffset;if(isNaN(_t)){var hn=rt.ua;Wt=vi(),hn.Qu(Kt,Wt);var Ye=Rt.allocAt(Wt[0],Wt[1]);if(Ye.add(rt.i(0)),hn.type===He.j?Ye.offset(-hn.startX,-hn.startY):(hn=hn.figures.first(),hn!==null&&Ye.offset(-hn.startX,-hn.startY)),hn=Wt[2],$e!==Zs){var Fe=rt.computeAngle(Gt,$e,hn);Gt.Kb=Fe}Fe=Ye.x-y.x;var Xn=Ye.y-y.y;Rt.free(Ye),Ci(Wt)}else if(_t<-gt||_t>=gt)Wt=Rt.alloc(),rt.vg(),rt.computeMidPoint(Wt),hn=rt.midAngle,$e!==Zs&&(Fe=rt.computeAngle(Gt,$e,hn),Gt.Kb=Fe),Fe=Wt.x-y.x,Xn=Wt.y-y.y,Rt.free(Wt);else{if(Fe=0,0<=_t?(Xn=ut.M(_t),Wt=_t_n+10?0<=_t?hn.ab(Xn):Xn.ab(hn):_n>Ye+10?0<=_t?Wt.ab(Fe):Fe.ab(Wt):0<=_t?hn.ab(Fe):Fe.ab(hn)}else hn=0<=_t?Xn.ab(Wt):Wt.ab(Xn);$e!==Zs&&(Fe=rt.computeAngle(Gt,$e,hn),Gt.Kb=Fe),Fe=Xn.x+(Wt.x-Xn.x)*Kt-y.x,Xn=Xn.y+(Wt.y-Xn.y)*Kt-y.y}Gt.measure(1/0,1/0,0,0),Wt=Gt.measuredBounds,Ye=Gt.naturalBounds;var bi=0;Gt instanceof ni&&(bi=Gt.strokeWidth),_n=Ye.width+bi;var no=Ye.height+bi;wt.reset(),wt.translate(-Wt.x,-Wt.y),wt.scale(Gt.scale,Gt.scale),wt.rotate($e===Zs?Gt.angle:hn,_n/2,no/2),$e!==u0&&$e!==d0||wt.rotate(90,_n/2,no/2),$e!==h0&&$e!==c0||wt.rotate(-90,_n/2,no/2),$e===em&&(45hn||225hn)&&wt.rotate(-hn,_n/2,no/2),Ye=new Me(0,0,_n,no),Et.xi(Ye,he),wt.Ga(Et),he=-Et.x+bi/2*Gt.scale,Gt=-Et.y+bi/2*Gt.scale,Ot.assign(Sn),bi=isNaN(Sn.x);var Or=isNaN(Sn.y);if(bi||Or){_n=_n/2+3,no=no/2+3;var Ur=45<=hn&&135>=hn,js=225<=hn&&315>=hn;$e===Zs&&(Ur||js)?(Ot.x=Or?_n:Sn.y,Ot.y=bi?no:Sn.x,Ur?0<=_t||isNaN(_t)&&.5>Kt||!bi||(Ot.y=-no):js&&((0<=_t||isNaN(_t)&&.5>Kt)&&bi&&(Ot.y=-no),Or&&(Ot.x=-_n))):(bi&&(Ot.x=0<=_t||isNaN(_t)&&.5>Kt?_n:-_n),Or&&(Ot.y=-no),Ot.rotate(hn))}else Ot.rotate(hn);Fe+=Ot.x,Xn+=Ot.y,Ye.set(Wt),Ye.h(Fe+he,Xn+Gt,Wt.width,Wt.height),St.push(Ye),x.ed(Ye)}}if(tt!==null)for(E=tt.labelNodes;E.next();)E.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),Ts(b,x.width||0,x.height||0),In.free(wt),Rt.free(Et),Rt.free(Ot)}}}},Lp.prototype.arrange=function(a,y){var x=y.length;if(a instanceof Fi||a instanceof Ve){var E=a,b=null;a instanceof Fi&&(b=a,E=b.adornedPart);var z=a instanceof Fi?null:E.path,tt=a.j;if(tt.length!==0){var ot=0;if(z!==null&&ot=x)wt=Rt.alloc(),St=gt,Ot=wt,St.vg(),St.computeMidPoint(Ot),St=gt.midAngle,at!==Zs&&(gt=gt.computeAngle(tt,at,St),tt.angle=gt),gt=wt.x,Ot=wt.y,Rt.free(wt);else{if(Et=0,0<=ot?(wt=y.s[ot],Ot=otGt+10?0<=ot?St.ab(wt):wt.ab(St):Gt>Tt+10?0<=ot?Ot.ab(Et):Et.ab(Ot):0<=ot?St.ab(Et):Et.ab(St)}else St=0<=ot?wt.ab(Ot):Ot.ab(wt);at!==Zs&&(gt=gt.computeAngle(tt,at,St),tt.angle=gt),gt=wt.x+(Ot.x-wt.x)*rt,Ot=wt.y+(Ot.y-wt.y)*rt}if(mt.ys())tt.location=new Rt(gt,Ot);else{mt.Mc()&&(mt=zi),wt=In.alloc(),wt.reset(),wt.scale(tt.scale,tt.scale),wt.rotate(tt.angle,0,0);var Wt=tt.naturalBounds;Et=Me.allocAt(0,0,Wt.width,Wt.height),Tt=Rt.alloc(),Tt.xi(Et,mt),wt.Ga(Tt),mt=-Tt.x,Gt=-Tt.y;var _t=Wt.width,Kt=Wt.height;Wt=Rt.alloc(),Wt.assign(ut);var he=isNaN(ut.x),$e=isNaN(ut.y);if(he||$e){_t=_t/2+3,Kt=Kt/2+3;var Sn=45<=St&&135>=St,hn=225<=St&&315>=St;at===Zs&&(Sn||hn)?(Wt.x=$e?_t:ut.y,Wt.y=he?Kt:ut.x,Sn?0<=ot||isNaN(ot)&&.5>rt||!he||(Wt.y=-Kt):hn&&((0<=ot||isNaN(ot)&&.5>rt)&&he&&(Wt.y=-Kt),$e&&(Wt.x=-_t))):(he&&(Wt.x=0<=ot||isNaN(ot)&&.5>rt?_t:-_t),$e&&(Wt.y=-Kt),Wt.rotate(St))}else Wt.rotate(St);gt+=Wt.x,Ot+=Wt.y,wt.pp(Et),mt+=Et.x,Gt+=Et.y,ot=Rt.allocAt(gt+mt,Ot+Gt),tt.move(ot),Rt.free(ot),Rt.free(Wt),Rt.free(Tt),Me.free(Et),In.free(wt)}}b!==null?b.Ul(!1):E.Ul(!1),E=T1(a),a.location.h(a.position.x+E.x,a.position.y+E.y),Rt.free(E)}};function i1(a,y,x,E){if(Za(E)!==!1){var b=E.strokeWidth;b===0&&a instanceof Fi&&a.type===Ue.Link&&a.adornedObject instanceof ni&&(b=a.adornedObject.strokeWidth),b*=E.Ca,a instanceof Ve&&a.ua!==null?(a=a.geometry.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):a instanceof Fi&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):E.Ge(-(b/2),-(b/2),y+b,x+b),b=E.desiredSize,b.w()||E.ua===null?E.dc.h(0,0,b.width,b.height):E.dc.assign(E.ua.bounds),wr(E,!1)}}function Jf(){this.xa="Base"}pe(Jf,Nr),Jf.prototype.measure=function(a,y,x,E,b,z,tt){var ot=a.Pb();a.graduatedBounds=[];var rt=ot.margin,at=rt.right+rt.left,ut=rt.top+rt.bottom;ot.measure(y,x,z,tt);var gt=ot.measuredBounds,mt=new Me(-rt.left,-rt.top,Math.max(gt.width+at,0),Math.max(gt.height+ut,0));a.graduatedBounds.push(mt),b.assign(mt);for(var St=ot.geometry,wt=ot.strokeWidth,Et=St.flattenedSegments,Ot=St.flattenedLengths,Tt=St.flattenedTotalLength,Gt=Et.length,Wt=0,_t=0,Kt=vi(),he=0;he_n&&(_n+=360),Sn.push(_n)}Wt=Fe,_t=Xn}Kt.push(Sn)}if(a.graduatedIntervals===null){for(var bi=[],no=a.O.s,Or=no.length,Ur=0;Ur_h)){for(var lr=0;lr_h&&zr.push(Os)}}}}}a.graduatedIntervals=bi}var Zh=a.graduatedIntervals,Ja=a.O.s,El=Ja.length,ba=0,Pa=0,bd=Tt;a.graduatedMarks=[];for(var iu,ef=0;efj0*zs*Tt/a.graduatedRange&&ja.graduatedSkip===null)){var eg=Ot[0][0],Pu=0,Ma=0;Pa=Tt*ja.graduatedStart-1e-4,bd=Tt*ja.graduatedEnd+1e-4;var vc=j0*zs,Oa=a.graduatedTickBase;if(Oaa.graduatedMin+vc&&(Oa-=Math.floor((Oa-a.graduatedMin)/vc)*vc);for(var Wm=Zh[ef],O0=Oa,Gy=1e-6*a.graduatedMax,Qu=1;Oa<=a.graduatedMax+Gy;Qu++){t:{for(var fh=Wm.length,ng=0;ng-nf){var zd=!1;break t}}zd=!0}if(zd&&(Oa>a.graduatedMax&&(Oa=a.graduatedMax),ja.graduatedSkip===null||ja instanceof ao&&!ja.graduatedSkip(Oa,ja)||ja instanceof ni&&!ja.graduatedSkip(Oa,ja))&&(ba=(Oa-a.graduatedMin)*Tt/a.graduatedRange,ba>Tt&&(ba=Tt),Pa<=ba&&ba<=bd)){for(var Ku=Kt[Pu][Ma],Qh=Ot[Pu][Ma];Pueg&&Maph&&.4995ph?0ph||.9995ig){var rf=1-Math.abs(.5-ph);Ku=(ou*rf+Cu*(1-rf))%360;break t}}}Ku=ou}if(ja instanceof ao){var Yl="";ja.graduatedFunction!==null?(Yl=ja.graduatedFunction(Oa,ja),Yl=Yl!=null?Yl.toString():""):Yl=(+Oa.toFixed(2)).toString(),Yl!==""&&iu.push({$l:of,angle:Ku,text:Yl})}else iu.push({$l:of,angle:Ku})}Oa=O0+Qu*vc}}}a.graduatedMarks.push(iu)}Ci(Kt);var os=a.graduatedMarks;if(os!==null)for(var z0=E.length,qs=0;qsVl;Vl++){switch(Vl){case 0:La.h(vh,ru);break;case 1:La.h(vh+sf,ru);break;case 2:La.h(vh,ru+xc);break;case 3:La.h(vh+sf,ru+xc)}La.rotate(qo+ur.angle),La.offset(_m,lf),af===0&&Vl===0?cl.h(La.x,La.y,0,0):cl.Ye(La),La.offset(-_m,-lf),La.rotate(-qo-ur.angle)}Rt.free(La),mh.graduatedBounds!==null&&mh.graduatedBounds.push(cl),Ko(Kh,cl.x,cl.y,cl.width,cl.height)}else if(ur instanceof ao){var Al=a,Zm=b;Al.temporaryTextBlock===null&&(Al.temporaryTextBlock=new ao);var za=Al.temporaryTextBlock;y1(za,ur);var Xh=ur.alignmentFocus;Xh.Mc()&&(Xh=pa);for(var Nl=ur.segmentOrientation,uf=ur.segmentOffset,Hd=new Me,R0=0,hf=0,Lu=0,wc=0,Ud=0,df=$s.length,Jh=0;JhLu||225Lu)&&su.rotate(-Lu,$h/2,Pc/2);var rg=Me.allocAt(0,0,$h,Pc),td=Rt.alloc();td.xi(rg,Xh),su.Ga(td);var sg=-td.x,Uy=-td.y,Sh=Rt.alloc();Sh.assign(uf),isNaN(Sh.x)&&(Sh.x=$h/2+3),isNaN(Sh.y)&&(Sh.y=-(Pc/2+3)),Sh.rotate(Lu),R0+=Sh.x+sg,hf+=Sh.y+Uy;var Mc=new Me(R0,hf,qh.width,qh.height),G0=new Me(qh.x,qh.y,qh.width,qh.height),Wy=new Me(yh.x,yh.y,yh.width,yh.height);Xu.Sz=wc,Xu.lineCount=za.lineCount,Xu.lines=[za.Cb,za.Ih,za.df,za.Le,za.Qc,za.Qb,za.ze],Xu.actualBounds=Mc,Xu.measuredBounds=G0,Xu.naturalBounds=Wy,Jh===0?Hd.assign(Mc):Hd.ed(Mc),Rt.free(Sh),Rt.free(td),Me.free(rg),In.free(su)}Al.graduatedBounds!==null&&Al.graduatedBounds.push(Hd),Ko(Zm,Hd.x,Hd.y,Hd.width,Hd.height)}wr(ur,!1)}}},Jf.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var E=a.Pb(),b=a.graduatedMarks;if(b!==null){var z=a.graduatedBounds,tt=0,ot=z[tt];tt++,E!==null&&E.arrange(ot.x-x.x,ot.y-x.y,ot.width,ot.height);for(var rt=y.length,at=0;at=tt&&(tt=1);for(var ot=z.actualBounds,rt=a.O.s,at=a.graduatedMarks,ut=rt.length,gt=0;gta.graduatedTickUnit*mt.interval*z.geometry.flattenedTotalLength/a.graduatedRange*tt&&mt.graduatedSkip===null)){var Et=mt.measuredBounds,Ot=mt.strokeWidth*mt.scale,Tt=mt.alignmentFocus;Tt.Mc()&&(Tt=pa);for(var Gt=0;Gttt.height)continue}else if(at.position>tt.width)continue;var ut=at.separatorStrokeWidth;isNaN(ut)&&(ut=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var gt=at.separatorStroke;if(gt===null&&(gt=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ut!==0&>!==null){Xo(a,y,gt,!1,!1,tt,z),gt=!1;var mt=at.separatorDashArray;mt===null&&(mt=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),mt!==null&&(gt=!0,y.js(mt,0)),y.beginPath(),mt=at.position+ut,x?mt>tt.height&&(ut-=mt-tt.height):mt>tt.width&&(ut-=mt-tt.width),at=at.position+ut/2,y.lineWidth=ut,ut=a.yb,x?(at+=ut.top,mt=tt.width-ut.right,y.moveTo(ut.left,at),y.lineTo(mt,at)):(at+=ut.left,mt=tt.height-ut.bottom,y.moveTo(at,ut.top),y.lineTo(at,mt)),y.stroke(),y.Se(),gt&&y.fs()}}}}function Ep(a,y,x,E,b){for(var z=E.length,tt=a.actualBounds,ot=a.naturalBounds,rt=r1(a,!0),at=r1(a,!1),ut=0;utmt)){var St=gt.Wc(),wt=gt.separatorStrokeWidth;isNaN(wt)&&(wt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Et=gt.separatorStroke;Et===null&&(Et=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Et===null||gt.index===(x?rt:at))&&(wt=0),St-=wt,wt=gt.position+wt,St+=gt.actual,wt+St>mt&&(St=mt-wt),0>=St||(mt=a.yb,Xo(a,y,gt.background,!0,!1,ot,tt),x?y.fillRect(mt.left,wt+mt.top,tt.width-(mt.left+mt.right),St):y.fillRect(wt+mt.left,mt.top,St,tt.height-(mt.top+mt.bottom)))}}}}function r1(a,y){for(var x=y?a.rowCount:a.columnCount,E=0;EE&&b.set(wt),Rt.free(wt)),Rt.free(ut),z&&b.transform(tt),at},Ct.Gj=function(){for(var a=this.O.s,y=a.length,x=0;xx||z>E)&&(this.v(),this.measure(y>x?x:y,z>E?E:z,0,0));break;case Re:this.v(!0),this.measure(x+ot,E+tt,0,0);break;case Nn:this.v(!0),this.measure(x+ot,z+tt,0,0);break;case Hn:this.v(!0),this.measure(y+ot,E+tt,0,0)}}this.na.arrange(this,b,this.jg)}},Ct.gh=function(a){var y=this.naturalBounds,x=dh(this);if(Yr(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var E=y.length,b=Rt.allocAt(0,0);E--;){var z=y[E];if((z.visible||z===x)&&(tr(b.set(a),z.transform),z.ca(b)))return Rt.free(b),!0}return Rt.free(b),!(this.Ma===null&&this.areaBackground===null)}return!1},Ct.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,E=0;Emt.width||gt.y>mt.height||0>gt.x+gt.width||0>gt.y+gt.height||(gt=ut,ut=ut instanceof Ue?ut:null,mt=In.alloc(),mt.set(tt),(ut!==null?ut.Cf(a,y,x,E,b,mt):jr(gt,a,E,mt))&&(y!==null&&(gt=y(gt)),gt===null||x!==null&&!x(gt)||b.add(gt)),In.free(mt))}}return z===void 0&&In.free(tt),E}return z===void 0&&In.free(tt),!1};function mv(a,y,x,E){for(var b=a.O.s,z=b.length;z--;){var tt=b[z];if(tt.visible){var ot=tt.actualBounds,rt=a.naturalBounds;ot.x>rt.width||ot.y>rt.height||0>ot.x+ot.width||0>ot.y+ot.height||(tt instanceof Ue&&mv(tt,y,x,E),y!==null&&(tt=y(tt)),tt===null||x!==null&&!x(tt)||E.add(tt))}}}Ct.og=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;x===void 0&&(x=null),E===void 0&&(E=null);var tt=this.naturalBounds,ot=this.se(),rt=ot?a:tr(Rt.allocAt(a.x,a.y),this.transform),at=ot?y:tr(Rt.allocAt(y.x,y.y),this.transform),ut=rt.Bf(at),gt=0Ot.width||Et.y>Ot.height||0>Et.x+Et.width||0>Et.y+Et.height))&&(wt.se()?(Et=wt.transform,tr(rt.set(a),Et),tr(at.set(y),Et)):(rt.set(a),at.set(y)),Et=wt,wt=wt instanceof Ue?wt:null,(wt!==null?wt.og(rt,at,x,E,b,z):Et.tx(rt,at,b))&&(x!==null&&(Et=x(Et)),Et===null||E!==null&&!E(Et)||z.add(Et)))}}Rt.free(rt),Rt.free(at)}return b?gt:tt}return!1};function vv(a){var y=null;return a instanceof ni&&(y=a.spot1,y===Dr&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=Vr),y}function yv(a){var y=null;return a instanceof ni&&(y=a.spot2,y===Dr&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=Bs),y}Ct.add=function(a){for(var y=[],x=0;x=b.count&&a>=b.count)return;b.mb(z),E=z}else ie("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>b.count)&&(a=b.count),b.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),Za(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof Ue&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Np(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof en&&(x.Te=!0),x.Te&&x instanceof en&&(x.wc=null),b=this.diagram,b!==null&&b.undoManager.isUndoingRedoing||(E!==-1&&x.cb(gi,"elements",this,y,null,E,null),x.cb(mn,"elements",this,null,y,null,a)))};function Sv(a,y){a.l=y?a.l|16777216:a.l&-16777217}Ct.remove=function(a){for(var y=this.O.s,x=y.length,E=-1,b=0;ba&&Kn(a,">= 0",Ue,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Pr;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(mn,"rowdefs",this,null,x,null,a)}return y[a]},Ct.oA=function(a){if(0>a&&Kn(a,">= 0",Ue,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(gi,"rowdefs",this,x,null,a,null),this.v()}}};function h1(a,y,x){var E=a.rowDefs;if(!(0>y)){if(E[y]=x instanceof Pr?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Ct.Eb=function(a){0>a&&Kn(a,">= 0",Ue,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Pr;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(mn,"coldefs",this,null,x,null,a)}return y[a]},Ct.jA=function(a){if(0>a&&Kn(a,">= 0",Ue,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(gi,"coldefs",this,x,null,a,null),this.v()}}};function d1(a,y,x){var E=a.colDefs;if(!(0>y)){if(E[y]=x instanceof Pr?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Ct.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&kp(y,a),this},Ct.Hy=function(a,y){return(a=this.Fb(a))&&kp(a,new Pr(y)),this},Ct.By=function(a,y){return(a=this.Eb(a))&&kp(a,new Pr(y)),this},Ct.nz=function(a){if(0>a||this.type!==Ue.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,E=x.length,b=this.topIndex;ba||this.type!==Ue.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,E=x.length,b=this.leftIndex;ba;)this.pc(this.O.length-1,!1);g1(this,this.itemArray)};function g1(a,y){var x=qf(a);if(y===null||y.length===0)for(;a.O.length>x;)a.pc(a.O.length-1,!1);else if(a.O.length<=x){x=y.length;for(var E=0;Ex)){var b=wv(a,y);if(b=Pv(a,b),b!==null){if(Ml(b),b=b.copy(),b.l&16777216){var z=a.ih();z!==null&&Sv(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new Vn),a.ge.add(y,b)),z=x+qf(a),a.Gb(z,b),E&&(b.ub=y,xv(a,z,x),b.ub=null),b.data=y}}}function xv(a,y,x){for(a=a.O;ya&&Kn(a,">= 0",Ue,"padding"),a=new ii(a)):(0>a.left&&Kn(a.left,">= 0",Ue,"padding:value.left"),0>a.right&&Kn(a.right,">= 0",Ue,"padding:value.right"),0>a.top&&Kn(a.top,">= 0",Ue,"padding:value.top"),0>a.bottom&&Kn(a.bottom,">= 0",Ue,"padding:value.bottom"));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.v(),this.g("padding",y,a))}},defaultAlignment:{get:function(){return this.Tm},set:function(a){var y=this.Tm;y.D(a)||(this.Tm=a=a.J(),this.v(),this.g("defaultAlignment",y,a))}},defaultStretch:{get:function(){return this.Uf},set:function(a){var y=this.Uf;y!==a&&(this.Uf=a,this.v(),this.g("defaultStretch",y,a))}},defaultSeparatorPadding:{get:function(){return this.T!==null?this.T.Qp:Ha},set:function(a){typeof a=="number"&&(a=new ii(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new ll),this.T.Qp=a,this.v(),this.g("defaultSeparatorPadding",y,a))}},defaultRowSeparatorStroke:{get:function(){return this.T!==null?this.T.ia:null},set:function(a){var y=this.defaultRowSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof Vi)&&(a instanceof Vi&&a.freeze(),this.T===null&&(this.T=new ll),this.T.ia=a,this.N(),this.g("defaultRowSeparatorStroke",y,a))}},defaultRowSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.Ha:1},set:function(a){var y=this.defaultRowSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new ll),this.T.Ha=a,this.v(),this.g("defaultRowSeparatorStrokeWidth",y,a))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(a){var y=this.defaultRowSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;ba)&&ie("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new ll),this.T.Hb=a,this.v(),this.g("topIndex",y,a))}},leftIndex:{get:function(){return this.T!==null?this.T.hb:0},set:function(a){var y=this.leftIndex;y!==a&&((!isFinite(a)||0>a)&&ie("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new ll),this.T.hb=a,this.v(),this.g("leftIndex",y,a))}},data:{get:function(){return this.ub},set:function(a){var y=this.ub;if(y!==a){var x=this instanceof Fn&&!(this instanceof Fi);Ml(this),this.ub=a;var E=this.diagram;E!==null&&(x?(x=E.partManager,this instanceof Ve?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof Fn&&(y!==null&&x.cf.remove(y),a!==null&&x.cf.add(a,this))):(x=this.panel,x!==null&&x.ge!==null&&(y!==null&&x.ge.remove(y),a!==null&&x.ge.add(a,this)))),this.g("data",y,a),E!==null&&E.undoManager.isUndoingRedoing||a!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(a){var y=this.zn;y!==a&&(this.zn=a,this.g("itemIndex",y,a))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new Hc),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&yx(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&ly(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&ay(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||g1(this,a)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(a){if(this.itemTemplateMap===null){if(a===null)return;this.itemTemplateMap=new Vn}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof Fn||a.isPanelMain)&&ie("Panel.itemTemplate must not be a Part or be Panel.isPanelMain: "+a),this.itemTemplateMap.add("",a),this.g("itemTemplate",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv())}},itemTemplateMap:{get:function(){return this.A!==null?this.A.Pc:null},set:function(a){var y=this.itemTemplateMap;if(y!==a){for(var x=a.iterator;x.next(););oi(this),this.A.Pc=a,this.g("itemTemplateMap",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv()}}},itemCategoryProperty:{get:function(){return this.A!==null?this.A.Oc:"category"},set:function(a){var y=this.itemCategoryProperty;y!==a&&(oi(this),this.A.Oc=a,this.g("itemCategoryProperty",y,a))}},isAtomic:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("isAtomic",y,a))}},isClipping:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this instanceof qn&&(this.tb=null),this.v(),this.g("isClipping",y,a))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(a){var y=(this.l&33554432)!==0;y!==a&&(this.l^=33554432,this.v(),this.g("isOpposite",y,a))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;if(y!==a){var x=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",y,a),y=this.diagram,y!==null&&y.undoManager.isUndoingRedoing||x&&Np(this,this,a)}}},alignmentFocusName:{get:function(){return this.$e},set:function(a){var y=this.$e;y!==a&&(this.$e=a,this.v(),this.g("alignmentFocusName",y,a))}}}),fe.Object.defineProperties(Ue,{Position:{get:function(){return zl.I("Position")}},Horizontal:{get:function(){return zl.I("Horizontal")}},Vertical:{get:function(){return zl.I("Vertical")}},Spot:{get:function(){return zl.I("Spot")}},Auto:{get:function(){return zl.I("Auto")}},Table:{get:function(){return zl.I("Table")}},Viewbox:{get:function(){return zl.I("Viewbox")}},TableRow:{get:function(){return zl.I("TableRow")}},TableColumn:{get:function(){return zl.I("TableColumn")}},Link:{get:function(){return zl.I("Link")}},Grid:{get:function(){return zl.I("Grid")}},Graduated:{get:function(){return zl.I("Graduated")}}}),Ue.prototype.rebuildItemElements=Ue.prototype.mv,Ue.prototype.findItemPanelForData=Ue.prototype.sx,Ue.prototype.updateTargetBindings=Ue.prototype.La,Ue.prototype.copyTemplate=Ue.prototype.Uy,Ue.prototype.graduatedValueForPoint=Ue.prototype.Gz,Ue.prototype.graduatedPointForValue=Ue.prototype.Fz,Ue.prototype.findColumnForLocalX=Ue.prototype.fz,Ue.prototype.findRowForLocalY=Ue.prototype.nz,Ue.prototype.addColumnDefinition=Ue.prototype.By,Ue.prototype.addRowDefinition=Ue.prototype.Hy,Ue.prototype.addRowColumnDefinition=Ue.prototype.Gy,Ue.prototype.removeColumnDefinition=Ue.prototype.jA,Ue.prototype.getColumnDefinition=Ue.prototype.Eb,Ue.prototype.removeRowDefinition=Ue.prototype.oA,Ue.prototype.getRowDefinition=Ue.prototype.Fb,Ue.prototype.removeAt=Ue.prototype.mb,Ue.prototype.remove=Ue.prototype.remove,Ue.prototype.insertAt=Ue.prototype.Gb,Ue.prototype.elt=Ue.prototype.M,Ue.prototype.add=Ue.prototype.add,Ue.prototype.findObject=Ue.prototype.fb,Ue.prototype.findInVisualTree=Ue.prototype.Nl,Ue.prototype.walkVisualTreeFrom=Ue.prototype.qm,Ue.prototype.findMainElement=Ue.prototype.Pb;var f1=!1,p1=null,zl=new Vn;Ue.className="Panel",Ue.definePanelLayout=xu,xu("Position",new pp),xu("Vertical",new vp),xu("Auto",new Sp),xu("Link",new Lp);function ch(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}ch.prototype.copy=function(){var a=new ch;return a.lq=this.lq,a.F=this.F,a.ia=this.ia,a.V=this.V,a.u=this.u,a.j=this.j,a.o=this.o,a.Zh=this.Zh,a},ch.className="GradPanelSettings";function ll(){this.Pc=[],this.Oc=[],this.j=this.ob=Fp,this.hb=this.Hb=0,this.Qp=Ha,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}ll.prototype.copy=function(a){for(var y=new ll,x=this.Pc,E=x.length,b=y.Pc,z=0;za&&Kn(a,">= 0",Pr,"height"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("height",y,a))}},width:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&Kn(a,">= 0",Pr,"width"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("width",y,a))}},minimum:{get:function(){return this.jj},set:function(a){var y=this.jj;y!==a&&((0>a||!isFinite(a))&&Kn(a,">= 0",Pr,"minimum"),this.jj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("minimum",y,a))}},maximum:{get:function(){return this.hj},set:function(a){var y=this.hj;y!==a&&(0>a&&Kn(a,">= 0",Pr,"maximum"),this.hj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("maximum",y,a))}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(this.Jb=a.J(),this.panel!==null&&this.panel.v(),this.Ob("alignment",y,a))}},stretch:{get:function(){return this.hg},set:function(a){var y=this.hg;y!==a&&(this.hg=a,this.panel!==null&&this.panel.v(),this.Ob("stretch",y,a))}},separatorPadding:{get:function(){return this.dg},set:function(a){typeof a=="number"&&(a=new ii(a));var y=this.dg;a!==null&&y!==null&&y.D(a)||(a!==null&&(a=a.J()),this.dg=a,this.panel!==null&&this.panel.v(),this.Ob("separatorPadding",y,a))}},separatorStroke:{get:function(){return this.lo},set:function(a){var y=this.lo;y!==a&&(a!==null&&Wc(a,"RowColumnDefinition.separatorStroke"),a instanceof Vi&&a.freeze(),this.lo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",y,a))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(a){var y=this.mo;y!==a&&(this.mo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",y,a))}},separatorDashArray:{get:function(){return this.tj},set:function(a){var y=this.tj;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;bb)){var z=E.measuredBounds,tt=Math.max(1,z.width);z=z.height;for(var ot=x[0],rt=x[1],at,ut,gt,mt,St,wt,Et=0,Ot=vi(),Tt=2;Ttgt&&(gt=1),b=x=gt,at=tt/2,ut=at!==0,Tt=0,wt=Ot[Tt],gt=wt[0],St=wt[1],mt=wt[2],wt=wt[3];for(var Gt=0;.1<=Et;){if(Gt===0&&(ut?(b=x,b-=at,Et-=at,ut=!1):b=x,b===0&&(b=1)),b>Et){Ci(Ot);return}b>wt?(Gt=b-wt,b=wt):Gt=0;var Wt=Math.sqrt(b*b/(1+mt*mt));if(0>gt&&(Wt=-Wt),ot+=Wt,rt+=mt*Wt,a.translate(ot,rt),a.rotate(St),a.translate(-(tt/2),-(z/2)),Gt===0&&E.hh(a,y),a.translate(tt/2,z/2),a.rotate(-St),a.translate(-ot,-rt),Et-=b,wt-=b,Gt!==0){if(Tt++,Tt===Ot.length){Ci(Ot);return}wt=Ot[Tt],gt=wt[0],St=wt[1],mt=wt[2],wt=wt[3],b=Gt}}Ci(Ot)}}Ct.hh=function(a,y){var x=this.xc,E=this.Ui;if(x!==null||E!==null){var b=this.ua;if(b!==null){a.yc();var z=this.actualBounds,tt=this.naturalBounds;E!==null&&Xo(this,a,E,!0,!1,tt,z);var ot=this.part,rt=this.ig;if(x===null||rt!==0||ot===null||!this.isPanelMain&&ot.Pb()!==this||(rt=ot.type===Ue.Link&&ot instanceof Fi&&ot.category==="Selection"&&ot.adornedObject instanceof ni&&ot.adornedPart.Pb()===ot.adornedObject?ot.adornedObject.strokeWidth:0),rt===0&&(x=null),x!==null&&rt!==0&&(Xo(this,a,x,!1,!1,tt,z),a.lineWidth=rt,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,ot&&y.Gf("drawShadows")&&(z=ot.isShadowed),a.Il===!1&&(z=!1),ot=!0,x===null||E!==null&&E!=="transparent"||(ot=!1),tt=!1,rt=this.strokeDashArray,rt!==null&&(tt=!0,a.js(rt,this.strokeDashOffset)),b.type===He.j)a.beginPath(),a.moveTo(b.startX,b.startY),a.lineTo(b.endX,b.endY),x!==null&&a.jk(),a.Se();else if(b.type===He.u){var at=b.startX;rt=b.startY;var ut=b.endX,gt=b.endY;b=Math.min(at,ut);var mt=Math.min(rt,gt);at=Math.abs(ut-at),rt=Math.abs(gt-rt),a.beginPath(),a.rect(b,mt,at,rt),E!==null&&a.ng(E),x!==null&&(ot&&z&&zu(a),a.jk(),ot&&z&&lh(a)),a.Se()}else if(b.type===He.F)at=b.startX,rt=b.startY,ut=b.endX,gt=b.endY,b=Math.abs(ut-at)/2,mt=Math.abs(gt-rt)/2,at=Math.min(at,ut)+b,rt=Math.min(rt,gt)+mt,a.beginPath(),a.moveTo(at,rt-mt),a.bezierCurveTo(at+Jt.wg*b,rt-mt,at+b,rt-Jt.wg*mt,at+b,rt),a.bezierCurveTo(at+b,rt+Jt.wg*mt,at+Jt.wg*b,rt+mt,at,rt+mt),a.bezierCurveTo(at-Jt.wg*b,rt+mt,at-b,rt+Jt.wg*mt,at-b,rt),a.bezierCurveTo(at-b,rt-Jt.wg*mt,at-Jt.wg*b,rt-mt,at,rt-mt),a.closePath(),E!==null&&a.ng(E),x!==null&&(ot&&z&&zu(a),a.jk(),ot&&z&&lh(a)),a.Se();else if(b.type===He.o)for(b=b.figures,rt=b.length,mt=0;mtEt.sweepAngle,St!==null?St.endX:at.startX,St!==null?St.endY:at.startY)}else if(St=_i(Et,at),Ot=St.length,Ot===0)a.lineTo(Et.centerX,Et.centerY);else for(var Tt=0;Tt(x.startX-x.endX)*(a.x-x.endX)+(x.startY-x.endY)*(a.y-x.endY)||0>E)?!1:(Me.free(z),Jt.Yb(x.startX,x.startY,x.endX,x.endY,b,a.x,a.y));if(x.type===He.u){y=x.startX;var tt=x.startY,ot=x.endX;if(x=x.endY,z.x=Math.min(y,ot),z.y=Math.min(tt,x),z.width=Math.abs(ot-y),z.height=Math.abs(x-tt),this.fill===null){if(z.Bc(-E,-E),z.ca(a))return Me.free(z),!1;z.Bc(E,E)}return this.stroke!==null&&z.Bc(b,b),a=z.ca(a),Me.free(z),a}if(x.type===He.F){tt=x.startX,b=x.startY,ot=x.endX;var rt=x.endY;if(x=Math.min(tt,ot),y=Math.min(b,rt),tt=Math.abs(ot-tt)/2,b=Math.abs(rt-b)/2,x=a.x-(x+tt),y=a.y-(y+b),this.fill===null){if(tt-=E,b-=E,0>=tt||0>=b||1>=x*x/(tt*tt)+y*y/(b*b))return Me.free(z),!1;tt+=E,b+=E}return this.stroke!==null&&(tt+=E,b+=E),Me.free(z),0>=tt||0>=b?!1:1>=x*x/(tt*tt)+y*y/(b*b)}if(x.type===He.o)return Me.free(z),this.fill===null?Zr(x,a.x,a.y,b):Jo(x,a,b,1=this.strokeWidth)ut=Jt.Ve(at.startX,at.startY,at.endX,at.endY,z,tt,ot,rt,b);else{if(at.startX===at.endX?(E=gt,ut=0):(y=(at.endY-at.startY)/(at.endX-at.startX),ut=gt/Math.sqrt(1+y*y),E=ut*y),y=vi(),a=new Rt,Jt.Ve(at.startX+E,at.startY+ut,at.endX+E,at.endY+ut,z,tt,ot,rt,a)&&y.push(a),a=new Rt,Jt.Ve(at.startX-E,at.startY-ut,at.endX-E,at.endY-ut,z,tt,ot,rt,a)&&y.push(a),a=new Rt,Jt.Ve(at.startX+E,at.startY+ut,at.startX-E,at.startY-ut,z,tt,ot,rt,a)&&y.push(a),a=new Rt,Jt.Ve(at.endX+E,at.endY+ut,at.endX-E,at.endY-ut,z,tt,ot,rt,a)&&y.push(a),ot=y.length,ot===0)return Ci(y),!1;for(ut=!0,rt=1/0,E=0;EMath.abs(x)){if(rt=tt-ut-x*(z-E),0>a*a*x*x+at*at-rt*rt){b.x=NaN,b.y=NaN,ut=!1;break t}gt=Math.sqrt(a*a*x*x+at*at-rt*rt),ot=(-(a*a*x*rt)+a*at*gt)/(at*at+a*a*x*x)+E,a=(-(a*a*x*rt)-a*at*gt)/(at*at+a*a*x*x)+E,at=x*(ot-E)+rt+ut,rt=x*(a-E)+rt+ut,Math.abs((z-ot)*(z-ot))+Math.abs((tt-at)*(tt-at))ot){b.x=NaN,b.y=NaN,ut=!1;break t}rt=Math.sqrt(ot),ot=ut+rt,rt=ut-rt,Math.abs(ot-tt)Math.abs(wt)?(Et*=.5/wt,wt=.5):Et!==0&&.5>Math.abs(Et)&&(wt*=.5/Et,Et=.5),Tt-=wt,Gt-=Et;St.contains(Tt,Gt);)Tt-=wt,Gt-=Et;for(b.x=ot,b.y=rt,Et=0;Etx?a-x:x-a)<(y>E?y-E:E-y)?(a=ya||Jt.$(rt.y,a))&&(rt.yy||Jt.$(rt.x,y))&&(rt.x=a&&E<=y):(a=E&&x<=a)}Ct.tx=function(a,y,x){function E(Ot,Tt){for(var Gt=Ot.length,Wt=0;Wtb)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var b=a.Bf(y),z=b;if(1.5=b||Ea(y,z,0,-gt)>=b||Ea(y,z,0,gt)>=b||Ea(y,z,ut,0)>=b)}else if(y.type===He.o){if(at=y.bounds,z=at.x,ot=at.y,rt=at.x+at.width,at=at.y+at.height,a.x>rt&&a.xat&&a.yb&&gr(a.x,a.y,z,ot,rt,ot)>b&&gr(a.x,a.y,rt,at,z,at)>b&&gr(a.x,a.y,rt,at,rt,ot)>b)return!1;if(z=Math.sqrt(b),x){if(this.fill===null?Zr(y,a.x,a.y,z):Jo(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;yb)return!1;for(ot=z.segments.s,rt=ot.length,at=0;atb)return!1;break;case Uo:var mt=vi();if(Jt.Qe(tt,ut,gt.point1X,gt.point1Y,gt.point2X,gt.point2Y,gt.endX,gt.endY,.8,mt),tt=E(mt,a),Ci(mt),tt||(tt=gt.endX,ut=gt.endY,a.zd(tt,ut)>b))return!1;break;case Fr:if(mt=vi(),Jt.ep(tt,ut,gt.point1X,gt.point1Y,gt.endX,gt.endY,.8,mt),tt=E(mt,a),Ci(mt),tt||(tt=gt.endX,ut=gt.endY,a.zd(tt,ut)>b))return!1;break;case Bo:case Us:mt=gt.type===Bo?_i(gt,z):zo(gt,z,tt,ut);var St=mt.length;if(St===0){if(tt=gt.type===Bo?gt.centerX:gt.endX,ut=gt.type===Bo?gt.centerY:gt.endY,a.zd(tt,ut)>b)return!1;break}gt=null;for(var wt=vi(),Et=0;Et= 0",ni,"strokeWidth:value")}},strokeCap:{get:function(){return this.Na!==null?this.Na.Hr:"butt"},set:function(a){var y=this.strokeCap;y!==a&&(typeof a!="string"||a!=="butt"&&a!=="round"&&a!=="square"?Kn(a,'"butt", "round", or "square"',ni,"strokeCap"):(hc(this),this.Na.Hr=a,this.N(),this.g("strokeCap",y,a)))}},strokeJoin:{get:function(){return this.Na!==null?this.Na.Ir:"miter"},set:function(a){var y=this.strokeJoin;y!==a&&(typeof a!="string"||a!=="miter"&&a!=="bevel"&&a!=="round"?Kn(a,'"miter", "bevel", or "round"',ni,"strokeJoin"):(hc(this),this.Na.Ir=a,this.N(),this.g("strokeJoin",y,a)))}},strokeMiterLimit:{get:function(){return this.Na!==null?this.Na.Jr:10},set:function(a){var y=this.strokeMiterLimit;if(y!==a&&1<=a){hc(this),this.Na.Jr=a,this.N();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeMiterLimit",y,a)}}},strokeDashArray:{get:function(){return this.Yg},set:function(a){var y=this.Yg;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;ba?a=0:1a?a=0:1(gt*gt+ut*ut)*mt*mt&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof Ta&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,gt=this.spacingBelow,this.flip){case ki:a.translate(b,0),a.scale(-1,1);break;case ai:a.translate(0,z),a.scale(1,-1);break;case Xi:a.translate(b,z),a.scale(-1,-1)}if(a.yc(),ut=this.Gc,mt=(y+tt+gt)*ut,z>mt&&(E=this.verticalAlignment,E=E.y*z-E.y*mt+E.offsetY),ut===1&&this.ze!==null)gt=this.Cb,gt>b&&(gt=b),this.Oj(this.ze,a,0,E+y,b,tt,gt,x,ot,rt,at);else if(this.Qc!==null&&this.Qb!==null)for(mt=0;mtb&&(St=b),E+=y,this.Oj(this.Qb[mt],a,0,E,b,tt,St,x,ot,rt,at),E+=tt+gt}switch(this.flip){case ki:a.scale(-1,1),a.translate(-b,0);break;case ai:a.scale(1,-1),a.translate(0,-z);break;case Xi:a.scale(-1,-1),a.translate(-b,-z)}}},Ct.Oj=function(a,y,x,E,b,z,tt,ot,rt,at,ut){var gt=0;if(ot)rt==="left"?gt=0:rt==="right"?gt=b-tt:rt==="center"&&(gt=(b-tt)/2),y.fillRect(x+gt,E+.25*z,tt,1);else{if(rt==="left"?gt=0:rt==="right"?gt=b:rt==="center"&&(gt=b/2),b=Ip!==null?Ip(this,z):.75*z,y.fillText(a,x+gt,E+b),a=z/20|0,a===0&&(a=1),rt==="right"?gt-=tt:rt==="center"&&(gt-=tt/2),at){ot=bp!==null?bp(this,z):.8*z,rt=x+gt,at=E+ot,b=x+gt+tt,ot=E+ot;var mt=a;y.beginPath(),y.lineWidth=mt,y.moveTo(rt,at),y.lineTo(b,ot),y.stroke(),y.Se(),y instanceof Ta&&y.ad.classList.add("gojs-td")}ut&&(ut=E+z-z/2.2|0,a%2!==0&&(ut+=.5),E=x+gt,z=ut,x=x+gt+tt,tt=ut,gt=a,y.beginPath(),y.lineWidth=gt,y.moveTo(E,z),y.lineTo(x,tt),y.stroke(),y.Se(),y instanceof Ta&&y.ad.classList.add("gojs-td"))}},Ct.kk=function(a,y,x){if(!Xt.prototype.kk.call(this,a,y,x))return!1;if(Xo(this,a,this.xc,!0,!1,this.naturalBounds,this.actualBounds),x){if(this.svg.getElementsByTagName("text").length===0)return!0;for(y=this.svg.getElementsByClassName("gojs-td"),x=0;xa.transactionLevel&&Wi("Ending transaction without having started a transaction: "+x);var E=a.transactionLevel===1,b=a.currentTransaction;E&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,b));var z=0;if(0=E&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),E===0||y.count!==0&&y.get(y.count-1)===b||(y.add(b),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,b);else{a.Fe=!0;try{a.isEnabled&&b!==null&&(b.isComplete=!0,b.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,b),a.Fe=!1}b!==null&&b.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&b!==null){for(a=z,x=b.changes,b=x.count-1;b>=a;b--)y=x.M(b),y!==null&&y.undo(),x.ka(),x.mb(b);x.freeze()}return!1}Ct.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var a=this.history;a.ka();for(var y=a.count-1;y>this.historyIndex;y--){var x=a.M(y);x!==null&&x.clear(),a.mb(y),this.rq=!0}a.freeze()}},ko.prototype.canUndo=function(){if(!this.isEnabled||0=this.transactionLevel&&!this.tt&&(a=a.diagram,a!==null&&a.pi===!1||Wi("Change not within a transaction: "+x.toString()))}},ko.prototype.skipsEvent=function(a){if(a===null||0>a.change.value)return!0;if(a=a.object,a===null)return!1;if(a.layer!==void 0){if(a=a.layer,a!==null&&a.isTemporary)return!0}else if(a.isTemporary)return!0;return!1},fe.Object.defineProperties(ko.prototype,{models:{get:function(){return this.Pt.iterator}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},transactionToUndo:{get:function(){return 0<=this.historyIndex&&this.historyIndex<=this.history.count-1?this.history.M(this.historyIndex):null}},transactionToRedo:{get:function(){return this.historyIndexb||Math.abs(y.y-a.y)>E},fe.Object.defineProperties(si.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof de&&(this.H=a)}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},isActive:{get:function(){return this.nb},set:function(a){this.nb=a}},transactionResult:{get:function(){return this.wm},set:function(a){this.wm=a}}}),si.prototype.startTransaction=si.prototype.Ea,si.className="Tool";function mo(){si.call(this),this.name="ToolManager",this.hb=new Je,this.ob=new Je,this.Hb=new Je,this.F=this.V=850,this.o=new tn(2,2).ja(),this.Ha=5e3,this.ia=Fu,this.u=hu,this.Mp=this.j=null,this.zj=-1}pe(mo,si),mo.prototype.initializeStandardTools=function(){},mo.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof Fi&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},mo.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===tl&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===fl){y.bubbles=!0;return}if(this.gestureBehavior===tl)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,E=0;Eb.right&&(x.x-=E.width+5/y.scale),x.xb.bottom?x.y-(E.height+5/y.scale):x.y+20/y.scale,x.yx.pointsCount)){var E=a.diagram;if(!E.isReadOnly){var b=a.Oe;if(b!==null){var z=null,tt=null;x.fromNode===null&&(z=Kl(a,x.i(0),!1),z!==null&&(tt=z.part));var ot=null,rt=null;x.toNode===null&&(ot=Kl(a,x.i(x.pointsCount-1),!0),ot!==null&&(rt=ot.part)),b.isValidLink(tt,z,rt,ot)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=tt,z!==null&&(x.fromPortId=z.portId),x.toNode=rt,ot!==null&&(x.toPortId=ot.portId),x.fromPort!==E.Mx&&E.R("LinkRelinked",x,E.Mx),x.toPort!==E.Nx&&E.R("LinkRelinked",x,E.Nx)):Cc(b,tt,z,rt,ot):Cc(b,null,null,null,null)}}}}xo.prototype.doDragOver=function(){};function du(a,y){var x=a.diagram;a.dragsLink&&Tu(a,!0),Ms(a);var E=a.findDragOverObject(y),b=x.lastInput;if(b.targetObject=E,E!==null){b.handled=!1;for(var z=E;z!==null;){var tt=z.mouseDrop;if(tt!==null&&(tt(b,z),b.handled))break;cf(a,b,z),z=bl(z)}}else z=x.mouseDrop,z!==null&&z(b);if(a.isActive||Br!==null){for(b=(a.copiedParts||a.draggedParts).iterator;b.next();)z=b.key,z instanceof en&&z.linksConnected.each(function(ot){ot.suspendsRouting=!1});if(a.doDropOnto(y,E),a.isActive||Br!==null){for(a=Me.alloc(),y=x.selection.iterator;y.next();)E=y.value,E instanceof en&&gf(x,E,a);Me.free(a)}}}function cf(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof qn||(x=a.mouseDrop,x!==null&&x(y))}function gf(a,y,x){var E=!1;if(x=y.getAvoidableRect(x),a.viewportBounds.Re(x)&&(E=!0),a=a.Nu(x,function(b){return b.part},function(b){return b instanceof Ve},!0,function(b){return b instanceof Ve},E),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}xo.prototype.doDropOnto=function(){},xo.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;this.simulatedMouseMove(y.event,y.documentPoint,y.targetDiagram)||this.currentPart===null||this.draggedParts===null||(this.mayCopy()?(us(this,!1),vg(a,this.copiedParts),Wa(this,this.copiedParts,!1),vd(a,this.copiedParts)):this.mayMove()?(ma(this),Wa(this,this.draggedParts,!0)):this.mayDragOut()?(us(this,!1),Wa(this,this.copiedParts,!1)):ma(this),Tr(this,a.lastInput.documentPoint))}},xo.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;if(!this.simulatedMouseUp(y.event,y.documentPoint,y.targetDiagram)){y=!1;var x=this.mayCopy();if(x&&this.copiedParts!==null?(ma(this),us(this,!0),vg(a,this.copiedParts),Wa(this,this.copiedParts,!1),vd(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0}))):(y=!0,ma(this),this.mayMove()&&(Wa(this,this.draggedParts,!0),Tr(this,a.lastInput.documentPoint))),this.Ym=!0,du(this,a.lastInput.documentPoint),this.isActive){var E=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&Vd(this),a.Ya(),vd(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",E)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},xo.prototype.simulatedMouseMove=function(a,y,x){if(Br===null)return!1;var E=Br.diagram;x instanceof de||(x=null);var b=Bu;return x!==b&&(b!==null&&b!==E&&(b.ug(),Br.isDragOutStarted=!1,b=b.toolManager.findTool("Dragging"),b!==null&&b.doSimulatedDragLeave()),Bu=x,x!==null&&x!==E&&($u(),b=x.toolManager.findTool("Dragging"),b!==null&&(Il.contains(b)||Il.add(b),b.doSimulatedDragEnter())),this.doUpdateCursor(null)),x===null||x===E||!x.allowDrop||x.isReadOnly||!x.allowInsert?!1:(E=x.toolManager.findTool("Dragging"),E!==null&&(a!==null&&(a.targetTouches!==void 0&&(0tt&&(tt=at),ut>ot&&(ot=ut))}}for(E===1/0?z.h(0,0,0,0):z.h(E,b,tt-E,ot-b),E=z.x+z.width/2,b=z.y+z.height/2,Me.free(z),z=a.Fr,tt=new Vn,ot=Rt.alloc(),rt=y.iterator;rt.next();)at=rt.value,at instanceof Ve&&at.canCopy()&&(ut=x.I(at),ut!==null&&(ut.points=at.points,Gh(ut,z.x-E,z.y-b),ut.suspendsRouting=!0,tt.add(ut,a.Pd())));for(y=y.iterator;y.next();)at=y.value,at.Zc()&&at.canCopy()&&(rt=x.I(at),rt!==null&&(at=at.location,ot.h(z.x-(E-at.x),z.y-(b-at.y)),rt.location=ot,rt.Va(),tt.add(rt,a.Pd(ot))));Rt.free(ot),a.copiedParts=tt,qu(a,tt.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Gh(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}xo.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},xo.prototype.computeMove=function(a,y,x,E){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,E):new Rt},fe.Object.defineProperties(xo.prototype,{isCopyEnabled:{get:function(){return this.ob},set:function(a){this.ob=a}},copiesEffectiveCollection:{get:function(){return this.u},set:function(a){this.u=a}},dragOptions:{get:function(){return this.ia},set:function(a){this.ia=a}},isGridSnapEnabled:{get:function(){return this.dragOptions.isGridSnapEnabled},set:function(a){this.dragOptions.isGridSnapEnabled=a}},isComplexRoutingRealtime:{get:function(){return this.hb},set:function(a){this.hb=a}},isGridSnapRealtime:{get:function(){return this.dragOptions.isGridSnapRealtime},set:function(a){this.dragOptions.isGridSnapRealtime=a}},gridSnapCellSize:{get:function(){return this.dragOptions.gridSnapCellSize},set:function(a){this.dragOptions.gridSnapCellSize.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSize=a)}},gridSnapCellSpot:{get:function(){return this.dragOptions.gridSnapCellSpot},set:function(a){this.dragOptions.gridSnapCellSpot.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSpot=a)}},gridSnapOrigin:{get:function(){return this.dragOptions.gridSnapOrigin},set:function(a){this.dragOptions.gridSnapOrigin.D(a)||(a=a.J(),this.dragOptions.gridSnapOrigin=a)}},dragsLink:{get:function(){return this.dragOptions.dragsLink},set:function(a){this.dragOptions.dragsLink=a}},dragsTree:{get:function(){return this.dragOptions.dragsTree},set:function(a){this.dragOptions.dragsTree=a}},copyCursor:{get:function(){return this.F},set:function(a){this.F=a}},moveCursor:{get:function(){return this.Oc},set:function(a){this.Oc=a}},nodropCursor:{get:function(){return this.Pc},set:function(a){this.Pc=a}},currentPart:{get:function(){return this.V},set:function(a){this.V=a}},copiedParts:{get:function(){return this.o},set:function(a){this.o=a}},draggedParts:{get:function(){return this.Ha},set:function(a){this.Ha=a}},draggingParts:{get:function(){return this.copiedParts!==null?this.copiedParts.Lf():this.draggedParts!==null?this.draggedParts.Lf():this.te}},draggedLink:{get:function(){return this.diagram.draggedLink},set:function(a){this.diagram.draggedLink=a}},isDragOutStarted:{get:function(){return this.Hb},set:function(a){this.Hb=a}},startPoint:{get:function(){return this.Fr},set:function(a){this.Fr.D(a)||this.Fr.assign(a)}},delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}}}),xo.prototype.getDraggingSource=xo.prototype.Az;var Br=null,Bu=null;xo.className="DraggingTool",Il=new Je,Vo("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),mo.prototype.doCancel=function(){Br!==null&&Br.doCancel(),si.prototype.doCancel.call(this)};function Ro(){si.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Ve,y=new ni;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new ni,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new en,y=new ni,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=oo,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new en,y=new ni,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=oo,a.add(y),a.selectable=!1,a.layerName="Tool",this.Di=a,this.o=y,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new Vn,this.Of=this.gj=this.Pf=null}pe(Ro,si),Ro.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},Ro.prototype.copyPortProperties=function(a,y,x,E,b){if(a!==null&&y!==null&&x!==null&&E!==null){var z=y.Df(),tt=tn.alloc();tt.width=y.naturalBounds.width*z,tt.height=y.naturalBounds.height*z,E.desiredSize=tt,tn.free(tt),b?(E.toSpot=y.toSpot,E.toEndSegmentLength=y.toEndSegmentLength):(E.fromSpot=y.fromSpot,E.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=zi,z=Rt.alloc(),x.location=y.ga(zi,z),Rt.free(z),E.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,E,b)}},Ro.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=oo,y.fromSpot=Er,y.toSpot=Er),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},Ro.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},Ro.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof en){var y=this.targetPort.part;this.isForwards?this.copyPortProperties(y,this.targetPort,this.temporaryToNode,this.temporaryToPort,!0):this.copyPortProperties(y,this.targetPort,this.temporaryFromNode,this.temporaryFromPort,!1)}else this.isForwards?this.setNoTargetPortProperties(this.temporaryToNode,this.temporaryToPort,!0):this.setNoTargetPortProperties(this.temporaryFromNode,this.temporaryFromPort,!1);(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},Ro.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof en))return null;for(;a!==null;){var E=y?a.toLinkable:a.fromLinkable;if(E===!0&&(a.portId!==null||a instanceof en)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(E===!1)break;a=a.panel}return null},Ro.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,E=this.portGravity;0>=E&&(E=.1);var b=this,z=y.og(x,E,function(gt){return b.findValidLinkablePort(gt,a)},null,!0);for(E=1/0,y=null,z=z.iterator;z.next();){var tt=z.value,ot=tt.part;if(ot instanceof en){var rt=tt.ga(zi,Rt.alloc()),at=x.x-rt.x,ut=x.y-rt.y;Rt.free(rt),rt=at*at+ut*ut,rtx){if(this.originalLink!==null&&a===this.originalFromNode&&y===this.originalFromPort)return!0;if(y=y.portId,y===null&&(y=""),a.Mo(y).count>=x)return!1}return!0},Ro.prototype.isValidTo=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.toLinkable!==!0))return!1;var x=y.toMaxLinks;if(1/0>x){if(this.originalLink!==null&&a===this.originalToNode&&y===this.originalToPort)return!0;if(y=y.portId,y===null&&(y=""),a.Sd(y).count>=x)return!1}return!0},Ro.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},Ro.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof en))return!1;a=a.portId,a===null&&(a="");var E=y.part;if(!(E instanceof en))return!1;for(y=y.portId,y===null&&(y=""),y=E.Sd(y);y.next();)if(E=y.value,E.fromNode===x&&E.fromPortId===a)return!0;return!1},Ro.prototype.isValidLink=function(a,y,x,E){if(!this.isValidFrom(a,y)||!this.isValidTo(x,E)||!(y===null||E===null||(y.fromLinkableSelfNode&&E.toLinkableSelfNode||!this.isInSameNode(y,E))&&(y.fromLinkableDuplicates&&E.toLinkableDuplicates||!this.isLinked(y,E)))||this.originalLink!==null&&(a!==null&&this.isLabelDependentOnLink(a,this.originalLink)||x!==null&&this.isLabelDependentOnLink(x,this.originalLink))||a!==null&&x!==null&&(a.data===null&&x.data!==null||a.data!==null&&x.data===null)||!this.isValidCycle(a,x,this.originalLink))return!1;if(a!==null){var b=a.linkValidation;if(b!==null&&!b(a,y,x,E,this.originalLink))return!1}return x!==null&&(b=x.linkValidation,b!==null&&!b(a,y,x,E,this.originalLink))?!1:(b=this.linkValidation,b!==null?b(a,y,x,E,this.originalLink):!0)},Ro.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var x=a.labeledLink;if(x===null)return!1;if(x===y)return!0;var E=new Ke;return E.add(a),hs(this,x,y,E)};function hs(a,y,x,E){if(y===x)return!0;var b=y.fromNode;return b!==null&&b.isLinkLabel&&(E.add(b),hs(a,b.labeledLink,x,E))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(E.add(y),hs(a,y.labeledLink,x,E))))}Ro.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var E=this.diagram.validCycle;if(E!==jc){if(E===Yf){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=y.linksConnected;E.next();){var b=E.value;if(b!==x&&b.isTreeLink&&b.toNode===y)return!1}return!Cs(this,a,y,x,!0)}if(E===Vf){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=a.linksConnected;E.next();)if(b=E.value,b!==x&&b.isTreeLink&&b.fromNode===a)return!1;return!Cs(this,a,y,x,!0)}if(E===Hf)return a===y?a=!0:(E=new Ke,E.add(y),a=mr(this,E,a,y,x)),!a;if(E===Uf)return!Cs(this,a,y,x,!1);if(E===Wf)return a===y?a=!0:(E=new Ke,E.add(y),a=Mh(this,E,a,y,x)),!a}return!0};function Cs(a,y,x,E,b){if(y===x)return!0;if(y===null||x===null)return!1;for(var z=y.linksConnected;z.next();){var tt=z.value;if(tt!==E&&(!b||tt.isTreeLink)&&tt.toNode===y&&(tt=tt.fromNode,tt!==y&&Cs(a,tt,x,E,b)))return!0}return!1}function mr(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==b&&tt.toNode===x&&(tt=tt.fromNode,tt!==x&&mr(a,y,tt,E,b)))return!0}return!1}function Mh(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==b){var ot=tt.fromNode;if(tt=tt.toNode,ot=ot===x?tt:ot,ot!==x&&Mh(a,y,ot,E,b))return!0}}return!1}fe.Object.defineProperties(Ro.prototype,{portGravity:{get:function(){return this.te},set:function(a){0<=a&&(this.te=a)}},isUnconnectedLinkValid:{get:function(){return this.Ha},set:function(a){this.Ha=a}},linkingCursor:{get:function(){return this.u},set:function(a){this.u=a}},temporaryLink:{get:function(){return this.Ci},set:function(a){this.Ci=a}},temporaryFromNode:{get:function(){return this.Bi},set:function(a){(this.Bi=a)&&(this.j=a.port)}},temporaryFromPort:{get:function(){return this.j},set:function(a){if(this.j!==null){var y=this.j.panel;if(y!==null){var x=y.O.indexOf(this.j);y.mb(x),y.Gb(x,a)}}this.j=a}},temporaryToNode:{get:function(){return this.Di},set:function(a){(this.Di=a)&&(this.o=a.port)}},temporaryToPort:{get:function(){return this.o},set:function(a){if(this.o!==null){var y=this.o.panel;if(y!==null){var x=y.O.indexOf(this.o);y.mb(x),y.Gb(x,a)}}this.o=a}},originalLink:{get:function(){return this.Hb},set:function(a){this.Hb=a}},originalFromNode:{get:function(){return this.hb},set:function(a){this.hb=a}},originalFromPort:{get:function(){return this.ob},set:function(a){this.ob=a}},originalToNode:{get:function(){return this.Oc},set:function(a){this.Oc=a}},originalToPort:{get:function(){return this.Pc},set:function(a){this.Pc=a}},isForwards:{get:function(){return this.ia},set:function(a){this.ia=a}},validPortsCache:{get:function(){return this.hy}},targetPort:{get:function(){return this.Pf},set:function(a){this.Pf=a}},linkValidation:{get:function(){return this.gj},set:function(a){this.gj=a}},portTargeted:{get:function(){return this.Of},set:function(a){this.Of=a}}}),Ro.className="LinkingBaseTool";function ds(){Ro.call(this),this.name="Linking",this.V={},this.F=null,this.K=th,this.Xd=null}pe(ds,Ro),ds.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return a.isReadOnly||a.isModelReadOnly||!a.allowLink||!a.model.xs()||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize()?!1:this.findLinkablePort()!==null},ds.prototype.findLinkablePort=function(){var a=this.diagram,y=this.startObject;if(y===null&&(y=a.ic(a.firstInput.documentPoint,null,null)),y===null||(a=y.part,!(a instanceof en)))return null;var x=this.direction;if(x===th||x===ff){var E=this.findValidLinkablePort(y,!1);if(E!==null||this.startObject===a&&(E=a.port,this.findValidLinkablePort(E,!1)))return this.isForwards=!0,E}return(x===th||x===pf)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},ds.prototype.doActivate=function(){var a=this.diagram,y=this.findLinkablePort();y===null?this.stopTool():(this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.isForwards?(this.temporaryToNode!==null&&(this.temporaryToNode.location=a.lastInput.documentPoint),this.originalFromPort=y,y=this.originalFromPort.part,y instanceof en&&(this.originalFromNode=y),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(this.temporaryFromNode!==null&&(this.temporaryFromNode.location=a.lastInput.documentPoint),this.originalToPort=y,y=this.originalToPort.part,y instanceof en&&(this.originalToNode=y),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),a.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),a.add(this.temporaryToNode),this.temporaryToNode&&this.temporaryToNode.Va(),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0)},ds.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},ds.prototype.doStop=function(){Ro.prototype.doStop.call(this),this.startObject=null},ds.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,E=null,b=null,z=null;try{var tt=this.targetPort=this.findTargetPort(this.isForwards);if(tt!==null){var ot=tt.part;ot instanceof en&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),E=ot,b=tt):(y=ot,x=tt,this.originalToNode!==null&&(E=this.originalToNode,b=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(E=this.originalToNode,b=this.originalToPort);y!==null||E!==null?(z=this.insertLink(y,x,E,b),z!==null?(tt===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),z.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",z)):this.doNoLink(y,x,E,b)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),z&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},ds.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof Ve)return a.isTreeLink;var y=this.diagram;return y===null?!0:(a=y.partManager.getLinkCategoryForData(a),y=y.partManager.findLinkTemplateForCategory(a),y!==null?y.isTreeLink:!0)},ds.prototype.insertLink=function(a,y,x,E){return this.diagram.partManager.insertLink(a,y,x,E)},ds.prototype.doNoLink=function(){},fe.Object.defineProperties(ds.prototype,{archetypeLinkData:{get:function(){return this.V},set:function(a){this.V=a}},archetypeLabelNodeData:{get:function(){return this.F},set:function(a){this.F=a}},direction:{get:function(){return this.K},set:function(a){this.K=a}},startObject:{get:function(){return this.Xd},set:function(a){this.Xd=a}}});var th=new je(ds,"Either",0),ff=new je(ds,"ForwardsOnly",0),pf=new je(ds,"BackwardsOnly",0);ds.className="LinkingTool",ds.Either=th,ds.ForwardsOnly=ff,ds.BackwardsOnly=pf;function ka(){Ro.call(this),this.name="Relinking";var a=new ni;a.figure="Diamond",a.desiredSize=fr,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new ni,a.figure="Diamond",a.desiredSize=fr,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new Me}pe(ka,Ro),ka.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Ve){var y="RelinkFrom",x=null;if(a.isSelected&&!this.diagram.isReadOnly){var E=a.selectionObject;E!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null&&(x=this.makeAdornment(E,!1),a.bh(y,x)))}x===null&&a.Jf(y),y="RelinkTo",x=null,a.isSelected&&!this.diagram.isReadOnly&&(E=a.selectionObject,E!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null?(x=this.makeAdornment(E,!0),a.bh(y,x)):x.v())),x===null&&a.Jf(y)}},ka.prototype.makeAdornment=function(a,y){var x=new Fi;return x.type=Ue.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},ka.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowRelink||!a.model.xs()||!a.lastInput.left)return!1;var y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom");return y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo")),y!==null},ka.prototype.doActivate=function(){var a=this.diagram;if(this.originalLink===null){var y=this.handle;if(y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom"),y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo"))),y===null)return;var x=y.part;if(!(x instanceof Fi&&x.adornedPart instanceof Ve))return;this.handle=y,this.isForwards=x===null||x.category==="RelinkTo",this.originalLink=x.adornedPart}this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.originalFromPort=this.originalLink.fromPort,this.originalFromNode=this.originalLink.fromNode,this.originalToPort=this.originalLink.toPort,this.originalToNode=this.originalLink.toNode,this.Ew.set(this.originalLink.actualBounds),this.originalLink!==null&&0y.firstPickIndex+1&&x=x.x)y=0>=x.y?y+225:1<=x.y?y+135:y+180;else if(1<=x.x)0>=x.y?y+=315:1<=x.y&&(y+=45);else if(0>=x.y)y+=270;else if(1<=x.y)y+=90;else break t;0>y?y+=360:360<=y&&(y-=360),a.cursor=22.5>y?"e-resize":67.5>y?"se-resize":112.5>y?"s-resize":157.5>y?"sw-resize":202.5>y?"w-resize":247.5>y?"nw-resize":292.5>y?"n-resize":337.5>y?"ne-resize":"e-resize"}else if(a instanceof Ue)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},Kr.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowResize&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},Kr.prototype.doActivate=function(){var a=this.diagram;this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null&&(this.adornedObject=this.handle.part.adornedObject,this.adornedObject!==null&&(a.isMouseCaptured=!0,a.animationManager.Cc(),this.Ea(this.name),this.Xq.set(this.adornedObject.ga(this.handle.alignment.gv())),this.Tn.set(this.adornedObject.part.location),this.Dw.set(this.adornedObject.desiredSize),this.pt=this.computeCellSize(),this.rt=this.computeMinSize(),this.qt=this.computeMaxSize(),this.isActive=!0))},Kr.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},Kr.prototype.stopTransaction=function(){var a=this.diagram,y=si.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Kr.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},Kr.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,Rt.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),a.bd(),Rt.free(b)}},Kr.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,Rt.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),Rt.free(b),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},Kr.prototype.resize=function(a){var y=this.diagram,x=this.adornedObject;if(x!==null){if(x.desiredSize=a.size,a=x.part,a.Va(),x=x.ga(this.handle.alignment.gv()),a instanceof qn){var E=new Je;if(E.add(a),!this.dragsMembers&&a.placeholder===null){var b=new st;b.dragsMembers=!1}y.moveParts(E,this.oppositePoint.copy().re(x),!0,b)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},Kr.prototype.computeResize=function(a,y,x,E,b,z){y.Mc()&&(y=zi);var tt=this.adornedObject.naturalBounds,ot=tt.x,rt=tt.y,at=tt.x+tt.width,ut=tt.y+tt.height,gt=1;if(!z){gt=tt.width;var mt=tt.height;0>=gt&&(gt=1),0>=mt&&(mt=1),gt=mt/gt}return mt=Rt.alloc(),Jt.No(a.x,a.y,ot,rt,b.width,b.height,mt),a=tt.copy(),0>=y.x?0>=y.y?(a.x=Math.max(mt.x,at-E.width),a.x=Math.min(a.x,at-x.width),a.width=Math.max(at-a.x,x.width),a.y=Math.max(mt.y,ut-E.height),a.y=Math.min(a.y,ut-x.height),a.height=Math.max(ut-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(gt*a.width,E.height),x.height),a.width=a.height/gt):(a.width=Math.max(Math.min(a.height/gt,E.width),x.width),a.height=gt*a.width),a.x=at-a.width,a.y=ut-a.height)):1<=y.y?(a.x=Math.max(mt.x,at-E.width),a.x=Math.min(a.x,at-x.width),a.width=Math.max(at-a.x,x.width),a.height=Math.max(Math.min(mt.y-rt,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(gt*a.width,E.height),x.height),a.width=a.height/gt):(a.width=Math.max(Math.min(a.height/gt,E.width),x.width),a.height=gt*a.width),a.x=at-a.width)):(a.x=Math.max(mt.x,at-E.width),a.x=Math.min(a.x,at-x.width),a.width=at-a.x,z||(a.height=Math.max(Math.min(gt*a.width,E.height),x.height),a.width=a.height/gt,a.y=rt+.5*(ut-rt-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(mt.x-ot,E.width),x.width),a.y=Math.max(mt.y,ut-E.height),a.y=Math.min(a.y,ut-x.height),a.height=Math.max(ut-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(gt*a.width,E.height),x.height),a.width=a.height/gt):(a.width=Math.max(Math.min(a.height/gt,E.width),x.width),a.height=gt*a.width),a.y=ut-a.height)):1<=y.y?(a.width=Math.max(Math.min(mt.x-ot,E.width),x.width),a.height=Math.max(Math.min(mt.y-rt,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(gt*a.width,E.height),x.height),a.width=a.height/gt):(a.width=Math.max(Math.min(a.height/gt,E.width),x.width),a.height=gt*a.width))):(a.width=Math.max(Math.min(mt.x-ot,E.width),x.width),z||(a.height=Math.max(Math.min(gt*a.width,E.height),x.height),a.width=a.height/gt,a.y=rt+.5*(ut-rt-a.height))):0>=y.y?(a.y=Math.max(mt.y,ut-E.height),a.y=Math.min(a.y,ut-x.height),a.height=ut-a.y,z||(a.width=Math.max(Math.min(a.height/gt,E.width),x.width),a.height=gt*a.width,a.x=ot+.5*(at-ot-a.width))):1<=y.y&&(a.height=Math.max(Math.min(mt.y-rt,E.height),x.height),z||(a.width=Math.max(Math.min(a.height/gt,E.width),x.width),a.height=gt*a.width,a.x=ot+.5*(at-ot-a.width))),Rt.free(mt),a},Kr.prototype.computeReshape=function(){var a=Te;return this.adornedObject instanceof ni&&(a=Cv(this.adornedObject)),!(a===Pn||this.diagram.lastInput.shift)},Kr.prototype.computeMinSize=function(){var a=this.adornedObject.minSize.copy(),y=this.minSize;return!isNaN(y.width)&&y.width>a.width&&(a.width=y.width),!isNaN(y.height)&&y.height>a.height&&(a.height=y.height),a},Kr.prototype.computeMaxSize=function(){var a=this.adornedObject.maxSize.copy(),y=this.maxSize;return!isNaN(y.width)&&y.widthx?x+=360:360<=x&&(x-=360),x=Math.round(45*Math.round(x/45));var E=this.handleDistance;return x===0?y.x=a.naturalBounds.width+E:x===45?(y.x=a.naturalBounds.width+E,y.y=a.naturalBounds.height+E):x===90?y.y=a.naturalBounds.height+E:x===135?(y.x=-E,y.y=a.naturalBounds.height+E):x===180?y.x=-E:x===225?(y.x=-E,y.y=-E):x===270?y.y=-E:x===315&&(y.x=a.naturalBounds.width+E,y.y=-E),a.ga(y)},ms.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Rt(NaN,NaN),this.isActive=a.isMouseCaptured=!1},ms.prototype.stopTransaction=function(){var a=this.diagram,y=si.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},ms.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},ms.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},ms.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){a.delaysLayout=!1;var y=this.computeRotate(a.lastInput.documentPoint);this.rotate(y),a.Ya(),this.transactionResult=this.name,a.R("PartRotated",this.adornedObject,this.originalAngle)}this.stopTool()},ms.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var x=y.locationObject,E=y.rotateObject;(x===E||x.rg(E))&&(x=this.Tn.copy(),y.location=x.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},ms.prototype.computeRotate=function(a){a=this.rotationPoint.ab(a)-this.handleAngle;var y=this.adornedObject.panel;y!==null&&(a-=y.li()),360<=a?a-=360:0>a&&(a+=360),y=Math.min(Math.abs(this.snapAngleMultiple),180);var x=Math.min(Math.abs(this.snapAngleEpsilon),y/2);return!this.diagram.lastInput.shift&&0y-x&&(a=(Math.floor(a/y)+1)*y)),360<=a?a-=360:0>a&&(a+=360),a},fe.Object.defineProperties(ms.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof Fi))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof Fi)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},snapAngleMultiple:{get:function(){return this.ia},set:function(a){this.ia=a}},snapAngleEpsilon:{get:function(){return this.V},set:function(a){this.V=a}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(a){this.kr=a.copy()}},handleAngle:{get:function(){return this.u},set:function(a){this.u=a}},handleDistance:{get:function(){return this.F},set:function(a){this.F=a}}}),ms.className="RotatingTool",Vo("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function gu(){si.call(this),this.name="ClickSelecting"}pe(gu,si),gu.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},gu.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},gu.className="ClickSelectingTool";function Da(){si.call(this),this.name="Action",this.pk=null}pe(Da,si),Da.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,x=a.ic(y.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E});return x!==null&&x.isActionable?(this.pk=x,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},Da.prototype.doMouseDown=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionDown!==null&&y.actionDown(a,y))}else this.canStart()&&this.doActivate()},Da.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionMove!==null&&y.actionMove(a,y))}},Da.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;if(y===null)return;a.targetObject=y,y.actionUp!==null&&y.actionUp(a,y),this.standardMouseClick(function(x){for(;x.panel!==null&&(!x.isActionable||x!==y);)x=x.panel;return x},function(x){return x===y})}this.stopTool()},Da.prototype.doCancel=function(){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionCancel!==null&&y.actionCancel(a,y),this.stopTool())},Da.prototype.doStop=function(){this.pk=null},Da.className="ActionTool";function ml(){si.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Rt(0,0)}pe(ml,si),ml.prototype.canStart=function(){if(!this.isEnabled||this.archetypeNodeData===null)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.lastInput.left||this.isBeyondDragSize())return!1;if(this.isDoubleClick){if(a.lastInput.clickCount===1&&(this.mw=a.lastInput.viewPoint.copy()),a.lastInput.clickCount!==2||this.isBeyondDragSize(this.mw))return!1}else if(a.lastInput.clickCount!==1)return!1;return!(a.currentTool!==this&&a.Ol(a.lastInput.documentPoint,!0)!==null)},ml.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},ml.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var E=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof Fn)x.Zc()&&(Ml(x),E=x.copy(),E!==null&&y.add(E));else if(x!==null){var b=y.model.copyNodeData(x);ke(b)&&(y.model.xf(b),E=y.Lc(b))}if(E!==null){var z=Rt.allocAt(a.x,a.y);this.isGridSnapEnabled&&mg(this.diagram,E,a,z),E.location=z,y.allowSelect&&(y.clearSelection(!0),E.isSelected=!0),Rt.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",E)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return E},fe.Object.defineProperties(ml.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){this.Ri=a}},isDoubleClick:{get:function(){return this.o},set:function(a){this.o=a}},isGridSnapEnabled:{get:function(){return this.j},set:function(a){this.j=a}}}),ml.className="ClickCreatingTool";function Fa(){si.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new Fn;a.layerName="Tool",a.selectable=!1;var y=new ni;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}pe(Fa,si),Fa.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(!a.allowSelect)return!1;var y=a.lastInput;return!(!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.timestamp-a.firstInput.timestampb.right&&(x.x-=E.width+5/y.scale),x.xb.bottom&&(x.y-=E.height+5/y.scale),x.ya.lastInput.clickCount)):!1},so.prototype.doStart=function(){vs=this,this.textBlock!==null&&this.doActivate()},so.prototype.doActivate=function(){if(!this.isActive){var a=this.diagram;if(a!==null){var y=this.textBlock;if(y===null&&(y=a.ic(a.lastInput.documentPoint)),y!==null&&y instanceof ao&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=ad;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var E=new Me(this.textBlock.ga(Vr),this.textBlock.ga(Rs));a.tv(E),x.show(y,a,this),this.currentTextEditor=x}}}},so.prototype.doCancel=function(){this.stopTool()},so.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},so.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Es)},so.prototype.acceptText=function(a){switch(a){case Es:this.qa===Ii?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===ad||this.qa===Gn||this.qa===ld)&&(this.qa=Lc,pu(this));break;case mu:case Eh:case _d:(Eh!==a||this.textBlock.isMultiline!==!0)&&(this.qa===ad||this.qa===Gn||this.qa===ld)&&(this.qa=Lc,pu(this))}};function pu(a){var y=a.textBlock,x=a.diagram,E=a.currentTextEditor;if(y!==null&&E!==null){var b=y.text,z="";E.valueFunction!==null&&(z=E.valueFunction()),a.isValidText(y,b,z)?(a.Ea(a.name),a.qa=Ii,a.transactionResult=a.name,y.text=z,a.doSuccess(b,z),x!==null&&x.R("TextEdited",y,b),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=Gn,a.doError(b,z))}}so.prototype.doError=function(a,y){var x=this.textBlock;x.errorFunction!==null&&x.errorFunction(this,a,y),(a=this.currentTextEditor)&&a.show(x,this.diagram,this)},so.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},so.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=oh,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},so.prototype.doStop=function(){vs=null},so.prototype.isValidText=function(a,y,x){var E=this.textValidation;return E!==null&&!E(a,y,x)?!1:(E=a.textValidation,!!(E===null||E(a,y,x)))},so.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},fe.Object.defineProperties(so.prototype,{textBlock:{get:function(){return this.ia},set:function(a){this.ia=a}},currentTextEditor:{get:function(){return this.o},set:function(a){this.o=a}},defaultTextEditor:{get:function(){return this.j},set:function(a){this.j=a}},starting:{get:function(){return this.V},set:function(a){this.V=a}},textValidation:{get:function(){return this.vj},set:function(a){this.vj=a}},minimumEditorScale:{get:function(){return this.u},set:function(a){this.u=a}},selectsTextOnActivate:{get:function(){return this.F},set:function(a){this.F=a}},state:{get:function(){return this.qa},set:function(a){this.qa!==a&&(this.qa=a)}}}),so.prototype.measureTemporaryTextBlock=so.prototype.Lx;var mu=new je(so,"LostFocus",0),Es=new je(so,"MouseDown",1),_d=new je(so,"Tab",2),Eh=new je(so,"Enter",3),mf=new je(so,"SingleClick",0),ih=new je(so,"SingleClickSelected",1),Zd=new je(so,"DoubleClick",2),oh=new je(so,"StateNone",0),ad=new je(so,"StateActive",1),ld=new je(so,"StateEditing",2),Lc=new je(so,"StateValidating",3),Gn=new je(so,"StateInvalid",4),Ii=new je(so,"StateValidated",5),vs=null;so.className="TextEditingTool",so.LostFocus=mu,so.MouseDown=Es,so.Tab=_d,so.Enter=Eh,so.SingleClick=mf,so.SingleClickSelected=ih,so.DoubleClick=Zd,so.StateNone=oh,so.StateActive=ad,so.StateEditing=ld,so.StateValidating=Lc,so.StateInvalid=Gn,so.StateValidated=Ii,Vo("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function ys(a){Ac||(vf(),Ac=!0),this.H=Iu,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=rh,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Ke,this.ce=new cs,this.ce.Yd=this,this.Ei=new Ke,this.pu=new Ke,this.Sr=new Ke,this.pr=new Ke,a&&Object.assign(this,a)}ys.prototype.Xe=function(a){this.H=a},ys.prototype.canStart=function(){return!0};function el(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),gs(a.H),a.zb=!0)}function Ah(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,E=a.Zd.contains("Model");E&&(a.Ok=!0,a.Pk===rh?(y.isViewportUnconstrained=!0,y.vc.clear(),y.add(x,"position",x.position.copy().offset(0,-200),x.position),y.add(x,"opacity",0,1)):a.Pk===yf&&y.vc.clear(),a.Qw=!!(a.Pk===Nc&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),E&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),kc(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,E=y.vc.get(x),x.autoScale!==Bs&&E!==null&&(delete E.start.scale,delete E.end.scale),be.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&ra(x),Mf(x),a.zb=!1,y.start(),y.bc&&(Nh(a),x.Ya(),Sf(y,0),il(x,!0),ud(a),x.R("AnimationStarting",a)))}))}}function Sl(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function ug(a,y,x,E){a.isTicking||Sl(a)||y instanceof Ve&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,E,!1)}Ct=ys.prototype,Ct.fv=function(a){return this.ce.fv(a)},Ct.Xu=function(a){return this.ce.Xu(a)};function hg(a,y){function x(){if(0z?z+=360:rt+=360),z=b(x,z,rt-z,E)%360,tt=b(x,tt,at-tt,E),ot=b(x,ot,ut-ot,E),x=b(x,a,y-a,E),"hsla("+z+", "+tt+"%, "+ot+"%, "+x+")"}function vf(){function a(x,E,b,z,tt,ot){x.position=new Rt(z(tt,E.x,b.x-E.x,ot),z(tt,E.y,b.y-E.y,ot))}var y=new Vn;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,E,b,z,tt,ot){tta&&Kn(a,">= 1",ys,"duration"),this.Dg=a}},isAnimating:{get:function(){return this.bc}},isTicking:{get:function(){return this.vq}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a}},defaultAnimation:{get:function(){return this.ce}},activeAnimations:{get:function(){return this.Ei}},initialAnimationStyle:{get:function(){return this.Pk},set:function(a){this.Pk=a}}}),ys.prototype.stopAnimation=ys.prototype.Cc;var Ec=null,Ac=!1,rh=new je(ys,"Default",1),Nc=new je(ys,"AnimateLocations",2),yf=new je(ys,"None",3);ys.className="AnimationManager",ys.defineAnimationEffect=function(a,y){Ac||(vf(),Ac=!0),Ec.add(a,y)},ys.Default=rh,ys.AnimateLocations=Nc,ys.None=yf;function cs(a){this.vu=this.Nw=this.Yd=this.H=null,this.Xk=this.bc=this.j=!1,this.cn=this.Qd=0,this.Lp=this.ot=Qd,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=$r,this.vc=new Vn,this.Tt=new Vn,this.yl=new Ke,this.Ut=new Ke,this.dw=Th,a&&Object.assign(this,a)}cs.prototype.suspend=function(){this.Xk=!0},cs.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,Dc(this,!0),Nh(this.Yd),il(this.H),ud(this.Yd),this.H.redraw()};function kc(a,y){if(a.Tt.clear(),a.Wk=!1,a.au=0,a.Gd=NaN,0a.cn?a.Gd:E-a.Qd;y&&(b=a.gw,ba.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function Sf(a,y){for(var x=a.Gd,E=a.vc.iterator,b=a.Wk;E.next();){var z=E.key;if(!(z instanceof Xt&&z.diagram===null)){var tt=E.value,ot=b?tt.end:tt.start;tt=b?tt.start:tt.end;var rt=Ec,at;for(at in tt)at==="position"&&(tt["position:placeholder"]||tt["position:nodeCollapse"])||rt.get(at)===null||rt.get(at)(z,ot[at],tt[at],a.Lp,y,x,a)}}}Ct.stop=function(){return this.bc?(this.Ml(!0),this):this},Ct.Ml=function(a){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var y=this.H,x=this.Yd;this.Xk=this.bc=x.Ok=!1,Nh(x);for(var E=this.vc,b=this.yl.iterator;b.next();)y.remove(b.value);for(b=this.Ut.iterator;b.next();)b.value.v();b=this.ho,E=E.iterator;for(var z=Ec;E.next();){var tt=E.key,ot=E.value,rt=b?ot.end:ot.start,at=b?ot.start:ot.end,ut=ot.Ku,gt;for(gt in at)if(z.get(gt)!==null){var mt=gt;!ot.Hu||mt!=="position:nodeCollapse"&&mt!=="position:placeholder"||(mt="position"),z.get(mt)(tt,rt[gt],ut[gt]!==void 0?ut[gt]:ot.Hu?rt[gt]:at[gt],this.Lp,this.Gd,this.Gd,this)}ot.Hu&&ut.location!==void 0&&tt instanceof Fn&&(tt.location=ut.location),ot.nv&&tt instanceof Fn&&tt.Zb(!1)}if(y.As.clear(),Fc(y,!1),y.Ya(),y.N(),il(y,!0),x.defaultAnimation===this){for(gt=x.pr.iterator;gt.next();)b=gt.value,b.Tg!==null&&(b.points=b.Tg,b.Tg=null);x.pr.clear()}il(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),ud(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),kc(this,null),x.Ml(this),y.$b())}},Ct.Cj=function(a,y){var x=y.actualBounds,E=null;if(y instanceof qn&&(E=y.placeholder),E!==null?(x=E.ga(Vr),E=E.padding,x.x+=E.left,x.y+=E.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Rt(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof qn)for(a=a.memberParts;a.next();)E=a.value,E instanceof en&&this.Cj(E,y)},Ct.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof qn&&(x=y.placeholder),x!==null){var E=x.ga(Vr);x=x.padding,E.x+=x.left,E.y+=x.top,this.add(a,"position:placeholder",a.position,E,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),E=this.vc,E.contains(a)&&(E.I(a).nv=!0),a instanceof qn)for(a=a.memberParts;a.next();)E=a.value,E instanceof en&&this.Aj(E,y)}},Ct.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},fe.Object.defineProperties(cs.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Kn(a,">= 1",cs,"duration"),this.Dg=a}},reversible:{get:function(){return this.ho},set:function(a){this.ho=a}},runCount:{get:function(){return this.cu},set:function(a){0a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function _0(a,y,x,E){return a===E?y+x:x*(-Math.pow(2,-10*a/E)+1)+y}cs.className="Animation",cs.EaseLinear=function(a,y,x,E){return x*a/E+y},cs.EaseInOutQuad=Qd,cs.EaseInQuad=function(a,y,x,E){return x*(a/=E)*a+y},cs.EaseOutQuad=function(a,y,x,E){return-x*(a/=E)*(a-2)+y},cs.EaseInExpo=function(a,y,x,E){return a===0?y:x*Math.pow(2,10*(a/E-1))+y},cs.EaseOutExpo=_0;function cd(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}cd.className="AnimationState";function jl(a,y,x){this.xd=null,this.rf=a,this.so=x||xf,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=gd))}jl.prototype.copy=function(){var a=new jl(this.rf);a.so=this.so;var y=this.uk;if(y!==null){var x={};y.duration!==void 0&&(x.duration=y.duration),y.finished!==void 0&&(x.finished=y.finished),y.easing!==void 0&&(x.easing=y.easing),a.uk=x}return a};function Z0(a,y){a=a.uk,a!==null&&(a.duration&&(y.duration=a.duration),a.finished&&(y.finished=a.finished),a.easing&&(y.easing=a.easing))}fe.Object.defineProperties(jl.prototype,{propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},animationSettings:{get:function(){return this.uk},set:function(a){this.uk=a}},startCondition:{get:function(){return this.so},set:function(a){this.so=a}}});var xf=new je(jl,"Default",1),gd=new je(jl,"Immediate",2),Kd=new je(jl,"Bundled",3);jl.className="AnimationTrigger",jl.Default=xf,jl.Immediate=gd,jl.Bundled=Kd;function Xr(a){Lo(this),this.H=null,this.Pa=new Je,this.xa="",this.pb=1,this.o=!1,this.j=this.Uh=this.u=this.Oi=this.Ni=this.Mi=this.Li=this.Ji=this.Ki=this.Ii=this.Qi=this.Hi=this.Pi=this.Gi=this.Fi=!0,this.Zq=[],a&&Object.assign(this,a)}Ct=Xr.prototype,Ct.clear=function(){for(var a=this.Pa,y=0;y=a)return y;for(var x=0,E=0,b=0,z=0,tt=0,ot=this.Pa.iterator;ot.next();){var rt=ot.value;rt instanceof qn?b++:rt instanceof en?E++:rt instanceof Ve?z++:rt instanceof Fi?tt++:x++}if(ot="",0x.Oq||ot.height*b>x.Oq?y.gc(a,x):(b=y.actualBounds,z=y.naturalBounds,b.width===0||b.height===0||isNaN(b.x)||isNaN(b.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(Xo(y,a,y.areaBackground,!0,!0,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.areaBackground===null&&y.background===null&&(Xo(y,a,"rgba(0,0,0,0.3)",!0,!1,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),Xo(y,a,y.background,!0,!1,z,b),a.fillRect(0,0,z.width/2,z.height/2),x.ws()||(y=1/(x.m11*x.m22-x.m12*x.m21),a.transform(x.m22*y,-x.m12*y,-x.m21*y,x.m11*y,y*(x.m21*x.dy-x.m22*x.dx),y*(x.m12*x.dx-x.m11*x.dy)))))),E&&(a.restore(),a.Vc(!0))}},Ct.g=function(a,y,x,E,b){var z=this.diagram;z!==null&&z.cb(Eo,a,this,y,x,E,b)},Ct.oi=function(a,y,x){var E=this.Pa;if(y.Ig=this,this===null&&ks(y),a>=E.count)a=E.count;else if(E.M(a)===y)return-1;return E.Gb(a,y),y.Vo(x),E=this.diagram,E!==null&&(x?E.N():E.oi(y)),cg(this,a,y),a},Ct.pc=function(a,y,x){if(!x&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,x);var E=this.Pa;if(0>a||a>=E.length){if(a=E.indexOf(y),0>a)return-1}else if(E.M(a)!==y&&(a=E.indexOf(y),0>a))return-1;return y.Wo(x),E.mb(a),E=this.diagram,E!==null&&(x?E.N():E.pc(y)),y.Ig=null,ks(y),a};function cg(a,y,x){if(y=K0(a,y,x),x instanceof qn&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var E=-1,b=a.Pa.s,z=b.length,tt=0;ttE&&ot.containingGroup===x&&(E=tt,0<=y))break}!(0>E)&&E=b)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var z=y-1,tt=NaN;0<=z&&(tt=a.M(z).zOrder,!!isNaN(tt));)z--;for(var ot=y+1,rt=NaN;otE)for(;;){if(z===-1||tt<=E){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(tt=NaN;0<=--z&&(tt=a.M(z).zOrder,isNaN(tt)););}else if(!isNaN(rt)&&rt=E){if(ot--,ot===y)break;return a.mb(y),a.Gb(ot,x),ot}for(rt=NaN;++ota||1=a)return y;for(var x=this.Wa.iterator;x.next();)y+=` + `+x.value.toString(a-1);return y};function Pf(a,y){if(Qo){if(y!=null||ie("Diagram setup requires an argument DIV."),a.Ka!==null&&ie("Diagram has already completed setup."),typeof y=="string"?a.Ka=be.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:ie("No DIV or DIV id supplied: "+y),a.Ka===null&&ie("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&ie("Invalid div id; div already has a Diagram associated with it."),!a.ol&&be.ResizeObserver){var x=li(function(){a.$b()},250);a.ol=new be.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}be.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var E="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=E,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=be.go;var b=new Pl(a);if(b.style!==void 0&&(b.style.position="absolute",b.style.top="0px",b.style.left="0px",be.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),b.style.zIndex="2",b.style.userSelect="none",b.style.MozUserSelect="none",b.style.touchAction="none",b.style.letterSpacing="normal !important",b.style.wordSpacing="normal !important"),a.ta=b,a.ib=b.context,E=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),Df(a,a.Aa,a.ya),a.Ka.insertBefore(b.Oa,a.Ka.firstChild),b=new Pl(null),b.width=1,b.height=1,a.jw=b,a.oy=b.context,Qo){b=Ki("div");var z=Ki("div");b.style.position="absolute",b.style.overflow="auto",b.style.width=a.Aa+"px",b.style.height=a.ya+"px",b.style.zIndex="1",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(b),b.appendChild(z),b.onscroll=tp,b.addEventListener("pointerdown",ep),b.H=a,b.uy=!0,b.vy=!0,a.ku=b,a.hu=z}a.hk=li(function(){a.Yh=null,a.N()},300),a.Ov=li(function(){Mf(a)},250),a.preventDefault=function(tt){return tt.preventDefault(),!1},a.$j=function(tt){if(a.isEnabled){var ot=nl(a,tt,!0);ot.bubbles=!0;var rt=0,at=0;ot.delta=0,tt.deltaX!==void 0?(tt.deltaX!==0&&(rt=0Math.abs(tt.deltaY)?-rt:-at):tt.wheelDeltaX!==void 0?(tt.wheelDeltaX!==0&&(rt=0Math.abs(tt.wheelDeltaY)?-rt:-at):tt.wheelDelta!==void 0&&tt.wheelDelta!==0&&(ot.delta=0ot||Math.abs(at.y-tt.screenY)>ot)?a.yq++:a.yq=1,rt.clickCount=a.yq,a.tw=tt.timeStamp,a.uw.sg(tt.screenX,tt.screenY),a.doMouseDown(),tt.button===1?tt.preventDefault():Ol(rt,tt)}},a.dk=function(tt){if(a.isEnabled){a.Vk=!0;var ot=a.oj;if(ot[0]===null||ot[0].pointerId!==tt.pointerId&&ot[0].pointerType===tt.pointerType){if(ot[1]!==null&&ot[1].pointerId===tt.pointerId){ot[1]=tt;return}if(ot[0]===null)ot[0]=tt;else return}else ot[0]=tt;if(ot[0].pointerId===tt.pointerId){ot=Af(a,tt,!1,!1,!1,ot[1]!==null);var rt=be.document.elementFromPoint(tt.clientX,tt.clientY)||null;rt!==null&&rt.shadowRoot!==void 0&&rt.shadowRoot!==null&&(rt=rt.shadowRoot.elementFromPoint(tt.clientX,tt.clientY));var at=a,ut=tt;rt&&rt.H&&(ut=tt,at=rt.H),ot.targetDiagram=at,Jd(a,ut,ot),ot.targetObject=null,a.doMouseMove(),Ol(ot,tt)}}},a.fk=function(tt){if(a.isEnabled){a.Vk=!0;var ot=tt.pointerType==="touch"||tt.pointerType==="pen",rt=a.Yt;if(ot&&a.qu)delete rt[tt.pointerId],tt.preventDefault();else if(rt=a.oj,rt[0]===null||rt[0].pointerId!==tt.pointerId&&rt[0].pointerType===tt.pointerType)rt[1]!==null&&rt[1].pointerId===tt.pointerId&&(rt[1]=null);else{rt[0]=null,rt=Af(a,tt,!1,!0,!0,!1);var at=be.document.elementFromPoint(tt.clientX,tt.clientY)||null;at!==null&&at.shadowRoot!==void 0&&at.shadowRoot!==null&&(at=at.shadowRoot.elementFromPoint(tt.clientX,tt.clientY)),at!==null&&at.H instanceof de&&at.H!==a&&Jd(at.H,tt,rt),at===null&&(at=tt.target),Jd(a,tt,rt),rt.clickCount=a.yq,rt.targetDiagram=Ef(tt,at),rt.targetObject=null,a.doMouseUp(),Ol(rt,tt),ot&&(a.wq=!1)}}},a.ek=function(tt){if(a.isEnabled){a.Vk=!1;var ot=a.Yt;ot[tt.pointerId]&&delete ot[tt.pointerId],ot=a.oj,ot[0]!==null&&ot[0].pointerId===tt.pointerId&&(ot[0]=null),ot[1]!==null&&ot[1].pointerId===tt.pointerId&&(ot[1]=null),tt.pointerType!=="touch"&&tt.pointerType!=="pen"&&(tt=a.currentTool,tt.cancelWaitAfter(),tt.standardMouseOver())}},a.ck=function(tt){var ot=a.oj;ot[0]!==null&&ot[0].pointerId===tt.pointerId?(ot[0]=null,a.wq=!1):ot[1]!==null&&ot[1].pointerId===tt.pointerId&&(ot[1]=null)},a.Vp=E.Z["d"+Rc[1]+Rc[2]+"wI"+oc.slice(1,5)]["b"+Tx.slice(1,y)](E.Z,zc,y,y),E.Vc(!0),tv(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}de.prototype.addEventListener=function(a,y,x,E){a.addEventListener(y,x,{capture:E,passive:!1})},de.prototype.removeEventListener=function(a,y,x,E){a.removeEventListener(y,x,{capture:E})};function tv(a){var y=a.ta.Oa;y instanceof HTMLCanvasElement||(y=a.div),a.addEventListener(y,"pointerdown",a.ui,!1),a.addEventListener(y,"pointermove",a.dk,!1),a.addEventListener(y,"pointerup",a.fk,!1),a.addEventListener(y,"pointerout",a.ek,!1),a.addEventListener(y,"pointercancel",a.ck,!1),a.addEventListener(y,"pointerenter",a.bz,!1),a.addEventListener(y,"pointerleave",a.cz,!1),a.addEventListener(y,"wheel",a.$j,!1),a.addEventListener(y,"keydown",a.Qz,!1),a.addEventListener(y,"keyup",a.Rz,!1),a.addEventListener(y,"blur",a.Ny,!1),a.addEventListener(y,"focus",a.Oy,!1),a.addEventListener(y,"selectstart",function(x){return x.preventDefault(),!1},!1),a.addEventListener(y,"contextmenu",function(x){return x.preventDefault(),!1},!1),a.addEventListener(be,"resize",a.Ov,!1)}function ra(a){30wt&&(this.position=Ot.h(-(y.scrollWidth-this.Aa)+Tt-this.Aa/b+ut,this.position.y))),a.vy&&this.allowVerticalScroll&&(otEt&&(this.position=Ot.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/b+z))),Rt.free(Ot),this.vd=!0,this.Ee=this.qr=!1,E=this.documentBounds,b=this.viewportBounds,ut=E.right,wt=b.right,z=E.bottom,Et=b.bottom,tt=E.x,gt=b.x,ot=E.y,E=b.y,mt>=rt&&tt>=gt&&ut<=wt&&(x.style.width="1px"),St>=at&&ot>=E&&z<=Et&&(x.style.height="1px"))}},de.prototype.computeBounds=function(a){return a===void 0&&(a=new Me),gs(this),Cf(this,a)};function Cf(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,E=a.Wa.s,b=E.length,z=0;zx&&(y=x),ya.maxScale&&(y=a.maxScale),y):y===xd?(y=rt>ot?(tt-a.Db)/E:(z-a.Db)/b,y>x&&(y=x),ya.maxScale&&(y=a.maxScale),y):a.scale}de.prototype.zoomToFit=function(){var a=this.sj;this.sj=Th,this.scale=Xd(this,Va),a!==Th&&(xl(this,!1),Lf(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Ct=de.prototype,Ct.BA=function(a,y){y===void 0&&(y=Va);var x=a.width,E=a.height;if(!(x===0||E===0||isNaN(x)&&isNaN(E))){var b=1;if(y===Va||y===xd)if(isNaN(x))b=this.viewportBounds.height*this.scale/E;else if(isNaN(E))b=this.viewportBounds.width*this.scale/x;else{b=this.Aa;var z=this.ya;b=y===xd?z/E>b/x?(z-(this.Be?this.Db:0))/E:(b-(this.gf?this.Db:0))/x:Math.min(z/E,b/x)}this.scale=b,this.position=new Rt(a.x,a.y)}},Ct.Jy=function(a,y){this.Va();var x=this.documentBounds,E=this.viewportBounds;this.position=new Rt(x.x+(a.x*x.width+a.offsetX)-(y.x*E.width-y.offsetX),x.y+(a.y*x.height+a.offsetY)-(y.y*E.height-y.offsetY))},Ct.zz=function(a){if(a instanceof Xt){this.eq=a;var y=Rt.alloc();this.fq=this.op(a.ga(Vr,y)),Rt.free(y)}else this.eq=null,this.fq=kl};function Lf(a,y,x,E,b,z){var tt=Rt.allocAt(a.pa.x,a.pa.y),ot=tt.x,rt=tt.y;if(a.eq!==null){var at=Rt.alloc();at=a.eq.ga(Vr,at),ot=at.x-a.fq.x/a.scale,rt=at.y-a.fq.y/a.scale,b=Er,Rt.free(at)}(z||a.scrollMode===Th)&&(b.sb()&&(x>y.width&&(ot=y.x+(b.x*y.width+b.offsetX)-(b.x*x-b.offsetX)),E>y.height&&(rt=y.y+(b.y*y.height+b.offsetY)-(b.y*E-b.offsetY))),b=a.rj,z=x-y.width,xy.left?ot=y.left:oty.top?rt=y.top:rty;y++){var x=a.De.iterator;if(x===null||a.De.count===0)break;a.De=new Ke,a.Nv(x,a.De)}a.nodes.each(function(E){E instanceof qn&&E.U&65536&&(E.U=E.U^65536)})}}Ct.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof qn||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof qn&&x.isVisible()&&Ic(this,x);for(a.reset();a.next();)x=a.value,x instanceof Ve&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x));for(a.reset();a.next();)x=a.value,x instanceof Fi&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function Ic(a,y){for(var x=vi(),E=vi(),b=y.memberParts;b.next();){var z=b.value;z.isVisible()&&(z instanceof qn?(Za(z)||Ys(z)||Pd(z))&&Ic(a,z):z instanceof Ve?z.fromNode===y||z.toNode===y?E.push(z):x.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=x.length,b=0;bKt&&(Tt=$e.left,Gt=$e.right),Ot.height>he&&(Wt=$e.top,_t=$e.bottom)):(Tt=$e.left,Gt=$e.right,Wt=$e.top,_t=$e.bottom);var Sn=Ot.width+Tt+Gt,hn=Ot.height+Wt+_t;$e=a.scale;var Ye=Sn>rt/$e,Fe=hn>at/$e;if(!(z||a.gf||a.Be||Ye||Fe))return!0;Tt=Ot.x-Tt,rt=ut.x,Gt=Ot.right+Gt,at=ut.right+tt,Wt=Ot.y-Wt;var Xn=ut.y;Ot=Ot.bottom+_t,ut=ut.bottom+ot;var _n="1px";if(_t="1px",a.scrollMode===Th&&(Ye||Fe)&&(Ye&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Ye=1,Tt+1at+1&&(Ye=Math.max((Gt-at)*$e+a.Aa,Ye)),Kt+tt+1ut+1&&(Ye=Math.max((Ot-ut)*$e+a.ya,Ye)),he+ot+1at+1&&(tt=Math.max((Gt-at)*$e+a.Aa,tt)),Kt+1ut+1&&(ot=Math.max((Ot-ut)*$e+tt,ot)),he+1at+1&&(y=a.position.x*$e)),a.tn)switch(a.bu){case"negative":y=-(wt.scrollWidth-y-wt.clientWidth);break;case"reverse":y=wt.scrollWidth-y-wt.clientWidth}return wt.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(he+1ut+1&&(wt.scrollTop=a.position.y*$e)),rt=a.Aa,at=a.ya,wt.style.width=rt+(a.gf?a.Db:0)+"px",wt.style.height=at+(a.Be?a.Db:0)+"px",x!==rt||E!==at||a.animationManager.zb?(x=Me.allocAt(b,gt,mt,St),a.onViewportBoundsChanged(x,a.viewportBounds,$e,z),Me.free(x),!1):!0}Ct=de.prototype,Ct.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&ie("Cannot add part "+a.toString()+" to "+this.toString()+". It is already a part of "+y.toString()),y=this.Qj(a.layerName),y===null&&(y=this.Qj("")),y===null&&ie('Cannot add a Part when unable find a Layer named "'+a.layerName+'" and there is no default Layer'),a.layer!==y)){var x=y.oi(99999999,a,a.diagram===this);0<=x&&this.cb(mn,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},Ct.oi=function(a){this.partManager.oi(a);var y=this;uc(a,function(x){ec(y,x)}),(a instanceof Fi||a instanceof qn&&a.placeholder!==null)&&a.v(),a.data!==null&&uc(a,function(x){ay(y.partManager,x)}),Ys(a)!==!0&&Pd(a)!==!0||this.De.add(a),O1(a,!0,this),R1(a)?(a.actualBounds.w()&&this.N(cc(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(cc(a,a.actualBounds)),this.$b()},Ct.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&uc(a,function(x){ly(y.partManager,x,y)}),this.De.remove(a),R1(a)?(a.actualBounds.w()&&this.N(cc(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(cc(a,a.actualBounds)),this.$b()},Ct.remove=function(a){Ff(this,a,!0)};function Ff(a,y,x){var E=y.layer;E!==null&&E.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),x&&y.Lj(),x=E.pc(-1,y,!1),0<=x&&a.cb(gi,"parts",E,y,null,x,null),a=y.layerChanged,a!==null&&a(y,E,null))}Ct.Is=function(a,y){if(y===void 0&&(y=!1),an(a))for(var x=a.length,E=0;EE&&this.Ya(),this},Ct.Cy=function(a,y){Bf(this,a,y),a.Xe(this);var x=this.Wa,E=x.indexOf(a);0<=E&&(x.remove(a),this.cc!==null&&this.cb(gi,"layers",this,a,null,E,null));var b=x.count,z;for(z=0;zE&&this.Ya(),this},Ct.kA=function(a){if(a.diagram!==this&&ie("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,x=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var E=y.value,b=E.layerName;b!==a.name?E.layerName=b:E.layerName=""}this.cc!==null&&this.cb(gi,"layers",this,a,null,x,null),this.N(),this.Ya()}}},Ct.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},Ct.Yw=function(a){return this.pf===null&&(this.pf=new Je),this.pf.add(a),this.model.Pe(a),this},Ct.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Ct.Pe=function(a){return this.zg===null&&(this.zg=new Je),this.zg.add(a),this},Ct.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Ct.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==ts&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,E=0;Egt.Pa.indexOf(St)&>.oi(mt,St,wt):(St.isSelected=!1,St.isHighlighted=!1,St.Wb(),gt.pc(wt?mt:-1,St,wt)))}else gt instanceof de?typeof mt=="number"&&St instanceof Xr&&(y?(St.Xe(this),this.Wa.Gb(mt,St)):this.Wa.mb(mt)):ie("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else E!==ts&&ie("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},de.prototype.Ea=function(a){return this.undoManager.Ea(a)},de.prototype.eb=function(a){return this.undoManager.eb(a)},de.prototype.Kf=function(){return this.undoManager.Kf()},de.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var E=!1;try{a(this),E=!0}finally{E?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},de.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},de.prototype.rp=function(){this.partManager.rp()};function If(a,y,x){var E=a.animationManager;if(a.vb||a.ld)a.Ca=x,yu(a),a.N(),a.Ee=!0,E.zb&&(Sl(E)||E.ce.add(E.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,yu(a);else{a.vb=!0;var b=a.viewportBounds.copy(),z=a.Aa,tt=a.ya,ot=a.zoomPoint.x,rt=a.zoomPoint.y,at=a.contentAlignment;isNaN(ot)&&(at.$c()?at.Hf(Ge)?ot=0:at.Hf(Gs)&&(ot=z-1):ot=at.sb()?at.x*(z-1):z/2),isNaN(rt)&&(at.$c()?at.Hf(Tl)?rt=0:at.Hf(Ua)&&(rt=tt-1):rt=at.sb()?at.y*(tt-1):tt/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(x=a.scaleComputation(a,x)),xa.maxScale&&(x=a.maxScale),z=Rt.allocAt(a.pa.x+ot/y-ot/x,a.pa.y+rt/y-rt/x),a.position=z,Rt.free(z),a.Ca=x,yu(a),a.vb=!1,a.onViewportBoundsChanged(b,a.viewportBounds,y,!1),xl(a,!1),E.zb&&(Sl(E)||E.ce.add(E.H,"scale",y,a.Ca))}}de.prototype.onViewportBoundsChanged=function(a,y,x,E){if(!a.D(y)){E===void 0&&(E=!1),E||(this.Ee=!0),this.vd=!0;var b=this.layout;b===null||!b.isViewportSized||this.autoScale!==Bs||a.width===y.width&&a.height===y.height||b.C(),b=this.currentTool,this.Vk===!0&&b instanceof mo&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Yd(b,this)),this.vb||this.invalidateViewport(a,y),vu(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.canvasSize.width=Math.round(a.width*x),this.fc.canvasSize.height=Math.round(a.height*x),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=E,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function vu(a,y){var x=a.fe;if(x!==null&&x.visible){for(var E=tn.alloc(),b=1,z=1,tt=x.O.s,ot=tt.length,rt=0;rtut||(pv(at.figure)?z=z*ut/Jt.vx(z,ut):b=b*ut/Jt.vx(b,ut))}if(tt=x.gridCellSize,E.h(z*tt.width,b*tt.height),y!==void 0)b=y.width,z=y.height,a=y.x,tt=y.y;else{if(y=Me.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){Me.free(y);return}b=y.width,z=y.height,a=y.x,tt=y.y,Me.free(y)}x.width=b+2*E.width,x.height=z+2*E.height,y=Rt.alloc(),Jt.No(a,tt,0,0,E.width,E.height,y),y.offset(-E.width,-E.height),tn.free(E),x.part.location=y,Rt.free(y)}}de.prototype.clearSelection=function(a){a===void 0&&(a=!1);var y=this.selection;if(y.count!==0){a||this.R("ChangingSelection",y);for(var x=y.Fa(),E=x.length,b=0;b=E&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||el(z,"Layout")),a.xh=!1;for(var tt=a.ai.iterator;tt.next();)Rf(a,tt.value,y,E);b.isValidLayout||(!y||b.isRealtime||b.isRealtime===null||E===0?(b.doLayout(a),gs(a),b.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,E===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||E!==0&&E!==1||Ah(z),a.aa=x}}}function Rf(a,y,x,E){if(y!==null){for(var b=y.gl.iterator;b.next();)Rf(a,b.value,x,E);b=y.layout,b===null||b.isValidLayout||(!x||b.isRealtime||E===0?(y.rh=!y.location.w(),b.doLayout(y),y.C(32),Ic(a,y),b.isValidLayout=!0):a.xh=!0)}}Ct.yz=function(){for(var a=new Je,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function ev(a){function y(b){var z=b.toLowerCase(),tt=new Je;x.add(b,tt),x.add(z,tt),E.add(b,b),E.add(z,b)}var x=new Vn,E=new Vn;y("InitialAnimationStarting"),y("AnimationStarting"),y("AnimationFinished"),y("BackgroundSingleClicked"),y("BackgroundDoubleClicked"),y("BackgroundContextClicked"),y("ClipboardChanged"),y("ClipboardPasted"),y("DocumentBoundsChanged"),y("ExternalObjectsDropped"),y("GainedFocus"),y("InitialLayoutCompleted"),y("LayoutCompleted"),y("LinkDrawn"),y("LinkRelinked"),y("LinkReshaped"),y("LostFocus"),y("Modified"),y("ObjectSingleClicked"),y("ObjectDoubleClicked"),y("ObjectContextClicked"),y("PartCreated"),y("PartResized"),y("PartRotated"),y("SelectionMoved"),y("SelectionCopied"),y("SelectionDeleting"),y("SelectionDeleted"),y("SelectionGrouped"),y("SelectionUngrouped"),y("ChangingSelection"),y("ChangedSelection"),y("SubGraphCollapsed"),y("SubGraphExpanded"),y("TextEdited"),y("TreeCollapsed"),y("TreeExpanded"),y("ViewportBoundsChanged"),y("InvalidateDraw"),a.iw=x,a.hw=E}function rp(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function Sg(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;ie("Unknown DiagramEvent name: "+y)}Ct.Bj=function(a,y){return a=Sg(this,a),a!==null&&a.add(y),this},Ct.am=function(a,y){a=Sg(this,a),a!==null&&a.remove(y)},Ct.R=function(a,y,x){var E=Sg(this,a),b=new ri;if(b.diagram=this,a=rp(this,a),a!==null&&(b.name=a),y!==void 0&&(b.subject=y),x!==void 0&&(b.parameter=x),y=E.length,y===1)E.M(0)(b);else if(y!==0)for(E=E.Fa(),x=0;x=x.top&&0>=x.left&&0>=x.right&&0>=x.bottom)return y;var E=this.viewportBounds,b=this.scale;E=Me.allocAt(0,0,E.width*b,E.height*b);var z=Rt.allocAt(0,0);if(a.x>=E.x&&a.xE.x+E.width-x.right&&this.allowHorizontalScroll&&(tt=Math.max(this.scrollHorizontalLineChange,1),tt|=0,z.x+=tt,a.x>E.x+E.width-x.right/2&&(z.x+=tt),a.x>E.x+E.width-x.right/4&&(z.x+=4*tt));return a.y>=E.y&&a.yE.y+E.height-x.bottom&&this.allowVerticalScroll&&(tt=Math.max(this.scrollVerticalLineChange,1),tt|=0,z.y+=tt,a.y>E.y+E.height-x.bottom/2&&(z.y+=tt),a.y>E.y+E.height-x.bottom/4&&(z.y+=4*tt)),z.Xa($r)||(y=new Rt(y.x+z.x/b,y.y+z.y/b)),Me.free(E),Rt.free(z),y},Ct=de.prototype,Ct.Cs=function(){return null},Ct.av=function(){return null},Ct.bs=function(a,y){this.pj.add(a,y)},Ct.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof qn&&(y.$p=null)})};function bc(a,y,x){function E(){var ut=+new Date;for(z=!0,tt.reset();tt.next();)if(!tt.value[0].al){z=!1;break}z||ut-at>rt?y(x,b,ot):be.requestAnimationFrame(E)}for(var b=x.callback,z=!0,tt=a.Og.iterator;tt.next();)if(!tt.value[0].al){z=!1;break}if(typeof b!="function"||z)return y(x,b,a);var ot=a,rt=x.callbackTimeout||300,at=+new Date;return be.requestAnimationFrame(function(){E()}),null}Ct.Wz=function(a){return Qo?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Ct.Jx=function(a){return a===void 0&&(a={}),bc(this,this.Xz,a)},Ct.Xz=function(a,y,x){var E=ap(x,a,"canvas",null);if(E===null)return null;x=E.Z.canvas;var b=null;if(x!==null)switch(b=a.returnType,b===void 0?b="string":b=b.toLowerCase(),b){case oc+"data":b=E.getImageData(0,0,x.width,x.height);break;case oc:E=(a.document||document).createElement("img"),E.src=x.toDataURL(a.type,a.details),b=E;break;case"blob":return typeof y!="function"&&ie('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof x.toBlob=="function"?(x.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:b=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(b),null):b};function ap(a,y,x,E){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&ie("properties argument must be an Object.");var b=y.size||null,z=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(z="NaN");var tt=y.maxSize;y.maxSize===void 0&&(tt=x==="SVG"?new tn(1/0,1/0):new tn(2e3,2e3));var ot=y.position||null,rt=y.parts||null,at=y.padding===void 0?1:y.padding,ut=y.background||null,gt=y.omitTemporary;gt===void 0&&(gt=!0);var mt=y.document||document,St=y.elementFinished||null,wt=y.showTemporary;wt===void 0&&(wt=!gt),y=y.showGrid,y===void 0&&(y=wt),b!==null&&isNaN(b.width)&&isNaN(b.height)&&(b=null),typeof at=="number"?at=new ii(at):at instanceof ii||ie("MakeImage padding must be a Margin or a number."),at.left=Math.max(at.left,0),at.right=Math.max(at.right,0),at.top=Math.max(at.top,0),at.bottom=Math.max(at.bottom,0),a.ib.Vc(!0),gt=new Pl(null,mt,void 0,!0);var Et=gt.context;if(!(b||z||rt||ot))return gt.width=a.Aa+Math.ceil(at.left+at.right),gt.height=a.ya+Math.ceil(at.top+at.bottom),x==="SVG"?E===null?null:(E.resize(gt.width,gt.height,gt.width,gt.height),E.ownerDocument=mt,E.hs=St,fg(a,E.context,at,new tn(gt.width,gt.height),a.Ca,a.pa,rt,ut,wt,y),E.context):(a.Xm=!1,fg(a,Et,at,new tn(gt.width,gt.height),a.Ca,a.pa,rt,ut,wt,y),a.Xm=!0,gt.context);var Ot=a.Pp,Tt=a.documentBounds.copy();if(Tt.Fv(a.yb),wt)for(var Gt=a.Wa.s,Wt=Gt.length,_t=0;_tOt?(z=Ot,b=Tt.width,Tt=Tt.height):(b=tt.width,Tt=tt.height)):(b=Tt.width*z,Tt=Tt.height*z):(z=Ot,b=Tt.width,Tt=Tt.height),at!==null?(b+=ot,Tt+=Wt):at=new ii(0),tt!==null&&(Ot=tt.width,tt=tt.height,isNaN(Ot)&&(Ot=2e3),isNaN(tt)&&(tt=2e3),isFinite(Ot)&&(b=Math.min(b,Ot)),isFinite(tt)&&(Tt=Math.min(Tt,tt))),gt.width=Math.ceil(b),gt.height=Math.ceil(Tt),x==="SVG"?E===null?null:(E.resize(gt.width,gt.height,gt.width,gt.height),E.ownerDocument=mt,E.hs=St,fg(a,E.context,at,new tn(Math.ceil(b),Math.ceil(Tt)),z,Gt,rt,ut,wt,y),E.context):(a.Xm=!1,fg(a,Et,at,new tn(Math.ceil(b),Math.ceil(Tt)),z,Gt,rt,ut,wt,y),a.Xm=!0,gt.context)}fe.Object.defineProperties(de.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof ft||(a===""&&(a="default"),a=a.toLowerCase(),a!==this.nl&&(this.nl=a,a==="default"||a==="canvas"?(a=this.pj.get("svg"),a!==null&&a.Oa.remove(),this.ta&&(this.ib=this.ta.context)):a==="svg"?(this.pj.contains("svg")?a=this.pj.get("svg"):(a=new Su(this,be.document),this.bs("svg",a)),this.div!==null&&this.div.appendChild(a.Oa),this.ib=a.context,this.ta&&(this.ta.context.setTransform(this.Mb,0,0,this.Mb,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya))):a!=="debug"||this.pj.contains("SVG")||(a=new Su(this,be.document),this.bs("SVG",a),a.Oa.style.backgroundColor="whitesmoke",this.div!==null&&this.div.after(a.Oa)),this.hk()))}},div:{get:function(){return this.Ka},set:function(a){if(this.Ka!==a){var y=this.Ka;y!==null?(y.H=void 0,y.goDiagram=void 0,y.go=void 0,y.innerHTML="",this.ta!==null&&(y=this.ta.Oa,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.ta.mx()),this.ol&&(this.ol.disconnect(),this.ol=null),y=this.toolManager,y!==null&&(y.mouseDownTools.each(function(x){x.cancelWaitAfter()}),y.mouseMoveTools.each(function(x){x.cancelWaitAfter()}),y.mouseUpTools.each(function(x){x.cancelWaitAfter()})),y.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(be,"resize",this.Ov,!1),this.removeEventListener(be,"wheel",this.$j,!0),Iu===this&&(Iu=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),Pf(this,a),this.hk())}}},$w:{get:function(){return this.Sq}},pi:{get:function(){return this.hf}},draggedLink:{get:function(){return this.nt},set:function(a){this.nt!==a&&(this.nt=a,a!==null&&(this.Vt=a.fromPort,this.Wt=a.toPort))}},Mx:{get:function(){return this.Vt},set:function(a){this.Vt=a}},Nx:{get:function(){return this.Wt},set:function(a){this.Wt=a}},animationManager:{get:function(){return this.Yd}},undoManager:{get:function(){return this.cc.undoManager}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a,this.cc.skipsUndoManager=a}},delaysLayout:{get:function(){return this.lt},set:function(a){this.lt=a}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1a&&Kn(a,">= 0",de,"scrollHorizontalLineChange"),this.iu=a,this.g("scrollHorizontalLineChange",y,a))}},scrollVerticalLineChange:{get:function(){return this.mu},set:function(a){var y=this.mu;y!==a&&(0>a&&Kn(a,">= 0",de,"scrollVerticalLineChange"),this.mu=a,this.g("scrollVerticalLineChange",y,a))}},lastInput:{get:function(){return this.cj},set:function(a){this.cj=a}},previousInput:{get:function(){return this.Qg},set:function(a){this.Qg=a}},firstInput:{get:function(){return this.bq},set:function(a){this.bq=a}},currentCursor:{get:function(){return this.it},set:function(a){if(a===""&&(a=this.Op),this.it!==a){var y=this.ta,x=this.Ka;if(y!==null&&x!==null){this.it=a;var E=y.style.cursor;y.style.cursor=a,x.style.cursor=a,y.style.cursor===E&&(y.style.cursor="-webkit-"+a,x.style.cursor="-webkit-"+a,y.style.cursor===E&&(y.style.cursor="-moz-"+a,x.style.cursor="-moz-"+a,y.style.cursor===E&&(y.style.cursor=a,x.style.cursor=a)))}}}},defaultCursor:{get:function(){return this.Op},set:function(a){a===""&&(a="auto");var y=this.Op;y!==a&&(this.Op=a,this.g("defaultCursor",y,a))}},click:{get:function(){return this.zh},set:function(a){var y=this.zh;y!==a&&(this.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.Fh},set:function(a){var y=this.Fh;y!==a&&(this.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.Bh},set:function(a){var y=this.Bh;y!==a&&(this.Bh=a,this.g("contextClick",y,a))}},mouseOver:{get:function(){return this.Qh},set:function(a){var y=this.Qh;y!==a&&(this.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.Oh},set:function(a){var y=this.Oh;y!==a&&(this.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.Nh},set:function(a){var y=this.Nh;y!==a&&(this.Nh=a,this.g("mouseHold",y,a))}},mouseDragOver:{get:function(){return this.Qt},set:function(a){var y=this.Qt;y!==a&&(this.Qt=a,this.g("mouseDragOver",y,a))}},mouseDrop:{get:function(){return this.Lh},set:function(a){var y=this.Lh;y!==a&&(this.Lh=a,this.g("mouseDrop",y,a))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(a){var y=this.xt;y!==a&&(this.xt=a,this.g("handlesDragDropForTopLevelParts",y,a))}},mouseEnter:{get:function(){return this.Mh},set:function(a){var y=this.Mh;y!==a&&(this.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.Ph},set:function(a){var y=this.Ph;y!==a&&(this.Ph=a,this.g("mouseLeave",y,a))}},toolTip:{get:function(){return this.$h},set:function(a){var y=this.$h;y!==a&&(this.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.Ch},set:function(a){var y=this.Ch;y!==a&&(this.Ch=a,this.g("contextMenu",y,a))}},commandHandler:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a,a.Xe(this))}},toolManager:{get:function(){return this.te},set:function(a){this.te!==a&&(this.te=a,a.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(a){var y=this.ob;y!==a&&(this.ob=a,a.diagram=this,this.currentTool===y&&(this.currentTool=a))}},currentTool:{get:function(){return this.hb},set:function(a){var y=this.hb;y&&(y.isActive&&y.doDeactivate(),y.cancelWaitAfter(),y.doStop()),a===null&&(a=this.defaultTool),a!==null&&(this.hb=a,a.diagram=this,a.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(a){var y=this.Nt;if(y!==a)if(0<=a&&!isNaN(a)){if(this.Nt=a,this.g("maxSelectionCount",y,a),!this.undoManager.isUndoingRedoing&&(a=this.selection.count-a,0= 0",de,"maxSelectionCount")}},nodeSelectionAdornmentTemplate:{get:function(){return this.St},set:function(a){var y=this.St;y!==a&&(this.St=a,this.g("nodeSelectionAdornmentTemplate",y,a))}},groupSelectionAdornmentTemplate:{get:function(){return this.wt},set:function(a){var y=this.wt;y!==a&&(this.wt=a,this.g("groupSelectionAdornmentTemplate",y,a))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kt},set:function(a){var y=this.Kt;y!==a&&(this.Kt=a,this.g("linkSelectionAdornmentTemplate",y,a))}},highlighteds:{get:function(){return this.nw}},isModified:{get:function(){var a=this.undoManager;return a.isEnabled?a.currentTransaction!==null?!0:this.rn&&this.Ce!==a.historyIndex:this.rn},set:function(a){if(this.rn!==a){this.rn=a;var y=this.undoManager;!a&&y.isEnabled&&(this.Ce=y.historyIndex),a||ip(this)}}},model:{get:function(){return this.cc},set:function(a){var y=this.cc;if(y!==a){this.currentTool.doCancel(),y&&y.undoManager!==a.undoManager&&y.undoManager.isInTransaction&&ie("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=wf(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var E=this.vb;this.vb=!0,el(this.animationManager,"Model"),y&&(this.pf!==null&&this.pf.each(function(z){return y.ik(z)}),y.ik(this.Oc)),this.cc=a,this.partManager=bf(this.cc.type);for(var b=0;bthis.scale&&(this.scale=a)):Kn(a,"> 0",de,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(a){var y=this.Mt;y!==a&&(0 0",de,"maxScale"))}},zoomPoint:{get:function(){return this.zu},set:function(a){this.zu.D(a)||(this.zu=a=a.J())}},contentAlignment:{get:function(){return this.zk},set:function(a){var y=this.zk;y.D(a)||(this.zk=a=a.J(),this.g("contentAlignment",y,a),xl(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(a){var y=this.pq;y.D(a)||(this.pq=a=a.J(),this.g("initialContentAlignment",y,a))}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new ii(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.Ya(),this.g("padding",y,a))}},partManager:{get:function(){return this.Pc},set:function(a){var y=this.Pc;y!==a&&(a.diagram!==null&&ie("Cannot share PartManagers between Diagrams: "+a.toString()),y&&y.Xe(null),this.Pc=a,a.Xe(this))}},nodes:{get:function(){return this.partManager.nodes.iterator}},links:{get:function(){return this.partManager.links.iterator}},parts:{get:function(){return this.partManager.parts.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;y!==a&&(this.Sc=a,a.diagram=this,a.group=null,this.xh=!0,this.g("layout",y,a),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(a){var y=this.Ht;if(y!==a&&(this.Ht=a,this.g("isTreePathToChildren",y,a),!this.undoManager.isUndoingRedoing))for(a=this.nodes;a.next();)o0(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==Bh&&a!==xr&&a!==Cg&&ie("Unknown Diagram.treeCollapsePolicy: "+a),this.uu=a,this.g("treeCollapsePolicy",y,a))}},Ue:{get:function(){return this.pw},set:function(a){this.pw=a}},avoidanceCellSize:{get:function(){return this.aw},set:function(a){this.Xh=null,this.aw=new tn(Math.max(1,a.width),Math.max(1,a.height))}},avoidanceLimit:{get:function(){return this.bw},set:function(a){this.bw=Math.max(1,a)}},autoScrollInterval:{get:function(){return this.vp},set:function(a){var y=this.vp;y!==a&&(this.vp=a,this.g("autoScrollInterval",y,a))}},autoScrollRegion:{get:function(){return this.xp},set:function(a){typeof a=="number"&&(a=new ii(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),fe.Object.defineProperties(de,{licenseKey:{get:function(){return _f.jc()},set:function(a){_f.add(a.replace(/\s/g,""))}},version:{get:function(){return ic}}}),de.prototype.makeImageData=de.prototype.Jx,de.prototype.makeImage=de.prototype.Wz,de.prototype.cacheGroupExternalLinks=de.prototype.Fu,de.prototype.addRenderer=de.prototype.bs,de.prototype.makeSVG=de.prototype.av,de.prototype.makeSvg=de.prototype.Cs,de.prototype.stopAutoScroll=de.prototype.ug,de.prototype.doAutoScroll=de.prototype.gs,de.prototype.isUnoccupied=de.prototype.Yj,de.prototype.raiseDiagramEvent=de.prototype.R,de.prototype.removeDiagramListener=de.prototype.am,de.prototype.addDiagramListener=de.prototype.Bj,de.prototype.findTreeRoots=de.prototype.yz,de.prototype.layoutDiagram=de.prototype.Uz,de.prototype.findTopLevelGroups=de.prototype.qz,de.prototype.findTopLevelNodesAndLinks=de.prototype.rz,de.prototype.ensureBounds=de.prototype.Va,de.prototype.findLinksByExample=de.prototype.ls,de.prototype.findNodesByExample=de.prototype.ms,de.prototype.findLinkForData=de.prototype.Kc,de.prototype.findNodeForData=de.prototype.ii,de.prototype.findPartForData=de.prototype.Lc,de.prototype.findLinkForKey=de.prototype.findLinkForKey,de.prototype.findNodeForKey=de.prototype.Vb,de.prototype.findPartForKey=de.prototype.findPartForKey,de.prototype.rebuildParts=de.prototype.Wd,de.prototype.transformViewToDoc=de.prototype.Ps,de.prototype.transformRectDocToView=de.prototype.zA,de.prototype.transformDocToView=de.prototype.op,de.prototype.centerRect=de.prototype.es,de.prototype.scrollToRect=de.prototype.tv,de.prototype.scroll=de.prototype.scroll,de.prototype.highlightCollection=de.prototype.Jz,de.prototype.highlight=de.prototype.Iz,de.prototype.selectCollection=de.prototype.rA,de.prototype.select=de.prototype.select,de.prototype.updateAllRelationshipsFromData=de.prototype.rp,de.prototype.updateAllTargetBindings=de.prototype.updateAllTargetBindings,de.prototype.commit=de.prototype.commit,de.prototype.rollbackTransaction=de.prototype.Kf,de.prototype.commitTransaction=de.prototype.eb,de.prototype.startTransaction=de.prototype.Ea,de.prototype.raiseChanged=de.prototype.g,de.prototype.raiseChangedEvent=de.prototype.cb,de.prototype.removeChangedListener=de.prototype.ik,de.prototype.addChangedListener=de.prototype.Pe,de.prototype.removeModelChangedListener=de.prototype.mA,de.prototype.addModelChangedListener=de.prototype.Yw,de.prototype.findLayer=de.prototype.Qj,de.prototype.removeLayer=de.prototype.kA,de.prototype.addLayerAfter=de.prototype.Cy,de.prototype.addLayerBefore=de.prototype.Ww,de.prototype.addLayer=de.prototype.Al,de.prototype.moveParts=de.prototype.moveParts,de.prototype.copyParts=de.prototype.Kj,de.prototype.removeParts=de.prototype.Is,de.prototype.remove=de.prototype.remove,de.prototype.add=de.prototype.add,de.prototype.clearDelayedGeometries=de.prototype.bx,de.prototype.setProperties=de.prototype.nm,de.prototype.attach=de.prototype.Du,de.prototype.set=de.prototype.set,de.prototype.resetInputOptions=de.prototype.Sx,de.prototype.setInputOption=de.prototype.sA,de.prototype.getInputOption=de.prototype.Ql,de.prototype.resetRenderingHints=de.prototype.Tx,de.prototype.setRenderingHint=de.prototype.Xx,de.prototype.getRenderingHint=de.prototype.Gf,de.prototype.maybeUpdate=de.prototype.bd,de.prototype.requestUpdate=de.prototype.$b,de.prototype.delayInitialization=de.prototype.Xy,de.prototype.isUpdateRequested=de.prototype.Pz,de.prototype.invalidateDocumentBounds=de.prototype.Ya,de.prototype.findObjectsNear=de.prototype.og,de.prototype.findPartsNear=de.prototype.mz,de.prototype.findObjectsIn=de.prototype.Cf,de.prototype.findPartsIn=de.prototype.ux,de.prototype.findObjectsAt=de.prototype.ji,de.prototype.findPartsAt=de.prototype.lz,de.prototype.findObjectAt=de.prototype.ic,de.prototype.findPartAt=de.prototype.Ol,de.prototype.focusObject=de.prototype.zz,de.prototype.alignDocument=de.prototype.Jy,de.prototype.zoomToRect=de.prototype.BA,de.prototype.zoomToFit=de.prototype.zoomToFit,de.prototype.diagramScroll=de.prototype.kx,de.prototype.focus=de.prototype.focus;var Mg=new Vn,lp=null,Qo=be.document!==void 0,nc=null,Sd="",Bs=new je(de,"None",0),Va=new je(de,"Uniform",1),xd=new je(de,"UniformToFill",2),jc=new je(de,"CycleAll",10),Hf=new je(de,"CycleNotDirected",11),Uf=new je(de,"CycleNotDirectedFast",12),Wf=new je(de,"CycleNotUndirected",13),Yf=new je(de,"CycleDestinationTree",14),Vf=new je(de,"CycleSourceTree",15),Th=new je(de,"DocumentScroll",1),Oc=new je(de,"InfiniteScroll",2),Bh=new je(de,"TreeParentCollapsed",21),xr=new je(de,"AllParentsCollapsed",22),Cg=new je(de,"AnyParentsCollapsed",23),_f=new Je,ic="2.3.10",oc="image",zc=null,up=!1;function As(){if(Qo){var a=be.document.createElement("canvas"),y=a.getContext("2d"),x=Xe("7ca11abfd022028846");y[x]=Xe("398c3597c01238");for(var E=["5da73c80a36455d7038e4972187c3cae51fd22",An.Dx+"4ae6247590da4bb21c324ba3a84e385776",In.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Jt.za],b=1;5>b;b++)y[Xe("7ca11abfd7330390")](Xe(E[b-1]),10,15*b);for(y[x]=Xe("39f046ebb36e4b"),x=1;5>x;x++)y[Xe("7ca11abfd7330390")](Xe(E[x-1]),10,15*x);(E.length!==4||E[0][0]!=="5"||E[3][0]!=="7")&&(In.prototype.Cd=In.prototype.Eu),zc=a}}de.className="Diagram",de.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=be.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof de?y.H:null},de.inherit=function(a,y){function x(){}if(Object.getPrototypeOf(a).prototype)throw Error(`Used go.Diagram.inherit defining already defined class +`+a);x.prototype=y.prototype,a.prototype=new x,a.prototype.constructor=a},de.useDOM=function(a){Qo=a?be.document!==void 0:!1},de.isUsingDOM=function(){return Qo},de.None=Bs,de.Uniform=Va,de.UniformToFill=xd,de.CycleAll=jc,de.CycleNotDirected=Hf,de.CycleNotDirectedFast=Uf,de.CycleNotUndirected=Wf,de.CycleDestinationTree=Yf,de.CycleSourceTree=Vf,de.DocumentScroll=Th,de.InfiniteScroll=Oc,de.TreeParentCollapsed=Bh,de.AllParentsCollapsed=xr,de.AnyParentsCollapsed=Cg;function hp(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function rc(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)t:{y="f";var x=be[Xe("76a715b2f73f148a")][Xe("72ba13b5")]||"";if(a.Rc=!0,Qo){var E=de[Xe("76a115b6ed251eaf4692")];if(E)for(var b=_f.iterator;b.next()&&(E=b.value,E=Xe(E).split(Xe("39e9")),!(6>E.length));){var z=Xe(E[1]).split(".");if(E[4]!=="7da71ca0")break;var tt=Xe(An[Xe("6cae19")]).split(".");if(z[0]>tt[0]||z[0]===tt[0]&&z[1]>=tt[1]){var ot=be[Xe("74a900bae4370f8b51")][Xe("6fbb13a1c2311e8a57")].toLowerCase();if(tt=ot[Xe("73a612b6fb191d")](Xe("3aad1ab6e022098b4dc4")),z=Xe(E[2]),-1tt&&z!==Xe("7da71ca0ad381e90")&&(tt=y[Xe("73a612b6fb191d")](Xe("76a715b2ef3e149757"))),0>tt&&(tt=y[Xe("73a612b6fb191d")](Xe("76a715b2ef3e149757"))),0>tt&&(tt=y[Xe("73a612b6fb191d")](Xe("2bfa41fdb3784bca12"))),0>tt&&(tt=x[Xe("73a612b6fb191d")](Xe("7baa19a6f76c1988428554"))),a.Rc=!(0<=tt&&ttot),!a.Rc)))break;if(z[0]==="#"){tt=be.document.createElement("div");for(var rt=E[0].replace(/[A-Za-z]/g,"");4>rt.length;)rt+="9";if(ot=rt,rt=rt.substr(rt.length-4),E="",E+=["gsh","gsf"][parseInt(rt.substr(0,1),10)%2],E+=["Header","Background","Display","Feedback"][parseInt(rt.substr(0,1),10)%4],tt[Xe("79a417a0f0181a8946")]=E,be.document[Xe("78a712aa")]){be.document[Xe("78a712aa")][Xe("7bb806b6ed32388c4a875b")](tt),rt=be.getComputedStyle(tt).getPropertyValue(Xe("78a704b7e62456904c9b12701b6532a8"));var at=be.getComputedStyle(tt).getPropertyValue(Xe("75b817b0ea2202"));if(be.document[Xe("78a712aa")][Xe("68ad1bbcf533388c4a875b")](tt),rt){if(tt=be[Xe("77a902b0eb1b1e804a8a")],at==="0."+parseInt(ot,10)%100||rt.indexOf(parseInt(z[1]+z[2],16))!==-1&&rt.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(tt&&tt(Xe("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(E="."+E,z=0;zE.updateDelay?E.N():E.o||(E.o=!0,setTimeout(function(){return E.redraw()},E.updateDelay))},x.Of=function(){E.observed!==null&&Nt(E)},x.autoScale=Va,x.vb=!1,y&&Object.assign(x,y),x}pe(ft,de),ft.prototype.computePixelRatio=function(){return 1},ft.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var a=this.ta,y=this.ib;if(a!==null&&y!==null){if($d(this),this.ql===null){var x=new Pl(null);x.width=a.width,x.height=a.height,this.ql=x}try{this.ta=this.ql,this.ib=this.ta.context,this.ib.Vc(!0),this.ib.setTransform(1,0,0,1,0,0),this.ib.clearRect(0,0,this.ta.width,this.ta.height),Pt(this)}finally{this.ta=a,this.ib=y}}}de.prototype.redraw.call(this)},ft.prototype.gc=function(){if(this.Ka===null&&ie("No div specified"),this.ta===null&&ie("No canvas specified"),!(this.ta instanceof Su)&&(bv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){$d(this);var y=this.ta;a=this.ib,a.Vc(!0),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,y.width,y.height),1>this.updateDelay?Pt(this):this.ql!==null&&(a.drawImage(this.ql.Oa,0,0),y=this.Ab,y.reset(),this.scale!==1&&y.scale(this.scale),this.position.x===0&&this.position.y===0||y.translate(-this.position.x,-this.position.y),a.scale(this.Mb,this.Mb),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.yc()),y=this.Wa.s;for(var x=y.length,E=0;Ea&&(a=0),this.ia!==a&&(this.ia=a)}}}),ft.className="Overview";function zt(){xo.call(this),this.j=null}pe(zt,xo),zt.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||!a.allowMove||!a.allowSelect)return!1;var y=a.observed;if(y===null)return!1;var x=a.lastInput;return!x.left||a.currentTool!==this&&(!this.isBeyondDragSize()||x.isTouchEvent&&x.timestamp-a.firstInput.timestampy.maxScale||(y.scale=a))},jt.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==Bs?!1:(a=y.scale*a,ay.maxScale?!1:y.allowZoom)},jt.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===Bs&&(a=y.scale*a,ay.maxScale||(y.scale=a))},jt.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==Bs?!1:(a=y.scale*a,ay.maxScale?!1:y.allowZoom)},jt.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;ay.maxScale||(y.scale=a)},jt.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return ay.maxScale?!1:y.allowZoom},jt.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,E=a.scale;el(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&E===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=xs):(this.Jt=E,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),Ah(y)},jt.prototype.canZoomToFit=function(){return this.diagram.allowZoom},jt.prototype.scrollToPart=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.Va(),a===null){try{this.cg!==null&&(this.cg.next()?a=this.cg.value:this.cg=null)}catch(rt){this.cg=null}a===null&&(0a&&(a+=360)),a},Ct.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Ct.qs=function(a,y){return y===void 0&&(y=new Rt),y.assign(a),this.oe.Cd(y),y},Ct.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Ct.Sj=function(a,y,x,E,b){var z=this.transform,tt=1/(z.m11*z.m22-z.m12*z.m21),ot=z.m22*tt,rt=-z.m12*tt,at=-z.m21*tt,ut=z.m11*tt,gt=tt*(z.m21*z.dy-z.m22*z.dx),mt=tt*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,Jt.Ff(z.left,z.top,z.right,z.bottom,a,y,x,E,b)):(tt=a*ot+y*at+gt,a=a*rt+y*ut+mt,y=x*ot+E*at+gt,x=x*rt+E*ut+mt,b.h(0,0),E=this.naturalBounds,x=Jt.Ff(0,0,E.width,E.height,tt,a,y,x,b),b.transform(z),x)},Xt.prototype.measure=function(a,y,x,E){if(Za(this)!==!1){var b=this.Kg,z=b.right+b.left;b=b.top+b.bottom,a=Math.max(a-z,0),y=Math.max(y-b,0),x=Math.max((x||0)-z,0),E=Math.max((E||0)-b,0),z=this.angle,b=this.desiredSize;var tt=this.kq();z===90||z===270?(a=isFinite(b.height)?b.height+tt:a,y=isFinite(b.width)?b.width+tt:y):(a=isFinite(b.width)?b.width+tt:a,y=isFinite(b.height)?b.height+tt:y),b=x||0,tt=E||0;var ot=this instanceof Ue;switch(aa(this,!0)){case Te:tt=b=0,ot&&(y=a=1/0);break;case Re:isFinite(a)&&a>x&&(b=a),isFinite(y)&&y>E&&(tt=y);break;case Nn:isFinite(a)&&a>x&&(b=a),tt=0,ot&&(y=1/0);break;case Hn:isFinite(y)&&y>E&&(tt=y),b=0,ot&&(a=1/0)}ot=this.maxSize;var rt=this.minSize;b>ot.width&&rt.widthot.height&&rt.heighta.height||this.Cb>a.width))&&(x=!0)),this.l=x?this.l|256:this.l&-257,this.Ib.w()||ie("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Ou(this,!1),Me.free(z)},Ct=Xt.prototype,Ct.eh=function(){};function Is(a,y,x,E,b){if(a.Ib.h(y,x,E,b),!a.desiredSize.w()){var z=a.uc;x=a.Kg,y=x.right+x.left;var tt=x.top+x.bottom;switch(x=z.width+y,z=z.height+tt,E+=y,b+=tt,y=aa(a,!0),x===E&&z===b&&(y=Te),y){case Te:(x>E||z>b)&&(wr(a,!0),a.measure(x>E?E:x,z>b?b:z,0,0));break;case Re:wr(a,!0),a.measure(E,b,0,0);break;case Nn:wr(a,!0),a.measure(E,z,0,0);break;case Hn:wr(a,!0),a.measure(x,b,0,0)}}}Ct.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||zv(x,!0),this.N(),au(a,y)||(x.oh(),this.Pn(x)))},Ct.Pn=function(a){this.portId!==null&&(zv(a,!0),a instanceof en&&W1(a,this))},Ct.gc=function(a,y){if(!ol(this,a,y)&&this.visible){var x=this.opacity;if(x!==0){var E=1;x!==1&&(E=a.globalAlpha,a.globalAlpha=E*x);var b="";this.filter!==""&&(b=a.filter,a.filter=this.filter);var z=this instanceof Ue&&jh(this),tt=this.Ib;if(z){var ot=this.Ib,rt=this.dc,at=this.areaBackground,ut=this.Ma;at===null&&ut===null||a.yc(),at!==null&&(Xo(this,a,at,!0,!0,rt,ot),at instanceof Vi&&at.type===al?(a.beginPath(),a.rect(ot.x,ot.y,ot.width,ot.height),a.ng(at)):a.fillRect(ot.x,ot.y,ot.width,ot.height)),ut!==null&&(Xo(this,a,ut,!0,!1,rt,ot),ut instanceof Vi&&ut.type===al?(a.beginPath(),a.rect(ot.x,ot.y,ot.width,ot.height),a.ng(ut)):a.fillRect(ot.x,ot.y,ot.width,ot.height)),this.hh(a,y)}if(!z&&(z||tt.width!==0&&tt.height!==0&&!isNaN(tt.x)&&!isNaN(tt.y))){z=this.transform,ot=this.panel,this.l&4096&&ns(this),at=this.part,rt=!1;var gt=0;at&&y.Gf("drawShadows")&&(rt=at.isShadowed)&&(ut=at.shadowOffset,gt=Math.max(ut.y,ut.x)*y.scale*y.Mb),ut=this.Dd();var mt;if(!(mt=y.$i||!ut)){var St=this.naturalBounds;mt=this.wh;var wt=mt.m11,Et=mt.m21,Ot=mt.dx,Tt=mt.m12,Gt=mt.m22,Wt=mt.dy,_t,Kt=_t=0;mt=_t*wt+Kt*Et+Ot;var he=_t*Tt+Kt*Gt+Wt;_t=St.width+gt,Kt=0;var $e=_t*wt+Kt*Et+Ot;_t=_t*Tt+Kt*Gt+Wt,Kt=Math.min(mt,$e);var Sn=Math.min(he,_t),hn=Math.max(mt+0,$e)-Kt,Ye=Math.max(he+0,_t)-Sn;mt=Kt,he=Sn,_t=St.width+gt,Kt=St.height+gt,$e=_t*wt+Kt*Et+Ot,_t=_t*Tt+Kt*Gt+Wt,Kt=Math.min(mt,$e),Sn=Math.min(he,_t),hn=Math.max(mt+hn,$e)-Kt,Ye=Math.max(he+Ye,_t)-Sn,mt=Kt,he=Sn,_t=0,Kt=St.height+gt,$e=_t*wt+Kt*Et+Ot,_t=_t*Tt+Kt*Gt+Wt,Kt=Math.min(mt,$e),Sn=Math.min(he,_t),hn=Math.max(mt+hn,$e)-Kt,Ye=Math.max(he+Ye,_t)-Sn,mt=Kt,he=Sn,gt=y.viewportBounds,St=gt.x,wt=gt.y,mt=!(mt>gt.width+St||St>hn+mt||he>gt.height+wt||wt>Ye+he)}if(mt){if(mt=(this.l&256)!==0,a.clipInsteadOfFill&&(mt=!1),this instanceof ao&&(a.font=this.font),mt){if(he=ot.se()?ot.naturalBounds:ot.actualBounds,hn=Math.max(tt.x,he.x),Ye=Math.max(tt.y,he.y),gt=Math.min(tt.right,he.right)-hn,St=Math.min(tt.bottom,he.bottom)-Ye,wt=this.tb,wt!==null&&(hn=wt.x,Ye=wt.y,gt=wt.width,St=wt.height),hn>tt.width+tt.x||tt.x>he.width+he.x){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}a.save(),a.beginPath(),a.rect(hn,Ye,gt,St),a.clip()}if(ut){if(!at.isVisible()){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}rt&&(he=at.shadowOffset,a.Ev(he.x*y.scale*this.scale*y.Mb,he.y*y.scale*this.scale*y.Mb,at.shadowBlur),lh(a),a.shadowColor=at.shadowColor)}rt&&this.shadowVisible===!0?lh(a):rt&&this.shadowVisible===!1&&zu(a),at=this.naturalBounds,this.areaBackground!==null&&(a.yc(),_a(this,a,at,tt)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),rt&&Jr(this,ot)&&this.shadowVisible===null&&zu(a),this.Ma!==null&&(a.yc(),xa(this,a,at,tt)),rt&&(this.Ma!==null||this.areaBackground!==null||Jr(this,ot))?(zl(this,!0),this.shadowVisible===null&&zu(a)):zl(this,!1),this.hh(a,y),rt&&this.l&512&&lh(a),ut&&rt&&zu(a),mt&&(a.restore(),a.Vc(this instanceof Ue)),z.ws()||(y=1/(z.m11*z.m22-z.m12*z.m21),a.transform(z.m22*y,-z.m12*y,-z.m21*y,z.m11*y,y*(z.m21*z.dy-z.m22*z.dx),y*(z.m12*z.dx-z.m11*z.dy)))}}x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b)}}};function Jr(a,y){return y===null?!1:(jh(y)&&(y=y.panel),(y.l&512)!==0||(y.type===Ue.Auto||y.type===Ue.Spot)&&y.Pb()!==a)}Ct.Dv=function(){};function _a(a,y,x,E){Xo(a,y,a.areaBackground,!0,!0,x,E),a.areaBackground instanceof Vi&&a.areaBackground.type===al?(y.beginPath(),y.rect(E.x,E.y,E.width,E.height),y.ng(a.areaBackground)):y.fillRect(E.x,E.y,E.width,E.height)}function xa(a,y,x,E){var b=a.kq(),z=x.x,tt=x.y,ot=x.width+b,rt=x.height+b;Xo(a,y,a.Ma,!0,!1,x,E),a.Ma instanceof Vi&&a.Ma.type===al?(y.beginPath(),y.rect(z-b/2,tt-b/2,ot,rt),y.ng(a.Ma)):y.fillRect(z-b/2,tt-b/2,ot,rt)}function Ns(a,y,x){for(var E=y.O.s,b=E.length,z=-1,tt=0;ttb)&&ie("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+b),a.isRow=!0,a.index=b):y.column!==void 0&&(b=y.column,(b==null||b===1/0||isNaN(b)||0>b)&&ie("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+b),a.isRow=!1,a.index=b),b=new mi;for(x in y)x!=="row"&&x!=="column"&&(b[x]=y[x]);qd(a,b)}else qd(a,y);else ie('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function Ih(a,y){Lg.add(a,y)}function dp(a,y,x){x===void 0&&(x=null);var E=a[1];if(typeof x=="function"?x(E):typeof E=="string")return a.splice(1,1),E;if(y===void 0)throw Error("no "+(typeof x=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}fe.Object.defineProperties(Xt.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new Hc),this.A.zp=a)}},localBindings:{get:function(){return this.A!==null?this.A.te:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new Hc),this.A.te=a)}},srcBindings:{get:function(){return this.A!==null?this.A.wm:null},set:function(a){this.srcBindings!==a&&(this.A===null&&(this.A=new Hc),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(oi(this),this.A.Ci=a,this.Uc=!0,this.N(),this.g("shadowVisible",y,a))}},enabledChanged:{get:function(){return this.A!==null?this.A.Hb:null},set:function(a){var y=this.enabledChanged;y!==a&&(oi(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Zs},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new wd),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===Zs&&(this.angle=0))}},segmentIndex:{get:function(){return this.Ua!==null?this.Ua.u:-1/0},set:function(a){a=Math.round(a);var y=this.segmentIndex;y!==a&&(this.Ua===null&&(this.Ua=new wd),this.Ua.u=a,this.v(),this.g("segmentIndex",y,a))}},segmentFraction:{get:function(){return this.Ua!==null?this.Ua.o:0},set:function(a){isNaN(a)||0>a?a=0:1a||1=a&&ie("GraphObject.scale for "+this+" must be greater than zero, not: "+a),this.Ca=a,this.v(),this.g("scale",y,a))}},angle:{get:function(){return this.Kb},set:function(a){var y=this.Kb;y!==a&&(a%=360,0>a&&(a+=360),y!==a&&(this.Kb=a,Zy(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,E=this.jd,b=E.width,z=E.height;(b===y||isNaN(b)&&isNaN(y))&&(z===x||isNaN(z)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof ni&&this.qc(),this.g("desiredSize",E,a),rs(this)&&(a=this.part,a!==null&&(vo(this,a,"width"),vo(this,a,"height"))))}},width:{get:function(){return this.jd.width},set:function(a){var y=this.jd.width;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new tn(a,this.jd.height).freeze(),this.v(),this instanceof ni&&this.qc(),this.g("desiredSize",y,a),rs(this)&&(a=this.part,a!==null&&vo(this,a,"width")))}},height:{get:function(){return this.jd.height},set:function(a){var y=this.jd.height;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new tn(this.jd.width,a).freeze(),this.v(),this instanceof ni&&this.qc(),this.g("desiredSize",y,a),rs(this)&&(a=this.part,a!==null&&vo(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:Pi},set:function(a){var y=this.minSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=0),isNaN(a.height)&&(a.height=0),a.freeze(),oi(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Rr},set:function(a){var y=this.maxSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=1/0),isNaN(a.height)&&(a.height=1/0),a.freeze(),oi(this),this.A.o=a,this.v(),this.g("maxSize",y,a))}},measuredBounds:{get:function(){return this.uc}},naturalBounds:{get:function(){return this.dc}},margin:{get:function(){return this.Kg},set:function(a){typeof a=="number"&&(a=new ii(a));var y=this.Kg;y.D(a)||(this.Kg=a=a.J(),this.v(),this.g("margin",y,a))}},transform:{get:function(){return this.l&2048&&ns(this),this.Ab}},oe:{get:function(){return this.l&4096&&ns(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(oi(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:Te},set:function(a){this.reshapingBehavior!==a&&(oi(this),this.A.Pf=a)}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(a.Mc()&&!a.Xb()&&ie("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),Ws(this),this.g("alignment",y,a))}},column:{get:function(){return this.Ag},set:function(a){a=Math.round(a);var y=this.Ag;y!==a&&(0>a&&Kn(a,">= 0",Xt,"column"),this.Ag=a,this.v(),this.g("column",y,a),this.svg!==null&&this.svg.remove())}},columnSpan:{get:function(){return this.A!==null?this.A.ob:1},set:function(a){a=Math.round(a);var y=this.columnSpan;y!==a&&(1>a&&Kn(a,">= 1",Xt,"columnSpan"),oi(this),this.A.ob=a,this.v(),this.g("columnSpan",y,a))}},row:{get:function(){return this.io},set:function(a){a=Math.round(a);var y=this.io;y!==a&&(0>a&&Kn(a,">= 0",Xt,"row"),this.io=a,this.v(),this.g("row",y,a),this.svg!==null&&this.svg.remove())}},rowSpan:{get:function(){return this.A!==null?this.A.Bi:1},set:function(a){a=Math.round(a);var y=this.rowSpan;y!==a&&(1>a&&Kn(a,">= 1",Xt,"rowSpan"),oi(this),this.A.Bi=a,this.v(),this.g("rowSpan",y,a))}},spanAllocation:{get:function(){return this.A!==null?this.A.Di:null},set:function(a){var y=this.spanAllocation;y!==a&&(oi(this),this.A.Di=a,this.v(),this.g("spanAllocation",y,a))}},alignmentFocus:{get:function(){return this.sk},set:function(a){var y=this.sk;y.D(a)||(this.sk=a=a.J(),this.v(),this.g("alignmentFocus",y,a))}},portId:{get:function(){return this.Yn},set:function(a){var y=this.Yn;if(y!==a){var x=this.part;x===null||x instanceof en||ie("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Uv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,_1(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Er},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),sc(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Kn(a,">= 0",Xt,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),sc(this))}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:0},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.g("toShortLength",y,a),sc(this))}},toLinkable:{get:function(){return this.ba!==null?this.ba.Tr:null},set:function(a){var y=this.toLinkable;y!==a&&(this.Xc(),this.ba.Tr=a,this.g("toLinkable",y,a))}},toMaxLinks:{get:function(){return this.ba!==null?this.ba.Ur:1/0},set:function(a){var y=this.toMaxLinks;y!==a&&(0>a&&Kn(a,">= 0",Xt,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Er},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),sc(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Kn(a,">= 0",Xt,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),sc(this))}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:0},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.g("fromShortLength",y,a),sc(this))}},fromLinkable:{get:function(){return this.ba!==null?this.ba.hq:null},set:function(a){var y=this.fromLinkable;y!==a&&(this.Xc(),this.ba.hq=a,this.g("fromLinkable",y,a))}},fromMaxLinks:{get:function(){return this.ba!==null?this.ba.iq:1/0},set:function(a){var y=this.fromMaxLinks;y!==a&&(0>a&&Kn(a,">= 0",Xt,"fromMaxLinks"),this.Xc(),this.ba.iq=a,this.g("fromMaxLinks",y,a))}},cursor:{get:function(){return this.A!==null?this.A.j:""},set:function(a){var y=this.cursor;y!==a&&(oi(this),this.A.j=a,this.g("cursor",y,a))}},click:{get:function(){return this.A!==null?this.A.zh:null},set:function(a){var y=this.click;y!==a&&(oi(this),this.A.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.A!==null?this.A.Fh:null},set:function(a){var y=this.doubleClick;y!==a&&(oi(this),this.A.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.A!==null?this.A.Bh:null},set:function(a){var y=this.contextClick;y!==a&&(oi(this),this.A.Bh=a,this.g("contextClick",y,a))}},mouseEnter:{get:function(){return this.A!==null?this.A.Mh:null},set:function(a){var y=this.mouseEnter;y!==a&&(oi(this),this.A.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.A!==null?this.A.Ph:null},set:function(a){var y=this.mouseLeave;y!==a&&(oi(this),this.A.Ph=a,this.g("mouseLeave",y,a))}},mouseOver:{get:function(){return this.A!==null?this.A.Qh:null},set:function(a){var y=this.mouseOver;y!==a&&(oi(this),this.A.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.A!==null?this.A.Oh:null},set:function(a){var y=this.mouseHover;y!==a&&(oi(this),this.A.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.A!==null?this.A.Nh:null},set:function(a){var y=this.mouseHold;y!==a&&(oi(this),this.A.Nh=a,this.g("mouseHold",y,a))}},mouseDragEnter:{get:function(){return this.A!==null?this.A.Of:null},set:function(a){var y=this.mouseDragEnter;y!==a&&(oi(this),this.A.Of=a,this.g("mouseDragEnter",y,a))}},mouseDragLeave:{get:function(){return this.A!==null?this.A.Xd:null},set:function(a){var y=this.mouseDragLeave;y!==a&&(oi(this),this.A.Xd=a,this.g("mouseDragLeave",y,a))}},mouseDrop:{get:function(){return this.A!==null?this.A.Lh:null},set:function(a){var y=this.mouseDrop;y!==a&&(oi(this),this.A.Lh=a,this.g("mouseDrop",y,a))}},actionDown:{get:function(){return this.A!==null?this.A.V:null},set:function(a){var y=this.actionDown;y!==a&&(oi(this),this.A.V=a,this.g("actionDown",y,a))}},actionMove:{get:function(){return this.A!==null?this.A.ia:null},set:function(a){var y=this.actionMove;y!==a&&(oi(this),this.A.ia=a,this.g("actionMove",y,a))}},actionUp:{get:function(){return this.A!==null?this.A.Ha:null},set:function(a){var y=this.actionUp;y!==a&&(oi(this),this.A.Ha=a,this.g("actionUp",y,a))}},actionCancel:{get:function(){return this.A!==null?this.A.F:null},set:function(a){var y=this.actionCancel;y!==a&&(oi(this),this.A.F=a,this.g("actionCancel",y,a))}},toolTip:{get:function(){return this.A!==null?this.A.$h:null},set:function(a){var y=this.toolTip;y!==a&&(oi(this),this.A.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.A!==null?this.A.Ch:null},set:function(a){var y=this.contextMenu;y!==a&&(oi(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),Xt.prototype.trigger=Xt.prototype.Jv,Xt.prototype.findBindingPanel=Xt.prototype.ih,Xt.prototype.findTemplateBinder=Xt.prototype.pz,Xt.prototype.setProperties=Xt.prototype.nm,Xt.prototype.apply=Xt.prototype.apply,Xt.prototype.attach=Xt.prototype.Du,Xt.prototype.set=Xt.prototype.set,Xt.prototype.isEnabledObject=Xt.prototype.If,Xt.prototype.isVisibleObject=Xt.prototype.Ed,Xt.prototype.isContainedBy=Xt.prototype.rg,Xt.prototype.getNearestIntersectionPoint=Xt.prototype.rs,Xt.prototype.getLocalPoint=Xt.prototype.qs,Xt.prototype.getDocumentScale=Xt.prototype.Df,Xt.prototype.getDocumentAngle=Xt.prototype.li,Xt.prototype.getDocumentBounds=Xt.prototype.mi,Xt.prototype.getDocumentPoint=Xt.prototype.ga,Xt.prototype.intersectsRect=Xt.prototype.Yc,Xt.prototype.containedInRect=Xt.prototype.fh,Xt.prototype.containsRect=Xt.prototype.Re,Xt.prototype.containsPoint=Xt.prototype.ca,Xt.prototype.raiseChanged=Xt.prototype.g,Xt.prototype.raiseChangedEvent=Xt.prototype.cb,Xt.prototype.addCopyProperty=Xt.prototype.Vw;var Lg=null;Xt.className="GraphObject",Lg=new Vn,Ih("Button",function(){function a(x,E){return x.diagram.ic(x.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b},function(b){return b===E})!==null}var y=sl(Ue,Ue.Auto,{isActionable:!0,enabledChanged:function(x,E){if(x instanceof Ue){var b=x.fb("ButtonBorder");b!==null&&(b.fill=E?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},sl(ni,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new jn(0,0,2.76142374915397,2.761423749153969),spot2:new jn(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,E){if(E.If()&&E instanceof Ue&&(x=E.fb("ButtonBorder"),x instanceof ni)){var b=E._buttonFillOver;E._buttonFillNormal=x.fill,x.fill=b,b=E._buttonStrokeOver,E._buttonStrokeNormal=x.stroke,x.stroke=b}},y.mouseLeave=function(x,E){E.If()&&E instanceof Ue&&(x=E.fb("ButtonBorder"),x instanceof ni&&(x.fill=E._buttonFillNormal,x.stroke=E._buttonStrokeNormal))},y.actionDown=function(x,E){if(E.If()&&E instanceof Ue&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof ni){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var tt=E._buttonFillPressed;E._buttonFillOver=b.fill,b.fill=tt,tt=E._buttonStrokePressed,E._buttonStrokeOver=b.stroke,b.stroke=tt,x.skipsUndoManager=z}}},y.actionUp=function(x,E){if(E.If()&&E instanceof Ue&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof ni){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionCancel=function(x,E){if(E.If()&&E instanceof Ue&&E._buttonFillPressed!==null){var b=E.fb("ButtonBorder");if(b instanceof ni){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionMove=function(x,E){if(E.If()&&E instanceof Ue&&E._buttonFillPressed!==null){var b=x.diagram;if(b.firstInput.button===0&&(b.currentTool.standardMouseOver(),a(x,E)&&(x=E.fb("ButtonBorder"),x instanceof ni))){var z=b.skipsUndoManager;b.skipsUndoManager=!0;var tt=E._buttonFillPressed;x.fill!==tt&&(x.fill=tt),tt=E._buttonStrokePressed,x.stroke!==tt&&(x.stroke=tt),b.skipsUndoManager=z}}},y}),Ih("TreeExpanderButton",function(){var a=sl("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},sl(ni,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:fr},new ar("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new ar("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof Fi&&(x=x.adornedPart),x instanceof en){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isTreeExpanded){if(!E.canCollapseTree(x))return}else if(!E.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?E.collapseTree(x):E.expandTree(x)}}},a}),Ih("SubGraphExpanderButton",function(){var a=sl("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},sl(ni,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:fr},new ar("figure","isSubGraphExpanded",function(y,x){return x=x.panel,y?x._subGraphExpandedFigure:x._subGraphCollapsedFigure}).cp()));return a.click=function(y,x){if(x=x.part,x instanceof Fi&&(x=x.adornedPart),x instanceof qn){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isSubGraphExpanded){if(!E.canCollapseSubGraph(x))return}else if(!E.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?E.collapseSubGraph(x):E.expandSubGraph(x)}}},a}),Ih("ToolTip",function(){return sl(Fi,Ue.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Rt(0,3),shadowBlur:5},sl(ni,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new jn(0,0,4,6),spot2:new jn(1,1,-4,-4)}))}),Ih("ContextMenu",function(){return sl(Fi,Ue.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Rt(0,3),shadowBlur:5},new ar("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),Ih("ContextMenuButton",function(){var a=sl("Button");a.stretch=Nn;var y=a.fb("ButtonBorder");return y instanceof ni&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new jn(0,0,2,3),y.spot2=new jn(1,1,-2,-2)),a}),Ih("PanelExpanderButton",function(a){var y=dp(a,"COLLAPSIBLE"),x=sl("Button",{_buttonExpandedFigure:"M0 0 M0 6 L4 2 8 6 M8 8",_buttonCollapsedFigure:"M0 0 M0 2 L4 6 8 2 M8 8",_buttonFillNormal:"rgba(0, 0, 0, 0)",_buttonStrokeNormal:null,_buttonFillOver:"rgba(0, 0, 0, .2)",_buttonStrokeOver:null,_buttonFillPressed:"rgba(0, 0, 0, .4)",_buttonStrokePressed:null},sl(ni,{name:"ButtonIcon",strokeWidth:2},new ar("geometryString","visible",function(E){return E?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof ni&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(E,b){var z=b.diagram;if(z!==null&&!z.isReadOnly){var tt=b.ih();tt===null&&(tt=b.part),tt!==null&&(b=tt.fb(y),b!==null&&(E.handled=!0,z.Ea("Collapse/Expand Panel"),b.visible=!b.visible,z.eb("Collapse/Expand Panel")))}},x}),Ih("CheckBoxButton",function(a){var y=dp(a);return a=sl("Button",{desiredSize:new tn(14,14)},sl(ni,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Re,geometryStretch:Pn,visible:!1},y!==""?new ar("visible",y).Kx():[])),a.click=function(x,E){if(E instanceof Ue){var b=x.diagram;if(!(b===null||b.isReadOnly||y!==""&&b.model.isReadOnly)){x.handled=!0;var z=E.fb("ButtonIcon");b.Ea("checkbox"),z.visible=!z.visible,typeof E._doClick=="function"&&E._doClick(x,E),b.eb("checkbox")}}},a}),Ih("CheckBox",function(a){a=dp(a),a=sl("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new ii(0,1,0,0)});var y=sl(Ue,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new ii(1),_buttonFillNormal:a._buttonFillNormal,_buttonStrokeNormal:a._buttonStrokeNormal,_buttonFillOver:a._buttonFillOver,_buttonStrokeOver:a._buttonStrokeOver,_buttonFillPressed:a._buttonFillPressed,_buttonStrokePressed:a._buttonStrokePressed,_buttonFillDisabled:a._buttonFillDisabled,mouseEnter:a.mouseEnter,mouseLeave:a.mouseLeave,actionDown:a.actionDown,actionUp:a.actionUp,actionCancel:a.actionCancel,actionMove:a.actionMove,click:a.click,_buttonClick:a.click});return a.mouseEnter=null,a.mouseLeave=null,a.actionDown=null,a.actionUp=null,a.actionCancel=null,a.actionMove=null,a.click=null,y}),Xt.None=Te=new je(Xt,"None",0),Xt.Default=$n=new je(Xt,"Default",0),Xt.Vertical=Hn=new je(Xt,"Vertical",4),Xt.Horizontal=Nn=new je(Xt,"Horizontal",5),Xt.Fill=Re=new je(Xt,"Fill",3),Xt.Uniform=Pn=new je(Xt,"Uniform",1),Xt.UniformToFill=xi=new je(Xt,"UniformToFill",2),Xt.FlipVertical=ai=new je(Xt,"FlipVertical",1),Xt.FlipHorizontal=ki=new je(Xt,"FlipHorizontal",2),Xt.FlipBoth=Xi=new je(Xt,"FlipBoth",3),Xt.make=sl,Xt.getBuilders=function(){var a=new Vn,y;for(y in Lg)if(y!==y.toLowerCase()){var x=Lg.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},Xt.defineBuilder=Ih,Xt.build=function(a,y,x){for(var E=[],b=2;ba&&(a+=360),a!==0){if(this.translate(y,x),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.ha[1]*a+this.ha[3]*E,z=this.ha[0]*-E+this.ha[2]*a,tt=this.ha[1]*-E+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*E,this.ha[1]=b,this.ha[2]=z,this.ha[3]=tt,this.translate(-y,-x)}},ac.className="STransform";function Uc(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}Uc.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},Uc.className="SGradient";function Su(a,y,x){this.ownerDocument=a=y===void 0?be.document:y,this.cA="http://www.w3.org/2000/svg",a!==void 0&&(this.Oa=this.Ud("svg",{width:"1px",height:"1px",viewBox:"0 0 1 1"}),this.style.display="block",this.style.letterSpacing="normal",this.style.wordSpacing="normal",this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink")),this.hs=null,this.context=new Ta(this,x)}Su.prototype.resize=function(a,y,x,E){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=E+"px",this.Oa.setAttributeNS(null,"width",x+"px"),this.Oa.setAttributeNS(null,"height",E+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+x+" "+E),this.context.ww.firstElementChild.setAttributeNS(null,"width",x+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",E+"px"),!0):!1},Su.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),ke(y))for(var E in y)a.setAttributeNS(E==="href"?"http://www.w3.org/1999/xlink":"",E,y[E]);return x!==void 0&&(a.textContent=x),a},Su.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Su.prototype.focus=function(){this.Oa.focus()},Su.prototype.mx=function(){this.ownerDocument=null},fe.Object.defineProperties(Su.prototype,{width:{get:function(){return this.Oa.width.baseVal.value},set:function(a){this.Oa.setAttribute("width",a+"px")}},height:{get:function(){return this.Oa.height.baseVal.value},set:function(a){this.Oa.setAttribute("height",a+"px")}},style:{get:function(){return this.Oa.style}}}),Su.className="SVGSurface";function Ta(a,y){this.Gv=a,this.svg=a.Oa,this.stack=[],this.nh=[],this.fillStyle="#000000",this.font="10px sans-serif",this.globalAlpha=1,this.lineCap="butt",this.lineDashOffset=0,this.lineJoin="miter",this.lineWidth=1,this.miterLimit=10,this.shadowBlur=0,this.shadowColor="rgba(0, 0, 0, 0)",this.shadowOffsetY=this.shadowOffsetX=0,this.Il=!1,this.strokeStyle="#000000",this.textAlign="start",this.clipInsteadOfFill=!1,this.Vg=this.Br=this.Ar=0,this.yd=this.ad=null,this.path=[],this.Yl={},this.Ct=!1,this.Yg=null,this.uj=0,this.rb=new ac,this.j=cp(this),this.Nj=cp(this,"gojs-diagram"),this.Hl=this.ti=null;var x=Fs++,E=this.Ud("clipPath",{id:"mainClip"+x});E.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=E,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(E),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function Qy(a,y,x,E,b,z,tt){a.Nj===void 0?Qf(a,y,x,E,b,z,tt):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+E+", "+b+", "+z+", "+tt+")")}Ct=Ta.prototype,Ct.arc=function(a,y,x,E,b,z,tt,ot){var rt=2*Math.PI,at=rt-1e-6,ut=x*Math.cos(E),gt=x*Math.sin(E),mt=a+ut,St=y+gt,wt=z?0:1;E=z?E-b:b-E,(1e-6E&&(E=E%rt+rt),E>at?(this.path.push(["A",x,x,0,1,wt,a-ut,y-gt]),this.path.push(["A",x,x,0,1,wt,mt,St])):1e-6=Math.PI),wt,a+x*Math.cos(b),y+x*Math.sin(b)])},Ct.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Ct.Se=function(a){this.addPath(this.path,this.rb,a||0)},Ct.bezierCurveTo=function(a,y,x,E,b,z){this.path.push(["C",a,y,x,E,b,z])},Ct.clearRect=function(){},Ct.clip=function(){this.Yl.clipPath=!0},Ct.closePath=function(){this.path.push(["z"])},Ct.createLinearGradient=function(a,y,x,E){var b=new Uc("linear");return b.x1=a,b.y1=y,b.x2=x,b.y2=E,b},Ct.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var x=this.eA;if(x[y])return"url(#"+x[y]+")";var E="PATTERN"+Fs++,b={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:E,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(oc,b)),this.svg.appendChild(a),x[y]=E,"url(#"+E+")"},Ct.createRadialGradient=function(a,y,x,E,b,z){var tt=new Uc("radial");return tt.x1=a,tt.y1=y,tt.r1=x,tt.x2=E,tt.y2=b,tt.r2=z,tt};function Ky(a,y,x,E,b,z,tt,ot,rt){E=ot/E,b=rt/b,z===0&&tt===0||a.rb.translate(z,tt),E===1&&b===1||a.rb.scale(E,b),y===0&&x===0||a.rb.translate(-y,-x)}Ct.drawImage=function(a,y,x,E,b,z,tt,ot,rt){var at="";a instanceof HTMLCanvasElement&&(at=a.toDataURL()),a instanceof HTMLImageElement&&(at=a.getAttribute("src"));var ut=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,E===void 0&&(z=y,tt=x,ot=E=ut,rt=b=a),E=E||0,b=b||0,ot=ot||0,rt=rt||0,Ky(this,y,x,E,b,z||0,tt||0,ot,rt),z={x:0,y:0,width:ut||E,height:a||b,href:at},Jt.$(E,ot)&&Jt.$(b,rt)?at.toLowerCase().indexOf(".svg")===-1&&at.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||E!==ut||b!==a)&&(E+=y,b+=x,z["clip-path"]="path('M "+y+","+x+" L "+E+" "+x+" L "+E+" "+b+" L "+y+" "+b+" z')"),Eg(this,oc,z,this.rb),this.addElement(oc,z)},Ct.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),iv(this,this.Yl)},Ct.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Ct.fillRect=function(a,y,x,E){a=[a,y,x,E],a={x:a[0],y:a[1],width:a[2],height:a[3]},Eg(this,"fill",a,this.rb),this.addElement("rect",a)},Ct.ox=function(a,y,x,E){a={x:a,y,width:x,height:E},Eg(this,"fill",a,this.rb),iv(this,a),this.svg.prepend(this.Ud("rect",a))},Ct.fillText=function(a,y,x){a=[a,y,x],y=this.textAlign,y==="left"?y="start":y==="right"?y="end":y==="center"&&(y="middle"),y={x:a[1],y:a[2],style:"font: "+this.font,"text-anchor":y},Eg(this,"fill",y,this.rb),this.addElement("text",y,a[0])},Ct.lineTo=function(a,y){this.path.push(["L",a,y])},Ct.moveTo=function(a,y){this.path.push(["M",a,y])},Ct.quadraticCurveTo=function(a,y,x,E){this.path.push(["Q",a,y,x,E])},Ct.rect=function(a,y,x,E){this.path.push(["M",a,y],["L",a+x,y],["L",a+x,y+E],["L",a,y+E],["z"])},Ct.restore=function(){this.rb=this.stack.pop(),this.path=this.stack.pop();var a=this.stack.pop();this.fillStyle=a.fillStyle,this.font=a.font,this.globalAlpha=a.globalAlpha,this.lineCap=a.lineCap,this.lineDashOffset=a.lineDashOffset,this.lineJoin=a.lineJoin,this.lineWidth=a.lineWidth,this.miterLimit=a.miterLimit,this.shadowBlur=a.shadowBlur,this.shadowColor=a.shadowColor,this.shadowOffsetX=a.shadowOffsetX,this.shadowOffsetY=a.shadowOffsetY,this.strokeStyle=a.strokeStyle,this.textAlign=a.textAlign,this.bk=a.bk},Ct.save=function(){this.stack.push({fillStyle:this.fillStyle,font:this.font,globalAlpha:this.globalAlpha,lineCap:this.lineCap,lineDashOffset:this.lineDashOffset,lineJoin:this.lineJoin,lineWidth:this.lineWidth,miterLimit:this.miterLimit,shadowBlur:this.shadowBlur,shadowColor:this.shadowColor,shadowOffsetX:this.shadowOffsetX,shadowOffsetY:this.shadowOffsetY,strokeStyle:this.strokeStyle,textAlign:this.textAlign,bk:this.bk});for(var a=[],y=0;yut.offset?1:-1}),b=0;bx?(this.scale(x/a,1),this.translate((a-x)/2,0)):x>a&&(this.scale(1,a/x),this.translate(0,(x-a)/2)),this.Hm?this.clip():this.fill(y),a>x?(this.translate(-(a-x)/2,0),this.scale(1/(x/a),1)):x>a&&(this.translate(0,-(x-a)/2),this.scale(1,1/(a/x)))}else this.Hm?this.clip():this.fill(y)},Ct.jk=function(){this.Hm||this.stroke()},Ct.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Ct.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Ct.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(mx),a.lineDashOffset=0)},Ct.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Ct.Hs=function(){},fe.Object.defineProperties(lc.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(a){this.ct!==a&&(this.ct=this.Z.fillStyle=a)}},font:{get:function(){return this.Z.font},set:function(a){this.dt!==a&&(this.dt=this.Z.font=a)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(a){this.Z.globalAlpha=a}},lineCap:{get:function(){return this.Z.lineCap},set:function(a){this.Z.lineCap=a}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(a){this.Z.lineDashOffset=a}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(a){this.Z.lineJoin=a}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(a){this.Z.lineWidth=a}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(a){this.Z.miterLimit=a}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(a){this.Z.shadowBlur=a}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(a){this.Z.shadowColor=a}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(a){this.Z.shadowOffsetX=a}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(a){this.Z.shadowOffsetY=a}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(a){this.et!==a&&(this.et=this.Z.strokeStyle=a)}},textAlign:{get:function(){return this.Z.textAlign},set:function(a){this.Z.textAlign=a}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(a){this.Z.imageSmoothingEnabled=a}},filter:{get:function(){return this.Z.filter},set:function(a){this.Z.filter=a===""?"none":a}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(a){this.Hm=a}}});var mx=Object.freeze([]);lc.className="CanvasSurfaceContext";function Kf(){this.F=this.o=this.u=this.j=0}Kf.className="ColorNumbers";function Vi(a,y){Dg||(hv(),Dg=!0),Lo(this),this._isFrozen=!1,a===void 0?(this.na=bh,this.xk="black"):typeof a=="string"?(this.na=bh,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===hh?(this.Qd=pa,this.Lk=ia):this.Lk=a===al?this.Qd=zi:this.Qd=Er,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}Vi.prototype.copy=function(){var a=new Vi;return a.na=this.na,a.xk=this.xk,a.Qd=this.Qd.J(),a.Lk=this.Lk.J(),a.Gr=this.Gr,a.Xp=this.Xp,this.we!==null&&(a.we=this.we.copy()),a.cr=this.cr,a},Ct=Vi.prototype,Ct.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Ct.ka=function(){return Object.isFrozen(this)&&ie("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Ct.qb=function(a){a.classType===Vi&&(this.type=a)},Ct.toString=function(){var a="Brush(";if(this.type===bh)a+=this.color;else if(a=this.type===hh?a+"Linear ":this.type===al?a+"Radial ":this.type===Fg?a+"Pattern ":a+"(unknown) ",a+=this.start+" "+this.end,this.colorStops!==null)for(var y=this.colorStops.iterator;y.next();)a+=" "+y.key+":"+y.value;return a+")"},Ct.addColorStop=function(a,y){return this._isFrozen&&yn(this),(typeof a!="number"||!isFinite(a)||1a)&&Kn(a,"0 <= loc <= 1",Vi,"addColorStop:loc"),this.we===null&&(this.we=new Vn),this.we.add(a,y),this.na===bh&&(this.type=hh),this.xe=null,this},Ct.Vz=function(a,y){if(this._isFrozen&&yn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Tg:y,this.type===bh)uh(this.color),this.color=Ng(a,y);else if((this.type===hh||this.type===al)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)uh(x.value),this.addColorStop(x.key,Ng(a,y));return this};function $y(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Tg:x,uh(a),Ng(y,x)}Ct.Wy=function(a,y){if(this._isFrozen&&yn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Tg:y,this.type===bh)uh(this.color),this.color=Ng(-a,y);else if((this.type===hh||this.type===al)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)uh(x.value),this.addColorStop(x.key,Ng(-a,y));return this};function t1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Tg:x,uh(a),Ng(-y,x)}function rv(a,y,x){uh(a),a=uo.j;var E=uo.u,b=uo.o,z=uo.F;return uh(y),x===void 0&&(x=.5),"rgba("+Math.round((uo.j-a)*x+a)+", "+Math.round((uo.u-E)*x+E)+", "+Math.round((uo.o-b)*x+b)+", "+Math.round((uo.F-z)*x+z)+")"}Ct.Gx=function(){if(this.type===bh)return Ag(this.color);if((this.type===hh||this.type===al)&&this.colorStops!==null){var a=this.colorStops;if(this.type===al)return Ag(a.first().value);if(a.get(.5)!==null)return Ag(a.get(.5));if(a.count===2)return a=a.Fa(),Ag(rv(a[0].value,a[1].value));for(var y=a.iterator,x=-1,E=-1,b=1,z=1;y.next();){var tt=y.key,ot=Math.abs(.5-y.key);b>z&&ot=b&&otE&&(z=x,x=E,E=z,z=b),b=E-x,Ag(rv(a.get(x),a.get(E),1-z/b))}return!1};function Ag(a){return a?a instanceof Vi?a.Gx():(uh(a),128>(299*uo.j+587*uo.u+114*uo.o)/1e3):!1}function Ng(a,y){switch(y){case Tg:y=100*av(uo.j);var x=100*av(uo.u),E=100*av(uo.o);return Vs.j=.4124564*y+.3575761*x+.1804375*E,Vs.u=.2126729*y+.7151522*x+.072175*E,Vs.o=.0193339*y+.119192*x+.9503041*E,Vs.F=uo.F,y=uv(Vs.j/kg[0]),x=uv(Vs.u/kg[1]),E=uv(Vs.o/kg[2]),Ru.j=116*x-16,Ru.u=500*(y-x),Ru.o=200*(x-E),Ru.F=Vs.F,Ru.j=Math.min(100,Math.max(0,Ru.j+100*a)),a=(Ru.j+16)/116,y=a-Ru.o/200,Vs.j=kg[0]*e1(Ru.u/500+a),Vs.u=kg[1]*(Ru.j>fp*dv?Math.pow(a,3):Ru.j/fp),Vs.o=kg[2]*e1(y),Vs.F=Ru.F,a=-.969266*Vs.j+1.8760108*Vs.u+.041556*Vs.o,y=.0556434*Vs.j+-.2040259*Vs.u+1.0572252*Vs.o,uo.j=255*lv((3.2404542*Vs.j+-1.5371385*Vs.u+-.4985314*Vs.o)/100),uo.u=255*lv(a/100),uo.o=255*lv(y/100),uo.F=Vs.F,uo.j=Math.round(uo.j),255uo.j&&(uo.j=0),uo.u=Math.round(uo.u),255uo.u&&(uo.u=0),uo.o=Math.round(uo.o),255uo.o&&(uo.o=0),"rgba("+uo.j+", "+uo.u+", "+uo.o+", "+uo.F+")";case n1:return sv(),Qa.o=Math.min(100,Math.max(0,Qa.o+100*a)),"hsla("+Qa.j+", "+Qa.u+"%, "+Qa.o+"%, "+Qa.F+")";default:ie("Unknown color space: "+y)}}function uh(a){Dg||(hv(),Dg=!0);var y=cv;if(y!==null){y.clearRect(0,0,1,1),y.fillStyle="#000000";var x=y.fillStyle;y.fillStyle=a,y.fillStyle!==x?(y.fillRect(0,0,1,1),a=y.getImageData(0,0,1,1).data,uo.j=a[0],uo.u=a[1],uo.o=a[2],uo.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,uo.j=0,uo.u=0,uo.o=0,uo.F=1)}}function sv(){var a=uo.j/255,y=uo.u/255,x=uo.o/255,E=Math.max(a,y,x),b=Math.min(a,y,x),z=E-b;if(b=(E+b)/2,z===0)var tt=a=0;else{switch(E){case a:tt=(y-x)/z%6;break;case y:tt=(x-a)/z+2;break;case x:tt=(a-y)/z+4}tt*=60,0>tt&&(tt+=360),a=z/(1-Math.abs(2*b-1))}Qa.j=Math.round(tt),Qa.u=Math.round(100*a),Qa.o=Math.round(100*b),Qa.F=uo.F}function av(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function lv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function uv(a){return a>dv?Math.pow(a,1/3):(fp*a+16)/116}function e1(a){var y=a*a*a;return y>dv?y:(116*a-16)/fp}function Wc(a,y){typeof a!="string"&&(a instanceof Vi||ie("Value for "+y+" must be a color string or a Brush, not "+a))}function hv(){cv=Qo?new Pl(null,void 0,{willReadFrequently:!0}).context:null}fe.Object.defineProperties(Vi.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&yn(this,a),this.na=a,this.start.Mc()&&(a===hh?this.start=pa:a===al&&(this.start=zi)),this.end.Mc()&&(a===hh?this.end=ia:a===al&&(this.end=zi)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&yn(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&yn(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&yn(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&yn(this,a),0>a&&Kn(a,">= zero",Vi,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&yn(this,a),0>a&&Kn(a,">= zero",Vi,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&yn(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&yn(this,a),this.cr=a,this.xe=null}}}),Vi.prototype.isDark=Vi.prototype.Gx,Vi.prototype.darkenBy=Vi.prototype.Wy,Vi.prototype.lightenBy=Vi.prototype.Vz,Vi.prototype.addColorStop=Vi.prototype.addColorStop;var dv=216/24389,fp=24389/27,kg=[95.047,100,108.883],cv=null,uo=new Kf,Qa=new Kf,Vs=new Kf,Ru=new Kf,Dg=!1;Vi.className="Brush";var bh;Vi.Solid=bh=new je(Vi,"Solid",0);var hh;Vi.Linear=hh=new je(Vi,"Linear",1);var al;Vi.Radial=al=new je(Vi,"Radial",2);var Fg;Vi.Pattern=Fg=new je(Vi,"Pattern",4);var Tg;Vi.Lab=Tg=new je(Vi,"Lab",5);var n1;Vi.HSL=n1=new je(Vi,"HSL",6),Vi.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var x=Math.abs(y-a);y=Math.floor(a+Math.random()*x).toString(16);var E=Math.floor(a+Math.random()*x).toString(16);return a=Math.floor(a+Math.random()*x).toString(16),2>y.length&&(y="0"+y),2>E.length&&(E="0"+E),2>a.length&&(a="0"+a),"#"+y+E+a},Vi.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;Dg||(hv(),Dg=!0);var y=cv;if(y===null)return!0;y.fillStyle="#000000";var x=y.fillStyle;return y.fillStyle=a,y.fillStyle!==x?!0:(y.fillStyle="#FFFFFF",x=y.fillStyle,y.fillStyle=a,y.fillStyle!==x)},Vi.lighten=function(a){return $y(a)},Vi.lightenBy=$y,Vi.darken=function(a){return t1(a)},Vi.darkenBy=t1,Vi.mix=rv,Vi.isDark=Ag;function Nr(){this.xa="Base"}Nr.prototype.measure=function(){},Nr.prototype.Yz=function(a,y,x,E,b){a.measure(y,x,E,b)},Nr.prototype.arrange=function(){},Nr.prototype.Ly=function(a,y,x,E,b,z){a.arrange(y,x,E,b,z)},Nr.prototype.iA=function(a){a.Uj()},Nr.prototype.gc=function(){},fe.Object.defineProperties(Nr.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return Ue}}}),Nr.prototype.remeasureObject=Nr.prototype.iA,Nr.prototype.arrangeElement=Nr.prototype.Ly,Nr.prototype.measureElement=Nr.prototype.Yz,Nr.className="PanelLayout";function pp(){this.xa="Base"}pe(pp,Nr),pp.prototype.measure=function(a,y,x,E,b,z,tt){var ot=E.length;a=dh(a);for(var rt=0;rtSn&&(zr=Math.max(Sn-jd,0));var Wm=Fe.oa===0;Fe.oc=Fe.oc+zr,Fe.actual=Fe.oa+zr,Sn=Math.max(Sn-(zr+(Wm?jd:0)),0)}if(Pa.columnSpan===1&&(Os===Te||Os===Hn)){Fe=a.Eb(js);var O0=Fe.Wc();zr=Math.max(vc-Fe.actual,0),zr+O0>$e&&(zr=Math.max($e-O0,0));var Gy=Fe.oa===0;Fe.oc=Fe.oc+zr,Fe.actual=Fe.oa+zr,$e=Math.max($e-(zr+(Gy?O0:0)),0)}bd&&Pa.Uj()}}}}}Ci(Gt);var Qu=0,fh=0;z=a.columnCount;for(var ng=0;ng=a.rowCount);Xh++)Fe=a.Fb(qo.row+Xh),zr=0,zr=Os===Re||Os===Hn?Math.max(Fe.minimum,ru[qo.row+Xh]===0?Fe.maximum:Math.min(ru[qo.row+Xh],Fe.maximum)):Math.max(Fe.minimum,isNaN(Fe.Hc)?Fe.maximum:Math.min(Fe.Hc,Fe.maximum)),vh.height+=zr,za+=Fe.minimum;for(var Nl=1;Nl=a.columnCount);Nl++)Fe=a.Eb(qo.column+Nl),zr=0,zr=Os===Re||Os===Nn?Math.max(Fe.minimum,cl[qo.column+Nl]===0?Fe.maximum:Math.min(cl[qo.column+Nl],Fe.maximum)):Math.max(Fe.minimum,isNaN(Fe.Hc)?Fe.maximum:Math.min(Fe.Hc,Fe.maximum)),vh.width+=zr,Zm+=Fe.minimum;os.width+=vh.width,os.height+=vh.height;var uf=qo.margin,Hd=uf.right+uf.left,R0=uf.top+uf.bottom;qo.measure(os.width,os.height,Zm,za);for(var hf=qo.measuredBounds,Lu=Math.max(hf.width+Hd,0),wc=Math.max(hf.height+R0,0),Ud=0,df=0;df=a.rowCount);df++)Fe=a.Fb(qo.row+df),Ud+=Fe.total||0;if(Ud=Jh)&&!(qo.row+yh>=a.rowCount);yh++){Fe=a.Fb(qo.row+yh);var $h=Fe.oa||0,Pc=qh(qo,Fe,Xu);Fe.actual=Math.min(Fe.maximum,$h+Pc),Fe.oa!==$h&&(Jh-=Fe.oa-$h)}for(;0su&&(Fe.actual=Math.min(Fe.maximum,su+Jh),Fe.oa!==su&&(Jh-=Fe.oa-su)),Fe.index===0)break;Fe=a.Fb(Fe.index-1)}}for(var rg=0,td=0;td=a.columnCount);td++)Fe=a.Eb(qo.column+td),rg+=Fe.total||0;if(rg=sg)&&!(qo.column+Mc>=a.columnCount);Mc++){Fe=a.Eb(qo.column+Mc);var G0=Fe.oa||0,Wy=Sh(qo,Fe,Uy);Fe.actual=Math.min(Fe.maximum,G0+Wy),Fe.oa!==G0&&(sg-=Fe.oa-G0)}for(;0Qm&&(Fe.actual=Math.min(Fe.maximum,Qm+sg),Fe.oa!==Qm&&(sg-=Fe.oa-Qm)),Fe.index===0)break;Fe=a.Eb(Fe.index-1)}}}}Ci(Wt),tn.free(vh),tn.free(os),ru!==void 0&&Ci(ru),cl!==void 0&&Ci(cl);var ag=0,lg=0,Km=a.desiredSize,fx=a.maxSize;Os=aa(a,!0);var H0=fh=Qu=0,U0=0;z=a.columnCount;for(var Xm=0;Xm=a.rowCount);Fe++){var Xn=a.Fb(Gt+Fe);Xn.oa!==0&&(Tt.height+=Xn.total)}for(Fe=1;Fe=a.columnCount);Fe++)Xn=a.Eb(_t+Fe),Xn.oa!==0&&(Tt.width+=Xn.total);var _n=Kt.oa+Tt.width,bi=Wt.oa+Tt.height;Fe=ot,Xn=rt;var no=_n,Or=bi,Ur=ot,bs=rt,zr=_n,_h=bi;ot+_n>x.width&&(zr=Math.max(x.width-ot,0)),rt+bi>x.height&&(_h=Math.max(x.height-rt,0));var lr=hn.alignment;if(lr.Xb()){lr=a.defaultAlignment,lr.sb()||(lr=zi);var nu=lr.x,js=lr.y,Zh=lr.offsetX;lr=lr.offsetY;var Ja=Kt.alignment,El=Wt.alignment;Ja.sb()&&(nu=Ja.x,Zh=Ja.offsetX),El.sb()&&(js=El.y,lr=El.offsetY)}else nu=lr.x,js=lr.y,Zh=lr.offsetX,lr=lr.offsetY;(isNaN(nu)||isNaN(js))&&(js=nu=.5,lr=Zh=0),Ja=Ye.width,El=Ye.height;var ba=hn.margin,Pa=ba.left+ba.right,bd=ba.top+ba.bottom,iu=Jl(hn,Wt,Kt,!1);!isNaN(hn.desiredSize.width)||iu!==Re&&iu!==Nn||(Ja=Math.max(_n-Pa,0)),!isNaN(hn.desiredSize.height)||iu!==Re&&iu!==Hn||(El=Math.max(bi-bd,0)),_n=hn.maxSize,bi=hn.minSize,Ja=Math.min(_n.width,Ja),El=Math.min(_n.height,El),Ja=Math.max(bi.width,Ja),El=Math.max(bi.height,El),_n=El+bd,Fe+=no*nu-(Ja+Pa)*nu+Zh+ba.left,Xn+=Or*js-_n*js+lr+ba.top,hn.visible&&(Yr(Ur,bs,zr,_h,Fe,Xn,Ye.width,Ye.height)?hn.arrange(Fe,Xn,Ja,El):hn.arrange(Fe,Xn,Ja,El,new Me(Ur,bs,zr,_h)))}}}for(tn.free(Tt),a=0;a=x&&(x=1);var E=a.gridCellSize,b=E.width;E=E.height;var z=a.naturalBounds,tt=a.actualBounds,ot=z.width,rt=z.height,at=Math.ceil(ot/b),ut=Math.ceil(rt/E),gt=a.gridOrigin,mt=gt.x;gt=gt.y,y.save(),y.beginPath(),y.rect(0,0,ot,rt),y.clip(),y.Se();for(var St=[],wt=a.O.s,Et=wt.length,Ot=0;OtWt)){Tt=pv(Tt.figure);for(var _t=0;_tWt&&Gt.push(Kt))}}}}for(wt=a.O.s,Et=wt.length,Ot=0;Otb*Tt*x))){if(Wt=he.segmentIndex,(!isFinite(Wt)||isNaN(Wt))&&(Wt=0),0>Wt&&(Wt=Tt-Math.min(-Wt,Tt)),Wt=Math.round(Wt%Tt),Tt=he.opacity,_t=1,Tt!==1){if(Tt===0)continue;_t=y.globalAlpha,y.globalAlpha=_t*Tt}Kt=St[Ot];var $e=!1,Sn=he.strokeDashArray;if(Sn!==null&&($e=!0,y.js(Sn,he.strokeDashOffset)),he.figure==="LineV"&&he.stroke!==null&&0y)return a%y===x;if(a%y!==x)return!1;y=E.length;for(var b=0;bgt)Gt.measure(1/0,1/0,0,0),Wt=Gt.measuredBounds,x.ed(Wt),St.push(Wt);else{var _t=Gt.segmentIndex,Kt=Gt.segmentFraction,he=Gt.alignmentFocus;he.Mc()&&(he=zi);var $e=Gt.segmentOrientation,Sn=Gt.segmentOffset;if(isNaN(_t)){var hn=rt.ua;Wt=vi(),hn.Qu(Kt,Wt);var Ye=Rt.allocAt(Wt[0],Wt[1]);if(Ye.add(rt.i(0)),hn.type===He.j?Ye.offset(-hn.startX,-hn.startY):(hn=hn.figures.first(),hn!==null&&Ye.offset(-hn.startX,-hn.startY)),hn=Wt[2],$e!==Zs){var Fe=rt.computeAngle(Gt,$e,hn);Gt.Kb=Fe}Fe=Ye.x-y.x;var Xn=Ye.y-y.y;Rt.free(Ye),Ci(Wt)}else if(_t<-gt||_t>=gt)Wt=Rt.alloc(),rt.vg(),rt.computeMidPoint(Wt),hn=rt.midAngle,$e!==Zs&&(Fe=rt.computeAngle(Gt,$e,hn),Gt.Kb=Fe),Fe=Wt.x-y.x,Xn=Wt.y-y.y,Rt.free(Wt);else{if(Fe=0,0<=_t?(Xn=ut.M(_t),Wt=_t_n+10?0<=_t?hn.ab(Xn):Xn.ab(hn):_n>Ye+10?0<=_t?Wt.ab(Fe):Fe.ab(Wt):0<=_t?hn.ab(Fe):Fe.ab(hn)}else hn=0<=_t?Xn.ab(Wt):Wt.ab(Xn);$e!==Zs&&(Fe=rt.computeAngle(Gt,$e,hn),Gt.Kb=Fe),Fe=Xn.x+(Wt.x-Xn.x)*Kt-y.x,Xn=Xn.y+(Wt.y-Xn.y)*Kt-y.y}Gt.measure(1/0,1/0,0,0),Wt=Gt.measuredBounds,Ye=Gt.naturalBounds;var bi=0;Gt instanceof ni&&(bi=Gt.strokeWidth),_n=Ye.width+bi;var no=Ye.height+bi;wt.reset(),wt.translate(-Wt.x,-Wt.y),wt.scale(Gt.scale,Gt.scale),wt.rotate($e===Zs?Gt.angle:hn,_n/2,no/2),$e!==u0&&$e!==d0||wt.rotate(90,_n/2,no/2),$e!==h0&&$e!==c0||wt.rotate(-90,_n/2,no/2),$e===em&&(45hn||225hn)&&wt.rotate(-hn,_n/2,no/2),Ye=new Me(0,0,_n,no),Et.xi(Ye,he),wt.Ga(Et),he=-Et.x+bi/2*Gt.scale,Gt=-Et.y+bi/2*Gt.scale,Ot.assign(Sn),bi=isNaN(Sn.x);var Or=isNaN(Sn.y);if(bi||Or){_n=_n/2+3,no=no/2+3;var Ur=45<=hn&&135>=hn,bs=225<=hn&&315>=hn;$e===Zs&&(Ur||bs)?(Ot.x=Or?_n:Sn.y,Ot.y=bi?no:Sn.x,Ur?0<=_t||isNaN(_t)&&.5>Kt||!bi||(Ot.y=-no):bs&&((0<=_t||isNaN(_t)&&.5>Kt)&&bi&&(Ot.y=-no),Or&&(Ot.x=-_n))):(bi&&(Ot.x=0<=_t||isNaN(_t)&&.5>Kt?_n:-_n),Or&&(Ot.y=-no),Ot.rotate(hn))}else Ot.rotate(hn);Fe+=Ot.x,Xn+=Ot.y,Ye.set(Wt),Ye.h(Fe+he,Xn+Gt,Wt.width,Wt.height),St.push(Ye),x.ed(Ye)}}if(tt!==null)for(E=tt.labelNodes;E.next();)E.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),Ts(b,x.width||0,x.height||0),In.free(wt),Rt.free(Et),Rt.free(Ot)}}}},Lp.prototype.arrange=function(a,y){var x=y.length;if(a instanceof Fi||a instanceof Ve){var E=a,b=null;a instanceof Fi&&(b=a,E=b.adornedPart);var z=a instanceof Fi?null:E.path,tt=a.j;if(tt.length!==0){var ot=0;if(z!==null&&ot=x)wt=Rt.alloc(),St=gt,Ot=wt,St.vg(),St.computeMidPoint(Ot),St=gt.midAngle,at!==Zs&&(gt=gt.computeAngle(tt,at,St),tt.angle=gt),gt=wt.x,Ot=wt.y,Rt.free(wt);else{if(Et=0,0<=ot?(wt=y.s[ot],Ot=otGt+10?0<=ot?St.ab(wt):wt.ab(St):Gt>Tt+10?0<=ot?Ot.ab(Et):Et.ab(Ot):0<=ot?St.ab(Et):Et.ab(St)}else St=0<=ot?wt.ab(Ot):Ot.ab(wt);at!==Zs&&(gt=gt.computeAngle(tt,at,St),tt.angle=gt),gt=wt.x+(Ot.x-wt.x)*rt,Ot=wt.y+(Ot.y-wt.y)*rt}if(mt.ys())tt.location=new Rt(gt,Ot);else{mt.Mc()&&(mt=zi),wt=In.alloc(),wt.reset(),wt.scale(tt.scale,tt.scale),wt.rotate(tt.angle,0,0);var Wt=tt.naturalBounds;Et=Me.allocAt(0,0,Wt.width,Wt.height),Tt=Rt.alloc(),Tt.xi(Et,mt),wt.Ga(Tt),mt=-Tt.x,Gt=-Tt.y;var _t=Wt.width,Kt=Wt.height;Wt=Rt.alloc(),Wt.assign(ut);var he=isNaN(ut.x),$e=isNaN(ut.y);if(he||$e){_t=_t/2+3,Kt=Kt/2+3;var Sn=45<=St&&135>=St,hn=225<=St&&315>=St;at===Zs&&(Sn||hn)?(Wt.x=$e?_t:ut.y,Wt.y=he?Kt:ut.x,Sn?0<=ot||isNaN(ot)&&.5>rt||!he||(Wt.y=-Kt):hn&&((0<=ot||isNaN(ot)&&.5>rt)&&he&&(Wt.y=-Kt),$e&&(Wt.x=-_t))):(he&&(Wt.x=0<=ot||isNaN(ot)&&.5>rt?_t:-_t),$e&&(Wt.y=-Kt),Wt.rotate(St))}else Wt.rotate(St);gt+=Wt.x,Ot+=Wt.y,wt.pp(Et),mt+=Et.x,Gt+=Et.y,ot=Rt.allocAt(gt+mt,Ot+Gt),tt.move(ot),Rt.free(ot),Rt.free(Wt),Rt.free(Tt),Me.free(Et),In.free(wt)}}b!==null?b.Ul(!1):E.Ul(!1),E=T1(a),a.location.h(a.position.x+E.x,a.position.y+E.y),Rt.free(E)}};function i1(a,y,x,E){if(Za(E)!==!1){var b=E.strokeWidth;b===0&&a instanceof Fi&&a.type===Ue.Link&&a.adornedObject instanceof ni&&(b=a.adornedObject.strokeWidth),b*=E.Ca,a instanceof Ve&&a.ua!==null?(a=a.geometry.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):a instanceof Fi&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):E.Ge(-(b/2),-(b/2),y+b,x+b),b=E.desiredSize,b.w()||E.ua===null?E.dc.h(0,0,b.width,b.height):E.dc.assign(E.ua.bounds),wr(E,!1)}}function Jf(){this.xa="Base"}pe(Jf,Nr),Jf.prototype.measure=function(a,y,x,E,b,z,tt){var ot=a.Pb();a.graduatedBounds=[];var rt=ot.margin,at=rt.right+rt.left,ut=rt.top+rt.bottom;ot.measure(y,x,z,tt);var gt=ot.measuredBounds,mt=new Me(-rt.left,-rt.top,Math.max(gt.width+at,0),Math.max(gt.height+ut,0));a.graduatedBounds.push(mt),b.assign(mt);for(var St=ot.geometry,wt=ot.strokeWidth,Et=St.flattenedSegments,Ot=St.flattenedLengths,Tt=St.flattenedTotalLength,Gt=Et.length,Wt=0,_t=0,Kt=vi(),he=0;he_n&&(_n+=360),Sn.push(_n)}Wt=Fe,_t=Xn}Kt.push(Sn)}if(a.graduatedIntervals===null){for(var bi=[],no=a.O.s,Or=no.length,Ur=0;Ur_h)){for(var lr=0;lr_h&&zr.push(js)}}}}}a.graduatedIntervals=bi}var Zh=a.graduatedIntervals,Ja=a.O.s,El=Ja.length,ba=0,Pa=0,bd=Tt;a.graduatedMarks=[];for(var iu,ef=0;efj0*Os*Tt/a.graduatedRange&&ja.graduatedSkip===null)){var eg=Ot[0][0],Pu=0,Ma=0;Pa=Tt*ja.graduatedStart-1e-4,bd=Tt*ja.graduatedEnd+1e-4;var vc=j0*Os,Oa=a.graduatedTickBase;if(Oaa.graduatedMin+vc&&(Oa-=Math.floor((Oa-a.graduatedMin)/vc)*vc);for(var Wm=Zh[ef],O0=Oa,Gy=1e-6*a.graduatedMax,Qu=1;Oa<=a.graduatedMax+Gy;Qu++){t:{for(var fh=Wm.length,ng=0;ng-nf){var zd=!1;break t}}zd=!0}if(zd&&(Oa>a.graduatedMax&&(Oa=a.graduatedMax),ja.graduatedSkip===null||ja instanceof ao&&!ja.graduatedSkip(Oa,ja)||ja instanceof ni&&!ja.graduatedSkip(Oa,ja))&&(ba=(Oa-a.graduatedMin)*Tt/a.graduatedRange,ba>Tt&&(ba=Tt),Pa<=ba&&ba<=bd)){for(var Ku=Kt[Pu][Ma],Qh=Ot[Pu][Ma];Pueg&&Maph&&.4995ph?0ph||.9995ig){var rf=1-Math.abs(.5-ph);Ku=(ou*rf+Cu*(1-rf))%360;break t}}}Ku=ou}if(ja instanceof ao){var Vl="";ja.graduatedFunction!==null?(Vl=ja.graduatedFunction(Oa,ja),Vl=Vl!=null?Vl.toString():""):Vl=(+Oa.toFixed(2)).toString(),Vl!==""&&iu.push({$l:of,angle:Ku,text:Vl})}else iu.push({$l:of,angle:Ku})}Oa=O0+Qu*vc}}}a.graduatedMarks.push(iu)}Ci(Kt);var os=a.graduatedMarks;if(os!==null)for(var z0=E.length,qs=0;qs_l;_l++){switch(_l){case 0:La.h(vh,ru);break;case 1:La.h(vh+sf,ru);break;case 2:La.h(vh,ru+xc);break;case 3:La.h(vh+sf,ru+xc)}La.rotate(qo+ur.angle),La.offset(_m,lf),af===0&&_l===0?cl.h(La.x,La.y,0,0):cl.Ye(La),La.offset(-_m,-lf),La.rotate(-qo-ur.angle)}Rt.free(La),mh.graduatedBounds!==null&&mh.graduatedBounds.push(cl),Ko(Kh,cl.x,cl.y,cl.width,cl.height)}else if(ur instanceof ao){var Al=a,Zm=b;Al.temporaryTextBlock===null&&(Al.temporaryTextBlock=new ao);var za=Al.temporaryTextBlock;y1(za,ur);var Xh=ur.alignmentFocus;Xh.Mc()&&(Xh=pa);for(var Nl=ur.segmentOrientation,uf=ur.segmentOffset,Hd=new Me,R0=0,hf=0,Lu=0,wc=0,Ud=0,df=$s.length,Jh=0;JhLu||225Lu)&&su.rotate(-Lu,$h/2,Pc/2);var rg=Me.allocAt(0,0,$h,Pc),td=Rt.alloc();td.xi(rg,Xh),su.Ga(td);var sg=-td.x,Uy=-td.y,Sh=Rt.alloc();Sh.assign(uf),isNaN(Sh.x)&&(Sh.x=$h/2+3),isNaN(Sh.y)&&(Sh.y=-(Pc/2+3)),Sh.rotate(Lu),R0+=Sh.x+sg,hf+=Sh.y+Uy;var Mc=new Me(R0,hf,qh.width,qh.height),G0=new Me(qh.x,qh.y,qh.width,qh.height),Wy=new Me(yh.x,yh.y,yh.width,yh.height);Xu.Sz=wc,Xu.lineCount=za.lineCount,Xu.lines=[za.Cb,za.Ih,za.df,za.Le,za.Qc,za.Qb,za.ze],Xu.actualBounds=Mc,Xu.measuredBounds=G0,Xu.naturalBounds=Wy,Jh===0?Hd.assign(Mc):Hd.ed(Mc),Rt.free(Sh),Rt.free(td),Me.free(rg),In.free(su)}Al.graduatedBounds!==null&&Al.graduatedBounds.push(Hd),Ko(Zm,Hd.x,Hd.y,Hd.width,Hd.height)}wr(ur,!1)}}},Jf.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var E=a.Pb(),b=a.graduatedMarks;if(b!==null){var z=a.graduatedBounds,tt=0,ot=z[tt];tt++,E!==null&&E.arrange(ot.x-x.x,ot.y-x.y,ot.width,ot.height);for(var rt=y.length,at=0;at=tt&&(tt=1);for(var ot=z.actualBounds,rt=a.O.s,at=a.graduatedMarks,ut=rt.length,gt=0;gta.graduatedTickUnit*mt.interval*z.geometry.flattenedTotalLength/a.graduatedRange*tt&&mt.graduatedSkip===null)){var Et=mt.measuredBounds,Ot=mt.strokeWidth*mt.scale,Tt=mt.alignmentFocus;Tt.Mc()&&(Tt=pa);for(var Gt=0;Gttt.height)continue}else if(at.position>tt.width)continue;var ut=at.separatorStrokeWidth;isNaN(ut)&&(ut=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var gt=at.separatorStroke;if(gt===null&&(gt=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ut!==0&>!==null){Xo(a,y,gt,!1,!1,tt,z),gt=!1;var mt=at.separatorDashArray;mt===null&&(mt=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),mt!==null&&(gt=!0,y.js(mt,0)),y.beginPath(),mt=at.position+ut,x?mt>tt.height&&(ut-=mt-tt.height):mt>tt.width&&(ut-=mt-tt.width),at=at.position+ut/2,y.lineWidth=ut,ut=a.yb,x?(at+=ut.top,mt=tt.width-ut.right,y.moveTo(ut.left,at),y.lineTo(mt,at)):(at+=ut.left,mt=tt.height-ut.bottom,y.moveTo(at,ut.top),y.lineTo(at,mt)),y.stroke(),y.Se(),gt&&y.fs()}}}}function Ep(a,y,x,E,b){for(var z=E.length,tt=a.actualBounds,ot=a.naturalBounds,rt=r1(a,!0),at=r1(a,!1),ut=0;utmt)){var St=gt.Wc(),wt=gt.separatorStrokeWidth;isNaN(wt)&&(wt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Et=gt.separatorStroke;Et===null&&(Et=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Et===null||gt.index===(x?rt:at))&&(wt=0),St-=wt,wt=gt.position+wt,St+=gt.actual,wt+St>mt&&(St=mt-wt),0>=St||(mt=a.yb,Xo(a,y,gt.background,!0,!1,ot,tt),x?y.fillRect(mt.left,wt+mt.top,tt.width-(mt.left+mt.right),St):y.fillRect(wt+mt.left,mt.top,St,tt.height-(mt.top+mt.bottom)))}}}}function r1(a,y){for(var x=y?a.rowCount:a.columnCount,E=0;EE&&b.set(wt),Rt.free(wt)),Rt.free(ut),z&&b.transform(tt),at},Ct.Gj=function(){for(var a=this.O.s,y=a.length,x=0;xx||z>E)&&(this.v(),this.measure(y>x?x:y,z>E?E:z,0,0));break;case Re:this.v(!0),this.measure(x+ot,E+tt,0,0);break;case Nn:this.v(!0),this.measure(x+ot,z+tt,0,0);break;case Hn:this.v(!0),this.measure(y+ot,E+tt,0,0)}}this.na.arrange(this,b,this.jg)}},Ct.gh=function(a){var y=this.naturalBounds,x=dh(this);if(Yr(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var E=y.length,b=Rt.allocAt(0,0);E--;){var z=y[E];if((z.visible||z===x)&&(tr(b.set(a),z.transform),z.ca(b)))return Rt.free(b),!0}return Rt.free(b),!(this.Ma===null&&this.areaBackground===null)}return!1},Ct.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,E=0;Emt.width||gt.y>mt.height||0>gt.x+gt.width||0>gt.y+gt.height||(gt=ut,ut=ut instanceof Ue?ut:null,mt=In.alloc(),mt.set(tt),(ut!==null?ut.Cf(a,y,x,E,b,mt):jr(gt,a,E,mt))&&(y!==null&&(gt=y(gt)),gt===null||x!==null&&!x(gt)||b.add(gt)),In.free(mt))}}return z===void 0&&In.free(tt),E}return z===void 0&&In.free(tt),!1};function mv(a,y,x,E){for(var b=a.O.s,z=b.length;z--;){var tt=b[z];if(tt.visible){var ot=tt.actualBounds,rt=a.naturalBounds;ot.x>rt.width||ot.y>rt.height||0>ot.x+ot.width||0>ot.y+ot.height||(tt instanceof Ue&&mv(tt,y,x,E),y!==null&&(tt=y(tt)),tt===null||x!==null&&!x(tt)||E.add(tt))}}}Ct.og=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;x===void 0&&(x=null),E===void 0&&(E=null);var tt=this.naturalBounds,ot=this.se(),rt=ot?a:tr(Rt.allocAt(a.x,a.y),this.transform),at=ot?y:tr(Rt.allocAt(y.x,y.y),this.transform),ut=rt.Bf(at),gt=0Ot.width||Et.y>Ot.height||0>Et.x+Et.width||0>Et.y+Et.height))&&(wt.se()?(Et=wt.transform,tr(rt.set(a),Et),tr(at.set(y),Et)):(rt.set(a),at.set(y)),Et=wt,wt=wt instanceof Ue?wt:null,(wt!==null?wt.og(rt,at,x,E,b,z):Et.tx(rt,at,b))&&(x!==null&&(Et=x(Et)),Et===null||E!==null&&!E(Et)||z.add(Et)))}}Rt.free(rt),Rt.free(at)}return b?gt:tt}return!1};function vv(a){var y=null;return a instanceof ni&&(y=a.spot1,y===Dr&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=Vr),y}function yv(a){var y=null;return a instanceof ni&&(y=a.spot2,y===Dr&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=Rs),y}Ct.add=function(a){for(var y=[],x=0;x=b.count&&a>=b.count)return;b.mb(z),E=z}else ie("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>b.count)&&(a=b.count),b.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),Za(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof Ue&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Np(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof en&&(x.Te=!0),x.Te&&x instanceof en&&(x.wc=null),b=this.diagram,b!==null&&b.undoManager.isUndoingRedoing||(E!==-1&&x.cb(gi,"elements",this,y,null,E,null),x.cb(mn,"elements",this,null,y,null,a)))};function Sv(a,y){a.l=y?a.l|16777216:a.l&-16777217}Ct.remove=function(a){for(var y=this.O.s,x=y.length,E=-1,b=0;ba&&Kn(a,">= 0",Ue,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Pr;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(mn,"rowdefs",this,null,x,null,a)}return y[a]},Ct.oA=function(a){if(0>a&&Kn(a,">= 0",Ue,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(gi,"rowdefs",this,x,null,a,null),this.v()}}};function h1(a,y,x){var E=a.rowDefs;if(!(0>y)){if(E[y]=x instanceof Pr?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Ct.Eb=function(a){0>a&&Kn(a,">= 0",Ue,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Pr;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(mn,"coldefs",this,null,x,null,a)}return y[a]},Ct.jA=function(a){if(0>a&&Kn(a,">= 0",Ue,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(gi,"coldefs",this,x,null,a,null),this.v()}}};function d1(a,y,x){var E=a.colDefs;if(!(0>y)){if(E[y]=x instanceof Pr?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Ct.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&kp(y,a),this},Ct.Hy=function(a,y){return(a=this.Fb(a))&&kp(a,new Pr(y)),this},Ct.By=function(a,y){return(a=this.Eb(a))&&kp(a,new Pr(y)),this},Ct.nz=function(a){if(0>a||this.type!==Ue.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,E=x.length,b=this.topIndex;ba||this.type!==Ue.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,E=x.length,b=this.leftIndex;ba;)this.pc(this.O.length-1,!1);g1(this,this.itemArray)};function g1(a,y){var x=qf(a);if(y===null||y.length===0)for(;a.O.length>x;)a.pc(a.O.length-1,!1);else if(a.O.length<=x){x=y.length;for(var E=0;Ex)){var b=wv(a,y);if(b=Pv(a,b),b!==null){if(Ml(b),b=b.copy(),b.l&16777216){var z=a.ih();z!==null&&Sv(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new Vn),a.ge.add(y,b)),z=x+qf(a),a.Gb(z,b),E&&(b.ub=y,xv(a,z,x),b.ub=null),b.data=y}}}function xv(a,y,x){for(a=a.O;ya&&Kn(a,">= 0",Ue,"padding"),a=new ii(a)):(0>a.left&&Kn(a.left,">= 0",Ue,"padding:value.left"),0>a.right&&Kn(a.right,">= 0",Ue,"padding:value.right"),0>a.top&&Kn(a.top,">= 0",Ue,"padding:value.top"),0>a.bottom&&Kn(a.bottom,">= 0",Ue,"padding:value.bottom"));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.v(),this.g("padding",y,a))}},defaultAlignment:{get:function(){return this.Tm},set:function(a){var y=this.Tm;y.D(a)||(this.Tm=a=a.J(),this.v(),this.g("defaultAlignment",y,a))}},defaultStretch:{get:function(){return this.Uf},set:function(a){var y=this.Uf;y!==a&&(this.Uf=a,this.v(),this.g("defaultStretch",y,a))}},defaultSeparatorPadding:{get:function(){return this.T!==null?this.T.Qp:Ha},set:function(a){typeof a=="number"&&(a=new ii(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new ll),this.T.Qp=a,this.v(),this.g("defaultSeparatorPadding",y,a))}},defaultRowSeparatorStroke:{get:function(){return this.T!==null?this.T.ia:null},set:function(a){var y=this.defaultRowSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof Vi)&&(a instanceof Vi&&a.freeze(),this.T===null&&(this.T=new ll),this.T.ia=a,this.N(),this.g("defaultRowSeparatorStroke",y,a))}},defaultRowSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.Ha:1},set:function(a){var y=this.defaultRowSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new ll),this.T.Ha=a,this.v(),this.g("defaultRowSeparatorStrokeWidth",y,a))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(a){var y=this.defaultRowSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;ba)&&ie("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new ll),this.T.Hb=a,this.v(),this.g("topIndex",y,a))}},leftIndex:{get:function(){return this.T!==null?this.T.hb:0},set:function(a){var y=this.leftIndex;y!==a&&((!isFinite(a)||0>a)&&ie("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new ll),this.T.hb=a,this.v(),this.g("leftIndex",y,a))}},data:{get:function(){return this.ub},set:function(a){var y=this.ub;if(y!==a){var x=this instanceof Fn&&!(this instanceof Fi);Ml(this),this.ub=a;var E=this.diagram;E!==null&&(x?(x=E.partManager,this instanceof Ve?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof Fn&&(y!==null&&x.cf.remove(y),a!==null&&x.cf.add(a,this))):(x=this.panel,x!==null&&x.ge!==null&&(y!==null&&x.ge.remove(y),a!==null&&x.ge.add(a,this)))),this.g("data",y,a),E!==null&&E.undoManager.isUndoingRedoing||a!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(a){var y=this.zn;y!==a&&(this.zn=a,this.g("itemIndex",y,a))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new Hc),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&yx(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&ly(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&ay(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||g1(this,a)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(a){if(this.itemTemplateMap===null){if(a===null)return;this.itemTemplateMap=new Vn}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof Fn||a.isPanelMain)&&ie("Panel.itemTemplate must not be a Part or be Panel.isPanelMain: "+a),this.itemTemplateMap.add("",a),this.g("itemTemplate",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv())}},itemTemplateMap:{get:function(){return this.A!==null?this.A.Pc:null},set:function(a){var y=this.itemTemplateMap;if(y!==a){for(var x=a.iterator;x.next(););oi(this),this.A.Pc=a,this.g("itemTemplateMap",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv()}}},itemCategoryProperty:{get:function(){return this.A!==null?this.A.Oc:"category"},set:function(a){var y=this.itemCategoryProperty;y!==a&&(oi(this),this.A.Oc=a,this.g("itemCategoryProperty",y,a))}},isAtomic:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("isAtomic",y,a))}},isClipping:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this instanceof qn&&(this.tb=null),this.v(),this.g("isClipping",y,a))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(a){var y=(this.l&33554432)!==0;y!==a&&(this.l^=33554432,this.v(),this.g("isOpposite",y,a))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;if(y!==a){var x=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",y,a),y=this.diagram,y!==null&&y.undoManager.isUndoingRedoing||x&&Np(this,this,a)}}},alignmentFocusName:{get:function(){return this.$e},set:function(a){var y=this.$e;y!==a&&(this.$e=a,this.v(),this.g("alignmentFocusName",y,a))}}}),fe.Object.defineProperties(Ue,{Position:{get:function(){return Rl.I("Position")}},Horizontal:{get:function(){return Rl.I("Horizontal")}},Vertical:{get:function(){return Rl.I("Vertical")}},Spot:{get:function(){return Rl.I("Spot")}},Auto:{get:function(){return Rl.I("Auto")}},Table:{get:function(){return Rl.I("Table")}},Viewbox:{get:function(){return Rl.I("Viewbox")}},TableRow:{get:function(){return Rl.I("TableRow")}},TableColumn:{get:function(){return Rl.I("TableColumn")}},Link:{get:function(){return Rl.I("Link")}},Grid:{get:function(){return Rl.I("Grid")}},Graduated:{get:function(){return Rl.I("Graduated")}}}),Ue.prototype.rebuildItemElements=Ue.prototype.mv,Ue.prototype.findItemPanelForData=Ue.prototype.sx,Ue.prototype.updateTargetBindings=Ue.prototype.La,Ue.prototype.copyTemplate=Ue.prototype.Uy,Ue.prototype.graduatedValueForPoint=Ue.prototype.Gz,Ue.prototype.graduatedPointForValue=Ue.prototype.Fz,Ue.prototype.findColumnForLocalX=Ue.prototype.fz,Ue.prototype.findRowForLocalY=Ue.prototype.nz,Ue.prototype.addColumnDefinition=Ue.prototype.By,Ue.prototype.addRowDefinition=Ue.prototype.Hy,Ue.prototype.addRowColumnDefinition=Ue.prototype.Gy,Ue.prototype.removeColumnDefinition=Ue.prototype.jA,Ue.prototype.getColumnDefinition=Ue.prototype.Eb,Ue.prototype.removeRowDefinition=Ue.prototype.oA,Ue.prototype.getRowDefinition=Ue.prototype.Fb,Ue.prototype.removeAt=Ue.prototype.mb,Ue.prototype.remove=Ue.prototype.remove,Ue.prototype.insertAt=Ue.prototype.Gb,Ue.prototype.elt=Ue.prototype.M,Ue.prototype.add=Ue.prototype.add,Ue.prototype.findObject=Ue.prototype.fb,Ue.prototype.findInVisualTree=Ue.prototype.Nl,Ue.prototype.walkVisualTreeFrom=Ue.prototype.qm,Ue.prototype.findMainElement=Ue.prototype.Pb;var f1=!1,p1=null,Rl=new Vn;Ue.className="Panel",Ue.definePanelLayout=xu,xu("Position",new pp),xu("Vertical",new vp),xu("Auto",new Sp),xu("Link",new Lp);function ch(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}ch.prototype.copy=function(){var a=new ch;return a.lq=this.lq,a.F=this.F,a.ia=this.ia,a.V=this.V,a.u=this.u,a.j=this.j,a.o=this.o,a.Zh=this.Zh,a},ch.className="GradPanelSettings";function ll(){this.Pc=[],this.Oc=[],this.j=this.ob=Fp,this.hb=this.Hb=0,this.Qp=Ha,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}ll.prototype.copy=function(a){for(var y=new ll,x=this.Pc,E=x.length,b=y.Pc,z=0;za&&Kn(a,">= 0",Pr,"height"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("height",y,a))}},width:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&Kn(a,">= 0",Pr,"width"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("width",y,a))}},minimum:{get:function(){return this.jj},set:function(a){var y=this.jj;y!==a&&((0>a||!isFinite(a))&&Kn(a,">= 0",Pr,"minimum"),this.jj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("minimum",y,a))}},maximum:{get:function(){return this.hj},set:function(a){var y=this.hj;y!==a&&(0>a&&Kn(a,">= 0",Pr,"maximum"),this.hj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("maximum",y,a))}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(this.Jb=a.J(),this.panel!==null&&this.panel.v(),this.Ob("alignment",y,a))}},stretch:{get:function(){return this.hg},set:function(a){var y=this.hg;y!==a&&(this.hg=a,this.panel!==null&&this.panel.v(),this.Ob("stretch",y,a))}},separatorPadding:{get:function(){return this.dg},set:function(a){typeof a=="number"&&(a=new ii(a));var y=this.dg;a!==null&&y!==null&&y.D(a)||(a!==null&&(a=a.J()),this.dg=a,this.panel!==null&&this.panel.v(),this.Ob("separatorPadding",y,a))}},separatorStroke:{get:function(){return this.lo},set:function(a){var y=this.lo;y!==a&&(a!==null&&Wc(a,"RowColumnDefinition.separatorStroke"),a instanceof Vi&&a.freeze(),this.lo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",y,a))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(a){var y=this.mo;y!==a&&(this.mo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",y,a))}},separatorDashArray:{get:function(){return this.tj},set:function(a){var y=this.tj;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;bb)){var z=E.measuredBounds,tt=Math.max(1,z.width);z=z.height;for(var ot=x[0],rt=x[1],at,ut,gt,mt,St,wt,Et=0,Ot=vi(),Tt=2;Ttgt&&(gt=1),b=x=gt,at=tt/2,ut=at!==0,Tt=0,wt=Ot[Tt],gt=wt[0],St=wt[1],mt=wt[2],wt=wt[3];for(var Gt=0;.1<=Et;){if(Gt===0&&(ut?(b=x,b-=at,Et-=at,ut=!1):b=x,b===0&&(b=1)),b>Et){Ci(Ot);return}b>wt?(Gt=b-wt,b=wt):Gt=0;var Wt=Math.sqrt(b*b/(1+mt*mt));if(0>gt&&(Wt=-Wt),ot+=Wt,rt+=mt*Wt,a.translate(ot,rt),a.rotate(St),a.translate(-(tt/2),-(z/2)),Gt===0&&E.hh(a,y),a.translate(tt/2,z/2),a.rotate(-St),a.translate(-ot,-rt),Et-=b,wt-=b,Gt!==0){if(Tt++,Tt===Ot.length){Ci(Ot);return}wt=Ot[Tt],gt=wt[0],St=wt[1],mt=wt[2],wt=wt[3],b=Gt}}Ci(Ot)}}Ct.hh=function(a,y){var x=this.xc,E=this.Ui;if(x!==null||E!==null){var b=this.ua;if(b!==null){a.yc();var z=this.actualBounds,tt=this.naturalBounds;E!==null&&Xo(this,a,E,!0,!1,tt,z);var ot=this.part,rt=this.ig;if(x===null||rt!==0||ot===null||!this.isPanelMain&&ot.Pb()!==this||(rt=ot.type===Ue.Link&&ot instanceof Fi&&ot.category==="Selection"&&ot.adornedObject instanceof ni&&ot.adornedPart.Pb()===ot.adornedObject?ot.adornedObject.strokeWidth:0),rt===0&&(x=null),x!==null&&rt!==0&&(Xo(this,a,x,!1,!1,tt,z),a.lineWidth=rt,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,ot&&y.Gf("drawShadows")&&(z=ot.isShadowed),a.Il===!1&&(z=!1),ot=!0,x===null||E!==null&&E!=="transparent"||(ot=!1),tt=!1,rt=this.strokeDashArray,rt!==null&&(tt=!0,a.js(rt,this.strokeDashOffset)),b.type===He.j)a.beginPath(),a.moveTo(b.startX,b.startY),a.lineTo(b.endX,b.endY),x!==null&&a.jk(),a.Se();else if(b.type===He.u){var at=b.startX;rt=b.startY;var ut=b.endX,gt=b.endY;b=Math.min(at,ut);var mt=Math.min(rt,gt);at=Math.abs(ut-at),rt=Math.abs(gt-rt),a.beginPath(),a.rect(b,mt,at,rt),E!==null&&a.ng(E),x!==null&&(ot&&z&&zu(a),a.jk(),ot&&z&&lh(a)),a.Se()}else if(b.type===He.F)at=b.startX,rt=b.startY,ut=b.endX,gt=b.endY,b=Math.abs(ut-at)/2,mt=Math.abs(gt-rt)/2,at=Math.min(at,ut)+b,rt=Math.min(rt,gt)+mt,a.beginPath(),a.moveTo(at,rt-mt),a.bezierCurveTo(at+Jt.wg*b,rt-mt,at+b,rt-Jt.wg*mt,at+b,rt),a.bezierCurveTo(at+b,rt+Jt.wg*mt,at+Jt.wg*b,rt+mt,at,rt+mt),a.bezierCurveTo(at-Jt.wg*b,rt+mt,at-b,rt+Jt.wg*mt,at-b,rt),a.bezierCurveTo(at-b,rt-Jt.wg*mt,at-Jt.wg*b,rt-mt,at,rt-mt),a.closePath(),E!==null&&a.ng(E),x!==null&&(ot&&z&&zu(a),a.jk(),ot&&z&&lh(a)),a.Se();else if(b.type===He.o)for(b=b.figures,rt=b.length,mt=0;mtEt.sweepAngle,St!==null?St.endX:at.startX,St!==null?St.endY:at.startY)}else if(St=_i(Et,at),Ot=St.length,Ot===0)a.lineTo(Et.centerX,Et.centerY);else for(var Tt=0;Tt(x.startX-x.endX)*(a.x-x.endX)+(x.startY-x.endY)*(a.y-x.endY)||0>E)?!1:(Me.free(z),Jt.Yb(x.startX,x.startY,x.endX,x.endY,b,a.x,a.y));if(x.type===He.u){y=x.startX;var tt=x.startY,ot=x.endX;if(x=x.endY,z.x=Math.min(y,ot),z.y=Math.min(tt,x),z.width=Math.abs(ot-y),z.height=Math.abs(x-tt),this.fill===null){if(z.Bc(-E,-E),z.ca(a))return Me.free(z),!1;z.Bc(E,E)}return this.stroke!==null&&z.Bc(b,b),a=z.ca(a),Me.free(z),a}if(x.type===He.F){tt=x.startX,b=x.startY,ot=x.endX;var rt=x.endY;if(x=Math.min(tt,ot),y=Math.min(b,rt),tt=Math.abs(ot-tt)/2,b=Math.abs(rt-b)/2,x=a.x-(x+tt),y=a.y-(y+b),this.fill===null){if(tt-=E,b-=E,0>=tt||0>=b||1>=x*x/(tt*tt)+y*y/(b*b))return Me.free(z),!1;tt+=E,b+=E}return this.stroke!==null&&(tt+=E,b+=E),Me.free(z),0>=tt||0>=b?!1:1>=x*x/(tt*tt)+y*y/(b*b)}if(x.type===He.o)return Me.free(z),this.fill===null?Zr(x,a.x,a.y,b):Jo(x,a,b,1=this.strokeWidth)ut=Jt.Ve(at.startX,at.startY,at.endX,at.endY,z,tt,ot,rt,b);else{if(at.startX===at.endX?(E=gt,ut=0):(y=(at.endY-at.startY)/(at.endX-at.startX),ut=gt/Math.sqrt(1+y*y),E=ut*y),y=vi(),a=new Rt,Jt.Ve(at.startX+E,at.startY+ut,at.endX+E,at.endY+ut,z,tt,ot,rt,a)&&y.push(a),a=new Rt,Jt.Ve(at.startX-E,at.startY-ut,at.endX-E,at.endY-ut,z,tt,ot,rt,a)&&y.push(a),a=new Rt,Jt.Ve(at.startX+E,at.startY+ut,at.startX-E,at.startY-ut,z,tt,ot,rt,a)&&y.push(a),a=new Rt,Jt.Ve(at.endX+E,at.endY+ut,at.endX-E,at.endY-ut,z,tt,ot,rt,a)&&y.push(a),ot=y.length,ot===0)return Ci(y),!1;for(ut=!0,rt=1/0,E=0;EMath.abs(x)){if(rt=tt-ut-x*(z-E),0>a*a*x*x+at*at-rt*rt){b.x=NaN,b.y=NaN,ut=!1;break t}gt=Math.sqrt(a*a*x*x+at*at-rt*rt),ot=(-(a*a*x*rt)+a*at*gt)/(at*at+a*a*x*x)+E,a=(-(a*a*x*rt)-a*at*gt)/(at*at+a*a*x*x)+E,at=x*(ot-E)+rt+ut,rt=x*(a-E)+rt+ut,Math.abs((z-ot)*(z-ot))+Math.abs((tt-at)*(tt-at))ot){b.x=NaN,b.y=NaN,ut=!1;break t}rt=Math.sqrt(ot),ot=ut+rt,rt=ut-rt,Math.abs(ot-tt)Math.abs(wt)?(Et*=.5/wt,wt=.5):Et!==0&&.5>Math.abs(Et)&&(wt*=.5/Et,Et=.5),Tt-=wt,Gt-=Et;St.contains(Tt,Gt);)Tt-=wt,Gt-=Et;for(b.x=ot,b.y=rt,Et=0;Etx?a-x:x-a)<(y>E?y-E:E-y)?(a=ya||Jt.$(rt.y,a))&&(rt.yy||Jt.$(rt.x,y))&&(rt.x=a&&E<=y):(a=E&&x<=a)}Ct.tx=function(a,y,x){function E(Ot,Tt){for(var Gt=Ot.length,Wt=0;Wtb)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var b=a.Bf(y),z=b;if(1.5=b||Ea(y,z,0,-gt)>=b||Ea(y,z,0,gt)>=b||Ea(y,z,ut,0)>=b)}else if(y.type===He.o){if(at=y.bounds,z=at.x,ot=at.y,rt=at.x+at.width,at=at.y+at.height,a.x>rt&&a.xat&&a.yb&&gr(a.x,a.y,z,ot,rt,ot)>b&&gr(a.x,a.y,rt,at,z,at)>b&&gr(a.x,a.y,rt,at,rt,ot)>b)return!1;if(z=Math.sqrt(b),x){if(this.fill===null?Zr(y,a.x,a.y,z):Jo(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;yb)return!1;for(ot=z.segments.s,rt=ot.length,at=0;atb)return!1;break;case Uo:var mt=vi();if(Jt.Qe(tt,ut,gt.point1X,gt.point1Y,gt.point2X,gt.point2Y,gt.endX,gt.endY,.8,mt),tt=E(mt,a),Ci(mt),tt||(tt=gt.endX,ut=gt.endY,a.zd(tt,ut)>b))return!1;break;case Fr:if(mt=vi(),Jt.ep(tt,ut,gt.point1X,gt.point1Y,gt.endX,gt.endY,.8,mt),tt=E(mt,a),Ci(mt),tt||(tt=gt.endX,ut=gt.endY,a.zd(tt,ut)>b))return!1;break;case Bo:case Us:mt=gt.type===Bo?_i(gt,z):zo(gt,z,tt,ut);var St=mt.length;if(St===0){if(tt=gt.type===Bo?gt.centerX:gt.endX,ut=gt.type===Bo?gt.centerY:gt.endY,a.zd(tt,ut)>b)return!1;break}gt=null;for(var wt=vi(),Et=0;Et= 0",ni,"strokeWidth:value")}},strokeCap:{get:function(){return this.Na!==null?this.Na.Hr:"butt"},set:function(a){var y=this.strokeCap;y!==a&&(typeof a!="string"||a!=="butt"&&a!=="round"&&a!=="square"?Kn(a,'"butt", "round", or "square"',ni,"strokeCap"):(hc(this),this.Na.Hr=a,this.N(),this.g("strokeCap",y,a)))}},strokeJoin:{get:function(){return this.Na!==null?this.Na.Ir:"miter"},set:function(a){var y=this.strokeJoin;y!==a&&(typeof a!="string"||a!=="miter"&&a!=="bevel"&&a!=="round"?Kn(a,'"miter", "bevel", or "round"',ni,"strokeJoin"):(hc(this),this.Na.Ir=a,this.N(),this.g("strokeJoin",y,a)))}},strokeMiterLimit:{get:function(){return this.Na!==null?this.Na.Jr:10},set:function(a){var y=this.strokeMiterLimit;if(y!==a&&1<=a){hc(this),this.Na.Jr=a,this.N();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeMiterLimit",y,a)}}},strokeDashArray:{get:function(){return this.Yg},set:function(a){var y=this.Yg;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;ba?a=0:1a?a=0:1(gt*gt+ut*ut)*mt*mt&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof Ta&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,gt=this.spacingBelow,this.flip){case ki:a.translate(b,0),a.scale(-1,1);break;case ai:a.translate(0,z),a.scale(1,-1);break;case Xi:a.translate(b,z),a.scale(-1,-1)}if(a.yc(),ut=this.Gc,mt=(y+tt+gt)*ut,z>mt&&(E=this.verticalAlignment,E=E.y*z-E.y*mt+E.offsetY),ut===1&&this.ze!==null)gt=this.Cb,gt>b&&(gt=b),this.Oj(this.ze,a,0,E+y,b,tt,gt,x,ot,rt,at);else if(this.Qc!==null&&this.Qb!==null)for(mt=0;mtb&&(St=b),E+=y,this.Oj(this.Qb[mt],a,0,E,b,tt,St,x,ot,rt,at),E+=tt+gt}switch(this.flip){case ki:a.scale(-1,1),a.translate(-b,0);break;case ai:a.scale(1,-1),a.translate(0,-z);break;case Xi:a.scale(-1,-1),a.translate(-b,-z)}}},Ct.Oj=function(a,y,x,E,b,z,tt,ot,rt,at,ut){var gt=0;if(ot)rt==="left"?gt=0:rt==="right"?gt=b-tt:rt==="center"&&(gt=(b-tt)/2),y.fillRect(x+gt,E+.25*z,tt,1);else{if(rt==="left"?gt=0:rt==="right"?gt=b:rt==="center"&&(gt=b/2),b=Ip!==null?Ip(this,z):.75*z,y.fillText(a,x+gt,E+b),a=z/20|0,a===0&&(a=1),rt==="right"?gt-=tt:rt==="center"&&(gt-=tt/2),at){ot=bp!==null?bp(this,z):.8*z,rt=x+gt,at=E+ot,b=x+gt+tt,ot=E+ot;var mt=a;y.beginPath(),y.lineWidth=mt,y.moveTo(rt,at),y.lineTo(b,ot),y.stroke(),y.Se(),y instanceof Ta&&y.ad.classList.add("gojs-td")}ut&&(ut=E+z-z/2.2|0,a%2!==0&&(ut+=.5),E=x+gt,z=ut,x=x+gt+tt,tt=ut,gt=a,y.beginPath(),y.lineWidth=gt,y.moveTo(E,z),y.lineTo(x,tt),y.stroke(),y.Se(),y instanceof Ta&&y.ad.classList.add("gojs-td"))}},Ct.kk=function(a,y,x){if(!Xt.prototype.kk.call(this,a,y,x))return!1;if(Xo(this,a,this.xc,!0,!1,this.naturalBounds,this.actualBounds),x){if(this.svg.getElementsByTagName("text").length===0)return!0;for(y=this.svg.getElementsByClassName("gojs-td"),x=0;x=this.Qb.length))){for(this.l|=16777216,at=this.Qb[rt],y=Math.max(1,a-y);Rl(at)>y&&1a.maxLines&&(a.l|=16777216))}function Av(a,y,x,E){var b=a.formatting===n0;b&&(y=y.trim());var z=0,tt=a.Ae,ot=a.spacingAbove+a.spacingBelow;ot=Math.max(0,e0(a)+ot);var rt=a.overflow===jp?S1(tt):0;if(a.Gc>=a.maxLines)E!==null&&E.h(0,ot);else if(tt=y,a.wrap===Nv){a.Le=1;var at=Rl(y);if(rt===0||at<=x)a.Cb=Math.max(a.Cb,at),t0(a,y,a.Cb),E!==null&&E.h(at,ot);else{for(z=Ig(a,tt),tt=tt.substr(z.length),y=Ig(a,tt),at=Rl(z+y);0x&&1x;){var gt=1;for(at=Rl(y.substr(0,gt)),ut=0;at<=x;)gt++,ut=at,at=Rl(y.substr(0,gt));if(gt===1){var mt=at;z=Math.max(z,at)}else mt=ut,z=Math.max(z,ut);if(gt--,1>gt&&(gt=1),t0(a,y.substr(0,gt),mt),rt++,y=y.substr(gt),a.Gc+rt>a.maxLines)break}for(ut=Ig(a,tt),at=Rl(y+ut);0a.maxLines))break}a.Le=Math.min(a.maxLines,rt),a.Cb=Math.max(a.Cb,z),E!==null&&E.h(a.Cb,ot*a.Le)}}function Ig(a,y){if(a.wrap===P1)return y.substr(0,1);for(var x=y.length,E=0,b=Sx;E=y.length?y:y.substr(0,E)}function Rl(a){return la===null?8*a.length:la.measureText(a).width}function e0(a){if(a.df!==null)return a.df;var y=a.Ae;if(la===null){var x=16;return a.df=x}return Fv[y]!==void 0&&5e3>C1?x=Fv[y]:(x=1.3*la.measureText("M").width,Fv[y]=x,C1++),a.df=x}function S1(a){if(la===null)return 6;if(Op[a]!==void 0&&5e3>Tv)var y=Op[a];else y=la.measureText(i0).width,Op[a]=y,Tv++;return y}function x1(a,y){var x=a.ec.replace(/\r\n/g,` +`,ot);at===-1&&(at=z.length,rt=!0),ot=z.substr(ot,at-ot),this.formatting===n0&&(ot=ot.trim()),tt=Math.max(tt,Gl(ot)),ot=at+1}z=tt}else tt=z.indexOf(` +`,0),0<=tt&&(z=z.substr(0,tt)),z=Gl(z);z=Math.min(z,a/this.scale)}else z=this.desiredSize.width;if(this.panel!==null&&(z=Math.min(z,this.panel.maxSize.width)),tt=x1(this,z),isNaN(this.desiredSize.height)?tt=Math.min(tt,y/this.scale):tt=this.desiredSize.height,rt=tt,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===jp&&(y=this.Ae,y=this.overflow===jp?S1(y):0,at=this.spacingAbove+this.spacingBelow,at=Math.max(0,e0(this)+at),rt=Math.min(this.maxLines-1,Math.max(Math.floor(rt/at+.01)-1,0)),!(rt+1>=this.Qb.length))){for(this.l|=16777216,at=this.Qb[rt],y=Math.max(1,a-y);Gl(at)>y&&1a.maxLines&&(a.l|=16777216))}function Av(a,y,x,E){var b=a.formatting===n0;b&&(y=y.trim());var z=0,tt=a.Ae,ot=a.spacingAbove+a.spacingBelow;ot=Math.max(0,e0(a)+ot);var rt=a.overflow===jp?S1(tt):0;if(a.Gc>=a.maxLines)E!==null&&E.h(0,ot);else if(tt=y,a.wrap===Nv){a.Le=1;var at=Gl(y);if(rt===0||at<=x)a.Cb=Math.max(a.Cb,at),t0(a,y,a.Cb),E!==null&&E.h(at,ot);else{for(z=Ig(a,tt),tt=tt.substr(z.length),y=Ig(a,tt),at=Gl(z+y);0x&&1x;){var gt=1;for(at=Gl(y.substr(0,gt)),ut=0;at<=x;)gt++,ut=at,at=Gl(y.substr(0,gt));if(gt===1){var mt=at;z=Math.max(z,at)}else mt=ut,z=Math.max(z,ut);if(gt--,1>gt&&(gt=1),t0(a,y.substr(0,gt),mt),rt++,y=y.substr(gt),a.Gc+rt>a.maxLines)break}for(ut=Ig(a,tt),at=Gl(y+ut);0a.maxLines))break}a.Le=Math.min(a.maxLines,rt),a.Cb=Math.max(a.Cb,z),E!==null&&E.h(a.Cb,ot*a.Le)}}function Ig(a,y){if(a.wrap===P1)return y.substr(0,1);for(var x=y.length,E=0,b=Sx;E=y.length?y:y.substr(0,E)}function Gl(a){return la===null?8*a.length:la.measureText(a).width}function e0(a){if(a.df!==null)return a.df;var y=a.Ae;if(la===null){var x=16;return a.df=x}return Fv[y]!==void 0&&5e3>C1?x=Fv[y]:(x=1.3*la.measureText("M").width,Fv[y]=x,C1++),a.df=x}function S1(a){if(la===null)return 6;if(Op[a]!==void 0&&5e3>Tv)var y=Op[a];else y=la.measureText(i0).width,Op[a]=y,Tv++;return y}function x1(a,y){var x=a.ec.replace(/\r\n/g,` `).replace(/\r/g,` `),E=a.spacingAbove+a.spacingBelow;if(E=Math.max(0,e0(a)+E),x.length===0)return a.Cb=0,a.Gc=1,E;if(!a.isMultiline){var b=x.indexOf(` `,0);0<=b&&(x=x.substr(0,b))}b=0;for(var z=a.Gc=0,tt,ot=!1;!ot;){if(tt=x.indexOf(` -`,z),tt===-1&&(tt=x.length,ot=!0),z<=tt){if(z=x.substr(z,tt-z),a.wrap!==Nv){a.Le=0;var rt=tn.alloc();Av(a,z,y,rt),b+=rt.height,tn.free(rt),a.Gc+=a.Le}else Av(a,z,y,null),b+=E,a.Gc++;a.Gc===a.maxLines&&(ot=!0)}z=tt+1}return a.Lq=b}fe.Object.defineProperties(ao.prototype,{font:{get:function(){return this.Ae},set:function(a){var y=this.Ae;y!==a&&(this.Ae=a,this.df=null,this.v(),this.g("font",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;a!=null?a=a.toString():a="",y!==a&&(this.ec=a,this.v(),this.g("text",y,a),this.Uc=!0)}},textAlign:{get:function(){return this.da!==null?this.da.Or:"start"},set:function(a){var y=this.textAlign;y===a||a!=="start"&&a!=="end"&&a!=="left"&&a!=="right"&&a!=="center"||(wu(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:Te},set:function(a){var y=this.flip;y!==a&&(wu(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:ce},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),wu(this),this.da.Yr=a,Ws(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=tn.alloc();Av(this,this.ec,999999,a);var y=a.width;tn.free(a),a=x1(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),Ts(this.dc,y,a)}return this.dc}},isMultiline:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this.v(),this.g("isMultiline",y,a))}},isUnderline:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;y!==a&&(this.l^=4194304,this.Uc=!0,this.N(),this.g("isUnderline",y,a))}},isStrikethrough:{get:function(){return(this.l&8388608)!==0},set:function(a){var y=(this.l&8388608)!==0;y!==a&&(this.l^=8388608,this.Uc=!0,this.N(),this.g("isStrikethrough",y,a))}},wrap:{get:function(){return this.da!==null?this.da.$r:kv},set:function(a){var y=this.wrap;y!==a&&(wu(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:Dv},set:function(a){var y=this.overflow;y!==a&&(wu(this),this.da.$q=a,this.v(),this.g("overflow",y,a))}},isOverflowed:{get:function(){return(this.l&16777216)!==0}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&Wc(a,"TextBlock.stroke"),a instanceof Vi&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return e0(this)}},editable:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("editable",y,a))}},textEditor:{get:function(){return this.da!==null?this.da.Qr:null},set:function(a){var y=this.textEditor;y!==a&&(wu(this),this.da.Qr=a,this.g("textEditor",y,a))}},errorFunction:{get:function(){return this.da!==null?this.da.Hd:null},set:function(a){var y=this.errorFunction;y!==a&&(wu(this),this.da.Hd=a,this.g("errorFunction",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new Hu),this.fa.Tk=a,this.v();var x=this.panel;x!==null&&(x.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1a?a=0:1=a&&Kn(a,"> 0",ao,"maxLines"),wu(this),this.da.Jq=a,this.v(),this.g("maxLines",y,a))}},metrics:{get:function(){return{arrSize:this.Qc!==null?this.Qc:[this.Cb],arrText:this.Qb!==null?this.Qb:[this.ze],maxLineWidth:this.Cb,fontHeight:this.df}}},choices:{get:function(){return this.Gm},set:function(a){var y=this.Gm;y!==a&&(this.Gm=a,this.g("choices",y,a))}}});var Ip=null,bp=null,Nv=new je(ao,"None",0),w1=new je(ao,"WrapFit",1),kv=new je(ao,"WrapDesiredSize",2),P1=new je(ao,"WrapBreakAll",3),Dv=new je(ao,"OverflowClip",0),jp=new je(ao,"OverflowEllipsis",1),n0=new je(ao,"FormatTrim",0),M1=new je(ao,"FormatNone",0),Sx=/[ \u200b\u00ad]/,Fv=new mi,C1=0,Op=new mi,Tv=0,i0="...",L1="",la=null,zp=!1;ao.className="TextBlock";function Bv(){this.nc=!1,this.Hd=null,this.Xf=Te,this.gq=n0,this.Jq=1/0,this.$q=Dv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=ce,this.$r=kv}Bv.prototype.copy=function(){var a=new Bv;return a.Hd=this.Hd,a.Xf=this.Xf,a.gq=this.gq,a.Jq=this.Jq,a.$q=this.$q,a.Dr=this.Dr,a.Er=this.Er,a.Or=this.Or,a.Pr=this.Pr,a.Qr=this.Qr,a.vj=this.vj,a.Yr=this.Yr,a.$r=this.$r,a},ao.getEllipsis=function(){return i0},ao.setEllipsis=function(a){i0=a,Op=new mi,Tv=0},ao.getBaseline=function(){return Ip},ao.setBaseline=function(a){Ip=a},ao.getUnderline=function(){return bp},ao.setUnderline=function(a){bp=a},ao.isValidFont=function(a){if(zp||(la=Qo?new Pl(null).context:null,zp=!0),la===null)return!0;var y=la.font;if(a===y||a==="10px sans-serif")return!0;la.font="10px sans-serif",la.font=a;var x=la.font;if(x!=="10px sans-serif")return la.font=y,!0;la.font="19px serif";var E=la.font;return la.font=a,x=la.font,la.font=y,x!==E},ao.FormatNone=M1,ao.FormatTrim=n0,ao.None=Nv,ao.OverflowClip=Dv,ao.OverflowEllipsis=jp,ao.WrapBreakAll=P1,ao.WrapDesiredSize=kv,ao.WrapFit=w1;function Hu(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Hu.prototype.copy=function(){var a=new Hu;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},Hu.className="GradElementSettings";function ua(a,y){Xt.call(this),this.Eg=null,this.qo="",this.Xg=ku,this.Nk=Re,this.Zg=this.Hd=null,this.Mk=zi,this.Xf=Te,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,typeof a=="string"?this.source=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}var bg;pe(ua,Xt),ua.prototype.cloneProtected=function(a){Xt.prototype.cloneProtected.call(this,a),a.qo=this.qo,a.element=this.Eg,a.Xg=this.Xg.J(),a.Nk=this.Nk,a.Xf=this.Xf,a.Hd=this.Hd,a.Zg=this.Zg,a.Mk=this.Mk.J(),a.en=this.en,a.rl=this.rl},ua.prototype.qb=function(a){a===Te||a===Pn||a===xi?this.imageStretch=a:Xt.prototype.qb.call(this,a)},ua.prototype.toString=function(){return"Picture("+this.source+")#"+vr(this)};function jg(a){a===void 0&&(a=""),a!==""?bg[a]&&(delete bg[a],Rp--):(bg=new mi,Rp=0)}function E1(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var E=y.Bg.copy();if(E!=null){for(E=E.iterator;E.next();){var b=E.value;b.N();var z=y.getAttribute("src")||"",tt=b.Og.I(z);if(tt!==null)for(var ot=tt.length,rt=0;rt=E.width&&(z=z+wt.offsetX+(gt*wt.x-E.width*wt.x)),mt>=E.height&&(tt=tt+wt.offsetY+(mt*wt.y-E.height*wt.y)),rt=Math.min(E.width,gt),ot=Math.min(E.height,mt);break;case Re:gt=E.width,mt=E.height;break;case Pn:case xi:St===Pn?(St=Math.min(E.height/mt,E.width/gt),gt*=St,mt*=St):St===xi&&(St=Math.max(E.height/mt,E.width/gt),gt*=St,mt*=St,gt>=E.width&&(z=(z+wt.offsetX+(gt*wt.x-E.width*wt.x)/gt)*rt),mt>=E.height&&(tt=(tt+wt.offsetY+(mt*wt.y-E.height*wt.y)/mt)*ot),rt*=1/(gt/E.width),ot*=1/(mt/E.height),gt=E.width,mt=E.height)}St=this.Df()*y.scale;var Et=gt*St*mt*St,Ot=rt*ot/Et,Tt=x.__goCache;St=null;var Gt=xx;if(!b){if(x.sq&&Tt!==void 0&&4Gt*Gt)for(Tt.gi===null&&(N1(Tt,4,at,ut,x),N1(Tt,16,at,ut,x)),b=Tt.gi,at=b.length,ut=0;uta)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,x/3);var E="rr"+y+","+x+","+a,b=Jt.Mf[E];if(b!==void 0)return b;var z=a*Jt.wg;return b=new He().add(new Zo(a,0,!0).add(new Yn(Ei,y-a,0)).add(new Yn(Uo,y,a,y-z,0,y,z)).add(new Yn(Ei,y,x-a)).add(new Yn(Uo,y-a,x,y,x-z,y-z,x)).add(new Yn(Ei,a,x)).add(new Yn(Uo,0,x-a,z,x,0,x-z)).add(new Yn(Ei,0,a)).add(new Yn(Uo,a,0,0,z,z,0).close())),1b.x&&a.y>b.y&&a.rightb.x&&y.y>b.y&&y.right=x.maxSelectionCount)){this.G^=4096;var E=!1;if(x!==null){E=x.skipsUndoManager,x.skipsUndoManager=!0;var b=x.selection;b.ka(),a?b.add(this):b.remove(this),b.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),x!==null&&(x.$b(),x.skipsUndoManager=E)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(a){var y=(this.G&524288)!==0;if(y!==a){this.G^=524288;var x=this.diagram;x!==null&&(x=x.highlighteds,x.ka(),a?x.add(this):x.remove(this),x.freeze()),this.g("isHighlighted",y,a),this.N(),a=this.highlightedChanged,a!==null&&a(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(a){var y=(this.G&8192)!==0;y!==a&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",y,a),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(a){var y=(this.G&262144)!==0;y!==a&&(this.G^=262144,this.g("isAnimated",y,a))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(a){var y=this.highlightedChanged;y!==a&&(ha(this),this.P.oq=a,this.g("highlightedChanged",y,a))}},selectionObjectName:{get:function(){return this.P!==null?this.P.vr:""},set:function(a){var y=this.selectionObjectName;y!==a&&(ha(this),this.P.vr=a,this.Ug=null,this.g("selectionObjectName",y,a))}},selectionAdornmentTemplate:{get:function(){return this.P!==null?this.P.tr:null},set:function(a){var y=this.selectionAdornmentTemplate;y!==a&&(ha(this),this.P.tr=a,this.g("selectionAdornmentTemplate",y,a))}},selectionObject:{get:function(){if(this.Ug===null){var a=this.selectionObjectName;a!==null&&a!==""?(a=this.fb(a),a!==null?this.Ug=a:this.Ug=this):this instanceof Ve?(a=this.path,a!==null?this.Ug=a:this.Ug=this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return this.P!==null?this.P.ur:null},set:function(a){var y=this.selectionChanged;y!==a&&(ha(this),this.P.ur=a,this.g("selectionChanged",y,a))}},resizeAdornmentTemplate:{get:function(){return this.P!==null?this.P.fr:null},set:function(a){var y=this.resizeAdornmentTemplate;y!==a&&(ha(this),this.P.fr=a,this.g("resizeAdornmentTemplate",y,a))}},resizeObjectName:{get:function(){return this.P!==null?this.P.hr:""},set:function(a){var y=this.resizeObjectName;y!==a&&(ha(this),this.P.hr=a,this.g("resizeObjectName",y,a))}},resizeObject:{get:function(){var a=this.resizeObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},resizeCellSize:{get:function(){return this.P!==null?this.P.gr:Sr},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),ha(this),this.P.gr=a,this.g("resizeCellSize",y,a))}},rotateAdornmentTemplate:{get:function(){return this.P!==null?this.P.ir:null},set:function(a){var y=this.rotateAdornmentTemplate;y!==a&&(ha(this),this.P.ir=a,this.g("rotateAdornmentTemplate",y,a))}},rotateObjectName:{get:function(){return this.P!==null?this.P.jr:""},set:function(a){var y=this.rotateObjectName;y!==a&&(ha(this),this.P.jr=a,this.g("rotateObjectName",y,a))}},rotateObject:{get:function(){var a=this.rotateObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},rotationSpot:{get:function(){return this.P!==null?this.P.lr:Dr},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),ha(this),this.P.lr=a,this.g("rotationSpot",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;y!==a&&(this.ec=a,this.g("text",y,a))}},containingGroup:{get:function(){return this.Ah},set:function(a){if(this.Zc()){var y=this.Ah;if(y!==a){a===null||this!==a&&!a.Td(this)||(this===a&&ie("Cannot make a Group a member of itself: "+this.toString()),ie("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?Vv(y,this):this instanceof qn&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Yv(a,this):this instanceof qn&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var E=this.data,b=x.model;if(E!==null&&b.Xj()){var z=b.wa(a!==null?a.data:null);b.mp(E,z)}}if(E=this.containingGroupChanged,E!==null&&(b=!0,x!==null&&(b=x.aa,x.aa=!0),E(this,y,a),x!==null&&(x.aa=b)),this instanceof qn){for(x=new Ke,Cd(x,this,!0,0,!0),x=x.iterator;x.next();)if(E=x.value,E instanceof en)for(E=E.linksConnected;E.next();)Rg(E.value)}if(this instanceof en){for(x=this.linksConnected;x.next();)Rg(x.value);x=this.labeledLink,x!==null&&Rg(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&cg(y,-1,a))}}else ie("cannot set the Part.containingGroup of a Link or Adornment")}},containingGroupChanged:{get:function(){return this.P!==null?this.P.Kp:null},set:function(a){var y=this.containingGroupChanged;y!==a&&(ha(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof en&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(ha(this),this.P.Cq=a,this.g("layoutConditions",y,a))}},dragComputation:{get:function(){return this.P!==null?this.P.Up:null},set:function(a){var y=this.dragComputation;y!==a&&(ha(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:ca},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),ha(this),this.P.zr=a,this.N(),this.g("shadowOffset",y,a))}},shadowColor:{get:function(){return this.P!==null?this.P.yr:"gray"},set:function(a){var y=this.shadowColor;y!==a&&(ha(this),this.P.yr=a,this.N(),this.g("shadowColor",y,a))}},shadowBlur:{get:function(){return this.P!==null?this.P.Vg:4},set:function(a){var y=this.shadowBlur;y!==a&&(ha(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),Fn.prototype.invalidateLayout=Fn.prototype.C,Fn.prototype.findCommonContainingGroup=Fn.prototype.px,Fn.prototype.isMemberOf=Fn.prototype.Td,Fn.prototype.findTopLevelPart=Fn.prototype.sz,Fn.prototype.findSubGraphLevel=Fn.prototype.oz,Fn.prototype.ensureBounds=Fn.prototype.Va,Fn.prototype.getDocumentBounds=Fn.prototype.mi,Fn.prototype.findObject=Fn.prototype.fb,Fn.prototype.moveTo=Fn.prototype.moveTo,Fn.prototype.invalidateAdornments=Fn.prototype.Wb,Fn.prototype.clearAdornments=Fn.prototype.Ej,Fn.prototype.removeAdornment=Fn.prototype.Jf,Fn.prototype.addAdornment=Fn.prototype.bh,Fn.prototype.findAdornment=Fn.prototype.Pj,Fn.prototype.updateTargetBindings=Fn.prototype.La;var G1=!1;Fn.className="Part",Fn.LayoutNone=0,Fn.LayoutAdded=1,Fn.LayoutRemoved=2,Fn.LayoutShown=4,Fn.LayoutHidden=8,Fn.LayoutNodeSized=16,Fn.LayoutGroupLayout=32,Fn.LayoutNodeReplaced=64,Fn.LayoutStandard=127,Fn.LayoutAll=16777215;function Fi(a,y){a===void 0||a instanceof Nr||typeof a=="string"?Fn.call(this,a):(Fn.call(this),a&&(y=a)),this.G&=-257,this.Jg="Adornment",this.ue=null,this.Aw=0,this.Uw=!1,this.j=this.$a=null,y&&Object.assign(this,y)}pe(Fi,Fn),Fi.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},Fi.prototype.updateRelationshipsFromData=function(){},Fi.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof Ve&&y instanceof ni){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var E=0;Ea&&(a=1);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new Ke;x.add(this),Q1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Bh),y.Ue=!1}};function Q1(a,y,x,E,b,z,tt){if(1a&&(a=2);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new Ke;x.add(this),X1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Bh),y.Ue=!1}};function X1(a,y,x,E,b,z,tt){for(var ot=z===a?!1:a.isTreeExpanded,rt=x?a.Mo():a.Sd(),at={};rt.next();){var ut=rt.value;if(ut.isTreeLink&&(ot||ut.fd||ut.bb(),ut=ut.To(a),ut!==null&&ut!==a&&!y.contains(ut))){if(y.add(ut),!ot){ut.Zb(!0),ut.oh();var gt=x?ut.Oo():ut.Po();at.vv=a,gt.all(function(mt){return function(St){return St===mt.vv||!St.isTreeExpanded}}(at))&&b.Cj(ut,z)}(2b&&(b=ot.right),ot.bottom>z&&(z=ot.bottom)}}return isFinite(x)&&isFinite(E)?a.h(x,E,b-x,z-E):(y=y.location,a.h(y.x,y.y,0,0)),a},fe.Object.defineProperties(_s.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new ii(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),_s.className="Placeholder";function Ve(a){Fn.call(this,Ue.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Zs,this.Om=0,this.Qm=Zs,this.Rm=NaN,this.qj=Xv,this.po=.5,this.wd=null,this.Nb=new Je().freeze(),this.Tg=this.Mg=null,this.ml=new Me,this.ua=new He,this.u=this.o=this.Sf=this.Wf=null,this.su=new Rt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}pe(Ve,Fn),Ve.prototype.cloneProtected=function(a){Fn.prototype.cloneProtected.call(this,a),a.Qa=this.Qa&-113,a.ff=this.ff,a.gn=this.gn,a.vf=this.vf,a.uo=this.uo,a.qk=this.qk,a.Om=this.Om,a.Qm=this.Qm,a.Rm=this.Rm,a.qj=this.qj,a.po=this.po,this.ba!==null&&(a.ba=this.ba.copy())},Ct=Ve.prototype,Ct.Af=function(a){Fn.prototype.Af.call(this,a),this.ff=a.ff,this.vf=a.vf,a.Mg=null,a.bb(),a.Sf=this.Sf;var y=a.fromPort;y!==null&&Ba(y),a=a.toPort,a!==null&&Ba(a)},Ct.qb=function(a){a.classType===Ve?(a.value&2)===2?this.routing=a:a===Ka||a===Hh||a===Hg?this.curve=a:a===a0||a===qp||a===$p?this.adjusting=a:a!==Xv&&a!==Zs&&ie("Unknown Link enum value for a Link property: "+a):Fn.prototype.qb.call(this,a)},Ct.Xc=function(){this.ba===null&&(this.ba=new Zf)},Ct.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),Ys(a)||Pd(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),Ys(a)||Pd(a)))},Ct.zv=function(){return!1},Ct.Av=function(){},Ct.Zc=function(){return!1},Ve.prototype.computeAngle=function(a,y,x){return Ve.computeAngle(y,x)},Ve.computeAngle=function(a,y){switch(a){default:case Zs:a=0;break;case l0:a=y;break;case u0:a=y+90;break;case h0:a=y-90;break;case Jv:a=y+180;break;case tm:a=Jt.bp(y),90a&&(a-=180);break;case d0:a=Jt.bp(y+90),90a&&(a-=180);break;case c0:a=Jt.bp(y-90),90a&&(a-=180);break;case em:if(a=Jt.bp(y),45a||225a)return 0;90a&&(a-=180)}return Jt.bp(a)};function Rg(a){var y=a.fromNode,x=a.toNode,E=null;if(y!==null?E=x!==null?y.px(x):y.containingGroup:x!==null?E=x.containingGroup:E=null,y=E,x=a.Ah,x!==y){x!==null&&Vv(x,a),a.Ah=y,y!==null&&Yv(y,a);var b=a.containingGroupChanged;if(b!==null){var z=!0,tt=a.diagram;tt!==null&&(z=tt.aa,tt.aa=!0),b(a,x,y),tt!==null&&(tt.aa=z)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=E}Ct=Ve.prototype,Ct.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Fn.prototype.oh.call(this)},Ct.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Ct.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function $1(a,y){a.wd===null&&(a.wd=new Ke),a.wd.add(y),a.v()}Ct.Vo=function(a){if(Fn.prototype.Vo.call(this,a),gc(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Yp(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||Yp(x,this,E)}r0(this)}},Ct.Wo=function(a){if(Fn.prototype.Wo.call(this,a),gc(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Vp(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||Vp(x,this,E)}s0(this)}},Ct.Lj=function(){if(this.fd=!0,this.wd!==null){var a=this.diagram;if(a!==null)for(var y=this.wd.copy().iterator;y.next();)a.remove(y.value)}this.data!==null&&(a=this.diagram,a!==null&&a.partManager.removeDataForLink(this))},Ve.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},Ve.prototype.move=function(a,y){var x=y?this.location:this.position,E=x.x;isNaN(E)&&(E=0);var b=x.y;for(isNaN(b)&&(b=0),E=a.x-E,b=a.y-b,y===!0?Fn.prototype.move.call(this,a,!1):(a=Rt.allocAt(x.x+E,x.y+b),Fn.prototype.move.call(this,a,!1),Rt.free(a)),Gh(this,E,b),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+E,x.y+b)},Ve.prototype.canRelinkFrom=function(){if(!this.relinkableFrom)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},Ve.prototype.canRelinkTo=function(){if(!this.relinkableTo)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},Ve.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(_l),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var x=this.i(0),E=this.i(1);return a.h((x.x+E.x)/2,(x.y+E.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===Ka))return this.ua.Pu(.5,a),a.add(this.i(0)),x=this.ua.figures.first(),a.offset(-x.startX,-x.startY),a;if(this.computeCurve()===Ka){if(y===3){x=this.i(0),E=this.i(1);var b=this.i(2);return Jt.ax(x.x,x.y,E.x,E.y,E.x,E.y,b.x,b.y,a),a}if(E=(y-1)/3|0,x=3*(E/2|0),E%2===1){E=this.i(x),b=this.i(x+1);var z=this.i(x+2);x=this.i(x+3),Jt.ax(E.x,E.y,b.x,b.y,z.x,z.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var tt=this.flattenedLengths;for(x=this.flattenedTotalLength,b=z=E=0;Ex/2));)E+=b,z++;return y=this.i(z),z=this.i(z+1),1>Math.abs(y.x-z.x)?y.y>z.y?a.h(y.x,y.y-(x/2-E)):a.h(y.x,y.y+(x/2-E)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(x/2-E),y.y):a.h(y.x+(x/2-E),y.y):(x=(x/2-E)/b,a.h(y.x+x*(z.x-y.x),y.y+x*(z.y-y.y))),a},Ve.prototype.computeMidAngle=function(){var a=this.pointsCount;if(2>a)return NaN;if(a===2)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===Ka))return this.ua.wx(.5);if(this.computeCurve()===Ka&&4<=a){var y=(a-1)/3|0,x=3*(y/2|0);if(y%2===1){x=Math.floor(x),a=this.i(x),y=this.i(x+1);var E=this.i(x+2);return x=this.i(x+3),Jt.My(a.x,a.y,y.x,y.y,E.x,E.y,x.x,x.y)}if(0E/2));)b+=z,x++;if(y=this.i(x),E=this.i(x+1),1>Math.abs(y.x-E.x)&&1>Math.abs(y.y-E.y)){if(0Math.abs(y.x-E.x))return y.y>E.y?270:90;if(1>Math.abs(y.y-E.y))return y.x>E.x?180:0}return y.ab(E)},Ct=Ve.prototype,Ct.i=function(a){return this.Nb.s[a]},Ct.dd=function(a,y){this.Nb.cd(a,y)},Ct.L=function(a,y,x){this.Nb.cd(a,new Rt(y,x))},Ct.Kz=function(a,y){this.Nb.Gb(a,y)},Ct.m=function(a,y,x){this.Nb.Gb(a,new Rt(y,x))},Ct.ne=function(a){this.Nb.add(a)},Ct.yf=function(a,y){this.Nb.add(new Rt(a,y))},Ct.pv=function(a){this.Nb.mb(a)},Ct.Fj=function(){this.Nb.clear()};function Gh(a,y,x){if(y!==0||x!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,x),a.defaultToPoint&&a.defaultToPoint.offset(y,x);else{for(var E=a.fd,b=new Je,z=a.Nb.iterator;z.next();){var tt=z.value;b.add(new Rt(tt.x+y,tt.y+x).freeze())}b.freeze(),z=a.Nb,a.Nb=b,tt=a.diagram,isNaN(y)||isNaN(x)||tt!==null&&tt.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+x),a.pa.h(a.pa.x+y,a.pa.y+x),Ws(a)),E?Zp(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),tt!==null&&tt.animationManager.zb&&dg(tt.animationManager,a,b),a.g("points",z,b)}}Ct.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Ct.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,E=1/0,b=a.s,z=b.length,tt=0;ttat&&(gt=-gt),Et=(0>rt?-1:1)*gt+St,Ot=ut*(Et-St)+wt),St=z.x+2*ot/3,wt=z.y+2*rt/3;var Tt=St,Gt=wt;Jt.B(rt,0)?Gt=0rt?-1:1)*gt+St,Gt=ut*(Tt-St)+wt),this.Fj(),this.ne(z),this.yf(Et,Ot),this.yf(Tt,Gt),this.ne(mt),this.dd(0,this.getLinkPoint(a,y,tt,!0,!1,E,b)),this.dd(3,this.getLinkPoint(E,b,x,!1,!1,a,y))}else z=E,mt=b,E=this.getLinkPoint(a,y,tt,!0,!1,z,mt),b=this.getLinkPoint(z,mt,x,!1,!1,a,y),this.hasCurviness()?(mt=b.x-E.x,x=b.y-E.y,tt=this.computeCurviness(),a=E.x+mt/2,y=E.y+x/2,z=a,ot=y,Jt.B(x,0)?ot=0tt&&(z=-z),z=(0>x?-1:1)*z+a,ot=mt*(z-a)+y),this.ne(E),this.yf(z,ot),this.ne(b)):(this.ne(E),this.ne(b),ot=Me.alloc(),y.mi(ot),rt=ot.ca(b),mt.mi(ot),at=ot.ca(E),(rt||at)&&(tt=y.ga(Kp(tt),new Rt),this.dd(0,this.getLinkPointFromPoint(a,y,tt,b,!0,tt)),x=mt.ga(Kp(x),new Rt),this.dd(1,this.getLinkPointFromPoint(z,mt,x,E,!1,x))),Me.free(ot))}else{gt=this.isAvoiding,mt&&(ut&>||at)&&this.Fj();var Wt=at?this.computeCurviness():0;gt=this.getLinkPoint(a,y,tt,!0,ut,E,b),St=Et=wt=0,(ut||!ot||at)&&(Ot=this.computeEndSegmentLength(a,y,tt,!0),St=this.getLinkDirection(a,y,gt,tt,!0,ut,E,b),at&&(ot||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(St-=ut?90:30,0>Wt&&(St-=180)),0>St?St+=360:360<=St&&(St-=360),at&&(Ot+=Math.abs(Wt)*(ut?1:2)),St===0?wt=Ot:St===90?Et=Ot:St===180?wt=-Ot:St===270?Et=-Ot:(wt=Ot*Math.cos(St*Math.PI/180),Et=Ot*Math.sin(St*Math.PI/180)),tt.Mc()&&at&&(Ot=y.ga(zi,Rt.alloc()),Tt=Rt.allocAt(Ot.x+1e3*wt,Ot.y+1e3*Et),this.getLinkPointFromPoint(a,y,Ot,Tt,!0,gt),Rt.free(Ot),Rt.free(Tt))),Ot=this.getLinkPoint(E,b,x,!1,ut,a,y);var _t=Gt=Tt=0;if(ut||!rt||at){var Kt=this.computeEndSegmentLength(E,b,x,!1);_t=this.getLinkDirection(E,b,Ot,x,!1,ut,a,y),at&&(rt||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(_t+=ut?0:30,0>Wt&&(_t+=180)),0>_t?_t+=360:360<=_t&&(_t-=360),at&&(Kt+=Math.abs(Wt)*(ut?1:2)),_t===0?Tt=Kt:_t===90?Gt=Kt:_t===180?Tt=-Kt:_t===270?Gt=-Kt:(Tt=Kt*Math.cos(_t*Math.PI/180),Gt=Kt*Math.sin(_t*Math.PI/180)),x.Mc()&&at&&(x=b.ga(zi,Rt.alloc()),tt=Rt.allocAt(x.x+1e3*Tt,x.y+1e3*Gt),this.getLinkPointFromPoint(E,b,x,tt,!1,Ot),Rt.free(x),Rt.free(tt))}x=gt,(ut||!ot||at)&&(x=new Rt(gt.x+wt,gt.y+Et)),tt=Ot,(ut||!rt||at)&&(tt=new Rt(Ot.x+Tt,Ot.y+Gt)),!mt&&!ut&&ot&&3Math.abs(y.y-a.y)?(y.x>=a.x?y.x=a.x+9e9:y.x=a.x-9e9,y.y=a.y):(y.y>=a.y?y.y=a.y+9e9:y.y=a.y-9e9,y.x=a.x),y}Ve.prototype.getLinkPointFromPoint=function(a,y,x,E,b,z){if(z===void 0&&(z=new Rt),a===null||y===null)return z.assign(x),z;if(a.isVisible()||(b=a.findVisibleNode(),b!==null&&b!==a&&(y=b.port)),a=null,b=y.panel,b===null||b.se()||(b=b.panel),b===null){b=E.x,E=E.y;var tt=x.x;x=x.y}else{a=b.oe,b=1/(a.m11*a.m22-a.m12*a.m21),tt=a.m22*b;var ot=-a.m12*b,rt=-a.m21*b,at=a.m11*b,ut=b*(a.m21*a.dy-a.m22*a.dx),gt=b*(a.m12*a.dx-a.m11*a.dy);b=E.x*tt+E.y*rt+ut,E=E.x*ot+E.y*at+gt,tt=x.x*tt+x.y*rt+ut,x=x.x*ot+x.y*at+gt}return y.Sj(b,E,tt,x,z),a!==null&&z.transform(a),z};function Qp(a,y){var x=y.Zn;return x===null&&(x=new Qc,x.port=y,x.node=y.part,y.Zn=x),aS(x,a)}Ve.prototype.getLinkPoint=function(a,y,x,E,b,z,tt,ot){if(ot===void 0&&(ot=new Rt),x.sb()&&!Gg(x))return y.ga(x,ot),ot;if(x.$c()){var rt=Qp(this,y);if(rt!==null){if(ot.assign(rt.Zo),b&&this.routing===eS){var at=Qp(this,tt);if(at!==null&&rt.Gl=ut.y&&a.y<=ut.y+ut.height?ot.y=a.y:(x.Hf(Fl)||x.Hf(Ua))&&a.x>=ut.x&&a.x<=ut.x+ut.width&&(ot.x=a.x),Rt.free(rt),Rt.free(at)}}return ot}}return x=y.ga(Kp(x),Rt.alloc()),this.pointsCount>(b?6:2)?(tt=E?this.i(1):this.i(this.pointsCount-2),b&&(tt=_v(x,tt.copy()))):(rt=this.computeSpot(!E,tt),z=Rt.alloc(),tt=tt.ga(Kp(rt),z),b&&(tt=_v(x,tt)),Rt.free(z)),this.getLinkPointFromPoint(a,y,x,tt,E,ot),Rt.free(x),ot},Ve.prototype.getLinkDirection=function(a,y,x,E,b,z,tt,ot){t:if(E.sb())var rt=E.x>E.y?E.x>1-E.y?0:E.x<1-E.y?270:315:E.x1-E.y?90:E.x<1-E.y?180:135:.5>E.x?225:.5(z?6:2)?(ot=b?this.i(1):this.i(this.pointsCount-2),ot=z?_v(rt,ot.copy()):x):(x=Rt.alloc(),ot=ot.ga(zi,x),Rt.free(x)),x=Math.abs(ot.x-rt.x)>Math.abs(ot.y-rt.y)?ot.x>=rt.x?0:180:ot.y>=rt.y?90:270,Rt.free(rt),rt=x}return E.Mc()&&tt.Td(a)&&(rt+=180,360<=rt&&(rt-=360)),Gg(E)||(a=y.li(),a===0)||(45<=a&&135>a?rt+=90:135<=a&&225>a?rt+=180:225<=a&&315>a&&(rt+=270),360<=rt&&(rt-=360)),rt},Ve.prototype.computeEndSegmentLength=function(a,y,x,E){return y!==null&&x.$c()&&(a=Qp(this,y),a!==null)?a.Ju:(a=E?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=E?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},Ve.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=zi:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===Dr?Er:y)):(a=y||this.toPort,a===null?a=zi:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Dr?Er:y)),a};function Gg(a){return a===Er||a.x===.5&&a.y===.5}function Kp(a){return a.x===.5&&a.y===.5?a:zi}Ve.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Zs&&4mt.width||gt.y>mt.height||0>gt.x+gt.width||0>gt.y+gt.height)){if(gt=In.alloc(),gt.set(tt),ut instanceof Ue)ot=ut.Cf(a,y,x,E,b,gt);else if(this.path===ut){if(ut instanceof ni)if(ot=a,mt=E,ut.pickable===!1)ot=!1;else if(gt.multiply(ut.transform),mt)t:{var St=ot,wt=gt;if(ut.fh(St,wt))ot=!0;else{if(wt===void 0&&(wt=ut.transform,St.Re(ut.actualBounds))){ot=!0;break t}ot=St.left,mt=St.right;var Et=St.top;St=St.bottom;var Ot=Rt.alloc(),Tt=Rt.alloc(),Gt=Rt.alloc(),Wt=In.alloc();Wt.set(wt),Wt.bv(ut.transform),Wt.Vj(),Tt.x=mt,Tt.y=Et,Tt.transform(Wt),Ot.x=ot,Ot.y=Et,Ot.transform(Wt),wt=!1,dc(ut,Ot,Tt,Gt)?wt=!0:(Ot.x=mt,Ot.y=St,Ot.transform(Wt),dc(ut,Ot,Tt,Gt)?wt=!0:(Tt.x=ot,Tt.y=St,Tt.transform(Wt),dc(ut,Ot,Tt,Gt)?wt=!0:(Ot.x=ot,Ot.y=Et,Ot.transform(Wt),dc(ut,Ot,Tt,Gt)&&(wt=!0)))),In.free(Wt),Rt.free(Ot),Rt.free(Tt),Rt.free(Gt),ot=wt}}else ot=ut.fh(ot,gt)}else ot=jr(ut,a,E,gt);ot&&(mt=ut,y!==null&&(mt=y(ut)),mt&&(x===null||x(mt))&&b.add(mt)),In.free(gt)}}}return z===void 0&&In.free(tt),ot||this.background!==null||this.areaBackground!==null}return z===void 0&&In.free(tt),!1},Ve.prototype.computeCurve=function(){if(this.Wf===null){var a=this.fromPort,y=this.isOrthogonal;this.Wf=a!==null&&a===this.toPort&&!y}return this.Wf?Ka:this.curve},Ve.prototype.computeCorner=function(){if(this.curve===Ka)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},Ve.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,E=0;Ert?-Math.PI/2:Math.PI/2;else ut=Math.atan(rt/Math.abs(ot)),0>ot&&(ut=Math.PI-ut);tt=y.x;var gt=y.y;ot=E.x-tt;var mt=E.y-gt;for(rt=Math.sqrt(ot*ot+mt*mt),Jt.$(ot,0)?mt=0>mt?-Math.PI/2:Math.PI/2:(mt=Math.atan(mt/Math.abs(ot)),0>ot&&(mt=Math.PI-mt)),at=rt/at,ut=mt-ut,this.dd(a,y),a+=1;art?-Math.PI/2:Math.PI/2:(rt=Math.atan(rt/Math.abs(ot)),0>ot&&(rt=Math.PI-rt)),ot=rt+ut,y*=at,this.L(a,tt+y*Math.cos(ot),gt+y*Math.sin(ot)));this.dd(x,E)}}return!0;case $p:if(z=this.i(a),gt=this.i(x),!z.Xa(y)||!gt.Xa(E)){b=z.x,z=z.y,tt=gt.x,gt=gt.y,at=(tt-b)*(tt-b)+(gt-z)*(gt-z),ot=y.x,ut=y.y,rt=E.x,mt=E.y;var St=1;if(rt-ot!==0){var wt=(mt-ut)/(rt-ot);St=Math.sqrt(1+1/(wt*wt))}else wt=9e9;for(this.dd(a,y),a+=1;ay?y+=360:360<=y&&(y-=360),0>E?E+=360:360<=E&&(E-=360);var tt=E;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,E=315<=E||45>E?0:45<=E&&135>E?90:135<=E&&225>E?180:270;var ot=b.actualBounds.copy(),rt=z.actualBounds.copy();if(ot.w()&&rt.w()){ot.Bc(g0,g0),rt.Bc(g0,g0),ot.Ye(a),rt.Ye(x);var at=Rt.alloc(),ut=Rt.alloc();y===0?x.x>a.x||E===270&&x.ya.x||E===90&&x.y>a.y&&rt.right>a.x?(at.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),E===180?(at.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ut.x=at.x,ut.y=x.y):E===270&&x.ya.y?(at.x=a.xrt.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):rt.right,ut.x=at.x,ut.y=x.y):E===0&&a.xrt.top&&a.yot.bottom)&&(E===180&&(rt.ca(a)||ot.ca(x))?at.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.ya.y&&(E===180||E===270)&&(at.y=this.computeMidOrthoPosition(a.x,ot.bottom,x.x,Math.min(x.y,rt.top),!0)),ut.x=x.x,ut.y=at.y),at.y>ot.top&&at.y=ot.left&&x.x<=a.x||a.x<=rt.right&&a.x>=x.x?(E===90||E===270)&&(at.h(Math.max((a.x+x.x)/2,a.x),a.y),ut.h(at.x,x.y)):(at.y=E===270||(E===0||E===180)&&x.ya.y&&rt.lefta.y?(at.x=a.x>rt.right?this.computeMidOrthoPosition(a.x,a.y,rt.right,x.y,!1):a.x>rt.left&&(E===270&&a.yrt.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):rt.left,ut.x=at.x,ut.y=x.y):E===180&&a.x>rt.right&&a.y>rt.top&&a.yot.bottom)&&(E===0&&(rt.ca(a)||ot.ca(x))?at.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.ya.y&&(E===0||E===270)&&(at.y=this.computeMidOrthoPosition(a.x,ot.bottom,x.x,Math.min(x.y,rt.top),!0)),ut.x=x.x,ut.y=at.y),at.y>ot.top&&at.y=a.x||a.x>=rt.left&&a.x<=x.x?(E===90||E===270)&&(at.h(Math.min((a.x+x.x)/2,a.x),a.y),ut.h(at.x,x.y)):(at.y=E===270||(E===0||E===180)&&x.ya.y||E===180&&x.xa.y||E===0&&x.x>a.x&&rt.bottom>a.y?(at.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),E===270?(at.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ut.x=x.x,ut.y=at.y):E===180&&x.xa.x?(at.y=a.yrt.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):rt.bottom,ut.x=x.x,ut.y=at.y):E===90&&a.yrt.left&&a.xot.right)&&(E===270&&(rt.ca(a)||ot.ca(x))?at.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.xa.x&&(E===270||E===180)&&(at.x=this.computeMidOrthoPosition(ot.right,a.y,Math.min(x.x,rt.left),x.y,!1)),ut.x=at.x,ut.y=x.y),at.x>ot.left&&at.x=ot.top&&x.y<=a.y||a.y<=rt.bottom&&a.y>=x.y?(E===0||E===180)&&(at.h(a.x,Math.max((a.y+x.y)/2,a.y)),ut.h(x.x,at.y)):(at.x=E===180||(E===90||E===270)&&x.xa.x&&rt.top=a.x?(at.y=a.y>rt.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,rt.bottom,!0):a.y>rt.top&&(E===180&&a.xrt.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):rt.top,ut.x=x.x,ut.y=at.y):E===270&&a.y>rt.bottom&&a.x>rt.left&&a.xot.right)&&(E===90&&(rt.ca(a)||ot.ca(x))?at.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.xa.x&&(E===90||E===180)&&(at.x=this.computeMidOrthoPosition(ot.right,a.y,Math.min(x.x,rt.left),x.y,!1)),ut.x=at.x,ut.y=x.y),at.x>ot.left&&at.x=a.y||a.y>=rt.top&&a.y<=x.y?(E===0||E===180)&&(at.h(a.x,Math.min((a.y+x.y)/2,a.y)),ut.h(x.x,at.y)):(at.x=E===180||(E===90||E===270)&&x.x=Wg&&(oS(St),ot.Bc(St.Ho*St.Hx,St.Go*St.Ix),rS(St,a,y,gt,E,ot,!1),rt=Uu(St,gt.x,gt.y)),!St.abort&&rtthis.pointsCount?(y===0||y===180?(ot.x=a.x,ot.y=gt.y):(ot.x=gt.x,ot.y=a.y),this.L(2,ot.x,ot.y),this.m(3,ot.x,ot.y)):(tt=this.i(3),y===0||y===180?Jt.B(ot.x,tt.x)?(ot=y===0?Math.max(ot.x,a.x):Math.min(ot.x,a.x),this.L(2,ot,a.y),this.L(3,ot,tt.y)):Jt.B(ot.y,tt.y)?(Math.abs(a.y-ot.y)<=St.Go/2&&(this.L(2,ot.x,a.y),this.L(3,tt.x,a.y)),this.m(2,ot.x,a.y)):this.L(2,a.x,ot.y):(y===90||y===270)&&(Jt.B(ot.y,tt.y)?(ot=y===90?Math.max(ot.y,a.y):Math.min(ot.y,a.y),this.L(2,a.x,ot),this.L(3,tt.x,ot)):Jt.B(ot.x,tt.x)?(Math.abs(a.x-ot.x)<=St.Ho/2&&(this.L(2,a.x,ot.y),this.L(3,a.x,tt.y)),this.m(2,a.x,ot.y)):this.L(2,ot.x,a.y))),x!==null&&(a=this.i(1),tt=this.i(2),a.x!==tt.x&&a.y!==tt.y?y===0||y===180?this.m(2,a.x,tt.y):this.m(2,tt.x,a.y):y===0||y===180?this.m(2,b.x,x.y):this.m(2,x.x,b.y)),wt!==null&&(E===0||E===180?this.yf(z.x,wt.y):this.yf(wt.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(at.copy()),this.ne(ut.copy())),Rt.free(at),Rt.free(ut)}},Ve.prototype.computeMidOrthoPosition=function(a,y,x,E,b){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),b?(y+E)/2+z:(a+x)/2+z};function Zv(a){if(a.diagram===null||!a.isAvoiding||!xg(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=wg(a.diagram,!0,a.containingGroup,null);for(var E=1;Efc&&Uu(y,ut,gt)!==at-1&&(Uu(y,x-ot,E)===at-1?(b=180,ut=x-ot,gt=E):Uu(y,x+ot,E)===at-1?(b=0,ut=x+ot,gt=E):Uu(y,x,E-rt)===at-1?(b=270,ut=x,gt=E-rt):Uu(y,x,E+rt)===at-1&&(b=90,ut=x,gt=E+rt));at>fc&&Uu(y,ut,gt)===at-1;)x=ut,E=gt,b===0?ut+=ot:b===90?gt+=rt:b===180?ut-=ot:gt-=rt,--at;z?at>fc&&(b===180||b===0?x=Math.floor(x/ot)*ot+ot/2:(b===90||b===270)&&(E=Math.floor(E/rt)*rt+rt/2)):(x=Math.floor(x/ot)*ot+ot/2,E=Math.floor(E/rt)*rt+rt/2),at>fc&&(z=b,tt=x,ut=E,b===0?(z=90,ut+=rt):b===90?(z=180,tt-=ot):b===180?(z=270,ut-=rt):b===270&&(z=0,tt+=ot),Uu(y,tt,ut)===at-1?Qv(a,y,tt,ut,z,!1,z):(tt=x,ut=E,b===0?(z=270,ut-=rt):b===90?(z=0,tt+=ot):b===180?(z=90,ut+=rt):b===270&&(z=180,tt-=ot),Uu(y,tt,ut)===at-1&&Qv(a,y,tt,ut,z,!1,z))),a.yf(x,E)}Ve.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),E=this.i(1),b=gr(y,a,x.x,x.y,E.x,E.y),z=0,tt=1;ttthis.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),a=this.path,a!==null)){a.ua=this.ua;for(var y=this.O.s,x=y.length,E=0;E=y&&(E=y-1),rt=this.i(E),z.x=Math.min(rt.x,z.x),z.y=Math.min(rt.y,z.y);E=z.x,rt=z.y}else{for(rt=0;rtOt?wt>St?(z.x=Tt-Wt,z.y=St-Wt,b.x=Tt+Et,b.y=St+Et):(z.x=Tt-Wt,z.y=St+Wt,b.x=Tt+Et,b.y=St-Et):wt>St?(z.x=Tt+Wt,z.y=St-Wt,b.x=Tt-Et,b.y=St+Et):(z.x=Tt+Wt,z.y=St+Wt,b.x=Tt-Et,b.y=St-Et)),Jt.$(Ot,Tt)&&Jt.$(St,wt)&&(St>mt?(Gt>Tt?(z.x=Tt-Wt,z.y=St-Wt,b.x=Tt+Et):(z.x=Tt+Wt,z.y=St-Wt,b.x=Tt-Et),b.y=St+Et):(Gt>Tt?(z.x=Tt-Wt,z.y=St+Wt,b.x=Tt+Et):(z.x=Tt+Wt,z.y=St+Wt,b.x=Tt-Et),b.y=St-Et)),(Jt.$(Ot,Tt)&&Jt.$(Tt,Gt)||Jt.$(mt,St)&&Jt.$(St,wt))&&(Ot=.5*(Ot+Gt),mt=.5*(mt+wt),z.x=Ot,z.y=mt,b.x=Ot,b.y=mt),(gt===1||gt===2&&Jt.$(tt.x,this.i(0).x)&&Jt.$(tt.y,this.i(0).y))&&(x.x=.5*(tt.x+at.x),x.y=.5*(tt.y+at.y)),Oh(ot,x.x-E,x.y-rt,z.x-E,z.y-rt,at.x-E,at.y-rt),y.set(z),x.set(b),tt=at}}at=tt.x,tt=tt.y,ut=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ut=Yc(this,ut.copy(),!1,$r)),at=.5*(at+ut.x),tt=.5*(tt+ut.y),Oh(ot,b.x-E,b.y-rt,at-E,tt-rt,ut.x-E,ut.y-rt),Rt.free(y),Rt.free(x),Rt.free(z),Rt.free(b)}else for(x=3;x=y&&(x=y-1),b=this.i(x-1),tt=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(tt=Yc(this,tt.copy(),!1,$r)),Oh(ot,z.x-E,z.y-rt,b.x-E,b.y-rt,tt.x-E,tt.y-rt);else{for(z=Rt.alloc(),z.assign(this.i(0)),b=Rt.alloc(),b.assign(z),tt=this.computeCorner(),gt=1,at=0;gt=y-1){if(!z.D(ut))this.computeShortLength(!1)!==0&&(ut=Yc(this,ut.copy(),!1,$r)),Vc(this,ot,-E,-rt,z,ut,x);else if(at===0)for(gt=1;gtz.x?_t=mt.x-wt:_t=mt.x+wt,Tt.y>mt.y?Gt=mt.y+Wt:Gt=mt.y-Wt,Tt=Rt.allocAt(_t,Kt),Vc(this,ot,gt,Ot,z,Tt,Et),Rt.free(Tt),Gp(ot,mt.x+gt,mt.y+Ot,St+gt,Gt+Ot),z.h(St,Gt)}else Jt.B(z.x,mt.x)&&Jt.B(mt.y,Tt.y)?(wt=Math.min(tt,Math.abs(mt.y-b.y)/2),wt=Wt=Math.min(wt,Math.abs(Tt.x-mt.x)/2),Jt.B(Wt,0)?(Vc(this,ot,gt,Ot,z,mt,Et),z.assign(mt)):(_t=mt.x,Kt=mt.y,St=_t,Gt=Kt,mt.y>z.y?Kt=mt.y-wt:Kt=mt.y+wt,Tt.x>mt.x?St=mt.x+Wt:St=mt.x-Wt,Tt=Rt.allocAt(_t,Kt),Vc(this,ot,gt,Ot,z,Tt,Et),Rt.free(Tt),Gp(ot,mt.x+gt,mt.y+Ot,St+gt,Gt+Ot),z.h(St,Gt))):(Vc(this,ot,gt,Ot,z,mt,Et),z.assign(mt));b.assign(ut),gt=at}Rt.free(z)}Hp=ot}else ot=this.i(1).copy(),ot.x-=E,ot.y-=rt,this.computeShortLength(!0)!==0&&(b=Yc(this,b,!0,z)),this.computeShortLength(!1)!==0&&(ot=Yc(this,ot,!1,z)),a.type=He.j,a.startX=b.x,a.startY=b.y,a.endX=ot.x,a.endY=ot.y;return this.lk=!0,a};function Xp(a,y,x,E){return a=x-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=E-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),Jt.$(a,0)?y:Jt.$(y,0)?a:Math.sqrt(a*a+y*y)))}function Yc(a,y,x,E){var b=a.pointsCount;if(2>b)return y;if(x){var z=a.i(1);if(x=z.x-E.x,z=z.y-E.y,E=Xp(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!0),a>b&&(a=b),b=a*(z-y.y)/E,y.x+=a*(x-y.x)/E,y.y+=b}else{if(z=a.i(b-2),x=z.x-E.x,z=z.y-E.y,E=Xp(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!1),a>b&&(a=b),b=a*(y.y-z)/E,y.x-=a*(y.x-x)/E,y.y-=b}return y}function Kv(a,y,x,E){for(var b=a.pointsCount,z=y;Jt.$(y.x,z.x)&&Jt.$(y.y,z.y);){if(x>=b)return b-1;z=a.i(x++)}if(!Jt.$(y.x,z.x)&&!Jt.$(y.y,z.y))return x-1;for(var tt=z;Jt.$(y.x,z.x)&&Jt.$(z.x,tt.x)&&(!E||(y.y>=z.y?z.y>=tt.y:z.y<=tt.y))||Jt.$(y.y,z.y)&&Jt.$(z.y,tt.y)&&(!E||(y.x>=z.x?z.x>=tt.x:z.x<=tt.x));){if(x>=b)return b-1;tt=a.i(x++)}return x-2}Ve.prototype.computeJumpLength=function(){return 10};function Vc(a,y,x,E,b,z,tt){if(!tt&&gc(a)){tt=a.computeJumpLength();var ot=tt/2,rt=[],at=0;if(a.isVisible()&&(at=Lx(a,b,z,rt)),0gt-tt);)at--,gt=Math.max(ut-ot,z.x);ut=z.y-tt+E,gt+=x,St=z.y+E,a.curve===Hh?zg(y,gt,St,!1):Oh(y,mt,ut,gt,ut,gt,St)}else if(Jt.B(b.x,z.x))if(b.yut-tt);)at--,ut=Math.max(gt-ot,z.y);gt=z.x-tt+x,St=z.x+x,ut+=E,a.curve===Hh?zg(y,St,ut,!1):Oh(y,gt,mt,gt,ut,St,ut)}}}y.lineTo(z.x+x,z.y+E)}function Lx(a,y,x,E){var b=a.diagram;if(b===null||y.D(x))return 0;for(b=b.layers;b.next();){var z=b.value;if(z!==null&&z.visible){z=z.Pa.s;for(var tt=z.length,ot=0;ottt.x&&ut.x>=at.x||at.xtt.y&&ut.y>=at.y||at.ytt&&Math.min(wt,Et)ut&&!Jt.B(wt,Et)){ot.x=ut,ot.y=tt,ut=!0;break t}}else if(Jt.B(gt,St)&&Jt.B(wt,Et)&&Math.min(ut,mt)wt&&Math.min(tt,Ot)gt&&!Jt.B(tt,Ot)){ot.x=wt,ot.y=gt,ut=!0;break t}ot.x=0,ot.y=0,ut=!1}ut&&(b?x.push(ot.x):x.push(ot.y)),tt=at}Rt.free(ot)}function gc(a){return a=a.curve,a===Hg||a===Hh}function Jp(a,y){(y||gc(a))&&(y=a.diagram,y===null||y.animationManager.isTicking||y.Eh.contains(a)||a.ml.width===0&&a.ml.height===0||y.Eh.add(a,a.ml.copy()))}Ve.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var x=y.diagram;if(x!==null&&!x.animationManager.isTicking){var E=!1;for(x=x.layers;x.next();){var b=x.value;if(b.visible){if(b===y){E=!0;var z=!1;b=b.Pa.s;for(var tt=b.length,ot=0;ota&&Kn(a,">= 0",Ve,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),this.bb())}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:NaN},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.qc(),this.g("fromShortLength",y,a))}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Dr},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),(y.$c()||a.$c())&&this.toNode!==null&&Ba(this.toPort),this.bb())}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:NaN},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Kn(a,">= 0",Ve,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),this.bb())}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:NaN},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.qc(),this.g("toShortLength",y,a))}},isLabeledLink:{get:function(){return this.wd===null?!1:0=E&&(z=E-1);var ot=this.i(z-1),rt=this.i(z);Jt.Dl(b.x,b.y,tt.x,tt.y,ot.x,ot.y,rt.x,rt.y,.5,a),y=Math.min(rt.x,y),x=Math.min(rt.y,x),b=rt}else for(b=this.i(0),z=this.i(1),y=Math.min(b.x,z.x),x=Math.min(b.y,z.y),a.h(b.x,b.y,0,0),a.Ye(z),b=2;bE&&(E=-E)):Jt.$(E.y,b.y)?(E=b.x-E.x,0>E&&(E=-E)):E=Math.sqrt(E.Bf(b)),a.push(E)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,x=y.length,E=a=0;Ethis.pointsCount)return this.lk=!0,this.ua;this.ua=this.makeGeometry()}return this.ua}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!Gg(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!Gg(this.computeSpot(!1))?a-2:a-1}},adjusting:{get:function(){return this.qk},set:function(a){var y=this.qk;y!==a&&(this.qk=a,this.g("adjusting",y,a))}},corner:{get:function(){return this.Om},set:function(a){var y=this.Om;y!==a&&(this.Om=a,this.qc(),this.g("corner",y,a))}},curve:{get:function(){return this.Qm},set:function(a){var y=this.Qm;y!==a&&(this.Qm=a,this.bb(),this.qc(),Jp(this,y===Hh||y===Hg||a===Hh||a===Hg),this.g("curve",y,a))}},curviness:{get:function(){return this.Rm},set:function(a){var y=this.Rm;y!==a&&(this.Rm=a,this.bb(),this.qc(),this.g("curviness",y,a))}},routing:{get:function(){return this.qj},set:function(a){var y=this.qj;y!==a&&(this.qj=a,this.Wf=null,this.bb(),Jp(this,(y.value&2)===2||(a.value&2)===2),this.g("routing",y,a))}},smoothness:{get:function(){return this.po},set:function(a){var y=this.po;y!==a&&(this.po=a,this.qc(),this.g("smoothness",y,a))}},key:{get:function(){var a=this.diagram;if(a!==null&&a.model.ri())return a.model.Ac(this.data)}}}),Ve.prototype.invalidateOtherJumpOvers=Ve.prototype.Xo,Ve.prototype.findClosestSegment=Ve.prototype.ez,Ve.prototype.updateRoute=Ve.prototype.vg,Ve.prototype.invalidateRoute=Ve.prototype.bb,Ve.prototype.rollbackRoute=Ve.prototype.rv,Ve.prototype.commitRoute=Ve.prototype.zf,Ve.prototype.startRoute=Ve.prototype.uh,Ve.prototype.clearPoints=Ve.prototype.Fj,Ve.prototype.removePoint=Ve.prototype.pv,Ve.prototype.addPointAt=Ve.prototype.yf,Ve.prototype.addPoint=Ve.prototype.ne,Ve.prototype.insertPointAt=Ve.prototype.m,Ve.prototype.insertPoint=Ve.prototype.Kz,Ve.prototype.setPointAt=Ve.prototype.L,Ve.prototype.setPoint=Ve.prototype.dd,Ve.prototype.getPoint=Ve.prototype.i,Ve.prototype.getOtherPort=Ve.prototype.Cz,Ve.prototype.getOtherNode=Ve.prototype.To;var _c=null,Zc=null,Xv=new je(Ve,"Normal",1),Ax=new je(Ve,"Orthogonal",2),Nx=new je(Ve,"AvoidsNodes",6),eS=new je(Ve,"AvoidsNodesStraight",7),Zs=new je(Ve,"None",0),Ka=new je(Ve,"Bezier",9),Hh=new je(Ve,"JumpGap",10),Hg=new je(Ve,"JumpOver",11),a0=new je(Ve,"End",17),qp=new je(Ve,"Scale",18),$p=new je(Ve,"Stretch",19),l0=new je(Ve,"OrientAlong",21),u0=new je(Ve,"OrientPlus90",22),h0=new je(Ve,"OrientMinus90",23),Jv=new je(Ve,"OrientOpposite",24),tm=new je(Ve,"OrientUpright",25),d0=new je(Ve,"OrientPlus90Upright",26),c0=new je(Ve,"OrientMinus90Upright",27),em=new je(Ve,"OrientUpright45",28),nS=16,iS=14,g0=8;Ve.className="Link",Ve.Normal=Xv,Ve.Orthogonal=Ax,Ve.AvoidsNodes=Nx,Ve.AvoidsNodesStraight=eS,Ve.None=Zs,Ve.Bezier=Ka,Ve.JumpGap=Hh,Ve.JumpOver=Hg,Ve.End=a0,Ve.Scale=qp,Ve.Stretch=$p,Ve.OrientAlong=l0,Ve.OrientPlus90=u0,Ve.OrientMinus90=h0,Ve.OrientOpposite=Jv,Ve.OrientUpright=tm,Ve.OrientPlus90Upright=d0,Ve.OrientMinus90Upright=c0,Ve.OrientUpright45=em,Ve.EndSegmentStep=8,Ve.CurvinessStart=nS,Ve.SpacingMin=iS,Ve.OrthoShortCut=g0;function nm(a,y,x,E){Lo(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=E,this.links=[]}nm.prototype.Sl=function(){if(!this.qq){var a=this.links;0=a.width||0>=a.height)){var y=a.y,x=a.x+a.width,E=a.y+a.height;if(this.Nd=Math.floor((a.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((y-this.sc)/this.sc)*this.sc,this.En=Math.ceil((x+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((E+2*this.sc)/this.sc)*this.sc,a=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),y=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di=fc&&(x[E]=qv)}f0.prototype.Yj=function(a,y,x,E){if(a>this.En||a+xthis.Fn||y+Ea&&(x+=a,a=0),0>y&&(b+=y,y=0),0>x||0>b)return!0;for(E=Math.min(a+x-1,this.di)|0,x=Math.min(y+b-1,this.ei)|0;a<=E;a++){b=this.ac[a];for(var z=y;z<=x;z++)if(b[z]===Uh)return!1}return!0};function Wu(a,y,x,E,b,z,tt,ot,rt){if(!(ytt||xrt)){var at=y|0,ut=x|0,gt=a.ac[at][ut];if(gt>=fc&>=a.ac[at][ut]);)a.ac[at][ut]=gt,gt+=1,b?ut+=E:at+=E;if(at=b?ut:at,b)if(0at;x+=E)Wu(a,y,x,1,!b,z,tt,ot,rt),Wu(a,y,x,-1,!b,z,tt,ot,rt);else if(0at;y+=E)Wu(a,y,x,1,!b,z,tt,ot,rt),Wu(a,y,x,-1,!b,z,tt,ot,rt)}}function im(a,y,x,E,b,z,tt,ot,rt){y|=0,x|=0;var at=Uh,ut=fc;for(a.ac[y][x]=ut;at===Uh&&y>z&&yot&&xz&&yot&&x=Math.abs(ot-at)&&1>=Math.abs(rt-ut))a.abort=!0;else{var gt=z.x;E=z.y,y=z.x+z.width;var mt=z.y+z.height;gt-=a.Nd,gt/=a.rc,E-=a.Od,E/=a.sc,y-=a.Nd,y/=a.rc,mt-=a.Od,mt/=a.sc,z=Math.max(0,Math.min(a.di,gt|0)),y=Math.min(a.di,Math.max(0,y|0)),gt=Math.max(0,Math.min(a.ei,E|0)),mt=Math.min(a.ei,Math.max(0,mt|0)),E=a.ac,ot|=0,rt|=0,at|=0,ut|=0;var St=x===0||x===90?1:-1;if(x=x===90||x===270,E[ot][rt]===Uh?(im(a,ot,rt,St,x,z,y,gt,mt),im(a,ot,rt,1,!x,z,y,gt,mt),im(a,ot,rt,-1,!x,z,y,gt,mt)):im(a,ot,rt,St,x,ot,rt,ot,rt),E[at][ut]===Uh?(om(a,at,ut,b===0||b===90?1:-1,b===90||b===270,z,y,gt,mt),om(a,at,ut,1,!(b===90||b===270),z,y,gt,mt),om(a,at,ut,-1,!(b===90||b===270),z,y,gt,mt)):om(a,at,ut,St,x,at,ut,at,ut),x=vi(),tt&&sS(a,at,ut,b,ot,rt,x))for((x[0]!==at||x[1]!==ut)&&(x.unshift(ut),x.unshift(at)),(x[x.length-2]!==ot||x[x.length-1]!==rt)&&(x.push(ot),x.push(rt)),a=fc,b=x[x.length-2],tt=x[x.length-1],E[b][tt]=a++,z=x.length-4;0<=z;z-=2)for(b=x[z+2],tt=x[z+3],y=x[z],at=x[z+1];y>b?b++:ytt?tt++:atb)ut--;else break;else if(gt>z)gt--;else break;var mt=ot[ut][gt];if(mt===0||mt===$v)break;rt=ut,at=gt}for(;;){if(ut=E,gt=rt,mt=at,E===0?mtz&&(ut=270,mt--):E===90?gtb&&(ut=180,gt--):E===180?mtz&&(ut=270,mt--):gtb&&(ut=180,gt--),gt=ot[gt][mt],ut!==E&>!==0&>!==$v){if(tt.push(rt),tt.push(at),sS(a,rt,at,ut,b,z,tt))return!0;tt.pop(),tt.pop()}if(ot[rt][at]=$v,E===0){if(rt===y)return!1;rt--}else if(E===90){if(at===x)return!1;at--}else if(E===180){if(rt===y)return!1;rt++}else{if(at===x)return!1;at++}}}fe.Object.defineProperties(f0.prototype,{bounds:{get:function(){return new Me(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(a){0=x?180:0}switch(a=180*Math.atan2(a.height,a.width)/Math.PI,y){case 3:return x>a&&x<=180+a?180:270;case 5:return x>180-a&&x<=360-a?270:0;case 12:return x>a&&x<=180+a?90:0;case 10:return x>180-a&&x<=360-a?180:90;case 7:return 90180+a&&x<=360-a?270:0;case 13:return 180a&&180>=x?90:0;case 14:return x>a&&x<=180-a?90:x>180-a&&270>=x?180:0;case 11:return x>180-a&&x<=180+a?180:x>180+a?270:90}return E&&y!==15&&(x-=15,0>x&&(x+=360)),x>a&&x<180-a?90:x>=180-a&&x<=180+a?180:x>180+a&&x<360-a?270:0}Qc.prototype.Sl=function(){this.pe.length=0};function aS(a,y){var x=a.pe;if(x.length===0){t:if(!a.ap){x=a.ap,a.ap=!0;var E=null,b=a.node,z=b instanceof qn?b:null;if(z===null||z.isSubGraphExpanded)var tt=b.isTreeExpanded?b.findLinksConnected(a.port.portId):b.qx();else{if(!z.actualBounds.w()){a.ap=x;break t}E=z,tt=E.Lu()}z=a.pe.length=0;var ot=a.port.ga(Vr,Rt.alloc()),rt=a.port.ga(Bs,Rt.alloc());for(b=Me.allocAt(ot.x,ot.y,0,0),b.Ye(rt),Rt.free(ot),Rt.free(rt),ot=Rt.allocAt(b.x+b.width/2,b.y+b.height/2),rt=a.port.li(),tt=tt.iterator;tt.next();){var at=tt.value;if(at.isVisible()&&at.fromPort!==at.toPort){var ut=at.fromPort===a.port||at.fromNode!==null&&at.fromNode.Td(E),gt=at.computeSpot(ut,a.port);if(gt.$c()&&(ut=ut?at.toPort:at.fromPort,ut!==null)){var mt=ut.part;if(mt!==null){var St=mt.findVisibleNode();St!==null&&St!==mt&&(mt=St,ut=mt.port),ut=at.computeOtherPoint(mt,ut),mt=ot.ab(ut),mt-=rt,0>mt?mt+=360:360<=mt&&(mt-=360),gt=kx(b,gt,mt,at.isOrthogonal),gt===0?(gt=4,180mt&&(mt+=360)),St=a.pe[z],St===void 0?(St=new ty(at,mt,gt),a.pe[z]=St):(St.link=at,St.angle=mt,St.Nc=gt),St.hv.set(ut),z++}}}}for(Rt.free(ot),a.pe.sort(Qc.prototype.j),rt=a.pe.length,E=-1,z=ot=0;zMath.abs(Et)?(Gt=Math.abs(Et)/mt,mt=Math.abs(Et)):Gt=1;break;case 2:St>Math.abs(Wt)?(Gt=Math.abs(Wt)/St,St=Math.abs(Wt)):Gt=1;break;case 1:gt>Math.abs(Et)?(Gt=Math.abs(Et)/gt,gt=Math.abs(Et)):Gt=1;break;default:case 4:ut>Math.abs(Wt)?(Gt=Math.abs(Wt)/ut,ut=Math.abs(Wt)):Gt=1}Tt=0}var he=_t.Zo;if(E===Wv){switch(_t=_t.link.computeThickness(),_t*=Gt,he.set(Kt),wt){case 8:he.x=Kt.x+Et/2+mt/2-Tt-_t/2;break;case 2:he.y=Kt.y+Wt/2+St/2-Tt-_t/2;break;case 1:he.x=Kt.x+Et/2-gt/2+Tt+_t/2;break;default:case 4:he.y=Kt.y+Wt/2-ut/2+Tt+_t/2}Tt+=_t}else{var $e=.5;E===_p&&($e=(_t.Uo+1)/(_t.Gl+1)),he.x=Kt.x+Et*$e,he.y=Kt.y+Wt*$e}}}for(Rt.free(ot),Rt.free(rt),Rt.free(tt),Rt.free(at),Kt=a.pe,z=0;zy.Nc?1:a.angley.angle?1:0},Qc.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,Er,y.fromPort===this.port),E=a.Uo;if(0>E)return x;var b=a.Gl;if(1>=b||!y.isOrthogonal)return x;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(E=b-1-E),((a=a.Nc===2||a.Nc===4)?y.y=y-1?(z=0,E=x,b+=tt+20,tt=0):z++}},Ao.prototype.doMinimalNetworkLayout=function(){var a=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var y=this.arrangementOrigin.x,x=y,E=this.arrangementOrigin.y,b=0,z=0,tt=this.network.vertexes.iterator;tt.next();){var ot=tt.value.node;if(!(ot===null||ot instanceof Ve)&&(p0(ot),this.rh(ot))){var rt=ot.measuredBounds,at=rt.width;rt=rt.height,ot.moveTo(x,E),ot instanceof qn&&(ot.rh=!1),x+=Math.max(at,50)+20,z=Math.max(z,Math.max(rt,50)),b>=a-1?(b=0,x=y,E+=z+20,z=0):b++}}},Ao.prototype.rh=function(a){return!!(!a.location.w()||a instanceof qn&&a.rh)};function Ld(a,y,x,E,b,z,tt,ot){for(x=x.iterator;x.next();){var rt=x.value;E&&!rt.isTopLevel||b!==null&&!b(rt)||!rt.canLayout()||(z&&rt instanceof en?rt.isLinkLabel||(rt instanceof qn&&rt.layout===null?Ld(a,y,rt.memberParts,!1,b,z,tt,ot):(p0(rt),y.add(rt))):tt&&rt instanceof Ve?y.add(rt):!ot||!rt.Zc()||rt instanceof en||(p0(rt),y.add(rt)))}}function p0(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Ao.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new Me),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Ao.prototype.ex=function(a){var y=new Ke;return a instanceof de?(Ld(this,y,a.nodes,!0,null,!0,!0,!0),Ld(this,y,a.links,!0,null,!0,!0,!0),Ld(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof qn?Ld(this,y,a.memberParts,!1,null,!0,!0,!0):Ld(this,y,a.iterator,!1,null,!0,!0,!0),y},Ao.prototype.initialOrigin=function(a){var y=this.group;if(y!==null){var x=y.position.copy();return(isNaN(x.x)||isNaN(x.y))&&x.set(a),y=y.placeholder,y!==null&&(x=y.ga(Vr),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},fe.Object.defineProperties(Ao.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},group:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a,a!==null&&(this.H=a.diagram))}},isOngoing:{get:function(){return this.sn},set:function(a){this.sn!==a&&(this.sn=a)}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a,a||(this.xn=!0)}},isViewportSized:{get:function(){return this.yn},set:function(a){this.yn!==a&&(this.yn=a)&&this.C()}},isRouting:{get:function(){return this.vn},set:function(a){this.vn!==a&&(this.vn=a)}},isRealtime:{get:function(){return this.un},set:function(a){this.un!==a&&(this.un=a)}},isValidLayout:{get:function(){return this.xn},set:function(a){this.xn!==a&&(this.xn=a,a||(a=this.diagram,a!==null&&(a.xh=!0)))}},network:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,a!==null&&(a.layout=this))}},boundsComputation:{get:function(){return this.Em},set:function(a){this.Em!==a&&(this.Em=a,this.C())}},arrangementOrigin:{get:function(){return this.Am},set:function(a){this.Am.D(a)||(this.Am.assign(a),this.C())}}}),Ao.prototype.collectParts=Ao.prototype.ex,Ao.prototype.getLayoutBounds=Ao.prototype.ni,Ao.prototype.invalidateLayout=Ao.prototype.C,Ao.className="Layout";function lo(a){Lo(this),this.Sc=a,this.wf=new Ke,this.ye=new Ke,this.Es=new Vn,this.zs=new Vn}lo.prototype.clear=function(){if(this.wf)for(var a=this.wf.iterator;a.next();)a.value.clear();if(this.ye)for(a=this.ye.iterator;a.next();)a.value.clear();this.wf=new Ke,this.ye=new Ke,this.Es=new Vn,this.zs=new Vn},lo.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutNetwork"+(this.layout!==null?"("+this.layout.toString()+")":"");if(0>=a)return y;if(y+=" vertexes: "+this.wf.count+" edges: "+this.ye.count,1a?a=0:1a?a=0:1=a&&Kn(a,"> 0",ao,"maxLines"),wu(this),this.da.Jq=a,this.v(),this.g("maxLines",y,a))}},metrics:{get:function(){return{arrSize:this.Qc!==null?this.Qc:[this.Cb],arrText:this.Qb!==null?this.Qb:[this.ze],maxLineWidth:this.Cb,fontHeight:this.df}}},choices:{get:function(){return this.Gm},set:function(a){var y=this.Gm;y!==a&&(this.Gm=a,this.g("choices",y,a))}}});var Ip=null,bp=null,Nv=new je(ao,"None",0),w1=new je(ao,"WrapFit",1),kv=new je(ao,"WrapDesiredSize",2),P1=new je(ao,"WrapBreakAll",3),Dv=new je(ao,"OverflowClip",0),jp=new je(ao,"OverflowEllipsis",1),n0=new je(ao,"FormatTrim",0),M1=new je(ao,"FormatNone",0),Sx=/[ \u200b\u00ad]/,Fv=new mi,C1=0,Op=new mi,Tv=0,i0="...",L1="",la=null,zp=!1;ao.className="TextBlock";function Bv(){this.nc=!1,this.Hd=null,this.Xf=Te,this.gq=n0,this.Jq=1/0,this.$q=Dv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=ce,this.$r=kv}Bv.prototype.copy=function(){var a=new Bv;return a.Hd=this.Hd,a.Xf=this.Xf,a.gq=this.gq,a.Jq=this.Jq,a.$q=this.$q,a.Dr=this.Dr,a.Er=this.Er,a.Or=this.Or,a.Pr=this.Pr,a.Qr=this.Qr,a.vj=this.vj,a.Yr=this.Yr,a.$r=this.$r,a},ao.getEllipsis=function(){return i0},ao.setEllipsis=function(a){i0=a,Op=new mi,Tv=0},ao.getBaseline=function(){return Ip},ao.setBaseline=function(a){Ip=a},ao.getUnderline=function(){return bp},ao.setUnderline=function(a){bp=a},ao.isValidFont=function(a){if(zp||(la=Qo?new Pl(null).context:null,zp=!0),la===null)return!0;var y=la.font;if(a===y||a==="10px sans-serif")return!0;la.font="10px sans-serif",la.font=a;var x=la.font;if(x!=="10px sans-serif")return la.font=y,!0;la.font="19px serif";var E=la.font;return la.font=a,x=la.font,la.font=y,x!==E},ao.FormatNone=M1,ao.FormatTrim=n0,ao.None=Nv,ao.OverflowClip=Dv,ao.OverflowEllipsis=jp,ao.WrapBreakAll=P1,ao.WrapDesiredSize=kv,ao.WrapFit=w1;function Hu(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Hu.prototype.copy=function(){var a=new Hu;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},Hu.className="GradElementSettings";function ua(a,y){Xt.call(this),this.Eg=null,this.qo="",this.Xg=ku,this.Nk=Re,this.Zg=this.Hd=null,this.Mk=zi,this.Xf=Te,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,typeof a=="string"?this.source=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}var bg;pe(ua,Xt),ua.prototype.cloneProtected=function(a){Xt.prototype.cloneProtected.call(this,a),a.qo=this.qo,a.element=this.Eg,a.Xg=this.Xg.J(),a.Nk=this.Nk,a.Xf=this.Xf,a.Hd=this.Hd,a.Zg=this.Zg,a.Mk=this.Mk.J(),a.en=this.en,a.rl=this.rl},ua.prototype.qb=function(a){a===Te||a===Pn||a===xi?this.imageStretch=a:Xt.prototype.qb.call(this,a)},ua.prototype.toString=function(){return"Picture("+this.source+")#"+vr(this)};function jg(a){a===void 0&&(a=""),a!==""?bg[a]&&(delete bg[a],Rp--):(bg=new mi,Rp=0)}function E1(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var E=y.Bg.copy();if(E!=null){for(E=E.iterator;E.next();){var b=E.value;b.N();var z=y.getAttribute("src")||"",tt=b.Og.I(z);if(tt!==null)for(var ot=tt.length,rt=0;rt=E.width&&(z=z+wt.offsetX+(gt*wt.x-E.width*wt.x)),mt>=E.height&&(tt=tt+wt.offsetY+(mt*wt.y-E.height*wt.y)),rt=Math.min(E.width,gt),ot=Math.min(E.height,mt);break;case Re:gt=E.width,mt=E.height;break;case Pn:case xi:St===Pn?(St=Math.min(E.height/mt,E.width/gt),gt*=St,mt*=St):St===xi&&(St=Math.max(E.height/mt,E.width/gt),gt*=St,mt*=St,gt>=E.width&&(z=(z+wt.offsetX+(gt*wt.x-E.width*wt.x)/gt)*rt),mt>=E.height&&(tt=(tt+wt.offsetY+(mt*wt.y-E.height*wt.y)/mt)*ot),rt*=1/(gt/E.width),ot*=1/(mt/E.height),gt=E.width,mt=E.height)}St=this.Df()*y.scale;var Et=gt*St*mt*St,Ot=rt*ot/Et,Tt=x.__goCache;St=null;var Gt=xx;if(!b){if(x.sq&&Tt!==void 0&&4Gt*Gt)for(Tt.gi===null&&(N1(Tt,4,at,ut,x),N1(Tt,16,at,ut,x)),b=Tt.gi,at=b.length,ut=0;uta)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,x/3);var E="rr"+y+","+x+","+a,b=Jt.Mf[E];if(b!==void 0)return b;var z=a*Jt.wg;return b=new He().add(new Zo(a,0,!0).add(new Yn(Ei,y-a,0)).add(new Yn(Uo,y,a,y-z,0,y,z)).add(new Yn(Ei,y,x-a)).add(new Yn(Uo,y-a,x,y,x-z,y-z,x)).add(new Yn(Ei,a,x)).add(new Yn(Uo,0,x-a,z,x,0,x-z)).add(new Yn(Ei,0,a)).add(new Yn(Uo,a,0,0,z,z,0).close())),1b.x&&a.y>b.y&&a.rightb.x&&y.y>b.y&&y.right=x.maxSelectionCount)){this.G^=4096;var E=!1;if(x!==null){E=x.skipsUndoManager,x.skipsUndoManager=!0;var b=x.selection;b.ka(),a?b.add(this):b.remove(this),b.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),x!==null&&(x.$b(),x.skipsUndoManager=E)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(a){var y=(this.G&524288)!==0;if(y!==a){this.G^=524288;var x=this.diagram;x!==null&&(x=x.highlighteds,x.ka(),a?x.add(this):x.remove(this),x.freeze()),this.g("isHighlighted",y,a),this.N(),a=this.highlightedChanged,a!==null&&a(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(a){var y=(this.G&8192)!==0;y!==a&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",y,a),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(a){var y=(this.G&262144)!==0;y!==a&&(this.G^=262144,this.g("isAnimated",y,a))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(a){var y=this.highlightedChanged;y!==a&&(ha(this),this.P.oq=a,this.g("highlightedChanged",y,a))}},selectionObjectName:{get:function(){return this.P!==null?this.P.vr:""},set:function(a){var y=this.selectionObjectName;y!==a&&(ha(this),this.P.vr=a,this.Ug=null,this.g("selectionObjectName",y,a))}},selectionAdornmentTemplate:{get:function(){return this.P!==null?this.P.tr:null},set:function(a){var y=this.selectionAdornmentTemplate;y!==a&&(ha(this),this.P.tr=a,this.g("selectionAdornmentTemplate",y,a))}},selectionObject:{get:function(){if(this.Ug===null){var a=this.selectionObjectName;a!==null&&a!==""?(a=this.fb(a),a!==null?this.Ug=a:this.Ug=this):this instanceof Ve?(a=this.path,a!==null?this.Ug=a:this.Ug=this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return this.P!==null?this.P.ur:null},set:function(a){var y=this.selectionChanged;y!==a&&(ha(this),this.P.ur=a,this.g("selectionChanged",y,a))}},resizeAdornmentTemplate:{get:function(){return this.P!==null?this.P.fr:null},set:function(a){var y=this.resizeAdornmentTemplate;y!==a&&(ha(this),this.P.fr=a,this.g("resizeAdornmentTemplate",y,a))}},resizeObjectName:{get:function(){return this.P!==null?this.P.hr:""},set:function(a){var y=this.resizeObjectName;y!==a&&(ha(this),this.P.hr=a,this.g("resizeObjectName",y,a))}},resizeObject:{get:function(){var a=this.resizeObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},resizeCellSize:{get:function(){return this.P!==null?this.P.gr:Sr},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),ha(this),this.P.gr=a,this.g("resizeCellSize",y,a))}},rotateAdornmentTemplate:{get:function(){return this.P!==null?this.P.ir:null},set:function(a){var y=this.rotateAdornmentTemplate;y!==a&&(ha(this),this.P.ir=a,this.g("rotateAdornmentTemplate",y,a))}},rotateObjectName:{get:function(){return this.P!==null?this.P.jr:""},set:function(a){var y=this.rotateObjectName;y!==a&&(ha(this),this.P.jr=a,this.g("rotateObjectName",y,a))}},rotateObject:{get:function(){var a=this.rotateObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},rotationSpot:{get:function(){return this.P!==null?this.P.lr:Dr},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),ha(this),this.P.lr=a,this.g("rotationSpot",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;y!==a&&(this.ec=a,this.g("text",y,a))}},containingGroup:{get:function(){return this.Ah},set:function(a){if(this.Zc()){var y=this.Ah;if(y!==a){a===null||this!==a&&!a.Td(this)||(this===a&&ie("Cannot make a Group a member of itself: "+this.toString()),ie("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?Vv(y,this):this instanceof qn&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Yv(a,this):this instanceof qn&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var E=this.data,b=x.model;if(E!==null&&b.Xj()){var z=b.wa(a!==null?a.data:null);b.mp(E,z)}}if(E=this.containingGroupChanged,E!==null&&(b=!0,x!==null&&(b=x.aa,x.aa=!0),E(this,y,a),x!==null&&(x.aa=b)),this instanceof qn){for(x=new Ke,Cd(x,this,!0,0,!0),x=x.iterator;x.next();)if(E=x.value,E instanceof en)for(E=E.linksConnected;E.next();)Rg(E.value)}if(this instanceof en){for(x=this.linksConnected;x.next();)Rg(x.value);x=this.labeledLink,x!==null&&Rg(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&cg(y,-1,a))}}else ie("cannot set the Part.containingGroup of a Link or Adornment")}},containingGroupChanged:{get:function(){return this.P!==null?this.P.Kp:null},set:function(a){var y=this.containingGroupChanged;y!==a&&(ha(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof en&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(ha(this),this.P.Cq=a,this.g("layoutConditions",y,a))}},dragComputation:{get:function(){return this.P!==null?this.P.Up:null},set:function(a){var y=this.dragComputation;y!==a&&(ha(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:ca},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),ha(this),this.P.zr=a,this.N(),this.g("shadowOffset",y,a))}},shadowColor:{get:function(){return this.P!==null?this.P.yr:"gray"},set:function(a){var y=this.shadowColor;y!==a&&(ha(this),this.P.yr=a,this.N(),this.g("shadowColor",y,a))}},shadowBlur:{get:function(){return this.P!==null?this.P.Vg:4},set:function(a){var y=this.shadowBlur;y!==a&&(ha(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),Fn.prototype.invalidateLayout=Fn.prototype.C,Fn.prototype.findCommonContainingGroup=Fn.prototype.px,Fn.prototype.isMemberOf=Fn.prototype.Td,Fn.prototype.findTopLevelPart=Fn.prototype.sz,Fn.prototype.findSubGraphLevel=Fn.prototype.oz,Fn.prototype.ensureBounds=Fn.prototype.Va,Fn.prototype.getDocumentBounds=Fn.prototype.mi,Fn.prototype.findObject=Fn.prototype.fb,Fn.prototype.moveTo=Fn.prototype.moveTo,Fn.prototype.invalidateAdornments=Fn.prototype.Wb,Fn.prototype.clearAdornments=Fn.prototype.Ej,Fn.prototype.removeAdornment=Fn.prototype.Jf,Fn.prototype.addAdornment=Fn.prototype.bh,Fn.prototype.findAdornment=Fn.prototype.Pj,Fn.prototype.updateTargetBindings=Fn.prototype.La;var G1=!1;Fn.className="Part",Fn.LayoutNone=0,Fn.LayoutAdded=1,Fn.LayoutRemoved=2,Fn.LayoutShown=4,Fn.LayoutHidden=8,Fn.LayoutNodeSized=16,Fn.LayoutGroupLayout=32,Fn.LayoutNodeReplaced=64,Fn.LayoutStandard=127,Fn.LayoutAll=16777215;function Fi(a,y){a===void 0||a instanceof Nr||typeof a=="string"?Fn.call(this,a):(Fn.call(this),a&&(y=a)),this.G&=-257,this.Jg="Adornment",this.ue=null,this.Aw=0,this.Uw=!1,this.j=this.$a=null,y&&Object.assign(this,y)}pe(Fi,Fn),Fi.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},Fi.prototype.updateRelationshipsFromData=function(){},Fi.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof Ve&&y instanceof ni){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var E=0;Ea&&(a=1);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new Ke;x.add(this),Q1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Bh),y.Ue=!1}};function Q1(a,y,x,E,b,z,tt){if(1a&&(a=2);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new Ke;x.add(this),X1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Bh),y.Ue=!1}};function X1(a,y,x,E,b,z,tt){for(var ot=z===a?!1:a.isTreeExpanded,rt=x?a.Mo():a.Sd(),at={};rt.next();){var ut=rt.value;if(ut.isTreeLink&&(ot||ut.fd||ut.bb(),ut=ut.To(a),ut!==null&&ut!==a&&!y.contains(ut))){if(y.add(ut),!ot){ut.Zb(!0),ut.oh();var gt=x?ut.Oo():ut.Po();at.vv=a,gt.all(function(mt){return function(St){return St===mt.vv||!St.isTreeExpanded}}(at))&&b.Cj(ut,z)}(2b&&(b=ot.right),ot.bottom>z&&(z=ot.bottom)}}return isFinite(x)&&isFinite(E)?a.h(x,E,b-x,z-E):(y=y.location,a.h(y.x,y.y,0,0)),a},fe.Object.defineProperties(_s.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new ii(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),_s.className="Placeholder";function Ve(a){Fn.call(this,Ue.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Zs,this.Om=0,this.Qm=Zs,this.Rm=NaN,this.qj=Xv,this.po=.5,this.wd=null,this.Nb=new Je().freeze(),this.Tg=this.Mg=null,this.ml=new Me,this.ua=new He,this.u=this.o=this.Sf=this.Wf=null,this.su=new Rt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}pe(Ve,Fn),Ve.prototype.cloneProtected=function(a){Fn.prototype.cloneProtected.call(this,a),a.Qa=this.Qa&-113,a.ff=this.ff,a.gn=this.gn,a.vf=this.vf,a.uo=this.uo,a.qk=this.qk,a.Om=this.Om,a.Qm=this.Qm,a.Rm=this.Rm,a.qj=this.qj,a.po=this.po,this.ba!==null&&(a.ba=this.ba.copy())},Ct=Ve.prototype,Ct.Af=function(a){Fn.prototype.Af.call(this,a),this.ff=a.ff,this.vf=a.vf,a.Mg=null,a.bb(),a.Sf=this.Sf;var y=a.fromPort;y!==null&&Ba(y),a=a.toPort,a!==null&&Ba(a)},Ct.qb=function(a){a.classType===Ve?(a.value&2)===2?this.routing=a:a===Ka||a===Hh||a===Hg?this.curve=a:a===a0||a===qp||a===$p?this.adjusting=a:a!==Xv&&a!==Zs&&ie("Unknown Link enum value for a Link property: "+a):Fn.prototype.qb.call(this,a)},Ct.Xc=function(){this.ba===null&&(this.ba=new Zf)},Ct.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),Ys(a)||Pd(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),Ys(a)||Pd(a)))},Ct.zv=function(){return!1},Ct.Av=function(){},Ct.Zc=function(){return!1},Ve.prototype.computeAngle=function(a,y,x){return Ve.computeAngle(y,x)},Ve.computeAngle=function(a,y){switch(a){default:case Zs:a=0;break;case l0:a=y;break;case u0:a=y+90;break;case h0:a=y-90;break;case Jv:a=y+180;break;case tm:a=Jt.bp(y),90a&&(a-=180);break;case d0:a=Jt.bp(y+90),90a&&(a-=180);break;case c0:a=Jt.bp(y-90),90a&&(a-=180);break;case em:if(a=Jt.bp(y),45a||225a)return 0;90a&&(a-=180)}return Jt.bp(a)};function Rg(a){var y=a.fromNode,x=a.toNode,E=null;if(y!==null?E=x!==null?y.px(x):y.containingGroup:x!==null?E=x.containingGroup:E=null,y=E,x=a.Ah,x!==y){x!==null&&Vv(x,a),a.Ah=y,y!==null&&Yv(y,a);var b=a.containingGroupChanged;if(b!==null){var z=!0,tt=a.diagram;tt!==null&&(z=tt.aa,tt.aa=!0),b(a,x,y),tt!==null&&(tt.aa=z)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=E}Ct=Ve.prototype,Ct.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Fn.prototype.oh.call(this)},Ct.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Ct.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function $1(a,y){a.wd===null&&(a.wd=new Ke),a.wd.add(y),a.v()}Ct.Vo=function(a){if(Fn.prototype.Vo.call(this,a),gc(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Yp(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||Yp(x,this,E)}r0(this)}},Ct.Wo=function(a){if(Fn.prototype.Wo.call(this,a),gc(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Vp(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||Vp(x,this,E)}s0(this)}},Ct.Lj=function(){if(this.fd=!0,this.wd!==null){var a=this.diagram;if(a!==null)for(var y=this.wd.copy().iterator;y.next();)a.remove(y.value)}this.data!==null&&(a=this.diagram,a!==null&&a.partManager.removeDataForLink(this))},Ve.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},Ve.prototype.move=function(a,y){var x=y?this.location:this.position,E=x.x;isNaN(E)&&(E=0);var b=x.y;for(isNaN(b)&&(b=0),E=a.x-E,b=a.y-b,y===!0?Fn.prototype.move.call(this,a,!1):(a=Rt.allocAt(x.x+E,x.y+b),Fn.prototype.move.call(this,a,!1),Rt.free(a)),Gh(this,E,b),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+E,x.y+b)},Ve.prototype.canRelinkFrom=function(){if(!this.relinkableFrom)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},Ve.prototype.canRelinkTo=function(){if(!this.relinkableTo)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},Ve.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(kl),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var x=this.i(0),E=this.i(1);return a.h((x.x+E.x)/2,(x.y+E.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===Ka))return this.ua.Pu(.5,a),a.add(this.i(0)),x=this.ua.figures.first(),a.offset(-x.startX,-x.startY),a;if(this.computeCurve()===Ka){if(y===3){x=this.i(0),E=this.i(1);var b=this.i(2);return Jt.ax(x.x,x.y,E.x,E.y,E.x,E.y,b.x,b.y,a),a}if(E=(y-1)/3|0,x=3*(E/2|0),E%2===1){E=this.i(x),b=this.i(x+1);var z=this.i(x+2);x=this.i(x+3),Jt.ax(E.x,E.y,b.x,b.y,z.x,z.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var tt=this.flattenedLengths;for(x=this.flattenedTotalLength,b=z=E=0;Ex/2));)E+=b,z++;return y=this.i(z),z=this.i(z+1),1>Math.abs(y.x-z.x)?y.y>z.y?a.h(y.x,y.y-(x/2-E)):a.h(y.x,y.y+(x/2-E)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(x/2-E),y.y):a.h(y.x+(x/2-E),y.y):(x=(x/2-E)/b,a.h(y.x+x*(z.x-y.x),y.y+x*(z.y-y.y))),a},Ve.prototype.computeMidAngle=function(){var a=this.pointsCount;if(2>a)return NaN;if(a===2)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===Ka))return this.ua.wx(.5);if(this.computeCurve()===Ka&&4<=a){var y=(a-1)/3|0,x=3*(y/2|0);if(y%2===1){x=Math.floor(x),a=this.i(x),y=this.i(x+1);var E=this.i(x+2);return x=this.i(x+3),Jt.My(a.x,a.y,y.x,y.y,E.x,E.y,x.x,x.y)}if(0E/2));)b+=z,x++;if(y=this.i(x),E=this.i(x+1),1>Math.abs(y.x-E.x)&&1>Math.abs(y.y-E.y)){if(0Math.abs(y.x-E.x))return y.y>E.y?270:90;if(1>Math.abs(y.y-E.y))return y.x>E.x?180:0}return y.ab(E)},Ct=Ve.prototype,Ct.i=function(a){return this.Nb.s[a]},Ct.dd=function(a,y){this.Nb.cd(a,y)},Ct.L=function(a,y,x){this.Nb.cd(a,new Rt(y,x))},Ct.Kz=function(a,y){this.Nb.Gb(a,y)},Ct.m=function(a,y,x){this.Nb.Gb(a,new Rt(y,x))},Ct.ne=function(a){this.Nb.add(a)},Ct.yf=function(a,y){this.Nb.add(new Rt(a,y))},Ct.pv=function(a){this.Nb.mb(a)},Ct.Fj=function(){this.Nb.clear()};function Gh(a,y,x){if(y!==0||x!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,x),a.defaultToPoint&&a.defaultToPoint.offset(y,x);else{for(var E=a.fd,b=new Je,z=a.Nb.iterator;z.next();){var tt=z.value;b.add(new Rt(tt.x+y,tt.y+x).freeze())}b.freeze(),z=a.Nb,a.Nb=b,tt=a.diagram,isNaN(y)||isNaN(x)||tt!==null&&tt.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+x),a.pa.h(a.pa.x+y,a.pa.y+x),Ws(a)),E?Zp(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),tt!==null&&tt.animationManager.zb&&dg(tt.animationManager,a,b),a.g("points",z,b)}}Ct.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Ct.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,E=1/0,b=a.s,z=b.length,tt=0;ttat&&(gt=-gt),Et=(0>rt?-1:1)*gt+St,Ot=ut*(Et-St)+wt),St=z.x+2*ot/3,wt=z.y+2*rt/3;var Tt=St,Gt=wt;Jt.B(rt,0)?Gt=0rt?-1:1)*gt+St,Gt=ut*(Tt-St)+wt),this.Fj(),this.ne(z),this.yf(Et,Ot),this.yf(Tt,Gt),this.ne(mt),this.dd(0,this.getLinkPoint(a,y,tt,!0,!1,E,b)),this.dd(3,this.getLinkPoint(E,b,x,!1,!1,a,y))}else z=E,mt=b,E=this.getLinkPoint(a,y,tt,!0,!1,z,mt),b=this.getLinkPoint(z,mt,x,!1,!1,a,y),this.hasCurviness()?(mt=b.x-E.x,x=b.y-E.y,tt=this.computeCurviness(),a=E.x+mt/2,y=E.y+x/2,z=a,ot=y,Jt.B(x,0)?ot=0tt&&(z=-z),z=(0>x?-1:1)*z+a,ot=mt*(z-a)+y),this.ne(E),this.yf(z,ot),this.ne(b)):(this.ne(E),this.ne(b),ot=Me.alloc(),y.mi(ot),rt=ot.ca(b),mt.mi(ot),at=ot.ca(E),(rt||at)&&(tt=y.ga(Kp(tt),new Rt),this.dd(0,this.getLinkPointFromPoint(a,y,tt,b,!0,tt)),x=mt.ga(Kp(x),new Rt),this.dd(1,this.getLinkPointFromPoint(z,mt,x,E,!1,x))),Me.free(ot))}else{gt=this.isAvoiding,mt&&(ut&>||at)&&this.Fj();var Wt=at?this.computeCurviness():0;gt=this.getLinkPoint(a,y,tt,!0,ut,E,b),St=Et=wt=0,(ut||!ot||at)&&(Ot=this.computeEndSegmentLength(a,y,tt,!0),St=this.getLinkDirection(a,y,gt,tt,!0,ut,E,b),at&&(ot||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(St-=ut?90:30,0>Wt&&(St-=180)),0>St?St+=360:360<=St&&(St-=360),at&&(Ot+=Math.abs(Wt)*(ut?1:2)),St===0?wt=Ot:St===90?Et=Ot:St===180?wt=-Ot:St===270?Et=-Ot:(wt=Ot*Math.cos(St*Math.PI/180),Et=Ot*Math.sin(St*Math.PI/180)),tt.Mc()&&at&&(Ot=y.ga(zi,Rt.alloc()),Tt=Rt.allocAt(Ot.x+1e3*wt,Ot.y+1e3*Et),this.getLinkPointFromPoint(a,y,Ot,Tt,!0,gt),Rt.free(Ot),Rt.free(Tt))),Ot=this.getLinkPoint(E,b,x,!1,ut,a,y);var _t=Gt=Tt=0;if(ut||!rt||at){var Kt=this.computeEndSegmentLength(E,b,x,!1);_t=this.getLinkDirection(E,b,Ot,x,!1,ut,a,y),at&&(rt||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(_t+=ut?0:30,0>Wt&&(_t+=180)),0>_t?_t+=360:360<=_t&&(_t-=360),at&&(Kt+=Math.abs(Wt)*(ut?1:2)),_t===0?Tt=Kt:_t===90?Gt=Kt:_t===180?Tt=-Kt:_t===270?Gt=-Kt:(Tt=Kt*Math.cos(_t*Math.PI/180),Gt=Kt*Math.sin(_t*Math.PI/180)),x.Mc()&&at&&(x=b.ga(zi,Rt.alloc()),tt=Rt.allocAt(x.x+1e3*Tt,x.y+1e3*Gt),this.getLinkPointFromPoint(E,b,x,tt,!1,Ot),Rt.free(x),Rt.free(tt))}x=gt,(ut||!ot||at)&&(x=new Rt(gt.x+wt,gt.y+Et)),tt=Ot,(ut||!rt||at)&&(tt=new Rt(Ot.x+Tt,Ot.y+Gt)),!mt&&!ut&&ot&&3Math.abs(y.y-a.y)?(y.x>=a.x?y.x=a.x+9e9:y.x=a.x-9e9,y.y=a.y):(y.y>=a.y?y.y=a.y+9e9:y.y=a.y-9e9,y.x=a.x),y}Ve.prototype.getLinkPointFromPoint=function(a,y,x,E,b,z){if(z===void 0&&(z=new Rt),a===null||y===null)return z.assign(x),z;if(a.isVisible()||(b=a.findVisibleNode(),b!==null&&b!==a&&(y=b.port)),a=null,b=y.panel,b===null||b.se()||(b=b.panel),b===null){b=E.x,E=E.y;var tt=x.x;x=x.y}else{a=b.oe,b=1/(a.m11*a.m22-a.m12*a.m21),tt=a.m22*b;var ot=-a.m12*b,rt=-a.m21*b,at=a.m11*b,ut=b*(a.m21*a.dy-a.m22*a.dx),gt=b*(a.m12*a.dx-a.m11*a.dy);b=E.x*tt+E.y*rt+ut,E=E.x*ot+E.y*at+gt,tt=x.x*tt+x.y*rt+ut,x=x.x*ot+x.y*at+gt}return y.Sj(b,E,tt,x,z),a!==null&&z.transform(a),z};function Qp(a,y){var x=y.Zn;return x===null&&(x=new Qc,x.port=y,x.node=y.part,y.Zn=x),aS(x,a)}Ve.prototype.getLinkPoint=function(a,y,x,E,b,z,tt,ot){if(ot===void 0&&(ot=new Rt),x.sb()&&!Gg(x))return y.ga(x,ot),ot;if(x.$c()){var rt=Qp(this,y);if(rt!==null){if(ot.assign(rt.Zo),b&&this.routing===eS){var at=Qp(this,tt);if(at!==null&&rt.Gl=ut.y&&a.y<=ut.y+ut.height?ot.y=a.y:(x.Hf(Tl)||x.Hf(Ua))&&a.x>=ut.x&&a.x<=ut.x+ut.width&&(ot.x=a.x),Rt.free(rt),Rt.free(at)}}return ot}}return x=y.ga(Kp(x),Rt.alloc()),this.pointsCount>(b?6:2)?(tt=E?this.i(1):this.i(this.pointsCount-2),b&&(tt=_v(x,tt.copy()))):(rt=this.computeSpot(!E,tt),z=Rt.alloc(),tt=tt.ga(Kp(rt),z),b&&(tt=_v(x,tt)),Rt.free(z)),this.getLinkPointFromPoint(a,y,x,tt,E,ot),Rt.free(x),ot},Ve.prototype.getLinkDirection=function(a,y,x,E,b,z,tt,ot){t:if(E.sb())var rt=E.x>E.y?E.x>1-E.y?0:E.x<1-E.y?270:315:E.x1-E.y?90:E.x<1-E.y?180:135:.5>E.x?225:.5(z?6:2)?(ot=b?this.i(1):this.i(this.pointsCount-2),ot=z?_v(rt,ot.copy()):x):(x=Rt.alloc(),ot=ot.ga(zi,x),Rt.free(x)),x=Math.abs(ot.x-rt.x)>Math.abs(ot.y-rt.y)?ot.x>=rt.x?0:180:ot.y>=rt.y?90:270,Rt.free(rt),rt=x}return E.Mc()&&tt.Td(a)&&(rt+=180,360<=rt&&(rt-=360)),Gg(E)||(a=y.li(),a===0)||(45<=a&&135>a?rt+=90:135<=a&&225>a?rt+=180:225<=a&&315>a&&(rt+=270),360<=rt&&(rt-=360)),rt},Ve.prototype.computeEndSegmentLength=function(a,y,x,E){return y!==null&&x.$c()&&(a=Qp(this,y),a!==null)?a.Ju:(a=E?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=E?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},Ve.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=zi:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===Dr?Er:y)):(a=y||this.toPort,a===null?a=zi:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Dr?Er:y)),a};function Gg(a){return a===Er||a.x===.5&&a.y===.5}function Kp(a){return a.x===.5&&a.y===.5?a:zi}Ve.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Zs&&4mt.width||gt.y>mt.height||0>gt.x+gt.width||0>gt.y+gt.height)){if(gt=In.alloc(),gt.set(tt),ut instanceof Ue)ot=ut.Cf(a,y,x,E,b,gt);else if(this.path===ut){if(ut instanceof ni)if(ot=a,mt=E,ut.pickable===!1)ot=!1;else if(gt.multiply(ut.transform),mt)t:{var St=ot,wt=gt;if(ut.fh(St,wt))ot=!0;else{if(wt===void 0&&(wt=ut.transform,St.Re(ut.actualBounds))){ot=!0;break t}ot=St.left,mt=St.right;var Et=St.top;St=St.bottom;var Ot=Rt.alloc(),Tt=Rt.alloc(),Gt=Rt.alloc(),Wt=In.alloc();Wt.set(wt),Wt.bv(ut.transform),Wt.Vj(),Tt.x=mt,Tt.y=Et,Tt.transform(Wt),Ot.x=ot,Ot.y=Et,Ot.transform(Wt),wt=!1,dc(ut,Ot,Tt,Gt)?wt=!0:(Ot.x=mt,Ot.y=St,Ot.transform(Wt),dc(ut,Ot,Tt,Gt)?wt=!0:(Tt.x=ot,Tt.y=St,Tt.transform(Wt),dc(ut,Ot,Tt,Gt)?wt=!0:(Ot.x=ot,Ot.y=Et,Ot.transform(Wt),dc(ut,Ot,Tt,Gt)&&(wt=!0)))),In.free(Wt),Rt.free(Ot),Rt.free(Tt),Rt.free(Gt),ot=wt}}else ot=ut.fh(ot,gt)}else ot=jr(ut,a,E,gt);ot&&(mt=ut,y!==null&&(mt=y(ut)),mt&&(x===null||x(mt))&&b.add(mt)),In.free(gt)}}}return z===void 0&&In.free(tt),ot||this.background!==null||this.areaBackground!==null}return z===void 0&&In.free(tt),!1},Ve.prototype.computeCurve=function(){if(this.Wf===null){var a=this.fromPort,y=this.isOrthogonal;this.Wf=a!==null&&a===this.toPort&&!y}return this.Wf?Ka:this.curve},Ve.prototype.computeCorner=function(){if(this.curve===Ka)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},Ve.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,E=0;Ert?-Math.PI/2:Math.PI/2;else ut=Math.atan(rt/Math.abs(ot)),0>ot&&(ut=Math.PI-ut);tt=y.x;var gt=y.y;ot=E.x-tt;var mt=E.y-gt;for(rt=Math.sqrt(ot*ot+mt*mt),Jt.$(ot,0)?mt=0>mt?-Math.PI/2:Math.PI/2:(mt=Math.atan(mt/Math.abs(ot)),0>ot&&(mt=Math.PI-mt)),at=rt/at,ut=mt-ut,this.dd(a,y),a+=1;art?-Math.PI/2:Math.PI/2:(rt=Math.atan(rt/Math.abs(ot)),0>ot&&(rt=Math.PI-rt)),ot=rt+ut,y*=at,this.L(a,tt+y*Math.cos(ot),gt+y*Math.sin(ot)));this.dd(x,E)}}return!0;case $p:if(z=this.i(a),gt=this.i(x),!z.Xa(y)||!gt.Xa(E)){b=z.x,z=z.y,tt=gt.x,gt=gt.y,at=(tt-b)*(tt-b)+(gt-z)*(gt-z),ot=y.x,ut=y.y,rt=E.x,mt=E.y;var St=1;if(rt-ot!==0){var wt=(mt-ut)/(rt-ot);St=Math.sqrt(1+1/(wt*wt))}else wt=9e9;for(this.dd(a,y),a+=1;ay?y+=360:360<=y&&(y-=360),0>E?E+=360:360<=E&&(E-=360);var tt=E;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,E=315<=E||45>E?0:45<=E&&135>E?90:135<=E&&225>E?180:270;var ot=b.actualBounds.copy(),rt=z.actualBounds.copy();if(ot.w()&&rt.w()){ot.Bc(g0,g0),rt.Bc(g0,g0),ot.Ye(a),rt.Ye(x);var at=Rt.alloc(),ut=Rt.alloc();y===0?x.x>a.x||E===270&&x.ya.x||E===90&&x.y>a.y&&rt.right>a.x?(at.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),E===180?(at.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ut.x=at.x,ut.y=x.y):E===270&&x.ya.y?(at.x=a.xrt.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):rt.right,ut.x=at.x,ut.y=x.y):E===0&&a.xrt.top&&a.yot.bottom)&&(E===180&&(rt.ca(a)||ot.ca(x))?at.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.ya.y&&(E===180||E===270)&&(at.y=this.computeMidOrthoPosition(a.x,ot.bottom,x.x,Math.min(x.y,rt.top),!0)),ut.x=x.x,ut.y=at.y),at.y>ot.top&&at.y=ot.left&&x.x<=a.x||a.x<=rt.right&&a.x>=x.x?(E===90||E===270)&&(at.h(Math.max((a.x+x.x)/2,a.x),a.y),ut.h(at.x,x.y)):(at.y=E===270||(E===0||E===180)&&x.ya.y&&rt.lefta.y?(at.x=a.x>rt.right?this.computeMidOrthoPosition(a.x,a.y,rt.right,x.y,!1):a.x>rt.left&&(E===270&&a.yrt.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):rt.left,ut.x=at.x,ut.y=x.y):E===180&&a.x>rt.right&&a.y>rt.top&&a.yot.bottom)&&(E===0&&(rt.ca(a)||ot.ca(x))?at.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.ya.y&&(E===0||E===270)&&(at.y=this.computeMidOrthoPosition(a.x,ot.bottom,x.x,Math.min(x.y,rt.top),!0)),ut.x=x.x,ut.y=at.y),at.y>ot.top&&at.y=a.x||a.x>=rt.left&&a.x<=x.x?(E===90||E===270)&&(at.h(Math.min((a.x+x.x)/2,a.x),a.y),ut.h(at.x,x.y)):(at.y=E===270||(E===0||E===180)&&x.ya.y||E===180&&x.xa.y||E===0&&x.x>a.x&&rt.bottom>a.y?(at.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),E===270?(at.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ut.x=x.x,ut.y=at.y):E===180&&x.xa.x?(at.y=a.yrt.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):rt.bottom,ut.x=x.x,ut.y=at.y):E===90&&a.yrt.left&&a.xot.right)&&(E===270&&(rt.ca(a)||ot.ca(x))?at.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.xa.x&&(E===270||E===180)&&(at.x=this.computeMidOrthoPosition(ot.right,a.y,Math.min(x.x,rt.left),x.y,!1)),ut.x=at.x,ut.y=x.y),at.x>ot.left&&at.x=ot.top&&x.y<=a.y||a.y<=rt.bottom&&a.y>=x.y?(E===0||E===180)&&(at.h(a.x,Math.max((a.y+x.y)/2,a.y)),ut.h(x.x,at.y)):(at.x=E===180||(E===90||E===270)&&x.xa.x&&rt.top=a.x?(at.y=a.y>rt.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,rt.bottom,!0):a.y>rt.top&&(E===180&&a.xrt.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):rt.top,ut.x=x.x,ut.y=at.y):E===270&&a.y>rt.bottom&&a.x>rt.left&&a.xot.right)&&(E===90&&(rt.ca(a)||ot.ca(x))?at.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.xa.x&&(E===90||E===180)&&(at.x=this.computeMidOrthoPosition(ot.right,a.y,Math.min(x.x,rt.left),x.y,!1)),ut.x=at.x,ut.y=x.y),at.x>ot.left&&at.x=a.y||a.y>=rt.top&&a.y<=x.y?(E===0||E===180)&&(at.h(a.x,Math.min((a.y+x.y)/2,a.y)),ut.h(x.x,at.y)):(at.x=E===180||(E===90||E===270)&&x.x=Wg&&(oS(St),ot.Bc(St.Ho*St.Hx,St.Go*St.Ix),rS(St,a,y,gt,E,ot,!1),rt=Uu(St,gt.x,gt.y)),!St.abort&&rtthis.pointsCount?(y===0||y===180?(ot.x=a.x,ot.y=gt.y):(ot.x=gt.x,ot.y=a.y),this.L(2,ot.x,ot.y),this.m(3,ot.x,ot.y)):(tt=this.i(3),y===0||y===180?Jt.B(ot.x,tt.x)?(ot=y===0?Math.max(ot.x,a.x):Math.min(ot.x,a.x),this.L(2,ot,a.y),this.L(3,ot,tt.y)):Jt.B(ot.y,tt.y)?(Math.abs(a.y-ot.y)<=St.Go/2&&(this.L(2,ot.x,a.y),this.L(3,tt.x,a.y)),this.m(2,ot.x,a.y)):this.L(2,a.x,ot.y):(y===90||y===270)&&(Jt.B(ot.y,tt.y)?(ot=y===90?Math.max(ot.y,a.y):Math.min(ot.y,a.y),this.L(2,a.x,ot),this.L(3,tt.x,ot)):Jt.B(ot.x,tt.x)?(Math.abs(a.x-ot.x)<=St.Ho/2&&(this.L(2,a.x,ot.y),this.L(3,a.x,tt.y)),this.m(2,a.x,ot.y)):this.L(2,ot.x,a.y))),x!==null&&(a=this.i(1),tt=this.i(2),a.x!==tt.x&&a.y!==tt.y?y===0||y===180?this.m(2,a.x,tt.y):this.m(2,tt.x,a.y):y===0||y===180?this.m(2,b.x,x.y):this.m(2,x.x,b.y)),wt!==null&&(E===0||E===180?this.yf(z.x,wt.y):this.yf(wt.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(at.copy()),this.ne(ut.copy())),Rt.free(at),Rt.free(ut)}},Ve.prototype.computeMidOrthoPosition=function(a,y,x,E,b){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),b?(y+E)/2+z:(a+x)/2+z};function Zv(a){if(a.diagram===null||!a.isAvoiding||!xg(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=wg(a.diagram,!0,a.containingGroup,null);for(var E=1;Efc&&Uu(y,ut,gt)!==at-1&&(Uu(y,x-ot,E)===at-1?(b=180,ut=x-ot,gt=E):Uu(y,x+ot,E)===at-1?(b=0,ut=x+ot,gt=E):Uu(y,x,E-rt)===at-1?(b=270,ut=x,gt=E-rt):Uu(y,x,E+rt)===at-1&&(b=90,ut=x,gt=E+rt));at>fc&&Uu(y,ut,gt)===at-1;)x=ut,E=gt,b===0?ut+=ot:b===90?gt+=rt:b===180?ut-=ot:gt-=rt,--at;z?at>fc&&(b===180||b===0?x=Math.floor(x/ot)*ot+ot/2:(b===90||b===270)&&(E=Math.floor(E/rt)*rt+rt/2)):(x=Math.floor(x/ot)*ot+ot/2,E=Math.floor(E/rt)*rt+rt/2),at>fc&&(z=b,tt=x,ut=E,b===0?(z=90,ut+=rt):b===90?(z=180,tt-=ot):b===180?(z=270,ut-=rt):b===270&&(z=0,tt+=ot),Uu(y,tt,ut)===at-1?Qv(a,y,tt,ut,z,!1,z):(tt=x,ut=E,b===0?(z=270,ut-=rt):b===90?(z=0,tt+=ot):b===180?(z=90,ut+=rt):b===270&&(z=180,tt-=ot),Uu(y,tt,ut)===at-1&&Qv(a,y,tt,ut,z,!1,z))),a.yf(x,E)}Ve.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),E=this.i(1),b=gr(y,a,x.x,x.y,E.x,E.y),z=0,tt=1;ttthis.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),a=this.path,a!==null)){a.ua=this.ua;for(var y=this.O.s,x=y.length,E=0;E=y&&(E=y-1),rt=this.i(E),z.x=Math.min(rt.x,z.x),z.y=Math.min(rt.y,z.y);E=z.x,rt=z.y}else{for(rt=0;rtOt?wt>St?(z.x=Tt-Wt,z.y=St-Wt,b.x=Tt+Et,b.y=St+Et):(z.x=Tt-Wt,z.y=St+Wt,b.x=Tt+Et,b.y=St-Et):wt>St?(z.x=Tt+Wt,z.y=St-Wt,b.x=Tt-Et,b.y=St+Et):(z.x=Tt+Wt,z.y=St+Wt,b.x=Tt-Et,b.y=St-Et)),Jt.$(Ot,Tt)&&Jt.$(St,wt)&&(St>mt?(Gt>Tt?(z.x=Tt-Wt,z.y=St-Wt,b.x=Tt+Et):(z.x=Tt+Wt,z.y=St-Wt,b.x=Tt-Et),b.y=St+Et):(Gt>Tt?(z.x=Tt-Wt,z.y=St+Wt,b.x=Tt+Et):(z.x=Tt+Wt,z.y=St+Wt,b.x=Tt-Et),b.y=St-Et)),(Jt.$(Ot,Tt)&&Jt.$(Tt,Gt)||Jt.$(mt,St)&&Jt.$(St,wt))&&(Ot=.5*(Ot+Gt),mt=.5*(mt+wt),z.x=Ot,z.y=mt,b.x=Ot,b.y=mt),(gt===1||gt===2&&Jt.$(tt.x,this.i(0).x)&&Jt.$(tt.y,this.i(0).y))&&(x.x=.5*(tt.x+at.x),x.y=.5*(tt.y+at.y)),Oh(ot,x.x-E,x.y-rt,z.x-E,z.y-rt,at.x-E,at.y-rt),y.set(z),x.set(b),tt=at}}at=tt.x,tt=tt.y,ut=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ut=Yc(this,ut.copy(),!1,$r)),at=.5*(at+ut.x),tt=.5*(tt+ut.y),Oh(ot,b.x-E,b.y-rt,at-E,tt-rt,ut.x-E,ut.y-rt),Rt.free(y),Rt.free(x),Rt.free(z),Rt.free(b)}else for(x=3;x=y&&(x=y-1),b=this.i(x-1),tt=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(tt=Yc(this,tt.copy(),!1,$r)),Oh(ot,z.x-E,z.y-rt,b.x-E,b.y-rt,tt.x-E,tt.y-rt);else{for(z=Rt.alloc(),z.assign(this.i(0)),b=Rt.alloc(),b.assign(z),tt=this.computeCorner(),gt=1,at=0;gt=y-1){if(!z.D(ut))this.computeShortLength(!1)!==0&&(ut=Yc(this,ut.copy(),!1,$r)),Vc(this,ot,-E,-rt,z,ut,x);else if(at===0)for(gt=1;gtz.x?_t=mt.x-wt:_t=mt.x+wt,Tt.y>mt.y?Gt=mt.y+Wt:Gt=mt.y-Wt,Tt=Rt.allocAt(_t,Kt),Vc(this,ot,gt,Ot,z,Tt,Et),Rt.free(Tt),Gp(ot,mt.x+gt,mt.y+Ot,St+gt,Gt+Ot),z.h(St,Gt)}else Jt.B(z.x,mt.x)&&Jt.B(mt.y,Tt.y)?(wt=Math.min(tt,Math.abs(mt.y-b.y)/2),wt=Wt=Math.min(wt,Math.abs(Tt.x-mt.x)/2),Jt.B(Wt,0)?(Vc(this,ot,gt,Ot,z,mt,Et),z.assign(mt)):(_t=mt.x,Kt=mt.y,St=_t,Gt=Kt,mt.y>z.y?Kt=mt.y-wt:Kt=mt.y+wt,Tt.x>mt.x?St=mt.x+Wt:St=mt.x-Wt,Tt=Rt.allocAt(_t,Kt),Vc(this,ot,gt,Ot,z,Tt,Et),Rt.free(Tt),Gp(ot,mt.x+gt,mt.y+Ot,St+gt,Gt+Ot),z.h(St,Gt))):(Vc(this,ot,gt,Ot,z,mt,Et),z.assign(mt));b.assign(ut),gt=at}Rt.free(z)}Hp=ot}else ot=this.i(1).copy(),ot.x-=E,ot.y-=rt,this.computeShortLength(!0)!==0&&(b=Yc(this,b,!0,z)),this.computeShortLength(!1)!==0&&(ot=Yc(this,ot,!1,z)),a.type=He.j,a.startX=b.x,a.startY=b.y,a.endX=ot.x,a.endY=ot.y;return this.lk=!0,a};function Xp(a,y,x,E){return a=x-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=E-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),Jt.$(a,0)?y:Jt.$(y,0)?a:Math.sqrt(a*a+y*y)))}function Yc(a,y,x,E){var b=a.pointsCount;if(2>b)return y;if(x){var z=a.i(1);if(x=z.x-E.x,z=z.y-E.y,E=Xp(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!0),a>b&&(a=b),b=a*(z-y.y)/E,y.x+=a*(x-y.x)/E,y.y+=b}else{if(z=a.i(b-2),x=z.x-E.x,z=z.y-E.y,E=Xp(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!1),a>b&&(a=b),b=a*(y.y-z)/E,y.x-=a*(y.x-x)/E,y.y-=b}return y}function Kv(a,y,x,E){for(var b=a.pointsCount,z=y;Jt.$(y.x,z.x)&&Jt.$(y.y,z.y);){if(x>=b)return b-1;z=a.i(x++)}if(!Jt.$(y.x,z.x)&&!Jt.$(y.y,z.y))return x-1;for(var tt=z;Jt.$(y.x,z.x)&&Jt.$(z.x,tt.x)&&(!E||(y.y>=z.y?z.y>=tt.y:z.y<=tt.y))||Jt.$(y.y,z.y)&&Jt.$(z.y,tt.y)&&(!E||(y.x>=z.x?z.x>=tt.x:z.x<=tt.x));){if(x>=b)return b-1;tt=a.i(x++)}return x-2}Ve.prototype.computeJumpLength=function(){return 10};function Vc(a,y,x,E,b,z,tt){if(!tt&&gc(a)){tt=a.computeJumpLength();var ot=tt/2,rt=[],at=0;if(a.isVisible()&&(at=Lx(a,b,z,rt)),0gt-tt);)at--,gt=Math.max(ut-ot,z.x);ut=z.y-tt+E,gt+=x,St=z.y+E,a.curve===Hh?zg(y,gt,St,!1):Oh(y,mt,ut,gt,ut,gt,St)}else if(Jt.B(b.x,z.x))if(b.yut-tt);)at--,ut=Math.max(gt-ot,z.y);gt=z.x-tt+x,St=z.x+x,ut+=E,a.curve===Hh?zg(y,St,ut,!1):Oh(y,gt,mt,gt,ut,St,ut)}}}y.lineTo(z.x+x,z.y+E)}function Lx(a,y,x,E){var b=a.diagram;if(b===null||y.D(x))return 0;for(b=b.layers;b.next();){var z=b.value;if(z!==null&&z.visible){z=z.Pa.s;for(var tt=z.length,ot=0;ottt.x&&ut.x>=at.x||at.xtt.y&&ut.y>=at.y||at.ytt&&Math.min(wt,Et)ut&&!Jt.B(wt,Et)){ot.x=ut,ot.y=tt,ut=!0;break t}}else if(Jt.B(gt,St)&&Jt.B(wt,Et)&&Math.min(ut,mt)wt&&Math.min(tt,Ot)gt&&!Jt.B(tt,Ot)){ot.x=wt,ot.y=gt,ut=!0;break t}ot.x=0,ot.y=0,ut=!1}ut&&(b?x.push(ot.x):x.push(ot.y)),tt=at}Rt.free(ot)}function gc(a){return a=a.curve,a===Hg||a===Hh}function Jp(a,y){(y||gc(a))&&(y=a.diagram,y===null||y.animationManager.isTicking||y.Eh.contains(a)||a.ml.width===0&&a.ml.height===0||y.Eh.add(a,a.ml.copy()))}Ve.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var x=y.diagram;if(x!==null&&!x.animationManager.isTicking){var E=!1;for(x=x.layers;x.next();){var b=x.value;if(b.visible){if(b===y){E=!0;var z=!1;b=b.Pa.s;for(var tt=b.length,ot=0;ota&&Kn(a,">= 0",Ve,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),this.bb())}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:NaN},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.qc(),this.g("fromShortLength",y,a))}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Dr},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),(y.$c()||a.$c())&&this.toNode!==null&&Ba(this.toPort),this.bb())}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:NaN},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Kn(a,">= 0",Ve,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),this.bb())}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:NaN},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.qc(),this.g("toShortLength",y,a))}},isLabeledLink:{get:function(){return this.wd===null?!1:0=E&&(z=E-1);var ot=this.i(z-1),rt=this.i(z);Jt.Dl(b.x,b.y,tt.x,tt.y,ot.x,ot.y,rt.x,rt.y,.5,a),y=Math.min(rt.x,y),x=Math.min(rt.y,x),b=rt}else for(b=this.i(0),z=this.i(1),y=Math.min(b.x,z.x),x=Math.min(b.y,z.y),a.h(b.x,b.y,0,0),a.Ye(z),b=2;bE&&(E=-E)):Jt.$(E.y,b.y)?(E=b.x-E.x,0>E&&(E=-E)):E=Math.sqrt(E.Bf(b)),a.push(E)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,x=y.length,E=a=0;Ethis.pointsCount)return this.lk=!0,this.ua;this.ua=this.makeGeometry()}return this.ua}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!Gg(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!Gg(this.computeSpot(!1))?a-2:a-1}},adjusting:{get:function(){return this.qk},set:function(a){var y=this.qk;y!==a&&(this.qk=a,this.g("adjusting",y,a))}},corner:{get:function(){return this.Om},set:function(a){var y=this.Om;y!==a&&(this.Om=a,this.qc(),this.g("corner",y,a))}},curve:{get:function(){return this.Qm},set:function(a){var y=this.Qm;y!==a&&(this.Qm=a,this.bb(),this.qc(),Jp(this,y===Hh||y===Hg||a===Hh||a===Hg),this.g("curve",y,a))}},curviness:{get:function(){return this.Rm},set:function(a){var y=this.Rm;y!==a&&(this.Rm=a,this.bb(),this.qc(),this.g("curviness",y,a))}},routing:{get:function(){return this.qj},set:function(a){var y=this.qj;y!==a&&(this.qj=a,this.Wf=null,this.bb(),Jp(this,(y.value&2)===2||(a.value&2)===2),this.g("routing",y,a))}},smoothness:{get:function(){return this.po},set:function(a){var y=this.po;y!==a&&(this.po=a,this.qc(),this.g("smoothness",y,a))}},key:{get:function(){var a=this.diagram;if(a!==null&&a.model.ri())return a.model.Ac(this.data)}}}),Ve.prototype.invalidateOtherJumpOvers=Ve.prototype.Xo,Ve.prototype.findClosestSegment=Ve.prototype.ez,Ve.prototype.updateRoute=Ve.prototype.vg,Ve.prototype.invalidateRoute=Ve.prototype.bb,Ve.prototype.rollbackRoute=Ve.prototype.rv,Ve.prototype.commitRoute=Ve.prototype.zf,Ve.prototype.startRoute=Ve.prototype.uh,Ve.prototype.clearPoints=Ve.prototype.Fj,Ve.prototype.removePoint=Ve.prototype.pv,Ve.prototype.addPointAt=Ve.prototype.yf,Ve.prototype.addPoint=Ve.prototype.ne,Ve.prototype.insertPointAt=Ve.prototype.m,Ve.prototype.insertPoint=Ve.prototype.Kz,Ve.prototype.setPointAt=Ve.prototype.L,Ve.prototype.setPoint=Ve.prototype.dd,Ve.prototype.getPoint=Ve.prototype.i,Ve.prototype.getOtherPort=Ve.prototype.Cz,Ve.prototype.getOtherNode=Ve.prototype.To;var _c=null,Zc=null,Xv=new je(Ve,"Normal",1),Ax=new je(Ve,"Orthogonal",2),Nx=new je(Ve,"AvoidsNodes",6),eS=new je(Ve,"AvoidsNodesStraight",7),Zs=new je(Ve,"None",0),Ka=new je(Ve,"Bezier",9),Hh=new je(Ve,"JumpGap",10),Hg=new je(Ve,"JumpOver",11),a0=new je(Ve,"End",17),qp=new je(Ve,"Scale",18),$p=new je(Ve,"Stretch",19),l0=new je(Ve,"OrientAlong",21),u0=new je(Ve,"OrientPlus90",22),h0=new je(Ve,"OrientMinus90",23),Jv=new je(Ve,"OrientOpposite",24),tm=new je(Ve,"OrientUpright",25),d0=new je(Ve,"OrientPlus90Upright",26),c0=new je(Ve,"OrientMinus90Upright",27),em=new je(Ve,"OrientUpright45",28),nS=16,iS=14,g0=8;Ve.className="Link",Ve.Normal=Xv,Ve.Orthogonal=Ax,Ve.AvoidsNodes=Nx,Ve.AvoidsNodesStraight=eS,Ve.None=Zs,Ve.Bezier=Ka,Ve.JumpGap=Hh,Ve.JumpOver=Hg,Ve.End=a0,Ve.Scale=qp,Ve.Stretch=$p,Ve.OrientAlong=l0,Ve.OrientPlus90=u0,Ve.OrientMinus90=h0,Ve.OrientOpposite=Jv,Ve.OrientUpright=tm,Ve.OrientPlus90Upright=d0,Ve.OrientMinus90Upright=c0,Ve.OrientUpright45=em,Ve.EndSegmentStep=8,Ve.CurvinessStart=nS,Ve.SpacingMin=iS,Ve.OrthoShortCut=g0;function nm(a,y,x,E){Lo(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=E,this.links=[]}nm.prototype.Sl=function(){if(!this.qq){var a=this.links;0=a.width||0>=a.height)){var y=a.y,x=a.x+a.width,E=a.y+a.height;if(this.Nd=Math.floor((a.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((y-this.sc)/this.sc)*this.sc,this.En=Math.ceil((x+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((E+2*this.sc)/this.sc)*this.sc,a=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),y=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di=fc&&(x[E]=qv)}f0.prototype.Yj=function(a,y,x,E){if(a>this.En||a+xthis.Fn||y+Ea&&(x+=a,a=0),0>y&&(b+=y,y=0),0>x||0>b)return!0;for(E=Math.min(a+x-1,this.di)|0,x=Math.min(y+b-1,this.ei)|0;a<=E;a++){b=this.ac[a];for(var z=y;z<=x;z++)if(b[z]===Uh)return!1}return!0};function Wu(a,y,x,E,b,z,tt,ot,rt){if(!(ytt||xrt)){var at=y|0,ut=x|0,gt=a.ac[at][ut];if(gt>=fc&>=a.ac[at][ut]);)a.ac[at][ut]=gt,gt+=1,b?ut+=E:at+=E;if(at=b?ut:at,b)if(0at;x+=E)Wu(a,y,x,1,!b,z,tt,ot,rt),Wu(a,y,x,-1,!b,z,tt,ot,rt);else if(0at;y+=E)Wu(a,y,x,1,!b,z,tt,ot,rt),Wu(a,y,x,-1,!b,z,tt,ot,rt)}}function im(a,y,x,E,b,z,tt,ot,rt){y|=0,x|=0;var at=Uh,ut=fc;for(a.ac[y][x]=ut;at===Uh&&y>z&&yot&&xz&&yot&&x=Math.abs(ot-at)&&1>=Math.abs(rt-ut))a.abort=!0;else{var gt=z.x;E=z.y,y=z.x+z.width;var mt=z.y+z.height;gt-=a.Nd,gt/=a.rc,E-=a.Od,E/=a.sc,y-=a.Nd,y/=a.rc,mt-=a.Od,mt/=a.sc,z=Math.max(0,Math.min(a.di,gt|0)),y=Math.min(a.di,Math.max(0,y|0)),gt=Math.max(0,Math.min(a.ei,E|0)),mt=Math.min(a.ei,Math.max(0,mt|0)),E=a.ac,ot|=0,rt|=0,at|=0,ut|=0;var St=x===0||x===90?1:-1;if(x=x===90||x===270,E[ot][rt]===Uh?(im(a,ot,rt,St,x,z,y,gt,mt),im(a,ot,rt,1,!x,z,y,gt,mt),im(a,ot,rt,-1,!x,z,y,gt,mt)):im(a,ot,rt,St,x,ot,rt,ot,rt),E[at][ut]===Uh?(om(a,at,ut,b===0||b===90?1:-1,b===90||b===270,z,y,gt,mt),om(a,at,ut,1,!(b===90||b===270),z,y,gt,mt),om(a,at,ut,-1,!(b===90||b===270),z,y,gt,mt)):om(a,at,ut,St,x,at,ut,at,ut),x=vi(),tt&&sS(a,at,ut,b,ot,rt,x))for((x[0]!==at||x[1]!==ut)&&(x.unshift(ut),x.unshift(at)),(x[x.length-2]!==ot||x[x.length-1]!==rt)&&(x.push(ot),x.push(rt)),a=fc,b=x[x.length-2],tt=x[x.length-1],E[b][tt]=a++,z=x.length-4;0<=z;z-=2)for(b=x[z+2],tt=x[z+3],y=x[z],at=x[z+1];y>b?b++:ytt?tt++:atb)ut--;else break;else if(gt>z)gt--;else break;var mt=ot[ut][gt];if(mt===0||mt===$v)break;rt=ut,at=gt}for(;;){if(ut=E,gt=rt,mt=at,E===0?mtz&&(ut=270,mt--):E===90?gtb&&(ut=180,gt--):E===180?mtz&&(ut=270,mt--):gtb&&(ut=180,gt--),gt=ot[gt][mt],ut!==E&>!==0&>!==$v){if(tt.push(rt),tt.push(at),sS(a,rt,at,ut,b,z,tt))return!0;tt.pop(),tt.pop()}if(ot[rt][at]=$v,E===0){if(rt===y)return!1;rt--}else if(E===90){if(at===x)return!1;at--}else if(E===180){if(rt===y)return!1;rt++}else{if(at===x)return!1;at++}}}fe.Object.defineProperties(f0.prototype,{bounds:{get:function(){return new Me(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(a){0=x?180:0}switch(a=180*Math.atan2(a.height,a.width)/Math.PI,y){case 3:return x>a&&x<=180+a?180:270;case 5:return x>180-a&&x<=360-a?270:0;case 12:return x>a&&x<=180+a?90:0;case 10:return x>180-a&&x<=360-a?180:90;case 7:return 90180+a&&x<=360-a?270:0;case 13:return 180a&&180>=x?90:0;case 14:return x>a&&x<=180-a?90:x>180-a&&270>=x?180:0;case 11:return x>180-a&&x<=180+a?180:x>180+a?270:90}return E&&y!==15&&(x-=15,0>x&&(x+=360)),x>a&&x<180-a?90:x>=180-a&&x<=180+a?180:x>180+a&&x<360-a?270:0}Qc.prototype.Sl=function(){this.pe.length=0};function aS(a,y){var x=a.pe;if(x.length===0){t:if(!a.ap){x=a.ap,a.ap=!0;var E=null,b=a.node,z=b instanceof qn?b:null;if(z===null||z.isSubGraphExpanded)var tt=b.isTreeExpanded?b.findLinksConnected(a.port.portId):b.qx();else{if(!z.actualBounds.w()){a.ap=x;break t}E=z,tt=E.Lu()}z=a.pe.length=0;var ot=a.port.ga(Vr,Rt.alloc()),rt=a.port.ga(Rs,Rt.alloc());for(b=Me.allocAt(ot.x,ot.y,0,0),b.Ye(rt),Rt.free(ot),Rt.free(rt),ot=Rt.allocAt(b.x+b.width/2,b.y+b.height/2),rt=a.port.li(),tt=tt.iterator;tt.next();){var at=tt.value;if(at.isVisible()&&at.fromPort!==at.toPort){var ut=at.fromPort===a.port||at.fromNode!==null&&at.fromNode.Td(E),gt=at.computeSpot(ut,a.port);if(gt.$c()&&(ut=ut?at.toPort:at.fromPort,ut!==null)){var mt=ut.part;if(mt!==null){var St=mt.findVisibleNode();St!==null&&St!==mt&&(mt=St,ut=mt.port),ut=at.computeOtherPoint(mt,ut),mt=ot.ab(ut),mt-=rt,0>mt?mt+=360:360<=mt&&(mt-=360),gt=kx(b,gt,mt,at.isOrthogonal),gt===0?(gt=4,180mt&&(mt+=360)),St=a.pe[z],St===void 0?(St=new ty(at,mt,gt),a.pe[z]=St):(St.link=at,St.angle=mt,St.Nc=gt),St.hv.set(ut),z++}}}}for(Rt.free(ot),a.pe.sort(Qc.prototype.j),rt=a.pe.length,E=-1,z=ot=0;zMath.abs(Et)?(Gt=Math.abs(Et)/mt,mt=Math.abs(Et)):Gt=1;break;case 2:St>Math.abs(Wt)?(Gt=Math.abs(Wt)/St,St=Math.abs(Wt)):Gt=1;break;case 1:gt>Math.abs(Et)?(Gt=Math.abs(Et)/gt,gt=Math.abs(Et)):Gt=1;break;default:case 4:ut>Math.abs(Wt)?(Gt=Math.abs(Wt)/ut,ut=Math.abs(Wt)):Gt=1}Tt=0}var he=_t.Zo;if(E===Wv){switch(_t=_t.link.computeThickness(),_t*=Gt,he.set(Kt),wt){case 8:he.x=Kt.x+Et/2+mt/2-Tt-_t/2;break;case 2:he.y=Kt.y+Wt/2+St/2-Tt-_t/2;break;case 1:he.x=Kt.x+Et/2-gt/2+Tt+_t/2;break;default:case 4:he.y=Kt.y+Wt/2-ut/2+Tt+_t/2}Tt+=_t}else{var $e=.5;E===_p&&($e=(_t.Uo+1)/(_t.Gl+1)),he.x=Kt.x+Et*$e,he.y=Kt.y+Wt*$e}}}for(Rt.free(ot),Rt.free(rt),Rt.free(tt),Rt.free(at),Kt=a.pe,z=0;zy.Nc?1:a.angley.angle?1:0},Qc.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,Er,y.fromPort===this.port),E=a.Uo;if(0>E)return x;var b=a.Gl;if(1>=b||!y.isOrthogonal)return x;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(E=b-1-E),((a=a.Nc===2||a.Nc===4)?y.y=y-1?(z=0,E=x,b+=tt+20,tt=0):z++}},Ao.prototype.doMinimalNetworkLayout=function(){var a=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var y=this.arrangementOrigin.x,x=y,E=this.arrangementOrigin.y,b=0,z=0,tt=this.network.vertexes.iterator;tt.next();){var ot=tt.value.node;if(!(ot===null||ot instanceof Ve)&&(p0(ot),this.rh(ot))){var rt=ot.measuredBounds,at=rt.width;rt=rt.height,ot.moveTo(x,E),ot instanceof qn&&(ot.rh=!1),x+=Math.max(at,50)+20,z=Math.max(z,Math.max(rt,50)),b>=a-1?(b=0,x=y,E+=z+20,z=0):b++}}},Ao.prototype.rh=function(a){return!!(!a.location.w()||a instanceof qn&&a.rh)};function Ld(a,y,x,E,b,z,tt,ot){for(x=x.iterator;x.next();){var rt=x.value;E&&!rt.isTopLevel||b!==null&&!b(rt)||!rt.canLayout()||(z&&rt instanceof en?rt.isLinkLabel||(rt instanceof qn&&rt.layout===null?Ld(a,y,rt.memberParts,!1,b,z,tt,ot):(p0(rt),y.add(rt))):tt&&rt instanceof Ve?y.add(rt):!ot||!rt.Zc()||rt instanceof en||(p0(rt),y.add(rt)))}}function p0(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Ao.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new Me),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Ao.prototype.ex=function(a){var y=new Ke;return a instanceof de?(Ld(this,y,a.nodes,!0,null,!0,!0,!0),Ld(this,y,a.links,!0,null,!0,!0,!0),Ld(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof qn?Ld(this,y,a.memberParts,!1,null,!0,!0,!0):Ld(this,y,a.iterator,!1,null,!0,!0,!0),y},Ao.prototype.initialOrigin=function(a){var y=this.group;if(y!==null){var x=y.position.copy();return(isNaN(x.x)||isNaN(x.y))&&x.set(a),y=y.placeholder,y!==null&&(x=y.ga(Vr),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},fe.Object.defineProperties(Ao.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},group:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a,a!==null&&(this.H=a.diagram))}},isOngoing:{get:function(){return this.sn},set:function(a){this.sn!==a&&(this.sn=a)}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a,a||(this.xn=!0)}},isViewportSized:{get:function(){return this.yn},set:function(a){this.yn!==a&&(this.yn=a)&&this.C()}},isRouting:{get:function(){return this.vn},set:function(a){this.vn!==a&&(this.vn=a)}},isRealtime:{get:function(){return this.un},set:function(a){this.un!==a&&(this.un=a)}},isValidLayout:{get:function(){return this.xn},set:function(a){this.xn!==a&&(this.xn=a,a||(a=this.diagram,a!==null&&(a.xh=!0)))}},network:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,a!==null&&(a.layout=this))}},boundsComputation:{get:function(){return this.Em},set:function(a){this.Em!==a&&(this.Em=a,this.C())}},arrangementOrigin:{get:function(){return this.Am},set:function(a){this.Am.D(a)||(this.Am.assign(a),this.C())}}}),Ao.prototype.collectParts=Ao.prototype.ex,Ao.prototype.getLayoutBounds=Ao.prototype.ni,Ao.prototype.invalidateLayout=Ao.prototype.C,Ao.className="Layout";function lo(a){Lo(this),this.Sc=a,this.wf=new Ke,this.ye=new Ke,this.Es=new Vn,this.zs=new Vn}lo.prototype.clear=function(){if(this.wf)for(var a=this.wf.iterator;a.next();)a.value.clear();if(this.ye)for(a=this.ye.iterator;a.next();)a.value.clear();this.wf=new Ke,this.ye=new Ke,this.Es=new Vn,this.zs=new Vn},lo.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutNetwork"+(this.layout!==null?"("+this.layout.toString()+")":"");if(0>=a)return y;if(y+=" vertexes: "+this.wf.count+" edges: "+this.ye.count,1y?1:0):1:y!==null?-1:0}fe.Object.defineProperties(kr.prototype,{sourceEdgesArrayAccess:{get:function(){return this.tg._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.mg._dataArray}},data:{get:function(){return this.ub},set:function(a){if(this.ub=a,a!==null&&a.bounds){var y=a.bounds;a=y.x;var x=y.y,E=y.width;y=y.height,this.o.h(E/2,y/2),this.j.h(a,x,E,y)}}},node:{get:function(){return this.Sh},set:function(a){if(this.Sh!==a){this.Sh=a,a.Va();var y=this.network.layout,x=Me.alloc(),E=y.ni(a,x);y=E.x;var b=E.y,z=E.width;if(E=E.height,isNaN(y)&&(y=0),isNaN(b)&&(b=0),this.j.h(y,b,z,E),Me.free(x),!(a instanceof qn)&&(a=a.locationObject.ga(zi),a.w())){this.o.h(a.x-y,a.y-b);return}this.o.h(z/2,E/2)}}},bounds:{get:function(){return this.j},set:function(a){this.j.D(a)||this.j.assign(a)}},focus:{get:function(){return this.o},set:function(a){this.o.D(a)||this.o.assign(a)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(a){var y=this.j;y.x+this.o.x!==a&&(y.ka(),y.x=a-this.o.x,y.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(a){var y=this.j;y.y+this.o.y!==a&&(y.ka(),y.y=a-this.o.y,y.freeze())}},focusX:{get:function(){return this.o.x},set:function(a){var y=this.o;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},focusY:{get:function(){return this.o.y},set:function(a){var y=this.o;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},x:{get:function(){return this.j.x},set:function(a){var y=this.j;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},y:{get:function(){return this.j.y},set:function(a){var y=this.j;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},width:{get:function(){return this.j.width},set:function(a){var y=this.j;y.width!==a&&(y.ka(),y.width=a,y.freeze())}},height:{get:function(){return this.j.height},set:function(a){var y=this.j;y.height!==a&&(y.ka(),y.height=a,y.freeze())}},network:{get:function(){return this.ob},set:function(a){this.ob=a}},sourceVertexes:{get:function(){for(var a=new Ke,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new Ke,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new Ke,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);for(y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},sourceEdges:{get:function(){return this.tg.iterator}},destinationEdges:{get:function(){return this.mg.iterator}},edges:{get:function(){for(var a=new Je,y=this.sourceEdges;y.next();)a.add(y.value);for(y=this.destinationEdges;y.next();)a.add(y.value);return a.iterator}},edgesCount:{get:function(){return this.tg.count+this.mg.count}}}),kr.prototype.deleteDestinationEdge=kr.prototype.Jl,kr.prototype.addDestinationEdge=kr.prototype.zl,kr.prototype.deleteSourceEdge=kr.prototype.Kl,kr.prototype.addSourceEdge=kr.prototype.Cl,kr.className="LayoutVertex",kr.standardComparer=oy,kr.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.Sh;var x=y.Sh;if(a!==null){if(x!==null){for(y=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),a=x.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),x=0;x "+(this.qd?this.qd.toString():"null"))),y},Ia.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},Ia.prototype.commit=function(){},Ia.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},fe.Object.defineProperties(Ia.prototype,{network:{get:function(){return this.nb},set:function(a){this.nb=a}},data:{get:function(){return this.ub},set:function(a){this.ub!==a&&(this.ub=a)}},link:{get:function(){return this.$k},set:function(a){this.$k!==a&&(this.$k=a)}},fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}}}),Ia.prototype.getOtherVertex=Ia.prototype.Ax,Ia.className="LayoutEdge";function is(a){Ao.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new tn(NaN,NaN).freeze(),this.tf=new tn(10,10).freeze(),this.Jb=m0,this.Rb=sm,this.nd=v0,this.hd=uS,a&&Object.assign(this,a)}pe(is,Ao),is.prototype.cloneProtected=function(a){Ao.prototype.cloneProtected.call(this,a),a.zo=this.zo,a.yo=this.yo,a.yg.assign(this.yg),a.tf.assign(this.tf),a.Jb=this.Jb,a.Rb=this.Rb,a.nd=this.nd,a.hd=this.hd},is.prototype.qb=function(a){a.classType===is?a===v0||a===lm||a===ry||a===am?this.sorting=a:a===sm||a===ql?this.arrangement=a:a===m0||a===rm?this.alignment=a:ie("Unknown enum value: "+a):Ao.prototype.qb.call(this,a)},is.prototype.doLayout=function(a){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var y=this.ex(a);a=this.diagram;for(var x=y.copy().iterator;x.next();){var E=x.value;if(!E.ph()||E.fromNode===null&&E.toNode===null){if(E.Va(),E instanceof qn)for(E=E.memberParts;E.next();)y.remove(E.value)}else y.remove(E)}var b=y.Fa();if(b.length!==0){switch(this.sorting){case am:b.reverse();break;case v0:b.sort(this.comparer);break;case lm:b.sort(this.comparer),b.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var tt=this.wrappingWidth;switch(isNaN(tt)&&a!==null?(y=a.padding,tt=Math.max(a.viewportBounds.width-y.left-y.right,0)):tt=Math.max(this.wrappingWidth,0),0>=z&&0>=tt&&(z=1),y=this.spacing.width,isFinite(y)||(y=0),x=this.spacing.height,isFinite(x)||(x=0),a!==null&&a.Ea("Layout"),E=[],this.alignment){case rm:var ot=y,rt=x,at=Me.alloc(),ut=Math.max(this.cellSize.width,1);if(!isFinite(ut))for(var gt=ut=0;gtz-1||0tt)&&(E.push(new Me(0,Et,tt+ot,Tt)),Ot=0,wt=St,Et+=Tt,Tt=0),Tt=Math.max(Tt,he),mt){case ql:_t=-_t.width;break;default:_t=0}switch(Wt.moveTo(wt+_t,Et),mt){case ql:wt-=Kt;break;default:wt+=Kt}Ot++}E.push(new Me(0,Et,tt+ot,Tt)),Me.free(at);break;case m0:for(rt=tt,ut=z,gt=y,mt=x,tt=Me.alloc(),St=Math.max(this.cellSize.width,1),z=Et=at=0,ot=Rt.alloc(),wt=0;wt=at&&(rt-=at),at=Wt=0,Kt=Math.max(this.cellSize.height,1),_t=z=0,he=!0,Ot=Rt.alloc(),$e=0;$eut-1||0rt){for(E.push(new Me(0,he?Gt-z:Gt,rt+gt,_t+z+mt)),Sn=0;Snat&&(z.width+=z.x-at,z.x=at);Me.free(tt)}for(ot=z=tt=b=0;oty?1:0}fe.Object.defineProperties(is.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(a){this.zo!==a&&(0gt)){var Et=gt+qf(wt);wt.pc(Et,!0),xv(wt,Et,gt)}}y.isModified=!0}}finally{y.aa=!0}}}}},Zi.prototype.updateAllTargetBindings=function(a){a===void 0&&(a="");for(var y=this.parts.iterator;y.next();)y.value.La(a);for(y=this.nodes.iterator;y.next();)y.value.La(a);for(y=this.links.iterator;y.next();)y.value.La(a)},Zi.prototype.rp=function(){for(var a=this.H.model,y=new Ke,x=a.nodeDataArray,E=0;E=E)return"[]";var b=new di;b.add("["),x&&1E)return;Po(a.Tc,E)}Mr(a,"nodeDataArray",gi,"nodeDataArray",a,y,null,E,null),a.qp(y)}Ct.nA=function(a){if(an(a))for(var y=a.length,x=0;xy&&(y=a.length),Co(a,y,x),Mr(this,"",mn,"",a,null,x,null,y)},Ct.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&ie("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];Po(a,y),Mr(this,"",gi,"",a,x,null,y,null)},Ct.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=sr(a,y),y===void 0))return"";if(typeof y=="string")return y;ie("getCategoryForNodeData found a non-string category for "+a+": "+y)},Ct.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var E=sr(a,x);E===void 0&&(E=""),E!==y&&(Mo(a,x,y),Mr(this,"nodeCategory",Eo,x,a,E,y))}else Mo(a,x,y)}},Ct.lm=function(a,y){this.jm(y,this.Ro(a))},Ct.Tl=function(){return!1},Ct.Wj=function(){return!1},Ct.ri=function(){return!1},Ct.xs=function(){return!1},Ct.Xj=function(){return!1};function hy(){return new Ln}function S0(a,y){if(typeof y=="function"){if(y.className)return y.className;if(y.name)return y.name}else if(typeof y=="object"&&y!==null&&y.constructor)return S0(a,y.constructor);return typeof y}function dy(a){return Gl[a]?Gl[a]:be.go!==void 0&&be.go[a]?be.go[a]:null}function sr(a,y){if(!a||!y)return null;try{if(typeof y=="function")var x=y(a);else typeof a.getAttribute=="function"?(x=a.getAttribute(y),x===null&&(x=void 0)):x=a[y]}catch(E){}return x}function Mo(a,y,x){if(a&&y)try{typeof y=="function"?y(a,x):typeof a.setAttribute=="function"?a.setAttribute(y,x):a[y]=x}catch(E){}}fe.Object.defineProperties(Ln.prototype,{name:{get:function(){return this.xa},set:function(a){var y=this.xa;y!==a&&(this.xa=a,this.g("name",y,a))}},dataFormat:{get:function(){return this.Sm},set:function(a){var y=this.Sm;y!==a&&(this.Sm=a,this.g("dataFormat",y,a))}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},modelData:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.g("modelData",y,a),this.La(a))}},undoManager:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&(y!==null&&y.Rx(this),this.o=a,a!==null&&a.Xw(this))}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a}},nodeKeyProperty:{get:function(){return this.Th},set:function(a){var y=this.Th;y!==a&&(a===""&&ie("Model.nodeKeyProperty may not be the empty string"),0E)return;Po(a.Tc,E)}Mr(a,"nodeDataArray",gi,"nodeDataArray",a,y,null,E,null),a.qp(y)}Ct.nA=function(a){if(an(a))for(var y=a.length,x=0;xy&&(y=a.length),Co(a,y,x),Mr(this,"",mn,"",a,null,x,null,y)},Ct.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&ie("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];Po(a,y),Mr(this,"",gi,"",a,x,null,y,null)},Ct.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=sr(a,y),y===void 0))return"";if(typeof y=="string")return y;ie("getCategoryForNodeData found a non-string category for "+a+": "+y)},Ct.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var E=sr(a,x);E===void 0&&(E=""),E!==y&&(Mo(a,x,y),Mr(this,"nodeCategory",Eo,x,a,E,y))}else Mo(a,x,y)}},Ct.lm=function(a,y){this.jm(y,this.Ro(a))},Ct.Tl=function(){return!1},Ct.Wj=function(){return!1},Ct.ri=function(){return!1},Ct.xs=function(){return!1},Ct.Xj=function(){return!1};function hy(){return new Ln}function S0(a,y){if(typeof y=="function"){if(y.className)return y.className;if(y.name)return y.name}else if(typeof y=="object"&&y!==null&&y.constructor)return S0(a,y.constructor);return typeof y}function dy(a){return Hl[a]?Hl[a]:be.go!==void 0&&be.go[a]?be.go[a]:null}function sr(a,y){if(!a||!y)return null;try{if(typeof y=="function")var x=y(a);else typeof a.getAttribute=="function"?(x=a.getAttribute(y),x===null&&(x=void 0)):x=a[y]}catch(E){}return x}function Mo(a,y,x){if(a&&y)try{typeof y=="function"?y(a,x):typeof a.setAttribute=="function"?a.setAttribute(y,x):a[y]=x}catch(E){}}fe.Object.defineProperties(Ln.prototype,{name:{get:function(){return this.xa},set:function(a){var y=this.xa;y!==a&&(this.xa=a,this.g("name",y,a))}},dataFormat:{get:function(){return this.Sm},set:function(a){var y=this.Sm;y!==a&&(this.Sm=a,this.g("dataFormat",y,a))}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},modelData:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.g("modelData",y,a),this.La(a))}},undoManager:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&(y!==null&&y.Rx(this),this.o=a,a!==null&&a.Xw(this))}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a}},nodeKeyProperty:{get:function(){return this.Th},set:function(a){var y=this.Th;y!==a&&(a===""&&ie("Model.nodeKeyProperty may not be the empty string"),0E.indexOf(a.newValue)&&E.splice(x,0,a.newValue));return}}else if(a.change===gi){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,ke(a)&&typeof x=="number"&&(E=this.Ac(a),y?(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),E!==void 0&&this.wb.add(E,a)):(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),E!==void 0&&this.wb.remove(E)));return}if(a.modelChange==="linkLabelKeys"){E=this.Ef(a.object),Array.isArray(E)&&typeof x=="number"&&(y?0>E.indexOf(a.newValue)&&E.splice(x,0,a.newValue):(x=E.indexOf(a.newValue),0<=x&&E.splice(x,1)));return}}Ln.prototype.changeState.call(this,a,y)}},Ct=Ai.prototype,Ct.Vl=function(a){if(a!==void 0){var y=this.Ri;if(y!==null){var x=this.hc(a);x===null&&(x=this.copyNodeData(y),Mo(x,this.nodeKeyProperty,a),this.xf(x))}return a}},Ct.yx=function(a){return Xa(this,a,!0)},Ct.wv=function(a,y){Vg(this,a,y,!0)},Ct.Bx=function(a){return Xa(this,a,!1)},Ct.Bv=function(a,y){Vg(this,a,y,!1)};function Xa(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=sr(y,a),a!==void 0))){if(Ad(a))return a;ie((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Vg(a,y,x,E){if(x===null&&(x=void 0),y!==null){var b=E?a.lf:a.mf;if(b!=="")if(x=a.Vl(x),a.Jc(y)){var z=sr(y,b);z!==x&&(tu(a,z,y),Mo(y,b,x),a.hc(x)===null&&$l(a,x,y),Mr(a,E?"linkFromKey":"linkToKey",Eo,b,y,z,x),typeof b=="string"&&a.La(y,b))}else Mo(y,b,x)}}Ct.zx=function(a){return gm(this,a,!0)},Ct.xv=function(a,y){_g(this,a,y,!0)},Ct.Cx=function(a){return gm(this,a,!1)},Ct.Cv=function(a,y){_g(this,a,y,!1)};function gm(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=sr(y,a),y===void 0?"":y)}function _g(a,y,x,E){if(y!==null){var b=E?a.ej:a.fj;if(b!=="")if(a.Jc(y)){var z=sr(y,b);z===void 0&&(z=""),z!==x&&(Mo(y,b,x),Mr(a,E?"linkFromPortId":"linkToPortId",Eo,b,y,z,x),typeof b=="string"&&a.La(y,b))}else Mo(y,b,x)}}Ct.Ef=function(a){if(a===null)return fm;var y=this.je;return y===""?fm:(a=sr(a,y),a===void 0?fm:a)},Ct.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var E=sr(a,x);if(E===void 0&&(E=fm),E!==y){if(Array.isArray(E))for(var b=E.length,z=0;zb||(E.splice(b,1),this.Jc(a)&&(tu(this,y,a),Mr(this,"linkLabelKeys",gi,x,a,y,null,b,null)))}else E!==void 0&&ie(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Ct.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=sr(a,y),y!==void 0)){if(Ad(y))return y;ie("Key value for link data "+a+" is not a number or a string: "+y)}}},Ct.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var E=sr(a,x);E!==y&&this.jh(y)===null&&(Mo(a,x,y),E!==void 0&&this.wb.remove(E),this.wb.add(y,a),Mr(this,"linkKey",Eo,x,a,E,y),typeof x=="string"&&this.La(a,x))}else Mo(a,x,y)}},Ct.jh=function(a){return a===null&&ie("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&Ad(a)?this.wb.I(a):null},Ct.Bs=function(a){if(a!==null){var y=this.Jh;if(y!==""){var x=this.Ac(a);if(x===void 0||this.wb.contains(x)){var E=this.cl;if(E!==null&&(x=E(this,a),x!=null&&!this.wb.contains(x))){Mo(a,y,x);return}if(typeof x=="string"){for(E=2;this.wb.contains(x+E);)E++;Mo(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;Mo(a,y,x)}}}}},Ct.Jc=function(a){return a===null?!1:this.$f.contains(a)},Ct.fi=function(a){a!==null&&(as(a),this.Jc(a)||kS(this,a,!0))};function kS(a,y,x){if(a.linkKeyProperty!==""){var E=a.Ac(y);if(E!==void 0&&a.wb.I(E)===y)return;a.Bs(y),E=a.Ac(y),E===void 0&&ie("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(E,y)}a.$f.add(y),E=null,x&&(E=a.md.length,a.md.splice(E,0,y)),Mr(a,"linkDataArray",mn,"linkDataArray",a,null,y,null,E),cy(a,y)}Ct.Ey=function(a){if(Array.isArray(a))for(var y=a.length,x=0;xE)return;a.md.splice(E,1)}if(Mr(a,"linkDataArray",gi,"linkDataArray",a,y,null,E,null),x=Xa(a,y,!0),tu(a,x,y),x=Xa(a,y,!1),tu(a,x,y),E=a.Ef(y),Array.isArray(E))for(var b=E.length,z=0;zE.indexOf(a.newValue)&&E.splice(x,0,a.newValue));return}}else if(a.change===gi){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,ke(a)&&typeof x=="number"&&(E=this.Ac(a),y?(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),E!==void 0&&this.wb.add(E,a)):(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),E!==void 0&&this.wb.remove(E)));return}if(a.modelChange==="linkLabelKeys"){E=this.Ef(a.object),Array.isArray(E)&&typeof x=="number"&&(y?0>E.indexOf(a.newValue)&&E.splice(x,0,a.newValue):(x=E.indexOf(a.newValue),0<=x&&E.splice(x,1)));return}}Ln.prototype.changeState.call(this,a,y)}},Ct=Ai.prototype,Ct.Vl=function(a){if(a!==void 0){var y=this.Ri;if(y!==null){var x=this.hc(a);x===null&&(x=this.copyNodeData(y),Mo(x,this.nodeKeyProperty,a),this.xf(x))}return a}},Ct.yx=function(a){return Xa(this,a,!0)},Ct.wv=function(a,y){Vg(this,a,y,!0)},Ct.Bx=function(a){return Xa(this,a,!1)},Ct.Bv=function(a,y){Vg(this,a,y,!1)};function Xa(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=sr(y,a),a!==void 0))){if(Ad(a))return a;ie((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Vg(a,y,x,E){if(x===null&&(x=void 0),y!==null){var b=E?a.lf:a.mf;if(b!=="")if(x=a.Vl(x),a.Jc(y)){var z=sr(y,b);z!==x&&(tu(a,z,y),Mo(y,b,x),a.hc(x)===null&&$l(a,x,y),Mr(a,E?"linkFromKey":"linkToKey",Eo,b,y,z,x),typeof b=="string"&&a.La(y,b))}else Mo(y,b,x)}}Ct.zx=function(a){return gm(this,a,!0)},Ct.xv=function(a,y){_g(this,a,y,!0)},Ct.Cx=function(a){return gm(this,a,!1)},Ct.Cv=function(a,y){_g(this,a,y,!1)};function gm(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=sr(y,a),y===void 0?"":y)}function _g(a,y,x,E){if(y!==null){var b=E?a.ej:a.fj;if(b!=="")if(a.Jc(y)){var z=sr(y,b);z===void 0&&(z=""),z!==x&&(Mo(y,b,x),Mr(a,E?"linkFromPortId":"linkToPortId",Eo,b,y,z,x),typeof b=="string"&&a.La(y,b))}else Mo(y,b,x)}}Ct.Ef=function(a){if(a===null)return fm;var y=this.je;return y===""?fm:(a=sr(a,y),a===void 0?fm:a)},Ct.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var E=sr(a,x);if(E===void 0&&(E=fm),E!==y){if(Array.isArray(E))for(var b=E.length,z=0;zb||(E.splice(b,1),this.Jc(a)&&(tu(this,y,a),Mr(this,"linkLabelKeys",gi,x,a,y,null,b,null)))}else E!==void 0&&ie(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Ct.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=sr(a,y),y!==void 0)){if(Ad(y))return y;ie("Key value for link data "+a+" is not a number or a string: "+y)}}},Ct.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var E=sr(a,x);E!==y&&this.jh(y)===null&&(Mo(a,x,y),E!==void 0&&this.wb.remove(E),this.wb.add(y,a),Mr(this,"linkKey",Eo,x,a,E,y),typeof x=="string"&&this.La(a,x))}else Mo(a,x,y)}},Ct.jh=function(a){return a===null&&ie("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&Ad(a)?this.wb.I(a):null},Ct.Bs=function(a){if(a!==null){var y=this.Jh;if(y!==""){var x=this.Ac(a);if(x===void 0||this.wb.contains(x)){var E=this.cl;if(E!==null&&(x=E(this,a),x!=null&&!this.wb.contains(x))){Mo(a,y,x);return}if(typeof x=="string"){for(E=2;this.wb.contains(x+E);)E++;Mo(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;Mo(a,y,x)}}}}},Ct.Jc=function(a){return a===null?!1:this.$f.contains(a)},Ct.fi=function(a){a!==null&&(as(a),this.Jc(a)||kS(this,a,!0))};function kS(a,y,x){if(a.linkKeyProperty!==""){var E=a.Ac(y);if(E!==void 0&&a.wb.I(E)===y)return;a.Bs(y),E=a.Ac(y),E===void 0&&ie("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(E,y)}a.$f.add(y),E=null,x&&(E=a.md.length,a.md.splice(E,0,y)),Mr(a,"linkDataArray",mn,"linkDataArray",a,null,y,null,E),cy(a,y)}Ct.Ey=function(a){if(Array.isArray(a))for(var y=a.length,x=0;xE)return;a.md.splice(E,1)}if(Mr(a,"linkDataArray",gi,"linkDataArray",a,y,null,E,null),x=Xa(a,y,!0),tu(a,x,y),x=Xa(a,y,!1),tu(a,x,y),E=a.Ef(y),Array.isArray(E))for(var b=E.length,z=0;z=a.count)a.count===1&&(a=a.first(),a.centerX=0,a.centerY=0);else{var y=new Je;y.addAll(a.iterator),a=new Je;var x=new Je,E=this.sort(y),b,z,tt=this.Jp,ot=this.arrangement,rt=this.nodeDiameterFormula,at=this.radius;(!isFinite(at)||0>=at)&&(at=NaN);var ut=this.aspectRatio;(!isFinite(ut)||0>=ut)&&(ut=1);var gt=this.startAngle;isFinite(gt)||(gt=0);var mt=this.sweepAngle;if((!isFinite(mt)||360mt)&&(mt=360),y=this.spacing,isFinite(y)||(y=NaN),ot===Ul&&rt===Kc?ot=Hl:ot===Ul&&rt!==Kc&&(ot=this.arrangement),(this.direction===pc||this.direction===Zg)&&this.sorting!==Qg){for(rt=0;!(rt>=E.length)&&(a.add(E.M(rt)),!(rt+1>=E.length));rt+=2)x.add(E.M(rt+1));this.direction===pc?(this.arrangement===Ul&&a.reverse(),E=new Je,E.addAll(a),E.addAll(x)):(this.arrangement===Ul&&x.reverse(),E=new Je,E.addAll(x),E.addAll(a))}rt=E.length;for(var St=z=b=0;Stmt&&(St===0||St===E.length-1)&&(Et/=2),b+=Et,z++}if(isNaN(at)||ot===Ul){if(isNaN(y)&&(y=6),ot!==Hl&&ot!==Ul){for(z=-1/0,tt=0;ttat?(at=b,z=at*ut):tt=St/(360<=mt?rt:rt-1)}if(this.kw=ot,this.lc=at,this.Zm=ut,this.lw=gt,this.Wp=mt,this.Ti=y,this.me=z,this.Jp=tt,y=E,E=this.kw,ot=this.lc,at=this.lw,ut=this.Wp,gt=this.Ti,mt=this.me,rt=this.Jp,this.direction!==pc&&this.direction!==Zg||E!==Ul)if(this.direction===pc||this.direction===Zg){switch(tt=0,E){case Nd:tt=180*mm(this,ot,mt,at,rt)/Math.PI;break;case Hl:rt=y=0,tt=a.first(),tt!==null&&(y=Dd(tt,Math.PI/2)),tt=x.first(),tt!==null&&(rt=Dd(tt,Math.PI/2)),tt=180*mm(this,ot,mt,at,gt+(y+rt)/2)/Math.PI;break;case Wh:tt=ut/y.length}if(this.direction===pc){switch(E){case Nd:M0(this,a,at,kd);break;case Hl:P0(this,a,at,kd);break;case Wh:w0(this,a,ut/2,at,kd)}switch(E){case Nd:M0(this,x,at+tt,Js);break;case Hl:P0(this,x,at+tt,Js);break;case Wh:w0(this,x,ut/2,at+tt,Js)}}else{switch(E){case Nd:M0(this,x,at,kd);break;case Hl:P0(this,x,at,kd);break;case Wh:w0(this,x,ut/2,at,kd)}switch(E){case Nd:M0(this,a,at+tt,Js);break;case Hl:P0(this,a,at+tt,Js);break;case Wh:w0(this,a,ut/2,at+tt,Js)}}}else switch(E){case Nd:M0(this,y,at,this.direction);break;case Hl:P0(this,y,at,this.direction);break;case Wh:w0(this,y,ut,at,this.direction);break;case Ul:TS(this,y,ut,at,this.direction)}else TS(this,y,ut,at-ut/2,Js)}this.updateParts(),this.network=null,this.isValidLayout=!0};function w0(a,y,x,E,b){var z=a.Wp,tt=a.lc;a=a.me,E=E*Math.PI/180,x=x*Math.PI/180;for(var ot=y.length,rt=0;rtx){for(z=E+(b===Js?z:-z);0>z;)z+=360;z%=360,180=ut.length-1));gt++)bS(a,rt,at,ut,gt,b,z)||jS(a,rt,at,ut,gt,b,z),rt=z.x,at=z.y;if(Rt.free(z),a.mj++,!(23Math.abs(St)?Math.abs(rt-z)<(ut[0].width+ut[ut.length-1].width)/2&&(tt=0):tt=0Math.abs(mt)?0:mt,rt=Math.abs(z)>Math.abs(gt)?0gt:0a.mj?a.lc-tt/(2*Math.PI):5>ut.length&&10=gt.length-1));mt++)bS(a,rt,at,gt,mt,b,ut)||jS(a,rt,at,gt,mt,b,ut),rt=ut.x,at=ut.y;if(Rt.free(ut),a.mj++,!(23a.mj?a.lc-z/(2*Math.PI):a.lc-(0ot){if(z=y-a,z<-ot)return tt.x=z,tt.y=at,!1;ut=!0}}else if(z=y-a,z<-ot){if(z=y+a,z>ot)return tt.x=z,tt.y=at,!1;ut=!0}return at=Math.sqrt(1-Math.min(1,z*z/(ot*ot)))*rt,0>x!==ut&&(at=-at),Math.abs(x-at)>(E[b].height+E[b+1].height)/2?(tt.x=z,tt.y=at,!1):(tt.x=z,tt.y=at,!0)}function jS(a,y,x,E,b,z,tt){var ot=a.lc,rt=a.me,at=0;if(a=(E[b].height+E[b+1].height)/2+a.Ti,E=!1,0<=y!=(z===Js)){if(z=x-a,z<-rt){if(z=x+a,z>rt){tt.x=at,tt.y=z;return}E=!0}}else if(z=x+a,z>rt){if(z=x-a,z<-rt){tt.x=at,tt.y=z;return}E=!0}at=Math.sqrt(1-Math.min(1,z*z/(rt*rt)))*ot,0>y!==E&&(at=-at),tt.x=at,tt.y=z}Go.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},Go.prototype.commitNodes=function(){var a=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,y=a?this.group.location.copy():null,x=this.actualCenter;a?x=new Rt(0,0):(x.x=this.arrangementOrigin.x+this.lc,x.y=this.arrangementOrigin.y+this.me);for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;b.x+=x.x,b.y+=x.y,b.commit()}a&&(this.group.Va(),a=this.group.position.copy(),x=this.group.location.copy(),y=y.re(x.re(a)),this.group.move(y),this.Zv=y.re(a))},Go.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function gy(a,y,x,E,b){var z=a.ty;if(.001>Math.abs(a.Zm-1))return E!==void 0&&b!==void 0?b*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var tt=0,ot=E!==void 0&&b!==void 0?b/(z+1):Math.PI/(2*(z+1)),rt=0,at=0;at<=z;at++){E!==void 0&&b!==void 0?rt=E+at*b/z:rt=at*Math.PI/(2*z);var ut=Math.sin(rt);tt+=Math.sqrt(1-a*a*ut*ut)*ot}return E!==void 0&&b!==void 0?(y>x?y:x)*tt:4*(y>x?y:x)*tt}function pm(a,y,x,E,b){return y/(E!==void 0&&b!==void 0?gy(a,1,x,E,b):gy(a,1,x))}function mm(a,y,x,E,b){if(.001>Math.abs(a.Zm-1))return b/y;var z=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,tt=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(E+=Math.PI/2);for(var ot=0;;ot++){var rt=Math.sin(E+ot*a);if(tt+=(y>x?y:x)*Math.sqrt(1-z*z*rt*rt)*a,tt>=b)return ot*a}}Go.prototype.sort=function(a){switch(this.sorting){case vm:break;case ym:a.reverse();break;case Sm:a.sort(this.comparer);break;case xm:a.sort(this.comparer),a.reverse();break;case Qg:return this.ak(Bx(a));default:ie("Invalid sorting type.")}return a};function Bx(a){for(var y=[],x=0;xb&&(b=ot,z=tt)}else for(tt=0;ttb&&(b=ot,z=tt);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),tt=z.sourceEdges;tt.next();)b=a.indexOf(tt.value.fromVertex),0>b||0<=y[b]&&y[b]++;for(z=z.destinationEdges;z.next();)b=a.indexOf(z.value.toVertex),0>b||0<=y[b]&&y[b]++}return x}Go.prototype.ak=function(a){for(var y=[],x=0;xy[x].indexOf(b)&&y[x].push(b);for(E=E.sourceEdges;E.next();)b=a.indexOf(E.value.fromVertex),b!==x&&0>y[x].indexOf(b)&&y[x].push(b)}for(z=[],x=0;xy[x[wt]].indexOf(x[wt===x.length-1?0:wt+1])&&St.push(wt===x.length-1?0:wt+1);if(St.length===0)for(wt=0;wtx.indexOf(he)||Ktx.indexOf(he)||Kt=Et?Kt+1:Kt)),Tt+=Kt=Et&&Kt++,Wt>=Et&&Wt++,Kt>Wt&&(_t=Wt,Wt=Kt,Kt=_t),Wt-Kt<(x.length+2)/2==(KtSt||St===ut||(wt=St>ut?St-ut:ut-St,gt+=Sttt-wt?1:-1);x.splice(0>gt?ut:ut+1,0,rt),E.splice(ot,1),ot--}else z=!1;if(z)break;x.push(E[0]),E.splice(0,1)}for(y=0;y=a?this.ul=a:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==Ul&&a!==Hl&&a!==Nd&&a!==Wh||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==Js&&a!==kd&&a!==pc&&a!==Zg||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==vm&&a!==ym&&a!==Sm&&!xm&&a!==Qg||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf!==a&&(this.tf=a,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(a){this.Nn===a||a!==wm&&a!==Kc||(this.Nn=a,this.C())}},actualXRadius:{get:function(){return this.lc}},actualYRadius:{get:function(){return this.me}},actualSpacing:{get:function(){return this.Ti}},actualCenter:{get:function(){return this.Zv}}});var Hl=new je(Go,"ConstantSpacing",0),Nd=new je(Go,"ConstantDistance",1),Wh=new je(Go,"ConstantAngle",2),Ul=new je(Go,"Packed",3),Js=new je(Go,"Clockwise",4),kd=new je(Go,"Counterclockwise",5),pc=new je(Go,"BidirectionalLeft",6),Zg=new je(Go,"BidirectionalRight",7),vm=new je(Go,"Forwards",8),ym=new je(Go,"Reverse",9),Sm=new je(Go,"Ascending",10),xm=new je(Go,"Descending",11),Qg=new je(Go,"Optimized",12),wm=new je(Go,"Pythagorean",13),Kc=new je(Go,"Circular",14);Go.className="CircularLayout",Go.ConstantSpacing=Hl,Go.ConstantDistance=Nd,Go.ConstantAngle=Wh,Go.Packed=Ul,Go.Clockwise=Js,Go.Counterclockwise=kd,Go.BidirectionalLeft=pc,Go.BidirectionalRight=Zg,Go.Forwards=vm,Go.Reverse=ym,Go.Ascending=Sm,Go.Descending=xm,Go.Optimized=Qg,Go.Pythagorean=wm,Go.Circular=Kc;function C0(){this.Pl=-1/0,this.tm=this.mk=null}C0.prototype.compare=function(a,y){if(0this.Pl||Math.abs(a)a&&0ot?(b=mt.x+mt.width/2,z=mt.y+mt.height/2,at[0]=new Rt(mt.x+mt.width+E.width,mt.y),at[1]=new Rt(mt.x,mt.y+mt.height+E.height),ot=2):(rt=zS(at,ot,b,z,mt.width,mt.height,E),gt=at[rt],St=new Rt(gt.x+mt.width+E.width,gt.y),mt=new Rt(gt.x,gt.y+mt.height+E.height),rt+1this.network.vertexes.count)return!1;for(var a=0,y=0,x=this.network.vertexes.first().bounds,E=this.network.vertexes.iterator;E.next();){if(E.value.bounds.Yc(x)&&(a++,2a.network.vertexes.count)return!1;for(a.ah=a.network.vertexes.Fa(),a=a.ah,a.sort(function(x,E){return x===null||E===null||x===E?0:E.Vd-x.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1=tt))){for(var at=ot=0,ut=rt.count-tt;utSt&&(St=1),ot=Jt.sqrt((ot+St+at*at*4/(tt*tt))/St),tt=(ot-1)*ut/2,ot=(ot-1)*gt/2,b.bounds=new Me(z-mt.x-tt,rt-mt.y-ot,ut+2*tt,gt+2*ot),b.focus=new Rt(mt.x+tt,mt.y+ot)}}return a.network=E,x}function jx(a,y){for(var x=a.network.vertexes.iterator;x.next();){var E=x.value;if(E.network=y,E.We!==null){var b=E.We.M(E.sv);E.Vd=b.Rs;var z=b.Sv,tt=b.Tv;E.bounds=new Me(E.centerX-z,E.centerY-tt,b.Ss,b.Qs),E.focus=new Rt(z,tt),E.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function Ox(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var E=y.centerX,b=y.centerY,z=y.width,tt=y.height;y.We!==null&&0=gt.Vd?rt++:(ot=!0,at++,tt+=Math.atan2(y.centerY-gt.centerY,y.centerX-gt.centerX))}if(rt!==0){for(0>1)+at)*(ot%2===0?1:-1),rt.centerX=E+ut*Math.cos(gt),rt.centerY=b+ut*Math.sin(gt),ot++}}}}function zS(a,y,x,E,b,z,tt){var ot=9e19,rt=-1,at=0;t:for(;atut.y&&a[mt].x-ut.xut.x&&a[mt].y-ut.yy+z?(x=E+b-tt,a=a-y-z,Jt.sqrt(x*x+a*a)):a+xtt+ot?a>y+z?(x=E-tt-ot,a=a-y-z,Jt.sqrt(x*x+a*a)):a+xy+z?a-(y+z):a+x=y.length)return!1;var x=y[0];x.forceX=0,x.forceY=0;for(var E=x.centerX,b=E,z=x=x.centerY,tt=1;ttz-x)?y.sort(function(Et,Ot){return Et===null||Ot===null||Et===Ot?0:Et.centerX-Ot.centerX}):y.sort(function(Et,Ot){return Et===null||Ot===null||Et===Ot?0:Et.centerY-Ot.centerY}),x=a.Zf;var at=E=ot=0;for(z=0;zx||at-rt>x){if(b)break}else if(ut-St>x||St-ut>x){if(!b)break}else{var wt=RS(tt,mt);1>wt?(E=a.randomNumberGenerator,E===null&&(a.randomNumberGenerator=E=new Mm),wt=E.random(),ot=E.random(),rt>at?(E=Math.abs(mt.bounds.right-tt.bounds.x),E=(1+E)*wt):rtSt?(at=Math.abs(mt.bounds.bottom-tt.bounds.y),at=(1+at)*ot):rtgt?(gt=a.randomNumberGenerator,gt===null&&(a.randomNumberGenerator=gt=new Mm),ot=gt.random(),gt=gt.random(),E=(E>rt?1:-1)*(1+(z.width>x.width?z.width:x.width))*ot,at=(tt>ut?1:-1)*(1+(z.height>x.height?z.height:x.height))*gt):(ot=ot.stiffness*(gt-ot.length),E=(rt-E)/gt*ot,at=(ut-tt)/gt*ot),x.forceX+=E,x.forceY+=at,z.forceX-=E,z.forceY-=at;for(b=E=0;ba.epsilonDistance*a.epsilonDistance}fs.prototype.moveVertex=function(a){var y=a.forceX,x=a.forceY,E=this.moveLimit;return y<-E?y=-E:y>E&&(y=E),x<-E?x=-E:x>E&&(x=E),a.centerX+=y,a.centerY+=x,y*y+x*x},fs.prototype.moveFixedVertex=function(){},fs.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},fs.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=Dr,y.toSpot=Dr)}},fs.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=Me.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,Me.free(x)}x=Me.alloc();for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;(a!==0||y!==0)&&(x.assign(b.bounds),x.x+=a,x.y+=y,b.bounds=x),b.commit()}Me.free(x)},fs.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},fs.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},fs.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},fs.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},fs.prototype.electricalFieldX=function(){return 0},fs.prototype.electricalFieldY=function(){return 0},fs.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},fs.prototype.gravitationalFieldX=function(){return 0},fs.prototype.gravitationalFieldY=function(){return 0},fs.prototype.isFixed=function(a){return a.isFixed},fe.Object.defineProperties(fs.prototype,{currentIteration:{get:function(){return this.An}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},arrangesToOrigin:{get:function(){return this.Bm},set:function(a){this.Bm!==a&&(this.Bm=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},maxIterations:{get:function(){return this.dl},set:function(a){this.dl!==a&&0<=a&&(this.dl=a,this.C())}},epsilonDistance:{get:function(){return this.$m},set:function(a){this.$m!==a&&0Et&&0Et&&0a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]tt)for(var ut=tt+1;utrt;ut--)gt=E[ut],gt.near===at&>.Dj===at.Dj||ot++;var mt;if(0<=x)for(rt=E[tt].sourceEdgesArrayAccess,at=0;atEt||gt===Et&&St>wt)&&ot++,Otgt||Et===gt&&wt>St)&&ot++}}}if(0>=x){for(rt=E[tt].destinationEdgesArrayAccess,at=0;atEt||gt===Et&&ut>Ot)&&ot++,wtgt||Et===gt&&Ot>ut)&&ot++)}for(z[tt*b+tt]=ot,rt=tt+1;rt=x){for(ot=E[tt].destinationEdgesArrayAccess,Wt=E[rt].destinationEdgesArrayAccess,at=0;at=x&&(rt=ot.sourceEdgesArrayAccess);var at=null;0<=x&&(at=ot.destinationEdgesArrayAccess);var ut=0,gt=0,mt=ot.near;if(mt!==null&&mt.layer===ot.layer&&(ut+=mt.column-1,gt++),rt!==null)for(mt=0;mt=x&&(rt=ot.sourceEdgesArrayAccess);var at=null;0<=x&&(at=ot.destinationEdgesArrayAccess);var ut=0,gt=[],mt=ot.near;if(mt!==null&&mt.layer===ot.layer&&(gt[ut]=mt.column-1,ut++),ot=void 0,rt!==null)for(mt=0;mt>1,z[tt]=ut&1?gt[at]:gt[at-1]+gt[at]>>1)}return Td(a,y,E),z}function N0(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var tt=y.destinationEdges;tt.next();){var ot=tt.value,rt=ot.toVertex,at=y.layer-rt.layer;ot=a.linkMinLength(ot),at===ot&&N0(a,rt,x,E,b,z)}if(z)for(tt=y.sourceEdges;tt.next();)ot=tt.value,rt=ot.fromVertex,at=rt.layer-y.layer,ot=a.linkMinLength(ot),at===ot&&N0(a,rt,x,E,b,z)}}function my(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var tt=y.destinationEdges;tt.next();)my(a,tt.value.toVertex,x,E,b,z);if(z)for(y=y.sourceEdges;y.next();)my(a,y.value.fromVertex,x,E,b,z)}}Qi.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case Sy:a=this.network;var y=0,x=a.vertexes.count-1,E=[];E.length=x+1;for(var b=a.vertexes.iterator;b.next();)b.value.valid=!0;for(;Rx(a)!==null;){for(b=YS(a);b!==null;)E[x]=b,x--,b.valid=!1,b=YS(a);for(b=VS(a);b!==null;)E[y]=b,y++,b.valid=!1,b=VS(a);b=null;for(var z=0,tt=this.network.vertexes.iterator;tt.next();){var ot=tt.value;if(ot.valid){for(var rt=0,at=ot.destinationEdges;at.next();)at.value.toVertex.valid&&rt++;at=0;for(var ut=ot.sourceEdges;ut.next();)ut.value.fromVertex.valid&&at++;(b===null||zy.toVertex.index&&(a.gm(y),y.rev=!0);break;case Nm:for(E=this.network.vertexes.iterator;E.next();)a=E.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,E.reset();E.next();)y=E.value,y.sourceEdges.count===0&&vy(this,y);for(E.reset();E.next();)y=E.value,y.Ll===-1&&vy(this,y);for(a.reset();a.next();)E=a.value,E.forest||(y=E.fromVertex,x=y.finish,b=E.toVertex,z=b.finish,b.LlE){if(0>E)for(y.reset();y.next();)y.value.layer-=E;for(E=[],y.reset();y.next();)x=y.value,b=E[x.layer],b===void 0?E[x.layer]=[x]:b.push(x);for(x=y=0;xtt&&N0(a,ot,0,-1,!0,!1)}for(N0(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,E=1/0,ot=0,rt=null,tt=a.network.vertexes.iterator;tt.next();){var at=tt.value;if(at.component===1){var ut=0,gt=!1,mt=at.sourceEdgesArrayAccess;b=mt.length;for(var St=0;Stz)&&!ut&&(ot=tt,z=at)}if(0>E){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer-=b);y.component=0}else ot.component=0}}}function XS(a,y,x){return a.K===90?x&&!y.rev||!x&&y.rev?270:90:a.K===180?x&&!y.rev||!x&&y.rev?0:180:a.K===270?x&&!y.rev||!x&&y.rev?90:270:x&&!y.rev||!x&&y.rev?180:0}Qi.prototype.initializeIndices=function(){switch(this.Qk){default:case My:for(var a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;y.index=this.tc[x],this.tc[x]++}break;case Dm:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&JS(this,x);break;case Py:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&qS(this,x)}};function JS(a,y){var x=y.layer;for(y.index=a.tc[x],a.tc[x]++,y=y.destinationEdgesArrayAccess,x=!0;x;){x=!1;for(var E=0;Ez.portFromColOffset&&(x=!0,y[E]=z,y[E+1]=b)}}for(x=0;xz.portToColOffset&&(E=!0,y[x]=z,y[x+1]=b)}for(x=0;x=tt;E--)z=Cl(this,E,-1)||z;for(b=this.countCrossings(),b>=a?hl(this,y):(a=b,y=da(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Cl(this,E,1)||z;for(b=this.countCrossings(),b>=a?hl(this,y):(a=b,y=da(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Cl(this,E,1)||z;for(b>=a?hl(this,y):(a=b,y=da(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Cl(this,E,-1)||z;for(b>=a?hl(this,y):(a=b,y=da(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Cl(this,E,0)||z;for(b>=a?hl(this,y):(a=b,y=da(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Cl(this,E,0)||z;b>=a?hl(this,y):(a=b,y=da(this))}break;default:case Fm:for(x=this.Ia,tt=0,ot=a+1;(E=this.countCrossings())=tt;E--)z=Cl(this,E,-1)||z;for(b=this.countCrossings(),b>=a?hl(this,y):(a=b,y=da(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Cl(this,E,1)||z;for(b=this.countCrossings(),b>=a?hl(this,y):(a=b,y=da(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Cl(this,E,1)||z;for(b>=a?hl(this,y):(a=b,y=da(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Cl(this,E,-1)||z;for(b>=a?hl(this,y):(a=b,y=da(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Cl(this,E,0)||z;for(b>=a?hl(this,y):(a=b,y=da(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Cl(this,E,0)||z;b>=a?hl(this,y):(a=b,y=da(this))}}hl(this,y)};function Lm(a,y,x){var E=Fd(a,y),b=a.tc[y],z=WS(a,y,x),tt=py(a,y,x);for(x=0;xz+1&&(mt+=4*(Gt-z),St+=4*(Gt-(z+1)))}for(_t=E[z].destinationEdges.iterator,_t.reset();_t.next();)if(Gt=_t.value,Wt=Gt.toVertex,Gt.valid&&Wt.layer===y){for(Gt=0;E[Gt]!==Wt;)Gt++;Gt===z+1&&(St+=1)}for(_t=E[z+1].sourceEdges.iterator,_t.reset();_t.next();)if(Gt=_t.value,Wt=Gt.fromVertex,Gt.valid&&Wt.layer===y){for(Gt=0;E[Gt]!==Wt;)Gt++;Gtz+1&&(mt+=4*(Gt-(z+1)),St+=4*(Gt-z))}for(_t=E[z+1].destinationEdges.iterator,_t.reset();_t.next();)if(Gt=_t.value,Wt=Gt.toVertex,Gt.valid&&Wt.layer===y){for(Gt=0;E[Gt]!==Wt;)Gt++;Gt===z&&(mt+=1)}Gt=Wt=0,_t=tt[E[z].index];var Kt=ot[E[z].index],he=tt[E[z+1].index],$e=ot[E[z+1].index];_t!==-1&&(Wt+=Math.abs(_t-wt),Gt+=Math.abs(_t-Tt)),Kt!==-1&&(Wt+=Math.abs(Kt-wt),Gt+=Math.abs(Kt-Tt)),he!==-1&&(Wt+=Math.abs(he-Et),Gt+=Math.abs(he-Ot)),$e!==-1&&(Wt+=Math.abs($e-Et),Gt+=Math.abs($e-Ot)),(St>1)+8*E;this.Ra*=8}if(this.bg&2)for(x=!0;x;){for(x=!1,y=this.Md+1;y<=this.Ia;y++)x=Xg(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Xg(this,y,-1)||x;x=Xg(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)yy(this,y,1);for(y=this.Md-1;0<=y;y--)yy(this,y,-1);yy(this,this.Md,0)}if(a&&($S(this,-1),$S(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Xg(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Xg(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Xg(this,y,0)||x}}else Wx(this)};function Xg(a,y,x){for(var E=!1;Gx(a,y,x);)E=!0;return E}function Gx(a,y,x){var E,b=Fd(a,y),z=a.tc[y],tt=py(a,y,-1);if(0x)for(E=0;EE-1||ut-b[E-1].column-1>gt+a.nodeMinColumnSpace(b[E-1],!1)?St=ut-1:St=ut,gt=E+1>=z||b[E+1].column-ut-1>mt+a.nodeMinColumnSpace(b[E+1],!0)?ut+1:ut;var wt=mt=0,Et=0;if(0>=x)for(var Ot=b[E].sourceEdges.iterator;Ot.next();){var Tt=Ot.value,Gt=Tt.fromVertex;if(Tt.valid&&Gt.layer!==y){var Wt=fy(Tt),_t=Tt.portFromColOffset;Tt=Tt.portToColOffset,Gt=Gt.column,mt+=(Math.abs(ut+Tt-(Gt+_t))+1)*Wt,wt+=(Math.abs(St+Tt-(Gt+_t))+1)*Wt,Et+=(Math.abs(gt+Tt-(Gt+_t))+1)*Wt}}if(0<=x)for(Ot=b[E].destinationEdges.iterator;Ot.next();)Tt=Ot.value,Gt=Tt.toVertex,Tt.valid&&Gt.layer!==y&&(Wt=fy(Tt),_t=Tt.portFromColOffset,Tt=Tt.portToColOffset,Gt=Gt.column,mt+=(Math.abs(ut+_t-(Gt+Tt))+1)*Wt,wt+=(Math.abs(St+_t-(Gt+Tt))+1)*Wt,Et+=(Math.abs(gt+_t-(Gt+Tt))+1)*Wt);Tt=_t=Wt=0,Ot=tt[b[E].index],Gt=ot[b[E].index],Ot!==-1&&(Wt+=Math.abs(Ot-ut),_t+=Math.abs(Ot-St),Tt+=Math.abs(Ot-gt)),Gt!==-1&&(Wt+=Math.abs(Gt-ut),_t+=Math.abs(Gt-St),Tt+=Math.abs(Gt-gt)),wt=tt[x]?ut=rt:at<=tt[x]&&(ut=at));ut!==ot&&(z=!0,E[x].column=ut)}Td(a,y,E),a.normalize()}function Hx(a,y){for(var x=!0,E=a.network.vertexes.iterator;E.next();){var b=E.value,z=a.nodeMinColumnSpace(b,!0),tt=a.nodeMinColumnSpace(b,!1);if(b.column-z<=y&&b.column+tt>=y){x=!1;break}}if(a=!1,x)for(E.reset();E.next();)x=E.value,x.column>y&&(--x.column,a=!0);return a}function Ux(a,y){var x=y+1,E,b=[],z=[];for(E=0;E<=a.Ia;E++)b[E]=!1,z[E]=!1;for(var tt=a.network.vertexes.iterator;tt.next();){E=tt.value;var ot=E.column-a.nodeMinColumnSpace(E,!0),rt=E.column+a.nodeMinColumnSpace(E,!1);ot<=y&&rt>=y&&(b[E.layer]=!0),ot<=x&&rt>=x&&(z[E.layer]=!0)}for(ot=!0,x=!1,E=0;E<=a.Ia;E++)ot=ot&&!(b[E]&&z[E]);if(ot)for(tt.reset();tt.next();)a=tt.value,a.column>y&&(--a.column,x=!0);return x}function $S(a,y){for(var x=0;x<=a.Ra;x++)for(;Hx(a,x););for(a.normalize(),x=0;xz?hl(a,b):tty)for(x=a.Ra;0<=x;x--)for(b=da(a),z=Cm(a),E=z+1;zz?hl(a,b):ttx)for(E.reset();E.next();)b=E.value,b.column+a.nodeMinColumnSpace(b,!1)>=y&&(b.component=a.le);for(a.le++,E.reset();E.next();)y=E.value,y.component===-1&&(my(a,y,a.le,-1,!0,!0),a.le++);var z;for(y=[],z=0;zx)for(tt=a.Ra;0x)for(E.reset();E.next();)x=E.value,b[x.component]&&(x.column+=1)}function Wx(a){for(var y=vi(),x=a.fl.length,E=0;E<=x;E++)y[E]=[];for(E=a.network.vertexes.iterator;E.next();){var b=E.value;y[x-b.layer][b.index]=b}x=new Ke,Yx(y,x);var z=null,tt=null,ot=null,rt=null,at=(a.ve&1)!==0,ut=(a.ve&2)!==0,gt=(a.ve&4)!==0,mt=(a.ve&8)!==0;for(at&&(a.verticalAlignment(y,x,!0),z=Em(a,y,!0,!1)),y.reverse(),gt&&(a.verticalAlignment(y,x,!1),ot=Em(a,y,!1,!1)),E=Wo(y),b=E.next();!b.done;b=E.next())b.value.reverse();mt&&(a.verticalAlignment(y,x,!1),rt=Em(a,y,!1,!0)),y.reverse(),ut&&(a.verticalAlignment(y,x,!0),tt=Em(a,y,!0,!0)),Ci(y),a.u(z,tt,ot,rt),a.network.vertexes.each(function(St){var wt=vi();at&&wt.push(z.get(St)),ut&&wt.push(tt.get(St)),gt&&wt.push(ot.get(St)),mt&&wt.push(rt.get(St)),wt.sort(function(Ot,Tt){return Ot-Tt});var Et=wt.length;Et=(wt[Math.floor((Et-1)/2)]+wt[Math.ceil((Et-1)/2)])/2,Ci(wt),St.zc=Et})}function Yx(a,y){for(var x=a.length,E=1;Eut)&&y.add(gt);z++}b=ut}}}Qi.prototype.verticalAlignment=function(a,y,x){Vx(a),a=Wo(a);for(var E=a.next();!E.done;E=a.next()){var b=-1;E=Wo(E.value);for(var z=E.next();!z.done;z=E.next()){z=z.value;var tt=x?Ey(z):Qx(z),ot=tt.length;if(0=y[x].length)&&(tt=y[x][0],tt.sd===tt)){tt.sd.shift===1/0&&(tt.sd.shift=0),tt=x,ot=0;do{for(z=y[tt][ot];z.align!==z.root;)z=z.align,tt++,0a&&ie("Could not determine previous vertex in layer"),y[x][a-1]}Qi.prototype.u=function(a){for(var y=[],x=0;xtt;tt++)if(y[tt]){var ot=_x(this,y[tt],E,b,tt);ottt;z={delta:z.delta},tt++)y[tt]&&(z.delta=tt===0||tt===2?E[x]-E[tt]:b[x]-b[tt],z.delta!==0&&y[tt].each(function(rt){return function(at){at.value+=rt.delta}}(z)));Ci(E),Ci(b)};function _x(a,y,x,E,b){if(!y||y.count===0)return x[b]=0,E[b]=0,1/0;var z=1/0,tt=-1/0;return y.each(function(ot){var rt=ot.key;ot=ot.value,rt=a.K===90||a.K===270?rt.width:rt.height,ottt&&(tt=ot+rt)}),x[b]=z,E[b]=tt,tt-z}Qi.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=Am(this,!0),y=Am(this,!1),x=this.network.edges.iterator;x.next();){var E=x.value.link;E!==null&&(E.fromSpot=a,E.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function Am(a,y){return a.K===270?y?ti:Oi:a.K===90?y?Oi:ti:a.K===180?y?yi:Si:y?Si:yi}Qi.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var a=0;a<=this.Ia;a++)this.he[a]=0,this.Ld[a]=0,this.Kd[a]=0,this.Ta[a]=0;for(a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;this.he[x]=Math.max(this.he[x],this.nodeMinLayerSpace(y,!0)),this.Ld[x]=Math.max(this.Ld[x],this.nodeMinLayerSpace(y,!1))}y=0,x=this.ie;for(var E=0;E<=this.Ia;E++){var b=x;0>=this.he[E]+this.Ld[E]&&(b=0),0=gt.bounds.bottom?(gt=gt.bounds.y+gt.bounds.height,y.m(Et++,_t,gt+he),y.m(Et++,_t,gt),y.m(Et++,_t,gt-Wt)):(y.m(Et++,_t,Kt+he),y.m(Et++,_t,Kt),y.m(Et++,_t,Kt-Wt)):this.K===270?Kt<=gt.bounds.y?(gt=gt.bounds.y,y.m(Et++,_t,gt-Wt),y.m(Et++,_t,gt),y.m(Et++,_t,gt+he)):(y.m(Et++,_t,Kt-Wt),y.m(Et++,_t,Kt),y.m(Et++,_t,Kt+he)):this.K===0&&(_t>=gt.bounds.right?(gt=gt.bounds.x+gt.bounds.width,y.m(Et++,gt+he,Kt),y.m(Et++,gt,Kt),y.m(Et++,gt-Wt,Kt)):(y.m(Et++,_t+he,Kt),y.m(Et++,_t,Kt),y.m(Et++,_t-Wt,Kt)));else{y.m(Et++,Tt,Gt);var $e=0;this.K===180||this.K===0?((this.K===180?_t>=gt.bounds.right:_t<=gt.bounds.x)&&($e=(this.K===0?-Wt:he)/2),y.m(Et++,Tt+$e,Kt)):((this.K===270?Kt>=gt.bounds.bottom:Kt<=gt.bounds.y)&&($e=(this.K===90?-Wt:he)/2),y.m(Et++,_t,Gt+$e)),y.m(Et++,_t,Kt)}}else Wt=Math.max(10,this.he[Ot.layer]),he=Math.max(10,this.Ld[Ot.layer]),mt?this.K===180?(y.m(Et++,_t-Wt-wt,Kt),y.m(Et++,Math.min(_t-Wt+wt/2,_t),Kt),y.m(Et++,_t,Kt),y.m(Et++,_t,Kt),y.m(Et++,Math.max(_t+he-wt/2,_t),Kt),y.m(Et++,_t+he+wt,Kt)):this.K===90?(y.m(Et++,_t,Kt+he+wt),y.m(Et++,_t,Math.max(Kt+he-wt/2,Kt)),y.m(Et++,_t,Kt),y.m(Et++,_t,Kt),y.m(Et++,_t,Math.min(Kt-Wt+wt/2,Kt)),y.m(Et++,_t,Kt-Wt-wt)):this.K===270?(y.m(Et++,_t,Kt-Wt-wt),y.m(Et++,_t,Math.min(Kt-Wt+wt/2,Kt)),y.m(Et++,_t,Kt),y.m(Et++,_t,Kt),y.m(Et++,_t,Math.max(Kt+he-wt/2,Kt)),y.m(Et++,_t,Kt+he+wt)):(y.m(Et++,_t+he+wt,Kt),y.m(Et++,Math.max(_t+he-wt/2,_t),Kt),y.m(Et++,_t,Kt),y.m(Et++,_t,Kt),y.m(Et++,Math.min(_t-Wt+wt/2,_t),Kt),y.m(Et++,_t-Wt-wt,Kt)):y.m(Et++,_t,Kt)}gt=Ot}(ot===null||at!==Er||St)&&(Tt=y.i(Et-1).x,Gt=y.i(Et-1).y,_t=y.i(Et).x,Kt=y.i(Et).y,St?(wt=this.Ld[ut.layer],this.K===180||this.K===0?(St=Gt,St>=ut.bounds.y&&St<=ut.bounds.bottom&&(this.K===180?_t>=ut.bounds.x:_t<=ut.bounds.right)&&(gt=ut.centerX+(this.K===180?-wt:wt),St=ut.bounds.x&&St<=ut.bounds.right&&(this.K===270?Kt>=ut.bounds.y:Kt<=ut.bounds.bottom)&&(gt=ut.centerY+(this.K===270?-wt:wt),St=ut.bounds.x?(gt=ut.bounds.x+ut.bounds.width,y.L(Et-2,gt,Gt),y.L(Et-1,gt+he,Gt)):this.K===90&&Kt<=ut.bounds.bottom?(gt=ut.bounds.y,y.L(Et-2,Tt,gt),y.L(Et-1,Tt,gt-Wt)):this.K===270&&Kt>=ut.bounds.y?(gt=ut.bounds.y+ut.bounds.height,y.L(Et-2,Tt,gt),y.L(Et-1,Tt,gt+he)):this.K===0&&_t<=ut.bounds.right&&(gt=ut.bounds.x,y.L(Et-2,gt,Gt),y.L(Et-1,gt-Wt,Gt))):(Wt=Math.max(10,this.he[ut.layer]),he=Math.max(10,this.Ld[ut.layer]),St=0,this.K===180||this.K===0?((this.K===180?_t<=ut.bounds.x:_t>=ut.bounds.right)&&(St=(this.K===0?he:-Wt)/2),y.m(Et++,_t+St,Gt)):((this.K===270?Kt<=ut.bounds.y:Kt>=ut.bounds.bottom)&&(St=(this.K===90?he:-Wt)/2),y.m(Et++,Tt,Kt+St)),y.m(Et++,_t,Kt)))}else{for(;ut!==null&&ut!==gt;){for(Wt=Ot=null,ut=ut.destinationEdges.iterator;ut.next()&&(Tt=ut.value,Tt.link!==x.link||(Ot=Tt.toVertex,Wt=Tt.fromVertex,Wt.node!==null&&(Wt=null),Ot.node!==null)););if(Ot===null)break;Ot!==gt&&(Tt=y.i(Et-1).x,Gt=y.i(Et-1).y,_t=Ot.centerX,Kt=Ot.centerY,St?this.K===180||this.K===0?(Wt!==null?Wt.centerY:Gt)!==Kt&&(Wt=this.Ta[Ot.layer]+this.Rf.x,Et===y.firstPickIndex+1&&(Wt=this.K===0?Math.max(Wt,Tt):Math.min(Wt,Tt)),y.m(Et++,Wt,Gt),y.m(Et++,Wt,Kt)):(Wt!==null?Wt.centerX:Tt)!==_t&&(Wt=this.Ta[Ot.layer]+this.Rf.y,Et===y.firstPickIndex+1&&(Wt=this.K===90?Math.max(Wt,Gt):Math.min(Wt,Gt)),y.m(Et++,Tt,Wt),y.m(Et++,_t,Wt)):(Wt=Math.max(10,this.he[Ot.layer]),he=Math.max(10,this.Ld[Ot.layer]),mt?this.K===180?(y.m(Et++,_t+he+wt,Kt),y.m(Et++,Math.max(_t+he-wt/2,_t),Kt),y.m(Et++,_t,Kt),y.m(Et++,_t,Kt),y.m(Et++,Math.min(_t-Wt+wt/2,_t),Kt),y.m(Et++,_t-Wt-wt,Kt)):this.K===90?(y.m(Et++,_t,Kt-Wt-wt),y.m(Et++,_t,Math.min(Kt-Wt+wt/2,Kt)),y.m(Et++,_t,Kt),y.m(Et++,_t,Kt),y.m(Et++,_t,Math.max(Kt+he-wt/2,Kt)),y.m(Et++,_t,Kt+he+wt)):this.K===270?(y.m(Et++,_t,Kt+he+wt),y.m(Et++,_t,Math.max(Kt+he-wt/2,Kt)),y.m(Et++,_t,Kt),y.m(Et++,_t,Kt),y.m(Et++,_t,Math.min(Kt-Wt+wt/2,Kt)),y.m(Et++,_t,Kt-Wt-wt)):(y.m(Et++,_t-Wt-wt,Kt),y.m(Et++,Math.min(_t-Wt+wt/2,_t),Kt),y.m(Et++,_t,Kt),y.m(Et++,_t,Kt),y.m(Et++,Math.max(_t+he-wt/2,_t),Kt),y.m(Et++,_t+he+wt,Kt)):this.K===180?(y.m(Et++,_t+he,Kt),y.m(Et++,_t-Wt,Kt)):this.K===90?(y.m(Et++,_t,Kt-Wt),y.m(Et++,_t,Kt+he)):this.K===270?(y.m(Et++,_t,Kt+he),y.m(Et++,_t,Kt-Wt)):(y.m(Et++,_t-Wt,Kt),y.m(Et++,_t+he,Kt)))),ut=Ot}St&&(Tt=y.i(Et-1).x,Gt=y.i(Et-1).y,_t=y.i(Et).x,Kt=y.i(Et).y,this.K===180||this.K===0?Gt!==Kt&&(Wt=this.K===0?Math.min(Math.max((_t+Tt)/2,this.Ta[gt.layer]+this.Rf.x),_t):Math.max(Math.min((_t+Tt)/2,this.Ta[gt.layer]+this.Rf.x),_t),y.m(Et++,Wt,Gt),y.m(Et++,Wt,Kt)):Tt!==_t&&(Wt=this.K===90?Math.min(Math.max((Kt+Gt)/2,this.Ta[gt.layer]+this.Rf.y),Kt):Math.max(Math.min((Kt+Gt)/2,this.Ta[gt.layer]+this.Rf.y),Kt),y.m(Et++,Tt,Wt),y.m(Et++,_t,Wt)))}E!==null&&mt&&4<=y.pointsCount&&(tt!==null&&(tt=at===Er?y.getLinkPointFromPoint(b,tt,tt.ga(zi),y.i(3),!0):y.i(0),at===Er&&(at=y.i(2),E=y.i(3),this.direction===90||this.direction===270?(y.L(1,(tt.x+at.x)/2,at.y),y.L(2,E.x,(at.y+E.y)/2)):(y.L(1,at.x,(tt.y+at.y)/2),y.L(2,(at.x+E.x)/2,E.y))),tt.w()||tt.set(b.actualBounds.center),y.L(0,tt.x,tt.y)),ot!==null&&(b=rt===Er?y.getLinkPointFromPoint(z,ot,ot.ga(zi),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),rt===Er&&(ot=y.i(y.pointsCount-3),rt=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(b.x+ot.x)/2,ot.y),y.L(y.pointsCount-2,rt.x,(ot.y+rt.y)/2)):(y.L(y.pointsCount-2,ot.x,(b.y+ot.y)/2),y.L(y.pointsCount-3,(ot.x+rt.x)/2,rt.y))),b.w()||b.set(z.actualBounds.center),y.L(y.pointsCount-1,b.x,b.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},Qi.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new Je,y=this.network.edges.iterator;y.next();){var x=y.value.link;x!==null&&x.isOrthogonal&&!a.contains(x)&&a.add(x)}if(0z.y&&(ut=at.y>z.y?0:tt.xz.x&&(ut=at.x>z.x?0:tt.yy.layer?1:a.rdy.rd?1:a.Icy.Ic?1:0:0},Ct.Ux=function(a,y){return a instanceof Bd&&y instanceof Bd&&a!==y?a.firsty.first||a.jy.j||a.rdy.rd?1:a.Icy.Ic?1:0:0},Ct.Js=function(a,y){return a instanceof Bd&&y instanceof Bd&&a!==y?a.jcy.jc||a.jy.j||a.rdy.rd?1:a.Icy.Ic?1:0:0},Ct.B=function(a,y){return a-=y,-1a},Ct.zi=function(a,y,x,E){var b=a.length,z=E-x;if(!(1>=z))if((0>x||x>=b-1)&&ie("not in range 0 <= from < length: "+x),z===2)E=a[x],b=a[x+1],0=b)a.sort(y);else for(x=a.slice(0,E),x.sort(y),y=0;y=b)for(E=a.slice(x),E.sort(y),y=x;y=a.He.length){for(var E=[],b=0;ba&&(this.bg=a,this.C())}},alignOption:{get:function(){return this.ve},set:function(a){this.ve!==a&&0<=a&&16>a&&(this.ve=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(a){this.Cn!==a&&0<=a&&(this.Cn=a,this.C())}},maxLayer:{get:function(){return this.Ia}},maxIndex:{get:function(){return this.Iq}},maxColumn:{get:function(){return this.Ra}},minIndexLayer:{get:function(){return this.Hn}},maxIndexLayer:{get:function(){return this.Md}}});var Nm=new je(Qi,"CycleDepthFirst",0),Sy=new je(Qi,"CycleGreedy",1),k0=new je(Qi,"CycleFromLayers",2),km=new je(Qi,"LayerOptimalLinkLength",0),xy=new je(Qi,"LayerLongestPathSink",1),wy=new je(Qi,"LayerLongestPathSource",2),Dm=new je(Qi,"InitDepthFirstOut",0),Py=new je(Qi,"InitDepthFirstIn",1),My=new je(Qi,"InitNaive",2),Cy=new je(Qi,"AggressiveNone",0),Fm=new je(Qi,"AggressiveLess",1),Ly=new je(Qi,"AggressiveMore",2),Zx=8;Qi.className="LayeredDigraphLayout",Qi.CycleDepthFirst=Nm,Qi.CycleGreedy=Sy,Qi.CycleFromLayers=k0,Qi.LayerOptimalLinkLength=km,Qi.LayerLongestPathSink=xy,Qi.LayerLongestPathSource=wy,Qi.InitDepthFirstOut=Dm,Qi.InitDepthFirstIn=Py,Qi.InitNaive=My,Qi.AggressiveNone=Cy,Qi.AggressiveLess=Fm,Qi.AggressiveMore=Ly,Qi.PackNone=0,Qi.PackExpand=1,Qi.PackStraighten=2,Qi.PackMedian=4,Qi.PackAll=15,Qi.AlignNone=0,Qi.AlignUpperLeft=1,Qi.AlignUpperRight=2,Qi.AlignLowerLeft=4,Qi.AlignLowerRight=8,Qi.AlignAll=15;function Bd(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}Bd.className="SegInfo";function Jg(a){lo.call(this,a)}pe(Jg,lo),Jg.prototype.createVertex=function(){return new dl(this)},Jg.prototype.createEdge=function(){return new D0(this)},Jg.className="LayeredDigraphNetwork";function dl(a){kr.call(this,a),this.$n=this.bo=this.ao=this.co=null,this.Za=this.Ag=this.Ig=-1,this.u=NaN,this.F=null,this.valid=!1,this.finish=this.Ll=NaN,this.Dj=0,this.dv=this.ev=null}pe(dl,kr);function ix(a,y){return a.index-y.index}function Tm(a,y){if(!a.$n){for(var x=[],E=Wo(a.destinationEdgesArrayAccess),b=E.next();!b.done;b=E.next())b=b.value,b.valid&&x.push(b);a.$n=x}for(a=Wo(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;ie("Unable to find destination edge to given vertex")}function Ey(a){if(!a.co){for(var y=[],x=Wo(a.sourceEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.fromVertex);y.sort(ix),a.co=y}return a.co}function Qx(a){if(!a.ao){for(var y=[],x=Wo(a.destinationEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.toVertex);y.sort(ix),a.ao=y}return a.ao}dl.prototype.Cl=function(a){kr.prototype.Cl.call(this,a),this.bo=this.co=null},dl.prototype.Kl=function(a){kr.prototype.Kl.call(this,a),this.bo=this.co=null},dl.prototype.zl=function(a){kr.prototype.zl.call(this,a),this.$n=this.ao=null},dl.prototype.Jl=function(a){kr.prototype.Jl.call(this,a),this.$n=this.ao=null},fe.Object.defineProperties(dl.prototype,{layer:{get:function(){return this.Ig},set:function(a){this.Ig!==a&&(this.Ig=a)}},column:{get:function(){return this.Ag},set:function(a){this.Ag!==a&&(this.Ag=a)}},index:{get:function(){return this.Za},set:function(a){this.Za!==a&&(this.Za=a)}},component:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},near:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),dl.prototype.deleteDestinationEdge=dl.prototype.Jl,dl.prototype.addDestinationEdge=dl.prototype.zl,dl.prototype.deleteSourceEdge=dl.prototype.Kl,dl.prototype.addSourceEdge=dl.prototype.Cl,dl.className="LayeredDigraphVertex";function D0(a){Ia.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}pe(D0,Ia),fe.Object.defineProperties(D0.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},valid:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},rev:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},forest:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},portFromPos:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},portToPos:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},portFromColOffset:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},portToColOffset:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),D0.className="LayeredDigraphEdge";function pi(a){Ao.call(this),this.Ub=new Ke,this.Wn=jm,this.ud=Yu,this.vo=zm,this.Bq=Oy,this.$v=[],this.td=!0,this.Rb=Rm,this.$d=new tn(10,10).freeze();var y=new tg(this);this.W=new Ll(y),this.Y=new Ll(y),this.ru=[],a&&Object.assign(this,a)}pe(pi,Ao),pi.prototype.cloneProtected=function(a){Ao.prototype.cloneProtected.call(this,a),a.Wn=this.Wn,a.vo=this.vo,a.Bq=this.Bq,a.td=this.td,a.Rb=this.Rb,a.$d.assign(this.$d),a.W.copyInheritedPropertiesFrom(this.W),a.Y.copyInheritedPropertiesFrom(this.Y)},pi.prototype.qb=function(a){a.classType===pi?a.name.indexOf("Alignment")===0?this.alignment=a:a.name.indexOf("Arrangement")===0?this.arrangement=a:a.name.indexOf("Compaction")===0?this.compaction=a:a.name.indexOf("Path")===0?this.path=a:a.name.indexOf("Sorting")===0?this.sorting=a:a.name.indexOf("Style")===0?this.treeStyle=a:ie("Unknown enum value: "+a):Ao.prototype.qb.call(this,a)},pi.prototype.createNetwork=function(){return new tg(this)},pi.prototype.makeNetwork=function(a){function y(E){if(E instanceof en)return!E.isLinkLabel&&E.category!=="Comment";if(E instanceof Ve){var b=E.fromNode;return b===null||b.isLinkLabel||b.category==="Comment"?!1:(E=E.toNode,!(E===null||E.isLinkLabel||E.category==="Comment"))}return!1}var x=this.createNetwork();return a instanceof de?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof qn?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},pi.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==Gm&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof de&&(y=a),this.path===jm&&y!==null?this.ud=y.isTreePathToChildren?Yu:qc:this.ud=this.path===jm?Yu:this.path,0y.level)return!1;a.removeChild(x.parent,x)}return!0}pi.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,E=0,b=0;bb?hx(this,a,tt,_n,Tt,Gt):dx(this,a,tt,_n,Tt,Gt),_n=Gt.x,Tt=Gt.width,Gt=Gt.height;break;case Vh:for(_t=0;_tgt&&(SnUr&&(Jc(a,-Ur,0,Xn,bi-1),bm(_t,-Ur,0),bm(Kt,-Ur,0),Ur=0)}no.S.h(Ur,hn),Tt=Math.max(Tt,he),Gt=Math.max(Gt,Wt+(Ye===0?0:wt)+Or.height),Sn=he}else 0gt&&(hnUr&&(Jc(a,0,-Ur,Xn,bi-1),bm(_t,0,-Ur),bm(Kt,0,-Ur),Ur=0)),no.S.h(Sn,Ur),Gt=Math.max(Gt,$e),Tt=Math.max(Tt,Wt+(Ye===0?0:wt)+Or.width),hn=$e;Fe++}switch(0at&&(at=0),135Et&&(Et=0),rt===gh&&(ot+=mt/2+a.focus.y),tt+=E+x):y?(a.comments===null?E>Tt&&(Tt=Fy(rt,E-Tt,0),tt=Tt.x,ot=Tt.y,Tt=E,at=0):Tt=ky(a,Tt,at),0>at&&(tt-=at,at=0),135Gt&&(Gt=Fy(rt,0,Ot-Gt),tt=Gt.x,ot=Gt.y,Gt=Ot,Et=0):Gt=Dy(a,Gt,Et),0>Et&&(ot-=Et,Et=0),tt+=E+x),0b[0].x?b[2].assign(b[1]):b[1].assign(b[2])),b[3].yb[0].x?b[3].assign(b[2]):b[2].assign(b[3])),Ye[0].h(at+E,0),Ye[1].h(Ye[0].x,Ot),Ye[2].yb[0].y?b[2].assign(b[1]):b[1].assign(b[2])),b[3].xb[0].y?b[3].assign(b[2]):b[2].assign(b[3])),Ye[0].h(0,Et+Ot),Ye[1].h(E,Ye[0].y),Ye[2].xE?hx(a,y,b,Fe,Wt,_t):dx(a,y,b,Fe,Wt,_t),Fe=_t.x,Wt=_t.width,_t=_t.height;break;case Vh:for(mt=0;mtmt&&(hemt&&($egt&&(gt=0),135Tt&&(Tt=0)),y.la.h(gt,Tt),y.Da.h(Wt,_t)}}pi.prototype.customAlignment=function(a,y,x,E,b){return[y,x,E,b]};function hx(a,y,x,E,b,z){var tt=x.length;if(tt===0)return new Me(E,0,b,z);if(tt===1)return y=x[0],b=y.Da.width,z=y.Da.height,new Me(E,0,b,z);for(var ot=y.nodeSpacing,rt=y.rowSpacing,at=Wl(y)===90,ut=0,gt=0,mt=0,St=0;Stat&&(b-=at),z=Math.max(z,Math.max(St,mt)+a+tt.height),0>x.S.x&&(E=Bm(y,x.S.x,!1,E,ot))):(x.S.h(b+a,E+ot/2-x.focus.y-x.la.y),b=Math.max(b,Math.max(wt,gt)+a+tt.width),mt=E+ot/2-x.focus.y-x.la.y,z=Math.max(z,mt+tt.height),0>mt&&(z-=mt),0>x.S.y&&(E=Bm(y,x.S.y,!0,E,ot)))),new Me(E,0,b,z)}function dx(a,y,x,E,b,z){var tt=x.length;if(tt===0)return new Me(E,0,b,z);if(tt===1)return x=x[0],b=x.Da.width,z=x.Da.height,new Me(E,0,b,z);for(var ot=y.nodeSpacing,rt=y.rowSpacing,at=Wl(y)===270,ut=0,gt=0,mt=0,St=0;Stgt&&(b-=gt),z=Math.max(z,Math.abs(Math.min(St,mt))+a+ut.height),0>rt.S.x&&(E=Bm(y,rt.S.x,!1,E,ot))):(rt.S.h(-b-ut.width-a,E+ot/2-rt.focus.y-rt.la.y),b=Math.max(b,Math.abs(Math.min(wt,gt))+a+ut.width),mt=E+ot/2-rt.focus.y-rt.la.y,z=Math.max(z,mt+ut.height),0>mt&&(z-=mt),0>rt.S.y&&(E=Bm(y,rt.S.y,!0,E,ot)))),y=0;yy&&(y=x+a.width),0>x&&(y-=x),y;case Vu:return a.width>y?a.width:y;case _u:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case Yh:case Zu:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case Vh:return a.width-a.focus.x+a.nodeSpacing/2+y;case gh:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function Dy(a,y,x){switch(a.alignment){case $c:case $g:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Vu:return a.height>y?a.height:y;case _u:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case Yh:case Zu:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case Vh:return a.height-a.focus.y+a.nodeSpacing/2+y;case gh:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Fy(a,y,x){switch(a){case $g:y/=2,x/=2;break;case $c:y/=2,x/=2;break;case Vu:x=y=0;break;case _u:break;default:ie("Unhandled alignment value "+a.toString())}return new Rt(y,x)}function mc(a,y,x,E,b,z){y=Fy(y,x,E),Jc(a,y.x,y.y,b,z)}function Jc(a,y,x,E,b){if(y!==0||x!==0)for(a=a.children;E<=b;E++){var z=a[E].S;z.x+=y,z.y+=x}}function Im(a,y,x,E){var b=y.parent;switch(a.ud){case Yu:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===b&&y.relativePoint.h(x,E);break;case qc:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===b&&y.relativePoint.h(x,E);break;default:ie("Unhandled path value "+a.ud.toString())}}function bm(a,y,x){for(var E=0;Egt.length||St===null||2>St.length))for(b=x=0;xat&&z.yz.y&&aty.length||x===null||2>x.length)E=null;else{for(ut=wa(a,y.length+x.length),E=z=rt=0;zrt;)at=x[z++],ut[E++].h(at.x+b,at.y);for(x=wa(a,E),rt=0;rtgt.length||z===null||2>z.length)b=null;else{for(ut=wa(a,gt.length+z.length),b=at=x=0;xz;)rt=gt[x++],ut[b++].h(rt.x,rt.y);for(z=wa(a,b),x=0;xgt.length||St===null||2>St.length))for(b=x=0;xrt&&z.xz.x&&rty.length||x===null||2>x.length)E=null;else{for(ut=wa(a,y.length+x.length),E=z=rt=0;zrt;)at=x[z++],ut[E++].h(at.x,at.y+b);for(x=wa(a,E),rt=0;rtgt.length||z===null||2>z.length)b=null;else{for(ut=wa(a,gt.length+z.length),b=at=x=0;xz;)rt=gt[x++],ut[b++].h(rt.x,rt.y);for(z=wa(a,b),x=0;x=a?0:135>=a?90:225>=a?180:315>=a?270:0}pi.prototype.computeLayerSpacing=function(a){var y=Wl(a);y=y===90||y===270;var x=a.layerSpacing;if(0=a&&(this.W.nodeIndentPastParent=a,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(a){this.W.nodeSpacing!==a&&(this.W.nodeSpacing=a,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(a){this.W.layerSpacing!==a&&(this.W.layerSpacing=a,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(a){this.W.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.W.layerSpacingParentOverlap=a,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(a){this.W.compaction===a||a!==Om&&a!==b0||(this.W.compaction=a,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(a){this.W.breadthLimit!==a&&0<=a&&(this.W.breadthLimit=a,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(a){this.W.rowSpacing!==a&&(this.W.rowSpacing=a,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(a){this.W.rowIndent!==a&&0<=a&&(this.W.rowIndent=a,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(a){this.W.commentSpacing!==a&&(this.W.commentSpacing=a,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(a){this.W.commentMargin!==a&&(this.W.commentMargin=a,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(a){this.W.setsPortSpot!==a&&(this.W.setsPortSpot=a,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(a){this.W.portSpot.D(a)||(this.W.portSpot=a,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(a){this.W.setsChildPortSpot!==a&&(this.W.setsChildPortSpot=a,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(a){this.W.childPortSpot.D(a)||(this.W.childPortSpot=a,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(a){this.Y.sorting===a||a!==qg&&a!==T0&&a!==B0&&!I0||(this.Y.sorting=a,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(a){this.Y.comparer!==a&&(this.Y.comparer=a,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(a){this.Y.angle===a||a!==0&&a!==90&&a!==180&&a!==270||(this.Y.angle=a,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(a){this.Y.alignment!==a&&(this.Y.alignment=a,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(a){this.Y.nodeIndent!==a&&0<=a&&(this.Y.nodeIndent=a,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(a){this.Y.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.Y.nodeIndentPastParent=a,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(a){this.Y.nodeSpacing!==a&&(this.Y.nodeSpacing=a,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(a){this.Y.layerSpacing!==a&&(this.Y.layerSpacing=a,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(a){this.Y.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.Y.layerSpacingParentOverlap=a,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(a){this.Y.compaction===a||a!==Om&&a!==b0||(this.Y.compaction=a,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(a){this.Y.breadthLimit!==a&&0<=a&&(this.Y.breadthLimit=a,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(a){this.Y.rowSpacing!==a&&(this.Y.rowSpacing=a,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(a){this.Y.rowIndent!==a&&0<=a&&(this.Y.rowIndent=a,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(a){this.Y.commentSpacing!==a&&(this.Y.commentSpacing=a,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(a){this.Y.commentMargin!==a&&(this.Y.commentMargin=a,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(a){this.Y.setsPortSpot!==a&&(this.Y.setsPortSpot=a,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(a){this.Y.portSpot.D(a)||(this.Y.portSpot=a,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(a){this.Y.setsChildPortSpot!==a&&(this.Y.setsChildPortSpot=a,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(a){this.Y.childPortSpot.D(a)||(this.Y.childPortSpot=a,this.C())}}});var jm=new je(pi,"PathDefault",-1),Yu=new je(pi,"PathDestination",0),qc=new je(pi,"PathSource",1),qg=new je(pi,"SortingForwards",10),T0=new je(pi,"SortingReverse",11),B0=new je(pi,"SortingAscending",12),I0=new je(pi,"SortingDescending",13),$g=new je(pi,"AlignmentCenterSubtrees",20),$c=new je(pi,"AlignmentCenterChildren",21),Vu=new je(pi,"AlignmentStart",22),_u=new je(pi,"AlignmentEnd",23),Yh=new je(pi,"AlignmentBus",24),Zu=new je(pi,"AlignmentBusBranching",25),Vh=new je(pi,"AlignmentTopLeftBus",26),gh=new je(pi,"AlignmentBottomRightBus",27),Om=new je(pi,"CompactionNone",30),b0=new je(pi,"CompactionBlock",31),zm=new je(pi,"StyleLayered",40),By=new je(pi,"StyleLastParents",41),Iy=new je(pi,"StyleAlternating",42),by=new je(pi,"StyleRootOnly",43),Rm=new je(pi,"ArrangementVertical",50),jy=new je(pi,"ArrangementHorizontal",51),Gm=new je(pi,"ArrangementFixedRoots",52),Oy=new je(pi,"LayerIndividual",60),zy=new je(pi,"LayerSiblings",61),Hm=new je(pi,"LayerUniform",62);pi.className="TreeLayout",pi.PathDefault=jm,pi.PathDestination=Yu,pi.PathSource=qc,pi.SortingForwards=qg,pi.SortingReverse=T0,pi.SortingAscending=B0,pi.SortingDescending=I0,pi.AlignmentCenterSubtrees=$g,pi.AlignmentCenterChildren=$c,pi.AlignmentStart=Vu,pi.AlignmentEnd=_u,pi.AlignmentBus=Yh,pi.AlignmentBusBranching=Zu,pi.AlignmentTopLeftBus=Vh,pi.AlignmentBottomRightBus=gh,pi.CompactionNone=Om,pi.CompactionBlock=b0,pi.StyleLayered=zm,pi.StyleLastParents=By,pi.StyleAlternating=Iy,pi.StyleRootOnly=by,pi.ArrangementVertical=Rm,pi.ArrangementHorizontal=jy,pi.ArrangementFixedRoots=Gm,pi.LayerIndividual=Oy,pi.LayerSiblings=zy,pi.LayerUniform=Hm;function tg(a){lo.call(this,a)}pe(tg,lo),tg.prototype.createVertex=function(){return new Ll(this)},tg.prototype.createEdge=function(){return new tf(this)},tg.className="TreeNetwork";function Ll(a){kr.call(this,a),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new Rt(0,0),this.Da=new tn(0,0),this.la=new Rt(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=qg,this.hd=oy,this.Kb=0,this.Jb=$c,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=b0,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=Dr,this.wr=!0,this.Dp=Dr}pe(Ll,kr),Ll.prototype.copyInheritedPropertiesFrom=function(a){a!==null&&(this.nd=a.sorting,this.hd=a.comparer,this.Kb=a.angle,this.Jb=a.alignment,this.Uq=a.nodeIndent,this.Vq=a.nodeIndentPastParent,this.Wq=a.nodeSpacing,this.ie=a.layerSpacing,this.Aq=a.layerSpacingParentOverlap,this.Hp=a.compaction,this.Ap=a.breadthLimit,this.nr=a.rowSpacing,this.mr=a.rowIndent,this.Gp=a.commentSpacing,this.Fp=a.commentMargin,this.xr=a.setsPortSpot,this.dr=a.portSpot,this.wr=a.setsChildPortSpot,this.Dp=a.childPortSpot)},fe.Object.defineProperties(Ll.prototype,{initialized:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},parent:{get:function(){return this.hb},set:function(a){this.hb!==a&&(this.hb=a)}},children:{get:function(){return this.u},set:function(a){if(this.u!==a){if(a!==null)for(var y=a.length,x=0;xSt.y+x.rowIndent&&(z=Math.min(z,Math.max(gt.y,z-y.computeNodeIndent(x))))):x.alignment===Vu?(z=E.top+b.y,b.y===0&>.ySt.x+x.rowIndent&&(z=Math.min(z,Math.max(gt.x,z-y.computeNodeIndent(x))))):x.alignment===Vu?(z=E.left+b.x,b.x===0&>.xSt.y+x.rowIndent&&(z=Math.min(z,Math.max(gt.y,z-y.computeNodeIndent(x))))):x.alignment===Vu?(z=E.top+b.y,b.y===0&>.ySt.x+x.rowIndent&&(z=Math.min(z,Math.max(gt.x,z-y.computeNodeIndent(x))))):x.alignment===Vu?(z=E.left+b.x,b.x===0&>.x=a.count)a.count===1&&(a=a.first(),a.centerX=0,a.centerY=0);else{var y=new Je;y.addAll(a.iterator),a=new Je;var x=new Je,E=this.sort(y),b,z,tt=this.Jp,ot=this.arrangement,rt=this.nodeDiameterFormula,at=this.radius;(!isFinite(at)||0>=at)&&(at=NaN);var ut=this.aspectRatio;(!isFinite(ut)||0>=ut)&&(ut=1);var gt=this.startAngle;isFinite(gt)||(gt=0);var mt=this.sweepAngle;if((!isFinite(mt)||360mt)&&(mt=360),y=this.spacing,isFinite(y)||(y=NaN),ot===Wl&&rt===Kc?ot=Ul:ot===Wl&&rt!==Kc&&(ot=this.arrangement),(this.direction===pc||this.direction===Zg)&&this.sorting!==Qg){for(rt=0;!(rt>=E.length)&&(a.add(E.M(rt)),!(rt+1>=E.length));rt+=2)x.add(E.M(rt+1));this.direction===pc?(this.arrangement===Wl&&a.reverse(),E=new Je,E.addAll(a),E.addAll(x)):(this.arrangement===Wl&&x.reverse(),E=new Je,E.addAll(x),E.addAll(a))}rt=E.length;for(var St=z=b=0;Stmt&&(St===0||St===E.length-1)&&(Et/=2),b+=Et,z++}if(isNaN(at)||ot===Wl){if(isNaN(y)&&(y=6),ot!==Ul&&ot!==Wl){for(z=-1/0,tt=0;ttat?(at=b,z=at*ut):tt=St/(360<=mt?rt:rt-1)}if(this.kw=ot,this.lc=at,this.Zm=ut,this.lw=gt,this.Wp=mt,this.Ti=y,this.me=z,this.Jp=tt,y=E,E=this.kw,ot=this.lc,at=this.lw,ut=this.Wp,gt=this.Ti,mt=this.me,rt=this.Jp,this.direction!==pc&&this.direction!==Zg||E!==Wl)if(this.direction===pc||this.direction===Zg){switch(tt=0,E){case Nd:tt=180*mm(this,ot,mt,at,rt)/Math.PI;break;case Ul:rt=y=0,tt=a.first(),tt!==null&&(y=Dd(tt,Math.PI/2)),tt=x.first(),tt!==null&&(rt=Dd(tt,Math.PI/2)),tt=180*mm(this,ot,mt,at,gt+(y+rt)/2)/Math.PI;break;case Wh:tt=ut/y.length}if(this.direction===pc){switch(E){case Nd:M0(this,a,at,kd);break;case Ul:P0(this,a,at,kd);break;case Wh:w0(this,a,ut/2,at,kd)}switch(E){case Nd:M0(this,x,at+tt,Js);break;case Ul:P0(this,x,at+tt,Js);break;case Wh:w0(this,x,ut/2,at+tt,Js)}}else{switch(E){case Nd:M0(this,x,at,kd);break;case Ul:P0(this,x,at,kd);break;case Wh:w0(this,x,ut/2,at,kd)}switch(E){case Nd:M0(this,a,at+tt,Js);break;case Ul:P0(this,a,at+tt,Js);break;case Wh:w0(this,a,ut/2,at+tt,Js)}}}else switch(E){case Nd:M0(this,y,at,this.direction);break;case Ul:P0(this,y,at,this.direction);break;case Wh:w0(this,y,ut,at,this.direction);break;case Wl:TS(this,y,ut,at,this.direction)}else TS(this,y,ut,at-ut/2,Js)}this.updateParts(),this.network=null,this.isValidLayout=!0};function w0(a,y,x,E,b){var z=a.Wp,tt=a.lc;a=a.me,E=E*Math.PI/180,x=x*Math.PI/180;for(var ot=y.length,rt=0;rtx){for(z=E+(b===Js?z:-z);0>z;)z+=360;z%=360,180=ut.length-1));gt++)bS(a,rt,at,ut,gt,b,z)||jS(a,rt,at,ut,gt,b,z),rt=z.x,at=z.y;if(Rt.free(z),a.mj++,!(23Math.abs(St)?Math.abs(rt-z)<(ut[0].width+ut[ut.length-1].width)/2&&(tt=0):tt=0Math.abs(mt)?0:mt,rt=Math.abs(z)>Math.abs(gt)?0gt:0a.mj?a.lc-tt/(2*Math.PI):5>ut.length&&10=gt.length-1));mt++)bS(a,rt,at,gt,mt,b,ut)||jS(a,rt,at,gt,mt,b,ut),rt=ut.x,at=ut.y;if(Rt.free(ut),a.mj++,!(23a.mj?a.lc-z/(2*Math.PI):a.lc-(0ot){if(z=y-a,z<-ot)return tt.x=z,tt.y=at,!1;ut=!0}}else if(z=y-a,z<-ot){if(z=y+a,z>ot)return tt.x=z,tt.y=at,!1;ut=!0}return at=Math.sqrt(1-Math.min(1,z*z/(ot*ot)))*rt,0>x!==ut&&(at=-at),Math.abs(x-at)>(E[b].height+E[b+1].height)/2?(tt.x=z,tt.y=at,!1):(tt.x=z,tt.y=at,!0)}function jS(a,y,x,E,b,z,tt){var ot=a.lc,rt=a.me,at=0;if(a=(E[b].height+E[b+1].height)/2+a.Ti,E=!1,0<=y!=(z===Js)){if(z=x-a,z<-rt){if(z=x+a,z>rt){tt.x=at,tt.y=z;return}E=!0}}else if(z=x+a,z>rt){if(z=x-a,z<-rt){tt.x=at,tt.y=z;return}E=!0}at=Math.sqrt(1-Math.min(1,z*z/(rt*rt)))*ot,0>y!==E&&(at=-at),tt.x=at,tt.y=z}Go.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},Go.prototype.commitNodes=function(){var a=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,y=a?this.group.location.copy():null,x=this.actualCenter;a?x=new Rt(0,0):(x.x=this.arrangementOrigin.x+this.lc,x.y=this.arrangementOrigin.y+this.me);for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;b.x+=x.x,b.y+=x.y,b.commit()}a&&(this.group.Va(),a=this.group.position.copy(),x=this.group.location.copy(),y=y.re(x.re(a)),this.group.move(y),this.Zv=y.re(a))},Go.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function gy(a,y,x,E,b){var z=a.ty;if(.001>Math.abs(a.Zm-1))return E!==void 0&&b!==void 0?b*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var tt=0,ot=E!==void 0&&b!==void 0?b/(z+1):Math.PI/(2*(z+1)),rt=0,at=0;at<=z;at++){E!==void 0&&b!==void 0?rt=E+at*b/z:rt=at*Math.PI/(2*z);var ut=Math.sin(rt);tt+=Math.sqrt(1-a*a*ut*ut)*ot}return E!==void 0&&b!==void 0?(y>x?y:x)*tt:4*(y>x?y:x)*tt}function pm(a,y,x,E,b){return y/(E!==void 0&&b!==void 0?gy(a,1,x,E,b):gy(a,1,x))}function mm(a,y,x,E,b){if(.001>Math.abs(a.Zm-1))return b/y;var z=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,tt=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(E+=Math.PI/2);for(var ot=0;;ot++){var rt=Math.sin(E+ot*a);if(tt+=(y>x?y:x)*Math.sqrt(1-z*z*rt*rt)*a,tt>=b)return ot*a}}Go.prototype.sort=function(a){switch(this.sorting){case vm:break;case ym:a.reverse();break;case Sm:a.sort(this.comparer);break;case xm:a.sort(this.comparer),a.reverse();break;case Qg:return this.ak(Bx(a));default:ie("Invalid sorting type.")}return a};function Bx(a){for(var y=[],x=0;xb&&(b=ot,z=tt)}else for(tt=0;ttb&&(b=ot,z=tt);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),tt=z.sourceEdges;tt.next();)b=a.indexOf(tt.value.fromVertex),0>b||0<=y[b]&&y[b]++;for(z=z.destinationEdges;z.next();)b=a.indexOf(z.value.toVertex),0>b||0<=y[b]&&y[b]++}return x}Go.prototype.ak=function(a){for(var y=[],x=0;xy[x].indexOf(b)&&y[x].push(b);for(E=E.sourceEdges;E.next();)b=a.indexOf(E.value.fromVertex),b!==x&&0>y[x].indexOf(b)&&y[x].push(b)}for(z=[],x=0;xy[x[wt]].indexOf(x[wt===x.length-1?0:wt+1])&&St.push(wt===x.length-1?0:wt+1);if(St.length===0)for(wt=0;wtx.indexOf(he)||Ktx.indexOf(he)||Kt=Et?Kt+1:Kt)),Tt+=Kt=Et&&Kt++,Wt>=Et&&Wt++,Kt>Wt&&(_t=Wt,Wt=Kt,Kt=_t),Wt-Kt<(x.length+2)/2==(KtSt||St===ut||(wt=St>ut?St-ut:ut-St,gt+=Sttt-wt?1:-1);x.splice(0>gt?ut:ut+1,0,rt),E.splice(ot,1),ot--}else z=!1;if(z)break;x.push(E[0]),E.splice(0,1)}for(y=0;y=a?this.ul=a:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==Wl&&a!==Ul&&a!==Nd&&a!==Wh||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==Js&&a!==kd&&a!==pc&&a!==Zg||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==vm&&a!==ym&&a!==Sm&&!xm&&a!==Qg||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf!==a&&(this.tf=a,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(a){this.Nn===a||a!==wm&&a!==Kc||(this.Nn=a,this.C())}},actualXRadius:{get:function(){return this.lc}},actualYRadius:{get:function(){return this.me}},actualSpacing:{get:function(){return this.Ti}},actualCenter:{get:function(){return this.Zv}}});var Ul=new je(Go,"ConstantSpacing",0),Nd=new je(Go,"ConstantDistance",1),Wh=new je(Go,"ConstantAngle",2),Wl=new je(Go,"Packed",3),Js=new je(Go,"Clockwise",4),kd=new je(Go,"Counterclockwise",5),pc=new je(Go,"BidirectionalLeft",6),Zg=new je(Go,"BidirectionalRight",7),vm=new je(Go,"Forwards",8),ym=new je(Go,"Reverse",9),Sm=new je(Go,"Ascending",10),xm=new je(Go,"Descending",11),Qg=new je(Go,"Optimized",12),wm=new je(Go,"Pythagorean",13),Kc=new je(Go,"Circular",14);Go.className="CircularLayout",Go.ConstantSpacing=Ul,Go.ConstantDistance=Nd,Go.ConstantAngle=Wh,Go.Packed=Wl,Go.Clockwise=Js,Go.Counterclockwise=kd,Go.BidirectionalLeft=pc,Go.BidirectionalRight=Zg,Go.Forwards=vm,Go.Reverse=ym,Go.Ascending=Sm,Go.Descending=xm,Go.Optimized=Qg,Go.Pythagorean=wm,Go.Circular=Kc;function C0(){this.Pl=-1/0,this.tm=this.mk=null}C0.prototype.compare=function(a,y){if(0this.Pl||Math.abs(a)a&&0ot?(b=mt.x+mt.width/2,z=mt.y+mt.height/2,at[0]=new Rt(mt.x+mt.width+E.width,mt.y),at[1]=new Rt(mt.x,mt.y+mt.height+E.height),ot=2):(rt=zS(at,ot,b,z,mt.width,mt.height,E),gt=at[rt],St=new Rt(gt.x+mt.width+E.width,gt.y),mt=new Rt(gt.x,gt.y+mt.height+E.height),rt+1this.network.vertexes.count)return!1;for(var a=0,y=0,x=this.network.vertexes.first().bounds,E=this.network.vertexes.iterator;E.next();){if(E.value.bounds.Yc(x)&&(a++,2a.network.vertexes.count)return!1;for(a.ah=a.network.vertexes.Fa(),a=a.ah,a.sort(function(x,E){return x===null||E===null||x===E?0:E.Vd-x.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1=tt))){for(var at=ot=0,ut=rt.count-tt;utSt&&(St=1),ot=Jt.sqrt((ot+St+at*at*4/(tt*tt))/St),tt=(ot-1)*ut/2,ot=(ot-1)*gt/2,b.bounds=new Me(z-mt.x-tt,rt-mt.y-ot,ut+2*tt,gt+2*ot),b.focus=new Rt(mt.x+tt,mt.y+ot)}}return a.network=E,x}function jx(a,y){for(var x=a.network.vertexes.iterator;x.next();){var E=x.value;if(E.network=y,E.We!==null){var b=E.We.M(E.sv);E.Vd=b.Rs;var z=b.Sv,tt=b.Tv;E.bounds=new Me(E.centerX-z,E.centerY-tt,b.Ss,b.Qs),E.focus=new Rt(z,tt),E.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function Ox(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var E=y.centerX,b=y.centerY,z=y.width,tt=y.height;y.We!==null&&0=gt.Vd?rt++:(ot=!0,at++,tt+=Math.atan2(y.centerY-gt.centerY,y.centerX-gt.centerX))}if(rt!==0){for(0>1)+at)*(ot%2===0?1:-1),rt.centerX=E+ut*Math.cos(gt),rt.centerY=b+ut*Math.sin(gt),ot++}}}}function zS(a,y,x,E,b,z,tt){var ot=9e19,rt=-1,at=0;t:for(;atut.y&&a[mt].x-ut.xut.x&&a[mt].y-ut.yy+z?(x=E+b-tt,a=a-y-z,Jt.sqrt(x*x+a*a)):a+xtt+ot?a>y+z?(x=E-tt-ot,a=a-y-z,Jt.sqrt(x*x+a*a)):a+xy+z?a-(y+z):a+x=y.length)return!1;var x=y[0];x.forceX=0,x.forceY=0;for(var E=x.centerX,b=E,z=x=x.centerY,tt=1;ttz-x)?y.sort(function(Et,Ot){return Et===null||Ot===null||Et===Ot?0:Et.centerX-Ot.centerX}):y.sort(function(Et,Ot){return Et===null||Ot===null||Et===Ot?0:Et.centerY-Ot.centerY}),x=a.Zf;var at=E=ot=0;for(z=0;zx||at-rt>x){if(b)break}else if(ut-St>x||St-ut>x){if(!b)break}else{var wt=RS(tt,mt);1>wt?(E=a.randomNumberGenerator,E===null&&(a.randomNumberGenerator=E=new Mm),wt=E.random(),ot=E.random(),rt>at?(E=Math.abs(mt.bounds.right-tt.bounds.x),E=(1+E)*wt):rtSt?(at=Math.abs(mt.bounds.bottom-tt.bounds.y),at=(1+at)*ot):rtgt?(gt=a.randomNumberGenerator,gt===null&&(a.randomNumberGenerator=gt=new Mm),ot=gt.random(),gt=gt.random(),E=(E>rt?1:-1)*(1+(z.width>x.width?z.width:x.width))*ot,at=(tt>ut?1:-1)*(1+(z.height>x.height?z.height:x.height))*gt):(ot=ot.stiffness*(gt-ot.length),E=(rt-E)/gt*ot,at=(ut-tt)/gt*ot),x.forceX+=E,x.forceY+=at,z.forceX-=E,z.forceY-=at;for(b=E=0;ba.epsilonDistance*a.epsilonDistance}fs.prototype.moveVertex=function(a){var y=a.forceX,x=a.forceY,E=this.moveLimit;return y<-E?y=-E:y>E&&(y=E),x<-E?x=-E:x>E&&(x=E),a.centerX+=y,a.centerY+=x,y*y+x*x},fs.prototype.moveFixedVertex=function(){},fs.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},fs.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=Dr,y.toSpot=Dr)}},fs.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=Me.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,Me.free(x)}x=Me.alloc();for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;(a!==0||y!==0)&&(x.assign(b.bounds),x.x+=a,x.y+=y,b.bounds=x),b.commit()}Me.free(x)},fs.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},fs.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},fs.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},fs.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},fs.prototype.electricalFieldX=function(){return 0},fs.prototype.electricalFieldY=function(){return 0},fs.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},fs.prototype.gravitationalFieldX=function(){return 0},fs.prototype.gravitationalFieldY=function(){return 0},fs.prototype.isFixed=function(a){return a.isFixed},fe.Object.defineProperties(fs.prototype,{currentIteration:{get:function(){return this.An}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},arrangesToOrigin:{get:function(){return this.Bm},set:function(a){this.Bm!==a&&(this.Bm=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},maxIterations:{get:function(){return this.dl},set:function(a){this.dl!==a&&0<=a&&(this.dl=a,this.C())}},epsilonDistance:{get:function(){return this.$m},set:function(a){this.$m!==a&&0Et&&0Et&&0a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]tt)for(var ut=tt+1;utrt;ut--)gt=E[ut],gt.near===at&>.Dj===at.Dj||ot++;var mt;if(0<=x)for(rt=E[tt].sourceEdgesArrayAccess,at=0;atEt||gt===Et&&St>wt)&&ot++,Otgt||Et===gt&&wt>St)&&ot++}}}if(0>=x){for(rt=E[tt].destinationEdgesArrayAccess,at=0;atEt||gt===Et&&ut>Ot)&&ot++,wtgt||Et===gt&&Ot>ut)&&ot++)}for(z[tt*b+tt]=ot,rt=tt+1;rt=x){for(ot=E[tt].destinationEdgesArrayAccess,Wt=E[rt].destinationEdgesArrayAccess,at=0;at=x&&(rt=ot.sourceEdgesArrayAccess);var at=null;0<=x&&(at=ot.destinationEdgesArrayAccess);var ut=0,gt=0,mt=ot.near;if(mt!==null&&mt.layer===ot.layer&&(ut+=mt.column-1,gt++),rt!==null)for(mt=0;mt=x&&(rt=ot.sourceEdgesArrayAccess);var at=null;0<=x&&(at=ot.destinationEdgesArrayAccess);var ut=0,gt=[],mt=ot.near;if(mt!==null&&mt.layer===ot.layer&&(gt[ut]=mt.column-1,ut++),ot=void 0,rt!==null)for(mt=0;mt>1,z[tt]=ut&1?gt[at]:gt[at-1]+gt[at]>>1)}return Td(a,y,E),z}function N0(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var tt=y.destinationEdges;tt.next();){var ot=tt.value,rt=ot.toVertex,at=y.layer-rt.layer;ot=a.linkMinLength(ot),at===ot&&N0(a,rt,x,E,b,z)}if(z)for(tt=y.sourceEdges;tt.next();)ot=tt.value,rt=ot.fromVertex,at=rt.layer-y.layer,ot=a.linkMinLength(ot),at===ot&&N0(a,rt,x,E,b,z)}}function my(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var tt=y.destinationEdges;tt.next();)my(a,tt.value.toVertex,x,E,b,z);if(z)for(y=y.sourceEdges;y.next();)my(a,y.value.fromVertex,x,E,b,z)}}Qi.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case Sy:a=this.network;var y=0,x=a.vertexes.count-1,E=[];E.length=x+1;for(var b=a.vertexes.iterator;b.next();)b.value.valid=!0;for(;Rx(a)!==null;){for(b=YS(a);b!==null;)E[x]=b,x--,b.valid=!1,b=YS(a);for(b=VS(a);b!==null;)E[y]=b,y++,b.valid=!1,b=VS(a);b=null;for(var z=0,tt=this.network.vertexes.iterator;tt.next();){var ot=tt.value;if(ot.valid){for(var rt=0,at=ot.destinationEdges;at.next();)at.value.toVertex.valid&&rt++;at=0;for(var ut=ot.sourceEdges;ut.next();)ut.value.fromVertex.valid&&at++;(b===null||zy.toVertex.index&&(a.gm(y),y.rev=!0);break;case Nm:for(E=this.network.vertexes.iterator;E.next();)a=E.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,E.reset();E.next();)y=E.value,y.sourceEdges.count===0&&vy(this,y);for(E.reset();E.next();)y=E.value,y.Ll===-1&&vy(this,y);for(a.reset();a.next();)E=a.value,E.forest||(y=E.fromVertex,x=y.finish,b=E.toVertex,z=b.finish,b.LlE){if(0>E)for(y.reset();y.next();)y.value.layer-=E;for(E=[],y.reset();y.next();)x=y.value,b=E[x.layer],b===void 0?E[x.layer]=[x]:b.push(x);for(x=y=0;xtt&&N0(a,ot,0,-1,!0,!1)}for(N0(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,E=1/0,ot=0,rt=null,tt=a.network.vertexes.iterator;tt.next();){var at=tt.value;if(at.component===1){var ut=0,gt=!1,mt=at.sourceEdgesArrayAccess;b=mt.length;for(var St=0;Stz)&&!ut&&(ot=tt,z=at)}if(0>E){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer-=b);y.component=0}else ot.component=0}}}function XS(a,y,x){return a.K===90?x&&!y.rev||!x&&y.rev?270:90:a.K===180?x&&!y.rev||!x&&y.rev?0:180:a.K===270?x&&!y.rev||!x&&y.rev?90:270:x&&!y.rev||!x&&y.rev?180:0}Qi.prototype.initializeIndices=function(){switch(this.Qk){default:case My:for(var a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;y.index=this.tc[x],this.tc[x]++}break;case Dm:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&JS(this,x);break;case Py:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&qS(this,x)}};function JS(a,y){var x=y.layer;for(y.index=a.tc[x],a.tc[x]++,y=y.destinationEdgesArrayAccess,x=!0;x;){x=!1;for(var E=0;Ez.portFromColOffset&&(x=!0,y[E]=z,y[E+1]=b)}}for(x=0;xz.portToColOffset&&(E=!0,y[x]=z,y[x+1]=b)}for(x=0;x=tt;E--)z=Cl(this,E,-1)||z;for(b=this.countCrossings(),b>=a?hl(this,y):(a=b,y=da(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Cl(this,E,1)||z;for(b=this.countCrossings(),b>=a?hl(this,y):(a=b,y=da(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Cl(this,E,1)||z;for(b>=a?hl(this,y):(a=b,y=da(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Cl(this,E,-1)||z;for(b>=a?hl(this,y):(a=b,y=da(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Cl(this,E,0)||z;for(b>=a?hl(this,y):(a=b,y=da(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Cl(this,E,0)||z;b>=a?hl(this,y):(a=b,y=da(this))}break;default:case Fm:for(x=this.Ia,tt=0,ot=a+1;(E=this.countCrossings())=tt;E--)z=Cl(this,E,-1)||z;for(b=this.countCrossings(),b>=a?hl(this,y):(a=b,y=da(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Cl(this,E,1)||z;for(b=this.countCrossings(),b>=a?hl(this,y):(a=b,y=da(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Cl(this,E,1)||z;for(b>=a?hl(this,y):(a=b,y=da(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Cl(this,E,-1)||z;for(b>=a?hl(this,y):(a=b,y=da(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Cl(this,E,0)||z;for(b>=a?hl(this,y):(a=b,y=da(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Cl(this,E,0)||z;b>=a?hl(this,y):(a=b,y=da(this))}}hl(this,y)};function Lm(a,y,x){var E=Fd(a,y),b=a.tc[y],z=WS(a,y,x),tt=py(a,y,x);for(x=0;xz+1&&(mt+=4*(Gt-z),St+=4*(Gt-(z+1)))}for(_t=E[z].destinationEdges.iterator,_t.reset();_t.next();)if(Gt=_t.value,Wt=Gt.toVertex,Gt.valid&&Wt.layer===y){for(Gt=0;E[Gt]!==Wt;)Gt++;Gt===z+1&&(St+=1)}for(_t=E[z+1].sourceEdges.iterator,_t.reset();_t.next();)if(Gt=_t.value,Wt=Gt.fromVertex,Gt.valid&&Wt.layer===y){for(Gt=0;E[Gt]!==Wt;)Gt++;Gtz+1&&(mt+=4*(Gt-(z+1)),St+=4*(Gt-z))}for(_t=E[z+1].destinationEdges.iterator,_t.reset();_t.next();)if(Gt=_t.value,Wt=Gt.toVertex,Gt.valid&&Wt.layer===y){for(Gt=0;E[Gt]!==Wt;)Gt++;Gt===z&&(mt+=1)}Gt=Wt=0,_t=tt[E[z].index];var Kt=ot[E[z].index],he=tt[E[z+1].index],$e=ot[E[z+1].index];_t!==-1&&(Wt+=Math.abs(_t-wt),Gt+=Math.abs(_t-Tt)),Kt!==-1&&(Wt+=Math.abs(Kt-wt),Gt+=Math.abs(Kt-Tt)),he!==-1&&(Wt+=Math.abs(he-Et),Gt+=Math.abs(he-Ot)),$e!==-1&&(Wt+=Math.abs($e-Et),Gt+=Math.abs($e-Ot)),(St>1)+8*E;this.Ra*=8}if(this.bg&2)for(x=!0;x;){for(x=!1,y=this.Md+1;y<=this.Ia;y++)x=Xg(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Xg(this,y,-1)||x;x=Xg(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)yy(this,y,1);for(y=this.Md-1;0<=y;y--)yy(this,y,-1);yy(this,this.Md,0)}if(a&&($S(this,-1),$S(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Xg(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Xg(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Xg(this,y,0)||x}}else Wx(this)};function Xg(a,y,x){for(var E=!1;Gx(a,y,x);)E=!0;return E}function Gx(a,y,x){var E,b=Fd(a,y),z=a.tc[y],tt=py(a,y,-1);if(0x)for(E=0;EE-1||ut-b[E-1].column-1>gt+a.nodeMinColumnSpace(b[E-1],!1)?St=ut-1:St=ut,gt=E+1>=z||b[E+1].column-ut-1>mt+a.nodeMinColumnSpace(b[E+1],!0)?ut+1:ut;var wt=mt=0,Et=0;if(0>=x)for(var Ot=b[E].sourceEdges.iterator;Ot.next();){var Tt=Ot.value,Gt=Tt.fromVertex;if(Tt.valid&&Gt.layer!==y){var Wt=fy(Tt),_t=Tt.portFromColOffset;Tt=Tt.portToColOffset,Gt=Gt.column,mt+=(Math.abs(ut+Tt-(Gt+_t))+1)*Wt,wt+=(Math.abs(St+Tt-(Gt+_t))+1)*Wt,Et+=(Math.abs(gt+Tt-(Gt+_t))+1)*Wt}}if(0<=x)for(Ot=b[E].destinationEdges.iterator;Ot.next();)Tt=Ot.value,Gt=Tt.toVertex,Tt.valid&&Gt.layer!==y&&(Wt=fy(Tt),_t=Tt.portFromColOffset,Tt=Tt.portToColOffset,Gt=Gt.column,mt+=(Math.abs(ut+_t-(Gt+Tt))+1)*Wt,wt+=(Math.abs(St+_t-(Gt+Tt))+1)*Wt,Et+=(Math.abs(gt+_t-(Gt+Tt))+1)*Wt);Tt=_t=Wt=0,Ot=tt[b[E].index],Gt=ot[b[E].index],Ot!==-1&&(Wt+=Math.abs(Ot-ut),_t+=Math.abs(Ot-St),Tt+=Math.abs(Ot-gt)),Gt!==-1&&(Wt+=Math.abs(Gt-ut),_t+=Math.abs(Gt-St),Tt+=Math.abs(Gt-gt)),wt=tt[x]?ut=rt:at<=tt[x]&&(ut=at));ut!==ot&&(z=!0,E[x].column=ut)}Td(a,y,E),a.normalize()}function Hx(a,y){for(var x=!0,E=a.network.vertexes.iterator;E.next();){var b=E.value,z=a.nodeMinColumnSpace(b,!0),tt=a.nodeMinColumnSpace(b,!1);if(b.column-z<=y&&b.column+tt>=y){x=!1;break}}if(a=!1,x)for(E.reset();E.next();)x=E.value,x.column>y&&(--x.column,a=!0);return a}function Ux(a,y){var x=y+1,E,b=[],z=[];for(E=0;E<=a.Ia;E++)b[E]=!1,z[E]=!1;for(var tt=a.network.vertexes.iterator;tt.next();){E=tt.value;var ot=E.column-a.nodeMinColumnSpace(E,!0),rt=E.column+a.nodeMinColumnSpace(E,!1);ot<=y&&rt>=y&&(b[E.layer]=!0),ot<=x&&rt>=x&&(z[E.layer]=!0)}for(ot=!0,x=!1,E=0;E<=a.Ia;E++)ot=ot&&!(b[E]&&z[E]);if(ot)for(tt.reset();tt.next();)a=tt.value,a.column>y&&(--a.column,x=!0);return x}function $S(a,y){for(var x=0;x<=a.Ra;x++)for(;Hx(a,x););for(a.normalize(),x=0;xz?hl(a,b):tty)for(x=a.Ra;0<=x;x--)for(b=da(a),z=Cm(a),E=z+1;zz?hl(a,b):ttx)for(E.reset();E.next();)b=E.value,b.column+a.nodeMinColumnSpace(b,!1)>=y&&(b.component=a.le);for(a.le++,E.reset();E.next();)y=E.value,y.component===-1&&(my(a,y,a.le,-1,!0,!0),a.le++);var z;for(y=[],z=0;zx)for(tt=a.Ra;0x)for(E.reset();E.next();)x=E.value,b[x.component]&&(x.column+=1)}function Wx(a){for(var y=vi(),x=a.fl.length,E=0;E<=x;E++)y[E]=[];for(E=a.network.vertexes.iterator;E.next();){var b=E.value;y[x-b.layer][b.index]=b}x=new Ke,Yx(y,x);var z=null,tt=null,ot=null,rt=null,at=(a.ve&1)!==0,ut=(a.ve&2)!==0,gt=(a.ve&4)!==0,mt=(a.ve&8)!==0;for(at&&(a.verticalAlignment(y,x,!0),z=Em(a,y,!0,!1)),y.reverse(),gt&&(a.verticalAlignment(y,x,!1),ot=Em(a,y,!1,!1)),E=Wo(y),b=E.next();!b.done;b=E.next())b.value.reverse();mt&&(a.verticalAlignment(y,x,!1),rt=Em(a,y,!1,!0)),y.reverse(),ut&&(a.verticalAlignment(y,x,!0),tt=Em(a,y,!0,!0)),Ci(y),a.u(z,tt,ot,rt),a.network.vertexes.each(function(St){var wt=vi();at&&wt.push(z.get(St)),ut&&wt.push(tt.get(St)),gt&&wt.push(ot.get(St)),mt&&wt.push(rt.get(St)),wt.sort(function(Ot,Tt){return Ot-Tt});var Et=wt.length;Et=(wt[Math.floor((Et-1)/2)]+wt[Math.ceil((Et-1)/2)])/2,Ci(wt),St.zc=Et})}function Yx(a,y){for(var x=a.length,E=1;Eut)&&y.add(gt);z++}b=ut}}}Qi.prototype.verticalAlignment=function(a,y,x){Vx(a),a=Wo(a);for(var E=a.next();!E.done;E=a.next()){var b=-1;E=Wo(E.value);for(var z=E.next();!z.done;z=E.next()){z=z.value;var tt=x?Ey(z):Qx(z),ot=tt.length;if(0=y[x].length)&&(tt=y[x][0],tt.sd===tt)){tt.sd.shift===1/0&&(tt.sd.shift=0),tt=x,ot=0;do{for(z=y[tt][ot];z.align!==z.root;)z=z.align,tt++,0a&&ie("Could not determine previous vertex in layer"),y[x][a-1]}Qi.prototype.u=function(a){for(var y=[],x=0;xtt;tt++)if(y[tt]){var ot=_x(this,y[tt],E,b,tt);ottt;z={delta:z.delta},tt++)y[tt]&&(z.delta=tt===0||tt===2?E[x]-E[tt]:b[x]-b[tt],z.delta!==0&&y[tt].each(function(rt){return function(at){at.value+=rt.delta}}(z)));Ci(E),Ci(b)};function _x(a,y,x,E,b){if(!y||y.count===0)return x[b]=0,E[b]=0,1/0;var z=1/0,tt=-1/0;return y.each(function(ot){var rt=ot.key;ot=ot.value,rt=a.K===90||a.K===270?rt.width:rt.height,ottt&&(tt=ot+rt)}),x[b]=z,E[b]=tt,tt-z}Qi.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=Am(this,!0),y=Am(this,!1),x=this.network.edges.iterator;x.next();){var E=x.value.link;E!==null&&(E.fromSpot=a,E.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function Am(a,y){return a.K===270?y?ti:Oi:a.K===90?y?Oi:ti:a.K===180?y?yi:Si:y?Si:yi}Qi.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var a=0;a<=this.Ia;a++)this.he[a]=0,this.Ld[a]=0,this.Kd[a]=0,this.Ta[a]=0;for(a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;this.he[x]=Math.max(this.he[x],this.nodeMinLayerSpace(y,!0)),this.Ld[x]=Math.max(this.Ld[x],this.nodeMinLayerSpace(y,!1))}y=0,x=this.ie;for(var E=0;E<=this.Ia;E++){var b=x;0>=this.he[E]+this.Ld[E]&&(b=0),0=gt.bounds.bottom?(gt=gt.bounds.y+gt.bounds.height,y.m(Et++,_t,gt+he),y.m(Et++,_t,gt),y.m(Et++,_t,gt-Wt)):(y.m(Et++,_t,Kt+he),y.m(Et++,_t,Kt),y.m(Et++,_t,Kt-Wt)):this.K===270?Kt<=gt.bounds.y?(gt=gt.bounds.y,y.m(Et++,_t,gt-Wt),y.m(Et++,_t,gt),y.m(Et++,_t,gt+he)):(y.m(Et++,_t,Kt-Wt),y.m(Et++,_t,Kt),y.m(Et++,_t,Kt+he)):this.K===0&&(_t>=gt.bounds.right?(gt=gt.bounds.x+gt.bounds.width,y.m(Et++,gt+he,Kt),y.m(Et++,gt,Kt),y.m(Et++,gt-Wt,Kt)):(y.m(Et++,_t+he,Kt),y.m(Et++,_t,Kt),y.m(Et++,_t-Wt,Kt)));else{y.m(Et++,Tt,Gt);var $e=0;this.K===180||this.K===0?((this.K===180?_t>=gt.bounds.right:_t<=gt.bounds.x)&&($e=(this.K===0?-Wt:he)/2),y.m(Et++,Tt+$e,Kt)):((this.K===270?Kt>=gt.bounds.bottom:Kt<=gt.bounds.y)&&($e=(this.K===90?-Wt:he)/2),y.m(Et++,_t,Gt+$e)),y.m(Et++,_t,Kt)}}else Wt=Math.max(10,this.he[Ot.layer]),he=Math.max(10,this.Ld[Ot.layer]),mt?this.K===180?(y.m(Et++,_t-Wt-wt,Kt),y.m(Et++,Math.min(_t-Wt+wt/2,_t),Kt),y.m(Et++,_t,Kt),y.m(Et++,_t,Kt),y.m(Et++,Math.max(_t+he-wt/2,_t),Kt),y.m(Et++,_t+he+wt,Kt)):this.K===90?(y.m(Et++,_t,Kt+he+wt),y.m(Et++,_t,Math.max(Kt+he-wt/2,Kt)),y.m(Et++,_t,Kt),y.m(Et++,_t,Kt),y.m(Et++,_t,Math.min(Kt-Wt+wt/2,Kt)),y.m(Et++,_t,Kt-Wt-wt)):this.K===270?(y.m(Et++,_t,Kt-Wt-wt),y.m(Et++,_t,Math.min(Kt-Wt+wt/2,Kt)),y.m(Et++,_t,Kt),y.m(Et++,_t,Kt),y.m(Et++,_t,Math.max(Kt+he-wt/2,Kt)),y.m(Et++,_t,Kt+he+wt)):(y.m(Et++,_t+he+wt,Kt),y.m(Et++,Math.max(_t+he-wt/2,_t),Kt),y.m(Et++,_t,Kt),y.m(Et++,_t,Kt),y.m(Et++,Math.min(_t-Wt+wt/2,_t),Kt),y.m(Et++,_t-Wt-wt,Kt)):y.m(Et++,_t,Kt)}gt=Ot}(ot===null||at!==Er||St)&&(Tt=y.i(Et-1).x,Gt=y.i(Et-1).y,_t=y.i(Et).x,Kt=y.i(Et).y,St?(wt=this.Ld[ut.layer],this.K===180||this.K===0?(St=Gt,St>=ut.bounds.y&&St<=ut.bounds.bottom&&(this.K===180?_t>=ut.bounds.x:_t<=ut.bounds.right)&&(gt=ut.centerX+(this.K===180?-wt:wt),St=ut.bounds.x&&St<=ut.bounds.right&&(this.K===270?Kt>=ut.bounds.y:Kt<=ut.bounds.bottom)&&(gt=ut.centerY+(this.K===270?-wt:wt),St=ut.bounds.x?(gt=ut.bounds.x+ut.bounds.width,y.L(Et-2,gt,Gt),y.L(Et-1,gt+he,Gt)):this.K===90&&Kt<=ut.bounds.bottom?(gt=ut.bounds.y,y.L(Et-2,Tt,gt),y.L(Et-1,Tt,gt-Wt)):this.K===270&&Kt>=ut.bounds.y?(gt=ut.bounds.y+ut.bounds.height,y.L(Et-2,Tt,gt),y.L(Et-1,Tt,gt+he)):this.K===0&&_t<=ut.bounds.right&&(gt=ut.bounds.x,y.L(Et-2,gt,Gt),y.L(Et-1,gt-Wt,Gt))):(Wt=Math.max(10,this.he[ut.layer]),he=Math.max(10,this.Ld[ut.layer]),St=0,this.K===180||this.K===0?((this.K===180?_t<=ut.bounds.x:_t>=ut.bounds.right)&&(St=(this.K===0?he:-Wt)/2),y.m(Et++,_t+St,Gt)):((this.K===270?Kt<=ut.bounds.y:Kt>=ut.bounds.bottom)&&(St=(this.K===90?he:-Wt)/2),y.m(Et++,Tt,Kt+St)),y.m(Et++,_t,Kt)))}else{for(;ut!==null&&ut!==gt;){for(Wt=Ot=null,ut=ut.destinationEdges.iterator;ut.next()&&(Tt=ut.value,Tt.link!==x.link||(Ot=Tt.toVertex,Wt=Tt.fromVertex,Wt.node!==null&&(Wt=null),Ot.node!==null)););if(Ot===null)break;Ot!==gt&&(Tt=y.i(Et-1).x,Gt=y.i(Et-1).y,_t=Ot.centerX,Kt=Ot.centerY,St?this.K===180||this.K===0?(Wt!==null?Wt.centerY:Gt)!==Kt&&(Wt=this.Ta[Ot.layer]+this.Rf.x,Et===y.firstPickIndex+1&&(Wt=this.K===0?Math.max(Wt,Tt):Math.min(Wt,Tt)),y.m(Et++,Wt,Gt),y.m(Et++,Wt,Kt)):(Wt!==null?Wt.centerX:Tt)!==_t&&(Wt=this.Ta[Ot.layer]+this.Rf.y,Et===y.firstPickIndex+1&&(Wt=this.K===90?Math.max(Wt,Gt):Math.min(Wt,Gt)),y.m(Et++,Tt,Wt),y.m(Et++,_t,Wt)):(Wt=Math.max(10,this.he[Ot.layer]),he=Math.max(10,this.Ld[Ot.layer]),mt?this.K===180?(y.m(Et++,_t+he+wt,Kt),y.m(Et++,Math.max(_t+he-wt/2,_t),Kt),y.m(Et++,_t,Kt),y.m(Et++,_t,Kt),y.m(Et++,Math.min(_t-Wt+wt/2,_t),Kt),y.m(Et++,_t-Wt-wt,Kt)):this.K===90?(y.m(Et++,_t,Kt-Wt-wt),y.m(Et++,_t,Math.min(Kt-Wt+wt/2,Kt)),y.m(Et++,_t,Kt),y.m(Et++,_t,Kt),y.m(Et++,_t,Math.max(Kt+he-wt/2,Kt)),y.m(Et++,_t,Kt+he+wt)):this.K===270?(y.m(Et++,_t,Kt+he+wt),y.m(Et++,_t,Math.max(Kt+he-wt/2,Kt)),y.m(Et++,_t,Kt),y.m(Et++,_t,Kt),y.m(Et++,_t,Math.min(Kt-Wt+wt/2,Kt)),y.m(Et++,_t,Kt-Wt-wt)):(y.m(Et++,_t-Wt-wt,Kt),y.m(Et++,Math.min(_t-Wt+wt/2,_t),Kt),y.m(Et++,_t,Kt),y.m(Et++,_t,Kt),y.m(Et++,Math.max(_t+he-wt/2,_t),Kt),y.m(Et++,_t+he+wt,Kt)):this.K===180?(y.m(Et++,_t+he,Kt),y.m(Et++,_t-Wt,Kt)):this.K===90?(y.m(Et++,_t,Kt-Wt),y.m(Et++,_t,Kt+he)):this.K===270?(y.m(Et++,_t,Kt+he),y.m(Et++,_t,Kt-Wt)):(y.m(Et++,_t-Wt,Kt),y.m(Et++,_t+he,Kt)))),ut=Ot}St&&(Tt=y.i(Et-1).x,Gt=y.i(Et-1).y,_t=y.i(Et).x,Kt=y.i(Et).y,this.K===180||this.K===0?Gt!==Kt&&(Wt=this.K===0?Math.min(Math.max((_t+Tt)/2,this.Ta[gt.layer]+this.Rf.x),_t):Math.max(Math.min((_t+Tt)/2,this.Ta[gt.layer]+this.Rf.x),_t),y.m(Et++,Wt,Gt),y.m(Et++,Wt,Kt)):Tt!==_t&&(Wt=this.K===90?Math.min(Math.max((Kt+Gt)/2,this.Ta[gt.layer]+this.Rf.y),Kt):Math.max(Math.min((Kt+Gt)/2,this.Ta[gt.layer]+this.Rf.y),Kt),y.m(Et++,Tt,Wt),y.m(Et++,_t,Wt)))}E!==null&&mt&&4<=y.pointsCount&&(tt!==null&&(tt=at===Er?y.getLinkPointFromPoint(b,tt,tt.ga(zi),y.i(3),!0):y.i(0),at===Er&&(at=y.i(2),E=y.i(3),this.direction===90||this.direction===270?(y.L(1,(tt.x+at.x)/2,at.y),y.L(2,E.x,(at.y+E.y)/2)):(y.L(1,at.x,(tt.y+at.y)/2),y.L(2,(at.x+E.x)/2,E.y))),tt.w()||tt.set(b.actualBounds.center),y.L(0,tt.x,tt.y)),ot!==null&&(b=rt===Er?y.getLinkPointFromPoint(z,ot,ot.ga(zi),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),rt===Er&&(ot=y.i(y.pointsCount-3),rt=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(b.x+ot.x)/2,ot.y),y.L(y.pointsCount-2,rt.x,(ot.y+rt.y)/2)):(y.L(y.pointsCount-2,ot.x,(b.y+ot.y)/2),y.L(y.pointsCount-3,(ot.x+rt.x)/2,rt.y))),b.w()||b.set(z.actualBounds.center),y.L(y.pointsCount-1,b.x,b.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},Qi.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new Je,y=this.network.edges.iterator;y.next();){var x=y.value.link;x!==null&&x.isOrthogonal&&!a.contains(x)&&a.add(x)}if(0z.y&&(ut=at.y>z.y?0:tt.xz.x&&(ut=at.x>z.x?0:tt.yy.layer?1:a.rdy.rd?1:a.Icy.Ic?1:0:0},Ct.Ux=function(a,y){return a instanceof Bd&&y instanceof Bd&&a!==y?a.firsty.first||a.jy.j||a.rdy.rd?1:a.Icy.Ic?1:0:0},Ct.Js=function(a,y){return a instanceof Bd&&y instanceof Bd&&a!==y?a.jcy.jc||a.jy.j||a.rdy.rd?1:a.Icy.Ic?1:0:0},Ct.B=function(a,y){return a-=y,-1a},Ct.zi=function(a,y,x,E){var b=a.length,z=E-x;if(!(1>=z))if((0>x||x>=b-1)&&ie("not in range 0 <= from < length: "+x),z===2)E=a[x],b=a[x+1],0=b)a.sort(y);else for(x=a.slice(0,E),x.sort(y),y=0;y=b)for(E=a.slice(x),E.sort(y),y=x;y=a.He.length){for(var E=[],b=0;ba&&(this.bg=a,this.C())}},alignOption:{get:function(){return this.ve},set:function(a){this.ve!==a&&0<=a&&16>a&&(this.ve=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(a){this.Cn!==a&&0<=a&&(this.Cn=a,this.C())}},maxLayer:{get:function(){return this.Ia}},maxIndex:{get:function(){return this.Iq}},maxColumn:{get:function(){return this.Ra}},minIndexLayer:{get:function(){return this.Hn}},maxIndexLayer:{get:function(){return this.Md}}});var Nm=new je(Qi,"CycleDepthFirst",0),Sy=new je(Qi,"CycleGreedy",1),k0=new je(Qi,"CycleFromLayers",2),km=new je(Qi,"LayerOptimalLinkLength",0),xy=new je(Qi,"LayerLongestPathSink",1),wy=new je(Qi,"LayerLongestPathSource",2),Dm=new je(Qi,"InitDepthFirstOut",0),Py=new je(Qi,"InitDepthFirstIn",1),My=new je(Qi,"InitNaive",2),Cy=new je(Qi,"AggressiveNone",0),Fm=new je(Qi,"AggressiveLess",1),Ly=new je(Qi,"AggressiveMore",2),Zx=8;Qi.className="LayeredDigraphLayout",Qi.CycleDepthFirst=Nm,Qi.CycleGreedy=Sy,Qi.CycleFromLayers=k0,Qi.LayerOptimalLinkLength=km,Qi.LayerLongestPathSink=xy,Qi.LayerLongestPathSource=wy,Qi.InitDepthFirstOut=Dm,Qi.InitDepthFirstIn=Py,Qi.InitNaive=My,Qi.AggressiveNone=Cy,Qi.AggressiveLess=Fm,Qi.AggressiveMore=Ly,Qi.PackNone=0,Qi.PackExpand=1,Qi.PackStraighten=2,Qi.PackMedian=4,Qi.PackAll=15,Qi.AlignNone=0,Qi.AlignUpperLeft=1,Qi.AlignUpperRight=2,Qi.AlignLowerLeft=4,Qi.AlignLowerRight=8,Qi.AlignAll=15;function Bd(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}Bd.className="SegInfo";function Jg(a){lo.call(this,a)}pe(Jg,lo),Jg.prototype.createVertex=function(){return new dl(this)},Jg.prototype.createEdge=function(){return new D0(this)},Jg.className="LayeredDigraphNetwork";function dl(a){kr.call(this,a),this.$n=this.bo=this.ao=this.co=null,this.Za=this.Ag=this.Ig=-1,this.u=NaN,this.F=null,this.valid=!1,this.finish=this.Ll=NaN,this.Dj=0,this.dv=this.ev=null}pe(dl,kr);function ix(a,y){return a.index-y.index}function Tm(a,y){if(!a.$n){for(var x=[],E=Wo(a.destinationEdgesArrayAccess),b=E.next();!b.done;b=E.next())b=b.value,b.valid&&x.push(b);a.$n=x}for(a=Wo(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;ie("Unable to find destination edge to given vertex")}function Ey(a){if(!a.co){for(var y=[],x=Wo(a.sourceEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.fromVertex);y.sort(ix),a.co=y}return a.co}function Qx(a){if(!a.ao){for(var y=[],x=Wo(a.destinationEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.toVertex);y.sort(ix),a.ao=y}return a.ao}dl.prototype.Cl=function(a){kr.prototype.Cl.call(this,a),this.bo=this.co=null},dl.prototype.Kl=function(a){kr.prototype.Kl.call(this,a),this.bo=this.co=null},dl.prototype.zl=function(a){kr.prototype.zl.call(this,a),this.$n=this.ao=null},dl.prototype.Jl=function(a){kr.prototype.Jl.call(this,a),this.$n=this.ao=null},fe.Object.defineProperties(dl.prototype,{layer:{get:function(){return this.Ig},set:function(a){this.Ig!==a&&(this.Ig=a)}},column:{get:function(){return this.Ag},set:function(a){this.Ag!==a&&(this.Ag=a)}},index:{get:function(){return this.Za},set:function(a){this.Za!==a&&(this.Za=a)}},component:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},near:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),dl.prototype.deleteDestinationEdge=dl.prototype.Jl,dl.prototype.addDestinationEdge=dl.prototype.zl,dl.prototype.deleteSourceEdge=dl.prototype.Kl,dl.prototype.addSourceEdge=dl.prototype.Cl,dl.className="LayeredDigraphVertex";function D0(a){Ia.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}pe(D0,Ia),fe.Object.defineProperties(D0.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},valid:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},rev:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},forest:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},portFromPos:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},portToPos:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},portFromColOffset:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},portToColOffset:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),D0.className="LayeredDigraphEdge";function pi(a){Ao.call(this),this.Ub=new Ke,this.Wn=jm,this.ud=Yu,this.vo=zm,this.Bq=Oy,this.$v=[],this.td=!0,this.Rb=Rm,this.$d=new tn(10,10).freeze();var y=new tg(this);this.W=new Ll(y),this.Y=new Ll(y),this.ru=[],a&&Object.assign(this,a)}pe(pi,Ao),pi.prototype.cloneProtected=function(a){Ao.prototype.cloneProtected.call(this,a),a.Wn=this.Wn,a.vo=this.vo,a.Bq=this.Bq,a.td=this.td,a.Rb=this.Rb,a.$d.assign(this.$d),a.W.copyInheritedPropertiesFrom(this.W),a.Y.copyInheritedPropertiesFrom(this.Y)},pi.prototype.qb=function(a){a.classType===pi?a.name.indexOf("Alignment")===0?this.alignment=a:a.name.indexOf("Arrangement")===0?this.arrangement=a:a.name.indexOf("Compaction")===0?this.compaction=a:a.name.indexOf("Path")===0?this.path=a:a.name.indexOf("Sorting")===0?this.sorting=a:a.name.indexOf("Style")===0?this.treeStyle=a:ie("Unknown enum value: "+a):Ao.prototype.qb.call(this,a)},pi.prototype.createNetwork=function(){return new tg(this)},pi.prototype.makeNetwork=function(a){function y(E){if(E instanceof en)return!E.isLinkLabel&&E.category!=="Comment";if(E instanceof Ve){var b=E.fromNode;return b===null||b.isLinkLabel||b.category==="Comment"?!1:(E=E.toNode,!(E===null||E.isLinkLabel||E.category==="Comment"))}return!1}var x=this.createNetwork();return a instanceof de?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof qn?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},pi.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==Gm&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof de&&(y=a),this.path===jm&&y!==null?this.ud=y.isTreePathToChildren?Yu:qc:this.ud=this.path===jm?Yu:this.path,0y.level)return!1;a.removeChild(x.parent,x)}return!0}pi.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,E=0,b=0;bb?hx(this,a,tt,_n,Tt,Gt):dx(this,a,tt,_n,Tt,Gt),_n=Gt.x,Tt=Gt.width,Gt=Gt.height;break;case Vh:for(_t=0;_tgt&&(SnUr&&(Jc(a,-Ur,0,Xn,bi-1),bm(_t,-Ur,0),bm(Kt,-Ur,0),Ur=0)}no.S.h(Ur,hn),Tt=Math.max(Tt,he),Gt=Math.max(Gt,Wt+(Ye===0?0:wt)+Or.height),Sn=he}else 0gt&&(hnUr&&(Jc(a,0,-Ur,Xn,bi-1),bm(_t,0,-Ur),bm(Kt,0,-Ur),Ur=0)),no.S.h(Sn,Ur),Gt=Math.max(Gt,$e),Tt=Math.max(Tt,Wt+(Ye===0?0:wt)+Or.width),hn=$e;Fe++}switch(0at&&(at=0),135Et&&(Et=0),rt===gh&&(ot+=mt/2+a.focus.y),tt+=E+x):y?(a.comments===null?E>Tt&&(Tt=Fy(rt,E-Tt,0),tt=Tt.x,ot=Tt.y,Tt=E,at=0):Tt=ky(a,Tt,at),0>at&&(tt-=at,at=0),135Gt&&(Gt=Fy(rt,0,Ot-Gt),tt=Gt.x,ot=Gt.y,Gt=Ot,Et=0):Gt=Dy(a,Gt,Et),0>Et&&(ot-=Et,Et=0),tt+=E+x),0b[0].x?b[2].assign(b[1]):b[1].assign(b[2])),b[3].yb[0].x?b[3].assign(b[2]):b[2].assign(b[3])),Ye[0].h(at+E,0),Ye[1].h(Ye[0].x,Ot),Ye[2].yb[0].y?b[2].assign(b[1]):b[1].assign(b[2])),b[3].xb[0].y?b[3].assign(b[2]):b[2].assign(b[3])),Ye[0].h(0,Et+Ot),Ye[1].h(E,Ye[0].y),Ye[2].xE?hx(a,y,b,Fe,Wt,_t):dx(a,y,b,Fe,Wt,_t),Fe=_t.x,Wt=_t.width,_t=_t.height;break;case Vh:for(mt=0;mtmt&&(hemt&&($egt&&(gt=0),135Tt&&(Tt=0)),y.la.h(gt,Tt),y.Da.h(Wt,_t)}}pi.prototype.customAlignment=function(a,y,x,E,b){return[y,x,E,b]};function hx(a,y,x,E,b,z){var tt=x.length;if(tt===0)return new Me(E,0,b,z);if(tt===1)return y=x[0],b=y.Da.width,z=y.Da.height,new Me(E,0,b,z);for(var ot=y.nodeSpacing,rt=y.rowSpacing,at=Yl(y)===90,ut=0,gt=0,mt=0,St=0;Stat&&(b-=at),z=Math.max(z,Math.max(St,mt)+a+tt.height),0>x.S.x&&(E=Bm(y,x.S.x,!1,E,ot))):(x.S.h(b+a,E+ot/2-x.focus.y-x.la.y),b=Math.max(b,Math.max(wt,gt)+a+tt.width),mt=E+ot/2-x.focus.y-x.la.y,z=Math.max(z,mt+tt.height),0>mt&&(z-=mt),0>x.S.y&&(E=Bm(y,x.S.y,!0,E,ot)))),new Me(E,0,b,z)}function dx(a,y,x,E,b,z){var tt=x.length;if(tt===0)return new Me(E,0,b,z);if(tt===1)return x=x[0],b=x.Da.width,z=x.Da.height,new Me(E,0,b,z);for(var ot=y.nodeSpacing,rt=y.rowSpacing,at=Yl(y)===270,ut=0,gt=0,mt=0,St=0;Stgt&&(b-=gt),z=Math.max(z,Math.abs(Math.min(St,mt))+a+ut.height),0>rt.S.x&&(E=Bm(y,rt.S.x,!1,E,ot))):(rt.S.h(-b-ut.width-a,E+ot/2-rt.focus.y-rt.la.y),b=Math.max(b,Math.abs(Math.min(wt,gt))+a+ut.width),mt=E+ot/2-rt.focus.y-rt.la.y,z=Math.max(z,mt+ut.height),0>mt&&(z-=mt),0>rt.S.y&&(E=Bm(y,rt.S.y,!0,E,ot)))),y=0;yy&&(y=x+a.width),0>x&&(y-=x),y;case Vu:return a.width>y?a.width:y;case _u:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case Yh:case Zu:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case Vh:return a.width-a.focus.x+a.nodeSpacing/2+y;case gh:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function Dy(a,y,x){switch(a.alignment){case $c:case $g:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Vu:return a.height>y?a.height:y;case _u:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case Yh:case Zu:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case Vh:return a.height-a.focus.y+a.nodeSpacing/2+y;case gh:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Fy(a,y,x){switch(a){case $g:y/=2,x/=2;break;case $c:y/=2,x/=2;break;case Vu:x=y=0;break;case _u:break;default:ie("Unhandled alignment value "+a.toString())}return new Rt(y,x)}function mc(a,y,x,E,b,z){y=Fy(y,x,E),Jc(a,y.x,y.y,b,z)}function Jc(a,y,x,E,b){if(y!==0||x!==0)for(a=a.children;E<=b;E++){var z=a[E].S;z.x+=y,z.y+=x}}function Im(a,y,x,E){var b=y.parent;switch(a.ud){case Yu:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===b&&y.relativePoint.h(x,E);break;case qc:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===b&&y.relativePoint.h(x,E);break;default:ie("Unhandled path value "+a.ud.toString())}}function bm(a,y,x){for(var E=0;Egt.length||St===null||2>St.length))for(b=x=0;xat&&z.yz.y&&aty.length||x===null||2>x.length)E=null;else{for(ut=wa(a,y.length+x.length),E=z=rt=0;zrt;)at=x[z++],ut[E++].h(at.x+b,at.y);for(x=wa(a,E),rt=0;rtgt.length||z===null||2>z.length)b=null;else{for(ut=wa(a,gt.length+z.length),b=at=x=0;xz;)rt=gt[x++],ut[b++].h(rt.x,rt.y);for(z=wa(a,b),x=0;xgt.length||St===null||2>St.length))for(b=x=0;xrt&&z.xz.x&&rty.length||x===null||2>x.length)E=null;else{for(ut=wa(a,y.length+x.length),E=z=rt=0;zrt;)at=x[z++],ut[E++].h(at.x,at.y+b);for(x=wa(a,E),rt=0;rtgt.length||z===null||2>z.length)b=null;else{for(ut=wa(a,gt.length+z.length),b=at=x=0;xz;)rt=gt[x++],ut[b++].h(rt.x,rt.y);for(z=wa(a,b),x=0;x=a?0:135>=a?90:225>=a?180:315>=a?270:0}pi.prototype.computeLayerSpacing=function(a){var y=Yl(a);y=y===90||y===270;var x=a.layerSpacing;if(0=a&&(this.W.nodeIndentPastParent=a,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(a){this.W.nodeSpacing!==a&&(this.W.nodeSpacing=a,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(a){this.W.layerSpacing!==a&&(this.W.layerSpacing=a,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(a){this.W.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.W.layerSpacingParentOverlap=a,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(a){this.W.compaction===a||a!==Om&&a!==b0||(this.W.compaction=a,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(a){this.W.breadthLimit!==a&&0<=a&&(this.W.breadthLimit=a,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(a){this.W.rowSpacing!==a&&(this.W.rowSpacing=a,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(a){this.W.rowIndent!==a&&0<=a&&(this.W.rowIndent=a,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(a){this.W.commentSpacing!==a&&(this.W.commentSpacing=a,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(a){this.W.commentMargin!==a&&(this.W.commentMargin=a,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(a){this.W.setsPortSpot!==a&&(this.W.setsPortSpot=a,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(a){this.W.portSpot.D(a)||(this.W.portSpot=a,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(a){this.W.setsChildPortSpot!==a&&(this.W.setsChildPortSpot=a,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(a){this.W.childPortSpot.D(a)||(this.W.childPortSpot=a,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(a){this.Y.sorting===a||a!==qg&&a!==T0&&a!==B0&&!I0||(this.Y.sorting=a,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(a){this.Y.comparer!==a&&(this.Y.comparer=a,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(a){this.Y.angle===a||a!==0&&a!==90&&a!==180&&a!==270||(this.Y.angle=a,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(a){this.Y.alignment!==a&&(this.Y.alignment=a,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(a){this.Y.nodeIndent!==a&&0<=a&&(this.Y.nodeIndent=a,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(a){this.Y.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.Y.nodeIndentPastParent=a,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(a){this.Y.nodeSpacing!==a&&(this.Y.nodeSpacing=a,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(a){this.Y.layerSpacing!==a&&(this.Y.layerSpacing=a,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(a){this.Y.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.Y.layerSpacingParentOverlap=a,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(a){this.Y.compaction===a||a!==Om&&a!==b0||(this.Y.compaction=a,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(a){this.Y.breadthLimit!==a&&0<=a&&(this.Y.breadthLimit=a,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(a){this.Y.rowSpacing!==a&&(this.Y.rowSpacing=a,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(a){this.Y.rowIndent!==a&&0<=a&&(this.Y.rowIndent=a,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(a){this.Y.commentSpacing!==a&&(this.Y.commentSpacing=a,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(a){this.Y.commentMargin!==a&&(this.Y.commentMargin=a,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(a){this.Y.setsPortSpot!==a&&(this.Y.setsPortSpot=a,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(a){this.Y.portSpot.D(a)||(this.Y.portSpot=a,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(a){this.Y.setsChildPortSpot!==a&&(this.Y.setsChildPortSpot=a,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(a){this.Y.childPortSpot.D(a)||(this.Y.childPortSpot=a,this.C())}}});var jm=new je(pi,"PathDefault",-1),Yu=new je(pi,"PathDestination",0),qc=new je(pi,"PathSource",1),qg=new je(pi,"SortingForwards",10),T0=new je(pi,"SortingReverse",11),B0=new je(pi,"SortingAscending",12),I0=new je(pi,"SortingDescending",13),$g=new je(pi,"AlignmentCenterSubtrees",20),$c=new je(pi,"AlignmentCenterChildren",21),Vu=new je(pi,"AlignmentStart",22),_u=new je(pi,"AlignmentEnd",23),Yh=new je(pi,"AlignmentBus",24),Zu=new je(pi,"AlignmentBusBranching",25),Vh=new je(pi,"AlignmentTopLeftBus",26),gh=new je(pi,"AlignmentBottomRightBus",27),Om=new je(pi,"CompactionNone",30),b0=new je(pi,"CompactionBlock",31),zm=new je(pi,"StyleLayered",40),By=new je(pi,"StyleLastParents",41),Iy=new je(pi,"StyleAlternating",42),by=new je(pi,"StyleRootOnly",43),Rm=new je(pi,"ArrangementVertical",50),jy=new je(pi,"ArrangementHorizontal",51),Gm=new je(pi,"ArrangementFixedRoots",52),Oy=new je(pi,"LayerIndividual",60),zy=new je(pi,"LayerSiblings",61),Hm=new je(pi,"LayerUniform",62);pi.className="TreeLayout",pi.PathDefault=jm,pi.PathDestination=Yu,pi.PathSource=qc,pi.SortingForwards=qg,pi.SortingReverse=T0,pi.SortingAscending=B0,pi.SortingDescending=I0,pi.AlignmentCenterSubtrees=$g,pi.AlignmentCenterChildren=$c,pi.AlignmentStart=Vu,pi.AlignmentEnd=_u,pi.AlignmentBus=Yh,pi.AlignmentBusBranching=Zu,pi.AlignmentTopLeftBus=Vh,pi.AlignmentBottomRightBus=gh,pi.CompactionNone=Om,pi.CompactionBlock=b0,pi.StyleLayered=zm,pi.StyleLastParents=By,pi.StyleAlternating=Iy,pi.StyleRootOnly=by,pi.ArrangementVertical=Rm,pi.ArrangementHorizontal=jy,pi.ArrangementFixedRoots=Gm,pi.LayerIndividual=Oy,pi.LayerSiblings=zy,pi.LayerUniform=Hm;function tg(a){lo.call(this,a)}pe(tg,lo),tg.prototype.createVertex=function(){return new Ll(this)},tg.prototype.createEdge=function(){return new tf(this)},tg.className="TreeNetwork";function Ll(a){kr.call(this,a),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new Rt(0,0),this.Da=new tn(0,0),this.la=new Rt(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=qg,this.hd=oy,this.Kb=0,this.Jb=$c,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=b0,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=Dr,this.wr=!0,this.Dp=Dr}pe(Ll,kr),Ll.prototype.copyInheritedPropertiesFrom=function(a){a!==null&&(this.nd=a.sorting,this.hd=a.comparer,this.Kb=a.angle,this.Jb=a.alignment,this.Uq=a.nodeIndent,this.Vq=a.nodeIndentPastParent,this.Wq=a.nodeSpacing,this.ie=a.layerSpacing,this.Aq=a.layerSpacingParentOverlap,this.Hp=a.compaction,this.Ap=a.breadthLimit,this.nr=a.rowSpacing,this.mr=a.rowIndent,this.Gp=a.commentSpacing,this.Fp=a.commentMargin,this.xr=a.setsPortSpot,this.dr=a.portSpot,this.wr=a.setsChildPortSpot,this.Dp=a.childPortSpot)},fe.Object.defineProperties(Ll.prototype,{initialized:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},parent:{get:function(){return this.hb},set:function(a){this.hb!==a&&(this.hb=a)}},children:{get:function(){return this.u},set:function(a){if(this.u!==a){if(a!==null)for(var y=a.length,x=0;xSt.y+x.rowIndent&&(z=Math.min(z,Math.max(gt.y,z-y.computeNodeIndent(x))))):x.alignment===Vu?(z=E.top+b.y,b.y===0&>.ySt.x+x.rowIndent&&(z=Math.min(z,Math.max(gt.x,z-y.computeNodeIndent(x))))):x.alignment===Vu?(z=E.left+b.x,b.x===0&>.xSt.y+x.rowIndent&&(z=Math.min(z,Math.max(gt.y,z-y.computeNodeIndent(x))))):x.alignment===Vu?(z=E.top+b.y,b.y===0&>.ySt.x+x.rowIndent&&(z=Math.min(z,Math.max(gt.x,z-y.computeNodeIndent(x))))):x.alignment===Vu?(z=E.left+b.x,b.x===0&>.xE in d?s(d,E,{enumerable:!0,configurable:!0,writable:!0,value:B}):d[E]=B,Z=(d,E)=>{for(var B in E||(E={}))X.call(E,B)&&U(d,B,E[B]);if(j)for(var B of j(E))P.call(E,B)&&U(d,B,E[B]);return d},v=(d,E)=>i(d,D(E)),h=(d,E)=>{var B={};for(var q in d)X.call(d,q)&&E.indexOf(q)<0&&(B[q]=d[q]);if(d!=null&&j)for(var q of j(d))E.indexOf(q)<0&&P.call(d,q)&&(B[q]=d[q]);return B},W=(d,E,B)=>new Promise((q,c)=>{var y=R=>{try{A(B.next(R))}catch(S){c(S)}},b=R=>{try{A(B.throw(R))}catch(S){c(S)}},A=R=>R.done?q(R.value):Promise.resolve(R.value).then(y,b);A((B=B.apply(d,E)).next())});const _=d=>{var E=d,{children:B}=E,q=h(E,["children"]);const[c,y]=(0,o.useState)(!1);return o.createElement(e.ZP,v(Z({},q),{loading:c,onClick:b=>W(void 0,null,function*(){try{y(!0),yield q.onClick(b),y(!1)}catch(A){console.error(A),y(!1)}})}),B)}},41069:function(dt,te,u){"use strict";u.d(te,{ij:function(){return c},_s:function(){return q},Uf:function(){return B},ZP:function(){return b}});var e=u(59301),o={flex_box_center:"flex_box_center___swvFl",flex_space_between:"flex_space_between___AqPFV",flex_box_vertical_center:"flex_box_vertical_center___XWInJ",flex_box_center_end:"flex_box_center_end___GB61t",flex_box_column:"flex_box_column___dJnz1",analysis:"analysis___xyV_c",title:"title___DQ3VK",itemWrap:"itemWrap___vFE5r",item:"item___NjeOt",list:"list___BbMrm",wrap:"wrap___UQTTb",img:"img___tNvUo",tips:"tips___Eu4wH",footer:"footer___ZbR9W",noData:"noData___mLlw0"},s=u(92310),i=u.n(s),D=u(42441),j=u(6848),X=u(61621),P=u(71418),U=u(8797),Z=u(3294),v=Object.defineProperty,h=Object.getOwnPropertySymbols,W=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable,d=(A,R,S)=>R in A?v(A,R,{enumerable:!0,configurable:!0,writable:!0,value:S}):A[R]=S,E=(A,R)=>{for(var S in R||(R={}))W.call(R,S)&&d(A,S,R[S]);if(h)for(var S of h(R))_.call(R,S)&&d(A,S,R[S]);return A};const B=(A={})=>{var R,S,Q,M;let le=(R=A==null?void 0:A.emotion)==null?void 0:R.map(x=>E({value:x==null?void 0:x.rate},x)),k=(S=A==null?void 0:A.focus)==null?void 0:S.map(x=>E({value:x==null?void 0:x.rate},x)),De=(Q=A==null?void 0:A.action)==null?void 0:Q.map(x=>E({value:x==null?void 0:x.rate},x)),ye=(M=A==null?void 0:A.intention)==null?void 0:M.map(x=>E({value:x==null?void 0:x.rate},x));return[{title:"\u8868\u60C5\u5360\u6BD4",color:["#f7ca2e","#4ccf71","#3791ee","#f9ac95","#4f74ee","#f0e999"],data:le||[]},{title:"\u4E13\u6CE8\u5EA6\u5360\u6BD4",color:["#4f74ee","#f9ac95","#9cb5fe","#eaa170","#3791ee","#a39bed"],data:k||[]},{title:"\u884C\u4E3A\u5360\u6BD4\u60C5\u51B5",color:["#5eca9c","#a39bed","#f68238","#f0e999","#eaa170","#f9ac95"],data:De||[]},{title:"\u610F\u56FE\u5360\u6BD4\u60C5\u51B5",color:["#eaa170","#739fcb","#f0e999","#f9ac95","#4f74ee","#5eca9c"],data:ye||[]}]},q=({className:A,dataSource:R=[],col:S=4,right:Q,bottom:M=23,precision:le=0,wrapWidth:k=1200})=>{const De=(x="",ve,m="--")=>x?(x==null?void 0:x.length)>ve?(x==null?void 0:x.slice(0,ve-1))+"...":x:m,ye=Math.floor((k-(S-1)*Q)/S);return e.createElement("div",{className:i()(o.list,A)},!!(R!=null&&R.length)&&(R==null?void 0:R.map((x,ve)=>{const{cover_pic:m,created_at:N,emotion:ce,action:f,intention:Ce,focus:z}=x;return e.createElement("div",{key:ve,className:o.wrap,style:{width:ye,marginRight:(1+ve)%S===0?0:Q+le,marginBottom:M}},e.createElement("div",{className:o.img},e.createElement("img",{src:`${Z.Z.API_SERVER}${m}`}),e.createElement("div",{className:o.tips},e.createElement("div",null,e.createElement("i",{className:"iconfont icon-paisheshijian mr5 font14"})," \u62CD\u6444\u65F6\u95F4"),e.createElement("span",null,N))),e.createElement("div",{className:o.footer},e.createElement("ul",null,e.createElement("li",null,e.createElement("i",{className:"iconfont icon-biaoqing"}),e.createElement("span",null,"\u8868\u60C5\uFF1A",e.createElement(j.Z,{title:ce},e.createElement("span",{className:"c-grey-333"},De(ce,4))))),e.createElement("li",null,e.createElement("i",{className:"iconfont icon-hangwei"}),e.createElement("span",null,"\u884C\u4E3A\uFF1A",e.createElement(j.Z,{title:f},e.createElement("span",{className:"c-grey-333"},De(f,4)))))),e.createElement("ul",null,e.createElement("li",null,e.createElement("i",{className:"iconfont icon-yitu"}),e.createElement("span",null,"\u610F\u56FE\uFF1A",e.createElement(j.Z,{title:Ce},e.createElement("span",{className:"c-grey-333"},De(Ce,4))))),e.createElement("li",null,e.createElement("i",{className:"iconfont icon-zhuangtai"}),e.createElement("span",null,"\u4E13\u6CE8\u5EA6\uFF1A",e.createElement(j.Z,{title:z},e.createElement("span",{className:"c-grey-333"},De(z,3))))))))})))},c=({className:A,style:R,title:S,hideBar:Q=!1,children:M,customText:le="",noDataText:k="",emptyData:De=[],loading:ye,actionAnalysis:x})=>{var ve,m;const N=((ve=De==null?void 0:De[0])==null?void 0:ve.every(f=>{var Ce;return!((Ce=f==null?void 0:f.data)!=null&&Ce.length)}))&&!((m=De==null?void 0:De[1])!=null&&m.length)||!x,ce=x?k:le;return e.createElement(X.Z,{loading:ye,active:!0},N&&e.createElement("div",{className:i()(o.noData,A),style:R},!!S&&e.createElement("div",{className:o.title},!Q&&e.createElement("b",null),e.createElement("span",null,S)),e.createElement("div",{className:o.itemWrap},e.createElement(U.Z,{customText:ce}))),!N&&M)};var b=({className:A,style:R,data:S=[],title:Q,hideBar:M=!1,loading:le=!1})=>e.createElement("div",{className:i()(o.analysis,A),style:R},!!Q&&e.createElement("div",{className:o.title},!M&&e.createElement("b",null),e.createElement("span",null,Q)),e.createElement(P.Z,{spinning:le},e.createElement("div",{className:o.itemWrap},S==null?void 0:S.map((k,De)=>e.createElement("div",{className:o.item,key:De},e.createElement(D.Z,{option:{tooltip:{trigger:"item",formatter:"{a}
            {b}: {c}%"},title:{left:"center",bottom:15,text:k==null?void 0:k.title},legend:{top:10,right:10,orient:"vertical",show:!0,align:"left",icon:"circle",itemWidth:10,itemHeight:10,formatter:function(ye){for(let x in k==null?void 0:k.data)if(ye==(k==null?void 0:k.data[x].name))return ye+" "+(k==null?void 0:k.data[x].value)+"%"},textStyle:{color:"#767676",fontSize:12}},color:k==null?void 0:k.color,series:[{type:"pie",radius:["20%","35%"],center:["20%","40%"],avoidLabelOverlap:!1,label:{show:!1},labelLine:{show:!1},data:k==null?void 0:k.data}]},style:{height:145}}))))))},24544:function(dt,te,u){"use strict";var e=u(86204),o=u.n(e),s=Object.defineProperty,i=(P,U,Z)=>U in P?s(P,U,{enumerable:!0,configurable:!0,writable:!0,value:Z}):P[U]=Z,D=(P,U,Z)=>i(P,typeof U!="symbol"?U+"":U,Z),j=(P,U,Z)=>new Promise((v,h)=>{var W=E=>{try{d(Z.next(E))}catch(B){h(B)}},_=E=>{try{d(Z.throw(E))}catch(B){h(B)}},d=E=>E.done?v(E.value):Promise.resolve(E.value).then(W,_);d((Z=Z.apply(P,U)).next())});class X extends e.EventEmitter{constructor(U,Z){super(),D(this,"url"),D(this,"body"),D(this,"fullContent",""),D(this,"controller",null),this.url=U,this.body=Z}startStream(){return j(this,null,function*(){this.controller=new AbortController;const{signal:U}=this.controller;try{const Z=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:U});if(!Z.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${Z.status}`);const v=Z.headers.get("content-type");if(!v)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(v.includes("application/json")){const _=yield Z.json();this.emit("error",_);return}if(!v.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const h=Z.body.getReader(),W=new TextDecoder("utf-8");for(;;){const{done:_,value:d}=yield h.read();if(_)break;const B=W.decode(d,{stream:!0}).split(` +`);for(const q of B)if(q.startsWith("data:")){const c=q.slice(5).trim();if(c==="[DONE]")break;try{const y=JSON.parse(c);y.data&&this.handleData(y.data)}catch(y){console.error("\u89E3\u6790 JSON \u5931\u8D25:",y)}}}this.emit("done",this.fullContent)}catch(Z){Z.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",Z.message)}})}handleData(U){U.content&&(this.fullContent+=U.content,this.emit("data",{chunk:U,full:this.fullContent}))}cancelRequest(){var U;(U=this.controller)==null||U.abort()}}te.Z=X},12393:function(dt,te,u){"use strict";u.d(te,{Z:function(){return c}});var e=u(59301),o=u(78241),s=u(8591),i=u(43418),D=u(5083),j=u(92832),X=u(1710),P=u(95237),U=u(43604),Z=u(61186),v=u.n(Z),h=u(955),W=u(89070),_={tips:"tips___e8J4O",homeworkType:"homeworkType___ZjN2X",antdTable:"antdTable___amDdp",modalWrapper:"modalWrapper___XPojI"},d=u(92365),E=u(79834),B=(y,b,A)=>new Promise((R,S)=>{var Q=k=>{try{le(A.next(k))}catch(De){S(De)}},M=k=>{try{le(A.throw(k))}catch(De){S(De)}},le=k=>k.done?R(k.value):Promise.resolve(k.value).then(Q,M);le((A=A.apply(y,b)).next())});const q=({dispatch:y,courseEndTime:b,classroomList:A,successCallback:R=()=>{},visible:S,homeworkIds:Q,courseId:M,isBatch:le,shixunHomeworks:k})=>{const[De]=o.default.useForm(),[ye,x]=(0,e.useState)(!1),[ve,m]=(0,e.useState)(!1),[N,ce]=(0,e.useState)(!1),[f,Ce]=(0,e.useState)([]),[z,r]=(0,e.useState)([]),[me,a]=(0,e.useState)([]),[we,We]=(0,e.useState)([]),[ot,pt]=(0,e.useState)([]),[Je,_e]=(0,e.useState)([]),[Dt,nt]=(0,e.useState)([]),[Ke,C]=(0,e.useState)([]),[pe,st]=(0,e.useState)([]);(0,e.useEffect)(()=>{S?Le():g()},[S]);const Le=()=>B(void 0,null,function*(){x(!0);const ne=yield(0,d.oR)(Q[0],{course_id:M});ce(ne.no_group),le?(nt(ne.all_course_groups),C(ne.all_course_groups)):(We(ne.late_course_groups),pt(ne.late_course_groups),Ce(ne.submit_course_groups),r(ne.submit_course_groups)),x(!1),De.setFieldsValue({end_time:v()()})}),O=()=>B(void 0,null,function*(){const ne=De.getFieldsValue(),Fe=v()(ne.end_time).format("YYYY-MM-DD HH:mm");if((le?pe.length===0:me.length===0&&Je.length===0)&&!N){s.ZP.warning("\u8BF7\u9009\u62E9\u9700\u8981\u64CD\u4F5C\u7684\u73ED\u7EA7");return}m(!0);const Ye=yield(0,d.Mc)(M,{no_group:N,homework_ids:Q,group_ids:le?pe:me,end_time:Fe,late_group_ids:le?pe:Je});m(!1),Ye.status===0&&(g(),s.ZP.success("\u64CD\u4F5C\u6210\u529F"),R(),y({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}))}),g=()=>{a([]),_e([]),r([]),pt([])};return e.createElement(i.default,{centered:!0,title:"\u7ACB\u5373\u622A\u6B62",className:_.modalWrapper,width:le||N?520:760,open:S,confirmLoading:ve,destroyOnClose:!0,okText:"\u622A\u6B62",cancelText:"\u53D6\u6D88",onOk:()=>O(),onCancel:()=>{g(),y({type:"classroomList/setActionTabs",payload:{}})}},e.createElement("div",{className:_.tips},e.createElement("div",null,"1\u3001\u622A\u6B62\u540E\u5B66\u751F\u4E0D\u80FD\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"),e.createElement("div",null,"2\u3001\u672C\u64CD\u4F5C\u53EA\u5BF9\u201C\u63D0\u4EA4\u4E2D\u201D\u3001\u201C\u8865\u4EA4\u4E2D\u201D\u7684\u4F5C\u4E1A\u6709\u6548\u3002")),e.createElement(o.default,{form:De,layout:"vertical"},e.createElement(o.default.Item,{name:"end_time",label:"\u622A\u6B62\u65F6\u95F4"},e.createElement(D.default,{style:{width:"100%"},disabledDate:ne=>(0,E.Q8)(ne,b),disabledTime:ne=>(0,E.d0)(ne),placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:v()((0,h.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1}))),!N&&e.createElement(e.Fragment,null,le?e.createElement("div",null,e.createElement(j.default,{placeholder:"\u641C\u7D22\u73ED\u7EA7",onChange:ne=>{C(Dt.filter(Fe=>Fe.name.indexOf(ne.target.value)>-1))}}),e.createElement(X.default,{style:{marginTop:"10px",height:"300px",overflow:"auto"},className:_.antdTable,rowSelection:{type:"checkbox",onChange:ne=>{st(ne)}},rowKey:"id",pagination:!1,dataSource:Ke,loading:ye,columns:[{title:"\u73ED\u7EA7",dataIndex:"name"}]})):e.createElement(P.Z,{gutter:24},e.createElement(U.Z,{span:14},e.createElement("div",{className:_.homeworkType},"\u4F5C\u4E1A\u622A\u6B62"),e.createElement(j.default,{placeholder:"\u641C\u7D22\u73ED\u7EA7",onChange:ne=>{r(f.filter(Fe=>Fe.name.indexOf(ne.target.value)>-1))}}),e.createElement("div",{className:_.tableWrapper},e.createElement(X.default,{style:{marginTop:"10px",height:"260px",overflow:"auto"},className:_.antdTable,rowSelection:{type:"checkbox",onChange:ne=>{a(ne)}},rowKey:"id",pagination:!1,dataSource:z,loading:ye,columns:[{title:"\u73ED\u7EA7",dataIndex:"name",ellipsis:!0},{title:"\u53D1\u5E03\u65F6\u95F4",dataIndex:"publish_time"},{title:"\u622A\u6B62\u65F6\u95F4",dataIndex:"end_time"}]}))),e.createElement(U.Z,{flex:10,style:{maxWidth:"280px"}},e.createElement("div",{className:_.homeworkType},"\u8865\u4EA4\u622A\u6B62"),e.createElement(j.default,{placeholder:"\u641C\u7D22\u73ED\u7EA7",onChange:ne=>{pt(we.filter(Fe=>Fe.name.indexOf(ne.target.value)>-1))}}),e.createElement("div",{className:_.tableWrapper},e.createElement(X.default,{style:{marginTop:"10px",height:"260px",overflow:"auto",maxWidth:"280px"},className:_.antdTable,rowSelection:{type:"checkbox",onChange:ne=>{_e(ne)}},rowKey:"id",pagination:!1,loading:ye,dataSource:ot,columns:[{title:"\u73ED\u7EA7",dataIndex:"name",ellipsis:!0,width:120},{title:"\u622A\u6B62\u65F6\u95F4",dataIndex:"late_time"}]}))))))};var c=(0,W.connect)(({shixunHomeworks:y,classroomList:b})=>({shixunHomeworks:y,classroomList:b}))(q)},91785:function(dt,te,u){"use strict";u.d(te,{Z:function(){return j}});var e=u(43418),o={modal:"modal___VzyKs",content:"content___HhLQS",close:"close___zKaRB"},s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABQVJREFUWEfNmXes32MUxj8PagS1QghJiU1pxExsFbUqitoSKzVilEjoHzVj/KEEDYnGbq3aexNiRRG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GzUn2vXhqlB4Bl8z9Xjloz1THQTJLpBmjlPLMfNGM1/Ahgop9dWsuta4kWEWsDLmcrud1MJdRVL1Olma6I2i6IiIVLX3xveuzd0n5uWTL206p7IsJx6QOsCljG7SDJvXJHVkRKL1F3XOoSXE39js1e2ODea0JBbubtyZHAOynX3u8EYUT0ljo3LG3FQoLz2OtMIaWB/zqvtWV/nPLpfmCTogU/Tk++2QpkH7GQG7eUWxVucr9ypPkpBafVdlsrWtAvDXeVpNkGMGtYnb/UgqT/k1sJsKlgrYA7DzgZ+NW6UNKTbZFVBmTcOiF3LULjh/JmM1aS6amPNRSsCbKh5M//JmWj42pjHei+oWtLTXmNZVoedLQkv+30WkPJnyBc+xo1Te5H7K1aE9+V6mngIcexnXGEf5Jcx3ssmybH67rzNE05wO8l9W3niEwMF38nyKBYRKxSzf62bWflFEO3cU8vmueG7tNHghy6j0eVqx66z291aT80HzDrQA7dJ+A6oEPzEb0J2dY+Q2yUnyGsrKufIT7PzxAWsv3+DPEPkKKBQOOiq+AAAAAASUVORK5CYII=",i=u(59301),j=({visible:X,setVisible:P,image:U,closeImageStyle:Z,hiddenbutton:v})=>i.createElement(e.default,{centered:!0,destroyOnClose:!0,open:X,footer:null,wrapClassName:o.modal,onCancel:()=>P(!1)},i.createElement("div",{className:o.content},i.createElement("img",{src:U}),v,i.createElement("img",{onClick:()=>P(!1),className:o.close,src:s,style:Z})))},30917:function(dt,te,u){"use strict";u.d(te,{Z:function(){return ye}});var e=u(59301),o=u(89070),s=u(43418),i=u(78241),D=u(8591),j=u(71418),X=u(17574),P=u(95237),U=u(43604),Z=u(6848),v=u(92832),h={currentPrimary:"currentPrimary___NPWiR",currentDelete:"currentDelete___UEfhf",DirectoryTree:"DirectoryTree___xPxCY",EditDom:"EditDom___seNxC"},W=u(83312),_=u(24780),d=u(8797),E=u(85057),B=Object.defineProperty,q=Object.defineProperties,c=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable,R=(x,ve,m)=>ve in x?B(x,ve,{enumerable:!0,configurable:!0,writable:!0,value:m}):x[ve]=m,S=(x,ve)=>{for(var m in ve||(ve={}))b.call(ve,m)&&R(x,m,ve[m]);if(y)for(var m of y(ve))A.call(ve,m)&&R(x,m,ve[m]);return x},Q=(x,ve)=>q(x,c(ve)),M=(x,ve)=>{var m={};for(var N in x)b.call(x,N)&&ve.indexOf(N)<0&&(m[N]=x[N]);if(x!=null&&y)for(var N of y(x))ve.indexOf(N)<0&&A.call(x,N)&&(m[N]=x[N]);return m},le=(x,ve,m)=>new Promise((N,ce)=>{var f=r=>{try{z(m.next(r))}catch(me){ce(me)}},Ce=r=>{try{z(m.throw(r))}catch(me){ce(me)}},z=r=>r.done?N(r.value):Promise.resolve(r.value).then(f,Ce);z((m=m.apply(x,ve)).next())});const k=(x=[])=>x==null?void 0:x.map(ve=>Q(S({},ve),{title:(ve==null?void 0:ve.value)||"",key:ve==null?void 0:ve.id,isLeaf:!0})),De=x=>{var ve=x,{user:m,children:N,isShowComponent:ce=!0,ModalProps:f={},onDataSelect:Ce}=ve,z=M(ve,["user","children","isShowComponent","ModalProps","onDataSelect"]);const[r,me]=s.default.useModal(),[a]=i.default.useForm(),[we,We]=(0,e.useState)([]),[ot,pt]=(0,e.useState)(!1),[Je,_e]=(0,e.useState)(!1),[,Dt,nt,Ke]=(0,W.U)(_.qE,{page:1,limit:9999}),[,,C]=(0,W.U)(_.V8,{}),[,,pe]=(0,W.U)(_.B$,{}),[,,st]=(0,W.U)(_.DH,{}),[,,Le]=(0,W.U)(_.bJ,{}),O=()=>{pt(!1),a.resetFields(),_e(!1)},g=Fe=>le(void 0,null,function*(){const{node:ie,dragNode:Ye,event:wt}=Fe,Ft=Fe.node.pos.split("-"),rt=Fe.dropPosition-Number(Ft[Ft.length-1]);if(rt==0){D.ZP.warning("\u65E0\u6CD5\u79FB\u52A8\u5230\u5185\u90E8\u4F4D\u7F6E");return}if(rt==1&&(Ye==null?void 0:Ye.item_index)==(ie==null?void 0:ie.item_index)+1){D.ZP.warning("\u672A\u79FB\u52A8\u4F4D\u7F6E");return}const Xt=yield Le({id:Ye==null?void 0:Ye.key,position:rt==-1?1:(Ye==null?void 0:Ye.item_index)>(ie==null?void 0:ie.item_index)?(ie==null?void 0:ie.item_index)+1:ie==null?void 0:ie.item_index});(Xt==null?void 0:Xt.status)===0&&(D.ZP.success("\u79FB\u52A8\u6210\u529F"),nt({},!0))}),ne=Fe=>le(void 0,null,function*(){let ie={};Je?ie=yield pe(S({},Fe)):ie=yield st(S({},Fe)),(ie==null?void 0:ie.status)==0&&(D.ZP.success((ie==null?void 0:ie.message)||(Je?"\u6DFB\u52A0\u6210\u529F":"\u66F4\u65B0\u6210\u529F")),nt({},!0),O())});return(0,e.useEffect)(()=>{f!=null&&f.open&&nt({},!0)},[f==null?void 0:f.open]),(0,e.useEffect)(()=>{var Fe;We(k((Fe=Ke==null?void 0:Ke.data)==null?void 0:Fe.list))},[Ke]),ce?e.createElement(e.Fragment,null,me,N,e.createElement(s.default,S({},S({title:"\u5E38\u7528\u8BC4\u8BED",width:640,centered:!0,footer:null,bodyStyle:{padding:"10px 5px 25px"}},f)),e.createElement(j.Z,{spinning:Dt},(we==null?void 0:we.length)>0?e.createElement(e.Fragment,null,e.createElement(X.default.DirectoryTree,{height:500,className:h.DirectoryTree,multiple:!0,draggable:{icon:!1},defaultExpandAll:!0,switcherIcon:!1,showIcon:!1,onSelect:Ce,treeData:we,onDrop:g,titleRender:Fe=>e.createElement(e.Fragment,null,e.createElement("span",{className:"multi_ellipsis1",style:{flex:1,marginRight:"32px"}},Fe==null?void 0:Fe.title),e.createElement("div",{className:`${h.EditDom}`},e.createElement(P.Z,{wrap:!1,align:"middle",gutter:16},e.createElement(U.Z,null,e.createElement(Z.Z,{title:"\u957F\u6309\u53EF\u8FDB\u884C\u62D6\u62FD\u6392\u5E8F"},e.createElement("i",{className:`iconfont icon-tuodong1 font12 ${h.currentPrimary}`}))),e.createElement(U.Z,null,e.createElement(Z.Z,{title:"\u7F16\u8F91"},e.createElement("i",{className:`iconfont icon-bianji11 font12 ${h.currentPrimary}`,onClick:ie=>{ie.stopPropagation(),a.setFieldsValue(S({},Fe)),pt(!0)}}))),e.createElement(U.Z,null,e.createElement(Z.Z,{title:"\u5220\u9664"},e.createElement("i",{className:`iconfont icon-shanchu14 font12 ${h.currentDelete}`,onClick:ie=>{ie.stopPropagation(),r.confirm({icon:null,title:"\u5220\u9664\u5E38\u7528\u8BC4\u8BED",centered:!0,content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u5E38\u7528\u8BC4\u8BED\u5417\uFF1F",onOk:()=>le(void 0,null,function*(){const Ye=yield C({id:Fe==null?void 0:Fe.key});(Ye==null?void 0:Ye.status)==0&&(D.ZP.success((Ye==null?void 0:Ye.message)||"\u5220\u9664\u6210\u529F"),nt({},!0))})})}}))))))}),e.createElement(E.op,{className:"ml20 mt20",icon:e.createElement("i",{className:"iconfont icon-xiaojiahao"}),style:{borderRadius:"4px"},onClick:()=>{_e(!0),pt(!0)}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED")):e.createElement(d.Z,{styles:{margin:"30px auto"},customText:e.createElement("span",null,"\u6682\u65E0\u5E38\u7528\u8BC4\u8BED\uFF0C\u4F60\u53EF\u4EE5",e.createElement("a",{onClick:()=>{_e(!0),pt(!0)}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED"))}))),e.createElement(s.default,{title:Je?"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED":"\u7F16\u8F91\u5E38\u7528\u8BC4\u8BED",open:ot,okText:Je?"\u6DFB\u52A0":"\u786E\u5B9A",onCancel:()=>{O()},onOk:()=>{a.submit()}},e.createElement(i.default,{form:a,onFinish:ne},Je&&e.createElement("span",{className:"font14",style:{color:"#191919"}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED\uFF0C\u53EF\u4EE5\u5E2E\u52A9\u4F60\u63D0\u9AD8\u8BC4\u9605\u4F5C\u4E1A\u7684\u6548\u7387"),e.createElement(i.default.Item,{hidden:!0,name:"id"}),e.createElement(i.default.Item,{className:"mt10",name:"value"},e.createElement(v.default.TextArea,{placeholder:"\u8F93\u5165\u5E38\u7528\u8BC4\u8BED\u3002\u4F8B\u5982\uFF1A\u4F60\u7684\u7F16\u7A0B\u4F5C\u4E1A\u6574\u4F53\u8868\u73B0\u826F\u597D\uFF0C\u4F46\u4ECD\u6709\u4E00\u4E9B\u5C0F\u7684\u6539\u8FDB\u7A7A\u95F4\u3002",autoSize:{minRows:8,maxRows:9},maxLength:100,showCount:!0}))))):null};var ye=(0,o.connect)(({loading:x,user:ve})=>({user:ve,loading:x.effects}))(De)},85057:function(dt,te,u){"use strict";u.d(te,{jL:function(){return D},w9:function(){return We},QD:function(){return du},cQ:function(){return z},op:function(){return yt},O5:function(){return tu},_b:function(){return oe},t7:function(){return q},Gi:function(){return nt},YG:function(){return _e},qp:function(){return v},vr:function(){return Wu},qE:function(){return _t},Je:function(){return b},wb:function(){return m},cq:function(){return O},tp:function(){return _}});var e=u(59301),o={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"},s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6a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eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",D=({dataSource:Ae=[],img:he,imgWidth:H=346,title:Te,sunTitle:it,bannerExtraContent:Yt})=>e.createElement("div",{className:o.banner},e.createElement("div",{className:o.content},e.createElement("aside",null,e.createElement("p",null,e.createElement("b",null,Te),e.createElement("span",null,it)),Ae.length>0&&e.createElement("div",{className:o.btns},Ae.map((lt,je)=>e.createElement("div",{key:je,onClick:lt.click},lt.name,lt.sign?e.createElement("img",{src:s,width:39}):null))),Yt),he&&e.createElement("img",{style:{marginTop:33,marginRight:38},src:he,width:H}))),j={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"},X=u(92310),P=u.n(X),U=u(89392),v=({dataSource:Ae=[],value:he,onChange:H,onTitleChange:Te,className:it,title:Yt,titleWidth:lt=41,style:je={},fontColor:Ve="#6A7283",showCount:Gt})=>{const[Bt,$e]=(0,e.useState)(0),[Eu,mu]=(0,e.useState)(!1),kt=(0,e.useRef)(null),su=(0,e.useRef)(null);return(0,e.useEffect)(()=>{var qt;Ae.length!==0&&(((qt=kt==null?void 0:kt.current)==null?void 0:qt.clientHeight)>97?$e(1):$e(0)),Ae.length===0&&$e(0),mu(!1)},[Ae]),e.createElement("div",{className:P()(j.row,it),style:je},e.createElement("div",{onClick:(0,U.throttle)(()=>Te==null?void 0:Te(),2e3),style:{width:lt,marginTop:Eu?12:4},className:`${j.title} ${Te?"current":""}`},Yt),e.createElement("div",{className:Eu?`${j.tagsWrap} ${j.tagsBorderWrap}`:j.tagsWrap},e.createElement("div",{className:j.bar,ref:su,style:Bt>0?{height:Bt===1?97:"auto",overflow:Bt===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},e.createElement("div",{className:j.tag,ref:kt},Ae==null?void 0:Ae.map(qt=>e.createElement("span",{onClick:()=>H(qt.id),key:qt.id,style:{color:Ve},className:he===qt.id?j.active:""},e.createElement("span",{title:qt.name,className:j.name},qt.name),!!Gt&&e.createElement("span",{className:j.num},qt.count))))),!!Bt&&e.createElement(e.Fragment,null,Bt===1?e.createElement("div",{onClick:()=>{var qt;$e(2),((qt=kt==null?void 0:kt.current)==null?void 0:qt.clientHeight)>245?mu(!0):mu(!1)},className:j.action},"\u5C55\u5F00",e.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):e.createElement("div",{onClick:()=>{su.current.scrollTop=0,$e(1),mu(!1)},className:j.action},"\u6536\u8D77",e.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},h={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"},_=({dataSource:Ae=[],value:he,onChange:H,className:Te,style:it={}})=>e.createElement("div",{style:it,className:P()(h.tabs,Te)},Ae.map(Yt=>e.createElement("span",{onClick:()=>H(Yt.id),className:he===Yt.id?h.active:"",key:Yt.id},Yt.name))),d={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"},E=u(92832),q=({dataSource:Ae=[],value:he="",onChange:H,onInputChange:Te=()=>{},className:it,style:Yt={},placeholder:lt,allowClear:je=!1})=>{var Ve;const[Gt,Bt]=(0,e.useState)(""),[$e,Eu]=(0,e.useState)("");(0,e.useEffect)(()=>{var su;let qt=he;(su=JSON.stringify(he))!=null&&su.includes("{")&&(Bt(he.id),qt=he.value||"");try{Eu(decodeURIComponent(qt||""))}catch(Ku){Eu(decodeURIComponent(qt||""))}},[he]);const mu=()=>{H(encodeURIComponent($e),Gt||null)},kt=su=>{su!==Gt&&(Bt(su),H(encodeURIComponent($e),su))};return e.createElement("div",{className:P()(d.input,it),style:Yt},!!Ae.length&&e.createElement("div",{className:d.dropdown},e.createElement("div",{className:d.text},(Ve=Ae.find(su=>su.id===Gt))==null?void 0:Ve.name,e.createElement("i",{className:"iconfont icon-zhankai4"}),e.createElement("b",{className:d.b1}),e.createElement("b",{className:d.b2})),e.createElement("div",{className:d.menu},Ae.map((su,qt)=>e.createElement("div",{key:qt,onClick:()=>kt(su.id)},su.name)))),e.createElement(E.default,{onPressEnter:mu,value:$e,onChange:su=>{Eu(su.target.value),Te(encodeURIComponent(su.target.value),Gt||null)},bordered:!1,placeholder:lt}),e.createElement("i",{onClick:mu,className:"iconfont icon-sousuo9 font14 pl10 current"}))},c={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"},b=({value:Ae,onChange:he,className:H,total:Te,pageSize:it,style:Yt={}})=>{const lt=Ae<2,je=Ae>=Math.ceil(Te/it);return Te<=it?e.createElement(e.Fragment,null):e.createElement("div",{className:P()(c.quickPager,H),style:Yt},e.createElement("div",{onClick:()=>{lt||he(Ae-1,"prev")},className:lt?c.disabled:""},"\u4E0A\u4E00\u9875"),e.createElement("div",{onClick:()=>{je||he(Ae+1,"next")},className:je?c.disabled:""},"\u4E0B\u4E00\u9875"))},A={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"},R=u(71418),S=u(6848),Q=u(13570),M=u(3294),le=u(955),k=u(96908),De=u(57177),ye=u(81378),x=u(8797),m=({className:Ae,dataSource:he=[],col:H=4,right:Te,bottom:it=23,precision:Yt=0,wrapWidth:lt=1200,trackEventItems:je,loading:Ve})=>{const Gt=Math.floor((lt-(H-1)*Te)/H);return e.createElement(R.Z,{spinning:Ve},e.createElement("div",{className:P()(A.list,Ae)},!!he.length&&he.map((Bt,$e)=>{const{name:Eu,id:mu,identifier:kt,power:su,cover_image_id:qt,pic:Ku}=Bt;return e.createElement("div",{className:A.wrap,key:mu,style:{width:Gt,marginRight:(1+$e)%H===0?0:Te+Yt,marginBottom:it}},e.createElement("a",{target:"_blank",href:`/shixuns/${kt}/challenges`,className:A.li,onClick:tn=>{tn.preventDefault(),je&&(0,le.L9)([je]),su&&(0,le.xg)(`/shixuns/${kt}/challenges`)}},e.createElement("div",{className:A.img},e.createElement("img",{className:A.cover,src:`${Ku}`}),Bt.is_jupyter&&e.createElement("img",{className:A.sign,src:k}),Bt.is_jupyter_lab&&e.createElement("img",{className:A.sign,src:De}),Bt.is_unity_3d&&e.createElement("img",{className:A.sign,src:ye})),e.createElement("div",{className:A.name},e.createElement(S.Z,{title:Eu||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},e.createElement("span",{className:A.e},Eu||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),e.createElement("div",{className:A.tags},e.createElement(S.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},e.createElement("span",null,e.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),e.createElement("span",null,Bt.challenges_count))),!!Bt.myshixuns_count&&e.createElement(S.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},e.createElement("span",null,e.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),e.createElement("span",null,Bt.myshixuns_count))),e.createElement(S.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},e.createElement("span",null,e.createElement("span",null,Bt.level))),e.createElement("div",{className:A.rate},e.createElement(Q.Z,{allowHalf:!0,disabled:!0,defaultValue:Bt.score_info}),e.createElement("span",null,"\xA0",Bt.score_info?`${Bt.score_info}\u5206`:"5\u5206")))),!su&&e.createElement("div",{className:A.lockWrap},e.createElement("img",{src:`${M.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),e.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!he.length&&e.createElement(x.Z,null)))},N={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"},ce=u(24065),f=u(59301),z=({className:Ae,dataSource:he=[],col:H=4,right:Te,bottom:it=23,precision:Yt=0,wrapWidth:lt=1200,trackEventItems:je,loading:Ve,onRemove:Gt=()=>{},isCurrent:Bt=!0,showAlias:$e=!1})=>{const Eu=Math.floor((lt-(H-1)*Te)/H),mu=[{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 f.createElement(R.Z,{spinning:Ve},f.createElement("div",{className:P()(N.list,Ae)},!!(he!=null&&he.length)&&(he==null?void 0:he.map((kt,su)=>{var qt;const{name:Ku,id:tn,identifier:_u,featured:An,school_name:yn,image_url:p,excellent:un,is_plan:hn}=kt;return f.createElement("div",{key:tn,className:N.wrap,style:{width:Eu,marginRight:(1+su)%H===0?0:Te+Yt,marginBottom:it}},f.createElement("a",{className:N.li,onClick:ku=>{ku.preventDefault(),ku.stopPropagation(),je&&(0,le.L9)([je]),(0,le.xg)(`/paths/${_u}`)}},f.createElement("div",{className:N.img},f.createElement("img",{className:N.cover,src:`${p}`}),Bt&&(0,ce.bg)()&&(kt==null?void 0:kt.studying)&&f.createElement("div",{className:`${N.movebq} user-path-items`,onClick:ku=>{ku.stopPropagation(),Gt(kt)}},f.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),f.createElement("span",{className:"c-red"},"\u79FB\u9664")),(qt=kt==null?void 0:kt.subject_tags)==null?void 0:qt.map((ku,cn)=>{var qu,Vu;if(cn===0){const an=(qu=mu.find(Cn=>Cn.name==ku))==null?void 0:qu.swimg;return f.createElement("img",{className:N.sign,src:an,style:{left:"-4px"}})}const xu=(Vu=mu.find(an=>an.name==ku))==null?void 0:Vu.ptimg;return f.createElement("img",{className:N.sign,src:xu,style:{left:`${48+52*(cn-1)+2*cn}px`}})}),f.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(kt==null?void 0:kt.excellent)&&f.createElement("div",{className:N.bq},"\u5F00\u653E\u8BFE\u7A0B"))),f.createElement("div",{className:N.name},f.createElement(S.Z,{title:$e&&(kt!=null&&kt.excellent_alias_name)?f.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Ku}`,f.createElement("br",null),f.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${kt==null?void 0:kt.excellent_alias_name}`)):Ku},f.createElement("span",{className:N.e},$e&&(kt==null?void 0:kt.excellent_alias_name)||Ku))),f.createElement(S.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${yn}`},f.createElement("div",{className:N.unit},f.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),yn)),f.createElement("div",{className:N.tags},f.createElement("div",null,f.createElement(S.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},f.createElement("span",null,f.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),f.createElement("span",null,kt.stages_count))),f.createElement(S.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},f.createElement("span",null,f.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),f.createElement("span",null,kt.members_count)))))))})),!he.length&&f.createElement(x.Z,null)))},r={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"},me="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgy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EiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",a=u(59301),We=({className:Ae,dataSource:he=[],col:H=4,right:Te,bottom:it=23,precision:Yt=0,wrapWidth:lt=1200,trackEventItems:je,loading:Ve,handleVery:Gt=()=>!0})=>{const Bt=Math.floor((lt-(H-1)*Te)/H);return a.createElement(R.Z,{spinning:Ve},a.createElement("div",{className:P()(r.list,Ae)},!!he.length&&he.map(($e,Eu)=>{const{subject_identifier:mu,id:kt,identifier:su,power:qt}=$e,Ku=$e.is_public!=0&&$e.is_public;return a.createElement("div",{className:r.wrap,key:kt,style:{width:Bt,marginRight:(1+Eu)%H===0?0:Te+Yt,marginBottom:it}},a.createElement("a",{className:r.li,onClick:tn=>{tn.preventDefault(),Gt($e==null?void 0:$e.first_category_url)&&(je&&(0,le.L9)([je]),(0,le.xg)($e.first_category_url))}},a.createElement("div",{className:r.top},a.createElement(S.Z,{title:$e.name},a.createElement("div",{className:r.name},$e.name)),a.createElement("img",{className:r.img,src:M.Z.IMG_SERVER+"/images/"+$e.avatar_url}),a.createElement("div",{className:r.text,title:$e.creator},$e.creator),mu&&a.createElement("div",{className:r.btns},a.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),a.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Ku&&a.createElement("div",{className:r.sign},"\u516C\u5F00")),a.createElement("div",{className:r.bottom},$e.visits>0&&a.createElement(S.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},a.createElement("span",null,a.createElement("i",{className:"iconfont icon-liulanyan"}),a.createElement("span",null,$e.visits))),$e.course_members_count>0&&a.createElement(S.Z,{title:"\u6210\u5458",placement:"bottom"},a.createElement("span",null,a.createElement("i",{className:"iconfont icon-chengyuan"}),$e.course_members_count)),$e.tasks_count>0&&a.createElement(S.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},a.createElement("span",null,a.createElement("i",{className:"iconfont icon-zuoye"}),$e.tasks_count)),$e.is_end?a.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):a.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!$e.is_accessible&&a.createElement("div",{className:r.lockWrap},a.createElement("img",{src:`${M.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),a.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!he.length&&a.createElement(x.Z,null)))},ot={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"},pt=u(89070),_e=({dataSource:Ae=[],value:he,onChange:H,className:Te,style:it={},tabBarExtraContent:Yt})=>e.createElement("div",{className:P()(ot.tabs,Te),style:it},e.createElement("div",{className:ot.tabsWrap},Ae.map((lt,je)=>!(lt!=null&<.hide)&&e.createElement("aside",{className:ot.tab,onClick:()=>{H(lt.id),lt.link&&pt.history.push(lt.link)},key:je},e.createElement("div",{className:he===lt.id?ot.active:""},lt.name),(lt==null?void 0:lt.resetCount)==null&&(lt==null?void 0:lt.total)!==void 0&&e.createElement("span",null,"\uFF08",lt==null?void 0:lt.total,"\uFF09"),(lt==null?void 0:lt.resetCount)!==void 0&&(lt==null?void 0:lt.total)!==void 0&&e.createElement(S.Z,{title:(lt==null?void 0:lt.tip)!=null?lt==null?void 0:lt.tip:""},e.createElement("span",{style:{color:"#9096A3"}},"\uFF08",e.createElement("span",{style:{color:"#000"}},lt==null?void 0:lt.resetCount),"/",e.createElement("span",null,lt==null?void 0:lt.total),"\uFF09"))))),e.createElement("div",{className:ot.tabBar},Yt)),nt=({className:Ae,style:he={},children:H})=>e.createElement("div",{className:P()(Ae),style:he},H),Ke={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"},C=u(38854),pe=u(20834);const st=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var O=({sortValue:Ae,dropValue:he,className:H,onSort:Te,onDrop:it,dataSource:Yt=st})=>{var lt;return e.createElement("div",{className:P()(Ke.orderWrap,H)},e.createElement(C.Z,{dropdownRender:()=>e.createElement(pe.default,null,Yt.map((je,Ve)=>e.createElement(pe.default.Item,{key:Ve,onClick:()=>it(je.id)},je.name)))},e.createElement("span",{className:Ke.orderTextWrap},(lt=Yt.find(je=>he===je.id))==null?void 0:lt.name)),e.createElement("span",{className:Ke.orderIconWrap},e.createElement("span",{className:Ke.orderAsc},e.createElement("i",{className:Ae==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Ke.cursorPointer} ${Ke.active}`:`iconfont icon-sanjiaoxing-up font12 ${Ke.cursorPointer}`,onClick:()=>Te(Ae==="asc"?"desc":"asc")})),e.createElement("span",{className:Ke.orderDesc},e.createElement("i",{className:Ae==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Ke.cursorPointer} ${Ke.active}`:`iconfont icon-sanjiaoxing-down font12 ${Ke.cursorPointer}`,onClick:()=>Te(Ae==="asc"?"desc":"asc")}))))},g={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},ne=u(3113),Fe=Object.defineProperty,ie=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,Ft=(Ae,he,H)=>he in Ae?Fe(Ae,he,{enumerable:!0,configurable:!0,writable:!0,value:H}):Ae[he]=H,rt=(Ae,he)=>{for(var H in he||(he={}))Ye.call(he,H)&&Ft(Ae,H,he[H]);if(ie)for(var H of ie(he))wt.call(he,H)&&Ft(Ae,H,he[H]);return Ae},Xt=(Ae,he)=>{var H={};for(var Te in Ae)Ye.call(Ae,Te)&&he.indexOf(Te)<0&&(H[Te]=Ae[Te]);if(Ae!=null&&ie)for(var Te of ie(Ae))he.indexOf(Te)<0&&wt.call(Ae,Te)&&(H[Te]=Ae[Te]);return H},lu=(Ae,he,H)=>new Promise((Te,it)=>{var Yt=Ve=>{try{je(H.next(Ve))}catch(Gt){it(Gt)}},lt=Ve=>{try{je(H.throw(Ve))}catch(Gt){it(Gt)}},je=Ve=>Ve.done?Te(Ve.value):Promise.resolve(Ve.value).then(Yt,lt);je((H=H.apply(Ae,he)).next())}),yt=Ae=>{var he=Ae,{className:H,style:Te,children:it,loading:Yt=!1,openLoading:lt,onClick:je=()=>{},size:Ve="middle",shape:Gt="round"}=he,Bt=Xt(he,["className","style","children","loading","openLoading","onClick","size","shape"]);const[$e,Eu]=(0,e.useState)(!1);return e.createElement(ne.ZP,rt({onClick:(0,U.throttle)(mu=>lu(void 0,null,function*(){lt&&Eu(!0);try{yield je(mu)}catch(kt){console.log("error",kt)}lt&&Eu(!1)}),2e3,{leading:!0,trailing:!1}),className:P()(g.btn,g[`${Ve}-${Gt}`],H),style:Te,size:Ve,shape:Gt,loading:$e||Yt},Bt),it)},Rt={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"},_t=({className:Ae,style:he,children:H=null,onClick:Te,title:it})=>e.createElement("div",{className:P()(Rt.head,Ae),style:he},e.createElement("span",{className:"primary-hover",onClick:Te},e.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),e.createElement("b",{title:it},it),e.createElement("div",{className:Rt.node},H)),hu={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"},du=({confirmShow:Ae=!0,confirmTitle:he,confirmClick:H,cancelShow:Te=!0,cancelTitle:it,cancelClick:Yt,className:lt,style:je,confirmLoading:Ve=!1})=>e.createElement("div",{className:P()(hu.btns,lt),style:je},Ae&&e.createElement(ne.ZP,{loading:Ve,onClick:H,type:"primary",className:hu.confirm},he),Te&&e.createElement(ne.ZP,{onClick:Yt,className:hu.cancel},it)),pu={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"},Wu=({className:Ae,style:he={},LeftContent:H,children:Te,RightContent:it})=>e.createElement("div",{className:P()(pu.fixedBottom,Ae),style:he},e.createElement("div",{className:pu.wrap},e.createElement("div",{className:pu.left},H),e.createElement("div",{className:pu.center},Te),e.createElement("div",{className:pu.right},it))),Be={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"},oe=({className:Ae,style:he={},dataSource:H=[]})=>e.createElement("div",{className:P()(Be.crumbs,Ae),style:he},H.map((Te,it)=>itpt.history.push(Te.path)},Te.name):e.createElement("span",null,Te.name),e.createElement("span",null,"\xA0",">","\xA0")):e.createElement("span",{key:it,style:{color:"#5F6368"}},Te.name))),ke=u(31797),Nt=Object.defineProperty,eu=Object.defineProperties,mt=Object.getOwnPropertyDescriptors,Et=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,Mu=(Ae,he,H)=>he in Ae?Nt(Ae,he,{enumerable:!0,configurable:!0,writable:!0,value:H}):Ae[he]=H,ju=(Ae,he)=>{for(var H in he||(he={}))Ee.call(he,H)&&Mu(Ae,H,he[H]);if(Et)for(var H of Et(he))xt.call(he,H)&&Mu(Ae,H,he[H]);return Ae},Wt=(Ae,he)=>eu(Ae,mt(he)),Yu=(Ae,he)=>{var H={};for(var Te in Ae)Ee.call(Ae,Te)&&he.indexOf(Te)<0&&(H[Te]=Ae[Te]);if(Ae!=null&&Et)for(var Te of Et(Ae))he.indexOf(Te)<0&&xt.call(Ae,Te)&&(H[Te]=Ae[Te]);return H};const{Countdown:Zu}=ke.default;var tu=Ae=>{var he=Ae,{onChange:H}=he,Te=Yu(he,["onChange"]);const[it,Yt]=(0,e.useState)(null);(0,e.useEffect)(()=>{typeof it=="number"&&it>=0&&H(it)},[it]);const lt=je=>{const Ve=Math.floor(je/1e3);Yt(Ve)};return e.createElement(Zu,Wt(ju({},Te),{onChange:lt}))}},33441:function(dt,te,u){"use strict";u.d(te,{Z:function(){return Q}});var e=u(59301),o={anchorNavigation:"anchorNavigation___qD4R0",tabs:"tabs___hVMvA",box:"box___Qz1lW",head:"head___WZZdl"},s=Object.defineProperty,i=Object.getOwnPropertySymbols,D=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable,X=(M,le,k)=>le in M?s(M,le,{enumerable:!0,configurable:!0,writable:!0,value:k}):M[le]=k,P=(M,le)=>{for(var k in le||(le={}))D.call(le,k)&&X(M,k,le[k]);if(i)for(var k of i(le))j.call(le,k)&&X(M,k,le[k]);return M};const U=M=>React.createElement("svg",P({width:17,height:18,xmlns:"http://www.w3.org/2000/svg"},M),React.createElement("title",null,"\u88C5\u9970\u70B9"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"100%",y1:"50%",x2:"0%",y2:"50%",id:"dot_svg__a"},React.createElement("stop",{stopColor:"#5EC7EA",offset:"0%"}),React.createElement("stop",{stopColor:"#3055D0",offset:"100%"}))),React.createElement("g",{transform:"translate(0 -1)",fill:"none",fillRule:"evenodd"},React.createElement("path",{d:"m4.342 2.005 11.896 7.138a1 1 0 0 1 0 1.714L4.342 17.995a1 1 0 0 1-1.378-1.362L6.834 10l-3.87-6.633a1 1 0 0 1 1.378-1.362Z",fill:"url(#dot_svg__a)"}),React.createElement("circle",{fill:"#3061D0",cx:2,cy:10,r:2})));var Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIxMDAlIiB5MT0iNTAlIiB4Mj0iMCUiIHkyPSI1MCUiIGlkPSJhIj48c3RvcCBzdG9wLWNvbG9yPSIjNUVDN0VBIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzMwNTVEMCIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAtMSkiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PHBhdGggZD0ibTQuMzQyIDIuMDA1IDExLjg5NiA3LjEzOGExIDEgMCAwIDEgMCAxLjcxNEw0LjM0MiAxNy45OTVhMSAxIDAgMCAxLTEuMzc4LTEuMzYyTDYuODM0IDEwbC0zLjg3LTYuNjMzYTEgMSAwIDAgMSAxLjM3OC0xLjM2MloiIGZpbGw9InVybCgjYSkiLz48Y2lyY2xlIGZpbGw9IiMzMDYxRDAiIGN4PSIyIiBjeT0iMTAiIHI9IjIiLz48L2c+PC9zdmc+",v=u(99313),h=u(92310),W=u.n(h),_=u(59301),d=Object.defineProperty,E=Object.defineProperties,B=Object.getOwnPropertyDescriptors,q=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,b=(M,le,k)=>le in M?d(M,le,{enumerable:!0,configurable:!0,writable:!0,value:k}):M[le]=k,A=(M,le)=>{for(var k in le||(le={}))c.call(le,k)&&b(M,k,le[k]);if(q)for(var k of q(le))y.call(le,k)&&b(M,k,le[k]);return M},R=(M,le)=>E(M,B(le)),Q=({dataSource:M,className:le,style:k})=>{const[De,ye]=(0,e.useState)([]),[x,ve]=(0,e.useState)(""),m=(0,e.useRef)("");(0,e.useEffect)(()=>{if(M!=null&&M.length){const f=String(Math.random()).slice(-6),Ce=M.map(z=>R(A({},z),{key:`${f}-${z.key}`}));ye(Ce),ve(Ce[0].key)}},[M.length]);const N=f=>{ve(f),m.current=f;const Ce=document.getElementById(f);if(Ce){const z=Ce.getBoundingClientRect().top+window.scrollY-50;window.scrollTo({top:z,behavior:"smooth"})}},ce=()=>{const f=De.map(z=>document.getElementById(z.key)),Ce=window.innerHeight/2;for(const z of f)if(z){const r=z.getBoundingClientRect();if(r.top>=0&&r.top(window.addEventListener("scroll",ce),()=>{window.removeEventListener("scroll",ce)}),[De]),_.createElement("div",{className:W()(o.anchorNavigation,le),style:k},_.createElement(v.default,{items:De,tabBarGutter:60,className:o.tabs,activeKey:x,onChange:N}),De.map(f=>_.createElement("div",{key:f.key,id:f.key,className:o.box},_.createElement("div",{className:o.head},_.createElement("img",{className:"mr10",src:Z,alt:"Dot"}),f.label),_.createElement("div",{className:o.element},f.element))))}},16938:function(dt,te,u){"use strict";var e=u(59301),o=u(43418),s=u(8591),i=u(99064),D=u(89070),j=Object.defineProperty,X=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable,Z=(d,E,B)=>E in d?j(d,E,{enumerable:!0,configurable:!0,writable:!0,value:B}):d[E]=B,v=(d,E)=>{for(var B in E||(E={}))P.call(E,B)&&Z(d,B,E[B]);if(X)for(var B of X(E))U.call(E,B)&&Z(d,B,E[B]);return d},h=(d,E)=>{var B={};for(var q in d)P.call(d,q)&&E.indexOf(q)<0&&(B[q]=d[q]);if(d!=null&&X)for(var q of X(d))E.indexOf(q)<0&&U.call(d,q)&&(B[q]=d[q]);return B},W=(d,E,B)=>new Promise((q,c)=>{var y=R=>{try{A(B.next(R))}catch(S){c(S)}},b=R=>{try{A(B.throw(R))}catch(S){c(S)}},A=R=>R.done?q(R.value):Promise.resolve(R.value).then(y,b);A((B=B.apply(d,E)).next())});const _=d=>{var E=d,{shixunHomeworks:B,dispatch:q}=E,c=h(E,["shixunHomeworks","dispatch"]);const y=(0,D.useParams)();return e.createElement(o.default,{centered:!0,title:"\u63D0\u793A",open:B.actionTabs.key==="\u6253\u56DE\u91CD\u505A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>W(void 0,null,function*(){(yield(0,i.ZP)(`/api/myshixuns/${B.actionTabs.selectArrs.myshixun_identifier}/reset_my_game.json`,{method:"GET",params:{course_id:y.coursesId}})).shixun_identifier&&(s.ZP.success("\u64CD\u4F5C\u6210\u529F"),q({type:"shixunHomeworks/setActionTabs",payload:{}}),q({type:"shixunHomeworks/getWorkList",payload:v({},B.actionTabs.params)}))}),onCancel:()=>{q({type:"shixunHomeworks/setActionTabs",payload:{}})}},e.createElement("p",null,"\u8BE5\u4F5C\u4E1A\u5C06\u88AB\u6253\u56DE\u91CD\u505A\uFF0C\u5B66\u751F\u5B9E\u8BAD\u8BB0\u5F55\u5C06\u88AB\u6E05\u7A7A!"),e.createElement("p",null,"\u786E\u5B9A\u6253\u56DE?"))};te.Z=(0,D.connect)(({shixunHomeworks:d})=>({shixunHomeworks:d}))(_)},83992:function(dt,te,u){"use strict";u.d(te,{n:function(){return pu},Z:function(){return Wu}});var e=u(59301),o=u(78241),s=u(8591),i=u(6848),D=u(43418),j=u(20834),X=u(24905),P=u(95237),U=u(43604),Z=u(92832),v=u(3113),h=u(38854),W=u(1710),_=u(5112),d=u(5871),E=u(58421),B=u(84105),q=u(87395),c=u(67921),y=u(89489),b=u(8797),A=u(955),R=u(16938),S=u(96512),Q=u(99064),M=u(89070),le=Object.defineProperty,k=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,x=(Be,Se,oe)=>Se in Be?le(Be,Se,{enumerable:!0,configurable:!0,writable:!0,value:oe}):Be[Se]=oe,ve=(Be,Se)=>{for(var oe in Se||(Se={}))De.call(Se,oe)&&x(Be,oe,Se[oe]);if(k)for(var oe of k(Se))ye.call(Se,oe)&&x(Be,oe,Se[oe]);return Be},m=(Be,Se)=>{var oe={};for(var ke in Be)De.call(Be,ke)&&Se.indexOf(ke)<0&&(oe[ke]=Be[ke]);if(Be!=null&&k)for(var ke of k(Be))Se.indexOf(ke)<0&&ye.call(Be,ke)&&(oe[ke]=Be[ke]);return oe},N=(Be,Se,oe)=>new Promise((ke,Nt)=>{var eu=Ee=>{try{Et(oe.next(Ee))}catch(xt){Nt(xt)}},mt=Ee=>{try{Et(oe.throw(Ee))}catch(xt){Nt(xt)}},Et=Ee=>Ee.done?ke(Ee.value):Promise.resolve(Ee.value).then(eu,mt);Et((oe=oe.apply(Be,Se)).next())});const ce=Be=>{var Se=Be,{shixunHomeworks:oe,dispatch:ke}=Se,Nt=m(Se,["shixunHomeworks","dispatch"]);const eu=(0,M.useParams)(),[mt,Et]=(0,e.useState)(!0),[Ee,xt]=(0,e.useState)(!1),[Mu]=o.default.useForm(),ju=()=>N(void 0,null,function*(){const Wt=Mu.getFieldValue();(yield(0,Q.ZP)(`/api/homework_commons/${eu.categoryId}/batch_comment.json`,{method:"post",body:{student_work_ids:[...oe.actionTabs.selectArrs],cover_all:mt,hidden_comment:Wt.hidden_comment,comment:Wt.comment}})).status===0&&(s.ZP.success("\u8BC4\u9605\u6210\u529F"),Mu.resetFields(),ke({type:"shixunHomeworks/setActionTabs",payload:{}}),ke({type:"shixunHomeworks/getWorkList",payload:ve({},oe.actionTabs.params)}))});return e.createElement(e.Fragment,null,e.createElement(D.default,{centered:!0,title:"\u4E00\u952E\u70B9\u8BC4",open:oe.actionTabs.key==="\u4E00\u952E\u70B9\u8BC4",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>N(void 0,null,function*(){const Wt=Mu.getFieldValue();JSON.stringify(Wt)==="{}"||Wt.hidden_comment===""&&Wt.comment===""?xt(!0):oe.workList.partial_comment?ke({type:"shixunHomeworks/setActionTabs",payload:{key:"\u4E00\u952E\u70B9\u8BC4\u786E\u8BA4",selectArrs:oe.actionTabs.selectArrs,params:oe.actionTabs.params}}):ju()}),onCancel:()=>{ke({type:"shixunHomeworks/setActionTabs",payload:{}})}},e.createElement(o.default,{form:Mu,onChange:()=>{Ee&&xt(!1)}},e.createElement("p",null,"\u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),e.createElement(o.default.Item,{name:"comment"},e.createElement(Z.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:8})),e.createElement("p",null,"\u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),e.createElement(o.default.Item,{name:"hidden_comment"},e.createElement(Z.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:8}))),Ee&&e.createElement("p",{className:"c-red"},"\u8BC4\u9605\u5185\u5BB9\u81F3\u5C11\u6709\u4E00\u4E2A\u4E0D\u4E3A\u7A7A")),e.createElement(D.default,{centered:!0,title:e.createElement("span",null,e.createElement(S.Z,{className:"c-orange mr20"}),"\u63D0\u793A"),open:oe.actionTabs.key==="\u4E00\u952E\u70B9\u8BC4\u786E\u8BA4",okText:"\u786E\u5B9A\u70B9\u8BC4",cancelText:"\u653E\u5F03\u70B9\u8BC4",onOk:()=>{ju()},onCancel:()=>{ke({type:"shixunHomeworks/setActionTabs",payload:{}})},width:400},e.createElement("div",{className:"tc"},e.createElement("p",null,"\u90E8\u5206\u5B66\u751F\u5DF2\u6709\u70B9\u8BC4\u5185\u5BB9\uFF0C\u662F\u5426\u8986\u76D6\u5DF2\u6709\u70B9\u8BC4\u5185\u5BB9\uFF1F"),e.createElement("p",null,e.createElement(_.ZP.Group,{onChange:Wt=>{Et(Wt.target.value)},value:mt},e.createElement(_.ZP,{value:!0},"\u8986\u76D6\u5DF2\u6709\u70B9\u8BC4"),e.createElement(_.ZP,{value:!1},"\u8DF3\u8FC7\u5DF2\u6709\u70B9\u8BC4"))))))};var f=(0,M.connect)(({shixunHomeworks:Be})=>({shixunHomeworks:Be}))(ce),Ce=u(36708),z=u(24065),r={wrap:"wrap___altfw",maxWidth70:"maxWidth70___Q4NoO",maxWidth80:"maxWidth80___lwsmt",maxWidth100:"maxWidth100___Wnsw8",maxWidth110:"maxWidth110___zQh0P",maxWidth120:"maxWidth120___gjwfa",reviewStatusTooltip:"reviewStatusTooltip___um7Rt",color32C:"color32C___GIjgW",MdEditor:"MdEditor___OuyKH",tr1:"tr1___nwwbX",TableDom:"TableDom___pl59W"},me=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,We=(Be,Se)=>{var oe={};for(var ke in Be)a.call(Be,ke)&&Se.indexOf(ke)<0&&(oe[ke]=Be[ke]);if(Be!=null&&me)for(var ke of me(Be))Se.indexOf(ke)<0&&we.call(Be,ke)&&(oe[ke]=Be[ke]);return oe},ot=(Be,Se,oe)=>new Promise((ke,Nt)=>{var eu=Ee=>{try{Et(oe.next(Ee))}catch(xt){Nt(xt)}},mt=Ee=>{try{Et(oe.throw(Ee))}catch(xt){Nt(xt)}},Et=Ee=>Ee.done?ke(Ee.value):Promise.resolve(Ee.value).then(eu,mt);Et((oe=oe.apply(Be,Se)).next())});const pt=Be=>{var Se=Be,{shixunHomeworks:oe,dispatch:ke}=Se,Nt=We(Se,["shixunHomeworks","dispatch"]),eu,mt,Et,Ee;const xt=(0,M.useParams)(),[Mu,ju]=(0,e.useState)(!1),[Wt,Yu]=(0,e.useState)((mt=(eu=oe.actionTabs.selectArrs)==null?void 0:eu.data)==null?void 0:mt.name),[Zu]=o.default.useForm();(0,e.useEffect)(()=>{var tu,Ae,he,H,Te,it;oe.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4"&&Zu.setFieldsValue({comment:(Ae=(tu=oe.actionTabs.selectArrs)==null?void 0:tu.data)==null?void 0:Ae.work_comment,hidden_comment:(H=(he=oe.actionTabs.selectArrs)==null?void 0:he.data)==null?void 0:H.work_comment_hidden}),Yu((it=(Te=oe.actionTabs.selectArrs)==null?void 0:Te.data)==null?void 0:it.name)},[oe.actionTabs.key]);const au=()=>ot(void 0,null,function*(){var tu,Ae;const he=Zu.getFieldValue();if((yield(0,Q.ZP)(`/api/student_works/${(Ae=(tu=oe.actionTabs.selectArrs)==null?void 0:tu.data)==null?void 0:Ae.homeworkId}/shixun_work_comment.json`,{method:"post",body:{hidden_comment:he.hidden_comment,comment:he.comment}})).status===0)return s.ZP.success("\u8BC4\u9605\u6210\u529F"),Zu.resetFields(),ke({type:"shixunHomeworks/setActionTabs",payload:{}}),ke({type:"shixunHomeworks/getWorkList",payload:xt})});return e.createElement(e.Fragment,null,e.createElement(D.default,{centered:!0,title:(Ee=(Et=oe.actionTabs.selectArrs)==null?void 0:Et.data)!=null&&Ee.work_comment_hidden?"\u66F4\u6539"+Wt+"\u70B9\u8BC4":Wt+"\u70B9\u8BC4",open:oe.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>ot(void 0,null,function*(){const tu=Zu.getFieldValue();JSON.stringify(tu)==="{}"||tu.hidden_comment===""&&tu.comment===""?ju(!0):au()}),onCancel:()=>{ke({type:"shixunHomeworks/setActionTabs",payload:{}})}},e.createElement(o.default,{form:Zu,onChange:()=>{Mu&&ju(!1)}},e.createElement("p",null,"\u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),e.createElement(o.default.Item,{name:"comment"},e.createElement(Z.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:8})),e.createElement("p",null,"\u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),e.createElement(o.default.Item,{name:"hidden_comment"},e.createElement(Z.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:8}))),Mu&&e.createElement("p",{className:"c-red"},"\u8BC4\u9605\u5185\u5BB9\u81F3\u5C11\u6709\u4E00\u4E2A\u4E0D\u4E3A\u7A7A")))};var Je=(0,M.connect)(({shixunHomeworks:Be})=>({shixunHomeworks:Be}))(pt),_e=Object.getOwnPropertySymbols,Dt=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,Ke=(Be,Se)=>{var oe={};for(var ke in Be)Dt.call(Be,ke)&&Se.indexOf(ke)<0&&(oe[ke]=Be[ke]);if(Be!=null&&_e)for(var ke of _e(Be))Se.indexOf(ke)<0&&nt.call(Be,ke)&&(oe[ke]=Be[ke]);return oe},C=(Be,Se,oe)=>new Promise((ke,Nt)=>{var eu=Ee=>{try{Et(oe.next(Ee))}catch(xt){Nt(xt)}},mt=Ee=>{try{Et(oe.throw(Ee))}catch(xt){Nt(xt)}},Et=Ee=>Ee.done?ke(Ee.value):Promise.resolve(Ee.value).then(eu,mt);Et((oe=oe.apply(Be,Se)).next())});const pe=Be=>{var Se=Be,{shixunHomeworks:oe,dispatch:ke}=Se,Nt=Ke(Se,["shixunHomeworks","dispatch"]);const eu=(0,M.useParams)(),[mt,Et]=(0,e.useState)([]),[Ee,xt]=(0,e.useState)([]);(0,e.useEffect)(()=>{oe.actionTabs.key==="\u8D28\u91CF\u68C0\u6D4B"&&Mu()},[oe.actionTabs.key]);function Mu(){return C(this,null,function*(){const Wt=yield(0,Q.ZP)(`/api/homework_commons/${eu.categoryId}/code_quality_analyses/group_list.json`,{method:"GET",params:{page:1,limit:200}});Et(Wt)})}const ju=[{title:"\u5206\u73ED\u60C5\u51B5",dataIndex:"name"},{title:"\u6709\u6548\u4F5C\u54C1\u6570",dataIndex:"works_count"},{title:"\u68C0\u6D4B\u8FDB\u5EA6",dataIndex:"status"},{title:"\u4E0A\u6B21\u8BC4\u5206\u65F6\u95F4",dataIndex:"last_analysis_time"}];return e.createElement(e.Fragment,null,e.createElement(D.default,{centered:!0,title:"\u4EE3\u7801\u8D28\u91CF\u8BC4\u5206",open:oe.actionTabs.key==="\u8D28\u91CF\u68C0\u6D4B",width:700,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>C(void 0,null,function*(){const Wt=yield(0,Q.ZP)(`/api/homework_commons/${eu.categoryId}/code_quality_analyses.json`,{method:"POST",body:{group_ids:Ee}});(Wt==null?void 0:Wt.status)===0&&(M.history.replace(`/classrooms/${eu.coursesId}/shixun_homework/${eu.categoryId}/detail?tabs=4`),window.location.reload(),ke({type:"shixunHomeworks/setActionTabs",payload:{}}),xt([]))}),onCancel:()=>{xt([]),ke({type:"shixunHomeworks/setActionTabs",payload:{}})}},e.createElement(W.default,{rowSelection:{type:"checkbox",onChange:(Wt,Yu)=>{xt([...Wt])},selectedRowKeys:Ee,getCheckboxProps:Wt=>({disabled:Wt.status==="\u8FDB\u884C\u4E2D"||Wt.works_count===0})},rowKey:Wt=>Wt.key||Wt.id,scroll:{y:300},pagination:!1,columns:ju,dataSource:mt==null?void 0:mt.group_list})))};var st=(0,M.connect)(({shixunHomeworks:Be})=>({shixunHomeworks:Be}))(pe),Le=u(12290),O=u(78297),g=u(46474),ne=Object.defineProperty,Fe=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,wt=(Be,Se,oe)=>Se in Be?ne(Be,Se,{enumerable:!0,configurable:!0,writable:!0,value:oe}):Be[Se]=oe,Ft=(Be,Se)=>{for(var oe in Se||(Se={}))ie.call(Se,oe)&&wt(Be,oe,Se[oe]);if(Fe)for(var oe of Fe(Se))Ye.call(Se,oe)&&wt(Be,oe,Se[oe]);return Be},rt=(Be,Se,oe)=>new Promise((ke,Nt)=>{var eu=Ee=>{try{Et(oe.next(Ee))}catch(xt){Nt(xt)}},mt=Ee=>{try{Et(oe.throw(Ee))}catch(xt){Nt(xt)}},Et=Ee=>Ee.done?ke(Ee.value):Promise.resolve(Ee.value).then(eu,mt);Et((oe=oe.apply(Be,Se)).next())});const Xt=({shixunHomeworks:Be,dispatch:Se,isShow:oe,setIsShow:ke,item:Nt,coursesId:eu,categoryId:mt})=>{const[Et,Ee]=(0,e.useState)({page:1,limit:10}),[xt,Mu]=(0,e.useState)([]),[ju,Wt]=(0,e.useState)(!1);(0,e.useEffect)(()=>{oe&&Yu()},[oe]);function Yu(){return rt(this,null,function*(){Wt(!0);const au=yield(0,Q.ZP)(`/api/student_works/${Nt.id}/game_details.json`,{method:"get",params:Ft({},Et)});Wt(!1),au.status===0&&Mu(au==null?void 0:au.data)})}const Zu=[{title:"\u5E8F\u53F7",dataIndex:"number",width:50,fixed:"left",ellipsis:!0,render:(au,tu,Ae)=>e.createElement("span",{style:{color:"#000"}},Et.limit*(Et.page-1)+Ae+1)},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",key:"name",ellipsis:!0,render:(au,tu,Ae)=>e.createElement("span",{style:{color:"#000"}},au)},{title:"\u901A\u5173\u8BE6\u60C5",dataIndex:"complete_status",key:"complete_status",ellipsis:!0,width:100,render:(au,tu,Ae)=>e.createElement("span",null,au==0?"\u672A\u901A\u5173":au==4?"\u622A\u6B62\u540E\u901A\u5173":"\u5DF2\u901A\u5173")},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",key:"evaluate_count",width:100,ellipsis:!0,render:(au,tu,Ae)=>e.createElement("span",{style:{color:"#333"}},au)},{title:"\u5B9E\u8BAD\u8017\u65F6",dataIndex:"time_consuming",key:"time_consuming",width:120,ellipsis:!0,render:(au,tu,Ae)=>e.createElement("span",{style:{color:"#333"}},au)}];return e.createElement(e.Fragment,null,e.createElement(D.default,{centered:!0,title:"\u901A\u5173\u60C5\u51B5",open:oe,width:700,footer:null,maskClosable:!1,onCancel:()=>{Et.page=1,Et.limit=10,Ee(Ft({},Et)),ke(!1)}},e.createElement("div",{style:{display:"flex",justifyContent:"flex-start",alignItems:"center",marginBottom:"20px"}},e.createElement("div",{style:{maxWidth:"200px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",WebkitLineClamp:1}},e.createElement("span",{style:{color:"#666",marginRight:"10px"}},"\u5B66\u751F\u59D3\u540D"),e.createElement("span",{title:Nt==null?void 0:Nt.user_name,style:{color:"#232B40"}},Nt==null?void 0:Nt.user_name)),e.createElement("div",{style:{marginLeft:"50px",marginRight:"50px",maxWidth:"180px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",WebkitLineClamp:1}},e.createElement("span",{style:{color:"#666",marginRight:"10px"}},"\u5B66\u53F7"),e.createElement("span",{title:Nt==null?void 0:Nt.student_id,style:{color:"#232B40"}},(Nt==null?void 0:Nt.student_id)||"--")),e.createElement("div",{style:{maxWidth:"200px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",WebkitLineClamp:1}},e.createElement("span",{style:{color:"#666",marginRight:"10px"}},"\u73ED\u7EA7"),e.createElement("span",{title:Nt==null?void 0:Nt.group_name,style:{color:"#232B40"}},(Nt==null?void 0:Nt.group_name)||"--"))),e.createElement(W.default,{scroll:{y:380},columns:Zu,loading:ju,style:{marginBottom:Et.limit>(xt==null?void 0:xt.count)?"16px":"0"},dataSource:xt.games,pagination:{size:"default",showQuickJumper:!0,showSizeChanger:!0,pageSizeOptions:["10","15","50","100","200"],hideOnSinglePage:!0,pageSize:Et.limit,current:Et.page,position:["bottomRight"],onChange:(au,tu)=>{Et.page=au,Et.limit=tu,Ee(Ft({},Et)),Yu()},total:xt==null?void 0:xt.count,showTotal:(au,tu)=>e.createElement("span",null,"\u5171",e.createElement("span",{style:{color:"#165DFF"}}," ",au," "),"\u6761\u6570\u636E")}})))};var lu=(0,M.connect)(({shixunHomeworks:Be})=>({shixunHomeworks:Be}))(Xt),L=u(59301),yt=Object.defineProperty,Rt=Object.getOwnPropertySymbols,Qt=Object.prototype.hasOwnProperty,_t=Object.prototype.propertyIsEnumerable,hu=(Be,Se,oe)=>Se in Be?yt(Be,Se,{enumerable:!0,configurable:!0,writable:!0,value:oe}):Be[Se]=oe,Cu=(Be,Se)=>{for(var oe in Se||(Se={}))Qt.call(Se,oe)&&hu(Be,oe,Se[oe]);if(Rt)for(var oe of Rt(Se))_t.call(Se,oe)&&hu(Be,oe,Se[oe]);return Be},du=(Be,Se,oe)=>new Promise((ke,Nt)=>{var eu=Ee=>{try{Et(oe.next(Ee))}catch(xt){Nt(xt)}},mt=Ee=>{try{Et(oe.throw(Ee))}catch(xt){Nt(xt)}},Et=Ee=>Ee.done?ke(Ee.value):Promise.resolve(Ee.value).then(eu,mt);Et((oe=oe.apply(Be,Se)).next())});const pu=({value:Be,placeholder:Se=""})=>{if(Be==null||Be==="")return L.createElement("span",null,Se);{const oe=Number(Be);if(oe>=80)return L.createElement("span",{style:{color:"#009C0F"}},oe);if(oe<80&&oe>=60)return L.createElement("span",{style:{color:"#FA6400"}},oe);if(oe<60)return L.createElement("span",{style:{color:"#E30000"}},oe)}},Qu=({shixunHomeworks:Be,classroomList:Se,loading:oe,dispatch:ke,setExportParams:Nt,user:eu})=>{var mt,Et,Ee,xt,Mu,ju,Wt,Yu,Zu,au,tu,Ae;const he=(0,M.useParams)(),[H,Te]=(0,e.useState)(Cu(Cu({},{page:1,limit:20,order:"work_score",b_order:"desc"}),he)),[it]=o.default.useForm(),[Yt,lt]=(0,e.useState)(),[je,Ve]=(0,e.useState)({}),[Gt,Bt]=(0,e.useState)([]),[$e,Eu]=(0,e.useState)(!1),[mu,kt]=(0,e.useState)([]),[su,qt]=(0,e.useState)(!1),[Ku,tn]=(0,e.useState)(),[_u,An]=(0,e.useState)(1),[yn,p]=(0,e.useState)(),[un,hn]=(0,e.useState)(),[ku,cn]=(0,e.useState)(),[qu,Vu]=(0,e.useState)(),[xu,an]=(0,e.useState)(),[Cn,Zt]=(0,e.useState)(!1),[$n,Dn]=(0,e.useState)(!1),[el,On]=(0,e.useState)(),tl=(0,M.useLocation)();(0,e.useEffect)(()=>(Tu(),()=>{Ve([]),Bt([])}),[H.coursesId]),(0,e.useEffect)(()=>{var fe;const at=JSON.parse(JSON.stringify(Be.workList));!((fe=at==null?void 0:at.student_works)!=null&&fe.length)&&(at!=null&&at.id)?(at.student_works=[Cu({},at)],Ve(at)):(at!=null&&at.id&&Bt([Cu(Cu({},at),{number:"\u6211"})]),Ve(Cu({},at)))},[Be.workList]);const Tu=fe=>(Nt(Cu({},H)),ke({type:"shixunHomeworks/getWorkList",payload:H}));(0,e.useEffect)(()=>{ke({type:"user/getUserInfo",payload:{course_id:H.coursesId}})},[]);const Fl=()=>du(void 0,null,function*(){const fe=yield(0,Ce.Uc)({categoryId:he.categoryId});lt(fe==null?void 0:fe.update_score)}),ul=()=>du(void 0,null,function*(){ke({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6210\u7EE9\u8BA1\u7B97\u4E2D\uFF0C\u8BF7\u7A0D\u5019..."}});const fe=yield(0,Ce.Vs)({categoryId:he.categoryId});ke({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),(fe==null?void 0:fe.status)===0&&(s.ZP.success(fe==null?void 0:fe.message),Tu())}),nl=()=>{H.page=1;const fe=Object.assign({},it.getFieldsValue());delete H.course_group,delete H.teacher_comment,Object.keys(fe).map(function(at){var $t;switch(at){case"task_status":fe[at].includes("all")||!fe[at].length?(delete H.work_status,it.setFieldsValue({task_status:"all"})):(H.work_status=fe[at],it.setFieldsValue({task_status:H.work_status}));break;case"course_group_info":fe[at].includes("all")||!fe[at].length?(delete H.course_group,it.setFieldsValue({course_group_info:"all"})):(H.course_group=fe[at],it.setFieldsValue({course_group_info:H.course_group}));break;case"teacher_comment":fe[at].includes("all")||!fe[at].length?(delete H.teacher_comment,it.setFieldsValue({teacher_comment:"all"})):(H.teacher_comment=(($t=fe[at])==null?void 0:$t.length)===1?Number(fe[at][0]):"",it.setFieldsValue({teacher_comment:fe[at]}));break}}),Tu()};(0,e.useEffect)(()=>{document.getElementById("divhe")&&document.getElementById("divhe").scrollHeight>47&&(an(47),Zt(!0))},[document.getElementById("divhe")]);const ll=(fe,at)=>{H.page=fe,H.limit=20,Tu()};function dn(){An(1),p(""),hn(""),cn(""),Vu(""),kt([])}const Mt=[{title:"\u5E8F\u53F7",dataIndex:"number",align:"center",width:50,fixed:"left",ellipsis:!0,render:(fe,at,$t)=>H.limit*(H.page-1)+$t+1},{title:"\u59D3\u540D",dataIndex:"user_name",align:"center",width:110,fixed:"left",ellipsis:!0,render:fe=>L.createElement(i.Z,{placement:"bottomLeft",title:fe},L.createElement("span",{className:"current"},fe))},!(0,z.Jd)()&&{title:"\u5B66\u53F7",dataIndex:"student_id",align:"center",sorter:!0,fixed:"left",width:100,ellipsis:!0,showSorterTooltip:!1,sortOrder:H.order==="student_id"?H.b_order==="desc"?"descend":"ascend":null,render:fe=>L.createElement(i.Z,{placement:"bottomLeft",title:fe||"--"},L.createElement("span",{className:"current"},fe||"--"))},{title:"\u5206\u73ED",dataIndex:"group_name",align:"center",width:100,fixed:"left",ellipsis:!0,render:(fe,at)=>fe?L.createElement(i.Z,{placement:"bottom",title:fe},L.createElement("span",{className:"current"},fe)):"--"},{title:"\u4F5C\u4E1A\u72B6\u6001",dataIndex:"work_status",align:"center",width:94,ellipsis:!0,fixed:"left",sorter:!0,showSorterTooltip:!1,sortOrder:H.order==="work_status"?H.b_order==="desc"?"descend":"ascend":null,render:fe=>L.createElement(A.lC,{status:fe})},{title:"\u5B8C\u6210\u65F6\u95F4",align:"center",dataIndex:"achieve_time",ellipsis:!0,sorter:!0,sortOrder:H.order==="achieve_time"?H.b_order==="desc"?"descend":"ascend":null,render:(fe,at)=>L.createElement(i.Z,{placement:"bottomLeft",title:fe},L.createElement("span",{className:"current"},fe))},{title:"\u901A\u8FC7\u60C5\u51B5",align:"center",dataIndex:"achieve_info",ellipsis:!0,render:(fe,at)=>L.createElement("span",{onClick:$t=>{var Nu;$t.stopPropagation(),(Nu=je.homework_status)!=null&&Nu.includes("\u5BFC\u5165")&&(On(at),Dn(!0))}},fe||"- -")},{title:"\u6700\u7EC8\u6210\u7EE9",align:"center",dataIndex:"score",ellipsis:!0,sorter:!0,sortOrder:H.order==="work_score"?H.b_order==="desc"?"descend":"ascend":null,render:(fe,at)=>L.createElement(i.Z,{title:L.createElement(L.Fragment,null,L.createElement("div",null,"\u8BD5\u9898\u5F97\u5206\uFF1A",(at==null?void 0:at.late_final_score)||0),L.createElement("div",null,"\u8865\u4EA4\u6263\u5206\uFF1A",(at==null?void 0:at.late_penalty)||0),L.createElement("div",null,"\u6700\u7EC8\u6210\u7EE9\uFF1A",(at==null?void 0:at.score)||0))},pu({value:fe,placeholder:"- -"}))},{title:"\u5B8C\u6210\u65F6\u957F",dataIndex:"achieve_time_long",align:"center",sorter:!0,ellipsis:!0,sortOrder:H.order==="achieve_time_long"?H.b_order==="desc"?"descend":"ascend":null,render:(fe,at)=>fe&&fe!="--"?L.createElement(i.Z,{placement:"bottom",title:fe},L.createElement("span",{className:"current"},fe)):"--"},((mt=je.homework_status)==null?void 0:mt.includes("\u5BFC\u5165"))&&{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"sum_evaluate_count",align:"center"},!((Et=je.homework_status)!=null&&Et.includes("\u5BFC\u5165"))&&{title:L.createElement("span",null,"\u8BC4\u9605\u72B6\u6001"),align:"center",dataIndex:"has_comment",fixed:"right",ellipsis:!0,render:fe=>fe?"\u5DF2\u8BC4\u9605":"\u672A\u8BC4\u9605"},{title:"\u64CD\u4F5C",dataInex:"action",align:"center",fixed:"right",ellipsis:!0,className:"workListTable",render:(fe,at)=>{var $t;return($t=je.homework_status)!=null&&$t.includes("\u5BFC\u5165")?(0,z.GJ)()?L.createElement("a",{onClick:Nu=>{Nu.stopPropagation(),ke({type:"classroomList/setActionTabs",payload:{key:"\u4FEE\u6539\u6210\u7EE9",id:at==null?void 0:at.id,type:"normal"}})}},"\u4FEE\u6539\u6210\u7EE9"):L.createElement("a",{onClick:Nu=>{Nu.stopPropagation(),On(at),Dn(!0)}},"\u67E5\u770B"):(0,z.dE)()?L.createElement("div",null,(0,A.JL)(at==null?void 0:at.work_status)==="\u672A\u5F00\u542F"?L.createElement("span",null,"--"):L.createElement("a",{onClick:Nu=>{var nn;if(Nu.stopPropagation(),(0,z.Rm)()&&!((nn=Se.AssistantObject.hack)!=null&&nn.can_view)){s.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}window.open(`/classrooms/${H.coursesId}/program_homework/${H.categoryId}/${at.id}/${at.user_id}/comment`,"_blank")}},"\u67E5\u770B")):L.createElement("a",{target:"_blank",onClick:Nu=>{var nn,En;if(Nu.stopPropagation(),(0,z.Rm)()&&!((nn=Se.AssistantObject.hack)!=null&&nn.can_view)){s.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}if((En=eu.userInfo)!=null&&En.professional_certification)window.open(`/classrooms/${H.coursesId}/program_homework/${H.categoryId}/${at.id}/${at.user_id}/comment`,"_blank");else return D.default.confirm({title:"\u63D0\u793A",centered:!0,content:L.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,A.xg)("/account/certification")}}),!1}},"\u67E5\u770B\u4F5C\u4E1A")}}].filter(fe=>!!fe),Ut=()=>{var fe,at;return L.createElement(j.default,null,L.createElement(j.default.Item,{onClick:()=>{var $t;if((0,z.Rm)()&&!(($t=Se.AssistantObject.hack)!=null&&$t.can_download)){s.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}ke({type:"classroomList/setActionTabs",payload:{key:"\u9009\u62E9\u73ED\u7EA7",title:"\u5BFC\u51FA\u5B66\u751F\u6210\u7EE9",course_groups:je==null?void 0:je.course_group_info,fn:()=>{(0,O.Iy)(JSON.parse(sessionStorage.all_student_works_params),"hack_work_list")}}})},key:"1"},"\u5B66\u751F\u6210\u7EE9"),(0,z.GJ)()&&((fe=je==null?void 0:je.student_works)==null?void 0:fe.length)>0&&!((at=je==null?void 0:je.homework_status)!=null&&at.includes("\u5BFC\u5165"))&&L.createElement(j.default.Item,{key:"3",onClick:()=>{var $t;if((0,z.Rm)()&&!(($t=Se.AssistantObject.hack)!=null&&$t.can_download)){s.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}ke({type:"classroomList/setActionTabs",payload:{key:"\u9009\u62E9\u73ED\u7EA7",title:"\u5BFC\u51FA\u7F16\u7A0B\u62A5\u544A",course_groups:je==null?void 0:je.course_group_info,fn:()=>{var Nu,nn,En,xn;ke({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5BFC\u51FA\u7F16\u7A0B\u62A5\u544A",type:2}}),localStorage.setItem("dowolders","1"),M.history.push(`/classrooms/${H==null?void 0:H.coursesId}/program_homework/${H.categoryId}/${(nn=(Nu=je==null?void 0:je.student_works)==null?void 0:Nu[0])==null?void 0:nn.id}/${(xn=(En=je==null?void 0:je.student_works)==null?void 0:En[0])==null?void 0:xn.user_id}/comment`)}}})}},"\u7F16\u7A0B\u62A5\u544A"),L.createElement(j.default.Item,{key:"2",onClick:()=>{var $t;if((0,z.Rm)()&&!(($t=Se.AssistantObject.hack)!=null&&$t.can_download)){s.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}M.history.push(`/classrooms/${H.coursesId}/exportlist/hack_work_list`)}},"\u5386\u53F2\u5BFC\u51FA"))};return L.createElement(L.Fragment,null,L.createElement("section",{className:`${r.wrap} minH500 bg-white pl30 pr30 pt30`},((Ee=je.homework_status)==null?void 0:Ee.includes("\u672A\u53D1\u5E03"))&&L.createElement(b.Z,null),!((xt=je.homework_status)!=null&&xt.includes("\u672A\u53D1\u5E03"))&&L.createElement("aside",null,!(0,z.GJ)()&&L.createElement("div",{className:"c-light-black font12"},L.createElement("span",null,"\u53D1\u5E03\u65F6\u95F4 ",je==null?void 0:je.publish_time),L.createElement("span",{className:"ml5"},"\u622A\u6B62\u65F6\u95F4 ",je==null?void 0:je.end_time),L.createElement("span",{className:"ml5"},"\u8865\u4EA4\u65F6\u95F4 ",(je==null?void 0:je.late_time)||"- -")),(0,z.GJ)()&&L.createElement(L.Fragment,null,L.createElement(o.default,{form:it,onChange:nl,initialValues:{task_status:"all",course_group_info:"all",teacher_comment:"all"}},((Mu=je.task_status)==null?void 0:Mu.length)>0&&L.createElement(o.default.Item,{name:"task_status"},L.createElement(X.default.Group,{value:[],style:{width:"100%"}},L.createElement(P.Z,null,L.createElement(U.Z,{className:"font14",flex:"80px"},"\u4F5C\u4E1A\u72B6\u6001:"),L.createElement(U.Z,{flex:"80px"},L.createElement(X.default,{value:"all"},"\u5168\u90E8")),L.createElement(U.Z,{flex:"1"},je.task_status&&je.task_status.map((fe,at)=>L.createElement(X.default,{name:"task_status",value:fe.id},fe.name,"(",fe.count,")")))))),((ju=je.course_group_info)==null?void 0:ju.length)>0&&L.createElement(o.default.Item,{name:"course_group_info"},L.createElement(X.default.Group,{style:{width:"100%"}},L.createElement(P.Z,null,L.createElement(U.Z,{className:"font14",flex:"80px"},"\u5206\u73ED\u60C5\u51B5:"),L.createElement(U.Z,{flex:"80px"},L.createElement(X.default,{value:"all"},"\u5168\u90E8")),L.createElement(U.Z,{flex:"1",id:"divhe",style:{height:xu+"px",overflow:"hidden"}},(Wt=je.course_group_info)==null?void 0:Wt.map((fe,at)=>L.createElement(X.default,{value:fe.course_group_id},fe.group_group_name,"(",fe.count,")"))),Cn&&L.createElement("span",{onClick:()=>{let fe=document.getElementById("divhe").scrollHeight;xu>47?an(47):an(fe)},style:{color:"rgb(76, 172, 255)",cursor:"pointer",alignItems:"flex-end",display:"flex"}},xu===47?"\u5C55\u5F00":"\u6536\u8D77",xu===47?L.createElement(B.Z,{style:{marginBottom:"3px",marginLeft:"2px"}}):L.createElement(q.Z,{style:{marginBottom:"3px",marginLeft:"2px"}}))))),((Yu=je.teacher_comment)==null?void 0:Yu.length)>0&&L.createElement(o.default.Item,{name:"teacher_comment"},L.createElement(X.default.Group,{style:{width:"100%"}},L.createElement(P.Z,null,L.createElement(U.Z,{className:"font14",flex:"80px"},"\u8FFD\u52A0\u70B9\u8BC4:"),L.createElement(U.Z,{flex:"80px"},L.createElement(X.default,{value:"all"},"\u5168\u90E8")),L.createElement(U.Z,{flex:"1"},je.teacher_comment&&je.teacher_comment.map((fe,at)=>L.createElement(X.default,{value:String(fe.id)},fe.name,"(",fe.count,")"))))))),L.createElement(P.Z,{align:"middle"},L.createElement(U.Z,{flex:"1"},L.createElement(P.Z,{align:"middle"},L.createElement(U.Z,null,L.createElement(Z.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",onSearch:fe=>{H.search=fe.trim(),H.page=1,Tu()},style:{width:240}})),L.createElement(U.Z,null,L.createElement("span",{className:"ml5"},L.createElement("span",{className:"c-red"},je.work_count),"\u4E2A\u68C0\u7D22\u7ED3\u679C\uFF08",je.work_count,"\u4E2A\u5B66\u751F\uFF09")))),L.createElement(U.Z,null,(0,z.GJ)()&&!((Zu=je.homework_status)!=null&&Zu.includes("\u5BFC\u5165"))&&L.createElement(v.ZP,{className:"ml10",onClick:()=>{ke({type:"shixunHomeworks/setActionTabs",payload:{key:"\u4EE3\u7801\u67E5\u91CD",selectArrs:je.student_works.map(fe=>fe.id),params:H}})}},L.createElement("span",{className:`${r.tr1} iconfont icon-daimachazhong`}),"\u4EE3\u7801\u67E5\u91CD"),(0,z.GJ)()&&!((au=je.homework_status)!=null&&au.includes("\u5BFC\u5165"))&&L.createElement(v.ZP,{className:"ml10",onClick:ul},L.createElement("i",{className:"iconfont icon-gengxinchengji font14 pr5"}),"\u66F4\u65B0\u6210\u7EE9"),(0,z.GJ)()&&L.createElement(h.Z,{dropdownRender:Ut,className:"ml10"},L.createElement(v.ZP,null,L.createElement(c.Z,null),"\u5BFC\u51FA",L.createElement(y.Z,null)))))),L.createElement(P.Z,{style:{justifyContent:"end",marginTop:"5px"}},(0,z.GJ)()&&Yt&&L.createElement("span",null,L.createElement("span",{style:{color:"red"}},"*"),"\u5217\u8868\u4E2D\u4F5C\u4E1A\u8BB0\u5F55\u5B58\u5728\u5DEE\u5F02\uFF0C\u8BF7\u70B9\u51FB\u201C\u66F4\u65B0\u6210\u7EE9\u201D\u6309\u94AE")),L.createElement(W.default,{className:`mt30 ${r.TableDom}`,loading:oe["shixunHomeworks/getWorkList"],pagination:!1,style:{cursor:"pointer"},onRow:fe=>({onClick:at=>{var $t,Nu;if(!(($t=je.homework_status)!=null&&$t.includes("\u5BFC\u5165"))){if((0,z.Rm)()&&!((Nu=Se.AssistantObject.hack)!=null&&Nu.can_view)){s.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}(0,g.O5)()&&window.open(`/classrooms/${H.coursesId}/program_homework/${H.categoryId}/${fe.id}/${fe.user_id}/comment`,"_blank")}}}),scroll:{x:1200},dataSource:je.student_works,columns:Mt,onChange:(fe,at,$t)=>{$t.field&&(H.order=$t.field==="score"?"work_score":$t.field),$t.order||(H.b_order="asc"),$t.order==="ascend"&&(H.b_order="asc"),$t.order==="descend"&&(H.b_order="desc"),$t.order||(H.b_order="asc"),Tu()}}),L.createElement(f,null),L.createElement(Je,null),L.createElement(R.Z,null)),L.createElement(D.default,{title:"\u4E00\u952E\u6253\u56DE\u91CD\u505A",open:$e,centered:!0,destroyOnClose:!0,forceRender:!0,width:700,onOk:()=>du(void 0,null,function*(){if(_u===2){if(mu.length<=0){s.ZP.info("\u8BF7\u9009\u62E9\u4F5C\u4E1A\u72B6\u6001");return}if(!qu){s.ZP.info("\u8BC4\u8BED\u4E0D\u80FD\u4E3A\u7A7A");return}let fe=yield(0,Q.ZP)(`/api/homework_commons/${H.categoryId}/confirm_redo_modal.json`,{method:"post",body:{id:H.categoryId,comment:qu,status:mu}});fe.status===0&&(tn(fe),Eu(!1),qt(!0))}else{if(!(ku===0||un===0)){if(!ku){s.ZP.info("\u6700\u4F4E\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}if(!un){s.ZP.info("\u6700\u9AD8\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}}if(ku>un){s.ZP.info("\u6700\u9AD8\u5206\u4E0D\u80FD\u5927\u4E8E\u6700\u4F4E\u5206");return}if(!qu){s.ZP.info("\u8BC4\u8BED\u4E0D\u80FD\u4E3A\u7A7A");return}let fe=yield(0,Q.ZP)(`/api/homework_commons/${H.categoryId}/confirm_redo_modal.json`,{method:"post",body:{id:H.categoryId,comment:qu,min_score:ku,max_score:un}});fe.status===0&&(tn(fe),Eu(!1),qt(!0))}}),onCancel:()=>{Eu(!1),dn()}},L.createElement("div",{style:{padding:"32px"}},L.createElement("div",null,L.createElement("div",null,L.createElement("span",{style:{width:"80px"}},"\u6253\u56DE\u65B9\u5F0F\uFF1A"),L.createElement(_.ZP.Group,{value:_u,onChange:fe=>{An(fe.target.value)}},L.createElement(_.ZP,{value:1},"\u6309\u6210\u7EE9\u6253\u56DE"),L.createElement(_.ZP,{value:2},"\u6309\u4F5C\u4E1A\u72B6\u6001\u6253\u56DE"))),_u===1&&L.createElement("div",{style:{display:"flex",marginTop:"20px"}},L.createElement("span",{style:{width:"70px",textAlign:"end"}},L.createElement("span",{style:{color:"red"}},"*"),"\u6700\u4F4E\u5206\uFF1A"),L.createElement(d.Z,{min:0,max:100,value:ku,onChange:fe=>cn(fe),style:{width:"100px"}}),L.createElement("span",{style:{width:"80px",textAlign:"end"}},L.createElement("span",{style:{color:"red"}},"*"),"\u6700\u9AD8\u5206\uFF1A"),L.createElement(d.Z,{min:0,max:100,value:un,onChange:fe=>hn(fe),style:{width:"100px"}})),_u===2&&L.createElement("div",{style:{display:"flex",marginTop:"20px"}},L.createElement("span",{style:{width:"80px"}},"\u4F5C\u4E1A\u72B6\u6001\uFF1A"),L.createElement(X.default.Group,{onChange:fe=>{kt([...fe])},style:{width:"100%"}},(tu=je.task_status)==null?void 0:tu.map((fe,at)=>L.createElement(X.default,{name:"task_status",value:fe.id},fe.name,"(",fe.count,")")))),L.createElement("div",{style:{display:"flex",marginTop:"20px"}},L.createElement("span",{style:{width:"70px",textAlign:"end"}},L.createElement("span",{style:{color:"red"}},"*")," \u8BC4\u8BED\uFF1A"),L.createElement(Le.Z,{className:r.MdEditor,onChange:fe=>Vu(fe),placeholder:"\u8BF7\u586B\u5199\u8BC4\u8BED"}))))),L.createElement(D.default,{open:su,title:"\u6253\u56DE\u786E\u8BA4",onOk:()=>du(void 0,null,function*(){_u===2?(yield(0,Q.ZP)(`/api/homework_commons/${H.categoryId}/batch_redo_modal.json`,{method:"post",body:{id:H.categoryId,comment:qu,status:mu}})).status===0&&(s.ZP.info("\u6253\u56DE\u6210\u529F"),dn(),Tu(),qt(!1)):(yield(0,Q.ZP)(`/api/homework_commons/${H.categoryId}/batch_redo_modal.json`,{method:"post",body:{id:H.categoryId,comment:qu,min_score:ku,max_score:un}})).status===0&&(s.ZP.info("\u6253\u56DE\u6210\u529F"),dn(),Tu(),qt(!1))}),onCancel:()=>{dn(),qt(!1)}},L.createElement("div",{style:{padding:"32px"}},_u===1&&L.createElement("span",null,"\u786E\u8BA4\u5C06\u6210\u7EE9\u5728",ku,"-",un,"\u7684\u5B66\u751F\u8FDB\u884C\u6253\u56DE\u91CD\u505A\u5417\uFF1F"),_u===2&&L.createElement("span",null,"\u786E\u8BA4\u5C06\u4F5C\u4E1A\u72B6\u6001\u4E3A",((Ae=je.task_status)==null?void 0:Ae.filter(fe=>mu==null?void 0:mu.includes(fe.id)).map(fe=>fe.name).toString())+",","\u7684\u5B66\u751F\u8FDB\u884C\u4F5C\u4E1A\u6253\u56DE\u91CD\u505A\u5417\uFF1F"),L.createElement("br",null),L.createElement("span",null,"\u8BE5\u6761\u4EF6\u4E0B\u5171\u6709",Ku==null?void 0:Ku.count,"\u540D\u5B66\u751F")))),L.createElement(st,null),L.createElement(lu,{isShow:$n,setIsShow:Dn,item:el,coursesId:H.coursesId,categoryId:H.categoryId}),L.createElement("aside",{className:"tc mb50 mt30"},L.createElement(E.Z,{showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!1,onChange:ll,current:H.page||1,defaultPageSize:20,total:je.work_count})))};var Wu=(0,M.connect)(({shixunHomeworks:Be,classroomList:Se,loading:oe,user:ke})=>({shixunHomeworks:Be,classroomList:Se,loading:oe.effects,user:ke}))(Qu)},33118:function(dt,te,u){"use strict";u.d(te,{mU:function(){return ce},Q_:function(){return f},ZP:function(){return z}});var e=u(59301),o=u(93948),s=u(6848),i=u(95237),D=u(43604),j=u(1710),X={analysisWrapper:"analysisWrapper___vy_V8",title:"title___tQAzn",tableWrapper:"tableWrapper___ztB9P",firstCol:"firstCol___Itr68",itemWrapper:"itemWrapper___Jaw8O",itemTitle:"itemTitle___gmKyn",count:"count___MUY3o",echarts_list:"echarts_list___RNu3g",echarts_item:"echarts_item___ZHo0B",tips:"tips___k4pHA"},P=u(99064),U=u(89070),Z=u(41069),v=u(43418),h=u(57809),W=u(85057),_=u(955),d=Object.defineProperty,E=Object.getOwnPropertySymbols,B=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,c=(r,me,a)=>me in r?d(r,me,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[me]=a,y=(r,me)=>{for(var a in me||(me={}))B.call(me,a)&&c(r,a,me[a]);if(E)for(var a of E(me))q.call(me,a)&&c(r,a,me[a]);return r},b=(r,me,a)=>new Promise((we,We)=>{var ot=_e=>{try{Je(a.next(_e))}catch(Dt){We(Dt)}},pt=_e=>{try{Je(a.throw(_e))}catch(Dt){We(Dt)}},Je=_e=>_e.done?we(_e.value):Promise.resolve(_e.value).then(ot,pt);Je((a=a.apply(r,me)).next())});const A=({shixunHomeworks:r,dispatch:me,isShow:a,setIsShow:we,item:We,courseId:ot,categoryId:pt})=>{const[Je,_e]=(0,e.useState)({page:1,limit:10,keyword:"",type:null}),[Dt,nt]=(0,e.useState)([]),[Ke,C]=(0,e.useState)(!1),[pe,st]=(0,e.useState)(1);(0,e.useEffect)(()=>{a&&Le()},[a,Je.type]);function Le(){return b(this,null,function*(){C(!0);const g=yield(0,P.ZP)(`/api/homework_commons/${pt}/shixun_game_statisic.json`,{method:"get",params:{challenge_id:We.id,id:pt,type:Je.type,page:Je.page,limit:Je.limit,keyword:Je.keyword}});C(!1),g.status===0&&nt(g==null?void 0:g.data)})}const O=[{title:"\u5E8F\u53F7",dataIndex:"number",width:50,fixed:"left",ellipsis:!0,render:(g,ne,Fe)=>e.createElement("span",{style:{color:"#000"}},Je.limit*(Je.page-1)+Fe+1)},{title:"\u5B66\u751F\u59D3\u540D",dataIndex:"name",key:"name",ellipsis:!0,render:(g,ne,Fe)=>e.createElement("span",{style:{color:"#3061D0",cursor:"pointer"},onClick:()=>{(0,_.xg)(`/classrooms/${ot}/shixun_homework/${pt}/${ne.student_work_id}/comment`)}},g)},{title:"\u5B66\u53F7",dataIndex:"student_id",key:"student_id",ellipsis:!0,render:(g,ne,Fe)=>e.createElement("span",{style:{color:"#333"}},g)},{title:"\u73ED\u7EA7",dataIndex:"group_name",key:"group_name",ellipsis:!0,render:(g,ne,Fe)=>e.createElement("span",{style:{color:"#333"}},g)},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",key:"evaluate_count",ellipsis:!0,render:(g,ne,Fe)=>e.createElement("span",{style:{color:"#333"}},g)},{title:"\u5B9E\u8BAD\u8017\u65F6",dataIndex:"time_consuming",key:"time_consuming",ellipsis:!0,render:(g,ne,Fe)=>e.createElement("span",{style:{color:"#333"}},g)},{title:"\u901A\u5173\u60C5\u51B5",dataIndex:"complete_status",key:"complete_status",ellipsis:!0,render:(g,ne,Fe)=>e.createElement("span",null,g==2?"\u5DF2\u901A\u5173":"\u672A\u901A\u5173")}];return e.createElement(e.Fragment,null,e.createElement(v.default,{centered:!0,title:"\u5173\u5361\u901A\u5173\u8BE6\u60C5",open:a,width:900,footer:null,maskClosable:!1,onCancel:()=>{Je.keyword="",Je.page=1,Je.limit=10,Je.type=null,_e(y({},Je)),we(!1)}},e.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"20px"}},e.createElement("div",{style:{color:"#333",marginRight:"20px",wordBreak:"break-all",textOverflow:"ellipsis",overflow:"hidden",WebkitLineClamp:2,display:"-webkit-box",WebkitBoxOrient:"vertical"}},"\u5173\u5361",We==null?void 0:We.index," ",e.createElement(s.Z,{title:We==null?void 0:We.subject},e.createElement("span",null,We==null?void 0:We.subject))),e.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end"}},e.createElement("div",null,e.createElement(h.default,{size:"large",value:Je.type,onChange:g=>b(void 0,null,function*(){Je.type=g,_e(y({},Je)),Le()}),style:{width:140,marginRight:20}},e.createElement(h.default.Option,{value:null},"\u5168\u90E8"),e.createElement(h.default.Option,{value:1},"\u672A\u901A\u5173"),e.createElement(h.default.Option,{value:2},"\u5DF2\u901A\u5173"))),e.createElement("div",null,e.createElement(W.t7,{style:{width:220},placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D/\u5B66\u53F7\u641C\u7D22",value:Je.keyword,onChange:g=>{Je.keyword=g,Je.page=1,_e(y({},Je)),Le()}})))),e.createElement(j.default,{scroll:{y:380},columns:O,loading:Ke,dataSource:Dt.users,pagination:{size:"default",showQuickJumper:!0,showSizeChanger:!0,pageSizeOptions:["10","15","50","100","200"],pageSize:Je.limit,current:Je.page,position:["bottomRight"],onChange:(g,ne)=>{Je.page=g,Je.limit=ne,_e(y({},Je)),Le()},total:Dt==null?void 0:Dt.count,showTotal:(g,ne)=>e.createElement("span",null,"\u5171",e.createElement("span",{style:{color:"#165DFF"}}," ",g," "),"\u6761\u6570\u636E")}})))};var R=(0,U.connect)(({shixunHomeworks:r})=>({shixunHomeworks:r}))(A),S=u(6021),Q=Object.defineProperty,M=Object.defineProperties,le=Object.getOwnPropertyDescriptors,k=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,x=(r,me,a)=>me in r?Q(r,me,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[me]=a,ve=(r,me)=>{for(var a in me||(me={}))De.call(me,a)&&x(r,a,me[a]);if(k)for(var a of k(me))ye.call(me,a)&&x(r,a,me[a]);return r},m=(r,me)=>M(r,le(me)),N=(r,me,a)=>new Promise((we,We)=>{var ot=_e=>{try{Je(a.next(_e))}catch(Dt){We(Dt)}},pt=_e=>{try{Je(a.throw(_e))}catch(Dt){We(Dt)}},Je=_e=>_e.done?we(_e.value):Promise.resolve(_e.value).then(ot,pt);Je((a=a.apply(r,me)).next())});const ce=({title:r,strokeColor:me,trailColor:a,percent:we,count:We})=>e.createElement("div",{className:X.itemWrapper},e.createElement("div",{className:X.itemTitle},r),e.createElement(o.Z,{percent:we,strokeColor:me,trailColor:a}),e.createElement("div",{className:X.count},We,"\u4EBA")),f=(r,me)=>{const a=`${(me/r*100).toFixed(1)}`;return a==="0.0"?0:a};var z=()=>{const[r,me]=(0,e.useState)(),a=(0,U.useParams)(),[we,We]=(0,e.useState)(!1),[ot,pt]=(0,e.useState)(),[Je,_e]=(0,e.useState)(),[Dt,nt]=(0,e.useState)(!1),[Ke,C]=(0,e.useState)({page:1,limit:10});(0,e.useEffect)(()=>{(0,P.ZP)(`/api/homework_commons/${a.categoryId}/statistic.json`,{method:"GET"}).then(O=>{me(O)}),Le()},[]);const pe=[{title:"\u6309\u65F6\u901A\u5173",color:"#00AE87",trailColor:"#e5f6f3",percent:f(r==null?void 0:r.total_count,r==null?void 0:r.finished_count),count:r==null?void 0:r.finished_count},{title:"\u8865\u4EA4\u901A\u5173",color:"#2271FF",trailColor:"#e7f0ff",percent:f(r==null?void 0:r.total_count,r==null?void 0:r.late_finished_count),count:r==null?void 0:r.late_finished_count},{title:"\u672A\u901A\u5173",color:"#E53333",trailColor:"#fceaea",percent:f(r==null?void 0:r.total_count,r==null?void 0:r.unfinished_count),count:r==null?void 0:r.unfinished_count},{title:"\u672A\u5F00\u542F",color:"#C6CED6",trailColor:"#f6f7f8",percent:f(r==null?void 0:r.total_count,r==null?void 0:r.unstart_count),count:r==null?void 0:r.unstart_count}],st=[{title:"\u5E8F\u53F7",dataIndex:"number",width:80,fixed:"left",ellipsis:!0,render:(O,g,ne)=>e.createElement("span",{style:{color:"#333"}},Ke.limit*(Ke.page-1)+ne+1)},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"subject",key:"subject",ellipsis:!0,render:(O,g,ne)=>e.createElement("span",{style:{color:"#000"}},O)},{title:"\u5DF2\u901A\u5173",width:120,dataIndex:"completed_sum",key:"completed_sum",ellipsis:!0,render:(O,g,ne)=>e.createElement("span",{style:{color:"#333"}},O," \u4EBA")},{title:"\u672A\u901A\u5173",width:120,dataIndex:"uncompleted_sum",key:"uncompleted_sum",ellipsis:!0,render:(O,g,ne)=>e.createElement("span",{style:{color:"#333"}},O," \u4EBA")},{title:"\u603B\u8BC4\u6D4B\u6B21\u6570",width:120,dataIndex:"evaluation_total",key:"evaluation_total",ellipsis:!0,render:(O,g,ne)=>e.createElement("span",{style:{color:"#333"}},O," \u6B21")},{title:e.createElement("span",null,"\u901A\u5173\u7387",e.createElement(s.Z,{title:"\u901A\u5173\u7387=\u901A\u8FC7\u8BC4\u6D4B\u7684\u4EBA\u6570/\u4F5C\u4E1A\u53D1\u5E03\u4EBA\u6570"},e.createElement("span",{className:X.tips},e.createElement("i",{className:"iconfont icon-a-wenhaobeifen2"})))),dataIndex:"passed_rate",key:"passed_rate",width:120,ellipsis:!0,render:(O,g,ne)=>e.createElement("span",{style:{color:"#000"}},O,O?"%":"")},{title:"\u64CD\u4F5C",dataIndex:"action",key:"action",align:"right",ellipsis:!0,width:100,render:(O,g,ne)=>e.createElement("a",{style:{color:"#165DFF"},onClick:Fe=>{Fe.stopPropagation(),_e(m(ve({},g),{index:Ke.limit*(Ke.page-1)+ne+1})),nt(!0)}},"\u67E5\u770B")}];function Le(){return N(this,null,function*(){We(!0);const O=yield(0,P.ZP)(`/api/homework_commons/${a.categoryId}/shixun_challenge_statisic.json`,{method:"get",params:{page:Ke.page,limit:Ke.limit}});We(!1),O.status===0&&pt(O==null?void 0:O.data)})}return e.createElement("div",{className:X.analysisWrapper},e.createElement("div",{className:`${X.title} mb20`},"\u4F5C\u4E1A\u5B8C\u6210\u60C5\u51B5"),e.createElement("div",{className:"mb20"},"\u5E94\u63D0\u4EA4",r==null?void 0:r.total_count,"\u4EBA\uFF0C\u6309\u65F6\u901A\u5173",r==null?void 0:r.finished_count,"\u4EBA\uFF0C\u5360\u6BD4",f(r==null?void 0:r.total_count,r==null?void 0:r.finished_count),"\uFF1B \u8865\u4EA4\u901A\u5173",r==null?void 0:r.late_finished_count,"\u4EBA\uFF0C\u5360\u6BD4",f(r==null?void 0:r.total_count,r==null?void 0:r.late_finished_count),"\uFF1B \u672A\u901A\u5173",r==null?void 0:r.unfinished_count,"\u4EBA\uFF0C\u5360\u6BD4",f(r==null?void 0:r.total_count,r==null?void 0:r.unfinished_count),"\uFF1B \u672A\u5F00\u542F",r==null?void 0:r.unstart_count,"\u4EBA\uFF0C\u5360\u6BD4",f(r==null?void 0:r.total_count,r==null?void 0:r.unstart_count)),e.createElement(i.Z,{justify:"space-between",className:"mb30"},pe.map(O=>e.createElement(D.Z,{flex:"212px",key:O.title},e.createElement(ce,{title:O.title,strokeColor:O.color,trailColor:O.trailColor,percent:parseInt(O.percent),count:O.count})))),e.createElement("div",{className:`${X.title} mb20`},e.createElement("div",null,"\u901A\u5173\u60C5\u51B5"),e.createElement("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"flex-end"}},e.createElement(S.Z,{type:"primary",onClick:()=>N(void 0,null,function*(){(yield(0,P.ZP)(`/api/homework_commons/${a==null?void 0:a.categoryId}/export_challenge_statistic.json`,{method:"get"})).status==0&&(0,_.xg)(`/classrooms/${a==null?void 0:a.coursesId}/exportlist/shixun_work_list`)})},"\u5BFC\u51FA\u901A\u5173\u60C5\u51B5"))),e.createElement(j.default,{scroll:{y:490},columns:st,loading:we,className:(ot==null?void 0:ot.count){Ke.page=O,Ke.limit=g,C(ve({},Ke)),Le()},total:ot==null?void 0:ot.count,showTotal:(O,g)=>e.createElement("span",null,"\u5171",e.createElement("span",{style:{color:"#165DFF"}}," ",O," "),"\u6761\u6570\u636E")}}),e.createElement("div",{className:`${X.title} mb20`},"\u4EE3\u7801\u67E5\u91CD\u60C5\u51B5"),e.createElement("div",{className:"mb20"},"\u7591\u4F3C\u6284\u88AD\u4EBA\u6570",r==null?void 0:r.review_total_count,"\u4EBA\uFF0C\u4EE3\u7801\u91CD\u5408100%\u4EBA\u6570",r==null?void 0:r.first_review_count,"\u4EBA\uFF1B\u4EE3\u7801\u91CD\u540890%\uFF5E100%\u4EBA\u6570",r==null?void 0:r.second_review_count,"\u4EBA\uFF1B\u4EE3\u7801\u91CD\u540880%\uFF5E90%\u4EBA\u6570",r==null?void 0:r.third_review_count,"\u4EBA\uFF1B\u4EE3\u7801\u91CD\u540870%\uFF5E80%\u4EBA\u6570",r==null?void 0:r.fourth_review_count,"\u4EBA\u3002"),e.createElement(j.default,{bordered:!0,className:`${X.tableWrapper} mb30`,columns:[{title:"\u4EE3\u7801\u91CD\u5408\u7387",align:"center",className:X.firstCol,render:()=>e.createElement("span",null,"\u5360\u6BD4")},{title:"100%",align:"center",dataIndex:"a"},{title:"90%-100%",align:"center",dataIndex:"b"},{title:"80%-90%",align:"center",dataIndex:"c"},{title:"70%-80%",align:"center",dataIndex:"d"}],dataSource:[{a:`${r==null?void 0:r.first_review_count}\u4EBA`,b:`${r==null?void 0:r.second_review_count}\u4EBA`,c:`${r==null?void 0:r.third_review_count}\u4EBA`,d:`${r==null?void 0:r.fourth_review_count}\u4EBA`,index:0}],rowKey:"index",pagination:!1}),e.createElement(Z.ZP,{title:"\u5B9E\u8BAD\u884C\u4E3A\u5206\u6790\u7EDF\u8BA1",data:(0,Z.Uf)(r)}),e.createElement(R,{courseId:a.coursesId,item:Je,isShow:Dt,setIsShow:nt,categoryId:a.categoryId}))}},68971:function(dt,te,u){"use strict";var e=u(43418),o=u(8591),s=u(99064),i=u(89070),D=u(24065),j=u(59301),X=(U,Z,v)=>new Promise((h,W)=>{var _=B=>{try{E(v.next(B))}catch(q){W(q)}},d=B=>{try{E(v.throw(B))}catch(q){W(q)}},E=B=>B.done?h(B.value):Promise.resolve(B.value).then(_,d);E((v=v.apply(U,Z)).next())});const P=({shixunHomeworks:U,classroomList:Z,dispatch:v})=>{const h=(0,i.useParams)();return j.createElement(e.default,{centered:!0,title:"\u63D0\u793A",open:U.actionTabs.key==="\u6253\u56DE\u91CD\u505A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>X(void 0,null,function*(){var W,_,d,E;if((0,D.Rm)()&&!((W=Z.AssistantObject.practice)!=null&&W.can_redo)){o.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const B=yield(0,s.ZP)(`/api/myshixuns/${U.actionTabs.selectArrs.myshixun_identifier}/reset_my_game.json`,{method:"GET",params:{course_id:h.coursesId,homework_common_id:U.actionTabs.homework_common_id}});if(B.shixun_identifier){o.ZP.success("\u64CD\u4F5C\u6210\u529F"),v({type:"shixunHomeworks/setActionTabs",payload:{}});const q=(d=(_=B==null?void 0:B.new_works)==null?void 0:_.find(c=>`${c.homework_common_id}`===h.categoryId))==null?void 0:d.id;if((0,D.Rm)()&&!((E=Z.AssistantObject.practice)!=null&&E.can_view))return;i.history.replace(`/classrooms/${h.coursesId}/shixun_homework/${h.categoryId}/${q}/comment`)}}),onCancel:()=>{v({type:"shixunHomeworks/setActionTabs",payload:{}})}},j.createElement("p",null,"\u8BE5\u4F5C\u4E1A\u5C06\u88AB\u6253\u56DE\u91CD\u505A\uFF0C\u5B66\u751F\u5B9E\u8BAD\u8BB0\u5F55\u5C06\u88AB\u6E05\u7A7A!"),j.createElement("p",null,"\u786E\u5B9A\u6253\u56DE?"))};te.Z=(0,i.connect)(({shixunHomeworks:U,classroomList:Z})=>({shixunHomeworks:U,classroomList:Z}))(P)},75084:function(dt,te,u){"use strict";u.r(te),u.d(te,{default:function(){return Lo}});var e=u(59301),o=u(89070),s=u(43418),i=u(8591),D=u(66104),j=u(6848),X=u(99313),P=u(1710),U=u(27812),Z=u(955),v=u(99064),h=u(12290),W=u(3294),_=u(85149),d=Object.defineProperty,E=Object.getOwnPropertySymbols,B=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,c=(t,l,n)=>l in t?d(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,y=(t,l)=>{for(var n in l||(l={}))B.call(l,n)&&c(t,n,l[n]);if(E)for(var n of E(l))q.call(l,n)&&c(t,n,l[n]);return t},b=(t,l,n)=>new Promise(($,re)=>{var Y=F=>{try{G(n.next(F))}catch(ue){re(ue)}},ge=F=>{try{G(n.throw(F))}catch(ue){re(ue)}},G=F=>F.done?$(F.value):Promise.resolve(F.value).then(Y,ge);G((n=n.apply(t,l)).next())});const A=({shixunHomeworks:t,dispatch:l})=>{const n=(0,o.useParams)();return e.createElement(s.default,{centered:!0,title:"\u63D0\u793A",open:t.actionTabs.key==="\u5220\u9664",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>b(void 0,null,function*(){(yield l({type:"shixunHomeworks/deleteReply",payload:{object_id:t.actionTabs.selectArr.id,object_type:"journals_for_message"}})).status===0&&(i.ZP.success("\u5220\u9664\u6210\u529F"),l({type:"shixunHomeworks/setActionTabs",payload:{}}),l({type:"shixunHomeworks/getReplyList",payload:y({},t.actionTabs.params)}))}),onCancel:()=>{l({type:"shixunHomeworks/setActionTabs",payload:{}})}},e.createElement("p",null,"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F"))};var R=(0,o.connect)(({shixunHomeworks:t})=>({shixunHomeworks:t}))(A),S=u(36708),Q=u(61186),M=u.n(Q),le=u(71418),k=u(3113),De=u(58421),ye=u(95237),x=u(43604),ve=u(92832),m=u(57809),N=u(26227),ce=u(63524),f={flex_box_center:"flex_box_center___oXmmv",flex_space_between:"flex_space_between___D5_mZ",flex_box_vertical_center:"flex_box_vertical_center___S5DkJ",flex_box_center_end:"flex_box_center_end___KnbTG",flex_box_column:"flex_box_column____klOK",top:"top___FyBsZ",desc:"desc___sMJy6",liked:"liked___P7kc_",likedActive:"likedActive___gv4cj",reply:"reply___fFyWG",replyList:"replyList___RDcrF",comment:"comment___uNa2p",deseIconSty:"deseIconSty___hiTV2",buttonEdit:"buttonEdit___godGx",maskWrap:"maskWrap___bA1lb",desHead:"desHead___gsg50",mask:"mask___HzQwZ",md:"md___kNtFb",tip:"tip___enkdY",selectWrapper:"selectWrapper___x8uH0",inputBox:"inputBox___VxU7y",pass_info:"pass_info___Kig4_",todo:"todo___hntv8",name:"name___UD8SI",info:"info___lOOGO",viewreport:"viewreport___CAnci"},Ce="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALwAAAAgCAYAAACo7RKTAAAAAXNSR0IArs4c6QAAFaNJREFUeF7tXHl8XHW1/557Z5JM0yTtA9qy6dwktMVaKMncAVo2F0Rk0aeg+FCK+tzg8WRR5qYFCdA2dwou+AR9LCpSZVE+ICIi+ACfpOjcSaAthdImudMFCm0hbfZl7u/Ib5KZznJnSdqnrx97/4HOPb/zO7/zO7/fPcv3hACg+xH/NBoaXMnARwjwMeGvxNSqgFZXzSq36AOxIUk3kYcfulDdI1qPJ4iFDF7EwEJiVABoBZV9a9pFWzsnwu8g7UEN7A8NED9RX72np6cNTNOJcB8Thpl5ITHpDK4gohEA7QRaLUCtXqV89dRPx97Mnpwfqq3p4cGTBHgRMUsjPxGMqSAwAS8yaDUResD8aQCHqh7llKoL3ly/PxZxkMdBDZSqAdr9wIyVzHSZonoXVJ92j4P46E0A10OMxkZ2rt46vP1ZEn1ba8G0iMEzJWMCdTFxKxF6IcjDhJOJeR4DCgiDBPwvMVoZVMng0LTGb5+EqdoCCLEITt+cnvYb5sIZWldzwZZTShW0GN2a5roZ8SE0CBYNU3xTbh0YGZoNh/8j52AS7wia9reL8ftnfB9tqr2aBWbnrJ24Rzfta5O/R0O15zBwnpuOFKK/NJqdP/v/qj9p8BsAeq7mQ/fdhOFheeNOy10wegH6S3zPpldGtz01NNL98mHA8CIWmEMKdrCg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+K/tfnx3vtSqdvM1jEQYonYfRK+SEY2RmBp6oepJYj3tsJdoZkIJNoAPEkD0h1HRTfYTsAegGgVqh4kmadk9Mp848wioNz/vNpwNXgs9XAbz1Rh+He0+PdG86P92890enfOtPZ00FitBdQvfBWyS9AfeIW99TUM9TyV6SPCGA1yjytpbot/3zqP7jiv7cGSjL4nAPQ/ew0DA2e7HSvP1etniv/QI7sI1oNUlejwvcCTf9AsW73v/c6D853UAMJDfwN/F3Fz8TPqaAAAAAASUVORK5CYII=",z=u(24065),r=u(85057),me=u(83992),a=u(59301),we=Object.defineProperty,We=Object.defineProperties,ot=Object.getOwnPropertyDescriptors,pt=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,Dt=(t,l,n)=>l in t?we(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,nt=(t,l)=>{for(var n in l||(l={}))Je.call(l,n)&&Dt(t,n,l[n]);if(pt)for(var n of pt(l))_e.call(l,n)&&Dt(t,n,l[n]);return t},Ke=(t,l)=>We(t,ot(l)),C=(t,l,n)=>new Promise(($,re)=>{var Y=F=>{try{G(n.next(F))}catch(ue){re(ue)}},ge=F=>{try{G(n.throw(F))}catch(ue){re(ue)}},G=F=>F.done?$(F.value):Promise.resolve(F.value).then(Y,ge);G((n=n.apply(t,l)).next())});M().locale("ZH-cn");const pe=({shixunHomeworks:t,classroomList:l,globalSetting:n,user:$,loading:re,dispatch:Y,gotosetting:ge})=>{var G,F,ue,ft;const[Ue,Ze]=(0,e.useState)(Ke(nt({},(0,o.useParams)()),{limit:10})),[Xe,Ht]=(0,e.useState)({page:1,limit:10}),[Oe,ht]=(0,e.useState)({page:1,limit:10,course_group_ids:"all",passed_status:"all",search:""}),[ae,vt]=(0,e.useState)(!1),[Lt,Ne]=(0,e.useState)(-1),[Me,ze]=(0,e.useState)(""),[Pe,Ct]=(0,e.useState)(""),{detailLeftMenus:xe}=l,[w,Ie]=(0,e.useState)({}),{workDetail:ee,workList:tt}=t;let[bt,ut]=(0,e.useState)({});const[Jt,Pt]=(0,e.useState)(!1),[Ge,iu]=(0,e.useState)(!1),[Fu,Re]=(0,e.useState)(!1),[gt,qe]=(0,e.useState)(!1),[Vt,At]=(0,e.useState)(1),Tt=(0,e.useRef)(null),[St,Ou]=(0,e.useState)({}),[et,wu]=(0,e.useState)({}),[Pu,ru]=(0,e.useState)(!1),fu=(0,e.useRef)(!0),[zu,Du]=(0,e.useState)([]),Su=(0,e.useRef)(null);Ue.page_size=10,(0,e.useEffect)(()=>{Tt.current&&(Tt.current.clientHeight>200?At(2):At(4))},[ee==null?void 0:ee.explanation]),(0,e.useEffect)(()=>{Y({type:"shixunHomeworks/getReplyList",payload:nt({},Ue)}),Y({type:"shixunHomeworks/getWorkDetail",payload:nt({},Ue)}),Qe()},[Ue.categoryId]),(0,e.useEffect)(()=>{t!=null&&t.replyList&&Ie(t.replyList)},[t]);function se(de){return C(this,null,function*(){if(!(bt!=null&&bt.ec_point_ids))return;let zt=yield(0,v.ZP)(`/api/ec_courses/${bt==null?void 0:bt.ec_course_id}/ec_points/set_work_points.json`,{method:"post",body:nt({homework_common_id:de},bt)})})}function Qe(){return C(this,null,function*(){Pt(!0);let de=yield(0,v.ZP)(`/api/homework_commons/${Ue==null?void 0:Ue.categoryId}/shixun_challenge_data.json`,{method:"get"});(de==null?void 0:de.status)===0&&Ou(de==null?void 0:de.data),Pt(!1)})}const Kt=()=>C(void 0,null,function*(){iu(!0);const de=yield(0,v.ZP)(`/api/homework_commons/${Ue==null?void 0:Ue.categoryId}/challenge_passed_details.json`,{method:"get",params:Ke(nt({challenge_id:Su.current},Oe),{passed_status:Oe.passed_status==="all"?null:Oe.passed_status,course_group_ids:Oe.course_group_ids==="all"?null:Oe.course_group_ids})});(de==null?void 0:de.status)===0&&wu(de==null?void 0:de.data),iu(!1)}),gu=()=>{if(Vt===1)return{visibility:"hidden"};if(Vt===2)return{overflow:"hidden",height:"200px"};if(Vt===3)return{overflow:"initial"};if(Vt===4)return{overflow:"initial"}},cu=de=>{Oe.course_group_ids=de,Oe.page=1,ht(nt({},Oe)),Kt()},Au=de=>{Oe.passed_status=de,Ue.page=1,ht(nt({},Oe)),Kt()};return a.createElement("section",{className:f.bg},a.createElement(le.Z,{spinning:Jt},(!(ee!=null&&ee.hide_explanation)||(0,z.GJ)())&&a.createElement("section",{className:" edu-container",style:{padding:"20px 20px 0 20px",background:"#fff",position:"relative"}},!gt&&(0,z.GJ)()&&a.createElement("div",{style:{position:"absolute",zIndex:10,right:34,top:30}},(0,z.GJ)()&&a.createElement("span",{className:f.deseIconSty,style:{marginLeft:"auto",cursor:"pointer"},onClick:()=>{qe(!0)}},a.createElement(j.Z,{title:"\u7F16\u8F91\u8BF4\u660E"},a.createElement("i",{className:"iconfont icon-bianji-moren font14"}),a.createElement("span",null,"\u7F16\u8F91\u8BF4\u660E"))),a.createElement("span",{className:f.deseIconSty,style:{marginLeft:"20px",cursor:"pointer"},onClick:()=>C(void 0,null,function*(){if(!(ee!=null&&ee.hide_explanation))s.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u9690\u85CF\u540E\uFF0C\u5B66\u751F\u7AEF\u5C06\u9690\u85CF\u4F5C\u4E1A\u8BF4\u660E\u6A21\u5757",onOk:()=>C(void 0,null,function*(){let de=yield(0,v.ZP)(`/api/homework_commons/${Ue==null?void 0:Ue.categoryId}/hide_explanation.json`,{method:"post",body:{hide_explanation:!0}});(de==null?void 0:de.status)==0&&(i.ZP.success("\u9690\u85CF\u6210\u529F"),Y({type:"shixunHomeworks/getWorkDetail",payload:nt({},Ue)}))})});else{let de=yield(0,v.ZP)(`/api/homework_commons/${Ue==null?void 0:Ue.categoryId}/hide_explanation.json`,{method:"post",body:{hide_explanation:!1}});(de==null?void 0:de.status)==0&&(i.ZP.success("\u516C\u5F00\u6210\u529F"),Y({type:"shixunHomeworks/getWorkDetail",payload:nt({},Ue)}))}})},a.createElement(j.Z,{title:ee!=null&&ee.hide_explanation?"\u516C\u5F00\u8BF4\u660E":"\u9690\u85CF\u8BF4\u660E"},a.createElement("i",{className:"iconfont icon-xianshiyincang font14"}),a.createElement("span",null,ee!=null&&ee.hide_explanation?"\u516C\u5F00\u8BF4\u660E":"\u9690\u85CF\u8BF4\u660E")))),gt?a.createElement(a.Fragment,null,a.createElement(h.Z,{defaultValue:ee==null?void 0:ee.explanation,watch:!0,height:155,onChange:de=>{ze(de)}}),a.createElement("div",{style:{display:"flex"}},a.createElement(k.ZP,{size:"middle",type:"primary",className:`${f.buttonEdit} mr20`,style:{marginLeft:"auto"},htmlType:"submit",onClick:()=>C(void 0,null,function*(){At(1);const de=yield Y({type:"shixunHomeworks/updateWork",payload:{explanation:Me,categoryId:Ue.categoryId}});(de==null?void 0:de.status)==0&&(i.ZP.success("\u7F16\u8F91\u6210\u529F"),qe(!1),Y({type:"shixunHomeworks/getWorkDetail",payload:nt({},Ue)}))})},"\u63D0\u4EA4"),a.createElement(k.ZP,{size:"middle",type:"primary",ghost:!0,className:f.buttonEdit,onClick:()=>{qe(!1)}},"\u53D6\u6D88"))):!!(ee!=null&&ee.explanation)&&a.createElement("div",{ref:Tt,className:f.maskWrap,style:gu()},a.createElement("div",{className:f.desHead},a.createElement("img",{src:Ce,width:94})),a.createElement(_.Z,{className:f.md,value:(ee==null?void 0:ee.explanation)||""}),Vt===2&&a.createElement("div",{className:f.mask},a.createElement("div",{onClick:()=>At(3)},"\u5C55\u5F00",a.createElement("i",{className:"iconfont icon-zhankai4"}))),Vt===3&&a.createElement("div",{className:f.mask,style:{position:"relative",height:30,background:"transparent",paddingTop:5}},a.createElement("div",{onClick:()=>At(2)},"\u6536\u8D77",a.createElement("i",{className:"iconfont icon-shouqi5"}))))),a.createElement("section",{className:" edu-container",style:{background:"#fff",paddingTop:20}},(0,z.dE)()&&!!(St!=null&&St.group_name)&&a.createElement("div",{className:f.info},a.createElement("img",{src:`${W.Z.IMG_SERVER}/images/${St==null?void 0:St.image_url}`}),a.createElement("div",{className:"ml20",style:{alignItems:"start"}},a.createElement("b",null,(St==null?void 0:St.username)||""),a.createElement("span",{title:(St==null?void 0:St.group_name)||"",style:{maxWidth:"130px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordBreak:"break-all"}},(St==null?void 0:St.group_name)||"")),a.createElement("div",null,a.createElement("b",null,a.createElement(me.n,{value:St==null?void 0:St.work_score})),a.createElement("span",null,"\u603B\u6210\u7EE9")),a.createElement("div",null,a.createElement("b",null,(St==null?void 0:St.evaluate_count)||"-"),a.createElement("span",null,"\u8BC4\u6D4B\u6B21\u6570")),a.createElement("div",null,a.createElement("b",null,(St==null?void 0:St.time_consuming)||"-"),a.createElement("span",null,"\u603B\u8017\u65F6")),a.createElement("div",null,a.createElement("b",{style:{color:"#009C0F"}},St==null?void 0:St.passed_count),a.createElement("span",null,"\u5DF2\u901A\u8FC7\u6570")),a.createElement("div",null,a.createElement("b",{style:{color:"#FA6400"}},St==null?void 0:St.progress_count),a.createElement("span",null,"\u672A\u901A\u8FC7")),a.createElement("div",null,a.createElement("b",{style:{color:"#E30000"}},St==null?void 0:St.no_evaluate_count),a.createElement("span",null,"\u672A\u8BC4\u6D4B")),a.createElement("div",{className:f.viewreport,style:{marginLeft:60,fontSize:14,color:"#3061D0",cursor:"pointer"},onClick:()=>{window.open(`/classrooms/${Ue.coursesId}/shixun_homework/${Ue.categoryId}/${ee==null?void 0:ee.work_id}/comment`)}},a.createElement("i",{className:"iconfont icon-baogao",style:{marginRight:7}}),a.createElement("span",null,"\u67E5\u770B\u62A5\u544A")))),a.createElement("div",null,a.createElement("section",{className:" edu-container",style:{padding:"20px",background:"#fff"}},(0,z.GJ)()&&a.createElement("div",{className:f.tip},a.createElement("i",{className:"iconfont icon-tishi12 font14",style:{color:"#FEB636",margin:"0 6px 0 12px"}}),a.createElement("div",null,ee!=null&&ee.answer_public?a.createElement("span",{style:{color:"#CA7720"}},"\u672C\u4F5C\u4E1A\u8BBE\u7F6E\u5B66\u751F\u7AEF\u53EF\u67E5\u770B\u7B54\u6848\uFF0C\u5982\u679C\u9700\u8BBE\u7F6E\u9690\u85CF\u8BF7\u70B9\u51FB"):a.createElement("span",{style:{color:"#CA7720"}},"\u672C\u4F5C\u4E1A\u8BBE\u7F6E\u5B66\u751F\u7AEF\u4E0D\u53EF\u67E5\u770B\u7B54\u6848\uFF0C\u5982\u679C\u9700\u8BBE\u7F6E\u516C\u5F00\u8BF7\u70B9\u51FB"),a.createElement("span",{style:{color:"#145DFF",marginLeft:10,cursor:"pointer"},onClick:()=>{ge()}},"\u5C55\u793A\u8BBE\u7F6E"))),a.createElement(P.default,{dataSource:St==null?void 0:St.challenge_settings,pagination:!1,columns:(G=[{title:"\u5E8F\u53F7",dataIndex:"index",ellipsis:!0,key:"index",width:55,render:(de,zt,vu)=>`${(Xe.page-1)*Xe.limit+vu+1}`},{title:"\u5173\u5361\u540D\u79F0",dataIndex:"challenge_name",ellipsis:!0,width:(0,z.dE)()?280:420,key:"challenge_name",render:(de,zt,vu)=>a.createElement("div",null,(zt==null?void 0:zt.is_choose_todo)&&a.createElement("span",{className:f.todo},"\u9009\u505A"),a.createElement("span",{className:f.name,title:de},de))},{title:"\u5173\u5361\u5206\u503C",dataIndex:"challenge_score",ellipsis:!0,key:"challenge_score"},(0,z.dE)()&&{title:"\u6211\u7684\u5F97\u5206",dataIndex:"game_score",key:"game_score",render:de=>{let zt="",vu=Number(de);return vu>=0&&vu<=60?zt="c-red":vu>=90?zt="c-green":vu>60?zt="c-orange":zt="",a.createElement("span",{className:zt},de)}},(0,z.dE)()&&{title:"\u901A\u8FC7\u72B6\u6001",dataIndex:"passed_status",key:"passed_status",render(de){return a.createElement(a.Fragment,null,de===0&&a.createElement("span",{style:{color:"#E30000"}},"\u672A\u8BC4\u6D4B"),de===1&&a.createElement("span",{style:{color:"#FA6400"}},"\u672A\u901A\u8FC7"),de===2&&a.createElement("span",{style:{color:"#009C0F"}},"\u5DF2\u901A\u8FC7"))}},(0,z.dE)()&&{title:"\u8017\u65F6",dataIndex:"time_consuming",key:"time_consuming",ellipsis:!0,width:100},(0,z.dE)()&&{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",key:"evaluate_count",ellipsis:!0,width:100},{title:"\u96BE\u5EA6",dataIndex:"difficulty",key:"difficulty",width:100,ellipsis:!0,render(de,zt,vu){return de}},{title:"\u901A\u8FC7\u7387",dataIndex:"passed_rate",key:"passed_rate",width:100,ellipsis:!0,render:(de,zt)=>a.createElement("span",null,(parseFloat(de)*100).toFixed(2),"%")},{title:"\u77E5\u8BC6\u70B9",dataIndex:"knowledge_points",ellipsis:!0,key:"knowledge_points",width:200,render:(de,zt)=>a.createElement("span",{style:{backgroundColor:"#ECFAF5",color:"#1B8565",overflow:"hidden",textOverflow:"ellipsis",padding:"2px 6px"}},de||"--")},!(0,z.dE)()&&{title:"\u64CD\u4F5C",dataIndex:"identifier",key:"identifier",width:146,align:"right",render(de,zt,vu){return a.createElement("div",null,a.createElement("a",{onClick:()=>C(this,null,function*(){Su.current=zt==null?void 0:zt.challenge_id,yield Kt(),Re(!0)}),className:"ml20"},"\u67E5\u770B\u901A\u8FC7\u8BE6\u60C5"))}}])==null?void 0:G.filter(de=>!!de)})),a.createElement("aside",{style:{padding:"0 20px 20px 20px"}},a.createElement(De.Z,{defaultCurrent:1,total:ae==null?void 0:ae.count,hideOnSinglePage:!0,showTotal:de=>a.createElement("span",null,"\u5171",de,"\u6761"),current:Xe.page||1,pageSize:Xe.limit||10,onChange:(de,zt)=>{Xe.page=de,Xe.limit=zt,Ht(nt({},Ue)),Qe()}})))),a.createElement("aside",{className:[f.reply,"bg-white","mt20"].join(" ")},ae&&a.createElement(h.Z,{onChange:de=>{ze(de)},height:200,isFocus:!0,watch:!0}),a.createElement(ye.Z,{onClick:()=>{vt(!0)}},a.createElement(x.Z,{flex:"1",style:{pointerEvents:"none"}},!ae&&a.createElement(ve.default,{size:"middle",className:"current",placeholder:"\u8BF4\u70B9\u4EC0\u4E48",disabled:!0})),a.createElement(x.Z,null,a.createElement(k.ZP,{type:"primary",size:"middle",onClick:()=>C(void 0,null,function*(){var de;if((0,z.Rm)()&&!((de=l.AssistantObject.practice)!=null&&de.can_create)){i.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Me===""?i.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9"):(yield Y({type:"shixunHomeworks/createReply",payload:{journals_for_message:{jour_id:Ue.categoryId,jour_type:"HomeworkCommon",reply_id:1,notes:Me}}})).status===0&&(i.ZP.success("\u53D1\u5E03\u6210\u529F"),Y({type:"shixunHomeworks/getReplyList",payload:nt({},Ue)}),vt(!1),ze(""))})},"\u53D1\u8868")))),(w==null?void 0:w.comments)&&w.comments!=""&&a.createElement("aside",{className:[f.replyList,"bg-white"].join(" ")},w==null?void 0:w.comments.map(function(de,zt){var vu,T,ct,Ot;return a.createElement(ye.Z,{gutter:[12,12],key:zt},a.createElement(x.Z,{flex:"40px"},a.createElement("img",{width:"40",src:`${W.Z.IMG_SERVER}/images/${(vu=de==null?void 0:de.author)==null?void 0:vu.image_url}`})),a.createElement(x.Z,{flex:"1"},a.createElement(ye.Z,{align:"middle"},a.createElement(x.Z,{span:20},a.createElement("span",{className:"c-light-black"},(T=de==null?void 0:de.author)==null?void 0:T.name),a.createElement("span",{className:"c-light-black ml10"},de.time," \u53D1\u5E03")),a.createElement(x.Z,{span:4},a.createElement("div",{className:"tr"},((0,z.GJ)()||((ct=$==null?void 0:$.userInfo)==null?void 0:ct.login)===((Ot=de==null?void 0:de.author)==null?void 0:Ot.login))&&a.createElement(N.Z,{className:"current",onClick:()=>{Y({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5220\u9664",params:Ue,selectArr:de,object_type:"message"}})}}))),a.createElement(x.Z,{span:24},a.createElement(_.Z,{value:de.content})),de.children&&a.createElement("aside",{className:f.comment},de.children.map(function(ou,Bu){var nu,sn;return a.createElement(ye.Z,{key:Bu},a.createElement(x.Z,{span:24},a.createElement(ye.Z,null,a.createElement(x.Z,{flex:"1"},ou.author.name,a.createElement("span",{className:"c-light-black ml10"},M()(ou==null?void 0:ou.created_on).fromNow())),a.createElement(x.Z,null,((0,z.GJ)()||((nu=$==null?void 0:$.userInfo)==null?void 0:nu.login)===((sn=ou==null?void 0:ou.author)==null?void 0:sn.login))&&a.createElement(j.Z,{title:"\u5220\u9664"},a.createElement(N.Z,{className:"current",onClick:()=>{Y({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5220\u9664",params:Ue,selectArr:ou}})}}))))),a.createElement(x.Z,null,a.createElement(_.Z,{value:ou.content})))})),a.createElement("div",{className:"tc w100 mt10"},a.createElement(De.Z,{defaultCurrent:1,total:de==null?void 0:de.child_message_count,hideOnSinglePage:!0,pageSize:5,current:de.page||1,onChange:ou=>C(this,null,function*(){var Bu;const nu=yield(0,S.PC)(Ke(nt({},Ue),{parent_id:de.id,page:ou,limit:5}));(Bu=nu==null?void 0:nu.comments)!=null&&Bu.length&&(w.comments[zt].page=ou,w.comments[zt].children=[...nu==null?void 0:nu.comments],Ie(nt({},w)))})})),a.createElement(x.Z,{span:24,className:"mt5 c-light-black"},Lt===zt&&a.createElement("aside",null,a.createElement(h.Z,{onChange:ou=>{Ct(ou)},height:150,isFocus:!0}),a.createElement(ye.Z,null,a.createElement(x.Z,{span:24,className:"tr"},a.createElement(k.ZP,{type:"primary",size:"middle",onClick:()=>C(this,null,function*(){var ou;if(Pe==="")i.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{yield Y({type:"shixunHomeworks/createReply",payload:{journals_for_message:{jour_id:Ue.categoryId,jour_type:"HomeworkCommon",m_parent_id:de.id,reply_id:1,notes:Pe}}});const Bu=yield(0,S.PC)(Ke(nt({},Ue),{parent_id:de.id,limit:5}));(ou=Bu==null?void 0:Bu.comments)!=null&&ou.length&&(++w.comments[zt].child_message_count,w.comments[zt].children=[...Bu==null?void 0:Bu.comments],w.comments[zt].page=1,Ie(w)),i.ZP.success("\u53D1\u5E03\u6210\u529F"),Ne(-1)}})},"\u53D1\u8868")))),Lt!==zt&&a.createElement("div",{className:"tr"},a.createElement("span",{className:"iconfont icon-huifu1 mr5 ml30",onClick:()=>Ne(zt)}),de.child_message_count||0,!!(de!=null&&de.user_praise)&&a.createElement("span",{className:"c-orange"},a.createElement(ce.Z,{className:"mr5 ml30",onClick:()=>C(this,null,function*(){yield Y({type:"shixunHomeworks/replyUnLike",payload:{object_id:de.id,object_type:"journals_for_message"}}),Y({type:"shixunHomeworks/getReplyList",payload:nt({},Ue)})})}),de==null?void 0:de.praise_count),!de.user_praise&&a.createElement("span",null,a.createElement(ce.Z,{className:"mr5 ml30",onClick:()=>C(this,null,function*(){yield Y({type:"shixunHomeworks/replyLike",payload:{object_id:de.id,object_type:"journals_for_message"}}),Y({type:"shixunHomeworks/getReplyList",payload:nt({},Ue)})})}),de.praise_count))))))})),a.createElement("aside",{className:"tc mt30 pb30"},a.createElement(De.Z,{defaultCurrent:1,total:w==null?void 0:w.parent_messages_count,hideOnSinglePage:!0,current:Ue.page||1,pageSize:10,onChange:de=>{Ue.page=de,Y({type:"shixunHomeworks/getReplyList",payload:nt({},Ue)})}})),a.createElement(R,null),a.createElement(s.default,{centered:!0,title:"\u5173\u5361\u901A\u8FC7\u8BE6\u60C5",width:1200,open:Fu,okText:"\u786E\u5B9A",bodyStyle:{minHeight:550},afterClose:()=>{Oe.course_group_ids="all",Oe.passed_status="all",Oe.search=""},footer:null,cancelText:"\u53D6\u6D88",onOk:()=>C(void 0,null,function*(){(yield Y({type:"shixunHomeworks/deleteReply",payload:{object_id:t.actionTabs.selectArr.id,object_type:"journals_for_message"}})).status===0&&(i.ZP.success("\u5220\u9664\u6210\u529F"),Re(!1),Y({type:"shixunHomeworks/getReplyList",payload:nt({},t.actionTabs.params)}))}),onCancel:()=>{Re(!1)}},a.createElement("div",{className:"mb20"},a.createElement("span",{style:{color:"#5F6368",marginRight:10}},"\u5173\u5361\u540D\u79F0"),a.createElement("span",{style:{color:"#CA7720",fontWeight:500}},et==null?void 0:et.challenge_name)),a.createElement("div",{className:f.inputBox},a.createElement("div",{style:{display:"flex",alignItems:"center"}},a.createElement("div",{className:"mr20"},a.createElement("span",{style:{color:"#9B9B9B",marginRight:10}},"\u901A\u8FC7\u72B6\u6001"),a.createElement(m.default,{value:Oe==null?void 0:Oe.passed_status,defaultValue:"all",className:f.selectWrapper,style:{width:130},getPopupContainer:de=>de.parentNode,onChange:Au},a.createElement(m.default.Option,{value:"all"},"\u5168\u90E8"),a.createElement(m.default.Option,{value:0},"\u672A\u8BC4\u6D4B"),a.createElement(m.default.Option,{value:1},"\u8FDB\u884C\u4E2D"),a.createElement(m.default.Option,{value:2},"\u5DF2\u901A\u8FC7"))),a.createElement("div",null,a.createElement("span",{style:{color:"#9B9B9B",marginRight:10}},"\u5206\u73ED\u60C5\u51B5"),a.createElement(m.default,{value:Oe==null?void 0:Oe.course_group_ids,defaultValue:"all",className:f.selectWrapper,style:{width:220},showSearch:!0,placeholder:"\u8F93\u5165\u5173\u952E\u8BCD\u5BF9\u5206\u73ED\u8FDB\u884C\u641C\u7D22",getPopupContainer:de=>de.parentNode,onChange:cu,dropdownRender:de=>a.createElement(le.Z,{spinning:Pu},de)},a.createElement(m.default.Option,{key:-1,value:"all"},"\u5168\u90E8\u73ED\u7EA7"),(ue=(F=t==null?void 0:t.headerInfo)==null?void 0:F.course_group_info)==null?void 0:ue.map(de=>a.createElement(m.default.Option,{key:de.course_group_id,value:de.course_group_id},de.group_group_name))))),a.createElement(r.t7,{style:{width:290,height:38},placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",value:Oe==null?void 0:Oe.search,onChange:de=>{Oe.page=1,Oe.search=de,ht(nt({},Oe)),Kt()}})),a.createElement("div",{className:f.pass_info},a.createElement("span",{style:{marginLeft:12}},"\u5171\u6709 ",a.createElement("span",{style:{color:"#3061D0"}},et==null?void 0:et.count)," \u540D\u540C\u5B66\u53C2\u4E0E\uFF0C\u5176\u4E2D ",a.createElement("span",{style:{color:"#009C0F"}},et==null?void 0:et.passed_count)," \u4EBA\u5DF2\u901A\u8FC7\uFF0C",a.createElement("span",{style:{color:"#E30000"}},et==null?void 0:et.no_passed_count)," \u4EBA\u672A\u901A\u8FC7")),a.createElement(P.default,{dataSource:et==null?void 0:et.list,pagination:!1,loading:Ge,columns:(ft=[{title:"\u5E8F\u53F7",dataIndex:"index",ellipsis:!0,key:"index",width:55,render:(de,zt,vu)=>`${(Xe.page-1)*Xe.limit+vu+1}`},{title:"\u59D3\u540D",dataIndex:"username",ellipsis:!0,key:"index"},{title:"\u5B66\u53F7",dataIndex:"student_id",ellipsis:!0,key:"index"},{title:"\u5206\u73ED",dataIndex:"group_name",ellipsis:!0,key:"index"},{title:"\u901A\u8FC7\u72B6\u6001",dataIndex:"passed_status",key:"passed_status",render(de){return a.createElement(a.Fragment,null,de===0&&a.createElement("span",{style:{color:"#E30000"}},"\u672A\u8BC4\u6D4B"),de===1&&a.createElement("span",{style:{color:"#FA6400"}},"\u8FDB\u884C\u4E2D"),de===2&&a.createElement("span",{style:{color:"#009C0F"}},"\u5DF2\u901A\u8FC7"))}},{title:"\u8017\u65F6",dataIndex:"time_consuming",key:"time_consuming",ellipsis:!0,width:100},(0,z.dE)()&&{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",key:"evaluate_count",ellipsis:!0,width:100}])==null?void 0:ft.filter(de=>!!de)}),a.createElement("aside",{className:"tc mt30"},a.createElement(De.Z,{defaultCurrent:1,total:et==null?void 0:et.count,hideOnSinglePage:!0,current:Oe.page||1,pageSize:10,onChange:de=>{Oe.page=de,Kt(Su)}}))))};var st=(0,o.connect)(({shixunHomeworks:t,classroomList:l,loading:n,user:$,globalSetting:re})=>({shixunHomeworks:t,globalSetting:re,classroomList:l,user:$,loading:n.effects}))(pe),Le=u(78241),O=u(20834),g=u(24905),ne=u(38854),Fe=u(78673),ie=u(5112),Ye=u(5871),wt=u(84105),Ft=u(87395),rt=u(95869),Xt=u(67921),lu=u(89489),L=u(8797),yt=u(68971),Rt=u(96512),Qt=Object.defineProperty,_t=Object.getOwnPropertySymbols,hu=Object.prototype.hasOwnProperty,Cu=Object.prototype.propertyIsEnumerable,du=(t,l,n)=>l in t?Qt(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,pu=(t,l)=>{for(var n in l||(l={}))hu.call(l,n)&&du(t,n,l[n]);if(_t)for(var n of _t(l))Cu.call(l,n)&&du(t,n,l[n]);return t},Qu=(t,l)=>{var n={};for(var $ in t)hu.call(t,$)&&l.indexOf($)<0&&(n[$]=t[$]);if(t!=null&&_t)for(var $ of _t(t))l.indexOf($)<0&&Cu.call(t,$)&&(n[$]=t[$]);return n},Wu=(t,l,n)=>new Promise(($,re)=>{var Y=F=>{try{G(n.next(F))}catch(ue){re(ue)}},ge=F=>{try{G(n.throw(F))}catch(ue){re(ue)}},G=F=>F.done?$(F.value):Promise.resolve(F.value).then(Y,ge);G((n=n.apply(t,l)).next())});const Be=t=>{var l=t,{shixunHomeworks:n,dispatch:$}=l,re=Qu(l,["shixunHomeworks","dispatch"]);const Y=(0,o.useParams)(),[ge,G]=(0,e.useState)(!0),[F,ue]=(0,e.useState)(!1),[ft]=Le.default.useForm(),Ue=()=>Wu(void 0,null,function*(){const Ze=ft.getFieldValue();(yield(0,v.ZP)(`/api/homework_commons/${Y.categoryId}/batch_comment.json`,{method:"post",body:{student_work_ids:[...n.actionTabs.selectArrs],cover_all:ge,hidden_comment:Ze.hidden_comment,comment:Ze.comment}})).status===0&&(i.ZP.success("\u8BC4\u9605\u6210\u529F"),ft.resetFields(),$({type:"shixunHomeworks/setActionTabs",payload:{}}),$({type:"shixunHomeworks/getShixunWorkList",payload:pu({},n.actionTabs.params)}))});return e.createElement(e.Fragment,null,e.createElement(s.default,{centered:!0,title:"\u4E00\u952E\u70B9\u8BC4",open:n.actionTabs.key==="\u4E00\u952E\u70B9\u8BC4",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Wu(void 0,null,function*(){var Ze,Xe,Ht;const Oe=ft.getFieldValue();JSON.stringify(Oe)==="{}"||Oe.hidden_comment===""&&Oe.comment===""?ue(!0):(Ht=(Xe=(Ze=n.shixunWorkList)==null?void 0:Ze.student_works)==null?void 0:Xe.some)!=null&&Ht.call(Xe,ht=>ht.has_shixun_work_comment)?$({type:"shixunHomeworks/setActionTabs",payload:{key:"\u4E00\u952E\u70B9\u8BC4\u786E\u8BA4",selectArrs:n.actionTabs.selectArrs,params:n.actionTabs.params}}):Ue()}),onCancel:()=>{$({type:"shixunHomeworks/setActionTabs",payload:{}})}},e.createElement(Le.default,{form:ft,onChange:()=>{F&&ue(!1)}},e.createElement("p",null,"\u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),e.createElement(Le.default.Item,{name:"comment"},e.createElement(ve.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:8})),e.createElement("p",null,"\u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),e.createElement(Le.default.Item,{name:"hidden_comment"},e.createElement(ve.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:8}))),F&&e.createElement("p",{className:"c-red"},"\u8BC4\u9605\u5185\u5BB9\u81F3\u5C11\u6709\u4E00\u4E2A\u4E0D\u4E3A\u7A7A")),e.createElement(s.default,{centered:!0,title:e.createElement("span",null,e.createElement(Rt.Z,{className:"c-orange mr20"}),"\u63D0\u793A"),open:n.actionTabs.key==="\u4E00\u952E\u70B9\u8BC4\u786E\u8BA4",okText:"\u786E\u5B9A\u70B9\u8BC4",cancelText:"\u653E\u5F03\u70B9\u8BC4",onOk:()=>{Ue()},onCancel:()=>{$({type:"shixunHomeworks/setActionTabs",payload:{}})},width:400},e.createElement("div",{className:"tc"},e.createElement("p",null,"\u90E8\u5206\u5B66\u751F\u5DF2\u6709\u70B9\u8BC4\u5185\u5BB9\uFF0C\u662F\u5426\u8986\u76D6\u5DF2\u6709\u70B9\u8BC4\u5185\u5BB9\uFF1F"),e.createElement("p",null,e.createElement(ie.ZP.Group,{onChange:Ze=>{G(Ze.target.value)},value:ge},e.createElement(ie.ZP,{value:!0},"\u8986\u76D6\u5DF2\u6709\u70B9\u8BC4"),e.createElement(ie.ZP,{value:!1},"\u8DF3\u8FC7\u5DF2\u6709\u70B9\u8BC4"))))))};var Se=(0,o.connect)(({shixunHomeworks:t})=>({shixunHomeworks:t}))(Be),oe={wrap:"wrap___kCwPu",refresh:"refresh___dkiX_",maxWidth70:"maxWidth70___u0Fnw",maxWidth80:"maxWidth80___B8pkG",maxWidth100:"maxWidth100___jQ_W6",maxWidth110:"maxWidth110___t9GZl",maxWidth120:"maxWidth120___tvrlz",reviewStatusTooltip:"reviewStatusTooltip___nCQT1",color32C:"color32C___KnLuR",MdEditor:"MdEditor___IcZwd",tr1:"tr1___k3Rcs",scroll:"scroll___TVUAz",work_button:"work_button___QokXJ"},ke=u(89392),Nt=u(59301),eu=({defaultValue:t,onBlur:l,max:n,className:$="game-score"})=>{const[re,Y]=(0,e.useState)(t);(0,e.useEffect)(()=>{Y(t)},[t]);function ge(F){Y(F)}function G(){re!==t&&l(re>n?n:re)}return Nt.createElement(Ye.Z,{max:n,min:0,className:$,value:re,onChange:ge,onBlur:G})},mt={greyText:"greyText___XLove",info:"info___A1gYD",label:"label___hzhZk",blackContent:"blackContent___WdHyW",orangeContent:"orangeContent___d5L7E",inputLabel:"inputLabel___arXff",tableTitle:"tableTitle___xt1qf",scoreTable:"scoreTable___AoIAG"},Et=u(30917),Ee=u(59301),xt=Object.defineProperty,Mu=Object.defineProperties,ju=Object.getOwnPropertyDescriptors,Wt=Object.getOwnPropertySymbols,Yu=Object.prototype.hasOwnProperty,Zu=Object.prototype.propertyIsEnumerable,au=(t,l,n)=>l in t?xt(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,tu=(t,l)=>{for(var n in l||(l={}))Yu.call(l,n)&&au(t,n,l[n]);if(Wt)for(var n of Wt(l))Zu.call(l,n)&&au(t,n,l[n]);return t},Ae=(t,l)=>Mu(t,ju(l)),he=(t,l,n)=>new Promise(($,re)=>{var Y=F=>{try{G(n.next(F))}catch(ue){re(ue)}},ge=F=>{try{G(n.throw(F))}catch(ue){re(ue)}},G=F=>F.done?$(F.value):Promise.resolve(F.value).then(Y,ge);G((n=n.apply(t,l)).next())});const H=({shixunHomeworks:t,dispatch:l,classroomList:n,loading:$,paramslist:re})=>{const{shixunWorkReport:Y}=t,ge=(0,o.useParams)(),[G,F]=(0,e.useState)(),[ue,ft]=(0,e.useState)(!1),[Ue,Ze]=s.default.useModal(),[Xe,Ht]=(0,e.useState)(!1),[Oe,ht]=(0,e.useState)(!1),[ae]=Le.default.useForm();(0,e.useEffect)(()=>{t.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4"&&vt()},[t.actionTabs.key]);const vt=()=>he(void 0,null,function*(){var Me,ze,Pe,Ct,xe;const w=yield l({type:"shixunHomeworks/getShixunWorkReport",payload:Ae(tu({},ge),{homeworkId:(ze=(Me=t.actionTabs.selectArrs)==null?void 0:Me.data)==null?void 0:ze.homeworkId})});return console.log(w),F((Ct=(Pe=t.actionTabs.selectArrs)==null?void 0:Pe.data)==null?void 0:Ct.homeworkId),ae.setFieldsValue({comment:w==null?void 0:w.work_comment,hidden_comment:(xe=t.res)==null?void 0:xe.work_comment_hidden}),w}),Lt=()=>he(void 0,null,function*(){const Me=ae.getFieldsValue();(yield(0,v.ZP)(`/api/student_works/${G}/shixun_work_comment.json`,{method:"post",body:{hidden_comment:Me.hidden_comment,comment:Me.comment}})).status===0&&(i.ZP.success("\u8BC4\u9605\u6210\u529F"),ae.resetFields(),l({type:"shixunHomeworks/setActionTabs",payload:{}}),l({type:"shixunHomeworks/getShixunWorkList",payload:tu(tu({},ge),re)}))}),Ne=[{title:"\u5173\u5361",dataIndex:"name",render:(Me,ze,Pe)=>Pe+1},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",render:(Me,ze,Pe)=>Ee.createElement("div",null,Me,ze.complete_status===4&&Ee.createElement(Z.vA,{status:ze.complete_status}))},{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"open_time"},{title:"\u5B8C\u6210\u65F6\u95F4",dataIndex:"finished_time"},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",align:"center"},{title:"\u5B9E\u8BAD\u8017\u65F6",dataIndex:"time_consuming"},{title:"\u662F\u5426\u67E5\u770B\u7B54\u6848",dataIndex:"view_answer",align:"center",render:Me=>Me?"\u662F":"\u5426"},{title:"\u5173\u5361\u5F97\u5206",dataIndex:"game_score",align:"center",render:(Me,ze)=>Ee.createElement("div",null,Ee.createElement("span",{style:{color:parseFloat(ze.game_score_full)!==parseFloat(Me)?"#E30000":"#53C41B"}},Me),"/",ze.game_score_full)},{title:"\u8C03\u5206",dataIndex:"game_score",align:"center",fixed:"right",render:(Me,ze)=>(0,z.GJ)()?Ee.createElement(eu,{max:ze.game_score_full,defaultValue:parseFloat(Me),onBlur:Pe=>he(void 0,null,function*(){var Ct;if((0,z.Rm)()&&!((Ct=n.AssistantObject.practice)!=null&&Ct.can_appraise)){i.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const xe=yield l({type:"shixunHomeworks/changeScore",payload:{categoryId:G,type:"report",score:Pe,challenge_id:ze.challenge_id}});yield l({type:"shixunHomeworks/getShixunWorkReport",payload:Ae(tu({},ge),{homeworkId:G})}),l({type:"shixunHomeworks/getShixunWorkList",payload:ge}),xe.status===0&&i.ZP.success("\u64CD\u4F5C\u6210\u529F")})}):Me}];return Ee.createElement(Ee.Fragment,null,Ze,Ee.createElement(s.default,{centered:!0,width:1080,title:"\u70B9\u8BC4\u4F5C\u4E1A",open:t.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>he(void 0,null,function*(){var Me;if((0,z.Rm)()&&!((Me=n.AssistantObject.practice)!=null&&Me.can_appraise)){i.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const ze=ae.getFieldsValue();console.log(ze),JSON.stringify(ze)==="{}"||ze.hidden_comment===""&&ze.comment===""?ft(!0):Lt()}),onCancel:()=>{l({type:"shixunHomeworks/setActionTabs",payload:{}})}},Ee.createElement(ye.Z,{justify:"space-between",className:mt.info},Ee.createElement(x.Z,null,Ee.createElement("span",{className:`${mt.label} ${mt.greyText}`},"\u59D3\u540D"),Ee.createElement("span",{className:mt.blackContent},Y==null?void 0:Y.username)),Ee.createElement(x.Z,null,Ee.createElement("span",{className:`${mt.label} ${mt.greyText}`},"\u5B66\u53F7"),Ee.createElement("span",{className:mt.blackContent},(Y==null?void 0:Y.student_id)||"--")),Ee.createElement(x.Z,null,Ee.createElement("span",{className:`${mt.label} ${mt.greyText}`},"\u73ED\u7EA7"),Ee.createElement("span",{className:mt.blackContent},(Y==null?void 0:Y.group_name)||"--")),Ee.createElement(x.Z,null,Ee.createElement("span",{className:`${mt.label} ${mt.greyText}`},"\u5173\u5361\u5F97\u5206"),Ee.createElement("span",{className:mt.orangeContent},(Y==null?void 0:Y.challenge_score)||"--")),Ee.createElement(x.Z,null,Ee.createElement("span",{className:`${mt.label} ${mt.greyText}`},"\u6548\u7387\u5206"),Ee.createElement("span",{className:mt.orangeContent},(Y==null?void 0:Y.eff_score)||"--")),Ee.createElement(x.Z,null,Ee.createElement("span",{className:`${mt.label} ${mt.greyText}`},"\u8865\u4EA4\u6263\u5206"),Ee.createElement("span",{className:mt.orangeContent},(Y==null?void 0:Y.late_penalty)||"--")),Ee.createElement(x.Z,null,Ee.createElement("span",{className:`${mt.label} ${mt.greyText}`},"\u6700\u7EC8\u6210\u7EE9"),Ee.createElement("span",{className:mt.orangeContent},(Y==null?void 0:Y.work_score)||"--"))),Ee.createElement(le.Z,{spinning:$["shixunHomeworks/getShixunWorkReport"]},Ee.createElement(Le.default,{form:ae,onChange:()=>{ue&&ft(!1)}},Ee.createElement(ye.Z,{wrap:!1,align:"middle",justify:"space-between"},Ee.createElement(x.Z,null,Ee.createElement("div",{className:`${mt.inputLabel} ${mt.greyText}`},"\u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1")),Ee.createElement(x.Z,null,Ee.createElement(Et.Z,{isShowComponent:(0,z.G5)(),ModalProps:{open:Xe,onCancel:()=>{Ht(!1)}},onDataSelect:(Me,ze)=>he(void 0,[Me,ze],function*(Pe,{node:Ct}){const xe=()=>{ae.setFieldsValue({comment:Ct==null?void 0:Ct.value}),Ht(!1)};if(ae.getFieldValue("comment")){Ue.confirm({icon:null,title:"\u63D0\u793A",centered:!0,content:"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8BC4\u8BED\u8F93\u5165\u6846\u4E2D\u5DF2\u6709\u5185\u5BB9\uFF0C\u4F7F\u7528\u5E38\u7528\u8BC4\u8BED\u5C06\u4F1A\u8986\u76D6\u539F\u6709\u5185\u5BB9\u3002\u662F\u5426\u4F7F\u7528\uFF1F",okText:"\u4F7F\u7528",onOk:xe});return}xe()})},Ee.createElement(k.ZP,{style:{padding:0,height:"auto"},icon:Ee.createElement("i",{className:"iconfont icon-changyongpingyu"}),type:"link",onClick:Me=>{Ht(!0)}},"\u5E38\u7528\u8BC4\u8BED")))),Ee.createElement(Le.default.Item,{name:"comment"},Ee.createElement(ve.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3})),Ee.createElement(ye.Z,{wrap:!1,align:"middle",justify:"space-between"},Ee.createElement(x.Z,null,Ee.createElement("div",{className:`${mt.inputLabel} ${mt.greyText}`},"\u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1")),Ee.createElement(x.Z,null,Ee.createElement(Et.Z,{isShowComponent:(0,z.G5)(),ModalProps:{open:Oe,onCancel:()=>{ht(!1)}},onDataSelect:(Me,ze)=>he(void 0,[Me,ze],function*(Pe,{node:Ct}){const xe=()=>{ae.setFieldsValue({hidden_comment:Ct==null?void 0:Ct.value}),ht(!1)};if(ae.getFieldValue("hidden_comment")){Ue.confirm({icon:null,title:"\u63D0\u793A",centered:!0,content:"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8BC4\u8BED\u8F93\u5165\u6846\u4E2D\u5DF2\u6709\u5185\u5BB9\uFF0C\u4F7F\u7528\u5E38\u7528\u8BC4\u8BED\u5C06\u4F1A\u8986\u76D6\u539F\u6709\u5185\u5BB9\u3002\u662F\u5426\u4F7F\u7528\uFF1F",okText:"\u4F7F\u7528",onOk:xe});return}xe()})},Ee.createElement(k.ZP,{style:{padding:0,height:"auto"},icon:Ee.createElement("i",{className:"iconfont icon-changyongpingyu"}),type:"link",onClick:Me=>{ht(!0)}},"\u5E38\u7528\u8BC4\u8BED")))),Ee.createElement(Le.default.Item,{name:"hidden_comment"},Ee.createElement(ve.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3}))),ue&&Ee.createElement("p",{className:"c-red"},"\u8BC4\u9605\u5185\u5BB9\u81F3\u5C11\u6709\u4E00\u4E2A\u4E0D\u4E3A\u7A7A"),Ee.createElement("div",{className:mt.tableTitle},"\u5173\u5361\u6210\u7EE9"),Ee.createElement(P.default,{className:mt.scoreTable,dataSource:Y.stage_list,rowKey:"challenge_id",pagination:!1,columns:Ne,scroll:{x:"max-content"}}))))};var Te=(0,o.connect)(({shixunHomeworks:t,classroomList:l,loading:n})=>({shixunHomeworks:t,classroomList:l,loading:n.effects}))(H),it=Object.getOwnPropertySymbols,Yt=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,je=(t,l)=>{var n={};for(var $ in t)Yt.call(t,$)&&l.indexOf($)<0&&(n[$]=t[$]);if(t!=null&&it)for(var $ of it(t))l.indexOf($)<0&<.call(t,$)&&(n[$]=t[$]);return n},Ve=(t,l,n)=>new Promise(($,re)=>{var Y=F=>{try{G(n.next(F))}catch(ue){re(ue)}},ge=F=>{try{G(n.throw(F))}catch(ue){re(ue)}},G=F=>F.done?$(F.value):Promise.resolve(F.value).then(Y,ge);G((n=n.apply(t,l)).next())});const Gt=t=>{var l=t,{shixunHomeworks:n,dispatch:$}=l,re=je(l,["shixunHomeworks","dispatch"]);const Y=(0,o.useParams)(),[ge,G]=(0,e.useState)([]),[F,ue]=(0,e.useState)([]);(0,e.useEffect)(()=>{n.actionTabs.key==="\u8D28\u91CF\u68C0\u6D4B"&&ft()},[n.actionTabs.key]);function ft(){return Ve(this,null,function*(){const Ze=yield(0,v.ZP)(`/api/homework_commons/${Y.categoryId}/code_quality_analyses/group_list.json`,{method:"GET",params:{page:1,limit:200}});G(Ze)})}const Ue=[{title:"\u5206\u73ED\u60C5\u51B5",dataIndex:"name"},{title:"\u6709\u6548\u4F5C\u54C1\u6570",dataIndex:"works_count"},{title:"\u68C0\u6D4B\u8FDB\u5EA6",dataIndex:"status"},{title:"\u4E0A\u6B21\u8BC4\u5206\u65F6\u95F4",dataIndex:"last_analysis_time"}];return e.createElement(e.Fragment,null,e.createElement(s.default,{centered:!0,title:"\u4EE3\u7801\u8D28\u91CF\u8BC4\u5206",open:n.actionTabs.key==="\u8D28\u91CF\u68C0\u6D4B",width:700,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Ve(void 0,null,function*(){const Ze=yield(0,v.ZP)(`/api/homework_commons/${Y.categoryId}/code_quality_analyses.json`,{method:"POST",body:{group_ids:F}});(Ze==null?void 0:Ze.status)===0&&(o.history.replace(`/classrooms/${Y.coursesId}/shixun_homework/${Y.categoryId}/detail?tabs=4`),window.location.reload(),$({type:"shixunHomeworks/setActionTabs",payload:{}}),ue([]))}),onCancel:()=>{ue([]),$({type:"shixunHomeworks/setActionTabs",payload:{}})}},e.createElement(P.default,{rowSelection:{type:"checkbox",onChange:(Ze,Xe)=>{ue([...Ze])},selectedRowKeys:F,getCheckboxProps:Ze=>({disabled:Ze.status==="\u8FDB\u884C\u4E2D"||Ze.works_count===0})},rowKey:Ze=>Ze.key||Ze.id,scroll:{y:300},pagination:!1,columns:Ue,dataSource:ge==null?void 0:ge.group_list})))};var Bt=(0,o.connect)(({shixunHomeworks:t})=>({shixunHomeworks:t}))(Gt),$e=Object.defineProperty,Eu=Object.getOwnPropertySymbols,mu=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable,su=(t,l,n)=>l in t?$e(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,qt=(t,l)=>{for(var n in l||(l={}))mu.call(l,n)&&su(t,n,l[n]);if(Eu)for(var n of Eu(l))kt.call(l,n)&&su(t,n,l[n]);return t},Ku=(t,l,n)=>new Promise(($,re)=>{var Y=F=>{try{G(n.next(F))}catch(ue){re(ue)}},ge=F=>{try{G(n.throw(F))}catch(ue){re(ue)}},G=F=>F.done?$(F.value):Promise.resolve(F.value).then(Y,ge);G((n=n.apply(t,l)).next())});const tn=({shixunHomeworks:t,dispatch:l,isShow:n,setIsShow:$,item:re,coursesId:Y,categoryId:ge})=>{const[G,F]=(0,e.useState)({page:1,limit:10}),[ue,ft]=(0,e.useState)([]),[Ue,Ze]=(0,e.useState)(!1);(0,e.useEffect)(()=>{n&&Xe()},[n]);function Xe(){return Ku(this,null,function*(){Ze(!0);const Oe=yield(0,v.ZP)(`/api/student_works/${re.id}/game_details.json`,{method:"get",params:qt({},G)});Ze(!1),Oe.status===0&&ft(Oe==null?void 0:Oe.data)})}const Ht=[{title:"\u5E8F\u53F7",dataIndex:"number",width:50,fixed:"left",ellipsis:!0,render:(Oe,ht,ae)=>e.createElement("span",{style:{color:"#000"}},G.limit*(G.page-1)+ae+1)},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",key:"name",ellipsis:!0,render:(Oe,ht,ae)=>e.createElement("span",{style:{color:"#000"}},Oe)},{title:"\u901A\u5173\u8BE6\u60C5",dataIndex:"complete_status",key:"complete_status",ellipsis:!0,width:100,render:(Oe,ht,ae)=>e.createElement("span",null,Oe==0?"\u672A\u901A\u5173":Oe==4?"\u622A\u6B62\u540E\u901A\u5173":"\u5DF2\u901A\u5173")},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",key:"evaluate_count",width:100,ellipsis:!0,render:(Oe,ht,ae)=>e.createElement("span",{style:{color:"#333"}},Oe)},{title:"\u5B9E\u8BAD\u8017\u65F6",dataIndex:"time_consuming",key:"time_consuming",width:120,ellipsis:!0,render:(Oe,ht,ae)=>e.createElement("span",{style:{color:"#333"}},Oe)}];return e.createElement(e.Fragment,null,e.createElement(s.default,{centered:!0,title:"\u901A\u5173\u60C5\u51B5",open:n,width:700,footer:null,maskClosable:!1,onCancel:()=>{G.page=1,G.limit=10,F(qt({},G)),$(!1)}},e.createElement("div",{style:{display:"flex",justifyContent:"flex-start",alignItems:"center",marginBottom:"20px"}},e.createElement("div",{style:{maxWidth:"200px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",WebkitLineClamp:1}},e.createElement("span",{style:{color:"#666",marginRight:"10px"}},"\u5B66\u751F\u59D3\u540D"),e.createElement("span",{title:re==null?void 0:re.user_name,style:{color:"#232B40"}},re==null?void 0:re.user_name)),e.createElement("div",{style:{marginLeft:"50px",marginRight:"50px",maxWidth:"180px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",WebkitLineClamp:1}},e.createElement("span",{style:{color:"#666",marginRight:"10px"}},"\u5B66\u53F7"),e.createElement("span",{title:re==null?void 0:re.student_id,style:{color:"#232B40"}},(re==null?void 0:re.student_id)||"--")),e.createElement("div",{style:{maxWidth:"200px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",WebkitLineClamp:1}},e.createElement("span",{style:{color:"#666",marginRight:"10px"}},"\u73ED\u7EA7"),e.createElement("span",{title:re==null?void 0:re.group_name,style:{color:"#232B40"}},(re==null?void 0:re.group_name)||"--"))),e.createElement(P.default,{scroll:{y:380},columns:Ht,loading:Ue,style:{marginBottom:G.limit>(ue==null?void 0:ue.count)?"16px":"0"},dataSource:ue.games,pagination:{size:"default",showQuickJumper:!0,showSizeChanger:!0,pageSizeOptions:["10","15","50","100","200"],hideOnSinglePage:!0,pageSize:G.limit,current:G.page,position:["bottomRight"],onChange:(Oe,ht)=>{G.page=Oe,G.limit=ht,F(qt({},G)),Xe()},total:ue==null?void 0:ue.count,showTotal:(Oe,ht)=>e.createElement("span",null,"\u5171",e.createElement("span",{style:{color:"#165DFF"}}," ",Oe," "),"\u6761\u6570\u636E")}})))};var _u=(0,o.connect)(({shixunHomeworks:t})=>({shixunHomeworks:t}))(tn),An=u(78297),yn=u(24544),p=u(59301),un=Object.defineProperty,hn=Object.getOwnPropertySymbols,ku=Object.prototype.hasOwnProperty,cn=Object.prototype.propertyIsEnumerable,qu=(t,l,n)=>l in t?un(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,Vu=(t,l)=>{for(var n in l||(l={}))ku.call(l,n)&&qu(t,n,l[n]);if(hn)for(var n of hn(l))cn.call(l,n)&&qu(t,n,l[n]);return t},xu=(t,l,n)=>new Promise(($,re)=>{var Y=F=>{try{G(n.next(F))}catch(ue){re(ue)}},ge=F=>{try{G(n.throw(F))}catch(ue){re(ue)}},G=F=>F.done?$(F.value):Promise.resolve(F.value).then(Y,ge);G((n=n.apply(t,l)).next())});const an=({shixunHomeworks:t,loading:l,dispatch:n,setExportParams:$,classroomList:re,user:Y})=>{var ge,G,F,ue,ft,Ue,Ze,Xe,Ht,Oe,ht,ae,vt,Lt,Ne,Me,ze,Pe,Ct,xe,w,Ie,ee,tt,bt,ut,Jt,Pt,Ge,iu,Fu,Re,gt,qe,Vt,At,Tt,St,Ou,et,wu,Pu,ru,fu,zu,Du,Su,se,Qe,Kt,gu,cu,Au,de,zt;const vu=(0,o.useParams)(),[T,ct]=(0,e.useState)(Vu(Vu({},{page:1,limit:20,order:"work_score",b_order:"desc"}),vu)),[Ot]=Le.default.useForm(),[ou,Bu]=(0,e.useState)(),[nu,sn]=(0,e.useState)({}),[sl,il]=(0,e.useState)({}),[ua,na]=(0,e.useState)([]),[bo,Yn]=(0,e.useState)(!1),[wn,la]=(0,e.useState)([]),[Oo,jn]=(0,e.useState)(!1),[aa,ra]=(0,e.useState)(),[fn,oa]=(0,e.useState)(1),[ds,Po]=(0,e.useState)(),[gn,sa]=(0,e.useState)(),[vn,ia]=(0,e.useState)(),[Mn,ca]=(0,e.useState)(),[Un,cl]=(0,e.useState)(),[ko,Ro]=(0,e.useState)(!1),[dl,Zo]=(0,e.useState)(!1),[To,ml]=(0,e.useState)(!1),[zo,da]=(0,e.useState)(),El=(0,e.useRef)(),[Hn,ma]=(0,e.useState)([]),[Ea,Qo]=(0,e.useState)([]),[pa,fa]=(0,e.useState)(0),[Wo,pl]=(0,e.useState)(!1),[Fn,Kn]=(0,e.useState)(""),[Yo,fl]=(0,e.useState)(""),[Uo,Nn]=(0,e.useState)(!1),[Ho,Gn]=(0,e.useState)(!1),[Ko,Jn]=(0,e.useState)(""),Vn=(0,e.useRef)(null);(0,e.useEffect)(()=>(ln(!0),()=>{sn([]),na([]),clearInterval(El.current)}),[T.coursesId]),(0,e.useEffect)(()=>{var I;try{const J=JSON.parse(JSON.stringify(t.shixunWorkList));!((I=J==null?void 0:J.student_works)!=null&&I.length)&&(J!=null&&J.id)?(J.student_works=[Vu({},J)],sn(J)):(J!=null&&J.id&&na([Vu(Vu({},J),{number:"\u6211"})]),sn(Vu({},J)))}catch(J){}},[t.shixunWorkList]);const Go=()=>xu(void 0,null,function*(){const I=n({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:T})}),ln=I=>{$(Vu({},T));const J=n({type:"shixunHomeworks/getShixunWorkList",payload:T});return I&&J.then(It=>{var Iu,yu,Hu;((Iu=It==null?void 0:It.homework_status)!=null&&Iu.includes("\u8FDB\u884C\u4E2D")||(yu=It==null?void 0:It.homework_status)!=null&&yu.includes("\u8865\u4EA4\u4E2D")||(Hu=It==null?void 0:It.homework_status)!=null&&Hu.includes("\u63D0\u4EA4\u4E2D"))&&(0,z.dE)()}),J};(0,e.useEffect)(()=>{},[]);const ms=()=>xu(void 0,null,function*(){const I=yield(0,S.Uc)({categoryId:vu.categoryId});Bu(I==null?void 0:I.update_score)}),Jo=()=>xu(void 0,null,function*(){n({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6210\u7EE9\u8BA1\u7B97\u4E2D\uFF0C\u8BF7\u7A0D\u5019..."}});const I=yield(0,S.Vs)({categoryId:vu.categoryId});n({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),(I==null?void 0:I.status)===0&&(i.ZP.success(I==null?void 0:I.message),ln())}),Vo=()=>{T.page=1;const I=Object.assign({},Ot.getFieldValue());delete T.course_group,delete T.teacher_comment,Object.keys(I).map(function(J){var It;switch(J){case"task_status":I[J].includes("all")||!I[J].length?(delete T.work_status,Ot.setFieldsValue({task_status:"all"})):(T.work_status=I[J],Ot.setFieldsValue({task_status:T.work_status}));break;case"course_group_info":I[J].includes("all")||!I[J].length?(delete T.course_group,Ot.setFieldsValue({course_group_info:"all"})):(T.course_group=I[J],Ot.setFieldsValue({course_group_info:T.course_group}));break;case"teacher_comment":I[J].includes("all")||!I[J].length?(delete T.teacher_comment,Ot.setFieldsValue({teacher_comment:"all"})):(T.teacher_comment=((It=I[J])==null?void 0:It.length)===1?Number(I[J][0]):"",Ot.setFieldsValue({teacher_comment:I[J]}));break}}),ln(),Go()},Xo=(I,J)=>{ma(J.map(It=>(It.course_group_id===I&&(It.checked=!It.checked),It))),ga(J)},ga=I=>{Qo(I.filter(J=>J.checked).map(J=>J.course_group_id))},Ln=(0,e.useRef)();(0,e.useEffect)(()=>{Ln.current=Ea},[Ea]),(0,e.useEffect)(()=>{document.getElementById("divhe")&&document.getElementById("divhe").scrollHeight>47&&(cl(47),Ro(!0))},[document.getElementById("divhe")]);const qo=(I,J)=>{T.page=I,T.limit=J,ln()};function Xn(){oa(1),Po(""),sa(""),ia(""),ca(""),la([])}(0,e.useEffect)(()=>{sessionStorage.getItem("classroomsShixunDetailAutoRefersh")&&va(!0)},[]);const va=I=>{if(!I){clearInterval(El.current);return}El.current=setInterval(()=>{ln()},1e3*10)},Fa=[{title:"\u5E8F\u53F7",dataIndex:"number",align:"center",width:50,ellipsis:{showTitle:!1},render:(I,J,It)=>T.limit*(T.page-1)+It+1},{title:"\u59D3\u540D",dataIndex:"user_name",align:"center",width:110,ellipsis:{showTitle:!1},render:I=>p.createElement(j.Z,{placement:"bottomLeft",title:I},p.createElement("span",{className:"current"},I))},!((ge=t.headerInfo)!=null&&ge.is_excellent)&&!(0,z.Jd)()&&{title:"\u5B66\u53F7",dataIndex:"student_id",align:"center",sorter:!0,showSorterTooltip:!1,ellipsis:{showTitle:!1},sortOrder:T.order==="student_id"?T.b_order==="desc"?"descend":"ascend":null,render:I=>p.createElement(j.Z,{placement:"bottomLeft",title:I||"--"},p.createElement("span",{className:"current"},I||"--"))},{title:"\u5206\u73ED",dataIndex:"group_name",align:"center",ellipsis:{showTitle:!1},render:(I,J)=>I?p.createElement(j.Z,{placement:"bottom",title:I},p.createElement("span",{className:"current"},I)):"--"},{title:"\u4F5C\u4E1A\u72B6\u6001",dataIndex:"work_status",align:"center",sorter:!0,ellipsis:{showTitle:!1},showSorterTooltip:!1,sortOrder:T.order==="work_status"?T.b_order==="desc"?"descend":"ascend":null,render:(I,J)=>p.createElement(p.Fragment,null,p.createElement(Z.rK,{status:I}),(J==null?void 0:J.student_view_answer)&&p.createElement("div",{style:{color:"#3061D0"}},"\uFF08\u67E5\u770B\u7B54\u6848\uFF09"))},!(0,z.Jd)()&&{title:p.createElement("span",null,"\u6700\u7EC8\u6210\u7EE9",p.createElement(j.Z,{placement:"top",title:p.createElement("pre",null,"\u9F20\u6807\u505C\u7559\u5177\u4F53\u5206\u503C\u4E0A\u53EF\u67E5",p.createElement("br",null),"\u770B\u5F97\u5206\u660E\u7EC6",p.createElement("br",null))},p.createElement("img",{src:`${W.Z.IMG_SERVER}/images/educoder/problem.png`,className:"ml2 current"}))),dataIndex:"work_score",sorter:!0,align:"center",showSorterTooltip:!1,sortOrder:T.order==="work_score"?T.b_order==="desc"?"descend":"ascend":null,ellipsis:{showTitle:!1},render:(I,J)=>{var It;let Iu;const{unadjusted_score:yu,is_adjusted:Hu}=J||{};return I>=0&&I<=60?Iu=p.createElement("span",{className:"c-red"},Hu?`${I}(\u5DF2\u8C03\u5206)`:I):I===100?Iu=p.createElement("span",{className:"c-green"},Hu?`${I}(\u5DF2\u8C03\u5206)`:I):I>60?Iu=p.createElement("span",{className:"c-orange"},Hu?`${I}(\u5DF2\u8C03\u5206)`:I):Iu="--",p.createElement(j.Z,{placement:"bottom",title:J.ultimate_score?p.createElement("div",null,Iu==="--"?"\u6700\u7EC8\u8C03\u6574\u6210\u7EE9\uFF1A0\u5206":`\u6700\u7EC8\u8C03\u6574\u6210\u7EE9\uFF1A${J.work_score}\u5206`):p.createElement("div",null,p.createElement("div",null,J.final_score?`\u5173\u5361\u5F97\u5206\uFF1A${J.final_score}\u5206`:"\u5173\u5361\u5F97\u5206\uFF1A0\u5206"),p.createElement("div",null,J.eff_score?`\u6548\u7387\u8BC4\u5206\uFF1A${J.eff_score}\u5206`:"\u6548\u7387\u8BC4\u5206\uFF1A0\u5206"),p.createElement("div",null,J.repeat_minus_score?`\u67E5\u91CD\u6263\u5206\uFF1A${J.repeat_minus_score}\u5206`:"\u67E5\u91CD\u6263\u5206\uFF1A0\u5206"),p.createElement("div",null,J.late_penalty?`\u8865\u4EA4\u6263\u5206\uFF1A${J.late_penalty}\u5206`:"\u8865\u4EA4\u6263\u5206\uFF1A0\u5206"),!((It=t.headerInfo)!=null&&It.answer_open_evaluation)&&p.createElement("div",null,"\u67E5\u770B\u53C2\u8003\u7B54\u6848\uFF1A",J.view_answer_count,"\u5173"),p.createElement("div",null,"\u539F\u59CB\u6210\u7EE9\uFF1A",yu==="--"?yu:`${yu}\u5206`),p.createElement("div",null,J.work_score?`\u6700\u7EC8\u6210\u7EE9\uFF1A${J.work_score}\u5206`:"\u6700\u7EC8\u6210\u7EE9\uFF1A0\u5206"))},Iu)}},{title:p.createElement("span",null,"\u5B8C\u6210\u65F6\u95F4"),dataIndex:"finished_time",align:"center",ellipsis:!1,showSorterTooltip:!1,sorter:!0,sortOrder:T.order==="finished_time"?T.b_order==="desc"?"descend":"ascend":null,render:(I,J)=>I?p.createElement(j.Z,{placement:"bottomLeft",title:I},I&&I!="--"?M()(I).format(dl?"HH:mm":"YYYY-MM-DD HH:mm"):I):"--"},{title:p.createElement("span",null,"\u5B9E\u8BAD\u603B\u8017\u65F6"),dataIndex:"cost_time",align:"center",ellipsis:!1,showSorterTooltip:!1,sorter:!0,sortOrder:T.order==="cost_time"?T.b_order==="desc"?"descend":"ascend":null,render:(I,J)=>I?p.createElement(j.Z,{placement:"bottomLeft",title:I},I):"--"},{title:"\u901A\u5173\u60C5\u51B5",align:"center",dataIndex:"complete_info",ellipsis:{showTitle:!1},render:(I,J)=>p.createElement(p.Fragment,null,p.createElement("span",{style:{color:"#0152d9"},onClick:It=>{It.stopPropagation(),da(J),ml(!0)}},I),(0,z.dE)()&&([-1,0,1].includes(J==null?void 0:J.work_status)&&(J==null?void 0:J.complete_info_condition)||!(J!=null&&J.complete_info_condition)&&[2,3,4].includes(J==null?void 0:J.work_status))&&p.createElement(j.Z,{title:"\u4F5C\u4E1A\u72B6\u6001\u4E0E\u901A\u5173\u60C5\u51B5\u4E0D\u5339\u914D\uFF0C\u53EF\u70B9\u51FB\u66F4\u65B0\u6210\u7EE9\u6309\u94AE\u83B7\u53D6\u6700\u65B0\u6210\u7EE9"},p.createElement("i",{className:"iconfont icon-tishi3",style:{color:"#F59A23"}})))},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"sum_evaluate_count",align:"center",ellipsis:{showTitle:!1},sorter:!0,sortOrder:T.order==="sum_evaluate_count"?T.b_order==="desc"?"descend":"ascend":null,render:(I,J)=>I&&I!="--"?p.createElement(j.Z,{placement:"bottom",title:I},p.createElement("span",{className:"current"},I)):"--"},!dl&&{title:"\u64CD\u4F5C",dataInex:"action",align:"center",ellipsis:!0,className:"workListTable",render:(I,J)=>{var It,Iu,yu,Hu;return(0,z.dE)()?p.createElement("div",null,(0,Z.JL)(J==null?void 0:J.work_status)==="\u672A\u5F00\u542F"?p.createElement("span",null,"--"):p.createElement("a",{target:"_blank",onClick:Ju=>{var en,bn;if((bn=(en=t==null?void 0:t.headerInfo)==null?void 0:en.homework_status)!=null&&bn.includes("\u5BFC\u5165")){Ju.stopPropagation(),da(J),ml(!0);return}Ju.stopPropagation(),window.open(`/classrooms/${T.coursesId}/shixun_homework/${T.categoryId}/${J.id}/comment`)}},"\u67E5\u770B")):(Iu=(It=t==null?void 0:t.headerInfo)==null?void 0:It.homework_status)!=null&&Iu.includes("\u5BFC\u5165")?(0,z.GJ)()&&p.createElement("span",{style:{color:"#0152d9"},onClick:Ju=>{var en;Ju.stopPropagation(),n({type:"classroomList/setActionTabs",payload:{key:"\u4FEE\u6539\u6210\u7EE9",name:(en=t==null?void 0:t.headerInfo)==null?void 0:en.homework_name,id:J==null?void 0:J.id,type:"practice"}})}},"\u4FEE\u6539\u6210\u7EE9"):p.createElement("div",null,p.createElement("span",{style:{color:"#0152d9"},onClick:(0,ke.throttle)(Ju=>xu(void 0,null,function*(){if((0,z.Rm)()&&!re.AssistantObject.practice.can_appraise){i.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Ju.stopPropagation(),n({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:"",data:{name:J==null?void 0:J.user_name,homeworkId:J==null?void 0:J.id}}}})}),2e3,{trailing:!1,leading:!0})},J.has_shixun_work_comment?"\u66F4\u6539\u70B9\u8BC4":"\u8FFD\u52A0\u70B9\u8BC4"),(J==null?void 0:J.work_status)!==0&&[1,2,3,4].includes(J==null?void 0:J.work_status)&&[p.createElement("br",null),p.createElement("a",{target:"_blank",onClick:(0,ke.throttle)(Ju=>xu(void 0,null,function*(){var en,bn,Ca,Da,Ba;if(Ju.stopPropagation(),Ju.preventDefault(),(0,z.Rm)()&&!((en=re.AssistantObject.practice)!=null&&en.can_view)){i.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}if((bn=Y.userInfo)!=null&&bn.professional_certification){const _n=yield(0,S.GS)(J==null?void 0:J.id);(Ca=_n==null?void 0:_n.data)!=null&&Ca.url&&(0,Z.xg)(((Da=_n==null?void 0:_n.data)==null?void 0:Da.url)+`?courseGroup=${(T==null?void 0:T.course_group)||""}&workStatus=${((Ba=T==null?void 0:T.work_status)==null?void 0:Ba.filter(Ma=>Ma!=0&&Ma!=-1))||""}&search=${(T==null?void 0:T.search)||""}`)}else return s.default.confirm({title:"\u63D0\u793A",centered:!0,content:p.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,Z.xg)("/account/certification")}}),!1}),5e3,{trailing:!1,leading:!0})},"\u67E5\u770B\u5B9E\u8BAD")],((Hu=(yu=t==null?void 0:t.headerInfo)==null?void 0:yu.homework_status)==null?void 0:Hu[0])!=="\u5DF2\u622A\u6B62"&&!!J.myshixun_id&&[p.createElement("br",null),p.createElement("span",{className:oe.color32C,onClick:Ju=>{Ju.stopPropagation(),n({type:"shixunHomeworks/setActionTabs",payload:{key:"\u6253\u56DE\u91CD\u505A",selectArrs:J,params:T,homework_common_id:T.categoryId}})}},"\u6253\u56DE\u91CD\u505A")])}}].filter(I=>!!I),_o=()=>{var I,J,It,Iu;return p.createElement(O.default,null,p.createElement(O.default.Item,{onClick:()=>{var yu,Hu;if((0,z.Rm)()&&!((yu=re.AssistantObject.practice)!=null&&yu.can_download)){i.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}n({type:"classroomList/setActionTabs",payload:{key:"\u9009\u62E9\u73ED\u7EA7",title:"\u5BFC\u51FA\u5B66\u751F\u6210\u7EE9",course_groups:(Hu=t==null?void 0:t.headerInfo)==null?void 0:Hu.course_group_info,fn:()=>{(0,An.Iy)(JSON.parse(sessionStorage.all_student_works_params),"shixun_work_list")}}})},key:"1"},"\u5B66\u751F\u6210\u7EE9"),(0,z.GJ)()&&((I=nu==null?void 0:nu.student_works)==null?void 0:I.length)>0&&!((It=(J=t==null?void 0:t.headerInfo)==null?void 0:J.homework_status)!=null&&It.includes("\u5BFC\u5165"))&&p.createElement(O.default.Item,{key:"3",onClick:()=>{var yu,Hu;if((0,z.Rm)()&&!((yu=re.AssistantObject.practice)!=null&&yu.can_download)){i.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}n({type:"classroomList/setActionTabs",payload:{key:"\u9009\u62E9\u73ED\u7EA7",title:"\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A",course_groups:(Hu=t==null?void 0:t.headerInfo)==null?void 0:Hu.course_group_info,fn:()=>{s.default.confirm({title:"\u9009\u62E9\u5BFC\u51FA\u65B9\u5F0F",closable:!0,icon:null,centered:!0,okText:p.createElement(j.Z,{title:"\u5BFC\u51FA\u65F6\u4E0D\u80FD\u9000\u51FA\u6216\u5173\u95ED\u5BFC\u51FA\u9875\u9762\uFF0C\u53EF\u80FD\u4F1A\u5F71\u54CD\u5176\u4ED6\u64CD\u4F5C"},"\u524D\u7AEF\u5BFC\u51FA"),cancelText:p.createElement(j.Z,{title:"\u751F\u6210\u5BFC\u51FA\u4EFB\u52A1\u540E\u53EF\u5173\u95ED\u9875\u9762\uFF0C\u540E\u53F0\u5BFC\u51FA\u6210\u529F\u540E\u5728\u5386\u53F2\u5BFC\u51FA\u9875\u9762\u81EA\u884C\u4E0B\u8F7D\uFF0C\u4E0D\u5F71\u54CD\u5176\u4ED6\u64CD\u4F5C"},"\u540E\u53F0\u5BFC\u51FA"),onOk:()=>{var Ju,en;n({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A",type:2}}),localStorage.setItem("dowolders","1"),o.history.push(`/classrooms/${T==null?void 0:T.coursesId}/shixun_homework/${T.categoryId}/${(en=(Ju=nu==null?void 0:nu.student_works)==null?void 0:Ju[0])==null?void 0:en.id}/comment`)},onCancel:()=>{},cancelButtonProps:{onClick:()=>{(0,An.jj)(JSON.parse(sessionStorage.all_student_works_params),"shixun_report")}}})}}})}},"\u5B9E\u8BAD\u62A5\u544A"),((Iu=t==null?void 0:t.headerInfo)==null?void 0:Iu.start_permanent)&&p.createElement(O.default.Item,{onClick:()=>xu(void 0,null,function*(){let yu=yield(0,v.ZP)(`/api/homework_commons/${T.categoryId}/export_workspace_files.json`,{method:"post",body:{is_repeat_export:0}});yu.status===0&&o.history.push(`/classrooms/${T.coursesId}/exportlist/workspace_files`),yu.status===-3&&(n({type:"classroomList/setActionTabs",payload:{key:"\u91CD\u590D\u5BFC\u51FA\u63D0\u9192",params:T}}),o.history.push(`/classrooms/${T.coursesId}/exportlist/workspace_files`))}),key:"4"},"\u5B9E\u9A8C\u6570\u636E"),p.createElement(O.default.Item,{key:"2",onClick:()=>{var yu;if((0,z.Rm)()&&!((yu=re.AssistantObject.practice)!=null&&yu.can_download)){i.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}o.history.push(`/classrooms/${T==null?void 0:T.coursesId}/exportlist/shixun_work_list,shixun_report`)}},"\u5386\u53F2\u5BFC\u51FA"))},$o=I=>I.replace(/\\\(([\s\S]*?)\\\)/g,"$$$$$1$$$$").replace(/\\\[([\s\S]*?)\\\]/g,"$$$$$1$$$$").replace(/`(\$\$.*?\$\$)`/g,"$$$$$1$$$$").replace(/_{2,}/g,"`$&`"),[gl,Aa]=(0,e.useState)(!1),[ya,vl]=(0,e.useState)(""),qn=(0,e.useRef)(null),es=()=>xu(void 0,null,function*(){var I;Aa(!0),qn.current=new yn.Z(W.Z.API_SERVER+"/api/stream/intelligent_imports/chat_messages.json",{response_mode:"streaming",model:"qwen-max",scene_awareness:!1,thinking_enabled:!1,image_generator:!1,file_ids:[],history:[],prompt:Fn,shixun_id:(I=t==null?void 0:t.headerInfo)==null?void 0:I.shixun_identifier,source:"shixun",is_chat:!1,type:9,description:Fn,query:`# \u521D\u59CB\u5316\u7D2F\u52A0\u5668 +sum = 0 +# \u4F7F\u7528for\u5FAA\u73AF\u904D\u53861\u5230100 +for i in range(1, 101): +sum += i # \u5C06\u5F53\u524D\u503C\u52A0\u5230sum\u4E2D +# \u8F93\u51FA\u7ED3\u679C +print("1\u5230100\u7684\u7D2F\u52A0\u548C\u4E3A:", sum)`}),yield new Promise((J,It)=>{qn.current.on("data",Iu=>{vl($o(Iu==null?void 0:Iu.full))}),qn.current.on("done",()=>xu(void 0,null,function*(){Aa(!1)})),qn.current.startStream()})}),ha=()=>{var I;(0,v.ZP)(`/api/shixun_homeworks/${T.categoryId}/batch_comments.json`,{method:"post",body:{ai_code_evaluation_promote:Fn}}),pl(!1),Kn((I=t==null?void 0:t.headerInfo)==null?void 0:I.ai_code_evaluation_promote),vl("")};return p.createElement(p.Fragment,null,p.createElement("section",{className:`${oe.wrap} minH500 bg-white pl30 pr30 pt30`},((F=(G=t==null?void 0:t.headerInfo)==null?void 0:G.homework_status)==null?void 0:F.includes("\u672A\u53D1\u5E03"))&&p.createElement(L.Z,null),!!ua.length&&p.createElement(P.default,{className:"mb10",dataSource:ua,columns:Fa,pagination:!1,showHeader:!1,loading:!1}),!((ft=(ue=t==null?void 0:t.headerInfo)==null?void 0:ue.homework_status)!=null&&ft.includes("\u672A\u53D1\u5E03"))&&p.createElement("aside",null,!(0,z.GJ)()&&p.createElement("div",{className:"c-light-black font12"},p.createElement("span",null,"\u5DF2\u5F00\u59CB\u505A\u9898 ",((Ue=t==null?void 0:t.shixunWorkList)==null?void 0:Ue.commit_count)||0," \u4EBA"),p.createElement("span",{className:"ml5"},"\u672A\u5F00\u59CB\u505A\u9898 ",((Ze=t==null?void 0:t.shixunWorkList)==null?void 0:Ze.uncommit_count)||0," \u4EBA"),((Xe=t==null?void 0:t.headerInfo)==null?void 0:Xe.left_time)&&p.createElement(p.Fragment,null,p.createElement("span",{className:"ml20 c-black"},(Oe=(Ht=t==null?void 0:t.headerInfo)==null?void 0:Ht.left_time)==null?void 0:Oe.status),p.createElement("span",{className:"ml20 c-orange-ff9"},(ae=(ht=t==null?void 0:t.headerInfo)==null?void 0:ht.left_time)==null?void 0:ae.time))),(0,z.GJ)()&&p.createElement(p.Fragment,null,p.createElement(Le.default,{form:Ot,onChange:Vo,initialValues:{task_status:"all",course_group_info:"all",teacher_comment:"all"}},((Lt=(vt=t==null?void 0:t.headerInfo)==null?void 0:vt.task_status)==null?void 0:Lt.length)>0&&p.createElement(Le.default.Item,{name:"task_status"},p.createElement(g.default.Group,{value:[],style:{width:"100%"}},p.createElement(ye.Z,null,p.createElement(x.Z,{className:"font14",flex:"80px"},"\u4F5C\u4E1A\u72B6\u6001:"),p.createElement(x.Z,{flex:"80px"},p.createElement(g.default,{value:"all"},"\u5168\u90E8")),p.createElement(x.Z,{flex:"1"},((Ne=t==null?void 0:t.headerInfo)==null?void 0:Ne.task_status)&&((Me=t==null?void 0:t.headerInfo)==null?void 0:Me.task_status.map((I,J)=>p.createElement(g.default,{name:"task_status",value:I.id},I.name,"(",I.count,")",I.name==="\u622A\u6B62\u540E\u901A\u5173"?p.createElement(j.Z,{title:"\u5728\u89C4\u5B9A\u65F6\u95F4\u5916\u5B8C\u6210\u7684\u4F5C\u4E1A"},p.createElement("i",{className:"font13 ml5 iconfont icon-tishixiaowenhao"})):null))))))),((Pe=(ze=t==null?void 0:t.headerInfo)==null?void 0:ze.course_group_info)==null?void 0:Pe.length)>0&&p.createElement(Le.default.Item,{name:"course_group_info"},p.createElement(g.default.Group,{style:{width:"100%"}},p.createElement(ye.Z,null,p.createElement(x.Z,{className:"font14",flex:"80px",style:{marginBottom:10}},"\u5206\u73ED\u60C5\u51B5:"),p.createElement(x.Z,{flex:"80px"},p.createElement(g.default,{value:"all"},"\u5168\u90E8")),p.createElement(x.Z,{flex:"1",id:"divhe",style:{height:Un+"px",overflow:"hidden"}},(xe=(Ct=t==null?void 0:t.headerInfo)==null?void 0:Ct.course_group_info)==null?void 0:xe.map((I,J)=>p.createElement(g.default,{value:I.course_group_id},I.group_group_name,"(",I.count,")"))),ko&&p.createElement("span",{onClick:()=>{let I=document.getElementById("divhe").scrollHeight;Un>47?cl(47):cl(I)},style:{color:"rgb(76, 172, 255)",cursor:"pointer",alignItems:"flex-end",display:"flex"}},Un===47?"\u5C55\u5F00":"\u6536\u8D77",Un===47?p.createElement(wt.Z,{style:{marginBottom:"3px",marginLeft:"2px"}}):p.createElement(Ft.Z,{style:{marginBottom:"3px",marginLeft:"2px"}}))))),((Ie=(w=t==null?void 0:t.headerInfo)==null?void 0:w.teacher_comment)==null?void 0:Ie.length)>0&&p.createElement(Le.default.Item,{name:"teacher_comment"},p.createElement(g.default.Group,{style:{width:"100%"}},p.createElement(ye.Z,null,p.createElement(x.Z,{className:"font14",flex:"80px"},"\u8FFD\u52A0\u70B9\u8BC4:"),p.createElement(x.Z,{flex:"80px"},p.createElement(g.default,{value:"all"},"\u5168\u90E8")),p.createElement(x.Z,{flex:"1"},((ee=t==null?void 0:t.headerInfo)==null?void 0:ee.teacher_comment)&&((tt=t==null?void 0:t.headerInfo)==null?void 0:tt.teacher_comment.map((I,J)=>p.createElement(g.default,{value:String(I.id)},I.name,"(",I.count,")")))))))),p.createElement(ye.Z,{align:"middle"},p.createElement(x.Z,{flex:"1"},p.createElement(ye.Z,{align:"middle"},p.createElement(x.Z,null,p.createElement(ve.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",onSearch:I=>{T.search=I.trim(),T.page=1,ln()},style:{width:240}})),p.createElement(x.Z,null,p.createElement("span",{className:"ml5"},p.createElement("span",{className:"c-red"},(bt=t==null?void 0:t.shixunWorkList)==null?void 0:bt.total_count),"\u4E2A\u68C0\u7D22\u7ED3\u679C\uFF08",(ut=t==null?void 0:t.shixunWorkList)==null?void 0:ut.total_count,"\u4E2A\u5B66\u751F\uFF09")))),p.createElement(x.Z,null,((Pt=(Jt=t==null?void 0:t.headerInfo)==null?void 0:Jt.homework_status)==null?void 0:Pt.includes("\u5DF2\u622A\u6B62"))&&p.createElement(k.ZP,{className:"ml10",onClick:()=>{var I;pl(!0),Kn(Yo||((I=t==null?void 0:t.headerInfo)==null?void 0:I.ai_code_evaluation_promote))}},p.createElement("span",{className:`${oe.tr1} iconfont icon-yijiandaimapingjia mr5`}),"\u667A\u80FD\u4EE3\u7801\u8BC4\u4EF7"),(0,z.GJ)()&&((Ge=t==null?void 0:t.headerInfo)==null?void 0:Ge.code_review)&&!((Fu=(iu=t==null?void 0:t.headerInfo)==null?void 0:iu.homework_status)!=null&&Fu.includes("\u5BFC\u5165"))&&p.createElement(k.ZP,{className:"ml10",onClick:()=>{n({type:"shixunHomeworks/setActionTabs",payload:{key:"\u4EE3\u7801\u67E5\u91CD",selectArrs:nu.student_works.map(I=>I.id),params:T}})}},p.createElement("span",{className:`${oe.tr1} iconfont icon-daimachazhong mr5`}),"\u4EE3\u7801\u67E5\u91CD"),(0,z.GJ)()&&ou&&p.createElement(k.ZP,{className:"ml10",onClick:Jo},p.createElement("i",{className:"iconfont icon-gengxinchengji font14 pr5"}),"\u66F4\u65B0\u6210\u7EE9"),((gt=(Re=t==null?void 0:t.headerInfo)==null?void 0:Re.homework_status)==null?void 0:gt.includes("\u5DF2\u622A\u6B62"))&&(0,z.GJ)()&&p.createElement(k.ZP,{className:"ml10",onClick:()=>{n({type:"shixunHomeworks/setActionTabs",payload:{key:"\u8D28\u91CF\u68C0\u6D4B",selectArrs:nu.student_works.map(I=>I.id),params:T}})}},p.createElement("i",{className:"iconfont icon-a-08zhiliang-xianxing font14 pr5"}),"\u8D28\u91CF\u8BC4\u5206"),!((Vt=(qe=t==null?void 0:t.headerInfo)==null?void 0:qe.homework_status)!=null&&Vt.includes("\u5BFC\u5165"))&&p.createElement(k.ZP,{className:"ml10",onClick:()=>{var I,J;if((0,z.Rm)()&&!((J=(I=re.AssistantObject)==null?void 0:I.practice)!=null&&J.can_appraise)){i.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}n({type:"shixunHomeworks/setActionTabs",payload:{key:"\u4E00\u952E\u70B9\u8BC4",selectArrs:nu.student_works.map(It=>It.id),params:T}})}},p.createElement(rt.Z,{className:"mr5"}),"\u4E00\u952E\u70B9\u8BC4"),(((Tt=(At=t==null?void 0:t.headerInfo)==null?void 0:At.homework_status)==null?void 0:Tt.includes("\u63D0\u4EA4\u4E2D"))||((Ou=(St=t==null?void 0:t.headerInfo)==null?void 0:St.homework_status)==null?void 0:Ou.includes("\u8865\u4EA4\u4E2D"))||((wu=(et=t==null?void 0:t.headerInfo)==null?void 0:et.homework_status)==null?void 0:wu.includes("\u8FDB\u884C\u4E2D")))&&p.createElement(k.ZP,{className:"ml10",onClick:()=>{var I;if((0,z.Rm)()&&!((I=re.AssistantObject.practice)!=null&&I.can_redo)){i.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Yn(!0),xu(void 0,null,function*(){const It=yield(0,v.ZP)(`/api/homework_commons/${T==null?void 0:T.categoryId}/teacher_manage_groups.json`,{method:"get",params:JSON.parse(sessionStorage.all_student_works_params)});It.status===0&&(console.log("\u53D1\u9001\u8BF7\u6C42\u4E86",It),ma(It.data.list),ga(It.data.list))})}},"\u4E00\u952E\u6253\u56DE"),(0,z.GJ)()&&p.createElement(ne.Z,{dropdownRender:_o,className:"ml10"},p.createElement(k.ZP,null,p.createElement(Xt.Z,null),"\u5BFC\u51FA",p.createElement(lu.Z,null)))))),(0,z.Gg)()&&((Pu=t==null?void 0:t.headerInfo)==null?void 0:Pu.start_permanent)&&p.createElement(ye.Z,{style:{marginTop:"15px",display:"inline-flex",background:"#F5F5F5",borderRadius:4,height:42,lineHeight:"40px",width:"100%",padding:"0px 10px",alignItems:"center",color:"#9096A3"}},p.createElement("span",null,"\u5B66\u751F\u4F5C\u4E1A\u7684\u5B9E\u9A8C\u73AF\u5883\u4E34\u65F6\u6570\u636E\uFF08/data/workspace\u76EE\u5F55\uFF09\u5C06\u957F\u671F\u4FDD\u5B58 \uFF0C\u6559\u5E08\u53EF\u901A\u8FC7\u201C\u5BFC\u51FA-\u5B9E\u9A8C\u6570\u636E\u201D\u529F\u80FD\u4E0B\u8F7D\u5B9E\u9A8C\u73AF\u5883\u4E34\u65F6\u6570\u636E\u3002")),p.createElement(ye.Z,{style:{justifyContent:"end",marginTop:"5px"}},(0,z.GJ)()&&ou&&p.createElement("span",null,p.createElement("span",{style:{color:"red"}},"*"),"\u5217\u8868\u4E2D\u4F5C\u4E1A\u8BB0\u5F55\u5B58\u5728\u5DEE\u5F02\uFF0C\u8BF7\u70B9\u51FB\u201C\u66F4\u65B0\u6210\u7EE9\u201D\u6309\u94AE")),!((fu=(ru=t==null?void 0:t.headerInfo)==null?void 0:ru.homework_status)!=null&&fu.includes("\u5BFC\u5165"))&&p.createElement(ye.Z,{align:"middle",className:oe.refresh},p.createElement(x.Z,{flex:"121px",className:"flex-container"},p.createElement(Fe.Z,{checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED",defaultChecked:dl,onChange:I=>{Zo(I)}})," ",p.createElement("span",{className:"ml8"},"\u7B80\u6D01\u6A21\u5F0F")),(((Du=(zu=t==null?void 0:t.headerInfo)==null?void 0:zu.homework_status)==null?void 0:Du.includes("\u63D0\u4EA4\u4E2D"))||((se=(Su=t==null?void 0:t.headerInfo)==null?void 0:Su.homework_status)==null?void 0:se.includes("\u8865\u4EA4\u4E2D"))||((Kt=(Qe=t==null?void 0:t.headerInfo)==null?void 0:Qe.homework_status)==null?void 0:Kt.includes("\u8FDB\u884C\u4E2D")))&&(0,z.GJ)()&&p.createElement(x.Z,null,p.createElement("div",{className:"flex-container"},p.createElement(Fe.Z,{className:"ml20",checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED",defaultChecked:!!sessionStorage.getItem("classroomsShixunDetailAutoRefersh"),onChange:I=>{I?sessionStorage.setItem("classroomsShixunDetailAutoRefersh","true"):sessionStorage.removeItem("classroomsShixunDetailAutoRefersh"),va(I)}}),p.createElement("span",{className:"ml8"},"\u81EA\u52A8\u5237\u65B0\uFF08\u5F00\u542F\u540E\u6BCF10S\u66F4\u65B0\u4E00\u6B21\u6570\u636E\uFF09"))),(0,z.dE)()&&(nu==null?void 0:nu.work_status)!=0&&p.createElement(x.Z,{flex:1},p.createElement(ye.Z,{align:"middle",justify:"end"},p.createElement(x.Z,null,p.createElement(r.op,{style:{borderRadius:2},type:"default",openLoading:!0,onClick:()=>xu(void 0,null,function*(){var I;if(Vn.current){i.ZP.warning("\u60A8\u5DF2\u53D1\u9001\u66F4\u65B0\u6210\u7EE9\u8BF7\u6C42\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85\u6216\u624B\u52A8\u5237\u65B0\u9875\u9762");return}Vn.current=setInterval(()=>{clearInterval(Vn.current),Vn.current=null},60*1e3);const J=yield(0,v.ZP)(`/api/homework_commons/${vu==null?void 0:vu.categoryId}/update_student_score.json`,{method:"get",params:{shixun_id:(I=t==null?void 0:t.headerInfo)==null?void 0:I.shixun_id}});(J==null?void 0:J.status)==0&&(i.ZP.success(J==null?void 0:J.message),ln(!0))})},"\u66F4\u65B0\u6210\u7EE9"))))),p.createElement(P.default,{className:"mt30",loading:l["shixunHomeworks/getShixunWorkList"],pagination:!1,style:{cursor:"pointer"},onRow:I=>({onClick:J=>{var It,Iu,yu;if((0,z.Rm)()&&!((It=re.AssistantObject.practice)!=null&&It.can_view)){i.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}(yu=(Iu=t==null?void 0:t.headerInfo)==null?void 0:Iu.homework_status)!=null&&yu.includes("\u5BFC\u5165")||window.open(`/classrooms/${T.coursesId}/shixun_homework/${T.categoryId}/${I.id}/comment`,"_blank")}}),dataSource:nu.student_works,columns:Fa,onChange:(I,J,It)=>{It.field&&(T.order=It.field),It.order||(T.b_order="asc"),It.order==="ascend"&&(T.b_order="asc"),It.order==="descend"&&(T.b_order="desc"),It.order||(T.b_order="asc"),ln()}}),p.createElement(Se,null),p.createElement(Te,{paramslist:T}),p.createElement(yt.Z,null)),p.createElement(s.default,{title:"\u4E00\u952E\u6253\u56DE\u91CD\u505A",open:bo,centered:!0,destroyOnClose:!0,forceRender:!0,width:700,onOk:()=>xu(void 0,null,function*(){if(fn===2){if(wn.length<=0){i.ZP.info("\u8BF7\u9009\u62E9\u4F5C\u4E1A\u72B6\u6001");return}if(!Mn){i.ZP.info("\u8BC4\u8BED\u4E0D\u80FD\u4E3A\u7A7A");return}let I=yield(0,v.ZP)(`/api/homework_commons/${T.categoryId}/confirm_redo_modal.json`,{method:"post",body:{id:T.categoryId,comment:Mn,status:wn,course_group_ids:Ln.current}});I.status===0&&(fa(I.course_group_count),ra(I),Yn(!1),jn(!0))}else{if(!(vn===0||gn===0)){if(!vn){i.ZP.info("\u6700\u4F4E\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}if(!gn){i.ZP.info("\u6700\u9AD8\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}}if(vn>gn){i.ZP.info("\u6700\u9AD8\u5206\u4E0D\u80FD\u5927\u4E8E\u6700\u4F4E\u5206");return}if(!Mn){i.ZP.info("\u8BC4\u8BED\u4E0D\u80FD\u4E3A\u7A7A");return}let I=yield(0,v.ZP)(`/api/homework_commons/${T.categoryId}/confirm_redo_modal.json`,{method:"post",body:{id:T.categoryId,comment:Mn,min_score:vn,max_score:gn,course_group_ids:Ln.current}});I.status===0&&(fa(I.course_group_count),ra(I),Yn(!1),jn(!0))}}),onCancel:()=>{Yn(!1),Xn()}},p.createElement("div",{style:{padding:"32px"}},p.createElement("div",null,p.createElement("div",{style:{display:"flex",marginBottom:"12px"}},p.createElement("div",{style:{flexShrink:"0",marginRight:"15px"}}," ",p.createElement("span",{style:{color:"red"}},"*"),"\u5206\u73ED\uFF1A"),p.createElement("div",{className:Hn.length>15?oe.scroll:"",style:{overflowX:"hidden"}},Hn==null?void 0:Hn.map((I,J)=>p.createElement(g.default,{style:{textAlign:"left",margin:"0"},value:I.course_group_id,key:I.course_group_id,onChange:()=>{Xo(I.course_group_id,Hn)},checked:I.checked},I.group_group_name,"(",I.count,")")))),p.createElement("div",null,p.createElement("span",{style:{width:"80px"}},"\u6253\u56DE\u65B9\u5F0F\uFF1A"),p.createElement(ie.ZP.Group,{value:fn,onChange:I=>{oa(I.target.value)}},p.createElement(ie.ZP,{value:1},"\u6309\u6210\u7EE9\u6253\u56DE"),p.createElement(ie.ZP,{value:2},"\u6309\u4F5C\u4E1A\u72B6\u6001\u6253\u56DE"))),fn===1&&p.createElement("div",{style:{display:"flex",marginTop:"20px"}},p.createElement("span",{style:{width:"70px",textAlign:"end"}},p.createElement("span",{style:{color:"red"}},"*"),"\u6700\u4F4E\u5206\uFF1A"),p.createElement(Ye.Z,{min:0,max:100,value:vn,onChange:I=>ia(I),style:{width:"100px"}}),p.createElement("span",{style:{width:"80px",textAlign:"end"}},p.createElement("span",{style:{color:"red"}},"*"),"\u6700\u9AD8\u5206\uFF1A"),p.createElement(Ye.Z,{min:0,max:100,value:gn,onChange:I=>sa(I),style:{width:"100px"}})),fn===2&&p.createElement("div",{style:{display:"flex",marginTop:"20px"}},p.createElement("span",{style:{width:"80px"}},"\u4F5C\u4E1A\u72B6\u6001\uFF1A"),p.createElement(g.default.Group,{onChange:I=>{la([...I])},style:{width:"100%"}},(cu=(gu=t==null?void 0:t.headerInfo)==null?void 0:gu.task_status)==null?void 0:cu.map((I,J)=>p.createElement(g.default,{name:"task_status",value:I.id},I.name,"(",I.count,")")))),p.createElement("div",{style:{display:"flex",marginTop:"20px"}},p.createElement("span",{style:{width:"70px",textAlign:"end"}},p.createElement("span",{style:{color:"red"}},"*")," \u8BC4\u8BED\uFF1A"),p.createElement(h.Z,{className:oe.MdEditor,onChange:I=>ca(I),placeholder:"\u8BF7\u586B\u5199\u8BC4\u8BED"}))))),p.createElement(s.default,{open:Oo,title:"\u6253\u56DE\u786E\u8BA4",onOk:()=>xu(void 0,null,function*(){fn===2?(yield(0,v.ZP)(`/api/homework_commons/${T.categoryId}/batch_redo_modal.json`,{method:"post",body:{id:T.categoryId,comment:Mn,status:wn,course_group_ids:Ln.current}})).status===0&&(i.ZP.info("\u6253\u56DE\u6210\u529F"),Xn(),ln(),jn(!1)):(yield(0,v.ZP)(`/api/homework_commons/${T.categoryId}/batch_redo_modal.json`,{method:"post",body:{id:T.categoryId,comment:Mn,min_score:vn,max_score:gn,course_group_ids:Ln.current}})).status===0&&(i.ZP.info("\u6253\u56DE\u6210\u529F"),Xn(),ln(),jn(!1))}),onCancel:()=>{Xn(),jn(!1)}},p.createElement("div",{style:{padding:"32px"}},fn===1&&p.createElement("span",null,"\u786E\u8BA4\u5C06\u9009\u4E2D\u7684",pa,"\u4E2A\u73ED\u7EA7\u4E2D, \u6210\u7EE9\u5728",vn,"-",gn,"\u7684\u5B66\u751F\u8FDB\u884C\u6253\u56DE\u91CD\u505A\u5417\uFF1F"),fn===2&&p.createElement("span",null,"\u786E\u8BA4\u5C06",pa,"\u4E2A\u73ED\u7EA7\u4E2D\u4F5C\u4E1A\u72B6\u6001\u5728",(de=(Au=t==null?void 0:t.headerInfo)==null?void 0:Au.task_status)==null?void 0:de.filter(I=>wn==null?void 0:wn.includes(I.id)).map(I=>I.name).toString(),"\u7684\u5B66\u751F\u8FDB\u884C\u4F5C\u4E1A\u6253\u56DE\u91CD\u505A\u5417\uFF1F"),p.createElement("br",null),p.createElement("span",null,"\u8BE5\u6761\u4EF6\u4E0B\u5171\u6709",aa==null?void 0:aa.count,"\u540D\u5B66\u751F"))),p.createElement(s.default,{centered:!0,open:Wo,title:"\u667A\u80FD\u4EE3\u7801\u8BC4\u4EF7",width:800,zIndex:100,onOk:()=>xu(void 0,null,function*(){var I;if(!gl)if(((I=t==null?void 0:t.headerInfo)==null?void 0:I.ai_evaluation_times)>0)s.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u60A8\u4E4B\u524D\u5DF2\u8FDB\u884C\u8FC7\u6279\u91CF\u4EE3\u7801\u8BC4\u4EF7\uFF0C\u518D\u6B21\u64CD\u4F5C\u5C06\u4F1A\u8986\u76D6\u4E4B\u524D\u7684\u4EE3\u7801\u8BC4\u4EF7\u8BB0\u5F55\u3002\u662F\u5426\u786E\u5B9A\u64CD\u4F5C\uFF1F",onOk:()=>xu(void 0,null,function*(){let J=yield(0,v.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});(J==null?void 0:J.status)==0&&((J==null?void 0:J.total_number)==-1||(J==null?void 0:J.remaining_number)>0?(fl(Fn),Nn(!0),Gn(!0),Jn("\u6279\u91CF\u5BF9\u5B66\u751F\u4EE3\u7801\u8FDB\u884C\u4EE3\u7801\u8BC4\u4EF7\u9700\u8981\u8017\u8D39\u4E00\u5B9A\u65F6\u957F\uFF0C\u7A0D\u540E\u60A8\u53EF\u4EE5\u5728\u5B66\u751F\u7684\u5B9E\u8BAD\u62A5\u544A\u4E2D\u67E5\u770B"),ha()):(J==null?void 0:J.remaining_number)==0&&(Nn(!0),Gn(!1),Jn(`\u4ECA\u65E5\u5927\u6A21\u578B\u4F7F\u7528\u673A\u4F1A\u5DF2\u7528\u5B8C\uFF08\u6BCF\u65E5${J==null?void 0:J.total_number}\u6B21\u673A\u4F1A\uFF0C\u4ECA\u65E5\u5269\u4F59${J==null?void 0:J.remaining_number}\u6B21\uFF09\u3002`)))})});else{let J=yield(0,v.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});(J==null?void 0:J.status)==0&&((J==null?void 0:J.total_number)==-1||(J==null?void 0:J.remaining_number)>0?(fl(Fn),Nn(!0),Gn(!0),Jn("\u6279\u91CF\u5BF9\u5B66\u751F\u4EE3\u7801\u8FDB\u884C\u4EE3\u7801\u8BC4\u4EF7\u9700\u8981\u8017\u8D39\u4E00\u5B9A\u65F6\u957F\uFF0C\u7A0D\u540E\u60A8\u53EF\u4EE5\u5728\u5B66\u751F\u7684\u5B9E\u8BAD\u62A5\u544A\u4E2D\u67E5\u770B"),ha()):(J==null?void 0:J.remaining_number)==0&&(Nn(!0),Gn(!1),Jn(`\u4ECA\u65E5\u5927\u6A21\u578B\u4F7F\u7528\u673A\u4F1A\u5DF2\u7528\u5B8C\uFF08\u6BCF\u65E5${J==null?void 0:J.total_number}\u6B21\u673A\u4F1A\uFF0C\u4ECA\u65E5\u5269\u4F59${J==null?void 0:J.remaining_number}\u6B21\uFF09\u3002`)))}}),onCancel:()=>{var I;gl||(pl(!1),Kn((I=t==null?void 0:t.headerInfo)==null?void 0:I.ai_code_evaluation_promote),vl(""))},okText:"\u5F00\u59CB\u8BC4\u4EF7",maskClosable:!1},p.createElement("div",{style:{color:"#333"}},p.createElement("div",null,"\u667A\u80FD\u52A9\u6559\u5C06\u6279\u91CF\u5BF9\u5DF2\u63D0\u4EA4\u4F5C\u4E1A\u5B66\u751F\u7684\u6BCF\u4E2A\u5173\u5361\u4EE3\u7801\u8FDB\u884C\u4EE3\u7801\u8BC4\u4EF7\u5E76\u4FDD\u5B58\u81F3\u5B9E\u8BAD\u62A5\u544A\uFF0C\u56FE\u5F62\u5316\u3001\u547D\u4EE4\u884C\u3001Vscode\u7F16\u8F91\u5668\u3001\u7406\u8BBA\u9898\u6A21\u5F0F\u7684\u4EFB\u52A1\u5173\u5361\u6682\u4E0D\u652F\u6301\u751F\u6210\u4EE3\u7801\u8BC4\u4EF7\u3002"),p.createElement("div",{className:"mt10"},"\u4EE5\u4E0B\u4E3A\u667A\u80FD\u52A9\u6559\u9ED8\u8BA4\u7684\u4EE3\u7801\u8BC4\u4EF7\u7EF4\u5EA6\uFF0C\u60A8\u53EF\u4EE5\u91CD\u65B0\u7F16\u8F91\u540E\u518D\u5F00\u59CB\u8BC4\u4EF7\u3002"),p.createElement(ve.default.TextArea,{value:Fn,style:{borderRadius:"5px",margin:"15px 0 30px 0"},rows:3,onChange:I=>Kn(I.target.value)}),p.createElement("div",{style:{marginBottom:"15px"}},"\u4EE5\u4E0B\u4E3A\u4E00\u6BB5\u6D4B\u8BD5\u4EE3\u7801\u3002\u60A8\u53EF\u4F7F\u7528\u8BE5\u6BB5\u4EE3\u7801\u5BF9\u5DF2\u8BBE\u7F6E\u7684\u4EE3\u7801\u8BC4\u4EF7\u7EF4\u5EA6\u8FDB\u884C\u6D4B\u8BD5\uFF0C\u67E5\u770B\u8BC4\u4EF7\u6548\u679C\u3002"),p.createElement("div",{style:{padding:"12px 16px",background:"#F6F7F9"}},"# \u521D\u59CB\u5316\u7D2F\u52A0\u5668",p.createElement("br",null),"sum = 0",p.createElement("br",null),"# \u4F7F\u7528for\u5FAA\u73AF\u904D\u53861\u5230100",p.createElement("br",null),"for i in range(1, 101):",p.createElement("br",null),"sum += i # \u5C06\u5F53\u524D\u503C\u52A0\u5230sum\u4E2D",p.createElement("br",null),"# \u8F93\u51FA\u7ED3\u679C",p.createElement("br",null),'print("1\u5230100\u7684\u7D2F\u52A0\u548C\u4E3A:", sum)'),p.createElement("div",{className:oe.work_button,onClick:()=>{gl?i.ZP.warning("\u6B63\u5728\u751F\u6210\u8BC4\u8BBA\u4E2D\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002"):(fl(Fn),es())}},"\u6D4B\u8BD5\u8BC4\u4EF7\u6548\u679C"),ya&&p.createElement("div",{style:{width:"100%",height:"200px",overflowY:"auto",marginTop:"20px"}},p.createElement(_.Z,{value:ya,style:{fontSize:"14px"}})))),p.createElement(s.default,{centered:!0,open:Uo,title:"\u63D0\u793A",width:700,footer:null,onCancel:()=>{Nn(!1)},maskClosable:!1},p.createElement("div",{style:{color:"#333"}},Ho&&p.createElement("div",{style:{fontWeight:600,fontSize:"18px",textAlign:"center",marginBottom:"10px"}},"\u64CD\u4F5C\u6210\u529F\uFF01"),p.createElement("div",{style:{marginBottom:"20px",textAlign:"center"}},Ko)))),p.createElement(Bt,null),p.createElement(_u,{isShow:To,setIsShow:ml,item:zo,coursesId:T.coursesId,categoryId:T.categoryId}),p.createElement("aside",{className:"tc mb50 mt30"},p.createElement(De.Z,{showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!0,onChange:qo,current:T.page||1,pageSize:T.limit||20,total:(zt=t==null?void 0:t.shixunWorkList)==null?void 0:zt.total_count})))};var Cn=(0,o.connect)(({shixunHomeworks:t,classroomList:l,loading:n,user:$})=>({shixunHomeworks:t,classroomList:l,loading:n.effects,user:$}))(an),Zt=u(59301),$n=Object.defineProperty,Dn=Object.getOwnPropertySymbols,el=Object.prototype.hasOwnProperty,On=Object.prototype.propertyIsEnumerable,tl=(t,l,n)=>l in t?$n(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,Tu=(t,l)=>{for(var n in l||(l={}))el.call(l,n)&&tl(t,n,l[n]);if(Dn)for(var n of Dn(l))On.call(l,n)&&tl(t,n,l[n]);return t},Fl=(t,l,n)=>new Promise(($,re)=>{var Y=F=>{try{G(n.next(F))}catch(ue){re(ue)}},ge=F=>{try{G(n.throw(F))}catch(ue){re(ue)}},G=F=>F.done?$(F.value):Promise.resolve(F.value).then(Y,ge);G((n=n.apply(t,l)).next())});const ul=({shixunHomeworks:t,classroomList:l,loading:n,dispatch:$})=>{var re;const Y=(0,o.useParams)(),[ge,G]=(0,e.useState)(Tu(Tu({},{page:1,limit:20,group_ids:[]}),Y)),F=(0,o.useLocation)(),{codeReview:ue}=t,[ft,Ue]=(0,e.useState)({}),[Ze]=Le.default.useForm();ge.order="code_rate",ge.sort="desc",ge.category=ge.categoryId,(0,e.useEffect)(()=>{Xe(),console.log("params",ge)},[ge]),(0,e.useEffect)(()=>{t.actionTabs.key==="\u6267\u884C\u4EE3\u7801\u67E5\u91CD"&&Xe()},[t.actionTabs.key]);const Xe=()=>Fl(void 0,null,function*(){(yield $({type:"shixunHomeworks/getCodeReview",payload:Tu({},ge)})).status===-2&&setTimeout(()=>Xe(),1500)}),Ht=()=>{},Oe=(ae,vt)=>{ge.page=ae,ge.limit=20,$({type:"shixunHomeworks/getCodeReview",payload:Tu({},ge)})},ht=[{title:"\u5E8F\u53F7",dataIndex:"number",render:(ae,vt,Lt)=>ge.limit*(ge.page-1)+Lt+1},{title:"\u59D3\u540D",dataIndex:"username"},{title:"\u5B66\u53F7",dataIndex:"student_id"},{title:"\u76F8\u4F3C\u5EA6",dataIndex:"code_rate",render:ae=>Zt.createElement("span",{className:"c-orange"},ae)},{title:"\u64CD\u4F5C",dataInex:"action",render:(ae,vt)=>Zt.createElement("div",null,Zt.createElement("a",{target:"_blank",onClick:()=>{var Lt;if((0,z.Rm)()&&!((Lt=l.AssistantObject.normal)!=null&&Lt.can_appraise)){i.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}localStorage.setItem("studentDetial",F.pathname),window.open(`/classrooms/${ge.coursesId}/shixun_homework/${ge.categoryId}/review_detail/${vt.user_id}`)}},"\u67E5\u770B"),Zt.createElement("br",null))}];return Zt.createElement("section",{className:"minH500 bg-white pl30 pr30 pt10"},(ue==null?void 0:ue.status)===-2&&Zt.createElement(L.Z,{customText:"\u6B63\u5728\u8FDB\u884C\u4EE3\u7801\u67E5\u91CD\uFF0C\u8BF7\u7A0D\u5019\u3002\u67E5\u91CD\u7ED3\u675F\u540E\uFF0C\u9875\u9762\u5C06\u81EA\u52A8\u66F4\u65B0\u663E\u793A\u7ED3\u679C"}),(ue==null?void 0:ue.status)!==-2&&Zt.createElement("div",null,Zt.createElement(ye.Z,null,Zt.createElement(x.Z,{flex:"1"},Zt.createElement("p",{className:"mt10"},"\u67E5\u91CD\u65F6\u95F4\uFF1A",ue.last_review_time,Zt.createElement(k.ZP,{ghost:!0,danger:!0,style:{color:"#29BD8B",borderColor:"#29BD8B",marginLeft:10},onClick:()=>{$({type:"shixunHomeworks/setActionTabs",payload:{key:"\u4EE3\u7801\u67E5\u91CD",params:ge}})}},"\u4EE3\u7801\u67E5\u91CD"),Zt.createElement(j.Z,{title:Zt.createElement("div",null,Zt.createElement("div",null,"\u4EE3\u7801\u67E5\u91CD\u89C4\u5219"),Zt.createElement("div",null,"1.\u67E5\u91CD\u5BF9\u8C61\uFF1A\u4EC5\u5BF9\u5B66\u5458\u622A\u6B62\u524D\u5F97\u5206\u6700\u9AD8\u7684\u4EE3\u7801\u7248\u672C\u8FDB\u884C\u67E5\u91CD\u3002"),Zt.createElement("div",null,"2.\u591A\u7248\u672C\u5904\u7406\uFF1A\u82E5\u5B58\u5728\u591A\u4E2A\u6700\u9AD8\u5206\u7248\u672C\uFF0C\u4EE5\u63D0\u4EA4\u65F6\u95F4\u6700\u665A\u7684\u7248\u672C\u4E3A\u51C6\u8FDB\u884C\u67E5\u91CD\u3002 "),Zt.createElement("div",null,"3.\u622A\u6B62\u540E\u63D0\u4EA4\uFF1A\u4F5C\u4E1A\u622A\u6B62\u540E\u63D0\u4EA4\u7684\u4EE3\u7801\u4E0D\u7EB3\u5165\u67E5\u91CD\u8303\u56F4\u3002 "))},Zt.createElement("i",{style:{marginLeft:10,color:"#3061D0",fontSize:16},className:"iconfont icon-tishixiaowenhao"})))),Zt.createElement(x.Z,null,Zt.createElement(ve.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",onSearch:ae=>{ge.search=ae,$({type:"shixunHomeworks/getCodeReview",payload:ge})},style:{width:200}}),Zt.createElement("span",{className:"ml5 c-red"}))),((re=ue.group_info)==null?void 0:re.length)>0&&Zt.createElement(Zt.Fragment,null,Zt.createElement(ye.Z,null,Zt.createElement(x.Z,{flex:"80px",className:"font14"},"\u5206\u73ED\u60C5\u51B5:"),Zt.createElement(x.Z,{flex:"80px"},Zt.createElement(g.default,{checked:ge.group_ids=="",value:"all",onChange:ae=>{delete ge.group_ids,ge.group_ids=[],ge.page=1,G(Tu({},ge))}},"\u5168\u90E8")),Zt.createElement(x.Z,{flex:"1"},ue.group_info&&ue.group_info.map((ae,vt)=>Zt.createElement(g.default,{value:ae.id,checked:ge.group_ids.includes(ae.id),onChange:Lt=>{Lt.target.checked?ge.group_ids.push(ae.id):ge.group_ids.splice(ge.group_ids.indexOf(ae.id),1),ge.page=1,G(Tu({},ge))}},ae.name,"(",ae.members_count,")")))),Zt.createElement(ye.Z,{className:"font14 c-red mt5"},Zt.createElement(x.Z,null,"\u672C\u9875\u4EC5\u663E\u793A\u5168\u90E8\u5DF2\u67E5\u91CD\u5206\u73ED"))),Zt.createElement("p",{className:"mt10"},Zt.createElement("span",{className:"c-red"},ue.copy_reviews_count),"\u4E2A\u7591\u4F3C\u6284\u88AD\u4F5C\u54C1\uFF08",ue.all_reviews_count,"\u4F5C\u54C1\uFF09"),Zt.createElement(P.default,{className:"mt30",loading:n["shixunHomeworks/getCodeReview"],pagination:!1,dataSource:ue.users_reviews,columns:ht,onChange:(ae,vt,Lt)=>{Lt.order==="ascend"&&(ge.b_order="asc"),Lt.order==="descend"&&(ge.b_order="desc"),Lt.order||delete ge.b_order,$({type:"shixunHomeworks/getCodeReview",payload:Tu({},ge)})}}),Zt.createElement("aside",{className:"tc mb50 mt30"},Zt.createElement(De.Z,{showSizeChanger:!1,onChange:Oe,defaultCurrent:ge.page||1,current:ge.page||1,defaultPageSize:20,hideOnSinglePage:!0,total:ue.copy_reviews_count}))))};var nl=(0,o.connect)(({shixunHomeworks:t,classroomList:l,loading:n})=>({shixunHomeworks:t,loading:n.effects,classroomList:l}))(ul),ll=u(79834),dn=u(5083),Mt=u(24990),Ut=u(59301),fe=Object.defineProperty,at=Object.defineProperties,$t=Object.getOwnPropertyDescriptors,Nu=Object.getOwnPropertySymbols,nn=Object.prototype.hasOwnProperty,En=Object.prototype.propertyIsEnumerable,xn=(t,l,n)=>l in t?fe(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,$u=(t,l)=>{for(var n in l||(l={}))nn.call(l,n)&&xn(t,n,l[n]);if(Nu)for(var n of Nu(l))En.call(l,n)&&xn(t,n,l[n]);return t},pn=(t,l)=>at(t,$t(l)),xa=(t,l,n)=>new Promise(($,re)=>{var Y=F=>{try{G(n.next(F))}catch(ue){re(ue)}},ge=F=>{try{G(n.throw(F))}catch(ue){re(ue)}},G=F=>F.done?$(F.value):Promise.resolve(F.value).then(Y,ge);G((n=n.apply(t,l)).next())});const{RangePicker:ts}=dn.default,{Option:us}=m.default,Sa=({shixunHomeworks:t,loading:l,dispatch:n})=>{const $=(0,o.useParams)(),re=(0,o.useLocation)(),{workSetting:Y,workList:ge,changeData:G}=t,[F,ue]=(0,e.useState)(!0),[ft,Ue]=(0,e.useState)({}),[Ze,Xe]=(0,e.useState)(!1),[Ht]=Le.default.useForm();let[Oe,ht]=(0,e.useState)([]),[ae,vt]=(0,e.useState)([]);const[Lt,Ne]=(0,e.useState)([]);let[Me,ze]=(0,e.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,comment_public:!1,can_view_details:!1,total_score:"",eff_score:0,forbid_copy_answers:!1,public_after_abort:!1,public_after_over:!1});(0,e.useEffect)(()=>()=>{ht([])},[]),(0,e.useEffect)(()=>{ue(!(Y!=null&&Y.can_edit))},[Y]);const Pe=()=>{n({type:"shixunHomeworks/getWorkSetting",payload:$u({},$)})};(0,e.useEffect)(()=>{Y!=null&&Y.course_id&&(Object.keys(Me).map(function(Ie){Me[Ie]=Y[Ie]}),(!Me.allow_late||!Me.unified_late)&&(Me.late_penalty=5),Oe=JSON.parse(JSON.stringify(Y.group_settings.map(Ie=>pn($u({},Ie),{group_name:[Ie.group_name]})).filter(Ie=>Ie.publish_time!==null))),ae=JSON.parse(JSON.stringify(Y.allow_late_settings.map(Ie=>pn($u({},Ie),{group_name:[Ie.group_name]})).filter(Ie=>Ie.late_time!==null))),ze($u({},Me)),ht([...Oe]),vt([...ae]))},[Y]);const Ct=()=>{var Ie;const ee=JSON.parse(JSON.stringify(Me));if(ee.challenge_settings.filter(tt=>!tt.hide),ee.categoryId=$.categoryId,(Ie=ee.challenge_settings)!=null&&Ie.every(tt=>!tt.checked)){i.ZP.warning("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(Me.unified_setting||(Oe=Oe==null?void 0:Oe.map(tt=>{var bt;if(!tt.publish_time||!tt.end_time)throw i.ZP.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!tt.group_name)throw i.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return tt.group_name=typeof(tt==null?void 0:tt.group_name)=="string"?[tt==null?void 0:tt.group_name]:tt==null?void 0:tt.group_name,tt.group_id=(bt=Y.group_settings)==null?void 0:bt.filter(ut=>{var Jt;return(Jt=tt==null?void 0:tt.group_name)==null?void 0:Jt.includes(ut.group_name)}).map(ut=>ut.group_id||ut.id).toString().split(","),tt})),ee.group_settings=Oe,Me.allow_late)if(Me.unified_late){if(Me.late_penalty===null||Me.late_penalty===void 0||Me.late_penalty<0||Me.late_penalty>100)throw i.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!Me.late_time)throw i.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574")}else ae=ae==null?void 0:ae.map(tt=>{var bt,ut;if(tt.late_penalty===null||tt.late_penalty===void 0||tt.late_penalty<0||tt.late_penalty>100)throw i.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!tt.late_time)throw i.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!tt.group_name)throw i.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return tt.group_name=typeof(tt==null?void 0:tt.group_name)=="string"?[tt==null?void 0:tt.group_name]:tt==null?void 0:tt.group_name,tt.group_id=(ut=(bt=tt==null?void 0:tt.group_name)==null?void 0:bt.map(Jt=>{var Pt,Ge;let iu=(Ge=(Pt=Y.group_settings)==null?void 0:Pt.filter(Fu=>(Fu==null?void 0:Fu.group_name)===Jt))==null?void 0:Ge[0];return iu==null?void 0:iu.group_id}))==null?void 0:ut.toString().split(","),tt}),ee.allow_late_settings=ae;xe(ee)},xe=Ie=>{var ee,tt;if(console.log(Ie.total_score,Ie.eff_score),Ie.total_score===null){i.ZP.warning("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(Ie!=null&&Ie.work_efficiency&&Ie.eff_score===null){i.ZP.warning("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}const bt=Ie.challenge_settings.reduce((Pt,Ge)=>Pt+Number(Ge.challenge_score),0);if((bt==null?void 0:bt.toFixed(10))!==((ee=Ie.total_score-Ie.eff_score)==null?void 0:ee.toFixed(10))){i.ZP.warning(`\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A${Ie.total_score}\u5206`);return}const ut={shixun_evaluation:Ie.shixun_evaluation,challenge_settings:Ie.challenge_settings},Jt=()=>xa(void 0,null,function*(){Xe(!0),(yield(0,v.ZP)(`/api/homework_commons/${$.categoryId}/public_setting.json`,{method:"post",body:$u({},Ie)})).status===0&&(i.ZP.success("\u66F4\u65B0\u6210\u529F"),Pe(),n({type:"shixunHomeworks/getShixunWorkList",payload:$u({},$)})),Xe(!1)});!(0,ke.isEqual)(G,ut)&&!((tt=ge==null?void 0:ge.homework_status)!=null&&tt.includes("\u672A\u53D1\u5E03"))?s.default.confirm({title:"\u66F4\u65B0\u6210\u7EE9",content:"\u60A8\u6539\u52A8\u4E86\u672C\u6B21\u4F5C\u4E1A\u7684\u5173\u5361\u5F97\u5206\u8BBE\u7F6E\uFF0C\u8FD9\u53EF\u80FD\u5BFC\u81F4\u5DF2\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\u7684\u6210\u7EE9\u4EA7\u751F\u9519\u8BEF\u3002\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u6309\u94AE\u5C06\u4FDD\u5B58\u6700\u65B0\u8BBE\u7F6E\u5E76\u6309\u6700\u65B0\u8BBE\u7F6E\u66F4\u65B0\u5168\u73ED\u6210\u7EE9\u3002",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:Jt}):Jt()},w=(0,e.useMemo)(()=>Me.public_after_abort?"public_after_abort":Me.public_after_over?"public_after_over":"immediately",[Me]);return Ut.createElement("section",{className:Mt.Z.form},Ut.createElement("div",{className:Mt.Z.title},"\u516C\u5F00\u8BBE\u7F6E"),Ut.createElement("div",{style:{background:"#F6F7F9",padding:"13px 30px"}},Ut.createElement("div",{style:{display:"flex",alignItems:"center"}},Ut.createElement(g.default,{checked:Me.score_open,disabled:F,onChange:Ie=>{Me.score_open=Ie.target.checked,ze(Object.assign({},Me))}},Ut.createElement("div",{style:{color:"#000000"}},"\u516C\u5F00\u6210\u7EE9")),Ut.createElement("div",{style:{color:"#666666",fontSize:"14px",height:"22px"}},"\uFF08\u52FE\u9009\u540E\u5B66\u751F\u5728\u4F5C\u4E1A\u622A\u6B62/\u8865\u4EA4\u7ED3\u675F\u540E\uFF0C\u53EF\u67E5\u770B\u5176\u4ED6\u5B66\u751F\u7684\u6210\u7EE9\uFF09")),Ut.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:"20px"}},Ut.createElement(g.default,{checked:Me.answer_public,disabled:F,onChange:Ie=>{Ie.target.checked?ze(ee=>pn($u({},ee),{answer_public:Ie.target.checked})):ze(ee=>pn($u({},ee),{answer_public:Ie.target.checked,public_after_abort:!1,public_after_over:!1}))}},Ut.createElement("div",{style:{color:"#000000"}},"\u516C\u5F00\u7B54\u6848")),Ut.createElement("div",{style:{color:"#666666",fontSize:"14px",height:"22px"}},"\uFF08\u8BBE\u7F6E\u5B66\u751F\u5728\u5B9E\u9A8C\u9875\u9762\u67E5\u770B\u8BD5\u9898\u7B54\u6848\uFF09"))),Me.answer_public&&Ut.createElement(Ut.Fragment,null,Ut.createElement("div",{style:{display:"flex",background:"#F6F7F9",padding:"13px 30px",marginTop:"1px"}},Ut.createElement("div",{style:{margin:"0 46px 0 24px"}},"\u516C\u5F00\u65F6\u95F4\u8303\u56F4"),Ut.createElement(ie.ZP.Group,{onChange:Ie=>{Ie.target.value==="public_after_abort"?ze(ee=>pn($u({},ee),{public_after_abort:!0,public_after_over:!1})):Ie.target.value==="public_after_over"?ze(ee=>pn($u({},ee),{public_after_abort:!1,public_after_over:!0})):ze(ee=>pn($u({},ee),{public_after_abort:!1,public_after_over:!1}))},value:w,disabled:F},Ut.createElement(ie.ZP,{value:"public_after_abort"},"\u4F5C\u4E1A\u7ED3\u675F\u540E"),Ut.createElement(ie.ZP,{value:"immediately",style:{marginLeft:"30px"}},"\u4EFB\u610F\u65F6\u95F4"))),Ut.createElement("div",{style:{display:"flex",background:"#F6F7F9",padding:"13px 30px"}},Ut.createElement("div",{style:{margin:"0 18px 0 24px"}},"\u8BBE\u7F6E\u590D\u5236\u53C2\u8003\u7B54\u6848"),Ut.createElement(g.default,{checked:Me.forbid_copy_answers,disabled:F,onChange:Ie=>{Me.forbid_copy_answers=Ie.target.checked,ze(Object.assign({},Me))}},Ut.createElement("div",{style:{color:"#000000"}},"\u7981\u6B62\u590D\u5236\u53C2\u8003\u7B54\u6848")),Ut.createElement("div",{style:{color:"#666666",fontSize:"14px",height:"22px"}},"\uFF08\u52FE\u9009\u540E\uFF0C\u5B66\u751F\u5728\u5B9E\u9A8C\u9875\u9762\u53EA\u80FD\u67E5\u770B\u4F46\u4E0D\u80FD\u590D\u5236\u53C2\u8003\u7B54\u6848\uFF09"))),Ut.createElement("div",{style:{background:"#F6F7F9",padding:"13px 30px",marginTop:"1px"}},Ut.createElement("div",{style:{display:"flex",alignItems:"center"}},Ut.createElement(g.default,{checked:Me.comment_public,disabled:F,onChange:Ie=>{Me.comment_public=Ie.target.checked,ze(Object.assign({},Me))}},Ut.createElement("div",{style:{color:"#000000"}},"\u516C\u5F00\u8BC4\u8BBA")),Ut.createElement("div",{style:{color:"#666666",fontSize:"14px",height:"22px"}},"\uFF08\u52FE\u9009\u540E\uFF0C\u5B66\u751F\u5728\u5B9E\u9A8C\u9875\u9762\u53EF\u67E5\u770B\u8BE5\u5B9E\u9A8C\u7684\u76F8\u5173\u8BC4\u8BBA\uFF09"))),Ut.createElement("div",{style:{marginTop:"30px"}},Ut.createElement("div",{className:Mt.Z.title},"\u8FDB\u5165\u5B9E\u9A8C\u8BBE\u7F6E"),Ut.createElement("div",{style:{display:"flex",alignItems:"center",background:"#F6F7F9",padding:"13px 30px"}},Ut.createElement(g.default,{checked:Me.can_view_details,disabled:F,onChange:Ie=>{Me.can_view_details=Ie.target.checked,ze(Object.assign({},Me))}},Ut.createElement("div",{style:{color:"#000000"}},"\u67E5\u770B\u5B9E\u8DF5\u9879\u76EE\u8BE6\u60C5")),Ut.createElement("div",{style:{color:"#666666",fontSize:"14px",height:"22px"}},"\uFF08\u52FE\u9009\u540E\uFF0C\u5B66\u751F\u5F00\u542F\u6311\u6218\u5148\u8FDB\u5165\u5B9E\u8DF5\u9879\u76EE\u7684\u8BE6\u60C5\u9875\u9762\uFF0C\u5426\u5219\u76F4\u63A5\u8FDB\u5165\u5B9E\u9A8C\u9875\u9762\uFF09"))),Ut.createElement(k.ZP,{style:{width:"138px",marginTop:"30px"},type:"primary",size:"large",loading:Ze,onClick:()=>Ct()},"\u4FDD\u5B58"))};var Ia=(0,o.connect)(({shixunHomeworks:t,loading:l})=>({shixunHomeworks:t,loading:l.effects}))(Sa),wa=u(81327),K=u(59301),ja=Object.defineProperty,Na=Object.defineProperties,La=Object.getOwnPropertyDescriptors,Pn=Object.getOwnPropertySymbols,Al=Object.prototype.hasOwnProperty,yl=Object.prototype.propertyIsEnumerable,hl=(t,l,n)=>l in t?ja(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,Uu=(t,l)=>{for(var n in l||(l={}))Al.call(l,n)&&hl(t,n,l[n]);if(Pn)for(var n of Pn(l))yl.call(l,n)&&hl(t,n,l[n]);return t},rn=(t,l)=>Na(t,La(l)),ba=(t,l)=>{var n={};for(var $ in t)Al.call(t,$)&&l.indexOf($)<0&&(n[$]=t[$]);if(t!=null&&Pn)for(var $ of Pn(t))l.indexOf($)<0&&yl.call(t,$)&&(n[$]=t[$]);return n},Oa=(t,l,n)=>new Promise(($,re)=>{var Y=F=>{try{G(n.next(F))}catch(ue){re(ue)}},ge=F=>{try{G(n.throw(F))}catch(ue){re(ue)}},G=F=>F.done?$(F.value):Promise.resolve(F.value).then(Y,ge);G((n=n.apply(t,l)).next())});const Pa=({shixunHomeworks:t,loading:l,dispatch:n})=>{const $=(0,o.useParams)(),[re]=Le.default.useForm(),Y=Le.default.useWatch("total_score",re),ge=Le.default.useWatch("eff_type",re),G=Le.default.useWatch("challenge_settings",re),F=Le.default.useWatch("answer_open_evaluation",re),ue=Le.default.useWatch("shixun_evaluation",re),ft=Le.default.useWatch("work_efficiency",re),Ue=Le.default.useWatch("is_repeat_minus",re),Ze=Le.default.useWatch("open_view_answer_deduct",re),{workSetting:Xe,workList:Ht,changeData:Oe}=t,[ht,ae]=(0,e.useState)(!1),[vt,Lt]=(0,e.useState)(!1),[Ne,Me]=(0,e.useState)(!1);let[ze,Pe]=(0,e.useState)([]),[Ct,xe]=(0,e.useState)([]),[w,Ie]=(0,e.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!0,answer_public:!1,score_open:!1,comment_public:!0,total_score:"",eff_score:0,eff_type:1,open_view_answer_deduct:!0,is_repeat_minus:!1,repeat_setting_score:10,repeat_limit:70,is_onpage_time:!0,training_time_rules:1,difficulty_level_sort:"asc",game_deduct_score_percentage:100});const[ee,tt]=(0,e.useState)(!1),[bt,ut]=(0,e.useState)(0);(0,e.useEffect)(()=>()=>{Pe([])},[]),(0,e.useEffect)(()=>{ae(!(Xe!=null&&Xe.can_edit))},[Xe]);const Jt=()=>{n({type:"shixunHomeworks/getWorkSetting",payload:Uu({},$)})};(0,e.useEffect)(()=>{if(!(Xe!=null&&Xe.course_id))return;Object.keys(w).map(function(gt){w[gt]=Xe[gt]}),(!w.allow_late||!w.unified_late)&&(w.late_penalty=5),ze=JSON.parse(JSON.stringify(Xe.group_settings.map(gt=>rn(Uu({},gt),{group_name:[gt.group_name]})).filter(gt=>gt.publish_time!==null))),Ct=JSON.parse(JSON.stringify(Xe.allow_late_settings.map(gt=>rn(Uu({},gt),{group_name:[gt.group_name]})).filter(gt=>gt.late_time!==null)));const Re=rn(Uu({},w),{difficulty_level_sort:w.difficulty_level_sort||"asc"});Ie(Re),Fu(Re),re.setFieldsValue(Re),Pe([...ze]),xe([...Ct])},[Xe]);const Pt=()=>{var Re;const gt=JSON.parse(JSON.stringify(w));if(gt.challenge_settings.filter(qe=>!qe.hide),gt.categoryId=$.categoryId,gt.game_deduct_score_percentage===""){i.ZP.warning("\u8BF7\u586B\u5199\u67E5\u770B\u7B54\u6848\u6263\u5206\u6BD4\u4F8B");return}if((Re=gt.challenge_settings)!=null&&Re.every(qe=>!qe.checked)){i.ZP.warning("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(w.unified_setting||(ze=ze==null?void 0:ze.map(qe=>{var Vt;if(!qe.publish_time||!qe.end_time)throw i.ZP.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!qe.group_name)throw i.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return qe.group_name=typeof(qe==null?void 0:qe.group_name)=="string"?[qe==null?void 0:qe.group_name]:qe==null?void 0:qe.group_name,qe.group_id=(Vt=Xe.group_settings)==null?void 0:Vt.filter(At=>{var Tt;return(Tt=qe==null?void 0:qe.group_name)==null?void 0:Tt.includes(At.group_name)}).map(At=>At.group_id||At.id).toString().split(","),qe})),gt.group_settings=ze,w.allow_late)if(w.unified_late){if(w.late_penalty===null||w.late_penalty===void 0||w.late_penalty<0||w.late_penalty>100)throw i.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!w.late_time)throw i.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574")}else Ct=Ct==null?void 0:Ct.map(qe=>{var Vt,At;if(qe.late_penalty===null||qe.late_penalty===void 0||qe.late_penalty<0||qe.late_penalty>100)throw i.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!qe.late_time)throw i.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!qe.group_name)throw i.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return qe.group_name=typeof(qe==null?void 0:qe.group_name)=="string"?[qe==null?void 0:qe.group_name]:qe==null?void 0:qe.group_name,qe.group_id=(At=(Vt=qe==null?void 0:qe.group_name)==null?void 0:Vt.map(Tt=>{var St,Ou;let et=(Ou=(St=Xe.group_settings)==null?void 0:St.filter(wu=>(wu==null?void 0:wu.group_name)===Tt))==null?void 0:Ou[0];return et==null?void 0:et.group_id}))==null?void 0:At.toString().split(","),qe}),gt.allow_late_settings=Ct;Ge(gt)},Ge=Re=>{var gt,qe;if(Re.total_score===null){i.ZP.warning("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(Re!=null&&Re.work_efficiency&&Re.eff_score===null){i.ZP.warning("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}const Vt=Re.challenge_settings.reduce((St,Ou)=>St+Number(Ou.challenge_score),0);if((Vt==null?void 0:Vt.toFixed(10))!==((gt=Re.total_score-Re.eff_score)==null?void 0:gt.toFixed(10))){i.ZP.warning(`\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A${Re.total_score}\u5206`);return}const At={shixun_evaluation:Re.shixun_evaluation,challenge_settings:Re.challenge_settings,eff_type:Re.eff_type},Tt=()=>Oa(void 0,null,function*(){Lt(!0),(yield(0,v.ZP)(`/api/homework_commons/${$.categoryId}/score_setting.json`,{method:"post",body:Uu({},Re)})).status===0&&(i.ZP.success("\u66F4\u65B0\u6210\u529F"),Jt(),n({type:"shixunHomeworks/getShixunWorkList",payload:Uu({},$)})),Lt(!1)});!(0,ke.isEqual)(Oe,At)&&!((qe=Ht==null?void 0:Ht.homework_status)!=null&&qe.includes("\u672A\u53D1\u5E03"))&&!ee?s.default.confirm({title:"\u66F4\u65B0\u6210\u7EE9",content:"\u60A8\u6539\u52A8\u4E86\u672C\u6B21\u4F5C\u4E1A\u7684\u5173\u5361\u5F97\u5206\u8BBE\u7F6E\uFF0C\u8FD9\u53EF\u80FD\u5BFC\u81F4\u5DF2\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\u7684\u6210\u7EE9\u4EA7\u751F\u9519\u8BEF\u3002\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u6309\u94AE\u5C06\u4FDD\u5B58\u6700\u65B0\u8BBE\u7F6E\u5E76\u6309\u6700\u65B0\u8BBE\u7F6E\u66F4\u65B0\u5168\u73ED\u6210\u7EE9\u3002",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:Tt}):Tt(),(ee||Ue&&ee)&&s.default.confirm({title:"\u66F4\u65B0\u6210\u7EE9",content:"\u60A8\u6539\u52A8\u4E86\u672C\u6B21\u4F5C\u4E1A\u7684\u67E5\u91CD\u6263\u5206\u89C4\u5219\uFF0C\u9700\u8981\u91CD\u65B0\u67E5\u91CD\u624D\u80FD\u751F\u6548\uFF0C\u751F\u6548\u540E\u6210\u7EE9\u5C06\u8986\u76D6\u6210\u6700\u65B0\u7684\u6210\u7EE9\u3002",okText:"\u7ACB\u5373\u67E5\u91CD",onOk(){n({type:"shixunHomeworks/setActionTabs",payload:{key:"\u4EE3\u7801\u67E5\u91CD",params:$}})}})},iu=(Re=w)=>{var gt;const{eff_score:qe,total_score:Vt,difficulty_level_sort:At}=Re,Tt=Vt-qe,St=(gt=Re.challenge_settings)==null?void 0:gt.filter(fu=>fu.checked).length;if(!St){Re.challenge_settings.map((fu,zu)=>{fu.challenge_score=0});return}const Ou=Re.challenge_settings.filter(fu=>fu.checked).map(fu=>At==="desc"?fu.challenge_exp_desc:fu.challenge_exp).reduce((fu,zu)=>fu+zu),et=Tt/Ou;let wu=0,Pu=0,ru;switch(Re.shixun_evaluation){case 0:const fu=parseFloat((Tt/St).toFixed(1));Re.challenge_settings.map((Du,Su)=>{Du.checked?(wu=Su,Du.challenge_score=fu>0?fu:0):Du.challenge_score=0}),ru=(Tt-fu*(St-1)).toFixed(1),Re.challenge_settings[wu].challenge_score=ru>0?ru:0;break;case 1:Re.challenge_settings.map((Du,Su)=>{Du.checked?(wu=Su,Pu+=Number((Math.round((At==="desc"?Du.challenge_exp_desc:Du.challenge_exp)*et*10)/10).toFixed(1)),Du.challenge_score=(Math.round((At==="desc"?Du.challenge_exp_desc:Du.challenge_exp)*et*10)/10).toFixed(1)):Du.challenge_score=0});let zu=Re.challenge_settings[wu].challenge_score;ru=(Tt-Pu+Number(zu)).toFixed(1),Re.challenge_settings[wu].challenge_score=ru>0?ru:0;break}Ie(Uu({},Re)),Fu(Re),re.setFieldsValue(Re)},Fu=(Re=w)=>{const gt=(0,Z.EN)(Re.challenge_settings.reduce((qe,Vt)=>(0,Z.EN)(qe||0,Number(Vt.challenge_score)||0,"+"),0),Re.eff_score||0,"+");ut(gt)};return K.createElement("div",{className:Mt.Z.form},K.createElement(Le.default,{className:Mt.Z.FormStyle,form:re,initialValues:{},layout:"vertical",disabled:ht,size:"large",onValuesChange:(Re,gt)=>{Ie(Uu(Uu({},w),gt))},onFinish:Re=>{console.log("onfinish",Re),Pt(),tt(!1)}},(Xe==null?void 0:Xe.can_edit)&&K.createElement("div",{className:Mt.Z.title},"\u4F5C\u4E1A\u5206\u503C\u8BBE\u7F6E"),K.createElement("div",{style:{background:"#F6F7F9",padding:"5px 30px",display:"flex",alignItems:"center"}},K.createElement("div",{style:{color:"#333333"}},"\u4F5C\u4E1A\u603B\u5206"),K.createElement(Le.default.Item,{className:"ml20",style:{marginBottom:"0px"},name:"total_score",rules:[{required:!0,message:"\u4F5C\u4E1A\u603B\u5206\u4E0D\u80FD\u4E3A\u7A7A"}]},K.createElement(Ye.Z,{style:{width:120},min:0,addonAfter:"\u5206"}))),K.createElement("div",{className:Mt.Z.title,style:{marginTop:"30px"}},"\u6548\u7387\u5206",K.createElement("span",{style:{color:"#666",verticalAlign:"top",fontSize:14,fontWeight:400}},"\uFF08\u6548\u7387\u5206\u5728\u4F5C\u4E1A\u7ED3\u675F\u4E4B\u524D\u4E0D\u8BA1\u7B97\uFF0C\u4F5C\u4E1A\u7ED3\u675F\u540E\u81EA\u52A8\u5C06\u6548\u7387\u5206\u624D\u8BA1\u7B97\u52A0\u5165\u5230\u5B66\u751F\u6210\u7EE9\u4E2D\uFF09")),K.createElement("div",{style:{background:"#F6F7F9",padding:"5px 30px",display:"flex",alignItems:"center",width:"100%"}},K.createElement(Le.default.Item,{name:"work_efficiency",valuePropName:"checked",style:{marginBottom:0},normalize:Re=>{const gt=rn(Uu({},w),{eff_score:Re?20:0});return iu(gt),Fu(gt),Re}},K.createElement(g.default,null,K.createElement("strong",{className:"c-grey-666"},"\u6548\u7387\u5206"))),K.createElement("div",{style:{color:"#666"}},"\uFF08\u52FE\u9009\u6548\u7387\u5206\u540E\uFF0C\u5219\u4F5C\u4E1A\u603B\u5206\u503C=\u6548\u7387\u5206+\u4EFB\u52A1\u5173\u5361\u603B\u5206\uFF09")),K.createElement("div",{style:{background:"#F6F7F9",padding:"5px 50px",marginTop:"1px"}},K.createElement(ye.Z,{wrap:!1,align:"middle"},K.createElement(x.Z,{style:{textAlign:"right"}},K.createElement("span",{className:"c-grey-333"},"\u6548\u7387\u5206\u503C")),K.createElement(x.Z,null,K.createElement(Le.default.Item,{className:"ml20",name:"eff_score",style:{marginBottom:0},rules:[{required:ft&&!0,message:"\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A"}],normalize:Re=>(iu(rn(Uu({},w),{eff_score:Re})),Re)},K.createElement(Ye.Z,{style:{width:184},min:0,step:.1,addonAfter:"\u5206",disabled:ht||!ft}))))),ft&&K.createElement("div",{style:{background:"#F6F7F9",padding:"5px 50px",marginTop:"1px"}},K.createElement("div",{style:{height:40,lineHeight:"40px"}},K.createElement("span",{className:"c-grey-333 mr10"},"\u8BA1\u7B97\u7EF4\u5EA6"),K.createElement("span",{className:"c-grey-666"},"\uFF08\u6548\u7387\u5206 = \uFF08\u5B66\u4E60\u6548\u7387 / \u6700\u9AD8\u5B66\u4E60\u6548\u7387 \uFF09* \u5206\u503C\uFF1B\u5B66\u4E60\u6548\u7387 = log\uFF08\u5B9E\u8BAD\u603B\u5F97\u5206/\u5B9E\u8BAD\u603B\u8017\u65F6\uFF09\uFF1B\u8017\u65F6\u5355\u4F4D\u4E3A\u5C0F\u65F6\uFF0C\u5F53\u5B66\u751F\u672A\u901A\u5173\u5219\u6548\u7387\u5206\u4E3A0\uFF09")),K.createElement(Le.default.Item,{name:"eff_type",style:{marginBottom:0}},K.createElement(ie.ZP.Group,null,K.createElement(ie.ZP,{value:1},"\u6309\u4F5C\u4E1A\u6700\u9AD8\u6548\u7387\u5206\u8BA1\u7B97"),K.createElement(ie.ZP,{value:2,style:{marginLeft:10}},"\u6309\u73ED\u7EA7\u6700\u9AD8\u6548\u7387\u5206\u8BA1\u7B97")))),ft&&K.createElement("div",{style:{background:"#F6F7F9",padding:"5px 50px",marginTop:"1px"}},K.createElement("div",{className:"c-grey-333",style:{height:40,lineHeight:"40px"}},K.createElement("span",null,"\u5B9E\u8BAD\u603B\u8017\u65F6"),K.createElement(j.Z,{title:"\u89C4\u5219\u8BF4\u660E"},K.createElement("i",{className:`iconfont icon-tishixiaowenhao ${Mt.Z.title_icon}`,style:{color:"#666"},onClick:()=>Me(!0)}))),K.createElement(Le.default.Item,{name:"training_time_rules",style:{marginBottom:0},normalize:(Re,gt,qe)=>(iu(rn(Uu({},qe),{training_time_rules:Re})),Re)},K.createElement(ie.ZP.Group,null,K.createElement(wa.Z,{direction:"vertical"},K.createElement(ie.ZP,{style:{height:40,lineHeight:"40px"},value:1},"\u9875\u9762\u505C\u7559\u65F6\u957F",K.createElement("span",{className:"ml10 c-grey-666"},"\uFF08\u5728\u5173\u5361\u901A\u5173\u524D\u505C\u7559\u7B54\u9898\u9875\u9762\u7684\u603B\u65F6\u957F\uFF09")),K.createElement(ie.ZP,{style:{height:40,lineHeight:"40px"},value:2},"\u5173\u5361\u603B\u8017\u65F6",K.createElement("span",{className:"ml10 c-grey-666"},"\uFF08\u7B2C\u4E00\u6B21\u8FDB\u5165\u5173\u5361\u65F6\u95F4\u70B9\u5230\u5173\u5361\u901A\u5173\u65F6\u95F4\u70B9\u7684\u603B\u65F6\u957F\uFF09")),K.createElement(ie.ZP,{style:{height:40,lineHeight:"40px"},value:3},"\u4F5C\u4E1A\u901A\u5173\u65F6\u957F",K.createElement("span",{className:"ml10 c-grey-666"},"\uFF08\u4F5C\u4E1A\u53D1\u5E03\u65F6\u95F4\u70B9\u5230\u5B66\u751F\u5168\u90E8\u5173\u5361\u901A\u5173\u65F6\u95F4\u70B9\u7684\u603B\u65F6\u957F\uFF09")))))),K.createElement("div",{style:{marginTop:"30px"}},K.createElement("div",{className:Mt.Z.title},"\u4EFB\u52A1\u5173\u5361\u9009\u62E9\u4E0E\u5206\u503C\u8BBE\u7F6E"),K.createElement("div",{style:{background:"#F6F7F9",padding:"5px 16px"}},K.createElement("div",{style:{display:"flex",alignItems:"center"}},K.createElement("div",{style:{width:"60px",marginRight:"10px",textAlign:"left"}},"\u5206\u503C\u8BBE\u7F6E"),K.createElement(Le.default.Item,{name:"shixun_evaluation",style:{marginBottom:0},normalize:(Re,gt,qe)=>{const Vt=rn(Uu({},qe),{shixun_evaluation:Re,difficulty_level_sort:Re!==1?"asc":qe.difficulty_level_sort});return iu(Vt),Re}},K.createElement(ie.ZP.Group,null,K.createElement(ie.ZP,{value:0},"\u5747\u5206\u6BD4\u4F8B"),K.createElement(ie.ZP,{value:1,style:{marginLeft:20}},"\u96BE\u6613\u5EA6"),K.createElement(ie.ZP,{value:2,style:{marginLeft:20}},"\u81EA\u5B9A\u4E49\u5206\u503C"))),ue==1&&K.createElement(Le.default.Item,{name:"difficulty_level_sort",style:{marginBottom:0},normalize:(Re,gt,qe)=>(iu(rn(Uu({},qe),{difficulty_level_sort:Re})),Re)},K.createElement(m.default,{style:{width:200},options:[{value:"asc",label:"\u6B63\u5E8F\u8D4B\u5206"},{value:"desc",label:"\u53CD\u5E8F\u8D4B\u5206"}]})))),K.createElement("div",{style:{background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"}},K.createElement("div",{style:{display:"flex",alignItems:"center"}},K.createElement("div",{className:"c-grey-666",style:{width:"60px",textAlign:"left"}},"\u5173\u5361\u540D\u79F0"),K.createElement("div",{className:`${Mt.Z.SubTooltip}`,style:{height:40,lineHeight:"40px",color:"#666"}},Xe!=null&&Xe.task_pass?"\uFF08\u8BE5\u5B9E\u8BAD\u652F\u6301\u8DF3\u5173\u5B66\u4E60\uFF0C\u52FE\u9009\u5219\u5B66\u751F\u5FC5\u987B\u5B8C\u6210\u7684\u5173\u5361\uFF09":"\uFF08\u8BE5\u5B9E\u8BAD\u4E0D\u652F\u6301\u8DF3\u5173\u5B66\u4E60\uFF09")),K.createElement(Le.default.List,{name:"challenge_settings"},(Re,{add:gt,remove:qe})=>K.createElement("div",{style:{display:"flex",flexDirection:"column",gap:17}},Re==null?void 0:Re.map(Vt=>{var At=Vt,{key:Tt,name:St}=At,Ou=ba(At,["key","name"]),et,wu,Pu,ru,fu,zu,Du;return K.createElement(ye.Z,{key:Tt,wrap:!1,align:"middle"},K.createElement(x.Z,null,K.createElement(Le.default.Item,rn(Uu({},Ou),{name:[St,"checked"],valuePropName:"checked",style:{marginBottom:0},normalize:(Su,se,Qe)=>{var Kt;return Qe.challenge_settings[Tt].checked=Su,(Kt=Qe==null?void 0:Qe.challenge_settings)!=null&&Kt.every(gu=>!gu.checked)?(i.ZP.warning("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A"),Qe.challenge_settings[Tt].checked=se,se):(Qe.shixun_evaluation===2&&!Su&&(Qe.challenge_settings[Tt].challenge_score=0),iu(Qe),Su)}}),K.createElement(g.default,{disabled:ht||!(Xe!=null&&Xe.task_pass)},K.createElement(j.Z,{title:(et=G==null?void 0:G[Tt])==null?void 0:et.challenge_name,placement:"topLeft"},K.createElement("div",{className:"c-grey-666 multi_ellipsis1",style:{width:525}},(wu=G==null?void 0:G[Tt])==null?void 0:wu.challenge_name))))),K.createElement(x.Z,{flex:"76px"},!G[Tt].checked&&K.createElement("span",{className:"tag-style-border-small bg-orange border-raduis-50 c-white ml20"},"\u53EF\u4E0D\u505A")),K.createElement(x.Z,null,K.createElement(Le.default.Item,{className:"ml20",name:[St,"challenge_score"],style:{marginBottom:0},normalize:(Su,se,Qe)=>(Qe.challenge_settings[Tt].challenge_score=Su,Fu(Qe),Su)},K.createElement(Ye.Z,{style:{width:120},min:0,addonAfter:K.createElement("span",{className:Mt.Z.SubTooltip},"\u5206"),disabled:ht||ue!==2||!((Pu=G==null?void 0:G[Tt])!=null&&Pu.checked)}))),K.createElement(x.Z,null,K.createElement("div",{style:{marginLeft:"55px"},className:((ru=G==null?void 0:G[Tt])==null?void 0:ru.difficulty)=="\u7B80\u5355"?Mt.Z.DifSimple:((fu=G==null?void 0:G[Tt])==null?void 0:fu.difficulty)=="\u4E2D\u7B49"?Mt.Z.DifMiddle:Mt.Z.DifHard},(zu=G==null?void 0:G[Tt])==null?void 0:zu.difficulty)),K.createElement(x.Z,null,K.createElement("span",{className:` ${Mt.Z.SubTooltip}`,style:{marginLeft:"55px"}},"\u91D1\u5E01\u5956\u52B1\u6570",K.createElement("span",{className:"ml10",style:{color:"#FA6400"}},(Du=G==null?void 0:G[Tt])==null?void 0:Du.challenge_exp))))}))))),K.createElement("div",{style:{marginTop:"30px"}},K.createElement("div",{className:Mt.Z.title},"\u5B66\u751F\u6263\u5206\u89C4\u5219\u8BBE\u7F6E"),K.createElement("div",{style:{background:"#F6F7F9",padding:"5px 30px"}},K.createElement("div",{style:{display:"flex",alignItems:"center"}},K.createElement(Le.default.Item,{name:"open_view_answer_deduct",valuePropName:"checked",style:{marginBottom:0}},K.createElement(g.default,null)),K.createElement("div",{style:{margin:"0 10px"}},"\u5F00\u542F\u67E5\u770B\u7B54\u6848\u6263\u5206"),K.createElement("span",{className:`${Mt.Z.SubTooltip}`,style:{color:"#666"}},"\uFF08\u9488\u5BF9\u672A\u901A\u8FC7\u5173\u5361\u7684\u5B66\u751F\u67E5\u770B\u7B54\u6848\u540E\u8BC4\u6D4B\u901A\u5173\u8FDB\u884C\u6263\u5206\uFF0C\u5DF2\u901A\u8FC7\u518D\u67E5\u770B\u7B54\u6848\u4E0D\u8FDB\u884C\u6263\u5206\uFF09")),Ze&&K.createElement("div",{style:{display:"flex",alignItems:"center"}},K.createElement(Le.default.Item,{name:"answer_open_evaluation",style:{marginBottom:0}},K.createElement(ie.ZP.Group,null,K.createElement(ie.ZP,{value:!0,style:{marginRight:"50px"}},"\u56FA\u5B9A\u6263\u5206"),K.createElement(ie.ZP,{value:!1},"\u6309\u7167\u5B9E\u8BAD\u53C2\u8003\u7B54\u6848\u7EA7\u522B\u6263\u5206")))),F&&K.createElement("div",{style:{display:"flex",alignItems:"center",margin:"5px 0",paddingLeft:23}},K.createElement("div",{className:"c-grey-666"},"\u67E5\u770B\u7B54\u6848\u56FA\u5B9A\u6263\u9664"),K.createElement(Le.default.Item,{name:"game_deduct_score_percentage",style:{marginBottom:"0px"},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6263\u5206\u6BD4\u4F8B"}]},K.createElement(Ye.Z,{style:{width:120,margin:"0 10px"},min:0,max:100,addonAfter:K.createElement("span",{className:Mt.Z.SubTooltip},"%")})),K.createElement("div",{className:"c-grey-666"},"\u5206\u503C ",K.createElement("span",{style:{color:"#666666"}}," \uFF08\u5F53\u8BBE\u7F6E0%\u65F6\uFF0C\u5219\u5B66\u751F\u67E5\u770B\u7B54\u6848\u4E0D\u6263\u5206\uFF09")))),K.createElement("div",{style:{background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"}},K.createElement("div",{style:{display:"flex",alignItems:"center"}},K.createElement(Le.default.Item,{name:"is_repeat_minus",valuePropName:"checked",style:{marginBottom:0},normalize:Re=>(!Re&&tt(!0),Re)},K.createElement(g.default,null)),K.createElement("div",{style:{margin:"0 10px"}},"\u5F00\u542F\u4EE3\u7801\u67E5\u91CD\u6263\u5206"),K.createElement("div",{className:Mt.Z.SubTooltip,style:{color:"#666"}},"\uFF08\u8BBE\u7F6E\u89C4\u5219\u540E\uFF0C\u9700\u8981\u8FDB\u884C\u201C\u4EE3\u7801\u67E5\u91CD\u201D\u540E\u624D\u80FD\u751F\u6548\uFF09")),Ue&&K.createElement("div",{style:{display:"flex",alignItems:"center"}},K.createElement("div",{style:{marginLeft:"30px"}},"\u6263\u5206\u9608\u503C"),K.createElement(Le.default.Item,{className:"ml10",name:"repeat_limit",style:{marginBottom:0},normalize:Re=>(tt(!0),Re)},K.createElement(Ye.Z,{style:{width:120},min:0,max:100,addonAfter:K.createElement("span",{className:Mt.Z.SubTooltip},"%")})),K.createElement("div",{style:{color:"#666666",marginLeft:"10px"}},"\uFF08\u5B66\u751F\u76F8\u4F3C\u5EA6\u4F4E\u4E8E\u8FD9\u4E2A\u9608\u503C\u5219\u4E0D\u6263\u5206\uFF09"),K.createElement("div",{style:{marginLeft:"30px"}},"\u67E5\u91CD\u6263\u5206"),K.createElement(Le.default.Item,{className:"ml10",name:"repeat_setting_score",style:{marginBottom:0},normalize:Re=>(tt(!0),Re)},K.createElement(Ye.Z,{style:{width:120},min:0,max:Y,addonAfter:K.createElement("span",{className:Mt.Z.SubTooltip},"\u5206")})),K.createElement("div",{style:{color:"#666666",marginLeft:"10px"}},"\uFF08\u5B66\u751F\u5173\u5361\u5B9E\u9645\u6263\u5206=\u67E5\u91CD\u6263\u5206x\u76F8\u4F3C\u5EA6\u6BD4\uFF09"))))),K.createElement(k.ZP,{type:"primary",size:"large",loading:vt,style:{width:"138px",marginTop:"30px"},onClick:()=>{re.submit()}},"\u4FDD\u5B58"),K.createElement(s.default,{title:"\u8BA1\u65F6\u89C4\u5219\u8BF4\u660E",open:Ne,width:860,footer:null,onCancel:()=>{Me(!1)}},K.createElement("div",{style:{color:"#333333",fontWeight:400}},K.createElement("span",{style:{fontWeight:600}},"1\u3001\u9875\u9762\u505C\u7559\u65F6\u957F"),K.createElement("br",null),K.createElement("span",null,"\u5B66\u751F",K.createElement("span",{style:{color:"#333333",fontWeight:600}},"\u8FDB\u5165\u5173\u5361\u7684\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u5B66\u751F\u5173\u5361\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\uFF1B"),"\u5173\u5361\u95EF\u5173\u8FC7\u7A0B\u4E2D\uFF0C",K.createElement("span",{style:{color:"#333333",fontWeight:600}},"\u5B66\u751F\u5173\u95ED/\u9000\u51FA\u7B54\u9898\u9875\u9762\uFF0C\u5219\u8BA1\u65F6\u6682\u505C\uFF0C\u518D\u6B21\u8FDB\u5165\u7B54\u9898\u9875\u9762\u65F6\u5F00\u59CB\u7D2F\u8BA1\u8BA1\u65F6\u76F4\u81F3\u8BC4\u6D4B\u901A\u8FC7\uFF0C"),"\u5219\u8BA1\u65F6\u7ED3\u675F"),K.createElement("span",{style:{color:"#FA6400",display:"flex",height:34,alignItems:"center"}}," \u53EF\u80FD\u4F1A\u9020\u6210\u65F6\u957F\u8BC4\u4F30\u4E0E\u5B9E\u9645\u505A\u9898\u80FD\u529B\u4E0D\u7B26\u7684\u60C5\u51B5\uFF0C\u60C5\u51B5\u5982\u4E0B\uFF1A "),K.createElement("span",null,"a\u3001\u5B66\u751F\u8FDB\u5165\u5173\u5361\u770B\u5B8C\u9898\u540E\uFF0C\u9000\u51FA\u7B54\u9898\u9875\u9762\u5B8C\u6210\u4EE3\u7801\u8BBE\u8BA1\uFF0C\u518D\u590D\u5236\u8FDB\u5E73\u53F0\u7B54\u9898\u9875\u9762\u8FDB\u884C\u8BC4\u6D4B\uFF0C\u65E0\u6CD5\u8BC4\u4F30\u5B66\u751F\u7684\u5B66\u4E60\u548C\u601D\u8003\u65F6\u95F4\u3002")),K.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},K.createElement("span",{style:{fontWeight:600}},"2\u3001\u5173\u5361\u603B\u8017\u65F6"),K.createElement("br",null),K.createElement("span",null,"\u5B66\u751F",K.createElement("span",{style:{color:"#333333",fontWeight:600}},"\u7B2C\u4E00\u6B21\u8FDB\u5165\u5173\u5361\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u8BE5\u5173\u5361\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\uFF1B"),"\u5173\u5361\u95EF\u5173\u8FC7\u7A0B\u4E2D\uFF0C",K.createElement("span",{style:{color:"#333333",fontWeight:600}},"\u5B66\u751F\u9000\u51FA/\u5173\u95ED\u7B54\u9898\u9875\u9762\uFF0C\u4E5F\u5C06\u6301\u7EED\u8BA1\u65F6\uFF0C\u76F4\u81F3\u8BC4\u6D4B\u901A\u8FC7\u3002")),K.createElement("span",{style:{color:"#FA6400",display:"flex",height:44,paddingTop:10}}," \u53EF\u80FD\u4F1A\u9020\u6210\u65F6\u957F\u8BC4\u4F30\u4E0E\u5B9E\u9645\u505A\u9898\u80FD\u529B\u4E0D\u7B26\u7684\u60C5\u51B5\uFF0C\u60C5\u51B5\u5982\u4E0B\uFF1A "),K.createElement("span",null,"a\u3001\u5B66\u751F\u4ECE\u5176\u4ED6\u540C\u5B66\u5904\u770B\u5230\u9898\u76EE\u540E\uFF0C\u5B8C\u6210\u4EE3\u7801\u8BBE\u8BA1\uFF0C\u518D\u8FDB\u5165\u5173\u5361\u7B54\u9898\u9875\u9762\uFF0C\u5C06\u5DF2\u5B8C\u6210\u7684\u4EE3\u7801\u590D\u5236\u81F3\u5E73\u53F0\u8FDB\u884C\u8BC4\u6D4B\uFF1B"),K.createElement("br",null),K.createElement("span",null,"b\u3001\u5B66\u751F\u7B2C\u4E00\u6B21\u6253\u5F00\u5173\u5361\u540E\uFF0C\u56E0\u4E3A\u67D0\u79CD\u539F\u56E0\u79BB\u5F00\u9875\u9762\uFF0C\u65F6\u9694\u591A\u65E5\u624D\u518D\u6B21\u8FDB\u5165\u5E73\u53F0\u95EF\u5173\uFF0C\u5C31\u4F1A\u5BFC\u81F4\u5B66\u751F\u5173\u5361\u603B\u8017\u65F6\u8FC7\u957F\uFF1B")),K.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},K.createElement("span",{style:{fontWeight:600}},"3\u3001\u4F5C\u4E1A\u901A\u5173\u65F6\u957F"),K.createElement("br",null),K.createElement("span",null,"\u4ECE\u8001\u5E08",K.createElement("span",{style:{color:"#333333",fontWeight:600}},"\u53D1\u5E03\u7684\u5B9E\u8BAD\u4F5C\u4E1A\u65F6\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u5B66\u751F\u5B9E\u8BAD\u901A\u5173\uFF08\u5305\u62EC\u8FDF\u4EA4\u901A\u5173\uFF09\u7ED3\u675F\u8BA1\u65F6\u3002"),"\u82E5\u5B66\u751F\u672A\u901A\u5173\uFF0C\u5219\u8BE5\u5B66\u751F\u7684\u95EF\u5173\u8017\u65F6\u4E3A\u8001\u5E08\u8BBE\u7F6E\u7684\u5B9E\u8BAD\u5F00\u59CB\u65F6\u95F4\u81F3\u5B9E\u8BAD\u622A\u6B62\u65F6\u95F4\uFF0C\u82E5\u8001\u5E08\u5F00\u542F\u4E86\u8865\u4EA4\uFF0C\u5219\u8BE5\u751F\u7684\u95EF\u5173\u8017\u65F6\u4E3A\u5B9E\u8BAD\u5F00\u59CB\u65F6\u95F4\u81F3\u5B9E\u8BAD\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u3002")),K.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},K.createElement("span",{style:{fontWeight:600}},"\u89C4\u5219\u76EE\u7684"),K.createElement("br",null),K.createElement("span",null,"\u9F13\u52B1\u5B66\u751F\u5728\u5B9E\u8BAD\u4F5C\u4E1A\u53D1\u5E03\u7684\u7B2C\u4E00\u65F6\u95F4\u8FDB\u5165\u5E73\u53F0\u5B8C\u6210\u5B9E\u8BAD\u4F5C\u4E1A\u7684\u901A\u5173\u3002"))))};var ka=(0,o.connect)(({shixunHomeworks:t,loading:l})=>({shixunHomeworks:t,loading:l.effects}))(Pa),Xu=u(59301),kn=(t,l,n)=>new Promise(($,re)=>{var Y=F=>{try{G(n.next(F))}catch(ue){re(ue)}},ge=F=>{try{G(n.throw(F))}catch(ue){re(ue)}},G=F=>F.done?$(F.value):Promise.resolve(F.value).then(Y,ge);G((n=n.apply(t,l)).next())});const Ra=({shixunHomeworks:t,loading:l,dispatch:n})=>{var $,re;const[Y,ge]=(0,e.useState)(!0),[G,F]=(0,e.useState)(!1),[ue,ft]=(0,e.useState)([]),[Ue,Ze]=(0,e.useState)([]),[Xe,Ht]=(0,e.useState)([]),[Oe,ht]=(0,e.useState)([]),[ae,vt]=(0,e.useState)(!1),[Lt,Ne]=(0,e.useState)(""),Me=(0,o.useParams)();function ze(){return kn(this,null,function*(){let xe=yield(0,v.ZP)(`/api/homework_commons/${Me.categoryId}/homework_common_collaborators.json`,{method:"get"});Ze(xe)})}function Pe(){return kn(this,null,function*(){var xe;let w=yield(0,v.ZP)(`/api/courses/${Me==null?void 0:Me.coursesId}/teachers`,{method:"get",params:{homework_id:Me.categoryId,limit:1e3}});(xe=w==null?void 0:w.teacher_list)==null||xe.map(Ie=>{Ie.key=Ie.user_id}),Ht(w==null?void 0:w.teacher_list),ht(w==null?void 0:w.teacher_list)})}(0,e.useEffect)(()=>{ze(),Pe()},[Me]);const Ct=()=>{};return Xu.createElement("section",{className:Mt.Z.form},Xu.createElement(ye.Z,{className:Mt.Z.content,style:{padding:"20px 30px",gap:20}},($=Ue==null?void 0:Ue.data)==null?void 0:$.map(xe=>Xu.createElement(ye.Z,{align:"middle",className:`${Mt.Z.borderSty} ${Lt===(xe==null?void 0:xe.id)?Mt.Z.delBorder:""}`,style:{height:"38px",borderRadius:"2px",padding:"0 12px",color:"#333333",background:"#fff"}},Xu.createElement("span",{className:"c-grey-333"},xe==null?void 0:xe.real_name),(Ue==null?void 0:Ue.can_edit)&&Xu.createElement("span",{style:{cursor:"pointer",marginLeft:"20px"},className:`iconfont icon-guanbi11 ${Mt.Z.delSty}`,onMouseEnter:()=>{Ne(xe.id)},onMouseLeave:()=>{Ne("")},onClick:()=>kn(void 0,null,function*(){(yield(0,v.ZP)(`/api/homework_commons/${Me.categoryId}/homework_common_collaborators/delete.json`,{method:"delete",body:{user_id:xe.id}})).status===0&&(i.ZP.info("\u5220\u9664\u6210\u529F"),ze(),Pe())})}))),!(Ue!=null&&Ue.can_edit)&&!((re=Ue==null?void 0:Ue.data)!=null&&re.length)&&Xu.createElement("span",{className:"c-grey-666"},"\u6682\u672A\u6DFB\u52A0\u534F\u4F5C\u8005"),(Ue==null?void 0:Ue.can_edit)&&Xu.createElement(k.ZP,{className:Mt.Z.copHover,style:{height:38,padding:"6px 15px",backgroundColor:"#fff"},type:"primary",ghost:!0,onClick:()=>F(!0)},"\u6DFB\u52A0\u534F\u4F5C\u8005")),Xu.createElement(s.default,{title:"\u6DFB\u52A0\u534F\u4F5C\u8005",open:G,confirmLoading:ae,onCancel:()=>F(!1),onOk:()=>kn(void 0,null,function*(){if(ue.length===0){i.ZP.info("\u8BF7\u9009\u62E9\u534F\u4F5C\u8001\u5E08");return}vt(!0),(yield(0,v.ZP)(`/api/homework_commons/${Me.categoryId}/homework_common_collaborators.json`,{method:"post",body:{user_ids:ue}})).status===0&&(i.ZP.info("\u6DFB\u52A0\u6210\u529F"),ft([]),ze(),Pe(),F(!1)),vt(!1)})},Xu.createElement("div",null,Xu.createElement("div",{style:{display:"flex"}},Xu.createElement("label",{style:{width:"50px"}},"\u59D3\u540D\uFF1A")," ",Xu.createElement(ve.default.Search,{onChange:xe=>{Ht(Oe.filter(w=>w.name.indexOf(xe.target.value)>-1))}})),Xu.createElement(P.default,{style:{marginTop:"10px",height:"300px",overflow:"auto"},rowSelection:{type:"checkbox",onChange:(xe,w)=>{ft(xe)},selectedRowKeys:ue,getCheckboxProps:xe=>({disabled:xe.is_collaborator})},pagination:!1,dataSource:Xe,columns:[{title:"\u59D3\u540D",dataIndex:"name",key:"name"},{title:"\u89D2\u8272",dataIndex:"role",key:"role"}]}))))};var Za=(0,o.connect)(({shixunHomeworks:t,loading:l})=>({shixunHomeworks:t,loading:l.effects}))(Ra),Sn=u(46474),Ta=u(97177),be=u(59301),za=Object.defineProperty,Cl=Object.getOwnPropertySymbols,Qa=Object.prototype.hasOwnProperty,Wa=Object.prototype.propertyIsEnumerable,Dl=(t,l,n)=>l in t?za(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,Rn=(t,l)=>{for(var n in l||(l={}))Qa.call(l,n)&&Dl(t,n,l[n]);if(Cl)for(var n of Cl(l))Wa.call(l,n)&&Dl(t,n,l[n]);return t},Zn=(t,l,n)=>new Promise(($,re)=>{var Y=F=>{try{G(n.next(F))}catch(ue){re(ue)}},ge=F=>{try{G(n.throw(F))}catch(ue){re(ue)}},G=F=>F.done?$(F.value):Promise.resolve(F.value).then(Y,ge);G((n=n.apply(t,l)).next())});const Ya=({shixunHomeworks:t,loading:l,dispatch:n,classroomList:$,user:re})=>{var Y,ge,G,F;const ue=(0,o.useParams)(),{verifyModelUser:ft,ContactModalElement:Ue}=(0,Ta.Z)(),{workSetting:Ze}=t,[Xe,Ht]=(0,e.useState)(!1),[Oe,ht]=(0,e.useState)(!1),[ae,vt]=(0,e.useState)({work_end_forbid_evaluate:!1,start_permanent:!1,ai_syntax_check:!1,ai_exam_question:!1,ai_code_diagnosis:!1,ai_guidance:!1,ai_q_and_a:!1,ai_code_evaluation:!1,ai_code_optimization:!1,ai_code_comment:!1,ai_guide:!1,ai_guide_data:{unanswered_msg:"\u770B\u8D77\u6765\u4F60\u53EF\u80FD\u6B63\u5728\u4ED4\u7EC6\u601D\u8003\u8FD9\u9053\u9898\u76EE\u3002\u5982\u679C\u4F60\u6709\u4EFB\u4F55\u7591\u95EE\u6216\u662F\u9700\u8981\u4E00\u4E9B\u63D0\u793A\uFF0C\u8BF7\u968F\u65F6\u544A\u8BC9\u6211\uFF01\u6211\u5F88\u4E50\u610F\u5E2E\u5FD9\u3002",unanswered_time:10,unedit_time:3,evaluation_msg:"\u6211\u6CE8\u610F\u5230\u4F60\u5728\u8FD9\u4E00\u5173\u5361\u9047\u5230\u4E86\u4E00\u4E9B\u6311\u6218\u3002\u522B\u62C5\u5FC3\uFF0C\u8FD9\u662F\u5B66\u4E60\u8FC7\u7A0B\u4E2D\u7684\u5E38\u89C1\u60C5\u51B5\u3002\u8BA9\u6211\u4EEC\u4E00\u8D77\u6765\u5206\u6790\u4E00\u4E0B\u54EA\u91CC\u51FA\u4E86\u95EE\u9898\u5427\uFF01",evaluation_num:3}}),[Lt,Ne]=(0,e.useState)(!1),[Me,ze]=(0,e.useState)("\u8BC4\u4EF7\u7EF4\u5EA6\u9700\u8981\u5305\u542B\u4EE3\u7801\u98CE\u683C\u3001\u65F6\u95F4\u590D\u6742\u5EA6\u3001\u7A7A\u95F4\u590D\u6742\u5EA6\u3001 \u529F\u80FD\u6B63\u786E\u6027\u3001\u4EE3\u7801\u53EF\u8BFB\u6027\u3001\u6027\u80FD\u3001\u9519\u8BEF\u5904\u7406\u3001\u6269\u5C55\u6027\u548C\u590D\u7528\u6027\u3001\u6D4B\u8BD5\uFF0C\u9700\u8981\u751F\u6210\u8BC4\u4EF7\u603B\u7ED3\uFF0C\u4E0D\u9700\u8981\u751F\u6210\u6539\u8FDB\u540E\u7684\u4EE3\u7801"),[Pe,Ct]=(0,e.useState)("");(0,e.useEffect)(()=>{Ht(!(0,z.GJ)())},[(0,z.GJ)()]);const xe=()=>{n({type:"shixunHomeworks/getWorkSetting",payload:Rn({},ue)})};(0,e.useEffect)(()=>{Ze!=null&&Ze.course_id&&(Object.keys(ae).forEach(Ge=>{ae[Ge]=Ze[Ge]||ae[Ge]}),vt(Rn({},ae)),ze(Ze==null?void 0:Ze.ai_code_evaluation_promote))},[Ze]);const w=()=>Zn(void 0,null,function*(){var Ge;if(((Ge=re==null?void 0:re.userInfo)==null?void 0:Ge.user_status)===2){(0,Sn.Rd)();return}ht(!0);const iu=JSON.parse(JSON.stringify(ae));(yield(0,v.ZP)(`/api/homework_commons/${ue.categoryId}/shiyan_setting.json`,{method:"post",body:iu})).status===0&&(i.ZP.success("\u66F4\u65B0\u6210\u529F"),xe(),n({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:Rn({},ue)})),ht(!1)}),Ie=Ge=>Ge.replace(/\\\(([\s\S]*?)\\\)/g,"$$$$$1$$$$").replace(/\\\[([\s\S]*?)\\\]/g,"$$$$$1$$$$").replace(/`(\$\$.*?\$\$)`/g,"$$$$$1$$$$").replace(/_{2,}/g,"`$&`"),[ee,tt]=(0,e.useState)(!1),[bt,ut]=(0,e.useState)(""),Jt=(0,e.useRef)(null),Pt=()=>Zn(void 0,null,function*(){tt(!0),Jt.current=new yn.Z(W.Z.API_SERVER+"/api/stream/intelligent_imports/chat_messages.json",{response_mode:"streaming",model:"qwen-max",scene_awareness:!1,thinking_enabled:!1,image_generator:!1,file_ids:[],history:[],prompt:Me,shixun_id:ae==null?void 0:ae.shixun_identifier,source:"shixun",is_chat:!1,type:9,description:Me,query:`# \u521D\u59CB\u5316\u7D2F\u52A0\u5668 +sum = 0 +# \u4F7F\u7528for\u5FAA\u73AF\u904D\u53861\u5230100 +for i in range(1, 101): +sum += i # \u5C06\u5F53\u524D\u503C\u52A0\u5230sum\u4E2D +# \u8F93\u51FA\u7ED3\u679C +print("1\u5230100\u7684\u7D2F\u52A0\u548C\u4E3A:", sum)`}),yield new Promise((Ge,iu)=>{Jt.current.on("data",Fu=>{ut(Ie(Fu==null?void 0:Fu.full))}),Jt.current.on("done",()=>Zn(void 0,null,function*(){tt(!1)})),Jt.current.startStream()})});return be.createElement("section",{className:Mt.Z.form},be.createElement("div",{className:Mt.Z.title},"\u8BC4\u6D4B\u9650\u5236"),be.createElement("div",{className:Mt.Z.content},be.createElement(g.default,{disabled:Xe,checked:ae.work_end_forbid_evaluate,onChange:Ge=>{ae.work_end_forbid_evaluate=Ge.target.checked,vt(Object.assign({},ae))}},be.createElement("span",{className:"c-black"},"\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u53EF\u7F16\u8F91\u4EE3\u7801"),be.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u4F5C\u4E1A\u622A\u6B62\u540E\uFF0C\u5B66\u751F\u65E0\u6CD5\u4FEE\u6539\u4EE3\u7801\u548C\u66F4\u65B0\u8BC4\u6D4B\u6570\u636E\uFF09"))),be.createElement("div",{className:Mt.Z.title,style:{marginTop:"30px"}},"\u4FDD\u5B58\u5B9E\u9A8C\u6570\u636E"),be.createElement("div",{className:Mt.Z.content},be.createElement(g.default,{disabled:Xe,checked:ae.start_permanent,onChange:Ge=>{if(!(0,z.Ny)()){(0,Sn.pW)(2);return}ae.start_permanent=Ge.target.checked,vt(Object.assign({},ae))}},be.createElement("span",{className:"c-black"},"\u5F00\u542F\u540E\uFF0C\u5B66\u5458\u5728\u901A\u7528\u4E91\u5B9E\u9A8C\u73AF\u5883\u4E0B\u7684/data/workspace\u76EE\u5F55\u5C06\u957F\u671F\u4FDD\u5B58\uFF0C\u6559\u5E08\u5728\u8BFE\u5802\u53EF\u5BFC\u51FA\u5B66\u751F\u5B9E\u9A8C\u6570\u636E",be.createElement("a",{target:"_blank",href:W.Z.API_SERVER+"/images/educoder/shixuns/\u5BFC\u51FA\u5B9E\u9A8C\u6587\u4EF6\u64CD\u4F5C\u6307\u5F15.pdf"},"\xA0\u64CD\u4F5C\u6307\u5F15\xA0")))),be.createElement("div",{className:Mt.Z.title,style:{marginTop:"30px"}},"\u667A\u80FD\u52A9\u6559\u529F\u80FD"),be.createElement("div",{className:Mt.Z.content,style:{padding:0}},be.createElement("div",{className:Mt.Z.pubColSty},be.createElement(g.default,{checked:ae.ai_exam_question,onChange:Ge=>{ft()&&(ae.ai_exam_question=Ge.target.checked,vt(Object.assign({},ae)))}},be.createElement("span",{className:"c-black"},"\u667A\u80FD\u5BA1\u9898"),be.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u5F00\u542F\u540E\uFF0C\u5B66\u751F\u5728\u505A\u4F5C\u4E1A\u7684\u8FC7\u7A0B\u4E2D\uFF0C\u53EF\u4EE5\u4F7F\u7528\u667A\u80FD\u5BA1\u9898\u529F\u80FD\u62C6\u89E3\u4EFB\u52A1\u3001\u83B7\u53D6\u89E3\u9898\u601D\u8DEF\uFF09"))),be.createElement("div",{className:Mt.Z.pubColSty},be.createElement(g.default,{checked:ae.ai_syntax_check,onChange:Ge=>{ft()&&(ae.ai_syntax_check=Ge.target.checked,vt(Object.assign({},ae)))}},be.createElement("span",{className:"c-black"},"\u8BED\u6CD5\u68C0\u67E5"),be.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u5F00\u542F\u540E\uFF0C\u5B66\u751F\u5728\u505A\u4F5C\u4E1A\u7684\u8FC7\u7A0B\u4E2D\uFF0C\u53EF\u4EE5\u4F7F\u7528\u8BED\u6CD5\u68C0\u67E5\u529F\u80FD\u68C0\u6D4B\u4EE3\u7801\u4E2D\u7684\u8BED\u6CD5\u9519\u8BEF\u3001\u83B7\u53D6\u4FEE\u590D\u5EFA\u8BAE\uFF09"))),be.createElement("div",{className:Mt.Z.pubColSty},be.createElement(g.default,{checked:ae.ai_code_diagnosis,onChange:Ge=>{ft()&&(ae.ai_code_diagnosis=Ge.target.checked,vt(Object.assign({},ae)))}},be.createElement("span",{className:"c-black"},"\u4EE3\u7801\u8BCA\u65AD"),be.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u5F00\u542F\u540E\uFF0C\u5B66\u751F\u5728\u505A\u4F5C\u4E1A\u7684\u8FC7\u7A0B\u4E2D\uFF0C\u53EF\u4EE5\u4F7F\u7528\u4EE3\u7801\u8BCA\u65AD\u529F\u80FD\u5206\u6790\u4EE3\u7801\u3001\u83B7\u53D6\u4FEE\u6B63\u5EFA\u8BAE\uFF09"))),be.createElement("div",{className:Mt.Z.pubColSty},be.createElement(g.default,{checked:ae.ai_guidance,onChange:Ge=>{ft()&&(ae.ai_guidance=Ge.target.checked,vt(Object.assign({},ae)))}},be.createElement("span",{className:"c-black"},"AI\u8F85\u5BFC"),be.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u5F00\u542F\u540E\uFF0C\u5B66\u751F\u5728\u505A\u4F5C\u4E1A\u7684\u8FC7\u7A0B\u4E2D\uFF0C\u53EF\u4EE5\u4F7F\u7528AI\u8F85\u5BFC\u529F\u80FD\u751F\u6210\u6B63\u786E\u4EE3\u7801\uFF09"))),be.createElement("div",{className:Mt.Z.pubColSty},be.createElement(g.default,{checked:ae.ai_code_evaluation,onChange:Ge=>{ft()&&(ae.ai_code_evaluation=Ge.target.checked,vt(Object.assign({},ae)))}},be.createElement("span",{className:"c-black"},"\u4EE3\u7801\u8BC4\u4EF7"),be.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u5F00\u542F\u540E\uFF0C\u5B66\u751F\u5728\u505A\u4F5C\u4E1A\u7684\u8FC7\u7A0B\u4E2D\uFF0C\u53EF\u4EE5\u4F7F\u7528\u4EE3\u7801\u8BC4\u4EF7\u529F\u80FD\u5BF9\u4EE3\u7801\u8FDB\u884C\u591A\u7EF4\u5EA6\u8BC4\u4EF7\uFF0C\u4E86\u89E3\u4EE3\u7801\u7F3A\u9677\uFF09"),be.createElement("span",{style:{color:"#3061D0",cursor:"pointer"},onClick:Ge=>{Ge.preventDefault(),Ge.stopPropagation(),Ne(!0),ze(Pe||(Ze==null?void 0:Ze.ai_code_evaluation_promote))}},"\u8BC4\u4EF7\u7EF4\u5EA6"))),be.createElement("div",{className:Mt.Z.pubColSty},be.createElement(g.default,{checked:ae.ai_code_optimization,onChange:Ge=>{ft()&&(ae.ai_code_optimization=Ge.target.checked,vt(Object.assign({},ae)))}},be.createElement("span",{className:"c-black"},"\u4EE3\u7801\u4F18\u5316"),be.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u5F00\u542F\u540E\uFF0C\u5B66\u751F\u5728\u505A\u4F5C\u4E1A\u7684\u8FC7\u7A0B\u4E2D\uFF0C\u53EF\u4EE5\u4F7F\u7528\u4EE3\u7801\u4F18\u5316\u529F\u80FD\u5BF9\u4EE3\u7801\u8FDB\u884C\u4F18\u5316\uFF0C\u5E2E\u52A9\u63D0\u5347\u4EE3\u7801\u8D28\u91CF\uFF09"))),be.createElement("div",{className:Mt.Z.pubColSty},be.createElement(g.default,{checked:ae.ai_code_comment,onChange:Ge=>{ft()&&(ae.ai_code_comment=Ge.target.checked,vt(Object.assign({},ae)))}},be.createElement("span",{className:"c-black"},"\u4EE3\u7801\u6CE8\u91CA"),be.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u5F00\u542F\u540E\uFF0C\u5B66\u751F\u5728\u505A\u4F5C\u4E1A\u7684\u8FC7\u7A0B\u4E2D\uFF0C\u53EF\u4EE5\u4F7F\u7528\u4EE3\u7801\u6CE8\u91CA\u529F\u80FD\u5BF9\u5DF2\u6709\u4EE3\u7801\u6DFB\u52A0\u6CE8\u91CA\uFF0C\u8282\u7701\u4EE3\u7801\u7F16\u5199\u65F6\u95F4\uFF09"))),be.createElement("div",{className:Mt.Z.pubColSty},be.createElement(g.default,{checked:ae.ai_q_and_a,onChange:Ge=>{ft()&&(Ge.target.checked||(ae.ai_guide=Ge.target.checked),ae.ai_q_and_a=Ge.target.checked,vt(Object.assign({},ae)))}},be.createElement("span",{className:"c-black"},"AI\u95EE\u7B54"),be.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u5F00\u542F\u540E\uFF0C\u5B66\u751F\u5728\u505A\u4F5C\u4E1A\u7684\u8FC7\u7A0B\u4E2D\uFF0C\u53EF\u4EE5\u4F7F\u7528AI\u95EE\u7B54\u529F\u80FD\u5411\u667A\u80FD\u52A9\u6559\u8BF7\u6559\uFF09"))),be.createElement("div",{className:`${Mt.Z.pubColSty}`,style:ae.ai_guide?{height:"auto",borderBottom:"none",paddingBottom:"30px"}:{}},be.createElement(g.default,{checked:ae.ai_guide,onChange:Ge=>{ft()&&(Ge.target.checked&&(ae.ai_q_and_a=Ge.target.checked),ae.ai_guide=Ge.target.checked,vt(Object.assign({},ae)))}},be.createElement("span",{className:"c-black"},"AI\u4F7F\u7528\u5F15\u5BFC"),be.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u5F00\u542F\u540E\uFF0C\u82E5\u5B66\u751F\u957F\u65F6\u95F4\u505C\u7559\u5B9E\u8BAD\u6311\u6218\u9875\u9762\u6216\u8005\u591A\u6B21\u8BC4\u6D4B\u4E0D\u901A\u8FC7\u65F6\uFF0C\u7CFB\u7EDF\u53EF\u4EE5\u4E3B\u52A8\u68C0\u6D4B\u5E76\u663E\u793A\u63D0\u793A\u8BED\u6765\u5F15\u5BFC\u5B66\u751F\u4F7F\u7528\u667A\u80FD\u52A9\u6559\u8F85\u52A9\u7B54\u9898\uFF09")),ae.ai_guide&&be.createElement("div",{className:"flex flex-col c-grey-666",style:{padding:"0 24px",gap:"15px"}},be.createElement("div",{className:"flex item-center gap-12px"},be.createElement("div",{className:"text-nowrap"},"\u8FDB\u5165\u5B9E\u8BAD\u6311\u6218\u9875\u9762\u8D85\u8FC7"),be.createElement(ve.default,{size:"large",style:{width:"133px"},value:(Y=ae==null?void 0:ae.ai_guide_data)==null?void 0:Y.unanswered_time,min:1,step:1,addonAfter:"\u5206\u949F",onChange:Ge=>{ae.ai_guide_data.unanswered_time=Ge.target.value,vt(Object.assign({},ae))}}),be.createElement("div",{className:"text-nowrap"},"\u8FD8\u672A\u81EA\u6D4B\u6216\u8005\u63D0\u4EA4\u8BC4\u6D4B")),be.createElement("div",{className:"flex gap-12px"},be.createElement("div",{className:"text-nowrap"},"\u63D0\u793A\u8BED"),be.createElement(ve.default.TextArea,{className:"flex-1 minW-0",showCount:!0,maxLength:300,value:(ge=ae==null?void 0:ae.ai_guide_data)==null?void 0:ge.unanswered_msg,onChange:Ge=>{ae.ai_guide_data.unanswered_msg=Ge.target.value,vt(Object.assign({},ae))}})),be.createElement("div",{className:"flex item-center gap-12px"},be.createElement("div",{className:"text-nowrap"},"\u8BC4\u6D4B\u5931\u8D25\u6B21\u6570\u8D85\u8FC7"),be.createElement(ve.default,{size:"large",style:{width:"133px"},value:(G=ae==null?void 0:ae.ai_guide_data)==null?void 0:G.evaluation_num,min:1,step:1,addonAfter:"\u6B21",onChange:Ge=>{ae.ai_guide_data.evaluation_num=Ge.target.value,vt(Object.assign({},ae))}})),be.createElement("div",{className:"flex gap-12px"},be.createElement("div",{className:"text-nowrap"},"\u63D0\u793A\u8BED"),be.createElement(ve.default.TextArea,{className:"flex-1 minW-0",showCount:!0,maxLength:300,value:(F=ae==null?void 0:ae.ai_guide_data)==null?void 0:F.evaluation_msg,onChange:Ge=>{ae.ai_guide_data.evaluation_msg=Ge.target.value,vt(Object.assign({},ae))}}))))),!Xe&&be.createElement(be.Fragment,null,be.createElement(k.ZP,{type:"primary",size:"large",loading:Oe,style:{width:"138px",marginTop:"30px"},onClick:()=>w()},"\u4FDD\u5B58")),Ue(),be.createElement(s.default,{centered:!0,open:Lt,title:"\u4EE3\u7801\u8BC4\u4EF7\u7EF4\u5EA6",width:800,zIndex:100,onOk:()=>Zn(void 0,null,function*(){ee||(Me.trim()?((yield(0,v.ZP)(`/api/homework_commons/${ue.categoryId}/shiyan_setting.json`,{method:"post",body:{ai_code_evaluation_promote:Me,type:"prompt"}})).status===0&&(i.ZP.success("\u4FDD\u5B58\u6210\u529F"),xe(),n({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:Rn({},ue)})),Ne(!1)):i.ZP.warning("\u8BF7\u586B\u5199\u4EE3\u7801\u8BC4\u4EF7\u7EF4\u5EA6"),ut(""))}),onCancel:()=>{ee||(Ne(!1),ze(Ze==null?void 0:Ze.ai_code_evaluation_promote),ut(""))},maskClosable:!1},be.createElement("div",{style:{color:"#333"}},be.createElement("div",null,"\u667A\u80FD\u52A9\u6559\u9ED8\u8BA4\u7684\u4EE3\u7801\u8BC4\u4EF7\u7EF4\u5EA6\u5982\u4E0B\uFF0C\u60A8\u53EF\u4EE5\u5728\u6B64\u57FA\u7840\u4E0A\u8FDB\u884C\u7F16\u8F91\uFF0C\u7F16\u8F91\u4E4B\u540E\u667A\u80FD\u52A9\u6559\u5C06\u6839\u636E\u60A8\u63D0\u4F9B\u7684\u8BC4\u4EF7\u7EF4\u5EA6\u5BF9\u5B66\u751F\u4EE3\u7801\u8FDB\u884C\u8BC4\u4EF7\u3002"),be.createElement(ve.default.TextArea,{value:Me,style:{borderRadius:"5px",margin:"10px 0"},rows:3,onChange:Ge=>ze(Ge.target.value)}),be.createElement("div",{style:{marginBottom:"10px"}},"\u4EE5\u4E0B\u4E3A\u4E00\u6BB5\u6D4B\u8BD5\u4EE3\u7801\u3002\u60A8\u53EF\u4F7F\u7528\u8BE5\u6BB5\u4EE3\u7801\u5BF9\u5DF2\u8BBE\u7F6E\u7684\u4EE3\u7801\u8BC4\u4EF7\u7EF4\u5EA6\u8FDB\u884C\u6D4B\u8BD5\uFF0C\u67E5\u770B\u8BC4\u4EF7\u6548\u679C\u3002"),be.createElement("div",{style:{padding:"12px 16px",background:"#F6F7F9"}},"# \u521D\u59CB\u5316\u7D2F\u52A0\u5668",be.createElement("br",null),"sum = 0",be.createElement("br",null),"# \u4F7F\u7528for\u5FAA\u73AF\u904D\u53861\u5230100",be.createElement("br",null),"for i in range(1, 101):",be.createElement("br",null),"sum += i # \u5C06\u5F53\u524D\u503C\u52A0\u5230sum\u4E2D",be.createElement("br",null),"# \u8F93\u51FA\u7ED3\u679C",be.createElement("br",null),'print("1\u5230100\u7684\u7D2F\u52A0\u548C\u4E3A:", sum)'),be.createElement("div",{className:Mt.Z.work_button,onClick:()=>{ee?i.ZP.warning("\u6B63\u5728\u751F\u6210\u8BC4\u8BBA\u4E2D\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002"):(Ct(Me),Pt())}},"\u6D4B\u8BD5\u8BC4\u4EF7\u6548\u679C"),bt&&be.createElement("div",{style:{width:"100%",height:"200px",overflowY:"auto",marginTop:"20px"}},be.createElement(_.Z,{value:bt,style:{fontSize:"14px"}})))))};var Ua=(0,o.connect)(({shixunHomeworks:t,classroomList:l,loading:n,user:$})=>({shixunHomeworks:t,classroomList:l,loading:n.effects,user:$}))(Ya),Lu={flex_box_center:"flex_box_center___F26vH",flex_space_between:"flex_space_between___J7N7g",flex_box_vertical_center:"flex_box_vertical_center___W4LLF",flex_box_center_end:"flex_box_center_end___ViUq3",flex_box_column:"flex_box_column___fhMvC",content:"content___gstD6",explain:"explain___gCVEb",tabs:"tabs___JAbVp",active:"active___O3Rxd",btns:"btns___bZYiw",must:"must___Ne3Rd",popover:"popover___MLGUB",zybzForm:"zybzForm___JaYlh",graaytitle:"graaytitle___vJ0cM",dataPicker:"dataPicker___qgWAA",examineStatus:"examineStatus___A8ldH",contacts:"contacts___yS8x4",contacts_img:"contacts_img___pPzVA",suc_status:"suc_status___hDmBK",fail_status:"fail_status___KeR0l",bohui:"bohui___cxmL1"},Ha=u(88522),Tn=u(29679),Bl=u(19248),jt=u(59301),Ka=Object.defineProperty,Ga=Object.defineProperties,Ja=Object.getOwnPropertyDescriptors,Ml=Object.getOwnPropertySymbols,Va=Object.prototype.hasOwnProperty,Xa=Object.prototype.propertyIsEnumerable,xl=(t,l,n)=>l in t?Ka(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,Sl=(t,l)=>{for(var n in l||(l={}))Va.call(l,n)&&xl(t,n,l[n]);if(Ml)for(var n of Ml(l))Xa.call(l,n)&&xl(t,n,l[n]);return t},Il=(t,l)=>Ga(t,Ja(l)),al=(t,l,n)=>new Promise(($,re)=>{var Y=F=>{try{G(n.next(F))}catch(ue){re(ue)}},ge=F=>{try{G(n.throw(F))}catch(ue){re(ue)}},G=F=>F.done?$(F.value):Promise.resolve(F.value).then(Y,ge);G((n=n.apply(t,l)).next())});const qa="YYYY-MM-DD HH:mm",_a=({user:t,shixunHomeworks:l,loading:n,dispatch:$})=>{const[re]=Le.default.useForm(),[Y,ge]=(0,e.useState)(null),[G,F]=(0,e.useState)([]),[ue,ft]=(0,e.useState)(""),[Ue,Ze]=(0,e.useState)(!1),[Xe,Ht]=(0,e.useState)(!1),Oe=(0,o.useParams)(),[ht,ae]=(0,e.useState)([]),[vt,Lt]=(0,e.useState)({}),Ne=(0,e.useRef)((0,ke.throttle)(xe=>ze(xe),1200,{leading:!0,trailing:!0})).current;(0,e.useEffect)(()=>{ze(),Me()},[]);const Me=()=>al(void 0,null,function*(){var xe,w,Ie,ee,tt,bt,ut,Jt,Pt,Ge,iu,Fu,Re,gt,qe,Vt;let At=yield(0,v.ZP)(`/api/homework_commons/${Oe.categoryId}/resources_ensure_info.json`,{method:"get"});re.setFieldsValue(Il(Sl({},(xe=At==null?void 0:At.data)==null?void 0:xe.important_shixun_configs),{times:(Ie=(w=At==null?void 0:At.data)==null?void 0:w.important_shixun_configs)!=null&&Ie.start_time&&((tt=(ee=At==null?void 0:At.data)==null?void 0:ee.important_shixun_configs)!=null&&tt.end_time)?[M()((ut=(bt=At==null?void 0:At.data)==null?void 0:bt.important_shixun_configs)==null?void 0:ut.start_time),M()((Pt=(Jt=At==null?void 0:At.data)==null?void 0:Jt.important_shixun_configs)==null?void 0:Pt.end_time)]:["",""],school_id:(iu=(Ge=At==null?void 0:At.data)==null?void 0:Ge.important_shixun_configs)==null?void 0:iu.school_name})),Lt((Fu=At==null?void 0:At.data)==null?void 0:Fu.important_shixun_configs),ft((gt=(Re=At==null?void 0:At.data)==null?void 0:Re.important_shixun_configs)==null?void 0:gt.verify_reason),ge(((Vt=(qe=At==null?void 0:At.data)==null?void 0:qe.important_shixun_configs)==null?void 0:Vt.process)||null)});(0,e.useEffect)(()=>{vt!=null&&vt.school_name&&ze(vt==null?void 0:vt.school_name)},[vt==null?void 0:vt.school_name]);const ze=xe=>al(void 0,null,function*(){var w;const Ie=yield $({type:"account/getSchoolOption",payload:{keyword:xe,limit:10}});F(Ie==null?void 0:Ie.schools),xe&&xe!=""&&ae((w=Ie==null?void 0:Ie.schools)==null?void 0:w.filter(ee=>ee.name.includes(xe)))}),Pe=xe=>parseInt(xe||"0",10),Ct=(xe,w)=>{if(w&&w.length===2){const[Ie,ee]=w;if(!Ie||!ee)return Promise.reject(new Error("\u8BF7\u9009\u62E9\u8D77\u59CB\u65F6\u95F4\u548C\u7ED3\u675F\u65F6\u95F4"))}return Promise.resolve()};return jt.createElement("section",{className:Lu.form},jt.createElement("div",{style:{padding:"30px 50px"}},jt.createElement(Le.default,{form:re,disabled:Ue,layout:"horizontal",onFinish:xe=>al(void 0,null,function*(){var w;console.log("---",xe);const Ie=(w=G.find(tt=>tt.name===(xe==null?void 0:xe.school_id)))==null?void 0:w.id;let ee=yield(0,v.ZP)(`/api/homework_commons/${Oe.categoryId}/resources_first_ensure.json`,{method:"post",body:{important_shixun_configs:Il(Sl({},xe),{start_time:M()(xe==null?void 0:xe.times[0]).format("YYYY-MM-DD HH:mm"),end_time:M()(xe==null?void 0:xe.times[1]).format("YYYY-MM-DD HH:mm"),school_id:Ie})}});(ee==null?void 0:ee.status)===0&&(i.ZP.info("\u4FEE\u6539\u6210\u529F"),Me())}),className:Lu.zybzForm},jt.createElement("div",{style:{display:"flex",alignItems:"center"}},jt.createElement("div",{style:{color:"#333333",fontSize:"14px",width:"120px",marginRight:"10px",textAlign:"right"}},jt.createElement("span",{className:Lu.must},"*"),"\u4FDD\u969C\u6807\u8BC6"),jt.createElement(Le.default.Item,{label:"",name:"identifier",style:{width:"100%"},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4FDD\u969C\u6807\u8BC6"}]},jt.createElement(ve.default,{size:"large",disabled:!0,minLength:4,maxLength:30,showCount:!0,placeholder:"\u8BF7\u8F93\u5165\u4FDD\u969C\u6807\u8BC6"}))),jt.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:"20px"}},jt.createElement("div",{style:{color:"#333333",fontSize:"14px",width:"120px",marginRight:"10px",textAlign:"right"}},jt.createElement("span",{className:Lu.must},"*"),"\u9700\u8981\u4FDD\u969C\u7684\u5355\u4F4D"),jt.createElement(Le.default.Item,{label:"",name:"school_id",style:{width:"100%"},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u9700\u8981\u4FDD\u969C\u7684\u5355\u4F4D"}]},jt.createElement(Ha.Z,{size:"large",showSearch:!0,showArrow:!0,placeholder:"\u8BF7\u9009\u62E9\u9700\u8981\u4FDD\u969C\u7684\u5355\u4F4D",onChange:Ne,options:ht==null?void 0:ht.map(xe=>({value:xe.name}))}))),jt.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:"20px"}},jt.createElement("div",{style:{color:"#333333",fontSize:"14px",width:"120px",marginRight:"10px",textAlign:"right"}},jt.createElement("span",{className:Lu.must},"*"),"\u4FDD\u969C\u65F6\u95F4"),jt.createElement(Le.default.Item,{label:"",name:"times",style:{width:"100%"},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4\u548C\u7ED3\u675F\u65F6\u95F4"},{validator:Ct}]},jt.createElement(dn.default.RangePicker,{disabledDate:xe=>xe&&xe{if(xe&&xe[0]&&xe[1]){const w=xe[0].isBefore(M()())?M()():xe[0];re.setFieldValue("times",[w,xe[1]])}else re.setFieldValue("times",xe)}}))),jt.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:"20px"}},jt.createElement("div",{style:{color:"#333333",fontSize:"14px",width:"120px",marginRight:"10px",textAlign:"right"}},jt.createElement("span",{className:Lu.must},"*"),"\u4FDD\u969C\u4EBA\u6570"),jt.createElement(Le.default.Item,{label:"",name:"people_number",style:{width:"100%"},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4FDD\u969C\u4EBA\u6570"}]},jt.createElement(Ye.Z,{size:"large",style:{width:"100%"},parser:Pe,placeholder:"\u8BF7\u8F93\u5165\u4FDD\u969C\u4EBA\u6570",min:1})))),jt.createElement("div",{className:`${Lu.examineStatus}`},Y>=1&&jt.createElement("div",null," ",jt.createElement(Tn.Z,{className:Lu.suc_status})," \u5B9E\u9A8C\u8D44\u6E90\u4F18\u5148\u4FDD\u969C\u7533\u8BF7\u6210\u529F\uFF0C\u5E73\u53F0\u7BA1\u7406\u5458\u5BA1\u6838\u4E2D"),Y>=2&&Y!=3&&jt.createElement("div",null," ",jt.createElement(Tn.Z,{className:Lu.suc_status})," \u5E73\u53F0\u7BA1\u7406\u5458\u5BA1\u6838\u901A\u8FC7\uFF0C\u7CFB\u7EDF\u8D44\u6E90\u5206\u914D\u4E2D"),Y==3&&jt.createElement("div",null," ",jt.createElement(Bl.Z,{className:Lu.fail_status}),"\u5E73\u53F0\u7BA1\u7406\u5458\u5BA1\u6838\u9A73\u56DE\uFF0C\u9A73\u56DE\u539F\u56E0: ( ",jt.createElement("span",{title:ue,className:Lu.bohui},ue),") \u5982\u6709\u95EE\u9898\u8BF7\u8054\u7CFB",jt.createElement("span",{className:Lu.contacts},jt.createElement("span",null,"\u5E73\u53F0\u8FD0\u8425\u4EBA\u5458")," ",jt.createElement("div",{className:Lu.contacts_img}))),Y>=4&&Y!=5&&Y!=7&&jt.createElement("div",null," ",jt.createElement(Tn.Z,{className:Lu.suc_status})," \u7CFB\u7EDF\u8D44\u6E90\u5206\u914D\u5B8C\u6210\uFF0C\u5B9E\u9A8C\u8D44\u6E90\u4FDD\u969C\u4E2D"),(Y==5||Y==7)&&jt.createElement("div",null," ",jt.createElement(Bl.Z,{className:Lu.fail_status}),"\u7CFB\u7EDF\u8D44\u6E90\u5206\u914D\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB",jt.createElement("span",{className:Lu.contacts},jt.createElement("span",null,"\u5E73\u53F0\u8FD0\u8425\u4EBA\u5458")," ",jt.createElement("div",{className:Lu.contacts_img}))),Y>5&&jt.createElement("div",null," ",jt.createElement(Tn.Z,{className:Lu.suc_status})," \u5B9E\u9A8C\u8D44\u6E90\u4FDD\u969C\u5DF2\u7ED3\u675F")),jt.createElement(k.ZP,{type:"primary",style:{width:"138px",marginTop:"30px"},size:"large",loading:Xe,onClick:()=>{re.submit()}},"\u4FDD\u5B58")))};var $a=(0,o.connect)(({shixunHomeworks:t,loading:l,user:n})=>({shixunHomeworks:t,loading:l.effects,user:n}))(_a),er=u(33441),mn=u(59301);const tr=({shixunHomeworks:t,loading:l,dispatch:n})=>{const[$]=(0,o.useSearchParams)(),re=[{key:"1",label:"\u53D1\u5E03\u8BBE\u7F6E",element:mn.createElement(ll.ZP,null)},{key:"6",label:"\u5B9E\u9A8C\u8BBE\u7F6E",element:mn.createElement(Ua,null)},{key:"2",label:"\u8BC4\u5206\u8BBE\u7F6E",element:mn.createElement(ka,null)},{key:"3",label:"\u5C55\u793A\u8BBE\u7F6E",element:mn.createElement(Ia,null)},{key:"4",label:"\u534F\u4F5C\u8BBE\u7F6E",element:mn.createElement(Za,null)},(0,z.Ny)()&&{key:"5",label:"\u5B9E\u9A8C\u8D44\u6E90\u4F18\u5148\u4FDD\u969C",element:mn.createElement($a,null)}].filter(Y=>!!Y);return(0,e.useEffect)(()=>(n({type:"globalSetting/footerToggle",payload:!1}),()=>{n({type:"globalSetting/footerToggle",payload:!0})}),[]),mn.createElement("div",{style:{paddingBottom:"50px"}},mn.createElement(er.Z,{dataSource:re,style:{marginBottom:52}}))};var ur=(0,o.connect)(({shixunHomeworks:t,loading:l})=>({shixunHomeworks:t,loading:l.effects}))(tr),nr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYQAAAGhCAYAAABh3MNWAAABQGlDQ1BJQ0MgUHJvZmlsZQAAKJFjYGASSCwoyGFhYGDIzSspCnJ3UoiIjFJgf8bAyCDKwMmgwMCfmFxc4BgQ4ANUwgCjUcG3a0DVQHBZF2RWbexduafcy0MCq/pLvssI6GCqRwFcKanFyUD6DxAnJRcUlTAwMCYA2crlJQUgdguQLVIEdBSQPQPEToew14DYSRD2AbCakCBnIPsKkC2QnJGYAmQ/AbJ1kpDE05HYUHtBgMPZyDzI1MCAgFNJByWpFSUg2jm/oLIoMz2jRMERGEKpCp55yXo6CkYGRkYMDKDwhqj+LAYOR0axUwixDqAfnEFuNkaIea1nYJh2ioFBKhQhpuzEwKD6mYFh+5KCxKJEuAMYv7EUpxkbQdg8RQwMrD/+//8sy8DAvouB4W/R//+/5/7//3cJAwPzTQaGA4UAR+xdSWtJcowAAAA4ZVhJZk1NACoAAAAIAAGHaQAEAAAAAQAAABoAAAAAAAKgAgAEAAAAAQAAAYSgAwAEAAAAAQAAAaEAAAAAwOFicgAAQABJREFUeAHsvWl3I0mWpmcAAQLc99gysioqs6qrqpeR+mjOkf6tzpH0E/Rh9E3qM5pudfdMT9fe1blFZsa+cF+xUO9zzc3hBEEGCYIgAF6LIMzN3Nzc7HX3+9q9tpVO5YI7R8ARcAQcgXuPQPneI+AAOAKOgCPgCBgCTgj+IjgCjoAj4AgYAk4I/iI4Ao6AI+AIGAJOCP4iOAKOgCPgCBgCTgj+IjgCjoAj4AgYAk4I/iI4Ao6AI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wvDggw+GlVZaKfTo0cPqeeaZZ8Kll14aZpxxRivDfcH4D0q4T3/55Re7d7iH+OMe4v753//+F7bddttBVaH0LoTAcF2orcNcU1FYruy22mora9/www9vRx5WFN3LL78cNtlkk3DJJZcYSXgn+vXrF1ZccUU/bTqS//LLL2+Ky5/MPvvsTQrsiCOOCE8++WRAEfMAt0dQsCgRyMvl999/DyijkUYaKay66qoeXXi87bbbTAHtsMMOLdLpf2sCEbqSo63HHXdcdu5lUOxbbrml1U+bll566bDKKqt4ctNx3XXXDSussEL47rvvArigtP7++++mPEUnbbWxKH9nxUG62223nVUHSWM4XHvtteHss8/OLoFiR+65557wyCOPWJiPUUcdNTz88MN2vtgY0tpOAAAPGklEQVRiixWO9bLLLmvxI4wwQiDMPUF99BcFj4HCvcs9Oddcc1ld11xzTbjrrrvMgABvynCPejssU+6De3/NNdcM4447bi5Fp10VARHCYIzcZZddZqXnn3/+TKkON1wN0v79+9usASv0xhtvDJtvvrkRxNRTT21lsNywisnnCtyt5LHHHjustdZaLVqGe+qWW26x+IkmmqgpHcXy5ZdfWhzKHMWB1Tz66KPbQ/7++++HeeaZJyyxxBJh4oknNgsaKxrrukhQBFjNbUlbyqKtcocffrglg9srr7xiSg/ycWudRGY/hx56aNh3333DaaedZhYq8WOOOWaYddZZCYZvv/02vPvuuxZGuUFkWMHDuqBAmR0xq2SmsMUWW5g1P80002RN//HHH208Gcs0nnMX7qUXX3zRT8Nqq61mJAqZbrbZZuHkk08OSy21VJZO4O677zYy4F5wMiD+gw8+MOOFcF7AfLzxxgvcl8yCJ5988uxInKQ6CIgQSo7lV199ZYqM4j47IIwiRrCyevbsGQ4++OAAKeC2mXDCCS2NjxFHHNEsvTvuuMPcBosvvng4/fTTs3Ss9wsuuMAUN2SCYPlCCDyguFqK5MQTTwwLL7xwUxKuiYMOOsjahEXngrWIJUhdtDUVFI+7atL4NIzb54cffkijrL4TTjihyUI/5JBDwmyzzWbW5BlnnGFKEPJDYT3xxBNhn332Cfvtt18g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51XggIASHQQECE0MBCISEgBIRAt0ZAhNCth1+dFwJCQAg0EBAhNLBQSAgIASHQrREQIXTr4VfnhYAQEAINBP4ffViVsiyE5ygAAAAASUVORK5CYII=",zn=u(42441);const lr=(t=[],l=[],n=[])=>(console.log("---",t,l,n),{tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:["\u7B49\u7EA7A","\u7B49\u7EA7B","\u7B49\u7EA7C","\u7B49\u7EA7D","\u7B49\u7EA7E"]}],yAxis:[{type:"value"}],series:[{name:"\u7F3A\u9677",type:"bar",stack:"Ad",color:["#5c9ef7"],emphasis:{focus:"series"},data:n},{name:"\u6F0F\u6D1E",type:"bar",stack:"Ad",color:["#75c87c"],emphasis:{focus:"series"},data:l},{name:"\u4EE3\u7801\u89C4\u8303\u6027",type:"bar",stack:"Ad",color:["#f3d460"],emphasis:{focus:"series"},data:t}]}),ar=(t=[])=>({dataset:[{source:t}],tooltip:{show:!0,formatter:function(l){return l.value[2]+":"+l.value[1]+"\u5206"}},xAxis:{splitLine:{lineStyle:{type:"dashed"}},show:!1},yAxis:{splitLine:{lineStyle:{type:"dashed"}}},series:[{name:"scatter",type:"scatter",datasetIndex:0},{name:"line",type:"line",smooth:!0,datasetIndex:1,symbolSize:.1,symbol:"circle",label:{show:!0,fontSize:16},labelLayout:{dx:-20},encode:{label:2,tooltip:1}}]});var rr=Object.defineProperty,wl=Object.getOwnPropertySymbols,or=Object.prototype.hasOwnProperty,sr=Object.prototype.propertyIsEnumerable,jl=(t,l,n)=>l in t?rr(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,Qn=(t,l)=>{for(var n in l||(l={}))or.call(l,n)&&jl(t,n,l[n]);if(wl)for(var n of wl(l))sr.call(l,n)&&jl(t,n,l[n]);return t},rl=(t,l,n)=>new Promise(($,re)=>{var Y=F=>{try{G(n.next(F))}catch(ue){re(ue)}},ge=F=>{try{G(n.throw(F))}catch(ue){re(ue)}},G=F=>F.done?$(F.value):Promise.resolve(F.value).then(Y,ge);G((n=n.apply(t,l)).next())});const ir=({shixunHomeworks:t,loading:l,dispatch:n})=>{var $,re,Y,ge;const G=(0,o.useParams)(),[F,ue]=(0,e.useState)(Qn(Qn({},{sort_by:"student_id",sort_direction:"desc"}),G)),[ft,Ue]=(0,e.useState)(),[Ze,Xe]=(0,e.useState)([]);let Ht=(0,e.useRef)();const[Oe,ht]=(0,e.useState)(1),[ae,vt]=(0,e.useState)(!1),[Lt,Ne]=(0,e.useState)(10),[Me,ze]=(0,e.useState)([]);(0,e.useEffect)(()=>{Ct()},[]);const Pe=[{title:"\u5B66\u53F7",dataIndex:"student_number",sorter:!0,showSorterTooltip:!1,sortOrder:F.sort_by==="student_number"?F.sort_direction==="desc"?"descend":"ascend":null},{title:"\u5206\u73ED",dataIndex:"group_course_name"},{title:"\u59D3\u540D",dataIndex:"user_name"},{title:"\u7F3A\u9677",children:[{title:"\u963B\u65AD",dataIndex:"bug",render:w=>e.createElement("span",{className:"current"},w==null?void 0:w.blocker)},{title:"\u4E25\u91CD",dataIndex:"bug",render:w=>e.createElement("span",{className:"current"},w==null?void 0:w.critical)},{title:"\u4E3B\u8981",dataIndex:"bug",render:w=>e.createElement("span",{className:"current"},w==null?void 0:w.major)},{title:"\u6B21\u8981",dataIndex:"bug",render:w=>e.createElement("span",{className:"current"},w==null?void 0:w.minor)},{title:"\u7B49\u7EA7",dataIndex:"bug",sorter:!1,showSorterTooltip:!1,sortOrder:F.sort_by==="bug"?F.sort_direction==="desc"?"descend":"ascend":null,render:w=>e.createElement("span",{className:"current"},w==null?void 0:w.grade)}]},{title:"\u6F0F\u6D1E",children:[{title:"\u963B\u65AD",dataIndex:"vulnerability",render:w=>e.createElement("span",{className:"current"},w==null?void 0:w.blocker)},{title:"\u4E25\u91CD",dataIndex:"vulnerability",render:w=>e.createElement("span",{className:"current"},w==null?void 0:w.critical)},{title:"\u4E3B\u8981",dataIndex:"vulnerability",render:w=>e.createElement("span",{className:"current"},w==null?void 0:w.major)},{title:"\u6B21\u8981",dataIndex:"vulnerability",render:w=>e.createElement("span",{className:"current"},w==null?void 0:w.minor)},{title:"\u7B49\u7EA7",dataIndex:"vulnerability",sorter:!1,showSorterTooltip:!1,sortOrder:F.sort_by==="vulnerability"?F.sort_direction==="desc"?"descend":"ascend":null,render:w=>e.createElement("span",{className:"current"},w==null?void 0:w.grade)}]},{title:"\u4EE3\u7801\u89C4\u8303\u6027",children:[{title:"\u963B\u65AD",dataIndex:"specification",render:w=>e.createElement("span",{className:"current"},w==null?void 0:w.blocker)},{title:"\u4E25\u91CD",dataIndex:"specification",render:w=>e.createElement("span",{className:"current"},w==null?void 0:w.critical)},{title:"\u4E3B\u8981",dataIndex:"specification",render:w=>e.createElement("span",{className:"current"},w==null?void 0:w.major)},{title:"\u6B21\u8981",dataIndex:"specification",render:w=>e.createElement("span",{className:"current"},w==null?void 0:w.minor)},{title:"\u7B49\u7EA7",dataIndex:"specification",sorter:!1,showSorterTooltip:!1,sortOrder:F.sort_by==="specification"?F.sort_direction==="desc"?"descend":"ascend":null,render:w=>e.createElement("span",{className:"current"},w==null?void 0:w.grade)}]},{title:"\u590D\u6742\u4EE3\u7801",dataIndex:"complexity",sorter:!0,showSorterTooltip:!1,sortOrder:F.sort_by==="complexity"?F.sort_direction==="desc"?"descend":"ascend":null},{title:"\u4EE3\u7801\u884C\u6570",dataIndex:"total_row_number",sorter:!0,showSorterTooltip:!1,sortOrder:F.sort_by==="total_row_number"?F.sort_direction==="desc"?"descend":"ascend":null},{title:"\u8D28\u91CF\u8BC4\u5206",dataIndex:"quality_score",sorter:!0,showSorterTooltip:!1,sortOrder:F.sort_by==="quality_score"?F.sort_direction==="desc"?"descend":"ascend":null},{title:"\u64CD\u4F5C",dataIndex:"action",align:"center",render:(w,Ie)=>e.createElement("a",{target:"_blank",href:`/classrooms/${G.coursesId}/shixun_homework/${G.categoryId}/analysis/${Ie.id}`,className:"current c-light-primary"},"\u8BE6\u7EC6\u5206\u6790")}];(0,e.useEffect)(()=>(ft===2&&(Ht.current=setInterval(()=>{Ct()},6e4)),()=>{clearTimeout(Ht.current)}),[ft]);function Ct(){return rl(this,null,function*(){const w=yield(0,v.ZP)(`/api/homework_commons/${F.categoryId}/code_quality_analyses/check_status.json`,{method:"GET"});Ue(w.status),w.status!=2&&w.status!=-1&&(xe({page:1,limit:10}),clearTimeout(Ht.current))})}function xe(w){return rl(this,null,function*(){ht(w==null?void 0:w.page),Ne(w==null?void 0:w.limit);const Ie=yield(0,v.ZP)(`/api/homework_commons/${F.categoryId}/code_quality_analyses.json`,{method:"GET",params:Qn({},w)});Xe(Ie)})}return console.log("-------",ft),e.createElement("section",{style:{paddingBottom:"10px"},className:"minH500 bg-white pl30 pr30 pt10"},(ft===0||ft===1)&&e.createElement("div",null,e.createElement("p",{style:{display:"flex"}},e.createElement("span",{style:{flex:"1"}},e.createElement("label",null,"\u68C0\u6D4B\u65F6\u95F4\uFF1A",Ze==null?void 0:Ze.created_at)),e.createElement(k.ZP,{onClick:()=>{n({type:"shixunHomeworks/setActionTabs",payload:{key:"\u8D28\u91CF\u68C0\u6D4B"}})}},"\u91CD\u65B0\u68C0\u6D4B")),e.createElement("p",{style:{display:"flex"}},e.createElement(ye.Z,{style:{width:"100%"}},e.createElement(x.Z,{flex:"80px"},e.createElement("label",null,"\u5206\u73ED\u60C5\u51B5:")),e.createElement(x.Z,{flex:"80px"},e.createElement(g.default,{checked:(Me==null?void 0:Me.length)===0,onChange:w=>{w.target.checked&&(ze([]),xe({page:Oe,limit:Lt}))},style:{fontSize:"14px"},value:"all"},"\u5168\u90E8")),e.createElement(x.Z,{flex:"1"},e.createElement(g.default.Group,{value:Me,onChange:w=>rl(void 0,null,function*(){ze([...w]),xe({page:Oe,limit:Lt,group_course_ids:w})}),style:{width:"100%",fontSize:"14px"}},($=Ze==null?void 0:Ze.course_groups)==null?void 0:$.map((w,Ie)=>e.createElement(g.default,{style:{fontSize:"14px"},value:w==null?void 0:w.id},w==null?void 0:w.name,"(",w==null?void 0:w.count,")")))))),e.createElement("p",{style:{display:"flex"}},e.createElement("span",null,e.createElement("label",{style:{color:"red"}},"\u6CE8\u610F\uFF1A")),"\u672C\u9875\u4EC5\u663E\u793A\u5168\u90E8\u5DF2\u5B8C\u6210\u68C0\u6D4B\u7684\u5206\u73ED"),e.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},e.createElement("div",null,e.createElement("p",{style:{marginLeft:"20px",fontSize:"20px",fontWeight:500}},"\u4EE3\u7801\u7B49\u7EA7\u5206\u6790"),(Ze==null?void 0:Ze.grade_statistics)&&e.createElement(zn.Z,{option:lr((re=Ze==null?void 0:Ze.grade_statistics)==null?void 0:re.map(w=>w.specification_count),(Y=Ze==null?void 0:Ze.grade_statistics)==null?void 0:Y.map(w=>w.vulnerability_count),(ge=Ze==null?void 0:Ze.grade_statistics)==null?void 0:ge.map(w=>w.bug_count)),style:{height:400,width:600},opts:{renderer:"svg"}})),e.createElement("div",null,e.createElement("p",{style:{marginLeft:"20px",fontSize:"20px",fontWeight:500}},"\u4EE3\u7801\u8D28\u91CF\u5206\u5E03"),(Ze==null?void 0:Ze.quality_scores)&&e.createElement(zn.Z,{option:ar(Ze==null?void 0:Ze.quality_scores.map((w,Ie)=>[Ie+1,w==null?void 0:w.quality_score,w==null?void 0:w.user_name])),style:{height:400,width:600},opts:{renderer:"svg"}}))),e.createElement("div",null,e.createElement("div",{style:{display:"flex"}},e.createElement("p",{style:{marginLeft:"20px",fontSize:"20px",fontWeight:500,flex:"1"}},"\u8BE6\u7EC6\u5217\u8868"),e.createElement(ve.default.Search,{size:"middle",onSearch:w=>{xe({page:1,limit:Lt,search:w})},style:{width:"300px"},enterButton:"\u641C\u7D22"})),e.createElement(P.default,{columns:Pe,dataSource:Ze==null?void 0:Ze.analysis,bordered:!0,scroll:{x:"calc(800px + 50%)"},pagination:!1,onChange:(w,Ie,ee)=>{ee.field&&(F.sort_by=ee.field),ee.order||(F.sort_direction="asc"),ee.order==="ascend"&&(F.sort_direction="asc"),ee.order==="descend"&&(F.sort_direction="desc"),ee.order||(F.sort_direction="asc"),xe(Qn({page:1,limit:Lt},F))}}),e.createElement(De.Z,{current:Oe,total:Ze==null?void 0:Ze.total_count,pageSizeOptions:["10","20","50","100","200"],pageSize:Lt,style:{textAlign:"center",marginTop:"20px",marginBottom:"20px"},onChange:(w,Ie)=>{ht(w),Ne(Ie),xe({page:w,limit:Ie,group_course_ids:Me})}}))),ft===2&&e.createElement("div",{style:{textAlign:"center",margin:"100px 0px",paddingBottom:"100px"}},e.createElement("img",{src:nr}),e.createElement("br",null),e.createElement(k.ZP,{type:"primary",style:{width:"120px",height:"40px"},onClick:()=>{Ct()}},"\u5237\u65B0\u9875\u9762")),e.createElement(Bt,null),e.createElement(s.default,{centered:!0,width:1200,title:"\u8BE6\u7EC6\u5206\u6790",destroyOnClose:!0,open:!!ae,footer:null,onCancel:()=>vt(!1)},e.createElement("div",{style:{height:500,overflow:"hidden"}},!!ae&&e.createElement("iframe",{style:{height:"100%",width:"100%"},src:`https://sonar.educoder.net/project/issues?id=${G==null?void 0:G.categoryId}-${ae==null?void 0:ae.student_number}&resolved=false`,frameBorder:"0"}))))};var cr=(0,o.connect)(({shixunHomeworks:t,loading:l})=>({shixunHomeworks:t,loading:l.effects}))(ir),dr=u(26724),mr=u.n(dr),Ru=u(59301),Er=Object.defineProperty,pr=Object.defineProperties,fr=Object.getOwnPropertyDescriptors,Nl=Object.getOwnPropertySymbols,gr=Object.prototype.hasOwnProperty,vr=Object.prototype.propertyIsEnumerable,Ll=(t,l,n)=>l in t?Er(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,bl=(t,l)=>{for(var n in l||(l={}))gr.call(l,n)&&Ll(t,n,l[n]);if(Nl)for(var n of Nl(l))vr.call(l,n)&&Ll(t,n,l[n]);return t},Fr=(t,l)=>pr(t,fr(l)),Ol=(t,l,n)=>new Promise(($,re)=>{var Y=F=>{try{G(n.next(F))}catch(ue){re(ue)}},ge=F=>{try{G(n.throw(F))}catch(ue){re(ue)}},G=F=>F.done?$(F.value):Promise.resolve(F.value).then(Y,ge);G((n=n.apply(t,l)).next())});const Ar=({shixunHomeworks:t,loading:l,dispatch:n})=>{const $=(0,o.useParams)(),re=(0,o.useLocation)(),[Y,ge]=(0,e.useState)([]),[G,F]=(0,e.useState)([]),[ue,ft]=(0,e.useState)(!0),[Ue,Ze]=(0,e.useState)(!1),[Xe,Ht]=(0,e.useState)(1),[Oe,ht]=(0,e.useState)([]),[ae,vt]=(0,e.useState)(!1),[Lt,Ne]=(0,e.useState)(!1),[Me,ze]=(0,e.useState)(!1),[Pe,Ct]=(0,e.useState)("");(0,e.useEffect)(()=>{t.actionTabs.key==="\u4EE3\u7801\u67E5\u91CD"?(xe.resetFields(),ge([]),vt(!0),Ie()):vt(!1)},[t.actionTabs.key]);const[xe]=Le.default.useForm();let w=[];const Ie=()=>Ol(void 0,null,function*(){var bt;if(ue&&!Ue){Ze(!0),Ht(Xe+1);const ut=yield(0,S.JG)(Fr(bl({},$),{page:Xe}));Ct(ut.repeat_setting_score);const Jt=[...ut.group_list];ut!=null&&ut.ungroup_list&&Jt.push({id:ut==null?void 0:ut.ungroup_list.id,name:ut==null?void 0:ut.ungroup_list.name,works_count:ut==null?void 0:ut.ungroup_list.work_count,last_review_time:ut==null?void 0:ut.ungroup_list.last_review_time}),ge([...Y,...Jt]),Ze(!1),((bt=ut.group_list)==null?void 0:bt.length)<10&&ft(!1)}}),ee=()=>{n({type:"shixunHomeworks/setActionTabs",payload:{}}),Ne(!1),ft(!0),Ze(!1),Ht(1),ge([]),xe.resetFields()},tt=[{title:"",dataIndex:"id",width:280,render:(bt,ut)=>Ru.createElement(g.default,{disabled:!(ut.works_count>1),value:String(ut.id)},ut.name)},{title:"\u6709\u6548\u4F5C\u54C1\u6570",dataIndex:"works_count"},{title:"\u4E0A\u6B21\u67E5\u91CD\u65F6\u95F4",dataIndex:"last_review_time",width:130}];return Ru.createElement(s.default,{centered:!0,title:"\u4EE3\u7801\u67E5\u91CD",keyboard:!1,maskClosable:!1,open:ae,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",width:820,bodyStyle:{minHeight:200},onOk:()=>Ol(void 0,null,function*(){const bt=xe.getFieldValue();if(bt.group_ids.length){ze(!0);const ut=yield(0,v.ZP)(`/api/homework_commons/${$.categoryId}/homework_code_repeat.json`,{method:"post",body:{group_ids:[...bt.group_ids]}});ze(!1),ut.status===0&&(ee(),yield n({type:"shixunHomeworks/getShixunWorkList",payload:t.actionTabs.params}),window.location.href=`/classrooms/${$.coursesId}/shixun_homework/${$.categoryId}/detail?tabs=2`,n({type:"shixunHomeworks/setActionTabs",payload:{key:"\u6267\u884C\u4EE3\u7801\u67E5\u91CD"}}))}}),okButtonProps:{loading:Me},onCancel:ee},Ru.createElement("div",{style:{color:"gray"}},"\u5F53\u524D\u4EE3\u7801\u67E5\u91CD\u5206\u6570\u6263\u5206\u4E3A",Ru.createElement("span",{style:{color:"green"}},Pe),"\u5206,\u5982\u9700\u8C03\u6574\u8BF7\u5728\u201C",Ru.createElement("a",{href:`/classrooms/${$.coursesId}/shixun_homework/${$.categoryId}/detail?tabs=3&score=2`},"\u8BBE\u7F6E-\u8BC4\u5206\u8BBE\u7F6E"),"\u201D\u4E2D\u8FDB\u884C\u7F16\u8F91"),Ru.createElement("div",null,"\u8BF7\u6CE8\u610F\uFF1A\u5728\u6267\u884C\u4EE3\u7801\u67E5\u91CD\u64CD\u4F5C\u540E\uFF0C\u82E5\u5B66\u751F\u63D0\u4EA4\u65B0\u7684\u4F5C\u54C1\u4EE3\u7801\uFF0C\u65B0\u4F5C\u54C1\u4EE3\u7801\u4E0D\u8BA1\u5165\u672C\u6B21\u67E5\u91CD\u7ED3\u679C\u3002"),t.codeReviewCourse&&Ru.createElement(Le.default,{form:xe,onChange:bt=>{ht(bl({},xe.getFieldValue()))},initialValues:{group_ids:w,end_time:M()(M()().add(7,"days").format("YYYY-MM-DD HH:mm"))}},Ru.createElement("div",{className:"flexd-table-header mt20"},Ru.createElement(P.default,{pagination:!1,dataSource:[],columns:tt})),Ru.createElement(Le.default.Item,{name:"group_ids"},Ru.createElement(g.default.Group,{className:"w100"},Ru.createElement("div",{style:{width:"100%",maxHeight:260,overflow:"auto"}},Ru.createElement(mr(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:bt=>{Ie()},hasMore:ue,useWindow:!1},Ru.createElement(P.default,{loading:l.effects["shixunHomeworks/getCodeReviewCourse"],showHeader:!1,columns:tt,dataSource:Y,pagination:!1})))))),Ru.createElement(ye.Z,null,Ru.createElement(x.Z,{className:"ml10"},Ru.createElement(g.default,{checked:Lt,onChange:bt=>{Ne(bt.target.checked);let ut=[];bt.target.checked&&(ut=Y.filter(Jt=>Jt.works_count>1).map(Jt=>Jt.id+"")),xe.setFieldsValue({group_ids:ut})}},"\u5168\u9009"))))};var yr=(0,o.connect)(({shixunHomeworks:t,loading:l})=>({shixunHomeworks:t,loading:l}))(Ar),hr=u(12393),Cr=u(43473),Wn={flex_box_center:"flex_box_center___ifw7q",flex_space_between:"flex_space_between___XbpkU",flex_box_vertical_center:"flex_box_vertical_center___TqfOZ",flex_box_center_end:"flex_box_center_end___DaT_4",flex_box_column:"flex_box_column___hy0Nl",title:"title___iYOvG",menuTabs:"menuTabs___qIcvV",rightMenu:"rightMenu___pcK7x",shixunDetail:"shixunDetail___h414d",workListTabWrap:"workListTabWrap___BPpdb",workListTabButton:"workListTabButton___QdhmD"},ol=u(49692),Dr=u(33118),Br=u(82693),Mr=u(7621),xr=u(25060),Sr=u(62551),uu={saixuan:"saixuan___qXS0F",jianyi:"jianyi___JlBHC",jianyi_title:"jianyi_title___gvcLT",title_left:"title_left___JoKhN",title_right:"title_right___rkDjV",yijian:"yijian___VqHXI",zonglan_list:"zonglan_list___ecRe2",zonglan_item:"zonglan_item___rJaLw",item_top:"item_top___TlDBu",top_img:"top_img___Gi7uf",top_name:"top_name___iofiQ",item_bottom:"item_bottom___ELdu1",fenxi_list:"fenxi_list___rX810",fenxi_item:"fenxi_item___oJg7N",leixing:"leixing___UELfH",pingjia:"pingjia___L46t2",tubiao:"tubiao___u74Jl",tb_title:"tb_title___MgUmJ",pie_style:"pie_style____KIye",line:"line___ixwri",bar_style:"bar_style___TI7vj",inputBox:"inputBox___vG7Zf"},Ir=Object.defineProperty,Pl=Object.getOwnPropertySymbols,wr=Object.prototype.hasOwnProperty,jr=Object.prototype.propertyIsEnumerable,kl=(t,l,n)=>l in t?Ir(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,Nr=(t,l)=>{for(var n in l||(l={}))wr.call(l,n)&&kl(t,n,l[n]);if(Pl)for(var n of Pl(l))jr.call(l,n)&&kl(t,n,l[n]);return t};const ns=t=>React.createElement("svg",Nr({width:16,height:15,xmlns:"http://www.w3.org/2000/svg"},t),React.createElement("title",null,"AI\u8F85\u5BFC"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("path",{d:"M7.272 10.426c0-1.849 1.102-3.439 2.683-4.152.159-.23.218-.507.247-.778a.713.713 0 0 0-.285-.644c.257-.798.435-1.64.344-2.478-.054-.497-.242-1.008-.644-1.354C9.34.78 8.97.656 8.603.604A1.063 1.063 0 0 0 8.26.287C7.882.069 7.424.014 6.987.005c-.772.01-1.585.133-2.222.568a2.223 2.223 0 0 0-.74.838c-.208.404-.296.856-.316 1.301-.032.722.105 1.439.291 2.138a.707.707 0 0 0-.288.606c.016.228.064.46.16.67.087.193.256.37.484.405.059.398.228.77.404 1.136.221.463.6.64.805.686v.696c-.16.423-3.238 1.295-4.075 1.781-.364.22-.71.477-.965.805-.323.413-.487 1.718-.525 2.255v.03h8.905a4.544 4.544 0 0 1-1.633-3.494Z",fill:"#75E7FF",fillRule:"nonzero"}),React.createElement("circle",{fill:"#145DFF",cx:11.492,cy:10.254,r:4.508}),React.createElement("path",{d:"m9.516 12.464.398-1.108h1.83l.397 1.108h.765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DQuNTQ0IDAgMCAxLTEuNjMzLTMuNDk0WiIgZmlsbD0iIzc1RTdGRiIgZmlsbC1ydWxlPSJub256ZXJvIi8+PGNpcmNsZSBmaWxsPSIjMTQ1REZGIiBjeD0iMTEuNDkyIiBjeT0iMTAuMjU0IiByPSI0LjUwOCIvPjxwYXRoIGQ9Im05LjUxNiAxMi40NjQuMzk4LTEuMTA4aDEuODNsLjM5NyAxLjEwOGguNzY1bC0xLjY3LTQuNDJoLS44MTRsLTEuNjcgNC40MmguNzY0Wm0xLjk3Ni0xLjY4aC0xLjQxNWwuNjk4LTEuOTQ0aC4wMjVsLjY5MiAxLjk0NVptMi41NjMgMS42OHYtNC40MmgtLjcwN3Y0LjQyaC43MDdaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+",br=Object.defineProperty,Rl=Object.getOwnPropertySymbols,Or=Object.prototype.hasOwnProperty,Pr=Object.prototype.propertyIsEnumerable,Zl=(t,l,n)=>l in t?br(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,kr=(t,l)=>{for(var n in l||(l={}))Or.call(l,n)&&Zl(t,n,l[n]);if(Rl)for(var n of Rl(l))Pr.call(l,n)&&Zl(t,n,l[n]);return t};const ls=t=>React.createElement("svg",kr({width:16,height:16,xmlns:"http://www.w3.org/2000/svg"},t),React.createElement("title",null,"\u7F16\u7EC4"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M8 5.12c3.84 0 6.96 2.4 6.96 5.44C14.96 13.6 11.84 16 8 16c-3.84-.08-6.96-2.4-6.96-5.44 0-3.04 3.12-5.44 6.96-5.44Z",fill:"#DBDCFF"}),React.createElement("path",{d:"M10.08 14.8c1.84-.16 2.48-2.24 2.56-4.16 0-2-2-2.72-4.56-2.72-2.56 0-4.56.72-4.56 2.72 0 1.76.56 3.76 2.24 4.08.48.08 4.08.16 4.32.08Z",fill:"#111ACC"}),React.createElement("path",{d:"M6.32 10.72c.24 0 .4.16.4.4v.96c0 .24-.16.4-.4.4-.24 0-.4-.16-.4-.4v-.96c-.08-.16.16-.4.4-.4Zm3.44 0c.24 0 .4.16.4.4v.96c0 .24-.16.4-.4.4-.24 0-.4-.16-.4-.4v-.96c0-.16.16-.4.4-.4Z",fill:"#FFF"}),React.createElement("path",{d:"M14.32 8.24c.88 0 1.68 1.12 1.68 2.4 0 1.36-.96 2.4-1.84 2.4 0 0 .8-1.2.8-2.48s-.64-2.32-.64-2.32Zm-12.64.08-.08.08c-.16.32-.56 1.2-.56 2.16 0 1.2.56 2.16.8 2.48C.96 13.04 0 12 0 10.64c0-1.28.8-2.32 1.68-2.32Z",fill:"#8187FF"}),React.createElement("path",{d:"M8 0c.32 0 .48.24.48.48v3.44c0 .32-.24.48-.48.48s-.48-.16-.48-.48V.48C7.52.24 7.76 0 8 0Z",fill:"#701CDC"}),React.createElement("path",{d:"M6 .72c.32 0 .48.24.48.48v2.08c0 .32-.24.48-.48.48s-.56-.24-.56-.48V1.2c0-.32.24-.48.56-.48Z",fill:"#371CDC"}),React.createElement("path",{d:"M10.08.72c.32 0 .48.24.48.48v2.08c0 .32-.24.48-.48.48s-.48-.24-.48-.48V1.2c0-.32.24-.48.48-.48Z",fill:"#AB2FF0"}),React.createElement("path",{d:"M3.92 1.36c.32 0 .48.24.48.48v.72c0 .32-.24.48-.48.48s-.56-.16-.56-.48v-.64c0-.32.24-.56.56-.56Z",fill:"#6D57F2"}),React.createElement("path",{d:"M12.16 1.36c.32 0 .48.24.48.48v.72c0 .32-.24.48-.48.48s-.48-.24-.48-.48v-.64c0-.32.24-.56.48-.56Z",fill:"#C86FFA"})));var Rr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNOCA1LjEyYzMu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tLjE2LS40OC0uNDhWLjQ4QzcuNTIuMjQgNy43NiAwIDggMFoiIGZpbGw9IiM3MDFDREMiLz48cGF0aCBkPSJNNiAuNzJjLjMyIDAgLjQ4LjI0LjQ4LjQ4djIuMDhjMCAuMzItLjI0LjQ4LS40OC40OHMtLjU2LS4yNC0uNTYtLjQ4VjEuMmMwLS4zMi4yNC0uNDguNTYtLjQ4WiIgZmlsbD0iIzM3MUNEQyIvPjxwYXRoIGQ9Ik0xMC4wOC43MmMuMzIgMCAuNDguMjQuNDguNDh2Mi4wOGMwIC4zMi0uMjQuNDgtLjQ4LjQ4cy0uNDgtLjI0LS40OC0uNDhWMS4yYzAtLjMyLjI0LS40OC40OC0uNDhaIiBmaWxsPSIjQUIyRkYwIi8+PHBhdGggZD0iTTMuOTIgMS4zNmMuMzIgMCAuNDguMjQuNDguNDh2LjcyYzAgLjMyLS4yNC40OC0uNDguNDhzLS41Ni0uMTYtLjU2LS40OHYtLjY0YzAtLjMyLjI0LS41Ni41Ni0uNTZaIiBmaWxsPSIjNkQ1N0YyIi8+PHBhdGggZD0iTTEyLjE2IDEuMzZjLjMyIDAgLjQ4LjI0LjQ4LjQ4di43MmMwIC4zMi0uMjQuNDgtLjQ4LjQ4cy0uNDgtLjI0LS40OC0uNDh2LS42NGMwLS4zMi4yNC0uNTYuNDgtLjU2WiIgZmlsbD0iI0M4NkZGQSIvPjwvZz48L3N2Zz4=",Zr=Object.defineProperty,Tl=Object.getOwnPropertySymbols,Tr=Object.prototype.hasOwnProperty,zr=Object.prototype.propertyIsEnumerable,zl=(t,l,n)=>l in t?Zr(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,Qr=(t,l)=>{for(var n in l||(l={}))Tr.call(l,n)&&zl(t,n,l[n]);if(Tl)for(var n of Tl(l))zr.call(l,n)&&zl(t,n,l[n]);return t};const as=t=>React.createElement("svg",Qr({width:16,height:16,xmlns:"http://www.w3.org/2000/svg"},t),React.createElement("title",null,"\u4EE3\u7801\u8BC4\u4EF7"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M15.88 2.91H.012V.374C.011.3.084.156.084.084.156.084.3.01.374.01h15.145c.072 0 .217.073.29.073.072.072.072.145.072.29V2.91Z",fill:"#FFC80F"}),React.createElement("path",{d:"M9.432 2.078c-.218 0-.363-.16-.435-.32 0-.08-.073-.161-.073-.241 0-.16.073-.24.145-.401.145-.24.508-.16.652 0 .073.08.145.24.145.4 0 .161-.072.241-.145.402-.072.08-.217.16-.29.16Zm1.884-.561c0-.16.072-.24.145-.401.072-.16.217-.16.362-.16.29 0 .507.24.507.56 0 .161-.072.241-.145.402a.527.527 0 0 1-.362.16c-.29 0-.507-.24-.507-.561Zm2.97.561a.527.527 0 0 1-.362-.16.67.67 0 0 1-.145-.642c0-.08.073-.16.073-.16a.385.385 0 0 1 .652 0c.073.08.145.24.145.4 0 .161-.072.241-.145.402 0 .08-.145.16-.217.16",fill:"#FFF"}),React.createElement("path",{d:"M1.46 15.953h12.972c.797 0 1.449-.652 1.449-1.449V2.91H.01v11.594c0 .797.652 1.45 1.45 1.45Z",fill:"#FFE6CC"}),React.createElement("path",{d:"m3.562 3.924.58 1.305 1.304.217-.87.942.218 1.377-1.232-.652-1.232.652.218-1.377-.87-1.014 1.304-.218.58-1.232Zm4.855 0 .58 1.305 1.304.217-.87.942.218 1.377-1.232-.652-1.16.652.218-1.377-1.014-1.014 1.304-.218.652-1.232Z",fill:"#FFB465"}),React.createElement("path",{d:"M8.924 9.577H6.823c-.073 0-.073 0-.145-.073-.072-.072 0-.072 0-.145 0-.072.072-.145.145-.145h2.101c.073 0 .073 0 .145.073 0 0 .073.072.073.145-.073.072-.145.145-.218.145Zm-2.97 0h-3.19c-.072 0-.072 0-.144-.073-.072-.072 0-.072 0-.145 0-.072.072-.145.145-.145H5.88c.072 0 .072 0 .145.073.072.072.072.072.072.145a.156.156 0 0 1-.145.145Zm7.173 1.086h-1.811c-.073 0-.073 0-.145-.072-.073-.072-.073-.072-.073-.145 0-.072.073-.145.145-.145h1.812c.072 0 .072 0 .145.073 0 0 .072.072.072.145a.156.156 0 0 1-.145.144Zm-2.68 0H8.271c-.072 0-.072 0-.145-.072-.072-.072-.072-.072-.072-.145 0-.072.072-.145.145-.145h2.174c.072 0 .072 0 .145.073 0 0 .072.072.072.145a.156.156 0 0 1-.145.144Zm-3.117 0H4.794c-.073 0-.073 0-.145-.072 0 0-.072-.072-.072-.145 0-.072.072-.145.144-.145h2.537c.072 0 .072 0 .145.073 0 0 .072.072.072.145.073.072 0 .144-.145.144Zm-3.84 0h-.725c-.073 0-.073 0-.145-.072 0 0-.072-.072-.072-.145 0-.072.072-.145.144-.145h.653c.072 0 .072 0 .145.073 0 0 .072.072.072.145.073.072 0 .144-.072.144Zm8.043 1.16H9.36c-.072 0-.072 0-.145-.073 0 0-.072-.072-.072-.144 0-.073.072-.145.145-.145h2.174c.072 0 .072 0 .145.072 0 0 .072.073.072.145.072.072-.072.145-.145.145Zm-3.043 0H4.794c-.073 0-.073 0-.145-.073 0 0-.072-.072-.072-.144 0-.073.072-.145.144-.145h3.696c.073 0 .073 0 .145.072 0 0 .073.073.073.145a.156.156 0 0 1-.145.145Zm-5 0h-.725c-.073 0-.073 0-.145-.073 0 0-.072-.072-.072-.144 0-.073.072-.145.144-.145h.653c.072 0 .072 0 .145.072.072.073.145.073.145.145a.156.156 0 0 1-.145.145Zm8.043 1.16H9.36c-.072 0-.072 0-.145-.073 0 0-.072-.073-.072-.145 0-.073.072-.145.145-.145h2.174c.072 0 .072 0 .145.072 0 0 .072.073.072.145.072.073-.072.145-.145.145Zm-3.043 0H4.794c-.073 0-.073 0-.145-.073 0 0-.072-.073-.072-.145 0-.073.072-.145.144-.145h3.696c.073 0 .073 0 .145.072 0 0 .073.073.073.145a.156.156 0 0 1-.145.145Zm-5 0h-.725c-.073 0-.073 0-.145-.073 0 0-.072-.073-.072-.145 0-.073.072-.145.144-.145h.653c.072 0 .072 0 .145.072 0 0 .072.073.072.145.073.073 0 .145-.072.145Z",fill:"#6E3902"}),React.createElement("path",{d:"M4.794 7.765 3.562 7.04l-1.16.725 1.16-1.45h.217l.29-.507 1.45-.507-.942 1.015.217 1.449Zm4.855 0L8.417 7.04l-1.16.725 1.16-1.45h.29l.217-.507 1.45-.507-.942 1.015.217 1.449Z",fill:"#FF992E"})));var Wr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMTUuODggMi45MUguMDEyVi4zNzRDLjAxMS4zLjA4NC4xNTYuMDg0LjA4NC4xNTYuMDg0LjMuMDEuMzc0LjAxaDE1LjE0NWMuMDcyIDAgLjIxNy4wNzMuMjkuMDczLjA3Mi4wNzIuMDcyLjE0NS4wNzIuMjlWMi45MVoiIGZpbGw9IiNGRkM4MEYiLz48cGF0aCBkPSJNOS40MzIgMi4wNzhjLS4yMTggMC0uMzYzLS4xNi0uNDM1LS4zMiAwLS4wOC0uMDczLS4xNjEtLjA3My0uMjQxIDAtLjE2LjA3My0uMjQuMTQ1LS40MDEuMTQ1LS4yNC41MDgtLjE2LjY1MiAwIC4wNzMuMDguMTQ1LjI0LjE0NS40IDAgLjE2MS0uMDcyLjI0MS0uMTQ1LjQwMi0uMDcyLjA4LS4yMTcuMTYtLjI5LjE2Wm0xLjg4NC0uNTYxYzAtLjE2LjA3Mi0uMjQuMTQ1LS40MDEuMDcyLS4xNi4yMTctLjE2LjM2Mi0uMTYuMjkgMCAuNTA3LjI0LjUwNy41NiAwIC4xNjEtLjA3Mi4yNDEtLjE0NS40MDJhLjUyNy41MjcgMCAwIDEtLjM2Mi4xNmMtLjI5IDAtLjUwNy0uMjQtLjUwNy0uNTYxWm0yLjk3LjU2MWEuNTI3LjUyNyAwIDAgMS0uMzYyLS4xNi42Ny42NyAwIDAgM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LjE0NWEuMTU2LjE1NiAwIDAgMS0uMTQ1LjE0NVptLTUgMGgtLjcyNWMtLjA3MyAwLS4wNzMgMC0uMTQ1LS4wNzMgMCAwLS4wNzItLjA3My0uMDcyLS4xNDUgMC0uMDczLjA3Mi0uMTQ1LjE0NC0uMTQ1aC42NTNjLjA3MiAwIC4wNzIgMCAuMTQ1LjA3MiAwIDAgLjA3Mi4wNzMuMDcyLjE0NS4wNzMuMDczIDAgLjE0NS0uMDcyLjE0NVoiIGZpbGw9IiM2RTM5MDIiLz48cGF0aCBkPSJNNC43OTQgNy43NjUgMy41NjIgNy4wNGwtMS4xNi43MjUgMS4xNi0xLjQ1aC4yMTdsLjI5LS41MDcgMS40NS0uNTA3LS45NDIgMS4wMTUuMjE3IDEuNDQ5Wm00Ljg1NSAwTDguNDE3IDcuMDRsLTEuMTYuNzI1IDEuMTYtMS40NWguMjlsLjIxNy0uNTA3IDEuNDUtLjUwNy0uOTQyIDEuMDE1LjIxNyAxLjQ0OVoiIGZpbGw9IiNGRjk5MkUiLz48L2c+PC9zdmc+",Yr=Object.defineProperty,Ql=Object.getOwnPropertySymbols,Ur=Object.prototype.hasOwnProperty,Hr=Object.prototype.propertyIsEnumerable,Wl=(t,l,n)=>l in t?Yr(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,Kr=(t,l)=>{for(var n in l||(l={}))Ur.call(l,n)&&Wl(t,n,l[n]);if(Ql)for(var n of Ql(l))Hr.call(l,n)&&Wl(t,n,l[n]);return t};const rs=t=>React.createElement("svg",Kr({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},t),React.createElement("title",null,"\u4EE3\u7801\u4F18\u5316"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M11.792.005c.134.603.201 1.206.067 1.876H2.881c-.067-.737-.268-1.876.804-1.876h8.107ZM4.355 1.211c.134 0 .201-.134.134-.268s-.2-.2-.268-.2c-.134.066-.2.2-.134.267 0 .134.134.201.268.201Zm.938-.2c0-.068-.067-.135-.134-.202s-.134-.067-.2 0c-.068.067-.135.067-.135.201s.067.201.201.201.268-.134.268-.2Zm.536.2c.134 0 .201-.134.201-.2 0-.068 0-.135-.067-.135C5.896.742 5.896.742 5.83.742c-.134 0-.2.134-.2.268 0 .067 0 .134.066.134 0 .067.067.067.134.067Z",fill:"#8DCAFC"}),React.createElement("path",{d:"M11.792.005h.804c.268 0 .47.134.536.47.067.535.134 1.071.067 1.54a2.677 2.677 0 0 0-1.273-.134h-.067c.134-.603.134-1.273-.067-1.876Z",fill:"#63B9FC"}),React.createElement("path",{d:"M11.926 1.881c.067.804.134 1.675 0 2.412-.067.402.067.938.067 1.206 0 1.742 0 3.484.067 5.16H3.15c-.068 0-.135 0-.135-.068l-.067-.067V1.881h8.978Zm-6.7 2.948.871-.804c.201-.134.201-.335.134-.536-.335-.87-1.809.804-2.077 1.072-.134.201-.134.402 0 .536.201.201 2.211 2.412 2.077.804 0-.067-.067-.134-.067-.134l-.938-.804V4.83ZM8.71 3.757c0-.134 0-.2-.067-.335-.067-.134-.134-.2-.268-.2a.456.456 0 0 0-.536.267l-.67 2.48a.456.456 0 0 0 .268.535.456.456 0 0 0 .536-.268l.737-2.479Zm1.876.871c.067.067.134.134.134.201s0 .134-.067.201c-.2.201-1.742 1.407-.536 1.474.067 0 .134 0 .201-.067.335-.268.737-.603 1.072-.87.402-.403.871-.67.268-1.207-.335-.335-1.608-1.809-1.943-.804v.201c.134.268.47.603.871.871ZM6.5 7.71c0-.134-.067-.2-.2-.2H4.22c-.134 0-.2.066-.2.2v.067c0 .134.066.201.2.201h2.144c.067 0 .134 0 .134-.067v-.2Zm2.546 1.005c0-.134-.2-.268-.469-.268-.268 0-.469.134-.469.268s.201.268.47.268c.267 0 .468-.134.468-.268Zm-1.474 0c0-.134-.067-.2-.2-.2H4.22c-.067 0-.134 0-.134.066 0 .067-.067.067-.067.067 0 .134.067.201.201.201h3.15c.066 0 .133 0 .133-.067.067.067.067 0 .067-.067Zm2.48.871c0-.134-.135-.2-.336-.2-.2 0-.335.133-.335.267s.134.201.335.201c.134 0 .335-.134.335-.268Zm-4.356 0c0-.067 0-.134-.067-.134s-.067-.067-.134-.067H4.221c-.067 0-.134 0-.134.067-.067.067-.067.067-.067.134s0 .134.067.134.067.067.134.067h1.273c.067 0 .201-.067.201-.2Zm3.082 0c0-.134-.067-.2-.2-.2H6.431c-.067 0-.134 0-.134.066-.067.067-.067.067-.067.134s0 .134.067.134c.067.067.067.067.134.067h2.144c.067 0 .134 0 .134-.067.067 0 .067-.067.067-.134Z",fill:"#3291FC"}),React.createElement("path",{d:"M11.926 1.881c.402-.067.871 0 1.273.134v1.072l-.067 7.639h-1.139c-.067-1.743-.067-3.485-.067-5.16 0-.268-.134-.804-.067-1.206.134-.804.067-1.675.067-2.479Z",fill:"#3291FC"}),React.createElement("path",{d:"m13.2 2.082 1.741.067c-.938-.268-.402.603-.402.938h-1.273L13.2 2.082ZM2.88 2.15v1.005H1.675c-.067 0-.067.067-.067.134v7.303c0 .068.067.135.134.202.402.134.804.067 1.206-.202l.067.068c0 .067.067.067.134.067H13.2l1.34.067c.067.469-.067.87-.2 1.273H1.004c-.067 0-.134-.067-.201-.067-.067-.268-.134-.402-.134-.603V2.819c0-.402.201-.603.603-.603l1.608-.067Z",fill:"#A1AAEF"}),React.createElement("path",{d:"M14.941 2.216c.335.067.536.268.536.603.067 2.278.067 5.36-.067 9.18l-.536.067h-.603c.201-.402.268-.804.201-1.273V3.154c.067-.402-.469-1.206.47-.938Z",fill:"#A1AAEF"}),React.createElement("path",{d:"M2.881 3.154v7.37c-.402.269-.804.336-1.206.202-.067 0-.134-.135-.134-.202V3.221c0-.067.067-.134.067-.134l1.273.067Z",fill:"#DDE2F0"}),React.createElement("path",{d:"M13.2 3.154h1.272v7.572l-1.34-.067.067-7.505ZM.736 11.932c.067.067.134.067.201.067h13.936c.201.402.201.87-.067 1.273-4.623-.067-9.179-.067-13.802 0-.737 0-1.139-.335-.938-1.14 0-.066.067-.066.134-.066.201 0 .335-.067.536-.134Z",fill:"#DAE0FF"}),React.createElement("path",{d:"m15.41 11.999.402.067c.067 0 .134.067.134.134.201.87-.2 1.273-1.139 1.139.268-.47.268-.871.067-1.273l.536-.067Z",fill:"#CCD2F2"}),React.createElement("path",{d:"M4.221.742a.144.144 0 0 0-.134.134c0 .067 0 .134.067.201s.134.067.201.067a.144.144 0 0 0 .134-.134c0-.067 0-.134-.067-.2-.067-.068-.134-.068-.2-.068Zm.603.268c0 .067.067.134.134.201s.134.067.201 0 .134-.134.134-.2c0-.068-.067-.135-.134-.202s-.134-.067-.2 0c-.068.067-.135.067-.135.201ZM5.83.742c-.134 0-.2.134-.2.268s.066.201.2.201.201-.134.201-.2c0-.135-.134-.269-.2-.269Zm-.603 4.221.938.871c.067.067.067.067.067.134.134 1.541-1.876-.67-2.077-.804a.503.503 0 0 1 0-.603c.268-.268 1.742-1.943 2.077-1.139.134.201.067.402-.134.603l-.87.804v.134Zm3.15-1.742c.334.067.401.268.334.536l-.67 2.48c-.067.267-.268.334-.536.267s-.335-.268-.268-.536l.67-2.479c.067-.268.201-.335.47-.268Zm2.21 1.407c-.402-.268-.67-.603-.938-.87-.067-.068-.067-.135 0-.202.335-1.005 1.608.47 1.943.804.603.536.134.804-.268 1.206-.335.335-.67.603-1.072.871-.067.067-.134.067-.2.067-1.274-.134.334-1.34.535-1.474.067-.067.067-.134.067-.2 0-.068 0-.135-.067-.202Z",fill:"#F1EFF2"}),React.createElement("path",{d:"M4.221 7.51h2.144c.134 0 .201.066.201.2v.067c0 .134-.067.201-.2.201H4.22c-.134 0-.2-.067-.2-.2V7.71c0-.134.066-.2.2-.2Z",fill:"#FDDD44"}),React.createElement("path",{d:"M8.107 8.99c0 .165.067.497.201.497s.335.166.47 0c.133-.166.267-.332.267-.498 0-.166-.067-.498-.2-.498-.135 0-.336-.165-.47 0-.2.166-.268.332-.268.498ZM4.221 8.49h3.15c.133 0 .2.166.2.498 0 .332-.067.498-.2.498H4.22c-.134.166-.2 0-.2-.332 0-.498.066-.664.2-.664Z",fill:"#FC9743"}),React.createElement("path",{d:"M9.313 9.907c0 .152.067.304.201.457.134.152.268.152.335 0 .134-.153.201-.305.201-.457 0-.153-.067-.305-.2-.457-.135-.153-.269-.153-.336 0-.134.152-.2.304-.2.457ZM4.221 9.45h1.273c.134 0 .201.152.201.457 0 .304-.067.457-.2.457H4.22c-.134 0-.2-.153-.2-.457 0-.305.066-.457.2-.457Zm2.211 0h2.144c.134 0 .201.152.201.457 0 .304-.067.457-.2.457H6.431c-.134 0-.2-.153-.2-.457 0-.305.066-.457.2-.457Z",fill:"#28D1B3"})));var Gr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMTEuNzkyLjAwNWMuMTM0LjYwMy4yMDEgMS4yMDYuMDY3IDEuODc2SDIuODgxYy0uMDY3LS43MzctLjI2OC0xLjg3Ni44MDQtMS44NzZoOC4xMDdaTTQuMzU1IDEuMjExYy4xMzQgMCAuMjAxLS4xMzQuMTM0LS4yNjhzLS4yLS4yLS4yNjgtLjJjLS4xMzQuMDY2LS4yLjItLjEzNC4yNjcgMCAuMTM0LjEzNC4yMDEuMjY4LjIwMVptLjkzOC0uMmMwLS4wNjgtLjA2Ny0uMTM1LS4xMzQtLjIwMnMtLjEzNC0uMDY3LS4yIDBjLS4wNjguMDY3LS4xMzUuMDY3LS4xMzUuMjAxcy4wNjcuMjAxLjIwMS4yMDEuMjY4LS4xMzQuMjY4LS4yWm0uNTM2LjJjLjEzNCAwIC4yMDEtLjEzNC4yMDEtLjIgMC0uMDY4IDAtLjEzNS0uMDY3LS4xMzVDNS44OTYuNzQyIDUuODk2Ljc0MiA1LjgzLjc0MmMtLjEzNCAwLS4yLjEzNC0uMi4yNjggMCAuMDY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Q1Ny0uMi40NTdINC4yMmMtLjEzNCAwLS4yLS4xNTMtLjItLjQ1NyAwLS4zMDUuMDY2LS40NTcuMi0uNDU3Wm0yLjIxMSAwaDIuMTQ0Yy4xMzQgMCAuMjAxLjE1Mi4yMDEuNDU3IDAgLjMwNC0uMDY3LjQ1Ny0uMi40NTdINi40MzFjLS4xMzQgMC0uMi0uMTUzLS4yLS40NTcgMC0uMzA1LjA2Ni0uNDU3LjItLjQ1N1oiIGZpbGw9IiMyOEQxQjMiLz48L2c+PC9zdmc+",Jr=Object.defineProperty,Yl=Object.getOwnPropertySymbols,Vr=Object.prototype.hasOwnProperty,Xr=Object.prototype.propertyIsEnumerable,Ul=(t,l,n)=>l in t?Jr(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,qr=(t,l)=>{for(var n in l||(l={}))Vr.call(l,n)&&Ul(t,n,l[n]);if(Yl)for(var n of Yl(l))Xr.call(l,n)&&Ul(t,n,l[n]);return t};const os=t=>React.createElement("svg",qr({width:14,height:16,xmlns:"http://www.w3.org/2000/svg"},t),React.createElement("title",null,"\u4EE3\u7801\u8BCA\u65AD"),React.createElement("g",{fill:"#6320FE",fillRule:"nonzero"},React.createElement("path",{d:"m1.272 3.267 1.667 1.666c.4-.333 1-.533 1.6-.533h2v10.467h-2c-.534 0-1.134-.2-1.534-.534L1.272 16l-.867-.867 1.8-1.8c-.133-.333-.266-.666-.266-1.066V10.2H.005V9H1.94V6.933c0-.4.066-.733.266-1.066l-1.8-1.8.867-.8Zm8 6.933c1.267 0 2.333 1 2.333 2.267 0 .266-.066.533-.133.8l1.867 1.866-.934.867-1.733-1.733a2.33 2.33 0 0 1-1.467.533c-1.266 0-2.333-1-2.333-2.267.067-1.266 1.067-2.333 2.4-2.333Z"}),React.createElement("path",{d:"m12.405 3.267.867.866L11.405 6c.134.267.2.6.2.933V10.6c-.533-.867-1.4-1.4-2.533-1.4-.8 0-1.533.333-2.067.867V4.4h2c.6 0 1.2.2 1.667.6l1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42YzAtMS40NjcgMS4yLTIuNiAyLjY2Ni0yLjZaIi8+PC9nPjwvc3ZnPg==",$r=Object.defineProperty,Hl=Object.getOwnPropertySymbols,eo=Object.prototype.hasOwnProperty,to=Object.prototype.propertyIsEnumerable,Kl=(t,l,n)=>l in t?$r(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,uo=(t,l)=>{for(var n in l||(l={}))eo.call(l,n)&&Kl(t,n,l[n]);if(Hl)for(var n of Hl(l))to.call(l,n)&&Kl(t,n,l[n]);return t};const ss=t=>React.createElement("svg",uo({width:16,height:16,xmlns:"http://www.w3.org/2000/svg"},t),React.createElement("title",null,"\u4EE3\u7801\u6CE8\u91CA"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M7.76 15.976c-.502 0-.996-.123-1.438-.361l-4.884-2.646C.539 12.47-.006 11.585 0 10.633V5.344c0-.95.54-1.835 1.437-2.336L6.322.361a3.042 3.042 0 0 1 2.876 0l4.885 2.647c.898.502 1.442 1.385 1.438 2.336v5.29c0 .95-.54 1.836-1.438 2.335l-4.885 2.646a3.018 3.018 0 0 1-1.438.361Z",fill:"#1EDAB5"}),React.createElement("path",{d:"M7.405 15.97c-.64-2.987-.64-5.09-.66-5.626L8.8 6c2.011-.731 3.36-1.886 6.388-1.912.222.389.34.828.343 1.276v5.289c0 .95-.542 1.835-1.438 2.336l-4.886 2.644a3.033 3.033 0 0 1-1.802.338Z",fill:"#77E89B"}),React.createElement("path",{d:"M4.614 4.4c.195 0 .352.187.352.416 0 .228-.157.414-.352.415-.196 0-.353.186-.353.415v2.076c0 .111-.038.217-.105.294l-.102.122.103.122a.453.453 0 0 1 .104.294v2.076c0 .23.158.415.354.415.194.001.351.187.351.415 0 .23-.157.415-.351.416-.585 0-1.062-.56-1.062-1.246V8.726l-.25-.294a.468.468 0 0 1 0-.588l.25-.294V5.646c0-.688.477-1.246 1.062-1.246Zm6.144 0c.584 0 1.06.56 1.06 1.246V7.55l.249.294a.471.471 0 0 1 0 .588l-.25.294v1.904c0 .688-.475 1.246-1.059 1.246a.347.347 0 0 1-.307-.207.48.48 0 0 1 0-.417.347.347 0 0 1 .306-.207c.196 0 .354-.186.354-.415V8.554c0-.111.037-.217.104-.294l.103-.122-.103-.122a.455.455 0 0 1-.104-.294V5.646c0-.23-.158-.415-.353-.415a.347.347 0 0 1-.307-.208.48.48 0 0 1 0-.416.347.347 0 0 1 .306-.207h.001ZM8.611 5.747a.374.374 0 0 1 .185.496l-2.177 4.756a.374.374 0 0 1-.68-.311l2.177-4.755a.374.374 0 0 1 .495-.185Z",fill:"#FFF"})));var no="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNy43NiAxNS45NzZjLS41MDIgMC0uOTk2LS4xMjMtMS40MzgtLjM2MWwtNC44ODQtMi42NDZDLjUzOSAxMi40Ny0uMDA2IDExLjU4NSAwIDEwLjYzM1Y1LjM0NGMwLS45NS41NC0xLjgzNSAxLjQzNy0yLjMzNkw2LjMyMi4zNjFhMy4wNDIgMy4wNDIgMCAwIDEgMi44NzYgMGw0Ljg4NSAyLjY0N2MuODk4LjUwMiAxLjQ0MiAxLjM4NSAxLjQzOCAyLjMzNnY1LjI5YzAgLjk1LS41NCAxLjgzNi0xLjQzOCAyLjMzNWwtNC44ODUgMi42NDZhMy4wMTggMy4wMTggMCAwIDEtMS40MzguMzYxWiIgZmlsbD0iIzFFREFCNSIvPjxwYXRoIGQ9Ik03LjQwNSAxNS45N2MtLjY0LTIuOTg3LS42NC01LjA5LS42Ni01LjYyNkw4LjggNmMyLjAxMS0uNzMxIDMuMzYtMS44ODYgNi4zODgtMS45MTIuMjIyLjM4OS4zNC44MjguMzQzIDEuMjc2djUuMjg5YzAgLjk1LS41NDIgMS44MzUtMS40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0uNDE2LjM0Ny4zNDcgMCAwIDEgLjMwNi0uMjA3aC4wMDFaTTguNjExIDUuNzQ3YS4zNzQuMzc0IDAgMCAxIC4xODUuNDk2bC0yLjE3NyA0Ljc1NmEuMzc0LjM3NCAwIDAgMS0uNjgtLjMxMWwyLjE3Ny00Ljc1NWEuMzc0LjM3NCAwIDAgMSAuNDk1LS4xODVaIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==",lo=Object.defineProperty,Gl=Object.getOwnPropertySymbols,ao=Object.prototype.hasOwnProperty,ro=Object.prototype.propertyIsEnumerable,Jl=(t,l,n)=>l in t?lo(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,oo=(t,l)=>{for(var n in l||(l={}))ao.call(l,n)&&Jl(t,n,l[n]);if(Gl)for(var n of Gl(l))ro.call(l,n)&&Jl(t,n,l[n]);return t};const is=t=>React.createElement("svg",oo({width:16,height:16,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t),React.createElement("title",null,"1 (2)"),React.createElement("defs",null,React.createElement("path",{id:"yfjc_svg__a",d:"M0 0h16v16H0z"})),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("mask",{id:"yfjc_svg__b",fill:"#fff"},React.createElement("use",{xlinkHref:"#yfjc_svg__a"})),React.createElement("use",{fill:"#FFF",fillRule:"nonzero",opacity:.01,xlinkHref:"#yfjc_svg__a"}),React.createElement("g",{mask:"url(#yfjc_svg__b)"},React.createElement("g",{fillRule:"nonzero"},React.createElement("path",{d:"M4.45 1.367h6.278c2.424 0 3.636 1.212 3.636 3.636v6.695c0 2.424-1.212 3.636-3.636 3.636H4.45c-2.424 0-3.636-1.212-3.636-3.636V5.003c0-2.424 1.212-3.636 3.636-3.636Z",fill:"#FF8303"}),React.createElement("path",{d:"M4.688 3.891h5.8c1.455 0 2.182.727 2.182 2.182v4.695c0 1.455-.727 2.182-2.182 2.182h-5.8c-1.454 0-2.181-.727-2.181-2.182V6.073c0-1.455.727-2.182 2.181-2.182Z",fill:"#FFEBB4"}),React.createElement("path",{d:"M5.22 6.136h3.042c.455 0 .682.227.682.682 0 .454-.227.68-.682.68H5.221c-.455 0-.682-.226-.682-.68 0-.455.227-.682.682-.682ZM5.056.004h5.065c1.022 0 1.533.511 1.533 1.533 0 1.022-.511 1.533-1.533 1.533H5.056c-1.022 0-1.533-.51-1.533-1.533 0-1.022.511-1.533 1.533-1.533ZM5.22 9.202h5.075c.454 0 .681.228.681.682 0 .454-.227.681-.681.681H5.221c-.455 0-.682-.227-.682-.681 0-.454.227-.682.682-.682Z",fill:"#FFCC34"})),React.createElement("path",{d:"m12.878 12.584 1.563 1.563a.82.82 0 0 1-1.163 1.156l-1.624-1.623a3.32 3.32 0 1 1 1.786-2.945c0 .66-.196 1.304-.562 1.849Zm-1.178-1.85a1.58 1.58 0 1 0-3.16 0 1.58 1.58 0 0 0 3.16 0Z",stroke:"#FFF",fill:"#FF8303",fillRule:"nonzero"}))));var so="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNMCAwaDE2djE2SDB6Ii8+PC9kZWZzPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PG1hc2sgaWQ9ImIiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2EiLz48L21hc2s+PHVzZSBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG9wYWNpdHk9Ii4wMSIgeGxpbms6aHJlZj0iI2EiLz48ZyBtYXNrPSJ1cmwoI2IpIj48ZyBmaWxsLXJ1bGU9Im5vbnplcm8iPjxwYXRoIGQ9Ik00LjQ1IDEuMzY3aDYuMjc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OCAxMi41ODQgMS41NjMgMS41NjNhLjgyLjgyIDAgMCAxLTEuMTYzIDEuMTU2bC0xLjYyNC0xLjYyM2EzLjMyIDMuMzIgMCAxIDEgMS43ODYtMi45NDVjMCAuNjYtLjE5NiAxLjMwNC0uNTYyIDEuODQ5Wm0tMS4xNzgtMS44NWExLjU4IDEuNTggMCAxIDAtMy4xNiAwIDEuNTggMS41OCAwIDAgMCAzLjE2IDBaIiBzdHJva2U9IiNGRkYiIGZpbGw9IiNGRjgzMDMiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvZz48L2c+PC9zdmc+",io=Object.defineProperty,Vl=Object.getOwnPropertySymbols,co=Object.prototype.hasOwnProperty,mo=Object.prototype.propertyIsEnumerable,Xl=(t,l,n)=>l in t?io(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,Eo=(t,l)=>{for(var n in l||(l={}))co.call(l,n)&&Xl(t,n,l[n]);if(Vl)for(var n of Vl(l))mo.call(l,n)&&Xl(t,n,l[n]);return t};const cs=t=>React.createElement("svg",Eo({width:15,height:15,xmlns:"http://www.w3.org/2000/svg"},t),React.createElement("title",null,"1 (1)"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("path",{d:"M0 0h15v15H0z"}),React.createElement("g",{fillRule:"nonzero"},React.createElement("path",{d:"M1.875 14.15a.83.83 0 0 1-.837-.828V.922a.832.832 0 0 1 .837-.833h8.583l2.554 2.548v10.68a.837.837 0 0 1-.825.835H1.875v-.003Z",fill:"#F4FAFF"}),React.createElement("path",{d:"m10.402.234 2.489 2.473v10.594a.703.703 0 0 1-.704.703H1.891a.703.703 0 0 1-.72-.691V.949a.704.704 0 0 1 .704-.715h8.527M10.5 0H1.891a.952.952 0 0 0-.954.95V13.3c.008.522.433.94.954.938h10.28a.952.952 0 0 0 .954-.937V2.613L10.5 0Z",fill:"#79B8FF"}),React.createElement("path",{d:"M12.942 2.716h-1.947a.595.595 0 0 1-.612-.574V.18l2.56 2.536Z",fill:"#79B8FF"}),React.createElement("path",{d:"M0 9.844h14.063v4.453a.703.703 0 0 1-.704.703H.703A.703.703 0 0 1 0 14.297V9.844Z",fill:"#4885E0"}),React.createElement("path",{fill:"#377DD1",d:"M.937 9.844H0l.937-.938zM13.127 9.844h.935l-.935-.938z"}),React.createElement("path",{d:"M7.922 5.334h3.375c.125 0 .187.063.187.188s-.062.187-.187.187H7.922c-.125 0-.188-.062-.188-.187s.063-.188.188-.188ZM7.922 6.53h3.375c.125 0 .187.062.187.187s-.062.188-.187.188H7.922c-.125 0-.188-.063-.188-.188s.063-.187.188-.187ZM7.922 7.725h3.375c.125 0 .187.063.187.188s-.062.187-.187.187H7.922c-.125 0-.188-.062-.188-.187s.063-.188.188-.188Z",fill:"#B5C2E3"})),React.createElement("path",{d:"M8.057 8.214 6.273 6.42a2.445 2.445 0 1 0-.48.478l1.785 1.796a.15.15 0 0 0 .213 0l.266-.266a.15.15 0 0 0 0-.213Zm-5.01-1.98a1.795 1.795 0 1 1 2.537-2.538 1.795 1.795 0 0 1-2.538 2.538Z",fill:"#3DCEEB",fillRule:"nonzero"})));var po="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMCAwaDE1djE1SDB6Ii8+PGcgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNMS44NzUgMTQuMTVhLjgzLjgzIDAgMCAxLS44MzctLjgyOFYuOTIyYS44MzIuODMyIDAgMCAxIC44MzctLjgzM2g4LjU4M2wyLjU1NCAyLjU0OHYxMC42OGEuODM3LjgzNyAwIDAgMS0uODI1LjgzNUgxLjg3NXYtLjAwM1oiIGZpbGw9IiNGNEZBRkYiLz48cGF0aCBkPSJtMTAuNDAyLjIzNCAyLjQ4OSAyLjQ3M3YxMC41OTRhLjcw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/L/jVD2y7PdmsOF2212oLAo8s40QAP255ViJQjzauQJpBJGhYsCnl3rCsSNOPxIrxbHJyeMO7nBf8YvNPPGVnYD4gT9mpn3/h+TPw82fg/wD5xq7B1Aw6SAAAAABJRU5ErkJggg==",V=u(59301),Fo=Object.defineProperty,Ao=Object.defineProperties,yo=Object.getOwnPropertyDescriptors,ql=Object.getOwnPropertySymbols,ho=Object.prototype.hasOwnProperty,Co=Object.prototype.propertyIsEnumerable,_l=(t,l,n)=>l in t?Fo(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,bu=(t,l)=>{for(var n in l||(l={}))ho.call(l,n)&&_l(t,n,l[n]);if(ql)for(var n of ql(l))Co.call(l,n)&&_l(t,n,l[n]);return t},Gu=(t,l)=>Ao(t,yo(l)),Bn=(t,l,n)=>new Promise(($,re)=>{var Y=F=>{try{G(n.next(F))}catch(ue){re(ue)}},ge=F=>{try{G(n.throw(F))}catch(ue){re(ue)}},G=F=>F.done?$(F.value):Promise.resolve(F.value).then(Y,ge);G((n=n.apply(t,l)).next())});const Do={1:po,2:so,3:_r,4:Lr,5:no,6:Wr,7:Gr,8:Rr},$l=[{id:1,name:"\u667A\u80FD\u5BA1\u9898",type:"1"},{id:2,name:"\u8BED\u6CD5\u68C0\u67E5",type:"5"},{id:3,name:"\u4EE3\u7801\u8BCA\u65AD",type:"2"},{id:4,name:"AI\u8F85\u5BFC",type:"3"},{id:5,name:"\u4EE3\u7801\u6CE8\u91CA",type:"8"},{id:6,name:"\u4EE3\u7801\u8BC4\u4EF7",type:"9"},{id:7,name:"\u4EE3\u7801\u4F18\u5316",type:"7"},{id:8,name:"AI\u95EE\u7B54",type:"10"}],{RangePicker:Bo}=dn.default,Mo=({classroomList:t,shixunHomeworks:l,dispatch:n})=>{var $,re,Y,ge,G,F,ue,ft,Ue,Ze,Xe,Ht;const Oe=(0,o.useParams)(),[ht,ae]=(0,e.useState)(1),[vt,Lt]=(0,e.useState)(!1),[Ne,Me]=(0,e.useState)(bu(bu({},{page:1,limit:20,course_group_ids:"all",challenge_ids:"all"}),Oe)),[ze]=Le.default.useForm(),Pe=(0,e.useRef)(""),[Ct,xe]=(0,e.useState)("1"),[w,Ie]=(0,e.useState)([]),ee=(0,e.useRef)({page:1,limit:10,course_group_ids:"all",keyword:"",type:"",scene_type:""}),[tt,bt]=(0,e.useState)([]),[ut,Jt]=(0,e.useState)(null),[Pt,Ge]=(0,e.useState)(null),[iu,Fu]=(0,e.useState)(0),[Re,gt]=(0,e.useState)(!1),qe=[{key:"1",label:"\u667A\u80FD\u5BA1\u9898"},{key:"5",label:"\u8BED\u6CD5\u68C0\u67E5"},{key:"2",label:"\u4EE3\u7801\u8BCA\u65AD"},{key:"3",label:"AI\u8F85\u5BFC"},{key:"8",label:"\u4EE3\u7801\u6CE8\u91CA"},{key:"9",label:"\u4EE3\u7801\u8BC4\u4EF7"},{key:"7",label:"\u4EE3\u7801\u4F18\u5316"},{key:"10",label:"AI\u95EE\u7B54"}],Vt={1:"\u667A\u80FD\u5BA1\u9898",5:"\u8BED\u6CD5\u68C0\u67E5",2:"\u4EE3\u7801\u8BCA\u65AD",3:"AI\u8F85\u5BFC",9:"\u4EE3\u7801\u8BC4\u4EF7",7:"\u4EE3\u7801\u4F18\u5316",8:"\u4EE3\u7801\u6CE8\u91CA",10:"AI\u95EE\u7B54"},At=[{id:"1",name:"\u5DE5\u5177\u4F9D\u8D56\u578B",des:"\u4F7F\u7528\u667A\u80FD\u5BA1\u9898\u3001\u8BED\u6CD5\u68C0\u67E5\u3001\u4EE3\u7801\u8BCA\u65AD\u3001AI\u8F85\u5BFC\u8FD94\u79CD\u5DE5\u5177\u5185\u7684\u4EFB\u610F3\u79CD\u5DE5\u5177 \u6216\u8005 \u4F7F\u7528\u5176\u4E2D\u4EFB\u4E00\u79CD\u5DE5\u5177\u7684\u6B21\u6570\u22653\u6B21\uFF0C\u8BE5\u90E8\u5206\u5B66\u751F\u5728\u5BA1\u9898\u548C\u57FA\u7840\u4EE3\u7801\u7F16\u5199\u65B9\u9762\u80FD\u529B\u8F83\u6B20\u7F3A\uFF0C\u53EF\u80FD\u9700\u8981\u5728\u6559\u5B66\u8FC7\u7A0B\u4E2D\u6CE8\u91CD\u5B9E\u8DF5\u8FD0\u7528\u7684\u5F15\u5BFC\u5E76\u52A0\u5F3A\u5B66\u751F\u4EE3\u7801\u7F16\u5199\u89C4\u8303\u3002",img:fo,type:4},{id:"2",name:"\u8D28\u91CF\u63D0\u5347\u578B ",des:"\u4F7F\u7528\u4EE3\u7801\u8BC4\u4EF7\u3001\u4EE3\u7801\u4F18\u5316\u3001\u4EE3\u7801\u6CE8\u91CA\u5DE5\u5177 \u8FD93\u79CD\u5DE5\u5177\u5185\u7684\u4EFB\u610F2\u79CD\u5DE5\u5177 \u6216\u8005 \u4F7F\u7528\u5176\u4E2D\u4EFB\u4E00\u79CD\u5DE5\u5177\u7684\u6B21\u6570\u22653\u6B21\uFF0C\u8BE5\u90E8\u5206\u5B66\u751F\u5BF9\u4EE3\u7801\u7684\u8D28\u91CF\u8981\u6C42\u8F83\u9AD8\uFF0C\u6709\u66F4\u8FDB\u4E00\u7EA7\u7684\u5B66\u4E60\u8BC9\u6C42\uFF0C\u53EF\u7EFC\u5408\u8003\u8651\u540E\u4F5C\u4E3A\u4F18\u79C0\u5B66\u751F\u57F9\u517B\u3002",img:go,type:5},{id:"3",name:"\u521B\u65B0\u63A2\u7D22\u578B ",des:"\u4F7F\u7528AI\u95EE\u7B54\u5DE5\u5177\u7684\u6B21\u6570\u22653\u6B21 \u6216\u8005 \u7D2F\u8BA1\u5BF9\u8BDD\u8F6E\u6B21\u22653\u8F6E\uFF0C\u8BE5\u90E8\u5206\u5B66\u751F\u5728\u505A\u9898\u8FC7\u7A0B\u4E2D\u6709\u79EF\u6781\u5C1D\u8BD5\u4E0E\u63A2\u7D22\u7684\u610F\u613F\u3002",img:vo,type:6}],Tt={\u672A\u8BC4\u6D4B:"#3A78FF",\u8BC4\u6D4B\u5931\u8D251\u6B21:"#FACC16",\u8BC4\u6D4B\u5931\u8D252\u6B21:"#2E95F2",\u8BC4\u6D4B\u5931\u8D253\u6B21\u53CA\u4EE5\u4E0A:"#2EC25B",\u672A\u901A\u5173\u524D\u4F7F\u7528:"#3A78FF",\u901A\u5173\u540E\u4F7F\u7528:"#FACC16","1\u8F6E":"#FACC16","2-3\u8F6E":"#2E95F2","4-5\u8F6E":"#2EC25B","6\u8F6E\u53CA\u4EE5\u4E0A":"#3A78FF"},St=(0,e.useMemo)(()=>{var se;return{tooltip:{},xAxis:{type:"category",data:(se=Pt==null?void 0:Pt.bar_list)==null?void 0:se.map(Qe=>Qe.name),name:"\u6B21\u6570\u533A\u95F4",nameLocation:"end",axisLine:{show:!0,lineStyle:{color:"#ebebeb"}},axisTick:{lineStyle:{color:"#ebebeb"}},axisLabel:{color:"#666"},nameTextStyle:{color:"#666"}},yAxis:{type:"value",name:"\u4EBA\u6570",axisLine:{show:!1},axisTick:{lineStyle:{color:"#ebebeb"}},axisLabel:{color:"#666"},nameTextStyle:{color:"#666"},splitLine:{show:!0,lineStyle:{color:"#ebebeb"}}},grid:{left:30,right:80,top:50,bottom:50},series:[{data:Pt==null?void 0:Pt.bar_list,type:"bar",itemStyle:{color:"#2EC25B"},barMaxWidth:20}]}},[Pt==null?void 0:Pt.bar_list]),Ou=(0,e.useMemo)(()=>{var se,Qe;return{tooltip:{trigger:"item",formatter:"{b}: {c} ({d}%)"},legend:{orient:"horizontal",bottom:"0",data:(se=Pt==null?void 0:Pt.pie_list)==null?void 0:se.map(Kt=>Kt.name)},series:[{type:"pie",radius:["30%","60%"],avoidLabelOverlap:!0,label:{distanceToLabelLine:10,edgeDistance:"10%",bleedMargin:5,formatter:"{b} {d}%",show:!0,position:"outside"},labelLayout:{hideOverlap:!0,moveOverlap:"shiftY"},labelLine:{show:!0,length:20,length2:20},data:Pt==null?void 0:Pt.pie_list,color:(Qe=Pt==null?void 0:Pt.pie_list)==null?void 0:Qe.map(Kt=>Tt[Kt==null?void 0:Kt.name])}]}},[Pt==null?void 0:Pt.pie_list]);(0,e.useEffect)(()=>{wu()},[Ct,Ne]),(0,e.useEffect)(()=>{var se;(se=l==null?void 0:l.headerInfo)!=null&&se.shixun_identifier&&et()},[($=l==null?void 0:l.headerInfo)==null?void 0:$.shixun_identifier]),(0,e.useEffect)(()=>{Pu()},[Ne]);const et=()=>Bn(void 0,null,function*(){var se;const Qe=yield(0,v.ZP)(`/api/shixuns/${(se=l==null?void 0:l.headerInfo)==null?void 0:se.shixun_identifier}/challenges.json`,{method:"get"});Ie(Qe==null?void 0:Qe.challenge_list)}),wu=()=>Bn(void 0,null,function*(){const se=yield(0,v.ZP)(`/api/shixun_works_statistics/${Ne==null?void 0:Ne.categoryId}/get_info_by_tools.json`,{method:"get",params:{scene_type:Ct,challenge_ids:(Ne==null?void 0:Ne.challenge_ids)=="all"?null:Ne==null?void 0:Ne.challenge_ids,course_group_ids:(Ne==null?void 0:Ne.course_group_ids)=="all"?null:Ne==null?void 0:Ne.course_group_ids}});(se==null?void 0:se.status)==0&&Ge(se)}),Pu=()=>Bn(void 0,null,function*(){const se=yield(0,v.ZP)(`/api/shixun_works_statistics/${Ne==null?void 0:Ne.categoryId}/info.json`,{method:"get",params:{challenge_ids:(Ne==null?void 0:Ne.challenge_ids)=="all"?null:Ne==null?void 0:Ne.challenge_ids,course_group_ids:(Ne==null?void 0:Ne.course_group_ids)=="all"?null:Ne==null?void 0:Ne.course_group_ids}});(se==null?void 0:se.status)===0&&Jt(se)}),ru=()=>Bn(void 0,null,function*(){var se,Qe,Kt,gu;const cu={1:`/api/shixun_works_statistics/${Ne==null?void 0:Ne.categoryId}/list_students_by_like.json`,2:`/api/shixun_works_statistics/${Ne==null?void 0:Ne.categoryId}/list_students_by_tools.json`,3:`/api/shixun_works_statistics/${Ne==null?void 0:Ne.categoryId}/list_students_by_pie.json`,4:`/api/shixun_works_statistics/${Ne==null?void 0:Ne.categoryId}/list_students_by_type.json`,5:`/api/shixun_works_statistics/${Ne==null?void 0:Ne.categoryId}/list_students_by_type.json`,6:`/api/shixun_works_statistics/${Ne==null?void 0:Ne.categoryId}/list_students_by_type.json`},Au=yield(0,v.ZP)(cu[Pe==null?void 0:Pe.current],{method:"get",params:Gu(bu({},ee.current),{course_group_ids:((se=ee==null?void 0:ee.current)==null?void 0:se.course_group_ids)=="all"?null:(Qe=ee==null?void 0:ee.current)==null?void 0:Qe.course_group_ids,challenge_ids:(Ne==null?void 0:Ne.challenge_ids)=="all"?null:Ne==null?void 0:Ne.challenge_ids})});(Au==null?void 0:Au.status)===0&&(bt((Kt=Au==null?void 0:Au.data)==null?void 0:Kt.list),Fu((gu=Au==null?void 0:Au.data)==null?void 0:gu.count))}),fu=()=>{Ne.page=1;const se=Object.assign({},ze.getFieldValue());delete Ne.course_group_ids,delete Ne.challenge_ids,Object.keys(se).map(function(Qe){switch(Qe){case"course_group_ids":se[Qe].includes("all")||!se[Qe].length?(delete Ne.course_group_ids,ze.setFieldsValue({course_group_ids:"all"})):(Ne.course_group_ids=se[Qe],ze.setFieldsValue({course_group_ids:Ne.course_group_ids}));break;case"challenge_ids":se[Qe].includes("all")||!se[Qe].length?(delete Ne.challenge_ids,ze.setFieldsValue({challenge_ids:"all"})):(Ne.challenge_ids=se[Qe],ze.setFieldsValue({challenge_ids:Ne.challenge_ids}));break}}),Me(bu({},Ne)),ee.current=Gu(bu({},ee==null?void 0:ee.current),{course_group_ids:Ne==null?void 0:Ne.course_group_ids,challenge_ids:Ne==null?void 0:Ne.challenge_ids})},zu=()=>{var se;const{used_users_count:Qe,unused_users_count:Kt,used_users_percent:gu,unused_users_percent:cu,max_scene_name:Au,max_users_count:de,min_scene_name:zt,min_users_count:vu,pass_users_with_ai:T,pass_users_without_ai:ct,pass_users_with_ai_rate:Ot,pass_users_without_ai_rate:ou,use_ai_count:Bu,use_ai_rate:nu}=ut==null?void 0:ut.summary;return V.createElement(V.Fragment,null,V.createElement("div",null,"\u672C\u6B21\u5B9E\u9A8C\u5171\u6709",V.createElement("span",null,Qe)," \u540D\u5B66\u751F\u4F7F\u7528\u4E86AI\u5DE5\u5177\uFF0C\u5360\u672C\u6B21\u4F5C\u4E1A\u603B\u4EBA\u6570\u7684 ",V.createElement("span",null,gu,"%"),"\uFF0C",V.createElement("span",null,Kt)," \u540D\u5B66\u751F\u672A\u4F7F\u7528AI\u5DE5\u5177\uFF0C\u5360\u672C\u6B21\u4F5C\u4E1A\u603B\u4EBA\u6570\u7684 ",V.createElement("span",null,cu,"%"),"\u3002\u4F7F\u7528",V.createElement("b",null,Au),"\u5DE5\u5177\u7684\u5B66\u751F\u4EBA\u6570\u6700\u591A\uFF08",V.createElement("span",null,de),"\u540D\uFF09\uFF0C\u4F7F\u7528",V.createElement("b",null,zt),"\u7684\u5B66\u751F\u4EBA\u6570\u6700\u5C11\uFF08",V.createElement("span",null,vu),"\u540D\uFF09\u3002\u4F7F\u7528AI\u5DE5\u5177\u7684\u5B66\u751F\u901A\u5173\u4EBA\u6570\u4E3A ",V.createElement("span",null,T)," \u540D\uFF0C\u901A\u5173\u7387\u4E3A ",V.createElement("span",null,Ot,"%"),"\uFF1B\u672A\u4F7F\u7528AI\u5DE5\u5177\u7684\u5B66\u751F\u901A\u5173\u4EBA\u6570\u4E3A ",V.createElement("span",null,ct)," \u540D\uFF0C\u901A\u5173\u7387\u4E3A ",V.createElement("span",null,ou,"%"),"\u3002"),nu>=((se=l==null?void 0:l.headerInfo)==null?void 0:se.ai_warn_rate)&&V.createElement("div",{className:"mt5"},"\u4F7F\u7528\u8FC7",V.createElement("b",null,"\u667A\u80FD\u5BA1\u9898"),"\u3001",V.createElement("b",null,"\u8BED\u6CD5\u68C0\u67E5"),"\u3001",V.createElement("b",null,"\u4EE3\u7801\u8BCA\u65AD"),"\u3001",V.createElement("b",null,"AI\u8F85\u5BFC"),"\u4E2D\u4EFB\u4E00\u79CD\u5DE5\u5177\u7684\u5B66\u751F\u6709",V.createElement("span",null,Bu),"\u540D\uFF0C\u5360\u6BD4",V.createElement("span",null,nu,"%"),"\u3002\u8BE5\u90E8\u5206\u5B66\u751F\u4F7F\u7528\u8F85\u52A9\u578BAI\u5DE5\u5177\u8F83\u591A\uFF0C\u5728\u5BA1\u9898\u548C\u57FA\u7840\u4EE3\u7801\u7F16\u5199\u65B9\u9762\u80FD\u529B\u8F83\u6B20\u7F3A\uFF0C\u4E5F\u6709\u53EF\u80FD\u672C\u6B21\u4F5C\u4E1A\u8003\u5BDF\u7684\u5185\u5BB9\u8F83\u96BE\u3002\u5EFA\u8BAE\u60A8\u5728\u540E\u7EED\u6559\u5B66\u8FC7\u7A0B\u4E2D\u589E\u52A0\u57FA\u7840\u77E5\u8BC6\u7684\u8BB2\u89E3\uFF0C\u540C\u65F6\u5BF9\u5B66\u751F\u52A0\u5F3A\u5B9E\u8DF5\u8FD0\u7528\u7684\u5F15\u5BFC\u5E76\u6CE8\u91CD\u5B66\u751F\u4EE3\u7801\u7F16\u5199\u89C4\u8303\u3002"))},Du=(0,e.useRef)(null),Su=(0,e.useRef)(null);return(0,e.useEffect)(()=>{const se=Du.current.getEchartsInstance(),Qe=cu=>{var Au;cu.componentType==="series"&&(ee.current=Gu(bu({},ee==null?void 0:ee.current),{scene_type:Ct,type:(Au=cu==null?void 0:cu.data)==null?void 0:Au.type,course_group_ids:Ne==null?void 0:Ne.course_group_ids}),Pe.current=2,ru(),gt(!0))};se.on("click",Qe);const Kt=Su.current.getEchartsInstance(),gu=cu=>{var Au;cu.componentType==="series"&&(ee.current=Gu(bu({},ee==null?void 0:ee.current),{scene_type:Ct,type:(Au=cu==null?void 0:cu.data)==null?void 0:Au.type,course_group_ids:Ne==null?void 0:Ne.course_group_ids}),Pe.current=3,ru(),gt(!0))};return Kt.on("click",gu),()=>{se.off("click",Qe),Kt.off("click",gu)}},[ee,Ct]),V.createElement("div",null,V.createElement("div",{className:uu.saixuan},V.createElement(Le.default,{form:ze,onChange:fu,initialValues:{course_group_ids:"all",challenge_ids:"all"}},V.createElement(Le.default.Item,{name:"course_group_ids",style:{marginBottom:"15px"}},V.createElement(g.default.Group,{style:{width:"100%"}},V.createElement(ye.Z,null,V.createElement(x.Z,{className:"font14",flex:"80px",style:{marginBottom:10,color:"#9096A3"}},"\u5206\u73ED\u8303\u56F4"),V.createElement(x.Z,{flex:"80px"},V.createElement(g.default,{value:"all"},"\u5168\u90E8")),V.createElement(x.Z,{flex:"1",id:"divhe",style:{overflow:"hidden"}},(Y=(re=l==null?void 0:l.headerInfo)==null?void 0:re.course_group_info)==null?void 0:Y.map((se,Qe)=>V.createElement(g.default,{value:se.course_group_id},se.group_group_name,"(",se.count,")")))))),V.createElement(Le.default.Item,{name:"challenge_ids",style:{marginBottom:"0px"}},V.createElement(g.default.Group,{style:{width:"100%"}},V.createElement(ye.Z,null,V.createElement(x.Z,{className:"font14",flex:"80px",style:{color:"#9096A3"}},"\u4EFB\u52A1\u5173\u5361"),V.createElement(x.Z,{flex:"80px"},V.createElement(g.default,{value:"all"},"\u5168\u90E8")),V.createElement(x.Z,{flex:"1"},w&&(w==null?void 0:w.map((se,Qe)=>V.createElement(g.default,{value:String(se==null?void 0:se.challenge_id)},"\u7B2C",Qe+1,"\u5173"))))))))),V.createElement("div",{className:uu.jianyi},((ge=ut==null?void 0:ut.summary)==null?void 0:ge.used_users_count)>0&&V.createElement(V.Fragment,null,V.createElement("div",{className:uu.jianyi_title},V.createElement("div",{className:uu.title_left},"\u603B\u7ED3\u4E0E\u5EFA\u8BAE"),V.createElement("div",{className:uu.title_right,onClick:()=>{var se;ae((se=l==null?void 0:l.headerInfo)==null?void 0:se.ai_warn_rate),Lt(!0)}},"\u8BBE\u7F6E\u9884\u8B66\u6BD4\u4F8B")),V.createElement("div",{className:uu.yijian},(ut==null?void 0:ut.summary)&&zu())),V.createElement("div",{className:uu.jianyi_title},V.createElement("div",{className:uu.title_left},"\u4F7F\u7528\u603B\u89C8",V.createElement("span",null,"\uFF08\u70B9\u51FB\u6570\u5B57\u53EF\u67E5\u770B\u4F7F\u7528\u60C5\u51B5\uFF09"))),V.createElement("div",{className:uu.zonglan_list},$l==null?void 0:$l.map((se,Qe)=>{var Kt,gu;let cu=(gu=(Kt=ut==null?void 0:ut.student_likes)==null?void 0:Kt.filter(Au=>Au.scene_name==se.name))==null?void 0:gu[0];return V.createElement("div",{key:Qe,className:uu.zonglan_item,onClick:()=>{ee.current=Gu(bu({},ee==null?void 0:ee.current),{scene_type:se.type,course_group_ids:Ne==null?void 0:Ne.course_group_ids}),Pe.current=1,ru(),gt(!0)}},V.createElement("div",{className:uu.item_top},V.createElement("img",{src:Do[se==null?void 0:se.id],className:uu.top_img}),V.createElement("div",{className:uu.top_name},se==null?void 0:se.name)),V.createElement("div",{className:uu.item_bottom},V.createElement("div",null,"\u5171\u8BA1",V.createElement("span",{style:{color:"#165DFF",fontSize:"20px",margin:"0 5px"}},cu==null?void 0:cu.total_counts),"\u6B21"),V.createElement("i",{style:se!=null&&se.like?{color:"#FA8D30",marginLeft:"auto",cursor:"pointer"}:{marginLeft:"auto",cursor:"pointer"},className:"iconfot icon-yijiejue font14"}),V.createElement("span",{style:{marginRight:"20px",marginLeft:"3px"}},cu==null?void 0:cu.praise_count),V.createElement("i",{style:se!=null&&se.dislike?{color:"#e86d7c",cursor:"pointer"}:{cursor:"pointer"},className:"iconfot icon-weijiejuezhengchang font14"}),V.createElement("span",{style:{marginLeft:"3px"}},cu==null?void 0:cu.tread_count)))})),V.createElement("div",{className:uu.jianyi_title},V.createElement("div",{className:uu.title_left},"AI\u5DE5\u5177\u4F7F\u7528\u8BE6\u60C5",V.createElement("span",null,"\uFF08\u70B9\u51FB\u67F1\u72B6\u6216\u73AF\u72B6\u53EF\u67E5\u770B\u8BE6\u60C5\uFF09"))),V.createElement(X.default,{className:uu.tabs_style,items:qe,onChange:se=>{xe(se)}}),V.createElement("div",{className:uu.tubiao},V.createElement("div",{className:uu.pie_style},V.createElement("div",{className:uu.tb_title},Pt==null?void 0:Pt.bar_tips),V.createElement(zn.Z,{ref:Du,option:St,style:{width:530,height:330}})),V.createElement("div",{className:uu.line}),V.createElement("div",{className:uu.bar_style},V.createElement("div",{className:uu.tb_title},Pt==null?void 0:Pt.pie_tips),V.createElement(zn.Z,{ref:Su,option:Ou,style:{width:530,height:310}}))),V.createElement("div",{className:uu.jianyi_title,style:{margin:"30px 0px 20px"}},V.createElement("div",{className:uu.title_left},"\u5B66\u751F\u7C7B\u578B\u5206\u6790",V.createElement("span",null,"\uFF08\u70B9\u51FB\u5361\u7247\u53EF\u67E5\u770B\u4F7F\u7528\u60C5\u51B5\uFF09"))),V.createElement("div",{className:uu.fenxi_list},At==null?void 0:At.map((se,Qe)=>{var Kt,gu,cu;return V.createElement("div",{key:Qe,className:uu.fenxi_item,onClick:()=>{Pe.current=se==null?void 0:se.type,ee.current=Gu(bu({},ee==null?void 0:ee.current),{scene_type:se.id,course_group_ids:Ne==null?void 0:Ne.course_group_ids}),ru(),gt(!0)}},V.createElement("img",{src:se==null?void 0:se.img,style:{width:"114px",height:"115px",borderRadius:"60px"}}),V.createElement("div",{className:uu.leixing},se==null?void 0:se.name,V.createElement("span",null,"(",Qe==0?(Kt=ut==null?void 0:ut.student_types)==null?void 0:Kt.by_tools_users_count:Qe==1?(gu=ut==null?void 0:ut.student_types)==null?void 0:gu.by_quantity_users_count:(cu=ut==null?void 0:ut.student_types)==null?void 0:cu.by_innovate_users_count,"\u4EBA)")),V.createElement("div",{className:uu.pingjia},se==null?void 0:se.des))}))),V.createElement(s.default,{centered:!0,title:V.createElement(V.Fragment,null,"\u5B66\u751F\u4F7F\u7528\u8BE6\u60C5",[2,3].includes(Pe==null?void 0:Pe.current)&&V.createElement("span",{className:"font14 c-grey-666"},"\uFF08",Vt[Ct],"\uFF09")),width:1100,open:Re,destroyOnClose:!0,okText:"\u786E\u5B9A",afterClose:()=>{ee.current={page:1,limit:10,course_group_ids:"all",keyword:"",type:"",scene_type:""}},footer:null,cancelText:"\u53D6\u6D88",onOk:()=>Bn(void 0,null,function*(){}),onCancel:()=>{gt(!1)}},V.createElement("div",{className:uu.inputBox},V.createElement("div",{style:{display:"flex",alignItems:"center",marginBottom:"20px"}},(Pe==null?void 0:Pe.current)==1&&V.createElement(m.default,{defaultValue:(G=ee==null?void 0:ee.current)==null?void 0:G.scene_type,size:"large",style:{width:150,marginRight:"20px"},onChange:se=>{ee.current=Gu(bu({},ee==null?void 0:ee.current),{scene_type:se}),ru()}},V.createElement(m.default.Option,{value:""},"\u5168\u90E8\u7C7B\u578B"),V.createElement(m.default.Option,{value:"1"},"\u667A\u80FD\u5BA1\u9898"),V.createElement(m.default.Option,{value:"5"},"\u8BED\u6CD5\u68C0\u67E5"),V.createElement(m.default.Option,{value:"2"},"\u4EE3\u7801\u8BCA\u65AD"),V.createElement(m.default.Option,{value:"9"},"\u4EE3\u7801\u8BC4\u4EF7"),V.createElement(m.default.Option,{value:"7"},"\u4EE3\u7801\u4F18\u5316"),V.createElement(m.default.Option,{value:"8"},"\u4EE3\u7801\u6CE8\u91CA"),V.createElement(m.default.Option,{value:"3"},"AI\u8F85\u5BFC"),V.createElement(m.default.Option,{value:"10"},"AI\u95EE\u7B54")),["1","2","3","5"].includes(Ct)&&(Pe==null?void 0:Pe.current)==3&&V.createElement(m.default,{defaultValue:(F=ee==null?void 0:ee.current)==null?void 0:F.type,size:"large",style:{width:150,marginRight:"20px"},onChange:se=>{ee.current=Gu(bu({},ee==null?void 0:ee.current),{scene_type:se}),ru()}},V.createElement(m.default.Option,{value:""},"\u5168\u90E8"),V.createElement(m.default.Option,{value:1},"\u672A\u8BC4\u6D4B"),V.createElement(m.default.Option,{value:2},"\u8BC4\u6D4B\u5931\u8D251\u6B21"),V.createElement(m.default.Option,{value:3},"\u8BC4\u6D4B\u5931\u8D252\u6B21"),V.createElement(m.default.Option,{value:4},"\u8BC4\u6D4B\u5931\u8D253\u6B21\u4EE5\u4E0A")),["7","8","9"].includes(Ct)&&(Pe==null?void 0:Pe.current)==3&&V.createElement(m.default,{defaultValue:(ue=ee==null?void 0:ee.current)==null?void 0:ue.type,size:"large",style:{width:150,marginRight:"20px"},onChange:se=>{ee.current=Gu(bu({},ee==null?void 0:ee.current),{scene_type:se}),ru()}},V.createElement(m.default.Option,{value:""},"\u5168\u90E8"),V.createElement(m.default.Option,{value:1},"\u672A\u901A\u5173\u524D\u4F7F\u7528"),V.createElement(m.default.Option,{value:2},"\u901A\u5173\u540E\u4F7F\u7528")),Ct=="10"&&(Pe==null?void 0:Pe.current)==3&&V.createElement(m.default,{defaultValue:(ft=ee==null?void 0:ee.current)==null?void 0:ft.type,size:"large",style:{width:150,marginRight:"20px"},onChange:se=>{ee.current=Gu(bu({},ee==null?void 0:ee.current),{scene_type:se}),ru()}},V.createElement(m.default.Option,{value:""},"\u5168\u90E8"),V.createElement(m.default.Option,{value:1},"1\u8F6E"),V.createElement(m.default.Option,{value:2},"2-3\u8F6E"),V.createElement(m.default.Option,{value:3},"4-5\u8F6E"),V.createElement(m.default.Option,{value:4},"6\u8F6E\u53CA\u4EE5\u4E0A")),V.createElement(m.default,{style:{width:160},mode:"multiple",maxTagCount:"responsive",defaultValue:(Ue=ee==null?void 0:ee.current)==null?void 0:Ue.course_group_ids,getPopupContainer:se=>se.parentNode,onChange:se=>{let Qe=[...se];Qe.length===0&&(Qe=["all"]),Qe.includes("all")&&Qe.length>1&&(Qe[Qe.length-1]=="all"?Qe=["all"]:Qe=Qe.filter(Kt=>Kt!=="all")),ee.current=Gu(bu({},ee==null?void 0:ee.current),{course_group_ids:Qe}),ru()},filterOption:(se,Qe)=>Qe.label.indexOf(se.toLowerCase())>=0,options:[{label:"\u5168\u90E8\u73ED\u7EA7",value:"all"},...((Xe=(Ze=l==null?void 0:l.headerInfo)==null?void 0:Ze.course_group_info)==null?void 0:Xe.map(se=>({label:se==null?void 0:se.group_group_name,value:se==null?void 0:se.course_group_id})))||[]]}),(Pe==null?void 0:Pe.current)==1&&V.createElement(Bo,{onChange:(se,Qe)=>{ee.current=Gu(bu({},ee==null?void 0:ee.current),{start_at:Qe==null?void 0:Qe[0],end_at:Qe==null?void 0:Qe[1]}),ru()},size:"large",style:{width:"300px",marginLeft:20}}),V.createElement(r.t7,{style:{width:290,height:38,marginLeft:"auto"},placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",onChange:se=>{ee.current=Gu(bu({},ee==null?void 0:ee.current),{keyword:se}),ru()}}))),V.createElement(P.default,{style:{marginBottom:iu>0?"0":"20px"},dataSource:tt,pagination:!1,scroll:{y:520},columns:(Ht=[{title:"\u5E8F\u53F7",dataIndex:"index",ellipsis:!0,key:"index",width:55,render:(se,Qe,Kt)=>{var gu;return`${(((gu=ee==null?void 0:ee.current)==null?void 0:gu.page)-1)*10+Kt+1}`}},{title:"\u59D3\u540D",dataIndex:"name",ellipsis:!0},{title:"\u5B66\u53F7",dataIndex:"student_id",ellipsis:!0},{title:"\u73ED\u7EA7",dataIndex:"course_group_name",ellipsis:!0},(Pe==null?void 0:Pe.current)==4&&{title:"\u667A\u80FD\u5BA1\u9898\uFF08\u6B21\uFF09",dataIndex:"scene_1_count",ellipsis:!0},(Pe==null?void 0:Pe.current)==4&&{title:"\u8BED\u6CD5\u68C0\u67E5\uFF08\u6B21\uFF09",dataIndex:"scene_5_count",ellipsis:!0},(Pe==null?void 0:Pe.current)==4&&{title:"\u4EE3\u7801\u8BCA\u65AD\uFF08\u6B21\uFF09",dataIndex:"scene_2_count",ellipsis:!0},(Pe==null?void 0:Pe.current)==4&&{title:"AI\u8F85\u5BFC\uFF08\u6B21\uFF09",dataIndex:"scene_3_count",ellipsis:!0},(Pe==null?void 0:Pe.current)==5&&{title:"\u4EE3\u7801\u8BC4\u4EF7\uFF08\u6B21\uFF09",dataIndex:"scene_9_count",ellipsis:!0},(Pe==null?void 0:Pe.current)==5&&{title:"\u4EE3\u7801\u4F18\u5316\uFF08\u6B21\uFF09",dataIndex:"scene_7_count",ellipsis:!0},(Pe==null?void 0:Pe.current)==5&&{title:"\u4EE3\u7801\u6CE8\u91CA\uFF08\u6B21\uFF09",dataIndex:"scene_8_count",ellipsis:!0},(Pe==null?void 0:Pe.current)==6&&{title:"\u7D2F\u8BA1\u4F7F\u7528\u6B21\u6570",dataIndex:"scene_10_conversation_count",ellipsis:!0},(Pe==null?void 0:Pe.current)==6&&{title:"\u7D2F\u8BA1\u5BF9\u8BDD\u8F6E\u6B21",dataIndex:"scene_10_count",ellipsis:!0},(Pe==null?void 0:Pe.current)==2&&{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"use_times",ellipsis:!0},(Pe==null?void 0:Pe.current)==1&&{title:"\u7C7B\u578B",dataIndex:"scene_type",ellipsis:!0},(Pe==null?void 0:Pe.current)==1&&{title:"\u53CD\u9988",dataIndex:"group_name",ellipsis:!0,render:(se,Qe)=>V.createElement("div",null,V.createElement("i",{className:"iconfot icon-yijiejue font14"}),V.createElement("span",{style:{marginRight:"20px",marginLeft:"3px"}},Qe==null?void 0:Qe.praise_count),V.createElement("i",{className:"iconfot icon-weijiejuezhengchang font14"}),V.createElement("span",{style:{marginLeft:"3px"}},Qe==null?void 0:Qe.tread_count))},(Pe==null?void 0:Pe.current)==1&&{title:"\u4F7F\u7528\u65F6\u95F4",dataIndex:"created_at",ellipsis:!0,width:200,render:(se,Qe)=>V.createElement("div",null,se?M()(se).format("YYYY-MM-DD HH:mm:ss"):"--")},(Pe==null?void 0:Pe.current)==3&&{title:"\u7C7B\u578B",dataIndex:"type_name"}])==null?void 0:Ht.filter(se=>!!se)}),iu>0&&V.createElement("aside",{className:"tc mt30 mb10"},V.createElement(De.Z,{defaultCurrent:1,total:iu,current:1,pageSize:10,onChange:se=>{ee.current=Gu(bu({},ee==null?void 0:ee.current),{page:se}),ru()},showTotal:se=>V.createElement("span",{className:"mr10"},"\u5171",V.createElement("span",{className:"c-blue"}," ",se," "),"\u6761\u6570\u636E")}))),V.createElement(s.default,{centered:!0,title:"\u8BBE\u7F6E\u9884\u8B66\u6BD4\u4F8B",width:600,open:vt,okText:"\u786E\u5B9A",afterClose:()=>{},cancelText:"\u53D6\u6D88",onOk:()=>Bn(void 0,null,function*(){(yield(0,v.ZP)(`/api/homework_commons/${Oe==null?void 0:Oe.categoryId}/shiyan_setting.json`,{method:"post",body:{ai_warn_rate:ht,type:"statis"}})).status===0&&(i.ZP.success("\u4FDD\u5B58\u6210\u529F"),n({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:bu({},Oe)})),Lt(!1)}),onCancel:()=>{Lt(!1)}},V.createElement("div",null,V.createElement("div",null,"\u4F7F\u7528\u8F85\u52A9\u505A\u9898\u5DE5\u5177\uFF08\u667A\u80FD\u5BA1\u9898\u3001\u8BED\u6CD5\u68C0\u67E5\u3001\u4EE3\u7801\u8BCA\u65AD\u3001AI\u8F85\u5BFC\u4E2D\u4EFB\u4E00\u79CD\u5DE5\u5177\uFF09\u7684\u5B66\u751F\u5360\u6BD4\u8D85\u8FC7\u6307\u5B9A\u6BD4\u4F8B\uFF0C\u7CFB\u7EDF\u5C06\u4F1A\u5728\u603B\u7ED3\u5EFA\u8BAE\u6A21\u5757\u5185\u663E\u793A\u5BF9\u5E94\u7684\u9884\u8B66\u4FE1\u606F\u3002"),V.createElement("div",{className:"mt20"},V.createElement(Ye.Z,{size:"large",min:1,max:100,value:ht,step:1,style:{width:"150px"},onChange:se=>{Number.isInteger(se)&&se>=1&&se<=100&&ae(se)}}),V.createElement("span",{className:"ml10"},"%")))))};var xo=(0,o.connect)(({classroomList:t,shixunHomeworks:l})=>({classroomList:t,shixunHomeworks:l}))(Mo),He=u(59301),So=Object.defineProperty,ea=Object.getOwnPropertySymbols,Io=Object.prototype.hasOwnProperty,wo=Object.prototype.propertyIsEnumerable,ta=(t,l,n)=>l in t?So(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,on=(t,l)=>{for(var n in l||(l={}))Io.call(l,n)&&ta(t,n,l[n]);if(ea)for(var n of ea(l))wo.call(l,n)&&ta(t,n,l[n]);return t},In=(t,l,n)=>new Promise(($,re)=>{var Y=F=>{try{G(n.next(F))}catch(ue){re(ue)}},ge=F=>{try{G(n.throw(F))}catch(ue){re(ue)}},G=F=>F.done?$(F.value):Promise.resolve(F.value).then(Y,ge);G((n=n.apply(t,l)).next())});let jo=[{live:"A",gz:"0\u4E2A\u9519\u8BEF",ld:"0\u4E2A\u6F0F\u6D1E",gf:"0 - 5%"},{live:"B",gz:"\u81F3\u5C111\u4E2A\u6B21\u8981\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u6B21\u8981\u6F0F\u6D1E",gf:"6% - 10%"},{live:"C",gz:"\u81F3\u5C111\u4E2A\u4E3B\u8981\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u4E3B\u8981\u6F0F\u6D1E",gf:"11% - 20%"},{live:"D",gz:"\u81F3\u5C111\u4E2A\u4E25\u91CD\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u4E25\u91CD\u6F0F\u6D1E",gf:"21% - 50%"},{live:"E",gz:"\u81F3\u5C111\u4E2A\u963B\u65AD\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u963B\u65AD\u6F0F\u6D1E",gf:"\u8D85\u8FC750%"}];const No=({shixunHomeworks:t,classroomList:l,globalSetting:n,user:$,loading:re,dispatch:Y})=>{var ge,G,F,ue,ft,Ue,Ze,Xe,Ht,Oe,ht,ae,vt,Lt,Ne,Me,ze,Pe,Ct,xe,w,Ie,ee,tt,bt,ut,Jt,Pt,Ge,iu,Fu,Re,gt,qe,Vt,At,Tt,St;const[Ou]=(0,o.useSearchParams)(),et=(0,o.useParams)(),wu=(0,o.useLocation)(),[Pu,ru]=(0,e.useState)(Ou.get("tabs")||"0"),[fu,zu]=(0,e.useState)({}),{workList:Du,shixunWorkList:Su,workSetting:se}=t,[Qe,Kt]=(0,e.useState)(!1);et.category=Ou.get("category_id"),et.order="work_score",et.b_order="desc",(0,e.useEffect)(()=>{(0,z.Rm)()&&Y({type:"classroomList/getAssistantPermissions",payload:{course_id:et.coursesId}}),(0,Sn.hs)(Y)},[(0,z.bg)()]),(0,e.useEffect)(()=>{Pu!=="0"&&Y({type:"shixunHomeworks/getShixunWorkList",payload:et}),new URLSearchParams(wu.search).get("tabs")==="3"&&Y({type:"shixunHomeworks/getWorkSetting",payload:on({},et)}),Y({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:{categoryId:et.categoryId}})},[]);const gu=T=>{T==="3"&&Y({type:"shixunHomeworks/getWorkSetting",payload:on({},et)}),ru(T)},cu=()=>{s.default.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:He.createElement("div",{className:"tc font16"},"\u4F60\u5728\u8BE5\u5B9E\u8BAD\u7684\u5B66\u4E60\u8BB0\u5F55\u5C06\u88AB\u6E05\u7A7A\uFF0C\u65E0\u6CD5\u6062\u590D",He.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u91CD\u505A\uFF1F"),onOk:()=>In(void 0,null,function*(){var T;const ct=(T=t.headerInfo)==null?void 0:T.myshixun_identifier;(yield(0,S.Fr)({id:ct}))&&(i.ZP.info(`\u5DF2\u6E05\u7A7A\u672C\u5B9E\u8BAD\u7684\u5B66\u4E60\u8BB0\u5F55 + +\u8BF7\u70B9\u51FB\u201C\u5F00\u542F\u6311\u6218\u201D\u91CD\u505A\u8BFE\u7A0B\u5B9E\u9A8C`),Y({type:"shixunHomeworks/getShixunWorkList",payload:fu}))})})},Au=T=>{T=T!=null&&T.includes(".json")?T:`${T}.json`,s.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:He.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:()=>In(void 0,null,function*(){const ct=yield(0,ol.$Q)({url:T});if(!ct)return;i.ZP.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8DF5\u9879\u76EE\uFF01");const Ot=yield(0,ol.Ir)({id:ct.shixun_identifier});if(Ot!=null&&Ot.game_identifier){(0,Z.xg)(`/tasks/${Ot.game_identifier}?coursesId=${et.coursesId}`);return}(Ot==null?void 0:Ot.status)===2?Au(Ot==null?void 0:Ot.message):(Ot==null?void 0:Ot.status)===3&&de(Ot==null?void 0:Ot.message)})})},de=T=>{s.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:He.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",T,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},zt=T=>In(void 0,null,function*(){T=T!=null&&T.includes(".json")?T:`${T}.json`;const ct=yield(0,ol.$Q)({url:T});if(console.log(ct,"execRes"),ct!=null&&ct.game_identifier){(0,Z.xg)(`/tasks/${et.coursesId}/${et.categoryId}/${ct.game_identifier}?coursesId=${et.coursesId}`);return}(ct==null?void 0:ct.status)===-3?(0,Z.eF)():(ct==null?void 0:ct.status)===2?Au(ct==null?void 0:ct.message):(ct==null?void 0:ct.status)===3&&de(ct==null?void 0:ct.message)}),vu=[(0,z.GJ)()&&{name:"\u5B66\u751F\u5217\u8868",id:"0",compontent:He.createElement(Cn,{setExportParams:zu}),forceRender:!0},{name:"\u4F5C\u4E1A\u8BE6\u60C5",id:"1",compontent:He.createElement(st,{gotosetting:()=>{Y({type:"shixunHomeworks/getWorkSetting",payload:on({},et)}),ru("3")}})},(0,z.dE)()&&((ge=t==null?void 0:t.headerInfo)==null?void 0:ge.score_open)&&{name:"\u5B66\u751F\u5217\u8868",id:"0",compontent:He.createElement(Cn,{setExportParams:zu}),forceRender:!0},{name:"\u4EE3\u7801\u67E5\u91CD",id:"2",compontent:He.createElement(nl,null)},{name:"\u8D28\u91CF\u68C0\u6D4B",id:"4",compontent:He.createElement(cr,null)},{name:"\u91CD\u505A\u8BB0\u5F55",id:"9",compontent:He.createElement(Sr.Z,null)},(0,z.GJ)()&&{name:"AI\u4F7F\u7528\u7EDF\u8BA1",id:"10",compontent:He.createElement(xo,null)},{name:"\u4F5C\u4E1A\u7EDF\u8BA1\u5206\u6790",id:"5",compontent:He.createElement(Dr.ZP,null)},{name:(0,z.GJ)()?"\u8BBE\u7F6E":"\u5F97\u5206\u89C4\u5219",id:"3",compontent:(F=(G=t==null?void 0:t.headerInfo)==null?void 0:G.homework_status)!=null&&F.includes("\u5BFC\u5165")?He.createElement(xr.Z,null):He.createElement(ur,null),forceRender:!0}].filter(T=>!!T).filter(T=>{var ct,Ot,ou,Bu,nu;return(0,z.dE)()?T.name!=="\u4EE3\u7801\u67E5\u91CD"&&T.name!=="\u4F5C\u4E1A\u7EDF\u8BA1\u5206\u6790"&&T.name!=="\u5F97\u5206\u89C4\u5219":(0,z.dE)()||((Ot=(ct=t==null?void 0:t.headerInfo)==null?void 0:ct.homework_status)==null?void 0:Ot[0])!=="\u5DF2\u622A\u6B62"?T.name!=="\u8D28\u91CF\u68C0\u6D4B":!((ou=t==null?void 0:t.headerInfo)!=null&&ou.code_review)&&((nu=(Bu=t==null?void 0:t.headerInfo)==null?void 0:Bu.homework_status)==null?void 0:nu[0])!=="\u672A\u53D1\u5E03"?!0:T.name!=="\u4EE3\u7801\u67E5\u91CD"}).filter(T=>{var ct;return(ct=t==null?void 0:t.headerInfo)!=null&&ct.open_code_quality_analysis?!0:T.name!=="\u8D28\u91CF\u68C0\u6D4B"}).filter(T=>{var ct;return(ct=t==null?void 0:t.headerInfo)!=null&&ct.action_analysis?!0:T.name!=="\u4F5C\u4E1A\u7EDF\u8BA1\u5206\u6790"}).filter(T=>{var ct,Ot;return(Ot=(ct=t==null?void 0:t.headerInfo)==null?void 0:ct.homework_status)!=null&&Ot.includes("\u5BFC\u5165")?T.name!=="\u4EE3\u7801\u67E5\u91CD"&&T.name!=="\u91CD\u505A\u8BB0\u5F55":!0}).filter(T=>{var ct,Ot;return(Ot=(ct=t==null?void 0:t.headerInfo)==null?void 0:ct.homework_status)!=null&&Ot.includes("\u5BFC\u5165")&&(0,z.dE)()?T.name!=="\u5F97\u5206\u89C4\u5219"&&T.name!=="\u91CD\u505A\u8BB0\u5F55":!0});return He.createElement("section",{style:{background:"#f3f3f3",minHeight:"80vh"}},He.createElement("div",{className:"edu-container"},((ue=t==null?void 0:t.headerInfo)==null?void 0:ue.homework_name)&&He.createElement("section",{className:"animated fadeIn"},He.createElement("aside",{className:"mt10"},((ft=t==null?void 0:t.headerInfo)==null?void 0:ft.category)&&He.createElement(D.Z,{separator:">"},He.createElement(D.Z.Item,null,He.createElement(o.Link,{to:`/classrooms/${et==null?void 0:et.coursesId}/shixun_homework`},(Ue=t==null?void 0:t.headerInfo)==null?void 0:Ue.course_name)),He.createElement(D.Z.Item,null,He.createElement(o.Link,{to:`/classrooms/${et==null?void 0:et.coursesId}/shixun_homework/${(Ze=t==null?void 0:t.headerInfo)!=null&&Ze.category.main?"":(Xe=t==null?void 0:t.headerInfo)==null?void 0:Xe.category.category_id}`},(Oe=(Ht=t==null?void 0:t.headerInfo)==null?void 0:Ht.category)==null?void 0:Oe.category_name)),He.createElement(D.Z.Item,null,"\u4F5C\u4E1A\u8BE6\u60C5"))),He.createElement("aside",{className:[Wn.title,"mt20"].join(" ")},He.createElement(o.Link,{to:`/classrooms/${(ht=t==null?void 0:t.headerInfo)==null?void 0:ht.course_id}/shixun_homework/${(ae=t==null?void 0:t.headerInfo)!=null&&ae.category.main?"":(vt=t==null?void 0:t.headerInfo)==null?void 0:vt.category.category_id}`},He.createElement(U.Z,{className:"font16 c-black"})),He.createElement(j.Z,{title:(Lt=t==null?void 0:t.headerInfo)==null?void 0:Lt.homework_name,placement:"bottom"},He.createElement("strong",{className:"font20 ml5"},(Ne=t==null?void 0:t.headerInfo)==null?void 0:Ne.homework_name)),He.createElement(Z.VV,{temporary:!0,status:(Me=t==null?void 0:t.headerInfo)==null?void 0:Me.homework_status}),Pu==="4"&&He.createElement("span",{className:"iconfont icon-a-wenhaobeifen2",onClick:()=>{Kt(!0)},style:{fontWeight:800,color:"#0152d9",textAlign:"end",flex:1,cursor:"pointer"}},"\u89C4\u5219\u8BF4\u660E"))),He.createElement("aside",{className:"mt30 relative"},((Pe=(ze=t==null?void 0:t.headerInfo)==null?void 0:ze.homework_status)==null?void 0:Pe.includes("\u5BFC\u5165"))&&(0,z.GJ)()&&He.createElement("aside",{className:Wn.rightMenu},He.createElement("p",{onClick:()=>{var T,ct;Y({type:"classroomList/setActionTabs",payload:{key:"\u8865\u5145\u6210\u7EE9",name:(T=t==null?void 0:t.headerInfo)==null?void 0:T.homework_name,id:(ct=t==null?void 0:t.headerInfo)==null?void 0:ct.homework_id,type:"practice"}})}},He.createElement("span",{className:"iconfont icon-shixun3 translateY1"}),"\u8865\u5145\u6210\u7EE9")),!((xe=(Ct=t==null?void 0:t.headerInfo)==null?void 0:Ct.homework_status)!=null&&xe.includes("\u5BFC\u5165"))&&He.createElement("aside",{className:Wn.rightMenu},(0,z.dE)()&&((w=t.headerInfo)==null?void 0:w.redo_work)&&He.createElement("p",{onClick:cu},He.createElement("span",{className:"iconfont icon-dahuizhongzuo3x"}),"\u91CD\u505A"),((Ie=t.headerInfo)==null?void 0:Ie.shixun_status)>1&&((ee=t.headerInfo)==null?void 0:ee.time_status)<5&&(0,z.dE)()&&He.createElement("p",{onClick:()=>In(void 0,null,function*(){var T,ct,Ot,ou,Bu,nu,sn,sl,il;if((0,Sn.tJ)(Y,!0)){if((T=t==null?void 0:t.headerInfo)!=null&&T.can_view_details){(0,Z.xg)(`/shixuns/${(ct=t==null?void 0:t.headerInfo)==null?void 0:ct.shixun_identifier}/challenges`);return}(Bu=(ou=(Ot=t.headerInfo)==null?void 0:Ot.task_operation)==null?void 0:ou[1])!=null&&Bu.includes("/")?zt((sn=(nu=t.headerInfo)==null?void 0:nu.task_operation)==null?void 0:sn[1]):(0,Z.xg)(`/tasks/${(il=(sl=t.headerInfo)==null?void 0:sl.task_operation)==null?void 0:il[1]}`)}})},He.createElement("span",{className:"iconfont icon-kaiqizhong"}),(bt=(tt=t.headerInfo)==null?void 0:tt.task_operation)==null?void 0:bt[0]),((ut=t.headerInfo)==null?void 0:ut.commit_des)&&He.createElement("p",{onClick:()=>{var T;(0,Z.xg)(`/classrooms/${et.coursesId}/shixun_homework/${et.categoryId}/${(T=t.headerInfo)==null?void 0:T.work_id}/commitsummary`)}},He.createElement("span",{className:"iconfont icon-tijiaozongjie"}),(Jt=t.headerInfo)==null?void 0:Jt.commit_des),(0,z.GJ)()&&((Ge=(Pt=t==null?void 0:t.headerInfo)==null?void 0:Pt.homework_status)==null?void 0:Ge.includes("\u672A\u53D1\u5E03"))&&He.createElement("p",{onClick:()=>{var T,ct,Ot,ou;if(((T=$==null?void 0:$.userInfo)==null?void 0:T.user_status)===2){(0,Sn.Rd)();return}let Bu=()=>{var nu;Y({type:"classroomList/setActionTabs",payload:{key:"\u7ACB\u5373\u53D1\u5E03",selectArrs:[et.categoryId],selectArrsAll:[t==null?void 0:t.headerInfo],params:et,detail:!0,type:2,manage_all_group:(nu=t==null?void 0:t.headerInfo)==null?void 0:nu.manage_all_group}})};(ct=t==null?void 0:t.headerInfo)!=null&&ct.high_resources_consume&&!((Ot=t==null?void 0:t.headerInfo)!=null&&Ot.high_resources_consume_permission)?Y({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:et.coursesId,type:"shixun",type_id:et.categoryId,name:(ou=t==null?void 0:t.headerInfo)==null?void 0:ou.homework_name,fn:()=>{Y({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:{categoryId:et.categoryId}}),Bu()}}}):Bu()}},He.createElement("span",{className:"iconfont icon-yishezhifabushijian1 translateY1"}),"\u7ACB\u5373\u53D1\u5E03"),((iu=t.headerInfo)==null?void 0:iu.show_analysis_detail)&&He.createElement("p",{onClick:()=>{var T;(0,Z.xg)(`/classrooms/${et.coursesId}/shixun_homework/${et.categoryId}/analysis/${(T=t.headerInfo)==null?void 0:T.analysis_id}`)}},He.createElement("span",{className:"iconfont icon-a-08zhiliang-xianxing font14 pr5"}),"\u8D28\u91CF\u8BC4\u5206"),((Fu=t.headerInfo)==null?void 0:Fu.is_enter_shixun)&&((0,z.dE)()&&((gt=(Re=t==null?void 0:t.headerInfo)==null?void 0:Re.homework_status)==null?void 0:gt.includes("\u5DF2\u622A\u6B62"))||!(0,z.dE)())&&He.createElement("p",{onClick:()=>In(void 0,null,function*(){var T,ct;(0,z.dE)()?zt((ct=(T=t.headerInfo)==null?void 0:T.task_operation)==null?void 0:ct[1]):(0,Z.xg)(`/shixuns/${t==null?void 0:t.headerInfo.shixun_identifier}/challenges`)})},He.createElement("span",{className:"iconfont icon-shixun3 translateY1"}),"\u8FDB\u5165\u5B9E\u8BAD"),(0,z.GJ)()&&((qe=t==null?void 0:t.headerInfo)==null?void 0:qe.end_immediately)&&He.createElement("p",{style:{background:"#0152d9",color:"#fff"},onClick:()=>{var T,ct;if((0,z.Rm)()&&!((ct=(T=l.AssistantObject)==null?void 0:T.practice)!=null&&ct.can_stop)){i.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Y({type:"classroomList/setActionTabs",payload:{key:"\u7ACB\u5373\u622A\u6B62",params:et,type:2,detail:!0,selectArrs:[et.categoryId]}})}},He.createElement("span",{style:{color:"#fff"},className:"iconfont icon-jiezhishiyan"}),"\u7ACB\u5373\u622A\u6B62")),He.createElement("aside",{className:`mt30 relative ${Wn.workListTabWrap}`},He.createElement(X.default,{type:"card",defaultActiveKey:Pu,activeKey:Pu,onChange:gu},vu.map((T,ct)=>He.createElement(X.default.TabPane,{tab:T.name,key:T.id,forceRender:T.forceRender})))),(At=(Vt=vu.filter(T=>T.id===Pu))==null?void 0:Vt[0])==null?void 0:At.compontent)),He.createElement(yr,null),He.createElement(hr.Z,{successCallback:()=>{Y({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:on({},et)}),Y({type:"shixunHomeworks/getWorkSetting",payload:on({},et)})},visible:l.actionTabs.key==="\u7ACB\u5373\u622A\u6B62",homeworkIds:[et.categoryId],courseId:et.coursesId,isBatch:!1,courseEndTime:(Tt=t==null?void 0:t.headerInfo)==null?void 0:Tt.course_end_date}),He.createElement(Cr.Z,{courseEndTime:(St=t==null?void 0:t.headerInfo)==null?void 0:St.course_end_date}),He.createElement(Br.Z,{onOk:()=>{Y({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:on({},et)}),Y({type:"shixunHomeworks/getWorkSetting",payload:on({},et)}),Y({type:"shixunHomeworks/getShixunWorkList",payload:et})}}),He.createElement(Mr.Z,{onOk:()=>{Y({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:on({},et)}),Y({type:"shixunHomeworks/getWorkSetting",payload:on({},et)}),Y({type:"shixunHomeworks/getShixunWorkList",payload:et})}}),He.createElement(s.default,{open:Qe,title:"\u89C4\u5219\u8BF4\u660E",width:800,footer:null,onCancel:()=>{Kt(!1)}},He.createElement("p",null,"\u4E00\u3001\u7B49\u7EA7\u89C4\u5219"),He.createElement("p",{style:{marginLeft:"10px"}},"1. \u7F3A\u9677\u7B49\u7EA7"),He.createElement("p",{style:{marginLeft:"10px"}},He.createElement(P.default,{dataSource:jo,columns:[{title:"\u7B49\u7EA7",dataIndex:"live"},{title:"\u7F3A\u9677\u8BC4\u4F30\u89C4\u5219",dataIndex:"gz"},{title:"\u6F0F\u6D1E\u8BC4\u4F30\u89C4\u5219",dataIndex:"ld"},{title:"\u4EE3\u7801\u89C4\u8303\u8BC4\u4F30\u89C4\u5219",dataIndex:"gf"}],pagination:!1})),He.createElement("p",{style:{marginLeft:"10px"}},"\u6CE8\uFF1A\u4EE3\u7801\u89C4\u8303\u8BC4\u4F30\u89C4\u5219\u4E2D\u6570\u503C\u6765\u6E90\u4E3A\u8BA1\u7B97\u6280\u672F\u503A\u52A1\u65F6\u95F4\u5360\u5F00\u53D1\u6240\u6709\u4EE3\u7801\u6240\u9700\u8981\u7684\u65F6\u95F4\u7684\u6BD4\u4F8B\uFF08Technical Debt Ratio\uFF09"),He.createElement("p",{style:{marginLeft:"20px"}},"Technical Debt Ratio = \u6280\u672F\u503A\u52A1\u65F6\u95F4 / \u5F00\u53D1\u65F6\u95F4"),He.createElement("p",{style:{marginLeft:"20px"}},"\u6280\u672F\u503A\u52A1\u65F6\u95F4\u4E3A\u4FEE\u590D\u6240\u6709\u95EE\u9898\u6240\u9700\u8981\u7684\u65F6\u95F4\u3002"),He.createElement("p",null,"\u4E8C\u3001\u590D\u6742\u5EA6\u89C4\u5219"),He.createElement("p",{style:{marginLeft:"10px"}},"\u6839\u636E\u4EE3\u7801\u8DEF\u5F84\u6570\u8BA1\u7B97\u7684\u6570\u503C\uFF0C\u6BCF\u5F53\u4E00\u4E2A\u51FD\u6570\u7684\u63A7\u5236\u6D41\u5206\u53C9\u65F6\uFF0C\u590D\u6742\u5EA6\u8BA1\u6570\u5668\u5C31\u4F1A\u81EA\u589E\u4E00\u3002"),He.createElement("p",{style:{marginLeft:"10px"}},"\u6BCF\u4E2A\u7A0B\u5E8F\u8BED\u8A00\u7684\u5173\u952E\u5B57\u5BF9\u5E94\u7684\u590D\u6742\u5EA6\u6570\u636E\u4E0D\u540C\uFF0C\u4F46\u6BCF\u4E2A\u51FD\u6570\u7684\u6700\u5C0F\u590D\u6742\u5EA6\u4E3A1\u3002\uFF08\u7279\u5B9A\u8BED\u8A00\u7684\u8BE6\u7EC6\u6570\u636E\u7565\uFF09"),He.createElement("p",null,"\u4E09\u3001\u4EE3\u7801\u8D28\u91CF\u5206\u89C4\u5219"),He.createElement("p",{style:{marginLeft:"10px"}},"\u4EE3\u7801\u8D28\u91CF\u5206 = 0.5*\u7F3A\u9677\u5206\u6570 + 0.3*\u6F0F\u6D1E\u5206\u6570 + 0.2*\u4EE3\u7801\u89C4\u8303\u6027\u5206\u6570"),He.createElement("p",{style:{marginLeft:"10px"}},"\u5176\u4E2D\uFF1A"),He.createElement("p",{style:{marginLeft:"10px"}},"\u7F3A\u9677/\u6F0F\u6D1E/\u4EE3\u7801\u89C4\u8303\u6027\u5206\u6570\u8BA1\u7B97\u89C4\u5219\u4E3A\uFF1A100 - 100 *((100*\u963B\u65AD\u6570 + 5*\u4E25\u91CD\u6570 + 3*\u4E3B\u8981\u6570 + 1*\u6B21\u6570\uFF09/ \u4EE3\u7801\u884C\u6570\uFF09"),He.createElement("p",{style:{marginLeft:"10px"}},"\u6CE8\uFF1A\u5206\u6570\u4E3A\u7A7A\u7684\u4EE3\u8868\u4E0D\u652F\u6301\u7684\u6587\u4EF6\u683C\u5F0F\u3002")))};var Lo=(0,o.connect)(({shixunHomeworks:t,loading:l,globalSetting:n,classroomList:$,user:re})=>({shixunHomeworks:t,globalSetting:n,loading:l.effects,classroomList:$,user:re}))(No)},43473:function(dt,te,u){"use strict";var e=u(59301),o=u(78241),s=u(43418),i=u(8591),D=u(95237),j=u(43604),X=u(5083),P=u(5112),U=u(24905),Z=u(61186),v=u.n(Z),h=u(99064),W=u(955),_=u(89070),d=u(24065),E=u(92365),B=u(59437),q=u(79834),c=u(33081),y=u(82438),b=u(49692),A=u(59301),R=Object.defineProperty,S=Object.defineProperties,Q=Object.getOwnPropertyDescriptors,M=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,De=(N,ce,f)=>ce in N?R(N,ce,{enumerable:!0,configurable:!0,writable:!0,value:f}):N[ce]=f,ye=(N,ce)=>{for(var f in ce||(ce={}))le.call(ce,f)&&De(N,f,ce[f]);if(M)for(var f of M(ce))k.call(ce,f)&&De(N,f,ce[f]);return N},x=(N,ce)=>S(N,Q(ce)),ve=(N,ce,f)=>new Promise((Ce,z)=>{var r=we=>{try{a(f.next(we))}catch(We){z(We)}},me=we=>{try{a(f.throw(we))}catch(We){z(We)}},a=we=>we.done?Ce(we.value):Promise.resolve(we.value).then(r,me);a((f=f.apply(N,ce)).next())});const m=({classroomList:N,dispatch:ce,courseEndTime:f})=>{var Ce;const z=(0,_.useParams)(),[r]=o.default.useForm(),[me,a]=(0,e.useState)(1),[we,We]=(0,e.useState)([]),[ot,pt]=(0,e.useState)(0),[Je,_e]=(0,e.useState)(20),[Dt,nt]=(0,e.useState)(!0),[Ke,C]=(0,e.useState)([]),[pe,st]=(0,e.useState)(!0),[Le,O]=(0,e.useState)({}),[g,ne]=(0,e.useState)({});z.id=z.coursesId,(0,e.useEffect)(()=>{if(N.actionTabs.key==="\u7ACB\u5373\u53D1\u5E03")if(wt(),Fe(),N.actionTabs.type===2){const yt=N.actionTabs.selectArrsAll[0];st(yt.unified_setting)}else st(!1)},[N.actionTabs]);const Fe=yt=>ve(void 0,null,function*(){nt(!0);const Rt=yield(0,E.c_)(x(ye({},z),{page:yt||me,limit:2e4,homework_id:N.actionTabs.type===1?"":N.actionTabs.selectArrs[0]}));Rt==null||Rt.course_groups.map((Qt,_t)=>{Qt.key=Qt.id,Qt.title=Qt.name,Qt.disabled=Qt.is_published}),Rt&&(We([...Rt==null?void 0:Rt.course_groups]),pt(Rt==null?void 0:Rt.course_groups_count),nt(!1),yt||r.setFieldsValue({publish_time:v()(v()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:v()(v()(new Date).add(7,"days").format("YYYY-MM-DD HH:mm"))}))}),ie=()=>{var yt;let Rt=[...(yt=N.actionTabs.selectArrsAll)==null?void 0:yt.filter(Qt=>Qt.high_resources_consume&&!Qt.high_resources_consume_permission)];(Rt==null?void 0:Rt.length)>0&&N.actionTabs.type===1&&s.default.confirm({centered:!0,icon:null,footer:null,width:560,title:"\u63D0\u793A",closable:!0,content:A.createElement("div",null,A.createElement("div",{className:c.Z.tipcontent},A.createElement("div",{style:{color:"#191919"}},"\u60A8\u6709 ",A.createElement("span",{style:{color:"#f06b14"}},Rt==null?void 0:Rt.length)," \u4E2A\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u53D1\u5E03\u5931\u8D25\uFF0C\u8BF7\u5355\u72EC\u8FDB\u884C\u53D1\u5E03\u3002"),A.createElement("div",{className:"mt20 mb20"},Rt==null?void 0:Rt.map(Qt=>A.createElement("div",{className:c.Z.failedList,key:Qt.homework_id},A.createElement("div",{className:c.Z.name},Qt==null?void 0:Qt.name),A.createElement("div",{className:c.Z.publish,onClick:()=>{(0,W.xg)(`/classrooms/${z.coursesId}/shixun_homework/${Qt.homework_id}/detail?tabs=0`)}},"\u53D1\u5E03"))))))})},Ye=()=>ve(void 0,null,function*(){var yt,Rt,Qt,_t,hu,Cu,du;if((0,d.Rm)()&&!((Rt=(yt=N.AssistantObject)==null?void 0:yt.practice)!=null&&Rt.can_publish)){i.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),L(!1);return}const pu=ye({},r.getFieldsValue());if(pu.end_time<=pu.publish_time){i.ZP.info("\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u5927\u4E8E\u6216\u7B49\u4E8E\u53D1\u5E03\u65F6\u95F4"),L(!1);return}if((Ke==null?void 0:Ke.length)<=0&&!pe&&we.length>0){i.ZP.info("\u53D1\u5E03\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A"),L(!1);return}let Qu={homework_ids:[...N.actionTabs.selectArrs],group_ids:Ke.length>0?Ke.map(Se=>Se.id):(Qt=N.detailShixunsList)==null?void 0:Qt.course_groups,end_time:v()(pu.end_time).format("YYYY-MM-DD HH:mm"),publish_time:v()(pu.publish_time).format("YYYY-MM-DD HH:mm"),unified_setting:!Ke.length},Wu=[...(_t=N.actionTabs.selectArrsAll)==null?void 0:_t.filter(Se=>Se.high_resources_consume&&!Se.high_resources_consume_permission)];if((Wu==null?void 0:Wu.length)==N.actionTabs.selectArrsAll.length&&N.actionTabs.type==1){ce({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),ie();return}((hu=N.actionTabs.selectArrsAll)==null?void 0:hu.length)>0&&N.actionTabs.type===1&&(Qu.homework_ids=[...((du=(Cu=N.actionTabs.selectArrsAll)==null?void 0:Cu.filter(Se=>!Se.high_resources_consume||Se.high_resources_consume_permission))==null?void 0:du.map(Se=>Number(Se==null?void 0:Se.homework_id)))||[]]);let Be=yield(0,b.Tr)({homework_common_ids:[...N.actionTabs.selectArrs],course_id:z.coursesId,type:"homework_common"});(Be==null?void 0:Be.student_count)===0?Ft(Qu):(ne(Qu),O(Be))}),wt=()=>{a(1),We([]),C([])},Ft=yt=>ve(void 0,null,function*(){L(!0);const Rt=yield(0,h.ZP)(`/api/courses/${z.coursesId}/homework_commons/publish_with_homework_list_position.json`,{method:"post",body:ye({},yt)});L(!1),Rt.status===0&&(wt(),(0,W.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u7A0B\u5B9E\u9A8C","\u7ACB\u5373\u53D1\u5E03"]),i.ZP.success("\u53D1\u5E03\u6210\u529F"),ce({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),ie(),(0,d.GJ)()?N.actionTabs.detail?(ce({type:"shixunHomeworks/setActionTabs",payload:{}}),ce({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:ye({},z)}),ce({type:"shixunHomeworks/getWorkSetting",payload:ye({},z)})):ce({type:"classroomList/getClassroomTeacherShixunsList",payload:x(ye({},N.actionTabs.params),{type:4})}):ce({type:"classroomList/getClassroomShixunsList",payload:ye({},N.actionTabs.params)}),localStorage.getItem("Noviceguide")==="0"||ce({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:13,text:A.createElement("div",null,"\u6700\u540E\uFF0C\u54B1\u4EEC\u7ED9\u6559\u5B66\u8BFE\u5802\u6DFB\u52A0\u4E00\u540D\u5B66\u751F~\u70B9\u51FB\u201C\u6DFB\u52A0\u5B66\u751F\u201D\uFF0C\u5728\u5F39\u7A97\u9875\u9762\u4E2D\u8F93\u5165\u5E76\u641C\u7D22\u5B66\u751F\u59D3\u540D\uFF0C\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u5C31\u53EF\u4EE5\u4E3A\u60A8\u7684\u8BFE\u5802\u6DFB\u52A0\u7B2C\u4E00\u4F4D\u5B66\u751F\u5566~")}}))}),rt=ot>me*Je,{detailShixunsList:Xt}=N,[lu,L]=(0,e.useState)(!1);return A.createElement("div",null,A.createElement(s.default,{width:600,centered:!0,confirmLoading:lu,title:"\u53D1\u5E03\u4F5C\u4E1A",open:N.actionTabs.key==="\u7ACB\u5373\u53D1\u5E03",okText:"\u53D1\u5E03\u4F5C\u4E1A",cancelText:"\u6682\u4E0D\u53D1\u5E03",onOk:()=>Ye(),onCancel:()=>{wt(),ce({type:"classroomList/setActionTabs",payload:{}})}},A.createElement("p",{className:"tc"},"\u5B66\u751F\u5C06\u7ACB\u5373\u6536\u5230\u4F5C\u4E1A",A.createElement("br",null),'\u672C\u64CD\u4F5C\u53EA\u5BF9"\u672A\u53D1\u5E03"\u7684\u4F5C\u4E1A\u6709\u6548'),A.createElement(o.default,{form:r},A.createElement("div",{style:{paddingLeft:0}},A.createElement(D.Z,{className:"mt30",align:"middle"},A.createElement(j.Z,null,A.createElement(o.default.Item,{name:"publish_time",label:"\u53D1\u5E03\u65F6\u95F4"},A.createElement(X.default,{style:{width:170,marginRight:"25px"},disabledDate:yt=>(0,q.Q8)(yt,f),disabledTime:yt=>(0,q.d0)(yt),placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:v()((0,W.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1}))),A.createElement(j.Z,{className:"ml20"},A.createElement(o.default.Item,{name:"end_time",label:"\u622A\u6B62\u65F6\u95F4:"},A.createElement(X.default,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:v()((0,W.U6)(),"HH:mm")},disabledDate:yt=>(0,q.Q8)(yt,f,r.getFieldValue("publish_time")),disabledTime:yt=>(0,q.d0)(yt,r.getFieldValue("publish_time")),format:"YYYY-MM-DD HH:mm",allowClear:!1})))),N.actionTabs.type===2&&A.createElement(D.Z,{style:{marginBottom:"10px"}},A.createElement("span",{className:"mr5"},"\u53D1\u5E03\u8BBE\u7F6E:"),A.createElement(P.ZP.Group,{value:pe,onChange:yt=>{st(yt.target.value),C([])}},A.createElement(P.ZP,{value:!0,disabled:!N.actionTabs.manage_all_group},"\u7EDF\u4E00\u53D1\u5E03"),A.createElement(P.ZP,{className:"ml20",disabled:we.length<=0,value:!1},"\u5206\u73ED\u53D1\u5E03"))),we.length<=0&&N.actionTabs.type===2&&A.createElement("span",{style:{marginLeft:"65px",color:"rgba(0, 0, 0, 0.25)"}},'\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03"')),(N.actionTabs.type===1||!pe)&&we.length>0&&A.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},A.createElement("span",{style:{flex:1}},A.createElement(U.default,{checked:Ke.length===we.length,onChange:yt=>{Ke.length===we.length?C([]):C(we)}},"\u5168\u9009")),A.createElement("span",{style:{width:16}}),A.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",Ke.length||0,"\u4E2A\u5206\u73ED")),(N.actionTabs.type===1||!pe)&&we.length>0&&A.createElement(B.Z,{data:we,selectedRowKeys:Ke,setSelectedRowKeys:C}))),A.createElement(y.Z,{resdata:Le,type:((Ce=N.actionTabs.selectArrs)==null?void 0:Ce.length)===1?"shixun":"shixunpush",okloading:lu,oktext:(Le==null?void 0:Le.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:yt=>ve(void 0,null,function*(){L(!0);let Rt=yield(0,h.ZP)(`/api/courses/${z.coursesId}/batch_copy_shixuns.json`,{method:"post",body:{type:"homework_common",ids:[...N.actionTabs.selectArrs]}});L(!1),(Rt==null?void 0:Rt.status)===0&&Ft(g)})}))};te.Z=(0,_.connect)(({classroomList:N})=>({classroomList:N}))(m)},62551:function(dt,te,u){"use strict";var e=u(59301),o=u(54580),s=u(78241),i=u(99313),D=u(1710),j=u(58421),X=u(89070),P=u(99064),U=u(61186),Z=u.n(U),v=u(59301),h=(d,E,B)=>new Promise((q,c)=>{var y=R=>{try{A(B.next(R))}catch(S){c(S)}},b=R=>{try{A(B.throw(R))}catch(S){c(S)}},A=R=>R.done?q(R.value):Promise.resolve(R.value).then(y,b);A((B=B.apply(d,E)).next())});const{Dragger:W}=o.default,_=({})=>{const d=(0,X.useParams)(),[E]=s.default.useForm(),[B,q]=(0,e.useState)(!0),[c,y]=(0,e.useState)(!1);let[b,A]=(0,e.useState)({type:window.location.href.indexOf("program_homework")>-1?2:1,limit:10,page:1});const R=[{name:"\u5168\u90E8",value:"",question_type:0},{name:"\u5355\u9009\u9898",value:"SINGLE",question_type:0},{name:"\u591A\u9009\u9898",value:"MULTIPLE",question_type:1},{name:"\u5224\u65AD\u9898",value:"JUDGMENT",question_type:2},{name:"\u586B\u7A7A\u9898",value:"COMPLETION",question_type:3},{name:"\u7B80\u7B54\u9898",value:"SUBJECTIVE",question_type:4},{name:"\u5B9E\u8BAD\u9898",value:"SHIXUN",question_type:5},{name:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6},{name:"\u7EC4\u5408\u9898",value:"COMBINATION",question_type:7},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM",question_type:8}];function S(){return h(this,null,function*(){let M;y(!0),window.location.href.indexOf("exercise")>-1?M=`/api/exercises/${d==null?void 0:d.categoryId}/redo_logs.json`:M=`/api/homework_commons/${d==null?void 0:d.categoryId}/redo_logs.json`;let le=yield(0,P.ZP)(M,{method:"get",params:b});y(!1),(le==null?void 0:le.status)===0&&q(le==null?void 0:le.data)})}(0,e.useEffect)(()=>{S()},[]);let Q=[{title:"\u59D3\u540D",dataIndex:"user_name"},{title:"\u5B66\u53F7",dataIndex:"student_id"},{title:"\u73ED\u7EA7",dataIndex:"course_group_name"},window.location.href.indexOf("exercise")>-1&&{title:"\u9898\u578B",dataIndex:"question_type",render:(M,le,k)=>{var De;return(De=R.find(ye=>ye.question_type===M))==null?void 0:De.name}},window.location.href.indexOf("exercise")>-1&&{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"question_name"},window.location.href.indexOf("exercise")>-1&&{title:"\u5173\u5361\u540D\u79F0",dataIndex:"challenge_name"},window.location.href.indexOf("exercise")<=-1&&{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"task_name",width:"40%"},{title:"\u64CD\u4F5C",dataIndex:"redo_type",render:(M,le,k)=>{var De;return(De=[{id:1,name:"\u6253\u56DE\u91CD\u505A"},{id:2,name:"\u6062\u590D\u521D\u59CB\u4EE3\u7801"},{id:3,name:"\u91CD\u7F6E\u4EE3\u7801\u4ED3\u5E93"}].find(ye=>ye.id===M))==null?void 0:De.name}},{title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801\u65F6\u95F4",dataIndex:"created_at",render:(M,le,k)=>Z()(M).format("YYYY-MM-DD HH:mm:ss")}].filter(M=>!!M);return v.createElement("div",{style:{padding:"0px 30px",background:"#fff",paddingBottom:30}},v.createElement(i.default,{destroyInactiveTabPane:!0,onChange:M=>{b.type=M,b.page=1,b.limit=10,A(b),S()},items:[window.location.href.indexOf("program_homework")<=-1&&{key:"1",label:"\u6253\u56DE\u91CD\u505A",children:v.createElement(D.default,{className:"mt20",loading:c,columns:[{title:"\u59D3\u540D",dataIndex:"user_name"},{title:"\u5B66\u53F7",dataIndex:"student_id"},{title:"\u73ED\u7EA7",dataIndex:"course_group_name"},{title:"\u6253\u56DE\u91CD\u505A\u65F6\u95F4",dataIndex:"created_at",render:(M,le,k)=>Z()(M).format("YYYY-MM-DD HH:mm:ss")},{title:"\u64CD\u4F5C\u4EBA",dataIndex:"operator"}],dataSource:B==null?void 0:B.list,pagination:!1})},{key:"2",label:"\u91CD\u7F6E\u4EE3\u7801",children:v.createElement(D.default,{className:"mt20",loading:c,columns:Q,dataSource:B==null?void 0:B.list,pagination:!1})}].filter(M=>!!M)}),v.createElement(j.Z,{hideOnSinglePage:!0,showSizeChanger:!1,onChange:(M,le)=>{b.page=M,b.limit=le,A(b),S()},current:b.page,total:B.count,pageSize:b.limit,style:{marginTop:20}}))};te.Z=(0,X.connect)(({classroomList:d})=>({classroomList:d}))(_)},7621:function(dt,te,u){"use strict";var e=u(59301),o=u(54580),s=u(78241),i=u(43418),D=u(5871),j=u(89070),X=u(99064),P=u(61186),U=u.n(P),Z=u(955),v=u(59301),h=Object.defineProperty,W=Object.defineProperties,_=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,q=(S,Q,M)=>Q in S?h(S,Q,{enumerable:!0,configurable:!0,writable:!0,value:M}):S[Q]=M,c=(S,Q)=>{for(var M in Q||(Q={}))E.call(Q,M)&&q(S,M,Q[M]);if(d)for(var M of d(Q))B.call(Q,M)&&q(S,M,Q[M]);return S},y=(S,Q)=>W(S,_(Q)),b=(S,Q,M)=>new Promise((le,k)=>{var De=ve=>{try{x(M.next(ve))}catch(m){k(m)}},ye=ve=>{try{x(M.throw(ve))}catch(m){k(m)}},x=ve=>ve.done?le(ve.value):Promise.resolve(ve.value).then(De,ye);x((M=M.apply(S,Q)).next())});const{Dragger:A}=o.default,R=({classroomList:S,dispatch:Q,onOk:M})=>{const le=(0,j.useParams)(),[k]=s.default.useForm(),[De,ye]=(0,e.useState)(),[x,ve]=(0,e.useState)(!1),m={height:100,onRemove:()=>{ye("")},accept:".xls,.xlsx",multiple:!1,beforeUpload:N=>b(void 0,null,function*(){return ye(N),!1})};return(0,e.useEffect)(()=>{k.setFieldsValue({publish_time:U()(U()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:U()(U()(new Date((0,Z.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))})},[]),v.createElement(i.default,{centered:!0,title:"\u4FEE\u6539\u6210\u7EE9",open:S.actionTabs.key==="\u4FEE\u6539\u6210\u7EE9",okText:"\u786E\u5B9A",width:600,cancelText:"\u53D6\u6D88",okButtonProps:{loading:x},onOk:()=>b(void 0,null,function*(){k.submit()}),onCancel:()=>{k.resetFields(),Q({type:"classroomList/setActionTabs",payload:{}})}},v.createElement(s.default,{form:k,onFinish:N=>b(void 0,null,function*(){var ce,f;console.log("---",S.actionTabs,N,le);let Ce=((ce=S==null?void 0:S.actionTabs)==null?void 0:ce.type)==="exercise"?`/api/exercises/${le==null?void 0:le.category}/exercise_user/edit_score.json`:`/api/student_works/${S.actionTabs.id}/edit_score.json`;ve(!0);let z=yield(0,X.ZP)(Ce,{method:"post",body:y(c({},N),{exercise_user_id:((f=S==null?void 0:S.actionTabs)==null?void 0:f.type)==="exercise"?S.actionTabs.id:""})});ve(!1),k.resetFields(),Q({type:"classroomList/setActionTabs",payload:{}}),M()})},v.createElement(s.default.Item,{label:"\u6700\u7EC8\u6210\u7EE9",style:{marginBottom:0},name:"score",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6700\u7EC8\u6210\u7EE9"}]},v.createElement(D.Z,{min:0,style:{width:"100%"}}))))};te.Z=(0,j.connect)(({classroomList:S})=>({classroomList:S}))(R)},25060:function(dt,te,u){"use strict";var e=u(59301),o=u(54580),s=u(78241),i=u(3113),D=u(95237),j=u(81327),X=u(5083),P=u(89070),U=u(61186),Z=u.n(U),v=u(79834),h=u(99064),W=u(59301),_=(B,q,c)=>new Promise((y,b)=>{var A=Q=>{try{S(c.next(Q))}catch(M){b(M)}},R=Q=>{try{S(c.throw(Q))}catch(M){b(M)}},S=Q=>Q.done?y(Q.value):Promise.resolve(Q.value).then(A,R);S((c=c.apply(B,q)).next())});const{Dragger:d}=o.default,E=({})=>{const B=(0,P.useParams)(),[q]=s.default.useForm(),[c,y]=(0,e.useState)(!0),[b,A]=(0,e.useState)(!1);console.log("----",B);function R(){return _(this,null,function*(){var S,Q;let M;window.location.href.indexOf("exercise")>-1?M=`/api/exercises/${B==null?void 0:B.categoryId}/get_time_setting.json`:M=`/api/homework_commons/${B==null?void 0:B.categoryId}/get_time_setting.json`;let le=yield(0,h.ZP)(M,{method:"get"});(le==null?void 0:le.status)===0&&q.setFieldsValue({publish_time:Z()(Z()((S=le==null?void 0:le.data)==null?void 0:S.publish_time).format("YYYY-MM-DD HH:mm")),end_time:Z()(Z()((Q=le==null?void 0:le.data)==null?void 0:Q.end_time).format("YYYY-MM-DD HH:mm"))})})}return(0,e.useEffect)(()=>{R()},[]),W.createElement("div",{style:{padding:"50px 30px",background:"#fff"}},W.createElement("div",{style:{textAlign:"end"}},c&&W.createElement(i.ZP,{onClick:()=>{y(!1)}},"\u7F16\u8F91\u8BBE\u7F6E"),!c&&W.createElement("div",null,W.createElement(i.ZP,{type:"primary",loading:b,onClick:()=>{q.submit()}},"\u63D0\u4EA4"),W.createElement(i.ZP,{style:{marginLeft:20},onClick:()=>{y(!0)}},"\u53D6\u6D88"))),W.createElement(s.default,{form:q,disabled:c,onFinish:S=>_(void 0,null,function*(){A(!0),console.log("---",window.location.href);let Q;window.location.href.indexOf("exercise")>-1?Q=`/api/exercises/${B==null?void 0:B.categoryId}/time_setting.json`:Q=`/api/homework_commons/${B==null?void 0:B.categoryId}/time_setting.json`;let M=yield(0,h.ZP)(Q,{method:"post",body:{publish_time:Z()(S.publish_time).format("YYYY-MM-DD HH:mm"),end_time:Z()(S.end_time).format("YYYY-MM-DD HH:mm")}});A(!1),(M==null?void 0:M.status)===0&&y(!0)})},W.createElement(D.Z,null,W.createElement(j.Z,null,W.createElement(s.default.Item,{label:"\u5F00\u59CB\u65F6\u95F4",name:"publish_time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4"}]},W.createElement(X.default,{placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},style:{width:260},size:"large",disabledDate:S=>(0,v.Q8)(S),disabledTime:S=>(0,v.d0)(S),allowClear:!1,format:"YYYY-MM-DD HH:mm"})),W.createElement("span",{style:{color:"#999999",fontSize:"14px",height:40,marginBottom:8,display:"block"}},"\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u7684\u65F6\u95F4\uFF09"))),W.createElement(D.Z,null,W.createElement(j.Z,null,W.createElement(s.default.Item,{label:"\u7ED3\u675F\u65F6\u95F4",name:"end_time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4"}]},W.createElement(X.default,{placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},style:{width:260},size:"large",disabledDate:S=>(0,v.Q8)(S,"",q.getFieldValue("publish_time")),disabledTime:S=>(0,v.d0)(S,q.getFieldValue("publish_time")),allowClear:!1,format:"YYYY-MM-DD HH:mm"})),W.createElement("span",{style:{color:"#999999",fontSize:"14px",height:40,marginBottom:8,display:"block"}},"\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u7684\u65F6\u95F4\u622A\u70B9\uFF09")))))};te.Z=(0,P.connect)(({classroomList:B})=>({classroomList:B}))(E)},59437:function(dt,te,u){"use strict";u.d(te,{Z:function(){return Z}});var e=u(59301),o=u(92832),s=u(24905),i=u(95237),D={leftdiv:"leftdiv___aBzsX",listClass:"listClass___bxIEW",spantitle:"spantitle___v_Vc4",rightdiv:"rightdiv___xWu4M"},j="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC",X=u(8797),P=(v,h,W)=>new Promise((_,d)=>{var E=c=>{try{q(W.next(c))}catch(y){d(y)}},B=c=>{try{q(W.throw(c))}catch(y){d(y)}},q=c=>c.done?_(c.value):Promise.resolve(c.value).then(E,B);q((W=W.apply(v,h)).next())}),Z=({data:v,value:h=[],handleChangePage:W,className:_="",setSelectedRowKeys:d,selectedRowKeys:E,onChange:B=()=>{}})=>{const[q,c]=(0,e.useState)([]),[y,b]=(0,e.useState)([]),[A,R]=(0,e.useState)([]);let[S,Q]=(0,e.useState)(1),[M,le]=(0,e.useState)();return(0,e.useEffect)(()=>{c(v),b([]),R([])},[v]),(0,e.useEffect)(()=>{d&&(b(E),R(E))},[E]),e.createElement("div",{className:`flex justify-between w-full ${_}`},e.createElement("div",{className:D.leftdiv},e.createElement(o.default.Search,{size:"middle",style:{marginBottom:"10rem"},onChange:k=>P(void 0,null,function*(){c(v.filter(De=>{var ye;return(ye=De==null?void 0:De.name)==null?void 0:ye.includes(k.target.value)}))}),placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),q.length===0&&e.createElement(X.Z,{styles:{margin:"70rem auto"},customText:"\u6682\u65E0\u5206\u73ED"}),e.createElement("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"}},e.createElement(s.default.Group,{value:y.map(k=>`${k.id}`),onChange:k=>{d(q.filter(De=>k.includes(`${De.id}`)))},style:{marginTop:"10px",flexDirection:"column"}},q.map((k,De)=>e.createElement(i.Z,{key:k.id,style:{marginTop:"10rem",lineHeight:"24rem",display:"flex",width:"200rem"}},e.createElement(s.default,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:k.is_published,value:`${k.id}`},e.createElement("div",{className:D.listClass},e.createElement("span",{className:D.spantitle,style:{width:k.is_published?"108px":"170px"}},k.name),k.is_published&&e.createElement("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"}},"\u5DF2\u53D1\u5E03")))))))),e.createElement("div",{className:D.rightdiv},e.createElement(o.default.Search,{onChange:k=>{R(y.filter(De=>De.name.includes(k.target.value)))},size:"middle",placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),A.length===0&&e.createElement(X.Z,{imgStyles:{width:"200rem"},styles:{margin:"70rem auto"},customText:"\u6682\u672A\u9009\u62E9\u5206\u73ED"}),A.length>0&&e.createElement("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"}},e.createElement("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0}},A.map((k,De)=>e.createElement("div",{className:"flex justify-between item-center",style:{marginTop:"10rem"},key:k.id},e.createElement("div",{className:"multi_ellipsis1 flex-1 minW-0",style:{margin:"0 5rem"}},k.name),e.createElement("img",{src:j,className:"current",style:{height:"16rem",marginRight:"17rem"},onClick:()=>{d(y.filter(ye=>`${ye.id}`!=`${k.id}`))}})))))))}},78297:function(dt,te,u){"use strict";u.d(te,{AD:function(){return ve},D9:function(){return z},Hp:function(){return R},IM:function(){return me},Iy:function(){return Q},KM:function(){return Ke},MJ:function(){return S},Ne:function(){return r},ON:function(){return pt},Uj:function(){return Dt},VY:function(){return We},YO:function(){return _e},YX:function(){return Je},Zn:function(){return d},_g:function(){return y},_k:function(){return f},c6:function(){return ye},cr:function(){return E},eV:function(){return x},fi:function(){return B},gh:function(){return k},hS:function(){return a},iA:function(){return q},j6:function(){return b},je:function(){return ce},jj:function(){return A},kS:function(){return ot},o6:function(){return De},pO:function(){return nt},rQ:function(){return m},sA:function(){return le},xm:function(){return Ce},xo:function(){return we},y8:function(){return N},yd:function(){return c}});var e=u(92365),o=u(89070),s=u(955),i=u(8591),D=u(3294),j=Object.defineProperty,X=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable,Z=(C,pe,st)=>pe in C?j(C,pe,{enumerable:!0,configurable:!0,writable:!0,value:st}):C[pe]=st,v=(C,pe)=>{for(var st in pe||(pe={}))P.call(pe,st)&&Z(C,st,pe[st]);if(X)for(var st of X(pe))U.call(pe,st)&&Z(C,st,pe[st]);return C},h=(C,pe,st)=>new Promise((Le,O)=>{var g=ie=>{try{Fe(st.next(ie))}catch(Ye){O(Ye)}},ne=ie=>{try{Fe(st.throw(ie))}catch(Ye){O(Ye)}},Fe=ie=>ie.done?Le(ie.value):Promise.resolve(ie.value).then(g,ne);Fe((st=st.apply(C,pe)).next())});const W=()=>{(0,o.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},_=()=>{(0,o.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},d=C=>h(void 0,null,function*(){W(),(yield(0,e.YR)(v({},C))).status===0&&(yield(0,s.QH)("",(0,s.NY)({url:D.Z.API_SERVER+`/api/courses/${C.coursesId}/export_couser_info.json`,query:C}))),_()}),E=C=>h(void 0,null,function*(){const pe=yield(0,e.yS)(v({},C));if(pe.status===0)i.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),o.history.push(`/classrooms/${C.coursesId}/exportlist/course_member_act_score`);else{if(pe.status===-2)return pe;pe.status===-3&&((0,o.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),o.history.push(`/classrooms/${C.coursesId}/exportlist/course_member_act_score`))}}),B=C=>h(void 0,null,function*(){const pe=yield(0,e.W0)(v({},C));if(pe.status===0)i.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),o.history.push(`/classrooms/${C.coursesId}/exportlist/course_total_score`);else{if(pe.status===-4)return pe;pe.status===-3&&((0,o.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),o.history.push(`/classrooms/${C.coursesId}/exportlist/course_total_score`))}}),q=C=>h(void 0,null,function*(){const pe=yield(0,e.Nl)(v({},C));if(pe.status===0)i.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),o.history.push(`/classrooms/${C.coursesId}/exportlist/course_total_exercise_and_other`);else{if(pe.status===-4)return pe;pe.status===-3&&((0,o.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),o.history.push(`/classrooms/${C.coursesId}/exportlist/course_total_exercise_and_other`))}}),c=C=>h(void 0,null,function*(){const pe=yield(0,e.IU)(v({},C));if(pe.status===0)i.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),o.history.push(`/classrooms/${C.coursesId}/exportlist/export_star_user`);else{if(pe.status===-4)return pe;pe.status===-3&&((0,o.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),o.history.push(`/classrooms/${C.coursesId}/exportlist/export_star_user`))}}),y=C=>h(void 0,null,function*(){const pe=yield(0,e.td)(v({},C));if(pe.status===0)i.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),o.history.push(`/classrooms/${C.coursesId}/exportlist/course_total_exercise_and_other`);else{if(pe.status===-2)return pe;if(pe.status===-3)(0,o.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),o.history.push(`/classrooms/${C.coursesId}/exportlist/course_total_exercise_and_other`);else if(pe.status===-4)return pe}}),b=C=>h(void 0,null,function*(){const pe=yield(0,e.QX)(v({},C));if(pe.status===0)i.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),o.history.push(`/classrooms/${C.coursesId}/exportlist/course_total_homework`);else{if(pe.status===-4)return pe;pe.status===-3&&((0,o.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),o.history.push(`/classrooms/${C.coursesId}/exportlist/course_total_homework`))}}),A=(C,pe)=>h(void 0,null,function*(){const st=yield(0,e.o_)(v({},C));st.status===0?(i.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),o.history.push(`/classrooms/${C.coursesId}/exportlist/${pe}`)):st.status===-3&&((0,o.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),o.history.push(`/classrooms/${C.coursesId}/exportlist/${pe}`))}),R=(C,pe)=>h(void 0,null,function*(){const st=yield(0,e.ZL)(v({},C));st.status===0?(i.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),o.history.push(`/classrooms/${C.coursesId}/exportlist/${pe}`)):st.status===-3&&((0,o.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),o.history.push(`/classrooms/${C.coursesId}/exportlist/${pe}`))}),S=(C,pe)=>h(void 0,null,function*(){const st=yield(0,e.vV)(v({},C));st.status===0?(i.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),o.history.push(`/classrooms/${C.coursesId}/exportlist/${pe}`)):st.status===-3&&((0,o.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),o.history.push(`/classrooms/${C.coursesId}/exportlist/${pe}`))}),Q=(C,pe)=>h(void 0,null,function*(){const st=yield(0,e.aP)(v({},C));st.status===0?(i.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),o.history.push(`/classrooms/${C.coursesId}/exportlist/${pe}`)):st.status===-3&&((0,o.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),o.history.push(`/classrooms/${C.coursesId}/exportlist/${pe}`))}),M=C=>h(void 0,null,function*(){W(),(yield exportCourseWorkListAppendix(v({},C))).status===0&&(yield downLoadFileIframe("",setUrlQuery({url:ENV.API_SERVER+`/api/homework_commons/${C.categoryId}/works_list.zip`,query:C}))),_()}),le=C=>h(void 0,null,function*(){W(),yield(0,s.QH)("",D.Z.API_SERVER+`/api/polls/${C.categoryId}/commit_result.xlsx`),_()}),k=C=>h(void 0,null,function*(){yield(0,s.FH)("",(0,s.NY)({url:D.Z.API_SERVER+`/api/courses/${C.coursesId}/attendances/export_xlsx_data.xlsx`,query:C}))}),De=C=>h(void 0,null,function*(){yield(0,s.FH)("",(0,s.NY)({url:D.Z.API_SERVER+`/api/courses/${C.coursesId}/video_study_statics.xlsx`,query:C}))}),ye=C=>h(void 0,null,function*(){yield(0,s.FH)("",(0,s.NY)({url:D.Z.API_SERVER+`/api/courses/${C.coursesId}/export_video_study.xlsx`,query:C}))}),x=C=>h(void 0,null,function*(){yield(0,s.FH)("",(0,s.NY)({url:D.Z.API_SERVER+`/api/courses/${C.coursesId}/export_course_students_info.xlsx`,query:C}))}),ve=C=>h(void 0,null,function*(){yield(0,s.FH)("",(0,s.NY)({url:D.Z.API_SERVER+"/api/school_manages/students.xlsx",query:C}))}),m=C=>h(void 0,null,function*(){yield(0,s.FH)("",(0,s.NY)({url:D.Z.API_SERVER+"/api/item_banks/export.xlsx",query:C}))}),N=C=>h(void 0,null,function*(){yield(0,s.FH)("",(0,s.NY)({url:D.Z.API_SERVER+"/api/competitions/region_reports.xlsx",query:C}))}),ce=C=>h(void 0,null,function*(){const pe=yield(0,e.Uy)(v({},C));pe.status===0?(i.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),o.history.push(`/classrooms/${C.coursesId}/exportlist/exercise_score,export_exercise_users`)):pe.status===-3&&((0,o.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),o.history.push(`/classrooms/${C.coursesId}/exportlist/exercise_score,export_exercise_users`))}),f=C=>h(void 0,null,function*(){console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),yield(0,s.FH)("",(0,s.NY)({url:D.Z.API_SERVER+`/api/export_records/${C.id}.xlsx`,query:C}))}),Ce=C=>h(void 0,null,function*(){yield(0,s.FH)("",(0,s.NY)({url:D.Z.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:C}))}),z=C=>h(void 0,null,function*(){yield(0,s.FH)("",(0,s.NY)({url:D.Z.API_SERVER+`/api/courses/${C==null?void 0:C.coursesId}/${C.menuKey}_statistic.xlsx?${C.checkedList.map(pe=>`course_group_id[]=${pe}`).join("&")}`,query:C}))}),r=C=>h(void 0,null,function*(){yield(0,s.FH)("",(0,s.NY)({url:D.Z.API_SERVER+`/api/ec_years/${C==null?void 0:C.ec_year_id}/ec_training_objectives.xlsx`,query:C}))}),me=C=>h(void 0,null,function*(){yield(0,s.FH)(C==null?void 0:C.name,(0,s.NY)({url:D.Z.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:C}))}),a=C=>h(void 0,null,function*(){yield(0,s.FH)("",(0,s.NY)({url:D.Z.API_SERVER+`/api/ec_years/${C==null?void 0:C.ec_year_id}/ec_courses.xlsx`,query:C}))}),we=C=>h(void 0,null,function*(){yield(0,s.FH)("",(0,s.NY)({url:D.Z.API_SERVER+`/api/ec_years/${C==null?void 0:C.ec_year_id}/ec_graduation_requirements.xlsx`,query:C}))}),We=C=>h(void 0,null,function*(){yield(0,s.FH)("",(0,s.NY)({url:D.Z.API_SERVER+"/api/courses/rank_list.xlsx",query:C}))}),ot=C=>h(void 0,null,function*(){yield(0,s.FH)("",(0,s.NY)({url:D.Z.API_SERVER+"/api/courses/question_rank_list.xlsx",query:C}))}),pt=C=>h(void 0,null,function*(){yield(0,s.FH)("",(0,s.NY)({url:D.Z.API_SERVER+`/api/examination_banks/${C.id}.json`,query:C}))}),Je=C=>h(void 0,null,function*(){yield(0,s.FH)("",(0,s.NY)({url:D.Z.API_SERVER+`/api/exercises/${C.categoryId}.json`,query:C}))}),_e=C=>h(void 0,null,function*(){yield(0,s.FH)("",(0,s.NY)({url:D.Z.API_SERVER+`/api/polls/${C==null?void 0:C.id}/commit_result.json`,query:C}))}),Dt=C=>h(void 0,null,function*(){yield(0,s.FH)("",(0,s.NY)({url:D.Z.API_SERVER+"/api/paths/get_task_pass.json",query:C}))}),nt=(C,pe)=>h(void 0,null,function*(){yield(0,s.FH)(pe||"",(0,s.NY)({url:D.Z.API_SERVER+`/api/exercises/${C==null?void 0:C.exercise_id}/consult_exercise.json`,query:C}))}),Ke=C=>h(void 0,null,function*(){yield(0,s.FH)("",(0,s.NY)({url:D.Z.API_SERVER+`/api/competitions/${C==null?void 0:C.identifier}/competition_commit_records/member_works.xlsx`,query:C}))})},83312:function(dt,te,u){"use strict";u.d(te,{U:function(){return U}});var e=u(59301),o=Object.defineProperty,s=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable,j=(Z,v,h)=>v in Z?o(Z,v,{enumerable:!0,configurable:!0,writable:!0,value:h}):Z[v]=h,X=(Z,v)=>{for(var h in v||(v={}))i.call(v,h)&&j(Z,h,v[h]);if(s)for(var h of s(v))D.call(v,h)&&j(Z,h,v[h]);return Z},P=(Z,v,h)=>new Promise((W,_)=>{var d=q=>{try{B(h.next(q))}catch(c){_(c)}},E=q=>{try{B(h.throw(q))}catch(c){_(c)}},B=q=>q.done?W(q.value):Promise.resolve(q.value).then(d,E);B((h=h.apply(Z,v)).next())});function U(Z,v){const[h,W]=(0,e.useState)(v),[_,d]=(0,e.useState)(!1),[E,B]=(0,e.useState)();return[h,_,(c,y=!1)=>P(this,null,function*(){const b=y?v:X(X({},h),c);d(!0),W(b);const A=yield Z(b);return d(!1),B(A),A}),E,B]}},97177:function(dt,te,u){"use strict";u.d(te,{Z:function(){return X}});var e=u(59301),o=u.p+"static/modelContact.7a7eb113.png",s=u(91785),i=u(24065),D=u(59301),X=()=>{const[P,U]=(0,e.useState)(!1);return{verifyModelUser:()=>(0,i.$O)()?!0:(U(!0),!1),ContactModalElement:()=>D.createElement(s.Z,{visible:P,setVisible:U,image:o}),contactOpen:P,setContactOpen:U}}},88522:function(dt,te,u){"use strict";var e=u(92310),o=u.n(e),s=u(11592),i=u(2738),D=u(59301),j=u(53487),X=u(92343),P=u(36355),U=u(57809);const{Option:Z}=U.default;function v(d){return d&&d.type&&(d.type.isSelectOption||d.type.isSelectOptGroup)}const h=(d,E)=>{const{prefixCls:B,className:q,popupClassName:c,dropdownClassName:y,children:b,dataSource:A}=d,R=(0,s.Z)(b);let S;R.length===1&&(0,X.l$)(R[0])&&!v(R[0])&&([S]=R);const Q=S?()=>S:void 0;let M;R.length&&v(R[0])?M=b:M=A?A.map(De=>{if((0,X.l$)(De))return De;switch(typeof De){case"string":return D.createElement(Z,{key:De,value:De},De);case"object":{const{value:ye}=De;return D.createElement(Z,{key:ye,value:ye},De.text)}default:return}}):[];const{getPrefixCls:le}=D.useContext(P.E_),k=le("select",B);return D.createElement(U.default,Object.assign({ref:E,suffixIcon:null},(0,i.Z)(d,["dataSource","dropdownClassName"]),{prefixCls:k,popupClassName:c||y,className:o()(`${k}-auto-complete`,q),mode:U.default.SECRET_COMBOBOX_MODE_DO_NOT_USE},{getInputElement:Q}),M)},W=D.forwardRef(h),_=(0,j.Z)(W);W.Option=Z,W._InternalPanelDoNotUseOrYouWillBeFired=_,te.Z=W},66104:function(dt,te,u){"use strict";u.d(te,{Z:function(){return ve}});var e=u(92310),o=u.n(e),s=u(11592),i=u(26112),D=u(59301),j=u(92343),X=u(36355),P=u(84105),U=u(91857);const Z=m=>{let{children:N}=m;const{getPrefixCls:ce}=D.useContext(X.E_),f=ce("breadcrumb");return D.createElement("li",{className:`${f}-separator`,"aria-hidden":"true"},N===""?N:N||"/")};Z.__ANT_BREADCRUMB_SEPARATOR=!0;var v=Z,h=function(m,N){var ce={};for(var f in m)Object.prototype.hasOwnProperty.call(m,f)&&N.indexOf(f)<0&&(ce[f]=m[f]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,f=Object.getOwnPropertySymbols(m);CeN[Ce]||f)}function _(m,N,ce,f){if(ce==null)return null;const{className:Ce,onClick:z}=N,r=h(N,["className","onClick"]),me=Object.assign(Object.assign({},(0,i.Z)(r,{data:!0,aria:!0})),{onClick:z});return f!==void 0?D.createElement("a",Object.assign({},me,{className:o()(`${m}-link`,Ce),href:f}),ce):D.createElement("span",Object.assign({},me,{className:o()(`${m}-link`,Ce)}),ce)}function d(m,N){return(f,Ce,z,r,me)=>{if(N)return N(f,Ce,z,r);const a=W(f,Ce);return _(m,f,a,me)}}var E=function(m,N){var ce={};for(var f in m)Object.prototype.hasOwnProperty.call(m,f)&&N.indexOf(f)<0&&(ce[f]=m[f]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,f=Object.getOwnPropertySymbols(m);Ce{const{prefixCls:N,separator:ce="/",children:f,menu:Ce,overlay:z,dropdownProps:r,href:me}=m,we=(We=>{if(Ce||z){const ot=Object.assign({},r);if(Ce){const pt=Ce||{},{items:Je}=pt,_e=E(pt,["items"]);ot.menu=Object.assign(Object.assign({},_e),{items:Je==null?void 0:Je.map((Dt,nt)=>{var{key:Ke,title:C,label:pe,path:st}=Dt,Le=E(Dt,["key","title","label","path"]);let O=pe!=null?pe:C;return st&&(O=D.createElement("a",{href:`${me}${st}`},O)),Object.assign(Object.assign({},Le),{key:Ke!=null?Ke:nt,label:O})})})}else z&&(ot.overlay=z);return D.createElement(U.Z,Object.assign({placement:"bottom"},ot),D.createElement("span",{className:`${N}-overlay-link`},We,D.createElement(P.Z,null)))}return We})(f);return we!=null?D.createElement(D.Fragment,null,D.createElement("li",null,we),ce&&D.createElement(v,null,ce)):null},q=m=>{const{prefixCls:N,children:ce,href:f}=m,Ce=E(m,["prefixCls","children","href"]),{getPrefixCls:z}=D.useContext(X.E_),r=z("breadcrumb",N);return D.createElement(B,Object.assign({},Ce,{prefixCls:r}),_(r,Ce,ce,f))};q.__ANT_BREADCRUMB_ITEM=!0;var c=q,y=u(17313),b=u(83116),A=u(37613);const R=m=>{const{componentCls:N,iconCls:ce}=m;return{[N]:Object.assign(Object.assign({},(0,y.Wf)(m)),{color:m.itemColor,fontSize:m.fontSize,[ce]:{fontSize:m.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:m.linkColor,transition:`color ${m.motionDurationMid}`,padding:`0 ${m.paddingXXS}px`,borderRadius:m.borderRadiusSM,height:m.lineHeight*m.fontSize,display:"inline-block",marginInline:-m.marginXXS,"&:hover":{color:m.linkHoverColor,backgroundColor:m.colorBgTextHover}},(0,y.Qy)(m)),"li:last-child":{color:m.lastItemColor},[`${N}-separator`]:{marginInline:m.separatorMargin,color:m.separatorColor},[`${N}-link`]:{[` + > ${ce} + span, + > ${ce} + a + `]:{marginInlineStart:m.marginXXS}},[`${N}-overlay-link`]:{borderRadius:m.borderRadiusSM,height:m.lineHeight*m.fontSize,display:"inline-block",padding:`0 ${m.paddingXXS}px`,marginInline:-m.marginXXS,[`> ${ce}`]:{marginInlineStart:m.marginXXS,fontSize:m.fontSizeIcon},"&:hover":{color:m.linkHoverColor,backgroundColor:m.colorBgTextHover,a:{color:m.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${m.componentCls}-rtl`]:{direction:"rtl"}})}};var S=(0,b.Z)("Breadcrumb",m=>{const N=(0,A.TS)(m,{});return[R(N)]},m=>({itemColor:m.colorTextDescription,lastItemColor:m.colorText,iconFontSize:m.fontSize,linkColor:m.colorTextDescription,linkHoverColor:m.colorText,separatorColor:m.colorTextDescription,separatorMargin:m.marginXS})),Q=function(m,N){var ce={};for(var f in m)Object.prototype.hasOwnProperty.call(m,f)&&N.indexOf(f)<0&&(ce[f]=m[f]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,f=Object.getOwnPropertySymbols(m);Ce{var{breadcrumbName:r}=z,me=Q(z,["breadcrumbName"]);return Object.assign(Object.assign({},me),{title:r})})}),Ce}function le(m,N){return(0,D.useMemo)(()=>m||(N?N.map(M):null),[m,N])}var k=function(m,N){var ce={};for(var f in m)Object.prototype.hasOwnProperty.call(m,f)&&N.indexOf(f)<0&&(ce[f]=m[f]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,f=Object.getOwnPropertySymbols(m);Ce{if(N===void 0)return N;let ce=(N||"").replace(/^\//,"");return Object.keys(m).forEach(f=>{ce=ce.replace(`:${f}`,m[f])}),ce},ye=m=>{const{prefixCls:N,separator:ce="/",style:f,className:Ce,rootClassName:z,routes:r,items:me,children:a,itemRender:we,params:We={}}=m,ot=k(m,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:pt,direction:Je,breadcrumb:_e}=D.useContext(X.E_);let Dt;const nt=pt("breadcrumb",N),[Ke,C]=S(nt),pe=le(me,r),st=d(nt,we);if(pe&&pe.length>0){const g=[],ne=me||r;Dt=pe.map((Fe,ie)=>{const{path:Ye,key:wt,type:Ft,menu:rt,overlay:Xt,onClick:lu,className:L,separator:yt,dropdownProps:Rt}=Fe,Qt=De(We,Ye);Qt!==void 0&&g.push(Qt);const _t=wt!=null?wt:ie;if(Ft==="separator")return D.createElement(v,{key:_t},yt);const hu={},Cu=ie===pe.length-1;rt?hu.menu=rt:Xt&&(hu.overlay=Xt);let{href:du}=Fe;return g.length&&Qt!==void 0&&(du=`#/${g.join("/")}`),D.createElement(B,Object.assign({key:_t},hu,(0,i.Z)(Fe,{data:!0,aria:!0}),{className:L,dropdownProps:Rt,href:du,separator:Cu?"":ce,onClick:lu,prefixCls:nt}),st(Fe,We,ne,g,du))})}else if(a){const g=(0,s.Z)(a).length;Dt=(0,s.Z)(a).map((ne,Fe)=>{if(!ne)return ne;const ie=Fe===g-1;return(0,j.Tm)(ne,{separator:ie?"":ce,key:Fe})})}const Le=o()(nt,_e==null?void 0:_e.className,{[`${nt}-rtl`]:Je==="rtl"},Ce,z,C),O=Object.assign(Object.assign({},_e==null?void 0:_e.style),f);return Ke(D.createElement("nav",Object.assign({className:Le,style:O},ot),D.createElement("ol",null,Dt)))};ye.Item=c,ye.Separator=v;var x=ye,ve=x},13570:function(dt,te,u){"use strict";u.d(te,{Z:function(){return z}});var e=u(72308),o=u(59301),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},i=s,D=u(7657),j=function(me,a){return o.createElement(D.Z,(0,e.Z)({},me,{ref:a,icon:i}))},X=o.forwardRef(j),P=X,U=u(92310),Z=u.n(U),v=u(49618),h=u(52487),W=u(74416),_=u(18929),d=u(10228),E=u(26112);function B(r,me){var a=r.disabled,we=r.prefixCls,We=r.character,ot=r.characterRender,pt=r.index,Je=r.count,_e=r.value,Dt=r.allowHalf,nt=r.focused,Ke=r.onHover,C=r.onClick,pe=function(Ye){Ke(Ye,pt)},st=function(Ye){C(Ye,pt)},Le=function(Ye){Ye.keyCode===d.Z.ENTER&&C(Ye,pt)},O=pt+1,g=new Set([we]);_e===0&&pt===0&&nt?g.add("".concat(we,"-focused")):Dt&&_e+.5>=O&&_ept?"true":"false","aria-posinset":pt+1,"aria-setsize":Je,tabIndex:a?-1:0},o.createElement("div",{className:"".concat(we,"-first")},ne),o.createElement("div",{className:"".concat(we,"-second")},ne)));return ot&&(Fe=ot(Fe,r)),Fe}var q=o.forwardRef(B);function c(){var r=o.useRef({});function me(we){return r.current[we]}function a(we){return function(We){r.current[we]=We}}return[me,a]}function y(r){var me=r.pageXOffset,a="scrollLeft";if(typeof me!="number"){var we=r.document;me=we.documentElement[a],typeof me!="number"&&(me=we.body[a])}return me}function b(r){var me,a,we=r.ownerDocument,We=we.body,ot=we&&we.documentElement,pt=r.getBoundingClientRect();return me=pt.left,a=pt.top,me-=ot.clientLeft||We.clientLeft||0,a-=ot.clientTop||We.clientTop||0,{left:me,top:a}}function A(r){var me=b(r),a=r.ownerDocument,we=a.defaultView||a.parentWindow;return me.left+=y(we),me.left}var R=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function S(r,me){var a,we=r.prefixCls,We=we===void 0?"rc-rate":we,ot=r.className,pt=r.defaultValue,Je=r.value,_e=r.count,Dt=_e===void 0?5:_e,nt=r.allowHalf,Ke=nt===void 0?!1:nt,C=r.allowClear,pe=C===void 0?!0:C,st=r.character,Le=st===void 0?"\u2605":st,O=r.characterRender,g=r.disabled,ne=r.direction,Fe=ne===void 0?"ltr":ne,ie=r.tabIndex,Ye=ie===void 0?0:ie,wt=r.autoFocus,Ft=r.onHoverChange,rt=r.onChange,Xt=r.onFocus,lu=r.onBlur,L=r.onKeyDown,yt=r.onMouseLeave,Rt=(0,W.Z)(r,R),Qt=c(),_t=(0,h.Z)(Qt,2),hu=_t[0],Cu=_t[1],du=o.useRef(null),pu=function(){if(!g){var Ve;(Ve=du.current)===null||Ve===void 0||Ve.focus()}};o.useImperativeHandle(me,function(){return{focus:pu,blur:function(){if(!g){var Ve;(Ve=du.current)===null||Ve===void 0||Ve.blur()}}}});var Qu=(0,_.Z)(pt||0,{value:Je}),Wu=(0,h.Z)(Qu,2),Be=Wu[0],Se=Wu[1],oe=(0,_.Z)(null),ke=(0,h.Z)(oe,2),Nt=ke[0],eu=ke[1],mt=function(Ve,Gt){var Bt=Fe==="rtl",$e=Ve+1;if(Ke){var Eu=hu(Ve),mu=A(Eu),kt=Eu.clientWidth;(Bt&&Gt-mu>kt/2||!Bt&&Gt-mu0&&!Bt||Gt===d.Z.RIGHT&&$e>0&&Bt?(Ke?$e-=.5:$e-=1,Et($e),Ve.preventDefault()):Gt===d.Z.LEFT&&$e{const{componentCls:me}=r;return{[`${me}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:r.marginXS},"> div":{transition:`all ${r.motionDurationMid}, outline 0s`,"&:hover":{transform:r.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${r.lineWidth}px dashed ${r.starColor}`,transform:r.starHoverScale}},"&-first, &-second":{color:r.starBg,transition:`all ${r.motionDurationMid}`,userSelect:"none",[r.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${me}-star-first, &-half ${me}-star-second`]:{opacity:1},[`&-half ${me}-star-first, &-full ${me}-star-second`]:{color:"inherit"}}}},m=r=>({[`&-rtl${r.componentCls}`]:{direction:"rtl"}}),N=r=>{const{componentCls:me}=r;return{[me]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,De.Wf)(r)),{display:"inline-block",margin:0,padding:0,color:r.starColor,fontSize:r.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${me} ${me}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),ve(r)),{[`+ ${me}-text`]:{display:"inline-block",marginInlineStart:r.marginXS,fontSize:r.fontSize}}),m(r))}};var ce=(0,ye.Z)("Rate",r=>{const me=(0,x.TS)(r,{});return[N(me)]},r=>({starColor:r.yellow6,starSize:r.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:r.colorFillContent})),f=function(r,me){var a={};for(var we in r)Object.prototype.hasOwnProperty.call(r,we)&&me.indexOf(we)<0&&(a[we]=r[we]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,we=Object.getOwnPropertySymbols(r);We{const{prefixCls:a,className:we,rootClassName:We,style:ot,tooltips:pt,character:Je=o.createElement(P,null)}=r,_e=f(r,["prefixCls","className","rootClassName","style","tooltips","character"]),Dt=(g,ne)=>{let{index:Fe}=ne;return pt?o.createElement(k.Z,{title:pt[Fe]},g):g},{getPrefixCls:nt,direction:Ke,rate:C}=o.useContext(le.E_),pe=nt("rate",a),[st,Le]=ce(pe),O=Object.assign(Object.assign({},C==null?void 0:C.style),ot);return st(o.createElement(M,Object.assign({ref:me,character:Je,characterRender:Dt},_e,{className:Z()(we,We,Le,C==null?void 0:C.className),style:O,prefixCls:pe,direction:Ke})))})},61621:function(dt,te,u){"use strict";u.d(te,{Z:function(){return Le}});var e=u(92310),o=u.n(e),s=u(59301),i=u(36355),D=u(2738),X=O=>{const{prefixCls:g,className:ne,style:Fe,size:ie,shape:Ye}=O,wt=o()({[`${g}-lg`]:ie==="large",[`${g}-sm`]:ie==="small"}),Ft=o()({[`${g}-circle`]:Ye==="circle",[`${g}-square`]:Ye==="square",[`${g}-round`]:Ye==="round"}),rt=s.useMemo(()=>typeof ie=="number"?{width:ie,height:ie,lineHeight:`${ie}px`}:{},[ie]);return s.createElement("span",{className:o()(g,wt,Ft,ne),style:Object.assign(Object.assign({},rt),Fe)})},P=u(93083),U=u(83116),Z=u(37613);const v=new P.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),h=O=>({height:O,lineHeight:`${O}px`}),W=O=>Object.assign({width:O},h(O)),_=O=>({background:O.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:v,animationDuration:O.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),d=O=>Object.assign({width:O*5,minWidth:O*5},h(O)),E=O=>{const{skeletonAvatarCls:g,gradientFromColor:ne,controlHeight:Fe,controlHeightLG:ie,controlHeightSM:Ye}=O;return{[`${g}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ne},W(Fe)),[`${g}${g}-circle`]:{borderRadius:"50%"},[`${g}${g}-lg`]:Object.assign({},W(ie)),[`${g}${g}-sm`]:Object.assign({},W(Ye))}},B=O=>{const{controlHeight:g,borderRadiusSM:ne,skeletonInputCls:Fe,controlHeightLG:ie,controlHeightSM:Ye,gradientFromColor:wt}=O;return{[`${Fe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:wt,borderRadius:ne},d(g)),[`${Fe}-lg`]:Object.assign({},d(ie)),[`${Fe}-sm`]:Object.assign({},d(Ye))}},q=O=>Object.assign({width:O},h(O)),c=O=>{const{skeletonImageCls:g,imageSizeBase:ne,gradientFromColor:Fe,borderRadiusSM:ie}=O;return{[`${g}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Fe,borderRadius:ie},q(ne*2)),{[`${g}-path`]:{fill:"#bfbfbf"},[`${g}-svg`]:Object.assign(Object.assign({},q(ne)),{maxWidth:ne*4,maxHeight:ne*4}),[`${g}-svg${g}-svg-circle`]:{borderRadius:"50%"}}),[`${g}${g}-circle`]:{borderRadius:"50%"}}},y=(O,g,ne)=>{const{skeletonButtonCls:Fe}=O;return{[`${ne}${Fe}-circle`]:{width:g,minWidth:g,borderRadius:"50%"},[`${ne}${Fe}-round`]:{borderRadius:g}}},b=O=>Object.assign({width:O*2,minWidth:O*2},h(O)),A=O=>{const{borderRadiusSM:g,skeletonButtonCls:ne,controlHeight:Fe,controlHeightLG:ie,controlHeightSM:Ye,gradientFromColor:wt}=O;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${ne}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:wt,borderRadius:g,width:Fe*2,minWidth:Fe*2},b(Fe))},y(O,Fe,ne)),{[`${ne}-lg`]:Object.assign({},b(ie))}),y(O,ie,`${ne}-lg`)),{[`${ne}-sm`]:Object.assign({},b(Ye))}),y(O,Ye,`${ne}-sm`))},R=O=>{const{componentCls:g,skeletonAvatarCls:ne,skeletonTitleCls:Fe,skeletonParagraphCls:ie,skeletonButtonCls:Ye,skeletonInputCls:wt,skeletonImageCls:Ft,controlHeight:rt,controlHeightLG:Xt,controlHeightSM:lu,gradientFromColor:L,padding:yt,marginSM:Rt,borderRadius:Qt,titleHeight:_t,blockRadius:hu,paragraphLiHeight:Cu,controlHeightXS:du,paragraphMarginTop:pu}=O;return{[`${g}`]:{display:"table",width:"100%",[`${g}-header`]:{display:"table-cell",paddingInlineEnd:yt,verticalAlign:"top",[`${ne}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:L},W(rt)),[`${ne}-circle`]:{borderRadius:"50%"},[`${ne}-lg`]:Object.assign({},W(Xt)),[`${ne}-sm`]:Object.assign({},W(lu))},[`${g}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Fe}`]:{width:"100%",height:_t,background:L,borderRadius:hu,[`+ ${ie}`]:{marginBlockStart:lu}},[`${ie}`]:{padding:0,"> li":{width:"100%",height:Cu,listStyle:"none",background:L,borderRadius:hu,"+ li":{marginBlockStart:du}}},[`${ie}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${g}-content`]:{[`${Fe}, ${ie} > li`]:{borderRadius:Qt}}},[`${g}-with-avatar ${g}-content`]:{[`${Fe}`]:{marginBlockStart:Rt,[`+ ${ie}`]:{marginBlockStart:pu}}},[`${g}${g}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},A(O)),E(O)),B(O)),c(O)),[`${g}${g}-block`]:{width:"100%",[`${Ye}`]:{width:"100%"},[`${wt}`]:{width:"100%"}},[`${g}${g}-active`]:{[` + ${Fe}, + ${ie} > li, + ${ne}, + ${Ye}, + ${wt}, + ${Ft} + `]:Object.assign({},_(O))}}};var S=(0,U.Z)("Skeleton",O=>{const{componentCls:g}=O,ne=(0,Z.TS)(O,{skeletonAvatarCls:`${g}-avatar`,skeletonTitleCls:`${g}-title`,skeletonParagraphCls:`${g}-paragraph`,skeletonButtonCls:`${g}-button`,skeletonInputCls:`${g}-input`,skeletonImageCls:`${g}-image`,imageSizeBase:O.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${O.gradientFromColor} 25%, ${O.gradientToColor} 37%, ${O.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[R(ne)]},O=>{const{colorFillContent:g,colorFill:ne}=O,Fe=g,ie=ne;return{color:Fe,colorGradientEnd:ie,gradientFromColor:Fe,gradientToColor:ie,titleHeight:O.controlHeight/2,blockRadius:O.borderRadiusSM,paragraphMarginTop:O.marginLG+O.marginXXS,paragraphLiHeight:O.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),M=O=>{const{prefixCls:g,className:ne,rootClassName:Fe,active:ie,shape:Ye="circle",size:wt="default"}=O,{getPrefixCls:Ft}=s.useContext(i.E_),rt=Ft("skeleton",g),[Xt,lu]=S(rt),L=(0,D.Z)(O,["prefixCls","className"]),yt=o()(rt,`${rt}-element`,{[`${rt}-active`]:ie},ne,Fe,lu);return Xt(s.createElement("div",{className:yt},s.createElement(X,Object.assign({prefixCls:`${rt}-avatar`,shape:Ye,size:wt},L))))},k=O=>{const{prefixCls:g,className:ne,rootClassName:Fe,active:ie,block:Ye=!1,size:wt="default"}=O,{getPrefixCls:Ft}=s.useContext(i.E_),rt=Ft("skeleton",g),[Xt,lu]=S(rt),L=(0,D.Z)(O,["prefixCls"]),yt=o()(rt,`${rt}-element`,{[`${rt}-active`]:ie,[`${rt}-block`]:Ye},ne,Fe,lu);return Xt(s.createElement("div",{className:yt},s.createElement(X,Object.assign({prefixCls:`${rt}-button`,size:wt},L))))};const De="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var x=O=>{const{prefixCls:g,className:ne,rootClassName:Fe,style:ie,active:Ye}=O,{getPrefixCls:wt}=s.useContext(i.E_),Ft=wt("skeleton",g),[rt,Xt]=S(Ft),lu=o()(Ft,`${Ft}-element`,{[`${Ft}-active`]:Ye},ne,Fe,Xt);return rt(s.createElement("div",{className:lu},s.createElement("div",{className:o()(`${Ft}-image`,ne),style:ie},s.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Ft}-image-svg`},s.createElement("path",{d:De,className:`${Ft}-image-path`})))))},m=O=>{const{prefixCls:g,className:ne,rootClassName:Fe,active:ie,block:Ye,size:wt="default"}=O,{getPrefixCls:Ft}=s.useContext(i.E_),rt=Ft("skeleton",g),[Xt,lu]=S(rt),L=(0,D.Z)(O,["prefixCls"]),yt=o()(rt,`${rt}-element`,{[`${rt}-active`]:ie,[`${rt}-block`]:Ye},ne,Fe,lu);return Xt(s.createElement("div",{className:yt},s.createElement(X,Object.assign({prefixCls:`${rt}-input`,size:wt},L))))},N=u(72308),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},f=ce,Ce=u(7657),z=function(g,ne){return s.createElement(Ce.Z,(0,N.Z)({},g,{ref:ne,icon:f}))},r=s.forwardRef(z),me=r,we=O=>{const{prefixCls:g,className:ne,rootClassName:Fe,style:ie,active:Ye,children:wt}=O,{getPrefixCls:Ft}=s.useContext(i.E_),rt=Ft("skeleton",g),[Xt,lu]=S(rt),L=o()(rt,`${rt}-element`,{[`${rt}-active`]:Ye},lu,ne,Fe),yt=wt!=null?wt:s.createElement(me,null);return Xt(s.createElement("div",{className:L},s.createElement("div",{className:o()(`${rt}-image`,ne),style:ie},yt)))},We=u(80702),pt=O=>{const g=Ft=>{const{width:rt,rows:Xt=2}=O;if(Array.isArray(rt))return rt[Ft];if(Xt-1===Ft)return rt},{prefixCls:ne,className:Fe,style:ie,rows:Ye}=O,wt=(0,We.Z)(Array(Ye)).map((Ft,rt)=>s.createElement("li",{key:rt,style:{width:g(rt)}}));return s.createElement("ul",{className:o()(ne,Fe),style:ie},wt)},_e=O=>{let{prefixCls:g,className:ne,width:Fe,style:ie}=O;return s.createElement("h3",{className:o()(g,ne),style:Object.assign({width:Fe},ie)})};function Dt(O){return O&&typeof O=="object"?O:{}}function nt(O,g){return O&&!g?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Ke(O,g){return!O&&g?{width:"38%"}:O&&g?{width:"50%"}:{}}function C(O,g){const ne={};return(!O||!g)&&(ne.width="61%"),!O&&g?ne.rows=3:ne.rows=2,ne}const pe=O=>{const{prefixCls:g,loading:ne,className:Fe,rootClassName:ie,style:Ye,children:wt,avatar:Ft=!1,title:rt=!0,paragraph:Xt=!0,active:lu,round:L}=O,{getPrefixCls:yt,direction:Rt,skeleton:Qt}=s.useContext(i.E_),_t=yt("skeleton",g),[hu,Cu]=S(_t);if(ne||!("loading"in O)){const du=!!Ft,pu=!!rt,Qu=!!Xt;let Wu;if(du){const oe=Object.assign(Object.assign({prefixCls:`${_t}-avatar`},nt(pu,Qu)),Dt(Ft));Wu=s.createElement("div",{className:`${_t}-header`},s.createElement(X,Object.assign({},oe)))}let Be;if(pu||Qu){let oe;if(pu){const Nt=Object.assign(Object.assign({prefixCls:`${_t}-title`},Ke(du,Qu)),Dt(rt));oe=s.createElement(_e,Object.assign({},Nt))}let ke;if(Qu){const Nt=Object.assign(Object.assign({prefixCls:`${_t}-paragraph`},C(du,pu)),Dt(Xt));ke=s.createElement(pt,Object.assign({},Nt))}Be=s.createElement("div",{className:`${_t}-content`},oe,ke)}const Se=o()(_t,{[`${_t}-with-avatar`]:du,[`${_t}-active`]:lu,[`${_t}-rtl`]:Rt==="rtl",[`${_t}-round`]:L},Qt==null?void 0:Qt.className,Fe,ie,Cu);return hu(s.createElement("div",{className:Se,style:Object.assign(Object.assign({},Qt==null?void 0:Qt.style),Ye)},Wu,Be))}return typeof wt!="undefined"?wt:null};pe.Button=k,pe.Avatar=M,pe.Input=m,pe.Image=x,pe.Node=we;var st=pe,Le=st},31797:function(dt,te,u){"use strict";u.d(te,{default:function(){return S}});var e=u(59301),o=u(56762),s=u(92343),i=u(92310),D=u.n(i),j=u(36355),X=u(61621),U=Q=>{const{value:M,formatter:le,precision:k,decimalSeparator:De,groupSeparator:ye="",prefixCls:x}=Q;let ve;if(typeof le=="function")ve=le(M);else{const m=String(M),N=m.match(/^(-?)(\d*)(\.(\d+))?$/);if(!N||m==="-")ve=m;else{const ce=N[1];let f=N[2]||"0",Ce=N[4]||"";f=f.replace(/\B(?=(\d{3})+(?!\d))/g,ye),typeof k=="number"&&(Ce=Ce.padEnd(k,"0").slice(0,k>0?k:0)),Ce&&(Ce=`${De}${Ce}`),ve=[e.createElement("span",{key:"int",className:`${x}-content-value-int`},ce,f),Ce&&e.createElement("span",{key:"decimal",className:`${x}-content-value-decimal`},Ce)]}}return e.createElement("span",{className:`${x}-content-value`},ve)},Z=u(17313),v=u(83116),h=u(37613);const W=Q=>{const{componentCls:M,marginXXS:le,padding:k,colorTextDescription:De,titleFontSize:ye,colorTextHeading:x,contentFontSize:ve,fontFamily:m}=Q;return{[`${M}`]:Object.assign(Object.assign({},(0,Z.Wf)(Q)),{[`${M}-title`]:{marginBottom:le,color:De,fontSize:ye},[`${M}-skeleton`]:{paddingTop:k},[`${M}-content`]:{color:x,fontSize:ve,fontFamily:m,[`${M}-content-value`]:{display:"inline-block",direction:"ltr"},[`${M}-content-prefix, ${M}-content-suffix`]:{display:"inline-block"},[`${M}-content-prefix`]:{marginInlineEnd:le},[`${M}-content-suffix`]:{marginInlineStart:le}}})}};var _=(0,v.Z)("Statistic",Q=>{const M=(0,h.TS)(Q,{});return[W(M)]},Q=>{const{fontSizeHeading3:M,fontSize:le}=Q;return{titleFontSize:le,contentFontSize:M}}),E=Q=>{const{prefixCls:M,className:le,rootClassName:k,style:De,valueStyle:ye,value:x=0,title:ve,valueRender:m,prefix:N,suffix:ce,loading:f=!1,onMouseEnter:Ce,onMouseLeave:z,decimalSeparator:r=".",groupSeparator:me=","}=Q,{getPrefixCls:a,direction:we,statistic:We}=e.useContext(j.E_),ot=a("statistic",M),[pt,Je]=_(ot),_e=e.createElement(U,Object.assign({decimalSeparator:r,groupSeparator:me,prefixCls:ot},Q,{value:x})),Dt=D()(ot,{[`${ot}-rtl`]:we==="rtl"},We==null?void 0:We.className,le,k,Je);return pt(e.createElement("div",{className:Dt,style:Object.assign(Object.assign({},We==null?void 0:We.style),De),onMouseEnter:Ce,onMouseLeave:z},ve&&e.createElement("div",{className:`${ot}-title`},ve),e.createElement(X.Z,{paragraph:!1,loading:f,className:`${ot}-skeleton`},e.createElement("div",{style:ye,className:`${ot}-content`},N&&e.createElement("span",{className:`${ot}-content-prefix`},N),m?m(_e):_e,ce&&e.createElement("span",{className:`${ot}-content-suffix`},ce)))))};const B=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function q(Q,M){let le=Q;const k=/\[[^\]]*]/g,De=(M.match(k)||[]).map(m=>m.slice(1,-1)),ye=M.replace(k,"[]"),x=B.reduce((m,N)=>{let[ce,f]=N;if(m.includes(ce)){const Ce=Math.floor(le/f);return le-=Ce*f,m.replace(new RegExp(`${ce}+`,"g"),z=>{const r=z.length;return Ce.toString().padStart(r,"0")})}return m},ye);let ve=0;return x.replace(k,()=>{const m=De[ve];return ve+=1,m})}function c(Q,M){const{format:le=""}=M,k=new Date(Q).getTime(),De=Date.now(),ye=Math.max(k-De,0);return q(ye,le)}const y=1e3/30;function b(Q){return new Date(Q).getTime()}const A=Q=>{const{value:M,format:le="HH:mm:ss",onChange:k,onFinish:De}=Q,ye=(0,o.Z)(),x=e.useRef(null),ve=()=>{De==null||De(),x.current&&(clearInterval(x.current),x.current=null)},m=()=>{const f=b(M);f>=Date.now()&&(x.current=setInterval(()=>{ye(),k==null||k(f-Date.now()),f(m(),()=>{x.current&&(clearInterval(x.current),x.current=null)}),[M]);const N=(f,Ce)=>c(f,Object.assign(Object.assign({},Ce),{format:le})),ce=f=>(0,s.Tm)(f,{title:void 0});return e.createElement(E,Object.assign({},Q,{valueRender:ce,formatter:N}))};var R=e.memo(A);E.Countdown=R;var S=E},97774:function(dt,te,u){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.default=void 0;var e=Object.assign||function(E){for(var B=1;B0&&(Q=b[0]),Q instanceof Error)throw Q;var M=new Error("Unhandled error."+(Q?" ("+Q.message+")":""));throw M.context=Q,M}var le=S[y];if(le===void 0)return!1;if(typeof le=="function")u(le,this,b);else for(var k=le.length,De=W(le,k),A=0;A0&&Q.length>R&&!Q.warned){Q.warned=!0;var M=new Error("Possible EventEmitter memory leak detected. "+Q.length+" "+String(y)+" listeners added. Use emitter.setMaxListeners() to increase limit");M.name="MaxListenersExceededWarning",M.emitter=c,M.type=y,M.count=Q.length,o(M)}return c}i.prototype.addListener=function(y,b){return P(this,y,b,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(y,b){return P(this,y,b,!0)};function U(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Z(c,y,b){var A={fired:!1,wrapFn:void 0,target:c,type:y,listener:b},R=U.bind(A);return R.listener=b,A.wrapFn=R,R}i.prototype.once=function(y,b){return j(b),this.on(y,Z(this,y,b)),this},i.prototype.prependOnceListener=function(y,b){return j(b),this.prependListener(y,Z(this,y,b)),this},i.prototype.removeListener=function(y,b){var A,R,S,Q,M;if(j(b),R=this._events,R===void 0)return this;if(A=R[y],A===void 0)return this;if(A===b||A.listener===b)--this._eventsCount===0?this._events=Object.create(null):(delete R[y],R.removeListener&&this.emit("removeListener",y,A.listener||b));else if(typeof A!="function"){for(S=-1,Q=A.length-1;Q>=0;Q--)if(A[Q]===b||A[Q].listener===b){M=A[Q].listener,S=Q;break}if(S<0)return this;S===0?A.shift():_(A,S),A.length===1&&(R[y]=A[0]),R.removeListener!==void 0&&this.emit("removeListener",y,M||b)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(y){var b,A,R;if(A=this._events,A===void 0)return this;if(A.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):A[y]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete A[y]),this;if(arguments.length===0){var S=Object.keys(A),Q;for(R=0;R=0;R--)this.removeListener(y,b[R]);return this};function v(c,y,b){var A=c._events;if(A===void 0)return[];var R=A[y];return R===void 0?[]:typeof R=="function"?b?[R.listener||R]:[R]:b?d(R):W(R,R.length)}i.prototype.listeners=function(y){return v(this,y,!0)},i.prototype.rawListeners=function(y){return v(this,y,!1)},i.listenerCount=function(c,y){return typeof c.listenerCount=="function"?c.listenerCount(y):h.call(c,y)},i.prototype.listenerCount=h;function h(c){var y=this._events;if(y!==void 0){var b=y[c];if(typeof b=="function")return 1;if(b!==void 0)return b.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]};function W(c,y){for(var b=new Array(y),A=0;A=0||Object.prototype.hasOwnProperty.call(h,d)&&(_[d]=h[d]);return _}function P(h,W){if(!(h instanceof W))throw new TypeError("Cannot call a class as a function")}function U(h,W){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return W&&(typeof W=="object"||typeof W=="function")?W:h}function Z(h,W){if(typeof W!="function"&&W!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof W);h.prototype=Object.create(W&&W.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),W&&(Object.setPrototypeOf?Object.setPrototypeOf(h,W):h.__proto__=W)}var v=function(h){Z(W,h);function W(_){P(this,W);var d=U(this,(W.__proto__||Object.getPrototypeOf(W)).call(this,_));return d.scrollListener=d.scrollListener.bind(d),d.eventListenerOptions=d.eventListenerOptions.bind(d),d.mousewheelListener=d.mousewheelListener.bind(d),d}return e(W,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var d=this.getParentElement(this.scrollComponent);d.scrollTop=d.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var d=!1,E={get passive(){d=!0}};try{document.addEventListener("test",null,E),document.removeEventListener("test",null,E)}catch(B){}return d}},{key:"eventListenerOptions",value:function(){var d=this.props.useCapture;return this.isPassiveSupported()&&(d={useCapture:this.props.useCapture,passive:!0}),d}},{key:"setDefaultLoader",value:function(d){this.defaultLoader=d}},{key:"detachMousewheelListener",value:function(){var d=window;this.props.useWindow===!1&&(d=this.scrollComponent.parentNode),d.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var d=window;this.props.useWindow===!1&&(d=this.getParentElement(this.scrollComponent)),d.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),d.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(d){var E=this.props.getScrollParent&&this.props.getScrollParent();return E!=null?E:d&&d.parentNode}},{key:"filterProps",value:function(d){return d}},{key:"attachScrollListener",value:function(){var d=this.getParentElement(this.scrollComponent);if(!(!this.props.hasMore||!d)){var E=window;this.props.useWindow===!1&&(E=d),E.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),E.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),E.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(d){d.deltaY===1&&!this.isPassiveSupported()&&d.preventDefault()}},{key:"scrollListener",value:function(){var d=this.scrollComponent,E=window,B=this.getParentElement(d),q=void 0;if(this.props.useWindow){var c=document.documentElement||document.body.parentNode||document.body,y=E.pageYOffset!==void 0?E.pageYOffset:c.scrollTop;this.props.isReverse?q=y:q=this.calculateOffset(d,y)}else this.props.isReverse?q=B.scrollTop:q=d.scrollHeight-B.scrollTop-B.clientHeight;q1&&arguments[1]!==void 0?arguments[1]:60,i=null;return function(){for(var D=this,j=arguments.length,X=new Array(j),P=0;Pspan::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}#educoder .markdown-editor-wrapper{position:relative}#educoder .markdown-editor-body{display:flex;flex-flow:row nowrap;width:100%;height:calc(100% - 38px);align-items:center}#educoder .markdown-editor-body .codemirror-container{flex:1 0;height:100%;width:100%;overflow:hidden}#educoder .markdown-editor-body .CodeMirror-wrap{padding-bottom:15px}#educoder .markdown-editor-body .preview-container{flex:1 0;height:100%;margin:10px 0;padding:8px 8px 50px;background:#fff;overflow-y:auto;box-sizing:border-box;border-left:1px solid #ccc;word-wrap:break-word;word-break:break-word;white-space:normal;font-size:16px}#educoder .markdown-editor-container{border:1px solid #ccc;overflow:hidden;border-radius:4px;margin-bottom:12px;font-size:16px}#educoder .markdown-editor-container.full-screen{position:fixed;inset:0;height:100%!important;z-index:998}#educoder .markdown-editor-container.full-screen .preview-container>div{padding-bottom:180px!important}#educoder .markdown-editor-container.full-screen .CodeMirror-sizer>div{margin-bottom:90px}#educoder .markdown-editor-container.on-preview .codemirror-container,#educoder .markdown-editor-container.on-preview .preview-container{width:50%}#educoder .mini .markdown-editor-body{height:calc(100% - 28px)}#educoder .flex-end{justify-content:flex-end}#educoder .my-codemirror-container{border:1px solid #ccc;width:100%;margin-bottom:24px}#educoder .markdown-tip{color:#cdcdcd;font-size:12px;position:absolute;right:0;bottom:-28px;margin-bottom:7px}#educoder .CodeMirror-lines{padding:4px 0}#educoder .CodeMirror pre.CodeMirror-line,#educoder .CodeMirror pre.CodeMirror-line-like{padding:0 4px}#educoder .CodeMirror-scrollbar-filler,#educoder .CodeMirror-gutter-filler{background-color:#fff}#educoder .CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}#educoder .CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}#educoder .CodeMirror-guttermarker{color:#000}#educoder .CodeMirror-guttermarker-subtle{color:#999}#educoder .CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}#educoder .CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}#educoder .cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}#educoder .cm-fat-cursor div.CodeMirror-cursors{z-index:1}#educoder .cm-fat-cursor-mark{background-color:#14ff1480;animation:blink 1.06s steps(1) infinite}#educoder .cm-animate-fat-cursor{width:auto;border:0;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@keyframes blink{50%{background-color:transparent}}#educoder .cm-tab{display:inline-block;text-decoration:inherit}#educoder .CodeMirror-rulers{position:absolute;inset:-50px 0 0;overflow:hidden}#educoder .CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}#educoder .cm-s-default .cm-header{color:#00f}#educoder .cm-s-default .cm-quote{color:#090}#educoder .cm-negative{color:#d44}#educoder .cm-positive{color:#292}#educoder .cm-header,#educoder .cm-strong{font-weight:700}#educoder .cm-em{font-style:italic}#educoder .cm-link{text-decoration:underline}#educoder .cm-strikethrough{text-decoration:line-through}#educoder .cm-s-default .cm-keyword{color:#708}#educoder .cm-s-default .cm-atom{color:#219}#educoder .cm-s-default .cm-number{color:#164}#educoder .cm-s-default .cm-def{color:#00f}#educoder .cm-s-default .cm-variable-2{color:#05a}#educoder .cm-s-default .cm-variable-3,#educoder .cm-s-default .cm-type{color:#085}#educoder .cm-s-default .cm-comment{color:#a50}#educoder .cm-s-default .cm-string{color:#a11}#educoder .cm-s-default .cm-string-2{color:#f50}#educoder .cm-s-default .cm-meta,#educoder .cm-s-default .cm-qualifier{color:#555}#educoder .cm-s-default .cm-builtin{color:#30a}#educoder .cm-s-default .cm-bracket{color:#997}#educoder .cm-s-default .cm-tag{color:#170}#educoder .cm-s-default .cm-attribute{color:#00c}#educoder .cm-s-default .cm-hr{color:#999}#educoder .cm-s-default .cm-link{color:#00c}#educoder .cm-s-default .cm-error,#educoder .cm-invalidchar{color:red}#educoder .CodeMirror-composing{border-bottom:2px solid}#educoder div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}#educoder div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}#educoder .CodeMirror-matchingtag{background:#ff96004d}#educoder .CodeMirror-activeline-background{background:#e8f2ff}#educoder .CodeMirror{position:relative;overflow:hidden;background:#fff}#educoder .CodeMirror-scroll{overflow:scroll!important;margin-bottom:0;margin-right:0;padding-bottom:5px;height:100%;outline:none;position:relative}#educoder .CodeMirror-sizer{position:relative;border-right:0px}#educoder .CodeMirror-vscrollbar,#educoder .CodeMirror-hscrollbar,#educoder .CodeMirror-scrollbar-filler,#educoder .CodeMirror-gutter-filler{position:absolute;z-index:6;display:none}#educoder .CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}#educoder .CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}#educoder .CodeMirror-scrollbar-filler{right:0;bottom:0}#educoder .CodeMirror-gutter-filler{left:0;bottom:0}#educoder .CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}#educoder .CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}#educoder .CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}#educoder .CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}#educoder .CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}#educoder .CodeMirror-gutter-wrapper ::selection{background-color:transparent}#educoder .CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}#educoder .CodeMirror-lines{cursor:text;min-height:1px}#educoder .CodeMirror pre.CodeMirror-line,#educoder .CodeMirror pre.CodeMirror-line-like{border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;font-variant-ligatures:contextual}#educoder .CodeMirror-wrap pre.CodeMirror-line,#educoder .CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}#educoder .CodeMirror-linebackground{position:absolute;inset:0;height:100vh!important;z-index:1100}#educoder .CodeMirror-linebackground .preview-container>div{padding-bottom:180px!important}#educoder .CodeMirror-linebackground .CodeMirror-sizer>div{margin-bottom:90px}#educoder .CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}#educoder .CodeMirror-rtl pre{direction:rtl}#educoder .CodeMirror-code{outline:none}#educoder .CodeMirror-scroll,#educoder .CodeMirror-sizer,#educoder .CodeMirror-gutter,#educoder .CodeMirror-gutters,#educoder .CodeMirror-linenumber{box-sizing:content-box}#educoder .CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}#educoder .CodeMirror-cursor{position:absolute;pointer-events:none}#educoder .CodeMirror-measure pre{position:static}#educoder div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}#educoder div.CodeMirror-dragcursors,#educoder .CodeMirror-focused div.CodeMirror-cursors{visibility:visible}#educoder .CodeMirror-selected{background:#d9d9d9}#educoder .CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}#educoder .CodeMirror-crosshair{cursor:crosshair}#educoder .CodeMirror-line::selection,#educoder .CodeMirror-line>span::selection,#educoder .CodeMirror-line>span>span::selection{background:#d7d4f0}#educoder .CodeMirror-line::-moz-selection,#educoder .CodeMirror-line>span::-moz-selection,#educoder .CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}#educoder .cm-searching{background-color:#ffa;background-color:#ff06}#educoder .cm-force-border{padding-right:.1px}@media print{#educoder .CodeMirror div.CodeMirror-cursors{visibility:hidden}}#educoder .cm-tab-wrap-hack:after{content:""}#educoder span.CodeMirror-selectedtext{background:none}#educoder .CodeMirror-sizer{padding-top:10px;padding-bottom:10px!important}#educoder .CodeMirror-empty.CodeMirror-focused{outline:none}#educoder .CodeMirror pre.CodeMirror-placeholder{color:#999}#educoder .CodeMirror{position:relative;overflow:hidden;background:#fff;word-break:break-word}#educoder .CodeMirror pre.CodeMirror-line,#educoder .CodeMirror pre.CodeMirror-line-like{word-wrap:break-word;word-break:break-word;white-space:pre-wrap;line-height:1.6}@font-face{font-family:KaTeX_AMS;src:url(./static/KaTeX_AMS-Regular.e101fd3b.woff2) format("woff2"),url(./static/KaTeX_AMS-Regular.89a32939.woff) format("woff"),url(./static/KaTeX_AMS-Regular.76b481f1.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Caligraphic;src:url(./static/KaTeX_Caligraphic-Bold.804b0502.woff2) format("woff2"),url(./static/KaTeX_Caligraphic-Bold.ebf5447d.woff) format("woff"),url(./static/KaTeX_Caligraphic-Bold.28758623.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Caligraphic;src:url(./static/KaTeX_Caligraphic-Regular.7ca15b3a.woff2) format("woff2"),url(./static/KaTeX_Caligraphic-Regular.d642f1a8.woff) format("woff"),url(./static/KaTeX_Caligraphic-Regular.fe9310f0.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Fraktur;src:url(./static/KaTeX_Fraktur-Bold.33bcfed3.woff2) format("woff2"),url(./static/KaTeX_Fraktur-Bold.fc482350.woff) format("woff"),url(./static/KaTeX_Fraktur-Bold.70f2abc1.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Fraktur;src:url(./static/KaTeX_Fraktur-Regular.86cfbe4e.woff2) format("woff2"),url(./static/KaTeX_Fraktur-Regular.29abfb1c.woff) format("woff"),url(./static/KaTeX_Fraktur-Regular.51bff235.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Main;src:url(./static/KaTeX_Main-Bold.603892c5.woff2) format("woff2"),url(./static/KaTeX_Main-Bold.9f5bc66f.woff) format("woff"),url(./static/KaTeX_Main-Bold.da66c0ab.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Main;src:url(./static/KaTeX_Main-BoldItalic.bd95a810.woff2) format("woff2"),url(./static/KaTeX_Main-BoldItalic.c31eb616.woff) format("woff"),url(./static/KaTeX_Main-BoldItalic.962b328a.ttf) format("truetype");font-weight:700;font-style:italic}@font-face{font-family:KaTeX_Main;src:url(./static/KaTeX_Main-Italic.7662be2b.woff2) format("woff2"),url(./static/KaTeX_Main-Italic.3c94ae8c.woff) format("woff"),url(./static/KaTeX_Main-Italic.b1598925.ttf) format("truetype");font-weight:400;font-style:italic}@font-face{font-family:KaTeX_Main;src:url(./static/KaTeX_Main-Regular.7056d1df.woff2) format("woff2"),url(./static/KaTeX_Main-Regular.f23b28dc.woff) format("woff"),url(./static/KaTeX_Main-Regular.fe159c21.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Math;src:url(./static/KaTeX_Math-BoldItalic.df742084.woff2) format("woff2"),url(./static/KaTeX_Math-BoldItalic.a6fde119.woff) format("woff"),url(./static/KaTeX_Math-BoldItalic.8ee92314.ttf) format("truetype");font-weight:700;font-style:italic}@font-face{font-family:KaTeX_Math;src:url(./static/KaTeX_Math-Italic.912cb075.woff2) format("woff2"),url(./static/KaTeX_Math-Italic.ad043b21.woff) format("woff"),url(./static/KaTeX_Math-Italic.f4a2fd50.ttf) format("truetype");font-weight:400;font-style:italic}@font-face{font-family:KaTeX_SansSerif;src:url(./static/KaTeX_SansSerif-Bold.198a2b19.woff2) format("woff2"),url(./static/KaTeX_SansSerif-Bold.2dee50c6.woff) format("woff"),url(./static/KaTeX_SansSerif-Bold.9ae5090b.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_SansSerif;src:url(./static/KaTeX_SansSerif-Italic.58452206.woff2) format("woff2"),url(./static/KaTeX_SansSerif-Italic.f88f16ed.woff) format("woff"),url(./static/KaTeX_SansSerif-Italic.363562bf.ttf) format("truetype");font-weight:400;font-style:italic}@font-face{font-family:KaTeX_SansSerif;src:url(./static/KaTeX_SansSerif-Regular.50cd68ac.woff2) format("woff2"),url(./static/KaTeX_SansSerif-Regular.13e35ac8.woff) format("woff"),url(./static/KaTeX_SansSerif-Regular.d1c35243.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Script;src:url(./static/KaTeX_Script-Regular.2fc42204.woff2) format("woff2"),url(./static/KaTeX_Script-Regular.8f35f84f.woff) format("woff"),url(./static/KaTeX_Script-Regular.d09e0cea.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size1;src:url(./static/KaTeX_Size1-Regular.03ff84ee.woff2) format("woff2"),url(./static/KaTeX_Size1-Regular.2222c8c3.woff) format("woff"),url(./static/KaTeX_Size1-Regular.920c8080.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size2;src:url(./static/KaTeX_Size2-Regular.fa296a19.woff2) format("woff2"),url(./static/KaTeX_Size2-Regular.45c74525.woff) format("woff"),url(./static/KaTeX_Size2-Regular.7d3e746e.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size3;src:url(./static/KaTeX_Size3-Regular.d9075b2b.woff2) format("woff2"),url(./static/KaTeX_Size3-Regular.62bef299.woff) format("woff"),url(./static/KaTeX_Size3-Regular.39f7a039.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size4;src:url(./static/KaTeX_Size4-Regular.93084eec.woff2) format("woff2"),url(./static/KaTeX_Size4-Regular.3ee0d868.woff) format("woff"),url(./static/KaTeX_Size4-Regular.cd3f02bf.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Typewriter;src:url(./static/KaTeX_Typewriter-Regular.65cd6476.woff2) format("woff2"),url(./static/KaTeX_Typewriter-Regular.3f215ba2.woff) format("woff"),url(./static/KaTeX_Typewriter-Regular.73468499.ttf) format("truetype");font-weight:400;font-style:normal}.katex{font: 1.21em KaTeX_Main,Times New Roman,serif;line-height:1.2;text-indent:0;text-rendering:auto}.katex *{-ms-high-contrast-adjust:none!important}.katex .katex-version:after{content:"0.11.1"}.katex .katex-mathml{position:absolute;clip:rect(1px,1px,1px,1px);padding:0;border:0;height:1px;width:1px;overflow:hidden}.katex .katex-html>.newline{display:block}.katex .base{position:relative;white-space:nowrap;width:min-content}.katex .base,.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathdefault{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-weight:700;font-style:italic}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{display:inline-table;table-layout:fixed}.katex .vlist-r{display:table-row}.katex .vlist{display:table-cell;vertical-align:bottom;position:relative}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{overflow:hidden;width:0}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{display:table-cell;vertical-align:bottom;font-size:1px;width:2px;min-width:2px}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{display:inline-block;width:100%;border-bottom-style:solid}.katex .hdashline,.katex .hline,.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .rule,.katex .underline .underline-line{min-height:1px}.katex .mspace{display:inline-block}.katex .clap,.katex .llap,.katex .rlap{width:0;position:relative}.katex .clap>.inner,.katex .llap>.inner,.katex .rlap>.inner{position:absolute}.katex .clap>.fix,.katex .llap>.fix,.katex .rlap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .clap>.inner,.katex .rlap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{display:inline-block;border:0 solid;position:relative}.katex .hline,.katex .overline .overline-line,.katex .underline .underline-line{display:inline-block;width:100%;border-bottom-style:solid}.katex .hdashline{display:inline-block;width:100%;border-bottom-style:dashed}.katex .sqrt>.root{margin-left:.27777778em;margin-right:-.55555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .sizing.reset-size2.size1{font-size:.83333333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .sizing.reset-size2.size3{font-size:1.16666667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .sizing.reset-size2.size4{font-size:1.33333333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .sizing.reset-size2.size6{font-size:1.66666667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .sizing.reset-size2.size10{font-size:3.45666667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .sizing.reset-size2.size11{font-size:4.14666667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .sizing.reset-size3.size1{font-size:.71428571em}.katex .fontsize-ensurer.reset-size3.size2,.katex .sizing.reset-size3.size2{font-size:.85714286em}.katex .fontsize-ensurer.reset-size3.size3,.katex .sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .sizing.reset-size3.size4{font-size:1.14285714em}.katex .fontsize-ensurer.reset-size3.size5,.katex .sizing.reset-size3.size5{font-size:1.28571429em}.katex .fontsize-ensurer.reset-size3.size6,.katex .sizing.reset-size3.size6{font-size:1.42857143em}.katex .fontsize-ensurer.reset-size3.size7,.katex .sizing.reset-size3.size7{font-size:1.71428571em}.katex .fontsize-ensurer.reset-size3.size8,.katex .sizing.reset-size3.size8{font-size:2.05714286em}.katex .fontsize-ensurer.reset-size3.size9,.katex .sizing.reset-size3.size9{font-size:2.46857143em}.katex .fontsize-ensurer.reset-size3.size10,.katex .sizing.reset-size3.size10{font-size:2.96285714em}.katex .fontsize-ensurer.reset-size3.size11,.katex .sizing.reset-size3.size11{font-size:3.55428571em}.katex .fontsize-ensurer.reset-size4.size1,.katex .sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .sizing.reset-size5.size1{font-size:.55555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .sizing.reset-size5.size2{font-size:.66666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .sizing.reset-size5.size3{font-size:.77777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .sizing.reset-size5.size4{font-size:.88888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .sizing.reset-size5.size6{font-size:1.11111111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .sizing.reset-size5.size7{font-size:1.33333333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .sizing.reset-size5.size10{font-size:2.30444444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .sizing.reset-size5.size11{font-size:2.76444444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .sizing.reset-size7.size1{font-size:.41666667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .sizing.reset-size7.size3{font-size:.58333333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .sizing.reset-size7.size4{font-size:.66666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .sizing.reset-size7.size6{font-size:.83333333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .sizing.reset-size7.size10{font-size:1.72833333em}.katex .fontsize-ensurer.reset-size7.size11,.katex .sizing.reset-size7.size11{font-size:2.07333333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .sizing.reset-size8.size1{font-size:.34722222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .sizing.reset-size8.size2{font-size:.41666667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .sizing.reset-size8.size3{font-size:.48611111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .sizing.reset-size8.size4{font-size:.55555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .sizing.reset-size8.size6{font-size:.69444444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .sizing.reset-size8.size7{font-size:.83333333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .sizing.reset-size8.size10{font-size:1.44027778em}.katex .fontsize-ensurer.reset-size8.size11,.katex .sizing.reset-size8.size11{font-size:1.72777778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .sizing.reset-size9.size1{font-size:.28935185em}.katex .fontsize-ensurer.reset-size9.size2,.katex .sizing.reset-size9.size2{font-size:.34722222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .sizing.reset-size9.size3{font-size:.40509259em}.katex .fontsize-ensurer.reset-size9.size4,.katex .sizing.reset-size9.size4{font-size:.46296296em}.katex .fontsize-ensurer.reset-size9.size5,.katex .sizing.reset-size9.size5{font-size:.52083333em}.katex .fontsize-ensurer.reset-size9.size6,.katex .sizing.reset-size9.size6{font-size:.5787037em}.katex .fontsize-ensurer.reset-size9.size7,.katex .sizing.reset-size9.size7{font-size:.69444444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .sizing.reset-size9.size8{font-size:.83333333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .sizing.reset-size9.size10{font-size:1.20023148em}.katex .fontsize-ensurer.reset-size9.size11,.katex .sizing.reset-size9.size11{font-size:1.43981481em}.katex .fontsize-ensurer.reset-size10.size1,.katex .sizing.reset-size10.size1{font-size:.24108004em}.katex .fontsize-ensurer.reset-size10.size2,.katex .sizing.reset-size10.size2{font-size:.28929605em}.katex .fontsize-ensurer.reset-size10.size3,.katex .sizing.reset-size10.size3{font-size:.33751205em}.katex .fontsize-ensurer.reset-size10.size4,.katex .sizing.reset-size10.size4{font-size:.38572806em}.katex .fontsize-ensurer.reset-size10.size5,.katex .sizing.reset-size10.size5{font-size:.43394407em}.katex .fontsize-ensurer.reset-size10.size6,.katex .sizing.reset-size10.size6{font-size:.48216008em}.katex .fontsize-ensurer.reset-size10.size7,.katex .sizing.reset-size10.size7{font-size:.57859209em}.katex .fontsize-ensurer.reset-size10.size8,.katex .sizing.reset-size10.size8{font-size:.69431051em}.katex .fontsize-ensurer.reset-size10.size9,.katex .sizing.reset-size10.size9{font-size:.83317261em}.katex .fontsize-ensurer.reset-size10.size10,.katex .sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .sizing.reset-size10.size11{font-size:1.19961427em}.katex .fontsize-ensurer.reset-size11.size1,.katex .sizing.reset-size11.size1{font-size:.20096463em}.katex .fontsize-ensurer.reset-size11.size2,.katex .sizing.reset-size11.size2{font-size:.24115756em}.katex .fontsize-ensurer.reset-size11.size3,.katex .sizing.reset-size11.size3{font-size:.28135048em}.katex .fontsize-ensurer.reset-size11.size4,.katex .sizing.reset-size11.size4{font-size:.32154341em}.katex .fontsize-ensurer.reset-size11.size5,.katex .sizing.reset-size11.size5{font-size:.36173633em}.katex .fontsize-ensurer.reset-size11.size6,.katex .sizing.reset-size11.size6{font-size:.40192926em}.katex .fontsize-ensurer.reset-size11.size7,.katex .sizing.reset-size11.size7{font-size:.48231511em}.katex .fontsize-ensurer.reset-size11.size8,.katex .sizing.reset-size11.size8{font-size:.57877814em}.katex .fontsize-ensurer.reset-size11.size9,.katex .sizing.reset-size11.size9{font-size:.69453376em}.katex .fontsize-ensurer.reset-size11.size10,.katex .sizing.reset-size11.size10{font-size:.83360129em}.katex .fontsize-ensurer.reset-size11.size11,.katex .sizing.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .op-limits>.vlist-t{text-align:center}.katex .accent>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{display:inline-block;min-width:1px}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{display:block;position:absolute;width:100%;height:inherit;fill:currentColor;stroke:currentColor;fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1}.katex svg path{stroke:none}.katex img{border-style:none;min-width:0;min-height:0;max-width:none;max-height:none}.katex .stretchy{width:100%;display:block;position:relative;overflow:hidden}.katex .stretchy:after,.katex .stretchy:before{content:""}.katex .hide-tail{width:100%;position:relative;overflow:hidden}.katex .halfarrow-left{position:absolute;left:0;width:50.2%;overflow:hidden}.katex .halfarrow-right{position:absolute;right:0;width:50.2%;overflow:hidden}.katex .brace-left{position:absolute;left:0;width:25.1%;overflow:hidden}.katex .brace-center{position:absolute;left:25%;width:50%;overflow:hidden}.katex .brace-right{position:absolute;right:0;width:25.1%;overflow:hidden}.katex .x-arrow-pad{padding:0 .5em}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{box-sizing:border-box;border:.04em solid}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:block;text-align:center;white-space:nowrap}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{text-align:left}.wrp___dq7YK{display:flex;justify-content:center;align-items:center;position:fixed;width:100%;height:100%;left:0;top:0;z-index:108}.wrp___dq7YK.bgBlack___ARIUV{background:#00000080}.wrp___dq7YK img,.wrp___dq7YK video{max-width:100%;max-height:80%;text-align:center}.wrp___dq7YK iframe{width:100%;height:100%;position:absolute;left:0;top:0;background:#fff;border:none}.monaco___VnZC3{position:absolute;height:100%;width:100%}.darkBlue___UprA9 *{font-size:14px}.darkBlue___UprA9 [class~=margin],.darkBlue___UprA9 [class~=monaco-editor-background]{background:#0a0e2d!important}.darkBlue___UprA9 [class~=line-numbers]{color:#fff!important}.close___LKoWu{position:absolute;right:40px;top:40px;z-index:10;display:flex}.close___LKoWu>span{background:#4a4a4a;color:#fff;width:40px;height:40px;border-radius:4px;display:flex;justify-content:center;align-items:center;cursor:pointer;margin-left:10px}.embed___hvpEJ{position:absolute;left:0;top:0;width:100%;height:100%}.my-monaco-editor div,.my-diff-editor div{font-size:unset}.my-error-line-wrp{width:calc(100% - 20px)!important;background:#f5000033!important;height:auto!important;color:#f50000}.noCopyPaste .quick-input-widget{display:none!important}.breakpoints-select{background:red;width:8px!important;height:8px!important;left:7px!important;top:7px;border-radius:4px;user-select:none;pointer-events:none}.breakpoints-fake{background:#ff000080;width:8px!important;height:8px!important;left:7px!important;top:7px;border-radius:4px;user-select:none;pointer-events:none}.highlighted-line{background:#4b4b18}.markdown-toolbar-container{display:flex;flex-flow:row wrap;align-items:center;padding:0 28px 0 5px;margin:0;position:relative;list-style:none;background:#fff;border-bottom:1px solid #ccc;box-sizing:border-box;line-height:20px;width:100%;min-height:30px}.markdown-toolbar-container .fill-tip{cursor:pointer;font-size:12px;display:inline-block;padding:5px;border:1px solid #E99237;border-radius:5px;box-sizing:border-box;line-height:16px;height:auto;color:#a65500;background-color:#fff1e2;position:relative;margin-left:10px}.markdown-toolbar-container .fill-tip:before{content:" ";width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:6px solid #FFF1E2;position:absolute;left:-6px;top:6px;z-index:10}.markdown-toolbar-container .fill-tip:after{content:" ";width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:6px solid #E99237;position:absolute;left:-7px;top:6px}.markdown-toolbar-container li{color:#666;padding:0 1px;height:100%;display:flex;height:38px;flex-flow:column nowrap;justify-content:center}.markdown-toolbar-container a,.markdown-toolbar-container span{display:block}.markdown-toolbar-container a{width:28px;color:#666;cursor:pointer;text-align:center;font-size:18px}.markdown-toolbar-container a i{font-size:18px}.markdown-toolbar-container a i:before{font-size:18px}.markdown-toolbar-container .btn-null{width:auto;display:flex;flex-flow:row nowrap;align-items:center}.markdown-toolbar-container .insert-blank{color:#e99237;font-size:18px}.markdown-toolbar-container span.v-line{margin:0 5px;height:65%;border-right:1px solid #ccc}.mini .markdown-toolbar-container li{height:28px}.editor-resize{display:block;width:120px;height:4px;left:54%;border-top:1px solid #ccc;border-bottom:1px solid #ccc;cursor:row-resize;white-space:nowrap;overflow:hidden;text-transform:capitalize;box-sizing:border-box;margin:0 auto}.btn-full-screen{position:absolute;right:5px}@font-face{font-family:md-iconfont;src:url(./static/iconfont.345f94c8.eot);src:url(./static/iconfont.345f94c8.eot#iefix) format("embedded-opentype"),url(./static/iconfont.deef216b.woff) format("woff"),url(./static/iconfont.42606faf.ttf) format("truetype"),url(./static/iconfont.504b881c.svg#iconfont) format("svg")}.md-iconfont{font-family:md-iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-uniE900:before{content:"\e900";font-size:14px;margin-left:5px}.icon-shrink:before{content:"\e728"}.icon-enlarge:before{content:"\e623"}.icon-code:before{content:"\e602"}.icon-italic:before{content:"\e718"}.icon-bold:before{content:"\e644"}.icon-picture:before{content:"\e606"}.icon-minus:before{content:"\e62c"}.icon-order-list:before{content:"\e655"}.icon-link:before{content:"\e7d4"}.icon-formula:before{content:"\e633"}.icon-unorder-list:before{content:"\e668"}.icon-edit:before{content:"\e603"}.icon-table:before{content:"\e7db"}.icon-sum:before{content:"\e667"}.icon-eye:before{content:"\e69f"}.icon-eye-slash:before{content:"\e601"}.icon-eraser:before{content:"\e8cd"}.icon-file-code:before{content:"\e9ec"}.cm-s-blackboard.CodeMirror{background:#0c1021;color:#f8f8f8}.cm-s-blackboard div.CodeMirror-selected{background:#253b76}.cm-s-blackboard .CodeMirror-line::selection,.cm-s-blackboard .CodeMirror-line>span::selection,.cm-s-blackboard .CodeMirror-line>span>span::selection{background:#253b76fc}.cm-s-blackboard .CodeMirror-line::-moz-selection,.cm-s-blackboard .CodeMirror-line>span::-moz-selection,.cm-s-blackboard .CodeMirror-line>span>span::-moz-selection{background:#253b76fc}.cm-s-blackboard .CodeMirror-gutters{background:#0c1021;border-right:0}.cm-s-blackboard .CodeMirror-guttermarker{color:#fbde2d}.cm-s-blackboard .CodeMirror-guttermarker-subtle,.cm-s-blackboard .CodeMirror-linenumber{color:#888}.cm-s-blackboard .CodeMirror-cursor{border-left:1px solid #A7A7A7}.cm-s-blackboard .cm-keyword{color:#fbde2d}.cm-s-blackboard .cm-atom,.cm-s-blackboard .cm-number{color:#d8fa3c}.cm-s-blackboard .cm-def{color:#8da6ce}.cm-s-blackboard .cm-variable{color:#ff6400}.cm-s-blackboard .cm-operator{color:#fbde2d}.cm-s-blackboard .cm-comment{color:#aeaeae}.cm-s-blackboard .cm-string,.cm-s-blackboard .cm-string-2{color:#61ce3c}.cm-s-blackboard .cm-meta{color:#d8fa3c}.cm-s-blackboard .cm-builtin,.cm-s-blackboard .cm-tag,.cm-s-blackboard .cm-attribute{color:#8da6ce}.cm-s-blackboard .cm-header{color:#ff6400}.cm-s-blackboard .cm-hr{color:#aeaeae}.cm-s-blackboard .cm-link{color:#8da6ce}.cm-s-blackboard .cm-error{background:#9d1e15;color:#f8f8f8}.cm-s-blackboard .CodeMirror-activeline-background{background:#3c3636}.cm-s-blackboard .CodeMirror-matchingbracket{outline:1px solid grey;color:#fff!important}.upload-button{width:106px;height:32px;line-height:32px;font-size:12px;display:block;position:relative;color:#0152d9}.upload-button input{opacity:0;width:160px;height:32px;position:absolute;top:0;left:0;z-index:-1}.imageDimensions___a7crR{display:flex;justify-content:center;align-items:center;position:fixed;width:100%;height:100vh;left:0;top:0;z-index:1005;background:#fff;overflow:hidden}.imageDimensions___a7crR .img___Kroat{visibility:hidden;max-width:80%;min-width:500px}.imageDimensions___a7crR [class*=_toolbox_colors]{position:fixed;left:0;bottom:0}.imageDimensions___a7crR.fullWidth___c492T .img___Kroat{max-width:100%;width:100%;height:100%}.myPaletteDiv___Xjz2I{position:relative;left:-15px;width:320px}.myPaletteDiv___Xjz2I canvas{margin-top:15px}.flowChartWrp____f45r [class^=goTXarea],.flowChartWrp____f45r textarea{min-width:70px;margin-left:-15px!important}.maxH60___Pd4Re [class^=ant-modal-content]{height:57px!important;overflow:hidden}.lists___xhHyq{padding-bottom:10px}.lists___xhHyq code{background:none!important}.lists___xhHyq>div>div:first-child{background:#f6f6f6;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:10px 0;font-size:12px;cursor:pointer}.lists___xhHyq>div>div:first-child [class^=katex]{font-size:22px}.item___pWJAA{position:relative}.item___pWJAA:nth-last-child(-n+3) .children___sDG61{left:initial;right:5px}.item___pWJAA:hover{z-index:2147483648}.item___pWJAA:hover .children___sDG61{display:block}.children___sDG61{display:none;position:absolute;left:6px;top:70px;width:440px;max-height:400px;overflow:auto;background:#fff;border:1px solid #ccc;border-radius:4px;box-shadow:0 0 6px #ccc;padding:15px}.children___sDG61 h1{font-size:14px;padding-top:6px}.children___sDG61 .diamond___FwgzD>div{background:#f6f6f6;display:flex;align-items:center;justify-content:center;flex-direction:column;cursor:pointer;height:50px;font-size:12px;padding:0 10px;min-width:80px}.children___sDG61 .diamond___FwgzD>div [class^=katex]{font-size:14px}.button___WPN6r{position:absolute;right:20px;bottom:20px}.mathWrap___FmnMJ{width:800px;height:550px}.mathFillWrap___PmY3H{cursor:pointer}.mathFillWrap___PmY3H ::part(menu-toggle){color:#00f;opacity:1;display:none}.mathFillWrap___PmY3H math-field{background:none}.mathFillWrap___PmY3H *{pointer-events:none}.flex_box_center___oXmmv{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___D5_mZ{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___S5DkJ{align-items:center;box-align:center}.flex_box_center_end___KnbTG{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column____klOK{flex-direction:column;box-orient:block-axis}.top___FyBsZ{padding:30px;border-bottom:1px solid #eaeaea}.desc___sMJy6{padding:30px}.desc___sMJy6 img{max-width:100%}.liked___P7kc_{background:#eee;color:#b3b3b3;padding:10px 40px;border-radius:40px;display:inline-block;margin:0 auto;text-align:center;cursor:pointer}.likedActive___gv4cj{background:#0152d9;color:#fff}.reply___fFyWG{padding:30px;border-bottom:1px solid #eaeaea}.reply___fFyWG input,.reply___fFyWG button{height:40px}.reply___fFyWG button{padding-left:20px;padding-right:20px;margin-left:20px}.replyList___RDcrF{padding:20px}.replyList___RDcrF>div{border-bottom:1px solid #eaeaea}.comment___uNa2p{background:#f4f4f4;border-radius:6px;width:100%;position:relative}.comment___uNa2p:before{content:"";position:absolute;top:-9px;left:13px;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:10px solid #f4f4f4;width:0;height:0}.comment___uNa2p>div{padding:10px}.comment___uNa2p>div:hover{background:#ebebeb}.deseIconSty___hiTV2{font-size:14px}.deseIconSty___hiTV2 i{color:#8f96b1;margin-right:6px}.deseIconSty___hiTV2 span{color:#333}.deseIconSty___hiTV2:hover i,.deseIconSty___hiTV2:hover span{color:#3061d0}.buttonEdit___godGx{width:80px;height:40px;line-height:40px;font-weight:400;padding:0}.maskWrap___bA1lb{position:relative}.maskWrap___bA1lb .desHead___gsg50{height:40px;background:#ffffff1f;box-shadow:0 -2px 4px #f3f3f380;border:1px solid #F6F7F9;padding-left:10px;display:flex;align-items:center}.maskWrap___bA1lb .mask___HzQwZ{width:100%;position:absolute;z-index:1;left:0;bottom:0;height:60px;background:linear-gradient(180deg,#f6f7f900,#f6f7f9 50% 100%);display:flex;padding-top:32px;justify-content:center}.maskWrap___bA1lb .mask___HzQwZ div{font-size:14px;color:#3061d0;cursor:pointer}.maskWrap___bA1lb .mask___HzQwZ div i{margin-left:3px;font-size:14px;display:inline-block;transform:scale(.6)}.md___kNtFb{font-size:14px;color:#333;font-family:initial;background:#f6f7f9;padding:10px 20px}.md___kNtFb p{line-height:25px}.tip___enkdY{height:30px;background:#ffb5381a;display:flex;align-items:center;margin-bottom:1px}.selectWrapper___x8uH0 span[class~=ant-select-selection-placeholder]{color:#9096a3}.selectWrapper___x8uH0 div[class~=ant-select-selector]{border-radius:4px;height:38px!important}.selectWrapper___x8uH0 div[class~=ant-select-selector] input[class~=ant-select-selection-search-input],.selectWrapper___x8uH0 div[class~=ant-select-selector] span[class~=ant-select-selection-placeholder]{height:38px!important;line-height:38px!important}.selectWrapper___x8uH0 div[class~=ant-select-selector] span[class~=ant-select-selection-item]{line-height:38px!important;padding-left:2px!important}.selectWrapper___x8uH0 span[class~=ant-select-arrow]{right:12px}.inputBox___VxU7y{display:flex;align-items:center;justify-content:space-between;box-sizing:border-box}.pass_info___Kig4_{height:30px;background:#f6f7f9;display:flex;align-items:center;margin-top:10px;margin-bottom:1px}.todo___hntv8{display:inline-block;width:36px;height:20px;background:#1e96f4;border-radius:2px;border:1px solid #65AEFF;color:#fff;text-align:center;line-height:18px;margin-right:3px}.name___UD8SI{display:inline-block;max-width:240px;word-break:break-all;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;vertical-align:bottom}.info___lOOGO{display:flex;align-items:center;width:1160px;height:85px;background:#f6f7f9;border-radius:43px;margin-left:20px;padding-left:20px}.info___lOOGO img{width:55px;height:55px;border:2px solid #165DFF;border-radius:50%}.info___lOOGO div{margin-left:60px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#333}.info___lOOGO div b{font-size:16px;margin-bottom:5px}.info___lOOGO .viewreport___CAnci{width:118px;height:40px;background:#fff;border-radius:20px;border:1px solid rgba(48,97,208,.5);display:flex;align-items:center;flex-direction:unset}.info___lOOGO .viewreport___CAnci:hover{background:#3061d0;color:#fff!important}.flex_box_center___NeSU8{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___ImTGl{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___BtRd9{align-items:center;box-align:center}.flex_box_center_end___qcLe3{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___Ze_3q{flex-direction:column;box-orient:block-axis}.banner___PoUBO{display:flex;align-items:center;justify-content:center}.banner___PoUBO .content___XoDjy{width:1200px;height:212px;display:flex;align-items:flex-start;justify-content:space-between}.banner___PoUBO .content___XoDjy aside{margin-top:56px}.banner___PoUBO .content___XoDjy aside p{display:flex;align-items:center}.banner___PoUBO .content___XoDjy aside p b{font-size:30px;font-weight:500;color:#000;letter-spacing:4px;margin-right:20px}.banner___PoUBO .content___XoDjy aside p span{font-size:16px;color:#000;letter-spacing:4px}.banner___PoUBO .content___XoDjy aside .btns___Pb35j{margin-top:35px}.banner___PoUBO .content___XoDjy aside .btns___Pb35j>div{display:inline-block;height:32px;background:#f6f7f9;box-shadow:0 2px 4px #e0dfe1,inset 0 1px 3px #ffffff80;border-radius:4px;border:1px solid #dadbde;font-size:14px;color:#3b3e47;line-height:30px;margin-right:23px;padding:0 16px;position:relative;cursor:pointer}.banner___PoUBO .content___XoDjy aside .btns___Pb35j>div:hover{color:#165dff;border:1px solid #bacffe}.banner___PoUBO .content___XoDjy aside .btns___Pb35j>div img{position:absolute;z-index:1;top:-21px;right:22px}.flex_box_center___hG6RI{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___ss3Fh{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___K80p9{align-items:center;box-align:center}.flex_box_center_end___qmXX3{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___GFV8F{flex-direction:column;box-orient:block-axis}.row___aXJjm{display:flex;align-items:flex-start;justify-content:flex-start}.row___aXJjm .title___HUKL0{font-size:14px;color:#9096a3;flex-shrink:0;width:41px;text-align-last:justify;margin-top:4px;margin-right:12px}.row___aXJjm .tagsWrap___XB2W3{flex:1 1;position:relative}.row___aXJjm .tagsWrap___XB2W3 .action___VdHb1{font-size:14px;color:#82a8ff;width:55px;position:absolute;z-index:2;bottom:20px;right:0;cursor:pointer}.row___aXJjm .tagsWrap___XB2W3 .action___VdHb1 i{display:inline-block;font-size:12px}.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC{max-height:245px;overflow:hidden}.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .tag___V7Eft>span{display:inline-flex;align-items:center;margin-left:8px;margin-bottom:17px;font-size:14px;cursor:pointer;padding:4px 12px}.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .tag___V7Eft>span .name___Hk1Ip{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:600px;display:inline-block}.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .tag___V7Eft>span .num___xQpcH{margin-left:3px}.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .tag___V7Eft>span:hover{color:#165dff!important}.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .tag___V7Eft .active___XryTX{color:#165dff!important;border-radius:2px;background:#f6f7f9}.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC::-webkit-scrollbar-thumb{background:#0000000d!important;border-radius:3px}.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC::-webkit-scrollbar-track{background-color:#f6f7f9!important;box-shadow:initial!important}.row___aXJjm .tagsBorderWrap___OMxjs .bar___t1kKC{padding-top:8px;border-radius:4px;border:1px solid rgba(219,220,224,.5)}.flex_box_center___aK2n3{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___HX0Oh{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___LJOJr{align-items:center;box-align:center}.flex_box_center_end___SCakF{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___AYv4m{flex-direction:column;box-orient:block-axis}.tabs___GTqPV{height:32px;background:#f6f7f9;box-shadow:inset 0 1px 3px #d7d8d9;border-radius:16px;display:inline-block}.tabs___GTqPV span{display:inline-block;padding:0 20px;line-height:32px;font-size:14px;font-weight:400;color:#9096a3;position:relative;cursor:pointer}.tabs___GTqPV span:hover{color:#165dff}.tabs___GTqPV span:after{content:"";position:absolute;width:1px;height:calc(100% - 2px);background:#e2e2e2;border-radius:4px;z-index:1;left:0;top:1px;background:linear-gradient(180deg,#fff0,#e2e2e2,#fff0)}.tabs___GTqPV span:first-child:after,.tabs___GTqPV .active___F26E8+span:after{display:none}.tabs___GTqPV .active___F26E8{background:linear-gradient(180deg,#fff,#f6f7f9);box-shadow:0 0 2px #e8effb;border-radius:16px;border:1px solid #c8d2ea;color:#165dff;line-height:30px}.tabs___GTqPV .active___F26E8:after{display:none}.flex_box_center___yX6Oa{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___t7oqF{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___dEIHy{align-items:center;box-align:center}.flex_box_center_end___taQDF{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___xY_Lr{flex-direction:column;box-orient:block-axis}.input___PW2zI{width:507px;height:38px;background:#f6f7f9;border-radius:19px;display:flex;align-items:center;padding:0 20px}.input___PW2zI .dropdown___vSy8B{position:relative;flex-shrink:0}.input___PW2zI .dropdown___vSy8B:hover .menu___NiyBu{display:block}.input___PW2zI .dropdown___vSy8B .text___Grueu{color:#000;font-size:14px;cursor:default;height:38px;display:flex;align-items:center}.input___PW2zI .dropdown___vSy8B .text___Grueu i{font-size:12px;display:inline-block;transform:translateY(1px) scale(.6);color:#979797}.input___PW2zI .dropdown___vSy8B .text___Grueu .b1___ZKryM{display:inline-block;width:1px;height:38px;margin-left:15px;margin-right:0;background:linear-gradient(180deg,#fff0,#fff,#fff0)}.input___PW2zI .dropdown___vSy8B .text___Grueu .b2___aKyGa{display:inline-block;width:1px;height:38px;margin-left:0;margin-right:8px;background:linear-gradient(180deg,#fff0,#e2e2e2,#fff0)}.input___PW2zI .dropdown___vSy8B .menu___NiyBu{display:none;position:absolute;z-index:999;width:auto;left:-16px;top:35px;padding:4px;background-color:#fff;border-radius:8px;box-shadow:0 10px 16px #cecece}.input___PW2zI .dropdown___vSy8B .menu___NiyBu div{clear:both;margin:0;padding:5px 12px;color:#000000e0;font-weight:400;font-size:14px;text-align:left;line-height:1.57142857;cursor:pointer;transition:all .2s;white-space:nowrap}.input___PW2zI .dropdown___vSy8B .menu___NiyBu div:hover{background-color:#f5f5f5}.input___PW2zI>input{flex:1 1;padding:4px 0}.flex_box_center___tol8o{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___Z235C{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___Wq1sZ{align-items:center;box-align:center}.flex_box_center_end___LLxom{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___DbMSN{flex-direction:column;box-orient:block-axis}.quickPager___GM30J{display:flex;align-items:center;justify-content:center}.quickPager___GM30J>div{width:60px;height:28px;line-height:26px;text-align:center;background:#f8f9fc;border-radius:2px;border:1px solid rgba(195,207,224,.5);font-size:12px;color:#464f66;margin:0 10px;user-select:none;cursor:pointer}.quickPager___GM30J>div:hover{color:#165dff}.quickPager___GM30J .disabled___Ozc8I{background:#f3f3f5;border:0;line-height:28px;cursor:not-allowed;color:#cecece}.flex_box_center___FO7TP{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___LotYx{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___bWdaw{align-items:center;box-align:center}.flex_box_center_end___mVJ1o{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___M83Mm{flex-direction:column;box-orient:block-axis}.list___oOsiS{display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap;padding:0}.list___oOsiS .wrap___G6T7F{height:277px;background:#fff;box-shadow:0 2px 4px #d6dae1;border-radius:8px;position:relative}.list___oOsiS .wrap___G6T7F .lockWrap___Rl79E{position:absolute;width:100%;left:0;top:0;background-color:#00000080;height:100%;z-index:10;display:flex;cursor:default;justify-content:center;align-items:center;flex-direction:column;border-radius:8px}.list___oOsiS .wrap___G6T7F .li___oZZ7l:hover .cover___b2bYW{transform:scale(1.1)}.list___oOsiS .wrap___G6T7F .li___oZZ7l .img___IQX7w{overflow:hidden;height:calc(100% - 100px);border-radius:8px 8px 0 0;position:relative}.list___oOsiS .wrap___G6T7F .li___oZZ7l .img___IQX7w .cover___b2bYW{width:100%;transition:all .5s}.list___oOsiS .wrap___G6T7F .li___oZZ7l .img___IQX7w .sign___HkT6C{position:absolute;z-index:1;left:0;bottom:0;height:30px}.list___oOsiS .wrap___G6T7F .li___oZZ7l .name___SsJx8{height:52px;font-size:16px;font-weight:600;color:#000;padding:30px 12px 0;width:100%;display:flex;align-items:center}.list___oOsiS .wrap___G6T7F .li___oZZ7l .name___SsJx8 .e___TMqq0{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.list___oOsiS .wrap___G6T7F .li___oZZ7l .tags___bcjyo{height:45px;display:flex;align-items:center;color:#000f37;padding:0 12px}.list___oOsiS .wrap___G6T7F .li___oZZ7l .tags___bcjyo i{color:#7d8592}.list___oOsiS .wrap___G6T7F .li___oZZ7l .tags___bcjyo>span{margin-right:5px;font-size:12px}.list___oOsiS .wrap___G6T7F .li___oZZ7l .tags___bcjyo .rate___YACg7{display:flex;align-items:center;margin-left:auto}.list___oOsiS .wrap___G6T7F .li___oZZ7l .tags___bcjyo .rate___YACg7 [class~=ant-rate-star]{font-size:13px}.list___oOsiS .wrap___G6T7F .li___oZZ7l .tags___bcjyo .rate___YACg7 [class~=ant-rate]{font-size:12px;margin-top:-3px;color:#ffa100}.list___oOsiS .wrap___G6T7F .li___oZZ7l .tags___bcjyo .rate___YACg7 [class~=ant-rate-star]:not(:last-child){margin-right:2px}.flex_box_center___AQ53o{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___i2aIa{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___sPEKB{align-items:center;box-align:center}.flex_box_center_end___GhSSH{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___R9_Hb{flex-direction:column;box-orient:block-axis}.list___jb2Ay{display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap;padding:0}.list___jb2Ay .wrap___VsQDr{height:308px;background:#fff;box-shadow:0 2px 4px #d6dae1;border-radius:8px;position:relative}.list___jb2Ay .wrap___VsQDr:hover [class~=user-path-items]{display:block!important}.list___jb2Ay .wrap___VsQDr .lockWrap___g1k1T{position:absolute;width:100%;left:0;top:0;background-color:#00000080;height:100%;z-index:10;display:flex;cursor:default;justify-content:center;align-items:center;border-radius:8px}.list___jb2Ay .wrap___VsQDr .li___IxCLC:hover .cover___Mu8wr{transform:scale(1.1)}.list___jb2Ay .wrap___VsQDr .li___IxCLC .img___IpFLA{overflow:hidden;height:calc(100% - 131px);border-radius:8px 8px 0 0}.list___jb2Ay .wrap___VsQDr .li___IxCLC .img___IpFLA .cover___Mu8wr{width:100%;transition:all .5s}.list___jb2Ay .wrap___VsQDr .li___IxCLC .img___IpFLA .movebq___mF7wt{display:none;position:absolute;top:0;right:0;width:70px;height:32px;background:#0000004d;color:#d9c7ab;padding:0 8px;font-size:16px;line-height:32px;border-top-right-radius:8px;border-bottom-left-radius:8px}.list___jb2Ay .wrap___VsQDr .li___IxCLC .img___IpFLA .bq___Bil0T{margin-right:10px;width:64px;height:22px;background:#0000004d;color:#d9c7ab;border-radius:2px;padding:0 8px;font-size:12px;line-height:22px}.list___jb2Ay .wrap___VsQDr .li___IxCLC .img___IpFLA .sign___DXJ4d{width:52px;text-align:center;position:absolute;z-index:2;left:0;top:7px;color:#fff}.list___jb2Ay .wrap___VsQDr .li___IxCLC .name___l7FoJ{height:52px;font-size:16px;font-weight:600;color:#000;padding:30px 12px 0;width:100%;display:flex;align-items:center}.list___jb2Ay .wrap___VsQDr .li___IxCLC .name___l7FoJ .e___pXQUG{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.list___jb2Ay .wrap___VsQDr .li___IxCLC .unit___wCIFR{font-size:14px;color:#000f37;padding:0 12px;margin-top:8px;display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.list___jb2Ay .wrap___VsQDr .li___IxCLC .unit___wCIFR i{color:#7d8592}.list___jb2Ay .wrap___VsQDr .li___IxCLC .tags___w_Mil{height:34px;display:flex;align-items:center;justify-content:space-between;color:#000f37;padding:0 12px}.list___jb2Ay .wrap___VsQDr .li___IxCLC .tags___w_Mil div{display:flex;align-items:center}.list___jb2Ay .wrap___VsQDr .li___IxCLC .tags___w_Mil div>span{margin-right:12px;font-size:12px}.list___jb2Ay .wrap___VsQDr .li___IxCLC .tags___w_Mil div i{color:#7d8592}.list___jb2Ay .wrap___VsQDr .li___IxCLC .tags___w_Mil .tag1___dxm7r,.list___jb2Ay .wrap___VsQDr .li___IxCLC .tags___w_Mil .tag2___llZkf{height:18px;padding:3px 6px;font-size:12px;border-radius:2px;border:1px solid #FFE6AB;color:#ca7720;display:flex;align-items:center;justify-content:center;font-weight:400}.list___jb2Ay .wrap___VsQDr .li___IxCLC .tags___w_Mil .tag2___llZkf{border:1px solid #D6F7EF;color:#01795d;margin-left:6px}.flex_box_center___eMcr7{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___HcNca{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___ZnvVN{align-items:center;box-align:center}.flex_box_center_end___fdgDf{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___SEKvd{flex-direction:column;box-orient:block-axis}.list___L1hmU{display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap;padding:0}.list___L1hmU .wrap___pKgcW{height:270px;background:#fff;box-shadow:0 1px 4px #d6dae1;border-radius:8px;position:relative}.list___L1hmU .wrap___pKgcW:hover .lockWrap___SMhkK{display:flex}.list___L1hmU .wrap___pKgcW .lockWrap___SMhkK{position:absolute;z-index:10;left:0;top:0;width:100%;height:100%;background:#0009;box-shadow:0 2px 5px #0000000d;border-radius:8px;display:none;flex-direction:column;justify-content:center;align-items:center}.list___L1hmU .wrap___pKgcW .lockWrap___SMhkK div{width:116px;height:36px;border-radius:18px;border:1px solid #ffffff;font-size:14px;font-weight:600;color:#fff;line-height:34px;text-align:center;margin:10px 0;cursor:pointer}.list___L1hmU .wrap___pKgcW .lockWrap___SMhkK div:hover{box-shadow:0 0 4px #4f85ff;border:1px solid #c2d3f8}.list___L1hmU .wrap___pKgcW .top___udHSB{height:calc(100% - 50px);display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:0 24px;position:relative}.list___L1hmU .wrap___pKgcW .top___udHSB .sign___uwRpq{position:absolute;z-index:1;width:44px;height:22px;background:#ffe9c1;border-radius:8px 0 13px;left:0;top:0;color:#a45204;text-align:center;line-height:22px}.list___L1hmU .wrap___pKgcW .top___udHSB .name___Fpf90{font-weight:600;color:#333;margin-top:25px;font-size:16px;white-space:normal;text-align:center;-webkit-box-orient:vertical;display:-webkit-box;-webkit-line-clamp:2;overflow:hidden;line-height:26px;height:48px}.list___L1hmU .wrap___pKgcW .top___udHSB .img___AMLhL{width:60px;height:60px;border-radius:30px;margin-top:14px}.list___L1hmU .wrap___pKgcW .top___udHSB .text___KiTb7{font-size:14px;color:#333;margin-top:8px;width:98%;text-align:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.list___L1hmU .wrap___pKgcW .top___udHSB .btns___i6IuZ{display:flex;align-items:center;margin-top:12px}.list___L1hmU .wrap___pKgcW .top___udHSB .btns___i6IuZ div{width:76px;background:#fff;height:26px;border-radius:13px;border:1px solid #d6f7ef;font-size:14px;color:#01795d;line-height:24px;text-align:center;margin:0 10px}.list___L1hmU .wrap___pKgcW .top___udHSB .btns___i6IuZ aside{width:76px;background:#fff;height:26px;border-radius:13px;border:1px solid #ffe9c1;font-size:14px;color:#a45204;line-height:24px;text-align:center;margin:0 10px}.list___L1hmU .wrap___pKgcW .bottom____k2sh{height:50px;border-top:1px solid #f5f5f5;display:flex;align-items:center;padding:0 12px}.list___L1hmU .wrap___pKgcW .bottom____k2sh>div{margin-left:auto}.list___L1hmU .wrap___pKgcW .bottom____k2sh>span{display:flex;align-items:center;margin-right:12px;color:#999}.list___L1hmU .wrap___pKgcW .bottom____k2sh>span i{font-size:14px;font-size:12px;color:#999;margin-right:6px}.flex_box_center___d27mZ{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___qfRU9{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___fCRld{align-items:center;box-align:center}.flex_box_center_end___ORMV8{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___PNKtZ{flex-direction:column;box-orient:block-axis}.tabs___alpa7{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #dbdce0;height:54px}.tabs___alpa7 .tabsWrap___aCQjw{display:flex;align-items:center;height:100%}.tabs___alpa7 .tabsWrap___aCQjw .tab___MKLr4{display:flex;align-items:center;margin-right:40px;height:100%;cursor:pointer}.tabs___alpa7 .tabsWrap___aCQjw .tab___MKLr4>div{position:relative;font-size:14px;font-weight:400;color:#5f6368;display:flex;align-items:center;height:100%}.tabs___alpa7 .tabsWrap___aCQjw .tab___MKLr4 .active___nl_4v{font-weight:500;color:#202124}.tabs___alpa7 .tabsWrap___aCQjw .tab___MKLr4 .active___nl_4v:after{position:absolute;content:"";width:100%;z-index:4;left:0;bottom:0;height:3px;background:#202124;border-radius:100px 100px 0 0}.flex_box_center___e6HxQ{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___RnXYe{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___lVxPk{align-items:center;box-align:center}.flex_box_center_end___bu8yv{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___JczGj{flex-direction:column;box-orient:block-axis}.orderWrap___ZfyGX{display:box;display:flex;align-items:center}.orderIconWrap___XTB_O{display:box;display:flex;flex-direction:column;height:40px;line-height:40px;color:#999}.orderAsc___KWHmA{flex-direction:column;text-align:center;height:10px;line-height:10px;display:inline-block;margin-top:9px;transform:translateY(2px)}.orderDesc___rHdbB{flex-direction:column;text-align:center;height:10px;line-height:10px;display:table}.active___a7eSP{color:#232b40!important}.cursorPointer___gs9kL{cursor:pointer;color:#d8d8d8;height:10px}.orderTextWrap___teAKn{font-size:14px;color:#3b3e47;cursor:pointer;margin-right:5px}.flex_box_center___LCi0B{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___hzONe{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___ZyQRE{align-items:center;box-align:center}.flex_box_center_end___XKM74{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___p8LCU{flex-direction:column;box-orient:block-axis}.btn___In02G.mediacy-round___uveEv{height:36px;border-radius:36px}.btn___In02G.mediacy-default___dDxsd{height:36px;border-radius:4px}.btn___In02G .default___K791v{background:#f6f7f9 linear-gradient(180deg,#fff,#f6f7f9);box-shadow:0 2px 4px #e0dfe1,inset 0 1px 3px #ffffff80;border:1px solid #bacffe;font-size:14px;padding:0 15px;color:#3061d0;text-align:center;cursor:pointer;user-select:none}button[class~=ant-btn-default]:not(:disabled).btn___In02G{background:#f6f7f9 linear-gradient(180deg,#fff,#f6f7f9);box-shadow:0 2px 4px #e0dfe1,inset 0 1px 3px #ffffff80;border:1px solid #bacffe;font-size:14px;padding:0 15px;color:#3061d0;text-align:center;cursor:pointer;user-select:none}button[class~=ant-btn-default]:not(:disabled).btn___In02G:hover{color:#165dff;border:1px solid #165dff}button[class~=ant-btn-default]:disabled.btn___In02G{background:#f6f7f9 linear-gradient(180deg,#fff,#f6f7f9);box-shadow:0 2px 4px #e0dfe1,inset 0 1px 3px #ffffff80;border:1px solid #bacffe;font-size:14px;padding:0 15px;color:#3061d0;text-align:center;cursor:pointer;user-select:none;opacity:50%;cursor:not-allowed}.flex_box_center___TB7bQ{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___oBlTb{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___b5XbB{align-items:center;box-align:center}.flex_box_center_end___CNhe7{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___yHXKW{flex-direction:column;box-orient:block-axis}.head___ghH72{height:54px;border-bottom:1px solid #DBDCE0;display:flex;align-items:center}.head___ghH72>span{color:#999;font-size:12px;cursor:pointer;flex-shrink:0}.head___ghH72>b{font-weight:500;color:#232b40;margin-left:30px;font-size:14px;flex:1 1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.head___ghH72 .node___mjPEy{margin-left:auto;flex-shrink:0}.flex_box_center___AlHuF{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___vN2LW{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___Ac7D2{align-items:center;box-align:center}.flex_box_center_end___y38I7{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___iQE6P{flex-direction:column;box-orient:block-axis}.btns___sNgTb{display:flex;align-items:center}.btns___sNgTb .confirm___Ozirl{height:38px;background:#3061d0;border-radius:2px;color:#fff;padding:0 34px}.btns___sNgTb .cancel___aiq1I{height:38px;background:#f8f9fc;border-radius:2px;opacity:.5;border:1px solid #C3CFE0;font-size:14px;color:#464f66;margin-left:20px}.flex_box_center___jkpdr{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___OtsL8{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___rbcb_{align-items:center;box-align:center}.flex_box_center_end___zBR21{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___nS_eP{flex-direction:column;box-orient:block-axis}.fixedBottom___oJl7m{width:100%;height:70px;background:#fff;box-shadow:0 -3px 16px #dbdbdb80;position:fixed;z-index:1000;bottom:0;left:0}.fixedBottom___oJl7m .wrap___A3Oq1{width:1200px;height:100%;margin:auto;display:flex;align-items:center;justify-content:space-between}.fixedBottom___oJl7m .wrap___A3Oq1 .center____VL1y{flex:1 1}.flex_box_center___tY8Yn{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___vHdYA{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___pa61F{align-items:center;box-align:center}.flex_box_center_end___HyDXt{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___UjZek{flex-direction:column;box-orient:block-axis}.crumbs___V41Oe{margin:15px auto 25px;width:1200px;cursor:default}.crumbs___V41Oe span{font-size:12px;color:#c5c5c5}.crumbs___V41Oe .hover___bEIVd{cursor:pointer}.crumbs___V41Oe .hover___bEIVd:hover{color:#5f6368}.wrap___altfw [class~=ant-table-column-sorters]{padding:12px 2px}.wrap___altfw [class~=ant-table-tbody]>tr>td{padding:12px 2px}.wrap___altfw [class~=ant-table-thead]>tr>th{padding:12px 2px}.wrap___altfw [class~=ant-table-tbody]>tr>td{color:#05101a}.wrap___altfw [class~=ant-checkbox-wrapper]{margin-right:8px;margin-left:8px}.maxWidth70___Q4NoO{max-width:70px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.maxWidth80___lwsmt{max-width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.maxWidth100___Wnsw8{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.maxWidth110___zQh0P{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.maxWidth120___gjwfa{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reviewStatusTooltip___um7Rt [class~=ant-tooltip-content]{width:450px}.color32C___GIjgW{color:#32c090}.MdEditor___OuyKH [class~=CodeMirror-gutters]{left:0!important}.MdEditor___OuyKH [class~=CodeMirror-gutter-wrapper]{left:-30px!important}.MdEditor___OuyKH [class~=CodeMirror-cursor]{height:25px!important}.tr1___nwwbX{transform:translateY(1px)}.TableDom___pl59W .ant-table-column-sorters{justify-content:center!important}.wrap___kCwPu [class~=ant-table-column-sorters]{padding:12px 2px}.wrap___kCwPu [class~=ant-table-tbody]>tr>td{padding:12px 2px}.wrap___kCwPu [class~=ant-table-thead]>tr>th{padding:12px 2px}.wrap___kCwPu [class~=ant-table-tbody]>tr>td{color:#05101a}.wrap___kCwPu [class~=ant-checkbox-wrapper]{margin-right:8px;margin-left:8px}.refresh___dkiX_{margin-top:15px}.refresh___dkiX_ [class~=ant-checkbox-wrapper]{margin-left:0!important}.maxWidth70___u0Fnw{max-width:70px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.maxWidth80___B8pkG{max-width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.maxWidth100___jQ_W6{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.maxWidth110___t9GZl{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.maxWidth120___tvrlz{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reviewStatusTooltip___nCQT1 [class~=ant-tooltip-content]{width:450px}.color32C___KnLuR{color:#32c090}.MdEditor___IcZwd [class~=CodeMirror-gutters]{left:0!important}.MdEditor___IcZwd [class~=CodeMirror-gutter-wrapper]{left:-30px!important}.MdEditor___IcZwd [class~=CodeMirror-cursor]{height:25px!important}.tr1___k3Rcs{transform:translateY(1px)}.scroll___TVUAz{overflow:scroll;height:70px;box-sizing:border-box}.work_button___QokXJ{cursor:pointer;text-align:center;width:116px;color:#3061d0;height:32px;background:#f6f7f9 linear-gradient(180deg,#fff,#f6f7f9);box-shadow:0 2px 4px #e0dfe1,inset 0 1px 3px #ffffff80;border-radius:20px;border:1px solid rgba(48,97,208,.5);display:flex;align-items:center;justify-content:center;margin-top:20px}.work_button___QokXJ:hover{border:1px #165dff solid;color:#165dff}.greyText___XLove{color:#5f6367}.info___A1gYD{margin-bottom:30px}.info___A1gYD .label___hzhZk{font-size:14px;font-weight:400;margin-right:10px}.info___A1gYD .blackContent___WdHyW{color:#000}.info___A1gYD .orangeContent___d5L7E{color:#fa6400}.inputLabel___arXff{margin-bottom:10px}.tableTitle___xt1qf{display:flex;align-items:center;font-size:14px;font-weight:500;color:#000;margin-bottom:15px}.tableTitle___xt1qf:before{content:"";display:inline-block;width:2px;height:12px;background:#000;margin-right:4px}.scoreTable___AoIAG{max-height:280px;overflow:auto}.currentPrimary___NPWiR{cursor:pointer;user-select:none}.currentPrimary___NPWiR:hover{color:#165dff}.currentDelete___UEfhf{cursor:pointer;user-select:none}.currentDelete___UEfhf:hover{color:#e30000}.DirectoryTree___xPxCY{width:100%}.DirectoryTree___xPxCY .EditDom___seNxC{display:none}.DirectoryTree___xPxCY div[class~=ant-tree-treenode]{padding:4px 0}.DirectoryTree___xPxCY div[class~=ant-tree-treenode]:hover .EditDom___seNxC{display:block}.DirectoryTree___xPxCY span[class~=ant-tree-iconEle]{height:auto!important}.DirectoryTree___xPxCY div[class~=ant-tree-treenode-selected]:before{bottom:0!important;background:#f6f7f9!important;border-radius:4px!important}.DirectoryTree___xPxCY span[class~=ant-tree-node-content-wrapper]{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;padding:0!important;line-height:40px!important}.DirectoryTree___xPxCY span[class~=ant-tree-title]{flex:1 1;color:#191919!important;padding-right:25px!important;display:inline-flex!important;align-items:center!important}.flex_box_center___IBr6x{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___n2Iz0{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___1umwO{align-items:center;box-align:center}.flex_box_center_end___SRZYb{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___b90Da{flex-direction:column;box-orient:block-axis}.form___V3fAH{padding:30px 50px}.title_icon____uDZy{margin-left:6px;color:#666;font-weight:initial;font-size:16px;cursor:pointer}.title_icon____uDZy:hover{color:#3061d0}.title___RxKwK{height:16px;font-weight:600;font-size:16px;line-height:16px;color:#000;margin-bottom:10px}.content___vFT5m{background-color:#f6f7f9;padding:10px 30px}.content___vFT5m .pubColSty___dfLkL{height:40px;line-height:40px;padding:0 30px;border-bottom:1px solid #fff}.content___vFT5m .selectSty____Wuek div[class~=ant-select-selector]{padding:1px 4px}.borderSty___EuFYV{border:1px solid #DCDCDC}.borderSty___EuFYV:hover{border:1px solid #3061D0}.borderSty___EuFYV .delSty___AdEeI{color:#ccc}.borderSty___EuFYV .delSty___AdEeI:hover{color:#e30}.delBorder___vcTJc{border:1px solid #e30!important}.copHover___JVVXI:hover{background:#3061d0!important;color:#fff!important}.multiple_select___ZMPhl [class~=ant-select-selector]{min-height:40px!important;line-height:40px!important}.work_button___TiK1a{cursor:pointer;text-align:center;width:116px;color:#3061d0;height:32px;background:#f6f7f9 linear-gradient(180deg,#fff,#f6f7f9);box-shadow:0 2px 4px #e0dfe1,inset 0 1px 3px #ffffff80;border-radius:20px;border:1px solid rgba(48,97,208,.5);display:flex;align-items:center;justify-content:center;margin-top:20px}.work_button___TiK1a:hover{border:1px #165dff solid;color:#165dff}.title_tooltip___LLdrn{font-weight:400;font-size:14px;color:#666;line-height:14px}.multiple_select___kDXUm{height:40px;line-height:40px;margin-left:5px;width:250px;border:1px solid #d9d9d9;background:#0000000a;padding:0 8px;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.modal_con___ERnkW{min-height:400px;max-height:400px;overflow-y:auto;background:#f6f7f9}.flex_box_center___rQJfc{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___MDW24{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___RZbAv{align-items:center;box-align:center}.flex_box_center_end___ILhJA{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___Fmij7{flex-direction:column;box-orient:block-axis}.orangeColor___U5vU6{color:#fa6400}.redColor___qYa6X{color:#e30000}.statustitle___pTBLm{font-weight:600;color:#333;margin-left:5px}.statusbody___qUPQx{background:#f6f7f9;padding:10px 20px;margin-top:5px}.flex___VtL45{display:flex;align-items:center}#educoder .modal___VzyKs .ant-modal{width:initial!important}#educoder .modal___VzyKs .ant-modal-content{background:transparent;box-shadow:none}#educoder .modal___VzyKs .ant-modal-close{display:none}#educoder .modal___VzyKs .ant-modal-body{padding:0!important;overflow:initial!important}.content___HhLQS{position:relative}.content___HhLQS .close___zKaRB{cursor:pointer;position:absolute;z-index:1200;right:-70px;top:-40px}.flex_box_center___F26vH{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___J7N7g{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___W4LLF{align-items:center;box-align:center}.flex_box_center_end___ViUq3{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___fhMvC{flex-direction:column;box-orient:block-axis}.content___gstD6{padding:0 14px;display:flex;flex-direction:column;height:100%;overflow:hidden}.content___gstD6 .explain___gCVEb{font-size:14px;color:#165dff;text-decoration:underline;cursor:pointer}.content___gstD6 .tabs___JAbVp{height:40px;display:flex;border-bottom:1px solid #DEDEDE;margin-top:24px;flex-shrink:0}.content___gstD6 .tabs___JAbVp div{margin-right:40px;position:relative;font-size:16px;color:#333;cursor:pointer;user-select:none}.content___gstD6 .tabs___JAbVp div:hover,.content___gstD6 .tabs___JAbVp .active___O3Rxd{color:#165dff}.content___gstD6 .tabs___JAbVp .active___O3Rxd:after{content:"";width:100%;height:2px;background:#165dff;position:absolute;bottom:0;left:0}.content___gstD6 .btns___bZYiw{display:flex;align-items:center;justify-content:flex-end;margin-top:15px}.must___Ne3Rd{color:#e53333;font-family:SimSun,sans-serif;margin-top:-2px;margin-right:2px}.popover___MLGUB{background-color:transparent;color:#fff}.popover___MLGUB div[class~=ant-popover-arrow]{border-top-color:#05101a99!important;border-left-color:#05101a99!important}.popover___MLGUB div[class~=ant-popover-inner]{background-color:#05101a99}.popover___MLGUB div[class~=ant-popover-inner-content]{color:#fff}.zybzForm___JaYlh div[class~=ant-form-item]{margin-bottom:0}.zybzForm___JaYlh div[class~=ant-form-item-explain-error]{position:absolute;bottom:-21px}.graaytitle___vJ0cM{height:50px;background:#f5f5f5;border-radius:4px;display:flex;justify-content:left;align-items:center}.graaytitle___vJ0cM div[class~=ant-form-item-explain-error]{position:absolute;bottom:-30px}.dataPicker___qgWAA{width:400px}.examineStatus___A8ldH{font-size:14px;font-weight:400;color:#333}.examineStatus___A8ldH div{position:relative;display:flex;align-items:center;margin-bottom:30px}.examineStatus___A8ldH div:after{content:"";position:absolute;left:10px;bottom:-27px;width:2px;height:26px;background:#f6f7f9;border-radius:3px}.examineStatus___A8ldH div:last-child:after{content:"";display:none}.examineStatus___A8ldH div .contacts___yS8x4{position:relative;color:#165dff;overflow:hidden;cursor:pointer}.examineStatus___A8ldH div .contacts___yS8x4 .contacts_img___pPzVA{position:absolute;left:50%;right:50%;transform:translate(-50%);width:152px;height:158px;background:url(./static/contacts.5353ed7e.png) no-repeat;background-size:100% 100%;background-position:center}.examineStatus___A8ldH div .contacts___yS8x4:hover{overflow:inherit}.examineStatus___A8ldH .suc_status___hDmBK{font-size:20px;color:#2fc25b;margin-right:10px}.examineStatus___A8ldH .fail_status___KeR0l{font-size:20px;color:#e53333;margin-right:10px}.examineStatus___A8ldH .bohui___cxmL1{max-width:300px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.anchorNavigation___qD4R0 .tabs___hVMvA{background:#fff;position:sticky;top:0;z-index:1000}.anchorNavigation___qD4R0 .tabs___hVMvA .ant-tabs-nav{margin-bottom:0;padding-left:20px}.anchorNavigation___qD4R0 .tabs___hVMvA .ant-tabs-nav:before{border-bottom:0}.anchorNavigation___qD4R0 .tabs___hVMvA .ant-tabs-tab{padding:9px 0;color:#333!important}.anchorNavigation___qD4R0 .tabs___hVMvA .ant-tabs-tab-btn{font-weight:600;font-size:14px;text-shadow:none!important}.anchorNavigation___qD4R0 .box___Qz1lW{background:#fff}.anchorNavigation___qD4R0 .box___Qz1lW .head___WZZdl{margin-top:10px;width:1200px;height:40px;background:#fff;box-shadow:0 2px 4px #f1f4f9;display:flex;align-items:center;padding:0 20px;font-weight:600;font-size:18px;color:#3061d0!important}.tips___e8J4O{margin-bottom:14px;background-color:#fafafa;padding:10px;border-radius:4px}.homeworkType___ZjN2X{margin-bottom:8px}.antdTable___amDdp tbody[class~=ant-table-tbody] td{border-bottom:none}.modalWrapper___XPojI div[class~=ant-modal-header]{padding-bottom:14px}.modalWrapper___XPojI div[class~=ant-modal-body]{padding-top:0}.leftdiv___aBzsX{flex:1 1;margin-right:8px;height:340px;border-radius:4px;border:1px solid #d9d9d9;padding:14px}.leftdiv___aBzsX .listClass___bxIEW{display:flex;align-items:center}.leftdiv___aBzsX .spantitle___v_Vc4{word-break:break-all;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:108px;display:inline-block}.rightdiv___xWu4M{margin-left:8px;flex:1 1;height:340px;border-radius:4px;border:1px solid #d9d9d9;padding:14px}.flex_box_center___vhwFp{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___rbHwE{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___AF_yr{align-items:center;box-align:center}.flex_box_center_end___FqGSd{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___ujWr7{flex-direction:column;box-orient:block-axis}.failedList___KGsCg{display:flex;align-items:center;justify-content:space-between;margin-top:15px}.failedList___KGsCg .name___bbsWC{height:22px;font-weight:400;font-size:14px;color:#191919;line-height:22px;text-align:left;font-style:normal}.failedList___KGsCg .publish___mai8J{width:60px;height:32px;background:linear-gradient(180deg,#fff,#f6f7f9),#f6f7f9;box-shadow:0 2px 4px #e0dfe1,inset 0 1px 3px #ffffff80;border-radius:16px;border:1px solid #BACFFE;padding:4px 15px;font-size:14px;color:#3061d0;cursor:pointer}.modal___t6wU6 div[class~=knowledgeGraph-modal-header]{background:#fff!important;margin-bottom:0rem!important}.modal___t6wU6 div[class~=knowledgeGraph-modal-body]{background:#fff!important}.modal___t6wU6 div[class~=knowledgeGraph-modal-footer]{background:#fff!important;margin-top:0rem!important}.flex_box_center___ifw7q{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___XbpkU{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___TqfOZ{align-items:center;box-align:center}.flex_box_center_end___DaT_4{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___hy0Nl{flex-direction:column;box-orient:block-axis}.title___iYOvG{display:flex;align-items:center}.title___iYOvG strong{max-width:600px;-webkit-box-orient:vertical;display:-webkit-box;-webkit-line-clamp:1;overflow:hidden}.menuTabs___qIcvV [class=ant-tabs-nav]{margin-bottom:0!important}.menuTabs___qIcvV [class=ant-tabs-nav] button{font-size:14px}.menuTabs___qIcvV [class=ant-tabs-nav]{height:60px!important;background:#fff;padding:0 30px!important}.rightMenu___pcK7x{position:absolute;right:0;top:0;z-index:2;text-align:right;vertical-align:top;font-size:0;display:box;display:flex;align-items:center;box-align:center}.rightMenu___pcK7x button{padding:5px 11px;height:32px;font-size:14px}.rightMenu___pcK7x p,.rightMenu___pcK7x a{width:103px;height:32px;text-align:center;font-size:14px;color:#333;margin:0 0 0 10px;display:inline-block;border:1px solid #eaeaea;background:#fff;cursor:pointer;display:box;display:flex;justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.rightMenu___pcK7x p [class~=iconfont],.rightMenu___pcK7x a [class~=iconfont]{font-size:14px;color:#333;margin-right:4px}.rightMenu___pcK7x p:hover,.rightMenu___pcK7x a:hover{background:#0152d9;color:#fff;border:1px solid #0152d9}.rightMenu___pcK7x p:hover [class~=iconfont],.rightMenu___pcK7x a:hover [class~=iconfont]{color:#fff}.shixunDetail___h414d{position:absolute;top:-60px;right:0}.workListTabWrap___BPpdb .ant-tabs-nav{align-items:flex-start;height:40px;margin-bottom:0!important}.workListTabWrap___BPpdb .ant-tabs-nav:before{content:unset}.workListTabWrap___BPpdb .ant-tabs-nav .ant-tabs-nav-wrap{padding-left:0}.workListTabWrap___BPpdb .ant-tabs-nav .ant-tabs-nav-wrap .ant-tabs-nav-list .ant-tabs-tab{min-width:96px;height:38px;background:#fafafa;border-radius:4px 4px 0 0;font-size:14px;font-weight:400;color:#b9b8b8;display:unset;border:none;text-align:center;padding-top:9px}.workListTabWrap___BPpdb .ant-tabs-nav .ant-tabs-nav-wrap .ant-tabs-nav-list .ant-tabs-tab .ant-tabs-tab-btn:active{color:#333}.workListTabWrap___BPpdb .ant-tabs-nav .ant-tabs-nav-wrap .ant-tabs-nav-list .ant-tabs-tab.ant-tabs-tab-active{position:relative;background:#fff}.workListTabWrap___BPpdb .ant-tabs-nav .ant-tabs-nav-wrap .ant-tabs-nav-list .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn{color:#333}.workListTabWrap___BPpdb .ant-tabs-nav .ant-tabs-nav-wrap .ant-tabs-nav-list .ant-tabs-tab.ant-tabs-tab-active:after{position:absolute;content:"";width:100%;height:2px;background-color:#fff;bottom:-2px;left:0}.workListTabWrap___BPpdb .workListTabButton___QdhmD>button{border-radius:4px;margin-right:10px}.workListTabWrap___BPpdb .workListTabButton___QdhmD>button>i{margin-right:8px}.workListTabWrap___BPpdb .workListTabButton___QdhmD>button:last-child{margin-right:0}.analysisWrapper___vy_V8{background-color:#fff;padding:30px 30px 100px}.analysisWrapper___vy_V8 .title___tQAzn{font-size:16px;font-weight:500;color:#191919;display:flex;align-items:center}.analysisWrapper___vy_V8 .title___tQAzn:before{content:"";display:inline-block;width:6px;height:14px;background:#3061d0;margin-right:8px}.analysisWrapper___vy_V8 .tableWrapper___ztB9P thead[class~=ant-table-thead] th{font-weight:400;background-color:#fff}.analysisWrapper___vy_V8 .tableWrapper___ztB9P thead[class~=ant-table-thead] th.firstCol___Itr68,.analysisWrapper___vy_V8 .tableWrapper___ztB9P .firstCol___Itr68{background:#f6f7f9;color:#5f6368}.itemWrapper___Jaw8O{border-radius:4px;border:1px solid #EDEDED;padding:16px}.itemWrapper___Jaw8O .itemTitle___gmKyn{font-size:14px;font-weight:500;color:#666}.itemWrapper___Jaw8O .count___MUY3o{font-size:14px;font-weight:500;color:#191919}.echarts_list___RNu3g{display:flex;justify-content:space-between}.echarts_list___RNu3g .echarts_item___ZHo0B{width:23.5%;border:2px #f0f0f0 solid;border-radius:5px}.tips___k4pHA{cursor:pointer;margin-left:5px}.tips___k4pHA>i{font-size:14px}.flex_box_center___swvFl{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___AqPFV{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___XWInJ{align-items:center;box-align:center}.flex_box_center_end___GB61t{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___dJnz1{flex-direction:column;box-orient:block-axis}.analysis___xyV_c .title___DQ3VK{display:flex;align-items:center;margin-bottom:20px}.analysis___xyV_c .title___DQ3VK b{width:6px;height:14px;background:#3061d0;border-radius:1px;display:inline-block;margin-right:8px}.analysis___xyV_c .title___DQ3VK span{font-size:16px;font-weight:500;color:#191919;line-height:16px}.analysis___xyV_c .itemWrap___vFE5r{display:flex;justify-content:space-between}.analysis___xyV_c .itemWrap___vFE5r .item___NjeOt{width:23%;height:145px;border-radius:4px;border:1px solid #EDEDED}.list___BbMrm{display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap;padding:0}.list___BbMrm .wrap___UQTTb{width:100px;height:254px;background:#fff;box-shadow:0 4px 8px #c1cad480;border-radius:12px}.list___BbMrm .wrap___UQTTb .img___tNvUo{height:184px;position:relative;overflow:hidden;border-radius:12px 12px 0 0}.list___BbMrm .wrap___UQTTb .img___tNvUo img{width:100%}.list___BbMrm .wrap___UQTTb .img___tNvUo .tips___Eu4wH{padding-left:16px;padding-top:10px;height:57px;color:#fff;width:100%;position:absolute;z-index:10;bottom:0;left:0;background:linear-gradient(180deg,#0000,#000000a8)}.list___BbMrm .wrap___UQTTb .footer___ZbR9W{height:70px;padding:15px}.list___BbMrm .wrap___UQTTb .footer___ZbR9W ul{display:flex;align-items:center;padding:0}.list___BbMrm .wrap___UQTTb .footer___ZbR9W ul li{width:50%;color:#7d7d7d}.list___BbMrm .wrap___UQTTb .footer___ZbR9W ul li i{margin-right:5px;font-size:14px}.noData___mLlw0 .title___DQ3VK{display:flex;align-items:center;margin-bottom:20px}.noData___mLlw0 .title___DQ3VK b{width:6px;height:14px;background:#3061d0;border-radius:1px;display:inline-block;margin-right:8px}.noData___mLlw0 .title___DQ3VK span{font-size:16px;font-weight:500;color:#191919;line-height:16px}.flex_box_center___SF0m3{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___ChLjp{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center____l_EF{align-items:center;box-align:center}.flex_box_center_end___YcZNu{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___R9dNq{flex-direction:column;box-orient:block-axis}.downloadbutton___oEXJW{width:146px;height:32px;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#fff,#f6f7f9),#f6f7f9;box-shadow:0 2px 4px #e0dfe1,inset 0 1px 3px #ffffff80;border-radius:2px;border:1px solid #BACFFE;margin-bottom:20px}.configWorkContainer___CHUrh .ant-tabs-nav{background-color:#fff;height:unset!important}.configWorkContainer___CHUrh .ant-tabs-nav:before{content:""!important}.configWorkContainer___CHUrh .ant-tabs-nav .ant-tabs-nav-wrap .ant-tabs-nav-list .ant-tabs-tab{position:relative;display:inline-flex!important;align-items:center!important;margin:0 0 0 32px;padding:8px 0;font-size:12px;background:transparent!important;border:0!important;outline:none!important;cursor:pointer;border-radius:unset!important;font-weight:unset!important;color:#333!important;min-width:unset!important;height:60px!important} +.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:#14ff1480;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;animation:blink 1.06s steps(1) infinite;background-color:#7e7}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;inset:-50px 0 0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error,.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:#ff96004d}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;inset:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors,.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}#educoder .markdown-editor-wrapper{position:relative}#educoder .markdown-editor-body{display:flex;flex-flow:row nowrap;width:100%;height:calc(100% - 38px);align-items:center}#educoder .markdown-editor-body .codemirror-container{flex:1 0;height:100%;width:100%;overflow:hidden}#educoder .markdown-editor-body .CodeMirror-wrap{padding-bottom:15px}#educoder .markdown-editor-body .preview-container{flex:1 0;height:100%;margin:10px 0;padding:8px 8px 50px;background:#fff;overflow-y:auto;box-sizing:border-box;border-left:1px solid #ccc;word-wrap:break-word;word-break:break-word;white-space:normal;font-size:16px}#educoder .markdown-editor-container{border:1px solid #ccc;overflow:hidden;border-radius:4px;margin-bottom:12px;font-size:16px}#educoder .markdown-editor-container.full-screen{position:fixed;inset:0;height:100%!important;z-index:998}#educoder .markdown-editor-container.full-screen .preview-container>div{padding-bottom:180px!important}#educoder .markdown-editor-container.full-screen .CodeMirror-sizer>div{margin-bottom:90px}#educoder .markdown-editor-container.on-preview .codemirror-container,#educoder .markdown-editor-container.on-preview .preview-container{width:50%}#educoder .mini .markdown-editor-body{height:calc(100% - 28px)}#educoder .flex-end{justify-content:flex-end}#educoder .my-codemirror-container{border:1px solid #ccc;width:100%;margin-bottom:24px}#educoder .markdown-tip{color:#cdcdcd;font-size:12px;position:absolute;right:0;bottom:-28px;margin-bottom:7px}#educoder .CodeMirror-lines{padding:4px 0}#educoder .CodeMirror pre.CodeMirror-line,#educoder .CodeMirror pre.CodeMirror-line-like{padding:0 4px}#educoder .CodeMirror-scrollbar-filler,#educoder .CodeMirror-gutter-filler{background-color:#fff}#educoder .CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}#educoder .CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}#educoder .CodeMirror-guttermarker{color:#000}#educoder .CodeMirror-guttermarker-subtle{color:#999}#educoder .CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}#educoder .CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}#educoder .cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}#educoder .cm-fat-cursor div.CodeMirror-cursors{z-index:1}#educoder .cm-fat-cursor-mark{background-color:#14ff1480;animation:blink 1.06s steps(1) infinite}#educoder .cm-animate-fat-cursor{width:auto;border:0;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@keyframes blink{50%{background-color:transparent}}#educoder .cm-tab{display:inline-block;text-decoration:inherit}#educoder .CodeMirror-rulers{position:absolute;inset:-50px 0 0;overflow:hidden}#educoder .CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}#educoder .cm-s-default .cm-header{color:#00f}#educoder .cm-s-default .cm-quote{color:#090}#educoder .cm-negative{color:#d44}#educoder .cm-positive{color:#292}#educoder .cm-header,#educoder .cm-strong{font-weight:700}#educoder .cm-em{font-style:italic}#educoder .cm-link{text-decoration:underline}#educoder .cm-strikethrough{text-decoration:line-through}#educoder .cm-s-default .cm-keyword{color:#708}#educoder .cm-s-default .cm-atom{color:#219}#educoder .cm-s-default .cm-number{color:#164}#educoder .cm-s-default .cm-def{color:#00f}#educoder .cm-s-default .cm-variable-2{color:#05a}#educoder .cm-s-default .cm-variable-3,#educoder .cm-s-default .cm-type{color:#085}#educoder .cm-s-default .cm-comment{color:#a50}#educoder .cm-s-default .cm-string{color:#a11}#educoder .cm-s-default .cm-string-2{color:#f50}#educoder .cm-s-default .cm-meta,#educoder .cm-s-default .cm-qualifier{color:#555}#educoder .cm-s-default .cm-builtin{color:#30a}#educoder .cm-s-default .cm-bracket{color:#997}#educoder .cm-s-default .cm-tag{color:#170}#educoder .cm-s-default .cm-attribute{color:#00c}#educoder .cm-s-default .cm-hr{color:#999}#educoder .cm-s-default .cm-link{color:#00c}#educoder .cm-s-default .cm-error,#educoder .cm-invalidchar{color:red}#educoder .CodeMirror-composing{border-bottom:2px solid}#educoder div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}#educoder div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}#educoder .CodeMirror-matchingtag{background:#ff96004d}#educoder .CodeMirror-activeline-background{background:#e8f2ff}#educoder .CodeMirror{position:relative;overflow:hidden;background:#fff}#educoder .CodeMirror-scroll{overflow:scroll!important;margin-bottom:0;margin-right:0;padding-bottom:5px;height:100%;outline:none;position:relative}#educoder .CodeMirror-sizer{position:relative;border-right:0px}#educoder .CodeMirror-vscrollbar,#educoder .CodeMirror-hscrollbar,#educoder .CodeMirror-scrollbar-filler,#educoder .CodeMirror-gutter-filler{position:absolute;z-index:6;display:none}#educoder .CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}#educoder .CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}#educoder .CodeMirror-scrollbar-filler{right:0;bottom:0}#educoder .CodeMirror-gutter-filler{left:0;bottom:0}#educoder .CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}#educoder .CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}#educoder .CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}#educoder .CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}#educoder .CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}#educoder .CodeMirror-gutter-wrapper ::selection{background-color:transparent}#educoder .CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}#educoder .CodeMirror-lines{cursor:text;min-height:1px}#educoder .CodeMirror pre.CodeMirror-line,#educoder .CodeMirror pre.CodeMirror-line-like{border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;font-variant-ligatures:contextual}#educoder .CodeMirror-wrap pre.CodeMirror-line,#educoder .CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}#educoder .CodeMirror-linebackground{position:absolute;inset:0;height:100vh!important;z-index:1100}#educoder .CodeMirror-linebackground .preview-container>div{padding-bottom:180px!important}#educoder .CodeMirror-linebackground .CodeMirror-sizer>div{margin-bottom:90px}#educoder .CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}#educoder .CodeMirror-rtl pre{direction:rtl}#educoder .CodeMirror-code{outline:none}#educoder .CodeMirror-scroll,#educoder .CodeMirror-sizer,#educoder .CodeMirror-gutter,#educoder .CodeMirror-gutters,#educoder .CodeMirror-linenumber{box-sizing:content-box}#educoder .CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}#educoder .CodeMirror-cursor{position:absolute;pointer-events:none}#educoder .CodeMirror-measure pre{position:static}#educoder div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}#educoder div.CodeMirror-dragcursors,#educoder .CodeMirror-focused div.CodeMirror-cursors{visibility:visible}#educoder .CodeMirror-selected{background:#d9d9d9}#educoder .CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}#educoder .CodeMirror-crosshair{cursor:crosshair}#educoder .CodeMirror-line::selection,#educoder .CodeMirror-line>span::selection,#educoder .CodeMirror-line>span>span::selection{background:#d7d4f0}#educoder .CodeMirror-line::-moz-selection,#educoder .CodeMirror-line>span::-moz-selection,#educoder .CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}#educoder .cm-searching{background-color:#ffa;background-color:#ff06}#educoder .cm-force-border{padding-right:.1px}@media print{#educoder .CodeMirror div.CodeMirror-cursors{visibility:hidden}}#educoder .cm-tab-wrap-hack:after{content:""}#educoder span.CodeMirror-selectedtext{background:none}#educoder .CodeMirror-sizer{padding-top:10px;padding-bottom:10px!important}#educoder .CodeMirror-empty.CodeMirror-focused{outline:none}#educoder .CodeMirror pre.CodeMirror-placeholder{color:#999}#educoder .CodeMirror{position:relative;overflow:hidden;background:#fff;word-break:break-word}#educoder .CodeMirror pre.CodeMirror-line,#educoder .CodeMirror pre.CodeMirror-line-like{word-wrap:break-word;word-break:break-word;white-space:pre-wrap;line-height:1.6}@font-face{font-family:KaTeX_AMS;src:url(./static/KaTeX_AMS-Regular.e101fd3b.woff2) format("woff2"),url(./static/KaTeX_AMS-Regular.89a32939.woff) format("woff"),url(./static/KaTeX_AMS-Regular.76b481f1.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Caligraphic;src:url(./static/KaTeX_Caligraphic-Bold.804b0502.woff2) format("woff2"),url(./static/KaTeX_Caligraphic-Bold.ebf5447d.woff) format("woff"),url(./static/KaTeX_Caligraphic-Bold.28758623.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Caligraphic;src:url(./static/KaTeX_Caligraphic-Regular.7ca15b3a.woff2) format("woff2"),url(./static/KaTeX_Caligraphic-Regular.d642f1a8.woff) format("woff"),url(./static/KaTeX_Caligraphic-Regular.fe9310f0.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Fraktur;src:url(./static/KaTeX_Fraktur-Bold.33bcfed3.woff2) format("woff2"),url(./static/KaTeX_Fraktur-Bold.fc482350.woff) format("woff"),url(./static/KaTeX_Fraktur-Bold.70f2abc1.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Fraktur;src:url(./static/KaTeX_Fraktur-Regular.86cfbe4e.woff2) format("woff2"),url(./static/KaTeX_Fraktur-Regular.29abfb1c.woff) format("woff"),url(./static/KaTeX_Fraktur-Regular.51bff235.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Main;src:url(./static/KaTeX_Main-Bold.603892c5.woff2) format("woff2"),url(./static/KaTeX_Main-Bold.9f5bc66f.woff) format("woff"),url(./static/KaTeX_Main-Bold.da66c0ab.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Main;src:url(./static/KaTeX_Main-BoldItalic.bd95a810.woff2) format("woff2"),url(./static/KaTeX_Main-BoldItalic.c31eb616.woff) format("woff"),url(./static/KaTeX_Main-BoldItalic.962b328a.ttf) format("truetype");font-weight:700;font-style:italic}@font-face{font-family:KaTeX_Main;src:url(./static/KaTeX_Main-Italic.7662be2b.woff2) format("woff2"),url(./static/KaTeX_Main-Italic.3c94ae8c.woff) format("woff"),url(./static/KaTeX_Main-Italic.b1598925.ttf) format("truetype");font-weight:400;font-style:italic}@font-face{font-family:KaTeX_Main;src:url(./static/KaTeX_Main-Regular.7056d1df.woff2) format("woff2"),url(./static/KaTeX_Main-Regular.f23b28dc.woff) format("woff"),url(./static/KaTeX_Main-Regular.fe159c21.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Math;src:url(./static/KaTeX_Math-BoldItalic.df742084.woff2) format("woff2"),url(./static/KaTeX_Math-BoldItalic.a6fde119.woff) format("woff"),url(./static/KaTeX_Math-BoldItalic.8ee92314.ttf) format("truetype");font-weight:700;font-style:italic}@font-face{font-family:KaTeX_Math;src:url(./static/KaTeX_Math-Italic.912cb075.woff2) format("woff2"),url(./static/KaTeX_Math-Italic.ad043b21.woff) format("woff"),url(./static/KaTeX_Math-Italic.f4a2fd50.ttf) format("truetype");font-weight:400;font-style:italic}@font-face{font-family:KaTeX_SansSerif;src:url(./static/KaTeX_SansSerif-Bold.198a2b19.woff2) format("woff2"),url(./static/KaTeX_SansSerif-Bold.2dee50c6.woff) format("woff"),url(./static/KaTeX_SansSerif-Bold.9ae5090b.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_SansSerif;src:url(./static/KaTeX_SansSerif-Italic.58452206.woff2) format("woff2"),url(./static/KaTeX_SansSerif-Italic.f88f16ed.woff) format("woff"),url(./static/KaTeX_SansSerif-Italic.363562bf.ttf) format("truetype");font-weight:400;font-style:italic}@font-face{font-family:KaTeX_SansSerif;src:url(./static/KaTeX_SansSerif-Regular.50cd68ac.woff2) format("woff2"),url(./static/KaTeX_SansSerif-Regular.13e35ac8.woff) format("woff"),url(./static/KaTeX_SansSerif-Regular.d1c35243.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Script;src:url(./static/KaTeX_Script-Regular.2fc42204.woff2) format("woff2"),url(./static/KaTeX_Script-Regular.8f35f84f.woff) format("woff"),url(./static/KaTeX_Script-Regular.d09e0cea.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size1;src:url(./static/KaTeX_Size1-Regular.03ff84ee.woff2) format("woff2"),url(./static/KaTeX_Size1-Regular.2222c8c3.woff) format("woff"),url(./static/KaTeX_Size1-Regular.920c8080.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size2;src:url(./static/KaTeX_Size2-Regular.fa296a19.woff2) format("woff2"),url(./static/KaTeX_Size2-Regular.45c74525.woff) format("woff"),url(./static/KaTeX_Size2-Regular.7d3e746e.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size3;src:url(./static/KaTeX_Size3-Regular.d9075b2b.woff2) format("woff2"),url(./static/KaTeX_Size3-Regular.62bef299.woff) format("woff"),url(./static/KaTeX_Size3-Regular.39f7a039.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size4;src:url(./static/KaTeX_Size4-Regular.93084eec.woff2) format("woff2"),url(./static/KaTeX_Size4-Regular.3ee0d868.woff) format("woff"),url(./static/KaTeX_Size4-Regular.cd3f02bf.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Typewriter;src:url(./static/KaTeX_Typewriter-Regular.65cd6476.woff2) format("woff2"),url(./static/KaTeX_Typewriter-Regular.3f215ba2.woff) format("woff"),url(./static/KaTeX_Typewriter-Regular.73468499.ttf) format("truetype");font-weight:400;font-style:normal}.katex{font: 1.21em KaTeX_Main,Times New Roman,serif;line-height:1.2;text-indent:0;text-rendering:auto}.katex *{-ms-high-contrast-adjust:none!important}.katex .katex-version:after{content:"0.11.1"}.katex .katex-mathml{position:absolute;clip:rect(1px,1px,1px,1px);padding:0;border:0;height:1px;width:1px;overflow:hidden}.katex .katex-html>.newline{display:block}.katex .base{position:relative;white-space:nowrap;width:min-content}.katex .base,.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathdefault{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-weight:700;font-style:italic}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{display:inline-table;table-layout:fixed}.katex .vlist-r{display:table-row}.katex .vlist{display:table-cell;vertical-align:bottom;position:relative}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{overflow:hidden;width:0}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{display:table-cell;vertical-align:bottom;font-size:1px;width:2px;min-width:2px}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{display:inline-block;width:100%;border-bottom-style:solid}.katex .hdashline,.katex .hline,.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .rule,.katex .underline .underline-line{min-height:1px}.katex .mspace{display:inline-block}.katex .clap,.katex .llap,.katex .rlap{width:0;position:relative}.katex .clap>.inner,.katex .llap>.inner,.katex .rlap>.inner{position:absolute}.katex .clap>.fix,.katex .llap>.fix,.katex .rlap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .clap>.inner,.katex .rlap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{display:inline-block;border:0 solid;position:relative}.katex .hline,.katex .overline .overline-line,.katex .underline .underline-line{display:inline-block;width:100%;border-bottom-style:solid}.katex .hdashline{display:inline-block;width:100%;border-bottom-style:dashed}.katex .sqrt>.root{margin-left:.27777778em;margin-right:-.55555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .sizing.reset-size2.size1{font-size:.83333333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .sizing.reset-size2.size3{font-size:1.16666667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .sizing.reset-size2.size4{font-size:1.33333333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .sizing.reset-size2.size6{font-size:1.66666667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .sizing.reset-size2.size10{font-size:3.45666667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .sizing.reset-size2.size11{font-size:4.14666667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .sizing.reset-size3.size1{font-size:.71428571em}.katex .fontsize-ensurer.reset-size3.size2,.katex .sizing.reset-size3.size2{font-size:.85714286em}.katex .fontsize-ensurer.reset-size3.size3,.katex .sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .sizing.reset-size3.size4{font-size:1.14285714em}.katex .fontsize-ensurer.reset-size3.size5,.katex .sizing.reset-size3.size5{font-size:1.28571429em}.katex .fontsize-ensurer.reset-size3.size6,.katex .sizing.reset-size3.size6{font-size:1.42857143em}.katex .fontsize-ensurer.reset-size3.size7,.katex .sizing.reset-size3.size7{font-size:1.71428571em}.katex .fontsize-ensurer.reset-size3.size8,.katex .sizing.reset-size3.size8{font-size:2.05714286em}.katex .fontsize-ensurer.reset-size3.size9,.katex .sizing.reset-size3.size9{font-size:2.46857143em}.katex .fontsize-ensurer.reset-size3.size10,.katex .sizing.reset-size3.size10{font-size:2.96285714em}.katex .fontsize-ensurer.reset-size3.size11,.katex .sizing.reset-size3.size11{font-size:3.55428571em}.katex .fontsize-ensurer.reset-size4.size1,.katex .sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .sizing.reset-size5.size1{font-size:.55555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .sizing.reset-size5.size2{font-size:.66666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .sizing.reset-size5.size3{font-size:.77777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .sizing.reset-size5.size4{font-size:.88888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .sizing.reset-size5.size6{font-size:1.11111111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .sizing.reset-size5.size7{font-size:1.33333333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .sizing.reset-size5.size10{font-size:2.30444444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .sizing.reset-size5.size11{font-size:2.76444444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .sizing.reset-size7.size1{font-size:.41666667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .sizing.reset-size7.size3{font-size:.58333333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .sizing.reset-size7.size4{font-size:.66666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .sizing.reset-size7.size6{font-size:.83333333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .sizing.reset-size7.size10{font-size:1.72833333em}.katex .fontsize-ensurer.reset-size7.size11,.katex .sizing.reset-size7.size11{font-size:2.07333333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .sizing.reset-size8.size1{font-size:.34722222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .sizing.reset-size8.size2{font-size:.41666667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .sizing.reset-size8.size3{font-size:.48611111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .sizing.reset-size8.size4{font-size:.55555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .sizing.reset-size8.size6{font-size:.69444444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .sizing.reset-size8.size7{font-size:.83333333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .sizing.reset-size8.size10{font-size:1.44027778em}.katex .fontsize-ensurer.reset-size8.size11,.katex .sizing.reset-size8.size11{font-size:1.72777778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .sizing.reset-size9.size1{font-size:.28935185em}.katex .fontsize-ensurer.reset-size9.size2,.katex .sizing.reset-size9.size2{font-size:.34722222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .sizing.reset-size9.size3{font-size:.40509259em}.katex .fontsize-ensurer.reset-size9.size4,.katex .sizing.reset-size9.size4{font-size:.46296296em}.katex .fontsize-ensurer.reset-size9.size5,.katex .sizing.reset-size9.size5{font-size:.52083333em}.katex .fontsize-ensurer.reset-size9.size6,.katex .sizing.reset-size9.size6{font-size:.5787037em}.katex .fontsize-ensurer.reset-size9.size7,.katex .sizing.reset-size9.size7{font-size:.69444444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .sizing.reset-size9.size8{font-size:.83333333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .sizing.reset-size9.size10{font-size:1.20023148em}.katex .fontsize-ensurer.reset-size9.size11,.katex .sizing.reset-size9.size11{font-size:1.43981481em}.katex .fontsize-ensurer.reset-size10.size1,.katex .sizing.reset-size10.size1{font-size:.24108004em}.katex .fontsize-ensurer.reset-size10.size2,.katex .sizing.reset-size10.size2{font-size:.28929605em}.katex .fontsize-ensurer.reset-size10.size3,.katex .sizing.reset-size10.size3{font-size:.33751205em}.katex .fontsize-ensurer.reset-size10.size4,.katex .sizing.reset-size10.size4{font-size:.38572806em}.katex .fontsize-ensurer.reset-size10.size5,.katex .sizing.reset-size10.size5{font-size:.43394407em}.katex .fontsize-ensurer.reset-size10.size6,.katex .sizing.reset-size10.size6{font-size:.48216008em}.katex .fontsize-ensurer.reset-size10.size7,.katex .sizing.reset-size10.size7{font-size:.57859209em}.katex .fontsize-ensurer.reset-size10.size8,.katex .sizing.reset-size10.size8{font-size:.69431051em}.katex .fontsize-ensurer.reset-size10.size9,.katex .sizing.reset-size10.size9{font-size:.83317261em}.katex .fontsize-ensurer.reset-size10.size10,.katex .sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .sizing.reset-size10.size11{font-size:1.19961427em}.katex .fontsize-ensurer.reset-size11.size1,.katex .sizing.reset-size11.size1{font-size:.20096463em}.katex .fontsize-ensurer.reset-size11.size2,.katex .sizing.reset-size11.size2{font-size:.24115756em}.katex .fontsize-ensurer.reset-size11.size3,.katex .sizing.reset-size11.size3{font-size:.28135048em}.katex .fontsize-ensurer.reset-size11.size4,.katex .sizing.reset-size11.size4{font-size:.32154341em}.katex .fontsize-ensurer.reset-size11.size5,.katex .sizing.reset-size11.size5{font-size:.36173633em}.katex .fontsize-ensurer.reset-size11.size6,.katex .sizing.reset-size11.size6{font-size:.40192926em}.katex .fontsize-ensurer.reset-size11.size7,.katex .sizing.reset-size11.size7{font-size:.48231511em}.katex .fontsize-ensurer.reset-size11.size8,.katex .sizing.reset-size11.size8{font-size:.57877814em}.katex .fontsize-ensurer.reset-size11.size9,.katex .sizing.reset-size11.size9{font-size:.69453376em}.katex .fontsize-ensurer.reset-size11.size10,.katex .sizing.reset-size11.size10{font-size:.83360129em}.katex .fontsize-ensurer.reset-size11.size11,.katex .sizing.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .op-limits>.vlist-t{text-align:center}.katex .accent>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{display:inline-block;min-width:1px}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{display:block;position:absolute;width:100%;height:inherit;fill:currentColor;stroke:currentColor;fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1}.katex svg path{stroke:none}.katex img{border-style:none;min-width:0;min-height:0;max-width:none;max-height:none}.katex .stretchy{width:100%;display:block;position:relative;overflow:hidden}.katex .stretchy:after,.katex .stretchy:before{content:""}.katex .hide-tail{width:100%;position:relative;overflow:hidden}.katex .halfarrow-left{position:absolute;left:0;width:50.2%;overflow:hidden}.katex .halfarrow-right{position:absolute;right:0;width:50.2%;overflow:hidden}.katex .brace-left{position:absolute;left:0;width:25.1%;overflow:hidden}.katex .brace-center{position:absolute;left:25%;width:50%;overflow:hidden}.katex .brace-right{position:absolute;right:0;width:25.1%;overflow:hidden}.katex .x-arrow-pad{padding:0 .5em}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{box-sizing:border-box;border:.04em solid}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:block;text-align:center;white-space:nowrap}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{text-align:left}.wrp___dq7YK{display:flex;justify-content:center;align-items:center;position:fixed;width:100%;height:100%;left:0;top:0;z-index:108}.wrp___dq7YK.bgBlack___ARIUV{background:#00000080}.wrp___dq7YK img,.wrp___dq7YK video{max-width:100%;max-height:80%;text-align:center}.wrp___dq7YK iframe{width:100%;height:100%;position:absolute;left:0;top:0;background:#fff;border:none}.monaco___VnZC3{position:absolute;height:100%;width:100%}.darkBlue___UprA9 *{font-size:14px}.darkBlue___UprA9 [class~=margin],.darkBlue___UprA9 [class~=monaco-editor-background]{background:#0a0e2d!important}.darkBlue___UprA9 [class~=line-numbers]{color:#fff!important}.close___LKoWu{position:absolute;right:40px;top:40px;z-index:10;display:flex}.close___LKoWu>span{background:#4a4a4a;color:#fff;width:40px;height:40px;border-radius:4px;display:flex;justify-content:center;align-items:center;cursor:pointer;margin-left:10px}.embed___hvpEJ{position:absolute;left:0;top:0;width:100%;height:100%}.my-monaco-editor div,.my-diff-editor div{font-size:unset}.my-error-line-wrp{width:calc(100% - 20px)!important;background:#f5000033!important;height:auto!important;color:#f50000}.noCopyPaste .quick-input-widget{display:none!important}.breakpoints-select{background:red;width:8px!important;height:8px!important;left:7px!important;top:7px;border-radius:4px;user-select:none;pointer-events:none}.breakpoints-fake{background:#ff000080;width:8px!important;height:8px!important;left:7px!important;top:7px;border-radius:4px;user-select:none;pointer-events:none}.highlighted-line{background:#4b4b18}.markdown-toolbar-container{display:flex;flex-flow:row wrap;align-items:center;padding:0 28px 0 5px;margin:0;position:relative;list-style:none;background:#fff;border-bottom:1px solid #ccc;box-sizing:border-box;line-height:20px;width:100%;min-height:30px}.markdown-toolbar-container .fill-tip{cursor:pointer;font-size:12px;display:inline-block;padding:5px;border:1px solid #E99237;border-radius:5px;box-sizing:border-box;line-height:16px;height:auto;color:#a65500;background-color:#fff1e2;position:relative;margin-left:10px}.markdown-toolbar-container .fill-tip:before{content:" ";width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:6px solid #FFF1E2;position:absolute;left:-6px;top:6px;z-index:10}.markdown-toolbar-container .fill-tip:after{content:" ";width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:6px solid #E99237;position:absolute;left:-7px;top:6px}.markdown-toolbar-container li{color:#666;padding:0 1px;height:100%;display:flex;height:38px;flex-flow:column nowrap;justify-content:center}.markdown-toolbar-container a,.markdown-toolbar-container span{display:block}.markdown-toolbar-container a{width:28px;color:#666;cursor:pointer;text-align:center;font-size:18px}.markdown-toolbar-container a i{font-size:18px}.markdown-toolbar-container a i:before{font-size:18px}.markdown-toolbar-container .btn-null{width:auto;display:flex;flex-flow:row nowrap;align-items:center}.markdown-toolbar-container .insert-blank{color:#e99237;font-size:18px}.markdown-toolbar-container span.v-line{margin:0 5px;height:65%;border-right:1px solid #ccc}.mini .markdown-toolbar-container li{height:28px}.editor-resize{display:block;width:120px;height:4px;left:54%;border-top:1px solid #ccc;border-bottom:1px solid #ccc;cursor:row-resize;white-space:nowrap;overflow:hidden;text-transform:capitalize;box-sizing:border-box;margin:0 auto}.btn-full-screen{position:absolute;right:5px}@font-face{font-family:md-iconfont;src:url(./static/iconfont.345f94c8.eot);src:url(./static/iconfont.345f94c8.eot#iefix) format("embedded-opentype"),url(./static/iconfont.deef216b.woff) format("woff"),url(./static/iconfont.42606faf.ttf) format("truetype"),url(./static/iconfont.504b881c.svg#iconfont) format("svg")}.md-iconfont{font-family:md-iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-uniE900:before{content:"\e900";font-size:14px;margin-left:5px}.icon-shrink:before{content:"\e728"}.icon-enlarge:before{content:"\e623"}.icon-code:before{content:"\e602"}.icon-italic:before{content:"\e718"}.icon-bold:before{content:"\e644"}.icon-picture:before{content:"\e606"}.icon-minus:before{content:"\e62c"}.icon-order-list:before{content:"\e655"}.icon-link:before{content:"\e7d4"}.icon-formula:before{content:"\e633"}.icon-unorder-list:before{content:"\e668"}.icon-edit:before{content:"\e603"}.icon-table:before{content:"\e7db"}.icon-sum:before{content:"\e667"}.icon-eye:before{content:"\e69f"}.icon-eye-slash:before{content:"\e601"}.icon-eraser:before{content:"\e8cd"}.icon-file-code:before{content:"\e9ec"}.cm-s-blackboard.CodeMirror{background:#0c1021;color:#f8f8f8}.cm-s-blackboard div.CodeMirror-selected{background:#253b76}.cm-s-blackboard .CodeMirror-line::selection,.cm-s-blackboard .CodeMirror-line>span::selection,.cm-s-blackboard .CodeMirror-line>span>span::selection{background:#253b76fc}.cm-s-blackboard .CodeMirror-line::-moz-selection,.cm-s-blackboard .CodeMirror-line>span::-moz-selection,.cm-s-blackboard .CodeMirror-line>span>span::-moz-selection{background:#253b76fc}.cm-s-blackboard .CodeMirror-gutters{background:#0c1021;border-right:0}.cm-s-blackboard .CodeMirror-guttermarker{color:#fbde2d}.cm-s-blackboard .CodeMirror-guttermarker-subtle,.cm-s-blackboard .CodeMirror-linenumber{color:#888}.cm-s-blackboard .CodeMirror-cursor{border-left:1px solid #A7A7A7}.cm-s-blackboard .cm-keyword{color:#fbde2d}.cm-s-blackboard .cm-atom,.cm-s-blackboard .cm-number{color:#d8fa3c}.cm-s-blackboard .cm-def{color:#8da6ce}.cm-s-blackboard .cm-variable{color:#ff6400}.cm-s-blackboard .cm-operator{color:#fbde2d}.cm-s-blackboard .cm-comment{color:#aeaeae}.cm-s-blackboard .cm-string,.cm-s-blackboard .cm-string-2{color:#61ce3c}.cm-s-blackboard .cm-meta{color:#d8fa3c}.cm-s-blackboard .cm-builtin,.cm-s-blackboard .cm-tag,.cm-s-blackboard .cm-attribute{color:#8da6ce}.cm-s-blackboard .cm-header{color:#ff6400}.cm-s-blackboard .cm-hr{color:#aeaeae}.cm-s-blackboard .cm-link{color:#8da6ce}.cm-s-blackboard .cm-error{background:#9d1e15;color:#f8f8f8}.cm-s-blackboard .CodeMirror-activeline-background{background:#3c3636}.cm-s-blackboard .CodeMirror-matchingbracket{outline:1px solid grey;color:#fff!important}.upload-button{width:106px;height:32px;line-height:32px;font-size:12px;display:block;position:relative;color:#0152d9}.upload-button input{opacity:0;width:160px;height:32px;position:absolute;top:0;left:0;z-index:-1}.imageDimensions___a7crR{display:flex;justify-content:center;align-items:center;position:fixed;width:100%;height:100vh;left:0;top:0;z-index:1005;background:#fff;overflow:hidden}.imageDimensions___a7crR .img___Kroat{visibility:hidden;max-width:80%;min-width:500px}.imageDimensions___a7crR [class*=_toolbox_colors]{position:fixed;left:0;bottom:0}.imageDimensions___a7crR.fullWidth___c492T .img___Kroat{max-width:100%;width:100%;height:100%}.myPaletteDiv___Xjz2I{position:relative;left:-15px;width:320px}.myPaletteDiv___Xjz2I canvas{margin-top:15px}.flowChartWrp____f45r [class^=goTXarea],.flowChartWrp____f45r textarea{min-width:70px;margin-left:-15px!important}.maxH60___Pd4Re [class^=ant-modal-content]{height:57px!important;overflow:hidden}.lists___xhHyq{padding-bottom:10px}.lists___xhHyq code{background:none!important}.lists___xhHyq>div>div:first-child{background:#f6f6f6;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:10px 0;font-size:12px;cursor:pointer}.lists___xhHyq>div>div:first-child [class^=katex]{font-size:22px}.item___pWJAA{position:relative}.item___pWJAA:nth-last-child(-n+3) .children___sDG61{left:initial;right:5px}.item___pWJAA:hover{z-index:2147483648}.item___pWJAA:hover .children___sDG61{display:block}.children___sDG61{display:none;position:absolute;left:6px;top:70px;width:440px;max-height:400px;overflow:auto;background:#fff;border:1px solid #ccc;border-radius:4px;box-shadow:0 0 6px #ccc;padding:15px}.children___sDG61 h1{font-size:14px;padding-top:6px}.children___sDG61 .diamond___FwgzD>div{background:#f6f6f6;display:flex;align-items:center;justify-content:center;flex-direction:column;cursor:pointer;height:50px;font-size:12px;padding:0 10px;min-width:80px}.children___sDG61 .diamond___FwgzD>div [class^=katex]{font-size:14px}.button___WPN6r{position:absolute;right:20px;bottom:20px}.mathWrap___FmnMJ{width:800px;height:550px}.mathFillWrap___PmY3H{cursor:pointer}.mathFillWrap___PmY3H ::part(menu-toggle){color:#00f;opacity:1;display:none}.mathFillWrap___PmY3H math-field{background:none}.mathFillWrap___PmY3H *{pointer-events:none}.flex_box_center___oXmmv{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___D5_mZ{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___S5DkJ{align-items:center;box-align:center}.flex_box_center_end___KnbTG{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column____klOK{flex-direction:column;box-orient:block-axis}.top___FyBsZ{padding:30px;border-bottom:1px solid #eaeaea}.desc___sMJy6{padding:30px}.desc___sMJy6 img{max-width:100%}.liked___P7kc_{background:#eee;color:#b3b3b3;padding:10px 40px;border-radius:40px;display:inline-block;margin:0 auto;text-align:center;cursor:pointer}.likedActive___gv4cj{background:#0152d9;color:#fff}.reply___fFyWG{padding:30px;border-bottom:1px solid #eaeaea}.reply___fFyWG input,.reply___fFyWG button{height:40px}.reply___fFyWG button{padding-left:20px;padding-right:20px;margin-left:20px}.replyList___RDcrF{padding:20px}.replyList___RDcrF>div{border-bottom:1px solid #eaeaea}.comment___uNa2p{background:#f4f4f4;border-radius:6px;width:100%;position:relative}.comment___uNa2p:before{content:"";position:absolute;top:-9px;left:13px;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:10px solid #f4f4f4;width:0;height:0}.comment___uNa2p>div{padding:10px}.comment___uNa2p>div:hover{background:#ebebeb}.deseIconSty___hiTV2{font-size:14px}.deseIconSty___hiTV2 i{color:#8f96b1;margin-right:6px}.deseIconSty___hiTV2 span{color:#333}.deseIconSty___hiTV2:hover i,.deseIconSty___hiTV2:hover span{color:#3061d0}.buttonEdit___godGx{width:80px;height:40px;line-height:40px;font-weight:400;padding:0}.maskWrap___bA1lb{position:relative}.maskWrap___bA1lb .desHead___gsg50{height:40px;background:#ffffff1f;box-shadow:0 -2px 4px #f3f3f380;border:1px solid #F6F7F9;padding-left:10px;display:flex;align-items:center}.maskWrap___bA1lb .mask___HzQwZ{width:100%;position:absolute;z-index:1;left:0;bottom:0;height:60px;background:linear-gradient(180deg,#f6f7f900,#f6f7f9 50% 100%);display:flex;padding-top:32px;justify-content:center}.maskWrap___bA1lb .mask___HzQwZ div{font-size:14px;color:#3061d0;cursor:pointer}.maskWrap___bA1lb .mask___HzQwZ div i{margin-left:3px;font-size:14px;display:inline-block;transform:scale(.6)}.md___kNtFb{font-size:14px;color:#333;font-family:initial;background:#f6f7f9;padding:10px 20px}.md___kNtFb p{line-height:25px}.tip___enkdY{height:30px;background:#ffb5381a;display:flex;align-items:center;margin-bottom:1px}.selectWrapper___x8uH0 span[class~=ant-select-selection-placeholder]{color:#9096a3}.selectWrapper___x8uH0 div[class~=ant-select-selector]{border-radius:4px;height:38px!important}.selectWrapper___x8uH0 div[class~=ant-select-selector] input[class~=ant-select-selection-search-input],.selectWrapper___x8uH0 div[class~=ant-select-selector] span[class~=ant-select-selection-placeholder]{height:38px!important;line-height:38px!important}.selectWrapper___x8uH0 div[class~=ant-select-selector] span[class~=ant-select-selection-item]{line-height:38px!important;padding-left:2px!important}.selectWrapper___x8uH0 span[class~=ant-select-arrow]{right:12px}.inputBox___VxU7y{display:flex;align-items:center;justify-content:space-between;box-sizing:border-box}.pass_info___Kig4_{height:30px;background:#f6f7f9;display:flex;align-items:center;margin-top:10px;margin-bottom:1px}.todo___hntv8{display:inline-block;width:36px;height:20px;background:#1e96f4;border-radius:2px;border:1px solid #65AEFF;color:#fff;text-align:center;line-height:18px;margin-right:3px}.name___UD8SI{display:inline-block;max-width:240px;word-break:break-all;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;vertical-align:bottom}.info___lOOGO{display:flex;align-items:center;width:1160px;height:85px;background:#f6f7f9;border-radius:43px;margin-left:20px;padding-left:20px}.info___lOOGO img{width:55px;height:55px;border:2px solid #165DFF;border-radius:50%}.info___lOOGO div{margin-left:60px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#333}.info___lOOGO div b{font-size:16px;margin-bottom:5px}.info___lOOGO .viewreport___CAnci{width:118px;height:40px;background:#fff;border-radius:20px;border:1px solid rgba(48,97,208,.5);display:flex;align-items:center;flex-direction:unset}.info___lOOGO .viewreport___CAnci:hover{background:#3061d0;color:#fff!important}.flex_box_center___NeSU8{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___ImTGl{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___BtRd9{align-items:center;box-align:center}.flex_box_center_end___qcLe3{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___Ze_3q{flex-direction:column;box-orient:block-axis}.banner___PoUBO{display:flex;align-items:center;justify-content:center}.banner___PoUBO .content___XoDjy{width:1200px;height:212px;display:flex;align-items:flex-start;justify-content:space-between}.banner___PoUBO .content___XoDjy aside{margin-top:56px}.banner___PoUBO .content___XoDjy aside p{display:flex;align-items:center}.banner___PoUBO .content___XoDjy aside p b{font-size:30px;font-weight:500;color:#000;letter-spacing:4px;margin-right:20px}.banner___PoUBO .content___XoDjy aside p span{font-size:16px;color:#000;letter-spacing:4px}.banner___PoUBO .content___XoDjy aside .btns___Pb35j{margin-top:35px}.banner___PoUBO .content___XoDjy aside .btns___Pb35j>div{display:inline-block;height:32px;background:#f6f7f9;box-shadow:0 2px 4px #e0dfe1,inset 0 1px 3px #ffffff80;border-radius:4px;border:1px solid #dadbde;font-size:14px;color:#3b3e47;line-height:30px;margin-right:23px;padding:0 16px;position:relative;cursor:pointer}.banner___PoUBO .content___XoDjy aside .btns___Pb35j>div:hover{color:#165dff;border:1px solid #bacffe}.banner___PoUBO .content___XoDjy aside .btns___Pb35j>div img{position:absolute;z-index:1;top:-21px;right:22px}.flex_box_center___hG6RI{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___ss3Fh{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___K80p9{align-items:center;box-align:center}.flex_box_center_end___qmXX3{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___GFV8F{flex-direction:column;box-orient:block-axis}.row___aXJjm{display:flex;align-items:flex-start;justify-content:flex-start}.row___aXJjm .title___HUKL0{font-size:14px;color:#9096a3;flex-shrink:0;width:41px;text-align-last:justify;margin-top:4px;margin-right:12px}.row___aXJjm .tagsWrap___XB2W3{flex:1 1;position:relative}.row___aXJjm .tagsWrap___XB2W3 .action___VdHb1{font-size:14px;color:#82a8ff;width:55px;position:absolute;z-index:2;bottom:20px;right:0;cursor:pointer}.row___aXJjm .tagsWrap___XB2W3 .action___VdHb1 i{display:inline-block;font-size:12px}.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC{max-height:245px;overflow:hidden}.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .tag___V7Eft>span{display:inline-flex;align-items:center;margin-left:8px;margin-bottom:17px;font-size:14px;cursor:pointer;padding:4px 12px}.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .tag___V7Eft>span .name___Hk1Ip{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:600px;display:inline-block}.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .tag___V7Eft>span .num___xQpcH{margin-left:3px}.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .tag___V7Eft>span:hover{color:#165dff!important}.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .tag___V7Eft .active___XryTX{color:#165dff!important;border-radius:2px;background:#f6f7f9}.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC::-webkit-scrollbar-thumb{background:#0000000d!important;border-radius:3px}.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC::-webkit-scrollbar-track{background-color:#f6f7f9!important;box-shadow:initial!important}.row___aXJjm .tagsBorderWrap___OMxjs .bar___t1kKC{padding-top:8px;border-radius:4px;border:1px solid rgba(219,220,224,.5)}.flex_box_center___aK2n3{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___HX0Oh{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___LJOJr{align-items:center;box-align:center}.flex_box_center_end___SCakF{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___AYv4m{flex-direction:column;box-orient:block-axis}.tabs___GTqPV{height:32px;background:#f6f7f9;box-shadow:inset 0 1px 3px #d7d8d9;border-radius:16px;display:inline-block}.tabs___GTqPV span{display:inline-block;padding:0 20px;line-height:32px;font-size:14px;font-weight:400;color:#9096a3;position:relative;cursor:pointer}.tabs___GTqPV span:hover{color:#165dff}.tabs___GTqPV span:after{content:"";position:absolute;width:1px;height:calc(100% - 2px);background:#e2e2e2;border-radius:4px;z-index:1;left:0;top:1px;background:linear-gradient(180deg,#fff0,#e2e2e2,#fff0)}.tabs___GTqPV span:first-child:after,.tabs___GTqPV .active___F26E8+span:after{display:none}.tabs___GTqPV .active___F26E8{background:linear-gradient(180deg,#fff,#f6f7f9);box-shadow:0 0 2px #e8effb;border-radius:16px;border:1px solid #c8d2ea;color:#165dff;line-height:30px}.tabs___GTqPV .active___F26E8:after{display:none}.flex_box_center___yX6Oa{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___t7oqF{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___dEIHy{align-items:center;box-align:center}.flex_box_center_end___taQDF{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___xY_Lr{flex-direction:column;box-orient:block-axis}.input___PW2zI{width:507px;height:38px;background:#f6f7f9;border-radius:19px;display:flex;align-items:center;padding:0 20px}.input___PW2zI .dropdown___vSy8B{position:relative;flex-shrink:0}.input___PW2zI .dropdown___vSy8B:hover .menu___NiyBu{display:block}.input___PW2zI .dropdown___vSy8B .text___Grueu{color:#000;font-size:14px;cursor:default;height:38px;display:flex;align-items:center}.input___PW2zI .dropdown___vSy8B .text___Grueu i{font-size:12px;display:inline-block;transform:translateY(1px) scale(.6);color:#979797}.input___PW2zI .dropdown___vSy8B .text___Grueu .b1___ZKryM{display:inline-block;width:1px;height:38px;margin-left:15px;margin-right:0;background:linear-gradient(180deg,#fff0,#fff,#fff0)}.input___PW2zI .dropdown___vSy8B .text___Grueu .b2___aKyGa{display:inline-block;width:1px;height:38px;margin-left:0;margin-right:8px;background:linear-gradient(180deg,#fff0,#e2e2e2,#fff0)}.input___PW2zI .dropdown___vSy8B .menu___NiyBu{display:none;position:absolute;z-index:999;width:auto;left:-16px;top:35px;padding:4px;background-color:#fff;border-radius:8px;box-shadow:0 10px 16px #cecece}.input___PW2zI .dropdown___vSy8B .menu___NiyBu div{clear:both;margin:0;padding:5px 12px;color:#000000e0;font-weight:400;font-size:14px;text-align:left;line-height:1.57142857;cursor:pointer;transition:all .2s;white-space:nowrap}.input___PW2zI .dropdown___vSy8B .menu___NiyBu div:hover{background-color:#f5f5f5}.input___PW2zI>input{flex:1 1;padding:4px 0}.flex_box_center___tol8o{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___Z235C{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___Wq1sZ{align-items:center;box-align:center}.flex_box_center_end___LLxom{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___DbMSN{flex-direction:column;box-orient:block-axis}.quickPager___GM30J{display:flex;align-items:center;justify-content:center}.quickPager___GM30J>div{width:60px;height:28px;line-height:26px;text-align:center;background:#f8f9fc;border-radius:2px;border:1px solid rgba(195,207,224,.5);font-size:12px;color:#464f66;margin:0 10px;user-select:none;cursor:pointer}.quickPager___GM30J>div:hover{color:#165dff}.quickPager___GM30J .disabled___Ozc8I{background:#f3f3f5;border:0;line-height:28px;cursor:not-allowed;color:#cecece}.flex_box_center___FO7TP{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___LotYx{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___bWdaw{align-items:center;box-align:center}.flex_box_center_end___mVJ1o{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___M83Mm{flex-direction:column;box-orient:block-axis}.list___oOsiS{display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap;padding:0}.list___oOsiS .wrap___G6T7F{height:277px;background:#fff;box-shadow:0 2px 4px #d6dae1;border-radius:8px;position:relative}.list___oOsiS .wrap___G6T7F .lockWrap___Rl79E{position:absolute;width:100%;left:0;top:0;background-color:#00000080;height:100%;z-index:10;display:flex;cursor:default;justify-content:center;align-items:center;flex-direction:column;border-radius:8px}.list___oOsiS .wrap___G6T7F .li___oZZ7l:hover .cover___b2bYW{transform:scale(1.1)}.list___oOsiS .wrap___G6T7F .li___oZZ7l .img___IQX7w{overflow:hidden;height:calc(100% - 100px);border-radius:8px 8px 0 0;position:relative}.list___oOsiS .wrap___G6T7F .li___oZZ7l .img___IQX7w .cover___b2bYW{width:100%;transition:all .5s}.list___oOsiS .wrap___G6T7F .li___oZZ7l .img___IQX7w .sign___HkT6C{position:absolute;z-index:1;left:0;bottom:0;height:30px}.list___oOsiS .wrap___G6T7F .li___oZZ7l .name___SsJx8{height:52px;font-size:16px;font-weight:600;color:#000;padding:30px 12px 0;width:100%;display:flex;align-items:center}.list___oOsiS .wrap___G6T7F .li___oZZ7l .name___SsJx8 .e___TMqq0{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.list___oOsiS .wrap___G6T7F .li___oZZ7l .tags___bcjyo{height:45px;display:flex;align-items:center;color:#000f37;padding:0 12px}.list___oOsiS .wrap___G6T7F .li___oZZ7l .tags___bcjyo i{color:#7d8592}.list___oOsiS .wrap___G6T7F .li___oZZ7l .tags___bcjyo>span{margin-right:5px;font-size:12px}.list___oOsiS .wrap___G6T7F .li___oZZ7l .tags___bcjyo .rate___YACg7{display:flex;align-items:center;margin-left:auto}.list___oOsiS .wrap___G6T7F .li___oZZ7l .tags___bcjyo .rate___YACg7 [class~=ant-rate-star]{font-size:13px}.list___oOsiS .wrap___G6T7F .li___oZZ7l .tags___bcjyo .rate___YACg7 [class~=ant-rate]{font-size:12px;margin-top:-3px;color:#ffa100}.list___oOsiS .wrap___G6T7F .li___oZZ7l .tags___bcjyo .rate___YACg7 [class~=ant-rate-star]:not(:last-child){margin-right:2px}.flex_box_center___AQ53o{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___i2aIa{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___sPEKB{align-items:center;box-align:center}.flex_box_center_end___GhSSH{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___R9_Hb{flex-direction:column;box-orient:block-axis}.list___jb2Ay{display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap;padding:0}.list___jb2Ay .wrap___VsQDr{height:308px;background:#fff;box-shadow:0 2px 4px #d6dae1;border-radius:8px;position:relative}.list___jb2Ay .wrap___VsQDr:hover [class~=user-path-items]{display:block!important}.list___jb2Ay .wrap___VsQDr .lockWrap___g1k1T{position:absolute;width:100%;left:0;top:0;background-color:#00000080;height:100%;z-index:10;display:flex;cursor:default;justify-content:center;align-items:center;border-radius:8px}.list___jb2Ay .wrap___VsQDr .li___IxCLC:hover .cover___Mu8wr{transform:scale(1.1)}.list___jb2Ay .wrap___VsQDr .li___IxCLC .img___IpFLA{overflow:hidden;height:calc(100% - 131px);border-radius:8px 8px 0 0}.list___jb2Ay .wrap___VsQDr .li___IxCLC .img___IpFLA .cover___Mu8wr{width:100%;transition:all .5s}.list___jb2Ay .wrap___VsQDr .li___IxCLC .img___IpFLA .movebq___mF7wt{display:none;position:absolute;top:0;right:0;width:70px;height:32px;background:#0000004d;color:#d9c7ab;padding:0 8px;font-size:16px;line-height:32px;border-top-right-radius:8px;border-bottom-left-radius:8px}.list___jb2Ay .wrap___VsQDr .li___IxCLC .img___IpFLA .bq___Bil0T{margin-right:10px;width:64px;height:22px;background:#0000004d;color:#d9c7ab;border-radius:2px;padding:0 8px;font-size:12px;line-height:22px}.list___jb2Ay .wrap___VsQDr .li___IxCLC .img___IpFLA .sign___DXJ4d{width:52px;text-align:center;position:absolute;z-index:2;left:0;top:7px;color:#fff}.list___jb2Ay .wrap___VsQDr .li___IxCLC .name___l7FoJ{height:52px;font-size:16px;font-weight:600;color:#000;padding:30px 12px 0;width:100%;display:flex;align-items:center}.list___jb2Ay .wrap___VsQDr .li___IxCLC .name___l7FoJ .e___pXQUG{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.list___jb2Ay .wrap___VsQDr .li___IxCLC .unit___wCIFR{font-size:14px;color:#000f37;padding:0 12px;margin-top:8px;display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.list___jb2Ay .wrap___VsQDr .li___IxCLC .unit___wCIFR i{color:#7d8592}.list___jb2Ay .wrap___VsQDr .li___IxCLC .tags___w_Mil{height:34px;display:flex;align-items:center;justify-content:space-between;color:#000f37;padding:0 12px}.list___jb2Ay .wrap___VsQDr .li___IxCLC .tags___w_Mil div{display:flex;align-items:center}.list___jb2Ay .wrap___VsQDr .li___IxCLC .tags___w_Mil div>span{margin-right:12px;font-size:12px}.list___jb2Ay .wrap___VsQDr .li___IxCLC .tags___w_Mil div i{color:#7d8592}.list___jb2Ay .wrap___VsQDr .li___IxCLC .tags___w_Mil .tag1___dxm7r,.list___jb2Ay .wrap___VsQDr .li___IxCLC .tags___w_Mil .tag2___llZkf{height:18px;padding:3px 6px;font-size:12px;border-radius:2px;border:1px solid #FFE6AB;color:#ca7720;display:flex;align-items:center;justify-content:center;font-weight:400}.list___jb2Ay .wrap___VsQDr .li___IxCLC .tags___w_Mil .tag2___llZkf{border:1px solid #D6F7EF;color:#01795d;margin-left:6px}.flex_box_center___eMcr7{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___HcNca{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___ZnvVN{align-items:center;box-align:center}.flex_box_center_end___fdgDf{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___SEKvd{flex-direction:column;box-orient:block-axis}.list___L1hmU{display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap;padding:0}.list___L1hmU .wrap___pKgcW{height:270px;background:#fff;box-shadow:0 1px 4px #d6dae1;border-radius:8px;position:relative}.list___L1hmU .wrap___pKgcW:hover .lockWrap___SMhkK{display:flex}.list___L1hmU .wrap___pKgcW .lockWrap___SMhkK{position:absolute;z-index:10;left:0;top:0;width:100%;height:100%;background:#0009;box-shadow:0 2px 5px #0000000d;border-radius:8px;display:none;flex-direction:column;justify-content:center;align-items:center}.list___L1hmU .wrap___pKgcW .lockWrap___SMhkK div{width:116px;height:36px;border-radius:18px;border:1px solid #ffffff;font-size:14px;font-weight:600;color:#fff;line-height:34px;text-align:center;margin:10px 0;cursor:pointer}.list___L1hmU .wrap___pKgcW .lockWrap___SMhkK div:hover{box-shadow:0 0 4px #4f85ff;border:1px solid #c2d3f8}.list___L1hmU .wrap___pKgcW .top___udHSB{height:calc(100% - 50px);display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:0 24px;position:relative}.list___L1hmU .wrap___pKgcW .top___udHSB .sign___uwRpq{position:absolute;z-index:1;width:44px;height:22px;background:#ffe9c1;border-radius:8px 0 13px;left:0;top:0;color:#a45204;text-align:center;line-height:22px}.list___L1hmU .wrap___pKgcW .top___udHSB .name___Fpf90{font-weight:600;color:#333;margin-top:25px;font-size:16px;white-space:normal;text-align:center;-webkit-box-orient:vertical;display:-webkit-box;-webkit-line-clamp:2;overflow:hidden;line-height:26px;height:48px}.list___L1hmU .wrap___pKgcW .top___udHSB .img___AMLhL{width:60px;height:60px;border-radius:30px;margin-top:14px}.list___L1hmU .wrap___pKgcW .top___udHSB .text___KiTb7{font-size:14px;color:#333;margin-top:8px;width:98%;text-align:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.list___L1hmU .wrap___pKgcW .top___udHSB .btns___i6IuZ{display:flex;align-items:center;margin-top:12px}.list___L1hmU .wrap___pKgcW .top___udHSB .btns___i6IuZ div{width:76px;background:#fff;height:26px;border-radius:13px;border:1px solid #d6f7ef;font-size:14px;color:#01795d;line-height:24px;text-align:center;margin:0 10px}.list___L1hmU .wrap___pKgcW .top___udHSB .btns___i6IuZ aside{width:76px;background:#fff;height:26px;border-radius:13px;border:1px solid #ffe9c1;font-size:14px;color:#a45204;line-height:24px;text-align:center;margin:0 10px}.list___L1hmU .wrap___pKgcW .bottom____k2sh{height:50px;border-top:1px solid #f5f5f5;display:flex;align-items:center;padding:0 12px}.list___L1hmU .wrap___pKgcW .bottom____k2sh>div{margin-left:auto}.list___L1hmU .wrap___pKgcW .bottom____k2sh>span{display:flex;align-items:center;margin-right:12px;color:#999}.list___L1hmU .wrap___pKgcW .bottom____k2sh>span i{font-size:14px;font-size:12px;color:#999;margin-right:6px}.flex_box_center___d27mZ{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___qfRU9{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___fCRld{align-items:center;box-align:center}.flex_box_center_end___ORMV8{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___PNKtZ{flex-direction:column;box-orient:block-axis}.tabs___alpa7{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #dbdce0;height:54px}.tabs___alpa7 .tabsWrap___aCQjw{display:flex;align-items:center;height:100%}.tabs___alpa7 .tabsWrap___aCQjw .tab___MKLr4{display:flex;align-items:center;margin-right:40px;height:100%;cursor:pointer}.tabs___alpa7 .tabsWrap___aCQjw .tab___MKLr4>div{position:relative;font-size:14px;font-weight:400;color:#5f6368;display:flex;align-items:center;height:100%}.tabs___alpa7 .tabsWrap___aCQjw .tab___MKLr4 .active___nl_4v{font-weight:500;color:#202124}.tabs___alpa7 .tabsWrap___aCQjw .tab___MKLr4 .active___nl_4v:after{position:absolute;content:"";width:100%;z-index:4;left:0;bottom:0;height:3px;background:#202124;border-radius:100px 100px 0 0}.flex_box_center___e6HxQ{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___RnXYe{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___lVxPk{align-items:center;box-align:center}.flex_box_center_end___bu8yv{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___JczGj{flex-direction:column;box-orient:block-axis}.orderWrap___ZfyGX{display:box;display:flex;align-items:center}.orderIconWrap___XTB_O{display:box;display:flex;flex-direction:column;height:40px;line-height:40px;color:#999}.orderAsc___KWHmA{flex-direction:column;text-align:center;height:10px;line-height:10px;display:inline-block;margin-top:9px;transform:translateY(2px)}.orderDesc___rHdbB{flex-direction:column;text-align:center;height:10px;line-height:10px;display:table}.active___a7eSP{color:#232b40!important}.cursorPointer___gs9kL{cursor:pointer;color:#d8d8d8;height:10px}.orderTextWrap___teAKn{font-size:14px;color:#3b3e47;cursor:pointer;margin-right:5px}.flex_box_center___LCi0B{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___hzONe{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___ZyQRE{align-items:center;box-align:center}.flex_box_center_end___XKM74{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___p8LCU{flex-direction:column;box-orient:block-axis}.btn___In02G.mediacy-round___uveEv{height:36px;border-radius:36px}.btn___In02G.mediacy-default___dDxsd{height:36px;border-radius:4px}.btn___In02G .default___K791v{background:#f6f7f9 linear-gradient(180deg,#fff,#f6f7f9);box-shadow:0 2px 4px #e0dfe1,inset 0 1px 3px #ffffff80;border:1px solid #bacffe;font-size:14px;padding:0 15px;color:#3061d0;text-align:center;cursor:pointer;user-select:none}button[class~=ant-btn-default]:not(:disabled).btn___In02G{background:#f6f7f9 linear-gradient(180deg,#fff,#f6f7f9);box-shadow:0 2px 4px #e0dfe1,inset 0 1px 3px #ffffff80;border:1px solid #bacffe;font-size:14px;padding:0 15px;color:#3061d0;text-align:center;cursor:pointer;user-select:none}button[class~=ant-btn-default]:not(:disabled).btn___In02G:hover{color:#165dff;border:1px solid #165dff}button[class~=ant-btn-default]:disabled.btn___In02G{background:#f6f7f9 linear-gradient(180deg,#fff,#f6f7f9);box-shadow:0 2px 4px #e0dfe1,inset 0 1px 3px #ffffff80;border:1px solid #bacffe;font-size:14px;padding:0 15px;color:#3061d0;text-align:center;cursor:pointer;user-select:none;opacity:50%;cursor:not-allowed}.flex_box_center___TB7bQ{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___oBlTb{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___b5XbB{align-items:center;box-align:center}.flex_box_center_end___CNhe7{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___yHXKW{flex-direction:column;box-orient:block-axis}.head___ghH72{height:54px;border-bottom:1px solid #DBDCE0;display:flex;align-items:center}.head___ghH72>span{color:#999;font-size:12px;cursor:pointer;flex-shrink:0}.head___ghH72>b{font-weight:500;color:#232b40;margin-left:30px;font-size:14px;flex:1 1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.head___ghH72 .node___mjPEy{margin-left:auto;flex-shrink:0}.flex_box_center___AlHuF{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___vN2LW{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___Ac7D2{align-items:center;box-align:center}.flex_box_center_end___y38I7{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___iQE6P{flex-direction:column;box-orient:block-axis}.btns___sNgTb{display:flex;align-items:center}.btns___sNgTb .confirm___Ozirl{height:38px;background:#3061d0;border-radius:2px;color:#fff;padding:0 34px}.btns___sNgTb .cancel___aiq1I{height:38px;background:#f8f9fc;border-radius:2px;opacity:.5;border:1px solid #C3CFE0;font-size:14px;color:#464f66;margin-left:20px}.flex_box_center___jkpdr{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___OtsL8{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___rbcb_{align-items:center;box-align:center}.flex_box_center_end___zBR21{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___nS_eP{flex-direction:column;box-orient:block-axis}.fixedBottom___oJl7m{width:100%;height:70px;background:#fff;box-shadow:0 -3px 16px #dbdbdb80;position:fixed;z-index:1000;bottom:0;left:0}.fixedBottom___oJl7m .wrap___A3Oq1{width:1200px;height:100%;margin:auto;display:flex;align-items:center;justify-content:space-between}.fixedBottom___oJl7m .wrap___A3Oq1 .center____VL1y{flex:1 1}.flex_box_center___tY8Yn{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___vHdYA{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___pa61F{align-items:center;box-align:center}.flex_box_center_end___HyDXt{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___UjZek{flex-direction:column;box-orient:block-axis}.crumbs___V41Oe{margin:15px auto 25px;width:1200px;cursor:default}.crumbs___V41Oe span{font-size:12px;color:#c5c5c5}.crumbs___V41Oe .hover___bEIVd{cursor:pointer}.crumbs___V41Oe .hover___bEIVd:hover{color:#5f6368}.wrap___altfw [class~=ant-table-column-sorters]{padding:12px 2px}.wrap___altfw [class~=ant-table-tbody]>tr>td{padding:12px 2px}.wrap___altfw [class~=ant-table-thead]>tr>th{padding:12px 2px}.wrap___altfw [class~=ant-table-tbody]>tr>td{color:#05101a}.wrap___altfw [class~=ant-checkbox-wrapper]{margin-right:8px;margin-left:8px}.maxWidth70___Q4NoO{max-width:70px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.maxWidth80___lwsmt{max-width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.maxWidth100___Wnsw8{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.maxWidth110___zQh0P{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.maxWidth120___gjwfa{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reviewStatusTooltip___um7Rt [class~=ant-tooltip-content]{width:450px}.color32C___GIjgW{color:#32c090}.MdEditor___OuyKH [class~=CodeMirror-gutters]{left:0!important}.MdEditor___OuyKH [class~=CodeMirror-gutter-wrapper]{left:-30px!important}.MdEditor___OuyKH [class~=CodeMirror-cursor]{height:25px!important}.tr1___nwwbX{transform:translateY(1px)}.TableDom___pl59W .ant-table-column-sorters{justify-content:center!important}.wrap___kCwPu [class~=ant-table-column-sorters]{padding:12px 2px}.wrap___kCwPu [class~=ant-table-tbody]>tr>td{padding:12px 2px}.wrap___kCwPu [class~=ant-table-thead]>tr>th{padding:12px 2px}.wrap___kCwPu [class~=ant-table-tbody]>tr>td{color:#05101a}.wrap___kCwPu [class~=ant-checkbox-wrapper]{margin-right:8px;margin-left:8px}.refresh___dkiX_{margin-top:15px}.refresh___dkiX_ [class~=ant-checkbox-wrapper]{margin-left:0!important}.maxWidth70___u0Fnw{max-width:70px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.maxWidth80___B8pkG{max-width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.maxWidth100___jQ_W6{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.maxWidth110___t9GZl{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.maxWidth120___tvrlz{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reviewStatusTooltip___nCQT1 [class~=ant-tooltip-content]{width:450px}.color32C___KnLuR{color:#32c090}.MdEditor___IcZwd [class~=CodeMirror-gutters]{left:0!important}.MdEditor___IcZwd [class~=CodeMirror-gutter-wrapper]{left:-30px!important}.MdEditor___IcZwd [class~=CodeMirror-cursor]{height:25px!important}.tr1___k3Rcs{transform:translateY(1px)}.scroll___TVUAz{overflow:scroll;height:70px;box-sizing:border-box}.work_button___QokXJ{cursor:pointer;text-align:center;width:116px;color:#3061d0;height:32px;background:#f6f7f9 linear-gradient(180deg,#fff,#f6f7f9);box-shadow:0 2px 4px #e0dfe1,inset 0 1px 3px #ffffff80;border-radius:20px;border:1px solid rgba(48,97,208,.5);display:flex;align-items:center;justify-content:center;margin-top:20px}.work_button___QokXJ:hover{border:1px #165dff solid;color:#165dff}.greyText___XLove{color:#5f6367}.info___A1gYD{margin-bottom:30px}.info___A1gYD .label___hzhZk{font-size:14px;font-weight:400;margin-right:10px}.info___A1gYD .blackContent___WdHyW{color:#000}.info___A1gYD .orangeContent___d5L7E{color:#fa6400}.inputLabel___arXff{margin-bottom:10px}.tableTitle___xt1qf{display:flex;align-items:center;font-size:14px;font-weight:500;color:#000;margin-bottom:15px}.tableTitle___xt1qf:before{content:"";display:inline-block;width:2px;height:12px;background:#000;margin-right:4px}.scoreTable___AoIAG{max-height:280px;overflow:auto}.currentPrimary___NPWiR{cursor:pointer;user-select:none}.currentPrimary___NPWiR:hover{color:#165dff}.currentDelete___UEfhf{cursor:pointer;user-select:none}.currentDelete___UEfhf:hover{color:#e30000}.DirectoryTree___xPxCY{width:100%}.DirectoryTree___xPxCY .EditDom___seNxC{display:none}.DirectoryTree___xPxCY div[class~=ant-tree-treenode]{padding:4px 0}.DirectoryTree___xPxCY div[class~=ant-tree-treenode]:hover .EditDom___seNxC{display:block}.DirectoryTree___xPxCY span[class~=ant-tree-iconEle]{height:auto!important}.DirectoryTree___xPxCY div[class~=ant-tree-treenode-selected]:before{bottom:0!important;background:#f6f7f9!important;border-radius:4px!important}.DirectoryTree___xPxCY span[class~=ant-tree-node-content-wrapper]{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;padding:0!important;line-height:40px!important}.DirectoryTree___xPxCY span[class~=ant-tree-title]{flex:1 1;color:#191919!important;padding-right:25px!important;display:inline-flex!important;align-items:center!important}.flex_box_center___IBr6x{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___n2Iz0{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___1umwO{align-items:center;box-align:center}.flex_box_center_end___SRZYb{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___b90Da{flex-direction:column;box-orient:block-axis}.form___V3fAH{padding:30px 50px}.title_icon____uDZy{margin-left:6px;color:#666;font-weight:initial;font-size:16px;cursor:pointer}.title_icon____uDZy:hover{color:#3061d0}.title___RxKwK{height:16px;font-weight:600;font-size:16px;line-height:16px;color:#000;margin-bottom:10px}.content___vFT5m{background-color:#f6f7f9;padding:10px 30px}.content___vFT5m .pubColSty___dfLkL{height:40px;line-height:40px;padding:0 30px;border-bottom:1px solid #fff}.content___vFT5m .selectSty____Wuek div[class~=ant-select-selector]{padding:1px 4px}.borderSty___EuFYV{border:1px solid #DCDCDC}.borderSty___EuFYV:hover{border:1px solid #3061D0}.borderSty___EuFYV .delSty___AdEeI{color:#ccc}.borderSty___EuFYV .delSty___AdEeI:hover{color:#e30}.delBorder___vcTJc{border:1px solid #e30!important}.copHover___JVVXI:hover{background:#3061d0!important;color:#fff!important}.multiple_select___ZMPhl [class~=ant-select-selector]{min-height:40px!important;line-height:40px!important}.work_button___TiK1a{cursor:pointer;text-align:center;width:116px;color:#3061d0;height:32px;background:#f6f7f9 linear-gradient(180deg,#fff,#f6f7f9);box-shadow:0 2px 4px #e0dfe1,inset 0 1px 3px #ffffff80;border-radius:20px;border:1px solid rgba(48,97,208,.5);display:flex;align-items:center;justify-content:center;margin-top:20px}.work_button___TiK1a:hover{border:1px #165dff solid;color:#165dff}.title_tooltip___LLdrn{font-weight:400;font-size:14px;color:#666;line-height:14px}.multiple_select___kDXUm{height:40px;line-height:40px;margin-left:5px;width:250px;border:1px solid #d9d9d9;background:#0000000a;padding:0 8px;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.modal_con___ERnkW{min-height:400px;max-height:400px;overflow-y:auto;background:#f6f7f9}.flex_box_center___rQJfc{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___MDW24{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___RZbAv{align-items:center;box-align:center}.flex_box_center_end___ILhJA{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___Fmij7{flex-direction:column;box-orient:block-axis}.orangeColor___U5vU6{color:#fa6400}.redColor___qYa6X{color:#e30000}.statustitle___pTBLm{font-weight:600;color:#333;margin-left:5px}.statusbody___qUPQx{background:#f6f7f9;padding:10px 20px;margin-top:5px}.flex___VtL45{display:flex;align-items:center}#educoder .modal___VzyKs .ant-modal{width:initial!important}#educoder .modal___VzyKs .ant-modal-content{background:transparent;box-shadow:none}#educoder .modal___VzyKs .ant-modal-close{display:none}#educoder .modal___VzyKs .ant-modal-body{padding:0!important;overflow:initial!important}.content___HhLQS{position:relative}.content___HhLQS .close___zKaRB{cursor:pointer;position:absolute;z-index:1200;right:-70px;top:-40px}.flex_box_center___F26vH{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___J7N7g{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___W4LLF{align-items:center;box-align:center}.flex_box_center_end___ViUq3{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___fhMvC{flex-direction:column;box-orient:block-axis}.content___gstD6{padding:0 14px;display:flex;flex-direction:column;height:100%;overflow:hidden}.content___gstD6 .explain___gCVEb{font-size:14px;color:#165dff;text-decoration:underline;cursor:pointer}.content___gstD6 .tabs___JAbVp{height:40px;display:flex;border-bottom:1px solid #DEDEDE;margin-top:24px;flex-shrink:0}.content___gstD6 .tabs___JAbVp div{margin-right:40px;position:relative;font-size:16px;color:#333;cursor:pointer;user-select:none}.content___gstD6 .tabs___JAbVp div:hover,.content___gstD6 .tabs___JAbVp .active___O3Rxd{color:#165dff}.content___gstD6 .tabs___JAbVp .active___O3Rxd:after{content:"";width:100%;height:2px;background:#165dff;position:absolute;bottom:0;left:0}.content___gstD6 .btns___bZYiw{display:flex;align-items:center;justify-content:flex-end;margin-top:15px}.must___Ne3Rd{color:#e53333;font-family:SimSun,sans-serif;margin-top:-2px;margin-right:2px}.popover___MLGUB{background-color:transparent;color:#fff}.popover___MLGUB div[class~=ant-popover-arrow]{border-top-color:#05101a99!important;border-left-color:#05101a99!important}.popover___MLGUB div[class~=ant-popover-inner]{background-color:#05101a99}.popover___MLGUB div[class~=ant-popover-inner-content]{color:#fff}.zybzForm___JaYlh div[class~=ant-form-item]{margin-bottom:0}.zybzForm___JaYlh div[class~=ant-form-item-explain-error]{position:absolute;bottom:-21px}.graaytitle___vJ0cM{height:50px;background:#f5f5f5;border-radius:4px;display:flex;justify-content:left;align-items:center}.graaytitle___vJ0cM div[class~=ant-form-item-explain-error]{position:absolute;bottom:-30px}.dataPicker___qgWAA{width:400px}.examineStatus___A8ldH{font-size:14px;font-weight:400;color:#333}.examineStatus___A8ldH div{position:relative;display:flex;align-items:center;margin-bottom:30px}.examineStatus___A8ldH div:after{content:"";position:absolute;left:10px;bottom:-27px;width:2px;height:26px;background:#f6f7f9;border-radius:3px}.examineStatus___A8ldH div:last-child:after{content:"";display:none}.examineStatus___A8ldH div .contacts___yS8x4{position:relative;color:#165dff;overflow:hidden;cursor:pointer}.examineStatus___A8ldH div .contacts___yS8x4 .contacts_img___pPzVA{position:absolute;left:50%;right:50%;transform:translate(-50%);width:152px;height:158px;background:url(./static/contacts.5353ed7e.png) no-repeat;background-size:100% 100%;background-position:center}.examineStatus___A8ldH div .contacts___yS8x4:hover{overflow:inherit}.examineStatus___A8ldH .suc_status___hDmBK{font-size:20px;color:#2fc25b;margin-right:10px}.examineStatus___A8ldH .fail_status___KeR0l{font-size:20px;color:#e53333;margin-right:10px}.examineStatus___A8ldH .bohui___cxmL1{max-width:300px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.anchorNavigation___qD4R0 .tabs___hVMvA{background:#fff;position:sticky;top:0;z-index:1000}.anchorNavigation___qD4R0 .tabs___hVMvA .ant-tabs-nav{margin-bottom:0;padding-left:20px}.anchorNavigation___qD4R0 .tabs___hVMvA .ant-tabs-nav:before{border-bottom:0}.anchorNavigation___qD4R0 .tabs___hVMvA .ant-tabs-tab{padding:9px 0;color:#333!important}.anchorNavigation___qD4R0 .tabs___hVMvA .ant-tabs-tab-btn{font-weight:600;font-size:14px;text-shadow:none!important}.anchorNavigation___qD4R0 .box___Qz1lW{background:#fff}.anchorNavigation___qD4R0 .box___Qz1lW .head___WZZdl{margin-top:10px;width:1200px;height:40px;background:#fff;box-shadow:0 2px 4px #f1f4f9;display:flex;align-items:center;padding:0 20px;font-weight:600;font-size:18px;color:#3061d0!important}.tips___e8J4O{margin-bottom:14px;background-color:#fafafa;padding:10px;border-radius:4px}.homeworkType___ZjN2X{margin-bottom:8px}.antdTable___amDdp tbody[class~=ant-table-tbody] td{border-bottom:none}.modalWrapper___XPojI div[class~=ant-modal-header]{padding-bottom:14px}.modalWrapper___XPojI div[class~=ant-modal-body]{padding-top:0}.leftdiv___aBzsX{flex:1 1;margin-right:8px;height:340px;border-radius:4px;border:1px solid #d9d9d9;padding:14px}.leftdiv___aBzsX .listClass___bxIEW{display:flex;align-items:center}.leftdiv___aBzsX .spantitle___v_Vc4{word-break:break-all;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:108px;display:inline-block}.rightdiv___xWu4M{margin-left:8px;flex:1 1;height:340px;border-radius:4px;border:1px solid #d9d9d9;padding:14px}.flex_box_center___vhwFp{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___rbHwE{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___AF_yr{align-items:center;box-align:center}.flex_box_center_end___FqGSd{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___ujWr7{flex-direction:column;box-orient:block-axis}.failedList___KGsCg{display:flex;align-items:center;justify-content:space-between;margin-top:15px}.failedList___KGsCg .name___bbsWC{height:22px;font-weight:400;font-size:14px;color:#191919;line-height:22px;text-align:left;font-style:normal}.failedList___KGsCg .publish___mai8J{width:60px;height:32px;background:linear-gradient(180deg,#fff,#f6f7f9),#f6f7f9;box-shadow:0 2px 4px #e0dfe1,inset 0 1px 3px #ffffff80;border-radius:16px;border:1px solid #BACFFE;padding:4px 15px;font-size:14px;color:#3061d0;cursor:pointer}.modal___t6wU6 div[class~=knowledgeGraph-modal-header]{background:#fff!important;margin-bottom:0rem!important}.modal___t6wU6 div[class~=knowledgeGraph-modal-body]{background:#fff!important}.modal___t6wU6 div[class~=knowledgeGraph-modal-footer]{background:#fff!important;margin-top:0rem!important}.flex_box_center___ifw7q{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___XbpkU{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___TqfOZ{align-items:center;box-align:center}.flex_box_center_end___DaT_4{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___hy0Nl{flex-direction:column;box-orient:block-axis}.title___iYOvG{display:flex;align-items:center}.title___iYOvG strong{max-width:600px;-webkit-box-orient:vertical;display:-webkit-box;-webkit-line-clamp:1;overflow:hidden}.menuTabs___qIcvV [class=ant-tabs-nav]{margin-bottom:0!important}.menuTabs___qIcvV [class=ant-tabs-nav] button{font-size:14px}.menuTabs___qIcvV [class=ant-tabs-nav]{height:60px!important;background:#fff;padding:0 30px!important}.rightMenu___pcK7x{position:absolute;right:0;top:0;z-index:2;text-align:right;vertical-align:top;font-size:0;display:box;display:flex;align-items:center;box-align:center}.rightMenu___pcK7x button{padding:5px 11px;height:32px;font-size:14px}.rightMenu___pcK7x p,.rightMenu___pcK7x a{width:103px;height:32px;text-align:center;font-size:14px;color:#333;margin:0 0 0 10px;display:inline-block;border:1px solid #eaeaea;background:#fff;cursor:pointer;display:box;display:flex;justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.rightMenu___pcK7x p [class~=iconfont],.rightMenu___pcK7x a [class~=iconfont]{font-size:14px;color:#333;margin-right:4px}.rightMenu___pcK7x p:hover,.rightMenu___pcK7x a:hover{background:#0152d9;color:#fff;border:1px solid #0152d9}.rightMenu___pcK7x p:hover [class~=iconfont],.rightMenu___pcK7x a:hover [class~=iconfont]{color:#fff}.shixunDetail___h414d{position:absolute;top:-60px;right:0}.workListTabWrap___BPpdb .ant-tabs-nav{align-items:flex-start;height:40px;margin-bottom:0!important}.workListTabWrap___BPpdb .ant-tabs-nav:before{content:unset}.workListTabWrap___BPpdb .ant-tabs-nav .ant-tabs-nav-wrap{padding-left:0}.workListTabWrap___BPpdb .ant-tabs-nav .ant-tabs-nav-wrap .ant-tabs-nav-list .ant-tabs-tab{min-width:96px;height:38px;background:#fafafa;border-radius:4px 4px 0 0;font-size:14px;font-weight:400;color:#b9b8b8;display:unset;border:none;text-align:center;padding-top:9px}.workListTabWrap___BPpdb .ant-tabs-nav .ant-tabs-nav-wrap .ant-tabs-nav-list .ant-tabs-tab .ant-tabs-tab-btn:active{color:#333}.workListTabWrap___BPpdb .ant-tabs-nav .ant-tabs-nav-wrap .ant-tabs-nav-list .ant-tabs-tab.ant-tabs-tab-active{position:relative;background:#fff}.workListTabWrap___BPpdb .ant-tabs-nav .ant-tabs-nav-wrap .ant-tabs-nav-list .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn{color:#333}.workListTabWrap___BPpdb .ant-tabs-nav .ant-tabs-nav-wrap .ant-tabs-nav-list .ant-tabs-tab.ant-tabs-tab-active:after{position:absolute;content:"";width:100%;height:2px;background-color:#fff;bottom:-2px;left:0}.workListTabWrap___BPpdb .workListTabButton___QdhmD>button{border-radius:4px;margin-right:10px}.workListTabWrap___BPpdb .workListTabButton___QdhmD>button>i{margin-right:8px}.workListTabWrap___BPpdb .workListTabButton___QdhmD>button:last-child{margin-right:0}.analysisWrapper___vy_V8{background-color:#fff;padding:30px 30px 100px}.analysisWrapper___vy_V8 .title___tQAzn{font-size:16px;font-weight:500;color:#191919;display:flex;align-items:center}.analysisWrapper___vy_V8 .title___tQAzn:before{content:"";display:inline-block;width:6px;height:14px;background:#3061d0;margin-right:8px}.analysisWrapper___vy_V8 .tableWrapper___ztB9P thead[class~=ant-table-thead] th{font-weight:400;background-color:#fff}.analysisWrapper___vy_V8 .tableWrapper___ztB9P thead[class~=ant-table-thead] th.firstCol___Itr68,.analysisWrapper___vy_V8 .tableWrapper___ztB9P .firstCol___Itr68{background:#f6f7f9;color:#5f6368}.itemWrapper___Jaw8O{border-radius:4px;border:1px solid #EDEDED;padding:16px}.itemWrapper___Jaw8O .itemTitle___gmKyn{font-size:14px;font-weight:500;color:#666}.itemWrapper___Jaw8O .count___MUY3o{font-size:14px;font-weight:500;color:#191919}.echarts_list___RNu3g{display:flex;justify-content:space-between}.echarts_list___RNu3g .echarts_item___ZHo0B{width:23.5%;border:2px #f0f0f0 solid;border-radius:5px}.tips___k4pHA{cursor:pointer;margin-left:5px}.tips___k4pHA>i{font-size:14px}.flex_box_center___swvFl{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___AqPFV{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___XWInJ{align-items:center;box-align:center}.flex_box_center_end___GB61t{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___dJnz1{flex-direction:column;box-orient:block-axis}.analysis___xyV_c .title___DQ3VK{display:flex;align-items:center;margin-bottom:20px}.analysis___xyV_c .title___DQ3VK b{width:6px;height:14px;background:#3061d0;border-radius:1px;display:inline-block;margin-right:8px}.analysis___xyV_c .title___DQ3VK span{font-size:16px;font-weight:500;color:#191919;line-height:16px}.analysis___xyV_c .itemWrap___vFE5r{display:flex;justify-content:space-between}.analysis___xyV_c .itemWrap___vFE5r .item___NjeOt{width:23%;height:145px;border-radius:4px;border:1px solid #EDEDED}.list___BbMrm{display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap;padding:0}.list___BbMrm .wrap___UQTTb{width:100px;height:254px;background:#fff;box-shadow:0 4px 8px #c1cad480;border-radius:12px}.list___BbMrm .wrap___UQTTb .img___tNvUo{height:184px;position:relative;overflow:hidden;border-radius:12px 12px 0 0}.list___BbMrm .wrap___UQTTb .img___tNvUo img{width:100%}.list___BbMrm .wrap___UQTTb .img___tNvUo .tips___Eu4wH{padding-left:16px;padding-top:10px;height:57px;color:#fff;width:100%;position:absolute;z-index:10;bottom:0;left:0;background:linear-gradient(180deg,#0000,#000000a8)}.list___BbMrm .wrap___UQTTb .footer___ZbR9W{height:70px;padding:15px}.list___BbMrm .wrap___UQTTb .footer___ZbR9W ul{display:flex;align-items:center;padding:0}.list___BbMrm .wrap___UQTTb .footer___ZbR9W ul li{width:50%;color:#7d7d7d}.list___BbMrm .wrap___UQTTb .footer___ZbR9W ul li i{margin-right:5px;font-size:14px}.noData___mLlw0 .title___DQ3VK{display:flex;align-items:center;margin-bottom:20px}.noData___mLlw0 .title___DQ3VK b{width:6px;height:14px;background:#3061d0;border-radius:1px;display:inline-block;margin-right:8px}.noData___mLlw0 .title___DQ3VK span{font-size:16px;font-weight:500;color:#191919;line-height:16px}.flex_box_center___SF0m3{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___ChLjp{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center____l_EF{align-items:center;box-align:center}.flex_box_center_end___YcZNu{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___R9dNq{flex-direction:column;box-orient:block-axis}.downloadbutton___oEXJW{width:146px;height:32px;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#fff,#f6f7f9),#f6f7f9;box-shadow:0 2px 4px #e0dfe1,inset 0 1px 3px #ffffff80;border-radius:2px;border:1px solid #BACFFE;margin-bottom:20px}.configWorkContainer___CHUrh .ant-tabs-nav{background-color:#fff;height:unset!important}.configWorkContainer___CHUrh .ant-tabs-nav:before{content:""!important}.configWorkContainer___CHUrh .ant-tabs-nav .ant-tabs-nav-wrap .ant-tabs-nav-list .ant-tabs-tab{position:relative;display:inline-flex!important;align-items:center!important;margin:0 0 0 32px;padding:8px 0;font-size:12px;background:transparent!important;border:0!important;outline:none!important;cursor:pointer;border-radius:unset!important;font-weight:unset!important;color:#333!important;min-width:unset!important;height:60px!important}.saixuan___qXS0F{background:#fff;padding:28px 30px}.jianyi___JlBHC{background:#fff;padding:20px;margin-top:12px}.jianyi___JlBHC .jianyi_title___gvcLT{display:flex}.jianyi___JlBHC .jianyi_title___gvcLT .title_left___JoKhN{height:22px;font-family:PingFangSC,PingFang SC;font-weight:500!important;font-size:14px;color:#333;line-height:22px;font-style:normal}.jianyi___JlBHC .jianyi_title___gvcLT .title_left___JoKhN span{color:#9096a3;font-weight:400}.jianyi___JlBHC .jianyi_title___gvcLT .title_right___rkDjV{height:22px;font-family:PingFangSC,PingFang SC;font-weight:400;font-size:14px;color:#3061d0;line-height:22px;font-style:normal;margin-left:auto;cursor:pointer}.jianyi___JlBHC .yijian___VqHXI{padding:16px 20px;background:#f6f7f9;border-radius:4px;margin:20px 0 33px;font-family:PingFangSC,PingFang SC;font-weight:400;font-size:14px;color:#333;font-style:normal}.jianyi___JlBHC .yijian___VqHXI span{color:#fa6400;margin:0 3px}.jianyi___JlBHC .yijian___VqHXI b{color:#333;font-weight:600}.jianyi___JlBHC .zonglan_list___ecRe2{display:flex;flex-wrap:wrap;justify-content:space-between;padding-top:4px;margin-bottom:30px}.jianyi___JlBHC .zonglan_list___ecRe2 .zonglan_item___rJaLw{width:270px;height:86px;background:#f6f7f9;border-radius:4px;margin-top:16px;padding:16px 20px;cursor:pointer}.jianyi___JlBHC .zonglan_list___ecRe2 .zonglan_item___rJaLw .item_top___TlDBu{display:flex;align-items:center}.jianyi___JlBHC .zonglan_list___ecRe2 .zonglan_item___rJaLw .item_top___TlDBu .top_img___Gi7uf{width:16px;height:16px;margin-right:5px}.jianyi___JlBHC .zonglan_list___ecRe2 .zonglan_item___rJaLw .item_top___TlDBu .top_name___iofiQ{font-weight:500;font-size:14px;color:#333}.jianyi___JlBHC .zonglan_list___ecRe2 .zonglan_item___rJaLw .item_bottom___ELdu1{display:flex;align-items:center;margin-top:10px;color:#5a6481}.fenxi_list___rX810{display:flex;flex-wrap:wrap;justify-content:space-between;text-align:center}.fenxi_list___rX810 .fenxi_item___oJg7N{width:373px;height:342px;background:#f6f7f9;border-radius:4px;padding:20px;cursor:pointer}.fenxi_list___rX810 .fenxi_item___oJg7N .leixing___UELfH{font-family:PingFangSC,PingFang SC;font-weight:500;font-size:16px;color:#191919;margin-top:16px}.fenxi_list___rX810 .fenxi_item___oJg7N .leixing___UELfH span{font-weight:400;color:#3b76fe}.fenxi_list___rX810 .fenxi_item___oJg7N .pingjia___L46t2{font-family:PingFangSC,PingFang SC;font-weight:400;font-size:14px;color:#666;text-align:justify;font-style:normal;margin-top:14px;line-height:26px}.tubiao___u74Jl{width:1160px;height:385px;background:#f6f7f999;border-radius:2px;display:flex}.tubiao___u74Jl .tb_title___MgUmJ{font-family:PingFangSC,PingFang SC;font-weight:400;font-size:14px;color:#000;text-align:justify;font-style:normal}.tubiao___u74Jl .pie_style____KIye{width:580px;padding:20px}.tubiao___u74Jl .line___ixwri{height:305px;margin-top:40px;width:1px;background:#efefef}.tubiao___u74Jl .bar_style___TI7vj{width:580px;padding:20px}.inputBox___vG7Zf div[class~=ant-select-selector]{height:40px!important}.inputBox___vG7Zf div[class~=ant-select-selector] span[class~=ant-select-selection-placeholder]{line-height:40px}.inputBox___vG7Zf div[class~=ant-select-selector]>span[class~=ant-select-selection-item]{line-height:40px} diff --git a/p__Classrooms__Lists__ShixunHomeworks__Detail__index.e0713b4b.async.js b/p__Classrooms__Lists__ShixunHomeworks__Detail__index.e0713b4b.async.js deleted file mode 100644 index 4a8f1f9459..0000000000 --- a/p__Classrooms__Lists__ShixunHomeworks__Detail__index.e0713b4b.async.js +++ /dev/null @@ -1,26 +0,0 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[3581],{27812:function(at,X,u){"use strict";u.d(X,{Z:function(){return R}});var e=u(72308),o=u(59301),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},i=s,y=u(7657),P=function(j,v){return o.createElement(y.Z,(0,e.Z)({},j,{ref:v,icon:i}))},G=o.forwardRef(P),R=G},67921:function(at,X,u){"use strict";u.d(X,{Z:function(){return R}});var e=u(72308),o=u(59301),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M632 698.3l141.9-112a8 8 0 000-12.6L632 461.7c-5.3-4.2-13-.4-13 6.3v76H295c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h324v76c0 6.7 7.8 10.4 13 6.3zm261.3-405L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v278c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V422c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-83.5c0-17-6.7-33.2-18.7-45.2zM640 288H384V184h256v104zm264 436h-56c-4.4 0-8 3.6-8 8v108H184V732c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v148c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V732c0-4.4-3.6-8-8-8z"}}]},name:"delivered-procedure",theme:"outlined"},i=s,y=u(7657),P=function(j,v){return o.createElement(y.Z,(0,e.Z)({},j,{ref:v,icon:i}))},G=o.forwardRef(P),R=G},63524:function(at,X,u){"use strict";u.d(X,{Z:function(){return R}});var e=u(72308),o=u(59301),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"}}]},name:"like",theme:"outlined"},i=s,y=u(7657),P=function(j,v){return o.createElement(y.Z,(0,e.Z)({},j,{ref:v,icon:i}))},G=o.forwardRef(P),R=G},95869:function(at,X,u){"use strict";u.d(X,{Z:function(){return R}});var e=u(72308),o=u(59301),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 264c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48zm-8 136H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM480 544H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 308H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm356.8-74.4c29-26.3 47.2-64.3 47.2-106.6 0-79.5-64.5-144-144-144s-144 64.5-144 144c0 42.3 18.2 80.3 47.2 106.6-57 32.5-96.2 92.7-99.2 162.1-.2 4.5 3.5 8.3 8 8.3h48.1c4.2 0 7.7-3.3 8-7.6C564 871.2 621.7 816 692 816s128 55.2 131.9 124.4c.2 4.2 3.7 7.6 8 7.6H880c4.6 0 8.2-3.8 8-8.3-2.9-69.5-42.2-129.6-99.2-162.1zM692 591c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z"}}]},name:"solution",theme:"outlined"},i=s,y=u(7657),P=function(j,v){return o.createElement(y.Z,(0,e.Z)({},j,{ref:v,icon:i}))},G=o.forwardRef(P),R=G},33081:function(at,X){"use strict";X.Z={flex_box_center:"flex_box_center___vhwFp",flex_space_between:"flex_space_between___rbHwE",flex_box_vertical_center:"flex_box_vertical_center___AF_yr",flex_box_center_end:"flex_box_center_end___FqGSd",flex_box_column:"flex_box_column___ujWr7",failedList:"failedList___KGsCg",name:"name___bbsWC",publish:"publish___mai8J",modal:"modal___t6wU6"}},6021:function(at,X,u){"use strict";u.d(X,{Z:function(){return V}});var e=u(3113),o=u(59301),s=Object.defineProperty,i=Object.defineProperties,y=Object.getOwnPropertyDescriptors,P=Object.getOwnPropertySymbols,G=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,H=(d,m,_)=>m in d?s(d,m,{enumerable:!0,configurable:!0,writable:!0,value:_}):d[m]=_,j=(d,m)=>{for(var _ in m||(m={}))G.call(m,_)&&H(d,_,m[_]);if(P)for(var _ of P(m))R.call(m,_)&&H(d,_,m[_]);return d},v=(d,m)=>i(d,y(m)),A=(d,m)=>{var _={};for(var Y in d)G.call(d,Y)&&m.indexOf(Y)<0&&(_[Y]=d[Y]);if(d!=null&&P)for(var Y of P(d))m.indexOf(Y)<0&&R.call(d,Y)&&(_[Y]=d[Y]);return _},z=(d,m,_)=>new Promise((Y,c)=>{var F=T=>{try{g(_.next(T))}catch(x){c(x)}},k=T=>{try{g(_.throw(T))}catch(x){c(x)}},g=T=>T.done?Y(T.value):Promise.resolve(T.value).then(F,k);g((_=_.apply(d,m)).next())});const V=d=>{var m=d,{children:_}=m,Y=A(m,["children"]);const[c,F]=(0,o.useState)(!1);return o.createElement(e.ZP,v(j({},Y),{loading:c,onClick:k=>z(void 0,null,function*(){try{F(!0),yield Y.onClick(k),F(!1)}catch(g){console.error(g),F(!1)}})}),_)}},41069:function(at,X,u){"use strict";u.d(X,{ij:function(){return c},_s:function(){return Y},Uf:function(){return _},ZP:function(){return k}});var e=u(59301),o={flex_box_center:"flex_box_center___swvFl",flex_space_between:"flex_space_between___AqPFV",flex_box_vertical_center:"flex_box_vertical_center___XWInJ",flex_box_center_end:"flex_box_center_end___GB61t",flex_box_column:"flex_box_column___dJnz1",analysis:"analysis___xyV_c",title:"title___DQ3VK",itemWrap:"itemWrap___vFE5r",item:"item___NjeOt",list:"list___BbMrm",wrap:"wrap___UQTTb",img:"img___tNvUo",tips:"tips___Eu4wH",footer:"footer___ZbR9W",noData:"noData___mLlw0"},s=u(92310),i=u.n(s),y=u(42441),P=u(6848),G=u(61621),R=u(71418),H=u(8797),j=u(3294),v=Object.defineProperty,A=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable,d=(g,T,x)=>T in g?v(g,T,{enumerable:!0,configurable:!0,writable:!0,value:x}):g[T]=x,m=(g,T)=>{for(var x in T||(T={}))z.call(T,x)&&d(g,x,T[x]);if(A)for(var x of A(T))V.call(T,x)&&d(g,x,T[x]);return g};const _=(g={})=>{var T,x,L,D;let te=(T=g==null?void 0:g.emotion)==null?void 0:T.map(w=>m({value:w==null?void 0:w.rate},w)),Z=(x=g==null?void 0:g.focus)==null?void 0:x.map(w=>m({value:w==null?void 0:w.rate},w)),Ae=(L=g==null?void 0:g.action)==null?void 0:L.map(w=>m({value:w==null?void 0:w.rate},w)),he=(D=g==null?void 0:g.intention)==null?void 0:D.map(w=>m({value:w==null?void 0:w.rate},w));return[{title:"\u8868\u60C5\u5360\u6BD4",color:["#f7ca2e","#4ccf71","#3791ee","#f9ac95","#4f74ee","#f0e999"],data:te||[]},{title:"\u4E13\u6CE8\u5EA6\u5360\u6BD4",color:["#4f74ee","#f9ac95","#9cb5fe","#eaa170","#3791ee","#a39bed"],data:Z||[]},{title:"\u884C\u4E3A\u5360\u6BD4\u60C5\u51B5",color:["#5eca9c","#a39bed","#f68238","#f0e999","#eaa170","#f9ac95"],data:Ae||[]},{title:"\u610F\u56FE\u5360\u6BD4\u60C5\u51B5",color:["#eaa170","#739fcb","#f0e999","#f9ac95","#4f74ee","#5eca9c"],data:he||[]}]},Y=({className:g,dataSource:T=[],col:x=4,right:L,bottom:D=23,precision:te=0,wrapWidth:Z=1200})=>{const Ae=(w="",Ee,B="--")=>w?(w==null?void 0:w.length)>Ee?(w==null?void 0:w.slice(0,Ee-1))+"...":w:B,he=Math.floor((Z-(x-1)*L)/x);return e.createElement("div",{className:i()(o.list,g)},!!(T!=null&&T.length)&&(T==null?void 0:T.map((w,Ee)=>{const{cover_pic:B,created_at:S,emotion:oe,action:f,intention:Fe,focus:M}=w;return e.createElement("div",{key:Ee,className:o.wrap,style:{width:he,marginRight:(1+Ee)%x===0?0:L+te,marginBottom:D}},e.createElement("div",{className:o.img},e.createElement("img",{src:`${j.Z.API_SERVER}${B}`}),e.createElement("div",{className:o.tips},e.createElement("div",null,e.createElement("i",{className:"iconfont icon-paisheshijian mr5 font14"})," \u62CD\u6444\u65F6\u95F4"),e.createElement("span",null,S))),e.createElement("div",{className:o.footer},e.createElement("ul",null,e.createElement("li",null,e.createElement("i",{className:"iconfont icon-biaoqing"}),e.createElement("span",null,"\u8868\u60C5\uFF1A",e.createElement(P.Z,{title:oe},e.createElement("span",{className:"c-grey-333"},Ae(oe,4))))),e.createElement("li",null,e.createElement("i",{className:"iconfont icon-hangwei"}),e.createElement("span",null,"\u884C\u4E3A\uFF1A",e.createElement(P.Z,{title:f},e.createElement("span",{className:"c-grey-333"},Ae(f,4)))))),e.createElement("ul",null,e.createElement("li",null,e.createElement("i",{className:"iconfont icon-yitu"}),e.createElement("span",null,"\u610F\u56FE\uFF1A",e.createElement(P.Z,{title:Fe},e.createElement("span",{className:"c-grey-333"},Ae(Fe,4))))),e.createElement("li",null,e.createElement("i",{className:"iconfont icon-zhuangtai"}),e.createElement("span",null,"\u4E13\u6CE8\u5EA6\uFF1A",e.createElement(P.Z,{title:M},e.createElement("span",{className:"c-grey-333"},Ae(M,3))))))))})))},c=({className:g,style:T,title:x,hideBar:L=!1,children:D,customText:te="",noDataText:Z="",emptyData:Ae=[],loading:he,actionAnalysis:w})=>{var Ee,B;const S=((Ee=Ae==null?void 0:Ae[0])==null?void 0:Ee.every(f=>{var Fe;return!((Fe=f==null?void 0:f.data)!=null&&Fe.length)}))&&!((B=Ae==null?void 0:Ae[1])!=null&&B.length)||!w,oe=w?Z:te;return e.createElement(G.Z,{loading:he,active:!0},S&&e.createElement("div",{className:i()(o.noData,g),style:T},!!x&&e.createElement("div",{className:o.title},!L&&e.createElement("b",null),e.createElement("span",null,x)),e.createElement("div",{className:o.itemWrap},e.createElement(H.Z,{customText:oe}))),!S&&D)};var k=({className:g,style:T,data:x=[],title:L,hideBar:D=!1,loading:te=!1})=>e.createElement("div",{className:i()(o.analysis,g),style:T},!!L&&e.createElement("div",{className:o.title},!D&&e.createElement("b",null),e.createElement("span",null,L)),e.createElement(R.Z,{spinning:te},e.createElement("div",{className:o.itemWrap},x==null?void 0:x.map((Z,Ae)=>e.createElement("div",{className:o.item,key:Ae},e.createElement(y.Z,{option:{tooltip:{trigger:"item",formatter:"{a}
            {b}: {c}%"},title:{left:"center",bottom:15,text:Z==null?void 0:Z.title},legend:{top:10,right:10,orient:"vertical",show:!0,align:"left",icon:"circle",itemWidth:10,itemHeight:10,formatter:function(he){for(let w in Z==null?void 0:Z.data)if(he==(Z==null?void 0:Z.data[w].name))return he+" "+(Z==null?void 0:Z.data[w].value)+"%"},textStyle:{color:"#767676",fontSize:12}},color:Z==null?void 0:Z.color,series:[{type:"pie",radius:["20%","35%"],center:["20%","40%"],avoidLabelOverlap:!1,label:{show:!1},labelLine:{show:!1},data:Z==null?void 0:Z.data}]},style:{height:145}}))))))},24544:function(at,X,u){"use strict";var e=u(86204),o=u.n(e),s=Object.defineProperty,i=(R,H,j)=>H in R?s(R,H,{enumerable:!0,configurable:!0,writable:!0,value:j}):R[H]=j,y=(R,H,j)=>i(R,typeof H!="symbol"?H+"":H,j),P=(R,H,j)=>new Promise((v,A)=>{var z=m=>{try{d(j.next(m))}catch(_){A(_)}},V=m=>{try{d(j.throw(m))}catch(_){A(_)}},d=m=>m.done?v(m.value):Promise.resolve(m.value).then(z,V);d((j=j.apply(R,H)).next())});class G extends e.EventEmitter{constructor(H,j){super(),y(this,"url"),y(this,"body"),y(this,"fullContent",""),y(this,"controller",null),this.url=H,this.body=j}startStream(){return P(this,null,function*(){this.controller=new AbortController;const{signal:H}=this.controller;try{const j=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:H});if(!j.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${j.status}`);const v=j.headers.get("content-type");if(!v)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(v.includes("application/json")){const V=yield j.json();this.emit("error",V);return}if(!v.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const A=j.body.getReader(),z=new TextDecoder("utf-8");for(;;){const{done:V,value:d}=yield A.read();if(V)break;const _=z.decode(d,{stream:!0}).split(` -`);for(const Y of _)if(Y.startsWith("data:")){const c=Y.slice(5).trim();if(c==="[DONE]")break;try{const F=JSON.parse(c);F.data&&this.handleData(F.data)}catch(F){console.error("\u89E3\u6790 JSON \u5931\u8D25:",F)}}}this.emit("done",this.fullContent)}catch(j){j.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",j.message)}})}handleData(H){H.content&&(this.fullContent+=H.content,this.emit("data",{chunk:H,full:this.fullContent}))}cancelRequest(){var H;(H=this.controller)==null||H.abort()}}X.Z=G},12393:function(at,X,u){"use strict";u.d(X,{Z:function(){return c}});var e=u(59301),o=u(78241),s=u(8591),i=u(43418),y=u(5083),P=u(92832),G=u(1710),R=u(95237),H=u(43604),j=u(61186),v=u.n(j),A=u(955),z=u(89070),V={tips:"tips___e8J4O",homeworkType:"homeworkType___ZjN2X",antdTable:"antdTable___amDdp",modalWrapper:"modalWrapper___XPojI"},d=u(92365),m=u(79834),_=(F,k,g)=>new Promise((T,x)=>{var L=Z=>{try{te(g.next(Z))}catch(Ae){x(Ae)}},D=Z=>{try{te(g.throw(Z))}catch(Ae){x(Ae)}},te=Z=>Z.done?T(Z.value):Promise.resolve(Z.value).then(L,D);te((g=g.apply(F,k)).next())});const Y=({dispatch:F,courseEndTime:k,classroomList:g,successCallback:T=()=>{},visible:x,homeworkIds:L,courseId:D,isBatch:te,shixunHomeworks:Z})=>{const[Ae]=o.default.useForm(),[he,w]=(0,e.useState)(!1),[Ee,B]=(0,e.useState)(!1),[S,oe]=(0,e.useState)(!1),[f,Fe]=(0,e.useState)([]),[M,r]=(0,e.useState)([]),[se,a]=(0,e.useState)([]),[De,Re]=(0,e.useState)([]),[tt,ot]=(0,e.useState)([]),[ze,Ke]=(0,e.useState)([]),[ft,Xe]=(0,e.useState)([]),[Me,C]=(0,e.useState)([]),[de,ut]=(0,e.useState)([]);(0,e.useEffect)(()=>{x?we():p()},[x]);const we=()=>_(void 0,null,function*(){w(!0);const $=yield(0,d.oR)(L[0],{course_id:D});oe($.no_group),te?(Xe($.all_course_groups),C($.all_course_groups)):(Re($.late_course_groups),ot($.late_course_groups),Fe($.submit_course_groups),r($.submit_course_groups)),w(!1),Ae.setFieldsValue({end_time:v()()})}),N=()=>_(void 0,null,function*(){const $=Ae.getFieldsValue(),fe=v()($.end_time).format("YYYY-MM-DD HH:mm");if((te?de.length===0:se.length===0&&ze.length===0)&&!S){s.ZP.warning("\u8BF7\u9009\u62E9\u9700\u8981\u64CD\u4F5C\u7684\u73ED\u7EA7");return}B(!0);const Ze=yield(0,d.Mc)(D,{no_group:S,homework_ids:L,group_ids:te?de:se,end_time:fe,late_group_ids:te?de:ze});B(!1),Ze.status===0&&(p(),s.ZP.success("\u64CD\u4F5C\u6210\u529F"),T(),F({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}))}),p=()=>{a([]),Ke([]),r([]),ot([])};return e.createElement(i.default,{centered:!0,title:"\u7ACB\u5373\u622A\u6B62",className:V.modalWrapper,width:te||S?520:760,open:x,confirmLoading:Ee,destroyOnClose:!0,okText:"\u622A\u6B62",cancelText:"\u53D6\u6D88",onOk:()=>N(),onCancel:()=>{p(),F({type:"classroomList/setActionTabs",payload:{}})}},e.createElement("div",{className:V.tips},e.createElement("div",null,"1\u3001\u622A\u6B62\u540E\u5B66\u751F\u4E0D\u80FD\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"),e.createElement("div",null,"2\u3001\u672C\u64CD\u4F5C\u53EA\u5BF9\u201C\u63D0\u4EA4\u4E2D\u201D\u3001\u201C\u8865\u4EA4\u4E2D\u201D\u7684\u4F5C\u4E1A\u6709\u6548\u3002")),e.createElement(o.default,{form:Ae,layout:"vertical"},e.createElement(o.default.Item,{name:"end_time",label:"\u622A\u6B62\u65F6\u95F4"},e.createElement(y.default,{style:{width:"100%"},disabledDate:$=>(0,m.Q8)($,k),disabledTime:$=>(0,m.d0)($),placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:v()((0,A.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1}))),!S&&e.createElement(e.Fragment,null,te?e.createElement("div",null,e.createElement(P.default,{placeholder:"\u641C\u7D22\u73ED\u7EA7",onChange:$=>{C(ft.filter(fe=>fe.name.indexOf($.target.value)>-1))}}),e.createElement(G.default,{style:{marginTop:"10px",height:"300px",overflow:"auto"},className:V.antdTable,rowSelection:{type:"checkbox",onChange:$=>{ut($)}},rowKey:"id",pagination:!1,dataSource:Me,loading:he,columns:[{title:"\u73ED\u7EA7",dataIndex:"name"}]})):e.createElement(R.Z,{gutter:24},e.createElement(H.Z,{span:14},e.createElement("div",{className:V.homeworkType},"\u4F5C\u4E1A\u622A\u6B62"),e.createElement(P.default,{placeholder:"\u641C\u7D22\u73ED\u7EA7",onChange:$=>{r(f.filter(fe=>fe.name.indexOf($.target.value)>-1))}}),e.createElement("div",{className:V.tableWrapper},e.createElement(G.default,{style:{marginTop:"10px",height:"260px",overflow:"auto"},className:V.antdTable,rowSelection:{type:"checkbox",onChange:$=>{a($)}},rowKey:"id",pagination:!1,dataSource:M,loading:he,columns:[{title:"\u73ED\u7EA7",dataIndex:"name",ellipsis:!0},{title:"\u53D1\u5E03\u65F6\u95F4",dataIndex:"publish_time"},{title:"\u622A\u6B62\u65F6\u95F4",dataIndex:"end_time"}]}))),e.createElement(H.Z,{flex:10,style:{maxWidth:"280px"}},e.createElement("div",{className:V.homeworkType},"\u8865\u4EA4\u622A\u6B62"),e.createElement(P.default,{placeholder:"\u641C\u7D22\u73ED\u7EA7",onChange:$=>{ot(De.filter(fe=>fe.name.indexOf($.target.value)>-1))}}),e.createElement("div",{className:V.tableWrapper},e.createElement(G.default,{style:{marginTop:"10px",height:"260px",overflow:"auto",maxWidth:"280px"},className:V.antdTable,rowSelection:{type:"checkbox",onChange:$=>{Ke($)}},rowKey:"id",pagination:!1,loading:he,dataSource:tt,columns:[{title:"\u73ED\u7EA7",dataIndex:"name",ellipsis:!0,width:120},{title:"\u622A\u6B62\u65F6\u95F4",dataIndex:"late_time"}]}))))))};var c=(0,z.connect)(({shixunHomeworks:F,classroomList:k})=>({shixunHomeworks:F,classroomList:k}))(Y)},91785:function(at,X,u){"use strict";u.d(X,{Z:function(){return P}});var e=u(43418),o={modal:"modal___VzyKs",content:"content___HhLQS",close:"close___zKaRB"},s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABQVJREFUWEfNmXes32MUxj8PagS1QghJiU1pxExsFbUqitoSKzVilEjoHzVj/KEEDYnGbq3aexNiRRGjlMTee8+K432u87u+99ffvPdK7kl+f/3e8bznPec5z3m/oh8WEfMBGwPbAhsCawIrAIvncj8BnwFvAS8CjwMvSPq72+3UzYSIWBE4BjgQ+BZ4FHgOmAN8AhiYzUA9di1gM2A0sDQwHZgqyWM7so4ARsQywFnA3sDVwJWS3uhohxwUEesAhwIHAzcDkyV9026NtgAjYl/gwuKNGw1Skj3Xb4sIe3Jy8brXnSjpplaLNQUYEQsAlwDb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kpBafVdlsrWtAvDXeVpNkGMGtYnb/UgqT/k1sJsKlgrYA7DzgZ+NW6UNKTbZFVBmTcOiF3LULjh/JmM1aS6amPNRSsCbKh5M//JmWj42pjHei+oWtLTXmNZVoedLQkv+30WkPJnyBc+xo1Te5H7K1aE9+V6mngIcexnXGEf5Jcx3ssmybH67rzNE05wO8l9W3niEwMF38nyKBYRKxSzf62bWflFEO3cU8vmueG7tNHghy6j0eVqx66z291aT80HzDrQA7dJ+A6oEPzEb0J2dY+Q2yUnyGsrKufIT7PzxAWsv3+DPEPkKKBQOOiq+AAAAAASUVORK5CYII=",i=u(59301),P=({visible:G,setVisible:R,image:H,closeImageStyle:j,hiddenbutton:v})=>i.createElement(e.default,{centered:!0,destroyOnClose:!0,open:G,footer:null,wrapClassName:o.modal,onCancel:()=>R(!1)},i.createElement("div",{className:o.content},i.createElement("img",{src:H}),v,i.createElement("img",{onClick:()=>R(!1),className:o.close,src:s,style:j})))},30917:function(at,X,u){"use strict";u.d(X,{Z:function(){return he}});var e=u(59301),o=u(89070),s=u(43418),i=u(78241),y=u(8591),P=u(71418),G=u(17574),R=u(95237),H=u(43604),j=u(6848),v=u(92832),A={currentPrimary:"currentPrimary___NPWiR",currentDelete:"currentDelete___UEfhf",DirectoryTree:"DirectoryTree___xPxCY",EditDom:"EditDom___seNxC"},z=u(83312),V=u(24780),d=u(8797),m=u(85057),_=Object.defineProperty,Y=Object.defineProperties,c=Object.getOwnPropertyDescriptors,F=Object.getOwnPropertySymbols,k=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,T=(w,Ee,B)=>Ee in w?_(w,Ee,{enumerable:!0,configurable:!0,writable:!0,value:B}):w[Ee]=B,x=(w,Ee)=>{for(var B in Ee||(Ee={}))k.call(Ee,B)&&T(w,B,Ee[B]);if(F)for(var B of F(Ee))g.call(Ee,B)&&T(w,B,Ee[B]);return w},L=(w,Ee)=>Y(w,c(Ee)),D=(w,Ee)=>{var B={};for(var S in w)k.call(w,S)&&Ee.indexOf(S)<0&&(B[S]=w[S]);if(w!=null&&F)for(var S of F(w))Ee.indexOf(S)<0&&g.call(w,S)&&(B[S]=w[S]);return B},te=(w,Ee,B)=>new Promise((S,oe)=>{var f=r=>{try{M(B.next(r))}catch(se){oe(se)}},Fe=r=>{try{M(B.throw(r))}catch(se){oe(se)}},M=r=>r.done?S(r.value):Promise.resolve(r.value).then(f,Fe);M((B=B.apply(w,Ee)).next())});const Z=(w=[])=>w==null?void 0:w.map(Ee=>L(x({},Ee),{title:(Ee==null?void 0:Ee.value)||"",key:Ee==null?void 0:Ee.id,isLeaf:!0})),Ae=w=>{var Ee=w,{user:B,children:S,isShowComponent:oe=!0,ModalProps:f={},onDataSelect:Fe}=Ee,M=D(Ee,["user","children","isShowComponent","ModalProps","onDataSelect"]);const[r,se]=s.default.useModal(),[a]=i.default.useForm(),[De,Re]=(0,e.useState)([]),[tt,ot]=(0,e.useState)(!1),[ze,Ke]=(0,e.useState)(!1),[,ft,Xe,Me]=(0,z.U)(V.qE,{page:1,limit:9999}),[,,C]=(0,z.U)(V.V8,{}),[,,de]=(0,z.U)(V.B$,{}),[,,ut]=(0,z.U)(V.DH,{}),[,,we]=(0,z.U)(V.bJ,{}),N=()=>{ot(!1),a.resetFields(),Ke(!1)},p=fe=>te(void 0,null,function*(){const{node:re,dragNode:Ze,event:Ct}=fe,dt=fe.node.pos.split("-"),et=fe.dropPosition-Number(dt[dt.length-1]);if(et==0){y.ZP.warning("\u65E0\u6CD5\u79FB\u52A8\u5230\u5185\u90E8\u4F4D\u7F6E");return}if(et==1&&(Ze==null?void 0:Ze.item_index)==(re==null?void 0:re.item_index)+1){y.ZP.warning("\u672A\u79FB\u52A8\u4F4D\u7F6E");return}const zt=yield we({id:Ze==null?void 0:Ze.key,position:et==-1?1:(Ze==null?void 0:Ze.item_index)>(re==null?void 0:re.item_index)?(re==null?void 0:re.item_index)+1:re==null?void 0:re.item_index});(zt==null?void 0:zt.status)===0&&(y.ZP.success("\u79FB\u52A8\u6210\u529F"),Xe({},!0))}),$=fe=>te(void 0,null,function*(){let re={};ze?re=yield de(x({},fe)):re=yield ut(x({},fe)),(re==null?void 0:re.status)==0&&(y.ZP.success((re==null?void 0:re.message)||(ze?"\u6DFB\u52A0\u6210\u529F":"\u66F4\u65B0\u6210\u529F")),Xe({},!0),N())});return(0,e.useEffect)(()=>{f!=null&&f.open&&Xe({},!0)},[f==null?void 0:f.open]),(0,e.useEffect)(()=>{var fe;Re(Z((fe=Me==null?void 0:Me.data)==null?void 0:fe.list))},[Me]),oe?e.createElement(e.Fragment,null,se,S,e.createElement(s.default,x({},x({title:"\u5E38\u7528\u8BC4\u8BED",width:640,centered:!0,footer:null,bodyStyle:{padding:"10px 5px 25px"}},f)),e.createElement(P.Z,{spinning:ft},(De==null?void 0:De.length)>0?e.createElement(e.Fragment,null,e.createElement(G.default.DirectoryTree,{height:500,className:A.DirectoryTree,multiple:!0,draggable:{icon:!1},defaultExpandAll:!0,switcherIcon:!1,showIcon:!1,onSelect:Fe,treeData:De,onDrop:p,titleRender:fe=>e.createElement(e.Fragment,null,e.createElement("span",{className:"multi_ellipsis1",style:{flex:1,marginRight:"32px"}},fe==null?void 0:fe.title),e.createElement("div",{className:`${A.EditDom}`},e.createElement(R.Z,{wrap:!1,align:"middle",gutter:16},e.createElement(H.Z,null,e.createElement(j.Z,{title:"\u957F\u6309\u53EF\u8FDB\u884C\u62D6\u62FD\u6392\u5E8F"},e.createElement("i",{className:`iconfont icon-tuodong1 font12 ${A.currentPrimary}`}))),e.createElement(H.Z,null,e.createElement(j.Z,{title:"\u7F16\u8F91"},e.createElement("i",{className:`iconfont icon-bianji11 font12 ${A.currentPrimary}`,onClick:re=>{re.stopPropagation(),a.setFieldsValue(x({},fe)),ot(!0)}}))),e.createElement(H.Z,null,e.createElement(j.Z,{title:"\u5220\u9664"},e.createElement("i",{className:`iconfont icon-shanchu14 font12 ${A.currentDelete}`,onClick:re=>{re.stopPropagation(),r.confirm({icon:null,title:"\u5220\u9664\u5E38\u7528\u8BC4\u8BED",centered:!0,content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u5E38\u7528\u8BC4\u8BED\u5417\uFF1F",onOk:()=>te(void 0,null,function*(){const Ze=yield C({id:fe==null?void 0:fe.key});(Ze==null?void 0:Ze.status)==0&&(y.ZP.success((Ze==null?void 0:Ze.message)||"\u5220\u9664\u6210\u529F"),Xe({},!0))})})}}))))))}),e.createElement(m.op,{className:"ml20 mt20",icon:e.createElement("i",{className:"iconfont icon-xiaojiahao"}),style:{borderRadius:"4px"},onClick:()=>{Ke(!0),ot(!0)}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED")):e.createElement(d.Z,{styles:{margin:"30px auto"},customText:e.createElement("span",null,"\u6682\u65E0\u5E38\u7528\u8BC4\u8BED\uFF0C\u4F60\u53EF\u4EE5",e.createElement("a",{onClick:()=>{Ke(!0),ot(!0)}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED"))}))),e.createElement(s.default,{title:ze?"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED":"\u7F16\u8F91\u5E38\u7528\u8BC4\u8BED",open:tt,okText:ze?"\u6DFB\u52A0":"\u786E\u5B9A",onCancel:()=>{N()},onOk:()=>{a.submit()}},e.createElement(i.default,{form:a,onFinish:$},ze&&e.createElement("span",{className:"font14",style:{color:"#191919"}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED\uFF0C\u53EF\u4EE5\u5E2E\u52A9\u4F60\u63D0\u9AD8\u8BC4\u9605\u4F5C\u4E1A\u7684\u6548\u7387"),e.createElement(i.default.Item,{hidden:!0,name:"id"}),e.createElement(i.default.Item,{className:"mt10",name:"value"},e.createElement(v.default.TextArea,{placeholder:"\u8F93\u5165\u5E38\u7528\u8BC4\u8BED\u3002\u4F8B\u5982\uFF1A\u4F60\u7684\u7F16\u7A0B\u4F5C\u4E1A\u6574\u4F53\u8868\u73B0\u826F\u597D\uFF0C\u4F46\u4ECD\u6709\u4E00\u4E9B\u5C0F\u7684\u6539\u8FDB\u7A7A\u95F4\u3002",autoSize:{minRows:8,maxRows:9},maxLength:100,showCount:!0}))))):null};var he=(0,o.connect)(({loading:w,user:Ee})=>({user:Ee,loading:w.effects}))(Ae)},85057:function(at,X,u){"use strict";u.d(X,{jL:function(){return y},w9:function(){return Re},QD:function(){return eu},cQ:function(){return M},op:function(){return mt},O5:function(){return Gt},_b:function(){return ue},t7:function(){return Y},Gi:function(){return Xe},YG:function(){return Ke},qp:function(){return v},vr:function(){return ku},qE:function(){return Qt},Je:function(){return k},wb:function(){return B},cq:function(){return N},tp:function(){return V}});var e=u(59301),o={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"},s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N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uIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",y=({dataSource:ve=[],img:ge,imgWidth:Q=346,title:ke,sunTitle:nt,bannerExtraContent:Rt})=>e.createElement("div",{className:o.banner},e.createElement("div",{className:o.content},e.createElement("aside",null,e.createElement("p",null,e.createElement("b",null,ke),e.createElement("span",null,nt)),ve.length>0&&e.createElement("div",{className:o.btns},ve.map((qe,xe)=>e.createElement("div",{key:xe,onClick:qe.click},qe.name,qe.sign?e.createElement("img",{src:s,width:39}):null))),Rt),ge&&e.createElement("img",{style:{marginTop:33,marginRight:38},src:ge,width:Q}))),P={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"},G=u(92310),R=u.n(G),H=u(89392),v=({dataSource:ve=[],value:ge,onChange:Q,onTitleChange:ke,className:nt,title:Rt,titleWidth:qe=41,style:xe={},fontColor:Qe="#6A7283",showCount:Mt})=>{const[pt,Ue]=(0,e.useState)(0),[au,tu]=(0,e.useState)(!1),xt=(0,e.useRef)(null),qt=(0,e.useRef)(null);return(0,e.useEffect)(()=>{var Ht;ve.length!==0&&(((Ht=xt==null?void 0:xt.current)==null?void 0:Ht.clientHeight)>97?Ue(1):Ue(0)),ve.length===0&&Ue(0),tu(!1)},[ve]),e.createElement("div",{className:R()(P.row,nt),style:xe},e.createElement("div",{onClick:(0,H.throttle)(()=>ke==null?void 0:ke(),2e3),style:{width:qe,marginTop:au?12:4},className:`${P.title} ${ke?"current":""}`},Rt),e.createElement("div",{className:au?`${P.tagsWrap} ${P.tagsBorderWrap}`:P.tagsWrap},e.createElement("div",{className:P.bar,ref:qt,style:pt>0?{height:pt===1?97:"auto",overflow:pt===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},e.createElement("div",{className:P.tag,ref:xt},ve==null?void 0:ve.map(Ht=>e.createElement("span",{onClick:()=>Q(Ht.id),key:Ht.id,style:{color:Qe},className:ge===Ht.id?P.active:""},e.createElement("span",{title:Ht.name,className:P.name},Ht.name),!!Mt&&e.createElement("span",{className:P.num},Ht.count))))),!!pt&&e.createElement(e.Fragment,null,pt===1?e.createElement("div",{onClick:()=>{var Ht;Ue(2),((Ht=xt==null?void 0:xt.current)==null?void 0:Ht.clientHeight)>245?tu(!0):tu(!1)},className:P.action},"\u5C55\u5F00",e.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):e.createElement("div",{onClick:()=>{qt.current.scrollTop=0,Ue(1),tu(!1)},className:P.action},"\u6536\u8D77",e.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},A={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"},V=({dataSource:ve=[],value:ge,onChange:Q,className:ke,style:nt={}})=>e.createElement("div",{style:nt,className:R()(A.tabs,ke)},ve.map(Rt=>e.createElement("span",{onClick:()=>Q(Rt.id),className:ge===Rt.id?A.active:"",key:Rt.id},Rt.name))),d={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"},m=u(92832),Y=({dataSource:ve=[],value:ge="",onChange:Q,onInputChange:ke=()=>{},className:nt,style:Rt={},placeholder:qe,allowClear:xe=!1})=>{var Qe;const[Mt,pt]=(0,e.useState)(""),[Ue,au]=(0,e.useState)("");(0,e.useEffect)(()=>{var qt;let Ht=ge;(qt=JSON.stringify(ge))!=null&&qt.includes("{")&&(pt(ge.id),Ht=ge.value||"");try{au(decodeURIComponent(Ht||""))}catch(Tu){au(decodeURIComponent(Ht||""))}},[ge]);const tu=()=>{Q(encodeURIComponent(Ue),Mt||null)},xt=qt=>{qt!==Mt&&(pt(qt),Q(encodeURIComponent(Ue),qt))};return e.createElement("div",{className:R()(d.input,nt),style:Rt},!!ve.length&&e.createElement("div",{className:d.dropdown},e.createElement("div",{className:d.text},(Qe=ve.find(qt=>qt.id===Mt))==null?void 0:Qe.name,e.createElement("i",{className:"iconfont icon-zhankai4"}),e.createElement("b",{className:d.b1}),e.createElement("b",{className:d.b2})),e.createElement("div",{className:d.menu},ve.map((qt,Ht)=>e.createElement("div",{key:Ht,onClick:()=>xt(qt.id)},qt.name)))),e.createElement(m.default,{onPressEnter:tu,value:Ue,onChange:qt=>{au(qt.target.value),ke(encodeURIComponent(qt.target.value),Mt||null)},bordered:!1,placeholder:qe}),e.createElement("i",{onClick:tu,className:"iconfont icon-sousuo9 font14 pl10 current"}))},c={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"},k=({value:ve,onChange:ge,className:Q,total:ke,pageSize:nt,style:Rt={}})=>{const qe=ve<2,xe=ve>=Math.ceil(ke/nt);return ke<=nt?e.createElement(e.Fragment,null):e.createElement("div",{className:R()(c.quickPager,Q),style:Rt},e.createElement("div",{onClick:()=>{qe||ge(ve-1,"prev")},className:qe?c.disabled:""},"\u4E0A\u4E00\u9875"),e.createElement("div",{onClick:()=>{xe||ge(ve+1,"next")},className:xe?c.disabled:""},"\u4E0B\u4E00\u9875"))},g={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"},T=u(71418),x=u(6848),L=u(13570),D=u(3294),te=u(955),Z=u(96908),Ae=u(57177),he=u(81378),w=u(8797),B=({className:ve,dataSource:ge=[],col:Q=4,right:ke,bottom:nt=23,precision:Rt=0,wrapWidth:qe=1200,trackEventItems:xe,loading:Qe})=>{const Mt=Math.floor((qe-(Q-1)*ke)/Q);return e.createElement(T.Z,{spinning:Qe},e.createElement("div",{className:R()(g.list,ve)},!!ge.length&&ge.map((pt,Ue)=>{const{name:au,id:tu,identifier:xt,power:qt,cover_image_id:Ht,pic:Tu}=pt;return e.createElement("div",{className:g.wrap,key:tu,style:{width:Mt,marginRight:(1+Ue)%Q===0?0:ke+Rt,marginBottom:nt}},e.createElement("a",{target:"_blank",href:`/shixuns/${xt}/challenges`,className:g.li,onClick:Ju=>{Ju.preventDefault(),xe&&(0,te.L9)([xe]),qt&&(0,te.xg)(`/shixuns/${xt}/challenges`)}},e.createElement("div",{className:g.img},e.createElement("img",{className:g.cover,src:`${Tu}`}),pt.is_jupyter&&e.createElement("img",{className:g.sign,src:Z}),pt.is_jupyter_lab&&e.createElement("img",{className:g.sign,src:Ae}),pt.is_unity_3d&&e.createElement("img",{className:g.sign,src:he})),e.createElement("div",{className:g.name},e.createElement(x.Z,{title:au||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},e.createElement("span",{className:g.e},au||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),e.createElement("div",{className:g.tags},e.createElement(x.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},e.createElement("span",null,e.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),e.createElement("span",null,pt.challenges_count))),!!pt.myshixuns_count&&e.createElement(x.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},e.createElement("span",null,e.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),e.createElement("span",null,pt.myshixuns_count))),e.createElement(x.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},e.createElement("span",null,e.createElement("span",null,pt.level))),e.createElement("div",{className:g.rate},e.createElement(L.Z,{allowHalf:!0,disabled:!0,defaultValue:pt.score_info}),e.createElement("span",null,"\xA0",pt.score_info?`${pt.score_info}\u5206`:"5\u5206")))),!qt&&e.createElement("div",{className:g.lockWrap},e.createElement("img",{src:`${D.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),e.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!ge.length&&e.createElement(w.Z,null)))},S={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"},oe=u(24065),f=u(59301),M=({className:ve,dataSource:ge=[],col:Q=4,right:ke,bottom:nt=23,precision:Rt=0,wrapWidth:qe=1200,trackEventItems:xe,loading:Qe,onRemove:Mt=()=>{},isCurrent:pt=!0,showAlias:Ue=!1})=>{const au=Math.floor((qe-(Q-1)*ke)/Q),tu=[{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 f.createElement(T.Z,{spinning:Qe},f.createElement("div",{className:R()(S.list,ve)},!!(ge!=null&&ge.length)&&(ge==null?void 0:ge.map((xt,qt)=>{var Ht;const{name:Tu,id:Ju,identifier:Qu,featured:fn,school_name:pn,image_url:E,excellent:Yu,is_plan:vn}=xt;return f.createElement("div",{key:Ju,className:S.wrap,style:{width:au,marginRight:(1+qt)%Q===0?0:ke+Rt,marginBottom:nt}},f.createElement("a",{className:S.li,onClick:Du=>{Du.preventDefault(),Du.stopPropagation(),xe&&(0,te.L9)([xe]),(0,te.xg)(`/paths/${Qu}`)}},f.createElement("div",{className:S.img},f.createElement("img",{className:S.cover,src:`${E}`}),pt&&(0,oe.bg)()&&(xt==null?void 0:xt.studying)&&f.createElement("div",{className:`${S.movebq} user-path-items`,onClick:Du=>{Du.stopPropagation(),Mt(xt)}},f.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),f.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Ht=xt==null?void 0:xt.subject_tags)==null?void 0:Ht.map((Du,tn)=>{var Hu,Wu;if(tn===0){const Xu=(Hu=tu.find(gn=>gn.name==Du))==null?void 0:Hu.swimg;return f.createElement("img",{className:S.sign,src:Xu,style:{left:"-4px"}})}const fu=(Wu=tu.find(Xu=>Xu.name==Du))==null?void 0:Wu.ptimg;return f.createElement("img",{className:S.sign,src:fu,style:{left:`${48+52*(tn-1)+2*tn}px`}})}),f.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(xt==null?void 0:xt.excellent)&&f.createElement("div",{className:S.bq},"\u5F00\u653E\u8BFE\u7A0B"))),f.createElement("div",{className:S.name},f.createElement(x.Z,{title:Ue&&(xt!=null&&xt.excellent_alias_name)?f.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Tu}`,f.createElement("br",null),f.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${xt==null?void 0:xt.excellent_alias_name}`)):Tu},f.createElement("span",{className:S.e},Ue&&(xt==null?void 0:xt.excellent_alias_name)||Tu))),f.createElement(x.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${pn}`},f.createElement("div",{className:S.unit},f.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),pn)),f.createElement("div",{className:S.tags},f.createElement("div",null,f.createElement(x.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},f.createElement("span",null,f.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),f.createElement("span",null,xt.stages_count))),f.createElement(x.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},f.createElement("span",null,f.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),f.createElement("span",null,xt.members_count)))))))})),!ge.length&&f.createElement(w.Z,null)))},r={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"},se="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4Nt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t339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",a=u(59301),Re=({className:ve,dataSource:ge=[],col:Q=4,right:ke,bottom:nt=23,precision:Rt=0,wrapWidth:qe=1200,trackEventItems:xe,loading:Qe,handleVery:Mt=()=>!0})=>{const pt=Math.floor((qe-(Q-1)*ke)/Q);return a.createElement(T.Z,{spinning:Qe},a.createElement("div",{className:R()(r.list,ve)},!!ge.length&&ge.map((Ue,au)=>{const{subject_identifier:tu,id:xt,identifier:qt,power:Ht}=Ue,Tu=Ue.is_public!=0&&Ue.is_public;return a.createElement("div",{className:r.wrap,key:xt,style:{width:pt,marginRight:(1+au)%Q===0?0:ke+Rt,marginBottom:nt}},a.createElement("a",{className:r.li,onClick:Ju=>{Ju.preventDefault(),Mt(Ue==null?void 0:Ue.first_category_url)&&(xe&&(0,te.L9)([xe]),(0,te.xg)(Ue.first_category_url))}},a.createElement("div",{className:r.top},a.createElement(x.Z,{title:Ue.name},a.createElement("div",{className:r.name},Ue.name)),a.createElement("img",{className:r.img,src:D.Z.IMG_SERVER+"/images/"+Ue.avatar_url}),a.createElement("div",{className:r.text,title:Ue.creator},Ue.creator),tu&&a.createElement("div",{className:r.btns},a.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),a.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Tu&&a.createElement("div",{className:r.sign},"\u516C\u5F00")),a.createElement("div",{className:r.bottom},Ue.visits>0&&a.createElement(x.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},a.createElement("span",null,a.createElement("i",{className:"iconfont icon-liulanyan"}),a.createElement("span",null,Ue.visits))),Ue.course_members_count>0&&a.createElement(x.Z,{title:"\u6210\u5458",placement:"bottom"},a.createElement("span",null,a.createElement("i",{className:"iconfont icon-chengyuan"}),Ue.course_members_count)),Ue.tasks_count>0&&a.createElement(x.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},a.createElement("span",null,a.createElement("i",{className:"iconfont icon-zuoye"}),Ue.tasks_count)),Ue.is_end?a.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):a.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Ue.is_accessible&&a.createElement("div",{className:r.lockWrap},a.createElement("img",{src:`${D.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),a.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!ge.length&&a.createElement(w.Z,null)))},tt={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"},ot=u(89070),Ke=({dataSource:ve=[],value:ge,onChange:Q,className:ke,style:nt={},tabBarExtraContent:Rt})=>e.createElement("div",{className:R()(tt.tabs,ke),style:nt},e.createElement("div",{className:tt.tabsWrap},ve.map((qe,xe)=>!(qe!=null&&qe.hide)&&e.createElement("aside",{className:tt.tab,onClick:()=>{Q(qe.id),qe.link&&ot.history.push(qe.link)},key:xe},e.createElement("div",{className:ge===qe.id?tt.active:""},qe.name),(qe==null?void 0:qe.resetCount)==null&&(qe==null?void 0:qe.total)!==void 0&&e.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&&e.createElement(x.Z,{title:(qe==null?void 0:qe.tip)!=null?qe==null?void 0:qe.tip:""},e.createElement("span",{style:{color:"#9096A3"}},"\uFF08",e.createElement("span",{style:{color:"#000"}},qe==null?void 0:qe.resetCount),"/",e.createElement("span",null,qe==null?void 0:qe.total),"\uFF09"))))),e.createElement("div",{className:tt.tabBar},Rt)),Xe=({className:ve,style:ge={},children:Q})=>e.createElement("div",{className:R()(ve),style:ge},Q),Me={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"},C=u(38854),de=u(20834);const ut=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var N=({sortValue:ve,dropValue:ge,className:Q,onSort:ke,onDrop:nt,dataSource:Rt=ut})=>{var qe;return e.createElement("div",{className:R()(Me.orderWrap,Q)},e.createElement(C.Z,{dropdownRender:()=>e.createElement(de.default,null,Rt.map((xe,Qe)=>e.createElement(de.default.Item,{key:Qe,onClick:()=>nt(xe.id)},xe.name)))},e.createElement("span",{className:Me.orderTextWrap},(qe=Rt.find(xe=>ge===xe.id))==null?void 0:qe.name)),e.createElement("span",{className:Me.orderIconWrap},e.createElement("span",{className:Me.orderAsc},e.createElement("i",{className:ve==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Me.cursorPointer} ${Me.active}`:`iconfont icon-sanjiaoxing-up font12 ${Me.cursorPointer}`,onClick:()=>ke(ve==="asc"?"desc":"asc")})),e.createElement("span",{className:Me.orderDesc},e.createElement("i",{className:ve==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Me.cursorPointer} ${Me.active}`:`iconfont icon-sanjiaoxing-down font12 ${Me.cursorPointer}`,onClick:()=>ke(ve==="asc"?"desc":"asc")}))))},p={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"},$=u(3113),fe=Object.defineProperty,re=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,dt=(ve,ge,Q)=>ge in ve?fe(ve,ge,{enumerable:!0,configurable:!0,writable:!0,value:Q}):ve[ge]=Q,et=(ve,ge)=>{for(var Q in ge||(ge={}))Ze.call(ge,Q)&&dt(ve,Q,ge[Q]);if(re)for(var Q of re(ge))Ct.call(ge,Q)&&dt(ve,Q,ge[Q]);return ve},zt=(ve,ge)=>{var Q={};for(var ke in ve)Ze.call(ve,ke)&&ge.indexOf(ke)<0&&(Q[ke]=ve[ke]);if(ve!=null&&re)for(var ke of re(ve))ge.indexOf(ke)<0&&Ct.call(ve,ke)&&(Q[ke]=ve[ke]);return Q},Vt=(ve,ge,Q)=>new Promise((ke,nt)=>{var Rt=Qe=>{try{xe(Q.next(Qe))}catch(Mt){nt(Mt)}},qe=Qe=>{try{xe(Q.throw(Qe))}catch(Mt){nt(Mt)}},xe=Qe=>Qe.done?ke(Qe.value):Promise.resolve(Qe.value).then(Rt,qe);xe((Q=Q.apply(ve,ge)).next())}),mt=ve=>{var ge=ve,{className:Q,style:ke,children:nt,loading:Rt=!1,openLoading:qe,onClick:xe=()=>{},size:Qe="middle",shape:Mt="round"}=ge,pt=zt(ge,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Ue,au]=(0,e.useState)(!1);return e.createElement($.ZP,et({onClick:(0,H.throttle)(tu=>Vt(void 0,null,function*(){qe&&au(!0);try{yield xe(tu)}catch(xt){console.log("error",xt)}qe&&au(!1)}),2e3,{leading:!0,trailing:!1}),className:R()(p.btn,p[`${Qe}-${Mt}`],Q),style:ke,size:Qe,shape:Mt,loading:Ue||Rt},pt),nt)},It={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"},Qt=({className:ve,style:ge,children:Q=null,onClick:ke,title:nt})=>e.createElement("div",{className:R()(It.head,ve),style:ge},e.createElement("span",{className:"primary-hover",onClick:ke},e.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),e.createElement("b",{title:nt},nt),e.createElement("div",{className:It.node},Q)),su={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"},eu=({confirmShow:ve=!0,confirmTitle:ge,confirmClick:Q,cancelShow:ke=!0,cancelTitle:nt,cancelClick:Rt,className:qe,style:xe,confirmLoading:Qe=!1})=>e.createElement("div",{className:R()(su.btns,qe),style:xe},ve&&e.createElement($.ZP,{loading:Qe,onClick:Q,type:"primary",className:su.confirm},ge),ke&&e.createElement($.ZP,{onClick:Rt,className:su.cancel},nt)),lu={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"},ku=({className:ve,style:ge={},LeftContent:Q,children:ke,RightContent:nt})=>e.createElement("div",{className:R()(lu.fixedBottom,ve),style:ge},e.createElement("div",{className:lu.wrap},e.createElement("div",{className:lu.left},Q),e.createElement("div",{className:lu.center},ke),e.createElement("div",{className:lu.right},nt))),Be={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"},ue=({className:ve,style:ge={},dataSource:Q=[]})=>e.createElement("div",{className:R()(Be.crumbs,ve),style:ge},Q.map((ke,nt)=>ntot.history.push(ke.path)},ke.name):e.createElement("span",null,ke.name),e.createElement("span",null,"\xA0",">","\xA0")):e.createElement("span",{key:nt,style:{color:"#5F6368"}},ke.name))),Se=u(31797),_t=Object.defineProperty,Yt=Object.defineProperties,lt=Object.getOwnPropertyDescriptors,rt=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,Eu=(ve,ge,Q)=>ge in ve?_t(ve,ge,{enumerable:!0,configurable:!0,writable:!0,value:Q}):ve[ge]=Q,Fu=(ve,ge)=>{for(var Q in ge||(ge={}))ie.call(ge,Q)&&Eu(ve,Q,ge[Q]);if(rt)for(var Q of rt(ge))At.call(ge,Q)&&Eu(ve,Q,ge[Q]);return ve},Nt=(ve,ge)=>Yt(ve,lt(ge)),Nu=(ve,ge)=>{var Q={};for(var ke in ve)ie.call(ve,ke)&&ge.indexOf(ke)<0&&(Q[ke]=ve[ke]);if(ve!=null&&rt)for(var ke of rt(ve))ge.indexOf(ke)<0&&At.call(ve,ke)&&(Q[ke]=ve[ke]);return Q};const{Countdown:bu}=Se.default;var Gt=ve=>{var ge=ve,{onChange:Q}=ge,ke=Nu(ge,["onChange"]);const[nt,Rt]=(0,e.useState)(null);(0,e.useEffect)(()=>{typeof nt=="number"&&nt>=0&&Q(nt)},[nt]);const qe=xe=>{const Qe=Math.floor(xe/1e3);Rt(Qe)};return e.createElement(bu,Nt(Fu({},ke),{onChange:qe}))}},33441:function(at,X,u){"use strict";u.d(X,{Z:function(){return L}});var e=u(59301),o={anchorNavigation:"anchorNavigation___qD4R0",tabs:"tabs___hVMvA",box:"box___Qz1lW",head:"head___WZZdl"},s=Object.defineProperty,i=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable,G=(D,te,Z)=>te in D?s(D,te,{enumerable:!0,configurable:!0,writable:!0,value:Z}):D[te]=Z,R=(D,te)=>{for(var Z in te||(te={}))y.call(te,Z)&&G(D,Z,te[Z]);if(i)for(var Z of i(te))P.call(te,Z)&&G(D,Z,te[Z]);return D};const H=D=>React.createElement("svg",R({width:17,height:18,xmlns:"http://www.w3.org/2000/svg"},D),React.createElement("title",null,"\u88C5\u9970\u70B9"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"100%",y1:"50%",x2:"0%",y2:"50%",id:"dot_svg__a"},React.createElement("stop",{stopColor:"#5EC7EA",offset:"0%"}),React.createElement("stop",{stopColor:"#3055D0",offset:"100%"}))),React.createElement("g",{transform:"translate(0 -1)",fill:"none",fillRule:"evenodd"},React.createElement("path",{d:"m4.342 2.005 11.896 7.138a1 1 0 0 1 0 1.714L4.342 17.995a1 1 0 0 1-1.378-1.362L6.834 10l-3.87-6.633a1 1 0 0 1 1.378-1.362Z",fill:"url(#dot_svg__a)"}),React.createElement("circle",{fill:"#3061D0",cx:2,cy:10,r:2})));var j="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIxMDAlIiB5MT0iNTAlIiB4Mj0iMCUiIHkyPSI1MCUiIGlkPSJhIj48c3RvcCBzdG9wLWNvbG9yPSIjNUVDN0VBIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzMwNTVEMCIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAtMSkiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PHBhdGggZD0ibTQuMzQyIDIuMDA1IDExLjg5NiA3LjEzOGExIDEgMCAwIDEgMCAxLjcxNEw0LjM0MiAxNy45OTVhMSAxIDAgMCAxLTEuMzc4LTEuMzYyTDYuODM0IDEwbC0zLjg3LTYuNjMzYTEgMSAwIDAgMSAxLjM3OC0xLjM2MloiIGZpbGw9InVybCgjYSkiLz48Y2lyY2xlIGZpbGw9IiMzMDYxRDAiIGN4PSIyIiBjeT0iMTAiIHI9IjIiLz48L2c+PC9zdmc+",v=u(99313),A=u(92310),z=u.n(A),V=u(59301),d=Object.defineProperty,m=Object.defineProperties,_=Object.getOwnPropertyDescriptors,Y=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable,k=(D,te,Z)=>te in D?d(D,te,{enumerable:!0,configurable:!0,writable:!0,value:Z}):D[te]=Z,g=(D,te)=>{for(var Z in te||(te={}))c.call(te,Z)&&k(D,Z,te[Z]);if(Y)for(var Z of Y(te))F.call(te,Z)&&k(D,Z,te[Z]);return D},T=(D,te)=>m(D,_(te)),L=({dataSource:D,className:te,style:Z})=>{const[Ae,he]=(0,e.useState)([]),[w,Ee]=(0,e.useState)(""),B=(0,e.useRef)("");(0,e.useEffect)(()=>{if(D!=null&&D.length){const f=String(Math.random()).slice(-6),Fe=D.map(M=>T(g({},M),{key:`${f}-${M.key}`}));he(Fe),Ee(Fe[0].key)}},[D.length]);const S=f=>{Ee(f),B.current=f;const Fe=document.getElementById(f);if(Fe){const M=Fe.getBoundingClientRect().top+window.scrollY-50;window.scrollTo({top:M,behavior:"smooth"})}},oe=()=>{const f=Ae.map(M=>document.getElementById(M.key)),Fe=window.innerHeight/2;for(const M of f)if(M){const r=M.getBoundingClientRect();if(r.top>=0&&r.top(window.addEventListener("scroll",oe),()=>{window.removeEventListener("scroll",oe)}),[Ae]),V.createElement("div",{className:z()(o.anchorNavigation,te),style:Z},V.createElement(v.default,{items:Ae,tabBarGutter:60,className:o.tabs,activeKey:w,onChange:S}),Ae.map(f=>V.createElement("div",{key:f.key,id:f.key,className:o.box},V.createElement("div",{className:o.head},V.createElement("img",{className:"mr10",src:j,alt:"Dot"}),f.label),V.createElement("div",{className:o.element},f.element))))}},16938:function(at,X,u){"use strict";var e=u(59301),o=u(43418),s=u(8591),i=u(99064),y=u(89070),P=Object.defineProperty,G=Object.getOwnPropertySymbols,R=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable,j=(d,m,_)=>m in d?P(d,m,{enumerable:!0,configurable:!0,writable:!0,value:_}):d[m]=_,v=(d,m)=>{for(var _ in m||(m={}))R.call(m,_)&&j(d,_,m[_]);if(G)for(var _ of G(m))H.call(m,_)&&j(d,_,m[_]);return d},A=(d,m)=>{var _={};for(var Y in d)R.call(d,Y)&&m.indexOf(Y)<0&&(_[Y]=d[Y]);if(d!=null&&G)for(var Y of G(d))m.indexOf(Y)<0&&H.call(d,Y)&&(_[Y]=d[Y]);return _},z=(d,m,_)=>new Promise((Y,c)=>{var F=T=>{try{g(_.next(T))}catch(x){c(x)}},k=T=>{try{g(_.throw(T))}catch(x){c(x)}},g=T=>T.done?Y(T.value):Promise.resolve(T.value).then(F,k);g((_=_.apply(d,m)).next())});const V=d=>{var m=d,{shixunHomeworks:_,dispatch:Y}=m,c=A(m,["shixunHomeworks","dispatch"]);const F=(0,y.useParams)();return e.createElement(o.default,{centered:!0,title:"\u63D0\u793A",open:_.actionTabs.key==="\u6253\u56DE\u91CD\u505A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>z(void 0,null,function*(){(yield(0,i.ZP)(`/api/myshixuns/${_.actionTabs.selectArrs.myshixun_identifier}/reset_my_game.json`,{method:"GET",params:{course_id:F.coursesId}})).shixun_identifier&&(s.ZP.success("\u64CD\u4F5C\u6210\u529F"),Y({type:"shixunHomeworks/setActionTabs",payload:{}}),Y({type:"shixunHomeworks/getWorkList",payload:v({},_.actionTabs.params)}))}),onCancel:()=>{Y({type:"shixunHomeworks/setActionTabs",payload:{}})}},e.createElement("p",null,"\u8BE5\u4F5C\u4E1A\u5C06\u88AB\u6253\u56DE\u91CD\u505A\uFF0C\u5B66\u751F\u5B9E\u8BAD\u8BB0\u5F55\u5C06\u88AB\u6E05\u7A7A!"),e.createElement("p",null,"\u786E\u5B9A\u6253\u56DE?"))};X.Z=(0,y.connect)(({shixunHomeworks:d})=>({shixunHomeworks:d}))(V)},83992:function(at,X,u){"use strict";u.d(X,{n:function(){return lu},Z:function(){return ku}});var e=u(59301),o=u(78241),s=u(8591),i=u(6848),y=u(43418),P=u(20834),G=u(24905),R=u(95237),H=u(43604),j=u(92832),v=u(3113),A=u(38854),z=u(1710),V=u(5112),d=u(5871),m=u(58421),_=u(84105),Y=u(87395),c=u(67921),F=u(89489),k=u(8797),g=u(955),T=u(16938),x=u(96512),L=u(99064),D=u(89070),te=Object.defineProperty,Z=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,w=(Be,ye,ue)=>ye in Be?te(Be,ye,{enumerable:!0,configurable:!0,writable:!0,value:ue}):Be[ye]=ue,Ee=(Be,ye)=>{for(var ue in ye||(ye={}))Ae.call(ye,ue)&&w(Be,ue,ye[ue]);if(Z)for(var ue of Z(ye))he.call(ye,ue)&&w(Be,ue,ye[ue]);return Be},B=(Be,ye)=>{var ue={};for(var Se in Be)Ae.call(Be,Se)&&ye.indexOf(Se)<0&&(ue[Se]=Be[Se]);if(Be!=null&&Z)for(var Se of Z(Be))ye.indexOf(Se)<0&&he.call(Be,Se)&&(ue[Se]=Be[Se]);return ue},S=(Be,ye,ue)=>new Promise((Se,_t)=>{var Yt=ie=>{try{rt(ue.next(ie))}catch(At){_t(At)}},lt=ie=>{try{rt(ue.throw(ie))}catch(At){_t(At)}},rt=ie=>ie.done?Se(ie.value):Promise.resolve(ie.value).then(Yt,lt);rt((ue=ue.apply(Be,ye)).next())});const oe=Be=>{var ye=Be,{shixunHomeworks:ue,dispatch:Se}=ye,_t=B(ye,["shixunHomeworks","dispatch"]);const Yt=(0,D.useParams)(),[lt,rt]=(0,e.useState)(!0),[ie,At]=(0,e.useState)(!1),[Eu]=o.default.useForm(),Fu=()=>S(void 0,null,function*(){const Nt=Eu.getFieldValue();(yield(0,L.ZP)(`/api/homework_commons/${Yt.categoryId}/batch_comment.json`,{method:"post",body:{student_work_ids:[...ue.actionTabs.selectArrs],cover_all:lt,hidden_comment:Nt.hidden_comment,comment:Nt.comment}})).status===0&&(s.ZP.success("\u8BC4\u9605\u6210\u529F"),Eu.resetFields(),Se({type:"shixunHomeworks/setActionTabs",payload:{}}),Se({type:"shixunHomeworks/getWorkList",payload:Ee({},ue.actionTabs.params)}))});return e.createElement(e.Fragment,null,e.createElement(y.default,{centered:!0,title:"\u4E00\u952E\u70B9\u8BC4",open:ue.actionTabs.key==="\u4E00\u952E\u70B9\u8BC4",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>S(void 0,null,function*(){const Nt=Eu.getFieldValue();JSON.stringify(Nt)==="{}"||Nt.hidden_comment===""&&Nt.comment===""?At(!0):ue.workList.partial_comment?Se({type:"shixunHomeworks/setActionTabs",payload:{key:"\u4E00\u952E\u70B9\u8BC4\u786E\u8BA4",selectArrs:ue.actionTabs.selectArrs,params:ue.actionTabs.params}}):Fu()}),onCancel:()=>{Se({type:"shixunHomeworks/setActionTabs",payload:{}})}},e.createElement(o.default,{form:Eu,onChange:()=>{ie&&At(!1)}},e.createElement("p",null,"\u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),e.createElement(o.default.Item,{name:"comment"},e.createElement(j.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:8})),e.createElement("p",null,"\u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),e.createElement(o.default.Item,{name:"hidden_comment"},e.createElement(j.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:8}))),ie&&e.createElement("p",{className:"c-red"},"\u8BC4\u9605\u5185\u5BB9\u81F3\u5C11\u6709\u4E00\u4E2A\u4E0D\u4E3A\u7A7A")),e.createElement(y.default,{centered:!0,title:e.createElement("span",null,e.createElement(x.Z,{className:"c-orange mr20"}),"\u63D0\u793A"),open:ue.actionTabs.key==="\u4E00\u952E\u70B9\u8BC4\u786E\u8BA4",okText:"\u786E\u5B9A\u70B9\u8BC4",cancelText:"\u653E\u5F03\u70B9\u8BC4",onOk:()=>{Fu()},onCancel:()=>{Se({type:"shixunHomeworks/setActionTabs",payload:{}})},width:400},e.createElement("div",{className:"tc"},e.createElement("p",null,"\u90E8\u5206\u5B66\u751F\u5DF2\u6709\u70B9\u8BC4\u5185\u5BB9\uFF0C\u662F\u5426\u8986\u76D6\u5DF2\u6709\u70B9\u8BC4\u5185\u5BB9\uFF1F"),e.createElement("p",null,e.createElement(V.ZP.Group,{onChange:Nt=>{rt(Nt.target.value)},value:lt},e.createElement(V.ZP,{value:!0},"\u8986\u76D6\u5DF2\u6709\u70B9\u8BC4"),e.createElement(V.ZP,{value:!1},"\u8DF3\u8FC7\u5DF2\u6709\u70B9\u8BC4"))))))};var f=(0,D.connect)(({shixunHomeworks:Be})=>({shixunHomeworks:Be}))(oe),Fe=u(36708),M=u(24065),r={wrap:"wrap___altfw",maxWidth70:"maxWidth70___Q4NoO",maxWidth80:"maxWidth80___lwsmt",maxWidth100:"maxWidth100___Wnsw8",maxWidth110:"maxWidth110___zQh0P",maxWidth120:"maxWidth120___gjwfa",reviewStatusTooltip:"reviewStatusTooltip___um7Rt",color32C:"color32C___GIjgW",MdEditor:"MdEditor___OuyKH",tr1:"tr1___nwwbX",TableDom:"TableDom___pl59W"},se=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,Re=(Be,ye)=>{var ue={};for(var Se in Be)a.call(Be,Se)&&ye.indexOf(Se)<0&&(ue[Se]=Be[Se]);if(Be!=null&&se)for(var Se of se(Be))ye.indexOf(Se)<0&&De.call(Be,Se)&&(ue[Se]=Be[Se]);return ue},tt=(Be,ye,ue)=>new Promise((Se,_t)=>{var Yt=ie=>{try{rt(ue.next(ie))}catch(At){_t(At)}},lt=ie=>{try{rt(ue.throw(ie))}catch(At){_t(At)}},rt=ie=>ie.done?Se(ie.value):Promise.resolve(ie.value).then(Yt,lt);rt((ue=ue.apply(Be,ye)).next())});const ot=Be=>{var ye=Be,{shixunHomeworks:ue,dispatch:Se}=ye,_t=Re(ye,["shixunHomeworks","dispatch"]),Yt,lt,rt,ie;const At=(0,D.useParams)(),[Eu,Fu]=(0,e.useState)(!1),[Nt,Nu]=(0,e.useState)((lt=(Yt=ue.actionTabs.selectArrs)==null?void 0:Yt.data)==null?void 0:lt.name),[bu]=o.default.useForm();(0,e.useEffect)(()=>{var Gt,ve,ge,Q,ke,nt;ue.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4"&&bu.setFieldsValue({comment:(ve=(Gt=ue.actionTabs.selectArrs)==null?void 0:Gt.data)==null?void 0:ve.work_comment,hidden_comment:(Q=(ge=ue.actionTabs.selectArrs)==null?void 0:ge.data)==null?void 0:Q.work_comment_hidden}),Nu((nt=(ke=ue.actionTabs.selectArrs)==null?void 0:ke.data)==null?void 0:nt.name)},[ue.actionTabs.key]);const Xt=()=>tt(void 0,null,function*(){var Gt,ve;const ge=bu.getFieldValue();if((yield(0,L.ZP)(`/api/student_works/${(ve=(Gt=ue.actionTabs.selectArrs)==null?void 0:Gt.data)==null?void 0:ve.homeworkId}/shixun_work_comment.json`,{method:"post",body:{hidden_comment:ge.hidden_comment,comment:ge.comment}})).status===0)return s.ZP.success("\u8BC4\u9605\u6210\u529F"),bu.resetFields(),Se({type:"shixunHomeworks/setActionTabs",payload:{}}),Se({type:"shixunHomeworks/getWorkList",payload:At})});return e.createElement(e.Fragment,null,e.createElement(y.default,{centered:!0,title:(ie=(rt=ue.actionTabs.selectArrs)==null?void 0:rt.data)!=null&&ie.work_comment_hidden?"\u66F4\u6539"+Nt+"\u70B9\u8BC4":Nt+"\u70B9\u8BC4",open:ue.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>tt(void 0,null,function*(){const Gt=bu.getFieldValue();JSON.stringify(Gt)==="{}"||Gt.hidden_comment===""&&Gt.comment===""?Fu(!0):Xt()}),onCancel:()=>{Se({type:"shixunHomeworks/setActionTabs",payload:{}})}},e.createElement(o.default,{form:bu,onChange:()=>{Eu&&Fu(!1)}},e.createElement("p",null,"\u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),e.createElement(o.default.Item,{name:"comment"},e.createElement(j.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:8})),e.createElement("p",null,"\u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),e.createElement(o.default.Item,{name:"hidden_comment"},e.createElement(j.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:8}))),Eu&&e.createElement("p",{className:"c-red"},"\u8BC4\u9605\u5185\u5BB9\u81F3\u5C11\u6709\u4E00\u4E2A\u4E0D\u4E3A\u7A7A")))};var ze=(0,D.connect)(({shixunHomeworks:Be})=>({shixunHomeworks:Be}))(ot),Ke=Object.getOwnPropertySymbols,ft=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable,Me=(Be,ye)=>{var ue={};for(var Se in Be)ft.call(Be,Se)&&ye.indexOf(Se)<0&&(ue[Se]=Be[Se]);if(Be!=null&&Ke)for(var Se of Ke(Be))ye.indexOf(Se)<0&&Xe.call(Be,Se)&&(ue[Se]=Be[Se]);return ue},C=(Be,ye,ue)=>new Promise((Se,_t)=>{var Yt=ie=>{try{rt(ue.next(ie))}catch(At){_t(At)}},lt=ie=>{try{rt(ue.throw(ie))}catch(At){_t(At)}},rt=ie=>ie.done?Se(ie.value):Promise.resolve(ie.value).then(Yt,lt);rt((ue=ue.apply(Be,ye)).next())});const de=Be=>{var ye=Be,{shixunHomeworks:ue,dispatch:Se}=ye,_t=Me(ye,["shixunHomeworks","dispatch"]);const Yt=(0,D.useParams)(),[lt,rt]=(0,e.useState)([]),[ie,At]=(0,e.useState)([]);(0,e.useEffect)(()=>{ue.actionTabs.key==="\u8D28\u91CF\u68C0\u6D4B"&&Eu()},[ue.actionTabs.key]);function Eu(){return C(this,null,function*(){const Nt=yield(0,L.ZP)(`/api/homework_commons/${Yt.categoryId}/code_quality_analyses/group_list.json`,{method:"GET",params:{page:1,limit:200}});rt(Nt)})}const Fu=[{title:"\u5206\u73ED\u60C5\u51B5",dataIndex:"name"},{title:"\u6709\u6548\u4F5C\u54C1\u6570",dataIndex:"works_count"},{title:"\u68C0\u6D4B\u8FDB\u5EA6",dataIndex:"status"},{title:"\u4E0A\u6B21\u8BC4\u5206\u65F6\u95F4",dataIndex:"last_analysis_time"}];return e.createElement(e.Fragment,null,e.createElement(y.default,{centered:!0,title:"\u4EE3\u7801\u8D28\u91CF\u8BC4\u5206",open:ue.actionTabs.key==="\u8D28\u91CF\u68C0\u6D4B",width:700,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>C(void 0,null,function*(){const Nt=yield(0,L.ZP)(`/api/homework_commons/${Yt.categoryId}/code_quality_analyses.json`,{method:"POST",body:{group_ids:ie}});(Nt==null?void 0:Nt.status)===0&&(D.history.replace(`/classrooms/${Yt.coursesId}/shixun_homework/${Yt.categoryId}/detail?tabs=4`),window.location.reload(),Se({type:"shixunHomeworks/setActionTabs",payload:{}}),At([]))}),onCancel:()=>{At([]),Se({type:"shixunHomeworks/setActionTabs",payload:{}})}},e.createElement(z.default,{rowSelection:{type:"checkbox",onChange:(Nt,Nu)=>{At([...Nt])},selectedRowKeys:ie,getCheckboxProps:Nt=>({disabled:Nt.status==="\u8FDB\u884C\u4E2D"||Nt.works_count===0})},rowKey:Nt=>Nt.key||Nt.id,scroll:{y:300},pagination:!1,columns:Fu,dataSource:lt==null?void 0:lt.group_list})))};var ut=(0,D.connect)(({shixunHomeworks:Be})=>({shixunHomeworks:Be}))(de),we=u(12290),N=u(78297),p=u(46474),$=Object.defineProperty,fe=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,Ct=(Be,ye,ue)=>ye in Be?$(Be,ye,{enumerable:!0,configurable:!0,writable:!0,value:ue}):Be[ye]=ue,dt=(Be,ye)=>{for(var ue in ye||(ye={}))re.call(ye,ue)&&Ct(Be,ue,ye[ue]);if(fe)for(var ue of fe(ye))Ze.call(ye,ue)&&Ct(Be,ue,ye[ue]);return Be},et=(Be,ye,ue)=>new Promise((Se,_t)=>{var Yt=ie=>{try{rt(ue.next(ie))}catch(At){_t(At)}},lt=ie=>{try{rt(ue.throw(ie))}catch(At){_t(At)}},rt=ie=>ie.done?Se(ie.value):Promise.resolve(ie.value).then(Yt,lt);rt((ue=ue.apply(Be,ye)).next())});const zt=({shixunHomeworks:Be,dispatch:ye,isShow:ue,setIsShow:Se,item:_t,coursesId:Yt,categoryId:lt})=>{const[rt,ie]=(0,e.useState)({page:1,limit:10}),[At,Eu]=(0,e.useState)([]),[Fu,Nt]=(0,e.useState)(!1);(0,e.useEffect)(()=>{ue&&Nu()},[ue]);function Nu(){return et(this,null,function*(){Nt(!0);const Xt=yield(0,L.ZP)(`/api/student_works/${_t.id}/game_details.json`,{method:"get",params:dt({},rt)});Nt(!1),Xt.status===0&&Eu(Xt==null?void 0:Xt.data)})}const bu=[{title:"\u5E8F\u53F7",dataIndex:"number",width:50,fixed:"left",ellipsis:!0,render:(Xt,Gt,ve)=>e.createElement("span",{style:{color:"#000"}},rt.limit*(rt.page-1)+ve+1)},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",key:"name",ellipsis:!0,render:(Xt,Gt,ve)=>e.createElement("span",{style:{color:"#000"}},Xt)},{title:"\u901A\u5173\u8BE6\u60C5",dataIndex:"complete_status",key:"complete_status",ellipsis:!0,width:100,render:(Xt,Gt,ve)=>e.createElement("span",null,Xt==0?"\u672A\u901A\u5173":Xt==4?"\u622A\u6B62\u540E\u901A\u5173":"\u5DF2\u901A\u5173")},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",key:"evaluate_count",width:100,ellipsis:!0,render:(Xt,Gt,ve)=>e.createElement("span",{style:{color:"#333"}},Xt)},{title:"\u5B9E\u8BAD\u8017\u65F6",dataIndex:"time_consuming",key:"time_consuming",width:120,ellipsis:!0,render:(Xt,Gt,ve)=>e.createElement("span",{style:{color:"#333"}},Xt)}];return e.createElement(e.Fragment,null,e.createElement(y.default,{centered:!0,title:"\u901A\u5173\u60C5\u51B5",open:ue,width:700,footer:null,maskClosable:!1,onCancel:()=>{rt.page=1,rt.limit=10,ie(dt({},rt)),Se(!1)}},e.createElement("div",{style:{display:"flex",justifyContent:"flex-start",alignItems:"center",marginBottom:"20px"}},e.createElement("div",{style:{maxWidth:"200px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",WebkitLineClamp:1}},e.createElement("span",{style:{color:"#666",marginRight:"10px"}},"\u5B66\u751F\u59D3\u540D"),e.createElement("span",{title:_t==null?void 0:_t.user_name,style:{color:"#232B40"}},_t==null?void 0:_t.user_name)),e.createElement("div",{style:{marginLeft:"50px",marginRight:"50px",maxWidth:"180px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",WebkitLineClamp:1}},e.createElement("span",{style:{color:"#666",marginRight:"10px"}},"\u5B66\u53F7"),e.createElement("span",{title:_t==null?void 0:_t.student_id,style:{color:"#232B40"}},(_t==null?void 0:_t.student_id)||"--")),e.createElement("div",{style:{maxWidth:"200px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",WebkitLineClamp:1}},e.createElement("span",{style:{color:"#666",marginRight:"10px"}},"\u73ED\u7EA7"),e.createElement("span",{title:_t==null?void 0:_t.group_name,style:{color:"#232B40"}},(_t==null?void 0:_t.group_name)||"--"))),e.createElement(z.default,{scroll:{y:380},columns:bu,loading:Fu,style:{marginBottom:rt.limit>(At==null?void 0:At.count)?"16px":"0"},dataSource:At.games,pagination:{size:"default",showQuickJumper:!0,showSizeChanger:!0,pageSizeOptions:["10","15","50","100","200"],hideOnSinglePage:!0,pageSize:rt.limit,current:rt.page,position:["bottomRight"],onChange:(Xt,Gt)=>{rt.page=Xt,rt.limit=Gt,ie(dt({},rt)),Nu()},total:At==null?void 0:At.count,showTotal:(Xt,Gt)=>e.createElement("span",null,"\u5171",e.createElement("span",{style:{color:"#165DFF"}}," ",Xt," "),"\u6761\u6570\u636E")}})))};var Vt=(0,D.connect)(({shixunHomeworks:Be})=>({shixunHomeworks:Be}))(zt),O=u(59301),mt=Object.defineProperty,It=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,Qt=Object.prototype.propertyIsEnumerable,su=(Be,ye,ue)=>ye in Be?mt(Be,ye,{enumerable:!0,configurable:!0,writable:!0,value:ue}):Be[ye]=ue,du=(Be,ye)=>{for(var ue in ye||(ye={}))kt.call(ye,ue)&&su(Be,ue,ye[ue]);if(It)for(var ue of It(ye))Qt.call(ye,ue)&&su(Be,ue,ye[ue]);return Be},eu=(Be,ye,ue)=>new Promise((Se,_t)=>{var Yt=ie=>{try{rt(ue.next(ie))}catch(At){_t(At)}},lt=ie=>{try{rt(ue.throw(ie))}catch(At){_t(At)}},rt=ie=>ie.done?Se(ie.value):Promise.resolve(ie.value).then(Yt,lt);rt((ue=ue.apply(Be,ye)).next())});const lu=({value:Be,placeholder:ye=""})=>{if(Be==null||Be==="")return O.createElement("span",null,ye);{const ue=Number(Be);if(ue>=80)return O.createElement("span",{style:{color:"#009C0F"}},ue);if(ue<80&&ue>=60)return O.createElement("span",{style:{color:"#FA6400"}},ue);if(ue<60)return O.createElement("span",{style:{color:"#E30000"}},ue)}},Ou=({shixunHomeworks:Be,classroomList:ye,loading:ue,dispatch:Se,setExportParams:_t,user:Yt})=>{var lt,rt,ie,At,Eu,Fu,Nt,Nu,bu,Xt,Gt,ve;const ge=(0,D.useParams)(),[Q,ke]=(0,e.useState)(du(du({},{page:1,limit:20,order:"work_score",b_order:"desc"}),ge)),[nt]=o.default.useForm(),[Rt,qe]=(0,e.useState)(),[xe,Qe]=(0,e.useState)({}),[Mt,pt]=(0,e.useState)([]),[Ue,au]=(0,e.useState)(!1),[tu,xt]=(0,e.useState)([]),[qt,Ht]=(0,e.useState)(!1),[Tu,Ju]=(0,e.useState)(),[Qu,fn]=(0,e.useState)(1),[pn,E]=(0,e.useState)(),[Yu,vn]=(0,e.useState)(),[Du,tn]=(0,e.useState)(),[Hu,Wu]=(0,e.useState)(),[fu,Xu]=(0,e.useState)(),[gn,Ot]=(0,e.useState)(!1),[Jn,Fn]=(0,e.useState)(!1),[Yn,Pn]=(0,e.useState)(),Gn=(0,D.useLocation)();(0,e.useEffect)(()=>(wu(),()=>{Qe([]),pt([])}),[Q.coursesId]),(0,e.useEffect)(()=>{var me;const $e=JSON.parse(JSON.stringify(Be.workList));!((me=$e==null?void 0:$e.student_works)!=null&&me.length)&&($e!=null&&$e.id)?($e.student_works=[du({},$e)],Qe($e)):($e!=null&&$e.id&&pt([du(du({},$e),{number:"\u6211"})]),Qe(du({},$e)))},[Be.workList]);const wu=me=>(_t(du({},Q)),Se({type:"shixunHomeworks/getWorkList",payload:Q}));(0,e.useEffect)(()=>{Se({type:"user/getUserInfo",payload:{course_id:Q.coursesId}})},[]);const ma=()=>eu(void 0,null,function*(){const me=yield(0,Fe.Uc)({categoryId:ge.categoryId});qe(me==null?void 0:me.update_score)}),Vn=()=>eu(void 0,null,function*(){Se({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6210\u7EE9\u8BA1\u7B97\u4E2D\uFF0C\u8BF7\u7A0D\u5019..."}});const me=yield(0,Fe.Vs)({categoryId:ge.categoryId});Se({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),(me==null?void 0:me.status)===0&&(s.ZP.success(me==null?void 0:me.message),wu())}),Xn=()=>{Q.page=1;const me=Object.assign({},nt.getFieldsValue());delete Q.course_group,delete Q.teacher_comment,Object.keys(me).map(function($e){var Jt;switch($e){case"task_status":me[$e].includes("all")||!me[$e].length?(delete Q.work_status,nt.setFieldsValue({task_status:"all"})):(Q.work_status=me[$e],nt.setFieldsValue({task_status:Q.work_status}));break;case"course_group_info":me[$e].includes("all")||!me[$e].length?(delete Q.course_group,nt.setFieldsValue({course_group_info:"all"})):(Q.course_group=me[$e],nt.setFieldsValue({course_group_info:Q.course_group}));break;case"teacher_comment":me[$e].includes("all")||!me[$e].length?(delete Q.teacher_comment,nt.setFieldsValue({teacher_comment:"all"})):(Q.teacher_comment=((Jt=me[$e])==null?void 0:Jt.length)===1?Number(me[$e][0]):"",nt.setFieldsValue({teacher_comment:me[$e]}));break}}),wu()};(0,e.useEffect)(()=>{document.getElementById("divhe")&&document.getElementById("divhe").scrollHeight>47&&(Xu(47),Ot(!0))},[document.getElementById("divhe")]);const qn=(me,$e)=>{Q.page=me,Q.limit=20,wu()};function ln(){fn(1),E(""),vn(""),tn(""),Wu(""),xt([])}const Ft=[{title:"\u5E8F\u53F7",dataIndex:"number",align:"center",width:50,fixed:"left",ellipsis:!0,render:(me,$e,Jt)=>Q.limit*(Q.page-1)+Jt+1},{title:"\u59D3\u540D",dataIndex:"user_name",align:"center",width:110,fixed:"left",ellipsis:!0,render:me=>O.createElement(i.Z,{placement:"bottomLeft",title:me},O.createElement("span",{className:"current"},me))},!(0,M.Jd)()&&{title:"\u5B66\u53F7",dataIndex:"student_id",align:"center",sorter:!0,fixed:"left",width:100,ellipsis:!0,showSorterTooltip:!1,sortOrder:Q.order==="student_id"?Q.b_order==="desc"?"descend":"ascend":null,render:me=>O.createElement(i.Z,{placement:"bottomLeft",title:me||"--"},O.createElement("span",{className:"current"},me||"--"))},{title:"\u5206\u73ED",dataIndex:"group_name",align:"center",width:100,fixed:"left",ellipsis:!0,render:(me,$e)=>me?O.createElement(i.Z,{placement:"bottom",title:me},O.createElement("span",{className:"current"},me)):"--"},{title:"\u4F5C\u4E1A\u72B6\u6001",dataIndex:"work_status",align:"center",width:94,ellipsis:!0,fixed:"left",sorter:!0,showSorterTooltip:!1,sortOrder:Q.order==="work_status"?Q.b_order==="desc"?"descend":"ascend":null,render:me=>O.createElement(g.lC,{status:me})},{title:"\u5B8C\u6210\u65F6\u95F4",align:"center",dataIndex:"achieve_time",ellipsis:!0,sorter:!0,sortOrder:Q.order==="achieve_time"?Q.b_order==="desc"?"descend":"ascend":null,render:(me,$e)=>O.createElement(i.Z,{placement:"bottomLeft",title:me},O.createElement("span",{className:"current"},me))},{title:"\u901A\u8FC7\u60C5\u51B5",align:"center",dataIndex:"achieve_info",ellipsis:!0,render:(me,$e)=>O.createElement("span",{onClick:Jt=>{var hu;Jt.stopPropagation(),(hu=xe.homework_status)!=null&&hu.includes("\u5BFC\u5165")&&(Pn($e),Fn(!0))}},me||"- -")},{title:"\u6700\u7EC8\u6210\u7EE9",align:"center",dataIndex:"score",ellipsis:!0,sorter:!0,sortOrder:Q.order==="work_score"?Q.b_order==="desc"?"descend":"ascend":null,render:(me,$e)=>O.createElement(i.Z,{title:O.createElement(O.Fragment,null,O.createElement("div",null,"\u8BD5\u9898\u5F97\u5206\uFF1A",($e==null?void 0:$e.late_final_score)||0),O.createElement("div",null,"\u8865\u4EA4\u6263\u5206\uFF1A",($e==null?void 0:$e.late_penalty)||0),O.createElement("div",null,"\u6700\u7EC8\u6210\u7EE9\uFF1A",($e==null?void 0:$e.score)||0))},lu({value:me,placeholder:"- -"}))},{title:"\u5B8C\u6210\u65F6\u957F",dataIndex:"achieve_time_long",align:"center",sorter:!0,ellipsis:!0,sortOrder:Q.order==="achieve_time_long"?Q.b_order==="desc"?"descend":"ascend":null,render:(me,$e)=>me&&me!="--"?O.createElement(i.Z,{placement:"bottom",title:me},O.createElement("span",{className:"current"},me)):"--"},((lt=xe.homework_status)==null?void 0:lt.includes("\u5BFC\u5165"))&&{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"sum_evaluate_count",align:"center"},!((rt=xe.homework_status)!=null&&rt.includes("\u5BFC\u5165"))&&{title:O.createElement("span",null,"\u8BC4\u9605\u72B6\u6001"),align:"center",dataIndex:"has_comment",fixed:"right",ellipsis:!0,render:me=>me?"\u5DF2\u8BC4\u9605":"\u672A\u8BC4\u9605"},{title:"\u64CD\u4F5C",dataInex:"action",align:"center",fixed:"right",ellipsis:!0,className:"workListTable",render:(me,$e)=>{var Jt;return(Jt=xe.homework_status)!=null&&Jt.includes("\u5BFC\u5165")?(0,M.GJ)()?O.createElement("a",{onClick:hu=>{hu.stopPropagation(),Se({type:"classroomList/setActionTabs",payload:{key:"\u4FEE\u6539\u6210\u7EE9",id:$e==null?void 0:$e.id,type:"normal"}})}},"\u4FEE\u6539\u6210\u7EE9"):O.createElement("a",{onClick:hu=>{hu.stopPropagation(),Pn($e),Fn(!0)}},"\u67E5\u770B"):(0,M.dE)()?O.createElement("div",null,(0,g.JL)($e==null?void 0:$e.work_status)==="\u672A\u5F00\u542F"?O.createElement("span",null,"--"):O.createElement("a",{onClick:hu=>{var Gu;if(hu.stopPropagation(),(0,M.Rm)()&&!((Gu=ye.AssistantObject.hack)!=null&&Gu.can_view)){s.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}window.open(`/classrooms/${Q.coursesId}/program_homework/${Q.categoryId}/${$e.id}/${$e.user_id}/comment`,"_blank")}},"\u67E5\u770B")):O.createElement("a",{target:"_blank",onClick:hu=>{var Gu,rn;if(hu.stopPropagation(),(0,M.Rm)()&&!((Gu=ye.AssistantObject.hack)!=null&&Gu.can_view)){s.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}if((rn=Yt.userInfo)!=null&&rn.professional_certification)window.open(`/classrooms/${Q.coursesId}/program_homework/${Q.categoryId}/${$e.id}/${$e.user_id}/comment`,"_blank");else return y.default.confirm({title:"\u63D0\u793A",centered:!0,content:O.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,g.xg)("/account/certification")}}),!1}},"\u67E5\u770B\u4F5C\u4E1A")}}].filter(me=>!!me),Zt=()=>{var me,$e;return O.createElement(P.default,null,O.createElement(P.default.Item,{onClick:()=>{var Jt;if((0,M.Rm)()&&!((Jt=ye.AssistantObject.hack)!=null&&Jt.can_download)){s.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Se({type:"classroomList/setActionTabs",payload:{key:"\u9009\u62E9\u73ED\u7EA7",title:"\u5BFC\u51FA\u5B66\u751F\u6210\u7EE9",course_groups:xe==null?void 0:xe.course_group_info,fn:()=>{(0,N.Iy)(JSON.parse(sessionStorage.all_student_works_params),"hack_work_list")}}})},key:"1"},"\u5B66\u751F\u6210\u7EE9"),(0,M.GJ)()&&((me=xe==null?void 0:xe.student_works)==null?void 0:me.length)>0&&!(($e=xe==null?void 0:xe.homework_status)!=null&&$e.includes("\u5BFC\u5165"))&&O.createElement(P.default.Item,{key:"3",onClick:()=>{var Jt;if((0,M.Rm)()&&!((Jt=ye.AssistantObject.hack)!=null&&Jt.can_download)){s.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Se({type:"classroomList/setActionTabs",payload:{key:"\u9009\u62E9\u73ED\u7EA7",title:"\u5BFC\u51FA\u7F16\u7A0B\u62A5\u544A",course_groups:xe==null?void 0:xe.course_group_info,fn:()=>{var hu,Gu,rn,Bn;Se({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5BFC\u51FA\u7F16\u7A0B\u62A5\u544A",type:2}}),localStorage.setItem("dowolders","1"),D.history.push(`/classrooms/${Q==null?void 0:Q.coursesId}/program_homework/${Q.categoryId}/${(Gu=(hu=xe==null?void 0:xe.student_works)==null?void 0:hu[0])==null?void 0:Gu.id}/${(Bn=(rn=xe==null?void 0:xe.student_works)==null?void 0:rn[0])==null?void 0:Bn.user_id}/comment`)}}})}},"\u7F16\u7A0B\u62A5\u544A"),O.createElement(P.default.Item,{key:"2",onClick:()=>{var Jt;if((0,M.Rm)()&&!((Jt=ye.AssistantObject.hack)!=null&&Jt.can_download)){s.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}D.history.push(`/classrooms/${Q.coursesId}/exportlist/hack_work_list`)}},"\u5386\u53F2\u5BFC\u51FA"))};return O.createElement(O.Fragment,null,O.createElement("section",{className:`${r.wrap} minH500 bg-white pl30 pr30 pt30`},((ie=xe.homework_status)==null?void 0:ie.includes("\u672A\u53D1\u5E03"))&&O.createElement(k.Z,null),!((At=xe.homework_status)!=null&&At.includes("\u672A\u53D1\u5E03"))&&O.createElement("aside",null,!(0,M.GJ)()&&O.createElement("div",{className:"c-light-black font12"},O.createElement("span",null,"\u53D1\u5E03\u65F6\u95F4 ",xe==null?void 0:xe.publish_time),O.createElement("span",{className:"ml5"},"\u622A\u6B62\u65F6\u95F4 ",xe==null?void 0:xe.end_time),O.createElement("span",{className:"ml5"},"\u8865\u4EA4\u65F6\u95F4 ",(xe==null?void 0:xe.late_time)||"- -")),(0,M.GJ)()&&O.createElement(O.Fragment,null,O.createElement(o.default,{form:nt,onChange:Xn,initialValues:{task_status:"all",course_group_info:"all",teacher_comment:"all"}},((Eu=xe.task_status)==null?void 0:Eu.length)>0&&O.createElement(o.default.Item,{name:"task_status"},O.createElement(G.default.Group,{value:[],style:{width:"100%"}},O.createElement(R.Z,null,O.createElement(H.Z,{className:"font14",flex:"80px"},"\u4F5C\u4E1A\u72B6\u6001:"),O.createElement(H.Z,{flex:"80px"},O.createElement(G.default,{value:"all"},"\u5168\u90E8")),O.createElement(H.Z,{flex:"1"},xe.task_status&&xe.task_status.map((me,$e)=>O.createElement(G.default,{name:"task_status",value:me.id},me.name,"(",me.count,")")))))),((Fu=xe.course_group_info)==null?void 0:Fu.length)>0&&O.createElement(o.default.Item,{name:"course_group_info"},O.createElement(G.default.Group,{style:{width:"100%"}},O.createElement(R.Z,null,O.createElement(H.Z,{className:"font14",flex:"80px"},"\u5206\u73ED\u60C5\u51B5:"),O.createElement(H.Z,{flex:"80px"},O.createElement(G.default,{value:"all"},"\u5168\u90E8")),O.createElement(H.Z,{flex:"1",id:"divhe",style:{height:fu+"px",overflow:"hidden"}},(Nt=xe.course_group_info)==null?void 0:Nt.map((me,$e)=>O.createElement(G.default,{value:me.course_group_id},me.group_group_name,"(",me.count,")"))),gn&&O.createElement("span",{onClick:()=>{let me=document.getElementById("divhe").scrollHeight;fu>47?Xu(47):Xu(me)},style:{color:"rgb(76, 172, 255)",cursor:"pointer",alignItems:"flex-end",display:"flex"}},fu===47?"\u5C55\u5F00":"\u6536\u8D77",fu===47?O.createElement(_.Z,{style:{marginBottom:"3px",marginLeft:"2px"}}):O.createElement(Y.Z,{style:{marginBottom:"3px",marginLeft:"2px"}}))))),((Nu=xe.teacher_comment)==null?void 0:Nu.length)>0&&O.createElement(o.default.Item,{name:"teacher_comment"},O.createElement(G.default.Group,{style:{width:"100%"}},O.createElement(R.Z,null,O.createElement(H.Z,{className:"font14",flex:"80px"},"\u8FFD\u52A0\u70B9\u8BC4:"),O.createElement(H.Z,{flex:"80px"},O.createElement(G.default,{value:"all"},"\u5168\u90E8")),O.createElement(H.Z,{flex:"1"},xe.teacher_comment&&xe.teacher_comment.map((me,$e)=>O.createElement(G.default,{value:String(me.id)},me.name,"(",me.count,")"))))))),O.createElement(R.Z,{align:"middle"},O.createElement(H.Z,{flex:"1"},O.createElement(R.Z,{align:"middle"},O.createElement(H.Z,null,O.createElement(j.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",onSearch:me=>{Q.search=me.trim(),Q.page=1,wu()},style:{width:240}})),O.createElement(H.Z,null,O.createElement("span",{className:"ml5"},O.createElement("span",{className:"c-red"},xe.work_count),"\u4E2A\u68C0\u7D22\u7ED3\u679C\uFF08",xe.work_count,"\u4E2A\u5B66\u751F\uFF09")))),O.createElement(H.Z,null,(0,M.GJ)()&&!((bu=xe.homework_status)!=null&&bu.includes("\u5BFC\u5165"))&&O.createElement(v.ZP,{className:"ml10",onClick:()=>{Se({type:"shixunHomeworks/setActionTabs",payload:{key:"\u4EE3\u7801\u67E5\u91CD",selectArrs:xe.student_works.map(me=>me.id),params:Q}})}},O.createElement("span",{className:`${r.tr1} iconfont icon-daimachazhong`}),"\u4EE3\u7801\u67E5\u91CD"),(0,M.GJ)()&&!((Xt=xe.homework_status)!=null&&Xt.includes("\u5BFC\u5165"))&&O.createElement(v.ZP,{className:"ml10",onClick:Vn},O.createElement("i",{className:"iconfont icon-gengxinchengji font14 pr5"}),"\u66F4\u65B0\u6210\u7EE9"),(0,M.GJ)()&&O.createElement(A.Z,{dropdownRender:Zt,className:"ml10"},O.createElement(v.ZP,null,O.createElement(c.Z,null),"\u5BFC\u51FA",O.createElement(F.Z,null)))))),O.createElement(R.Z,{style:{justifyContent:"end",marginTop:"5px"}},(0,M.GJ)()&&Rt&&O.createElement("span",null,O.createElement("span",{style:{color:"red"}},"*"),"\u5217\u8868\u4E2D\u4F5C\u4E1A\u8BB0\u5F55\u5B58\u5728\u5DEE\u5F02\uFF0C\u8BF7\u70B9\u51FB\u201C\u66F4\u65B0\u6210\u7EE9\u201D\u6309\u94AE")),O.createElement(z.default,{className:`mt30 ${r.TableDom}`,loading:ue["shixunHomeworks/getWorkList"],pagination:!1,style:{cursor:"pointer"},onRow:me=>({onClick:$e=>{var Jt,hu;if(!((Jt=xe.homework_status)!=null&&Jt.includes("\u5BFC\u5165"))){if((0,M.Rm)()&&!((hu=ye.AssistantObject.hack)!=null&&hu.can_view)){s.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}(0,p.O5)()&&window.open(`/classrooms/${Q.coursesId}/program_homework/${Q.categoryId}/${me.id}/${me.user_id}/comment`,"_blank")}}}),scroll:{x:1200},dataSource:xe.student_works,columns:Ft,onChange:(me,$e,Jt)=>{Jt.field&&(Q.order=Jt.field==="score"?"work_score":Jt.field),Jt.order||(Q.b_order="asc"),Jt.order==="ascend"&&(Q.b_order="asc"),Jt.order==="descend"&&(Q.b_order="desc"),Jt.order||(Q.b_order="asc"),wu()}}),O.createElement(f,null),O.createElement(ze,null),O.createElement(T.Z,null)),O.createElement(y.default,{title:"\u4E00\u952E\u6253\u56DE\u91CD\u505A",open:Ue,centered:!0,destroyOnClose:!0,forceRender:!0,width:700,onOk:()=>eu(void 0,null,function*(){if(Qu===2){if(tu.length<=0){s.ZP.info("\u8BF7\u9009\u62E9\u4F5C\u4E1A\u72B6\u6001");return}if(!Hu){s.ZP.info("\u8BC4\u8BED\u4E0D\u80FD\u4E3A\u7A7A");return}let me=yield(0,L.ZP)(`/api/homework_commons/${Q.categoryId}/confirm_redo_modal.json`,{method:"post",body:{id:Q.categoryId,comment:Hu,status:tu}});me.status===0&&(Ju(me),au(!1),Ht(!0))}else{if(!(Du===0||Yu===0)){if(!Du){s.ZP.info("\u6700\u4F4E\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}if(!Yu){s.ZP.info("\u6700\u9AD8\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}}if(Du>Yu){s.ZP.info("\u6700\u9AD8\u5206\u4E0D\u80FD\u5927\u4E8E\u6700\u4F4E\u5206");return}if(!Hu){s.ZP.info("\u8BC4\u8BED\u4E0D\u80FD\u4E3A\u7A7A");return}let me=yield(0,L.ZP)(`/api/homework_commons/${Q.categoryId}/confirm_redo_modal.json`,{method:"post",body:{id:Q.categoryId,comment:Hu,min_score:Du,max_score:Yu}});me.status===0&&(Ju(me),au(!1),Ht(!0))}}),onCancel:()=>{au(!1),ln()}},O.createElement("div",{style:{padding:"32px"}},O.createElement("div",null,O.createElement("div",null,O.createElement("span",{style:{width:"80px"}},"\u6253\u56DE\u65B9\u5F0F\uFF1A"),O.createElement(V.ZP.Group,{value:Qu,onChange:me=>{fn(me.target.value)}},O.createElement(V.ZP,{value:1},"\u6309\u6210\u7EE9\u6253\u56DE"),O.createElement(V.ZP,{value:2},"\u6309\u4F5C\u4E1A\u72B6\u6001\u6253\u56DE"))),Qu===1&&O.createElement("div",{style:{display:"flex",marginTop:"20px"}},O.createElement("span",{style:{width:"70px",textAlign:"end"}},O.createElement("span",{style:{color:"red"}},"*"),"\u6700\u4F4E\u5206\uFF1A"),O.createElement(d.Z,{min:0,max:100,value:Du,onChange:me=>tn(me),style:{width:"100px"}}),O.createElement("span",{style:{width:"80px",textAlign:"end"}},O.createElement("span",{style:{color:"red"}},"*"),"\u6700\u9AD8\u5206\uFF1A"),O.createElement(d.Z,{min:0,max:100,value:Yu,onChange:me=>vn(me),style:{width:"100px"}})),Qu===2&&O.createElement("div",{style:{display:"flex",marginTop:"20px"}},O.createElement("span",{style:{width:"80px"}},"\u4F5C\u4E1A\u72B6\u6001\uFF1A"),O.createElement(G.default.Group,{onChange:me=>{xt([...me])},style:{width:"100%"}},(Gt=xe.task_status)==null?void 0:Gt.map((me,$e)=>O.createElement(G.default,{name:"task_status",value:me.id},me.name,"(",me.count,")")))),O.createElement("div",{style:{display:"flex",marginTop:"20px"}},O.createElement("span",{style:{width:"70px",textAlign:"end"}},O.createElement("span",{style:{color:"red"}},"*")," \u8BC4\u8BED\uFF1A"),O.createElement(we.Z,{className:r.MdEditor,onChange:me=>Wu(me),placeholder:"\u8BF7\u586B\u5199\u8BC4\u8BED"}))))),O.createElement(y.default,{open:qt,title:"\u6253\u56DE\u786E\u8BA4",onOk:()=>eu(void 0,null,function*(){Qu===2?(yield(0,L.ZP)(`/api/homework_commons/${Q.categoryId}/batch_redo_modal.json`,{method:"post",body:{id:Q.categoryId,comment:Hu,status:tu}})).status===0&&(s.ZP.info("\u6253\u56DE\u6210\u529F"),ln(),wu(),Ht(!1)):(yield(0,L.ZP)(`/api/homework_commons/${Q.categoryId}/batch_redo_modal.json`,{method:"post",body:{id:Q.categoryId,comment:Hu,min_score:Du,max_score:Yu}})).status===0&&(s.ZP.info("\u6253\u56DE\u6210\u529F"),ln(),wu(),Ht(!1))}),onCancel:()=>{ln(),Ht(!1)}},O.createElement("div",{style:{padding:"32px"}},Qu===1&&O.createElement("span",null,"\u786E\u8BA4\u5C06\u6210\u7EE9\u5728",Du,"-",Yu,"\u7684\u5B66\u751F\u8FDB\u884C\u6253\u56DE\u91CD\u505A\u5417\uFF1F"),Qu===2&&O.createElement("span",null,"\u786E\u8BA4\u5C06\u4F5C\u4E1A\u72B6\u6001\u4E3A",((ve=xe.task_status)==null?void 0:ve.filter(me=>tu==null?void 0:tu.includes(me.id)).map(me=>me.name).toString())+",","\u7684\u5B66\u751F\u8FDB\u884C\u4F5C\u4E1A\u6253\u56DE\u91CD\u505A\u5417\uFF1F"),O.createElement("br",null),O.createElement("span",null,"\u8BE5\u6761\u4EF6\u4E0B\u5171\u6709",Tu==null?void 0:Tu.count,"\u540D\u5B66\u751F")))),O.createElement(ut,null),O.createElement(Vt,{isShow:Jn,setIsShow:Fn,item:Yn,coursesId:Q.coursesId,categoryId:Q.categoryId}),O.createElement("aside",{className:"tc mb50 mt30"},O.createElement(m.Z,{showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!1,onChange:qn,current:Q.page||1,defaultPageSize:20,total:xe.work_count})))};var ku=(0,D.connect)(({shixunHomeworks:Be,classroomList:ye,loading:ue,user:Se})=>({shixunHomeworks:Be,classroomList:ye,loading:ue.effects,user:Se}))(Ou)},33118:function(at,X,u){"use strict";u.d(X,{mU:function(){return oe},Q_:function(){return f},ZP:function(){return M}});var e=u(59301),o=u(93948),s=u(6848),i=u(95237),y=u(43604),P=u(1710),G={analysisWrapper:"analysisWrapper___vy_V8",title:"title___tQAzn",tableWrapper:"tableWrapper___ztB9P",firstCol:"firstCol___Itr68",itemWrapper:"itemWrapper___Jaw8O",itemTitle:"itemTitle___gmKyn",count:"count___MUY3o",echarts_list:"echarts_list___RNu3g",echarts_item:"echarts_item___ZHo0B",tips:"tips___k4pHA"},R=u(99064),H=u(89070),j=u(41069),v=u(43418),A=u(57809),z=u(85057),V=u(955),d=Object.defineProperty,m=Object.getOwnPropertySymbols,_=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,c=(r,se,a)=>se in r?d(r,se,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[se]=a,F=(r,se)=>{for(var a in se||(se={}))_.call(se,a)&&c(r,a,se[a]);if(m)for(var a of m(se))Y.call(se,a)&&c(r,a,se[a]);return r},k=(r,se,a)=>new Promise((De,Re)=>{var tt=Ke=>{try{ze(a.next(Ke))}catch(ft){Re(ft)}},ot=Ke=>{try{ze(a.throw(Ke))}catch(ft){Re(ft)}},ze=Ke=>Ke.done?De(Ke.value):Promise.resolve(Ke.value).then(tt,ot);ze((a=a.apply(r,se)).next())});const g=({shixunHomeworks:r,dispatch:se,isShow:a,setIsShow:De,item:Re,courseId:tt,categoryId:ot})=>{const[ze,Ke]=(0,e.useState)({page:1,limit:10,keyword:"",type:null}),[ft,Xe]=(0,e.useState)([]),[Me,C]=(0,e.useState)(!1),[de,ut]=(0,e.useState)(1);(0,e.useEffect)(()=>{a&&we()},[a,ze.type]);function we(){return k(this,null,function*(){C(!0);const p=yield(0,R.ZP)(`/api/homework_commons/${ot}/shixun_game_statisic.json`,{method:"get",params:{challenge_id:Re.id,id:ot,type:ze.type,page:ze.page,limit:ze.limit,keyword:ze.keyword}});C(!1),p.status===0&&Xe(p==null?void 0:p.data)})}const N=[{title:"\u5E8F\u53F7",dataIndex:"number",width:50,fixed:"left",ellipsis:!0,render:(p,$,fe)=>e.createElement("span",{style:{color:"#000"}},ze.limit*(ze.page-1)+fe+1)},{title:"\u5B66\u751F\u59D3\u540D",dataIndex:"name",key:"name",ellipsis:!0,render:(p,$,fe)=>e.createElement("span",{style:{color:"#3061D0",cursor:"pointer"},onClick:()=>{(0,V.xg)(`/classrooms/${tt}/shixun_homework/${ot}/${$.student_work_id}/comment`)}},p)},{title:"\u5B66\u53F7",dataIndex:"student_id",key:"student_id",ellipsis:!0,render:(p,$,fe)=>e.createElement("span",{style:{color:"#333"}},p)},{title:"\u73ED\u7EA7",dataIndex:"group_name",key:"group_name",ellipsis:!0,render:(p,$,fe)=>e.createElement("span",{style:{color:"#333"}},p)},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",key:"evaluate_count",ellipsis:!0,render:(p,$,fe)=>e.createElement("span",{style:{color:"#333"}},p)},{title:"\u5B9E\u8BAD\u8017\u65F6",dataIndex:"time_consuming",key:"time_consuming",ellipsis:!0,render:(p,$,fe)=>e.createElement("span",{style:{color:"#333"}},p)},{title:"\u901A\u5173\u60C5\u51B5",dataIndex:"complete_status",key:"complete_status",ellipsis:!0,render:(p,$,fe)=>e.createElement("span",null,p==2?"\u5DF2\u901A\u5173":"\u672A\u901A\u5173")}];return e.createElement(e.Fragment,null,e.createElement(v.default,{centered:!0,title:"\u5173\u5361\u901A\u5173\u8BE6\u60C5",open:a,width:900,footer:null,maskClosable:!1,onCancel:()=>{ze.keyword="",ze.page=1,ze.limit=10,ze.type=null,Ke(F({},ze)),De(!1)}},e.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"20px"}},e.createElement("div",{style:{color:"#333",marginRight:"20px",wordBreak:"break-all",textOverflow:"ellipsis",overflow:"hidden",WebkitLineClamp:2,display:"-webkit-box",WebkitBoxOrient:"vertical"}},"\u5173\u5361",Re==null?void 0:Re.index," ",e.createElement(s.Z,{title:Re==null?void 0:Re.subject},e.createElement("span",null,Re==null?void 0:Re.subject))),e.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end"}},e.createElement("div",null,e.createElement(A.default,{size:"large",value:ze.type,onChange:p=>k(void 0,null,function*(){ze.type=p,Ke(F({},ze)),we()}),style:{width:140,marginRight:20}},e.createElement(A.default.Option,{value:null},"\u5168\u90E8"),e.createElement(A.default.Option,{value:1},"\u672A\u901A\u5173"),e.createElement(A.default.Option,{value:2},"\u5DF2\u901A\u5173"))),e.createElement("div",null,e.createElement(z.t7,{style:{width:220},placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D/\u5B66\u53F7\u641C\u7D22",value:ze.keyword,onChange:p=>{ze.keyword=p,ze.page=1,Ke(F({},ze)),we()}})))),e.createElement(P.default,{scroll:{y:380},columns:N,loading:Me,dataSource:ft.users,pagination:{size:"default",showQuickJumper:!0,showSizeChanger:!0,pageSizeOptions:["10","15","50","100","200"],pageSize:ze.limit,current:ze.page,position:["bottomRight"],onChange:(p,$)=>{ze.page=p,ze.limit=$,Ke(F({},ze)),we()},total:ft==null?void 0:ft.count,showTotal:(p,$)=>e.createElement("span",null,"\u5171",e.createElement("span",{style:{color:"#165DFF"}}," ",p," "),"\u6761\u6570\u636E")}})))};var T=(0,H.connect)(({shixunHomeworks:r})=>({shixunHomeworks:r}))(g),x=u(6021),L=Object.defineProperty,D=Object.defineProperties,te=Object.getOwnPropertyDescriptors,Z=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,w=(r,se,a)=>se in r?L(r,se,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[se]=a,Ee=(r,se)=>{for(var a in se||(se={}))Ae.call(se,a)&&w(r,a,se[a]);if(Z)for(var a of Z(se))he.call(se,a)&&w(r,a,se[a]);return r},B=(r,se)=>D(r,te(se)),S=(r,se,a)=>new Promise((De,Re)=>{var tt=Ke=>{try{ze(a.next(Ke))}catch(ft){Re(ft)}},ot=Ke=>{try{ze(a.throw(Ke))}catch(ft){Re(ft)}},ze=Ke=>Ke.done?De(Ke.value):Promise.resolve(Ke.value).then(tt,ot);ze((a=a.apply(r,se)).next())});const oe=({title:r,strokeColor:se,trailColor:a,percent:De,count:Re})=>e.createElement("div",{className:G.itemWrapper},e.createElement("div",{className:G.itemTitle},r),e.createElement(o.Z,{percent:De,strokeColor:se,trailColor:a}),e.createElement("div",{className:G.count},Re,"\u4EBA")),f=(r,se)=>{const a=`${(se/r*100).toFixed(1)}`;return a==="0.0"?0:a};var M=()=>{const[r,se]=(0,e.useState)(),a=(0,H.useParams)(),[De,Re]=(0,e.useState)(!1),[tt,ot]=(0,e.useState)(),[ze,Ke]=(0,e.useState)(),[ft,Xe]=(0,e.useState)(!1),[Me,C]=(0,e.useState)({page:1,limit:10});(0,e.useEffect)(()=>{(0,R.ZP)(`/api/homework_commons/${a.categoryId}/statistic.json`,{method:"GET"}).then(N=>{se(N)}),we()},[]);const de=[{title:"\u6309\u65F6\u901A\u5173",color:"#00AE87",trailColor:"#e5f6f3",percent:f(r==null?void 0:r.total_count,r==null?void 0:r.finished_count),count:r==null?void 0:r.finished_count},{title:"\u8865\u4EA4\u901A\u5173",color:"#2271FF",trailColor:"#e7f0ff",percent:f(r==null?void 0:r.total_count,r==null?void 0:r.late_finished_count),count:r==null?void 0:r.late_finished_count},{title:"\u672A\u901A\u5173",color:"#E53333",trailColor:"#fceaea",percent:f(r==null?void 0:r.total_count,r==null?void 0:r.unfinished_count),count:r==null?void 0:r.unfinished_count},{title:"\u672A\u5F00\u542F",color:"#C6CED6",trailColor:"#f6f7f8",percent:f(r==null?void 0:r.total_count,r==null?void 0:r.unstart_count),count:r==null?void 0:r.unstart_count}],ut=[{title:"\u5E8F\u53F7",dataIndex:"number",width:80,fixed:"left",ellipsis:!0,render:(N,p,$)=>e.createElement("span",{style:{color:"#333"}},Me.limit*(Me.page-1)+$+1)},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"subject",key:"subject",ellipsis:!0,render:(N,p,$)=>e.createElement("span",{style:{color:"#000"}},N)},{title:"\u5DF2\u901A\u5173",width:120,dataIndex:"completed_sum",key:"completed_sum",ellipsis:!0,render:(N,p,$)=>e.createElement("span",{style:{color:"#333"}},N," \u4EBA")},{title:"\u672A\u901A\u5173",width:120,dataIndex:"uncompleted_sum",key:"uncompleted_sum",ellipsis:!0,render:(N,p,$)=>e.createElement("span",{style:{color:"#333"}},N," \u4EBA")},{title:"\u603B\u8BC4\u6D4B\u6B21\u6570",width:120,dataIndex:"evaluation_total",key:"evaluation_total",ellipsis:!0,render:(N,p,$)=>e.createElement("span",{style:{color:"#333"}},N," \u6B21")},{title:e.createElement("span",null,"\u901A\u5173\u7387",e.createElement(s.Z,{title:"\u901A\u5173\u7387=\u901A\u8FC7\u8BC4\u6D4B\u7684\u4EBA\u6570/\u4F5C\u4E1A\u53D1\u5E03\u4EBA\u6570"},e.createElement("span",{className:G.tips},e.createElement("i",{className:"iconfont icon-a-wenhaobeifen2"})))),dataIndex:"passed_rate",key:"passed_rate",width:120,ellipsis:!0,render:(N,p,$)=>e.createElement("span",{style:{color:"#000"}},N,N?"%":"")},{title:"\u64CD\u4F5C",dataIndex:"action",key:"action",align:"right",ellipsis:!0,width:100,render:(N,p,$)=>e.createElement("a",{style:{color:"#165DFF"},onClick:fe=>{fe.stopPropagation(),Ke(B(Ee({},p),{index:Me.limit*(Me.page-1)+$+1})),Xe(!0)}},"\u67E5\u770B")}];function we(){return S(this,null,function*(){Re(!0);const N=yield(0,R.ZP)(`/api/homework_commons/${a.categoryId}/shixun_challenge_statisic.json`,{method:"get",params:{page:Me.page,limit:Me.limit}});Re(!1),N.status===0&&ot(N==null?void 0:N.data)})}return e.createElement("div",{className:G.analysisWrapper},e.createElement("div",{className:`${G.title} mb20`},"\u4F5C\u4E1A\u5B8C\u6210\u60C5\u51B5"),e.createElement("div",{className:"mb20"},"\u5E94\u63D0\u4EA4",r==null?void 0:r.total_count,"\u4EBA\uFF0C\u6309\u65F6\u901A\u5173",r==null?void 0:r.finished_count,"\u4EBA\uFF0C\u5360\u6BD4",f(r==null?void 0:r.total_count,r==null?void 0:r.finished_count),"\uFF1B \u8865\u4EA4\u901A\u5173",r==null?void 0:r.late_finished_count,"\u4EBA\uFF0C\u5360\u6BD4",f(r==null?void 0:r.total_count,r==null?void 0:r.late_finished_count),"\uFF1B \u672A\u901A\u5173",r==null?void 0:r.unfinished_count,"\u4EBA\uFF0C\u5360\u6BD4",f(r==null?void 0:r.total_count,r==null?void 0:r.unfinished_count),"\uFF1B \u672A\u5F00\u542F",r==null?void 0:r.unstart_count,"\u4EBA\uFF0C\u5360\u6BD4",f(r==null?void 0:r.total_count,r==null?void 0:r.unstart_count)),e.createElement(i.Z,{justify:"space-between",className:"mb30"},de.map(N=>e.createElement(y.Z,{flex:"212px",key:N.title},e.createElement(oe,{title:N.title,strokeColor:N.color,trailColor:N.trailColor,percent:parseInt(N.percent),count:N.count})))),e.createElement("div",{className:`${G.title} mb20`},e.createElement("div",null,"\u901A\u5173\u60C5\u51B5"),e.createElement("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"flex-end"}},e.createElement(x.Z,{type:"primary",onClick:()=>S(void 0,null,function*(){(yield(0,R.ZP)(`/api/homework_commons/${a==null?void 0:a.categoryId}/export_challenge_statistic.json`,{method:"get"})).status==0&&(0,V.xg)(`/classrooms/${a==null?void 0:a.coursesId}/exportlist/shixun_work_list`)})},"\u5BFC\u51FA\u901A\u5173\u60C5\u51B5"))),e.createElement(P.default,{scroll:{y:490},columns:ut,loading:De,className:(tt==null?void 0:tt.count){Me.page=N,Me.limit=p,C(Ee({},Me)),we()},total:tt==null?void 0:tt.count,showTotal:(N,p)=>e.createElement("span",null,"\u5171",e.createElement("span",{style:{color:"#165DFF"}}," ",N," "),"\u6761\u6570\u636E")}}),e.createElement("div",{className:`${G.title} mb20`},"\u4EE3\u7801\u67E5\u91CD\u60C5\u51B5"),e.createElement("div",{className:"mb20"},"\u7591\u4F3C\u6284\u88AD\u4EBA\u6570",r==null?void 0:r.review_total_count,"\u4EBA\uFF0C\u4EE3\u7801\u91CD\u5408100%\u4EBA\u6570",r==null?void 0:r.first_review_count,"\u4EBA\uFF1B\u4EE3\u7801\u91CD\u540890%\uFF5E100%\u4EBA\u6570",r==null?void 0:r.second_review_count,"\u4EBA\uFF1B\u4EE3\u7801\u91CD\u540880%\uFF5E90%\u4EBA\u6570",r==null?void 0:r.third_review_count,"\u4EBA\uFF1B\u4EE3\u7801\u91CD\u540870%\uFF5E80%\u4EBA\u6570",r==null?void 0:r.fourth_review_count,"\u4EBA\u3002"),e.createElement(P.default,{bordered:!0,className:`${G.tableWrapper} mb30`,columns:[{title:"\u4EE3\u7801\u91CD\u5408\u7387",align:"center",className:G.firstCol,render:()=>e.createElement("span",null,"\u5360\u6BD4")},{title:"100%",align:"center",dataIndex:"a"},{title:"90%-100%",align:"center",dataIndex:"b"},{title:"80%-90%",align:"center",dataIndex:"c"},{title:"70%-80%",align:"center",dataIndex:"d"}],dataSource:[{a:`${r==null?void 0:r.first_review_count}\u4EBA`,b:`${r==null?void 0:r.second_review_count}\u4EBA`,c:`${r==null?void 0:r.third_review_count}\u4EBA`,d:`${r==null?void 0:r.fourth_review_count}\u4EBA`,index:0}],rowKey:"index",pagination:!1}),e.createElement(j.ZP,{title:"\u5B9E\u8BAD\u884C\u4E3A\u5206\u6790\u7EDF\u8BA1",data:(0,j.Uf)(r)}),e.createElement(T,{courseId:a.coursesId,item:ze,isShow:ft,setIsShow:Xe,categoryId:a.categoryId}))}},68971:function(at,X,u){"use strict";var e=u(43418),o=u(8591),s=u(99064),i=u(89070),y=u(24065),P=u(59301),G=(H,j,v)=>new Promise((A,z)=>{var V=_=>{try{m(v.next(_))}catch(Y){z(Y)}},d=_=>{try{m(v.throw(_))}catch(Y){z(Y)}},m=_=>_.done?A(_.value):Promise.resolve(_.value).then(V,d);m((v=v.apply(H,j)).next())});const R=({shixunHomeworks:H,classroomList:j,dispatch:v})=>{const A=(0,i.useParams)();return P.createElement(e.default,{centered:!0,title:"\u63D0\u793A",open:H.actionTabs.key==="\u6253\u56DE\u91CD\u505A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>G(void 0,null,function*(){var z,V,d,m;if((0,y.Rm)()&&!((z=j.AssistantObject.practice)!=null&&z.can_redo)){o.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const _=yield(0,s.ZP)(`/api/myshixuns/${H.actionTabs.selectArrs.myshixun_identifier}/reset_my_game.json`,{method:"GET",params:{course_id:A.coursesId,homework_common_id:H.actionTabs.homework_common_id}});if(_.shixun_identifier){o.ZP.success("\u64CD\u4F5C\u6210\u529F"),v({type:"shixunHomeworks/setActionTabs",payload:{}});const Y=(d=(V=_==null?void 0:_.new_works)==null?void 0:V.find(c=>`${c.homework_common_id}`===A.categoryId))==null?void 0:d.id;if((0,y.Rm)()&&!((m=j.AssistantObject.practice)!=null&&m.can_view))return;i.history.replace(`/classrooms/${A.coursesId}/shixun_homework/${A.categoryId}/${Y}/comment`)}}),onCancel:()=>{v({type:"shixunHomeworks/setActionTabs",payload:{}})}},P.createElement("p",null,"\u8BE5\u4F5C\u4E1A\u5C06\u88AB\u6253\u56DE\u91CD\u505A\uFF0C\u5B66\u751F\u5B9E\u8BAD\u8BB0\u5F55\u5C06\u88AB\u6E05\u7A7A!"),P.createElement("p",null,"\u786E\u5B9A\u6253\u56DE?"))};X.Z=(0,i.connect)(({shixunHomeworks:H,classroomList:j})=>({shixunHomeworks:H,classroomList:j}))(R)},37462:function(at,X,u){"use strict";u.r(X),u.d(X,{default:function(){return ir}});var e=u(59301),o=u(89070),s=u(43418),i=u(8591),y=u(66104),P=u(6848),G=u(99313),R=u(1710),H=u(27812),j=u(955),v=u(99064),A=u(12290),z=u(3294),V=u(85149),d=Object.defineProperty,m=Object.getOwnPropertySymbols,_=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,c=(t,l,n)=>l in t?d(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,F=(t,l)=>{for(var n in l||(l={}))_.call(l,n)&&c(t,n,l[n]);if(m)for(var n of m(l))Y.call(l,n)&&c(t,n,l[n]);return t},k=(t,l,n)=>new Promise((ee,le)=>{var U=h=>{try{q(n.next(h))}catch(ae){le(ae)}},pe=h=>{try{q(n.throw(h))}catch(ae){le(ae)}},q=h=>h.done?ee(h.value):Promise.resolve(h.value).then(U,pe);q((n=n.apply(t,l)).next())});const g=({shixunHomeworks:t,dispatch:l})=>{const n=(0,o.useParams)();return e.createElement(s.default,{centered:!0,title:"\u63D0\u793A",open:t.actionTabs.key==="\u5220\u9664",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>k(void 0,null,function*(){(yield l({type:"shixunHomeworks/deleteReply",payload:{object_id:t.actionTabs.selectArr.id,object_type:"journals_for_message"}})).status===0&&(i.ZP.success("\u5220\u9664\u6210\u529F"),l({type:"shixunHomeworks/setActionTabs",payload:{}}),l({type:"shixunHomeworks/getReplyList",payload:F({},t.actionTabs.params)}))}),onCancel:()=>{l({type:"shixunHomeworks/setActionTabs",payload:{}})}},e.createElement("p",null,"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F"))};var T=(0,o.connect)(({shixunHomeworks:t})=>({shixunHomeworks:t}))(g),x=u(36708),L=u(61186),D=u.n(L),te=u(71418),Z=u(3113),Ae=u(58421),he=u(95237),w=u(43604),Ee=u(92832),B=u(57809),S=u(26227),oe=u(63524),f={flex_box_center:"flex_box_center___oXmmv",flex_space_between:"flex_space_between___D5_mZ",flex_box_vertical_center:"flex_box_vertical_center___S5DkJ",flex_box_center_end:"flex_box_center_end___KnbTG",flex_box_column:"flex_box_column____klOK",top:"top___FyBsZ",desc:"desc___sMJy6",liked:"liked___P7kc_",likedActive:"likedActive___gv4cj",reply:"reply___fFyWG",replyList:"replyList___RDcrF",comment:"comment___uNa2p",deseIconSty:"deseIconSty___hiTV2",buttonEdit:"buttonEdit___godGx",maskWrap:"maskWrap___bA1lb",desHead:"desHead___gsg50",mask:"mask___HzQwZ",md:"md___kNtFb",tip:"tip___enkdY",selectWrapper:"selectWrapper___x8uH0",inputBox:"inputBox___VxU7y",pass_info:"pass_info___Kig4_",todo:"todo___hntv8",name:"name___UD8SI",info:"info___lOOGO",viewreport:"viewreport___CAnci"},Fe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALwAAAAgCAYAAACo7RKTAAAAAXNSR0IArs4c6QAAFaNJREFUeF7tXHl8XHW1/557Z5JM0yTtA9qy6dwktMVaKMncAVo2F0Rk0aeg+FCK+tzg8WRR5qYFCdA2dwou+AR9LCpSZVE+ICIi+ACfpOjcSaAthdImudMFCm0hbfZl7u/Ib5KZznJnSdqnrx97/4HOPb/zO7/zO7/fPcv3hACg+xH/NBoaXMnARwjwMeGvxNSqgFZXzSq36AOxIUk3kYcfulDdI1qPJ4iFDF7EwEJiVABoBZV9a9pFWzsnwu8g7UEN7A8NED9RX72np6cNTNOJcB8Thpl5ITHpDK4gohEA7QRaLUCtXqV89dRPx97Mnpwfqq3p4cGTBHgRMUsjPxGMqSAwAS8yaDUResD8aQCHqh7llKoL3ly/PxZxkMdBDZSqAdr9wIyVzHSZonoXVJ92j4P46E0A10OMxkZ2rt46vP1ZEn1ba8G0iMEzJWMCdTFxKxF6IcjDhJOJeR4DCgiDBPwvMVoZVMng0LTGb5+EqdoCCLEITt+cnvYb5sIZWldzwZZTShW0GN2a5roZ8SE0CBYNU3xTbh0YGZoNh/8j52AS7wia9reL8ftnfB9tqr2aBWbnrJ24Rzfta5O/R0O15zBwnpuOFKK/NJqdP/v/qj9p8BsAeq7mQ/fdhOFheeNOy10wegH6S3zPpldGtz01NNL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7e/uQ8MbD5gvjujo+K/tfnx3vtSqdvM1jEQYonYfRK+SEY2RmBp6oepJYj3tsJdoZkIJNoAPEkD0h1HRTfYTsAegGgVqh4kmadk9Mp848wioNz/vNpwNXgs9XAbz1Rh+He0+PdG86P92890enfOtPZ00FitBdQvfBWyS9AfeIW99TUM9TyV6SPCGA1yjytpbot/3zqP7jiv7cGSjL4nAPQ/ew0DA2e7HSvP1etniv/QI7sI1oNUlejwvcCTf9AsW73v/c6D853UAMJDfwN/F3Fz8TPqaAAAAAASUVORK5CYII=",M=u(24065),r=u(85057),se=u(83992),a=u(59301),De=Object.defineProperty,Re=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,ot=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,ft=(t,l,n)=>l in t?De(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,Xe=(t,l)=>{for(var n in l||(l={}))ze.call(l,n)&&ft(t,n,l[n]);if(ot)for(var n of ot(l))Ke.call(l,n)&&ft(t,n,l[n]);return t},Me=(t,l)=>Re(t,tt(l)),C=(t,l,n)=>new Promise((ee,le)=>{var U=h=>{try{q(n.next(h))}catch(ae){le(ae)}},pe=h=>{try{q(n.throw(h))}catch(ae){le(ae)}},q=h=>h.done?ee(h.value):Promise.resolve(h.value).then(U,pe);q((n=n.apply(t,l)).next())});D().locale("ZH-cn");const de=({shixunHomeworks:t,classroomList:l,globalSetting:n,user:ee,loading:le,dispatch:U,gotosetting:pe})=>{var q,h,ae,it;const[Le,Ne]=(0,e.useState)(Me(Xe({},(0,o.useParams)()),{limit:10})),[Ye,Wt]=(0,e.useState)({page:1,limit:10}),[Oe,ht]=(0,e.useState)({page:1,limit:10,course_group_ids:"all",passed_status:"all",search:""}),[ne,ct]=(0,e.useState)(!1),[bt,$t]=(0,e.useState)(-1),[Ce,We]=(0,e.useState)(""),[Lt,wt]=(0,e.useState)(""),{detailLeftMenus:_e}=l,[I,be]=(0,e.useState)({}),{workDetail:Te,workList:Ve}=t;let[Pt,vt]=(0,e.useState)({});const[Kt,pu]=(0,e.useState)(!1),[He,ru]=(0,e.useState)(!1),[mu,Ie]=(0,e.useState)(!1),[Et,Je]=(0,e.useState)(!1),[Ut,gt]=(0,e.useState)(1),Tt=(0,e.useRef)(null),[Dt,Pu]=(0,e.useState)({}),[Ge,Cu]=(0,e.useState)({}),[Su,Iu]=(0,e.useState)(!1),iu=(0,e.useRef)(!0),[ju,Au]=(0,e.useState)([]),yu=(0,e.useRef)(null);Le.page_size=10,(0,e.useEffect)(()=>{Tt.current&&(Tt.current.clientHeight>200?gt(2):gt(4))},[Te==null?void 0:Te.explanation]),(0,e.useEffect)(()=>{U({type:"shixunHomeworks/getReplyList",payload:Xe({},Le)}),U({type:"shixunHomeworks/getWorkDetail",payload:Xe({},Le)}),_u()},[Le.categoryId]),(0,e.useEffect)(()=>{t!=null&&t.replyList&&be(t.replyList)},[t]);function nn(ce){return C(this,null,function*(){if(!(Pt!=null&&Pt.ec_point_ids))return;let jt=yield(0,v.ZP)(`/api/ec_courses/${Pt==null?void 0:Pt.ec_course_id}/ec_points/set_work_points.json`,{method:"post",body:Xe({homework_common_id:ce},Pt)})})}function _u(){return C(this,null,function*(){pu(!0);let ce=yield(0,v.ZP)(`/api/homework_commons/${Le==null?void 0:Le.categoryId}/shixun_challenge_data.json`,{method:"get"});(ce==null?void 0:ce.status)===0&&Pu(ce==null?void 0:ce.data),pu(!1)})}const Lu=()=>C(void 0,null,function*(){ru(!0);const ce=yield(0,v.ZP)(`/api/homework_commons/${Le==null?void 0:Le.categoryId}/challenge_passed_details.json`,{method:"get",params:Me(Xe({challenge_id:yu.current},Oe),{passed_status:Oe.passed_status==="all"?null:Oe.passed_status,course_group_ids:Oe.course_group_ids==="all"?null:Oe.course_group_ids})});(ce==null?void 0:ce.status)===0&&Cu(ce==null?void 0:ce.data),ru(!1)}),an=()=>{if(Ut===1)return{visibility:"hidden"};if(Ut===2)return{overflow:"hidden",height:"200px"};if(Ut===3)return{overflow:"initial"};if(Ut===4)return{overflow:"initial"}},hn=ce=>{Oe.course_group_ids=ce,Oe.page=1,ht(Xe({},Oe)),Lu()},sn=ce=>{Oe.passed_status=ce,Le.page=1,ht(Xe({},Oe)),Lu()};return a.createElement("section",{className:f.bg},a.createElement(te.Z,{spinning:Kt},(!(Te!=null&&Te.hide_explanation)||(0,M.GJ)())&&a.createElement("section",{className:" edu-container",style:{padding:"20px 20px 0 20px",background:"#fff",position:"relative"}},!Et&&(0,M.GJ)()&&a.createElement("div",{style:{position:"absolute",zIndex:10,right:34,top:30}},(0,M.GJ)()&&a.createElement("span",{className:f.deseIconSty,style:{marginLeft:"auto",cursor:"pointer"},onClick:()=>{Je(!0)}},a.createElement(P.Z,{title:"\u7F16\u8F91\u8BF4\u660E"},a.createElement("i",{className:"iconfont icon-bianji-moren font14"}),a.createElement("span",null,"\u7F16\u8F91\u8BF4\u660E"))),a.createElement("span",{className:f.deseIconSty,style:{marginLeft:"20px",cursor:"pointer"},onClick:()=>C(void 0,null,function*(){if(!(Te!=null&&Te.hide_explanation))s.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u9690\u85CF\u540E\uFF0C\u5B66\u751F\u7AEF\u5C06\u9690\u85CF\u4F5C\u4E1A\u8BF4\u660E\u6A21\u5757",onOk:()=>C(void 0,null,function*(){let ce=yield(0,v.ZP)(`/api/homework_commons/${Le==null?void 0:Le.categoryId}/hide_explanation.json`,{method:"post",body:{hide_explanation:!0}});(ce==null?void 0:ce.status)==0&&(i.ZP.success("\u9690\u85CF\u6210\u529F"),U({type:"shixunHomeworks/getWorkDetail",payload:Xe({},Le)}))})});else{let ce=yield(0,v.ZP)(`/api/homework_commons/${Le==null?void 0:Le.categoryId}/hide_explanation.json`,{method:"post",body:{hide_explanation:!1}});(ce==null?void 0:ce.status)==0&&(i.ZP.success("\u516C\u5F00\u6210\u529F"),U({type:"shixunHomeworks/getWorkDetail",payload:Xe({},Le)}))}})},a.createElement(P.Z,{title:Te!=null&&Te.hide_explanation?"\u516C\u5F00\u8BF4\u660E":"\u9690\u85CF\u8BF4\u660E"},a.createElement("i",{className:"iconfont icon-xianshiyincang font14"}),a.createElement("span",null,Te!=null&&Te.hide_explanation?"\u516C\u5F00\u8BF4\u660E":"\u9690\u85CF\u8BF4\u660E")))),Et?a.createElement(a.Fragment,null,a.createElement(A.Z,{defaultValue:Te==null?void 0:Te.explanation,watch:!0,height:155,onChange:ce=>{We(ce)}}),a.createElement("div",{style:{display:"flex"}},a.createElement(Z.ZP,{size:"middle",type:"primary",className:`${f.buttonEdit} mr20`,style:{marginLeft:"auto"},htmlType:"submit",onClick:()=>C(void 0,null,function*(){gt(1);const ce=yield U({type:"shixunHomeworks/updateWork",payload:{explanation:Ce,categoryId:Le.categoryId}});(ce==null?void 0:ce.status)==0&&(i.ZP.success("\u7F16\u8F91\u6210\u529F"),Je(!1),U({type:"shixunHomeworks/getWorkDetail",payload:Xe({},Le)}))})},"\u63D0\u4EA4"),a.createElement(Z.ZP,{size:"middle",type:"primary",ghost:!0,className:f.buttonEdit,onClick:()=>{Je(!1)}},"\u53D6\u6D88"))):!!(Te!=null&&Te.explanation)&&a.createElement("div",{ref:Tt,className:f.maskWrap,style:an()},a.createElement("div",{className:f.desHead},a.createElement("img",{src:Fe,width:94})),a.createElement(V.Z,{className:f.md,value:(Te==null?void 0:Te.explanation)||""}),Ut===2&&a.createElement("div",{className:f.mask},a.createElement("div",{onClick:()=>gt(3)},"\u5C55\u5F00",a.createElement("i",{className:"iconfont icon-zhankai4"}))),Ut===3&&a.createElement("div",{className:f.mask,style:{position:"relative",height:30,background:"transparent",paddingTop:5}},a.createElement("div",{onClick:()=>gt(2)},"\u6536\u8D77",a.createElement("i",{className:"iconfont icon-shouqi5"}))))),a.createElement("section",{className:" edu-container",style:{background:"#fff",paddingTop:20}},(0,M.dE)()&&!!(Dt!=null&&Dt.group_name)&&a.createElement("div",{className:f.info},a.createElement("img",{src:`${z.Z.IMG_SERVER}/images/${Dt==null?void 0:Dt.image_url}`}),a.createElement("div",{className:"ml20",style:{alignItems:"start"}},a.createElement("b",null,(Dt==null?void 0:Dt.username)||""),a.createElement("span",{title:(Dt==null?void 0:Dt.group_name)||"",style:{maxWidth:"130px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordBreak:"break-all"}},(Dt==null?void 0:Dt.group_name)||"")),a.createElement("div",null,a.createElement("b",null,a.createElement(se.n,{value:Dt==null?void 0:Dt.work_score})),a.createElement("span",null,"\u603B\u6210\u7EE9")),a.createElement("div",null,a.createElement("b",null,(Dt==null?void 0:Dt.evaluate_count)||"-"),a.createElement("span",null,"\u8BC4\u6D4B\u6B21\u6570")),a.createElement("div",null,a.createElement("b",null,(Dt==null?void 0:Dt.time_consuming)||"-"),a.createElement("span",null,"\u603B\u8017\u65F6")),a.createElement("div",null,a.createElement("b",{style:{color:"#009C0F"}},Dt==null?void 0:Dt.passed_count),a.createElement("span",null,"\u5DF2\u901A\u8FC7\u6570")),a.createElement("div",null,a.createElement("b",{style:{color:"#FA6400"}},Dt==null?void 0:Dt.progress_count),a.createElement("span",null,"\u672A\u901A\u8FC7")),a.createElement("div",null,a.createElement("b",{style:{color:"#E30000"}},Dt==null?void 0:Dt.no_evaluate_count),a.createElement("span",null,"\u672A\u8BC4\u6D4B")),a.createElement("div",{className:f.viewreport,style:{marginLeft:60,fontSize:14,color:"#3061D0",cursor:"pointer"},onClick:()=>{window.open(`/classrooms/${Le.coursesId}/shixun_homework/${Le.categoryId}/${Te==null?void 0:Te.work_id}/comment`)}},a.createElement("i",{className:"iconfont icon-baogao",style:{marginRight:7}}),a.createElement("span",null,"\u67E5\u770B\u62A5\u544A")))),a.createElement("div",null,a.createElement("section",{className:" edu-container",style:{padding:"20px",background:"#fff"}},(0,M.GJ)()&&a.createElement("div",{className:f.tip},a.createElement("i",{className:"iconfont icon-tishi12 font14",style:{color:"#FEB636",margin:"0 6px 0 12px"}}),a.createElement("div",null,Te!=null&&Te.answer_public?a.createElement("span",{style:{color:"#CA7720"}},"\u672C\u4F5C\u4E1A\u8BBE\u7F6E\u5B66\u751F\u7AEF\u53EF\u67E5\u770B\u7B54\u6848\uFF0C\u5982\u679C\u9700\u8BBE\u7F6E\u9690\u85CF\u8BF7\u70B9\u51FB"):a.createElement("span",{style:{color:"#CA7720"}},"\u672C\u4F5C\u4E1A\u8BBE\u7F6E\u5B66\u751F\u7AEF\u4E0D\u53EF\u67E5\u770B\u7B54\u6848\uFF0C\u5982\u679C\u9700\u8BBE\u7F6E\u516C\u5F00\u8BF7\u70B9\u51FB"),a.createElement("span",{style:{color:"#145DFF",marginLeft:10,cursor:"pointer"},onClick:()=>{pe()}},"\u5C55\u793A\u8BBE\u7F6E"))),a.createElement(R.default,{dataSource:Dt==null?void 0:Dt.challenge_settings,pagination:!1,columns:(q=[{title:"\u5E8F\u53F7",dataIndex:"index",ellipsis:!0,key:"index",width:55,render:(ce,jt,cu)=>`${(Ye.page-1)*Ye.limit+cu+1}`},{title:"\u5173\u5361\u540D\u79F0",dataIndex:"challenge_name",ellipsis:!0,width:(0,M.dE)()?280:420,key:"challenge_name",render:(ce,jt,cu)=>a.createElement("div",null,(jt==null?void 0:jt.is_choose_todo)&&a.createElement("span",{className:f.todo},"\u9009\u505A"),a.createElement("span",{className:f.name,title:ce},ce))},{title:"\u5173\u5361\u5206\u503C",dataIndex:"challenge_score",ellipsis:!0,key:"challenge_score"},(0,M.dE)()&&{title:"\u6211\u7684\u5F97\u5206",dataIndex:"game_score",key:"game_score",render:ce=>{let jt="",cu=Number(ce);return cu>=0&&cu<=60?jt="c-red":cu>=90?jt="c-green":cu>60?jt="c-orange":jt="",a.createElement("span",{className:jt},ce)}},(0,M.dE)()&&{title:"\u901A\u8FC7\u72B6\u6001",dataIndex:"passed_status",key:"passed_status",render(ce){return a.createElement(a.Fragment,null,ce===0&&a.createElement("span",{style:{color:"#E30000"}},"\u672A\u8BC4\u6D4B"),ce===1&&a.createElement("span",{style:{color:"#FA6400"}},"\u672A\u901A\u8FC7"),ce===2&&a.createElement("span",{style:{color:"#009C0F"}},"\u5DF2\u901A\u8FC7"))}},(0,M.dE)()&&{title:"\u8017\u65F6",dataIndex:"time_consuming",key:"time_consuming",ellipsis:!0,width:100},(0,M.dE)()&&{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",key:"evaluate_count",ellipsis:!0,width:100},{title:"\u96BE\u5EA6",dataIndex:"difficulty",key:"difficulty",width:100,ellipsis:!0,render(ce,jt,cu){return ce}},{title:"\u901A\u8FC7\u7387",dataIndex:"passed_rate",key:"passed_rate",width:100,ellipsis:!0,render:(ce,jt)=>a.createElement("span",null,(parseFloat(ce)*100).toFixed(2),"%")},{title:"\u77E5\u8BC6\u70B9",dataIndex:"knowledge_points",ellipsis:!0,key:"knowledge_points",width:200,render:(ce,jt)=>a.createElement("span",{style:{backgroundColor:"#ECFAF5",color:"#1B8565",overflow:"hidden",textOverflow:"ellipsis",padding:"2px 6px"}},ce||"--")},!(0,M.dE)()&&{title:"\u64CD\u4F5C",dataIndex:"identifier",key:"identifier",width:146,align:"right",render(ce,jt,cu){return a.createElement("div",null,a.createElement("a",{onClick:()=>C(this,null,function*(){yu.current=jt==null?void 0:jt.challenge_id,yield Lu(),Ie(!0)}),className:"ml20"},"\u67E5\u770B\u901A\u8FC7\u8BE6\u60C5"))}}])==null?void 0:q.filter(ce=>!!ce)})),a.createElement("aside",{style:{padding:"0 20px 20px 20px"}},a.createElement(Ae.Z,{defaultCurrent:1,total:ne==null?void 0:ne.count,hideOnSinglePage:!0,showTotal:ce=>a.createElement("span",null,"\u5171",ce,"\u6761"),current:Ye.page||1,pageSize:Ye.limit||10,onChange:(ce,jt)=>{Ye.page=ce,Ye.limit=jt,Wt(Xe({},Le)),_u()}})))),a.createElement("aside",{className:[f.reply,"bg-white","mt20"].join(" ")},ne&&a.createElement(A.Z,{onChange:ce=>{We(ce)},height:200,isFocus:!0,watch:!0}),a.createElement(he.Z,{onClick:()=>{ct(!0)}},a.createElement(w.Z,{flex:"1",style:{pointerEvents:"none"}},!ne&&a.createElement(Ee.default,{size:"middle",className:"current",placeholder:"\u8BF4\u70B9\u4EC0\u4E48",disabled:!0})),a.createElement(w.Z,null,a.createElement(Z.ZP,{type:"primary",size:"middle",onClick:()=>C(void 0,null,function*(){var ce;if((0,M.Rm)()&&!((ce=l.AssistantObject.practice)!=null&&ce.can_create)){i.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Ce===""?i.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9"):(yield U({type:"shixunHomeworks/createReply",payload:{journals_for_message:{jour_id:Le.categoryId,jour_type:"HomeworkCommon",reply_id:1,notes:Ce}}})).status===0&&(i.ZP.success("\u53D1\u5E03\u6210\u529F"),U({type:"shixunHomeworks/getReplyList",payload:Xe({},Le)}),ct(!1),We(""))})},"\u53D1\u8868")))),(I==null?void 0:I.comments)&&I.comments!=""&&a.createElement("aside",{className:[f.replyList,"bg-white"].join(" ")},I==null?void 0:I.comments.map(function(ce,jt){var cu,W,st,St;return a.createElement(he.Z,{gutter:[12,12],key:jt},a.createElement(w.Z,{flex:"40px"},a.createElement("img",{width:"40",src:`${z.Z.IMG_SERVER}/images/${(cu=ce==null?void 0:ce.author)==null?void 0:cu.image_url}`})),a.createElement(w.Z,{flex:"1"},a.createElement(he.Z,{align:"middle"},a.createElement(w.Z,{span:20},a.createElement("span",{className:"c-light-black"},(W=ce==null?void 0:ce.author)==null?void 0:W.name),a.createElement("span",{className:"c-light-black ml10"},ce.time," \u53D1\u5E03")),a.createElement(w.Z,{span:4},a.createElement("div",{className:"tr"},((0,M.GJ)()||((st=ee==null?void 0:ee.userInfo)==null?void 0:st.login)===((St=ce==null?void 0:ce.author)==null?void 0:St.login))&&a.createElement(S.Z,{className:"current",onClick:()=>{U({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5220\u9664",params:Le,selectArr:ce,object_type:"message"}})}}))),a.createElement(w.Z,{span:24},a.createElement(V.Z,{value:ce.content})),ce.children&&a.createElement("aside",{className:f.comment},ce.children.map(function(uu,gu){var nu,en;return a.createElement(he.Z,{key:gu},a.createElement(w.Z,{span:24},a.createElement(he.Z,null,a.createElement(w.Z,{flex:"1"},uu.author.name,a.createElement("span",{className:"c-light-black ml10"},D()(uu==null?void 0:uu.created_on).fromNow())),a.createElement(w.Z,null,((0,M.GJ)()||((nu=ee==null?void 0:ee.userInfo)==null?void 0:nu.login)===((en=uu==null?void 0:uu.author)==null?void 0:en.login))&&a.createElement(P.Z,{title:"\u5220\u9664"},a.createElement(S.Z,{className:"current",onClick:()=>{U({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5220\u9664",params:Le,selectArr:uu}})}}))))),a.createElement(w.Z,null,a.createElement(V.Z,{value:uu.content})))})),a.createElement("div",{className:"tc w100 mt10"},a.createElement(Ae.Z,{defaultCurrent:1,total:ce==null?void 0:ce.child_message_count,hideOnSinglePage:!0,pageSize:5,current:ce.page||1,onChange:uu=>C(this,null,function*(){var gu;const nu=yield(0,x.PC)(Me(Xe({},Le),{parent_id:ce.id,page:uu,limit:5}));(gu=nu==null?void 0:nu.comments)!=null&&gu.length&&(I.comments[jt].page=uu,I.comments[jt].children=[...nu==null?void 0:nu.comments],be(Xe({},I)))})})),a.createElement(w.Z,{span:24,className:"mt5 c-light-black"},bt===jt&&a.createElement("aside",null,a.createElement(A.Z,{onChange:uu=>{wt(uu)},height:150,isFocus:!0}),a.createElement(he.Z,null,a.createElement(w.Z,{span:24,className:"tr"},a.createElement(Z.ZP,{type:"primary",size:"middle",onClick:()=>C(this,null,function*(){var uu;if(Lt==="")i.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{yield U({type:"shixunHomeworks/createReply",payload:{journals_for_message:{jour_id:Le.categoryId,jour_type:"HomeworkCommon",m_parent_id:ce.id,reply_id:1,notes:Lt}}});const gu=yield(0,x.PC)(Me(Xe({},Le),{parent_id:ce.id,limit:5}));(uu=gu==null?void 0:gu.comments)!=null&&uu.length&&(++I.comments[jt].child_message_count,I.comments[jt].children=[...gu==null?void 0:gu.comments],I.comments[jt].page=1,be(I)),i.ZP.success("\u53D1\u5E03\u6210\u529F"),$t(-1)}})},"\u53D1\u8868")))),bt!==jt&&a.createElement("div",{className:"tr"},a.createElement("span",{className:"iconfont icon-huifu1 mr5 ml30",onClick:()=>$t(jt)}),ce.child_message_count||0,!!(ce!=null&&ce.user_praise)&&a.createElement("span",{className:"c-orange"},a.createElement(oe.Z,{className:"mr5 ml30",onClick:()=>C(this,null,function*(){yield U({type:"shixunHomeworks/replyUnLike",payload:{object_id:ce.id,object_type:"journals_for_message"}}),U({type:"shixunHomeworks/getReplyList",payload:Xe({},Le)})})}),ce==null?void 0:ce.praise_count),!ce.user_praise&&a.createElement("span",null,a.createElement(oe.Z,{className:"mr5 ml30",onClick:()=>C(this,null,function*(){yield U({type:"shixunHomeworks/replyLike",payload:{object_id:ce.id,object_type:"journals_for_message"}}),U({type:"shixunHomeworks/getReplyList",payload:Xe({},Le)})})}),ce.praise_count))))))})),a.createElement("aside",{className:"tc mt30 pb30"},a.createElement(Ae.Z,{defaultCurrent:1,total:I==null?void 0:I.parent_messages_count,hideOnSinglePage:!0,current:Le.page||1,pageSize:10,onChange:ce=>{Le.page=ce,U({type:"shixunHomeworks/getReplyList",payload:Xe({},Le)})}})),a.createElement(T,null),a.createElement(s.default,{centered:!0,title:"\u5173\u5361\u901A\u8FC7\u8BE6\u60C5",width:1200,open:mu,okText:"\u786E\u5B9A",bodyStyle:{minHeight:550},afterClose:()=>{Oe.course_group_ids="all",Oe.passed_status="all",Oe.search=""},footer:null,cancelText:"\u53D6\u6D88",onOk:()=>C(void 0,null,function*(){(yield U({type:"shixunHomeworks/deleteReply",payload:{object_id:t.actionTabs.selectArr.id,object_type:"journals_for_message"}})).status===0&&(i.ZP.success("\u5220\u9664\u6210\u529F"),Ie(!1),U({type:"shixunHomeworks/getReplyList",payload:Xe({},t.actionTabs.params)}))}),onCancel:()=>{Ie(!1)}},a.createElement("div",{className:"mb20"},a.createElement("span",{style:{color:"#5F6368",marginRight:10}},"\u5173\u5361\u540D\u79F0"),a.createElement("span",{style:{color:"#CA7720",fontWeight:500}},Ge==null?void 0:Ge.challenge_name)),a.createElement("div",{className:f.inputBox},a.createElement("div",{style:{display:"flex",alignItems:"center"}},a.createElement("div",{className:"mr20"},a.createElement("span",{style:{color:"#9B9B9B",marginRight:10}},"\u901A\u8FC7\u72B6\u6001"),a.createElement(B.default,{value:Oe==null?void 0:Oe.passed_status,defaultValue:"all",className:f.selectWrapper,style:{width:130},getPopupContainer:ce=>ce.parentNode,onChange:sn},a.createElement(B.default.Option,{value:"all"},"\u5168\u90E8"),a.createElement(B.default.Option,{value:0},"\u672A\u8BC4\u6D4B"),a.createElement(B.default.Option,{value:1},"\u8FDB\u884C\u4E2D"),a.createElement(B.default.Option,{value:2},"\u5DF2\u901A\u8FC7"))),a.createElement("div",null,a.createElement("span",{style:{color:"#9B9B9B",marginRight:10}},"\u5206\u73ED\u60C5\u51B5"),a.createElement(B.default,{value:Oe==null?void 0:Oe.course_group_ids,defaultValue:"all",className:f.selectWrapper,style:{width:220},showSearch:!0,placeholder:"\u8F93\u5165\u5173\u952E\u8BCD\u5BF9\u5206\u73ED\u8FDB\u884C\u641C\u7D22",getPopupContainer:ce=>ce.parentNode,onChange:hn,dropdownRender:ce=>a.createElement(te.Z,{spinning:Su},ce)},a.createElement(B.default.Option,{key:-1,value:"all"},"\u5168\u90E8\u73ED\u7EA7"),(ae=(h=t==null?void 0:t.headerInfo)==null?void 0:h.course_group_info)==null?void 0:ae.map(ce=>a.createElement(B.default.Option,{key:ce.course_group_id,value:ce.course_group_id},ce.group_group_name))))),a.createElement(r.t7,{style:{width:290,height:38},placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",value:Oe==null?void 0:Oe.search,onChange:ce=>{Oe.page=1,Oe.search=ce,ht(Xe({},Oe)),Lu()}})),a.createElement("div",{className:f.pass_info},a.createElement("span",{style:{marginLeft:12}},"\u5171\u6709 ",a.createElement("span",{style:{color:"#3061D0"}},Ge==null?void 0:Ge.count)," \u540D\u540C\u5B66\u53C2\u4E0E\uFF0C\u5176\u4E2D ",a.createElement("span",{style:{color:"#009C0F"}},Ge==null?void 0:Ge.passed_count)," \u4EBA\u5DF2\u901A\u8FC7\uFF0C",a.createElement("span",{style:{color:"#E30000"}},Ge==null?void 0:Ge.no_passed_count)," \u4EBA\u672A\u901A\u8FC7")),a.createElement(R.default,{dataSource:Ge==null?void 0:Ge.list,pagination:!1,loading:He,columns:(it=[{title:"\u5E8F\u53F7",dataIndex:"index",ellipsis:!0,key:"index",width:55,render:(ce,jt,cu)=>`${(Ye.page-1)*Ye.limit+cu+1}`},{title:"\u59D3\u540D",dataIndex:"username",ellipsis:!0,key:"index"},{title:"\u5B66\u53F7",dataIndex:"student_id",ellipsis:!0,key:"index"},{title:"\u5206\u73ED",dataIndex:"group_name",ellipsis:!0,key:"index"},{title:"\u901A\u8FC7\u72B6\u6001",dataIndex:"passed_status",key:"passed_status",render(ce){return a.createElement(a.Fragment,null,ce===0&&a.createElement("span",{style:{color:"#E30000"}},"\u672A\u8BC4\u6D4B"),ce===1&&a.createElement("span",{style:{color:"#FA6400"}},"\u8FDB\u884C\u4E2D"),ce===2&&a.createElement("span",{style:{color:"#009C0F"}},"\u5DF2\u901A\u8FC7"))}},{title:"\u8017\u65F6",dataIndex:"time_consuming",key:"time_consuming",ellipsis:!0,width:100},(0,M.dE)()&&{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",key:"evaluate_count",ellipsis:!0,width:100}])==null?void 0:it.filter(ce=>!!ce)}),a.createElement("aside",{className:"tc mt30"},a.createElement(Ae.Z,{defaultCurrent:1,total:Ge==null?void 0:Ge.count,hideOnSinglePage:!0,current:Oe.page||1,pageSize:10,onChange:ce=>{Oe.page=ce,Lu(yu)}}))))};var ut=(0,o.connect)(({shixunHomeworks:t,classroomList:l,loading:n,user:ee,globalSetting:le})=>({shixunHomeworks:t,globalSetting:le,classroomList:l,user:ee,loading:n.effects}))(de),we=u(78241),N=u(20834),p=u(24905),$=u(38854),fe=u(78673),re=u(5112),Ze=u(5871),Ct=u(84105),dt=u(87395),et=u(95869),zt=u(67921),Vt=u(89489),O=u(8797),mt=u(68971),It=u(96512),kt=Object.defineProperty,Qt=Object.getOwnPropertySymbols,su=Object.prototype.hasOwnProperty,du=Object.prototype.propertyIsEnumerable,eu=(t,l,n)=>l in t?kt(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,lu=(t,l)=>{for(var n in l||(l={}))su.call(l,n)&&eu(t,n,l[n]);if(Qt)for(var n of Qt(l))du.call(l,n)&&eu(t,n,l[n]);return t},Ou=(t,l)=>{var n={};for(var ee in t)su.call(t,ee)&&l.indexOf(ee)<0&&(n[ee]=t[ee]);if(t!=null&&Qt)for(var ee of Qt(t))l.indexOf(ee)<0&&du.call(t,ee)&&(n[ee]=t[ee]);return n},ku=(t,l,n)=>new Promise((ee,le)=>{var U=h=>{try{q(n.next(h))}catch(ae){le(ae)}},pe=h=>{try{q(n.throw(h))}catch(ae){le(ae)}},q=h=>h.done?ee(h.value):Promise.resolve(h.value).then(U,pe);q((n=n.apply(t,l)).next())});const Be=t=>{var l=t,{shixunHomeworks:n,dispatch:ee}=l,le=Ou(l,["shixunHomeworks","dispatch"]);const U=(0,o.useParams)(),[pe,q]=(0,e.useState)(!0),[h,ae]=(0,e.useState)(!1),[it]=we.default.useForm(),Le=()=>ku(void 0,null,function*(){const Ne=it.getFieldValue();(yield(0,v.ZP)(`/api/homework_commons/${U.categoryId}/batch_comment.json`,{method:"post",body:{student_work_ids:[...n.actionTabs.selectArrs],cover_all:pe,hidden_comment:Ne.hidden_comment,comment:Ne.comment}})).status===0&&(i.ZP.success("\u8BC4\u9605\u6210\u529F"),it.resetFields(),ee({type:"shixunHomeworks/setActionTabs",payload:{}}),ee({type:"shixunHomeworks/getShixunWorkList",payload:lu({},n.actionTabs.params)}))});return e.createElement(e.Fragment,null,e.createElement(s.default,{centered:!0,title:"\u4E00\u952E\u70B9\u8BC4",open:n.actionTabs.key==="\u4E00\u952E\u70B9\u8BC4",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>ku(void 0,null,function*(){var Ne,Ye,Wt;const Oe=it.getFieldValue();JSON.stringify(Oe)==="{}"||Oe.hidden_comment===""&&Oe.comment===""?ae(!0):(Wt=(Ye=(Ne=n.shixunWorkList)==null?void 0:Ne.student_works)==null?void 0:Ye.some)!=null&&Wt.call(Ye,ht=>ht.has_shixun_work_comment)?ee({type:"shixunHomeworks/setActionTabs",payload:{key:"\u4E00\u952E\u70B9\u8BC4\u786E\u8BA4",selectArrs:n.actionTabs.selectArrs,params:n.actionTabs.params}}):Le()}),onCancel:()=>{ee({type:"shixunHomeworks/setActionTabs",payload:{}})}},e.createElement(we.default,{form:it,onChange:()=>{h&&ae(!1)}},e.createElement("p",null,"\u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),e.createElement(we.default.Item,{name:"comment"},e.createElement(Ee.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:8})),e.createElement("p",null,"\u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),e.createElement(we.default.Item,{name:"hidden_comment"},e.createElement(Ee.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:8}))),h&&e.createElement("p",{className:"c-red"},"\u8BC4\u9605\u5185\u5BB9\u81F3\u5C11\u6709\u4E00\u4E2A\u4E0D\u4E3A\u7A7A")),e.createElement(s.default,{centered:!0,title:e.createElement("span",null,e.createElement(It.Z,{className:"c-orange mr20"}),"\u63D0\u793A"),open:n.actionTabs.key==="\u4E00\u952E\u70B9\u8BC4\u786E\u8BA4",okText:"\u786E\u5B9A\u70B9\u8BC4",cancelText:"\u653E\u5F03\u70B9\u8BC4",onOk:()=>{Le()},onCancel:()=>{ee({type:"shixunHomeworks/setActionTabs",payload:{}})},width:400},e.createElement("div",{className:"tc"},e.createElement("p",null,"\u90E8\u5206\u5B66\u751F\u5DF2\u6709\u70B9\u8BC4\u5185\u5BB9\uFF0C\u662F\u5426\u8986\u76D6\u5DF2\u6709\u70B9\u8BC4\u5185\u5BB9\uFF1F"),e.createElement("p",null,e.createElement(re.ZP.Group,{onChange:Ne=>{q(Ne.target.value)},value:pe},e.createElement(re.ZP,{value:!0},"\u8986\u76D6\u5DF2\u6709\u70B9\u8BC4"),e.createElement(re.ZP,{value:!1},"\u8DF3\u8FC7\u5DF2\u6709\u70B9\u8BC4"))))))};var ye=(0,o.connect)(({shixunHomeworks:t})=>({shixunHomeworks:t}))(Be),ue={wrap:"wrap___kCwPu",refresh:"refresh___dkiX_",maxWidth70:"maxWidth70___u0Fnw",maxWidth80:"maxWidth80___B8pkG",maxWidth100:"maxWidth100___jQ_W6",maxWidth110:"maxWidth110___t9GZl",maxWidth120:"maxWidth120___tvrlz",reviewStatusTooltip:"reviewStatusTooltip___nCQT1",color32C:"color32C___KnLuR",MdEditor:"MdEditor___IcZwd",tr1:"tr1___k3Rcs",scroll:"scroll___TVUAz",work_button:"work_button___QokXJ"},Se=u(89392),_t=u(59301),Yt=({defaultValue:t,onBlur:l,max:n,className:ee="game-score"})=>{const[le,U]=(0,e.useState)(t);(0,e.useEffect)(()=>{U(t)},[t]);function pe(h){U(h)}function q(){le!==t&&l(le>n?n:le)}return _t.createElement(Ze.Z,{max:n,min:0,className:ee,value:le,onChange:pe,onBlur:q})},lt={greyText:"greyText___XLove",info:"info___A1gYD",label:"label___hzhZk",blackContent:"blackContent___WdHyW",orangeContent:"orangeContent___d5L7E",inputLabel:"inputLabel___arXff",tableTitle:"tableTitle___xt1qf",scoreTable:"scoreTable___AoIAG"},rt=u(30917),ie=u(59301),At=Object.defineProperty,Eu=Object.defineProperties,Fu=Object.getOwnPropertyDescriptors,Nt=Object.getOwnPropertySymbols,Nu=Object.prototype.hasOwnProperty,bu=Object.prototype.propertyIsEnumerable,Xt=(t,l,n)=>l in t?At(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,Gt=(t,l)=>{for(var n in l||(l={}))Nu.call(l,n)&&Xt(t,n,l[n]);if(Nt)for(var n of Nt(l))bu.call(l,n)&&Xt(t,n,l[n]);return t},ve=(t,l)=>Eu(t,Fu(l)),ge=(t,l,n)=>new Promise((ee,le)=>{var U=h=>{try{q(n.next(h))}catch(ae){le(ae)}},pe=h=>{try{q(n.throw(h))}catch(ae){le(ae)}},q=h=>h.done?ee(h.value):Promise.resolve(h.value).then(U,pe);q((n=n.apply(t,l)).next())});const Q=({shixunHomeworks:t,dispatch:l,classroomList:n,loading:ee,paramslist:le})=>{const{shixunWorkReport:U}=t,pe=(0,o.useParams)(),[q,h]=(0,e.useState)(),[ae,it]=(0,e.useState)(!1),[Le,Ne]=s.default.useModal(),[Ye,Wt]=(0,e.useState)(!1),[Oe,ht]=(0,e.useState)(!1),[ne]=we.default.useForm();(0,e.useEffect)(()=>{t.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4"&&ct()},[t.actionTabs.key]);const ct=()=>ge(void 0,null,function*(){var Ce,We,Lt,wt,_e;const I=yield l({type:"shixunHomeworks/getShixunWorkReport",payload:ve(Gt({},pe),{homeworkId:(We=(Ce=t.actionTabs.selectArrs)==null?void 0:Ce.data)==null?void 0:We.homeworkId})});return console.log(I),h((wt=(Lt=t.actionTabs.selectArrs)==null?void 0:Lt.data)==null?void 0:wt.homeworkId),ne.setFieldsValue({comment:I==null?void 0:I.work_comment,hidden_comment:(_e=t.res)==null?void 0:_e.work_comment_hidden}),I}),bt=()=>ge(void 0,null,function*(){const Ce=ne.getFieldsValue();(yield(0,v.ZP)(`/api/student_works/${q}/shixun_work_comment.json`,{method:"post",body:{hidden_comment:Ce.hidden_comment,comment:Ce.comment}})).status===0&&(i.ZP.success("\u8BC4\u9605\u6210\u529F"),ne.resetFields(),l({type:"shixunHomeworks/setActionTabs",payload:{}}),l({type:"shixunHomeworks/getShixunWorkList",payload:Gt(Gt({},pe),le)}))}),$t=[{title:"\u5173\u5361",dataIndex:"name",render:(Ce,We,Lt)=>Lt+1},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",render:(Ce,We,Lt)=>ie.createElement("div",null,Ce,We.complete_status===4&&ie.createElement(j.vA,{status:We.complete_status}))},{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"open_time"},{title:"\u5B8C\u6210\u65F6\u95F4",dataIndex:"finished_time"},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",align:"center"},{title:"\u5B9E\u8BAD\u8017\u65F6",dataIndex:"time_consuming"},{title:"\u662F\u5426\u67E5\u770B\u7B54\u6848",dataIndex:"view_answer",align:"center",render:Ce=>Ce?"\u662F":"\u5426"},{title:"\u5173\u5361\u5F97\u5206",dataIndex:"game_score",align:"center",render:(Ce,We)=>ie.createElement("div",null,ie.createElement("span",{style:{color:parseFloat(We.game_score_full)!==parseFloat(Ce)?"#E30000":"#53C41B"}},Ce),"/",We.game_score_full)},{title:"\u8C03\u5206",dataIndex:"game_score",align:"center",fixed:"right",render:(Ce,We)=>(0,M.GJ)()?ie.createElement(Yt,{max:We.game_score_full,defaultValue:parseFloat(Ce),onBlur:Lt=>ge(void 0,null,function*(){var wt;if((0,M.Rm)()&&!((wt=n.AssistantObject.practice)!=null&&wt.can_appraise)){i.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const _e=yield l({type:"shixunHomeworks/changeScore",payload:{categoryId:q,type:"report",score:Lt,challenge_id:We.challenge_id}});yield l({type:"shixunHomeworks/getShixunWorkReport",payload:ve(Gt({},pe),{homeworkId:q})}),l({type:"shixunHomeworks/getShixunWorkList",payload:pe}),_e.status===0&&i.ZP.success("\u64CD\u4F5C\u6210\u529F")})}):Ce}];return ie.createElement(ie.Fragment,null,Ne,ie.createElement(s.default,{centered:!0,width:1080,title:"\u70B9\u8BC4\u4F5C\u4E1A",open:t.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>ge(void 0,null,function*(){var Ce;if((0,M.Rm)()&&!((Ce=n.AssistantObject.practice)!=null&&Ce.can_appraise)){i.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const We=ne.getFieldsValue();console.log(We),JSON.stringify(We)==="{}"||We.hidden_comment===""&&We.comment===""?it(!0):bt()}),onCancel:()=>{l({type:"shixunHomeworks/setActionTabs",payload:{}})}},ie.createElement(he.Z,{justify:"space-between",className:lt.info},ie.createElement(w.Z,null,ie.createElement("span",{className:`${lt.label} ${lt.greyText}`},"\u59D3\u540D"),ie.createElement("span",{className:lt.blackContent},U==null?void 0:U.username)),ie.createElement(w.Z,null,ie.createElement("span",{className:`${lt.label} ${lt.greyText}`},"\u5B66\u53F7"),ie.createElement("span",{className:lt.blackContent},(U==null?void 0:U.student_id)||"--")),ie.createElement(w.Z,null,ie.createElement("span",{className:`${lt.label} ${lt.greyText}`},"\u73ED\u7EA7"),ie.createElement("span",{className:lt.blackContent},(U==null?void 0:U.group_name)||"--")),ie.createElement(w.Z,null,ie.createElement("span",{className:`${lt.label} ${lt.greyText}`},"\u5173\u5361\u5F97\u5206"),ie.createElement("span",{className:lt.orangeContent},(U==null?void 0:U.challenge_score)||"--")),ie.createElement(w.Z,null,ie.createElement("span",{className:`${lt.label} ${lt.greyText}`},"\u6548\u7387\u5206"),ie.createElement("span",{className:lt.orangeContent},(U==null?void 0:U.eff_score)||"--")),ie.createElement(w.Z,null,ie.createElement("span",{className:`${lt.label} ${lt.greyText}`},"\u8865\u4EA4\u6263\u5206"),ie.createElement("span",{className:lt.orangeContent},(U==null?void 0:U.late_penalty)||"--")),ie.createElement(w.Z,null,ie.createElement("span",{className:`${lt.label} ${lt.greyText}`},"\u6700\u7EC8\u6210\u7EE9"),ie.createElement("span",{className:lt.orangeContent},(U==null?void 0:U.work_score)||"--"))),ie.createElement(te.Z,{spinning:ee["shixunHomeworks/getShixunWorkReport"]},ie.createElement(we.default,{form:ne,onChange:()=>{ae&&it(!1)}},ie.createElement(he.Z,{wrap:!1,align:"middle",justify:"space-between"},ie.createElement(w.Z,null,ie.createElement("div",{className:`${lt.inputLabel} ${lt.greyText}`},"\u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1")),ie.createElement(w.Z,null,ie.createElement(rt.Z,{isShowComponent:(0,M.G5)(),ModalProps:{open:Ye,onCancel:()=>{Wt(!1)}},onDataSelect:(Ce,We)=>ge(void 0,[Ce,We],function*(Lt,{node:wt}){const _e=()=>{ne.setFieldsValue({comment:wt==null?void 0:wt.value}),Wt(!1)};if(ne.getFieldValue("comment")){Le.confirm({icon:null,title:"\u63D0\u793A",centered:!0,content:"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8BC4\u8BED\u8F93\u5165\u6846\u4E2D\u5DF2\u6709\u5185\u5BB9\uFF0C\u4F7F\u7528\u5E38\u7528\u8BC4\u8BED\u5C06\u4F1A\u8986\u76D6\u539F\u6709\u5185\u5BB9\u3002\u662F\u5426\u4F7F\u7528\uFF1F",okText:"\u4F7F\u7528",onOk:_e});return}_e()})},ie.createElement(Z.ZP,{style:{padding:0,height:"auto"},icon:ie.createElement("i",{className:"iconfont icon-changyongpingyu"}),type:"link",onClick:Ce=>{Wt(!0)}},"\u5E38\u7528\u8BC4\u8BED")))),ie.createElement(we.default.Item,{name:"comment"},ie.createElement(Ee.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3})),ie.createElement(he.Z,{wrap:!1,align:"middle",justify:"space-between"},ie.createElement(w.Z,null,ie.createElement("div",{className:`${lt.inputLabel} ${lt.greyText}`},"\u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1")),ie.createElement(w.Z,null,ie.createElement(rt.Z,{isShowComponent:(0,M.G5)(),ModalProps:{open:Oe,onCancel:()=>{ht(!1)}},onDataSelect:(Ce,We)=>ge(void 0,[Ce,We],function*(Lt,{node:wt}){const _e=()=>{ne.setFieldsValue({hidden_comment:wt==null?void 0:wt.value}),ht(!1)};if(ne.getFieldValue("hidden_comment")){Le.confirm({icon:null,title:"\u63D0\u793A",centered:!0,content:"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8BC4\u8BED\u8F93\u5165\u6846\u4E2D\u5DF2\u6709\u5185\u5BB9\uFF0C\u4F7F\u7528\u5E38\u7528\u8BC4\u8BED\u5C06\u4F1A\u8986\u76D6\u539F\u6709\u5185\u5BB9\u3002\u662F\u5426\u4F7F\u7528\uFF1F",okText:"\u4F7F\u7528",onOk:_e});return}_e()})},ie.createElement(Z.ZP,{style:{padding:0,height:"auto"},icon:ie.createElement("i",{className:"iconfont icon-changyongpingyu"}),type:"link",onClick:Ce=>{ht(!0)}},"\u5E38\u7528\u8BC4\u8BED")))),ie.createElement(we.default.Item,{name:"hidden_comment"},ie.createElement(Ee.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3}))),ae&&ie.createElement("p",{className:"c-red"},"\u8BC4\u9605\u5185\u5BB9\u81F3\u5C11\u6709\u4E00\u4E2A\u4E0D\u4E3A\u7A7A"),ie.createElement("div",{className:lt.tableTitle},"\u5173\u5361\u6210\u7EE9"),ie.createElement(R.default,{className:lt.scoreTable,dataSource:U.stage_list,rowKey:"challenge_id",pagination:!1,columns:$t,scroll:{x:"max-content"}}))))};var ke=(0,o.connect)(({shixunHomeworks:t,classroomList:l,loading:n})=>({shixunHomeworks:t,classroomList:l,loading:n.effects}))(Q),nt=Object.getOwnPropertySymbols,Rt=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,xe=(t,l)=>{var n={};for(var ee in t)Rt.call(t,ee)&&l.indexOf(ee)<0&&(n[ee]=t[ee]);if(t!=null&&nt)for(var ee of nt(t))l.indexOf(ee)<0&&qe.call(t,ee)&&(n[ee]=t[ee]);return n},Qe=(t,l,n)=>new Promise((ee,le)=>{var U=h=>{try{q(n.next(h))}catch(ae){le(ae)}},pe=h=>{try{q(n.throw(h))}catch(ae){le(ae)}},q=h=>h.done?ee(h.value):Promise.resolve(h.value).then(U,pe);q((n=n.apply(t,l)).next())});const Mt=t=>{var l=t,{shixunHomeworks:n,dispatch:ee}=l,le=xe(l,["shixunHomeworks","dispatch"]);const U=(0,o.useParams)(),[pe,q]=(0,e.useState)([]),[h,ae]=(0,e.useState)([]);(0,e.useEffect)(()=>{n.actionTabs.key==="\u8D28\u91CF\u68C0\u6D4B"&&it()},[n.actionTabs.key]);function it(){return Qe(this,null,function*(){const Ne=yield(0,v.ZP)(`/api/homework_commons/${U.categoryId}/code_quality_analyses/group_list.json`,{method:"GET",params:{page:1,limit:200}});q(Ne)})}const Le=[{title:"\u5206\u73ED\u60C5\u51B5",dataIndex:"name"},{title:"\u6709\u6548\u4F5C\u54C1\u6570",dataIndex:"works_count"},{title:"\u68C0\u6D4B\u8FDB\u5EA6",dataIndex:"status"},{title:"\u4E0A\u6B21\u8BC4\u5206\u65F6\u95F4",dataIndex:"last_analysis_time"}];return e.createElement(e.Fragment,null,e.createElement(s.default,{centered:!0,title:"\u4EE3\u7801\u8D28\u91CF\u8BC4\u5206",open:n.actionTabs.key==="\u8D28\u91CF\u68C0\u6D4B",width:700,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Qe(void 0,null,function*(){const Ne=yield(0,v.ZP)(`/api/homework_commons/${U.categoryId}/code_quality_analyses.json`,{method:"POST",body:{group_ids:h}});(Ne==null?void 0:Ne.status)===0&&(o.history.replace(`/classrooms/${U.coursesId}/shixun_homework/${U.categoryId}/detail?tabs=4`),window.location.reload(),ee({type:"shixunHomeworks/setActionTabs",payload:{}}),ae([]))}),onCancel:()=>{ae([]),ee({type:"shixunHomeworks/setActionTabs",payload:{}})}},e.createElement(R.default,{rowSelection:{type:"checkbox",onChange:(Ne,Ye)=>{ae([...Ne])},selectedRowKeys:h,getCheckboxProps:Ne=>({disabled:Ne.status==="\u8FDB\u884C\u4E2D"||Ne.works_count===0})},rowKey:Ne=>Ne.key||Ne.id,scroll:{y:300},pagination:!1,columns:Le,dataSource:pe==null?void 0:pe.group_list})))};var pt=(0,o.connect)(({shixunHomeworks:t})=>({shixunHomeworks:t}))(Mt),Ue=Object.defineProperty,au=Object.getOwnPropertySymbols,tu=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,qt=(t,l,n)=>l in t?Ue(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,Ht=(t,l)=>{for(var n in l||(l={}))tu.call(l,n)&&qt(t,n,l[n]);if(au)for(var n of au(l))xt.call(l,n)&&qt(t,n,l[n]);return t},Tu=(t,l,n)=>new Promise((ee,le)=>{var U=h=>{try{q(n.next(h))}catch(ae){le(ae)}},pe=h=>{try{q(n.throw(h))}catch(ae){le(ae)}},q=h=>h.done?ee(h.value):Promise.resolve(h.value).then(U,pe);q((n=n.apply(t,l)).next())});const Ju=({shixunHomeworks:t,dispatch:l,isShow:n,setIsShow:ee,item:le,coursesId:U,categoryId:pe})=>{const[q,h]=(0,e.useState)({page:1,limit:10}),[ae,it]=(0,e.useState)([]),[Le,Ne]=(0,e.useState)(!1);(0,e.useEffect)(()=>{n&&Ye()},[n]);function Ye(){return Tu(this,null,function*(){Ne(!0);const Oe=yield(0,v.ZP)(`/api/student_works/${le.id}/game_details.json`,{method:"get",params:Ht({},q)});Ne(!1),Oe.status===0&&it(Oe==null?void 0:Oe.data)})}const Wt=[{title:"\u5E8F\u53F7",dataIndex:"number",width:50,fixed:"left",ellipsis:!0,render:(Oe,ht,ne)=>e.createElement("span",{style:{color:"#000"}},q.limit*(q.page-1)+ne+1)},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",key:"name",ellipsis:!0,render:(Oe,ht,ne)=>e.createElement("span",{style:{color:"#000"}},Oe)},{title:"\u901A\u5173\u8BE6\u60C5",dataIndex:"complete_status",key:"complete_status",ellipsis:!0,width:100,render:(Oe,ht,ne)=>e.createElement("span",null,Oe==0?"\u672A\u901A\u5173":Oe==4?"\u622A\u6B62\u540E\u901A\u5173":"\u5DF2\u901A\u5173")},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",key:"evaluate_count",width:100,ellipsis:!0,render:(Oe,ht,ne)=>e.createElement("span",{style:{color:"#333"}},Oe)},{title:"\u5B9E\u8BAD\u8017\u65F6",dataIndex:"time_consuming",key:"time_consuming",width:120,ellipsis:!0,render:(Oe,ht,ne)=>e.createElement("span",{style:{color:"#333"}},Oe)}];return e.createElement(e.Fragment,null,e.createElement(s.default,{centered:!0,title:"\u901A\u5173\u60C5\u51B5",open:n,width:700,footer:null,maskClosable:!1,onCancel:()=>{q.page=1,q.limit=10,h(Ht({},q)),ee(!1)}},e.createElement("div",{style:{display:"flex",justifyContent:"flex-start",alignItems:"center",marginBottom:"20px"}},e.createElement("div",{style:{maxWidth:"200px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",WebkitLineClamp:1}},e.createElement("span",{style:{color:"#666",marginRight:"10px"}},"\u5B66\u751F\u59D3\u540D"),e.createElement("span",{title:le==null?void 0:le.user_name,style:{color:"#232B40"}},le==null?void 0:le.user_name)),e.createElement("div",{style:{marginLeft:"50px",marginRight:"50px",maxWidth:"180px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",WebkitLineClamp:1}},e.createElement("span",{style:{color:"#666",marginRight:"10px"}},"\u5B66\u53F7"),e.createElement("span",{title:le==null?void 0:le.student_id,style:{color:"#232B40"}},(le==null?void 0:le.student_id)||"--")),e.createElement("div",{style:{maxWidth:"200px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",WebkitLineClamp:1}},e.createElement("span",{style:{color:"#666",marginRight:"10px"}},"\u73ED\u7EA7"),e.createElement("span",{title:le==null?void 0:le.group_name,style:{color:"#232B40"}},(le==null?void 0:le.group_name)||"--"))),e.createElement(R.default,{scroll:{y:380},columns:Wt,loading:Le,style:{marginBottom:q.limit>(ae==null?void 0:ae.count)?"16px":"0"},dataSource:ae.games,pagination:{size:"default",showQuickJumper:!0,showSizeChanger:!0,pageSizeOptions:["10","15","50","100","200"],hideOnSinglePage:!0,pageSize:q.limit,current:q.page,position:["bottomRight"],onChange:(Oe,ht)=>{q.page=Oe,q.limit=ht,h(Ht({},q)),Ye()},total:ae==null?void 0:ae.count,showTotal:(Oe,ht)=>e.createElement("span",null,"\u5171",e.createElement("span",{style:{color:"#165DFF"}}," ",Oe," "),"\u6761\u6570\u636E")}})))};var Qu=(0,o.connect)(({shixunHomeworks:t})=>({shixunHomeworks:t}))(Ju),fn=u(78297),pn=u(24544),E=u(59301),Yu=Object.defineProperty,vn=Object.getOwnPropertySymbols,Du=Object.prototype.hasOwnProperty,tn=Object.prototype.propertyIsEnumerable,Hu=(t,l,n)=>l in t?Yu(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,Wu=(t,l)=>{for(var n in l||(l={}))Du.call(l,n)&&Hu(t,n,l[n]);if(vn)for(var n of vn(l))tn.call(l,n)&&Hu(t,n,l[n]);return t},fu=(t,l,n)=>new Promise((ee,le)=>{var U=h=>{try{q(n.next(h))}catch(ae){le(ae)}},pe=h=>{try{q(n.throw(h))}catch(ae){le(ae)}},q=h=>h.done?ee(h.value):Promise.resolve(h.value).then(U,pe);q((n=n.apply(t,l)).next())});const Xu=({shixunHomeworks:t,loading:l,dispatch:n,setExportParams:ee,classroomList:le,user:U})=>{var pe,q,h,ae,it,Le,Ne,Ye,Wt,Oe,ht,ne,ct,bt,$t,Ce,We,Lt,wt,_e,I,be,Te,Ve,Pt,vt,Kt,pu,He,ru,mu,Ie,Et,Je,Ut,gt,Tt,Dt,Pu,Ge,Cu,Su,Iu,iu,ju,Au,yu,nn,_u,Lu,an,hn,sn,ce,jt;const cu=(0,o.useParams)(),[W,st]=(0,e.useState)(Wu(Wu({},{page:1,limit:20,order:"work_score",b_order:"desc"}),cu)),[St]=we.default.useForm(),[uu,gu]=(0,e.useState)(),[nu,en]=(0,e.useState)({}),[ua,na]=(0,e.useState)({}),[Oa,ka]=(0,e.useState)([]),[cr,Tn]=(0,e.useState)(!1),[_n,Na]=(0,e.useState)([]),[dr,Dn]=(0,e.useState)(!1),[Ra,Za]=(0,e.useState)(),[cn,Ta]=(0,e.useState)(1),[Nr,mr]=(0,e.useState)(),[dn,ja]=(0,e.useState)(),[mn,La]=(0,e.useState)(),[An,Ma]=(0,e.useState)(),[jn,aa]=(0,e.useState)(),[Er,fr]=(0,e.useState)(!1),[la,pr]=(0,e.useState)(!1),[vr,ra]=(0,e.useState)(!1),[gr,Wa]=(0,e.useState)(),oa=(0,e.useRef)(),[Ln,za]=(0,e.useState)([]),[Ha,Fr]=(0,e.useState)([]),[Qa,Ka]=(0,e.useState)(0),[hr,sa]=(0,e.useState)(!1),[En,Mn]=(0,e.useState)(""),[Ar,ia]=(0,e.useState)(""),[Br,xn]=(0,e.useState)(!1),[Cr,Wn]=(0,e.useState)(!1),[yr,zn]=(0,e.useState)(""),Hn=(0,e.useRef)(null);(0,e.useEffect)(()=>(Vu(!0),()=>{en([]),ka([]),clearInterval(oa.current)}),[W.coursesId]),(0,e.useEffect)(()=>{var b;try{const J=JSON.parse(JSON.stringify(t.shixunWorkList));!((b=J==null?void 0:J.student_works)!=null&&b.length)&&(J!=null&&J.id)?(J.student_works=[Wu({},J)],en(J)):(J!=null&&J.id&&ka([Wu(Wu({},J),{number:"\u6211"})]),en(Wu({},J)))}catch(J){}},[t.shixunWorkList]);const _r=()=>fu(void 0,null,function*(){const b=n({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:W})}),Vu=b=>{ee(Wu({},W));const J=n({type:"shixunHomeworks/getShixunWorkList",payload:W});return b&&J.then(Bt=>{var vu,ou,Zu;((vu=Bt==null?void 0:Bt.homework_status)!=null&&vu.includes("\u8FDB\u884C\u4E2D")||(ou=Bt==null?void 0:Bt.homework_status)!=null&&ou.includes("\u8865\u4EA4\u4E2D")||(Zu=Bt==null?void 0:Bt.homework_status)!=null&&Zu.includes("\u63D0\u4EA4\u4E2D"))&&(0,M.dE)()}),J};(0,e.useEffect)(()=>{},[]);const Rr=()=>fu(void 0,null,function*(){const b=yield(0,x.Uc)({categoryId:cu.categoryId});gu(b==null?void 0:b.update_score)}),Dr=()=>fu(void 0,null,function*(){n({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6210\u7EE9\u8BA1\u7B97\u4E2D\uFF0C\u8BF7\u7A0D\u5019..."}});const b=yield(0,x.Vs)({categoryId:cu.categoryId});n({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),(b==null?void 0:b.status)===0&&(i.ZP.success(b==null?void 0:b.message),Vu())}),xr=()=>{W.page=1;const b=Object.assign({},St.getFieldValue());delete W.course_group,delete W.teacher_comment,Object.keys(b).map(function(J){var Bt;switch(J){case"task_status":b[J].includes("all")||!b[J].length?(delete W.work_status,St.setFieldsValue({task_status:"all"})):(W.work_status=b[J],St.setFieldsValue({task_status:W.work_status}));break;case"course_group_info":b[J].includes("all")||!b[J].length?(delete W.course_group,St.setFieldsValue({course_group_info:"all"})):(W.course_group=b[J],St.setFieldsValue({course_group_info:W.course_group}));break;case"teacher_comment":b[J].includes("all")||!b[J].length?(delete W.teacher_comment,St.setFieldsValue({teacher_comment:"all"})):(W.teacher_comment=((Bt=b[J])==null?void 0:Bt.length)===1?Number(b[J][0]):"",St.setFieldsValue({teacher_comment:b[J]}));break}}),Vu(),_r()},br=(b,J)=>{za(J.map(Bt=>(Bt.course_group_id===b&&(Bt.checked=!Bt.checked),Bt))),Ua(J)},Ua=b=>{Fr(b.filter(J=>J.checked).map(J=>J.course_group_id))},bn=(0,e.useRef)();(0,e.useEffect)(()=>{bn.current=Ha},[Ha]),(0,e.useEffect)(()=>{document.getElementById("divhe")&&document.getElementById("divhe").scrollHeight>47&&(aa(47),fr(!0))},[document.getElementById("divhe")]);const wr=(b,J)=>{W.page=b,W.limit=J,Vu()};function Qn(){Ta(1),mr(""),ja(""),La(""),Ma(""),Na([])}(0,e.useEffect)(()=>{sessionStorage.getItem("classroomsShixunDetailAutoRefersh")&&Ja(!0)},[]);const Ja=b=>{if(!b){clearInterval(oa.current);return}oa.current=setInterval(()=>{Vu()},1e3*10)},Ya=[{title:"\u5E8F\u53F7",dataIndex:"number",align:"center",width:50,ellipsis:{showTitle:!1},render:(b,J,Bt)=>W.limit*(W.page-1)+Bt+1},{title:"\u59D3\u540D",dataIndex:"user_name",align:"center",width:110,ellipsis:{showTitle:!1},render:b=>E.createElement(P.Z,{placement:"bottomLeft",title:b},E.createElement("span",{className:"current"},b))},!((pe=t.headerInfo)!=null&&pe.is_excellent)&&!(0,M.Jd)()&&{title:"\u5B66\u53F7",dataIndex:"student_id",align:"center",sorter:!0,showSorterTooltip:!1,ellipsis:{showTitle:!1},sortOrder:W.order==="student_id"?W.b_order==="desc"?"descend":"ascend":null,render:b=>E.createElement(P.Z,{placement:"bottomLeft",title:b||"--"},E.createElement("span",{className:"current"},b||"--"))},{title:"\u5206\u73ED",dataIndex:"group_name",align:"center",ellipsis:{showTitle:!1},render:(b,J)=>b?E.createElement(P.Z,{placement:"bottom",title:b},E.createElement("span",{className:"current"},b)):"--"},{title:"\u4F5C\u4E1A\u72B6\u6001",dataIndex:"work_status",align:"center",sorter:!0,ellipsis:{showTitle:!1},showSorterTooltip:!1,sortOrder:W.order==="work_status"?W.b_order==="desc"?"descend":"ascend":null,render:(b,J)=>E.createElement(E.Fragment,null,E.createElement(j.rK,{status:b}),(J==null?void 0:J.student_view_answer)&&E.createElement("div",{style:{color:"#3061D0"}},"\uFF08\u67E5\u770B\u7B54\u6848\uFF09"))},!(0,M.Jd)()&&{title:E.createElement("span",null,"\u6700\u7EC8\u6210\u7EE9",E.createElement(P.Z,{placement:"top",title:E.createElement("pre",null,"\u9F20\u6807\u505C\u7559\u5177\u4F53\u5206\u503C\u4E0A\u53EF\u67E5",E.createElement("br",null),"\u770B\u5F97\u5206\u660E\u7EC6",E.createElement("br",null))},E.createElement("img",{src:`${z.Z.IMG_SERVER}/images/educoder/problem.png`,className:"ml2 current"}))),dataIndex:"work_score",sorter:!0,align:"center",showSorterTooltip:!1,sortOrder:W.order==="work_score"?W.b_order==="desc"?"descend":"ascend":null,ellipsis:{showTitle:!1},render:(b,J)=>{var Bt;let vu;const{unadjusted_score:ou,is_adjusted:Zu}=J||{};return b>=0&&b<=60?vu=E.createElement("span",{className:"c-red"},Zu?`${b}(\u5DF2\u8C03\u5206)`:b):b===100?vu=E.createElement("span",{className:"c-green"},Zu?`${b}(\u5DF2\u8C03\u5206)`:b):b>60?vu=E.createElement("span",{className:"c-orange"},Zu?`${b}(\u5DF2\u8C03\u5206)`:b):vu="--",E.createElement(P.Z,{placement:"bottom",title:J.ultimate_score?E.createElement("div",null,vu==="--"?"\u6700\u7EC8\u8C03\u6574\u6210\u7EE9\uFF1A0\u5206":`\u6700\u7EC8\u8C03\u6574\u6210\u7EE9\uFF1A${J.work_score}\u5206`):E.createElement("div",null,E.createElement("div",null,J.final_score?`\u5173\u5361\u5F97\u5206\uFF1A${J.final_score}\u5206`:"\u5173\u5361\u5F97\u5206\uFF1A0\u5206"),E.createElement("div",null,J.eff_score?`\u6548\u7387\u8BC4\u5206\uFF1A${J.eff_score}\u5206`:"\u6548\u7387\u8BC4\u5206\uFF1A0\u5206"),E.createElement("div",null,J.repeat_minus_score?`\u67E5\u91CD\u6263\u5206\uFF1A${J.repeat_minus_score}\u5206`:"\u67E5\u91CD\u6263\u5206\uFF1A0\u5206"),E.createElement("div",null,J.late_penalty?`\u8865\u4EA4\u6263\u5206\uFF1A${J.late_penalty}\u5206`:"\u8865\u4EA4\u6263\u5206\uFF1A0\u5206"),!((Bt=t.headerInfo)!=null&&Bt.answer_open_evaluation)&&E.createElement("div",null,"\u67E5\u770B\u53C2\u8003\u7B54\u6848\uFF1A",J.view_answer_count,"\u5173"),E.createElement("div",null,"\u539F\u59CB\u6210\u7EE9\uFF1A",ou==="--"?ou:`${ou}\u5206`),E.createElement("div",null,J.work_score?`\u6700\u7EC8\u6210\u7EE9\uFF1A${J.work_score}\u5206`:"\u6700\u7EC8\u6210\u7EE9\uFF1A0\u5206"))},vu)}},{title:E.createElement("span",null,"\u5B8C\u6210\u65F6\u95F4"),dataIndex:"finished_time",align:"center",ellipsis:!1,showSorterTooltip:!1,sorter:!0,sortOrder:W.order==="finished_time"?W.b_order==="desc"?"descend":"ascend":null,render:(b,J)=>b?E.createElement(P.Z,{placement:"bottomLeft",title:b},b&&b!="--"?D()(b).format(la?"HH:mm":"YYYY-MM-DD HH:mm"):b):"--"},{title:E.createElement("span",null,"\u5B9E\u8BAD\u603B\u8017\u65F6"),dataIndex:"cost_time",align:"center",ellipsis:!1,showSorterTooltip:!1,sorter:!0,sortOrder:W.order==="cost_time"?W.b_order==="desc"?"descend":"ascend":null,render:(b,J)=>b?E.createElement(P.Z,{placement:"bottomLeft",title:b},b):"--"},{title:"\u901A\u5173\u60C5\u51B5",align:"center",dataIndex:"complete_info",ellipsis:{showTitle:!1},render:(b,J)=>E.createElement(E.Fragment,null,E.createElement("span",{style:{color:"#0152d9"},onClick:Bt=>{Bt.stopPropagation(),Wa(J),ra(!0)}},b),(0,M.dE)()&&([-1,0,1].includes(J==null?void 0:J.work_status)&&(J==null?void 0:J.complete_info_condition)||!(J!=null&&J.complete_info_condition)&&[2,3,4].includes(J==null?void 0:J.work_status))&&E.createElement(P.Z,{title:"\u4F5C\u4E1A\u72B6\u6001\u4E0E\u901A\u5173\u60C5\u51B5\u4E0D\u5339\u914D\uFF0C\u53EF\u70B9\u51FB\u66F4\u65B0\u6210\u7EE9\u6309\u94AE\u83B7\u53D6\u6700\u65B0\u6210\u7EE9"},E.createElement("i",{className:"iconfont icon-tishi3",style:{color:"#F59A23"}})))},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"sum_evaluate_count",align:"center",ellipsis:{showTitle:!1},sorter:!0,sortOrder:W.order==="sum_evaluate_count"?W.b_order==="desc"?"descend":"ascend":null,render:(b,J)=>b&&b!="--"?E.createElement(P.Z,{placement:"bottom",title:b},E.createElement("span",{className:"current"},b)):"--"},!la&&{title:"\u64CD\u4F5C",dataInex:"action",align:"center",ellipsis:!0,className:"workListTable",render:(b,J)=>{var Bt,vu,ou,Zu;return(0,M.dE)()?E.createElement("div",null,(0,j.JL)(J==null?void 0:J.work_status)==="\u672A\u5F00\u542F"?E.createElement("span",null,"--"):E.createElement("a",{target:"_blank",onClick:Mu=>{var Uu,wn;if((wn=(Uu=t==null?void 0:t.headerInfo)==null?void 0:Uu.homework_status)!=null&&wn.includes("\u5BFC\u5165")){Mu.stopPropagation(),Wa(J),ra(!0);return}Mu.stopPropagation(),window.open(`/classrooms/${W.coursesId}/shixun_homework/${W.categoryId}/${J.id}/comment`)}},"\u67E5\u770B")):(vu=(Bt=t==null?void 0:t.headerInfo)==null?void 0:Bt.homework_status)!=null&&vu.includes("\u5BFC\u5165")?(0,M.GJ)()&&E.createElement("span",{style:{color:"#0152d9"},onClick:Mu=>{var Uu;Mu.stopPropagation(),n({type:"classroomList/setActionTabs",payload:{key:"\u4FEE\u6539\u6210\u7EE9",name:(Uu=t==null?void 0:t.headerInfo)==null?void 0:Uu.homework_name,id:J==null?void 0:J.id,type:"practice"}})}},"\u4FEE\u6539\u6210\u7EE9"):E.createElement("div",null,E.createElement("span",{style:{color:"#0152d9"},onClick:(0,Se.throttle)(Mu=>fu(void 0,null,function*(){if((0,M.Rm)()&&!le.AssistantObject.practice.can_appraise){i.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Mu.stopPropagation(),n({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:"",data:{name:J==null?void 0:J.user_name,homeworkId:J==null?void 0:J.id}}}})}),2e3,{trailing:!1,leading:!0})},J.has_shixun_work_comment?"\u66F4\u6539\u70B9\u8BC4":"\u8FFD\u52A0\u70B9\u8BC4"),(J==null?void 0:J.work_status)!==0&&[1,2,3,4].includes(J==null?void 0:J.work_status)&&[E.createElement("br",null),E.createElement("a",{target:"_blank",onClick:(0,Se.throttle)(Mu=>fu(void 0,null,function*(){var Uu,wn,qa,$a,el;if(Mu.stopPropagation(),Mu.preventDefault(),(0,M.Rm)()&&!((Uu=le.AssistantObject.practice)!=null&&Uu.can_view)){i.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}if((wn=U.userInfo)!=null&&wn.professional_certification){const Un=yield(0,x.GS)(J==null?void 0:J.id);(qa=Un==null?void 0:Un.data)!=null&&qa.url&&(0,j.xg)((($a=Un==null?void 0:Un.data)==null?void 0:$a.url)+`?courseGroup=${(W==null?void 0:W.course_group)||""}&workStatus=${((el=W==null?void 0:W.work_status)==null?void 0:el.filter(tl=>tl!=0&&tl!=-1))||""}&search=${(W==null?void 0:W.search)||""}`)}else return s.default.confirm({title:"\u63D0\u793A",centered:!0,content:E.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,j.xg)("/account/certification")}}),!1}),5e3,{trailing:!1,leading:!0})},"\u67E5\u770B\u5B9E\u8BAD")],((Zu=(ou=t==null?void 0:t.headerInfo)==null?void 0:ou.homework_status)==null?void 0:Zu[0])!=="\u5DF2\u622A\u6B62"&&!!J.myshixun_id&&[E.createElement("br",null),E.createElement("span",{className:ue.color32C,onClick:Mu=>{Mu.stopPropagation(),n({type:"shixunHomeworks/setActionTabs",payload:{key:"\u6253\u56DE\u91CD\u505A",selectArrs:J,params:W,homework_common_id:W.categoryId}})}},"\u6253\u56DE\u91CD\u505A")])}}].filter(b=>!!b),Pr=()=>{var b,J,Bt,vu;return E.createElement(N.default,null,E.createElement(N.default.Item,{onClick:()=>{var ou,Zu;if((0,M.Rm)()&&!((ou=le.AssistantObject.practice)!=null&&ou.can_download)){i.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}n({type:"classroomList/setActionTabs",payload:{key:"\u9009\u62E9\u73ED\u7EA7",title:"\u5BFC\u51FA\u5B66\u751F\u6210\u7EE9",course_groups:(Zu=t==null?void 0:t.headerInfo)==null?void 0:Zu.course_group_info,fn:()=>{(0,fn.Iy)(JSON.parse(sessionStorage.all_student_works_params),"shixun_work_list")}}})},key:"1"},"\u5B66\u751F\u6210\u7EE9"),(0,M.GJ)()&&((b=nu==null?void 0:nu.student_works)==null?void 0:b.length)>0&&!((Bt=(J=t==null?void 0:t.headerInfo)==null?void 0:J.homework_status)!=null&&Bt.includes("\u5BFC\u5165"))&&E.createElement(N.default.Item,{key:"3",onClick:()=>{var ou,Zu;if((0,M.Rm)()&&!((ou=le.AssistantObject.practice)!=null&&ou.can_download)){i.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}n({type:"classroomList/setActionTabs",payload:{key:"\u9009\u62E9\u73ED\u7EA7",title:"\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A",course_groups:(Zu=t==null?void 0:t.headerInfo)==null?void 0:Zu.course_group_info,fn:()=>{s.default.confirm({title:"\u9009\u62E9\u5BFC\u51FA\u65B9\u5F0F",closable:!0,icon:null,centered:!0,okText:E.createElement(P.Z,{title:"\u5BFC\u51FA\u65F6\u4E0D\u80FD\u9000\u51FA\u6216\u5173\u95ED\u5BFC\u51FA\u9875\u9762\uFF0C\u53EF\u80FD\u4F1A\u5F71\u54CD\u5176\u4ED6\u64CD\u4F5C"},"\u524D\u7AEF\u5BFC\u51FA"),cancelText:E.createElement(P.Z,{title:"\u751F\u6210\u5BFC\u51FA\u4EFB\u52A1\u540E\u53EF\u5173\u95ED\u9875\u9762\uFF0C\u540E\u53F0\u5BFC\u51FA\u6210\u529F\u540E\u5728\u5386\u53F2\u5BFC\u51FA\u9875\u9762\u81EA\u884C\u4E0B\u8F7D\uFF0C\u4E0D\u5F71\u54CD\u5176\u4ED6\u64CD\u4F5C"},"\u540E\u53F0\u5BFC\u51FA"),onOk:()=>{var Mu,Uu;n({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A",type:2}}),localStorage.setItem("dowolders","1"),o.history.push(`/classrooms/${W==null?void 0:W.coursesId}/shixun_homework/${W.categoryId}/${(Uu=(Mu=nu==null?void 0:nu.student_works)==null?void 0:Mu[0])==null?void 0:Uu.id}/comment`)},onCancel:()=>{},cancelButtonProps:{onClick:()=>{(0,fn.jj)(JSON.parse(sessionStorage.all_student_works_params),"shixun_report")}}})}}})}},"\u5B9E\u8BAD\u62A5\u544A"),((vu=t==null?void 0:t.headerInfo)==null?void 0:vu.start_permanent)&&E.createElement(N.default.Item,{onClick:()=>fu(void 0,null,function*(){let ou=yield(0,v.ZP)(`/api/homework_commons/${W.categoryId}/export_workspace_files.json`,{method:"post",body:{is_repeat_export:0}});ou.status===0&&o.history.push(`/classrooms/${W.coursesId}/exportlist/workspace_files`),ou.status===-3&&(n({type:"classroomList/setActionTabs",payload:{key:"\u91CD\u590D\u5BFC\u51FA\u63D0\u9192",params:W}}),o.history.push(`/classrooms/${W.coursesId}/exportlist/workspace_files`))}),key:"4"},"\u5B9E\u9A8C\u6570\u636E"),E.createElement(N.default.Item,{key:"2",onClick:()=>{var ou;if((0,M.Rm)()&&!((ou=le.AssistantObject.practice)!=null&&ou.can_download)){i.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}o.history.push(`/classrooms/${W==null?void 0:W.coursesId}/exportlist/shixun_work_list,shixun_report`)}},"\u5386\u53F2\u5BFC\u51FA"))},Sr=b=>b.replace(/\\\(([\s\S]*?)\\\)/g,"$$$$$1$$$$").replace(/\\\[([\s\S]*?)\\\]/g,"$$$$$1$$$$").replace(/`(\$\$.*?\$\$)`/g,"$$$$$1$$$$").replace(/_{2,}/g,"`$&`"),[ca,Ga]=(0,e.useState)(!1),[Va,da]=(0,e.useState)(""),Kn=(0,e.useRef)(null),Ir=()=>fu(void 0,null,function*(){var b;Ga(!0),Kn.current=new pn.Z(z.Z.API_SERVER+"/api/stream/intelligent_imports/chat_messages.json",{response_mode:"streaming",model:"qwen-max",scene_awareness:!1,thinking_enabled:!1,image_generator:!1,file_ids:[],history:[],prompt:En,shixun_id:(b=t==null?void 0:t.headerInfo)==null?void 0:b.shixun_identifier,source:"shixun",is_chat:!1,type:9,description:En,query:`# \u521D\u59CB\u5316\u7D2F\u52A0\u5668 -sum = 0 -# \u4F7F\u7528for\u5FAA\u73AF\u904D\u53861\u5230100 -for i in range(1, 101): -sum += i # \u5C06\u5F53\u524D\u503C\u52A0\u5230sum\u4E2D -# \u8F93\u51FA\u7ED3\u679C -print("1\u5230100\u7684\u7D2F\u52A0\u548C\u4E3A:", sum)`}),yield new Promise((J,Bt)=>{Kn.current.on("data",vu=>{da(Sr(vu==null?void 0:vu.full))}),Kn.current.on("done",()=>fu(void 0,null,function*(){Ga(!1)})),Kn.current.startStream()})}),Xa=()=>{var b;(0,v.ZP)(`/api/shixun_homeworks/${W.categoryId}/batch_comments.json`,{method:"post",body:{ai_code_evaluation_promote:En}}),sa(!1),Mn((b=t==null?void 0:t.headerInfo)==null?void 0:b.ai_code_evaluation_promote),da("")};return E.createElement(E.Fragment,null,E.createElement("section",{className:`${ue.wrap} minH500 bg-white pl30 pr30 pt30`},((h=(q=t==null?void 0:t.headerInfo)==null?void 0:q.homework_status)==null?void 0:h.includes("\u672A\u53D1\u5E03"))&&E.createElement(O.Z,null),!!Oa.length&&E.createElement(R.default,{className:"mb10",dataSource:Oa,columns:Ya,pagination:!1,showHeader:!1,loading:!1}),!((it=(ae=t==null?void 0:t.headerInfo)==null?void 0:ae.homework_status)!=null&&it.includes("\u672A\u53D1\u5E03"))&&E.createElement("aside",null,!(0,M.GJ)()&&E.createElement("div",{className:"c-light-black font12"},E.createElement("span",null,"\u5DF2\u5F00\u59CB\u505A\u9898 ",((Le=t==null?void 0:t.shixunWorkList)==null?void 0:Le.commit_count)||0," \u4EBA"),E.createElement("span",{className:"ml5"},"\u672A\u5F00\u59CB\u505A\u9898 ",((Ne=t==null?void 0:t.shixunWorkList)==null?void 0:Ne.uncommit_count)||0," \u4EBA"),((Ye=t==null?void 0:t.headerInfo)==null?void 0:Ye.left_time)&&E.createElement(E.Fragment,null,E.createElement("span",{className:"ml20 c-black"},(Oe=(Wt=t==null?void 0:t.headerInfo)==null?void 0:Wt.left_time)==null?void 0:Oe.status),E.createElement("span",{className:"ml20 c-orange-ff9"},(ne=(ht=t==null?void 0:t.headerInfo)==null?void 0:ht.left_time)==null?void 0:ne.time))),(0,M.GJ)()&&E.createElement(E.Fragment,null,E.createElement(we.default,{form:St,onChange:xr,initialValues:{task_status:"all",course_group_info:"all",teacher_comment:"all"}},((bt=(ct=t==null?void 0:t.headerInfo)==null?void 0:ct.task_status)==null?void 0:bt.length)>0&&E.createElement(we.default.Item,{name:"task_status"},E.createElement(p.default.Group,{value:[],style:{width:"100%"}},E.createElement(he.Z,null,E.createElement(w.Z,{className:"font14",flex:"80px"},"\u4F5C\u4E1A\u72B6\u6001:"),E.createElement(w.Z,{flex:"80px"},E.createElement(p.default,{value:"all"},"\u5168\u90E8")),E.createElement(w.Z,{flex:"1"},(($t=t==null?void 0:t.headerInfo)==null?void 0:$t.task_status)&&((Ce=t==null?void 0:t.headerInfo)==null?void 0:Ce.task_status.map((b,J)=>E.createElement(p.default,{name:"task_status",value:b.id},b.name,"(",b.count,")",b.name==="\u622A\u6B62\u540E\u901A\u5173"?E.createElement(P.Z,{title:"\u5728\u89C4\u5B9A\u65F6\u95F4\u5916\u5B8C\u6210\u7684\u4F5C\u4E1A"},E.createElement("i",{className:"font13 ml5 iconfont icon-tishixiaowenhao"})):null))))))),((Lt=(We=t==null?void 0:t.headerInfo)==null?void 0:We.course_group_info)==null?void 0:Lt.length)>0&&E.createElement(we.default.Item,{name:"course_group_info"},E.createElement(p.default.Group,{style:{width:"100%"}},E.createElement(he.Z,null,E.createElement(w.Z,{className:"font14",flex:"80px",style:{marginBottom:10}},"\u5206\u73ED\u60C5\u51B5:"),E.createElement(w.Z,{flex:"80px"},E.createElement(p.default,{value:"all"},"\u5168\u90E8")),E.createElement(w.Z,{flex:"1",id:"divhe",style:{height:jn+"px",overflow:"hidden"}},(_e=(wt=t==null?void 0:t.headerInfo)==null?void 0:wt.course_group_info)==null?void 0:_e.map((b,J)=>E.createElement(p.default,{value:b.course_group_id},b.group_group_name,"(",b.count,")"))),Er&&E.createElement("span",{onClick:()=>{let b=document.getElementById("divhe").scrollHeight;jn>47?aa(47):aa(b)},style:{color:"rgb(76, 172, 255)",cursor:"pointer",alignItems:"flex-end",display:"flex"}},jn===47?"\u5C55\u5F00":"\u6536\u8D77",jn===47?E.createElement(Ct.Z,{style:{marginBottom:"3px",marginLeft:"2px"}}):E.createElement(dt.Z,{style:{marginBottom:"3px",marginLeft:"2px"}}))))),((be=(I=t==null?void 0:t.headerInfo)==null?void 0:I.teacher_comment)==null?void 0:be.length)>0&&E.createElement(we.default.Item,{name:"teacher_comment"},E.createElement(p.default.Group,{style:{width:"100%"}},E.createElement(he.Z,null,E.createElement(w.Z,{className:"font14",flex:"80px"},"\u8FFD\u52A0\u70B9\u8BC4:"),E.createElement(w.Z,{flex:"80px"},E.createElement(p.default,{value:"all"},"\u5168\u90E8")),E.createElement(w.Z,{flex:"1"},((Te=t==null?void 0:t.headerInfo)==null?void 0:Te.teacher_comment)&&((Ve=t==null?void 0:t.headerInfo)==null?void 0:Ve.teacher_comment.map((b,J)=>E.createElement(p.default,{value:String(b.id)},b.name,"(",b.count,")")))))))),E.createElement(he.Z,{align:"middle"},E.createElement(w.Z,{flex:"1"},E.createElement(he.Z,{align:"middle"},E.createElement(w.Z,null,E.createElement(Ee.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",onSearch:b=>{W.search=b.trim(),W.page=1,Vu()},style:{width:240}})),E.createElement(w.Z,null,E.createElement("span",{className:"ml5"},E.createElement("span",{className:"c-red"},(Pt=t==null?void 0:t.shixunWorkList)==null?void 0:Pt.total_count),"\u4E2A\u68C0\u7D22\u7ED3\u679C\uFF08",(vt=t==null?void 0:t.shixunWorkList)==null?void 0:vt.total_count,"\u4E2A\u5B66\u751F\uFF09")))),E.createElement(w.Z,null,((pu=(Kt=t==null?void 0:t.headerInfo)==null?void 0:Kt.homework_status)==null?void 0:pu.includes("\u5DF2\u622A\u6B62"))&&E.createElement(Z.ZP,{className:"ml10",onClick:()=>{var b;sa(!0),Mn(Ar||((b=t==null?void 0:t.headerInfo)==null?void 0:b.ai_code_evaluation_promote))}},E.createElement("span",{className:`${ue.tr1} iconfont icon-yijiandaimapingjia mr5`}),"\u667A\u80FD\u4EE3\u7801\u8BC4\u4EF7"),(0,M.GJ)()&&((He=t==null?void 0:t.headerInfo)==null?void 0:He.code_review)&&!((mu=(ru=t==null?void 0:t.headerInfo)==null?void 0:ru.homework_status)!=null&&mu.includes("\u5BFC\u5165"))&&E.createElement(Z.ZP,{className:"ml10",onClick:()=>{n({type:"shixunHomeworks/setActionTabs",payload:{key:"\u4EE3\u7801\u67E5\u91CD",selectArrs:nu.student_works.map(b=>b.id),params:W}})}},E.createElement("span",{className:`${ue.tr1} iconfont icon-daimachazhong mr5`}),"\u4EE3\u7801\u67E5\u91CD"),(0,M.GJ)()&&uu&&E.createElement(Z.ZP,{className:"ml10",onClick:Dr},E.createElement("i",{className:"iconfont icon-gengxinchengji font14 pr5"}),"\u66F4\u65B0\u6210\u7EE9"),((Et=(Ie=t==null?void 0:t.headerInfo)==null?void 0:Ie.homework_status)==null?void 0:Et.includes("\u5DF2\u622A\u6B62"))&&(0,M.GJ)()&&E.createElement(Z.ZP,{className:"ml10",onClick:()=>{n({type:"shixunHomeworks/setActionTabs",payload:{key:"\u8D28\u91CF\u68C0\u6D4B",selectArrs:nu.student_works.map(b=>b.id),params:W}})}},E.createElement("i",{className:"iconfont icon-a-08zhiliang-xianxing font14 pr5"}),"\u8D28\u91CF\u8BC4\u5206"),!((Ut=(Je=t==null?void 0:t.headerInfo)==null?void 0:Je.homework_status)!=null&&Ut.includes("\u5BFC\u5165"))&&E.createElement(Z.ZP,{className:"ml10",onClick:()=>{var b,J;if((0,M.Rm)()&&!((J=(b=le.AssistantObject)==null?void 0:b.practice)!=null&&J.can_appraise)){i.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}n({type:"shixunHomeworks/setActionTabs",payload:{key:"\u4E00\u952E\u70B9\u8BC4",selectArrs:nu.student_works.map(Bt=>Bt.id),params:W}})}},E.createElement(et.Z,{className:"mr5"}),"\u4E00\u952E\u70B9\u8BC4"),(((Tt=(gt=t==null?void 0:t.headerInfo)==null?void 0:gt.homework_status)==null?void 0:Tt.includes("\u63D0\u4EA4\u4E2D"))||((Pu=(Dt=t==null?void 0:t.headerInfo)==null?void 0:Dt.homework_status)==null?void 0:Pu.includes("\u8865\u4EA4\u4E2D"))||((Cu=(Ge=t==null?void 0:t.headerInfo)==null?void 0:Ge.homework_status)==null?void 0:Cu.includes("\u8FDB\u884C\u4E2D")))&&E.createElement(Z.ZP,{className:"ml10",onClick:()=>{var b;if((0,M.Rm)()&&!((b=le.AssistantObject.practice)!=null&&b.can_redo)){i.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Tn(!0),fu(void 0,null,function*(){const Bt=yield(0,v.ZP)(`/api/homework_commons/${W==null?void 0:W.categoryId}/teacher_manage_groups.json`,{method:"get",params:JSON.parse(sessionStorage.all_student_works_params)});Bt.status===0&&(console.log("\u53D1\u9001\u8BF7\u6C42\u4E86",Bt),za(Bt.data.list),Ua(Bt.data.list))})}},"\u4E00\u952E\u6253\u56DE"),(0,M.GJ)()&&E.createElement($.Z,{dropdownRender:Pr,className:"ml10"},E.createElement(Z.ZP,null,E.createElement(zt.Z,null),"\u5BFC\u51FA",E.createElement(Vt.Z,null)))))),(0,M.Gg)()&&((Su=t==null?void 0:t.headerInfo)==null?void 0:Su.start_permanent)&&E.createElement(he.Z,{style:{marginTop:"15px",display:"inline-flex",background:"#F5F5F5",borderRadius:4,height:42,lineHeight:"40px",width:"100%",padding:"0px 10px",alignItems:"center",color:"#9096A3"}},E.createElement("span",null,"\u5B66\u751F\u4F5C\u4E1A\u7684\u5B9E\u9A8C\u73AF\u5883\u4E34\u65F6\u6570\u636E\uFF08/data/workspace\u76EE\u5F55\uFF09\u5C06\u957F\u671F\u4FDD\u5B58 \uFF0C\u6559\u5E08\u53EF\u901A\u8FC7\u201C\u5BFC\u51FA-\u5B9E\u9A8C\u6570\u636E\u201D\u529F\u80FD\u4E0B\u8F7D\u5B9E\u9A8C\u73AF\u5883\u4E34\u65F6\u6570\u636E\u3002")),E.createElement(he.Z,{style:{justifyContent:"end",marginTop:"5px"}},(0,M.GJ)()&&uu&&E.createElement("span",null,E.createElement("span",{style:{color:"red"}},"*"),"\u5217\u8868\u4E2D\u4F5C\u4E1A\u8BB0\u5F55\u5B58\u5728\u5DEE\u5F02\uFF0C\u8BF7\u70B9\u51FB\u201C\u66F4\u65B0\u6210\u7EE9\u201D\u6309\u94AE")),!((iu=(Iu=t==null?void 0:t.headerInfo)==null?void 0:Iu.homework_status)!=null&&iu.includes("\u5BFC\u5165"))&&E.createElement(he.Z,{align:"middle",className:ue.refresh},E.createElement(w.Z,{flex:"121px",className:"flex-container"},E.createElement(fe.Z,{checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED",defaultChecked:la,onChange:b=>{pr(b)}})," ",E.createElement("span",{className:"ml8"},"\u7B80\u6D01\u6A21\u5F0F")),(((Au=(ju=t==null?void 0:t.headerInfo)==null?void 0:ju.homework_status)==null?void 0:Au.includes("\u63D0\u4EA4\u4E2D"))||((nn=(yu=t==null?void 0:t.headerInfo)==null?void 0:yu.homework_status)==null?void 0:nn.includes("\u8865\u4EA4\u4E2D"))||((Lu=(_u=t==null?void 0:t.headerInfo)==null?void 0:_u.homework_status)==null?void 0:Lu.includes("\u8FDB\u884C\u4E2D")))&&(0,M.GJ)()&&E.createElement(w.Z,null,E.createElement("div",{className:"flex-container"},E.createElement(fe.Z,{className:"ml20",checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED",defaultChecked:!!sessionStorage.getItem("classroomsShixunDetailAutoRefersh"),onChange:b=>{b?sessionStorage.setItem("classroomsShixunDetailAutoRefersh","true"):sessionStorage.removeItem("classroomsShixunDetailAutoRefersh"),Ja(b)}}),E.createElement("span",{className:"ml8"},"\u81EA\u52A8\u5237\u65B0\uFF08\u5F00\u542F\u540E\u6BCF10S\u66F4\u65B0\u4E00\u6B21\u6570\u636E\uFF09"))),(0,M.dE)()&&(nu==null?void 0:nu.work_status)!=0&&E.createElement(w.Z,{flex:1},E.createElement(he.Z,{align:"middle",justify:"end"},E.createElement(w.Z,null,E.createElement(r.op,{style:{borderRadius:2},type:"default",openLoading:!0,onClick:()=>fu(void 0,null,function*(){var b;if(Hn.current){i.ZP.warning("\u60A8\u5DF2\u53D1\u9001\u66F4\u65B0\u6210\u7EE9\u8BF7\u6C42\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85\u6216\u624B\u52A8\u5237\u65B0\u9875\u9762");return}Hn.current=setInterval(()=>{clearInterval(Hn.current),Hn.current=null},60*1e3);const J=yield(0,v.ZP)(`/api/homework_commons/${cu==null?void 0:cu.categoryId}/update_student_score.json`,{method:"get",params:{shixun_id:(b=t==null?void 0:t.headerInfo)==null?void 0:b.shixun_id}});(J==null?void 0:J.status)==0&&(i.ZP.success(J==null?void 0:J.message),Vu(!0))})},"\u66F4\u65B0\u6210\u7EE9"))))),E.createElement(R.default,{className:"mt30",loading:l["shixunHomeworks/getShixunWorkList"],pagination:!1,style:{cursor:"pointer"},onRow:b=>({onClick:J=>{var Bt,vu,ou;if((0,M.Rm)()&&!((Bt=le.AssistantObject.practice)!=null&&Bt.can_view)){i.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}(ou=(vu=t==null?void 0:t.headerInfo)==null?void 0:vu.homework_status)!=null&&ou.includes("\u5BFC\u5165")||window.open(`/classrooms/${W.coursesId}/shixun_homework/${W.categoryId}/${b.id}/comment`,"_blank")}}),dataSource:nu.student_works,columns:Ya,onChange:(b,J,Bt)=>{Bt.field&&(W.order=Bt.field),Bt.order||(W.b_order="asc"),Bt.order==="ascend"&&(W.b_order="asc"),Bt.order==="descend"&&(W.b_order="desc"),Bt.order||(W.b_order="asc"),Vu()}}),E.createElement(ye,null),E.createElement(ke,{paramslist:W}),E.createElement(mt.Z,null)),E.createElement(s.default,{title:"\u4E00\u952E\u6253\u56DE\u91CD\u505A",open:cr,centered:!0,destroyOnClose:!0,forceRender:!0,width:700,onOk:()=>fu(void 0,null,function*(){if(cn===2){if(_n.length<=0){i.ZP.info("\u8BF7\u9009\u62E9\u4F5C\u4E1A\u72B6\u6001");return}if(!An){i.ZP.info("\u8BC4\u8BED\u4E0D\u80FD\u4E3A\u7A7A");return}let b=yield(0,v.ZP)(`/api/homework_commons/${W.categoryId}/confirm_redo_modal.json`,{method:"post",body:{id:W.categoryId,comment:An,status:_n,course_group_ids:bn.current}});b.status===0&&(Ka(b.course_group_count),Za(b),Tn(!1),Dn(!0))}else{if(!(mn===0||dn===0)){if(!mn){i.ZP.info("\u6700\u4F4E\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}if(!dn){i.ZP.info("\u6700\u9AD8\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}}if(mn>dn){i.ZP.info("\u6700\u9AD8\u5206\u4E0D\u80FD\u5927\u4E8E\u6700\u4F4E\u5206");return}if(!An){i.ZP.info("\u8BC4\u8BED\u4E0D\u80FD\u4E3A\u7A7A");return}let b=yield(0,v.ZP)(`/api/homework_commons/${W.categoryId}/confirm_redo_modal.json`,{method:"post",body:{id:W.categoryId,comment:An,min_score:mn,max_score:dn,course_group_ids:bn.current}});b.status===0&&(Ka(b.course_group_count),Za(b),Tn(!1),Dn(!0))}}),onCancel:()=>{Tn(!1),Qn()}},E.createElement("div",{style:{padding:"32px"}},E.createElement("div",null,E.createElement("div",{style:{display:"flex",marginBottom:"12px"}},E.createElement("div",{style:{flexShrink:"0",marginRight:"15px"}}," ",E.createElement("span",{style:{color:"red"}},"*"),"\u5206\u73ED\uFF1A"),E.createElement("div",{className:Ln.length>15?ue.scroll:"",style:{overflowX:"hidden"}},Ln==null?void 0:Ln.map((b,J)=>E.createElement(p.default,{style:{textAlign:"left",margin:"0"},value:b.course_group_id,key:b.course_group_id,onChange:()=>{br(b.course_group_id,Ln)},checked:b.checked},b.group_group_name,"(",b.count,")")))),E.createElement("div",null,E.createElement("span",{style:{width:"80px"}},"\u6253\u56DE\u65B9\u5F0F\uFF1A"),E.createElement(re.ZP.Group,{value:cn,onChange:b=>{Ta(b.target.value)}},E.createElement(re.ZP,{value:1},"\u6309\u6210\u7EE9\u6253\u56DE"),E.createElement(re.ZP,{value:2},"\u6309\u4F5C\u4E1A\u72B6\u6001\u6253\u56DE"))),cn===1&&E.createElement("div",{style:{display:"flex",marginTop:"20px"}},E.createElement("span",{style:{width:"70px",textAlign:"end"}},E.createElement("span",{style:{color:"red"}},"*"),"\u6700\u4F4E\u5206\uFF1A"),E.createElement(Ze.Z,{min:0,max:100,value:mn,onChange:b=>La(b),style:{width:"100px"}}),E.createElement("span",{style:{width:"80px",textAlign:"end"}},E.createElement("span",{style:{color:"red"}},"*"),"\u6700\u9AD8\u5206\uFF1A"),E.createElement(Ze.Z,{min:0,max:100,value:dn,onChange:b=>ja(b),style:{width:"100px"}})),cn===2&&E.createElement("div",{style:{display:"flex",marginTop:"20px"}},E.createElement("span",{style:{width:"80px"}},"\u4F5C\u4E1A\u72B6\u6001\uFF1A"),E.createElement(p.default.Group,{onChange:b=>{Na([...b])},style:{width:"100%"}},(hn=(an=t==null?void 0:t.headerInfo)==null?void 0:an.task_status)==null?void 0:hn.map((b,J)=>E.createElement(p.default,{name:"task_status",value:b.id},b.name,"(",b.count,")")))),E.createElement("div",{style:{display:"flex",marginTop:"20px"}},E.createElement("span",{style:{width:"70px",textAlign:"end"}},E.createElement("span",{style:{color:"red"}},"*")," \u8BC4\u8BED\uFF1A"),E.createElement(A.Z,{className:ue.MdEditor,onChange:b=>Ma(b),placeholder:"\u8BF7\u586B\u5199\u8BC4\u8BED"}))))),E.createElement(s.default,{open:dr,title:"\u6253\u56DE\u786E\u8BA4",onOk:()=>fu(void 0,null,function*(){cn===2?(yield(0,v.ZP)(`/api/homework_commons/${W.categoryId}/batch_redo_modal.json`,{method:"post",body:{id:W.categoryId,comment:An,status:_n,course_group_ids:bn.current}})).status===0&&(i.ZP.info("\u6253\u56DE\u6210\u529F"),Qn(),Vu(),Dn(!1)):(yield(0,v.ZP)(`/api/homework_commons/${W.categoryId}/batch_redo_modal.json`,{method:"post",body:{id:W.categoryId,comment:An,min_score:mn,max_score:dn,course_group_ids:bn.current}})).status===0&&(i.ZP.info("\u6253\u56DE\u6210\u529F"),Qn(),Vu(),Dn(!1))}),onCancel:()=>{Qn(),Dn(!1)}},E.createElement("div",{style:{padding:"32px"}},cn===1&&E.createElement("span",null,"\u786E\u8BA4\u5C06\u9009\u4E2D\u7684",Qa,"\u4E2A\u73ED\u7EA7\u4E2D, \u6210\u7EE9\u5728",mn,"-",dn,"\u7684\u5B66\u751F\u8FDB\u884C\u6253\u56DE\u91CD\u505A\u5417\uFF1F"),cn===2&&E.createElement("span",null,"\u786E\u8BA4\u5C06",Qa,"\u4E2A\u73ED\u7EA7\u4E2D\u4F5C\u4E1A\u72B6\u6001\u5728",(ce=(sn=t==null?void 0:t.headerInfo)==null?void 0:sn.task_status)==null?void 0:ce.filter(b=>_n==null?void 0:_n.includes(b.id)).map(b=>b.name).toString(),"\u7684\u5B66\u751F\u8FDB\u884C\u4F5C\u4E1A\u6253\u56DE\u91CD\u505A\u5417\uFF1F"),E.createElement("br",null),E.createElement("span",null,"\u8BE5\u6761\u4EF6\u4E0B\u5171\u6709",Ra==null?void 0:Ra.count,"\u540D\u5B66\u751F"))),E.createElement(s.default,{centered:!0,open:hr,title:"\u667A\u80FD\u4EE3\u7801\u8BC4\u4EF7",width:800,zIndex:100,onOk:()=>fu(void 0,null,function*(){var b;if(!ca)if(((b=t==null?void 0:t.headerInfo)==null?void 0:b.ai_evaluation_times)>0)s.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u60A8\u4E4B\u524D\u5DF2\u8FDB\u884C\u8FC7\u6279\u91CF\u4EE3\u7801\u8BC4\u4EF7\uFF0C\u518D\u6B21\u64CD\u4F5C\u5C06\u4F1A\u8986\u76D6\u4E4B\u524D\u7684\u4EE3\u7801\u8BC4\u4EF7\u8BB0\u5F55\u3002\u662F\u5426\u786E\u5B9A\u64CD\u4F5C\uFF1F",onOk:()=>fu(void 0,null,function*(){let J=yield(0,v.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});(J==null?void 0:J.status)==0&&((J==null?void 0:J.total_number)==-1||(J==null?void 0:J.remaining_number)>0?(ia(En),xn(!0),Wn(!0),zn("\u6279\u91CF\u5BF9\u5B66\u751F\u4EE3\u7801\u8FDB\u884C\u4EE3\u7801\u8BC4\u4EF7\u9700\u8981\u8017\u8D39\u4E00\u5B9A\u65F6\u957F\uFF0C\u7A0D\u540E\u60A8\u53EF\u4EE5\u5728\u5B66\u751F\u7684\u5B9E\u8BAD\u62A5\u544A\u4E2D\u67E5\u770B"),Xa()):(J==null?void 0:J.remaining_number)==0&&(xn(!0),Wn(!1),zn(`\u4ECA\u65E5\u5927\u6A21\u578B\u4F7F\u7528\u673A\u4F1A\u5DF2\u7528\u5B8C\uFF08\u6BCF\u65E5${J==null?void 0:J.total_number}\u6B21\u673A\u4F1A\uFF0C\u4ECA\u65E5\u5269\u4F59${J==null?void 0:J.remaining_number}\u6B21\uFF09\u3002`)))})});else{let J=yield(0,v.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});(J==null?void 0:J.status)==0&&((J==null?void 0:J.total_number)==-1||(J==null?void 0:J.remaining_number)>0?(ia(En),xn(!0),Wn(!0),zn("\u6279\u91CF\u5BF9\u5B66\u751F\u4EE3\u7801\u8FDB\u884C\u4EE3\u7801\u8BC4\u4EF7\u9700\u8981\u8017\u8D39\u4E00\u5B9A\u65F6\u957F\uFF0C\u7A0D\u540E\u60A8\u53EF\u4EE5\u5728\u5B66\u751F\u7684\u5B9E\u8BAD\u62A5\u544A\u4E2D\u67E5\u770B"),Xa()):(J==null?void 0:J.remaining_number)==0&&(xn(!0),Wn(!1),zn(`\u4ECA\u65E5\u5927\u6A21\u578B\u4F7F\u7528\u673A\u4F1A\u5DF2\u7528\u5B8C\uFF08\u6BCF\u65E5${J==null?void 0:J.total_number}\u6B21\u673A\u4F1A\uFF0C\u4ECA\u65E5\u5269\u4F59${J==null?void 0:J.remaining_number}\u6B21\uFF09\u3002`)))}}),onCancel:()=>{var b;ca||(sa(!1),Mn((b=t==null?void 0:t.headerInfo)==null?void 0:b.ai_code_evaluation_promote),da(""))},okText:"\u5F00\u59CB\u8BC4\u4EF7",maskClosable:!1},E.createElement("div",{style:{color:"#333"}},E.createElement("div",null,"\u667A\u80FD\u52A9\u6559\u5C06\u6279\u91CF\u5BF9\u5DF2\u63D0\u4EA4\u4F5C\u4E1A\u5B66\u751F\u7684\u6BCF\u4E2A\u5173\u5361\u4EE3\u7801\u8FDB\u884C\u4EE3\u7801\u8BC4\u4EF7\u5E76\u4FDD\u5B58\u81F3\u5B9E\u8BAD\u62A5\u544A\uFF0C\u56FE\u5F62\u5316\u3001\u547D\u4EE4\u884C\u3001Vscode\u7F16\u8F91\u5668\u3001\u7406\u8BBA\u9898\u6A21\u5F0F\u7684\u4EFB\u52A1\u5173\u5361\u6682\u4E0D\u652F\u6301\u751F\u6210\u4EE3\u7801\u8BC4\u4EF7\u3002"),E.createElement("div",{className:"mt10"},"\u4EE5\u4E0B\u4E3A\u667A\u80FD\u52A9\u6559\u9ED8\u8BA4\u7684\u4EE3\u7801\u8BC4\u4EF7\u7EF4\u5EA6\uFF0C\u60A8\u53EF\u4EE5\u91CD\u65B0\u7F16\u8F91\u540E\u518D\u5F00\u59CB\u8BC4\u4EF7\u3002"),E.createElement(Ee.default.TextArea,{value:En,style:{borderRadius:"5px",margin:"15px 0 30px 0"},rows:3,onChange:b=>Mn(b.target.value)}),E.createElement("div",{style:{marginBottom:"15px"}},"\u4EE5\u4E0B\u4E3A\u4E00\u6BB5\u6D4B\u8BD5\u4EE3\u7801\u3002\u60A8\u53EF\u4F7F\u7528\u8BE5\u6BB5\u4EE3\u7801\u5BF9\u5DF2\u8BBE\u7F6E\u7684\u4EE3\u7801\u8BC4\u4EF7\u7EF4\u5EA6\u8FDB\u884C\u6D4B\u8BD5\uFF0C\u67E5\u770B\u8BC4\u4EF7\u6548\u679C\u3002"),E.createElement("div",{style:{padding:"12px 16px",background:"#F6F7F9"}},"# \u521D\u59CB\u5316\u7D2F\u52A0\u5668",E.createElement("br",null),"sum = 0",E.createElement("br",null),"# \u4F7F\u7528for\u5FAA\u73AF\u904D\u53861\u5230100",E.createElement("br",null),"for i in range(1, 101):",E.createElement("br",null),"sum += i # \u5C06\u5F53\u524D\u503C\u52A0\u5230sum\u4E2D",E.createElement("br",null),"# \u8F93\u51FA\u7ED3\u679C",E.createElement("br",null),'print("1\u5230100\u7684\u7D2F\u52A0\u548C\u4E3A:", sum)'),E.createElement("div",{className:ue.work_button,onClick:()=>{ca?i.ZP.warning("\u6B63\u5728\u751F\u6210\u8BC4\u8BBA\u4E2D\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002"):(ia(En),Ir())}},"\u6D4B\u8BD5\u8BC4\u4EF7\u6548\u679C"),Va&&E.createElement("div",{style:{width:"100%",height:"200px",overflowY:"auto",marginTop:"20px"}},E.createElement(V.Z,{value:Va,style:{fontSize:"14px"}})))),E.createElement(s.default,{centered:!0,open:Br,title:"\u63D0\u793A",width:700,footer:null,onCancel:()=>{xn(!1)},maskClosable:!1},E.createElement("div",{style:{color:"#333"}},Cr&&E.createElement("div",{style:{fontWeight:600,fontSize:"18px",textAlign:"center",marginBottom:"10px"}},"\u64CD\u4F5C\u6210\u529F\uFF01"),E.createElement("div",{style:{marginBottom:"20px",textAlign:"center"}},yr)))),E.createElement(pt,null),E.createElement(Qu,{isShow:vr,setIsShow:ra,item:gr,coursesId:W.coursesId,categoryId:W.categoryId}),E.createElement("aside",{className:"tc mb50 mt30"},E.createElement(Ae.Z,{showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!0,onChange:wr,current:W.page||1,pageSize:W.limit||20,total:(jt=t==null?void 0:t.shixunWorkList)==null?void 0:jt.total_count})))};var gn=(0,o.connect)(({shixunHomeworks:t,classroomList:l,loading:n,user:ee})=>({shixunHomeworks:t,classroomList:l,loading:n.effects,user:ee}))(Xu),Ot=u(59301),Jn=Object.defineProperty,Fn=Object.getOwnPropertySymbols,Yn=Object.prototype.hasOwnProperty,Pn=Object.prototype.propertyIsEnumerable,Gn=(t,l,n)=>l in t?Jn(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,wu=(t,l)=>{for(var n in l||(l={}))Yn.call(l,n)&&Gn(t,n,l[n]);if(Fn)for(var n of Fn(l))Pn.call(l,n)&&Gn(t,n,l[n]);return t},ma=(t,l,n)=>new Promise((ee,le)=>{var U=h=>{try{q(n.next(h))}catch(ae){le(ae)}},pe=h=>{try{q(n.throw(h))}catch(ae){le(ae)}},q=h=>h.done?ee(h.value):Promise.resolve(h.value).then(U,pe);q((n=n.apply(t,l)).next())});const Vn=({shixunHomeworks:t,classroomList:l,loading:n,dispatch:ee})=>{var le;const U=(0,o.useParams)(),[pe,q]=(0,e.useState)(wu(wu({},{page:1,limit:20,group_ids:[]}),U)),h=(0,o.useLocation)(),{codeReview:ae}=t,[it,Le]=(0,e.useState)({}),[Ne]=we.default.useForm();pe.order="code_rate",pe.sort="desc",pe.category=pe.categoryId,(0,e.useEffect)(()=>{Ye(),console.log("params",pe)},[pe]),(0,e.useEffect)(()=>{t.actionTabs.key==="\u6267\u884C\u4EE3\u7801\u67E5\u91CD"&&Ye()},[t.actionTabs.key]);const Ye=()=>ma(void 0,null,function*(){(yield ee({type:"shixunHomeworks/getCodeReview",payload:wu({},pe)})).status===-2&&setTimeout(()=>Ye(),1500)}),Wt=()=>{},Oe=(ne,ct)=>{pe.page=ne,pe.limit=20,ee({type:"shixunHomeworks/getCodeReview",payload:wu({},pe)})},ht=[{title:"\u5E8F\u53F7",dataIndex:"number",render:(ne,ct,bt)=>pe.limit*(pe.page-1)+bt+1},{title:"\u59D3\u540D",dataIndex:"username"},{title:"\u5B66\u53F7",dataIndex:"student_id"},{title:"\u76F8\u4F3C\u5EA6",dataIndex:"code_rate",render:ne=>Ot.createElement("span",{className:"c-orange"},ne)},{title:"\u64CD\u4F5C",dataInex:"action",render:(ne,ct)=>Ot.createElement("div",null,Ot.createElement("a",{target:"_blank",onClick:()=>{var bt;if((0,M.Rm)()&&!((bt=l.AssistantObject.normal)!=null&&bt.can_appraise)){i.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}localStorage.setItem("studentDetial",h.pathname),window.open(`/classrooms/${pe.coursesId}/shixun_homework/${pe.categoryId}/review_detail/${ct.user_id}`)}},"\u67E5\u770B"),Ot.createElement("br",null))}];return Ot.createElement("section",{className:"minH500 bg-white pl30 pr30 pt10"},(ae==null?void 0:ae.status)===-2&&Ot.createElement(O.Z,{customText:"\u6B63\u5728\u8FDB\u884C\u4EE3\u7801\u67E5\u91CD\uFF0C\u8BF7\u7A0D\u5019\u3002\u67E5\u91CD\u7ED3\u675F\u540E\uFF0C\u9875\u9762\u5C06\u81EA\u52A8\u66F4\u65B0\u663E\u793A\u7ED3\u679C"}),(ae==null?void 0:ae.status)!==-2&&Ot.createElement("div",null,Ot.createElement(he.Z,null,Ot.createElement(w.Z,{flex:"1"},Ot.createElement("p",{className:"mt10"},"\u67E5\u91CD\u65F6\u95F4\uFF1A",ae.last_review_time,Ot.createElement(Z.ZP,{ghost:!0,danger:!0,style:{color:"#29BD8B",borderColor:"#29BD8B",marginLeft:10},onClick:()=>{ee({type:"shixunHomeworks/setActionTabs",payload:{key:"\u4EE3\u7801\u67E5\u91CD",params:pe}})}},"\u4EE3\u7801\u67E5\u91CD"),Ot.createElement(P.Z,{title:Ot.createElement("div",null,Ot.createElement("div",null,"\u4EE3\u7801\u67E5\u91CD\u89C4\u5219"),Ot.createElement("div",null,"1.\u67E5\u91CD\u5BF9\u8C61\uFF1A\u4EC5\u5BF9\u5B66\u5458\u622A\u6B62\u524D\u5F97\u5206\u6700\u9AD8\u7684\u4EE3\u7801\u7248\u672C\u8FDB\u884C\u67E5\u91CD\u3002"),Ot.createElement("div",null,"2.\u591A\u7248\u672C\u5904\u7406\uFF1A\u82E5\u5B58\u5728\u591A\u4E2A\u6700\u9AD8\u5206\u7248\u672C\uFF0C\u4EE5\u63D0\u4EA4\u65F6\u95F4\u6700\u665A\u7684\u7248\u672C\u4E3A\u51C6\u8FDB\u884C\u67E5\u91CD\u3002 "),Ot.createElement("div",null,"3.\u622A\u6B62\u540E\u63D0\u4EA4\uFF1A\u4F5C\u4E1A\u622A\u6B62\u540E\u63D0\u4EA4\u7684\u4EE3\u7801\u4E0D\u7EB3\u5165\u67E5\u91CD\u8303\u56F4\u3002 "))},Ot.createElement("i",{style:{marginLeft:10,color:"#3061D0",fontSize:16},className:"iconfont icon-tishixiaowenhao"})))),Ot.createElement(w.Z,null,Ot.createElement(Ee.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",onSearch:ne=>{pe.search=ne,ee({type:"shixunHomeworks/getCodeReview",payload:pe})},style:{width:200}}),Ot.createElement("span",{className:"ml5 c-red"}))),((le=ae.group_info)==null?void 0:le.length)>0&&Ot.createElement(Ot.Fragment,null,Ot.createElement(he.Z,null,Ot.createElement(w.Z,{flex:"80px",className:"font14"},"\u5206\u73ED\u60C5\u51B5:"),Ot.createElement(w.Z,{flex:"80px"},Ot.createElement(p.default,{checked:pe.group_ids=="",value:"all",onChange:ne=>{delete pe.group_ids,pe.group_ids=[],pe.page=1,q(wu({},pe))}},"\u5168\u90E8")),Ot.createElement(w.Z,{flex:"1"},ae.group_info&&ae.group_info.map((ne,ct)=>Ot.createElement(p.default,{value:ne.id,checked:pe.group_ids.includes(ne.id),onChange:bt=>{bt.target.checked?pe.group_ids.push(ne.id):pe.group_ids.splice(pe.group_ids.indexOf(ne.id),1),pe.page=1,q(wu({},pe))}},ne.name,"(",ne.members_count,")")))),Ot.createElement(he.Z,{className:"font14 c-red mt5"},Ot.createElement(w.Z,null,"\u672C\u9875\u4EC5\u663E\u793A\u5168\u90E8\u5DF2\u67E5\u91CD\u5206\u73ED"))),Ot.createElement("p",{className:"mt10"},Ot.createElement("span",{className:"c-red"},ae.copy_reviews_count),"\u4E2A\u7591\u4F3C\u6284\u88AD\u4F5C\u54C1\uFF08",ae.all_reviews_count,"\u4F5C\u54C1\uFF09"),Ot.createElement(R.default,{className:"mt30",loading:n["shixunHomeworks/getCodeReview"],pagination:!1,dataSource:ae.users_reviews,columns:ht,onChange:(ne,ct,bt)=>{bt.order==="ascend"&&(pe.b_order="asc"),bt.order==="descend"&&(pe.b_order="desc"),bt.order||delete pe.b_order,ee({type:"shixunHomeworks/getCodeReview",payload:wu({},pe)})}}),Ot.createElement("aside",{className:"tc mb50 mt30"},Ot.createElement(Ae.Z,{showSizeChanger:!1,onChange:Oe,defaultCurrent:pe.page||1,current:pe.page||1,defaultPageSize:20,hideOnSinglePage:!0,total:ae.copy_reviews_count}))))};var Xn=(0,o.connect)(({shixunHomeworks:t,classroomList:l,loading:n})=>({shixunHomeworks:t,loading:n.effects,classroomList:l}))(Vn),qn=u(79834),ln=u(5083),Ft=u(24990),Zt=u(59301),me=Object.defineProperty,$e=Object.defineProperties,Jt=Object.getOwnPropertyDescriptors,hu=Object.getOwnPropertySymbols,Gu=Object.prototype.hasOwnProperty,rn=Object.prototype.propertyIsEnumerable,Bn=(t,l,n)=>l in t?me(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,Ku=(t,l)=>{for(var n in l||(l={}))Gu.call(l,n)&&Bn(t,n,l[n]);if(hu)for(var n of hu(l))rn.call(l,n)&&Bn(t,n,l[n]);return t},on=(t,l)=>$e(t,Jt(l)),ul=(t,l,n)=>new Promise((ee,le)=>{var U=h=>{try{q(n.next(h))}catch(ae){le(ae)}},pe=h=>{try{q(n.throw(h))}catch(ae){le(ae)}},q=h=>h.done?ee(h.value):Promise.resolve(h.value).then(U,pe);q((n=n.apply(t,l)).next())});const{RangePicker:Or}=ln.default,{Option:kr}=B.default,nl=({shixunHomeworks:t,loading:l,dispatch:n})=>{const ee=(0,o.useParams)(),le=(0,o.useLocation)(),{workSetting:U,workList:pe,changeData:q}=t,[h,ae]=(0,e.useState)(!0),[it,Le]=(0,e.useState)({}),[Ne,Ye]=(0,e.useState)(!1),[Wt]=we.default.useForm();let[Oe,ht]=(0,e.useState)([]),[ne,ct]=(0,e.useState)([]);const[bt,$t]=(0,e.useState)([]);let[Ce,We]=(0,e.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,comment_public:!1,can_view_details:!1,total_score:"",eff_score:0,forbid_copy_answers:!1,public_after_abort:!1,public_after_over:!1});(0,e.useEffect)(()=>()=>{ht([])},[]),(0,e.useEffect)(()=>{ae(!(U!=null&&U.can_edit))},[U]);const Lt=()=>{n({type:"shixunHomeworks/getWorkSetting",payload:Ku({},ee)})};(0,e.useEffect)(()=>{U!=null&&U.course_id&&(Object.keys(Ce).map(function(be){Ce[be]=U[be]}),(!Ce.allow_late||!Ce.unified_late)&&(Ce.late_penalty=5),Oe=JSON.parse(JSON.stringify(U.group_settings.map(be=>on(Ku({},be),{group_name:[be.group_name]})).filter(be=>be.publish_time!==null))),ne=JSON.parse(JSON.stringify(U.allow_late_settings.map(be=>on(Ku({},be),{group_name:[be.group_name]})).filter(be=>be.late_time!==null))),We(Ku({},Ce)),ht([...Oe]),ct([...ne]))},[U]);const wt=()=>{var be;const Te=JSON.parse(JSON.stringify(Ce));if(Te.challenge_settings.filter(Ve=>!Ve.hide),Te.categoryId=ee.categoryId,(be=Te.challenge_settings)!=null&&be.every(Ve=>!Ve.checked)){i.ZP.warning("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(Ce.unified_setting||(Oe=Oe==null?void 0:Oe.map(Ve=>{var Pt;if(!Ve.publish_time||!Ve.end_time)throw i.ZP.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Ve.group_name)throw i.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Ve.group_name=typeof(Ve==null?void 0:Ve.group_name)=="string"?[Ve==null?void 0:Ve.group_name]:Ve==null?void 0:Ve.group_name,Ve.group_id=(Pt=U.group_settings)==null?void 0:Pt.filter(vt=>{var Kt;return(Kt=Ve==null?void 0:Ve.group_name)==null?void 0:Kt.includes(vt.group_name)}).map(vt=>vt.group_id||vt.id).toString().split(","),Ve})),Te.group_settings=Oe,Ce.allow_late)if(Ce.unified_late){if(Ce.late_penalty===null||Ce.late_penalty===void 0||Ce.late_penalty<0||Ce.late_penalty>100)throw i.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!Ce.late_time)throw i.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574")}else ne=ne==null?void 0:ne.map(Ve=>{var Pt,vt;if(Ve.late_penalty===null||Ve.late_penalty===void 0||Ve.late_penalty<0||Ve.late_penalty>100)throw i.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!Ve.late_time)throw i.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Ve.group_name)throw i.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Ve.group_name=typeof(Ve==null?void 0:Ve.group_name)=="string"?[Ve==null?void 0:Ve.group_name]:Ve==null?void 0:Ve.group_name,Ve.group_id=(vt=(Pt=Ve==null?void 0:Ve.group_name)==null?void 0:Pt.map(Kt=>{var pu,He;let ru=(He=(pu=U.group_settings)==null?void 0:pu.filter(mu=>(mu==null?void 0:mu.group_name)===Kt))==null?void 0:He[0];return ru==null?void 0:ru.group_id}))==null?void 0:vt.toString().split(","),Ve}),Te.allow_late_settings=ne;_e(Te)},_e=be=>{var Te,Ve;if(console.log(be.total_score,be.eff_score),be.total_score===null){i.ZP.warning("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(be!=null&&be.work_efficiency&&be.eff_score===null){i.ZP.warning("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}const Pt=be.challenge_settings.reduce((pu,He)=>pu+Number(He.challenge_score),0);if((Pt==null?void 0:Pt.toFixed(10))!==((Te=be.total_score-be.eff_score)==null?void 0:Te.toFixed(10))){i.ZP.warning(`\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A${be.total_score}\u5206`);return}const vt={shixun_evaluation:be.shixun_evaluation,challenge_settings:be.challenge_settings},Kt=()=>ul(void 0,null,function*(){Ye(!0),(yield(0,v.ZP)(`/api/homework_commons/${ee.categoryId}/public_setting.json`,{method:"post",body:Ku({},be)})).status===0&&(i.ZP.success("\u66F4\u65B0\u6210\u529F"),Lt(),n({type:"shixunHomeworks/getShixunWorkList",payload:Ku({},ee)})),Ye(!1)});!(0,Se.isEqual)(q,vt)&&!((Ve=pe==null?void 0:pe.homework_status)!=null&&Ve.includes("\u672A\u53D1\u5E03"))?s.default.confirm({title:"\u66F4\u65B0\u6210\u7EE9",content:"\u60A8\u6539\u52A8\u4E86\u672C\u6B21\u4F5C\u4E1A\u7684\u5173\u5361\u5F97\u5206\u8BBE\u7F6E\uFF0C\u8FD9\u53EF\u80FD\u5BFC\u81F4\u5DF2\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\u7684\u6210\u7EE9\u4EA7\u751F\u9519\u8BEF\u3002\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u6309\u94AE\u5C06\u4FDD\u5B58\u6700\u65B0\u8BBE\u7F6E\u5E76\u6309\u6700\u65B0\u8BBE\u7F6E\u66F4\u65B0\u5168\u73ED\u6210\u7EE9\u3002",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:Kt}):Kt()},I=(0,e.useMemo)(()=>Ce.public_after_abort?"public_after_abort":Ce.public_after_over?"public_after_over":"immediately",[Ce]);return Zt.createElement("section",{className:Ft.Z.form},Zt.createElement("div",{className:Ft.Z.title},"\u516C\u5F00\u8BBE\u7F6E"),Zt.createElement("div",{style:{background:"#F6F7F9",padding:"13px 30px"}},Zt.createElement("div",{style:{display:"flex",alignItems:"center"}},Zt.createElement(p.default,{checked:Ce.score_open,disabled:h,onChange:be=>{Ce.score_open=be.target.checked,We(Object.assign({},Ce))}},Zt.createElement("div",{style:{color:"#000000"}},"\u516C\u5F00\u6210\u7EE9")),Zt.createElement("div",{style:{color:"#666666",fontSize:"14px",height:"22px"}},"\uFF08\u52FE\u9009\u540E\u5B66\u751F\u5728\u4F5C\u4E1A\u622A\u6B62/\u8865\u4EA4\u7ED3\u675F\u540E\uFF0C\u53EF\u67E5\u770B\u5176\u4ED6\u5B66\u751F\u7684\u6210\u7EE9\uFF09")),Zt.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:"20px"}},Zt.createElement(p.default,{checked:Ce.answer_public,disabled:h,onChange:be=>{be.target.checked?We(Te=>on(Ku({},Te),{answer_public:be.target.checked})):We(Te=>on(Ku({},Te),{answer_public:be.target.checked,public_after_abort:!1,public_after_over:!1}))}},Zt.createElement("div",{style:{color:"#000000"}},"\u516C\u5F00\u7B54\u6848")),Zt.createElement("div",{style:{color:"#666666",fontSize:"14px",height:"22px"}},"\uFF08\u8BBE\u7F6E\u5B66\u751F\u5728\u5B9E\u9A8C\u9875\u9762\u67E5\u770B\u8BD5\u9898\u7B54\u6848\uFF09"))),Ce.answer_public&&Zt.createElement(Zt.Fragment,null,Zt.createElement("div",{style:{display:"flex",background:"#F6F7F9",padding:"13px 30px",marginTop:"1px"}},Zt.createElement("div",{style:{margin:"0 46px 0 24px"}},"\u516C\u5F00\u65F6\u95F4\u8303\u56F4"),Zt.createElement(re.ZP.Group,{onChange:be=>{be.target.value==="public_after_abort"?We(Te=>on(Ku({},Te),{public_after_abort:!0,public_after_over:!1})):be.target.value==="public_after_over"?We(Te=>on(Ku({},Te),{public_after_abort:!1,public_after_over:!0})):We(Te=>on(Ku({},Te),{public_after_abort:!1,public_after_over:!1}))},value:I,disabled:h},Zt.createElement(re.ZP,{value:"public_after_abort"},"\u4F5C\u4E1A\u7ED3\u675F\u540E"),Zt.createElement(re.ZP,{value:"immediately",style:{marginLeft:"30px"}},"\u4EFB\u610F\u65F6\u95F4"))),Zt.createElement("div",{style:{display:"flex",background:"#F6F7F9",padding:"13px 30px"}},Zt.createElement("div",{style:{margin:"0 18px 0 24px"}},"\u8BBE\u7F6E\u590D\u5236\u53C2\u8003\u7B54\u6848"),Zt.createElement(p.default,{checked:Ce.forbid_copy_answers,disabled:h,onChange:be=>{Ce.forbid_copy_answers=be.target.checked,We(Object.assign({},Ce))}},Zt.createElement("div",{style:{color:"#000000"}},"\u7981\u6B62\u590D\u5236\u53C2\u8003\u7B54\u6848")),Zt.createElement("div",{style:{color:"#666666",fontSize:"14px",height:"22px"}},"\uFF08\u52FE\u9009\u540E\uFF0C\u5B66\u751F\u5728\u5B9E\u9A8C\u9875\u9762\u53EA\u80FD\u67E5\u770B\u4F46\u4E0D\u80FD\u590D\u5236\u53C2\u8003\u7B54\u6848\uFF09"))),Zt.createElement("div",{style:{background:"#F6F7F9",padding:"13px 30px",marginTop:"1px"}},Zt.createElement("div",{style:{display:"flex",alignItems:"center"}},Zt.createElement(p.default,{checked:Ce.comment_public,disabled:h,onChange:be=>{Ce.comment_public=be.target.checked,We(Object.assign({},Ce))}},Zt.createElement("div",{style:{color:"#000000"}},"\u516C\u5F00\u8BC4\u8BBA")),Zt.createElement("div",{style:{color:"#666666",fontSize:"14px",height:"22px"}},"\uFF08\u52FE\u9009\u540E\uFF0C\u5B66\u751F\u5728\u5B9E\u9A8C\u9875\u9762\u53EF\u67E5\u770B\u8BE5\u5B9E\u9A8C\u7684\u76F8\u5173\u8BC4\u8BBA\uFF09"))),Zt.createElement("div",{style:{marginTop:"30px"}},Zt.createElement("div",{className:Ft.Z.title},"\u8FDB\u5165\u5B9E\u9A8C\u8BBE\u7F6E"),Zt.createElement("div",{style:{display:"flex",alignItems:"center",background:"#F6F7F9",padding:"13px 30px"}},Zt.createElement(p.default,{checked:Ce.can_view_details,disabled:h,onChange:be=>{Ce.can_view_details=be.target.checked,We(Object.assign({},Ce))}},Zt.createElement("div",{style:{color:"#000000"}},"\u67E5\u770B\u5B9E\u8DF5\u9879\u76EE\u8BE6\u60C5")),Zt.createElement("div",{style:{color:"#666666",fontSize:"14px",height:"22px"}},"\uFF08\u52FE\u9009\u540E\uFF0C\u5B66\u751F\u5F00\u542F\u6311\u6218\u5148\u8FDB\u5165\u5B9E\u8DF5\u9879\u76EE\u7684\u8BE6\u60C5\u9875\u9762\uFF0C\u5426\u5219\u76F4\u63A5\u8FDB\u5165\u5B9E\u9A8C\u9875\u9762\uFF09"))),Zt.createElement(Z.ZP,{style:{width:"138px",marginTop:"30px"},type:"primary",size:"large",loading:Ne,onClick:()=>wt()},"\u4FDD\u5B58"))};var al=(0,o.connect)(({shixunHomeworks:t,loading:l})=>({shixunHomeworks:t,loading:l.effects}))(nl),ll=u(81327),K=u(59301),rl=Object.defineProperty,ol=Object.defineProperties,sl=Object.getOwnPropertyDescriptors,Sn=Object.getOwnPropertySymbols,Ea=Object.prototype.hasOwnProperty,fa=Object.prototype.propertyIsEnumerable,pa=(t,l,n)=>l in t?rl(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,Ru=(t,l)=>{for(var n in l||(l={}))Ea.call(l,n)&&pa(t,n,l[n]);if(Sn)for(var n of Sn(l))fa.call(l,n)&&pa(t,n,l[n]);return t},qu=(t,l)=>ol(t,sl(l)),il=(t,l)=>{var n={};for(var ee in t)Ea.call(t,ee)&&l.indexOf(ee)<0&&(n[ee]=t[ee]);if(t!=null&&Sn)for(var ee of Sn(t))l.indexOf(ee)<0&&fa.call(t,ee)&&(n[ee]=t[ee]);return n},cl=(t,l,n)=>new Promise((ee,le)=>{var U=h=>{try{q(n.next(h))}catch(ae){le(ae)}},pe=h=>{try{q(n.throw(h))}catch(ae){le(ae)}},q=h=>h.done?ee(h.value):Promise.resolve(h.value).then(U,pe);q((n=n.apply(t,l)).next())});const dl=({shixunHomeworks:t,loading:l,dispatch:n})=>{const ee=(0,o.useParams)(),[le]=we.default.useForm(),U=we.default.useWatch("total_score",le),pe=we.default.useWatch("eff_type",le),q=we.default.useWatch("challenge_settings",le),h=we.default.useWatch("answer_open_evaluation",le),ae=we.default.useWatch("shixun_evaluation",le),it=we.default.useWatch("work_efficiency",le),Le=we.default.useWatch("is_repeat_minus",le),Ne=we.default.useWatch("open_view_answer_deduct",le),{workSetting:Ye,workList:Wt,changeData:Oe}=t,[ht,ne]=(0,e.useState)(!1),[ct,bt]=(0,e.useState)(!1),[$t,Ce]=(0,e.useState)(!1);let[We,Lt]=(0,e.useState)([]),[wt,_e]=(0,e.useState)([]),[I,be]=(0,e.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!0,answer_public:!1,score_open:!1,comment_public:!0,total_score:"",eff_score:0,eff_type:1,open_view_answer_deduct:!0,is_repeat_minus:!1,repeat_setting_score:10,repeat_limit:70,is_onpage_time:!0,training_time_rules:1,difficulty_level_sort:"asc",game_deduct_score_percentage:100});const[Te,Ve]=(0,e.useState)(!1),[Pt,vt]=(0,e.useState)(0);(0,e.useEffect)(()=>()=>{Lt([])},[]),(0,e.useEffect)(()=>{ne(!(Ye!=null&&Ye.can_edit))},[Ye]);const Kt=()=>{n({type:"shixunHomeworks/getWorkSetting",payload:Ru({},ee)})};(0,e.useEffect)(()=>{if(!(Ye!=null&&Ye.course_id))return;Object.keys(I).map(function(Et){I[Et]=Ye[Et]}),(!I.allow_late||!I.unified_late)&&(I.late_penalty=5),We=JSON.parse(JSON.stringify(Ye.group_settings.map(Et=>qu(Ru({},Et),{group_name:[Et.group_name]})).filter(Et=>Et.publish_time!==null))),wt=JSON.parse(JSON.stringify(Ye.allow_late_settings.map(Et=>qu(Ru({},Et),{group_name:[Et.group_name]})).filter(Et=>Et.late_time!==null)));const Ie=qu(Ru({},I),{difficulty_level_sort:I.difficulty_level_sort||"asc"});be(Ie),mu(Ie),le.setFieldsValue(Ie),Lt([...We]),_e([...wt])},[Ye]);const pu=()=>{var Ie;const Et=JSON.parse(JSON.stringify(I));if(Et.challenge_settings.filter(Je=>!Je.hide),Et.categoryId=ee.categoryId,Et.game_deduct_score_percentage===""){i.ZP.warning("\u8BF7\u586B\u5199\u67E5\u770B\u7B54\u6848\u6263\u5206\u6BD4\u4F8B");return}if((Ie=Et.challenge_settings)!=null&&Ie.every(Je=>!Je.checked)){i.ZP.warning("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(I.unified_setting||(We=We==null?void 0:We.map(Je=>{var Ut;if(!Je.publish_time||!Je.end_time)throw i.ZP.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Je.group_name)throw i.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Je.group_name=typeof(Je==null?void 0:Je.group_name)=="string"?[Je==null?void 0:Je.group_name]:Je==null?void 0:Je.group_name,Je.group_id=(Ut=Ye.group_settings)==null?void 0:Ut.filter(gt=>{var Tt;return(Tt=Je==null?void 0:Je.group_name)==null?void 0:Tt.includes(gt.group_name)}).map(gt=>gt.group_id||gt.id).toString().split(","),Je})),Et.group_settings=We,I.allow_late)if(I.unified_late){if(I.late_penalty===null||I.late_penalty===void 0||I.late_penalty<0||I.late_penalty>100)throw i.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!I.late_time)throw i.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574")}else wt=wt==null?void 0:wt.map(Je=>{var Ut,gt;if(Je.late_penalty===null||Je.late_penalty===void 0||Je.late_penalty<0||Je.late_penalty>100)throw i.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!Je.late_time)throw i.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Je.group_name)throw i.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Je.group_name=typeof(Je==null?void 0:Je.group_name)=="string"?[Je==null?void 0:Je.group_name]:Je==null?void 0:Je.group_name,Je.group_id=(gt=(Ut=Je==null?void 0:Je.group_name)==null?void 0:Ut.map(Tt=>{var Dt,Pu;let Ge=(Pu=(Dt=Ye.group_settings)==null?void 0:Dt.filter(Cu=>(Cu==null?void 0:Cu.group_name)===Tt))==null?void 0:Pu[0];return Ge==null?void 0:Ge.group_id}))==null?void 0:gt.toString().split(","),Je}),Et.allow_late_settings=wt;He(Et)},He=Ie=>{var Et,Je;if(Ie.total_score===null){i.ZP.warning("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(Ie!=null&&Ie.work_efficiency&&Ie.eff_score===null){i.ZP.warning("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}const Ut=Ie.challenge_settings.reduce((Dt,Pu)=>Dt+Number(Pu.challenge_score),0);if((Ut==null?void 0:Ut.toFixed(10))!==((Et=Ie.total_score-Ie.eff_score)==null?void 0:Et.toFixed(10))){i.ZP.warning(`\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A${Ie.total_score}\u5206`);return}const gt={shixun_evaluation:Ie.shixun_evaluation,challenge_settings:Ie.challenge_settings,eff_type:Ie.eff_type},Tt=()=>cl(void 0,null,function*(){bt(!0),(yield(0,v.ZP)(`/api/homework_commons/${ee.categoryId}/score_setting.json`,{method:"post",body:Ru({},Ie)})).status===0&&(i.ZP.success("\u66F4\u65B0\u6210\u529F"),Kt(),n({type:"shixunHomeworks/getShixunWorkList",payload:Ru({},ee)})),bt(!1)});!(0,Se.isEqual)(Oe,gt)&&!((Je=Wt==null?void 0:Wt.homework_status)!=null&&Je.includes("\u672A\u53D1\u5E03"))&&!Te?s.default.confirm({title:"\u66F4\u65B0\u6210\u7EE9",content:"\u60A8\u6539\u52A8\u4E86\u672C\u6B21\u4F5C\u4E1A\u7684\u5173\u5361\u5F97\u5206\u8BBE\u7F6E\uFF0C\u8FD9\u53EF\u80FD\u5BFC\u81F4\u5DF2\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\u7684\u6210\u7EE9\u4EA7\u751F\u9519\u8BEF\u3002\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u6309\u94AE\u5C06\u4FDD\u5B58\u6700\u65B0\u8BBE\u7F6E\u5E76\u6309\u6700\u65B0\u8BBE\u7F6E\u66F4\u65B0\u5168\u73ED\u6210\u7EE9\u3002",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:Tt}):Tt(),(Te||Le&&Te)&&s.default.confirm({title:"\u66F4\u65B0\u6210\u7EE9",content:"\u60A8\u6539\u52A8\u4E86\u672C\u6B21\u4F5C\u4E1A\u7684\u67E5\u91CD\u6263\u5206\u89C4\u5219\uFF0C\u9700\u8981\u91CD\u65B0\u67E5\u91CD\u624D\u80FD\u751F\u6548\uFF0C\u751F\u6548\u540E\u6210\u7EE9\u5C06\u8986\u76D6\u6210\u6700\u65B0\u7684\u6210\u7EE9\u3002",okText:"\u7ACB\u5373\u67E5\u91CD",onOk(){n({type:"shixunHomeworks/setActionTabs",payload:{key:"\u4EE3\u7801\u67E5\u91CD",params:ee}})}})},ru=(Ie=I)=>{var Et;const{eff_score:Je,total_score:Ut,difficulty_level_sort:gt}=Ie,Tt=Ut-Je,Dt=(Et=Ie.challenge_settings)==null?void 0:Et.filter(iu=>iu.checked).length;if(!Dt){Ie.challenge_settings.map((iu,ju)=>{iu.challenge_score=0});return}const Pu=Ie.challenge_settings.filter(iu=>iu.checked).map(iu=>gt==="desc"?iu.challenge_exp_desc:iu.challenge_exp).reduce((iu,ju)=>iu+ju),Ge=Tt/Pu;let Cu=0,Su=0,Iu;switch(Ie.shixun_evaluation){case 0:const iu=parseFloat((Tt/Dt).toFixed(1));Ie.challenge_settings.map((Au,yu)=>{Au.checked?(Cu=yu,Au.challenge_score=iu>0?iu:0):Au.challenge_score=0}),Iu=(Tt-iu*(Dt-1)).toFixed(1),Ie.challenge_settings[Cu].challenge_score=Iu>0?Iu:0;break;case 1:Ie.challenge_settings.map((Au,yu)=>{Au.checked?(Cu=yu,Su+=Number((Math.round((gt==="desc"?Au.challenge_exp_desc:Au.challenge_exp)*Ge*10)/10).toFixed(1)),Au.challenge_score=(Math.round((gt==="desc"?Au.challenge_exp_desc:Au.challenge_exp)*Ge*10)/10).toFixed(1)):Au.challenge_score=0});let ju=Ie.challenge_settings[Cu].challenge_score;Iu=(Tt-Su+Number(ju)).toFixed(1),Ie.challenge_settings[Cu].challenge_score=Iu>0?Iu:0;break}be(Ru({},Ie)),mu(Ie),le.setFieldsValue(Ie)},mu=(Ie=I)=>{const Et=(0,j.EN)(Ie.challenge_settings.reduce((Je,Ut)=>(0,j.EN)(Je||0,Number(Ut.challenge_score)||0,"+"),0),Ie.eff_score||0,"+");vt(Et)};return K.createElement("div",{className:Ft.Z.form},K.createElement(we.default,{className:Ft.Z.FormStyle,form:le,initialValues:{},layout:"vertical",disabled:ht,size:"large",onValuesChange:(Ie,Et)=>{be(Ru(Ru({},I),Et))},onFinish:Ie=>{console.log("onfinish",Ie),pu(),Ve(!1)}},(Ye==null?void 0:Ye.can_edit)&&K.createElement("div",{className:Ft.Z.title},"\u4F5C\u4E1A\u5206\u503C\u8BBE\u7F6E"),K.createElement("div",{style:{background:"#F6F7F9",padding:"5px 30px",display:"flex",alignItems:"center"}},K.createElement("div",{style:{color:"#333333"}},"\u4F5C\u4E1A\u603B\u5206"),K.createElement(we.default.Item,{className:"ml20",style:{marginBottom:"0px"},name:"total_score",rules:[{required:!0,message:"\u4F5C\u4E1A\u603B\u5206\u4E0D\u80FD\u4E3A\u7A7A"}]},K.createElement(Ze.Z,{style:{width:120},min:0,addonAfter:"\u5206"}))),K.createElement("div",{className:Ft.Z.title,style:{marginTop:"30px"}},"\u6548\u7387\u5206",K.createElement("span",{style:{color:"#666",verticalAlign:"top",fontSize:14,fontWeight:400}},"\uFF08\u6548\u7387\u5206\u5728\u4F5C\u4E1A\u7ED3\u675F\u4E4B\u524D\u4E0D\u8BA1\u7B97\uFF0C\u4F5C\u4E1A\u7ED3\u675F\u540E\u81EA\u52A8\u5C06\u6548\u7387\u5206\u624D\u8BA1\u7B97\u52A0\u5165\u5230\u5B66\u751F\u6210\u7EE9\u4E2D\uFF09")),K.createElement("div",{style:{background:"#F6F7F9",padding:"5px 30px",display:"flex",alignItems:"center",width:"100%"}},K.createElement(we.default.Item,{name:"work_efficiency",valuePropName:"checked",style:{marginBottom:0},normalize:Ie=>{const Et=qu(Ru({},I),{eff_score:Ie?20:0});return ru(Et),mu(Et),Ie}},K.createElement(p.default,null,K.createElement("strong",{className:"c-grey-666"},"\u6548\u7387\u5206"))),K.createElement("div",{style:{color:"#666"}},"\uFF08\u52FE\u9009\u6548\u7387\u5206\u540E\uFF0C\u5219\u4F5C\u4E1A\u603B\u5206\u503C=\u6548\u7387\u5206+\u4EFB\u52A1\u5173\u5361\u603B\u5206\uFF09")),K.createElement("div",{style:{background:"#F6F7F9",padding:"5px 50px",marginTop:"1px"}},K.createElement(he.Z,{wrap:!1,align:"middle"},K.createElement(w.Z,{style:{textAlign:"right"}},K.createElement("span",{className:"c-grey-333"},"\u6548\u7387\u5206\u503C")),K.createElement(w.Z,null,K.createElement(we.default.Item,{className:"ml20",name:"eff_score",style:{marginBottom:0},rules:[{required:it&&!0,message:"\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A"}],normalize:Ie=>(ru(qu(Ru({},I),{eff_score:Ie})),Ie)},K.createElement(Ze.Z,{style:{width:184},min:0,step:.1,addonAfter:"\u5206",disabled:ht||!it}))))),it&&K.createElement("div",{style:{background:"#F6F7F9",padding:"5px 50px",marginTop:"1px"}},K.createElement("div",{style:{height:40,lineHeight:"40px"}},K.createElement("span",{className:"c-grey-333 mr10"},"\u8BA1\u7B97\u7EF4\u5EA6"),K.createElement("span",{className:"c-grey-666"},"\uFF08\u6548\u7387\u5206 = \uFF08\u5B66\u4E60\u6548\u7387 / \u6700\u9AD8\u5B66\u4E60\u6548\u7387 \uFF09* \u5206\u503C\uFF1B\u5B66\u4E60\u6548\u7387 = log\uFF08\u5B9E\u8BAD\u603B\u5F97\u5206/\u5B9E\u8BAD\u603B\u8017\u65F6\uFF09\uFF1B\u8017\u65F6\u5355\u4F4D\u4E3A\u5C0F\u65F6\uFF0C\u5F53\u5B66\u751F\u672A\u901A\u5173\u5219\u6548\u7387\u5206\u4E3A0\uFF09")),K.createElement(we.default.Item,{name:"eff_type",style:{marginBottom:0}},K.createElement(re.ZP.Group,null,K.createElement(re.ZP,{value:1},"\u6309\u4F5C\u4E1A\u6700\u9AD8\u6548\u7387\u5206\u8BA1\u7B97"),K.createElement(re.ZP,{value:2,style:{marginLeft:10}},"\u6309\u73ED\u7EA7\u6700\u9AD8\u6548\u7387\u5206\u8BA1\u7B97")))),it&&K.createElement("div",{style:{background:"#F6F7F9",padding:"5px 50px",marginTop:"1px"}},K.createElement("div",{className:"c-grey-333",style:{height:40,lineHeight:"40px"}},K.createElement("span",null,"\u5B9E\u8BAD\u603B\u8017\u65F6"),K.createElement(P.Z,{title:"\u89C4\u5219\u8BF4\u660E"},K.createElement("i",{className:`iconfont icon-tishixiaowenhao ${Ft.Z.title_icon}`,style:{color:"#666"},onClick:()=>Ce(!0)}))),K.createElement(we.default.Item,{name:"training_time_rules",style:{marginBottom:0},normalize:(Ie,Et,Je)=>(ru(qu(Ru({},Je),{training_time_rules:Ie})),Ie)},K.createElement(re.ZP.Group,null,K.createElement(ll.Z,{direction:"vertical"},K.createElement(re.ZP,{style:{height:40,lineHeight:"40px"},value:1},"\u9875\u9762\u505C\u7559\u65F6\u957F",K.createElement("span",{className:"ml10 c-grey-666"},"\uFF08\u5728\u5173\u5361\u901A\u5173\u524D\u505C\u7559\u7B54\u9898\u9875\u9762\u7684\u603B\u65F6\u957F\uFF09")),K.createElement(re.ZP,{style:{height:40,lineHeight:"40px"},value:2},"\u5173\u5361\u603B\u8017\u65F6",K.createElement("span",{className:"ml10 c-grey-666"},"\uFF08\u7B2C\u4E00\u6B21\u8FDB\u5165\u5173\u5361\u65F6\u95F4\u70B9\u5230\u5173\u5361\u901A\u5173\u65F6\u95F4\u70B9\u7684\u603B\u65F6\u957F\uFF09")),K.createElement(re.ZP,{style:{height:40,lineHeight:"40px"},value:3},"\u4F5C\u4E1A\u901A\u5173\u65F6\u957F",K.createElement("span",{className:"ml10 c-grey-666"},"\uFF08\u4F5C\u4E1A\u53D1\u5E03\u65F6\u95F4\u70B9\u5230\u5B66\u751F\u5168\u90E8\u5173\u5361\u901A\u5173\u65F6\u95F4\u70B9\u7684\u603B\u65F6\u957F\uFF09")))))),K.createElement("div",{style:{marginTop:"30px"}},K.createElement("div",{className:Ft.Z.title},"\u4EFB\u52A1\u5173\u5361\u9009\u62E9\u4E0E\u5206\u503C\u8BBE\u7F6E"),K.createElement("div",{style:{background:"#F6F7F9",padding:"5px 16px"}},K.createElement("div",{style:{display:"flex",alignItems:"center"}},K.createElement("div",{style:{width:"60px",marginRight:"10px",textAlign:"left"}},"\u5206\u503C\u8BBE\u7F6E"),K.createElement(we.default.Item,{name:"shixun_evaluation",style:{marginBottom:0},normalize:(Ie,Et,Je)=>{const Ut=qu(Ru({},Je),{shixun_evaluation:Ie,difficulty_level_sort:Ie!==1?"asc":Je.difficulty_level_sort});return ru(Ut),Ie}},K.createElement(re.ZP.Group,null,K.createElement(re.ZP,{value:0},"\u5747\u5206\u6BD4\u4F8B"),K.createElement(re.ZP,{value:1,style:{marginLeft:20}},"\u96BE\u6613\u5EA6"),K.createElement(re.ZP,{value:2,style:{marginLeft:20}},"\u81EA\u5B9A\u4E49\u5206\u503C"))),ae==1&&K.createElement(we.default.Item,{name:"difficulty_level_sort",style:{marginBottom:0},normalize:(Ie,Et,Je)=>(ru(qu(Ru({},Je),{difficulty_level_sort:Ie})),Ie)},K.createElement(B.default,{style:{width:200},options:[{value:"asc",label:"\u6B63\u5E8F\u8D4B\u5206"},{value:"desc",label:"\u53CD\u5E8F\u8D4B\u5206"}]})))),K.createElement("div",{style:{background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"}},K.createElement("div",{style:{display:"flex",alignItems:"center"}},K.createElement("div",{className:"c-grey-666",style:{width:"60px",textAlign:"left"}},"\u5173\u5361\u540D\u79F0"),K.createElement("div",{className:`${Ft.Z.SubTooltip}`,style:{height:40,lineHeight:"40px",color:"#666"}},Ye!=null&&Ye.task_pass?"\uFF08\u8BE5\u5B9E\u8BAD\u652F\u6301\u8DF3\u5173\u5B66\u4E60\uFF0C\u52FE\u9009\u5219\u5B66\u751F\u5FC5\u987B\u5B8C\u6210\u7684\u5173\u5361\uFF09":"\uFF08\u8BE5\u5B9E\u8BAD\u4E0D\u652F\u6301\u8DF3\u5173\u5B66\u4E60\uFF09")),K.createElement(we.default.List,{name:"challenge_settings"},(Ie,{add:Et,remove:Je})=>K.createElement("div",{style:{display:"flex",flexDirection:"column",gap:17}},Ie==null?void 0:Ie.map(Ut=>{var gt=Ut,{key:Tt,name:Dt}=gt,Pu=il(gt,["key","name"]),Ge,Cu,Su,Iu,iu,ju,Au;return K.createElement(he.Z,{key:Tt,wrap:!1,align:"middle"},K.createElement(w.Z,null,K.createElement(we.default.Item,qu(Ru({},Pu),{name:[Dt,"checked"],valuePropName:"checked",style:{marginBottom:0},normalize:(yu,nn,_u)=>{var Lu;return _u.challenge_settings[Tt].checked=yu,(Lu=_u==null?void 0:_u.challenge_settings)!=null&&Lu.every(an=>!an.checked)?(i.ZP.warning("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A"),_u.challenge_settings[Tt].checked=nn,nn):(_u.shixun_evaluation===2&&!yu&&(_u.challenge_settings[Tt].challenge_score=0),ru(_u),yu)}}),K.createElement(p.default,{disabled:ht||!(Ye!=null&&Ye.task_pass)},K.createElement(P.Z,{title:(Ge=q==null?void 0:q[Tt])==null?void 0:Ge.challenge_name,placement:"topLeft"},K.createElement("div",{className:"c-grey-666 multi_ellipsis1",style:{width:525}},(Cu=q==null?void 0:q[Tt])==null?void 0:Cu.challenge_name))))),K.createElement(w.Z,{flex:"76px"},!q[Tt].checked&&K.createElement("span",{className:"tag-style-border-small bg-orange border-raduis-50 c-white ml20"},"\u53EF\u4E0D\u505A")),K.createElement(w.Z,null,K.createElement(we.default.Item,{className:"ml20",name:[Dt,"challenge_score"],style:{marginBottom:0},normalize:(yu,nn,_u)=>(_u.challenge_settings[Tt].challenge_score=yu,mu(_u),yu)},K.createElement(Ze.Z,{style:{width:120},min:0,addonAfter:K.createElement("span",{className:Ft.Z.SubTooltip},"\u5206"),disabled:ht||ae!==2||!((Su=q==null?void 0:q[Tt])!=null&&Su.checked)}))),K.createElement(w.Z,null,K.createElement("div",{style:{marginLeft:"55px"},className:((Iu=q==null?void 0:q[Tt])==null?void 0:Iu.difficulty)=="\u7B80\u5355"?Ft.Z.DifSimple:((iu=q==null?void 0:q[Tt])==null?void 0:iu.difficulty)=="\u4E2D\u7B49"?Ft.Z.DifMiddle:Ft.Z.DifHard},(ju=q==null?void 0:q[Tt])==null?void 0:ju.difficulty)),K.createElement(w.Z,null,K.createElement("span",{className:` ${Ft.Z.SubTooltip}`,style:{marginLeft:"55px"}},"\u91D1\u5E01\u5956\u52B1\u6570",K.createElement("span",{className:"ml10",style:{color:"#FA6400"}},(Au=q==null?void 0:q[Tt])==null?void 0:Au.challenge_exp))))}))))),K.createElement("div",{style:{marginTop:"30px"}},K.createElement("div",{className:Ft.Z.title},"\u5B66\u751F\u6263\u5206\u89C4\u5219\u8BBE\u7F6E"),K.createElement("div",{style:{background:"#F6F7F9",padding:"5px 30px"}},K.createElement("div",{style:{display:"flex",alignItems:"center"}},K.createElement(we.default.Item,{name:"open_view_answer_deduct",valuePropName:"checked",style:{marginBottom:0}},K.createElement(p.default,null)),K.createElement("div",{style:{margin:"0 10px"}},"\u5F00\u542F\u67E5\u770B\u7B54\u6848\u6263\u5206"),K.createElement("span",{className:`${Ft.Z.SubTooltip}`,style:{color:"#666"}},"\uFF08\u9488\u5BF9\u672A\u901A\u8FC7\u5173\u5361\u7684\u5B66\u751F\u67E5\u770B\u7B54\u6848\u540E\u8BC4\u6D4B\u901A\u5173\u8FDB\u884C\u6263\u5206\uFF0C\u5DF2\u901A\u8FC7\u518D\u67E5\u770B\u7B54\u6848\u4E0D\u8FDB\u884C\u6263\u5206\uFF09")),Ne&&K.createElement("div",{style:{display:"flex",alignItems:"center"}},K.createElement(we.default.Item,{name:"answer_open_evaluation",style:{marginBottom:0}},K.createElement(re.ZP.Group,null,K.createElement(re.ZP,{value:!0,style:{marginRight:"50px"}},"\u56FA\u5B9A\u6263\u5206"),K.createElement(re.ZP,{value:!1},"\u6309\u7167\u5B9E\u8BAD\u53C2\u8003\u7B54\u6848\u7EA7\u522B\u6263\u5206")))),h&&K.createElement("div",{style:{display:"flex",alignItems:"center",margin:"5px 0",paddingLeft:23}},K.createElement("div",{className:"c-grey-666"},"\u67E5\u770B\u7B54\u6848\u56FA\u5B9A\u6263\u9664"),K.createElement(we.default.Item,{name:"game_deduct_score_percentage",style:{marginBottom:"0px"},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6263\u5206\u6BD4\u4F8B"}]},K.createElement(Ze.Z,{style:{width:120,margin:"0 10px"},min:0,max:100,addonAfter:K.createElement("span",{className:Ft.Z.SubTooltip},"%")})),K.createElement("div",{className:"c-grey-666"},"\u5206\u503C ",K.createElement("span",{style:{color:"#666666"}}," \uFF08\u5F53\u8BBE\u7F6E0%\u65F6\uFF0C\u5219\u5B66\u751F\u67E5\u770B\u7B54\u6848\u4E0D\u6263\u5206\uFF09")))),K.createElement("div",{style:{background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"}},K.createElement("div",{style:{display:"flex",alignItems:"center"}},K.createElement(we.default.Item,{name:"is_repeat_minus",valuePropName:"checked",style:{marginBottom:0},normalize:Ie=>(!Ie&&Ve(!0),Ie)},K.createElement(p.default,null)),K.createElement("div",{style:{margin:"0 10px"}},"\u5F00\u542F\u4EE3\u7801\u67E5\u91CD\u6263\u5206"),K.createElement("div",{className:Ft.Z.SubTooltip,style:{color:"#666"}},"\uFF08\u8BBE\u7F6E\u89C4\u5219\u540E\uFF0C\u9700\u8981\u8FDB\u884C\u201C\u4EE3\u7801\u67E5\u91CD\u201D\u540E\u624D\u80FD\u751F\u6548\uFF09")),Le&&K.createElement("div",{style:{display:"flex",alignItems:"center"}},K.createElement("div",{style:{marginLeft:"30px"}},"\u6263\u5206\u9608\u503C"),K.createElement(we.default.Item,{className:"ml10",name:"repeat_limit",style:{marginBottom:0},normalize:Ie=>(Ve(!0),Ie)},K.createElement(Ze.Z,{style:{width:120},min:0,max:100,addonAfter:K.createElement("span",{className:Ft.Z.SubTooltip},"%")})),K.createElement("div",{style:{color:"#666666",marginLeft:"10px"}},"\uFF08\u5B66\u751F\u76F8\u4F3C\u5EA6\u4F4E\u4E8E\u8FD9\u4E2A\u9608\u503C\u5219\u4E0D\u6263\u5206\uFF09"),K.createElement("div",{style:{marginLeft:"30px"}},"\u67E5\u91CD\u6263\u5206"),K.createElement(we.default.Item,{className:"ml10",name:"repeat_setting_score",style:{marginBottom:0},normalize:Ie=>(Ve(!0),Ie)},K.createElement(Ze.Z,{style:{width:120},min:0,max:U,addonAfter:K.createElement("span",{className:Ft.Z.SubTooltip},"\u5206")})),K.createElement("div",{style:{color:"#666666",marginLeft:"10px"}},"\uFF08\u5B66\u751F\u5173\u5361\u5B9E\u9645\u6263\u5206=\u67E5\u91CD\u6263\u5206x\u76F8\u4F3C\u5EA6\u6BD4\uFF09"))))),K.createElement(Z.ZP,{type:"primary",size:"large",loading:ct,style:{width:"138px",marginTop:"30px"},onClick:()=>{le.submit()}},"\u4FDD\u5B58"),K.createElement(s.default,{title:"\u8BA1\u65F6\u89C4\u5219\u8BF4\u660E",open:$t,width:860,footer:null,onCancel:()=>{Ce(!1)}},K.createElement("div",{style:{color:"#333333",fontWeight:400}},K.createElement("span",{style:{fontWeight:600}},"1\u3001\u9875\u9762\u505C\u7559\u65F6\u957F"),K.createElement("br",null),K.createElement("span",null,"\u5B66\u751F",K.createElement("span",{style:{color:"#333333",fontWeight:600}},"\u8FDB\u5165\u5173\u5361\u7684\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u5B66\u751F\u5173\u5361\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\uFF1B"),"\u5173\u5361\u95EF\u5173\u8FC7\u7A0B\u4E2D\uFF0C",K.createElement("span",{style:{color:"#333333",fontWeight:600}},"\u5B66\u751F\u5173\u95ED/\u9000\u51FA\u7B54\u9898\u9875\u9762\uFF0C\u5219\u8BA1\u65F6\u6682\u505C\uFF0C\u518D\u6B21\u8FDB\u5165\u7B54\u9898\u9875\u9762\u65F6\u5F00\u59CB\u7D2F\u8BA1\u8BA1\u65F6\u76F4\u81F3\u8BC4\u6D4B\u901A\u8FC7\uFF0C"),"\u5219\u8BA1\u65F6\u7ED3\u675F"),K.createElement("span",{style:{color:"#FA6400",display:"flex",height:34,alignItems:"center"}}," \u53EF\u80FD\u4F1A\u9020\u6210\u65F6\u957F\u8BC4\u4F30\u4E0E\u5B9E\u9645\u505A\u9898\u80FD\u529B\u4E0D\u7B26\u7684\u60C5\u51B5\uFF0C\u60C5\u51B5\u5982\u4E0B\uFF1A "),K.createElement("span",null,"a\u3001\u5B66\u751F\u8FDB\u5165\u5173\u5361\u770B\u5B8C\u9898\u540E\uFF0C\u9000\u51FA\u7B54\u9898\u9875\u9762\u5B8C\u6210\u4EE3\u7801\u8BBE\u8BA1\uFF0C\u518D\u590D\u5236\u8FDB\u5E73\u53F0\u7B54\u9898\u9875\u9762\u8FDB\u884C\u8BC4\u6D4B\uFF0C\u65E0\u6CD5\u8BC4\u4F30\u5B66\u751F\u7684\u5B66\u4E60\u548C\u601D\u8003\u65F6\u95F4\u3002")),K.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},K.createElement("span",{style:{fontWeight:600}},"2\u3001\u5173\u5361\u603B\u8017\u65F6"),K.createElement("br",null),K.createElement("span",null,"\u5B66\u751F",K.createElement("span",{style:{color:"#333333",fontWeight:600}},"\u7B2C\u4E00\u6B21\u8FDB\u5165\u5173\u5361\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u8BE5\u5173\u5361\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\uFF1B"),"\u5173\u5361\u95EF\u5173\u8FC7\u7A0B\u4E2D\uFF0C",K.createElement("span",{style:{color:"#333333",fontWeight:600}},"\u5B66\u751F\u9000\u51FA/\u5173\u95ED\u7B54\u9898\u9875\u9762\uFF0C\u4E5F\u5C06\u6301\u7EED\u8BA1\u65F6\uFF0C\u76F4\u81F3\u8BC4\u6D4B\u901A\u8FC7\u3002")),K.createElement("span",{style:{color:"#FA6400",display:"flex",height:44,paddingTop:10}}," \u53EF\u80FD\u4F1A\u9020\u6210\u65F6\u957F\u8BC4\u4F30\u4E0E\u5B9E\u9645\u505A\u9898\u80FD\u529B\u4E0D\u7B26\u7684\u60C5\u51B5\uFF0C\u60C5\u51B5\u5982\u4E0B\uFF1A "),K.createElement("span",null,"a\u3001\u5B66\u751F\u4ECE\u5176\u4ED6\u540C\u5B66\u5904\u770B\u5230\u9898\u76EE\u540E\uFF0C\u5B8C\u6210\u4EE3\u7801\u8BBE\u8BA1\uFF0C\u518D\u8FDB\u5165\u5173\u5361\u7B54\u9898\u9875\u9762\uFF0C\u5C06\u5DF2\u5B8C\u6210\u7684\u4EE3\u7801\u590D\u5236\u81F3\u5E73\u53F0\u8FDB\u884C\u8BC4\u6D4B\uFF1B"),K.createElement("br",null),K.createElement("span",null,"b\u3001\u5B66\u751F\u7B2C\u4E00\u6B21\u6253\u5F00\u5173\u5361\u540E\uFF0C\u56E0\u4E3A\u67D0\u79CD\u539F\u56E0\u79BB\u5F00\u9875\u9762\uFF0C\u65F6\u9694\u591A\u65E5\u624D\u518D\u6B21\u8FDB\u5165\u5E73\u53F0\u95EF\u5173\uFF0C\u5C31\u4F1A\u5BFC\u81F4\u5B66\u751F\u5173\u5361\u603B\u8017\u65F6\u8FC7\u957F\uFF1B")),K.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},K.createElement("span",{style:{fontWeight:600}},"3\u3001\u4F5C\u4E1A\u901A\u5173\u65F6\u957F"),K.createElement("br",null),K.createElement("span",null,"\u4ECE\u8001\u5E08",K.createElement("span",{style:{color:"#333333",fontWeight:600}},"\u53D1\u5E03\u7684\u5B9E\u8BAD\u4F5C\u4E1A\u65F6\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u5B66\u751F\u5B9E\u8BAD\u901A\u5173\uFF08\u5305\u62EC\u8FDF\u4EA4\u901A\u5173\uFF09\u7ED3\u675F\u8BA1\u65F6\u3002"),"\u82E5\u5B66\u751F\u672A\u901A\u5173\uFF0C\u5219\u8BE5\u5B66\u751F\u7684\u95EF\u5173\u8017\u65F6\u4E3A\u8001\u5E08\u8BBE\u7F6E\u7684\u5B9E\u8BAD\u5F00\u59CB\u65F6\u95F4\u81F3\u5B9E\u8BAD\u622A\u6B62\u65F6\u95F4\uFF0C\u82E5\u8001\u5E08\u5F00\u542F\u4E86\u8865\u4EA4\uFF0C\u5219\u8BE5\u751F\u7684\u95EF\u5173\u8017\u65F6\u4E3A\u5B9E\u8BAD\u5F00\u59CB\u65F6\u95F4\u81F3\u5B9E\u8BAD\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u3002")),K.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},K.createElement("span",{style:{fontWeight:600}},"\u89C4\u5219\u76EE\u7684"),K.createElement("br",null),K.createElement("span",null,"\u9F13\u52B1\u5B66\u751F\u5728\u5B9E\u8BAD\u4F5C\u4E1A\u53D1\u5E03\u7684\u7B2C\u4E00\u65F6\u95F4\u8FDB\u5165\u5E73\u53F0\u5B8C\u6210\u5B9E\u8BAD\u4F5C\u4E1A\u7684\u901A\u5173\u3002"))))};var ml=(0,o.connect)(({shixunHomeworks:t,loading:l})=>({shixunHomeworks:t,loading:l.effects}))(dl),zu=u(59301),In=(t,l,n)=>new Promise((ee,le)=>{var U=h=>{try{q(n.next(h))}catch(ae){le(ae)}},pe=h=>{try{q(n.throw(h))}catch(ae){le(ae)}},q=h=>h.done?ee(h.value):Promise.resolve(h.value).then(U,pe);q((n=n.apply(t,l)).next())});const El=({shixunHomeworks:t,loading:l,dispatch:n})=>{var ee,le;const[U,pe]=(0,e.useState)(!0),[q,h]=(0,e.useState)(!1),[ae,it]=(0,e.useState)([]),[Le,Ne]=(0,e.useState)([]),[Ye,Wt]=(0,e.useState)([]),[Oe,ht]=(0,e.useState)([]),[ne,ct]=(0,e.useState)(!1),[bt,$t]=(0,e.useState)(""),Ce=(0,o.useParams)();function We(){return In(this,null,function*(){let _e=yield(0,v.ZP)(`/api/homework_commons/${Ce.categoryId}/homework_common_collaborators.json`,{method:"get"});Ne(_e)})}function Lt(){return In(this,null,function*(){var _e;let I=yield(0,v.ZP)(`/api/courses/${Ce==null?void 0:Ce.coursesId}/teachers`,{method:"get",params:{homework_id:Ce.categoryId,limit:1e3}});(_e=I==null?void 0:I.teacher_list)==null||_e.map(be=>{be.key=be.user_id}),Wt(I==null?void 0:I.teacher_list),ht(I==null?void 0:I.teacher_list)})}(0,e.useEffect)(()=>{We(),Lt()},[Ce]);const wt=()=>{};return zu.createElement("section",{className:Ft.Z.form},zu.createElement(he.Z,{className:Ft.Z.content,style:{padding:"20px 30px",gap:20}},(ee=Le==null?void 0:Le.data)==null?void 0:ee.map(_e=>zu.createElement(he.Z,{align:"middle",className:`${Ft.Z.borderSty} ${bt===(_e==null?void 0:_e.id)?Ft.Z.delBorder:""}`,style:{height:"38px",borderRadius:"2px",padding:"0 12px",color:"#333333",background:"#fff"}},zu.createElement("span",{className:"c-grey-333"},_e==null?void 0:_e.real_name),(Le==null?void 0:Le.can_edit)&&zu.createElement("span",{style:{cursor:"pointer",marginLeft:"20px"},className:`iconfont icon-guanbi11 ${Ft.Z.delSty}`,onMouseEnter:()=>{$t(_e.id)},onMouseLeave:()=>{$t("")},onClick:()=>In(void 0,null,function*(){(yield(0,v.ZP)(`/api/homework_commons/${Ce.categoryId}/homework_common_collaborators/delete.json`,{method:"delete",body:{user_id:_e.id}})).status===0&&(i.ZP.info("\u5220\u9664\u6210\u529F"),We(),Lt())})}))),!(Le!=null&&Le.can_edit)&&!((le=Le==null?void 0:Le.data)!=null&&le.length)&&zu.createElement("span",{className:"c-grey-666"},"\u6682\u672A\u6DFB\u52A0\u534F\u4F5C\u8005"),(Le==null?void 0:Le.can_edit)&&zu.createElement(Z.ZP,{className:Ft.Z.copHover,style:{height:38,padding:"6px 15px",backgroundColor:"#fff"},type:"primary",ghost:!0,onClick:()=>h(!0)},"\u6DFB\u52A0\u534F\u4F5C\u8005")),zu.createElement(s.default,{title:"\u6DFB\u52A0\u534F\u4F5C\u8005",open:q,confirmLoading:ne,onCancel:()=>h(!1),onOk:()=>In(void 0,null,function*(){if(ae.length===0){i.ZP.info("\u8BF7\u9009\u62E9\u534F\u4F5C\u8001\u5E08");return}ct(!0),(yield(0,v.ZP)(`/api/homework_commons/${Ce.categoryId}/homework_common_collaborators.json`,{method:"post",body:{user_ids:ae}})).status===0&&(i.ZP.info("\u6DFB\u52A0\u6210\u529F"),it([]),We(),Lt(),h(!1)),ct(!1)})},zu.createElement("div",null,zu.createElement("div",{style:{display:"flex"}},zu.createElement("label",{style:{width:"50px"}},"\u59D3\u540D\uFF1A")," ",zu.createElement(Ee.default.Search,{onChange:_e=>{Wt(Oe.filter(I=>I.name.indexOf(_e.target.value)>-1))}})),zu.createElement(R.default,{style:{marginTop:"10px",height:"300px",overflow:"auto"},rowSelection:{type:"checkbox",onChange:(_e,I)=>{it(_e)},selectedRowKeys:ae,getCheckboxProps:_e=>({disabled:_e.is_collaborator})},pagination:!1,dataSource:Ye,columns:[{title:"\u59D3\u540D",dataIndex:"name",key:"name"},{title:"\u89D2\u8272",dataIndex:"role",key:"role"}]}))))};var fl=(0,o.connect)(({shixunHomeworks:t,loading:l})=>({shixunHomeworks:t,loading:l.effects}))(El),Cn=u(46474),pl=u(97177),Pe=u(59301),vl=Object.defineProperty,va=Object.getOwnPropertySymbols,gl=Object.prototype.hasOwnProperty,Fl=Object.prototype.propertyIsEnumerable,ga=(t,l,n)=>l in t?vl(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,On=(t,l)=>{for(var n in l||(l={}))gl.call(l,n)&&ga(t,n,l[n]);if(va)for(var n of va(l))Fl.call(l,n)&&ga(t,n,l[n]);return t},kn=(t,l,n)=>new Promise((ee,le)=>{var U=h=>{try{q(n.next(h))}catch(ae){le(ae)}},pe=h=>{try{q(n.throw(h))}catch(ae){le(ae)}},q=h=>h.done?ee(h.value):Promise.resolve(h.value).then(U,pe);q((n=n.apply(t,l)).next())});const hl=({shixunHomeworks:t,loading:l,dispatch:n,classroomList:ee,user:le})=>{var U,pe,q,h;const ae=(0,o.useParams)(),{verifyModelUser:it,ContactModalElement:Le}=(0,pl.Z)(),{workSetting:Ne}=t,[Ye,Wt]=(0,e.useState)(!1),[Oe,ht]=(0,e.useState)(!1),[ne,ct]=(0,e.useState)({work_end_forbid_evaluate:!1,start_permanent:!1,ai_syntax_check:!1,ai_exam_question:!1,ai_code_diagnosis:!1,ai_guidance:!1,ai_q_and_a:!1,ai_code_evaluation:!1,ai_code_optimization:!1,ai_code_comment:!1,ai_guide:!1,ai_guide_data:{unanswered_msg:"\u770B\u8D77\u6765\u4F60\u53EF\u80FD\u6B63\u5728\u4ED4\u7EC6\u601D\u8003\u8FD9\u9053\u9898\u76EE\u3002\u5982\u679C\u4F60\u6709\u4EFB\u4F55\u7591\u95EE\u6216\u662F\u9700\u8981\u4E00\u4E9B\u63D0\u793A\uFF0C\u8BF7\u968F\u65F6\u544A\u8BC9\u6211\uFF01\u6211\u5F88\u4E50\u610F\u5E2E\u5FD9\u3002",unanswered_time:10,unedit_time:3,evaluation_msg:"\u6211\u6CE8\u610F\u5230\u4F60\u5728\u8FD9\u4E00\u5173\u5361\u9047\u5230\u4E86\u4E00\u4E9B\u6311\u6218\u3002\u522B\u62C5\u5FC3\uFF0C\u8FD9\u662F\u5B66\u4E60\u8FC7\u7A0B\u4E2D\u7684\u5E38\u89C1\u60C5\u51B5\u3002\u8BA9\u6211\u4EEC\u4E00\u8D77\u6765\u5206\u6790\u4E00\u4E0B\u54EA\u91CC\u51FA\u4E86\u95EE\u9898\u5427\uFF01",evaluation_num:3}}),[bt,$t]=(0,e.useState)(!1),[Ce,We]=(0,e.useState)("\u8BC4\u4EF7\u7EF4\u5EA6\u9700\u8981\u5305\u542B\u4EE3\u7801\u98CE\u683C\u3001\u65F6\u95F4\u590D\u6742\u5EA6\u3001\u7A7A\u95F4\u590D\u6742\u5EA6\u3001 \u529F\u80FD\u6B63\u786E\u6027\u3001\u4EE3\u7801\u53EF\u8BFB\u6027\u3001\u6027\u80FD\u3001\u9519\u8BEF\u5904\u7406\u3001\u6269\u5C55\u6027\u548C\u590D\u7528\u6027\u3001\u6D4B\u8BD5\uFF0C\u9700\u8981\u751F\u6210\u8BC4\u4EF7\u603B\u7ED3\uFF0C\u4E0D\u9700\u8981\u751F\u6210\u6539\u8FDB\u540E\u7684\u4EE3\u7801"),[Lt,wt]=(0,e.useState)("");(0,e.useEffect)(()=>{Wt(!(0,M.GJ)())},[(0,M.GJ)()]);const _e=()=>{n({type:"shixunHomeworks/getWorkSetting",payload:On({},ae)})};(0,e.useEffect)(()=>{Ne!=null&&Ne.course_id&&(Object.keys(ne).forEach(He=>{ne[He]=Ne[He]||ne[He]}),ct(On({},ne)),We(Ne==null?void 0:Ne.ai_code_evaluation_promote))},[Ne]);const I=()=>kn(void 0,null,function*(){var He;if(((He=le==null?void 0:le.userInfo)==null?void 0:He.user_status)===2){(0,Cn.Rd)();return}ht(!0);const ru=JSON.parse(JSON.stringify(ne));(yield(0,v.ZP)(`/api/homework_commons/${ae.categoryId}/shiyan_setting.json`,{method:"post",body:ru})).status===0&&(i.ZP.success("\u66F4\u65B0\u6210\u529F"),_e(),n({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:On({},ae)})),ht(!1)}),be=He=>He.replace(/\\\(([\s\S]*?)\\\)/g,"$$$$$1$$$$").replace(/\\\[([\s\S]*?)\\\]/g,"$$$$$1$$$$").replace(/`(\$\$.*?\$\$)`/g,"$$$$$1$$$$").replace(/_{2,}/g,"`$&`"),[Te,Ve]=(0,e.useState)(!1),[Pt,vt]=(0,e.useState)(""),Kt=(0,e.useRef)(null),pu=()=>kn(void 0,null,function*(){Ve(!0),Kt.current=new pn.Z(z.Z.API_SERVER+"/api/stream/intelligent_imports/chat_messages.json",{response_mode:"streaming",model:"qwen-max",scene_awareness:!1,thinking_enabled:!1,image_generator:!1,file_ids:[],history:[],prompt:Ce,shixun_id:ne==null?void 0:ne.shixun_identifier,source:"shixun",is_chat:!1,type:9,description:Ce,query:`# \u521D\u59CB\u5316\u7D2F\u52A0\u5668 -sum = 0 -# \u4F7F\u7528for\u5FAA\u73AF\u904D\u53861\u5230100 -for i in range(1, 101): -sum += i # \u5C06\u5F53\u524D\u503C\u52A0\u5230sum\u4E2D -# \u8F93\u51FA\u7ED3\u679C -print("1\u5230100\u7684\u7D2F\u52A0\u548C\u4E3A:", sum)`}),yield new Promise((He,ru)=>{Kt.current.on("data",mu=>{vt(be(mu==null?void 0:mu.full))}),Kt.current.on("done",()=>kn(void 0,null,function*(){Ve(!1)})),Kt.current.startStream()})});return Pe.createElement("section",{className:Ft.Z.form},Pe.createElement("div",{className:Ft.Z.title},"\u8BC4\u6D4B\u9650\u5236"),Pe.createElement("div",{className:Ft.Z.content},Pe.createElement(p.default,{disabled:Ye,checked:ne.work_end_forbid_evaluate,onChange:He=>{ne.work_end_forbid_evaluate=He.target.checked,ct(Object.assign({},ne))}},Pe.createElement("span",{className:"c-black"},"\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u53EF\u7F16\u8F91\u4EE3\u7801"),Pe.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u4F5C\u4E1A\u622A\u6B62\u540E\uFF0C\u5B66\u751F\u65E0\u6CD5\u4FEE\u6539\u4EE3\u7801\u548C\u66F4\u65B0\u8BC4\u6D4B\u6570\u636E\uFF09"))),Pe.createElement("div",{className:Ft.Z.title,style:{marginTop:"30px"}},"\u4FDD\u5B58\u5B9E\u9A8C\u6570\u636E"),Pe.createElement("div",{className:Ft.Z.content},Pe.createElement(p.default,{disabled:Ye,checked:ne.start_permanent,onChange:He=>{if(!(0,M.Ny)()){(0,Cn.pW)(2);return}ne.start_permanent=He.target.checked,ct(Object.assign({},ne))}},Pe.createElement("span",{className:"c-black"},"\u5F00\u542F\u540E\uFF0C\u5B66\u5458\u5728\u901A\u7528\u4E91\u5B9E\u9A8C\u73AF\u5883\u4E0B\u7684/data/workspace\u76EE\u5F55\u5C06\u957F\u671F\u4FDD\u5B58\uFF0C\u6559\u5E08\u5728\u8BFE\u5802\u53EF\u5BFC\u51FA\u5B66\u751F\u5B9E\u9A8C\u6570\u636E",Pe.createElement("a",{target:"_blank",href:z.Z.API_SERVER+"/images/educoder/shixuns/\u5BFC\u51FA\u5B9E\u9A8C\u6587\u4EF6\u64CD\u4F5C\u6307\u5F15.pdf"},"\xA0\u64CD\u4F5C\u6307\u5F15\xA0")))),Pe.createElement("div",{className:Ft.Z.title,style:{marginTop:"30px"}},"\u667A\u80FD\u52A9\u6559\u529F\u80FD"),Pe.createElement("div",{className:Ft.Z.content,style:{padding:0}},Pe.createElement("div",{className:Ft.Z.pubColSty},Pe.createElement(p.default,{checked:ne.ai_exam_question,onChange:He=>{it()&&(ne.ai_exam_question=He.target.checked,ct(Object.assign({},ne)))}},Pe.createElement("span",{className:"c-black"},"\u667A\u80FD\u5BA1\u9898"),Pe.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u5F00\u542F\u540E\uFF0C\u5B66\u751F\u5728\u505A\u4F5C\u4E1A\u7684\u8FC7\u7A0B\u4E2D\uFF0C\u53EF\u4EE5\u4F7F\u7528\u667A\u80FD\u5BA1\u9898\u529F\u80FD\u62C6\u89E3\u4EFB\u52A1\u3001\u83B7\u53D6\u89E3\u9898\u601D\u8DEF\uFF09"))),Pe.createElement("div",{className:Ft.Z.pubColSty},Pe.createElement(p.default,{checked:ne.ai_syntax_check,onChange:He=>{it()&&(ne.ai_syntax_check=He.target.checked,ct(Object.assign({},ne)))}},Pe.createElement("span",{className:"c-black"},"\u8BED\u6CD5\u68C0\u67E5"),Pe.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u5F00\u542F\u540E\uFF0C\u5B66\u751F\u5728\u505A\u4F5C\u4E1A\u7684\u8FC7\u7A0B\u4E2D\uFF0C\u53EF\u4EE5\u4F7F\u7528\u8BED\u6CD5\u68C0\u67E5\u529F\u80FD\u68C0\u6D4B\u4EE3\u7801\u4E2D\u7684\u8BED\u6CD5\u9519\u8BEF\u3001\u83B7\u53D6\u4FEE\u590D\u5EFA\u8BAE\uFF09"))),Pe.createElement("div",{className:Ft.Z.pubColSty},Pe.createElement(p.default,{checked:ne.ai_code_diagnosis,onChange:He=>{it()&&(ne.ai_code_diagnosis=He.target.checked,ct(Object.assign({},ne)))}},Pe.createElement("span",{className:"c-black"},"\u4EE3\u7801\u8BCA\u65AD"),Pe.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u5F00\u542F\u540E\uFF0C\u5B66\u751F\u5728\u505A\u4F5C\u4E1A\u7684\u8FC7\u7A0B\u4E2D\uFF0C\u53EF\u4EE5\u4F7F\u7528\u4EE3\u7801\u8BCA\u65AD\u529F\u80FD\u5206\u6790\u4EE3\u7801\u3001\u83B7\u53D6\u4FEE\u6B63\u5EFA\u8BAE\uFF09"))),Pe.createElement("div",{className:Ft.Z.pubColSty},Pe.createElement(p.default,{checked:ne.ai_guidance,onChange:He=>{it()&&(ne.ai_guidance=He.target.checked,ct(Object.assign({},ne)))}},Pe.createElement("span",{className:"c-black"},"AI\u8F85\u5BFC"),Pe.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u5F00\u542F\u540E\uFF0C\u5B66\u751F\u5728\u505A\u4F5C\u4E1A\u7684\u8FC7\u7A0B\u4E2D\uFF0C\u53EF\u4EE5\u4F7F\u7528AI\u8F85\u5BFC\u529F\u80FD\u751F\u6210\u6B63\u786E\u4EE3\u7801\uFF09"))),Pe.createElement("div",{className:Ft.Z.pubColSty},Pe.createElement(p.default,{checked:ne.ai_code_evaluation,onChange:He=>{it()&&(ne.ai_code_evaluation=He.target.checked,ct(Object.assign({},ne)))}},Pe.createElement("span",{className:"c-black"},"\u4EE3\u7801\u8BC4\u4EF7"),Pe.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u5F00\u542F\u540E\uFF0C\u5B66\u751F\u5728\u505A\u4F5C\u4E1A\u7684\u8FC7\u7A0B\u4E2D\uFF0C\u53EF\u4EE5\u4F7F\u7528\u4EE3\u7801\u8BC4\u4EF7\u529F\u80FD\u5BF9\u4EE3\u7801\u8FDB\u884C\u591A\u7EF4\u5EA6\u8BC4\u4EF7\uFF0C\u4E86\u89E3\u4EE3\u7801\u7F3A\u9677\uFF09"),Pe.createElement("span",{style:{color:"#3061D0",cursor:"pointer"},onClick:He=>{He.preventDefault(),He.stopPropagation(),$t(!0),We(Lt||(Ne==null?void 0:Ne.ai_code_evaluation_promote))}},"\u8BC4\u4EF7\u7EF4\u5EA6"))),Pe.createElement("div",{className:Ft.Z.pubColSty},Pe.createElement(p.default,{checked:ne.ai_code_optimization,onChange:He=>{it()&&(ne.ai_code_optimization=He.target.checked,ct(Object.assign({},ne)))}},Pe.createElement("span",{className:"c-black"},"\u4EE3\u7801\u4F18\u5316"),Pe.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u5F00\u542F\u540E\uFF0C\u5B66\u751F\u5728\u505A\u4F5C\u4E1A\u7684\u8FC7\u7A0B\u4E2D\uFF0C\u53EF\u4EE5\u4F7F\u7528\u4EE3\u7801\u4F18\u5316\u529F\u80FD\u5BF9\u4EE3\u7801\u8FDB\u884C\u4F18\u5316\uFF0C\u5E2E\u52A9\u63D0\u5347\u4EE3\u7801\u8D28\u91CF\uFF09"))),Pe.createElement("div",{className:Ft.Z.pubColSty},Pe.createElement(p.default,{checked:ne.ai_code_comment,onChange:He=>{it()&&(ne.ai_code_comment=He.target.checked,ct(Object.assign({},ne)))}},Pe.createElement("span",{className:"c-black"},"\u4EE3\u7801\u6CE8\u91CA"),Pe.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u5F00\u542F\u540E\uFF0C\u5B66\u751F\u5728\u505A\u4F5C\u4E1A\u7684\u8FC7\u7A0B\u4E2D\uFF0C\u53EF\u4EE5\u4F7F\u7528\u4EE3\u7801\u6CE8\u91CA\u529F\u80FD\u5BF9\u5DF2\u6709\u4EE3\u7801\u6DFB\u52A0\u6CE8\u91CA\uFF0C\u8282\u7701\u4EE3\u7801\u7F16\u5199\u65F6\u95F4\uFF09"))),Pe.createElement("div",{className:Ft.Z.pubColSty},Pe.createElement(p.default,{checked:ne.ai_q_and_a,onChange:He=>{it()&&(He.target.checked||(ne.ai_guide=He.target.checked),ne.ai_q_and_a=He.target.checked,ct(Object.assign({},ne)))}},Pe.createElement("span",{className:"c-black"},"AI\u95EE\u7B54"),Pe.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u5F00\u542F\u540E\uFF0C\u5B66\u751F\u5728\u505A\u4F5C\u4E1A\u7684\u8FC7\u7A0B\u4E2D\uFF0C\u53EF\u4EE5\u4F7F\u7528AI\u95EE\u7B54\u529F\u80FD\u5411\u667A\u80FD\u52A9\u6559\u8BF7\u6559\uFF09"))),Pe.createElement("div",{className:`${Ft.Z.pubColSty}`,style:ne.ai_guide?{height:"auto",borderBottom:"none",paddingBottom:"30px"}:{}},Pe.createElement(p.default,{checked:ne.ai_guide,onChange:He=>{it()&&(He.target.checked&&(ne.ai_q_and_a=He.target.checked),ne.ai_guide=He.target.checked,ct(Object.assign({},ne)))}},Pe.createElement("span",{className:"c-black"},"AI\u4F7F\u7528\u5F15\u5BFC"),Pe.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u5F00\u542F\u540E\uFF0C\u82E5\u5B66\u751F\u957F\u65F6\u95F4\u505C\u7559\u5B9E\u8BAD\u6311\u6218\u9875\u9762\u6216\u8005\u591A\u6B21\u8BC4\u6D4B\u4E0D\u901A\u8FC7\u65F6\uFF0C\u7CFB\u7EDF\u53EF\u4EE5\u4E3B\u52A8\u68C0\u6D4B\u5E76\u663E\u793A\u63D0\u793A\u8BED\u6765\u5F15\u5BFC\u5B66\u751F\u4F7F\u7528\u667A\u80FD\u52A9\u6559\u8F85\u52A9\u7B54\u9898\uFF09")),ne.ai_guide&&Pe.createElement("div",{className:"flex flex-col c-grey-666",style:{padding:"0 24px",gap:"15px"}},Pe.createElement("div",{className:"flex item-center gap-12px"},Pe.createElement("div",{className:"text-nowrap"},"\u8FDB\u5165\u5B9E\u8BAD\u6311\u6218\u9875\u9762\u8D85\u8FC7"),Pe.createElement(Ee.default,{size:"large",style:{width:"133px"},value:(U=ne==null?void 0:ne.ai_guide_data)==null?void 0:U.unanswered_time,min:1,step:1,addonAfter:"\u5206\u949F",onChange:He=>{ne.ai_guide_data.unanswered_time=He.target.value,ct(Object.assign({},ne))}}),Pe.createElement("div",{className:"text-nowrap"},"\u8FD8\u672A\u81EA\u6D4B\u6216\u8005\u63D0\u4EA4\u8BC4\u6D4B")),Pe.createElement("div",{className:"flex gap-12px"},Pe.createElement("div",{className:"text-nowrap"},"\u63D0\u793A\u8BED"),Pe.createElement(Ee.default.TextArea,{className:"flex-1 minW-0",showCount:!0,maxLength:300,value:(pe=ne==null?void 0:ne.ai_guide_data)==null?void 0:pe.unanswered_msg,onChange:He=>{ne.ai_guide_data.unanswered_msg=He.target.value,ct(Object.assign({},ne))}})),Pe.createElement("div",{className:"flex item-center gap-12px"},Pe.createElement("div",{className:"text-nowrap"},"\u8BC4\u6D4B\u5931\u8D25\u6B21\u6570\u8D85\u8FC7"),Pe.createElement(Ee.default,{size:"large",style:{width:"133px"},value:(q=ne==null?void 0:ne.ai_guide_data)==null?void 0:q.evaluation_num,min:1,step:1,addonAfter:"\u6B21",onChange:He=>{ne.ai_guide_data.evaluation_num=He.target.value,ct(Object.assign({},ne))}})),Pe.createElement("div",{className:"flex gap-12px"},Pe.createElement("div",{className:"text-nowrap"},"\u63D0\u793A\u8BED"),Pe.createElement(Ee.default.TextArea,{className:"flex-1 minW-0",showCount:!0,maxLength:300,value:(h=ne==null?void 0:ne.ai_guide_data)==null?void 0:h.evaluation_msg,onChange:He=>{ne.ai_guide_data.evaluation_msg=He.target.value,ct(Object.assign({},ne))}}))))),!Ye&&Pe.createElement(Pe.Fragment,null,Pe.createElement(Z.ZP,{type:"primary",size:"large",loading:Oe,style:{width:"138px",marginTop:"30px"},onClick:()=>I()},"\u4FDD\u5B58")),Le(),Pe.createElement(s.default,{centered:!0,open:bt,title:"\u4EE3\u7801\u8BC4\u4EF7\u7EF4\u5EA6",width:800,zIndex:100,onOk:()=>kn(void 0,null,function*(){Te||(Ce.trim()?((yield(0,v.ZP)(`/api/homework_commons/${ae.categoryId}/shiyan_setting.json`,{method:"post",body:{ai_code_evaluation_promote:Ce,type:"prompt"}})).status===0&&(i.ZP.success("\u4FDD\u5B58\u6210\u529F"),_e(),n({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:On({},ae)})),$t(!1)):i.ZP.warning("\u8BF7\u586B\u5199\u4EE3\u7801\u8BC4\u4EF7\u7EF4\u5EA6"),vt(""))}),onCancel:()=>{Te||($t(!1),We(Ne==null?void 0:Ne.ai_code_evaluation_promote),vt(""))},maskClosable:!1},Pe.createElement("div",{style:{color:"#333"}},Pe.createElement("div",null,"\u667A\u80FD\u52A9\u6559\u9ED8\u8BA4\u7684\u4EE3\u7801\u8BC4\u4EF7\u7EF4\u5EA6\u5982\u4E0B\uFF0C\u60A8\u53EF\u4EE5\u5728\u6B64\u57FA\u7840\u4E0A\u8FDB\u884C\u7F16\u8F91\uFF0C\u7F16\u8F91\u4E4B\u540E\u667A\u80FD\u52A9\u6559\u5C06\u6839\u636E\u60A8\u63D0\u4F9B\u7684\u8BC4\u4EF7\u7EF4\u5EA6\u5BF9\u5B66\u751F\u4EE3\u7801\u8FDB\u884C\u8BC4\u4EF7\u3002"),Pe.createElement(Ee.default.TextArea,{value:Ce,style:{borderRadius:"5px",margin:"10px 0"},rows:3,onChange:He=>We(He.target.value)}),Pe.createElement("div",{style:{marginBottom:"10px"}},"\u4EE5\u4E0B\u4E3A\u4E00\u6BB5\u6D4B\u8BD5\u4EE3\u7801\u3002\u60A8\u53EF\u4F7F\u7528\u8BE5\u6BB5\u4EE3\u7801\u5BF9\u5DF2\u8BBE\u7F6E\u7684\u4EE3\u7801\u8BC4\u4EF7\u7EF4\u5EA6\u8FDB\u884C\u6D4B\u8BD5\uFF0C\u67E5\u770B\u8BC4\u4EF7\u6548\u679C\u3002"),Pe.createElement("div",{style:{padding:"12px 16px",background:"#F6F7F9"}},"# \u521D\u59CB\u5316\u7D2F\u52A0\u5668",Pe.createElement("br",null),"sum = 0",Pe.createElement("br",null),"# \u4F7F\u7528for\u5FAA\u73AF\u904D\u53861\u5230100",Pe.createElement("br",null),"for i in range(1, 101):",Pe.createElement("br",null),"sum += i # \u5C06\u5F53\u524D\u503C\u52A0\u5230sum\u4E2D",Pe.createElement("br",null),"# \u8F93\u51FA\u7ED3\u679C",Pe.createElement("br",null),'print("1\u5230100\u7684\u7D2F\u52A0\u548C\u4E3A:", sum)'),Pe.createElement("div",{className:Ft.Z.work_button,onClick:()=>{Te?i.ZP.warning("\u6B63\u5728\u751F\u6210\u8BC4\u8BBA\u4E2D\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002"):(wt(Ce),pu())}},"\u6D4B\u8BD5\u8BC4\u4EF7\u6548\u679C"),Pt&&Pe.createElement("div",{style:{width:"100%",height:"200px",overflowY:"auto",marginTop:"20px"}},Pe.createElement(V.Z,{value:Pt,style:{fontSize:"14px"}})))))};var Al=(0,o.connect)(({shixunHomeworks:t,classroomList:l,loading:n,user:ee})=>({shixunHomeworks:t,classroomList:l,loading:n.effects,user:ee}))(hl),Bu={flex_box_center:"flex_box_center___F26vH",flex_space_between:"flex_space_between___J7N7g",flex_box_vertical_center:"flex_box_vertical_center___W4LLF",flex_box_center_end:"flex_box_center_end___ViUq3",flex_box_column:"flex_box_column___fhMvC",content:"content___gstD6",explain:"explain___gCVEb",tabs:"tabs___JAbVp",active:"active___O3Rxd",btns:"btns___bZYiw",must:"must___Ne3Rd",popover:"popover___MLGUB",zybzForm:"zybzForm___JaYlh",graaytitle:"graaytitle___vJ0cM",dataPicker:"dataPicker___qgWAA",examineStatus:"examineStatus___A8ldH",contacts:"contacts___yS8x4",contacts_img:"contacts_img___pPzVA",suc_status:"suc_status___hDmBK",fail_status:"fail_status___KeR0l",bohui:"bohui___cxmL1"},Bl=u(88522),Nn=u(29679),Fa=u(19248),yt=u(59301),Cl=Object.defineProperty,yl=Object.defineProperties,_l=Object.getOwnPropertyDescriptors,ha=Object.getOwnPropertySymbols,Dl=Object.prototype.hasOwnProperty,xl=Object.prototype.propertyIsEnumerable,Aa=(t,l,n)=>l in t?Cl(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,Ba=(t,l)=>{for(var n in l||(l={}))Dl.call(l,n)&&Aa(t,n,l[n]);if(ha)for(var n of ha(l))xl.call(l,n)&&Aa(t,n,l[n]);return t},Ca=(t,l)=>yl(t,_l(l)),$n=(t,l,n)=>new Promise((ee,le)=>{var U=h=>{try{q(n.next(h))}catch(ae){le(ae)}},pe=h=>{try{q(n.throw(h))}catch(ae){le(ae)}},q=h=>h.done?ee(h.value):Promise.resolve(h.value).then(U,pe);q((n=n.apply(t,l)).next())});const bl="YYYY-MM-DD HH:mm",wl=({user:t,shixunHomeworks:l,loading:n,dispatch:ee})=>{const[le]=we.default.useForm(),[U,pe]=(0,e.useState)(null),[q,h]=(0,e.useState)([]),[ae,it]=(0,e.useState)(""),[Le,Ne]=(0,e.useState)(!1),[Ye,Wt]=(0,e.useState)(!1),Oe=(0,o.useParams)(),[ht,ne]=(0,e.useState)([]),[ct,bt]=(0,e.useState)({}),$t=(0,e.useRef)((0,Se.throttle)(_e=>We(_e),1200,{leading:!0,trailing:!0})).current;(0,e.useEffect)(()=>{We(),Ce()},[]);const Ce=()=>$n(void 0,null,function*(){var _e,I,be,Te,Ve,Pt,vt,Kt,pu,He,ru,mu,Ie,Et,Je,Ut;let gt=yield(0,v.ZP)(`/api/homework_commons/${Oe.categoryId}/resources_ensure_info.json`,{method:"get"});le.setFieldsValue(Ca(Ba({},(_e=gt==null?void 0:gt.data)==null?void 0:_e.important_shixun_configs),{times:(be=(I=gt==null?void 0:gt.data)==null?void 0:I.important_shixun_configs)!=null&&be.start_time&&((Ve=(Te=gt==null?void 0:gt.data)==null?void 0:Te.important_shixun_configs)!=null&&Ve.end_time)?[D()((vt=(Pt=gt==null?void 0:gt.data)==null?void 0:Pt.important_shixun_configs)==null?void 0:vt.start_time),D()((pu=(Kt=gt==null?void 0:gt.data)==null?void 0:Kt.important_shixun_configs)==null?void 0:pu.end_time)]:["",""],school_id:(ru=(He=gt==null?void 0:gt.data)==null?void 0:He.important_shixun_configs)==null?void 0:ru.school_name})),bt((mu=gt==null?void 0:gt.data)==null?void 0:mu.important_shixun_configs),it((Et=(Ie=gt==null?void 0:gt.data)==null?void 0:Ie.important_shixun_configs)==null?void 0:Et.verify_reason),pe(((Ut=(Je=gt==null?void 0:gt.data)==null?void 0:Je.important_shixun_configs)==null?void 0:Ut.process)||null)});(0,e.useEffect)(()=>{ct!=null&&ct.school_name&&We(ct==null?void 0:ct.school_name)},[ct==null?void 0:ct.school_name]);const We=_e=>$n(void 0,null,function*(){var I;const be=yield ee({type:"account/getSchoolOption",payload:{keyword:_e,limit:10}});h(be==null?void 0:be.schools),_e&&_e!=""&&ne((I=be==null?void 0:be.schools)==null?void 0:I.filter(Te=>Te.name.includes(_e)))}),Lt=_e=>parseInt(_e||"0",10),wt=(_e,I)=>{if(I&&I.length===2){const[be,Te]=I;if(!be||!Te)return Promise.reject(new Error("\u8BF7\u9009\u62E9\u8D77\u59CB\u65F6\u95F4\u548C\u7ED3\u675F\u65F6\u95F4"))}return Promise.resolve()};return yt.createElement("section",{className:Bu.form},yt.createElement("div",{style:{padding:"30px 50px"}},yt.createElement(we.default,{form:le,disabled:Le,layout:"horizontal",onFinish:_e=>$n(void 0,null,function*(){var I;console.log("---",_e);const be=(I=q.find(Ve=>Ve.name===(_e==null?void 0:_e.school_id)))==null?void 0:I.id;let Te=yield(0,v.ZP)(`/api/homework_commons/${Oe.categoryId}/resources_first_ensure.json`,{method:"post",body:{important_shixun_configs:Ca(Ba({},_e),{start_time:D()(_e==null?void 0:_e.times[0]).format("YYYY-MM-DD HH:mm"),end_time:D()(_e==null?void 0:_e.times[1]).format("YYYY-MM-DD HH:mm"),school_id:be})}});(Te==null?void 0:Te.status)===0&&(i.ZP.info("\u4FEE\u6539\u6210\u529F"),Ce())}),className:Bu.zybzForm},yt.createElement("div",{style:{display:"flex",alignItems:"center"}},yt.createElement("div",{style:{color:"#333333",fontSize:"14px",width:"120px",marginRight:"10px",textAlign:"right"}},yt.createElement("span",{className:Bu.must},"*"),"\u4FDD\u969C\u6807\u8BC6"),yt.createElement(we.default.Item,{label:"",name:"identifier",style:{width:"100%"},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4FDD\u969C\u6807\u8BC6"}]},yt.createElement(Ee.default,{size:"large",disabled:!0,minLength:4,maxLength:30,showCount:!0,placeholder:"\u8BF7\u8F93\u5165\u4FDD\u969C\u6807\u8BC6"}))),yt.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:"20px"}},yt.createElement("div",{style:{color:"#333333",fontSize:"14px",width:"120px",marginRight:"10px",textAlign:"right"}},yt.createElement("span",{className:Bu.must},"*"),"\u9700\u8981\u4FDD\u969C\u7684\u5355\u4F4D"),yt.createElement(we.default.Item,{label:"",name:"school_id",style:{width:"100%"},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u9700\u8981\u4FDD\u969C\u7684\u5355\u4F4D"}]},yt.createElement(Bl.Z,{size:"large",showSearch:!0,showArrow:!0,placeholder:"\u8BF7\u9009\u62E9\u9700\u8981\u4FDD\u969C\u7684\u5355\u4F4D",onChange:$t,options:ht==null?void 0:ht.map(_e=>({value:_e.name}))}))),yt.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:"20px"}},yt.createElement("div",{style:{color:"#333333",fontSize:"14px",width:"120px",marginRight:"10px",textAlign:"right"}},yt.createElement("span",{className:Bu.must},"*"),"\u4FDD\u969C\u65F6\u95F4"),yt.createElement(we.default.Item,{label:"",name:"times",style:{width:"100%"},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4\u548C\u7ED3\u675F\u65F6\u95F4"},{validator:wt}]},yt.createElement(ln.default.RangePicker,{disabledDate:_e=>_e&&_e{if(_e&&_e[0]&&_e[1]){const I=_e[0].isBefore(D()())?D()():_e[0];le.setFieldValue("times",[I,_e[1]])}else le.setFieldValue("times",_e)}}))),yt.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:"20px"}},yt.createElement("div",{style:{color:"#333333",fontSize:"14px",width:"120px",marginRight:"10px",textAlign:"right"}},yt.createElement("span",{className:Bu.must},"*"),"\u4FDD\u969C\u4EBA\u6570"),yt.createElement(we.default.Item,{label:"",name:"people_number",style:{width:"100%"},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4FDD\u969C\u4EBA\u6570"}]},yt.createElement(Ze.Z,{size:"large",style:{width:"100%"},parser:Lt,placeholder:"\u8BF7\u8F93\u5165\u4FDD\u969C\u4EBA\u6570",min:1})))),yt.createElement("div",{className:`${Bu.examineStatus}`},U>=1&&yt.createElement("div",null," ",yt.createElement(Nn.Z,{className:Bu.suc_status})," \u5B9E\u9A8C\u8D44\u6E90\u4F18\u5148\u4FDD\u969C\u7533\u8BF7\u6210\u529F\uFF0C\u5E73\u53F0\u7BA1\u7406\u5458\u5BA1\u6838\u4E2D"),U>=2&&U!=3&&yt.createElement("div",null," ",yt.createElement(Nn.Z,{className:Bu.suc_status})," \u5E73\u53F0\u7BA1\u7406\u5458\u5BA1\u6838\u901A\u8FC7\uFF0C\u7CFB\u7EDF\u8D44\u6E90\u5206\u914D\u4E2D"),U==3&&yt.createElement("div",null," ",yt.createElement(Fa.Z,{className:Bu.fail_status}),"\u5E73\u53F0\u7BA1\u7406\u5458\u5BA1\u6838\u9A73\u56DE\uFF0C\u9A73\u56DE\u539F\u56E0: ( ",yt.createElement("span",{title:ae,className:Bu.bohui},ae),") \u5982\u6709\u95EE\u9898\u8BF7\u8054\u7CFB",yt.createElement("span",{className:Bu.contacts},yt.createElement("span",null,"\u5E73\u53F0\u8FD0\u8425\u4EBA\u5458")," ",yt.createElement("div",{className:Bu.contacts_img}))),U>=4&&U!=5&&U!=7&&yt.createElement("div",null," ",yt.createElement(Nn.Z,{className:Bu.suc_status})," \u7CFB\u7EDF\u8D44\u6E90\u5206\u914D\u5B8C\u6210\uFF0C\u5B9E\u9A8C\u8D44\u6E90\u4FDD\u969C\u4E2D"),(U==5||U==7)&&yt.createElement("div",null," ",yt.createElement(Fa.Z,{className:Bu.fail_status}),"\u7CFB\u7EDF\u8D44\u6E90\u5206\u914D\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB",yt.createElement("span",{className:Bu.contacts},yt.createElement("span",null,"\u5E73\u53F0\u8FD0\u8425\u4EBA\u5458")," ",yt.createElement("div",{className:Bu.contacts_img}))),U>5&&yt.createElement("div",null," ",yt.createElement(Nn.Z,{className:Bu.suc_status})," \u5B9E\u9A8C\u8D44\u6E90\u4FDD\u969C\u5DF2\u7ED3\u675F")),yt.createElement(Z.ZP,{type:"primary",style:{width:"138px",marginTop:"30px"},size:"large",loading:Ye,onClick:()=>{le.submit()}},"\u4FDD\u5B58")))};var Pl=(0,o.connect)(({shixunHomeworks:t,loading:l,user:n})=>({shixunHomeworks:t,loading:l.effects,user:n}))(wl),Sl=u(33441),un=u(59301);const Il=({shixunHomeworks:t,loading:l,dispatch:n})=>{const[ee]=(0,o.useSearchParams)(),le=[{key:"1",label:"\u53D1\u5E03\u8BBE\u7F6E",element:un.createElement(qn.ZP,null)},{key:"6",label:"\u5B9E\u9A8C\u8BBE\u7F6E",element:un.createElement(Al,null)},{key:"2",label:"\u8BC4\u5206\u8BBE\u7F6E",element:un.createElement(ml,null)},{key:"3",label:"\u5C55\u793A\u8BBE\u7F6E",element:un.createElement(al,null)},{key:"4",label:"\u534F\u4F5C\u8BBE\u7F6E",element:un.createElement(fl,null)},(0,M.Ny)()&&{key:"5",label:"\u5B9E\u9A8C\u8D44\u6E90\u4F18\u5148\u4FDD\u969C",element:un.createElement(Pl,null)}].filter(U=>!!U);return(0,e.useEffect)(()=>(n({type:"globalSetting/footerToggle",payload:!1}),()=>{n({type:"globalSetting/footerToggle",payload:!0})}),[]),un.createElement("div",{style:{paddingBottom:"50px"}},un.createElement(Sl.Z,{dataSource:le,style:{marginBottom:52}}))};var Ol=(0,o.connect)(({shixunHomeworks:t,loading:l})=>({shixunHomeworks:t,loading:l.effects}))(Il),kl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYQAAAGhCAYAAABh3MNWAAABQGlDQ1BJQ0MgUHJvZmlsZQAAKJFjYGASSCwoyGFhYGDIzSspCnJ3UoiIjFJgf8bAyCDKwMmgwMCfmFxc4BgQ4ANUwgCjUcG3a0DVQHBZF2RWbexduafcy0MCq/pLvssI6GCqRwFcKanFyUD6DxAnJRcUlTAwMCYA2crlJQUgdguQLVIEdBSQPQPEToew14DYSRD2AbCakCBnIPsKkC2QnJGYAmQ/AbJ1kpDE05HYUHtBgMPZyDzI1MCAgFNJByWpFSUg2jm/oLIoMz2jRMERGEKpCp55yXo6CkYGRkYMDKDwhqj+LAYOR0axUwixDqAfnEFuNkaIea1nYJh2ioFBKhQhpuzEwKD6mYFh+5KCxKJEuAMYv7EUpxkbQdg8RQwMrD/+//8sy8DAvouB4W/R//+/5/7//3cJAwPzTQaGA4UAR+xdSWtJcowAAAA4ZVhJZk1NACoAAAAIAAGHaQAEAAAAAQAAABoAAAAAAAKgAgAEAAAAAQAAAYSgAwAEAAAAAQAAAaEAAAAAwOFicgAAQABJREFUeAHsvWl3I0mWpmcAAQLc99gysioqs6qrqpeR+mjOkf6tzpH0E/Rh9E3qM5pudfdMT9fe1blFZsa+cF+xUO9zzc3hBEEGCYIgAF6LIMzN3Nzc7HX3+9q9tpVO5YI7R8ARcAQcgXuPQPneI+AAOAKOgCP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BACQqAkAiKEksCpmBAQAkKgagiIEKo2ouqPEBACQqAkAiKEksCpmBAQAkKgagiIEKo2ouqPEBACQqAkAiKEksCpmBAQAkKgagiIEKo2ouqPEBACQqAkAiKEksCpmBAQAkKgagiIEKo2ouqPEBACQqAkAiKEksCpmBAQAkKgagiIEKo2ouqPEBACQqAkAiKEksCpmBAQAkKgagiIEKo2ouqPEBACQqAkAiKEksCpmBAQAkKgagiIEKo2ouqPEBACQqAkAiKEksCpmBAQAkKgagiIEKo2ouqPEBACQqAkAiKEksCpmBAQAkKgagiIEKo2ouqPEBACQqAkAiKEksCpmBAQAkKgagiIEKo2ouqPEBACQqAkAiKEksCpmBAQAkKgagiIEKo2ouqPEBACQqAkAiKEksCpmBAQAkKgagiIEKo2ouqPEBACQqAkAiKEksCpmBAQAkKgagiIEKo2ouqPEBACQqAkAiKEksCpmBAQAkKgagiIEKo2ouqPEBACQqAkAiKEksCpmBAQAkKgagiIEKo2ouqPEBACQqAkAiKEksCpmBAQAkKgagiIEKo2ouqPEBACQqAkAiKEksCpmBAQAkKgagiIEKo2ouqPEBACQqAkAiKEksCpmBAQAkKgagiIEKo2ouqPEBACQqAkAiKEksCpmBAQAkKgagiIEKo2ouqPEBACQqAkAiKEksCpmBAQAkKgagiIEKo2ouqPEBACQqAkAiKEksCpmBAQAkKgagiIEAZzRAcMGNCihn///TcMHDiwRbwihj0E+vbtG/iTCAEhEEKPqLikuQbjTth4441Dnz59wi677BImm2yy8NBDD4Vdd901zDTTTOHUU08Ne++9dzjggAPC9NNP33QVYP/iiy+a4vxktNFGs3r8vOi45JJLhrHGGqsoyeIgJRTdn3/+GX766afw6aefhs8//zx89tlnFv7kk0/CzDPPHE455ZSmOr7//vtw2GGHNcUN6mSvvfayvqf5/vjjj7Dgggta1KuvvpomWfiKK64I5513Xhh55JHD1VdfHXr37t0iz+uvvx7eeOONsN5661na119/3SIPEaOMMkoYY4wxLO3nn38OjMkkk0wSzj333ML8Hvnrr7+GRRZZxE4fe+yxNvH0Mp11fOqpp8IDDzwQ9t9//9CrV68W1T766KNhp512Cssvv3w4/vjjW6QTwRh/9NFH4e233w5vvfVWePPNN8Nff/0VLrzwwvDggw+GlVZaKfTo0cPqeeaZZ8Kll14aZpxxRivDfcH4D0q4T3/55Re7d7iH+OMe4v753//+F7bddttBVaH0LoTAcF2orcNcU1FYruy22mora9/www9vRx5WFN3LL78cNtlkk3DJJZcYSXgn+vXrF1ZccUU/bTqS//LLL2+Ky5/MPvvsTQrsiCOOCE8++WRAEfMAt0dQsCgRyMvl999/DyijkUYaKay66qoeXXi87bbbTAHtsMMOLdLpf2sCEbqSo63HHXdcdu5lUOxbbrml1U+bll566bDKKqt4ctNx3XXXDSussEL47rvvArigtP7++++mPEUnbbWxKH9nxUG62223nVUHSWM4XHvtteHss8/OLoFiR+65557wyCOPWJiPUUcdNTz88MN2vtgY0tpOAAAPGklEQVRiixWO9bLLLmvxI4wwQiDMPUF99BcFj4HCvcs9Oddcc1ld11xzTbjrrrvMgABvynCPejssU+6De3/NNdcM4447bi5Fp10VARHCYIzcZZddZqXnn3/+TKkON1wN0v79+9usASv0xhtvDJtvvrkRxNRTT21lsNywisnnCtyt5LHHHjustdZaLVqGe+qWW26x+IkmmqgpHcXy5ZdfWhzKHMWB1Tz66KPbQ/7++++HeeaZJyyxxBJh4oknNgsaKxrrukhQBFjNbUlbyqKtcocffrglg9srr7xiSg/ycWudRGY/hx56aNh3333DaaedZhYq8WOOOWaYddZZCYZvv/02vPvuuxZGuUFkWMHDuqBAmR0xq2SmsMUWW5g1P80002RN//HHH208Gcs0nnMX7qUXX3zRT8Nqq61mJAqZbrbZZuHkk08OSy21VJZO4O677zYy4F5wMiD+gw8+MOOFcF7AfLzxxgvcl8yCJ5988uxInKQ6CIgQSo7lV199ZYqM4j47IIwiRrCyevbsGQ4++OAAKeC2mXDCCS2NjxFHHNEsvTvuuMPcBosvvng4/fTTs3Ss9wsuuMAUN2SCYPlCCDyguFqK5MQTTwwLL7xwUxKuiYM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INBAQITSwUEgICAEh0K0RECF06+FX54WAEBACDQRECA0sFBICQkAIdGsERAjdevjVeSEgBIRAAwERQgMLhYSAEBAC3RoBEUK3Hn51XggIASHQQECE0MBCISEgBIRAt0ZAhNCth1+dFwJCQAg0EBAhNLBQSAgIASHQrREQIXTr4VfnhYAQEAINBP4ffViVsiyE5ygAAAAASUVORK5CYII=",ya=u(42441);const Nl=(t=[],l=[],n=[])=>(console.log("---",t,l,n),{tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:["\u7B49\u7EA7A","\u7B49\u7EA7B","\u7B49\u7EA7C","\u7B49\u7EA7D","\u7B49\u7EA7E"]}],yAxis:[{type:"value"}],series:[{name:"\u7F3A\u9677",type:"bar",stack:"Ad",color:["#5c9ef7"],emphasis:{focus:"series"},data:n},{name:"\u6F0F\u6D1E",type:"bar",stack:"Ad",color:["#75c87c"],emphasis:{focus:"series"},data:l},{name:"\u4EE3\u7801\u89C4\u8303\u6027",type:"bar",stack:"Ad",color:["#f3d460"],emphasis:{focus:"series"},data:t}]}),Rl=(t=[])=>({dataset:[{source:t}],tooltip:{show:!0,formatter:function(l){return l.value[2]+":"+l.value[1]+"\u5206"}},xAxis:{splitLine:{lineStyle:{type:"dashed"}},show:!1},yAxis:{splitLine:{lineStyle:{type:"dashed"}}},series:[{name:"scatter",type:"scatter",datasetIndex:0},{name:"line",type:"line",smooth:!0,datasetIndex:1,symbolSize:.1,symbol:"circle",label:{show:!0,fontSize:16},labelLayout:{dx:-20},encode:{label:2,tooltip:1}}]});var Zl=Object.defineProperty,_a=Object.getOwnPropertySymbols,Tl=Object.prototype.hasOwnProperty,jl=Object.prototype.propertyIsEnumerable,Da=(t,l,n)=>l in t?Zl(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,Rn=(t,l)=>{for(var n in l||(l={}))Tl.call(l,n)&&Da(t,n,l[n]);if(_a)for(var n of _a(l))jl.call(l,n)&&Da(t,n,l[n]);return t},ea=(t,l,n)=>new Promise((ee,le)=>{var U=h=>{try{q(n.next(h))}catch(ae){le(ae)}},pe=h=>{try{q(n.throw(h))}catch(ae){le(ae)}},q=h=>h.done?ee(h.value):Promise.resolve(h.value).then(U,pe);q((n=n.apply(t,l)).next())});const Ll=({shixunHomeworks:t,loading:l,dispatch:n})=>{var ee,le,U,pe;const q=(0,o.useParams)(),[h,ae]=(0,e.useState)(Rn(Rn({},{sort_by:"student_id",sort_direction:"desc"}),q)),[it,Le]=(0,e.useState)(),[Ne,Ye]=(0,e.useState)([]);let Wt=(0,e.useRef)();const[Oe,ht]=(0,e.useState)(1),[ne,ct]=(0,e.useState)(!1),[bt,$t]=(0,e.useState)(10),[Ce,We]=(0,e.useState)([]);(0,e.useEffect)(()=>{wt()},[]);const Lt=[{title:"\u5B66\u53F7",dataIndex:"student_number",sorter:!0,showSorterTooltip:!1,sortOrder:h.sort_by==="student_number"?h.sort_direction==="desc"?"descend":"ascend":null},{title:"\u5206\u73ED",dataIndex:"group_course_name"},{title:"\u59D3\u540D",dataIndex:"user_name"},{title:"\u7F3A\u9677",children:[{title:"\u963B\u65AD",dataIndex:"bug",render:I=>e.createElement("span",{className:"current"},I==null?void 0:I.blocker)},{title:"\u4E25\u91CD",dataIndex:"bug",render:I=>e.createElement("span",{className:"current"},I==null?void 0:I.critical)},{title:"\u4E3B\u8981",dataIndex:"bug",render:I=>e.createElement("span",{className:"current"},I==null?void 0:I.major)},{title:"\u6B21\u8981",dataIndex:"bug",render:I=>e.createElement("span",{className:"current"},I==null?void 0:I.minor)},{title:"\u7B49\u7EA7",dataIndex:"bug",sorter:!1,showSorterTooltip:!1,sortOrder:h.sort_by==="bug"?h.sort_direction==="desc"?"descend":"ascend":null,render:I=>e.createElement("span",{className:"current"},I==null?void 0:I.grade)}]},{title:"\u6F0F\u6D1E",children:[{title:"\u963B\u65AD",dataIndex:"vulnerability",render:I=>e.createElement("span",{className:"current"},I==null?void 0:I.blocker)},{title:"\u4E25\u91CD",dataIndex:"vulnerability",render:I=>e.createElement("span",{className:"current"},I==null?void 0:I.critical)},{title:"\u4E3B\u8981",dataIndex:"vulnerability",render:I=>e.createElement("span",{className:"current"},I==null?void 0:I.major)},{title:"\u6B21\u8981",dataIndex:"vulnerability",render:I=>e.createElement("span",{className:"current"},I==null?void 0:I.minor)},{title:"\u7B49\u7EA7",dataIndex:"vulnerability",sorter:!1,showSorterTooltip:!1,sortOrder:h.sort_by==="vulnerability"?h.sort_direction==="desc"?"descend":"ascend":null,render:I=>e.createElement("span",{className:"current"},I==null?void 0:I.grade)}]},{title:"\u4EE3\u7801\u89C4\u8303\u6027",children:[{title:"\u963B\u65AD",dataIndex:"specification",render:I=>e.createElement("span",{className:"current"},I==null?void 0:I.blocker)},{title:"\u4E25\u91CD",dataIndex:"specification",render:I=>e.createElement("span",{className:"current"},I==null?void 0:I.critical)},{title:"\u4E3B\u8981",dataIndex:"specification",render:I=>e.createElement("span",{className:"current"},I==null?void 0:I.major)},{title:"\u6B21\u8981",dataIndex:"specification",render:I=>e.createElement("span",{className:"current"},I==null?void 0:I.minor)},{title:"\u7B49\u7EA7",dataIndex:"specification",sorter:!1,showSorterTooltip:!1,sortOrder:h.sort_by==="specification"?h.sort_direction==="desc"?"descend":"ascend":null,render:I=>e.createElement("span",{className:"current"},I==null?void 0:I.grade)}]},{title:"\u590D\u6742\u4EE3\u7801",dataIndex:"complexity",sorter:!0,showSorterTooltip:!1,sortOrder:h.sort_by==="complexity"?h.sort_direction==="desc"?"descend":"ascend":null},{title:"\u4EE3\u7801\u884C\u6570",dataIndex:"total_row_number",sorter:!0,showSorterTooltip:!1,sortOrder:h.sort_by==="total_row_number"?h.sort_direction==="desc"?"descend":"ascend":null},{title:"\u8D28\u91CF\u8BC4\u5206",dataIndex:"quality_score",sorter:!0,showSorterTooltip:!1,sortOrder:h.sort_by==="quality_score"?h.sort_direction==="desc"?"descend":"ascend":null},{title:"\u64CD\u4F5C",dataIndex:"action",align:"center",render:(I,be)=>e.createElement("a",{target:"_blank",href:`/classrooms/${q.coursesId}/shixun_homework/${q.categoryId}/analysis/${be.id}`,className:"current c-light-primary"},"\u8BE6\u7EC6\u5206\u6790")}];(0,e.useEffect)(()=>(it===2&&(Wt.current=setInterval(()=>{wt()},6e4)),()=>{clearTimeout(Wt.current)}),[it]);function wt(){return ea(this,null,function*(){const I=yield(0,v.ZP)(`/api/homework_commons/${h.categoryId}/code_quality_analyses/check_status.json`,{method:"GET"});Le(I.status),I.status!=2&&I.status!=-1&&(_e({page:1,limit:10}),clearTimeout(Wt.current))})}function _e(I){return ea(this,null,function*(){ht(I==null?void 0:I.page),$t(I==null?void 0:I.limit);const be=yield(0,v.ZP)(`/api/homework_commons/${h.categoryId}/code_quality_analyses.json`,{method:"GET",params:Rn({},I)});Ye(be)})}return console.log("-------",it),e.createElement("section",{style:{paddingBottom:"10px"},className:"minH500 bg-white pl30 pr30 pt10"},(it===0||it===1)&&e.createElement("div",null,e.createElement("p",{style:{display:"flex"}},e.createElement("span",{style:{flex:"1"}},e.createElement("label",null,"\u68C0\u6D4B\u65F6\u95F4\uFF1A",Ne==null?void 0:Ne.created_at)),e.createElement(Z.ZP,{onClick:()=>{n({type:"shixunHomeworks/setActionTabs",payload:{key:"\u8D28\u91CF\u68C0\u6D4B"}})}},"\u91CD\u65B0\u68C0\u6D4B")),e.createElement("p",{style:{display:"flex"}},e.createElement(he.Z,{style:{width:"100%"}},e.createElement(w.Z,{flex:"80px"},e.createElement("label",null,"\u5206\u73ED\u60C5\u51B5:")),e.createElement(w.Z,{flex:"80px"},e.createElement(p.default,{checked:(Ce==null?void 0:Ce.length)===0,onChange:I=>{I.target.checked&&(We([]),_e({page:Oe,limit:bt}))},style:{fontSize:"14px"},value:"all"},"\u5168\u90E8")),e.createElement(w.Z,{flex:"1"},e.createElement(p.default.Group,{value:Ce,onChange:I=>ea(void 0,null,function*(){We([...I]),_e({page:Oe,limit:bt,group_course_ids:I})}),style:{width:"100%",fontSize:"14px"}},(ee=Ne==null?void 0:Ne.course_groups)==null?void 0:ee.map((I,be)=>e.createElement(p.default,{style:{fontSize:"14px"},value:I==null?void 0:I.id},I==null?void 0:I.name,"(",I==null?void 0:I.count,")")))))),e.createElement("p",{style:{display:"flex"}},e.createElement("span",null,e.createElement("label",{style:{color:"red"}},"\u6CE8\u610F\uFF1A")),"\u672C\u9875\u4EC5\u663E\u793A\u5168\u90E8\u5DF2\u5B8C\u6210\u68C0\u6D4B\u7684\u5206\u73ED"),e.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},e.createElement("div",null,e.createElement("p",{style:{marginLeft:"20px",fontSize:"20px",fontWeight:500}},"\u4EE3\u7801\u7B49\u7EA7\u5206\u6790"),(Ne==null?void 0:Ne.grade_statistics)&&e.createElement(ya.Z,{option:Nl((le=Ne==null?void 0:Ne.grade_statistics)==null?void 0:le.map(I=>I.specification_count),(U=Ne==null?void 0:Ne.grade_statistics)==null?void 0:U.map(I=>I.vulnerability_count),(pe=Ne==null?void 0:Ne.grade_statistics)==null?void 0:pe.map(I=>I.bug_count)),style:{height:400,width:600},opts:{renderer:"svg"}})),e.createElement("div",null,e.createElement("p",{style:{marginLeft:"20px",fontSize:"20px",fontWeight:500}},"\u4EE3\u7801\u8D28\u91CF\u5206\u5E03"),(Ne==null?void 0:Ne.quality_scores)&&e.createElement(ya.Z,{option:Rl(Ne==null?void 0:Ne.quality_scores.map((I,be)=>[be+1,I==null?void 0:I.quality_score,I==null?void 0:I.user_name])),style:{height:400,width:600},opts:{renderer:"svg"}}))),e.createElement("div",null,e.createElement("div",{style:{display:"flex"}},e.createElement("p",{style:{marginLeft:"20px",fontSize:"20px",fontWeight:500,flex:"1"}},"\u8BE6\u7EC6\u5217\u8868"),e.createElement(Ee.default.Search,{size:"middle",onSearch:I=>{_e({page:1,limit:bt,search:I})},style:{width:"300px"},enterButton:"\u641C\u7D22"})),e.createElement(R.default,{columns:Lt,dataSource:Ne==null?void 0:Ne.analysis,bordered:!0,scroll:{x:"calc(800px + 50%)"},pagination:!1,onChange:(I,be,Te)=>{Te.field&&(h.sort_by=Te.field),Te.order||(h.sort_direction="asc"),Te.order==="ascend"&&(h.sort_direction="asc"),Te.order==="descend"&&(h.sort_direction="desc"),Te.order||(h.sort_direction="asc"),_e(Rn({page:1,limit:bt},h))}}),e.createElement(Ae.Z,{current:Oe,total:Ne==null?void 0:Ne.total_count,pageSizeOptions:["10","20","50","100","200"],pageSize:bt,style:{textAlign:"center",marginTop:"20px",marginBottom:"20px"},onChange:(I,be)=>{ht(I),$t(be),_e({page:I,limit:be,group_course_ids:Ce})}}))),it===2&&e.createElement("div",{style:{textAlign:"center",margin:"100px 0px",paddingBottom:"100px"}},e.createElement("img",{src:kl}),e.createElement("br",null),e.createElement(Z.ZP,{type:"primary",style:{width:"120px",height:"40px"},onClick:()=>{wt()}},"\u5237\u65B0\u9875\u9762")),e.createElement(pt,null),e.createElement(s.default,{centered:!0,width:1200,title:"\u8BE6\u7EC6\u5206\u6790",destroyOnClose:!0,open:!!ne,footer:null,onCancel:()=>ct(!1)},e.createElement("div",{style:{height:500,overflow:"hidden"}},!!ne&&e.createElement("iframe",{style:{height:"100%",width:"100%"},src:`https://sonar.educoder.net/project/issues?id=${q==null?void 0:q.categoryId}-${ne==null?void 0:ne.student_number}&resolved=false`,frameBorder:"0"}))))};var Ml=(0,o.connect)(({shixunHomeworks:t,loading:l})=>({shixunHomeworks:t,loading:l.effects}))(Ll),Wl=u(26724),zl=u.n(Wl),xu=u(59301),Hl=Object.defineProperty,Ql=Object.defineProperties,Kl=Object.getOwnPropertyDescriptors,xa=Object.getOwnPropertySymbols,Ul=Object.prototype.hasOwnProperty,Jl=Object.prototype.propertyIsEnumerable,ba=(t,l,n)=>l in t?Hl(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,wa=(t,l)=>{for(var n in l||(l={}))Ul.call(l,n)&&ba(t,n,l[n]);if(xa)for(var n of xa(l))Jl.call(l,n)&&ba(t,n,l[n]);return t},Yl=(t,l)=>Ql(t,Kl(l)),Pa=(t,l,n)=>new Promise((ee,le)=>{var U=h=>{try{q(n.next(h))}catch(ae){le(ae)}},pe=h=>{try{q(n.throw(h))}catch(ae){le(ae)}},q=h=>h.done?ee(h.value):Promise.resolve(h.value).then(U,pe);q((n=n.apply(t,l)).next())});const Gl=({shixunHomeworks:t,loading:l,dispatch:n})=>{const ee=(0,o.useParams)(),le=(0,o.useLocation)(),[U,pe]=(0,e.useState)([]),[q,h]=(0,e.useState)([]),[ae,it]=(0,e.useState)(!0),[Le,Ne]=(0,e.useState)(!1),[Ye,Wt]=(0,e.useState)(1),[Oe,ht]=(0,e.useState)([]),[ne,ct]=(0,e.useState)(!1),[bt,$t]=(0,e.useState)(!1),[Ce,We]=(0,e.useState)(!1),[Lt,wt]=(0,e.useState)("");(0,e.useEffect)(()=>{t.actionTabs.key==="\u4EE3\u7801\u67E5\u91CD"?(_e.resetFields(),pe([]),ct(!0),be()):ct(!1)},[t.actionTabs.key]);const[_e]=we.default.useForm();let I=[];const be=()=>Pa(void 0,null,function*(){var Pt;if(ae&&!Le){Ne(!0),Wt(Ye+1);const vt=yield(0,x.JG)(Yl(wa({},ee),{page:Ye}));wt(vt.repeat_setting_score);const Kt=[...vt.group_list];vt!=null&&vt.ungroup_list&&Kt.push({id:vt==null?void 0:vt.ungroup_list.id,name:vt==null?void 0:vt.ungroup_list.name,works_count:vt==null?void 0:vt.ungroup_list.work_count,last_review_time:vt==null?void 0:vt.ungroup_list.last_review_time}),pe([...U,...Kt]),Ne(!1),((Pt=vt.group_list)==null?void 0:Pt.length)<10&&it(!1)}}),Te=()=>{n({type:"shixunHomeworks/setActionTabs",payload:{}}),$t(!1),it(!0),Ne(!1),Wt(1),pe([]),_e.resetFields()},Ve=[{title:"",dataIndex:"id",width:280,render:(Pt,vt)=>xu.createElement(p.default,{disabled:!(vt.works_count>1),value:String(vt.id)},vt.name)},{title:"\u6709\u6548\u4F5C\u54C1\u6570",dataIndex:"works_count"},{title:"\u4E0A\u6B21\u67E5\u91CD\u65F6\u95F4",dataIndex:"last_review_time",width:130}];return xu.createElement(s.default,{centered:!0,title:"\u4EE3\u7801\u67E5\u91CD",keyboard:!1,maskClosable:!1,open:ne,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",width:820,bodyStyle:{minHeight:200},onOk:()=>Pa(void 0,null,function*(){const Pt=_e.getFieldValue();if(Pt.group_ids.length){We(!0);const vt=yield(0,v.ZP)(`/api/homework_commons/${ee.categoryId}/homework_code_repeat.json`,{method:"post",body:{group_ids:[...Pt.group_ids]}});We(!1),vt.status===0&&(Te(),yield n({type:"shixunHomeworks/getShixunWorkList",payload:t.actionTabs.params}),window.location.href=`/classrooms/${ee.coursesId}/shixun_homework/${ee.categoryId}/detail?tabs=2`,n({type:"shixunHomeworks/setActionTabs",payload:{key:"\u6267\u884C\u4EE3\u7801\u67E5\u91CD"}}))}}),okButtonProps:{loading:Ce},onCancel:Te},xu.createElement("div",{style:{color:"gray"}},"\u5F53\u524D\u4EE3\u7801\u67E5\u91CD\u5206\u6570\u6263\u5206\u4E3A",xu.createElement("span",{style:{color:"green"}},Lt),"\u5206,\u5982\u9700\u8C03\u6574\u8BF7\u5728\u201C",xu.createElement("a",{href:`/classrooms/${ee.coursesId}/shixun_homework/${ee.categoryId}/detail?tabs=3&score=2`},"\u8BBE\u7F6E-\u8BC4\u5206\u8BBE\u7F6E"),"\u201D\u4E2D\u8FDB\u884C\u7F16\u8F91"),xu.createElement("div",null,"\u8BF7\u6CE8\u610F\uFF1A\u5728\u6267\u884C\u4EE3\u7801\u67E5\u91CD\u64CD\u4F5C\u540E\uFF0C\u82E5\u5B66\u751F\u63D0\u4EA4\u65B0\u7684\u4F5C\u54C1\u4EE3\u7801\uFF0C\u65B0\u4F5C\u54C1\u4EE3\u7801\u4E0D\u8BA1\u5165\u672C\u6B21\u67E5\u91CD\u7ED3\u679C\u3002"),t.codeReviewCourse&&xu.createElement(we.default,{form:_e,onChange:Pt=>{ht(wa({},_e.getFieldValue()))},initialValues:{group_ids:I,end_time:D()(D()().add(7,"days").format("YYYY-MM-DD HH:mm"))}},xu.createElement("div",{className:"flexd-table-header mt20"},xu.createElement(R.default,{pagination:!1,dataSource:[],columns:Ve})),xu.createElement(we.default.Item,{name:"group_ids"},xu.createElement(p.default.Group,{className:"w100"},xu.createElement("div",{style:{width:"100%",maxHeight:260,overflow:"auto"}},xu.createElement(zl(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:Pt=>{be()},hasMore:ae,useWindow:!1},xu.createElement(R.default,{loading:l.effects["shixunHomeworks/getCodeReviewCourse"],showHeader:!1,columns:Ve,dataSource:U,pagination:!1})))))),xu.createElement(he.Z,null,xu.createElement(w.Z,{className:"ml10"},xu.createElement(p.default,{checked:bt,onChange:Pt=>{$t(Pt.target.checked);let vt=[];Pt.target.checked&&(vt=U.filter(Kt=>Kt.works_count>1).map(Kt=>Kt.id+"")),_e.setFieldsValue({group_ids:vt})}},"\u5168\u9009"))))};var Vl=(0,o.connect)(({shixunHomeworks:t,loading:l})=>({shixunHomeworks:t,loading:l}))(Gl),Xl=u(12393),ql=u(43473),Zn={flex_box_center:"flex_box_center___ifw7q",flex_space_between:"flex_space_between___XbpkU",flex_box_vertical_center:"flex_box_vertical_center___TqfOZ",flex_box_center_end:"flex_box_center_end___DaT_4",flex_box_column:"flex_box_column___hy0Nl",title:"title___iYOvG",menuTabs:"menuTabs___qIcvV",rightMenu:"rightMenu___pcK7x",shixunDetail:"shixunDetail___h414d",workListTabWrap:"workListTabWrap___BPpdb",workListTabButton:"workListTabButton___QdhmD"},ta=u(49692),$l=u(33118),er=u(82693),tr=u(7621),ur=u(25060),nr=u(62551),je=u(59301),ar=Object.defineProperty,Sa=Object.getOwnPropertySymbols,lr=Object.prototype.hasOwnProperty,rr=Object.prototype.propertyIsEnumerable,Ia=(t,l,n)=>l in t?ar(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,$u=(t,l)=>{for(var n in l||(l={}))lr.call(l,n)&&Ia(t,n,l[n]);if(Sa)for(var n of Sa(l))rr.call(l,n)&&Ia(t,n,l[n]);return t},yn=(t,l,n)=>new Promise((ee,le)=>{var U=h=>{try{q(n.next(h))}catch(ae){le(ae)}},pe=h=>{try{q(n.throw(h))}catch(ae){le(ae)}},q=h=>h.done?ee(h.value):Promise.resolve(h.value).then(U,pe);q((n=n.apply(t,l)).next())});let or=[{live:"A",gz:"0\u4E2A\u9519\u8BEF",ld:"0\u4E2A\u6F0F\u6D1E",gf:"0 - 5%"},{live:"B",gz:"\u81F3\u5C111\u4E2A\u6B21\u8981\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u6B21\u8981\u6F0F\u6D1E",gf:"6% - 10%"},{live:"C",gz:"\u81F3\u5C111\u4E2A\u4E3B\u8981\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u4E3B\u8981\u6F0F\u6D1E",gf:"11% - 20%"},{live:"D",gz:"\u81F3\u5C111\u4E2A\u4E25\u91CD\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u4E25\u91CD\u6F0F\u6D1E",gf:"21% - 50%"},{live:"E",gz:"\u81F3\u5C111\u4E2A\u963B\u65AD\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u963B\u65AD\u6F0F\u6D1E",gf:"\u8D85\u8FC750%"}];const sr=({shixunHomeworks:t,classroomList:l,globalSetting:n,user:ee,loading:le,dispatch:U})=>{var pe,q,h,ae,it,Le,Ne,Ye,Wt,Oe,ht,ne,ct,bt,$t,Ce,We,Lt,wt,_e,I,be,Te,Ve,Pt,vt,Kt,pu,He,ru,mu,Ie,Et,Je,Ut,gt,Tt,Dt;const[Pu]=(0,o.useSearchParams)(),Ge=(0,o.useParams)(),Cu=(0,o.useLocation)(),[Su,Iu]=(0,e.useState)(Pu.get("tabs")||"0"),[iu,ju]=(0,e.useState)({}),{workList:Au,shixunWorkList:yu,workSetting:nn}=t,[_u,Lu]=(0,e.useState)(!1);Ge.category=Pu.get("category_id"),Ge.order="work_score",Ge.b_order="desc",(0,e.useEffect)(()=>{(0,M.Rm)()&&U({type:"classroomList/getAssistantPermissions",payload:{course_id:Ge.coursesId}}),(0,Cn.hs)(U)},[(0,M.bg)()]),(0,e.useEffect)(()=>{Su!=="0"&&U({type:"shixunHomeworks/getShixunWorkList",payload:Ge}),new URLSearchParams(Cu.search).get("tabs")==="3"&&U({type:"shixunHomeworks/getWorkSetting",payload:$u({},Ge)}),U({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:{categoryId:Ge.categoryId}})},[]);const an=W=>{W==="3"&&U({type:"shixunHomeworks/getWorkSetting",payload:$u({},Ge)}),Iu(W)},hn=()=>{s.default.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:je.createElement("div",{className:"tc font16"},"\u4F60\u5728\u8BE5\u5B9E\u8BAD\u7684\u5B66\u4E60\u8BB0\u5F55\u5C06\u88AB\u6E05\u7A7A\uFF0C\u65E0\u6CD5\u6062\u590D",je.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u91CD\u505A\uFF1F"),onOk:()=>yn(void 0,null,function*(){var W;const st=(W=t.headerInfo)==null?void 0:W.myshixun_identifier;(yield(0,x.Fr)({id:st}))&&(i.ZP.info(`\u5DF2\u6E05\u7A7A\u672C\u5B9E\u8BAD\u7684\u5B66\u4E60\u8BB0\u5F55 - -\u8BF7\u70B9\u51FB\u201C\u5F00\u542F\u6311\u6218\u201D\u91CD\u505A\u8BFE\u7A0B\u5B9E\u9A8C`),U({type:"shixunHomeworks/getShixunWorkList",payload:iu}))})})},sn=W=>{W=W!=null&&W.includes(".json")?W:`${W}.json`,s.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:je.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:()=>yn(void 0,null,function*(){const st=yield(0,ta.$Q)({url:W});if(!st)return;i.ZP.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8DF5\u9879\u76EE\uFF01");const St=yield(0,ta.Ir)({id:st.shixun_identifier});if(St!=null&&St.game_identifier){(0,j.xg)(`/tasks/${St.game_identifier}?coursesId=${Ge.coursesId}`);return}(St==null?void 0:St.status)===2?sn(St==null?void 0:St.message):(St==null?void 0:St.status)===3&&ce(St==null?void 0:St.message)})})},ce=W=>{s.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:je.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",W,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},jt=W=>yn(void 0,null,function*(){W=W!=null&&W.includes(".json")?W:`${W}.json`;const st=yield(0,ta.$Q)({url:W});if(console.log(st,"execRes"),st!=null&&st.game_identifier){(0,j.xg)(`/tasks/${Ge.coursesId}/${Ge.categoryId}/${st.game_identifier}?coursesId=${Ge.coursesId}`);return}(st==null?void 0:st.status)===-3?(0,j.eF)():(st==null?void 0:st.status)===2?sn(st==null?void 0:st.message):(st==null?void 0:st.status)===3&&ce(st==null?void 0:st.message)}),cu=[(0,M.GJ)()&&{name:"\u5B66\u751F\u5217\u8868",id:"0",compontent:je.createElement(gn,{setExportParams:ju}),forceRender:!0},{name:"\u4F5C\u4E1A\u8BE6\u60C5",id:"1",compontent:je.createElement(ut,{gotosetting:()=>{U({type:"shixunHomeworks/getWorkSetting",payload:$u({},Ge)}),Iu("3")}})},(0,M.dE)()&&((pe=t==null?void 0:t.headerInfo)==null?void 0:pe.score_open)&&{name:"\u5B66\u751F\u5217\u8868",id:"0",compontent:je.createElement(gn,{setExportParams:ju}),forceRender:!0},{name:"\u4EE3\u7801\u67E5\u91CD",id:"2",compontent:je.createElement(Xn,null)},{name:"\u8D28\u91CF\u68C0\u6D4B",id:"4",compontent:je.createElement(Ml,null)},{name:"\u91CD\u505A\u8BB0\u5F55",id:"9",compontent:je.createElement(nr.Z,null)},{name:"\u4F5C\u4E1A\u7EDF\u8BA1\u5206\u6790",id:"5",compontent:je.createElement($l.ZP,null)},{name:(0,M.GJ)()?"\u8BBE\u7F6E":"\u5F97\u5206\u89C4\u5219",id:"3",compontent:(h=(q=t==null?void 0:t.headerInfo)==null?void 0:q.homework_status)!=null&&h.includes("\u5BFC\u5165")?je.createElement(ur.Z,null):je.createElement(Ol,null),forceRender:!0}].filter(W=>!!W).filter(W=>{var st,St,uu,gu,nu;return(0,M.dE)()?W.name!=="\u4EE3\u7801\u67E5\u91CD"&&W.name!=="\u4F5C\u4E1A\u7EDF\u8BA1\u5206\u6790"&&W.name!=="\u5F97\u5206\u89C4\u5219":(0,M.dE)()||((St=(st=t==null?void 0:t.headerInfo)==null?void 0:st.homework_status)==null?void 0:St[0])!=="\u5DF2\u622A\u6B62"?W.name!=="\u8D28\u91CF\u68C0\u6D4B":!((uu=t==null?void 0:t.headerInfo)!=null&&uu.code_review)&&((nu=(gu=t==null?void 0:t.headerInfo)==null?void 0:gu.homework_status)==null?void 0:nu[0])!=="\u672A\u53D1\u5E03"?!0:W.name!=="\u4EE3\u7801\u67E5\u91CD"}).filter(W=>{var st;return(st=t==null?void 0:t.headerInfo)!=null&&st.open_code_quality_analysis?!0:W.name!=="\u8D28\u91CF\u68C0\u6D4B"}).filter(W=>{var st;return(st=t==null?void 0:t.headerInfo)!=null&&st.action_analysis?!0:W.name!=="\u4F5C\u4E1A\u7EDF\u8BA1\u5206\u6790"}).filter(W=>{var st,St;return(St=(st=t==null?void 0:t.headerInfo)==null?void 0:st.homework_status)!=null&&St.includes("\u5BFC\u5165")?W.name!=="\u4EE3\u7801\u67E5\u91CD"&&W.name!=="\u91CD\u505A\u8BB0\u5F55":!0}).filter(W=>{var st,St;return(St=(st=t==null?void 0:t.headerInfo)==null?void 0:st.homework_status)!=null&&St.includes("\u5BFC\u5165")&&(0,M.dE)()?W.name!=="\u5F97\u5206\u89C4\u5219"&&W.name!=="\u91CD\u505A\u8BB0\u5F55":!0});return je.createElement("section",{style:{background:"#f3f3f3",minHeight:"80vh"}},je.createElement("div",{className:"edu-container"},((ae=t==null?void 0:t.headerInfo)==null?void 0:ae.homework_name)&&je.createElement("section",{className:"animated fadeIn"},je.createElement("aside",{className:"mt10"},((it=t==null?void 0:t.headerInfo)==null?void 0:it.category)&&je.createElement(y.Z,{separator:">"},je.createElement(y.Z.Item,null,je.createElement(o.Link,{to:`/classrooms/${Ge==null?void 0:Ge.coursesId}/shixun_homework`},(Le=t==null?void 0:t.headerInfo)==null?void 0:Le.course_name)),je.createElement(y.Z.Item,null,je.createElement(o.Link,{to:`/classrooms/${Ge==null?void 0:Ge.coursesId}/shixun_homework/${(Ne=t==null?void 0:t.headerInfo)!=null&&Ne.category.main?"":(Ye=t==null?void 0:t.headerInfo)==null?void 0:Ye.category.category_id}`},(Oe=(Wt=t==null?void 0:t.headerInfo)==null?void 0:Wt.category)==null?void 0:Oe.category_name)),je.createElement(y.Z.Item,null,"\u4F5C\u4E1A\u8BE6\u60C5"))),je.createElement("aside",{className:[Zn.title,"mt20"].join(" ")},je.createElement(o.Link,{to:`/classrooms/${(ht=t==null?void 0:t.headerInfo)==null?void 0:ht.course_id}/shixun_homework/${(ne=t==null?void 0:t.headerInfo)!=null&&ne.category.main?"":(ct=t==null?void 0:t.headerInfo)==null?void 0:ct.category.category_id}`},je.createElement(H.Z,{className:"font16 c-black"})),je.createElement(P.Z,{title:(bt=t==null?void 0:t.headerInfo)==null?void 0:bt.homework_name,placement:"bottom"},je.createElement("strong",{className:"font20 ml5"},($t=t==null?void 0:t.headerInfo)==null?void 0:$t.homework_name)),je.createElement(j.VV,{temporary:!0,status:(Ce=t==null?void 0:t.headerInfo)==null?void 0:Ce.homework_status}),Su==="4"&&je.createElement("span",{className:"iconfont icon-a-wenhaobeifen2",onClick:()=>{Lu(!0)},style:{fontWeight:800,color:"#0152d9",textAlign:"end",flex:1,cursor:"pointer"}},"\u89C4\u5219\u8BF4\u660E"))),je.createElement("aside",{className:"mt30 relative"},((Lt=(We=t==null?void 0:t.headerInfo)==null?void 0:We.homework_status)==null?void 0:Lt.includes("\u5BFC\u5165"))&&(0,M.GJ)()&&je.createElement("aside",{className:Zn.rightMenu},je.createElement("p",{onClick:()=>{var W,st;U({type:"classroomList/setActionTabs",payload:{key:"\u8865\u5145\u6210\u7EE9",name:(W=t==null?void 0:t.headerInfo)==null?void 0:W.homework_name,id:(st=t==null?void 0:t.headerInfo)==null?void 0:st.homework_id,type:"practice"}})}},je.createElement("span",{className:"iconfont icon-shixun3 translateY1"}),"\u8865\u5145\u6210\u7EE9")),!((_e=(wt=t==null?void 0:t.headerInfo)==null?void 0:wt.homework_status)!=null&&_e.includes("\u5BFC\u5165"))&&je.createElement("aside",{className:Zn.rightMenu},(0,M.dE)()&&((I=t.headerInfo)==null?void 0:I.redo_work)&&je.createElement("p",{onClick:hn},je.createElement("span",{className:"iconfont icon-dahuizhongzuo3x"}),"\u91CD\u505A"),((be=t.headerInfo)==null?void 0:be.shixun_status)>1&&((Te=t.headerInfo)==null?void 0:Te.time_status)<5&&(0,M.dE)()&&je.createElement("p",{onClick:()=>yn(void 0,null,function*(){var W,st,St,uu,gu,nu,en,ua,na;if((0,Cn.tJ)(U,!0)){if((W=t==null?void 0:t.headerInfo)!=null&&W.can_view_details){(0,j.xg)(`/shixuns/${(st=t==null?void 0:t.headerInfo)==null?void 0:st.shixun_identifier}/challenges`);return}(gu=(uu=(St=t.headerInfo)==null?void 0:St.task_operation)==null?void 0:uu[1])!=null&&gu.includes("/")?jt((en=(nu=t.headerInfo)==null?void 0:nu.task_operation)==null?void 0:en[1]):(0,j.xg)(`/tasks/${(na=(ua=t.headerInfo)==null?void 0:ua.task_operation)==null?void 0:na[1]}`)}})},je.createElement("span",{className:"iconfont icon-kaiqizhong"}),(Pt=(Ve=t.headerInfo)==null?void 0:Ve.task_operation)==null?void 0:Pt[0]),((vt=t.headerInfo)==null?void 0:vt.commit_des)&&je.createElement("p",{onClick:()=>{var W;(0,j.xg)(`/classrooms/${Ge.coursesId}/shixun_homework/${Ge.categoryId}/${(W=t.headerInfo)==null?void 0:W.work_id}/commitsummary`)}},je.createElement("span",{className:"iconfont icon-tijiaozongjie"}),(Kt=t.headerInfo)==null?void 0:Kt.commit_des),(0,M.GJ)()&&((He=(pu=t==null?void 0:t.headerInfo)==null?void 0:pu.homework_status)==null?void 0:He.includes("\u672A\u53D1\u5E03"))&&je.createElement("p",{onClick:()=>{var W,st,St,uu;if(((W=ee==null?void 0:ee.userInfo)==null?void 0:W.user_status)===2){(0,Cn.Rd)();return}let gu=()=>{var nu;U({type:"classroomList/setActionTabs",payload:{key:"\u7ACB\u5373\u53D1\u5E03",selectArrs:[Ge.categoryId],selectArrsAll:[t==null?void 0:t.headerInfo],params:Ge,detail:!0,type:2,manage_all_group:(nu=t==null?void 0:t.headerInfo)==null?void 0:nu.manage_all_group}})};(st=t==null?void 0:t.headerInfo)!=null&&st.high_resources_consume&&!((St=t==null?void 0:t.headerInfo)!=null&&St.high_resources_consume_permission)?U({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:Ge.coursesId,type:"shixun",type_id:Ge.categoryId,name:(uu=t==null?void 0:t.headerInfo)==null?void 0:uu.homework_name,fn:()=>{U({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:{categoryId:Ge.categoryId}}),gu()}}}):gu()}},je.createElement("span",{className:"iconfont icon-yishezhifabushijian1 translateY1"}),"\u7ACB\u5373\u53D1\u5E03"),((ru=t.headerInfo)==null?void 0:ru.show_analysis_detail)&&je.createElement("p",{onClick:()=>{var W;(0,j.xg)(`/classrooms/${Ge.coursesId}/shixun_homework/${Ge.categoryId}/analysis/${(W=t.headerInfo)==null?void 0:W.analysis_id}`)}},je.createElement("span",{className:"iconfont icon-a-08zhiliang-xianxing font14 pr5"}),"\u8D28\u91CF\u8BC4\u5206"),((mu=t.headerInfo)==null?void 0:mu.is_enter_shixun)&&((0,M.dE)()&&((Et=(Ie=t==null?void 0:t.headerInfo)==null?void 0:Ie.homework_status)==null?void 0:Et.includes("\u5DF2\u622A\u6B62"))||!(0,M.dE)())&&je.createElement("p",{onClick:()=>yn(void 0,null,function*(){var W,st;(0,M.dE)()?jt((st=(W=t.headerInfo)==null?void 0:W.task_operation)==null?void 0:st[1]):(0,j.xg)(`/shixuns/${t==null?void 0:t.headerInfo.shixun_identifier}/challenges`)})},je.createElement("span",{className:"iconfont icon-shixun3 translateY1"}),"\u8FDB\u5165\u5B9E\u8BAD"),(0,M.GJ)()&&((Je=t==null?void 0:t.headerInfo)==null?void 0:Je.end_immediately)&&je.createElement("p",{style:{background:"#0152d9",color:"#fff"},onClick:()=>{var W,st;if((0,M.Rm)()&&!((st=(W=l.AssistantObject)==null?void 0:W.practice)!=null&&st.can_stop)){i.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}U({type:"classroomList/setActionTabs",payload:{key:"\u7ACB\u5373\u622A\u6B62",params:Ge,type:2,detail:!0,selectArrs:[Ge.categoryId]}})}},je.createElement("span",{style:{color:"#fff"},className:"iconfont icon-jiezhishiyan"}),"\u7ACB\u5373\u622A\u6B62")),je.createElement("aside",{className:`mt30 relative ${Zn.workListTabWrap}`},je.createElement(G.default,{type:"card",defaultActiveKey:Su,activeKey:Su,onChange:an},cu.map((W,st)=>je.createElement(G.default.TabPane,{tab:W.name,key:W.id,forceRender:W.forceRender})))),(gt=(Ut=cu.filter(W=>W.id===Su))==null?void 0:Ut[0])==null?void 0:gt.compontent)),je.createElement(Vl,null),je.createElement(Xl.Z,{successCallback:()=>{U({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:$u({},Ge)}),U({type:"shixunHomeworks/getWorkSetting",payload:$u({},Ge)})},visible:l.actionTabs.key==="\u7ACB\u5373\u622A\u6B62",homeworkIds:[Ge.categoryId],courseId:Ge.coursesId,isBatch:!1,courseEndTime:(Tt=t==null?void 0:t.headerInfo)==null?void 0:Tt.course_end_date}),je.createElement(ql.Z,{courseEndTime:(Dt=t==null?void 0:t.headerInfo)==null?void 0:Dt.course_end_date}),je.createElement(er.Z,{onOk:()=>{U({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:$u({},Ge)}),U({type:"shixunHomeworks/getWorkSetting",payload:$u({},Ge)}),U({type:"shixunHomeworks/getShixunWorkList",payload:Ge})}}),je.createElement(tr.Z,{onOk:()=>{U({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:$u({},Ge)}),U({type:"shixunHomeworks/getWorkSetting",payload:$u({},Ge)}),U({type:"shixunHomeworks/getShixunWorkList",payload:Ge})}}),je.createElement(s.default,{open:_u,title:"\u89C4\u5219\u8BF4\u660E",width:800,footer:null,onCancel:()=>{Lu(!1)}},je.createElement("p",null,"\u4E00\u3001\u7B49\u7EA7\u89C4\u5219"),je.createElement("p",{style:{marginLeft:"10px"}},"1. \u7F3A\u9677\u7B49\u7EA7"),je.createElement("p",{style:{marginLeft:"10px"}},je.createElement(R.default,{dataSource:or,columns:[{title:"\u7B49\u7EA7",dataIndex:"live"},{title:"\u7F3A\u9677\u8BC4\u4F30\u89C4\u5219",dataIndex:"gz"},{title:"\u6F0F\u6D1E\u8BC4\u4F30\u89C4\u5219",dataIndex:"ld"},{title:"\u4EE3\u7801\u89C4\u8303\u8BC4\u4F30\u89C4\u5219",dataIndex:"gf"}],pagination:!1})),je.createElement("p",{style:{marginLeft:"10px"}},"\u6CE8\uFF1A\u4EE3\u7801\u89C4\u8303\u8BC4\u4F30\u89C4\u5219\u4E2D\u6570\u503C\u6765\u6E90\u4E3A\u8BA1\u7B97\u6280\u672F\u503A\u52A1\u65F6\u95F4\u5360\u5F00\u53D1\u6240\u6709\u4EE3\u7801\u6240\u9700\u8981\u7684\u65F6\u95F4\u7684\u6BD4\u4F8B\uFF08Technical Debt Ratio\uFF09"),je.createElement("p",{style:{marginLeft:"20px"}},"Technical Debt Ratio = \u6280\u672F\u503A\u52A1\u65F6\u95F4 / \u5F00\u53D1\u65F6\u95F4"),je.createElement("p",{style:{marginLeft:"20px"}},"\u6280\u672F\u503A\u52A1\u65F6\u95F4\u4E3A\u4FEE\u590D\u6240\u6709\u95EE\u9898\u6240\u9700\u8981\u7684\u65F6\u95F4\u3002"),je.createElement("p",null,"\u4E8C\u3001\u590D\u6742\u5EA6\u89C4\u5219"),je.createElement("p",{style:{marginLeft:"10px"}},"\u6839\u636E\u4EE3\u7801\u8DEF\u5F84\u6570\u8BA1\u7B97\u7684\u6570\u503C\uFF0C\u6BCF\u5F53\u4E00\u4E2A\u51FD\u6570\u7684\u63A7\u5236\u6D41\u5206\u53C9\u65F6\uFF0C\u590D\u6742\u5EA6\u8BA1\u6570\u5668\u5C31\u4F1A\u81EA\u589E\u4E00\u3002"),je.createElement("p",{style:{marginLeft:"10px"}},"\u6BCF\u4E2A\u7A0B\u5E8F\u8BED\u8A00\u7684\u5173\u952E\u5B57\u5BF9\u5E94\u7684\u590D\u6742\u5EA6\u6570\u636E\u4E0D\u540C\uFF0C\u4F46\u6BCF\u4E2A\u51FD\u6570\u7684\u6700\u5C0F\u590D\u6742\u5EA6\u4E3A1\u3002\uFF08\u7279\u5B9A\u8BED\u8A00\u7684\u8BE6\u7EC6\u6570\u636E\u7565\uFF09"),je.createElement("p",null,"\u4E09\u3001\u4EE3\u7801\u8D28\u91CF\u5206\u89C4\u5219"),je.createElement("p",{style:{marginLeft:"10px"}},"\u4EE3\u7801\u8D28\u91CF\u5206 = 0.5*\u7F3A\u9677\u5206\u6570 + 0.3*\u6F0F\u6D1E\u5206\u6570 + 0.2*\u4EE3\u7801\u89C4\u8303\u6027\u5206\u6570"),je.createElement("p",{style:{marginLeft:"10px"}},"\u5176\u4E2D\uFF1A"),je.createElement("p",{style:{marginLeft:"10px"}},"\u7F3A\u9677/\u6F0F\u6D1E/\u4EE3\u7801\u89C4\u8303\u6027\u5206\u6570\u8BA1\u7B97\u89C4\u5219\u4E3A\uFF1A100 - 100 *((100*\u963B\u65AD\u6570 + 5*\u4E25\u91CD\u6570 + 3*\u4E3B\u8981\u6570 + 1*\u6B21\u6570\uFF09/ \u4EE3\u7801\u884C\u6570\uFF09"),je.createElement("p",{style:{marginLeft:"10px"}},"\u6CE8\uFF1A\u5206\u6570\u4E3A\u7A7A\u7684\u4EE3\u8868\u4E0D\u652F\u6301\u7684\u6587\u4EF6\u683C\u5F0F\u3002")))};var ir=(0,o.connect)(({shixunHomeworks:t,loading:l,globalSetting:n,classroomList:ee,user:le})=>({shixunHomeworks:t,globalSetting:n,loading:l.effects,classroomList:ee,user:le}))(sr)},43473:function(at,X,u){"use strict";var e=u(59301),o=u(78241),s=u(43418),i=u(8591),y=u(95237),P=u(43604),G=u(5083),R=u(5112),H=u(24905),j=u(61186),v=u.n(j),A=u(99064),z=u(955),V=u(89070),d=u(24065),m=u(92365),_=u(59437),Y=u(79834),c=u(33081),F=u(82438),k=u(49692),g=u(59301),T=Object.defineProperty,x=Object.defineProperties,L=Object.getOwnPropertyDescriptors,D=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable,Ae=(S,oe,f)=>oe in S?T(S,oe,{enumerable:!0,configurable:!0,writable:!0,value:f}):S[oe]=f,he=(S,oe)=>{for(var f in oe||(oe={}))te.call(oe,f)&&Ae(S,f,oe[f]);if(D)for(var f of D(oe))Z.call(oe,f)&&Ae(S,f,oe[f]);return S},w=(S,oe)=>x(S,L(oe)),Ee=(S,oe,f)=>new Promise((Fe,M)=>{var r=De=>{try{a(f.next(De))}catch(Re){M(Re)}},se=De=>{try{a(f.throw(De))}catch(Re){M(Re)}},a=De=>De.done?Fe(De.value):Promise.resolve(De.value).then(r,se);a((f=f.apply(S,oe)).next())});const B=({classroomList:S,dispatch:oe,courseEndTime:f})=>{var Fe;const M=(0,V.useParams)(),[r]=o.default.useForm(),[se,a]=(0,e.useState)(1),[De,Re]=(0,e.useState)([]),[tt,ot]=(0,e.useState)(0),[ze,Ke]=(0,e.useState)(20),[ft,Xe]=(0,e.useState)(!0),[Me,C]=(0,e.useState)([]),[de,ut]=(0,e.useState)(!0),[we,N]=(0,e.useState)({}),[p,$]=(0,e.useState)({});M.id=M.coursesId,(0,e.useEffect)(()=>{if(S.actionTabs.key==="\u7ACB\u5373\u53D1\u5E03")if(Ct(),fe(),S.actionTabs.type===2){const mt=S.actionTabs.selectArrsAll[0];ut(mt.unified_setting)}else ut(!1)},[S.actionTabs]);const fe=mt=>Ee(void 0,null,function*(){Xe(!0);const It=yield(0,m.c_)(w(he({},M),{page:mt||se,limit:2e4,homework_id:S.actionTabs.type===1?"":S.actionTabs.selectArrs[0]}));It==null||It.course_groups.map((kt,Qt)=>{kt.key=kt.id,kt.title=kt.name,kt.disabled=kt.is_published}),It&&(Re([...It==null?void 0:It.course_groups]),ot(It==null?void 0:It.course_groups_count),Xe(!1),mt||r.setFieldsValue({publish_time:v()(v()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:v()(v()(new Date).add(7,"days").format("YYYY-MM-DD HH:mm"))}))}),re=()=>{var mt;let It=[...(mt=S.actionTabs.selectArrsAll)==null?void 0:mt.filter(kt=>kt.high_resources_consume&&!kt.high_resources_consume_permission)];(It==null?void 0:It.length)>0&&S.actionTabs.type===1&&s.default.confirm({centered:!0,icon:null,footer:null,width:560,title:"\u63D0\u793A",closable:!0,content:g.createElement("div",null,g.createElement("div",{className:c.Z.tipcontent},g.createElement("div",{style:{color:"#191919"}},"\u60A8\u6709 ",g.createElement("span",{style:{color:"#f06b14"}},It==null?void 0:It.length)," \u4E2A\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u53D1\u5E03\u5931\u8D25\uFF0C\u8BF7\u5355\u72EC\u8FDB\u884C\u53D1\u5E03\u3002"),g.createElement("div",{className:"mt20 mb20"},It==null?void 0:It.map(kt=>g.createElement("div",{className:c.Z.failedList,key:kt.homework_id},g.createElement("div",{className:c.Z.name},kt==null?void 0:kt.name),g.createElement("div",{className:c.Z.publish,onClick:()=>{(0,z.xg)(`/classrooms/${M.coursesId}/shixun_homework/${kt.homework_id}/detail?tabs=0`)}},"\u53D1\u5E03"))))))})},Ze=()=>Ee(void 0,null,function*(){var mt,It,kt,Qt,su,du,eu;if((0,d.Rm)()&&!((It=(mt=S.AssistantObject)==null?void 0:mt.practice)!=null&&It.can_publish)){i.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),O(!1);return}const lu=he({},r.getFieldsValue());if(lu.end_time<=lu.publish_time){i.ZP.info("\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u5927\u4E8E\u6216\u7B49\u4E8E\u53D1\u5E03\u65F6\u95F4"),O(!1);return}if((Me==null?void 0:Me.length)<=0&&!de&&De.length>0){i.ZP.info("\u53D1\u5E03\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A"),O(!1);return}let Ou={homework_ids:[...S.actionTabs.selectArrs],group_ids:Me.length>0?Me.map(ye=>ye.id):(kt=S.detailShixunsList)==null?void 0:kt.course_groups,end_time:v()(lu.end_time).format("YYYY-MM-DD HH:mm"),publish_time:v()(lu.publish_time).format("YYYY-MM-DD HH:mm"),unified_setting:!Me.length},ku=[...(Qt=S.actionTabs.selectArrsAll)==null?void 0:Qt.filter(ye=>ye.high_resources_consume&&!ye.high_resources_consume_permission)];if((ku==null?void 0:ku.length)==S.actionTabs.selectArrsAll.length&&S.actionTabs.type==1){oe({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),re();return}((su=S.actionTabs.selectArrsAll)==null?void 0:su.length)>0&&S.actionTabs.type===1&&(Ou.homework_ids=[...((eu=(du=S.actionTabs.selectArrsAll)==null?void 0:du.filter(ye=>!ye.high_resources_consume||ye.high_resources_consume_permission))==null?void 0:eu.map(ye=>Number(ye==null?void 0:ye.homework_id)))||[]]);let Be=yield(0,k.Tr)({homework_common_ids:[...S.actionTabs.selectArrs],course_id:M.coursesId,type:"homework_common"});(Be==null?void 0:Be.student_count)===0?dt(Ou):($(Ou),N(Be))}),Ct=()=>{a(1),Re([]),C([])},dt=mt=>Ee(void 0,null,function*(){O(!0);const It=yield(0,A.ZP)(`/api/courses/${M.coursesId}/homework_commons/publish_with_homework_list_position.json`,{method:"post",body:he({},mt)});O(!1),It.status===0&&(Ct(),(0,z.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u7A0B\u5B9E\u9A8C","\u7ACB\u5373\u53D1\u5E03"]),i.ZP.success("\u53D1\u5E03\u6210\u529F"),oe({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),re(),(0,d.GJ)()?S.actionTabs.detail?(oe({type:"shixunHomeworks/setActionTabs",payload:{}}),oe({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:he({},M)}),oe({type:"shixunHomeworks/getWorkSetting",payload:he({},M)})):oe({type:"classroomList/getClassroomTeacherShixunsList",payload:w(he({},S.actionTabs.params),{type:4})}):oe({type:"classroomList/getClassroomShixunsList",payload:he({},S.actionTabs.params)}),localStorage.getItem("Noviceguide")==="0"||oe({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:13,text:g.createElement("div",null,"\u6700\u540E\uFF0C\u54B1\u4EEC\u7ED9\u6559\u5B66\u8BFE\u5802\u6DFB\u52A0\u4E00\u540D\u5B66\u751F~\u70B9\u51FB\u201C\u6DFB\u52A0\u5B66\u751F\u201D\uFF0C\u5728\u5F39\u7A97\u9875\u9762\u4E2D\u8F93\u5165\u5E76\u641C\u7D22\u5B66\u751F\u59D3\u540D\uFF0C\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u5C31\u53EF\u4EE5\u4E3A\u60A8\u7684\u8BFE\u5802\u6DFB\u52A0\u7B2C\u4E00\u4F4D\u5B66\u751F\u5566~")}}))}),et=tt>se*ze,{detailShixunsList:zt}=S,[Vt,O]=(0,e.useState)(!1);return g.createElement("div",null,g.createElement(s.default,{width:600,centered:!0,confirmLoading:Vt,title:"\u53D1\u5E03\u4F5C\u4E1A",open:S.actionTabs.key==="\u7ACB\u5373\u53D1\u5E03",okText:"\u53D1\u5E03\u4F5C\u4E1A",cancelText:"\u6682\u4E0D\u53D1\u5E03",onOk:()=>Ze(),onCancel:()=>{Ct(),oe({type:"classroomList/setActionTabs",payload:{}})}},g.createElement("p",{className:"tc"},"\u5B66\u751F\u5C06\u7ACB\u5373\u6536\u5230\u4F5C\u4E1A",g.createElement("br",null),'\u672C\u64CD\u4F5C\u53EA\u5BF9"\u672A\u53D1\u5E03"\u7684\u4F5C\u4E1A\u6709\u6548'),g.createElement(o.default,{form:r},g.createElement("div",{style:{paddingLeft:0}},g.createElement(y.Z,{className:"mt30",align:"middle"},g.createElement(P.Z,null,g.createElement(o.default.Item,{name:"publish_time",label:"\u53D1\u5E03\u65F6\u95F4"},g.createElement(G.default,{style:{width:170,marginRight:"25px"},disabledDate:mt=>(0,Y.Q8)(mt,f),disabledTime:mt=>(0,Y.d0)(mt),placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:v()((0,z.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1}))),g.createElement(P.Z,{className:"ml20"},g.createElement(o.default.Item,{name:"end_time",label:"\u622A\u6B62\u65F6\u95F4:"},g.createElement(G.default,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:v()((0,z.U6)(),"HH:mm")},disabledDate:mt=>(0,Y.Q8)(mt,f,r.getFieldValue("publish_time")),disabledTime:mt=>(0,Y.d0)(mt,r.getFieldValue("publish_time")),format:"YYYY-MM-DD HH:mm",allowClear:!1})))),S.actionTabs.type===2&&g.createElement(y.Z,{style:{marginBottom:"10px"}},g.createElement("span",{className:"mr5"},"\u53D1\u5E03\u8BBE\u7F6E:"),g.createElement(R.ZP.Group,{value:de,onChange:mt=>{ut(mt.target.value),C([])}},g.createElement(R.ZP,{value:!0,disabled:!S.actionTabs.manage_all_group},"\u7EDF\u4E00\u53D1\u5E03"),g.createElement(R.ZP,{className:"ml20",disabled:De.length<=0,value:!1},"\u5206\u73ED\u53D1\u5E03"))),De.length<=0&&S.actionTabs.type===2&&g.createElement("span",{style:{marginLeft:"65px",color:"rgba(0, 0, 0, 0.25)"}},'\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03"')),(S.actionTabs.type===1||!de)&&De.length>0&&g.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},g.createElement("span",{style:{flex:1}},g.createElement(H.default,{checked:Me.length===De.length,onChange:mt=>{Me.length===De.length?C([]):C(De)}},"\u5168\u9009")),g.createElement("span",{style:{width:16}}),g.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",Me.length||0,"\u4E2A\u5206\u73ED")),(S.actionTabs.type===1||!de)&&De.length>0&&g.createElement(_.Z,{data:De,selectedRowKeys:Me,setSelectedRowKeys:C}))),g.createElement(F.Z,{resdata:we,type:((Fe=S.actionTabs.selectArrs)==null?void 0:Fe.length)===1?"shixun":"shixunpush",okloading:Vt,oktext:(we==null?void 0:we.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:mt=>Ee(void 0,null,function*(){O(!0);let It=yield(0,A.ZP)(`/api/courses/${M.coursesId}/batch_copy_shixuns.json`,{method:"post",body:{type:"homework_common",ids:[...S.actionTabs.selectArrs]}});O(!1),(It==null?void 0:It.status)===0&&dt(p)})}))};X.Z=(0,V.connect)(({classroomList:S})=>({classroomList:S}))(B)},62551:function(at,X,u){"use strict";var e=u(59301),o=u(54580),s=u(78241),i=u(99313),y=u(1710),P=u(58421),G=u(89070),R=u(99064),H=u(61186),j=u.n(H),v=u(59301),A=(d,m,_)=>new Promise((Y,c)=>{var F=T=>{try{g(_.next(T))}catch(x){c(x)}},k=T=>{try{g(_.throw(T))}catch(x){c(x)}},g=T=>T.done?Y(T.value):Promise.resolve(T.value).then(F,k);g((_=_.apply(d,m)).next())});const{Dragger:z}=o.default,V=({})=>{const d=(0,G.useParams)(),[m]=s.default.useForm(),[_,Y]=(0,e.useState)(!0),[c,F]=(0,e.useState)(!1);let[k,g]=(0,e.useState)({type:window.location.href.indexOf("program_homework")>-1?2:1,limit:10,page:1});const T=[{name:"\u5168\u90E8",value:"",question_type:0},{name:"\u5355\u9009\u9898",value:"SINGLE",question_type:0},{name:"\u591A\u9009\u9898",value:"MULTIPLE",question_type:1},{name:"\u5224\u65AD\u9898",value:"JUDGMENT",question_type:2},{name:"\u586B\u7A7A\u9898",value:"COMPLETION",question_type:3},{name:"\u7B80\u7B54\u9898",value:"SUBJECTIVE",question_type:4},{name:"\u5B9E\u8BAD\u9898",value:"SHIXUN",question_type:5},{name:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6},{name:"\u7EC4\u5408\u9898",value:"COMBINATION",question_type:7},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM",question_type:8}];function x(){return A(this,null,function*(){let D;F(!0),window.location.href.indexOf("exercise")>-1?D=`/api/exercises/${d==null?void 0:d.categoryId}/redo_logs.json`:D=`/api/homework_commons/${d==null?void 0:d.categoryId}/redo_logs.json`;let te=yield(0,R.ZP)(D,{method:"get",params:k});F(!1),(te==null?void 0:te.status)===0&&Y(te==null?void 0:te.data)})}(0,e.useEffect)(()=>{x()},[]);let L=[{title:"\u59D3\u540D",dataIndex:"user_name"},{title:"\u5B66\u53F7",dataIndex:"student_id"},{title:"\u73ED\u7EA7",dataIndex:"course_group_name"},window.location.href.indexOf("exercise")>-1&&{title:"\u9898\u578B",dataIndex:"question_type",render:(D,te,Z)=>{var Ae;return(Ae=T.find(he=>he.question_type===D))==null?void 0:Ae.name}},window.location.href.indexOf("exercise")>-1&&{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"question_name"},window.location.href.indexOf("exercise")>-1&&{title:"\u5173\u5361\u540D\u79F0",dataIndex:"challenge_name"},window.location.href.indexOf("exercise")<=-1&&{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"task_name",width:"40%"},{title:"\u64CD\u4F5C",dataIndex:"redo_type",render:(D,te,Z)=>{var Ae;return(Ae=[{id:1,name:"\u6253\u56DE\u91CD\u505A"},{id:2,name:"\u6062\u590D\u521D\u59CB\u4EE3\u7801"},{id:3,name:"\u91CD\u7F6E\u4EE3\u7801\u4ED3\u5E93"}].find(he=>he.id===D))==null?void 0:Ae.name}},{title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801\u65F6\u95F4",dataIndex:"created_at",render:(D,te,Z)=>j()(D).format("YYYY-MM-DD HH:mm:ss")}].filter(D=>!!D);return v.createElement("div",{style:{padding:"0px 30px",background:"#fff",paddingBottom:30}},v.createElement(i.default,{destroyInactiveTabPane:!0,onChange:D=>{k.type=D,k.page=1,k.limit=10,g(k),x()},items:[window.location.href.indexOf("program_homework")<=-1&&{key:"1",label:"\u6253\u56DE\u91CD\u505A",children:v.createElement(y.default,{className:"mt20",loading:c,columns:[{title:"\u59D3\u540D",dataIndex:"user_name"},{title:"\u5B66\u53F7",dataIndex:"student_id"},{title:"\u73ED\u7EA7",dataIndex:"course_group_name"},{title:"\u6253\u56DE\u91CD\u505A\u65F6\u95F4",dataIndex:"created_at",render:(D,te,Z)=>j()(D).format("YYYY-MM-DD HH:mm:ss")},{title:"\u64CD\u4F5C\u4EBA",dataIndex:"operator"}],dataSource:_==null?void 0:_.list,pagination:!1})},{key:"2",label:"\u91CD\u7F6E\u4EE3\u7801",children:v.createElement(y.default,{className:"mt20",loading:c,columns:L,dataSource:_==null?void 0:_.list,pagination:!1})}].filter(D=>!!D)}),v.createElement(P.Z,{hideOnSinglePage:!0,showSizeChanger:!1,onChange:(D,te)=>{k.page=D,k.limit=te,g(k),x()},current:k.page,total:_.count,pageSize:k.limit,style:{marginTop:20}}))};X.Z=(0,G.connect)(({classroomList:d})=>({classroomList:d}))(V)},7621:function(at,X,u){"use strict";var e=u(59301),o=u(54580),s=u(78241),i=u(43418),y=u(5871),P=u(89070),G=u(99064),R=u(61186),H=u.n(R),j=u(955),v=u(59301),A=Object.defineProperty,z=Object.defineProperties,V=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable,Y=(x,L,D)=>L in x?A(x,L,{enumerable:!0,configurable:!0,writable:!0,value:D}):x[L]=D,c=(x,L)=>{for(var D in L||(L={}))m.call(L,D)&&Y(x,D,L[D]);if(d)for(var D of d(L))_.call(L,D)&&Y(x,D,L[D]);return x},F=(x,L)=>z(x,V(L)),k=(x,L,D)=>new Promise((te,Z)=>{var Ae=Ee=>{try{w(D.next(Ee))}catch(B){Z(B)}},he=Ee=>{try{w(D.throw(Ee))}catch(B){Z(B)}},w=Ee=>Ee.done?te(Ee.value):Promise.resolve(Ee.value).then(Ae,he);w((D=D.apply(x,L)).next())});const{Dragger:g}=o.default,T=({classroomList:x,dispatch:L,onOk:D})=>{const te=(0,P.useParams)(),[Z]=s.default.useForm(),[Ae,he]=(0,e.useState)(),[w,Ee]=(0,e.useState)(!1),B={height:100,onRemove:()=>{he("")},accept:".xls,.xlsx",multiple:!1,beforeUpload:S=>k(void 0,null,function*(){return he(S),!1})};return(0,e.useEffect)(()=>{Z.setFieldsValue({publish_time:H()(H()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:H()(H()(new Date((0,j.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))})},[]),v.createElement(i.default,{centered:!0,title:"\u4FEE\u6539\u6210\u7EE9",open:x.actionTabs.key==="\u4FEE\u6539\u6210\u7EE9",okText:"\u786E\u5B9A",width:600,cancelText:"\u53D6\u6D88",okButtonProps:{loading:w},onOk:()=>k(void 0,null,function*(){Z.submit()}),onCancel:()=>{Z.resetFields(),L({type:"classroomList/setActionTabs",payload:{}})}},v.createElement(s.default,{form:Z,onFinish:S=>k(void 0,null,function*(){var oe,f;console.log("---",x.actionTabs,S,te);let Fe=((oe=x==null?void 0:x.actionTabs)==null?void 0:oe.type)==="exercise"?`/api/exercises/${te==null?void 0:te.category}/exercise_user/edit_score.json`:`/api/student_works/${x.actionTabs.id}/edit_score.json`;Ee(!0);let M=yield(0,G.ZP)(Fe,{method:"post",body:F(c({},S),{exercise_user_id:((f=x==null?void 0:x.actionTabs)==null?void 0:f.type)==="exercise"?x.actionTabs.id:""})});Ee(!1),Z.resetFields(),L({type:"classroomList/setActionTabs",payload:{}}),D()})},v.createElement(s.default.Item,{label:"\u6700\u7EC8\u6210\u7EE9",style:{marginBottom:0},name:"score",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6700\u7EC8\u6210\u7EE9"}]},v.createElement(y.Z,{min:0,style:{width:"100%"}}))))};X.Z=(0,P.connect)(({classroomList:x})=>({classroomList:x}))(T)},25060:function(at,X,u){"use strict";var e=u(59301),o=u(54580),s=u(78241),i=u(3113),y=u(95237),P=u(81327),G=u(5083),R=u(89070),H=u(61186),j=u.n(H),v=u(79834),A=u(99064),z=u(59301),V=(_,Y,c)=>new Promise((F,k)=>{var g=L=>{try{x(c.next(L))}catch(D){k(D)}},T=L=>{try{x(c.throw(L))}catch(D){k(D)}},x=L=>L.done?F(L.value):Promise.resolve(L.value).then(g,T);x((c=c.apply(_,Y)).next())});const{Dragger:d}=o.default,m=({})=>{const _=(0,R.useParams)(),[Y]=s.default.useForm(),[c,F]=(0,e.useState)(!0),[k,g]=(0,e.useState)(!1);console.log("----",_);function T(){return V(this,null,function*(){var x,L;let D;window.location.href.indexOf("exercise")>-1?D=`/api/exercises/${_==null?void 0:_.categoryId}/get_time_setting.json`:D=`/api/homework_commons/${_==null?void 0:_.categoryId}/get_time_setting.json`;let te=yield(0,A.ZP)(D,{method:"get"});(te==null?void 0:te.status)===0&&Y.setFieldsValue({publish_time:j()(j()((x=te==null?void 0:te.data)==null?void 0:x.publish_time).format("YYYY-MM-DD HH:mm")),end_time:j()(j()((L=te==null?void 0:te.data)==null?void 0:L.end_time).format("YYYY-MM-DD HH:mm"))})})}return(0,e.useEffect)(()=>{T()},[]),z.createElement("div",{style:{padding:"50px 30px",background:"#fff"}},z.createElement("div",{style:{textAlign:"end"}},c&&z.createElement(i.ZP,{onClick:()=>{F(!1)}},"\u7F16\u8F91\u8BBE\u7F6E"),!c&&z.createElement("div",null,z.createElement(i.ZP,{type:"primary",loading:k,onClick:()=>{Y.submit()}},"\u63D0\u4EA4"),z.createElement(i.ZP,{style:{marginLeft:20},onClick:()=>{F(!0)}},"\u53D6\u6D88"))),z.createElement(s.default,{form:Y,disabled:c,onFinish:x=>V(void 0,null,function*(){g(!0),console.log("---",window.location.href);let L;window.location.href.indexOf("exercise")>-1?L=`/api/exercises/${_==null?void 0:_.categoryId}/time_setting.json`:L=`/api/homework_commons/${_==null?void 0:_.categoryId}/time_setting.json`;let D=yield(0,A.ZP)(L,{method:"post",body:{publish_time:j()(x.publish_time).format("YYYY-MM-DD HH:mm"),end_time:j()(x.end_time).format("YYYY-MM-DD HH:mm")}});g(!1),(D==null?void 0:D.status)===0&&F(!0)})},z.createElement(y.Z,null,z.createElement(P.Z,null,z.createElement(s.default.Item,{label:"\u5F00\u59CB\u65F6\u95F4",name:"publish_time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4"}]},z.createElement(G.default,{placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},style:{width:260},size:"large",disabledDate:x=>(0,v.Q8)(x),disabledTime:x=>(0,v.d0)(x),allowClear:!1,format:"YYYY-MM-DD HH:mm"})),z.createElement("span",{style:{color:"#999999",fontSize:"14px",height:40,marginBottom:8,display:"block"}},"\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u7684\u65F6\u95F4\uFF09"))),z.createElement(y.Z,null,z.createElement(P.Z,null,z.createElement(s.default.Item,{label:"\u7ED3\u675F\u65F6\u95F4",name:"end_time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4"}]},z.createElement(G.default,{placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},style:{width:260},size:"large",disabledDate:x=>(0,v.Q8)(x,"",Y.getFieldValue("publish_time")),disabledTime:x=>(0,v.d0)(x,Y.getFieldValue("publish_time")),allowClear:!1,format:"YYYY-MM-DD HH:mm"})),z.createElement("span",{style:{color:"#999999",fontSize:"14px",height:40,marginBottom:8,display:"block"}},"\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u7684\u65F6\u95F4\u622A\u70B9\uFF09")))))};X.Z=(0,R.connect)(({classroomList:_})=>({classroomList:_}))(m)},59437:function(at,X,u){"use strict";u.d(X,{Z:function(){return j}});var e=u(59301),o=u(92832),s=u(24905),i=u(95237),y={leftdiv:"leftdiv___aBzsX",listClass:"listClass___bxIEW",spantitle:"spantitle___v_Vc4",rightdiv:"rightdiv___xWu4M"},P="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC",G=u(8797),R=(v,A,z)=>new Promise((V,d)=>{var m=c=>{try{Y(z.next(c))}catch(F){d(F)}},_=c=>{try{Y(z.throw(c))}catch(F){d(F)}},Y=c=>c.done?V(c.value):Promise.resolve(c.value).then(m,_);Y((z=z.apply(v,A)).next())}),j=({data:v,value:A=[],handleChangePage:z,className:V="",setSelectedRowKeys:d,selectedRowKeys:m,onChange:_=()=>{}})=>{const[Y,c]=(0,e.useState)([]),[F,k]=(0,e.useState)([]),[g,T]=(0,e.useState)([]);let[x,L]=(0,e.useState)(1),[D,te]=(0,e.useState)();return(0,e.useEffect)(()=>{c(v),k([]),T([])},[v]),(0,e.useEffect)(()=>{d&&(k(m),T(m))},[m]),e.createElement("div",{className:`flex justify-between w-full ${V}`},e.createElement("div",{className:y.leftdiv},e.createElement(o.default.Search,{size:"middle",style:{marginBottom:"10rem"},onChange:Z=>R(void 0,null,function*(){c(v.filter(Ae=>{var he;return(he=Ae==null?void 0:Ae.name)==null?void 0:he.includes(Z.target.value)}))}),placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),Y.length===0&&e.createElement(G.Z,{styles:{margin:"70rem auto"},customText:"\u6682\u65E0\u5206\u73ED"}),e.createElement("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"}},e.createElement(s.default.Group,{value:F.map(Z=>`${Z.id}`),onChange:Z=>{d(Y.filter(Ae=>Z.includes(`${Ae.id}`)))},style:{marginTop:"10px",flexDirection:"column"}},Y.map((Z,Ae)=>e.createElement(i.Z,{key:Z.id,style:{marginTop:"10rem",lineHeight:"24rem",display:"flex",width:"200rem"}},e.createElement(s.default,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:Z.is_published,value:`${Z.id}`},e.createElement("div",{className:y.listClass},e.createElement("span",{className:y.spantitle,style:{width:Z.is_published?"108px":"170px"}},Z.name),Z.is_published&&e.createElement("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"}},"\u5DF2\u53D1\u5E03")))))))),e.createElement("div",{className:y.rightdiv},e.createElement(o.default.Search,{onChange:Z=>{T(F.filter(Ae=>Ae.name.includes(Z.target.value)))},size:"middle",placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),g.length===0&&e.createElement(G.Z,{imgStyles:{width:"200rem"},styles:{margin:"70rem auto"},customText:"\u6682\u672A\u9009\u62E9\u5206\u73ED"}),g.length>0&&e.createElement("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"}},e.createElement("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0}},g.map((Z,Ae)=>e.createElement("div",{className:"flex justify-between item-center",style:{marginTop:"10rem"},key:Z.id},e.createElement("div",{className:"multi_ellipsis1 flex-1 minW-0",style:{margin:"0 5rem"}},Z.name),e.createElement("img",{src:P,className:"current",style:{height:"16rem",marginRight:"17rem"},onClick:()=>{d(F.filter(he=>`${he.id}`!=`${Z.id}`))}})))))))}},78297:function(at,X,u){"use strict";u.d(X,{AD:function(){return Ee},D9:function(){return M},Hp:function(){return T},IM:function(){return se},Iy:function(){return L},KM:function(){return Me},MJ:function(){return x},Ne:function(){return r},ON:function(){return ot},Uj:function(){return ft},VY:function(){return Re},YO:function(){return Ke},YX:function(){return ze},Zn:function(){return d},_g:function(){return F},_k:function(){return f},c6:function(){return he},cr:function(){return m},eV:function(){return w},fi:function(){return _},gh:function(){return Z},hS:function(){return a},iA:function(){return Y},j6:function(){return k},je:function(){return oe},jj:function(){return g},kS:function(){return tt},o6:function(){return Ae},pO:function(){return Xe},rQ:function(){return B},sA:function(){return te},xm:function(){return Fe},xo:function(){return De},y8:function(){return S},yd:function(){return c}});var e=u(92365),o=u(89070),s=u(955),i=u(8591),y=u(3294),P=Object.defineProperty,G=Object.getOwnPropertySymbols,R=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable,j=(C,de,ut)=>de in C?P(C,de,{enumerable:!0,configurable:!0,writable:!0,value:ut}):C[de]=ut,v=(C,de)=>{for(var ut in de||(de={}))R.call(de,ut)&&j(C,ut,de[ut]);if(G)for(var ut of G(de))H.call(de,ut)&&j(C,ut,de[ut]);return C},A=(C,de,ut)=>new Promise((we,N)=>{var p=re=>{try{fe(ut.next(re))}catch(Ze){N(Ze)}},$=re=>{try{fe(ut.throw(re))}catch(Ze){N(Ze)}},fe=re=>re.done?we(re.value):Promise.resolve(re.value).then(p,$);fe((ut=ut.apply(C,de)).next())});const z=()=>{(0,o.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},V=()=>{(0,o.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},d=C=>A(void 0,null,function*(){z(),(yield(0,e.YR)(v({},C))).status===0&&(yield(0,s.QH)("",(0,s.NY)({url:y.Z.API_SERVER+`/api/courses/${C.coursesId}/export_couser_info.json`,query:C}))),V()}),m=C=>A(void 0,null,function*(){const de=yield(0,e.yS)(v({},C));if(de.status===0)i.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),o.history.push(`/classrooms/${C.coursesId}/exportlist/course_member_act_score`);else{if(de.status===-2)return de;de.status===-3&&((0,o.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),o.history.push(`/classrooms/${C.coursesId}/exportlist/course_member_act_score`))}}),_=C=>A(void 0,null,function*(){const de=yield(0,e.W0)(v({},C));if(de.status===0)i.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),o.history.push(`/classrooms/${C.coursesId}/exportlist/course_total_score`);else{if(de.status===-4)return de;de.status===-3&&((0,o.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),o.history.push(`/classrooms/${C.coursesId}/exportlist/course_total_score`))}}),Y=C=>A(void 0,null,function*(){const de=yield(0,e.Nl)(v({},C));if(de.status===0)i.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),o.history.push(`/classrooms/${C.coursesId}/exportlist/course_total_exercise_and_other`);else{if(de.status===-4)return de;de.status===-3&&((0,o.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),o.history.push(`/classrooms/${C.coursesId}/exportlist/course_total_exercise_and_other`))}}),c=C=>A(void 0,null,function*(){const de=yield(0,e.IU)(v({},C));if(de.status===0)i.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),o.history.push(`/classrooms/${C.coursesId}/exportlist/export_star_user`);else{if(de.status===-4)return de;de.status===-3&&((0,o.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),o.history.push(`/classrooms/${C.coursesId}/exportlist/export_star_user`))}}),F=C=>A(void 0,null,function*(){const de=yield(0,e.td)(v({},C));if(de.status===0)i.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),o.history.push(`/classrooms/${C.coursesId}/exportlist/course_total_exercise_and_other`);else{if(de.status===-2)return de;if(de.status===-3)(0,o.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),o.history.push(`/classrooms/${C.coursesId}/exportlist/course_total_exercise_and_other`);else if(de.status===-4)return de}}),k=C=>A(void 0,null,function*(){const de=yield(0,e.QX)(v({},C));if(de.status===0)i.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),o.history.push(`/classrooms/${C.coursesId}/exportlist/course_total_homework`);else{if(de.status===-4)return de;de.status===-3&&((0,o.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),o.history.push(`/classrooms/${C.coursesId}/exportlist/course_total_homework`))}}),g=(C,de)=>A(void 0,null,function*(){const ut=yield(0,e.o_)(v({},C));ut.status===0?(i.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),o.history.push(`/classrooms/${C.coursesId}/exportlist/${de}`)):ut.status===-3&&((0,o.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),o.history.push(`/classrooms/${C.coursesId}/exportlist/${de}`))}),T=(C,de)=>A(void 0,null,function*(){const ut=yield(0,e.ZL)(v({},C));ut.status===0?(i.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),o.history.push(`/classrooms/${C.coursesId}/exportlist/${de}`)):ut.status===-3&&((0,o.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),o.history.push(`/classrooms/${C.coursesId}/exportlist/${de}`))}),x=(C,de)=>A(void 0,null,function*(){const ut=yield(0,e.vV)(v({},C));ut.status===0?(i.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),o.history.push(`/classrooms/${C.coursesId}/exportlist/${de}`)):ut.status===-3&&((0,o.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),o.history.push(`/classrooms/${C.coursesId}/exportlist/${de}`))}),L=(C,de)=>A(void 0,null,function*(){const ut=yield(0,e.aP)(v({},C));ut.status===0?(i.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),o.history.push(`/classrooms/${C.coursesId}/exportlist/${de}`)):ut.status===-3&&((0,o.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),o.history.push(`/classrooms/${C.coursesId}/exportlist/${de}`))}),D=C=>A(void 0,null,function*(){z(),(yield exportCourseWorkListAppendix(v({},C))).status===0&&(yield downLoadFileIframe("",setUrlQuery({url:ENV.API_SERVER+`/api/homework_commons/${C.categoryId}/works_list.zip`,query:C}))),V()}),te=C=>A(void 0,null,function*(){z(),yield(0,s.QH)("",y.Z.API_SERVER+`/api/polls/${C.categoryId}/commit_result.xlsx`),V()}),Z=C=>A(void 0,null,function*(){yield(0,s.FH)("",(0,s.NY)({url:y.Z.API_SERVER+`/api/courses/${C.coursesId}/attendances/export_xlsx_data.xlsx`,query:C}))}),Ae=C=>A(void 0,null,function*(){yield(0,s.FH)("",(0,s.NY)({url:y.Z.API_SERVER+`/api/courses/${C.coursesId}/video_study_statics.xlsx`,query:C}))}),he=C=>A(void 0,null,function*(){yield(0,s.FH)("",(0,s.NY)({url:y.Z.API_SERVER+`/api/courses/${C.coursesId}/export_video_study.xlsx`,query:C}))}),w=C=>A(void 0,null,function*(){yield(0,s.FH)("",(0,s.NY)({url:y.Z.API_SERVER+`/api/courses/${C.coursesId}/export_course_students_info.xlsx`,query:C}))}),Ee=C=>A(void 0,null,function*(){yield(0,s.FH)("",(0,s.NY)({url:y.Z.API_SERVER+"/api/school_manages/students.xlsx",query:C}))}),B=C=>A(void 0,null,function*(){yield(0,s.FH)("",(0,s.NY)({url:y.Z.API_SERVER+"/api/item_banks/export.xlsx",query:C}))}),S=C=>A(void 0,null,function*(){yield(0,s.FH)("",(0,s.NY)({url:y.Z.API_SERVER+"/api/competitions/region_reports.xlsx",query:C}))}),oe=C=>A(void 0,null,function*(){const de=yield(0,e.Uy)(v({},C));de.status===0?(i.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),o.history.push(`/classrooms/${C.coursesId}/exportlist/exercise_score,export_exercise_users`)):de.status===-3&&((0,o.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),o.history.push(`/classrooms/${C.coursesId}/exportlist/exercise_score,export_exercise_users`))}),f=C=>A(void 0,null,function*(){console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),yield(0,s.FH)("",(0,s.NY)({url:y.Z.API_SERVER+`/api/export_records/${C.id}.xlsx`,query:C}))}),Fe=C=>A(void 0,null,function*(){yield(0,s.FH)("",(0,s.NY)({url:y.Z.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:C}))}),M=C=>A(void 0,null,function*(){yield(0,s.FH)("",(0,s.NY)({url:y.Z.API_SERVER+`/api/courses/${C==null?void 0:C.coursesId}/${C.menuKey}_statistic.xlsx?${C.checkedList.map(de=>`course_group_id[]=${de}`).join("&")}`,query:C}))}),r=C=>A(void 0,null,function*(){yield(0,s.FH)("",(0,s.NY)({url:y.Z.API_SERVER+`/api/ec_years/${C==null?void 0:C.ec_year_id}/ec_training_objectives.xlsx`,query:C}))}),se=C=>A(void 0,null,function*(){yield(0,s.FH)(C==null?void 0:C.name,(0,s.NY)({url:y.Z.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:C}))}),a=C=>A(void 0,null,function*(){yield(0,s.FH)("",(0,s.NY)({url:y.Z.API_SERVER+`/api/ec_years/${C==null?void 0:C.ec_year_id}/ec_courses.xlsx`,query:C}))}),De=C=>A(void 0,null,function*(){yield(0,s.FH)("",(0,s.NY)({url:y.Z.API_SERVER+`/api/ec_years/${C==null?void 0:C.ec_year_id}/ec_graduation_requirements.xlsx`,query:C}))}),Re=C=>A(void 0,null,function*(){yield(0,s.FH)("",(0,s.NY)({url:y.Z.API_SERVER+"/api/courses/rank_list.xlsx",query:C}))}),tt=C=>A(void 0,null,function*(){yield(0,s.FH)("",(0,s.NY)({url:y.Z.API_SERVER+"/api/courses/question_rank_list.xlsx",query:C}))}),ot=C=>A(void 0,null,function*(){yield(0,s.FH)("",(0,s.NY)({url:y.Z.API_SERVER+`/api/examination_banks/${C.id}.json`,query:C}))}),ze=C=>A(void 0,null,function*(){yield(0,s.FH)("",(0,s.NY)({url:y.Z.API_SERVER+`/api/exercises/${C.categoryId}.json`,query:C}))}),Ke=C=>A(void 0,null,function*(){yield(0,s.FH)("",(0,s.NY)({url:y.Z.API_SERVER+`/api/polls/${C==null?void 0:C.id}/commit_result.json`,query:C}))}),ft=C=>A(void 0,null,function*(){yield(0,s.FH)("",(0,s.NY)({url:y.Z.API_SERVER+"/api/paths/get_task_pass.json",query:C}))}),Xe=(C,de)=>A(void 0,null,function*(){yield(0,s.FH)(de||"",(0,s.NY)({url:y.Z.API_SERVER+`/api/exercises/${C==null?void 0:C.exercise_id}/consult_exercise.json`,query:C}))}),Me=C=>A(void 0,null,function*(){yield(0,s.FH)("",(0,s.NY)({url:y.Z.API_SERVER+`/api/competitions/${C==null?void 0:C.identifier}/competition_commit_records/member_works.xlsx`,query:C}))})},83312:function(at,X,u){"use strict";u.d(X,{U:function(){return H}});var e=u(59301),o=Object.defineProperty,s=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,P=(j,v,A)=>v in j?o(j,v,{enumerable:!0,configurable:!0,writable:!0,value:A}):j[v]=A,G=(j,v)=>{for(var A in v||(v={}))i.call(v,A)&&P(j,A,v[A]);if(s)for(var A of s(v))y.call(v,A)&&P(j,A,v[A]);return j},R=(j,v,A)=>new Promise((z,V)=>{var d=Y=>{try{_(A.next(Y))}catch(c){V(c)}},m=Y=>{try{_(A.throw(Y))}catch(c){V(c)}},_=Y=>Y.done?z(Y.value):Promise.resolve(Y.value).then(d,m);_((A=A.apply(j,v)).next())});function H(j,v){const[A,z]=(0,e.useState)(v),[V,d]=(0,e.useState)(!1),[m,_]=(0,e.useState)();return[A,V,(c,F=!1)=>R(this,null,function*(){const k=F?v:G(G({},A),c);d(!0),z(k);const g=yield j(k);return d(!1),_(g),g}),m,_]}},97177:function(at,X,u){"use strict";u.d(X,{Z:function(){return G}});var e=u(59301),o=u.p+"static/modelContact.7a7eb113.png",s=u(91785),i=u(24065),y=u(59301),G=()=>{const[R,H]=(0,e.useState)(!1);return{verifyModelUser:()=>(0,i.$O)()?!0:(H(!0),!1),ContactModalElement:()=>y.createElement(s.Z,{visible:R,setVisible:H,image:o}),contactOpen:R,setContactOpen:H}}},88522:function(at,X,u){"use strict";var e=u(92310),o=u.n(e),s=u(11592),i=u(2738),y=u(59301),P=u(53487),G=u(92343),R=u(36355),H=u(57809);const{Option:j}=H.default;function v(d){return d&&d.type&&(d.type.isSelectOption||d.type.isSelectOptGroup)}const A=(d,m)=>{const{prefixCls:_,className:Y,popupClassName:c,dropdownClassName:F,children:k,dataSource:g}=d,T=(0,s.Z)(k);let x;T.length===1&&(0,G.l$)(T[0])&&!v(T[0])&&([x]=T);const L=x?()=>x:void 0;let D;T.length&&v(T[0])?D=k:D=g?g.map(Ae=>{if((0,G.l$)(Ae))return Ae;switch(typeof Ae){case"string":return y.createElement(j,{key:Ae,value:Ae},Ae);case"object":{const{value:he}=Ae;return y.createElement(j,{key:he,value:he},Ae.text)}default:return}}):[];const{getPrefixCls:te}=y.useContext(R.E_),Z=te("select",_);return y.createElement(H.default,Object.assign({ref:m,suffixIcon:null},(0,i.Z)(d,["dataSource","dropdownClassName"]),{prefixCls:Z,popupClassName:c||F,className:o()(`${Z}-auto-complete`,Y),mode:H.default.SECRET_COMBOBOX_MODE_DO_NOT_USE},{getInputElement:L}),D)},z=y.forwardRef(A),V=(0,P.Z)(z);z.Option=j,z._InternalPanelDoNotUseOrYouWillBeFired=V,X.Z=z},66104:function(at,X,u){"use strict";u.d(X,{Z:function(){return Ee}});var e=u(92310),o=u.n(e),s=u(11592),i=u(26112),y=u(59301),P=u(92343),G=u(36355),R=u(84105),H=u(91857);const j=B=>{let{children:S}=B;const{getPrefixCls:oe}=y.useContext(G.E_),f=oe("breadcrumb");return y.createElement("li",{className:`${f}-separator`,"aria-hidden":"true"},S===""?S:S||"/")};j.__ANT_BREADCRUMB_SEPARATOR=!0;var v=j,A=function(B,S){var oe={};for(var f in B)Object.prototype.hasOwnProperty.call(B,f)&&S.indexOf(f)<0&&(oe[f]=B[f]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,f=Object.getOwnPropertySymbols(B);FeS[Fe]||f)}function V(B,S,oe,f){if(oe==null)return null;const{className:Fe,onClick:M}=S,r=A(S,["className","onClick"]),se=Object.assign(Object.assign({},(0,i.Z)(r,{data:!0,aria:!0})),{onClick:M});return f!==void 0?y.createElement("a",Object.assign({},se,{className:o()(`${B}-link`,Fe),href:f}),oe):y.createElement("span",Object.assign({},se,{className:o()(`${B}-link`,Fe)}),oe)}function d(B,S){return(f,Fe,M,r,se)=>{if(S)return S(f,Fe,M,r);const a=z(f,Fe);return V(B,f,a,se)}}var m=function(B,S){var oe={};for(var f in B)Object.prototype.hasOwnProperty.call(B,f)&&S.indexOf(f)<0&&(oe[f]=B[f]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,f=Object.getOwnPropertySymbols(B);Fe{const{prefixCls:S,separator:oe="/",children:f,menu:Fe,overlay:M,dropdownProps:r,href:se}=B,De=(Re=>{if(Fe||M){const tt=Object.assign({},r);if(Fe){const ot=Fe||{},{items:ze}=ot,Ke=m(ot,["items"]);tt.menu=Object.assign(Object.assign({},Ke),{items:ze==null?void 0:ze.map((ft,Xe)=>{var{key:Me,title:C,label:de,path:ut}=ft,we=m(ft,["key","title","label","path"]);let N=de!=null?de:C;return ut&&(N=y.createElement("a",{href:`${se}${ut}`},N)),Object.assign(Object.assign({},we),{key:Me!=null?Me:Xe,label:N})})})}else M&&(tt.overlay=M);return y.createElement(H.Z,Object.assign({placement:"bottom"},tt),y.createElement("span",{className:`${S}-overlay-link`},Re,y.createElement(R.Z,null)))}return Re})(f);return De!=null?y.createElement(y.Fragment,null,y.createElement("li",null,De),oe&&y.createElement(v,null,oe)):null},Y=B=>{const{prefixCls:S,children:oe,href:f}=B,Fe=m(B,["prefixCls","children","href"]),{getPrefixCls:M}=y.useContext(G.E_),r=M("breadcrumb",S);return y.createElement(_,Object.assign({},Fe,{prefixCls:r}),V(r,Fe,oe,f))};Y.__ANT_BREADCRUMB_ITEM=!0;var c=Y,F=u(17313),k=u(83116),g=u(37613);const T=B=>{const{componentCls:S,iconCls:oe}=B;return{[S]:Object.assign(Object.assign({},(0,F.Wf)(B)),{color:B.itemColor,fontSize:B.fontSize,[oe]:{fontSize:B.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:B.linkColor,transition:`color ${B.motionDurationMid}`,padding:`0 ${B.paddingXXS}px`,borderRadius:B.borderRadiusSM,height:B.lineHeight*B.fontSize,display:"inline-block",marginInline:-B.marginXXS,"&:hover":{color:B.linkHoverColor,backgroundColor:B.colorBgTextHover}},(0,F.Qy)(B)),"li:last-child":{color:B.lastItemColor},[`${S}-separator`]:{marginInline:B.separatorMargin,color:B.separatorColor},[`${S}-link`]:{[` - > ${oe} + span, - > ${oe} + a - `]:{marginInlineStart:B.marginXXS}},[`${S}-overlay-link`]:{borderRadius:B.borderRadiusSM,height:B.lineHeight*B.fontSize,display:"inline-block",padding:`0 ${B.paddingXXS}px`,marginInline:-B.marginXXS,[`> ${oe}`]:{marginInlineStart:B.marginXXS,fontSize:B.fontSizeIcon},"&:hover":{color:B.linkHoverColor,backgroundColor:B.colorBgTextHover,a:{color:B.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${B.componentCls}-rtl`]:{direction:"rtl"}})}};var x=(0,k.Z)("Breadcrumb",B=>{const S=(0,g.TS)(B,{});return[T(S)]},B=>({itemColor:B.colorTextDescription,lastItemColor:B.colorText,iconFontSize:B.fontSize,linkColor:B.colorTextDescription,linkHoverColor:B.colorText,separatorColor:B.colorTextDescription,separatorMargin:B.marginXS})),L=function(B,S){var oe={};for(var f in B)Object.prototype.hasOwnProperty.call(B,f)&&S.indexOf(f)<0&&(oe[f]=B[f]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,f=Object.getOwnPropertySymbols(B);Fe{var{breadcrumbName:r}=M,se=L(M,["breadcrumbName"]);return Object.assign(Object.assign({},se),{title:r})})}),Fe}function te(B,S){return(0,y.useMemo)(()=>B||(S?S.map(D):null),[B,S])}var Z=function(B,S){var oe={};for(var f in B)Object.prototype.hasOwnProperty.call(B,f)&&S.indexOf(f)<0&&(oe[f]=B[f]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,f=Object.getOwnPropertySymbols(B);Fe{if(S===void 0)return S;let oe=(S||"").replace(/^\//,"");return Object.keys(B).forEach(f=>{oe=oe.replace(`:${f}`,B[f])}),oe},he=B=>{const{prefixCls:S,separator:oe="/",style:f,className:Fe,rootClassName:M,routes:r,items:se,children:a,itemRender:De,params:Re={}}=B,tt=Z(B,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:ot,direction:ze,breadcrumb:Ke}=y.useContext(G.E_);let ft;const Xe=ot("breadcrumb",S),[Me,C]=x(Xe),de=te(se,r),ut=d(Xe,De);if(de&&de.length>0){const p=[],$=se||r;ft=de.map((fe,re)=>{const{path:Ze,key:Ct,type:dt,menu:et,overlay:zt,onClick:Vt,className:O,separator:mt,dropdownProps:It}=fe,kt=Ae(Re,Ze);kt!==void 0&&p.push(kt);const Qt=Ct!=null?Ct:re;if(dt==="separator")return y.createElement(v,{key:Qt},mt);const su={},du=re===de.length-1;et?su.menu=et:zt&&(su.overlay=zt);let{href:eu}=fe;return p.length&&kt!==void 0&&(eu=`#/${p.join("/")}`),y.createElement(_,Object.assign({key:Qt},su,(0,i.Z)(fe,{data:!0,aria:!0}),{className:O,dropdownProps:It,href:eu,separator:du?"":oe,onClick:Vt,prefixCls:Xe}),ut(fe,Re,$,p,eu))})}else if(a){const p=(0,s.Z)(a).length;ft=(0,s.Z)(a).map(($,fe)=>{if(!$)return $;const re=fe===p-1;return(0,P.Tm)($,{separator:re?"":oe,key:fe})})}const we=o()(Xe,Ke==null?void 0:Ke.className,{[`${Xe}-rtl`]:ze==="rtl"},Fe,M,C),N=Object.assign(Object.assign({},Ke==null?void 0:Ke.style),f);return Me(y.createElement("nav",Object.assign({className:we,style:N},tt),y.createElement("ol",null,ft)))};he.Item=c,he.Separator=v;var w=he,Ee=w},13570:function(at,X,u){"use strict";u.d(X,{Z:function(){return M}});var e=u(72308),o=u(59301),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},i=s,y=u(7657),P=function(se,a){return o.createElement(y.Z,(0,e.Z)({},se,{ref:a,icon:i}))},G=o.forwardRef(P),R=G,H=u(92310),j=u.n(H),v=u(49618),A=u(52487),z=u(74416),V=u(18929),d=u(10228),m=u(26112);function _(r,se){var a=r.disabled,De=r.prefixCls,Re=r.character,tt=r.characterRender,ot=r.index,ze=r.count,Ke=r.value,ft=r.allowHalf,Xe=r.focused,Me=r.onHover,C=r.onClick,de=function(Ze){Me(Ze,ot)},ut=function(Ze){C(Ze,ot)},we=function(Ze){Ze.keyCode===d.Z.ENTER&&C(Ze,ot)},N=ot+1,p=new Set([De]);Ke===0&&ot===0&&Xe?p.add("".concat(De,"-focused")):ft&&Ke+.5>=N&&Keot?"true":"false","aria-posinset":ot+1,"aria-setsize":ze,tabIndex:a?-1:0},o.createElement("div",{className:"".concat(De,"-first")},$),o.createElement("div",{className:"".concat(De,"-second")},$)));return tt&&(fe=tt(fe,r)),fe}var Y=o.forwardRef(_);function c(){var r=o.useRef({});function se(De){return r.current[De]}function a(De){return function(Re){r.current[De]=Re}}return[se,a]}function F(r){var se=r.pageXOffset,a="scrollLeft";if(typeof se!="number"){var De=r.document;se=De.documentElement[a],typeof se!="number"&&(se=De.body[a])}return se}function k(r){var se,a,De=r.ownerDocument,Re=De.body,tt=De&&De.documentElement,ot=r.getBoundingClientRect();return se=ot.left,a=ot.top,se-=tt.clientLeft||Re.clientLeft||0,a-=tt.clientTop||Re.clientTop||0,{left:se,top:a}}function g(r){var se=k(r),a=r.ownerDocument,De=a.defaultView||a.parentWindow;return se.left+=F(De),se.left}var T=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function x(r,se){var a,De=r.prefixCls,Re=De===void 0?"rc-rate":De,tt=r.className,ot=r.defaultValue,ze=r.value,Ke=r.count,ft=Ke===void 0?5:Ke,Xe=r.allowHalf,Me=Xe===void 0?!1:Xe,C=r.allowClear,de=C===void 0?!0:C,ut=r.character,we=ut===void 0?"\u2605":ut,N=r.characterRender,p=r.disabled,$=r.direction,fe=$===void 0?"ltr":$,re=r.tabIndex,Ze=re===void 0?0:re,Ct=r.autoFocus,dt=r.onHoverChange,et=r.onChange,zt=r.onFocus,Vt=r.onBlur,O=r.onKeyDown,mt=r.onMouseLeave,It=(0,z.Z)(r,T),kt=c(),Qt=(0,A.Z)(kt,2),su=Qt[0],du=Qt[1],eu=o.useRef(null),lu=function(){if(!p){var Qe;(Qe=eu.current)===null||Qe===void 0||Qe.focus()}};o.useImperativeHandle(se,function(){return{focus:lu,blur:function(){if(!p){var Qe;(Qe=eu.current)===null||Qe===void 0||Qe.blur()}}}});var Ou=(0,V.Z)(ot||0,{value:ze}),ku=(0,A.Z)(Ou,2),Be=ku[0],ye=ku[1],ue=(0,V.Z)(null),Se=(0,A.Z)(ue,2),_t=Se[0],Yt=Se[1],lt=function(Qe,Mt){var pt=fe==="rtl",Ue=Qe+1;if(Me){var au=su(Qe),tu=g(au),xt=au.clientWidth;(pt&&Mt-tu>xt/2||!pt&&Mt-tu0&&!pt||Mt===d.Z.RIGHT&&Ue>0&&pt?(Me?Ue-=.5:Ue-=1,rt(Ue),Qe.preventDefault()):Mt===d.Z.LEFT&&Ue{const{componentCls:se}=r;return{[`${se}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:r.marginXS},"> div":{transition:`all ${r.motionDurationMid}, outline 0s`,"&:hover":{transform:r.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${r.lineWidth}px dashed ${r.starColor}`,transform:r.starHoverScale}},"&-first, &-second":{color:r.starBg,transition:`all ${r.motionDurationMid}`,userSelect:"none",[r.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${se}-star-first, &-half ${se}-star-second`]:{opacity:1},[`&-half ${se}-star-first, &-full ${se}-star-second`]:{color:"inherit"}}}},B=r=>({[`&-rtl${r.componentCls}`]:{direction:"rtl"}}),S=r=>{const{componentCls:se}=r;return{[se]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ae.Wf)(r)),{display:"inline-block",margin:0,padding:0,color:r.starColor,fontSize:r.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${se} ${se}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Ee(r)),{[`+ ${se}-text`]:{display:"inline-block",marginInlineStart:r.marginXS,fontSize:r.fontSize}}),B(r))}};var oe=(0,he.Z)("Rate",r=>{const se=(0,w.TS)(r,{});return[S(se)]},r=>({starColor:r.yellow6,starSize:r.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:r.colorFillContent})),f=function(r,se){var a={};for(var De in r)Object.prototype.hasOwnProperty.call(r,De)&&se.indexOf(De)<0&&(a[De]=r[De]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,De=Object.getOwnPropertySymbols(r);Re{const{prefixCls:a,className:De,rootClassName:Re,style:tt,tooltips:ot,character:ze=o.createElement(R,null)}=r,Ke=f(r,["prefixCls","className","rootClassName","style","tooltips","character"]),ft=(p,$)=>{let{index:fe}=$;return ot?o.createElement(Z.Z,{title:ot[fe]},p):p},{getPrefixCls:Xe,direction:Me,rate:C}=o.useContext(te.E_),de=Xe("rate",a),[ut,we]=oe(de),N=Object.assign(Object.assign({},C==null?void 0:C.style),tt);return ut(o.createElement(D,Object.assign({ref:se,character:ze,characterRender:ft},Ke,{className:j()(De,Re,we,C==null?void 0:C.className),style:N,prefixCls:de,direction:Me})))})},61621:function(at,X,u){"use strict";u.d(X,{Z:function(){return we}});var e=u(92310),o=u.n(e),s=u(59301),i=u(36355),y=u(2738),G=N=>{const{prefixCls:p,className:$,style:fe,size:re,shape:Ze}=N,Ct=o()({[`${p}-lg`]:re==="large",[`${p}-sm`]:re==="small"}),dt=o()({[`${p}-circle`]:Ze==="circle",[`${p}-square`]:Ze==="square",[`${p}-round`]:Ze==="round"}),et=s.useMemo(()=>typeof re=="number"?{width:re,height:re,lineHeight:`${re}px`}:{},[re]);return s.createElement("span",{className:o()(p,Ct,dt,$),style:Object.assign(Object.assign({},et),fe)})},R=u(93083),H=u(83116),j=u(37613);const v=new R.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),A=N=>({height:N,lineHeight:`${N}px`}),z=N=>Object.assign({width:N},A(N)),V=N=>({background:N.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:v,animationDuration:N.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),d=N=>Object.assign({width:N*5,minWidth:N*5},A(N)),m=N=>{const{skeletonAvatarCls:p,gradientFromColor:$,controlHeight:fe,controlHeightLG:re,controlHeightSM:Ze}=N;return{[`${p}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:$},z(fe)),[`${p}${p}-circle`]:{borderRadius:"50%"},[`${p}${p}-lg`]:Object.assign({},z(re)),[`${p}${p}-sm`]:Object.assign({},z(Ze))}},_=N=>{const{controlHeight:p,borderRadiusSM:$,skeletonInputCls:fe,controlHeightLG:re,controlHeightSM:Ze,gradientFromColor:Ct}=N;return{[`${fe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ct,borderRadius:$},d(p)),[`${fe}-lg`]:Object.assign({},d(re)),[`${fe}-sm`]:Object.assign({},d(Ze))}},Y=N=>Object.assign({width:N},A(N)),c=N=>{const{skeletonImageCls:p,imageSizeBase:$,gradientFromColor:fe,borderRadiusSM:re}=N;return{[`${p}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:fe,borderRadius:re},Y($*2)),{[`${p}-path`]:{fill:"#bfbfbf"},[`${p}-svg`]:Object.assign(Object.assign({},Y($)),{maxWidth:$*4,maxHeight:$*4}),[`${p}-svg${p}-svg-circle`]:{borderRadius:"50%"}}),[`${p}${p}-circle`]:{borderRadius:"50%"}}},F=(N,p,$)=>{const{skeletonButtonCls:fe}=N;return{[`${$}${fe}-circle`]:{width:p,minWidth:p,borderRadius:"50%"},[`${$}${fe}-round`]:{borderRadius:p}}},k=N=>Object.assign({width:N*2,minWidth:N*2},A(N)),g=N=>{const{borderRadiusSM:p,skeletonButtonCls:$,controlHeight:fe,controlHeightLG:re,controlHeightSM:Ze,gradientFromColor:Ct}=N;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${$}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ct,borderRadius:p,width:fe*2,minWidth:fe*2},k(fe))},F(N,fe,$)),{[`${$}-lg`]:Object.assign({},k(re))}),F(N,re,`${$}-lg`)),{[`${$}-sm`]:Object.assign({},k(Ze))}),F(N,Ze,`${$}-sm`))},T=N=>{const{componentCls:p,skeletonAvatarCls:$,skeletonTitleCls:fe,skeletonParagraphCls:re,skeletonButtonCls:Ze,skeletonInputCls:Ct,skeletonImageCls:dt,controlHeight:et,controlHeightLG:zt,controlHeightSM:Vt,gradientFromColor:O,padding:mt,marginSM:It,borderRadius:kt,titleHeight:Qt,blockRadius:su,paragraphLiHeight:du,controlHeightXS:eu,paragraphMarginTop:lu}=N;return{[`${p}`]:{display:"table",width:"100%",[`${p}-header`]:{display:"table-cell",paddingInlineEnd:mt,verticalAlign:"top",[`${$}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:O},z(et)),[`${$}-circle`]:{borderRadius:"50%"},[`${$}-lg`]:Object.assign({},z(zt)),[`${$}-sm`]:Object.assign({},z(Vt))},[`${p}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${fe}`]:{width:"100%",height:Qt,background:O,borderRadius:su,[`+ ${re}`]:{marginBlockStart:Vt}},[`${re}`]:{padding:0,"> li":{width:"100%",height:du,listStyle:"none",background:O,borderRadius:su,"+ li":{marginBlockStart:eu}}},[`${re}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${p}-content`]:{[`${fe}, ${re} > li`]:{borderRadius:kt}}},[`${p}-with-avatar ${p}-content`]:{[`${fe}`]:{marginBlockStart:It,[`+ ${re}`]:{marginBlockStart:lu}}},[`${p}${p}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},g(N)),m(N)),_(N)),c(N)),[`${p}${p}-block`]:{width:"100%",[`${Ze}`]:{width:"100%"},[`${Ct}`]:{width:"100%"}},[`${p}${p}-active`]:{[` - ${fe}, - ${re} > li, - ${$}, - ${Ze}, - ${Ct}, - ${dt} - `]:Object.assign({},V(N))}}};var x=(0,H.Z)("Skeleton",N=>{const{componentCls:p}=N,$=(0,j.TS)(N,{skeletonAvatarCls:`${p}-avatar`,skeletonTitleCls:`${p}-title`,skeletonParagraphCls:`${p}-paragraph`,skeletonButtonCls:`${p}-button`,skeletonInputCls:`${p}-input`,skeletonImageCls:`${p}-image`,imageSizeBase:N.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${N.gradientFromColor} 25%, ${N.gradientToColor} 37%, ${N.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[T($)]},N=>{const{colorFillContent:p,colorFill:$}=N,fe=p,re=$;return{color:fe,colorGradientEnd:re,gradientFromColor:fe,gradientToColor:re,titleHeight:N.controlHeight/2,blockRadius:N.borderRadiusSM,paragraphMarginTop:N.marginLG+N.marginXXS,paragraphLiHeight:N.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),D=N=>{const{prefixCls:p,className:$,rootClassName:fe,active:re,shape:Ze="circle",size:Ct="default"}=N,{getPrefixCls:dt}=s.useContext(i.E_),et=dt("skeleton",p),[zt,Vt]=x(et),O=(0,y.Z)(N,["prefixCls","className"]),mt=o()(et,`${et}-element`,{[`${et}-active`]:re},$,fe,Vt);return zt(s.createElement("div",{className:mt},s.createElement(G,Object.assign({prefixCls:`${et}-avatar`,shape:Ze,size:Ct},O))))},Z=N=>{const{prefixCls:p,className:$,rootClassName:fe,active:re,block:Ze=!1,size:Ct="default"}=N,{getPrefixCls:dt}=s.useContext(i.E_),et=dt("skeleton",p),[zt,Vt]=x(et),O=(0,y.Z)(N,["prefixCls"]),mt=o()(et,`${et}-element`,{[`${et}-active`]:re,[`${et}-block`]:Ze},$,fe,Vt);return zt(s.createElement("div",{className:mt},s.createElement(G,Object.assign({prefixCls:`${et}-button`,size:Ct},O))))};const Ae="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var w=N=>{const{prefixCls:p,className:$,rootClassName:fe,style:re,active:Ze}=N,{getPrefixCls:Ct}=s.useContext(i.E_),dt=Ct("skeleton",p),[et,zt]=x(dt),Vt=o()(dt,`${dt}-element`,{[`${dt}-active`]:Ze},$,fe,zt);return et(s.createElement("div",{className:Vt},s.createElement("div",{className:o()(`${dt}-image`,$),style:re},s.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${dt}-image-svg`},s.createElement("path",{d:Ae,className:`${dt}-image-path`})))))},B=N=>{const{prefixCls:p,className:$,rootClassName:fe,active:re,block:Ze,size:Ct="default"}=N,{getPrefixCls:dt}=s.useContext(i.E_),et=dt("skeleton",p),[zt,Vt]=x(et),O=(0,y.Z)(N,["prefixCls"]),mt=o()(et,`${et}-element`,{[`${et}-active`]:re,[`${et}-block`]:Ze},$,fe,Vt);return zt(s.createElement("div",{className:mt},s.createElement(G,Object.assign({prefixCls:`${et}-input`,size:Ct},O))))},S=u(72308),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},f=oe,Fe=u(7657),M=function(p,$){return s.createElement(Fe.Z,(0,S.Z)({},p,{ref:$,icon:f}))},r=s.forwardRef(M),se=r,De=N=>{const{prefixCls:p,className:$,rootClassName:fe,style:re,active:Ze,children:Ct}=N,{getPrefixCls:dt}=s.useContext(i.E_),et=dt("skeleton",p),[zt,Vt]=x(et),O=o()(et,`${et}-element`,{[`${et}-active`]:Ze},Vt,$,fe),mt=Ct!=null?Ct:s.createElement(se,null);return zt(s.createElement("div",{className:O},s.createElement("div",{className:o()(`${et}-image`,$),style:re},mt)))},Re=u(80702),ot=N=>{const p=dt=>{const{width:et,rows:zt=2}=N;if(Array.isArray(et))return et[dt];if(zt-1===dt)return et},{prefixCls:$,className:fe,style:re,rows:Ze}=N,Ct=(0,Re.Z)(Array(Ze)).map((dt,et)=>s.createElement("li",{key:et,style:{width:p(et)}}));return s.createElement("ul",{className:o()($,fe),style:re},Ct)},Ke=N=>{let{prefixCls:p,className:$,width:fe,style:re}=N;return s.createElement("h3",{className:o()(p,$),style:Object.assign({width:fe},re)})};function ft(N){return N&&typeof N=="object"?N:{}}function Xe(N,p){return N&&!p?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Me(N,p){return!N&&p?{width:"38%"}:N&&p?{width:"50%"}:{}}function C(N,p){const $={};return(!N||!p)&&($.width="61%"),!N&&p?$.rows=3:$.rows=2,$}const de=N=>{const{prefixCls:p,loading:$,className:fe,rootClassName:re,style:Ze,children:Ct,avatar:dt=!1,title:et=!0,paragraph:zt=!0,active:Vt,round:O}=N,{getPrefixCls:mt,direction:It,skeleton:kt}=s.useContext(i.E_),Qt=mt("skeleton",p),[su,du]=x(Qt);if($||!("loading"in N)){const eu=!!dt,lu=!!et,Ou=!!zt;let ku;if(eu){const ue=Object.assign(Object.assign({prefixCls:`${Qt}-avatar`},Xe(lu,Ou)),ft(dt));ku=s.createElement("div",{className:`${Qt}-header`},s.createElement(G,Object.assign({},ue)))}let Be;if(lu||Ou){let ue;if(lu){const _t=Object.assign(Object.assign({prefixCls:`${Qt}-title`},Me(eu,Ou)),ft(et));ue=s.createElement(Ke,Object.assign({},_t))}let Se;if(Ou){const _t=Object.assign(Object.assign({prefixCls:`${Qt}-paragraph`},C(eu,lu)),ft(zt));Se=s.createElement(ot,Object.assign({},_t))}Be=s.createElement("div",{className:`${Qt}-content`},ue,Se)}const ye=o()(Qt,{[`${Qt}-with-avatar`]:eu,[`${Qt}-active`]:Vt,[`${Qt}-rtl`]:It==="rtl",[`${Qt}-round`]:O},kt==null?void 0:kt.className,fe,re,du);return su(s.createElement("div",{className:ye,style:Object.assign(Object.assign({},kt==null?void 0:kt.style),Ze)},ku,Be))}return typeof Ct!="undefined"?Ct:null};de.Button=Z,de.Avatar=D,de.Input=B,de.Image=w,de.Node=De;var ut=de,we=ut},31797:function(at,X,u){"use strict";u.d(X,{default:function(){return x}});var e=u(59301),o=u(56762),s=u(92343),i=u(92310),y=u.n(i),P=u(36355),G=u(61621),H=L=>{const{value:D,formatter:te,precision:Z,decimalSeparator:Ae,groupSeparator:he="",prefixCls:w}=L;let Ee;if(typeof te=="function")Ee=te(D);else{const B=String(D),S=B.match(/^(-?)(\d*)(\.(\d+))?$/);if(!S||B==="-")Ee=B;else{const oe=S[1];let f=S[2]||"0",Fe=S[4]||"";f=f.replace(/\B(?=(\d{3})+(?!\d))/g,he),typeof Z=="number"&&(Fe=Fe.padEnd(Z,"0").slice(0,Z>0?Z:0)),Fe&&(Fe=`${Ae}${Fe}`),Ee=[e.createElement("span",{key:"int",className:`${w}-content-value-int`},oe,f),Fe&&e.createElement("span",{key:"decimal",className:`${w}-content-value-decimal`},Fe)]}}return e.createElement("span",{className:`${w}-content-value`},Ee)},j=u(17313),v=u(83116),A=u(37613);const z=L=>{const{componentCls:D,marginXXS:te,padding:Z,colorTextDescription:Ae,titleFontSize:he,colorTextHeading:w,contentFontSize:Ee,fontFamily:B}=L;return{[`${D}`]:Object.assign(Object.assign({},(0,j.Wf)(L)),{[`${D}-title`]:{marginBottom:te,color:Ae,fontSize:he},[`${D}-skeleton`]:{paddingTop:Z},[`${D}-content`]:{color:w,fontSize:Ee,fontFamily:B,[`${D}-content-value`]:{display:"inline-block",direction:"ltr"},[`${D}-content-prefix, ${D}-content-suffix`]:{display:"inline-block"},[`${D}-content-prefix`]:{marginInlineEnd:te},[`${D}-content-suffix`]:{marginInlineStart:te}}})}};var V=(0,v.Z)("Statistic",L=>{const D=(0,A.TS)(L,{});return[z(D)]},L=>{const{fontSizeHeading3:D,fontSize:te}=L;return{titleFontSize:te,contentFontSize:D}}),m=L=>{const{prefixCls:D,className:te,rootClassName:Z,style:Ae,valueStyle:he,value:w=0,title:Ee,valueRender:B,prefix:S,suffix:oe,loading:f=!1,onMouseEnter:Fe,onMouseLeave:M,decimalSeparator:r=".",groupSeparator:se=","}=L,{getPrefixCls:a,direction:De,statistic:Re}=e.useContext(P.E_),tt=a("statistic",D),[ot,ze]=V(tt),Ke=e.createElement(H,Object.assign({decimalSeparator:r,groupSeparator:se,prefixCls:tt},L,{value:w})),ft=y()(tt,{[`${tt}-rtl`]:De==="rtl"},Re==null?void 0:Re.className,te,Z,ze);return ot(e.createElement("div",{className:ft,style:Object.assign(Object.assign({},Re==null?void 0:Re.style),Ae),onMouseEnter:Fe,onMouseLeave:M},Ee&&e.createElement("div",{className:`${tt}-title`},Ee),e.createElement(G.Z,{paragraph:!1,loading:f,className:`${tt}-skeleton`},e.createElement("div",{style:he,className:`${tt}-content`},S&&e.createElement("span",{className:`${tt}-content-prefix`},S),B?B(Ke):Ke,oe&&e.createElement("span",{className:`${tt}-content-suffix`},oe)))))};const _=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function Y(L,D){let te=L;const Z=/\[[^\]]*]/g,Ae=(D.match(Z)||[]).map(B=>B.slice(1,-1)),he=D.replace(Z,"[]"),w=_.reduce((B,S)=>{let[oe,f]=S;if(B.includes(oe)){const Fe=Math.floor(te/f);return te-=Fe*f,B.replace(new RegExp(`${oe}+`,"g"),M=>{const r=M.length;return Fe.toString().padStart(r,"0")})}return B},he);let Ee=0;return w.replace(Z,()=>{const B=Ae[Ee];return Ee+=1,B})}function c(L,D){const{format:te=""}=D,Z=new Date(L).getTime(),Ae=Date.now(),he=Math.max(Z-Ae,0);return Y(he,te)}const F=1e3/30;function k(L){return new Date(L).getTime()}const g=L=>{const{value:D,format:te="HH:mm:ss",onChange:Z,onFinish:Ae}=L,he=(0,o.Z)(),w=e.useRef(null),Ee=()=>{Ae==null||Ae(),w.current&&(clearInterval(w.current),w.current=null)},B=()=>{const f=k(D);f>=Date.now()&&(w.current=setInterval(()=>{he(),Z==null||Z(f-Date.now()),f(B(),()=>{w.current&&(clearInterval(w.current),w.current=null)}),[D]);const S=(f,Fe)=>c(f,Object.assign(Object.assign({},Fe),{format:te})),oe=f=>(0,s.Tm)(f,{title:void 0});return e.createElement(m,Object.assign({},L,{valueRender:oe,formatter:S}))};var T=e.memo(g);m.Countdown=T;var x=m},97774:function(at,X,u){"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.default=void 0;var e=Object.assign||function(m){for(var _=1;_0&&(L=k[0]),L instanceof Error)throw L;var D=new Error("Unhandled error."+(L?" ("+L.message+")":""));throw D.context=L,D}var te=x[F];if(te===void 0)return!1;if(typeof te=="function")u(te,this,k);else for(var Z=te.length,Ae=z(te,Z),g=0;g0&&L.length>T&&!L.warned){L.warned=!0;var D=new Error("Possible EventEmitter memory leak detected. "+L.length+" "+String(F)+" listeners added. Use emitter.setMaxListeners() to increase limit");D.name="MaxListenersExceededWarning",D.emitter=c,D.type=F,D.count=L.length,o(D)}return c}i.prototype.addListener=function(F,k){return R(this,F,k,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(F,k){return R(this,F,k,!0)};function H(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function j(c,F,k){var g={fired:!1,wrapFn:void 0,target:c,type:F,listener:k},T=H.bind(g);return T.listener=k,g.wrapFn=T,T}i.prototype.once=function(F,k){return P(k),this.on(F,j(this,F,k)),this},i.prototype.prependOnceListener=function(F,k){return P(k),this.prependListener(F,j(this,F,k)),this},i.prototype.removeListener=function(F,k){var g,T,x,L,D;if(P(k),T=this._events,T===void 0)return this;if(g=T[F],g===void 0)return this;if(g===k||g.listener===k)--this._eventsCount===0?this._events=Object.create(null):(delete T[F],T.removeListener&&this.emit("removeListener",F,g.listener||k));else if(typeof g!="function"){for(x=-1,L=g.length-1;L>=0;L--)if(g[L]===k||g[L].listener===k){D=g[L].listener,x=L;break}if(x<0)return this;x===0?g.shift():V(g,x),g.length===1&&(T[F]=g[0]),T.removeListener!==void 0&&this.emit("removeListener",F,D||k)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(F){var k,g,T;if(g=this._events,g===void 0)return this;if(g.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):g[F]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete g[F]),this;if(arguments.length===0){var x=Object.keys(g),L;for(T=0;T=0;T--)this.removeListener(F,k[T]);return this};function v(c,F,k){var g=c._events;if(g===void 0)return[];var T=g[F];return T===void 0?[]:typeof T=="function"?k?[T.listener||T]:[T]:k?d(T):z(T,T.length)}i.prototype.listeners=function(F){return v(this,F,!0)},i.prototype.rawListeners=function(F){return v(this,F,!1)},i.listenerCount=function(c,F){return typeof c.listenerCount=="function"?c.listenerCount(F):A.call(c,F)},i.prototype.listenerCount=A;function A(c){var F=this._events;if(F!==void 0){var k=F[c];if(typeof k=="function")return 1;if(k!==void 0)return k.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]};function z(c,F){for(var k=new Array(F),g=0;g=0||Object.prototype.hasOwnProperty.call(A,d)&&(V[d]=A[d]);return V}function R(A,z){if(!(A instanceof z))throw new TypeError("Cannot call a class as a function")}function H(A,z){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z&&(typeof z=="object"||typeof z=="function")?z:A}function j(A,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof z);A.prototype=Object.create(z&&z.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),z&&(Object.setPrototypeOf?Object.setPrototypeOf(A,z):A.__proto__=z)}var v=function(A){j(z,A);function z(V){R(this,z);var d=H(this,(z.__proto__||Object.getPrototypeOf(z)).call(this,V));return d.scrollListener=d.scrollListener.bind(d),d.eventListenerOptions=d.eventListenerOptions.bind(d),d.mousewheelListener=d.mousewheelListener.bind(d),d}return e(z,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var d=this.getParentElement(this.scrollComponent);d.scrollTop=d.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var d=!1,m={get passive(){d=!0}};try{document.addEventListener("test",null,m),document.removeEventListener("test",null,m)}catch(_){}return d}},{key:"eventListenerOptions",value:function(){var d=this.props.useCapture;return this.isPassiveSupported()&&(d={useCapture:this.props.useCapture,passive:!0}),d}},{key:"setDefaultLoader",value:function(d){this.defaultLoader=d}},{key:"detachMousewheelListener",value:function(){var d=window;this.props.useWindow===!1&&(d=this.scrollComponent.parentNode),d.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var d=window;this.props.useWindow===!1&&(d=this.getParentElement(this.scrollComponent)),d.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),d.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(d){var m=this.props.getScrollParent&&this.props.getScrollParent();return m!=null?m:d&&d.parentNode}},{key:"filterProps",value:function(d){return d}},{key:"attachScrollListener",value:function(){var d=this.getParentElement(this.scrollComponent);if(!(!this.props.hasMore||!d)){var m=window;this.props.useWindow===!1&&(m=d),m.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),m.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),m.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(d){d.deltaY===1&&!this.isPassiveSupported()&&d.preventDefault()}},{key:"scrollListener",value:function(){var d=this.scrollComponent,m=window,_=this.getParentElement(d),Y=void 0;if(this.props.useWindow){var c=document.documentElement||document.body.parentNode||document.body,F=m.pageYOffset!==void 0?m.pageYOffset:c.scrollTop;this.props.isReverse?Y=F:Y=this.calculateOffset(d,F)}else this.props.isReverse?Y=_.scrollTop:Y=d.scrollHeight-_.scrollTop-_.clientHeight;Y1&&arguments[1]!==void 0?arguments[1]:60,i=null;return function(){for(var y=this,P=arguments.length,G=new Array(P),R=0;R0){Zt(Wt),he(Wt.length),(!_t||ne>0)&&!$t&&pn();return}else if(ke{Zt(Wt.slice(0,ke+2)),he(Dn=>Dn+2)},_e>10?Math.max(500/(_e/2),20):50);return()=>clearInterval(Tn)}else _t||pn()},[Vt,_t,ne,$t,ke]),(0,wt.useMemo)(()=>wt.createElement("section",{className:`${qt.answer} fadeIn animated edu_md`},wt.createElement(de.UG,{remarkPlugins:[ae.Z,Te.Z],rehypePlugins:[pe.Z,Re.Z],components:{code(se){var Wt=se,{node:_e,inline:Tn,className:Dn,children:ve}=Wt,$e=vt(Wt,["node","inline","className","children"]);const hn=/language-(\w+)/.exec(Dn||""),wn=String(ve).trim();return Tn||!hn?wt.createElement("code",pt({className:Dn},$e),ve):wt.createElement("code",{className:qt.codeCopy,"data-text":`\`\`\`${hn?hn[1]:""} ${ve} -\`\`\``},wt.createElement(Me.CopyToClipboard,{text:wn,onCopy:()=>Ce.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},wt.createElement("button",null,"\u590D\u5236")),wt.createElement(Se.Z,pt({style:ue.Z,language:hn[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},$e),wn))},img({node:se}){var Wt;const _e=(Wt=se.properties)==null?void 0:Wt.src;return wt.createElement(ge.Z,{src:_e,width:320,"data-text":_e,onLoad:()=>$t&&setTimeout(()=>pn(),500)})}}},xe?me:`${me}__`)),[me])}},19909:function(Qe,gn,Qt){"use strict";Qt.d(gn,{Z:function(){return te}});var wt=Qt(59301),de=Qt(8591),Se=Qt(54580),Re=Qt(43418),ue=Qt(6848),Me=Qt(92832),qt=Qt(3113),Ce=Qt(71418),ge=Qt(64165),pe=Qt(14478),ae=Qt(43428),Te=Qt(38854),De=Qt(92310),kt=Qt.n(De),et=Qt(43276),nt={reasoning:"reasoning___S0mKl",btn:"btn____CIJG",content:"content___CIAh9"},gt=Qt(59301),lt=(Be,Je,Ve)=>new Promise((dn,Mn)=>{var ii=zi=>{try{Yn(Ve.next(zi))}catch($i){Mn($i)}},kn=zi=>{try{Yn(Ve.throw(zi))}catch($i){Mn($i)}},Yn=zi=>zi.done?dn(zi.value):Promise.resolve(zi.value).then(ii,kn);Yn((Ve=Ve.apply(Be,Je)).next())}),vt=({value:Be="",streamingStatus:Je,onFinish:Ve,cancelIndex:dn,time:Mn,loading:ii,loadAll:kn})=>{const[Yn,zi]=(0,wt.useState)(""),[$i,Do]=(0,wt.useState)(!0),so=(0,wt.useRef)(Be),Wi=(0,wt.useRef)(Je),Li=(0,wt.useRef)(0),Qi=(0,wt.useRef)(null),[mr,vo]=(0,wt.useState)(!1),qn=70;(0,wt.useEffect)(()=>{Wi.current=Je},[Je]),(0,wt.useEffect)(()=>{so.current=Be},[Be]),(0,wt.useEffect)(()=>{if(!Je){zi(so.current);return}return vo(!0),Qi.current=setInterval(En,qn),()=>{clearInterval(Qi.current)}},[]),(0,wt.useEffect)(()=>{mr&&(zi(so.current),clearInterval(Qi.current),vo(!1),Ve())},[dn]);const En=()=>lt(void 0,null,function*(){const Pt=so.current[Li.current];Pt!==void 0?(zi(Xo=>Xo+Pt),Li.current++,clearInterval(Qi.current),Qi.current=setInterval(En,280/(so.current.length-Li.current))):Wi.current===!1&&(zi(so.current),clearInterval(Qi.current),vo(!1),Ve())});return gt.createElement("div",{className:`${nt.reasoning} fadeIn animated`},gt.createElement("div",{className:nt.btn,onClick:()=>Do(!$i)},gt.createElement("i",{className:"iconfont icon-shendusikao"}),Mn?gt.createElement("span",null,"\u5DF2\u6DF1\u5EA6\u601D\u8003\uFF08\u7528\u65F6 ",Mn," \u79D2\uFF09"):gt.createElement("span",null,"\u601D\u8003\u4E2D..."),$i?gt.createElement("b",{className:"iconfont icon-shouqi6"}):gt.createElement("b",{className:"iconfont icon-zhankai6"})),ii&>.createElement(Ce.Z,{spinning:!0,className:"mt20"}),$i&&!ii&>.createElement("div",{className:nt.content},Yn,mr?gt.createElement("span",{className:"aiBlink"},"__"):""))},Ct={select:"select___Kt_GE",box:"box___S5_ly",text:"text___dtZDv",itemWrap:"itemWrap___xmw7x",item:"item___io6Bx",active:"active___nHRTI"},Ft=Qt(81327),Ht=Object.defineProperty,Vt=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,$t=(Be,Je,Ve)=>Je in Be?Ht(Be,Je,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Be[Je]=Ve,me=(Be,Je)=>{for(var Ve in Je||(Je={}))_t.call(Je,Ve)&&$t(Be,Ve,Je[Ve]);if(Vt)for(var Ve of Vt(Je))ne.call(Je,Ve)&&$t(Be,Ve,Je[Ve]);return Be};const Zt=Be=>React.createElement("svg",me({className:"logo1_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},Be),React.createElement("path",{d:"M1019.407 620.8 891.834 397.781 946.49 293.12a29.099 29.099 0 0 0 6.4-36.395l-70.187-126.592a30.08 30.08 0 0 0-24.576-13.653H597.519L539.194 14.507a27.35 27.35 0 0 0-20.907-14.55H380.644a29.141 29.141 0 0 0-24.618 14.55v5.546L225.806 243.03H100.923a29.184 29.184 0 0 0-25.515 13.654L3.428 384.085a32.768 32.768 0 0 0 0 29.184L132.836 638.08 74.511 740.053a32.768 32.768 0 0 0 0 29.056l66.517 116.566a29.907 29.907 0 0 0 25.515 14.506H427.15l62.848 109.227A30.08 30.08 0 0 0 512.783 1024H660.41a29.141 29.141 0 0 0 24.576-14.55l128.469-224.853h114.773a31.915 31.915 0 0 0 24.662-15.445l66.474-117.419a28.16 28.16 0 0 0 0-30.976l.043.043zm-161.28 14.592L791.61 512.469 518.287 993.963l-74.752-122.88h-273.28l65.621-119.211h139.392L101.86 272.213h143.062L380.687 30.08l68.352 119.253-70.187 122.88H925.54l-69.205 121.942 137.6 241.194H858.17z",fill:"#605BEC"}),React.createElement("path",{d:"m499.983 699.307 174.379-274.731H324.708z",fill:"#605BEC"}));var ke="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTEwMTkuNDA3IDYyMC44IDg5MS44MzQgMzk3Ljc4MSA5NDYuNDkgMjkzLjEyYTI5LjA5OSAyOS4wOTkgMCAwIDAgNi40LTM2LjM5NWwtNzAuMTg3LTEyNi41OTJhMzAuMDggMzAuMDggMCAwIDAtMjQuNTc2LTEzLjY1M0g1OTcuNTE5TDUzOS4xOTQgMTQuNTA3YTI3LjM1IDI3LjM1IDAgMCAwLTIwLjkwNy0xNC41NUgzODAuNjQ0YTI5LjE0MSAyOS4xNDEgMCAwIDAtMjQuNjE4IDE0LjU1djUuNTQ2TDIyNS44MDYgMjQzLjAzSDEwMC45MjNhMjkuMTg0IDI5LjE4NCAwIDAgMC0yNS41MTUgMTMuNjU0TDMuNDI4IDM4NC4wODVhMzIuNzY4IDMyLjc2OCAwIDAgMCAwIDI5LjE4NEwxMzIuODM2IDYzOC4wOCA3NC41MTEgNzQwLjA1M2EzMi43NjggMzIuNzY4IDAgMCAwIDAgMjkuMDU2bDY2LjUxNyAxMTYuNTY2YTI5LjkwNyAyOS45MDcgMCAwIDAgMjUuNTE1IDE0LjUwNkg0MjcuMTVsNjIuODQ4IDEwOS4yMjdBMzAuMDggMzAuMDggMCAwIDAgNTEyLjc4MyAxMDI0SDY2MC40MWEyOS4xNDEgMjkuMTQxIDAgMCAwIDI0LjU3Ni0xNC41NWwxMjguNDY5LTIyNC44NTNoMTE0Ljc3M2EzMS45MTUgMzEuOTE1IDAgMCAwIDI0LjY2Mi0xNS40NDVsNjYuNDc0LTExNy40MTlhMjguMTYgMjguMTYgMCAwIDAgMC0zMC45NzZsLjA0My4wNDN6bS0xNjEuMjggMTQuNTkyTDc5MS42MSA1MTIuNDY5IDUxOC4yODcgOTkzLjk2M2wtNzQuNzUyLTEyMi44OGgtMjczLjI4bDY1LjYyMS0xMTkuMjExaDEzOS4zOTJMMTAxLjg2IDI3Mi4yMTNoMTQzLjA2MkwzODAuNjg3IDMwLjA4bDY4LjM1MiAxMTkuMjUzLTcwLjE4NyAxMjIuODhIOTI1LjU0bC02OS4yMDUgMTIxLjk0MiAxMzcuNiAyNDEuMTk0SDg1OC4xN3oiIGZpbGw9IiM2MDVCRUMiLz48cGF0aCBkPSJtNDk5Ljk4MyA2OTkuMzA3IDE3NC4zNzktMjc0LjczMUgzMjQuNzA4eiIgZmlsbD0iIzYwNUJFQyIvPjwvc3ZnPg==",he=Object.defineProperty,xe=Object.getOwnPropertySymbols,on=Object.prototype.hasOwnProperty,un=Object.prototype.propertyIsEnumerable,pn=(Be,Je,Ve)=>Je in Be?he(Be,Je,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Be[Je]=Ve,Fn=(Be,Je)=>{for(var Ve in Je||(Je={}))on.call(Je,Ve)&&pn(Be,Ve,Je[Ve]);if(xe)for(var Ve of xe(Je))un.call(Je,Ve)&&pn(Be,Ve,Je[Ve]);return Be};const se=Be=>React.createElement("svg",Fn({className:"logo2_svg__icon",viewBox:"0 0 1417 1024",xmlns:"http://www.w3.org/2000/svg",width:276.758,height:200},Be),React.createElement("path",{d:"M1364.44 118.705c-14.178-6.695-20.322 6.065-28.593 12.525-2.914 2.048-5.277 4.726-7.64 7.246-20.717 21.268-44.899 35.21-76.643 33.556a152.576 152.576 0 0 0-120.674 45.371c-7.404-41.826-32.06-66.875-69.553-82.865-19.693-8.35-39.543-16.7-53.248-34.737-9.61-12.919-12.288-27.333-17.015-41.512-3.15-8.507-6.144-17.25-16.384-18.668-11.185-1.733-15.517 7.247-19.928 14.73a189.125 189.125 0 0 0-23.552 98.461c1.575 76.88 35.446 138.083 102.636 181.642 7.562 4.963 9.531 9.925 7.09 17.25-4.49 14.967-9.926 29.54-14.81 44.584-2.992 9.61-7.561 11.658-18.274 7.483a309.484 309.484 0 0 1-96.886-63.015c-47.813-44.426-91.057-93.342-144.935-131.702a635.825 635.825 0 0 0-38.36-25.207c-54.982-51.2 7.167-93.262 21.582-98.225 14.966-5.199 5.277-23.158-43.402-22.922-48.68.237-93.184 15.833-149.977 36.628-8.428 3.15-17.092 5.514-25.993 7.326a557.844 557.844 0 0 0-160.768-5.436c-105.157 11.264-189.204 58.92-250.96 140.367-74.2 97.832-91.687 208.975-70.261 325.002 22.449 122.25 87.434 223.468 187.47 302.631 103.582 82 222.917 122.172 359.188 114.452 82.708-4.568 174.79-15.202 278.686-99.485 26.151 12.445 53.642 17.486 99.249 21.267 35.131 3.072 69.002-1.733 95.153-6.931 40.96-8.35 38.203-44.741 23.316-51.437-120.202-53.72-93.814-31.822-117.839-49.624 61.125-69.317 153.206-141.312 189.204-374.706 2.835-18.51.472-30.168 0-45.213-.237-9.137 1.969-12.603 12.918-13.706a240.089 240.089 0 0 0 86.173-25.442c77.982-40.803 109.332-107.914 116.736-188.259 1.103-12.288-.236-24.97-13.705-31.429zM685.45 842.043C569.108 754.215 512.55 725.307 489.157 726.49c-21.82 1.26-17.96 25.206-13.155 40.802 5.042 15.439 11.58 26.073 20.717 39.621 6.301 8.9 10.791 22.213-6.302 32.295-37.494 22.213-102.794-7.561-105.787-8.98-76.012-42.929-139.421-99.564-184.241-176.994a523.894 523.894 0 0 1-72.468-239.93c-1.024-20.56 5.278-27.885 26.703-31.587a272.148 272.148 0 0 1 85.307-2.127c118.942 16.699 220.16 67.741 305.073 148.48 48.443 46.001 85.071 100.982 122.88 154.703 40.173 57.029 83.338 111.458 138.32 155.963 19.376 15.675 34.894 27.569 49.781 36.234-44.74 4.805-119.414 5.829-170.456-32.926zm55.926-344.615c0-5.357 2.757-10.398 7.326-13.47a17.723 17.723 0 0 1 22.134 2.048c3.072 2.915 4.805 7.09 4.805 11.422a16.778 16.778 0 0 1-17.25 16.541 17.33 17.33 0 0 1-12.131-4.883 15.911 15.911 0 0 1-4.884-11.658zm173.529 85.464a104.37 104.37 0 0 1-33.005 8.586 71.444 71.444 0 0 1-44.504-13.548c-15.282-12.288-26.23-19.141-30.72-40.645a89.167 89.167 0 0 1 .787-31.429c3.939-17.487-.393-28.75-13.312-38.912-10.476-8.35-23.71-10.634-38.36-10.634a32.06 32.06 0 0 1-14.179-4.175c-6.144-2.914-11.106-10.24-6.301-19.14a60.18 60.18 0 0 1 10.712-11.265c19.85-10.79 42.693-7.246 63.882.788 19.693 7.798 34.501 21.898 55.926 41.905 21.74 24.183 25.68 30.8 38.125 48.916 9.846 14.179 18.747 28.75 24.89 45.45 3.703 10.397-1.102 18.905-13.941 24.103z",fill:"#4D6BFE"}));var Wt="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDE0MTcgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjc2Ljc1OCIgaGVpZ2h0PSIyMDAiPjxwYXRoIGQ9Ik0xMzY0LjQ0IDExOC43MDVjLTE0LjE3OC02LjY5NS0yMC4zMjIgNi4wNjUtMjguNTkzIDEyLjUyNS0yLjkxNCAyLjA0OC01LjI3NyA0LjcyNi03LjY0IDcuMjQ2LTIwLjcxNyAyMS4yN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zYtOC4zNS0yMy43MS0xMC42MzQtMzguMzYtMTAuNjM0YTMyLjA2IDMyLjA2IDAgMCAxLTE0LjE3OS00LjE3NWMtNi4xNDQtMi45MTQtMTEuMTA2LTEwLjI0LTYuMzAxLTE5LjE0YTYwLjE4IDYwLjE4IDAgMCAxIDEwLjcxMi0xMS4yNjVjMTkuODUtMTAuNzkgNDIuNjkzLTcuMjQ2IDYzLjg4Mi43ODggMTkuNjkzIDcuNzk4IDM0LjUwMSAyMS44OTggNTUuOTI2IDQxLjkwNSAyMS43NCAyNC4xODMgMjUuNjggMzAuOCAzOC4xMjUgNDguOTE2IDkuODQ2IDE0LjE3OSAxOC43NDcgMjguNzUgMjQuODkgNDUuNDUgMy43MDMgMTAuMzk3LTEuMTAyIDE4LjkwNS0xMy45NDEgMjQuMTAzeiIgZmlsbD0iIzRENkJGRSIvPjwvc3ZnPg==",_e=Qt(59301),Dn=({value:Be,onChange:Je})=>{const[Ve,dn]=(0,wt.useState)(!1),Mn=[{name:"\u901A\u4E49\u5343\u95EE",key:"qwen-max",img:ke},{name:"DeepSeek R1-671B",key:"deepseek-r1",img:Wt}],ii=Mn.find(kn=>kn.key===Be);return _e.createElement("div",{className:Ct.select},_e.createElement(Ft.Z,{size:10},_e.createElement("span",{className:"c-grey-333 font16"},"\u6A21\u578B"),_e.createElement("div",{className:Ct.box,onMouseLeave:()=>dn(!1)},_e.createElement("div",{className:Ct.text,onClick:()=>dn(!0)},_e.createElement("img",{src:ii.img,width:20}),_e.createElement("span",null,ii.name),_e.createElement("b",{className:"iconfont icon-zhankai6"})),Ve&&_e.createElement("div",{className:Ct.itemWrap},_e.createElement("aside",null,Mn.map(kn=>_e.createElement("div",{key:kn.key,className:`${Ct.item} ${kn.key===Be?Ct.active:""}`,onClick:Yn=>{Yn.stopPropagation(),Je(kn.key),dn(!1)}},_e.createElement("img",{src:kn.img,width:20}),_e.createElement("span",null,kn.name))))))))},ve={loadingPic:"loadingPic___y2kKZ",loading:"loading___UEUk1",dot:"dot___TYXFV","dot-fade":"dot-fade___KWn1a",wrap:"wrap___nU3cS",chatContainer:"chatContainer___PNe3Q",footerContainer:"footerContainer___hQATV",btnWrp:"btnWrp___mS8l6",btn:"btn___3za5U",btnActive:"btnActive____jzfb",inputContainer:"inputContainer___iCQ3u",uploadBtn:"uploadBtn___OHHJF",sendBtn:"sendBtn___ktaQl",sendBtnDisabled:"sendBtnDisabled___DVncF",cancelBtn:"cancelBtn___bzMDI",lineFour:"lineFour___Lhbz5",fullIcon:"fullIcon___YWXTV",footerContainerSelected:"footerContainerSelected___pGBh3",full:"full___dZLXo",li:"li___PjMV3",avatarIcon:"avatarIcon___ztGQ3",img:"img___wZqEA",content:"content___OlYYG",borderBox:"borderBox___tjHwt",text:"text___yWTCV",fileWrap:"fileWrap___IX778",file:"file___fxAKb",fileName:"fileName___RA8nu",source:"source___nkLC0",action:"action___I2zGy",disabledInput:"disabledInput___Buork",backBottom:"backBottom___SMuL2",head:"head___v8Eom",headBtn:"headBtn___IS7xR",menuWarp:"menuWarp___G6yj0",menu:"menu___M8VWP",menuText:"menuText___gRpb5",menuDel:"menuDel___eH_wg",active:"active___KWwPV"},$e=Qt(99064),hn=Qt(955),wn={draggableImage:"draggableImage___vcTso",img:"img___xAyno",close:"close___WUtfj"},bn=({src:Be,onClick:Je,topPercentage:Ve=.62,draggableExtraNode:dn})=>{const Mn=(0,wt.useRef)(null),ii=(0,wt.useRef)(!1),kn=(0,wt.useRef)(!1),[Yn,zi]=(0,wt.useState)(window.innerHeight*Ve),[$i,Do]=(0,wt.useState)(!1),so=10;return(0,wt.useEffect)(()=>{if(Mn.current){let Wi=function(qn){var En;ii.current=!0,vo=qn.pageY,mr=qn.pageY-(((En=Mn.current)==null?void 0:En.getBoundingClientRect().top)||0),(0,hn.kk)("none"),document.onselectstart=function(){return!1}},Li=function(){ii.current&&!kn.current&&Je&&Je(),ii.current=!1,kn.current=!1,(0,hn.kk)("auto"),document.onselectstart=null},Qi=function(qn){var En;if(ii.current){const Xo=qn.pageY-mr,Mi=window.innerHeight-(((En=Mn.current)==null?void 0:En.offsetHeight)||0)-50,wr=50;if(!kn.current&&Math.abs(vo-qn.pageY)>so&&(kn.current=!0),kn.current){let Es=Math.max(wr,Math.min(Xo,Mi));zi(Es)}}},mr=0,vo=0;return Mn.current.addEventListener("mousedown",Wi),document.addEventListener("mousemove",Qi),document.addEventListener("mouseup",Li),()=>{var qn,En;(En=(qn=Mn==null?void 0:Mn.current)==null?void 0:qn.removeEventListener)==null||En.call(qn,"mousedown",Wi),document.removeEventListener("mousemove",Qi),document.removeEventListener("mouseup",Li)}}},[Je]),(0,wt.useEffect)(()=>{const Wi=()=>{zi(window.innerHeight*Ve)};return window.addEventListener("resize",Wi),()=>{window.removeEventListener("resize",Wi)}},[Ve]),wt.createElement("div",{className:wn.draggableImage,style:{top:`${Yn}px`,display:$i?"none":"block",cursor:ii.current?"grabbing":"grab"},ref:Mn},dn,wt.createElement("img",{className:wn.img,src:Be,width:60,draggable:"false"}),wt.createElement("i",{className:`iconfont icon-tupianguanbi ${wn.close}`,onMouseUp:Wi=>{Wi.stopPropagation(),Do(!0)}}))},re="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAIABJREFUeF6VnQmAnGV9/z/vMffeV3azuRMCSUgCSQggiCBFEE9UvFpqW6utFopa71bx6GHRWq31xKtSFS0eqICV+wwSIJKQkDvZJJvsObOzO/d7PH9/z/O+s5sY2/4XhpmdnXln3u/7/f1+39/xPFj8H39Wr742GRaOXaYs65WWnVhtuc58y7Lmh4oWZYFv2fpIgdxZFtg2oZMgdByU7eA7Npbt6L958rttUXMsQtsCyyawLEI5gC0HMMcCpf8193ILIVT6ZoUhlgqxw5BEoLAD87ulAuxQkZC/h4ogDHBCX79eXivHsfShQizkOJQsFR63FMdVGO6yHfWz1s4FD+za9V+N/ws01v/2otVLzuv36tZHwfpDlN1m2w6W62LLiVpyLhahpQixNRiB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vaU5evk/JyLHddlysaVrOmoZqDAJUlORy/eXHU1FaSCg3gkhFWT3bZM7y1azt3ki/gjJC0RysYIa059LeGaeqJJ94Ii6H9Kv8NNcovk+uKXvqF8un/N/+CcBu5N24Yb8H9pfF6XOW1M+bUtNYP6yoIGRccPphjBrZT7dBcosjtC2PsnRBnNUNDdiik5I+BeREQnpsMZm2VQt7vcR+PRoJPC1mtc2/mZv///ojj90punz2WfN/nntvQHFezmRXpPcdP3bIqIL8whGWF6xc+04oL7kqQ2Pfpu5omAZThNY6GWuV4waWOp6xcGg0UDPtuWn/lj/j+X+Lbso4jJUfOwAAAABJRU5ErkJggg==",ni=Qt(3294),qe=Qt(56102),vi=Qt(24544),So=Qt(58617),yi=Qt(32050),gi=Object.defineProperty,fi=Object.defineProperties,an=Object.getOwnPropertyDescriptors,Wn=Object.getOwnPropertySymbols,Pn=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable,Et=(Be,Je,Ve)=>Je in Be?gi(Be,Je,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Be[Je]=Ve,St=(Be,Je)=>{for(var Ve in Je||(Je={}))Pn.call(Je,Ve)&&Et(Be,Ve,Je[Ve]);if(Wn)for(var Ve of Wn(Je))Ot.call(Je,Ve)&&Et(Be,Ve,Je[Ve]);return Be},Nt=(Be,Je)=>fi(Be,an(Je)),Ut=(Be,Je,Ve)=>new Promise((dn,Mn)=>{var ii=zi=>{try{Yn(Ve.next(zi))}catch($i){Mn($i)}},kn=zi=>{try{Yn(Ve.throw(zi))}catch($i){Mn($i)}},Yn=zi=>zi.done?dn(zi.value):Promise.resolve(zi.value).then(ii,kn);Yn((Ve=Ve.apply(Be,Je)).next())}),te=({title:Be="\u5934\u6B4CAI",placeholder:Je,hideUpload:Ve,hideInputBox:dn,aiIcon:Mn=re,userIcon:ii=An,dragIcon:kn=mi,children:Yn,fetchUrl:zi,fetchData:$i={},extraAnswerAction:Do,showDefaultTips:so=!0,onOpen:Wi,onClose:Li,loadingOption:Qi,showPreference:mr=!1,initMessage:vo,customRequest:qn,visible:En,width:Pt=1200,isCheckRestrictNumber:Xo=!1,headNode:Mi,headFunctionNode:wr,showRedraw:Es,showEdit:Zr,promptPropName:Oa="prompt",topPercentage:bo,showSwitchingModel:oa=!1,showImageGenerator:je=!1,showLookHistory:Ae=!1,fetchListObject:fe,customPreference:In,customDataNode:ci,showAddSession:li,historyId:Ke,draggableExtraNode:Sn,drawerExtraNode:Yi,menuExtraFunctionNode:ao,showSceneAwareness:po=!1})=>{var ee,mn;const[Zn,yo]=(0,wt.useState)(!1),[Pe,Ze]=(0,wt.useState)("qwen-max"),[Ai,Zi]=(0,wt.useState)([]),[to,Jn]=(0,wt.useState)([]),[ei,Gn]=(0,wt.useState)(!1),[_n,Bi]=(0,wt.useState)(!1),[Ui,Oe]=(0,wt.useState)(!1),[io,Ji]=(0,wt.useState)([]),[Ii,Ee]=(0,wt.useState)(""),[fn,jn]=(0,wt.useState)(0),[Vn,Qn]=(0,wt.useState)(void 0),[Ci,oo]=(0,wt.useState)(!1),[Xi,Vi]=(0,wt.useState)(null),[mo,He]=(0,wt.useState)(""),qi=(0,wt.useRef)(),ze=(0,wt.useRef)(null),eo=(0,wt.useRef)(null),[Or,Zo]=(0,wt.useState)(!1),[Jr,Jo]=(0,wt.useState)(!1),[Oi,Bo]=(0,wt.useState)(!1),[Sa,dr]=(0,wt.useState)(!1),[xn,jt]=(0,wt.useState)(0),Dr=(0,wt.useRef)(null),qr=(0,wt.useRef)(!1),kl=(0,wt.useRef)(null),[xa,Il]=(0,wt.useState)(void 0),[xu,td]=(0,wt.useState)(!0),[ed,Lo]=(0,wt.useState)(Pt-28),[qo,ra]=(0,wt.useState)(!1),[hi,Un]=(0,wt.useState)(!0),[We,$n]=(0,wt.useState)([]),ji=(0,wt.useRef)([]),Oo=(0,wt.useRef)(null),_o=(0,wt.useRef)(null),Wo=(0,wt.useRef)(!1),vr=ed-22,$o=Ii==null?void 0:Ii.split(` -`).length,{onAdd:Pa,onGetList:Os,onListClick:Fl,onListDelete:ce,onListDealData:Bs}=fe||{},Pu=50,ja=10,wu={maxCount:Pu,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:Ai,multiple:!0,accept:".doc,.docx,.md,.txt,.pdf,.xlsx,.xls",beforeUpload:Ge=>Ut(void 0,null,function*(){var ri,wi,Di,uo;const Fi=(uo=(Di=(wi=(ri=Ge==null?void 0:Ge.name)==null?void 0:ri.split("."))==null?void 0:wi.slice(-1))==null?void 0:Di[0])==null?void 0:uo.toLowerCase(),jo=["doc","docx","md","pdf","txt","xlsx","xls"].includes(Fi);return Ge.size==0?(de.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),Se.default.LIST_IGNORE):jo?Ge.size/1024/1024>100?(de.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u5236100MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Se.default.LIST_IGNORE):!0:(de.ZP.warning("\u76EE\u524D\u652F\u6301txt\u3001md\u3001doc\u3001docx\u3001pdf\u3001xlsx\u3001xls\u6587\u4EF6"),Se.default.LIST_IGNORE)}),onChange:({fileList:Ge})=>{Zi(Ge)},action:`${(ee=ni.Z)==null?void 0:ee.API_SERVER}/api/intelligent_imports/upload_file.json`},tr={maxCount:ja,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:to,multiple:!0,accept:".jpg,.png,",beforeUpload:Ge=>{var ri,wi,Di,uo;const Fi=(uo=(Di=(wi=(ri=Ge==null?void 0:Ge.name)==null?void 0:ri.split("."))==null?void 0:wi.slice(-1))==null?void 0:Di[0])==null?void 0:uo.toLowerCase(),jo=["jpg","png"].includes(Fi);return Ge.size==0?(de.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),Se.default.LIST_IGNORE):jo?Ge.size/1024/1024>10?(de.ZP.warning("\u4E0A\u4F20\u7684\u56FE\u7247\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Se.default.LIST_IGNORE):!0:(de.ZP.warning("\u76EE\u524D\u652F\u6301jpg\u3001png"),Se.default.LIST_IGNORE)},onChange:({fileList:Ge})=>{Jn(Ge)},action:`${(mn=ni.Z)==null?void 0:mn.API_SERVER}/api/ai/generals/update_file.json`};(0,wt.useEffect)(()=>{if(!io.length||!qi.current)return;const Ge=io[io.length-1];Ge!=null&&Ge.loading&&(qi.current.scrollTop=qi.current.scrollHeight)},[io.length]),(0,wt.useEffect)(()=>{if(!qi.current||!Dr.current)return;const Ge=new IntersectionObserver(([ri])=>{td(ri.isIntersecting)},{root:qi.current,rootMargin:"70px",threshold:0});return Ge.observe(Dr.current),()=>{Dr.current&&Ge.unobserve(Dr.current)}},[qi.current,Dr.current]),(0,wt.useEffect)(()=>{if(!Or)return;const Ge=qi.current,ri=kl.current;qr.current=!1;let wi=Ge.scrollTop;const Di=()=>{const{scrollTop:Fi,scrollHeight:zo,clientHeight:jo}=Ge;Fi>wi?Fi+jo>=zo-50&&(Ge.scrollTop=Ge.scrollHeight,qr.current=!1):Fi{qr.current||(Ge.scrollTop=Ge.scrollHeight)});return uo.observe(ri),()=>{var Fi;uo.unobserve(ri),(Fi=Ge==null?void 0:Ge.removeEventListener)==null||Fi.call(Ge,"scroll",Di)}},[Or]),(0,wt.useEffect)(()=>{!Or&&ji.current.length&&(Ji([...io,...ji.current]),ji.current=[])},[Or]),(0,wt.useEffect)(()=>{if(!qi.current)return;const Ge=new ResizeObserver(()=>{Lo(qi.current.offsetWidth)});return Ge.observe(qi.current),()=>{qi.current&&Ge.unobserve(qi.current)}},[qi.current]),(0,wt.useEffect)(()=>{typeof En=="boolean"&&yo(En)},[En]),(0,wt.useEffect)(()=>{var Ge;if(ze.current&&Xi!==null){ze.current.focus();const ri=(Ge=ze.current.resizableTextArea)==null?void 0:Ge.textArea;ri&&(ri.selectionStart=ri.selectionEnd=ri.value.length)}},[Xi]),(0,wt.useEffect)(()=>{$o<5&&oo(!1)},[$o]),(0,wt.useEffect)(()=>{Zn&&vo&&(Ji(_a(vo)),Gn(!0),Rn(vo,{history:[]})),Zn&&(_r(),Ke?Nl(Ke):li&&!xa&&Ys()),Zn||$a()},[Zn]);const _a=(Ge="",ri=[],wi=[])=>{const Di=Date.now();return[{text:Ge,key:Di,sender:"user",fileList:ri,imageList:wi,show:!0},{loading:!0,key:Di,sender:"AI",show:!0,model:Pe,imageGenerator:Oi,thinkingEnabled:Jr}]},$a=()=>{He(""),Vi(null),Zi([]),Jn([]),Ee("")},Co=()=>{if(Wi){Wi({chatData:io,setChatData:Ji,setLoading:Gn,getData:Rn,renderChatItems:_a,handleAdd:Ys,identifier:xa});return}yo(!0)},Lr=()=>{if(Un(!0),Li){Li();return}yo(!1)},Cu=()=>{oo(!Ci)},_r=()=>Ut(void 0,null,function*(){if(!Xo)return;const Ge=yield(0,$e.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});(Ge==null?void 0:Ge.status)===0&&(Ge==null?void 0:Ge.total_number)!==-1&&(jn((Ge==null?void 0:Ge.total_number)-(Ge==null?void 0:Ge.remaining_number)),Qn(Ge==null?void 0:Ge.total_number))}),hh=()=>{Re.default.info({title:"\u63D0\u793A",icon:null,okText:"\u6211\u77E5\u9053\u4E86",width:510,centered:!0,content:wt.createElement("div",null,wt.createElement("div",{style:{color:"#FA6400"}},"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),wt.createElement("div",{className:"c-grey-333 mt5"},"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F\u7528",Vn,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))})},sa=Ge=>Ge.reduce((wi,Di)=>{if(Di.sender==="user"){const uo=Ge.find(Fi=>Fi.key===Di.key&&Fi.sender==="AI");uo&&(uo!=null&&uo.text)&&!(uo!=null&&uo.error)&&wi.push({question:Di.text,answer:uo.text})}return wi},[]),Rn=(...Ge)=>Ut(void 0,[...Ge],function*(ri="",wi={},Di=io){if(qn&&(yield qn({mes:ri,setChatData:Ji,fileList:Ai,body:wi,checkNum:_r,setLoading:Gn,bodyChatData:Di,setTyping:Zo,setImageGenerator:Bo,renderChatItems:_a})),!qn){const uo=Ai==null?void 0:Ai.map(Cr=>{var Ms;return(Ms=Cr==null?void 0:Cr.response)==null?void 0:Ms.file_id}),Fi=to==null?void 0:to.map(Cr=>{var Ms;return(Ms=Cr==null?void 0:Cr.response)==null?void 0:Ms.data}),zo=wi.history||sa(Di),jo=St(St({identifier:xa,response_mode:"streaming",model:Pe,scene_awareness:Sa,thinking_enabled:Jr,image_generator:Oi,file_ids:uo,image_list:Fi,history:zo,[Oa]:ri},$i),wi),ts=Object.fromEntries(Object.entries(jo).filter(([Cr,Ms])=>Ms!==void 0));eo.current=new vi.Z(ni.Z.API_SERVER+zi,ts),yield new Promise((Cr,Ms)=>{let ar=null,id=null;eo.current.on("data",gh=>{Zo(!0);const{chunk:{content:ml,type:el,created:jr,msg:vs}}=gh,Mr=vs==="error";el==="thinking"&&(ar=ar||jr,Ji(Er=>[...Er].map((nl,$l)=>$l===Er.length-1?Nt(St({},nl),{reasoning:(nl.reasoning||"")+ml,loading:!1,hideAnswer:!0,error:Mr}):nl))),el==="text"&&(id=id||jr,Ji(Er=>[...Er].map((nl,$l)=>$l===Er.length-1?Nt(St({},nl),{text:(nl.text||"")+ml,loading:!1,startTime:ar,endTime:id,error:Mr}):nl)))}),eo.current.on("done",()=>{Cr()}),eo.current.on("error",()=>{const gh="\u62B1\u6B49\uFF0C\u6211\u521A\u521A\u9047\u5230\u4E86\u4E00\u70B9\u95EE\u9898\uFF0C\u6CA1\u80FD\u5B8C\u6210\u60A8\u7684\u8BF7\u6C42\u3002\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\u4E00\u6B21\uFF0C\u6216\u8005\u8054\u7CFB\u6280\u672F\u652F\u6301\u5E2E\u5FD9\u89E3\u51B3!";Ji(ml=>[...ml].map((el,jr)=>jr===ml.length-1?Nt(St({},el),{text:gh,loading:!1,error:!0}):el)),Cr()}),eo.current.on("cancelled",()=>{Cr()}),eo.current.startStream()})}_r(),Gn(!1)}),Dg=Ge=>{Ee(Ge.target.value)},nd=(Ge,ri)=>{if($a(),Gn(!0),Ge==="edit"){ji.current=io.slice(ri+2);const wi=io.splice(ri),{fileList:Di,imageList:uo}=(wi==null?void 0:wi[0])||{},Fi=Di.map(ts=>{var Cr;return(Cr=ts.response)==null?void 0:Cr.file_id}),zo=uo.map(ts=>{var Cr;return(Cr=ts.response)==null?void 0:Cr.data}),jo={history:sa(io),file_ids:Fi,image_list:zo,edit:!0};Ji([...io,..._a(mo,Di,uo)]),Rn(mo,jo,io)}if(Ge==="redraw"){ji.current=io.slice(ri+1);const wi=io.splice(ri-1),{text:Di,fileList:uo,imageList:Fi}=(wi==null?void 0:wi[0])||{},zo=uo.map(Cr=>{var Ms;return(Ms=Cr.response)==null?void 0:Ms.file_id}),jo=Fi.map(Cr=>{var Ms;return(Ms=Cr.response)==null?void 0:Ms.data}),ts={history:sa(io),file_ids:zo,image_list:jo,edit:!0};Ji([...io,..._a(Di,uo,Fi)]),Rn(Di,ts,io)}},Ra=()=>{if(Ii.trim()!==""){$a(),Gn(!0);const Ge=Ai.filter(wi=>wi.status==="done"),ri=to.filter(wi=>wi.status==="done");Ji([...io,..._a(Ii,Ge,ri)]),Rn(Ii)}},Qd=Ge=>{if(Ge.shiftKey){if(Ge.key==="Enter")return}else if(Ge.key==="Enter"){if(Ge.preventDefault(),cl||Wo.current)return;Ra()}},Hd=(Ge,ri)=>{let wi=!1;Zr===!0?wi=!0:Zr==="last"&&(wi=io.reduce((zo,jo,ts)=>jo.sender==="user"?ts:zo,-1)===ri);const Di=ri===Xi,uo=[...(Ge==null?void 0:Ge.fileList)||[],...(Ge==null?void 0:Ge.imageList)||[]];return wt.createElement("div",{className:ve.li,style:{width:vr}},wt.createElement("div",{className:ve.avatarIcon},wt.createElement("img",{className:ve.img,src:ii})),wt.createElement("div",{className:ve.content},!!(uo!=null&&uo.length)&&wt.createElement("div",{className:ve.fileWrap},uo==null?void 0:uo.map((Fi,zo)=>{var jo,ts;return wt.createElement("div",{key:zo,className:ve.file},wt.createElement("img",{src:Qt(90034)(`./${((ts=(jo=Fi==null?void 0:Fi.name)==null?void 0:jo.split("."))==null?void 0:ts.pop())||"txt"}.png`),width:20,className:"mr10"}),wt.createElement("aside",null,wt.createElement(ue.Z,{title:Fi==null?void 0:Fi.name},wt.createElement("div",{className:ve.fileName},Fi==null?void 0:Fi.name)),wt.createElement("div",{className:"c-grey-999 font12"},(0,hn.RD)(Fi==null?void 0:Fi.size))))})),wt.createElement("div",{className:ve.borderBox},Di?wt.createElement(Me.default.TextArea,{value:mo,ref:ze,autoSize:!0,placeholder:"\u8BF7\u8F93\u5165",bordered:!1,onChange:Fi=>He(Fi.target.value)}):wt.createElement("div",{className:ve.text},Ge==null?void 0:Ge.text)),Di?wt.createElement("div",{className:ve.action},wt.createElement(qt.ZP,{onClick:()=>{He(""),Vi(null)},size:"small"},"\u53D6\u6D88"),wt.createElement(qt.ZP,{disabled:!mo.trim(),onClick:()=>nd("edit",ri),type:"primary",size:"small"},"\u786E\u8BA4")):wt.createElement("div",{className:ve.action},wt.createElement(qe.CopyToClipboard,{text:(Ge==null?void 0:Ge.text)||"",onCopy:()=>de.ZP.success("\u590D\u5236\u6210\u529F")},wt.createElement(ue.Z,{title:"\u590D\u5236"},wt.createElement("i",{className:"iconfont icon-fuzhi8 font13"}))),wi&&!ei&&wt.createElement(ue.Z,{title:"\u7F16\u8F91"},wt.createElement("i",{onClick:()=>{Vi(ri),He((Ge==null?void 0:Ge.text)||"")},className:"iconfont icon-bianji10 font14"})))))},cn=(Ge,ri)=>{let wi=!1;Es===!0?wi=!0:Es==="last"&&(wi=io.reduce((Fi,zo,jo)=>zo.sender==="AI"?jo:Fi,-1)===ri);let Di="";return Ge!=null&&Ge.source?Di=Ge==null?void 0:Ge.source:(Ge==null?void 0:Ge.model)==="deepseek-r1"?Di="\u7531deepseek\u751F\u6210":(Ge==null?void 0:Ge.model)==="qwen-max"&&(Di="\u7531\u901A\u4E49\u5343\u95EE\u751F\u6210"),wt.createElement("div",{className:ve.li,style:{width:vr}},wt.createElement("div",{className:ve.avatarIcon},wt.createElement("img",{className:ve.img,src:Mn})),wt.createElement("div",{className:ve.content},wt.createElement("div",{className:ve.borderBox},Ge.loading&&wt.createElement(wt.Fragment,null,Ge!=null&&Ge.imageGenerator?wt.createElement("div",{className:ve.loadingPic},"\u6B63\u5728\u751F\u6210\u4E2D",wt.createElement("div",{className:"ai-loading"})):!(Ge!=null&&Ge.thinkingEnabled)&&wt.createElement("div",null,wt.createElement("div",{className:ve.loading},wt.createElement("div",{className:ve.dot}),wt.createElement("div",{className:ve.dot}),wt.createElement("div",{className:ve.dot})),wt.createElement("div",{style:{marginTop:10,color:"#9096A3"}},(Qi==null?void 0:Qi.text)||"\u8BF7\u8010\u5FC3\u7B49\u5F85\uFF0C\u76EE\u524D\u9AD8\u5CF0\u671F\u4F53\u9A8C\u4EBA\u6570\u8FC7\u591A\uFF0C\u6211\u4EEC\u5DF2\u8BB0\u5F55\u4E0B\u60A8\u7684\u9700\u6C42\uFF0C\u7A0D\u540E\u5C06\u81EA\u52A8\u4E3A\u60A8\u751F\u6210\u7B54\u6848\u3002"))),(Ge==null?void 0:Ge.thinkingEnabled)&&wt.createElement(vt,{time:Ge==null?void 0:Ge.time,cancelIndex:xn,loading:Ge.loading,streamingStatus:!(Ge!=null&&Ge.text),onFinish:()=>{jt(0),Ji(uo=>[...uo].map((Fi,zo)=>zo===uo.length-1?Nt(St({},Fi),{hideAnswer:!1,time:Fi.startTime?Fi.endTime-Fi.startTime:null}):Fi))},value:Ge==null?void 0:Ge.reasoning}),!!(Ge!=null&&Ge.text)&&!Ge.hideAnswer&&wt.createElement(et.Z,{cancelIndex:xn,streamingStatus:ei,loadImage:!!(Ge!=null&&Ge.imageGenerator),onFinish:()=>Ut(void 0,null,function*(){jt(0),setTimeout(()=>Zo(!1),0)}),value:Ge==null?void 0:Ge.text})),!!(Ge!=null&&Ge.text)&&Di&&wt.createElement("div",{className:ve.source},Di),wt.createElement("div",{className:ve.action},Do==null?void 0:Do(Ge,ri,{onMenuClick:Nl}),wt.createElement(qe.CopyToClipboard,{text:String((Ge==null?void 0:Ge.text)||""),onCopy:()=>de.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},wt.createElement(ue.Z,{title:"\u590D\u5236"},wt.createElement("i",{className:"iconfot icon-fuzhi8 font13"}))),mr&&!ei&&wt.createElement(wt.Fragment,null,wt.createElement(ue.Z,{title:"\u559C\u6B22"},wt.createElement("i",{style:Ge!=null&&Ge.like?{color:"#FA8D30"}:{},onClick:()=>er("like",!(Ge!=null&&Ge.like),ri),className:"iconfot icon-yijiejue font15"})),wt.createElement(ue.Z,{title:"\u4E0D\u559C\u6B22"},wt.createElement("i",{style:Ge!=null&&Ge.dislike?{color:"#e86d7c"}:{},onClick:()=>er("dislike",!(Ge!=null&&Ge.dislike),ri),className:"iconfot icon-weijiejuezhengchang font15"}))),wi&&!ei&&wt.createElement(ue.Z,{title:"\u91CD\u65B0\u751F\u6210"},wt.createElement("i",{onClick:()=>nd("redraw",ri),className:"iconfot icon-gengxin-genghuan-tihuan"})))))},er=(Ge,ri,wi)=>Ut(void 0,null,function*(){if(In){const Di=io.slice(0,wi+1),Fi=sa(Di).length;yield In({type:Ge,value:ri,index:wi,identifier:xa,objectIndex:Fi})}Ji(Di=>(Di[wi][Ge]=ri,ri&&(Di[wi][Ge==="like"?"dislike":"like"]=!1),[...Di]))}),yr=()=>{var Ge,ri;jt(1),(ri=(Ge=eo.current)==null?void 0:Ge.cancelRequest)==null||ri.call(Ge),Gn(!1),Zo(!1)},Ys=()=>Ut(void 0,null,function*(){var Ge,ri,wi;(ri=(Ge=eo.current)==null?void 0:Ge.cancelRequest)==null||ri.call(Ge),$a(),Ji([]),Gn(!0);const Di=yield Pa();(Di==null?void 0:Di.status)===0&&Il((wi=Di==null?void 0:Di.data)==null?void 0:wi.identifier),Gn(!1),Zo(!1)}),_l=()=>Ut(void 0,null,function*(){var Ge;Oe(!0);const ri=yield Os();(ri==null?void 0:ri.status)===0&&$n(((Ge=ri==null?void 0:ri.data)==null?void 0:Ge.list)||[]),Oe(!1)}),Nl=(...Ge)=>Ut(void 0,[...Ge],function*(ri=xa){var wi,Di,uo,Fi;(Di=(wi=eo.current)==null?void 0:wi.cancelRequest)==null||Di.call(wi),$a(),Bi(!0);const zo=yield Fl(ri);if(zo.status===0){const jo=Bs(((uo=zo==null?void 0:zo.data)==null?void 0:uo.messages)||[]);Ji(jo),Bi(!1),Il((Fi=zo==null?void 0:zo.data)==null?void 0:Fi.identifier);return}Ji([]),Bi(!1)}),pi=(Ge,ri)=>Ut(void 0,null,function*(){(yield ce(Ge)).status===0&&(de.ZP.success("\u5220\u9664\u6210\u529F"),ri===xa&&Ys(),_l())}),dh=()=>wt.createElement("div",{className:ve.menuWarp},wt.createElement("h4",null,"\u5386\u53F2\u5BF9\u8BDD"),wt.createElement(Ce.Z,{spinning:Ui},!We.length&&wt.createElement(ge.Z,{style:{width:250,paddingBottom:30},image:ge.Z.PRESENTED_IMAGE_SIMPLE}),!!We.length&&wt.createElement("div",{className:ve.menu},We.map(function(Ge,ri){return wt.createElement("aside",{className:kt()(xa===Ge.identifier&&ve.active),key:Ge.id,onClick:()=>Nl(Ge.id)},wt.createElement("div",{className:ve.menuText},wt.createElement(ue.Z,{title:Ge==null?void 0:Ge.question},wt.createElement("span",null,Ge==null?void 0:Ge.question)),ao&&ao(Ge)),wt.createElement("div",{className:ve.menuDel,onClick:wi=>wi.stopPropagation()},wt.createElement(pe.Z,{title:"\u63D0\u793A",description:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u672C\u6761\u5BF9\u8BDD\u5417\uFF1F",onConfirm:()=>pi(Ge.id,Ge.identifier),okText:"\u786E\u8BA4",zIndex:1100,cancelText:"\u53D6\u6D88"},wt.createElement("i",{className:"iconfont icon-shanchu14 delete-hover font14"}))))})))),tl=Ge=>{if(Ge==="file"){if(to.length){Re.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4\u8986\u76D6",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5DF2\u5B58\u5728\u56FE\u7247\uFF0C\u4E0A\u4F20\u6587\u4EF6\u540E\u56FE\u7247\u5C06\u4F1A\u88AB\u8986\u76D6?",onOk:()=>{Jn([]),Oo.current.upload.uploader.fileInput.click()}});return}Oo.current.upload.uploader.fileInput.click()}if(Ge==="image"){if(Ai.length){Re.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4\u8986\u76D6",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5DF2\u5B58\u5728\u6587\u4EF6\uFF0C\u4E0A\u4F20\u56FE\u7247\u540E\u6587\u4EF6\u5C06\u4F1A\u88AB\u8986\u76D6?",onOk:()=>{Zi([]),_o.current.upload.uploader.fileInput.click()}});return}_o.current.upload.uploader.fileInput.click()}},js=[{key:"file",disabled:Ai.length>=Pu,label:wt.createElement(ue.Z,{placement:"right",title:wt.createElement("div",null,wt.createElement("b",null,"\u4E0A\u4F20\u9644\u4EF6\uFF08\u4EC5\u8BC6\u522B\u6587\u5B57\uFF09"),wt.createElement("div",null,"\u6700\u591A 50 \u4E2A\uFF0C\u6BCF\u4E2A 100 MB\uFF0C\u652F\u6301\u5404\u7C7B\u578B\u6587\u6863"))},wt.createElement("span",null,wt.createElement("i",{className:"iconfont icon-fujian3 font14 mr5"}),"\u4E0A\u4F20\u6587\u6863"))},Pe!=="deepseek-r1"&&{key:"image",disabled:to.length>=ja,label:wt.createElement(ue.Z,{placement:"right",title:"\u652F\u6301\u4E0D\u8D85\u8FC710M\u7684PNG/JPG\u56FE\u7247\uFF0C\u6700\u591A10\u4E2A"},wt.createElement("span",null,wt.createElement("i",{className:"iconfont icon-tupianshangchuan font14 mr5"}),"\u4E0A\u4F20\u56FE\u7247"))}].filter(Boolean),$r=[...Ai,...to],cl=$r.some(Ge=>Ge.status==="uploading")||ei||Or,pl=fn>=Vn,Ls=Ve||Ai.length>=Pu||to.length>=ja,wa=Oi||Jr||Sa||!!$r.length;return console.log($r,"fileAndImageList"),wt.createElement("div",null,Yn?wt.createElement("div",{onClick:Co},Yn):wt.createElement(bn,{draggableExtraNode:Sn,src:kn,onClick:Co,topPercentage:bo}),wt.createElement(ae.Z,{open:Zn,width:qo?"100%":Pt,afterOpenChange:Ge=>{Ge&&Un(!1)},push:!1,contentWrapperStyle:hi?{}:{transition:"none"},extra:wt.createElement("div",{className:ve.head},Yi,oa&&wt.createElement(Dn,{value:Pe,onChange:Ge=>{Jo(!1),Bo(!1),Ze(Ge),Jn([]),Zi([])}}),Ae&&wt.createElement(wt.Fragment,null,wt.createElement(Te.Z,{dropdownRender:dh,onOpenChange:Ge=>{Ge&&_l()},placement:"bottomLeft",arrow:!0},wt.createElement("div",{className:ve.headBtn},wt.createElement("i",{className:"icon-lishiduihua1 font14 mr10"}),"\u5386\u53F2\u5BF9\u8BDD"))),li&&wt.createElement(wt.Fragment,null,wt.createElement("div",{className:ve.headBtn,onClick:Ys},wt.createElement("i",{className:"icon-xinjianduihua font14 mr10"}),"\u65B0\u5EFA\u5BF9\u8BDD")),wt.createElement(ue.Z,{title:qo?"\u9000\u51FA\u5168\u5C4F":"\u5168\u5C4F"},wt.createElement("div",{className:ve.headBtn,style:{padding:"0 12px"},onClick:()=>ra(!qo)},qo&&wt.createElement("i",{className:"iconfont icon-tuichuquanping3"}),!qo&&wt.createElement("i",{className:"iconfont icon-quanping4"})))),title:wt.createElement("span",{className:"c-grey-333 font16"},Be),onClose:Lr,bodyStyle:{paddingRight:4}},wt.createElement("div",{className:kt()(ve.wrap,Zn&&"body-overflow-hidden")},wt.createElement("div",{ref:qi,className:ve.chatContainer},so&&wt.createElement("div",{className:`${ve.li} mb20`,style:{width:vr}},wt.createElement("div",{className:ve.avatarIcon},wt.createElement("img",{className:ve.img,src:Mn})),wt.createElement("div",{className:ve.content},wt.createElement("div",{className:ve.borderBox},Mi,wr==null?void 0:wr({isDisabledNum:pl,checkNumModal:hh,checkNum:_r,onClose:Lr,setChatData:Ji,setLoading:Gn,getData:Rn,clearStatus:$a,typing:Or,setImageGenerator:Bo,renderChatItems:_a,setSceneAwareness:dr})))),wt.createElement("div",{ref:kl},wt.createElement(Ce.Z,{spinning:_n,className:"mt20"},io==null?void 0:io.map((Ge,ri)=>wt.createElement(wt.Fragment,{key:Ge.key+ri},Ge.show&&wt.createElement(wt.Fragment,null,Ge.sender==="user"&&Hd(Ge,ri),Ge.sender==="AI"&&cn(Ge,ri),ci&&!["AI","user"].includes(Ge.sender)&&ci(Ge,ri,{width:vr})))))),!xu&&wt.createElement("div",{className:ve.backBottom,onClick:()=>{qi.current.scrollTop=qi.current.scrollHeight}},wt.createElement("i",{className:"iconfont icon-huidaodibu"})),wt.createElement("div",{ref:Dr})),!dn&&wt.createElement("div",{className:kt()(ve.footerContainer,Ci&&ve.full,wa&&ve.footerContainerSelected)},wt.createElement("div",{className:ve.btnWrp},po&&wt.createElement(ue.Z,{title:"\u667A\u80FD\u611F\u77E5\u5F53\u524D\u60C5\u5883\uFF0C\u63D0\u4F9B\u9488\u5BF9\u6027\u89E3\u7B54"},wt.createElement("div",{onClick:()=>dr(!Sa),className:kt()(ve.btn,Sa&&ve.btnActive)},wt.createElement("i",{className:"iconfont icon-changjingganzhi mr10 font12"}),"\u573A\u666F\u611F\u77E5")),Pe==="deepseek-r1"&&wt.createElement(ue.Z,{title:"\u8C03\u7528\u65B0\u6A21\u578B DeepSeek-R1\uFF0C\u89E3\u51B3\u63A8\u7406\u95EE\u9898"},wt.createElement("div",{onClick:()=>Jo(!Jr),className:kt()(ve.btn,Jr&&ve.btnActive)},wt.createElement("i",{className:"iconfont icon-shendusikao mr10 font12"}),"\u6DF1\u5EA6\u601D\u8003\uFF08R1\uFF09")),je&&Pe==="qwen-max"&&wt.createElement("div",{onClick:()=>Bo(!Oi),className:kt()(ve.btn,Oi&&ve.btnActive)},wt.createElement("i",{className:"iconfont icon-shangchuantupian2 mr10 font12"}),"\u56FE\u50CF\u751F\u6210"),$r.map(Ge=>wt.createElement("div",{key:Ge.uid},(Ge==null?void 0:Ge.status)==="uploading"&&wt.createElement(Ce.Z,{indicator:wt.createElement(So.Z,{spin:!0}),className:"mr10",size:"small",spinning:!0}),wt.createElement("span",{title:Ge==null?void 0:Ge.name,className:"mr10"},(0,hn.Pq)(Ge.name,20)),wt.createElement("i",{onClick:()=>{Zi(ri=>ri.filter(wi=>wi.uid!==Ge.uid)),Jn(ri=>ri.filter(wi=>wi.uid!==Ge.uid))},className:"iconfont current icon-shanchu15 delete-hover c-red-ee4 font12"})))),wt.createElement(ue.Z,{title:pl&&wt.createElement("div",null,wt.createElement("div",null,"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),wt.createElement("div",null,"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F",Vn,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))},wt.createElement("div",{className:kt()(ve.inputContainer,$o>4&&ve.lineFour,pl&&ve.disabledInput)},wt.createElement(Se.default,St({ref:Oo},wu)),wt.createElement(Se.default,St({ref:_o},tr)),wt.createElement(Te.Z,{className:`${Ls&&"hide"}`,menu:{items:js,onClick:Ge=>tl(Ge.key)},placement:"top"},wt.createElement(qt.ZP,{className:ve.uploadBtn,icon:wt.createElement(yi.Z,{style:{fontSize:18,color:"#FFF"}})})),wt.createElement(Me.default.TextArea,{rows:$o>4?4:$o,placeholder:Je||"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u95EE\u9898\u5427,Shift+Enter\u6362\u884C\uFF5E",value:Ii,bordered:!1,style:Ls?{paddingLeft:0,marginLeft:0}:{},onChange:Dg,onPressEnter:Qd,onCompositionStart:()=>{Wo.current=!0},onCompositionEnd:()=>{Wo.current=!1}}),Or?wt.createElement(ue.Z,{title:"\u505C\u6B62\u751F\u6210"},wt.createElement("div",{className:`iconfont icon-tingzhihuida ${ve.cancelBtn}`,onClick:yr})):wt.createElement(qt.ZP,{className:(Ii==null?void 0:Ii.trim())===""?ve.sendBtnDisabled:ve.sendBtn,icon:wt.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:cl,onClick:Ra}),$o>4&&wt.createElement("span",{className:ve.fullIcon,onClick:Cu},Ci&&wt.createElement("span",{className:"iconfont icon-shousuo"}),!Ci&&wt.createElement("span",{className:"iconfont icon-zhankai"}))))))))}},10672:function(Qe,gn,Qt){"use strict";Qt.d(gn,{Z:function(){return ge}});var wt=Qt(59301),de=Qt(92832),Se=Qt(12563),Re=Qt(8591),ue={flex:"flex___eLcnP",flex1:"flex1___yUTT7",color666:"color666___TiUhG",error:"error___gTTtv",deleteIcon:"deleteIcon___mnZW1",addIcon:"addIcon___JC5NS"},Me=Qt(62772);const{TextArea:qt}=de.default;class Ce extends wt.Component{constructor(ae){super(ae),this.state={inputVisible:!1,EditInputIndex:-1}}render(){let{index:ae,onAnswerChange:Te,addChildAnswer:De,exerciseIsPublish:kt,answers:et,activeOptionErrorIndex:nt,flex:gt="0 0 1000px"}=this.props;console.log("----",et);let{inputVisible:lt,EditInputIndex:pt}=this.state;return wt.createElement("div",{className:ue.flex},wt.createElement("div",{className:`${ue.color666} mb5 mt6`,style:{flex:"0 0 90px"}},"\u7B54\u6848(\u586B\u7A7A",ae+1,"):"),wt.createElement("div",{style:{border:"1px solid #f6f6f6",flex:1,padding:10}},et==null?void 0:et.map((vt,Ct)=>wt.createElement(wt.Fragment,null,pt!==Ct?(vt==null?void 0:vt.length)>0?wt.createElement(Se.default,{className:"edit-tag",key:vt,closable:!((et==null?void 0:et.length)===1&&Ct===0),onClose:Ft=>{Ft.preventDefault(),(et==null?void 0:et.length)===1&&Ct===0?this.props.deleteChildAnswermain(ae,Ct):this.props.deleteChildAnswer(ae,Ct)}},wt.createElement("span",{onDoubleClick:Ft=>{this.setState({EditInputIndex:Ct}),Ft.preventDefault()}},vt)):wt.createElement(de.default,{defaultValue:vt,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:Ft=>{if(Ft.target.value.replaceAll(" ","").length<=0){Re.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}Te(ae,Ct,Ft.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}):wt.createElement(de.default,{defaultValue:vt,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:Ft=>{if(Ft.target.value.replaceAll(" ","").length<=0){Re.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}Te(ae,Ct,Ft.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}))),!lt&&wt.createElement(Se.default,{className:"site-tag-plus",onClick:()=>{De(ae),this.setState({inputVisible:!0})}},wt.createElement(Me.Z,null)," \u65B0\u589E\u7B54\u6848")))}}var ge=Ce},65158:function(Qe,gn,Qt){"use strict";Qt.d(gn,{Z:function(){return kt}});var wt=Qt(59301),de=Qt(12290),Se=Object.defineProperty,Re=Object.defineProperties,ue=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,qt=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,ge=(et,nt,gt)=>nt in et?Se(et,nt,{enumerable:!0,configurable:!0,writable:!0,value:gt}):et[nt]=gt,pe=(et,nt)=>{for(var gt in nt||(nt={}))qt.call(nt,gt)&&ge(et,gt,nt[gt]);if(Me)for(var gt of Me(nt))Ce.call(nt,gt)&&ge(et,gt,nt[gt]);return et},ae=(et,nt)=>Re(et,ue(nt)),Te=(et,nt,gt)=>ge(et,typeof nt!="symbol"?nt+"":nt,gt);const De="\u2581";class kt extends wt.Component{constructor(){super(...arguments),Te(this,"getChCountBeforeCursor",(nt,gt)=>{const lt=gt.line;let pt=0;for(let Ct=0;Ct{const lt=nt.getRange(gt.from,gt.to);let pt=0;if(gt.text.forEach(vt=>{pt+=vt.split(De).length-1}),lt&<.indexOf(De)!=-1){const vt=lt.split(De).length-1,Ct=this.getChCountBeforeCursor(nt,gt.from);console.log(`\u5220\u9664${vt}\u4E2A\uFF0C \u4E4B\u524D\u6709${Ct}\u4E2A\uFF0C\u65B0\u589E${pt}\u4E2A`),this.props.deleteEmptyDisabled?gt.cancel():this.props.onPlaceholderChange&&this.props.onPlaceholderChange(Ct,vt,pt)}else if(pt){const vt=this.getChCountBeforeCursor(nt,gt.from);console.log(`\u65B0\u589E${pt}\u4E2A\uFF0C\u4E4B\u524D\u6709${vt}\u4E2A`),this.props.onPlaceholderChange&&this.props.onPlaceholderChange(vt,0,pt)}})}render(){return wt.createElement(de.Z,ae(pe({},this.props),{onCMBeforeChange:this.onCMBeforeChange}))}}},9165:function(Qe,gn,Qt){"use strict";Qt.d(gn,{t:function(){return Te}});var wt=Qt(59301),de=Qt(3113),Se={buttonFixed:"buttonFixed___vyq30",button:"button___hxmYv",buttonWrap:"buttonWrap___uK8dl"},Re=Qt(92310),ue=Qt.n(Re),Me=Object.defineProperty,qt=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,pe=(De,kt,et)=>kt in De?Me(De,kt,{enumerable:!0,configurable:!0,writable:!0,value:et}):De[kt]=et,ae=(De,kt)=>{for(var et in kt||(kt={}))Ce.call(kt,et)&&pe(De,et,kt[et]);if(qt)for(var et of qt(kt))ge.call(kt,et)&&pe(De,et,kt[et]);return De};const Te=({cancelText:De="\u53D6\u6D88",okText:kt="\u786E\u5B9A",loading:et=!1,hasOkBtn:nt=!0,hasCancelBtn:gt=!0,okButtonProps:lt={},onCancel:pt=()=>{},onOk:vt=()=>{},className:Ct=""})=>wt.createElement("div",{className:ue()(Se.buttonFixed,Ct)},wt.createElement("div",{className:Se.buttonWrap},gt&&wt.createElement(de.ZP,{size:"middle",className:`${Se.button} mr20`,onClick:pt},De),nt&&wt.createElement(de.ZP,ae({size:"middle",type:"primary",className:`${Se.button} mr20`,loading:et,onClick:vt},lt),kt)))},16406:function(Qe,gn,Qt){"use strict";Qt.d(gn,{Z:function(){return Pn}});var wt=Qt(59301),de={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Se=Qt(92310),Re=Qt.n(Se),ue=Qt(71418);var Me=function(Ot,Et){return(Me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(St,Nt){St.__proto__=Nt}||function(St,Nt){for(var Ut in Nt)Object.prototype.hasOwnProperty.call(Nt,Ut)&&(St[Ut]=Nt[Ut])})(Ot,Et)};function qt(Ot,Et){function St(){this.constructor=Ot}Me(Ot,Et),Ot.prototype=Et===null?Object.create(Et):(St.prototype=Et.prototype,new St)}function Ce(Ot,Et,St,Nt){return new(St||(St=Promise))(function(Ut,Lt){function te(Ve){try{Je(Nt.next(Ve))}catch(dn){Lt(dn)}}function Be(Ve){try{Je(Nt.throw(Ve))}catch(dn){Lt(dn)}}function Je(Ve){var dn;Ve.done?Ut(Ve.value):(dn=Ve.value,dn instanceof St?dn:new St(function(Mn){Mn(dn)})).then(te,Be)}Je((Nt=Nt.apply(Ot,Et||[])).next())})}function ge(Ot,Et){var St,Nt,Ut,Lt,te={label:0,sent:function(){if(1&Ut[0])throw Ut[1];return Ut[1]},trys:[],ops:[]};return Lt={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&(Lt[Symbol.iterator]=function(){return this}),Lt;function Be(Je){return function(Ve){return function(dn){if(St)throw new TypeError("Generator is already executing.");for(;te;)try{if(St=1,Nt&&(Ut=2&dn[0]?Nt.return:dn[0]?Nt.throw||((Ut=Nt.return)&&Ut.call(Nt),0):Nt.next)&&!(Ut=Ut.call(Nt,dn[1])).done)return Ut;switch(Nt=0,Ut&&(dn=[2&dn[0],Ut.value]),dn[0]){case 0:case 1:Ut=dn;break;case 4:return te.label++,{value:dn[1],done:!1};case 5:te.label++,Nt=dn[1],dn=[0];continue;case 7:dn=te.ops.pop(),te.trys.pop();continue;default:if(Ut=te.trys,!((Ut=Ut.length>0&&Ut[Ut.length-1])||dn[0]!==6&&dn[0]!==2)){te=0;continue}if(dn[0]===3&&(!Ut||dn[1]>Ut[0]&&dn[1]Ce.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},wt.createElement("button",null,"\u590D\u5236")),wt.createElement(Se.Z,pt({style:ue.Z,language:hn[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},$e),wn))},img({node:se}){var Wt;const _e=(Wt=se.properties)==null?void 0:Wt.src;return wt.createElement(ge.Z,{src:_e,width:320,"data-text":_e,onLoad:()=>$t&&setTimeout(()=>pn(),500)})}}},xe?me:`${me}__`)),[me])}},19909:function(Qe,gn,Qt){"use strict";Qt.d(gn,{Z:function(){return te}});var wt=Qt(59301),de=Qt(8591),Se=Qt(54580),Re=Qt(43418),ue=Qt(6848),Me=Qt(92832),qt=Qt(3113),Ce=Qt(71418),ge=Qt(64165),pe=Qt(14478),ae=Qt(43428),Te=Qt(38854),De=Qt(92310),kt=Qt.n(De),et=Qt(43276),nt={reasoning:"reasoning___S0mKl",btn:"btn____CIJG",content:"content___CIAh9"},gt=Qt(59301),lt=(Be,Je,Ve)=>new Promise((dn,Mn)=>{var ii=zi=>{try{Yn(Ve.next(zi))}catch($i){Mn($i)}},kn=zi=>{try{Yn(Ve.throw(zi))}catch($i){Mn($i)}},Yn=zi=>zi.done?dn(zi.value):Promise.resolve(zi.value).then(ii,kn);Yn((Ve=Ve.apply(Be,Je)).next())}),vt=({value:Be="",streamingStatus:Je,onFinish:Ve,cancelIndex:dn,time:Mn,loading:ii,loadAll:kn})=>{const[Yn,zi]=(0,wt.useState)(""),[$i,Do]=(0,wt.useState)(!0),so=(0,wt.useRef)(Be),Wi=(0,wt.useRef)(Je),Li=(0,wt.useRef)(0),Qi=(0,wt.useRef)(null),[mr,vo]=(0,wt.useState)(!1),qn=70;(0,wt.useEffect)(()=>{Wi.current=Je},[Je]),(0,wt.useEffect)(()=>{so.current=Be},[Be]),(0,wt.useEffect)(()=>{if(!Je){zi(so.current);return}return vo(!0),Qi.current=setInterval(En,qn),()=>{clearInterval(Qi.current)}},[]),(0,wt.useEffect)(()=>{mr&&(zi(so.current),clearInterval(Qi.current),vo(!1),Ve())},[dn]);const En=()=>lt(void 0,null,function*(){const Pt=so.current[Li.current];Pt!==void 0?(zi(Xo=>Xo+Pt),Li.current++,clearInterval(Qi.current),Qi.current=setInterval(En,280/(so.current.length-Li.current))):Wi.current===!1&&(zi(so.current),clearInterval(Qi.current),vo(!1),Ve())});return gt.createElement("div",{className:`${nt.reasoning} fadeIn animated`},gt.createElement("div",{className:nt.btn,onClick:()=>Do(!$i)},gt.createElement("i",{className:"iconfont icon-shendusikao"}),Mn?gt.createElement("span",null,"\u5DF2\u6DF1\u5EA6\u601D\u8003\uFF08\u7528\u65F6 ",Mn," \u79D2\uFF09"):gt.createElement("span",null,"\u601D\u8003\u4E2D..."),$i?gt.createElement("b",{className:"iconfont icon-shouqi6"}):gt.createElement("b",{className:"iconfont icon-zhankai6"})),ii&>.createElement(Ce.Z,{spinning:!0,className:"mt20"}),$i&&!ii&>.createElement("div",{className:nt.content},Yn,mr?gt.createElement("span",{className:"aiBlink"},"__"):""))},Ct={select:"select___Kt_GE",box:"box___S5_ly",text:"text___dtZDv",itemWrap:"itemWrap___xmw7x",item:"item___io6Bx",active:"active___nHRTI"},Ft=Qt(81327),Ht=Object.defineProperty,Vt=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,$t=(Be,Je,Ve)=>Je in Be?Ht(Be,Je,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Be[Je]=Ve,me=(Be,Je)=>{for(var Ve in Je||(Je={}))_t.call(Je,Ve)&&$t(Be,Ve,Je[Ve]);if(Vt)for(var Ve of Vt(Je))ne.call(Je,Ve)&&$t(Be,Ve,Je[Ve]);return Be};const Zt=Be=>React.createElement("svg",me({className:"logo1_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},Be),React.createElement("path",{d:"M1019.407 620.8 891.834 397.781 946.49 293.12a29.099 29.099 0 0 0 6.4-36.395l-70.187-126.592a30.08 30.08 0 0 0-24.576-13.653H597.519L539.194 14.507a27.35 27.35 0 0 0-20.907-14.55H380.644a29.141 29.141 0 0 0-24.618 14.55v5.546L225.806 243.03H100.923a29.184 29.184 0 0 0-25.515 13.654L3.428 384.085a32.768 32.768 0 0 0 0 29.184L132.836 638.08 74.511 740.053a32.768 32.768 0 0 0 0 29.056l66.517 116.566a29.907 29.907 0 0 0 25.515 14.506H427.15l62.848 109.227A30.08 30.08 0 0 0 512.783 1024H660.41a29.141 29.141 0 0 0 24.576-14.55l128.469-224.853h114.773a31.915 31.915 0 0 0 24.662-15.445l66.474-117.419a28.16 28.16 0 0 0 0-30.976l.043.043zm-161.28 14.592L791.61 512.469 518.287 993.963l-74.752-122.88h-273.28l65.621-119.211h139.392L101.86 272.213h143.062L380.687 30.08l68.352 119.253-70.187 122.88H925.54l-69.205 121.942 137.6 241.194H858.17z",fill:"#605BEC"}),React.createElement("path",{d:"m499.983 699.307 174.379-274.731H324.708z",fill:"#605BEC"}));var ke="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTEwMTkuNDA3IDYyMC44IDg5MS44MzQgMzk3Ljc4MSA5NDYuNDkgMjkzLjEyYTI5LjA5OSAyOS4wOTkgMCAwIDAgNi40L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BkPSJtNDk5Ljk4MyA2OTkuMzA3IDE3NC4zNzktMjc0LjczMUgzMjQuNzA4eiIgZmlsbD0iIzYwNUJFQyIvPjwvc3ZnPg==",he=Object.defineProperty,xe=Object.getOwnPropertySymbols,on=Object.prototype.hasOwnProperty,un=Object.prototype.propertyIsEnumerable,pn=(Be,Je,Ve)=>Je in Be?he(Be,Je,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Be[Je]=Ve,Fn=(Be,Je)=>{for(var Ve in Je||(Je={}))on.call(Je,Ve)&&pn(Be,Ve,Je[Ve]);if(xe)for(var Ve of xe(Je))un.call(Je,Ve)&&pn(Be,Ve,Je[Ve]);return Be};const se=Be=>React.createElement("svg",Fn({className:"logo2_svg__icon",viewBox:"0 0 1417 1024",xmlns:"http://www.w3.org/2000/svg",width:276.758,height:200},Be),React.createElement("path",{d:"M1364.44 118.705c-14.178-6.695-20.322 6.065-28.593 12.525-2.914 2.048-5.277 4.726-7.64 7.246-20.717 21.268-44.899 35.21-76.643 33.556a152.576 152.576 0 0 0-120.674 45.371c-7.404-41.826-32.06-66.875-69.553-82.865-19.693-8.35-39.543-16.7-53.248-34.737-9.61-12.919-12.288-27.333-17.015-41.512-3.15-8.507-6.144-17.25-16.384-18.668-11.185-1.733-15.517 7.247-19.928 14.73a189.125 189.125 0 0 0-23.552 98.461c1.575 76.88 35.446 138.083 102.636 181.642 7.562 4.963 9.531 9.925 7.09 17.25-4.49 14.967-9.926 29.54-14.81 44.584-2.992 9.61-7.561 11.658-18.274 7.483a309.484 309.484 0 0 1-96.886-63.015c-47.813-44.426-91.057-93.342-144.935-131.702a635.825 635.825 0 0 0-38.36-25.207c-54.982-51.2 7.167-93.262 21.582-98.225 14.966-5.199 5.277-23.158-43.402-22.922-48.68.237-93.184 15.833-149.977 36.628-8.428 3.15-17.092 5.514-25.993 7.326a557.844 557.844 0 0 0-160.768-5.436c-105.157 11.264-189.204 58.92-250.96 140.367-74.2 97.832-91.687 208.975-70.261 325.002 22.449 122.25 87.434 223.468 187.47 302.631 103.582 82 222.917 122.172 359.188 114.452 82.708-4.568 174.79-15.202 278.686-99.485 26.151 12.445 53.642 17.486 99.249 21.267 35.131 3.072 69.002-1.733 95.153-6.931 40.96-8.35 38.203-44.741 23.316-51.437-120.202-53.72-93.814-31.822-117.839-49.624 61.125-69.317 153.206-141.312 189.204-374.706 2.835-18.51.472-30.168 0-45.213-.237-9.137 1.969-12.603 12.918-13.706a240.089 240.089 0 0 0 86.173-25.442c77.982-40.803 109.332-107.914 116.736-188.259 1.103-12.288-.236-24.97-13.705-31.429zM685.45 842.043C569.108 754.215 512.55 725.307 489.157 726.49c-21.82 1.26-17.96 25.206-13.155 40.802 5.042 15.439 11.58 26.073 20.717 39.621 6.301 8.9 10.791 22.213-6.302 32.295-37.494 22.213-102.794-7.561-105.787-8.98-76.012-42.929-139.421-99.564-184.241-176.994a523.894 523.894 0 0 1-72.468-239.93c-1.024-20.56 5.278-27.885 26.703-31.587a272.148 272.148 0 0 1 85.307-2.127c118.942 16.699 220.16 67.741 305.073 148.48 48.443 46.001 85.071 100.982 122.88 154.703 40.173 57.029 83.338 111.458 138.32 155.963 19.376 15.675 34.894 27.569 49.781 36.234-44.74 4.805-119.414 5.829-170.456-32.926zm55.926-344.615c0-5.357 2.757-10.398 7.326-13.47a17.723 17.723 0 0 1 22.134 2.048c3.072 2.915 4.805 7.09 4.805 11.422a16.778 16.778 0 0 1-17.25 16.541 17.33 17.33 0 0 1-12.131-4.883 15.911 15.911 0 0 1-4.884-11.658zm173.529 85.464a104.37 104.37 0 0 1-33.005 8.586 71.444 71.444 0 0 1-44.504-13.548c-15.282-12.288-26.23-19.141-30.72-40.645a89.167 89.167 0 0 1 .787-31.429c3.939-17.487-.393-28.75-13.312-38.912-10.476-8.35-23.71-10.634-38.36-10.634a32.06 32.06 0 0 1-14.179-4.175c-6.144-2.914-11.106-10.24-6.301-19.14a60.18 60.18 0 0 1 10.712-11.265c19.85-10.79 42.693-7.246 63.882.788 19.693 7.798 34.501 21.898 55.926 41.905 21.74 24.183 25.68 30.8 38.125 48.916 9.846 14.179 18.747 28.75 24.89 45.45 3.703 10.397-1.102 18.905-13.941 24.103z",fill:"#4D6BFE"}));var Wt="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDE0MTcgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjc2Ljc1OCIgaGVpZ2h0PSIyMDAiPjxwYXRoIGQ9Ik0xMzY0LjQ0IDExOC43MDVjLTE0LjE3OC02LjY5NS0yMC4zMjIgNi4wNjUtMjguNTkzIDEyLjUyNS0yLjkxNCAyLjA0OC01LjI3NyA0LjcyNi03LjY0IDcuMjQ2LTIwLjcxNyAyMS4yNjgtNDQuODk5IDM1LjIxLTc2LjY0MyAzMy41NTZhMTUyLjU3NiAxNTIuNTc2IDAgMCAwLTEyMC42NzQgNDUuMzcxYy03LjQwNC00MS44MjYtMzIuMDYtNjYuODc1LTY5LjU1My04Mi44NjUtMTkuNjkzLTguMzUtMzkuNTQzLTE2LjctNTMuMjQ4LTM0LjczNy05LjYxLTEyLjkxOS0xMi4yODgtMjcuMzMzLTE3LjAxNS00MS41MTItMy4xNS04LjUwNy02LjE0NC0xNy4yNS0xNi4zODQtMTguNjY4LTExLjE4NS0xLjczMy0xNS41MTcgNy4yNDctMTkuOTI4IDE0LjczYTE4OS4xMjUgMTg5LjEyNSAwIDAgMC0yMy41NTIgOTguNDYxYzEuNTc1IDc2Ljg4IDM1LjQ0NiAxMzguMDgzIDEwMi42MzYgMTgxLjY0MiA3LjU2MiA0Ljk2MyA5LjUzMSA5LjkyNSA3LjA5IDE3LjI1LTQuNDkgMTQuOTY3LTkuOTI2IDI5LjU0LTE0LjgxIDQ0LjU4NC0yLjk5MiA5LjYxLTcuNTYxIDExLjY1OC0xOC4yNzQgNy40ODNhMzA5LjQ4NCAzMDkuNDg0IDAgMCAxLTk2Lj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LjkxNSA0LjgwNSA3LjA5IDQuODA1IDExLjQyMmExNi43NzggMTYuNzc4IDAgMCAxLTE3LjI1IDE2LjU0MSAxNy4zMyAxNy4zMyAwIDAgMS0xMi4xMzEtNC44ODMgMTUuOTExIDE1LjkxMSAwIDAgMS00Ljg4NC0xMS42NTh6bTE3My41MjkgODUuNDY0YTEwNC4zNyAxMDQuMzcgMCAwIDEtMzMuMDA1IDguNTg2IDcxLjQ0NCA3MS40NDQgMCAwIDEtNDQuNTA0LTEzLjU0OGMtMTUuMjgyLTEyLjI4OC0yNi4yMy0xOS4xNDEtMzAuNzItNDAuNjQ1YTg5LjE2NyA4OS4xNjcgMCAwIDEgLjc4Ny0zMS40MjljMy45MzktMTcuNDg3LS4zOTMtMjguNzUtMTMuMzEyLTM4LjkxMi0xMC40NzYtOC4zNS0yMy43MS0xMC42MzQtMzguMzYtMTAuNjM0YTMyLjA2IDMyLjA2IDAgMCAxLTE0LjE3OS00LjE3NWMtNi4xNDQtMi45MTQtMTEuMTA2LTEwLjI0LTYuMzAxLTE5LjE0YTYwLjE4IDYwLjE4IDAgMCAxIDEwLjcxMi0xMS4yNjVjMTkuODUtMTAuNzkgNDIuNjkzLTcuMjQ2IDYzLjg4Mi43ODggMTkuNjkzIDcuNzk4IDM0LjUwMSAyMS44OTggNTUuOTI2IDQxLjkwNSAyMS43NCAyNC4xODMgMjUuNjggMzAuOCAzOC4xMjUgNDguOTE2IDkuODQ2IDE0LjE3OSAxOC43NDcgMjguNzUgMjQuODkgNDUuNDUgMy43MDMgMTAuMzk3LTEuMTAyIDE4LjkwNS0xMy45NDEgMjQuMTAzeiIgZmlsbD0iIzRENkJGRSIvPjwvc3ZnPg==",_e=Qt(59301),Dn=({value:Be,onChange:Je})=>{const[Ve,dn]=(0,wt.useState)(!1),Mn=[{name:"\u901A\u4E49\u5343\u95EE",key:"qwen-max",img:ke},{name:"DeepSeek R1-671B",key:"deepseek-r1",img:Wt}],ii=Mn.find(kn=>kn.key===Be);return _e.createElement("div",{className:Ct.select},_e.createElement(Ft.Z,{size:10},_e.createElement("span",{className:"c-grey-333 font16"},"\u6A21\u578B"),_e.createElement("div",{className:Ct.box,onMouseLeave:()=>dn(!1)},_e.createElement("div",{className:Ct.text,onClick:()=>dn(!0)},_e.createElement("img",{src:ii.img,width:20}),_e.createElement("span",null,ii.name),_e.createElement("b",{className:"iconfont icon-zhankai6"})),Ve&&_e.createElement("div",{className:Ct.itemWrap},_e.createElement("aside",null,Mn.map(kn=>_e.createElement("div",{key:kn.key,className:`${Ct.item} ${kn.key===Be?Ct.active:""}`,onClick:Yn=>{Yn.stopPropagation(),Je(kn.key),dn(!1)}},_e.createElement("img",{src:kn.img,width:20}),_e.createElement("span",null,kn.name))))))))},ve={loadingPic:"loadingPic___y2kKZ",loading:"loading___UEUk1",dot:"dot___TYXFV","dot-fade":"dot-fade___KWn1a",wrap:"wrap___nU3cS",chatContainer:"chatContainer___PNe3Q",footerContainer:"footerContainer___hQATV",btnWrp:"btnWrp___mS8l6",btn:"btn___3za5U",btnActive:"btnActive____jzfb",inputContainer:"inputContainer___iCQ3u",uploadBtn:"uploadBtn___OHHJF",sendBtn:"sendBtn___ktaQl",sendBtnDisabled:"sendBtnDisabled___DVncF",cancelBtn:"cancelBtn___bzMDI",lineFour:"lineFour___Lhbz5",fullIcon:"fullIcon___YWXTV",footerContainerSelected:"footerContainerSelected___pGBh3",full:"full___dZLXo",li:"li___PjMV3",avatarIcon:"avatarIcon___ztGQ3",img:"img___wZqEA",content:"content___OlYYG",borderBox:"borderBox___tjHwt",text:"text___yWTCV",fileWrap:"fileWrap___IX778",file:"file___fxAKb",fileName:"fileName___RA8nu",source:"source___nkLC0",action:"action___I2zGy",disabledInput:"disabledInput___Buork",backBottom:"backBottom___SMuL2",head:"head___v8Eom",headBtn:"headBtn___IS7xR",menuWarp:"menuWarp___G6yj0",menu:"menu___M8VWP",menuText:"menuText___gRpb5",menuDel:"menuDel___eH_wg",active:"active___KWwPV"},$e=Qt(99064),hn=Qt(955),wn={draggableImage:"draggableImage___vcTso",img:"img___xAyno",close:"close___WUtfj"},bn=({src:Be,onClick:Je,topPercentage:Ve=.62,draggableExtraNode:dn})=>{const Mn=(0,wt.useRef)(null),ii=(0,wt.useRef)(!1),kn=(0,wt.useRef)(!1),[Yn,zi]=(0,wt.useState)(window.innerHeight*Ve),[$i,Do]=(0,wt.useState)(!1),so=10;return(0,wt.useEffect)(()=>{if(Mn.current){let Wi=function(qn){var En;ii.current=!0,vo=qn.pageY,mr=qn.pageY-(((En=Mn.current)==null?void 0:En.getBoundingClientRect().top)||0),(0,hn.kk)("none"),document.onselectstart=function(){return!1}},Li=function(){ii.current&&!kn.current&&Je&&Je(),ii.current=!1,kn.current=!1,(0,hn.kk)("auto"),document.onselectstart=null},Qi=function(qn){var En;if(ii.current){const Xo=qn.pageY-mr,Mi=window.innerHeight-(((En=Mn.current)==null?void 0:En.offsetHeight)||0)-50,wr=50;if(!kn.current&&Math.abs(vo-qn.pageY)>so&&(kn.current=!0),kn.current){let Es=Math.max(wr,Math.min(Xo,Mi));zi(Es)}}},mr=0,vo=0;return Mn.current.addEventListener("mousedown",Wi),document.addEventListener("mousemove",Qi),document.addEventListener("mouseup",Li),()=>{var qn,En;(En=(qn=Mn==null?void 0:Mn.current)==null?void 0:qn.removeEventListener)==null||En.call(qn,"mousedown",Wi),document.removeEventListener("mousemove",Qi),document.removeEventListener("mouseup",Li)}}},[Je]),(0,wt.useEffect)(()=>{const Wi=()=>{zi(window.innerHeight*Ve)};return window.addEventListener("resize",Wi),()=>{window.removeEventListener("resize",Wi)}},[Ve]),wt.createElement("div",{className:wn.draggableImage,style:{top:`${Yn}px`,display:$i?"none":"block",cursor:ii.current?"grabbing":"grab"},ref:Mn},dn,wt.createElement("img",{className:wn.img,src:Be,width:60,draggable:"false"}),wt.createElement("i",{className:`iconfont icon-tupianguanbi ${wn.close}`,onMouseUp:Wi=>{Wi.stopPropagation(),Do(!0)}}))},re="data:image/png;base64,iVBORw0KG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k75BgR4l6SfnkljNmnkF/992kIK0hZv3z+8tdPeOvTTuaHBmAUFWCFgrjhPGLDB5MYFIWQg0gGKJq/kVC6AzfWTaqpmf+IdDNuRF66ra3r19fcf+2dnzeT9VWs9B4FINP89sSP3lz1UHtd16SVK9vZvDlNLGaQJ4p0cfzZJa9g6Wk8Q89nnHjYQC754dGYwTBVQ/vw3D83MG/hZmQmiekFsHOjLN+cwczvy6rD9sfOyaO0O8E+bz1NjimYNLIUy1FDb8bCwr6hS39298++tfHhXiKsePbm4CdrzP9csyp+3dat6f52xiKfPqRthzmr5hK3u5CeIJxjcPbUcZx07HcIRMKU9S1iyRsp1s0V1CXqWd6xgWGFVSxoa6cqL6BbO6VFebpNU5IfYvnqFFPLv1PXUb7qDoPOx25+7uZvf0B8e9bfdd5/5aza6E5vaU5evk/JyLHddlysaVrOmoZqDAJUlORy/eXHU1FaSCg3gkhFWT3bZM7y1azt3ki/gjJC0RysYIa059LeGaeqJJ94Ii6H9Kv8NNcovk+uKXvqF8un/N/+CcBu5N24Yb8H9pfF6XOW1M+bUtNYP6yoIGRccPphjBrZT7dBcosjtC2PsnRBnNUNDdiik5I+BeREQnpsMZm2VQt7vcR+PRoJPC1mtc2/mZv///ojj90punz2WfN/nntvQHFezmRXpPcdP3bIqIL8whGWF6xc+04oL7kqQ2Pfpu5omAZThNY6GWuV4waWOp6xcGg0UDPtuWn/lj/j+X+Lbso4jJUfOwAAAABJRU5ErkJggg==",ni=Qt(3294),qe=Qt(56102),vi=Qt(24544),So=Qt(58617),yi=Qt(32050),gi=Object.defineProperty,fi=Object.defineProperties,an=Object.getOwnPropertyDescriptors,Wn=Object.getOwnPropertySymbols,Pn=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable,Et=(Be,Je,Ve)=>Je in Be?gi(Be,Je,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Be[Je]=Ve,St=(Be,Je)=>{for(var Ve in Je||(Je={}))Pn.call(Je,Ve)&&Et(Be,Ve,Je[Ve]);if(Wn)for(var Ve of Wn(Je))Ot.call(Je,Ve)&&Et(Be,Ve,Je[Ve]);return Be},Nt=(Be,Je)=>fi(Be,an(Je)),Ut=(Be,Je,Ve)=>new Promise((dn,Mn)=>{var ii=zi=>{try{Yn(Ve.next(zi))}catch($i){Mn($i)}},kn=zi=>{try{Yn(Ve.throw(zi))}catch($i){Mn($i)}},Yn=zi=>zi.done?dn(zi.value):Promise.resolve(zi.value).then(ii,kn);Yn((Ve=Ve.apply(Be,Je)).next())}),te=({title:Be="\u5934\u6B4CAI",placeholder:Je,hideUpload:Ve,hideInputBox:dn,aiIcon:Mn=re,userIcon:ii=An,dragIcon:kn=mi,children:Yn,fetchUrl:zi,fetchData:$i={},extraAnswerAction:Do,showDefaultTips:so=!0,onOpen:Wi,onClose:Li,loadingOption:Qi,showPreference:mr=!1,initMessage:vo,customRequest:qn,visible:En,width:Pt=1200,isCheckRestrictNumber:Xo=!1,headNode:Mi,headFunctionNode:wr,showRedraw:Es,showEdit:Zr,promptPropName:Oa="prompt",topPercentage:bo,showSwitchingModel:oa=!1,showImageGenerator:je=!1,showLookHistory:Ae=!1,fetchListObject:fe,customPreference:In,customDataNode:ci,showAddSession:li,historyId:Ke,draggableExtraNode:Sn,drawerExtraNode:Yi,menuExtraFunctionNode:ao,showSceneAwareness:po=!1})=>{var ee,mn;const[Zn,yo]=(0,wt.useState)(!1),[Pe,Ze]=(0,wt.useState)("qwen-max"),[Ai,Zi]=(0,wt.useState)([]),[to,Jn]=(0,wt.useState)([]),[ei,Gn]=(0,wt.useState)(!1),[_n,Bi]=(0,wt.useState)(!1),[Ui,Oe]=(0,wt.useState)(!1),[io,Ji]=(0,wt.useState)([]),[Ii,Ee]=(0,wt.useState)(""),[fn,jn]=(0,wt.useState)(0),[Vn,Qn]=(0,wt.useState)(void 0),[Ci,oo]=(0,wt.useState)(!1),[Xi,Vi]=(0,wt.useState)(null),[mo,He]=(0,wt.useState)(""),qi=(0,wt.useRef)(),ze=(0,wt.useRef)(null),eo=(0,wt.useRef)(null),[Or,Zo]=(0,wt.useState)(!1),[Jr,Jo]=(0,wt.useState)(!1),[Oi,Bo]=(0,wt.useState)(!1),[Sa,dr]=(0,wt.useState)(!1),[xn,jt]=(0,wt.useState)(0),Dr=(0,wt.useRef)(null),qr=(0,wt.useRef)(!1),Il=(0,wt.useRef)(null),[xa,cl]=(0,wt.useState)(void 0),[xu,td]=(0,wt.useState)(!0),[ed,Lo]=(0,wt.useState)(Pt-28),[qo,ra]=(0,wt.useState)(!1),[hi,Un]=(0,wt.useState)(!0),[We,$n]=(0,wt.useState)([]),ji=(0,wt.useRef)([]),Oo=(0,wt.useRef)(null),_o=(0,wt.useRef)(null),Wo=(0,wt.useRef)(!1),vr=ed-22,$o=Ii==null?void 0:Ii.split(` +`).length,{onAdd:Pa,onGetList:Os,onListClick:Fl,onListDelete:ce,onListDealData:Bs}=fe||{},Pu=50,ja=10,wu={maxCount:Pu,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:Ai,multiple:!0,accept:".doc,.docx,.md,.txt,.pdf,.xlsx,.xls",beforeUpload:Ge=>Ut(void 0,null,function*(){var ri,wi,Di,uo;const Fi=(uo=(Di=(wi=(ri=Ge==null?void 0:Ge.name)==null?void 0:ri.split("."))==null?void 0:wi.slice(-1))==null?void 0:Di[0])==null?void 0:uo.toLowerCase(),jo=["doc","docx","md","pdf","txt","xlsx","xls"].includes(Fi);return Ge.size==0?(de.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),Se.default.LIST_IGNORE):jo?Ge.size/1024/1024>100?(de.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u5236100MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Se.default.LIST_IGNORE):!0:(de.ZP.warning("\u76EE\u524D\u652F\u6301txt\u3001md\u3001doc\u3001docx\u3001pdf\u3001xlsx\u3001xls\u6587\u4EF6"),Se.default.LIST_IGNORE)}),onChange:({fileList:Ge})=>{Zi(Ge)},action:`${(ee=ni.Z)==null?void 0:ee.API_SERVER}/api/intelligent_imports/upload_file.json`},tr={maxCount:ja,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:to,multiple:!0,accept:".jpg,.png,",beforeUpload:Ge=>{var ri,wi,Di,uo;const Fi=(uo=(Di=(wi=(ri=Ge==null?void 0:Ge.name)==null?void 0:ri.split("."))==null?void 0:wi.slice(-1))==null?void 0:Di[0])==null?void 0:uo.toLowerCase(),jo=["jpg","png"].includes(Fi);return Ge.size==0?(de.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),Se.default.LIST_IGNORE):jo?Ge.size/1024/1024>10?(de.ZP.warning("\u4E0A\u4F20\u7684\u56FE\u7247\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Se.default.LIST_IGNORE):!0:(de.ZP.warning("\u76EE\u524D\u652F\u6301jpg\u3001png"),Se.default.LIST_IGNORE)},onChange:({fileList:Ge})=>{Jn(Ge)},action:`${(mn=ni.Z)==null?void 0:mn.API_SERVER}/api/ai/generals/update_file.json`};(0,wt.useEffect)(()=>{if(!io.length||!qi.current)return;const Ge=io[io.length-1];Ge!=null&&Ge.loading&&(qi.current.scrollTop=qi.current.scrollHeight)},[io.length]),(0,wt.useEffect)(()=>{if(!qi.current||!Dr.current)return;const Ge=new IntersectionObserver(([ri])=>{td(ri.isIntersecting)},{root:qi.current,rootMargin:"70px",threshold:0});return Ge.observe(Dr.current),()=>{Dr.current&&Ge.unobserve(Dr.current)}},[qi.current,Dr.current]),(0,wt.useEffect)(()=>{if(!Or)return;const Ge=qi.current,ri=Il.current;qr.current=!1;let wi=Ge.scrollTop;const Di=()=>{const{scrollTop:Fi,scrollHeight:zo,clientHeight:jo}=Ge;Fi>wi?Fi+jo>=zo-50&&(Ge.scrollTop=Ge.scrollHeight,qr.current=!1):Fi{qr.current||(Ge.scrollTop=Ge.scrollHeight)});return uo.observe(ri),()=>{var Fi;uo.unobserve(ri),(Fi=Ge==null?void 0:Ge.removeEventListener)==null||Fi.call(Ge,"scroll",Di)}},[Or]),(0,wt.useEffect)(()=>{!Or&&ji.current.length&&(Ji([...io,...ji.current]),ji.current=[])},[Or]),(0,wt.useEffect)(()=>{if(!qi.current)return;const Ge=new ResizeObserver(()=>{Lo(qi.current.offsetWidth)});return Ge.observe(qi.current),()=>{qi.current&&Ge.unobserve(qi.current)}},[qi.current]),(0,wt.useEffect)(()=>{typeof En=="boolean"&&yo(En)},[En]),(0,wt.useEffect)(()=>{var Ge;if(ze.current&&Xi!==null){ze.current.focus();const ri=(Ge=ze.current.resizableTextArea)==null?void 0:Ge.textArea;ri&&(ri.selectionStart=ri.selectionEnd=ri.value.length)}},[Xi]),(0,wt.useEffect)(()=>{$o<5&&oo(!1)},[$o]),(0,wt.useEffect)(()=>{Zn&&vo&&(Ji(_a(vo)),Gn(!0),Rn(vo,{history:[]})),Zn&&(_r(),Ke?Nl(Ke):li&&!xa&&Ys()),Zn||$a()},[Zn]);const _a=(Ge="",ri=[],wi=[])=>{const Di=Date.now();return[{text:Ge,key:Di,sender:"user",fileList:ri,imageList:wi,show:!0},{loading:!0,key:Di,sender:"AI",show:!0,model:Pe,imageGenerator:Oi,thinkingEnabled:Jr}]},$a=()=>{He(""),Vi(null),Zi([]),Jn([]),Ee("")},Co=()=>{if(Wi){Wi({chatData:io,setChatData:Ji,setLoading:Gn,getData:Rn,renderChatItems:_a,handleAdd:Ys,identifier:xa});return}yo(!0)},Lr=()=>{if(Un(!0),Li){Li();return}yo(!1)},Cu=()=>{oo(!Ci)},_r=()=>Ut(void 0,null,function*(){if(!Xo)return;const Ge=yield(0,$e.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});(Ge==null?void 0:Ge.status)===0&&(Ge==null?void 0:Ge.total_number)!==-1&&(jn((Ge==null?void 0:Ge.total_number)-(Ge==null?void 0:Ge.remaining_number)),Qn(Ge==null?void 0:Ge.total_number))}),hh=()=>{Re.default.info({title:"\u63D0\u793A",icon:null,okText:"\u6211\u77E5\u9053\u4E86",width:510,centered:!0,content:wt.createElement("div",null,wt.createElement("div",{style:{color:"#FA6400"}},"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),wt.createElement("div",{className:"c-grey-333 mt5"},"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F\u7528",Vn,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))})},sa=Ge=>Ge.reduce((wi,Di)=>{if(Di.sender==="user"){const uo=Ge.find(Fi=>Fi.key===Di.key&&Fi.sender==="AI");uo&&(uo!=null&&uo.text)&&!(uo!=null&&uo.error)&&wi.push({question:Di.text,answer:uo.text})}return wi},[]),Rn=(...Ge)=>Ut(void 0,[...Ge],function*(ri="",wi={},Di=io){if(qn&&(yield qn({mes:ri,setChatData:Ji,fileList:Ai,body:wi,checkNum:_r,setLoading:Gn,bodyChatData:Di,setTyping:Zo,setImageGenerator:Bo,renderChatItems:_a})),!qn){const uo=Ai==null?void 0:Ai.map(Cr=>{var Ms;return(Ms=Cr==null?void 0:Cr.response)==null?void 0:Ms.file_id}),Fi=to==null?void 0:to.map(Cr=>{var Ms;return(Ms=Cr==null?void 0:Cr.response)==null?void 0:Ms.data}),zo=wi.history||sa(Di),jo=St(St({identifier:xa,response_mode:"streaming",model:Pe,scene_awareness:Sa,thinking_enabled:Jr,image_generator:Oi,file_ids:uo,image_list:Fi,history:zo,[Oa]:ri},$i),wi),$r=Object.fromEntries(Object.entries(jo).filter(([Cr,Ms])=>Ms!==void 0));eo.current=new vi.Z(ni.Z.API_SERVER+zi,$r),yield new Promise((Cr,Ms)=>{let ar=null,id=null;eo.current.on("data",gh=>{Zo(!0);const{chunk:{content:vl,type:el,created:jr,msg:vs}}=gh,Mr=vs==="error";el==="thinking"&&(ar=ar||jr,Ji(Er=>[...Er].map((nl,$l)=>$l===Er.length-1?Nt(St({},nl),{reasoning:(nl.reasoning||"")+vl,loading:!1,hideAnswer:!0,error:Mr}):nl))),el==="text"&&(id=id||jr,Ji(Er=>[...Er].map((nl,$l)=>$l===Er.length-1?Nt(St({},nl),{text:(nl.text||"")+vl,loading:!1,startTime:ar,endTime:id,error:Mr}):nl)))}),eo.current.on("done",()=>{Cr()}),eo.current.on("error",()=>{const gh="\u62B1\u6B49\uFF0C\u6211\u521A\u521A\u9047\u5230\u4E86\u4E00\u70B9\u95EE\u9898\uFF0C\u6CA1\u80FD\u5B8C\u6210\u60A8\u7684\u8BF7\u6C42\u3002\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\u4E00\u6B21\uFF0C\u6216\u8005\u8054\u7CFB\u6280\u672F\u652F\u6301\u5E2E\u5FD9\u89E3\u51B3!";Ji(vl=>[...vl].map((el,jr)=>jr===vl.length-1?Nt(St({},el),{text:gh,loading:!1,error:!0}):el)),Cr()}),eo.current.on("cancelled",()=>{Cr()}),eo.current.startStream()})}_r(),Gn(!1)}),Dg=Ge=>{Ee(Ge.target.value)},nd=(Ge,ri)=>{if($a(),Gn(!0),Ge==="edit"){ji.current=io.slice(ri+2);const wi=io.splice(ri),{fileList:Di,imageList:uo}=(wi==null?void 0:wi[0])||{},Fi=Di.map($r=>{var Cr;return(Cr=$r.response)==null?void 0:Cr.file_id}),zo=uo.map($r=>{var Cr;return(Cr=$r.response)==null?void 0:Cr.data}),jo={history:sa(io),file_ids:Fi,image_list:zo,edit:!0};Ji([...io,..._a(mo,Di,uo)]),Rn(mo,jo,io)}if(Ge==="redraw"){ji.current=io.slice(ri+1);const wi=io.splice(ri-1),{text:Di,fileList:uo,imageList:Fi}=(wi==null?void 0:wi[0])||{},zo=uo.map(Cr=>{var Ms;return(Ms=Cr.response)==null?void 0:Ms.file_id}),jo=Fi.map(Cr=>{var Ms;return(Ms=Cr.response)==null?void 0:Ms.data}),$r={history:sa(io),file_ids:zo,image_list:jo,edit:!0};Ji([...io,..._a(Di,uo,Fi)]),Rn(Di,$r,io)}},Ra=()=>{if(Ii.trim()!==""){$a(),Gn(!0);const Ge=Ai.filter(wi=>wi.status==="done"),ri=to.filter(wi=>wi.status==="done");Ji([...io,..._a(Ii,Ge,ri)]),Rn(Ii)}},Qd=Ge=>{if(Ge.shiftKey){if(Ge.key==="Enter")return}else if(Ge.key==="Enter"){if(Ge.preventDefault(),pl||Wo.current)return;Ra()}},Hd=(Ge,ri)=>{let wi=!1;Zr===!0?wi=!0:Zr==="last"&&(wi=io.reduce((zo,jo,$r)=>jo.sender==="user"?$r:zo,-1)===ri);const Di=ri===Xi,uo=[...(Ge==null?void 0:Ge.fileList)||[],...(Ge==null?void 0:Ge.imageList)||[]];return wt.createElement("div",{className:ve.li,style:{width:vr}},wt.createElement("div",{className:ve.avatarIcon},wt.createElement("img",{className:ve.img,src:ii})),wt.createElement("div",{className:ve.content},!!(uo!=null&&uo.length)&&wt.createElement("div",{className:ve.fileWrap},uo==null?void 0:uo.map((Fi,zo)=>{var jo,$r;return wt.createElement("div",{key:zo,className:ve.file},wt.createElement("img",{src:Qt(90034)(`./${(($r=(jo=Fi==null?void 0:Fi.name)==null?void 0:jo.split("."))==null?void 0:$r.pop())||"txt"}.png`),width:20,className:"mr10"}),wt.createElement("aside",null,wt.createElement(ue.Z,{title:Fi==null?void 0:Fi.name},wt.createElement("div",{className:ve.fileName},Fi==null?void 0:Fi.name)),wt.createElement("div",{className:"c-grey-999 font12"},(0,hn.RD)(Fi==null?void 0:Fi.size))))})),wt.createElement("div",{className:ve.borderBox},Di?wt.createElement(Me.default.TextArea,{value:mo,ref:ze,autoSize:!0,placeholder:"\u8BF7\u8F93\u5165",bordered:!1,onChange:Fi=>He(Fi.target.value)}):wt.createElement("div",{className:ve.text},Ge==null?void 0:Ge.text)),Di?wt.createElement("div",{className:ve.action},wt.createElement(qt.ZP,{onClick:()=>{He(""),Vi(null)},size:"small"},"\u53D6\u6D88"),wt.createElement(qt.ZP,{disabled:!mo.trim(),onClick:()=>nd("edit",ri),type:"primary",size:"small"},"\u786E\u8BA4")):wt.createElement("div",{className:ve.action},wt.createElement(qe.CopyToClipboard,{text:(Ge==null?void 0:Ge.text)||"",onCopy:()=>de.ZP.success("\u590D\u5236\u6210\u529F")},wt.createElement(ue.Z,{title:"\u590D\u5236"},wt.createElement("i",{className:"iconfont icon-fuzhi8 font13"}))),wi&&!ei&&wt.createElement(ue.Z,{title:"\u7F16\u8F91"},wt.createElement("i",{onClick:()=>{Vi(ri),He((Ge==null?void 0:Ge.text)||"")},className:"iconfont icon-bianji10 font14"})))))},cn=(Ge,ri)=>{let wi=!1;Es===!0?wi=!0:Es==="last"&&(wi=io.reduce((Fi,zo,jo)=>zo.sender==="AI"?jo:Fi,-1)===ri);let Di="";return Ge!=null&&Ge.source?Di=Ge==null?void 0:Ge.source:(Ge==null?void 0:Ge.model)==="deepseek-r1"?Di="\u7531deepseek\u751F\u6210":(Ge==null?void 0:Ge.model)==="qwen-max"&&(Di="\u7531\u901A\u4E49\u5343\u95EE\u751F\u6210"),wt.createElement("div",{className:ve.li,style:{width:vr}},wt.createElement("div",{className:ve.avatarIcon},wt.createElement("img",{className:ve.img,src:Mn})),wt.createElement("div",{className:ve.content},wt.createElement("div",{className:ve.borderBox},Ge.loading&&wt.createElement(wt.Fragment,null,Ge!=null&&Ge.imageGenerator?wt.createElement("div",{className:ve.loadingPic},"\u6B63\u5728\u751F\u6210\u4E2D",wt.createElement("div",{className:"ai-loading"})):!(Ge!=null&&Ge.thinkingEnabled)&&wt.createElement("div",null,wt.createElement("div",{className:ve.loading},wt.createElement("div",{className:ve.dot}),wt.createElement("div",{className:ve.dot}),wt.createElement("div",{className:ve.dot})),wt.createElement("div",{style:{marginTop:10,color:"#9096A3"}},(Qi==null?void 0:Qi.text)||"\u8BF7\u8010\u5FC3\u7B49\u5F85\uFF0C\u76EE\u524D\u9AD8\u5CF0\u671F\u4F53\u9A8C\u4EBA\u6570\u8FC7\u591A\uFF0C\u6211\u4EEC\u5DF2\u8BB0\u5F55\u4E0B\u60A8\u7684\u9700\u6C42\uFF0C\u7A0D\u540E\u5C06\u81EA\u52A8\u4E3A\u60A8\u751F\u6210\u7B54\u6848\u3002"))),(Ge==null?void 0:Ge.thinkingEnabled)&&wt.createElement(vt,{time:Ge==null?void 0:Ge.time,cancelIndex:xn,loading:Ge.loading,streamingStatus:!(Ge!=null&&Ge.text),onFinish:()=>{jt(0),Ji(uo=>[...uo].map((Fi,zo)=>zo===uo.length-1?Nt(St({},Fi),{hideAnswer:!1,time:Fi.startTime?Fi.endTime-Fi.startTime:null}):Fi))},value:Ge==null?void 0:Ge.reasoning}),!!(Ge!=null&&Ge.text)&&!Ge.hideAnswer&&wt.createElement(et.Z,{cancelIndex:xn,streamingStatus:ei,loadImage:!!(Ge!=null&&Ge.imageGenerator),onFinish:()=>Ut(void 0,null,function*(){jt(0),setTimeout(()=>Zo(!1),0)}),value:Ge==null?void 0:Ge.text})),!!(Ge!=null&&Ge.text)&&Di&&wt.createElement("div",{className:ve.source},Di),wt.createElement("div",{className:ve.action},Do==null?void 0:Do(Ge,ri,{onMenuClick:Nl}),wt.createElement(qe.CopyToClipboard,{text:String((Ge==null?void 0:Ge.text)||""),onCopy:()=>de.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},wt.createElement(ue.Z,{title:"\u590D\u5236"},wt.createElement("i",{className:"iconfot icon-fuzhi8 font13"}))),mr&&!ei&&wt.createElement(wt.Fragment,null,wt.createElement(ue.Z,{title:"\u559C\u6B22"},wt.createElement("i",{style:Ge!=null&&Ge.like?{color:"#FA8D30"}:{},onClick:()=>er("like",!(Ge!=null&&Ge.like),ri),className:"iconfot icon-yijiejue font15"})),wt.createElement(ue.Z,{title:"\u4E0D\u559C\u6B22"},wt.createElement("i",{style:Ge!=null&&Ge.dislike?{color:"#e86d7c"}:{},onClick:()=>er("dislike",!(Ge!=null&&Ge.dislike),ri),className:"iconfot icon-weijiejuezhengchang font15"}))),wi&&!ei&&wt.createElement(ue.Z,{title:"\u91CD\u65B0\u751F\u6210"},wt.createElement("i",{onClick:()=>nd("redraw",ri),className:"iconfot icon-gengxin-genghuan-tihuan"})))))},er=(Ge,ri,wi)=>Ut(void 0,null,function*(){if(In){const Di=io.slice(0,wi+1),Fi=sa(Di).length;yield In({type:Ge,value:ri,index:wi,identifier:xa,objectIndex:Fi})}Ji(Di=>(Di[wi][Ge]=ri,ri&&(Di[wi][Ge==="like"?"dislike":"like"]=!1),[...Di]))}),yr=()=>{var Ge,ri;jt(1),(ri=(Ge=eo.current)==null?void 0:Ge.cancelRequest)==null||ri.call(Ge),Gn(!1),Zo(!1)},Ys=()=>Ut(void 0,null,function*(){var Ge,ri,wi;(ri=(Ge=eo.current)==null?void 0:Ge.cancelRequest)==null||ri.call(Ge),$a(),Ji([]),Gn(!0);const Di=yield Pa();(Di==null?void 0:Di.status)===0&&cl((wi=Di==null?void 0:Di.data)==null?void 0:wi.identifier),Gn(!1),Zo(!1)}),_l=()=>Ut(void 0,null,function*(){var Ge;Oe(!0);const ri=yield Os();(ri==null?void 0:ri.status)===0&&$n(((Ge=ri==null?void 0:ri.data)==null?void 0:Ge.list)||[]),Oe(!1)}),Nl=(...Ge)=>Ut(void 0,[...Ge],function*(ri=xa){var wi,Di,uo,Fi;(Di=(wi=eo.current)==null?void 0:wi.cancelRequest)==null||Di.call(wi),$a(),Bi(!0);const zo=yield Fl(ri);if(zo.status===0){const jo=Bs(((uo=zo==null?void 0:zo.data)==null?void 0:uo.messages)||[]);Ji(jo),Bi(!1),cl((Fi=zo==null?void 0:zo.data)==null?void 0:Fi.identifier);return}Ji([]),Bi(!1)}),pi=(Ge,ri)=>Ut(void 0,null,function*(){(yield ce(Ge)).status===0&&(de.ZP.success("\u5220\u9664\u6210\u529F"),ri===xa&&Ys(),_l())}),dh=()=>wt.createElement("div",{className:ve.menuWarp},wt.createElement("h4",null,"\u5386\u53F2\u5BF9\u8BDD"),wt.createElement(Ce.Z,{spinning:Ui},!We.length&&wt.createElement(ge.Z,{style:{width:250,paddingBottom:30},image:ge.Z.PRESENTED_IMAGE_SIMPLE}),!!We.length&&wt.createElement("div",{className:ve.menu},We.map(function(Ge,ri){return wt.createElement("aside",{className:kt()(xa===Ge.identifier&&ve.active),key:Ge.id,onClick:()=>Nl(Ge.id)},wt.createElement("div",{className:ve.menuText},wt.createElement(ue.Z,{title:Ge==null?void 0:Ge.question},wt.createElement("span",null,Ge==null?void 0:Ge.question)),ao&&ao(Ge)),wt.createElement("div",{className:ve.menuDel,onClick:wi=>wi.stopPropagation()},wt.createElement(pe.Z,{title:"\u63D0\u793A",description:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u672C\u6761\u5BF9\u8BDD\u5417\uFF1F",onConfirm:()=>pi(Ge.id,Ge.identifier),okText:"\u786E\u8BA4",zIndex:1100,cancelText:"\u53D6\u6D88"},wt.createElement("i",{className:"iconfont icon-shanchu14 delete-hover font14"}))))})))),tl=Ge=>{if(Ge==="file"){if(to.length){Re.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4\u8986\u76D6",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5DF2\u5B58\u5728\u56FE\u7247\uFF0C\u4E0A\u4F20\u6587\u4EF6\u540E\u56FE\u7247\u5C06\u4F1A\u88AB\u8986\u76D6?",onOk:()=>{Jn([]),Oo.current.upload.uploader.fileInput.click()}});return}Oo.current.upload.uploader.fileInput.click()}if(Ge==="image"){if(Ai.length){Re.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4\u8986\u76D6",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5DF2\u5B58\u5728\u6587\u4EF6\uFF0C\u4E0A\u4F20\u56FE\u7247\u540E\u6587\u4EF6\u5C06\u4F1A\u88AB\u8986\u76D6?",onOk:()=>{Zi([]),_o.current.upload.uploader.fileInput.click()}});return}_o.current.upload.uploader.fileInput.click()}},js=[{key:"file",disabled:Ai.length>=Pu,label:wt.createElement(ue.Z,{placement:"right",title:wt.createElement("div",null,wt.createElement("b",null,"\u4E0A\u4F20\u9644\u4EF6\uFF08\u4EC5\u8BC6\u522B\u6587\u5B57\uFF09"),wt.createElement("div",null,"\u6700\u591A 50 \u4E2A\uFF0C\u6BCF\u4E2A 100 MB\uFF0C\u652F\u6301\u5404\u7C7B\u578B\u6587\u6863"))},wt.createElement("span",null,wt.createElement("i",{className:"iconfont icon-fujian3 font14 mr5"}),"\u4E0A\u4F20\u6587\u6863"))},Pe!=="deepseek-r1"&&{key:"image",disabled:to.length>=ja,label:wt.createElement(ue.Z,{placement:"right",title:"\u652F\u6301\u4E0D\u8D85\u8FC710M\u7684PNG/JPG\u56FE\u7247\uFF0C\u6700\u591A10\u4E2A"},wt.createElement("span",null,wt.createElement("i",{className:"iconfont icon-tupianshangchuan font14 mr5"}),"\u4E0A\u4F20\u56FE\u7247"))}].filter(Boolean),ms=[...Ai,...to],pl=ms.some(Ge=>Ge.status==="uploading")||ei||Or,ml=fn>=Vn,Ls=Ve||Ai.length>=Pu||to.length>=ja,wa=Oi||Jr||Sa||!!ms.length;return wt.createElement("div",null,Yn?wt.createElement("div",{onClick:Co},Yn):wt.createElement(bn,{draggableExtraNode:Sn,src:kn,onClick:Co,topPercentage:bo}),wt.createElement(ae.Z,{open:Zn,width:qo?"100%":Pt,afterOpenChange:Ge=>{Ge&&Un(!1)},push:!1,contentWrapperStyle:hi?{}:{transition:"none"},extra:wt.createElement("div",{className:ve.head},Yi,oa&&wt.createElement(Dn,{value:Pe,onChange:Ge=>{Jo(!1),Bo(!1),Ze(Ge),Jn([]),Zi([])}}),Ae&&wt.createElement(wt.Fragment,null,wt.createElement(Te.Z,{dropdownRender:dh,onOpenChange:Ge=>{Ge&&_l()},placement:"bottomLeft",arrow:!0},wt.createElement("div",{className:ve.headBtn},wt.createElement("i",{className:"icon-lishiduihua1 font14 mr10"}),"\u5386\u53F2\u5BF9\u8BDD"))),li&&wt.createElement(wt.Fragment,null,wt.createElement("div",{className:ve.headBtn,onClick:Ys},wt.createElement("i",{className:"icon-xinjianduihua font14 mr10"}),"\u65B0\u5EFA\u5BF9\u8BDD")),wt.createElement(ue.Z,{title:qo?"\u9000\u51FA\u5168\u5C4F":"\u5168\u5C4F"},wt.createElement("div",{className:ve.headBtn,style:{padding:"0 12px"},onClick:()=>ra(!qo)},qo&&wt.createElement("i",{className:"iconfont icon-tuichuquanping3"}),!qo&&wt.createElement("i",{className:"iconfont icon-quanping4"})))),title:wt.createElement("span",{className:"c-grey-333 font16"},Be),onClose:Lr,bodyStyle:{paddingRight:4}},wt.createElement("div",{className:kt()(ve.wrap,Zn&&"body-overflow-hidden")},wt.createElement("div",{ref:qi,className:ve.chatContainer},so&&wt.createElement("div",{className:`${ve.li} mb20`,style:{width:vr}},wt.createElement("div",{className:ve.avatarIcon},wt.createElement("img",{className:ve.img,src:Mn})),wt.createElement("div",{className:ve.content},wt.createElement("div",{className:ve.borderBox},Mi,wr==null?void 0:wr({isDisabledNum:ml,checkNumModal:hh,checkNum:_r,onClose:Lr,setChatData:Ji,setLoading:Gn,getData:Rn,clearStatus:$a,typing:Or,setImageGenerator:Bo,renderChatItems:_a,setSceneAwareness:dr,setIdentifier:cl})))),wt.createElement("div",{ref:Il},wt.createElement(Ce.Z,{spinning:_n,className:"mt20"},io==null?void 0:io.map((Ge,ri)=>wt.createElement(wt.Fragment,{key:Ge.key+ri},Ge.show&&wt.createElement(wt.Fragment,null,Ge.sender==="user"&&Hd(Ge,ri),Ge.sender==="AI"&&cn(Ge,ri),ci&&!["AI","user"].includes(Ge.sender)&&ci(Ge,ri,{width:vr})))))),!xu&&wt.createElement("div",{className:ve.backBottom,onClick:()=>{qi.current.scrollTop=qi.current.scrollHeight}},wt.createElement("i",{className:"iconfont icon-huidaodibu"})),wt.createElement("div",{ref:Dr})),!dn&&wt.createElement("div",{className:kt()(ve.footerContainer,Ci&&ve.full,wa&&ve.footerContainerSelected)},wt.createElement("div",{className:ve.btnWrp},po&&wt.createElement(ue.Z,{title:"\u667A\u80FD\u611F\u77E5\u5F53\u524D\u60C5\u5883\uFF0C\u63D0\u4F9B\u9488\u5BF9\u6027\u89E3\u7B54"},wt.createElement("div",{onClick:()=>dr(!Sa),className:kt()(ve.btn,Sa&&ve.btnActive)},wt.createElement("i",{className:"iconfont icon-changjingganzhi mr10 font12"}),"\u573A\u666F\u611F\u77E5")),Pe==="deepseek-r1"&&wt.createElement(ue.Z,{title:"\u8C03\u7528\u65B0\u6A21\u578B DeepSeek-R1\uFF0C\u89E3\u51B3\u63A8\u7406\u95EE\u9898"},wt.createElement("div",{onClick:()=>Jo(!Jr),className:kt()(ve.btn,Jr&&ve.btnActive)},wt.createElement("i",{className:"iconfont icon-shendusikao mr10 font12"}),"\u6DF1\u5EA6\u601D\u8003\uFF08R1\uFF09")),je&&Pe==="qwen-max"&&wt.createElement("div",{onClick:()=>Bo(!Oi),className:kt()(ve.btn,Oi&&ve.btnActive)},wt.createElement("i",{className:"iconfont icon-shangchuantupian2 mr10 font12"}),"\u56FE\u50CF\u751F\u6210"),ms.map(Ge=>wt.createElement("div",{key:Ge.uid},(Ge==null?void 0:Ge.status)==="uploading"&&wt.createElement(Ce.Z,{indicator:wt.createElement(So.Z,{spin:!0}),className:"mr10",size:"small",spinning:!0}),wt.createElement("span",{title:Ge==null?void 0:Ge.name,className:"mr10"},(0,hn.Pq)(Ge.name,20)),wt.createElement("i",{onClick:()=>{Zi(ri=>ri.filter(wi=>wi.uid!==Ge.uid)),Jn(ri=>ri.filter(wi=>wi.uid!==Ge.uid))},className:"iconfont current icon-shanchu15 delete-hover c-red-ee4 font12"})))),wt.createElement(ue.Z,{title:ml&&wt.createElement("div",null,wt.createElement("div",null,"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),wt.createElement("div",null,"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F",Vn,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))},wt.createElement("div",{className:kt()(ve.inputContainer,$o>4&&ve.lineFour,ml&&ve.disabledInput)},wt.createElement(Se.default,St({ref:Oo},wu)),wt.createElement(Se.default,St({ref:_o},tr)),wt.createElement(Te.Z,{className:`${Ls&&"hide"}`,menu:{items:js,onClick:Ge=>tl(Ge.key)},placement:"top"},wt.createElement(qt.ZP,{className:ve.uploadBtn,icon:wt.createElement(yi.Z,{style:{fontSize:18,color:"#FFF"}})})),wt.createElement(Me.default.TextArea,{rows:$o>4?4:$o,placeholder:Je||"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u95EE\u9898\u5427,Shift+Enter\u6362\u884C\uFF5E",value:Ii,bordered:!1,style:Ls?{paddingLeft:0,marginLeft:0}:{},onChange:Dg,onPressEnter:Qd,onCompositionStart:()=>{Wo.current=!0},onCompositionEnd:()=>{Wo.current=!1}}),Or?wt.createElement(ue.Z,{title:"\u505C\u6B62\u751F\u6210"},wt.createElement("div",{className:`iconfont icon-tingzhihuida ${ve.cancelBtn}`,onClick:yr})):wt.createElement(qt.ZP,{className:(Ii==null?void 0:Ii.trim())===""?ve.sendBtnDisabled:ve.sendBtn,icon:wt.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:pl,onClick:Ra}),$o>4&&wt.createElement("span",{className:ve.fullIcon,onClick:Cu},Ci&&wt.createElement("span",{className:"iconfont icon-shousuo"}),!Ci&&wt.createElement("span",{className:"iconfont icon-zhankai"}))))))))}},10672:function(Qe,gn,Qt){"use strict";Qt.d(gn,{Z:function(){return ge}});var wt=Qt(59301),de=Qt(92832),Se=Qt(12563),Re=Qt(8591),ue={flex:"flex___eLcnP",flex1:"flex1___yUTT7",color666:"color666___TiUhG",error:"error___gTTtv",deleteIcon:"deleteIcon___mnZW1",addIcon:"addIcon___JC5NS"},Me=Qt(62772);const{TextArea:qt}=de.default;class Ce extends wt.Component{constructor(ae){super(ae),this.state={inputVisible:!1,EditInputIndex:-1}}render(){let{index:ae,onAnswerChange:Te,addChildAnswer:De,exerciseIsPublish:kt,answers:et,activeOptionErrorIndex:nt,flex:gt="0 0 1000px"}=this.props;console.log("----",et);let{inputVisible:lt,EditInputIndex:pt}=this.state;return wt.createElement("div",{className:ue.flex},wt.createElement("div",{className:`${ue.color666} mb5 mt6`,style:{flex:"0 0 90px"}},"\u7B54\u6848(\u586B\u7A7A",ae+1,"):"),wt.createElement("div",{style:{border:"1px solid #f6f6f6",flex:1,padding:10}},et==null?void 0:et.map((vt,Ct)=>wt.createElement(wt.Fragment,null,pt!==Ct?(vt==null?void 0:vt.length)>0?wt.createElement(Se.default,{className:"edit-tag",key:vt,closable:!((et==null?void 0:et.length)===1&&Ct===0),onClose:Ft=>{Ft.preventDefault(),(et==null?void 0:et.length)===1&&Ct===0?this.props.deleteChildAnswermain(ae,Ct):this.props.deleteChildAnswer(ae,Ct)}},wt.createElement("span",{onDoubleClick:Ft=>{this.setState({EditInputIndex:Ct}),Ft.preventDefault()}},vt)):wt.createElement(de.default,{defaultValue:vt,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:Ft=>{if(Ft.target.value.replaceAll(" ","").length<=0){Re.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}Te(ae,Ct,Ft.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}):wt.createElement(de.default,{defaultValue:vt,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:Ft=>{if(Ft.target.value.replaceAll(" ","").length<=0){Re.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}Te(ae,Ct,Ft.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}))),!lt&&wt.createElement(Se.default,{className:"site-tag-plus",onClick:()=>{De(ae),this.setState({inputVisible:!0})}},wt.createElement(Me.Z,null)," \u65B0\u589E\u7B54\u6848")))}}var ge=Ce},65158:function(Qe,gn,Qt){"use strict";Qt.d(gn,{Z:function(){return kt}});var wt=Qt(59301),de=Qt(12290),Se=Object.defineProperty,Re=Object.defineProperties,ue=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,qt=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,ge=(et,nt,gt)=>nt in et?Se(et,nt,{enumerable:!0,configurable:!0,writable:!0,value:gt}):et[nt]=gt,pe=(et,nt)=>{for(var gt in nt||(nt={}))qt.call(nt,gt)&&ge(et,gt,nt[gt]);if(Me)for(var gt of Me(nt))Ce.call(nt,gt)&&ge(et,gt,nt[gt]);return et},ae=(et,nt)=>Re(et,ue(nt)),Te=(et,nt,gt)=>ge(et,typeof nt!="symbol"?nt+"":nt,gt);const De="\u2581";class kt extends wt.Component{constructor(){super(...arguments),Te(this,"getChCountBeforeCursor",(nt,gt)=>{const lt=gt.line;let pt=0;for(let Ct=0;Ct{const lt=nt.getRange(gt.from,gt.to);let pt=0;if(gt.text.forEach(vt=>{pt+=vt.split(De).length-1}),lt&<.indexOf(De)!=-1){const vt=lt.split(De).length-1,Ct=this.getChCountBeforeCursor(nt,gt.from);console.log(`\u5220\u9664${vt}\u4E2A\uFF0C \u4E4B\u524D\u6709${Ct}\u4E2A\uFF0C\u65B0\u589E${pt}\u4E2A`),this.props.deleteEmptyDisabled?gt.cancel():this.props.onPlaceholderChange&&this.props.onPlaceholderChange(Ct,vt,pt)}else if(pt){const vt=this.getChCountBeforeCursor(nt,gt.from);console.log(`\u65B0\u589E${pt}\u4E2A\uFF0C\u4E4B\u524D\u6709${vt}\u4E2A`),this.props.onPlaceholderChange&&this.props.onPlaceholderChange(vt,0,pt)}})}render(){return wt.createElement(de.Z,ae(pe({},this.props),{onCMBeforeChange:this.onCMBeforeChange}))}}},9165:function(Qe,gn,Qt){"use strict";Qt.d(gn,{t:function(){return Te}});var wt=Qt(59301),de=Qt(3113),Se={buttonFixed:"buttonFixed___vyq30",button:"button___hxmYv",buttonWrap:"buttonWrap___uK8dl"},Re=Qt(92310),ue=Qt.n(Re),Me=Object.defineProperty,qt=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,pe=(De,kt,et)=>kt in De?Me(De,kt,{enumerable:!0,configurable:!0,writable:!0,value:et}):De[kt]=et,ae=(De,kt)=>{for(var et in kt||(kt={}))Ce.call(kt,et)&&pe(De,et,kt[et]);if(qt)for(var et of qt(kt))ge.call(kt,et)&&pe(De,et,kt[et]);return De};const Te=({cancelText:De="\u53D6\u6D88",okText:kt="\u786E\u5B9A",loading:et=!1,hasOkBtn:nt=!0,hasCancelBtn:gt=!0,okButtonProps:lt={},onCancel:pt=()=>{},onOk:vt=()=>{},className:Ct=""})=>wt.createElement("div",{className:ue()(Se.buttonFixed,Ct)},wt.createElement("div",{className:Se.buttonWrap},gt&&wt.createElement(de.ZP,{size:"middle",className:`${Se.button} mr20`,onClick:pt},De),nt&&wt.createElement(de.ZP,ae({size:"middle",type:"primary",className:`${Se.button} mr20`,loading:et,onClick:vt},lt),kt)))},16406:function(Qe,gn,Qt){"use strict";Qt.d(gn,{Z:function(){return Pn}});var wt=Qt(59301),de={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Se=Qt(92310),Re=Qt.n(Se),ue=Qt(71418);var Me=function(Ot,Et){return(Me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(St,Nt){St.__proto__=Nt}||function(St,Nt){for(var Ut in Nt)Object.prototype.hasOwnProperty.call(Nt,Ut)&&(St[Ut]=Nt[Ut])})(Ot,Et)};function qt(Ot,Et){function St(){this.constructor=Ot}Me(Ot,Et),Ot.prototype=Et===null?Object.create(Et):(St.prototype=Et.prototype,new St)}function Ce(Ot,Et,St,Nt){return new(St||(St=Promise))(function(Ut,Lt){function te(Ve){try{Je(Nt.next(Ve))}catch(dn){Lt(dn)}}function Be(Ve){try{Je(Nt.throw(Ve))}catch(dn){Lt(dn)}}function Je(Ve){var dn;Ve.done?Ut(Ve.value):(dn=Ve.value,dn instanceof St?dn:new St(function(Mn){Mn(dn)})).then(te,Be)}Je((Nt=Nt.apply(Ot,Et||[])).next())})}function ge(Ot,Et){var St,Nt,Ut,Lt,te={label:0,sent:function(){if(1&Ut[0])throw Ut[1];return Ut[1]},trys:[],ops:[]};return Lt={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&(Lt[Symbol.iterator]=function(){return this}),Lt;function Be(Je){return function(Ve){return function(dn){if(St)throw new TypeError("Generator is already executing.");for(;te;)try{if(St=1,Nt&&(Ut=2&dn[0]?Nt.return:dn[0]?Nt.throw||((Ut=Nt.return)&&Ut.call(Nt),0):Nt.next)&&!(Ut=Ut.call(Nt,dn[1])).done)return Ut;switch(Nt=0,Ut&&(dn=[2&dn[0],Ut.value]),dn[0]){case 0:case 1:Ut=dn;break;case 4:return te.label++,{value:dn[1],done:!1};case 5:te.label++,Nt=dn[1],dn=[0];continue;case 7:dn=te.ops.pop(),te.trys.pop();continue;default:if(Ut=te.trys,!((Ut=Ut.length>0&&Ut[Ut.length-1])||dn[0]!==6&&dn[0]!==2)){te=0;continue}if(dn[0]===3&&(!Ut||dn[1]>Ut[0]&&dn[1]{switch(Qn){case Mn:return wt.createElement(Tn,{callback:jt,onCancel:qr});case $i:return wt.createElement(Dn.Z,{callback:jt,onCancel:qr});case ii:return wt.createElement(ve.Z,{callback:jt,onCancel:qr});case kn:return wt.createElement(Wn,{callback:jt,onCancel:qr});case Do:return wt.createElement(Nt,{callback:jt,onCancel:qr});case"maths-latex":return wt.createElement(Je,{showSaveButton:!0,callback:jt});case"inline-latex":return wt.createElement(Ve.Z,{showSaveButton:!0,callback:jt});default:return null}},[Qn]);function qr(){Ci("")}(0,wt.useEffect)(()=>{if(Oi.current){let hi=function(_o){ji=!0,Oo=_o.pageY},Un=function(){ji=!1},We=function(_o){if(ji){let Wo=_o.pageY-Oo;Wo<0&&(Wo=0),Wo>300&&(Wo=300);let vr=In+Wo+"px";mo(vr)}},$n=Oi.current,ji=!1,Oo=0;return $n.addEventListener("mousedown",hi),document.addEventListener("mousemove",We),document.addEventListener("mouseup",Un),()=>{$n.removeEventListener("mousedown",hi),document.removeEventListener("mousemove",We),document.removeEventListener("mouseup",Un)}}},[Oe,Oi]),(0,wt.useEffect)(()=>{mo(In)},[In]);const kl=wr(fe),xa=wr(Vi),Il={width:kl,height:xa},xu=(0,wt.useMemo)(()=>{if(oo){let hi=new Date(oo),Un=hi.getHours(),We=hi.getMinutes(),$n=hi.getSeconds();return Un=Un<10?"0"+Un:Un,We=We<10?"0"+We:We,$n=$n<10?"0"+$n:$n,`${Un}:${We}:${$n}`}return 0},[oo]),td=hi=>{const Un=[];if(Zn){let We=-1;hi=hi.replace(/(@▁▁@|@▁@)/g,function($n,ji,Oo){Un.push({multiLine:$n!==Pt})})}return Un};function ed(){window.sessionStorage.removeItem(ao),qi(!1),Xi(0)}function Lo(){qi(!1),Xi(0),Oe.setValue(window.sessionStorage.getItem(ao))}(0,wt.useEffect)(()=>{bo[Qn]&&Qn!==Yn&&Qn!==kn&&setTimeout(()=>{const hi=document.getElementsByClassName("markdown-popup-form")[0],Un=window.innerWidth/2-hi.offsetWidth/2,We=window.innerHeight/2-hi.offsetHeight/2;eo(Un),Zo(We)},0)},[Qn]);const qo=hi=>{hi.preventDefault();const Un=hi.clientX-ze,We=hi.clientY-Or;document.body.onmousemove=$n=>{let ji=$n.clientX-Un,Oo=$n.clientY-We;const _o=document.getElementsByClassName("markdown-popup-form")[0],Wo=window.innerWidth-_o.offsetWidth,vr=window.innerHeight-_o.offsetHeight;ji=Math.max(0,Math.min(ji,Wo)),Oo=Math.max(0,Math.min(Oo,vr)),ra($n.clientX,$n.clientY,Un,We)&&(eo(ji),Zo(Oo))},document.body.onmouseup=function(){document.body.onmousemove=null}},ra=(hi,Un,We,$n)=>{const ji=document.body.clientHeight,Oo=document.body.clientWidth;return hi<20&&We>hi||hi>Oo-20&&WeUn||Un>ji-20&&$n$t in ne?ae(ne,$t,{enumerable:!0,configurable:!0,writable:!0,value:me}):ne[$t]=me,lt=(ne,$t)=>{for(var me in $t||($t={}))et.call($t,me)&>(ne,me,$t[me]);if(kt)for(var me of kt($t))nt.call($t,me)&>(ne,me,$t[me]);return ne},pt=(ne,$t)=>Te(ne,De($t));const{useForm:vt}=wt.default,Ct={width:280,marginRight:10},Ft={labelCol:{span:5},wrapperCol:{span:19}};var Ht=({callback:ne,onCancel:$t})=>{const[me]=vt();let Zt=(0,ge.useRef)();function ke(on){Zt.current.width=me.getFieldValue("width"),Zt.current.align=me.getFieldValue("align"),ne(on,Zt.current)}function he(on,un){if(on.status===-1){de.ZP.error(on.message);return}me.setFieldsValue({src:`/api/attachments/${on.id}`,type:un.type})}function xe(on){let un=on.target.files[0];Zt.current=un,_t(un,he)}return pe.createElement(wt.default,pt(lt({form:me},Ft),{className:"upload-image-panel",onFinish:ke,style:{width:470,overflow:"hidden"}}),pe.createElement(wt.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},pe.createElement("div",{className:"flex-container"},pe.createElement(wt.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},pe.createElement(Se.default,{style:Ct})),pe.createElement(Vt,{onFileChange:xe}))),pe.createElement(wt.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},pe.createElement(Se.default,{style:{width:264}})),pe.createElement(wt.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},pe.createElement(Re.Z,null,pe.createElement(wt.default.Item,{name:"width",style:{margin:0}},pe.createElement(ue.Z,{style:{width:264}})),pe.createElement("span",{className:"ml8"},"%"))),pe.createElement(wt.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},pe.createElement(Me.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),pe.createElement("aside",null,pe.createElement(wt.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},pe.createElement(qt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),pe.createElement(qt.ZP,{type:"default",onClick:$t},"\u53D6\u6D88"))))};function Vt({onFileChange:ne}){return pe.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",pe.createElement("input",{type:"file",onChange:ne}))}function _t(ne,$t){if(!ne)throw new String("\u6CA1\u6709\u6587\u4EF6");let me=new FormData;me.append("editormd-image-file",ne),me.append("file_param_name","editormd-image-file"),me.append("byxhr","true");var Zt=new window.XMLHttpRequest;Zt.withCredentials=!0,Zt.addEventListener("load",function(ke){$t(JSON.parse(ke.target.responseText),ne)},!1),Zt.addEventListener("error",function(ke){console.error(ke)},!1),Zt.open("POST",`${Ce.KI}/api/attachments.json`),Zt.send(me)}},79346:function(Qe,gn,Qt){"use strict";Qt.d(gn,{Z:function(){return Se}});var wt=Qt(59301),de=Qt(4676);class Se extends wt.Component{constructor(ue){super(ue);const Me=window.document;this.node=Me.createElement("div"),Me.body.appendChild(this.node)}render(){const{children:ue}=this.props;return(0,de.createPortal)(ue,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23954:function(Qe,gn,Qt){"use strict";Qt.d(gn,{SV:function(){return fi},ZP:function(){return gi}});var wt=Qt(59301),de=Qt(76374);const Se={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"]},Re={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(` +`),Oe.focus();default:throw new Error}},[Oe,Qn]),Dr=(0,wt.useMemo)(()=>{switch(Qn){case Mn:return wt.createElement(Tn,{callback:jt,onCancel:qr});case $i:return wt.createElement(Dn.Z,{callback:jt,onCancel:qr});case ii:return wt.createElement(ve.Z,{callback:jt,onCancel:qr});case kn:return wt.createElement(Wn,{callback:jt,onCancel:qr});case Do:return wt.createElement(Nt,{callback:jt,onCancel:qr});case"maths-latex":return wt.createElement(Je,{showSaveButton:!0,callback:jt});case"inline-latex":return wt.createElement(Ve.Z,{showSaveButton:!0,callback:jt});default:return null}},[Qn]);function qr(){Ci("")}(0,wt.useEffect)(()=>{if(Oi.current){let hi=function(_o){ji=!0,Oo=_o.pageY},Un=function(){ji=!1},We=function(_o){if(ji){let Wo=_o.pageY-Oo;Wo<0&&(Wo=0),Wo>300&&(Wo=300);let vr=In+Wo+"px";mo(vr)}},$n=Oi.current,ji=!1,Oo=0;return $n.addEventListener("mousedown",hi),document.addEventListener("mousemove",We),document.addEventListener("mouseup",Un),()=>{$n.removeEventListener("mousedown",hi),document.removeEventListener("mousemove",We),document.removeEventListener("mouseup",Un)}}},[Oe,Oi]),(0,wt.useEffect)(()=>{mo(In)},[In]);const Il=wr(fe),xa=wr(Vi),cl={width:Il,height:xa},xu=(0,wt.useMemo)(()=>{if(oo){let hi=new Date(oo),Un=hi.getHours(),We=hi.getMinutes(),$n=hi.getSeconds();return Un=Un<10?"0"+Un:Un,We=We<10?"0"+We:We,$n=$n<10?"0"+$n:$n,`${Un}:${We}:${$n}`}return 0},[oo]),td=hi=>{const Un=[];if(Zn){let We=-1;hi=hi.replace(/(@▁▁@|@▁@)/g,function($n,ji,Oo){Un.push({multiLine:$n!==Pt})})}return Un};function ed(){window.sessionStorage.removeItem(ao),qi(!1),Xi(0)}function Lo(){qi(!1),Xi(0),Oe.setValue(window.sessionStorage.getItem(ao))}(0,wt.useEffect)(()=>{bo[Qn]&&Qn!==Yn&&Qn!==kn&&setTimeout(()=>{const hi=document.getElementsByClassName("markdown-popup-form")[0],Un=window.innerWidth/2-hi.offsetWidth/2,We=window.innerHeight/2-hi.offsetHeight/2;eo(Un),Zo(We)},0)},[Qn]);const qo=hi=>{hi.preventDefault();const Un=hi.clientX-ze,We=hi.clientY-Or;document.body.onmousemove=$n=>{let ji=$n.clientX-Un,Oo=$n.clientY-We;const _o=document.getElementsByClassName("markdown-popup-form")[0],Wo=window.innerWidth-_o.offsetWidth,vr=window.innerHeight-_o.offsetHeight;ji=Math.max(0,Math.min(ji,Wo)),Oo=Math.max(0,Math.min(Oo,vr)),ra($n.clientX,$n.clientY,Un,We)&&(eo(ji),Zo(Oo))},document.body.onmouseup=function(){document.body.onmousemove=null}},ra=(hi,Un,We,$n)=>{const ji=document.body.clientHeight,Oo=document.body.clientWidth;return hi<20&&We>hi||hi>Oo-20&&WeUn||Un>ji-20&&$n$t in ne?ae(ne,$t,{enumerable:!0,configurable:!0,writable:!0,value:me}):ne[$t]=me,lt=(ne,$t)=>{for(var me in $t||($t={}))et.call($t,me)&>(ne,me,$t[me]);if(kt)for(var me of kt($t))nt.call($t,me)&>(ne,me,$t[me]);return ne},pt=(ne,$t)=>Te(ne,De($t));const{useForm:vt}=wt.default,Ct={width:280,marginRight:10},Ft={labelCol:{span:5},wrapperCol:{span:19}};var Ht=({callback:ne,onCancel:$t})=>{const[me]=vt();let Zt=(0,ge.useRef)();function ke(on){Zt.current.width=me.getFieldValue("width"),Zt.current.align=me.getFieldValue("align"),ne(on,Zt.current)}function he(on,un){if(on.status===-1){de.ZP.error(on.message);return}me.setFieldsValue({src:`/api/attachments/${on.id}`,type:un.type})}function xe(on){let un=on.target.files[0];Zt.current=un,_t(un,he)}return pe.createElement(wt.default,pt(lt({form:me},Ft),{className:"upload-image-panel",onFinish:ke,style:{width:470,overflow:"hidden"}}),pe.createElement(wt.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},pe.createElement("div",{className:"flex-container"},pe.createElement(wt.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},pe.createElement(Se.default,{style:Ct})),pe.createElement(Vt,{onFileChange:xe}))),pe.createElement(wt.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},pe.createElement(Se.default,{style:{width:264}})),pe.createElement(wt.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},pe.createElement(Re.Z,null,pe.createElement(wt.default.Item,{name:"width",style:{margin:0}},pe.createElement(ue.Z,{style:{width:264}})),pe.createElement("span",{className:"ml8"},"%"))),pe.createElement(wt.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},pe.createElement(Me.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),pe.createElement("aside",null,pe.createElement(wt.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},pe.createElement(qt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),pe.createElement(qt.ZP,{type:"default",onClick:$t},"\u53D6\u6D88"))))};function Vt({onFileChange:ne}){return pe.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",pe.createElement("input",{type:"file",onChange:ne}))}function _t(ne,$t){if(!ne)throw new String("\u6CA1\u6709\u6587\u4EF6");let me=new FormData;me.append("editormd-image-file",ne),me.append("file_param_name","editormd-image-file"),me.append("byxhr","true");var Zt=new window.XMLHttpRequest;Zt.withCredentials=!0,Zt.addEventListener("load",function(ke){$t(JSON.parse(ke.target.responseText),ne)},!1),Zt.addEventListener("error",function(ke){console.error(ke)},!1),Zt.open("POST",`${Ce.KI}/api/attachments.json`),Zt.send(me)}},79346:function(Qe,gn,Qt){"use strict";Qt.d(gn,{Z:function(){return Se}});var wt=Qt(59301),de=Qt(4676);class Se extends wt.Component{constructor(ue){super(ue);const Me=window.document;this.node=Me.createElement("div"),Me.body.appendChild(this.node)}render(){const{children:ue}=this.props;return(0,de.createPortal)(ue,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23954:function(Qe,gn,Qt){"use strict";Qt.d(gn,{SV:function(){return fi},ZP:function(){return gi}});var wt=Qt(59301),de=Qt(76374);const Se={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"]},Re={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"]},ue={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(` @@ -1091,21 +1091,21 @@ ${ve} `:'
            '+(me?ne:(0,Se.escape)(ne,!0))+"
            "},ge.heading=function(ne,$t,me){let Zt=this.options.headerPrefix+me.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return qt.push({anchor:Zt,level:$t,text:ne}),"'+ne+""},de().setOptions({silent:!0,gfm:!0,pedantic:!1}),de().use({tokenizer:et,renderer:ge}),gn.ZP=de()},77578:function(Qe,gn,Qt){"use strict";Qt.d(gn,{Z:function(){return wt}});const wt=de=>de?typeof de=="function"?de():de:null},14478:function(Qe,gn,Qt){"use strict";Qt.d(gn,{Z:function(){return $t}});var wt=Qt(96512),de=Qt(92310),Se=Qt.n(de),Re=Qt(10228),ue=Qt(18929),Me=Qt(2738),qt=Qt(59301),Ce=Qt(92343),ge=Qt(36355),pe=Qt(60324),ae=Qt(92806),Te=Qt(77578),De=Qt(3113),kt=Qt(67797),et=Qt(9763),nt=Qt(31724),gt=Qt(39722),lt=Qt(83116);const pt=me=>{const{componentCls:Zt,iconCls:ke,antCls:he,zIndexPopup:xe,colorText:on,colorWarning:un,marginXXS:pn,marginXS:Fn,fontSize:se,fontWeightStrong:Wt,colorTextHeading:_e}=me;return{[Zt]:{zIndex:xe,[`&${he}-popover`]:{fontSize:se},[`${Zt}-message`]:{marginBottom:Fn,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${Zt}-message-icon ${ke}`]:{color:un,fontSize:se,lineHeight:1,marginInlineEnd:Fn},[`${Zt}-title`]:{fontWeight:Wt,color:_e,"&:only-child":{fontWeight:"normal"}},[`${Zt}-description`]:{marginTop:pn,color:on}},[`${Zt}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:Fn}}}}};var vt=(0,lt.Z)("Popconfirm",me=>pt(me),me=>{const{zIndexPopupBase:Zt}=me;return{zIndexPopup:Zt+60}},{resetStyle:!1}),Ct=function(me,Zt){var ke={};for(var he in me)Object.prototype.hasOwnProperty.call(me,he)&&Zt.indexOf(he)<0&&(ke[he]=me[he]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,he=Object.getOwnPropertySymbols(me);xe{const{prefixCls:Zt,okButtonProps:ke,cancelButtonProps:he,title:xe,description:on,cancelText:un,okText:pn,okType:Fn="primary",icon:se=qt.createElement(wt.Z,null),showCancel:Wt=!0,close:_e,onConfirm:Tn,onCancel:Dn,onPopupClick:ve}=me,{getPrefixCls:$e}=qt.useContext(ge.E_),[hn]=(0,et.Z)("Popconfirm",nt.Z.Popconfirm),wn=(0,Te.Z)(xe),rn=(0,Te.Z)(on);return qt.createElement("div",{className:`${Zt}-inner-content`,onClick:ve},qt.createElement("div",{className:`${Zt}-message`},se&&qt.createElement("span",{className:`${Zt}-message-icon`},se),qt.createElement("div",{className:`${Zt}-message-text`},wn&&qt.createElement("div",{className:Se()(`${Zt}-title`)},wn),rn&&qt.createElement("div",{className:`${Zt}-description`},rn))),qt.createElement("div",{className:`${Zt}-buttons`},Wt&&qt.createElement(De.ZP,Object.assign({onClick:Dn,size:"small"},he),un!=null?un:hn==null?void 0:hn.cancelText),qt.createElement(ae.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,kt.n)(Fn)),ke),actionFn:Tn,close:_e,prefixCls:$e("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},pn!=null?pn:hn==null?void 0:hn.okText)))};var Vt=me=>{const{prefixCls:Zt,placement:ke,className:he,style:xe}=me,on=Ct(me,["prefixCls","placement","className","style"]),{getPrefixCls:un}=qt.useContext(ge.E_),pn=un("popconfirm",Zt),[Fn]=vt(pn);return Fn(qt.createElement(gt.ZP,{placement:ke,className:Se()(pn,he),style:xe,content:qt.createElement(Ft,Object.assign({prefixCls:pn},on))}))},_t=function(me,Zt){var ke={};for(var he in me)Object.prototype.hasOwnProperty.call(me,he)&&Zt.indexOf(he)<0&&(ke[he]=me[he]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,he=Object.getOwnPropertySymbols(me);xe{const{prefixCls:ke,placement:he="top",trigger:xe="click",okType:on="primary",icon:un=qt.createElement(wt.Z,null),children:pn,overlayClassName:Fn,onOpenChange:se,onVisibleChange:Wt}=me,_e=_t(me,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:Tn}=qt.useContext(ge.E_),[Dn,ve]=(0,ue.Z)(!1,{value:me.open,defaultValue:me.defaultOpen}),$e=(qe,vi)=>{ve(qe,!0),Wt==null||Wt(qe),se==null||se(qe,vi)},hn=qe=>{$e(!1,qe)},wn=qe=>{var vi;return(vi=me.onConfirm)===null||vi===void 0?void 0:vi.call(void 0,qe)},rn=qe=>{var vi;$e(!1,qe),(vi=me.onCancel)===null||vi===void 0||vi.call(void 0,qe)},bn=qe=>{qe.keyCode===Re.Z.ESC&&Dn&&$e(!1,qe)},re=qe=>{const{disabled:vi=!1}=me;vi||$e(qe)},An=Tn("popconfirm",ke),mi=Se()(An,Fn),[ni]=vt(An);return ni(qt.createElement(pe.Z,Object.assign({},(0,Me.Z)(_e,["title"]),{trigger:xe,placement:he,onOpenChange:re,open:Dn,ref:Zt,overlayClassName:mi,content:qt.createElement(Ft,Object.assign({okType:on,icon:un},me,{prefixCls:An,close:hn,onConfirm:wn,onCancel:rn})),"data-popover-inject":!0}),(0,Ce.Tm)(pn,{onKeyDown:qe=>{var vi,So;qt.isValidElement(pn)&&((So=pn==null?void 0:(vi=pn.props).onKeyDown)===null||So===void 0||So.call(vi,qe)),bn(qe)}})))});ne._InternalPanelDoNotUseOrYouWillBeFired=Vt;var $t=ne},39722:function(Qe,gn,Qt){"use strict";Qt.d(gn,{t5:function(){return pe}});var wt=Qt(92310),de=Qt.n(wt),Se=Qt(55477),Re=Qt(59301),ue=Qt(36355),Me=Qt(77578),qt=Qt(17356),Ce=function(Te,De){var kt={};for(var et in Te)Object.prototype.hasOwnProperty.call(Te,et)&&De.indexOf(et)<0&&(kt[et]=Te[et]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,et=Object.getOwnPropertySymbols(Te);nt{if(!(!De&&!kt))return Re.createElement(Re.Fragment,null,De&&Re.createElement("div",{className:`${Te}-title`},(0,Me.Z)(De)),Re.createElement("div",{className:`${Te}-inner-content`},(0,Me.Z)(kt)))},pe=Te=>{const{hashId:De,prefixCls:kt,className:et,style:nt,placement:gt="top",title:lt,content:pt,children:vt}=Te;return Re.createElement("div",{className:de()(De,kt,`${kt}-pure`,`${kt}-placement-${gt}`,et),style:nt},Re.createElement("div",{className:`${kt}-arrow`}),Re.createElement(Se.G,Object.assign({},Te,{className:De,prefixCls:kt}),vt||ge(kt,lt,pt)))},ae=Te=>{const{prefixCls:De}=Te,kt=Ce(Te,["prefixCls"]),{getPrefixCls:et}=Re.useContext(ue.E_),nt=et("popover",De),[gt,lt]=(0,qt.Z)(nt);return gt(Re.createElement(pe,Object.assign({},kt,{prefixCls:nt,hashId:lt})))};gn.ZP=ae},60324:function(Qe,gn,Qt){"use strict";var wt=Qt(92310),de=Qt.n(wt),Se=Qt(59301),Re=Qt(77578),ue=Qt(62892),Me=Qt(36355),qt=Qt(6848),Ce=Qt(39722),ge=Qt(17356),pe=function(De,kt){var et={};for(var nt in De)Object.prototype.hasOwnProperty.call(De,nt)&&kt.indexOf(nt)<0&&(et[nt]=De[nt]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,nt=Object.getOwnPropertySymbols(De);gt{let{title:kt,content:et,prefixCls:nt}=De;return Se.createElement(Se.Fragment,null,kt&&Se.createElement("div",{className:`${nt}-title`},(0,Re.Z)(kt)),Se.createElement("div",{className:`${nt}-inner-content`},(0,Re.Z)(et)))},Te=Se.forwardRef((De,kt)=>{const{prefixCls:et,title:nt,content:gt,overlayClassName:lt,placement:pt="top",trigger:vt="hover",mouseEnterDelay:Ct=.1,mouseLeaveDelay:Ft=.1,overlayStyle:Ht={}}=De,Vt=pe(De,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:_t}=Se.useContext(Me.E_),ne=_t("popover",et),[$t,me]=(0,ge.Z)(ne),Zt=_t(),ke=de()(lt,me);return $t(Se.createElement(qt.Z,Object.assign({placement:pt,trigger:vt,mouseEnterDelay:Ct,mouseLeaveDelay:Ft,overlayStyle:Ht},Vt,{prefixCls:ne,overlayClassName:ke,ref:kt,overlay:nt||gt?Se.createElement(ae,{prefixCls:ne,title:nt,content:gt}):null,transitionName:(0,ue.m)(Zt,"zoom-big",Vt.transitionName),"data-popover-inject":!0})))});Te._InternalPanelDoNotUseOrYouWillBeFired=Ce.ZP,gn.Z=Te},17356:function(Qe,gn,Qt){"use strict";var wt=Qt(17313),de=Qt(29878),Se=Qt(19447),Re=Qt(33166),ue=Qt(83116),Me=Qt(37613);const qt=pe=>{const{componentCls:ae,popoverColor:Te,minWidth:De,fontWeightStrong:kt,popoverPadding:et,boxShadowSecondary:nt,colorTextHeading:gt,borderRadiusLG:lt,zIndexPopup:pt,marginXS:vt,colorBgElevated:Ct,popoverBg:Ft}=pe;return[{[ae]:Object.assign(Object.assign({},(0,wt.Wf)(pe)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:pt,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":Ct,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${ae}-content`]:{position:"relative"},[`${ae}-inner`]:{backgroundColor:Ft,backgroundClip:"padding-box",borderRadius:lt,boxShadow:nt,padding:et},[`${ae}-title`]:{minWidth:De,marginBottom:vt,color:gt,fontWeight:kt},[`${ae}-inner-content`]:{color:Te}})},(0,Se.ZP)(pe,{colorBg:"var(--antd-arrow-background-color)"}),{[`${ae}-pure`]:{position:"relative",maxWidth:"none",margin:pe.sizePopupArrow,display:"inline-block",[`${ae}-content`]:{display:"inline-block"}}}]},Ce=pe=>{const{componentCls:ae}=pe;return{[ae]:Re.i.map(Te=>{const De=pe[`${Te}6`];return{[`&${ae}-${Te}`]:{"--antd-arrow-background-color":De,[`${ae}-inner`]:{backgroundColor:De},[`${ae}-arrow`]:{background:"transparent"}}}})}},ge=pe=>{const{componentCls:ae,lineWidth:Te,lineType:De,colorSplit:kt,paddingSM:et,controlHeight:nt,fontSize:gt,lineHeight:lt,padding:pt}=pe,vt=nt-Math.round(gt*lt),Ct=vt/2,Ft=vt/2-Te,Ht=pt;return{[ae]:{[`${ae}-inner`]:{padding:0},[`${ae}-title`]:{margin:0,padding:`${Ct}px ${Ht}px ${Ft}px`,borderBottom:`${Te}px ${De} ${kt}`},[`${ae}-inner-content`]:{padding:`${et}px ${Ht}px`}}}};gn.Z=(0,ue.Z)("Popover",pe=>{const{colorBgElevated:ae,colorText:Te,wireframe:De}=pe,kt=(0,Me.TS)(pe,{popoverPadding:12,popoverBg:ae,popoverColor:Te});return[qt(kt),Ce(kt),De&&ge(kt),(0,de._y)(kt,"zoom-big")]},pe=>({width:177,minWidth:177,zIndexPopup:pe.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},78673:function(Qe,gn,Qt){"use strict";Qt.d(gn,{Z:function(){return ke}});var wt=Qt(58617),de=Qt(92310),Se=Qt.n(de),Re=Qt(72308),ue=Qt(49618),Me=Qt(52487),qt=Qt(74416),Ce=Qt(59301),ge=Qt(18929),pe=Qt(10228),ae=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Te=Ce.forwardRef(function(he,xe){var on,un=he.prefixCls,pn=un===void 0?"rc-switch":un,Fn=he.className,se=he.checked,Wt=he.defaultChecked,_e=he.disabled,Tn=he.loadingIcon,Dn=he.checkedChildren,ve=he.unCheckedChildren,$e=he.onClick,hn=he.onChange,wn=he.onKeyDown,rn=(0,qt.Z)(he,ae),bn=(0,ge.Z)(!1,{value:se,defaultValue:Wt}),re=(0,Me.Z)(bn,2),An=re[0],mi=re[1];function ni(yi,gi){var fi=An;return _e||(fi=yi,mi(fi),hn==null||hn(fi,gi)),fi}function qe(yi){yi.which===pe.Z.LEFT?ni(!1,yi):yi.which===pe.Z.RIGHT&&ni(!0,yi),wn==null||wn(yi)}function vi(yi){var gi=ni(!An,yi);$e==null||$e(gi,yi)}var So=Se()(pn,Fn,(on={},(0,ue.Z)(on,"".concat(pn,"-checked"),An),(0,ue.Z)(on,"".concat(pn,"-disabled"),_e),on));return Ce.createElement("button",(0,Re.Z)({},rn,{type:"button",role:"switch","aria-checked":An,disabled:_e,className:So,ref:xe,onKeyDown:qe,onClick:vi}),Tn,Ce.createElement("span",{className:"".concat(pn,"-inner")},Ce.createElement("span",{className:"".concat(pn,"-inner-checked")},Dn),Ce.createElement("span",{className:"".concat(pn,"-inner-unchecked")},ve)))});Te.displayName="Switch";var De=Te,kt=Qt(14088),et=Qt(36355),nt=Qt(1684),gt=Qt(19716),lt=Qt(64993),pt=Qt(17313),vt=Qt(83116),Ct=Qt(37613);const Ft=he=>{const{componentCls:xe,trackHeightSM:on,trackPadding:un,trackMinWidthSM:pn,innerMinMarginSM:Fn,innerMaxMarginSM:se,handleSizeSM:Wt}=he,_e=`${xe}-inner`;return{[xe]:{[`&${xe}-small`]:{minWidth:pn,height:on,lineHeight:`${on}px`,[`${xe}-inner`]:{paddingInlineStart:se,paddingInlineEnd:Fn,[`${_e}-checked`]:{marginInlineStart:`calc(-100% + ${Wt+un*2}px - ${se*2}px)`,marginInlineEnd:`calc(100% - ${Wt+un*2}px + ${se*2}px)`},[`${_e}-unchecked`]:{marginTop:-on,marginInlineStart:0,marginInlineEnd:0}},[`${xe}-handle`]:{width:Wt,height:Wt},[`${xe}-loading-icon`]:{top:(Wt-he.switchLoadingIconSize)/2,fontSize:he.switchLoadingIconSize},[`&${xe}-checked`]:{[`${xe}-inner`]:{paddingInlineStart:Fn,paddingInlineEnd:se,[`${_e}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${_e}-unchecked`]:{marginInlineStart:`calc(100% - ${Wt+un*2}px + ${se*2}px)`,marginInlineEnd:`calc(-100% + ${Wt+un*2}px - ${se*2}px)`}},[`${xe}-handle`]:{insetInlineStart:`calc(100% - ${Wt+un}px)`}},[`&:not(${xe}-disabled):active`]:{[`&:not(${xe}-checked) ${_e}`]:{[`${_e}-unchecked`]:{marginInlineStart:he.marginXXS/2,marginInlineEnd:-he.marginXXS/2}},[`&${xe}-checked ${_e}`]:{[`${_e}-checked`]:{marginInlineStart:-he.marginXXS/2,marginInlineEnd:he.marginXXS/2}}}}}}},Ht=he=>{const{componentCls:xe,handleSize:on}=he;return{[xe]:{[`${xe}-loading-icon${he.iconCls}`]:{position:"relative",top:(on-he.fontSize)/2,color:he.switchLoadingIconColor,verticalAlign:"top"},[`&${xe}-checked ${xe}-loading-icon`]:{color:he.switchColor}}}},Vt=he=>{const{componentCls:xe,motion:on,trackPadding:un,handleBg:pn,handleShadow:Fn,handleSize:se}=he,Wt=`${xe}-handle`;return{[xe]:{[Wt]:{position:"absolute",top:un,insetInlineStart:un,width:se,height:se,transition:`all ${he.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:pn,borderRadius:se/2,boxShadow:Fn,transition:`all ${he.switchDuration} ease-in-out`,content:'""'}},[`&${xe}-checked ${Wt}`]:{insetInlineStart:`calc(100% - ${se+un}px)`},[`&:not(${xe}-disabled):active`]:on?{[`${Wt}::before`]:{insetInlineEnd:he.switchHandleActiveInset,insetInlineStart:0},[`&${xe}-checked ${Wt}::before`]:{insetInlineEnd:0,insetInlineStart:he.switchHandleActiveInset}}:{}}}},_t=he=>{const{componentCls:xe,trackHeight:on,trackPadding:un,innerMinMargin:pn,innerMaxMargin:Fn,handleSize:se}=he,Wt=`${xe}-inner`;return{[xe]:{[Wt]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Fn,paddingInlineEnd:pn,transition:`padding-inline-start ${he.switchDuration} ease-in-out, padding-inline-end ${he.switchDuration} ease-in-out`,[`${Wt}-checked, ${Wt}-unchecked`]:{display:"block",color:he.colorTextLightSolid,fontSize:he.fontSizeSM,transition:`margin-inline-start ${he.switchDuration} ease-in-out, margin-inline-end ${he.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Wt}-checked`]:{marginInlineStart:`calc(-100% + ${se+un*2}px - ${Fn*2}px)`,marginInlineEnd:`calc(100% - ${se+un*2}px + ${Fn*2}px)`},[`${Wt}-unchecked`]:{marginTop:-on,marginInlineStart:0,marginInlineEnd:0}},[`&${xe}-checked ${Wt}`]:{paddingInlineStart:pn,paddingInlineEnd:Fn,[`${Wt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Wt}-unchecked`]:{marginInlineStart:`calc(100% - ${se+un*2}px + ${Fn*2}px)`,marginInlineEnd:`calc(-100% + ${se+un*2}px - ${Fn*2}px)`}},[`&:not(${xe}-disabled):active`]:{[`&:not(${xe}-checked) ${Wt}`]:{[`${Wt}-unchecked`]:{marginInlineStart:un*2,marginInlineEnd:-un*2}},[`&${xe}-checked ${Wt}`]:{[`${Wt}-checked`]:{marginInlineStart:-un*2,marginInlineEnd:un*2}}}}}},ne=he=>{const{componentCls:xe,trackHeight:on,trackMinWidth:un}=he;return{[xe]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,pt.Wf)(he)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:un,height:on,lineHeight:`${on}px`,verticalAlign:"middle",background:he.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${he.motionDurationMid}`,userSelect:"none",[`&:hover:not(${xe}-disabled)`]:{background:he.colorTextTertiary}}),(0,pt.Qy)(he)),{[`&${xe}-checked`]:{background:he.switchColor,[`&:hover:not(${xe}-disabled)`]:{background:he.colorPrimaryHover}},[`&${xe}-loading, &${xe}-disabled`]:{cursor:"not-allowed",opacity:he.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${xe}-rtl`]:{direction:"rtl"}})}};var $t=(0,vt.Z)("Switch",he=>{const xe=(0,Ct.TS)(he,{switchDuration:he.motionDurationMid,switchColor:he.colorPrimary,switchDisabledOpacity:he.opacityLoading,switchLoadingIconSize:he.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${he.opacityLoading})`,switchHandleActiveInset:"-30%"});return[ne(xe),_t(xe),Vt(xe),Ht(xe),Ft(xe)]},he=>{const{fontSize:xe,lineHeight:on,controlHeight:un,colorWhite:pn}=he,Fn=xe*on,se=un/2,Wt=2,_e=Fn-Wt*2,Tn=se-Wt*2;return{trackHeight:Fn,trackHeightSM:se,trackMinWidth:_e*2+Wt*4,trackMinWidthSM:Tn*2+Wt*2,trackPadding:Wt,handleBg:pn,handleSize:_e,handleSizeSM:Tn,handleShadow:`0 2px 4px 0 ${new lt.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:_e/2,innerMaxMargin:_e+Wt+Wt*2,innerMinMarginSM:Tn/2,innerMaxMarginSM:Tn+Wt+Wt*2}}),me=function(he,xe){var on={};for(var un in he)Object.prototype.hasOwnProperty.call(he,un)&&xe.indexOf(un)<0&&(on[un]=he[un]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pn=0,un=Object.getOwnPropertySymbols(he);pn{const{prefixCls:on,size:un,disabled:pn,loading:Fn,className:se,rootClassName:Wt,style:_e}=he,Tn=me(he,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Dn,direction:ve,switch:$e}=Ce.useContext(et.E_),hn=Ce.useContext(nt.Z),wn=(pn!=null?pn:hn)||Fn,rn=Dn("switch",on),bn=Ce.createElement("div",{className:`${rn}-handle`},Fn&&Ce.createElement(wt.Z,{className:`${rn}-loading-icon`})),[re,An]=$t(rn),mi=(0,gt.Z)(un),ni=Se()($e==null?void 0:$e.className,{[`${rn}-small`]:mi==="small",[`${rn}-loading`]:Fn,[`${rn}-rtl`]:ve==="rtl"},se,Wt,An),qe=Object.assign(Object.assign({},$e==null?void 0:$e.style),_e);return re(Ce.createElement(kt.Z,{component:"Switch"},Ce.createElement(De,Object.assign({},Tn,{prefixCls:rn,className:ni,style:qe,disabled:wn,ref:xe,loadingIcon:bn}))))});Zt.__ANT_SWITCH=!0;var ke=Zt},12563:function(Qe,gn,Qt){"use strict";Qt.d(gn,{default:function(){return me}});var wt=Qt(59301),de=Qt(99267),Se=Qt(92310),Re=Qt.n(Se),ue=Qt(36785),Me=Qt(47729),qt=Qt(14088),Ce=Qt(36355),ge=Qt(17313),pe=Qt(37613),ae=Qt(83116);const Te=Zt=>{const{paddingXXS:ke,lineWidth:he,tagPaddingHorizontal:xe,componentCls:on}=Zt,un=xe-he,pn=ke-he;return{[on]:Object.assign(Object.assign({},(0,ge.Wf)(Zt)),{display:"inline-block",height:"auto",marginInlineEnd:Zt.marginXS,paddingInline:un,fontSize:Zt.tagFontSize,lineHeight:Zt.tagLineHeight,whiteSpace:"nowrap",background:Zt.defaultBg,border:`${Zt.lineWidth}px ${Zt.lineType} ${Zt.colorBorder}`,borderRadius:Zt.borderRadiusSM,opacity:1,transition:`all ${Zt.motionDurationMid}`,textAlign:"start",position:"relative",[`&${on}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:Zt.defaultColor},[`${on}-close-icon`]:{marginInlineStart:pn,color:Zt.colorTextDescription,fontSize:Zt.tagIconSize,cursor:"pointer",transition:`all ${Zt.motionDurationMid}`,"&:hover":{color:Zt.colorTextHeading}},[`&${on}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${Zt.iconCls}-close, ${Zt.iconCls}-close:hover`]:{color:Zt.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${on}-checkable-checked):hover`]:{color:Zt.colorPrimary,backgroundColor:Zt.colorFillSecondary},"&:active, &-checked":{color:Zt.colorTextLightSolid},"&-checked":{backgroundColor:Zt.colorPrimary,"&:hover":{backgroundColor:Zt.colorPrimaryHover}},"&:active":{backgroundColor:Zt.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${Zt.iconCls} + span, > span + ${Zt.iconCls}`]:{marginInlineStart:un}}),[`${on}-borderless`]:{borderColor:"transparent",background:Zt.tagBorderlessBg}}},De=Zt=>{const{lineWidth:ke,fontSizeIcon:he}=Zt,xe=Zt.fontSizeSM,on=`${Zt.lineHeightSM*xe}px`;return(0,pe.TS)(Zt,{tagFontSize:xe,tagLineHeight:on,tagIconSize:he-2*ke,tagPaddingHorizontal:8,tagBorderlessBg:Zt.colorFillTertiary})},kt=Zt=>({defaultBg:Zt.colorFillQuaternary,defaultColor:Zt.colorText});var et=(0,ae.Z)("Tag",Zt=>{const ke=De(Zt);return Te(ke)},kt),nt=function(Zt,ke){var he={};for(var xe in Zt)Object.prototype.hasOwnProperty.call(Zt,xe)&&ke.indexOf(xe)<0&&(he[xe]=Zt[xe]);if(Zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var on=0,xe=Object.getOwnPropertySymbols(Zt);on{const{prefixCls:ke,style:he,className:xe,checked:on,onChange:un,onClick:pn}=Zt,Fn=nt(Zt,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:se,tag:Wt}=wt.useContext(Ce.E_),_e=hn=>{un==null||un(!on),pn==null||pn(hn)},Tn=se("tag",ke),[Dn,ve]=et(Tn),$e=Re()(Tn,`${Tn}-checkable`,{[`${Tn}-checkable-checked`]:on},Wt==null?void 0:Wt.className,xe,ve);return Dn(wt.createElement("span",Object.assign({},Fn,{style:Object.assign(Object.assign({},he),Wt==null?void 0:Wt.style),className:$e,onClick:_e})))},pt=Qt(45157);const vt=Zt=>(0,pt.Z)(Zt,(ke,he)=>{let{textColor:xe,lightBorderColor:on,lightColor:un,darkColor:pn}=he;return{[`${Zt.componentCls}-${ke}`]:{color:xe,background:un,borderColor:on,"&-inverse":{color:Zt.colorTextLightSolid,background:pn,borderColor:pn},[`&${Zt.componentCls}-borderless`]:{borderColor:"transparent"}}}});var Ct=(0,ae.b)(["Tag","preset"],Zt=>{const ke=De(Zt);return vt(ke)},kt);function Ft(Zt){return typeof Zt!="string"?Zt:Zt.charAt(0).toUpperCase()+Zt.slice(1)}const Ht=(Zt,ke,he)=>{const xe=Ft(he);return{[`${Zt.componentCls}-${ke}`]:{color:Zt[`color${he}`],background:Zt[`color${xe}Bg`],borderColor:Zt[`color${xe}Border`],[`&${Zt.componentCls}-borderless`]:{borderColor:"transparent"}}}};var Vt=(0,ae.b)(["Tag","status"],Zt=>{const ke=De(Zt);return[Ht(ke,"success","Success"),Ht(ke,"processing","Info"),Ht(ke,"error","Error"),Ht(ke,"warning","Warning")]},kt),_t=function(Zt,ke){var he={};for(var xe in Zt)Object.prototype.hasOwnProperty.call(Zt,xe)&&ke.indexOf(xe)<0&&(he[xe]=Zt[xe]);if(Zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var on=0,xe=Object.getOwnPropertySymbols(Zt);on{const{prefixCls:he,className:xe,rootClassName:on,style:un,children:pn,icon:Fn,color:se,onClose:Wt,closeIcon:_e,closable:Tn,bordered:Dn=!0}=Zt,ve=_t(Zt,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:$e,direction:hn,tag:wn}=wt.useContext(Ce.E_),[rn,bn]=wt.useState(!0);wt.useEffect(()=>{"visible"in ve&&bn(ve.visible)},[ve.visible]);const re=(0,ue.o2)(se),An=(0,ue.yT)(se),mi=re||An,ni=Object.assign(Object.assign({backgroundColor:se&&!mi?se:void 0},wn==null?void 0:wn.style),un),qe=$e("tag",he),[vi,So]=et(qe),yi=Re()(qe,wn==null?void 0:wn.className,{[`${qe}-${se}`]:mi,[`${qe}-has-color`]:se&&!mi,[`${qe}-hidden`]:!rn,[`${qe}-rtl`]:hn==="rtl",[`${qe}-borderless`]:!Dn},xe,on,So),gi=Et=>{Et.stopPropagation(),Wt==null||Wt(Et),!Et.defaultPrevented&&bn(!1)},[,fi]=(0,Me.Z)(Tn,_e,Et=>Et===null?wt.createElement(de.Z,{className:`${qe}-close-icon`,onClick:gi}):wt.createElement("span",{className:`${qe}-close-icon`,onClick:gi},Et),null,!1),an=typeof ve.onClick=="function"||pn&&pn.type==="a",Wn=Fn||null,Pn=Wn?wt.createElement(wt.Fragment,null,Wn,pn&&wt.createElement("span",null,pn)):pn,Ot=wt.createElement("span",Object.assign({},ve,{ref:ke,className:yi,style:ni}),Pn,fi,re&&wt.createElement(Ct,{key:"preset",prefixCls:qe}),An&&wt.createElement(Vt,{key:"status",prefixCls:qe}));return vi(an?wt.createElement(qt.Z,{component:"Tag"},Ot):Ot)},$t=wt.forwardRef(ne);$t.CheckableTag=lt;var me=$t},99498:function(Qe,gn,Qt){(function(wt){wt(Qt(89780))})(function(wt){wt.defineOption("placeholder","",function(Ce,ge,pe){var ae=pe&&pe!=wt.Init;if(ge&&!ae)Ce.on("blur",ue),Ce.on("change",Me),Ce.on("swapDoc",Me),wt.on(Ce.getInputField(),"compositionupdate",Ce.state.placeholderCompose=function(){Re(Ce)}),Me(Ce);else if(!ge&&ae){Ce.off("blur",ue),Ce.off("change",Me),Ce.off("swapDoc",Me),wt.off(Ce.getInputField(),"compositionupdate",Ce.state.placeholderCompose),de(Ce);var Te=Ce.getWrapperElement();Te.className=Te.className.replace(" CodeMirror-empty","")}ge&&!Ce.hasFocus()&&ue(Ce)});function de(Ce){Ce.state.placeholder&&(Ce.state.placeholder.parentNode.removeChild(Ce.state.placeholder),Ce.state.placeholder=null)}function Se(Ce){de(Ce);var ge=Ce.state.placeholder=document.createElement("pre");ge.style.cssText="height: 0; overflow: visible",ge.style.direction=Ce.getOption("direction"),ge.className="CodeMirror-placeholder CodeMirror-line-like";var pe=Ce.getOption("placeholder");typeof pe=="string"&&(pe=document.createTextNode(pe)),ge.appendChild(pe),Ce.display.lineSpace.insertBefore(ge,Ce.display.lineSpace.firstChild)}function Re(Ce){setTimeout(function(){var ge=!1,pe=Ce.getInputField();pe.nodeName=="TEXTAREA"?ge=!pe.value:Ce.lineCount()==1&&(ge=!/[^\u200b]/.test(pe.querySelector(".CodeMirror-line").textContent)),ge?Se(Ce):de(Ce)},20)}function ue(Ce){qt(Ce)&&Se(Ce)}function Me(Ce){var ge=Ce.getWrapperElement(),pe=qt(Ce);ge.className=ge.className.replace(" CodeMirror-empty","")+(pe?" CodeMirror-empty":""),pe?Se(Ce):de(Ce)}function qt(Ce){return Ce.lineCount()===1&&Ce.getLine(0)===""}})},25717:function(Qe,gn,Qt){(function(wt){wt(Qt(89780))})(function(wt){var de={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Se=wt.Pos;wt.defineOption("autoCloseBrackets",!1,function(et,nt,gt){gt&>!=wt.Init&&(et.removeKeyMap(ue),et.state.closeBrackets=null),nt&&(Me(Re(nt,"pairs")),et.state.closeBrackets=nt,et.addKeyMap(ue))});function Re(et,nt){return nt=="pairs"&&typeof et=="string"?et:typeof et=="object"&&et[nt]!=null?et[nt]:de[nt]}var ue={Backspace:ge,Enter:pe};function Me(et){for(var nt=0;nt=0;pt--){var Ct=lt[pt].head;et.replaceRange("",Se(Ct.line,Ct.ch-1),Se(Ct.line,Ct.ch+1),"+delete")}}function pe(et){var nt=Ce(et),gt=nt&&Re(nt,"explode");if(!gt||et.getOption("disableInput"))return wt.Pass;for(var lt=et.listSelections(),pt=0;pt0;return{anchor:new Se(et.anchor.line,et.anchor.ch+(nt?-1:1)),head:new Se(et.head.line,et.head.ch+(nt?1:-1))}}function Te(et,nt){var gt=Ce(et);if(!gt||et.getOption("disableInput"))return wt.Pass;var lt=Re(gt,"pairs"),pt=lt.indexOf(nt);if(pt==-1)return wt.Pass;for(var vt=Re(gt,"closeBefore"),Ct=Re(gt,"triples"),Ft=lt.charAt(pt+1)==nt,Ht=et.listSelections(),Vt=pt%2==0,_t,ne=0;ne=0&&et.getRange(me,Se(me.line,me.ch+3))==nt+nt+nt?Zt="skipThree":Zt="skip";else if(Ft&&me.ch>1&&Ct.indexOf(nt)>=0&&et.getRange(Se(me.line,me.ch-2),me)==nt+nt){if(me.ch>2&&/\bstring/.test(et.getTokenTypeAt(Se(me.line,me.ch-2))))return wt.Pass;Zt="addFour"}else if(Ft){var he=me.ch==0?" ":et.getRange(Se(me.line,me.ch-1),me);if(!wt.isWordChar(ke)&&he!=nt&&!wt.isWordChar(he))Zt="both";else return wt.Pass}else if(Vt&&(ke.length===0||/\s/.test(ke)||vt.indexOf(ke)>-1))Zt="both";else return wt.Pass;if(!_t)_t=Zt;else if(_t!=Zt)return wt.Pass}var xe=pt%2?lt.charAt(pt-1):nt,on=pt%2?nt:lt.charAt(pt+1);et.operation(function(){if(_t=="skip")et.execCommand("goCharRight");else if(_t=="skipThree")for(var un=0;un<3;un++)et.execCommand("goCharRight");else if(_t=="surround"){for(var pn=et.getSelections(),un=0;un'"]=function(De){return Re(De)}),ge.addKeyMap(Te)}});var de=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Se=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function Re(ge){if(ge.getOption("disableInput"))return wt.Pass;for(var pe=ge.listSelections(),ae=[],Te=ge.getOption("autoCloseTags"),De=0;Dekt.ch&&(pt=pt.slice(0,pt.length-et.end+kt.ch));var Ht=pt.toLowerCase();if(!pt||et.type=="string"&&(et.end!=kt.ch||!/[\"\']/.test(et.string.charAt(et.string.length-1))||et.string.length==1)||et.type=="tag"&<.close||et.string.indexOf("/")==kt.ch-et.start-1||Ct&&qt(Ct,Ht)>-1||Ce(ge,nt.mode.xmlCurrentContext&&nt.mode.xmlCurrentContext(gt)||[],pt,kt,!0))return wt.Pass;var Vt=typeof Te=="object"&&Te.emptyTags;if(Vt&&qt(Vt,pt)>-1){ae[De]={text:"/>",newPos:wt.Pos(kt.line,kt.ch+2)};continue}var _t=Ft&&qt(Ft,Ht)>-1;ae[De]={indent:_t,text:">"+(_t?` -`:"")+"",newPos:_t?wt.Pos(kt.line+1,0):wt.Pos(kt.line,kt.ch+1)}}for(var ne=typeof Te=="object"&&Te.dontIndentOnAutoClose,De=pe.length-1;De>=0;De--){var $t=ae[De];ge.replaceRange($t.text,pe[De].head,pe[De].anchor,"+insert");var me=ge.listSelections().slice(0);me[De]={head:$t.newPos,anchor:$t.newPos},ge.setSelections(me),!ne&&$t.indent&&(ge.indentLine($t.newPos.line,null,!0),ge.indentLine($t.newPos.line+1,null,!0))}}function ue(ge,pe){for(var ae=ge.listSelections(),Te=[],De=pe?"/":""&&(Ct+=">"),Te[nt]=Ct}if(ge.replaceSelections(Te),ae=ge.listSelections(),!et)for(var nt=0;nt=0&&pe[gt]==ae;gt--)++nt;Te=et.to;for(var gt=1;gt=gt.max))return gt.ch=0,gt.text=gt.cm.getLine(++gt.line),!0}function pe(gt){if(!(gt.line<=gt.min))return gt.text=gt.cm.getLine(--gt.line),gt.ch=gt.text.length,!0}function ae(gt){for(;;){var lt=gt.text.indexOf(">",gt.ch);if(lt==-1){if(ge(gt))continue;return}if(!Ce(gt,lt+1)){gt.ch=lt+1;continue}var pt=gt.text.lastIndexOf("/",lt),vt=pt>-1&&!/\S/.test(gt.text.slice(pt+1,lt));return gt.ch=lt+1,vt?"selfClose":"regular"}}function Te(gt){for(;;){var lt=gt.ch?gt.text.lastIndexOf("<",gt.ch-1):-1;if(lt==-1){if(pe(gt))continue;return}if(!Ce(gt,lt+1)){gt.ch=lt;continue}Me.lastIndex=lt,gt.ch=lt;var pt=Me.exec(gt.text);if(pt&&pt.index==lt)return pt}}function De(gt){for(;;){Me.lastIndex=gt.ch;var lt=Me.exec(gt.text);if(!lt){if(ge(gt))continue;return}if(!Ce(gt,lt.index+1)){gt.ch=lt.index+1;continue}return gt.ch=lt.index+lt[0].length,lt}}function kt(gt){for(;;){var lt=gt.ch?gt.text.lastIndexOf(">",gt.ch-1):-1;if(lt==-1){if(pe(gt))continue;return}if(!Ce(gt,lt+1)){gt.ch=lt;continue}var pt=gt.text.lastIndexOf("/",lt),vt=pt>-1&&!/\S/.test(gt.text.slice(pt+1,lt));return gt.ch=lt+1,vt?"selfClose":"regular"}}function et(gt,lt){for(var pt=[];;){var vt=De(gt),Ct,Ft=gt.line,Ht=gt.ch-(vt?vt[0].length:0);if(!vt||!(Ct=ae(gt)))return;if(Ct!="selfClose")if(vt[1]){for(var Vt=pt.length-1;Vt>=0;--Vt)if(pt[Vt]==vt[2]){pt.length=Vt;break}if(Vt<0&&(!lt||lt==vt[2]))return{tag:vt[2],from:de(Ft,Ht),to:de(gt.line,gt.ch)}}else pt.push(vt[2])}}function nt(gt,lt){for(var pt=[];;){var vt=kt(gt);if(!vt)return;if(vt=="selfClose"){Te(gt);continue}var Ct=gt.line,Ft=gt.ch,Ht=Te(gt);if(!Ht)return;if(Ht[1])pt.push(Ht[2]);else{for(var Vt=pt.length-1;Vt>=0;--Vt)if(pt[Vt]==Ht[2]){pt.length=Vt;break}if(Vt<0&&(!lt||lt==Ht[2]))return{tag:Ht[2],from:de(gt.line,gt.ch),to:de(Ct,Ft)}}}}wt.registerHelper("fold","xml",function(gt,lt){for(var pt=new qt(gt,lt.line,0);;){var vt=De(pt);if(!vt||pt.line!=lt.line)return;var Ct=ae(pt);if(!Ct)return;if(!vt[1]&&Ct!="selfClose"){var Ft=de(pt.line,pt.ch),Ht=et(pt,vt[2]);return Ht&&Se(Ht.from,Ft)>0?{from:Ft,to:Ht.from}:null}}}),wt.findMatchingTag=function(gt,lt,pt){var vt=new qt(gt,lt.line,lt.ch,pt);if(!(vt.text.indexOf(">")==-1&&vt.text.indexOf("<")==-1)){var Ct=ae(vt),Ft=Ct&&de(vt.line,vt.ch),Ht=Ct&&Te(vt);if(!(!Ct||!Ht||Se(vt,lt)>0)){var Vt={from:de(vt.line,vt.ch),to:Ft,tag:Ht[2]};return Ct=="selfClose"?{open:Vt,close:null,at:"open"}:Ht[1]?{open:nt(vt,Ht[2]),close:Vt,at:"close"}:(vt=new qt(gt,Ft.line,Ft.ch,pt),{open:Vt,close:et(vt,Ht[2]),at:"open"})}}},wt.findEnclosingTag=function(gt,lt,pt,vt){for(var Ct=new qt(gt,lt.line,lt.ch,pt);;){var Ft=nt(Ct,vt);if(!Ft)break;var Ht=new qt(gt,lt.line,lt.ch,pt),Vt=et(Ht,Ft.tag);if(Vt)return{open:Ft,close:Vt}}},wt.scanForClosingTag=function(gt,lt,pt,vt){var Ct=new qt(gt,lt.line,lt.ch,vt?{from:0,to:vt}:null);return et(Ct,pt)}})},89780:function(Qe){(function(gn,Qt){Qe.exports=Qt()})(this,function(){"use strict";var gn=navigator.userAgent,Qt=navigator.platform,wt=/gecko\/\d/i.test(gn),de=/MSIE \d/.test(gn),Se=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(gn),Re=/Edge\/(\d+)/.exec(gn),ue=de||Se||Re,Me=ue&&(de?document.documentMode||6:+(Re||Se)[1]),qt=!Re&&/WebKit\//.test(gn),Ce=qt&&/Qt\/\d+\.\d+/.test(gn),ge=!Re&&/Chrome\//.test(gn),pe=/Opera\//.test(gn),ae=/Apple Computer/.test(navigator.vendor),Te=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(gn),De=/PhantomJS/.test(gn),kt=!Re&&/AppleWebKit/.test(gn)&&/Mobile\/\w+/.test(gn),et=/Android/.test(gn),nt=kt||et||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(gn),gt=kt||/Mac/.test(Qt),lt=/\bCrOS\b/.test(gn),pt=/win/i.test(Qt),vt=pe&&gn.match(/Version\/(\d*\.\d*)/);vt&&(vt=Number(vt[1])),vt&&vt>=15&&(pe=!1,qt=!0);var Ct=gt&&(Ce||pe&&(vt==null||vt<12.11)),Ft=wt||ue&&Me>=9;function Ht(it){return new RegExp("(^|\\s)"+it+"(?:$|\\s)\\s*")}var Vt=function(it,st){var dt=it.className,ht=Ht(st).exec(dt);if(ht){var ct=dt.slice(ht.index+ht[0].length);it.className=dt.slice(0,ht.index)+(ct?ht[1]+ct:"")}};function _t(it){for(var st=it.childNodes.length;st>0;--st)it.removeChild(it.firstChild);return it}function ne(it,st){return _t(it).appendChild(st)}function $t(it,st,dt,ht){var ct=document.createElement(it);if(dt&&(ct.className=dt),ht&&(ct.style.cssText=ht),typeof st=="string")ct.appendChild(document.createTextNode(st));else if(st)for(var xt=0;xt=st)return Mt+(st-xt);Mt+=bt-xt,Mt+=dt-Mt%dt,xt=bt+1}}var Wt=function(){this.id=null,this.f=null,this.time=0,this.handler=pn(this.onTimeout,this)};Wt.prototype.onTimeout=function(it){it.id=0,it.time<=+new Date?it.f():setTimeout(it.handler,it.time-+new Date)},Wt.prototype.set=function(it,st){this.f=st;var dt=+new Date+it;(!this.id||dt=st)return ht+Math.min(Mt,st-ct);if(ct+=xt-ht,ct+=dt-ct%dt,ht=xt+1,ct>=st)return ht}}var rn=[""];function bn(it){for(;rn.length<=it;)rn.push(re(rn)+" ");return rn[it]}function re(it){return it[it.length-1]}function An(it,st){for(var dt=[],ht=0;ht"\x80"&&(it.toUpperCase()!=it.toLowerCase()||vi.test(it))}function yi(it,st){return st?st.source.indexOf("\\w")>-1&&So(it)?!0:st.test(it):So(it)}function gi(it){for(var st in it)if(it.hasOwnProperty(st)&&it[st])return!1;return!0}var fi=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function an(it){return it.charCodeAt(0)>=768&&fi.test(it)}function Wn(it,st,dt){for(;(dt<0?st>0:stdt?-1:1;;){if(st==dt)return st;var ct=(st+dt)/2,xt=ht<0?Math.ceil(ct):Math.floor(ct);if(xt==st)return it(xt)?st:dt;it(xt)?dt=xt:st=xt+ht}}function Ot(it,st,dt,ht){if(!it)return ht(st,dt,"ltr",0);for(var ct=!1,xt=0;xtst||st==dt&&Mt.to==st)&&(ht(Math.max(Mt.from,st),Math.min(Mt.to,dt),Mt.level==1?"rtl":"ltr",xt),ct=!0)}ct||ht(st,dt,"ltr")}var Et=null;function St(it,st,dt){var ht;Et=null;for(var ct=0;ctst)return ct;xt.to==st&&(xt.from!=xt.to&&dt=="before"?ht=ct:Et=ct),xt.from==st&&(xt.from!=xt.to&&dt!="before"?ht=ct:Et=ct)}return ht!=null?ht:Et}var Nt=function(){var it="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",st="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function dt(Xt){return Xt<=247?it.charAt(Xt):1424<=Xt&&Xt<=1524?"R":1536<=Xt&&Xt<=1785?st.charAt(Xt-1536):1774<=Xt&&Xt<=2220?"r":8192<=Xt&&Xt<=8203?"w":Xt==8204?"b":"L"}var ht=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ct=/[stwN]/,xt=/[LRr]/,Mt=/[Lb1n]/,bt=/[1n]/;function Tt(Xt,le,Yt){this.level=Xt,this.from=le,this.to=Yt}return function(Xt,le){var Yt=le=="ltr"?"L":"R";if(Xt.length==0||le=="ltr"&&!ht.test(Xt))return!1;for(var Le=Xt.length,we=[],en=0;en-1&&(ht[st]=ct.slice(0,xt).concat(ct.slice(xt+1)))}}}function Ve(it,st){var dt=Be(it,st);if(dt.length)for(var ht=Array.prototype.slice.call(arguments,2),ct=0;ct0}function kn(it){it.prototype.on=function(st,dt){te(this,st,dt)},it.prototype.off=function(st,dt){Je(this,st,dt)}}function Yn(it){it.preventDefault?it.preventDefault():it.returnValue=!1}function zi(it){it.stopPropagation?it.stopPropagation():it.cancelBubble=!0}function $i(it){return it.defaultPrevented!=null?it.defaultPrevented:it.returnValue==!1}function Do(it){Yn(it),zi(it)}function so(it){return it.target||it.srcElement}function Wi(it){var st=it.which;return st==null&&(it.button&1?st=1:it.button&2?st=3:it.button&4&&(st=2)),gt&&it.ctrlKey&&st==1&&(st=3),st}var Li=function(){if(ue&&Me<9)return!1;var it=$t("div");return"draggable"in it||"dragDrop"in it}(),Qi;function mr(it){if(Qi==null){var st=$t("span","\u200B");ne(it,$t("span",[st,document.createTextNode("x")])),it.firstChild.offsetHeight!=0&&(Qi=st.offsetWidth<=1&&st.offsetHeight>2&&!(ue&&Me<8))}var dt=Qi?$t("span","\u200B"):$t("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return dt.setAttribute("cm-text",""),dt}var vo;function qn(it){if(vo!=null)return vo;var st=ne(it,document.createTextNode("A\u062EA")),dt=Zt(st,0,1).getBoundingClientRect(),ht=Zt(st,1,2).getBoundingClientRect();return _t(it),!dt||dt.left==dt.right?!1:vo=ht.right-dt.right<3}var En=` +`:"")+"",newPos:_t?wt.Pos(kt.line+1,0):wt.Pos(kt.line,kt.ch+1)}}for(var ne=typeof Te=="object"&&Te.dontIndentOnAutoClose,De=pe.length-1;De>=0;De--){var $t=ae[De];ge.replaceRange($t.text,pe[De].head,pe[De].anchor,"+insert");var me=ge.listSelections().slice(0);me[De]={head:$t.newPos,anchor:$t.newPos},ge.setSelections(me),!ne&&$t.indent&&(ge.indentLine($t.newPos.line,null,!0),ge.indentLine($t.newPos.line+1,null,!0))}}function ue(ge,pe){for(var ae=ge.listSelections(),Te=[],De=pe?"/":""&&(Ct+=">"),Te[nt]=Ct}if(ge.replaceSelections(Te),ae=ge.listSelections(),!et)for(var nt=0;nt=0&&pe[gt]==ae;gt--)++nt;Te=et.to;for(var gt=1;gt=gt.max))return gt.ch=0,gt.text=gt.cm.getLine(++gt.line),!0}function pe(gt){if(!(gt.line<=gt.min))return gt.text=gt.cm.getLine(--gt.line),gt.ch=gt.text.length,!0}function ae(gt){for(;;){var lt=gt.text.indexOf(">",gt.ch);if(lt==-1){if(ge(gt))continue;return}if(!Ce(gt,lt+1)){gt.ch=lt+1;continue}var pt=gt.text.lastIndexOf("/",lt),vt=pt>-1&&!/\S/.test(gt.text.slice(pt+1,lt));return gt.ch=lt+1,vt?"selfClose":"regular"}}function Te(gt){for(;;){var lt=gt.ch?gt.text.lastIndexOf("<",gt.ch-1):-1;if(lt==-1){if(pe(gt))continue;return}if(!Ce(gt,lt+1)){gt.ch=lt;continue}Me.lastIndex=lt,gt.ch=lt;var pt=Me.exec(gt.text);if(pt&&pt.index==lt)return pt}}function De(gt){for(;;){Me.lastIndex=gt.ch;var lt=Me.exec(gt.text);if(!lt){if(ge(gt))continue;return}if(!Ce(gt,lt.index+1)){gt.ch=lt.index+1;continue}return gt.ch=lt.index+lt[0].length,lt}}function kt(gt){for(;;){var lt=gt.ch?gt.text.lastIndexOf(">",gt.ch-1):-1;if(lt==-1){if(pe(gt))continue;return}if(!Ce(gt,lt+1)){gt.ch=lt;continue}var pt=gt.text.lastIndexOf("/",lt),vt=pt>-1&&!/\S/.test(gt.text.slice(pt+1,lt));return gt.ch=lt+1,vt?"selfClose":"regular"}}function et(gt,lt){for(var pt=[];;){var vt=De(gt),Ct,Ft=gt.line,Ht=gt.ch-(vt?vt[0].length:0);if(!vt||!(Ct=ae(gt)))return;if(Ct!="selfClose")if(vt[1]){for(var Vt=pt.length-1;Vt>=0;--Vt)if(pt[Vt]==vt[2]){pt.length=Vt;break}if(Vt<0&&(!lt||lt==vt[2]))return{tag:vt[2],from:de(Ft,Ht),to:de(gt.line,gt.ch)}}else pt.push(vt[2])}}function nt(gt,lt){for(var pt=[];;){var vt=kt(gt);if(!vt)return;if(vt=="selfClose"){Te(gt);continue}var Ct=gt.line,Ft=gt.ch,Ht=Te(gt);if(!Ht)return;if(Ht[1])pt.push(Ht[2]);else{for(var Vt=pt.length-1;Vt>=0;--Vt)if(pt[Vt]==Ht[2]){pt.length=Vt;break}if(Vt<0&&(!lt||lt==Ht[2]))return{tag:Ht[2],from:de(gt.line,gt.ch),to:de(Ct,Ft)}}}}wt.registerHelper("fold","xml",function(gt,lt){for(var pt=new qt(gt,lt.line,0);;){var vt=De(pt);if(!vt||pt.line!=lt.line)return;var Ct=ae(pt);if(!Ct)return;if(!vt[1]&&Ct!="selfClose"){var Ft=de(pt.line,pt.ch),Ht=et(pt,vt[2]);return Ht&&Se(Ht.from,Ft)>0?{from:Ft,to:Ht.from}:null}}}),wt.findMatchingTag=function(gt,lt,pt){var vt=new qt(gt,lt.line,lt.ch,pt);if(!(vt.text.indexOf(">")==-1&&vt.text.indexOf("<")==-1)){var Ct=ae(vt),Ft=Ct&&de(vt.line,vt.ch),Ht=Ct&&Te(vt);if(!(!Ct||!Ht||Se(vt,lt)>0)){var Vt={from:de(vt.line,vt.ch),to:Ft,tag:Ht[2]};return Ct=="selfClose"?{open:Vt,close:null,at:"open"}:Ht[1]?{open:nt(vt,Ht[2]),close:Vt,at:"close"}:(vt=new qt(gt,Ft.line,Ft.ch,pt),{open:Vt,close:et(vt,Ht[2]),at:"open"})}}},wt.findEnclosingTag=function(gt,lt,pt,vt){for(var Ct=new qt(gt,lt.line,lt.ch,pt);;){var Ft=nt(Ct,vt);if(!Ft)break;var Ht=new qt(gt,lt.line,lt.ch,pt),Vt=et(Ht,Ft.tag);if(Vt)return{open:Ft,close:Vt}}},wt.scanForClosingTag=function(gt,lt,pt,vt){var Ct=new qt(gt,lt.line,lt.ch,vt?{from:0,to:vt}:null);return et(Ct,pt)}})},89780:function(Qe){(function(gn,Qt){Qe.exports=Qt()})(this,function(){"use strict";var gn=navigator.userAgent,Qt=navigator.platform,wt=/gecko\/\d/i.test(gn),de=/MSIE \d/.test(gn),Se=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(gn),Re=/Edge\/(\d+)/.exec(gn),ue=de||Se||Re,Me=ue&&(de?document.documentMode||6:+(Re||Se)[1]),qt=!Re&&/WebKit\//.test(gn),Ce=qt&&/Qt\/\d+\.\d+/.test(gn),ge=!Re&&/Chrome\//.test(gn),pe=/Opera\//.test(gn),ae=/Apple Computer/.test(navigator.vendor),Te=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(gn),De=/PhantomJS/.test(gn),kt=!Re&&/AppleWebKit/.test(gn)&&/Mobile\/\w+/.test(gn),et=/Android/.test(gn),nt=kt||et||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(gn),gt=kt||/Mac/.test(Qt),lt=/\bCrOS\b/.test(gn),pt=/win/i.test(Qt),vt=pe&&gn.match(/Version\/(\d*\.\d*)/);vt&&(vt=Number(vt[1])),vt&&vt>=15&&(pe=!1,qt=!0);var Ct=gt&&(Ce||pe&&(vt==null||vt<12.11)),Ft=wt||ue&&Me>=9;function Ht(it){return new RegExp("(^|\\s)"+it+"(?:$|\\s)\\s*")}var Vt=function(it,st){var dt=it.className,ht=Ht(st).exec(dt);if(ht){var ct=dt.slice(ht.index+ht[0].length);it.className=dt.slice(0,ht.index)+(ct?ht[1]+ct:"")}};function _t(it){for(var st=it.childNodes.length;st>0;--st)it.removeChild(it.firstChild);return it}function ne(it,st){return _t(it).appendChild(st)}function $t(it,st,dt,ht){var ct=document.createElement(it);if(dt&&(ct.className=dt),ht&&(ct.style.cssText=ht),typeof st=="string")ct.appendChild(document.createTextNode(st));else if(st)for(var xt=0;xt=st)return Mt+(st-xt);Mt+=bt-xt,Mt+=dt-Mt%dt,xt=bt+1}}var Wt=function(){this.id=null,this.f=null,this.time=0,this.handler=pn(this.onTimeout,this)};Wt.prototype.onTimeout=function(it){it.id=0,it.time<=+new Date?it.f():setTimeout(it.handler,it.time-+new Date)},Wt.prototype.set=function(it,st){this.f=st;var dt=+new Date+it;(!this.id||dt=st)return ht+Math.min(Mt,st-ct);if(ct+=xt-ht,ct+=dt-ct%dt,ht=xt+1,ct>=st)return ht}}var rn=[""];function bn(it){for(;rn.length<=it;)rn.push(re(rn)+" ");return rn[it]}function re(it){return it[it.length-1]}function An(it,st){for(var dt=[],ht=0;ht"\x80"&&(it.toUpperCase()!=it.toLowerCase()||vi.test(it))}function yi(it,st){return st?st.source.indexOf("\\w")>-1&&So(it)?!0:st.test(it):So(it)}function gi(it){for(var st in it)if(it.hasOwnProperty(st)&&it[st])return!1;return!0}var fi=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function an(it){return it.charCodeAt(0)>=768&&fi.test(it)}function Wn(it,st,dt){for(;(dt<0?st>0:stdt?-1:1;;){if(st==dt)return st;var ct=(st+dt)/2,xt=ht<0?Math.ceil(ct):Math.floor(ct);if(xt==st)return it(xt)?st:dt;it(xt)?dt=xt:st=xt+ht}}function Ot(it,st,dt,ht){if(!it)return ht(st,dt,"ltr",0);for(var ct=!1,xt=0;xtst||st==dt&&Mt.to==st)&&(ht(Math.max(Mt.from,st),Math.min(Mt.to,dt),Mt.level==1?"rtl":"ltr",xt),ct=!0)}ct||ht(st,dt,"ltr")}var Et=null;function St(it,st,dt){var ht;Et=null;for(var ct=0;ctst)return ct;xt.to==st&&(xt.from!=xt.to&&dt=="before"?ht=ct:Et=ct),xt.from==st&&(xt.from!=xt.to&&dt!="before"?ht=ct:Et=ct)}return ht!=null?ht:Et}var Nt=function(){var it="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",st="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function dt(Xt){return Xt<=247?it.charAt(Xt):1424<=Xt&&Xt<=1524?"R":1536<=Xt&&Xt<=1785?st.charAt(Xt-1536):1774<=Xt&&Xt<=2220?"r":8192<=Xt&&Xt<=8203?"w":Xt==8204?"b":"L"}var ht=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ct=/[stwN]/,xt=/[LRr]/,Mt=/[Lb1n]/,bt=/[1n]/;function Tt(Xt,le,Yt){this.level=Xt,this.from=le,this.to=Yt}return function(Xt,le){var Yt=le=="ltr"?"L":"R";if(Xt.length==0||le=="ltr"&&!ht.test(Xt))return!1;for(var Le=Xt.length,we=[],en=0;en-1&&(ht[st]=ct.slice(0,xt).concat(ct.slice(xt+1)))}}}function Ve(it,st){var dt=Be(it,st);if(dt.length)for(var ht=Array.prototype.slice.call(arguments,2),ct=0;ct0}function kn(it){it.prototype.on=function(st,dt){te(this,st,dt)},it.prototype.off=function(st,dt){Je(this,st,dt)}}function Yn(it){it.preventDefault?it.preventDefault():it.returnValue=!1}function zi(it){it.stopPropagation?it.stopPropagation():it.cancelBubble=!0}function $i(it){return it.defaultPrevented!=null?it.defaultPrevented:it.returnValue==!1}function Do(it){Yn(it),zi(it)}function so(it){return it.target||it.srcElement}function Wi(it){var st=it.which;return st==null&&(it.button&1?st=1:it.button&2?st=3:it.button&4&&(st=2)),gt&&it.ctrlKey&&st==1&&(st=3),st}var Li=function(){if(ue&&Me<9)return!1;var it=$t("div");return"draggable"in it||"dragDrop"in it}(),Qi;function mr(it){if(Qi==null){var st=$t("span","\u200B");ne(it,$t("span",[st,document.createTextNode("x")])),it.firstChild.offsetHeight!=0&&(Qi=st.offsetWidth<=1&&st.offsetHeight>2&&!(ue&&Me<8))}var dt=Qi?$t("span","\u200B"):$t("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return dt.setAttribute("cm-text",""),dt}var vo;function qn(it){if(vo!=null)return vo;var st=ne(it,document.createTextNode("A\u062EA")),dt=Zt(st,0,1).getBoundingClientRect(),ht=Zt(st,1,2).getBoundingClientRect();return _t(it),!dt||dt.left==dt.right?!1:vo=ht.right-dt.right<3}var En=` b`.split(/\n/).length!=3?function(it){for(var st=0,dt=[],ht=it.length;st<=ht;){var ct=it.indexOf(` -`,st);ct==-1&&(ct=it.length);var xt=it.slice(st,it.charAt(ct-1)=="\r"?ct-1:ct),Mt=xt.indexOf("\r");Mt!=-1?(dt.push(xt.slice(0,Mt)),st+=Mt+1):(dt.push(xt),st=ct+1)}return dt}:function(it){return it.split(/\r\n?|\n/)},Pt=window.getSelection?function(it){try{return it.selectionStart!=it.selectionEnd}catch(st){return!1}}:function(it){var st;try{st=it.ownerDocument.selection.createRange()}catch(dt){}return!st||st.parentElement()!=it?!1:st.compareEndPoints("StartToEnd",st)!=0},Xo=function(){var it=$t("div");return"oncopy"in it?!0:(it.setAttribute("oncopy","return;"),typeof it.oncopy=="function")}(),Mi=null;function wr(it){if(Mi!=null)return Mi;var st=ne(it,$t("span","x")),dt=st.getBoundingClientRect(),ht=Zt(st,0,1).getBoundingClientRect();return Mi=Math.abs(dt.left-ht.left)>1}var Es={},Zr={};function Oa(it,st){arguments.length>2&&(st.dependencies=Array.prototype.slice.call(arguments,2)),Es[it]=st}function bo(it,st){Zr[it]=st}function oa(it){if(typeof it=="string"&&Zr.hasOwnProperty(it))it=Zr[it];else if(it&&typeof it.name=="string"&&Zr.hasOwnProperty(it.name)){var st=Zr[it.name];typeof st=="string"&&(st={name:st}),it=qe(st,it),it.name=st.name}else{if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(it))return oa("application/xml");if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(it))return oa("application/json")}return typeof it=="string"?{name:it}:it||{name:"null"}}function je(it,st){st=oa(st);var dt=Es[st.name];if(!dt)return je(it,"text/plain");var ht=dt(it,st);if(Ae.hasOwnProperty(st.name)){var ct=Ae[st.name];for(var xt in ct)ct.hasOwnProperty(xt)&&(ht.hasOwnProperty(xt)&&(ht["_"+xt]=ht[xt]),ht[xt]=ct[xt])}if(ht.name=st.name,st.helperType&&(ht.helperType=st.helperType),st.modeProps)for(var Mt in st.modeProps)ht[Mt]=st.modeProps[Mt];return ht}var Ae={};function fe(it,st){var dt=Ae.hasOwnProperty(it)?Ae[it]:Ae[it]={};Fn(st,dt)}function In(it,st){if(st===!0)return st;if(it.copyState)return it.copyState(st);var dt={};for(var ht in st){var ct=st[ht];ct instanceof Array&&(ct=ct.concat([])),dt[ht]=ct}return dt}function ci(it,st){for(var dt;it.innerMode&&(dt=it.innerMode(st),!(!dt||dt.mode==it));)st=dt.state,it=dt.mode;return dt||{mode:it,state:st}}function li(it,st,dt){return it.startState?it.startState(st,dt):!0}var Ke=function(it,st,dt){this.pos=this.start=0,this.string=it,this.tabSize=st||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=dt};Ke.prototype.eol=function(){return this.pos>=this.string.length},Ke.prototype.sol=function(){return this.pos==this.lineStart},Ke.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ke.prototype.next=function(){if(this.posst},Ke.prototype.eatSpace=function(){for(var it=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>it},Ke.prototype.skipToEnd=function(){this.pos=this.string.length},Ke.prototype.skipTo=function(it){var st=this.string.indexOf(it,this.pos);if(st>-1)return this.pos=st,!0},Ke.prototype.backUp=function(it){this.pos-=it},Ke.prototype.column=function(){return this.lastColumnPos0?null:(xt&&st!==!1&&(this.pos+=xt[0].length),xt)}},Ke.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ke.prototype.hideFirstChars=function(it,st){this.lineStart+=it;try{return st()}finally{this.lineStart-=it}},Ke.prototype.lookAhead=function(it){var st=this.lineOracle;return st&&st.lookAhead(it)},Ke.prototype.baseToken=function(){var it=this.lineOracle;return it&&it.baseToken(this.pos)};function Sn(it,st){if(st-=it.first,st<0||st>=it.size)throw new Error("There is no line "+(st+it.first)+" in the document.");for(var dt=it;!dt.lines;)for(var ht=0;;++ht){var ct=dt.children[ht],xt=ct.chunkSize();if(st=it.first&&stdt?Pe(dt,Sn(it,dt).text.length):_n(st,Sn(it,st.line).text.length)}function _n(it,st){var dt=it.ch;return dt==null||dt>st?Pe(it.line,st):dt<0?Pe(it.line,0):it}function Bi(it,st){for(var dt=[],ht=0;htthis.maxLookAhead&&(this.maxLookAhead=it),st},Oe.prototype.baseToken=function(it){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=it;)this.baseTokenPos+=2;var st=this.baseTokens[this.baseTokenPos+1];return{type:st&&st.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-it}},Oe.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Oe.fromSaved=function(it,st,dt){return st instanceof Ui?new Oe(it,In(it.mode,st.state),dt,st.lookAhead):new Oe(it,In(it.mode,st),dt)},Oe.prototype.save=function(it){var st=it!==!1?In(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Ui(st,this.maxLookAhead):st};function io(it,st,dt,ht){var ct=[it.state.modeGen],xt={};oo(it,st.text,it.doc.mode,dt,function(Xt,le){return ct.push(Xt,le)},xt,ht);for(var Mt=dt.state,bt=function(Xt){dt.baseTokens=ct;var le=it.state.overlays[Xt],Yt=1,Le=0;dt.state=!0,oo(it,st.text,le.mode,dt,function(we,en){for(var sn=Yt;Lewe&&ct.splice(Yt,1,we,ct[Yt+1],vn),Yt+=2,Le=Math.min(we,vn)}if(en)if(le.opaque)ct.splice(sn,Yt-sn,we,"overlay "+en),Yt=sn+2;else for(;snit.options.maxHighlightLength&&In(it.doc.mode,ht.state),xt=io(it,st,ht);ct&&(ht.state=ct),st.stateAfter=ht.save(!ct),st.styles=xt.styles,xt.classes?st.styleClasses=xt.classes:st.styleClasses&&(st.styleClasses=null),dt===it.doc.highlightFrontier&&(it.doc.modeFrontier=Math.max(it.doc.modeFrontier,++it.doc.highlightFrontier))}return st.styles}function Ii(it,st,dt){var ht=it.doc,ct=it.display;if(!ht.mode.startState)return new Oe(ht,!0,st);var xt=Xi(it,st,dt),Mt=xt>ht.first&&Sn(ht,xt-1).stateAfter,bt=Mt?Oe.fromSaved(ht,Mt,xt):new Oe(ht,li(ht.mode),xt);return ht.iter(xt,st,function(Tt){Ee(it,Tt.text,bt);var Xt=bt.line;Tt.stateAfter=Xt==st-1||Xt%5==0||Xt>=ct.viewFrom&&Xtst.start)return xt}throw new Error("Mode "+it.name+" failed to advance stream.")}var Vn=function(it,st,dt){this.start=it.start,this.end=it.pos,this.string=it.current(),this.type=st||null,this.state=dt};function Qn(it,st,dt,ht){var ct=it.doc,xt=ct.mode,Mt;st=Gn(ct,st);var bt=Sn(ct,st.line),Tt=Ii(it,st.line,dt),Xt=new Ke(bt.text,it.options.tabSize,Tt),le;for(ht&&(le=[]);(ht||Xt.posit.options.maxHighlightLength?(bt=!1,Mt&&Ee(it,st,ht,le.pos),le.pos=st.length,Yt=null):Yt=Ci(jn(dt,le,ht.state,Le),xt),Le){var we=Le[0].name;we&&(Yt="m-"+(Yt?we+" "+Yt:we))}if(!bt||Xt!=Yt){for(;TtMt;--bt){if(bt<=xt.first)return xt.first;var Tt=Sn(xt,bt-1),Xt=Tt.stateAfter;if(Xt&&(!dt||bt+(Xt instanceof Ui?Xt.lookAhead:0)<=xt.modeFrontier))return bt;var le=se(Tt.text,null,it.options.tabSize);(ct==null||ht>le)&&(ct=bt-1,ht=le)}return ct}function Vi(it,st){if(it.modeFrontier=Math.min(it.modeFrontier,st),!(it.highlightFrontierdt;ht--){var ct=Sn(it,ht).stateAfter;if(ct&&(!(ct instanceof Ui)||ht+ct.lookAhead=st:xt.to>st);(ht||(ht=[])).push(new eo(Mt,xt.from,Tt?null:xt.to))}}return ht}function Oi(it,st,dt){var ht;if(it)for(var ct=0;ct=st:xt.to>st);if(bt||xt.from==st&&Mt.type=="bookmark"&&(!dt||xt.marker.insertLeft)){var Tt=xt.from==null||(Mt.inclusiveLeft?xt.from<=st:xt.from0&&bt)for(var oi=0;oi0)){var le=[Tt,1],Yt=Ze(Xt.from,bt.from),Le=Ze(Xt.to,bt.to);(Yt<0||!Mt.inclusiveLeft&&!Yt)&&le.push({from:Xt.from,to:bt.from}),(Le>0||!Mt.inclusiveRight&&!Le)&&le.push({from:bt.to,to:Xt.to}),ct.splice.apply(ct,le),Tt+=le.length-3}}return ct}function xn(it){var st=it.markedSpans;if(st){for(var dt=0;dtst)&&(!ht||kl(ht,xt.marker)<0)&&(ht=xt.marker)}return ht}function ed(it,st,dt,ht,ct){var xt=Sn(it,st),Mt=He&&xt.markedSpans;if(Mt)for(var bt=0;bt=0&&Yt<=0||le<=0&&Yt>=0)&&(le<=0&&(Tt.marker.inclusiveRight&&ct.inclusiveLeft?Ze(Xt.to,dt)>=0:Ze(Xt.to,dt)>0)||le>=0&&(Tt.marker.inclusiveRight&&ct.inclusiveLeft?Ze(Xt.from,ht)<=0:Ze(Xt.from,ht)<0)))return!0}}}function Lo(it){for(var st;st=Il(it);)it=st.find(-1,!0).line;return it}function qo(it){for(var st;st=xu(it);)it=st.find(1,!0).line;return it}function ra(it){for(var st,dt;st=xu(it);)it=st.find(1,!0).line,(dt||(dt=[])).push(it);return dt}function hi(it,st){var dt=Sn(it,st),ht=Lo(dt);return dt==ht?st:ee(ht)}function Un(it,st){if(st>it.lastLine())return st;var dt=Sn(it,st),ht;if(!We(it,dt))return st;for(;ht=xu(dt);)dt=ht.find(1,!0).line;return ee(dt)+1}function We(it,st){var dt=He&&st.markedSpans;if(dt){for(var ht=void 0,ct=0;ctst.maxLineLength&&(st.maxLineLength=ct,st.maxLine=ht)})}var Wo=function(it,st,dt){this.text=it,jt(this,st),this.height=dt?dt(this):1};Wo.prototype.lineNo=function(){return ee(this)},kn(Wo);function vr(it,st,dt,ht){it.text=st,it.stateAfter&&(it.stateAfter=null),it.styles&&(it.styles=null),it.order!=null&&(it.order=null),xn(it),jt(it,dt);var ct=ht?ht(it):1;ct!=it.height&&po(it,ct)}function $o(it){it.parent=null,xn(it)}var Pa={},Os={};function Fl(it,st){if(!it||/^\s*$/.test(it))return null;var dt=st.addModeClass?Os:Pa;return dt[it]||(dt[it]=it.replace(/\S+/g,"cm-$&"))}function ce(it,st){var dt=me("span",null,null,qt?"padding-right: .1px":null),ht={pre:me("pre",[dt],"CodeMirror-line"),content:dt,col:0,pos:0,cm:it,trailingSpace:!1,splitSpaces:it.getOption("lineWrapping")};st.measure={};for(var ct=0;ct<=(st.rest?st.rest.length:0);ct++){var xt=ct?st.rest[ct-1]:st.line,Mt=void 0;ht.pos=0,ht.addToken=Pu,qn(it.display.measure)&&(Mt=Ut(xt,it.doc.direction))&&(ht.addToken=wu(ht.addToken,Mt)),ht.map=[];var bt=st!=it.display.externalMeasured&&ee(xt);_a(xt,ht,Ji(it,xt,bt)),xt.styleClasses&&(xt.styleClasses.bgClass&&(ht.bgClass=on(xt.styleClasses.bgClass,ht.bgClass||"")),xt.styleClasses.textClass&&(ht.textClass=on(xt.styleClasses.textClass,ht.textClass||""))),ht.map.length==0&&ht.map.push(0,0,ht.content.appendChild(mr(it.display.measure))),ct==0?(st.measure.map=ht.map,st.measure.cache={}):((st.measure.maps||(st.measure.maps=[])).push(ht.map),(st.measure.caches||(st.measure.caches=[])).push({}))}if(qt){var Tt=ht.content.lastChild;(/\bcm-tab\b/.test(Tt.className)||Tt.querySelector&&Tt.querySelector(".cm-tab"))&&(ht.content.className="cm-tab-wrap-hack")}return Ve(it,"renderLine",it,st.line,ht.pre),ht.pre.className&&(ht.textClass=on(ht.pre.className,ht.textClass||"")),ht}function Bs(it){var st=$t("span","\u2022","cm-invalidchar");return st.title="\\u"+it.charCodeAt(0).toString(16),st.setAttribute("aria-label",st.title),st}function Pu(it,st,dt,ht,ct,xt,Mt){if(st){var bt=it.splitSpaces?ja(st,it.trailingSpace):st,Tt=it.cm.state.specialChars,Xt=!1,le;if(!Tt.test(st))it.col+=st.length,le=document.createTextNode(bt),it.map.push(it.pos,it.pos+st.length,le),ue&&Me<9&&(Xt=!0),it.pos+=st.length;else{le=document.createDocumentFragment();for(var Yt=0;;){Tt.lastIndex=Yt;var Le=Tt.exec(st),we=Le?Le.index-Yt:st.length-Yt;if(we){var en=document.createTextNode(bt.slice(Yt,Yt+we));ue&&Me<9?le.appendChild($t("span",[en])):le.appendChild(en),it.map.push(it.pos,it.pos+we,en),it.col+=we,it.pos+=we}if(!Le)break;Yt+=we+1;var sn=void 0;if(Le[0]==" "){var vn=it.cm.options.tabSize,Ln=vn-it.col%vn;sn=le.appendChild($t("span",bn(Ln),"cm-tab")),sn.setAttribute("role","presentation"),sn.setAttribute("cm-text"," "),it.col+=Ln}else Le[0]=="\r"||Le[0]==` -`?(sn=le.appendChild($t("span",Le[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),sn.setAttribute("cm-text",Le[0]),it.col+=1):(sn=it.cm.options.specialCharPlaceholder(Le[0]),sn.setAttribute("cm-text",Le[0]),ue&&Me<9?le.appendChild($t("span",[sn])):le.appendChild(sn),it.col+=1);it.map.push(it.pos,it.pos+1,sn),it.pos++}}if(it.trailingSpace=bt.charCodeAt(st.length-1)==32,dt||ht||ct||Xt||xt||Mt){var Kn=dt||"";ht&&(Kn+=ht),ct&&(Kn+=ct);var zn=$t("span",[le],Kn,xt);if(Mt)for(var oi in Mt)Mt.hasOwnProperty(oi)&&oi!="style"&&oi!="class"&&zn.setAttribute(oi,Mt[oi]);return it.content.appendChild(zn)}it.content.appendChild(le)}}function ja(it,st){if(it.length>1&&!/ /.test(it))return it;for(var dt=st,ht="",ct=0;ctXt&&Yt.from<=Xt));Le++);if(Yt.to>=le)return it(dt,ht,ct,xt,Mt,bt,Tt);it(dt,ht.slice(0,Yt.to-Xt),ct,xt,null,bt,Tt),xt=null,ht=ht.slice(Yt.to-Xt),Xt=Yt.to}}}function tr(it,st,dt,ht){var ct=!ht&&dt.widgetNode;ct&&it.map.push(it.pos,it.pos+st,ct),!ht&&it.cm.display.input.needsContentAttribute&&(ct||(ct=it.content.appendChild(document.createElement("span"))),ct.setAttribute("cm-marker",dt.id)),ct&&(it.cm.display.input.setUneditable(ct),it.content.appendChild(ct)),it.pos+=st,it.trailingSpace=!1}function _a(it,st,dt){var ht=it.markedSpans,ct=it.text,xt=0;if(!ht){for(var Mt=1;MtTt||Gi.collapsed&&On.to==Tt&&On.from==Tt)){if(On.to!=null&&On.to!=Tt&&we>On.to&&(we=On.to,sn=""),Gi.className&&(en+=" "+Gi.className),Gi.css&&(Le=(Le?Le+";":"")+Gi.css),Gi.startStyle&&On.from==Tt&&(vn+=" "+Gi.startStyle),Gi.endStyle&&On.to==we&&(oi||(oi=[])).push(Gi.endStyle,On.to),Gi.title&&((Kn||(Kn={})).title=Gi.title),Gi.attributes)for(var or in Gi.attributes)(Kn||(Kn={}))[or]=Gi.attributes[or];Gi.collapsed&&(!Ln||kl(Ln.marker,Gi)<0)&&(Ln=On)}else On.from>Tt&&we>On.from&&(we=On.from)}if(oi)for(var Wr=0;Wr=bt)break;for(var _s=Math.min(bt,we);;){if(le){var Is=Tt+le.length;if(!Ln){var zr=Is>_s?le.slice(0,_s-Tt):le;st.addToken(st,zr,Yt?Yt+en:en,vn,Tt+zr.length==we?sn:"",Le,Kn)}if(Is>=_s){le=le.slice(_s-Tt),Tt=_s;break}Tt=Is,vn=""}le=ct.slice(xt,xt=dt[Xt++]),Yt=Fl(dt[Xt++],st.cm.options)}}}function $a(it,st,dt){this.line=st,this.rest=ra(st),this.size=this.rest?ee(re(this.rest))-dt+1:1,this.node=this.text=null,this.hidden=We(it,st)}function Co(it,st,dt){for(var ht=[],ct,xt=st;xt2&&xt.push((Tt.bottom+Xt.top)/2-dt.top)}}xt.push(dt.bottom-dt.top)}}function wi(it,st,dt){if(it.line==st)return{map:it.measure.map,cache:it.measure.cache};for(var ht=0;htdt)return{map:it.measure.maps[ct],cache:it.measure.caches[ct],before:!0}}function Di(it,st){st=Lo(st);var dt=ee(st),ht=it.display.externalMeasured=new $a(it.doc,st,dt);ht.lineN=dt;var ct=ht.built=ce(it,ht);return ht.text=ct.pre,ne(it.display.lineMeasure,ct.pre),ht}function uo(it,st,dt,ht){return jo(it,zo(it,st),dt,ht)}function Fi(it,st){if(st>=it.display.viewFrom&&st=dt.lineN&&stst)&&(xt=Tt-bt,ct=xt-1,st>=Tt&&(Mt="right")),ct!=null){if(ht=it[Xt+2],bt==Tt&&dt==(ht.insertLeft?"left":"right")&&(Mt=dt),dt=="left"&&ct==0)for(;Xt&&it[Xt-2]==it[Xt-3]&&it[Xt-1].insertLeft;)ht=it[(Xt-=3)+2],Mt="left";if(dt=="right"&&ct==Tt-bt)for(;Xt=0&&(dt=it[ct]).left==dt.right;ct--);return dt}function ar(it,st,dt,ht){var ct=Cr(st.map,dt,ht),xt=ct.node,Mt=ct.start,bt=ct.end,Tt=ct.collapse,Xt;if(xt.nodeType==3){for(var le=0;le<4;le++){for(;Mt&&an(st.line.text.charAt(ct.coverStart+Mt));)--Mt;for(;ct.coverStart+bt0&&(Tt=ht="right");var Yt;it.options.lineWrapping&&(Yt=xt.getClientRects()).length>1?Xt=Yt[ht=="right"?Yt.length-1:0]:Xt=xt.getBoundingClientRect()}if(ue&&Me<9&&!Mt&&(!Xt||!Xt.left&&!Xt.right)){var Le=xt.parentNode.getClientRects()[0];Le?Xt={left:Le.left,right:Le.left+fh(it.display),top:Le.top,bottom:Le.bottom}:Xt=ts}for(var we=Xt.top-st.rect.top,en=Xt.bottom-st.rect.top,sn=(we+en)/2,vn=st.view.measure.heights,Ln=0;Ln=ht.text.length?(Tt=ht.text.length,Xt="before"):Tt<=0&&(Tt=0,Xt="after"),!bt)return Mt(Xt=="before"?Tt-1:Tt,Xt=="before");function le(en,sn,vn){var Ln=bt[sn],Kn=Ln.level==1;return Mt(vn?en-1:en,Kn!=vn)}var Yt=St(bt,Tt,Xt),Le=Et,we=le(Tt,Yt,Xt=="before");return Le!=null&&(we.other=le(Tt,Le,Xt!="before")),we}function bg(it,st){var dt=0;st=Gn(it.doc,st),it.options.lineWrapping||(dt=fh(it.display)*st.ch);var ht=Sn(it.doc,st.line),ct=ji(ht)+$r(it.display);return{left:dt,right:dt,top:ct,bottom:ct+ht.height}}function Og(it,st,dt,ht,ct){var xt=Pe(it,st,dt);return xt.xRel=ct,ht&&(xt.outside=ht),xt}function jg(it,st,dt){var ht=it.doc;if(dt+=it.display.viewOffset,dt<0)return Og(ht.first,0,null,-1,-1);var ct=mn(ht,dt),xt=ht.first+ht.size-1;if(ct>xt)return Og(ht.first+ht.size-1,Sn(ht,xt).text.length,null,1,1);st<0&&(st=0);for(var Mt=Sn(ht,ct);;){var bt=be(it,Mt,ct,st,dt),Tt=td(Mt,bt.ch+(bt.xRel>0||bt.outside>0?1:0));if(!Tt)return bt;var Xt=Tt.find(1);if(Xt.line==ct)return Xt;Mt=Sn(ht,ct=Xt.line)}}function Hn(it,st,dt,ht){ht-=Mr(st);var ct=st.text.length,xt=Pn(function(Mt){return jo(it,dt,Mt-1).bottom<=ht},ct,0);return ct=Pn(function(Mt){return jo(it,dt,Mt).top>ht},xt,ct),{begin:xt,end:ct}}function qf(it,st,dt,ht){dt||(dt=zo(it,st));var ct=Er(it,st,jo(it,dt,ht),"line").top;return Hn(it,st,dt,ct)}function Jt(it,st,dt,ht){return it.bottom<=dt?!1:it.top>dt?!0:(ht?it.left:it.right)>st}function be(it,st,dt,ht,ct){ct-=ji(st);var xt=zo(it,st),Mt=Mr(st),bt=0,Tt=st.text.length,Xt=!0,le=Ut(st,it.doc.direction);if(le){var Yt=(it.options.lineWrapping?Tp:Np)(it,st,dt,xt,le,ht,ct);Xt=Yt.level!=1,bt=Xt?Yt.from:Yt.to-1,Tt=Xt?Yt.to:Yt.from-1}var Le=null,we=null,en=Pn(function(Ei){var On=jo(it,xt,Ei);return On.top+=Mt,On.bottom+=Mt,Jt(On,ht,ct,!1)?(On.top<=ct&&On.left<=ht&&(Le=Ei,we=On),!0):!1},bt,Tt),sn,vn,Ln=!1;if(we){var Kn=ht-we.left=oi.bottom?1:0}return en=Wn(st.text,en,1),Og(dt,en,vn,Ln,ht-sn)}function Np(it,st,dt,ht,ct,xt,Mt){var bt=Pn(function(Yt){var Le=ct[Yt],we=Le.level!=1;return Jt(gr(it,Pe(dt,we?Le.to:Le.from,we?"before":"after"),"line",st,ht),xt,Mt,!0)},0,ct.length-1),Tt=ct[bt];if(bt>0){var Xt=Tt.level!=1,le=gr(it,Pe(dt,Xt?Tt.from:Tt.to,Xt?"after":"before"),"line",st,ht);Jt(le,xt,Mt,!0)&&le.top>Mt&&(Tt=ct[bt-1])}return Tt}function Tp(it,st,dt,ht,ct,xt,Mt){var bt=Hn(it,st,ht,Mt),Tt=bt.begin,Xt=bt.end;/\s/.test(st.text.charAt(Xt-1))&&Xt--;for(var le=null,Yt=null,Le=0;Le=Xt||we.to<=Tt)){var en=we.level!=1,sn=jo(it,ht,en?Math.min(Xt,we.to)-1:Math.max(Tt,we.from)).right,vn=snvn)&&(le=we,Yt=vn)}}return le||(le=ct[ct.length-1]),le.fromXt&&(le={from:le.from,to:Xt,level:le.level}),le}var tu;function eu(it){if(it.cachedTextHeight!=null)return it.cachedTextHeight;if(tu==null){tu=$t("pre",null,"CodeMirror-line-like");for(var st=0;st<49;++st)tu.appendChild(document.createTextNode("x")),tu.appendChild($t("br"));tu.appendChild(document.createTextNode("x"))}ne(it.measure,tu);var dt=tu.offsetHeight/50;return dt>3&&(it.cachedTextHeight=dt),_t(it.measure),dt||1}function fh(it){if(it.cachedCharWidth!=null)return it.cachedCharWidth;var st=$t("span","xxxxxxxxxx"),dt=$t("pre",[st],"CodeMirror-line-like");ne(it.measure,dt);var ht=st.getBoundingClientRect(),ct=(ht.right-ht.left)/10;return ct>2&&(it.cachedCharWidth=ct),ct||10}function Rg(it){for(var st=it.display,dt={},ht={},ct=st.gutters.clientLeft,xt=st.gutters.firstChild,Mt=0;xt;xt=xt.nextSibling,++Mt){var bt=it.display.gutterSpecs[Mt].className;dt[bt]=xt.offsetLeft+xt.clientLeft+ct,ht[bt]=xt.clientWidth}return{fixedPos:Gd(st),gutterTotalWidth:st.gutters.offsetWidth,gutterLeft:dt,gutterWidth:ht,wrapperWidth:st.wrapper.clientWidth}}function Gd(it){return it.scroller.getBoundingClientRect().left-it.sizer.getBoundingClientRect().left}function nr(it){var st=eu(it.display),dt=it.options.lineWrapping,ht=dt&&Math.max(5,it.display.scroller.clientWidth/fh(it.display)-3);return function(ct){if(We(it.doc,ct))return 0;var xt=0;if(ct.widgets)for(var Mt=0;Mt0&&(Xt=Sn(it.doc,Tt.line).text).length==Tt.ch){var le=se(Xt,Xt.length,it.options.tabSize)-Xt.length;Tt=Pe(Tt.line,Math.max(0,Math.round((xt-pl(it.display).left)/fh(it.display))-le))}return Tt}function Ca(it,st){if(st>=it.display.viewTo||(st-=it.display.viewFrom,st<0))return null;for(var dt=it.display.view,ht=0;htst)&&(ct.updateLineNumbers=st),it.curOp.viewChanged=!0,st>=ct.viewTo)He&&hi(it.doc,st)ct.viewFrom?kr(it):(ct.viewFrom+=ht,ct.viewTo+=ht);else if(st<=ct.viewFrom&&dt>=ct.viewTo)kr(it);else if(st<=ct.viewFrom){var xt=Zs(it,dt,dt+ht,1);xt?(ct.view=ct.view.slice(xt.index),ct.viewFrom=xt.lineN,ct.viewTo+=ht):kr(it)}else if(dt>=ct.viewTo){var Mt=Zs(it,st,st,-1);Mt?(ct.view=ct.view.slice(0,Mt.index),ct.viewTo=Mt.lineN):kr(it)}else{var bt=Zs(it,st,st,-1),Tt=Zs(it,dt,dt+ht,1);bt&&Tt?(ct.view=ct.view.slice(0,bt.index).concat(Co(it,bt.lineN,Tt.lineN)).concat(ct.view.slice(Tt.index)),ct.viewTo+=ht):kr(it)}var Xt=ct.externalMeasured;Xt&&(dt=ct.lineN&&st=ht.viewTo)){var xt=ht.view[Ca(it,st)];if(xt.node!=null){var Mt=xt.changes||(xt.changes=[]);_e(Mt,dt)==-1&&Mt.push(dt)}}}function kr(it){it.display.viewFrom=it.display.viewTo=it.doc.first,it.display.view=[],it.display.viewOffset=0}function Zs(it,st,dt,ht){var ct=Ca(it,st),xt,Mt=it.display.view;if(!He||dt==it.doc.first+it.doc.size)return{index:ct,lineN:dt};for(var bt=it.display.viewFrom,Tt=0;Tt0){if(ct==Mt.length-1)return null;xt=bt+Mt[ct].size-st,ct++}else xt=bt-st;st+=xt,dt+=xt}for(;hi(it.doc,dt)!=dt;){if(ct==(ht<0?0:Mt.length-1))return null;dt+=ht*Mt[ct-(ht<0?1:0)].size,ct+=ht}return{index:ct,lineN:dt}}function Ro(it,st,dt){var ht=it.display,ct=ht.view;ct.length==0||st>=ht.viewTo||dt<=ht.viewFrom?(ht.view=Co(it,st,dt),ht.viewFrom=st):(ht.viewFrom>st?ht.view=Co(it,st,ht.viewFrom).concat(ht.view):ht.viewFromdt&&(ht.view=ht.view.slice(0,Ca(it,dt)))),ht.viewTo=dt}function aa(it){for(var st=it.display.view,dt=0,ht=0;ht=it.display.viewTo||bt.to().line1}var Es={},Zr={};function Oa(it,st){arguments.length>2&&(st.dependencies=Array.prototype.slice.call(arguments,2)),Es[it]=st}function bo(it,st){Zr[it]=st}function oa(it){if(typeof it=="string"&&Zr.hasOwnProperty(it))it=Zr[it];else if(it&&typeof it.name=="string"&&Zr.hasOwnProperty(it.name)){var st=Zr[it.name];typeof st=="string"&&(st={name:st}),it=qe(st,it),it.name=st.name}else{if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(it))return oa("application/xml");if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(it))return oa("application/json")}return typeof it=="string"?{name:it}:it||{name:"null"}}function je(it,st){st=oa(st);var dt=Es[st.name];if(!dt)return je(it,"text/plain");var ht=dt(it,st);if(Ae.hasOwnProperty(st.name)){var ct=Ae[st.name];for(var xt in ct)ct.hasOwnProperty(xt)&&(ht.hasOwnProperty(xt)&&(ht["_"+xt]=ht[xt]),ht[xt]=ct[xt])}if(ht.name=st.name,st.helperType&&(ht.helperType=st.helperType),st.modeProps)for(var Mt in st.modeProps)ht[Mt]=st.modeProps[Mt];return ht}var Ae={};function fe(it,st){var dt=Ae.hasOwnProperty(it)?Ae[it]:Ae[it]={};Fn(st,dt)}function In(it,st){if(st===!0)return st;if(it.copyState)return it.copyState(st);var dt={};for(var ht in st){var ct=st[ht];ct instanceof Array&&(ct=ct.concat([])),dt[ht]=ct}return dt}function ci(it,st){for(var dt;it.innerMode&&(dt=it.innerMode(st),!(!dt||dt.mode==it));)st=dt.state,it=dt.mode;return dt||{mode:it,state:st}}function li(it,st,dt){return it.startState?it.startState(st,dt):!0}var Ke=function(it,st,dt){this.pos=this.start=0,this.string=it,this.tabSize=st||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=dt};Ke.prototype.eol=function(){return this.pos>=this.string.length},Ke.prototype.sol=function(){return this.pos==this.lineStart},Ke.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ke.prototype.next=function(){if(this.posst},Ke.prototype.eatSpace=function(){for(var it=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>it},Ke.prototype.skipToEnd=function(){this.pos=this.string.length},Ke.prototype.skipTo=function(it){var st=this.string.indexOf(it,this.pos);if(st>-1)return this.pos=st,!0},Ke.prototype.backUp=function(it){this.pos-=it},Ke.prototype.column=function(){return this.lastColumnPos0?null:(xt&&st!==!1&&(this.pos+=xt[0].length),xt)}},Ke.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ke.prototype.hideFirstChars=function(it,st){this.lineStart+=it;try{return st()}finally{this.lineStart-=it}},Ke.prototype.lookAhead=function(it){var st=this.lineOracle;return st&&st.lookAhead(it)},Ke.prototype.baseToken=function(){var it=this.lineOracle;return it&&it.baseToken(this.pos)};function Sn(it,st){if(st-=it.first,st<0||st>=it.size)throw new Error("There is no line "+(st+it.first)+" in the document.");for(var dt=it;!dt.lines;)for(var ht=0;;++ht){var ct=dt.children[ht],xt=ct.chunkSize();if(st=it.first&&stdt?Pe(dt,Sn(it,dt).text.length):_n(st,Sn(it,st.line).text.length)}function _n(it,st){var dt=it.ch;return dt==null||dt>st?Pe(it.line,st):dt<0?Pe(it.line,0):it}function Bi(it,st){for(var dt=[],ht=0;htthis.maxLookAhead&&(this.maxLookAhead=it),st},Oe.prototype.baseToken=function(it){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=it;)this.baseTokenPos+=2;var st=this.baseTokens[this.baseTokenPos+1];return{type:st&&st.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-it}},Oe.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Oe.fromSaved=function(it,st,dt){return st instanceof Ui?new Oe(it,In(it.mode,st.state),dt,st.lookAhead):new Oe(it,In(it.mode,st),dt)},Oe.prototype.save=function(it){var st=it!==!1?In(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Ui(st,this.maxLookAhead):st};function io(it,st,dt,ht){var ct=[it.state.modeGen],xt={};oo(it,st.text,it.doc.mode,dt,function(Xt,le){return ct.push(Xt,le)},xt,ht);for(var Mt=dt.state,bt=function(Xt){dt.baseTokens=ct;var le=it.state.overlays[Xt],Yt=1,Le=0;dt.state=!0,oo(it,st.text,le.mode,dt,function(we,en){for(var sn=Yt;Lewe&&ct.splice(Yt,1,we,ct[Yt+1],vn),Yt+=2,Le=Math.min(we,vn)}if(en)if(le.opaque)ct.splice(sn,Yt-sn,we,"overlay "+en),Yt=sn+2;else for(;snit.options.maxHighlightLength&&In(it.doc.mode,ht.state),xt=io(it,st,ht);ct&&(ht.state=ct),st.stateAfter=ht.save(!ct),st.styles=xt.styles,xt.classes?st.styleClasses=xt.classes:st.styleClasses&&(st.styleClasses=null),dt===it.doc.highlightFrontier&&(it.doc.modeFrontier=Math.max(it.doc.modeFrontier,++it.doc.highlightFrontier))}return st.styles}function Ii(it,st,dt){var ht=it.doc,ct=it.display;if(!ht.mode.startState)return new Oe(ht,!0,st);var xt=Xi(it,st,dt),Mt=xt>ht.first&&Sn(ht,xt-1).stateAfter,bt=Mt?Oe.fromSaved(ht,Mt,xt):new Oe(ht,li(ht.mode),xt);return ht.iter(xt,st,function(Tt){Ee(it,Tt.text,bt);var Xt=bt.line;Tt.stateAfter=Xt==st-1||Xt%5==0||Xt>=ct.viewFrom&&Xtst.start)return xt}throw new Error("Mode "+it.name+" failed to advance stream.")}var Vn=function(it,st,dt){this.start=it.start,this.end=it.pos,this.string=it.current(),this.type=st||null,this.state=dt};function Qn(it,st,dt,ht){var ct=it.doc,xt=ct.mode,Mt;st=Gn(ct,st);var bt=Sn(ct,st.line),Tt=Ii(it,st.line,dt),Xt=new Ke(bt.text,it.options.tabSize,Tt),le;for(ht&&(le=[]);(ht||Xt.posit.options.maxHighlightLength?(bt=!1,Mt&&Ee(it,st,ht,le.pos),le.pos=st.length,Yt=null):Yt=Ci(jn(dt,le,ht.state,Le),xt),Le){var we=Le[0].name;we&&(Yt="m-"+(Yt?we+" "+Yt:we))}if(!bt||Xt!=Yt){for(;TtMt;--bt){if(bt<=xt.first)return xt.first;var Tt=Sn(xt,bt-1),Xt=Tt.stateAfter;if(Xt&&(!dt||bt+(Xt instanceof Ui?Xt.lookAhead:0)<=xt.modeFrontier))return bt;var le=se(Tt.text,null,it.options.tabSize);(ct==null||ht>le)&&(ct=bt-1,ht=le)}return ct}function Vi(it,st){if(it.modeFrontier=Math.min(it.modeFrontier,st),!(it.highlightFrontierdt;ht--){var ct=Sn(it,ht).stateAfter;if(ct&&(!(ct instanceof Ui)||ht+ct.lookAhead=st:xt.to>st);(ht||(ht=[])).push(new eo(Mt,xt.from,Tt?null:xt.to))}}return ht}function Oi(it,st,dt){var ht;if(it)for(var ct=0;ct=st:xt.to>st);if(bt||xt.from==st&&Mt.type=="bookmark"&&(!dt||xt.marker.insertLeft)){var Tt=xt.from==null||(Mt.inclusiveLeft?xt.from<=st:xt.from0&&bt)for(var oi=0;oi0)){var le=[Tt,1],Yt=Ze(Xt.from,bt.from),Le=Ze(Xt.to,bt.to);(Yt<0||!Mt.inclusiveLeft&&!Yt)&&le.push({from:Xt.from,to:bt.from}),(Le>0||!Mt.inclusiveRight&&!Le)&&le.push({from:bt.to,to:Xt.to}),ct.splice.apply(ct,le),Tt+=le.length-3}}return ct}function xn(it){var st=it.markedSpans;if(st){for(var dt=0;dtst)&&(!ht||Il(ht,xt.marker)<0)&&(ht=xt.marker)}return ht}function ed(it,st,dt,ht,ct){var xt=Sn(it,st),Mt=He&&xt.markedSpans;if(Mt)for(var bt=0;bt=0&&Yt<=0||le<=0&&Yt>=0)&&(le<=0&&(Tt.marker.inclusiveRight&&ct.inclusiveLeft?Ze(Xt.to,dt)>=0:Ze(Xt.to,dt)>0)||le>=0&&(Tt.marker.inclusiveRight&&ct.inclusiveLeft?Ze(Xt.from,ht)<=0:Ze(Xt.from,ht)<0)))return!0}}}function Lo(it){for(var st;st=cl(it);)it=st.find(-1,!0).line;return it}function qo(it){for(var st;st=xu(it);)it=st.find(1,!0).line;return it}function ra(it){for(var st,dt;st=xu(it);)it=st.find(1,!0).line,(dt||(dt=[])).push(it);return dt}function hi(it,st){var dt=Sn(it,st),ht=Lo(dt);return dt==ht?st:ee(ht)}function Un(it,st){if(st>it.lastLine())return st;var dt=Sn(it,st),ht;if(!We(it,dt))return st;for(;ht=xu(dt);)dt=ht.find(1,!0).line;return ee(dt)+1}function We(it,st){var dt=He&&st.markedSpans;if(dt){for(var ht=void 0,ct=0;ctst.maxLineLength&&(st.maxLineLength=ct,st.maxLine=ht)})}var Wo=function(it,st,dt){this.text=it,jt(this,st),this.height=dt?dt(this):1};Wo.prototype.lineNo=function(){return ee(this)},kn(Wo);function vr(it,st,dt,ht){it.text=st,it.stateAfter&&(it.stateAfter=null),it.styles&&(it.styles=null),it.order!=null&&(it.order=null),xn(it),jt(it,dt);var ct=ht?ht(it):1;ct!=it.height&&po(it,ct)}function $o(it){it.parent=null,xn(it)}var Pa={},Os={};function Fl(it,st){if(!it||/^\s*$/.test(it))return null;var dt=st.addModeClass?Os:Pa;return dt[it]||(dt[it]=it.replace(/\S+/g,"cm-$&"))}function ce(it,st){var dt=me("span",null,null,qt?"padding-right: .1px":null),ht={pre:me("pre",[dt],"CodeMirror-line"),content:dt,col:0,pos:0,cm:it,trailingSpace:!1,splitSpaces:it.getOption("lineWrapping")};st.measure={};for(var ct=0;ct<=(st.rest?st.rest.length:0);ct++){var xt=ct?st.rest[ct-1]:st.line,Mt=void 0;ht.pos=0,ht.addToken=Pu,qn(it.display.measure)&&(Mt=Ut(xt,it.doc.direction))&&(ht.addToken=wu(ht.addToken,Mt)),ht.map=[];var bt=st!=it.display.externalMeasured&&ee(xt);_a(xt,ht,Ji(it,xt,bt)),xt.styleClasses&&(xt.styleClasses.bgClass&&(ht.bgClass=on(xt.styleClasses.bgClass,ht.bgClass||"")),xt.styleClasses.textClass&&(ht.textClass=on(xt.styleClasses.textClass,ht.textClass||""))),ht.map.length==0&&ht.map.push(0,0,ht.content.appendChild(mr(it.display.measure))),ct==0?(st.measure.map=ht.map,st.measure.cache={}):((st.measure.maps||(st.measure.maps=[])).push(ht.map),(st.measure.caches||(st.measure.caches=[])).push({}))}if(qt){var Tt=ht.content.lastChild;(/\bcm-tab\b/.test(Tt.className)||Tt.querySelector&&Tt.querySelector(".cm-tab"))&&(ht.content.className="cm-tab-wrap-hack")}return Ve(it,"renderLine",it,st.line,ht.pre),ht.pre.className&&(ht.textClass=on(ht.pre.className,ht.textClass||"")),ht}function Bs(it){var st=$t("span","\u2022","cm-invalidchar");return st.title="\\u"+it.charCodeAt(0).toString(16),st.setAttribute("aria-label",st.title),st}function Pu(it,st,dt,ht,ct,xt,Mt){if(st){var bt=it.splitSpaces?ja(st,it.trailingSpace):st,Tt=it.cm.state.specialChars,Xt=!1,le;if(!Tt.test(st))it.col+=st.length,le=document.createTextNode(bt),it.map.push(it.pos,it.pos+st.length,le),ue&&Me<9&&(Xt=!0),it.pos+=st.length;else{le=document.createDocumentFragment();for(var Yt=0;;){Tt.lastIndex=Yt;var Le=Tt.exec(st),we=Le?Le.index-Yt:st.length-Yt;if(we){var en=document.createTextNode(bt.slice(Yt,Yt+we));ue&&Me<9?le.appendChild($t("span",[en])):le.appendChild(en),it.map.push(it.pos,it.pos+we,en),it.col+=we,it.pos+=we}if(!Le)break;Yt+=we+1;var sn=void 0;if(Le[0]==" "){var vn=it.cm.options.tabSize,Ln=vn-it.col%vn;sn=le.appendChild($t("span",bn(Ln),"cm-tab")),sn.setAttribute("role","presentation"),sn.setAttribute("cm-text"," "),it.col+=Ln}else Le[0]=="\r"||Le[0]==` +`?(sn=le.appendChild($t("span",Le[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),sn.setAttribute("cm-text",Le[0]),it.col+=1):(sn=it.cm.options.specialCharPlaceholder(Le[0]),sn.setAttribute("cm-text",Le[0]),ue&&Me<9?le.appendChild($t("span",[sn])):le.appendChild(sn),it.col+=1);it.map.push(it.pos,it.pos+1,sn),it.pos++}}if(it.trailingSpace=bt.charCodeAt(st.length-1)==32,dt||ht||ct||Xt||xt||Mt){var Kn=dt||"";ht&&(Kn+=ht),ct&&(Kn+=ct);var zn=$t("span",[le],Kn,xt);if(Mt)for(var oi in Mt)Mt.hasOwnProperty(oi)&&oi!="style"&&oi!="class"&&zn.setAttribute(oi,Mt[oi]);return it.content.appendChild(zn)}it.content.appendChild(le)}}function ja(it,st){if(it.length>1&&!/ /.test(it))return it;for(var dt=st,ht="",ct=0;ctXt&&Yt.from<=Xt));Le++);if(Yt.to>=le)return it(dt,ht,ct,xt,Mt,bt,Tt);it(dt,ht.slice(0,Yt.to-Xt),ct,xt,null,bt,Tt),xt=null,ht=ht.slice(Yt.to-Xt),Xt=Yt.to}}}function tr(it,st,dt,ht){var ct=!ht&&dt.widgetNode;ct&&it.map.push(it.pos,it.pos+st,ct),!ht&&it.cm.display.input.needsContentAttribute&&(ct||(ct=it.content.appendChild(document.createElement("span"))),ct.setAttribute("cm-marker",dt.id)),ct&&(it.cm.display.input.setUneditable(ct),it.content.appendChild(ct)),it.pos+=st,it.trailingSpace=!1}function _a(it,st,dt){var ht=it.markedSpans,ct=it.text,xt=0;if(!ht){for(var Mt=1;MtTt||Gi.collapsed&&On.to==Tt&&On.from==Tt)){if(On.to!=null&&On.to!=Tt&&we>On.to&&(we=On.to,sn=""),Gi.className&&(en+=" "+Gi.className),Gi.css&&(Le=(Le?Le+";":"")+Gi.css),Gi.startStyle&&On.from==Tt&&(vn+=" "+Gi.startStyle),Gi.endStyle&&On.to==we&&(oi||(oi=[])).push(Gi.endStyle,On.to),Gi.title&&((Kn||(Kn={})).title=Gi.title),Gi.attributes)for(var or in Gi.attributes)(Kn||(Kn={}))[or]=Gi.attributes[or];Gi.collapsed&&(!Ln||Il(Ln.marker,Gi)<0)&&(Ln=On)}else On.from>Tt&&we>On.from&&(we=On.from)}if(oi)for(var Wr=0;Wr=bt)break;for(var _s=Math.min(bt,we);;){if(le){var Is=Tt+le.length;if(!Ln){var zr=Is>_s?le.slice(0,_s-Tt):le;st.addToken(st,zr,Yt?Yt+en:en,vn,Tt+zr.length==we?sn:"",Le,Kn)}if(Is>=_s){le=le.slice(_s-Tt),Tt=_s;break}Tt=Is,vn=""}le=ct.slice(xt,xt=dt[Xt++]),Yt=Fl(dt[Xt++],st.cm.options)}}}function $a(it,st,dt){this.line=st,this.rest=ra(st),this.size=this.rest?ee(re(this.rest))-dt+1:1,this.node=this.text=null,this.hidden=We(it,st)}function Co(it,st,dt){for(var ht=[],ct,xt=st;xt2&&xt.push((Tt.bottom+Xt.top)/2-dt.top)}}xt.push(dt.bottom-dt.top)}}function wi(it,st,dt){if(it.line==st)return{map:it.measure.map,cache:it.measure.cache};for(var ht=0;htdt)return{map:it.measure.maps[ct],cache:it.measure.caches[ct],before:!0}}function Di(it,st){st=Lo(st);var dt=ee(st),ht=it.display.externalMeasured=new $a(it.doc,st,dt);ht.lineN=dt;var ct=ht.built=ce(it,ht);return ht.text=ct.pre,ne(it.display.lineMeasure,ct.pre),ht}function uo(it,st,dt,ht){return jo(it,zo(it,st),dt,ht)}function Fi(it,st){if(st>=it.display.viewFrom&&st=dt.lineN&&stst)&&(xt=Tt-bt,ct=xt-1,st>=Tt&&(Mt="right")),ct!=null){if(ht=it[Xt+2],bt==Tt&&dt==(ht.insertLeft?"left":"right")&&(Mt=dt),dt=="left"&&ct==0)for(;Xt&&it[Xt-2]==it[Xt-3]&&it[Xt-1].insertLeft;)ht=it[(Xt-=3)+2],Mt="left";if(dt=="right"&&ct==Tt-bt)for(;Xt=0&&(dt=it[ct]).left==dt.right;ct--);return dt}function ar(it,st,dt,ht){var ct=Cr(st.map,dt,ht),xt=ct.node,Mt=ct.start,bt=ct.end,Tt=ct.collapse,Xt;if(xt.nodeType==3){for(var le=0;le<4;le++){for(;Mt&&an(st.line.text.charAt(ct.coverStart+Mt));)--Mt;for(;ct.coverStart+bt0&&(Tt=ht="right");var Yt;it.options.lineWrapping&&(Yt=xt.getClientRects()).length>1?Xt=Yt[ht=="right"?Yt.length-1:0]:Xt=xt.getBoundingClientRect()}if(ue&&Me<9&&!Mt&&(!Xt||!Xt.left&&!Xt.right)){var Le=xt.parentNode.getClientRects()[0];Le?Xt={left:Le.left,right:Le.left+fh(it.display),top:Le.top,bottom:Le.bottom}:Xt=$r}for(var we=Xt.top-st.rect.top,en=Xt.bottom-st.rect.top,sn=(we+en)/2,vn=st.view.measure.heights,Ln=0;Ln=ht.text.length?(Tt=ht.text.length,Xt="before"):Tt<=0&&(Tt=0,Xt="after"),!bt)return Mt(Xt=="before"?Tt-1:Tt,Xt=="before");function le(en,sn,vn){var Ln=bt[sn],Kn=Ln.level==1;return Mt(vn?en-1:en,Kn!=vn)}var Yt=St(bt,Tt,Xt),Le=Et,we=le(Tt,Yt,Xt=="before");return Le!=null&&(we.other=le(Tt,Le,Xt!="before")),we}function bg(it,st){var dt=0;st=Gn(it.doc,st),it.options.lineWrapping||(dt=fh(it.display)*st.ch);var ht=Sn(it.doc,st.line),ct=ji(ht)+ms(it.display);return{left:dt,right:dt,top:ct,bottom:ct+ht.height}}function Og(it,st,dt,ht,ct){var xt=Pe(it,st,dt);return xt.xRel=ct,ht&&(xt.outside=ht),xt}function jg(it,st,dt){var ht=it.doc;if(dt+=it.display.viewOffset,dt<0)return Og(ht.first,0,null,-1,-1);var ct=mn(ht,dt),xt=ht.first+ht.size-1;if(ct>xt)return Og(ht.first+ht.size-1,Sn(ht,xt).text.length,null,1,1);st<0&&(st=0);for(var Mt=Sn(ht,ct);;){var bt=be(it,Mt,ct,st,dt),Tt=td(Mt,bt.ch+(bt.xRel>0||bt.outside>0?1:0));if(!Tt)return bt;var Xt=Tt.find(1);if(Xt.line==ct)return Xt;Mt=Sn(ht,ct=Xt.line)}}function Hn(it,st,dt,ht){ht-=Mr(st);var ct=st.text.length,xt=Pn(function(Mt){return jo(it,dt,Mt-1).bottom<=ht},ct,0);return ct=Pn(function(Mt){return jo(it,dt,Mt).top>ht},xt,ct),{begin:xt,end:ct}}function qf(it,st,dt,ht){dt||(dt=zo(it,st));var ct=Er(it,st,jo(it,dt,ht),"line").top;return Hn(it,st,dt,ct)}function Jt(it,st,dt,ht){return it.bottom<=dt?!1:it.top>dt?!0:(ht?it.left:it.right)>st}function be(it,st,dt,ht,ct){ct-=ji(st);var xt=zo(it,st),Mt=Mr(st),bt=0,Tt=st.text.length,Xt=!0,le=Ut(st,it.doc.direction);if(le){var Yt=(it.options.lineWrapping?Tp:Np)(it,st,dt,xt,le,ht,ct);Xt=Yt.level!=1,bt=Xt?Yt.from:Yt.to-1,Tt=Xt?Yt.to:Yt.from-1}var Le=null,we=null,en=Pn(function(Ei){var On=jo(it,xt,Ei);return On.top+=Mt,On.bottom+=Mt,Jt(On,ht,ct,!1)?(On.top<=ct&&On.left<=ht&&(Le=Ei,we=On),!0):!1},bt,Tt),sn,vn,Ln=!1;if(we){var Kn=ht-we.left=oi.bottom?1:0}return en=Wn(st.text,en,1),Og(dt,en,vn,Ln,ht-sn)}function Np(it,st,dt,ht,ct,xt,Mt){var bt=Pn(function(Yt){var Le=ct[Yt],we=Le.level!=1;return Jt(gr(it,Pe(dt,we?Le.to:Le.from,we?"before":"after"),"line",st,ht),xt,Mt,!0)},0,ct.length-1),Tt=ct[bt];if(bt>0){var Xt=Tt.level!=1,le=gr(it,Pe(dt,Xt?Tt.from:Tt.to,Xt?"after":"before"),"line",st,ht);Jt(le,xt,Mt,!0)&&le.top>Mt&&(Tt=ct[bt-1])}return Tt}function Tp(it,st,dt,ht,ct,xt,Mt){var bt=Hn(it,st,ht,Mt),Tt=bt.begin,Xt=bt.end;/\s/.test(st.text.charAt(Xt-1))&&Xt--;for(var le=null,Yt=null,Le=0;Le=Xt||we.to<=Tt)){var en=we.level!=1,sn=jo(it,ht,en?Math.min(Xt,we.to)-1:Math.max(Tt,we.from)).right,vn=snvn)&&(le=we,Yt=vn)}}return le||(le=ct[ct.length-1]),le.fromXt&&(le={from:le.from,to:Xt,level:le.level}),le}var tu;function eu(it){if(it.cachedTextHeight!=null)return it.cachedTextHeight;if(tu==null){tu=$t("pre",null,"CodeMirror-line-like");for(var st=0;st<49;++st)tu.appendChild(document.createTextNode("x")),tu.appendChild($t("br"));tu.appendChild(document.createTextNode("x"))}ne(it.measure,tu);var dt=tu.offsetHeight/50;return dt>3&&(it.cachedTextHeight=dt),_t(it.measure),dt||1}function fh(it){if(it.cachedCharWidth!=null)return it.cachedCharWidth;var st=$t("span","xxxxxxxxxx"),dt=$t("pre",[st],"CodeMirror-line-like");ne(it.measure,dt);var ht=st.getBoundingClientRect(),ct=(ht.right-ht.left)/10;return ct>2&&(it.cachedCharWidth=ct),ct||10}function Rg(it){for(var st=it.display,dt={},ht={},ct=st.gutters.clientLeft,xt=st.gutters.firstChild,Mt=0;xt;xt=xt.nextSibling,++Mt){var bt=it.display.gutterSpecs[Mt].className;dt[bt]=xt.offsetLeft+xt.clientLeft+ct,ht[bt]=xt.clientWidth}return{fixedPos:Gd(st),gutterTotalWidth:st.gutters.offsetWidth,gutterLeft:dt,gutterWidth:ht,wrapperWidth:st.wrapper.clientWidth}}function Gd(it){return it.scroller.getBoundingClientRect().left-it.sizer.getBoundingClientRect().left}function nr(it){var st=eu(it.display),dt=it.options.lineWrapping,ht=dt&&Math.max(5,it.display.scroller.clientWidth/fh(it.display)-3);return function(ct){if(We(it.doc,ct))return 0;var xt=0;if(ct.widgets)for(var Mt=0;Mt0&&(Xt=Sn(it.doc,Tt.line).text).length==Tt.ch){var le=se(Xt,Xt.length,it.options.tabSize)-Xt.length;Tt=Pe(Tt.line,Math.max(0,Math.round((xt-ml(it.display).left)/fh(it.display))-le))}return Tt}function Ca(it,st){if(st>=it.display.viewTo||(st-=it.display.viewFrom,st<0))return null;for(var dt=it.display.view,ht=0;htst)&&(ct.updateLineNumbers=st),it.curOp.viewChanged=!0,st>=ct.viewTo)He&&hi(it.doc,st)ct.viewFrom?kr(it):(ct.viewFrom+=ht,ct.viewTo+=ht);else if(st<=ct.viewFrom&&dt>=ct.viewTo)kr(it);else if(st<=ct.viewFrom){var xt=Zs(it,dt,dt+ht,1);xt?(ct.view=ct.view.slice(xt.index),ct.viewFrom=xt.lineN,ct.viewTo+=ht):kr(it)}else if(dt>=ct.viewTo){var Mt=Zs(it,st,st,-1);Mt?(ct.view=ct.view.slice(0,Mt.index),ct.viewTo=Mt.lineN):kr(it)}else{var bt=Zs(it,st,st,-1),Tt=Zs(it,dt,dt+ht,1);bt&&Tt?(ct.view=ct.view.slice(0,bt.index).concat(Co(it,bt.lineN,Tt.lineN)).concat(ct.view.slice(Tt.index)),ct.viewTo+=ht):kr(it)}var Xt=ct.externalMeasured;Xt&&(dt=ct.lineN&&st=ht.viewTo)){var xt=ht.view[Ca(it,st)];if(xt.node!=null){var Mt=xt.changes||(xt.changes=[]);_e(Mt,dt)==-1&&Mt.push(dt)}}}function kr(it){it.display.viewFrom=it.display.viewTo=it.doc.first,it.display.view=[],it.display.viewOffset=0}function Zs(it,st,dt,ht){var ct=Ca(it,st),xt,Mt=it.display.view;if(!He||dt==it.doc.first+it.doc.size)return{index:ct,lineN:dt};for(var bt=it.display.viewFrom,Tt=0;Tt0){if(ct==Mt.length-1)return null;xt=bt+Mt[ct].size-st,ct++}else xt=bt-st;st+=xt,dt+=xt}for(;hi(it.doc,dt)!=dt;){if(ct==(ht<0?0:Mt.length-1))return null;dt+=ht*Mt[ct-(ht<0?1:0)].size,ct+=ht}return{index:ct,lineN:dt}}function Ro(it,st,dt){var ht=it.display,ct=ht.view;ct.length==0||st>=ht.viewTo||dt<=ht.viewFrom?(ht.view=Co(it,st,dt),ht.viewFrom=st):(ht.viewFrom>st?ht.view=Co(it,st,ht.viewFrom).concat(ht.view):ht.viewFromdt&&(ht.view=ht.view.slice(0,Ca(it,dt)))),ht.viewTo=dt}function aa(it){for(var st=it.display.view,dt=0,ht=0;ht=it.display.viewTo||bt.to().line0?st.blinker=setInterval(function(){it.hasFocus()||ch(it),st.cursorDiv.style.visibility=(dt=!dt)?"":"hidden"},it.options.cursorBlinkRate):it.options.cursorBlinkRate<0&&(st.cursorDiv.style.visibility="hidden")}}function Vo(it){it.state.focused||(it.display.input.focus(),ho(it))}function lr(it){it.state.delayingBlurEvent=!0,setTimeout(function(){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1,ch(it))},100)}function ho(it,st){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1),it.options.readOnly!="nocursor"&&(it.state.focused||(Ve(it,"focus",it,st),it.state.focused=!0,xe(it.display.wrapper,"CodeMirror-focused"),!it.curOp&&it.display.selForContextMenu!=it.doc.sel&&(it.display.input.reset(),qt&&setTimeout(function(){return it.display.input.reset(!0)},20)),it.display.input.receivedFocus()),Mo(it))}function ch(it,st){it.state.delayingBlurEvent||(it.state.focused&&(Ve(it,"blur",it,st),it.state.focused=!1,Vt(it.display.wrapper,"CodeMirror-focused")),clearInterval(it.display.blinker),setTimeout(function(){it.state.focused||(it.display.shift=!1)},150))}function si(it){for(var st=it.display,dt=st.lineDiv.offsetTop,ht=0;ht.005||le<-.005)&&(po(ct.line,Mt),Dp(ct.line),ct.rest))for(var Yt=0;Ytit.display.sizerWidth){var Le=Math.ceil(bt/fh(it.display));Le>it.display.maxLineLength&&(it.display.maxLineLength=Le,it.display.maxLine=ct.line,it.display.maxLineChanged=!0)}}}}function Dp(it){if(it.widgets)for(var st=0;st=Mt&&(xt=mn(st,ji(Sn(st,Tt))-it.wrapper.clientHeight),Mt=Tt)}return{from:xt,to:Math.max(Mt,xt+1)}}function bp(it,st){if(!dn(it,"scrollCursorIntoView")){var dt=it.display,ht=dt.sizer.getBoundingClientRect(),ct=null;if(st.top+ht.top<0?ct=!0:st.bottom+ht.top>(window.innerHeight||document.documentElement.clientHeight)&&(ct=!1),ct!=null&&!De){var xt=$t("div","\u200B",null,`position: absolute; - top: `+(st.top-dt.viewOffset-$r(it.display))+`px; + height: `+(On-oi)+"px"))}function Yt(zn,oi,Ei){var On=Sn(ct,zn),Gi=On.text.length,or,Wr;function cr(zr,da){return $l(it,Pe(zn,zr),"div",On,da)}function _s(zr,da,As){var Qr=qf(it,On,null,zr),xo=da=="ltr"==(As=="after")?"left":"right",Sr=As=="after"?Qr.begin:Qr.end-(/\s/.test(On.text.charAt(Qr.end-1))?2:1);return cr(Sr,xo)[xo]}var Is=Ut(On,ct.direction);return Ot(Is,oi||0,Ei==null?Gi:Ei,function(zr,da,As,Qr){var xo=As=="ltr",Sr=cr(zr,xo?"left":"right"),rs=cr(da-1,xo?"right":"left"),Ss=oi==null&&zr==0,ol=Ei==null&&da==Gi,pr=Qr==0,Ua=!Is||Qr==Is.length-1;if(rs.top-Sr.top<=3){var Br=(Xt?Ss:ol)&&pr,dg=(Xt?ol:Ss)&&Ua,Ma=Br?bt:(xo?Sr:rs).left,ga=dg?Tt:(xo?rs:Sr).right;le(Ma,Sr.top,ga-Ma,Sr.bottom)}else{var $s,Ho,ss,Rl;xo?($s=Xt&&Ss&&pr?bt:Sr.left,Ho=Xt?Tt:_s(zr,As,"before"),ss=Xt?bt:_s(da,As,"after"),Rl=Xt&&ol&&Ua?Tt:rs.right):($s=Xt?_s(zr,As,"before"):bt,Ho=!Xt&&Ss&&pr?Tt:Sr.right,ss=!Xt&&ol&&Ua?bt:rs.left,Rl=Xt?_s(da,As,"after"):Tt),le($s,Sr.top,Ho-$s,Sr.bottom),Sr.bottom0?st.blinker=setInterval(function(){it.hasFocus()||ch(it),st.cursorDiv.style.visibility=(dt=!dt)?"":"hidden"},it.options.cursorBlinkRate):it.options.cursorBlinkRate<0&&(st.cursorDiv.style.visibility="hidden")}}function Vo(it){it.state.focused||(it.display.input.focus(),ho(it))}function lr(it){it.state.delayingBlurEvent=!0,setTimeout(function(){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1,ch(it))},100)}function ho(it,st){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1),it.options.readOnly!="nocursor"&&(it.state.focused||(Ve(it,"focus",it,st),it.state.focused=!0,xe(it.display.wrapper,"CodeMirror-focused"),!it.curOp&&it.display.selForContextMenu!=it.doc.sel&&(it.display.input.reset(),qt&&setTimeout(function(){return it.display.input.reset(!0)},20)),it.display.input.receivedFocus()),Mo(it))}function ch(it,st){it.state.delayingBlurEvent||(it.state.focused&&(Ve(it,"blur",it,st),it.state.focused=!1,Vt(it.display.wrapper,"CodeMirror-focused")),clearInterval(it.display.blinker),setTimeout(function(){it.state.focused||(it.display.shift=!1)},150))}function si(it){for(var st=it.display,dt=st.lineDiv.offsetTop,ht=0;ht.005||le<-.005)&&(po(ct.line,Mt),Dp(ct.line),ct.rest))for(var Yt=0;Ytit.display.sizerWidth){var Le=Math.ceil(bt/fh(it.display));Le>it.display.maxLineLength&&(it.display.maxLineLength=Le,it.display.maxLine=ct.line,it.display.maxLineChanged=!0)}}}}function Dp(it){if(it.widgets)for(var st=0;st=Mt&&(xt=mn(st,ji(Sn(st,Tt))-it.wrapper.clientHeight),Mt=Tt)}return{from:xt,to:Math.max(Mt,xt+1)}}function bp(it,st){if(!dn(it,"scrollCursorIntoView")){var dt=it.display,ht=dt.sizer.getBoundingClientRect(),ct=null;if(st.top+ht.top<0?ct=!0:st.bottom+ht.top>(window.innerHeight||document.documentElement.clientHeight)&&(ct=!1),ct!=null&&!De){var xt=$t("div","\u200B",null,`position: absolute; + top: `+(st.top-dt.viewOffset-ms(it.display))+`px; height: `+(st.bottom-st.top+Ls(it)+dt.barHeight)+`px; - left: `+st.left+"px; width: "+Math.max(2,st.right-st.left)+"px;");it.display.lineSpace.appendChild(xt),xt.scrollIntoView(ct),it.display.lineSpace.removeChild(xt)}}}function od(it,st,dt,ht){ht==null&&(ht=0);var ct;!it.options.lineWrapping&&st==dt&&(st=st.ch?Pe(st.line,st.sticky=="before"?st.ch-1:st.ch,"after"):st,dt=st.sticky=="before"?Pe(st.line,st.ch+1,"before"):st);for(var xt=0;xt<5;xt++){var Mt=!1,bt=gr(it,st),Tt=!dt||dt==st?bt:gr(it,dt);ct={left:Math.min(bt.left,Tt.left),top:Math.min(bt.top,Tt.top)-ht,right:Math.max(bt.left,Tt.left),bottom:Math.max(bt.bottom,Tt.bottom)+ht};var Xt=_f(it,ct),le=it.doc.scrollTop,Yt=it.doc.scrollLeft;if(Xt.scrollTop!=null&&(mh(it,Xt.scrollTop),Math.abs(it.doc.scrollTop-le)>1&&(Mt=!0)),Xt.scrollLeft!=null&&(iu(it,Xt.scrollLeft),Math.abs(it.doc.scrollLeft-Yt)>1&&(Mt=!0)),!Mt)break}return ct}function Ud(it,st){var dt=_f(it,st);dt.scrollTop!=null&&mh(it,dt.scrollTop),dt.scrollLeft!=null&&iu(it,dt.scrollLeft)}function _f(it,st){var dt=it.display,ht=eu(it.display);st.top<0&&(st.top=0);var ct=it.curOp&&it.curOp.scrollTop!=null?it.curOp.scrollTop:dt.scroller.scrollTop,xt=Ge(it),Mt={};st.bottom-st.top>xt&&(st.bottom=st.top+xt);var bt=it.doc.height+cl(dt),Tt=st.topbt-ht;if(st.topct+xt){var le=Math.min(st.top,(Xt?bt:st.bottom)-xt);le!=ct&&(Mt.scrollTop=le)}var Yt=it.options.fixedGutter?0:dt.gutters.offsetWidth,Le=it.curOp&&it.curOp.scrollLeft!=null?it.curOp.scrollLeft:dt.scroller.scrollLeft-Yt,we=wa(it)-dt.gutters.offsetWidth,en=st.right-st.left>we;return en&&(st.right=st.left+we),st.left<10?Mt.scrollLeft=0:st.leftwe+Le-3&&(Mt.scrollLeft=st.right+(en?0:10)-we),Mt}function zg(it,st){st!=null&&(Tl(it),it.curOp.scrollTop=(it.curOp.scrollTop==null?it.doc.scrollTop:it.curOp.scrollTop)+st)}function nu(it){Tl(it);var st=it.getCursor();it.curOp.scrollToPos={from:st,to:st,margin:it.options.cursorScrollMargin}}function ph(it,st,dt){(st!=null||dt!=null)&&Tl(it),st!=null&&(it.curOp.scrollLeft=st),dt!=null&&(it.curOp.scrollTop=dt)}function fo(it,st){Tl(it),it.curOp.scrollToPos=st}function Tl(it){var st=it.curOp.scrollToPos;if(st){it.curOp.scrollToPos=null;var dt=bg(it,st.from),ht=bg(it,st.to);Qg(it,dt,ht,st.margin)}}function Qg(it,st,dt,ht){var ct=_f(it,{left:Math.min(st.left,dt.left),top:Math.min(st.top,dt.top)-ht,right:Math.max(st.right,dt.right),bottom:Math.max(st.bottom,dt.bottom)+ht});ph(it,ct.scrollLeft,ct.scrollTop)}function mh(it,st){Math.abs(it.doc.scrollTop-st)<2||(wt||Fu(it,{top:st}),$f(it,st,!0),wt&&Fu(it),rd(it,100))}function $f(it,st,dt){st=Math.max(0,Math.min(it.display.scroller.scrollHeight-it.display.scroller.clientHeight,st)),!(it.display.scroller.scrollTop==st&&!dt)&&(it.doc.scrollTop=st,it.display.scrollbars.setScrollTop(st),it.display.scroller.scrollTop!=st&&(it.display.scroller.scrollTop=st))}function iu(it,st,dt,ht){st=Math.max(0,Math.min(st,it.display.scroller.scrollWidth-it.display.scroller.clientWidth)),!((dt?st==it.doc.scrollLeft:Math.abs(it.doc.scrollLeft-st)<2)&&!ht)&&(it.doc.scrollLeft=st,Ug(it),it.display.scroller.scrollLeft!=st&&(it.display.scroller.scrollLeft=st),it.display.scrollbars.setScrollLeft(st))}function za(it){var st=it.display,dt=st.gutters.offsetWidth,ht=Math.round(it.doc.height+cl(it.display));return{clientHeight:st.scroller.clientHeight,viewHeight:st.wrapper.clientHeight,scrollWidth:st.scroller.scrollWidth,clientWidth:st.scroller.clientWidth,viewWidth:st.wrapper.clientWidth,barLeft:it.options.fixedGutter?dt:0,docHeight:ht,scrollHeight:ht+Ls(it)+st.barHeight,nativeBarWidth:st.nativeBarWidth,gutterWidth:dt}}var Bu=function(it,st,dt){this.cm=dt;var ht=this.vert=$t("div",[$t("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ct=this.horiz=$t("div",[$t("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ht.tabIndex=ct.tabIndex=-1,it(ht),it(ct),te(ht,"scroll",function(){ht.clientHeight&&st(ht.scrollTop,"vertical")}),te(ct,"scroll",function(){ct.clientWidth&&st(ct.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ue&&Me<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Bu.prototype.update=function(it){var st=it.scrollWidth>it.clientWidth+1,dt=it.scrollHeight>it.clientHeight+1,ht=it.nativeBarWidth;if(dt){this.vert.style.display="block",this.vert.style.bottom=st?ht+"px":"0";var ct=it.viewHeight-(st?ht:0);this.vert.firstChild.style.height=Math.max(0,it.scrollHeight-it.clientHeight+ct)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(st){this.horiz.style.display="block",this.horiz.style.right=dt?ht+"px":"0",this.horiz.style.left=it.barLeft+"px";var xt=it.viewWidth-it.barLeft-(dt?ht:0);this.horiz.firstChild.style.width=Math.max(0,it.scrollWidth-it.clientWidth+xt)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&it.clientHeight>0&&(ht==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:dt?ht:0,bottom:st?ht:0}},Bu.prototype.setScrollLeft=function(it){this.horiz.scrollLeft!=it&&(this.horiz.scrollLeft=it),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Bu.prototype.setScrollTop=function(it){this.vert.scrollTop!=it&&(this.vert.scrollTop=it),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Bu.prototype.zeroWidthHack=function(){var it=gt&&!Te?"12px":"18px";this.horiz.style.height=this.vert.style.width=it,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Wt,this.disableVert=new Wt},Bu.prototype.enableZeroWidthBar=function(it,st,dt){it.style.pointerEvents="auto";function ht(){var ct=it.getBoundingClientRect(),xt=dt=="vert"?document.elementFromPoint(ct.right-1,(ct.top+ct.bottom)/2):document.elementFromPoint((ct.right+ct.left)/2,ct.bottom-1);xt!=it?it.style.pointerEvents="none":st.set(1e3,ht)}st.set(1e3,ht)},Bu.prototype.clear=function(){var it=this.horiz.parentNode;it.removeChild(this.horiz),it.removeChild(this.vert)};var vl=function(){};vl.prototype.update=function(){return{bottom:0,right:0}},vl.prototype.setScrollLeft=function(){},vl.prototype.setScrollTop=function(){},vl.prototype.clear=function(){};function Lu(it,st){st||(st=za(it));var dt=it.display.barWidth,ht=it.display.barHeight;Hg(it,st);for(var ct=0;ct<4&&dt!=it.display.barWidth||ht!=it.display.barHeight;ct++)dt!=it.display.barWidth&&it.options.lineWrapping&&si(it),Hg(it,za(it)),dt=it.display.barWidth,ht=it.display.barHeight}function Hg(it,st){var dt=it.display,ht=dt.scrollbars.update(st);dt.sizer.style.paddingRight=(dt.barWidth=ht.right)+"px",dt.sizer.style.paddingBottom=(dt.barHeight=ht.bottom)+"px",dt.heightForcer.style.borderBottom=ht.bottom+"px solid transparent",ht.right&&ht.bottom?(dt.scrollbarFiller.style.display="block",dt.scrollbarFiller.style.height=ht.bottom+"px",dt.scrollbarFiller.style.width=ht.right+"px"):dt.scrollbarFiller.style.display="",ht.bottom&&it.options.coverGutterNextToScrollbar&&it.options.fixedGutter?(dt.gutterFiller.style.display="block",dt.gutterFiller.style.height=ht.bottom+"px",dt.gutterFiller.style.width=st.gutterWidth+"px"):dt.gutterFiller.style.display=""}var tc={native:Bu,null:vl};function ec(it){it.display.scrollbars&&(it.display.scrollbars.clear(),it.display.scrollbars.addClass&&Vt(it.display.wrapper,it.display.scrollbars.addClass)),it.display.scrollbars=new tc[it.options.scrollbarStyle](function(st){it.display.wrapper.insertBefore(st,it.display.scrollbarFiller),te(st,"mousedown",function(){it.state.focused&&setTimeout(function(){return it.display.input.focus()},0)}),st.setAttribute("cm-not-content","true")},function(st,dt){dt=="horizontal"?iu(it,st):mh(it,st)},it),it.display.scrollbars.addClass&&xe(it.display.wrapper,it.display.scrollbars.addClass)}var Op=0;function Mu(it){it.curOp={cm:it,viewChanged:!1,startHeight:it.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Op},Cu(it.curOp)}function ku(it){var st=it.curOp;st&&hh(st,function(dt){for(var ht=0;ht=dt.viewTo)||dt.maxLineChanged&&st.options.lineWrapping,it.update=it.mustUpdate&&new vh(st,it.mustUpdate&&{top:it.scrollTop,ensure:it.scrollToPos},it.forceUpdate)}function _m(it){it.updatedDisplay=it.mustUpdate&&Gg(it.cm,it.update)}function jp(it){var st=it.cm,dt=st.display;it.updatedDisplay&&si(st),it.barMeasure=za(st),dt.maxLineChanged&&!st.options.lineWrapping&&(it.adjustWidthTo=uo(st,dt.maxLine,dt.maxLine.text.length).left+3,st.display.sizerWidth=it.adjustWidthTo,it.barMeasure.scrollWidth=Math.max(dt.scroller.clientWidth,dt.sizer.offsetLeft+it.adjustWidthTo+Ls(st)+st.display.barWidth),it.maxScrollLeft=Math.max(0,dt.sizer.offsetLeft+it.adjustWidthTo-wa(st))),(it.updatedDisplay||it.selectionChanged)&&(it.preparedSelection=dt.input.prepareSelection())}function Ar(it){var st=it.cm;it.adjustWidthTo!=null&&(st.display.sizer.style.minWidth=it.adjustWidthTo+"px",it.maxScrollLeft=it.display.viewTo)){var dt=+new Date+it.options.workTime,ht=Ii(it,st.highlightFrontier),ct=[];st.iter(ht.line,Math.min(st.first+st.size,it.display.viewTo+500),function(xt){if(ht.line>=it.display.viewFrom){var Mt=xt.styles,bt=xt.text.length>it.options.maxHighlightLength?In(st.mode,ht.state):null,Tt=io(it,xt,ht,!0);bt&&(ht.state=bt),xt.styles=Tt.styles;var Xt=xt.styleClasses,le=Tt.classes;le?xt.styleClasses=le:Xt&&(xt.styleClasses=null);for(var Yt=!Mt||Mt.length!=xt.styles.length||Xt!=le&&(!Xt||!le||Xt.bgClass!=le.bgClass||Xt.textClass!=le.textClass),Le=0;!Yt&&Ledt)return rd(it,it.options.workDelay),!0}),st.highlightFrontier=ht.line,st.modeFrontier=Math.max(st.modeFrontier,ht.line),ct.length&&Po(it,function(){for(var xt=0;xt=dt.viewFrom&&st.visible.to<=dt.viewTo&&(dt.updateLineNumbers==null||dt.updateLineNumbers>=dt.viewTo)&&dt.renderedView==dt.view&&aa(it)==0)return!1;br(it)&&(kr(it),st.dims=Rg(it));var ct=ht.first+ht.size,xt=Math.max(st.visible.from-it.options.viewportMargin,ht.first),Mt=Math.min(ct,st.visible.to+it.options.viewportMargin);dt.viewFromMt&&dt.viewTo-Mt<20&&(Mt=Math.min(ct,dt.viewTo)),He&&(xt=hi(it.doc,xt),Mt=Un(it.doc,Mt));var bt=xt!=dt.viewFrom||Mt!=dt.viewTo||dt.lastWrapHeight!=st.wrapperHeight||dt.lastWrapWidth!=st.wrapperWidth;Ro(it,xt,Mt),dt.viewOffset=ji(Sn(it.doc,dt.viewFrom)),it.display.mover.style.top=dt.viewOffset+"px";var Tt=aa(it);if(!bt&&Tt==0&&!st.force&&dt.renderedView==dt.view&&(dt.updateLineNumbers==null||dt.updateLineNumbers>=dt.viewTo))return!1;var Xt=zp(it);return Tt>4&&(dt.lineDiv.style.display="none"),nc(it,dt.updateLineNumbers,st.dims),Tt>4&&(dt.lineDiv.style.display=""),dt.renderedView=dt.view,Js(Xt),_t(dt.cursorDiv),_t(dt.selectionDiv),dt.gutters.style.height=dt.sizer.style.minHeight=0,bt&&(dt.lastWrapHeight=st.wrapperHeight,dt.lastWrapWidth=st.wrapperWidth,rd(it,400)),dt.updateLineNumbers=null,!0}function ko(it,st){for(var dt=st.viewport,ht=!0;;ht=!1){if(!ht||!it.options.lineWrapping||st.oldDisplayWidth==wa(it)){if(dt&&dt.top!=null&&(dt={top:Math.min(it.doc.height+cl(it.display)-Ge(it),dt.top)}),st.visible=no(it.display,it.doc,dt),st.visible.from>=it.display.viewFrom&&st.visible.to<=it.display.viewTo)break}else ht&&(st.visible=no(it.display,it.doc,dt));if(!Gg(it,st))break;si(it);var ct=za(it);Gr(it),Lu(it,ct),Tu(it,ct),st.force=!1}st.signal(it,"update",it),(it.display.viewFrom!=it.display.reportedViewFrom||it.display.viewTo!=it.display.reportedViewTo)&&(st.signal(it,"viewportChange",it,it.display.viewFrom,it.display.viewTo),it.display.reportedViewFrom=it.display.viewFrom,it.display.reportedViewTo=it.display.viewTo)}function Fu(it,st){var dt=new vh(it,st);if(Gg(it,dt)){si(it),ko(it,dt);var ht=za(it);Gr(it),Lu(it,ht),Tu(it,ht),dt.finish()}}function nc(it,st,dt){var ht=it.display,ct=it.options.lineNumbers,xt=ht.lineDiv,Mt=xt.firstChild;function bt(en){var sn=en.nextSibling;return qt&>&&it.display.currentWheelTarget==en?en.style.display="none":en.parentNode.removeChild(en),sn}for(var Tt=ht.view,Xt=ht.viewFrom,le=0;le-1&&(we=!1),nd(it,Yt,Xt,dt)),we&&(_t(Yt.lineNumber),Yt.lineNumber.appendChild(document.createTextNode(yo(it.options,Xt)))),Mt=Yt.node.nextSibling}Xt+=Yt.size}for(;Mt;)Mt=bt(Mt)}function Nu(it){var st=it.gutters.offsetWidth;it.sizer.style.marginLeft=st+"px"}function Tu(it,st){it.display.sizer.style.minHeight=st.docHeight+"px",it.display.heightForcer.style.top=st.docHeight+"px",it.display.gutters.style.height=st.docHeight+it.display.barHeight+Ls(it)+"px"}function Ug(it){var st=it.display,dt=st.view;if(!(!st.alignWidgets&&(!st.gutters.firstChild||!it.options.fixedGutter))){for(var ht=Gd(st)-st.scroller.scrollLeft+it.doc.scrollLeft,ct=st.gutters.offsetWidth,xt=ht+"px",Mt=0;MtMt.clientWidth,Tt=Mt.scrollHeight>Mt.clientHeight;if(ht&&bt||ct&&Tt){if(ct&>&&qt){t:for(var Xt=st.target,le=xt.view;Xt!=Mt;Xt=Xt.parentNode)for(var Yt=0;Yt=0&&Ze(it,ht.to())<=0)return dt}return-1};var Io=function(it,st){this.anchor=it,this.head=st};Io.prototype.from=function(){return Jn(this.anchor,this.head)},Io.prototype.to=function(){return to(this.anchor,this.head)},Io.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function il(it,st,dt){var ht=it&&it.options.selectionsMayTouch,ct=st[dt];st.sort(function(Le,we){return Ze(Le.from(),we.from())}),dt=_e(st,ct);for(var xt=1;xt0:Tt>=0){var Xt=Jn(bt.from(),Mt.from()),le=to(bt.to(),Mt.to()),Yt=bt.empty()?Mt.from()==Mt.head:bt.from()==bt.head;xt<=dt&&--dt,st.splice(--xt,2,new Io(Yt?le:Xt,Yt?Xt:le))}}return new Qa(st,dt)}function ou(it,st){return new Qa([new Io(it,st||it)],0)}function bu(it){return it.text?Pe(it.from.line+it.text.length-1,re(it.text).length+(it.text.length==1?it.from.ch:0)):it.to}function Ah(it,st){if(Ze(it,st.from)<0)return it;if(Ze(it,st.to)<=0)return bu(st);var dt=it.line+st.text.length-(st.to.line-st.from.line)-1,ht=it.ch;return it.line==st.to.line&&(ht+=bu(st).ch-st.to.ch),Pe(dt,ht)}function Xd(it,st){for(var dt=[],ht=0;ht1&&it.remove(bt.line+1,en-1),it.insert(bt.line+1,Ln)}Rn(it,"change",it,st)}function Al(it,st,dt){function ht(ct,xt,Mt){if(ct.linked)for(var bt=0;bt1&&!it.done[it.done.length-2].ranges)return it.done.pop(),re(it.done)}function Zd(it,st,dt,ht){var ct=it.history;ct.undone.length=0;var xt=+new Date,Mt,bt;if((ct.lastOp==ht||ct.lastOrigin==st.origin&&st.origin&&(st.origin.charAt(0)=="+"&&ct.lastModTime>xt-(it.cm?it.cm.options.historyEventDelay:500)||st.origin.charAt(0)=="*"))&&(Mt=Yd(ct,ct.lastOp==ht)))bt=re(Mt.changes),Ze(st.from,st.to)==0&&Ze(st.from,bt.to)==0?bt.to=bu(st):Mt.changes.push(Vg(it,st));else{var Tt=re(ct.done);for((!Tt||!Tt.ranges)&&ud(it.sel,ct.done),Mt={changes:[Vg(it,st)],generation:ct.generation},ct.done.push(Mt);ct.done.length>ct.undoDepth;)ct.done.shift(),ct.done[0].ranges||ct.done.shift()}ct.done.push(dt),ct.generation=++ct.maxGeneration,ct.lastModTime=ct.lastSelTime=xt,ct.lastOp=ct.lastSelOp=ht,ct.lastOrigin=ct.lastSelOrigin=st.origin,bt||Ve(it,"historyAdded")}function oc(it,st,dt,ht){var ct=st.charAt(0);return ct=="*"||ct=="+"&&dt.ranges.length==ht.ranges.length&&dt.somethingSelected()==ht.somethingSelected()&&new Date-it.history.lastSelTime<=(it.cm?it.cm.options.historyEventDelay:500)}function Jd(it,st,dt,ht){var ct=it.history,xt=ht&&ht.origin;dt==ct.lastSelOp||xt&&ct.lastSelOrigin==xt&&(ct.lastModTime==ct.lastSelTime&&ct.lastOrigin==xt||oc(it,xt,re(ct.done),st))?ct.done[ct.done.length-1]=st:ud(st,ct.done),ct.lastSelTime=+new Date,ct.lastSelOrigin=xt,ct.lastSelOp=dt,ht&&ht.clearRedo!==!1&&ld(ct.undone)}function ud(it,st){var dt=re(st);dt&&dt.ranges&&dt.equals(it)||st.push(it)}function Ou(it,st,dt,ht){var ct=st["spans_"+it.id],xt=0;it.iter(Math.max(it.first,dt),Math.min(it.first+it.size,ht),function(Mt){Mt.markedSpans&&((ct||(ct=st["spans_"+it.id]={}))[xt]=Mt.markedSpans),++xt})}function Qs(it){if(!it)return null;for(var st,dt=0;dt-1&&(re(bt)[Yt]=Xt[Yt],delete Xt[Yt])}}return ht}function Yg(it,st,dt,ht){if(ht){var ct=it.anchor;if(dt){var xt=Ze(st,ct)<0;xt!=Ze(dt,ct)<0?(ct=st,st=dt):xt!=Ze(st,dt)<0&&(st=dt)}return new Io(ct,st)}else return new Io(dt||st,st)}function Zg(it,st,dt,ht,ct){ct==null&&(ct=it.cm&&(it.cm.display.shift||it.extend)),ks(it,new Qa([Yg(it.sel.primary(),st,dt,ct)],0),ht)}function Qp(it,st,dt){for(var ht=[],ct=it.cm&&(it.cm.display.shift||it.extend),xt=0;xt=st.ch:bt.to>st.ch))){if(ct&&(Ve(Tt,"beforeCursorEnter"),Tt.explicitlyCleared))if(xt.markedSpans){--Mt;continue}else break;if(!Tt.atomic)continue;if(dt){var Yt=Tt.find(ht<0?1:-1),Le=void 0;if((ht<0?le:Xt)&&(Yt=sc(it,Yt,-ht,Yt&&Yt.line==st.line?xt:null)),Yt&&Yt.line==st.line&&(Le=Ze(Yt,dt))&&(ht<0?Le<0:Le>0))return su(it,Yt,st,ht,ct)}var we=Tt.find(ht<0?-1:1);return(ht<0?Xt:le)&&(we=sc(it,we,ht,we.line==st.line?xt:null)),we?su(it,we,st,ht,ct):null}}return st}function $d(it,st,dt,ht,ct){var xt=ht||1,Mt=su(it,st,dt,xt,ct)||!ct&&su(it,st,dt,xt,!0)||su(it,st,dt,-xt,ct)||!ct&&su(it,st,dt,-xt,!0);return Mt||(it.cantEdit=!0,Pe(it.first,0))}function sc(it,st,dt,ht){return dt<0&&st.ch==0?st.line>it.first?Gn(it,Pe(st.line-1)):null:dt>0&&st.ch==(ht||Sn(it,st.line)).text.length?st.line=0;--ct)Ph(it,{from:ht[ct].from,to:ht[ct].to,text:ct?[""]:st.text,origin:st.origin});else Ph(it,st)}}function Ph(it,st){if(!(st.text.length==1&&st.text[0]==""&&Ze(st.from,st.to)==0)){var dt=Xd(it,st);Zd(it,st,dt,it.cm?it.cm.curOp.id:NaN),hd(it,st,dt,Bo(it,st));var ht=[];Al(it,function(ct,xt){!xt&&_e(ht,ct.history)==-1&&(lc(ct.history,st),ht.push(ct.history)),hd(ct,st,null,Bo(ct,st))})}}function eg(it,st,dt){var ht=it.cm&&it.cm.state.suppressEdits;if(!(ht&&!dt)){for(var ct=it.history,xt,Mt=it.sel,bt=st=="undo"?ct.done:ct.undone,Tt=st=="undo"?ct.undone:ct.done,Xt=0;Xt=0;--we){var en=Le(we);if(en)return en.v}}}}function ac(it,st){if(st!=0&&(it.first+=st,it.sel=new Qa(An(it.sel.ranges,function(ct){return new Io(Pe(ct.anchor.line+st,ct.anchor.ch),Pe(ct.head.line+st,ct.head.ch))}),it.sel.primIndex),it.cm)){ir(it.cm,it.first,it.first-st,st);for(var dt=it.cm.display,ht=dt.viewFrom;htit.lastLine())){if(st.from.linext&&(st={from:st.from,to:Pe(xt,Sn(it,xt).text.length),text:[st.text[0]],origin:st.origin}),st.removed=Yi(it,st.from,st.to),dt||(dt=Xd(it,st)),it.cm?Gp(it.cm,st,ht):Xg(it,st,ht),xh(it,dt,ve),it.cantEdit&&$d(it,Pe(it.firstLine(),0))&&(it.cantEdit=!1)}}function Gp(it,st,dt){var ht=it.doc,ct=it.display,xt=st.from,Mt=st.to,bt=!1,Tt=xt.line;it.options.lineWrapping||(Tt=ee(Lo(Sn(ht,xt.line))),ht.iter(Tt,Mt.line+1,function(we){if(we==ct.maxLine)return bt=!0,!0})),ht.sel.contains(st.from,st.to)>-1&&Mn(it),Xg(ht,st,dt,nr(it)),it.options.lineWrapping||(ht.iter(Tt,xt.line+st.text.length,function(we){var en=Oo(we);en>ct.maxLineLength&&(ct.maxLine=we,ct.maxLineLength=en,ct.maxLineChanged=!0,bt=!1)}),bt&&(it.curOp.updateMaxLine=!0)),Vi(ht,xt.line),rd(it,400);var Xt=st.text.length-(Mt.line-xt.line)-1;st.full?ir(it):xt.line==Mt.line&&st.text.length==1&&!ic(it.doc,st)?Ri(it,xt.line,"text"):ir(it,xt.line,Mt.line+1,Xt);var le=ii(it,"changes"),Yt=ii(it,"change");if(Yt||le){var Le={from:xt,to:Mt,text:st.text,removed:st.removed,origin:st.origin};Yt&&Rn(it,"change",it,Le),le&&(it.curOp.changeObjs||(it.curOp.changeObjs=[])).push(Le)}it.display.selForContextMenu=null}function wh(it,st,dt,ht,ct){var xt;ht||(ht=dt),Ze(ht,dt)<0&&(xt=[ht,dt],dt=xt[0],ht=xt[1]),typeof st=="string"&&(st=it.splitLines(st)),Ru(it,{from:dt,to:ht,text:st,origin:ct})}function Ha(it,st,dt,ht){dt1||!(this.children[0]instanceof dd))){var bt=[];this.collapse(bt),this.children=[new dd(bt)],this.children[0].parent=this}},collapse:function(it){for(var st=0;st50){for(var Mt=ct.lines.length%25+25,bt=Mt;bt10);it.parent.maybeSpill()}},iterN:function(it,st,dt){for(var ht=0;htit.display.maxLineLength&&(it.display.maxLine=Xt,it.display.maxLineLength=le,it.display.maxLineChanged=!0)}ht!=null&&it&&this.collapsed&&ir(it,ht,ct+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,it&&qd(it.doc)),it&&Rn(it,"markerCleared",it,this,ht,ct),st&&ku(it),this.parent&&this.parent.clear()}},oe.prototype.find=function(it,st){it==null&&this.type=="bookmark"&&(it=1);for(var dt,ht,ct=0;ct0||Mt==0&&xt.clearWhenEmpty!==!1)return xt;if(xt.replacedWith&&(xt.collapsed=!0,xt.widgetNode=me("span",[xt.replacedWith],"CodeMirror-widget"),ht.handleMouseEvents||xt.widgetNode.setAttribute("cm-ignore-events","true"),ht.insertLeft&&(xt.widgetNode.insertLeft=!0)),xt.collapsed){if(ed(it,st.line,st,dt,xt)||st.line!=dt.line&&ed(it,dt.line,st,dt,xt))throw new Error("Inserting collapsed marker partially overlapping an existing one");ze()}xt.addToHistory&&Zd(it,{from:st,to:dt,origin:"markText"},it.sel,NaN);var bt=st.line,Tt=it.cm,Xt;if(it.iter(bt,dt.line+1,function(Yt){Tt&&xt.collapsed&&!Tt.options.lineWrapping&&Lo(Yt)==Tt.display.maxLine&&(Xt=!0),xt.collapsed&&bt!=st.line&&po(Yt,0),Jr(Yt,new eo(xt,bt==st.line?st.ch:null,bt==dt.line?dt.ch:null)),++bt}),xt.collapsed&&it.iter(st.line,dt.line+1,function(Yt){We(it,Yt)&&po(Yt,0)}),xt.clearOnEnter&&te(xt,"beforeCursorEnter",function(){return xt.clear()}),xt.readOnly&&(qi(),(it.history.done.length||it.history.undone.length)&&it.clearHistory()),xt.collapsed&&(xt.id=++Wp,xt.atomic=!0),Tt){if(Xt&&(Tt.curOp.updateMaxLine=!0),xt.collapsed)ir(Tt,st.line,dt.line+1);else if(xt.className||xt.startStyle||xt.endStyle||xt.css||xt.attributes||xt.title)for(var le=st.line;le<=dt.line;le++)Ri(Tt,le,"text");xt.atomic&&qd(Tt.doc),Rn(Tt,"markerAdded",Tt,xt)}return xt}var bl=function(it,st){this.markers=it,this.primary=st;for(var dt=0;dt=0;Tt--)Ru(this,ht[Tt]);bt?Jg(this,bt):this.cm&&nu(this.cm)}),undo:ns(function(){eg(this,"undo")}),redo:ns(function(){eg(this,"redo")}),undoSelection:ns(function(){eg(this,"undo",!0)}),redoSelection:ns(function(){eg(this,"redo",!0)}),setExtending:function(it){this.extend=it},getExtending:function(){return this.extend},historySize:function(){for(var it=this.history,st=0,dt=0,ht=0;ht=it.ch)&&st.push(ct.marker.parent||ct.marker)}return st},findMarks:function(it,st,dt){it=Gn(this,it),st=Gn(this,st);var ht=[],ct=it.line;return this.iter(it.line,st.line+1,function(xt){var Mt=xt.markedSpans;if(Mt)for(var bt=0;bt=Tt.to||Tt.from==null&&ct!=it.line||Tt.from!=null&&ct==st.line&&Tt.from>=st.ch)&&(!dt||dt(Tt.marker))&&ht.push(Tt.marker.parent||Tt.marker)}++ct}),ht},getAllMarks:function(){var it=[];return this.iter(function(st){var dt=st.markedSpans;if(dt)for(var ht=0;htit)return st=it,!0;it-=xt,++dt}),Gn(this,Pe(dt,st))},indexFromPos:function(it){it=Gn(this,it);var st=it.ch;if(it.linest&&(st=it.from),it.to!=null&&it.to-1){st.state.draggingText(it),setTimeout(function(){return st.display.input.focus()},20);return}try{var le=it.dataTransfer.getData("Text");if(le){var Yt;if(st.state.draggingText&&!st.state.draggingText.copy&&(Yt=st.listSelections()),xh(st.doc,ou(dt,dt)),Yt)for(var Le=0;Le=0;bt--)wh(it.doc,"",ht[bt].from,ht[bt].to,"+delete");nu(it)})}function vc(it,st,dt){var ht=Wn(it.text,st+dt,dt);return ht<0||ht>it.text.length?null:ht}function Nr(it,st,dt){var ht=vc(it,st.ch,dt);return ht==null?null:new Pe(st.line,ht,dt<0?"after":"before")}function rg(it,st,dt,ht,ct){if(it){st.doc.direction=="rtl"&&(ct=-ct);var xt=Ut(dt,st.doc.direction);if(xt){var Mt=ct<0?re(xt):xt[0],bt=ct<0==(Mt.level==1),Tt=bt?"after":"before",Xt;if(Mt.level>0||st.doc.direction=="rtl"){var le=zo(st,dt);Xt=ct<0?dt.text.length-1:0;var Yt=jo(st,le,Xt).top;Xt=Pn(function(Le){return jo(st,le,Le).top==Yt},ct<0==(Mt.level==1)?Mt.from:Mt.to-1,Xt),Tt=="before"&&(Xt=vc(dt,Xt,1))}else Xt=ct<0?Mt.to:Mt.from;return new Pe(ht,Xt,Tt)}}return new Pe(ht,ct<0?dt.text.length:0,ct<0?"before":"after")}function $g(it,st,dt,ht){var ct=Ut(st,it.doc.direction);if(!ct)return Nr(st,dt,ht);dt.ch>=st.text.length?(dt.ch=st.text.length,dt.sticky="before"):dt.ch<=0&&(dt.ch=0,dt.sticky="after");var xt=St(ct,dt.ch,dt.sticky),Mt=ct[xt];if(it.doc.direction=="ltr"&&Mt.level%2==0&&(ht>0?Mt.to>dt.ch:Mt.from=Mt.from&&Le>=le.begin)){var we=Yt?"before":"after";return new Pe(dt.line,Le,we)}}var en=function(Ln,Kn,zn){for(var oi=function(or,Wr){return Wr?new Pe(dt.line,bt(or,1),"before"):new Pe(dt.line,or,"after")};Ln>=0&&Ln0==(Ei.level!=1),Gi=On?zn.begin:bt(zn.end,-1);if(Ei.from<=Gi&&Gi0?le.end:bt(le.begin,-1);return vn!=null&&!(ht>0&&vn==st.text.length)&&(sn=en(ht>0?0:ct.length-1,ht,Xt(vn)),sn)?sn:null}var zu={selectAll:Fr,singleSelection:function(it){return it.setSelection(it.getCursor("anchor"),it.getCursor("head"),ve)},killLine:function(it){return ha(it,function(st){if(st.empty()){var dt=Sn(it.doc,st.head.line).text.length;return st.head.ch==dt&&st.head.line0)ct=new Pe(ct.line,ct.ch+1),it.replaceRange(xt.charAt(ct.ch-1)+xt.charAt(ct.ch-2),Pe(ct.line,ct.ch-2),ct,"+transpose");else if(ct.line>it.doc.first){var Mt=Sn(it.doc,ct.line-1).text;Mt&&(ct=new Pe(ct.line,1),it.replaceRange(xt.charAt(0)+it.doc.lineSeparator()+Mt.charAt(Mt.length-1),Pe(ct.line-1,Mt.length-1),ct,"+transpose"))}}dt.push(new Io(ct,ct))}it.setSelections(dt)})},newlineAndIndent:function(it){return Po(it,function(){for(var st=it.listSelections(),dt=st.length-1;dt>=0;dt--)it.replaceRange(it.doc.lineSeparator(),st[dt].anchor,st[dt].head,"+input");st=it.listSelections();for(var ht=0;htit&&Ze(st,this.pos)==0&&dt==this.button};var vd,kh;function Cc(it,st){var dt=+new Date;return kh&&kh.compare(dt,it,st)?(vd=kh=null,"triple"):vd&&vd.compare(dt,it,st)?(kh=new wc(dt,it,st),vd=null,"double"):(vd=new wc(dt,it,st),kh=null,"single")}function xl(it){var st=this,dt=st.display;if(!(dn(st,it)||dt.activeTouch&&dt.input.supportsTouch())){if(dt.input.ensurePolled(),dt.shift=it.shiftKey,js(dt,it)){qt||(dt.scroller.draggable=!1,setTimeout(function(){return dt.scroller.draggable=!0},100));return}if(!sf(st,it)){var ht=Rs(st,it),ct=Wi(it),xt=ht?Cc(ht,ct):"single";window.focus(),ct==1&&st.state.selectingText&&st.state.selectingText(it),!(ht&&Ec(st,ct,ht,xt,it))&&(ct==1?ht?t0(st,ht,xt,it):so(it)==dt.scroller&&Yn(it):ct==2?(ht&&Zg(st.doc,ht),setTimeout(function(){return dt.input.focus()},20)):ct==3&&(Ft?st.display.input.onContextMenu(it):lr(st)))}}}function Ec(it,st,dt,ht,ct){var xt="Click";return ht=="double"?xt="Double"+xt:ht=="triple"&&(xt="Triple"+xt),xt=(st==1?"Left":st==2?"Middle":"Right")+xt,Lh(it,mc(xt,ct),ct,function(Mt){if(typeof Mt=="string"&&(Mt=zu[Mt]),!Mt)return!1;var bt=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),bt=Mt(it,dt)!=Dn}finally{it.state.suppressEdits=!1}return bt})}function of(it,st,dt){var ht=it.getOption("configureMouse"),ct=ht?ht(it,st,dt):{};if(ct.unit==null){var xt=lt?dt.shiftKey&&dt.metaKey:dt.altKey;ct.unit=xt?"rectangle":st=="single"?"char":st=="double"?"word":"line"}return(ct.extend==null||it.doc.extend)&&(ct.extend=it.doc.extend||dt.shiftKey),ct.addNew==null&&(ct.addNew=gt?dt.metaKey:dt.ctrlKey),ct.moveOnDrag==null&&(ct.moveOnDrag=!(gt?dt.altKey:dt.ctrlKey)),ct}function t0(it,st,dt,ht){ue?setTimeout(pn(Vo,it),0):it.curOp.focus=he();var ct=of(it,dt,ht),xt=it.doc.sel,Mt;it.options.dragDrop&&Li&&!it.isReadOnly()&&dt=="single"&&(Mt=xt.contains(st))>-1&&(Ze((Mt=xt.ranges[Mt]).from(),st)<0||st.xRel>0)&&(Ze(Mt.to(),st)>0||st.xRel<0)?Bc(it,ht,st,ct):ev(it,ht,st,ct)}function Bc(it,st,dt,ht){var ct=it.display,xt=!1,Mt=Ur(it,function(Xt){qt&&(ct.scroller.draggable=!1),it.state.draggingText=!1,Je(ct.wrapper.ownerDocument,"mouseup",Mt),Je(ct.wrapper.ownerDocument,"mousemove",bt),Je(ct.scroller,"dragstart",Tt),Je(ct.scroller,"drop",Mt),xt||(Yn(Xt),ht.addNew||Zg(it.doc,dt,null,null,ht.extend),qt&&!ae||ue&&Me==9?setTimeout(function(){ct.wrapper.ownerDocument.body.focus({preventScroll:!0}),ct.input.focus()},20):ct.input.focus())}),bt=function(Xt){xt=xt||Math.abs(st.clientX-Xt.clientX)+Math.abs(st.clientY-Xt.clientY)>=10},Tt=function(){return xt=!0};qt&&(ct.scroller.draggable=!0),it.state.draggingText=Mt,Mt.copy=!ht.moveOnDrag,ct.scroller.dragDrop&&ct.scroller.dragDrop(),te(ct.wrapper.ownerDocument,"mouseup",Mt),te(ct.wrapper.ownerDocument,"mousemove",bt),te(ct.scroller,"dragstart",Tt),te(ct.scroller,"drop",Mt),lr(it),setTimeout(function(){return ct.input.focus()},20)}function Lc(it,st,dt){if(dt=="char")return new Io(st,st);if(dt=="word")return it.findWordAt(st);if(dt=="line")return new Io(Pe(st.line,0),Gn(it.doc,Pe(st.line+1,0)));var ht=dt(it,st);return new Io(ht.from,ht.to)}function ev(it,st,dt,ht){var ct=it.display,xt=it.doc;Yn(st);var Mt,bt,Tt=xt.sel,Xt=Tt.ranges;if(ht.addNew&&!ht.extend?(bt=xt.sel.contains(dt),bt>-1?Mt=Xt[bt]:Mt=new Io(dt,dt)):(Mt=xt.sel.primary(),bt=xt.sel.primIndex),ht.unit=="rectangle")ht.addNew||(Mt=new Io(dt,dt)),dt=Rs(it,st,!0,!0),bt=-1;else{var le=Lc(it,dt,ht.unit);ht.extend?Mt=Yg(Mt,le.anchor,le.head,ht.extend):Mt=le}ht.addNew?bt==-1?(bt=Xt.length,ks(xt,il(it,Xt.concat([Mt]),bt),{scroll:!1,origin:"*mouse"})):Xt.length>1&&Xt[bt].empty()&&ht.unit=="char"&&!ht.extend?(ks(xt,il(it,Xt.slice(0,bt).concat(Xt.slice(bt+1)),0),{scroll:!1,origin:"*mouse"}),Tt=xt.sel):ju(xt,bt,Mt,$e):(bt=0,ks(xt,new Qa([Mt],0),$e),Tt=xt.sel);var Yt=dt;function Le(zn){if(Ze(Yt,zn)!=0)if(Yt=zn,ht.unit=="rectangle"){for(var oi=[],Ei=it.options.tabSize,On=se(Sn(xt,dt.line).text,dt.ch,Ei),Gi=se(Sn(xt,zn.line).text,zn.ch,Ei),or=Math.min(On,Gi),Wr=Math.max(On,Gi),cr=Math.min(dt.line,zn.line),_s=Math.min(it.lastLine(),Math.max(dt.line,zn.line));cr<=_s;cr++){var Is=Sn(xt,cr).text,zr=wn(Is,or,Ei);or==Wr?oi.push(new Io(Pe(cr,zr),Pe(cr,zr))):Is.length>zr&&oi.push(new Io(Pe(cr,zr),Pe(cr,wn(Is,Wr,Ei))))}oi.length||oi.push(new Io(dt,dt)),ks(xt,il(it,Tt.ranges.slice(0,bt).concat(oi),bt),{origin:"*mouse",scroll:!1}),it.scrollIntoView(zn)}else{var da=Mt,As=Lc(it,zn,ht.unit),Qr=da.anchor,xo;Ze(As.anchor,Qr)>0?(xo=As.head,Qr=Jn(da.from(),As.anchor)):(xo=As.anchor,Qr=to(da.to(),As.head));var Sr=Tt.ranges.slice(0);Sr[bt]=e0(it,new Io(Gn(xt,Qr),xo)),ks(xt,il(it,Sr,bt),$e)}}var we=ct.wrapper.getBoundingClientRect(),en=0;function sn(zn){var oi=++en,Ei=Rs(it,zn,!0,ht.unit=="rectangle");if(Ei)if(Ze(Ei,Yt)!=0){it.curOp.focus=he(),Le(Ei);var On=no(ct,xt);(Ei.line>=On.to||Ei.linewe.bottom?20:0;Gi&&setTimeout(Ur(it,function(){en==oi&&(ct.scroller.scrollTop+=Gi,sn(zn))}),50)}}function vn(zn){it.state.selectingText=!1,en=1/0,zn&&(Yn(zn),ct.input.focus()),Je(ct.wrapper.ownerDocument,"mousemove",Ln),Je(ct.wrapper.ownerDocument,"mouseup",Kn),xt.history.lastSelOrigin=null}var Ln=Ur(it,function(zn){zn.buttons===0||!Wi(zn)?vn(zn):sn(zn)}),Kn=Ur(it,vn);it.state.selectingText=Kn,te(ct.wrapper.ownerDocument,"mousemove",Ln),te(ct.wrapper.ownerDocument,"mouseup",Kn)}function e0(it,st){var dt=st.anchor,ht=st.head,ct=Sn(it.doc,dt.line);if(Ze(dt,ht)==0&&dt.sticky==ht.sticky)return st;var xt=Ut(ct);if(!xt)return st;var Mt=St(xt,dt.ch,dt.sticky),bt=xt[Mt];if(bt.from!=dt.ch&&bt.to!=dt.ch)return st;var Tt=Mt+(bt.from==dt.ch==(bt.level!=1)?0:1);if(Tt==0||Tt==xt.length)return st;var Xt;if(ht.line!=dt.line)Xt=(ht.line-dt.line)*(it.doc.direction=="ltr"?1:-1)>0;else{var le=St(xt,ht.ch,ht.sticky),Yt=le-Mt||(ht.ch-dt.ch)*(bt.level==1?-1:1);le==Tt-1||le==Tt?Xt=Yt<0:Xt=Yt>0}var Le=xt[Tt+(Xt?-1:0)],we=Xt==(Le.level==1),en=we?Le.from:Le.to,sn=we?"after":"before";return dt.ch==en&&dt.sticky==sn?st:new Io(new Pe(dt.line,en,sn),ht)}function rf(it,st,dt,ht){var ct,xt;if(st.touches)ct=st.touches[0].clientX,xt=st.touches[0].clientY;else try{ct=st.clientX,xt=st.clientY}catch(Le){return!1}if(ct>=Math.floor(it.display.gutters.getBoundingClientRect().right))return!1;ht&&Yn(st);var Mt=it.display,bt=Mt.lineDiv.getBoundingClientRect();if(xt>bt.bottom||!ii(it,dt))return $i(st);xt-=bt.top-Mt.viewOffset;for(var Tt=0;Tt=ct){var le=mn(it.doc,xt),Yt=it.display.gutterSpecs[Tt];return Ve(it,dt,it,le,Yt.className,st),$i(st)}}}function sf(it,st){return rf(it,st,"gutterClick",!0)}function af(it,st){js(it.display,st)||n0(it,st)||dn(it,st,"contextmenu")||Ft||it.display.input.onContextMenu(st)}function n0(it,st){return ii(it,"gutterContextMenu")?rf(it,st,"gutterContextMenu",!1):!1}function lf(it){it.display.wrapper.className=it.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+it.options.theme.replace(/(^|\s)\s*/g," cm-s-"),el(it)}var Qu={toString:function(){return"CodeMirror.Init"}},Mc={},sg={};function i0(it){var st=it.optionHandlers;function dt(ht,ct,xt,Mt){it.defaults[ht]=ct,xt&&(st[ht]=Mt?function(bt,Tt,Xt){Xt!=Qu&&xt(bt,Tt,Xt)}:xt)}it.defineOption=dt,it.Init=Qu,dt("value","",function(ht,ct){return ht.setValue(ct)},!0),dt("mode",null,function(ht,ct){ht.doc.modeOption=ct,Hi(ht)},!0),dt("indentUnit",2,Hi,!0),dt("indentWithTabs",!1),dt("smartIndent",!0),dt("tabSize",4,function(ht){Vd(ht),el(ht),ir(ht)},!0),dt("lineSeparator",null,function(ht,ct){if(ht.doc.lineSep=ct,!!ct){var xt=[],Mt=ht.doc.first;ht.doc.iter(function(Tt){for(var Xt=0;;){var le=Tt.text.indexOf(ct,Xt);if(le==-1)break;Xt=le+ct.length,xt.push(Pe(Mt,le))}Mt++});for(var bt=xt.length-1;bt>=0;bt--)wh(ht.doc,ct,xt[bt],Pe(xt[bt].line,xt[bt].ch+ct.length))}}),dt("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ht,ct,xt){ht.state.specialChars=new RegExp(ct.source+(ct.test(" ")?"":"| "),"g"),xt!=Qu&&ht.refresh()}),dt("specialCharPlaceholder",Bs,function(ht){return ht.refresh()},!0),dt("electricChars",!0),dt("inputStyle",nt?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),dt("spellcheck",!1,function(ht,ct){return ht.getInputField().spellcheck=ct},!0),dt("autocorrect",!1,function(ht,ct){return ht.getInputField().autocorrect=ct},!0),dt("autocapitalize",!1,function(ht,ct){return ht.getInputField().autocapitalize=ct},!0),dt("rtlMoveVisually",!pt),dt("wholeLineUpdateBefore",!0),dt("theme","default",function(ht){lf(ht),Ea(ht)},!0),dt("keyMap","default",function(ht,ct,xt){var Mt=Bh(ct),bt=xt!=Qu&&Bh(xt);bt&&bt.detach&&bt.detach(ht,Mt),Mt.attach&&Mt.attach(ht,bt||null)}),dt("extraKeys",null),dt("configureMouse",null),dt("lineWrapping",!1,o0,!0),dt("gutters",[],function(ht,ct){ht.display.gutterSpecs=os(ct,ht.options.lineNumbers),Ea(ht)},!0),dt("fixedGutter",!0,function(ht,ct){ht.display.gutters.style.left=ct?Gd(ht.display)+"px":"0",ht.refresh()},!0),dt("coverGutterNextToScrollbar",!1,function(ht){return Lu(ht)},!0),dt("scrollbarStyle","native",function(ht){ec(ht),Lu(ht),ht.display.scrollbars.setScrollTop(ht.doc.scrollTop),ht.display.scrollbars.setScrollLeft(ht.doc.scrollLeft)},!0),dt("lineNumbers",!1,function(ht,ct){ht.display.gutterSpecs=os(ht.options.gutters,ct),Ea(ht)},!0),dt("firstLineNumber",1,Ea,!0),dt("lineNumberFormatter",function(ht){return ht},Ea,!0),dt("showCursorWhenSelecting",!1,Gr,!0),dt("resetSelectionOnContextMenu",!0),dt("lineWiseCopyCut",!0),dt("pasteLinesPerSelection",!0),dt("selectionsMayTouch",!1),dt("readOnly",!1,function(ht,ct){ct=="nocursor"&&(ch(ht),ht.display.input.blur()),ht.display.input.readOnlyChanged(ct)}),dt("screenReaderLabel",null,function(ht,ct){ct=ct===""?null:ct,ht.display.input.screenReaderLabelChanged(ct)}),dt("disableInput",!1,function(ht,ct){ct||ht.display.input.reset()},!0),dt("dragDrop",!0,uf),dt("allowDropFileTypes",null),dt("cursorBlinkRate",530),dt("cursorScrollMargin",0),dt("cursorHeight",1,Gr,!0),dt("singleCursorHeightPerLine",!0,Gr,!0),dt("workTime",100),dt("workDelay",100),dt("flattenSpans",!0,Vd,!0),dt("addModeClass",!1,Vd,!0),dt("pollInterval",100),dt("undoDepth",200,function(ht,ct){return ht.doc.history.undoDepth=ct}),dt("historyEventDelay",1250),dt("viewportMargin",10,function(ht){return ht.refresh()},!0),dt("maxHighlightLength",1e4,Vd,!0),dt("moveInputWithCursor",!0,function(ht,ct){ct||ht.display.input.resetPosition()}),dt("tabindex",null,function(ht,ct){return ht.display.input.getField().tabIndex=ct||""}),dt("autofocus",null),dt("direction","ltr",function(ht,ct){return ht.doc.setDirection(ct)},!0),dt("phrases",null)}function uf(it,st,dt){var ht=dt&&dt!=Qu;if(!st!=!ht){var ct=it.display.dragFunctions,xt=st?te:Je;xt(it.display.scroller,"dragstart",ct.start),xt(it.display.scroller,"dragenter",ct.enter),xt(it.display.scroller,"dragover",ct.over),xt(it.display.scroller,"dragleave",ct.leave),xt(it.display.scroller,"drop",ct.drop)}}function o0(it){it.options.lineWrapping?(xe(it.display.wrapper,"CodeMirror-wrap"),it.display.sizer.style.minWidth="",it.display.sizerWidth=null):(Vt(it.display.wrapper,"CodeMirror-wrap"),_o(it)),ui(it),ir(it),el(it),setTimeout(function(){return Lu(it)},100)}function Ao(it,st){var dt=this;if(!(this instanceof Ao))return new Ao(it,st);this.options=st=st?Fn(st):{},Fn(Mc,st,!1);var ht=st.value;typeof ht=="string"?ht=new ys(ht,st.mode,null,st.lineSeparator,st.direction):st.mode&&(ht.modeOption=st.mode),this.doc=ht;var ct=new Ao.inputStyles[st.inputStyle](this),xt=this.display=new Du(it,ht,ct,st);xt.wrapper.CodeMirror=this,lf(this),st.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ec(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Wt,keySeq:null,specialChars:null},st.autofocus&&!nt&&xt.input.focus(),ue&&Me<11&&setTimeout(function(){return dt.display.input.reset(!0)},20),yd(this),La(),Mu(this),this.curOp.forceUpdate=!0,Wg(this,ht),st.autofocus&&!nt||this.hasFocus()?setTimeout(function(){dt.hasFocus()&&!dt.state.focused&&ho(dt)},20):ch(this);for(var Mt in sg)sg.hasOwnProperty(Mt)&&sg[Mt](this,st[Mt],Qu);br(this),st.finishInit&&st.finishInit(this);for(var bt=0;bt20*20}te(st.scroller,"touchstart",function(Tt){if(!dn(it,Tt)&&!xt(Tt)&&!sf(it,Tt)){st.input.ensurePolled(),clearTimeout(dt);var Xt=+new Date;st.activeTouch={start:Xt,moved:!1,prev:Xt-ht.end<=300?ht:null},Tt.touches.length==1&&(st.activeTouch.left=Tt.touches[0].pageX,st.activeTouch.top=Tt.touches[0].pageY)}}),te(st.scroller,"touchmove",function(){st.activeTouch&&(st.activeTouch.moved=!0)}),te(st.scroller,"touchend",function(Tt){var Xt=st.activeTouch;if(Xt&&!js(st,Tt)&&Xt.left!=null&&!Xt.moved&&new Date-Xt.start<300){var le=it.coordsChar(st.activeTouch,"page"),Yt;!Xt.prev||Mt(Xt,Xt.prev)?Yt=new Io(le,le):!Xt.prev.prev||Mt(Xt,Xt.prev.prev)?Yt=it.findWordAt(le):Yt=new Io(Pe(le.line,0),Gn(it.doc,Pe(le.line+1,0))),it.setSelection(Yt.anchor,Yt.head),it.focus(),Yn(Tt)}ct()}),te(st.scroller,"touchcancel",ct),te(st.scroller,"scroll",function(){st.scroller.clientHeight&&(mh(it,st.scroller.scrollTop),iu(it,st.scroller.scrollLeft,!0),Ve(it,"scroll",it))}),te(st.scroller,"mousewheel",function(Tt){return rs(it,Tt)}),te(st.scroller,"DOMMouseScroll",function(Tt){return rs(it,Tt)}),te(st.wrapper,"scroll",function(){return st.wrapper.scrollTop=st.wrapper.scrollLeft=0}),st.dragFunctions={enter:function(Tt){dn(it,Tt)||Do(Tt)},over:function(Tt){dn(it,Tt)||(Zp(it,Tt),Do(Tt))},start:function(Tt){return Yp(it,Tt)},drop:Ur(it,dc),leave:function(Tt){dn(it,Tt)||Jp(it)}};var bt=st.input.getField();te(bt,"keyup",function(Tt){return Pc.call(it,Tt)}),te(bt,"keydown",Ur(it,Sc)),te(bt,"keypress",Ur(it,Sl)),te(bt,"focus",function(Tt){return ho(it,Tt)}),te(bt,"blur",function(Tt){return ch(it,Tt)})}var Ih=[];Ao.defineInitHook=function(it){return Ih.push(it)};function Xr(it,st,dt,ht){var ct=it.doc,xt;dt==null&&(dt="add"),dt=="smart"&&(ct.mode.indent?xt=Ii(it,st).state:dt="prev");var Mt=it.options.tabSize,bt=Sn(ct,st),Tt=se(bt.text,null,Mt);bt.stateAfter&&(bt.stateAfter=null);var Xt=bt.text.match(/^\s*/)[0],le;if(!ht&&!/\S/.test(bt.text))le=0,dt="not";else if(dt=="smart"&&(le=ct.mode.indent(xt,bt.text.slice(Xt.length),bt.text),le==Dn||le>150)){if(!ht)return;dt="prev"}dt=="prev"?st>ct.first?le=se(Sn(ct,st-1).text,null,Mt):le=0:dt=="add"?le=Tt+it.options.indentUnit:dt=="subtract"?le=Tt-it.options.indentUnit:typeof dt=="number"&&(le=Tt+dt),le=Math.max(0,le);var Yt="",Le=0;if(it.options.indentWithTabs)for(var we=Math.floor(le/Mt);we;--we)Le+=Mt,Yt+=" ";if(LeMt,Tt=En(st),Xt=null;if(bt&&ht.ranges.length>1)if(qs&&qs.text.join(` + left: `+st.left+"px; width: "+Math.max(2,st.right-st.left)+"px;");it.display.lineSpace.appendChild(xt),xt.scrollIntoView(ct),it.display.lineSpace.removeChild(xt)}}}function od(it,st,dt,ht){ht==null&&(ht=0);var ct;!it.options.lineWrapping&&st==dt&&(st=st.ch?Pe(st.line,st.sticky=="before"?st.ch-1:st.ch,"after"):st,dt=st.sticky=="before"?Pe(st.line,st.ch+1,"before"):st);for(var xt=0;xt<5;xt++){var Mt=!1,bt=gr(it,st),Tt=!dt||dt==st?bt:gr(it,dt);ct={left:Math.min(bt.left,Tt.left),top:Math.min(bt.top,Tt.top)-ht,right:Math.max(bt.left,Tt.left),bottom:Math.max(bt.bottom,Tt.bottom)+ht};var Xt=_f(it,ct),le=it.doc.scrollTop,Yt=it.doc.scrollLeft;if(Xt.scrollTop!=null&&(mh(it,Xt.scrollTop),Math.abs(it.doc.scrollTop-le)>1&&(Mt=!0)),Xt.scrollLeft!=null&&(iu(it,Xt.scrollLeft),Math.abs(it.doc.scrollLeft-Yt)>1&&(Mt=!0)),!Mt)break}return ct}function Ud(it,st){var dt=_f(it,st);dt.scrollTop!=null&&mh(it,dt.scrollTop),dt.scrollLeft!=null&&iu(it,dt.scrollLeft)}function _f(it,st){var dt=it.display,ht=eu(it.display);st.top<0&&(st.top=0);var ct=it.curOp&&it.curOp.scrollTop!=null?it.curOp.scrollTop:dt.scroller.scrollTop,xt=Ge(it),Mt={};st.bottom-st.top>xt&&(st.bottom=st.top+xt);var bt=it.doc.height+pl(dt),Tt=st.topbt-ht;if(st.topct+xt){var le=Math.min(st.top,(Xt?bt:st.bottom)-xt);le!=ct&&(Mt.scrollTop=le)}var Yt=it.options.fixedGutter?0:dt.gutters.offsetWidth,Le=it.curOp&&it.curOp.scrollLeft!=null?it.curOp.scrollLeft:dt.scroller.scrollLeft-Yt,we=wa(it)-dt.gutters.offsetWidth,en=st.right-st.left>we;return en&&(st.right=st.left+we),st.left<10?Mt.scrollLeft=0:st.leftwe+Le-3&&(Mt.scrollLeft=st.right+(en?0:10)-we),Mt}function zg(it,st){st!=null&&(Tl(it),it.curOp.scrollTop=(it.curOp.scrollTop==null?it.doc.scrollTop:it.curOp.scrollTop)+st)}function nu(it){Tl(it);var st=it.getCursor();it.curOp.scrollToPos={from:st,to:st,margin:it.options.cursorScrollMargin}}function ph(it,st,dt){(st!=null||dt!=null)&&Tl(it),st!=null&&(it.curOp.scrollLeft=st),dt!=null&&(it.curOp.scrollTop=dt)}function fo(it,st){Tl(it),it.curOp.scrollToPos=st}function Tl(it){var st=it.curOp.scrollToPos;if(st){it.curOp.scrollToPos=null;var dt=bg(it,st.from),ht=bg(it,st.to);Qg(it,dt,ht,st.margin)}}function Qg(it,st,dt,ht){var ct=_f(it,{left:Math.min(st.left,dt.left),top:Math.min(st.top,dt.top)-ht,right:Math.max(st.right,dt.right),bottom:Math.max(st.bottom,dt.bottom)+ht});ph(it,ct.scrollLeft,ct.scrollTop)}function mh(it,st){Math.abs(it.doc.scrollTop-st)<2||(wt||Fu(it,{top:st}),$f(it,st,!0),wt&&Fu(it),rd(it,100))}function $f(it,st,dt){st=Math.max(0,Math.min(it.display.scroller.scrollHeight-it.display.scroller.clientHeight,st)),!(it.display.scroller.scrollTop==st&&!dt)&&(it.doc.scrollTop=st,it.display.scrollbars.setScrollTop(st),it.display.scroller.scrollTop!=st&&(it.display.scroller.scrollTop=st))}function iu(it,st,dt,ht){st=Math.max(0,Math.min(st,it.display.scroller.scrollWidth-it.display.scroller.clientWidth)),!((dt?st==it.doc.scrollLeft:Math.abs(it.doc.scrollLeft-st)<2)&&!ht)&&(it.doc.scrollLeft=st,Ug(it),it.display.scroller.scrollLeft!=st&&(it.display.scroller.scrollLeft=st),it.display.scrollbars.setScrollLeft(st))}function za(it){var st=it.display,dt=st.gutters.offsetWidth,ht=Math.round(it.doc.height+pl(it.display));return{clientHeight:st.scroller.clientHeight,viewHeight:st.wrapper.clientHeight,scrollWidth:st.scroller.scrollWidth,clientWidth:st.scroller.clientWidth,viewWidth:st.wrapper.clientWidth,barLeft:it.options.fixedGutter?dt:0,docHeight:ht,scrollHeight:ht+Ls(it)+st.barHeight,nativeBarWidth:st.nativeBarWidth,gutterWidth:dt}}var Bu=function(it,st,dt){this.cm=dt;var ht=this.vert=$t("div",[$t("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ct=this.horiz=$t("div",[$t("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ht.tabIndex=ct.tabIndex=-1,it(ht),it(ct),te(ht,"scroll",function(){ht.clientHeight&&st(ht.scrollTop,"vertical")}),te(ct,"scroll",function(){ct.clientWidth&&st(ct.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ue&&Me<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Bu.prototype.update=function(it){var st=it.scrollWidth>it.clientWidth+1,dt=it.scrollHeight>it.clientHeight+1,ht=it.nativeBarWidth;if(dt){this.vert.style.display="block",this.vert.style.bottom=st?ht+"px":"0";var ct=it.viewHeight-(st?ht:0);this.vert.firstChild.style.height=Math.max(0,it.scrollHeight-it.clientHeight+ct)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(st){this.horiz.style.display="block",this.horiz.style.right=dt?ht+"px":"0",this.horiz.style.left=it.barLeft+"px";var xt=it.viewWidth-it.barLeft-(dt?ht:0);this.horiz.firstChild.style.width=Math.max(0,it.scrollWidth-it.clientWidth+xt)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&it.clientHeight>0&&(ht==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:dt?ht:0,bottom:st?ht:0}},Bu.prototype.setScrollLeft=function(it){this.horiz.scrollLeft!=it&&(this.horiz.scrollLeft=it),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Bu.prototype.setScrollTop=function(it){this.vert.scrollTop!=it&&(this.vert.scrollTop=it),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Bu.prototype.zeroWidthHack=function(){var it=gt&&!Te?"12px":"18px";this.horiz.style.height=this.vert.style.width=it,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Wt,this.disableVert=new Wt},Bu.prototype.enableZeroWidthBar=function(it,st,dt){it.style.pointerEvents="auto";function ht(){var ct=it.getBoundingClientRect(),xt=dt=="vert"?document.elementFromPoint(ct.right-1,(ct.top+ct.bottom)/2):document.elementFromPoint((ct.right+ct.left)/2,ct.bottom-1);xt!=it?it.style.pointerEvents="none":st.set(1e3,ht)}st.set(1e3,ht)},Bu.prototype.clear=function(){var it=this.horiz.parentNode;it.removeChild(this.horiz),it.removeChild(this.vert)};var yl=function(){};yl.prototype.update=function(){return{bottom:0,right:0}},yl.prototype.setScrollLeft=function(){},yl.prototype.setScrollTop=function(){},yl.prototype.clear=function(){};function Lu(it,st){st||(st=za(it));var dt=it.display.barWidth,ht=it.display.barHeight;Hg(it,st);for(var ct=0;ct<4&&dt!=it.display.barWidth||ht!=it.display.barHeight;ct++)dt!=it.display.barWidth&&it.options.lineWrapping&&si(it),Hg(it,za(it)),dt=it.display.barWidth,ht=it.display.barHeight}function Hg(it,st){var dt=it.display,ht=dt.scrollbars.update(st);dt.sizer.style.paddingRight=(dt.barWidth=ht.right)+"px",dt.sizer.style.paddingBottom=(dt.barHeight=ht.bottom)+"px",dt.heightForcer.style.borderBottom=ht.bottom+"px solid transparent",ht.right&&ht.bottom?(dt.scrollbarFiller.style.display="block",dt.scrollbarFiller.style.height=ht.bottom+"px",dt.scrollbarFiller.style.width=ht.right+"px"):dt.scrollbarFiller.style.display="",ht.bottom&&it.options.coverGutterNextToScrollbar&&it.options.fixedGutter?(dt.gutterFiller.style.display="block",dt.gutterFiller.style.height=ht.bottom+"px",dt.gutterFiller.style.width=st.gutterWidth+"px"):dt.gutterFiller.style.display=""}var tc={native:Bu,null:yl};function ec(it){it.display.scrollbars&&(it.display.scrollbars.clear(),it.display.scrollbars.addClass&&Vt(it.display.wrapper,it.display.scrollbars.addClass)),it.display.scrollbars=new tc[it.options.scrollbarStyle](function(st){it.display.wrapper.insertBefore(st,it.display.scrollbarFiller),te(st,"mousedown",function(){it.state.focused&&setTimeout(function(){return it.display.input.focus()},0)}),st.setAttribute("cm-not-content","true")},function(st,dt){dt=="horizontal"?iu(it,st):mh(it,st)},it),it.display.scrollbars.addClass&&xe(it.display.wrapper,it.display.scrollbars.addClass)}var Op=0;function Mu(it){it.curOp={cm:it,viewChanged:!1,startHeight:it.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Op},Cu(it.curOp)}function ku(it){var st=it.curOp;st&&hh(st,function(dt){for(var ht=0;ht=dt.viewTo)||dt.maxLineChanged&&st.options.lineWrapping,it.update=it.mustUpdate&&new vh(st,it.mustUpdate&&{top:it.scrollTop,ensure:it.scrollToPos},it.forceUpdate)}function _m(it){it.updatedDisplay=it.mustUpdate&&Gg(it.cm,it.update)}function jp(it){var st=it.cm,dt=st.display;it.updatedDisplay&&si(st),it.barMeasure=za(st),dt.maxLineChanged&&!st.options.lineWrapping&&(it.adjustWidthTo=uo(st,dt.maxLine,dt.maxLine.text.length).left+3,st.display.sizerWidth=it.adjustWidthTo,it.barMeasure.scrollWidth=Math.max(dt.scroller.clientWidth,dt.sizer.offsetLeft+it.adjustWidthTo+Ls(st)+st.display.barWidth),it.maxScrollLeft=Math.max(0,dt.sizer.offsetLeft+it.adjustWidthTo-wa(st))),(it.updatedDisplay||it.selectionChanged)&&(it.preparedSelection=dt.input.prepareSelection())}function Ar(it){var st=it.cm;it.adjustWidthTo!=null&&(st.display.sizer.style.minWidth=it.adjustWidthTo+"px",it.maxScrollLeft=it.display.viewTo)){var dt=+new Date+it.options.workTime,ht=Ii(it,st.highlightFrontier),ct=[];st.iter(ht.line,Math.min(st.first+st.size,it.display.viewTo+500),function(xt){if(ht.line>=it.display.viewFrom){var Mt=xt.styles,bt=xt.text.length>it.options.maxHighlightLength?In(st.mode,ht.state):null,Tt=io(it,xt,ht,!0);bt&&(ht.state=bt),xt.styles=Tt.styles;var Xt=xt.styleClasses,le=Tt.classes;le?xt.styleClasses=le:Xt&&(xt.styleClasses=null);for(var Yt=!Mt||Mt.length!=xt.styles.length||Xt!=le&&(!Xt||!le||Xt.bgClass!=le.bgClass||Xt.textClass!=le.textClass),Le=0;!Yt&&Ledt)return rd(it,it.options.workDelay),!0}),st.highlightFrontier=ht.line,st.modeFrontier=Math.max(st.modeFrontier,ht.line),ct.length&&Po(it,function(){for(var xt=0;xt=dt.viewFrom&&st.visible.to<=dt.viewTo&&(dt.updateLineNumbers==null||dt.updateLineNumbers>=dt.viewTo)&&dt.renderedView==dt.view&&aa(it)==0)return!1;br(it)&&(kr(it),st.dims=Rg(it));var ct=ht.first+ht.size,xt=Math.max(st.visible.from-it.options.viewportMargin,ht.first),Mt=Math.min(ct,st.visible.to+it.options.viewportMargin);dt.viewFromMt&&dt.viewTo-Mt<20&&(Mt=Math.min(ct,dt.viewTo)),He&&(xt=hi(it.doc,xt),Mt=Un(it.doc,Mt));var bt=xt!=dt.viewFrom||Mt!=dt.viewTo||dt.lastWrapHeight!=st.wrapperHeight||dt.lastWrapWidth!=st.wrapperWidth;Ro(it,xt,Mt),dt.viewOffset=ji(Sn(it.doc,dt.viewFrom)),it.display.mover.style.top=dt.viewOffset+"px";var Tt=aa(it);if(!bt&&Tt==0&&!st.force&&dt.renderedView==dt.view&&(dt.updateLineNumbers==null||dt.updateLineNumbers>=dt.viewTo))return!1;var Xt=zp(it);return Tt>4&&(dt.lineDiv.style.display="none"),nc(it,dt.updateLineNumbers,st.dims),Tt>4&&(dt.lineDiv.style.display=""),dt.renderedView=dt.view,Js(Xt),_t(dt.cursorDiv),_t(dt.selectionDiv),dt.gutters.style.height=dt.sizer.style.minHeight=0,bt&&(dt.lastWrapHeight=st.wrapperHeight,dt.lastWrapWidth=st.wrapperWidth,rd(it,400)),dt.updateLineNumbers=null,!0}function ko(it,st){for(var dt=st.viewport,ht=!0;;ht=!1){if(!ht||!it.options.lineWrapping||st.oldDisplayWidth==wa(it)){if(dt&&dt.top!=null&&(dt={top:Math.min(it.doc.height+pl(it.display)-Ge(it),dt.top)}),st.visible=no(it.display,it.doc,dt),st.visible.from>=it.display.viewFrom&&st.visible.to<=it.display.viewTo)break}else ht&&(st.visible=no(it.display,it.doc,dt));if(!Gg(it,st))break;si(it);var ct=za(it);Gr(it),Lu(it,ct),Tu(it,ct),st.force=!1}st.signal(it,"update",it),(it.display.viewFrom!=it.display.reportedViewFrom||it.display.viewTo!=it.display.reportedViewTo)&&(st.signal(it,"viewportChange",it,it.display.viewFrom,it.display.viewTo),it.display.reportedViewFrom=it.display.viewFrom,it.display.reportedViewTo=it.display.viewTo)}function Fu(it,st){var dt=new vh(it,st);if(Gg(it,dt)){si(it),ko(it,dt);var ht=za(it);Gr(it),Lu(it,ht),Tu(it,ht),dt.finish()}}function nc(it,st,dt){var ht=it.display,ct=it.options.lineNumbers,xt=ht.lineDiv,Mt=xt.firstChild;function bt(en){var sn=en.nextSibling;return qt&>&&it.display.currentWheelTarget==en?en.style.display="none":en.parentNode.removeChild(en),sn}for(var Tt=ht.view,Xt=ht.viewFrom,le=0;le-1&&(we=!1),nd(it,Yt,Xt,dt)),we&&(_t(Yt.lineNumber),Yt.lineNumber.appendChild(document.createTextNode(yo(it.options,Xt)))),Mt=Yt.node.nextSibling}Xt+=Yt.size}for(;Mt;)Mt=bt(Mt)}function Nu(it){var st=it.gutters.offsetWidth;it.sizer.style.marginLeft=st+"px"}function Tu(it,st){it.display.sizer.style.minHeight=st.docHeight+"px",it.display.heightForcer.style.top=st.docHeight+"px",it.display.gutters.style.height=st.docHeight+it.display.barHeight+Ls(it)+"px"}function Ug(it){var st=it.display,dt=st.view;if(!(!st.alignWidgets&&(!st.gutters.firstChild||!it.options.fixedGutter))){for(var ht=Gd(st)-st.scroller.scrollLeft+it.doc.scrollLeft,ct=st.gutters.offsetWidth,xt=ht+"px",Mt=0;MtMt.clientWidth,Tt=Mt.scrollHeight>Mt.clientHeight;if(ht&&bt||ct&&Tt){if(ct&>&&qt){t:for(var Xt=st.target,le=xt.view;Xt!=Mt;Xt=Xt.parentNode)for(var Yt=0;Yt=0&&Ze(it,ht.to())<=0)return dt}return-1};var Io=function(it,st){this.anchor=it,this.head=st};Io.prototype.from=function(){return Jn(this.anchor,this.head)},Io.prototype.to=function(){return to(this.anchor,this.head)},Io.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function il(it,st,dt){var ht=it&&it.options.selectionsMayTouch,ct=st[dt];st.sort(function(Le,we){return Ze(Le.from(),we.from())}),dt=_e(st,ct);for(var xt=1;xt0:Tt>=0){var Xt=Jn(bt.from(),Mt.from()),le=to(bt.to(),Mt.to()),Yt=bt.empty()?Mt.from()==Mt.head:bt.from()==bt.head;xt<=dt&&--dt,st.splice(--xt,2,new Io(Yt?le:Xt,Yt?Xt:le))}}return new Qa(st,dt)}function ou(it,st){return new Qa([new Io(it,st||it)],0)}function bu(it){return it.text?Pe(it.from.line+it.text.length-1,re(it.text).length+(it.text.length==1?it.from.ch:0)):it.to}function Ah(it,st){if(Ze(it,st.from)<0)return it;if(Ze(it,st.to)<=0)return bu(st);var dt=it.line+st.text.length-(st.to.line-st.from.line)-1,ht=it.ch;return it.line==st.to.line&&(ht+=bu(st).ch-st.to.ch),Pe(dt,ht)}function Xd(it,st){for(var dt=[],ht=0;ht1&&it.remove(bt.line+1,en-1),it.insert(bt.line+1,Ln)}Rn(it,"change",it,st)}function Sl(it,st,dt){function ht(ct,xt,Mt){if(ct.linked)for(var bt=0;bt1&&!it.done[it.done.length-2].ranges)return it.done.pop(),re(it.done)}function Zd(it,st,dt,ht){var ct=it.history;ct.undone.length=0;var xt=+new Date,Mt,bt;if((ct.lastOp==ht||ct.lastOrigin==st.origin&&st.origin&&(st.origin.charAt(0)=="+"&&ct.lastModTime>xt-(it.cm?it.cm.options.historyEventDelay:500)||st.origin.charAt(0)=="*"))&&(Mt=Yd(ct,ct.lastOp==ht)))bt=re(Mt.changes),Ze(st.from,st.to)==0&&Ze(st.from,bt.to)==0?bt.to=bu(st):Mt.changes.push(Vg(it,st));else{var Tt=re(ct.done);for((!Tt||!Tt.ranges)&&ud(it.sel,ct.done),Mt={changes:[Vg(it,st)],generation:ct.generation},ct.done.push(Mt);ct.done.length>ct.undoDepth;)ct.done.shift(),ct.done[0].ranges||ct.done.shift()}ct.done.push(dt),ct.generation=++ct.maxGeneration,ct.lastModTime=ct.lastSelTime=xt,ct.lastOp=ct.lastSelOp=ht,ct.lastOrigin=ct.lastSelOrigin=st.origin,bt||Ve(it,"historyAdded")}function oc(it,st,dt,ht){var ct=st.charAt(0);return ct=="*"||ct=="+"&&dt.ranges.length==ht.ranges.length&&dt.somethingSelected()==ht.somethingSelected()&&new Date-it.history.lastSelTime<=(it.cm?it.cm.options.historyEventDelay:500)}function Jd(it,st,dt,ht){var ct=it.history,xt=ht&&ht.origin;dt==ct.lastSelOp||xt&&ct.lastSelOrigin==xt&&(ct.lastModTime==ct.lastSelTime&&ct.lastOrigin==xt||oc(it,xt,re(ct.done),st))?ct.done[ct.done.length-1]=st:ud(st,ct.done),ct.lastSelTime=+new Date,ct.lastSelOrigin=xt,ct.lastSelOp=dt,ht&&ht.clearRedo!==!1&&ld(ct.undone)}function ud(it,st){var dt=re(st);dt&&dt.ranges&&dt.equals(it)||st.push(it)}function Ou(it,st,dt,ht){var ct=st["spans_"+it.id],xt=0;it.iter(Math.max(it.first,dt),Math.min(it.first+it.size,ht),function(Mt){Mt.markedSpans&&((ct||(ct=st["spans_"+it.id]={}))[xt]=Mt.markedSpans),++xt})}function Qs(it){if(!it)return null;for(var st,dt=0;dt-1&&(re(bt)[Yt]=Xt[Yt],delete Xt[Yt])}}return ht}function Yg(it,st,dt,ht){if(ht){var ct=it.anchor;if(dt){var xt=Ze(st,ct)<0;xt!=Ze(dt,ct)<0?(ct=st,st=dt):xt!=Ze(st,dt)<0&&(st=dt)}return new Io(ct,st)}else return new Io(dt||st,st)}function Zg(it,st,dt,ht,ct){ct==null&&(ct=it.cm&&(it.cm.display.shift||it.extend)),ks(it,new Qa([Yg(it.sel.primary(),st,dt,ct)],0),ht)}function Qp(it,st,dt){for(var ht=[],ct=it.cm&&(it.cm.display.shift||it.extend),xt=0;xt=st.ch:bt.to>st.ch))){if(ct&&(Ve(Tt,"beforeCursorEnter"),Tt.explicitlyCleared))if(xt.markedSpans){--Mt;continue}else break;if(!Tt.atomic)continue;if(dt){var Yt=Tt.find(ht<0?1:-1),Le=void 0;if((ht<0?le:Xt)&&(Yt=sc(it,Yt,-ht,Yt&&Yt.line==st.line?xt:null)),Yt&&Yt.line==st.line&&(Le=Ze(Yt,dt))&&(ht<0?Le<0:Le>0))return su(it,Yt,st,ht,ct)}var we=Tt.find(ht<0?-1:1);return(ht<0?Xt:le)&&(we=sc(it,we,ht,we.line==st.line?xt:null)),we?su(it,we,st,ht,ct):null}}return st}function $d(it,st,dt,ht,ct){var xt=ht||1,Mt=su(it,st,dt,xt,ct)||!ct&&su(it,st,dt,xt,!0)||su(it,st,dt,-xt,ct)||!ct&&su(it,st,dt,-xt,!0);return Mt||(it.cantEdit=!0,Pe(it.first,0))}function sc(it,st,dt,ht){return dt<0&&st.ch==0?st.line>it.first?Gn(it,Pe(st.line-1)):null:dt>0&&st.ch==(ht||Sn(it,st.line)).text.length?st.line=0;--ct)Ph(it,{from:ht[ct].from,to:ht[ct].to,text:ct?[""]:st.text,origin:st.origin});else Ph(it,st)}}function Ph(it,st){if(!(st.text.length==1&&st.text[0]==""&&Ze(st.from,st.to)==0)){var dt=Xd(it,st);Zd(it,st,dt,it.cm?it.cm.curOp.id:NaN),hd(it,st,dt,Bo(it,st));var ht=[];Sl(it,function(ct,xt){!xt&&_e(ht,ct.history)==-1&&(lc(ct.history,st),ht.push(ct.history)),hd(ct,st,null,Bo(ct,st))})}}function eg(it,st,dt){var ht=it.cm&&it.cm.state.suppressEdits;if(!(ht&&!dt)){for(var ct=it.history,xt,Mt=it.sel,bt=st=="undo"?ct.done:ct.undone,Tt=st=="undo"?ct.undone:ct.done,Xt=0;Xt=0;--we){var en=Le(we);if(en)return en.v}}}}function ac(it,st){if(st!=0&&(it.first+=st,it.sel=new Qa(An(it.sel.ranges,function(ct){return new Io(Pe(ct.anchor.line+st,ct.anchor.ch),Pe(ct.head.line+st,ct.head.ch))}),it.sel.primIndex),it.cm)){ir(it.cm,it.first,it.first-st,st);for(var dt=it.cm.display,ht=dt.viewFrom;htit.lastLine())){if(st.from.linext&&(st={from:st.from,to:Pe(xt,Sn(it,xt).text.length),text:[st.text[0]],origin:st.origin}),st.removed=Yi(it,st.from,st.to),dt||(dt=Xd(it,st)),it.cm?Gp(it.cm,st,ht):Xg(it,st,ht),xh(it,dt,ve),it.cantEdit&&$d(it,Pe(it.firstLine(),0))&&(it.cantEdit=!1)}}function Gp(it,st,dt){var ht=it.doc,ct=it.display,xt=st.from,Mt=st.to,bt=!1,Tt=xt.line;it.options.lineWrapping||(Tt=ee(Lo(Sn(ht,xt.line))),ht.iter(Tt,Mt.line+1,function(we){if(we==ct.maxLine)return bt=!0,!0})),ht.sel.contains(st.from,st.to)>-1&&Mn(it),Xg(ht,st,dt,nr(it)),it.options.lineWrapping||(ht.iter(Tt,xt.line+st.text.length,function(we){var en=Oo(we);en>ct.maxLineLength&&(ct.maxLine=we,ct.maxLineLength=en,ct.maxLineChanged=!0,bt=!1)}),bt&&(it.curOp.updateMaxLine=!0)),Vi(ht,xt.line),rd(it,400);var Xt=st.text.length-(Mt.line-xt.line)-1;st.full?ir(it):xt.line==Mt.line&&st.text.length==1&&!ic(it.doc,st)?Ri(it,xt.line,"text"):ir(it,xt.line,Mt.line+1,Xt);var le=ii(it,"changes"),Yt=ii(it,"change");if(Yt||le){var Le={from:xt,to:Mt,text:st.text,removed:st.removed,origin:st.origin};Yt&&Rn(it,"change",it,Le),le&&(it.curOp.changeObjs||(it.curOp.changeObjs=[])).push(Le)}it.display.selForContextMenu=null}function wh(it,st,dt,ht,ct){var xt;ht||(ht=dt),Ze(ht,dt)<0&&(xt=[ht,dt],dt=xt[0],ht=xt[1]),typeof st=="string"&&(st=it.splitLines(st)),Ru(it,{from:dt,to:ht,text:st,origin:ct})}function Ha(it,st,dt,ht){dt1||!(this.children[0]instanceof dd))){var bt=[];this.collapse(bt),this.children=[new dd(bt)],this.children[0].parent=this}},collapse:function(it){for(var st=0;st50){for(var Mt=ct.lines.length%25+25,bt=Mt;bt10);it.parent.maybeSpill()}},iterN:function(it,st,dt){for(var ht=0;htit.display.maxLineLength&&(it.display.maxLine=Xt,it.display.maxLineLength=le,it.display.maxLineChanged=!0)}ht!=null&&it&&this.collapsed&&ir(it,ht,ct+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,it&&qd(it.doc)),it&&Rn(it,"markerCleared",it,this,ht,ct),st&&ku(it),this.parent&&this.parent.clear()}},oe.prototype.find=function(it,st){it==null&&this.type=="bookmark"&&(it=1);for(var dt,ht,ct=0;ct0||Mt==0&&xt.clearWhenEmpty!==!1)return xt;if(xt.replacedWith&&(xt.collapsed=!0,xt.widgetNode=me("span",[xt.replacedWith],"CodeMirror-widget"),ht.handleMouseEvents||xt.widgetNode.setAttribute("cm-ignore-events","true"),ht.insertLeft&&(xt.widgetNode.insertLeft=!0)),xt.collapsed){if(ed(it,st.line,st,dt,xt)||st.line!=dt.line&&ed(it,dt.line,st,dt,xt))throw new Error("Inserting collapsed marker partially overlapping an existing one");ze()}xt.addToHistory&&Zd(it,{from:st,to:dt,origin:"markText"},it.sel,NaN);var bt=st.line,Tt=it.cm,Xt;if(it.iter(bt,dt.line+1,function(Yt){Tt&&xt.collapsed&&!Tt.options.lineWrapping&&Lo(Yt)==Tt.display.maxLine&&(Xt=!0),xt.collapsed&&bt!=st.line&&po(Yt,0),Jr(Yt,new eo(xt,bt==st.line?st.ch:null,bt==dt.line?dt.ch:null)),++bt}),xt.collapsed&&it.iter(st.line,dt.line+1,function(Yt){We(it,Yt)&&po(Yt,0)}),xt.clearOnEnter&&te(xt,"beforeCursorEnter",function(){return xt.clear()}),xt.readOnly&&(qi(),(it.history.done.length||it.history.undone.length)&&it.clearHistory()),xt.collapsed&&(xt.id=++Wp,xt.atomic=!0),Tt){if(Xt&&(Tt.curOp.updateMaxLine=!0),xt.collapsed)ir(Tt,st.line,dt.line+1);else if(xt.className||xt.startStyle||xt.endStyle||xt.css||xt.attributes||xt.title)for(var le=st.line;le<=dt.line;le++)Ri(Tt,le,"text");xt.atomic&&qd(Tt.doc),Rn(Tt,"markerAdded",Tt,xt)}return xt}var bl=function(it,st){this.markers=it,this.primary=st;for(var dt=0;dt=0;Tt--)Ru(this,ht[Tt]);bt?Jg(this,bt):this.cm&&nu(this.cm)}),undo:es(function(){eg(this,"undo")}),redo:es(function(){eg(this,"redo")}),undoSelection:es(function(){eg(this,"undo",!0)}),redoSelection:es(function(){eg(this,"redo",!0)}),setExtending:function(it){this.extend=it},getExtending:function(){return this.extend},historySize:function(){for(var it=this.history,st=0,dt=0,ht=0;ht=it.ch)&&st.push(ct.marker.parent||ct.marker)}return st},findMarks:function(it,st,dt){it=Gn(this,it),st=Gn(this,st);var ht=[],ct=it.line;return this.iter(it.line,st.line+1,function(xt){var Mt=xt.markedSpans;if(Mt)for(var bt=0;bt=Tt.to||Tt.from==null&&ct!=it.line||Tt.from!=null&&ct==st.line&&Tt.from>=st.ch)&&(!dt||dt(Tt.marker))&&ht.push(Tt.marker.parent||Tt.marker)}++ct}),ht},getAllMarks:function(){var it=[];return this.iter(function(st){var dt=st.markedSpans;if(dt)for(var ht=0;htit)return st=it,!0;it-=xt,++dt}),Gn(this,Pe(dt,st))},indexFromPos:function(it){it=Gn(this,it);var st=it.ch;if(it.linest&&(st=it.from),it.to!=null&&it.to-1){st.state.draggingText(it),setTimeout(function(){return st.display.input.focus()},20);return}try{var le=it.dataTransfer.getData("Text");if(le){var Yt;if(st.state.draggingText&&!st.state.draggingText.copy&&(Yt=st.listSelections()),xh(st.doc,ou(dt,dt)),Yt)for(var Le=0;Le=0;bt--)wh(it.doc,"",ht[bt].from,ht[bt].to,"+delete");nu(it)})}function vc(it,st,dt){var ht=Wn(it.text,st+dt,dt);return ht<0||ht>it.text.length?null:ht}function Nr(it,st,dt){var ht=vc(it,st.ch,dt);return ht==null?null:new Pe(st.line,ht,dt<0?"after":"before")}function rg(it,st,dt,ht,ct){if(it){st.doc.direction=="rtl"&&(ct=-ct);var xt=Ut(dt,st.doc.direction);if(xt){var Mt=ct<0?re(xt):xt[0],bt=ct<0==(Mt.level==1),Tt=bt?"after":"before",Xt;if(Mt.level>0||st.doc.direction=="rtl"){var le=zo(st,dt);Xt=ct<0?dt.text.length-1:0;var Yt=jo(st,le,Xt).top;Xt=Pn(function(Le){return jo(st,le,Le).top==Yt},ct<0==(Mt.level==1)?Mt.from:Mt.to-1,Xt),Tt=="before"&&(Xt=vc(dt,Xt,1))}else Xt=ct<0?Mt.to:Mt.from;return new Pe(ht,Xt,Tt)}}return new Pe(ht,ct<0?dt.text.length:0,ct<0?"before":"after")}function $g(it,st,dt,ht){var ct=Ut(st,it.doc.direction);if(!ct)return Nr(st,dt,ht);dt.ch>=st.text.length?(dt.ch=st.text.length,dt.sticky="before"):dt.ch<=0&&(dt.ch=0,dt.sticky="after");var xt=St(ct,dt.ch,dt.sticky),Mt=ct[xt];if(it.doc.direction=="ltr"&&Mt.level%2==0&&(ht>0?Mt.to>dt.ch:Mt.from=Mt.from&&Le>=le.begin)){var we=Yt?"before":"after";return new Pe(dt.line,Le,we)}}var en=function(Ln,Kn,zn){for(var oi=function(or,Wr){return Wr?new Pe(dt.line,bt(or,1),"before"):new Pe(dt.line,or,"after")};Ln>=0&&Ln0==(Ei.level!=1),Gi=On?zn.begin:bt(zn.end,-1);if(Ei.from<=Gi&&Gi0?le.end:bt(le.begin,-1);return vn!=null&&!(ht>0&&vn==st.text.length)&&(sn=en(ht>0?0:ct.length-1,ht,Xt(vn)),sn)?sn:null}var zu={selectAll:Fr,singleSelection:function(it){return it.setSelection(it.getCursor("anchor"),it.getCursor("head"),ve)},killLine:function(it){return ha(it,function(st){if(st.empty()){var dt=Sn(it.doc,st.head.line).text.length;return st.head.ch==dt&&st.head.line0)ct=new Pe(ct.line,ct.ch+1),it.replaceRange(xt.charAt(ct.ch-1)+xt.charAt(ct.ch-2),Pe(ct.line,ct.ch-2),ct,"+transpose");else if(ct.line>it.doc.first){var Mt=Sn(it.doc,ct.line-1).text;Mt&&(ct=new Pe(ct.line,1),it.replaceRange(xt.charAt(0)+it.doc.lineSeparator()+Mt.charAt(Mt.length-1),Pe(ct.line-1,Mt.length-1),ct,"+transpose"))}}dt.push(new Io(ct,ct))}it.setSelections(dt)})},newlineAndIndent:function(it){return Po(it,function(){for(var st=it.listSelections(),dt=st.length-1;dt>=0;dt--)it.replaceRange(it.doc.lineSeparator(),st[dt].anchor,st[dt].head,"+input");st=it.listSelections();for(var ht=0;htit&&Ze(st,this.pos)==0&&dt==this.button};var vd,kh;function Cc(it,st){var dt=+new Date;return kh&&kh.compare(dt,it,st)?(vd=kh=null,"triple"):vd&&vd.compare(dt,it,st)?(kh=new wc(dt,it,st),vd=null,"double"):(vd=new wc(dt,it,st),kh=null,"single")}function Pl(it){var st=this,dt=st.display;if(!(dn(st,it)||dt.activeTouch&&dt.input.supportsTouch())){if(dt.input.ensurePolled(),dt.shift=it.shiftKey,js(dt,it)){qt||(dt.scroller.draggable=!1,setTimeout(function(){return dt.scroller.draggable=!0},100));return}if(!sf(st,it)){var ht=Rs(st,it),ct=Wi(it),xt=ht?Cc(ht,ct):"single";window.focus(),ct==1&&st.state.selectingText&&st.state.selectingText(it),!(ht&&Ec(st,ct,ht,xt,it))&&(ct==1?ht?t0(st,ht,xt,it):so(it)==dt.scroller&&Yn(it):ct==2?(ht&&Zg(st.doc,ht),setTimeout(function(){return dt.input.focus()},20)):ct==3&&(Ft?st.display.input.onContextMenu(it):lr(st)))}}}function Ec(it,st,dt,ht,ct){var xt="Click";return ht=="double"?xt="Double"+xt:ht=="triple"&&(xt="Triple"+xt),xt=(st==1?"Left":st==2?"Middle":"Right")+xt,Lh(it,mc(xt,ct),ct,function(Mt){if(typeof Mt=="string"&&(Mt=zu[Mt]),!Mt)return!1;var bt=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),bt=Mt(it,dt)!=Dn}finally{it.state.suppressEdits=!1}return bt})}function of(it,st,dt){var ht=it.getOption("configureMouse"),ct=ht?ht(it,st,dt):{};if(ct.unit==null){var xt=lt?dt.shiftKey&&dt.metaKey:dt.altKey;ct.unit=xt?"rectangle":st=="single"?"char":st=="double"?"word":"line"}return(ct.extend==null||it.doc.extend)&&(ct.extend=it.doc.extend||dt.shiftKey),ct.addNew==null&&(ct.addNew=gt?dt.metaKey:dt.ctrlKey),ct.moveOnDrag==null&&(ct.moveOnDrag=!(gt?dt.altKey:dt.ctrlKey)),ct}function t0(it,st,dt,ht){ue?setTimeout(pn(Vo,it),0):it.curOp.focus=he();var ct=of(it,dt,ht),xt=it.doc.sel,Mt;it.options.dragDrop&&Li&&!it.isReadOnly()&&dt=="single"&&(Mt=xt.contains(st))>-1&&(Ze((Mt=xt.ranges[Mt]).from(),st)<0||st.xRel>0)&&(Ze(Mt.to(),st)>0||st.xRel<0)?Bc(it,ht,st,ct):ev(it,ht,st,ct)}function Bc(it,st,dt,ht){var ct=it.display,xt=!1,Mt=Ur(it,function(Xt){qt&&(ct.scroller.draggable=!1),it.state.draggingText=!1,Je(ct.wrapper.ownerDocument,"mouseup",Mt),Je(ct.wrapper.ownerDocument,"mousemove",bt),Je(ct.scroller,"dragstart",Tt),Je(ct.scroller,"drop",Mt),xt||(Yn(Xt),ht.addNew||Zg(it.doc,dt,null,null,ht.extend),qt&&!ae||ue&&Me==9?setTimeout(function(){ct.wrapper.ownerDocument.body.focus({preventScroll:!0}),ct.input.focus()},20):ct.input.focus())}),bt=function(Xt){xt=xt||Math.abs(st.clientX-Xt.clientX)+Math.abs(st.clientY-Xt.clientY)>=10},Tt=function(){return xt=!0};qt&&(ct.scroller.draggable=!0),it.state.draggingText=Mt,Mt.copy=!ht.moveOnDrag,ct.scroller.dragDrop&&ct.scroller.dragDrop(),te(ct.wrapper.ownerDocument,"mouseup",Mt),te(ct.wrapper.ownerDocument,"mousemove",bt),te(ct.scroller,"dragstart",Tt),te(ct.scroller,"drop",Mt),lr(it),setTimeout(function(){return ct.input.focus()},20)}function Lc(it,st,dt){if(dt=="char")return new Io(st,st);if(dt=="word")return it.findWordAt(st);if(dt=="line")return new Io(Pe(st.line,0),Gn(it.doc,Pe(st.line+1,0)));var ht=dt(it,st);return new Io(ht.from,ht.to)}function ev(it,st,dt,ht){var ct=it.display,xt=it.doc;Yn(st);var Mt,bt,Tt=xt.sel,Xt=Tt.ranges;if(ht.addNew&&!ht.extend?(bt=xt.sel.contains(dt),bt>-1?Mt=Xt[bt]:Mt=new Io(dt,dt)):(Mt=xt.sel.primary(),bt=xt.sel.primIndex),ht.unit=="rectangle")ht.addNew||(Mt=new Io(dt,dt)),dt=Rs(it,st,!0,!0),bt=-1;else{var le=Lc(it,dt,ht.unit);ht.extend?Mt=Yg(Mt,le.anchor,le.head,ht.extend):Mt=le}ht.addNew?bt==-1?(bt=Xt.length,ks(xt,il(it,Xt.concat([Mt]),bt),{scroll:!1,origin:"*mouse"})):Xt.length>1&&Xt[bt].empty()&&ht.unit=="char"&&!ht.extend?(ks(xt,il(it,Xt.slice(0,bt).concat(Xt.slice(bt+1)),0),{scroll:!1,origin:"*mouse"}),Tt=xt.sel):ju(xt,bt,Mt,$e):(bt=0,ks(xt,new Qa([Mt],0),$e),Tt=xt.sel);var Yt=dt;function Le(zn){if(Ze(Yt,zn)!=0)if(Yt=zn,ht.unit=="rectangle"){for(var oi=[],Ei=it.options.tabSize,On=se(Sn(xt,dt.line).text,dt.ch,Ei),Gi=se(Sn(xt,zn.line).text,zn.ch,Ei),or=Math.min(On,Gi),Wr=Math.max(On,Gi),cr=Math.min(dt.line,zn.line),_s=Math.min(it.lastLine(),Math.max(dt.line,zn.line));cr<=_s;cr++){var Is=Sn(xt,cr).text,zr=wn(Is,or,Ei);or==Wr?oi.push(new Io(Pe(cr,zr),Pe(cr,zr))):Is.length>zr&&oi.push(new Io(Pe(cr,zr),Pe(cr,wn(Is,Wr,Ei))))}oi.length||oi.push(new Io(dt,dt)),ks(xt,il(it,Tt.ranges.slice(0,bt).concat(oi),bt),{origin:"*mouse",scroll:!1}),it.scrollIntoView(zn)}else{var da=Mt,As=Lc(it,zn,ht.unit),Qr=da.anchor,xo;Ze(As.anchor,Qr)>0?(xo=As.head,Qr=Jn(da.from(),As.anchor)):(xo=As.anchor,Qr=to(da.to(),As.head));var Sr=Tt.ranges.slice(0);Sr[bt]=e0(it,new Io(Gn(xt,Qr),xo)),ks(xt,il(it,Sr,bt),$e)}}var we=ct.wrapper.getBoundingClientRect(),en=0;function sn(zn){var oi=++en,Ei=Rs(it,zn,!0,ht.unit=="rectangle");if(Ei)if(Ze(Ei,Yt)!=0){it.curOp.focus=he(),Le(Ei);var On=no(ct,xt);(Ei.line>=On.to||Ei.linewe.bottom?20:0;Gi&&setTimeout(Ur(it,function(){en==oi&&(ct.scroller.scrollTop+=Gi,sn(zn))}),50)}}function vn(zn){it.state.selectingText=!1,en=1/0,zn&&(Yn(zn),ct.input.focus()),Je(ct.wrapper.ownerDocument,"mousemove",Ln),Je(ct.wrapper.ownerDocument,"mouseup",Kn),xt.history.lastSelOrigin=null}var Ln=Ur(it,function(zn){zn.buttons===0||!Wi(zn)?vn(zn):sn(zn)}),Kn=Ur(it,vn);it.state.selectingText=Kn,te(ct.wrapper.ownerDocument,"mousemove",Ln),te(ct.wrapper.ownerDocument,"mouseup",Kn)}function e0(it,st){var dt=st.anchor,ht=st.head,ct=Sn(it.doc,dt.line);if(Ze(dt,ht)==0&&dt.sticky==ht.sticky)return st;var xt=Ut(ct);if(!xt)return st;var Mt=St(xt,dt.ch,dt.sticky),bt=xt[Mt];if(bt.from!=dt.ch&&bt.to!=dt.ch)return st;var Tt=Mt+(bt.from==dt.ch==(bt.level!=1)?0:1);if(Tt==0||Tt==xt.length)return st;var Xt;if(ht.line!=dt.line)Xt=(ht.line-dt.line)*(it.doc.direction=="ltr"?1:-1)>0;else{var le=St(xt,ht.ch,ht.sticky),Yt=le-Mt||(ht.ch-dt.ch)*(bt.level==1?-1:1);le==Tt-1||le==Tt?Xt=Yt<0:Xt=Yt>0}var Le=xt[Tt+(Xt?-1:0)],we=Xt==(Le.level==1),en=we?Le.from:Le.to,sn=we?"after":"before";return dt.ch==en&&dt.sticky==sn?st:new Io(new Pe(dt.line,en,sn),ht)}function rf(it,st,dt,ht){var ct,xt;if(st.touches)ct=st.touches[0].clientX,xt=st.touches[0].clientY;else try{ct=st.clientX,xt=st.clientY}catch(Le){return!1}if(ct>=Math.floor(it.display.gutters.getBoundingClientRect().right))return!1;ht&&Yn(st);var Mt=it.display,bt=Mt.lineDiv.getBoundingClientRect();if(xt>bt.bottom||!ii(it,dt))return $i(st);xt-=bt.top-Mt.viewOffset;for(var Tt=0;Tt=ct){var le=mn(it.doc,xt),Yt=it.display.gutterSpecs[Tt];return Ve(it,dt,it,le,Yt.className,st),$i(st)}}}function sf(it,st){return rf(it,st,"gutterClick",!0)}function af(it,st){js(it.display,st)||n0(it,st)||dn(it,st,"contextmenu")||Ft||it.display.input.onContextMenu(st)}function n0(it,st){return ii(it,"gutterContextMenu")?rf(it,st,"gutterContextMenu",!1):!1}function lf(it){it.display.wrapper.className=it.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+it.options.theme.replace(/(^|\s)\s*/g," cm-s-"),el(it)}var Qu={toString:function(){return"CodeMirror.Init"}},Mc={},sg={};function i0(it){var st=it.optionHandlers;function dt(ht,ct,xt,Mt){it.defaults[ht]=ct,xt&&(st[ht]=Mt?function(bt,Tt,Xt){Xt!=Qu&&xt(bt,Tt,Xt)}:xt)}it.defineOption=dt,it.Init=Qu,dt("value","",function(ht,ct){return ht.setValue(ct)},!0),dt("mode",null,function(ht,ct){ht.doc.modeOption=ct,Hi(ht)},!0),dt("indentUnit",2,Hi,!0),dt("indentWithTabs",!1),dt("smartIndent",!0),dt("tabSize",4,function(ht){Vd(ht),el(ht),ir(ht)},!0),dt("lineSeparator",null,function(ht,ct){if(ht.doc.lineSep=ct,!!ct){var xt=[],Mt=ht.doc.first;ht.doc.iter(function(Tt){for(var Xt=0;;){var le=Tt.text.indexOf(ct,Xt);if(le==-1)break;Xt=le+ct.length,xt.push(Pe(Mt,le))}Mt++});for(var bt=xt.length-1;bt>=0;bt--)wh(ht.doc,ct,xt[bt],Pe(xt[bt].line,xt[bt].ch+ct.length))}}),dt("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ht,ct,xt){ht.state.specialChars=new RegExp(ct.source+(ct.test(" ")?"":"| "),"g"),xt!=Qu&&ht.refresh()}),dt("specialCharPlaceholder",Bs,function(ht){return ht.refresh()},!0),dt("electricChars",!0),dt("inputStyle",nt?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),dt("spellcheck",!1,function(ht,ct){return ht.getInputField().spellcheck=ct},!0),dt("autocorrect",!1,function(ht,ct){return ht.getInputField().autocorrect=ct},!0),dt("autocapitalize",!1,function(ht,ct){return ht.getInputField().autocapitalize=ct},!0),dt("rtlMoveVisually",!pt),dt("wholeLineUpdateBefore",!0),dt("theme","default",function(ht){lf(ht),Ea(ht)},!0),dt("keyMap","default",function(ht,ct,xt){var Mt=Bh(ct),bt=xt!=Qu&&Bh(xt);bt&&bt.detach&&bt.detach(ht,Mt),Mt.attach&&Mt.attach(ht,bt||null)}),dt("extraKeys",null),dt("configureMouse",null),dt("lineWrapping",!1,o0,!0),dt("gutters",[],function(ht,ct){ht.display.gutterSpecs=is(ct,ht.options.lineNumbers),Ea(ht)},!0),dt("fixedGutter",!0,function(ht,ct){ht.display.gutters.style.left=ct?Gd(ht.display)+"px":"0",ht.refresh()},!0),dt("coverGutterNextToScrollbar",!1,function(ht){return Lu(ht)},!0),dt("scrollbarStyle","native",function(ht){ec(ht),Lu(ht),ht.display.scrollbars.setScrollTop(ht.doc.scrollTop),ht.display.scrollbars.setScrollLeft(ht.doc.scrollLeft)},!0),dt("lineNumbers",!1,function(ht,ct){ht.display.gutterSpecs=is(ht.options.gutters,ct),Ea(ht)},!0),dt("firstLineNumber",1,Ea,!0),dt("lineNumberFormatter",function(ht){return ht},Ea,!0),dt("showCursorWhenSelecting",!1,Gr,!0),dt("resetSelectionOnContextMenu",!0),dt("lineWiseCopyCut",!0),dt("pasteLinesPerSelection",!0),dt("selectionsMayTouch",!1),dt("readOnly",!1,function(ht,ct){ct=="nocursor"&&(ch(ht),ht.display.input.blur()),ht.display.input.readOnlyChanged(ct)}),dt("screenReaderLabel",null,function(ht,ct){ct=ct===""?null:ct,ht.display.input.screenReaderLabelChanged(ct)}),dt("disableInput",!1,function(ht,ct){ct||ht.display.input.reset()},!0),dt("dragDrop",!0,uf),dt("allowDropFileTypes",null),dt("cursorBlinkRate",530),dt("cursorScrollMargin",0),dt("cursorHeight",1,Gr,!0),dt("singleCursorHeightPerLine",!0,Gr,!0),dt("workTime",100),dt("workDelay",100),dt("flattenSpans",!0,Vd,!0),dt("addModeClass",!1,Vd,!0),dt("pollInterval",100),dt("undoDepth",200,function(ht,ct){return ht.doc.history.undoDepth=ct}),dt("historyEventDelay",1250),dt("viewportMargin",10,function(ht){return ht.refresh()},!0),dt("maxHighlightLength",1e4,Vd,!0),dt("moveInputWithCursor",!0,function(ht,ct){ct||ht.display.input.resetPosition()}),dt("tabindex",null,function(ht,ct){return ht.display.input.getField().tabIndex=ct||""}),dt("autofocus",null),dt("direction","ltr",function(ht,ct){return ht.doc.setDirection(ct)},!0),dt("phrases",null)}function uf(it,st,dt){var ht=dt&&dt!=Qu;if(!st!=!ht){var ct=it.display.dragFunctions,xt=st?te:Je;xt(it.display.scroller,"dragstart",ct.start),xt(it.display.scroller,"dragenter",ct.enter),xt(it.display.scroller,"dragover",ct.over),xt(it.display.scroller,"dragleave",ct.leave),xt(it.display.scroller,"drop",ct.drop)}}function o0(it){it.options.lineWrapping?(xe(it.display.wrapper,"CodeMirror-wrap"),it.display.sizer.style.minWidth="",it.display.sizerWidth=null):(Vt(it.display.wrapper,"CodeMirror-wrap"),_o(it)),ui(it),ir(it),el(it),setTimeout(function(){return Lu(it)},100)}function Ao(it,st){var dt=this;if(!(this instanceof Ao))return new Ao(it,st);this.options=st=st?Fn(st):{},Fn(Mc,st,!1);var ht=st.value;typeof ht=="string"?ht=new ys(ht,st.mode,null,st.lineSeparator,st.direction):st.mode&&(ht.modeOption=st.mode),this.doc=ht;var ct=new Ao.inputStyles[st.inputStyle](this),xt=this.display=new Du(it,ht,ct,st);xt.wrapper.CodeMirror=this,lf(this),st.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ec(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Wt,keySeq:null,specialChars:null},st.autofocus&&!nt&&xt.input.focus(),ue&&Me<11&&setTimeout(function(){return dt.display.input.reset(!0)},20),yd(this),La(),Mu(this),this.curOp.forceUpdate=!0,Wg(this,ht),st.autofocus&&!nt||this.hasFocus()?setTimeout(function(){dt.hasFocus()&&!dt.state.focused&&ho(dt)},20):ch(this);for(var Mt in sg)sg.hasOwnProperty(Mt)&&sg[Mt](this,st[Mt],Qu);br(this),st.finishInit&&st.finishInit(this);for(var bt=0;bt20*20}te(st.scroller,"touchstart",function(Tt){if(!dn(it,Tt)&&!xt(Tt)&&!sf(it,Tt)){st.input.ensurePolled(),clearTimeout(dt);var Xt=+new Date;st.activeTouch={start:Xt,moved:!1,prev:Xt-ht.end<=300?ht:null},Tt.touches.length==1&&(st.activeTouch.left=Tt.touches[0].pageX,st.activeTouch.top=Tt.touches[0].pageY)}}),te(st.scroller,"touchmove",function(){st.activeTouch&&(st.activeTouch.moved=!0)}),te(st.scroller,"touchend",function(Tt){var Xt=st.activeTouch;if(Xt&&!js(st,Tt)&&Xt.left!=null&&!Xt.moved&&new Date-Xt.start<300){var le=it.coordsChar(st.activeTouch,"page"),Yt;!Xt.prev||Mt(Xt,Xt.prev)?Yt=new Io(le,le):!Xt.prev.prev||Mt(Xt,Xt.prev.prev)?Yt=it.findWordAt(le):Yt=new Io(Pe(le.line,0),Gn(it.doc,Pe(le.line+1,0))),it.setSelection(Yt.anchor,Yt.head),it.focus(),Yn(Tt)}ct()}),te(st.scroller,"touchcancel",ct),te(st.scroller,"scroll",function(){st.scroller.clientHeight&&(mh(it,st.scroller.scrollTop),iu(it,st.scroller.scrollLeft,!0),Ve(it,"scroll",it))}),te(st.scroller,"mousewheel",function(Tt){return os(it,Tt)}),te(st.scroller,"DOMMouseScroll",function(Tt){return os(it,Tt)}),te(st.wrapper,"scroll",function(){return st.wrapper.scrollTop=st.wrapper.scrollLeft=0}),st.dragFunctions={enter:function(Tt){dn(it,Tt)||Do(Tt)},over:function(Tt){dn(it,Tt)||(Zp(it,Tt),Do(Tt))},start:function(Tt){return Yp(it,Tt)},drop:Ur(it,dc),leave:function(Tt){dn(it,Tt)||Jp(it)}};var bt=st.input.getField();te(bt,"keyup",function(Tt){return Pc.call(it,Tt)}),te(bt,"keydown",Ur(it,Sc)),te(bt,"keypress",Ur(it,xl)),te(bt,"focus",function(Tt){return ho(it,Tt)}),te(bt,"blur",function(Tt){return ch(it,Tt)})}var Ih=[];Ao.defineInitHook=function(it){return Ih.push(it)};function Xr(it,st,dt,ht){var ct=it.doc,xt;dt==null&&(dt="add"),dt=="smart"&&(ct.mode.indent?xt=Ii(it,st).state:dt="prev");var Mt=it.options.tabSize,bt=Sn(ct,st),Tt=se(bt.text,null,Mt);bt.stateAfter&&(bt.stateAfter=null);var Xt=bt.text.match(/^\s*/)[0],le;if(!ht&&!/\S/.test(bt.text))le=0,dt="not";else if(dt=="smart"&&(le=ct.mode.indent(xt,bt.text.slice(Xt.length),bt.text),le==Dn||le>150)){if(!ht)return;dt="prev"}dt=="prev"?st>ct.first?le=se(Sn(ct,st-1).text,null,Mt):le=0:dt=="add"?le=Tt+it.options.indentUnit:dt=="subtract"?le=Tt-it.options.indentUnit:typeof dt=="number"&&(le=Tt+dt),le=Math.max(0,le);var Yt="",Le=0;if(it.options.indentWithTabs)for(var we=Math.floor(le/Mt);we;--we)Le+=Mt,Yt+=" ";if(LeMt,Tt=En(st),Xt=null;if(bt&&ht.ranges.length>1)if(qs&&qs.text.join(` `)==st){if(ht.ranges.length%qs.text.length==0){Xt=[];for(var le=0;le=0;Le--){var we=ht.ranges[Le],en=we.from(),sn=we.to();we.empty()&&(dt&&dt>0?en=Pe(en.line,en.ch-dt):it.state.overwrite&&!bt?sn=Pe(sn.line,Math.min(Sn(xt,sn.line).text.length,sn.ch+re(Tt).length)):bt&&qs&&qs.lineWise&&qs.text.join(` `)==Tt.join(` -`)&&(en=sn=Pe(en.line,0)));var vn={from:en,to:sn,text:Xt?Xt[Le%Xt.length]:Tt,origin:ct||(bt?"paste":it.state.cutIncoming>Mt?"cut":"+input")};Ru(it.doc,vn),Rn(it,"inputRead",it,vn)}st&&!bt&&Ic(it,st),nu(it),it.curOp.updateInput<2&&(it.curOp.updateInput=Yt),it.curOp.typing=!0,it.state.pasteIncoming=it.state.cutIncoming=-1}function kc(it,st){var dt=it.clipboardData&&it.clipboardData.getData("Text");if(dt)return it.preventDefault(),!st.isReadOnly()&&!st.options.disableInput&&Po(st,function(){return ag(st,dt,0,null,"paste")}),!0}function Ic(it,st){if(!(!it.options.electricChars||!it.options.smartIndent))for(var dt=it.doc.sel,ht=dt.ranges.length-1;ht>=0;ht--){var ct=dt.ranges[ht];if(!(ct.head.ch>100||ht&&dt.ranges[ht-1].head.line==ct.head.line)){var xt=it.getModeAt(ct.head),Mt=!1;if(xt.electricChars){for(var bt=0;bt-1){Mt=Xr(it,ct.head.line,"smart");break}}else xt.electricInput&&xt.electricInput.test(Sn(it.doc,ct.head.line).text.slice(0,ct.head.ch))&&(Mt=Xr(it,ct.head.line,"smart"));Mt&&Rn(it,"electricInput",it,ct.head.line)}}}function Fc(it){for(var st=[],dt=[],ht=0;htxt&&(Xr(this,bt.head.line,ht,!0),xt=bt.head.line,Mt==this.doc.sel.primIndex&&nu(this));else{var Tt=bt.from(),Xt=bt.to(),le=Math.max(xt,Tt.line);xt=Math.min(this.lastLine(),Xt.line-(Xt.ch?0:1))+1;for(var Yt=le;Yt0&&ju(this.doc,Mt,new Io(Tt,Le[Mt].to()),ve)}}}),getTokenAt:function(ht,ct){return Qn(this,ht,ct)},getLineTokens:function(ht,ct){return Qn(this,Pe(ht),ct,!0)},getTokenTypeAt:function(ht){ht=Gn(this.doc,ht);var ct=Ji(this,Sn(this.doc,ht.line)),xt=0,Mt=(ct.length-1)/2,bt=ht.ch,Tt;if(bt==0)Tt=ct[2];else for(;;){var Xt=xt+Mt>>1;if((Xt?ct[Xt*2-1]:0)>=bt)Mt=Xt;else if(ct[Xt*2+1]Tt&&(ht=Tt,Mt=!0),bt=Sn(this.doc,ht)}else bt=ht;return Er(this,bt,{top:0,left:0},ct||"page",xt||Mt).top+(Mt?this.doc.height-ji(bt):0)},defaultTextHeight:function(){return eu(this.display)},defaultCharWidth:function(){return fh(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ht,ct,xt,Mt,bt){var Tt=this.display;ht=gr(this,Gn(this.doc,ht));var Xt=ht.bottom,le=ht.left;if(ct.style.position="absolute",ct.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ct),Tt.sizer.appendChild(ct),Mt=="over")Xt=ht.top;else if(Mt=="above"||Mt=="near"){var Yt=Math.max(Tt.wrapper.clientHeight,this.doc.height),Le=Math.max(Tt.sizer.clientWidth,Tt.lineSpace.clientWidth);(Mt=="above"||ht.bottom+ct.offsetHeight>Yt)&&ht.top>ct.offsetHeight?Xt=ht.top-ct.offsetHeight:ht.bottom+ct.offsetHeight<=Yt&&(Xt=ht.bottom),le+ct.offsetWidth>Le&&(le=Le-ct.offsetWidth)}ct.style.top=Xt+"px",ct.style.left=ct.style.right="",bt=="right"?(le=Tt.sizer.clientWidth-ct.offsetWidth,ct.style.right="0px"):(bt=="left"?le=0:bt=="middle"&&(le=(Tt.sizer.clientWidth-ct.offsetWidth)/2),ct.style.left=le+"px"),xt&&Ud(this,{left:le,top:Xt,right:le+ct.offsetWidth,bottom:Xt+ct.offsetHeight})},triggerOnKeyDown:es(Sc),triggerOnKeyPress:es(Sl),triggerOnKeyUp:Pc,triggerOnMouseDown:es(xl),execCommand:function(ht){if(zu.hasOwnProperty(ht))return zu[ht].call(null,this)},triggerElectric:es(function(ht){Ic(this,ht)}),findPosH:function(ht,ct,xt,Mt){var bt=1;ct<0&&(bt=-1,ct=-ct);for(var Tt=Gn(this.doc,ht),Xt=0;Xt0&&le(xt.charAt(Mt-1));)--Mt;for(;bt.5||this.options.lineWrapping)&&ui(this),Ve(this,"refresh",this)}),swapDoc:es(function(ht){var ct=this.doc;return ct.cm=null,this.state.selectingText&&this.state.selectingText(),Wg(this,ht),el(this),this.display.input.reset(),ph(this,ht.scrollLeft,ht.scrollTop),this.curOp.forceScroll=!0,Rn(this,"swapDoc",this,ct),ct}),phrase:function(ht){var ct=this.options.phrases;return ct&&Object.prototype.hasOwnProperty.call(ct,ht)?ct[ht]:ht},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},kn(it),it.registerHelper=function(ht,ct,xt){dt.hasOwnProperty(ht)||(dt[ht]=it[ht]={_global:[]}),dt[ht][ct]=xt},it.registerGlobalHelper=function(ht,ct,xt,Mt){it.registerHelper(ht,ct,Mt),dt[ht]._global.push({pred:xt,val:Mt})}}function lg(it,st,dt,ht,ct){var xt=st,Mt=dt,bt=Sn(it,st.line),Tt=ct&&it.direction=="rtl"?-dt:dt;function Xt(){var Kn=st.line+Tt;return Kn=it.first+it.size?!1:(st=new Pe(Kn,st.ch,st.sticky),bt=Sn(it,Kn))}function le(Kn){var zn;if(ht=="codepoint"){var oi=bt.text.charCodeAt(st.ch+(ht>0?0:-1));isNaN(oi)?zn=null:zn=new Pe(st.line,Math.max(0,Math.min(bt.text.length,st.ch+dt*(oi>=55296&&oi<56320?2:1))),-dt)}else ct?zn=$g(it.cm,bt,st,dt):zn=Nr(bt,st,dt);if(zn==null)if(!Kn&&Xt())st=rg(ct,it.cm,bt,st.line,Tt);else return!1;else st=zn;return!0}if(ht=="char"||ht=="codepoint")le();else if(ht=="column")le(!0);else if(ht=="word"||ht=="group")for(var Yt=null,Le=ht=="group",we=it.cm&&it.cm.getHelper(st,"wordChars"),en=!0;!(dt<0&&!le(!en));en=!1){var sn=bt.text.charAt(st.ch)||` +`)&&(en=sn=Pe(en.line,0)));var vn={from:en,to:sn,text:Xt?Xt[Le%Xt.length]:Tt,origin:ct||(bt?"paste":it.state.cutIncoming>Mt?"cut":"+input")};Ru(it.doc,vn),Rn(it,"inputRead",it,vn)}st&&!bt&&Ic(it,st),nu(it),it.curOp.updateInput<2&&(it.curOp.updateInput=Yt),it.curOp.typing=!0,it.state.pasteIncoming=it.state.cutIncoming=-1}function kc(it,st){var dt=it.clipboardData&&it.clipboardData.getData("Text");if(dt)return it.preventDefault(),!st.isReadOnly()&&!st.options.disableInput&&Po(st,function(){return ag(st,dt,0,null,"paste")}),!0}function Ic(it,st){if(!(!it.options.electricChars||!it.options.smartIndent))for(var dt=it.doc.sel,ht=dt.ranges.length-1;ht>=0;ht--){var ct=dt.ranges[ht];if(!(ct.head.ch>100||ht&&dt.ranges[ht-1].head.line==ct.head.line)){var xt=it.getModeAt(ct.head),Mt=!1;if(xt.electricChars){for(var bt=0;bt-1){Mt=Xr(it,ct.head.line,"smart");break}}else xt.electricInput&&xt.electricInput.test(Sn(it.doc,ct.head.line).text.slice(0,ct.head.ch))&&(Mt=Xr(it,ct.head.line,"smart"));Mt&&Rn(it,"electricInput",it,ct.head.line)}}}function Fc(it){for(var st=[],dt=[],ht=0;htxt&&(Xr(this,bt.head.line,ht,!0),xt=bt.head.line,Mt==this.doc.sel.primIndex&&nu(this));else{var Tt=bt.from(),Xt=bt.to(),le=Math.max(xt,Tt.line);xt=Math.min(this.lastLine(),Xt.line-(Xt.ch?0:1))+1;for(var Yt=le;Yt0&&ju(this.doc,Mt,new Io(Tt,Le[Mt].to()),ve)}}}),getTokenAt:function(ht,ct){return Qn(this,ht,ct)},getLineTokens:function(ht,ct){return Qn(this,Pe(ht),ct,!0)},getTokenTypeAt:function(ht){ht=Gn(this.doc,ht);var ct=Ji(this,Sn(this.doc,ht.line)),xt=0,Mt=(ct.length-1)/2,bt=ht.ch,Tt;if(bt==0)Tt=ct[2];else for(;;){var Xt=xt+Mt>>1;if((Xt?ct[Xt*2-1]:0)>=bt)Mt=Xt;else if(ct[Xt*2+1]Tt&&(ht=Tt,Mt=!0),bt=Sn(this.doc,ht)}else bt=ht;return Er(this,bt,{top:0,left:0},ct||"page",xt||Mt).top+(Mt?this.doc.height-ji(bt):0)},defaultTextHeight:function(){return eu(this.display)},defaultCharWidth:function(){return fh(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ht,ct,xt,Mt,bt){var Tt=this.display;ht=gr(this,Gn(this.doc,ht));var Xt=ht.bottom,le=ht.left;if(ct.style.position="absolute",ct.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ct),Tt.sizer.appendChild(ct),Mt=="over")Xt=ht.top;else if(Mt=="above"||Mt=="near"){var Yt=Math.max(Tt.wrapper.clientHeight,this.doc.height),Le=Math.max(Tt.sizer.clientWidth,Tt.lineSpace.clientWidth);(Mt=="above"||ht.bottom+ct.offsetHeight>Yt)&&ht.top>ct.offsetHeight?Xt=ht.top-ct.offsetHeight:ht.bottom+ct.offsetHeight<=Yt&&(Xt=ht.bottom),le+ct.offsetWidth>Le&&(le=Le-ct.offsetWidth)}ct.style.top=Xt+"px",ct.style.left=ct.style.right="",bt=="right"?(le=Tt.sizer.clientWidth-ct.offsetWidth,ct.style.right="0px"):(bt=="left"?le=0:bt=="middle"&&(le=(Tt.sizer.clientWidth-ct.offsetWidth)/2),ct.style.left=le+"px"),xt&&Ud(this,{left:le,top:Xt,right:le+ct.offsetWidth,bottom:Xt+ct.offsetHeight})},triggerOnKeyDown:ts(Sc),triggerOnKeyPress:ts(xl),triggerOnKeyUp:Pc,triggerOnMouseDown:ts(Pl),execCommand:function(ht){if(zu.hasOwnProperty(ht))return zu[ht].call(null,this)},triggerElectric:ts(function(ht){Ic(this,ht)}),findPosH:function(ht,ct,xt,Mt){var bt=1;ct<0&&(bt=-1,ct=-ct);for(var Tt=Gn(this.doc,ht),Xt=0;Xt0&&le(xt.charAt(Mt-1));)--Mt;for(;bt.5||this.options.lineWrapping)&&ui(this),Ve(this,"refresh",this)}),swapDoc:ts(function(ht){var ct=this.doc;return ct.cm=null,this.state.selectingText&&this.state.selectingText(),Wg(this,ht),el(this),this.display.input.reset(),ph(this,ht.scrollLeft,ht.scrollTop),this.curOp.forceScroll=!0,Rn(this,"swapDoc",this,ct),ct}),phrase:function(ht){var ct=this.options.phrases;return ct&&Object.prototype.hasOwnProperty.call(ct,ht)?ct[ht]:ht},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},kn(it),it.registerHelper=function(ht,ct,xt){dt.hasOwnProperty(ht)||(dt[ht]=it[ht]={_global:[]}),dt[ht][ct]=xt},it.registerGlobalHelper=function(ht,ct,xt,Mt){it.registerHelper(ht,ct,Mt),dt[ht]._global.push({pred:xt,val:Mt})}}function lg(it,st,dt,ht,ct){var xt=st,Mt=dt,bt=Sn(it,st.line),Tt=ct&&it.direction=="rtl"?-dt:dt;function Xt(){var Kn=st.line+Tt;return Kn=it.first+it.size?!1:(st=new Pe(Kn,st.ch,st.sticky),bt=Sn(it,Kn))}function le(Kn){var zn;if(ht=="codepoint"){var oi=bt.text.charCodeAt(st.ch+(ht>0?0:-1));isNaN(oi)?zn=null:zn=new Pe(st.line,Math.max(0,Math.min(bt.text.length,st.ch+dt*(oi>=55296&&oi<56320?2:1))),-dt)}else ct?zn=$g(it.cm,bt,st,dt):zn=Nr(bt,st,dt);if(zn==null)if(!Kn&&Xt())st=rg(ct,it.cm,bt,st.line,Tt);else return!1;else st=zn;return!0}if(ht=="char"||ht=="codepoint")le();else if(ht=="column")le(!0);else if(ht=="word"||ht=="group")for(var Yt=null,Le=ht=="group",we=it.cm&&it.cm.getHelper(st,"wordChars"),en=!0;!(dt<0&&!le(!en));en=!1){var sn=bt.text.charAt(st.ch)||` `,vn=yi(sn,we)?"w":Le&&sn==` `?"n":!Le||/\s/.test(sn)?null:"p";if(Le&&!en&&!vn&&(vn="s"),Yt&&Yt!=vn){dt<0&&(dt=1,le(),st.sticky="after");break}if(vn&&(Yt=vn),dt>0&&!le(!en))break}var Ln=$d(it,st,xt,Mt,!0);return Ai(xt,Ln)&&(Ln.hitSide=!0),Ln}function Gu(it,st,dt,ht){var ct=it.doc,xt=st.left,Mt;if(ht=="page"){var bt=Math.min(it.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Tt=Math.max(bt-.5*eu(it.display),3);Mt=(dt>0?st.bottom:st.top)+dt*Tt}else ht=="line"&&(Mt=dt>0?st.bottom+3:st.top-3);for(var Xt;Xt=jg(it,xt,Mt),!!Xt.outside;){if(dt<0?Mt<=0:Mt>=ct.height){Xt.hitSide=!0;break}Mt+=dt*5}return Xt}var Qo=function(it){this.cm=it,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Wt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Qo.prototype.init=function(it){var st=this,dt=this,ht=dt.cm,ct=dt.div=it.lineDiv;Nc(ct,ht.options.spellcheck,ht.options.autocorrect,ht.options.autocapitalize);function xt(bt){for(var Tt=bt.target;Tt;Tt=Tt.parentNode){if(Tt==ct)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Tt.className))break}return!1}te(ct,"paste",function(bt){!xt(bt)||dn(ht,bt)||kc(bt,ht)||Me<=11&&setTimeout(Ur(ht,function(){return st.updateFromDOM()}),20)}),te(ct,"compositionstart",function(bt){st.composing={data:bt.data,done:!1}}),te(ct,"compositionupdate",function(bt){st.composing||(st.composing={data:bt.data,done:!1})}),te(ct,"compositionend",function(bt){st.composing&&(bt.data!=st.composing.data&&st.readFromDOMSoon(),st.composing.done=!0)}),te(ct,"touchstart",function(){return dt.forceCompositionEnd()}),te(ct,"input",function(){st.composing||st.readFromDOMSoon()});function Mt(bt){if(!(!xt(bt)||dn(ht,bt))){if(ht.somethingSelected())Fh({lineWise:!1,text:ht.getSelections()}),bt.type=="cut"&&ht.replaceSelection("",null,"cut");else if(ht.options.lineWiseCopyCut){var Tt=Fc(ht);Fh({lineWise:!0,text:Tt.text}),bt.type=="cut"&&ht.operation(function(){ht.setSelections(Tt.ranges,0,ve),ht.replaceSelection("",null,"cut")})}else return;if(bt.clipboardData){bt.clipboardData.clearData();var Xt=qs.text.join(` `);if(bt.clipboardData.setData("Text",Xt),bt.clipboardData.getData("Text")==Xt){bt.preventDefault();return}}var le=Tc(),Yt=le.firstChild;ht.display.lineSpace.insertBefore(le,ht.display.lineSpace.firstChild),Yt.value=qs.text.join(` @@ -1114,12 +1114,12 @@ b`.split(/\n/).length!=3?function(it){for(var st=0,dt=[],ht=it.length;st<=ht;){v `)>-1?dt.value=it.prevInput="":it.prevInput=ct,it.composing&&(it.composing.range.clear(),it.composing.range=st.markText(it.composing.start,st.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Rr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Rr.prototype.onKeyPress=function(){ue&&Me>=9&&(this.hasSelection=null),this.fastPoll()},Rr.prototype.onContextMenu=function(it){var st=this,dt=st.cm,ht=dt.display,ct=st.textarea;st.contextMenuPending&&st.contextMenuPending();var xt=Rs(dt,it),Mt=ht.scroller.scrollTop;if(!xt||pe)return;var bt=dt.options.resetSelectionOnContextMenu;bt&&dt.doc.sel.contains(xt)==-1&&Ur(dt,ks)(dt.doc,ou(xt),ve);var Tt=ct.style.cssText,Xt=st.wrapper.style.cssText,le=st.wrapper.offsetParent.getBoundingClientRect();st.wrapper.style.cssText="position: static",ct.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(it.clientY-le.top-5)+"px; left: "+(it.clientX-le.left-5)+`px; z-index: 1000; background: `+(ue?"rgba(255, 255, 255, .05)":"transparent")+`; - outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Yt;qt&&(Yt=window.scrollY),ht.input.focus(),qt&&window.scrollTo(null,Yt),ht.input.reset(),dt.somethingSelected()||(ct.value=st.prevInput=" "),st.contextMenuPending=we,ht.selForContextMenu=dt.doc.sel,clearTimeout(ht.detectingSelectAll);function Le(){if(ct.selectionStart!=null){var sn=dt.somethingSelected(),vn="\u200B"+(sn?ct.value:"");ct.value="\u21DA",ct.value=vn,st.prevInput=sn?"":"\u200B",ct.selectionStart=1,ct.selectionEnd=vn.length,ht.selForContextMenu=dt.doc.sel}}function we(){if(st.contextMenuPending==we&&(st.contextMenuPending=!1,st.wrapper.style.cssText=Xt,ct.style.cssText=Tt,ue&&Me<9&&ht.scrollbars.setScrollTop(ht.scroller.scrollTop=Mt),ct.selectionStart!=null)){(!ue||ue&&Me<9)&&Le();var sn=0,vn=function(){ht.selForContextMenu==dt.doc.sel&&ct.selectionStart==0&&ct.selectionEnd>0&&st.prevInput=="\u200B"?Ur(dt,Fr)(dt):sn++<10?ht.detectingSelectAll=setTimeout(vn,500):(ht.selForContextMenu=null,ht.input.reset())};ht.detectingSelectAll=setTimeout(vn,200)}}if(ue&&Me>=9&&Le(),Ft){Do(it);var en=function(){Je(window,"mouseup",en),setTimeout(we,20)};te(window,"mouseup",en)}else setTimeout(we,50)},Rr.prototype.readOnlyChanged=function(it){it||this.reset(),this.textarea.disabled=it=="nocursor",this.textarea.readOnly=!!it},Rr.prototype.setUneditable=function(){},Rr.prototype.needsContentAttribute=!1;function s0(it,st){if(st=st?Fn(st):{},st.value=it.value,!st.tabindex&&it.tabIndex&&(st.tabindex=it.tabIndex),!st.placeholder&&it.placeholder&&(st.placeholder=it.placeholder),st.autofocus==null){var dt=he();st.autofocus=dt==it||it.getAttribute("autofocus")!=null&&dt==document.body}function ht(){it.value=bt.getValue()}var ct;if(it.form&&(te(it.form,"submit",ht),!st.leaveSubmitMethodAlone)){var xt=it.form;ct=xt.submit;try{var Mt=xt.submit=function(){ht(),xt.submit=ct,xt.submit(),xt.submit=Mt}}catch(Tt){}}st.finishInit=function(Tt){Tt.save=ht,Tt.getTextArea=function(){return it},Tt.toTextArea=function(){Tt.toTextArea=isNaN,ht(),it.parentNode.removeChild(Tt.getWrapperElement()),it.style.display="",it.form&&(Je(it.form,"submit",ht),!st.leaveSubmitMethodAlone&&typeof it.form.submit=="function"&&(it.form.submit=ct))}},it.style.display="none";var bt=Ao(function(Tt){return it.parentNode.insertBefore(Tt,it.nextSibling)},st);return bt}function xd(it){it.off=Je,it.on=te,it.wheelEventPixels=Ba,it.Doc=ys,it.splitLines=En,it.countColumn=se,it.findColumn=wn,it.isWordChar=So,it.Pass=Dn,it.signal=Ve,it.Line=Wo,it.changeEnd=bu,it.scrollbarModel=tc,it.Pos=Pe,it.cmpPos=Ze,it.modes=Es,it.mimeModes=Zr,it.resolveMode=oa,it.getMode=je,it.modeExtensions=Ae,it.extendMode=fe,it.copyState=In,it.startState=li,it.innerMode=ci,it.commands=zu,it.keyMap=ua,it.keyName=_p,it.isModifierKey=fd,it.lookupKey=Ga,it.normalizeKeyMap=pc,it.StringStream=Ke,it.SharedTextMarker=bl,it.TextMarker=oe,it.LineWidget=au,it.e_preventDefault=Yn,it.e_stopPropagation=zi,it.e_stop=Do,it.addClass=xe,it.contains=ke,it.rmClass=Vt,it.keyNames=Ol}i0(Ao),Hu(Ao);var lu="iter insert remove copy getEditor constructor".split(" ");for(var hg in ys.prototype)ys.prototype.hasOwnProperty(hg)&&_e(lu,hg)<0&&(Ao.prototype[hg]=function(it){return function(){return it.apply(this.doc,arguments)}}(ys.prototype[hg]));return kn(ys),Ao.inputStyles={textarea:Rr,contenteditable:Qo},Ao.defineMode=function(it){!Ao.defaults.mode&&it!="null"&&(Ao.defaults.mode=it),Oa.apply(this,arguments)},Ao.defineMIME=bo,Ao.defineMode("null",function(){return{token:function(it){return it.skipToEnd()}}}),Ao.defineMIME("text/plain","null"),Ao.defineExtension=function(it,st){Ao.prototype[it]=st},Ao.defineDocExtension=function(it,st){ys.prototype[it]=st},Ao.fromTextArea=s0,xd(Ao),Ao.version="5.58.2",Ao})},25419:function(Qe,gn,Qt){(function(wt){wt(Qt(89780),Qt(15525),Qt(98101))})(function(wt){"use strict";wt.defineMode("markdown",function(de,Se){var Re=wt.getMode(de,"text/html"),ue=Re.name=="null";function Me(se){if(wt.findModeByName){var Wt=wt.findModeByName(se);Wt&&(se=Wt.mime||Wt.mimes[0])}var _e=wt.getMode(de,se);return _e.name=="null"?null:_e}Se.highlightFormatting===void 0&&(Se.highlightFormatting=!1),Se.maxBlockquoteDepth===void 0&&(Se.maxBlockquoteDepth=0),Se.taskLists===void 0&&(Se.taskLists=!1),Se.strikethrough===void 0&&(Se.strikethrough=!1),Se.emoji===void 0&&(Se.emoji=!1),Se.fencedCodeBlockHighlighting===void 0&&(Se.fencedCodeBlockHighlighting=!0),Se.fencedCodeBlockDefaultMode===void 0&&(Se.fencedCodeBlockDefaultMode="text/plain"),Se.xml===void 0&&(Se.xml=!0),Se.tokenTypeOverrides===void 0&&(Se.tokenTypeOverrides={});var qt={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var Ce in qt)qt.hasOwnProperty(Ce)&&Se.tokenTypeOverrides[Ce]&&(qt[Ce]=Se.tokenTypeOverrides[Ce]);var ge=/^([*\-_])(?:\s*\1){2,}\s*$/,pe=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,ae=/^\[(x| )\](?=\s)/i,Te=Se.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,De=/^ {0,3}(?:\={1,}|-{2,})\s*$/,kt=/^[^#!\[\]*_\\<>` "'(~:]+/,et=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,nt=/^\s*\[[^\]]+?\]:.*$/,gt=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,lt=" ";function pt(se,Wt,_e){return Wt.f=Wt.inline=_e,_e(se,Wt)}function vt(se,Wt,_e){return Wt.f=Wt.block=_e,_e(se,Wt)}function Ct(se){return!se||!/\S/.test(se.string)}function Ft(se){if(se.linkTitle=!1,se.linkHref=!1,se.linkText=!1,se.em=!1,se.strong=!1,se.strikethrough=!1,se.quote=0,se.indentedCode=!1,se.f==Vt){var Wt=ue;if(!Wt){var _e=wt.innerMode(Re,se.htmlState);Wt=_e.mode.name=="xml"&&_e.state.tagStart===null&&!_e.state.context&&_e.state.tokenize.isInText}Wt&&(se.f=me,se.block=Ht,se.htmlState=null)}return se.trailingSpace=0,se.trailingSpaceNewLine=!1,se.prevLine=se.thisLine,se.thisLine={stream:null},null}function Ht(se,Wt){var _e=se.column()===Wt.indentation,Tn=Ct(Wt.prevLine.stream),Dn=Wt.indentedCode,ve=Wt.prevLine.hr,$e=Wt.list!==!1,hn=(Wt.listStack[Wt.listStack.length-1]||0)+3;Wt.indentedCode=!1;var wn=Wt.indentation;if(Wt.indentationDiff===null&&(Wt.indentationDiff=Wt.indentation,$e)){for(Wt.list=null;wn=4&&(Dn||Wt.prevLine.fencedCodeEnd||Wt.prevLine.header||Tn))return se.skipToEnd(),Wt.indentedCode=!0,qt.code;if(se.eatSpace())return null;if(_e&&Wt.indentation<=hn&&(re=se.match(Te))&&re[1].length<=6)return Wt.quote=0,Wt.header=re[1].length,Wt.thisLine.header=!0,Se.highlightFormatting&&(Wt.formatting="header"),Wt.f=Wt.inline,ne(Wt);if(Wt.indentation<=hn&&se.eat(">"))return Wt.quote=_e?1:Wt.quote+1,Se.highlightFormatting&&(Wt.formatting="quote"),se.eatSpace(),ne(Wt);if(!bn&&!Wt.setext&&_e&&Wt.indentation<=hn&&(re=se.match(pe))){var An=re[1]?"ol":"ul";return Wt.indentation=wn+se.current().length,Wt.list=!0,Wt.quote=0,Wt.listStack.push(Wt.indentation),Wt.em=!1,Wt.strong=!1,Wt.code=!1,Wt.strikethrough=!1,Se.taskLists&&se.match(ae,!1)&&(Wt.taskList=!0),Wt.f=Wt.inline,Se.highlightFormatting&&(Wt.formatting=["list","list-"+An]),ne(Wt)}else{if(_e&&Wt.indentation<=hn&&(re=se.match(et,!0)))return Wt.quote=0,Wt.fencedEndRE=new RegExp(re[1]+"+ *$"),Wt.localMode=Se.fencedCodeBlockHighlighting&&Me(re[2]||Se.fencedCodeBlockDefaultMode),Wt.localMode&&(Wt.localState=wt.startState(Wt.localMode)),Wt.f=Wt.block=_t,Se.highlightFormatting&&(Wt.formatting="code-block"),Wt.code=-1,ne(Wt);if(Wt.setext||(!rn||!$e)&&!Wt.quote&&Wt.list===!1&&!Wt.code&&!bn&&!nt.test(se.string)&&(re=se.lookAhead(1))&&(re=re.match(De)))return Wt.setext?(Wt.header=Wt.setext,Wt.setext=0,se.skipToEnd(),Se.highlightFormatting&&(Wt.formatting="header")):(Wt.header=re[0].charAt(0)=="="?1:2,Wt.setext=Wt.header),Wt.thisLine.header=!0,Wt.f=Wt.inline,ne(Wt);if(bn)return se.skipToEnd(),Wt.hr=!0,Wt.thisLine.hr=!0,qt.hr;if(se.peek()==="[")return pt(se,Wt,on)}return pt(se,Wt,Wt.inline)}function Vt(se,Wt){var _e=Re.token(se,Wt.htmlState);if(!ue){var Tn=wt.innerMode(Re,Wt.htmlState);(Tn.mode.name=="xml"&&Tn.state.tagStart===null&&!Tn.state.context&&Tn.state.tokenize.isInText||Wt.md_inside&&se.current().indexOf(">")>-1)&&(Wt.f=me,Wt.block=Ht,Wt.htmlState=null)}return _e}function _t(se,Wt){var _e=Wt.listStack[Wt.listStack.length-1]||0,Tn=Wt.indentation<_e,Dn=_e+3;if(Wt.fencedEndRE&&Wt.indentation<=Dn&&(Tn||se.match(Wt.fencedEndRE))){Se.highlightFormatting&&(Wt.formatting="code-block");var ve;return Tn||(ve=ne(Wt)),Wt.localMode=Wt.localState=null,Wt.block=Ht,Wt.f=me,Wt.fencedEndRE=null,Wt.code=0,Wt.thisLine.fencedCodeEnd=!0,Tn?vt(se,Wt,Wt.block):ve}else return Wt.localMode?Wt.localMode.token(se,Wt.localState):(se.skipToEnd(),qt.code)}function ne(se){var Wt=[];if(se.formatting){Wt.push(qt.formatting),typeof se.formatting=="string"&&(se.formatting=[se.formatting]);for(var _e=0;_e=se.quote?Wt.push(qt.formatting+"-"+se.formatting[_e]+"-"+se.quote):Wt.push("error"))}if(se.taskOpen)return Wt.push("meta"),Wt.length?Wt.join(" "):null;if(se.taskClosed)return Wt.push("property"),Wt.length?Wt.join(" "):null;if(se.linkHref?Wt.push(qt.linkHref,"url"):(se.strong&&Wt.push(qt.strong),se.em&&Wt.push(qt.em),se.strikethrough&&Wt.push(qt.strikethrough),se.emoji&&Wt.push(qt.emoji),se.linkText&&Wt.push(qt.linkText),se.code&&Wt.push(qt.code),se.image&&Wt.push(qt.image),se.imageAltText&&Wt.push(qt.imageAltText,"link"),se.imageMarker&&Wt.push(qt.imageMarker)),se.header&&Wt.push(qt.header,qt.header+"-"+se.header),se.quote&&(Wt.push(qt.quote),!Se.maxBlockquoteDepth||Se.maxBlockquoteDepth>=se.quote?Wt.push(qt.quote+"-"+se.quote):Wt.push(qt.quote+"-"+Se.maxBlockquoteDepth)),se.list!==!1){var Tn=(se.listStack.length-1)%3;Tn?Tn===1?Wt.push(qt.list2):Wt.push(qt.list3):Wt.push(qt.list1)}return se.trailingSpaceNewLine?Wt.push("trailing-space-new-line"):se.trailingSpace&&Wt.push("trailing-space-"+(se.trailingSpace%2?"a":"b")),Wt.length?Wt.join(" "):null}function $t(se,Wt){if(se.match(kt,!0))return ne(Wt)}function me(se,Wt){var _e=Wt.text(se,Wt);if(typeof _e!="undefined")return _e;if(Wt.list)return Wt.list=null,ne(Wt);if(Wt.taskList){var Tn=se.match(ae,!0)[1]===" ";return Tn?Wt.taskOpen=!0:Wt.taskClosed=!0,Se.highlightFormatting&&(Wt.formatting="task"),Wt.taskList=!1,ne(Wt)}if(Wt.taskOpen=!1,Wt.taskClosed=!1,Wt.header&&se.match(/^#+$/,!0))return Se.highlightFormatting&&(Wt.formatting="header"),ne(Wt);var Dn=se.next();if(Wt.linkTitle){Wt.linkTitle=!1;var ve=Dn;Dn==="("&&(ve=")"),ve=(ve+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var $e="^\\s*(?:[^"+ve+"\\\\]+|\\\\\\\\|\\\\.)"+ve;if(se.match(new RegExp($e),!0))return qt.linkHref}if(Dn==="`"){var hn=Wt.formatting;Se.highlightFormatting&&(Wt.formatting="code"),se.eatWhile("`");var wn=se.current().length;if(Wt.code==0&&(!Wt.quote||wn==1))return Wt.code=wn,ne(Wt);if(wn==Wt.code){var rn=ne(Wt);return Wt.code=0,rn}else return Wt.formatting=hn,ne(Wt)}else if(Wt.code)return ne(Wt);if(Dn==="\\"&&(se.next(),Se.highlightFormatting)){var bn=ne(Wt),re=qt.formatting+"-escape";return bn?bn+" "+re:re}if(Dn==="!"&&se.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Wt.imageMarker=!0,Wt.image=!0,Se.highlightFormatting&&(Wt.formatting="image"),ne(Wt);if(Dn==="["&&Wt.imageMarker&&se.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Wt.imageMarker=!1,Wt.imageAltText=!0,Se.highlightFormatting&&(Wt.formatting="image"),ne(Wt);if(Dn==="]"&&Wt.imageAltText){Se.highlightFormatting&&(Wt.formatting="image");var bn=ne(Wt);return Wt.imageAltText=!1,Wt.image=!1,Wt.inline=Wt.f=ke,bn}if(Dn==="["&&!Wt.image)return Wt.linkText&&se.match(/^.*?\]/)||(Wt.linkText=!0,Se.highlightFormatting&&(Wt.formatting="link")),ne(Wt);if(Dn==="]"&&Wt.linkText){Se.highlightFormatting&&(Wt.formatting="link");var bn=ne(Wt);return Wt.linkText=!1,Wt.inline=Wt.f=se.match(/\(.*?\)| ?\[.*?\]/,!1)?ke:me,bn}if(Dn==="<"&&se.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Wt.f=Wt.inline=Zt,Se.highlightFormatting&&(Wt.formatting="link");var bn=ne(Wt);return bn?bn+=" ":bn="",bn+qt.linkInline}if(Dn==="<"&&se.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Wt.f=Wt.inline=Zt,Se.highlightFormatting&&(Wt.formatting="link");var bn=ne(Wt);return bn?bn+=" ":bn="",bn+qt.linkEmail}if(Se.xml&&Dn==="<"&&se.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var An=se.string.indexOf(">",se.pos);if(An!=-1){var mi=se.string.substring(se.start,An);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(mi)&&(Wt.md_inside=!0)}return se.backUp(1),Wt.htmlState=wt.startState(Re),vt(se,Wt,Vt)}if(Se.xml&&Dn==="<"&&se.match(/^\/\w*?>/))return Wt.md_inside=!1,"tag";if(Dn==="*"||Dn==="_"){for(var ni=1,qe=se.pos==1?" ":se.string.charAt(se.pos-2);ni<3&&se.eat(Dn);)ni++;var vi=se.peek()||" ",So=!/\s/.test(vi)&&(!gt.test(vi)||/\s/.test(qe)||gt.test(qe)),yi=!/\s/.test(qe)&&(!gt.test(qe)||/\s/.test(vi)||gt.test(vi)),gi=null,fi=null;if(ni%2&&(!Wt.em&&So&&(Dn==="*"||!yi||gt.test(qe))?gi=!0:Wt.em==Dn&&yi&&(Dn==="*"||!So||gt.test(vi))&&(gi=!1)),ni>1&&(!Wt.strong&&So&&(Dn==="*"||!yi||gt.test(qe))?fi=!0:Wt.strong==Dn&&yi&&(Dn==="*"||!So||gt.test(vi))&&(fi=!1)),fi!=null||gi!=null){Se.highlightFormatting&&(Wt.formatting=gi==null?"strong":fi==null?"em":"strong em"),gi===!0&&(Wt.em=Dn),fi===!0&&(Wt.strong=Dn);var rn=ne(Wt);return gi===!1&&(Wt.em=!1),fi===!1&&(Wt.strong=!1),rn}}else if(Dn===" "&&(se.eat("*")||se.eat("_"))){if(se.peek()===" ")return ne(Wt);se.backUp(1)}if(Se.strikethrough){if(Dn==="~"&&se.eatWhile(Dn)){if(Wt.strikethrough){Se.highlightFormatting&&(Wt.formatting="strikethrough");var rn=ne(Wt);return Wt.strikethrough=!1,rn}else if(se.match(/^[^\s]/,!1))return Wt.strikethrough=!0,Se.highlightFormatting&&(Wt.formatting="strikethrough"),ne(Wt)}else if(Dn===" "&&se.match(/^~~/,!0)){if(se.peek()===" ")return ne(Wt);se.backUp(2)}}if(Se.emoji&&Dn===":"&&se.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Wt.emoji=!0,Se.highlightFormatting&&(Wt.formatting="emoji");var an=ne(Wt);return Wt.emoji=!1,an}return Dn===" "&&(se.match(/^ +$/,!1)?Wt.trailingSpace++:Wt.trailingSpace&&(Wt.trailingSpaceNewLine=!0)),ne(Wt)}function Zt(se,Wt){var _e=se.next();if(_e===">"){Wt.f=Wt.inline=me,Se.highlightFormatting&&(Wt.formatting="link");var Tn=ne(Wt);return Tn?Tn+=" ":Tn="",Tn+qt.linkInline}return se.match(/^[^>]+/,!0),qt.linkInline}function ke(se,Wt){if(se.eatSpace())return null;var _e=se.next();return _e==="("||_e==="["?(Wt.f=Wt.inline=xe(_e==="("?")":"]"),Se.highlightFormatting&&(Wt.formatting="link-string"),Wt.linkHref=!0,ne(Wt)):"error"}var he={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function xe(se){return function(Wt,_e){var Tn=Wt.next();if(Tn===se){_e.f=_e.inline=me,Se.highlightFormatting&&(_e.formatting="link-string");var Dn=ne(_e);return _e.linkHref=!1,Dn}return Wt.match(he[se]),_e.linkHref=!0,ne(_e)}}function on(se,Wt){return se.match(/^([^\]\\]|\\.)*\]:/,!1)?(Wt.f=un,se.next(),Se.highlightFormatting&&(Wt.formatting="link"),Wt.linkText=!0,ne(Wt)):pt(se,Wt,me)}function un(se,Wt){if(se.match(/^\]:/,!0)){Wt.f=Wt.inline=pn,Se.highlightFormatting&&(Wt.formatting="link");var _e=ne(Wt);return Wt.linkText=!1,_e}return se.match(/^([^\]\\]|\\.)+/,!0),qt.linkText}function pn(se,Wt){return se.eatSpace()?null:(se.match(/^[^\s]+/,!0),se.peek()===void 0?Wt.linkTitle=!0:se.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Wt.f=Wt.inline=me,qt.linkHref+" url")}var Fn={startState:function(){return{f:Ht,prevLine:{stream:null},thisLine:{stream:null},block:Ht,htmlState:null,indentation:0,inline:me,text:$t,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(se){return{f:se.f,prevLine:se.prevLine,thisLine:se.thisLine,block:se.block,htmlState:se.htmlState&&wt.copyState(Re,se.htmlState),indentation:se.indentation,localMode:se.localMode,localState:se.localMode?wt.copyState(se.localMode,se.localState):null,inline:se.inline,text:se.text,formatting:!1,linkText:se.linkText,linkTitle:se.linkTitle,linkHref:se.linkHref,code:se.code,em:se.em,strong:se.strong,strikethrough:se.strikethrough,emoji:se.emoji,header:se.header,setext:se.setext,hr:se.hr,taskList:se.taskList,list:se.list,listStack:se.listStack.slice(0),quote:se.quote,indentedCode:se.indentedCode,trailingSpace:se.trailingSpace,trailingSpaceNewLine:se.trailingSpaceNewLine,md_inside:se.md_inside,fencedEndRE:se.fencedEndRE}},token:function(se,Wt){if(Wt.formatting=!1,se!=Wt.thisLine.stream){if(Wt.header=0,Wt.hr=!1,se.match(/^\s*$/,!0))return Ft(Wt),null;if(Wt.prevLine=Wt.thisLine,Wt.thisLine={stream:se},Wt.taskList=!1,Wt.trailingSpace=0,Wt.trailingSpaceNewLine=!1,!Wt.localState&&(Wt.f=Wt.block,Wt.f!=Vt)){var _e=se.match(/^\s*/,!0)[0].replace(/\t/g,lt).length;if(Wt.indentation=_e,Wt.indentationDiff=null,_e>0)return null}}return Wt.f(se,Wt)},innerMode:function(se){return se.block==Vt?{state:se.htmlState,mode:Re}:se.localState?{state:se.localState,mode:se.localMode}:{state:se,mode:Fn}},indent:function(se,Wt,_e){return se.block==Vt&&Re.indent?Re.indent(se.htmlState,Wt,_e):se.localState&&se.localMode.indent?se.localMode.indent(se.localState,Wt,_e):wt.Pass},blankLine:Ft,getType:ne,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Fn},"xml"),wt.defineMIME("text/markdown","markdown"),wt.defineMIME("text/x-markdown","markdown")})},98101:function(Qe,gn,Qt){(function(wt){wt(Qt(89780))})(function(wt){"use strict";wt.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var de=0;de-1&&Re.substring(qt+1,Re.length);if(Ce)return wt.findModeByExtension(Ce)},wt.findModeByName=function(Re){Re=Re.toLowerCase();for(var ue=0;ue0?kt.cmdState[kt.cmdState.length-1]:null}function Me(kt){var et=kt.cmdState.pop();et&&et.closeBracket()}function qt(kt){for(var et=kt.cmdState,nt=et.length-1;nt>=0;nt--){var gt=et[nt];if(gt.name!="DEFAULT")return gt}return{styleIdentifier:function(){return null}}}function Ce(kt,et,nt){return function(){this.name=kt,this.bracketNo=0,this.style=et,this.styles=nt,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var ge={};ge.importmodule=Ce("importmodule","tag",["string","builtin"]),ge.documentclass=Ce("documentclass","tag",["","atom"]),ge.usepackage=Ce("usepackage","tag",["atom"]),ge.begin=Ce("begin","tag",["atom"]),ge.end=Ce("end","tag",["atom"]),ge.label=Ce("label","tag",["atom"]),ge.ref=Ce("ref","tag",["atom"]),ge.eqref=Ce("eqref","tag",["atom"]),ge.cite=Ce("cite","tag",["atom"]),ge.bibitem=Ce("bibitem","tag",["atom"]),ge.Bibitem=Ce("Bibitem","tag",["atom"]),ge.RBibitem=Ce("RBibitem","tag",["atom"]),ge.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function pe(kt,et){kt.f=et}function ae(kt,et){var nt;if(kt.match(/^\\[a-zA-Z@]+/)){var gt=kt.current().slice(1);return nt=ge.hasOwnProperty(gt)?ge[gt]:ge.DEFAULT,nt=new nt,Re(et,nt),pe(et,De),nt.style}if(kt.match(/^\\[$&%#{}_]/)||kt.match(/^\\[,;!\/\\]/))return"tag";if(kt.match("\\["))return pe(et,function(pt,vt){return Te(pt,vt,"\\]")}),"keyword";if(kt.match("\\("))return pe(et,function(pt,vt){return Te(pt,vt,"\\)")}),"keyword";if(kt.match("$$"))return pe(et,function(pt,vt){return Te(pt,vt,"$$")}),"keyword";if(kt.match("$"))return pe(et,function(pt,vt){return Te(pt,vt,"$")}),"keyword";var lt=kt.next();if(lt=="%")return kt.skipToEnd(),"comment";if(lt=="}"||lt=="]"){if(nt=ue(et),nt)nt.closeBracket(lt),pe(et,De);else return"error";return"bracket"}else return lt=="{"||lt=="["?(nt=ge.DEFAULT,nt=new nt,Re(et,nt),"bracket"):/\d/.test(lt)?(kt.eatWhile(/[\w.%]/),"atom"):(kt.eatWhile(/[\w\-_]/),nt=qt(et),nt.name=="begin"&&(nt.argument=kt.current()),nt.styleIdentifier())}function Te(kt,et,nt){if(kt.eatSpace())return null;if(nt&&kt.match(nt))return pe(et,ae),"keyword";if(kt.match(/^\\[a-zA-Z@]+/))return"tag";if(kt.match(/^[a-zA-Z]+/))return"variable-2";if(kt.match(/^\\[$&%#{}_]/)||kt.match(/^\\[,;!\/]/)||kt.match(/^[\^_&]/))return"tag";if(kt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(kt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var gt=kt.next();return gt=="{"||gt=="}"||gt=="["||gt=="]"||gt=="("||gt==")"?"bracket":gt=="%"?(kt.skipToEnd(),"comment"):"error"}function De(kt,et){var nt=kt.peek(),gt;return nt=="{"||nt=="["?(gt=ue(et),gt.openBracket(nt),kt.eat(nt),pe(et,ae),"bracket"):/[ \t\r]/.test(nt)?(kt.eat(nt),null):(pe(et,ae),Me(et),ae(kt,et))}return{startState:function(){var kt=Se.inMathMode?function(et,nt){return Te(et,nt)}:ae;return{cmdState:[],f:kt}},copyState:function(kt){return{cmdState:kt.cmdState.slice(),f:kt.f}},token:function(kt,et){return et.f(kt,et)},blankLine:function(kt){kt.f=ae,kt.cmdState.length=0},lineComment:"%"}}),wt.defineMIME("text/x-stex","stex"),wt.defineMIME("text/x-latex","stex")})},15525:function(Qe,gn,Qt){(function(wt){wt(Qt(89780))})(function(wt){"use strict";var de={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},Se={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};wt.defineMode("xml",function(Re,ue){var Me=Re.indentUnit,qt={},Ce=ue.htmlMode?de:Se;for(var ge in Ce)qt[ge]=Ce[ge];for(var ge in ue)qt[ge]=ue[ge];var pe,ae;function Te(Zt,ke){function he(un){return ke.tokenize=un,un(Zt,ke)}var xe=Zt.next();if(xe=="<")return Zt.eat("!")?Zt.eat("[")?Zt.match("CDATA[")?he(et("atom","]]>")):null:Zt.match("--")?he(et("comment","-->")):Zt.match("DOCTYPE",!0,!0)?(Zt.eatWhile(/[\w\._\-]/),he(nt(1))):null:Zt.eat("?")?(Zt.eatWhile(/[\w\._\-]/),ke.tokenize=et("meta","?>"),"meta"):(pe=Zt.eat("/")?"closeTag":"openTag",ke.tokenize=De,"tag bracket");if(xe=="&"){var on;return Zt.eat("#")?Zt.eat("x")?on=Zt.eatWhile(/[a-fA-F\d]/)&&Zt.eat(";"):on=Zt.eatWhile(/[\d]/)&&Zt.eat(";"):on=Zt.eatWhile(/[\w\.\-:]/)&&Zt.eat(";"),on?"atom":"error"}else return Zt.eatWhile(/[^&<]/),null}Te.isInText=!0;function De(Zt,ke){var he=Zt.next();if(he==">"||he=="/"&&Zt.eat(">"))return ke.tokenize=Te,pe=he==">"?"endTag":"selfcloseTag","tag bracket";if(he=="=")return pe="equals",null;if(he=="<"){ke.tokenize=Te,ke.state=vt,ke.tagName=ke.tagStart=null;var xe=ke.tokenize(Zt,ke);return xe?xe+" tag error":"tag error"}else return/[\'\"]/.test(he)?(ke.tokenize=kt(he),ke.stringStartCol=Zt.column(),ke.tokenize(Zt,ke)):(Zt.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function kt(Zt){var ke=function(he,xe){for(;!he.eol();)if(he.next()==Zt){xe.tokenize=De;break}return"string"};return ke.isInAttribute=!0,ke}function et(Zt,ke){return function(he,xe){for(;!he.eol();){if(he.match(ke)){xe.tokenize=Te;break}he.next()}return Zt}}function nt(Zt){return function(ke,he){for(var xe;(xe=ke.next())!=null;){if(xe=="<")return he.tokenize=nt(Zt+1),he.tokenize(ke,he);if(xe==">")if(Zt==1){he.tokenize=Te;break}else return he.tokenize=nt(Zt-1),he.tokenize(ke,he)}return"meta"}}function gt(Zt,ke,he){this.prev=Zt.context,this.tagName=ke,this.indent=Zt.indented,this.startOfLine=he,(qt.doNotIndent.hasOwnProperty(ke)||Zt.context&&Zt.context.noIndent)&&(this.noIndent=!0)}function lt(Zt){Zt.context&&(Zt.context=Zt.context.prev)}function pt(Zt,ke){for(var he;;){if(!Zt.context||(he=Zt.context.tagName,!qt.contextGrabbers.hasOwnProperty(he)||!qt.contextGrabbers[he].hasOwnProperty(ke)))return;lt(Zt)}}function vt(Zt,ke,he){return Zt=="openTag"?(he.tagStart=ke.column(),Ct):Zt=="closeTag"?Ft:vt}function Ct(Zt,ke,he){return Zt=="word"?(he.tagName=ke.current(),ae="tag",_t):qt.allowMissingTagName&&Zt=="endTag"?(ae="tag bracket",_t(Zt,ke,he)):(ae="error",Ct)}function Ft(Zt,ke,he){if(Zt=="word"){var xe=ke.current();return he.context&&he.context.tagName!=xe&&qt.implicitlyClosed.hasOwnProperty(he.context.tagName)&<(he),he.context&&he.context.tagName==xe||qt.matchClosing===!1?(ae="tag",Ht):(ae="tag error",Vt)}else return qt.allowMissingTagName&&Zt=="endTag"?(ae="tag bracket",Ht(Zt,ke,he)):(ae="error",Vt)}function Ht(Zt,ke,he){return Zt!="endTag"?(ae="error",Ht):(lt(he),vt)}function Vt(Zt,ke,he){return ae="error",Ht(Zt,ke,he)}function _t(Zt,ke,he){if(Zt=="word")return ae="attribute",ne;if(Zt=="endTag"||Zt=="selfcloseTag"){var xe=he.tagName,on=he.tagStart;return he.tagName=he.tagStart=null,Zt=="selfcloseTag"||qt.autoSelfClosers.hasOwnProperty(xe)?pt(he,xe):(pt(he,xe),he.context=new gt(he,xe,on==he.indented)),vt}return ae="error",_t}function ne(Zt,ke,he){return Zt=="equals"?$t:(qt.allowMissing||(ae="error"),_t(Zt,ke,he))}function $t(Zt,ke,he){return Zt=="string"?me:Zt=="word"&&qt.allowUnquoted?(ae="string",_t):(ae="error",_t(Zt,ke,he))}function me(Zt,ke,he){return Zt=="string"?me:_t(Zt,ke,he)}return{startState:function(Zt){var ke={tokenize:Te,state:vt,indented:Zt||0,tagName:null,tagStart:null,context:null};return Zt!=null&&(ke.baseIndent=Zt),ke},token:function(Zt,ke){if(!ke.tagName&&Zt.sol()&&(ke.indented=Zt.indentation()),Zt.eatSpace())return null;pe=null;var he=ke.tokenize(Zt,ke);return(he||pe)&&he!="comment"&&(ae=null,ke.state=ke.state(pe||he,Zt,ke),ae&&(he=ae=="error"?he+" error":ae)),he},indent:function(Zt,ke,he){var xe=Zt.context;if(Zt.tokenize.isInAttribute)return Zt.tagStart==Zt.indented?Zt.stringStartCol+1:Zt.indented+Me;if(xe&&xe.noIndent)return wt.Pass;if(Zt.tokenize!=De&&Zt.tokenize!=Te)return he?he.match(/^(\s*)/)[0].length:0;if(Zt.tagName)return qt.multilineTagIndentPastTag!==!1?Zt.tagStart+Zt.tagName.length+2:Zt.tagStart+Me*(qt.multilineTagIndentFactor||1);if(qt.alignCDATA&&/$/,blockCommentStart:"",configuration:qt.htmlMode?"html":"xml",helperType:qt.htmlMode?"html":"xml",skipAttribute:function(Zt){Zt.state==$t&&(Zt.state=_t)},xmlCurrentTag:function(Zt){return Zt.tagName?{name:Zt.tagName,close:Zt.type=="closeTag"}:null},xmlCurrentContext:function(Zt){for(var ke=[],he=Zt.context;he;he=he.prev)he.tagName&&ke.push(he.tagName);return ke.reverse()}}}),wt.defineMIME("text/xml","xml"),wt.defineMIME("application/xml","xml"),wt.mimeModes.hasOwnProperty("text/html")||wt.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(Qe,gn,Qt){"use strict";Qt.d(gn,{$u:function(){return ge},BD:function(){return ni},E9:function(){return Ce},FF:function(){return Qi},FJ:function(){return vt},Hn:function(){return pt},KX:function(){return Ft},NB:function(){return Ot},S0:function(){return re},UL:function(){return pe},Vk:function(){return lt},Vm:function(){return St},YI:function(){return An},ZA:function(){return Se},Zt:function(){return ae},al:function(){return gi},bn:function(){return yi},bx:function(){return qe},g2:function(){return mi},h1:function(){return $t},hD:function(){return kn},l4:function(){return Me},rU:function(){return Et},s_:function(){return vi},uz:function(){return Pn},z6:function(){return Te}}),Qe=Qt.hmd(Qe),function(){var Pt;function Xo(a){var y=0;return function(){return yx&&(x=Math.max(0,b+x)),(E==null||E>b)&&(E=b),E=Number(E),0>E&&(E=Math.max(0,b+E)),x=Number(x||0);x=a.length?a.push(x):a.splice(y,0,x):ee("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function to(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):ee("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function Jn(){var a=Ii.pop();return a===void 0?[]:a}function ei(a){a.length=0,Ii.push(a)}function Gn(a){if(typeof a=="function"){if(a.className)return a.className;if(a.name)return a.name;var y=a.toString();if(y=y.substring(9,y.indexOf("(")).trim(),y!=="")return a._className=y}else if(Pe(a)&&a.constructor)return Gn(a.constructor);return typeof a}function _n(a){var y=a;return Pe(a)&&(a.text?y=a.text:a.name?y=a.name:a.key!==void 0?y=a.key:a.id!==void 0?y=a.id:a.constructor===Object&&(a.Text?y=a.Text:a.Name?y=a.Name:a.Key!==void 0?y=a.Key:a.Id!==void 0?y=a.Id:a.ID!==void 0&&(y=a.ID))),y===void 0?"undefined":y===null?"null":y.toString()}function Bi(a,y){if(a.hasOwnProperty(y))return!0;for(a=Object.getPrototypeOf(a);a&&a!==Function;){if(a.hasOwnProperty(y))return!0;var x=a.CA;if(x&&x[y])return!0;a=Object.getPrototypeOf(a)}return!1}function Ui(a,y,x){Object.defineProperty(no.prototype,a,{get:y,set:x})}function Oe(a){for(var y=[],x=0;256>x;x++)y["0123456789abcdef".charAt(x>>4)+"0123456789abcdef".charAt(x&15)]=String.fromCharCode(x);a.length%2&&(a="0"+a),x=[];for(var E=0,b=0;bx;x++)y[x]=x;for(x=E=0;256>x;x++)E=(E+y[x]+119)%256,b=y[x],y[x]=y[E],y[E]=b;E=x=0;for(var z="",tt=0;tt-1||z.indexOf("\xA9 1998-2021 Northwoods Software")>-1||z.indexOf("Not for distribution or production use")>-1||z.indexOf("gojs.net")>-1?"":z}var io=Ke.navigator!==void 0&&0this.key)return!1;a=a.s;var y=a.length,x=++this.Za,E=this.qf;if(E!==null)for(;xthis.key)return!1;var y=--this.Za;return 0<=y?(this.key=y,this.value=a.s[y],!0):(this.de(),!1)},mo.prototype.Ad=function(){return this.next()},mo.prototype.first=function(){var a=this.Bb;this.qa=a.Ja;var y=a.s;return this.Za=a=y.length-1,0<=a?(y=y[a],this.key=a,this.value=y):null},mo.prototype.any=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(a(y[x]))return!0;return!1},mo.prototype.all=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(!a(y[x]))return!1;return!0},mo.prototype.each=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)a(y[x]);return this},mo.prototype.map=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--)x.push(a(y[E]));return a=new He,a.s=x,a.xb(),a.iterator},mo.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--){var b=y[E];a(b)&&x.push(b)}return a=new He,a.s=x,a.xb(),a.iterator},mo.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},mo.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},fe.Object.defineProperties(mo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),mo.prototype.first=mo.prototype.first,mo.prototype.hasNext=mo.prototype.Ad,mo.prototype.next=mo.prototype.next,mo.prototype.reset=mo.prototype.reset,mo.className="ListIteratorBackwards";function He(a){eo(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&ee("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Pt=He.prototype,Pt.xb=function(){var a=this.Ja;a++,999999999a||a>=y.length)&&Zn(a,"0 <= i < length",He,"elt:i"),y[a]},Pt.get=function(a){return this.M(a)},Pt.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Zn(a,"0 <= i < length",He,"setElt:i"),this._isFrozen&&mn(this,a),x[a]=y},Pt.set=function(a,y){this.cd(a,y)},Pt.first=function(){var a=this.s;return a.length===0?null:a[0]},Pt.jc=function(){var a=this.s,y=a.length;return 0a&&Zn(a,">= 0",He,"insertAt:i"),this._isFrozen&&mn(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Pt.remove=function(a){if(a===null)return!1;this._isFrozen&&mn(this,a);var y=this.s;return a=y.indexOf(a),a===-1?!1:(a===y.length-1?y.pop():y.splice(a,1),this.xb(),!0)},Pt.delete=function(a){return this.remove(a)},Pt.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Zn(a,"0 <= i < length",He,"removeAt:i"),this._isFrozen&&mn(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Pt.removeRange=function(a,y){var x=this.s,E=x.length;if(0>a)a=0;else if(a>=E)return this;if(0>y)return this;if(y>=E&&(y=E-1),a>y)return this;this._isFrozen&&mn(this);for(var b=a,z=y+1;z=z)return this;if((0>y||y>=b-1)&&Zn(y,"0 <= from < length",He,"sortRange:from"),z===2)return x=E[y],b=E[y+1],0=b)E.sort(a);else for(y=E.slice(0,x),y.sort(a),a=0;a=b)for(x=E.slice(y),x.sort(a),a=y;a=this.s.length)return oo;var a=this.Sa;return a!==null?(a.reset(),a):new Vi(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return oo;var a=this.Hg;return a!==null?(a.reset(),a):new mo(this)}}}),He.prototype.reverse=He.prototype.reverse,He.prototype.sortRange=He.prototype.zi,He.prototype.sort=He.prototype.sort,He.prototype.toSet=He.prototype.Iv,He.prototype.toArray=He.prototype.Fa,He.prototype.removeRange=He.prototype.removeRange,He.prototype.removeAt=He.prototype.mb,He.prototype.delete=He.prototype.delete,He.prototype.remove=He.prototype.remove,He.prototype.insertAt=He.prototype.Gb,He.prototype.pop=He.prototype.pop,He.prototype.last=He.prototype.jc,He.prototype.first=He.prototype.first,He.prototype.set=He.prototype.set,He.prototype.setElt=He.prototype.cd,He.prototype.get=He.prototype.get,He.prototype.elt=He.prototype.M,He.prototype.indexOf=He.prototype.indexOf,He.prototype.has=He.prototype.has,He.prototype.contains=He.prototype.contains,He.prototype.clear=He.prototype.clear,He.prototype.addAll=He.prototype.addAll,He.prototype.push=He.prototype.push,He.prototype.add=He.prototype.add,He.prototype.thaw=He.prototype.ka,He.prototype.freeze=He.prototype.freeze,He.className="List";function qi(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}qi.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},qi.prototype.next=function(){var a=this.eg;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},qi.prototype.Ad=function(){return this.next()},qi.prototype.first=function(){var a=this.eg;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},qi.prototype.any=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},qi.prototype.all=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},qi.prototype.each=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},qi.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new He;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},qi.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new He;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},qi.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},qi.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},fe.Object.defineProperties(qi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),qi.prototype.first=qi.prototype.first,qi.prototype.hasNext=qi.prototype.Ad,qi.prototype.next=qi.prototype.next,qi.prototype.reset=qi.prototype.reset,qi.className="SetIterator";function ze(a){eo(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&ee("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Pt=ze.prototype,Pt.xb=function(){var a=this.Ja;a++,999999999=this.Sb)return oo;var a=this.Sa;return a!==null?(a.reset(),a):new qi(this)}}}),ze.prototype.toList=ze.prototype.Hv,ze.prototype.toArray=ze.prototype.Fa,ze.prototype.clear=ze.prototype.clear,ze.prototype.retainAll=ze.prototype.pA,ze.prototype.removeAll=ze.prototype.hp,ze.prototype.delete=ze.prototype.delete,ze.prototype.remove=ze.prototype.remove,ze.prototype.first=ze.prototype.first,ze.prototype.containsAny=ze.prototype.Ty,ze.prototype.containsAll=ze.prototype.Sy,ze.prototype.has=ze.prototype.has,ze.prototype.contains=ze.prototype.contains,ze.prototype.addAll=ze.prototype.addAll,ze.prototype.add=ze.prototype.add,ze.prototype.thaw=ze.prototype.ka,ze.prototype.freeze=ze.prototype.freeze;var Jr=1;ze.className="Set",ze.uniqueHash=eo,ze.hashIdUnique=Or,ze.hashId=Zo;function Jo(a){this.ma=a,this.qa=a.Ja,this.sa=null}Jo.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Jo.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=this.key=a=y.key,!0):(this.de(),!1)},Jo.prototype.Ad=function(){return this.next()},Jo.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.value=this.key=a=a.key):null},Jo.prototype.any=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Jo.prototype.all=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Jo.prototype.each=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;)a(y.key),y=y.va;return this},Jo.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new He;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},Jo.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new He;for(y=y.ea;y!==null;){var E=y.key;a(E)&&x.add(E),y=y.va}return x.iterator},Jo.prototype.de=function(){this.value=this.key=null,this.qa=-1},Jo.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},fe.Object.defineProperties(Jo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Jo.prototype.first=Jo.prototype.first,Jo.prototype.hasNext=Jo.prototype.Ad,Jo.prototype.next=Jo.prototype.next,Jo.prototype.reset=Jo.prototype.reset,Jo.className="MapKeySetIterator";function Oi(a){ze.call(this),eo(this),this._isFrozen=!0,this.ma=a}Ae(Oi,ze),Pt=Oi.prototype,Pt.freeze=function(){return this},Pt.ka=function(){return this},Pt.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Pt.add=function(){ee("This Set is read-only: "+this.toString())},Pt.contains=function(a){return this.ma.contains(a)},Pt.has=function(a){return this.contains(a)},Pt.remove=function(){ee("This Set is read-only: "+this.toString())},Pt.delete=function(a){return this.remove(a)},Pt.clear=function(){ee("This Set is read-only: "+this.toString())},Pt.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Oi.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Oi.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Oi.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Oi.prototype.map=function(a){for(var y=new ze,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},Oi.prototype.filter=function(a){for(var y=new ze,x=this.ma.ea;x!==null;){var E=x.key;a(E)&&y.add(E),x=x.va}return y},Oi.prototype.copy=function(){return new Oi(this.ma)},Oi.prototype.Iv=function(){var a=new ze,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Oi.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),x=0,E;for(E in a)y[x]=a[E].key,x++;return y},Oi.prototype.Hv=function(){var a=new He,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},fe.Object.defineProperties(Oi.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?oo:new Jo(this.ma)}}}),Oi.prototype.toList=Oi.prototype.Hv,Oi.prototype.toArray=Oi.prototype.Fa,Oi.prototype.toSet=Oi.prototype.Iv,Oi.prototype.first=Oi.prototype.first,Oi.prototype.clear=Oi.prototype.clear,Oi.prototype.delete=Oi.prototype.delete,Oi.prototype.remove=Oi.prototype.remove,Oi.prototype.has=Oi.prototype.has,Oi.prototype.contains=Oi.prototype.contains,Oi.prototype.add=Oi.prototype.add,Oi.prototype.thaw=Oi.prototype.ka,Oi.prototype.freeze=Oi.prototype.freeze,Oi.className="MapKeySet";function Bo(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}Bo.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},Bo.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},Bo.prototype.Ad=function(){return this.next()},Bo.prototype.first=function(){var a=this.ma;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},Bo.prototype.any=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Bo.prototype.all=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Bo.prototype.each=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},Bo.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new He;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Bo.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new He;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},Bo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},Bo.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},fe.Object.defineProperties(Bo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Bo.prototype.first=Bo.prototype.first,Bo.prototype.hasNext=Bo.prototype.Ad,Bo.prototype.next=Bo.prototype.next,Bo.prototype.reset=Bo.prototype.reset,Bo.className="MapValueSetIterator";function Sa(a,y){this.key=a,this.value=y,this.ll=this.va=null}Sa.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Sa.className="KeyValuePair";function dr(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}dr.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},dr.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.key=y.key,this.value=y.value,!0):(this.de(),!1)},dr.prototype.Ad=function(){return this.next()},dr.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.key=a.key,this.value=a.value,a):null},dr.prototype.any=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},dr.prototype.all=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},dr.prototype.each=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y),y=y.va;return this},dr.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new He;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},dr.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new He;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},dr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},dr.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},fe.Object.defineProperties(dr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),dr.prototype.first=dr.prototype.first,dr.prototype.hasNext=dr.prototype.Ad,dr.prototype.next=dr.prototype.next,dr.prototype.reset=dr.prototype.reset,dr.className="MapIterator";function xn(a){eo(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.jf=this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&ee("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Pt=xn.prototype,Pt.xb=function(){var a=this.Ja;a++,999999999=this.count)return oo;var a=this.Sa;return a!==null?(a.reset(),a):new dr(this)}},iteratorKeys:{get:function(){return 0>=this.count?oo:new Jo(this)}},iteratorValues:{get:function(){if(0>=this.count)return oo;var a=this.jf;return a!==null?(a.reset(),a):new Bo(this)}}}),xn.prototype.toKeySet=xn.prototype.Lf,xn.prototype.toArray=xn.prototype.Fa,xn.prototype.clear=xn.prototype.clear,xn.prototype.delete=xn.prototype.delete,xn.prototype.remove=xn.prototype.remove,xn.prototype.get=xn.prototype.get,xn.prototype.getValue=xn.prototype.I,xn.prototype.has=xn.prototype.has,xn.prototype.contains=xn.prototype.contains,xn.prototype.first=xn.prototype.first,xn.prototype.addAll=xn.prototype.addAll,xn.prototype.set=xn.prototype.set,xn.prototype.add=xn.prototype.add,xn.prototype.thaw=xn.prototype.ka,xn.prototype.freeze=xn.prototype.freeze,xn.className="Map";function jt(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):ee("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var Dr,qr,kl,xa,Il;jt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},jt.prototype.h=function(a,y){return this.x=a,this.y=y,this},jt.prototype.sg=function(a,y){return this.x=a,this.y=y,this},jt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},jt.prototype.copy=function(){var a=new jt;return a.x=this.x,a.y=this.y,a},Pt=jt.prototype,Pt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Pt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Pt.freeze=function(){return this._isFrozen=!0,this},Pt.ka=function(){return Object.isFrozen(this)&&ee("cannot thaw constant: "+this),this._isFrozen=!1,this};function xu(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new jt(x,b)}return new jt}function td(a){return a.x.toString()+" "+a.y.toString()}Pt.toString=function(){return"Point("+this.x+","+this.y+")"},Pt.D=function(a){return a instanceof jt?this.x===a.x&&this.y===a.y:!1},Pt.hi=function(a,y){return this.x===a&&this.y===y},Pt.Xa=function(a){return Jt.B(this.x,a.x)&&Jt.B(this.y,a.y)},Pt.add=function(a){return this.x+=a.x,this.y+=a.y,this},Pt.re=function(a){return this.x-=a.x,this.y-=a.y,this},Pt.offset=function(a,y){return this.x+=a,this.y+=y,this},jt.prototype.rotate=function(a){if(a===0)return this;var y=this.x,x=this.y;if(y===0&&x===0)return this;if(360<=a?a-=360:0>a&&(a+=360),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));return this.x=a*y-E*x,this.y=E*y+a*x,this},Pt=jt.prototype,Pt.scale=function(a,y){return this.x*=a,this.y*=y,this},Pt.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Pt.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Pt.normalize=function(){var a=this.x,y=this.y,x=Math.sqrt(a*a+y*y);return 0y?270:0;if(y===0)return 0a?x=0>y?x+180:180-x:0>y&&(x=360-x),x}Pt.Ry=function(a,y){return Jt.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Pt.fA=function(a,y,x,E){return Jt.qh(a,y,x,E,this.x,this.y,this),this},Pt.gA=function(a,y){return Jt.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Pt.uA=function(a,y,x,E){return Jt.No(this.x,this.y,a,y,x,E,this),this},Pt.vA=function(a,y){return Jt.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Pt.xi=function(a,y){return this.x=a.x+y.x*a.width+y.offsetX,this.y=a.y+y.y*a.height+y.offsetY,this},Pt.yi=function(a,y,x,E,b){return this.x=a+b.x*x+b.offsetX,this.y=y+b.y*E+b.offsetY,this},Pt.transform=function(a){return a.Ga(this),this};function Lo(a,y){return y.Cd(a),a}function qo(a,y,x,E,b,z){var tt=b-x,ot=z-E,rt=tt*tt+ot*ot;x-=a,E-=y;var at=-x*tt-E*ot;return 0>=at||at>=rt?(tt=b-a,ot=z-y,Math.min(x*x+E*E,tt*tt+ot*ot)):(a=tt*E-ot*x,a*a/rt)}function ra(a,y,x,E){return a=x-a,y=E-y,a*a+y*y}function hi(a,y,x,E){return a=x-a,y=E-y,a===0?0y?270:0:y===0?0a?E=0>y?E+180:180-E:0>y&&(E=360-E),E)}Pt.w=function(){return isFinite(this.x)&&isFinite(this.y)},jt.alloc=function(){var a=Un.pop();return a===void 0?new jt:a},jt.allocAt=function(a,y){var x=Un.pop();return x===void 0?new jt(a,y):(x.x=a,x.y=y,x)},jt.free=function(a){Un.push(a)},jt.prototype.isReal=jt.prototype.w,jt.prototype.setSpot=jt.prototype.yi,jt.prototype.setRectSpot=jt.prototype.xi,jt.prototype.snapToGridPoint=jt.prototype.vA,jt.prototype.snapToGrid=jt.prototype.uA,jt.prototype.projectOntoLineSegmentPoint=jt.prototype.gA,jt.prototype.projectOntoLineSegment=jt.prototype.fA,jt.intersectingLineSegments=function(a,y,x,E,b,z,tt,ot){return Jt.Rl(a,y,x,E,b,z,tt,ot)},jt.prototype.compareWithLineSegmentPoint=jt.prototype.Ry,jt.compareWithLineSegment=function(a,y,x,E,b,z){return Jt.Fl(a,y,x,E,b,z)},jt.prototype.direction=jt.prototype.direction,jt.prototype.directionPoint=jt.prototype.ab,jt.prototype.normalize=jt.prototype.normalize,jt.prototype.distanceSquared=jt.prototype.zd,jt.prototype.distanceSquaredPoint=jt.prototype.Bf,jt.prototype.scale=jt.prototype.scale,jt.prototype.rotate=jt.prototype.rotate,jt.prototype.offset=jt.prototype.offset,jt.prototype.subtract=jt.prototype.re,jt.prototype.add=jt.prototype.add,jt.prototype.equalsApprox=jt.prototype.Xa,jt.prototype.equalTo=jt.prototype.hi,jt.prototype.equals=jt.prototype.D,jt.prototype.set=jt.prototype.set,jt.prototype.setTo=jt.prototype.sg;var Un=[];jt.className="Point",jt.parse=xu,jt.stringify=td,jt.distanceLineSegmentSquared=qo,jt.distanceSquared=ra,jt.direction=hi,jt.Origin=Dr=new jt(0,0).ja(),jt.InfiniteTopLeft=qr=new jt(-1/0,-1/0).ja(),jt.InfiniteBottomRight=kl=new jt(1/0,1/0).ja(),jt.SixPoint=xa=new jt(6,6).ja(),jt.NoPoint=Il=new jt(NaN,NaN).ja(),jt.parse=xu,jt.stringify=td,jt.distanceLineSegmentSquared=qo,jt.distanceSquared=ra,jt.direction=hi;function We(a,y){a===void 0?this.height=this.width=0:typeof a=="number"&&(0<=a||isNaN(a))&&typeof y=="number"&&(0<=y||isNaN(y))?(this.width=a,this.height=y):ee("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var $n,ji,Oo,_o,Wo,vr,$o;We.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},We.prototype.h=function(a,y){return this.width=a,this.height=y,this},We.prototype.sg=function(a,y){return this.width=a,this.height=y,this},We.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},We.prototype.copy=function(){var a=new We;return a.width=this.width,a.height=this.height,a},Pt=We.prototype,Pt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Pt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Pt.freeze=function(){return this._isFrozen=!0,this},Pt.ka=function(){return Object.isFrozen(this)&&ee("cannot thaw constant: "+this),this._isFrozen=!1,this};function Pa(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new We(x,b)}return new We}function Os(a){return a.width.toString()+" "+a.height.toString()}Pt.toString=function(){return"Size("+this.width+","+this.height+")"},Pt.D=function(a){return a instanceof We?this.width===a.width&&this.height===a.height:!1},Pt.hi=function(a,y){return this.width===a&&this.height===y},Pt.Xa=function(a){return Jt.B(this.width,a.width)&&Jt.B(this.height,a.height)},Pt.Bc=function(a,y){return a=this.width+a,this.width=0<=a?a:0,y=this.height+y,this.height=0<=y?y:0,this},Pt.w=function(){return isFinite(this.width)&&isFinite(this.height)},We.alloc=function(){var a=Fl.pop();return a===void 0?new We:a},We.free=function(a){Fl.push(a)},We.prototype.isReal=We.prototype.w,We.prototype.inflate=We.prototype.Bc,We.prototype.equalsApprox=We.prototype.Xa,We.prototype.equalTo=We.prototype.hi,We.prototype.equals=We.prototype.D,We.prototype.set=We.prototype.set,We.prototype.setTo=We.prototype.sg;var Fl=[];We.className="Size",We.parse=Pa,We.stringify=Os,We.ZeroSize=$n=new We(0,0).ja(),We.OneSize=ji=new We(1,1).ja(),We.SixSize=Oo=new We(6,6).ja(),We.EightSize=_o=new We(8,8).ja(),We.TenSize=Wo=new We(10,10).ja(),We.InfiniteSize=vr=new We(1/0,1/0).ja(),We.NoSize=$o=new We(NaN,NaN).ja(),We.parse=Pa,We.stringify=Os;function ce(a,y,x,E){a===void 0?this.height=this.width=this.y=this.x=0:typeof a=="number"&&typeof y=="number"&&typeof x=="number"&&(0<=x||isNaN(x))&&typeof E=="number"&&(0<=E||isNaN(E))?(this.x=a,this.y=y,this.width=x,this.height=E):a instanceof jt?(x=a.x,a=a.y,y instanceof jt?(E=y.x,y=y.y,this.x=Math.min(x,E),this.y=Math.min(a,y),this.width=Math.abs(x-E),this.height=Math.abs(a-y)):y instanceof We?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):ee("Incorrect second argument supplied to Rect constructor "+y)):ee("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}Pt=ce.prototype,Pt.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Pt.h=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this};function Bs(a,y,x){a.width=y,a.height=x}Pt.sg=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this},Pt.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Pt.dd=function(a){return this.x=a.x,this.y=a.y,this},Pt.tA=function(a){return this.width=a.width,this.height=a.height,this},ce.prototype.copy=function(){var a=new ce;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Pt=ce.prototype,Pt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Pt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Pt.freeze=function(){return this._isFrozen=!0,this},Pt.ka=function(){return Object.isFrozen(this)&&ee("cannot thaw constant: "+this),this._isFrozen=!1,this};function Pu(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;(E=a[y++])&&(b=parseFloat(E));for(var z=0;a[y]==="";)y++;(E=a[y++])&&(z=parseFloat(E));for(var tt=0;a[y]==="";)y++;return(E=a[y++])&&(tt=parseFloat(E)),new ce(x,b,z,tt)}return new ce}function ja(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Pt.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Pt.D=function(a){return a instanceof ce?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Pt.hi=function(a,y,x,E){return this.x===a&&this.y===y&&this.width===x&&this.height===E},Pt.Xa=function(a){return Jt.B(this.x,a.x)&&Jt.B(this.y,a.y)&&Jt.B(this.width,a.width)&&Jt.B(this.height,a.height)};function wu(a,y){return Jt.$(a.x,y.x)&&Jt.$(a.y,y.y)&&Jt.$(a.width,y.width)&&Jt.$(a.height,y.height)}Pt.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Pt.Re=function(a){return this.x<=a.x&&a.x+a.width<=this.x+this.width&&this.y<=a.y&&a.y+a.height<=this.y+this.height},Pt.contains=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),this.x<=a&&a+x<=this.x+this.width&&this.y<=y&&y+E<=this.y+this.height},Pt.offset=function(a,y){return this.x+=a,this.y+=y,this},Pt.Bc=function(a,y){return tr(this,y,a,y,a)},Pt.Co=function(a){return tr(this,a.top,a.right,a.bottom,a.left)},Pt.Fv=function(a){return tr(this,-a.top,-a.right,-a.bottom,-a.left)},Pt.Hz=function(a,y,x,E){return tr(this,a,y,x,E)};function tr(a,y,x,E,b){var z=a.width;return x+b<=-z?(a.x+=z/2,a.width=0):(a.x-=b,a.width+=x+b),x=a.height,y+E<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+E),a}Pt.Ex=function(a){return _a(this,a.x,a.y,a.width,a.height)},Pt.Uu=function(a,y,x,E){return _a(this,a,y,x,E)};function _a(a,y,x,E,b){var z=Math.max(a.x,y),tt=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+E),x=Math.min(a.y+a.height,x+b),a.x=z,a.y=tt,a.width=Math.max(0,y-z),a.height=Math.max(0,x-tt),a}Pt.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Pt.Vu=function(a,y,x,E){var b=this.width,z=this.x;return b!==1/0&&x!==1/0&&(b+=z,x+=a,isNaN(x)||isNaN(b)||z>x||a>b)?!1:(a=this.height,x=this.y,!(a!==1/0&&E!==1/0&&(a+=x,E+=y,isNaN(E)||isNaN(a)||x>E||y>a)))};function $a(a,y){var x=a.width,E=a.x,b=y.x-10;return E>y.width+10+10+b||b>x+E?!1:(x=a.height,a=a.y,E=y.y-10,!(a>y.height+10+10+E||E>x+a))}Pt.Ye=function(a){return Co(this,a.x,a.y,0,0)},Pt.ed=function(a){return Co(this,a.x,a.y,a.width,a.height)},Pt.Kv=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),Co(this,a,y,x,E)};function Co(a,y,x,E,b){var z=Math.min(a.x,y),tt=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+E),x=Math.max(a.y+a.height,x+b),a.x=z,a.y=tt,a.width=y-z,a.height=x-tt,a}Pt.yi=function(a,y,x){return this.x=a-x.offsetX-x.x*this.width,this.y=y-x.offsetY-x.y*this.height,this};function Lr(a,y,x,E,b,z,tt,ot){return tt===void 0&&(tt=0),ot===void 0&&(ot=0),a<=b&&b+tt<=a+x&&y<=z&&z+ot<=y+E}function Cu(a,y,x,E,b,z,tt,ot){return a>tt+b||b>x+a?!1:!(y>ot+z||z>E+y)}Pt.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Pt.Mz=function(){return this.width===0&&this.height===0},ce.alloc=function(){var a=sa.pop();return a===void 0?new ce:a},ce.allocAt=function(a,y,x,E){var b=sa.pop();return b===void 0?new ce(a,y,x,E):b.h(a,y,x,E)},ce.free=function(a){sa.push(a)},fe.Object.defineProperties(ce.prototype,{left:{get:function(){return this.x},set:function(a){this.x=a}},top:{get:function(){return this.y},set:function(a){this.y=a}},right:{get:function(){return this.x+this.width},set:function(a){this.x+=a-(this.x+this.width)}},bottom:{get:function(){return this.y+this.height},set:function(a){this.y+=a-(this.y+this.height)}},position:{get:function(){return new jt(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new We(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new jt(this.x+this.width/2,this.y+this.height/2)},set:function(a){this.x=a.x-this.width/2,this.y=a.y-this.height/2}},centerX:{get:function(){return this.x+this.width/2},set:function(a){this.x=a-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(a){this.y=a-this.height/2}}}),ce.prototype.isEmpty=ce.prototype.Mz,ce.prototype.isReal=ce.prototype.w,ce.intersectsLineSegment=function(a,y,x,E,b,z,tt,ot){return Jt.Fx(a,y,x,E,b,z,tt,ot)},ce.prototype.setSpot=ce.prototype.yi,ce.prototype.union=ce.prototype.Kv,ce.prototype.unionRect=ce.prototype.ed,ce.prototype.unionPoint=ce.prototype.Ye,ce.prototype.intersects=ce.prototype.Vu,ce.prototype.intersectsRect=ce.prototype.Yc,ce.prototype.intersect=ce.prototype.Uu,ce.prototype.intersectRect=ce.prototype.Ex,ce.prototype.grow=ce.prototype.Hz,ce.prototype.subtractMargin=ce.prototype.Fv,ce.prototype.addMargin=ce.prototype.Co,ce.prototype.inflate=ce.prototype.Bc,ce.prototype.offset=ce.prototype.offset,ce.prototype.contains=ce.prototype.contains,ce.prototype.containsRect=ce.prototype.Re,ce.prototype.containsPoint=ce.prototype.ca,ce.prototype.equalsApprox=ce.prototype.Xa,ce.prototype.equalTo=ce.prototype.hi,ce.prototype.equals=ce.prototype.D,ce.prototype.setSize=ce.prototype.tA,ce.prototype.setPoint=ce.prototype.dd,ce.prototype.set=ce.prototype.set,ce.prototype.setTo=ce.prototype.sg;var _r=null,hh=null,sa=[];ce.className="Rect",ce.parse=Pu,ce.stringify=ja,ce.contains=Lr,ce.intersects=Cu,ce.ZeroRect=_r=new ce(0,0,0,0).ja(),ce.NoRect=hh=new ce(NaN,NaN,NaN,NaN).ja(),ce.parse=Pu,ce.stringify=ja,ce.contains=Lr,ce.intersects=Cu;function Rn(a,y,x,E){a===void 0?this.left=this.bottom=this.right=this.top=0:y===void 0?this.left=this.bottom=this.right=this.top=a:x===void 0?(this.top=a,this.right=y,this.bottom=a,this.left=y):E!==void 0?(this.top=a,this.right=y,this.bottom=x,this.left=E):ee("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}Rn.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Rn.prototype.sg=function(a,y,x,E){return this.top=a,this.right=y,this.bottom=x,this.left=E,this},Rn.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Rn.prototype.copy=function(){var a=new Rn;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Pt=Rn.prototype,Pt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Pt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Pt.freeze=function(){return this._isFrozen=!0,this},Pt.ka=function(){return Object.isFrozen(this)&&ee("cannot thaw constant: "+this),this._isFrozen=!1,this};function Dg(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=NaN;a[y]==="";)y++;var E=a[y++];if(E&&(x=parseFloat(E)),isNaN(x))return new Rn;for(var b=NaN;a[y]==="";)y++;if((E=a[y++])&&(b=parseFloat(E)),isNaN(b))return new Rn(x);for(var z=NaN;a[y]==="";)y++;if((E=a[y++])&&(z=parseFloat(E)),isNaN(z))return new Rn(x,b);for(var tt=NaN;a[y]==="";)y++;return(E=a[y++])&&(tt=parseFloat(E)),isNaN(tt)?new Rn(x,b):new Rn(x,b,z,tt)}return new Rn}function nd(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Pt.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Pt.D=function(a){return a instanceof Rn?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Pt.hi=function(a,y,x,E){return this.top===a&&this.right===y&&this.bottom===x&&this.left===E},Pt.Xa=function(a){return Jt.B(this.top,a.top)&&Jt.B(this.right,a.right)&&Jt.B(this.bottom,a.bottom)&&Jt.B(this.left,a.left)},Pt.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Rn.alloc=function(){var a=Hd.pop();return a===void 0?new Rn:a},Rn.free=function(a){Hd.push(a)},Rn.prototype.isReal=Rn.prototype.w,Rn.prototype.equalsApprox=Rn.prototype.Xa,Rn.prototype.equalTo=Rn.prototype.hi,Rn.prototype.equals=Rn.prototype.D,Rn.prototype.set=Rn.prototype.set,Rn.prototype.setTo=Rn.prototype.sg;var Ra=null,Qd=null,Hd=[];Rn.className="Margin",Rn.parse=Dg,Rn.stringify=nd,Rn.ZeroMargin=Ra=new Rn(0,0,0,0).ja(),Rn.TwoMargin=Qd=new Rn(2,2,2,2).ja(),Rn.parse=Dg,Rn.stringify=nd;function cn(a,y,x,E){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),E===void 0&&(E=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=E),this._isFrozen=!1}var er,yr,Ys,_l,Nl,pi,dh,tl,js,$r,cl,pl,Ls,wa,Ge,ri,wi,Di,uo,Fi,zo,jo,ts,Cr,Ms,ar,id,gh,ml,el,jr,vs,Mr,Er,nl,$l;cn.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},cn.prototype.sg=function(a,y,x,E){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=E,this},cn.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},cn.prototype.copy=function(){var a=new cn;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Pt=cn.prototype,Pt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Pt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Pt.freeze=function(){return this._isFrozen=!0,this},Pt.ka=function(){return Object.isFrozen(this)&&ee("cannot thaw constant: "+this),this._isFrozen=!1,this};function gr(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function bg(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return er;if(a==="TopLeft")return yr;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Ys;if(a==="TopRight")return _l;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Nl;if(a==="Center")return pi;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return dh;if(a==="BottomLeft")return tl;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return js;if(a==="BottomRight")return $r;if(a==="TopSide")return cl;if(a==="LeftSide")return pl;if(a==="RightSide")return Ls;if(a==="BottomSide")return wa;if(a==="TopBottomSides")return Ge;if(a==="LeftRightSides")return ri;if(a==="TopLeftSides")return wi;if(a==="TopRightSides")return Di;if(a==="BottomLeftSides")return uo;if(a==="BottomRightSides")return Fi;if(a==="NotTopSide")return zo;if(a==="NotLeftSide")return jo;if(a==="NotRightSide")return ts;if(a==="NotBottomSide")return Cr;if(a==="AllSides")return Ms;if(a==="Default")return ar;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E!==void 0&&0a&&(a+=360),a===0)return this;if(this.translate(y,x),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.m12*a+this.m22*E,z=this.m11*-E+this.m21*a,tt=this.m12*-E+this.m22*a;return this.m11=this.m11*a+this.m21*E,this.m12=b,this.m21=z,this.m22=tt,this.translate(-y,-x),this},Pt=Hn.prototype,Pt.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Pt.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Pt.Ga=function(a){var y=a.x,x=a.y;return a.h(y*this.m11+x*this.m21+this.dx,y*this.m12+x*this.m22+this.dy)},Pt.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=a.x,E=a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Pt.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=1.25*a.x,E=1.2*a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Pt.pp=function(a){var y=a.x,x=a.y,E=y+a.width,b=x+a.height,z=this.m11,tt=this.m12,ot=this.m21,rt=this.m22,at=this.dx,ut=this.dy,ft=y*z+x*ot+at,mt=y*tt+x*rt+ut,yt=E*z+x*ot+at,At=E*tt+x*rt+ut;return x=y*z+b*ot+at,y=y*tt+b*rt+ut,z=E*z+b*ot+at,E=E*tt+b*rt+ut,b=Math.min(ft,yt),ft=Math.max(ft,yt),yt=Math.min(mt,At),mt=Math.max(mt,At),b=Math.min(b,x),ft=Math.max(ft,x),yt=Math.min(yt,y),mt=Math.max(mt,y),b=Math.min(b,z),ft=Math.max(ft,z),yt=Math.min(yt,E),mt=Math.max(mt,E),a.h(b,yt,ft-b,mt-yt),a},Hn.alloc=function(){var a=qf.pop();return a===void 0?new Hn:a},Hn.free=function(a){qf.push(a)},Hn.prototype.transformRect=Hn.prototype.pp,Hn.prototype.transformPoint=Hn.prototype.Ga,Hn.prototype.scale=Hn.prototype.scale,Hn.prototype.translate=Hn.prototype.translate,Hn.prototype.rotate=Hn.prototype.rotate,Hn.prototype.invert=Hn.prototype.Vj,Hn.prototype.multiplyInverted=Hn.prototype.bv,Hn.prototype.multiply=Hn.prototype.multiply,Hn.prototype.reset=Hn.prototype.reset,Hn.prototype.isIdentity=Hn.prototype.ws,Hn.prototype.equals=Hn.prototype.D,Hn.prototype.setTransform=Hn.prototype.setTransform,Hn.prototype.set=Hn.prototype.set;var qf=[];Hn.className="Transform",Hn.xF="54a702f3e53909c447824c6706603faf4c";var Jt={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Jt.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);Jt.Uv=y}return 1>a?(x=1/a,2e3>=x?1/y[x|0]:Math.sqrt(a)):2e3>=a?y[a|0]:Math.sqrt(a)},B:function(a,y){return a-=y,.5>a&&-.5a&&-5e-8=b&&(b=1e-6),aut-at)if(a-x>b||x-a>b){if(z=(E-y)/(x-a)*(z-a)+y,z-b<=tt&&tt<=z+b)return!0}else return!0;else if(y-E>b||E-y>b){if(tt=(x-a)/(E-y)*(tt-y)+a,tt-b<=z&&z<=tt+b)return!0}else return!0;return!1},cs:function(a,y,x,E,b,z,tt,ot,rt,at,ut,ft){if(Jt.Yb(a,y,tt,ot,ft,x,E)&&Jt.Yb(a,y,tt,ot,ft,b,z))return Jt.Yb(a,y,tt,ot,ft,at,ut);var mt=(a+x)/2,yt=(y+E)/2,At=(x+b)/2,Bt=(E+z)/2;b=(b+tt)/2,z=(z+ot)/2,E=(mt+At)/2,x=(yt+Bt)/2,At=(At+b)/2,Bt=(Bt+z)/2;var Dt=(E+At)/2,It=(x+Bt)/2;return Jt.cs(a,y,mt,yt,E,x,Dt,It,rt,at,ut,ft)||Jt.cs(Dt,It,At,Bt,b,z,tt,ot,rt,at,ut,ft)},ax:function(a,y,x,E,b,z,tt,ot,rt){var at=(x+b)/2,ut=(E+z)/2;return rt.h((((a+x)/2+at)/2+(at+(b+tt)/2)/2)/2,(((y+E)/2+ut)/2+(ut+(z+ot)/2)/2)/2),rt},My:function(a,y,x,E,b,z,tt,ot){var rt=(x+b)/2,at=(E+z)/2;return hi(((a+x)/2+rt)/2,((y+E)/2+at)/2,(rt+(b+tt)/2)/2,(at+(z+ot)/2)/2)},Dl:function(a,y,x,E,b,z,tt,ot,rt,at){if(Jt.Yb(a,y,tt,ot,rt,x,E)&&Jt.Yb(a,y,tt,ot,rt,b,z))Co(at,a,y,0,0),Co(at,tt,ot,0,0);else{var ut=(a+x)/2,ft=(y+E)/2,mt=(x+b)/2,yt=(E+z)/2;b=(b+tt)/2,z=(z+ot)/2,E=(ut+mt)/2,x=(ft+yt)/2,mt=(mt+b)/2,yt=(yt+z)/2;var At=(E+mt)/2,Bt=(x+yt)/2;Jt.Dl(a,y,ut,ft,E,x,At,Bt,rt,at),Jt.Dl(At,Bt,mt,yt,b,z,tt,ot,rt,at)}return at},Qe:function(a,y,x,E,b,z,tt,ot,rt,at){if(Jt.Yb(a,y,tt,ot,rt,x,E)&&Jt.Yb(a,y,tt,ot,rt,b,z))at.length===0&&(at.push(a),at.push(y)),at.push(tt),at.push(ot);else{var ut=(a+x)/2,ft=(y+E)/2,mt=(x+b)/2,yt=(E+z)/2;b=(b+tt)/2,z=(z+ot)/2,E=(ut+mt)/2,x=(ft+yt)/2,mt=(mt+b)/2,yt=(yt+z)/2;var At=(E+mt)/2,Bt=(x+yt)/2;Jt.Qe(a,y,ut,ft,E,x,At,Bt,rt,at),Jt.Qe(At,Bt,mt,yt,b,z,tt,ot,rt,at)}return at},jv:function(a,y,x,E,b,z,tt,ot,rt,at){if(Jt.Yb(a,y,b,z,at,x,E))return Jt.Yb(a,y,b,z,at,ot,rt);var ut=(a+x)/2,ft=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var mt=(ut+x)/2,yt=(ft+E)/2;return Jt.jv(a,y,ut,ft,mt,yt,tt,ot,rt,at)||Jt.jv(mt,yt,x,E,b,z,tt,ot,rt,at)},OA:function(a,y,x,E,b,z,tt){return tt.h(((a+x)/2+(x+b)/2)/2,((y+E)/2+(E+z)/2)/2),tt},iv:function(a,y,x,E,b,z,tt,ot){if(Jt.Yb(a,y,b,z,tt,x,E))Co(ot,a,y,0,0),Co(ot,b,z,0,0);else{var rt=(a+x)/2,at=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ut=(rt+x)/2,ft=(at+E)/2;Jt.iv(a,y,rt,at,ut,ft,tt,ot),Jt.iv(ut,ft,x,E,b,z,tt,ot)}return ot},ep:function(a,y,x,E,b,z,tt,ot){if(Jt.Yb(a,y,b,z,tt,x,E))ot.length===0&&(ot.push(a),ot.push(y)),ot.push(b),ot.push(z);else{var rt=(a+x)/2,at=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ut=(rt+x)/2,ft=(at+E)/2;Jt.ep(a,y,rt,at,ut,ft,tt,ot),Jt.ep(ut,ft,x,E,b,z,tt,ot)}return ot},Eo:function(a,y,x,E,b,z,tt,ot,rt,at,ut,ft,mt,yt){if(Jt.Yb(a,y,tt,ot,mt,x,E)&&Jt.Yb(a,y,tt,ot,mt,b,z))return!Jt.Rl(a,y,tt,ot,rt,at,ut,ft)||(mt=(a-tt)*(at-ft)-(y-ot)*(rt-ut),mt===0)?!1:(yt.h(((a*ot-y*tt)*(rt-ut)-(a-tt)*(rt*ft-at*ut))/mt,((a*ot-y*tt)*(at-ft)-(y-ot)*(rt*ft-at*ut))/mt),!0);var At=(a+x)/2,Bt=(y+E)/2,Dt=(x+b)/2,It=(E+z)/2;b=(b+tt)/2,z=(z+ot)/2,E=(At+Dt)/2,x=(Bt+It)/2,Dt=(Dt+b)/2,It=(It+z)/2;var Rt=(E+Dt)/2,zt=(x+It)/2,Gt=1/0,Kt=!1,ie=0,Ue=0;return Jt.Eo(a,y,At,Bt,E,x,Rt,zt,rt,at,ut,ft,mt,yt)&&(a=(yt.x-rt)*(yt.x-rt)+(yt.y-at)*(yt.y-at),a=ut)return yt;if((rt>ut?rt-ut:ut-rt)<(at>ft?at-ft:ft-at)){if(ya)return yt}else if(aa)return yt;0mt&&yt--}else{At=(a+x)/2,Bt=(y+E)/2;var Dt=(x+b)/2,It=(E+z)/2;b=(b+tt)/2,z=(z+ot)/2,E=(At+Dt)/2,x=(Bt+It)/2,Dt=(Dt+b)/2,It=(It+z)/2;var Rt=(E+Dt)/2,zt=(x+It)/2;yt+=Jt.Fo(a,y,At,Bt,E,x,Rt,zt,rt,at,ut,ft,mt),yt+=Jt.Fo(Rt,zt,Dt,It,b,z,tt,ot,rt,at,ut,ft,mt)}return yt},qh:function(a,y,x,E,b,z,tt){return Jt.$(a,x)?(yy?(tt.h(a,y),!1):(tt.h(a,z),!0)):Jt.$(y,E)?(aa?(tt.h(a,y),!1):(tt.h(b,y),!0)):(b=((a-b)*(a-x)+(y-z)*(y-E))/((x-a)*(x-a)+(E-y)*(E-y)),-5e-6>b?(tt.h(a,y),!1):1.000005y?(rt.h(a,y),!1):(rt.h(a,x),!0)):(tt=(E-y)/(x-a),Jt.$(ot,tt)?(Jt.qh(a,y,x,E,b,z,rt),!1):(b=(tt*a-ot*b+z-y)/(tt-ot),Jt.$(tt,0)?(aa?(rt.h(a,y),!1):(rt.h(b,y),!0)):Jt.qh(a,y,x,E,b,tt*(b-a)+y,rt))))},MA:function(a,y,x,E,b){return Jt.Ve(x.x,x.y,E.x,E.y,a.x,a.y,y.x,y.y,b)},KA:function(a,y,x,E,b,z,tt,ot,rt,at){function ut(Dt,It){var Rt=(Dt-a)*(Dt-a)+(It-y)*(It-y);Rt(x>a?x-a:a-x)){if(mt=1-(x-b)*(x-b)/(mt*mt),0>mt)return rt;mt=Math.sqrt(mt),E=-at*mt+z,ut(x,at*mt+z),ut(x,E)}else{if(x=(E-y)/(x-a),E=1/(mt*mt)+x*x/(at*at),ot=2*x*(y-x*a)/(at*at)-2*x*z/(at*at)-2*b/(mt*mt),mt=ot*ot-4*E*(2*x*a*z/(at*at)-2*y*z/(at*at)+z*z/(at*at)+b*b/(mt*mt)-1+(y-x*a)*(y-x*a)/(at*at)),0>mt)return rt;mt=Math.sqrt(mt),at=(-ot+mt)/(2*E),ut(at,x*at-x*a+y),mt=(-ot-mt)/(2*E),ut(mt,x*mt-x*a+y)}return rt},Ff:function(a,y,x,E,b,z,tt,ot,rt){var at=1e21,ut=a,ft=y;if(Jt.Ve(a,y,a,E,b,z,tt,ot,rt)){var mt=(rt.x-b)*(rt.x-b)+(rt.y-z)*(rt.y-z);mtat},us:function(a,y,x){return Jt.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,E,b,z,tt,ot){var rt=a+x,at=y+E;return b===tt?(z=y):z===ot?(b=a):!!(Lr(a,y,x,E,b,z)||Lr(a,y,x,E,tt,ot)||Jt.Rl(a,y,rt,y,b,z,tt,ot)||Jt.Rl(rt,y,rt,at,b,z,tt,ot)||Jt.Rl(rt,at,a,at,b,z,tt,ot)||Jt.Rl(a,at,a,y,b,z,tt,ot))},Rl:function(a,y,x,E,b,z,tt,ot){return a===x&&y===E&&b===tt&&z===ot?a===b&&y===z:0>=Jt.Fl(a,y,x,E,b,z)*Jt.Fl(a,y,x,E,tt,ot)&&0>=Jt.Fl(b,z,tt,ot,a,y)*Jt.Fl(b,z,tt,ot,x,E)},Fl:function(a,y,x,E,b,z){return x-=a,E-=y,a=b-a,y=z-y,z=a*E-y*x,z===0&&(z=a*x+y*E,0z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,E,b,z){var tt=Math.PI;z||(E*=tt/180,b*=tt/180);var ot=E>b?-1:1;z=[];var rt=tt/2,at=E;if(E=Math.min(2*tt,Math.abs(b-E)),1e-5>E)return rt=at+ot*Math.min(E,rt),ot=a+x*Math.cos(at),at=y+x*Math.sin(at),a+=x*Math.cos(rt),y+=x*Math.sin(rt),x=(ot+a)/2,rt=(at+y)/2,z.push([ot,at,x,rt,x,rt,a,y]),z;for(;1e-5x,z=0>E;if(aat&&(y=.5*(ot+rt),!(y===ot||y===rt));++at){var ut=a/(y+b),ft=tt/(y+z);if(ut=ut*ut+ft*ft-1,0ut)rt=y;else break}x=b*x/(y+b)-x,E=z*E/(y+z)-E,x=Math.sqrt(x*x+E*E)}else x=Math.abs(E-y);else E=a*a-y*y,z=a*x,za?"M"+this.startX.toString()+" "+this.startY.toString()+"L"+this.endX.toString()+" "+this.endY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a)+"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);case be.u:var y=new ce(this.startX,this.startY,0,0);return y.Kv(this.endX,this.endY,0,0),0>a?"M"+y.x.toString()+" "+y.y.toString()+"H"+y.right.toString()+"V"+y.bottom.toString()+"H"+y.left.toString()+"z":"M"+y.x.toFixed(a)+" "+y.y.toFixed(a)+"H"+y.right.toFixed(a)+"V"+y.bottom.toFixed(a)+"H"+y.left.toFixed(a)+"z";case be.F:if(y=new ce(this.startX,this.startY,0,0),y.Kv(this.endX,this.endY,0,0),0>a)return a=y.left.toString()+" "+(y.y+y.height/2).toString(),"M"+a+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+(y.right.toString()+" "+(y.y+y.height/2).toString())+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+a;var x=y.left.toFixed(a)+" "+(y.y+y.height/2).toFixed(a);return"M"+x+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+(y.right.toFixed(a)+" "+(y.y+y.height/2).toFixed(a))+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+x;case be.o:y="",x=this.figures.s;for(var E=x.length,b=0;b=Gt-1?!0:at[Bt+1].match(Kt)!==null}function E(){return Bt++,at[Bt]}function b(Cn){var yn=parseFloat(E()),di=parseFloat(E());Dt===Dt.toLowerCase()&&(yn=zt.x+yn,di=zt.y+di),Cn.h(yn,di)}function z(){return b(zt),zt}function tt(){return b(Rt),Rt}function ot(){var Cn=It.toLowerCase();return Cn!=="c"&&Cn!=="s"&&Cn!=="q"&&Cn!=="t"?zt:new jt(2*zt.x-Rt.x,2*zt.y-Rt.y)}y===void 0&&(y=!1);var rt=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(rt,"$1 $2"),a=a.replace(rt,"$1 $2"),a=a.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),a=a.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),a=a.replace(/([0-9])([+\-])/gm,"$1 $2"),a=a.replace(/[\s\r\t\n]+/gm," "),a=a.replace(/^\s+|\s+$/g,"");var at=a.split(" ");for(a=0;a=Gt-1);)if(It=Dt,Dt=E(),Dt!=="")switch(Dt.toUpperCase()){case"X":yt=!0,ft=ut=!1;break;case"M":for(At=z(),a.mc===null||yt===!0?(Cf(a,At.x,At.y,ut,!ft,mt),yt=!1):a.moveTo(At.x,At.y),rt.assign(zt);!x();)At=z(),a.lineTo(At.x,At.y);break;case"L":for(;!x();)At=z(),a.lineTo(At.x,At.y);break;case"H":for(;!x();)zt=new jt((Dt===Dt.toLowerCase()?zt.x:0)+parseFloat(E()),zt.y),a.lineTo(zt.x,zt.y);break;case"V":for(;!x();)zt=new jt(zt.x,(Dt===Dt.toLowerCase()?zt.y:0)+parseFloat(E())),a.lineTo(zt.x,zt.y);break;case"C":for(;!x();){At=new jt,b(At);var ie=tt(),Ue=z();Vu(a,At.x,At.y,ie.x,ie.y,Ue.x,Ue.y)}break;case"S":for(;!x();)At=ot(),ie=tt(),Ue=z(),Vu(a,At.x,At.y,ie.x,ie.y,Ue.x,Ue.y);break;case"Q":for(;!x();)At=tt(),ie=z(),O0(a,At.x,At.y,ie.x,ie.y);break;case"T":for(;!x();)Rt=At=ot(),ie=z(),O0(a,At.x,At.y,ie.x,ie.y);break;case"B":for(;!x();){At=parseFloat(E()),ie=parseFloat(E()),Ue=parseFloat(E());var tn=parseFloat(E()),Ye=parseFloat(E()),Fe=Ye,ye=!1;x()||(Fe=parseFloat(E()),x()||(ye=parseFloat(E())!==0)),Dt===Dt.toLowerCase()&&(Ue+=zt.x,tn+=zt.y),a.arcTo(At,ie,Ue,tn,Ye,Fe,ye)}break;case"A":for(;!x();)At=Math.abs(parseFloat(E())),ie=Math.abs(parseFloat(E())),Ue=parseFloat(E()),Ye=tn=!1,ye=Fe=0,Fe=E(),Fe.length===1?(tn=!!parseFloat(Fe),Ye=!!parseFloat(E()),Fe=parseFloat(E())):Fe.length===2?(tn=!!parseFloat(Fe[0]),Ye=!!parseFloat(Fe[1]),Fe=parseFloat(E())):(tn=!!parseFloat(Fe[0]),Ye=!!parseFloat(Fe[1]),Fe=parseFloat(Fe.slice(2))),ye=parseFloat(E()),Dt===Dt.toLowerCase()&&(Fe=zt.x+Fe,ye=zt.y+ye),zt.h(Fe,ye),PS(a,At,ie,Ue,tn,Ye,Fe,ye);break;case"Z":xS(a),zt.assign(rt);break;case"F":for(At="",ie=1;at[Bt+ie];)if(at[Bt+ie]==="0")mt=!0,ie++;else if(at[Bt+ie].match(/[Uu]/)!==null)ie++;else if(at[Bt+ie].match(Kt)===null)ie++;else{At=at[Bt+ie];break}At.match(/[Mm]/)?ut=!0:0tt&&(tt+=360),At.startAngle+=tt),0>a&&(At.startAngle=180-At.startAngle,At.sweepAngle=-At.sweepAngle),0>E&&(At.startAngle=-At.startAngle,At.sweepAngle=-At.sweepAngle),At.radiusX*=Math.sqrt(a*a+x*x),At.radiusY!==void 0&&(At.radiusY*=Math.sqrt(y*y+E*E));break;case aa:if(tt=At.endX,ot=At.endY,At.endX=tt*a+ot*x+b,At.endY=tt*y+ot*E+z,At.radiusX===0||At.radiusY===0)break;y!==0&&(tt=180*Math.atan2(y,a)/Math.PI,0>tt&&(tt+=360),At.xAxisRotation+=tt),0>a&&(At.xAxisRotation=180-At.xAxisRotation,At.isClockwiseArc=!At.isClockwiseArc),0>E&&(At.xAxisRotation=-At.xAxisRotation,At.isClockwiseArc=!At.isClockwiseArc),At.radiusX*=Math.sqrt(a*a+x*x),At.radiusY*=Math.sqrt(y*y+E*E);break;default:ee("Unknown Segment type: "+At.type)}}}}return this._isInvalidBounds=!0,this},Pt.ca=function(a,y){y===void 0&&(y=0);var x=this.od,E=this.pd,b=this.Dc,z=this.Ec;switch(this.type){case be.j:return Jt.Yb(x,E,b,z,y,a.x,a.y);case be.u:var tt=ce.allocAt(Math.min(x,b)-y,Math.min(E,z)-y,Math.abs(b-x)+2*y,Math.abs(z-E)+2*y);return a=tt.ca(a),ce.free(tt),a;case be.F:tt=Math.min(x,b)-y;var ot=Math.min(E,z)-y;return x=(Math.abs(b-x)+2*y)/2,y=(Math.abs(z-E)+2*y)/2,0>=x||0>=y?!1:(tt=a.x-(tt+x),ot=a.y-(ot+y),1>=tt*tt/(x*x)+ot*ot/(y*y));case be.o:return tu(this,a,y,!0,!1);default:return!1}};function tu(a,y,x,E,b){var z=y.x;y=y.y;for(var tt=a.bounds.x-20,ot=0,rt,at,ut,ft,mt=a.figures.s,yt=mt.length,At=0;At=a)return 0;if((b>tt?b-tt:tt-b)<(z>ot?z-ot:ot-z)){if(zot)return 0}else if(yz)return 0}else if(btt)return 0}else if(atb)return 0;return 0a?a=0:1=z)return E=z-tt,E=ut===0?0:E/ut,x=x[ot],ot=x[2*a],b=x[2*a+1],y.h(ot+(x[2*a+2]-ot)*E,b+(x[2*a+3]-b)*E),y;tt+=ut}}return y},Pt.wx=function(a){if(0>a?a=0:1=b)return b=y[tt],y=b[2*a],x=b[2*a+1],E=b[2*a+2],a=b[2*a+3],1>Math.abs(E-y)&&1>Math.abs(a-x)?0:1>Math.abs(E-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=E-y?0:180:180*Math.atan2(a-x,E-y)/Math.PI;z+=at}}return NaN},Pt.Qu=function(a,y){if(0>a?a=0:1=z)return E=z-tt,E=ut===0?0:E/ut,ut=x[ot],x=ut[2*a],ot=ut[2*a+1],b=ut[2*a+2],a=ut[2*a+3],y[0]=x+(b-x)*E,y[1]=ot+(a-ot)*E,y[2]=1>Math.abs(b-x)&&1>Math.abs(a-ot)?0:1>Math.abs(b-x)?0<=a-ot?90:270:1>Math.abs(a-ot)?0<=b-x?0:180:180*Math.atan2(a-ot,b-x)/Math.PI,y;tt+=ut}}return y},Pt.xx=function(a){if(this.type===be.j){var y=this.startX,x=this.startY,E=this.endX,b=this.endY;if(y!==E||x!==b){var z=a.x;if(a=a.y,y===E){if(x=E?E===x?0:1:Math.abs(a-x)/(E-tt)}if(x===b)return y=E?E===y?0:1:Math.abs(z-y)/(E-tt);tt=(E-y)*(E-y)+(b-x)*(b-x);var ot=jt.alloc();return Jt.qh(y,x,E,b,z,a,ot),a=ot.x,z=ot.y,jt.free(ot),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/tt)}}else if(this.type===be.u){tt=this.startX,ot=this.startY;var rt=this.endX;if(b=this.endY,tt!==rt||ot!==b){y=rt-tt,x=b-ot,z=2*y+2*x,E=a.x,a=a.y,E=Math.min(Math.max(E,tt),rt),a=Math.min(Math.max(a,ot),b),tt=Math.abs(E-tt),rt=Math.abs(E-rt),ot=Math.abs(a-ot),b=Math.abs(a-b);var at=Math.min(tt,rt,ot,b);if(at===ot)return E/z;if(at===rt)return(y+a)/z;if(at===b)return(2*y+x-E)/z;if(at===tt)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,E=jt.alloc(),b=1/0,ot=tt=0,rt=y.length;for(var ut=at=0,ft=0;fta?0:1a?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a),x=this.segments.s,E=x.length,b=0;ba&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(E,0),this.Pg=Math.max(b,0),typeof tt=="boolean"?tt&&(this.isLargeArc=!0):typeof tt=="number"&&tt&&(this.isLargeArc=!0),ot&&(this.isClockwiseArc=!0)):(this.Ne=E,this.Vh=b,a===Ro&&(z=Math.max(z,0)),this.Wh=z,typeof tt=="number"?(a===Ro&&(tt=Math.max(tt,0)),this.Pg=tt):this.Pg=0),this.ae=null}ui.prototype.copy=function(){var a=new ui;return a.na=this.na,a.l=this.l&-2,a.Dc=this.Dc,a.Ec=this.Ec,a.Ne=this.Ne,a.Vh=this.Vh,a.Wh=this.Wh,a.Pg=this.Pg,a},Pt=ui.prototype,Pt.Xa=function(a){if(!(a instanceof ui)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case ir:case Ri:return Jt.B(this.endX,a.endX)&&Jt.B(this.endY,a.endY);case kr:return Jt.B(this.endX,a.endX)&&Jt.B(this.endY,a.endY)&&Jt.B(this.point1X,a.point1X)&&Jt.B(this.point1Y,a.point1Y)&&Jt.B(this.point2X,a.point2X)&&Jt.B(this.point2Y,a.point2Y);case Zs:return Jt.B(this.endX,a.endX)&&Jt.B(this.endY,a.endY)&&Jt.B(this.point1X,a.point1X)&&Jt.B(this.point1Y,a.point1Y);case Ro:return Jt.B(this.startAngle,a.startAngle)&&Jt.B(this.sweepAngle,a.sweepAngle)&&Jt.B(this.centerX,a.centerX)&&Jt.B(this.centerY,a.centerY)&&Jt.B(this.radiusX,a.radiusX)&&Jt.B(this.radiusY,a.radiusY);case aa:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Jt.B(this.xAxisRotation,a.xAxisRotation)&&Jt.B(this.endX,a.endX)&&Jt.B(this.endY,a.endY)&&Jt.B(this.radiusX,a.radiusX)&&Jt.B(this.radiusY,a.radiusY);default:return!1}},Pt.qb=function(a){a.classType===ui&&(this.type=a)},Pt.toString=function(a){switch(a===void 0&&(a=-1),this.type){case ir:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Ri:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case kr:a=0>a?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.point2X.toFixed(a)+" "+this.point2Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Zs:a=0>a?"Q"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"Q"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Ro:a=0>a?"B"+this.startAngle.toString()+" "+this.sweepAngle.toString()+" "+this.centerX.toString()+" "+this.centerY.toString()+" "+this.radiusX.toString()+" "+this.radiusY.toString():"B"+this.startAngle.toFixed(a)+" "+this.sweepAngle.toFixed(a)+" "+this.centerX.toFixed(a)+" "+this.centerY.toFixed(a)+" "+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a);break;case aa:a=0>a?"A"+this.radiusX.toString()+" "+this.radiusY.toString()+" "+this.xAxisRotation.toString()+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toString()+" "+this.endY.toString():"A"+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a)+" "+this.xAxisRotation.toFixed(a)+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;default:a=this.type.toString()}return a+(this.isClosed?"z":"")},Pt.freeze=function(){return this._isFrozen=!0,this},Pt.ka=function(){return this._isFrozen=!1,this},Pt.close=function(){return this.isClosed=!0,this};function Rs(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var x=a.radiusX,E=a.radiusY;if(E===void 0&&(E=x),x===0||E===0)return a.ae=[],a.ae;y=a.Ne;var b=a.Vh,z=Jt.jx(0,0,x=yt?tt=Math.PI:1<=yt&&(tt=0),!rt&&0tt&&(tt+=2*Math.PI),rt=y>z?1:y/z,yt=y>z?z/y:1,y=Jt.jx(0,0,y>z?y:z,ut,ut+tt,!0),z=Hn.alloc(),z.reset(),z.translate(x,E),z.rotate(a.Ne,0,0),z.scale(rt,yt),be.Ha(y,z),Hn.free(z),a.ae=y,a.ae}fe.Object.defineProperties(ui.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},isClosed:{get:function(){return(this.l&8)!==0},set:function(a){this.isClosed!==a&&(this.l=a?this.l|8:this.l&-9,this._isInvalidBounds=!0)}},type:{get:function(){return this.na},set:function(a){this._isFrozen&&mn(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&mn(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&mn(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&mn(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&mn(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&mn(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&mn(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&mn(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&mn(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Zn(a,">= zero",ui,"radiusX"),this._isFrozen&&mn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Zn(a,">= zero",ui,"radiusY"),this._isFrozen&&mn(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&mn(this,a),a%=360,0>a&&(a+=360),this.Dc=a,this._isInvalidBounds=!0}},sweepAngle:{get:function(){return this.Ec},set:function(a){this._isFrozen&&mn(this,a),360a&&(a=-360),this.Ec=a,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&mn(this,a),this.l=a?this.l|4:this.l&-5,this._isInvalidBounds=!0}},isLargeArc:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&mn(this,a),this.l=a?this.l|16:this.l&-17,this._isInvalidBounds=!0}},xAxisRotation:{get:function(){return this.Ne},set:function(a){this._isFrozen&&mn(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),ui.prototype.equalsApprox=ui.prototype.Xa;var ir=new Ee(ui,"Move",0),Ri=new Ee(ui,"Line",1),kr=new Ee(ui,"Bezier",2),Zs=new Ee(ui,"QuadraticBezier",3),Ro=new Ee(ui,"Arc",4),aa=new Ee(ui,"SvgArc",4);ui.className="PathSegment",ui.Move=ir,ui.Line=Ri,ui.Bezier=kr,ui.QuadraticBezier=Zs,ui.Arc=Ro,ui.SvgArc=aa;function Gr(){this.H=null,this.xu=new jt(0,0).freeze(),this.mt=new jt(0,0).freeze(),this.Bp=this.Rq=0,this.Cp=1,this.xq="",this.Wr=this.Tp=!1,this.Rp=this.Ep=0,this.xg=this.nq=this.tq=!1,this.Zp=null,this.Rr=0,this.xd=this.Nr=null}Gr.prototype.copy=function(){var a=new Gr;return this.clone(a)},Gr.prototype.clone=function(a){return a.H=this.H,a.xu.assign(this.viewPoint),a.mt.assign(this.documentPoint),a.Rq=this.Rq,a.Bp=this.Bp,a.Cp=this.Cp,a.xq=this.xq,a.Tp=this.Tp,a.Wr=this.Wr,a.Ep=this.Ep,a.Rp=this.Rp,a.tq=this.tq,a.nq=this.nq,a.xg=this.xg,a.Zp=this.Zp,a.Rr=this.Rr,a.Nr=this.Nr,a.xd=this.xd,a},Gr.prototype.toString=function(){var a="^";return this.modifiers!==0&&(a+="M:"+this.modifiers),this.button!==0&&(a+="B:"+this.button),this.key!==""&&(a+="K:"+this.key),this.clickCount!==0&&(a+="C:"+this.clickCount),this.delta!==0&&(a+="D:"+this.delta),this.handled&&(a+="h"),this.bubbles&&(a+="b"),this.documentPoint!==null&&(a+="@"+this.documentPoint.toString()),a},Gr.prototype.So=function(a,y){var x=this.diagram;return x===null||mc(x,a,y),y},Gr.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(mc(x,a,y),y.assign(x.Ps(y))),y},fe.Object.defineProperties(Gr.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},viewPoint:{get:function(){return this.xu},set:function(a){this.xu.assign(a)}},documentPoint:{get:function(){return this.mt},set:function(a){this.mt.assign(a)}},modifiers:{get:function(){return this.Rq},set:function(a){this.Rq=a}},button:{get:function(){return this.Bp},set:function(a){if(this.Bp=a,this.event===null)switch(a){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2}}},buttons:{get:function(){return this.Cp},set:function(a){this.Cp=a}},key:{get:function(){return this.xq},set:function(a){this.xq=a}},down:{get:function(){return this.Tp},set:function(a){this.Tp=a}},up:{get:function(){return this.Wr},set:function(a){this.Wr=a}},clickCount:{get:function(){return this.Ep},set:function(a){this.Ep=a}},delta:{get:function(){return this.Rp},set:function(a){this.Rp=a}},isMultiTouch:{get:function(){return this.tq},set:function(a){this.tq=a}},handled:{get:function(){return this.nq},set:function(a){this.nq=a}},bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},event:{get:function(){return this.Zp},set:function(a){this.Zp=a}},isTouchEvent:{get:function(){var a=this.event;return a===null?!1:a.pointerType==="touch"||a.pointerType==="pen"}},timestamp:{get:function(){return this.Rr},set:function(a){this.Rr=a}},targetDiagram:{get:function(){return this.Nr},set:function(a){this.Nr=a}},targetObject:{get:function(){return this.xd},set:function(a){this.xd=a}},control:{get:function(){return(this.modifiers&1)!==0},set:function(a){this.modifiers=a?this.modifiers|1:this.modifiers&-2}},shift:{get:function(){return(this.modifiers&4)!==0},set:function(a){this.modifiers=a?this.modifiers|4:this.modifiers&-5}},alt:{get:function(){return(this.modifiers&2)!==0},set:function(a){this.modifiers=a?this.modifiers|2:this.modifiers&-3}},meta:{get:function(){return(this.modifiers&8)!==0},set:function(a){this.modifiers=a?this.modifiers|8:this.modifiers&-9}},left:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&1)!==0:this.button===0},set:function(a){this.buttons=a?this.buttons|1:this.buttons&-2}},right:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&2)!==0:this.button===2},set:function(a){this.buttons=a?this.buttons|2:this.buttons&-3}},middle:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&4)!==0:this.button===1},set:function(a){this.buttons=a?this.buttons|4:this.buttons&-5}}}),Gr.prototype.getMultiTouchDocumentPoint=Gr.prototype.Bz,Gr.prototype.getMultiTouchViewPoint=Gr.prototype.So,Gr.className="InputEvent";function Eu(){this.H=null,this.xa="",this.ar=this.Lr=null}Eu.prototype.copy=function(){var a=new Eu;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},Eu.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},fe.Object.defineProperties(Eu.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},subject:{get:function(){return this.Lr},set:function(a){this.Lr=a}},parameter:{get:function(){return this.ar},set:function(a){this.ar=a}}}),Eu.className="DiagramEvent";function lo(){this.Fm=ro,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}lo.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},lo.prototype.copy=function(){var a=new lo;a.Fm=this.Fm,a.Qq=this.Qq,a.rf=this.rf,a.cc=this.cc,a.H=this.H,a.Qn=this.Qn;var y=this.Sn;return a.Sn=Pe(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=Pe(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=Pe(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=Pe(y)&&typeof y.J=="function"?y.J():y,a},lo.prototype.qb=function(a){a.classType===lo&&(this.change=a)},lo.prototype.toString=function(){var a="";return a=this.change===zs?a+"* ":this.change===ro?a+(this.model!==null?"!m":"!d"):a+((this.model!==null?"!m":"!d")+this.change),this.propertyName&&typeof this.propertyName=="string"&&(a+=" "+this.propertyName),this.modelChange&&this.modelChange!==this.propertyName&&(a+=" "+this.modelChange),a+=": ",this.change===zs?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=_n(this.object)),this.oldValue!==null&&(a+=" old: "+_n(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+_n(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},lo.prototype.I=function(a){return a?this.oldValue:this.newValue},lo.prototype.Dz=function(a){return a?this.oldParam:this.newParam},lo.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},lo.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},lo.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},lo.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},fe.Object.defineProperties(lo.prototype,{model:{get:function(){return this.cc},set:function(a){this.cc=a}},diagram:{get:function(){return this.H},set:function(a){this.H=a}},change:{get:function(){return this.Fm},set:function(a){this.Fm=a}},modelChange:{get:function(){return this.Qq},set:function(a){this.Qq=a}},propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},isTransactionFinished:{get:function(){return this.Fm===zs&&(this.rf==="CommittedTransaction"||this.rf==="FinishedUndo"||this.rf==="FinishedRedo")}},object:{get:function(){return this.Qn},set:function(a){this.Qn=a}},oldValue:{get:function(){return this.Sn},set:function(a){this.Sn=a}},oldParam:{get:function(){return this.Rn},set:function(a){this.Rn=a}},newValue:{get:function(){return this.Mn},set:function(a){this.Mn=a}},newParam:{get:function(){return this.Ln},set:function(a){this.Ln=a}}}),lo.prototype.redo=lo.prototype.redo,lo.prototype.canRedo=lo.prototype.canRedo,lo.prototype.undo=lo.prototype.undo,lo.prototype.canUndo=lo.prototype.canUndo,lo.prototype.getParam=lo.prototype.Dz,lo.prototype.getValue=lo.prototype.I,lo.prototype.clear=lo.prototype.clear;var zs=new Ee(lo,"Transaction",-1),ro=new Ee(lo,"Property",0),Mo=new Ee(lo,"Insert",1),Vo=new Ee(lo,"Remove",2);lo.className="ChangedEvent",lo.Transaction=zs,lo.Property=ro,lo.Insert=Mo,lo.Remove=Vo;function lr(){this.o=new He().freeze(),this.xa="",this.j=!1}lr.prototype.toString=function(a){var y="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(a!==void 0&&00&&st.prevInput=="\u200B"?Ur(dt,Fr)(dt):sn++<10?ht.detectingSelectAll=setTimeout(vn,500):(ht.selForContextMenu=null,ht.input.reset())};ht.detectingSelectAll=setTimeout(vn,200)}}if(ue&&Me>=9&&Le(),Ft){Do(it);var en=function(){Je(window,"mouseup",en),setTimeout(we,20)};te(window,"mouseup",en)}else setTimeout(we,50)},Rr.prototype.readOnlyChanged=function(it){it||this.reset(),this.textarea.disabled=it=="nocursor",this.textarea.readOnly=!!it},Rr.prototype.setUneditable=function(){},Rr.prototype.needsContentAttribute=!1;function s0(it,st){if(st=st?Fn(st):{},st.value=it.value,!st.tabindex&&it.tabIndex&&(st.tabindex=it.tabIndex),!st.placeholder&&it.placeholder&&(st.placeholder=it.placeholder),st.autofocus==null){var dt=he();st.autofocus=dt==it||it.getAttribute("autofocus")!=null&&dt==document.body}function ht(){it.value=bt.getValue()}var ct;if(it.form&&(te(it.form,"submit",ht),!st.leaveSubmitMethodAlone)){var xt=it.form;ct=xt.submit;try{var Mt=xt.submit=function(){ht(),xt.submit=ct,xt.submit(),xt.submit=Mt}}catch(Tt){}}st.finishInit=function(Tt){Tt.save=ht,Tt.getTextArea=function(){return it},Tt.toTextArea=function(){Tt.toTextArea=isNaN,ht(),it.parentNode.removeChild(Tt.getWrapperElement()),it.style.display="",it.form&&(Je(it.form,"submit",ht),!st.leaveSubmitMethodAlone&&typeof it.form.submit=="function"&&(it.form.submit=ct))}},it.style.display="none";var bt=Ao(function(Tt){return it.parentNode.insertBefore(Tt,it.nextSibling)},st);return bt}function xd(it){it.off=Je,it.on=te,it.wheelEventPixels=Ba,it.Doc=ys,it.splitLines=En,it.countColumn=se,it.findColumn=wn,it.isWordChar=So,it.Pass=Dn,it.signal=Ve,it.Line=Wo,it.changeEnd=bu,it.scrollbarModel=tc,it.Pos=Pe,it.cmpPos=Ze,it.modes=Es,it.mimeModes=Zr,it.resolveMode=oa,it.getMode=je,it.modeExtensions=Ae,it.extendMode=fe,it.copyState=In,it.startState=li,it.innerMode=ci,it.commands=zu,it.keyMap=ua,it.keyName=_p,it.isModifierKey=fd,it.lookupKey=Ga,it.normalizeKeyMap=pc,it.StringStream=Ke,it.SharedTextMarker=bl,it.TextMarker=oe,it.LineWidget=au,it.e_preventDefault=Yn,it.e_stopPropagation=zi,it.e_stop=Do,it.addClass=xe,it.contains=ke,it.rmClass=Vt,it.keyNames=Ol}i0(Ao),Hu(Ao);var lu="iter insert remove copy getEditor constructor".split(" ");for(var hg in ys.prototype)ys.prototype.hasOwnProperty(hg)&&_e(lu,hg)<0&&(Ao.prototype[hg]=function(it){return function(){return it.apply(this.doc,arguments)}}(ys.prototype[hg]));return kn(ys),Ao.inputStyles={textarea:Rr,contenteditable:Qo},Ao.defineMode=function(it){!Ao.defaults.mode&&it!="null"&&(Ao.defaults.mode=it),Oa.apply(this,arguments)},Ao.defineMIME=bo,Ao.defineMode("null",function(){return{token:function(it){return it.skipToEnd()}}}),Ao.defineMIME("text/plain","null"),Ao.defineExtension=function(it,st){Ao.prototype[it]=st},Ao.defineDocExtension=function(it,st){ys.prototype[it]=st},Ao.fromTextArea=s0,xd(Ao),Ao.version="5.58.2",Ao})},25419:function(Qe,gn,Qt){(function(wt){wt(Qt(89780),Qt(15525),Qt(98101))})(function(wt){"use strict";wt.defineMode("markdown",function(de,Se){var Re=wt.getMode(de,"text/html"),ue=Re.name=="null";function Me(se){if(wt.findModeByName){var Wt=wt.findModeByName(se);Wt&&(se=Wt.mime||Wt.mimes[0])}var _e=wt.getMode(de,se);return _e.name=="null"?null:_e}Se.highlightFormatting===void 0&&(Se.highlightFormatting=!1),Se.maxBlockquoteDepth===void 0&&(Se.maxBlockquoteDepth=0),Se.taskLists===void 0&&(Se.taskLists=!1),Se.strikethrough===void 0&&(Se.strikethrough=!1),Se.emoji===void 0&&(Se.emoji=!1),Se.fencedCodeBlockHighlighting===void 0&&(Se.fencedCodeBlockHighlighting=!0),Se.fencedCodeBlockDefaultMode===void 0&&(Se.fencedCodeBlockDefaultMode="text/plain"),Se.xml===void 0&&(Se.xml=!0),Se.tokenTypeOverrides===void 0&&(Se.tokenTypeOverrides={});var qt={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var Ce in qt)qt.hasOwnProperty(Ce)&&Se.tokenTypeOverrides[Ce]&&(qt[Ce]=Se.tokenTypeOverrides[Ce]);var ge=/^([*\-_])(?:\s*\1){2,}\s*$/,pe=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,ae=/^\[(x| )\](?=\s)/i,Te=Se.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,De=/^ {0,3}(?:\={1,}|-{2,})\s*$/,kt=/^[^#!\[\]*_\\<>` "'(~:]+/,et=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,nt=/^\s*\[[^\]]+?\]:.*$/,gt=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,lt=" ";function pt(se,Wt,_e){return Wt.f=Wt.inline=_e,_e(se,Wt)}function vt(se,Wt,_e){return Wt.f=Wt.block=_e,_e(se,Wt)}function Ct(se){return!se||!/\S/.test(se.string)}function Ft(se){if(se.linkTitle=!1,se.linkHref=!1,se.linkText=!1,se.em=!1,se.strong=!1,se.strikethrough=!1,se.quote=0,se.indentedCode=!1,se.f==Vt){var Wt=ue;if(!Wt){var _e=wt.innerMode(Re,se.htmlState);Wt=_e.mode.name=="xml"&&_e.state.tagStart===null&&!_e.state.context&&_e.state.tokenize.isInText}Wt&&(se.f=me,se.block=Ht,se.htmlState=null)}return se.trailingSpace=0,se.trailingSpaceNewLine=!1,se.prevLine=se.thisLine,se.thisLine={stream:null},null}function Ht(se,Wt){var _e=se.column()===Wt.indentation,Tn=Ct(Wt.prevLine.stream),Dn=Wt.indentedCode,ve=Wt.prevLine.hr,$e=Wt.list!==!1,hn=(Wt.listStack[Wt.listStack.length-1]||0)+3;Wt.indentedCode=!1;var wn=Wt.indentation;if(Wt.indentationDiff===null&&(Wt.indentationDiff=Wt.indentation,$e)){for(Wt.list=null;wn=4&&(Dn||Wt.prevLine.fencedCodeEnd||Wt.prevLine.header||Tn))return se.skipToEnd(),Wt.indentedCode=!0,qt.code;if(se.eatSpace())return null;if(_e&&Wt.indentation<=hn&&(re=se.match(Te))&&re[1].length<=6)return Wt.quote=0,Wt.header=re[1].length,Wt.thisLine.header=!0,Se.highlightFormatting&&(Wt.formatting="header"),Wt.f=Wt.inline,ne(Wt);if(Wt.indentation<=hn&&se.eat(">"))return Wt.quote=_e?1:Wt.quote+1,Se.highlightFormatting&&(Wt.formatting="quote"),se.eatSpace(),ne(Wt);if(!bn&&!Wt.setext&&_e&&Wt.indentation<=hn&&(re=se.match(pe))){var An=re[1]?"ol":"ul";return Wt.indentation=wn+se.current().length,Wt.list=!0,Wt.quote=0,Wt.listStack.push(Wt.indentation),Wt.em=!1,Wt.strong=!1,Wt.code=!1,Wt.strikethrough=!1,Se.taskLists&&se.match(ae,!1)&&(Wt.taskList=!0),Wt.f=Wt.inline,Se.highlightFormatting&&(Wt.formatting=["list","list-"+An]),ne(Wt)}else{if(_e&&Wt.indentation<=hn&&(re=se.match(et,!0)))return Wt.quote=0,Wt.fencedEndRE=new RegExp(re[1]+"+ *$"),Wt.localMode=Se.fencedCodeBlockHighlighting&&Me(re[2]||Se.fencedCodeBlockDefaultMode),Wt.localMode&&(Wt.localState=wt.startState(Wt.localMode)),Wt.f=Wt.block=_t,Se.highlightFormatting&&(Wt.formatting="code-block"),Wt.code=-1,ne(Wt);if(Wt.setext||(!rn||!$e)&&!Wt.quote&&Wt.list===!1&&!Wt.code&&!bn&&!nt.test(se.string)&&(re=se.lookAhead(1))&&(re=re.match(De)))return Wt.setext?(Wt.header=Wt.setext,Wt.setext=0,se.skipToEnd(),Se.highlightFormatting&&(Wt.formatting="header")):(Wt.header=re[0].charAt(0)=="="?1:2,Wt.setext=Wt.header),Wt.thisLine.header=!0,Wt.f=Wt.inline,ne(Wt);if(bn)return se.skipToEnd(),Wt.hr=!0,Wt.thisLine.hr=!0,qt.hr;if(se.peek()==="[")return pt(se,Wt,on)}return pt(se,Wt,Wt.inline)}function Vt(se,Wt){var _e=Re.token(se,Wt.htmlState);if(!ue){var Tn=wt.innerMode(Re,Wt.htmlState);(Tn.mode.name=="xml"&&Tn.state.tagStart===null&&!Tn.state.context&&Tn.state.tokenize.isInText||Wt.md_inside&&se.current().indexOf(">")>-1)&&(Wt.f=me,Wt.block=Ht,Wt.htmlState=null)}return _e}function _t(se,Wt){var _e=Wt.listStack[Wt.listStack.length-1]||0,Tn=Wt.indentation<_e,Dn=_e+3;if(Wt.fencedEndRE&&Wt.indentation<=Dn&&(Tn||se.match(Wt.fencedEndRE))){Se.highlightFormatting&&(Wt.formatting="code-block");var ve;return Tn||(ve=ne(Wt)),Wt.localMode=Wt.localState=null,Wt.block=Ht,Wt.f=me,Wt.fencedEndRE=null,Wt.code=0,Wt.thisLine.fencedCodeEnd=!0,Tn?vt(se,Wt,Wt.block):ve}else return Wt.localMode?Wt.localMode.token(se,Wt.localState):(se.skipToEnd(),qt.code)}function ne(se){var Wt=[];if(se.formatting){Wt.push(qt.formatting),typeof se.formatting=="string"&&(se.formatting=[se.formatting]);for(var _e=0;_e=se.quote?Wt.push(qt.formatting+"-"+se.formatting[_e]+"-"+se.quote):Wt.push("error"))}if(se.taskOpen)return Wt.push("meta"),Wt.length?Wt.join(" "):null;if(se.taskClosed)return Wt.push("property"),Wt.length?Wt.join(" "):null;if(se.linkHref?Wt.push(qt.linkHref,"url"):(se.strong&&Wt.push(qt.strong),se.em&&Wt.push(qt.em),se.strikethrough&&Wt.push(qt.strikethrough),se.emoji&&Wt.push(qt.emoji),se.linkText&&Wt.push(qt.linkText),se.code&&Wt.push(qt.code),se.image&&Wt.push(qt.image),se.imageAltText&&Wt.push(qt.imageAltText,"link"),se.imageMarker&&Wt.push(qt.imageMarker)),se.header&&Wt.push(qt.header,qt.header+"-"+se.header),se.quote&&(Wt.push(qt.quote),!Se.maxBlockquoteDepth||Se.maxBlockquoteDepth>=se.quote?Wt.push(qt.quote+"-"+se.quote):Wt.push(qt.quote+"-"+Se.maxBlockquoteDepth)),se.list!==!1){var Tn=(se.listStack.length-1)%3;Tn?Tn===1?Wt.push(qt.list2):Wt.push(qt.list3):Wt.push(qt.list1)}return se.trailingSpaceNewLine?Wt.push("trailing-space-new-line"):se.trailingSpace&&Wt.push("trailing-space-"+(se.trailingSpace%2?"a":"b")),Wt.length?Wt.join(" "):null}function $t(se,Wt){if(se.match(kt,!0))return ne(Wt)}function me(se,Wt){var _e=Wt.text(se,Wt);if(typeof _e!="undefined")return _e;if(Wt.list)return Wt.list=null,ne(Wt);if(Wt.taskList){var Tn=se.match(ae,!0)[1]===" ";return Tn?Wt.taskOpen=!0:Wt.taskClosed=!0,Se.highlightFormatting&&(Wt.formatting="task"),Wt.taskList=!1,ne(Wt)}if(Wt.taskOpen=!1,Wt.taskClosed=!1,Wt.header&&se.match(/^#+$/,!0))return Se.highlightFormatting&&(Wt.formatting="header"),ne(Wt);var Dn=se.next();if(Wt.linkTitle){Wt.linkTitle=!1;var ve=Dn;Dn==="("&&(ve=")"),ve=(ve+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var $e="^\\s*(?:[^"+ve+"\\\\]+|\\\\\\\\|\\\\.)"+ve;if(se.match(new RegExp($e),!0))return qt.linkHref}if(Dn==="`"){var hn=Wt.formatting;Se.highlightFormatting&&(Wt.formatting="code"),se.eatWhile("`");var wn=se.current().length;if(Wt.code==0&&(!Wt.quote||wn==1))return Wt.code=wn,ne(Wt);if(wn==Wt.code){var rn=ne(Wt);return Wt.code=0,rn}else return Wt.formatting=hn,ne(Wt)}else if(Wt.code)return ne(Wt);if(Dn==="\\"&&(se.next(),Se.highlightFormatting)){var bn=ne(Wt),re=qt.formatting+"-escape";return bn?bn+" "+re:re}if(Dn==="!"&&se.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Wt.imageMarker=!0,Wt.image=!0,Se.highlightFormatting&&(Wt.formatting="image"),ne(Wt);if(Dn==="["&&Wt.imageMarker&&se.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Wt.imageMarker=!1,Wt.imageAltText=!0,Se.highlightFormatting&&(Wt.formatting="image"),ne(Wt);if(Dn==="]"&&Wt.imageAltText){Se.highlightFormatting&&(Wt.formatting="image");var bn=ne(Wt);return Wt.imageAltText=!1,Wt.image=!1,Wt.inline=Wt.f=ke,bn}if(Dn==="["&&!Wt.image)return Wt.linkText&&se.match(/^.*?\]/)||(Wt.linkText=!0,Se.highlightFormatting&&(Wt.formatting="link")),ne(Wt);if(Dn==="]"&&Wt.linkText){Se.highlightFormatting&&(Wt.formatting="link");var bn=ne(Wt);return Wt.linkText=!1,Wt.inline=Wt.f=se.match(/\(.*?\)| ?\[.*?\]/,!1)?ke:me,bn}if(Dn==="<"&&se.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Wt.f=Wt.inline=Zt,Se.highlightFormatting&&(Wt.formatting="link");var bn=ne(Wt);return bn?bn+=" ":bn="",bn+qt.linkInline}if(Dn==="<"&&se.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Wt.f=Wt.inline=Zt,Se.highlightFormatting&&(Wt.formatting="link");var bn=ne(Wt);return bn?bn+=" ":bn="",bn+qt.linkEmail}if(Se.xml&&Dn==="<"&&se.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var An=se.string.indexOf(">",se.pos);if(An!=-1){var mi=se.string.substring(se.start,An);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(mi)&&(Wt.md_inside=!0)}return se.backUp(1),Wt.htmlState=wt.startState(Re),vt(se,Wt,Vt)}if(Se.xml&&Dn==="<"&&se.match(/^\/\w*?>/))return Wt.md_inside=!1,"tag";if(Dn==="*"||Dn==="_"){for(var ni=1,qe=se.pos==1?" ":se.string.charAt(se.pos-2);ni<3&&se.eat(Dn);)ni++;var vi=se.peek()||" ",So=!/\s/.test(vi)&&(!gt.test(vi)||/\s/.test(qe)||gt.test(qe)),yi=!/\s/.test(qe)&&(!gt.test(qe)||/\s/.test(vi)||gt.test(vi)),gi=null,fi=null;if(ni%2&&(!Wt.em&&So&&(Dn==="*"||!yi||gt.test(qe))?gi=!0:Wt.em==Dn&&yi&&(Dn==="*"||!So||gt.test(vi))&&(gi=!1)),ni>1&&(!Wt.strong&&So&&(Dn==="*"||!yi||gt.test(qe))?fi=!0:Wt.strong==Dn&&yi&&(Dn==="*"||!So||gt.test(vi))&&(fi=!1)),fi!=null||gi!=null){Se.highlightFormatting&&(Wt.formatting=gi==null?"strong":fi==null?"em":"strong em"),gi===!0&&(Wt.em=Dn),fi===!0&&(Wt.strong=Dn);var rn=ne(Wt);return gi===!1&&(Wt.em=!1),fi===!1&&(Wt.strong=!1),rn}}else if(Dn===" "&&(se.eat("*")||se.eat("_"))){if(se.peek()===" ")return ne(Wt);se.backUp(1)}if(Se.strikethrough){if(Dn==="~"&&se.eatWhile(Dn)){if(Wt.strikethrough){Se.highlightFormatting&&(Wt.formatting="strikethrough");var rn=ne(Wt);return Wt.strikethrough=!1,rn}else if(se.match(/^[^\s]/,!1))return Wt.strikethrough=!0,Se.highlightFormatting&&(Wt.formatting="strikethrough"),ne(Wt)}else if(Dn===" "&&se.match(/^~~/,!0)){if(se.peek()===" ")return ne(Wt);se.backUp(2)}}if(Se.emoji&&Dn===":"&&se.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Wt.emoji=!0,Se.highlightFormatting&&(Wt.formatting="emoji");var an=ne(Wt);return Wt.emoji=!1,an}return Dn===" "&&(se.match(/^ +$/,!1)?Wt.trailingSpace++:Wt.trailingSpace&&(Wt.trailingSpaceNewLine=!0)),ne(Wt)}function Zt(se,Wt){var _e=se.next();if(_e===">"){Wt.f=Wt.inline=me,Se.highlightFormatting&&(Wt.formatting="link");var Tn=ne(Wt);return Tn?Tn+=" ":Tn="",Tn+qt.linkInline}return se.match(/^[^>]+/,!0),qt.linkInline}function ke(se,Wt){if(se.eatSpace())return null;var _e=se.next();return _e==="("||_e==="["?(Wt.f=Wt.inline=xe(_e==="("?")":"]"),Se.highlightFormatting&&(Wt.formatting="link-string"),Wt.linkHref=!0,ne(Wt)):"error"}var he={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function xe(se){return function(Wt,_e){var Tn=Wt.next();if(Tn===se){_e.f=_e.inline=me,Se.highlightFormatting&&(_e.formatting="link-string");var Dn=ne(_e);return _e.linkHref=!1,Dn}return Wt.match(he[se]),_e.linkHref=!0,ne(_e)}}function on(se,Wt){return se.match(/^([^\]\\]|\\.)*\]:/,!1)?(Wt.f=un,se.next(),Se.highlightFormatting&&(Wt.formatting="link"),Wt.linkText=!0,ne(Wt)):pt(se,Wt,me)}function un(se,Wt){if(se.match(/^\]:/,!0)){Wt.f=Wt.inline=pn,Se.highlightFormatting&&(Wt.formatting="link");var _e=ne(Wt);return Wt.linkText=!1,_e}return se.match(/^([^\]\\]|\\.)+/,!0),qt.linkText}function pn(se,Wt){return se.eatSpace()?null:(se.match(/^[^\s]+/,!0),se.peek()===void 0?Wt.linkTitle=!0:se.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Wt.f=Wt.inline=me,qt.linkHref+" url")}var Fn={startState:function(){return{f:Ht,prevLine:{stream:null},thisLine:{stream:null},block:Ht,htmlState:null,indentation:0,inline:me,text:$t,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(se){return{f:se.f,prevLine:se.prevLine,thisLine:se.thisLine,block:se.block,htmlState:se.htmlState&&wt.copyState(Re,se.htmlState),indentation:se.indentation,localMode:se.localMode,localState:se.localMode?wt.copyState(se.localMode,se.localState):null,inline:se.inline,text:se.text,formatting:!1,linkText:se.linkText,linkTitle:se.linkTitle,linkHref:se.linkHref,code:se.code,em:se.em,strong:se.strong,strikethrough:se.strikethrough,emoji:se.emoji,header:se.header,setext:se.setext,hr:se.hr,taskList:se.taskList,list:se.list,listStack:se.listStack.slice(0),quote:se.quote,indentedCode:se.indentedCode,trailingSpace:se.trailingSpace,trailingSpaceNewLine:se.trailingSpaceNewLine,md_inside:se.md_inside,fencedEndRE:se.fencedEndRE}},token:function(se,Wt){if(Wt.formatting=!1,se!=Wt.thisLine.stream){if(Wt.header=0,Wt.hr=!1,se.match(/^\s*$/,!0))return Ft(Wt),null;if(Wt.prevLine=Wt.thisLine,Wt.thisLine={stream:se},Wt.taskList=!1,Wt.trailingSpace=0,Wt.trailingSpaceNewLine=!1,!Wt.localState&&(Wt.f=Wt.block,Wt.f!=Vt)){var _e=se.match(/^\s*/,!0)[0].replace(/\t/g,lt).length;if(Wt.indentation=_e,Wt.indentationDiff=null,_e>0)return null}}return Wt.f(se,Wt)},innerMode:function(se){return se.block==Vt?{state:se.htmlState,mode:Re}:se.localState?{state:se.localState,mode:se.localMode}:{state:se,mode:Fn}},indent:function(se,Wt,_e){return se.block==Vt&&Re.indent?Re.indent(se.htmlState,Wt,_e):se.localState&&se.localMode.indent?se.localMode.indent(se.localState,Wt,_e):wt.Pass},blankLine:Ft,getType:ne,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Fn},"xml"),wt.defineMIME("text/markdown","markdown"),wt.defineMIME("text/x-markdown","markdown")})},98101:function(Qe,gn,Qt){(function(wt){wt(Qt(89780))})(function(wt){"use strict";wt.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var de=0;de-1&&Re.substring(qt+1,Re.length);if(Ce)return wt.findModeByExtension(Ce)},wt.findModeByName=function(Re){Re=Re.toLowerCase();for(var ue=0;ue0?kt.cmdState[kt.cmdState.length-1]:null}function Me(kt){var et=kt.cmdState.pop();et&&et.closeBracket()}function qt(kt){for(var et=kt.cmdState,nt=et.length-1;nt>=0;nt--){var gt=et[nt];if(gt.name!="DEFAULT")return gt}return{styleIdentifier:function(){return null}}}function Ce(kt,et,nt){return function(){this.name=kt,this.bracketNo=0,this.style=et,this.styles=nt,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var ge={};ge.importmodule=Ce("importmodule","tag",["string","builtin"]),ge.documentclass=Ce("documentclass","tag",["","atom"]),ge.usepackage=Ce("usepackage","tag",["atom"]),ge.begin=Ce("begin","tag",["atom"]),ge.end=Ce("end","tag",["atom"]),ge.label=Ce("label","tag",["atom"]),ge.ref=Ce("ref","tag",["atom"]),ge.eqref=Ce("eqref","tag",["atom"]),ge.cite=Ce("cite","tag",["atom"]),ge.bibitem=Ce("bibitem","tag",["atom"]),ge.Bibitem=Ce("Bibitem","tag",["atom"]),ge.RBibitem=Ce("RBibitem","tag",["atom"]),ge.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function pe(kt,et){kt.f=et}function ae(kt,et){var nt;if(kt.match(/^\\[a-zA-Z@]+/)){var gt=kt.current().slice(1);return nt=ge.hasOwnProperty(gt)?ge[gt]:ge.DEFAULT,nt=new nt,Re(et,nt),pe(et,De),nt.style}if(kt.match(/^\\[$&%#{}_]/)||kt.match(/^\\[,;!\/\\]/))return"tag";if(kt.match("\\["))return pe(et,function(pt,vt){return Te(pt,vt,"\\]")}),"keyword";if(kt.match("\\("))return pe(et,function(pt,vt){return Te(pt,vt,"\\)")}),"keyword";if(kt.match("$$"))return pe(et,function(pt,vt){return Te(pt,vt,"$$")}),"keyword";if(kt.match("$"))return pe(et,function(pt,vt){return Te(pt,vt,"$")}),"keyword";var lt=kt.next();if(lt=="%")return kt.skipToEnd(),"comment";if(lt=="}"||lt=="]"){if(nt=ue(et),nt)nt.closeBracket(lt),pe(et,De);else return"error";return"bracket"}else return lt=="{"||lt=="["?(nt=ge.DEFAULT,nt=new nt,Re(et,nt),"bracket"):/\d/.test(lt)?(kt.eatWhile(/[\w.%]/),"atom"):(kt.eatWhile(/[\w\-_]/),nt=qt(et),nt.name=="begin"&&(nt.argument=kt.current()),nt.styleIdentifier())}function Te(kt,et,nt){if(kt.eatSpace())return null;if(nt&&kt.match(nt))return pe(et,ae),"keyword";if(kt.match(/^\\[a-zA-Z@]+/))return"tag";if(kt.match(/^[a-zA-Z]+/))return"variable-2";if(kt.match(/^\\[$&%#{}_]/)||kt.match(/^\\[,;!\/]/)||kt.match(/^[\^_&]/))return"tag";if(kt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(kt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var gt=kt.next();return gt=="{"||gt=="}"||gt=="["||gt=="]"||gt=="("||gt==")"?"bracket":gt=="%"?(kt.skipToEnd(),"comment"):"error"}function De(kt,et){var nt=kt.peek(),gt;return nt=="{"||nt=="["?(gt=ue(et),gt.openBracket(nt),kt.eat(nt),pe(et,ae),"bracket"):/[ \t\r]/.test(nt)?(kt.eat(nt),null):(pe(et,ae),Me(et),ae(kt,et))}return{startState:function(){var kt=Se.inMathMode?function(et,nt){return Te(et,nt)}:ae;return{cmdState:[],f:kt}},copyState:function(kt){return{cmdState:kt.cmdState.slice(),f:kt.f}},token:function(kt,et){return et.f(kt,et)},blankLine:function(kt){kt.f=ae,kt.cmdState.length=0},lineComment:"%"}}),wt.defineMIME("text/x-stex","stex"),wt.defineMIME("text/x-latex","stex")})},15525:function(Qe,gn,Qt){(function(wt){wt(Qt(89780))})(function(wt){"use strict";var de={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},Se={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};wt.defineMode("xml",function(Re,ue){var Me=Re.indentUnit,qt={},Ce=ue.htmlMode?de:Se;for(var ge in Ce)qt[ge]=Ce[ge];for(var ge in ue)qt[ge]=ue[ge];var pe,ae;function Te(Zt,ke){function he(un){return ke.tokenize=un,un(Zt,ke)}var xe=Zt.next();if(xe=="<")return Zt.eat("!")?Zt.eat("[")?Zt.match("CDATA[")?he(et("atom","]]>")):null:Zt.match("--")?he(et("comment","-->")):Zt.match("DOCTYPE",!0,!0)?(Zt.eatWhile(/[\w\._\-]/),he(nt(1))):null:Zt.eat("?")?(Zt.eatWhile(/[\w\._\-]/),ke.tokenize=et("meta","?>"),"meta"):(pe=Zt.eat("/")?"closeTag":"openTag",ke.tokenize=De,"tag bracket");if(xe=="&"){var on;return Zt.eat("#")?Zt.eat("x")?on=Zt.eatWhile(/[a-fA-F\d]/)&&Zt.eat(";"):on=Zt.eatWhile(/[\d]/)&&Zt.eat(";"):on=Zt.eatWhile(/[\w\.\-:]/)&&Zt.eat(";"),on?"atom":"error"}else return Zt.eatWhile(/[^&<]/),null}Te.isInText=!0;function De(Zt,ke){var he=Zt.next();if(he==">"||he=="/"&&Zt.eat(">"))return ke.tokenize=Te,pe=he==">"?"endTag":"selfcloseTag","tag bracket";if(he=="=")return pe="equals",null;if(he=="<"){ke.tokenize=Te,ke.state=vt,ke.tagName=ke.tagStart=null;var xe=ke.tokenize(Zt,ke);return xe?xe+" tag error":"tag error"}else return/[\'\"]/.test(he)?(ke.tokenize=kt(he),ke.stringStartCol=Zt.column(),ke.tokenize(Zt,ke)):(Zt.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function kt(Zt){var ke=function(he,xe){for(;!he.eol();)if(he.next()==Zt){xe.tokenize=De;break}return"string"};return ke.isInAttribute=!0,ke}function et(Zt,ke){return function(he,xe){for(;!he.eol();){if(he.match(ke)){xe.tokenize=Te;break}he.next()}return Zt}}function nt(Zt){return function(ke,he){for(var xe;(xe=ke.next())!=null;){if(xe=="<")return he.tokenize=nt(Zt+1),he.tokenize(ke,he);if(xe==">")if(Zt==1){he.tokenize=Te;break}else return he.tokenize=nt(Zt-1),he.tokenize(ke,he)}return"meta"}}function gt(Zt,ke,he){this.prev=Zt.context,this.tagName=ke,this.indent=Zt.indented,this.startOfLine=he,(qt.doNotIndent.hasOwnProperty(ke)||Zt.context&&Zt.context.noIndent)&&(this.noIndent=!0)}function lt(Zt){Zt.context&&(Zt.context=Zt.context.prev)}function pt(Zt,ke){for(var he;;){if(!Zt.context||(he=Zt.context.tagName,!qt.contextGrabbers.hasOwnProperty(he)||!qt.contextGrabbers[he].hasOwnProperty(ke)))return;lt(Zt)}}function vt(Zt,ke,he){return Zt=="openTag"?(he.tagStart=ke.column(),Ct):Zt=="closeTag"?Ft:vt}function Ct(Zt,ke,he){return Zt=="word"?(he.tagName=ke.current(),ae="tag",_t):qt.allowMissingTagName&&Zt=="endTag"?(ae="tag bracket",_t(Zt,ke,he)):(ae="error",Ct)}function Ft(Zt,ke,he){if(Zt=="word"){var xe=ke.current();return he.context&&he.context.tagName!=xe&&qt.implicitlyClosed.hasOwnProperty(he.context.tagName)&<(he),he.context&&he.context.tagName==xe||qt.matchClosing===!1?(ae="tag",Ht):(ae="tag error",Vt)}else return qt.allowMissingTagName&&Zt=="endTag"?(ae="tag bracket",Ht(Zt,ke,he)):(ae="error",Vt)}function Ht(Zt,ke,he){return Zt!="endTag"?(ae="error",Ht):(lt(he),vt)}function Vt(Zt,ke,he){return ae="error",Ht(Zt,ke,he)}function _t(Zt,ke,he){if(Zt=="word")return ae="attribute",ne;if(Zt=="endTag"||Zt=="selfcloseTag"){var xe=he.tagName,on=he.tagStart;return he.tagName=he.tagStart=null,Zt=="selfcloseTag"||qt.autoSelfClosers.hasOwnProperty(xe)?pt(he,xe):(pt(he,xe),he.context=new gt(he,xe,on==he.indented)),vt}return ae="error",_t}function ne(Zt,ke,he){return Zt=="equals"?$t:(qt.allowMissing||(ae="error"),_t(Zt,ke,he))}function $t(Zt,ke,he){return Zt=="string"?me:Zt=="word"&&qt.allowUnquoted?(ae="string",_t):(ae="error",_t(Zt,ke,he))}function me(Zt,ke,he){return Zt=="string"?me:_t(Zt,ke,he)}return{startState:function(Zt){var ke={tokenize:Te,state:vt,indented:Zt||0,tagName:null,tagStart:null,context:null};return Zt!=null&&(ke.baseIndent=Zt),ke},token:function(Zt,ke){if(!ke.tagName&&Zt.sol()&&(ke.indented=Zt.indentation()),Zt.eatSpace())return null;pe=null;var he=ke.tokenize(Zt,ke);return(he||pe)&&he!="comment"&&(ae=null,ke.state=ke.state(pe||he,Zt,ke),ae&&(he=ae=="error"?he+" error":ae)),he},indent:function(Zt,ke,he){var xe=Zt.context;if(Zt.tokenize.isInAttribute)return Zt.tagStart==Zt.indented?Zt.stringStartCol+1:Zt.indented+Me;if(xe&&xe.noIndent)return wt.Pass;if(Zt.tokenize!=De&&Zt.tokenize!=Te)return he?he.match(/^(\s*)/)[0].length:0;if(Zt.tagName)return qt.multilineTagIndentPastTag!==!1?Zt.tagStart+Zt.tagName.length+2:Zt.tagStart+Me*(qt.multilineTagIndentFactor||1);if(qt.alignCDATA&&/$/,blockCommentStart:"",configuration:qt.htmlMode?"html":"xml",helperType:qt.htmlMode?"html":"xml",skipAttribute:function(Zt){Zt.state==$t&&(Zt.state=_t)},xmlCurrentTag:function(Zt){return Zt.tagName?{name:Zt.tagName,close:Zt.type=="closeTag"}:null},xmlCurrentContext:function(Zt){for(var ke=[],he=Zt.context;he;he=he.prev)he.tagName&&ke.push(he.tagName);return ke.reverse()}}}),wt.defineMIME("text/xml","xml"),wt.defineMIME("application/xml","xml"),wt.mimeModes.hasOwnProperty("text/html")||wt.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(Qe,gn,Qt){"use strict";Qt.d(gn,{$u:function(){return ge},BD:function(){return ni},E9:function(){return Ce},FF:function(){return Qi},FJ:function(){return vt},Hn:function(){return pt},KX:function(){return Ft},NB:function(){return Ot},S0:function(){return re},UL:function(){return pe},Vk:function(){return lt},Vm:function(){return St},YI:function(){return An},ZA:function(){return Se},Zt:function(){return ae},al:function(){return gi},bn:function(){return yi},bx:function(){return qe},g2:function(){return mi},h1:function(){return $t},hD:function(){return kn},l4:function(){return Me},rU:function(){return Et},s_:function(){return vi},uz:function(){return Pn},z6:function(){return Te}}),Qe=Qt.hmd(Qe),function(){var Pt;function Xo(a){var y=0;return function(){return yx&&(x=Math.max(0,b+x)),(E==null||E>b)&&(E=b),E=Number(E),0>E&&(E=Math.max(0,b+E)),x=Number(x||0);x=a.length?a.push(x):a.splice(y,0,x):ee("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function to(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):ee("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function Jn(){var a=Ii.pop();return a===void 0?[]:a}function ei(a){a.length=0,Ii.push(a)}function Gn(a){if(typeof a=="function"){if(a.className)return a.className;if(a.name)return a.name;var y=a.toString();if(y=y.substring(9,y.indexOf("(")).trim(),y!=="")return a._className=y}else if(Pe(a)&&a.constructor)return Gn(a.constructor);return typeof a}function _n(a){var y=a;return Pe(a)&&(a.text?y=a.text:a.name?y=a.name:a.key!==void 0?y=a.key:a.id!==void 0?y=a.id:a.constructor===Object&&(a.Text?y=a.Text:a.Name?y=a.Name:a.Key!==void 0?y=a.Key:a.Id!==void 0?y=a.Id:a.ID!==void 0&&(y=a.ID))),y===void 0?"undefined":y===null?"null":y.toString()}function Bi(a,y){if(a.hasOwnProperty(y))return!0;for(a=Object.getPrototypeOf(a);a&&a!==Function;){if(a.hasOwnProperty(y))return!0;var x=a.CA;if(x&&x[y])return!0;a=Object.getPrototypeOf(a)}return!1}function Ui(a,y,x){Object.defineProperty(no.prototype,a,{get:y,set:x})}function Oe(a){for(var y=[],x=0;256>x;x++)y["0123456789abcdef".charAt(x>>4)+"0123456789abcdef".charAt(x&15)]=String.fromCharCode(x);a.length%2&&(a="0"+a),x=[];for(var E=0,b=0;bx;x++)y[x]=x;for(x=E=0;256>x;x++)E=(E+y[x]+119)%256,b=y[x],y[x]=y[E],y[E]=b;E=x=0;for(var z="",tt=0;tt-1||z.indexOf("\xA9 1998-2021 Northwoods Software")>-1||z.indexOf("Not for distribution or production use")>-1||z.indexOf("gojs.net")>-1?"":z}var io=Ke.navigator!==void 0&&0this.key)return!1;a=a.s;var y=a.length,x=++this.Za,E=this.qf;if(E!==null)for(;xthis.key)return!1;var y=--this.Za;return 0<=y?(this.key=y,this.value=a.s[y],!0):(this.de(),!1)},mo.prototype.Ad=function(){return this.next()},mo.prototype.first=function(){var a=this.Bb;this.qa=a.Ja;var y=a.s;return this.Za=a=y.length-1,0<=a?(y=y[a],this.key=a,this.value=y):null},mo.prototype.any=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(a(y[x]))return!0;return!1},mo.prototype.all=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(!a(y[x]))return!1;return!0},mo.prototype.each=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)a(y[x]);return this},mo.prototype.map=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--)x.push(a(y[E]));return a=new He,a.s=x,a.xb(),a.iterator},mo.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--){var b=y[E];a(b)&&x.push(b)}return a=new He,a.s=x,a.xb(),a.iterator},mo.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},mo.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},fe.Object.defineProperties(mo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),mo.prototype.first=mo.prototype.first,mo.prototype.hasNext=mo.prototype.Ad,mo.prototype.next=mo.prototype.next,mo.prototype.reset=mo.prototype.reset,mo.className="ListIteratorBackwards";function He(a){eo(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&ee("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Pt=He.prototype,Pt.xb=function(){var a=this.Ja;a++,999999999a||a>=y.length)&&Zn(a,"0 <= i < length",He,"elt:i"),y[a]},Pt.get=function(a){return this.M(a)},Pt.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Zn(a,"0 <= i < length",He,"setElt:i"),this._isFrozen&&mn(this,a),x[a]=y},Pt.set=function(a,y){this.cd(a,y)},Pt.first=function(){var a=this.s;return a.length===0?null:a[0]},Pt.jc=function(){var a=this.s,y=a.length;return 0a&&Zn(a,">= 0",He,"insertAt:i"),this._isFrozen&&mn(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Pt.remove=function(a){if(a===null)return!1;this._isFrozen&&mn(this,a);var y=this.s;return a=y.indexOf(a),a===-1?!1:(a===y.length-1?y.pop():y.splice(a,1),this.xb(),!0)},Pt.delete=function(a){return this.remove(a)},Pt.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Zn(a,"0 <= i < length",He,"removeAt:i"),this._isFrozen&&mn(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Pt.removeRange=function(a,y){var x=this.s,E=x.length;if(0>a)a=0;else if(a>=E)return this;if(0>y)return this;if(y>=E&&(y=E-1),a>y)return this;this._isFrozen&&mn(this);for(var b=a,z=y+1;z=z)return this;if((0>y||y>=b-1)&&Zn(y,"0 <= from < length",He,"sortRange:from"),z===2)return x=E[y],b=E[y+1],0=b)E.sort(a);else for(y=E.slice(0,x),y.sort(a),a=0;a=b)for(x=E.slice(y),x.sort(a),a=y;a=this.s.length)return oo;var a=this.Sa;return a!==null?(a.reset(),a):new Vi(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return oo;var a=this.Hg;return a!==null?(a.reset(),a):new mo(this)}}}),He.prototype.reverse=He.prototype.reverse,He.prototype.sortRange=He.prototype.zi,He.prototype.sort=He.prototype.sort,He.prototype.toSet=He.prototype.Iv,He.prototype.toArray=He.prototype.Fa,He.prototype.removeRange=He.prototype.removeRange,He.prototype.removeAt=He.prototype.mb,He.prototype.delete=He.prototype.delete,He.prototype.remove=He.prototype.remove,He.prototype.insertAt=He.prototype.Gb,He.prototype.pop=He.prototype.pop,He.prototype.last=He.prototype.jc,He.prototype.first=He.prototype.first,He.prototype.set=He.prototype.set,He.prototype.setElt=He.prototype.cd,He.prototype.get=He.prototype.get,He.prototype.elt=He.prototype.M,He.prototype.indexOf=He.prototype.indexOf,He.prototype.has=He.prototype.has,He.prototype.contains=He.prototype.contains,He.prototype.clear=He.prototype.clear,He.prototype.addAll=He.prototype.addAll,He.prototype.push=He.prototype.push,He.prototype.add=He.prototype.add,He.prototype.thaw=He.prototype.ka,He.prototype.freeze=He.prototype.freeze,He.className="List";function qi(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}qi.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},qi.prototype.next=function(){var a=this.eg;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},qi.prototype.Ad=function(){return this.next()},qi.prototype.first=function(){var a=this.eg;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},qi.prototype.any=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},qi.prototype.all=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},qi.prototype.each=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},qi.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new He;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},qi.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new He;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},qi.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},qi.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},fe.Object.defineProperties(qi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),qi.prototype.first=qi.prototype.first,qi.prototype.hasNext=qi.prototype.Ad,qi.prototype.next=qi.prototype.next,qi.prototype.reset=qi.prototype.reset,qi.className="SetIterator";function ze(a){eo(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&ee("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Pt=ze.prototype,Pt.xb=function(){var a=this.Ja;a++,999999999=this.Sb)return oo;var a=this.Sa;return a!==null?(a.reset(),a):new qi(this)}}}),ze.prototype.toList=ze.prototype.Hv,ze.prototype.toArray=ze.prototype.Fa,ze.prototype.clear=ze.prototype.clear,ze.prototype.retainAll=ze.prototype.pA,ze.prototype.removeAll=ze.prototype.hp,ze.prototype.delete=ze.prototype.delete,ze.prototype.remove=ze.prototype.remove,ze.prototype.first=ze.prototype.first,ze.prototype.containsAny=ze.prototype.Ty,ze.prototype.containsAll=ze.prototype.Sy,ze.prototype.has=ze.prototype.has,ze.prototype.contains=ze.prototype.contains,ze.prototype.addAll=ze.prototype.addAll,ze.prototype.add=ze.prototype.add,ze.prototype.thaw=ze.prototype.ka,ze.prototype.freeze=ze.prototype.freeze;var Jr=1;ze.className="Set",ze.uniqueHash=eo,ze.hashIdUnique=Or,ze.hashId=Zo;function Jo(a){this.ma=a,this.qa=a.Ja,this.sa=null}Jo.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Jo.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=this.key=a=y.key,!0):(this.de(),!1)},Jo.prototype.Ad=function(){return this.next()},Jo.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.value=this.key=a=a.key):null},Jo.prototype.any=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Jo.prototype.all=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Jo.prototype.each=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;)a(y.key),y=y.va;return this},Jo.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new He;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},Jo.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new He;for(y=y.ea;y!==null;){var E=y.key;a(E)&&x.add(E),y=y.va}return x.iterator},Jo.prototype.de=function(){this.value=this.key=null,this.qa=-1},Jo.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},fe.Object.defineProperties(Jo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Jo.prototype.first=Jo.prototype.first,Jo.prototype.hasNext=Jo.prototype.Ad,Jo.prototype.next=Jo.prototype.next,Jo.prototype.reset=Jo.prototype.reset,Jo.className="MapKeySetIterator";function Oi(a){ze.call(this),eo(this),this._isFrozen=!0,this.ma=a}Ae(Oi,ze),Pt=Oi.prototype,Pt.freeze=function(){return this},Pt.ka=function(){return this},Pt.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Pt.add=function(){ee("This Set is read-only: "+this.toString())},Pt.contains=function(a){return this.ma.contains(a)},Pt.has=function(a){return this.contains(a)},Pt.remove=function(){ee("This Set is read-only: "+this.toString())},Pt.delete=function(a){return this.remove(a)},Pt.clear=function(){ee("This Set is read-only: "+this.toString())},Pt.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Oi.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Oi.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Oi.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Oi.prototype.map=function(a){for(var y=new ze,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},Oi.prototype.filter=function(a){for(var y=new ze,x=this.ma.ea;x!==null;){var E=x.key;a(E)&&y.add(E),x=x.va}return y},Oi.prototype.copy=function(){return new Oi(this.ma)},Oi.prototype.Iv=function(){var a=new ze,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Oi.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),x=0,E;for(E in a)y[x]=a[E].key,x++;return y},Oi.prototype.Hv=function(){var a=new He,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},fe.Object.defineProperties(Oi.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?oo:new Jo(this.ma)}}}),Oi.prototype.toList=Oi.prototype.Hv,Oi.prototype.toArray=Oi.prototype.Fa,Oi.prototype.toSet=Oi.prototype.Iv,Oi.prototype.first=Oi.prototype.first,Oi.prototype.clear=Oi.prototype.clear,Oi.prototype.delete=Oi.prototype.delete,Oi.prototype.remove=Oi.prototype.remove,Oi.prototype.has=Oi.prototype.has,Oi.prototype.contains=Oi.prototype.contains,Oi.prototype.add=Oi.prototype.add,Oi.prototype.thaw=Oi.prototype.ka,Oi.prototype.freeze=Oi.prototype.freeze,Oi.className="MapKeySet";function Bo(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}Bo.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},Bo.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},Bo.prototype.Ad=function(){return this.next()},Bo.prototype.first=function(){var a=this.ma;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},Bo.prototype.any=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Bo.prototype.all=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Bo.prototype.each=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},Bo.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new He;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Bo.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new He;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},Bo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},Bo.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},fe.Object.defineProperties(Bo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Bo.prototype.first=Bo.prototype.first,Bo.prototype.hasNext=Bo.prototype.Ad,Bo.prototype.next=Bo.prototype.next,Bo.prototype.reset=Bo.prototype.reset,Bo.className="MapValueSetIterator";function Sa(a,y){this.key=a,this.value=y,this.ll=this.va=null}Sa.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Sa.className="KeyValuePair";function dr(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}dr.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},dr.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.key=y.key,this.value=y.value,!0):(this.de(),!1)},dr.prototype.Ad=function(){return this.next()},dr.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.key=a.key,this.value=a.value,a):null},dr.prototype.any=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},dr.prototype.all=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},dr.prototype.each=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y),y=y.va;return this},dr.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new He;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},dr.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new He;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},dr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},dr.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},fe.Object.defineProperties(dr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),dr.prototype.first=dr.prototype.first,dr.prototype.hasNext=dr.prototype.Ad,dr.prototype.next=dr.prototype.next,dr.prototype.reset=dr.prototype.reset,dr.className="MapIterator";function xn(a){eo(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.jf=this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&ee("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Pt=xn.prototype,Pt.xb=function(){var a=this.Ja;a++,999999999=this.count)return oo;var a=this.Sa;return a!==null?(a.reset(),a):new dr(this)}},iteratorKeys:{get:function(){return 0>=this.count?oo:new Jo(this)}},iteratorValues:{get:function(){if(0>=this.count)return oo;var a=this.jf;return a!==null?(a.reset(),a):new Bo(this)}}}),xn.prototype.toKeySet=xn.prototype.Lf,xn.prototype.toArray=xn.prototype.Fa,xn.prototype.clear=xn.prototype.clear,xn.prototype.delete=xn.prototype.delete,xn.prototype.remove=xn.prototype.remove,xn.prototype.get=xn.prototype.get,xn.prototype.getValue=xn.prototype.I,xn.prototype.has=xn.prototype.has,xn.prototype.contains=xn.prototype.contains,xn.prototype.first=xn.prototype.first,xn.prototype.addAll=xn.prototype.addAll,xn.prototype.set=xn.prototype.set,xn.prototype.add=xn.prototype.add,xn.prototype.thaw=xn.prototype.ka,xn.prototype.freeze=xn.prototype.freeze,xn.className="Map";function jt(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):ee("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var Dr,qr,Il,xa,cl;jt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},jt.prototype.h=function(a,y){return this.x=a,this.y=y,this},jt.prototype.sg=function(a,y){return this.x=a,this.y=y,this},jt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},jt.prototype.copy=function(){var a=new jt;return a.x=this.x,a.y=this.y,a},Pt=jt.prototype,Pt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Pt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Pt.freeze=function(){return this._isFrozen=!0,this},Pt.ka=function(){return Object.isFrozen(this)&&ee("cannot thaw constant: "+this),this._isFrozen=!1,this};function xu(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new jt(x,b)}return new jt}function td(a){return a.x.toString()+" "+a.y.toString()}Pt.toString=function(){return"Point("+this.x+","+this.y+")"},Pt.D=function(a){return a instanceof jt?this.x===a.x&&this.y===a.y:!1},Pt.hi=function(a,y){return this.x===a&&this.y===y},Pt.Xa=function(a){return Jt.B(this.x,a.x)&&Jt.B(this.y,a.y)},Pt.add=function(a){return this.x+=a.x,this.y+=a.y,this},Pt.re=function(a){return this.x-=a.x,this.y-=a.y,this},Pt.offset=function(a,y){return this.x+=a,this.y+=y,this},jt.prototype.rotate=function(a){if(a===0)return this;var y=this.x,x=this.y;if(y===0&&x===0)return this;if(360<=a?a-=360:0>a&&(a+=360),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));return this.x=a*y-E*x,this.y=E*y+a*x,this},Pt=jt.prototype,Pt.scale=function(a,y){return this.x*=a,this.y*=y,this},Pt.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Pt.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Pt.normalize=function(){var a=this.x,y=this.y,x=Math.sqrt(a*a+y*y);return 0y?270:0;if(y===0)return 0a?x=0>y?x+180:180-x:0>y&&(x=360-x),x}Pt.Ry=function(a,y){return Jt.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Pt.fA=function(a,y,x,E){return Jt.qh(a,y,x,E,this.x,this.y,this),this},Pt.gA=function(a,y){return Jt.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Pt.uA=function(a,y,x,E){return Jt.No(this.x,this.y,a,y,x,E,this),this},Pt.vA=function(a,y){return Jt.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Pt.xi=function(a,y){return this.x=a.x+y.x*a.width+y.offsetX,this.y=a.y+y.y*a.height+y.offsetY,this},Pt.yi=function(a,y,x,E,b){return this.x=a+b.x*x+b.offsetX,this.y=y+b.y*E+b.offsetY,this},Pt.transform=function(a){return a.Ga(this),this};function Lo(a,y){return y.Cd(a),a}function qo(a,y,x,E,b,z){var tt=b-x,ot=z-E,rt=tt*tt+ot*ot;x-=a,E-=y;var at=-x*tt-E*ot;return 0>=at||at>=rt?(tt=b-a,ot=z-y,Math.min(x*x+E*E,tt*tt+ot*ot)):(a=tt*E-ot*x,a*a/rt)}function ra(a,y,x,E){return a=x-a,y=E-y,a*a+y*y}function hi(a,y,x,E){return a=x-a,y=E-y,a===0?0y?270:0:y===0?0a?E=0>y?E+180:180-E:0>y&&(E=360-E),E)}Pt.w=function(){return isFinite(this.x)&&isFinite(this.y)},jt.alloc=function(){var a=Un.pop();return a===void 0?new jt:a},jt.allocAt=function(a,y){var x=Un.pop();return x===void 0?new jt(a,y):(x.x=a,x.y=y,x)},jt.free=function(a){Un.push(a)},jt.prototype.isReal=jt.prototype.w,jt.prototype.setSpot=jt.prototype.yi,jt.prototype.setRectSpot=jt.prototype.xi,jt.prototype.snapToGridPoint=jt.prototype.vA,jt.prototype.snapToGrid=jt.prototype.uA,jt.prototype.projectOntoLineSegmentPoint=jt.prototype.gA,jt.prototype.projectOntoLineSegment=jt.prototype.fA,jt.intersectingLineSegments=function(a,y,x,E,b,z,tt,ot){return Jt.Rl(a,y,x,E,b,z,tt,ot)},jt.prototype.compareWithLineSegmentPoint=jt.prototype.Ry,jt.compareWithLineSegment=function(a,y,x,E,b,z){return Jt.Fl(a,y,x,E,b,z)},jt.prototype.direction=jt.prototype.direction,jt.prototype.directionPoint=jt.prototype.ab,jt.prototype.normalize=jt.prototype.normalize,jt.prototype.distanceSquared=jt.prototype.zd,jt.prototype.distanceSquaredPoint=jt.prototype.Bf,jt.prototype.scale=jt.prototype.scale,jt.prototype.rotate=jt.prototype.rotate,jt.prototype.offset=jt.prototype.offset,jt.prototype.subtract=jt.prototype.re,jt.prototype.add=jt.prototype.add,jt.prototype.equalsApprox=jt.prototype.Xa,jt.prototype.equalTo=jt.prototype.hi,jt.prototype.equals=jt.prototype.D,jt.prototype.set=jt.prototype.set,jt.prototype.setTo=jt.prototype.sg;var Un=[];jt.className="Point",jt.parse=xu,jt.stringify=td,jt.distanceLineSegmentSquared=qo,jt.distanceSquared=ra,jt.direction=hi,jt.Origin=Dr=new jt(0,0).ja(),jt.InfiniteTopLeft=qr=new jt(-1/0,-1/0).ja(),jt.InfiniteBottomRight=Il=new jt(1/0,1/0).ja(),jt.SixPoint=xa=new jt(6,6).ja(),jt.NoPoint=cl=new jt(NaN,NaN).ja(),jt.parse=xu,jt.stringify=td,jt.distanceLineSegmentSquared=qo,jt.distanceSquared=ra,jt.direction=hi;function We(a,y){a===void 0?this.height=this.width=0:typeof a=="number"&&(0<=a||isNaN(a))&&typeof y=="number"&&(0<=y||isNaN(y))?(this.width=a,this.height=y):ee("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var $n,ji,Oo,_o,Wo,vr,$o;We.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},We.prototype.h=function(a,y){return this.width=a,this.height=y,this},We.prototype.sg=function(a,y){return this.width=a,this.height=y,this},We.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},We.prototype.copy=function(){var a=new We;return a.width=this.width,a.height=this.height,a},Pt=We.prototype,Pt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Pt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Pt.freeze=function(){return this._isFrozen=!0,this},Pt.ka=function(){return Object.isFrozen(this)&&ee("cannot thaw constant: "+this),this._isFrozen=!1,this};function Pa(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new We(x,b)}return new We}function Os(a){return a.width.toString()+" "+a.height.toString()}Pt.toString=function(){return"Size("+this.width+","+this.height+")"},Pt.D=function(a){return a instanceof We?this.width===a.width&&this.height===a.height:!1},Pt.hi=function(a,y){return this.width===a&&this.height===y},Pt.Xa=function(a){return Jt.B(this.width,a.width)&&Jt.B(this.height,a.height)},Pt.Bc=function(a,y){return a=this.width+a,this.width=0<=a?a:0,y=this.height+y,this.height=0<=y?y:0,this},Pt.w=function(){return isFinite(this.width)&&isFinite(this.height)},We.alloc=function(){var a=Fl.pop();return a===void 0?new We:a},We.free=function(a){Fl.push(a)},We.prototype.isReal=We.prototype.w,We.prototype.inflate=We.prototype.Bc,We.prototype.equalsApprox=We.prototype.Xa,We.prototype.equalTo=We.prototype.hi,We.prototype.equals=We.prototype.D,We.prototype.set=We.prototype.set,We.prototype.setTo=We.prototype.sg;var Fl=[];We.className="Size",We.parse=Pa,We.stringify=Os,We.ZeroSize=$n=new We(0,0).ja(),We.OneSize=ji=new We(1,1).ja(),We.SixSize=Oo=new We(6,6).ja(),We.EightSize=_o=new We(8,8).ja(),We.TenSize=Wo=new We(10,10).ja(),We.InfiniteSize=vr=new We(1/0,1/0).ja(),We.NoSize=$o=new We(NaN,NaN).ja(),We.parse=Pa,We.stringify=Os;function ce(a,y,x,E){a===void 0?this.height=this.width=this.y=this.x=0:typeof a=="number"&&typeof y=="number"&&typeof x=="number"&&(0<=x||isNaN(x))&&typeof E=="number"&&(0<=E||isNaN(E))?(this.x=a,this.y=y,this.width=x,this.height=E):a instanceof jt?(x=a.x,a=a.y,y instanceof jt?(E=y.x,y=y.y,this.x=Math.min(x,E),this.y=Math.min(a,y),this.width=Math.abs(x-E),this.height=Math.abs(a-y)):y instanceof We?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):ee("Incorrect second argument supplied to Rect constructor "+y)):ee("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}Pt=ce.prototype,Pt.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Pt.h=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this};function Bs(a,y,x){a.width=y,a.height=x}Pt.sg=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this},Pt.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Pt.dd=function(a){return this.x=a.x,this.y=a.y,this},Pt.tA=function(a){return this.width=a.width,this.height=a.height,this},ce.prototype.copy=function(){var a=new ce;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Pt=ce.prototype,Pt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Pt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Pt.freeze=function(){return this._isFrozen=!0,this},Pt.ka=function(){return Object.isFrozen(this)&&ee("cannot thaw constant: "+this),this._isFrozen=!1,this};function Pu(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;(E=a[y++])&&(b=parseFloat(E));for(var z=0;a[y]==="";)y++;(E=a[y++])&&(z=parseFloat(E));for(var tt=0;a[y]==="";)y++;return(E=a[y++])&&(tt=parseFloat(E)),new ce(x,b,z,tt)}return new ce}function ja(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Pt.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Pt.D=function(a){return a instanceof ce?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Pt.hi=function(a,y,x,E){return this.x===a&&this.y===y&&this.width===x&&this.height===E},Pt.Xa=function(a){return Jt.B(this.x,a.x)&&Jt.B(this.y,a.y)&&Jt.B(this.width,a.width)&&Jt.B(this.height,a.height)};function wu(a,y){return Jt.$(a.x,y.x)&&Jt.$(a.y,y.y)&&Jt.$(a.width,y.width)&&Jt.$(a.height,y.height)}Pt.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Pt.Re=function(a){return this.x<=a.x&&a.x+a.width<=this.x+this.width&&this.y<=a.y&&a.y+a.height<=this.y+this.height},Pt.contains=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),this.x<=a&&a+x<=this.x+this.width&&this.y<=y&&y+E<=this.y+this.height},Pt.offset=function(a,y){return this.x+=a,this.y+=y,this},Pt.Bc=function(a,y){return tr(this,y,a,y,a)},Pt.Co=function(a){return tr(this,a.top,a.right,a.bottom,a.left)},Pt.Fv=function(a){return tr(this,-a.top,-a.right,-a.bottom,-a.left)},Pt.Hz=function(a,y,x,E){return tr(this,a,y,x,E)};function tr(a,y,x,E,b){var z=a.width;return x+b<=-z?(a.x+=z/2,a.width=0):(a.x-=b,a.width+=x+b),x=a.height,y+E<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+E),a}Pt.Ex=function(a){return _a(this,a.x,a.y,a.width,a.height)},Pt.Uu=function(a,y,x,E){return _a(this,a,y,x,E)};function _a(a,y,x,E,b){var z=Math.max(a.x,y),tt=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+E),x=Math.min(a.y+a.height,x+b),a.x=z,a.y=tt,a.width=Math.max(0,y-z),a.height=Math.max(0,x-tt),a}Pt.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Pt.Vu=function(a,y,x,E){var b=this.width,z=this.x;return b!==1/0&&x!==1/0&&(b+=z,x+=a,isNaN(x)||isNaN(b)||z>x||a>b)?!1:(a=this.height,x=this.y,!(a!==1/0&&E!==1/0&&(a+=x,E+=y,isNaN(E)||isNaN(a)||x>E||y>a)))};function $a(a,y){var x=a.width,E=a.x,b=y.x-10;return E>y.width+10+10+b||b>x+E?!1:(x=a.height,a=a.y,E=y.y-10,!(a>y.height+10+10+E||E>x+a))}Pt.Ye=function(a){return Co(this,a.x,a.y,0,0)},Pt.ed=function(a){return Co(this,a.x,a.y,a.width,a.height)},Pt.Kv=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),Co(this,a,y,x,E)};function Co(a,y,x,E,b){var z=Math.min(a.x,y),tt=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+E),x=Math.max(a.y+a.height,x+b),a.x=z,a.y=tt,a.width=y-z,a.height=x-tt,a}Pt.yi=function(a,y,x){return this.x=a-x.offsetX-x.x*this.width,this.y=y-x.offsetY-x.y*this.height,this};function Lr(a,y,x,E,b,z,tt,ot){return tt===void 0&&(tt=0),ot===void 0&&(ot=0),a<=b&&b+tt<=a+x&&y<=z&&z+ot<=y+E}function Cu(a,y,x,E,b,z,tt,ot){return a>tt+b||b>x+a?!1:!(y>ot+z||z>E+y)}Pt.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Pt.Mz=function(){return this.width===0&&this.height===0},ce.alloc=function(){var a=sa.pop();return a===void 0?new ce:a},ce.allocAt=function(a,y,x,E){var b=sa.pop();return b===void 0?new ce(a,y,x,E):b.h(a,y,x,E)},ce.free=function(a){sa.push(a)},fe.Object.defineProperties(ce.prototype,{left:{get:function(){return this.x},set:function(a){this.x=a}},top:{get:function(){return this.y},set:function(a){this.y=a}},right:{get:function(){return this.x+this.width},set:function(a){this.x+=a-(this.x+this.width)}},bottom:{get:function(){return this.y+this.height},set:function(a){this.y+=a-(this.y+this.height)}},position:{get:function(){return new jt(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new We(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new jt(this.x+this.width/2,this.y+this.height/2)},set:function(a){this.x=a.x-this.width/2,this.y=a.y-this.height/2}},centerX:{get:function(){return this.x+this.width/2},set:function(a){this.x=a-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(a){this.y=a-this.height/2}}}),ce.prototype.isEmpty=ce.prototype.Mz,ce.prototype.isReal=ce.prototype.w,ce.intersectsLineSegment=function(a,y,x,E,b,z,tt,ot){return Jt.Fx(a,y,x,E,b,z,tt,ot)},ce.prototype.setSpot=ce.prototype.yi,ce.prototype.union=ce.prototype.Kv,ce.prototype.unionRect=ce.prototype.ed,ce.prototype.unionPoint=ce.prototype.Ye,ce.prototype.intersects=ce.prototype.Vu,ce.prototype.intersectsRect=ce.prototype.Yc,ce.prototype.intersect=ce.prototype.Uu,ce.prototype.intersectRect=ce.prototype.Ex,ce.prototype.grow=ce.prototype.Hz,ce.prototype.subtractMargin=ce.prototype.Fv,ce.prototype.addMargin=ce.prototype.Co,ce.prototype.inflate=ce.prototype.Bc,ce.prototype.offset=ce.prototype.offset,ce.prototype.contains=ce.prototype.contains,ce.prototype.containsRect=ce.prototype.Re,ce.prototype.containsPoint=ce.prototype.ca,ce.prototype.equalsApprox=ce.prototype.Xa,ce.prototype.equalTo=ce.prototype.hi,ce.prototype.equals=ce.prototype.D,ce.prototype.setSize=ce.prototype.tA,ce.prototype.setPoint=ce.prototype.dd,ce.prototype.set=ce.prototype.set,ce.prototype.setTo=ce.prototype.sg;var _r=null,hh=null,sa=[];ce.className="Rect",ce.parse=Pu,ce.stringify=ja,ce.contains=Lr,ce.intersects=Cu,ce.ZeroRect=_r=new ce(0,0,0,0).ja(),ce.NoRect=hh=new ce(NaN,NaN,NaN,NaN).ja(),ce.parse=Pu,ce.stringify=ja,ce.contains=Lr,ce.intersects=Cu;function Rn(a,y,x,E){a===void 0?this.left=this.bottom=this.right=this.top=0:y===void 0?this.left=this.bottom=this.right=this.top=a:x===void 0?(this.top=a,this.right=y,this.bottom=a,this.left=y):E!==void 0?(this.top=a,this.right=y,this.bottom=x,this.left=E):ee("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}Rn.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Rn.prototype.sg=function(a,y,x,E){return this.top=a,this.right=y,this.bottom=x,this.left=E,this},Rn.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Rn.prototype.copy=function(){var a=new Rn;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Pt=Rn.prototype,Pt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Pt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Pt.freeze=function(){return this._isFrozen=!0,this},Pt.ka=function(){return Object.isFrozen(this)&&ee("cannot thaw constant: "+this),this._isFrozen=!1,this};function Dg(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=NaN;a[y]==="";)y++;var E=a[y++];if(E&&(x=parseFloat(E)),isNaN(x))return new Rn;for(var b=NaN;a[y]==="";)y++;if((E=a[y++])&&(b=parseFloat(E)),isNaN(b))return new Rn(x);for(var z=NaN;a[y]==="";)y++;if((E=a[y++])&&(z=parseFloat(E)),isNaN(z))return new Rn(x,b);for(var tt=NaN;a[y]==="";)y++;return(E=a[y++])&&(tt=parseFloat(E)),isNaN(tt)?new Rn(x,b):new Rn(x,b,z,tt)}return new Rn}function nd(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Pt.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Pt.D=function(a){return a instanceof Rn?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Pt.hi=function(a,y,x,E){return this.top===a&&this.right===y&&this.bottom===x&&this.left===E},Pt.Xa=function(a){return Jt.B(this.top,a.top)&&Jt.B(this.right,a.right)&&Jt.B(this.bottom,a.bottom)&&Jt.B(this.left,a.left)},Pt.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Rn.alloc=function(){var a=Hd.pop();return a===void 0?new Rn:a},Rn.free=function(a){Hd.push(a)},Rn.prototype.isReal=Rn.prototype.w,Rn.prototype.equalsApprox=Rn.prototype.Xa,Rn.prototype.equalTo=Rn.prototype.hi,Rn.prototype.equals=Rn.prototype.D,Rn.prototype.set=Rn.prototype.set,Rn.prototype.setTo=Rn.prototype.sg;var Ra=null,Qd=null,Hd=[];Rn.className="Margin",Rn.parse=Dg,Rn.stringify=nd,Rn.ZeroMargin=Ra=new Rn(0,0,0,0).ja(),Rn.TwoMargin=Qd=new Rn(2,2,2,2).ja(),Rn.parse=Dg,Rn.stringify=nd;function cn(a,y,x,E){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),E===void 0&&(E=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=E),this._isFrozen=!1}var er,yr,Ys,_l,Nl,pi,dh,tl,js,ms,pl,ml,Ls,wa,Ge,ri,wi,Di,uo,Fi,zo,jo,$r,Cr,Ms,ar,id,gh,vl,el,jr,vs,Mr,Er,nl,$l;cn.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},cn.prototype.sg=function(a,y,x,E){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=E,this},cn.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},cn.prototype.copy=function(){var a=new cn;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Pt=cn.prototype,Pt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Pt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Pt.freeze=function(){return this._isFrozen=!0,this},Pt.ka=function(){return Object.isFrozen(this)&&ee("cannot thaw constant: "+this),this._isFrozen=!1,this};function gr(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function bg(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return er;if(a==="TopLeft")return yr;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Ys;if(a==="TopRight")return _l;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Nl;if(a==="Center")return pi;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return dh;if(a==="BottomLeft")return tl;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return js;if(a==="BottomRight")return ms;if(a==="TopSide")return pl;if(a==="LeftSide")return ml;if(a==="RightSide")return Ls;if(a==="BottomSide")return wa;if(a==="TopBottomSides")return Ge;if(a==="LeftRightSides")return ri;if(a==="TopLeftSides")return wi;if(a==="TopRightSides")return Di;if(a==="BottomLeftSides")return uo;if(a==="BottomRightSides")return Fi;if(a==="NotTopSide")return zo;if(a==="NotLeftSide")return jo;if(a==="NotRightSide")return $r;if(a==="NotBottomSide")return Cr;if(a==="AllSides")return Ms;if(a==="Default")return ar;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E!==void 0&&0a&&(a+=360),a===0)return this;if(this.translate(y,x),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.m12*a+this.m22*E,z=this.m11*-E+this.m21*a,tt=this.m12*-E+this.m22*a;return this.m11=this.m11*a+this.m21*E,this.m12=b,this.m21=z,this.m22=tt,this.translate(-y,-x),this},Pt=Hn.prototype,Pt.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Pt.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Pt.Ga=function(a){var y=a.x,x=a.y;return a.h(y*this.m11+x*this.m21+this.dx,y*this.m12+x*this.m22+this.dy)},Pt.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=a.x,E=a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Pt.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=1.25*a.x,E=1.2*a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Pt.pp=function(a){var y=a.x,x=a.y,E=y+a.width,b=x+a.height,z=this.m11,tt=this.m12,ot=this.m21,rt=this.m22,at=this.dx,ut=this.dy,ft=y*z+x*ot+at,mt=y*tt+x*rt+ut,yt=E*z+x*ot+at,At=E*tt+x*rt+ut;return x=y*z+b*ot+at,y=y*tt+b*rt+ut,z=E*z+b*ot+at,E=E*tt+b*rt+ut,b=Math.min(ft,yt),ft=Math.max(ft,yt),yt=Math.min(mt,At),mt=Math.max(mt,At),b=Math.min(b,x),ft=Math.max(ft,x),yt=Math.min(yt,y),mt=Math.max(mt,y),b=Math.min(b,z),ft=Math.max(ft,z),yt=Math.min(yt,E),mt=Math.max(mt,E),a.h(b,yt,ft-b,mt-yt),a},Hn.alloc=function(){var a=qf.pop();return a===void 0?new Hn:a},Hn.free=function(a){qf.push(a)},Hn.prototype.transformRect=Hn.prototype.pp,Hn.prototype.transformPoint=Hn.prototype.Ga,Hn.prototype.scale=Hn.prototype.scale,Hn.prototype.translate=Hn.prototype.translate,Hn.prototype.rotate=Hn.prototype.rotate,Hn.prototype.invert=Hn.prototype.Vj,Hn.prototype.multiplyInverted=Hn.prototype.bv,Hn.prototype.multiply=Hn.prototype.multiply,Hn.prototype.reset=Hn.prototype.reset,Hn.prototype.isIdentity=Hn.prototype.ws,Hn.prototype.equals=Hn.prototype.D,Hn.prototype.setTransform=Hn.prototype.setTransform,Hn.prototype.set=Hn.prototype.set;var qf=[];Hn.className="Transform",Hn.xF="54a702f3e53909c447824c6706603faf4c";var Jt={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Jt.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);Jt.Uv=y}return 1>a?(x=1/a,2e3>=x?1/y[x|0]:Math.sqrt(a)):2e3>=a?y[a|0]:Math.sqrt(a)},B:function(a,y){return a-=y,.5>a&&-.5a&&-5e-8=b&&(b=1e-6),aut-at)if(a-x>b||x-a>b){if(z=(E-y)/(x-a)*(z-a)+y,z-b<=tt&&tt<=z+b)return!0}else return!0;else if(y-E>b||E-y>b){if(tt=(x-a)/(E-y)*(tt-y)+a,tt-b<=z&&z<=tt+b)return!0}else return!0;return!1},cs:function(a,y,x,E,b,z,tt,ot,rt,at,ut,ft){if(Jt.Yb(a,y,tt,ot,ft,x,E)&&Jt.Yb(a,y,tt,ot,ft,b,z))return Jt.Yb(a,y,tt,ot,ft,at,ut);var mt=(a+x)/2,yt=(y+E)/2,At=(x+b)/2,Bt=(E+z)/2;b=(b+tt)/2,z=(z+ot)/2,E=(mt+At)/2,x=(yt+Bt)/2,At=(At+b)/2,Bt=(Bt+z)/2;var Dt=(E+At)/2,It=(x+Bt)/2;return Jt.cs(a,y,mt,yt,E,x,Dt,It,rt,at,ut,ft)||Jt.cs(Dt,It,At,Bt,b,z,tt,ot,rt,at,ut,ft)},ax:function(a,y,x,E,b,z,tt,ot,rt){var at=(x+b)/2,ut=(E+z)/2;return rt.h((((a+x)/2+at)/2+(at+(b+tt)/2)/2)/2,(((y+E)/2+ut)/2+(ut+(z+ot)/2)/2)/2),rt},My:function(a,y,x,E,b,z,tt,ot){var rt=(x+b)/2,at=(E+z)/2;return hi(((a+x)/2+rt)/2,((y+E)/2+at)/2,(rt+(b+tt)/2)/2,(at+(z+ot)/2)/2)},Dl:function(a,y,x,E,b,z,tt,ot,rt,at){if(Jt.Yb(a,y,tt,ot,rt,x,E)&&Jt.Yb(a,y,tt,ot,rt,b,z))Co(at,a,y,0,0),Co(at,tt,ot,0,0);else{var ut=(a+x)/2,ft=(y+E)/2,mt=(x+b)/2,yt=(E+z)/2;b=(b+tt)/2,z=(z+ot)/2,E=(ut+mt)/2,x=(ft+yt)/2,mt=(mt+b)/2,yt=(yt+z)/2;var At=(E+mt)/2,Bt=(x+yt)/2;Jt.Dl(a,y,ut,ft,E,x,At,Bt,rt,at),Jt.Dl(At,Bt,mt,yt,b,z,tt,ot,rt,at)}return at},Qe:function(a,y,x,E,b,z,tt,ot,rt,at){if(Jt.Yb(a,y,tt,ot,rt,x,E)&&Jt.Yb(a,y,tt,ot,rt,b,z))at.length===0&&(at.push(a),at.push(y)),at.push(tt),at.push(ot);else{var ut=(a+x)/2,ft=(y+E)/2,mt=(x+b)/2,yt=(E+z)/2;b=(b+tt)/2,z=(z+ot)/2,E=(ut+mt)/2,x=(ft+yt)/2,mt=(mt+b)/2,yt=(yt+z)/2;var At=(E+mt)/2,Bt=(x+yt)/2;Jt.Qe(a,y,ut,ft,E,x,At,Bt,rt,at),Jt.Qe(At,Bt,mt,yt,b,z,tt,ot,rt,at)}return at},jv:function(a,y,x,E,b,z,tt,ot,rt,at){if(Jt.Yb(a,y,b,z,at,x,E))return Jt.Yb(a,y,b,z,at,ot,rt);var ut=(a+x)/2,ft=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var mt=(ut+x)/2,yt=(ft+E)/2;return Jt.jv(a,y,ut,ft,mt,yt,tt,ot,rt,at)||Jt.jv(mt,yt,x,E,b,z,tt,ot,rt,at)},OA:function(a,y,x,E,b,z,tt){return tt.h(((a+x)/2+(x+b)/2)/2,((y+E)/2+(E+z)/2)/2),tt},iv:function(a,y,x,E,b,z,tt,ot){if(Jt.Yb(a,y,b,z,tt,x,E))Co(ot,a,y,0,0),Co(ot,b,z,0,0);else{var rt=(a+x)/2,at=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ut=(rt+x)/2,ft=(at+E)/2;Jt.iv(a,y,rt,at,ut,ft,tt,ot),Jt.iv(ut,ft,x,E,b,z,tt,ot)}return ot},ep:function(a,y,x,E,b,z,tt,ot){if(Jt.Yb(a,y,b,z,tt,x,E))ot.length===0&&(ot.push(a),ot.push(y)),ot.push(b),ot.push(z);else{var rt=(a+x)/2,at=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ut=(rt+x)/2,ft=(at+E)/2;Jt.ep(a,y,rt,at,ut,ft,tt,ot),Jt.ep(ut,ft,x,E,b,z,tt,ot)}return ot},Eo:function(a,y,x,E,b,z,tt,ot,rt,at,ut,ft,mt,yt){if(Jt.Yb(a,y,tt,ot,mt,x,E)&&Jt.Yb(a,y,tt,ot,mt,b,z))return!Jt.Rl(a,y,tt,ot,rt,at,ut,ft)||(mt=(a-tt)*(at-ft)-(y-ot)*(rt-ut),mt===0)?!1:(yt.h(((a*ot-y*tt)*(rt-ut)-(a-tt)*(rt*ft-at*ut))/mt,((a*ot-y*tt)*(at-ft)-(y-ot)*(rt*ft-at*ut))/mt),!0);var At=(a+x)/2,Bt=(y+E)/2,Dt=(x+b)/2,It=(E+z)/2;b=(b+tt)/2,z=(z+ot)/2,E=(At+Dt)/2,x=(Bt+It)/2,Dt=(Dt+b)/2,It=(It+z)/2;var Rt=(E+Dt)/2,zt=(x+It)/2,Gt=1/0,Kt=!1,ie=0,Ue=0;return Jt.Eo(a,y,At,Bt,E,x,Rt,zt,rt,at,ut,ft,mt,yt)&&(a=(yt.x-rt)*(yt.x-rt)+(yt.y-at)*(yt.y-at),a=ut)return yt;if((rt>ut?rt-ut:ut-rt)<(at>ft?at-ft:ft-at)){if(ya)return yt}else if(aa)return yt;0mt&&yt--}else{At=(a+x)/2,Bt=(y+E)/2;var Dt=(x+b)/2,It=(E+z)/2;b=(b+tt)/2,z=(z+ot)/2,E=(At+Dt)/2,x=(Bt+It)/2,Dt=(Dt+b)/2,It=(It+z)/2;var Rt=(E+Dt)/2,zt=(x+It)/2;yt+=Jt.Fo(a,y,At,Bt,E,x,Rt,zt,rt,at,ut,ft,mt),yt+=Jt.Fo(Rt,zt,Dt,It,b,z,tt,ot,rt,at,ut,ft,mt)}return yt},qh:function(a,y,x,E,b,z,tt){return Jt.$(a,x)?(yy?(tt.h(a,y),!1):(tt.h(a,z),!0)):Jt.$(y,E)?(aa?(tt.h(a,y),!1):(tt.h(b,y),!0)):(b=((a-b)*(a-x)+(y-z)*(y-E))/((x-a)*(x-a)+(E-y)*(E-y)),-5e-6>b?(tt.h(a,y),!1):1.000005y?(rt.h(a,y),!1):(rt.h(a,x),!0)):(tt=(E-y)/(x-a),Jt.$(ot,tt)?(Jt.qh(a,y,x,E,b,z,rt),!1):(b=(tt*a-ot*b+z-y)/(tt-ot),Jt.$(tt,0)?(aa?(rt.h(a,y),!1):(rt.h(b,y),!0)):Jt.qh(a,y,x,E,b,tt*(b-a)+y,rt))))},MA:function(a,y,x,E,b){return Jt.Ve(x.x,x.y,E.x,E.y,a.x,a.y,y.x,y.y,b)},KA:function(a,y,x,E,b,z,tt,ot,rt,at){function ut(Dt,It){var Rt=(Dt-a)*(Dt-a)+(It-y)*(It-y);Rt(x>a?x-a:a-x)){if(mt=1-(x-b)*(x-b)/(mt*mt),0>mt)return rt;mt=Math.sqrt(mt),E=-at*mt+z,ut(x,at*mt+z),ut(x,E)}else{if(x=(E-y)/(x-a),E=1/(mt*mt)+x*x/(at*at),ot=2*x*(y-x*a)/(at*at)-2*x*z/(at*at)-2*b/(mt*mt),mt=ot*ot-4*E*(2*x*a*z/(at*at)-2*y*z/(at*at)+z*z/(at*at)+b*b/(mt*mt)-1+(y-x*a)*(y-x*a)/(at*at)),0>mt)return rt;mt=Math.sqrt(mt),at=(-ot+mt)/(2*E),ut(at,x*at-x*a+y),mt=(-ot-mt)/(2*E),ut(mt,x*mt-x*a+y)}return rt},Ff:function(a,y,x,E,b,z,tt,ot,rt){var at=1e21,ut=a,ft=y;if(Jt.Ve(a,y,a,E,b,z,tt,ot,rt)){var mt=(rt.x-b)*(rt.x-b)+(rt.y-z)*(rt.y-z);mtat},us:function(a,y,x){return Jt.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,E,b,z,tt,ot){var rt=a+x,at=y+E;return b===tt?(z=y):z===ot?(b=a):!!(Lr(a,y,x,E,b,z)||Lr(a,y,x,E,tt,ot)||Jt.Rl(a,y,rt,y,b,z,tt,ot)||Jt.Rl(rt,y,rt,at,b,z,tt,ot)||Jt.Rl(rt,at,a,at,b,z,tt,ot)||Jt.Rl(a,at,a,y,b,z,tt,ot))},Rl:function(a,y,x,E,b,z,tt,ot){return a===x&&y===E&&b===tt&&z===ot?a===b&&y===z:0>=Jt.Fl(a,y,x,E,b,z)*Jt.Fl(a,y,x,E,tt,ot)&&0>=Jt.Fl(b,z,tt,ot,a,y)*Jt.Fl(b,z,tt,ot,x,E)},Fl:function(a,y,x,E,b,z){return x-=a,E-=y,a=b-a,y=z-y,z=a*E-y*x,z===0&&(z=a*x+y*E,0z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,E,b,z){var tt=Math.PI;z||(E*=tt/180,b*=tt/180);var ot=E>b?-1:1;z=[];var rt=tt/2,at=E;if(E=Math.min(2*tt,Math.abs(b-E)),1e-5>E)return rt=at+ot*Math.min(E,rt),ot=a+x*Math.cos(at),at=y+x*Math.sin(at),a+=x*Math.cos(rt),y+=x*Math.sin(rt),x=(ot+a)/2,rt=(at+y)/2,z.push([ot,at,x,rt,x,rt,a,y]),z;for(;1e-5x,z=0>E;if(aat&&(y=.5*(ot+rt),!(y===ot||y===rt));++at){var ut=a/(y+b),ft=tt/(y+z);if(ut=ut*ut+ft*ft-1,0ut)rt=y;else break}x=b*x/(y+b)-x,E=z*E/(y+z)-E,x=Math.sqrt(x*x+E*E)}else x=Math.abs(E-y);else E=a*a-y*y,z=a*x,za?"M"+this.startX.toString()+" "+this.startY.toString()+"L"+this.endX.toString()+" "+this.endY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a)+"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);case be.u:var y=new ce(this.startX,this.startY,0,0);return y.Kv(this.endX,this.endY,0,0),0>a?"M"+y.x.toString()+" "+y.y.toString()+"H"+y.right.toString()+"V"+y.bottom.toString()+"H"+y.left.toString()+"z":"M"+y.x.toFixed(a)+" "+y.y.toFixed(a)+"H"+y.right.toFixed(a)+"V"+y.bottom.toFixed(a)+"H"+y.left.toFixed(a)+"z";case be.F:if(y=new ce(this.startX,this.startY,0,0),y.Kv(this.endX,this.endY,0,0),0>a)return a=y.left.toString()+" "+(y.y+y.height/2).toString(),"M"+a+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+(y.right.toString()+" "+(y.y+y.height/2).toString())+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+a;var x=y.left.toFixed(a)+" "+(y.y+y.height/2).toFixed(a);return"M"+x+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+(y.right.toFixed(a)+" "+(y.y+y.height/2).toFixed(a))+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+x;case be.o:y="",x=this.figures.s;for(var E=x.length,b=0;b=Gt-1?!0:at[Bt+1].match(Kt)!==null}function E(){return Bt++,at[Bt]}function b(Cn){var yn=parseFloat(E()),di=parseFloat(E());Dt===Dt.toLowerCase()&&(yn=zt.x+yn,di=zt.y+di),Cn.h(yn,di)}function z(){return b(zt),zt}function tt(){return b(Rt),Rt}function ot(){var Cn=It.toLowerCase();return Cn!=="c"&&Cn!=="s"&&Cn!=="q"&&Cn!=="t"?zt:new jt(2*zt.x-Rt.x,2*zt.y-Rt.y)}y===void 0&&(y=!1);var rt=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(rt,"$1 $2"),a=a.replace(rt,"$1 $2"),a=a.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),a=a.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),a=a.replace(/([0-9])([+\-])/gm,"$1 $2"),a=a.replace(/[\s\r\t\n]+/gm," "),a=a.replace(/^\s+|\s+$/g,"");var at=a.split(" ");for(a=0;a=Gt-1);)if(It=Dt,Dt=E(),Dt!=="")switch(Dt.toUpperCase()){case"X":yt=!0,ft=ut=!1;break;case"M":for(At=z(),a.mc===null||yt===!0?(Cf(a,At.x,At.y,ut,!ft,mt),yt=!1):a.moveTo(At.x,At.y),rt.assign(zt);!x();)At=z(),a.lineTo(At.x,At.y);break;case"L":for(;!x();)At=z(),a.lineTo(At.x,At.y);break;case"H":for(;!x();)zt=new jt((Dt===Dt.toLowerCase()?zt.x:0)+parseFloat(E()),zt.y),a.lineTo(zt.x,zt.y);break;case"V":for(;!x();)zt=new jt(zt.x,(Dt===Dt.toLowerCase()?zt.y:0)+parseFloat(E())),a.lineTo(zt.x,zt.y);break;case"C":for(;!x();){At=new jt,b(At);var ie=tt(),Ue=z();Vu(a,At.x,At.y,ie.x,ie.y,Ue.x,Ue.y)}break;case"S":for(;!x();)At=ot(),ie=tt(),Ue=z(),Vu(a,At.x,At.y,ie.x,ie.y,Ue.x,Ue.y);break;case"Q":for(;!x();)At=tt(),ie=z(),O0(a,At.x,At.y,ie.x,ie.y);break;case"T":for(;!x();)Rt=At=ot(),ie=z(),O0(a,At.x,At.y,ie.x,ie.y);break;case"B":for(;!x();){At=parseFloat(E()),ie=parseFloat(E()),Ue=parseFloat(E());var tn=parseFloat(E()),Ye=parseFloat(E()),Fe=Ye,ye=!1;x()||(Fe=parseFloat(E()),x()||(ye=parseFloat(E())!==0)),Dt===Dt.toLowerCase()&&(Ue+=zt.x,tn+=zt.y),a.arcTo(At,ie,Ue,tn,Ye,Fe,ye)}break;case"A":for(;!x();)At=Math.abs(parseFloat(E())),ie=Math.abs(parseFloat(E())),Ue=parseFloat(E()),Ye=tn=!1,ye=Fe=0,Fe=E(),Fe.length===1?(tn=!!parseFloat(Fe),Ye=!!parseFloat(E()),Fe=parseFloat(E())):Fe.length===2?(tn=!!parseFloat(Fe[0]),Ye=!!parseFloat(Fe[1]),Fe=parseFloat(E())):(tn=!!parseFloat(Fe[0]),Ye=!!parseFloat(Fe[1]),Fe=parseFloat(Fe.slice(2))),ye=parseFloat(E()),Dt===Dt.toLowerCase()&&(Fe=zt.x+Fe,ye=zt.y+ye),zt.h(Fe,ye),PS(a,At,ie,Ue,tn,Ye,Fe,ye);break;case"Z":xS(a),zt.assign(rt);break;case"F":for(At="",ie=1;at[Bt+ie];)if(at[Bt+ie]==="0")mt=!0,ie++;else if(at[Bt+ie].match(/[Uu]/)!==null)ie++;else if(at[Bt+ie].match(Kt)===null)ie++;else{At=at[Bt+ie];break}At.match(/[Mm]/)?ut=!0:0tt&&(tt+=360),At.startAngle+=tt),0>a&&(At.startAngle=180-At.startAngle,At.sweepAngle=-At.sweepAngle),0>E&&(At.startAngle=-At.startAngle,At.sweepAngle=-At.sweepAngle),At.radiusX*=Math.sqrt(a*a+x*x),At.radiusY!==void 0&&(At.radiusY*=Math.sqrt(y*y+E*E));break;case aa:if(tt=At.endX,ot=At.endY,At.endX=tt*a+ot*x+b,At.endY=tt*y+ot*E+z,At.radiusX===0||At.radiusY===0)break;y!==0&&(tt=180*Math.atan2(y,a)/Math.PI,0>tt&&(tt+=360),At.xAxisRotation+=tt),0>a&&(At.xAxisRotation=180-At.xAxisRotation,At.isClockwiseArc=!At.isClockwiseArc),0>E&&(At.xAxisRotation=-At.xAxisRotation,At.isClockwiseArc=!At.isClockwiseArc),At.radiusX*=Math.sqrt(a*a+x*x),At.radiusY*=Math.sqrt(y*y+E*E);break;default:ee("Unknown Segment type: "+At.type)}}}}return this._isInvalidBounds=!0,this},Pt.ca=function(a,y){y===void 0&&(y=0);var x=this.od,E=this.pd,b=this.Dc,z=this.Ec;switch(this.type){case be.j:return Jt.Yb(x,E,b,z,y,a.x,a.y);case be.u:var tt=ce.allocAt(Math.min(x,b)-y,Math.min(E,z)-y,Math.abs(b-x)+2*y,Math.abs(z-E)+2*y);return a=tt.ca(a),ce.free(tt),a;case be.F:tt=Math.min(x,b)-y;var ot=Math.min(E,z)-y;return x=(Math.abs(b-x)+2*y)/2,y=(Math.abs(z-E)+2*y)/2,0>=x||0>=y?!1:(tt=a.x-(tt+x),ot=a.y-(ot+y),1>=tt*tt/(x*x)+ot*ot/(y*y));case be.o:return tu(this,a,y,!0,!1);default:return!1}};function tu(a,y,x,E,b){var z=y.x;y=y.y;for(var tt=a.bounds.x-20,ot=0,rt,at,ut,ft,mt=a.figures.s,yt=mt.length,At=0;At=a)return 0;if((b>tt?b-tt:tt-b)<(z>ot?z-ot:ot-z)){if(zot)return 0}else if(yz)return 0}else if(btt)return 0}else if(atb)return 0;return 0a?a=0:1=z)return E=z-tt,E=ut===0?0:E/ut,x=x[ot],ot=x[2*a],b=x[2*a+1],y.h(ot+(x[2*a+2]-ot)*E,b+(x[2*a+3]-b)*E),y;tt+=ut}}return y},Pt.wx=function(a){if(0>a?a=0:1=b)return b=y[tt],y=b[2*a],x=b[2*a+1],E=b[2*a+2],a=b[2*a+3],1>Math.abs(E-y)&&1>Math.abs(a-x)?0:1>Math.abs(E-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=E-y?0:180:180*Math.atan2(a-x,E-y)/Math.PI;z+=at}}return NaN},Pt.Qu=function(a,y){if(0>a?a=0:1=z)return E=z-tt,E=ut===0?0:E/ut,ut=x[ot],x=ut[2*a],ot=ut[2*a+1],b=ut[2*a+2],a=ut[2*a+3],y[0]=x+(b-x)*E,y[1]=ot+(a-ot)*E,y[2]=1>Math.abs(b-x)&&1>Math.abs(a-ot)?0:1>Math.abs(b-x)?0<=a-ot?90:270:1>Math.abs(a-ot)?0<=b-x?0:180:180*Math.atan2(a-ot,b-x)/Math.PI,y;tt+=ut}}return y},Pt.xx=function(a){if(this.type===be.j){var y=this.startX,x=this.startY,E=this.endX,b=this.endY;if(y!==E||x!==b){var z=a.x;if(a=a.y,y===E){if(x=E?E===x?0:1:Math.abs(a-x)/(E-tt)}if(x===b)return y=E?E===y?0:1:Math.abs(z-y)/(E-tt);tt=(E-y)*(E-y)+(b-x)*(b-x);var ot=jt.alloc();return Jt.qh(y,x,E,b,z,a,ot),a=ot.x,z=ot.y,jt.free(ot),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/tt)}}else if(this.type===be.u){tt=this.startX,ot=this.startY;var rt=this.endX;if(b=this.endY,tt!==rt||ot!==b){y=rt-tt,x=b-ot,z=2*y+2*x,E=a.x,a=a.y,E=Math.min(Math.max(E,tt),rt),a=Math.min(Math.max(a,ot),b),tt=Math.abs(E-tt),rt=Math.abs(E-rt),ot=Math.abs(a-ot),b=Math.abs(a-b);var at=Math.min(tt,rt,ot,b);if(at===ot)return E/z;if(at===rt)return(y+a)/z;if(at===b)return(2*y+x-E)/z;if(at===tt)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,E=jt.alloc(),b=1/0,ot=tt=0,rt=y.length;for(var ut=at=0,ft=0;fta?0:1a?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a),x=this.segments.s,E=x.length,b=0;ba&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(E,0),this.Pg=Math.max(b,0),typeof tt=="boolean"?tt&&(this.isLargeArc=!0):typeof tt=="number"&&tt&&(this.isLargeArc=!0),ot&&(this.isClockwiseArc=!0)):(this.Ne=E,this.Vh=b,a===Ro&&(z=Math.max(z,0)),this.Wh=z,typeof tt=="number"?(a===Ro&&(tt=Math.max(tt,0)),this.Pg=tt):this.Pg=0),this.ae=null}ui.prototype.copy=function(){var a=new ui;return a.na=this.na,a.l=this.l&-2,a.Dc=this.Dc,a.Ec=this.Ec,a.Ne=this.Ne,a.Vh=this.Vh,a.Wh=this.Wh,a.Pg=this.Pg,a},Pt=ui.prototype,Pt.Xa=function(a){if(!(a instanceof ui)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case ir:case Ri:return Jt.B(this.endX,a.endX)&&Jt.B(this.endY,a.endY);case kr:return Jt.B(this.endX,a.endX)&&Jt.B(this.endY,a.endY)&&Jt.B(this.point1X,a.point1X)&&Jt.B(this.point1Y,a.point1Y)&&Jt.B(this.point2X,a.point2X)&&Jt.B(this.point2Y,a.point2Y);case Zs:return Jt.B(this.endX,a.endX)&&Jt.B(this.endY,a.endY)&&Jt.B(this.point1X,a.point1X)&&Jt.B(this.point1Y,a.point1Y);case Ro:return Jt.B(this.startAngle,a.startAngle)&&Jt.B(this.sweepAngle,a.sweepAngle)&&Jt.B(this.centerX,a.centerX)&&Jt.B(this.centerY,a.centerY)&&Jt.B(this.radiusX,a.radiusX)&&Jt.B(this.radiusY,a.radiusY);case aa:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Jt.B(this.xAxisRotation,a.xAxisRotation)&&Jt.B(this.endX,a.endX)&&Jt.B(this.endY,a.endY)&&Jt.B(this.radiusX,a.radiusX)&&Jt.B(this.radiusY,a.radiusY);default:return!1}},Pt.qb=function(a){a.classType===ui&&(this.type=a)},Pt.toString=function(a){switch(a===void 0&&(a=-1),this.type){case ir:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Ri:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case kr:a=0>a?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.point2X.toFixed(a)+" "+this.point2Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Zs:a=0>a?"Q"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"Q"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Ro:a=0>a?"B"+this.startAngle.toString()+" "+this.sweepAngle.toString()+" "+this.centerX.toString()+" "+this.centerY.toString()+" "+this.radiusX.toString()+" "+this.radiusY.toString():"B"+this.startAngle.toFixed(a)+" "+this.sweepAngle.toFixed(a)+" "+this.centerX.toFixed(a)+" "+this.centerY.toFixed(a)+" "+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a);break;case aa:a=0>a?"A"+this.radiusX.toString()+" "+this.radiusY.toString()+" "+this.xAxisRotation.toString()+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toString()+" "+this.endY.toString():"A"+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a)+" "+this.xAxisRotation.toFixed(a)+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;default:a=this.type.toString()}return a+(this.isClosed?"z":"")},Pt.freeze=function(){return this._isFrozen=!0,this},Pt.ka=function(){return this._isFrozen=!1,this},Pt.close=function(){return this.isClosed=!0,this};function Rs(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var x=a.radiusX,E=a.radiusY;if(E===void 0&&(E=x),x===0||E===0)return a.ae=[],a.ae;y=a.Ne;var b=a.Vh,z=Jt.jx(0,0,x=yt?tt=Math.PI:1<=yt&&(tt=0),!rt&&0tt&&(tt+=2*Math.PI),rt=y>z?1:y/z,yt=y>z?z/y:1,y=Jt.jx(0,0,y>z?y:z,ut,ut+tt,!0),z=Hn.alloc(),z.reset(),z.translate(x,E),z.rotate(a.Ne,0,0),z.scale(rt,yt),be.Ha(y,z),Hn.free(z),a.ae=y,a.ae}fe.Object.defineProperties(ui.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},isClosed:{get:function(){return(this.l&8)!==0},set:function(a){this.isClosed!==a&&(this.l=a?this.l|8:this.l&-9,this._isInvalidBounds=!0)}},type:{get:function(){return this.na},set:function(a){this._isFrozen&&mn(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&mn(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&mn(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&mn(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&mn(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&mn(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&mn(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&mn(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&mn(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Zn(a,">= zero",ui,"radiusX"),this._isFrozen&&mn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Zn(a,">= zero",ui,"radiusY"),this._isFrozen&&mn(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&mn(this,a),a%=360,0>a&&(a+=360),this.Dc=a,this._isInvalidBounds=!0}},sweepAngle:{get:function(){return this.Ec},set:function(a){this._isFrozen&&mn(this,a),360a&&(a=-360),this.Ec=a,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&mn(this,a),this.l=a?this.l|4:this.l&-5,this._isInvalidBounds=!0}},isLargeArc:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&mn(this,a),this.l=a?this.l|16:this.l&-17,this._isInvalidBounds=!0}},xAxisRotation:{get:function(){return this.Ne},set:function(a){this._isFrozen&&mn(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),ui.prototype.equalsApprox=ui.prototype.Xa;var ir=new Ee(ui,"Move",0),Ri=new Ee(ui,"Line",1),kr=new Ee(ui,"Bezier",2),Zs=new Ee(ui,"QuadraticBezier",3),Ro=new Ee(ui,"Arc",4),aa=new Ee(ui,"SvgArc",4);ui.className="PathSegment",ui.Move=ir,ui.Line=Ri,ui.Bezier=kr,ui.QuadraticBezier=Zs,ui.Arc=Ro,ui.SvgArc=aa;function Gr(){this.H=null,this.xu=new jt(0,0).freeze(),this.mt=new jt(0,0).freeze(),this.Bp=this.Rq=0,this.Cp=1,this.xq="",this.Wr=this.Tp=!1,this.Rp=this.Ep=0,this.xg=this.nq=this.tq=!1,this.Zp=null,this.Rr=0,this.xd=this.Nr=null}Gr.prototype.copy=function(){var a=new Gr;return this.clone(a)},Gr.prototype.clone=function(a){return a.H=this.H,a.xu.assign(this.viewPoint),a.mt.assign(this.documentPoint),a.Rq=this.Rq,a.Bp=this.Bp,a.Cp=this.Cp,a.xq=this.xq,a.Tp=this.Tp,a.Wr=this.Wr,a.Ep=this.Ep,a.Rp=this.Rp,a.tq=this.tq,a.nq=this.nq,a.xg=this.xg,a.Zp=this.Zp,a.Rr=this.Rr,a.Nr=this.Nr,a.xd=this.xd,a},Gr.prototype.toString=function(){var a="^";return this.modifiers!==0&&(a+="M:"+this.modifiers),this.button!==0&&(a+="B:"+this.button),this.key!==""&&(a+="K:"+this.key),this.clickCount!==0&&(a+="C:"+this.clickCount),this.delta!==0&&(a+="D:"+this.delta),this.handled&&(a+="h"),this.bubbles&&(a+="b"),this.documentPoint!==null&&(a+="@"+this.documentPoint.toString()),a},Gr.prototype.So=function(a,y){var x=this.diagram;return x===null||mc(x,a,y),y},Gr.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(mc(x,a,y),y.assign(x.Ps(y))),y},fe.Object.defineProperties(Gr.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},viewPoint:{get:function(){return this.xu},set:function(a){this.xu.assign(a)}},documentPoint:{get:function(){return this.mt},set:function(a){this.mt.assign(a)}},modifiers:{get:function(){return this.Rq},set:function(a){this.Rq=a}},button:{get:function(){return this.Bp},set:function(a){if(this.Bp=a,this.event===null)switch(a){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2}}},buttons:{get:function(){return this.Cp},set:function(a){this.Cp=a}},key:{get:function(){return this.xq},set:function(a){this.xq=a}},down:{get:function(){return this.Tp},set:function(a){this.Tp=a}},up:{get:function(){return this.Wr},set:function(a){this.Wr=a}},clickCount:{get:function(){return this.Ep},set:function(a){this.Ep=a}},delta:{get:function(){return this.Rp},set:function(a){this.Rp=a}},isMultiTouch:{get:function(){return this.tq},set:function(a){this.tq=a}},handled:{get:function(){return this.nq},set:function(a){this.nq=a}},bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},event:{get:function(){return this.Zp},set:function(a){this.Zp=a}},isTouchEvent:{get:function(){var a=this.event;return a===null?!1:a.pointerType==="touch"||a.pointerType==="pen"}},timestamp:{get:function(){return this.Rr},set:function(a){this.Rr=a}},targetDiagram:{get:function(){return this.Nr},set:function(a){this.Nr=a}},targetObject:{get:function(){return this.xd},set:function(a){this.xd=a}},control:{get:function(){return(this.modifiers&1)!==0},set:function(a){this.modifiers=a?this.modifiers|1:this.modifiers&-2}},shift:{get:function(){return(this.modifiers&4)!==0},set:function(a){this.modifiers=a?this.modifiers|4:this.modifiers&-5}},alt:{get:function(){return(this.modifiers&2)!==0},set:function(a){this.modifiers=a?this.modifiers|2:this.modifiers&-3}},meta:{get:function(){return(this.modifiers&8)!==0},set:function(a){this.modifiers=a?this.modifiers|8:this.modifiers&-9}},left:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&1)!==0:this.button===0},set:function(a){this.buttons=a?this.buttons|1:this.buttons&-2}},right:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&2)!==0:this.button===2},set:function(a){this.buttons=a?this.buttons|2:this.buttons&-3}},middle:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&4)!==0:this.button===1},set:function(a){this.buttons=a?this.buttons|4:this.buttons&-5}}}),Gr.prototype.getMultiTouchDocumentPoint=Gr.prototype.Bz,Gr.prototype.getMultiTouchViewPoint=Gr.prototype.So,Gr.className="InputEvent";function Eu(){this.H=null,this.xa="",this.ar=this.Lr=null}Eu.prototype.copy=function(){var a=new Eu;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},Eu.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},fe.Object.defineProperties(Eu.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},subject:{get:function(){return this.Lr},set:function(a){this.Lr=a}},parameter:{get:function(){return this.ar},set:function(a){this.ar=a}}}),Eu.className="DiagramEvent";function lo(){this.Fm=ro,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}lo.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},lo.prototype.copy=function(){var a=new lo;a.Fm=this.Fm,a.Qq=this.Qq,a.rf=this.rf,a.cc=this.cc,a.H=this.H,a.Qn=this.Qn;var y=this.Sn;return a.Sn=Pe(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=Pe(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=Pe(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=Pe(y)&&typeof y.J=="function"?y.J():y,a},lo.prototype.qb=function(a){a.classType===lo&&(this.change=a)},lo.prototype.toString=function(){var a="";return a=this.change===zs?a+"* ":this.change===ro?a+(this.model!==null?"!m":"!d"):a+((this.model!==null?"!m":"!d")+this.change),this.propertyName&&typeof this.propertyName=="string"&&(a+=" "+this.propertyName),this.modelChange&&this.modelChange!==this.propertyName&&(a+=" "+this.modelChange),a+=": ",this.change===zs?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=_n(this.object)),this.oldValue!==null&&(a+=" old: "+_n(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+_n(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},lo.prototype.I=function(a){return a?this.oldValue:this.newValue},lo.prototype.Dz=function(a){return a?this.oldParam:this.newParam},lo.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},lo.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},lo.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},lo.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},fe.Object.defineProperties(lo.prototype,{model:{get:function(){return this.cc},set:function(a){this.cc=a}},diagram:{get:function(){return this.H},set:function(a){this.H=a}},change:{get:function(){return this.Fm},set:function(a){this.Fm=a}},modelChange:{get:function(){return this.Qq},set:function(a){this.Qq=a}},propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},isTransactionFinished:{get:function(){return this.Fm===zs&&(this.rf==="CommittedTransaction"||this.rf==="FinishedUndo"||this.rf==="FinishedRedo")}},object:{get:function(){return this.Qn},set:function(a){this.Qn=a}},oldValue:{get:function(){return this.Sn},set:function(a){this.Sn=a}},oldParam:{get:function(){return this.Rn},set:function(a){this.Rn=a}},newValue:{get:function(){return this.Mn},set:function(a){this.Mn=a}},newParam:{get:function(){return this.Ln},set:function(a){this.Ln=a}}}),lo.prototype.redo=lo.prototype.redo,lo.prototype.canRedo=lo.prototype.canRedo,lo.prototype.undo=lo.prototype.undo,lo.prototype.canUndo=lo.prototype.canUndo,lo.prototype.getParam=lo.prototype.Dz,lo.prototype.getValue=lo.prototype.I,lo.prototype.clear=lo.prototype.clear;var zs=new Ee(lo,"Transaction",-1),ro=new Ee(lo,"Property",0),Mo=new Ee(lo,"Insert",1),Vo=new Ee(lo,"Remove",2);lo.className="ChangedEvent",lo.Transaction=zs,lo.Property=ro,lo.Insert=Mo,lo.Remove=Vo;function lr(){this.o=new He().freeze(),this.xa="",this.j=!1}lr.prototype.toString=function(a){var y="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(a!==void 0&&0y&&a.cd(y,E),y++);for(;a.length>y;)a.pop();a.freeze()}},fe.Object.defineProperties(lr.prototype,{changes:{get:function(){return this.o}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isComplete:{get:function(){return this.j},set:function(a){this.j=a}}}),lr.prototype.optimize=lr.prototype.ak,lr.prototype.redo=lr.prototype.redo,lr.prototype.canRedo=lr.prototype.canRedo,lr.prototype.undo=lr.prototype.undo,lr.prototype.canUndo=lr.prototype.canUndo,lr.prototype.clear=lr.prototype.clear,lr.className="Transaction";function ho(){this.Pt=new ze,this.Jd=!1,this.u=new He().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new He().freeze(),this.hl=new He,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}ho.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var x=this.nestedTransactionNames.count,E=0;Ea.transactionLevel&&yo("Ending transaction without having started a transaction: "+x);var E=a.transactionLevel===1,b=a.currentTransaction;E&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,b));var z=0;if(0=E&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),E===0||y.count!==0&&y.get(y.count-1)===b||(y.add(b),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,b);else{a.Fe=!0;try{a.isEnabled&&b!==null&&(b.isComplete=!0,b.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,b),a.Fe=!1}b!==null&&b.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&b!==null){for(a=z,x=b.changes,b=x.count-1;b>=a;b--)y=x.M(b),y!==null&&y.undo(),x.ka(),x.mb(b);x.freeze()}return!1}Pt.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var a=this.history;a.ka();for(var y=a.count-1;y>this.historyIndex;y--){var x=a.M(y);x!==null&&x.clear(),a.mb(y),this.rq=!0}a.freeze()}},ho.prototype.canUndo=function(){if(!this.isEnabled||0=this.transactionLevel&&!this.tt&&(a=a.diagram,a!==null&&a.pi===!1||yo("Change not within a transaction: "+x.toString()))}},ho.prototype.skipsEvent=function(a){if(a===null||0>a.change.value)return!0;if(a=a.object,a===null)return!1;if(a.layer!==void 0){if(a=a.layer,a!==null&&a.isTemporary)return!0}else if(a.isTemporary)return!0;return!1},fe.Object.defineProperties(ho.prototype,{models:{get:function(){return this.Pt.iterator}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},transactionToUndo:{get:function(){return 0<=this.historyIndex&&this.historyIndex<=this.history.count-1?this.history.M(this.historyIndex):null}},transactionToRedo:{get:function(){return this.historyIndexb||Math.abs(y.y-a.y)>E},fe.Object.defineProperties(si.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof oe&&(this.H=a)}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},isActive:{get:function(){return this.nb},set:function(a){this.nb=a}},transactionResult:{get:function(){return this.wm},set:function(a){this.wm=a}}}),si.prototype.startTransaction=si.prototype.Ea,si.className="Tool";function no(){si.call(this),this.name="ToolManager",this.hb=new He,this.ob=new He,this.Hb=new He,this.F=this.V=850,this.o=new We(2,2).ja(),this.Ha=5e3,this.ia=od,this.u=zg,this.Mp=this.j=null,this.zj=-1}Ae(no,si),no.prototype.initializeStandardTools=function(){},no.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof ai&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},no.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===nu&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===ph){y.bubbles=!0;return}if(this.gestureBehavior===nu)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,E=0;Eb.right&&(x.x-=E.width+5/y.scale),x.xb.bottom?x.y-(E.height+5/y.scale):x.y+20/y.scale,x.yx.pointsCount)){var E=a.diagram;if(!E.isReadOnly){var b=a.Oe;if(b!==null){var z=null,tt=null;x.fromNode===null&&(z=Op(a,x.i(0),!1),z!==null&&(tt=z.part));var ot=null,rt=null;x.toNode===null&&(ot=Op(a,x.i(x.pointsCount-1),!0),ot!==null&&(rt=ot.part)),b.isValidLink(tt,z,rt,ot)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=tt,z!==null&&(x.fromPortId=z.portId),x.toNode=rt,ot!==null&&(x.toPortId=ot.portId),x.fromPort!==E.Mx&&E.R("LinkRelinked",x,E.Mx),x.toPort!==E.Nx&&E.R("LinkRelinked",x,E.Nx)):Gg(b,tt,z,rt,ot):Gg(b,null,null,null,null)}}}}fo.prototype.doDragOver=function(){};function ku(a,y){var x=a.diagram;a.dragsLink&&Mu(a,!0),mh(a);var E=a.findDragOverObject(y),b=x.lastInput;if(b.targetObject=E,E!==null){b.handled=!1;for(var z=E;z!==null;){var tt=z.mouseDrop;if(tt!==null&&(tt(b,z),b.handled))break;Jm(a,b,z),z=ec(z)}}else z=x.mouseDrop,z!==null&&z(b);if(a.isActive||Ar!==null){for(b=(a.copiedParts||a.draggedParts).iterator;b.next();)z=b.key,z instanceof Xe&&z.linksConnected.each(function(ot){ot.suspendsRouting=!1});if(a.doDropOnto(y,E),a.isActive||Ar!==null){for(a=ce.alloc(),y=x.selection.iterator;y.next();)E=y.value,E instanceof Xe&&qm(x,E,a);ce.free(a)}}}function Jm(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof Bn||(x=a.mouseDrop,x!==null&&x(y))}function qm(a,y,x){var E=!1;if(x=y.getAvoidableRect(x),a.viewportBounds.Re(x)&&(E=!0),a=a.Nu(x,function(b){return b.part},function(b){return b instanceof Ne},!0,function(b){return b instanceof Ne},E),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}fo.prototype.doDropOnto=function(){},fo.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;this.simulatedMouseMove(y.event,y.documentPoint,y.targetDiagram)||this.currentPart===null||this.draggedParts===null||(this.mayCopy()?(iu(this,!1),nf(a,this.copiedParts),vl(this,this.copiedParts,!1),Mh(a,this.copiedParts)):this.mayMove()?(za(this),vl(this,this.draggedParts,!0)):this.mayDragOut()?(iu(this,!1),vl(this,this.copiedParts,!1)):za(this),Hg(this,a.lastInput.documentPoint))}},fo.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;if(!this.simulatedMouseUp(y.event,y.documentPoint,y.targetDiagram)){y=!1;var x=this.mayCopy();if(x&&this.copiedParts!==null?(za(this),iu(this,!0),nf(a,this.copiedParts),vl(this,this.copiedParts,!1),Mh(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0}))):(y=!0,za(this),this.mayMove()&&(vl(this,this.draggedParts,!0),Hg(this,a.lastInput.documentPoint))),this.Ym=!0,ku(this,a.lastInput.documentPoint),this.isActive){var E=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&_m(this),a.Ya(),Mh(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",E)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},fo.prototype.simulatedMouseMove=function(a,y,x){if(Ar===null)return!1;var E=Ar.diagram;x instanceof oe||(x=null);var b=Iu;return x!==b&&(b!==null&&b!==E&&(b.ug(),Ar.isDragOutStarted=!1,b=b.toolManager.findTool("Dragging"),b!==null&&b.doSimulatedDragLeave()),Iu=x,x!==null&&x!==E&&($f(),b=x.toolManager.findTool("Dragging"),b!==null&&(Tl.contains(b)||Tl.add(b),b.doSimulatedDragEnter())),this.doUpdateCursor(null)),x===null||x===E||!x.allowDrop||x.isReadOnly||!x.allowInsert?!1:(E=x.toolManager.findTool("Dragging"),E!==null&&(a!==null&&(a.targetTouches!==void 0&&(0tt&&(tt=at),ut>ot&&(ot=ut))}}for(E===1/0?z.h(0,0,0,0):z.h(E,b,tt-E,ot-b),E=z.x+z.width/2,b=z.y+z.height/2,ce.free(z),z=a.Fr,tt=new xn,ot=jt.alloc(),rt=y.iterator;rt.next();)at=rt.value,at instanceof Ne&&at.canCopy()&&(ut=x.I(at),ut!==null&&(ut.points=at.points,Zu(ut,z.x-E,z.y-b),ut.suspendsRouting=!0,tt.add(ut,a.Pd())));for(y=y.iterator;y.next();)at=y.value,at.Zc()&&at.canCopy()&&(rt=x.I(at),rt!==null&&(at=at.location,ot.h(z.x-(E-at.x),z.y-(b-at.y)),rt.location=ot,rt.Va(),tt.add(rt,a.Pd(ot))));jt.free(ot),a.copiedParts=tt,Qg(a,tt.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Zu(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}fo.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},fo.prototype.computeMove=function(a,y,x,E){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,E):new jt},fe.Object.defineProperties(fo.prototype,{isCopyEnabled:{get:function(){return this.ob},set:function(a){this.ob=a}},copiesEffectiveCollection:{get:function(){return this.u},set:function(a){this.u=a}},dragOptions:{get:function(){return this.ia},set:function(a){this.ia=a}},isGridSnapEnabled:{get:function(){return this.dragOptions.isGridSnapEnabled},set:function(a){this.dragOptions.isGridSnapEnabled=a}},isComplexRoutingRealtime:{get:function(){return this.hb},set:function(a){this.hb=a}},isGridSnapRealtime:{get:function(){return this.dragOptions.isGridSnapRealtime},set:function(a){this.dragOptions.isGridSnapRealtime=a}},gridSnapCellSize:{get:function(){return this.dragOptions.gridSnapCellSize},set:function(a){this.dragOptions.gridSnapCellSize.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSize=a)}},gridSnapCellSpot:{get:function(){return this.dragOptions.gridSnapCellSpot},set:function(a){this.dragOptions.gridSnapCellSpot.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSpot=a)}},gridSnapOrigin:{get:function(){return this.dragOptions.gridSnapOrigin},set:function(a){this.dragOptions.gridSnapOrigin.D(a)||(a=a.J(),this.dragOptions.gridSnapOrigin=a)}},dragsLink:{get:function(){return this.dragOptions.dragsLink},set:function(a){this.dragOptions.dragsLink=a}},dragsTree:{get:function(){return this.dragOptions.dragsTree},set:function(a){this.dragOptions.dragsTree=a}},copyCursor:{get:function(){return this.F},set:function(a){this.F=a}},moveCursor:{get:function(){return this.Oc},set:function(a){this.Oc=a}},nodropCursor:{get:function(){return this.Pc},set:function(a){this.Pc=a}},currentPart:{get:function(){return this.V},set:function(a){this.V=a}},copiedParts:{get:function(){return this.o},set:function(a){this.o=a}},draggedParts:{get:function(){return this.Ha},set:function(a){this.Ha=a}},draggingParts:{get:function(){return this.copiedParts!==null?this.copiedParts.Lf():this.draggedParts!==null?this.draggedParts.Lf():this.te}},draggedLink:{get:function(){return this.diagram.draggedLink},set:function(a){this.diagram.draggedLink=a}},isDragOutStarted:{get:function(){return this.Hb},set:function(a){this.Hb=a}},startPoint:{get:function(){return this.Fr},set:function(a){this.Fr.D(a)||this.Fr.assign(a)}},delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}}}),fo.prototype.getDraggingSource=fo.prototype.Az;var Ar=null,Iu=null;fo.className="DraggingTool",Tl=new He,Ui("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),no.prototype.doCancel=function(){Ar!==null&&Ar.doCancel(),si.prototype.doCancel.call(this)};function Po(){si.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Ne,y=new Nn;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Nn,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new Xe,y=new Nn,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=ji,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new Xe,y=new Nn,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=ji,a.add(y),a.selectable=!1,a.layerName="Tool",this.Di=a,this.o=y,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new xn,this.Of=this.gj=this.Pf=null}Ae(Po,si),Po.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},Po.prototype.copyPortProperties=function(a,y,x,E,b){if(a!==null&&y!==null&&x!==null&&E!==null){var z=y.Df(),tt=We.alloc();tt.width=y.naturalBounds.width*z,tt.height=y.naturalBounds.height*z,E.desiredSize=tt,We.free(tt),b?(E.toSpot=y.toSpot,E.toEndSegmentLength=y.toEndSegmentLength):(E.fromSpot=y.fromSpot,E.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=pi,z=jt.alloc(),x.location=y.ga(pi,z),jt.free(z),E.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,E,b)}},Po.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=ji,y.fromSpot=er,y.toSpot=er),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},Po.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},Po.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof Xe){var y=this.targetPort.part;this.isForwards?this.copyPortProperties(y,this.targetPort,this.temporaryToNode,this.temporaryToPort,!0):this.copyPortProperties(y,this.targetPort,this.temporaryFromNode,this.temporaryFromPort,!1)}else this.isForwards?this.setNoTargetPortProperties(this.temporaryToNode,this.temporaryToPort,!0):this.setNoTargetPortProperties(this.temporaryFromNode,this.temporaryFromPort,!1);(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},Po.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof Xe))return null;for(;a!==null;){var E=y?a.toLinkable:a.fromLinkable;if(E===!0&&(a.portId!==null||a instanceof Xe)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(E===!1)break;a=a.panel}return null},Po.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,E=this.portGravity;0>=E&&(E=.1);var b=this,z=y.og(x,E,function(ft){return b.findValidLinkablePort(ft,a)},null,!0);for(E=1/0,y=null,z=z.iterator;z.next();){var tt=z.value,ot=tt.part;if(ot instanceof Xe){var rt=tt.ga(pi,jt.alloc()),at=x.x-rt.x,ut=x.y-rt.y;jt.free(rt),rt=at*at+ut*ut,rtx){if(this.originalLink!==null&&a===this.originalFromNode&&y===this.originalFromPort)return!0;if(y=y.portId,y===null&&(y=""),a.Mo(y).count>=x)return!1}return!0},Po.prototype.isValidTo=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.toLinkable!==!0))return!1;var x=y.toMaxLinks;if(1/0>x){if(this.originalLink!==null&&a===this.originalToNode&&y===this.originalToPort)return!0;if(y=y.portId,y===null&&(y=""),a.Sd(y).count>=x)return!1}return!0},Po.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},Po.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof Xe))return!1;a=a.portId,a===null&&(a="");var E=y.part;if(!(E instanceof Xe))return!1;for(y=y.portId,y===null&&(y=""),y=E.Sd(y);y.next();)if(E=y.value,E.fromNode===x&&E.fromPortId===a)return!0;return!1},Po.prototype.isValidLink=function(a,y,x,E){if(!this.isValidFrom(a,y)||!this.isValidTo(x,E)||!(y===null||E===null||(y.fromLinkableSelfNode&&E.toLinkableSelfNode||!this.isInSameNode(y,E))&&(y.fromLinkableDuplicates&&E.toLinkableDuplicates||!this.isLinked(y,E)))||this.originalLink!==null&&(a!==null&&this.isLabelDependentOnLink(a,this.originalLink)||x!==null&&this.isLabelDependentOnLink(x,this.originalLink))||a!==null&&x!==null&&(a.data===null&&x.data!==null||a.data!==null&&x.data===null)||!this.isValidCycle(a,x,this.originalLink))return!1;if(a!==null){var b=a.linkValidation;if(b!==null&&!b(a,y,x,E,this.originalLink))return!1}return x!==null&&(b=x.linkValidation,b!==null&&!b(a,y,x,E,this.originalLink))?!1:(b=this.linkValidation,b!==null?b(a,y,x,E,this.originalLink):!0)},Po.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var x=a.labeledLink;if(x===null)return!1;if(x===y)return!0;var E=new ze;return E.add(a),Ur(this,x,y,E)};function Ur(a,y,x,E){if(y===x)return!0;var b=y.fromNode;return b!==null&&b.isLinkLabel&&(E.add(b),Ur(a,b.labeledLink,x,E))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(E.add(y),Ur(a,y.labeledLink,x,E))))}Po.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var E=this.diagram.validCycle;if(E!==ag){if(E===Nc){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=y.linksConnected;E.next();){var b=E.value;if(b!==x&&b.isTreeLink&&b.toNode===y)return!1}return!es(this,a,y,x,!0)}if(E===Tc){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=a.linksConnected;E.next();)if(b=E.value,b!==x&&b.isTreeLink&&b.fromNode===a)return!1;return!es(this,a,y,x,!0)}if(E===kc)return a===y?a=!0:(E=new ze,E.add(y),a=ns(this,E,a,y,x)),!a;if(E===Ic)return!es(this,a,y,x,!1);if(E===Fc)return a===y?a=!0:(E=new ze,E.add(y),a=rd(this,E,a,y,x)),!a}return!0};function es(a,y,x,E,b){if(y===x)return!0;if(y===null||x===null)return!1;for(var z=y.linksConnected;z.next();){var tt=z.value;if(tt!==E&&(!b||tt.isTreeLink)&&tt.toNode===y&&(tt=tt.fromNode,tt!==y&&es(a,tt,x,E,b)))return!0}return!1}function ns(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==b&&tt.toNode===x&&(tt=tt.fromNode,tt!==x&&ns(a,y,tt,E,b)))return!0}return!1}function rd(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==b){var ot=tt.fromNode;if(tt=tt.toNode,ot=ot===x?tt:ot,ot!==x&&rd(a,y,ot,E,b))return!0}}return!1}fe.Object.defineProperties(Po.prototype,{portGravity:{get:function(){return this.te},set:function(a){0<=a&&(this.te=a)}},isUnconnectedLinkValid:{get:function(){return this.Ha},set:function(a){this.Ha=a}},linkingCursor:{get:function(){return this.u},set:function(a){this.u=a}},temporaryLink:{get:function(){return this.Ci},set:function(a){this.Ci=a}},temporaryFromNode:{get:function(){return this.Bi},set:function(a){(this.Bi=a)&&(this.j=a.port)}},temporaryFromPort:{get:function(){return this.j},set:function(a){if(this.j!==null){var y=this.j.panel;if(y!==null){var x=y.O.indexOf(this.j);y.mb(x),y.Gb(x,a)}}this.j=a}},temporaryToNode:{get:function(){return this.Di},set:function(a){(this.Di=a)&&(this.o=a.port)}},temporaryToPort:{get:function(){return this.o},set:function(a){if(this.o!==null){var y=this.o.panel;if(y!==null){var x=y.O.indexOf(this.o);y.mb(x),y.Gb(x,a)}}this.o=a}},originalLink:{get:function(){return this.Hb},set:function(a){this.Hb=a}},originalFromNode:{get:function(){return this.hb},set:function(a){this.hb=a}},originalFromPort:{get:function(){return this.ob},set:function(a){this.ob=a}},originalToNode:{get:function(){return this.Oc},set:function(a){this.Oc=a}},originalToPort:{get:function(){return this.Pc},set:function(a){this.Pc=a}},isForwards:{get:function(){return this.ia},set:function(a){this.ia=a}},validPortsCache:{get:function(){return this.hy}},targetPort:{get:function(){return this.Pf},set:function(a){this.Pf=a}},linkValidation:{get:function(){return this.gj},set:function(a){this.gj=a}},portTargeted:{get:function(){return this.Of},set:function(a){this.Of=a}}}),Po.className="LinkingBaseTool";function is(){Po.call(this),this.name="Linking",this.V={},this.F=null,this.K=vh,this.Xd=null}Ae(is,Po),is.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return a.isReadOnly||a.isModelReadOnly||!a.allowLink||!a.model.xs()||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize()?!1:this.findLinkablePort()!==null},is.prototype.findLinkablePort=function(){var a=this.diagram,y=this.startObject;if(y===null&&(y=a.ic(a.firstInput.documentPoint,null,null)),y===null||(a=y.part,!(a instanceof Xe)))return null;var x=this.direction;if(x===vh||x===Rp){var E=this.findValidLinkablePort(y,!1);if(E!==null||this.startObject===a&&(E=a.port,this.findValidLinkablePort(E,!1)))return this.isForwards=!0,E}return(x===vh||x===zp)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},is.prototype.doActivate=function(){var a=this.diagram,y=this.findLinkablePort();y===null?this.stopTool():(this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.isForwards?(this.temporaryToNode!==null&&(this.temporaryToNode.location=a.lastInput.documentPoint),this.originalFromPort=y,y=this.originalFromPort.part,y instanceof Xe&&(this.originalFromNode=y),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(this.temporaryFromNode!==null&&(this.temporaryFromNode.location=a.lastInput.documentPoint),this.originalToPort=y,y=this.originalToPort.part,y instanceof Xe&&(this.originalToNode=y),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),a.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),a.add(this.temporaryToNode),this.temporaryToNode&&this.temporaryToNode.Va(),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0)},is.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},is.prototype.doStop=function(){Po.prototype.doStop.call(this),this.startObject=null},is.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,E=null,b=null,z=null;try{var tt=this.targetPort=this.findTargetPort(this.isForwards);if(tt!==null){var ot=tt.part;ot instanceof Xe&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),E=ot,b=tt):(y=ot,x=tt,this.originalToNode!==null&&(E=this.originalToNode,b=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(E=this.originalToNode,b=this.originalToPort);y!==null||E!==null?(z=this.insertLink(y,x,E,b),z!==null?(tt===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),z.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",z)):this.doNoLink(y,x,E,b)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),z&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},is.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof Ne)return a.isTreeLink;var y=this.diagram;return y===null?!0:(a=y.partManager.getLinkCategoryForData(a),y=y.partManager.findLinkTemplateForCategory(a),y!==null?y.isTreeLink:!0)},is.prototype.insertLink=function(a,y,x,E){return this.diagram.partManager.insertLink(a,y,x,E)},is.prototype.doNoLink=function(){},fe.Object.defineProperties(is.prototype,{archetypeLinkData:{get:function(){return this.V},set:function(a){this.V=a}},archetypeLabelNodeData:{get:function(){return this.F},set:function(a){this.F=a}},direction:{get:function(){return this.K},set:function(a){this.K=a}},startObject:{get:function(){return this.Xd},set:function(a){this.Xd=a}}});var vh=new Ee(is,"Either",0),Rp=new Ee(is,"ForwardsOnly",0),zp=new Ee(is,"BackwardsOnly",0);is.className="LinkingTool",is.Either=vh,is.ForwardsOnly=Rp,is.BackwardsOnly=zp;function Js(){Po.call(this),this.name="Relinking";var a=new Nn;a.figure="Diamond",a.desiredSize=_o,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Nn,a.figure="Diamond",a.desiredSize=_o,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new ce}Ae(Js,Po),Js.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Ne){var y="RelinkFrom",x=null;if(a.isSelected&&!this.diagram.isReadOnly){var E=a.selectionObject;E!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null&&(x=this.makeAdornment(E,!1),a.bh(y,x)))}x===null&&a.Jf(y),y="RelinkTo",x=null,a.isSelected&&!this.diagram.isReadOnly&&(E=a.selectionObject,E!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null?(x=this.makeAdornment(E,!0),a.bh(y,x)):x.v())),x===null&&a.Jf(y)}},Js.prototype.makeAdornment=function(a,y){var x=new ai;return x.type=Ie.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},Js.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowRelink||!a.model.xs()||!a.lastInput.left)return!1;var y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom");return y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo")),y!==null},Js.prototype.doActivate=function(){var a=this.diagram;if(this.originalLink===null){var y=this.handle;if(y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom"),y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo"))),y===null)return;var x=y.part;if(!(x instanceof ai&&x.adornedPart instanceof Ne))return;this.handle=y,this.isForwards=x===null||x.category==="RelinkTo",this.originalLink=x.adornedPart}this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.originalFromPort=this.originalLink.fromPort,this.originalFromNode=this.originalLink.fromNode,this.originalToPort=this.originalLink.toPort,this.originalToNode=this.originalLink.toNode,this.Ew.set(this.originalLink.actualBounds),this.originalLink!==null&&0y.firstPickIndex+1&&x=x.x)y=0>=x.y?y+225:1<=x.y?y+135:y+180;else if(1<=x.x)0>=x.y?y+=315:1<=x.y&&(y+=45);else if(0>=x.y)y+=270;else if(1<=x.y)y+=90;else break t;0>y?y+=360:360<=y&&(y-=360),a.cursor=22.5>y?"e-resize":67.5>y?"se-resize":112.5>y?"s-resize":157.5>y?"sw-resize":202.5>y?"w-resize":247.5>y?"nw-resize":292.5>y?"n-resize":337.5>y?"ne-resize":"e-resize"}else if(a instanceof Ie)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},br.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowResize&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},br.prototype.doActivate=function(){var a=this.diagram;this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null&&(this.adornedObject=this.handle.part.adornedObject,this.adornedObject!==null&&(a.isMouseCaptured=!0,a.animationManager.Cc(),this.Ea(this.name),this.Xq.set(this.adornedObject.ga(this.handle.alignment.gv())),this.Tn.set(this.adornedObject.part.location),this.Dw.set(this.adornedObject.desiredSize),this.pt=this.computeCellSize(),this.rt=this.computeMinSize(),this.qt=this.computeMaxSize(),this.isActive=!0))},br.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},br.prototype.stopTransaction=function(){var a=this.diagram,y=si.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},br.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},br.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,jt.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),a.bd(),jt.free(b)}},br.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,jt.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),jt.free(b),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},br.prototype.resize=function(a){var y=this.diagram,x=this.adornedObject;if(x!==null){if(x.desiredSize=a.size,a=x.part,a.Va(),x=x.ga(this.handle.alignment.gv()),a instanceof Bn){var E=new He;if(E.add(a),!this.dragsMembers&&a.placeholder===null){var b=new st;b.dragsMembers=!1}y.moveParts(E,this.oppositePoint.copy().re(x),!0,b)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},br.prototype.computeResize=function(a,y,x,E,b,z){y.Mc()&&(y=pi);var tt=this.adornedObject.naturalBounds,ot=tt.x,rt=tt.y,at=tt.x+tt.width,ut=tt.y+tt.height,ft=1;if(!z){ft=tt.width;var mt=tt.height;0>=ft&&(ft=1),0>=mt&&(mt=1),ft=mt/ft}return mt=jt.alloc(),Jt.No(a.x,a.y,ot,rt,b.width,b.height,mt),a=tt.copy(),0>=y.x?0>=y.y?(a.x=Math.max(mt.x,at-E.width),a.x=Math.min(a.x,at-x.width),a.width=Math.max(at-a.x,x.width),a.y=Math.max(mt.y,ut-E.height),a.y=Math.min(a.y,ut-x.height),a.height=Math.max(ut-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width),a.x=at-a.width,a.y=ut-a.height)):1<=y.y?(a.x=Math.max(mt.x,at-E.width),a.x=Math.min(a.x,at-x.width),a.width=Math.max(at-a.x,x.width),a.height=Math.max(Math.min(mt.y-rt,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width),a.x=at-a.width)):(a.x=Math.max(mt.x,at-E.width),a.x=Math.min(a.x,at-x.width),a.width=at-a.x,z||(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft,a.y=rt+.5*(ut-rt-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(mt.x-ot,E.width),x.width),a.y=Math.max(mt.y,ut-E.height),a.y=Math.min(a.y,ut-x.height),a.height=Math.max(ut-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width),a.y=ut-a.height)):1<=y.y?(a.width=Math.max(Math.min(mt.x-ot,E.width),x.width),a.height=Math.max(Math.min(mt.y-rt,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width))):(a.width=Math.max(Math.min(mt.x-ot,E.width),x.width),z||(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft,a.y=rt+.5*(ut-rt-a.height))):0>=y.y?(a.y=Math.max(mt.y,ut-E.height),a.y=Math.min(a.y,ut-x.height),a.height=ut-a.y,z||(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width,a.x=ot+.5*(at-ot-a.width))):1<=y.y&&(a.height=Math.max(Math.min(mt.y-rt,E.height),x.height),z||(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width,a.x=ot+.5*(at-ot-a.width))),jt.free(mt),a},br.prototype.computeReshape=function(){var a=we;return this.adornedObject instanceof Nn&&(a=Cv(this.adornedObject)),!(a===en||this.diagram.lastInput.shift)},br.prototype.computeMinSize=function(){var a=this.adornedObject.minSize.copy(),y=this.minSize;return!isNaN(y.width)&&y.width>a.width&&(a.width=y.width),!isNaN(y.height)&&y.height>a.height&&(a.height=y.height),a},br.prototype.computeMaxSize=function(){var a=this.adornedObject.maxSize.copy(),y=this.maxSize;return!isNaN(y.width)&&y.widthx?x+=360:360<=x&&(x-=360),x=Math.round(45*Math.round(x/45));var E=this.handleDistance;return x===0?y.x=a.naturalBounds.width+E:x===45?(y.x=a.naturalBounds.width+E,y.y=a.naturalBounds.height+E):x===90?y.y=a.naturalBounds.height+E:x===135?(y.x=-E,y.y=a.naturalBounds.height+E):x===180?y.x=-E:x===225?(y.x=-E,y.y=-E):x===270?y.y=-E:x===315&&(y.x=a.naturalBounds.width+E,y.y=-E),a.ga(y)},os.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new jt(NaN,NaN),this.isActive=a.isMouseCaptured=!1},os.prototype.stopTransaction=function(){var a=this.diagram,y=si.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},os.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},os.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},os.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){a.delaysLayout=!1;var y=this.computeRotate(a.lastInput.documentPoint);this.rotate(y),a.Ya(),this.transactionResult=this.name,a.R("PartRotated",this.adornedObject,this.originalAngle)}this.stopTool()},os.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var x=y.locationObject,E=y.rotateObject;(x===E||x.rg(E))&&(x=this.Tn.copy(),y.location=x.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},os.prototype.computeRotate=function(a){a=this.rotationPoint.ab(a)-this.handleAngle;var y=this.adornedObject.panel;y!==null&&(a-=y.li()),360<=a?a-=360:0>a&&(a+=360),y=Math.min(Math.abs(this.snapAngleMultiple),180);var x=Math.min(Math.abs(this.snapAngleEpsilon),y/2);return!this.diagram.lastInput.shift&&0y-x&&(a=(Math.floor(a/y)+1)*y)),360<=a?a-=360:0>a&&(a+=360),a},fe.Object.defineProperties(os.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof ai))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof ai)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},snapAngleMultiple:{get:function(){return this.ia},set:function(a){this.ia=a}},snapAngleEpsilon:{get:function(){return this.V},set:function(a){this.V=a}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(a){this.kr=a.copy()}},handleAngle:{get:function(){return this.u},set:function(a){this.u=a}},handleDistance:{get:function(){return this.F},set:function(a){this.F=a}}}),os.className="RotatingTool",Ui("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function yh(){si.call(this),this.name="ClickSelecting"}Ae(yh,si),yh.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},yh.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},yh.className="ClickSelectingTool";function Ea(){si.call(this),this.name="Action",this.pk=null}Ae(Ea,si),Ea.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,x=a.ic(y.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E});return x!==null&&x.isActionable?(this.pk=x,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},Ea.prototype.doMouseDown=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionDown!==null&&y.actionDown(a,y))}else this.canStart()&&this.doActivate()},Ea.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionMove!==null&&y.actionMove(a,y))}},Ea.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;if(y===null)return;a.targetObject=y,y.actionUp!==null&&y.actionUp(a,y),this.standardMouseClick(function(x){for(;x.panel!==null&&(!x.isActionable||x!==y);)x=x.panel;return x},function(x){return x===y})}this.stopTool()},Ea.prototype.doCancel=function(){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionCancel!==null&&y.actionCancel(a,y),this.stopTool())},Ea.prototype.doStop=function(){this.pk=null},Ea.className="ActionTool";function Du(){si.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new jt(0,0)}Ae(Du,si),Du.prototype.canStart=function(){if(!this.isEnabled||this.archetypeNodeData===null)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.lastInput.left||this.isBeyondDragSize())return!1;if(this.isDoubleClick){if(a.lastInput.clickCount===1&&(this.mw=a.lastInput.viewPoint.copy()),a.lastInput.clickCount!==2||this.isBeyondDragSize(this.mw))return!1}else if(a.lastInput.clickCount!==1)return!1;return!(a.currentTool!==this&&a.Ol(a.lastInput.documentPoint,!0)!==null)},Du.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},Du.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var E=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof ln)x.Zc()&&(Ia(x),E=x.copy(),E!==null&&y.add(E));else if(x!==null){var b=y.model.copyNodeData(x);Pe(b)&&(y.model.xf(b),E=y.Lc(b))}if(E!==null){var z=jt.allocAt(a.x,a.y);this.isGridSnapEnabled&&ef(this.diagram,E,a,z),E.location=z,y.allowSelect&&(y.clearSelection(!0),E.isSelected=!0),jt.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",E)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return E},fe.Object.defineProperties(Du.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){this.Ri=a}},isDoubleClick:{get:function(){return this.o},set:function(a){this.o=a}},isGridSnapEnabled:{get:function(){return this.j},set:function(a){this.j=a}}}),Du.className="ClickCreatingTool";function la(){si.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new ln;a.layerName="Tool",a.selectable=!1;var y=new Nn;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}Ae(la,si),la.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(!a.allowSelect)return!1;var y=a.lastInput;return!(!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.timestamp-a.firstInput.timestampb.right&&(x.x-=E.width+5/y.scale),x.xb.bottom&&(x.y-=E.height+5/y.scale),x.ya.lastInput.clickCount)):!1},Hi.prototype.doStart=function(){Ou=this,this.textBlock!==null&&this.doActivate()},Hi.prototype.doActivate=function(){if(!this.isActive){var a=this.diagram;if(a!==null){var y=this.textBlock;if(y===null&&(y=a.ic(a.lastInput.documentPoint)),y!==null&&y instanceof Ni&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=Yd;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var E=new ce(this.textBlock.ga(yr),this.textBlock.ga($r));a.tv(E),x.show(y,a,this),this.currentTextEditor=x}}}},Hi.prototype.doCancel=function(){this.stopTool()},Hi.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Hi.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Al)},Hi.prototype.acceptText=function(a){switch(a){case Al:this.qa===ud?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===Yd||this.qa===Jd||this.qa===Zd)&&(this.qa=oc,ic(this));break;case Xg:case Kd:case Wg:(Kd!==a||this.textBlock.isMultiline!==!0)&&(this.qa===Yd||this.qa===Jd||this.qa===Zd)&&(this.qa=oc,ic(this))}};function ic(a){var y=a.textBlock,x=a.diagram,E=a.currentTextEditor;if(y!==null&&E!==null){var b=y.text,z="";E.valueFunction!==null&&(z=E.valueFunction()),a.isValidText(y,b,z)?(a.Ea(a.name),a.qa=ud,a.transactionResult=a.name,y.text=z,a.doSuccess(b,z),x!==null&&x.R("TextEdited",y,b),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=Jd,a.doError(b,z))}}Hi.prototype.doError=function(a,y){var x=this.textBlock;x.errorFunction!==null&&x.errorFunction(this,a,y),(a=this.currentTextEditor)&&a.show(x,this.diagram,this)},Hi.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},Hi.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=ld,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},Hi.prototype.doStop=function(){Ou=null},Hi.prototype.isValidText=function(a,y,x){var E=this.textValidation;return E!==null&&!E(a,y,x)?!1:(E=a.textValidation,!!(E===null||E(a,y,x)))},Hi.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},fe.Object.defineProperties(Hi.prototype,{textBlock:{get:function(){return this.ia},set:function(a){this.ia=a}},currentTextEditor:{get:function(){return this.o},set:function(a){this.o=a}},defaultTextEditor:{get:function(){return this.j},set:function(a){this.j=a}},starting:{get:function(){return this.V},set:function(a){this.V=a}},textValidation:{get:function(){return this.vj},set:function(a){this.vj=a}},minimumEditorScale:{get:function(){return this.u},set:function(a){this.u=a}},selectsTextOnActivate:{get:function(){return this.F},set:function(a){this.F=a}},state:{get:function(){return this.qa},set:function(a){this.qa!==a&&(this.qa=a)}}}),Hi.prototype.measureTemporaryTextBlock=Hi.prototype.Lx;var Xg=new Ee(Hi,"LostFocus",0),Al=new Ee(Hi,"MouseDown",1),Wg=new Ee(Hi,"Tab",2),Kd=new Ee(Hi,"Enter",3),$m=new Ee(Hi,"SingleClick",0),ad=new Ee(Hi,"SingleClickSelected",1),Vg=new Ee(Hi,"DoubleClick",2),ld=new Ee(Hi,"StateNone",0),Yd=new Ee(Hi,"StateActive",1),Zd=new Ee(Hi,"StateEditing",2),oc=new Ee(Hi,"StateValidating",3),Jd=new Ee(Hi,"StateInvalid",4),ud=new Ee(Hi,"StateValidated",5),Ou=null;Hi.className="TextEditingTool",Hi.LostFocus=Xg,Hi.MouseDown=Al,Hi.Tab=Wg,Hi.Enter=Kd,Hi.SingleClick=$m,Hi.SingleClickSelected=ad,Hi.DoubleClick=Vg,Hi.StateNone=ld,Hi.StateActive=Yd,Hi.StateEditing=Zd,Hi.StateValidating=oc,Hi.StateInvalid=Jd,Hi.StateValidated=ud,Ui("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function Qs(a){_d||(rc(),_d=!0),this.H=bl,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=su,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new ze,this.ce=new Fr,this.ce.Yd=this,this.Ei=new ze,this.pu=new ze,this.Sr=new ze,this.pr=new ze,a&&Object.assign(this,a)}Qs.prototype.Xe=function(a){this.H=a},Qs.prototype.canStart=function(){return!0};function Dl(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),Nr(a.H),a.zb=!0)}function Kg(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,E=a.Zd.contains("Model");E&&(a.Ok=!0,a.Pk===su?(y.isViewportUnconstrained=!0,y.vc.clear(),y.add(x,"position",x.position.copy().offset(0,-200),x.position),y.add(x,"opacity",0,1)):a.Pk===sc&&y.vc.clear(),a.Qw=!!(a.Pk===$d&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),E&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),tg(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,E=y.vc.get(x),x.autoScale!==Xr&&E!==null&&(delete E.start.scale,delete E.end.scale),Ke.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&ys(x),dc(x),a.zb=!1,y.start(),y.bc&&(ju(a),x.Ya(),ac(y,0),ha(x,!0),Sh(a),x.R("AnimationStarting",a)))}))}}function ru(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function Yg(a,y,x,E){a.isTicking||ru(a)||y instanceof Ne&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,E,!1)}Pt=Qs.prototype,Pt.fv=function(a){return this.ce.fv(a)},Pt.Xu=function(a){return this.ce.Xu(a)};function Zg(a,y){function x(){if(0z?z+=360:rt+=360),z=b(x,z,rt-z,E)%360,tt=b(x,tt,at-tt,E),ot=b(x,ot,ut-ot,E),x=b(x,a,y-a,E),"hsla("+z+", "+tt+"%, "+ot+"%, "+x+")"}function rc(){function a(x,E,b,z,tt,ot){x.position=new jt(z(tt,E.x,b.x-E.x,ot),z(tt,E.y,b.y-E.y,ot))}var y=new xn;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,E,b,z,tt,ot){tta&&Zn(a,">= 1",Qs,"duration"),this.Dg=a}},isAnimating:{get:function(){return this.bc}},isTicking:{get:function(){return this.vq}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a}},defaultAnimation:{get:function(){return this.ce}},activeAnimations:{get:function(){return this.Ei}},initialAnimationStyle:{get:function(){return this.Pk},set:function(a){this.Pk=a}}}),Qs.prototype.stopAnimation=Qs.prototype.Cc;var qd=null,_d=!1,su=new Ee(Qs,"Default",1),$d=new Ee(Qs,"AnimateLocations",2),sc=new Ee(Qs,"None",3);Qs.className="AnimationManager",Qs.defineAnimationEffect=function(a,y){_d||(rc(),_d=!0),qd.add(a,y)},Qs.Default=su,Qs.AnimateLocations=$d,Qs.None=sc;function Fr(a){this.vu=this.Nw=this.Yd=this.H=null,this.Xk=this.bc=this.j=!1,this.cn=this.Qd=0,this.Lp=this.ot=hd,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=Dr,this.vc=new xn,this.Tt=new xn,this.yl=new ze,this.Ut=new ze,this.dw=Hu,a&&Object.assign(this,a)}Fr.prototype.suspend=function(){this.Xk=!0},Fr.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,eg(this,!0),ju(this.Yd),ha(this.H),Sh(this.Yd),this.H.redraw()};function tg(a,y){if(a.Tt.clear(),a.Wk=!1,a.au=0,a.Gd=NaN,0a.cn?a.Gd:E-a.Qd;y&&(b=a.gw,ba.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function ac(a,y){for(var x=a.Gd,E=a.vc.iterator,b=a.Wk;E.next();){var z=E.key;if(!(z instanceof Yt&&z.diagram===null)){var tt=E.value,ot=b?tt.end:tt.start;tt=b?tt.start:tt.end;var rt=qd,at;for(at in tt)at==="position"&&(tt["position:placeholder"]||tt["position:nodeCollapse"])||rt.get(at)===null||rt.get(at)(z,ot[at],tt[at],a.Lp,y,x,a)}}}Pt.stop=function(){return this.bc?(this.Ml(!0),this):this},Pt.Ml=function(a){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var y=this.H,x=this.Yd;this.Xk=this.bc=x.Ok=!1,ju(x);for(var E=this.vc,b=this.yl.iterator;b.next();)y.remove(b.value);for(b=this.Ut.iterator;b.next();)b.value.v();b=this.ho,E=E.iterator;for(var z=qd;E.next();){var tt=E.key,ot=E.value,rt=b?ot.end:ot.start,at=b?ot.start:ot.end,ut=ot.Ku,ft;for(ft in at)if(z.get(ft)!==null){var mt=ft;!ot.Hu||mt!=="position:nodeCollapse"&&mt!=="position:placeholder"||(mt="position"),z.get(mt)(tt,rt[ft],ut[ft]!==void 0?ut[ft]:ot.Hu?rt[ft]:at[ft],this.Lp,this.Gd,this.Gd,this)}ot.Hu&&ut.location!==void 0&&tt instanceof ln&&(tt.location=ut.location),ot.nv&&tt instanceof ln&&tt.Zb(!1)}if(y.As.clear(),ng(y,!1),y.Ya(),y.N(),ha(y,!0),x.defaultAnimation===this){for(ft=x.pr.iterator;ft.next();)b=ft.value,b.Tg!==null&&(b.points=b.Tg,b.Tg=null);x.pr.clear()}ha(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),Sh(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),tg(this,null),x.Ml(this),y.$b())}},Pt.Cj=function(a,y){var x=y.actualBounds,E=null;if(y instanceof Bn&&(E=y.placeholder),E!==null?(x=E.ga(yr),E=E.padding,x.x+=E.left,x.y+=E.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new jt(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof Bn)for(a=a.memberParts;a.next();)E=a.value,E instanceof Xe&&this.Cj(E,y)},Pt.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof Bn&&(x=y.placeholder),x!==null){var E=x.ga(yr);x=x.padding,E.x+=x.left,E.y+=x.top,this.add(a,"position:placeholder",a.position,E,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),E=this.vc,E.contains(a)&&(E.I(a).nv=!0),a instanceof Bn)for(a=a.memberParts;a.next();)E=a.value,E instanceof Xe&&this.Aj(E,y)}},Pt.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},fe.Object.defineProperties(Fr.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Zn(a,">= 1",Fr,"duration"),this.Dg=a}},reversible:{get:function(){return this.ho},set:function(a){this.ho=a}},runCount:{get:function(){return this.cu},set:function(a){0a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Gp(a,y,x,E){return a===E?y+x:x*(-Math.pow(2,-10*a/E)+1)+y}Fr.className="Animation",Fr.EaseLinear=function(a,y,x,E){return x*a/E+y},Fr.EaseInOutQuad=hd,Fr.EaseInQuad=function(a,y,x,E){return x*(a/=E)*a+y},Fr.EaseOutQuad=function(a,y,x,E){return-x*(a/=E)*(a-2)+y},Fr.EaseInExpo=function(a,y,x,E){return a===0?y:x*Math.pow(2,10*(a/E-1))+y},Fr.EaseOutExpo=Gp;function wh(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}wh.className="AnimationState";function Ha(a,y,x){this.xd=null,this.rf=a,this.so=x||lc,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=Ch))}Ha.prototype.copy=function(){var a=new Ha(this.rf);a.so=this.so;var y=this.uk;if(y!==null){var x={};y.duration!==void 0&&(x.duration=y.duration),y.finished!==void 0&&(x.finished=y.finished),y.easing!==void 0&&(x.easing=y.easing),a.uk=x}return a};function Up(a,y){a=a.uk,a!==null&&(a.duration&&(y.duration=a.duration),a.finished&&(y.finished=a.finished),a.easing&&(y.easing=a.easing))}fe.Object.defineProperties(Ha.prototype,{propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},animationSettings:{get:function(){return this.uk},set:function(a){this.uk=a}},startCondition:{get:function(){return this.so},set:function(a){this.so=a}}});var lc=new Ee(Ha,"Default",1),Ch=new Ee(Ha,"Immediate",2),dd=new Ee(Ha,"Bundled",3);Ha.className="AnimationTrigger",Ha.Default=lc,Ha.Immediate=Ch,Ha.Bundled=dd;function fr(a){eo(this),this.H=null,this.Pa=new He,this.xa="",this.pb=1,this.o=!1,this.j=this.Uh=this.u=this.Oi=this.Ni=this.Mi=this.Li=this.Ji=this.Ki=this.Ii=this.Qi=this.Hi=this.Pi=this.Gi=this.Fi=!0,this.Zq=[],a&&Object.assign(this,a)}Pt=fr.prototype,Pt.clear=function(){for(var a=this.Pa,y=0;y=a)return y;for(var x=0,E=0,b=0,z=0,tt=0,ot=this.Pa.iterator;ot.next();){var rt=ot.value;rt instanceof Bn?b++:rt instanceof Xe?E++:rt instanceof Ne?z++:rt instanceof ai?tt++:x++}if(ot="",0x.Oq||ot.height*b>x.Oq?y.gc(a,x):(b=y.actualBounds,z=y.naturalBounds,b.width===0||b.height===0||isNaN(b.x)||isNaN(b.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(xo(y,a,y.areaBackground,!0,!0,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.areaBackground===null&&y.background===null&&(xo(y,a,"rgba(0,0,0,0.3)",!0,!1,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),xo(y,a,y.background,!0,!1,z,b),a.fillRect(0,0,z.width/2,z.height/2),x.ws()||(y=1/(x.m11*x.m22-x.m12*x.m21),a.transform(x.m22*y,-x.m12*y,-x.m21*y,x.m11*y,y*(x.m21*x.dy-x.m22*x.dx),y*(x.m12*x.dx-x.m11*x.dy)))))),E&&(a.restore(),a.Vc(!0))}},Pt.g=function(a,y,x,E,b){var z=this.diagram;z!==null&&z.cb(ro,a,this,y,x,E,b)},Pt.oi=function(a,y,x){var E=this.Pa;if(y.Ig=this,this===null&&Qr(y),a>=E.count)a=E.count;else if(E.M(a)===y)return-1;return E.Gb(a,y),y.Vo(x),E=this.diagram,E!==null&&(x?E.N():E.oi(y)),qg(this,a,y),a},Pt.pc=function(a,y,x){if(!x&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,x);var E=this.Pa;if(0>a||a>=E.length){if(a=E.indexOf(y),0>a)return-1}else if(E.M(a)!==y&&(a=E.indexOf(y),0>a))return-1;return y.Wo(x),E.mb(a),E=this.diagram,E!==null&&(x?E.N():E.pc(y)),y.Ig=null,Qr(y),a};function qg(a,y,x){if(y=Wp(a,y,x),x instanceof Bn&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var E=-1,b=a.Pa.s,z=b.length,tt=0;ttE&&ot.containingGroup===x&&(E=tt,0<=y))break}!(0>E)&&E=b)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var z=y-1,tt=NaN;0<=z&&(tt=a.M(z).zOrder,!!isNaN(tt));)z--;for(var ot=y+1,rt=NaN;otE)for(;;){if(z===-1||tt<=E){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(tt=NaN;0<=--z&&(tt=a.M(z).zOrder,isNaN(tt)););}else if(!isNaN(rt)&&rt=E){if(ot--,ot===y)break;return a.mb(y),a.Gb(ot,x),ot}for(rt=NaN;++ota||1=a)return y;for(var x=this.Wa.iterator;x.next();)y+=` - `+x.value.toString(a-1);return y};function hc(a,y){if(Ao){if(y!=null||ee("Diagram setup requires an argument DIV."),a.Ka!==null&&ee("Diagram has already completed setup."),typeof y=="string"?a.Ka=Ke.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:ee("No DIV or DIV id supplied: "+y),a.Ka===null&&ee("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&ee("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Ke.ResizeObserver){var x=Yi(function(){a.$b()},250);a.ol=new Ke.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}Ke.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var E="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=E,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=Ke.go;var b=new ka(a);if(b.style!==void 0&&(b.style.position="absolute",b.style.top="0px",b.style.left="0px",Ke.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),b.style.zIndex="2",b.style.userSelect="none",b.style.MozUserSelect="none",b.style.touchAction="none",b.style.letterSpacing="normal !important",b.style.wordSpacing="normal !important"),a.ta=b,a.ib=b.context,E=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),yc(a,a.Aa,a.ya),a.Ka.insertBefore(b.Oa,a.Ka.firstChild),b=new ka(null),b.width=1,b.height=1,a.jw=b,a.oy=b.context,Ao){b=po("div");var z=po("div");b.style.position="absolute",b.style.overflow="auto",b.style.width=a.Aa+"px",b.style.height=a.ya+"px",b.style.zIndex="1",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(b),b.appendChild(z),b.onscroll=Jp,b.addEventListener("pointerdown",qp),b.H=a,b.uy=!0,b.vy=!0,a.ku=b,a.hu=z}a.hk=Yi(function(){a.Yh=null,a.N()},300),a.Ov=Yi(function(){dc(a)},250),a.preventDefault=function(tt){return tt.preventDefault(),!1},a.$j=function(tt){if(a.isEnabled){var ot=ua(a,tt,!0);ot.bubbles=!0;var rt=0,at=0;ot.delta=0,tt.deltaX!==void 0?(tt.deltaX!==0&&(rt=0Math.abs(tt.deltaY)?-rt:-at):tt.wheelDeltaX!==void 0?(tt.wheelDeltaX!==0&&(rt=0Math.abs(tt.wheelDeltaY)?-rt:-at):tt.wheelDelta!==void 0&&tt.wheelDelta!==0&&(ot.delta=0ot||Math.abs(at.y-tt.screenY)>ot)?a.yq++:a.yq=1,rt.clickCount=a.yq,a.tw=tt.timeStamp,a.uw.sg(tt.screenX,tt.screenY),a.doMouseDown(),tt.button===1?tt.preventDefault():Ga(rt,tt)}},a.dk=function(tt){if(a.isEnabled){a.Vk=!0;var ot=a.oj;if(ot[0]===null||ot[0].pointerId!==tt.pointerId&&ot[0].pointerType===tt.pointerType){if(ot[1]!==null&&ot[1].pointerId===tt.pointerId){ot[1]=tt;return}if(ot[0]===null)ot[0]=tt;else return}else ot[0]=tt;if(ot[0].pointerId===tt.pointerId){ot=pc(a,tt,!1,!1,!1,ot[1]!==null);var rt=Ke.document.elementFromPoint(tt.clientX,tt.clientY)||null;rt!==null&&rt.shadowRoot!==void 0&&rt.shadowRoot!==null&&(rt=rt.shadowRoot.elementFromPoint(tt.clientX,tt.clientY));var at=a,ut=tt;rt&&rt.H&&(ut=tt,at=rt.H),ot.targetDiagram=at,fd(a,ut,ot),ot.targetObject=null,a.doMouseMove(),Ga(ot,tt)}}},a.fk=function(tt){if(a.isEnabled){a.Vk=!0;var ot=tt.pointerType==="touch"||tt.pointerType==="pen",rt=a.Yt;if(ot&&a.qu)delete rt[tt.pointerId],tt.preventDefault();else if(rt=a.oj,rt[0]===null||rt[0].pointerId!==tt.pointerId&&rt[0].pointerType===tt.pointerType)rt[1]!==null&&rt[1].pointerId===tt.pointerId&&(rt[1]=null);else{rt[0]=null,rt=pc(a,tt,!1,!0,!0,!1);var at=Ke.document.elementFromPoint(tt.clientX,tt.clientY)||null;at!==null&&at.shadowRoot!==void 0&&at.shadowRoot!==null&&(at=at.shadowRoot.elementFromPoint(tt.clientX,tt.clientY)),at!==null&&at.H instanceof oe&&at.H!==a&&fd(at.H,tt,rt),at===null&&(at=tt.target),fd(a,tt,rt),rt.clickCount=a.yq,rt.targetDiagram=cc(tt,at),rt.targetObject=null,a.doMouseUp(),Ga(rt,tt),ot&&(a.wq=!1)}}},a.ek=function(tt){if(a.isEnabled){a.Vk=!1;var ot=a.Yt;ot[tt.pointerId]&&delete ot[tt.pointerId],ot=a.oj,ot[0]!==null&&ot[0].pointerId===tt.pointerId&&(ot[0]=null),ot[1]!==null&&ot[1].pointerId===tt.pointerId&&(ot[1]=null),tt.pointerType!=="touch"&&tt.pointerType!=="pen"&&(tt=a.currentTool,tt.cancelWaitAfter(),tt.standardMouseOver())}},a.ck=function(tt){var ot=a.oj;ot[0]!==null&&ot[0].pointerId===tt.pointerId?(ot[0]=null,a.wq=!1):ot[1]!==null&&ot[1].pointerId===tt.pointerId&&(ot[1]=null)},a.Vp=E.Z["d"+hg[1]+hg[2]+"wI"+Sd.slice(1,5)]["b"+NS.slice(1,y)](E.Z,ug,y,y),E.Vc(!0),tv(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}oe.prototype.addEventListener=function(a,y,x,E){a.addEventListener(y,x,{capture:E,passive:!1})},oe.prototype.removeEventListener=function(a,y,x,E){a.removeEventListener(y,x,{capture:E})};function tv(a){var y=a.ta.Oa;y instanceof HTMLCanvasElement||(y=a.div),a.addEventListener(y,"pointerdown",a.ui,!1),a.addEventListener(y,"pointermove",a.dk,!1),a.addEventListener(y,"pointerup",a.fk,!1),a.addEventListener(y,"pointerout",a.ek,!1),a.addEventListener(y,"pointercancel",a.ck,!1),a.addEventListener(y,"pointerenter",a.bz,!1),a.addEventListener(y,"pointerleave",a.cz,!1),a.addEventListener(y,"wheel",a.$j,!1),a.addEventListener(y,"keydown",a.Qz,!1),a.addEventListener(y,"keyup",a.Rz,!1),a.addEventListener(y,"blur",a.Ny,!1),a.addEventListener(y,"focus",a.Oy,!1),a.addEventListener(y,"selectstart",function(x){return x.preventDefault(),!1},!1),a.addEventListener(y,"contextmenu",function(x){return x.preventDefault(),!1},!1),a.addEventListener(Ke,"resize",a.Ov,!1)}function ys(a){30At&&(this.position=Dt.h(-(y.scrollWidth-this.Aa)+It-this.Aa/b+ut,this.position.y))),a.vy&&this.allowVerticalScroll&&(otBt&&(this.position=Dt.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/b+z))),jt.free(Dt),this.vd=!0,this.Ee=this.qr=!1,E=this.documentBounds,b=this.viewportBounds,ut=E.right,At=b.right,z=E.bottom,Bt=b.bottom,tt=E.x,ft=b.x,ot=E.y,E=b.y,mt>=rt&&tt>=ft&&ut<=At&&(x.style.width="1px"),yt>=at&&ot>=E&&z<=Bt&&(x.style.height="1px"))}},oe.prototype.computeBounds=function(a){return a===void 0&&(a=new ce),Nr(this),gc(this,a)};function gc(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,E=a.Wa.s,b=E.length,z=0;zx&&(y=x),ya.maxScale&&(y=a.maxScale),y):y===Fh?(y=rt>ot?(tt-a.Db)/E:(z-a.Db)/b,y>x&&(y=x),ya.maxScale&&(y=a.maxScale),y):a.scale}oe.prototype.zoomToFit=function(){var a=this.sj;this.sj=Hu,this.scale=gd(this,qs),a!==Hu&&(La(this,!1),fc(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Pt=oe.prototype,Pt.BA=function(a,y){y===void 0&&(y=qs);var x=a.width,E=a.height;if(!(x===0||E===0||isNaN(x)&&isNaN(E))){var b=1;if(y===qs||y===Fh)if(isNaN(x))b=this.viewportBounds.height*this.scale/E;else if(isNaN(E))b=this.viewportBounds.width*this.scale/x;else{b=this.Aa;var z=this.ya;b=y===Fh?z/E>b/x?(z-(this.Be?this.Db:0))/E:(b-(this.gf?this.Db:0))/x:Math.min(z/E,b/x)}this.scale=b,this.position=new jt(a.x,a.y)}},Pt.Jy=function(a,y){this.Va();var x=this.documentBounds,E=this.viewportBounds;this.position=new jt(x.x+(a.x*x.width+a.offsetX)-(y.x*E.width-y.offsetX),x.y+(a.y*x.height+a.offsetY)-(y.y*E.height-y.offsetY))},Pt.zz=function(a){if(a instanceof Yt){this.eq=a;var y=jt.alloc();this.fq=this.op(a.ga(yr,y)),jt.free(y)}else this.eq=null,this.fq=Il};function fc(a,y,x,E,b,z){var tt=jt.allocAt(a.pa.x,a.pa.y),ot=tt.x,rt=tt.y;if(a.eq!==null){var at=jt.alloc();at=a.eq.ga(yr,at),ot=at.x-a.fq.x/a.scale,rt=at.y-a.fq.y/a.scale,b=er,jt.free(at)}(z||a.scrollMode===Hu)&&(b.sb()&&(x>y.width&&(ot=y.x+(b.x*y.width+b.offsetX)-(b.x*x-b.offsetX)),E>y.height&&(rt=y.y+(b.y*y.height+b.offsetY)-(b.y*E-b.offsetY))),b=a.rj,z=x-y.width,xy.left?ot=y.left:oty.top?rt=y.top:rty;y++){var x=a.De.iterator;if(x===null||a.De.count===0)break;a.De=new ze,a.Nv(x,a.De)}a.nodes.each(function(E){E instanceof Bn&&E.U&65536&&(E.U=E.U^65536)})}}Pt.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof Bn||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof Bn&&x.isVisible()&&rg(this,x);for(a.reset();a.next();)x=a.value,x instanceof Ne&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x));for(a.reset();a.next();)x=a.value,x instanceof ai&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function rg(a,y){for(var x=Jn(),E=Jn(),b=y.memberParts;b.next();){var z=b.value;z.isVisible()&&(z instanceof Bn?($s(z)||as(z)||Th(z))&&rg(a,z):z instanceof Ne?z.fromNode===y||z.toNode===y?E.push(z):x.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=x.length,b=0;bKt&&(It=Ue.left,Rt=Ue.right),Dt.height>ie&&(zt=Ue.top,Gt=Ue.bottom)):(It=Ue.left,Rt=Ue.right,zt=Ue.top,Gt=Ue.bottom);var tn=Dt.width+It+Rt,Ye=Dt.height+zt+Gt;Ue=a.scale;var Fe=tn>rt/Ue,ye=Ye>at/Ue;if(!(z||a.gf||a.Be||Fe||ye))return!0;It=Dt.x-It,rt=ut.x,Rt=Dt.right+Rt,at=ut.right+tt,zt=Dt.y-zt;var Cn=ut.y;Dt=Dt.bottom+Gt,ut=ut.bottom+ot;var yn="1px";if(Gt="1px",a.scrollMode===Hu&&(Fe||ye)&&(Fe&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Fe=1,It+1at+1&&(Fe=Math.max((Rt-at)*Ue+a.Aa,Fe)),Kt+tt+1ut+1&&(Fe=Math.max((Dt-ut)*Ue+a.ya,Fe)),ie+ot+1at+1&&(tt=Math.max((Rt-at)*Ue+a.Aa,tt)),Kt+1ut+1&&(ot=Math.max((Dt-ut)*Ue+tt,ot)),ie+1at+1&&(y=a.position.x*Ue)),a.tn)switch(a.bu){case"negative":y=-(At.scrollWidth-y-At.clientWidth);break;case"reverse":y=At.scrollWidth-y-At.clientWidth}return At.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(ie+1ut+1&&(At.scrollTop=a.position.y*Ue)),rt=a.Aa,at=a.ya,At.style.width=rt+(a.gf?a.Db:0)+"px",At.style.height=at+(a.Be?a.Db:0)+"px",x!==rt||E!==at||a.animationManager.zb?(x=ce.allocAt(b,ft,mt,yt),a.onViewportBoundsChanged(x,a.viewportBounds,Ue,z),ce.free(x),!1):!0}Pt=oe.prototype,Pt.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&ee("Cannot add part "+a.toString()+" to "+this.toString()+". It is already a part of "+y.toString()),y=this.Qj(a.layerName),y===null&&(y=this.Qj("")),y===null&&ee('Cannot add a Part when unable find a Layer named "'+a.layerName+'" and there is no default Layer'),a.layer!==y)){var x=y.oi(99999999,a,a.diagram===this);0<=x&&this.cb(Mo,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},Pt.oi=function(a){this.partManager.oi(a);var y=this;Ed(a,function(x){vd(y,x)}),(a instanceof ai||a instanceof Bn&&a.placeholder!==null)&&a.v(),a.data!==null&&Ed(a,function(x){ay(y.partManager,x)}),as(a)!==!0&&Th(a)!==!0||this.De.add(a),jA(a,!0,this),zA(a)?(a.actualBounds.w()&&this.N(Md(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Md(a,a.actualBounds)),this.$b()},Pt.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Ed(a,function(x){ly(y.partManager,x,y)}),this.De.remove(a),zA(a)?(a.actualBounds.w()&&this.N(Md(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Md(a,a.actualBounds)),this.$b()},Pt.remove=function(a){Ac(this,a,!0)};function Ac(a,y,x){var E=y.layer;E!==null&&E.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),x&&y.Lj(),x=E.pc(-1,y,!1),0<=x&&a.cb(Vo,"parts",E,y,null,x,null),a=y.layerChanged,a!==null&&a(y,E,null))}Pt.Is=function(a,y){if(y===void 0&&(y=!1),Ze(a))for(var x=a.length,E=0;EE&&this.Ya(),this},Pt.Cy=function(a,y){xc(this,a,y),a.Xe(this);var x=this.Wa,E=x.indexOf(a);0<=E&&(x.remove(a),this.cc!==null&&this.cb(Vo,"layers",this,a,null,E,null));var b=x.count,z;for(z=0;zE&&this.Ya(),this},Pt.kA=function(a){if(a.diagram!==this&&ee("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,x=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var E=y.value,b=E.layerName;b!==a.name?E.layerName=b:E.layerName=""}this.cc!==null&&this.cb(Vo,"layers",this,a,null,x,null),this.N(),this.Ya()}}},Pt.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},Pt.Yw=function(a){return this.pf===null&&(this.pf=new He),this.pf.add(a),this.model.Pe(a),this},Pt.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Pt.Pe=function(a){return this.zg===null&&(this.zg=new He),this.zg.add(a),this},Pt.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Pt.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==zs&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,E=0;Eft.Pa.indexOf(yt)&&ft.oi(mt,yt,At):(yt.isSelected=!1,yt.isHighlighted=!1,yt.Wb(),ft.pc(At?mt:-1,yt,At)))}else ft instanceof oe?typeof mt=="number"&&yt instanceof fr&&(y?(yt.Xe(this),this.Wa.Gb(mt,yt)):this.Wa.mb(mt)):ee("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else E!==zs&&ee("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},oe.prototype.Ea=function(a){return this.undoManager.Ea(a)},oe.prototype.eb=function(a){return this.undoManager.eb(a)},oe.prototype.Kf=function(){return this.undoManager.Kf()},oe.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var E=!1;try{a(this),E=!0}finally{E?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},oe.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},oe.prototype.rp=function(){this.partManager.rp()};function Pc(a,y,x){var E=a.animationManager;if(a.vb||a.ld)a.Ca=x,xl(a),a.N(),a.Ee=!0,E.zb&&(ru(E)||E.ce.add(E.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,xl(a);else{a.vb=!0;var b=a.viewportBounds.copy(),z=a.Aa,tt=a.ya,ot=a.zoomPoint.x,rt=a.zoomPoint.y,at=a.contentAlignment;isNaN(ot)&&(at.$c()?at.Hf(pl)?ot=0:at.Hf(Ls)&&(ot=z-1):ot=at.sb()?at.x*(z-1):z/2),isNaN(rt)&&(at.$c()?at.Hf(cl)?rt=0:at.Hf(wa)&&(rt=tt-1):rt=at.sb()?at.y*(tt-1):tt/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(x=a.scaleComputation(a,x)),xa.maxScale&&(x=a.maxScale),z=jt.allocAt(a.pa.x+ot/y-ot/x,a.pa.y+rt/y-rt/x),a.position=z,jt.free(z),a.Ca=x,xl(a),a.vb=!1,a.onViewportBoundsChanged(b,a.viewportBounds,y,!1),La(a,!1),E.zb&&(ru(E)||E.ce.add(E.H,"scale",y,a.Ca))}}oe.prototype.onViewportBoundsChanged=function(a,y,x,E){if(!a.D(y)){E===void 0&&(E=!1),E||(this.Ee=!0),this.vd=!0;var b=this.layout;b===null||!b.isViewportSized||this.autoScale!==Xr||a.width===y.width&&a.height===y.height||b.C(),b=this.currentTool,this.Vk===!0&&b instanceof no&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),bp(b,this)),this.vb||this.invalidateViewport(a,y),Sl(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.canvasSize.width=Math.round(a.width*x),this.fc.canvasSize.height=Math.round(a.height*x),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=E,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function Sl(a,y){var x=a.fe;if(x!==null&&x.visible){for(var E=We.alloc(),b=1,z=1,tt=x.O.s,ot=tt.length,rt=0;rtut||(pv(at.figure)?z=z*ut/Jt.vx(z,ut):b=b*ut/Jt.vx(b,ut))}if(tt=x.gridCellSize,E.h(z*tt.width,b*tt.height),y!==void 0)b=y.width,z=y.height,a=y.x,tt=y.y;else{if(y=ce.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){ce.free(y);return}b=y.width,z=y.height,a=y.x,tt=y.y,ce.free(y)}x.width=b+2*E.width,x.height=z+2*E.height,y=jt.alloc(),Jt.No(a,tt,0,0,E.width,E.height,y),y.offset(-E.width,-E.height),We.free(E),x.part.location=y,jt.free(y)}}oe.prototype.clearSelection=function(a){a===void 0&&(a=!1);var y=this.selection;if(y.count!==0){a||this.R("ChangingSelection",y);for(var x=y.Fa(),E=x.length,b=0;b=E&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||Dl(z,"Layout")),a.xh=!1;for(var tt=a.ai.iterator;tt.next();)Lc(a,tt.value,y,E);b.isValidLayout||(!y||b.isRealtime||b.isRealtime===null||E===0?(b.doLayout(a),Nr(a),b.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,E===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||E!==0&&E!==1||Kg(z),a.aa=x}}}function Lc(a,y,x,E){if(y!==null){for(var b=y.gl.iterator;b.next();)Lc(a,b.value,x,E);b=y.layout,b===null||b.isValidLayout||(!x||b.isRealtime||E===0?(y.rh=!y.location.w(),b.doLayout(y),y.C(32),rg(a,y),b.isValidLayout=!0):a.xh=!0)}}Pt.yz=function(){for(var a=new He,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function ev(a){function y(b){var z=b.toLowerCase(),tt=new He;x.add(b,tt),x.add(z,tt),E.add(b,b),E.add(z,b)}var x=new xn,E=new xn;y("InitialAnimationStarting"),y("AnimationStarting"),y("AnimationFinished"),y("BackgroundSingleClicked"),y("BackgroundDoubleClicked"),y("BackgroundContextClicked"),y("ClipboardChanged"),y("ClipboardPasted"),y("DocumentBoundsChanged"),y("ExternalObjectsDropped"),y("GainedFocus"),y("InitialLayoutCompleted"),y("LayoutCompleted"),y("LinkDrawn"),y("LinkRelinked"),y("LinkReshaped"),y("LostFocus"),y("Modified"),y("ObjectSingleClicked"),y("ObjectDoubleClicked"),y("ObjectContextClicked"),y("PartCreated"),y("PartResized"),y("PartRotated"),y("SelectionMoved"),y("SelectionCopied"),y("SelectionDeleting"),y("SelectionDeleted"),y("SelectionGrouped"),y("SelectionUngrouped"),y("ChangingSelection"),y("ChangedSelection"),y("SubGraphCollapsed"),y("SubGraphExpanded"),y("TextEdited"),y("TreeCollapsed"),y("TreeExpanded"),y("ViewportBoundsChanged"),y("InvalidateDraw"),a.iw=x,a.hw=E}function e0(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function rf(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;ee("Unknown DiagramEvent name: "+y)}Pt.Bj=function(a,y){return a=rf(this,a),a!==null&&a.add(y),this},Pt.am=function(a,y){a=rf(this,a),a!==null&&a.remove(y)},Pt.R=function(a,y,x){var E=rf(this,a),b=new Eu;if(b.diagram=this,a=e0(this,a),a!==null&&(b.name=a),y!==void 0&&(b.subject=y),x!==void 0&&(b.parameter=x),y=E.length,y===1)E.M(0)(b);else if(y!==0)for(E=E.Fa(),x=0;x=x.top&&0>=x.left&&0>=x.right&&0>=x.bottom)return y;var E=this.viewportBounds,b=this.scale;E=ce.allocAt(0,0,E.width*b,E.height*b);var z=jt.allocAt(0,0);if(a.x>=E.x&&a.xE.x+E.width-x.right&&this.allowHorizontalScroll&&(tt=Math.max(this.scrollHorizontalLineChange,1),tt|=0,z.x+=tt,a.x>E.x+E.width-x.right/2&&(z.x+=tt),a.x>E.x+E.width-x.right/4&&(z.x+=4*tt));return a.y>=E.y&&a.yE.y+E.height-x.bottom&&this.allowVerticalScroll&&(tt=Math.max(this.scrollVerticalLineChange,1),tt|=0,z.y+=tt,a.y>E.y+E.height-x.bottom/2&&(z.y+=tt),a.y>E.y+E.height-x.bottom/4&&(z.y+=4*tt)),z.Xa(Dr)||(y=new jt(y.x+z.x/b,y.y+z.y/b)),ce.free(E),jt.free(z),y},Pt=oe.prototype,Pt.Cs=function(){return null},Pt.av=function(){return null},Pt.bs=function(a,y){this.pj.add(a,y)},Pt.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Bn&&(y.$p=null)})};function sg(a,y,x){function E(){var ut=+new Date;for(z=!0,tt.reset();tt.next();)if(!tt.value[0].al){z=!1;break}z||ut-at>rt?y(x,b,ot):Ke.requestAnimationFrame(E)}for(var b=x.callback,z=!0,tt=a.Og.iterator;tt.next();)if(!tt.value[0].al){z=!1;break}if(typeof b!="function"||z)return y(x,b,a);var ot=a,rt=x.callbackTimeout||300,at=+new Date;return Ke.requestAnimationFrame(function(){E()}),null}Pt.Wz=function(a){return Ao?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Pt.Jx=function(a){return a===void 0&&(a={}),sg(this,this.Xz,a)},Pt.Xz=function(a,y,x){var E=i0(x,a,"canvas",null);if(E===null)return null;x=E.Z.canvas;var b=null;if(x!==null)switch(b=a.returnType,b===void 0?b="string":b=b.toLowerCase(),b){case Sd+"data":b=E.getImageData(0,0,x.width,x.height);break;case Sd:E=(a.document||document).createElement("img"),E.src=x.toDataURL(a.type,a.details),b=E;break;case"blob":return typeof y!="function"&&ee('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof x.toBlob=="function"?(x.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:b=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(b),null):b};function i0(a,y,x,E){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&ee("properties argument must be an Object.");var b=y.size||null,z=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(z="NaN");var tt=y.maxSize;y.maxSize===void 0&&(tt=x==="SVG"?new We(1/0,1/0):new We(2e3,2e3));var ot=y.position||null,rt=y.parts||null,at=y.padding===void 0?1:y.padding,ut=y.background||null,ft=y.omitTemporary;ft===void 0&&(ft=!0);var mt=y.document||document,yt=y.elementFinished||null,At=y.showTemporary;At===void 0&&(At=!ft),y=y.showGrid,y===void 0&&(y=At),b!==null&&isNaN(b.width)&&isNaN(b.height)&&(b=null),typeof at=="number"?at=new Rn(at):at instanceof Rn||ee("MakeImage padding must be a Margin or a number."),at.left=Math.max(at.left,0),at.right=Math.max(at.right,0),at.top=Math.max(at.top,0),at.bottom=Math.max(at.bottom,0),a.ib.Vc(!0),ft=new ka(null,mt,void 0,!0);var Bt=ft.context;if(!(b||z||rt||ot))return ft.width=a.Aa+Math.ceil(at.left+at.right),ft.height=a.ya+Math.ceil(at.top+at.bottom),x==="SVG"?E===null?null:(E.resize(ft.width,ft.height,ft.width,ft.height),E.ownerDocument=mt,E.hs=yt,$g(a,E.context,at,new We(ft.width,ft.height),a.Ca,a.pa,rt,ut,At,y),E.context):(a.Xm=!1,$g(a,Bt,at,new We(ft.width,ft.height),a.Ca,a.pa,rt,ut,At,y),a.Xm=!0,ft.context);var Dt=a.Pp,It=a.documentBounds.copy();if(It.Fv(a.yb),At)for(var Rt=a.Wa.s,zt=Rt.length,Gt=0;GtDt?(z=Dt,b=It.width,It=It.height):(b=tt.width,It=tt.height)):(b=It.width*z,It=It.height*z):(z=Dt,b=It.width,It=It.height),at!==null?(b+=ot,It+=zt):at=new Rn(0),tt!==null&&(Dt=tt.width,tt=tt.height,isNaN(Dt)&&(Dt=2e3),isNaN(tt)&&(tt=2e3),isFinite(Dt)&&(b=Math.min(b,Dt)),isFinite(tt)&&(It=Math.min(It,tt))),ft.width=Math.ceil(b),ft.height=Math.ceil(It),x==="SVG"?E===null?null:(E.resize(ft.width,ft.height,ft.width,ft.height),E.ownerDocument=mt,E.hs=yt,$g(a,E.context,at,new We(Math.ceil(b),Math.ceil(It)),z,Rt,rt,ut,At,y),E.context):(a.Xm=!1,$g(a,Bt,at,new We(Math.ceil(b),Math.ceil(It)),z,Rt,rt,ut,At,y),a.Xm=!0,ft.context)}fe.Object.defineProperties(oe.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof ct||(a===""&&(a="default"),a=a.toLowerCase(),a!==this.nl&&(this.nl=a,a==="default"||a==="canvas"?(a=this.pj.get("svg"),a!==null&&a.Oa.remove(),this.ta&&(this.ib=this.ta.context)):a==="svg"?(this.pj.contains("svg")?a=this.pj.get("svg"):(a=new Pl(this,Ke.document),this.bs("svg",a)),this.div!==null&&this.div.appendChild(a.Oa),this.ib=a.context,this.ta&&(this.ta.context.setTransform(this.Mb,0,0,this.Mb,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya))):a!=="debug"||this.pj.contains("SVG")||(a=new Pl(this,Ke.document),this.bs("SVG",a),a.Oa.style.backgroundColor="whitesmoke",this.div!==null&&this.div.after(a.Oa)),this.hk()))}},div:{get:function(){return this.Ka},set:function(a){if(this.Ka!==a){var y=this.Ka;y!==null?(y.H=void 0,y.goDiagram=void 0,y.go=void 0,y.innerHTML="",this.ta!==null&&(y=this.ta.Oa,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.ta.mx()),this.ol&&(this.ol.disconnect(),this.ol=null),y=this.toolManager,y!==null&&(y.mouseDownTools.each(function(x){x.cancelWaitAfter()}),y.mouseMoveTools.each(function(x){x.cancelWaitAfter()}),y.mouseUpTools.each(function(x){x.cancelWaitAfter()})),y.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(Ke,"resize",this.Ov,!1),this.removeEventListener(Ke,"wheel",this.$j,!0),bl===this&&(bl=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),hc(this,a),this.hk())}}},$w:{get:function(){return this.Sq}},pi:{get:function(){return this.hf}},draggedLink:{get:function(){return this.nt},set:function(a){this.nt!==a&&(this.nt=a,a!==null&&(this.Vt=a.fromPort,this.Wt=a.toPort))}},Mx:{get:function(){return this.Vt},set:function(a){this.Vt=a}},Nx:{get:function(){return this.Wt},set:function(a){this.Wt=a}},animationManager:{get:function(){return this.Yd}},undoManager:{get:function(){return this.cc.undoManager}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a,this.cc.skipsUndoManager=a}},delaysLayout:{get:function(){return this.lt},set:function(a){this.lt=a}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1a&&Zn(a,">= 0",oe,"scrollHorizontalLineChange"),this.iu=a,this.g("scrollHorizontalLineChange",y,a))}},scrollVerticalLineChange:{get:function(){return this.mu},set:function(a){var y=this.mu;y!==a&&(0>a&&Zn(a,">= 0",oe,"scrollVerticalLineChange"),this.mu=a,this.g("scrollVerticalLineChange",y,a))}},lastInput:{get:function(){return this.cj},set:function(a){this.cj=a}},previousInput:{get:function(){return this.Qg},set:function(a){this.Qg=a}},firstInput:{get:function(){return this.bq},set:function(a){this.bq=a}},currentCursor:{get:function(){return this.it},set:function(a){if(a===""&&(a=this.Op),this.it!==a){var y=this.ta,x=this.Ka;if(y!==null&&x!==null){this.it=a;var E=y.style.cursor;y.style.cursor=a,x.style.cursor=a,y.style.cursor===E&&(y.style.cursor="-webkit-"+a,x.style.cursor="-webkit-"+a,y.style.cursor===E&&(y.style.cursor="-moz-"+a,x.style.cursor="-moz-"+a,y.style.cursor===E&&(y.style.cursor=a,x.style.cursor=a)))}}}},defaultCursor:{get:function(){return this.Op},set:function(a){a===""&&(a="auto");var y=this.Op;y!==a&&(this.Op=a,this.g("defaultCursor",y,a))}},click:{get:function(){return this.zh},set:function(a){var y=this.zh;y!==a&&(this.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.Fh},set:function(a){var y=this.Fh;y!==a&&(this.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.Bh},set:function(a){var y=this.Bh;y!==a&&(this.Bh=a,this.g("contextClick",y,a))}},mouseOver:{get:function(){return this.Qh},set:function(a){var y=this.Qh;y!==a&&(this.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.Oh},set:function(a){var y=this.Oh;y!==a&&(this.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.Nh},set:function(a){var y=this.Nh;y!==a&&(this.Nh=a,this.g("mouseHold",y,a))}},mouseDragOver:{get:function(){return this.Qt},set:function(a){var y=this.Qt;y!==a&&(this.Qt=a,this.g("mouseDragOver",y,a))}},mouseDrop:{get:function(){return this.Lh},set:function(a){var y=this.Lh;y!==a&&(this.Lh=a,this.g("mouseDrop",y,a))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(a){var y=this.xt;y!==a&&(this.xt=a,this.g("handlesDragDropForTopLevelParts",y,a))}},mouseEnter:{get:function(){return this.Mh},set:function(a){var y=this.Mh;y!==a&&(this.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.Ph},set:function(a){var y=this.Ph;y!==a&&(this.Ph=a,this.g("mouseLeave",y,a))}},toolTip:{get:function(){return this.$h},set:function(a){var y=this.$h;y!==a&&(this.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.Ch},set:function(a){var y=this.Ch;y!==a&&(this.Ch=a,this.g("contextMenu",y,a))}},commandHandler:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a,a.Xe(this))}},toolManager:{get:function(){return this.te},set:function(a){this.te!==a&&(this.te=a,a.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(a){var y=this.ob;y!==a&&(this.ob=a,a.diagram=this,this.currentTool===y&&(this.currentTool=a))}},currentTool:{get:function(){return this.hb},set:function(a){var y=this.hb;y&&(y.isActive&&y.doDeactivate(),y.cancelWaitAfter(),y.doStop()),a===null&&(a=this.defaultTool),a!==null&&(this.hb=a,a.diagram=this,a.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(a){var y=this.Nt;if(y!==a)if(0<=a&&!isNaN(a)){if(this.Nt=a,this.g("maxSelectionCount",y,a),!this.undoManager.isUndoingRedoing&&(a=this.selection.count-a,0= 0",oe,"maxSelectionCount")}},nodeSelectionAdornmentTemplate:{get:function(){return this.St},set:function(a){var y=this.St;y!==a&&(this.St=a,this.g("nodeSelectionAdornmentTemplate",y,a))}},groupSelectionAdornmentTemplate:{get:function(){return this.wt},set:function(a){var y=this.wt;y!==a&&(this.wt=a,this.g("groupSelectionAdornmentTemplate",y,a))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kt},set:function(a){var y=this.Kt;y!==a&&(this.Kt=a,this.g("linkSelectionAdornmentTemplate",y,a))}},highlighteds:{get:function(){return this.nw}},isModified:{get:function(){var a=this.undoManager;return a.isEnabled?a.currentTransaction!==null?!0:this.rn&&this.Ce!==a.historyIndex:this.rn},set:function(a){if(this.rn!==a){this.rn=a;var y=this.undoManager;!a&&y.isEnabled&&(this.Ce=y.historyIndex),a||$p(this)}}},model:{get:function(){return this.cc},set:function(a){var y=this.cc;if(y!==a){this.currentTool.doCancel(),y&&y.undoManager!==a.undoManager&&y.undoManager.isInTransaction&&ee("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=uc(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var E=this.vb;this.vb=!0,Dl(this.animationManager,"Model"),y&&(this.pf!==null&&this.pf.each(function(z){return y.ik(z)}),y.ik(this.Oc)),this.cc=a,this.partManager=wc(this.cc.type);for(var b=0;bthis.scale&&(this.scale=a)):Zn(a,"> 0",oe,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(a){var y=this.Mt;y!==a&&(0 0",oe,"maxScale"))}},zoomPoint:{get:function(){return this.zu},set:function(a){this.zu.D(a)||(this.zu=a=a.J())}},contentAlignment:{get:function(){return this.zk},set:function(a){var y=this.zk;y.D(a)||(this.zk=a=a.J(),this.g("contentAlignment",y,a),La(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(a){var y=this.pq;y.D(a)||(this.pq=a=a.J(),this.g("initialContentAlignment",y,a))}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Rn(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.Ya(),this.g("padding",y,a))}},partManager:{get:function(){return this.Pc},set:function(a){var y=this.Pc;y!==a&&(a.diagram!==null&&ee("Cannot share PartManagers between Diagrams: "+a.toString()),y&&y.Xe(null),this.Pc=a,a.Xe(this))}},nodes:{get:function(){return this.partManager.nodes.iterator}},links:{get:function(){return this.partManager.links.iterator}},parts:{get:function(){return this.partManager.parts.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;y!==a&&(this.Sc=a,a.diagram=this,a.group=null,this.xh=!0,this.g("layout",y,a),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(a){var y=this.Ht;if(y!==a&&(this.Ht=a,this.g("isTreePathToChildren",y,a),!this.undoManager.isUndoingRedoing))for(a=this.nodes;a.next();)Vc(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==Gu&&a!==Qo&&a!==hf&&ee("Unknown Diagram.treeCollapsePolicy: "+a),this.uu=a,this.g("treeCollapsePolicy",y,a))}},Ue:{get:function(){return this.pw},set:function(a){this.pw=a}},avoidanceCellSize:{get:function(){return this.aw},set:function(a){this.Xh=null,this.aw=new We(Math.max(1,a.width),Math.max(1,a.height))}},avoidanceLimit:{get:function(){return this.bw},set:function(a){this.bw=Math.max(1,a)}},autoScrollInterval:{get:function(){return this.vp},set:function(a){var y=this.vp;y!==a&&(this.vp=a,this.g("autoScrollInterval",y,a))}},autoScrollRegion:{get:function(){return this.xp},set:function(a){typeof a=="number"&&(a=new Rn(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),fe.Object.defineProperties(oe,{licenseKey:{get:function(){return Dc.jc()},set:function(a){Dc.add(a.replace(/\s/g,""))}},version:{get:function(){return Ad}}}),oe.prototype.makeImageData=oe.prototype.Jx,oe.prototype.makeImage=oe.prototype.Wz,oe.prototype.cacheGroupExternalLinks=oe.prototype.Fu,oe.prototype.addRenderer=oe.prototype.bs,oe.prototype.makeSVG=oe.prototype.av,oe.prototype.makeSvg=oe.prototype.Cs,oe.prototype.stopAutoScroll=oe.prototype.ug,oe.prototype.doAutoScroll=oe.prototype.gs,oe.prototype.isUnoccupied=oe.prototype.Yj,oe.prototype.raiseDiagramEvent=oe.prototype.R,oe.prototype.removeDiagramListener=oe.prototype.am,oe.prototype.addDiagramListener=oe.prototype.Bj,oe.prototype.findTreeRoots=oe.prototype.yz,oe.prototype.layoutDiagram=oe.prototype.Uz,oe.prototype.findTopLevelGroups=oe.prototype.qz,oe.prototype.findTopLevelNodesAndLinks=oe.prototype.rz,oe.prototype.ensureBounds=oe.prototype.Va,oe.prototype.findLinksByExample=oe.prototype.ls,oe.prototype.findNodesByExample=oe.prototype.ms,oe.prototype.findLinkForData=oe.prototype.Kc,oe.prototype.findNodeForData=oe.prototype.ii,oe.prototype.findPartForData=oe.prototype.Lc,oe.prototype.findLinkForKey=oe.prototype.findLinkForKey,oe.prototype.findNodeForKey=oe.prototype.Vb,oe.prototype.findPartForKey=oe.prototype.findPartForKey,oe.prototype.rebuildParts=oe.prototype.Wd,oe.prototype.transformViewToDoc=oe.prototype.Ps,oe.prototype.transformRectDocToView=oe.prototype.zA,oe.prototype.transformDocToView=oe.prototype.op,oe.prototype.centerRect=oe.prototype.es,oe.prototype.scrollToRect=oe.prototype.tv,oe.prototype.scroll=oe.prototype.scroll,oe.prototype.highlightCollection=oe.prototype.Jz,oe.prototype.highlight=oe.prototype.Iz,oe.prototype.selectCollection=oe.prototype.rA,oe.prototype.select=oe.prototype.select,oe.prototype.updateAllRelationshipsFromData=oe.prototype.rp,oe.prototype.updateAllTargetBindings=oe.prototype.updateAllTargetBindings,oe.prototype.commit=oe.prototype.commit,oe.prototype.rollbackTransaction=oe.prototype.Kf,oe.prototype.commitTransaction=oe.prototype.eb,oe.prototype.startTransaction=oe.prototype.Ea,oe.prototype.raiseChanged=oe.prototype.g,oe.prototype.raiseChangedEvent=oe.prototype.cb,oe.prototype.removeChangedListener=oe.prototype.ik,oe.prototype.addChangedListener=oe.prototype.Pe,oe.prototype.removeModelChangedListener=oe.prototype.mA,oe.prototype.addModelChangedListener=oe.prototype.Yw,oe.prototype.findLayer=oe.prototype.Qj,oe.prototype.removeLayer=oe.prototype.kA,oe.prototype.addLayerAfter=oe.prototype.Cy,oe.prototype.addLayerBefore=oe.prototype.Ww,oe.prototype.addLayer=oe.prototype.Al,oe.prototype.moveParts=oe.prototype.moveParts,oe.prototype.copyParts=oe.prototype.Kj,oe.prototype.removeParts=oe.prototype.Is,oe.prototype.remove=oe.prototype.remove,oe.prototype.add=oe.prototype.add,oe.prototype.clearDelayedGeometries=oe.prototype.bx,oe.prototype.setProperties=oe.prototype.nm,oe.prototype.attach=oe.prototype.Du,oe.prototype.set=oe.prototype.set,oe.prototype.resetInputOptions=oe.prototype.Sx,oe.prototype.setInputOption=oe.prototype.sA,oe.prototype.getInputOption=oe.prototype.Ql,oe.prototype.resetRenderingHints=oe.prototype.Tx,oe.prototype.setRenderingHint=oe.prototype.Xx,oe.prototype.getRenderingHint=oe.prototype.Gf,oe.prototype.maybeUpdate=oe.prototype.bd,oe.prototype.requestUpdate=oe.prototype.$b,oe.prototype.delayInitialization=oe.prototype.Xy,oe.prototype.isUpdateRequested=oe.prototype.Pz,oe.prototype.invalidateDocumentBounds=oe.prototype.Ya,oe.prototype.findObjectsNear=oe.prototype.og,oe.prototype.findPartsNear=oe.prototype.mz,oe.prototype.findObjectsIn=oe.prototype.Cf,oe.prototype.findPartsIn=oe.prototype.ux,oe.prototype.findObjectsAt=oe.prototype.ji,oe.prototype.findPartsAt=oe.prototype.lz,oe.prototype.findObjectAt=oe.prototype.ic,oe.prototype.findPartAt=oe.prototype.Ol,oe.prototype.focusObject=oe.prototype.zz,oe.prototype.alignDocument=oe.prototype.Jy,oe.prototype.zoomToRect=oe.prototype.BA,oe.prototype.zoomToFit=oe.prototype.zoomToFit,oe.prototype.diagramScroll=oe.prototype.kx,oe.prototype.focus=oe.prototype.focus;var uf=new xn,o0=null,Ao=Ke.document!==void 0,yd=null,Ih="",Xr=new Ee(oe,"None",0),qs=new Ee(oe,"Uniform",1),Fh=new Ee(oe,"UniformToFill",2),ag=new Ee(oe,"CycleAll",10),kc=new Ee(oe,"CycleNotDirected",11),Ic=new Ee(oe,"CycleNotDirectedFast",12),Fc=new Ee(oe,"CycleNotUndirected",13),Nc=new Ee(oe,"CycleDestinationTree",14),Tc=new Ee(oe,"CycleSourceTree",15),Hu=new Ee(oe,"DocumentScroll",1),lg=new Ee(oe,"InfiniteScroll",2),Gu=new Ee(oe,"TreeParentCollapsed",21),Qo=new Ee(oe,"AllParentsCollapsed",22),hf=new Ee(oe,"AnyParentsCollapsed",23),Dc=new He,Ad="2.3.10",Sd="image",ug=null,r0=!1;function Rr(){if(Ao){var a=Ke.document.createElement("canvas"),y=a.getContext("2d"),x=Oe("7ca11abfd022028846");y[x]=Oe("398c3597c01238");for(var E=["5da73c80a36455d7038e4972187c3cae51fd22",Sn.Dx+"4ae6247590da4bb21c324ba3a84e385776",Hn.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Jt.za],b=1;5>b;b++)y[Oe("7ca11abfd7330390")](Oe(E[b-1]),10,15*b);for(y[x]=Oe("39f046ebb36e4b"),x=1;5>x;x++)y[Oe("7ca11abfd7330390")](Oe(E[x-1]),10,15*x);(E.length!==4||E[0][0]!=="5"||E[3][0]!=="7")&&(Hn.prototype.Cd=Hn.prototype.Eu),ug=a}}oe.className="Diagram",oe.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Ke.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof oe?y.H:null},oe.inherit=function(a,y){function x(){}if(Object.getPrototypeOf(a).prototype)throw Error(`Used go.Diagram.inherit defining already defined class -`+a);x.prototype=y.prototype,a.prototype=new x,a.prototype.constructor=a},oe.useDOM=function(a){Ao=a?Ke.document!==void 0:!1},oe.isUsingDOM=function(){return Ao},oe.None=Xr,oe.Uniform=qs,oe.UniformToFill=Fh,oe.CycleAll=ag,oe.CycleNotDirected=kc,oe.CycleNotDirectedFast=Ic,oe.CycleNotUndirected=Fc,oe.CycleDestinationTree=Nc,oe.CycleSourceTree=Tc,oe.DocumentScroll=Hu,oe.InfiniteScroll=lg,oe.TreeParentCollapsed=Gu,oe.AllParentsCollapsed=Qo,oe.AnyParentsCollapsed=hf;function s0(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function xd(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)t:{y="f";var x=Ke[Oe("76a715b2f73f148a")][Oe("72ba13b5")]||"";if(a.Rc=!0,Ao){var E=oe[Oe("76a115b6ed251eaf4692")];if(E)for(var b=Dc.iterator;b.next()&&(E=b.value,E=Oe(E).split(Oe("39e9")),!(6>E.length));){var z=Oe(E[1]).split(".");if(E[4]!=="7da71ca0")break;var tt=Oe(Sn[Oe("6cae19")]).split(".");if(z[0]>tt[0]||z[0]===tt[0]&&z[1]>=tt[1]){var ot=Ke[Oe("74a900bae4370f8b51")][Oe("6fbb13a1c2311e8a57")].toLowerCase();if(tt=ot[Oe("73a612b6fb191d")](Oe("3aad1ab6e022098b4dc4")),z=Oe(E[2]),-1tt&&z!==Oe("7da71ca0ad381e90")&&(tt=y[Oe("73a612b6fb191d")](Oe("76a715b2ef3e149757"))),0>tt&&(tt=y[Oe("73a612b6fb191d")](Oe("76a715b2ef3e149757"))),0>tt&&(tt=y[Oe("73a612b6fb191d")](Oe("2bfa41fdb3784bca12"))),0>tt&&(tt=x[Oe("73a612b6fb191d")](Oe("7baa19a6f76c1988428554"))),a.Rc=!(0<=tt&&ttot),!a.Rc)))break;if(z[0]==="#"){tt=Ke.document.createElement("div");for(var rt=E[0].replace(/[A-Za-z]/g,"");4>rt.length;)rt+="9";if(ot=rt,rt=rt.substr(rt.length-4),E="",E+=["gsh","gsf"][parseInt(rt.substr(0,1),10)%2],E+=["Header","Background","Display","Feedback"][parseInt(rt.substr(0,1),10)%4],tt[Oe("79a417a0f0181a8946")]=E,Ke.document[Oe("78a712aa")]){Ke.document[Oe("78a712aa")][Oe("7bb806b6ed32388c4a875b")](tt),rt=Ke.getComputedStyle(tt).getPropertyValue(Oe("78a704b7e62456904c9b12701b6532a8"));var at=Ke.getComputedStyle(tt).getPropertyValue(Oe("75b817b0ea2202"));if(Ke.document[Oe("78a712aa")][Oe("68ad1bbcf533388c4a875b")](tt),rt){if(tt=Ke[Oe("77a902b0eb1b1e804a8a")],at==="0."+parseInt(ot,10)%100||rt.indexOf(parseInt(z[1]+z[2],16))!==-1&&rt.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(tt&&tt(Oe("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(E="."+E,z=0;zE.updateDelay?E.N():E.o||(E.o=!0,setTimeout(function(){return E.redraw()},E.updateDelay))},x.Of=function(){E.observed!==null&&Mt(E)},x.autoScale=qs,x.vb=!1,y&&Object.assign(x,y),x}Ae(ct,oe),ct.prototype.computePixelRatio=function(){return 1},ct.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var a=this.ta,y=this.ib;if(a!==null&&y!==null){if(pd(this),this.ql===null){var x=new ka(null);x.width=a.width,x.height=a.height,this.ql=x}try{this.ta=this.ql,this.ib=this.ta.context,this.ib.Vc(!0),this.ib.setTransform(1,0,0,1,0,0),this.ib.clearRect(0,0,this.ta.width,this.ta.height),xt(this)}finally{this.ta=a,this.ib=y}}}oe.prototype.redraw.call(this)},ct.prototype.gc=function(){if(this.Ka===null&&ee("No div specified"),this.ta===null&&ee("No canvas specified"),!(this.ta instanceof Pl)&&(bv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){pd(this);var y=this.ta;a=this.ib,a.Vc(!0),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,y.width,y.height),1>this.updateDelay?xt(this):this.ql!==null&&(a.drawImage(this.ql.Oa,0,0),y=this.Ab,y.reset(),this.scale!==1&&y.scale(this.scale),this.position.x===0&&this.position.y===0||y.translate(-this.position.x,-this.position.y),a.scale(this.Mb,this.Mb),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.yc()),y=this.Wa.s;for(var x=y.length,E=0;Ea&&(a=0),this.ia!==a&&(this.ia=a)}}}),ct.className="Overview";function bt(){fo.call(this),this.j=null}Ae(bt,fo),bt.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||!a.allowMove||!a.allowSelect)return!1;var y=a.observed;if(y===null)return!1;var x=a.lastInput;return!x.left||a.currentTool!==this&&(!this.isBeyondDragSize()||x.isTouchEvent&&x.timestamp-a.firstInput.timestampy.maxScale||(y.scale=a))},Tt.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==Xr?!1:(a=y.scale*a,ay.maxScale?!1:y.allowZoom)},Tt.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===Xr&&(a=y.scale*a,ay.maxScale||(y.scale=a))},Tt.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==Xr?!1:(a=y.scale*a,ay.maxScale?!1:y.allowZoom)},Tt.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;ay.maxScale||(y.scale=a)},Tt.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return ay.maxScale?!1:y.allowZoom},Tt.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,E=a.scale;Dl(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&E===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=_r):(this.Jt=E,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),Kg(y)},Tt.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Tt.prototype.scrollToPart=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.Va(),a===null){try{this.cg!==null&&(this.cg.next()?a=this.cg.value:this.cg=null)}catch(rt){this.cg=null}a===null&&(0a&&(a+=360)),a},Pt.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Pt.qs=function(a,y){return y===void 0&&(y=new jt),y.assign(a),this.oe.Cd(y),y},Pt.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Pt.Sj=function(a,y,x,E,b){var z=this.transform,tt=1/(z.m11*z.m22-z.m12*z.m21),ot=z.m22*tt,rt=-z.m12*tt,at=-z.m21*tt,ut=z.m11*tt,ft=tt*(z.m21*z.dy-z.m22*z.dx),mt=tt*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,Jt.Ff(z.left,z.top,z.right,z.bottom,a,y,x,E,b)):(tt=a*ot+y*at+ft,a=a*rt+y*ut+mt,y=x*ot+E*at+ft,x=x*rt+E*ut+mt,b.h(0,0),E=this.naturalBounds,x=Jt.Ff(0,0,E.width,E.height,tt,a,y,x,b),b.transform(z),x)},Yt.prototype.measure=function(a,y,x,E){if($s(this)!==!1){var b=this.Kg,z=b.right+b.left;b=b.top+b.bottom,a=Math.max(a-z,0),y=Math.max(y-b,0),x=Math.max((x||0)-z,0),E=Math.max((E||0)-b,0),z=this.angle,b=this.desiredSize;var tt=this.kq();z===90||z===270?(a=isFinite(b.height)?b.height+tt:a,y=isFinite(b.width)?b.width+tt:y):(a=isFinite(b.width)?b.width+tt:a,y=isFinite(b.height)?b.height+tt:y),b=x||0,tt=E||0;var ot=this instanceof Ie;switch(Ss(this,!0)){case we:tt=b=0,ot&&(y=a=1/0);break;case Le:isFinite(a)&&a>x&&(b=a),isFinite(y)&&y>E&&(tt=y);break;case sn:isFinite(a)&&a>x&&(b=a),tt=0,ot&&(y=1/0);break;case vn:isFinite(y)&&y>E&&(tt=y),b=0,ot&&(a=1/0)}ot=this.maxSize;var rt=this.minSize;b>ot.width&&rt.widthot.height&&rt.heighta.height||this.Cb>a.width))&&(x=!0)),this.l=x?this.l|256:this.l&-257,this.Ib.w()||ee("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Rl(this,!1),ce.free(z)},Pt=Yt.prototype,Pt.eh=function(){};function Wr(a,y,x,E,b){if(a.Ib.h(y,x,E,b),!a.desiredSize.w()){var z=a.uc;x=a.Kg,y=x.right+x.left;var tt=x.top+x.bottom;switch(x=z.width+y,z=z.height+tt,E+=y,b+=tt,y=Ss(a,!0),x===E&&z===b&&(y=we),y){case we:(x>E||z>b)&&(Ho(a,!0),a.measure(x>E?E:x,z>b?b:z,0,0));break;case Le:Ho(a,!0),a.measure(E,b,0,0);break;case sn:Ho(a,!0),a.measure(E,z,0,0);break;case vn:Ho(a,!0),a.measure(x,b,0,0)}}}Pt.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||Rv(x,!0),this.N(),wu(a,y)||(x.oh(),this.Pn(x)))},Pt.Pn=function(a){this.portId!==null&&(Rv(a,!0),a instanceof Xe&&UA(a,this))},Pt.gc=function(a,y){if(!da(this,a,y)&&this.visible){var x=this.opacity;if(x!==0){var E=1;x!==1&&(E=a.globalAlpha,a.globalAlpha=E*x);var b="";this.filter!==""&&(b=a.filter,a.filter=this.filter);var z=this instanceof Ie&&Wu(this),tt=this.Ib;if(z){var ot=this.Ib,rt=this.dc,at=this.areaBackground,ut=this.Ma;at===null&&ut===null||a.yc(),at!==null&&(xo(this,a,at,!0,!0,rt,ot),at instanceof Si&&at.type===ca?(a.beginPath(),a.rect(ot.x,ot.y,ot.width,ot.height),a.ng(at)):a.fillRect(ot.x,ot.y,ot.width,ot.height)),ut!==null&&(xo(this,a,ut,!0,!1,rt,ot),ut instanceof Si&&ut.type===ca?(a.beginPath(),a.rect(ot.x,ot.y,ot.width,ot.height),a.ng(ut)):a.fillRect(ot.x,ot.y,ot.width,ot.height)),this.hh(a,y)}if(!z&&(z||tt.width!==0&&tt.height!==0&&!isNaN(tt.x)&&!isNaN(tt.y))){z=this.transform,ot=this.panel,this.l&4096&&Sr(this),at=this.part,rt=!1;var ft=0;at&&y.Gf("drawShadows")&&(rt=at.isShadowed)&&(ut=at.shadowOffset,ft=Math.max(ut.y,ut.x)*y.scale*y.Mb),ut=this.Dd();var mt;if(!(mt=y.$i||!ut)){var yt=this.naturalBounds;mt=this.wh;var At=mt.m11,Bt=mt.m21,Dt=mt.dx,It=mt.m12,Rt=mt.m22,zt=mt.dy,Gt,Kt=Gt=0;mt=Gt*At+Kt*Bt+Dt;var ie=Gt*It+Kt*Rt+zt;Gt=yt.width+ft,Kt=0;var Ue=Gt*At+Kt*Bt+Dt;Gt=Gt*It+Kt*Rt+zt,Kt=Math.min(mt,Ue);var tn=Math.min(ie,Gt),Ye=Math.max(mt+0,Ue)-Kt,Fe=Math.max(ie+0,Gt)-tn;mt=Kt,ie=tn,Gt=yt.width+ft,Kt=yt.height+ft,Ue=Gt*At+Kt*Bt+Dt,Gt=Gt*It+Kt*Rt+zt,Kt=Math.min(mt,Ue),tn=Math.min(ie,Gt),Ye=Math.max(mt+Ye,Ue)-Kt,Fe=Math.max(ie+Fe,Gt)-tn,mt=Kt,ie=tn,Gt=0,Kt=yt.height+ft,Ue=Gt*At+Kt*Bt+Dt,Gt=Gt*It+Kt*Rt+zt,Kt=Math.min(mt,Ue),tn=Math.min(ie,Gt),Ye=Math.max(mt+Ye,Ue)-Kt,Fe=Math.max(ie+Fe,Gt)-tn,mt=Kt,ie=tn,ft=y.viewportBounds,yt=ft.x,At=ft.y,mt=!(mt>ft.width+yt||yt>Ye+mt||ie>ft.height+At||At>Fe+ie)}if(mt){if(mt=(this.l&256)!==0,a.clipInsteadOfFill&&(mt=!1),this instanceof Ni&&(a.font=this.font),mt){if(ie=ot.se()?ot.naturalBounds:ot.actualBounds,Ye=Math.max(tt.x,ie.x),Fe=Math.max(tt.y,ie.y),ft=Math.min(tt.right,ie.right)-Ye,yt=Math.min(tt.bottom,ie.bottom)-Fe,At=this.tb,At!==null&&(Ye=At.x,Fe=At.y,ft=At.width,yt=At.height),Ye>tt.width+tt.x||tt.x>ie.width+ie.x){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}a.save(),a.beginPath(),a.rect(Ye,Fe,ft,yt),a.clip()}if(ut){if(!at.isVisible()){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}rt&&(ie=at.shadowOffset,a.Ev(ie.x*y.scale*this.scale*y.Mb,ie.y*y.scale*this.scale*y.Mb,at.shadowBlur),uu(a),a.shadowColor=at.shadowColor)}rt&&this.shadowVisible===!0?uu(a):rt&&this.shadowVisible===!1&&zl(a),at=this.naturalBounds,this.areaBackground!==null&&(a.yc(),_s(this,a,at,tt)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),rt&&cr(this,ot)&&this.shadowVisible===null&&zl(a),this.Ma!==null&&(a.yc(),Is(this,a,at,tt)),rt&&(this.Ma!==null||this.areaBackground!==null||cr(this,ot))?(Ua(this,!0),this.shadowVisible===null&&zl(a)):Ua(this,!1),this.hh(a,y),rt&&this.l&512&&uu(a),ut&&rt&&zl(a),mt&&(a.restore(),a.Vc(this instanceof Ie)),z.ws()||(y=1/(z.m11*z.m22-z.m12*z.m21),a.transform(z.m22*y,-z.m12*y,-z.m21*y,z.m11*y,y*(z.m21*z.dy-z.m22*z.dx),y*(z.m12*z.dx-z.m11*z.dy)))}}x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b)}}};function cr(a,y){return y===null?!1:(Wu(y)&&(y=y.panel),(y.l&512)!==0||(y.type===Ie.Auto||y.type===Ie.Spot)&&y.Pb()!==a)}Pt.Dv=function(){};function _s(a,y,x,E){xo(a,y,a.areaBackground,!0,!0,x,E),a.areaBackground instanceof Si&&a.areaBackground.type===ca?(y.beginPath(),y.rect(E.x,E.y,E.width,E.height),y.ng(a.areaBackground)):y.fillRect(E.x,E.y,E.width,E.height)}function Is(a,y,x,E){var b=a.kq(),z=x.x,tt=x.y,ot=x.width+b,rt=x.height+b;xo(a,y,a.Ma,!0,!1,x,E),a.Ma instanceof Si&&a.Ma.type===ca?(y.beginPath(),y.rect(z-b/2,tt-b/2,ot,rt),y.ng(a.Ma)):y.fillRect(z-b/2,tt-b/2,ot,rt)}function zr(a,y,x){for(var E=y.O.s,b=E.length,z=-1,tt=0;ttb)&&ee("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+b),a.isRow=!0,a.index=b):y.column!==void 0&&(b=y.column,(b==null||b===1/0||isNaN(b)||0>b)&&ee("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+b),a.isRow=!1,a.index=b),b=new Vn;for(x in y)x!=="row"&&x!=="column"&&(b[x]=y[x]);cd(a,b)}else cd(a,y);else ee('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function Uu(a,y){df.add(a,y)}function a0(a,y,x){x===void 0&&(x=null);var E=a[1];if(typeof x=="function"?x(E):typeof E=="string")return a.splice(1,1),E;if(y===void 0)throw Error("no "+(typeof x=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}fe.Object.defineProperties(Yt.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new gg),this.A.zp=a)}},localBindings:{get:function(){return this.A!==null?this.A.te:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new gg),this.A.te=a)}},srcBindings:{get:function(){return this.A!==null?this.A.wm:null},set:function(a){this.srcBindings!==a&&(this.A===null&&(this.A=new gg),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(On(this),this.A.Ci=a,this.Uc=!0,this.N(),this.g("shadowVisible",y,a))}},enabledChanged:{get:function(){return this.A!==null?this.A.Hb:null},set:function(a){var y=this.enabledChanged;y!==a&&(On(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:hs},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new Nh),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===hs&&(this.angle=0))}},segmentIndex:{get:function(){return this.Ua!==null?this.Ua.u:-1/0},set:function(a){a=Math.round(a);var y=this.segmentIndex;y!==a&&(this.Ua===null&&(this.Ua=new Nh),this.Ua.u=a,this.v(),this.g("segmentIndex",y,a))}},segmentFraction:{get:function(){return this.Ua!==null?this.Ua.o:0},set:function(a){isNaN(a)||0>a?a=0:1a||1=a&&ee("GraphObject.scale for "+this+" must be greater than zero, not: "+a),this.Ca=a,this.v(),this.g("scale",y,a))}},angle:{get:function(){return this.Kb},set:function(a){var y=this.Kb;y!==a&&(a%=360,0>a&&(a+=360),y!==a&&(this.Kb=a,Ky(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,E=this.jd,b=E.width,z=E.height;(b===y||isNaN(b)&&isNaN(y))&&(z===x||isNaN(z)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof Nn&&this.qc(),this.g("desiredSize",E,a),Br(this)&&(a=this.part,a!==null&&(Gi(this,a,"width"),Gi(this,a,"height"))))}},width:{get:function(){return this.jd.width},set:function(a){var y=this.jd.width;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new We(a,this.jd.height).freeze(),this.v(),this instanceof Nn&&this.qc(),this.g("desiredSize",y,a),Br(this)&&(a=this.part,a!==null&&Gi(this,a,"width")))}},height:{get:function(){return this.jd.height},set:function(a){var y=this.jd.height;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new We(this.jd.width,a).freeze(),this.v(),this instanceof Nn&&this.qc(),this.g("desiredSize",y,a),Br(this)&&(a=this.part,a!==null&&Gi(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:$n},set:function(a){var y=this.minSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=0),isNaN(a.height)&&(a.height=0),a.freeze(),On(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:vr},set:function(a){var y=this.maxSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=1/0),isNaN(a.height)&&(a.height=1/0),a.freeze(),On(this),this.A.o=a,this.v(),this.g("maxSize",y,a))}},measuredBounds:{get:function(){return this.uc}},naturalBounds:{get:function(){return this.dc}},margin:{get:function(){return this.Kg},set:function(a){typeof a=="number"&&(a=new Rn(a));var y=this.Kg;y.D(a)||(this.Kg=a=a.J(),this.v(),this.g("margin",y,a))}},transform:{get:function(){return this.l&2048&&Sr(this),this.Ab}},oe:{get:function(){return this.l&4096&&Sr(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(On(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:we},set:function(a){this.reshapingBehavior!==a&&(On(this),this.A.Pf=a)}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(a.Mc()&&!a.Xb()&&ee("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),ss(this),this.g("alignment",y,a))}},column:{get:function(){return this.Ag},set:function(a){a=Math.round(a);var y=this.Ag;y!==a&&(0>a&&Zn(a,">= 0",Yt,"column"),this.Ag=a,this.v(),this.g("column",y,a),this.svg!==null&&this.svg.remove())}},columnSpan:{get:function(){return this.A!==null?this.A.ob:1},set:function(a){a=Math.round(a);var y=this.columnSpan;y!==a&&(1>a&&Zn(a,">= 1",Yt,"columnSpan"),On(this),this.A.ob=a,this.v(),this.g("columnSpan",y,a))}},row:{get:function(){return this.io},set:function(a){a=Math.round(a);var y=this.io;y!==a&&(0>a&&Zn(a,">= 0",Yt,"row"),this.io=a,this.v(),this.g("row",y,a),this.svg!==null&&this.svg.remove())}},rowSpan:{get:function(){return this.A!==null?this.A.Bi:1},set:function(a){a=Math.round(a);var y=this.rowSpan;y!==a&&(1>a&&Zn(a,">= 1",Yt,"rowSpan"),On(this),this.A.Bi=a,this.v(),this.g("rowSpan",y,a))}},spanAllocation:{get:function(){return this.A!==null?this.A.Di:null},set:function(a){var y=this.spanAllocation;y!==a&&(On(this),this.A.Di=a,this.v(),this.g("spanAllocation",y,a))}},alignmentFocus:{get:function(){return this.sk},set:function(a){var y=this.sk;y.D(a)||(this.sk=a=a.J(),this.v(),this.g("alignmentFocus",y,a))}},portId:{get:function(){return this.Yn},set:function(a){var y=this.Yn;if(y!==a){var x=this.part;x===null||x instanceof Xe||ee("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Gv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,VA(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:er},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Pd(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Zn(a,">= 0",Yt,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Pd(this))}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:0},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.g("toShortLength",y,a),Pd(this))}},toLinkable:{get:function(){return this.ba!==null?this.ba.Tr:null},set:function(a){var y=this.toLinkable;y!==a&&(this.Xc(),this.ba.Tr=a,this.g("toLinkable",y,a))}},toMaxLinks:{get:function(){return this.ba!==null?this.ba.Ur:1/0},set:function(a){var y=this.toMaxLinks;y!==a&&(0>a&&Zn(a,">= 0",Yt,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:er},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Pd(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Zn(a,">= 0",Yt,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Pd(this))}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:0},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.g("fromShortLength",y,a),Pd(this))}},fromLinkable:{get:function(){return this.ba!==null?this.ba.hq:null},set:function(a){var y=this.fromLinkable;y!==a&&(this.Xc(),this.ba.hq=a,this.g("fromLinkable",y,a))}},fromMaxLinks:{get:function(){return this.ba!==null?this.ba.iq:1/0},set:function(a){var y=this.fromMaxLinks;y!==a&&(0>a&&Zn(a,">= 0",Yt,"fromMaxLinks"),this.Xc(),this.ba.iq=a,this.g("fromMaxLinks",y,a))}},cursor:{get:function(){return this.A!==null?this.A.j:""},set:function(a){var y=this.cursor;y!==a&&(On(this),this.A.j=a,this.g("cursor",y,a))}},click:{get:function(){return this.A!==null?this.A.zh:null},set:function(a){var y=this.click;y!==a&&(On(this),this.A.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.A!==null?this.A.Fh:null},set:function(a){var y=this.doubleClick;y!==a&&(On(this),this.A.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.A!==null?this.A.Bh:null},set:function(a){var y=this.contextClick;y!==a&&(On(this),this.A.Bh=a,this.g("contextClick",y,a))}},mouseEnter:{get:function(){return this.A!==null?this.A.Mh:null},set:function(a){var y=this.mouseEnter;y!==a&&(On(this),this.A.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.A!==null?this.A.Ph:null},set:function(a){var y=this.mouseLeave;y!==a&&(On(this),this.A.Ph=a,this.g("mouseLeave",y,a))}},mouseOver:{get:function(){return this.A!==null?this.A.Qh:null},set:function(a){var y=this.mouseOver;y!==a&&(On(this),this.A.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.A!==null?this.A.Oh:null},set:function(a){var y=this.mouseHover;y!==a&&(On(this),this.A.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.A!==null?this.A.Nh:null},set:function(a){var y=this.mouseHold;y!==a&&(On(this),this.A.Nh=a,this.g("mouseHold",y,a))}},mouseDragEnter:{get:function(){return this.A!==null?this.A.Of:null},set:function(a){var y=this.mouseDragEnter;y!==a&&(On(this),this.A.Of=a,this.g("mouseDragEnter",y,a))}},mouseDragLeave:{get:function(){return this.A!==null?this.A.Xd:null},set:function(a){var y=this.mouseDragLeave;y!==a&&(On(this),this.A.Xd=a,this.g("mouseDragLeave",y,a))}},mouseDrop:{get:function(){return this.A!==null?this.A.Lh:null},set:function(a){var y=this.mouseDrop;y!==a&&(On(this),this.A.Lh=a,this.g("mouseDrop",y,a))}},actionDown:{get:function(){return this.A!==null?this.A.V:null},set:function(a){var y=this.actionDown;y!==a&&(On(this),this.A.V=a,this.g("actionDown",y,a))}},actionMove:{get:function(){return this.A!==null?this.A.ia:null},set:function(a){var y=this.actionMove;y!==a&&(On(this),this.A.ia=a,this.g("actionMove",y,a))}},actionUp:{get:function(){return this.A!==null?this.A.Ha:null},set:function(a){var y=this.actionUp;y!==a&&(On(this),this.A.Ha=a,this.g("actionUp",y,a))}},actionCancel:{get:function(){return this.A!==null?this.A.F:null},set:function(a){var y=this.actionCancel;y!==a&&(On(this),this.A.F=a,this.g("actionCancel",y,a))}},toolTip:{get:function(){return this.A!==null?this.A.$h:null},set:function(a){var y=this.toolTip;y!==a&&(On(this),this.A.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.A!==null?this.A.Ch:null},set:function(a){var y=this.contextMenu;y!==a&&(On(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),Yt.prototype.trigger=Yt.prototype.Jv,Yt.prototype.findBindingPanel=Yt.prototype.ih,Yt.prototype.findTemplateBinder=Yt.prototype.pz,Yt.prototype.setProperties=Yt.prototype.nm,Yt.prototype.apply=Yt.prototype.apply,Yt.prototype.attach=Yt.prototype.Du,Yt.prototype.set=Yt.prototype.set,Yt.prototype.isEnabledObject=Yt.prototype.If,Yt.prototype.isVisibleObject=Yt.prototype.Ed,Yt.prototype.isContainedBy=Yt.prototype.rg,Yt.prototype.getNearestIntersectionPoint=Yt.prototype.rs,Yt.prototype.getLocalPoint=Yt.prototype.qs,Yt.prototype.getDocumentScale=Yt.prototype.Df,Yt.prototype.getDocumentAngle=Yt.prototype.li,Yt.prototype.getDocumentBounds=Yt.prototype.mi,Yt.prototype.getDocumentPoint=Yt.prototype.ga,Yt.prototype.intersectsRect=Yt.prototype.Yc,Yt.prototype.containedInRect=Yt.prototype.fh,Yt.prototype.containsRect=Yt.prototype.Re,Yt.prototype.containsPoint=Yt.prototype.ca,Yt.prototype.raiseChanged=Yt.prototype.g,Yt.prototype.raiseChangedEvent=Yt.prototype.cb,Yt.prototype.addCopyProperty=Yt.prototype.Vw;var df=null;Yt.className="GraphObject",df=new xn,Uu("Button",function(){function a(x,E){return x.diagram.ic(x.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b},function(b){return b===E})!==null}var y=fa(Ie,Ie.Auto,{isActionable:!0,enabledChanged:function(x,E){if(x instanceof Ie){var b=x.fb("ButtonBorder");b!==null&&(b.fill=E?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},fa(Nn,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new cn(0,0,2.76142374915397,2.761423749153969),spot2:new cn(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,E){if(E.If()&&E instanceof Ie&&(x=E.fb("ButtonBorder"),x instanceof Nn)){var b=E._buttonFillOver;E._buttonFillNormal=x.fill,x.fill=b,b=E._buttonStrokeOver,E._buttonStrokeNormal=x.stroke,x.stroke=b}},y.mouseLeave=function(x,E){E.If()&&E instanceof Ie&&(x=E.fb("ButtonBorder"),x instanceof Nn&&(x.fill=E._buttonFillNormal,x.stroke=E._buttonStrokeNormal))},y.actionDown=function(x,E){if(E.If()&&E instanceof Ie&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof Nn){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var tt=E._buttonFillPressed;E._buttonFillOver=b.fill,b.fill=tt,tt=E._buttonStrokePressed,E._buttonStrokeOver=b.stroke,b.stroke=tt,x.skipsUndoManager=z}}},y.actionUp=function(x,E){if(E.If()&&E instanceof Ie&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof Nn){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionCancel=function(x,E){if(E.If()&&E instanceof Ie&&E._buttonFillPressed!==null){var b=E.fb("ButtonBorder");if(b instanceof Nn){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionMove=function(x,E){if(E.If()&&E instanceof Ie&&E._buttonFillPressed!==null){var b=x.diagram;if(b.firstInput.button===0&&(b.currentTool.standardMouseOver(),a(x,E)&&(x=E.fb("ButtonBorder"),x instanceof Nn))){var z=b.skipsUndoManager;b.skipsUndoManager=!0;var tt=E._buttonFillPressed;x.fill!==tt&&(x.fill=tt),tt=E._buttonStrokePressed,x.stroke!==tt&&(x.stroke=tt),b.skipsUndoManager=z}}},y}),Uu("TreeExpanderButton",function(){var a=fa("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},fa(Nn,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:_o},new Fo("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new Fo("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof ai&&(x=x.adornedPart),x instanceof Xe){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isTreeExpanded){if(!E.canCollapseTree(x))return}else if(!E.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?E.collapseTree(x):E.expandTree(x)}}},a}),Uu("SubGraphExpanderButton",function(){var a=fa("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},fa(Nn,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:_o},new Fo("figure","isSubGraphExpanded",function(y,x){return x=x.panel,y?x._subGraphExpandedFigure:x._subGraphCollapsedFigure}).cp()));return a.click=function(y,x){if(x=x.part,x instanceof ai&&(x=x.adornedPart),x instanceof Bn){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isSubGraphExpanded){if(!E.canCollapseSubGraph(x))return}else if(!E.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?E.collapseSubGraph(x):E.expandSubGraph(x)}}},a}),Uu("ToolTip",function(){return fa(ai,Ie.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new jt(0,3),shadowBlur:5},fa(Nn,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new cn(0,0,4,6),spot2:new cn(1,1,-4,-4)}))}),Uu("ContextMenu",function(){return fa(ai,Ie.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new jt(0,3),shadowBlur:5},new Fo("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),Uu("ContextMenuButton",function(){var a=fa("Button");a.stretch=sn;var y=a.fb("ButtonBorder");return y instanceof Nn&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new cn(0,0,2,3),y.spot2=new cn(1,1,-2,-2)),a}),Uu("PanelExpanderButton",function(a){var y=a0(a,"COLLAPSIBLE"),x=fa("Button",{_buttonExpandedFigure:"M0 0 M0 6 L4 2 8 6 M8 8",_buttonCollapsedFigure:"M0 0 M0 2 L4 6 8 2 M8 8",_buttonFillNormal:"rgba(0, 0, 0, 0)",_buttonStrokeNormal:null,_buttonFillOver:"rgba(0, 0, 0, .2)",_buttonStrokeOver:null,_buttonFillPressed:"rgba(0, 0, 0, .4)",_buttonStrokePressed:null},fa(Nn,{name:"ButtonIcon",strokeWidth:2},new Fo("geometryString","visible",function(E){return E?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof Nn&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(E,b){var z=b.diagram;if(z!==null&&!z.isReadOnly){var tt=b.ih();tt===null&&(tt=b.part),tt!==null&&(b=tt.fb(y),b!==null&&(E.handled=!0,z.Ea("Collapse/Expand Panel"),b.visible=!b.visible,z.eb("Collapse/Expand Panel")))}},x}),Uu("CheckBoxButton",function(a){var y=a0(a);return a=fa("Button",{desiredSize:new We(14,14)},fa(Nn,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Le,geometryStretch:en,visible:!1},y!==""?new Fo("visible",y).Kx():[])),a.click=function(x,E){if(E instanceof Ie){var b=x.diagram;if(!(b===null||b.isReadOnly||y!==""&&b.model.isReadOnly)){x.handled=!0;var z=E.fb("ButtonIcon");b.Ea("checkbox"),z.visible=!z.visible,typeof E._doClick=="function"&&E._doClick(x,E),b.eb("checkbox")}}},a}),Uu("CheckBox",function(a){a=a0(a),a=fa("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new Rn(0,1,0,0)});var y=fa(Ie,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Rn(1),_buttonFillNormal:a._buttonFillNormal,_buttonStrokeNormal:a._buttonStrokeNormal,_buttonFillOver:a._buttonFillOver,_buttonStrokeOver:a._buttonStrokeOver,_buttonFillPressed:a._buttonFillPressed,_buttonStrokePressed:a._buttonStrokePressed,_buttonFillDisabled:a._buttonFillDisabled,mouseEnter:a.mouseEnter,mouseLeave:a.mouseLeave,actionDown:a.actionDown,actionUp:a.actionUp,actionCancel:a.actionCancel,actionMove:a.actionMove,click:a.click,_buttonClick:a.click});return a.mouseEnter=null,a.mouseLeave=null,a.actionDown=null,a.actionUp=null,a.actionCancel=null,a.actionMove=null,a.click=null,y}),Yt.None=we=new Ee(Yt,"None",0),Yt.Default=Ln=new Ee(Yt,"Default",0),Yt.Vertical=vn=new Ee(Yt,"Vertical",4),Yt.Horizontal=sn=new Ee(Yt,"Horizontal",5),Yt.Fill=Le=new Ee(Yt,"Fill",3),Yt.Uniform=en=new Ee(Yt,"Uniform",1),Yt.UniformToFill=Kn=new Ee(Yt,"UniformToFill",2),Yt.FlipVertical=zn=new Ee(Yt,"FlipVertical",1),Yt.FlipHorizontal=oi=new Ee(Yt,"FlipHorizontal",2),Yt.FlipBoth=Ei=new Ee(Yt,"FlipBoth",3),Yt.make=fa,Yt.getBuilders=function(){var a=new xn,y;for(y in df)if(y!==y.toLowerCase()){var x=df.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},Yt.defineBuilder=Uu,Yt.build=function(a,y,x){for(var E=[],b=2;ba&&(a+=360),a!==0){if(this.translate(y,x),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.ha[1]*a+this.ha[3]*E,z=this.ha[0]*-E+this.ha[2]*a,tt=this.ha[1]*-E+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*E,this.ha[1]=b,this.ha[2]=z,this.ha[3]=tt,this.translate(-y,-x)}},wd.className="STransform";function fg(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}fg.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},fg.className="SGradient";function Pl(a,y,x){this.ownerDocument=a=y===void 0?Ke.document:y,this.cA="http://www.w3.org/2000/svg",a!==void 0&&(this.Oa=this.Ud("svg",{width:"1px",height:"1px",viewBox:"0 0 1 1"}),this.style.display="block",this.style.letterSpacing="normal",this.style.wordSpacing="normal",this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink")),this.hs=null,this.context=new Hs(this,x)}Pl.prototype.resize=function(a,y,x,E){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=E+"px",this.Oa.setAttributeNS(null,"width",x+"px"),this.Oa.setAttributeNS(null,"height",E+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+x+" "+E),this.context.ww.firstElementChild.setAttributeNS(null,"width",x+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",E+"px"),!0):!1},Pl.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),Pe(y))for(var E in y)a.setAttributeNS(E==="href"?"http://www.w3.org/1999/xlink":"",E,y[E]);return x!==void 0&&(a.textContent=x),a},Pl.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Pl.prototype.focus=function(){this.Oa.focus()},Pl.prototype.mx=function(){this.ownerDocument=null},fe.Object.defineProperties(Pl.prototype,{width:{get:function(){return this.Oa.width.baseVal.value},set:function(a){this.Oa.setAttribute("width",a+"px")}},height:{get:function(){return this.Oa.height.baseVal.value},set:function(a){this.Oa.setAttribute("height",a+"px")}},style:{get:function(){return this.Oa.style}}}),Pl.className="SVGSurface";function Hs(a,y){this.Gv=a,this.svg=a.Oa,this.stack=[],this.nh=[],this.fillStyle="#000000",this.font="10px sans-serif",this.globalAlpha=1,this.lineCap="butt",this.lineDashOffset=0,this.lineJoin="miter",this.lineWidth=1,this.miterLimit=10,this.shadowBlur=0,this.shadowColor="rgba(0, 0, 0, 0)",this.shadowOffsetY=this.shadowOffsetX=0,this.Il=!1,this.strokeStyle="#000000",this.textAlign="start",this.clipInsteadOfFill=!1,this.Vg=this.Br=this.Ar=0,this.yd=this.ad=null,this.path=[],this.Yl={},this.Ct=!1,this.Yg=null,this.uj=0,this.rb=new wd,this.j=l0(this),this.Nj=l0(this,"gojs-diagram"),this.Hl=this.ti=null;var x=Jr++,E=this.Ud("clipPath",{id:"mainClip"+x});E.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=E,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(E),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function Yy(a,y,x,E,b,z,tt){a.Nj===void 0?Oc(a,y,x,E,b,z,tt):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+E+", "+b+", "+z+", "+tt+")")}Pt=Hs.prototype,Pt.arc=function(a,y,x,E,b,z,tt,ot){var rt=2*Math.PI,at=rt-1e-6,ut=x*Math.cos(E),ft=x*Math.sin(E),mt=a+ut,yt=y+ft,At=z?0:1;E=z?E-b:b-E,(1e-6E&&(E=E%rt+rt),E>at?(this.path.push(["A",x,x,0,1,At,a-ut,y-ft]),this.path.push(["A",x,x,0,1,At,mt,yt])):1e-6=Math.PI),At,a+x*Math.cos(b),y+x*Math.sin(b)])},Pt.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Pt.Se=function(a){this.addPath(this.path,this.rb,a||0)},Pt.bezierCurveTo=function(a,y,x,E,b,z){this.path.push(["C",a,y,x,E,b,z])},Pt.clearRect=function(){},Pt.clip=function(){this.Yl.clipPath=!0},Pt.closePath=function(){this.path.push(["z"])},Pt.createLinearGradient=function(a,y,x,E){var b=new fg("linear");return b.x1=a,b.y1=y,b.x2=x,b.y2=E,b},Pt.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var x=this.eA;if(x[y])return"url(#"+x[y]+")";var E="PATTERN"+Jr++,b={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:E,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(Sd,b)),this.svg.appendChild(a),x[y]=E,"url(#"+E+")"},Pt.createRadialGradient=function(a,y,x,E,b,z){var tt=new fg("radial");return tt.x1=a,tt.y1=y,tt.r1=x,tt.x2=E,tt.y2=b,tt.r2=z,tt};function Zy(a,y,x,E,b,z,tt,ot,rt){E=ot/E,b=rt/b,z===0&&tt===0||a.rb.translate(z,tt),E===1&&b===1||a.rb.scale(E,b),y===0&&x===0||a.rb.translate(-y,-x)}Pt.drawImage=function(a,y,x,E,b,z,tt,ot,rt){var at="";a instanceof HTMLCanvasElement&&(at=a.toDataURL()),a instanceof HTMLImageElement&&(at=a.getAttribute("src"));var ut=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,E===void 0&&(z=y,tt=x,ot=E=ut,rt=b=a),E=E||0,b=b||0,ot=ot||0,rt=rt||0,Zy(this,y,x,E,b,z||0,tt||0,ot,rt),z={x:0,y:0,width:ut||E,height:a||b,href:at},Jt.$(E,ot)&&Jt.$(b,rt)?at.toLowerCase().indexOf(".svg")===-1&&at.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||E!==ut||b!==a)&&(E+=y,b+=x,z["clip-path"]="path('M "+y+","+x+" L "+E+" "+x+" L "+E+" "+b+" L "+y+" "+b+" z')"),gf(this,Sd,z,this.rb),this.addElement(Sd,z)},Pt.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),iv(this,this.Yl)},Pt.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Pt.fillRect=function(a,y,x,E){a=[a,y,x,E],a={x:a[0],y:a[1],width:a[2],height:a[3]},gf(this,"fill",a,this.rb),this.addElement("rect",a)},Pt.ox=function(a,y,x,E){a={x:a,y,width:x,height:E},gf(this,"fill",a,this.rb),iv(this,a),this.svg.prepend(this.Ud("rect",a))},Pt.fillText=function(a,y,x){a=[a,y,x],y=this.textAlign,y==="left"?y="start":y==="right"?y="end":y==="center"&&(y="middle"),y={x:a[1],y:a[2],style:"font: "+this.font,"text-anchor":y},gf(this,"fill",y,this.rb),this.addElement("text",y,a[0])},Pt.lineTo=function(a,y){this.path.push(["L",a,y])},Pt.moveTo=function(a,y){this.path.push(["M",a,y])},Pt.quadraticCurveTo=function(a,y,x,E){this.path.push(["Q",a,y,x,E])},Pt.rect=function(a,y,x,E){this.path.push(["M",a,y],["L",a+x,y],["L",a+x,y+E],["L",a,y+E],["z"])},Pt.restore=function(){this.rb=this.stack.pop(),this.path=this.stack.pop();var a=this.stack.pop();this.fillStyle=a.fillStyle,this.font=a.font,this.globalAlpha=a.globalAlpha,this.lineCap=a.lineCap,this.lineDashOffset=a.lineDashOffset,this.lineJoin=a.lineJoin,this.lineWidth=a.lineWidth,this.miterLimit=a.miterLimit,this.shadowBlur=a.shadowBlur,this.shadowColor=a.shadowColor,this.shadowOffsetX=a.shadowOffsetX,this.shadowOffsetY=a.shadowOffsetY,this.strokeStyle=a.strokeStyle,this.textAlign=a.textAlign,this.bk=a.bk},Pt.save=function(){this.stack.push({fillStyle:this.fillStyle,font:this.font,globalAlpha:this.globalAlpha,lineCap:this.lineCap,lineDashOffset:this.lineDashOffset,lineJoin:this.lineJoin,lineWidth:this.lineWidth,miterLimit:this.miterLimit,shadowBlur:this.shadowBlur,shadowColor:this.shadowColor,shadowOffsetX:this.shadowOffsetX,shadowOffsetY:this.shadowOffsetY,strokeStyle:this.strokeStyle,textAlign:this.textAlign,bk:this.bk});for(var a=[],y=0;yut.offset?1:-1}),b=0;bx?(this.scale(x/a,1),this.translate((a-x)/2,0)):x>a&&(this.scale(1,a/x),this.translate(0,(x-a)/2)),this.Hm?this.clip():this.fill(y),a>x?(this.translate(-(a-x)/2,0),this.scale(1/(x/a),1)):x>a&&(this.translate(0,-(x-a)/2),this.scale(1,1/(a/x)))}else this.Hm?this.clip():this.fill(y)},Pt.jk=function(){this.Hm||this.stroke()},Pt.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Pt.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Pt.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(mS),a.lineDashOffset=0)},Pt.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Pt.Hs=function(){},fe.Object.defineProperties(Cd.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(a){this.ct!==a&&(this.ct=this.Z.fillStyle=a)}},font:{get:function(){return this.Z.font},set:function(a){this.dt!==a&&(this.dt=this.Z.font=a)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(a){this.Z.globalAlpha=a}},lineCap:{get:function(){return this.Z.lineCap},set:function(a){this.Z.lineCap=a}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(a){this.Z.lineDashOffset=a}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(a){this.Z.lineJoin=a}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(a){this.Z.lineWidth=a}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(a){this.Z.miterLimit=a}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(a){this.Z.shadowBlur=a}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(a){this.Z.shadowColor=a}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(a){this.Z.shadowOffsetX=a}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(a){this.Z.shadowOffsetY=a}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(a){this.et!==a&&(this.et=this.Z.strokeStyle=a)}},textAlign:{get:function(){return this.Z.textAlign},set:function(a){this.Z.textAlign=a}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(a){this.Z.imageSmoothingEnabled=a}},filter:{get:function(){return this.Z.filter},set:function(a){this.Z.filter=a===""?"none":a}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(a){this.Hm=a}}});var mS=Object.freeze([]);Cd.className="CanvasSurfaceContext";function jc(){this.F=this.o=this.u=this.j=0}jc.className="ColorNumbers";function Si(a,y){mf||(hv(),mf=!0),eo(this),this._isFrozen=!1,a===void 0?(this.na=Xu,this.xk="black"):typeof a=="string"?(this.na=Xu,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===du?(this.Qd=Ys,this.Lk=js):this.Lk=a===ca?this.Qd=pi:this.Qd=er,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}Si.prototype.copy=function(){var a=new Si;return a.na=this.na,a.xk=this.xk,a.Qd=this.Qd.J(),a.Lk=this.Lk.J(),a.Gr=this.Gr,a.Xp=this.Xp,this.we!==null&&(a.we=this.we.copy()),a.cr=this.cr,a},Pt=Si.prototype,Pt.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Pt.ka=function(){return Object.isFrozen(this)&&ee("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Pt.qb=function(a){a.classType===Si&&(this.type=a)},Pt.toString=function(){var a="Brush(";if(this.type===Xu)a+=this.color;else if(a=this.type===du?a+"Linear ":this.type===ca?a+"Radial ":this.type===vf?a+"Pattern ":a+"(unknown) ",a+=this.start+" "+this.end,this.colorStops!==null)for(var y=this.colorStops.iterator;y.next();)a+=" "+y.key+":"+y.value;return a+")"},Pt.addColorStop=function(a,y){return this._isFrozen&&mn(this),(typeof a!="number"||!isFinite(a)||1a)&&Zn(a,"0 <= loc <= 1",Si,"addColorStop:loc"),this.we===null&&(this.we=new xn),this.we.add(a,y),this.na===Xu&&(this.type=du),this.xe=null,this},Pt.Vz=function(a,y){if(this._isFrozen&&mn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?yf:y,this.type===Xu)hu(this.color),this.color=cf(a,y);else if((this.type===du||this.type===ca)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)hu(x.value),this.addColorStop(x.key,cf(a,y));return this};function $y(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?yf:x,hu(a),cf(y,x)}Pt.Wy=function(a,y){if(this._isFrozen&&mn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?yf:y,this.type===Xu)hu(this.color),this.color=cf(-a,y);else if((this.type===du||this.type===ca)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)hu(x.value),this.addColorStop(x.key,cf(-a,y));return this};function tA(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?yf:x,hu(a),cf(-y,x)}function rv(a,y,x){hu(a),a=bi.j;var E=bi.u,b=bi.o,z=bi.F;return hu(y),x===void 0&&(x=.5),"rgba("+Math.round((bi.j-a)*x+a)+", "+Math.round((bi.u-E)*x+E)+", "+Math.round((bi.o-b)*x+b)+", "+Math.round((bi.F-z)*x+z)+")"}Pt.Gx=function(){if(this.type===Xu)return ff(this.color);if((this.type===du||this.type===ca)&&this.colorStops!==null){var a=this.colorStops;if(this.type===ca)return ff(a.first().value);if(a.get(.5)!==null)return ff(a.get(.5));if(a.count===2)return a=a.Fa(),ff(rv(a[0].value,a[1].value));for(var y=a.iterator,x=-1,E=-1,b=1,z=1;y.next();){var tt=y.key,ot=Math.abs(.5-y.key);b>z&&ot=b&&otE&&(z=x,x=E,E=z,z=b),b=E-x,ff(rv(a.get(x),a.get(E),1-z/b))}return!1};function ff(a){return a?a instanceof Si?a.Gx():(hu(a),128>(299*bi.j+587*bi.u+114*bi.o)/1e3):!1}function cf(a,y){switch(y){case yf:y=100*av(bi.j);var x=100*av(bi.u),E=100*av(bi.o);return ls.j=.4124564*y+.3575761*x+.1804375*E,ls.u=.2126729*y+.7151522*x+.072175*E,ls.o=.0193339*y+.119192*x+.9503041*E,ls.F=bi.F,y=uv(ls.j/pf[0]),x=uv(ls.u/pf[1]),E=uv(ls.o/pf[2]),Ql.j=116*x-16,Ql.u=500*(y-x),Ql.o=200*(x-E),Ql.F=ls.F,Ql.j=Math.min(100,Math.max(0,Ql.j+100*a)),a=(Ql.j+16)/116,y=a-Ql.o/200,ls.j=pf[0]*eA(Ql.u/500+a),ls.u=pf[1]*(Ql.j>h0*dv?Math.pow(a,3):Ql.j/h0),ls.o=pf[2]*eA(y),ls.F=Ql.F,a=-.969266*ls.j+1.8760108*ls.u+.041556*ls.o,y=.0556434*ls.j+-.2040259*ls.u+1.0572252*ls.o,bi.j=255*lv((3.2404542*ls.j+-1.5371385*ls.u+-.4985314*ls.o)/100),bi.u=255*lv(a/100),bi.o=255*lv(y/100),bi.F=ls.F,bi.j=Math.round(bi.j),255bi.j&&(bi.j=0),bi.u=Math.round(bi.u),255bi.u&&(bi.u=0),bi.o=Math.round(bi.o),255bi.o&&(bi.o=0),"rgba("+bi.j+", "+bi.u+", "+bi.o+", "+bi.F+")";case nA:return sv(),ta.o=Math.min(100,Math.max(0,ta.o+100*a)),"hsla("+ta.j+", "+ta.u+"%, "+ta.o+"%, "+ta.F+")";default:ee("Unknown color space: "+y)}}function hu(a){mf||(hv(),mf=!0);var y=gv;if(y!==null){y.clearRect(0,0,1,1),y.fillStyle="#000000";var x=y.fillStyle;y.fillStyle=a,y.fillStyle!==x?(y.fillRect(0,0,1,1),a=y.getImageData(0,0,1,1).data,bi.j=a[0],bi.u=a[1],bi.o=a[2],bi.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,bi.j=0,bi.u=0,bi.o=0,bi.F=1)}}function sv(){var a=bi.j/255,y=bi.u/255,x=bi.o/255,E=Math.max(a,y,x),b=Math.min(a,y,x),z=E-b;if(b=(E+b)/2,z===0)var tt=a=0;else{switch(E){case a:tt=(y-x)/z%6;break;case y:tt=(x-a)/z+2;break;case x:tt=(a-y)/z+4}tt*=60,0>tt&&(tt+=360),a=z/(1-Math.abs(2*b-1))}ta.j=Math.round(tt),ta.u=Math.round(100*a),ta.o=Math.round(100*b),ta.F=bi.F}function av(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function lv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function uv(a){return a>dv?Math.pow(a,1/3):(h0*a+16)/116}function eA(a){var y=a*a*a;return y>dv?y:(116*a-16)/h0}function cg(a,y){typeof a!="string"&&(a instanceof Si||ee("Value for "+y+" must be a color string or a Brush, not "+a))}function hv(){gv=Ao?new ka(null,void 0,{willReadFrequently:!0}).context:null}fe.Object.defineProperties(Si.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&mn(this,a),this.na=a,this.start.Mc()&&(a===du?this.start=Ys:a===ca&&(this.start=pi)),this.end.Mc()&&(a===du?this.end=js:a===ca&&(this.end=pi)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&mn(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&mn(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&mn(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&mn(this,a),0>a&&Zn(a,">= zero",Si,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&mn(this,a),0>a&&Zn(a,">= zero",Si,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&mn(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&mn(this,a),this.cr=a,this.xe=null}}}),Si.prototype.isDark=Si.prototype.Gx,Si.prototype.darkenBy=Si.prototype.Wy,Si.prototype.lightenBy=Si.prototype.Vz,Si.prototype.addColorStop=Si.prototype.addColorStop;var dv=216/24389,h0=24389/27,pf=[95.047,100,108.883],gv=null,bi=new jc,ta=new jc,ls=new jc,Ql=new jc,mf=!1;Si.className="Brush";var Xu;Si.Solid=Xu=new Ee(Si,"Solid",0);var du;Si.Linear=du=new Ee(Si,"Linear",1);var ca;Si.Radial=ca=new Ee(Si,"Radial",2);var vf;Si.Pattern=vf=new Ee(Si,"Pattern",4);var yf;Si.Lab=yf=new Ee(Si,"Lab",5);var nA;Si.HSL=nA=new Ee(Si,"HSL",6),Si.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var x=Math.abs(y-a);y=Math.floor(a+Math.random()*x).toString(16);var E=Math.floor(a+Math.random()*x).toString(16);return a=Math.floor(a+Math.random()*x).toString(16),2>y.length&&(y="0"+y),2>E.length&&(E="0"+E),2>a.length&&(a="0"+a),"#"+y+E+a},Si.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;mf||(hv(),mf=!0);var y=gv;if(y===null)return!0;y.fillStyle="#000000";var x=y.fillStyle;return y.fillStyle=a,y.fillStyle!==x?!0:(y.fillStyle="#FFFFFF",x=y.fillStyle,y.fillStyle=a,y.fillStyle!==x)},Si.lighten=function(a){return $y(a)},Si.lightenBy=$y,Si.darken=function(a){return tA(a)},Si.darkenBy=tA,Si.mix=rv,Si.isDark=ff;function Ko(){this.xa="Base"}Ko.prototype.measure=function(){},Ko.prototype.Yz=function(a,y,x,E,b){a.measure(y,x,E,b)},Ko.prototype.arrange=function(){},Ko.prototype.Ly=function(a,y,x,E,b,z){a.arrange(y,x,E,b,z)},Ko.prototype.iA=function(a){a.Uj()},Ko.prototype.gc=function(){},fe.Object.defineProperties(Ko.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return Ie}}}),Ko.prototype.remeasureObject=Ko.prototype.iA,Ko.prototype.arrangeElement=Ko.prototype.Ly,Ko.prototype.measureElement=Ko.prototype.Yz,Ko.className="PanelLayout";function d0(){this.xa="Base"}Ae(d0,Ko),d0.prototype.measure=function(a,y,x,E,b,z,tt){var ot=E.length;a=gu(a);for(var rt=0;rttn&&(sr=Math.max(tn-Kh,0));var zm=ye.oa===0;ye.oc=ye.oc+sr,ye.actual=ye.oa+sr,tn=Math.max(tn-(sr+(zm?Kh:0)),0)}if(Ns.columnSpan===1&&(Yr===we||Yr===vn)){ye=a.Eb(Kr);var Ep=ye.Wc();sr=Math.max(Td-ye.actual,0),sr+Ep>Ue&&(sr=Math.max(Ue-Ep,0));var Qy=ye.oa===0;ye.oc=ye.oc+sr,ye.actual=ye.oa+sr,Ue=Math.max(Ue-(sr+(Qy?Ep:0)),0)}Vh&&Ns.Uj()}}}}}ei(Rt);var Zl=0,pu=0;z=a.columnCount;for(var Lg=0;Lg=a.rowCount);rh++)ye=a.Fb(wo.row+rh),sr=0,sr=Yr===Le||Yr===vn?Math.max(ye.minimum,gl[wo.row+rh]===0?ye.maximum:Math.min(gl[wo.row+rh],ye.maximum)):Math.max(ye.minimum,isNaN(ye.Hc)?ye.maximum:Math.min(ye.Hc,ye.maximum)),yu.height+=sr,Ks+=ye.minimum;for(var ba=1;ba=a.columnCount);ba++)ye=a.Eb(wo.column+ba),sr=0,sr=Yr===Le||Yr===sn?Math.max(ye.minimum,Aa[wo.column+ba]===0?ye.maximum:Math.min(Aa[wo.column+ba],ye.maximum)):Math.max(ye.minimum,isNaN(ye.Hc)?ye.maximum:Math.min(ye.Hc,ye.maximum)),yu.width+=sr,Um+=ye.minimum;Pr.width+=yu.width,Pr.height+=yu.height;var Yf=wo.margin,_h=Yf.right+Yf.left,Lp=Yf.top+Yf.bottom;wo.measure(Pr.width,Pr.height,Um,Ks);for(var Zf=wo.measuredBounds,Ml=Math.max(Zf.width+_h,0),jd=Math.max(Zf.height+Lp,0),$h=0,Jf=0;Jf=a.rowCount);Jf++)ye=a.Fb(wo.row+Jf),$h+=ye.total||0;if($h=sh)&&!(wo.row+Au>=a.rowCount);Au++){ye=a.Fb(wo.row+Au);var lh=ye.oa||0,Rd=ah(wo,ye,ql);ye.actual=Math.min(ye.maximum,lh+Rd),ye.oa!==lh&&(sh-=ye.oa-lh)}for(;0fl&&(ye.actual=Math.min(ye.maximum,fl+sh),ye.oa!==fl&&(sh-=ye.oa-fl)),ye.index===0)break;ye=a.Fb(ye.index-1)}}for(var Ig=0,uh=0;uh=a.columnCount);uh++)ye=a.Eb(wo.column+uh),Ig+=ye.total||0;if(Ig=Fg)&&!(wo.column+zd>=a.columnCount);zd++){ye=a.Eb(wo.column+zd);var Mp=ye.oa||0,Uy=Su(wo,ye,Gy);ye.actual=Math.min(ye.maximum,Mp+Uy),ye.oa!==Mp&&(Fg-=ye.oa-Mp)}for(;0Xm&&(ye.actual=Math.min(ye.maximum,Xm+Fg),ye.oa!==Xm&&(Fg-=ye.oa-Xm)),ye.index===0)break;ye=a.Eb(ye.index-1)}}}}ei(zt),We.free(yu),We.free(Pr),gl!==void 0&&ei(gl),Aa!==void 0&&ei(Aa);var Ng=0,Tg=0,Wm=a.desiredSize,cS=a.maxSize;Yr=Ss(a,!0);var kp=pu=Zl=0,Ip=0;z=a.columnCount;for(var Vm=0;Vm=a.rowCount);ye++){var Cn=a.Fb(Rt+ye);Cn.oa!==0&&(It.height+=Cn.total)}for(ye=1;ye=a.columnCount);ye++)Cn=a.Eb(Gt+ye),Cn.oa!==0&&(It.width+=Cn.total);var yn=Kt.oa+It.width,di=zt.oa+It.height;ye=ot,Cn=rt;var ki=yn,rr=di,hr=ot,Vr=rt,sr=yn,eh=di;ot+yn>x.width&&(sr=Math.max(x.width-ot,0)),rt+di>x.height&&(eh=Math.max(x.height-rt,0));var No=Ye.alignment;if(No.Xb()){No=a.defaultAlignment,No.sb()||(No=pi);var ul=No.x,Kr=No.y,nh=No.offsetX;No=No.offsetY;var ia=Kt.alignment,Ta=zt.alignment;ia.sb()&&(ul=ia.x,nh=ia.offsetX),Ta.sb()&&(Kr=Ta.y,No=Ta.offsetY)}else ul=No.x,Kr=No.y,nh=No.offsetX,No=No.offsetY;(isNaN(ul)||isNaN(Kr))&&(Kr=ul=.5,No=nh=0),ia=Fe.width,Ta=Fe.height;var Xs=Ye.margin,Ns=Xs.left+Xs.right,Vh=Xs.top+Xs.bottom,hl=ol(Ye,zt,Kt,!1);!isNaN(Ye.desiredSize.width)||hl!==Le&&hl!==sn||(ia=Math.max(yn-Ns,0)),!isNaN(Ye.desiredSize.height)||hl!==Le&&hl!==vn||(Ta=Math.max(di-Vh,0)),yn=Ye.maxSize,di=Ye.minSize,ia=Math.min(yn.width,ia),Ta=Math.min(yn.height,Ta),ia=Math.max(di.width,ia),Ta=Math.max(di.height,Ta),yn=Ta+Vh,ye+=ki*ul-(ia+Ns)*ul+nh+Xs.left,Cn+=rr*Kr-yn*Kr+No+Xs.top,Ye.visible&&(Lr(hr,Vr,sr,eh,ye,Cn,Fe.width,Fe.height)?Ye.arrange(ye,Cn,ia,Ta):Ye.arrange(ye,Cn,ia,Ta,new ce(hr,Vr,sr,eh)))}}}for(We.free(It),a=0;a=x&&(x=1);var E=a.gridCellSize,b=E.width;E=E.height;var z=a.naturalBounds,tt=a.actualBounds,ot=z.width,rt=z.height,at=Math.ceil(ot/b),ut=Math.ceil(rt/E),ft=a.gridOrigin,mt=ft.x;ft=ft.y,y.save(),y.beginPath(),y.rect(0,0,ot,rt),y.clip(),y.Se();for(var yt=[],At=a.O.s,Bt=At.length,Dt=0;Dtzt)){It=pv(It.figure);for(var Gt=0;Gtzt&&Rt.push(Kt))}}}}for(At=a.O.s,Bt=At.length,Dt=0;Dtb*It*x))){if(zt=ie.segmentIndex,(!isFinite(zt)||isNaN(zt))&&(zt=0),0>zt&&(zt=It-Math.min(-zt,It)),zt=Math.round(zt%It),It=ie.opacity,Gt=1,It!==1){if(It===0)continue;Gt=y.globalAlpha,y.globalAlpha=Gt*It}Kt=yt[Dt];var Ue=!1,tn=ie.strokeDashArray;if(tn!==null&&(Ue=!0,y.js(tn,ie.strokeDashOffset)),ie.figure==="LineV"&&ie.stroke!==null&&0y)return a%y===x;if(a%y!==x)return!1;y=E.length;for(var b=0;bft)Rt.measure(1/0,1/0,0,0),zt=Rt.measuredBounds,x.ed(zt),yt.push(zt);else{var Gt=Rt.segmentIndex,Kt=Rt.segmentFraction,ie=Rt.alignmentFocus;ie.Mc()&&(ie=pi);var Ue=Rt.segmentOrientation,tn=Rt.segmentOffset;if(isNaN(Gt)){var Ye=rt.ua;zt=Jn(),Ye.Qu(Kt,zt);var Fe=jt.allocAt(zt[0],zt[1]);if(Fe.add(rt.i(0)),Ye.type===be.j?Fe.offset(-Ye.startX,-Ye.startY):(Ye=Ye.figures.first(),Ye!==null&&Fe.offset(-Ye.startX,-Ye.startY)),Ye=zt[2],Ue!==hs){var ye=rt.computeAngle(Rt,Ue,Ye);Rt.Kb=ye}ye=Fe.x-y.x;var Cn=Fe.y-y.y;jt.free(Fe),ei(zt)}else if(Gt<-ft||Gt>=ft)zt=jt.alloc(),rt.vg(),rt.computeMidPoint(zt),Ye=rt.midAngle,Ue!==hs&&(ye=rt.computeAngle(Rt,Ue,Ye),Rt.Kb=ye),ye=zt.x-y.x,Cn=zt.y-y.y,jt.free(zt);else{if(ye=0,0<=Gt?(Cn=ut.M(Gt),zt=Gtyn+10?0<=Gt?Ye.ab(Cn):Cn.ab(Ye):yn>Fe+10?0<=Gt?zt.ab(ye):ye.ab(zt):0<=Gt?Ye.ab(ye):ye.ab(Ye)}else Ye=0<=Gt?Cn.ab(zt):zt.ab(Cn);Ue!==hs&&(ye=rt.computeAngle(Rt,Ue,Ye),Rt.Kb=ye),ye=Cn.x+(zt.x-Cn.x)*Kt-y.x,Cn=Cn.y+(zt.y-Cn.y)*Kt-y.y}Rt.measure(1/0,1/0,0,0),zt=Rt.measuredBounds,Fe=Rt.naturalBounds;var di=0;Rt instanceof Nn&&(di=Rt.strokeWidth),yn=Fe.width+di;var ki=Fe.height+di;At.reset(),At.translate(-zt.x,-zt.y),At.scale(Rt.scale,Rt.scale),At.rotate(Ue===hs?Rt.angle:Ye,yn/2,ki/2),Ue!==qc&&Ue!==$c||At.rotate(90,yn/2,ki/2),Ue!==_c&&Ue!==tp||At.rotate(-90,yn/2,ki/2),Ue===q0&&(45Ye||225Ye)&&At.rotate(-Ye,yn/2,ki/2),Fe=new ce(0,0,yn,ki),Bt.xi(Fe,ie),At.Ga(Bt),ie=-Bt.x+di/2*Rt.scale,Rt=-Bt.y+di/2*Rt.scale,Dt.assign(tn),di=isNaN(tn.x);var rr=isNaN(tn.y);if(di||rr){yn=yn/2+3,ki=ki/2+3;var hr=45<=Ye&&135>=Ye,Vr=225<=Ye&&315>=Ye;Ue===hs&&(hr||Vr)?(Dt.x=rr?yn:tn.y,Dt.y=di?ki:tn.x,hr?0<=Gt||isNaN(Gt)&&.5>Kt||!di||(Dt.y=-ki):Vr&&((0<=Gt||isNaN(Gt)&&.5>Kt)&&di&&(Dt.y=-ki),rr&&(Dt.x=-yn))):(di&&(Dt.x=0<=Gt||isNaN(Gt)&&.5>Kt?yn:-yn),rr&&(Dt.y=-ki),Dt.rotate(Ye))}else Dt.rotate(Ye);ye+=Dt.x,Cn+=Dt.y,Fe.set(zt),Fe.h(ye+ie,Cn+Rt,zt.width,zt.height),yt.push(Fe),x.ed(Fe)}}if(tt!==null)for(E=tt.labelNodes;E.next();)E.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),Bs(b,x.width||0,x.height||0),Hn.free(At),jt.free(Bt),jt.free(Dt)}}}},x0.prototype.arrange=function(a,y){var x=y.length;if(a instanceof ai||a instanceof Ne){var E=a,b=null;a instanceof ai&&(b=a,E=b.adornedPart);var z=a instanceof ai?null:E.path,tt=a.j;if(tt.length!==0){var ot=0;if(z!==null&&ot=x)At=jt.alloc(),yt=ft,Dt=At,yt.vg(),yt.computeMidPoint(Dt),yt=ft.midAngle,at!==hs&&(ft=ft.computeAngle(tt,at,yt),tt.angle=ft),ft=At.x,Dt=At.y,jt.free(At);else{if(Bt=0,0<=ot?(At=y.s[ot],Dt=otRt+10?0<=ot?yt.ab(At):At.ab(yt):Rt>It+10?0<=ot?Dt.ab(Bt):Bt.ab(Dt):0<=ot?yt.ab(Bt):Bt.ab(yt)}else yt=0<=ot?At.ab(Dt):Dt.ab(At);at!==hs&&(ft=ft.computeAngle(tt,at,yt),tt.angle=ft),ft=At.x+(Dt.x-At.x)*rt,Dt=At.y+(Dt.y-At.y)*rt}if(mt.ys())tt.location=new jt(ft,Dt);else{mt.Mc()&&(mt=pi),At=Hn.alloc(),At.reset(),At.scale(tt.scale,tt.scale),At.rotate(tt.angle,0,0);var zt=tt.naturalBounds;Bt=ce.allocAt(0,0,zt.width,zt.height),It=jt.alloc(),It.xi(Bt,mt),At.Ga(It),mt=-It.x,Rt=-It.y;var Gt=zt.width,Kt=zt.height;zt=jt.alloc(),zt.assign(ut);var ie=isNaN(ut.x),Ue=isNaN(ut.y);if(ie||Ue){Gt=Gt/2+3,Kt=Kt/2+3;var tn=45<=yt&&135>=yt,Ye=225<=yt&&315>=yt;at===hs&&(tn||Ye)?(zt.x=Ue?Gt:ut.y,zt.y=ie?Kt:ut.x,tn?0<=ot||isNaN(ot)&&.5>rt||!ie||(zt.y=-Kt):Ye&&((0<=ot||isNaN(ot)&&.5>rt)&&ie&&(zt.y=-Kt),Ue&&(zt.x=-Gt))):(ie&&(zt.x=0<=ot||isNaN(ot)&&.5>rt?Gt:-Gt),Ue&&(zt.y=-Kt),zt.rotate(yt))}else zt.rotate(yt);ft+=zt.x,Dt+=zt.y,At.pp(Bt),mt+=Bt.x,Rt+=Bt.y,ot=jt.allocAt(ft+mt,Dt+Rt),tt.move(ot),jt.free(ot),jt.free(zt),jt.free(It),ce.free(Bt),Hn.free(At)}}b!==null?b.Ul(!1):E.Ul(!1),E=NA(a),a.location.h(a.position.x+E.x,a.position.y+E.y),jt.free(E)}};function iA(a,y,x,E){if($s(E)!==!1){var b=E.strokeWidth;b===0&&a instanceof ai&&a.type===Ie.Link&&a.adornedObject instanceof Nn&&(b=a.adornedObject.strokeWidth),b*=E.Ca,a instanceof Ne&&a.ua!==null?(a=a.geometry.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):a instanceof ai&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):E.Ge(-(b/2),-(b/2),y+b,x+b),b=E.desiredSize,b.w()||E.ua===null?E.dc.h(0,0,b.width,b.height):E.dc.assign(E.ua.bounds),Ho(E,!1)}}function zc(){this.xa="Base"}Ae(zc,Ko),zc.prototype.measure=function(a,y,x,E,b,z,tt){var ot=a.Pb();a.graduatedBounds=[];var rt=ot.margin,at=rt.right+rt.left,ut=rt.top+rt.bottom;ot.measure(y,x,z,tt);var ft=ot.measuredBounds,mt=new ce(-rt.left,-rt.top,Math.max(ft.width+at,0),Math.max(ft.height+ut,0));a.graduatedBounds.push(mt),b.assign(mt);for(var yt=ot.geometry,At=ot.strokeWidth,Bt=yt.flattenedSegments,Dt=yt.flattenedLengths,It=yt.flattenedTotalLength,Rt=Bt.length,zt=0,Gt=0,Kt=Jn(),ie=0;ieyn&&(yn+=360),tn.push(yn)}zt=ye,Gt=Cn}Kt.push(tn)}if(a.graduatedIntervals===null){for(var di=[],ki=a.O.s,rr=ki.length,hr=0;hreh)){for(var No=0;Noeh&&sr.push(Kr)}}}}}a.graduatedIntervals=di}var nh=a.graduatedIntervals,ia=a.O.s,Ta=ia.length,Xs=0,Ns=0,Vh=It;a.graduatedMarks=[];for(var hl,Hf=0;HfCp*Yr*It/a.graduatedRange&&Ws.graduatedSkip===null)){var Bg=Dt[0][0],El=0,Ts=0;Ns=It*Ws.graduatedStart-1e-4,Vh=It*Ws.graduatedEnd+1e-4;var Td=Cp*Yr,Vs=a.graduatedTickBase;if(Vsa.graduatedMin+Td&&(Vs-=Math.floor((Vs-a.graduatedMin)/Td)*Td);for(var zm=nh[Hf],Ep=Vs,Qy=1e-6*a.graduatedMax,Zl=1;Vs<=a.graduatedMax+Qy;Zl++){t:{for(var pu=zm.length,Lg=0;Lg-Gf){var Zh=!1;break t}}Zh=!0}if(Zh&&(Vs>a.graduatedMax&&(Vs=a.graduatedMax),Ws.graduatedSkip===null||Ws instanceof Ni&&!Ws.graduatedSkip(Vs,Ws)||Ws instanceof Nn&&!Ws.graduatedSkip(Vs,Ws))&&(Xs=(Vs-a.graduatedMin)*It/a.graduatedRange,Xs>It&&(Xs=It),Ns<=Xs&&Xs<=Vh)){for(var Jl=Kt[El][Ts],ih=Dt[El][Ts];ElBg&&Tsmu&&.4995mu?0mu||.9995Mg){var Xf=1-Math.abs(.5-mu);Jl=(dl*Xf+Ll*(1-Xf))%360;break t}}}Jl=dl}if(Ws instanceof Ni){var Ja="";Ws.graduatedFunction!==null?(Ja=Ws.graduatedFunction(Vs,Ws),Ja=Ja!=null?Ja.toString():""):Ja=(+Vs.toFixed(2)).toString(),Ja!==""&&hl.push({$l:Uf,angle:Jl,text:Ja})}else hl.push({$l:Uf,angle:Jl})}Vs=Ep+Zl*Td}}}a.graduatedMarks.push(hl)}ei(Kt);var Pr=a.graduatedMarks;if(Pr!==null)for(var Bp=E.length,ps=0;psqa;qa++){switch(qa){case 0:bs.h(yu,gl);break;case 1:bs.h(yu+Wf,gl);break;case 2:bs.h(yu,gl+Od);break;case 3:bs.h(yu+Wf,gl+Od)}bs.rotate(wo+To.angle),bs.offset(Gm,Kf),Vf===0&&qa===0?Aa.h(bs.x,bs.y,0,0):Aa.Ye(bs),bs.offset(-Gm,-Kf),bs.rotate(-wo-To.angle)}jt.free(bs),vu.graduatedBounds!==null&&vu.graduatedBounds.push(Aa),Co(oh,Aa.x,Aa.y,Aa.width,Aa.height)}else if(To instanceof Ni){var Da=a,Um=b;Da.temporaryTextBlock===null&&(Da.temporaryTextBlock=new Ni);var Ks=Da.temporaryTextBlock;yA(Ks,To);var rh=To.alignmentFocus;rh.Mc()&&(rh=Ys);for(var ba=To.segmentOrientation,Yf=To.segmentOffset,_h=new ce,Lp=0,Zf=0,Ml=0,jd=0,$h=0,Jf=ms.length,sh=0;shMl||225Ml)&&fl.rotate(-Ml,lh/2,Rd/2);var Ig=ce.allocAt(0,0,lh,Rd),uh=jt.alloc();uh.xi(Ig,rh),fl.Ga(uh);var Fg=-uh.x,Gy=-uh.y,Su=jt.alloc();Su.assign(Yf),isNaN(Su.x)&&(Su.x=lh/2+3),isNaN(Su.y)&&(Su.y=-(Rd/2+3)),Su.rotate(Ml),Lp+=Su.x+Fg,Zf+=Su.y+Gy;var zd=new ce(Lp,Zf,ah.width,ah.height),Mp=new ce(ah.x,ah.y,ah.width,ah.height),Uy=new ce(Au.x,Au.y,Au.width,Au.height);ql.Sz=jd,ql.lineCount=Ks.lineCount,ql.lines=[Ks.Cb,Ks.Ih,Ks.df,Ks.Le,Ks.Qc,Ks.Qb,Ks.ze],ql.actualBounds=zd,ql.measuredBounds=Mp,ql.naturalBounds=Uy,sh===0?_h.assign(zd):_h.ed(zd),jt.free(Su),jt.free(uh),ce.free(Ig),Hn.free(fl)}Da.graduatedBounds!==null&&Da.graduatedBounds.push(_h),Co(Um,_h.x,_h.y,_h.width,_h.height)}Ho(To,!1)}}},zc.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var E=a.Pb(),b=a.graduatedMarks;if(b!==null){var z=a.graduatedBounds,tt=0,ot=z[tt];tt++,E!==null&&E.arrange(ot.x-x.x,ot.y-x.y,ot.width,ot.height);for(var rt=y.length,at=0;at=tt&&(tt=1);for(var ot=z.actualBounds,rt=a.O.s,at=a.graduatedMarks,ut=rt.length,ft=0;fta.graduatedTickUnit*mt.interval*z.geometry.flattenedTotalLength/a.graduatedRange*tt&&mt.graduatedSkip===null)){var Bt=mt.measuredBounds,Dt=mt.strokeWidth*mt.scale,It=mt.alignmentFocus;It.Mc()&&(It=Ys);for(var Rt=0;Rttt.height)continue}else if(at.position>tt.width)continue;var ut=at.separatorStrokeWidth;isNaN(ut)&&(ut=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var ft=at.separatorStroke;if(ft===null&&(ft=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ut!==0&&ft!==null){xo(a,y,ft,!1,!1,tt,z),ft=!1;var mt=at.separatorDashArray;mt===null&&(mt=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),mt!==null&&(ft=!0,y.js(mt,0)),y.beginPath(),mt=at.position+ut,x?mt>tt.height&&(ut-=mt-tt.height):mt>tt.width&&(ut-=mt-tt.width),at=at.position+ut/2,y.lineWidth=ut,ut=a.yb,x?(at+=ut.top,mt=tt.width-ut.right,y.moveTo(ut.left,at),y.lineTo(mt,at)):(at+=ut.left,mt=tt.height-ut.bottom,y.moveTo(at,ut.top),y.lineTo(at,mt)),y.stroke(),y.Se(),ft&&y.fs()}}}}function P0(a,y,x,E,b){for(var z=E.length,tt=a.actualBounds,ot=a.naturalBounds,rt=rA(a,!0),at=rA(a,!1),ut=0;utmt)){var yt=ft.Wc(),At=ft.separatorStrokeWidth;isNaN(At)&&(At=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Bt=ft.separatorStroke;Bt===null&&(Bt=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Bt===null||ft.index===(x?rt:at))&&(At=0),yt-=At,At=ft.position+At,yt+=ft.actual,At+yt>mt&&(yt=mt-At),0>=yt||(mt=a.yb,xo(a,y,ft.background,!0,!1,ot,tt),x?y.fillRect(mt.left,At+mt.top,tt.width-(mt.left+mt.right),yt):y.fillRect(At+mt.left,mt.top,yt,tt.height-(mt.top+mt.bottom)))}}}}function rA(a,y){for(var x=y?a.rowCount:a.columnCount,E=0;EE&&b.set(At),jt.free(At)),jt.free(ut),z&&b.transform(tt),at},Pt.Gj=function(){for(var a=this.O.s,y=a.length,x=0;xx||z>E)&&(this.v(),this.measure(y>x?x:y,z>E?E:z,0,0));break;case Le:this.v(!0),this.measure(x+ot,E+tt,0,0);break;case sn:this.v(!0),this.measure(x+ot,z+tt,0,0);break;case vn:this.v(!0),this.measure(y+ot,E+tt,0,0)}}this.na.arrange(this,b,this.jg)}},Pt.gh=function(a){var y=this.naturalBounds,x=gu(this);if(Lr(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var E=y.length,b=jt.allocAt(0,0);E--;){var z=y[E];if((z.visible||z===x)&&(Lo(b.set(a),z.transform),z.ca(b)))return jt.free(b),!0}return jt.free(b),!(this.Ma===null&&this.areaBackground===null)}return!1},Pt.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,E=0;Emt.width||ft.y>mt.height||0>ft.x+ft.width||0>ft.y+ft.height||(ft=ut,ut=ut instanceof Ie?ut:null,mt=Hn.alloc(),mt.set(tt),(ut!==null?ut.Cf(a,y,x,E,b,mt):or(ft,a,E,mt))&&(y!==null&&(ft=y(ft)),ft===null||x!==null&&!x(ft)||b.add(ft)),Hn.free(mt))}}return z===void 0&&Hn.free(tt),E}return z===void 0&&Hn.free(tt),!1};function mv(a,y,x,E){for(var b=a.O.s,z=b.length;z--;){var tt=b[z];if(tt.visible){var ot=tt.actualBounds,rt=a.naturalBounds;ot.x>rt.width||ot.y>rt.height||0>ot.x+ot.width||0>ot.y+ot.height||(tt instanceof Ie&&mv(tt,y,x,E),y!==null&&(tt=y(tt)),tt===null||x!==null&&!x(tt)||E.add(tt))}}}Pt.og=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;x===void 0&&(x=null),E===void 0&&(E=null);var tt=this.naturalBounds,ot=this.se(),rt=ot?a:Lo(jt.allocAt(a.x,a.y),this.transform),at=ot?y:Lo(jt.allocAt(y.x,y.y),this.transform),ut=rt.Bf(at),ft=0Dt.width||Bt.y>Dt.height||0>Bt.x+Bt.width||0>Bt.y+Bt.height))&&(At.se()?(Bt=At.transform,Lo(rt.set(a),Bt),Lo(at.set(y),Bt)):(rt.set(a),at.set(y)),Bt=At,At=At instanceof Ie?At:null,(At!==null?At.og(rt,at,x,E,b,z):Bt.tx(rt,at,b))&&(x!==null&&(Bt=x(Bt)),Bt===null||E!==null&&!E(Bt)||z.add(Bt)))}}jt.free(rt),jt.free(at)}return b?ft:tt}return!1};function vv(a){var y=null;return a instanceof Nn&&(y=a.spot1,y===ar&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=yr),y}function yv(a){var y=null;return a instanceof Nn&&(y=a.spot2,y===ar&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=$r),y}Pt.add=function(a){for(var y=[],x=0;x=b.count&&a>=b.count)return;b.mb(z),E=z}else ee("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>b.count)&&(a=b.count),b.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),$s(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof Ie&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||C0(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof Xe&&(x.Te=!0),x.Te&&x instanceof Xe&&(x.wc=null),b=this.diagram,b!==null&&b.undoManager.isUndoingRedoing||(E!==-1&&x.cb(Vo,"elements",this,y,null,E,null),x.cb(Mo,"elements",this,null,y,null,a)))};function Av(a,y){a.l=y?a.l|16777216:a.l&-16777217}Pt.remove=function(a){for(var y=this.O.s,x=y.length,E=-1,b=0;ba&&Zn(a,">= 0",Ie,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Go;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(Mo,"rowdefs",this,null,x,null,a)}return y[a]},Pt.oA=function(a){if(0>a&&Zn(a,">= 0",Ie,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(Vo,"rowdefs",this,x,null,a,null),this.v()}}};function hA(a,y,x){var E=a.rowDefs;if(!(0>y)){if(E[y]=x instanceof Go?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Pt.Eb=function(a){0>a&&Zn(a,">= 0",Ie,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Go;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(Mo,"coldefs",this,null,x,null,a)}return y[a]},Pt.jA=function(a){if(0>a&&Zn(a,">= 0",Ie,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(Vo,"coldefs",this,x,null,a,null),this.v()}}};function dA(a,y,x){var E=a.colDefs;if(!(0>y)){if(E[y]=x instanceof Go?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Pt.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&E0(y,a),this},Pt.Hy=function(a,y){return(a=this.Fb(a))&&E0(a,new Go(y)),this},Pt.By=function(a,y){return(a=this.Eb(a))&&E0(a,new Go(y)),this},Pt.nz=function(a){if(0>a||this.type!==Ie.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,E=x.length,b=this.topIndex;ba||this.type!==Ie.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,E=x.length,b=this.leftIndex;ba;)this.pc(this.O.length-1,!1);fA(this,this.itemArray)};function fA(a,y){var x=Qc(a);if(y===null||y.length===0)for(;a.O.length>x;)a.pc(a.O.length-1,!1);else if(a.O.length<=x){x=y.length;for(var E=0;Ex)){var b=xv(a,y);if(b=Pv(a,b),b!==null){if(Ia(b),b=b.copy(),b.l&16777216){var z=a.ih();z!==null&&Av(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new xn),a.ge.add(y,b)),z=x+Qc(a),a.Gb(z,b),E&&(b.ub=y,Sv(a,z,x),b.ub=null),b.data=y}}}function Sv(a,y,x){for(a=a.O;ya&&Zn(a,">= 0",Ie,"padding"),a=new Rn(a)):(0>a.left&&Zn(a.left,">= 0",Ie,"padding:value.left"),0>a.right&&Zn(a.right,">= 0",Ie,"padding:value.right"),0>a.top&&Zn(a.top,">= 0",Ie,"padding:value.top"),0>a.bottom&&Zn(a.bottom,">= 0",Ie,"padding:value.bottom"));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.v(),this.g("padding",y,a))}},defaultAlignment:{get:function(){return this.Tm},set:function(a){var y=this.Tm;y.D(a)||(this.Tm=a=a.J(),this.v(),this.g("defaultAlignment",y,a))}},defaultStretch:{get:function(){return this.Uf},set:function(a){var y=this.Uf;y!==a&&(this.Uf=a,this.v(),this.g("defaultStretch",y,a))}},defaultSeparatorPadding:{get:function(){return this.T!==null?this.T.Qp:Ra},set:function(a){typeof a=="number"&&(a=new Rn(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new pa),this.T.Qp=a,this.v(),this.g("defaultSeparatorPadding",y,a))}},defaultRowSeparatorStroke:{get:function(){return this.T!==null?this.T.ia:null},set:function(a){var y=this.defaultRowSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof Si)&&(a instanceof Si&&a.freeze(),this.T===null&&(this.T=new pa),this.T.ia=a,this.N(),this.g("defaultRowSeparatorStroke",y,a))}},defaultRowSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.Ha:1},set:function(a){var y=this.defaultRowSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new pa),this.T.Ha=a,this.v(),this.g("defaultRowSeparatorStrokeWidth",y,a))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(a){var y=this.defaultRowSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;ba)&&ee("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new pa),this.T.Hb=a,this.v(),this.g("topIndex",y,a))}},leftIndex:{get:function(){return this.T!==null?this.T.hb:0},set:function(a){var y=this.leftIndex;y!==a&&((!isFinite(a)||0>a)&&ee("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new pa),this.T.hb=a,this.v(),this.g("leftIndex",y,a))}},data:{get:function(){return this.ub},set:function(a){var y=this.ub;if(y!==a){var x=this instanceof ln&&!(this instanceof ai);Ia(this),this.ub=a;var E=this.diagram;E!==null&&(x?(x=E.partManager,this instanceof Ne?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof ln&&(y!==null&&x.cf.remove(y),a!==null&&x.cf.add(a,this))):(x=this.panel,x!==null&&x.ge!==null&&(y!==null&&x.ge.remove(y),a!==null&&x.ge.add(a,this)))),this.g("data",y,a),E!==null&&E.undoManager.isUndoingRedoing||a!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(a){var y=this.zn;y!==a&&(this.zn=a,this.g("itemIndex",y,a))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new gg),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&yS(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&ly(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&ay(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||fA(this,a)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(a){if(this.itemTemplateMap===null){if(a===null)return;this.itemTemplateMap=new xn}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof ln||a.isPanelMain)&&ee("Panel.itemTemplate must not be a Part or be Panel.isPanelMain: "+a),this.itemTemplateMap.add("",a),this.g("itemTemplate",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv())}},itemTemplateMap:{get:function(){return this.A!==null?this.A.Pc:null},set:function(a){var y=this.itemTemplateMap;if(y!==a){for(var x=a.iterator;x.next(););On(this),this.A.Pc=a,this.g("itemTemplateMap",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv()}}},itemCategoryProperty:{get:function(){return this.A!==null?this.A.Oc:"category"},set:function(a){var y=this.itemCategoryProperty;y!==a&&(On(this),this.A.Oc=a,this.g("itemCategoryProperty",y,a))}},isAtomic:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("isAtomic",y,a))}},isClipping:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this instanceof Bn&&(this.tb=null),this.v(),this.g("isClipping",y,a))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(a){var y=(this.l&33554432)!==0;y!==a&&(this.l^=33554432,this.v(),this.g("isOpposite",y,a))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;if(y!==a){var x=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",y,a),y=this.diagram,y!==null&&y.undoManager.isUndoingRedoing||x&&C0(this,this,a)}}},alignmentFocusName:{get:function(){return this.$e},set:function(a){var y=this.$e;y!==a&&(this.$e=a,this.v(),this.g("alignmentFocusName",y,a))}}}),fe.Object.defineProperties(Ie,{Position:{get:function(){return Xa.I("Position")}},Horizontal:{get:function(){return Xa.I("Horizontal")}},Vertical:{get:function(){return Xa.I("Vertical")}},Spot:{get:function(){return Xa.I("Spot")}},Auto:{get:function(){return Xa.I("Auto")}},Table:{get:function(){return Xa.I("Table")}},Viewbox:{get:function(){return Xa.I("Viewbox")}},TableRow:{get:function(){return Xa.I("TableRow")}},TableColumn:{get:function(){return Xa.I("TableColumn")}},Link:{get:function(){return Xa.I("Link")}},Grid:{get:function(){return Xa.I("Grid")}},Graduated:{get:function(){return Xa.I("Graduated")}}}),Ie.prototype.rebuildItemElements=Ie.prototype.mv,Ie.prototype.findItemPanelForData=Ie.prototype.sx,Ie.prototype.updateTargetBindings=Ie.prototype.La,Ie.prototype.copyTemplate=Ie.prototype.Uy,Ie.prototype.graduatedValueForPoint=Ie.prototype.Gz,Ie.prototype.graduatedPointForValue=Ie.prototype.Fz,Ie.prototype.findColumnForLocalX=Ie.prototype.fz,Ie.prototype.findRowForLocalY=Ie.prototype.nz,Ie.prototype.addColumnDefinition=Ie.prototype.By,Ie.prototype.addRowDefinition=Ie.prototype.Hy,Ie.prototype.addRowColumnDefinition=Ie.prototype.Gy,Ie.prototype.removeColumnDefinition=Ie.prototype.jA,Ie.prototype.getColumnDefinition=Ie.prototype.Eb,Ie.prototype.removeRowDefinition=Ie.prototype.oA,Ie.prototype.getRowDefinition=Ie.prototype.Fb,Ie.prototype.removeAt=Ie.prototype.mb,Ie.prototype.remove=Ie.prototype.remove,Ie.prototype.insertAt=Ie.prototype.Gb,Ie.prototype.elt=Ie.prototype.M,Ie.prototype.add=Ie.prototype.add,Ie.prototype.findObject=Ie.prototype.fb,Ie.prototype.findInVisualTree=Ie.prototype.Nl,Ie.prototype.walkVisualTreeFrom=Ie.prototype.qm,Ie.prototype.findMainElement=Ie.prototype.Pb;var cA=!1,pA=null,Xa=new xn;Ie.className="Panel",Ie.definePanelLayout=wl,wl("Position",new d0),wl("Vertical",new f0),wl("Auto",new p0),wl("Link",new x0);function fu(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}fu.prototype.copy=function(){var a=new fu;return a.lq=this.lq,a.F=this.F,a.ia=this.ia,a.V=this.V,a.u=this.u,a.j=this.j,a.o=this.o,a.Zh=this.Zh,a},fu.className="GradPanelSettings";function pa(){this.Pc=[],this.Oc=[],this.j=this.ob=L0,this.hb=this.Hb=0,this.Qp=Ra,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}pa.prototype.copy=function(a){for(var y=new pa,x=this.Pc,E=x.length,b=y.Pc,z=0;za&&Zn(a,">= 0",Go,"height"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("height",y,a))}},width:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&Zn(a,">= 0",Go,"width"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("width",y,a))}},minimum:{get:function(){return this.jj},set:function(a){var y=this.jj;y!==a&&((0>a||!isFinite(a))&&Zn(a,">= 0",Go,"minimum"),this.jj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("minimum",y,a))}},maximum:{get:function(){return this.hj},set:function(a){var y=this.hj;y!==a&&(0>a&&Zn(a,">= 0",Go,"maximum"),this.hj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("maximum",y,a))}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(this.Jb=a.J(),this.panel!==null&&this.panel.v(),this.Ob("alignment",y,a))}},stretch:{get:function(){return this.hg},set:function(a){var y=this.hg;y!==a&&(this.hg=a,this.panel!==null&&this.panel.v(),this.Ob("stretch",y,a))}},separatorPadding:{get:function(){return this.dg},set:function(a){typeof a=="number"&&(a=new Rn(a));var y=this.dg;a!==null&&y!==null&&y.D(a)||(a!==null&&(a=a.J()),this.dg=a,this.panel!==null&&this.panel.v(),this.Ob("separatorPadding",y,a))}},separatorStroke:{get:function(){return this.lo},set:function(a){var y=this.lo;y!==a&&(a!==null&&cg(a,"RowColumnDefinition.separatorStroke"),a instanceof Si&&a.freeze(),this.lo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",y,a))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(a){var y=this.mo;y!==a&&(this.mo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",y,a))}},separatorDashArray:{get:function(){return this.tj},set:function(a){var y=this.tj;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;bb)){var z=E.measuredBounds,tt=Math.max(1,z.width);z=z.height;for(var ot=x[0],rt=x[1],at,ut,ft,mt,yt,At,Bt=0,Dt=Jn(),It=2;Itft&&(ft=1),b=x=ft,at=tt/2,ut=at!==0,It=0,At=Dt[It],ft=At[0],yt=At[1],mt=At[2],At=At[3];for(var Rt=0;.1<=Bt;){if(Rt===0&&(ut?(b=x,b-=at,Bt-=at,ut=!1):b=x,b===0&&(b=1)),b>Bt){ei(Dt);return}b>At?(Rt=b-At,b=At):Rt=0;var zt=Math.sqrt(b*b/(1+mt*mt));if(0>ft&&(zt=-zt),ot+=zt,rt+=mt*zt,a.translate(ot,rt),a.rotate(yt),a.translate(-(tt/2),-(z/2)),Rt===0&&E.hh(a,y),a.translate(tt/2,z/2),a.rotate(-yt),a.translate(-ot,-rt),Bt-=b,At-=b,Rt!==0){if(It++,It===Dt.length){ei(Dt);return}At=Dt[It],ft=At[0],yt=At[1],mt=At[2],At=At[3],b=Rt}}ei(Dt)}}Pt.hh=function(a,y){var x=this.xc,E=this.Ui;if(x!==null||E!==null){var b=this.ua;if(b!==null){a.yc();var z=this.actualBounds,tt=this.naturalBounds;E!==null&&xo(this,a,E,!0,!1,tt,z);var ot=this.part,rt=this.ig;if(x===null||rt!==0||ot===null||!this.isPanelMain&&ot.Pb()!==this||(rt=ot.type===Ie.Link&&ot instanceof ai&&ot.category==="Selection"&&ot.adornedObject instanceof Nn&&ot.adornedPart.Pb()===ot.adornedObject?ot.adornedObject.strokeWidth:0),rt===0&&(x=null),x!==null&&rt!==0&&(xo(this,a,x,!1,!1,tt,z),a.lineWidth=rt,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,ot&&y.Gf("drawShadows")&&(z=ot.isShadowed),a.Il===!1&&(z=!1),ot=!0,x===null||E!==null&&E!=="transparent"||(ot=!1),tt=!1,rt=this.strokeDashArray,rt!==null&&(tt=!0,a.js(rt,this.strokeDashOffset)),b.type===be.j)a.beginPath(),a.moveTo(b.startX,b.startY),a.lineTo(b.endX,b.endY),x!==null&&a.jk(),a.Se();else if(b.type===be.u){var at=b.startX;rt=b.startY;var ut=b.endX,ft=b.endY;b=Math.min(at,ut);var mt=Math.min(rt,ft);at=Math.abs(ut-at),rt=Math.abs(ft-rt),a.beginPath(),a.rect(b,mt,at,rt),E!==null&&a.ng(E),x!==null&&(ot&&z&&zl(a),a.jk(),ot&&z&&uu(a)),a.Se()}else if(b.type===be.F)at=b.startX,rt=b.startY,ut=b.endX,ft=b.endY,b=Math.abs(ut-at)/2,mt=Math.abs(ft-rt)/2,at=Math.min(at,ut)+b,rt=Math.min(rt,ft)+mt,a.beginPath(),a.moveTo(at,rt-mt),a.bezierCurveTo(at+Jt.wg*b,rt-mt,at+b,rt-Jt.wg*mt,at+b,rt),a.bezierCurveTo(at+b,rt+Jt.wg*mt,at+Jt.wg*b,rt+mt,at,rt+mt),a.bezierCurveTo(at-Jt.wg*b,rt+mt,at-b,rt+Jt.wg*mt,at-b,rt),a.bezierCurveTo(at-b,rt-Jt.wg*mt,at-Jt.wg*b,rt-mt,at,rt-mt),a.closePath(),E!==null&&a.ng(E),x!==null&&(ot&&z&&zl(a),a.jk(),ot&&z&&uu(a)),a.Se();else if(b.type===be.o)for(b=b.figures,rt=b.length,mt=0;mtBt.sweepAngle,yt!==null?yt.endX:at.startX,yt!==null?yt.endY:at.startY)}else if(yt=Rs(Bt,at),Dt=yt.length,Dt===0)a.lineTo(Bt.centerX,Bt.centerY);else for(var It=0;It(x.startX-x.endX)*(a.x-x.endX)+(x.startY-x.endY)*(a.y-x.endY)||0>E)?!1:(ce.free(z),Jt.Yb(x.startX,x.startY,x.endX,x.endY,b,a.x,a.y));if(x.type===be.u){y=x.startX;var tt=x.startY,ot=x.endX;if(x=x.endY,z.x=Math.min(y,ot),z.y=Math.min(tt,x),z.width=Math.abs(ot-y),z.height=Math.abs(x-tt),this.fill===null){if(z.Bc(-E,-E),z.ca(a))return ce.free(z),!1;z.Bc(E,E)}return this.stroke!==null&&z.Bc(b,b),a=z.ca(a),ce.free(z),a}if(x.type===be.F){tt=x.startX,b=x.startY,ot=x.endX;var rt=x.endY;if(x=Math.min(tt,ot),y=Math.min(b,rt),tt=Math.abs(ot-tt)/2,b=Math.abs(rt-b)/2,x=a.x-(x+tt),y=a.y-(y+b),this.fill===null){if(tt-=E,b-=E,0>=tt||0>=b||1>=x*x/(tt*tt)+y*y/(b*b))return ce.free(z),!1;tt+=E,b+=E}return this.stroke!==null&&(tt+=E,b+=E),ce.free(z),0>=tt||0>=b?!1:1>=x*x/(tt*tt)+y*y/(b*b)}if(x.type===be.o)return ce.free(z),this.fill===null?fh(x,a.x,a.y,b):tu(x,a,b,1=this.strokeWidth)ut=Jt.Ve(at.startX,at.startY,at.endX,at.endY,z,tt,ot,rt,b);else{if(at.startX===at.endX?(E=ft,ut=0):(y=(at.endY-at.startY)/(at.endX-at.startX),ut=ft/Math.sqrt(1+y*y),E=ut*y),y=Jn(),a=new jt,Jt.Ve(at.startX+E,at.startY+ut,at.endX+E,at.endY+ut,z,tt,ot,rt,a)&&y.push(a),a=new jt,Jt.Ve(at.startX-E,at.startY-ut,at.endX-E,at.endY-ut,z,tt,ot,rt,a)&&y.push(a),a=new jt,Jt.Ve(at.startX+E,at.startY+ut,at.startX-E,at.startY-ut,z,tt,ot,rt,a)&&y.push(a),a=new jt,Jt.Ve(at.endX+E,at.endY+ut,at.endX-E,at.endY-ut,z,tt,ot,rt,a)&&y.push(a),ot=y.length,ot===0)return ei(y),!1;for(ut=!0,rt=1/0,E=0;EMath.abs(x)){if(rt=tt-ut-x*(z-E),0>a*a*x*x+at*at-rt*rt){b.x=NaN,b.y=NaN,ut=!1;break t}ft=Math.sqrt(a*a*x*x+at*at-rt*rt),ot=(-(a*a*x*rt)+a*at*ft)/(at*at+a*a*x*x)+E,a=(-(a*a*x*rt)-a*at*ft)/(at*at+a*a*x*x)+E,at=x*(ot-E)+rt+ut,rt=x*(a-E)+rt+ut,Math.abs((z-ot)*(z-ot))+Math.abs((tt-at)*(tt-at))ot){b.x=NaN,b.y=NaN,ut=!1;break t}rt=Math.sqrt(ot),ot=ut+rt,rt=ut-rt,Math.abs(ot-tt)Math.abs(At)?(Bt*=.5/At,At=.5):Bt!==0&&.5>Math.abs(Bt)&&(At*=.5/Bt,Bt=.5),It-=At,Rt-=Bt;yt.contains(It,Rt);)It-=At,Rt-=Bt;for(b.x=ot,b.y=rt,Bt=0;Btx?a-x:x-a)<(y>E?y-E:E-y)?(a=ya||Jt.$(rt.y,a))&&(rt.yy||Jt.$(rt.x,y))&&(rt.x=a&&E<=y):(a=E&&x<=a)}Pt.tx=function(a,y,x){function E(Dt,It){for(var Rt=Dt.length,zt=0;ztb)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var b=a.Bf(y),z=b;if(1.5=b||ra(y,z,0,-ft)>=b||ra(y,z,0,ft)>=b||ra(y,z,ut,0)>=b)}else if(y.type===be.o){if(at=y.bounds,z=at.x,ot=at.y,rt=at.x+at.width,at=at.y+at.height,a.x>rt&&a.xat&&a.yb&&qo(a.x,a.y,z,ot,rt,ot)>b&&qo(a.x,a.y,rt,at,z,at)>b&&qo(a.x,a.y,rt,at,rt,ot)>b)return!1;if(z=Math.sqrt(b),x){if(this.fill===null?fh(y,a.x,a.y,z):tu(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;yb)return!1;for(ot=z.segments.s,rt=ot.length,at=0;atb)return!1;break;case kr:var mt=Jn();if(Jt.Qe(tt,ut,ft.point1X,ft.point1Y,ft.point2X,ft.point2Y,ft.endX,ft.endY,.8,mt),tt=E(mt,a),ei(mt),tt||(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>b))return!1;break;case Zs:if(mt=Jn(),Jt.ep(tt,ut,ft.point1X,ft.point1Y,ft.endX,ft.endY,.8,mt),tt=E(mt,a),ei(mt),tt||(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>b))return!1;break;case Ro:case aa:mt=ft.type===Ro?Rs(ft,z):Ca(ft,z,tt,ut);var yt=mt.length;if(yt===0){if(tt=ft.type===Ro?ft.centerX:ft.endX,ut=ft.type===Ro?ft.centerY:ft.endY,a.zd(tt,ut)>b)return!1;break}ft=null;for(var At=Jn(),Bt=0;Bt= 0",Nn,"strokeWidth:value")}},strokeCap:{get:function(){return this.Na!==null?this.Na.Hr:"butt"},set:function(a){var y=this.strokeCap;y!==a&&(typeof a!="string"||a!=="butt"&&a!=="round"&&a!=="square"?Zn(a,'"butt", "round", or "square"',Nn,"strokeCap"):(Bd(this),this.Na.Hr=a,this.N(),this.g("strokeCap",y,a)))}},strokeJoin:{get:function(){return this.Na!==null?this.Na.Ir:"miter"},set:function(a){var y=this.strokeJoin;y!==a&&(typeof a!="string"||a!=="miter"&&a!=="bevel"&&a!=="round"?Zn(a,'"miter", "bevel", or "round"',Nn,"strokeJoin"):(Bd(this),this.Na.Ir=a,this.N(),this.g("strokeJoin",y,a)))}},strokeMiterLimit:{get:function(){return this.Na!==null?this.Na.Jr:10},set:function(a){var y=this.strokeMiterLimit;if(y!==a&&1<=a){Bd(this),this.Na.Jr=a,this.N();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeMiterLimit",y,a)}}},strokeDashArray:{get:function(){return this.Yg},set:function(a){var y=this.Yg;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;ba?a=0:1a?a=0:1(ft*ft+ut*ut)*mt*mt&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof Hs&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,ft=this.spacingBelow,this.flip){case oi:a.translate(b,0),a.scale(-1,1);break;case zn:a.translate(0,z),a.scale(1,-1);break;case Ei:a.translate(b,z),a.scale(-1,-1)}if(a.yc(),ut=this.Gc,mt=(y+tt+ft)*ut,z>mt&&(E=this.verticalAlignment,E=E.y*z-E.y*mt+E.offsetY),ut===1&&this.ze!==null)ft=this.Cb,ft>b&&(ft=b),this.Oj(this.ze,a,0,E+y,b,tt,ft,x,ot,rt,at);else if(this.Qc!==null&&this.Qb!==null)for(mt=0;mtb&&(yt=b),E+=y,this.Oj(this.Qb[mt],a,0,E,b,tt,yt,x,ot,rt,at),E+=tt+ft}switch(this.flip){case oi:a.scale(-1,1),a.translate(-b,0);break;case zn:a.scale(1,-1),a.translate(0,-z);break;case Ei:a.scale(-1,-1),a.translate(-b,-z)}}},Pt.Oj=function(a,y,x,E,b,z,tt,ot,rt,at,ut){var ft=0;if(ot)rt==="left"?ft=0:rt==="right"?ft=b-tt:rt==="center"&&(ft=(b-tt)/2),y.fillRect(x+ft,E+.25*z,tt,1);else{if(rt==="left"?ft=0:rt==="right"?ft=b:rt==="center"&&(ft=b/2),b=I0!==null?I0(this,z):.75*z,y.fillText(a,x+ft,E+b),a=z/20|0,a===0&&(a=1),rt==="right"?ft-=tt:rt==="center"&&(ft-=tt/2),at){ot=F0!==null?F0(this,z):.8*z,rt=x+ft,at=E+ot,b=x+ft+tt,ot=E+ot;var mt=a;y.beginPath(),y.lineWidth=mt,y.moveTo(rt,at),y.lineTo(b,ot),y.stroke(),y.Se(),y instanceof Hs&&y.ad.classList.add("gojs-td")}ut&&(ut=E+z-z/2.2|0,a%2!==0&&(ut+=.5),E=x+ft,z=ut,x=x+ft+tt,tt=ut,ft=a,y.beginPath(),y.lineWidth=ft,y.moveTo(E,z),y.lineTo(x,tt),y.stroke(),y.Se(),y instanceof Hs&&y.ad.classList.add("gojs-td"))}},Pt.kk=function(a,y,x){if(!Yt.prototype.kk.call(this,a,y,x))return!1;if(xo(this,a,this.xc,!0,!1,this.naturalBounds,this.actualBounds),x){if(this.svg.getElementsByTagName("text").length===0)return!0;for(y=this.svg.getElementsByClassName("gojs-td"),x=0;xa.transactionLevel&&yo("Ending transaction without having started a transaction: "+x);var E=a.transactionLevel===1,b=a.currentTransaction;E&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,b));var z=0;if(0=E&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),E===0||y.count!==0&&y.get(y.count-1)===b||(y.add(b),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,b);else{a.Fe=!0;try{a.isEnabled&&b!==null&&(b.isComplete=!0,b.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,b),a.Fe=!1}b!==null&&b.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&b!==null){for(a=z,x=b.changes,b=x.count-1;b>=a;b--)y=x.M(b),y!==null&&y.undo(),x.ka(),x.mb(b);x.freeze()}return!1}Pt.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var a=this.history;a.ka();for(var y=a.count-1;y>this.historyIndex;y--){var x=a.M(y);x!==null&&x.clear(),a.mb(y),this.rq=!0}a.freeze()}},ho.prototype.canUndo=function(){if(!this.isEnabled||0=this.transactionLevel&&!this.tt&&(a=a.diagram,a!==null&&a.pi===!1||yo("Change not within a transaction: "+x.toString()))}},ho.prototype.skipsEvent=function(a){if(a===null||0>a.change.value)return!0;if(a=a.object,a===null)return!1;if(a.layer!==void 0){if(a=a.layer,a!==null&&a.isTemporary)return!0}else if(a.isTemporary)return!0;return!1},fe.Object.defineProperties(ho.prototype,{models:{get:function(){return this.Pt.iterator}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},transactionToUndo:{get:function(){return 0<=this.historyIndex&&this.historyIndex<=this.history.count-1?this.history.M(this.historyIndex):null}},transactionToRedo:{get:function(){return this.historyIndexb||Math.abs(y.y-a.y)>E},fe.Object.defineProperties(si.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof oe&&(this.H=a)}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},isActive:{get:function(){return this.nb},set:function(a){this.nb=a}},transactionResult:{get:function(){return this.wm},set:function(a){this.wm=a}}}),si.prototype.startTransaction=si.prototype.Ea,si.className="Tool";function no(){si.call(this),this.name="ToolManager",this.hb=new He,this.ob=new He,this.Hb=new He,this.F=this.V=850,this.o=new We(2,2).ja(),this.Ha=5e3,this.ia=od,this.u=zg,this.Mp=this.j=null,this.zj=-1}Ae(no,si),no.prototype.initializeStandardTools=function(){},no.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof ai&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},no.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===nu&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===ph){y.bubbles=!0;return}if(this.gestureBehavior===nu)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,E=0;Eb.right&&(x.x-=E.width+5/y.scale),x.xb.bottom?x.y-(E.height+5/y.scale):x.y+20/y.scale,x.yx.pointsCount)){var E=a.diagram;if(!E.isReadOnly){var b=a.Oe;if(b!==null){var z=null,tt=null;x.fromNode===null&&(z=Op(a,x.i(0),!1),z!==null&&(tt=z.part));var ot=null,rt=null;x.toNode===null&&(ot=Op(a,x.i(x.pointsCount-1),!0),ot!==null&&(rt=ot.part)),b.isValidLink(tt,z,rt,ot)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=tt,z!==null&&(x.fromPortId=z.portId),x.toNode=rt,ot!==null&&(x.toPortId=ot.portId),x.fromPort!==E.Mx&&E.R("LinkRelinked",x,E.Mx),x.toPort!==E.Nx&&E.R("LinkRelinked",x,E.Nx)):Gg(b,tt,z,rt,ot):Gg(b,null,null,null,null)}}}}fo.prototype.doDragOver=function(){};function ku(a,y){var x=a.diagram;a.dragsLink&&Mu(a,!0),mh(a);var E=a.findDragOverObject(y),b=x.lastInput;if(b.targetObject=E,E!==null){b.handled=!1;for(var z=E;z!==null;){var tt=z.mouseDrop;if(tt!==null&&(tt(b,z),b.handled))break;Jm(a,b,z),z=ec(z)}}else z=x.mouseDrop,z!==null&&z(b);if(a.isActive||Ar!==null){for(b=(a.copiedParts||a.draggedParts).iterator;b.next();)z=b.key,z instanceof Xe&&z.linksConnected.each(function(ot){ot.suspendsRouting=!1});if(a.doDropOnto(y,E),a.isActive||Ar!==null){for(a=ce.alloc(),y=x.selection.iterator;y.next();)E=y.value,E instanceof Xe&&qm(x,E,a);ce.free(a)}}}function Jm(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof Bn||(x=a.mouseDrop,x!==null&&x(y))}function qm(a,y,x){var E=!1;if(x=y.getAvoidableRect(x),a.viewportBounds.Re(x)&&(E=!0),a=a.Nu(x,function(b){return b.part},function(b){return b instanceof Ne},!0,function(b){return b instanceof Ne},E),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}fo.prototype.doDropOnto=function(){},fo.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;this.simulatedMouseMove(y.event,y.documentPoint,y.targetDiagram)||this.currentPart===null||this.draggedParts===null||(this.mayCopy()?(iu(this,!1),nf(a,this.copiedParts),yl(this,this.copiedParts,!1),Mh(a,this.copiedParts)):this.mayMove()?(za(this),yl(this,this.draggedParts,!0)):this.mayDragOut()?(iu(this,!1),yl(this,this.copiedParts,!1)):za(this),Hg(this,a.lastInput.documentPoint))}},fo.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;if(!this.simulatedMouseUp(y.event,y.documentPoint,y.targetDiagram)){y=!1;var x=this.mayCopy();if(x&&this.copiedParts!==null?(za(this),iu(this,!0),nf(a,this.copiedParts),yl(this,this.copiedParts,!1),Mh(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0}))):(y=!0,za(this),this.mayMove()&&(yl(this,this.draggedParts,!0),Hg(this,a.lastInput.documentPoint))),this.Ym=!0,ku(this,a.lastInput.documentPoint),this.isActive){var E=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&_m(this),a.Ya(),Mh(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",E)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},fo.prototype.simulatedMouseMove=function(a,y,x){if(Ar===null)return!1;var E=Ar.diagram;x instanceof oe||(x=null);var b=Iu;return x!==b&&(b!==null&&b!==E&&(b.ug(),Ar.isDragOutStarted=!1,b=b.toolManager.findTool("Dragging"),b!==null&&b.doSimulatedDragLeave()),Iu=x,x!==null&&x!==E&&($f(),b=x.toolManager.findTool("Dragging"),b!==null&&(Tl.contains(b)||Tl.add(b),b.doSimulatedDragEnter())),this.doUpdateCursor(null)),x===null||x===E||!x.allowDrop||x.isReadOnly||!x.allowInsert?!1:(E=x.toolManager.findTool("Dragging"),E!==null&&(a!==null&&(a.targetTouches!==void 0&&(0tt&&(tt=at),ut>ot&&(ot=ut))}}for(E===1/0?z.h(0,0,0,0):z.h(E,b,tt-E,ot-b),E=z.x+z.width/2,b=z.y+z.height/2,ce.free(z),z=a.Fr,tt=new xn,ot=jt.alloc(),rt=y.iterator;rt.next();)at=rt.value,at instanceof Ne&&at.canCopy()&&(ut=x.I(at),ut!==null&&(ut.points=at.points,Zu(ut,z.x-E,z.y-b),ut.suspendsRouting=!0,tt.add(ut,a.Pd())));for(y=y.iterator;y.next();)at=y.value,at.Zc()&&at.canCopy()&&(rt=x.I(at),rt!==null&&(at=at.location,ot.h(z.x-(E-at.x),z.y-(b-at.y)),rt.location=ot,rt.Va(),tt.add(rt,a.Pd(ot))));jt.free(ot),a.copiedParts=tt,Qg(a,tt.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Zu(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}fo.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},fo.prototype.computeMove=function(a,y,x,E){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,E):new jt},fe.Object.defineProperties(fo.prototype,{isCopyEnabled:{get:function(){return this.ob},set:function(a){this.ob=a}},copiesEffectiveCollection:{get:function(){return this.u},set:function(a){this.u=a}},dragOptions:{get:function(){return this.ia},set:function(a){this.ia=a}},isGridSnapEnabled:{get:function(){return this.dragOptions.isGridSnapEnabled},set:function(a){this.dragOptions.isGridSnapEnabled=a}},isComplexRoutingRealtime:{get:function(){return this.hb},set:function(a){this.hb=a}},isGridSnapRealtime:{get:function(){return this.dragOptions.isGridSnapRealtime},set:function(a){this.dragOptions.isGridSnapRealtime=a}},gridSnapCellSize:{get:function(){return this.dragOptions.gridSnapCellSize},set:function(a){this.dragOptions.gridSnapCellSize.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSize=a)}},gridSnapCellSpot:{get:function(){return this.dragOptions.gridSnapCellSpot},set:function(a){this.dragOptions.gridSnapCellSpot.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSpot=a)}},gridSnapOrigin:{get:function(){return this.dragOptions.gridSnapOrigin},set:function(a){this.dragOptions.gridSnapOrigin.D(a)||(a=a.J(),this.dragOptions.gridSnapOrigin=a)}},dragsLink:{get:function(){return this.dragOptions.dragsLink},set:function(a){this.dragOptions.dragsLink=a}},dragsTree:{get:function(){return this.dragOptions.dragsTree},set:function(a){this.dragOptions.dragsTree=a}},copyCursor:{get:function(){return this.F},set:function(a){this.F=a}},moveCursor:{get:function(){return this.Oc},set:function(a){this.Oc=a}},nodropCursor:{get:function(){return this.Pc},set:function(a){this.Pc=a}},currentPart:{get:function(){return this.V},set:function(a){this.V=a}},copiedParts:{get:function(){return this.o},set:function(a){this.o=a}},draggedParts:{get:function(){return this.Ha},set:function(a){this.Ha=a}},draggingParts:{get:function(){return this.copiedParts!==null?this.copiedParts.Lf():this.draggedParts!==null?this.draggedParts.Lf():this.te}},draggedLink:{get:function(){return this.diagram.draggedLink},set:function(a){this.diagram.draggedLink=a}},isDragOutStarted:{get:function(){return this.Hb},set:function(a){this.Hb=a}},startPoint:{get:function(){return this.Fr},set:function(a){this.Fr.D(a)||this.Fr.assign(a)}},delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}}}),fo.prototype.getDraggingSource=fo.prototype.Az;var Ar=null,Iu=null;fo.className="DraggingTool",Tl=new He,Ui("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),no.prototype.doCancel=function(){Ar!==null&&Ar.doCancel(),si.prototype.doCancel.call(this)};function Po(){si.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Ne,y=new Nn;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Nn,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new Xe,y=new Nn,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=ji,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new Xe,y=new Nn,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=ji,a.add(y),a.selectable=!1,a.layerName="Tool",this.Di=a,this.o=y,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new xn,this.Of=this.gj=this.Pf=null}Ae(Po,si),Po.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},Po.prototype.copyPortProperties=function(a,y,x,E,b){if(a!==null&&y!==null&&x!==null&&E!==null){var z=y.Df(),tt=We.alloc();tt.width=y.naturalBounds.width*z,tt.height=y.naturalBounds.height*z,E.desiredSize=tt,We.free(tt),b?(E.toSpot=y.toSpot,E.toEndSegmentLength=y.toEndSegmentLength):(E.fromSpot=y.fromSpot,E.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=pi,z=jt.alloc(),x.location=y.ga(pi,z),jt.free(z),E.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,E,b)}},Po.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=ji,y.fromSpot=er,y.toSpot=er),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},Po.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},Po.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof Xe){var y=this.targetPort.part;this.isForwards?this.copyPortProperties(y,this.targetPort,this.temporaryToNode,this.temporaryToPort,!0):this.copyPortProperties(y,this.targetPort,this.temporaryFromNode,this.temporaryFromPort,!1)}else this.isForwards?this.setNoTargetPortProperties(this.temporaryToNode,this.temporaryToPort,!0):this.setNoTargetPortProperties(this.temporaryFromNode,this.temporaryFromPort,!1);(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},Po.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof Xe))return null;for(;a!==null;){var E=y?a.toLinkable:a.fromLinkable;if(E===!0&&(a.portId!==null||a instanceof Xe)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(E===!1)break;a=a.panel}return null},Po.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,E=this.portGravity;0>=E&&(E=.1);var b=this,z=y.og(x,E,function(ft){return b.findValidLinkablePort(ft,a)},null,!0);for(E=1/0,y=null,z=z.iterator;z.next();){var tt=z.value,ot=tt.part;if(ot instanceof Xe){var rt=tt.ga(pi,jt.alloc()),at=x.x-rt.x,ut=x.y-rt.y;jt.free(rt),rt=at*at+ut*ut,rtx){if(this.originalLink!==null&&a===this.originalFromNode&&y===this.originalFromPort)return!0;if(y=y.portId,y===null&&(y=""),a.Mo(y).count>=x)return!1}return!0},Po.prototype.isValidTo=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.toLinkable!==!0))return!1;var x=y.toMaxLinks;if(1/0>x){if(this.originalLink!==null&&a===this.originalToNode&&y===this.originalToPort)return!0;if(y=y.portId,y===null&&(y=""),a.Sd(y).count>=x)return!1}return!0},Po.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},Po.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof Xe))return!1;a=a.portId,a===null&&(a="");var E=y.part;if(!(E instanceof Xe))return!1;for(y=y.portId,y===null&&(y=""),y=E.Sd(y);y.next();)if(E=y.value,E.fromNode===x&&E.fromPortId===a)return!0;return!1},Po.prototype.isValidLink=function(a,y,x,E){if(!this.isValidFrom(a,y)||!this.isValidTo(x,E)||!(y===null||E===null||(y.fromLinkableSelfNode&&E.toLinkableSelfNode||!this.isInSameNode(y,E))&&(y.fromLinkableDuplicates&&E.toLinkableDuplicates||!this.isLinked(y,E)))||this.originalLink!==null&&(a!==null&&this.isLabelDependentOnLink(a,this.originalLink)||x!==null&&this.isLabelDependentOnLink(x,this.originalLink))||a!==null&&x!==null&&(a.data===null&&x.data!==null||a.data!==null&&x.data===null)||!this.isValidCycle(a,x,this.originalLink))return!1;if(a!==null){var b=a.linkValidation;if(b!==null&&!b(a,y,x,E,this.originalLink))return!1}return x!==null&&(b=x.linkValidation,b!==null&&!b(a,y,x,E,this.originalLink))?!1:(b=this.linkValidation,b!==null?b(a,y,x,E,this.originalLink):!0)},Po.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var x=a.labeledLink;if(x===null)return!1;if(x===y)return!0;var E=new ze;return E.add(a),Ur(this,x,y,E)};function Ur(a,y,x,E){if(y===x)return!0;var b=y.fromNode;return b!==null&&b.isLinkLabel&&(E.add(b),Ur(a,b.labeledLink,x,E))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(E.add(y),Ur(a,y.labeledLink,x,E))))}Po.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var E=this.diagram.validCycle;if(E!==ag){if(E===Nc){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=y.linksConnected;E.next();){var b=E.value;if(b!==x&&b.isTreeLink&&b.toNode===y)return!1}return!ts(this,a,y,x,!0)}if(E===Tc){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=a.linksConnected;E.next();)if(b=E.value,b!==x&&b.isTreeLink&&b.fromNode===a)return!1;return!ts(this,a,y,x,!0)}if(E===kc)return a===y?a=!0:(E=new ze,E.add(y),a=es(this,E,a,y,x)),!a;if(E===Ic)return!ts(this,a,y,x,!1);if(E===Fc)return a===y?a=!0:(E=new ze,E.add(y),a=rd(this,E,a,y,x)),!a}return!0};function ts(a,y,x,E,b){if(y===x)return!0;if(y===null||x===null)return!1;for(var z=y.linksConnected;z.next();){var tt=z.value;if(tt!==E&&(!b||tt.isTreeLink)&&tt.toNode===y&&(tt=tt.fromNode,tt!==y&&ts(a,tt,x,E,b)))return!0}return!1}function es(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==b&&tt.toNode===x&&(tt=tt.fromNode,tt!==x&&es(a,y,tt,E,b)))return!0}return!1}function rd(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==b){var ot=tt.fromNode;if(tt=tt.toNode,ot=ot===x?tt:ot,ot!==x&&rd(a,y,ot,E,b))return!0}}return!1}fe.Object.defineProperties(Po.prototype,{portGravity:{get:function(){return this.te},set:function(a){0<=a&&(this.te=a)}},isUnconnectedLinkValid:{get:function(){return this.Ha},set:function(a){this.Ha=a}},linkingCursor:{get:function(){return this.u},set:function(a){this.u=a}},temporaryLink:{get:function(){return this.Ci},set:function(a){this.Ci=a}},temporaryFromNode:{get:function(){return this.Bi},set:function(a){(this.Bi=a)&&(this.j=a.port)}},temporaryFromPort:{get:function(){return this.j},set:function(a){if(this.j!==null){var y=this.j.panel;if(y!==null){var x=y.O.indexOf(this.j);y.mb(x),y.Gb(x,a)}}this.j=a}},temporaryToNode:{get:function(){return this.Di},set:function(a){(this.Di=a)&&(this.o=a.port)}},temporaryToPort:{get:function(){return this.o},set:function(a){if(this.o!==null){var y=this.o.panel;if(y!==null){var x=y.O.indexOf(this.o);y.mb(x),y.Gb(x,a)}}this.o=a}},originalLink:{get:function(){return this.Hb},set:function(a){this.Hb=a}},originalFromNode:{get:function(){return this.hb},set:function(a){this.hb=a}},originalFromPort:{get:function(){return this.ob},set:function(a){this.ob=a}},originalToNode:{get:function(){return this.Oc},set:function(a){this.Oc=a}},originalToPort:{get:function(){return this.Pc},set:function(a){this.Pc=a}},isForwards:{get:function(){return this.ia},set:function(a){this.ia=a}},validPortsCache:{get:function(){return this.hy}},targetPort:{get:function(){return this.Pf},set:function(a){this.Pf=a}},linkValidation:{get:function(){return this.gj},set:function(a){this.gj=a}},portTargeted:{get:function(){return this.Of},set:function(a){this.Of=a}}}),Po.className="LinkingBaseTool";function ns(){Po.call(this),this.name="Linking",this.V={},this.F=null,this.K=vh,this.Xd=null}Ae(ns,Po),ns.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return a.isReadOnly||a.isModelReadOnly||!a.allowLink||!a.model.xs()||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize()?!1:this.findLinkablePort()!==null},ns.prototype.findLinkablePort=function(){var a=this.diagram,y=this.startObject;if(y===null&&(y=a.ic(a.firstInput.documentPoint,null,null)),y===null||(a=y.part,!(a instanceof Xe)))return null;var x=this.direction;if(x===vh||x===Rp){var E=this.findValidLinkablePort(y,!1);if(E!==null||this.startObject===a&&(E=a.port,this.findValidLinkablePort(E,!1)))return this.isForwards=!0,E}return(x===vh||x===zp)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},ns.prototype.doActivate=function(){var a=this.diagram,y=this.findLinkablePort();y===null?this.stopTool():(this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.isForwards?(this.temporaryToNode!==null&&(this.temporaryToNode.location=a.lastInput.documentPoint),this.originalFromPort=y,y=this.originalFromPort.part,y instanceof Xe&&(this.originalFromNode=y),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(this.temporaryFromNode!==null&&(this.temporaryFromNode.location=a.lastInput.documentPoint),this.originalToPort=y,y=this.originalToPort.part,y instanceof Xe&&(this.originalToNode=y),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),a.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),a.add(this.temporaryToNode),this.temporaryToNode&&this.temporaryToNode.Va(),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0)},ns.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},ns.prototype.doStop=function(){Po.prototype.doStop.call(this),this.startObject=null},ns.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,E=null,b=null,z=null;try{var tt=this.targetPort=this.findTargetPort(this.isForwards);if(tt!==null){var ot=tt.part;ot instanceof Xe&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),E=ot,b=tt):(y=ot,x=tt,this.originalToNode!==null&&(E=this.originalToNode,b=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(E=this.originalToNode,b=this.originalToPort);y!==null||E!==null?(z=this.insertLink(y,x,E,b),z!==null?(tt===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),z.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",z)):this.doNoLink(y,x,E,b)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),z&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},ns.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof Ne)return a.isTreeLink;var y=this.diagram;return y===null?!0:(a=y.partManager.getLinkCategoryForData(a),y=y.partManager.findLinkTemplateForCategory(a),y!==null?y.isTreeLink:!0)},ns.prototype.insertLink=function(a,y,x,E){return this.diagram.partManager.insertLink(a,y,x,E)},ns.prototype.doNoLink=function(){},fe.Object.defineProperties(ns.prototype,{archetypeLinkData:{get:function(){return this.V},set:function(a){this.V=a}},archetypeLabelNodeData:{get:function(){return this.F},set:function(a){this.F=a}},direction:{get:function(){return this.K},set:function(a){this.K=a}},startObject:{get:function(){return this.Xd},set:function(a){this.Xd=a}}});var vh=new Ee(ns,"Either",0),Rp=new Ee(ns,"ForwardsOnly",0),zp=new Ee(ns,"BackwardsOnly",0);ns.className="LinkingTool",ns.Either=vh,ns.ForwardsOnly=Rp,ns.BackwardsOnly=zp;function Js(){Po.call(this),this.name="Relinking";var a=new Nn;a.figure="Diamond",a.desiredSize=_o,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Nn,a.figure="Diamond",a.desiredSize=_o,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new ce}Ae(Js,Po),Js.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Ne){var y="RelinkFrom",x=null;if(a.isSelected&&!this.diagram.isReadOnly){var E=a.selectionObject;E!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null&&(x=this.makeAdornment(E,!1),a.bh(y,x)))}x===null&&a.Jf(y),y="RelinkTo",x=null,a.isSelected&&!this.diagram.isReadOnly&&(E=a.selectionObject,E!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null?(x=this.makeAdornment(E,!0),a.bh(y,x)):x.v())),x===null&&a.Jf(y)}},Js.prototype.makeAdornment=function(a,y){var x=new ai;return x.type=Ie.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},Js.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowRelink||!a.model.xs()||!a.lastInput.left)return!1;var y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom");return y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo")),y!==null},Js.prototype.doActivate=function(){var a=this.diagram;if(this.originalLink===null){var y=this.handle;if(y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom"),y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo"))),y===null)return;var x=y.part;if(!(x instanceof ai&&x.adornedPart instanceof Ne))return;this.handle=y,this.isForwards=x===null||x.category==="RelinkTo",this.originalLink=x.adornedPart}this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.originalFromPort=this.originalLink.fromPort,this.originalFromNode=this.originalLink.fromNode,this.originalToPort=this.originalLink.toPort,this.originalToNode=this.originalLink.toNode,this.Ew.set(this.originalLink.actualBounds),this.originalLink!==null&&0y.firstPickIndex+1&&x=x.x)y=0>=x.y?y+225:1<=x.y?y+135:y+180;else if(1<=x.x)0>=x.y?y+=315:1<=x.y&&(y+=45);else if(0>=x.y)y+=270;else if(1<=x.y)y+=90;else break t;0>y?y+=360:360<=y&&(y-=360),a.cursor=22.5>y?"e-resize":67.5>y?"se-resize":112.5>y?"s-resize":157.5>y?"sw-resize":202.5>y?"w-resize":247.5>y?"nw-resize":292.5>y?"n-resize":337.5>y?"ne-resize":"e-resize"}else if(a instanceof Ie)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},br.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowResize&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},br.prototype.doActivate=function(){var a=this.diagram;this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null&&(this.adornedObject=this.handle.part.adornedObject,this.adornedObject!==null&&(a.isMouseCaptured=!0,a.animationManager.Cc(),this.Ea(this.name),this.Xq.set(this.adornedObject.ga(this.handle.alignment.gv())),this.Tn.set(this.adornedObject.part.location),this.Dw.set(this.adornedObject.desiredSize),this.pt=this.computeCellSize(),this.rt=this.computeMinSize(),this.qt=this.computeMaxSize(),this.isActive=!0))},br.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},br.prototype.stopTransaction=function(){var a=this.diagram,y=si.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},br.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},br.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,jt.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),a.bd(),jt.free(b)}},br.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,jt.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),jt.free(b),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},br.prototype.resize=function(a){var y=this.diagram,x=this.adornedObject;if(x!==null){if(x.desiredSize=a.size,a=x.part,a.Va(),x=x.ga(this.handle.alignment.gv()),a instanceof Bn){var E=new He;if(E.add(a),!this.dragsMembers&&a.placeholder===null){var b=new st;b.dragsMembers=!1}y.moveParts(E,this.oppositePoint.copy().re(x),!0,b)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},br.prototype.computeResize=function(a,y,x,E,b,z){y.Mc()&&(y=pi);var tt=this.adornedObject.naturalBounds,ot=tt.x,rt=tt.y,at=tt.x+tt.width,ut=tt.y+tt.height,ft=1;if(!z){ft=tt.width;var mt=tt.height;0>=ft&&(ft=1),0>=mt&&(mt=1),ft=mt/ft}return mt=jt.alloc(),Jt.No(a.x,a.y,ot,rt,b.width,b.height,mt),a=tt.copy(),0>=y.x?0>=y.y?(a.x=Math.max(mt.x,at-E.width),a.x=Math.min(a.x,at-x.width),a.width=Math.max(at-a.x,x.width),a.y=Math.max(mt.y,ut-E.height),a.y=Math.min(a.y,ut-x.height),a.height=Math.max(ut-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width),a.x=at-a.width,a.y=ut-a.height)):1<=y.y?(a.x=Math.max(mt.x,at-E.width),a.x=Math.min(a.x,at-x.width),a.width=Math.max(at-a.x,x.width),a.height=Math.max(Math.min(mt.y-rt,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width),a.x=at-a.width)):(a.x=Math.max(mt.x,at-E.width),a.x=Math.min(a.x,at-x.width),a.width=at-a.x,z||(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft,a.y=rt+.5*(ut-rt-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(mt.x-ot,E.width),x.width),a.y=Math.max(mt.y,ut-E.height),a.y=Math.min(a.y,ut-x.height),a.height=Math.max(ut-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width),a.y=ut-a.height)):1<=y.y?(a.width=Math.max(Math.min(mt.x-ot,E.width),x.width),a.height=Math.max(Math.min(mt.y-rt,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width))):(a.width=Math.max(Math.min(mt.x-ot,E.width),x.width),z||(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft,a.y=rt+.5*(ut-rt-a.height))):0>=y.y?(a.y=Math.max(mt.y,ut-E.height),a.y=Math.min(a.y,ut-x.height),a.height=ut-a.y,z||(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width,a.x=ot+.5*(at-ot-a.width))):1<=y.y&&(a.height=Math.max(Math.min(mt.y-rt,E.height),x.height),z||(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width,a.x=ot+.5*(at-ot-a.width))),jt.free(mt),a},br.prototype.computeReshape=function(){var a=we;return this.adornedObject instanceof Nn&&(a=Cv(this.adornedObject)),!(a===en||this.diagram.lastInput.shift)},br.prototype.computeMinSize=function(){var a=this.adornedObject.minSize.copy(),y=this.minSize;return!isNaN(y.width)&&y.width>a.width&&(a.width=y.width),!isNaN(y.height)&&y.height>a.height&&(a.height=y.height),a},br.prototype.computeMaxSize=function(){var a=this.adornedObject.maxSize.copy(),y=this.maxSize;return!isNaN(y.width)&&y.widthx?x+=360:360<=x&&(x-=360),x=Math.round(45*Math.round(x/45));var E=this.handleDistance;return x===0?y.x=a.naturalBounds.width+E:x===45?(y.x=a.naturalBounds.width+E,y.y=a.naturalBounds.height+E):x===90?y.y=a.naturalBounds.height+E:x===135?(y.x=-E,y.y=a.naturalBounds.height+E):x===180?y.x=-E:x===225?(y.x=-E,y.y=-E):x===270?y.y=-E:x===315&&(y.x=a.naturalBounds.width+E,y.y=-E),a.ga(y)},is.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new jt(NaN,NaN),this.isActive=a.isMouseCaptured=!1},is.prototype.stopTransaction=function(){var a=this.diagram,y=si.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},is.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},is.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},is.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){a.delaysLayout=!1;var y=this.computeRotate(a.lastInput.documentPoint);this.rotate(y),a.Ya(),this.transactionResult=this.name,a.R("PartRotated",this.adornedObject,this.originalAngle)}this.stopTool()},is.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var x=y.locationObject,E=y.rotateObject;(x===E||x.rg(E))&&(x=this.Tn.copy(),y.location=x.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},is.prototype.computeRotate=function(a){a=this.rotationPoint.ab(a)-this.handleAngle;var y=this.adornedObject.panel;y!==null&&(a-=y.li()),360<=a?a-=360:0>a&&(a+=360),y=Math.min(Math.abs(this.snapAngleMultiple),180);var x=Math.min(Math.abs(this.snapAngleEpsilon),y/2);return!this.diagram.lastInput.shift&&0y-x&&(a=(Math.floor(a/y)+1)*y)),360<=a?a-=360:0>a&&(a+=360),a},fe.Object.defineProperties(is.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof ai))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof ai)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},snapAngleMultiple:{get:function(){return this.ia},set:function(a){this.ia=a}},snapAngleEpsilon:{get:function(){return this.V},set:function(a){this.V=a}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(a){this.kr=a.copy()}},handleAngle:{get:function(){return this.u},set:function(a){this.u=a}},handleDistance:{get:function(){return this.F},set:function(a){this.F=a}}}),is.className="RotatingTool",Ui("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function yh(){si.call(this),this.name="ClickSelecting"}Ae(yh,si),yh.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},yh.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},yh.className="ClickSelectingTool";function Ea(){si.call(this),this.name="Action",this.pk=null}Ae(Ea,si),Ea.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,x=a.ic(y.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E});return x!==null&&x.isActionable?(this.pk=x,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},Ea.prototype.doMouseDown=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionDown!==null&&y.actionDown(a,y))}else this.canStart()&&this.doActivate()},Ea.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionMove!==null&&y.actionMove(a,y))}},Ea.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;if(y===null)return;a.targetObject=y,y.actionUp!==null&&y.actionUp(a,y),this.standardMouseClick(function(x){for(;x.panel!==null&&(!x.isActionable||x!==y);)x=x.panel;return x},function(x){return x===y})}this.stopTool()},Ea.prototype.doCancel=function(){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionCancel!==null&&y.actionCancel(a,y),this.stopTool())},Ea.prototype.doStop=function(){this.pk=null},Ea.className="ActionTool";function Du(){si.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new jt(0,0)}Ae(Du,si),Du.prototype.canStart=function(){if(!this.isEnabled||this.archetypeNodeData===null)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.lastInput.left||this.isBeyondDragSize())return!1;if(this.isDoubleClick){if(a.lastInput.clickCount===1&&(this.mw=a.lastInput.viewPoint.copy()),a.lastInput.clickCount!==2||this.isBeyondDragSize(this.mw))return!1}else if(a.lastInput.clickCount!==1)return!1;return!(a.currentTool!==this&&a.Ol(a.lastInput.documentPoint,!0)!==null)},Du.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},Du.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var E=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof ln)x.Zc()&&(Ia(x),E=x.copy(),E!==null&&y.add(E));else if(x!==null){var b=y.model.copyNodeData(x);Pe(b)&&(y.model.xf(b),E=y.Lc(b))}if(E!==null){var z=jt.allocAt(a.x,a.y);this.isGridSnapEnabled&&ef(this.diagram,E,a,z),E.location=z,y.allowSelect&&(y.clearSelection(!0),E.isSelected=!0),jt.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",E)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return E},fe.Object.defineProperties(Du.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){this.Ri=a}},isDoubleClick:{get:function(){return this.o},set:function(a){this.o=a}},isGridSnapEnabled:{get:function(){return this.j},set:function(a){this.j=a}}}),Du.className="ClickCreatingTool";function la(){si.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new ln;a.layerName="Tool",a.selectable=!1;var y=new Nn;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}Ae(la,si),la.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(!a.allowSelect)return!1;var y=a.lastInput;return!(!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.timestamp-a.firstInput.timestampb.right&&(x.x-=E.width+5/y.scale),x.xb.bottom&&(x.y-=E.height+5/y.scale),x.ya.lastInput.clickCount)):!1},Hi.prototype.doStart=function(){Ou=this,this.textBlock!==null&&this.doActivate()},Hi.prototype.doActivate=function(){if(!this.isActive){var a=this.diagram;if(a!==null){var y=this.textBlock;if(y===null&&(y=a.ic(a.lastInput.documentPoint)),y!==null&&y instanceof Ni&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=Yd;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var E=new ce(this.textBlock.ga(yr),this.textBlock.ga(ms));a.tv(E),x.show(y,a,this),this.currentTextEditor=x}}}},Hi.prototype.doCancel=function(){this.stopTool()},Hi.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Hi.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Sl)},Hi.prototype.acceptText=function(a){switch(a){case Sl:this.qa===ud?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===Yd||this.qa===Jd||this.qa===Zd)&&(this.qa=oc,ic(this));break;case Xg:case Kd:case Wg:(Kd!==a||this.textBlock.isMultiline!==!0)&&(this.qa===Yd||this.qa===Jd||this.qa===Zd)&&(this.qa=oc,ic(this))}};function ic(a){var y=a.textBlock,x=a.diagram,E=a.currentTextEditor;if(y!==null&&E!==null){var b=y.text,z="";E.valueFunction!==null&&(z=E.valueFunction()),a.isValidText(y,b,z)?(a.Ea(a.name),a.qa=ud,a.transactionResult=a.name,y.text=z,a.doSuccess(b,z),x!==null&&x.R("TextEdited",y,b),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=Jd,a.doError(b,z))}}Hi.prototype.doError=function(a,y){var x=this.textBlock;x.errorFunction!==null&&x.errorFunction(this,a,y),(a=this.currentTextEditor)&&a.show(x,this.diagram,this)},Hi.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},Hi.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=ld,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},Hi.prototype.doStop=function(){Ou=null},Hi.prototype.isValidText=function(a,y,x){var E=this.textValidation;return E!==null&&!E(a,y,x)?!1:(E=a.textValidation,!!(E===null||E(a,y,x)))},Hi.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},fe.Object.defineProperties(Hi.prototype,{textBlock:{get:function(){return this.ia},set:function(a){this.ia=a}},currentTextEditor:{get:function(){return this.o},set:function(a){this.o=a}},defaultTextEditor:{get:function(){return this.j},set:function(a){this.j=a}},starting:{get:function(){return this.V},set:function(a){this.V=a}},textValidation:{get:function(){return this.vj},set:function(a){this.vj=a}},minimumEditorScale:{get:function(){return this.u},set:function(a){this.u=a}},selectsTextOnActivate:{get:function(){return this.F},set:function(a){this.F=a}},state:{get:function(){return this.qa},set:function(a){this.qa!==a&&(this.qa=a)}}}),Hi.prototype.measureTemporaryTextBlock=Hi.prototype.Lx;var Xg=new Ee(Hi,"LostFocus",0),Sl=new Ee(Hi,"MouseDown",1),Wg=new Ee(Hi,"Tab",2),Kd=new Ee(Hi,"Enter",3),$m=new Ee(Hi,"SingleClick",0),ad=new Ee(Hi,"SingleClickSelected",1),Vg=new Ee(Hi,"DoubleClick",2),ld=new Ee(Hi,"StateNone",0),Yd=new Ee(Hi,"StateActive",1),Zd=new Ee(Hi,"StateEditing",2),oc=new Ee(Hi,"StateValidating",3),Jd=new Ee(Hi,"StateInvalid",4),ud=new Ee(Hi,"StateValidated",5),Ou=null;Hi.className="TextEditingTool",Hi.LostFocus=Xg,Hi.MouseDown=Sl,Hi.Tab=Wg,Hi.Enter=Kd,Hi.SingleClick=$m,Hi.SingleClickSelected=ad,Hi.DoubleClick=Vg,Hi.StateNone=ld,Hi.StateActive=Yd,Hi.StateEditing=Zd,Hi.StateValidating=oc,Hi.StateInvalid=Jd,Hi.StateValidated=ud,Ui("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function Qs(a){_d||(rc(),_d=!0),this.H=bl,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=su,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new ze,this.ce=new Fr,this.ce.Yd=this,this.Ei=new ze,this.pu=new ze,this.Sr=new ze,this.pr=new ze,a&&Object.assign(this,a)}Qs.prototype.Xe=function(a){this.H=a},Qs.prototype.canStart=function(){return!0};function Dl(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),Nr(a.H),a.zb=!0)}function Kg(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,E=a.Zd.contains("Model");E&&(a.Ok=!0,a.Pk===su?(y.isViewportUnconstrained=!0,y.vc.clear(),y.add(x,"position",x.position.copy().offset(0,-200),x.position),y.add(x,"opacity",0,1)):a.Pk===sc&&y.vc.clear(),a.Qw=!!(a.Pk===$d&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),E&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),tg(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,E=y.vc.get(x),x.autoScale!==Xr&&E!==null&&(delete E.start.scale,delete E.end.scale),Ke.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&ys(x),dc(x),a.zb=!1,y.start(),y.bc&&(ju(a),x.Ya(),ac(y,0),ha(x,!0),Sh(a),x.R("AnimationStarting",a)))}))}}function ru(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function Yg(a,y,x,E){a.isTicking||ru(a)||y instanceof Ne&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,E,!1)}Pt=Qs.prototype,Pt.fv=function(a){return this.ce.fv(a)},Pt.Xu=function(a){return this.ce.Xu(a)};function Zg(a,y){function x(){if(0z?z+=360:rt+=360),z=b(x,z,rt-z,E)%360,tt=b(x,tt,at-tt,E),ot=b(x,ot,ut-ot,E),x=b(x,a,y-a,E),"hsla("+z+", "+tt+"%, "+ot+"%, "+x+")"}function rc(){function a(x,E,b,z,tt,ot){x.position=new jt(z(tt,E.x,b.x-E.x,ot),z(tt,E.y,b.y-E.y,ot))}var y=new xn;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,E,b,z,tt,ot){tta&&Zn(a,">= 1",Qs,"duration"),this.Dg=a}},isAnimating:{get:function(){return this.bc}},isTicking:{get:function(){return this.vq}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a}},defaultAnimation:{get:function(){return this.ce}},activeAnimations:{get:function(){return this.Ei}},initialAnimationStyle:{get:function(){return this.Pk},set:function(a){this.Pk=a}}}),Qs.prototype.stopAnimation=Qs.prototype.Cc;var qd=null,_d=!1,su=new Ee(Qs,"Default",1),$d=new Ee(Qs,"AnimateLocations",2),sc=new Ee(Qs,"None",3);Qs.className="AnimationManager",Qs.defineAnimationEffect=function(a,y){_d||(rc(),_d=!0),qd.add(a,y)},Qs.Default=su,Qs.AnimateLocations=$d,Qs.None=sc;function Fr(a){this.vu=this.Nw=this.Yd=this.H=null,this.Xk=this.bc=this.j=!1,this.cn=this.Qd=0,this.Lp=this.ot=hd,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=Dr,this.vc=new xn,this.Tt=new xn,this.yl=new ze,this.Ut=new ze,this.dw=Hu,a&&Object.assign(this,a)}Fr.prototype.suspend=function(){this.Xk=!0},Fr.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,eg(this,!0),ju(this.Yd),ha(this.H),Sh(this.Yd),this.H.redraw()};function tg(a,y){if(a.Tt.clear(),a.Wk=!1,a.au=0,a.Gd=NaN,0a.cn?a.Gd:E-a.Qd;y&&(b=a.gw,ba.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function ac(a,y){for(var x=a.Gd,E=a.vc.iterator,b=a.Wk;E.next();){var z=E.key;if(!(z instanceof Yt&&z.diagram===null)){var tt=E.value,ot=b?tt.end:tt.start;tt=b?tt.start:tt.end;var rt=qd,at;for(at in tt)at==="position"&&(tt["position:placeholder"]||tt["position:nodeCollapse"])||rt.get(at)===null||rt.get(at)(z,ot[at],tt[at],a.Lp,y,x,a)}}}Pt.stop=function(){return this.bc?(this.Ml(!0),this):this},Pt.Ml=function(a){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var y=this.H,x=this.Yd;this.Xk=this.bc=x.Ok=!1,ju(x);for(var E=this.vc,b=this.yl.iterator;b.next();)y.remove(b.value);for(b=this.Ut.iterator;b.next();)b.value.v();b=this.ho,E=E.iterator;for(var z=qd;E.next();){var tt=E.key,ot=E.value,rt=b?ot.end:ot.start,at=b?ot.start:ot.end,ut=ot.Ku,ft;for(ft in at)if(z.get(ft)!==null){var mt=ft;!ot.Hu||mt!=="position:nodeCollapse"&&mt!=="position:placeholder"||(mt="position"),z.get(mt)(tt,rt[ft],ut[ft]!==void 0?ut[ft]:ot.Hu?rt[ft]:at[ft],this.Lp,this.Gd,this.Gd,this)}ot.Hu&&ut.location!==void 0&&tt instanceof ln&&(tt.location=ut.location),ot.nv&&tt instanceof ln&&tt.Zb(!1)}if(y.As.clear(),ng(y,!1),y.Ya(),y.N(),ha(y,!0),x.defaultAnimation===this){for(ft=x.pr.iterator;ft.next();)b=ft.value,b.Tg!==null&&(b.points=b.Tg,b.Tg=null);x.pr.clear()}ha(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),Sh(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),tg(this,null),x.Ml(this),y.$b())}},Pt.Cj=function(a,y){var x=y.actualBounds,E=null;if(y instanceof Bn&&(E=y.placeholder),E!==null?(x=E.ga(yr),E=E.padding,x.x+=E.left,x.y+=E.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new jt(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof Bn)for(a=a.memberParts;a.next();)E=a.value,E instanceof Xe&&this.Cj(E,y)},Pt.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof Bn&&(x=y.placeholder),x!==null){var E=x.ga(yr);x=x.padding,E.x+=x.left,E.y+=x.top,this.add(a,"position:placeholder",a.position,E,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),E=this.vc,E.contains(a)&&(E.I(a).nv=!0),a instanceof Bn)for(a=a.memberParts;a.next();)E=a.value,E instanceof Xe&&this.Aj(E,y)}},Pt.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},fe.Object.defineProperties(Fr.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Zn(a,">= 1",Fr,"duration"),this.Dg=a}},reversible:{get:function(){return this.ho},set:function(a){this.ho=a}},runCount:{get:function(){return this.cu},set:function(a){0a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Gp(a,y,x,E){return a===E?y+x:x*(-Math.pow(2,-10*a/E)+1)+y}Fr.className="Animation",Fr.EaseLinear=function(a,y,x,E){return x*a/E+y},Fr.EaseInOutQuad=hd,Fr.EaseInQuad=function(a,y,x,E){return x*(a/=E)*a+y},Fr.EaseOutQuad=function(a,y,x,E){return-x*(a/=E)*(a-2)+y},Fr.EaseInExpo=function(a,y,x,E){return a===0?y:x*Math.pow(2,10*(a/E-1))+y},Fr.EaseOutExpo=Gp;function wh(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}wh.className="AnimationState";function Ha(a,y,x){this.xd=null,this.rf=a,this.so=x||lc,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=Ch))}Ha.prototype.copy=function(){var a=new Ha(this.rf);a.so=this.so;var y=this.uk;if(y!==null){var x={};y.duration!==void 0&&(x.duration=y.duration),y.finished!==void 0&&(x.finished=y.finished),y.easing!==void 0&&(x.easing=y.easing),a.uk=x}return a};function Up(a,y){a=a.uk,a!==null&&(a.duration&&(y.duration=a.duration),a.finished&&(y.finished=a.finished),a.easing&&(y.easing=a.easing))}fe.Object.defineProperties(Ha.prototype,{propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},animationSettings:{get:function(){return this.uk},set:function(a){this.uk=a}},startCondition:{get:function(){return this.so},set:function(a){this.so=a}}});var lc=new Ee(Ha,"Default",1),Ch=new Ee(Ha,"Immediate",2),dd=new Ee(Ha,"Bundled",3);Ha.className="AnimationTrigger",Ha.Default=lc,Ha.Immediate=Ch,Ha.Bundled=dd;function fr(a){eo(this),this.H=null,this.Pa=new He,this.xa="",this.pb=1,this.o=!1,this.j=this.Uh=this.u=this.Oi=this.Ni=this.Mi=this.Li=this.Ji=this.Ki=this.Ii=this.Qi=this.Hi=this.Pi=this.Gi=this.Fi=!0,this.Zq=[],a&&Object.assign(this,a)}Pt=fr.prototype,Pt.clear=function(){for(var a=this.Pa,y=0;y=a)return y;for(var x=0,E=0,b=0,z=0,tt=0,ot=this.Pa.iterator;ot.next();){var rt=ot.value;rt instanceof Bn?b++:rt instanceof Xe?E++:rt instanceof Ne?z++:rt instanceof ai?tt++:x++}if(ot="",0x.Oq||ot.height*b>x.Oq?y.gc(a,x):(b=y.actualBounds,z=y.naturalBounds,b.width===0||b.height===0||isNaN(b.x)||isNaN(b.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(xo(y,a,y.areaBackground,!0,!0,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.areaBackground===null&&y.background===null&&(xo(y,a,"rgba(0,0,0,0.3)",!0,!1,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),xo(y,a,y.background,!0,!1,z,b),a.fillRect(0,0,z.width/2,z.height/2),x.ws()||(y=1/(x.m11*x.m22-x.m12*x.m21),a.transform(x.m22*y,-x.m12*y,-x.m21*y,x.m11*y,y*(x.m21*x.dy-x.m22*x.dx),y*(x.m12*x.dx-x.m11*x.dy)))))),E&&(a.restore(),a.Vc(!0))}},Pt.g=function(a,y,x,E,b){var z=this.diagram;z!==null&&z.cb(ro,a,this,y,x,E,b)},Pt.oi=function(a,y,x){var E=this.Pa;if(y.Ig=this,this===null&&Qr(y),a>=E.count)a=E.count;else if(E.M(a)===y)return-1;return E.Gb(a,y),y.Vo(x),E=this.diagram,E!==null&&(x?E.N():E.oi(y)),qg(this,a,y),a},Pt.pc=function(a,y,x){if(!x&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,x);var E=this.Pa;if(0>a||a>=E.length){if(a=E.indexOf(y),0>a)return-1}else if(E.M(a)!==y&&(a=E.indexOf(y),0>a))return-1;return y.Wo(x),E.mb(a),E=this.diagram,E!==null&&(x?E.N():E.pc(y)),y.Ig=null,Qr(y),a};function qg(a,y,x){if(y=Wp(a,y,x),x instanceof Bn&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var E=-1,b=a.Pa.s,z=b.length,tt=0;ttE&&ot.containingGroup===x&&(E=tt,0<=y))break}!(0>E)&&E=b)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var z=y-1,tt=NaN;0<=z&&(tt=a.M(z).zOrder,!!isNaN(tt));)z--;for(var ot=y+1,rt=NaN;otE)for(;;){if(z===-1||tt<=E){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(tt=NaN;0<=--z&&(tt=a.M(z).zOrder,isNaN(tt)););}else if(!isNaN(rt)&&rt=E){if(ot--,ot===y)break;return a.mb(y),a.Gb(ot,x),ot}for(rt=NaN;++ota||1=a)return y;for(var x=this.Wa.iterator;x.next();)y+=` + `+x.value.toString(a-1);return y};function hc(a,y){if(Ao){if(y!=null||ee("Diagram setup requires an argument DIV."),a.Ka!==null&&ee("Diagram has already completed setup."),typeof y=="string"?a.Ka=Ke.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:ee("No DIV or DIV id supplied: "+y),a.Ka===null&&ee("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&ee("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Ke.ResizeObserver){var x=Yi(function(){a.$b()},250);a.ol=new Ke.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}Ke.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var E="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=E,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=Ke.go;var b=new ka(a);if(b.style!==void 0&&(b.style.position="absolute",b.style.top="0px",b.style.left="0px",Ke.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),b.style.zIndex="2",b.style.userSelect="none",b.style.MozUserSelect="none",b.style.touchAction="none",b.style.letterSpacing="normal !important",b.style.wordSpacing="normal !important"),a.ta=b,a.ib=b.context,E=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),yc(a,a.Aa,a.ya),a.Ka.insertBefore(b.Oa,a.Ka.firstChild),b=new ka(null),b.width=1,b.height=1,a.jw=b,a.oy=b.context,Ao){b=po("div");var z=po("div");b.style.position="absolute",b.style.overflow="auto",b.style.width=a.Aa+"px",b.style.height=a.ya+"px",b.style.zIndex="1",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(b),b.appendChild(z),b.onscroll=Jp,b.addEventListener("pointerdown",qp),b.H=a,b.uy=!0,b.vy=!0,a.ku=b,a.hu=z}a.hk=Yi(function(){a.Yh=null,a.N()},300),a.Ov=Yi(function(){dc(a)},250),a.preventDefault=function(tt){return tt.preventDefault(),!1},a.$j=function(tt){if(a.isEnabled){var ot=ua(a,tt,!0);ot.bubbles=!0;var rt=0,at=0;ot.delta=0,tt.deltaX!==void 0?(tt.deltaX!==0&&(rt=0Math.abs(tt.deltaY)?-rt:-at):tt.wheelDeltaX!==void 0?(tt.wheelDeltaX!==0&&(rt=0Math.abs(tt.wheelDeltaY)?-rt:-at):tt.wheelDelta!==void 0&&tt.wheelDelta!==0&&(ot.delta=0ot||Math.abs(at.y-tt.screenY)>ot)?a.yq++:a.yq=1,rt.clickCount=a.yq,a.tw=tt.timeStamp,a.uw.sg(tt.screenX,tt.screenY),a.doMouseDown(),tt.button===1?tt.preventDefault():Ga(rt,tt)}},a.dk=function(tt){if(a.isEnabled){a.Vk=!0;var ot=a.oj;if(ot[0]===null||ot[0].pointerId!==tt.pointerId&&ot[0].pointerType===tt.pointerType){if(ot[1]!==null&&ot[1].pointerId===tt.pointerId){ot[1]=tt;return}if(ot[0]===null)ot[0]=tt;else return}else ot[0]=tt;if(ot[0].pointerId===tt.pointerId){ot=pc(a,tt,!1,!1,!1,ot[1]!==null);var rt=Ke.document.elementFromPoint(tt.clientX,tt.clientY)||null;rt!==null&&rt.shadowRoot!==void 0&&rt.shadowRoot!==null&&(rt=rt.shadowRoot.elementFromPoint(tt.clientX,tt.clientY));var at=a,ut=tt;rt&&rt.H&&(ut=tt,at=rt.H),ot.targetDiagram=at,fd(a,ut,ot),ot.targetObject=null,a.doMouseMove(),Ga(ot,tt)}}},a.fk=function(tt){if(a.isEnabled){a.Vk=!0;var ot=tt.pointerType==="touch"||tt.pointerType==="pen",rt=a.Yt;if(ot&&a.qu)delete rt[tt.pointerId],tt.preventDefault();else if(rt=a.oj,rt[0]===null||rt[0].pointerId!==tt.pointerId&&rt[0].pointerType===tt.pointerType)rt[1]!==null&&rt[1].pointerId===tt.pointerId&&(rt[1]=null);else{rt[0]=null,rt=pc(a,tt,!1,!0,!0,!1);var at=Ke.document.elementFromPoint(tt.clientX,tt.clientY)||null;at!==null&&at.shadowRoot!==void 0&&at.shadowRoot!==null&&(at=at.shadowRoot.elementFromPoint(tt.clientX,tt.clientY)),at!==null&&at.H instanceof oe&&at.H!==a&&fd(at.H,tt,rt),at===null&&(at=tt.target),fd(a,tt,rt),rt.clickCount=a.yq,rt.targetDiagram=cc(tt,at),rt.targetObject=null,a.doMouseUp(),Ga(rt,tt),ot&&(a.wq=!1)}}},a.ek=function(tt){if(a.isEnabled){a.Vk=!1;var ot=a.Yt;ot[tt.pointerId]&&delete ot[tt.pointerId],ot=a.oj,ot[0]!==null&&ot[0].pointerId===tt.pointerId&&(ot[0]=null),ot[1]!==null&&ot[1].pointerId===tt.pointerId&&(ot[1]=null),tt.pointerType!=="touch"&&tt.pointerType!=="pen"&&(tt=a.currentTool,tt.cancelWaitAfter(),tt.standardMouseOver())}},a.ck=function(tt){var ot=a.oj;ot[0]!==null&&ot[0].pointerId===tt.pointerId?(ot[0]=null,a.wq=!1):ot[1]!==null&&ot[1].pointerId===tt.pointerId&&(ot[1]=null)},a.Vp=E.Z["d"+hg[1]+hg[2]+"wI"+Sd.slice(1,5)]["b"+NS.slice(1,y)](E.Z,ug,y,y),E.Vc(!0),tv(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}oe.prototype.addEventListener=function(a,y,x,E){a.addEventListener(y,x,{capture:E,passive:!1})},oe.prototype.removeEventListener=function(a,y,x,E){a.removeEventListener(y,x,{capture:E})};function tv(a){var y=a.ta.Oa;y instanceof HTMLCanvasElement||(y=a.div),a.addEventListener(y,"pointerdown",a.ui,!1),a.addEventListener(y,"pointermove",a.dk,!1),a.addEventListener(y,"pointerup",a.fk,!1),a.addEventListener(y,"pointerout",a.ek,!1),a.addEventListener(y,"pointercancel",a.ck,!1),a.addEventListener(y,"pointerenter",a.bz,!1),a.addEventListener(y,"pointerleave",a.cz,!1),a.addEventListener(y,"wheel",a.$j,!1),a.addEventListener(y,"keydown",a.Qz,!1),a.addEventListener(y,"keyup",a.Rz,!1),a.addEventListener(y,"blur",a.Ny,!1),a.addEventListener(y,"focus",a.Oy,!1),a.addEventListener(y,"selectstart",function(x){return x.preventDefault(),!1},!1),a.addEventListener(y,"contextmenu",function(x){return x.preventDefault(),!1},!1),a.addEventListener(Ke,"resize",a.Ov,!1)}function ys(a){30At&&(this.position=Dt.h(-(y.scrollWidth-this.Aa)+It-this.Aa/b+ut,this.position.y))),a.vy&&this.allowVerticalScroll&&(otBt&&(this.position=Dt.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/b+z))),jt.free(Dt),this.vd=!0,this.Ee=this.qr=!1,E=this.documentBounds,b=this.viewportBounds,ut=E.right,At=b.right,z=E.bottom,Bt=b.bottom,tt=E.x,ft=b.x,ot=E.y,E=b.y,mt>=rt&&tt>=ft&&ut<=At&&(x.style.width="1px"),yt>=at&&ot>=E&&z<=Bt&&(x.style.height="1px"))}},oe.prototype.computeBounds=function(a){return a===void 0&&(a=new ce),Nr(this),gc(this,a)};function gc(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,E=a.Wa.s,b=E.length,z=0;zx&&(y=x),ya.maxScale&&(y=a.maxScale),y):y===Fh?(y=rt>ot?(tt-a.Db)/E:(z-a.Db)/b,y>x&&(y=x),ya.maxScale&&(y=a.maxScale),y):a.scale}oe.prototype.zoomToFit=function(){var a=this.sj;this.sj=Hu,this.scale=gd(this,qs),a!==Hu&&(La(this,!1),fc(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Pt=oe.prototype,Pt.BA=function(a,y){y===void 0&&(y=qs);var x=a.width,E=a.height;if(!(x===0||E===0||isNaN(x)&&isNaN(E))){var b=1;if(y===qs||y===Fh)if(isNaN(x))b=this.viewportBounds.height*this.scale/E;else if(isNaN(E))b=this.viewportBounds.width*this.scale/x;else{b=this.Aa;var z=this.ya;b=y===Fh?z/E>b/x?(z-(this.Be?this.Db:0))/E:(b-(this.gf?this.Db:0))/x:Math.min(z/E,b/x)}this.scale=b,this.position=new jt(a.x,a.y)}},Pt.Jy=function(a,y){this.Va();var x=this.documentBounds,E=this.viewportBounds;this.position=new jt(x.x+(a.x*x.width+a.offsetX)-(y.x*E.width-y.offsetX),x.y+(a.y*x.height+a.offsetY)-(y.y*E.height-y.offsetY))},Pt.zz=function(a){if(a instanceof Yt){this.eq=a;var y=jt.alloc();this.fq=this.op(a.ga(yr,y)),jt.free(y)}else this.eq=null,this.fq=cl};function fc(a,y,x,E,b,z){var tt=jt.allocAt(a.pa.x,a.pa.y),ot=tt.x,rt=tt.y;if(a.eq!==null){var at=jt.alloc();at=a.eq.ga(yr,at),ot=at.x-a.fq.x/a.scale,rt=at.y-a.fq.y/a.scale,b=er,jt.free(at)}(z||a.scrollMode===Hu)&&(b.sb()&&(x>y.width&&(ot=y.x+(b.x*y.width+b.offsetX)-(b.x*x-b.offsetX)),E>y.height&&(rt=y.y+(b.y*y.height+b.offsetY)-(b.y*E-b.offsetY))),b=a.rj,z=x-y.width,xy.left?ot=y.left:oty.top?rt=y.top:rty;y++){var x=a.De.iterator;if(x===null||a.De.count===0)break;a.De=new ze,a.Nv(x,a.De)}a.nodes.each(function(E){E instanceof Bn&&E.U&65536&&(E.U=E.U^65536)})}}Pt.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof Bn||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof Bn&&x.isVisible()&&rg(this,x);for(a.reset();a.next();)x=a.value,x instanceof Ne&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x));for(a.reset();a.next();)x=a.value,x instanceof ai&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function rg(a,y){for(var x=Jn(),E=Jn(),b=y.memberParts;b.next();){var z=b.value;z.isVisible()&&(z instanceof Bn?($s(z)||ss(z)||Th(z))&&rg(a,z):z instanceof Ne?z.fromNode===y||z.toNode===y?E.push(z):x.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=x.length,b=0;bKt&&(It=Ue.left,Rt=Ue.right),Dt.height>ie&&(zt=Ue.top,Gt=Ue.bottom)):(It=Ue.left,Rt=Ue.right,zt=Ue.top,Gt=Ue.bottom);var tn=Dt.width+It+Rt,Ye=Dt.height+zt+Gt;Ue=a.scale;var Fe=tn>rt/Ue,ye=Ye>at/Ue;if(!(z||a.gf||a.Be||Fe||ye))return!0;It=Dt.x-It,rt=ut.x,Rt=Dt.right+Rt,at=ut.right+tt,zt=Dt.y-zt;var Cn=ut.y;Dt=Dt.bottom+Gt,ut=ut.bottom+ot;var yn="1px";if(Gt="1px",a.scrollMode===Hu&&(Fe||ye)&&(Fe&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Fe=1,It+1at+1&&(Fe=Math.max((Rt-at)*Ue+a.Aa,Fe)),Kt+tt+1ut+1&&(Fe=Math.max((Dt-ut)*Ue+a.ya,Fe)),ie+ot+1at+1&&(tt=Math.max((Rt-at)*Ue+a.Aa,tt)),Kt+1ut+1&&(ot=Math.max((Dt-ut)*Ue+tt,ot)),ie+1at+1&&(y=a.position.x*Ue)),a.tn)switch(a.bu){case"negative":y=-(At.scrollWidth-y-At.clientWidth);break;case"reverse":y=At.scrollWidth-y-At.clientWidth}return At.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(ie+1ut+1&&(At.scrollTop=a.position.y*Ue)),rt=a.Aa,at=a.ya,At.style.width=rt+(a.gf?a.Db:0)+"px",At.style.height=at+(a.Be?a.Db:0)+"px",x!==rt||E!==at||a.animationManager.zb?(x=ce.allocAt(b,ft,mt,yt),a.onViewportBoundsChanged(x,a.viewportBounds,Ue,z),ce.free(x),!1):!0}Pt=oe.prototype,Pt.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&ee("Cannot add part "+a.toString()+" to "+this.toString()+". It is already a part of "+y.toString()),y=this.Qj(a.layerName),y===null&&(y=this.Qj("")),y===null&&ee('Cannot add a Part when unable find a Layer named "'+a.layerName+'" and there is no default Layer'),a.layer!==y)){var x=y.oi(99999999,a,a.diagram===this);0<=x&&this.cb(Mo,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},Pt.oi=function(a){this.partManager.oi(a);var y=this;Ed(a,function(x){vd(y,x)}),(a instanceof ai||a instanceof Bn&&a.placeholder!==null)&&a.v(),a.data!==null&&Ed(a,function(x){ay(y.partManager,x)}),ss(a)!==!0&&Th(a)!==!0||this.De.add(a),jA(a,!0,this),zA(a)?(a.actualBounds.w()&&this.N(Md(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Md(a,a.actualBounds)),this.$b()},Pt.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Ed(a,function(x){ly(y.partManager,x,y)}),this.De.remove(a),zA(a)?(a.actualBounds.w()&&this.N(Md(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Md(a,a.actualBounds)),this.$b()},Pt.remove=function(a){Ac(this,a,!0)};function Ac(a,y,x){var E=y.layer;E!==null&&E.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),x&&y.Lj(),x=E.pc(-1,y,!1),0<=x&&a.cb(Vo,"parts",E,y,null,x,null),a=y.layerChanged,a!==null&&a(y,E,null))}Pt.Is=function(a,y){if(y===void 0&&(y=!1),Ze(a))for(var x=a.length,E=0;EE&&this.Ya(),this},Pt.Cy=function(a,y){xc(this,a,y),a.Xe(this);var x=this.Wa,E=x.indexOf(a);0<=E&&(x.remove(a),this.cc!==null&&this.cb(Vo,"layers",this,a,null,E,null));var b=x.count,z;for(z=0;zE&&this.Ya(),this},Pt.kA=function(a){if(a.diagram!==this&&ee("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,x=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var E=y.value,b=E.layerName;b!==a.name?E.layerName=b:E.layerName=""}this.cc!==null&&this.cb(Vo,"layers",this,a,null,x,null),this.N(),this.Ya()}}},Pt.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},Pt.Yw=function(a){return this.pf===null&&(this.pf=new He),this.pf.add(a),this.model.Pe(a),this},Pt.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Pt.Pe=function(a){return this.zg===null&&(this.zg=new He),this.zg.add(a),this},Pt.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Pt.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==zs&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,E=0;Eft.Pa.indexOf(yt)&&ft.oi(mt,yt,At):(yt.isSelected=!1,yt.isHighlighted=!1,yt.Wb(),ft.pc(At?mt:-1,yt,At)))}else ft instanceof oe?typeof mt=="number"&&yt instanceof fr&&(y?(yt.Xe(this),this.Wa.Gb(mt,yt)):this.Wa.mb(mt)):ee("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else E!==zs&&ee("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},oe.prototype.Ea=function(a){return this.undoManager.Ea(a)},oe.prototype.eb=function(a){return this.undoManager.eb(a)},oe.prototype.Kf=function(){return this.undoManager.Kf()},oe.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var E=!1;try{a(this),E=!0}finally{E?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},oe.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},oe.prototype.rp=function(){this.partManager.rp()};function Pc(a,y,x){var E=a.animationManager;if(a.vb||a.ld)a.Ca=x,Pl(a),a.N(),a.Ee=!0,E.zb&&(ru(E)||E.ce.add(E.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,Pl(a);else{a.vb=!0;var b=a.viewportBounds.copy(),z=a.Aa,tt=a.ya,ot=a.zoomPoint.x,rt=a.zoomPoint.y,at=a.contentAlignment;isNaN(ot)&&(at.$c()?at.Hf(ml)?ot=0:at.Hf(Ls)&&(ot=z-1):ot=at.sb()?at.x*(z-1):z/2),isNaN(rt)&&(at.$c()?at.Hf(pl)?rt=0:at.Hf(wa)&&(rt=tt-1):rt=at.sb()?at.y*(tt-1):tt/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(x=a.scaleComputation(a,x)),xa.maxScale&&(x=a.maxScale),z=jt.allocAt(a.pa.x+ot/y-ot/x,a.pa.y+rt/y-rt/x),a.position=z,jt.free(z),a.Ca=x,Pl(a),a.vb=!1,a.onViewportBoundsChanged(b,a.viewportBounds,y,!1),La(a,!1),E.zb&&(ru(E)||E.ce.add(E.H,"scale",y,a.Ca))}}oe.prototype.onViewportBoundsChanged=function(a,y,x,E){if(!a.D(y)){E===void 0&&(E=!1),E||(this.Ee=!0),this.vd=!0;var b=this.layout;b===null||!b.isViewportSized||this.autoScale!==Xr||a.width===y.width&&a.height===y.height||b.C(),b=this.currentTool,this.Vk===!0&&b instanceof no&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),bp(b,this)),this.vb||this.invalidateViewport(a,y),xl(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.canvasSize.width=Math.round(a.width*x),this.fc.canvasSize.height=Math.round(a.height*x),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=E,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function xl(a,y){var x=a.fe;if(x!==null&&x.visible){for(var E=We.alloc(),b=1,z=1,tt=x.O.s,ot=tt.length,rt=0;rtut||(pv(at.figure)?z=z*ut/Jt.vx(z,ut):b=b*ut/Jt.vx(b,ut))}if(tt=x.gridCellSize,E.h(z*tt.width,b*tt.height),y!==void 0)b=y.width,z=y.height,a=y.x,tt=y.y;else{if(y=ce.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){ce.free(y);return}b=y.width,z=y.height,a=y.x,tt=y.y,ce.free(y)}x.width=b+2*E.width,x.height=z+2*E.height,y=jt.alloc(),Jt.No(a,tt,0,0,E.width,E.height,y),y.offset(-E.width,-E.height),We.free(E),x.part.location=y,jt.free(y)}}oe.prototype.clearSelection=function(a){a===void 0&&(a=!1);var y=this.selection;if(y.count!==0){a||this.R("ChangingSelection",y);for(var x=y.Fa(),E=x.length,b=0;b=E&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||Dl(z,"Layout")),a.xh=!1;for(var tt=a.ai.iterator;tt.next();)Lc(a,tt.value,y,E);b.isValidLayout||(!y||b.isRealtime||b.isRealtime===null||E===0?(b.doLayout(a),Nr(a),b.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,E===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||E!==0&&E!==1||Kg(z),a.aa=x}}}function Lc(a,y,x,E){if(y!==null){for(var b=y.gl.iterator;b.next();)Lc(a,b.value,x,E);b=y.layout,b===null||b.isValidLayout||(!x||b.isRealtime||E===0?(y.rh=!y.location.w(),b.doLayout(y),y.C(32),rg(a,y),b.isValidLayout=!0):a.xh=!0)}}Pt.yz=function(){for(var a=new He,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function ev(a){function y(b){var z=b.toLowerCase(),tt=new He;x.add(b,tt),x.add(z,tt),E.add(b,b),E.add(z,b)}var x=new xn,E=new xn;y("InitialAnimationStarting"),y("AnimationStarting"),y("AnimationFinished"),y("BackgroundSingleClicked"),y("BackgroundDoubleClicked"),y("BackgroundContextClicked"),y("ClipboardChanged"),y("ClipboardPasted"),y("DocumentBoundsChanged"),y("ExternalObjectsDropped"),y("GainedFocus"),y("InitialLayoutCompleted"),y("LayoutCompleted"),y("LinkDrawn"),y("LinkRelinked"),y("LinkReshaped"),y("LostFocus"),y("Modified"),y("ObjectSingleClicked"),y("ObjectDoubleClicked"),y("ObjectContextClicked"),y("PartCreated"),y("PartResized"),y("PartRotated"),y("SelectionMoved"),y("SelectionCopied"),y("SelectionDeleting"),y("SelectionDeleted"),y("SelectionGrouped"),y("SelectionUngrouped"),y("ChangingSelection"),y("ChangedSelection"),y("SubGraphCollapsed"),y("SubGraphExpanded"),y("TextEdited"),y("TreeCollapsed"),y("TreeExpanded"),y("ViewportBoundsChanged"),y("InvalidateDraw"),a.iw=x,a.hw=E}function e0(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function rf(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;ee("Unknown DiagramEvent name: "+y)}Pt.Bj=function(a,y){return a=rf(this,a),a!==null&&a.add(y),this},Pt.am=function(a,y){a=rf(this,a),a!==null&&a.remove(y)},Pt.R=function(a,y,x){var E=rf(this,a),b=new Eu;if(b.diagram=this,a=e0(this,a),a!==null&&(b.name=a),y!==void 0&&(b.subject=y),x!==void 0&&(b.parameter=x),y=E.length,y===1)E.M(0)(b);else if(y!==0)for(E=E.Fa(),x=0;x=x.top&&0>=x.left&&0>=x.right&&0>=x.bottom)return y;var E=this.viewportBounds,b=this.scale;E=ce.allocAt(0,0,E.width*b,E.height*b);var z=jt.allocAt(0,0);if(a.x>=E.x&&a.xE.x+E.width-x.right&&this.allowHorizontalScroll&&(tt=Math.max(this.scrollHorizontalLineChange,1),tt|=0,z.x+=tt,a.x>E.x+E.width-x.right/2&&(z.x+=tt),a.x>E.x+E.width-x.right/4&&(z.x+=4*tt));return a.y>=E.y&&a.yE.y+E.height-x.bottom&&this.allowVerticalScroll&&(tt=Math.max(this.scrollVerticalLineChange,1),tt|=0,z.y+=tt,a.y>E.y+E.height-x.bottom/2&&(z.y+=tt),a.y>E.y+E.height-x.bottom/4&&(z.y+=4*tt)),z.Xa(Dr)||(y=new jt(y.x+z.x/b,y.y+z.y/b)),ce.free(E),jt.free(z),y},Pt=oe.prototype,Pt.Cs=function(){return null},Pt.av=function(){return null},Pt.bs=function(a,y){this.pj.add(a,y)},Pt.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Bn&&(y.$p=null)})};function sg(a,y,x){function E(){var ut=+new Date;for(z=!0,tt.reset();tt.next();)if(!tt.value[0].al){z=!1;break}z||ut-at>rt?y(x,b,ot):Ke.requestAnimationFrame(E)}for(var b=x.callback,z=!0,tt=a.Og.iterator;tt.next();)if(!tt.value[0].al){z=!1;break}if(typeof b!="function"||z)return y(x,b,a);var ot=a,rt=x.callbackTimeout||300,at=+new Date;return Ke.requestAnimationFrame(function(){E()}),null}Pt.Wz=function(a){return Ao?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Pt.Jx=function(a){return a===void 0&&(a={}),sg(this,this.Xz,a)},Pt.Xz=function(a,y,x){var E=i0(x,a,"canvas",null);if(E===null)return null;x=E.Z.canvas;var b=null;if(x!==null)switch(b=a.returnType,b===void 0?b="string":b=b.toLowerCase(),b){case Sd+"data":b=E.getImageData(0,0,x.width,x.height);break;case Sd:E=(a.document||document).createElement("img"),E.src=x.toDataURL(a.type,a.details),b=E;break;case"blob":return typeof y!="function"&&ee('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof x.toBlob=="function"?(x.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:b=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(b),null):b};function i0(a,y,x,E){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&ee("properties argument must be an Object.");var b=y.size||null,z=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(z="NaN");var tt=y.maxSize;y.maxSize===void 0&&(tt=x==="SVG"?new We(1/0,1/0):new We(2e3,2e3));var ot=y.position||null,rt=y.parts||null,at=y.padding===void 0?1:y.padding,ut=y.background||null,ft=y.omitTemporary;ft===void 0&&(ft=!0);var mt=y.document||document,yt=y.elementFinished||null,At=y.showTemporary;At===void 0&&(At=!ft),y=y.showGrid,y===void 0&&(y=At),b!==null&&isNaN(b.width)&&isNaN(b.height)&&(b=null),typeof at=="number"?at=new Rn(at):at instanceof Rn||ee("MakeImage padding must be a Margin or a number."),at.left=Math.max(at.left,0),at.right=Math.max(at.right,0),at.top=Math.max(at.top,0),at.bottom=Math.max(at.bottom,0),a.ib.Vc(!0),ft=new ka(null,mt,void 0,!0);var Bt=ft.context;if(!(b||z||rt||ot))return ft.width=a.Aa+Math.ceil(at.left+at.right),ft.height=a.ya+Math.ceil(at.top+at.bottom),x==="SVG"?E===null?null:(E.resize(ft.width,ft.height,ft.width,ft.height),E.ownerDocument=mt,E.hs=yt,$g(a,E.context,at,new We(ft.width,ft.height),a.Ca,a.pa,rt,ut,At,y),E.context):(a.Xm=!1,$g(a,Bt,at,new We(ft.width,ft.height),a.Ca,a.pa,rt,ut,At,y),a.Xm=!0,ft.context);var Dt=a.Pp,It=a.documentBounds.copy();if(It.Fv(a.yb),At)for(var Rt=a.Wa.s,zt=Rt.length,Gt=0;GtDt?(z=Dt,b=It.width,It=It.height):(b=tt.width,It=tt.height)):(b=It.width*z,It=It.height*z):(z=Dt,b=It.width,It=It.height),at!==null?(b+=ot,It+=zt):at=new Rn(0),tt!==null&&(Dt=tt.width,tt=tt.height,isNaN(Dt)&&(Dt=2e3),isNaN(tt)&&(tt=2e3),isFinite(Dt)&&(b=Math.min(b,Dt)),isFinite(tt)&&(It=Math.min(It,tt))),ft.width=Math.ceil(b),ft.height=Math.ceil(It),x==="SVG"?E===null?null:(E.resize(ft.width,ft.height,ft.width,ft.height),E.ownerDocument=mt,E.hs=yt,$g(a,E.context,at,new We(Math.ceil(b),Math.ceil(It)),z,Rt,rt,ut,At,y),E.context):(a.Xm=!1,$g(a,Bt,at,new We(Math.ceil(b),Math.ceil(It)),z,Rt,rt,ut,At,y),a.Xm=!0,ft.context)}fe.Object.defineProperties(oe.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof ct||(a===""&&(a="default"),a=a.toLowerCase(),a!==this.nl&&(this.nl=a,a==="default"||a==="canvas"?(a=this.pj.get("svg"),a!==null&&a.Oa.remove(),this.ta&&(this.ib=this.ta.context)):a==="svg"?(this.pj.contains("svg")?a=this.pj.get("svg"):(a=new wl(this,Ke.document),this.bs("svg",a)),this.div!==null&&this.div.appendChild(a.Oa),this.ib=a.context,this.ta&&(this.ta.context.setTransform(this.Mb,0,0,this.Mb,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya))):a!=="debug"||this.pj.contains("SVG")||(a=new wl(this,Ke.document),this.bs("SVG",a),a.Oa.style.backgroundColor="whitesmoke",this.div!==null&&this.div.after(a.Oa)),this.hk()))}},div:{get:function(){return this.Ka},set:function(a){if(this.Ka!==a){var y=this.Ka;y!==null?(y.H=void 0,y.goDiagram=void 0,y.go=void 0,y.innerHTML="",this.ta!==null&&(y=this.ta.Oa,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.ta.mx()),this.ol&&(this.ol.disconnect(),this.ol=null),y=this.toolManager,y!==null&&(y.mouseDownTools.each(function(x){x.cancelWaitAfter()}),y.mouseMoveTools.each(function(x){x.cancelWaitAfter()}),y.mouseUpTools.each(function(x){x.cancelWaitAfter()})),y.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(Ke,"resize",this.Ov,!1),this.removeEventListener(Ke,"wheel",this.$j,!0),bl===this&&(bl=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),hc(this,a),this.hk())}}},$w:{get:function(){return this.Sq}},pi:{get:function(){return this.hf}},draggedLink:{get:function(){return this.nt},set:function(a){this.nt!==a&&(this.nt=a,a!==null&&(this.Vt=a.fromPort,this.Wt=a.toPort))}},Mx:{get:function(){return this.Vt},set:function(a){this.Vt=a}},Nx:{get:function(){return this.Wt},set:function(a){this.Wt=a}},animationManager:{get:function(){return this.Yd}},undoManager:{get:function(){return this.cc.undoManager}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a,this.cc.skipsUndoManager=a}},delaysLayout:{get:function(){return this.lt},set:function(a){this.lt=a}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1a&&Zn(a,">= 0",oe,"scrollHorizontalLineChange"),this.iu=a,this.g("scrollHorizontalLineChange",y,a))}},scrollVerticalLineChange:{get:function(){return this.mu},set:function(a){var y=this.mu;y!==a&&(0>a&&Zn(a,">= 0",oe,"scrollVerticalLineChange"),this.mu=a,this.g("scrollVerticalLineChange",y,a))}},lastInput:{get:function(){return this.cj},set:function(a){this.cj=a}},previousInput:{get:function(){return this.Qg},set:function(a){this.Qg=a}},firstInput:{get:function(){return this.bq},set:function(a){this.bq=a}},currentCursor:{get:function(){return this.it},set:function(a){if(a===""&&(a=this.Op),this.it!==a){var y=this.ta,x=this.Ka;if(y!==null&&x!==null){this.it=a;var E=y.style.cursor;y.style.cursor=a,x.style.cursor=a,y.style.cursor===E&&(y.style.cursor="-webkit-"+a,x.style.cursor="-webkit-"+a,y.style.cursor===E&&(y.style.cursor="-moz-"+a,x.style.cursor="-moz-"+a,y.style.cursor===E&&(y.style.cursor=a,x.style.cursor=a)))}}}},defaultCursor:{get:function(){return this.Op},set:function(a){a===""&&(a="auto");var y=this.Op;y!==a&&(this.Op=a,this.g("defaultCursor",y,a))}},click:{get:function(){return this.zh},set:function(a){var y=this.zh;y!==a&&(this.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.Fh},set:function(a){var y=this.Fh;y!==a&&(this.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.Bh},set:function(a){var y=this.Bh;y!==a&&(this.Bh=a,this.g("contextClick",y,a))}},mouseOver:{get:function(){return this.Qh},set:function(a){var y=this.Qh;y!==a&&(this.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.Oh},set:function(a){var y=this.Oh;y!==a&&(this.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.Nh},set:function(a){var y=this.Nh;y!==a&&(this.Nh=a,this.g("mouseHold",y,a))}},mouseDragOver:{get:function(){return this.Qt},set:function(a){var y=this.Qt;y!==a&&(this.Qt=a,this.g("mouseDragOver",y,a))}},mouseDrop:{get:function(){return this.Lh},set:function(a){var y=this.Lh;y!==a&&(this.Lh=a,this.g("mouseDrop",y,a))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(a){var y=this.xt;y!==a&&(this.xt=a,this.g("handlesDragDropForTopLevelParts",y,a))}},mouseEnter:{get:function(){return this.Mh},set:function(a){var y=this.Mh;y!==a&&(this.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.Ph},set:function(a){var y=this.Ph;y!==a&&(this.Ph=a,this.g("mouseLeave",y,a))}},toolTip:{get:function(){return this.$h},set:function(a){var y=this.$h;y!==a&&(this.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.Ch},set:function(a){var y=this.Ch;y!==a&&(this.Ch=a,this.g("contextMenu",y,a))}},commandHandler:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a,a.Xe(this))}},toolManager:{get:function(){return this.te},set:function(a){this.te!==a&&(this.te=a,a.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(a){var y=this.ob;y!==a&&(this.ob=a,a.diagram=this,this.currentTool===y&&(this.currentTool=a))}},currentTool:{get:function(){return this.hb},set:function(a){var y=this.hb;y&&(y.isActive&&y.doDeactivate(),y.cancelWaitAfter(),y.doStop()),a===null&&(a=this.defaultTool),a!==null&&(this.hb=a,a.diagram=this,a.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(a){var y=this.Nt;if(y!==a)if(0<=a&&!isNaN(a)){if(this.Nt=a,this.g("maxSelectionCount",y,a),!this.undoManager.isUndoingRedoing&&(a=this.selection.count-a,0= 0",oe,"maxSelectionCount")}},nodeSelectionAdornmentTemplate:{get:function(){return this.St},set:function(a){var y=this.St;y!==a&&(this.St=a,this.g("nodeSelectionAdornmentTemplate",y,a))}},groupSelectionAdornmentTemplate:{get:function(){return this.wt},set:function(a){var y=this.wt;y!==a&&(this.wt=a,this.g("groupSelectionAdornmentTemplate",y,a))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kt},set:function(a){var y=this.Kt;y!==a&&(this.Kt=a,this.g("linkSelectionAdornmentTemplate",y,a))}},highlighteds:{get:function(){return this.nw}},isModified:{get:function(){var a=this.undoManager;return a.isEnabled?a.currentTransaction!==null?!0:this.rn&&this.Ce!==a.historyIndex:this.rn},set:function(a){if(this.rn!==a){this.rn=a;var y=this.undoManager;!a&&y.isEnabled&&(this.Ce=y.historyIndex),a||$p(this)}}},model:{get:function(){return this.cc},set:function(a){var y=this.cc;if(y!==a){this.currentTool.doCancel(),y&&y.undoManager!==a.undoManager&&y.undoManager.isInTransaction&&ee("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=uc(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var E=this.vb;this.vb=!0,Dl(this.animationManager,"Model"),y&&(this.pf!==null&&this.pf.each(function(z){return y.ik(z)}),y.ik(this.Oc)),this.cc=a,this.partManager=wc(this.cc.type);for(var b=0;bthis.scale&&(this.scale=a)):Zn(a,"> 0",oe,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(a){var y=this.Mt;y!==a&&(0 0",oe,"maxScale"))}},zoomPoint:{get:function(){return this.zu},set:function(a){this.zu.D(a)||(this.zu=a=a.J())}},contentAlignment:{get:function(){return this.zk},set:function(a){var y=this.zk;y.D(a)||(this.zk=a=a.J(),this.g("contentAlignment",y,a),La(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(a){var y=this.pq;y.D(a)||(this.pq=a=a.J(),this.g("initialContentAlignment",y,a))}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Rn(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.Ya(),this.g("padding",y,a))}},partManager:{get:function(){return this.Pc},set:function(a){var y=this.Pc;y!==a&&(a.diagram!==null&&ee("Cannot share PartManagers between Diagrams: "+a.toString()),y&&y.Xe(null),this.Pc=a,a.Xe(this))}},nodes:{get:function(){return this.partManager.nodes.iterator}},links:{get:function(){return this.partManager.links.iterator}},parts:{get:function(){return this.partManager.parts.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;y!==a&&(this.Sc=a,a.diagram=this,a.group=null,this.xh=!0,this.g("layout",y,a),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(a){var y=this.Ht;if(y!==a&&(this.Ht=a,this.g("isTreePathToChildren",y,a),!this.undoManager.isUndoingRedoing))for(a=this.nodes;a.next();)Vc(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==Gu&&a!==Qo&&a!==hf&&ee("Unknown Diagram.treeCollapsePolicy: "+a),this.uu=a,this.g("treeCollapsePolicy",y,a))}},Ue:{get:function(){return this.pw},set:function(a){this.pw=a}},avoidanceCellSize:{get:function(){return this.aw},set:function(a){this.Xh=null,this.aw=new We(Math.max(1,a.width),Math.max(1,a.height))}},avoidanceLimit:{get:function(){return this.bw},set:function(a){this.bw=Math.max(1,a)}},autoScrollInterval:{get:function(){return this.vp},set:function(a){var y=this.vp;y!==a&&(this.vp=a,this.g("autoScrollInterval",y,a))}},autoScrollRegion:{get:function(){return this.xp},set:function(a){typeof a=="number"&&(a=new Rn(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),fe.Object.defineProperties(oe,{licenseKey:{get:function(){return Dc.jc()},set:function(a){Dc.add(a.replace(/\s/g,""))}},version:{get:function(){return Ad}}}),oe.prototype.makeImageData=oe.prototype.Jx,oe.prototype.makeImage=oe.prototype.Wz,oe.prototype.cacheGroupExternalLinks=oe.prototype.Fu,oe.prototype.addRenderer=oe.prototype.bs,oe.prototype.makeSVG=oe.prototype.av,oe.prototype.makeSvg=oe.prototype.Cs,oe.prototype.stopAutoScroll=oe.prototype.ug,oe.prototype.doAutoScroll=oe.prototype.gs,oe.prototype.isUnoccupied=oe.prototype.Yj,oe.prototype.raiseDiagramEvent=oe.prototype.R,oe.prototype.removeDiagramListener=oe.prototype.am,oe.prototype.addDiagramListener=oe.prototype.Bj,oe.prototype.findTreeRoots=oe.prototype.yz,oe.prototype.layoutDiagram=oe.prototype.Uz,oe.prototype.findTopLevelGroups=oe.prototype.qz,oe.prototype.findTopLevelNodesAndLinks=oe.prototype.rz,oe.prototype.ensureBounds=oe.prototype.Va,oe.prototype.findLinksByExample=oe.prototype.ls,oe.prototype.findNodesByExample=oe.prototype.ms,oe.prototype.findLinkForData=oe.prototype.Kc,oe.prototype.findNodeForData=oe.prototype.ii,oe.prototype.findPartForData=oe.prototype.Lc,oe.prototype.findLinkForKey=oe.prototype.findLinkForKey,oe.prototype.findNodeForKey=oe.prototype.Vb,oe.prototype.findPartForKey=oe.prototype.findPartForKey,oe.prototype.rebuildParts=oe.prototype.Wd,oe.prototype.transformViewToDoc=oe.prototype.Ps,oe.prototype.transformRectDocToView=oe.prototype.zA,oe.prototype.transformDocToView=oe.prototype.op,oe.prototype.centerRect=oe.prototype.es,oe.prototype.scrollToRect=oe.prototype.tv,oe.prototype.scroll=oe.prototype.scroll,oe.prototype.highlightCollection=oe.prototype.Jz,oe.prototype.highlight=oe.prototype.Iz,oe.prototype.selectCollection=oe.prototype.rA,oe.prototype.select=oe.prototype.select,oe.prototype.updateAllRelationshipsFromData=oe.prototype.rp,oe.prototype.updateAllTargetBindings=oe.prototype.updateAllTargetBindings,oe.prototype.commit=oe.prototype.commit,oe.prototype.rollbackTransaction=oe.prototype.Kf,oe.prototype.commitTransaction=oe.prototype.eb,oe.prototype.startTransaction=oe.prototype.Ea,oe.prototype.raiseChanged=oe.prototype.g,oe.prototype.raiseChangedEvent=oe.prototype.cb,oe.prototype.removeChangedListener=oe.prototype.ik,oe.prototype.addChangedListener=oe.prototype.Pe,oe.prototype.removeModelChangedListener=oe.prototype.mA,oe.prototype.addModelChangedListener=oe.prototype.Yw,oe.prototype.findLayer=oe.prototype.Qj,oe.prototype.removeLayer=oe.prototype.kA,oe.prototype.addLayerAfter=oe.prototype.Cy,oe.prototype.addLayerBefore=oe.prototype.Ww,oe.prototype.addLayer=oe.prototype.Al,oe.prototype.moveParts=oe.prototype.moveParts,oe.prototype.copyParts=oe.prototype.Kj,oe.prototype.removeParts=oe.prototype.Is,oe.prototype.remove=oe.prototype.remove,oe.prototype.add=oe.prototype.add,oe.prototype.clearDelayedGeometries=oe.prototype.bx,oe.prototype.setProperties=oe.prototype.nm,oe.prototype.attach=oe.prototype.Du,oe.prototype.set=oe.prototype.set,oe.prototype.resetInputOptions=oe.prototype.Sx,oe.prototype.setInputOption=oe.prototype.sA,oe.prototype.getInputOption=oe.prototype.Ql,oe.prototype.resetRenderingHints=oe.prototype.Tx,oe.prototype.setRenderingHint=oe.prototype.Xx,oe.prototype.getRenderingHint=oe.prototype.Gf,oe.prototype.maybeUpdate=oe.prototype.bd,oe.prototype.requestUpdate=oe.prototype.$b,oe.prototype.delayInitialization=oe.prototype.Xy,oe.prototype.isUpdateRequested=oe.prototype.Pz,oe.prototype.invalidateDocumentBounds=oe.prototype.Ya,oe.prototype.findObjectsNear=oe.prototype.og,oe.prototype.findPartsNear=oe.prototype.mz,oe.prototype.findObjectsIn=oe.prototype.Cf,oe.prototype.findPartsIn=oe.prototype.ux,oe.prototype.findObjectsAt=oe.prototype.ji,oe.prototype.findPartsAt=oe.prototype.lz,oe.prototype.findObjectAt=oe.prototype.ic,oe.prototype.findPartAt=oe.prototype.Ol,oe.prototype.focusObject=oe.prototype.zz,oe.prototype.alignDocument=oe.prototype.Jy,oe.prototype.zoomToRect=oe.prototype.BA,oe.prototype.zoomToFit=oe.prototype.zoomToFit,oe.prototype.diagramScroll=oe.prototype.kx,oe.prototype.focus=oe.prototype.focus;var uf=new xn,o0=null,Ao=Ke.document!==void 0,yd=null,Ih="",Xr=new Ee(oe,"None",0),qs=new Ee(oe,"Uniform",1),Fh=new Ee(oe,"UniformToFill",2),ag=new Ee(oe,"CycleAll",10),kc=new Ee(oe,"CycleNotDirected",11),Ic=new Ee(oe,"CycleNotDirectedFast",12),Fc=new Ee(oe,"CycleNotUndirected",13),Nc=new Ee(oe,"CycleDestinationTree",14),Tc=new Ee(oe,"CycleSourceTree",15),Hu=new Ee(oe,"DocumentScroll",1),lg=new Ee(oe,"InfiniteScroll",2),Gu=new Ee(oe,"TreeParentCollapsed",21),Qo=new Ee(oe,"AllParentsCollapsed",22),hf=new Ee(oe,"AnyParentsCollapsed",23),Dc=new He,Ad="2.3.10",Sd="image",ug=null,r0=!1;function Rr(){if(Ao){var a=Ke.document.createElement("canvas"),y=a.getContext("2d"),x=Oe("7ca11abfd022028846");y[x]=Oe("398c3597c01238");for(var E=["5da73c80a36455d7038e4972187c3cae51fd22",Sn.Dx+"4ae6247590da4bb21c324ba3a84e385776",Hn.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Jt.za],b=1;5>b;b++)y[Oe("7ca11abfd7330390")](Oe(E[b-1]),10,15*b);for(y[x]=Oe("39f046ebb36e4b"),x=1;5>x;x++)y[Oe("7ca11abfd7330390")](Oe(E[x-1]),10,15*x);(E.length!==4||E[0][0]!=="5"||E[3][0]!=="7")&&(Hn.prototype.Cd=Hn.prototype.Eu),ug=a}}oe.className="Diagram",oe.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Ke.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof oe?y.H:null},oe.inherit=function(a,y){function x(){}if(Object.getPrototypeOf(a).prototype)throw Error(`Used go.Diagram.inherit defining already defined class +`+a);x.prototype=y.prototype,a.prototype=new x,a.prototype.constructor=a},oe.useDOM=function(a){Ao=a?Ke.document!==void 0:!1},oe.isUsingDOM=function(){return Ao},oe.None=Xr,oe.Uniform=qs,oe.UniformToFill=Fh,oe.CycleAll=ag,oe.CycleNotDirected=kc,oe.CycleNotDirectedFast=Ic,oe.CycleNotUndirected=Fc,oe.CycleDestinationTree=Nc,oe.CycleSourceTree=Tc,oe.DocumentScroll=Hu,oe.InfiniteScroll=lg,oe.TreeParentCollapsed=Gu,oe.AllParentsCollapsed=Qo,oe.AnyParentsCollapsed=hf;function s0(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function xd(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)t:{y="f";var x=Ke[Oe("76a715b2f73f148a")][Oe("72ba13b5")]||"";if(a.Rc=!0,Ao){var E=oe[Oe("76a115b6ed251eaf4692")];if(E)for(var b=Dc.iterator;b.next()&&(E=b.value,E=Oe(E).split(Oe("39e9")),!(6>E.length));){var z=Oe(E[1]).split(".");if(E[4]!=="7da71ca0")break;var tt=Oe(Sn[Oe("6cae19")]).split(".");if(z[0]>tt[0]||z[0]===tt[0]&&z[1]>=tt[1]){var ot=Ke[Oe("74a900bae4370f8b51")][Oe("6fbb13a1c2311e8a57")].toLowerCase();if(tt=ot[Oe("73a612b6fb191d")](Oe("3aad1ab6e022098b4dc4")),z=Oe(E[2]),-1tt&&z!==Oe("7da71ca0ad381e90")&&(tt=y[Oe("73a612b6fb191d")](Oe("76a715b2ef3e149757"))),0>tt&&(tt=y[Oe("73a612b6fb191d")](Oe("76a715b2ef3e149757"))),0>tt&&(tt=y[Oe("73a612b6fb191d")](Oe("2bfa41fdb3784bca12"))),0>tt&&(tt=x[Oe("73a612b6fb191d")](Oe("7baa19a6f76c1988428554"))),a.Rc=!(0<=tt&&ttot),!a.Rc)))break;if(z[0]==="#"){tt=Ke.document.createElement("div");for(var rt=E[0].replace(/[A-Za-z]/g,"");4>rt.length;)rt+="9";if(ot=rt,rt=rt.substr(rt.length-4),E="",E+=["gsh","gsf"][parseInt(rt.substr(0,1),10)%2],E+=["Header","Background","Display","Feedback"][parseInt(rt.substr(0,1),10)%4],tt[Oe("79a417a0f0181a8946")]=E,Ke.document[Oe("78a712aa")]){Ke.document[Oe("78a712aa")][Oe("7bb806b6ed32388c4a875b")](tt),rt=Ke.getComputedStyle(tt).getPropertyValue(Oe("78a704b7e62456904c9b12701b6532a8"));var at=Ke.getComputedStyle(tt).getPropertyValue(Oe("75b817b0ea2202"));if(Ke.document[Oe("78a712aa")][Oe("68ad1bbcf533388c4a875b")](tt),rt){if(tt=Ke[Oe("77a902b0eb1b1e804a8a")],at==="0."+parseInt(ot,10)%100||rt.indexOf(parseInt(z[1]+z[2],16))!==-1&&rt.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(tt&&tt(Oe("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(E="."+E,z=0;zE.updateDelay?E.N():E.o||(E.o=!0,setTimeout(function(){return E.redraw()},E.updateDelay))},x.Of=function(){E.observed!==null&&Mt(E)},x.autoScale=qs,x.vb=!1,y&&Object.assign(x,y),x}Ae(ct,oe),ct.prototype.computePixelRatio=function(){return 1},ct.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var a=this.ta,y=this.ib;if(a!==null&&y!==null){if(pd(this),this.ql===null){var x=new ka(null);x.width=a.width,x.height=a.height,this.ql=x}try{this.ta=this.ql,this.ib=this.ta.context,this.ib.Vc(!0),this.ib.setTransform(1,0,0,1,0,0),this.ib.clearRect(0,0,this.ta.width,this.ta.height),xt(this)}finally{this.ta=a,this.ib=y}}}oe.prototype.redraw.call(this)},ct.prototype.gc=function(){if(this.Ka===null&&ee("No div specified"),this.ta===null&&ee("No canvas specified"),!(this.ta instanceof wl)&&(bv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){pd(this);var y=this.ta;a=this.ib,a.Vc(!0),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,y.width,y.height),1>this.updateDelay?xt(this):this.ql!==null&&(a.drawImage(this.ql.Oa,0,0),y=this.Ab,y.reset(),this.scale!==1&&y.scale(this.scale),this.position.x===0&&this.position.y===0||y.translate(-this.position.x,-this.position.y),a.scale(this.Mb,this.Mb),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.yc()),y=this.Wa.s;for(var x=y.length,E=0;Ea&&(a=0),this.ia!==a&&(this.ia=a)}}}),ct.className="Overview";function bt(){fo.call(this),this.j=null}Ae(bt,fo),bt.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||!a.allowMove||!a.allowSelect)return!1;var y=a.observed;if(y===null)return!1;var x=a.lastInput;return!x.left||a.currentTool!==this&&(!this.isBeyondDragSize()||x.isTouchEvent&&x.timestamp-a.firstInput.timestampy.maxScale||(y.scale=a))},Tt.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==Xr?!1:(a=y.scale*a,ay.maxScale?!1:y.allowZoom)},Tt.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===Xr&&(a=y.scale*a,ay.maxScale||(y.scale=a))},Tt.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==Xr?!1:(a=y.scale*a,ay.maxScale?!1:y.allowZoom)},Tt.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;ay.maxScale||(y.scale=a)},Tt.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return ay.maxScale?!1:y.allowZoom},Tt.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,E=a.scale;Dl(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&E===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=_r):(this.Jt=E,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),Kg(y)},Tt.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Tt.prototype.scrollToPart=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.Va(),a===null){try{this.cg!==null&&(this.cg.next()?a=this.cg.value:this.cg=null)}catch(rt){this.cg=null}a===null&&(0a&&(a+=360)),a},Pt.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Pt.qs=function(a,y){return y===void 0&&(y=new jt),y.assign(a),this.oe.Cd(y),y},Pt.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Pt.Sj=function(a,y,x,E,b){var z=this.transform,tt=1/(z.m11*z.m22-z.m12*z.m21),ot=z.m22*tt,rt=-z.m12*tt,at=-z.m21*tt,ut=z.m11*tt,ft=tt*(z.m21*z.dy-z.m22*z.dx),mt=tt*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,Jt.Ff(z.left,z.top,z.right,z.bottom,a,y,x,E,b)):(tt=a*ot+y*at+ft,a=a*rt+y*ut+mt,y=x*ot+E*at+ft,x=x*rt+E*ut+mt,b.h(0,0),E=this.naturalBounds,x=Jt.Ff(0,0,E.width,E.height,tt,a,y,x,b),b.transform(z),x)},Yt.prototype.measure=function(a,y,x,E){if($s(this)!==!1){var b=this.Kg,z=b.right+b.left;b=b.top+b.bottom,a=Math.max(a-z,0),y=Math.max(y-b,0),x=Math.max((x||0)-z,0),E=Math.max((E||0)-b,0),z=this.angle,b=this.desiredSize;var tt=this.kq();z===90||z===270?(a=isFinite(b.height)?b.height+tt:a,y=isFinite(b.width)?b.width+tt:y):(a=isFinite(b.width)?b.width+tt:a,y=isFinite(b.height)?b.height+tt:y),b=x||0,tt=E||0;var ot=this instanceof Ie;switch(Ss(this,!0)){case we:tt=b=0,ot&&(y=a=1/0);break;case Le:isFinite(a)&&a>x&&(b=a),isFinite(y)&&y>E&&(tt=y);break;case sn:isFinite(a)&&a>x&&(b=a),tt=0,ot&&(y=1/0);break;case vn:isFinite(y)&&y>E&&(tt=y),b=0,ot&&(a=1/0)}ot=this.maxSize;var rt=this.minSize;b>ot.width&&rt.widthot.height&&rt.heighta.height||this.Cb>a.width))&&(x=!0)),this.l=x?this.l|256:this.l&-257,this.Ib.w()||ee("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Rl(this,!1),ce.free(z)},Pt=Yt.prototype,Pt.eh=function(){};function Wr(a,y,x,E,b){if(a.Ib.h(y,x,E,b),!a.desiredSize.w()){var z=a.uc;x=a.Kg,y=x.right+x.left;var tt=x.top+x.bottom;switch(x=z.width+y,z=z.height+tt,E+=y,b+=tt,y=Ss(a,!0),x===E&&z===b&&(y=we),y){case we:(x>E||z>b)&&(Ho(a,!0),a.measure(x>E?E:x,z>b?b:z,0,0));break;case Le:Ho(a,!0),a.measure(E,b,0,0);break;case sn:Ho(a,!0),a.measure(E,z,0,0);break;case vn:Ho(a,!0),a.measure(x,b,0,0)}}}Pt.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||Rv(x,!0),this.N(),wu(a,y)||(x.oh(),this.Pn(x)))},Pt.Pn=function(a){this.portId!==null&&(Rv(a,!0),a instanceof Xe&&UA(a,this))},Pt.gc=function(a,y){if(!da(this,a,y)&&this.visible){var x=this.opacity;if(x!==0){var E=1;x!==1&&(E=a.globalAlpha,a.globalAlpha=E*x);var b="";this.filter!==""&&(b=a.filter,a.filter=this.filter);var z=this instanceof Ie&&Wu(this),tt=this.Ib;if(z){var ot=this.Ib,rt=this.dc,at=this.areaBackground,ut=this.Ma;at===null&&ut===null||a.yc(),at!==null&&(xo(this,a,at,!0,!0,rt,ot),at instanceof Si&&at.type===ca?(a.beginPath(),a.rect(ot.x,ot.y,ot.width,ot.height),a.ng(at)):a.fillRect(ot.x,ot.y,ot.width,ot.height)),ut!==null&&(xo(this,a,ut,!0,!1,rt,ot),ut instanceof Si&&ut.type===ca?(a.beginPath(),a.rect(ot.x,ot.y,ot.width,ot.height),a.ng(ut)):a.fillRect(ot.x,ot.y,ot.width,ot.height)),this.hh(a,y)}if(!z&&(z||tt.width!==0&&tt.height!==0&&!isNaN(tt.x)&&!isNaN(tt.y))){z=this.transform,ot=this.panel,this.l&4096&&Sr(this),at=this.part,rt=!1;var ft=0;at&&y.Gf("drawShadows")&&(rt=at.isShadowed)&&(ut=at.shadowOffset,ft=Math.max(ut.y,ut.x)*y.scale*y.Mb),ut=this.Dd();var mt;if(!(mt=y.$i||!ut)){var yt=this.naturalBounds;mt=this.wh;var At=mt.m11,Bt=mt.m21,Dt=mt.dx,It=mt.m12,Rt=mt.m22,zt=mt.dy,Gt,Kt=Gt=0;mt=Gt*At+Kt*Bt+Dt;var ie=Gt*It+Kt*Rt+zt;Gt=yt.width+ft,Kt=0;var Ue=Gt*At+Kt*Bt+Dt;Gt=Gt*It+Kt*Rt+zt,Kt=Math.min(mt,Ue);var tn=Math.min(ie,Gt),Ye=Math.max(mt+0,Ue)-Kt,Fe=Math.max(ie+0,Gt)-tn;mt=Kt,ie=tn,Gt=yt.width+ft,Kt=yt.height+ft,Ue=Gt*At+Kt*Bt+Dt,Gt=Gt*It+Kt*Rt+zt,Kt=Math.min(mt,Ue),tn=Math.min(ie,Gt),Ye=Math.max(mt+Ye,Ue)-Kt,Fe=Math.max(ie+Fe,Gt)-tn,mt=Kt,ie=tn,Gt=0,Kt=yt.height+ft,Ue=Gt*At+Kt*Bt+Dt,Gt=Gt*It+Kt*Rt+zt,Kt=Math.min(mt,Ue),tn=Math.min(ie,Gt),Ye=Math.max(mt+Ye,Ue)-Kt,Fe=Math.max(ie+Fe,Gt)-tn,mt=Kt,ie=tn,ft=y.viewportBounds,yt=ft.x,At=ft.y,mt=!(mt>ft.width+yt||yt>Ye+mt||ie>ft.height+At||At>Fe+ie)}if(mt){if(mt=(this.l&256)!==0,a.clipInsteadOfFill&&(mt=!1),this instanceof Ni&&(a.font=this.font),mt){if(ie=ot.se()?ot.naturalBounds:ot.actualBounds,Ye=Math.max(tt.x,ie.x),Fe=Math.max(tt.y,ie.y),ft=Math.min(tt.right,ie.right)-Ye,yt=Math.min(tt.bottom,ie.bottom)-Fe,At=this.tb,At!==null&&(Ye=At.x,Fe=At.y,ft=At.width,yt=At.height),Ye>tt.width+tt.x||tt.x>ie.width+ie.x){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}a.save(),a.beginPath(),a.rect(Ye,Fe,ft,yt),a.clip()}if(ut){if(!at.isVisible()){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}rt&&(ie=at.shadowOffset,a.Ev(ie.x*y.scale*this.scale*y.Mb,ie.y*y.scale*this.scale*y.Mb,at.shadowBlur),uu(a),a.shadowColor=at.shadowColor)}rt&&this.shadowVisible===!0?uu(a):rt&&this.shadowVisible===!1&&zl(a),at=this.naturalBounds,this.areaBackground!==null&&(a.yc(),_s(this,a,at,tt)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),rt&&cr(this,ot)&&this.shadowVisible===null&&zl(a),this.Ma!==null&&(a.yc(),Is(this,a,at,tt)),rt&&(this.Ma!==null||this.areaBackground!==null||cr(this,ot))?(Ua(this,!0),this.shadowVisible===null&&zl(a)):Ua(this,!1),this.hh(a,y),rt&&this.l&512&&uu(a),ut&&rt&&zl(a),mt&&(a.restore(),a.Vc(this instanceof Ie)),z.ws()||(y=1/(z.m11*z.m22-z.m12*z.m21),a.transform(z.m22*y,-z.m12*y,-z.m21*y,z.m11*y,y*(z.m21*z.dy-z.m22*z.dx),y*(z.m12*z.dx-z.m11*z.dy)))}}x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b)}}};function cr(a,y){return y===null?!1:(Wu(y)&&(y=y.panel),(y.l&512)!==0||(y.type===Ie.Auto||y.type===Ie.Spot)&&y.Pb()!==a)}Pt.Dv=function(){};function _s(a,y,x,E){xo(a,y,a.areaBackground,!0,!0,x,E),a.areaBackground instanceof Si&&a.areaBackground.type===ca?(y.beginPath(),y.rect(E.x,E.y,E.width,E.height),y.ng(a.areaBackground)):y.fillRect(E.x,E.y,E.width,E.height)}function Is(a,y,x,E){var b=a.kq(),z=x.x,tt=x.y,ot=x.width+b,rt=x.height+b;xo(a,y,a.Ma,!0,!1,x,E),a.Ma instanceof Si&&a.Ma.type===ca?(y.beginPath(),y.rect(z-b/2,tt-b/2,ot,rt),y.ng(a.Ma)):y.fillRect(z-b/2,tt-b/2,ot,rt)}function zr(a,y,x){for(var E=y.O.s,b=E.length,z=-1,tt=0;ttb)&&ee("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+b),a.isRow=!0,a.index=b):y.column!==void 0&&(b=y.column,(b==null||b===1/0||isNaN(b)||0>b)&&ee("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+b),a.isRow=!1,a.index=b),b=new Vn;for(x in y)x!=="row"&&x!=="column"&&(b[x]=y[x]);cd(a,b)}else cd(a,y);else ee('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function Uu(a,y){df.add(a,y)}function a0(a,y,x){x===void 0&&(x=null);var E=a[1];if(typeof x=="function"?x(E):typeof E=="string")return a.splice(1,1),E;if(y===void 0)throw Error("no "+(typeof x=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}fe.Object.defineProperties(Yt.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new gg),this.A.zp=a)}},localBindings:{get:function(){return this.A!==null?this.A.te:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new gg),this.A.te=a)}},srcBindings:{get:function(){return this.A!==null?this.A.wm:null},set:function(a){this.srcBindings!==a&&(this.A===null&&(this.A=new gg),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(On(this),this.A.Ci=a,this.Uc=!0,this.N(),this.g("shadowVisible",y,a))}},enabledChanged:{get:function(){return this.A!==null?this.A.Hb:null},set:function(a){var y=this.enabledChanged;y!==a&&(On(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:us},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new Nh),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===us&&(this.angle=0))}},segmentIndex:{get:function(){return this.Ua!==null?this.Ua.u:-1/0},set:function(a){a=Math.round(a);var y=this.segmentIndex;y!==a&&(this.Ua===null&&(this.Ua=new Nh),this.Ua.u=a,this.v(),this.g("segmentIndex",y,a))}},segmentFraction:{get:function(){return this.Ua!==null?this.Ua.o:0},set:function(a){isNaN(a)||0>a?a=0:1a||1=a&&ee("GraphObject.scale for "+this+" must be greater than zero, not: "+a),this.Ca=a,this.v(),this.g("scale",y,a))}},angle:{get:function(){return this.Kb},set:function(a){var y=this.Kb;y!==a&&(a%=360,0>a&&(a+=360),y!==a&&(this.Kb=a,Ky(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,E=this.jd,b=E.width,z=E.height;(b===y||isNaN(b)&&isNaN(y))&&(z===x||isNaN(z)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof Nn&&this.qc(),this.g("desiredSize",E,a),Br(this)&&(a=this.part,a!==null&&(Gi(this,a,"width"),Gi(this,a,"height"))))}},width:{get:function(){return this.jd.width},set:function(a){var y=this.jd.width;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new We(a,this.jd.height).freeze(),this.v(),this instanceof Nn&&this.qc(),this.g("desiredSize",y,a),Br(this)&&(a=this.part,a!==null&&Gi(this,a,"width")))}},height:{get:function(){return this.jd.height},set:function(a){var y=this.jd.height;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new We(this.jd.width,a).freeze(),this.v(),this instanceof Nn&&this.qc(),this.g("desiredSize",y,a),Br(this)&&(a=this.part,a!==null&&Gi(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:$n},set:function(a){var y=this.minSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=0),isNaN(a.height)&&(a.height=0),a.freeze(),On(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:vr},set:function(a){var y=this.maxSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=1/0),isNaN(a.height)&&(a.height=1/0),a.freeze(),On(this),this.A.o=a,this.v(),this.g("maxSize",y,a))}},measuredBounds:{get:function(){return this.uc}},naturalBounds:{get:function(){return this.dc}},margin:{get:function(){return this.Kg},set:function(a){typeof a=="number"&&(a=new Rn(a));var y=this.Kg;y.D(a)||(this.Kg=a=a.J(),this.v(),this.g("margin",y,a))}},transform:{get:function(){return this.l&2048&&Sr(this),this.Ab}},oe:{get:function(){return this.l&4096&&Sr(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(On(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:we},set:function(a){this.reshapingBehavior!==a&&(On(this),this.A.Pf=a)}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(a.Mc()&&!a.Xb()&&ee("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),rs(this),this.g("alignment",y,a))}},column:{get:function(){return this.Ag},set:function(a){a=Math.round(a);var y=this.Ag;y!==a&&(0>a&&Zn(a,">= 0",Yt,"column"),this.Ag=a,this.v(),this.g("column",y,a),this.svg!==null&&this.svg.remove())}},columnSpan:{get:function(){return this.A!==null?this.A.ob:1},set:function(a){a=Math.round(a);var y=this.columnSpan;y!==a&&(1>a&&Zn(a,">= 1",Yt,"columnSpan"),On(this),this.A.ob=a,this.v(),this.g("columnSpan",y,a))}},row:{get:function(){return this.io},set:function(a){a=Math.round(a);var y=this.io;y!==a&&(0>a&&Zn(a,">= 0",Yt,"row"),this.io=a,this.v(),this.g("row",y,a),this.svg!==null&&this.svg.remove())}},rowSpan:{get:function(){return this.A!==null?this.A.Bi:1},set:function(a){a=Math.round(a);var y=this.rowSpan;y!==a&&(1>a&&Zn(a,">= 1",Yt,"rowSpan"),On(this),this.A.Bi=a,this.v(),this.g("rowSpan",y,a))}},spanAllocation:{get:function(){return this.A!==null?this.A.Di:null},set:function(a){var y=this.spanAllocation;y!==a&&(On(this),this.A.Di=a,this.v(),this.g("spanAllocation",y,a))}},alignmentFocus:{get:function(){return this.sk},set:function(a){var y=this.sk;y.D(a)||(this.sk=a=a.J(),this.v(),this.g("alignmentFocus",y,a))}},portId:{get:function(){return this.Yn},set:function(a){var y=this.Yn;if(y!==a){var x=this.part;x===null||x instanceof Xe||ee("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Gv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,VA(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:er},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Pd(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Zn(a,">= 0",Yt,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Pd(this))}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:0},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.g("toShortLength",y,a),Pd(this))}},toLinkable:{get:function(){return this.ba!==null?this.ba.Tr:null},set:function(a){var y=this.toLinkable;y!==a&&(this.Xc(),this.ba.Tr=a,this.g("toLinkable",y,a))}},toMaxLinks:{get:function(){return this.ba!==null?this.ba.Ur:1/0},set:function(a){var y=this.toMaxLinks;y!==a&&(0>a&&Zn(a,">= 0",Yt,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:er},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Pd(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Zn(a,">= 0",Yt,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Pd(this))}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:0},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.g("fromShortLength",y,a),Pd(this))}},fromLinkable:{get:function(){return this.ba!==null?this.ba.hq:null},set:function(a){var y=this.fromLinkable;y!==a&&(this.Xc(),this.ba.hq=a,this.g("fromLinkable",y,a))}},fromMaxLinks:{get:function(){return this.ba!==null?this.ba.iq:1/0},set:function(a){var y=this.fromMaxLinks;y!==a&&(0>a&&Zn(a,">= 0",Yt,"fromMaxLinks"),this.Xc(),this.ba.iq=a,this.g("fromMaxLinks",y,a))}},cursor:{get:function(){return this.A!==null?this.A.j:""},set:function(a){var y=this.cursor;y!==a&&(On(this),this.A.j=a,this.g("cursor",y,a))}},click:{get:function(){return this.A!==null?this.A.zh:null},set:function(a){var y=this.click;y!==a&&(On(this),this.A.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.A!==null?this.A.Fh:null},set:function(a){var y=this.doubleClick;y!==a&&(On(this),this.A.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.A!==null?this.A.Bh:null},set:function(a){var y=this.contextClick;y!==a&&(On(this),this.A.Bh=a,this.g("contextClick",y,a))}},mouseEnter:{get:function(){return this.A!==null?this.A.Mh:null},set:function(a){var y=this.mouseEnter;y!==a&&(On(this),this.A.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.A!==null?this.A.Ph:null},set:function(a){var y=this.mouseLeave;y!==a&&(On(this),this.A.Ph=a,this.g("mouseLeave",y,a))}},mouseOver:{get:function(){return this.A!==null?this.A.Qh:null},set:function(a){var y=this.mouseOver;y!==a&&(On(this),this.A.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.A!==null?this.A.Oh:null},set:function(a){var y=this.mouseHover;y!==a&&(On(this),this.A.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.A!==null?this.A.Nh:null},set:function(a){var y=this.mouseHold;y!==a&&(On(this),this.A.Nh=a,this.g("mouseHold",y,a))}},mouseDragEnter:{get:function(){return this.A!==null?this.A.Of:null},set:function(a){var y=this.mouseDragEnter;y!==a&&(On(this),this.A.Of=a,this.g("mouseDragEnter",y,a))}},mouseDragLeave:{get:function(){return this.A!==null?this.A.Xd:null},set:function(a){var y=this.mouseDragLeave;y!==a&&(On(this),this.A.Xd=a,this.g("mouseDragLeave",y,a))}},mouseDrop:{get:function(){return this.A!==null?this.A.Lh:null},set:function(a){var y=this.mouseDrop;y!==a&&(On(this),this.A.Lh=a,this.g("mouseDrop",y,a))}},actionDown:{get:function(){return this.A!==null?this.A.V:null},set:function(a){var y=this.actionDown;y!==a&&(On(this),this.A.V=a,this.g("actionDown",y,a))}},actionMove:{get:function(){return this.A!==null?this.A.ia:null},set:function(a){var y=this.actionMove;y!==a&&(On(this),this.A.ia=a,this.g("actionMove",y,a))}},actionUp:{get:function(){return this.A!==null?this.A.Ha:null},set:function(a){var y=this.actionUp;y!==a&&(On(this),this.A.Ha=a,this.g("actionUp",y,a))}},actionCancel:{get:function(){return this.A!==null?this.A.F:null},set:function(a){var y=this.actionCancel;y!==a&&(On(this),this.A.F=a,this.g("actionCancel",y,a))}},toolTip:{get:function(){return this.A!==null?this.A.$h:null},set:function(a){var y=this.toolTip;y!==a&&(On(this),this.A.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.A!==null?this.A.Ch:null},set:function(a){var y=this.contextMenu;y!==a&&(On(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),Yt.prototype.trigger=Yt.prototype.Jv,Yt.prototype.findBindingPanel=Yt.prototype.ih,Yt.prototype.findTemplateBinder=Yt.prototype.pz,Yt.prototype.setProperties=Yt.prototype.nm,Yt.prototype.apply=Yt.prototype.apply,Yt.prototype.attach=Yt.prototype.Du,Yt.prototype.set=Yt.prototype.set,Yt.prototype.isEnabledObject=Yt.prototype.If,Yt.prototype.isVisibleObject=Yt.prototype.Ed,Yt.prototype.isContainedBy=Yt.prototype.rg,Yt.prototype.getNearestIntersectionPoint=Yt.prototype.rs,Yt.prototype.getLocalPoint=Yt.prototype.qs,Yt.prototype.getDocumentScale=Yt.prototype.Df,Yt.prototype.getDocumentAngle=Yt.prototype.li,Yt.prototype.getDocumentBounds=Yt.prototype.mi,Yt.prototype.getDocumentPoint=Yt.prototype.ga,Yt.prototype.intersectsRect=Yt.prototype.Yc,Yt.prototype.containedInRect=Yt.prototype.fh,Yt.prototype.containsRect=Yt.prototype.Re,Yt.prototype.containsPoint=Yt.prototype.ca,Yt.prototype.raiseChanged=Yt.prototype.g,Yt.prototype.raiseChangedEvent=Yt.prototype.cb,Yt.prototype.addCopyProperty=Yt.prototype.Vw;var df=null;Yt.className="GraphObject",df=new xn,Uu("Button",function(){function a(x,E){return x.diagram.ic(x.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b},function(b){return b===E})!==null}var y=fa(Ie,Ie.Auto,{isActionable:!0,enabledChanged:function(x,E){if(x instanceof Ie){var b=x.fb("ButtonBorder");b!==null&&(b.fill=E?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},fa(Nn,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new cn(0,0,2.76142374915397,2.761423749153969),spot2:new cn(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,E){if(E.If()&&E instanceof Ie&&(x=E.fb("ButtonBorder"),x instanceof Nn)){var b=E._buttonFillOver;E._buttonFillNormal=x.fill,x.fill=b,b=E._buttonStrokeOver,E._buttonStrokeNormal=x.stroke,x.stroke=b}},y.mouseLeave=function(x,E){E.If()&&E instanceof Ie&&(x=E.fb("ButtonBorder"),x instanceof Nn&&(x.fill=E._buttonFillNormal,x.stroke=E._buttonStrokeNormal))},y.actionDown=function(x,E){if(E.If()&&E instanceof Ie&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof Nn){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var tt=E._buttonFillPressed;E._buttonFillOver=b.fill,b.fill=tt,tt=E._buttonStrokePressed,E._buttonStrokeOver=b.stroke,b.stroke=tt,x.skipsUndoManager=z}}},y.actionUp=function(x,E){if(E.If()&&E instanceof Ie&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof Nn){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionCancel=function(x,E){if(E.If()&&E instanceof Ie&&E._buttonFillPressed!==null){var b=E.fb("ButtonBorder");if(b instanceof Nn){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionMove=function(x,E){if(E.If()&&E instanceof Ie&&E._buttonFillPressed!==null){var b=x.diagram;if(b.firstInput.button===0&&(b.currentTool.standardMouseOver(),a(x,E)&&(x=E.fb("ButtonBorder"),x instanceof Nn))){var z=b.skipsUndoManager;b.skipsUndoManager=!0;var tt=E._buttonFillPressed;x.fill!==tt&&(x.fill=tt),tt=E._buttonStrokePressed,x.stroke!==tt&&(x.stroke=tt),b.skipsUndoManager=z}}},y}),Uu("TreeExpanderButton",function(){var a=fa("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},fa(Nn,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:_o},new Fo("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new Fo("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof ai&&(x=x.adornedPart),x instanceof Xe){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isTreeExpanded){if(!E.canCollapseTree(x))return}else if(!E.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?E.collapseTree(x):E.expandTree(x)}}},a}),Uu("SubGraphExpanderButton",function(){var a=fa("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},fa(Nn,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:_o},new Fo("figure","isSubGraphExpanded",function(y,x){return x=x.panel,y?x._subGraphExpandedFigure:x._subGraphCollapsedFigure}).cp()));return a.click=function(y,x){if(x=x.part,x instanceof ai&&(x=x.adornedPart),x instanceof Bn){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isSubGraphExpanded){if(!E.canCollapseSubGraph(x))return}else if(!E.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?E.collapseSubGraph(x):E.expandSubGraph(x)}}},a}),Uu("ToolTip",function(){return fa(ai,Ie.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new jt(0,3),shadowBlur:5},fa(Nn,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new cn(0,0,4,6),spot2:new cn(1,1,-4,-4)}))}),Uu("ContextMenu",function(){return fa(ai,Ie.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new jt(0,3),shadowBlur:5},new Fo("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),Uu("ContextMenuButton",function(){var a=fa("Button");a.stretch=sn;var y=a.fb("ButtonBorder");return y instanceof Nn&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new cn(0,0,2,3),y.spot2=new cn(1,1,-2,-2)),a}),Uu("PanelExpanderButton",function(a){var y=a0(a,"COLLAPSIBLE"),x=fa("Button",{_buttonExpandedFigure:"M0 0 M0 6 L4 2 8 6 M8 8",_buttonCollapsedFigure:"M0 0 M0 2 L4 6 8 2 M8 8",_buttonFillNormal:"rgba(0, 0, 0, 0)",_buttonStrokeNormal:null,_buttonFillOver:"rgba(0, 0, 0, .2)",_buttonStrokeOver:null,_buttonFillPressed:"rgba(0, 0, 0, .4)",_buttonStrokePressed:null},fa(Nn,{name:"ButtonIcon",strokeWidth:2},new Fo("geometryString","visible",function(E){return E?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof Nn&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(E,b){var z=b.diagram;if(z!==null&&!z.isReadOnly){var tt=b.ih();tt===null&&(tt=b.part),tt!==null&&(b=tt.fb(y),b!==null&&(E.handled=!0,z.Ea("Collapse/Expand Panel"),b.visible=!b.visible,z.eb("Collapse/Expand Panel")))}},x}),Uu("CheckBoxButton",function(a){var y=a0(a);return a=fa("Button",{desiredSize:new We(14,14)},fa(Nn,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Le,geometryStretch:en,visible:!1},y!==""?new Fo("visible",y).Kx():[])),a.click=function(x,E){if(E instanceof Ie){var b=x.diagram;if(!(b===null||b.isReadOnly||y!==""&&b.model.isReadOnly)){x.handled=!0;var z=E.fb("ButtonIcon");b.Ea("checkbox"),z.visible=!z.visible,typeof E._doClick=="function"&&E._doClick(x,E),b.eb("checkbox")}}},a}),Uu("CheckBox",function(a){a=a0(a),a=fa("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new Rn(0,1,0,0)});var y=fa(Ie,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Rn(1),_buttonFillNormal:a._buttonFillNormal,_buttonStrokeNormal:a._buttonStrokeNormal,_buttonFillOver:a._buttonFillOver,_buttonStrokeOver:a._buttonStrokeOver,_buttonFillPressed:a._buttonFillPressed,_buttonStrokePressed:a._buttonStrokePressed,_buttonFillDisabled:a._buttonFillDisabled,mouseEnter:a.mouseEnter,mouseLeave:a.mouseLeave,actionDown:a.actionDown,actionUp:a.actionUp,actionCancel:a.actionCancel,actionMove:a.actionMove,click:a.click,_buttonClick:a.click});return a.mouseEnter=null,a.mouseLeave=null,a.actionDown=null,a.actionUp=null,a.actionCancel=null,a.actionMove=null,a.click=null,y}),Yt.None=we=new Ee(Yt,"None",0),Yt.Default=Ln=new Ee(Yt,"Default",0),Yt.Vertical=vn=new Ee(Yt,"Vertical",4),Yt.Horizontal=sn=new Ee(Yt,"Horizontal",5),Yt.Fill=Le=new Ee(Yt,"Fill",3),Yt.Uniform=en=new Ee(Yt,"Uniform",1),Yt.UniformToFill=Kn=new Ee(Yt,"UniformToFill",2),Yt.FlipVertical=zn=new Ee(Yt,"FlipVertical",1),Yt.FlipHorizontal=oi=new Ee(Yt,"FlipHorizontal",2),Yt.FlipBoth=Ei=new Ee(Yt,"FlipBoth",3),Yt.make=fa,Yt.getBuilders=function(){var a=new xn,y;for(y in df)if(y!==y.toLowerCase()){var x=df.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},Yt.defineBuilder=Uu,Yt.build=function(a,y,x){for(var E=[],b=2;ba&&(a+=360),a!==0){if(this.translate(y,x),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.ha[1]*a+this.ha[3]*E,z=this.ha[0]*-E+this.ha[2]*a,tt=this.ha[1]*-E+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*E,this.ha[1]=b,this.ha[2]=z,this.ha[3]=tt,this.translate(-y,-x)}},wd.className="STransform";function fg(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}fg.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},fg.className="SGradient";function wl(a,y,x){this.ownerDocument=a=y===void 0?Ke.document:y,this.cA="http://www.w3.org/2000/svg",a!==void 0&&(this.Oa=this.Ud("svg",{width:"1px",height:"1px",viewBox:"0 0 1 1"}),this.style.display="block",this.style.letterSpacing="normal",this.style.wordSpacing="normal",this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink")),this.hs=null,this.context=new Hs(this,x)}wl.prototype.resize=function(a,y,x,E){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=E+"px",this.Oa.setAttributeNS(null,"width",x+"px"),this.Oa.setAttributeNS(null,"height",E+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+x+" "+E),this.context.ww.firstElementChild.setAttributeNS(null,"width",x+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",E+"px"),!0):!1},wl.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),Pe(y))for(var E in y)a.setAttributeNS(E==="href"?"http://www.w3.org/1999/xlink":"",E,y[E]);return x!==void 0&&(a.textContent=x),a},wl.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},wl.prototype.focus=function(){this.Oa.focus()},wl.prototype.mx=function(){this.ownerDocument=null},fe.Object.defineProperties(wl.prototype,{width:{get:function(){return this.Oa.width.baseVal.value},set:function(a){this.Oa.setAttribute("width",a+"px")}},height:{get:function(){return this.Oa.height.baseVal.value},set:function(a){this.Oa.setAttribute("height",a+"px")}},style:{get:function(){return this.Oa.style}}}),wl.className="SVGSurface";function Hs(a,y){this.Gv=a,this.svg=a.Oa,this.stack=[],this.nh=[],this.fillStyle="#000000",this.font="10px sans-serif",this.globalAlpha=1,this.lineCap="butt",this.lineDashOffset=0,this.lineJoin="miter",this.lineWidth=1,this.miterLimit=10,this.shadowBlur=0,this.shadowColor="rgba(0, 0, 0, 0)",this.shadowOffsetY=this.shadowOffsetX=0,this.Il=!1,this.strokeStyle="#000000",this.textAlign="start",this.clipInsteadOfFill=!1,this.Vg=this.Br=this.Ar=0,this.yd=this.ad=null,this.path=[],this.Yl={},this.Ct=!1,this.Yg=null,this.uj=0,this.rb=new wd,this.j=l0(this),this.Nj=l0(this,"gojs-diagram"),this.Hl=this.ti=null;var x=Jr++,E=this.Ud("clipPath",{id:"mainClip"+x});E.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=E,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(E),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function Yy(a,y,x,E,b,z,tt){a.Nj===void 0?Oc(a,y,x,E,b,z,tt):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+E+", "+b+", "+z+", "+tt+")")}Pt=Hs.prototype,Pt.arc=function(a,y,x,E,b,z,tt,ot){var rt=2*Math.PI,at=rt-1e-6,ut=x*Math.cos(E),ft=x*Math.sin(E),mt=a+ut,yt=y+ft,At=z?0:1;E=z?E-b:b-E,(1e-6E&&(E=E%rt+rt),E>at?(this.path.push(["A",x,x,0,1,At,a-ut,y-ft]),this.path.push(["A",x,x,0,1,At,mt,yt])):1e-6=Math.PI),At,a+x*Math.cos(b),y+x*Math.sin(b)])},Pt.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Pt.Se=function(a){this.addPath(this.path,this.rb,a||0)},Pt.bezierCurveTo=function(a,y,x,E,b,z){this.path.push(["C",a,y,x,E,b,z])},Pt.clearRect=function(){},Pt.clip=function(){this.Yl.clipPath=!0},Pt.closePath=function(){this.path.push(["z"])},Pt.createLinearGradient=function(a,y,x,E){var b=new fg("linear");return b.x1=a,b.y1=y,b.x2=x,b.y2=E,b},Pt.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var x=this.eA;if(x[y])return"url(#"+x[y]+")";var E="PATTERN"+Jr++,b={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:E,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(Sd,b)),this.svg.appendChild(a),x[y]=E,"url(#"+E+")"},Pt.createRadialGradient=function(a,y,x,E,b,z){var tt=new fg("radial");return tt.x1=a,tt.y1=y,tt.r1=x,tt.x2=E,tt.y2=b,tt.r2=z,tt};function Zy(a,y,x,E,b,z,tt,ot,rt){E=ot/E,b=rt/b,z===0&&tt===0||a.rb.translate(z,tt),E===1&&b===1||a.rb.scale(E,b),y===0&&x===0||a.rb.translate(-y,-x)}Pt.drawImage=function(a,y,x,E,b,z,tt,ot,rt){var at="";a instanceof HTMLCanvasElement&&(at=a.toDataURL()),a instanceof HTMLImageElement&&(at=a.getAttribute("src"));var ut=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,E===void 0&&(z=y,tt=x,ot=E=ut,rt=b=a),E=E||0,b=b||0,ot=ot||0,rt=rt||0,Zy(this,y,x,E,b,z||0,tt||0,ot,rt),z={x:0,y:0,width:ut||E,height:a||b,href:at},Jt.$(E,ot)&&Jt.$(b,rt)?at.toLowerCase().indexOf(".svg")===-1&&at.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||E!==ut||b!==a)&&(E+=y,b+=x,z["clip-path"]="path('M "+y+","+x+" L "+E+" "+x+" L "+E+" "+b+" L "+y+" "+b+" z')"),gf(this,Sd,z,this.rb),this.addElement(Sd,z)},Pt.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),iv(this,this.Yl)},Pt.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Pt.fillRect=function(a,y,x,E){a=[a,y,x,E],a={x:a[0],y:a[1],width:a[2],height:a[3]},gf(this,"fill",a,this.rb),this.addElement("rect",a)},Pt.ox=function(a,y,x,E){a={x:a,y,width:x,height:E},gf(this,"fill",a,this.rb),iv(this,a),this.svg.prepend(this.Ud("rect",a))},Pt.fillText=function(a,y,x){a=[a,y,x],y=this.textAlign,y==="left"?y="start":y==="right"?y="end":y==="center"&&(y="middle"),y={x:a[1],y:a[2],style:"font: "+this.font,"text-anchor":y},gf(this,"fill",y,this.rb),this.addElement("text",y,a[0])},Pt.lineTo=function(a,y){this.path.push(["L",a,y])},Pt.moveTo=function(a,y){this.path.push(["M",a,y])},Pt.quadraticCurveTo=function(a,y,x,E){this.path.push(["Q",a,y,x,E])},Pt.rect=function(a,y,x,E){this.path.push(["M",a,y],["L",a+x,y],["L",a+x,y+E],["L",a,y+E],["z"])},Pt.restore=function(){this.rb=this.stack.pop(),this.path=this.stack.pop();var a=this.stack.pop();this.fillStyle=a.fillStyle,this.font=a.font,this.globalAlpha=a.globalAlpha,this.lineCap=a.lineCap,this.lineDashOffset=a.lineDashOffset,this.lineJoin=a.lineJoin,this.lineWidth=a.lineWidth,this.miterLimit=a.miterLimit,this.shadowBlur=a.shadowBlur,this.shadowColor=a.shadowColor,this.shadowOffsetX=a.shadowOffsetX,this.shadowOffsetY=a.shadowOffsetY,this.strokeStyle=a.strokeStyle,this.textAlign=a.textAlign,this.bk=a.bk},Pt.save=function(){this.stack.push({fillStyle:this.fillStyle,font:this.font,globalAlpha:this.globalAlpha,lineCap:this.lineCap,lineDashOffset:this.lineDashOffset,lineJoin:this.lineJoin,lineWidth:this.lineWidth,miterLimit:this.miterLimit,shadowBlur:this.shadowBlur,shadowColor:this.shadowColor,shadowOffsetX:this.shadowOffsetX,shadowOffsetY:this.shadowOffsetY,strokeStyle:this.strokeStyle,textAlign:this.textAlign,bk:this.bk});for(var a=[],y=0;yut.offset?1:-1}),b=0;bx?(this.scale(x/a,1),this.translate((a-x)/2,0)):x>a&&(this.scale(1,a/x),this.translate(0,(x-a)/2)),this.Hm?this.clip():this.fill(y),a>x?(this.translate(-(a-x)/2,0),this.scale(1/(x/a),1)):x>a&&(this.translate(0,-(x-a)/2),this.scale(1,1/(a/x)))}else this.Hm?this.clip():this.fill(y)},Pt.jk=function(){this.Hm||this.stroke()},Pt.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Pt.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Pt.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(mS),a.lineDashOffset=0)},Pt.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Pt.Hs=function(){},fe.Object.defineProperties(Cd.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(a){this.ct!==a&&(this.ct=this.Z.fillStyle=a)}},font:{get:function(){return this.Z.font},set:function(a){this.dt!==a&&(this.dt=this.Z.font=a)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(a){this.Z.globalAlpha=a}},lineCap:{get:function(){return this.Z.lineCap},set:function(a){this.Z.lineCap=a}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(a){this.Z.lineDashOffset=a}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(a){this.Z.lineJoin=a}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(a){this.Z.lineWidth=a}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(a){this.Z.miterLimit=a}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(a){this.Z.shadowBlur=a}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(a){this.Z.shadowColor=a}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(a){this.Z.shadowOffsetX=a}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(a){this.Z.shadowOffsetY=a}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(a){this.et!==a&&(this.et=this.Z.strokeStyle=a)}},textAlign:{get:function(){return this.Z.textAlign},set:function(a){this.Z.textAlign=a}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(a){this.Z.imageSmoothingEnabled=a}},filter:{get:function(){return this.Z.filter},set:function(a){this.Z.filter=a===""?"none":a}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(a){this.Hm=a}}});var mS=Object.freeze([]);Cd.className="CanvasSurfaceContext";function jc(){this.F=this.o=this.u=this.j=0}jc.className="ColorNumbers";function Si(a,y){mf||(hv(),mf=!0),eo(this),this._isFrozen=!1,a===void 0?(this.na=Xu,this.xk="black"):typeof a=="string"?(this.na=Xu,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===du?(this.Qd=Ys,this.Lk=js):this.Lk=a===ca?this.Qd=pi:this.Qd=er,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}Si.prototype.copy=function(){var a=new Si;return a.na=this.na,a.xk=this.xk,a.Qd=this.Qd.J(),a.Lk=this.Lk.J(),a.Gr=this.Gr,a.Xp=this.Xp,this.we!==null&&(a.we=this.we.copy()),a.cr=this.cr,a},Pt=Si.prototype,Pt.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Pt.ka=function(){return Object.isFrozen(this)&&ee("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Pt.qb=function(a){a.classType===Si&&(this.type=a)},Pt.toString=function(){var a="Brush(";if(this.type===Xu)a+=this.color;else if(a=this.type===du?a+"Linear ":this.type===ca?a+"Radial ":this.type===vf?a+"Pattern ":a+"(unknown) ",a+=this.start+" "+this.end,this.colorStops!==null)for(var y=this.colorStops.iterator;y.next();)a+=" "+y.key+":"+y.value;return a+")"},Pt.addColorStop=function(a,y){return this._isFrozen&&mn(this),(typeof a!="number"||!isFinite(a)||1a)&&Zn(a,"0 <= loc <= 1",Si,"addColorStop:loc"),this.we===null&&(this.we=new xn),this.we.add(a,y),this.na===Xu&&(this.type=du),this.xe=null,this},Pt.Vz=function(a,y){if(this._isFrozen&&mn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?yf:y,this.type===Xu)hu(this.color),this.color=cf(a,y);else if((this.type===du||this.type===ca)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)hu(x.value),this.addColorStop(x.key,cf(a,y));return this};function $y(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?yf:x,hu(a),cf(y,x)}Pt.Wy=function(a,y){if(this._isFrozen&&mn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?yf:y,this.type===Xu)hu(this.color),this.color=cf(-a,y);else if((this.type===du||this.type===ca)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)hu(x.value),this.addColorStop(x.key,cf(-a,y));return this};function tA(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?yf:x,hu(a),cf(-y,x)}function rv(a,y,x){hu(a),a=bi.j;var E=bi.u,b=bi.o,z=bi.F;return hu(y),x===void 0&&(x=.5),"rgba("+Math.round((bi.j-a)*x+a)+", "+Math.round((bi.u-E)*x+E)+", "+Math.round((bi.o-b)*x+b)+", "+Math.round((bi.F-z)*x+z)+")"}Pt.Gx=function(){if(this.type===Xu)return ff(this.color);if((this.type===du||this.type===ca)&&this.colorStops!==null){var a=this.colorStops;if(this.type===ca)return ff(a.first().value);if(a.get(.5)!==null)return ff(a.get(.5));if(a.count===2)return a=a.Fa(),ff(rv(a[0].value,a[1].value));for(var y=a.iterator,x=-1,E=-1,b=1,z=1;y.next();){var tt=y.key,ot=Math.abs(.5-y.key);b>z&&ot=b&&otE&&(z=x,x=E,E=z,z=b),b=E-x,ff(rv(a.get(x),a.get(E),1-z/b))}return!1};function ff(a){return a?a instanceof Si?a.Gx():(hu(a),128>(299*bi.j+587*bi.u+114*bi.o)/1e3):!1}function cf(a,y){switch(y){case yf:y=100*av(bi.j);var x=100*av(bi.u),E=100*av(bi.o);return as.j=.4124564*y+.3575761*x+.1804375*E,as.u=.2126729*y+.7151522*x+.072175*E,as.o=.0193339*y+.119192*x+.9503041*E,as.F=bi.F,y=uv(as.j/pf[0]),x=uv(as.u/pf[1]),E=uv(as.o/pf[2]),Ql.j=116*x-16,Ql.u=500*(y-x),Ql.o=200*(x-E),Ql.F=as.F,Ql.j=Math.min(100,Math.max(0,Ql.j+100*a)),a=(Ql.j+16)/116,y=a-Ql.o/200,as.j=pf[0]*eA(Ql.u/500+a),as.u=pf[1]*(Ql.j>h0*dv?Math.pow(a,3):Ql.j/h0),as.o=pf[2]*eA(y),as.F=Ql.F,a=-.969266*as.j+1.8760108*as.u+.041556*as.o,y=.0556434*as.j+-.2040259*as.u+1.0572252*as.o,bi.j=255*lv((3.2404542*as.j+-1.5371385*as.u+-.4985314*as.o)/100),bi.u=255*lv(a/100),bi.o=255*lv(y/100),bi.F=as.F,bi.j=Math.round(bi.j),255bi.j&&(bi.j=0),bi.u=Math.round(bi.u),255bi.u&&(bi.u=0),bi.o=Math.round(bi.o),255bi.o&&(bi.o=0),"rgba("+bi.j+", "+bi.u+", "+bi.o+", "+bi.F+")";case nA:return sv(),ta.o=Math.min(100,Math.max(0,ta.o+100*a)),"hsla("+ta.j+", "+ta.u+"%, "+ta.o+"%, "+ta.F+")";default:ee("Unknown color space: "+y)}}function hu(a){mf||(hv(),mf=!0);var y=gv;if(y!==null){y.clearRect(0,0,1,1),y.fillStyle="#000000";var x=y.fillStyle;y.fillStyle=a,y.fillStyle!==x?(y.fillRect(0,0,1,1),a=y.getImageData(0,0,1,1).data,bi.j=a[0],bi.u=a[1],bi.o=a[2],bi.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,bi.j=0,bi.u=0,bi.o=0,bi.F=1)}}function sv(){var a=bi.j/255,y=bi.u/255,x=bi.o/255,E=Math.max(a,y,x),b=Math.min(a,y,x),z=E-b;if(b=(E+b)/2,z===0)var tt=a=0;else{switch(E){case a:tt=(y-x)/z%6;break;case y:tt=(x-a)/z+2;break;case x:tt=(a-y)/z+4}tt*=60,0>tt&&(tt+=360),a=z/(1-Math.abs(2*b-1))}ta.j=Math.round(tt),ta.u=Math.round(100*a),ta.o=Math.round(100*b),ta.F=bi.F}function av(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function lv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function uv(a){return a>dv?Math.pow(a,1/3):(h0*a+16)/116}function eA(a){var y=a*a*a;return y>dv?y:(116*a-16)/h0}function cg(a,y){typeof a!="string"&&(a instanceof Si||ee("Value for "+y+" must be a color string or a Brush, not "+a))}function hv(){gv=Ao?new ka(null,void 0,{willReadFrequently:!0}).context:null}fe.Object.defineProperties(Si.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&mn(this,a),this.na=a,this.start.Mc()&&(a===du?this.start=Ys:a===ca&&(this.start=pi)),this.end.Mc()&&(a===du?this.end=js:a===ca&&(this.end=pi)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&mn(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&mn(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&mn(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&mn(this,a),0>a&&Zn(a,">= zero",Si,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&mn(this,a),0>a&&Zn(a,">= zero",Si,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&mn(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&mn(this,a),this.cr=a,this.xe=null}}}),Si.prototype.isDark=Si.prototype.Gx,Si.prototype.darkenBy=Si.prototype.Wy,Si.prototype.lightenBy=Si.prototype.Vz,Si.prototype.addColorStop=Si.prototype.addColorStop;var dv=216/24389,h0=24389/27,pf=[95.047,100,108.883],gv=null,bi=new jc,ta=new jc,as=new jc,Ql=new jc,mf=!1;Si.className="Brush";var Xu;Si.Solid=Xu=new Ee(Si,"Solid",0);var du;Si.Linear=du=new Ee(Si,"Linear",1);var ca;Si.Radial=ca=new Ee(Si,"Radial",2);var vf;Si.Pattern=vf=new Ee(Si,"Pattern",4);var yf;Si.Lab=yf=new Ee(Si,"Lab",5);var nA;Si.HSL=nA=new Ee(Si,"HSL",6),Si.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var x=Math.abs(y-a);y=Math.floor(a+Math.random()*x).toString(16);var E=Math.floor(a+Math.random()*x).toString(16);return a=Math.floor(a+Math.random()*x).toString(16),2>y.length&&(y="0"+y),2>E.length&&(E="0"+E),2>a.length&&(a="0"+a),"#"+y+E+a},Si.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;mf||(hv(),mf=!0);var y=gv;if(y===null)return!0;y.fillStyle="#000000";var x=y.fillStyle;return y.fillStyle=a,y.fillStyle!==x?!0:(y.fillStyle="#FFFFFF",x=y.fillStyle,y.fillStyle=a,y.fillStyle!==x)},Si.lighten=function(a){return $y(a)},Si.lightenBy=$y,Si.darken=function(a){return tA(a)},Si.darkenBy=tA,Si.mix=rv,Si.isDark=ff;function Ko(){this.xa="Base"}Ko.prototype.measure=function(){},Ko.prototype.Yz=function(a,y,x,E,b){a.measure(y,x,E,b)},Ko.prototype.arrange=function(){},Ko.prototype.Ly=function(a,y,x,E,b,z){a.arrange(y,x,E,b,z)},Ko.prototype.iA=function(a){a.Uj()},Ko.prototype.gc=function(){},fe.Object.defineProperties(Ko.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return Ie}}}),Ko.prototype.remeasureObject=Ko.prototype.iA,Ko.prototype.arrangeElement=Ko.prototype.Ly,Ko.prototype.measureElement=Ko.prototype.Yz,Ko.className="PanelLayout";function d0(){this.xa="Base"}Ae(d0,Ko),d0.prototype.measure=function(a,y,x,E,b,z,tt){var ot=E.length;a=gu(a);for(var rt=0;rttn&&(sr=Math.max(tn-Kh,0));var zm=ye.oa===0;ye.oc=ye.oc+sr,ye.actual=ye.oa+sr,tn=Math.max(tn-(sr+(zm?Kh:0)),0)}if(Ns.columnSpan===1&&(Yr===we||Yr===vn)){ye=a.Eb(Kr);var Ep=ye.Wc();sr=Math.max(Td-ye.actual,0),sr+Ep>Ue&&(sr=Math.max(Ue-Ep,0));var Qy=ye.oa===0;ye.oc=ye.oc+sr,ye.actual=ye.oa+sr,Ue=Math.max(Ue-(sr+(Qy?Ep:0)),0)}Vh&&Ns.Uj()}}}}}ei(Rt);var Zl=0,pu=0;z=a.columnCount;for(var Lg=0;Lg=a.rowCount);rh++)ye=a.Fb(wo.row+rh),sr=0,sr=Yr===Le||Yr===vn?Math.max(ye.minimum,gl[wo.row+rh]===0?ye.maximum:Math.min(gl[wo.row+rh],ye.maximum)):Math.max(ye.minimum,isNaN(ye.Hc)?ye.maximum:Math.min(ye.Hc,ye.maximum)),yu.height+=sr,Ks+=ye.minimum;for(var ba=1;ba=a.columnCount);ba++)ye=a.Eb(wo.column+ba),sr=0,sr=Yr===Le||Yr===sn?Math.max(ye.minimum,Aa[wo.column+ba]===0?ye.maximum:Math.min(Aa[wo.column+ba],ye.maximum)):Math.max(ye.minimum,isNaN(ye.Hc)?ye.maximum:Math.min(ye.Hc,ye.maximum)),yu.width+=sr,Um+=ye.minimum;Pr.width+=yu.width,Pr.height+=yu.height;var Yf=wo.margin,_h=Yf.right+Yf.left,Lp=Yf.top+Yf.bottom;wo.measure(Pr.width,Pr.height,Um,Ks);for(var Zf=wo.measuredBounds,kl=Math.max(Zf.width+_h,0),jd=Math.max(Zf.height+Lp,0),$h=0,Jf=0;Jf=a.rowCount);Jf++)ye=a.Fb(wo.row+Jf),$h+=ye.total||0;if($h=sh)&&!(wo.row+Au>=a.rowCount);Au++){ye=a.Fb(wo.row+Au);var lh=ye.oa||0,Rd=ah(wo,ye,ql);ye.actual=Math.min(ye.maximum,lh+Rd),ye.oa!==lh&&(sh-=ye.oa-lh)}for(;0fl&&(ye.actual=Math.min(ye.maximum,fl+sh),ye.oa!==fl&&(sh-=ye.oa-fl)),ye.index===0)break;ye=a.Fb(ye.index-1)}}for(var Ig=0,uh=0;uh=a.columnCount);uh++)ye=a.Eb(wo.column+uh),Ig+=ye.total||0;if(Ig=Fg)&&!(wo.column+zd>=a.columnCount);zd++){ye=a.Eb(wo.column+zd);var Mp=ye.oa||0,Uy=Su(wo,ye,Gy);ye.actual=Math.min(ye.maximum,Mp+Uy),ye.oa!==Mp&&(Fg-=ye.oa-Mp)}for(;0Xm&&(ye.actual=Math.min(ye.maximum,Xm+Fg),ye.oa!==Xm&&(Fg-=ye.oa-Xm)),ye.index===0)break;ye=a.Eb(ye.index-1)}}}}ei(zt),We.free(yu),We.free(Pr),gl!==void 0&&ei(gl),Aa!==void 0&&ei(Aa);var Ng=0,Tg=0,Wm=a.desiredSize,cS=a.maxSize;Yr=Ss(a,!0);var kp=pu=Zl=0,Ip=0;z=a.columnCount;for(var Vm=0;Vm=a.rowCount);ye++){var Cn=a.Fb(Rt+ye);Cn.oa!==0&&(It.height+=Cn.total)}for(ye=1;ye=a.columnCount);ye++)Cn=a.Eb(Gt+ye),Cn.oa!==0&&(It.width+=Cn.total);var yn=Kt.oa+It.width,di=zt.oa+It.height;ye=ot,Cn=rt;var ki=yn,rr=di,hr=ot,Vr=rt,sr=yn,eh=di;ot+yn>x.width&&(sr=Math.max(x.width-ot,0)),rt+di>x.height&&(eh=Math.max(x.height-rt,0));var No=Ye.alignment;if(No.Xb()){No=a.defaultAlignment,No.sb()||(No=pi);var ul=No.x,Kr=No.y,nh=No.offsetX;No=No.offsetY;var ia=Kt.alignment,Ta=zt.alignment;ia.sb()&&(ul=ia.x,nh=ia.offsetX),Ta.sb()&&(Kr=Ta.y,No=Ta.offsetY)}else ul=No.x,Kr=No.y,nh=No.offsetX,No=No.offsetY;(isNaN(ul)||isNaN(Kr))&&(Kr=ul=.5,No=nh=0),ia=Fe.width,Ta=Fe.height;var Xs=Ye.margin,Ns=Xs.left+Xs.right,Vh=Xs.top+Xs.bottom,hl=ol(Ye,zt,Kt,!1);!isNaN(Ye.desiredSize.width)||hl!==Le&&hl!==sn||(ia=Math.max(yn-Ns,0)),!isNaN(Ye.desiredSize.height)||hl!==Le&&hl!==vn||(Ta=Math.max(di-Vh,0)),yn=Ye.maxSize,di=Ye.minSize,ia=Math.min(yn.width,ia),Ta=Math.min(yn.height,Ta),ia=Math.max(di.width,ia),Ta=Math.max(di.height,Ta),yn=Ta+Vh,ye+=ki*ul-(ia+Ns)*ul+nh+Xs.left,Cn+=rr*Kr-yn*Kr+No+Xs.top,Ye.visible&&(Lr(hr,Vr,sr,eh,ye,Cn,Fe.width,Fe.height)?Ye.arrange(ye,Cn,ia,Ta):Ye.arrange(ye,Cn,ia,Ta,new ce(hr,Vr,sr,eh)))}}}for(We.free(It),a=0;a=x&&(x=1);var E=a.gridCellSize,b=E.width;E=E.height;var z=a.naturalBounds,tt=a.actualBounds,ot=z.width,rt=z.height,at=Math.ceil(ot/b),ut=Math.ceil(rt/E),ft=a.gridOrigin,mt=ft.x;ft=ft.y,y.save(),y.beginPath(),y.rect(0,0,ot,rt),y.clip(),y.Se();for(var yt=[],At=a.O.s,Bt=At.length,Dt=0;Dtzt)){It=pv(It.figure);for(var Gt=0;Gtzt&&Rt.push(Kt))}}}}for(At=a.O.s,Bt=At.length,Dt=0;Dtb*It*x))){if(zt=ie.segmentIndex,(!isFinite(zt)||isNaN(zt))&&(zt=0),0>zt&&(zt=It-Math.min(-zt,It)),zt=Math.round(zt%It),It=ie.opacity,Gt=1,It!==1){if(It===0)continue;Gt=y.globalAlpha,y.globalAlpha=Gt*It}Kt=yt[Dt];var Ue=!1,tn=ie.strokeDashArray;if(tn!==null&&(Ue=!0,y.js(tn,ie.strokeDashOffset)),ie.figure==="LineV"&&ie.stroke!==null&&0y)return a%y===x;if(a%y!==x)return!1;y=E.length;for(var b=0;bft)Rt.measure(1/0,1/0,0,0),zt=Rt.measuredBounds,x.ed(zt),yt.push(zt);else{var Gt=Rt.segmentIndex,Kt=Rt.segmentFraction,ie=Rt.alignmentFocus;ie.Mc()&&(ie=pi);var Ue=Rt.segmentOrientation,tn=Rt.segmentOffset;if(isNaN(Gt)){var Ye=rt.ua;zt=Jn(),Ye.Qu(Kt,zt);var Fe=jt.allocAt(zt[0],zt[1]);if(Fe.add(rt.i(0)),Ye.type===be.j?Fe.offset(-Ye.startX,-Ye.startY):(Ye=Ye.figures.first(),Ye!==null&&Fe.offset(-Ye.startX,-Ye.startY)),Ye=zt[2],Ue!==us){var ye=rt.computeAngle(Rt,Ue,Ye);Rt.Kb=ye}ye=Fe.x-y.x;var Cn=Fe.y-y.y;jt.free(Fe),ei(zt)}else if(Gt<-ft||Gt>=ft)zt=jt.alloc(),rt.vg(),rt.computeMidPoint(zt),Ye=rt.midAngle,Ue!==us&&(ye=rt.computeAngle(Rt,Ue,Ye),Rt.Kb=ye),ye=zt.x-y.x,Cn=zt.y-y.y,jt.free(zt);else{if(ye=0,0<=Gt?(Cn=ut.M(Gt),zt=Gtyn+10?0<=Gt?Ye.ab(Cn):Cn.ab(Ye):yn>Fe+10?0<=Gt?zt.ab(ye):ye.ab(zt):0<=Gt?Ye.ab(ye):ye.ab(Ye)}else Ye=0<=Gt?Cn.ab(zt):zt.ab(Cn);Ue!==us&&(ye=rt.computeAngle(Rt,Ue,Ye),Rt.Kb=ye),ye=Cn.x+(zt.x-Cn.x)*Kt-y.x,Cn=Cn.y+(zt.y-Cn.y)*Kt-y.y}Rt.measure(1/0,1/0,0,0),zt=Rt.measuredBounds,Fe=Rt.naturalBounds;var di=0;Rt instanceof Nn&&(di=Rt.strokeWidth),yn=Fe.width+di;var ki=Fe.height+di;At.reset(),At.translate(-zt.x,-zt.y),At.scale(Rt.scale,Rt.scale),At.rotate(Ue===us?Rt.angle:Ye,yn/2,ki/2),Ue!==qc&&Ue!==$c||At.rotate(90,yn/2,ki/2),Ue!==_c&&Ue!==tp||At.rotate(-90,yn/2,ki/2),Ue===q0&&(45Ye||225Ye)&&At.rotate(-Ye,yn/2,ki/2),Fe=new ce(0,0,yn,ki),Bt.xi(Fe,ie),At.Ga(Bt),ie=-Bt.x+di/2*Rt.scale,Rt=-Bt.y+di/2*Rt.scale,Dt.assign(tn),di=isNaN(tn.x);var rr=isNaN(tn.y);if(di||rr){yn=yn/2+3,ki=ki/2+3;var hr=45<=Ye&&135>=Ye,Vr=225<=Ye&&315>=Ye;Ue===us&&(hr||Vr)?(Dt.x=rr?yn:tn.y,Dt.y=di?ki:tn.x,hr?0<=Gt||isNaN(Gt)&&.5>Kt||!di||(Dt.y=-ki):Vr&&((0<=Gt||isNaN(Gt)&&.5>Kt)&&di&&(Dt.y=-ki),rr&&(Dt.x=-yn))):(di&&(Dt.x=0<=Gt||isNaN(Gt)&&.5>Kt?yn:-yn),rr&&(Dt.y=-ki),Dt.rotate(Ye))}else Dt.rotate(Ye);ye+=Dt.x,Cn+=Dt.y,Fe.set(zt),Fe.h(ye+ie,Cn+Rt,zt.width,zt.height),yt.push(Fe),x.ed(Fe)}}if(tt!==null)for(E=tt.labelNodes;E.next();)E.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),Bs(b,x.width||0,x.height||0),Hn.free(At),jt.free(Bt),jt.free(Dt)}}}},x0.prototype.arrange=function(a,y){var x=y.length;if(a instanceof ai||a instanceof Ne){var E=a,b=null;a instanceof ai&&(b=a,E=b.adornedPart);var z=a instanceof ai?null:E.path,tt=a.j;if(tt.length!==0){var ot=0;if(z!==null&&ot=x)At=jt.alloc(),yt=ft,Dt=At,yt.vg(),yt.computeMidPoint(Dt),yt=ft.midAngle,at!==us&&(ft=ft.computeAngle(tt,at,yt),tt.angle=ft),ft=At.x,Dt=At.y,jt.free(At);else{if(Bt=0,0<=ot?(At=y.s[ot],Dt=otRt+10?0<=ot?yt.ab(At):At.ab(yt):Rt>It+10?0<=ot?Dt.ab(Bt):Bt.ab(Dt):0<=ot?yt.ab(Bt):Bt.ab(yt)}else yt=0<=ot?At.ab(Dt):Dt.ab(At);at!==us&&(ft=ft.computeAngle(tt,at,yt),tt.angle=ft),ft=At.x+(Dt.x-At.x)*rt,Dt=At.y+(Dt.y-At.y)*rt}if(mt.ys())tt.location=new jt(ft,Dt);else{mt.Mc()&&(mt=pi),At=Hn.alloc(),At.reset(),At.scale(tt.scale,tt.scale),At.rotate(tt.angle,0,0);var zt=tt.naturalBounds;Bt=ce.allocAt(0,0,zt.width,zt.height),It=jt.alloc(),It.xi(Bt,mt),At.Ga(It),mt=-It.x,Rt=-It.y;var Gt=zt.width,Kt=zt.height;zt=jt.alloc(),zt.assign(ut);var ie=isNaN(ut.x),Ue=isNaN(ut.y);if(ie||Ue){Gt=Gt/2+3,Kt=Kt/2+3;var tn=45<=yt&&135>=yt,Ye=225<=yt&&315>=yt;at===us&&(tn||Ye)?(zt.x=Ue?Gt:ut.y,zt.y=ie?Kt:ut.x,tn?0<=ot||isNaN(ot)&&.5>rt||!ie||(zt.y=-Kt):Ye&&((0<=ot||isNaN(ot)&&.5>rt)&&ie&&(zt.y=-Kt),Ue&&(zt.x=-Gt))):(ie&&(zt.x=0<=ot||isNaN(ot)&&.5>rt?Gt:-Gt),Ue&&(zt.y=-Kt),zt.rotate(yt))}else zt.rotate(yt);ft+=zt.x,Dt+=zt.y,At.pp(Bt),mt+=Bt.x,Rt+=Bt.y,ot=jt.allocAt(ft+mt,Dt+Rt),tt.move(ot),jt.free(ot),jt.free(zt),jt.free(It),ce.free(Bt),Hn.free(At)}}b!==null?b.Ul(!1):E.Ul(!1),E=NA(a),a.location.h(a.position.x+E.x,a.position.y+E.y),jt.free(E)}};function iA(a,y,x,E){if($s(E)!==!1){var b=E.strokeWidth;b===0&&a instanceof ai&&a.type===Ie.Link&&a.adornedObject instanceof Nn&&(b=a.adornedObject.strokeWidth),b*=E.Ca,a instanceof Ne&&a.ua!==null?(a=a.geometry.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):a instanceof ai&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):E.Ge(-(b/2),-(b/2),y+b,x+b),b=E.desiredSize,b.w()||E.ua===null?E.dc.h(0,0,b.width,b.height):E.dc.assign(E.ua.bounds),Ho(E,!1)}}function zc(){this.xa="Base"}Ae(zc,Ko),zc.prototype.measure=function(a,y,x,E,b,z,tt){var ot=a.Pb();a.graduatedBounds=[];var rt=ot.margin,at=rt.right+rt.left,ut=rt.top+rt.bottom;ot.measure(y,x,z,tt);var ft=ot.measuredBounds,mt=new ce(-rt.left,-rt.top,Math.max(ft.width+at,0),Math.max(ft.height+ut,0));a.graduatedBounds.push(mt),b.assign(mt);for(var yt=ot.geometry,At=ot.strokeWidth,Bt=yt.flattenedSegments,Dt=yt.flattenedLengths,It=yt.flattenedTotalLength,Rt=Bt.length,zt=0,Gt=0,Kt=Jn(),ie=0;ieyn&&(yn+=360),tn.push(yn)}zt=ye,Gt=Cn}Kt.push(tn)}if(a.graduatedIntervals===null){for(var di=[],ki=a.O.s,rr=ki.length,hr=0;hreh)){for(var No=0;Noeh&&sr.push(Kr)}}}}}a.graduatedIntervals=di}var nh=a.graduatedIntervals,ia=a.O.s,Ta=ia.length,Xs=0,Ns=0,Vh=It;a.graduatedMarks=[];for(var hl,Hf=0;HfCp*Yr*It/a.graduatedRange&&Ws.graduatedSkip===null)){var Bg=Dt[0][0],Bl=0,Ts=0;Ns=It*Ws.graduatedStart-1e-4,Vh=It*Ws.graduatedEnd+1e-4;var Td=Cp*Yr,Vs=a.graduatedTickBase;if(Vsa.graduatedMin+Td&&(Vs-=Math.floor((Vs-a.graduatedMin)/Td)*Td);for(var zm=nh[Hf],Ep=Vs,Qy=1e-6*a.graduatedMax,Zl=1;Vs<=a.graduatedMax+Qy;Zl++){t:{for(var pu=zm.length,Lg=0;Lg-Gf){var Zh=!1;break t}}Zh=!0}if(Zh&&(Vs>a.graduatedMax&&(Vs=a.graduatedMax),Ws.graduatedSkip===null||Ws instanceof Ni&&!Ws.graduatedSkip(Vs,Ws)||Ws instanceof Nn&&!Ws.graduatedSkip(Vs,Ws))&&(Xs=(Vs-a.graduatedMin)*It/a.graduatedRange,Xs>It&&(Xs=It),Ns<=Xs&&Xs<=Vh)){for(var Jl=Kt[Bl][Ts],ih=Dt[Bl][Ts];BlBg&&Tsmu&&.4995mu?0mu||.9995Mg){var Xf=1-Math.abs(.5-mu);Jl=(dl*Xf+Ml*(1-Xf))%360;break t}}}Jl=dl}if(Ws instanceof Ni){var Ja="";Ws.graduatedFunction!==null?(Ja=Ws.graduatedFunction(Vs,Ws),Ja=Ja!=null?Ja.toString():""):Ja=(+Vs.toFixed(2)).toString(),Ja!==""&&hl.push({$l:Uf,angle:Jl,text:Ja})}else hl.push({$l:Uf,angle:Jl})}Vs=Ep+Zl*Td}}}a.graduatedMarks.push(hl)}ei(Kt);var Pr=a.graduatedMarks;if(Pr!==null)for(var Bp=E.length,cs=0;csqa;qa++){switch(qa){case 0:bs.h(yu,gl);break;case 1:bs.h(yu+Wf,gl);break;case 2:bs.h(yu,gl+Od);break;case 3:bs.h(yu+Wf,gl+Od)}bs.rotate(wo+To.angle),bs.offset(Gm,Kf),Vf===0&&qa===0?Aa.h(bs.x,bs.y,0,0):Aa.Ye(bs),bs.offset(-Gm,-Kf),bs.rotate(-wo-To.angle)}jt.free(bs),vu.graduatedBounds!==null&&vu.graduatedBounds.push(Aa),Co(oh,Aa.x,Aa.y,Aa.width,Aa.height)}else if(To instanceof Ni){var Da=a,Um=b;Da.temporaryTextBlock===null&&(Da.temporaryTextBlock=new Ni);var Ks=Da.temporaryTextBlock;yA(Ks,To);var rh=To.alignmentFocus;rh.Mc()&&(rh=Ys);for(var ba=To.segmentOrientation,Yf=To.segmentOffset,_h=new ce,Lp=0,Zf=0,kl=0,jd=0,$h=0,Jf=ps.length,sh=0;shkl||225kl)&&fl.rotate(-kl,lh/2,Rd/2);var Ig=ce.allocAt(0,0,lh,Rd),uh=jt.alloc();uh.xi(Ig,rh),fl.Ga(uh);var Fg=-uh.x,Gy=-uh.y,Su=jt.alloc();Su.assign(Yf),isNaN(Su.x)&&(Su.x=lh/2+3),isNaN(Su.y)&&(Su.y=-(Rd/2+3)),Su.rotate(kl),Lp+=Su.x+Fg,Zf+=Su.y+Gy;var zd=new ce(Lp,Zf,ah.width,ah.height),Mp=new ce(ah.x,ah.y,ah.width,ah.height),Uy=new ce(Au.x,Au.y,Au.width,Au.height);ql.Sz=jd,ql.lineCount=Ks.lineCount,ql.lines=[Ks.Cb,Ks.Ih,Ks.df,Ks.Le,Ks.Qc,Ks.Qb,Ks.ze],ql.actualBounds=zd,ql.measuredBounds=Mp,ql.naturalBounds=Uy,sh===0?_h.assign(zd):_h.ed(zd),jt.free(Su),jt.free(uh),ce.free(Ig),Hn.free(fl)}Da.graduatedBounds!==null&&Da.graduatedBounds.push(_h),Co(Um,_h.x,_h.y,_h.width,_h.height)}Ho(To,!1)}}},zc.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var E=a.Pb(),b=a.graduatedMarks;if(b!==null){var z=a.graduatedBounds,tt=0,ot=z[tt];tt++,E!==null&&E.arrange(ot.x-x.x,ot.y-x.y,ot.width,ot.height);for(var rt=y.length,at=0;at=tt&&(tt=1);for(var ot=z.actualBounds,rt=a.O.s,at=a.graduatedMarks,ut=rt.length,ft=0;fta.graduatedTickUnit*mt.interval*z.geometry.flattenedTotalLength/a.graduatedRange*tt&&mt.graduatedSkip===null)){var Bt=mt.measuredBounds,Dt=mt.strokeWidth*mt.scale,It=mt.alignmentFocus;It.Mc()&&(It=Ys);for(var Rt=0;Rttt.height)continue}else if(at.position>tt.width)continue;var ut=at.separatorStrokeWidth;isNaN(ut)&&(ut=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var ft=at.separatorStroke;if(ft===null&&(ft=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ut!==0&&ft!==null){xo(a,y,ft,!1,!1,tt,z),ft=!1;var mt=at.separatorDashArray;mt===null&&(mt=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),mt!==null&&(ft=!0,y.js(mt,0)),y.beginPath(),mt=at.position+ut,x?mt>tt.height&&(ut-=mt-tt.height):mt>tt.width&&(ut-=mt-tt.width),at=at.position+ut/2,y.lineWidth=ut,ut=a.yb,x?(at+=ut.top,mt=tt.width-ut.right,y.moveTo(ut.left,at),y.lineTo(mt,at)):(at+=ut.left,mt=tt.height-ut.bottom,y.moveTo(at,ut.top),y.lineTo(at,mt)),y.stroke(),y.Se(),ft&&y.fs()}}}}function P0(a,y,x,E,b){for(var z=E.length,tt=a.actualBounds,ot=a.naturalBounds,rt=rA(a,!0),at=rA(a,!1),ut=0;utmt)){var yt=ft.Wc(),At=ft.separatorStrokeWidth;isNaN(At)&&(At=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Bt=ft.separatorStroke;Bt===null&&(Bt=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Bt===null||ft.index===(x?rt:at))&&(At=0),yt-=At,At=ft.position+At,yt+=ft.actual,At+yt>mt&&(yt=mt-At),0>=yt||(mt=a.yb,xo(a,y,ft.background,!0,!1,ot,tt),x?y.fillRect(mt.left,At+mt.top,tt.width-(mt.left+mt.right),yt):y.fillRect(At+mt.left,mt.top,yt,tt.height-(mt.top+mt.bottom)))}}}}function rA(a,y){for(var x=y?a.rowCount:a.columnCount,E=0;EE&&b.set(At),jt.free(At)),jt.free(ut),z&&b.transform(tt),at},Pt.Gj=function(){for(var a=this.O.s,y=a.length,x=0;xx||z>E)&&(this.v(),this.measure(y>x?x:y,z>E?E:z,0,0));break;case Le:this.v(!0),this.measure(x+ot,E+tt,0,0);break;case sn:this.v(!0),this.measure(x+ot,z+tt,0,0);break;case vn:this.v(!0),this.measure(y+ot,E+tt,0,0)}}this.na.arrange(this,b,this.jg)}},Pt.gh=function(a){var y=this.naturalBounds,x=gu(this);if(Lr(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var E=y.length,b=jt.allocAt(0,0);E--;){var z=y[E];if((z.visible||z===x)&&(Lo(b.set(a),z.transform),z.ca(b)))return jt.free(b),!0}return jt.free(b),!(this.Ma===null&&this.areaBackground===null)}return!1},Pt.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,E=0;Emt.width||ft.y>mt.height||0>ft.x+ft.width||0>ft.y+ft.height||(ft=ut,ut=ut instanceof Ie?ut:null,mt=Hn.alloc(),mt.set(tt),(ut!==null?ut.Cf(a,y,x,E,b,mt):or(ft,a,E,mt))&&(y!==null&&(ft=y(ft)),ft===null||x!==null&&!x(ft)||b.add(ft)),Hn.free(mt))}}return z===void 0&&Hn.free(tt),E}return z===void 0&&Hn.free(tt),!1};function mv(a,y,x,E){for(var b=a.O.s,z=b.length;z--;){var tt=b[z];if(tt.visible){var ot=tt.actualBounds,rt=a.naturalBounds;ot.x>rt.width||ot.y>rt.height||0>ot.x+ot.width||0>ot.y+ot.height||(tt instanceof Ie&&mv(tt,y,x,E),y!==null&&(tt=y(tt)),tt===null||x!==null&&!x(tt)||E.add(tt))}}}Pt.og=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;x===void 0&&(x=null),E===void 0&&(E=null);var tt=this.naturalBounds,ot=this.se(),rt=ot?a:Lo(jt.allocAt(a.x,a.y),this.transform),at=ot?y:Lo(jt.allocAt(y.x,y.y),this.transform),ut=rt.Bf(at),ft=0Dt.width||Bt.y>Dt.height||0>Bt.x+Bt.width||0>Bt.y+Bt.height))&&(At.se()?(Bt=At.transform,Lo(rt.set(a),Bt),Lo(at.set(y),Bt)):(rt.set(a),at.set(y)),Bt=At,At=At instanceof Ie?At:null,(At!==null?At.og(rt,at,x,E,b,z):Bt.tx(rt,at,b))&&(x!==null&&(Bt=x(Bt)),Bt===null||E!==null&&!E(Bt)||z.add(Bt)))}}jt.free(rt),jt.free(at)}return b?ft:tt}return!1};function vv(a){var y=null;return a instanceof Nn&&(y=a.spot1,y===ar&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=yr),y}function yv(a){var y=null;return a instanceof Nn&&(y=a.spot2,y===ar&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=ms),y}Pt.add=function(a){for(var y=[],x=0;x=b.count&&a>=b.count)return;b.mb(z),E=z}else ee("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>b.count)&&(a=b.count),b.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),$s(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof Ie&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||C0(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof Xe&&(x.Te=!0),x.Te&&x instanceof Xe&&(x.wc=null),b=this.diagram,b!==null&&b.undoManager.isUndoingRedoing||(E!==-1&&x.cb(Vo,"elements",this,y,null,E,null),x.cb(Mo,"elements",this,null,y,null,a)))};function Av(a,y){a.l=y?a.l|16777216:a.l&-16777217}Pt.remove=function(a){for(var y=this.O.s,x=y.length,E=-1,b=0;ba&&Zn(a,">= 0",Ie,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Go;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(Mo,"rowdefs",this,null,x,null,a)}return y[a]},Pt.oA=function(a){if(0>a&&Zn(a,">= 0",Ie,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(Vo,"rowdefs",this,x,null,a,null),this.v()}}};function hA(a,y,x){var E=a.rowDefs;if(!(0>y)){if(E[y]=x instanceof Go?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Pt.Eb=function(a){0>a&&Zn(a,">= 0",Ie,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Go;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(Mo,"coldefs",this,null,x,null,a)}return y[a]},Pt.jA=function(a){if(0>a&&Zn(a,">= 0",Ie,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(Vo,"coldefs",this,x,null,a,null),this.v()}}};function dA(a,y,x){var E=a.colDefs;if(!(0>y)){if(E[y]=x instanceof Go?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Pt.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&E0(y,a),this},Pt.Hy=function(a,y){return(a=this.Fb(a))&&E0(a,new Go(y)),this},Pt.By=function(a,y){return(a=this.Eb(a))&&E0(a,new Go(y)),this},Pt.nz=function(a){if(0>a||this.type!==Ie.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,E=x.length,b=this.topIndex;ba||this.type!==Ie.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,E=x.length,b=this.leftIndex;ba;)this.pc(this.O.length-1,!1);fA(this,this.itemArray)};function fA(a,y){var x=Qc(a);if(y===null||y.length===0)for(;a.O.length>x;)a.pc(a.O.length-1,!1);else if(a.O.length<=x){x=y.length;for(var E=0;Ex)){var b=xv(a,y);if(b=Pv(a,b),b!==null){if(Ia(b),b=b.copy(),b.l&16777216){var z=a.ih();z!==null&&Av(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new xn),a.ge.add(y,b)),z=x+Qc(a),a.Gb(z,b),E&&(b.ub=y,Sv(a,z,x),b.ub=null),b.data=y}}}function Sv(a,y,x){for(a=a.O;ya&&Zn(a,">= 0",Ie,"padding"),a=new Rn(a)):(0>a.left&&Zn(a.left,">= 0",Ie,"padding:value.left"),0>a.right&&Zn(a.right,">= 0",Ie,"padding:value.right"),0>a.top&&Zn(a.top,">= 0",Ie,"padding:value.top"),0>a.bottom&&Zn(a.bottom,">= 0",Ie,"padding:value.bottom"));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.v(),this.g("padding",y,a))}},defaultAlignment:{get:function(){return this.Tm},set:function(a){var y=this.Tm;y.D(a)||(this.Tm=a=a.J(),this.v(),this.g("defaultAlignment",y,a))}},defaultStretch:{get:function(){return this.Uf},set:function(a){var y=this.Uf;y!==a&&(this.Uf=a,this.v(),this.g("defaultStretch",y,a))}},defaultSeparatorPadding:{get:function(){return this.T!==null?this.T.Qp:Ra},set:function(a){typeof a=="number"&&(a=new Rn(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new pa),this.T.Qp=a,this.v(),this.g("defaultSeparatorPadding",y,a))}},defaultRowSeparatorStroke:{get:function(){return this.T!==null?this.T.ia:null},set:function(a){var y=this.defaultRowSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof Si)&&(a instanceof Si&&a.freeze(),this.T===null&&(this.T=new pa),this.T.ia=a,this.N(),this.g("defaultRowSeparatorStroke",y,a))}},defaultRowSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.Ha:1},set:function(a){var y=this.defaultRowSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new pa),this.T.Ha=a,this.v(),this.g("defaultRowSeparatorStrokeWidth",y,a))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(a){var y=this.defaultRowSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;ba)&&ee("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new pa),this.T.Hb=a,this.v(),this.g("topIndex",y,a))}},leftIndex:{get:function(){return this.T!==null?this.T.hb:0},set:function(a){var y=this.leftIndex;y!==a&&((!isFinite(a)||0>a)&&ee("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new pa),this.T.hb=a,this.v(),this.g("leftIndex",y,a))}},data:{get:function(){return this.ub},set:function(a){var y=this.ub;if(y!==a){var x=this instanceof ln&&!(this instanceof ai);Ia(this),this.ub=a;var E=this.diagram;E!==null&&(x?(x=E.partManager,this instanceof Ne?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof ln&&(y!==null&&x.cf.remove(y),a!==null&&x.cf.add(a,this))):(x=this.panel,x!==null&&x.ge!==null&&(y!==null&&x.ge.remove(y),a!==null&&x.ge.add(a,this)))),this.g("data",y,a),E!==null&&E.undoManager.isUndoingRedoing||a!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(a){var y=this.zn;y!==a&&(this.zn=a,this.g("itemIndex",y,a))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new gg),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&yS(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&ly(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&ay(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||fA(this,a)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(a){if(this.itemTemplateMap===null){if(a===null)return;this.itemTemplateMap=new xn}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof ln||a.isPanelMain)&&ee("Panel.itemTemplate must not be a Part or be Panel.isPanelMain: "+a),this.itemTemplateMap.add("",a),this.g("itemTemplate",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv())}},itemTemplateMap:{get:function(){return this.A!==null?this.A.Pc:null},set:function(a){var y=this.itemTemplateMap;if(y!==a){for(var x=a.iterator;x.next(););On(this),this.A.Pc=a,this.g("itemTemplateMap",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv()}}},itemCategoryProperty:{get:function(){return this.A!==null?this.A.Oc:"category"},set:function(a){var y=this.itemCategoryProperty;y!==a&&(On(this),this.A.Oc=a,this.g("itemCategoryProperty",y,a))}},isAtomic:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("isAtomic",y,a))}},isClipping:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this instanceof Bn&&(this.tb=null),this.v(),this.g("isClipping",y,a))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(a){var y=(this.l&33554432)!==0;y!==a&&(this.l^=33554432,this.v(),this.g("isOpposite",y,a))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;if(y!==a){var x=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",y,a),y=this.diagram,y!==null&&y.undoManager.isUndoingRedoing||x&&C0(this,this,a)}}},alignmentFocusName:{get:function(){return this.$e},set:function(a){var y=this.$e;y!==a&&(this.$e=a,this.v(),this.g("alignmentFocusName",y,a))}}}),fe.Object.defineProperties(Ie,{Position:{get:function(){return Xa.I("Position")}},Horizontal:{get:function(){return Xa.I("Horizontal")}},Vertical:{get:function(){return Xa.I("Vertical")}},Spot:{get:function(){return Xa.I("Spot")}},Auto:{get:function(){return Xa.I("Auto")}},Table:{get:function(){return Xa.I("Table")}},Viewbox:{get:function(){return Xa.I("Viewbox")}},TableRow:{get:function(){return Xa.I("TableRow")}},TableColumn:{get:function(){return Xa.I("TableColumn")}},Link:{get:function(){return Xa.I("Link")}},Grid:{get:function(){return Xa.I("Grid")}},Graduated:{get:function(){return Xa.I("Graduated")}}}),Ie.prototype.rebuildItemElements=Ie.prototype.mv,Ie.prototype.findItemPanelForData=Ie.prototype.sx,Ie.prototype.updateTargetBindings=Ie.prototype.La,Ie.prototype.copyTemplate=Ie.prototype.Uy,Ie.prototype.graduatedValueForPoint=Ie.prototype.Gz,Ie.prototype.graduatedPointForValue=Ie.prototype.Fz,Ie.prototype.findColumnForLocalX=Ie.prototype.fz,Ie.prototype.findRowForLocalY=Ie.prototype.nz,Ie.prototype.addColumnDefinition=Ie.prototype.By,Ie.prototype.addRowDefinition=Ie.prototype.Hy,Ie.prototype.addRowColumnDefinition=Ie.prototype.Gy,Ie.prototype.removeColumnDefinition=Ie.prototype.jA,Ie.prototype.getColumnDefinition=Ie.prototype.Eb,Ie.prototype.removeRowDefinition=Ie.prototype.oA,Ie.prototype.getRowDefinition=Ie.prototype.Fb,Ie.prototype.removeAt=Ie.prototype.mb,Ie.prototype.remove=Ie.prototype.remove,Ie.prototype.insertAt=Ie.prototype.Gb,Ie.prototype.elt=Ie.prototype.M,Ie.prototype.add=Ie.prototype.add,Ie.prototype.findObject=Ie.prototype.fb,Ie.prototype.findInVisualTree=Ie.prototype.Nl,Ie.prototype.walkVisualTreeFrom=Ie.prototype.qm,Ie.prototype.findMainElement=Ie.prototype.Pb;var cA=!1,pA=null,Xa=new xn;Ie.className="Panel",Ie.definePanelLayout=Cl,Cl("Position",new d0),Cl("Vertical",new f0),Cl("Auto",new p0),Cl("Link",new x0);function fu(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}fu.prototype.copy=function(){var a=new fu;return a.lq=this.lq,a.F=this.F,a.ia=this.ia,a.V=this.V,a.u=this.u,a.j=this.j,a.o=this.o,a.Zh=this.Zh,a},fu.className="GradPanelSettings";function pa(){this.Pc=[],this.Oc=[],this.j=this.ob=L0,this.hb=this.Hb=0,this.Qp=Ra,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}pa.prototype.copy=function(a){for(var y=new pa,x=this.Pc,E=x.length,b=y.Pc,z=0;za&&Zn(a,">= 0",Go,"height"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("height",y,a))}},width:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&Zn(a,">= 0",Go,"width"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("width",y,a))}},minimum:{get:function(){return this.jj},set:function(a){var y=this.jj;y!==a&&((0>a||!isFinite(a))&&Zn(a,">= 0",Go,"minimum"),this.jj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("minimum",y,a))}},maximum:{get:function(){return this.hj},set:function(a){var y=this.hj;y!==a&&(0>a&&Zn(a,">= 0",Go,"maximum"),this.hj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("maximum",y,a))}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(this.Jb=a.J(),this.panel!==null&&this.panel.v(),this.Ob("alignment",y,a))}},stretch:{get:function(){return this.hg},set:function(a){var y=this.hg;y!==a&&(this.hg=a,this.panel!==null&&this.panel.v(),this.Ob("stretch",y,a))}},separatorPadding:{get:function(){return this.dg},set:function(a){typeof a=="number"&&(a=new Rn(a));var y=this.dg;a!==null&&y!==null&&y.D(a)||(a!==null&&(a=a.J()),this.dg=a,this.panel!==null&&this.panel.v(),this.Ob("separatorPadding",y,a))}},separatorStroke:{get:function(){return this.lo},set:function(a){var y=this.lo;y!==a&&(a!==null&&cg(a,"RowColumnDefinition.separatorStroke"),a instanceof Si&&a.freeze(),this.lo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",y,a))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(a){var y=this.mo;y!==a&&(this.mo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",y,a))}},separatorDashArray:{get:function(){return this.tj},set:function(a){var y=this.tj;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;bb)){var z=E.measuredBounds,tt=Math.max(1,z.width);z=z.height;for(var ot=x[0],rt=x[1],at,ut,ft,mt,yt,At,Bt=0,Dt=Jn(),It=2;Itft&&(ft=1),b=x=ft,at=tt/2,ut=at!==0,It=0,At=Dt[It],ft=At[0],yt=At[1],mt=At[2],At=At[3];for(var Rt=0;.1<=Bt;){if(Rt===0&&(ut?(b=x,b-=at,Bt-=at,ut=!1):b=x,b===0&&(b=1)),b>Bt){ei(Dt);return}b>At?(Rt=b-At,b=At):Rt=0;var zt=Math.sqrt(b*b/(1+mt*mt));if(0>ft&&(zt=-zt),ot+=zt,rt+=mt*zt,a.translate(ot,rt),a.rotate(yt),a.translate(-(tt/2),-(z/2)),Rt===0&&E.hh(a,y),a.translate(tt/2,z/2),a.rotate(-yt),a.translate(-ot,-rt),Bt-=b,At-=b,Rt!==0){if(It++,It===Dt.length){ei(Dt);return}At=Dt[It],ft=At[0],yt=At[1],mt=At[2],At=At[3],b=Rt}}ei(Dt)}}Pt.hh=function(a,y){var x=this.xc,E=this.Ui;if(x!==null||E!==null){var b=this.ua;if(b!==null){a.yc();var z=this.actualBounds,tt=this.naturalBounds;E!==null&&xo(this,a,E,!0,!1,tt,z);var ot=this.part,rt=this.ig;if(x===null||rt!==0||ot===null||!this.isPanelMain&&ot.Pb()!==this||(rt=ot.type===Ie.Link&&ot instanceof ai&&ot.category==="Selection"&&ot.adornedObject instanceof Nn&&ot.adornedPart.Pb()===ot.adornedObject?ot.adornedObject.strokeWidth:0),rt===0&&(x=null),x!==null&&rt!==0&&(xo(this,a,x,!1,!1,tt,z),a.lineWidth=rt,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,ot&&y.Gf("drawShadows")&&(z=ot.isShadowed),a.Il===!1&&(z=!1),ot=!0,x===null||E!==null&&E!=="transparent"||(ot=!1),tt=!1,rt=this.strokeDashArray,rt!==null&&(tt=!0,a.js(rt,this.strokeDashOffset)),b.type===be.j)a.beginPath(),a.moveTo(b.startX,b.startY),a.lineTo(b.endX,b.endY),x!==null&&a.jk(),a.Se();else if(b.type===be.u){var at=b.startX;rt=b.startY;var ut=b.endX,ft=b.endY;b=Math.min(at,ut);var mt=Math.min(rt,ft);at=Math.abs(ut-at),rt=Math.abs(ft-rt),a.beginPath(),a.rect(b,mt,at,rt),E!==null&&a.ng(E),x!==null&&(ot&&z&&zl(a),a.jk(),ot&&z&&uu(a)),a.Se()}else if(b.type===be.F)at=b.startX,rt=b.startY,ut=b.endX,ft=b.endY,b=Math.abs(ut-at)/2,mt=Math.abs(ft-rt)/2,at=Math.min(at,ut)+b,rt=Math.min(rt,ft)+mt,a.beginPath(),a.moveTo(at,rt-mt),a.bezierCurveTo(at+Jt.wg*b,rt-mt,at+b,rt-Jt.wg*mt,at+b,rt),a.bezierCurveTo(at+b,rt+Jt.wg*mt,at+Jt.wg*b,rt+mt,at,rt+mt),a.bezierCurveTo(at-Jt.wg*b,rt+mt,at-b,rt+Jt.wg*mt,at-b,rt),a.bezierCurveTo(at-b,rt-Jt.wg*mt,at-Jt.wg*b,rt-mt,at,rt-mt),a.closePath(),E!==null&&a.ng(E),x!==null&&(ot&&z&&zl(a),a.jk(),ot&&z&&uu(a)),a.Se();else if(b.type===be.o)for(b=b.figures,rt=b.length,mt=0;mtBt.sweepAngle,yt!==null?yt.endX:at.startX,yt!==null?yt.endY:at.startY)}else if(yt=Rs(Bt,at),Dt=yt.length,Dt===0)a.lineTo(Bt.centerX,Bt.centerY);else for(var It=0;It(x.startX-x.endX)*(a.x-x.endX)+(x.startY-x.endY)*(a.y-x.endY)||0>E)?!1:(ce.free(z),Jt.Yb(x.startX,x.startY,x.endX,x.endY,b,a.x,a.y));if(x.type===be.u){y=x.startX;var tt=x.startY,ot=x.endX;if(x=x.endY,z.x=Math.min(y,ot),z.y=Math.min(tt,x),z.width=Math.abs(ot-y),z.height=Math.abs(x-tt),this.fill===null){if(z.Bc(-E,-E),z.ca(a))return ce.free(z),!1;z.Bc(E,E)}return this.stroke!==null&&z.Bc(b,b),a=z.ca(a),ce.free(z),a}if(x.type===be.F){tt=x.startX,b=x.startY,ot=x.endX;var rt=x.endY;if(x=Math.min(tt,ot),y=Math.min(b,rt),tt=Math.abs(ot-tt)/2,b=Math.abs(rt-b)/2,x=a.x-(x+tt),y=a.y-(y+b),this.fill===null){if(tt-=E,b-=E,0>=tt||0>=b||1>=x*x/(tt*tt)+y*y/(b*b))return ce.free(z),!1;tt+=E,b+=E}return this.stroke!==null&&(tt+=E,b+=E),ce.free(z),0>=tt||0>=b?!1:1>=x*x/(tt*tt)+y*y/(b*b)}if(x.type===be.o)return ce.free(z),this.fill===null?fh(x,a.x,a.y,b):tu(x,a,b,1=this.strokeWidth)ut=Jt.Ve(at.startX,at.startY,at.endX,at.endY,z,tt,ot,rt,b);else{if(at.startX===at.endX?(E=ft,ut=0):(y=(at.endY-at.startY)/(at.endX-at.startX),ut=ft/Math.sqrt(1+y*y),E=ut*y),y=Jn(),a=new jt,Jt.Ve(at.startX+E,at.startY+ut,at.endX+E,at.endY+ut,z,tt,ot,rt,a)&&y.push(a),a=new jt,Jt.Ve(at.startX-E,at.startY-ut,at.endX-E,at.endY-ut,z,tt,ot,rt,a)&&y.push(a),a=new jt,Jt.Ve(at.startX+E,at.startY+ut,at.startX-E,at.startY-ut,z,tt,ot,rt,a)&&y.push(a),a=new jt,Jt.Ve(at.endX+E,at.endY+ut,at.endX-E,at.endY-ut,z,tt,ot,rt,a)&&y.push(a),ot=y.length,ot===0)return ei(y),!1;for(ut=!0,rt=1/0,E=0;EMath.abs(x)){if(rt=tt-ut-x*(z-E),0>a*a*x*x+at*at-rt*rt){b.x=NaN,b.y=NaN,ut=!1;break t}ft=Math.sqrt(a*a*x*x+at*at-rt*rt),ot=(-(a*a*x*rt)+a*at*ft)/(at*at+a*a*x*x)+E,a=(-(a*a*x*rt)-a*at*ft)/(at*at+a*a*x*x)+E,at=x*(ot-E)+rt+ut,rt=x*(a-E)+rt+ut,Math.abs((z-ot)*(z-ot))+Math.abs((tt-at)*(tt-at))ot){b.x=NaN,b.y=NaN,ut=!1;break t}rt=Math.sqrt(ot),ot=ut+rt,rt=ut-rt,Math.abs(ot-tt)Math.abs(At)?(Bt*=.5/At,At=.5):Bt!==0&&.5>Math.abs(Bt)&&(At*=.5/Bt,Bt=.5),It-=At,Rt-=Bt;yt.contains(It,Rt);)It-=At,Rt-=Bt;for(b.x=ot,b.y=rt,Bt=0;Btx?a-x:x-a)<(y>E?y-E:E-y)?(a=ya||Jt.$(rt.y,a))&&(rt.yy||Jt.$(rt.x,y))&&(rt.x=a&&E<=y):(a=E&&x<=a)}Pt.tx=function(a,y,x){function E(Dt,It){for(var Rt=Dt.length,zt=0;ztb)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var b=a.Bf(y),z=b;if(1.5=b||ra(y,z,0,-ft)>=b||ra(y,z,0,ft)>=b||ra(y,z,ut,0)>=b)}else if(y.type===be.o){if(at=y.bounds,z=at.x,ot=at.y,rt=at.x+at.width,at=at.y+at.height,a.x>rt&&a.xat&&a.yb&&qo(a.x,a.y,z,ot,rt,ot)>b&&qo(a.x,a.y,rt,at,z,at)>b&&qo(a.x,a.y,rt,at,rt,ot)>b)return!1;if(z=Math.sqrt(b),x){if(this.fill===null?fh(y,a.x,a.y,z):tu(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;yb)return!1;for(ot=z.segments.s,rt=ot.length,at=0;atb)return!1;break;case kr:var mt=Jn();if(Jt.Qe(tt,ut,ft.point1X,ft.point1Y,ft.point2X,ft.point2Y,ft.endX,ft.endY,.8,mt),tt=E(mt,a),ei(mt),tt||(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>b))return!1;break;case Zs:if(mt=Jn(),Jt.ep(tt,ut,ft.point1X,ft.point1Y,ft.endX,ft.endY,.8,mt),tt=E(mt,a),ei(mt),tt||(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>b))return!1;break;case Ro:case aa:mt=ft.type===Ro?Rs(ft,z):Ca(ft,z,tt,ut);var yt=mt.length;if(yt===0){if(tt=ft.type===Ro?ft.centerX:ft.endX,ut=ft.type===Ro?ft.centerY:ft.endY,a.zd(tt,ut)>b)return!1;break}ft=null;for(var At=Jn(),Bt=0;Bt= 0",Nn,"strokeWidth:value")}},strokeCap:{get:function(){return this.Na!==null?this.Na.Hr:"butt"},set:function(a){var y=this.strokeCap;y!==a&&(typeof a!="string"||a!=="butt"&&a!=="round"&&a!=="square"?Zn(a,'"butt", "round", or "square"',Nn,"strokeCap"):(Bd(this),this.Na.Hr=a,this.N(),this.g("strokeCap",y,a)))}},strokeJoin:{get:function(){return this.Na!==null?this.Na.Ir:"miter"},set:function(a){var y=this.strokeJoin;y!==a&&(typeof a!="string"||a!=="miter"&&a!=="bevel"&&a!=="round"?Zn(a,'"miter", "bevel", or "round"',Nn,"strokeJoin"):(Bd(this),this.Na.Ir=a,this.N(),this.g("strokeJoin",y,a)))}},strokeMiterLimit:{get:function(){return this.Na!==null?this.Na.Jr:10},set:function(a){var y=this.strokeMiterLimit;if(y!==a&&1<=a){Bd(this),this.Na.Jr=a,this.N();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeMiterLimit",y,a)}}},strokeDashArray:{get:function(){return this.Yg},set:function(a){var y=this.Yg;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;ba?a=0:1a?a=0:1(ft*ft+ut*ut)*mt*mt&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof Hs&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,ft=this.spacingBelow,this.flip){case oi:a.translate(b,0),a.scale(-1,1);break;case zn:a.translate(0,z),a.scale(1,-1);break;case Ei:a.translate(b,z),a.scale(-1,-1)}if(a.yc(),ut=this.Gc,mt=(y+tt+ft)*ut,z>mt&&(E=this.verticalAlignment,E=E.y*z-E.y*mt+E.offsetY),ut===1&&this.ze!==null)ft=this.Cb,ft>b&&(ft=b),this.Oj(this.ze,a,0,E+y,b,tt,ft,x,ot,rt,at);else if(this.Qc!==null&&this.Qb!==null)for(mt=0;mtb&&(yt=b),E+=y,this.Oj(this.Qb[mt],a,0,E,b,tt,yt,x,ot,rt,at),E+=tt+ft}switch(this.flip){case oi:a.scale(-1,1),a.translate(-b,0);break;case zn:a.scale(1,-1),a.translate(0,-z);break;case Ei:a.scale(-1,-1),a.translate(-b,-z)}}},Pt.Oj=function(a,y,x,E,b,z,tt,ot,rt,at,ut){var ft=0;if(ot)rt==="left"?ft=0:rt==="right"?ft=b-tt:rt==="center"&&(ft=(b-tt)/2),y.fillRect(x+ft,E+.25*z,tt,1);else{if(rt==="left"?ft=0:rt==="right"?ft=b:rt==="center"&&(ft=b/2),b=I0!==null?I0(this,z):.75*z,y.fillText(a,x+ft,E+b),a=z/20|0,a===0&&(a=1),rt==="right"?ft-=tt:rt==="center"&&(ft-=tt/2),at){ot=F0!==null?F0(this,z):.8*z,rt=x+ft,at=E+ot,b=x+ft+tt,ot=E+ot;var mt=a;y.beginPath(),y.lineWidth=mt,y.moveTo(rt,at),y.lineTo(b,ot),y.stroke(),y.Se(),y instanceof Hs&&y.ad.classList.add("gojs-td")}ut&&(ut=E+z-z/2.2|0,a%2!==0&&(ut+=.5),E=x+ft,z=ut,x=x+ft+tt,tt=ut,ft=a,y.beginPath(),y.lineWidth=ft,y.moveTo(E,z),y.lineTo(x,tt),y.stroke(),y.Se(),y instanceof Hs&&y.ad.classList.add("gojs-td"))}},Pt.kk=function(a,y,x){if(!Yt.prototype.kk.call(this,a,y,x))return!1;if(xo(this,a,this.xc,!0,!1,this.naturalBounds,this.actualBounds),x){if(this.svg.getElementsByTagName("text").length===0)return!0;for(y=this.svg.getElementsByClassName("gojs-td"),x=0;xa?a=0:1a?a=0:1=a&&Zn(a,"> 0",Ni,"maxLines"),Cl(this),this.da.Jq=a,this.v(),this.g("maxLines",y,a))}},metrics:{get:function(){return{arrSize:this.Qc!==null?this.Qc:[this.Cb],arrText:this.Qb!==null?this.Qb:[this.ze],maxLineWidth:this.Cb,fontHeight:this.df}}},choices:{get:function(){return this.Gm},set:function(a){var y=this.Gm;y!==a&&(this.Gm=a,this.g("choices",y,a))}}});var I0=null,F0=null,Mv=new Ee(Ni,"None",0),xA=new Ee(Ni,"WrapFit",1),kv=new Ee(Ni,"WrapDesiredSize",2),PA=new Ee(Ni,"WrapBreakAll",3),Iv=new Ee(Ni,"OverflowClip",0),N0=new Ee(Ni,"OverflowEllipsis",1),Xc=new Ee(Ni,"FormatTrim",0),wA=new Ee(Ni,"FormatNone",0),AS=/[ \u200b\u00ad]/,Fv=new Vn,CA=0,T0=new Vn,Nv=0,Wc="...",EA="",xs=null,D0=!1;Ni.className="TextBlock";function Tv(){this.nc=!1,this.Hd=null,this.Xf=we,this.gq=Xc,this.Jq=1/0,this.$q=Iv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=ml,this.$r=kv}Tv.prototype.copy=function(){var a=new Tv;return a.Hd=this.Hd,a.Xf=this.Xf,a.gq=this.gq,a.Jq=this.Jq,a.$q=this.$q,a.Dr=this.Dr,a.Er=this.Er,a.Or=this.Or,a.Pr=this.Pr,a.Qr=this.Qr,a.vj=this.vj,a.Yr=this.Yr,a.$r=this.$r,a},Ni.getEllipsis=function(){return Wc},Ni.setEllipsis=function(a){Wc=a,T0=new Vn,Nv=0},Ni.getBaseline=function(){return I0},Ni.setBaseline=function(a){I0=a},Ni.getUnderline=function(){return F0},Ni.setUnderline=function(a){F0=a},Ni.isValidFont=function(a){if(D0||(xs=Ao?new ka(null).context:null,D0=!0),xs===null)return!0;var y=xs.font;if(a===y||a==="10px sans-serif")return!0;xs.font="10px sans-serif",xs.font=a;var x=xs.font;if(x!=="10px sans-serif")return xs.font=y,!0;xs.font="19px serif";var E=xs.font;return xs.font=a,x=xs.font,xs.font=y,x!==E},Ni.FormatNone=wA,Ni.FormatTrim=Xc,Ni.None=Mv,Ni.OverflowClip=Iv,Ni.OverflowEllipsis=N0,Ni.WrapBreakAll=PA,Ni.WrapDesiredSize=kv,Ni.WrapFit=xA;function Gl(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Gl.prototype.copy=function(){var a=new Gl;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},Gl.className="GradElementSettings";function Ps(a,y){Yt.call(this),this.Eg=null,this.qo="",this.Xg=hh,this.Nk=Le,this.Zg=this.Hd=null,this.Mk=pi,this.Xf=we,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,typeof a=="string"?this.source=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}var xf;Ae(Ps,Yt),Ps.prototype.cloneProtected=function(a){Yt.prototype.cloneProtected.call(this,a),a.qo=this.qo,a.element=this.Eg,a.Xg=this.Xg.J(),a.Nk=this.Nk,a.Xf=this.Xf,a.Hd=this.Hd,a.Zg=this.Zg,a.Mk=this.Mk.J(),a.en=this.en,a.rl=this.rl},Ps.prototype.qb=function(a){a===we||a===en||a===Kn?this.imageStretch=a:Yt.prototype.qb.call(this,a)},Ps.prototype.toString=function(){return"Picture("+this.source+")#"+Zo(this)};function Pf(a){a===void 0&&(a=""),a!==""?xf[a]&&(delete xf[a],b0--):(xf=new Vn,b0=0)}function BA(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var E=y.Bg.copy();if(E!=null){for(E=E.iterator;E.next();){var b=E.value;b.N();var z=y.getAttribute("src")||"",tt=b.Og.I(z);if(tt!==null)for(var ot=tt.length,rt=0;rt=E.width&&(z=z+At.offsetX+(ft*At.x-E.width*At.x)),mt>=E.height&&(tt=tt+At.offsetY+(mt*At.y-E.height*At.y)),rt=Math.min(E.width,ft),ot=Math.min(E.height,mt);break;case Le:ft=E.width,mt=E.height;break;case en:case Kn:yt===en?(yt=Math.min(E.height/mt,E.width/ft),ft*=yt,mt*=yt):yt===Kn&&(yt=Math.max(E.height/mt,E.width/ft),ft*=yt,mt*=yt,ft>=E.width&&(z=(z+At.offsetX+(ft*At.x-E.width*At.x)/ft)*rt),mt>=E.height&&(tt=(tt+At.offsetY+(mt*At.y-E.height*At.y)/mt)*ot),rt*=1/(ft/E.width),ot*=1/(mt/E.height),ft=E.width,mt=E.height)}yt=this.Df()*y.scale;var Bt=ft*yt*mt*yt,Dt=rt*ot/Bt,It=x.__goCache;yt=null;var Rt=SS;if(!b){if(x.sq&&It!==void 0&&4Rt*Rt)for(It.gi===null&&(MA(It,4,at,ut,x),MA(It,16,at,ut,x)),b=It.gi,at=b.length,ut=0;uta)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,x/3);var E="rr"+y+","+x+","+a,b=Jt.Mf[E];if(b!==void 0)return b;var z=a*Jt.wg;return b=new be().add(new nr(a,0,!0).add(new ui(Ri,y-a,0)).add(new ui(kr,y,a,y-z,0,y,z)).add(new ui(Ri,y,x-a)).add(new ui(kr,y-a,x,y,x-z,y-z,x)).add(new ui(Ri,a,x)).add(new ui(kr,0,x-a,z,x,0,x-z)).add(new ui(Ri,0,a)).add(new ui(kr,a,0,0,z,z,0).close())),1b.x&&a.y>b.y&&a.rightb.x&&y.y>b.y&&y.right=x.maxSelectionCount)){this.G^=4096;var E=!1;if(x!==null){E=x.skipsUndoManager,x.skipsUndoManager=!0;var b=x.selection;b.ka(),a?b.add(this):b.remove(this),b.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),x!==null&&(x.$b(),x.skipsUndoManager=E)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(a){var y=(this.G&524288)!==0;if(y!==a){this.G^=524288;var x=this.diagram;x!==null&&(x=x.highlighteds,x.ka(),a?x.add(this):x.remove(this),x.freeze()),this.g("isHighlighted",y,a),this.N(),a=this.highlightedChanged,a!==null&&a(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(a){var y=(this.G&8192)!==0;y!==a&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",y,a),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(a){var y=(this.G&262144)!==0;y!==a&&(this.G^=262144,this.g("isAnimated",y,a))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(a){var y=this.highlightedChanged;y!==a&&(ws(this),this.P.oq=a,this.g("highlightedChanged",y,a))}},selectionObjectName:{get:function(){return this.P!==null?this.P.vr:""},set:function(a){var y=this.selectionObjectName;y!==a&&(ws(this),this.P.vr=a,this.Ug=null,this.g("selectionObjectName",y,a))}},selectionAdornmentTemplate:{get:function(){return this.P!==null?this.P.tr:null},set:function(a){var y=this.selectionAdornmentTemplate;y!==a&&(ws(this),this.P.tr=a,this.g("selectionAdornmentTemplate",y,a))}},selectionObject:{get:function(){if(this.Ug===null){var a=this.selectionObjectName;a!==null&&a!==""?(a=this.fb(a),a!==null?this.Ug=a:this.Ug=this):this instanceof Ne?(a=this.path,a!==null?this.Ug=a:this.Ug=this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return this.P!==null?this.P.ur:null},set:function(a){var y=this.selectionChanged;y!==a&&(ws(this),this.P.ur=a,this.g("selectionChanged",y,a))}},resizeAdornmentTemplate:{get:function(){return this.P!==null?this.P.fr:null},set:function(a){var y=this.resizeAdornmentTemplate;y!==a&&(ws(this),this.P.fr=a,this.g("resizeAdornmentTemplate",y,a))}},resizeObjectName:{get:function(){return this.P!==null?this.P.hr:""},set:function(a){var y=this.resizeObjectName;y!==a&&(ws(this),this.P.hr=a,this.g("resizeObjectName",y,a))}},resizeObject:{get:function(){var a=this.resizeObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},resizeCellSize:{get:function(){return this.P!==null?this.P.gr:$o},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),ws(this),this.P.gr=a,this.g("resizeCellSize",y,a))}},rotateAdornmentTemplate:{get:function(){return this.P!==null?this.P.ir:null},set:function(a){var y=this.rotateAdornmentTemplate;y!==a&&(ws(this),this.P.ir=a,this.g("rotateAdornmentTemplate",y,a))}},rotateObjectName:{get:function(){return this.P!==null?this.P.jr:""},set:function(a){var y=this.rotateObjectName;y!==a&&(ws(this),this.P.jr=a,this.g("rotateObjectName",y,a))}},rotateObject:{get:function(){var a=this.rotateObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},rotationSpot:{get:function(){return this.P!==null?this.P.lr:ar},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),ws(this),this.P.lr=a,this.g("rotationSpot",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;y!==a&&(this.ec=a,this.g("text",y,a))}},containingGroup:{get:function(){return this.Ah},set:function(a){if(this.Zc()){var y=this.Ah;if(y!==a){a===null||this!==a&&!a.Td(this)||(this===a&&ee("Cannot make a Group a member of itself: "+this.toString()),ee("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?Wv(y,this):this instanceof Bn&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Xv(a,this):this instanceof Bn&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var E=this.data,b=x.model;if(E!==null&&b.Xj()){var z=b.wa(a!==null?a.data:null);b.mp(E,z)}}if(E=this.containingGroupChanged,E!==null&&(b=!0,x!==null&&(b=x.aa,x.aa=!0),E(this,y,a),x!==null&&(x.aa=b)),this instanceof Bn){for(x=new ze,bh(x,this,!0,0,!0),x=x.iterator;x.next();)if(E=x.value,E instanceof Xe)for(E=E.linksConnected;E.next();)Ef(E.value)}if(this instanceof Xe){for(x=this.linksConnected;x.next();)Ef(x.value);x=this.labeledLink,x!==null&&Ef(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&qg(y,-1,a))}}else ee("cannot set the Part.containingGroup of a Link or Adornment")}},containingGroupChanged:{get:function(){return this.P!==null?this.P.Kp:null},set:function(a){var y=this.containingGroupChanged;y!==a&&(ws(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof Xe&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(ws(this),this.P.Cq=a,this.g("layoutConditions",y,a))}},dragComputation:{get:function(){return this.P!==null?this.P.Up:null},set:function(a){var y=this.dragComputation;y!==a&&(ws(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:xa},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),ws(this),this.P.zr=a,this.N(),this.g("shadowOffset",y,a))}},shadowColor:{get:function(){return this.P!==null?this.P.yr:"gray"},set:function(a){var y=this.shadowColor;y!==a&&(ws(this),this.P.yr=a,this.N(),this.g("shadowColor",y,a))}},shadowBlur:{get:function(){return this.P!==null?this.P.Vg:4},set:function(a){var y=this.shadowBlur;y!==a&&(ws(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),ln.prototype.invalidateLayout=ln.prototype.C,ln.prototype.findCommonContainingGroup=ln.prototype.px,ln.prototype.isMemberOf=ln.prototype.Td,ln.prototype.findTopLevelPart=ln.prototype.sz,ln.prototype.findSubGraphLevel=ln.prototype.oz,ln.prototype.ensureBounds=ln.prototype.Va,ln.prototype.getDocumentBounds=ln.prototype.mi,ln.prototype.findObject=ln.prototype.fb,ln.prototype.moveTo=ln.prototype.moveTo,ln.prototype.invalidateAdornments=ln.prototype.Wb,ln.prototype.clearAdornments=ln.prototype.Ej,ln.prototype.removeAdornment=ln.prototype.Jf,ln.prototype.addAdornment=ln.prototype.bh,ln.prototype.findAdornment=ln.prototype.Pj,ln.prototype.updateTargetBindings=ln.prototype.La;var QA=!1;ln.className="Part",ln.LayoutNone=0,ln.LayoutAdded=1,ln.LayoutRemoved=2,ln.LayoutShown=4,ln.LayoutHidden=8,ln.LayoutNodeSized=16,ln.LayoutGroupLayout=32,ln.LayoutNodeReplaced=64,ln.LayoutStandard=127,ln.LayoutAll=16777215;function ai(a,y){a===void 0||a instanceof Ko||typeof a=="string"?ln.call(this,a):(ln.call(this),a&&(y=a)),this.G&=-257,this.Jg="Adornment",this.ue=null,this.Aw=0,this.Uw=!1,this.j=this.$a=null,y&&Object.assign(this,y)}Ae(ai,ln),ai.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},ai.prototype.updateRelationshipsFromData=function(){},ai.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof Ne&&y instanceof Nn){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var E=0;Ea&&(a=1);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new ze;x.add(this),YA(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Gu),y.Ue=!1}};function YA(a,y,x,E,b,z,tt){if(1a&&(a=2);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new ze;x.add(this),JA(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Gu),y.Ue=!1}};function JA(a,y,x,E,b,z,tt){for(var ot=z===a?!1:a.isTreeExpanded,rt=x?a.Mo():a.Sd(),at={};rt.next();){var ut=rt.value;if(ut.isTreeLink&&(ot||ut.fd||ut.bb(),ut=ut.To(a),ut!==null&&ut!==a&&!y.contains(ut))){if(y.add(ut),!ot){ut.Zb(!0),ut.oh();var ft=x?ut.Oo():ut.Po();at.vv=a,ft.all(function(mt){return function(yt){return yt===mt.vv||!yt.isTreeExpanded}}(at))&&b.Cj(ut,z)}(2b&&(b=ot.right),ot.bottom>z&&(z=ot.bottom)}}return isFinite(x)&&isFinite(E)?a.h(x,E,b-x,z-E):(y=y.location,a.h(y.x,y.y,0,0)),a},fe.Object.defineProperties(us.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Rn(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),us.className="Placeholder";function Ne(a){ln.call(this,Ie.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=hs,this.Om=0,this.Qm=hs,this.Rm=NaN,this.qj=Jv,this.po=.5,this.wd=null,this.Nb=new He().freeze(),this.Tg=this.Mg=null,this.ml=new ce,this.ua=new be,this.u=this.o=this.Sf=this.Wf=null,this.su=new jt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Ae(Ne,ln),Ne.prototype.cloneProtected=function(a){ln.prototype.cloneProtected.call(this,a),a.Qa=this.Qa&-113,a.ff=this.ff,a.gn=this.gn,a.vf=this.vf,a.uo=this.uo,a.qk=this.qk,a.Om=this.Om,a.Qm=this.Qm,a.Rm=this.Rm,a.qj=this.qj,a.po=this.po,this.ba!==null&&(a.ba=this.ba.copy())},Pt=Ne.prototype,Pt.Af=function(a){ln.prototype.Af.call(this,a),this.ff=a.ff,this.vf=a.vf,a.Mg=null,a.bb(),a.Sf=this.Sf;var y=a.fromPort;y!==null&&Gs(y),a=a.toPort,a!==null&&Gs(a)},Pt.qb=function(a){a.classType===Ne?(a.value&2)===2?this.routing=a:a===ea||a===Ju||a===Lf?this.curve=a:a===Zc||a===Y0||a===Z0?this.adjusting=a:a!==Jv&&a!==hs&&ee("Unknown Link enum value for a Link property: "+a):ln.prototype.qb.call(this,a)},Pt.Xc=function(){this.ba===null&&(this.ba=new bc)},Pt.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),as(a)||Th(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),as(a)||Th(a)))},Pt.zv=function(){return!1},Pt.Av=function(){},Pt.Zc=function(){return!1},Ne.prototype.computeAngle=function(a,y,x){return Ne.computeAngle(y,x)},Ne.computeAngle=function(a,y){switch(a){default:case hs:a=0;break;case Jc:a=y;break;case qc:a=y+90;break;case _c:a=y-90;break;case qv:a=y+180;break;case J0:a=Jt.bp(y),90a&&(a-=180);break;case $c:a=Jt.bp(y+90),90a&&(a-=180);break;case tp:a=Jt.bp(y-90),90a&&(a-=180);break;case q0:if(a=Jt.bp(y),45a||225a)return 0;90a&&(a-=180)}return Jt.bp(a)};function Ef(a){var y=a.fromNode,x=a.toNode,E=null;if(y!==null?E=x!==null?y.px(x):y.containingGroup:x!==null?E=x.containingGroup:E=null,y=E,x=a.Ah,x!==y){x!==null&&Wv(x,a),a.Ah=y,y!==null&&Xv(y,a);var b=a.containingGroupChanged;if(b!==null){var z=!0,tt=a.diagram;tt!==null&&(z=tt.aa,tt.aa=!0),b(a,x,y),tt!==null&&(tt.aa=z)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=E}Pt=Ne.prototype,Pt.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&ln.prototype.oh.call(this)},Pt.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Pt.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function $A(a,y){a.wd===null&&(a.wd=new ze),a.wd.add(y),a.v()}Pt.Vo=function(a){if(ln.prototype.Vo.call(this,a),kd(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Q0(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||Q0(x,this,E)}Kc(this)}},Pt.Wo=function(a){if(ln.prototype.Wo.call(this,a),kd(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,H0(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||H0(x,this,E)}Yc(this)}},Pt.Lj=function(){if(this.fd=!0,this.wd!==null){var a=this.diagram;if(a!==null)for(var y=this.wd.copy().iterator;y.next();)a.remove(y.value)}this.data!==null&&(a=this.diagram,a!==null&&a.partManager.removeDataForLink(this))},Ne.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},Ne.prototype.move=function(a,y){var x=y?this.location:this.position,E=x.x;isNaN(E)&&(E=0);var b=x.y;for(isNaN(b)&&(b=0),E=a.x-E,b=a.y-b,y===!0?ln.prototype.move.call(this,a,!1):(a=jt.allocAt(x.x+E,x.y+b),ln.prototype.move.call(this,a,!1),jt.free(a)),Zu(this,E,b),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+E,x.y+b)},Ne.prototype.canRelinkFrom=function(){if(!this.relinkableFrom)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},Ne.prototype.canRelinkTo=function(){if(!this.relinkableTo)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},Ne.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(Il),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var x=this.i(0),E=this.i(1);return a.h((x.x+E.x)/2,(x.y+E.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===ea))return this.ua.Pu(.5,a),a.add(this.i(0)),x=this.ua.figures.first(),a.offset(-x.startX,-x.startY),a;if(this.computeCurve()===ea){if(y===3){x=this.i(0),E=this.i(1);var b=this.i(2);return Jt.ax(x.x,x.y,E.x,E.y,E.x,E.y,b.x,b.y,a),a}if(E=(y-1)/3|0,x=3*(E/2|0),E%2===1){E=this.i(x),b=this.i(x+1);var z=this.i(x+2);x=this.i(x+3),Jt.ax(E.x,E.y,b.x,b.y,z.x,z.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var tt=this.flattenedLengths;for(x=this.flattenedTotalLength,b=z=E=0;Ex/2));)E+=b,z++;return y=this.i(z),z=this.i(z+1),1>Math.abs(y.x-z.x)?y.y>z.y?a.h(y.x,y.y-(x/2-E)):a.h(y.x,y.y+(x/2-E)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(x/2-E),y.y):a.h(y.x+(x/2-E),y.y):(x=(x/2-E)/b,a.h(y.x+x*(z.x-y.x),y.y+x*(z.y-y.y))),a},Ne.prototype.computeMidAngle=function(){var a=this.pointsCount;if(2>a)return NaN;if(a===2)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===ea))return this.ua.wx(.5);if(this.computeCurve()===ea&&4<=a){var y=(a-1)/3|0,x=3*(y/2|0);if(y%2===1){x=Math.floor(x),a=this.i(x),y=this.i(x+1);var E=this.i(x+2);return x=this.i(x+3),Jt.My(a.x,a.y,y.x,y.y,E.x,E.y,x.x,x.y)}if(0E/2));)b+=z,x++;if(y=this.i(x),E=this.i(x+1),1>Math.abs(y.x-E.x)&&1>Math.abs(y.y-E.y)){if(0Math.abs(y.x-E.x))return y.y>E.y?270:90;if(1>Math.abs(y.y-E.y))return y.x>E.x?180:0}return y.ab(E)},Pt=Ne.prototype,Pt.i=function(a){return this.Nb.s[a]},Pt.dd=function(a,y){this.Nb.cd(a,y)},Pt.L=function(a,y,x){this.Nb.cd(a,new jt(y,x))},Pt.Kz=function(a,y){this.Nb.Gb(a,y)},Pt.m=function(a,y,x){this.Nb.Gb(a,new jt(y,x))},Pt.ne=function(a){this.Nb.add(a)},Pt.yf=function(a,y){this.Nb.add(new jt(a,y))},Pt.pv=function(a){this.Nb.mb(a)},Pt.Fj=function(){this.Nb.clear()};function Zu(a,y,x){if(y!==0||x!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,x),a.defaultToPoint&&a.defaultToPoint.offset(y,x);else{for(var E=a.fd,b=new He,z=a.Nb.iterator;z.next();){var tt=z.value;b.add(new jt(tt.x+y,tt.y+x).freeze())}b.freeze(),z=a.Nb,a.Nb=b,tt=a.diagram,isNaN(y)||isNaN(x)||tt!==null&&tt.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+x),a.pa.h(a.pa.x+y,a.pa.y+x),ss(a)),E?U0(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),tt!==null&&tt.animationManager.zb&&Jg(tt.animationManager,a,b),a.g("points",z,b)}}Pt.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Pt.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,E=1/0,b=a.s,z=b.length,tt=0;ttat&&(ft=-ft),Bt=(0>rt?-1:1)*ft+yt,Dt=ut*(Bt-yt)+At),yt=z.x+2*ot/3,At=z.y+2*rt/3;var It=yt,Rt=At;Jt.B(rt,0)?Rt=0rt?-1:1)*ft+yt,Rt=ut*(It-yt)+At),this.Fj(),this.ne(z),this.yf(Bt,Dt),this.yf(It,Rt),this.ne(mt),this.dd(0,this.getLinkPoint(a,y,tt,!0,!1,E,b)),this.dd(3,this.getLinkPoint(E,b,x,!1,!1,a,y))}else z=E,mt=b,E=this.getLinkPoint(a,y,tt,!0,!1,z,mt),b=this.getLinkPoint(z,mt,x,!1,!1,a,y),this.hasCurviness()?(mt=b.x-E.x,x=b.y-E.y,tt=this.computeCurviness(),a=E.x+mt/2,y=E.y+x/2,z=a,ot=y,Jt.B(x,0)?ot=0tt&&(z=-z),z=(0>x?-1:1)*z+a,ot=mt*(z-a)+y),this.ne(E),this.yf(z,ot),this.ne(b)):(this.ne(E),this.ne(b),ot=ce.alloc(),y.mi(ot),rt=ot.ca(b),mt.mi(ot),at=ot.ca(E),(rt||at)&&(tt=y.ga(W0(tt),new jt),this.dd(0,this.getLinkPointFromPoint(a,y,tt,b,!0,tt)),x=mt.ga(W0(x),new jt),this.dd(1,this.getLinkPointFromPoint(z,mt,x,E,!1,x))),ce.free(ot))}else{ft=this.isAvoiding,mt&&(ut&&ft||at)&&this.Fj();var zt=at?this.computeCurviness():0;ft=this.getLinkPoint(a,y,tt,!0,ut,E,b),yt=Bt=At=0,(ut||!ot||at)&&(Dt=this.computeEndSegmentLength(a,y,tt,!0),yt=this.getLinkDirection(a,y,ft,tt,!0,ut,E,b),at&&(ot||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(yt-=ut?90:30,0>zt&&(yt-=180)),0>yt?yt+=360:360<=yt&&(yt-=360),at&&(Dt+=Math.abs(zt)*(ut?1:2)),yt===0?At=Dt:yt===90?Bt=Dt:yt===180?At=-Dt:yt===270?Bt=-Dt:(At=Dt*Math.cos(yt*Math.PI/180),Bt=Dt*Math.sin(yt*Math.PI/180)),tt.Mc()&&at&&(Dt=y.ga(pi,jt.alloc()),It=jt.allocAt(Dt.x+1e3*At,Dt.y+1e3*Bt),this.getLinkPointFromPoint(a,y,Dt,It,!0,ft),jt.free(Dt),jt.free(It))),Dt=this.getLinkPoint(E,b,x,!1,ut,a,y);var Gt=Rt=It=0;if(ut||!rt||at){var Kt=this.computeEndSegmentLength(E,b,x,!1);Gt=this.getLinkDirection(E,b,Dt,x,!1,ut,a,y),at&&(rt||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(Gt+=ut?0:30,0>zt&&(Gt+=180)),0>Gt?Gt+=360:360<=Gt&&(Gt-=360),at&&(Kt+=Math.abs(zt)*(ut?1:2)),Gt===0?It=Kt:Gt===90?Rt=Kt:Gt===180?It=-Kt:Gt===270?Rt=-Kt:(It=Kt*Math.cos(Gt*Math.PI/180),Rt=Kt*Math.sin(Gt*Math.PI/180)),x.Mc()&&at&&(x=b.ga(pi,jt.alloc()),tt=jt.allocAt(x.x+1e3*It,x.y+1e3*Rt),this.getLinkPointFromPoint(E,b,x,tt,!1,Dt),jt.free(x),jt.free(tt))}x=ft,(ut||!ot||at)&&(x=new jt(ft.x+At,ft.y+Bt)),tt=Dt,(ut||!rt||at)&&(tt=new jt(Dt.x+It,Dt.y+Rt)),!mt&&!ut&&ot&&3Math.abs(y.y-a.y)?(y.x>=a.x?y.x=a.x+9e9:y.x=a.x-9e9,y.y=a.y):(y.y>=a.y?y.y=a.y+9e9:y.y=a.y-9e9,y.x=a.x),y}Ne.prototype.getLinkPointFromPoint=function(a,y,x,E,b,z){if(z===void 0&&(z=new jt),a===null||y===null)return z.assign(x),z;if(a.isVisible()||(b=a.findVisibleNode(),b!==null&&b!==a&&(y=b.port)),a=null,b=y.panel,b===null||b.se()||(b=b.panel),b===null){b=E.x,E=E.y;var tt=x.x;x=x.y}else{a=b.oe,b=1/(a.m11*a.m22-a.m12*a.m21),tt=a.m22*b;var ot=-a.m12*b,rt=-a.m21*b,at=a.m11*b,ut=b*(a.m21*a.dy-a.m22*a.dx),ft=b*(a.m12*a.dx-a.m11*a.dy);b=E.x*tt+E.y*rt+ut,E=E.x*ot+E.y*at+ft,tt=x.x*tt+x.y*rt+ut,x=x.x*ot+x.y*at+ft}return y.Sj(b,E,tt,x,z),a!==null&&z.transform(a),z};function X0(a,y){var x=y.Zn;return x===null&&(x=new Ag,x.port=y,x.node=y.part,y.Zn=x),a1(x,a)}Ne.prototype.getLinkPoint=function(a,y,x,E,b,z,tt,ot){if(ot===void 0&&(ot=new jt),x.sb()&&!Bf(x))return y.ga(x,ot),ot;if(x.$c()){var rt=X0(this,y);if(rt!==null){if(ot.assign(rt.Zo),b&&this.routing===e1){var at=X0(this,tt);if(at!==null&&rt.Gl=ut.y&&a.y<=ut.y+ut.height?ot.y=a.y:(x.Hf(cl)||x.Hf(wa))&&a.x>=ut.x&&a.x<=ut.x+ut.width&&(ot.x=a.x),jt.free(rt),jt.free(at)}}return ot}}return x=y.ga(W0(x),jt.alloc()),this.pointsCount>(b?6:2)?(tt=E?this.i(1):this.i(this.pointsCount-2),b&&(tt=Vv(x,tt.copy()))):(rt=this.computeSpot(!E,tt),z=jt.alloc(),tt=tt.ga(W0(rt),z),b&&(tt=Vv(x,tt)),jt.free(z)),this.getLinkPointFromPoint(a,y,x,tt,E,ot),jt.free(x),ot},Ne.prototype.getLinkDirection=function(a,y,x,E,b,z,tt,ot){t:if(E.sb())var rt=E.x>E.y?E.x>1-E.y?0:E.x<1-E.y?270:315:E.x1-E.y?90:E.x<1-E.y?180:135:.5>E.x?225:.5(z?6:2)?(ot=b?this.i(1):this.i(this.pointsCount-2),ot=z?Vv(rt,ot.copy()):x):(x=jt.alloc(),ot=ot.ga(pi,x),jt.free(x)),x=Math.abs(ot.x-rt.x)>Math.abs(ot.y-rt.y)?ot.x>=rt.x?0:180:ot.y>=rt.y?90:270,jt.free(rt),rt=x}return E.Mc()&&tt.Td(a)&&(rt+=180,360<=rt&&(rt-=360)),Bf(E)||(a=y.li(),a===0)||(45<=a&&135>a?rt+=90:135<=a&&225>a?rt+=180:225<=a&&315>a&&(rt+=270),360<=rt&&(rt-=360)),rt},Ne.prototype.computeEndSegmentLength=function(a,y,x,E){return y!==null&&x.$c()&&(a=X0(this,y),a!==null)?a.Ju:(a=E?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=E?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},Ne.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=pi:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===ar?er:y)):(a=y||this.toPort,a===null?a=pi:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===ar?er:y)),a};function Bf(a){return a===er||a.x===.5&&a.y===.5}function W0(a){return a.x===.5&&a.y===.5?a:pi}Ne.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==hs&&4mt.width||ft.y>mt.height||0>ft.x+ft.width||0>ft.y+ft.height)){if(ft=Hn.alloc(),ft.set(tt),ut instanceof Ie)ot=ut.Cf(a,y,x,E,b,ft);else if(this.path===ut){if(ut instanceof Nn)if(ot=a,mt=E,ut.pickable===!1)ot=!1;else if(ft.multiply(ut.transform),mt)t:{var yt=ot,At=ft;if(ut.fh(yt,At))ot=!0;else{if(At===void 0&&(At=ut.transform,yt.Re(ut.actualBounds))){ot=!0;break t}ot=yt.left,mt=yt.right;var Bt=yt.top;yt=yt.bottom;var Dt=jt.alloc(),It=jt.alloc(),Rt=jt.alloc(),zt=Hn.alloc();zt.set(At),zt.bv(ut.transform),zt.Vj(),It.x=mt,It.y=Bt,It.transform(zt),Dt.x=ot,Dt.y=Bt,Dt.transform(zt),At=!1,Ld(ut,Dt,It,Rt)?At=!0:(Dt.x=mt,Dt.y=yt,Dt.transform(zt),Ld(ut,Dt,It,Rt)?At=!0:(It.x=ot,It.y=yt,It.transform(zt),Ld(ut,Dt,It,Rt)?At=!0:(Dt.x=ot,Dt.y=Bt,Dt.transform(zt),Ld(ut,Dt,It,Rt)&&(At=!0)))),Hn.free(zt),jt.free(Dt),jt.free(It),jt.free(Rt),ot=At}}else ot=ut.fh(ot,ft)}else ot=or(ut,a,E,ft);ot&&(mt=ut,y!==null&&(mt=y(ut)),mt&&(x===null||x(mt))&&b.add(mt)),Hn.free(ft)}}}return z===void 0&&Hn.free(tt),ot||this.background!==null||this.areaBackground!==null}return z===void 0&&Hn.free(tt),!1},Ne.prototype.computeCurve=function(){if(this.Wf===null){var a=this.fromPort,y=this.isOrthogonal;this.Wf=a!==null&&a===this.toPort&&!y}return this.Wf?ea:this.curve},Ne.prototype.computeCorner=function(){if(this.curve===ea)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},Ne.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,E=0;Ert?-Math.PI/2:Math.PI/2;else ut=Math.atan(rt/Math.abs(ot)),0>ot&&(ut=Math.PI-ut);tt=y.x;var ft=y.y;ot=E.x-tt;var mt=E.y-ft;for(rt=Math.sqrt(ot*ot+mt*mt),Jt.$(ot,0)?mt=0>mt?-Math.PI/2:Math.PI/2:(mt=Math.atan(mt/Math.abs(ot)),0>ot&&(mt=Math.PI-mt)),at=rt/at,ut=mt-ut,this.dd(a,y),a+=1;art?-Math.PI/2:Math.PI/2:(rt=Math.atan(rt/Math.abs(ot)),0>ot&&(rt=Math.PI-rt)),ot=rt+ut,y*=at,this.L(a,tt+y*Math.cos(ot),ft+y*Math.sin(ot)));this.dd(x,E)}}return!0;case Z0:if(z=this.i(a),ft=this.i(x),!z.Xa(y)||!ft.Xa(E)){b=z.x,z=z.y,tt=ft.x,ft=ft.y,at=(tt-b)*(tt-b)+(ft-z)*(ft-z),ot=y.x,ut=y.y,rt=E.x,mt=E.y;var yt=1;if(rt-ot!==0){var At=(mt-ut)/(rt-ot);yt=Math.sqrt(1+1/(At*At))}else At=9e9;for(this.dd(a,y),a+=1;ay?y+=360:360<=y&&(y-=360),0>E?E+=360:360<=E&&(E-=360);var tt=E;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,E=315<=E||45>E?0:45<=E&&135>E?90:135<=E&&225>E?180:270;var ot=b.actualBounds.copy(),rt=z.actualBounds.copy();if(ot.w()&&rt.w()){ot.Bc(ep,ep),rt.Bc(ep,ep),ot.Ye(a),rt.Ye(x);var at=jt.alloc(),ut=jt.alloc();y===0?x.x>a.x||E===270&&x.ya.x||E===90&&x.y>a.y&&rt.right>a.x?(at.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),E===180?(at.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ut.x=at.x,ut.y=x.y):E===270&&x.ya.y?(at.x=a.xrt.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):rt.right,ut.x=at.x,ut.y=x.y):E===0&&a.xrt.top&&a.yot.bottom)&&(E===180&&(rt.ca(a)||ot.ca(x))?at.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.ya.y&&(E===180||E===270)&&(at.y=this.computeMidOrthoPosition(a.x,ot.bottom,x.x,Math.min(x.y,rt.top),!0)),ut.x=x.x,ut.y=at.y),at.y>ot.top&&at.y=ot.left&&x.x<=a.x||a.x<=rt.right&&a.x>=x.x?(E===90||E===270)&&(at.h(Math.max((a.x+x.x)/2,a.x),a.y),ut.h(at.x,x.y)):(at.y=E===270||(E===0||E===180)&&x.ya.y&&rt.lefta.y?(at.x=a.x>rt.right?this.computeMidOrthoPosition(a.x,a.y,rt.right,x.y,!1):a.x>rt.left&&(E===270&&a.yrt.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):rt.left,ut.x=at.x,ut.y=x.y):E===180&&a.x>rt.right&&a.y>rt.top&&a.yot.bottom)&&(E===0&&(rt.ca(a)||ot.ca(x))?at.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.ya.y&&(E===0||E===270)&&(at.y=this.computeMidOrthoPosition(a.x,ot.bottom,x.x,Math.min(x.y,rt.top),!0)),ut.x=x.x,ut.y=at.y),at.y>ot.top&&at.y=a.x||a.x>=rt.left&&a.x<=x.x?(E===90||E===270)&&(at.h(Math.min((a.x+x.x)/2,a.x),a.y),ut.h(at.x,x.y)):(at.y=E===270||(E===0||E===180)&&x.ya.y||E===180&&x.xa.y||E===0&&x.x>a.x&&rt.bottom>a.y?(at.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),E===270?(at.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ut.x=x.x,ut.y=at.y):E===180&&x.xa.x?(at.y=a.yrt.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):rt.bottom,ut.x=x.x,ut.y=at.y):E===90&&a.yrt.left&&a.xot.right)&&(E===270&&(rt.ca(a)||ot.ca(x))?at.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.xa.x&&(E===270||E===180)&&(at.x=this.computeMidOrthoPosition(ot.right,a.y,Math.min(x.x,rt.left),x.y,!1)),ut.x=at.x,ut.y=x.y),at.x>ot.left&&at.x=ot.top&&x.y<=a.y||a.y<=rt.bottom&&a.y>=x.y?(E===0||E===180)&&(at.h(a.x,Math.max((a.y+x.y)/2,a.y)),ut.h(x.x,at.y)):(at.x=E===180||(E===90||E===270)&&x.xa.x&&rt.top=a.x?(at.y=a.y>rt.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,rt.bottom,!0):a.y>rt.top&&(E===180&&a.xrt.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):rt.top,ut.x=x.x,ut.y=at.y):E===270&&a.y>rt.bottom&&a.x>rt.left&&a.xot.right)&&(E===90&&(rt.ca(a)||ot.ca(x))?at.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.xa.x&&(E===90||E===180)&&(at.x=this.computeMidOrthoPosition(ot.right,a.y,Math.min(x.x,rt.left),x.y,!1)),ut.x=at.x,ut.y=x.y),at.x>ot.left&&at.x=a.y||a.y>=rt.top&&a.y<=x.y?(E===0||E===180)&&(at.h(a.x,Math.min((a.y+x.y)/2,a.y)),ut.h(x.x,at.y)):(at.x=E===180||(E===90||E===270)&&x.x=kf&&(o1(yt),ot.Bc(yt.Ho*yt.Hx,yt.Go*yt.Ix),r1(yt,a,y,ft,E,ot,!1),rt=Ul(yt,ft.x,ft.y)),!yt.abort&&rtthis.pointsCount?(y===0||y===180?(ot.x=a.x,ot.y=ft.y):(ot.x=ft.x,ot.y=a.y),this.L(2,ot.x,ot.y),this.m(3,ot.x,ot.y)):(tt=this.i(3),y===0||y===180?Jt.B(ot.x,tt.x)?(ot=y===0?Math.max(ot.x,a.x):Math.min(ot.x,a.x),this.L(2,ot,a.y),this.L(3,ot,tt.y)):Jt.B(ot.y,tt.y)?(Math.abs(a.y-ot.y)<=yt.Go/2&&(this.L(2,ot.x,a.y),this.L(3,tt.x,a.y)),this.m(2,ot.x,a.y)):this.L(2,a.x,ot.y):(y===90||y===270)&&(Jt.B(ot.y,tt.y)?(ot=y===90?Math.max(ot.y,a.y):Math.min(ot.y,a.y),this.L(2,a.x,ot),this.L(3,tt.x,ot)):Jt.B(ot.x,tt.x)?(Math.abs(a.x-ot.x)<=yt.Ho/2&&(this.L(2,a.x,ot.y),this.L(3,a.x,tt.y)),this.m(2,a.x,ot.y)):this.L(2,ot.x,a.y))),x!==null&&(a=this.i(1),tt=this.i(2),a.x!==tt.x&&a.y!==tt.y?y===0||y===180?this.m(2,a.x,tt.y):this.m(2,tt.x,a.y):y===0||y===180?this.m(2,b.x,x.y):this.m(2,x.x,b.y)),At!==null&&(E===0||E===180?this.yf(z.x,At.y):this.yf(At.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(at.copy()),this.ne(ut.copy())),jt.free(at),jt.free(ut)}},Ne.prototype.computeMidOrthoPosition=function(a,y,x,E,b){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),b?(y+E)/2+z:(a+x)/2+z};function Kv(a){if(a.diagram===null||!a.isAvoiding||!sf(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=af(a.diagram,!0,a.containingGroup,null);for(var E=1;EId&&Ul(y,ut,ft)!==at-1&&(Ul(y,x-ot,E)===at-1?(b=180,ut=x-ot,ft=E):Ul(y,x+ot,E)===at-1?(b=0,ut=x+ot,ft=E):Ul(y,x,E-rt)===at-1?(b=270,ut=x,ft=E-rt):Ul(y,x,E+rt)===at-1&&(b=90,ut=x,ft=E+rt));at>Id&&Ul(y,ut,ft)===at-1;)x=ut,E=ft,b===0?ut+=ot:b===90?ft+=rt:b===180?ut-=ot:ft-=rt,--at;z?at>Id&&(b===180||b===0?x=Math.floor(x/ot)*ot+ot/2:(b===90||b===270)&&(E=Math.floor(E/rt)*rt+rt/2)):(x=Math.floor(x/ot)*ot+ot/2,E=Math.floor(E/rt)*rt+rt/2),at>Id&&(z=b,tt=x,ut=E,b===0?(z=90,ut+=rt):b===90?(z=180,tt-=ot):b===180?(z=270,ut-=rt):b===270&&(z=0,tt+=ot),Ul(y,tt,ut)===at-1?Yv(a,y,tt,ut,z,!1,z):(tt=x,ut=E,b===0?(z=270,ut-=rt):b===90?(z=0,tt+=ot):b===180?(z=90,ut+=rt):b===270&&(z=180,tt-=ot),Ul(y,tt,ut)===at-1&&Yv(a,y,tt,ut,z,!1,z))),a.yf(x,E)}Ne.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),E=this.i(1),b=qo(y,a,x.x,x.y,E.x,E.y),z=0,tt=1;ttthis.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),a=this.path,a!==null)){a.ua=this.ua;for(var y=this.O.s,x=y.length,E=0;E=y&&(E=y-1),rt=this.i(E),z.x=Math.min(rt.x,z.x),z.y=Math.min(rt.y,z.y);E=z.x,rt=z.y}else{for(rt=0;rtDt?At>yt?(z.x=It-zt,z.y=yt-zt,b.x=It+Bt,b.y=yt+Bt):(z.x=It-zt,z.y=yt+zt,b.x=It+Bt,b.y=yt-Bt):At>yt?(z.x=It+zt,z.y=yt-zt,b.x=It-Bt,b.y=yt+Bt):(z.x=It+zt,z.y=yt+zt,b.x=It-Bt,b.y=yt-Bt)),Jt.$(Dt,It)&&Jt.$(yt,At)&&(yt>mt?(Rt>It?(z.x=It-zt,z.y=yt-zt,b.x=It+Bt):(z.x=It+zt,z.y=yt-zt,b.x=It-Bt),b.y=yt+Bt):(Rt>It?(z.x=It-zt,z.y=yt+zt,b.x=It+Bt):(z.x=It+zt,z.y=yt+zt,b.x=It-Bt),b.y=yt-Bt)),(Jt.$(Dt,It)&&Jt.$(It,Rt)||Jt.$(mt,yt)&&Jt.$(yt,At))&&(Dt=.5*(Dt+Rt),mt=.5*(mt+At),z.x=Dt,z.y=mt,b.x=Dt,b.y=mt),(ft===1||ft===2&&Jt.$(tt.x,this.i(0).x)&&Jt.$(tt.y,this.i(0).y))&&(x.x=.5*(tt.x+at.x),x.y=.5*(tt.y+at.y)),Vu(ot,x.x-E,x.y-rt,z.x-E,z.y-rt,at.x-E,at.y-rt),y.set(z),x.set(b),tt=at}}at=tt.x,tt=tt.y,ut=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ut=pg(this,ut.copy(),!1,Dr)),at=.5*(at+ut.x),tt=.5*(tt+ut.y),Vu(ot,b.x-E,b.y-rt,at-E,tt-rt,ut.x-E,ut.y-rt),jt.free(y),jt.free(x),jt.free(z),jt.free(b)}else for(x=3;x=y&&(x=y-1),b=this.i(x-1),tt=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(tt=pg(this,tt.copy(),!1,Dr)),Vu(ot,z.x-E,z.y-rt,b.x-E,b.y-rt,tt.x-E,tt.y-rt);else{for(z=jt.alloc(),z.assign(this.i(0)),b=jt.alloc(),b.assign(z),tt=this.computeCorner(),ft=1,at=0;ft=y-1){if(!z.D(ut))this.computeShortLength(!1)!==0&&(ut=pg(this,ut.copy(),!1,Dr)),mg(this,ot,-E,-rt,z,ut,x);else if(at===0)for(ft=1;ftz.x?Gt=mt.x-At:Gt=mt.x+At,It.y>mt.y?Rt=mt.y+zt:Rt=mt.y-zt,It=jt.allocAt(Gt,Kt),mg(this,ot,ft,Dt,z,It,Bt),jt.free(It),O0(ot,mt.x+ft,mt.y+Dt,yt+ft,Rt+Dt),z.h(yt,Rt)}else Jt.B(z.x,mt.x)&&Jt.B(mt.y,It.y)?(At=Math.min(tt,Math.abs(mt.y-b.y)/2),At=zt=Math.min(At,Math.abs(It.x-mt.x)/2),Jt.B(zt,0)?(mg(this,ot,ft,Dt,z,mt,Bt),z.assign(mt)):(Gt=mt.x,Kt=mt.y,yt=Gt,Rt=Kt,mt.y>z.y?Kt=mt.y-At:Kt=mt.y+At,It.x>mt.x?yt=mt.x+zt:yt=mt.x-zt,It=jt.allocAt(Gt,Kt),mg(this,ot,ft,Dt,z,It,Bt),jt.free(It),O0(ot,mt.x+ft,mt.y+Dt,yt+ft,Rt+Dt),z.h(yt,Rt))):(mg(this,ot,ft,Dt,z,mt,Bt),z.assign(mt));b.assign(ut),ft=at}jt.free(z)}j0=ot}else ot=this.i(1).copy(),ot.x-=E,ot.y-=rt,this.computeShortLength(!0)!==0&&(b=pg(this,b,!0,z)),this.computeShortLength(!1)!==0&&(ot=pg(this,ot,!1,z)),a.type=be.j,a.startX=b.x,a.startY=b.y,a.endX=ot.x,a.endY=ot.y;return this.lk=!0,a};function V0(a,y,x,E){return a=x-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=E-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),Jt.$(a,0)?y:Jt.$(y,0)?a:Math.sqrt(a*a+y*y)))}function pg(a,y,x,E){var b=a.pointsCount;if(2>b)return y;if(x){var z=a.i(1);if(x=z.x-E.x,z=z.y-E.y,E=V0(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!0),a>b&&(a=b),b=a*(z-y.y)/E,y.x+=a*(x-y.x)/E,y.y+=b}else{if(z=a.i(b-2),x=z.x-E.x,z=z.y-E.y,E=V0(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!1),a>b&&(a=b),b=a*(y.y-z)/E,y.x-=a*(y.x-x)/E,y.y-=b}return y}function Zv(a,y,x,E){for(var b=a.pointsCount,z=y;Jt.$(y.x,z.x)&&Jt.$(y.y,z.y);){if(x>=b)return b-1;z=a.i(x++)}if(!Jt.$(y.x,z.x)&&!Jt.$(y.y,z.y))return x-1;for(var tt=z;Jt.$(y.x,z.x)&&Jt.$(z.x,tt.x)&&(!E||(y.y>=z.y?z.y>=tt.y:z.y<=tt.y))||Jt.$(y.y,z.y)&&Jt.$(z.y,tt.y)&&(!E||(y.x>=z.x?z.x>=tt.x:z.x<=tt.x));){if(x>=b)return b-1;tt=a.i(x++)}return x-2}Ne.prototype.computeJumpLength=function(){return 10};function mg(a,y,x,E,b,z,tt){if(!tt&&kd(a)){tt=a.computeJumpLength();var ot=tt/2,rt=[],at=0;if(a.isVisible()&&(at=ES(a,b,z,rt)),0ft-tt);)at--,ft=Math.max(ut-ot,z.x);ut=z.y-tt+E,ft+=x,yt=z.y+E,a.curve===Ju?Cf(y,ft,yt,!1):Vu(y,mt,ut,ft,ut,ft,yt)}else if(Jt.B(b.x,z.x))if(b.yut-tt);)at--,ut=Math.max(ft-ot,z.y);ft=z.x-tt+x,yt=z.x+x,ut+=E,a.curve===Ju?Cf(y,yt,ut,!1):Vu(y,ft,mt,ft,ut,yt,ut)}}}y.lineTo(z.x+x,z.y+E)}function ES(a,y,x,E){var b=a.diagram;if(b===null||y.D(x))return 0;for(b=b.layers;b.next();){var z=b.value;if(z!==null&&z.visible){z=z.Pa.s;for(var tt=z.length,ot=0;ottt.x&&ut.x>=at.x||at.xtt.y&&ut.y>=at.y||at.ytt&&Math.min(At,Bt)ut&&!Jt.B(At,Bt)){ot.x=ut,ot.y=tt,ut=!0;break t}}else if(Jt.B(ft,yt)&&Jt.B(At,Bt)&&Math.min(ut,mt)At&&Math.min(tt,Dt)ft&&!Jt.B(tt,Dt)){ot.x=At,ot.y=ft,ut=!0;break t}ot.x=0,ot.y=0,ut=!1}ut&&(b?x.push(ot.x):x.push(ot.y)),tt=at}jt.free(ot)}function kd(a){return a=a.curve,a===Lf||a===Ju}function K0(a,y){(y||kd(a))&&(y=a.diagram,y===null||y.animationManager.isTicking||y.Eh.contains(a)||a.ml.width===0&&a.ml.height===0||y.Eh.add(a,a.ml.copy()))}Ne.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var x=y.diagram;if(x!==null&&!x.animationManager.isTicking){var E=!1;for(x=x.layers;x.next();){var b=x.value;if(b.visible){if(b===y){E=!0;var z=!1;b=b.Pa.s;for(var tt=b.length,ot=0;ota&&Zn(a,">= 0",Ne,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),this.bb())}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:NaN},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.qc(),this.g("fromShortLength",y,a))}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:ar},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),(y.$c()||a.$c())&&this.toNode!==null&&Gs(this.toPort),this.bb())}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:NaN},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Zn(a,">= 0",Ne,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),this.bb())}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:NaN},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.qc(),this.g("toShortLength",y,a))}},isLabeledLink:{get:function(){return this.wd===null?!1:0=E&&(z=E-1);var ot=this.i(z-1),rt=this.i(z);Jt.Dl(b.x,b.y,tt.x,tt.y,ot.x,ot.y,rt.x,rt.y,.5,a),y=Math.min(rt.x,y),x=Math.min(rt.y,x),b=rt}else for(b=this.i(0),z=this.i(1),y=Math.min(b.x,z.x),x=Math.min(b.y,z.y),a.h(b.x,b.y,0,0),a.Ye(z),b=2;bE&&(E=-E)):Jt.$(E.y,b.y)?(E=b.x-E.x,0>E&&(E=-E)):E=Math.sqrt(E.Bf(b)),a.push(E)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,x=y.length,E=a=0;Ethis.pointsCount)return this.lk=!0,this.ua;this.ua=this.makeGeometry()}return this.ua}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!Bf(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!Bf(this.computeSpot(!1))?a-2:a-1}},adjusting:{get:function(){return this.qk},set:function(a){var y=this.qk;y!==a&&(this.qk=a,this.g("adjusting",y,a))}},corner:{get:function(){return this.Om},set:function(a){var y=this.Om;y!==a&&(this.Om=a,this.qc(),this.g("corner",y,a))}},curve:{get:function(){return this.Qm},set:function(a){var y=this.Qm;y!==a&&(this.Qm=a,this.bb(),this.qc(),K0(this,y===Ju||y===Lf||a===Ju||a===Lf),this.g("curve",y,a))}},curviness:{get:function(){return this.Rm},set:function(a){var y=this.Rm;y!==a&&(this.Rm=a,this.bb(),this.qc(),this.g("curviness",y,a))}},routing:{get:function(){return this.qj},set:function(a){var y=this.qj;y!==a&&(this.qj=a,this.Wf=null,this.bb(),K0(this,(y.value&2)===2||(a.value&2)===2),this.g("routing",y,a))}},smoothness:{get:function(){return this.po},set:function(a){var y=this.po;y!==a&&(this.po=a,this.qc(),this.g("smoothness",y,a))}},key:{get:function(){var a=this.diagram;if(a!==null&&a.model.ri())return a.model.Ac(this.data)}}}),Ne.prototype.invalidateOtherJumpOvers=Ne.prototype.Xo,Ne.prototype.findClosestSegment=Ne.prototype.ez,Ne.prototype.updateRoute=Ne.prototype.vg,Ne.prototype.invalidateRoute=Ne.prototype.bb,Ne.prototype.rollbackRoute=Ne.prototype.rv,Ne.prototype.commitRoute=Ne.prototype.zf,Ne.prototype.startRoute=Ne.prototype.uh,Ne.prototype.clearPoints=Ne.prototype.Fj,Ne.prototype.removePoint=Ne.prototype.pv,Ne.prototype.addPointAt=Ne.prototype.yf,Ne.prototype.addPoint=Ne.prototype.ne,Ne.prototype.insertPointAt=Ne.prototype.m,Ne.prototype.insertPoint=Ne.prototype.Kz,Ne.prototype.setPointAt=Ne.prototype.L,Ne.prototype.setPoint=Ne.prototype.dd,Ne.prototype.getPoint=Ne.prototype.i,Ne.prototype.getOtherPort=Ne.prototype.Cz,Ne.prototype.getOtherNode=Ne.prototype.To;var vg=null,yg=null,Jv=new Ee(Ne,"Normal",1),LS=new Ee(Ne,"Orthogonal",2),MS=new Ee(Ne,"AvoidsNodes",6),e1=new Ee(Ne,"AvoidsNodesStraight",7),hs=new Ee(Ne,"None",0),ea=new Ee(Ne,"Bezier",9),Ju=new Ee(Ne,"JumpGap",10),Lf=new Ee(Ne,"JumpOver",11),Zc=new Ee(Ne,"End",17),Y0=new Ee(Ne,"Scale",18),Z0=new Ee(Ne,"Stretch",19),Jc=new Ee(Ne,"OrientAlong",21),qc=new Ee(Ne,"OrientPlus90",22),_c=new Ee(Ne,"OrientMinus90",23),qv=new Ee(Ne,"OrientOpposite",24),J0=new Ee(Ne,"OrientUpright",25),$c=new Ee(Ne,"OrientPlus90Upright",26),tp=new Ee(Ne,"OrientMinus90Upright",27),q0=new Ee(Ne,"OrientUpright45",28),n1=16,i1=14,ep=8;Ne.className="Link",Ne.Normal=Jv,Ne.Orthogonal=LS,Ne.AvoidsNodes=MS,Ne.AvoidsNodesStraight=e1,Ne.None=hs,Ne.Bezier=ea,Ne.JumpGap=Ju,Ne.JumpOver=Lf,Ne.End=Zc,Ne.Scale=Y0,Ne.Stretch=Z0,Ne.OrientAlong=Jc,Ne.OrientPlus90=qc,Ne.OrientMinus90=_c,Ne.OrientOpposite=qv,Ne.OrientUpright=J0,Ne.OrientPlus90Upright=$c,Ne.OrientMinus90Upright=tp,Ne.OrientUpright45=q0,Ne.EndSegmentStep=8,Ne.CurvinessStart=n1,Ne.SpacingMin=i1,Ne.OrthoShortCut=ep;function _0(a,y,x,E){eo(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=E,this.links=[]}_0.prototype.Sl=function(){if(!this.qq){var a=this.links;0=a.width||0>=a.height)){var y=a.y,x=a.x+a.width,E=a.y+a.height;if(this.Nd=Math.floor((a.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((y-this.sc)/this.sc)*this.sc,this.En=Math.ceil((x+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((E+2*this.sc)/this.sc)*this.sc,a=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),y=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di=Id&&(x[E]=_v)}np.prototype.Yj=function(a,y,x,E){if(a>this.En||a+xthis.Fn||y+Ea&&(x+=a,a=0),0>y&&(b+=y,y=0),0>x||0>b)return!0;for(E=Math.min(a+x-1,this.di)|0,x=Math.min(y+b-1,this.ei)|0;a<=E;a++){b=this.ac[a];for(var z=y;z<=x;z++)if(b[z]===qu)return!1}return!0};function Xl(a,y,x,E,b,z,tt,ot,rt){if(!(ytt||xrt)){var at=y|0,ut=x|0,ft=a.ac[at][ut];if(ft>=Id&&ft=a.ac[at][ut]);)a.ac[at][ut]=ft,ft+=1,b?ut+=E:at+=E;if(at=b?ut:at,b)if(0at;x+=E)Xl(a,y,x,1,!b,z,tt,ot,rt),Xl(a,y,x,-1,!b,z,tt,ot,rt);else if(0at;y+=E)Xl(a,y,x,1,!b,z,tt,ot,rt),Xl(a,y,x,-1,!b,z,tt,ot,rt)}}function $0(a,y,x,E,b,z,tt,ot,rt){y|=0,x|=0;var at=qu,ut=Id;for(a.ac[y][x]=ut;at===qu&&y>z&&yot&&xz&&yot&&x=Math.abs(ot-at)&&1>=Math.abs(rt-ut))a.abort=!0;else{var ft=z.x;E=z.y,y=z.x+z.width;var mt=z.y+z.height;ft-=a.Nd,ft/=a.rc,E-=a.Od,E/=a.sc,y-=a.Nd,y/=a.rc,mt-=a.Od,mt/=a.sc,z=Math.max(0,Math.min(a.di,ft|0)),y=Math.min(a.di,Math.max(0,y|0)),ft=Math.max(0,Math.min(a.ei,E|0)),mt=Math.min(a.ei,Math.max(0,mt|0)),E=a.ac,ot|=0,rt|=0,at|=0,ut|=0;var yt=x===0||x===90?1:-1;if(x=x===90||x===270,E[ot][rt]===qu?($0(a,ot,rt,yt,x,z,y,ft,mt),$0(a,ot,rt,1,!x,z,y,ft,mt),$0(a,ot,rt,-1,!x,z,y,ft,mt)):$0(a,ot,rt,yt,x,ot,rt,ot,rt),E[at][ut]===qu?(tm(a,at,ut,b===0||b===90?1:-1,b===90||b===270,z,y,ft,mt),tm(a,at,ut,1,!(b===90||b===270),z,y,ft,mt),tm(a,at,ut,-1,!(b===90||b===270),z,y,ft,mt)):tm(a,at,ut,yt,x,at,ut,at,ut),x=Jn(),tt&&s1(a,at,ut,b,ot,rt,x))for((x[0]!==at||x[1]!==ut)&&(x.unshift(ut),x.unshift(at)),(x[x.length-2]!==ot||x[x.length-1]!==rt)&&(x.push(ot),x.push(rt)),a=Id,b=x[x.length-2],tt=x[x.length-1],E[b][tt]=a++,z=x.length-4;0<=z;z-=2)for(b=x[z+2],tt=x[z+3],y=x[z],at=x[z+1];y>b?b++:ytt?tt++:atb)ut--;else break;else if(ft>z)ft--;else break;var mt=ot[ut][ft];if(mt===0||mt===$v)break;rt=ut,at=ft}for(;;){if(ut=E,ft=rt,mt=at,E===0?mtz&&(ut=270,mt--):E===90?ftb&&(ut=180,ft--):E===180?mtz&&(ut=270,mt--):ftb&&(ut=180,ft--),ft=ot[ft][mt],ut!==E&&ft!==0&&ft!==$v){if(tt.push(rt),tt.push(at),s1(a,rt,at,ut,b,z,tt))return!0;tt.pop(),tt.pop()}if(ot[rt][at]=$v,E===0){if(rt===y)return!1;rt--}else if(E===90){if(at===x)return!1;at--}else if(E===180){if(rt===y)return!1;rt++}else{if(at===x)return!1;at++}}}fe.Object.defineProperties(np.prototype,{bounds:{get:function(){return new ce(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(a){0=x?180:0}switch(a=180*Math.atan2(a.height,a.width)/Math.PI,y){case 3:return x>a&&x<=180+a?180:270;case 5:return x>180-a&&x<=360-a?270:0;case 12:return x>a&&x<=180+a?90:0;case 10:return x>180-a&&x<=360-a?180:90;case 7:return 90180+a&&x<=360-a?270:0;case 13:return 180a&&180>=x?90:0;case 14:return x>a&&x<=180-a?90:x>180-a&&270>=x?180:0;case 11:return x>180-a&&x<=180+a?180:x>180+a?270:90}return E&&y!==15&&(x-=15,0>x&&(x+=360)),x>a&&x<180-a?90:x>=180-a&&x<=180+a?180:x>180+a&&x<360-a?270:0}Ag.prototype.Sl=function(){this.pe.length=0};function a1(a,y){var x=a.pe;if(x.length===0){t:if(!a.ap){x=a.ap,a.ap=!0;var E=null,b=a.node,z=b instanceof Bn?b:null;if(z===null||z.isSubGraphExpanded)var tt=b.isTreeExpanded?b.findLinksConnected(a.port.portId):b.qx();else{if(!z.actualBounds.w()){a.ap=x;break t}E=z,tt=E.Lu()}z=a.pe.length=0;var ot=a.port.ga(yr,jt.alloc()),rt=a.port.ga($r,jt.alloc());for(b=ce.allocAt(ot.x,ot.y,0,0),b.Ye(rt),jt.free(ot),jt.free(rt),ot=jt.allocAt(b.x+b.width/2,b.y+b.height/2),rt=a.port.li(),tt=tt.iterator;tt.next();){var at=tt.value;if(at.isVisible()&&at.fromPort!==at.toPort){var ut=at.fromPort===a.port||at.fromNode!==null&&at.fromNode.Td(E),ft=at.computeSpot(ut,a.port);if(ft.$c()&&(ut=ut?at.toPort:at.fromPort,ut!==null)){var mt=ut.part;if(mt!==null){var yt=mt.findVisibleNode();yt!==null&&yt!==mt&&(mt=yt,ut=mt.port),ut=at.computeOtherPoint(mt,ut),mt=ot.ab(ut),mt-=rt,0>mt?mt+=360:360<=mt&&(mt-=360),ft=kS(b,ft,mt,at.isOrthogonal),ft===0?(ft=4,180mt&&(mt+=360)),yt=a.pe[z],yt===void 0?(yt=new ty(at,mt,ft),a.pe[z]=yt):(yt.link=at,yt.angle=mt,yt.Nc=ft),yt.hv.set(ut),z++}}}}for(jt.free(ot),a.pe.sort(Ag.prototype.j),rt=a.pe.length,E=-1,z=ot=0;zMath.abs(Bt)?(Rt=Math.abs(Bt)/mt,mt=Math.abs(Bt)):Rt=1;break;case 2:yt>Math.abs(zt)?(Rt=Math.abs(zt)/yt,yt=Math.abs(zt)):Rt=1;break;case 1:ft>Math.abs(Bt)?(Rt=Math.abs(Bt)/ft,ft=Math.abs(Bt)):Rt=1;break;default:case 4:ut>Math.abs(zt)?(Rt=Math.abs(zt)/ut,ut=Math.abs(zt)):Rt=1}It=0}var ie=Gt.Zo;if(E===Uv){switch(Gt=Gt.link.computeThickness(),Gt*=Rt,ie.set(Kt),At){case 8:ie.x=Kt.x+Bt/2+mt/2-It-Gt/2;break;case 2:ie.y=Kt.y+zt/2+yt/2-It-Gt/2;break;case 1:ie.x=Kt.x+Bt/2-ft/2+It+Gt/2;break;default:case 4:ie.y=Kt.y+zt/2-ut/2+It+Gt/2}It+=Gt}else{var Ue=.5;E===G0&&(Ue=(Gt.Uo+1)/(Gt.Gl+1)),ie.x=Kt.x+Bt*Ue,ie.y=Kt.y+zt*Ue}}}for(jt.free(ot),jt.free(rt),jt.free(tt),jt.free(at),Kt=a.pe,z=0;zy.Nc?1:a.angley.angle?1:0},Ag.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,er,y.fromPort===this.port),E=a.Uo;if(0>E)return x;var b=a.Gl;if(1>=b||!y.isOrthogonal)return x;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(E=b-1-E),((a=a.Nc===2||a.Nc===4)?y.y=y-1?(z=0,E=x,b+=tt+20,tt=0):z++}},_i.prototype.doMinimalNetworkLayout=function(){var a=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var y=this.arrangementOrigin.x,x=y,E=this.arrangementOrigin.y,b=0,z=0,tt=this.network.vertexes.iterator;tt.next();){var ot=tt.value.node;if(!(ot===null||ot instanceof Ne)&&(ip(ot),this.rh(ot))){var rt=ot.measuredBounds,at=rt.width;rt=rt.height,ot.moveTo(x,E),ot instanceof Bn&&(ot.rh=!1),x+=Math.max(at,50)+20,z=Math.max(z,Math.max(rt,50)),b>=a-1?(b=0,x=y,E+=z+20,z=0):b++}}},_i.prototype.rh=function(a){return!!(!a.location.w()||a instanceof Bn&&a.rh)};function Oh(a,y,x,E,b,z,tt,ot){for(x=x.iterator;x.next();){var rt=x.value;E&&!rt.isTopLevel||b!==null&&!b(rt)||!rt.canLayout()||(z&&rt instanceof Xe?rt.isLinkLabel||(rt instanceof Bn&&rt.layout===null?Oh(a,y,rt.memberParts,!1,b,z,tt,ot):(ip(rt),y.add(rt))):tt&&rt instanceof Ne?y.add(rt):!ot||!rt.Zc()||rt instanceof Xe||(ip(rt),y.add(rt)))}}function ip(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}_i.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new ce),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},_i.prototype.ex=function(a){var y=new ze;return a instanceof oe?(Oh(this,y,a.nodes,!0,null,!0,!0,!0),Oh(this,y,a.links,!0,null,!0,!0,!0),Oh(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof Bn?Oh(this,y,a.memberParts,!1,null,!0,!0,!0):Oh(this,y,a.iterator,!1,null,!0,!0,!0),y},_i.prototype.initialOrigin=function(a){var y=this.group;if(y!==null){var x=y.position.copy();return(isNaN(x.x)||isNaN(x.y))&&x.set(a),y=y.placeholder,y!==null&&(x=y.ga(yr),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},fe.Object.defineProperties(_i.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},group:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a,a!==null&&(this.H=a.diagram))}},isOngoing:{get:function(){return this.sn},set:function(a){this.sn!==a&&(this.sn=a)}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a,a||(this.xn=!0)}},isViewportSized:{get:function(){return this.yn},set:function(a){this.yn!==a&&(this.yn=a)&&this.C()}},isRouting:{get:function(){return this.vn},set:function(a){this.vn!==a&&(this.vn=a)}},isRealtime:{get:function(){return this.un},set:function(a){this.un!==a&&(this.un=a)}},isValidLayout:{get:function(){return this.xn},set:function(a){this.xn!==a&&(this.xn=a,a||(a=this.diagram,a!==null&&(a.xh=!0)))}},network:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,a!==null&&(a.layout=this))}},boundsComputation:{get:function(){return this.Em},set:function(a){this.Em!==a&&(this.Em=a,this.C())}},arrangementOrigin:{get:function(){return this.Am},set:function(a){this.Am.D(a)||(this.Am.assign(a),this.C())}}}),_i.prototype.collectParts=_i.prototype.ex,_i.prototype.getLayoutBounds=_i.prototype.ni,_i.prototype.invalidateLayout=_i.prototype.C,_i.className="Layout";function Ti(a){eo(this),this.Sc=a,this.wf=new ze,this.ye=new ze,this.Es=new xn,this.zs=new xn}Ti.prototype.clear=function(){if(this.wf)for(var a=this.wf.iterator;a.next();)a.value.clear();if(this.ye)for(a=this.ye.iterator;a.next();)a.value.clear();this.wf=new ze,this.ye=new ze,this.Es=new xn,this.zs=new xn},Ti.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutNetwork"+(this.layout!==null?"("+this.layout.toString()+")":"");if(0>=a)return y;if(y+=" vertexes: "+this.wf.count+" edges: "+this.ye.count,1a?a=0:1a?a=0:1=a&&Zn(a,"> 0",Ni,"maxLines"),El(this),this.da.Jq=a,this.v(),this.g("maxLines",y,a))}},metrics:{get:function(){return{arrSize:this.Qc!==null?this.Qc:[this.Cb],arrText:this.Qb!==null?this.Qb:[this.ze],maxLineWidth:this.Cb,fontHeight:this.df}}},choices:{get:function(){return this.Gm},set:function(a){var y=this.Gm;y!==a&&(this.Gm=a,this.g("choices",y,a))}}});var I0=null,F0=null,Mv=new Ee(Ni,"None",0),xA=new Ee(Ni,"WrapFit",1),kv=new Ee(Ni,"WrapDesiredSize",2),PA=new Ee(Ni,"WrapBreakAll",3),Iv=new Ee(Ni,"OverflowClip",0),N0=new Ee(Ni,"OverflowEllipsis",1),Xc=new Ee(Ni,"FormatTrim",0),wA=new Ee(Ni,"FormatNone",0),AS=/[ \u200b\u00ad]/,Fv=new Vn,CA=0,T0=new Vn,Nv=0,Wc="...",EA="",xs=null,D0=!1;Ni.className="TextBlock";function Tv(){this.nc=!1,this.Hd=null,this.Xf=we,this.gq=Xc,this.Jq=1/0,this.$q=Iv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=vl,this.$r=kv}Tv.prototype.copy=function(){var a=new Tv;return a.Hd=this.Hd,a.Xf=this.Xf,a.gq=this.gq,a.Jq=this.Jq,a.$q=this.$q,a.Dr=this.Dr,a.Er=this.Er,a.Or=this.Or,a.Pr=this.Pr,a.Qr=this.Qr,a.vj=this.vj,a.Yr=this.Yr,a.$r=this.$r,a},Ni.getEllipsis=function(){return Wc},Ni.setEllipsis=function(a){Wc=a,T0=new Vn,Nv=0},Ni.getBaseline=function(){return I0},Ni.setBaseline=function(a){I0=a},Ni.getUnderline=function(){return F0},Ni.setUnderline=function(a){F0=a},Ni.isValidFont=function(a){if(D0||(xs=Ao?new ka(null).context:null,D0=!0),xs===null)return!0;var y=xs.font;if(a===y||a==="10px sans-serif")return!0;xs.font="10px sans-serif",xs.font=a;var x=xs.font;if(x!=="10px sans-serif")return xs.font=y,!0;xs.font="19px serif";var E=xs.font;return xs.font=a,x=xs.font,xs.font=y,x!==E},Ni.FormatNone=wA,Ni.FormatTrim=Xc,Ni.None=Mv,Ni.OverflowClip=Iv,Ni.OverflowEllipsis=N0,Ni.WrapBreakAll=PA,Ni.WrapDesiredSize=kv,Ni.WrapFit=xA;function Gl(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Gl.prototype.copy=function(){var a=new Gl;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},Gl.className="GradElementSettings";function Ps(a,y){Yt.call(this),this.Eg=null,this.qo="",this.Xg=hh,this.Nk=Le,this.Zg=this.Hd=null,this.Mk=pi,this.Xf=we,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,typeof a=="string"?this.source=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}var xf;Ae(Ps,Yt),Ps.prototype.cloneProtected=function(a){Yt.prototype.cloneProtected.call(this,a),a.qo=this.qo,a.element=this.Eg,a.Xg=this.Xg.J(),a.Nk=this.Nk,a.Xf=this.Xf,a.Hd=this.Hd,a.Zg=this.Zg,a.Mk=this.Mk.J(),a.en=this.en,a.rl=this.rl},Ps.prototype.qb=function(a){a===we||a===en||a===Kn?this.imageStretch=a:Yt.prototype.qb.call(this,a)},Ps.prototype.toString=function(){return"Picture("+this.source+")#"+Zo(this)};function Pf(a){a===void 0&&(a=""),a!==""?xf[a]&&(delete xf[a],b0--):(xf=new Vn,b0=0)}function BA(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var E=y.Bg.copy();if(E!=null){for(E=E.iterator;E.next();){var b=E.value;b.N();var z=y.getAttribute("src")||"",tt=b.Og.I(z);if(tt!==null)for(var ot=tt.length,rt=0;rt=E.width&&(z=z+At.offsetX+(ft*At.x-E.width*At.x)),mt>=E.height&&(tt=tt+At.offsetY+(mt*At.y-E.height*At.y)),rt=Math.min(E.width,ft),ot=Math.min(E.height,mt);break;case Le:ft=E.width,mt=E.height;break;case en:case Kn:yt===en?(yt=Math.min(E.height/mt,E.width/ft),ft*=yt,mt*=yt):yt===Kn&&(yt=Math.max(E.height/mt,E.width/ft),ft*=yt,mt*=yt,ft>=E.width&&(z=(z+At.offsetX+(ft*At.x-E.width*At.x)/ft)*rt),mt>=E.height&&(tt=(tt+At.offsetY+(mt*At.y-E.height*At.y)/mt)*ot),rt*=1/(ft/E.width),ot*=1/(mt/E.height),ft=E.width,mt=E.height)}yt=this.Df()*y.scale;var Bt=ft*yt*mt*yt,Dt=rt*ot/Bt,It=x.__goCache;yt=null;var Rt=SS;if(!b){if(x.sq&&It!==void 0&&4Rt*Rt)for(It.gi===null&&(MA(It,4,at,ut,x),MA(It,16,at,ut,x)),b=It.gi,at=b.length,ut=0;uta)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,x/3);var E="rr"+y+","+x+","+a,b=Jt.Mf[E];if(b!==void 0)return b;var z=a*Jt.wg;return b=new be().add(new nr(a,0,!0).add(new ui(Ri,y-a,0)).add(new ui(kr,y,a,y-z,0,y,z)).add(new ui(Ri,y,x-a)).add(new ui(kr,y-a,x,y,x-z,y-z,x)).add(new ui(Ri,a,x)).add(new ui(kr,0,x-a,z,x,0,x-z)).add(new ui(Ri,0,a)).add(new ui(kr,a,0,0,z,z,0).close())),1b.x&&a.y>b.y&&a.rightb.x&&y.y>b.y&&y.right=x.maxSelectionCount)){this.G^=4096;var E=!1;if(x!==null){E=x.skipsUndoManager,x.skipsUndoManager=!0;var b=x.selection;b.ka(),a?b.add(this):b.remove(this),b.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),x!==null&&(x.$b(),x.skipsUndoManager=E)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(a){var y=(this.G&524288)!==0;if(y!==a){this.G^=524288;var x=this.diagram;x!==null&&(x=x.highlighteds,x.ka(),a?x.add(this):x.remove(this),x.freeze()),this.g("isHighlighted",y,a),this.N(),a=this.highlightedChanged,a!==null&&a(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(a){var y=(this.G&8192)!==0;y!==a&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",y,a),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(a){var y=(this.G&262144)!==0;y!==a&&(this.G^=262144,this.g("isAnimated",y,a))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(a){var y=this.highlightedChanged;y!==a&&(ws(this),this.P.oq=a,this.g("highlightedChanged",y,a))}},selectionObjectName:{get:function(){return this.P!==null?this.P.vr:""},set:function(a){var y=this.selectionObjectName;y!==a&&(ws(this),this.P.vr=a,this.Ug=null,this.g("selectionObjectName",y,a))}},selectionAdornmentTemplate:{get:function(){return this.P!==null?this.P.tr:null},set:function(a){var y=this.selectionAdornmentTemplate;y!==a&&(ws(this),this.P.tr=a,this.g("selectionAdornmentTemplate",y,a))}},selectionObject:{get:function(){if(this.Ug===null){var a=this.selectionObjectName;a!==null&&a!==""?(a=this.fb(a),a!==null?this.Ug=a:this.Ug=this):this instanceof Ne?(a=this.path,a!==null?this.Ug=a:this.Ug=this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return this.P!==null?this.P.ur:null},set:function(a){var y=this.selectionChanged;y!==a&&(ws(this),this.P.ur=a,this.g("selectionChanged",y,a))}},resizeAdornmentTemplate:{get:function(){return this.P!==null?this.P.fr:null},set:function(a){var y=this.resizeAdornmentTemplate;y!==a&&(ws(this),this.P.fr=a,this.g("resizeAdornmentTemplate",y,a))}},resizeObjectName:{get:function(){return this.P!==null?this.P.hr:""},set:function(a){var y=this.resizeObjectName;y!==a&&(ws(this),this.P.hr=a,this.g("resizeObjectName",y,a))}},resizeObject:{get:function(){var a=this.resizeObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},resizeCellSize:{get:function(){return this.P!==null?this.P.gr:$o},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),ws(this),this.P.gr=a,this.g("resizeCellSize",y,a))}},rotateAdornmentTemplate:{get:function(){return this.P!==null?this.P.ir:null},set:function(a){var y=this.rotateAdornmentTemplate;y!==a&&(ws(this),this.P.ir=a,this.g("rotateAdornmentTemplate",y,a))}},rotateObjectName:{get:function(){return this.P!==null?this.P.jr:""},set:function(a){var y=this.rotateObjectName;y!==a&&(ws(this),this.P.jr=a,this.g("rotateObjectName",y,a))}},rotateObject:{get:function(){var a=this.rotateObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},rotationSpot:{get:function(){return this.P!==null?this.P.lr:ar},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),ws(this),this.P.lr=a,this.g("rotationSpot",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;y!==a&&(this.ec=a,this.g("text",y,a))}},containingGroup:{get:function(){return this.Ah},set:function(a){if(this.Zc()){var y=this.Ah;if(y!==a){a===null||this!==a&&!a.Td(this)||(this===a&&ee("Cannot make a Group a member of itself: "+this.toString()),ee("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?Wv(y,this):this instanceof Bn&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Xv(a,this):this instanceof Bn&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var E=this.data,b=x.model;if(E!==null&&b.Xj()){var z=b.wa(a!==null?a.data:null);b.mp(E,z)}}if(E=this.containingGroupChanged,E!==null&&(b=!0,x!==null&&(b=x.aa,x.aa=!0),E(this,y,a),x!==null&&(x.aa=b)),this instanceof Bn){for(x=new ze,bh(x,this,!0,0,!0),x=x.iterator;x.next();)if(E=x.value,E instanceof Xe)for(E=E.linksConnected;E.next();)Ef(E.value)}if(this instanceof Xe){for(x=this.linksConnected;x.next();)Ef(x.value);x=this.labeledLink,x!==null&&Ef(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&qg(y,-1,a))}}else ee("cannot set the Part.containingGroup of a Link or Adornment")}},containingGroupChanged:{get:function(){return this.P!==null?this.P.Kp:null},set:function(a){var y=this.containingGroupChanged;y!==a&&(ws(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof Xe&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(ws(this),this.P.Cq=a,this.g("layoutConditions",y,a))}},dragComputation:{get:function(){return this.P!==null?this.P.Up:null},set:function(a){var y=this.dragComputation;y!==a&&(ws(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:xa},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),ws(this),this.P.zr=a,this.N(),this.g("shadowOffset",y,a))}},shadowColor:{get:function(){return this.P!==null?this.P.yr:"gray"},set:function(a){var y=this.shadowColor;y!==a&&(ws(this),this.P.yr=a,this.N(),this.g("shadowColor",y,a))}},shadowBlur:{get:function(){return this.P!==null?this.P.Vg:4},set:function(a){var y=this.shadowBlur;y!==a&&(ws(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),ln.prototype.invalidateLayout=ln.prototype.C,ln.prototype.findCommonContainingGroup=ln.prototype.px,ln.prototype.isMemberOf=ln.prototype.Td,ln.prototype.findTopLevelPart=ln.prototype.sz,ln.prototype.findSubGraphLevel=ln.prototype.oz,ln.prototype.ensureBounds=ln.prototype.Va,ln.prototype.getDocumentBounds=ln.prototype.mi,ln.prototype.findObject=ln.prototype.fb,ln.prototype.moveTo=ln.prototype.moveTo,ln.prototype.invalidateAdornments=ln.prototype.Wb,ln.prototype.clearAdornments=ln.prototype.Ej,ln.prototype.removeAdornment=ln.prototype.Jf,ln.prototype.addAdornment=ln.prototype.bh,ln.prototype.findAdornment=ln.prototype.Pj,ln.prototype.updateTargetBindings=ln.prototype.La;var QA=!1;ln.className="Part",ln.LayoutNone=0,ln.LayoutAdded=1,ln.LayoutRemoved=2,ln.LayoutShown=4,ln.LayoutHidden=8,ln.LayoutNodeSized=16,ln.LayoutGroupLayout=32,ln.LayoutNodeReplaced=64,ln.LayoutStandard=127,ln.LayoutAll=16777215;function ai(a,y){a===void 0||a instanceof Ko||typeof a=="string"?ln.call(this,a):(ln.call(this),a&&(y=a)),this.G&=-257,this.Jg="Adornment",this.ue=null,this.Aw=0,this.Uw=!1,this.j=this.$a=null,y&&Object.assign(this,y)}Ae(ai,ln),ai.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},ai.prototype.updateRelationshipsFromData=function(){},ai.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof Ne&&y instanceof Nn){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var E=0;Ea&&(a=1);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new ze;x.add(this),YA(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Gu),y.Ue=!1}};function YA(a,y,x,E,b,z,tt){if(1a&&(a=2);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new ze;x.add(this),JA(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Gu),y.Ue=!1}};function JA(a,y,x,E,b,z,tt){for(var ot=z===a?!1:a.isTreeExpanded,rt=x?a.Mo():a.Sd(),at={};rt.next();){var ut=rt.value;if(ut.isTreeLink&&(ot||ut.fd||ut.bb(),ut=ut.To(a),ut!==null&&ut!==a&&!y.contains(ut))){if(y.add(ut),!ot){ut.Zb(!0),ut.oh();var ft=x?ut.Oo():ut.Po();at.vv=a,ft.all(function(mt){return function(yt){return yt===mt.vv||!yt.isTreeExpanded}}(at))&&b.Cj(ut,z)}(2b&&(b=ot.right),ot.bottom>z&&(z=ot.bottom)}}return isFinite(x)&&isFinite(E)?a.h(x,E,b-x,z-E):(y=y.location,a.h(y.x,y.y,0,0)),a},fe.Object.defineProperties(ls.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Rn(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),ls.className="Placeholder";function Ne(a){ln.call(this,Ie.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=us,this.Om=0,this.Qm=us,this.Rm=NaN,this.qj=Jv,this.po=.5,this.wd=null,this.Nb=new He().freeze(),this.Tg=this.Mg=null,this.ml=new ce,this.ua=new be,this.u=this.o=this.Sf=this.Wf=null,this.su=new jt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Ae(Ne,ln),Ne.prototype.cloneProtected=function(a){ln.prototype.cloneProtected.call(this,a),a.Qa=this.Qa&-113,a.ff=this.ff,a.gn=this.gn,a.vf=this.vf,a.uo=this.uo,a.qk=this.qk,a.Om=this.Om,a.Qm=this.Qm,a.Rm=this.Rm,a.qj=this.qj,a.po=this.po,this.ba!==null&&(a.ba=this.ba.copy())},Pt=Ne.prototype,Pt.Af=function(a){ln.prototype.Af.call(this,a),this.ff=a.ff,this.vf=a.vf,a.Mg=null,a.bb(),a.Sf=this.Sf;var y=a.fromPort;y!==null&&Gs(y),a=a.toPort,a!==null&&Gs(a)},Pt.qb=function(a){a.classType===Ne?(a.value&2)===2?this.routing=a:a===ea||a===Ju||a===Lf?this.curve=a:a===Zc||a===Y0||a===Z0?this.adjusting=a:a!==Jv&&a!==us&&ee("Unknown Link enum value for a Link property: "+a):ln.prototype.qb.call(this,a)},Pt.Xc=function(){this.ba===null&&(this.ba=new bc)},Pt.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),ss(a)||Th(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),ss(a)||Th(a)))},Pt.zv=function(){return!1},Pt.Av=function(){},Pt.Zc=function(){return!1},Ne.prototype.computeAngle=function(a,y,x){return Ne.computeAngle(y,x)},Ne.computeAngle=function(a,y){switch(a){default:case us:a=0;break;case Jc:a=y;break;case qc:a=y+90;break;case _c:a=y-90;break;case qv:a=y+180;break;case J0:a=Jt.bp(y),90a&&(a-=180);break;case $c:a=Jt.bp(y+90),90a&&(a-=180);break;case tp:a=Jt.bp(y-90),90a&&(a-=180);break;case q0:if(a=Jt.bp(y),45a||225a)return 0;90a&&(a-=180)}return Jt.bp(a)};function Ef(a){var y=a.fromNode,x=a.toNode,E=null;if(y!==null?E=x!==null?y.px(x):y.containingGroup:x!==null?E=x.containingGroup:E=null,y=E,x=a.Ah,x!==y){x!==null&&Wv(x,a),a.Ah=y,y!==null&&Xv(y,a);var b=a.containingGroupChanged;if(b!==null){var z=!0,tt=a.diagram;tt!==null&&(z=tt.aa,tt.aa=!0),b(a,x,y),tt!==null&&(tt.aa=z)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=E}Pt=Ne.prototype,Pt.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&ln.prototype.oh.call(this)},Pt.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Pt.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function $A(a,y){a.wd===null&&(a.wd=new ze),a.wd.add(y),a.v()}Pt.Vo=function(a){if(ln.prototype.Vo.call(this,a),kd(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Q0(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||Q0(x,this,E)}Kc(this)}},Pt.Wo=function(a){if(ln.prototype.Wo.call(this,a),kd(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,H0(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||H0(x,this,E)}Yc(this)}},Pt.Lj=function(){if(this.fd=!0,this.wd!==null){var a=this.diagram;if(a!==null)for(var y=this.wd.copy().iterator;y.next();)a.remove(y.value)}this.data!==null&&(a=this.diagram,a!==null&&a.partManager.removeDataForLink(this))},Ne.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},Ne.prototype.move=function(a,y){var x=y?this.location:this.position,E=x.x;isNaN(E)&&(E=0);var b=x.y;for(isNaN(b)&&(b=0),E=a.x-E,b=a.y-b,y===!0?ln.prototype.move.call(this,a,!1):(a=jt.allocAt(x.x+E,x.y+b),ln.prototype.move.call(this,a,!1),jt.free(a)),Zu(this,E,b),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+E,x.y+b)},Ne.prototype.canRelinkFrom=function(){if(!this.relinkableFrom)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},Ne.prototype.canRelinkTo=function(){if(!this.relinkableTo)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},Ne.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(cl),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var x=this.i(0),E=this.i(1);return a.h((x.x+E.x)/2,(x.y+E.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===ea))return this.ua.Pu(.5,a),a.add(this.i(0)),x=this.ua.figures.first(),a.offset(-x.startX,-x.startY),a;if(this.computeCurve()===ea){if(y===3){x=this.i(0),E=this.i(1);var b=this.i(2);return Jt.ax(x.x,x.y,E.x,E.y,E.x,E.y,b.x,b.y,a),a}if(E=(y-1)/3|0,x=3*(E/2|0),E%2===1){E=this.i(x),b=this.i(x+1);var z=this.i(x+2);x=this.i(x+3),Jt.ax(E.x,E.y,b.x,b.y,z.x,z.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var tt=this.flattenedLengths;for(x=this.flattenedTotalLength,b=z=E=0;Ex/2));)E+=b,z++;return y=this.i(z),z=this.i(z+1),1>Math.abs(y.x-z.x)?y.y>z.y?a.h(y.x,y.y-(x/2-E)):a.h(y.x,y.y+(x/2-E)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(x/2-E),y.y):a.h(y.x+(x/2-E),y.y):(x=(x/2-E)/b,a.h(y.x+x*(z.x-y.x),y.y+x*(z.y-y.y))),a},Ne.prototype.computeMidAngle=function(){var a=this.pointsCount;if(2>a)return NaN;if(a===2)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===ea))return this.ua.wx(.5);if(this.computeCurve()===ea&&4<=a){var y=(a-1)/3|0,x=3*(y/2|0);if(y%2===1){x=Math.floor(x),a=this.i(x),y=this.i(x+1);var E=this.i(x+2);return x=this.i(x+3),Jt.My(a.x,a.y,y.x,y.y,E.x,E.y,x.x,x.y)}if(0E/2));)b+=z,x++;if(y=this.i(x),E=this.i(x+1),1>Math.abs(y.x-E.x)&&1>Math.abs(y.y-E.y)){if(0Math.abs(y.x-E.x))return y.y>E.y?270:90;if(1>Math.abs(y.y-E.y))return y.x>E.x?180:0}return y.ab(E)},Pt=Ne.prototype,Pt.i=function(a){return this.Nb.s[a]},Pt.dd=function(a,y){this.Nb.cd(a,y)},Pt.L=function(a,y,x){this.Nb.cd(a,new jt(y,x))},Pt.Kz=function(a,y){this.Nb.Gb(a,y)},Pt.m=function(a,y,x){this.Nb.Gb(a,new jt(y,x))},Pt.ne=function(a){this.Nb.add(a)},Pt.yf=function(a,y){this.Nb.add(new jt(a,y))},Pt.pv=function(a){this.Nb.mb(a)},Pt.Fj=function(){this.Nb.clear()};function Zu(a,y,x){if(y!==0||x!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,x),a.defaultToPoint&&a.defaultToPoint.offset(y,x);else{for(var E=a.fd,b=new He,z=a.Nb.iterator;z.next();){var tt=z.value;b.add(new jt(tt.x+y,tt.y+x).freeze())}b.freeze(),z=a.Nb,a.Nb=b,tt=a.diagram,isNaN(y)||isNaN(x)||tt!==null&&tt.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+x),a.pa.h(a.pa.x+y,a.pa.y+x),rs(a)),E?U0(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),tt!==null&&tt.animationManager.zb&&Jg(tt.animationManager,a,b),a.g("points",z,b)}}Pt.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Pt.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,E=1/0,b=a.s,z=b.length,tt=0;ttat&&(ft=-ft),Bt=(0>rt?-1:1)*ft+yt,Dt=ut*(Bt-yt)+At),yt=z.x+2*ot/3,At=z.y+2*rt/3;var It=yt,Rt=At;Jt.B(rt,0)?Rt=0rt?-1:1)*ft+yt,Rt=ut*(It-yt)+At),this.Fj(),this.ne(z),this.yf(Bt,Dt),this.yf(It,Rt),this.ne(mt),this.dd(0,this.getLinkPoint(a,y,tt,!0,!1,E,b)),this.dd(3,this.getLinkPoint(E,b,x,!1,!1,a,y))}else z=E,mt=b,E=this.getLinkPoint(a,y,tt,!0,!1,z,mt),b=this.getLinkPoint(z,mt,x,!1,!1,a,y),this.hasCurviness()?(mt=b.x-E.x,x=b.y-E.y,tt=this.computeCurviness(),a=E.x+mt/2,y=E.y+x/2,z=a,ot=y,Jt.B(x,0)?ot=0tt&&(z=-z),z=(0>x?-1:1)*z+a,ot=mt*(z-a)+y),this.ne(E),this.yf(z,ot),this.ne(b)):(this.ne(E),this.ne(b),ot=ce.alloc(),y.mi(ot),rt=ot.ca(b),mt.mi(ot),at=ot.ca(E),(rt||at)&&(tt=y.ga(W0(tt),new jt),this.dd(0,this.getLinkPointFromPoint(a,y,tt,b,!0,tt)),x=mt.ga(W0(x),new jt),this.dd(1,this.getLinkPointFromPoint(z,mt,x,E,!1,x))),ce.free(ot))}else{ft=this.isAvoiding,mt&&(ut&&ft||at)&&this.Fj();var zt=at?this.computeCurviness():0;ft=this.getLinkPoint(a,y,tt,!0,ut,E,b),yt=Bt=At=0,(ut||!ot||at)&&(Dt=this.computeEndSegmentLength(a,y,tt,!0),yt=this.getLinkDirection(a,y,ft,tt,!0,ut,E,b),at&&(ot||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(yt-=ut?90:30,0>zt&&(yt-=180)),0>yt?yt+=360:360<=yt&&(yt-=360),at&&(Dt+=Math.abs(zt)*(ut?1:2)),yt===0?At=Dt:yt===90?Bt=Dt:yt===180?At=-Dt:yt===270?Bt=-Dt:(At=Dt*Math.cos(yt*Math.PI/180),Bt=Dt*Math.sin(yt*Math.PI/180)),tt.Mc()&&at&&(Dt=y.ga(pi,jt.alloc()),It=jt.allocAt(Dt.x+1e3*At,Dt.y+1e3*Bt),this.getLinkPointFromPoint(a,y,Dt,It,!0,ft),jt.free(Dt),jt.free(It))),Dt=this.getLinkPoint(E,b,x,!1,ut,a,y);var Gt=Rt=It=0;if(ut||!rt||at){var Kt=this.computeEndSegmentLength(E,b,x,!1);Gt=this.getLinkDirection(E,b,Dt,x,!1,ut,a,y),at&&(rt||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(Gt+=ut?0:30,0>zt&&(Gt+=180)),0>Gt?Gt+=360:360<=Gt&&(Gt-=360),at&&(Kt+=Math.abs(zt)*(ut?1:2)),Gt===0?It=Kt:Gt===90?Rt=Kt:Gt===180?It=-Kt:Gt===270?Rt=-Kt:(It=Kt*Math.cos(Gt*Math.PI/180),Rt=Kt*Math.sin(Gt*Math.PI/180)),x.Mc()&&at&&(x=b.ga(pi,jt.alloc()),tt=jt.allocAt(x.x+1e3*It,x.y+1e3*Rt),this.getLinkPointFromPoint(E,b,x,tt,!1,Dt),jt.free(x),jt.free(tt))}x=ft,(ut||!ot||at)&&(x=new jt(ft.x+At,ft.y+Bt)),tt=Dt,(ut||!rt||at)&&(tt=new jt(Dt.x+It,Dt.y+Rt)),!mt&&!ut&&ot&&3Math.abs(y.y-a.y)?(y.x>=a.x?y.x=a.x+9e9:y.x=a.x-9e9,y.y=a.y):(y.y>=a.y?y.y=a.y+9e9:y.y=a.y-9e9,y.x=a.x),y}Ne.prototype.getLinkPointFromPoint=function(a,y,x,E,b,z){if(z===void 0&&(z=new jt),a===null||y===null)return z.assign(x),z;if(a.isVisible()||(b=a.findVisibleNode(),b!==null&&b!==a&&(y=b.port)),a=null,b=y.panel,b===null||b.se()||(b=b.panel),b===null){b=E.x,E=E.y;var tt=x.x;x=x.y}else{a=b.oe,b=1/(a.m11*a.m22-a.m12*a.m21),tt=a.m22*b;var ot=-a.m12*b,rt=-a.m21*b,at=a.m11*b,ut=b*(a.m21*a.dy-a.m22*a.dx),ft=b*(a.m12*a.dx-a.m11*a.dy);b=E.x*tt+E.y*rt+ut,E=E.x*ot+E.y*at+ft,tt=x.x*tt+x.y*rt+ut,x=x.x*ot+x.y*at+ft}return y.Sj(b,E,tt,x,z),a!==null&&z.transform(a),z};function X0(a,y){var x=y.Zn;return x===null&&(x=new Ag,x.port=y,x.node=y.part,y.Zn=x),a1(x,a)}Ne.prototype.getLinkPoint=function(a,y,x,E,b,z,tt,ot){if(ot===void 0&&(ot=new jt),x.sb()&&!Bf(x))return y.ga(x,ot),ot;if(x.$c()){var rt=X0(this,y);if(rt!==null){if(ot.assign(rt.Zo),b&&this.routing===e1){var at=X0(this,tt);if(at!==null&&rt.Gl=ut.y&&a.y<=ut.y+ut.height?ot.y=a.y:(x.Hf(pl)||x.Hf(wa))&&a.x>=ut.x&&a.x<=ut.x+ut.width&&(ot.x=a.x),jt.free(rt),jt.free(at)}}return ot}}return x=y.ga(W0(x),jt.alloc()),this.pointsCount>(b?6:2)?(tt=E?this.i(1):this.i(this.pointsCount-2),b&&(tt=Vv(x,tt.copy()))):(rt=this.computeSpot(!E,tt),z=jt.alloc(),tt=tt.ga(W0(rt),z),b&&(tt=Vv(x,tt)),jt.free(z)),this.getLinkPointFromPoint(a,y,x,tt,E,ot),jt.free(x),ot},Ne.prototype.getLinkDirection=function(a,y,x,E,b,z,tt,ot){t:if(E.sb())var rt=E.x>E.y?E.x>1-E.y?0:E.x<1-E.y?270:315:E.x1-E.y?90:E.x<1-E.y?180:135:.5>E.x?225:.5(z?6:2)?(ot=b?this.i(1):this.i(this.pointsCount-2),ot=z?Vv(rt,ot.copy()):x):(x=jt.alloc(),ot=ot.ga(pi,x),jt.free(x)),x=Math.abs(ot.x-rt.x)>Math.abs(ot.y-rt.y)?ot.x>=rt.x?0:180:ot.y>=rt.y?90:270,jt.free(rt),rt=x}return E.Mc()&&tt.Td(a)&&(rt+=180,360<=rt&&(rt-=360)),Bf(E)||(a=y.li(),a===0)||(45<=a&&135>a?rt+=90:135<=a&&225>a?rt+=180:225<=a&&315>a&&(rt+=270),360<=rt&&(rt-=360)),rt},Ne.prototype.computeEndSegmentLength=function(a,y,x,E){return y!==null&&x.$c()&&(a=X0(this,y),a!==null)?a.Ju:(a=E?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=E?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},Ne.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=pi:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===ar?er:y)):(a=y||this.toPort,a===null?a=pi:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===ar?er:y)),a};function Bf(a){return a===er||a.x===.5&&a.y===.5}function W0(a){return a.x===.5&&a.y===.5?a:pi}Ne.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==us&&4mt.width||ft.y>mt.height||0>ft.x+ft.width||0>ft.y+ft.height)){if(ft=Hn.alloc(),ft.set(tt),ut instanceof Ie)ot=ut.Cf(a,y,x,E,b,ft);else if(this.path===ut){if(ut instanceof Nn)if(ot=a,mt=E,ut.pickable===!1)ot=!1;else if(ft.multiply(ut.transform),mt)t:{var yt=ot,At=ft;if(ut.fh(yt,At))ot=!0;else{if(At===void 0&&(At=ut.transform,yt.Re(ut.actualBounds))){ot=!0;break t}ot=yt.left,mt=yt.right;var Bt=yt.top;yt=yt.bottom;var Dt=jt.alloc(),It=jt.alloc(),Rt=jt.alloc(),zt=Hn.alloc();zt.set(At),zt.bv(ut.transform),zt.Vj(),It.x=mt,It.y=Bt,It.transform(zt),Dt.x=ot,Dt.y=Bt,Dt.transform(zt),At=!1,Ld(ut,Dt,It,Rt)?At=!0:(Dt.x=mt,Dt.y=yt,Dt.transform(zt),Ld(ut,Dt,It,Rt)?At=!0:(It.x=ot,It.y=yt,It.transform(zt),Ld(ut,Dt,It,Rt)?At=!0:(Dt.x=ot,Dt.y=Bt,Dt.transform(zt),Ld(ut,Dt,It,Rt)&&(At=!0)))),Hn.free(zt),jt.free(Dt),jt.free(It),jt.free(Rt),ot=At}}else ot=ut.fh(ot,ft)}else ot=or(ut,a,E,ft);ot&&(mt=ut,y!==null&&(mt=y(ut)),mt&&(x===null||x(mt))&&b.add(mt)),Hn.free(ft)}}}return z===void 0&&Hn.free(tt),ot||this.background!==null||this.areaBackground!==null}return z===void 0&&Hn.free(tt),!1},Ne.prototype.computeCurve=function(){if(this.Wf===null){var a=this.fromPort,y=this.isOrthogonal;this.Wf=a!==null&&a===this.toPort&&!y}return this.Wf?ea:this.curve},Ne.prototype.computeCorner=function(){if(this.curve===ea)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},Ne.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,E=0;Ert?-Math.PI/2:Math.PI/2;else ut=Math.atan(rt/Math.abs(ot)),0>ot&&(ut=Math.PI-ut);tt=y.x;var ft=y.y;ot=E.x-tt;var mt=E.y-ft;for(rt=Math.sqrt(ot*ot+mt*mt),Jt.$(ot,0)?mt=0>mt?-Math.PI/2:Math.PI/2:(mt=Math.atan(mt/Math.abs(ot)),0>ot&&(mt=Math.PI-mt)),at=rt/at,ut=mt-ut,this.dd(a,y),a+=1;art?-Math.PI/2:Math.PI/2:(rt=Math.atan(rt/Math.abs(ot)),0>ot&&(rt=Math.PI-rt)),ot=rt+ut,y*=at,this.L(a,tt+y*Math.cos(ot),ft+y*Math.sin(ot)));this.dd(x,E)}}return!0;case Z0:if(z=this.i(a),ft=this.i(x),!z.Xa(y)||!ft.Xa(E)){b=z.x,z=z.y,tt=ft.x,ft=ft.y,at=(tt-b)*(tt-b)+(ft-z)*(ft-z),ot=y.x,ut=y.y,rt=E.x,mt=E.y;var yt=1;if(rt-ot!==0){var At=(mt-ut)/(rt-ot);yt=Math.sqrt(1+1/(At*At))}else At=9e9;for(this.dd(a,y),a+=1;ay?y+=360:360<=y&&(y-=360),0>E?E+=360:360<=E&&(E-=360);var tt=E;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,E=315<=E||45>E?0:45<=E&&135>E?90:135<=E&&225>E?180:270;var ot=b.actualBounds.copy(),rt=z.actualBounds.copy();if(ot.w()&&rt.w()){ot.Bc(ep,ep),rt.Bc(ep,ep),ot.Ye(a),rt.Ye(x);var at=jt.alloc(),ut=jt.alloc();y===0?x.x>a.x||E===270&&x.ya.x||E===90&&x.y>a.y&&rt.right>a.x?(at.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),E===180?(at.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ut.x=at.x,ut.y=x.y):E===270&&x.ya.y?(at.x=a.xrt.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):rt.right,ut.x=at.x,ut.y=x.y):E===0&&a.xrt.top&&a.yot.bottom)&&(E===180&&(rt.ca(a)||ot.ca(x))?at.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.ya.y&&(E===180||E===270)&&(at.y=this.computeMidOrthoPosition(a.x,ot.bottom,x.x,Math.min(x.y,rt.top),!0)),ut.x=x.x,ut.y=at.y),at.y>ot.top&&at.y=ot.left&&x.x<=a.x||a.x<=rt.right&&a.x>=x.x?(E===90||E===270)&&(at.h(Math.max((a.x+x.x)/2,a.x),a.y),ut.h(at.x,x.y)):(at.y=E===270||(E===0||E===180)&&x.ya.y&&rt.lefta.y?(at.x=a.x>rt.right?this.computeMidOrthoPosition(a.x,a.y,rt.right,x.y,!1):a.x>rt.left&&(E===270&&a.yrt.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):rt.left,ut.x=at.x,ut.y=x.y):E===180&&a.x>rt.right&&a.y>rt.top&&a.yot.bottom)&&(E===0&&(rt.ca(a)||ot.ca(x))?at.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.ya.y&&(E===0||E===270)&&(at.y=this.computeMidOrthoPosition(a.x,ot.bottom,x.x,Math.min(x.y,rt.top),!0)),ut.x=x.x,ut.y=at.y),at.y>ot.top&&at.y=a.x||a.x>=rt.left&&a.x<=x.x?(E===90||E===270)&&(at.h(Math.min((a.x+x.x)/2,a.x),a.y),ut.h(at.x,x.y)):(at.y=E===270||(E===0||E===180)&&x.ya.y||E===180&&x.xa.y||E===0&&x.x>a.x&&rt.bottom>a.y?(at.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),E===270?(at.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ut.x=x.x,ut.y=at.y):E===180&&x.xa.x?(at.y=a.yrt.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):rt.bottom,ut.x=x.x,ut.y=at.y):E===90&&a.yrt.left&&a.xot.right)&&(E===270&&(rt.ca(a)||ot.ca(x))?at.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.xa.x&&(E===270||E===180)&&(at.x=this.computeMidOrthoPosition(ot.right,a.y,Math.min(x.x,rt.left),x.y,!1)),ut.x=at.x,ut.y=x.y),at.x>ot.left&&at.x=ot.top&&x.y<=a.y||a.y<=rt.bottom&&a.y>=x.y?(E===0||E===180)&&(at.h(a.x,Math.max((a.y+x.y)/2,a.y)),ut.h(x.x,at.y)):(at.x=E===180||(E===90||E===270)&&x.xa.x&&rt.top=a.x?(at.y=a.y>rt.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,rt.bottom,!0):a.y>rt.top&&(E===180&&a.xrt.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):rt.top,ut.x=x.x,ut.y=at.y):E===270&&a.y>rt.bottom&&a.x>rt.left&&a.xot.right)&&(E===90&&(rt.ca(a)||ot.ca(x))?at.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.xa.x&&(E===90||E===180)&&(at.x=this.computeMidOrthoPosition(ot.right,a.y,Math.min(x.x,rt.left),x.y,!1)),ut.x=at.x,ut.y=x.y),at.x>ot.left&&at.x=a.y||a.y>=rt.top&&a.y<=x.y?(E===0||E===180)&&(at.h(a.x,Math.min((a.y+x.y)/2,a.y)),ut.h(x.x,at.y)):(at.x=E===180||(E===90||E===270)&&x.x=kf&&(o1(yt),ot.Bc(yt.Ho*yt.Hx,yt.Go*yt.Ix),r1(yt,a,y,ft,E,ot,!1),rt=Ul(yt,ft.x,ft.y)),!yt.abort&&rtthis.pointsCount?(y===0||y===180?(ot.x=a.x,ot.y=ft.y):(ot.x=ft.x,ot.y=a.y),this.L(2,ot.x,ot.y),this.m(3,ot.x,ot.y)):(tt=this.i(3),y===0||y===180?Jt.B(ot.x,tt.x)?(ot=y===0?Math.max(ot.x,a.x):Math.min(ot.x,a.x),this.L(2,ot,a.y),this.L(3,ot,tt.y)):Jt.B(ot.y,tt.y)?(Math.abs(a.y-ot.y)<=yt.Go/2&&(this.L(2,ot.x,a.y),this.L(3,tt.x,a.y)),this.m(2,ot.x,a.y)):this.L(2,a.x,ot.y):(y===90||y===270)&&(Jt.B(ot.y,tt.y)?(ot=y===90?Math.max(ot.y,a.y):Math.min(ot.y,a.y),this.L(2,a.x,ot),this.L(3,tt.x,ot)):Jt.B(ot.x,tt.x)?(Math.abs(a.x-ot.x)<=yt.Ho/2&&(this.L(2,a.x,ot.y),this.L(3,a.x,tt.y)),this.m(2,a.x,ot.y)):this.L(2,ot.x,a.y))),x!==null&&(a=this.i(1),tt=this.i(2),a.x!==tt.x&&a.y!==tt.y?y===0||y===180?this.m(2,a.x,tt.y):this.m(2,tt.x,a.y):y===0||y===180?this.m(2,b.x,x.y):this.m(2,x.x,b.y)),At!==null&&(E===0||E===180?this.yf(z.x,At.y):this.yf(At.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(at.copy()),this.ne(ut.copy())),jt.free(at),jt.free(ut)}},Ne.prototype.computeMidOrthoPosition=function(a,y,x,E,b){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),b?(y+E)/2+z:(a+x)/2+z};function Kv(a){if(a.diagram===null||!a.isAvoiding||!sf(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=af(a.diagram,!0,a.containingGroup,null);for(var E=1;EId&&Ul(y,ut,ft)!==at-1&&(Ul(y,x-ot,E)===at-1?(b=180,ut=x-ot,ft=E):Ul(y,x+ot,E)===at-1?(b=0,ut=x+ot,ft=E):Ul(y,x,E-rt)===at-1?(b=270,ut=x,ft=E-rt):Ul(y,x,E+rt)===at-1&&(b=90,ut=x,ft=E+rt));at>Id&&Ul(y,ut,ft)===at-1;)x=ut,E=ft,b===0?ut+=ot:b===90?ft+=rt:b===180?ut-=ot:ft-=rt,--at;z?at>Id&&(b===180||b===0?x=Math.floor(x/ot)*ot+ot/2:(b===90||b===270)&&(E=Math.floor(E/rt)*rt+rt/2)):(x=Math.floor(x/ot)*ot+ot/2,E=Math.floor(E/rt)*rt+rt/2),at>Id&&(z=b,tt=x,ut=E,b===0?(z=90,ut+=rt):b===90?(z=180,tt-=ot):b===180?(z=270,ut-=rt):b===270&&(z=0,tt+=ot),Ul(y,tt,ut)===at-1?Yv(a,y,tt,ut,z,!1,z):(tt=x,ut=E,b===0?(z=270,ut-=rt):b===90?(z=0,tt+=ot):b===180?(z=90,ut+=rt):b===270&&(z=180,tt-=ot),Ul(y,tt,ut)===at-1&&Yv(a,y,tt,ut,z,!1,z))),a.yf(x,E)}Ne.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),E=this.i(1),b=qo(y,a,x.x,x.y,E.x,E.y),z=0,tt=1;ttthis.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),a=this.path,a!==null)){a.ua=this.ua;for(var y=this.O.s,x=y.length,E=0;E=y&&(E=y-1),rt=this.i(E),z.x=Math.min(rt.x,z.x),z.y=Math.min(rt.y,z.y);E=z.x,rt=z.y}else{for(rt=0;rtDt?At>yt?(z.x=It-zt,z.y=yt-zt,b.x=It+Bt,b.y=yt+Bt):(z.x=It-zt,z.y=yt+zt,b.x=It+Bt,b.y=yt-Bt):At>yt?(z.x=It+zt,z.y=yt-zt,b.x=It-Bt,b.y=yt+Bt):(z.x=It+zt,z.y=yt+zt,b.x=It-Bt,b.y=yt-Bt)),Jt.$(Dt,It)&&Jt.$(yt,At)&&(yt>mt?(Rt>It?(z.x=It-zt,z.y=yt-zt,b.x=It+Bt):(z.x=It+zt,z.y=yt-zt,b.x=It-Bt),b.y=yt+Bt):(Rt>It?(z.x=It-zt,z.y=yt+zt,b.x=It+Bt):(z.x=It+zt,z.y=yt+zt,b.x=It-Bt),b.y=yt-Bt)),(Jt.$(Dt,It)&&Jt.$(It,Rt)||Jt.$(mt,yt)&&Jt.$(yt,At))&&(Dt=.5*(Dt+Rt),mt=.5*(mt+At),z.x=Dt,z.y=mt,b.x=Dt,b.y=mt),(ft===1||ft===2&&Jt.$(tt.x,this.i(0).x)&&Jt.$(tt.y,this.i(0).y))&&(x.x=.5*(tt.x+at.x),x.y=.5*(tt.y+at.y)),Vu(ot,x.x-E,x.y-rt,z.x-E,z.y-rt,at.x-E,at.y-rt),y.set(z),x.set(b),tt=at}}at=tt.x,tt=tt.y,ut=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ut=pg(this,ut.copy(),!1,Dr)),at=.5*(at+ut.x),tt=.5*(tt+ut.y),Vu(ot,b.x-E,b.y-rt,at-E,tt-rt,ut.x-E,ut.y-rt),jt.free(y),jt.free(x),jt.free(z),jt.free(b)}else for(x=3;x=y&&(x=y-1),b=this.i(x-1),tt=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(tt=pg(this,tt.copy(),!1,Dr)),Vu(ot,z.x-E,z.y-rt,b.x-E,b.y-rt,tt.x-E,tt.y-rt);else{for(z=jt.alloc(),z.assign(this.i(0)),b=jt.alloc(),b.assign(z),tt=this.computeCorner(),ft=1,at=0;ft=y-1){if(!z.D(ut))this.computeShortLength(!1)!==0&&(ut=pg(this,ut.copy(),!1,Dr)),mg(this,ot,-E,-rt,z,ut,x);else if(at===0)for(ft=1;ftz.x?Gt=mt.x-At:Gt=mt.x+At,It.y>mt.y?Rt=mt.y+zt:Rt=mt.y-zt,It=jt.allocAt(Gt,Kt),mg(this,ot,ft,Dt,z,It,Bt),jt.free(It),O0(ot,mt.x+ft,mt.y+Dt,yt+ft,Rt+Dt),z.h(yt,Rt)}else Jt.B(z.x,mt.x)&&Jt.B(mt.y,It.y)?(At=Math.min(tt,Math.abs(mt.y-b.y)/2),At=zt=Math.min(At,Math.abs(It.x-mt.x)/2),Jt.B(zt,0)?(mg(this,ot,ft,Dt,z,mt,Bt),z.assign(mt)):(Gt=mt.x,Kt=mt.y,yt=Gt,Rt=Kt,mt.y>z.y?Kt=mt.y-At:Kt=mt.y+At,It.x>mt.x?yt=mt.x+zt:yt=mt.x-zt,It=jt.allocAt(Gt,Kt),mg(this,ot,ft,Dt,z,It,Bt),jt.free(It),O0(ot,mt.x+ft,mt.y+Dt,yt+ft,Rt+Dt),z.h(yt,Rt))):(mg(this,ot,ft,Dt,z,mt,Bt),z.assign(mt));b.assign(ut),ft=at}jt.free(z)}j0=ot}else ot=this.i(1).copy(),ot.x-=E,ot.y-=rt,this.computeShortLength(!0)!==0&&(b=pg(this,b,!0,z)),this.computeShortLength(!1)!==0&&(ot=pg(this,ot,!1,z)),a.type=be.j,a.startX=b.x,a.startY=b.y,a.endX=ot.x,a.endY=ot.y;return this.lk=!0,a};function V0(a,y,x,E){return a=x-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=E-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),Jt.$(a,0)?y:Jt.$(y,0)?a:Math.sqrt(a*a+y*y)))}function pg(a,y,x,E){var b=a.pointsCount;if(2>b)return y;if(x){var z=a.i(1);if(x=z.x-E.x,z=z.y-E.y,E=V0(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!0),a>b&&(a=b),b=a*(z-y.y)/E,y.x+=a*(x-y.x)/E,y.y+=b}else{if(z=a.i(b-2),x=z.x-E.x,z=z.y-E.y,E=V0(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!1),a>b&&(a=b),b=a*(y.y-z)/E,y.x-=a*(y.x-x)/E,y.y-=b}return y}function Zv(a,y,x,E){for(var b=a.pointsCount,z=y;Jt.$(y.x,z.x)&&Jt.$(y.y,z.y);){if(x>=b)return b-1;z=a.i(x++)}if(!Jt.$(y.x,z.x)&&!Jt.$(y.y,z.y))return x-1;for(var tt=z;Jt.$(y.x,z.x)&&Jt.$(z.x,tt.x)&&(!E||(y.y>=z.y?z.y>=tt.y:z.y<=tt.y))||Jt.$(y.y,z.y)&&Jt.$(z.y,tt.y)&&(!E||(y.x>=z.x?z.x>=tt.x:z.x<=tt.x));){if(x>=b)return b-1;tt=a.i(x++)}return x-2}Ne.prototype.computeJumpLength=function(){return 10};function mg(a,y,x,E,b,z,tt){if(!tt&&kd(a)){tt=a.computeJumpLength();var ot=tt/2,rt=[],at=0;if(a.isVisible()&&(at=ES(a,b,z,rt)),0ft-tt);)at--,ft=Math.max(ut-ot,z.x);ut=z.y-tt+E,ft+=x,yt=z.y+E,a.curve===Ju?Cf(y,ft,yt,!1):Vu(y,mt,ut,ft,ut,ft,yt)}else if(Jt.B(b.x,z.x))if(b.yut-tt);)at--,ut=Math.max(ft-ot,z.y);ft=z.x-tt+x,yt=z.x+x,ut+=E,a.curve===Ju?Cf(y,yt,ut,!1):Vu(y,ft,mt,ft,ut,yt,ut)}}}y.lineTo(z.x+x,z.y+E)}function ES(a,y,x,E){var b=a.diagram;if(b===null||y.D(x))return 0;for(b=b.layers;b.next();){var z=b.value;if(z!==null&&z.visible){z=z.Pa.s;for(var tt=z.length,ot=0;ottt.x&&ut.x>=at.x||at.xtt.y&&ut.y>=at.y||at.ytt&&Math.min(At,Bt)ut&&!Jt.B(At,Bt)){ot.x=ut,ot.y=tt,ut=!0;break t}}else if(Jt.B(ft,yt)&&Jt.B(At,Bt)&&Math.min(ut,mt)At&&Math.min(tt,Dt)ft&&!Jt.B(tt,Dt)){ot.x=At,ot.y=ft,ut=!0;break t}ot.x=0,ot.y=0,ut=!1}ut&&(b?x.push(ot.x):x.push(ot.y)),tt=at}jt.free(ot)}function kd(a){return a=a.curve,a===Lf||a===Ju}function K0(a,y){(y||kd(a))&&(y=a.diagram,y===null||y.animationManager.isTicking||y.Eh.contains(a)||a.ml.width===0&&a.ml.height===0||y.Eh.add(a,a.ml.copy()))}Ne.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var x=y.diagram;if(x!==null&&!x.animationManager.isTicking){var E=!1;for(x=x.layers;x.next();){var b=x.value;if(b.visible){if(b===y){E=!0;var z=!1;b=b.Pa.s;for(var tt=b.length,ot=0;ota&&Zn(a,">= 0",Ne,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),this.bb())}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:NaN},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.qc(),this.g("fromShortLength",y,a))}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:ar},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),(y.$c()||a.$c())&&this.toNode!==null&&Gs(this.toPort),this.bb())}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:NaN},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Zn(a,">= 0",Ne,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),this.bb())}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:NaN},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.qc(),this.g("toShortLength",y,a))}},isLabeledLink:{get:function(){return this.wd===null?!1:0=E&&(z=E-1);var ot=this.i(z-1),rt=this.i(z);Jt.Dl(b.x,b.y,tt.x,tt.y,ot.x,ot.y,rt.x,rt.y,.5,a),y=Math.min(rt.x,y),x=Math.min(rt.y,x),b=rt}else for(b=this.i(0),z=this.i(1),y=Math.min(b.x,z.x),x=Math.min(b.y,z.y),a.h(b.x,b.y,0,0),a.Ye(z),b=2;bE&&(E=-E)):Jt.$(E.y,b.y)?(E=b.x-E.x,0>E&&(E=-E)):E=Math.sqrt(E.Bf(b)),a.push(E)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,x=y.length,E=a=0;Ethis.pointsCount)return this.lk=!0,this.ua;this.ua=this.makeGeometry()}return this.ua}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!Bf(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!Bf(this.computeSpot(!1))?a-2:a-1}},adjusting:{get:function(){return this.qk},set:function(a){var y=this.qk;y!==a&&(this.qk=a,this.g("adjusting",y,a))}},corner:{get:function(){return this.Om},set:function(a){var y=this.Om;y!==a&&(this.Om=a,this.qc(),this.g("corner",y,a))}},curve:{get:function(){return this.Qm},set:function(a){var y=this.Qm;y!==a&&(this.Qm=a,this.bb(),this.qc(),K0(this,y===Ju||y===Lf||a===Ju||a===Lf),this.g("curve",y,a))}},curviness:{get:function(){return this.Rm},set:function(a){var y=this.Rm;y!==a&&(this.Rm=a,this.bb(),this.qc(),this.g("curviness",y,a))}},routing:{get:function(){return this.qj},set:function(a){var y=this.qj;y!==a&&(this.qj=a,this.Wf=null,this.bb(),K0(this,(y.value&2)===2||(a.value&2)===2),this.g("routing",y,a))}},smoothness:{get:function(){return this.po},set:function(a){var y=this.po;y!==a&&(this.po=a,this.qc(),this.g("smoothness",y,a))}},key:{get:function(){var a=this.diagram;if(a!==null&&a.model.ri())return a.model.Ac(this.data)}}}),Ne.prototype.invalidateOtherJumpOvers=Ne.prototype.Xo,Ne.prototype.findClosestSegment=Ne.prototype.ez,Ne.prototype.updateRoute=Ne.prototype.vg,Ne.prototype.invalidateRoute=Ne.prototype.bb,Ne.prototype.rollbackRoute=Ne.prototype.rv,Ne.prototype.commitRoute=Ne.prototype.zf,Ne.prototype.startRoute=Ne.prototype.uh,Ne.prototype.clearPoints=Ne.prototype.Fj,Ne.prototype.removePoint=Ne.prototype.pv,Ne.prototype.addPointAt=Ne.prototype.yf,Ne.prototype.addPoint=Ne.prototype.ne,Ne.prototype.insertPointAt=Ne.prototype.m,Ne.prototype.insertPoint=Ne.prototype.Kz,Ne.prototype.setPointAt=Ne.prototype.L,Ne.prototype.setPoint=Ne.prototype.dd,Ne.prototype.getPoint=Ne.prototype.i,Ne.prototype.getOtherPort=Ne.prototype.Cz,Ne.prototype.getOtherNode=Ne.prototype.To;var vg=null,yg=null,Jv=new Ee(Ne,"Normal",1),LS=new Ee(Ne,"Orthogonal",2),MS=new Ee(Ne,"AvoidsNodes",6),e1=new Ee(Ne,"AvoidsNodesStraight",7),us=new Ee(Ne,"None",0),ea=new Ee(Ne,"Bezier",9),Ju=new Ee(Ne,"JumpGap",10),Lf=new Ee(Ne,"JumpOver",11),Zc=new Ee(Ne,"End",17),Y0=new Ee(Ne,"Scale",18),Z0=new Ee(Ne,"Stretch",19),Jc=new Ee(Ne,"OrientAlong",21),qc=new Ee(Ne,"OrientPlus90",22),_c=new Ee(Ne,"OrientMinus90",23),qv=new Ee(Ne,"OrientOpposite",24),J0=new Ee(Ne,"OrientUpright",25),$c=new Ee(Ne,"OrientPlus90Upright",26),tp=new Ee(Ne,"OrientMinus90Upright",27),q0=new Ee(Ne,"OrientUpright45",28),n1=16,i1=14,ep=8;Ne.className="Link",Ne.Normal=Jv,Ne.Orthogonal=LS,Ne.AvoidsNodes=MS,Ne.AvoidsNodesStraight=e1,Ne.None=us,Ne.Bezier=ea,Ne.JumpGap=Ju,Ne.JumpOver=Lf,Ne.End=Zc,Ne.Scale=Y0,Ne.Stretch=Z0,Ne.OrientAlong=Jc,Ne.OrientPlus90=qc,Ne.OrientMinus90=_c,Ne.OrientOpposite=qv,Ne.OrientUpright=J0,Ne.OrientPlus90Upright=$c,Ne.OrientMinus90Upright=tp,Ne.OrientUpright45=q0,Ne.EndSegmentStep=8,Ne.CurvinessStart=n1,Ne.SpacingMin=i1,Ne.OrthoShortCut=ep;function _0(a,y,x,E){eo(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=E,this.links=[]}_0.prototype.Sl=function(){if(!this.qq){var a=this.links;0=a.width||0>=a.height)){var y=a.y,x=a.x+a.width,E=a.y+a.height;if(this.Nd=Math.floor((a.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((y-this.sc)/this.sc)*this.sc,this.En=Math.ceil((x+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((E+2*this.sc)/this.sc)*this.sc,a=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),y=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di=Id&&(x[E]=_v)}np.prototype.Yj=function(a,y,x,E){if(a>this.En||a+xthis.Fn||y+Ea&&(x+=a,a=0),0>y&&(b+=y,y=0),0>x||0>b)return!0;for(E=Math.min(a+x-1,this.di)|0,x=Math.min(y+b-1,this.ei)|0;a<=E;a++){b=this.ac[a];for(var z=y;z<=x;z++)if(b[z]===qu)return!1}return!0};function Xl(a,y,x,E,b,z,tt,ot,rt){if(!(ytt||xrt)){var at=y|0,ut=x|0,ft=a.ac[at][ut];if(ft>=Id&&ft=a.ac[at][ut]);)a.ac[at][ut]=ft,ft+=1,b?ut+=E:at+=E;if(at=b?ut:at,b)if(0at;x+=E)Xl(a,y,x,1,!b,z,tt,ot,rt),Xl(a,y,x,-1,!b,z,tt,ot,rt);else if(0at;y+=E)Xl(a,y,x,1,!b,z,tt,ot,rt),Xl(a,y,x,-1,!b,z,tt,ot,rt)}}function $0(a,y,x,E,b,z,tt,ot,rt){y|=0,x|=0;var at=qu,ut=Id;for(a.ac[y][x]=ut;at===qu&&y>z&&yot&&xz&&yot&&x=Math.abs(ot-at)&&1>=Math.abs(rt-ut))a.abort=!0;else{var ft=z.x;E=z.y,y=z.x+z.width;var mt=z.y+z.height;ft-=a.Nd,ft/=a.rc,E-=a.Od,E/=a.sc,y-=a.Nd,y/=a.rc,mt-=a.Od,mt/=a.sc,z=Math.max(0,Math.min(a.di,ft|0)),y=Math.min(a.di,Math.max(0,y|0)),ft=Math.max(0,Math.min(a.ei,E|0)),mt=Math.min(a.ei,Math.max(0,mt|0)),E=a.ac,ot|=0,rt|=0,at|=0,ut|=0;var yt=x===0||x===90?1:-1;if(x=x===90||x===270,E[ot][rt]===qu?($0(a,ot,rt,yt,x,z,y,ft,mt),$0(a,ot,rt,1,!x,z,y,ft,mt),$0(a,ot,rt,-1,!x,z,y,ft,mt)):$0(a,ot,rt,yt,x,ot,rt,ot,rt),E[at][ut]===qu?(tm(a,at,ut,b===0||b===90?1:-1,b===90||b===270,z,y,ft,mt),tm(a,at,ut,1,!(b===90||b===270),z,y,ft,mt),tm(a,at,ut,-1,!(b===90||b===270),z,y,ft,mt)):tm(a,at,ut,yt,x,at,ut,at,ut),x=Jn(),tt&&s1(a,at,ut,b,ot,rt,x))for((x[0]!==at||x[1]!==ut)&&(x.unshift(ut),x.unshift(at)),(x[x.length-2]!==ot||x[x.length-1]!==rt)&&(x.push(ot),x.push(rt)),a=Id,b=x[x.length-2],tt=x[x.length-1],E[b][tt]=a++,z=x.length-4;0<=z;z-=2)for(b=x[z+2],tt=x[z+3],y=x[z],at=x[z+1];y>b?b++:ytt?tt++:atb)ut--;else break;else if(ft>z)ft--;else break;var mt=ot[ut][ft];if(mt===0||mt===$v)break;rt=ut,at=ft}for(;;){if(ut=E,ft=rt,mt=at,E===0?mtz&&(ut=270,mt--):E===90?ftb&&(ut=180,ft--):E===180?mtz&&(ut=270,mt--):ftb&&(ut=180,ft--),ft=ot[ft][mt],ut!==E&&ft!==0&&ft!==$v){if(tt.push(rt),tt.push(at),s1(a,rt,at,ut,b,z,tt))return!0;tt.pop(),tt.pop()}if(ot[rt][at]=$v,E===0){if(rt===y)return!1;rt--}else if(E===90){if(at===x)return!1;at--}else if(E===180){if(rt===y)return!1;rt++}else{if(at===x)return!1;at++}}}fe.Object.defineProperties(np.prototype,{bounds:{get:function(){return new ce(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(a){0=x?180:0}switch(a=180*Math.atan2(a.height,a.width)/Math.PI,y){case 3:return x>a&&x<=180+a?180:270;case 5:return x>180-a&&x<=360-a?270:0;case 12:return x>a&&x<=180+a?90:0;case 10:return x>180-a&&x<=360-a?180:90;case 7:return 90180+a&&x<=360-a?270:0;case 13:return 180a&&180>=x?90:0;case 14:return x>a&&x<=180-a?90:x>180-a&&270>=x?180:0;case 11:return x>180-a&&x<=180+a?180:x>180+a?270:90}return E&&y!==15&&(x-=15,0>x&&(x+=360)),x>a&&x<180-a?90:x>=180-a&&x<=180+a?180:x>180+a&&x<360-a?270:0}Ag.prototype.Sl=function(){this.pe.length=0};function a1(a,y){var x=a.pe;if(x.length===0){t:if(!a.ap){x=a.ap,a.ap=!0;var E=null,b=a.node,z=b instanceof Bn?b:null;if(z===null||z.isSubGraphExpanded)var tt=b.isTreeExpanded?b.findLinksConnected(a.port.portId):b.qx();else{if(!z.actualBounds.w()){a.ap=x;break t}E=z,tt=E.Lu()}z=a.pe.length=0;var ot=a.port.ga(yr,jt.alloc()),rt=a.port.ga(ms,jt.alloc());for(b=ce.allocAt(ot.x,ot.y,0,0),b.Ye(rt),jt.free(ot),jt.free(rt),ot=jt.allocAt(b.x+b.width/2,b.y+b.height/2),rt=a.port.li(),tt=tt.iterator;tt.next();){var at=tt.value;if(at.isVisible()&&at.fromPort!==at.toPort){var ut=at.fromPort===a.port||at.fromNode!==null&&at.fromNode.Td(E),ft=at.computeSpot(ut,a.port);if(ft.$c()&&(ut=ut?at.toPort:at.fromPort,ut!==null)){var mt=ut.part;if(mt!==null){var yt=mt.findVisibleNode();yt!==null&&yt!==mt&&(mt=yt,ut=mt.port),ut=at.computeOtherPoint(mt,ut),mt=ot.ab(ut),mt-=rt,0>mt?mt+=360:360<=mt&&(mt-=360),ft=kS(b,ft,mt,at.isOrthogonal),ft===0?(ft=4,180mt&&(mt+=360)),yt=a.pe[z],yt===void 0?(yt=new ty(at,mt,ft),a.pe[z]=yt):(yt.link=at,yt.angle=mt,yt.Nc=ft),yt.hv.set(ut),z++}}}}for(jt.free(ot),a.pe.sort(Ag.prototype.j),rt=a.pe.length,E=-1,z=ot=0;zMath.abs(Bt)?(Rt=Math.abs(Bt)/mt,mt=Math.abs(Bt)):Rt=1;break;case 2:yt>Math.abs(zt)?(Rt=Math.abs(zt)/yt,yt=Math.abs(zt)):Rt=1;break;case 1:ft>Math.abs(Bt)?(Rt=Math.abs(Bt)/ft,ft=Math.abs(Bt)):Rt=1;break;default:case 4:ut>Math.abs(zt)?(Rt=Math.abs(zt)/ut,ut=Math.abs(zt)):Rt=1}It=0}var ie=Gt.Zo;if(E===Uv){switch(Gt=Gt.link.computeThickness(),Gt*=Rt,ie.set(Kt),At){case 8:ie.x=Kt.x+Bt/2+mt/2-It-Gt/2;break;case 2:ie.y=Kt.y+zt/2+yt/2-It-Gt/2;break;case 1:ie.x=Kt.x+Bt/2-ft/2+It+Gt/2;break;default:case 4:ie.y=Kt.y+zt/2-ut/2+It+Gt/2}It+=Gt}else{var Ue=.5;E===G0&&(Ue=(Gt.Uo+1)/(Gt.Gl+1)),ie.x=Kt.x+Bt*Ue,ie.y=Kt.y+zt*Ue}}}for(jt.free(ot),jt.free(rt),jt.free(tt),jt.free(at),Kt=a.pe,z=0;zy.Nc?1:a.angley.angle?1:0},Ag.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,er,y.fromPort===this.port),E=a.Uo;if(0>E)return x;var b=a.Gl;if(1>=b||!y.isOrthogonal)return x;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(E=b-1-E),((a=a.Nc===2||a.Nc===4)?y.y=y-1?(z=0,E=x,b+=tt+20,tt=0):z++}},_i.prototype.doMinimalNetworkLayout=function(){var a=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var y=this.arrangementOrigin.x,x=y,E=this.arrangementOrigin.y,b=0,z=0,tt=this.network.vertexes.iterator;tt.next();){var ot=tt.value.node;if(!(ot===null||ot instanceof Ne)&&(ip(ot),this.rh(ot))){var rt=ot.measuredBounds,at=rt.width;rt=rt.height,ot.moveTo(x,E),ot instanceof Bn&&(ot.rh=!1),x+=Math.max(at,50)+20,z=Math.max(z,Math.max(rt,50)),b>=a-1?(b=0,x=y,E+=z+20,z=0):b++}}},_i.prototype.rh=function(a){return!!(!a.location.w()||a instanceof Bn&&a.rh)};function Oh(a,y,x,E,b,z,tt,ot){for(x=x.iterator;x.next();){var rt=x.value;E&&!rt.isTopLevel||b!==null&&!b(rt)||!rt.canLayout()||(z&&rt instanceof Xe?rt.isLinkLabel||(rt instanceof Bn&&rt.layout===null?Oh(a,y,rt.memberParts,!1,b,z,tt,ot):(ip(rt),y.add(rt))):tt&&rt instanceof Ne?y.add(rt):!ot||!rt.Zc()||rt instanceof Xe||(ip(rt),y.add(rt)))}}function ip(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}_i.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new ce),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},_i.prototype.ex=function(a){var y=new ze;return a instanceof oe?(Oh(this,y,a.nodes,!0,null,!0,!0,!0),Oh(this,y,a.links,!0,null,!0,!0,!0),Oh(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof Bn?Oh(this,y,a.memberParts,!1,null,!0,!0,!0):Oh(this,y,a.iterator,!1,null,!0,!0,!0),y},_i.prototype.initialOrigin=function(a){var y=this.group;if(y!==null){var x=y.position.copy();return(isNaN(x.x)||isNaN(x.y))&&x.set(a),y=y.placeholder,y!==null&&(x=y.ga(yr),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},fe.Object.defineProperties(_i.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},group:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a,a!==null&&(this.H=a.diagram))}},isOngoing:{get:function(){return this.sn},set:function(a){this.sn!==a&&(this.sn=a)}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a,a||(this.xn=!0)}},isViewportSized:{get:function(){return this.yn},set:function(a){this.yn!==a&&(this.yn=a)&&this.C()}},isRouting:{get:function(){return this.vn},set:function(a){this.vn!==a&&(this.vn=a)}},isRealtime:{get:function(){return this.un},set:function(a){this.un!==a&&(this.un=a)}},isValidLayout:{get:function(){return this.xn},set:function(a){this.xn!==a&&(this.xn=a,a||(a=this.diagram,a!==null&&(a.xh=!0)))}},network:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,a!==null&&(a.layout=this))}},boundsComputation:{get:function(){return this.Em},set:function(a){this.Em!==a&&(this.Em=a,this.C())}},arrangementOrigin:{get:function(){return this.Am},set:function(a){this.Am.D(a)||(this.Am.assign(a),this.C())}}}),_i.prototype.collectParts=_i.prototype.ex,_i.prototype.getLayoutBounds=_i.prototype.ni,_i.prototype.invalidateLayout=_i.prototype.C,_i.className="Layout";function Ti(a){eo(this),this.Sc=a,this.wf=new ze,this.ye=new ze,this.Es=new xn,this.zs=new xn}Ti.prototype.clear=function(){if(this.wf)for(var a=this.wf.iterator;a.next();)a.value.clear();if(this.ye)for(a=this.ye.iterator;a.next();)a.value.clear();this.wf=new ze,this.ye=new ze,this.Es=new xn,this.zs=new xn},Ti.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutNetwork"+(this.layout!==null?"("+this.layout.toString()+")":"");if(0>=a)return y;if(y+=" vertexes: "+this.wf.count+" edges: "+this.ye.count,1y?1:0):1:y!==null?-1:0}fe.Object.defineProperties(Yo.prototype,{sourceEdgesArrayAccess:{get:function(){return this.tg._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.mg._dataArray}},data:{get:function(){return this.ub},set:function(a){if(this.ub=a,a!==null&&a.bounds){var y=a.bounds;a=y.x;var x=y.y,E=y.width;y=y.height,this.o.h(E/2,y/2),this.j.h(a,x,E,y)}}},node:{get:function(){return this.Sh},set:function(a){if(this.Sh!==a){this.Sh=a,a.Va();var y=this.network.layout,x=ce.alloc(),E=y.ni(a,x);y=E.x;var b=E.y,z=E.width;if(E=E.height,isNaN(y)&&(y=0),isNaN(b)&&(b=0),this.j.h(y,b,z,E),ce.free(x),!(a instanceof Bn)&&(a=a.locationObject.ga(pi),a.w())){this.o.h(a.x-y,a.y-b);return}this.o.h(z/2,E/2)}}},bounds:{get:function(){return this.j},set:function(a){this.j.D(a)||this.j.assign(a)}},focus:{get:function(){return this.o},set:function(a){this.o.D(a)||this.o.assign(a)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(a){var y=this.j;y.x+this.o.x!==a&&(y.ka(),y.x=a-this.o.x,y.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(a){var y=this.j;y.y+this.o.y!==a&&(y.ka(),y.y=a-this.o.y,y.freeze())}},focusX:{get:function(){return this.o.x},set:function(a){var y=this.o;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},focusY:{get:function(){return this.o.y},set:function(a){var y=this.o;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},x:{get:function(){return this.j.x},set:function(a){var y=this.j;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},y:{get:function(){return this.j.y},set:function(a){var y=this.j;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},width:{get:function(){return this.j.width},set:function(a){var y=this.j;y.width!==a&&(y.ka(),y.width=a,y.freeze())}},height:{get:function(){return this.j.height},set:function(a){var y=this.j;y.height!==a&&(y.ka(),y.height=a,y.freeze())}},network:{get:function(){return this.ob},set:function(a){this.ob=a}},sourceVertexes:{get:function(){for(var a=new ze,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new ze,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new ze,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);for(y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},sourceEdges:{get:function(){return this.tg.iterator}},destinationEdges:{get:function(){return this.mg.iterator}},edges:{get:function(){for(var a=new He,y=this.sourceEdges;y.next();)a.add(y.value);for(y=this.destinationEdges;y.next();)a.add(y.value);return a.iterator}},edgesCount:{get:function(){return this.tg.count+this.mg.count}}}),Yo.prototype.deleteDestinationEdge=Yo.prototype.Jl,Yo.prototype.addDestinationEdge=Yo.prototype.zl,Yo.prototype.deleteSourceEdge=Yo.prototype.Kl,Yo.prototype.addSourceEdge=Yo.prototype.Cl,Yo.className="LayoutVertex",Yo.standardComparer=oy,Yo.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.Sh;var x=y.Sh;if(a!==null){if(x!==null){for(y=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),a=x.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),x=0;x "+(this.qd?this.qd.toString():"null"))),y},Us.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},Us.prototype.commit=function(){},Us.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},fe.Object.defineProperties(Us.prototype,{network:{get:function(){return this.nb},set:function(a){this.nb=a}},data:{get:function(){return this.ub},set:function(a){this.ub!==a&&(this.ub=a)}},link:{get:function(){return this.$k},set:function(a){this.$k!==a&&(this.$k=a)}},fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}}}),Us.prototype.getOtherVertex=Us.prototype.Ax,Us.className="LayoutEdge";function xr(a){_i.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new We(NaN,NaN).freeze(),this.tf=new We(10,10).freeze(),this.Jb=op,this.Rb=nm,this.nd=rp,this.hd=u1,a&&Object.assign(this,a)}Ae(xr,_i),xr.prototype.cloneProtected=function(a){_i.prototype.cloneProtected.call(this,a),a.zo=this.zo,a.yo=this.yo,a.yg.assign(this.yg),a.tf.assign(this.tf),a.Jb=this.Jb,a.Rb=this.Rb,a.nd=this.nd,a.hd=this.hd},xr.prototype.qb=function(a){a.classType===xr?a===rp||a===om||a===ry||a===im?this.sorting=a:a===nm||a===rl?this.arrangement=a:a===op||a===em?this.alignment=a:ee("Unknown enum value: "+a):_i.prototype.qb.call(this,a)},xr.prototype.doLayout=function(a){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var y=this.ex(a);a=this.diagram;for(var x=y.copy().iterator;x.next();){var E=x.value;if(!E.ph()||E.fromNode===null&&E.toNode===null){if(E.Va(),E instanceof Bn)for(E=E.memberParts;E.next();)y.remove(E.value)}else y.remove(E)}var b=y.Fa();if(b.length!==0){switch(this.sorting){case im:b.reverse();break;case rp:b.sort(this.comparer);break;case om:b.sort(this.comparer),b.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var tt=this.wrappingWidth;switch(isNaN(tt)&&a!==null?(y=a.padding,tt=Math.max(a.viewportBounds.width-y.left-y.right,0)):tt=Math.max(this.wrappingWidth,0),0>=z&&0>=tt&&(z=1),y=this.spacing.width,isFinite(y)||(y=0),x=this.spacing.height,isFinite(x)||(x=0),a!==null&&a.Ea("Layout"),E=[],this.alignment){case em:var ot=y,rt=x,at=ce.alloc(),ut=Math.max(this.cellSize.width,1);if(!isFinite(ut))for(var ft=ut=0;ftz-1||0tt)&&(E.push(new ce(0,Bt,tt+ot,It)),Dt=0,At=yt,Bt+=It,It=0),It=Math.max(It,ie),mt){case rl:Gt=-Gt.width;break;default:Gt=0}switch(zt.moveTo(At+Gt,Bt),mt){case rl:At-=Kt;break;default:At+=Kt}Dt++}E.push(new ce(0,Bt,tt+ot,It)),ce.free(at);break;case op:for(rt=tt,ut=z,ft=y,mt=x,tt=ce.alloc(),yt=Math.max(this.cellSize.width,1),z=Bt=at=0,ot=jt.alloc(),At=0;At=at&&(rt-=at),at=zt=0,Kt=Math.max(this.cellSize.height,1),Gt=z=0,ie=!0,Dt=jt.alloc(),Ue=0;Ueut-1||0rt){for(E.push(new ce(0,ie?Rt-z:Rt,rt+ft,Gt+z+mt)),tn=0;tnat&&(z.width+=z.x-at,z.x=at);ce.free(tt)}for(ot=z=tt=b=0;oty?1:0}fe.Object.defineProperties(xr.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(a){this.zo!==a&&(0ft)){var Bt=ft+Qc(At);At.pc(Bt,!0),Sv(At,Bt,ft)}}y.isModified=!0}}finally{y.aa=!0}}}}},xi.prototype.updateAllTargetBindings=function(a){a===void 0&&(a="");for(var y=this.parts.iterator;y.next();)y.value.La(a);for(y=this.nodes.iterator;y.next();)y.value.La(a);for(y=this.links.iterator;y.next();)y.value.La(a)},xi.prototype.rp=function(){for(var a=this.H.model,y=new ze,x=a.nodeDataArray,E=0;Ey?1:0):1:y!==null?-1:0}fe.Object.defineProperties(Yo.prototype,{sourceEdgesArrayAccess:{get:function(){return this.tg._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.mg._dataArray}},data:{get:function(){return this.ub},set:function(a){if(this.ub=a,a!==null&&a.bounds){var y=a.bounds;a=y.x;var x=y.y,E=y.width;y=y.height,this.o.h(E/2,y/2),this.j.h(a,x,E,y)}}},node:{get:function(){return this.Sh},set:function(a){if(this.Sh!==a){this.Sh=a,a.Va();var y=this.network.layout,x=ce.alloc(),E=y.ni(a,x);y=E.x;var b=E.y,z=E.width;if(E=E.height,isNaN(y)&&(y=0),isNaN(b)&&(b=0),this.j.h(y,b,z,E),ce.free(x),!(a instanceof Bn)&&(a=a.locationObject.ga(pi),a.w())){this.o.h(a.x-y,a.y-b);return}this.o.h(z/2,E/2)}}},bounds:{get:function(){return this.j},set:function(a){this.j.D(a)||this.j.assign(a)}},focus:{get:function(){return this.o},set:function(a){this.o.D(a)||this.o.assign(a)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(a){var y=this.j;y.x+this.o.x!==a&&(y.ka(),y.x=a-this.o.x,y.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(a){var y=this.j;y.y+this.o.y!==a&&(y.ka(),y.y=a-this.o.y,y.freeze())}},focusX:{get:function(){return this.o.x},set:function(a){var y=this.o;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},focusY:{get:function(){return this.o.y},set:function(a){var y=this.o;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},x:{get:function(){return this.j.x},set:function(a){var y=this.j;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},y:{get:function(){return this.j.y},set:function(a){var y=this.j;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},width:{get:function(){return this.j.width},set:function(a){var y=this.j;y.width!==a&&(y.ka(),y.width=a,y.freeze())}},height:{get:function(){return this.j.height},set:function(a){var y=this.j;y.height!==a&&(y.ka(),y.height=a,y.freeze())}},network:{get:function(){return this.ob},set:function(a){this.ob=a}},sourceVertexes:{get:function(){for(var a=new ze,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new ze,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new ze,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);for(y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},sourceEdges:{get:function(){return this.tg.iterator}},destinationEdges:{get:function(){return this.mg.iterator}},edges:{get:function(){for(var a=new He,y=this.sourceEdges;y.next();)a.add(y.value);for(y=this.destinationEdges;y.next();)a.add(y.value);return a.iterator}},edgesCount:{get:function(){return this.tg.count+this.mg.count}}}),Yo.prototype.deleteDestinationEdge=Yo.prototype.Jl,Yo.prototype.addDestinationEdge=Yo.prototype.zl,Yo.prototype.deleteSourceEdge=Yo.prototype.Kl,Yo.prototype.addSourceEdge=Yo.prototype.Cl,Yo.className="LayoutVertex",Yo.standardComparer=oy,Yo.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.Sh;var x=y.Sh;if(a!==null){if(x!==null){for(y=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),a=x.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),x=0;x "+(this.qd?this.qd.toString():"null"))),y},Us.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},Us.prototype.commit=function(){},Us.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},fe.Object.defineProperties(Us.prototype,{network:{get:function(){return this.nb},set:function(a){this.nb=a}},data:{get:function(){return this.ub},set:function(a){this.ub!==a&&(this.ub=a)}},link:{get:function(){return this.$k},set:function(a){this.$k!==a&&(this.$k=a)}},fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}}}),Us.prototype.getOtherVertex=Us.prototype.Ax,Us.className="LayoutEdge";function xr(a){_i.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new We(NaN,NaN).freeze(),this.tf=new We(10,10).freeze(),this.Jb=op,this.Rb=nm,this.nd=rp,this.hd=u1,a&&Object.assign(this,a)}Ae(xr,_i),xr.prototype.cloneProtected=function(a){_i.prototype.cloneProtected.call(this,a),a.zo=this.zo,a.yo=this.yo,a.yg.assign(this.yg),a.tf.assign(this.tf),a.Jb=this.Jb,a.Rb=this.Rb,a.nd=this.nd,a.hd=this.hd},xr.prototype.qb=function(a){a.classType===xr?a===rp||a===om||a===ry||a===im?this.sorting=a:a===nm||a===rl?this.arrangement=a:a===op||a===em?this.alignment=a:ee("Unknown enum value: "+a):_i.prototype.qb.call(this,a)},xr.prototype.doLayout=function(a){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var y=this.ex(a);a=this.diagram;for(var x=y.copy().iterator;x.next();){var E=x.value;if(!E.ph()||E.fromNode===null&&E.toNode===null){if(E.Va(),E instanceof Bn)for(E=E.memberParts;E.next();)y.remove(E.value)}else y.remove(E)}var b=y.Fa();if(b.length!==0){switch(this.sorting){case im:b.reverse();break;case rp:b.sort(this.comparer);break;case om:b.sort(this.comparer),b.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var tt=this.wrappingWidth;switch(isNaN(tt)&&a!==null?(y=a.padding,tt=Math.max(a.viewportBounds.width-y.left-y.right,0)):tt=Math.max(this.wrappingWidth,0),0>=z&&0>=tt&&(z=1),y=this.spacing.width,isFinite(y)||(y=0),x=this.spacing.height,isFinite(x)||(x=0),a!==null&&a.Ea("Layout"),E=[],this.alignment){case em:var ot=y,rt=x,at=ce.alloc(),ut=Math.max(this.cellSize.width,1);if(!isFinite(ut))for(var ft=ut=0;ftz-1||0tt)&&(E.push(new ce(0,Bt,tt+ot,It)),Dt=0,At=yt,Bt+=It,It=0),It=Math.max(It,ie),mt){case rl:Gt=-Gt.width;break;default:Gt=0}switch(zt.moveTo(At+Gt,Bt),mt){case rl:At-=Kt;break;default:At+=Kt}Dt++}E.push(new ce(0,Bt,tt+ot,It)),ce.free(at);break;case op:for(rt=tt,ut=z,ft=y,mt=x,tt=ce.alloc(),yt=Math.max(this.cellSize.width,1),z=Bt=at=0,ot=jt.alloc(),At=0;At=at&&(rt-=at),at=zt=0,Kt=Math.max(this.cellSize.height,1),Gt=z=0,ie=!0,Dt=jt.alloc(),Ue=0;Ueut-1||0rt){for(E.push(new ce(0,ie?Rt-z:Rt,rt+ft,Gt+z+mt)),tn=0;tnat&&(z.width+=z.x-at,z.x=at);ce.free(tt)}for(ot=z=tt=b=0;oty?1:0}fe.Object.defineProperties(xr.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(a){this.zo!==a&&(0ft)){var Bt=ft+Qc(At);At.pc(Bt,!0),Sv(At,Bt,ft)}}y.isModified=!0}}finally{y.aa=!0}}}}},xi.prototype.updateAllTargetBindings=function(a){a===void 0&&(a="");for(var y=this.parts.iterator;y.next();)y.value.La(a);for(y=this.nodes.iterator;y.next();)y.value.La(a);for(y=this.links.iterator;y.next();)y.value.La(a)},xi.prototype.rp=function(){for(var a=this.H.model,y=new ze,x=a.nodeDataArray,E=0;E=E)return"[]";var b=new jn;b.add("["),x&&1E)return;to(a.Tc,E)}Uo(a,"nodeDataArray",Vo,"nodeDataArray",a,y,null,E,null),a.qp(y)}Pt.nA=function(a){if(Ze(a))for(var y=a.length,x=0;xy&&(y=a.length),Zi(a,y,x),Uo(this,"",Mo,"",a,null,x,null,y)},Pt.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&ee("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];to(a,y),Uo(this,"",Vo,"",a,x,null,y,null)},Pt.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=Eo(a,y),y===void 0))return"";if(typeof y=="string")return y;ee("getCategoryForNodeData found a non-string category for "+a+": "+y)},Pt.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var E=Eo(a,x);E===void 0&&(E=""),E!==y&&(Ki(a,x,y),Uo(this,"nodeCategory",ro,x,a,E,y))}else Ki(a,x,y)}},Pt.lm=function(a,y){this.jm(y,this.Ro(a))},Pt.Tl=function(){return!1},Pt.Wj=function(){return!1},Pt.ri=function(){return!1},Pt.xs=function(){return!1},Pt.Xj=function(){return!1};function hy(){return new nn}function ap(a,y){if(typeof y=="function"){if(y.className)return y.className;if(y.name)return y.name}else if(typeof y=="object"&&y!==null&&y.constructor)return ap(a,y.constructor);return typeof y}function dy(a){return Va[a]?Va[a]:Ke.go!==void 0&&Ke.go[a]?Ke.go[a]:null}function Eo(a,y){if(!a||!y)return null;try{if(typeof y=="function")var x=y(a);else typeof a.getAttribute=="function"?(x=a.getAttribute(y),x===null&&(x=void 0)):x=a[y]}catch(E){}return x}function Ki(a,y,x){if(a&&y)try{typeof y=="function"?y(a,x):typeof a.setAttribute=="function"?a.setAttribute(y,x):a[y]=x}catch(E){}}fe.Object.defineProperties(nn.prototype,{name:{get:function(){return this.xa},set:function(a){var y=this.xa;y!==a&&(this.xa=a,this.g("name",y,a))}},dataFormat:{get:function(){return this.Sm},set:function(a){var y=this.Sm;y!==a&&(this.Sm=a,this.g("dataFormat",y,a))}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},modelData:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.g("modelData",y,a),this.La(a))}},undoManager:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&(y!==null&&y.Rx(this),this.o=a,a!==null&&a.Xw(this))}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a}},nodeKeyProperty:{get:function(){return this.Th},set:function(a){var y=this.Th;y!==a&&(a===""&&ee("Model.nodeKeyProperty may not be the empty string"),0E)return;to(a.Tc,E)}Uo(a,"nodeDataArray",Vo,"nodeDataArray",a,y,null,E,null),a.qp(y)}Pt.nA=function(a){if(Ze(a))for(var y=a.length,x=0;xy&&(y=a.length),Zi(a,y,x),Uo(this,"",Mo,"",a,null,x,null,y)},Pt.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&ee("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];to(a,y),Uo(this,"",Vo,"",a,x,null,y,null)},Pt.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=Eo(a,y),y===void 0))return"";if(typeof y=="string")return y;ee("getCategoryForNodeData found a non-string category for "+a+": "+y)},Pt.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var E=Eo(a,x);E===void 0&&(E=""),E!==y&&(Ki(a,x,y),Uo(this,"nodeCategory",ro,x,a,E,y))}else Ki(a,x,y)}},Pt.lm=function(a,y){this.jm(y,this.Ro(a))},Pt.Tl=function(){return!1},Pt.Wj=function(){return!1},Pt.ri=function(){return!1},Pt.xs=function(){return!1},Pt.Xj=function(){return!1};function hy(){return new nn}function ap(a,y){if(typeof y=="function"){if(y.className)return y.className;if(y.name)return y.name}else if(typeof y=="object"&&y!==null&&y.constructor)return ap(a,y.constructor);return typeof y}function dy(a){return Va[a]?Va[a]:Ke.go!==void 0&&Ke.go[a]?Ke.go[a]:null}function Eo(a,y){if(!a||!y)return null;try{if(typeof y=="function")var x=y(a);else typeof a.getAttribute=="function"?(x=a.getAttribute(y),x===null&&(x=void 0)):x=a[y]}catch(E){}return x}function Ki(a,y,x){if(a&&y)try{typeof y=="function"?y(a,x):typeof a.setAttribute=="function"?a.setAttribute(y,x):a[y]=x}catch(E){}}fe.Object.defineProperties(nn.prototype,{name:{get:function(){return this.xa},set:function(a){var y=this.xa;y!==a&&(this.xa=a,this.g("name",y,a))}},dataFormat:{get:function(){return this.Sm},set:function(a){var y=this.Sm;y!==a&&(this.Sm=a,this.g("dataFormat",y,a))}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},modelData:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.g("modelData",y,a),this.La(a))}},undoManager:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&(y!==null&&y.Rx(this),this.o=a,a!==null&&a.Xw(this))}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a}},nodeKeyProperty:{get:function(){return this.Th},set:function(a){var y=this.Th;y!==a&&(a===""&&ee("Model.nodeKeyProperty may not be the empty string"),0E.indexOf(a.newValue)&&E.splice(x,0,a.newValue));return}}else if(a.change===Vo){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,Pe(a)&&typeof x=="number"&&(E=this.Ac(a),y?(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),E!==void 0&&this.wb.add(E,a)):(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),E!==void 0&&this.wb.remove(E)));return}if(a.modelChange==="linkLabelKeys"){E=this.Ef(a.object),Array.isArray(E)&&typeof x=="number"&&(y?0>E.indexOf(a.newValue)&&E.splice(x,0,a.newValue):(x=E.indexOf(a.newValue),0<=x&&E.splice(x,1)));return}}nn.prototype.changeState.call(this,a,y)}},Pt=ti.prototype,Pt.Vl=function(a){if(a!==void 0){var y=this.Ri;if(y!==null){var x=this.hc(a);x===null&&(x=this.copyNodeData(y),Ki(x,this.nodeKeyProperty,a),this.xf(x))}return a}},Pt.yx=function(a){return na(this,a,!0)},Pt.wv=function(a,y){Ff(this,a,y,!0)},Pt.Bx=function(a){return na(this,a,!1)},Pt.Bv=function(a,y){Ff(this,a,y,!1)};function na(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=Eo(y,a),a!==void 0))){if(Rh(a))return a;ee((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Ff(a,y,x,E){if(x===null&&(x=void 0),y!==null){var b=E?a.lf:a.mf;if(b!=="")if(x=a.Vl(x),a.Jc(y)){var z=Eo(y,b);z!==x&&(al(a,z,y),Ki(y,b,x),a.hc(x)===null&&sl(a,x,y),Uo(a,E?"linkFromKey":"linkToKey",ro,b,y,z,x),typeof b=="string"&&a.La(y,b))}else Ki(y,b,x)}}Pt.zx=function(a){return um(this,a,!0)},Pt.xv=function(a,y){Nf(this,a,y,!0)},Pt.Cx=function(a){return um(this,a,!1)},Pt.Cv=function(a,y){Nf(this,a,y,!1)};function um(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=Eo(y,a),y===void 0?"":y)}function Nf(a,y,x,E){if(y!==null){var b=E?a.ej:a.fj;if(b!=="")if(a.Jc(y)){var z=Eo(y,b);z===void 0&&(z=""),z!==x&&(Ki(y,b,x),Uo(a,E?"linkFromPortId":"linkToPortId",ro,b,y,z,x),typeof b=="string"&&a.La(y,b))}else Ki(y,b,x)}}Pt.Ef=function(a){if(a===null)return hm;var y=this.je;return y===""?hm:(a=Eo(a,y),a===void 0?hm:a)},Pt.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var E=Eo(a,x);if(E===void 0&&(E=hm),E!==y){if(Array.isArray(E))for(var b=E.length,z=0;zb||(E.splice(b,1),this.Jc(a)&&(al(this,y,a),Uo(this,"linkLabelKeys",Vo,x,a,y,null,b,null)))}else E!==void 0&&ee(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Pt.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=Eo(a,y),y!==void 0)){if(Rh(y))return y;ee("Key value for link data "+a+" is not a number or a string: "+y)}}},Pt.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var E=Eo(a,x);E!==y&&this.jh(y)===null&&(Ki(a,x,y),E!==void 0&&this.wb.remove(E),this.wb.add(y,a),Uo(this,"linkKey",ro,x,a,E,y),typeof x=="string"&&this.La(a,x))}else Ki(a,x,y)}},Pt.jh=function(a){return a===null&&ee("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&Rh(a)?this.wb.I(a):null},Pt.Bs=function(a){if(a!==null){var y=this.Jh;if(y!==""){var x=this.Ac(a);if(x===void 0||this.wb.contains(x)){var E=this.cl;if(E!==null&&(x=E(this,a),x!=null&&!this.wb.contains(x))){Ki(a,y,x);return}if(typeof x=="string"){for(E=2;this.wb.contains(x+E);)E++;Ki(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;Ki(a,y,x)}}}}},Pt.Jc=function(a){return a===null?!1:this.$f.contains(a)},Pt.fi=function(a){a!==null&&(Or(a),this.Jc(a)||k1(this,a,!0))};function k1(a,y,x){if(a.linkKeyProperty!==""){var E=a.Ac(y);if(E!==void 0&&a.wb.I(E)===y)return;a.Bs(y),E=a.Ac(y),E===void 0&&ee("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(E,y)}a.$f.add(y),E=null,x&&(E=a.md.length,a.md.splice(E,0,y)),Uo(a,"linkDataArray",Mo,"linkDataArray",a,null,y,null,E),gy(a,y)}Pt.Ey=function(a){if(Array.isArray(a))for(var y=a.length,x=0;xE)return;a.md.splice(E,1)}if(Uo(a,"linkDataArray",Vo,"linkDataArray",a,y,null,E,null),x=na(a,y,!0),al(a,x,y),x=na(a,y,!1),al(a,x,y),E=a.Ef(y),Array.isArray(E))for(var b=E.length,z=0;zE.indexOf(a.newValue)&&E.splice(x,0,a.newValue));return}}else if(a.change===Vo){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,Pe(a)&&typeof x=="number"&&(E=this.Ac(a),y?(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),E!==void 0&&this.wb.add(E,a)):(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),E!==void 0&&this.wb.remove(E)));return}if(a.modelChange==="linkLabelKeys"){E=this.Ef(a.object),Array.isArray(E)&&typeof x=="number"&&(y?0>E.indexOf(a.newValue)&&E.splice(x,0,a.newValue):(x=E.indexOf(a.newValue),0<=x&&E.splice(x,1)));return}}nn.prototype.changeState.call(this,a,y)}},Pt=ti.prototype,Pt.Vl=function(a){if(a!==void 0){var y=this.Ri;if(y!==null){var x=this.hc(a);x===null&&(x=this.copyNodeData(y),Ki(x,this.nodeKeyProperty,a),this.xf(x))}return a}},Pt.yx=function(a){return na(this,a,!0)},Pt.wv=function(a,y){Ff(this,a,y,!0)},Pt.Bx=function(a){return na(this,a,!1)},Pt.Bv=function(a,y){Ff(this,a,y,!1)};function na(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=Eo(y,a),a!==void 0))){if(Rh(a))return a;ee((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Ff(a,y,x,E){if(x===null&&(x=void 0),y!==null){var b=E?a.lf:a.mf;if(b!=="")if(x=a.Vl(x),a.Jc(y)){var z=Eo(y,b);z!==x&&(al(a,z,y),Ki(y,b,x),a.hc(x)===null&&sl(a,x,y),Uo(a,E?"linkFromKey":"linkToKey",ro,b,y,z,x),typeof b=="string"&&a.La(y,b))}else Ki(y,b,x)}}Pt.zx=function(a){return um(this,a,!0)},Pt.xv=function(a,y){Nf(this,a,y,!0)},Pt.Cx=function(a){return um(this,a,!1)},Pt.Cv=function(a,y){Nf(this,a,y,!1)};function um(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=Eo(y,a),y===void 0?"":y)}function Nf(a,y,x,E){if(y!==null){var b=E?a.ej:a.fj;if(b!=="")if(a.Jc(y)){var z=Eo(y,b);z===void 0&&(z=""),z!==x&&(Ki(y,b,x),Uo(a,E?"linkFromPortId":"linkToPortId",ro,b,y,z,x),typeof b=="string"&&a.La(y,b))}else Ki(y,b,x)}}Pt.Ef=function(a){if(a===null)return hm;var y=this.je;return y===""?hm:(a=Eo(a,y),a===void 0?hm:a)},Pt.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var E=Eo(a,x);if(E===void 0&&(E=hm),E!==y){if(Array.isArray(E))for(var b=E.length,z=0;zb||(E.splice(b,1),this.Jc(a)&&(al(this,y,a),Uo(this,"linkLabelKeys",Vo,x,a,y,null,b,null)))}else E!==void 0&&ee(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Pt.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=Eo(a,y),y!==void 0)){if(Rh(y))return y;ee("Key value for link data "+a+" is not a number or a string: "+y)}}},Pt.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var E=Eo(a,x);E!==y&&this.jh(y)===null&&(Ki(a,x,y),E!==void 0&&this.wb.remove(E),this.wb.add(y,a),Uo(this,"linkKey",ro,x,a,E,y),typeof x=="string"&&this.La(a,x))}else Ki(a,x,y)}},Pt.jh=function(a){return a===null&&ee("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&Rh(a)?this.wb.I(a):null},Pt.Bs=function(a){if(a!==null){var y=this.Jh;if(y!==""){var x=this.Ac(a);if(x===void 0||this.wb.contains(x)){var E=this.cl;if(E!==null&&(x=E(this,a),x!=null&&!this.wb.contains(x))){Ki(a,y,x);return}if(typeof x=="string"){for(E=2;this.wb.contains(x+E);)E++;Ki(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;Ki(a,y,x)}}}}},Pt.Jc=function(a){return a===null?!1:this.$f.contains(a)},Pt.fi=function(a){a!==null&&(Or(a),this.Jc(a)||k1(this,a,!0))};function k1(a,y,x){if(a.linkKeyProperty!==""){var E=a.Ac(y);if(E!==void 0&&a.wb.I(E)===y)return;a.Bs(y),E=a.Ac(y),E===void 0&&ee("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(E,y)}a.$f.add(y),E=null,x&&(E=a.md.length,a.md.splice(E,0,y)),Uo(a,"linkDataArray",Mo,"linkDataArray",a,null,y,null,E),gy(a,y)}Pt.Ey=function(a){if(Array.isArray(a))for(var y=a.length,x=0;xE)return;a.md.splice(E,1)}if(Uo(a,"linkDataArray",Vo,"linkDataArray",a,y,null,E,null),x=na(a,y,!0),al(a,x,y),x=na(a,y,!1),al(a,x,y),E=a.Ef(y),Array.isArray(E))for(var b=E.length,z=0;z=a.count)a.count===1&&(a=a.first(),a.centerX=0,a.centerY=0);else{var y=new He;y.addAll(a.iterator),a=new He;var x=new He,E=this.sort(y),b,z,tt=this.Jp,ot=this.arrangement,rt=this.nodeDiameterFormula,at=this.radius;(!isFinite(at)||0>=at)&&(at=NaN);var ut=this.aspectRatio;(!isFinite(ut)||0>=ut)&&(ut=1);var ft=this.startAngle;isFinite(ft)||(ft=0);var mt=this.sweepAngle;if((!isFinite(mt)||360mt)&&(mt=360),y=this.spacing,isFinite(y)||(y=NaN),ot===Ya&&rt===Sg?ot=Ka:ot===Ya&&rt!==Sg&&(ot=this.arrangement),(this.direction===Fd||this.direction===Tf)&&this.sorting!==Df){for(rt=0;!(rt>=E.length)&&(a.add(E.M(rt)),!(rt+1>=E.length));rt+=2)x.add(E.M(rt+1));this.direction===Fd?(this.arrangement===Ya&&a.reverse(),E=new He,E.addAll(a),E.addAll(x)):(this.arrangement===Ya&&x.reverse(),E=new He,E.addAll(x),E.addAll(a))}rt=E.length;for(var yt=z=b=0;ytmt&&(yt===0||yt===E.length-1)&&(Bt/=2),b+=Bt,z++}if(isNaN(at)||ot===Ya){if(isNaN(y)&&(y=6),ot!==Ka&&ot!==Ya){for(z=-1/0,tt=0;ttat?(at=b,z=at*ut):tt=yt/(360<=mt?rt:rt-1)}if(this.kw=ot,this.lc=at,this.Zm=ut,this.lw=ft,this.Wp=mt,this.Ti=y,this.me=z,this.Jp=tt,y=E,E=this.kw,ot=this.lc,at=this.lw,ut=this.Wp,ft=this.Ti,mt=this.me,rt=this.Jp,this.direction!==Fd&&this.direction!==Tf||E!==Ya)if(this.direction===Fd||this.direction===Tf){switch(tt=0,E){case zh:tt=180*gm(this,ot,mt,at,rt)/Math.PI;break;case Ka:rt=y=0,tt=a.first(),tt!==null&&(y=Hh(tt,Math.PI/2)),tt=x.first(),tt!==null&&(rt=Hh(tt,Math.PI/2)),tt=180*gm(this,ot,mt,at,ft+(y+rt)/2)/Math.PI;break;case _u:tt=ut/y.length}if(this.direction===Fd){switch(E){case zh:dp(this,a,at,Qh);break;case Ka:hp(this,a,at,Qh);break;case _u:up(this,a,ut/2,at,Qh)}switch(E){case zh:dp(this,x,at+tt,cs);break;case Ka:hp(this,x,at+tt,cs);break;case _u:up(this,x,ut/2,at+tt,cs)}}else{switch(E){case zh:dp(this,x,at,Qh);break;case Ka:hp(this,x,at,Qh);break;case _u:up(this,x,ut/2,at,Qh)}switch(E){case zh:dp(this,a,at+tt,cs);break;case Ka:hp(this,a,at+tt,cs);break;case _u:up(this,a,ut/2,at+tt,cs)}}}else switch(E){case zh:dp(this,y,at,this.direction);break;case Ka:hp(this,y,at,this.direction);break;case _u:up(this,y,ut,at,this.direction);break;case Ya:N1(this,y,ut,at,this.direction)}else N1(this,y,ut,at-ut/2,cs)}this.updateParts(),this.network=null,this.isValidLayout=!0};function up(a,y,x,E,b){var z=a.Wp,tt=a.lc;a=a.me,E=E*Math.PI/180,x=x*Math.PI/180;for(var ot=y.length,rt=0;rtx){for(z=E+(b===cs?z:-z);0>z;)z+=360;z%=360,180=ut.length-1));ft++)b1(a,rt,at,ut,ft,b,z)||O1(a,rt,at,ut,ft,b,z),rt=z.x,at=z.y;if(jt.free(z),a.mj++,!(23Math.abs(yt)?Math.abs(rt-z)<(ut[0].width+ut[ut.length-1].width)/2&&(tt=0):tt=0Math.abs(mt)?0:mt,rt=Math.abs(z)>Math.abs(ft)?0ft:0a.mj?a.lc-tt/(2*Math.PI):5>ut.length&&10=ft.length-1));mt++)b1(a,rt,at,ft,mt,b,ut)||O1(a,rt,at,ft,mt,b,ut),rt=ut.x,at=ut.y;if(jt.free(ut),a.mj++,!(23a.mj?a.lc-z/(2*Math.PI):a.lc-(0ot){if(z=y-a,z<-ot)return tt.x=z,tt.y=at,!1;ut=!0}}else if(z=y-a,z<-ot){if(z=y+a,z>ot)return tt.x=z,tt.y=at,!1;ut=!0}return at=Math.sqrt(1-Math.min(1,z*z/(ot*ot)))*rt,0>x!==ut&&(at=-at),Math.abs(x-at)>(E[b].height+E[b+1].height)/2?(tt.x=z,tt.y=at,!1):(tt.x=z,tt.y=at,!0)}function O1(a,y,x,E,b,z,tt){var ot=a.lc,rt=a.me,at=0;if(a=(E[b].height+E[b+1].height)/2+a.Ti,E=!1,0<=y!=(z===cs)){if(z=x-a,z<-rt){if(z=x+a,z>rt){tt.x=at,tt.y=z;return}E=!0}}else if(z=x+a,z>rt){if(z=x-a,z<-rt){tt.x=at,tt.y=z;return}E=!0}at=Math.sqrt(1-Math.min(1,z*z/(rt*rt)))*ot,0>y!==E&&(at=-at),tt.x=at,tt.y=z}co.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},co.prototype.commitNodes=function(){var a=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,y=a?this.group.location.copy():null,x=this.actualCenter;a?x=new jt(0,0):(x.x=this.arrangementOrigin.x+this.lc,x.y=this.arrangementOrigin.y+this.me);for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;b.x+=x.x,b.y+=x.y,b.commit()}a&&(this.group.Va(),a=this.group.position.copy(),x=this.group.location.copy(),y=y.re(x.re(a)),this.group.move(y),this.Zv=y.re(a))},co.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function fy(a,y,x,E,b){var z=a.ty;if(.001>Math.abs(a.Zm-1))return E!==void 0&&b!==void 0?b*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var tt=0,ot=E!==void 0&&b!==void 0?b/(z+1):Math.PI/(2*(z+1)),rt=0,at=0;at<=z;at++){E!==void 0&&b!==void 0?rt=E+at*b/z:rt=at*Math.PI/(2*z);var ut=Math.sin(rt);tt+=Math.sqrt(1-a*a*ut*ut)*ot}return E!==void 0&&b!==void 0?(y>x?y:x)*tt:4*(y>x?y:x)*tt}function dm(a,y,x,E,b){return y/(E!==void 0&&b!==void 0?fy(a,1,x,E,b):fy(a,1,x))}function gm(a,y,x,E,b){if(.001>Math.abs(a.Zm-1))return b/y;var z=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,tt=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(E+=Math.PI/2);for(var ot=0;;ot++){var rt=Math.sin(E+ot*a);if(tt+=(y>x?y:x)*Math.sqrt(1-z*z*rt*rt)*a,tt>=b)return ot*a}}co.prototype.sort=function(a){switch(this.sorting){case fm:break;case cm:a.reverse();break;case pm:a.sort(this.comparer);break;case mm:a.sort(this.comparer),a.reverse();break;case Df:return this.ak(TS(a));default:ee("Invalid sorting type.")}return a};function TS(a){for(var y=[],x=0;xb&&(b=ot,z=tt)}else for(tt=0;ttb&&(b=ot,z=tt);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),tt=z.sourceEdges;tt.next();)b=a.indexOf(tt.value.fromVertex),0>b||0<=y[b]&&y[b]++;for(z=z.destinationEdges;z.next();)b=a.indexOf(z.value.toVertex),0>b||0<=y[b]&&y[b]++}return x}co.prototype.ak=function(a){for(var y=[],x=0;xy[x].indexOf(b)&&y[x].push(b);for(E=E.sourceEdges;E.next();)b=a.indexOf(E.value.fromVertex),b!==x&&0>y[x].indexOf(b)&&y[x].push(b)}for(z=[],x=0;xy[x[At]].indexOf(x[At===x.length-1?0:At+1])&&yt.push(At===x.length-1?0:At+1);if(yt.length===0)for(At=0;Atx.indexOf(ie)||Ktx.indexOf(ie)||Kt=Bt?Kt+1:Kt)),It+=Kt=Bt&&Kt++,zt>=Bt&&zt++,Kt>zt&&(Gt=zt,zt=Kt,Kt=Gt),zt-Kt<(x.length+2)/2==(Ktyt||yt===ut||(At=yt>ut?yt-ut:ut-yt,ft+=yttt-At?1:-1);x.splice(0>ft?ut:ut+1,0,rt),E.splice(ot,1),ot--}else z=!1;if(z)break;x.push(E[0]),E.splice(0,1)}for(y=0;y=a?this.ul=a:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==Ya&&a!==Ka&&a!==zh&&a!==_u||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==cs&&a!==Qh&&a!==Fd&&a!==Tf||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==fm&&a!==cm&&a!==pm&&!mm&&a!==Df||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf!==a&&(this.tf=a,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(a){this.Nn===a||a!==vm&&a!==Sg||(this.Nn=a,this.C())}},actualXRadius:{get:function(){return this.lc}},actualYRadius:{get:function(){return this.me}},actualSpacing:{get:function(){return this.Ti}},actualCenter:{get:function(){return this.Zv}}});var Ka=new Ee(co,"ConstantSpacing",0),zh=new Ee(co,"ConstantDistance",1),_u=new Ee(co,"ConstantAngle",2),Ya=new Ee(co,"Packed",3),cs=new Ee(co,"Clockwise",4),Qh=new Ee(co,"Counterclockwise",5),Fd=new Ee(co,"BidirectionalLeft",6),Tf=new Ee(co,"BidirectionalRight",7),fm=new Ee(co,"Forwards",8),cm=new Ee(co,"Reverse",9),pm=new Ee(co,"Ascending",10),mm=new Ee(co,"Descending",11),Df=new Ee(co,"Optimized",12),vm=new Ee(co,"Pythagorean",13),Sg=new Ee(co,"Circular",14);co.className="CircularLayout",co.ConstantSpacing=Ka,co.ConstantDistance=zh,co.ConstantAngle=_u,co.Packed=Ya,co.Clockwise=cs,co.Counterclockwise=Qh,co.BidirectionalLeft=Fd,co.BidirectionalRight=Tf,co.Forwards=fm,co.Reverse=cm,co.Ascending=pm,co.Descending=mm,co.Optimized=Df,co.Pythagorean=vm,co.Circular=Sg;function gp(){this.Pl=-1/0,this.tm=this.mk=null}gp.prototype.compare=function(a,y){if(0this.Pl||Math.abs(a)a&&0ot?(b=mt.x+mt.width/2,z=mt.y+mt.height/2,at[0]=new jt(mt.x+mt.width+E.width,mt.y),at[1]=new jt(mt.x,mt.y+mt.height+E.height),ot=2):(rt=R1(at,ot,b,z,mt.width,mt.height,E),ft=at[rt],yt=new jt(ft.x+mt.width+E.width,ft.y),mt=new jt(ft.x,ft.y+mt.height+E.height),rt+1this.network.vertexes.count)return!1;for(var a=0,y=0,x=this.network.vertexes.first().bounds,E=this.network.vertexes.iterator;E.next();){if(E.value.bounds.Yc(x)&&(a++,2a.network.vertexes.count)return!1;for(a.ah=a.network.vertexes.Fa(),a=a.ah,a.sort(function(x,E){return x===null||E===null||x===E?0:E.Vd-x.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1=tt))){for(var at=ot=0,ut=rt.count-tt;utyt&&(yt=1),ot=Jt.sqrt((ot+yt+at*at*4/(tt*tt))/yt),tt=(ot-1)*ut/2,ot=(ot-1)*ft/2,b.bounds=new ce(z-mt.x-tt,rt-mt.y-ot,ut+2*tt,ft+2*ot),b.focus=new jt(mt.x+tt,mt.y+ot)}}return a.network=E,x}function OS(a,y){for(var x=a.network.vertexes.iterator;x.next();){var E=x.value;if(E.network=y,E.We!==null){var b=E.We.M(E.sv);E.Vd=b.Rs;var z=b.Sv,tt=b.Tv;E.bounds=new ce(E.centerX-z,E.centerY-tt,b.Ss,b.Qs),E.focus=new jt(z,tt),E.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function jS(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var E=y.centerX,b=y.centerY,z=y.width,tt=y.height;y.We!==null&&0=ft.Vd?rt++:(ot=!0,at++,tt+=Math.atan2(y.centerY-ft.centerY,y.centerX-ft.centerX))}if(rt!==0){for(0>1)+at)*(ot%2===0?1:-1),rt.centerX=E+ut*Math.cos(ft),rt.centerY=b+ut*Math.sin(ft),ot++}}}}function R1(a,y,x,E,b,z,tt){var ot=9e19,rt=-1,at=0;t:for(;atut.y&&a[mt].x-ut.xut.x&&a[mt].y-ut.yy+z?(x=E+b-tt,a=a-y-z,Jt.sqrt(x*x+a*a)):a+xtt+ot?a>y+z?(x=E-tt-ot,a=a-y-z,Jt.sqrt(x*x+a*a)):a+xy+z?a-(y+z):a+x=y.length)return!1;var x=y[0];x.forceX=0,x.forceY=0;for(var E=x.centerX,b=E,z=x=x.centerY,tt=1;ttz-x)?y.sort(function(Bt,Dt){return Bt===null||Dt===null||Bt===Dt?0:Bt.centerX-Dt.centerX}):y.sort(function(Bt,Dt){return Bt===null||Dt===null||Bt===Dt?0:Bt.centerY-Dt.centerY}),x=a.Zf;var at=E=ot=0;for(z=0;zx||at-rt>x){if(b)break}else if(ut-yt>x||yt-ut>x){if(!b)break}else{var At=z1(tt,mt);1>At?(E=a.randomNumberGenerator,E===null&&(a.randomNumberGenerator=E=new Am),At=E.random(),ot=E.random(),rt>at?(E=Math.abs(mt.bounds.right-tt.bounds.x),E=(1+E)*At):rtyt?(at=Math.abs(mt.bounds.bottom-tt.bounds.y),at=(1+at)*ot):rtft?(ft=a.randomNumberGenerator,ft===null&&(a.randomNumberGenerator=ft=new Am),ot=ft.random(),ft=ft.random(),E=(E>rt?1:-1)*(1+(z.width>x.width?z.width:x.width))*ot,at=(tt>ut?1:-1)*(1+(z.height>x.height?z.height:x.height))*ft):(ot=ot.stiffness*(ft-ot.length),E=(rt-E)/ft*ot,at=(ut-tt)/ft*ot),x.forceX+=E,x.forceY+=at,z.forceX-=E,z.forceY-=at;for(b=E=0;ba.epsilonDistance*a.epsilonDistance}Tr.prototype.moveVertex=function(a){var y=a.forceX,x=a.forceY,E=this.moveLimit;return y<-E?y=-E:y>E&&(y=E),x<-E?x=-E:x>E&&(x=E),a.centerX+=y,a.centerY+=x,y*y+x*x},Tr.prototype.moveFixedVertex=function(){},Tr.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},Tr.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=ar,y.toSpot=ar)}},Tr.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=ce.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,ce.free(x)}x=ce.alloc();for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;(a!==0||y!==0)&&(x.assign(b.bounds),x.x+=a,x.y+=y,b.bounds=x),b.commit()}ce.free(x)},Tr.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Tr.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},Tr.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},Tr.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},Tr.prototype.electricalFieldX=function(){return 0},Tr.prototype.electricalFieldY=function(){return 0},Tr.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},Tr.prototype.gravitationalFieldX=function(){return 0},Tr.prototype.gravitationalFieldY=function(){return 0},Tr.prototype.isFixed=function(a){return a.isFixed},fe.Object.defineProperties(Tr.prototype,{currentIteration:{get:function(){return this.An}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},arrangesToOrigin:{get:function(){return this.Bm},set:function(a){this.Bm!==a&&(this.Bm=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},maxIterations:{get:function(){return this.dl},set:function(a){this.dl!==a&&0<=a&&(this.dl=a,this.C())}},epsilonDistance:{get:function(){return this.$m},set:function(a){this.$m!==a&&0Bt&&0Bt&&0a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]tt)for(var ut=tt+1;utrt;ut--)ft=E[ut],ft.near===at&&ft.Dj===at.Dj||ot++;var mt;if(0<=x)for(rt=E[tt].sourceEdgesArrayAccess,at=0;atBt||ft===Bt&&yt>At)&&ot++,Dtft||Bt===ft&&At>yt)&&ot++}}}if(0>=x){for(rt=E[tt].destinationEdgesArrayAccess,at=0;atBt||ft===Bt&&ut>Dt)&&ot++,Atft||Bt===ft&&Dt>ut)&&ot++)}for(z[tt*b+tt]=ot,rt=tt+1;rt=x){for(ot=E[tt].destinationEdgesArrayAccess,zt=E[rt].destinationEdgesArrayAccess,at=0;at=x&&(rt=ot.sourceEdgesArrayAccess);var at=null;0<=x&&(at=ot.destinationEdgesArrayAccess);var ut=0,ft=0,mt=ot.near;if(mt!==null&&mt.layer===ot.layer&&(ut+=mt.column-1,ft++),rt!==null)for(mt=0;mt=x&&(rt=ot.sourceEdgesArrayAccess);var at=null;0<=x&&(at=ot.destinationEdgesArrayAccess);var ut=0,ft=[],mt=ot.near;if(mt!==null&&mt.layer===ot.layer&&(ft[ut]=mt.column-1,ut++),ot=void 0,rt!==null)for(mt=0;mt>1,z[tt]=ut&1?ft[at]:ft[at-1]+ft[at]>>1)}return Uh(a,y,E),z}function mp(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var tt=y.destinationEdges;tt.next();){var ot=tt.value,rt=ot.toVertex,at=y.layer-rt.layer;ot=a.linkMinLength(ot),at===ot&&mp(a,rt,x,E,b,z)}if(z)for(tt=y.sourceEdges;tt.next();)ot=tt.value,rt=ot.fromVertex,at=rt.layer-y.layer,ot=a.linkMinLength(ot),at===ot&&mp(a,rt,x,E,b,z)}}function my(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var tt=y.destinationEdges;tt.next();)my(a,tt.value.toVertex,x,E,b,z);if(z)for(y=y.sourceEdges;y.next();)my(a,y.value.fromVertex,x,E,b,z)}}Pi.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case Ay:a=this.network;var y=0,x=a.vertexes.count-1,E=[];E.length=x+1;for(var b=a.vertexes.iterator;b.next();)b.value.valid=!0;for(;zS(a)!==null;){for(b=X1(a);b!==null;)E[x]=b,x--,b.valid=!1,b=X1(a);for(b=W1(a);b!==null;)E[y]=b,y++,b.valid=!1,b=W1(a);b=null;for(var z=0,tt=this.network.vertexes.iterator;tt.next();){var ot=tt.value;if(ot.valid){for(var rt=0,at=ot.destinationEdges;at.next();)at.value.toVertex.valid&&rt++;at=0;for(var ut=ot.sourceEdges;ut.next();)ut.value.fromVertex.valid&&at++;(b===null||zy.toVertex.index&&(a.gm(y),y.rev=!0);break;case Cm:for(E=this.network.vertexes.iterator;E.next();)a=E.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,E.reset();E.next();)y=E.value,y.sourceEdges.count===0&&vy(this,y);for(E.reset();E.next();)y=E.value,y.Ll===-1&&vy(this,y);for(a.reset();a.next();)E=a.value,E.forest||(y=E.fromVertex,x=y.finish,b=E.toVertex,z=b.finish,b.LlE){if(0>E)for(y.reset();y.next();)y.value.layer-=E;for(E=[],y.reset();y.next();)x=y.value,b=E[x.layer],b===void 0?E[x.layer]=[x]:b.push(x);for(x=y=0;xtt&&mp(a,ot,0,-1,!0,!1)}for(mp(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,E=1/0,ot=0,rt=null,tt=a.network.vertexes.iterator;tt.next();){var at=tt.value;if(at.component===1){var ut=0,ft=!1,mt=at.sourceEdgesArrayAccess;b=mt.length;for(var yt=0;ytz)&&!ut&&(ot=tt,z=at)}if(0>E){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer-=b);y.component=0}else ot.component=0}}}function J1(a,y,x){return a.K===90?x&&!y.rev||!x&&y.rev?270:90:a.K===180?x&&!y.rev||!x&&y.rev?0:180:a.K===270?x&&!y.rev||!x&&y.rev?90:270:x&&!y.rev||!x&&y.rev?180:0}Pi.prototype.initializeIndices=function(){switch(this.Qk){default:case wy:for(var a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;y.index=this.tc[x],this.tc[x]++}break;case Bm:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&q1(this,x);break;case Py:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&_1(this,x)}};function q1(a,y){var x=y.layer;for(y.index=a.tc[x],a.tc[x]++,y=y.destinationEdgesArrayAccess,x=!0;x;){x=!1;for(var E=0;Ez.portFromColOffset&&(x=!0,y[E]=z,y[E+1]=b)}}for(x=0;xz.portToColOffset&&(E=!0,y[x]=z,y[x+1]=b)}for(x=0;x=tt;E--)z=Fa(this,E,-1)||z;for(b=this.countCrossings(),b>=a?va(this,y):(a=b,y=Cs(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Fa(this,E,1)||z;for(b=this.countCrossings(),b>=a?va(this,y):(a=b,y=Cs(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Fa(this,E,1)||z;for(b>=a?va(this,y):(a=b,y=Cs(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Fa(this,E,-1)||z;for(b>=a?va(this,y):(a=b,y=Cs(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Fa(this,E,0)||z;for(b>=a?va(this,y):(a=b,y=Cs(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Fa(this,E,0)||z;b>=a?va(this,y):(a=b,y=Cs(this))}break;default:case Lm:for(x=this.Ia,tt=0,ot=a+1;(E=this.countCrossings())=tt;E--)z=Fa(this,E,-1)||z;for(b=this.countCrossings(),b>=a?va(this,y):(a=b,y=Cs(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Fa(this,E,1)||z;for(b=this.countCrossings(),b>=a?va(this,y):(a=b,y=Cs(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Fa(this,E,1)||z;for(b>=a?va(this,y):(a=b,y=Cs(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Fa(this,E,-1)||z;for(b>=a?va(this,y):(a=b,y=Cs(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Fa(this,E,0)||z;for(b>=a?va(this,y):(a=b,y=Cs(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Fa(this,E,0)||z;b>=a?va(this,y):(a=b,y=Cs(this))}}va(this,y)};function xm(a,y,x){var E=Gh(a,y),b=a.tc[y],z=U1(a,y,x),tt=py(a,y,x);for(x=0;xz+1&&(mt+=4*(Rt-z),yt+=4*(Rt-(z+1)))}for(Gt=E[z].destinationEdges.iterator,Gt.reset();Gt.next();)if(Rt=Gt.value,zt=Rt.toVertex,Rt.valid&&zt.layer===y){for(Rt=0;E[Rt]!==zt;)Rt++;Rt===z+1&&(yt+=1)}for(Gt=E[z+1].sourceEdges.iterator,Gt.reset();Gt.next();)if(Rt=Gt.value,zt=Rt.fromVertex,Rt.valid&&zt.layer===y){for(Rt=0;E[Rt]!==zt;)Rt++;Rtz+1&&(mt+=4*(Rt-(z+1)),yt+=4*(Rt-z))}for(Gt=E[z+1].destinationEdges.iterator,Gt.reset();Gt.next();)if(Rt=Gt.value,zt=Rt.toVertex,Rt.valid&&zt.layer===y){for(Rt=0;E[Rt]!==zt;)Rt++;Rt===z&&(mt+=1)}Rt=zt=0,Gt=tt[E[z].index];var Kt=ot[E[z].index],ie=tt[E[z+1].index],Ue=ot[E[z+1].index];Gt!==-1&&(zt+=Math.abs(Gt-At),Rt+=Math.abs(Gt-It)),Kt!==-1&&(zt+=Math.abs(Kt-At),Rt+=Math.abs(Kt-It)),ie!==-1&&(zt+=Math.abs(ie-Bt),Rt+=Math.abs(ie-Dt)),Ue!==-1&&(zt+=Math.abs(Ue-Bt),Rt+=Math.abs(Ue-Dt)),(yt>1)+8*E;this.Ra*=8}if(this.bg&2)for(x=!0;x;){for(x=!1,y=this.Md+1;y<=this.Ia;y++)x=Of(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Of(this,y,-1)||x;x=Of(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)yy(this,y,1);for(y=this.Md-1;0<=y;y--)yy(this,y,-1);yy(this,this.Md,0)}if(a&&($1(this,-1),$1(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Of(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Of(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Of(this,y,0)||x}}else US(this)};function Of(a,y,x){for(var E=!1;QS(a,y,x);)E=!0;return E}function QS(a,y,x){var E,b=Gh(a,y),z=a.tc[y],tt=py(a,y,-1);if(0x)for(E=0;EE-1||ut-b[E-1].column-1>ft+a.nodeMinColumnSpace(b[E-1],!1)?yt=ut-1:yt=ut,ft=E+1>=z||b[E+1].column-ut-1>mt+a.nodeMinColumnSpace(b[E+1],!0)?ut+1:ut;var At=mt=0,Bt=0;if(0>=x)for(var Dt=b[E].sourceEdges.iterator;Dt.next();){var It=Dt.value,Rt=It.fromVertex;if(It.valid&&Rt.layer!==y){var zt=cy(It),Gt=It.portFromColOffset;It=It.portToColOffset,Rt=Rt.column,mt+=(Math.abs(ut+It-(Rt+Gt))+1)*zt,At+=(Math.abs(yt+It-(Rt+Gt))+1)*zt,Bt+=(Math.abs(ft+It-(Rt+Gt))+1)*zt}}if(0<=x)for(Dt=b[E].destinationEdges.iterator;Dt.next();)It=Dt.value,Rt=It.toVertex,It.valid&&Rt.layer!==y&&(zt=cy(It),Gt=It.portFromColOffset,It=It.portToColOffset,Rt=Rt.column,mt+=(Math.abs(ut+Gt-(Rt+It))+1)*zt,At+=(Math.abs(yt+Gt-(Rt+It))+1)*zt,Bt+=(Math.abs(ft+Gt-(Rt+It))+1)*zt);It=Gt=zt=0,Dt=tt[b[E].index],Rt=ot[b[E].index],Dt!==-1&&(zt+=Math.abs(Dt-ut),Gt+=Math.abs(Dt-yt),It+=Math.abs(Dt-ft)),Rt!==-1&&(zt+=Math.abs(Rt-ut),Gt+=Math.abs(Rt-yt),It+=Math.abs(Rt-ft)),At=tt[x]?ut=rt:at<=tt[x]&&(ut=at));ut!==ot&&(z=!0,E[x].column=ut)}Uh(a,y,E),a.normalize()}function HS(a,y){for(var x=!0,E=a.network.vertexes.iterator;E.next();){var b=E.value,z=a.nodeMinColumnSpace(b,!0),tt=a.nodeMinColumnSpace(b,!1);if(b.column-z<=y&&b.column+tt>=y){x=!1;break}}if(a=!1,x)for(E.reset();E.next();)x=E.value,x.column>y&&(--x.column,a=!0);return a}function GS(a,y){var x=y+1,E,b=[],z=[];for(E=0;E<=a.Ia;E++)b[E]=!1,z[E]=!1;for(var tt=a.network.vertexes.iterator;tt.next();){E=tt.value;var ot=E.column-a.nodeMinColumnSpace(E,!0),rt=E.column+a.nodeMinColumnSpace(E,!1);ot<=y&&rt>=y&&(b[E.layer]=!0),ot<=x&&rt>=x&&(z[E.layer]=!0)}for(ot=!0,x=!1,E=0;E<=a.Ia;E++)ot=ot&&!(b[E]&&z[E]);if(ot)for(tt.reset();tt.next();)a=tt.value,a.column>y&&(--a.column,x=!0);return x}function $1(a,y){for(var x=0;x<=a.Ra;x++)for(;HS(a,x););for(a.normalize(),x=0;xz?va(a,b):tty)for(x=a.Ra;0<=x;x--)for(b=Cs(a),z=Sm(a),E=z+1;zz?va(a,b):ttx)for(E.reset();E.next();)b=E.value,b.column+a.nodeMinColumnSpace(b,!1)>=y&&(b.component=a.le);for(a.le++,E.reset();E.next();)y=E.value,y.component===-1&&(my(a,y,a.le,-1,!0,!0),a.le++);var z;for(y=[],z=0;zx)for(tt=a.Ra;0x)for(E.reset();E.next();)x=E.value,b[x.component]&&(x.column+=1)}function US(a){for(var y=Jn(),x=a.fl.length,E=0;E<=x;E++)y[E]=[];for(E=a.network.vertexes.iterator;E.next();){var b=E.value;y[x-b.layer][b.index]=b}x=new ze,XS(y,x);var z=null,tt=null,ot=null,rt=null,at=(a.ve&1)!==0,ut=(a.ve&2)!==0,ft=(a.ve&4)!==0,mt=(a.ve&8)!==0;for(at&&(a.verticalAlignment(y,x,!0),z=Pm(a,y,!0,!1)),y.reverse(),ft&&(a.verticalAlignment(y,x,!1),ot=Pm(a,y,!1,!1)),E=Mi(y),b=E.next();!b.done;b=E.next())b.value.reverse();mt&&(a.verticalAlignment(y,x,!1),rt=Pm(a,y,!1,!0)),y.reverse(),ut&&(a.verticalAlignment(y,x,!0),tt=Pm(a,y,!0,!0)),ei(y),a.u(z,tt,ot,rt),a.network.vertexes.each(function(yt){var At=Jn();at&&At.push(z.get(yt)),ut&&At.push(tt.get(yt)),ft&&At.push(ot.get(yt)),mt&&At.push(rt.get(yt)),At.sort(function(Dt,It){return Dt-It});var Bt=At.length;Bt=(At[Math.floor((Bt-1)/2)]+At[Math.ceil((Bt-1)/2)])/2,ei(At),yt.zc=Bt})}function XS(a,y){for(var x=a.length,E=1;Eut)&&y.add(ft);z++}b=ut}}}Pi.prototype.verticalAlignment=function(a,y,x){WS(a),a=Mi(a);for(var E=a.next();!E.done;E=a.next()){var b=-1;E=Mi(E.value);for(var z=E.next();!z.done;z=E.next()){z=z.value;var tt=x?By(z):YS(z),ot=tt.length;if(0=y[x].length)&&(tt=y[x][0],tt.sd===tt)){tt.sd.shift===1/0&&(tt.sd.shift=0),tt=x,ot=0;do{for(z=y[tt][ot];z.align!==z.root;)z=z.align,tt++,0a&&ee("Could not determine previous vertex in layer"),y[x][a-1]}Pi.prototype.u=function(a){for(var y=[],x=0;xtt;tt++)if(y[tt]){var ot=VS(this,y[tt],E,b,tt);ottt;z={delta:z.delta},tt++)y[tt]&&(z.delta=tt===0||tt===2?E[x]-E[tt]:b[x]-b[tt],z.delta!==0&&y[tt].each(function(rt){return function(at){at.value+=rt.delta}}(z)));ei(E),ei(b)};function VS(a,y,x,E,b){if(!y||y.count===0)return x[b]=0,E[b]=0,1/0;var z=1/0,tt=-1/0;return y.each(function(ot){var rt=ot.key;ot=ot.value,rt=a.K===90||a.K===270?rt.width:rt.height,ottt&&(tt=ot+rt)}),x[b]=z,E[b]=tt,tt-z}Pi.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=wm(this,!0),y=wm(this,!1),x=this.network.edges.iterator;x.next();){var E=x.value.link;E!==null&&(E.fromSpot=a,E.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function wm(a,y){return a.K===270?y?jr:Er:a.K===90?y?Er:jr:a.K===180?y?vs:Mr:y?Mr:vs}Pi.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var a=0;a<=this.Ia;a++)this.he[a]=0,this.Ld[a]=0,this.Kd[a]=0,this.Ta[a]=0;for(a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;this.he[x]=Math.max(this.he[x],this.nodeMinLayerSpace(y,!0)),this.Ld[x]=Math.max(this.Ld[x],this.nodeMinLayerSpace(y,!1))}y=0,x=this.ie;for(var E=0;E<=this.Ia;E++){var b=x;0>=this.he[E]+this.Ld[E]&&(b=0),0=ft.bounds.bottom?(ft=ft.bounds.y+ft.bounds.height,y.m(Bt++,Gt,ft+ie),y.m(Bt++,Gt,ft),y.m(Bt++,Gt,ft-zt)):(y.m(Bt++,Gt,Kt+ie),y.m(Bt++,Gt,Kt),y.m(Bt++,Gt,Kt-zt)):this.K===270?Kt<=ft.bounds.y?(ft=ft.bounds.y,y.m(Bt++,Gt,ft-zt),y.m(Bt++,Gt,ft),y.m(Bt++,Gt,ft+ie)):(y.m(Bt++,Gt,Kt-zt),y.m(Bt++,Gt,Kt),y.m(Bt++,Gt,Kt+ie)):this.K===0&&(Gt>=ft.bounds.right?(ft=ft.bounds.x+ft.bounds.width,y.m(Bt++,ft+ie,Kt),y.m(Bt++,ft,Kt),y.m(Bt++,ft-zt,Kt)):(y.m(Bt++,Gt+ie,Kt),y.m(Bt++,Gt,Kt),y.m(Bt++,Gt-zt,Kt)));else{y.m(Bt++,It,Rt);var Ue=0;this.K===180||this.K===0?((this.K===180?Gt>=ft.bounds.right:Gt<=ft.bounds.x)&&(Ue=(this.K===0?-zt:ie)/2),y.m(Bt++,It+Ue,Kt)):((this.K===270?Kt>=ft.bounds.bottom:Kt<=ft.bounds.y)&&(Ue=(this.K===90?-zt:ie)/2),y.m(Bt++,Gt,Rt+Ue)),y.m(Bt++,Gt,Kt)}}else zt=Math.max(10,this.he[Dt.layer]),ie=Math.max(10,this.Ld[Dt.layer]),mt?this.K===180?(y.m(Bt++,Gt-zt-At,Kt),y.m(Bt++,Math.min(Gt-zt+At/2,Gt),Kt),y.m(Bt++,Gt,Kt),y.m(Bt++,Gt,Kt),y.m(Bt++,Math.max(Gt+ie-At/2,Gt),Kt),y.m(Bt++,Gt+ie+At,Kt)):this.K===90?(y.m(Bt++,Gt,Kt+ie+At),y.m(Bt++,Gt,Math.max(Kt+ie-At/2,Kt)),y.m(Bt++,Gt,Kt),y.m(Bt++,Gt,Kt),y.m(Bt++,Gt,Math.min(Kt-zt+At/2,Kt)),y.m(Bt++,Gt,Kt-zt-At)):this.K===270?(y.m(Bt++,Gt,Kt-zt-At),y.m(Bt++,Gt,Math.min(Kt-zt+At/2,Kt)),y.m(Bt++,Gt,Kt),y.m(Bt++,Gt,Kt),y.m(Bt++,Gt,Math.max(Kt+ie-At/2,Kt)),y.m(Bt++,Gt,Kt+ie+At)):(y.m(Bt++,Gt+ie+At,Kt),y.m(Bt++,Math.max(Gt+ie-At/2,Gt),Kt),y.m(Bt++,Gt,Kt),y.m(Bt++,Gt,Kt),y.m(Bt++,Math.min(Gt-zt+At/2,Gt),Kt),y.m(Bt++,Gt-zt-At,Kt)):y.m(Bt++,Gt,Kt)}ft=Dt}(ot===null||at!==er||yt)&&(It=y.i(Bt-1).x,Rt=y.i(Bt-1).y,Gt=y.i(Bt).x,Kt=y.i(Bt).y,yt?(At=this.Ld[ut.layer],this.K===180||this.K===0?(yt=Rt,yt>=ut.bounds.y&&yt<=ut.bounds.bottom&&(this.K===180?Gt>=ut.bounds.x:Gt<=ut.bounds.right)&&(ft=ut.centerX+(this.K===180?-At:At),yt=ut.bounds.x&&yt<=ut.bounds.right&&(this.K===270?Kt>=ut.bounds.y:Kt<=ut.bounds.bottom)&&(ft=ut.centerY+(this.K===270?-At:At),yt=ut.bounds.x?(ft=ut.bounds.x+ut.bounds.width,y.L(Bt-2,ft,Rt),y.L(Bt-1,ft+ie,Rt)):this.K===90&&Kt<=ut.bounds.bottom?(ft=ut.bounds.y,y.L(Bt-2,It,ft),y.L(Bt-1,It,ft-zt)):this.K===270&&Kt>=ut.bounds.y?(ft=ut.bounds.y+ut.bounds.height,y.L(Bt-2,It,ft),y.L(Bt-1,It,ft+ie)):this.K===0&&Gt<=ut.bounds.right&&(ft=ut.bounds.x,y.L(Bt-2,ft,Rt),y.L(Bt-1,ft-zt,Rt))):(zt=Math.max(10,this.he[ut.layer]),ie=Math.max(10,this.Ld[ut.layer]),yt=0,this.K===180||this.K===0?((this.K===180?Gt<=ut.bounds.x:Gt>=ut.bounds.right)&&(yt=(this.K===0?ie:-zt)/2),y.m(Bt++,Gt+yt,Rt)):((this.K===270?Kt<=ut.bounds.y:Kt>=ut.bounds.bottom)&&(yt=(this.K===90?ie:-zt)/2),y.m(Bt++,It,Kt+yt)),y.m(Bt++,Gt,Kt)))}else{for(;ut!==null&&ut!==ft;){for(zt=Dt=null,ut=ut.destinationEdges.iterator;ut.next()&&(It=ut.value,It.link!==x.link||(Dt=It.toVertex,zt=It.fromVertex,zt.node!==null&&(zt=null),Dt.node!==null)););if(Dt===null)break;Dt!==ft&&(It=y.i(Bt-1).x,Rt=y.i(Bt-1).y,Gt=Dt.centerX,Kt=Dt.centerY,yt?this.K===180||this.K===0?(zt!==null?zt.centerY:Rt)!==Kt&&(zt=this.Ta[Dt.layer]+this.Rf.x,Bt===y.firstPickIndex+1&&(zt=this.K===0?Math.max(zt,It):Math.min(zt,It)),y.m(Bt++,zt,Rt),y.m(Bt++,zt,Kt)):(zt!==null?zt.centerX:It)!==Gt&&(zt=this.Ta[Dt.layer]+this.Rf.y,Bt===y.firstPickIndex+1&&(zt=this.K===90?Math.max(zt,Rt):Math.min(zt,Rt)),y.m(Bt++,It,zt),y.m(Bt++,Gt,zt)):(zt=Math.max(10,this.he[Dt.layer]),ie=Math.max(10,this.Ld[Dt.layer]),mt?this.K===180?(y.m(Bt++,Gt+ie+At,Kt),y.m(Bt++,Math.max(Gt+ie-At/2,Gt),Kt),y.m(Bt++,Gt,Kt),y.m(Bt++,Gt,Kt),y.m(Bt++,Math.min(Gt-zt+At/2,Gt),Kt),y.m(Bt++,Gt-zt-At,Kt)):this.K===90?(y.m(Bt++,Gt,Kt-zt-At),y.m(Bt++,Gt,Math.min(Kt-zt+At/2,Kt)),y.m(Bt++,Gt,Kt),y.m(Bt++,Gt,Kt),y.m(Bt++,Gt,Math.max(Kt+ie-At/2,Kt)),y.m(Bt++,Gt,Kt+ie+At)):this.K===270?(y.m(Bt++,Gt,Kt+ie+At),y.m(Bt++,Gt,Math.max(Kt+ie-At/2,Kt)),y.m(Bt++,Gt,Kt),y.m(Bt++,Gt,Kt),y.m(Bt++,Gt,Math.min(Kt-zt+At/2,Kt)),y.m(Bt++,Gt,Kt-zt-At)):(y.m(Bt++,Gt-zt-At,Kt),y.m(Bt++,Math.min(Gt-zt+At/2,Gt),Kt),y.m(Bt++,Gt,Kt),y.m(Bt++,Gt,Kt),y.m(Bt++,Math.max(Gt+ie-At/2,Gt),Kt),y.m(Bt++,Gt+ie+At,Kt)):this.K===180?(y.m(Bt++,Gt+ie,Kt),y.m(Bt++,Gt-zt,Kt)):this.K===90?(y.m(Bt++,Gt,Kt-zt),y.m(Bt++,Gt,Kt+ie)):this.K===270?(y.m(Bt++,Gt,Kt+ie),y.m(Bt++,Gt,Kt-zt)):(y.m(Bt++,Gt-zt,Kt),y.m(Bt++,Gt+ie,Kt)))),ut=Dt}yt&&(It=y.i(Bt-1).x,Rt=y.i(Bt-1).y,Gt=y.i(Bt).x,Kt=y.i(Bt).y,this.K===180||this.K===0?Rt!==Kt&&(zt=this.K===0?Math.min(Math.max((Gt+It)/2,this.Ta[ft.layer]+this.Rf.x),Gt):Math.max(Math.min((Gt+It)/2,this.Ta[ft.layer]+this.Rf.x),Gt),y.m(Bt++,zt,Rt),y.m(Bt++,zt,Kt)):It!==Gt&&(zt=this.K===90?Math.min(Math.max((Kt+Rt)/2,this.Ta[ft.layer]+this.Rf.y),Kt):Math.max(Math.min((Kt+Rt)/2,this.Ta[ft.layer]+this.Rf.y),Kt),y.m(Bt++,It,zt),y.m(Bt++,Gt,zt)))}E!==null&&mt&&4<=y.pointsCount&&(tt!==null&&(tt=at===er?y.getLinkPointFromPoint(b,tt,tt.ga(pi),y.i(3),!0):y.i(0),at===er&&(at=y.i(2),E=y.i(3),this.direction===90||this.direction===270?(y.L(1,(tt.x+at.x)/2,at.y),y.L(2,E.x,(at.y+E.y)/2)):(y.L(1,at.x,(tt.y+at.y)/2),y.L(2,(at.x+E.x)/2,E.y))),tt.w()||tt.set(b.actualBounds.center),y.L(0,tt.x,tt.y)),ot!==null&&(b=rt===er?y.getLinkPointFromPoint(z,ot,ot.ga(pi),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),rt===er&&(ot=y.i(y.pointsCount-3),rt=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(b.x+ot.x)/2,ot.y),y.L(y.pointsCount-2,rt.x,(ot.y+rt.y)/2)):(y.L(y.pointsCount-2,ot.x,(b.y+ot.y)/2),y.L(y.pointsCount-3,(ot.x+rt.x)/2,rt.y))),b.w()||b.set(z.actualBounds.center),y.L(y.pointsCount-1,b.x,b.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},Pi.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new He,y=this.network.edges.iterator;y.next();){var x=y.value.link;x!==null&&x.isOrthogonal&&!a.contains(x)&&a.add(x)}if(0z.y&&(ut=at.y>z.y?0:tt.xz.x&&(ut=at.x>z.x?0:tt.yy.layer?1:a.rdy.rd?1:a.Icy.Ic?1:0:0},Pt.Ux=function(a,y){return a instanceof Xh&&y instanceof Xh&&a!==y?a.firsty.first||a.jy.j||a.rdy.rd?1:a.Icy.Ic?1:0:0},Pt.Js=function(a,y){return a instanceof Xh&&y instanceof Xh&&a!==y?a.jcy.jc||a.jy.j||a.rdy.rd?1:a.Icy.Ic?1:0:0},Pt.B=function(a,y){return a-=y,-1a},Pt.zi=function(a,y,x,E){var b=a.length,z=E-x;if(!(1>=z))if((0>x||x>=b-1)&&ee("not in range 0 <= from < length: "+x),z===2)E=a[x],b=a[x+1],0=b)a.sort(y);else for(x=a.slice(0,E),x.sort(y),y=0;y=b)for(E=a.slice(x),E.sort(y),y=x;y=a.He.length){for(var E=[],b=0;ba&&(this.bg=a,this.C())}},alignOption:{get:function(){return this.ve},set:function(a){this.ve!==a&&0<=a&&16>a&&(this.ve=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(a){this.Cn!==a&&0<=a&&(this.Cn=a,this.C())}},maxLayer:{get:function(){return this.Ia}},maxIndex:{get:function(){return this.Iq}},maxColumn:{get:function(){return this.Ra}},minIndexLayer:{get:function(){return this.Hn}},maxIndexLayer:{get:function(){return this.Md}}});var Cm=new Ee(Pi,"CycleDepthFirst",0),Ay=new Ee(Pi,"CycleGreedy",1),vp=new Ee(Pi,"CycleFromLayers",2),Em=new Ee(Pi,"LayerOptimalLinkLength",0),Sy=new Ee(Pi,"LayerLongestPathSink",1),xy=new Ee(Pi,"LayerLongestPathSource",2),Bm=new Ee(Pi,"InitDepthFirstOut",0),Py=new Ee(Pi,"InitDepthFirstIn",1),wy=new Ee(Pi,"InitNaive",2),Cy=new Ee(Pi,"AggressiveNone",0),Lm=new Ee(Pi,"AggressiveLess",1),Ey=new Ee(Pi,"AggressiveMore",2),KS=8;Pi.className="LayeredDigraphLayout",Pi.CycleDepthFirst=Cm,Pi.CycleGreedy=Ay,Pi.CycleFromLayers=vp,Pi.LayerOptimalLinkLength=Em,Pi.LayerLongestPathSink=Sy,Pi.LayerLongestPathSource=xy,Pi.InitDepthFirstOut=Bm,Pi.InitDepthFirstIn=Py,Pi.InitNaive=wy,Pi.AggressiveNone=Cy,Pi.AggressiveLess=Lm,Pi.AggressiveMore=Ey,Pi.PackNone=0,Pi.PackExpand=1,Pi.PackStraighten=2,Pi.PackMedian=4,Pi.PackAll=15,Pi.AlignNone=0,Pi.AlignUpperLeft=1,Pi.AlignUpperRight=2,Pi.AlignLowerLeft=4,Pi.AlignLowerRight=8,Pi.AlignAll=15;function Xh(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}Xh.className="SegInfo";function jf(a){Ti.call(this,a)}Ae(jf,Ti),jf.prototype.createVertex=function(){return new ya(this)},jf.prototype.createEdge=function(){return new yp(this)},jf.className="LayeredDigraphNetwork";function ya(a){Yo.call(this,a),this.$n=this.bo=this.ao=this.co=null,this.Za=this.Ag=this.Ig=-1,this.u=NaN,this.F=null,this.valid=!1,this.finish=this.Ll=NaN,this.Dj=0,this.dv=this.ev=null}Ae(ya,Yo);function iS(a,y){return a.index-y.index}function Mm(a,y){if(!a.$n){for(var x=[],E=Mi(a.destinationEdgesArrayAccess),b=E.next();!b.done;b=E.next())b=b.value,b.valid&&x.push(b);a.$n=x}for(a=Mi(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;ee("Unable to find destination edge to given vertex")}function By(a){if(!a.co){for(var y=[],x=Mi(a.sourceEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.fromVertex);y.sort(iS),a.co=y}return a.co}function YS(a){if(!a.ao){for(var y=[],x=Mi(a.destinationEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.toVertex);y.sort(iS),a.ao=y}return a.ao}ya.prototype.Cl=function(a){Yo.prototype.Cl.call(this,a),this.bo=this.co=null},ya.prototype.Kl=function(a){Yo.prototype.Kl.call(this,a),this.bo=this.co=null},ya.prototype.zl=function(a){Yo.prototype.zl.call(this,a),this.$n=this.ao=null},ya.prototype.Jl=function(a){Yo.prototype.Jl.call(this,a),this.$n=this.ao=null},fe.Object.defineProperties(ya.prototype,{layer:{get:function(){return this.Ig},set:function(a){this.Ig!==a&&(this.Ig=a)}},column:{get:function(){return this.Ag},set:function(a){this.Ag!==a&&(this.Ag=a)}},index:{get:function(){return this.Za},set:function(a){this.Za!==a&&(this.Za=a)}},component:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},near:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),ya.prototype.deleteDestinationEdge=ya.prototype.Jl,ya.prototype.addDestinationEdge=ya.prototype.zl,ya.prototype.deleteSourceEdge=ya.prototype.Kl,ya.prototype.addSourceEdge=ya.prototype.Cl,ya.className="LayeredDigraphVertex";function yp(a){Us.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Ae(yp,Us),fe.Object.defineProperties(yp.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},valid:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},rev:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},forest:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},portFromPos:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},portToPos:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},portFromColOffset:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},portToColOffset:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),yp.className="LayeredDigraphEdge";function Xn(a){_i.call(this),this.Ub=new ze,this.Wn=Nm,this.ud=Wl,this.vo=Dm,this.Bq=jy,this.$v=[],this.td=!0,this.Rb=bm,this.$d=new We(10,10).freeze();var y=new Eg(this);this.W=new Na(y),this.Y=new Na(y),this.ru=[],a&&Object.assign(this,a)}Ae(Xn,_i),Xn.prototype.cloneProtected=function(a){_i.prototype.cloneProtected.call(this,a),a.Wn=this.Wn,a.vo=this.vo,a.Bq=this.Bq,a.td=this.td,a.Rb=this.Rb,a.$d.assign(this.$d),a.W.copyInheritedPropertiesFrom(this.W),a.Y.copyInheritedPropertiesFrom(this.Y)},Xn.prototype.qb=function(a){a.classType===Xn?a.name.indexOf("Alignment")===0?this.alignment=a:a.name.indexOf("Arrangement")===0?this.arrangement=a:a.name.indexOf("Compaction")===0?this.compaction=a:a.name.indexOf("Path")===0?this.path=a:a.name.indexOf("Sorting")===0?this.sorting=a:a.name.indexOf("Style")===0?this.treeStyle=a:ee("Unknown enum value: "+a):_i.prototype.qb.call(this,a)},Xn.prototype.createNetwork=function(){return new Eg(this)},Xn.prototype.makeNetwork=function(a){function y(E){if(E instanceof Xe)return!E.isLinkLabel&&E.category!=="Comment";if(E instanceof Ne){var b=E.fromNode;return b===null||b.isLinkLabel||b.category==="Comment"?!1:(E=E.toNode,!(E===null||E.isLinkLabel||E.category==="Comment"))}return!1}var x=this.createNetwork();return a instanceof oe?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof Bn?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},Xn.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==Om&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof oe&&(y=a),this.path===Nm&&y!==null?this.ud=y.isTreePathToChildren?Wl:wg:this.ud=this.path===Nm?Wl:this.path,0y.level)return!1;a.removeChild(x.parent,x)}return!0}Xn.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,E=0,b=0;bb?hS(this,a,tt,yn,It,Rt):dS(this,a,tt,yn,It,Rt),yn=Rt.x,It=Rt.width,Rt=Rt.height;break;case th:for(Gt=0;Gtft&&(tnhr&&(Pg(a,-hr,0,Cn,di-1),Fm(Gt,-hr,0),Fm(Kt,-hr,0),hr=0)}ki.S.h(hr,Ye),It=Math.max(It,ie),Rt=Math.max(Rt,zt+(Fe===0?0:At)+rr.height),tn=ie}else 0ft&&(Yehr&&(Pg(a,0,-hr,Cn,di-1),Fm(Gt,0,-hr),Fm(Kt,0,-hr),hr=0)),ki.S.h(tn,hr),Rt=Math.max(Rt,Ue),It=Math.max(It,zt+(Fe===0?0:At)+rr.width),Ye=Ue;ye++}switch(0at&&(at=0),135Bt&&(Bt=0),rt===cu&&(ot+=mt/2+a.focus.y),tt+=E+x):y?(a.comments===null?E>It&&(It=Fy(rt,E-It,0),tt=It.x,ot=It.y,It=E,at=0):It=ky(a,It,at),0>at&&(tt-=at,at=0),135Rt&&(Rt=Fy(rt,0,Dt-Rt),tt=Rt.x,ot=Rt.y,Rt=Dt,Bt=0):Rt=Iy(a,Rt,Bt),0>Bt&&(ot-=Bt,Bt=0),tt+=E+x),0b[0].x?b[2].assign(b[1]):b[1].assign(b[2])),b[3].yb[0].x?b[3].assign(b[2]):b[2].assign(b[3])),Fe[0].h(at+E,0),Fe[1].h(Fe[0].x,Dt),Fe[2].yb[0].y?b[2].assign(b[1]):b[1].assign(b[2])),b[3].xb[0].y?b[3].assign(b[2]):b[2].assign(b[3])),Fe[0].h(0,Bt+Dt),Fe[1].h(E,Fe[0].y),Fe[2].xE?hS(a,y,b,ye,zt,Gt):dS(a,y,b,ye,zt,Gt),ye=Gt.x,zt=Gt.width,Gt=Gt.height;break;case th:for(mt=0;mtmt&&(iemt&&(Ueft&&(ft=0),135It&&(It=0)),y.la.h(ft,It),y.Da.h(zt,Gt)}}Xn.prototype.customAlignment=function(a,y,x,E,b){return[y,x,E,b]};function hS(a,y,x,E,b,z){var tt=x.length;if(tt===0)return new ce(E,0,b,z);if(tt===1)return y=x[0],b=y.Da.width,z=y.Da.height,new ce(E,0,b,z);for(var ot=y.nodeSpacing,rt=y.rowSpacing,at=Za(y)===90,ut=0,ft=0,mt=0,yt=0;ytat&&(b-=at),z=Math.max(z,Math.max(yt,mt)+a+tt.height),0>x.S.x&&(E=km(y,x.S.x,!1,E,ot))):(x.S.h(b+a,E+ot/2-x.focus.y-x.la.y),b=Math.max(b,Math.max(At,ft)+a+tt.width),mt=E+ot/2-x.focus.y-x.la.y,z=Math.max(z,mt+tt.height),0>mt&&(z-=mt),0>x.S.y&&(E=km(y,x.S.y,!0,E,ot)))),new ce(E,0,b,z)}function dS(a,y,x,E,b,z){var tt=x.length;if(tt===0)return new ce(E,0,b,z);if(tt===1)return x=x[0],b=x.Da.width,z=x.Da.height,new ce(E,0,b,z);for(var ot=y.nodeSpacing,rt=y.rowSpacing,at=Za(y)===270,ut=0,ft=0,mt=0,yt=0;ytft&&(b-=ft),z=Math.max(z,Math.abs(Math.min(yt,mt))+a+ut.height),0>rt.S.x&&(E=km(y,rt.S.x,!1,E,ot))):(rt.S.h(-b-ut.width-a,E+ot/2-rt.focus.y-rt.la.y),b=Math.max(b,Math.abs(Math.min(At,ft))+a+ut.width),mt=E+ot/2-rt.focus.y-rt.la.y,z=Math.max(z,mt+ut.height),0>mt&&(z-=mt),0>rt.S.y&&(E=km(y,rt.S.y,!0,E,ot)))),y=0;yy&&(y=x+a.width),0>x&&(y-=x),y;case Vl:return a.width>y?a.width:y;case Kl:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case $u:case Yl:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case th:return a.width-a.focus.x+a.nodeSpacing/2+y;case cu:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function Iy(a,y,x){switch(a.alignment){case Cg:case zf:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Vl:return a.height>y?a.height:y;case Kl:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case $u:case Yl:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case th:return a.height-a.focus.y+a.nodeSpacing/2+y;case cu:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Fy(a,y,x){switch(a){case zf:y/=2,x/=2;break;case Cg:y/=2,x/=2;break;case Vl:x=y=0;break;case Kl:break;default:ee("Unhandled alignment value "+a.toString())}return new jt(y,x)}function Nd(a,y,x,E,b,z){y=Fy(y,x,E),Pg(a,y.x,y.y,b,z)}function Pg(a,y,x,E,b){if(y!==0||x!==0)for(a=a.children;E<=b;E++){var z=a[E].S;z.x+=y,z.y+=x}}function Im(a,y,x,E){var b=y.parent;switch(a.ud){case Wl:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===b&&y.relativePoint.h(x,E);break;case wg:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===b&&y.relativePoint.h(x,E);break;default:ee("Unhandled path value "+a.ud.toString())}}function Fm(a,y,x){for(var E=0;Eft.length||yt===null||2>yt.length))for(b=x=0;xat&&z.yz.y&&aty.length||x===null||2>x.length)E=null;else{for(ut=Fs(a,y.length+x.length),E=z=rt=0;zrt;)at=x[z++],ut[E++].h(at.x+b,at.y);for(x=Fs(a,E),rt=0;rtft.length||z===null||2>z.length)b=null;else{for(ut=Fs(a,ft.length+z.length),b=at=x=0;xz;)rt=ft[x++],ut[b++].h(rt.x,rt.y);for(z=Fs(a,b),x=0;xft.length||yt===null||2>yt.length))for(b=x=0;xrt&&z.xz.x&&rty.length||x===null||2>x.length)E=null;else{for(ut=Fs(a,y.length+x.length),E=z=rt=0;zrt;)at=x[z++],ut[E++].h(at.x,at.y+b);for(x=Fs(a,E),rt=0;rtft.length||z===null||2>z.length)b=null;else{for(ut=Fs(a,ft.length+z.length),b=at=x=0;xz;)rt=ft[x++],ut[b++].h(rt.x,rt.y);for(z=Fs(a,b),x=0;x=a?0:135>=a?90:225>=a?180:315>=a?270:0}Xn.prototype.computeLayerSpacing=function(a){var y=Za(a);y=y===90||y===270;var x=a.layerSpacing;if(0=a&&(this.W.nodeIndentPastParent=a,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(a){this.W.nodeSpacing!==a&&(this.W.nodeSpacing=a,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(a){this.W.layerSpacing!==a&&(this.W.layerSpacing=a,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(a){this.W.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.W.layerSpacingParentOverlap=a,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(a){this.W.compaction===a||a!==Tm&&a!==wp||(this.W.compaction=a,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(a){this.W.breadthLimit!==a&&0<=a&&(this.W.breadthLimit=a,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(a){this.W.rowSpacing!==a&&(this.W.rowSpacing=a,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(a){this.W.rowIndent!==a&&0<=a&&(this.W.rowIndent=a,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(a){this.W.commentSpacing!==a&&(this.W.commentSpacing=a,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(a){this.W.commentMargin!==a&&(this.W.commentMargin=a,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(a){this.W.setsPortSpot!==a&&(this.W.setsPortSpot=a,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(a){this.W.portSpot.D(a)||(this.W.portSpot=a,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(a){this.W.setsChildPortSpot!==a&&(this.W.setsChildPortSpot=a,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(a){this.W.childPortSpot.D(a)||(this.W.childPortSpot=a,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(a){this.Y.sorting===a||a!==Rf&&a!==Sp&&a!==xp&&!Pp||(this.Y.sorting=a,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(a){this.Y.comparer!==a&&(this.Y.comparer=a,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(a){this.Y.angle===a||a!==0&&a!==90&&a!==180&&a!==270||(this.Y.angle=a,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(a){this.Y.alignment!==a&&(this.Y.alignment=a,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(a){this.Y.nodeIndent!==a&&0<=a&&(this.Y.nodeIndent=a,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(a){this.Y.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.Y.nodeIndentPastParent=a,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(a){this.Y.nodeSpacing!==a&&(this.Y.nodeSpacing=a,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(a){this.Y.layerSpacing!==a&&(this.Y.layerSpacing=a,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(a){this.Y.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.Y.layerSpacingParentOverlap=a,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(a){this.Y.compaction===a||a!==Tm&&a!==wp||(this.Y.compaction=a,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(a){this.Y.breadthLimit!==a&&0<=a&&(this.Y.breadthLimit=a,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(a){this.Y.rowSpacing!==a&&(this.Y.rowSpacing=a,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(a){this.Y.rowIndent!==a&&0<=a&&(this.Y.rowIndent=a,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(a){this.Y.commentSpacing!==a&&(this.Y.commentSpacing=a,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(a){this.Y.commentMargin!==a&&(this.Y.commentMargin=a,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(a){this.Y.setsPortSpot!==a&&(this.Y.setsPortSpot=a,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(a){this.Y.portSpot.D(a)||(this.Y.portSpot=a,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(a){this.Y.setsChildPortSpot!==a&&(this.Y.setsChildPortSpot=a,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(a){this.Y.childPortSpot.D(a)||(this.Y.childPortSpot=a,this.C())}}});var Nm=new Ee(Xn,"PathDefault",-1),Wl=new Ee(Xn,"PathDestination",0),wg=new Ee(Xn,"PathSource",1),Rf=new Ee(Xn,"SortingForwards",10),Sp=new Ee(Xn,"SortingReverse",11),xp=new Ee(Xn,"SortingAscending",12),Pp=new Ee(Xn,"SortingDescending",13),zf=new Ee(Xn,"AlignmentCenterSubtrees",20),Cg=new Ee(Xn,"AlignmentCenterChildren",21),Vl=new Ee(Xn,"AlignmentStart",22),Kl=new Ee(Xn,"AlignmentEnd",23),$u=new Ee(Xn,"AlignmentBus",24),Yl=new Ee(Xn,"AlignmentBusBranching",25),th=new Ee(Xn,"AlignmentTopLeftBus",26),cu=new Ee(Xn,"AlignmentBottomRightBus",27),Tm=new Ee(Xn,"CompactionNone",30),wp=new Ee(Xn,"CompactionBlock",31),Dm=new Ee(Xn,"StyleLayered",40),Ty=new Ee(Xn,"StyleLastParents",41),Dy=new Ee(Xn,"StyleAlternating",42),by=new Ee(Xn,"StyleRootOnly",43),bm=new Ee(Xn,"ArrangementVertical",50),Oy=new Ee(Xn,"ArrangementHorizontal",51),Om=new Ee(Xn,"ArrangementFixedRoots",52),jy=new Ee(Xn,"LayerIndividual",60),Ry=new Ee(Xn,"LayerSiblings",61),jm=new Ee(Xn,"LayerUniform",62);Xn.className="TreeLayout",Xn.PathDefault=Nm,Xn.PathDestination=Wl,Xn.PathSource=wg,Xn.SortingForwards=Rf,Xn.SortingReverse=Sp,Xn.SortingAscending=xp,Xn.SortingDescending=Pp,Xn.AlignmentCenterSubtrees=zf,Xn.AlignmentCenterChildren=Cg,Xn.AlignmentStart=Vl,Xn.AlignmentEnd=Kl,Xn.AlignmentBus=$u,Xn.AlignmentBusBranching=Yl,Xn.AlignmentTopLeftBus=th,Xn.AlignmentBottomRightBus=cu,Xn.CompactionNone=Tm,Xn.CompactionBlock=wp,Xn.StyleLayered=Dm,Xn.StyleLastParents=Ty,Xn.StyleAlternating=Dy,Xn.StyleRootOnly=by,Xn.ArrangementVertical=bm,Xn.ArrangementHorizontal=Oy,Xn.ArrangementFixedRoots=Om,Xn.LayerIndividual=jy,Xn.LayerSiblings=Ry,Xn.LayerUniform=jm;function Eg(a){Ti.call(this,a)}Ae(Eg,Ti),Eg.prototype.createVertex=function(){return new Na(this)},Eg.prototype.createEdge=function(){return new Qf(this)},Eg.className="TreeNetwork";function Na(a){Yo.call(this,a),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new jt(0,0),this.Da=new We(0,0),this.la=new jt(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=Rf,this.hd=oy,this.Kb=0,this.Jb=Cg,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=wp,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=ar,this.wr=!0,this.Dp=ar}Ae(Na,Yo),Na.prototype.copyInheritedPropertiesFrom=function(a){a!==null&&(this.nd=a.sorting,this.hd=a.comparer,this.Kb=a.angle,this.Jb=a.alignment,this.Uq=a.nodeIndent,this.Vq=a.nodeIndentPastParent,this.Wq=a.nodeSpacing,this.ie=a.layerSpacing,this.Aq=a.layerSpacingParentOverlap,this.Hp=a.compaction,this.Ap=a.breadthLimit,this.nr=a.rowSpacing,this.mr=a.rowIndent,this.Gp=a.commentSpacing,this.Fp=a.commentMargin,this.xr=a.setsPortSpot,this.dr=a.portSpot,this.wr=a.setsChildPortSpot,this.Dp=a.childPortSpot)},fe.Object.defineProperties(Na.prototype,{initialized:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},parent:{get:function(){return this.hb},set:function(a){this.hb!==a&&(this.hb=a)}},children:{get:function(){return this.u},set:function(a){if(this.u!==a){if(a!==null)for(var y=a.length,x=0;xyt.y+x.rowIndent&&(z=Math.min(z,Math.max(ft.y,z-y.computeNodeIndent(x))))):x.alignment===Vl?(z=E.top+b.y,b.y===0&&ft.yyt.x+x.rowIndent&&(z=Math.min(z,Math.max(ft.x,z-y.computeNodeIndent(x))))):x.alignment===Vl?(z=E.left+b.x,b.x===0&&ft.xyt.y+x.rowIndent&&(z=Math.min(z,Math.max(ft.y,z-y.computeNodeIndent(x))))):x.alignment===Vl?(z=E.top+b.y,b.y===0&&ft.yyt.x+x.rowIndent&&(z=Math.min(z,Math.max(ft.x,z-y.computeNodeIndent(x))))):x.alignment===Vl?(z=E.left+b.x,b.x===0&&ft.x=a.count)a.count===1&&(a=a.first(),a.centerX=0,a.centerY=0);else{var y=new He;y.addAll(a.iterator),a=new He;var x=new He,E=this.sort(y),b,z,tt=this.Jp,ot=this.arrangement,rt=this.nodeDiameterFormula,at=this.radius;(!isFinite(at)||0>=at)&&(at=NaN);var ut=this.aspectRatio;(!isFinite(ut)||0>=ut)&&(ut=1);var ft=this.startAngle;isFinite(ft)||(ft=0);var mt=this.sweepAngle;if((!isFinite(mt)||360mt)&&(mt=360),y=this.spacing,isFinite(y)||(y=NaN),ot===Ya&&rt===Sg?ot=Ka:ot===Ya&&rt!==Sg&&(ot=this.arrangement),(this.direction===Fd||this.direction===Tf)&&this.sorting!==Df){for(rt=0;!(rt>=E.length)&&(a.add(E.M(rt)),!(rt+1>=E.length));rt+=2)x.add(E.M(rt+1));this.direction===Fd?(this.arrangement===Ya&&a.reverse(),E=new He,E.addAll(a),E.addAll(x)):(this.arrangement===Ya&&x.reverse(),E=new He,E.addAll(x),E.addAll(a))}rt=E.length;for(var yt=z=b=0;ytmt&&(yt===0||yt===E.length-1)&&(Bt/=2),b+=Bt,z++}if(isNaN(at)||ot===Ya){if(isNaN(y)&&(y=6),ot!==Ka&&ot!==Ya){for(z=-1/0,tt=0;ttat?(at=b,z=at*ut):tt=yt/(360<=mt?rt:rt-1)}if(this.kw=ot,this.lc=at,this.Zm=ut,this.lw=ft,this.Wp=mt,this.Ti=y,this.me=z,this.Jp=tt,y=E,E=this.kw,ot=this.lc,at=this.lw,ut=this.Wp,ft=this.Ti,mt=this.me,rt=this.Jp,this.direction!==Fd&&this.direction!==Tf||E!==Ya)if(this.direction===Fd||this.direction===Tf){switch(tt=0,E){case zh:tt=180*gm(this,ot,mt,at,rt)/Math.PI;break;case Ka:rt=y=0,tt=a.first(),tt!==null&&(y=Hh(tt,Math.PI/2)),tt=x.first(),tt!==null&&(rt=Hh(tt,Math.PI/2)),tt=180*gm(this,ot,mt,at,ft+(y+rt)/2)/Math.PI;break;case _u:tt=ut/y.length}if(this.direction===Fd){switch(E){case zh:dp(this,a,at,Qh);break;case Ka:hp(this,a,at,Qh);break;case _u:up(this,a,ut/2,at,Qh)}switch(E){case zh:dp(this,x,at+tt,fs);break;case Ka:hp(this,x,at+tt,fs);break;case _u:up(this,x,ut/2,at+tt,fs)}}else{switch(E){case zh:dp(this,x,at,Qh);break;case Ka:hp(this,x,at,Qh);break;case _u:up(this,x,ut/2,at,Qh)}switch(E){case zh:dp(this,a,at+tt,fs);break;case Ka:hp(this,a,at+tt,fs);break;case _u:up(this,a,ut/2,at+tt,fs)}}}else switch(E){case zh:dp(this,y,at,this.direction);break;case Ka:hp(this,y,at,this.direction);break;case _u:up(this,y,ut,at,this.direction);break;case Ya:N1(this,y,ut,at,this.direction)}else N1(this,y,ut,at-ut/2,fs)}this.updateParts(),this.network=null,this.isValidLayout=!0};function up(a,y,x,E,b){var z=a.Wp,tt=a.lc;a=a.me,E=E*Math.PI/180,x=x*Math.PI/180;for(var ot=y.length,rt=0;rtx){for(z=E+(b===fs?z:-z);0>z;)z+=360;z%=360,180=ut.length-1));ft++)b1(a,rt,at,ut,ft,b,z)||O1(a,rt,at,ut,ft,b,z),rt=z.x,at=z.y;if(jt.free(z),a.mj++,!(23Math.abs(yt)?Math.abs(rt-z)<(ut[0].width+ut[ut.length-1].width)/2&&(tt=0):tt=0Math.abs(mt)?0:mt,rt=Math.abs(z)>Math.abs(ft)?0ft:0a.mj?a.lc-tt/(2*Math.PI):5>ut.length&&10=ft.length-1));mt++)b1(a,rt,at,ft,mt,b,ut)||O1(a,rt,at,ft,mt,b,ut),rt=ut.x,at=ut.y;if(jt.free(ut),a.mj++,!(23a.mj?a.lc-z/(2*Math.PI):a.lc-(0ot){if(z=y-a,z<-ot)return tt.x=z,tt.y=at,!1;ut=!0}}else if(z=y-a,z<-ot){if(z=y+a,z>ot)return tt.x=z,tt.y=at,!1;ut=!0}return at=Math.sqrt(1-Math.min(1,z*z/(ot*ot)))*rt,0>x!==ut&&(at=-at),Math.abs(x-at)>(E[b].height+E[b+1].height)/2?(tt.x=z,tt.y=at,!1):(tt.x=z,tt.y=at,!0)}function O1(a,y,x,E,b,z,tt){var ot=a.lc,rt=a.me,at=0;if(a=(E[b].height+E[b+1].height)/2+a.Ti,E=!1,0<=y!=(z===fs)){if(z=x-a,z<-rt){if(z=x+a,z>rt){tt.x=at,tt.y=z;return}E=!0}}else if(z=x+a,z>rt){if(z=x-a,z<-rt){tt.x=at,tt.y=z;return}E=!0}at=Math.sqrt(1-Math.min(1,z*z/(rt*rt)))*ot,0>y!==E&&(at=-at),tt.x=at,tt.y=z}co.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},co.prototype.commitNodes=function(){var a=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,y=a?this.group.location.copy():null,x=this.actualCenter;a?x=new jt(0,0):(x.x=this.arrangementOrigin.x+this.lc,x.y=this.arrangementOrigin.y+this.me);for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;b.x+=x.x,b.y+=x.y,b.commit()}a&&(this.group.Va(),a=this.group.position.copy(),x=this.group.location.copy(),y=y.re(x.re(a)),this.group.move(y),this.Zv=y.re(a))},co.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function fy(a,y,x,E,b){var z=a.ty;if(.001>Math.abs(a.Zm-1))return E!==void 0&&b!==void 0?b*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var tt=0,ot=E!==void 0&&b!==void 0?b/(z+1):Math.PI/(2*(z+1)),rt=0,at=0;at<=z;at++){E!==void 0&&b!==void 0?rt=E+at*b/z:rt=at*Math.PI/(2*z);var ut=Math.sin(rt);tt+=Math.sqrt(1-a*a*ut*ut)*ot}return E!==void 0&&b!==void 0?(y>x?y:x)*tt:4*(y>x?y:x)*tt}function dm(a,y,x,E,b){return y/(E!==void 0&&b!==void 0?fy(a,1,x,E,b):fy(a,1,x))}function gm(a,y,x,E,b){if(.001>Math.abs(a.Zm-1))return b/y;var z=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,tt=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(E+=Math.PI/2);for(var ot=0;;ot++){var rt=Math.sin(E+ot*a);if(tt+=(y>x?y:x)*Math.sqrt(1-z*z*rt*rt)*a,tt>=b)return ot*a}}co.prototype.sort=function(a){switch(this.sorting){case fm:break;case cm:a.reverse();break;case pm:a.sort(this.comparer);break;case mm:a.sort(this.comparer),a.reverse();break;case Df:return this.ak(TS(a));default:ee("Invalid sorting type.")}return a};function TS(a){for(var y=[],x=0;xb&&(b=ot,z=tt)}else for(tt=0;ttb&&(b=ot,z=tt);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),tt=z.sourceEdges;tt.next();)b=a.indexOf(tt.value.fromVertex),0>b||0<=y[b]&&y[b]++;for(z=z.destinationEdges;z.next();)b=a.indexOf(z.value.toVertex),0>b||0<=y[b]&&y[b]++}return x}co.prototype.ak=function(a){for(var y=[],x=0;xy[x].indexOf(b)&&y[x].push(b);for(E=E.sourceEdges;E.next();)b=a.indexOf(E.value.fromVertex),b!==x&&0>y[x].indexOf(b)&&y[x].push(b)}for(z=[],x=0;xy[x[At]].indexOf(x[At===x.length-1?0:At+1])&&yt.push(At===x.length-1?0:At+1);if(yt.length===0)for(At=0;Atx.indexOf(ie)||Ktx.indexOf(ie)||Kt=Bt?Kt+1:Kt)),It+=Kt=Bt&&Kt++,zt>=Bt&&zt++,Kt>zt&&(Gt=zt,zt=Kt,Kt=Gt),zt-Kt<(x.length+2)/2==(Ktyt||yt===ut||(At=yt>ut?yt-ut:ut-yt,ft+=yttt-At?1:-1);x.splice(0>ft?ut:ut+1,0,rt),E.splice(ot,1),ot--}else z=!1;if(z)break;x.push(E[0]),E.splice(0,1)}for(y=0;y=a?this.ul=a:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==Ya&&a!==Ka&&a!==zh&&a!==_u||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==fs&&a!==Qh&&a!==Fd&&a!==Tf||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==fm&&a!==cm&&a!==pm&&!mm&&a!==Df||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf!==a&&(this.tf=a,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(a){this.Nn===a||a!==vm&&a!==Sg||(this.Nn=a,this.C())}},actualXRadius:{get:function(){return this.lc}},actualYRadius:{get:function(){return this.me}},actualSpacing:{get:function(){return this.Ti}},actualCenter:{get:function(){return this.Zv}}});var Ka=new Ee(co,"ConstantSpacing",0),zh=new Ee(co,"ConstantDistance",1),_u=new Ee(co,"ConstantAngle",2),Ya=new Ee(co,"Packed",3),fs=new Ee(co,"Clockwise",4),Qh=new Ee(co,"Counterclockwise",5),Fd=new Ee(co,"BidirectionalLeft",6),Tf=new Ee(co,"BidirectionalRight",7),fm=new Ee(co,"Forwards",8),cm=new Ee(co,"Reverse",9),pm=new Ee(co,"Ascending",10),mm=new Ee(co,"Descending",11),Df=new Ee(co,"Optimized",12),vm=new Ee(co,"Pythagorean",13),Sg=new Ee(co,"Circular",14);co.className="CircularLayout",co.ConstantSpacing=Ka,co.ConstantDistance=zh,co.ConstantAngle=_u,co.Packed=Ya,co.Clockwise=fs,co.Counterclockwise=Qh,co.BidirectionalLeft=Fd,co.BidirectionalRight=Tf,co.Forwards=fm,co.Reverse=cm,co.Ascending=pm,co.Descending=mm,co.Optimized=Df,co.Pythagorean=vm,co.Circular=Sg;function gp(){this.Pl=-1/0,this.tm=this.mk=null}gp.prototype.compare=function(a,y){if(0this.Pl||Math.abs(a)a&&0ot?(b=mt.x+mt.width/2,z=mt.y+mt.height/2,at[0]=new jt(mt.x+mt.width+E.width,mt.y),at[1]=new jt(mt.x,mt.y+mt.height+E.height),ot=2):(rt=R1(at,ot,b,z,mt.width,mt.height,E),ft=at[rt],yt=new jt(ft.x+mt.width+E.width,ft.y),mt=new jt(ft.x,ft.y+mt.height+E.height),rt+1this.network.vertexes.count)return!1;for(var a=0,y=0,x=this.network.vertexes.first().bounds,E=this.network.vertexes.iterator;E.next();){if(E.value.bounds.Yc(x)&&(a++,2a.network.vertexes.count)return!1;for(a.ah=a.network.vertexes.Fa(),a=a.ah,a.sort(function(x,E){return x===null||E===null||x===E?0:E.Vd-x.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1=tt))){for(var at=ot=0,ut=rt.count-tt;utyt&&(yt=1),ot=Jt.sqrt((ot+yt+at*at*4/(tt*tt))/yt),tt=(ot-1)*ut/2,ot=(ot-1)*ft/2,b.bounds=new ce(z-mt.x-tt,rt-mt.y-ot,ut+2*tt,ft+2*ot),b.focus=new jt(mt.x+tt,mt.y+ot)}}return a.network=E,x}function OS(a,y){for(var x=a.network.vertexes.iterator;x.next();){var E=x.value;if(E.network=y,E.We!==null){var b=E.We.M(E.sv);E.Vd=b.Rs;var z=b.Sv,tt=b.Tv;E.bounds=new ce(E.centerX-z,E.centerY-tt,b.Ss,b.Qs),E.focus=new jt(z,tt),E.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function jS(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var E=y.centerX,b=y.centerY,z=y.width,tt=y.height;y.We!==null&&0=ft.Vd?rt++:(ot=!0,at++,tt+=Math.atan2(y.centerY-ft.centerY,y.centerX-ft.centerX))}if(rt!==0){for(0>1)+at)*(ot%2===0?1:-1),rt.centerX=E+ut*Math.cos(ft),rt.centerY=b+ut*Math.sin(ft),ot++}}}}function R1(a,y,x,E,b,z,tt){var ot=9e19,rt=-1,at=0;t:for(;atut.y&&a[mt].x-ut.xut.x&&a[mt].y-ut.yy+z?(x=E+b-tt,a=a-y-z,Jt.sqrt(x*x+a*a)):a+xtt+ot?a>y+z?(x=E-tt-ot,a=a-y-z,Jt.sqrt(x*x+a*a)):a+xy+z?a-(y+z):a+x=y.length)return!1;var x=y[0];x.forceX=0,x.forceY=0;for(var E=x.centerX,b=E,z=x=x.centerY,tt=1;ttz-x)?y.sort(function(Bt,Dt){return Bt===null||Dt===null||Bt===Dt?0:Bt.centerX-Dt.centerX}):y.sort(function(Bt,Dt){return Bt===null||Dt===null||Bt===Dt?0:Bt.centerY-Dt.centerY}),x=a.Zf;var at=E=ot=0;for(z=0;zx||at-rt>x){if(b)break}else if(ut-yt>x||yt-ut>x){if(!b)break}else{var At=z1(tt,mt);1>At?(E=a.randomNumberGenerator,E===null&&(a.randomNumberGenerator=E=new Am),At=E.random(),ot=E.random(),rt>at?(E=Math.abs(mt.bounds.right-tt.bounds.x),E=(1+E)*At):rtyt?(at=Math.abs(mt.bounds.bottom-tt.bounds.y),at=(1+at)*ot):rtft?(ft=a.randomNumberGenerator,ft===null&&(a.randomNumberGenerator=ft=new Am),ot=ft.random(),ft=ft.random(),E=(E>rt?1:-1)*(1+(z.width>x.width?z.width:x.width))*ot,at=(tt>ut?1:-1)*(1+(z.height>x.height?z.height:x.height))*ft):(ot=ot.stiffness*(ft-ot.length),E=(rt-E)/ft*ot,at=(ut-tt)/ft*ot),x.forceX+=E,x.forceY+=at,z.forceX-=E,z.forceY-=at;for(b=E=0;ba.epsilonDistance*a.epsilonDistance}Tr.prototype.moveVertex=function(a){var y=a.forceX,x=a.forceY,E=this.moveLimit;return y<-E?y=-E:y>E&&(y=E),x<-E?x=-E:x>E&&(x=E),a.centerX+=y,a.centerY+=x,y*y+x*x},Tr.prototype.moveFixedVertex=function(){},Tr.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},Tr.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=ar,y.toSpot=ar)}},Tr.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=ce.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,ce.free(x)}x=ce.alloc();for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;(a!==0||y!==0)&&(x.assign(b.bounds),x.x+=a,x.y+=y,b.bounds=x),b.commit()}ce.free(x)},Tr.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Tr.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},Tr.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},Tr.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},Tr.prototype.electricalFieldX=function(){return 0},Tr.prototype.electricalFieldY=function(){return 0},Tr.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},Tr.prototype.gravitationalFieldX=function(){return 0},Tr.prototype.gravitationalFieldY=function(){return 0},Tr.prototype.isFixed=function(a){return a.isFixed},fe.Object.defineProperties(Tr.prototype,{currentIteration:{get:function(){return this.An}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},arrangesToOrigin:{get:function(){return this.Bm},set:function(a){this.Bm!==a&&(this.Bm=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},maxIterations:{get:function(){return this.dl},set:function(a){this.dl!==a&&0<=a&&(this.dl=a,this.C())}},epsilonDistance:{get:function(){return this.$m},set:function(a){this.$m!==a&&0Bt&&0Bt&&0a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]tt)for(var ut=tt+1;utrt;ut--)ft=E[ut],ft.near===at&&ft.Dj===at.Dj||ot++;var mt;if(0<=x)for(rt=E[tt].sourceEdgesArrayAccess,at=0;atBt||ft===Bt&&yt>At)&&ot++,Dtft||Bt===ft&&At>yt)&&ot++}}}if(0>=x){for(rt=E[tt].destinationEdgesArrayAccess,at=0;atBt||ft===Bt&&ut>Dt)&&ot++,Atft||Bt===ft&&Dt>ut)&&ot++)}for(z[tt*b+tt]=ot,rt=tt+1;rt=x){for(ot=E[tt].destinationEdgesArrayAccess,zt=E[rt].destinationEdgesArrayAccess,at=0;at=x&&(rt=ot.sourceEdgesArrayAccess);var at=null;0<=x&&(at=ot.destinationEdgesArrayAccess);var ut=0,ft=0,mt=ot.near;if(mt!==null&&mt.layer===ot.layer&&(ut+=mt.column-1,ft++),rt!==null)for(mt=0;mt=x&&(rt=ot.sourceEdgesArrayAccess);var at=null;0<=x&&(at=ot.destinationEdgesArrayAccess);var ut=0,ft=[],mt=ot.near;if(mt!==null&&mt.layer===ot.layer&&(ft[ut]=mt.column-1,ut++),ot=void 0,rt!==null)for(mt=0;mt>1,z[tt]=ut&1?ft[at]:ft[at-1]+ft[at]>>1)}return Uh(a,y,E),z}function mp(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var tt=y.destinationEdges;tt.next();){var ot=tt.value,rt=ot.toVertex,at=y.layer-rt.layer;ot=a.linkMinLength(ot),at===ot&&mp(a,rt,x,E,b,z)}if(z)for(tt=y.sourceEdges;tt.next();)ot=tt.value,rt=ot.fromVertex,at=rt.layer-y.layer,ot=a.linkMinLength(ot),at===ot&&mp(a,rt,x,E,b,z)}}function my(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var tt=y.destinationEdges;tt.next();)my(a,tt.value.toVertex,x,E,b,z);if(z)for(y=y.sourceEdges;y.next();)my(a,y.value.fromVertex,x,E,b,z)}}Pi.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case Ay:a=this.network;var y=0,x=a.vertexes.count-1,E=[];E.length=x+1;for(var b=a.vertexes.iterator;b.next();)b.value.valid=!0;for(;zS(a)!==null;){for(b=X1(a);b!==null;)E[x]=b,x--,b.valid=!1,b=X1(a);for(b=W1(a);b!==null;)E[y]=b,y++,b.valid=!1,b=W1(a);b=null;for(var z=0,tt=this.network.vertexes.iterator;tt.next();){var ot=tt.value;if(ot.valid){for(var rt=0,at=ot.destinationEdges;at.next();)at.value.toVertex.valid&&rt++;at=0;for(var ut=ot.sourceEdges;ut.next();)ut.value.fromVertex.valid&&at++;(b===null||zy.toVertex.index&&(a.gm(y),y.rev=!0);break;case Cm:for(E=this.network.vertexes.iterator;E.next();)a=E.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,E.reset();E.next();)y=E.value,y.sourceEdges.count===0&&vy(this,y);for(E.reset();E.next();)y=E.value,y.Ll===-1&&vy(this,y);for(a.reset();a.next();)E=a.value,E.forest||(y=E.fromVertex,x=y.finish,b=E.toVertex,z=b.finish,b.LlE){if(0>E)for(y.reset();y.next();)y.value.layer-=E;for(E=[],y.reset();y.next();)x=y.value,b=E[x.layer],b===void 0?E[x.layer]=[x]:b.push(x);for(x=y=0;xtt&&mp(a,ot,0,-1,!0,!1)}for(mp(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,E=1/0,ot=0,rt=null,tt=a.network.vertexes.iterator;tt.next();){var at=tt.value;if(at.component===1){var ut=0,ft=!1,mt=at.sourceEdgesArrayAccess;b=mt.length;for(var yt=0;ytz)&&!ut&&(ot=tt,z=at)}if(0>E){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer-=b);y.component=0}else ot.component=0}}}function J1(a,y,x){return a.K===90?x&&!y.rev||!x&&y.rev?270:90:a.K===180?x&&!y.rev||!x&&y.rev?0:180:a.K===270?x&&!y.rev||!x&&y.rev?90:270:x&&!y.rev||!x&&y.rev?180:0}Pi.prototype.initializeIndices=function(){switch(this.Qk){default:case wy:for(var a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;y.index=this.tc[x],this.tc[x]++}break;case Bm:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&q1(this,x);break;case Py:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&_1(this,x)}};function q1(a,y){var x=y.layer;for(y.index=a.tc[x],a.tc[x]++,y=y.destinationEdgesArrayAccess,x=!0;x;){x=!1;for(var E=0;Ez.portFromColOffset&&(x=!0,y[E]=z,y[E+1]=b)}}for(x=0;xz.portToColOffset&&(E=!0,y[x]=z,y[x+1]=b)}for(x=0;x=tt;E--)z=Fa(this,E,-1)||z;for(b=this.countCrossings(),b>=a?va(this,y):(a=b,y=Cs(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Fa(this,E,1)||z;for(b=this.countCrossings(),b>=a?va(this,y):(a=b,y=Cs(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Fa(this,E,1)||z;for(b>=a?va(this,y):(a=b,y=Cs(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Fa(this,E,-1)||z;for(b>=a?va(this,y):(a=b,y=Cs(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Fa(this,E,0)||z;for(b>=a?va(this,y):(a=b,y=Cs(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Fa(this,E,0)||z;b>=a?va(this,y):(a=b,y=Cs(this))}break;default:case Lm:for(x=this.Ia,tt=0,ot=a+1;(E=this.countCrossings())=tt;E--)z=Fa(this,E,-1)||z;for(b=this.countCrossings(),b>=a?va(this,y):(a=b,y=Cs(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Fa(this,E,1)||z;for(b=this.countCrossings(),b>=a?va(this,y):(a=b,y=Cs(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Fa(this,E,1)||z;for(b>=a?va(this,y):(a=b,y=Cs(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Fa(this,E,-1)||z;for(b>=a?va(this,y):(a=b,y=Cs(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Fa(this,E,0)||z;for(b>=a?va(this,y):(a=b,y=Cs(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Fa(this,E,0)||z;b>=a?va(this,y):(a=b,y=Cs(this))}}va(this,y)};function xm(a,y,x){var E=Gh(a,y),b=a.tc[y],z=U1(a,y,x),tt=py(a,y,x);for(x=0;xz+1&&(mt+=4*(Rt-z),yt+=4*(Rt-(z+1)))}for(Gt=E[z].destinationEdges.iterator,Gt.reset();Gt.next();)if(Rt=Gt.value,zt=Rt.toVertex,Rt.valid&&zt.layer===y){for(Rt=0;E[Rt]!==zt;)Rt++;Rt===z+1&&(yt+=1)}for(Gt=E[z+1].sourceEdges.iterator,Gt.reset();Gt.next();)if(Rt=Gt.value,zt=Rt.fromVertex,Rt.valid&&zt.layer===y){for(Rt=0;E[Rt]!==zt;)Rt++;Rtz+1&&(mt+=4*(Rt-(z+1)),yt+=4*(Rt-z))}for(Gt=E[z+1].destinationEdges.iterator,Gt.reset();Gt.next();)if(Rt=Gt.value,zt=Rt.toVertex,Rt.valid&&zt.layer===y){for(Rt=0;E[Rt]!==zt;)Rt++;Rt===z&&(mt+=1)}Rt=zt=0,Gt=tt[E[z].index];var Kt=ot[E[z].index],ie=tt[E[z+1].index],Ue=ot[E[z+1].index];Gt!==-1&&(zt+=Math.abs(Gt-At),Rt+=Math.abs(Gt-It)),Kt!==-1&&(zt+=Math.abs(Kt-At),Rt+=Math.abs(Kt-It)),ie!==-1&&(zt+=Math.abs(ie-Bt),Rt+=Math.abs(ie-Dt)),Ue!==-1&&(zt+=Math.abs(Ue-Bt),Rt+=Math.abs(Ue-Dt)),(yt>1)+8*E;this.Ra*=8}if(this.bg&2)for(x=!0;x;){for(x=!1,y=this.Md+1;y<=this.Ia;y++)x=Of(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Of(this,y,-1)||x;x=Of(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)yy(this,y,1);for(y=this.Md-1;0<=y;y--)yy(this,y,-1);yy(this,this.Md,0)}if(a&&($1(this,-1),$1(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Of(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Of(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Of(this,y,0)||x}}else US(this)};function Of(a,y,x){for(var E=!1;QS(a,y,x);)E=!0;return E}function QS(a,y,x){var E,b=Gh(a,y),z=a.tc[y],tt=py(a,y,-1);if(0x)for(E=0;EE-1||ut-b[E-1].column-1>ft+a.nodeMinColumnSpace(b[E-1],!1)?yt=ut-1:yt=ut,ft=E+1>=z||b[E+1].column-ut-1>mt+a.nodeMinColumnSpace(b[E+1],!0)?ut+1:ut;var At=mt=0,Bt=0;if(0>=x)for(var Dt=b[E].sourceEdges.iterator;Dt.next();){var It=Dt.value,Rt=It.fromVertex;if(It.valid&&Rt.layer!==y){var zt=cy(It),Gt=It.portFromColOffset;It=It.portToColOffset,Rt=Rt.column,mt+=(Math.abs(ut+It-(Rt+Gt))+1)*zt,At+=(Math.abs(yt+It-(Rt+Gt))+1)*zt,Bt+=(Math.abs(ft+It-(Rt+Gt))+1)*zt}}if(0<=x)for(Dt=b[E].destinationEdges.iterator;Dt.next();)It=Dt.value,Rt=It.toVertex,It.valid&&Rt.layer!==y&&(zt=cy(It),Gt=It.portFromColOffset,It=It.portToColOffset,Rt=Rt.column,mt+=(Math.abs(ut+Gt-(Rt+It))+1)*zt,At+=(Math.abs(yt+Gt-(Rt+It))+1)*zt,Bt+=(Math.abs(ft+Gt-(Rt+It))+1)*zt);It=Gt=zt=0,Dt=tt[b[E].index],Rt=ot[b[E].index],Dt!==-1&&(zt+=Math.abs(Dt-ut),Gt+=Math.abs(Dt-yt),It+=Math.abs(Dt-ft)),Rt!==-1&&(zt+=Math.abs(Rt-ut),Gt+=Math.abs(Rt-yt),It+=Math.abs(Rt-ft)),At=tt[x]?ut=rt:at<=tt[x]&&(ut=at));ut!==ot&&(z=!0,E[x].column=ut)}Uh(a,y,E),a.normalize()}function HS(a,y){for(var x=!0,E=a.network.vertexes.iterator;E.next();){var b=E.value,z=a.nodeMinColumnSpace(b,!0),tt=a.nodeMinColumnSpace(b,!1);if(b.column-z<=y&&b.column+tt>=y){x=!1;break}}if(a=!1,x)for(E.reset();E.next();)x=E.value,x.column>y&&(--x.column,a=!0);return a}function GS(a,y){var x=y+1,E,b=[],z=[];for(E=0;E<=a.Ia;E++)b[E]=!1,z[E]=!1;for(var tt=a.network.vertexes.iterator;tt.next();){E=tt.value;var ot=E.column-a.nodeMinColumnSpace(E,!0),rt=E.column+a.nodeMinColumnSpace(E,!1);ot<=y&&rt>=y&&(b[E.layer]=!0),ot<=x&&rt>=x&&(z[E.layer]=!0)}for(ot=!0,x=!1,E=0;E<=a.Ia;E++)ot=ot&&!(b[E]&&z[E]);if(ot)for(tt.reset();tt.next();)a=tt.value,a.column>y&&(--a.column,x=!0);return x}function $1(a,y){for(var x=0;x<=a.Ra;x++)for(;HS(a,x););for(a.normalize(),x=0;xz?va(a,b):tty)for(x=a.Ra;0<=x;x--)for(b=Cs(a),z=Sm(a),E=z+1;zz?va(a,b):ttx)for(E.reset();E.next();)b=E.value,b.column+a.nodeMinColumnSpace(b,!1)>=y&&(b.component=a.le);for(a.le++,E.reset();E.next();)y=E.value,y.component===-1&&(my(a,y,a.le,-1,!0,!0),a.le++);var z;for(y=[],z=0;zx)for(tt=a.Ra;0x)for(E.reset();E.next();)x=E.value,b[x.component]&&(x.column+=1)}function US(a){for(var y=Jn(),x=a.fl.length,E=0;E<=x;E++)y[E]=[];for(E=a.network.vertexes.iterator;E.next();){var b=E.value;y[x-b.layer][b.index]=b}x=new ze,XS(y,x);var z=null,tt=null,ot=null,rt=null,at=(a.ve&1)!==0,ut=(a.ve&2)!==0,ft=(a.ve&4)!==0,mt=(a.ve&8)!==0;for(at&&(a.verticalAlignment(y,x,!0),z=Pm(a,y,!0,!1)),y.reverse(),ft&&(a.verticalAlignment(y,x,!1),ot=Pm(a,y,!1,!1)),E=Mi(y),b=E.next();!b.done;b=E.next())b.value.reverse();mt&&(a.verticalAlignment(y,x,!1),rt=Pm(a,y,!1,!0)),y.reverse(),ut&&(a.verticalAlignment(y,x,!0),tt=Pm(a,y,!0,!0)),ei(y),a.u(z,tt,ot,rt),a.network.vertexes.each(function(yt){var At=Jn();at&&At.push(z.get(yt)),ut&&At.push(tt.get(yt)),ft&&At.push(ot.get(yt)),mt&&At.push(rt.get(yt)),At.sort(function(Dt,It){return Dt-It});var Bt=At.length;Bt=(At[Math.floor((Bt-1)/2)]+At[Math.ceil((Bt-1)/2)])/2,ei(At),yt.zc=Bt})}function XS(a,y){for(var x=a.length,E=1;Eut)&&y.add(ft);z++}b=ut}}}Pi.prototype.verticalAlignment=function(a,y,x){WS(a),a=Mi(a);for(var E=a.next();!E.done;E=a.next()){var b=-1;E=Mi(E.value);for(var z=E.next();!z.done;z=E.next()){z=z.value;var tt=x?By(z):YS(z),ot=tt.length;if(0=y[x].length)&&(tt=y[x][0],tt.sd===tt)){tt.sd.shift===1/0&&(tt.sd.shift=0),tt=x,ot=0;do{for(z=y[tt][ot];z.align!==z.root;)z=z.align,tt++,0a&&ee("Could not determine previous vertex in layer"),y[x][a-1]}Pi.prototype.u=function(a){for(var y=[],x=0;xtt;tt++)if(y[tt]){var ot=VS(this,y[tt],E,b,tt);ottt;z={delta:z.delta},tt++)y[tt]&&(z.delta=tt===0||tt===2?E[x]-E[tt]:b[x]-b[tt],z.delta!==0&&y[tt].each(function(rt){return function(at){at.value+=rt.delta}}(z)));ei(E),ei(b)};function VS(a,y,x,E,b){if(!y||y.count===0)return x[b]=0,E[b]=0,1/0;var z=1/0,tt=-1/0;return y.each(function(ot){var rt=ot.key;ot=ot.value,rt=a.K===90||a.K===270?rt.width:rt.height,ottt&&(tt=ot+rt)}),x[b]=z,E[b]=tt,tt-z}Pi.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=wm(this,!0),y=wm(this,!1),x=this.network.edges.iterator;x.next();){var E=x.value.link;E!==null&&(E.fromSpot=a,E.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function wm(a,y){return a.K===270?y?jr:Er:a.K===90?y?Er:jr:a.K===180?y?vs:Mr:y?Mr:vs}Pi.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var a=0;a<=this.Ia;a++)this.he[a]=0,this.Ld[a]=0,this.Kd[a]=0,this.Ta[a]=0;for(a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;this.he[x]=Math.max(this.he[x],this.nodeMinLayerSpace(y,!0)),this.Ld[x]=Math.max(this.Ld[x],this.nodeMinLayerSpace(y,!1))}y=0,x=this.ie;for(var E=0;E<=this.Ia;E++){var b=x;0>=this.he[E]+this.Ld[E]&&(b=0),0=ft.bounds.bottom?(ft=ft.bounds.y+ft.bounds.height,y.m(Bt++,Gt,ft+ie),y.m(Bt++,Gt,ft),y.m(Bt++,Gt,ft-zt)):(y.m(Bt++,Gt,Kt+ie),y.m(Bt++,Gt,Kt),y.m(Bt++,Gt,Kt-zt)):this.K===270?Kt<=ft.bounds.y?(ft=ft.bounds.y,y.m(Bt++,Gt,ft-zt),y.m(Bt++,Gt,ft),y.m(Bt++,Gt,ft+ie)):(y.m(Bt++,Gt,Kt-zt),y.m(Bt++,Gt,Kt),y.m(Bt++,Gt,Kt+ie)):this.K===0&&(Gt>=ft.bounds.right?(ft=ft.bounds.x+ft.bounds.width,y.m(Bt++,ft+ie,Kt),y.m(Bt++,ft,Kt),y.m(Bt++,ft-zt,Kt)):(y.m(Bt++,Gt+ie,Kt),y.m(Bt++,Gt,Kt),y.m(Bt++,Gt-zt,Kt)));else{y.m(Bt++,It,Rt);var Ue=0;this.K===180||this.K===0?((this.K===180?Gt>=ft.bounds.right:Gt<=ft.bounds.x)&&(Ue=(this.K===0?-zt:ie)/2),y.m(Bt++,It+Ue,Kt)):((this.K===270?Kt>=ft.bounds.bottom:Kt<=ft.bounds.y)&&(Ue=(this.K===90?-zt:ie)/2),y.m(Bt++,Gt,Rt+Ue)),y.m(Bt++,Gt,Kt)}}else zt=Math.max(10,this.he[Dt.layer]),ie=Math.max(10,this.Ld[Dt.layer]),mt?this.K===180?(y.m(Bt++,Gt-zt-At,Kt),y.m(Bt++,Math.min(Gt-zt+At/2,Gt),Kt),y.m(Bt++,Gt,Kt),y.m(Bt++,Gt,Kt),y.m(Bt++,Math.max(Gt+ie-At/2,Gt),Kt),y.m(Bt++,Gt+ie+At,Kt)):this.K===90?(y.m(Bt++,Gt,Kt+ie+At),y.m(Bt++,Gt,Math.max(Kt+ie-At/2,Kt)),y.m(Bt++,Gt,Kt),y.m(Bt++,Gt,Kt),y.m(Bt++,Gt,Math.min(Kt-zt+At/2,Kt)),y.m(Bt++,Gt,Kt-zt-At)):this.K===270?(y.m(Bt++,Gt,Kt-zt-At),y.m(Bt++,Gt,Math.min(Kt-zt+At/2,Kt)),y.m(Bt++,Gt,Kt),y.m(Bt++,Gt,Kt),y.m(Bt++,Gt,Math.max(Kt+ie-At/2,Kt)),y.m(Bt++,Gt,Kt+ie+At)):(y.m(Bt++,Gt+ie+At,Kt),y.m(Bt++,Math.max(Gt+ie-At/2,Gt),Kt),y.m(Bt++,Gt,Kt),y.m(Bt++,Gt,Kt),y.m(Bt++,Math.min(Gt-zt+At/2,Gt),Kt),y.m(Bt++,Gt-zt-At,Kt)):y.m(Bt++,Gt,Kt)}ft=Dt}(ot===null||at!==er||yt)&&(It=y.i(Bt-1).x,Rt=y.i(Bt-1).y,Gt=y.i(Bt).x,Kt=y.i(Bt).y,yt?(At=this.Ld[ut.layer],this.K===180||this.K===0?(yt=Rt,yt>=ut.bounds.y&&yt<=ut.bounds.bottom&&(this.K===180?Gt>=ut.bounds.x:Gt<=ut.bounds.right)&&(ft=ut.centerX+(this.K===180?-At:At),yt=ut.bounds.x&&yt<=ut.bounds.right&&(this.K===270?Kt>=ut.bounds.y:Kt<=ut.bounds.bottom)&&(ft=ut.centerY+(this.K===270?-At:At),yt=ut.bounds.x?(ft=ut.bounds.x+ut.bounds.width,y.L(Bt-2,ft,Rt),y.L(Bt-1,ft+ie,Rt)):this.K===90&&Kt<=ut.bounds.bottom?(ft=ut.bounds.y,y.L(Bt-2,It,ft),y.L(Bt-1,It,ft-zt)):this.K===270&&Kt>=ut.bounds.y?(ft=ut.bounds.y+ut.bounds.height,y.L(Bt-2,It,ft),y.L(Bt-1,It,ft+ie)):this.K===0&&Gt<=ut.bounds.right&&(ft=ut.bounds.x,y.L(Bt-2,ft,Rt),y.L(Bt-1,ft-zt,Rt))):(zt=Math.max(10,this.he[ut.layer]),ie=Math.max(10,this.Ld[ut.layer]),yt=0,this.K===180||this.K===0?((this.K===180?Gt<=ut.bounds.x:Gt>=ut.bounds.right)&&(yt=(this.K===0?ie:-zt)/2),y.m(Bt++,Gt+yt,Rt)):((this.K===270?Kt<=ut.bounds.y:Kt>=ut.bounds.bottom)&&(yt=(this.K===90?ie:-zt)/2),y.m(Bt++,It,Kt+yt)),y.m(Bt++,Gt,Kt)))}else{for(;ut!==null&&ut!==ft;){for(zt=Dt=null,ut=ut.destinationEdges.iterator;ut.next()&&(It=ut.value,It.link!==x.link||(Dt=It.toVertex,zt=It.fromVertex,zt.node!==null&&(zt=null),Dt.node!==null)););if(Dt===null)break;Dt!==ft&&(It=y.i(Bt-1).x,Rt=y.i(Bt-1).y,Gt=Dt.centerX,Kt=Dt.centerY,yt?this.K===180||this.K===0?(zt!==null?zt.centerY:Rt)!==Kt&&(zt=this.Ta[Dt.layer]+this.Rf.x,Bt===y.firstPickIndex+1&&(zt=this.K===0?Math.max(zt,It):Math.min(zt,It)),y.m(Bt++,zt,Rt),y.m(Bt++,zt,Kt)):(zt!==null?zt.centerX:It)!==Gt&&(zt=this.Ta[Dt.layer]+this.Rf.y,Bt===y.firstPickIndex+1&&(zt=this.K===90?Math.max(zt,Rt):Math.min(zt,Rt)),y.m(Bt++,It,zt),y.m(Bt++,Gt,zt)):(zt=Math.max(10,this.he[Dt.layer]),ie=Math.max(10,this.Ld[Dt.layer]),mt?this.K===180?(y.m(Bt++,Gt+ie+At,Kt),y.m(Bt++,Math.max(Gt+ie-At/2,Gt),Kt),y.m(Bt++,Gt,Kt),y.m(Bt++,Gt,Kt),y.m(Bt++,Math.min(Gt-zt+At/2,Gt),Kt),y.m(Bt++,Gt-zt-At,Kt)):this.K===90?(y.m(Bt++,Gt,Kt-zt-At),y.m(Bt++,Gt,Math.min(Kt-zt+At/2,Kt)),y.m(Bt++,Gt,Kt),y.m(Bt++,Gt,Kt),y.m(Bt++,Gt,Math.max(Kt+ie-At/2,Kt)),y.m(Bt++,Gt,Kt+ie+At)):this.K===270?(y.m(Bt++,Gt,Kt+ie+At),y.m(Bt++,Gt,Math.max(Kt+ie-At/2,Kt)),y.m(Bt++,Gt,Kt),y.m(Bt++,Gt,Kt),y.m(Bt++,Gt,Math.min(Kt-zt+At/2,Kt)),y.m(Bt++,Gt,Kt-zt-At)):(y.m(Bt++,Gt-zt-At,Kt),y.m(Bt++,Math.min(Gt-zt+At/2,Gt),Kt),y.m(Bt++,Gt,Kt),y.m(Bt++,Gt,Kt),y.m(Bt++,Math.max(Gt+ie-At/2,Gt),Kt),y.m(Bt++,Gt+ie+At,Kt)):this.K===180?(y.m(Bt++,Gt+ie,Kt),y.m(Bt++,Gt-zt,Kt)):this.K===90?(y.m(Bt++,Gt,Kt-zt),y.m(Bt++,Gt,Kt+ie)):this.K===270?(y.m(Bt++,Gt,Kt+ie),y.m(Bt++,Gt,Kt-zt)):(y.m(Bt++,Gt-zt,Kt),y.m(Bt++,Gt+ie,Kt)))),ut=Dt}yt&&(It=y.i(Bt-1).x,Rt=y.i(Bt-1).y,Gt=y.i(Bt).x,Kt=y.i(Bt).y,this.K===180||this.K===0?Rt!==Kt&&(zt=this.K===0?Math.min(Math.max((Gt+It)/2,this.Ta[ft.layer]+this.Rf.x),Gt):Math.max(Math.min((Gt+It)/2,this.Ta[ft.layer]+this.Rf.x),Gt),y.m(Bt++,zt,Rt),y.m(Bt++,zt,Kt)):It!==Gt&&(zt=this.K===90?Math.min(Math.max((Kt+Rt)/2,this.Ta[ft.layer]+this.Rf.y),Kt):Math.max(Math.min((Kt+Rt)/2,this.Ta[ft.layer]+this.Rf.y),Kt),y.m(Bt++,It,zt),y.m(Bt++,Gt,zt)))}E!==null&&mt&&4<=y.pointsCount&&(tt!==null&&(tt=at===er?y.getLinkPointFromPoint(b,tt,tt.ga(pi),y.i(3),!0):y.i(0),at===er&&(at=y.i(2),E=y.i(3),this.direction===90||this.direction===270?(y.L(1,(tt.x+at.x)/2,at.y),y.L(2,E.x,(at.y+E.y)/2)):(y.L(1,at.x,(tt.y+at.y)/2),y.L(2,(at.x+E.x)/2,E.y))),tt.w()||tt.set(b.actualBounds.center),y.L(0,tt.x,tt.y)),ot!==null&&(b=rt===er?y.getLinkPointFromPoint(z,ot,ot.ga(pi),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),rt===er&&(ot=y.i(y.pointsCount-3),rt=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(b.x+ot.x)/2,ot.y),y.L(y.pointsCount-2,rt.x,(ot.y+rt.y)/2)):(y.L(y.pointsCount-2,ot.x,(b.y+ot.y)/2),y.L(y.pointsCount-3,(ot.x+rt.x)/2,rt.y))),b.w()||b.set(z.actualBounds.center),y.L(y.pointsCount-1,b.x,b.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},Pi.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new He,y=this.network.edges.iterator;y.next();){var x=y.value.link;x!==null&&x.isOrthogonal&&!a.contains(x)&&a.add(x)}if(0z.y&&(ut=at.y>z.y?0:tt.xz.x&&(ut=at.x>z.x?0:tt.yy.layer?1:a.rdy.rd?1:a.Icy.Ic?1:0:0},Pt.Ux=function(a,y){return a instanceof Xh&&y instanceof Xh&&a!==y?a.firsty.first||a.jy.j||a.rdy.rd?1:a.Icy.Ic?1:0:0},Pt.Js=function(a,y){return a instanceof Xh&&y instanceof Xh&&a!==y?a.jcy.jc||a.jy.j||a.rdy.rd?1:a.Icy.Ic?1:0:0},Pt.B=function(a,y){return a-=y,-1a},Pt.zi=function(a,y,x,E){var b=a.length,z=E-x;if(!(1>=z))if((0>x||x>=b-1)&&ee("not in range 0 <= from < length: "+x),z===2)E=a[x],b=a[x+1],0=b)a.sort(y);else for(x=a.slice(0,E),x.sort(y),y=0;y=b)for(E=a.slice(x),E.sort(y),y=x;y=a.He.length){for(var E=[],b=0;ba&&(this.bg=a,this.C())}},alignOption:{get:function(){return this.ve},set:function(a){this.ve!==a&&0<=a&&16>a&&(this.ve=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(a){this.Cn!==a&&0<=a&&(this.Cn=a,this.C())}},maxLayer:{get:function(){return this.Ia}},maxIndex:{get:function(){return this.Iq}},maxColumn:{get:function(){return this.Ra}},minIndexLayer:{get:function(){return this.Hn}},maxIndexLayer:{get:function(){return this.Md}}});var Cm=new Ee(Pi,"CycleDepthFirst",0),Ay=new Ee(Pi,"CycleGreedy",1),vp=new Ee(Pi,"CycleFromLayers",2),Em=new Ee(Pi,"LayerOptimalLinkLength",0),Sy=new Ee(Pi,"LayerLongestPathSink",1),xy=new Ee(Pi,"LayerLongestPathSource",2),Bm=new Ee(Pi,"InitDepthFirstOut",0),Py=new Ee(Pi,"InitDepthFirstIn",1),wy=new Ee(Pi,"InitNaive",2),Cy=new Ee(Pi,"AggressiveNone",0),Lm=new Ee(Pi,"AggressiveLess",1),Ey=new Ee(Pi,"AggressiveMore",2),KS=8;Pi.className="LayeredDigraphLayout",Pi.CycleDepthFirst=Cm,Pi.CycleGreedy=Ay,Pi.CycleFromLayers=vp,Pi.LayerOptimalLinkLength=Em,Pi.LayerLongestPathSink=Sy,Pi.LayerLongestPathSource=xy,Pi.InitDepthFirstOut=Bm,Pi.InitDepthFirstIn=Py,Pi.InitNaive=wy,Pi.AggressiveNone=Cy,Pi.AggressiveLess=Lm,Pi.AggressiveMore=Ey,Pi.PackNone=0,Pi.PackExpand=1,Pi.PackStraighten=2,Pi.PackMedian=4,Pi.PackAll=15,Pi.AlignNone=0,Pi.AlignUpperLeft=1,Pi.AlignUpperRight=2,Pi.AlignLowerLeft=4,Pi.AlignLowerRight=8,Pi.AlignAll=15;function Xh(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}Xh.className="SegInfo";function jf(a){Ti.call(this,a)}Ae(jf,Ti),jf.prototype.createVertex=function(){return new ya(this)},jf.prototype.createEdge=function(){return new yp(this)},jf.className="LayeredDigraphNetwork";function ya(a){Yo.call(this,a),this.$n=this.bo=this.ao=this.co=null,this.Za=this.Ag=this.Ig=-1,this.u=NaN,this.F=null,this.valid=!1,this.finish=this.Ll=NaN,this.Dj=0,this.dv=this.ev=null}Ae(ya,Yo);function iS(a,y){return a.index-y.index}function Mm(a,y){if(!a.$n){for(var x=[],E=Mi(a.destinationEdgesArrayAccess),b=E.next();!b.done;b=E.next())b=b.value,b.valid&&x.push(b);a.$n=x}for(a=Mi(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;ee("Unable to find destination edge to given vertex")}function By(a){if(!a.co){for(var y=[],x=Mi(a.sourceEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.fromVertex);y.sort(iS),a.co=y}return a.co}function YS(a){if(!a.ao){for(var y=[],x=Mi(a.destinationEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.toVertex);y.sort(iS),a.ao=y}return a.ao}ya.prototype.Cl=function(a){Yo.prototype.Cl.call(this,a),this.bo=this.co=null},ya.prototype.Kl=function(a){Yo.prototype.Kl.call(this,a),this.bo=this.co=null},ya.prototype.zl=function(a){Yo.prototype.zl.call(this,a),this.$n=this.ao=null},ya.prototype.Jl=function(a){Yo.prototype.Jl.call(this,a),this.$n=this.ao=null},fe.Object.defineProperties(ya.prototype,{layer:{get:function(){return this.Ig},set:function(a){this.Ig!==a&&(this.Ig=a)}},column:{get:function(){return this.Ag},set:function(a){this.Ag!==a&&(this.Ag=a)}},index:{get:function(){return this.Za},set:function(a){this.Za!==a&&(this.Za=a)}},component:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},near:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),ya.prototype.deleteDestinationEdge=ya.prototype.Jl,ya.prototype.addDestinationEdge=ya.prototype.zl,ya.prototype.deleteSourceEdge=ya.prototype.Kl,ya.prototype.addSourceEdge=ya.prototype.Cl,ya.className="LayeredDigraphVertex";function yp(a){Us.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Ae(yp,Us),fe.Object.defineProperties(yp.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},valid:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},rev:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},forest:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},portFromPos:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},portToPos:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},portFromColOffset:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},portToColOffset:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),yp.className="LayeredDigraphEdge";function Xn(a){_i.call(this),this.Ub=new ze,this.Wn=Nm,this.ud=Wl,this.vo=Dm,this.Bq=jy,this.$v=[],this.td=!0,this.Rb=bm,this.$d=new We(10,10).freeze();var y=new Eg(this);this.W=new Na(y),this.Y=new Na(y),this.ru=[],a&&Object.assign(this,a)}Ae(Xn,_i),Xn.prototype.cloneProtected=function(a){_i.prototype.cloneProtected.call(this,a),a.Wn=this.Wn,a.vo=this.vo,a.Bq=this.Bq,a.td=this.td,a.Rb=this.Rb,a.$d.assign(this.$d),a.W.copyInheritedPropertiesFrom(this.W),a.Y.copyInheritedPropertiesFrom(this.Y)},Xn.prototype.qb=function(a){a.classType===Xn?a.name.indexOf("Alignment")===0?this.alignment=a:a.name.indexOf("Arrangement")===0?this.arrangement=a:a.name.indexOf("Compaction")===0?this.compaction=a:a.name.indexOf("Path")===0?this.path=a:a.name.indexOf("Sorting")===0?this.sorting=a:a.name.indexOf("Style")===0?this.treeStyle=a:ee("Unknown enum value: "+a):_i.prototype.qb.call(this,a)},Xn.prototype.createNetwork=function(){return new Eg(this)},Xn.prototype.makeNetwork=function(a){function y(E){if(E instanceof Xe)return!E.isLinkLabel&&E.category!=="Comment";if(E instanceof Ne){var b=E.fromNode;return b===null||b.isLinkLabel||b.category==="Comment"?!1:(E=E.toNode,!(E===null||E.isLinkLabel||E.category==="Comment"))}return!1}var x=this.createNetwork();return a instanceof oe?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof Bn?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},Xn.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==Om&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof oe&&(y=a),this.path===Nm&&y!==null?this.ud=y.isTreePathToChildren?Wl:wg:this.ud=this.path===Nm?Wl:this.path,0y.level)return!1;a.removeChild(x.parent,x)}return!0}Xn.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,E=0,b=0;bb?hS(this,a,tt,yn,It,Rt):dS(this,a,tt,yn,It,Rt),yn=Rt.x,It=Rt.width,Rt=Rt.height;break;case th:for(Gt=0;Gtft&&(tnhr&&(Pg(a,-hr,0,Cn,di-1),Fm(Gt,-hr,0),Fm(Kt,-hr,0),hr=0)}ki.S.h(hr,Ye),It=Math.max(It,ie),Rt=Math.max(Rt,zt+(Fe===0?0:At)+rr.height),tn=ie}else 0ft&&(Yehr&&(Pg(a,0,-hr,Cn,di-1),Fm(Gt,0,-hr),Fm(Kt,0,-hr),hr=0)),ki.S.h(tn,hr),Rt=Math.max(Rt,Ue),It=Math.max(It,zt+(Fe===0?0:At)+rr.width),Ye=Ue;ye++}switch(0at&&(at=0),135Bt&&(Bt=0),rt===cu&&(ot+=mt/2+a.focus.y),tt+=E+x):y?(a.comments===null?E>It&&(It=Fy(rt,E-It,0),tt=It.x,ot=It.y,It=E,at=0):It=ky(a,It,at),0>at&&(tt-=at,at=0),135Rt&&(Rt=Fy(rt,0,Dt-Rt),tt=Rt.x,ot=Rt.y,Rt=Dt,Bt=0):Rt=Iy(a,Rt,Bt),0>Bt&&(ot-=Bt,Bt=0),tt+=E+x),0b[0].x?b[2].assign(b[1]):b[1].assign(b[2])),b[3].yb[0].x?b[3].assign(b[2]):b[2].assign(b[3])),Fe[0].h(at+E,0),Fe[1].h(Fe[0].x,Dt),Fe[2].yb[0].y?b[2].assign(b[1]):b[1].assign(b[2])),b[3].xb[0].y?b[3].assign(b[2]):b[2].assign(b[3])),Fe[0].h(0,Bt+Dt),Fe[1].h(E,Fe[0].y),Fe[2].xE?hS(a,y,b,ye,zt,Gt):dS(a,y,b,ye,zt,Gt),ye=Gt.x,zt=Gt.width,Gt=Gt.height;break;case th:for(mt=0;mtmt&&(iemt&&(Ueft&&(ft=0),135It&&(It=0)),y.la.h(ft,It),y.Da.h(zt,Gt)}}Xn.prototype.customAlignment=function(a,y,x,E,b){return[y,x,E,b]};function hS(a,y,x,E,b,z){var tt=x.length;if(tt===0)return new ce(E,0,b,z);if(tt===1)return y=x[0],b=y.Da.width,z=y.Da.height,new ce(E,0,b,z);for(var ot=y.nodeSpacing,rt=y.rowSpacing,at=Za(y)===90,ut=0,ft=0,mt=0,yt=0;ytat&&(b-=at),z=Math.max(z,Math.max(yt,mt)+a+tt.height),0>x.S.x&&(E=km(y,x.S.x,!1,E,ot))):(x.S.h(b+a,E+ot/2-x.focus.y-x.la.y),b=Math.max(b,Math.max(At,ft)+a+tt.width),mt=E+ot/2-x.focus.y-x.la.y,z=Math.max(z,mt+tt.height),0>mt&&(z-=mt),0>x.S.y&&(E=km(y,x.S.y,!0,E,ot)))),new ce(E,0,b,z)}function dS(a,y,x,E,b,z){var tt=x.length;if(tt===0)return new ce(E,0,b,z);if(tt===1)return x=x[0],b=x.Da.width,z=x.Da.height,new ce(E,0,b,z);for(var ot=y.nodeSpacing,rt=y.rowSpacing,at=Za(y)===270,ut=0,ft=0,mt=0,yt=0;ytft&&(b-=ft),z=Math.max(z,Math.abs(Math.min(yt,mt))+a+ut.height),0>rt.S.x&&(E=km(y,rt.S.x,!1,E,ot))):(rt.S.h(-b-ut.width-a,E+ot/2-rt.focus.y-rt.la.y),b=Math.max(b,Math.abs(Math.min(At,ft))+a+ut.width),mt=E+ot/2-rt.focus.y-rt.la.y,z=Math.max(z,mt+ut.height),0>mt&&(z-=mt),0>rt.S.y&&(E=km(y,rt.S.y,!0,E,ot)))),y=0;yy&&(y=x+a.width),0>x&&(y-=x),y;case Vl:return a.width>y?a.width:y;case Kl:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case $u:case Yl:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case th:return a.width-a.focus.x+a.nodeSpacing/2+y;case cu:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function Iy(a,y,x){switch(a.alignment){case Cg:case zf:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Vl:return a.height>y?a.height:y;case Kl:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case $u:case Yl:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case th:return a.height-a.focus.y+a.nodeSpacing/2+y;case cu:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Fy(a,y,x){switch(a){case zf:y/=2,x/=2;break;case Cg:y/=2,x/=2;break;case Vl:x=y=0;break;case Kl:break;default:ee("Unhandled alignment value "+a.toString())}return new jt(y,x)}function Nd(a,y,x,E,b,z){y=Fy(y,x,E),Pg(a,y.x,y.y,b,z)}function Pg(a,y,x,E,b){if(y!==0||x!==0)for(a=a.children;E<=b;E++){var z=a[E].S;z.x+=y,z.y+=x}}function Im(a,y,x,E){var b=y.parent;switch(a.ud){case Wl:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===b&&y.relativePoint.h(x,E);break;case wg:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===b&&y.relativePoint.h(x,E);break;default:ee("Unhandled path value "+a.ud.toString())}}function Fm(a,y,x){for(var E=0;Eft.length||yt===null||2>yt.length))for(b=x=0;xat&&z.yz.y&&aty.length||x===null||2>x.length)E=null;else{for(ut=Fs(a,y.length+x.length),E=z=rt=0;zrt;)at=x[z++],ut[E++].h(at.x+b,at.y);for(x=Fs(a,E),rt=0;rtft.length||z===null||2>z.length)b=null;else{for(ut=Fs(a,ft.length+z.length),b=at=x=0;xz;)rt=ft[x++],ut[b++].h(rt.x,rt.y);for(z=Fs(a,b),x=0;xft.length||yt===null||2>yt.length))for(b=x=0;xrt&&z.xz.x&&rty.length||x===null||2>x.length)E=null;else{for(ut=Fs(a,y.length+x.length),E=z=rt=0;zrt;)at=x[z++],ut[E++].h(at.x,at.y+b);for(x=Fs(a,E),rt=0;rtft.length||z===null||2>z.length)b=null;else{for(ut=Fs(a,ft.length+z.length),b=at=x=0;xz;)rt=ft[x++],ut[b++].h(rt.x,rt.y);for(z=Fs(a,b),x=0;x=a?0:135>=a?90:225>=a?180:315>=a?270:0}Xn.prototype.computeLayerSpacing=function(a){var y=Za(a);y=y===90||y===270;var x=a.layerSpacing;if(0=a&&(this.W.nodeIndentPastParent=a,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(a){this.W.nodeSpacing!==a&&(this.W.nodeSpacing=a,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(a){this.W.layerSpacing!==a&&(this.W.layerSpacing=a,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(a){this.W.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.W.layerSpacingParentOverlap=a,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(a){this.W.compaction===a||a!==Tm&&a!==wp||(this.W.compaction=a,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(a){this.W.breadthLimit!==a&&0<=a&&(this.W.breadthLimit=a,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(a){this.W.rowSpacing!==a&&(this.W.rowSpacing=a,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(a){this.W.rowIndent!==a&&0<=a&&(this.W.rowIndent=a,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(a){this.W.commentSpacing!==a&&(this.W.commentSpacing=a,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(a){this.W.commentMargin!==a&&(this.W.commentMargin=a,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(a){this.W.setsPortSpot!==a&&(this.W.setsPortSpot=a,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(a){this.W.portSpot.D(a)||(this.W.portSpot=a,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(a){this.W.setsChildPortSpot!==a&&(this.W.setsChildPortSpot=a,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(a){this.W.childPortSpot.D(a)||(this.W.childPortSpot=a,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(a){this.Y.sorting===a||a!==Rf&&a!==Sp&&a!==xp&&!Pp||(this.Y.sorting=a,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(a){this.Y.comparer!==a&&(this.Y.comparer=a,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(a){this.Y.angle===a||a!==0&&a!==90&&a!==180&&a!==270||(this.Y.angle=a,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(a){this.Y.alignment!==a&&(this.Y.alignment=a,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(a){this.Y.nodeIndent!==a&&0<=a&&(this.Y.nodeIndent=a,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(a){this.Y.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.Y.nodeIndentPastParent=a,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(a){this.Y.nodeSpacing!==a&&(this.Y.nodeSpacing=a,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(a){this.Y.layerSpacing!==a&&(this.Y.layerSpacing=a,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(a){this.Y.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.Y.layerSpacingParentOverlap=a,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(a){this.Y.compaction===a||a!==Tm&&a!==wp||(this.Y.compaction=a,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(a){this.Y.breadthLimit!==a&&0<=a&&(this.Y.breadthLimit=a,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(a){this.Y.rowSpacing!==a&&(this.Y.rowSpacing=a,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(a){this.Y.rowIndent!==a&&0<=a&&(this.Y.rowIndent=a,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(a){this.Y.commentSpacing!==a&&(this.Y.commentSpacing=a,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(a){this.Y.commentMargin!==a&&(this.Y.commentMargin=a,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(a){this.Y.setsPortSpot!==a&&(this.Y.setsPortSpot=a,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(a){this.Y.portSpot.D(a)||(this.Y.portSpot=a,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(a){this.Y.setsChildPortSpot!==a&&(this.Y.setsChildPortSpot=a,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(a){this.Y.childPortSpot.D(a)||(this.Y.childPortSpot=a,this.C())}}});var Nm=new Ee(Xn,"PathDefault",-1),Wl=new Ee(Xn,"PathDestination",0),wg=new Ee(Xn,"PathSource",1),Rf=new Ee(Xn,"SortingForwards",10),Sp=new Ee(Xn,"SortingReverse",11),xp=new Ee(Xn,"SortingAscending",12),Pp=new Ee(Xn,"SortingDescending",13),zf=new Ee(Xn,"AlignmentCenterSubtrees",20),Cg=new Ee(Xn,"AlignmentCenterChildren",21),Vl=new Ee(Xn,"AlignmentStart",22),Kl=new Ee(Xn,"AlignmentEnd",23),$u=new Ee(Xn,"AlignmentBus",24),Yl=new Ee(Xn,"AlignmentBusBranching",25),th=new Ee(Xn,"AlignmentTopLeftBus",26),cu=new Ee(Xn,"AlignmentBottomRightBus",27),Tm=new Ee(Xn,"CompactionNone",30),wp=new Ee(Xn,"CompactionBlock",31),Dm=new Ee(Xn,"StyleLayered",40),Ty=new Ee(Xn,"StyleLastParents",41),Dy=new Ee(Xn,"StyleAlternating",42),by=new Ee(Xn,"StyleRootOnly",43),bm=new Ee(Xn,"ArrangementVertical",50),Oy=new Ee(Xn,"ArrangementHorizontal",51),Om=new Ee(Xn,"ArrangementFixedRoots",52),jy=new Ee(Xn,"LayerIndividual",60),Ry=new Ee(Xn,"LayerSiblings",61),jm=new Ee(Xn,"LayerUniform",62);Xn.className="TreeLayout",Xn.PathDefault=Nm,Xn.PathDestination=Wl,Xn.PathSource=wg,Xn.SortingForwards=Rf,Xn.SortingReverse=Sp,Xn.SortingAscending=xp,Xn.SortingDescending=Pp,Xn.AlignmentCenterSubtrees=zf,Xn.AlignmentCenterChildren=Cg,Xn.AlignmentStart=Vl,Xn.AlignmentEnd=Kl,Xn.AlignmentBus=$u,Xn.AlignmentBusBranching=Yl,Xn.AlignmentTopLeftBus=th,Xn.AlignmentBottomRightBus=cu,Xn.CompactionNone=Tm,Xn.CompactionBlock=wp,Xn.StyleLayered=Dm,Xn.StyleLastParents=Ty,Xn.StyleAlternating=Dy,Xn.StyleRootOnly=by,Xn.ArrangementVertical=bm,Xn.ArrangementHorizontal=Oy,Xn.ArrangementFixedRoots=Om,Xn.LayerIndividual=jy,Xn.LayerSiblings=Ry,Xn.LayerUniform=jm;function Eg(a){Ti.call(this,a)}Ae(Eg,Ti),Eg.prototype.createVertex=function(){return new Na(this)},Eg.prototype.createEdge=function(){return new Qf(this)},Eg.className="TreeNetwork";function Na(a){Yo.call(this,a),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new jt(0,0),this.Da=new We(0,0),this.la=new jt(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=Rf,this.hd=oy,this.Kb=0,this.Jb=Cg,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=wp,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=ar,this.wr=!0,this.Dp=ar}Ae(Na,Yo),Na.prototype.copyInheritedPropertiesFrom=function(a){a!==null&&(this.nd=a.sorting,this.hd=a.comparer,this.Kb=a.angle,this.Jb=a.alignment,this.Uq=a.nodeIndent,this.Vq=a.nodeIndentPastParent,this.Wq=a.nodeSpacing,this.ie=a.layerSpacing,this.Aq=a.layerSpacingParentOverlap,this.Hp=a.compaction,this.Ap=a.breadthLimit,this.nr=a.rowSpacing,this.mr=a.rowIndent,this.Gp=a.commentSpacing,this.Fp=a.commentMargin,this.xr=a.setsPortSpot,this.dr=a.portSpot,this.wr=a.setsChildPortSpot,this.Dp=a.childPortSpot)},fe.Object.defineProperties(Na.prototype,{initialized:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},parent:{get:function(){return this.hb},set:function(a){this.hb!==a&&(this.hb=a)}},children:{get:function(){return this.u},set:function(a){if(this.u!==a){if(a!==null)for(var y=a.length,x=0;xyt.y+x.rowIndent&&(z=Math.min(z,Math.max(ft.y,z-y.computeNodeIndent(x))))):x.alignment===Vl?(z=E.top+b.y,b.y===0&&ft.yyt.x+x.rowIndent&&(z=Math.min(z,Math.max(ft.x,z-y.computeNodeIndent(x))))):x.alignment===Vl?(z=E.left+b.x,b.x===0&&ft.xyt.y+x.rowIndent&&(z=Math.min(z,Math.max(ft.y,z-y.computeNodeIndent(x))))):x.alignment===Vl?(z=E.top+b.y,b.y===0&&ft.yyt.x+x.rowIndent&&(z=Math.min(z,Math.max(ft.x,z-y.computeNodeIndent(x))))):x.alignment===Vl?(z=E.left+b.x,b.x===0&&ft.xnt.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+nt.defaultValue);var gt=go.Shape._FigureParameters[Nt];gt||(gt=[],go.Shape._FigureParameters[Nt]=gt),gt[et]=nt};var pn=[];function Yt(Nt,et){var nt=pn.pop();return nt===void 0?new go.Point(Nt,et):(nt.x=Nt,nt.y=et,nt)}function kt(){var Nt=pn.pop();return Nt===void 0?new go.Point:Nt}function ue(Nt){pn.push(Nt)}function xe(Nt,et,nt,gt,lt,pt,vt,Lt,Ft){Ft||(Ft=new go.Point);var Wt=Nt-nt,Kt=lt-vt,_t=NaN,ne=NaN;if(Wt===0)if(Kt===0)Nt===nt&&(_t=Nt,ne=et);else{var $t=(pt-Lt)/Kt,ve=pt-$t*lt;_t=Nt,ne=$t*_t+ve}else if(Kt===0){var re=(et-gt)/Wt,Oe=et-re*Nt;_t=lt,ne=re*_t+Oe}else{var re=(et-gt)/Wt,$t=(pt-Lt)/Kt,Oe=et-re*Nt,ve=pt-$t*lt;_t=(ve-Oe)/(re-$t),ne=re*_t+Oe}return Ft.x=_t,Ft.y=ne,Ft}function Te(Nt,et,nt,gt,lt,pt,vt,Lt,Ft,Wt,Kt,_t,ne,$t){var ve=1-Ft,re=Ft,Oe=Nt*ve+nt*re,me=et*ve+gt*re,Fe=nt*ve+lt*re,Pn=gt*ve+pt*re,vn=lt*ve+vt*re,Mn=pt*ve+Lt*re,In=Oe*ve+Fe*re,Zt=me*ve+Pn*re,Gt=Fe*ve+vn*re,He=Pn*ve+Mn*re,un=In*ve+Gt*re,ln=Zt*ve+He*re;Wt.x=Oe,Wt.y=me,Kt.x=In,Kt.y=Zt,_t.x=un,_t.y=ln,ne.x=Gt,ne.y=He,$t.x=vn,$t.y=Mn}var ge=new go.Spot(.156,.156),Ae=new go.Spot(.844,.844),qt=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Ye("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;(isNaN(gt)||gt<0)&&(gt=5),gt=Math.min(gt,et/3),gt=Math.min(gt,nt/3);var lt=gt*qt,pt=new go.Geometry().add(new go.PathFigure(gt,0,!0).add(new go.PathSegment(go.PathSegment.Line,et-gt,0)).add(new go.PathSegment(go.PathSegment.Bezier,et,gt,et-lt,0,et,lt)).add(new go.PathSegment(go.PathSegment.Line,et,nt-gt)).add(new go.PathSegment(go.PathSegment.Bezier,et-gt,nt,et,nt-lt,et-lt,nt)).add(new go.PathSegment(go.PathSegment.Line,gt,nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,nt-gt,lt,nt,0,nt-lt)).add(new go.PathSegment(go.PathSegment.Line,0,gt)).add(new go.PathSegment(go.PathSegment.Bezier,gt,0,0,lt,lt,0).close()));return lt>1&&(pt.spot1=new go.Spot(0,0,lt,lt),pt.spot2=new go.Spot(1,1,-lt,-lt)),pt}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(Nt,et,nt){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,nt).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(et,nt).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(et,nt).add(new go.PathSegment(go.PathSegment.Line,0,nt)).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(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(Nt,et,nt){var gt=new go.Geometry(go.Geometry.Line);return gt.startX=0,gt.startY=nt/2,gt.endX=et,gt.endY=nt/2,gt}),go.Shape.defineFigureGenerator("LineV",function(Nt,et,nt){var gt=new go.Geometry(go.Geometry.Line);return gt.startX=et/2,gt.startY=0,gt.endX=et/2,gt.endY=nt,gt}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt/2,!1).add(new go.PathSegment(go.PathSegment.Line,et,nt/2)).add(new go.PathSegment(go.PathSegment.Move,et/2,0)).add(new go.PathSegment(go.PathSegment.Line,et/2,nt)))}),go.Shape.defineFigureGenerator("XLine",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt,!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,nt)))}),go.Shape.defineFigureGenerator("LineRight",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(.25*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.25*et,nt)))}),go.Shape.defineFigureGenerator("LineDown",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,.25*nt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,.75*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)))}),go.Shape.defineFigureGenerator("LineLeft",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(.75*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.75*et,nt)))}),go.Shape.defineFigureGenerator("LineUp",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,.75*nt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,.25*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(Nt,et,nt){var gt=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(gt*et,(1-gt)*nt,!1).add(new go.PathSegment(go.PathSegment.Line,(1-gt)*et,gt*nt)).add(new go.PathSegment(go.PathSegment.Move,gt*et,gt*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-gt)*et,(1-gt)*nt)).add(new go.PathSegment(go.PathSegment.Move,0,nt/2)).add(new go.PathSegment(go.PathSegment.Line,et,nt/2)).add(new go.PathSegment(go.PathSegment.Move,et/2,0)).add(new go.PathSegment(go.PathSegment.Line,et/2,nt)))}),go.Shape.defineFigureGenerator("CircleLine",function(Nt,et,nt){var gt=et/2,lt=new go.Geometry().add(new go.PathFigure(et,et/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,gt,gt,gt,gt).close()));return lt.spot1=ge,lt.spot2=Ae,lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("Line1",function(Nt,et,nt){var gt=new go.Geometry(go.Geometry.Line);return gt.startX=0,gt.startY=0,gt.endX=et,gt.endY=nt,gt}),go.Shape.defineFigureGenerator("Line2",function(Nt,et,nt){var gt=new go.Geometry(go.Geometry.Line);return gt.startX=et,gt.startY=0,gt.endX=0,gt.endY=nt,gt}),go.Shape.defineFigureGenerator("Curve1",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,nt,qt*et,0,et,(1-qt)*nt)))}),go.Shape.defineFigureGenerator("Curve2",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,nt,0,qt*nt,(1-qt)*et,nt)))}),go.Shape.defineFigureGenerator("Curve3",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,et,qt*nt,qt*et,nt)))}),go.Shape.defineFigureGenerator("Curve4",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,(1-qt)*et,0,0,(1-qt)*nt)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(et,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(Nt,et,nt){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,nt).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(Nt,et,nt){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,nt).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Ye("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;isNaN(gt)?gt=.1:gt<-1?gt=-1:gt>1&&(gt=1);var lt=Math.abs(gt)*et;if(gt===0){var pt=new go.Geometry(go.Geometry.Rectangle);return pt.startX=0,pt.startY=0,pt.endX=et,pt.endY=nt,pt}else{var pt=new go.Geometry;return gt>0?pt.add(new go.PathFigure(lt,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-lt,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):pt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et-lt,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,lt,nt).close())),ltet&&(gt=et);var lt=Math.abs(gt);if(gt===0){var pt=new go.Geometry(go.Geometry.Rectangle);return pt.startX=0,pt.startY=0,pt.endX=et,pt.endY=nt,pt}else{var pt=new go.Geometry;return gt>0?pt.add(new go.PathFigure(lt,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-lt,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):pt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et-lt,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,lt,nt).close())),lt.5&&(gt=.5);var lt=Math.abs(gt)*et;if(gt===0){var pt=new go.Geometry(go.Geometry.Rectangle);return pt.startX=0,pt.startY=0,pt.endX=et,pt.endY=nt,pt}else{var pt=new go.Geometry;return gt>0?pt.add(new go.PathFigure(lt,0).add(new go.PathSegment(go.PathSegment.Line,et-lt,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):pt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-lt,nt)).add(new go.PathSegment(go.PathSegment.Line,lt,nt).close())),ltet&&(gt=et/2);var lt=Math.abs(gt);if(gt===0){var pt=new go.Geometry(go.Geometry.Rectangle);return pt.startX=0,pt.startY=0,pt.endX=et,pt.endY=nt,pt}else{var pt=new go.Geometry;return gt>0?pt.add(new go.PathFigure(lt,0).add(new go.PathSegment(go.PathSegment.Line,et-lt,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):pt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-lt,nt)).add(new go.PathSegment(go.PathSegment.Line,lt,nt).close())),ltet&&(gt=et/2);var lt=Math.abs(gt);if(gt===0){var pt=new go.Geometry(go.Geometry.Rectangle);return pt.startX=0,pt.startY=0,pt.endX=et,pt.endY=nt,pt}else{var pt=new go.Geometry;return gt>0?pt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-lt,nt)).add(new go.PathSegment(go.PathSegment.Line,lt,nt).close())):pt.add(new go.PathFigure(lt,0).add(new go.PathSegment(go.PathSegment.Line,et-lt,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())),lt0&&(vt.add(new go.PathSegment(go.PathSegment.Move,et/2+Lt,et/2)),vt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,lt,lt,Lt,Lt).close())),pt.spot1=ge,pt.spot2=Ae,pt.defaultStretch=go.GraphObject.Uniform,pt}),go.Shape.defineFigureGenerator("Cloud",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(.08034461*et,.1944299*nt,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*et,.05349299*nt,-.09239631*et,.07836421*nt,.1406031*et,-.0542823*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*et,.074219*nt,.2450511*et,-.00697547*nt,.3776197*et,-.01112067*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*et,.07004196*nt,.4539471*et,0,.6066018*et,-.02526587*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*et,.08370865*nt,.6914277*et,-.01904177*nt,.8921095*et,-.01220843*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*et,.3194596*nt,1.036446*et,.04105738*nt,1.020377*et,.3022052*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*et,.562044*nt,1.04448*et,.360238*nt,.992256*et,.5219009*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*et,.8217117*nt,1.032337*et,.5771781*nt,1.018411*et,.8120651*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*et,.9156953*nt,1.028411*et,.9571472*nt,.8556702*et,1.052487*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*et,.9310455*nt,.7431877*et,1.009325*nt,.5624123*et,1.021761*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*et,.9344623*nt,.4820677*et,1.031761*nt,.3030112*et,1.002796*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*et,.870098*nt,.2329994*et,1.01518*nt,.03213784*et,1.01518*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*et,.6545475*nt,-.02812061*et,.9032597*nt,-.01205169*et,.6835638*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*et,.4265613*nt,-.01812061*et,.6089503*nt,-.00606892*et,.4555777*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*et,.1944299*nt,-.01606892*et,.3892545*nt,-.01205169*et,.1944299*nt))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(Nt,et,nt){var gt=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(gt*et,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-gt)*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,gt*nt)).add(new go.PathSegment(go.PathSegment.Line,et,(1-gt)*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-gt)*et,nt)).add(new go.PathSegment(go.PathSegment.Line,gt*et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,(1-gt)*nt)).add(new go.PathSegment(go.PathSegment.Line,0,gt*nt).close())).setSpots(gt/2,gt/2,1-gt/2,1-gt/2)}),go.Shape.setFigureParameter("Pie",0,new Ye("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Ye("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN,lt=Nt?Nt.parameter2:NaN;isNaN(gt)&&(gt=0),isNaN(lt)&&(lt=315);var pt=gt%360;pt<0&&(pt+=360);var vt=lt%360,Lt=Math.min(et,nt)/2;return new go.Geometry().add(new go.PathFigure(Lt,Lt).add(new go.PathSegment(go.PathSegment.Arc,pt,vt,Lt,Lt,Lt,Lt).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Nt,et,nt){var gt=qt/Math.SQRT2*.5,lt=Math.SQRT2/2,pt=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(et,nt,!0).add(new go.PathSegment(go.PathSegment.Bezier,lt*et,pt*nt,et,(1-gt)*nt,(lt+gt)*et,(pt+gt)*nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Ye("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;(isNaN(gt)||gt<0)&&(gt=30);var lt=Math.min(gt,et)/2,pt=et/2,vt=nt/2;return new go.Geometry().add(new go.PathFigure(pt-lt,0,!0).add(new go.PathSegment(go.PathSegment.Line,pt+lt,0)).add(new go.PathSegment(go.PathSegment.Line,pt+lt,vt-lt)).add(new go.PathSegment(go.PathSegment.Line,et,vt-lt)).add(new go.PathSegment(go.PathSegment.Line,et,vt+lt)).add(new go.PathSegment(go.PathSegment.Line,pt+lt,vt+lt)).add(new go.PathSegment(go.PathSegment.Line,pt+lt,nt)).add(new go.PathSegment(go.PathSegment.Line,pt-lt,nt)).add(new go.PathSegment(go.PathSegment.Line,pt-lt,vt+lt)).add(new go.PathSegment(go.PathSegment.Line,0,vt+lt)).add(new go.PathSegment(go.PathSegment.Line,0,vt-lt)).add(new go.PathSegment(go.PathSegment.Line,pt-lt,vt-lt).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Ye("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;(isNaN(gt)||gt<0)&&(gt=10);var lt=Math.min(gt,et)/2,pt=et/2,vt=nt/2;return new go.Geometry().add(new go.PathFigure(pt-lt,0,!0).add(new go.PathSegment(go.PathSegment.Line,pt+lt,0)).add(new go.PathSegment(go.PathSegment.Line,pt+lt,vt-lt)).add(new go.PathSegment(go.PathSegment.Line,et,vt-lt)).add(new go.PathSegment(go.PathSegment.Line,et,vt+lt)).add(new go.PathSegment(go.PathSegment.Line,pt+lt,vt+lt)).add(new go.PathSegment(go.PathSegment.Line,pt+lt,nt)).add(new go.PathSegment(go.PathSegment.Line,pt-lt,nt)).add(new go.PathSegment(go.PathSegment.Line,pt-lt,vt+lt)).add(new go.PathSegment(go.PathSegment.Line,0,vt+lt)).add(new go.PathSegment(go.PathSegment.Line,0,vt-lt)).add(new go.PathSegment(go.PathSegment.Line,pt-lt,vt-lt).close()))}),go.Shape.setFigureParameter("ThickX",0,new Ye("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;if((isNaN(gt)||gt<0)&&(gt=30),et===0||nt===0){var lt=new go.Geometry(go.Geometry.Rectangle);return lt.startX=0,lt.startY=0,lt.endX=et,lt.endY=nt,lt}else{var pt=et/2,vt=nt/2,Lt=Math.atan2(nt,et),Ft=gt-Math.min(Math.cos(Lt)*gt/2,pt),Wt=gt-Math.min(Math.sin(Lt)*gt/2,vt),lt=new go.Geometry,Kt=new go.PathFigure(Ft,0,!0);return lt.add(Kt),Kt.add(new go.PathSegment(go.PathSegment.Line,pt,.2*nt)),Kt.add(new go.PathSegment(go.PathSegment.Line,et-Ft,0)),Kt.add(new go.PathSegment(go.PathSegment.Line,et,Wt)),Kt.add(new go.PathSegment(go.PathSegment.Line,.8*et,vt)),Kt.add(new go.PathSegment(go.PathSegment.Line,et,nt-Wt)),Kt.add(new go.PathSegment(go.PathSegment.Line,et-Ft,nt)),Kt.add(new go.PathSegment(go.PathSegment.Line,pt,.8*nt)),Kt.add(new go.PathSegment(go.PathSegment.Line,Ft,nt)),Kt.add(new go.PathSegment(go.PathSegment.Line,0,nt-Wt)),Kt.add(new go.PathSegment(go.PathSegment.Line,.2*et,vt)),Kt.add(new go.PathSegment(go.PathSegment.Line,0,Wt).close()),lt}}),go.Shape.setFigureParameter("ThinX",0,new Ye("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;(isNaN(gt)||gt<0)&&(gt=10);var lt=new go.Geometry,pt=new go.PathFigure(.1*et,0,!0);return lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,et,.1*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.1*et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.9*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt).close()),lt}),go.Shape.setFigureParameter("SquareIBeam",0,new Ye("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;isNaN(gt)&&(gt=.2);var lt=new go.Geometry,pt=new go.PathFigure(0,0,!0);return lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,et,gt*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,(.5+gt/2)*et,gt*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,(.5+gt/2)*et,(1-gt)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,(1-gt)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,(1-gt)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,(.5-gt/2)*et,(1-gt)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,(.5-gt/2)*et,gt*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,gt*nt).close()),lt}),go.Shape.setFigureParameter("RoundedIBeam",0,new Ye("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;isNaN(gt)&&(gt=.5);var lt=new go.Geometry,pt=new go.PathFigure(0,0,!0);return lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Bezier,et,nt,Math.abs(1-gt)*et,.25*nt,Math.abs(1-gt)*et,.75*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,gt*et,.75*nt,gt*et,.25*nt).close()),lt}),go.Shape.defineFigureGenerator("HalfEllipse",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,qt*et,0,et,(.5-qt/2)*nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,et,(.5+qt/2)*nt,qt*et,nt).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,et,0,et,nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*et,.75*nt,.5*et,.25*nt).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,nt,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*nt,.1*et,.8*nt,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*nt,0,0,.45*et,0)).add(new go.PathSegment(go.PathSegment.Bezier,et,.3*nt,.55*et,0,et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,.5*nt,.9*et,.8*nt).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*et,.01*nt)).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,.6*et,.2*nt,et,.25*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.7*nt,et,.8*nt,.6*et,.8*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.75*et,nt,.5*et,.75*nt,.55*et,.95*nt)).add(new go.PathSegment(go.PathSegment.Line,.25*et,nt)).add(new go.PathSegment(go.PathSegment.Bezier,.45*et,.7*nt,.45*et,.95*nt,.5*et,.75*nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,.4*et,.8*nt,0,.8*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.49*et,.01*nt,0,.25*nt,.4*et,.2*nt).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.4*et,.6*nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.15*et,nt,.5*et,.75*nt,.45*et,.95*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.85*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.6*et,.6*nt,.55*et,.95*nt,.5*et,.75*nt));var pt=.2,vt=.3,Lt=0,Ft=pt*qt;return lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*et,(.5+pt+Lt)*nt,(.5-pt+vt)*et,(.5+Ft+Lt)*nt,(.5-Ft+vt)*et,(.5+pt+Lt)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+pt+vt)*et,(.5+Lt)*nt,(.5+Ft+vt)*et,(.5+pt+Lt)*nt,(.5+pt+vt)*et,(.5+Ft+Lt)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*et,(.5-pt+Lt)*nt,(1-.5+pt+vt)*et,(.5-Ft+Lt)*nt,(.5+Ft+vt)*et,(.5-pt+Lt)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.65*et,.36771243*nt,(.5-Ft+vt)*et,(.5-pt+Lt)*nt,(.5-pt+vt+.05)*et,(.5-Ft+Lt-.02)*nt)),pt=.2,vt=0,Lt=-.3,Ft=pt*qt,lt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+pt+vt)*et,(.5+Lt)*nt,(.5+Ft+vt)*et,(.5+pt+Lt)*nt,(.5+pt+vt)*et,(.5+Ft+Lt)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*et,(.5-pt+Lt)*nt,(1-.5+pt+vt)*et,(.5-Ft+Lt)*nt,(.5+Ft+vt)*et,(.5-pt+Lt)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-pt+vt)*et,(.5+Lt)*nt,(.5-Ft+vt)*et,(.5-pt+Lt)*nt,(.5-pt+vt)*et,(.5-Ft+Lt)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Ft+vt)*et,(.5+pt+Lt)*nt,(.5-pt+vt)*et,(.5+Ft+Lt)*nt,(.5-Ft+vt)*et,(.5+pt+Lt)*nt)),pt=.2,vt=-.3,Lt=0,Ft=pt*qt,lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*et,(.5-pt+Lt)*nt,(1-.5+pt+vt-.05)*et,(.5-Ft+Lt-.02)*nt,(.5+Ft+vt)*et,(.5-pt+Lt)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-pt+vt)*et,(.5+Lt)*nt,(.5-Ft+vt)*et,(.5-pt+Lt)*nt,(.5-pt+vt)*et,(.5-Ft+Lt)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*et,(.5+pt+Lt)*nt,(.5-pt+vt)*et,(.5+Ft+Lt)*nt,(.5-Ft+vt)*et,(.5+pt+Lt)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.6*nt,(.5+Ft+vt)*et,(.5+pt+Lt)*nt,(.5+pt+vt)*et,(.5+Ft+Lt)*nt).close()),gt.setSpots(.06,.33,.93,.68),gt}),go.Shape.defineFigureGenerator("YinYang",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(et*.5,0,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,270,180,et*.5,et*.5,et*.5,et*.5)),lt.add(new go.PathSegment(go.PathSegment.Arc,90,-180,et*.5,et*.75,et*.25,et*.25)),lt.add(new go.PathSegment(go.PathSegment.Arc,90,180,et*.5,et*.25,et*.25,et*.25));var pt=.1,vt=.5,Lt=.25;return lt.add(new go.PathSegment(go.PathSegment.Move,(vt+pt)*et,Lt*nt)),lt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,et*vt,nt*Lt,pt*et,pt*et).close()),lt=new go.PathFigure(et*.5,0,!1),gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*.5,et*.5,et*.5,et*.5)),Lt=.75,lt=new go.PathFigure((vt+pt)*et,Lt*nt,!0),gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,0,360,et*vt,nt*Lt,pt*et,pt*et).close()),gt.defaultStretch=go.GraphObject.Uniform,gt}),go.Shape.defineFigureGenerator("Peace",function(Nt,et,nt){var gt=.8535533905932737,lt=.5*et,pt=.5*nt;return new go.Geometry().add(new go.PathFigure(lt,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,lt,pt,lt,pt)).add(new go.PathSegment(go.PathSegment.Line,lt,nt)).add(new go.PathSegment(go.PathSegment.Move,lt,pt)).add(new go.PathSegment(go.PathSegment.Line,(1-gt)*et,gt*nt)).add(new go.PathSegment(go.PathSegment.Move,lt,pt)).add(new go.PathSegment(go.PathSegment.Line,gt*et,gt*nt)))}),go.Shape.defineFigureGenerator("NotAllowed",function(Nt,et,nt){var gt=new go.Geometry,lt=qt*.5,pt=.5,vt=.5,Lt=.5,Ft=new go.PathFigure(vt*et,(Lt-pt)*nt);gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt-pt)*et,Lt*nt,(vt-lt)*et,(Lt-pt)*nt,(vt-pt)*et,(Lt-lt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt+pt)*nt,(vt-pt)*et,(Lt+lt)*nt,(vt-lt)*et,(Lt+pt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*et,Lt*nt,(vt+lt)*et,(Lt+pt)*nt,(vt+pt)*et,(Lt+lt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt-pt)*nt,(vt+pt)*et,(Lt-lt)*nt,(vt+lt)*et,(Lt-pt)*nt)),pt=.4,lt=qt*.4;var Wt=kt(),Kt=kt(),_t=kt(),ne=kt();Te(vt,Lt-pt,vt+lt,Lt-pt,vt+pt,Lt-lt,vt+pt,Lt,.42,Wt,Kt,_t,ne,ne);var $t=kt(),ve=kt(),re=kt();Te(vt,Lt-pt,vt+lt,Lt-pt,vt+pt,Lt-lt,vt+pt,Lt,.58,ne,ne,re,$t,ve);var Oe=kt(),me=kt(),Fe=kt();Te(vt,Lt+pt,vt-lt,Lt+pt,vt-pt,Lt+lt,vt-pt,Lt,.42,Oe,me,Fe,ne,ne);var Pn=kt(),vn=kt(),Mn=kt();return Te(vt,Lt+pt,vt-lt,Lt+pt,vt-pt,Lt+lt,vt-pt,Lt,.58,ne,ne,Mn,Pn,vn),Ft.add(new go.PathSegment(go.PathSegment.Move,Mn.x*et,Mn.y*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt-pt)*et,Lt*nt,Pn.x*et,Pn.y*nt,vn.x*et,vn.y*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt-pt)*nt,(vt-pt)*et,(Lt-lt)*nt,(vt-lt)*et,(Lt-pt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,_t.x*et,_t.y*nt,Wt.x*et,Wt.y*nt,Kt.x*et,Kt.y*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,Mn.x*et,Mn.y*nt).close()),Ft.add(new go.PathSegment(go.PathSegment.Move,Fe.x*et,Fe.y*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,re.x*et,re.y*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*et,Lt*nt,$t.x*et,$t.y*nt,ve.x*et,ve.y*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt+pt)*nt,(vt+pt)*et,(Lt+lt)*nt,(vt+lt)*et,(Lt+pt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,Fe.x*et,Fe.y*nt,Oe.x*et,Oe.y*nt,me.x*et,me.y*nt).close()),ue(Wt),ue(Kt),ue(_t),ue(ne),ue($t),ue(ve),ue(re),ue(Oe),ue(me),ue(Fe),ue(Pn),ue(vn),ue(Mn),gt.defaultStretch=go.GraphObject.Uniform,gt}),go.Shape.defineFigureGenerator("Fragile",function(Nt,et,nt){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*nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.25*nt)).add(new go.PathSegment(go.PathSegment.Line,.29*et,.33*nt)).add(new go.PathSegment(go.PathSegment.Line,.35*et,.25*nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.15*nt)).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*nt,et,.25*nt,.75*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.45*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.5*nt,0,.25*nt).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Ye("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;(isNaN(gt)||gt<0)&&(gt=30),gt>et&&(gt=et);var lt=(et-gt)/2,pt=lt+gt;return new go.Geometry().add(new go.PathFigure(pt,.5*nt).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt)).add(new go.PathSegment(go.PathSegment.Line,lt,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,et,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,.55*nt).add(new go.PathSegment(go.PathSegment.Line,.6*et,0)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.45*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.45*nt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.55*nt).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(Nt,et,nt){var gt=new go.Geometry,lt=qt*.4,pt=.4,vt=.5,Lt=.5,Ft=kt(),Wt=kt(),Kt=kt(),_t=kt(),ne=new go.PathFigure((vt-pt)*et,Lt*nt,!1);gt.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt-pt)*nt,(vt-pt)*et,(Lt-lt)*nt,(vt-lt)*et,(Lt-pt)*nt)),Te(vt,Lt-pt,vt+lt,Lt-pt,vt+pt,Lt-lt,vt+pt,Lt,.44,Kt,_t,Wt,Ft,Ft),ne.add(new go.PathSegment(go.PathSegment.Bezier,Wt.x*et,Wt.y*nt,Kt.x*et,Kt.y*nt,_t.x*et,_t.y*nt));var $t=Yt(Wt.x,Wt.y);Te(vt,Lt-pt,vt+lt,Lt-pt,vt+pt,Lt-lt,vt+pt,Lt,.56,Ft,Ft,Wt,Kt,_t);var ve=Yt(Wt.x,Wt.y);ne.add(new go.PathSegment(go.PathSegment.Line,($t.x*.1+.95*.9)*et,$t.y*.1*nt)),ne.add(new go.PathSegment(go.PathSegment.Line,.85*et,$t.y*.1*nt)),ne.add(new go.PathSegment(go.PathSegment.Line,.85*et,0)),ne.add(new go.PathSegment(go.PathSegment.Line,et,0)),ne.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),ne.add(new go.PathSegment(go.PathSegment.Line,(ve.x*.1+.9)*et,.15*nt)),ne.add(new go.PathSegment(go.PathSegment.Line,(ve.x*.1+.9)*et,(ve.y*.1+.05*.9)*nt)),ne.add(new go.PathSegment(go.PathSegment.Line,ve.x*et,ve.y*nt)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*et,Lt*nt,Kt.x*et,Kt.y*nt,_t.x*et,_t.y*nt)),ne.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt+pt)*nt,(vt+pt)*et,(Lt+lt)*nt,(vt+lt)*et,(Lt+pt)*nt)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(vt-pt)*et,Lt*nt,(vt-lt)*et,(Lt+pt)*nt,(vt-pt)*et,(Lt+lt)*nt)),pt=.35,lt=qt*.35;var re=new go.PathFigure(vt*et,(Lt-pt)*nt,!1);gt.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,(vt-pt)*et,Lt*nt,(vt-lt)*et,(Lt-pt)*nt,(vt-pt)*et,(Lt-lt)*nt)),re.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt+pt)*nt,(vt-pt)*et,(Lt+lt)*nt,(vt-lt)*et,(Lt+pt)*nt)),re.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*et,Lt*nt,(vt+lt)*et,(Lt+pt)*nt,(vt+pt)*et,(Lt+lt)*nt)),re.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt-pt)*nt,(vt+pt)*et,(Lt-lt)*nt,(vt+lt)*et,(Lt-pt)*nt));var Oe=new go.PathFigure((vt-pt)*et,Lt*nt,!1);return gt.add(Oe),ue(Ft),ue(Wt),ue(Kt),ue(_t),ue($t),ue(ve),gt.spot1=new go.Spot(.202,.257),gt.spot2=new go.Spot(.792,.739),gt.defaultStretch=go.GraphObject.Uniform,gt}),go.Shape.defineFigureGenerator("GenderFemale",function(Nt,et,nt){var gt=new go.Geometry,lt=.375,pt=0,vt=-.125,Lt=lt*qt,Ft=new go.PathFigure((.525+pt)*et,(.5+lt+vt)*nt,!1);gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+lt+pt)*et,(.5+vt)*nt,(.5+Lt+pt)*et,(.5+lt+vt)*nt,(.5+lt+pt)*et,(.5+Lt+vt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pt)*et,(.5-lt+vt)*nt,(1-.5+lt+pt)*et,(.5-Lt+vt)*nt,(.5+Lt+pt)*et,(.5-lt+vt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(.5-lt+pt)*et,(.5+vt)*nt,(.5-Lt+pt)*et,(.5-lt+vt)*nt,(.5-lt+pt)*et,(.5-Lt+vt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(.475+pt)*et,(.5+lt+vt)*nt,(.5-lt+pt)*et,(.5+Lt+vt)*nt,(.5-Lt+pt)*et,(.5+lt+vt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.475*et,.85*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.425*et,.85*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.425*et,.9*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.475*et,.9*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.475*et,nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.525*et,nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.525*et,.9*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.575*et,.9*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.575*et,.85*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*nt).close()),lt=.325,pt=0,vt=-.125,Lt=lt*qt;var Ft=new go.PathFigure((1-.5+lt+pt)*et,(.5+vt)*nt,!1);gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pt)*et,(.5+lt+vt)*nt,(.5+lt+pt)*et,(.5+Lt+vt)*nt,(.5+Lt+pt)*et,(.5+lt+vt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(.5-lt+pt)*et,(.5+vt)*nt,(.5-Lt+pt)*et,(.5+lt+vt)*nt,(.5-lt+pt)*et,(.5+Lt+vt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pt)*et,(.5-lt+vt)*nt,(.5-lt+pt)*et,(.5-Lt+vt)*nt,(.5-Lt+pt)*et,(.5-lt+vt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+lt+pt)*et,(.5+vt)*nt,(.5+Lt+pt)*et,(.5-lt+vt)*nt,(1-.5+lt+pt)*et,(.5-Lt+vt)*nt));var Ft=new go.PathFigure((.525+pt)*et,(.5+lt+vt)*nt,!1);return gt.add(Ft),gt.spot1=new go.Spot(.232,.136),gt.spot2=new go.Spot(.682,.611),gt.defaultStretch=go.GraphObject.Uniform,gt}),go.Shape.defineFigureGenerator("LogicImplies",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;return isNaN(gt)&&(gt=.2),new go.Geometry().add(new go.PathFigure((1-gt)*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-gt)*et,nt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;return isNaN(gt)&&(gt=.2),new go.Geometry().add(new go.PathFigure((1-gt)*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-gt)*et,nt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Move,gt*et,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,gt*et,nt))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(Nt,et,nt){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,nt)))}),go.Shape.defineFigureGenerator("LogicAnd",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,et,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(Nt,et,nt){var gt=new go.Geometry().add(new go.PathFigure(.5*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*et,.5*nt,.5*et,.5*nt)));return gt.defaultStretch=go.GraphObject.Uniform,gt}),go.Shape.defineFigureGenerator("LogicTruth",function(Nt,et,nt){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,nt)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Move,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(Nt,et,nt){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*nt)).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Move,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt)))}),go.Shape.defineFigureGenerator("LogicForAll",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*nt))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(Nt,et,nt){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*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Move,0,nt)).add(new go.PathSegment(go.PathSegment.Line,et,nt))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(Nt,et,nt){var gt=.5;return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,0,gt*nt)).add(new go.PathSegment(go.PathSegment.Arc,180,180,gt*et,gt*nt,gt*et,gt*nt)).add(new go.PathSegment(go.PathSegment.Line,et,nt))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(Nt,et,nt){var gt=.5;return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,gt*nt)).add(new go.PathSegment(go.PathSegment.Arc,0,180,gt*et,gt*nt,gt*et,gt*nt)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Ye("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Ye("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;isNaN(gt)&&(gt=.3);var lt=Nt?Nt.parameter2:NaN;isNaN(lt)&&(lt=.3);var pt=(1-gt)*et,vt=(.5-lt/2)*nt,Lt=(.5+lt/2)*nt,Ft=new go.Geometry,Wt=new go.PathFigure(0,vt,!0);Ft.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Line,pt,vt)),Wt.add(new go.PathSegment(go.PathSegment.Line,pt,0)),Wt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),Wt.add(new go.PathSegment(go.PathSegment.Line,pt,nt)),Wt.add(new go.PathSegment(go.PathSegment.Line,pt,Lt)),Wt.add(new go.PathSegment(go.PathSegment.Line,0,Lt).close()),Ft.spot1=new go.Spot(0,vt/nt);var Kt=xe(0,Lt/nt,1,Lt/nt,pt/et,1,1,.5,kt());return Ft.spot2=new go.Spot(Kt.x,Kt.y),ue(Kt),Ft}),go.Shape.setFigureParameter("Arrow2",0,new Ye("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Ye("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;isNaN(gt)&&(gt=30),gt>et&&(gt=et);var lt=Nt?Nt.parameter2:NaN;isNaN(lt)&&(lt=30),lt=Math.min(lt,nt/2);var pt=et-gt,vt=(nt-lt)/2,Lt=vt+lt,Ft=new go.Geometry,Wt=new go.PathFigure(0,vt,!0);Ft.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Line,pt,vt)),Wt.add(new go.PathSegment(go.PathSegment.Line,pt,0)),Wt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),Wt.add(new go.PathSegment(go.PathSegment.Line,pt,nt)),Wt.add(new go.PathSegment(go.PathSegment.Line,pt,Lt)),Wt.add(new go.PathSegment(go.PathSegment.Line,0,Lt).close()),Ft.spot1=new go.Spot(0,vt/nt);var Kt=xe(0,Lt/nt,1,Lt/nt,pt/et,1,1,.5,kt());return Ft.spot2=new go.Spot(Kt.x,Kt.y),ue(Kt),Ft}),go.Shape.defineFigureGenerator("Chevron",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt).close()),gt}),go.Shape.defineFigureGenerator("DoubleArrow",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.214*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,1*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,1*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.786*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,1*nt).close()),gt}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Ye("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;isNaN(gt)&&(gt=.3);var lt=(.5-gt/2)*nt,pt=(.5+gt/2)*nt,vt=new go.Geometry,Lt=new go.PathFigure(et,.5*nt,!0);vt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,pt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,pt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),Lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,lt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,lt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close());var Ft=xe(0,.5,.3,0,0,lt/nt,.1,lt/nt,kt());return vt.spot1=new go.Spot(Ft.x,Ft.y),Ft=xe(.7,1,1,.5,0,pt/nt,1,pt/nt,Ft),vt.spot2=new go.Spot(Ft.x,Ft.y),ue(Ft),vt}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Ye("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Ye("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;isNaN(gt)&&(gt=40);var lt=Nt?Nt.parameter2:NaN;isNaN(lt)&&(lt=100);var pt=(nt-gt)/2,vt=pt+gt,Lt=(nt-lt)/2,Ft=Lt+lt;(gt>nt||lt>nt)&&(lt>gt?(gt=gt*nt/lt,pt=(nt-gt)/2,vt=pt+gt,Lt=0,Ft=nt):(pt=0,vt=nt,Lt=0,Ft=nt));var Wt=new go.Geometry,Kt=new go.PathFigure(et,.5*nt,!0);Wt.add(Kt),Kt.add(new go.PathSegment(go.PathSegment.Line,.7*et,Ft)),Kt.add(new go.PathSegment(go.PathSegment.Line,.7*et,vt)),Kt.add(new go.PathSegment(go.PathSegment.Line,.3*et,vt)),Kt.add(new go.PathSegment(go.PathSegment.Line,.3*et,Ft)),Kt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),Kt.add(new go.PathSegment(go.PathSegment.Line,.3*et,Lt)),Kt.add(new go.PathSegment(go.PathSegment.Line,.3*et,pt)),Kt.add(new go.PathSegment(go.PathSegment.Line,.7*et,pt)),Kt.add(new go.PathSegment(go.PathSegment.Line,.7*et,Lt).close());var _t=xe(0,.5,.3,Lt/nt,0,pt/nt,1,pt/nt,kt());return Wt.spot1=new go.Spot(_t.x,_t.y),_t=xe(.7,Ft/nt,1,.5,0,vt/nt,1,vt/nt,_t),Wt.spot2=new go.Spot(_t.x,_t.y),ue(_t),Wt}),go.Shape.setFigureParameter("IBeamArrow",0,new Ye("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;isNaN(gt)&&(gt=.3);var lt=(.5-gt/2)*nt,pt=(.5+gt/2)*nt,vt=new go.Geometry,Lt=new go.PathFigure(et,.5*nt,!0);vt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,pt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,pt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),Lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),Lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,lt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,lt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),vt.spot1=new go.Spot(0,lt/nt);var Ft=xe(.7,1,1,.5,0,pt/nt,1,pt/nt,kt());return vt.spot2=new go.Spot(Ft.x,Ft.y),ue(Ft),vt}),go.Shape.setFigureParameter("IBeamArrow2",0,new Ye("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Ye("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;isNaN(gt)&&(gt=40);var lt=Nt?Nt.parameter2:NaN;isNaN(lt)&&(lt=100);var pt=(nt-gt)/2,vt=pt+gt,Lt=(nt-lt)/2,Ft=Lt+lt;(gt>nt||lt>nt)&&(lt>gt?(gt=gt*nt/lt,pt=(nt-gt)/2,vt=pt+gt,Lt=0,Ft=nt):(pt=0,vt=nt,Lt=0,Ft=nt));var Wt=new go.Geometry,Kt=new go.PathFigure(et,.5*nt,!0);Wt.add(Kt),Kt.add(new go.PathSegment(go.PathSegment.Line,.7*et,Ft)),Kt.add(new go.PathSegment(go.PathSegment.Line,.7*et,vt)),Kt.add(new go.PathSegment(go.PathSegment.Line,.2*et,vt)),Kt.add(new go.PathSegment(go.PathSegment.Line,.2*et,Ft)),Kt.add(new go.PathSegment(go.PathSegment.Line,0,Ft)),Kt.add(new go.PathSegment(go.PathSegment.Line,0,Lt)),Kt.add(new go.PathSegment(go.PathSegment.Line,.2*et,Lt)),Kt.add(new go.PathSegment(go.PathSegment.Line,.2*et,pt)),Kt.add(new go.PathSegment(go.PathSegment.Line,.7*et,pt)),Kt.add(new go.PathSegment(go.PathSegment.Line,.7*et,Lt).close()),Wt.spot1=new go.Spot(0,pt/nt);var _t=xe(.7,Ft/nt,1,.5,0,vt/nt,1,vt/nt,kt());return Wt.spot2=new go.Spot(_t.x,_t.y),ue(_t),Wt}),go.Shape.setFigureParameter("Pointer",0,new Ye("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;isNaN(gt)&&(gt=.1);var lt=new go.Geometry,pt=new go.PathFigure(et,.5*nt,!0);lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,gt*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),lt.spot1=new go.Spot(gt,.35);var vt=xe(.2,.65,1,.65,0,1,1,.5,kt());return lt.spot2=new go.Spot(vt.x,vt.y),ue(vt),lt}),go.Shape.setFigureParameter("RoundedPointer",0,new Ye("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;isNaN(gt)&&(gt=.3);var lt=new go.Geometry,pt=new go.PathFigure(et,.5*nt,!0);lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,gt*et,.75*nt,gt*et,.25*nt).close()),lt.spot1=new go.Spot(gt,.35);var vt=xe(0,.65,1,.65,0,1,1,.5,kt());return lt.spot2=new go.Spot(vt.x,vt.y),ue(vt),lt}),go.Shape.setFigureParameter("SplitEndArrow",0,new Ye("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;isNaN(gt)&&(gt=.4);var lt=(.5-gt/2)*nt,pt=(.5+gt/2)*nt,vt=new go.Geometry,Lt=new go.PathFigure(et,.5*nt,!0);vt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,pt)),Lt.add(new go.PathSegment(go.PathSegment.Line,0,pt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,0,lt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,lt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),vt.spot1=new go.Spot(.2,.3);var Ft=xe(.7,1,1,.5,0,pt/nt,1,pt/nt,kt());return vt.spot2=new go.Spot(Ft.x,Ft.y),ue(Ft),vt}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Ye("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;isNaN(gt)&&(gt=50);var lt=(nt-gt)/2,pt=lt+gt;gt>nt&&(lt=0,pt=nt);var vt=new go.Geometry,Lt=new go.PathFigure(et,.5*nt,!0);vt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,pt)),Lt.add(new go.PathSegment(go.PathSegment.Line,0,pt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,0,lt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,lt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),vt.spot1=new go.Spot(.2,lt/nt);var Ft=xe(.7,1,1,.5,0,pt/nt,1,pt/nt,kt());return vt.spot2=new go.Spot(Ft.x,Ft.y),ue(Ft),vt}),go.Shape.setFigureParameter("SquareArrow",0,new Ye("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;isNaN(gt)&&(gt=.7);var lt=new go.Geometry,pt=new go.PathFigure(et,.5*nt,!0);return lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,gt*et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,0)),pt.add(new go.PathSegment(go.PathSegment.Line,gt*et,0).close()),lt.spot1=go.Spot.TopLeft,lt.spot2=new go.Spot(gt,1),lt}),go.Shape.defineFigureGenerator("Cone1",function(Nt,et,nt){var gt=new go.Geometry,lt=qt*.5,pt=qt*.1,vt=new go.PathFigure(0,.9*nt,!0);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.9+pt)*nt,(.5+lt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,(.5-lt)*et,nt,0,(.9+pt)*nt).close()),gt.spot1=new go.Spot(.25,.5),gt.spot2=new go.Spot(.75,.97),gt}),go.Shape.defineFigureGenerator("Cone2",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,.9*nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,et,.9*nt,(1-.85/.9)*et,nt,.85/.9*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.9*nt).close());var pt=new go.PathFigure(0,.9*nt,!1);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,et,.9*nt,(1-.85/.9)*et,.8*nt,.85/.9*et,.8*nt)),gt.spot1=new go.Spot(.25,.5),gt.spot2=new go.Spot(.75,.82),gt}),go.Shape.defineFigureGenerator("Cube1",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.5*et,nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.15*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.85*nt).close());var pt=new go.PathFigure(.5*et,nt,!1);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.15*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.3*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),gt.spot1=new go.Spot(0,.3),gt.spot2=new go.Spot(.5,.85),gt}),go.Shape.defineFigureGenerator("Cube2",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,.3*nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0).close());var pt=new go.PathFigure(0,.3*nt,!1);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.3*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Move,.7*et,.3*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),gt.spot1=new go.Spot(0,.3),gt.spot2=new go.Spot(.7,1),gt}),go.Shape.defineFigureGenerator("Cylinder1",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;isNaN(gt)&&(gt=5),gt=Math.min(gt,nt/3);var lt=new go.Geometry,pt=qt*.5,vt=new go.PathFigure(0,gt,!0);lt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,qt*gt,(.5-pt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,1*et,gt,(.5+pt)*et,0,1*et,qt*gt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt-gt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,1*nt,1*et,nt-qt*gt,(.5+pt)*et,1*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-gt,(.5-pt)*et,1*nt,0,nt-qt*gt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,gt));var Lt=new go.PathFigure(et,gt,!1);return lt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,2*gt,1*et,2*gt-qt*gt,(.5+pt)*et,2*gt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,0,gt,(.5-pt)*et,2*gt,0,2*gt-qt*gt)),lt.spot1=new go.Spot(0,0,0,2*gt),lt.spot2=new go.Spot(1,1),lt}),go.Shape.defineFigureGenerator("Cylinder2",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;isNaN(gt)&&(gt=5),gt=Math.min(gt,nt/3);var lt=new go.Geometry,pt=qt*.5,vt=new go.PathFigure(0,nt-gt,!0);lt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,0,gt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,qt*gt,(.5-pt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,gt,(.5+pt)*et,0,et,qt*gt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt-gt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,nt-qt*gt,(.5+pt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-gt,(.5-pt)*et,nt,0,nt-qt*gt));var Lt=new go.PathFigure(0,nt-gt,!1);return lt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt-2*gt,0,nt-gt-qt*gt,(.5-pt)*et,nt-2*gt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,et,nt-gt,(.5+pt)*et,nt-2*gt,et,nt-gt-qt*gt)),lt.spot1=new go.Spot(0,0),lt.spot2=new go.Spot(1,1,0,-2*gt),lt}),go.Shape.defineFigureGenerator("Cylinder3",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;isNaN(gt)&&(gt=5),gt=Math.min(gt,et/3);var lt=new go.Geometry,pt=qt*.5,vt=new go.PathFigure(gt,0,!0);lt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et-gt,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,et-qt*gt,0,et,(.5-pt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et-gt,nt,et,(.5+pt)*nt,et-qt*gt,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,gt,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,qt*gt,nt,0,(.5+pt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,gt,0,0,(.5-pt)*nt,qt*gt,0));var Lt=new go.PathFigure(gt,0,!1);return lt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,2*gt,.5*nt,gt+qt*gt,0,2*gt,(.5-pt)*nt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,gt,nt,2*gt,(.5+pt)*nt,gt+qt*gt,nt)),lt.spot1=new go.Spot(0,0,2*gt,0),lt.spot2=new go.Spot(1,1),lt}),go.Shape.defineFigureGenerator("Cylinder4",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;isNaN(gt)&&(gt=5),gt=Math.min(gt,et/3);var lt=new go.Geometry,pt=qt*.5,vt=new go.PathFigure(et-gt,0,!0);lt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,et-qt*gt,0,et,(.5-pt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et-gt,nt,et,(.5+pt)*nt,et-qt*gt,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,gt,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,qt*gt,nt,0,(.5+pt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,gt,0,0,(.5-pt)*nt,qt*gt,0)),vt.add(new go.PathSegment(go.PathSegment.Line,et-gt,0));var Lt=new go.PathFigure(et-gt,0,!1);return lt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,et-2*gt,.5*nt,et-gt-qt*gt,0,et-2*gt,(.5-pt)*nt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,et-gt,nt,et-2*gt,(.5+pt)*nt,et-gt-qt*gt,nt)),lt.spot1=new go.Spot(0,0),lt.spot2=new go.Spot(1,1,-2*gt,0),lt}),go.Shape.defineFigureGenerator("Prism1",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.25*et,.25*nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var pt=new go.PathFigure(.25*et,.25*nt,!1);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),gt.spot1=new go.Spot(.408,.172),gt.spot2=new go.Spot(.833,.662),gt}),go.Shape.defineFigureGenerator("Prism2",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,.25*nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var pt=new go.PathFigure(0,nt,!1);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,0,.25*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*nt)),gt.spot1=new go.Spot(.25,.5),gt.spot2=new go.Spot(.75,.75),gt}),go.Shape.defineFigureGenerator("Pyramid1",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.5*et,0,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.75*nt).close());var pt=new go.PathFigure(.5*et,0,!1);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),gt.spot1=new go.Spot(.25,.367),gt.spot2=new go.Spot(.75,.875),gt}),go.Shape.defineFigureGenerator("Pyramid2",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.5*et,0,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.85*nt).close());var pt=new go.PathFigure(.5*et,0,!1);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.85*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),gt.spot1=new go.Spot(.25,.367),gt.spot2=new go.Spot(.75,.875),gt}),go.Shape.defineFigureGenerator("Actor",function(Nt,et,nt){var gt=new go.Geometry,lt=.2,pt=.1,vt=qt*lt,Lt=qt*pt,Ft=.5,Wt=.1,Kt=new go.PathFigure(Ft*et,(Wt+pt)*nt,!0);gt.add(Kt),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-lt)*et,Wt*nt,(Ft-vt)*et,(Wt+pt)*nt,(Ft-lt)*et,(Wt+Lt)*nt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Wt-pt)*nt,(Ft-lt)*et,(Wt-Lt)*nt,(Ft-vt)*et,(Wt-pt)*nt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+lt)*et,Wt*nt,(Ft+vt)*et,(Wt-pt)*nt,(Ft+lt)*et,(Wt-Lt)*nt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Wt+pt)*nt,(Ft+lt)*et,(Wt+Lt)*nt,(Ft+vt)*et,(Wt+pt)*nt));var _t=.05,ne=qt*_t;Ft=.05,Wt=.25;var $t=new go.PathFigure(.5*et,.2*nt,!0);return gt.add($t),$t.add(new go.PathSegment(go.PathSegment.Line,.95*et,.2*nt)),Ft=.95,Wt=.25,$t.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+_t)*et,Wt*nt,(Ft+ne)*et,(Wt-_t)*nt,(Ft+_t)*et,(Wt-ne)*nt)),$t.add(new go.PathSegment(go.PathSegment.Line,et,.6*nt)),$t.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*nt)),$t.add(new go.PathSegment(go.PathSegment.Line,.85*et,.35*nt)),_t=.025,ne=qt*_t,Ft=.825,Wt=.35,$t.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Wt-_t)*nt,(Ft+_t)*et,(Wt-ne)*nt,(Ft+ne)*et,(Wt-_t)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-_t)*et,Wt*nt,(Ft-ne)*et,(Wt-_t)*nt,(Ft-_t)*et,(Wt-ne)*nt)),$t.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),$t.add(new go.PathSegment(go.PathSegment.Line,.55*et,nt)),$t.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*nt)),_t=.05,ne=qt*_t,Ft=.5,Wt=.7,$t.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Wt-_t)*nt,(Ft+_t)*et,(Wt-ne)*nt,(Ft+ne)*et,(Wt-_t)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-_t)*et,Wt*nt,(Ft-ne)*et,(Wt-_t)*nt,(Ft-_t)*et,(Wt-ne)*nt)),$t.add(new go.PathSegment(go.PathSegment.Line,.45*et,nt)),$t.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),$t.add(new go.PathSegment(go.PathSegment.Line,.2*et,.35*nt)),_t=.025,ne=qt*_t,Ft=.175,Wt=.35,$t.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Wt-_t)*nt,(Ft+_t)*et,(Wt-ne)*nt,(Ft+ne)*et,(Wt-_t)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-_t)*et,Wt*nt,(Ft-ne)*et,(Wt-_t)*nt,(Ft-_t)*et,(Wt-ne)*nt)),$t.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*nt)),$t.add(new go.PathSegment(go.PathSegment.Line,0,.6*nt)),$t.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),_t=.05,ne=qt*_t,Ft=.05,Wt=.25,$t.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Wt-_t)*nt,(Ft-_t)*et,(Wt-ne)*nt,(Ft-ne)*et,(Wt-_t)*nt)),$t.add(new go.PathSegment(go.PathSegment.Line,.5*et,.2*nt)),gt.spot1=new go.Spot(.2,.2),gt.spot2=new go.Spot(.8,.65),gt}),go.Shape.setFigureParameter("Card",0,new Ye("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;isNaN(gt)&&(gt=.2);var lt=new go.Geometry,pt=new go.PathFigure(et,0,!0);return lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,gt*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,gt*et,0).close()),lt.spot1=new go.Spot(0,gt),lt.spot2=go.Spot.BottomRight,lt}),go.Shape.defineFigureGenerator("Collate",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.5*et,.5*nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt));var pt=new go.PathFigure(.5*et,.5*nt,!0);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),gt.spot1=new go.Spot(.25,0),gt.spot2=new go.Spot(.75,.25),gt}),go.Shape.defineFigureGenerator("CreateRequest",function(Nt,et,nt){var gt=new go.Geometry,lt=Nt?Nt.parameter1:NaN;isNaN(lt)&&(lt=.1);var pt=new go.PathFigure(0,0,!0);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var vt=new go.PathFigure(0,lt*nt,!1);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,lt*nt)),vt.add(new go.PathSegment(go.PathSegment.Move,0,(1-lt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,(1-lt)*nt)),gt}),go.Shape.defineFigureGenerator("Database",function(Nt,et,nt){var gt=new go.Geometry,lt=qt*.5,pt=qt*.1,vt=new go.PathFigure(et,.1*nt,!0);gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.9+pt)*nt,(.5+lt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,(.5-lt)*et,nt,0,(.9+pt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-pt)*nt,(.5-lt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*nt,(.5+lt)*et,0,et,(.1-pt)*nt));var Lt=new go.PathFigure(et,.1*nt,!1);return gt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*nt,et,(.1+pt)*nt,(.5+lt)*et,.2*nt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*nt,(.5-lt)*et,.2*nt,0,(.1+pt)*nt)),Lt.add(new go.PathSegment(go.PathSegment.Move,et,.2*nt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*nt,et,(.2+pt)*nt,(.5+lt)*et,.3*nt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*nt,(.5-lt)*et,.3*nt,0,(.2+pt)*nt)),Lt.add(new go.PathSegment(go.PathSegment.Move,et,.3*nt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.4*nt,et,(.3+pt)*nt,(.5+lt)*et,.4*nt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*nt,(.5-lt)*et,.4*nt,0,(.3+pt)*nt)),gt.spot1=new go.Spot(0,.4),gt.spot2=new go.Spot(1,.9),gt}),go.Shape.defineFigureGenerator("DataStorage",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,nt,et,0,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.9*nt,.25*et,.1*nt).close()),gt.spot1=new go.Spot(.226,0),gt.spot2=new go.Spot(.81,1),gt}),go.Shape.defineFigureGenerator("DiskStorage",function(Nt,et,nt){var gt=new go.Geometry,lt=qt*.5,pt=qt*.1,vt=new go.PathFigure(et,.1*nt,!0);gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.9+pt)*nt,(.5+lt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,(.5-lt)*et,nt,0,(.9+pt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-pt)*nt,(.5-lt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*nt,(.5+lt)*et,0,et,(.1-pt)*nt));var Lt=new go.PathFigure(et,.1*nt,!1);return gt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*nt,et,(.1+pt)*nt,(.5+lt)*et,.2*nt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*nt,(.5-lt)*et,.2*nt,0,(.1+pt)*nt)),Lt.add(new go.PathSegment(go.PathSegment.Move,et,.2*nt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*nt,et,(.2+pt)*nt,(.5+lt)*et,.3*nt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*nt,(.5-lt)*et,.3*nt,0,(.2+pt)*nt)),gt.spot1=new go.Spot(0,.3),gt.spot2=new go.Spot(1,.9),gt}),go.Shape.defineFigureGenerator("Display",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.25*et,0,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,nt,et,0,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.25*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt).close()),gt.spot1=new go.Spot(.25,0),gt.spot2=new go.Spot(.75,1),gt}),go.Shape.defineFigureGenerator("DividedEvent",function(Nt,et,nt){var gt=new go.Geometry,lt=Nt?Nt.parameter1:NaN;isNaN(lt)?lt=.2:lt<.15&&(lt=.15);var pt=qt*.2,vt=new go.PathFigure(0,.2*nt,!0);gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,0,(.2-pt)*nt,(.2-pt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.2*nt,(.8+pt)*et,0,et,(.2-pt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,nt,et,(.8+pt)*nt,(.8+pt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*nt,(.2-pt)*et,nt,0,(.8+pt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt));var Lt=new go.PathFigure(0,lt*nt,!1);return gt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,et,lt*nt)),gt}),go.Shape.defineFigureGenerator("DividedProcess",function(Nt,et,nt){var gt=new go.Geometry,lt=Nt?Nt.parameter1:NaN;(isNaN(lt)||lt<.1)&&(lt=.1);var pt=new go.PathFigure(0,0,!0);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var vt=new go.PathFigure(0,lt*nt,!1);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,lt*nt)),gt}),go.Shape.defineFigureGenerator("Document",function(Nt,et,nt){var gt=new go.Geometry;nt=nt/.8;var lt=new go.PathFigure(0,.7*nt,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.5*et,.4*nt,.5*et,nt).close()),gt.spot1=go.Spot.TopLeft,gt.spot2=new go.Spot(1,.6),gt}),go.Shape.defineFigureGenerator("ExternalOrganization",function(Nt,et,nt){var gt=new go.Geometry,lt=Nt?Nt.parameter1:NaN;(isNaN(lt)||lt<.2)&&(lt=.2);var pt=new go.PathFigure(0,0,!0);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var vt=new go.PathFigure(lt*et,0,!1);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,0,lt*nt)),vt.add(new go.PathSegment(go.PathSegment.Move,et,lt*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Move,0,(1-lt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,lt*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Move,(1-lt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,(1-lt)*nt)),gt}),go.Shape.defineFigureGenerator("ExternalProcess",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.5*et,0,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt).close());var pt=new go.PathFigure(.1*et,.4*nt,!1);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.9*et,.6*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.6*et,.1*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.1*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.4*et,.9*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.9*nt)),gt.spot1=new go.Spot(.25,.25),gt.spot2=new go.Spot(.75,.75),gt}),go.Shape.defineFigureGenerator("File",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var pt=new go.PathFigure(.75*et,0,!1);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),gt.spot1=new go.Spot(0,.25),gt.spot2=go.Spot.BottomRight,gt}),go.Shape.defineFigureGenerator("Interrupt",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(et,.5*nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt));var pt=new go.PathFigure(et,.5*nt,!1);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt));var vt=new go.PathFigure(et,.5*nt,!1);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.spot1=new go.Spot(0,.25),gt.spot2=new go.Spot(.5,.75),gt}),go.Shape.defineFigureGenerator("InternalStorage",function(Nt,et,nt){var gt=new go.Geometry,lt=Nt?Nt.parameter1:NaN,pt=Nt?Nt.parameter2:NaN;isNaN(lt)&&(lt=.1),isNaN(pt)&&(pt=.1);var vt=new go.PathFigure(0,0,!0);gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var Lt=new go.PathFigure(lt*et,0,!1);return gt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,lt*et,nt)),Lt.add(new go.PathSegment(go.PathSegment.Move,0,pt*nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,et,pt*nt)),gt}),go.Shape.defineFigureGenerator("Junction",function(Nt,et,nt){var gt=new go.Geometry,lt=1/Math.SQRT2,pt=(1-1/Math.SQRT2)/2,vt=qt*.5,Lt=.5,Ft=new go.PathFigure(et,Lt*nt,!0);gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,Lt*et,nt,et,(Lt+vt)*nt,(Lt+vt)*et,nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,0,Lt*nt,(Lt-vt)*et,nt,0,(Lt+vt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,Lt*et,0,0,(Lt-vt)*nt,(Lt-vt)*et,0)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,et,Lt*nt,(Lt+vt)*et,0,et,(Lt-vt)*nt));var Wt=new go.PathFigure((pt+lt)*et,(pt+lt)*nt,!1);return gt.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Line,pt*et,pt*nt)),Wt.add(new go.PathSegment(go.PathSegment.Move,pt*et,(pt+lt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Line,(pt+lt)*et,pt*nt)),gt}),go.Shape.defineFigureGenerator("LinedDocument",function(Nt,et,nt){var gt=new go.Geometry;nt=nt/.8;var lt=new go.PathFigure(0,.7*nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.5*et,.4*nt,.5*et,nt).close());var pt=new go.PathFigure(.1*et,0,!1);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.75*nt)),gt.spot1=new go.Spot(.1,0),gt.spot2=new go.Spot(1,.6),gt}),go.Shape.defineFigureGenerator("LoopLimit",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,nt,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.25*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt).close()),gt.spot1=new go.Spot(0,.25),gt.spot2=go.Spot.BottomRight,gt}),go.Shape.defineFigureGenerator("MagneticTape",function(Nt,et,nt){var gt=new go.Geometry,lt=qt*.5,pt=.5,vt=new go.PathFigure(.5*et,nt,!0);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,pt*nt,(pt-lt)*et,nt,0,(pt+lt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,0,0,(pt-lt)*nt,(pt-lt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,pt*nt,(pt+lt)*et,0,et,(pt-lt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,(pt+.1)*et,.9*nt,et,(pt+lt)*nt,(pt+lt)*et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),gt.spot1=new go.Spot(.15,.15),gt.spot2=new go.Spot(.85,.8),gt}),go.Shape.defineFigureGenerator("ManualInput",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(et,0,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt).close()),gt.spot1=new go.Spot(0,.25),gt.spot2=go.Spot.BottomRight,gt}),go.Shape.defineFigureGenerator("MessageFromUser",function(Nt,et,nt){var gt=new go.Geometry,lt=Nt?Nt.parameter1:NaN;isNaN(lt)&&(lt=.7);var pt=new go.PathFigure(0,0,!0);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,lt*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),gt.spot1=go.Spot.TopLeft,gt}),go.Shape.defineFigureGenerator("MicroformProcessing",function(Nt,et,nt){var gt=new go.Geometry,lt=Nt?Nt.parameter1:NaN;isNaN(lt)&&(lt=.25);var pt=new go.PathFigure(0,0,!0);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,lt*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,(1-lt)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),gt}),go.Shape.defineFigureGenerator("MicroformRecording",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),gt.spot1=new go.Spot(0,.25),gt.spot2=new go.Spot(1,.75),gt}),go.Shape.defineFigureGenerator("MultiDocument",function(Nt,et,nt){var gt=new go.Geometry;nt=nt/.8;var lt=new go.PathFigure(et,0,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.44*nt,.96*et,.47*nt,.93*et,.45*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.54*nt,.86*et,.57*nt,.83*et,.55*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.4*et,.4*nt,.4*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,0).close());var pt=new go.PathFigure(.1*et,.2*nt,!1);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.54*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.44*nt)),gt.spot1=new go.Spot(0,.25),gt.spot2=new go.Spot(.8,.77),gt}),go.Shape.defineFigureGenerator("MultiProcess",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.1*et,.1*nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.9*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*nt).close());var pt=new go.PathFigure(.2*et,.1*nt,!1);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.1*et,.2*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.9*nt)),gt.spot1=new go.Spot(0,.2),gt.spot2=new go.Spot(.8,1),gt}),go.Shape.defineFigureGenerator("OfflineStorage",function(Nt,et,nt){var gt=new go.Geometry,lt=Nt?Nt.parameter1:NaN;isNaN(lt)&&(lt=.1);var pt=1-lt,vt=new go.PathFigure(0,0,!0);gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt).close());var Lt=new go.PathFigure(.5*lt*et,lt*nt,!1);return gt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,(1-.5*lt)*et,lt*nt)),gt}),go.Shape.defineFigureGenerator("OffPageConnector",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),gt.spot1=go.Spot.TopLeft,gt.spot2=new go.Spot(.75,1),gt}),go.Shape.defineFigureGenerator("Or",function(Nt,et,nt){var gt=new go.Geometry,lt=qt*.5,pt=.5,vt=new go.PathFigure(et,pt*nt,!0);gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,nt,et,(pt+lt)*nt,(pt+lt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,pt*nt,(pt-lt)*et,nt,0,(pt+lt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,0,0,(pt-lt)*nt,(pt-lt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,pt*nt,(pt+lt)*et,0,et,(pt-lt)*nt));var Lt=new go.PathFigure(et,.5*nt,!1);return gt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),Lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),gt}),go.Shape.defineFigureGenerator("PaperTape",function(Nt,et,nt){var gt=new go.Geometry;nt=nt/.8;var lt=new go.PathFigure(0,.7*nt,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.3*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,et,.3*nt,.5*et,.6*nt,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.5*et,.4*nt,.5*et,nt).close()),gt.spot1=new go.Spot(0,.49),gt.spot2=new go.Spot(1,.75),gt}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(Nt,et,nt){var gt=new go.Geometry,lt=Nt?Nt.parameter1:NaN,pt=Nt?Nt.parameter2:NaN;isNaN(lt)&&(lt=.1),isNaN(pt)&&(pt=.3);var vt=new go.PathFigure(0,0,!0);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,(1-pt)*et,.5*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),gt}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(Nt,et,nt){var gt=new go.Geometry,lt=Nt?Nt.parameter1:NaN,pt=Nt?Nt.parameter2:NaN;isNaN(lt)&&(lt=.1),isNaN(pt)&&(pt=.3);var vt=new go.PathFigure(0,0,!0);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,(1-pt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,(1-pt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),gt}),go.Shape.defineFigureGenerator("Procedure",function(Nt,et,nt){var gt=new go.Geometry,lt=Nt?Nt.parameter1:NaN;isNaN(lt)&&(lt=.1);var pt=new go.PathFigure(0,0,!0);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var vt=new go.PathFigure((1-lt)*et,0,!1);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Move,lt*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,lt*et,nt)),gt}),go.Shape.defineFigureGenerator("Process",function(Nt,et,nt){var gt=new go.Geometry,lt=Nt?Nt.parameter1:NaN;isNaN(lt)&&(lt=.1);var pt=new go.PathFigure(0,0,!0);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var vt=new go.PathFigure(lt*et,0,!1);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,lt*et,nt)),gt.spot2=go.Spot.BottomRight,gt}),go.Shape.defineFigureGenerator("Sort",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.5*et,0,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt).close());var pt=new go.PathFigure(0,.5*nt,!1);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),gt.spot1=new go.Spot(.25,.25),gt.spot2=new go.Spot(.75,.5),gt}),go.Shape.defineFigureGenerator("Start",function(Nt,et,nt){var gt=new go.Geometry,lt=Nt?Nt.parameter1:NaN;isNaN(lt)&&(lt=.25);var pt=new go.PathFigure(lt*et,0,!0);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*nt,.25*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*nt,.25*et,.5*nt));var vt=new go.PathFigure(lt*et,0,!1);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,lt*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Move,(1-lt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,nt)),gt.spot1=new go.Spot(lt,0),gt.spot2=new go.Spot(1-lt,1),gt}),go.Shape.defineFigureGenerator("Terminator",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.25*et,0,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*nt,.25*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*nt,.25*et,.5*nt)),gt.spot1=new go.Spot(.23,0),gt.spot2=new go.Spot(.77,1),gt}),go.Shape.defineFigureGenerator("TransmittalTape",function(Nt,et,nt){var gt=new go.Geometry,lt=Nt?Nt.parameter1:NaN;isNaN(lt)&&(lt=.1);var pt=new go.PathFigure(0,0,!0);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.75*et,(1-lt)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,(1-lt)*nt).close()),gt.spot1=go.Spot.TopLeft,gt}),go.Shape.defineFigureGenerator("AndGate",function(Nt,et,nt){var gt=new go.Geometry,lt=qt*.5,pt=new go.PathFigure(0,0,!0);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),pt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,(.5+lt)*et,0,et,(.5-lt)*nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.5+lt)*nt,(.5+lt)*et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),gt.spot1=go.Spot.TopLeft,gt.spot2=new go.Spot(.55,1),gt}),go.Shape.defineFigureGenerator("Buffer",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),gt.spot1=new go.Spot(0,.25),gt.spot2=new go.Spot(.5,.75),gt}),go.Shape.defineFigureGenerator("Clock",function(Nt,et,nt){var gt=new go.Geometry,lt=qt*.5,pt=.5,vt=new go.PathFigure(et,pt*nt,!0);gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,nt,et,(pt+lt)*nt,(pt+lt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,pt*nt,(pt-lt)*et,nt,0,(pt+lt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,0,0,(pt-lt)*nt,(pt-lt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,pt*nt,(pt+lt)*et,0,et,(pt-lt)*nt));var Lt=new go.PathFigure(et,pt*nt,!1);gt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,et,pt*nt));var Ft=new go.PathFigure(.8*et,.75*nt,!1);return gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Line,.8*et,.25*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.6*et,.25*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.6*et,.75*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.4*et,.75*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.4*et,.25*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,.25*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,.75*nt)),gt}),go.Shape.defineFigureGenerator("Ground",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.5*et,0,!1);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.3*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.4*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,nt)),gt}),go.Shape.defineFigureGenerator("Inverter",function(Nt,et,nt){var gt=new go.Geometry,lt=qt*.1,pt=.1,vt=.9,Lt=.5,Ft=new go.PathFigure(.8*et,.5*nt,!0);gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Line,0,nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ft.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*nt));var Wt=new go.PathFigure((vt+pt)*et,Lt*nt,!0);return gt.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt+pt)*nt,(vt+pt)*et,(Lt+lt)*nt,(vt+lt)*et,(Lt+pt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-pt)*et,Lt*nt,(vt-lt)*et,(Lt+pt)*nt,(vt-pt)*et,(Lt+lt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt-pt)*nt,(vt-pt)*et,(Lt-lt)*nt,(vt-lt)*et,(Lt-pt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*et,Lt*nt,(vt+lt)*et,(Lt-pt)*nt,(vt+pt)*et,(Lt-lt)*nt)),gt.spot1=new go.Spot(0,.25),gt.spot2=new go.Spot(.4,.75),gt}),go.Shape.defineFigureGenerator("NandGate",function(Nt,et,nt){var gt=new go.Geometry,lt=qt*.5,pt=qt*.4,vt=qt*.1,Lt=.1,Ft=.9,Wt=.5,Kt=new go.PathFigure(.8*et,.5*nt,!0);gt.add(Kt),Kt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,nt,.8*et,(.5+pt)*nt,(.4+lt)*et,nt)),Kt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),Kt.add(new go.PathSegment(go.PathSegment.Line,0,0)),Kt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*nt,(.4+lt)*et,0,.8*et,(.5-pt)*nt));var _t=new go.PathFigure((Ft+Lt)*et,Wt*nt,!0);return gt.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Wt+Lt)*nt,(Ft+Lt)*et,(Wt+vt)*nt,(Ft+vt)*et,(Wt+Lt)*nt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-Lt)*et,Wt*nt,(Ft-vt)*et,(Wt+Lt)*nt,(Ft-Lt)*et,(Wt+vt)*nt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Wt-Lt)*nt,(Ft-Lt)*et,(Wt-vt)*nt,(Ft-vt)*et,(Wt-Lt)*nt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+Lt)*et,Wt*nt,(Ft+vt)*et,(Wt-Lt)*nt,(Ft+Lt)*et,(Wt-vt)*nt)),gt.spot1=new go.Spot(0,.05),gt.spot2=new go.Spot(.55,.95),gt}),go.Shape.defineFigureGenerator("NorGate",function(Nt,et,nt){var gt=new go.Geometry,lt=.5,pt=qt*lt,vt=0,Lt=.5,Ft=new go.PathFigure(.8*et,.5*nt,!0);gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,0,nt,.7*et,(Lt+pt)*nt,(vt+pt)*et,(Lt+lt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*nt,.25*et,.25*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*nt,(vt+pt)*et,(Lt-lt)*nt,.7*et,(Lt-pt)*nt)),lt=.1,pt=qt*.1,vt=.9,Lt=.5;var Wt=new go.PathFigure((vt-lt)*et,Lt*nt,!0);return gt.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt-lt)*nt,(vt-lt)*et,(Lt-pt)*nt,(vt-pt)*et,(Lt-lt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+lt)*et,Lt*nt,(vt+pt)*et,(Lt-lt)*nt,(vt+lt)*et,(Lt-pt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt+lt)*nt,(vt+lt)*et,(Lt+pt)*nt,(vt+pt)*et,(Lt+lt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-lt)*et,Lt*nt,(vt-pt)*et,(Lt+lt)*nt,(vt-lt)*et,(Lt+pt)*nt)),gt.spot1=new go.Spot(.2,.25),gt.spot2=new go.Spot(.6,.75),gt}),go.Shape.defineFigureGenerator("OrGate",function(Nt,et,nt){var gt=new go.Geometry,lt=.5,pt=qt*lt,vt=0,Lt=.5,Ft=new go.PathFigure(0,0,!0);return gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,(vt+pt+pt)*et,(Lt-lt)*nt,.8*et,(Lt-pt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,0,nt,.8*et,(Lt+pt)*nt,(vt+pt+pt)*et,(Lt+lt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*nt,.25*et,.25*nt).close()),gt.spot1=new go.Spot(.2,.25),gt.spot2=new go.Spot(.75,.75),gt}),go.Shape.defineFigureGenerator("XnorGate",function(Nt,et,nt){var gt=new go.Geometry,lt=.5,pt=qt*lt,vt=.2,Lt=.5,Ft=new go.PathFigure(.1*et,0,!1);gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,nt,.35*et,.25*nt,.35*et,.75*nt));var Wt=new go.PathFigure(.8*et,.5*nt,!0);gt.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,nt,.7*et,(Lt+pt)*nt,(vt+pt)*et,(Lt+lt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*nt,.45*et,.25*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*nt,(vt+pt)*et,(Lt-lt)*nt,.7*et,(Lt-pt)*nt)),lt=.1,pt=qt*.1,vt=.9,Lt=.5;var Kt=new go.PathFigure((vt-lt)*et,Lt*nt,!0);return gt.add(Kt),Kt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt-lt)*nt,(vt-lt)*et,(Lt-pt)*nt,(vt-pt)*et,(Lt-lt)*nt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+lt)*et,Lt*nt,(vt+pt)*et,(Lt-lt)*nt,(vt+lt)*et,(Lt-pt)*nt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt+lt)*nt,(vt+lt)*et,(Lt+pt)*nt,(vt+pt)*et,(Lt+lt)*nt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-lt)*et,Lt*nt,(vt-pt)*et,(Lt+lt)*nt,(vt-lt)*et,(Lt+pt)*nt)),gt.spot1=new go.Spot(.4,.25),gt.spot2=new go.Spot(.65,.75),gt}),go.Shape.defineFigureGenerator("XorGate",function(Nt,et,nt){var gt=new go.Geometry,lt=.5,pt=qt*lt,vt=.2,Lt=.5,Ft=new go.PathFigure(.1*et,0,!1);gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,nt,.35*et,.25*nt,.35*et,.75*nt));var Wt=new go.PathFigure(.2*et,0,!0);return gt.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,(vt+pt)*et,(Lt-lt)*nt,.9*et,(Lt-pt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,nt,.9*et,(Lt+pt)*nt,(vt+pt)*et,(Lt+lt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*nt,.45*et,.25*nt).close()),gt.spot1=new go.Spot(.4,.25),gt.spot2=new go.Spot(.8,.75),gt}),go.Shape.defineFigureGenerator("Capacitor",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!1);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt}),go.Shape.defineFigureGenerator("Resistor",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,.5*nt,!1);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.5*nt)),gt}),go.Shape.defineFigureGenerator("Inductor",function(Nt,et,nt){var gt=new go.Geometry,lt=qt*.1,pt=.1,vt=.1,Lt=.5,Ft=new go.PathFigure((vt-lt*.5)*et,nt,!1);return gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*et,0,(vt-lt)*et,nt,(vt-pt)*et,0)),vt=.3,Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,nt,(vt+pt)*et,0,(vt+lt)*et,nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*et,0,(vt-lt)*et,nt,(vt-pt)*et,0)),vt=.5,Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,nt,(vt+pt)*et,0,(vt+lt)*et,nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*et,0,(vt-lt)*et,nt,(vt-pt)*et,0)),vt=.7,Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,nt,(vt+pt)*et,0,(vt+lt)*et,nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*et,0,(vt-lt)*et,nt,(vt-pt)*et,0)),vt=.9,Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt+lt*.5)*et,nt,(vt+pt)*et,0,(vt+lt)*et,nt)),gt}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Nt,et,nt){var gt=new go.Geometry,lt=qt*.5,pt=.5,vt=.5,Lt=.5,Ft=new go.PathFigure((vt-pt)*et,Lt*nt,!1);return gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt-pt)*nt,(vt-pt)*et,(Lt-lt)*nt,(vt-lt)*et,(Lt-pt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*et,Lt*nt,(vt+lt)*et,(Lt-pt)*nt,(vt+pt)*et,(Lt-lt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt+pt)*nt,(vt+pt)*et,(Lt+lt)*nt,(vt+lt)*et,(Lt+pt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt-pt)*et,Lt*nt,(vt-lt)*et,(Lt+pt)*nt,(vt-pt)*et,(Lt+lt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Move,(vt-pt+.1)*et,Lt*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt-.1)*et,Lt*nt,vt*et,(Lt-pt)*nt,vt*et,(Lt+pt)*nt)),gt}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,.75*nt,!1);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt}),go.Shape.defineFigureGenerator("Diode",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(et,0,!1);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.spot1=new go.Spot(0,.25),gt.spot2=new go.Spot(.5,.75),gt}),go.Shape.defineFigureGenerator("Wifi",function(Nt,et,nt){var gt=new go.Geometry,lt=et,pt=nt;et=et*.38,nt=nt*.6;var vt=qt*.8,Lt=.8,Ft=0,Wt=.5,Kt=(lt-et)/2,_t=(pt-nt)/2,ne=new go.PathFigure(Ft*et+Kt,(Wt+Lt)*nt+_t,!0);gt.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-Lt)*et+Kt,Wt*nt+_t,(Ft-vt)*et+Kt,(Wt+Lt)*nt+_t,(Ft-Lt)*et+Kt,(Wt+vt)*nt+_t)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et+Kt,(Wt-Lt)*nt+_t,(Ft-Lt)*et+Kt,(Wt-vt)*nt+_t,(Ft-vt)*et+Kt,(Wt-Lt)*nt+_t)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-Lt+vt*.5)*et+Kt,Wt*nt+_t,Ft*et+Kt,(Wt-Lt)*nt+_t,(Ft-Lt+vt*.5)*et+Kt,(Wt-vt)*nt+_t)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et+Kt,(Wt+Lt)*nt+_t,(Ft-Lt+vt*.5)*et+Kt,(Wt+vt)*nt+_t,Ft*et+Kt,(Wt+Lt)*nt+_t).close()),vt=qt*.4,Lt=.4,Ft=.2,Wt=.5;var $t=new go.PathFigure(Ft*et+Kt,(Wt+Lt)*nt+_t,!0);gt.add($t),$t.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-Lt)*et+Kt,Wt*nt+_t,(Ft-vt)*et+Kt,(Wt+Lt)*nt+_t,(Ft-Lt)*et+Kt,(Wt+vt)*nt+_t)),$t.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et+Kt,(Wt-Lt)*nt+_t,(Ft-Lt)*et+Kt,(Wt-vt)*nt+_t,(Ft-vt)*et+Kt,(Wt-Lt)*nt+_t)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-Lt+vt*.5)*et+Kt,Wt*nt+_t,Ft*et+Kt,(Wt-Lt)*nt+_t,(Ft-Lt+vt*.5)*et+Kt,(Wt-vt)*nt+_t)),$t.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et+Kt,(Wt+Lt)*nt+_t,(Ft-Lt+vt*.5)*et+Kt,(Wt+vt)*nt+_t,Ft*et+Kt,(Wt+Lt)*nt+_t).close()),vt=qt*.2,Lt=.2,Ft=.5,Wt=.5;var ve=new go.PathFigure((Ft-Lt)*et+Kt,Wt*nt+_t,!0);gt.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et+Kt,(Wt-Lt)*nt+_t,(Ft-Lt)*et+Kt,(Wt-vt)*nt+_t,(Ft-vt)*et+Kt,(Wt-Lt)*nt+_t)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+Lt)*et+Kt,Wt*nt+_t,(Ft+vt)*et+Kt,(Wt-Lt)*nt+_t,(Ft+Lt)*et+Kt,(Wt-vt)*nt+_t)),ve.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et+Kt,(Wt+Lt)*nt+_t,(Ft+Lt)*et+Kt,(Wt+vt)*nt+_t,(Ft+vt)*et+Kt,(Wt+Lt)*nt+_t)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-Lt)*et+Kt,Wt*nt+_t,(Ft-vt)*et+Kt,(Wt+Lt)*nt+_t,(Ft-Lt)*et+Kt,(Wt+vt)*nt+_t)),vt=qt*.4,Lt=.4,Ft=.8,Wt=.5;var re=new go.PathFigure(Ft*et+Kt,(Wt-Lt)*nt+_t,!0);gt.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+Lt)*et+Kt,Wt*nt+_t,(Ft+vt)*et+Kt,(Wt-Lt)*nt+_t,(Ft+Lt)*et+Kt,(Wt-vt)*nt+_t)),re.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et+Kt,(Wt+Lt)*nt+_t,(Ft+Lt)*et+Kt,(Wt+vt)*nt+_t,(Ft+vt)*et+Kt,(Wt+Lt)*nt+_t)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+Lt-vt*.5)*et+Kt,Wt*nt+_t,Ft*et+Kt,(Wt+Lt)*nt+_t,(Ft+Lt-vt*.5)*et+Kt,(Wt+vt)*nt+_t)),re.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et+Kt,(Wt-Lt)*nt+_t,(Ft+Lt-vt*.5)*et+Kt,(Wt-vt)*nt+_t,Ft*et+Kt,(Wt-Lt)*nt+_t).close()),vt=qt*.8,Lt=.8,Ft=1,Wt=.5;var Oe=new go.PathFigure(Ft*et+Kt,(Wt-Lt)*nt+_t,!0);return gt.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+Lt)*et+Kt,Wt*nt+_t,(Ft+vt)*et+Kt,(Wt-Lt)*nt+_t,(Ft+Lt)*et+Kt,(Wt-vt)*nt+_t)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et+Kt,(Wt+Lt)*nt+_t,(Ft+Lt)*et+Kt,(Wt+vt)*nt+_t,(Ft+vt)*et+Kt,(Wt+Lt)*nt+_t)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+Lt-vt*.5)*et+Kt,Wt*nt+_t,Ft*et+Kt,(Wt+Lt)*nt+_t,(Ft+Lt-vt*.5)*et+Kt,(Wt+vt)*nt+_t)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et+Kt,(Wt-Lt)*nt+_t,(Ft+Lt-vt*.5)*et+Kt,(Wt-vt)*nt+_t,Ft*et+Kt,(Wt-Lt)*nt+_t).close()),gt}),go.Shape.defineFigureGenerator("Email",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var pt=new go.PathFigure(0,0,!1);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Move,0,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.54*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.54*nt)),gt}),go.Shape.defineFigureGenerator("Ethernet",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.35*et,0,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.65*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*et,0).close());var pt=new go.PathFigure(.1*et,nt,!0,!0);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.6*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.1*et,nt).close());var vt=new go.PathFigure(.6*et,nt,!0,!0);gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.6*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.6*et,nt).close());var Lt=new go.PathFigure(0,.5*nt,!1);return gt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),Lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*nt)),Lt.add(new go.PathSegment(go.PathSegment.Move,.75*et,.5*nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.6*nt)),Lt.add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.6*nt)),gt}),go.Shape.defineFigureGenerator("Power",function(Nt,et,nt){var gt=new go.Geometry,lt=qt*.4,pt=.4,vt=.5,Lt=.5,Ft=kt(),Wt=kt(),Kt=kt(),_t=kt();Te(vt,Lt-pt,vt+lt,Lt-pt,vt+pt,Lt-lt,vt+pt,Lt,.5,Ft,Ft,Wt,Kt,_t);var ne=Yt(Wt.x,Wt.y),$t=new go.PathFigure(Wt.x*et,Wt.y*nt,!0);gt.add($t),$t.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*et,Lt*nt,Kt.x*et,Kt.y*nt,_t.x*et,_t.y*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt+pt)*nt,(vt+pt)*et,(Lt+lt)*nt,(vt+lt)*et,(Lt+pt)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(vt-pt)*et,Lt*nt,(vt-lt)*et,(Lt+pt)*nt,(vt-pt)*et,(Lt+lt)*nt)),Te(vt-pt,Lt,vt-pt,Lt-lt,vt-lt,Lt-pt,vt,Lt-pt,.5,Kt,_t,Wt,Ft,Ft),$t.add(new go.PathSegment(go.PathSegment.Bezier,Wt.x*et,Wt.y*nt,Kt.x*et,Kt.y*nt,_t.x*et,_t.y*nt)),lt=qt*.3,pt=.3,Te(vt-pt,Lt,vt-pt,Lt-lt,vt-lt,Lt-pt,vt,Lt-pt,.5,Kt,_t,Wt,Ft,Ft),$t.add(new go.PathSegment(go.PathSegment.Line,Wt.x*et,Wt.y*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(vt-pt)*et,Lt*nt,_t.x*et,_t.y*nt,Kt.x*et,Kt.y*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt+pt)*nt,(vt-pt)*et,(Lt+lt)*nt,(vt-lt)*et,(Lt+pt)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*et,Lt*nt,(vt+lt)*et,(Lt+pt)*nt,(vt+pt)*et,(Lt+lt)*nt)),Te(vt,Lt-pt,vt+lt,Lt-pt,vt+pt,Lt-lt,vt+pt,Lt,.5,Ft,Ft,Wt,Kt,_t),$t.add(new go.PathSegment(go.PathSegment.Bezier,Wt.x*et,Wt.y*nt,_t.x*et,_t.y*nt,Kt.x*et,Kt.y*nt).close());var $t=new go.PathFigure(.45*et,0,!0);return gt.add($t),$t.add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*nt)),$t.add(new go.PathSegment(go.PathSegment.Line,.55*et,.5*nt)),$t.add(new go.PathSegment(go.PathSegment.Line,.55*et,0).close()),ue(Ft),ue(Wt),ue(Kt),ue(_t),ue(ne),gt.spot1=new go.Spot(.25,.45),gt.spot2=new go.Spot(.75,.8),gt}),go.Shape.defineFigureGenerator("Fallout",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,nt/2,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,180,360,et/2,nt/2,et/2,nt/2));function pt(vt,Lt,Ft){vt.add(new go.PathSegment(go.PathSegment.Move,(.3+Lt)*et,(.8+Ft)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,(.5+Lt)*et,(.5+Ft)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,(.1+Lt)*et,(.5+Ft)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,(.3+Lt)*et,(.8+Ft)*nt).close())}return pt(lt,0,0),pt(lt,.4,0),pt(lt,.2,-.3),gt}),go.Shape.defineFigureGenerator("IrritationHazard",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.2*et,0,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt).close()),gt.spot1=new go.Spot(.3,.3),gt.spot2=new go.Spot(.7,.7),gt}),go.Shape.defineFigureGenerator("ElectricalHazard",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.37*et,0,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.11*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.77*et,.04*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.33*et,.49*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.37*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.63*et,.86*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.77*et,.91*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.34*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.34*et,.78*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.44*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.56*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.68*nt).close()),gt}),go.Shape.defineFigureGenerator("FireHazard",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.1*et,nt,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.29*et,0,-.25*et,.63*nt,.45*et,.44*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.51*et,.42*nt,.48*et,.17*nt,.54*et,.35*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.59*et,.18*nt,.59*et,.29*nt,.58*et,.28*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,.6*nt,.8*et,.34*nt,.88*et,.43*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.88*et,.31*nt,.87*et,.48*nt,.88*et,.43*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,nt,1.17*et,.76*nt,.82*et,.8*nt).close()),gt.spot1=new go.Spot(.07,.445),gt.spot2=new go.Spot(.884,.958),gt}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(Nt,et,nt){var gt=new go.Geometry,lt=.5,pt=0,vt=0,Lt=lt*qt,Ft=.4*Math.SQRT2/2+.5,Wt=.5-.5*Math.SQRT2/2,Kt=1,_t=.5,ne=.5,$t=0,ve=new go.PathFigure(Ft*et,(1-Wt)*nt,!1);return gt.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,Kt*et,_t*nt,Kt*et,.7*nt,Kt*et,_t*nt)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ne+pt)*et,($t+pt)*nt,(.5+lt+pt)*et,(.5-Lt+pt)*nt,(.5+Lt+pt)*et,(.5-lt+pt)*nt)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(.5-lt+pt)*et,(.5+vt)*nt,(.5-Lt+pt)*et,(.5-lt+vt)*nt,(.5-lt+pt)*et,(.5-Lt+vt)*nt)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(.35+pt)*et,.9*nt,(.5-lt+pt)*et,(.5+Lt+vt)*nt,(.5-Lt+pt)*et,.9*nt)),ve.add(new go.PathSegment(go.PathSegment.Move,(.25+pt)*et,.8*nt)),ve.add(new go.PathSegment(go.PathSegment.Line,(.35+pt)*et,.9*nt)),ve.add(new go.PathSegment(go.PathSegment.Line,(.2+pt)*et,.95*nt)),gt}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!1);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!1);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!1);gt.add(lt);var pt=new go.PathFigure(et,nt,!1);gt.add(pt);var vt=new go.PathFigure(0,.5*nt,!1);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*nt,.2*et,.35*nt,.3*et,.35*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,.7*et,.65*nt,.8*et,.65*nt)),gt}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,.5*nt,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt).close()),gt}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,.2*nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt).close());var lt=new go.PathFigure(0,.2*nt,!1);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),gt}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.7*et,nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,0,.6*et,.5*nt,0,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,nt,.4*et,.5*nt,et,.5*nt).close());var pt=new go.PathFigure(.45*et,.73*nt,!1);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.73*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.38*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.63*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.31*et,.27*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.56*et,.27*nt)),gt}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!1);gt.add(lt);var pt=new go.PathFigure(.335*et,(1-.555)*nt,!0);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,et,.68*nt,(1-.12)*et,.46*nt,(1-.02)*et,.54*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.68*nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.335*et,(1-.555)*nt,.02*et,.54*nt,.12*et,.46*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.365*et,(1-.595)*nt));var vt=.5-.285,Lt=.5,Ft=vt,Wt=Math.PI/4,Kt=4*(1-Math.cos(Wt))/(3*Math.sin(Wt)),_t=Kt*.5,ne=vt,$t=vt,ve=Kt*ne,re=Kt*$t;pt.add(new go.PathSegment(go.PathSegment.Bezier,(Lt-ne)*et,Ft*nt,(Lt-(ve+ne)/2)*et,(Ft+($t+re)/2)*nt,(Lt-ne)*et,(Ft+re)*nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,Lt*et,(Ft-$t)*nt,(Lt-ne)*et,(Ft-re)*nt,(Lt-ve)*et,(Ft-$t)*nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(Lt+ne)*et,Ft*nt,(Lt+ve)*et,(Ft-$t)*nt,(Lt+ne)*et,(Ft-re)*nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*et,(1-.595)*nt,(Lt+ne)*et,(Ft+re)*nt,(Lt+(ve+ne)/2)*et,(Ft+($t+re)/2)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*et,(1-.595)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*nt));var Oe=new go.PathFigure(.2*et,nt,!1);gt.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Line,.2*et,.8*nt));var me=new go.PathFigure(.8*et,nt,!1);return gt.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*nt)),gt}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.1*et,0,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,nt).close());var pt=new go.PathFigure(.2*et,.2*nt,!1);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.8*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*nt)),gt}),go.Shape.defineFigureGenerator("BpmnEventError",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,nt,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.33*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.66*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.66*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.33*et,.5*nt).close()),gt}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!1);gt.add(lt);var pt=new go.PathFigure(et,nt,!1);gt.add(pt);var vt=new go.PathFigure(.1*et,nt,!0);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt).close()),gt}),go.Shape.defineFigureGenerator("Caution",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.05*et,nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,.8*nt,0,nt,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.1*nt,.5*et,0,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.95*et,.9*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,nt,et,nt,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.05*et,nt));var pt=.05;return lt.add(new go.PathSegment(go.PathSegment.Move,(.5-pt)*et,.875*nt)),lt.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*et,.875*nt,pt*et,pt*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.325*nt,.575*et,.725*nt,.625*et,.375*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.75*nt,.375*et,.375*nt,.425*et,.725*nt)),gt}),go.Shape.defineFigureGenerator("Recycle",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.45*et,.95*nt,!1);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.95*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.185*et,.85*nt,.17*et,.95*nt,.15*et,.9*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.235*et,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.625*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*et,.65*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.275*et,.45*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.05*et,.45*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.05*et,.575*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.1875*et,.95*nt,0,.675*nt,0,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.45*et,.95*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.775*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.22*et,.775*nt));var pt=new go.PathFigure(.475*et,.2*nt,!1);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.225*et,.3*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.275*et,.175*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.325*et,.05*nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.05*nt,.35*et,0,.375*et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.375*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.475*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.315*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.32*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.05*nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,0,.65*et,.05*nt,.625*et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.38*et,.0105*nt));var vt=new go.PathFigure(.675*et,.575*nt,!1);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.875*et,.525*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.775*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.85*et,.95*nt,et,.8*nt,et,.85*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.95*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.65*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.85*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.725*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.775*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.775*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.775*nt)),vt.add(new go.PathSegment(go.PathSegment.Move,.675*et,.575*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.775*et,.775*nt)),gt}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(Nt,et,nt){var gt=new go.Geometry,lt=.5,pt=qt*.5,vt=new go.PathFigure(et,lt*nt,!0);gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,lt*et,nt,et,(lt+pt)*nt,(lt+pt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,lt*nt,(lt-pt)*et,nt,0,(lt+pt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,lt*et,0,0,(lt-pt)*nt,(lt-pt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,lt*nt,(lt+pt)*et,0,et,(lt-pt)*nt));var Lt=new go.PathFigure(lt*et,0,!1);return gt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,lt*et,.15*nt)),Lt.add(new go.PathSegment(go.PathSegment.Move,lt*et,nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,lt*et,.85*nt)),Lt.add(new go.PathSegment(go.PathSegment.Move,0,lt*nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.15*et,lt*nt)),Lt.add(new go.PathSegment(go.PathSegment.Move,et,lt*nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.85*et,lt*nt)),Lt.add(new go.PathSegment(go.PathSegment.Move,lt*et,lt*nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.58*et,.1*nt)),Lt.add(new go.PathSegment(go.PathSegment.Move,lt*et,lt*nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.78*et,.54*nt)),gt}),go.Shape.defineFigureGenerator("Package",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,.15*nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var pt=new go.PathFigure(0,.15*nt,!0);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,0,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.15*nt).close()),gt.spot1=new go.Spot(0,.1),gt.spot2=new go.Spot(1,1),gt}),go.Shape.defineFigureGenerator("Class",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var pt=new go.PathFigure(0,.2*nt,!1);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt).close());var vt=new go.PathFigure(0,.5*nt,!1);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt).close()),gt}),go.Shape.defineFigureGenerator("Component",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(et,nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt).close());var pt=new go.PathFigure(0,.2*nt,!0);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.2*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt).close());var vt=new go.PathFigure(0,.6*nt,!0);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.6*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.8*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.6*nt).close()),gt}),go.Shape.defineFigureGenerator("Boat Shipment",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.15*et,.6*nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.85*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*nt));var pt=new go.PathFigure(.15*et,.6*nt,!1);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*nt)),gt}),go.Shape.defineFigureGenerator("Customer/Supplier",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(et,nt,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.66*et,.33*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.66*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.33*et,.33*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.33*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.33*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt).close()),gt}),go.Shape.defineFigureGenerator("Workcell",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,nt,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.65*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),gt}),go.Shape.defineFigureGenerator("Supermarket",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!1);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.33*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.33*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,et,.33*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.66*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.66*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,et,.66*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt}),go.Shape.defineFigureGenerator("TruckShipment",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var pt=new go.PathFigure(et,.8*nt,!0);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt).close());var vt=.1,Lt=qt*.1,Ft=.2,Wt=.9,Kt=new go.PathFigure((Ft-vt)*et,Wt*nt,!0);gt.add(Kt),Kt.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Wt-vt)*nt,(Ft-vt)*et,(Wt-Lt)*nt,(Ft-Lt)*et,(Wt-vt)*nt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+vt)*et,Wt*nt,(Ft+Lt)*et,(Wt-vt)*nt,(Ft+vt)*et,(Wt-Lt)*nt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Wt+vt)*nt,(Ft+vt)*et,(Wt+Lt)*nt,(Ft+Lt)*et,(Wt+vt)*nt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-vt)*et,Wt*nt,(Ft-Lt)*et,(Wt+vt)*nt,(Ft-vt)*et,(Wt+Lt)*nt).close()),vt=.1,Lt=qt*.1,Ft=.8,Wt=.9;var _t=new go.PathFigure((Ft-vt)*et,Wt*nt,!0);return gt.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Wt-vt)*nt,(Ft-vt)*et,(Wt-Lt)*nt,(Ft-Lt)*et,(Wt-vt)*nt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+vt)*et,Wt*nt,(Ft+Lt)*et,(Wt-vt)*nt,(Ft+vt)*et,(Wt-Lt)*nt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Wt+vt)*nt,(Ft+vt)*et,(Wt+Lt)*nt,(Ft+Lt)*et,(Wt+vt)*nt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-vt)*et,Wt*nt,(Ft-Lt)*et,(Wt+vt)*nt,(Ft-vt)*et,(Wt+Lt)*nt).close()),gt}),go.Shape.defineFigureGenerator("KanbanPost",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.2*et,0,!1);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),gt}),go.Shape.defineFigureGenerator("Forklift",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0));var pt=new go.PathFigure(0,.5*nt,!0);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt));var vt=new go.PathFigure(.5*et,.8*nt,!0);gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.1*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.1*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.8*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*nt));var Lt=new go.PathFigure(.5*et,.7*nt,!1);gt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt));var Ft=.1,Wt=qt*.1,Kt=.1,_t=.9,ne=new go.PathFigure((Kt-Ft)*et,_t*nt,!0);gt.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,Kt*et,(_t-Ft)*nt,(Kt-Ft)*et,(_t-Wt)*nt,(Kt-Wt)*et,(_t-Ft)*nt)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Kt+Ft)*et,_t*nt,(Kt+Wt)*et,(_t-Ft)*nt,(Kt+Ft)*et,(_t-Wt)*nt)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Kt*et,(_t+Ft)*nt,(Kt+Ft)*et,(_t+Wt)*nt,(Kt+Wt)*et,(_t+Ft)*nt)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Kt-Ft)*et,_t*nt,(Kt-Wt)*et,(_t+Ft)*nt,(Kt-Ft)*et,(_t+Wt)*nt)),Ft=.1,Wt=qt*.1,Kt=.4,_t=.9;var $t=new go.PathFigure((Kt-Ft)*et,_t*nt,!0);return gt.add($t),$t.add(new go.PathSegment(go.PathSegment.Bezier,Kt*et,(_t-Ft)*nt,(Kt-Ft)*et,(_t-Wt)*nt,(Kt-Wt)*et,(_t-Ft)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(Kt+Ft)*et,_t*nt,(Kt+Wt)*et,(_t-Ft)*nt,(Kt+Ft)*et,(_t-Wt)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,Kt*et,(_t+Ft)*nt,(Kt+Ft)*et,(_t+Wt)*nt,(Kt+Wt)*et,(_t+Ft)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(Kt-Ft)*et,_t*nt,(Kt-Wt)*et,(_t+Ft)*nt,(Kt-Ft)*et,(_t+Wt)*nt)),gt}),go.Shape.defineFigureGenerator("RailShipment",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.1*et,.4*nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.9*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.9*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.4*nt).close());var pt=new go.PathFigure(.45*et,.7*nt,!1);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*nt));var vt=new go.PathFigure(.55*et,.4*nt,!0);gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.4*nt).close());var Kt=.05,_t=qt*.05,ne=.175,$t=.95,Lt=new go.PathFigure((ne-Kt)*et,$t*nt,!0);gt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,ne*et,($t-Kt)*nt,(ne-Kt)*et,($t-_t)*nt,(ne-_t)*et,($t-Kt)*nt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(ne+Kt)*et,$t*nt,(ne+_t)*et,($t-Kt)*nt,(ne+Kt)*et,($t-_t)*nt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,ne*et,($t+Kt)*nt,(ne+Kt)*et,($t+_t)*nt,(ne+_t)*et,($t+Kt)*nt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(ne-Kt)*et,$t*nt,(ne-_t)*et,($t+Kt)*nt,(ne-Kt)*et,($t+_t)*nt));var Kt=.05,_t=qt*.05,ne=.375,$t=.95,Ft=new go.PathFigure((ne-Kt)*et,$t*nt,!0);gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,ne*et,($t-Kt)*nt,(ne-Kt)*et,($t-_t)*nt,(ne-_t)*et,($t-Kt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(ne+Kt)*et,$t*nt,(ne+_t)*et,($t-Kt)*nt,(ne+Kt)*et,($t-_t)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,ne*et,($t+Kt)*nt,(ne+Kt)*et,($t+_t)*nt,(ne+_t)*et,($t+Kt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(ne-Kt)*et,$t*nt,(ne-_t)*et,($t+Kt)*nt,(ne-Kt)*et,($t+_t)*nt));var Kt=.05,_t=qt*.05,ne=.625,$t=.95,Wt=new go.PathFigure((ne-Kt)*et,$t*nt,!0);gt.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Bezier,ne*et,($t-Kt)*nt,(ne-Kt)*et,($t-_t)*nt,(ne-_t)*et,($t-Kt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(ne+Kt)*et,$t*nt,(ne+_t)*et,($t-Kt)*nt,(ne+Kt)*et,($t-_t)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,ne*et,($t+Kt)*nt,(ne+Kt)*et,($t+_t)*nt,(ne+_t)*et,($t+Kt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(ne-Kt)*et,$t*nt,(ne-_t)*et,($t+Kt)*nt,(ne-Kt)*et,($t+_t)*nt));var Kt=.05,_t=qt*.05,ne=.825,$t=.95,ve=new go.PathFigure((ne-Kt)*et,$t*nt,!0);gt.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,ne*et,($t-Kt)*nt,(ne-Kt)*et,($t-_t)*nt,(ne-_t)*et,($t-Kt)*nt)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ne+Kt)*et,$t*nt,(ne+_t)*et,($t-Kt)*nt,(ne+Kt)*et,($t-_t)*nt)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ne*et,($t+Kt)*nt,(ne+Kt)*et,($t+_t)*nt,(ne+_t)*et,($t+Kt)*nt)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ne-Kt)*et,$t*nt,(ne-_t)*et,($t+Kt)*nt,(ne-Kt)*et,($t+_t)*nt).close());var re=new go.PathFigure(0,nt,!1);return gt.add(re),re.add(new go.PathSegment(go.PathSegment.Line,et,nt).close()),gt}),go.Shape.defineFigureGenerator("Warehouse",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var pt=new go.PathFigure(0,.2*nt,!1);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt).close());var vt=new go.PathFigure(.15*et,nt,!0);gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.5*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.15*et,nt).close());var Lt=.05,Ft=qt*.05,Wt=.35,Kt=.775,_t=new go.PathFigure((Wt-Lt)*et,Kt*nt,!0);return gt.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,Wt*et,(Kt-Lt)*nt,(Wt-Lt)*et,(Kt-Ft)*nt,(Wt-Ft)*et,(Kt-Lt)*nt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Wt+Lt)*et,Kt*nt,(Wt+Ft)*et,(Kt-Lt)*nt,(Wt+Lt)*et,(Kt-Ft)*nt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,Wt*et,(Kt+Lt)*nt,(Wt+Lt)*et,(Kt+Ft)*nt,(Wt+Ft)*et,(Kt+Lt)*nt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Wt-Lt)*et,Kt*nt,(Wt-Ft)*et,(Kt+Lt)*nt,(Wt-Lt)*et,(Kt+Ft)*nt).close()),gt}),go.Shape.defineFigureGenerator("ControlCenter",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,nt,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.1*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt).close()),gt}),go.Shape.defineFigureGenerator("Bluetooth",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,.75*nt,!1);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),gt}),go.Shape.defineFigureGenerator("Bookmark",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*nt)),gt}),go.Shape.defineFigureGenerator("Bookmark",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*nt)),gt}),go.Shape.defineFigureGenerator("Globe",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.5*et,0,!1);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,.75*et,0,et,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,.75*nt,.75*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,.25*et,nt,0,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,.25*nt,.25*et,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,.15*et,.25*nt,.15*et,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.85*et,.75*nt,.85*et,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.1675*et,.15*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.8325*et,.15*nt,.35*et,.3*nt,.65*et,.3*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.1675*et,.85*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.8325*et,.85*nt,.35*et,.7*nt,.65*et,.7*nt)),gt}),go.Shape.defineFigureGenerator("Wave",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,.25*nt,!1);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.25*nt,.1*et,0,.2*et,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,.25*nt,.425*et,.5*nt,.575*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,et,.25*nt,.8*et,0,.9*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,0,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.75*nt,.1*et,.5*nt,.2*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,.75*nt,.425*et,nt,.575*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,et,.75*nt,.8*et,.5*nt,.9*et,.5*nt)),gt}),go.Shape.defineFigureGenerator("Operator",function(Nt,et,nt){var gt=new go.Geometry,lt=.3,pt=qt*.3,vt=.5,Lt=.7,Ft=new go.PathFigure((vt-lt)*et,Lt*nt,!0);gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt-lt)*nt,(vt-lt)*et,(Lt-pt)*nt,(vt-pt)*et,(Lt-lt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt+lt)*et,Lt*nt,(vt+pt)*et,(Lt-lt)*nt,(vt+lt)*et,(Lt-pt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt+lt)*nt,(vt+lt)*et,(Lt+pt)*nt,(vt+pt)*et,(Lt+lt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt-lt)*et,Lt*nt,(vt-pt)*et,(Lt+lt)*nt,(vt-lt)*et,(Lt+pt)*nt));var Wt=new go.PathFigure(0,.7*nt,!1);return gt.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Bezier,et,.7*nt,0,0,et,0)),gt}),go.Shape.defineFigureGenerator("TripleFanBlades",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.5*et,0,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*nt,.65*et,.3*nt,.65*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.35*et,.5*nt,.35*et,.3*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.65*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt,.3*et,.6*nt,.1*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*nt,.2*et,nt,.35*et,.95*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.65*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,et,nt,.7*et,.6*nt,.9*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*nt,.8*et,nt,.65*et,.95*nt)),gt}),go.Shape.defineFigureGenerator("CentrifugalPump",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(et,0,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,0,.075*nt,0,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,nt,0,nt,.4*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.4*nt,.8*et,nt,.85*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt}),go.Shape.defineFigureGenerator("Battery",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.4*et,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.1*nt));var pt=new go.PathFigure(0,.6*nt,!1);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Move,0,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,.4*nt)),gt}),go.Shape.defineFigureGenerator("Delete",function(Nt,et,nt){var gt=new go.Geometry,lt=.5,pt=qt*.5,vt=.5,Lt=.5,Ft=new go.PathFigure((vt-lt)*et,Lt*nt,!0);gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt-lt)*nt,(vt-lt)*et,(Lt-pt)*nt,(vt-pt)*et,(Lt-lt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt+lt)*et,Lt*nt,(vt+pt)*et,(Lt-lt)*nt,(vt+lt)*et,(Lt-pt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt+lt)*nt,(vt+lt)*et,(Lt+pt)*nt,(vt+pt)*et,(Lt+lt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt-lt)*et,Lt*nt,(vt-pt)*et,(Lt+lt)*nt,(vt-lt)*et,(Lt+pt)*nt));var Wt=new go.PathFigure(.15*et,.5*nt,!1);return gt.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.5*nt)),gt}),go.Shape.defineFigureGenerator("Flag",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,.1*nt,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,0,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.1*nt,.15*et,0,.35*et,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*nt,.65*et,.2*nt,.85*et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*nt,.85*et,.6*nt,.65*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,.35*et,.4*nt,.15*et,.4*nt).close()),gt}),go.Shape.defineFigureGenerator("Help",function(Nt,et,nt){var gt=new go.Geometry,lt=.5,pt=qt*.5,vt=.5,Lt=.5,Ft=new go.PathFigure((vt-lt)*et,Lt*nt,!1);gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt-lt)*nt,(vt-lt)*et,(Lt-pt)*nt,(vt-pt)*et,(Lt-lt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt+lt)*et,Lt*nt,(vt+pt)*et,(Lt-lt)*nt,(vt+lt)*et,(Lt-pt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt+lt)*nt,(vt+lt)*et,(Lt+pt)*nt,(vt+pt)*et,(Lt+lt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt-lt)*et,Lt*nt,(vt-pt)*et,(Lt+lt)*nt,(vt-lt)*et,(Lt+pt)*nt).close()),lt=.05,pt=qt*.05,vt=.5,Lt=.8;var Wt=new go.PathFigure((vt-lt)*et,Lt*nt,!1);return gt.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt-lt)*nt,(vt-lt)*et,(Lt-pt)*nt,(vt-pt)*et,(Lt-lt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+lt)*et,Lt*nt,(vt+pt)*et,(Lt-lt)*nt,(vt+lt)*et,(Lt-pt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt+lt)*nt,(vt+lt)*et,(Lt+pt)*nt,(vt+pt)*et,(Lt+lt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-lt)*et,Lt*nt,(vt-pt)*et,(Lt+lt)*nt,(vt-lt)*et,(Lt+pt)*nt).close()),Wt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*nt)),Wt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*nt,.75*et,.475*nt,.75*et,.225*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.35*nt,.4*et,.2*nt,.3*et,.25*nt)),gt}),go.Shape.defineFigureGenerator("Location",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,nt,!0).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.975*et,.025*nt,.5*et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*et,.5*nt,.5*et,0,.025*et,.025*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*et,.2*nt)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*et,.3*nt,.1*et,.1*nt).close()))}),go.Shape.defineFigureGenerator("Lock",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,.5*nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt));var pt=new go.PathFigure(.2*et,.5*nt,!1);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*nt,.25*et,0,.75*et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.3*nt)),gt}),go.Shape.defineFigureGenerator("Unlocked",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,.5*nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt));var pt=new go.PathFigure(.2*et,.5*nt,!1);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*nt,.25*et,0,.75*et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.35*nt)),gt}),go.Shape.defineFigureGenerator("Gear",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(.9375*et,.56246875*nt,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*et,.4375*nt)).add(new go.PathSegment(go.PathSegment.Line,.80621875*et,.4375*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.763*et,.3316875*nt,.79840625*et,.39915625*nt,.7834375*et,.3635*nt)).add(new go.PathSegment(go.PathSegment.Line,.8566875*et,.23796875*nt)).add(new go.PathSegment(go.PathSegment.Line,.76825*et,.14959375*nt)).add(new go.PathSegment(go.PathSegment.Line,.67596875*et,.24184375*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*et,.19378125*nt,.64228125*et,.2188125*nt,.603875*et,.2021875*nt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.0625*nt)).add(new go.PathSegment(go.PathSegment.Line,.4375*et,.0625*nt)).add(new go.PathSegment(go.PathSegment.Line,.4375*et,.19378125*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*et,.239375*nt,.39759375*et,.20190625*nt,.36053125*et,.2176875*nt)).add(new go.PathSegment(go.PathSegment.Line,.2379375*et,.14959375*nt)).add(new go.PathSegment(go.PathSegment.Line,.14953125*et,.2379375*nt)).add(new go.PathSegment(go.PathSegment.Line,.23934375*et,.3278125*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*et,.4375*nt,.21765625*et,.36059375*nt,.201875*et,.397625*nt)).add(new go.PathSegment(go.PathSegment.Line,.0625*et,.4375*nt)).add(new go.PathSegment(go.PathSegment.Line,.0625*et,.5625*nt)).add(new go.PathSegment(go.PathSegment.Line,.1938125*et,.5625*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*et,.67596875*nt,.20221875*et,.603875*nt,.21884375*et,.64228125*nt)).add(new go.PathSegment(go.PathSegment.Line,.1495625*et,.76825*nt)).add(new go.PathSegment(go.PathSegment.Line,.238*et,.8566875*nt)).add(new go.PathSegment(go.PathSegment.Line,.3316875*et,.76296875*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*et,.80621875*nt,.36353125*et,.78340625*nt,.3991875*et,.79840625*nt)).add(new go.PathSegment(go.PathSegment.Line,.43753125*et,.9375*nt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.9375*nt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.80621875*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*et,.760625*nt,.602375*et,.79809375*nt,.63946875*et,.78234375*nt)).add(new go.PathSegment(go.PathSegment.Line,.76828125*et,.8566875*nt)).add(new go.PathSegment(go.PathSegment.Line,.85671875*et,.76825*nt)).add(new go.PathSegment(go.PathSegment.Line,.76065625*et,.67221875*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*et,.56246875*nt,.78234375*et,.63940625*nt,.798125*et,.602375*nt)).add(new go.PathSegment(go.PathSegment.Line,.9375*et,.56246875*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*et,.5*nt,.1*et,.1*nt).close()))}),go.Shape.defineFigureGenerator("Hand",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,.5*nt,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,.3*nt,0,.375*nt,.05*et,.325*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.45*et,.075*nt,.3*et,.225*nt,.4*et,.175*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.525*et,.075*nt,.46*et,.05*nt,.525*et,.05*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.4*nt,.525*et,.275*nt,.475*et,.325*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.55*nt,et,.4*nt,et,.55*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.425*et,.55*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.55*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.6*et,.7*nt,.675*et,.55*nt,.675*et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,.85*nt,.65*et,.7*nt,.65*et,.85*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.85*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.535*et,nt,.61*et,.85*nt,.61*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,.435*et,nt,0,nt).close()),gt}),go.Shape.defineFigureGenerator("Map",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,.2*nt,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.25*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),lt.add(new go.PathSegment(go.PathSegment.Move,.25*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.8*nt)),gt}),go.Shape.defineFigureGenerator("Eject",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt*.7)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt*.7).close());var pt=new go.PathFigure(0,nt*.6,!0);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,.6*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0).close()),gt}),go.Shape.defineFigureGenerator("Pencil",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*nt).close()))}),go.Shape.defineFigureGenerator("Building",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(et*1,nt*1,!1);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt*.85)),lt.add(new go.PathSegment(go.PathSegment.Line,.046*et,nt*.85)),lt.add(new go.PathSegment(go.PathSegment.Line,.046*et,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt*.3)),lt.add(new go.PathSegment(go.PathSegment.Line,.046*et,nt*.3)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,nt*.3)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt*.3)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,nt*.85)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt*.85).close());var pt=new go.PathFigure(.126*et,.85*nt,!1);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.126*et,.45*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.322*et,.45*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.322*et,.85*nt).close());var vt=new go.PathFigure(.402*et,.85*nt,!1);gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.402*et,.45*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.598*et,.45*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.598*et,.85*nt).close());var Lt=new go.PathFigure(.678*et,.85*nt,!1);gt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,.678*et,.45*nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.874*et,.45*nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.874*et,.85*nt).close());var Ft=new go.PathFigure(.5*et,.1*nt,!1);return gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*et,.3*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*et,.3*nt).close()),gt}),go.Shape.defineFigureGenerator("Staircase",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,nt*1,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*.8)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.8)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.6)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.6)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.4)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*.4)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*.2)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.2)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.15)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.15)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.35)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.35)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.15,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.15,nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt*.95).close()),gt}),go.Shape.defineFigureGenerator("5Bars",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,nt*1,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et*.184,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.184,nt*(1-.184)).close());var pt=new go.PathFigure(et*.204,nt,!0);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*.204,nt*(1-.184))),pt.add(new go.PathSegment(go.PathSegment.Line,et*.388,nt*(1-.184*2))),pt.add(new go.PathSegment(go.PathSegment.Line,et*.388,nt*1).close());var vt=new go.PathFigure(et*.408,nt,!0);gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.408,nt*(1-.184*2))),vt.add(new go.PathSegment(go.PathSegment.Line,et*.592,nt*(1-.184*3))),vt.add(new go.PathSegment(go.PathSegment.Line,et*.592,nt*1).close());var Lt=new go.PathFigure(et*.612,nt,!0);gt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,et*.612,nt*(1-.184*3))),Lt.add(new go.PathSegment(go.PathSegment.Line,et*.796,nt*(1-.184*4))),Lt.add(new go.PathSegment(go.PathSegment.Line,et*.796,nt*1).close());var Ft=new go.PathFigure(et*.816,nt,!0);return gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Line,et*.816,nt*(1-.184*4))),Ft.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-.184*5))),Ft.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1).close()),gt}),go.Shape.defineFigureGenerator("PC",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.3,0).close());var pt=new go.PathFigure(et*.055,.07*nt,!0);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.07)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.1)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.055,nt*.1).close());var vt=new go.PathFigure(et*.055,.13*nt,!0);gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.13)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.16)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.055,nt*.16).close());var Lt=new go.PathFigure(et*.055,.18*nt,!0);gt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.18)),Lt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.21)),Lt.add(new go.PathSegment(go.PathSegment.Line,et*.055,nt*.21).close());var Ft=new go.PathFigure(et*1,0,!0);return gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Line,et*.4,0)),Ft.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.65)),Ft.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.65).close()),gt}),go.Shape.defineFigureGenerator("Plane",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.55*et,nt,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.475*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.35*et,.525*nt,0,.4*nt,.225*et,.45*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.475*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.35*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.325*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.325*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.2*nt,.975*et,0,et,.08*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.45*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.95*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.55*et,nt).close()),gt}),go.Shape.defineFigureGenerator("Key",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(et*1,nt*.5,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et*.9,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.35*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.45,.35*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.3,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.15,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.35*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.65*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.15,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.3,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.45,.65*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.65*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.6,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.65,.55*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.7,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.75,.55*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.8,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.85,.575*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.9,.6*nt).close()),lt.add(new go.PathSegment(go.PathSegment.Move,.17*et,.425*nt)),lt.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*et,.5*nt,.075*et,.075*nt).close()),gt}),go.Shape.defineFigureGenerator("FilmTape",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!1);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,270,180,et*0,et*.3,et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.08,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.08,nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*1),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*1),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*2),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*2),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*3),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*3),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*4),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*4),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*5),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*5),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*6),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*6),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*7),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*7),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*8),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*8),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*9),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*9),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*10),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*10),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*11),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*11),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*12),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*12),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*13),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*13),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*14),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*14),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*15),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*15),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1));var pt=new go.PathFigure(0,0,!1);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*0)),pt.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*1,et*.3,et*.055)),pt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1));var vt=new go.PathFigure(et*.11,nt*.1,!1);gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),nt*.1)),vt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),nt*.8)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.11,nt*.8).close());var Lt=new go.PathFigure(et*(.11+.24133333*1+.028*1),nt*.1,!1);gt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),nt*.1)),Lt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),nt*.8)),Lt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*1),nt*.8).close());var Ft=new go.PathFigure(et*(.11+.24133333*2+.028*2),nt*.1,!1);return gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),nt*.1)),Ft.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),nt*.8)),Ft.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*2),nt*.8).close()),gt}),go.Shape.defineFigureGenerator("FloppyDisk",function(Nt,et,nt){var gt=new go.Geometry,lt=8,pt=lt*qt,vt=new go.PathFigure(lt,0,!1);gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.86,0)),vt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.14)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt-lt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,nt,et,nt-pt,et-pt,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,lt,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-lt,pt,nt,0,nt-pt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,lt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,lt,0,0,pt,pt,0).close());var Lt=new go.PathFigure(et*.83,0,!1);gt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,et*.83,nt*.3)),Lt.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*.3)),Lt.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*0).close());var Ft=new go.PathFigure(et*.83,nt*1,!1);gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Line,et*.83,nt*.5)),Ft.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*.5)),Ft.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*1).close());var Wt=new go.PathFigure(et*.78,nt*.05,!1);return gt.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.05)),Wt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.25)),Wt.add(new go.PathSegment(go.PathSegment.Line,et*.78,nt*.25).close()),gt}),go.Shape.defineFigureGenerator("SpeechBubble",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;(isNaN(gt)||gt<0)&&(gt=15),gt=Math.min(gt,et/3),gt=Math.min(gt,nt/3);var lt=gt*qt,pt=nt*.8,vt=new go.Geometry,Lt=new go.PathFigure(gt,0,!0);return vt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,et-gt,0)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,et,gt,et-lt,0,et,lt)),Lt.add(new go.PathSegment(go.PathSegment.Line,et,pt-gt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,et-gt,pt,et,pt-lt,et-lt,pt)),Lt.add(new go.PathSegment(go.PathSegment.Line,et*.7,pt)),Lt.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,et*.55,pt)),Lt.add(new go.PathSegment(go.PathSegment.Line,gt,pt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,0,pt-gt,lt,pt,0,pt-lt)),Lt.add(new go.PathSegment(go.PathSegment.Line,0,gt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,gt,0,0,lt,lt,0).close()),lt>1?(vt.spot1=new go.Spot(0,0,lt,lt),vt.spot2=new go.Spot(1,.8,-lt,-lt)):(vt.spot1=go.Spot.TopLeft,vt.spot2=new go.Spot(1,.8)),vt}),go.Shape.defineFigureGenerator("Repeat",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(et*0,nt*.45,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*.9)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.9)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.65,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*.45).close());var pt=new go.PathFigure(et*1,nt*.55,!0);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*1)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.55)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*.55)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*.1)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.1)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*0)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*.55).close()),gt}),go.Shape.defineFigureGenerator("Windows",function(Nt,et,nt){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,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close()).add(new go.PathSegment(go.PathSegment.Move,.4*et,.4*nt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,.8*nt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*nt)).add(new go.PathSegment(go.PathSegment.Line,.2*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.1*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.1*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Line,.1*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt).close()))}),go.Shape.defineFigureGenerator("Terminal",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(et*0,nt*.1,!1);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.9)),lt.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*.9).close());var pt=new go.PathFigure(et*.1,nt*.2,!0);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*.1,nt*.25)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.22,nt*.285)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.1,nt*.32)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.1,nt*.37)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.275,nt*.32)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.275,nt*.25).close());var vt=new go.PathFigure(et*.28,nt*.37,!0);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.37)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.41)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.28,nt*.41).close()),gt}),go.Shape.defineFigureGenerator("Beaker",function(Nt,et,nt){var gt=new go.Geometry,lt=15,pt=lt*qt,vt=new go.PathFigure(et*.62,nt*.475,!0);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt-lt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,nt,et,nt-pt,et-pt,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,lt,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-lt,pt,nt,0,nt-pt)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.38,nt*.475)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.38,nt*.03)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*0)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*0)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.62,nt*.03).close()),pt>1?(gt.spot1=new go.Spot(0,0,pt,pt),gt.spot2=new go.Spot(1,1,-pt,-pt)):(gt.spot1=go.Spot.TopLeft,gt.spot2=go.Spot.BottomRight),gt}),go.Shape.defineFigureGenerator("Download",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(et*0,nt*1,!0);gt.add(lt);var pt=.1/.3;lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.755,nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.93,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.61,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.39,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.07,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*(1-pt)).close());var vt=new go.PathFigure(et*.4,nt*0,!0);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.44)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.26,nt*.44)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.66)),vt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.26),nt*.44)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.44)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*0).close()),gt}),go.Shape.defineFigureGenerator("Bin",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(et*0,nt*1,!0);gt.add(lt);var pt=.1/.3;return lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.755,nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.93,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.61,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.39,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.07,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*(1-pt)).close()),gt}),go.Shape.defineFigureGenerator("Upload",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(et*0,nt*1,!0);gt.add(lt);var pt=.1/.3;lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.755,nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.93,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.61,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.39,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.07,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*(1-pt)).close());var vt=new go.PathFigure(et*.5,nt*0,!0);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.26,nt*.25)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.25)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.63)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.63)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.25)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.74,nt*.25).close()),gt}),go.Shape.defineFigureGenerator("EmptyDrink",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(et*.15,nt*0,!1);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et*.85,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*1).close()),gt}),go.Shape.defineFigureGenerator("Drink",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(et*.15,nt*0,!1);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et*.85,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*1).close());var pt=new go.PathFigure(et*.235,nt*.28,!0);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*.765,nt*.28)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.655,nt*.97)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.345,nt*.97).close()),gt}),go.Shape.defineFigureGenerator("4Arrows",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(et*.5,nt*0,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et*.65,nt*.25)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.25)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.35)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.5)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.65)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.65,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.65)),lt.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*.5)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.35)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.25)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.25).close()),gt}),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")},80727: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 Ye={},pn="5.0",Yt={},kt=null,ue=!1,xe=!1,Te=null,ge=!1,Ae=null,qt=null,Ce=0;Ce4?parseFloat(ce):5};Ye.setHTML5Codebase=function(ce,Ue){qt=ce,He(ce,Ue)},Ye.setJavaCodebase=Ye.setJavaCodebaseVersion=Ye.isCompiledInstalled=Ye.setPreCompiledScriptPath=Ye.setPreCompiledResourcePath=function(){},Ye.setHTML5CodebaseVersion=function(ce,Ue){var on=parseFloat(ce);if(on!==NaN&&on<5){console.log("The GeoGebra HTML5 codebase version "+on+" is deprecated. Using version latest instead.");return}Ae=ce,Gt(ce,Ue)},Ye.getHTML5CodebaseVersion=function(){return Nt},Ye.getParameters=function(){return Yt},Ye.setFontsCSSURL=function(ce){vt=ce},Ye.setGiacJSURL=function(ce){},Ye.setJNLPFile=function(ce){pe=ce},Ye.setJNLPBaseDir=function(ce){},Ye.inject=function(){function ce(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ue="auto",on=Yt.id,wn,sn=!1,kn=0;kn=5)return!0;var ce=Ye.getAppletObject();return ce&&typeof ce.recalculateEnvironments=="function"?(ce.recalculateEnvironments(),!0):!1},Ye.startAnimation=function(){var ce=Ye.getAppletObject();return ce&&typeof ce.startAnimation=="function"?(ce.startAnimation(),!0):!1},Ye.stopAnimation=function(){var ce=Ye.getAppletObject();return ce&&typeof ce.stopAnimation=="function"?(ce.stopAnimation(),!0):!1},Ye.getAppletObject=function(){var ce=Yt.id!==void 0?Yt.id:"ggbApplet";return window[ce]},Ye.resize=function(){};var ve=function(ce,Ue,on){var wn=document.createElement("param");wn.setAttribute("name",Ue),wn.setAttribute("value",on),ce.appendChild(wn)},re=function(ce){return ce&&ce!=="false"},Oe=function(ce,Ue,on){Ft(Nt)<=4.2&&(on=!0);var wn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Nt||ggbHTML5LoadedCodebaseIsWebSimple&&!nt)&&(wn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var sn=document.createElement("div");sn.classList.add("appletParameters","notranslate");var kn=Ue.width,te=Ue.height;if(Ue.disableAutoScale=Ue.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ue.disableAutoScale,Ue.width!==void 0)if(Ft(Nt)<=4.4)re(Ue.showToolBar)&&(Ue.height-=7),re(Ue.showAlgebraInput)&&(Ue.height-=37),Ue.width<605&&re(Ue.showToolBar)&&(Ue.width=605,kn=605);else{var Ve=100;(re(Ue.showToolBar)||re(Ue.showMenuBar))&&(Ue.hasOwnProperty("customToolBar")&&(Ue.customToolbar=Ue.customToolBar),Ve=re(Ue.showMenuBar)?245:155),kn=5?(Ue.appletOnLoad=function(xt){var Bt=ce.querySelector(".ggb_preview");Bt&&Bt.parentNode.removeChild(Bt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Sn),window.GGBT_wsf_view&&$(window).trigger("resize"),dn(xt)},Vn||Sn.appendChild(vi)):sn.appendChild(vi),Sn.appendChild(sn),Vn||ce.appendChild(Sn),setTimeout(function(){Ye.resize()},1)}else{var Qn=document.createElement("div");Qn.className="applet_scaler",Qn.style.position="relative",Qn.style.display="block",Qn.appendChild(sn),ce.appendChild(Qn),Ue.appletOnLoad=function(xt){Ye.resize(),dn(xt)}}function wi(xt,Bt){Bt&&typeof Bt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(xt,Bt.appletOnLoad):renderGGBElement(xt),un("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Bt)}function Ci(xt,Bt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:xt,params:Bt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Rt){wi(Rt.article,Rt.params)}),html5AppletsToProcess=null)},Ft(Nt)<5&&(xt.className+=" geogebraweb")):wi(xt,Bt)}if(wn){scriptLoadStarted=!0;for(var an=0;an0?(fn.remove(),Sn.attr("id","fullscreencontent").show(),jQuery(dn).append(Sn),window.dispatchEvent(new Event("resize"))):Oe(fn,Ue,!1),window.GGBT_wsf_view.launchFullScreen(dn)}else je=wn,Oe(ce,Ue,!1);if(!window.GGBT_wsf_view)for(te=0;tece/4*3&&(fn=ce/4*3),dn=fn/5.8,Ve.setAttribute("src",lt),Ve.setAttribute("width",fn),Ve.setAttribute("height",dn);var Sn=(ce-fn)/2,Vn=(Ue-dn)/2;Ve.style.left=Sn+"px",Ve.style.top=Vn+"px",sn.appendChild(Ve)}}return sn.appendChild(te),sn},In=function(ce){return ce=ce.toLowerCase(),ce==="html5"||ce==="screenshot"?ce:"html5"},Zt=["web","webSimple","web3d","tablet","tablet3d","phone"],Gt=function(ce,Ue){if(Nt=ce,Ue){He(Nt,!0);return}var on=!ue;if(on){var wn=Ft(Nt);!isNaN(wn)&&wn<4.4&&(on=!1)}var sn,kn;window.location.protocol.substr(0,4)==="http"?sn=window.location.protocol:sn="http:";var te=Nt.indexOf("//");te>0?kn=Nt:te===0?kn=sn+Nt:kn="https://www.geogebra.org/apps/5.2.814.0/";for(var Ve in Zt)if(Nt.slice(Zt[Ve].length*-1)===Zt[Ve]||Nt.slice((Zt[Ve].length+1)*-1)===Zt[Ve]+"/"){He(kn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&on&&!kt.is3D&&!kt.AV&&!kt.SV&&!kt.CV&&!kt.EV2&&!kt.CP&&!kt.PC&&!kt.DA&&!kt.FI&&!kt.PV&&!re(Yt.showToolBar)&&!re(Yt.showMenuBar)&&!re(Yt.showAlgebraInput)&&!re(Yt.enableRightClick)&&(!Yt.appName||Yt.appName=="classic")?kn+="webSimple/":kn+="web3d/",He(kn,!1)},He=function(ce,Ue){if(ce.requirejs){le=ce;return}ce.slice(-1)!=="/"&&(ce+="/"),le=ce,Ue===null&&(Ue=ce.indexOf("http")===-1),Be=Ue,et="web.nocache.js",nt=!1;var on=le.split("/");on.length>1&&(!Ue&&on[on.length-2]==="webSimple"?(et="webSimple.nocache.js",nt=!0):Zt.indexOf(on[on.length-2])>=0&&(et=on[on.length-2]+".nocache.js")),on=ce.split("/"),Nt=on[on.length-3],Nt.substr(0,4)==="test"?Nt=Nt.substr(4,1)+"."+Nt.substr(5,1):(Nt.substr(0,3)==="war"||Nt.substr(0,4)==="beta")&&(Nt="5.0");var wn=parseFloat(Nt);wn!==NaN&&wn<5&&ce.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+wn+" is deprecated. Using version latest instead."),Gt("5.0",Ue))},un=function(ce,Ue){window.console&&window.console.log&&(!Ue||typeof Ue.showLogging=="undefined"||Ue.showLogging&&Ue.showLogging!=="false")&&console.log(ce)};Yt.material_id!==void 0?_t(ln):ln();function ln(){var ce=pn;Ae!==null?ce=Ae:parseFloat(ce)<5&&(ce="5.0"),Gt(ce,!1),qt!==null&&He(qt,Be),ge=!0}return Ye},GGBAppletUtils=function(){"use strict";function Ye(){return window.GGBT_wsf_edit!==void 0}function pn(ge,Ae){Ae!=1?(ge.style.transformOrigin="0% 0% 0px",ge.style.webkitTransformOrigin="0% 0% 0px",ge.style.transform="scale("+Ae+","+Ae+")",ge.style.webkitTransform="scale("+Ae+","+Ae+")",ge.style.maxWidth="initial",ge.querySelector(".ggb_preview")!==null&&(ge.querySelector(".ggb_preview").style.maxWidth="initial"),ge.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ge.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ge.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ge.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ge.style.transform="none",ge.style.webkitTransform="none")}function Yt(ge,Ae,qt,Ce,fe,pe){var le=null;if(pe!=null&&pe!="")for(var Be=ge.parentNode;Be!=null;)if((" "+Be.className+" ").indexOf(" "+pe+" ")>-1){le=Be;break}else Be=Be.parentNode;var je=0,Nt=0,et=0,nt=0,gt=0,lt=0,pt=0;if(le)je=le.offsetWidth,Nt=Math.max(Ce?le.offsetWidth:0,le.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(je=Math.min(window.innerWidth,document.documentElement.clientWidth),Nt=Math.min(window.innerHeight,document.documentElement.clientHeight),et=je):(je=window.innerWidth,Nt=window.innerHeight,et=window.innerWidth),ge){var vt=ge.getBoundingClientRect();vt.left>0&&vt.left<=je&&(fe===void 0||!fe)&&(document.dir==="rtl"?(gt=je-vt.width-vt.left,lt=et<=480?10:30):(lt=vt.left,gt=et<=480?10:30),nt=lt+gt)}if(ge&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Lt=ge.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(nt=40,pt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(nt=0,pt=40)}}return ge&&((qt===void 0||!qt)&&Ae>0&&Ae+nt1&&(pe=!0)),Ae&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(pe=!0),!(ge.hasOwnProperty("disableAutoScale")&&ge.disableAutoScale))fe=kt(ge,Ae,pe,qt,ge.scaleContainerClass);else return Ce;return pe&&(!ge.hasOwnProperty("scale")||Ce===1)?fe:Math.min(Ce,fe)}function xe(ge){var Ae=Math.min(window.innerWidth,document.documentElement.clientWidth),qt=Math.min(window.innerHeight,document.documentElement.clientHeight),Ce=ge.getBoundingClientRect(),fe=(Ae-Ce.width)/2,pe=(qt-Ce.height)/2;pe<0&&(pe=0),ge.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(fe<40?ge.style.left="40px":ge.style.left=fe+"px",ge.style.top=pe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(pe<40?ge.style.top="40px":ge.style.top=pe+"px",ge.style.left=fe+"px")}function Te(ge,Ae){var qt=ge.querySelector(".appletParameters");if(qt){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ae.id!==qt.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ge)}if(qt.parentElement&&/fullscreen/.test(qt.parentElement.className))return;var Ce=ue(Ae,ge);Ye()&&qt.setAttribute("data-param-scale",Ce);for(var fe=null,pe=0;pe=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(Ye){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ye){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ye){var pn=c[Ye];return pn==null?null:pn},r=d,webModule.__errFn=e}function B(){function Ye(ge){var Ae=ge.lastIndexOf(rb);Ae==-1&&(Ae=ge.length);var qt=ge.indexOf(sb);qt==-1&&(qt=ge.length);var Ce=ge.lastIndexOf(tb,Math.min(qt,Ae));return Ce>=O?ge.substring(O,Ce+P):W}function pn(ge){if(!ge.match(/^\w+:\/\//)){var Ae=o.createElement(ub);Ae.src=ge+vb,ge=Ye(Ae.src)}return ge}function Yt(){var ge=__gwt_getMetaProperty(wb);return ge!=null?ge:W}function kt(){for(var ge=o.getElementsByTagName(_),Ae=O;AeO?ge[ge.length-P].href:W}function xe(){var ge=o.location;return ge.href==ge.protocol+zb+ge.host+ge.pathname+ge.search+ge.hash}var Te=Yt();return Te==W&&(Te=kt()),Te==W&&(Te=ue()),Te==W&&xe()&&(Te=Ye(o.location.href)),Te=pn(Te),Te}function C(Ye){return Ye.match(/^\//)||Ye.match(/^[a-zA-Z]+:\/\//)?Ye:webModule.__moduleBase+Ye}function D(){var Ye=[],pn=O,Yt=[],kt=[];function ue(ge){var Ae=kt[ge](),qt=Yt[ge];if(Ae in qt)return Ae;var Ce=[];for(var fe in qt)Ce[qt[fe]]=fe;throw r&&r(ge,Ce,Ae),null}if(__gwt_isKnownPropertyValue=function(ge,Ae){return Ae in Yt[ge]},webModule.__getPropMap=function(){var ge={};for(var Ae in Yt)Yt.hasOwnProperty(Ae)&&(ge[Ae]=ue(Ae));return ge},webModule.__computePropValue=ue,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var xe;try{xe=Cb;var Te=xe.indexOf(Db);Te!=-1&&(pn=parseInt(xe.substring(Te+P),$),xe=xe.substring(O,Te))}catch(ge){}return webModule.__softPermutationId=pn,C(xe+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})()},77903:function(Ye,pn,Yt){"use strict";Yt.d(pn,{Ax:function(){return Te},Ds:function(){return ge},KI:function(){return qt},SI:function(){return xe},f1:function(){return ue}});var kt=Yt(3294);function ue(Ce){let fe=!0;if(Ce.length>0){for(let pe=0;pefe in Ce?xe(Ce,fe,{enumerable:!0,configurable:!0,writable:!0,value:pe}):Ce[fe]=pe,ge=(Ce,fe,pe)=>Te(Ce,typeof fe!="symbol"?fe+"":fe,pe),Ae=(Ce,fe,pe)=>new Promise((le,Be)=>{var je=nt=>{try{et(pe.next(nt))}catch(gt){Be(gt)}},Nt=nt=>{try{et(pe.throw(nt))}catch(gt){Be(gt)}},et=nt=>nt.done?le(nt.value):Promise.resolve(nt.value).then(je,Nt);et((pe=pe.apply(Ce,fe)).next())});class qt extends kt.EventEmitter{constructor(fe,pe){super(),ge(this,"url"),ge(this,"body"),ge(this,"fullContent",""),ge(this,"controller",null),this.url=fe,this.body=pe}startStream(){return Ae(this,null,function*(){this.controller=new AbortController;const{signal:fe}=this.controller;try{const pe=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:fe});if(!pe.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${pe.status}`);const le=pe.headers.get("content-type");if(!le)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(le.includes("application/json")){const Nt=yield pe.json();this.emit("error",Nt);return}if(!le.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const Be=pe.body.getReader(),je=new TextDecoder("utf-8");for(;;){const{done:Nt,value:et}=yield Be.read();if(Nt)break;const gt=je.decode(et,{stream:!0}).split(` -`);for(const lt of gt)if(lt.startsWith("data:")){const pt=lt.slice(5).trim();if(pt==="[DONE]")break;try{const vt=JSON.parse(pt);vt.data&&this.handleData(vt.data)}catch(vt){console.error("\u89E3\u6790 JSON \u5931\u8D25:",vt)}}}this.emit("done",this.fullContent)}catch(pe){pe.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",pe.message)}})}handleData(fe){fe.content&&(this.fullContent+=fe.content,this.emit("data",{chunk:fe,full:this.fullContent}))}cancelRequest(){var fe;(fe=this.controller)==null||fe.abort()}}pn.Z=qt},43276:function(Ye,pn,Yt){"use strict";Yt.d(pn,{Z:function(){return Ft}});var kt=Yt(59301),ue=Yt(72719),xe=Yt(77596),Te=Yt(93772),ge=Yt(14179),Ae=Yt(56102),qt={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm"},Ce=Yt(8591),fe=Yt(11611),pe=Yt(35328),le=Yt(30084),Be=Yt(10787),je=Yt(50304),Nt=Object.defineProperty,et=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,lt=(Wt,Kt,_t)=>Kt in Wt?Nt(Wt,Kt,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Wt[Kt]=_t,pt=(Wt,Kt)=>{for(var _t in Kt||(Kt={}))nt.call(Kt,_t)&<(Wt,_t,Kt[_t]);if(et)for(var _t of et(Kt))gt.call(Kt,_t)&<(Wt,_t,Kt[_t]);return Wt},vt=(Wt,Kt)=>{var _t={};for(var ne in Wt)nt.call(Wt,ne)&&Kt.indexOf(ne)<0&&(_t[ne]=Wt[ne]);if(Wt!=null&&et)for(var ne of et(Wt))Kt.indexOf(ne)<0&>.call(Wt,ne)&&(_t[ne]=Wt[ne]);return _t},Ft=({onFinish:Wt,value:Kt,streamingStatus:_t,cancelIndex:ne,loadImage:$t})=>{const[ve,re]=(0,kt.useState)(""),[Oe,me]=(0,kt.useState)(0),[Fe,Pn]=(0,kt.useState)(!1),vn=Zt=>Zt.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Gt,He)=>`$$${He.trim()}$$`).replace(/\\\(([\s\S]*?)\\\)/g,'$$$$$1$$$$').replace(/\\\[([\s\S]*?)\\\]/g,'$$$$$1$$$$').replace(/_{2,}/g,"`$&`"),Mn=()=>{Pn(!0),Wt==null||Wt()};return(0,kt.useEffect)(()=>{const Zt=$t?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A +(self.webpackChunk=self.webpackChunk||[]).push([[4498],{32050:function(Ye,pn,Yt){"use strict";Yt.d(pn,{Z:function(){return Ce}});var kt=Yt(72308),ue=Yt(59301),xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},Te=xe,ge=Yt(7657),Ee=function(pe,le){return ue.createElement(ge.Z,(0,kt.Z)({},pe,{ref:le,icon:Te}))},qt=ue.forwardRef(Ee),Ce=qt},37036:function(){"use strict"},88010:function(Ye,pn){"use strict";pn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},74413:function(){"use strict";function Ye(Nt,et,nt,gt){nt===void 0&&(nt=0),gt===void 0&&(gt=1/0),this._name=Nt,this._defaultValue=et,this._minimum=nt,this._maximum=gt}Object.defineProperty(Ye.prototype,"name",{get:function(){return this._name},set:function(Nt){if(typeof Nt!="string"||Nt==="")throw new Error("Shape name must be a valid string.");this._name=Nt}}),Object.defineProperty(Ye.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Nt){if(typeof Nt!="number"||isNaN(Nt))throw new Error("The default value must be a real number, not: "+Nt);this._defaultValue=Nt}}),Object.defineProperty(Ye.prototype,"minimum",{get:function(){return this._minimum},set:function(Nt){if(typeof Nt!="number"||isNaN(Nt))throw new Error("Minimum must be a real number, not: "+Nt);this._minimum=Nt}}),Object.defineProperty(Ye.prototype,"maximum",{get:function(){return this._maximum},set:function(Nt){if(typeof Nt!="number"||isNaN(Nt))throw new Error("Maximum must be a real number, not: "+Nt);this._maximum=Nt}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Nt,et){var nt=go.Shape._FigureParameters[Nt];return nt?nt[et]:null},go.Shape.setFigureParameter=function(Nt,et,nt){if(!(nt instanceof Ye))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+nt);if(nt.defaultValuent.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+nt.defaultValue);var gt=go.Shape._FigureParameters[Nt];gt||(gt=[],go.Shape._FigureParameters[Nt]=gt),gt[et]=nt};var pn=[];function Yt(Nt,et){var nt=pn.pop();return nt===void 0?new go.Point(Nt,et):(nt.x=Nt,nt.y=et,nt)}function kt(){var Nt=pn.pop();return Nt===void 0?new go.Point:Nt}function ue(Nt){pn.push(Nt)}function xe(Nt,et,nt,gt,lt,pt,vt,Lt,Ft){Ft||(Ft=new go.Point);var Wt=Nt-nt,Kt=lt-vt,_t=NaN,ne=NaN;if(Wt===0)if(Kt===0)Nt===nt&&(_t=Nt,ne=et);else{var $t=(pt-Lt)/Kt,ve=pt-$t*lt;_t=Nt,ne=$t*_t+ve}else if(Kt===0){var re=(et-gt)/Wt,Oe=et-re*Nt;_t=lt,ne=re*_t+Oe}else{var re=(et-gt)/Wt,$t=(pt-Lt)/Kt,Oe=et-re*Nt,ve=pt-$t*lt;_t=(ve-Oe)/(re-$t),ne=re*_t+Oe}return Ft.x=_t,Ft.y=ne,Ft}function Te(Nt,et,nt,gt,lt,pt,vt,Lt,Ft,Wt,Kt,_t,ne,$t){var ve=1-Ft,re=Ft,Oe=Nt*ve+nt*re,me=et*ve+gt*re,Fe=nt*ve+lt*re,Pn=gt*ve+pt*re,vn=lt*ve+vt*re,Mn=pt*ve+Lt*re,In=Oe*ve+Fe*re,Zt=me*ve+Pn*re,Gt=Fe*ve+vn*re,He=Pn*ve+Mn*re,un=In*ve+Gt*re,ln=Zt*ve+He*re;Wt.x=Oe,Wt.y=me,Kt.x=In,Kt.y=Zt,_t.x=un,_t.y=ln,ne.x=Gt,ne.y=He,$t.x=vn,$t.y=Mn}var ge=new go.Spot(.156,.156),Ee=new go.Spot(.844,.844),qt=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Ye("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;(isNaN(gt)||gt<0)&&(gt=5),gt=Math.min(gt,et/3),gt=Math.min(gt,nt/3);var lt=gt*qt,pt=new go.Geometry().add(new go.PathFigure(gt,0,!0).add(new go.PathSegment(go.PathSegment.Line,et-gt,0)).add(new go.PathSegment(go.PathSegment.Bezier,et,gt,et-lt,0,et,lt)).add(new go.PathSegment(go.PathSegment.Line,et,nt-gt)).add(new go.PathSegment(go.PathSegment.Bezier,et-gt,nt,et,nt-lt,et-lt,nt)).add(new go.PathSegment(go.PathSegment.Line,gt,nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,nt-gt,lt,nt,0,nt-lt)).add(new go.PathSegment(go.PathSegment.Line,0,gt)).add(new go.PathSegment(go.PathSegment.Bezier,gt,0,0,lt,lt,0).close()));return lt>1&&(pt.spot1=new go.Spot(0,0,lt,lt),pt.spot2=new go.Spot(1,1,-lt,-lt)),pt}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(Nt,et,nt){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,nt).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(et,nt).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(et,nt).add(new go.PathSegment(go.PathSegment.Line,0,nt)).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(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(Nt,et,nt){var gt=new go.Geometry(go.Geometry.Line);return gt.startX=0,gt.startY=nt/2,gt.endX=et,gt.endY=nt/2,gt}),go.Shape.defineFigureGenerator("LineV",function(Nt,et,nt){var gt=new go.Geometry(go.Geometry.Line);return gt.startX=et/2,gt.startY=0,gt.endX=et/2,gt.endY=nt,gt}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt/2,!1).add(new go.PathSegment(go.PathSegment.Line,et,nt/2)).add(new go.PathSegment(go.PathSegment.Move,et/2,0)).add(new go.PathSegment(go.PathSegment.Line,et/2,nt)))}),go.Shape.defineFigureGenerator("XLine",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt,!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,nt)))}),go.Shape.defineFigureGenerator("LineRight",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(.25*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.25*et,nt)))}),go.Shape.defineFigureGenerator("LineDown",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,.25*nt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,.75*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)))}),go.Shape.defineFigureGenerator("LineLeft",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(.75*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.75*et,nt)))}),go.Shape.defineFigureGenerator("LineUp",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,.75*nt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,.25*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(Nt,et,nt){var gt=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(gt*et,(1-gt)*nt,!1).add(new go.PathSegment(go.PathSegment.Line,(1-gt)*et,gt*nt)).add(new go.PathSegment(go.PathSegment.Move,gt*et,gt*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-gt)*et,(1-gt)*nt)).add(new go.PathSegment(go.PathSegment.Move,0,nt/2)).add(new go.PathSegment(go.PathSegment.Line,et,nt/2)).add(new go.PathSegment(go.PathSegment.Move,et/2,0)).add(new go.PathSegment(go.PathSegment.Line,et/2,nt)))}),go.Shape.defineFigureGenerator("CircleLine",function(Nt,et,nt){var gt=et/2,lt=new go.Geometry().add(new go.PathFigure(et,et/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,gt,gt,gt,gt).close()));return lt.spot1=ge,lt.spot2=Ee,lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("Line1",function(Nt,et,nt){var gt=new go.Geometry(go.Geometry.Line);return gt.startX=0,gt.startY=0,gt.endX=et,gt.endY=nt,gt}),go.Shape.defineFigureGenerator("Line2",function(Nt,et,nt){var gt=new go.Geometry(go.Geometry.Line);return gt.startX=et,gt.startY=0,gt.endX=0,gt.endY=nt,gt}),go.Shape.defineFigureGenerator("Curve1",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,nt,qt*et,0,et,(1-qt)*nt)))}),go.Shape.defineFigureGenerator("Curve2",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,nt,0,qt*nt,(1-qt)*et,nt)))}),go.Shape.defineFigureGenerator("Curve3",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,et,qt*nt,qt*et,nt)))}),go.Shape.defineFigureGenerator("Curve4",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,(1-qt)*et,0,0,(1-qt)*nt)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(et,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(Nt,et,nt){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,nt).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(Nt,et,nt){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,nt).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Ye("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;isNaN(gt)?gt=.1:gt<-1?gt=-1:gt>1&&(gt=1);var lt=Math.abs(gt)*et;if(gt===0){var pt=new go.Geometry(go.Geometry.Rectangle);return pt.startX=0,pt.startY=0,pt.endX=et,pt.endY=nt,pt}else{var pt=new go.Geometry;return gt>0?pt.add(new go.PathFigure(lt,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-lt,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):pt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et-lt,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,lt,nt).close())),ltet&&(gt=et);var lt=Math.abs(gt);if(gt===0){var pt=new go.Geometry(go.Geometry.Rectangle);return pt.startX=0,pt.startY=0,pt.endX=et,pt.endY=nt,pt}else{var pt=new go.Geometry;return gt>0?pt.add(new go.PathFigure(lt,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-lt,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):pt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et-lt,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,lt,nt).close())),lt.5&&(gt=.5);var lt=Math.abs(gt)*et;if(gt===0){var pt=new go.Geometry(go.Geometry.Rectangle);return pt.startX=0,pt.startY=0,pt.endX=et,pt.endY=nt,pt}else{var pt=new go.Geometry;return gt>0?pt.add(new go.PathFigure(lt,0).add(new go.PathSegment(go.PathSegment.Line,et-lt,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):pt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-lt,nt)).add(new go.PathSegment(go.PathSegment.Line,lt,nt).close())),ltet&&(gt=et/2);var lt=Math.abs(gt);if(gt===0){var pt=new go.Geometry(go.Geometry.Rectangle);return pt.startX=0,pt.startY=0,pt.endX=et,pt.endY=nt,pt}else{var pt=new go.Geometry;return gt>0?pt.add(new go.PathFigure(lt,0).add(new go.PathSegment(go.PathSegment.Line,et-lt,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):pt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-lt,nt)).add(new go.PathSegment(go.PathSegment.Line,lt,nt).close())),ltet&&(gt=et/2);var lt=Math.abs(gt);if(gt===0){var pt=new go.Geometry(go.Geometry.Rectangle);return pt.startX=0,pt.startY=0,pt.endX=et,pt.endY=nt,pt}else{var pt=new go.Geometry;return gt>0?pt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-lt,nt)).add(new go.PathSegment(go.PathSegment.Line,lt,nt).close())):pt.add(new go.PathFigure(lt,0).add(new go.PathSegment(go.PathSegment.Line,et-lt,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())),lt0&&(vt.add(new go.PathSegment(go.PathSegment.Move,et/2+Lt,et/2)),vt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,lt,lt,Lt,Lt).close())),pt.spot1=ge,pt.spot2=Ee,pt.defaultStretch=go.GraphObject.Uniform,pt}),go.Shape.defineFigureGenerator("Cloud",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(.08034461*et,.1944299*nt,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*et,.05349299*nt,-.09239631*et,.07836421*nt,.1406031*et,-.0542823*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*et,.074219*nt,.2450511*et,-.00697547*nt,.3776197*et,-.01112067*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*et,.07004196*nt,.4539471*et,0,.6066018*et,-.02526587*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*et,.08370865*nt,.6914277*et,-.01904177*nt,.8921095*et,-.01220843*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*et,.3194596*nt,1.036446*et,.04105738*nt,1.020377*et,.3022052*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*et,.562044*nt,1.04448*et,.360238*nt,.992256*et,.5219009*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*et,.8217117*nt,1.032337*et,.5771781*nt,1.018411*et,.8120651*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*et,.9156953*nt,1.028411*et,.9571472*nt,.8556702*et,1.052487*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*et,.9310455*nt,.7431877*et,1.009325*nt,.5624123*et,1.021761*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*et,.9344623*nt,.4820677*et,1.031761*nt,.3030112*et,1.002796*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*et,.870098*nt,.2329994*et,1.01518*nt,.03213784*et,1.01518*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*et,.6545475*nt,-.02812061*et,.9032597*nt,-.01205169*et,.6835638*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*et,.4265613*nt,-.01812061*et,.6089503*nt,-.00606892*et,.4555777*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*et,.1944299*nt,-.01606892*et,.3892545*nt,-.01205169*et,.1944299*nt))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(Nt,et,nt){var gt=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(gt*et,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-gt)*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,gt*nt)).add(new go.PathSegment(go.PathSegment.Line,et,(1-gt)*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-gt)*et,nt)).add(new go.PathSegment(go.PathSegment.Line,gt*et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,(1-gt)*nt)).add(new go.PathSegment(go.PathSegment.Line,0,gt*nt).close())).setSpots(gt/2,gt/2,1-gt/2,1-gt/2)}),go.Shape.setFigureParameter("Pie",0,new Ye("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Ye("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN,lt=Nt?Nt.parameter2:NaN;isNaN(gt)&&(gt=0),isNaN(lt)&&(lt=315);var pt=gt%360;pt<0&&(pt+=360);var vt=lt%360,Lt=Math.min(et,nt)/2;return new go.Geometry().add(new go.PathFigure(Lt,Lt).add(new go.PathSegment(go.PathSegment.Arc,pt,vt,Lt,Lt,Lt,Lt).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Nt,et,nt){var gt=qt/Math.SQRT2*.5,lt=Math.SQRT2/2,pt=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(et,nt,!0).add(new go.PathSegment(go.PathSegment.Bezier,lt*et,pt*nt,et,(1-gt)*nt,(lt+gt)*et,(pt+gt)*nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Ye("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;(isNaN(gt)||gt<0)&&(gt=30);var lt=Math.min(gt,et)/2,pt=et/2,vt=nt/2;return new go.Geometry().add(new go.PathFigure(pt-lt,0,!0).add(new go.PathSegment(go.PathSegment.Line,pt+lt,0)).add(new go.PathSegment(go.PathSegment.Line,pt+lt,vt-lt)).add(new go.PathSegment(go.PathSegment.Line,et,vt-lt)).add(new go.PathSegment(go.PathSegment.Line,et,vt+lt)).add(new go.PathSegment(go.PathSegment.Line,pt+lt,vt+lt)).add(new go.PathSegment(go.PathSegment.Line,pt+lt,nt)).add(new go.PathSegment(go.PathSegment.Line,pt-lt,nt)).add(new go.PathSegment(go.PathSegment.Line,pt-lt,vt+lt)).add(new go.PathSegment(go.PathSegment.Line,0,vt+lt)).add(new go.PathSegment(go.PathSegment.Line,0,vt-lt)).add(new go.PathSegment(go.PathSegment.Line,pt-lt,vt-lt).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Ye("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;(isNaN(gt)||gt<0)&&(gt=10);var lt=Math.min(gt,et)/2,pt=et/2,vt=nt/2;return new go.Geometry().add(new go.PathFigure(pt-lt,0,!0).add(new go.PathSegment(go.PathSegment.Line,pt+lt,0)).add(new go.PathSegment(go.PathSegment.Line,pt+lt,vt-lt)).add(new go.PathSegment(go.PathSegment.Line,et,vt-lt)).add(new go.PathSegment(go.PathSegment.Line,et,vt+lt)).add(new go.PathSegment(go.PathSegment.Line,pt+lt,vt+lt)).add(new go.PathSegment(go.PathSegment.Line,pt+lt,nt)).add(new go.PathSegment(go.PathSegment.Line,pt-lt,nt)).add(new go.PathSegment(go.PathSegment.Line,pt-lt,vt+lt)).add(new go.PathSegment(go.PathSegment.Line,0,vt+lt)).add(new go.PathSegment(go.PathSegment.Line,0,vt-lt)).add(new go.PathSegment(go.PathSegment.Line,pt-lt,vt-lt).close()))}),go.Shape.setFigureParameter("ThickX",0,new Ye("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;if((isNaN(gt)||gt<0)&&(gt=30),et===0||nt===0){var lt=new go.Geometry(go.Geometry.Rectangle);return lt.startX=0,lt.startY=0,lt.endX=et,lt.endY=nt,lt}else{var pt=et/2,vt=nt/2,Lt=Math.atan2(nt,et),Ft=gt-Math.min(Math.cos(Lt)*gt/2,pt),Wt=gt-Math.min(Math.sin(Lt)*gt/2,vt),lt=new go.Geometry,Kt=new go.PathFigure(Ft,0,!0);return lt.add(Kt),Kt.add(new go.PathSegment(go.PathSegment.Line,pt,.2*nt)),Kt.add(new go.PathSegment(go.PathSegment.Line,et-Ft,0)),Kt.add(new go.PathSegment(go.PathSegment.Line,et,Wt)),Kt.add(new go.PathSegment(go.PathSegment.Line,.8*et,vt)),Kt.add(new go.PathSegment(go.PathSegment.Line,et,nt-Wt)),Kt.add(new go.PathSegment(go.PathSegment.Line,et-Ft,nt)),Kt.add(new go.PathSegment(go.PathSegment.Line,pt,.8*nt)),Kt.add(new go.PathSegment(go.PathSegment.Line,Ft,nt)),Kt.add(new go.PathSegment(go.PathSegment.Line,0,nt-Wt)),Kt.add(new go.PathSegment(go.PathSegment.Line,.2*et,vt)),Kt.add(new go.PathSegment(go.PathSegment.Line,0,Wt).close()),lt}}),go.Shape.setFigureParameter("ThinX",0,new Ye("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;(isNaN(gt)||gt<0)&&(gt=10);var lt=new go.Geometry,pt=new go.PathFigure(.1*et,0,!0);return lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,et,.1*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.1*et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.9*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt).close()),lt}),go.Shape.setFigureParameter("SquareIBeam",0,new Ye("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;isNaN(gt)&&(gt=.2);var lt=new go.Geometry,pt=new go.PathFigure(0,0,!0);return lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,et,gt*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,(.5+gt/2)*et,gt*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,(.5+gt/2)*et,(1-gt)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,(1-gt)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,(1-gt)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,(.5-gt/2)*et,(1-gt)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,(.5-gt/2)*et,gt*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,gt*nt).close()),lt}),go.Shape.setFigureParameter("RoundedIBeam",0,new Ye("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;isNaN(gt)&&(gt=.5);var lt=new go.Geometry,pt=new go.PathFigure(0,0,!0);return lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Bezier,et,nt,Math.abs(1-gt)*et,.25*nt,Math.abs(1-gt)*et,.75*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,gt*et,.75*nt,gt*et,.25*nt).close()),lt}),go.Shape.defineFigureGenerator("HalfEllipse",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,qt*et,0,et,(.5-qt/2)*nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,et,(.5+qt/2)*nt,qt*et,nt).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,et,0,et,nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*et,.75*nt,.5*et,.25*nt).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,nt,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*nt,.1*et,.8*nt,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*nt,0,0,.45*et,0)).add(new go.PathSegment(go.PathSegment.Bezier,et,.3*nt,.55*et,0,et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,.5*nt,.9*et,.8*nt).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*et,.01*nt)).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,.6*et,.2*nt,et,.25*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.7*nt,et,.8*nt,.6*et,.8*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.75*et,nt,.5*et,.75*nt,.55*et,.95*nt)).add(new go.PathSegment(go.PathSegment.Line,.25*et,nt)).add(new go.PathSegment(go.PathSegment.Bezier,.45*et,.7*nt,.45*et,.95*nt,.5*et,.75*nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,.4*et,.8*nt,0,.8*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.49*et,.01*nt,0,.25*nt,.4*et,.2*nt).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.4*et,.6*nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.15*et,nt,.5*et,.75*nt,.45*et,.95*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.85*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.6*et,.6*nt,.55*et,.95*nt,.5*et,.75*nt));var pt=.2,vt=.3,Lt=0,Ft=pt*qt;return lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*et,(.5+pt+Lt)*nt,(.5-pt+vt)*et,(.5+Ft+Lt)*nt,(.5-Ft+vt)*et,(.5+pt+Lt)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+pt+vt)*et,(.5+Lt)*nt,(.5+Ft+vt)*et,(.5+pt+Lt)*nt,(.5+pt+vt)*et,(.5+Ft+Lt)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*et,(.5-pt+Lt)*nt,(1-.5+pt+vt)*et,(.5-Ft+Lt)*nt,(.5+Ft+vt)*et,(.5-pt+Lt)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.65*et,.36771243*nt,(.5-Ft+vt)*et,(.5-pt+Lt)*nt,(.5-pt+vt+.05)*et,(.5-Ft+Lt-.02)*nt)),pt=.2,vt=0,Lt=-.3,Ft=pt*qt,lt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+pt+vt)*et,(.5+Lt)*nt,(.5+Ft+vt)*et,(.5+pt+Lt)*nt,(.5+pt+vt)*et,(.5+Ft+Lt)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*et,(.5-pt+Lt)*nt,(1-.5+pt+vt)*et,(.5-Ft+Lt)*nt,(.5+Ft+vt)*et,(.5-pt+Lt)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-pt+vt)*et,(.5+Lt)*nt,(.5-Ft+vt)*et,(.5-pt+Lt)*nt,(.5-pt+vt)*et,(.5-Ft+Lt)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Ft+vt)*et,(.5+pt+Lt)*nt,(.5-pt+vt)*et,(.5+Ft+Lt)*nt,(.5-Ft+vt)*et,(.5+pt+Lt)*nt)),pt=.2,vt=-.3,Lt=0,Ft=pt*qt,lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*et,(.5-pt+Lt)*nt,(1-.5+pt+vt-.05)*et,(.5-Ft+Lt-.02)*nt,(.5+Ft+vt)*et,(.5-pt+Lt)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-pt+vt)*et,(.5+Lt)*nt,(.5-Ft+vt)*et,(.5-pt+Lt)*nt,(.5-pt+vt)*et,(.5-Ft+Lt)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*et,(.5+pt+Lt)*nt,(.5-pt+vt)*et,(.5+Ft+Lt)*nt,(.5-Ft+vt)*et,(.5+pt+Lt)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.6*nt,(.5+Ft+vt)*et,(.5+pt+Lt)*nt,(.5+pt+vt)*et,(.5+Ft+Lt)*nt).close()),gt.setSpots(.06,.33,.93,.68),gt}),go.Shape.defineFigureGenerator("YinYang",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(et*.5,0,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,270,180,et*.5,et*.5,et*.5,et*.5)),lt.add(new go.PathSegment(go.PathSegment.Arc,90,-180,et*.5,et*.75,et*.25,et*.25)),lt.add(new go.PathSegment(go.PathSegment.Arc,90,180,et*.5,et*.25,et*.25,et*.25));var pt=.1,vt=.5,Lt=.25;return lt.add(new go.PathSegment(go.PathSegment.Move,(vt+pt)*et,Lt*nt)),lt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,et*vt,nt*Lt,pt*et,pt*et).close()),lt=new go.PathFigure(et*.5,0,!1),gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*.5,et*.5,et*.5,et*.5)),Lt=.75,lt=new go.PathFigure((vt+pt)*et,Lt*nt,!0),gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,0,360,et*vt,nt*Lt,pt*et,pt*et).close()),gt.defaultStretch=go.GraphObject.Uniform,gt}),go.Shape.defineFigureGenerator("Peace",function(Nt,et,nt){var gt=.8535533905932737,lt=.5*et,pt=.5*nt;return new go.Geometry().add(new go.PathFigure(lt,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,lt,pt,lt,pt)).add(new go.PathSegment(go.PathSegment.Line,lt,nt)).add(new go.PathSegment(go.PathSegment.Move,lt,pt)).add(new go.PathSegment(go.PathSegment.Line,(1-gt)*et,gt*nt)).add(new go.PathSegment(go.PathSegment.Move,lt,pt)).add(new go.PathSegment(go.PathSegment.Line,gt*et,gt*nt)))}),go.Shape.defineFigureGenerator("NotAllowed",function(Nt,et,nt){var gt=new go.Geometry,lt=qt*.5,pt=.5,vt=.5,Lt=.5,Ft=new go.PathFigure(vt*et,(Lt-pt)*nt);gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt-pt)*et,Lt*nt,(vt-lt)*et,(Lt-pt)*nt,(vt-pt)*et,(Lt-lt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt+pt)*nt,(vt-pt)*et,(Lt+lt)*nt,(vt-lt)*et,(Lt+pt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*et,Lt*nt,(vt+lt)*et,(Lt+pt)*nt,(vt+pt)*et,(Lt+lt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt-pt)*nt,(vt+pt)*et,(Lt-lt)*nt,(vt+lt)*et,(Lt-pt)*nt)),pt=.4,lt=qt*.4;var Wt=kt(),Kt=kt(),_t=kt(),ne=kt();Te(vt,Lt-pt,vt+lt,Lt-pt,vt+pt,Lt-lt,vt+pt,Lt,.42,Wt,Kt,_t,ne,ne);var $t=kt(),ve=kt(),re=kt();Te(vt,Lt-pt,vt+lt,Lt-pt,vt+pt,Lt-lt,vt+pt,Lt,.58,ne,ne,re,$t,ve);var Oe=kt(),me=kt(),Fe=kt();Te(vt,Lt+pt,vt-lt,Lt+pt,vt-pt,Lt+lt,vt-pt,Lt,.42,Oe,me,Fe,ne,ne);var Pn=kt(),vn=kt(),Mn=kt();return Te(vt,Lt+pt,vt-lt,Lt+pt,vt-pt,Lt+lt,vt-pt,Lt,.58,ne,ne,Mn,Pn,vn),Ft.add(new go.PathSegment(go.PathSegment.Move,Mn.x*et,Mn.y*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt-pt)*et,Lt*nt,Pn.x*et,Pn.y*nt,vn.x*et,vn.y*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt-pt)*nt,(vt-pt)*et,(Lt-lt)*nt,(vt-lt)*et,(Lt-pt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,_t.x*et,_t.y*nt,Wt.x*et,Wt.y*nt,Kt.x*et,Kt.y*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,Mn.x*et,Mn.y*nt).close()),Ft.add(new go.PathSegment(go.PathSegment.Move,Fe.x*et,Fe.y*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,re.x*et,re.y*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*et,Lt*nt,$t.x*et,$t.y*nt,ve.x*et,ve.y*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt+pt)*nt,(vt+pt)*et,(Lt+lt)*nt,(vt+lt)*et,(Lt+pt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,Fe.x*et,Fe.y*nt,Oe.x*et,Oe.y*nt,me.x*et,me.y*nt).close()),ue(Wt),ue(Kt),ue(_t),ue(ne),ue($t),ue(ve),ue(re),ue(Oe),ue(me),ue(Fe),ue(Pn),ue(vn),ue(Mn),gt.defaultStretch=go.GraphObject.Uniform,gt}),go.Shape.defineFigureGenerator("Fragile",function(Nt,et,nt){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*nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.25*nt)).add(new go.PathSegment(go.PathSegment.Line,.29*et,.33*nt)).add(new go.PathSegment(go.PathSegment.Line,.35*et,.25*nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.15*nt)).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*nt,et,.25*nt,.75*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.45*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.5*nt,0,.25*nt).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Ye("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;(isNaN(gt)||gt<0)&&(gt=30),gt>et&&(gt=et);var lt=(et-gt)/2,pt=lt+gt;return new go.Geometry().add(new go.PathFigure(pt,.5*nt).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt)).add(new go.PathSegment(go.PathSegment.Line,lt,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,et,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,.55*nt).add(new go.PathSegment(go.PathSegment.Line,.6*et,0)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.45*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.45*nt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.55*nt).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(Nt,et,nt){var gt=new go.Geometry,lt=qt*.4,pt=.4,vt=.5,Lt=.5,Ft=kt(),Wt=kt(),Kt=kt(),_t=kt(),ne=new go.PathFigure((vt-pt)*et,Lt*nt,!1);gt.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt-pt)*nt,(vt-pt)*et,(Lt-lt)*nt,(vt-lt)*et,(Lt-pt)*nt)),Te(vt,Lt-pt,vt+lt,Lt-pt,vt+pt,Lt-lt,vt+pt,Lt,.44,Kt,_t,Wt,Ft,Ft),ne.add(new go.PathSegment(go.PathSegment.Bezier,Wt.x*et,Wt.y*nt,Kt.x*et,Kt.y*nt,_t.x*et,_t.y*nt));var $t=Yt(Wt.x,Wt.y);Te(vt,Lt-pt,vt+lt,Lt-pt,vt+pt,Lt-lt,vt+pt,Lt,.56,Ft,Ft,Wt,Kt,_t);var ve=Yt(Wt.x,Wt.y);ne.add(new go.PathSegment(go.PathSegment.Line,($t.x*.1+.95*.9)*et,$t.y*.1*nt)),ne.add(new go.PathSegment(go.PathSegment.Line,.85*et,$t.y*.1*nt)),ne.add(new go.PathSegment(go.PathSegment.Line,.85*et,0)),ne.add(new go.PathSegment(go.PathSegment.Line,et,0)),ne.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),ne.add(new go.PathSegment(go.PathSegment.Line,(ve.x*.1+.9)*et,.15*nt)),ne.add(new go.PathSegment(go.PathSegment.Line,(ve.x*.1+.9)*et,(ve.y*.1+.05*.9)*nt)),ne.add(new go.PathSegment(go.PathSegment.Line,ve.x*et,ve.y*nt)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*et,Lt*nt,Kt.x*et,Kt.y*nt,_t.x*et,_t.y*nt)),ne.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt+pt)*nt,(vt+pt)*et,(Lt+lt)*nt,(vt+lt)*et,(Lt+pt)*nt)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(vt-pt)*et,Lt*nt,(vt-lt)*et,(Lt+pt)*nt,(vt-pt)*et,(Lt+lt)*nt)),pt=.35,lt=qt*.35;var re=new go.PathFigure(vt*et,(Lt-pt)*nt,!1);gt.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,(vt-pt)*et,Lt*nt,(vt-lt)*et,(Lt-pt)*nt,(vt-pt)*et,(Lt-lt)*nt)),re.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt+pt)*nt,(vt-pt)*et,(Lt+lt)*nt,(vt-lt)*et,(Lt+pt)*nt)),re.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*et,Lt*nt,(vt+lt)*et,(Lt+pt)*nt,(vt+pt)*et,(Lt+lt)*nt)),re.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt-pt)*nt,(vt+pt)*et,(Lt-lt)*nt,(vt+lt)*et,(Lt-pt)*nt));var Oe=new go.PathFigure((vt-pt)*et,Lt*nt,!1);return gt.add(Oe),ue(Ft),ue(Wt),ue(Kt),ue(_t),ue($t),ue(ve),gt.spot1=new go.Spot(.202,.257),gt.spot2=new go.Spot(.792,.739),gt.defaultStretch=go.GraphObject.Uniform,gt}),go.Shape.defineFigureGenerator("GenderFemale",function(Nt,et,nt){var gt=new go.Geometry,lt=.375,pt=0,vt=-.125,Lt=lt*qt,Ft=new go.PathFigure((.525+pt)*et,(.5+lt+vt)*nt,!1);gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+lt+pt)*et,(.5+vt)*nt,(.5+Lt+pt)*et,(.5+lt+vt)*nt,(.5+lt+pt)*et,(.5+Lt+vt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pt)*et,(.5-lt+vt)*nt,(1-.5+lt+pt)*et,(.5-Lt+vt)*nt,(.5+Lt+pt)*et,(.5-lt+vt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(.5-lt+pt)*et,(.5+vt)*nt,(.5-Lt+pt)*et,(.5-lt+vt)*nt,(.5-lt+pt)*et,(.5-Lt+vt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(.475+pt)*et,(.5+lt+vt)*nt,(.5-lt+pt)*et,(.5+Lt+vt)*nt,(.5-Lt+pt)*et,(.5+lt+vt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.475*et,.85*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.425*et,.85*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.425*et,.9*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.475*et,.9*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.475*et,nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.525*et,nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.525*et,.9*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.575*et,.9*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.575*et,.85*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*nt).close()),lt=.325,pt=0,vt=-.125,Lt=lt*qt;var Ft=new go.PathFigure((1-.5+lt+pt)*et,(.5+vt)*nt,!1);gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pt)*et,(.5+lt+vt)*nt,(.5+lt+pt)*et,(.5+Lt+vt)*nt,(.5+Lt+pt)*et,(.5+lt+vt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(.5-lt+pt)*et,(.5+vt)*nt,(.5-Lt+pt)*et,(.5+lt+vt)*nt,(.5-lt+pt)*et,(.5+Lt+vt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pt)*et,(.5-lt+vt)*nt,(.5-lt+pt)*et,(.5-Lt+vt)*nt,(.5-Lt+pt)*et,(.5-lt+vt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+lt+pt)*et,(.5+vt)*nt,(.5+Lt+pt)*et,(.5-lt+vt)*nt,(1-.5+lt+pt)*et,(.5-Lt+vt)*nt));var Ft=new go.PathFigure((.525+pt)*et,(.5+lt+vt)*nt,!1);return gt.add(Ft),gt.spot1=new go.Spot(.232,.136),gt.spot2=new go.Spot(.682,.611),gt.defaultStretch=go.GraphObject.Uniform,gt}),go.Shape.defineFigureGenerator("LogicImplies",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;return isNaN(gt)&&(gt=.2),new go.Geometry().add(new go.PathFigure((1-gt)*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-gt)*et,nt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;return isNaN(gt)&&(gt=.2),new go.Geometry().add(new go.PathFigure((1-gt)*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-gt)*et,nt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Move,gt*et,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,gt*et,nt))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(Nt,et,nt){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,nt)))}),go.Shape.defineFigureGenerator("LogicAnd",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,et,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(Nt,et,nt){var gt=new go.Geometry().add(new go.PathFigure(.5*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*et,.5*nt,.5*et,.5*nt)));return gt.defaultStretch=go.GraphObject.Uniform,gt}),go.Shape.defineFigureGenerator("LogicTruth",function(Nt,et,nt){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,nt)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Move,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(Nt,et,nt){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*nt)).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Move,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt)))}),go.Shape.defineFigureGenerator("LogicForAll",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*nt))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(Nt,et,nt){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*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Move,0,nt)).add(new go.PathSegment(go.PathSegment.Line,et,nt))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(Nt,et,nt){var gt=.5;return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,0,gt*nt)).add(new go.PathSegment(go.PathSegment.Arc,180,180,gt*et,gt*nt,gt*et,gt*nt)).add(new go.PathSegment(go.PathSegment.Line,et,nt))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(Nt,et,nt){var gt=.5;return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,gt*nt)).add(new go.PathSegment(go.PathSegment.Arc,0,180,gt*et,gt*nt,gt*et,gt*nt)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Ye("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Ye("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;isNaN(gt)&&(gt=.3);var lt=Nt?Nt.parameter2:NaN;isNaN(lt)&&(lt=.3);var pt=(1-gt)*et,vt=(.5-lt/2)*nt,Lt=(.5+lt/2)*nt,Ft=new go.Geometry,Wt=new go.PathFigure(0,vt,!0);Ft.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Line,pt,vt)),Wt.add(new go.PathSegment(go.PathSegment.Line,pt,0)),Wt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),Wt.add(new go.PathSegment(go.PathSegment.Line,pt,nt)),Wt.add(new go.PathSegment(go.PathSegment.Line,pt,Lt)),Wt.add(new go.PathSegment(go.PathSegment.Line,0,Lt).close()),Ft.spot1=new go.Spot(0,vt/nt);var Kt=xe(0,Lt/nt,1,Lt/nt,pt/et,1,1,.5,kt());return Ft.spot2=new go.Spot(Kt.x,Kt.y),ue(Kt),Ft}),go.Shape.setFigureParameter("Arrow2",0,new Ye("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Ye("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;isNaN(gt)&&(gt=30),gt>et&&(gt=et);var lt=Nt?Nt.parameter2:NaN;isNaN(lt)&&(lt=30),lt=Math.min(lt,nt/2);var pt=et-gt,vt=(nt-lt)/2,Lt=vt+lt,Ft=new go.Geometry,Wt=new go.PathFigure(0,vt,!0);Ft.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Line,pt,vt)),Wt.add(new go.PathSegment(go.PathSegment.Line,pt,0)),Wt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),Wt.add(new go.PathSegment(go.PathSegment.Line,pt,nt)),Wt.add(new go.PathSegment(go.PathSegment.Line,pt,Lt)),Wt.add(new go.PathSegment(go.PathSegment.Line,0,Lt).close()),Ft.spot1=new go.Spot(0,vt/nt);var Kt=xe(0,Lt/nt,1,Lt/nt,pt/et,1,1,.5,kt());return Ft.spot2=new go.Spot(Kt.x,Kt.y),ue(Kt),Ft}),go.Shape.defineFigureGenerator("Chevron",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt).close()),gt}),go.Shape.defineFigureGenerator("DoubleArrow",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.214*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,1*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,1*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.786*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,1*nt).close()),gt}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Ye("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;isNaN(gt)&&(gt=.3);var lt=(.5-gt/2)*nt,pt=(.5+gt/2)*nt,vt=new go.Geometry,Lt=new go.PathFigure(et,.5*nt,!0);vt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,pt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,pt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),Lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,lt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,lt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close());var Ft=xe(0,.5,.3,0,0,lt/nt,.1,lt/nt,kt());return vt.spot1=new go.Spot(Ft.x,Ft.y),Ft=xe(.7,1,1,.5,0,pt/nt,1,pt/nt,Ft),vt.spot2=new go.Spot(Ft.x,Ft.y),ue(Ft),vt}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Ye("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Ye("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;isNaN(gt)&&(gt=40);var lt=Nt?Nt.parameter2:NaN;isNaN(lt)&&(lt=100);var pt=(nt-gt)/2,vt=pt+gt,Lt=(nt-lt)/2,Ft=Lt+lt;(gt>nt||lt>nt)&&(lt>gt?(gt=gt*nt/lt,pt=(nt-gt)/2,vt=pt+gt,Lt=0,Ft=nt):(pt=0,vt=nt,Lt=0,Ft=nt));var Wt=new go.Geometry,Kt=new go.PathFigure(et,.5*nt,!0);Wt.add(Kt),Kt.add(new go.PathSegment(go.PathSegment.Line,.7*et,Ft)),Kt.add(new go.PathSegment(go.PathSegment.Line,.7*et,vt)),Kt.add(new go.PathSegment(go.PathSegment.Line,.3*et,vt)),Kt.add(new go.PathSegment(go.PathSegment.Line,.3*et,Ft)),Kt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),Kt.add(new go.PathSegment(go.PathSegment.Line,.3*et,Lt)),Kt.add(new go.PathSegment(go.PathSegment.Line,.3*et,pt)),Kt.add(new go.PathSegment(go.PathSegment.Line,.7*et,pt)),Kt.add(new go.PathSegment(go.PathSegment.Line,.7*et,Lt).close());var _t=xe(0,.5,.3,Lt/nt,0,pt/nt,1,pt/nt,kt());return Wt.spot1=new go.Spot(_t.x,_t.y),_t=xe(.7,Ft/nt,1,.5,0,vt/nt,1,vt/nt,_t),Wt.spot2=new go.Spot(_t.x,_t.y),ue(_t),Wt}),go.Shape.setFigureParameter("IBeamArrow",0,new Ye("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;isNaN(gt)&&(gt=.3);var lt=(.5-gt/2)*nt,pt=(.5+gt/2)*nt,vt=new go.Geometry,Lt=new go.PathFigure(et,.5*nt,!0);vt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,pt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,pt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),Lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),Lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,lt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,lt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),vt.spot1=new go.Spot(0,lt/nt);var Ft=xe(.7,1,1,.5,0,pt/nt,1,pt/nt,kt());return vt.spot2=new go.Spot(Ft.x,Ft.y),ue(Ft),vt}),go.Shape.setFigureParameter("IBeamArrow2",0,new Ye("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Ye("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;isNaN(gt)&&(gt=40);var lt=Nt?Nt.parameter2:NaN;isNaN(lt)&&(lt=100);var pt=(nt-gt)/2,vt=pt+gt,Lt=(nt-lt)/2,Ft=Lt+lt;(gt>nt||lt>nt)&&(lt>gt?(gt=gt*nt/lt,pt=(nt-gt)/2,vt=pt+gt,Lt=0,Ft=nt):(pt=0,vt=nt,Lt=0,Ft=nt));var Wt=new go.Geometry,Kt=new go.PathFigure(et,.5*nt,!0);Wt.add(Kt),Kt.add(new go.PathSegment(go.PathSegment.Line,.7*et,Ft)),Kt.add(new go.PathSegment(go.PathSegment.Line,.7*et,vt)),Kt.add(new go.PathSegment(go.PathSegment.Line,.2*et,vt)),Kt.add(new go.PathSegment(go.PathSegment.Line,.2*et,Ft)),Kt.add(new go.PathSegment(go.PathSegment.Line,0,Ft)),Kt.add(new go.PathSegment(go.PathSegment.Line,0,Lt)),Kt.add(new go.PathSegment(go.PathSegment.Line,.2*et,Lt)),Kt.add(new go.PathSegment(go.PathSegment.Line,.2*et,pt)),Kt.add(new go.PathSegment(go.PathSegment.Line,.7*et,pt)),Kt.add(new go.PathSegment(go.PathSegment.Line,.7*et,Lt).close()),Wt.spot1=new go.Spot(0,pt/nt);var _t=xe(.7,Ft/nt,1,.5,0,vt/nt,1,vt/nt,kt());return Wt.spot2=new go.Spot(_t.x,_t.y),ue(_t),Wt}),go.Shape.setFigureParameter("Pointer",0,new Ye("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;isNaN(gt)&&(gt=.1);var lt=new go.Geometry,pt=new go.PathFigure(et,.5*nt,!0);lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,gt*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),lt.spot1=new go.Spot(gt,.35);var vt=xe(.2,.65,1,.65,0,1,1,.5,kt());return lt.spot2=new go.Spot(vt.x,vt.y),ue(vt),lt}),go.Shape.setFigureParameter("RoundedPointer",0,new Ye("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;isNaN(gt)&&(gt=.3);var lt=new go.Geometry,pt=new go.PathFigure(et,.5*nt,!0);lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,gt*et,.75*nt,gt*et,.25*nt).close()),lt.spot1=new go.Spot(gt,.35);var vt=xe(0,.65,1,.65,0,1,1,.5,kt());return lt.spot2=new go.Spot(vt.x,vt.y),ue(vt),lt}),go.Shape.setFigureParameter("SplitEndArrow",0,new Ye("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;isNaN(gt)&&(gt=.4);var lt=(.5-gt/2)*nt,pt=(.5+gt/2)*nt,vt=new go.Geometry,Lt=new go.PathFigure(et,.5*nt,!0);vt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,pt)),Lt.add(new go.PathSegment(go.PathSegment.Line,0,pt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,0,lt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,lt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),vt.spot1=new go.Spot(.2,.3);var Ft=xe(.7,1,1,.5,0,pt/nt,1,pt/nt,kt());return vt.spot2=new go.Spot(Ft.x,Ft.y),ue(Ft),vt}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Ye("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;isNaN(gt)&&(gt=50);var lt=(nt-gt)/2,pt=lt+gt;gt>nt&&(lt=0,pt=nt);var vt=new go.Geometry,Lt=new go.PathFigure(et,.5*nt,!0);vt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,pt)),Lt.add(new go.PathSegment(go.PathSegment.Line,0,pt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,0,lt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,lt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),vt.spot1=new go.Spot(.2,lt/nt);var Ft=xe(.7,1,1,.5,0,pt/nt,1,pt/nt,kt());return vt.spot2=new go.Spot(Ft.x,Ft.y),ue(Ft),vt}),go.Shape.setFigureParameter("SquareArrow",0,new Ye("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;isNaN(gt)&&(gt=.7);var lt=new go.Geometry,pt=new go.PathFigure(et,.5*nt,!0);return lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,gt*et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,0)),pt.add(new go.PathSegment(go.PathSegment.Line,gt*et,0).close()),lt.spot1=go.Spot.TopLeft,lt.spot2=new go.Spot(gt,1),lt}),go.Shape.defineFigureGenerator("Cone1",function(Nt,et,nt){var gt=new go.Geometry,lt=qt*.5,pt=qt*.1,vt=new go.PathFigure(0,.9*nt,!0);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.9+pt)*nt,(.5+lt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,(.5-lt)*et,nt,0,(.9+pt)*nt).close()),gt.spot1=new go.Spot(.25,.5),gt.spot2=new go.Spot(.75,.97),gt}),go.Shape.defineFigureGenerator("Cone2",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,.9*nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,et,.9*nt,(1-.85/.9)*et,nt,.85/.9*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.9*nt).close());var pt=new go.PathFigure(0,.9*nt,!1);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,et,.9*nt,(1-.85/.9)*et,.8*nt,.85/.9*et,.8*nt)),gt.spot1=new go.Spot(.25,.5),gt.spot2=new go.Spot(.75,.82),gt}),go.Shape.defineFigureGenerator("Cube1",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.5*et,nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.15*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.85*nt).close());var pt=new go.PathFigure(.5*et,nt,!1);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.15*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.3*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),gt.spot1=new go.Spot(0,.3),gt.spot2=new go.Spot(.5,.85),gt}),go.Shape.defineFigureGenerator("Cube2",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,.3*nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0).close());var pt=new go.PathFigure(0,.3*nt,!1);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.3*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Move,.7*et,.3*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),gt.spot1=new go.Spot(0,.3),gt.spot2=new go.Spot(.7,1),gt}),go.Shape.defineFigureGenerator("Cylinder1",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;isNaN(gt)&&(gt=5),gt=Math.min(gt,nt/3);var lt=new go.Geometry,pt=qt*.5,vt=new go.PathFigure(0,gt,!0);lt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,qt*gt,(.5-pt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,1*et,gt,(.5+pt)*et,0,1*et,qt*gt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt-gt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,1*nt,1*et,nt-qt*gt,(.5+pt)*et,1*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-gt,(.5-pt)*et,1*nt,0,nt-qt*gt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,gt));var Lt=new go.PathFigure(et,gt,!1);return lt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,2*gt,1*et,2*gt-qt*gt,(.5+pt)*et,2*gt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,0,gt,(.5-pt)*et,2*gt,0,2*gt-qt*gt)),lt.spot1=new go.Spot(0,0,0,2*gt),lt.spot2=new go.Spot(1,1),lt}),go.Shape.defineFigureGenerator("Cylinder2",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;isNaN(gt)&&(gt=5),gt=Math.min(gt,nt/3);var lt=new go.Geometry,pt=qt*.5,vt=new go.PathFigure(0,nt-gt,!0);lt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,0,gt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,qt*gt,(.5-pt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,gt,(.5+pt)*et,0,et,qt*gt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt-gt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,nt-qt*gt,(.5+pt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-gt,(.5-pt)*et,nt,0,nt-qt*gt));var Lt=new go.PathFigure(0,nt-gt,!1);return lt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt-2*gt,0,nt-gt-qt*gt,(.5-pt)*et,nt-2*gt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,et,nt-gt,(.5+pt)*et,nt-2*gt,et,nt-gt-qt*gt)),lt.spot1=new go.Spot(0,0),lt.spot2=new go.Spot(1,1,0,-2*gt),lt}),go.Shape.defineFigureGenerator("Cylinder3",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;isNaN(gt)&&(gt=5),gt=Math.min(gt,et/3);var lt=new go.Geometry,pt=qt*.5,vt=new go.PathFigure(gt,0,!0);lt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et-gt,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,et-qt*gt,0,et,(.5-pt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et-gt,nt,et,(.5+pt)*nt,et-qt*gt,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,gt,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,qt*gt,nt,0,(.5+pt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,gt,0,0,(.5-pt)*nt,qt*gt,0));var Lt=new go.PathFigure(gt,0,!1);return lt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,2*gt,.5*nt,gt+qt*gt,0,2*gt,(.5-pt)*nt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,gt,nt,2*gt,(.5+pt)*nt,gt+qt*gt,nt)),lt.spot1=new go.Spot(0,0,2*gt,0),lt.spot2=new go.Spot(1,1),lt}),go.Shape.defineFigureGenerator("Cylinder4",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;isNaN(gt)&&(gt=5),gt=Math.min(gt,et/3);var lt=new go.Geometry,pt=qt*.5,vt=new go.PathFigure(et-gt,0,!0);lt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,et-qt*gt,0,et,(.5-pt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et-gt,nt,et,(.5+pt)*nt,et-qt*gt,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,gt,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,qt*gt,nt,0,(.5+pt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,gt,0,0,(.5-pt)*nt,qt*gt,0)),vt.add(new go.PathSegment(go.PathSegment.Line,et-gt,0));var Lt=new go.PathFigure(et-gt,0,!1);return lt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,et-2*gt,.5*nt,et-gt-qt*gt,0,et-2*gt,(.5-pt)*nt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,et-gt,nt,et-2*gt,(.5+pt)*nt,et-gt-qt*gt,nt)),lt.spot1=new go.Spot(0,0),lt.spot2=new go.Spot(1,1,-2*gt,0),lt}),go.Shape.defineFigureGenerator("Prism1",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.25*et,.25*nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var pt=new go.PathFigure(.25*et,.25*nt,!1);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),gt.spot1=new go.Spot(.408,.172),gt.spot2=new go.Spot(.833,.662),gt}),go.Shape.defineFigureGenerator("Prism2",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,.25*nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var pt=new go.PathFigure(0,nt,!1);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,0,.25*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*nt)),gt.spot1=new go.Spot(.25,.5),gt.spot2=new go.Spot(.75,.75),gt}),go.Shape.defineFigureGenerator("Pyramid1",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.5*et,0,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.75*nt).close());var pt=new go.PathFigure(.5*et,0,!1);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),gt.spot1=new go.Spot(.25,.367),gt.spot2=new go.Spot(.75,.875),gt}),go.Shape.defineFigureGenerator("Pyramid2",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.5*et,0,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.85*nt).close());var pt=new go.PathFigure(.5*et,0,!1);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.85*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),gt.spot1=new go.Spot(.25,.367),gt.spot2=new go.Spot(.75,.875),gt}),go.Shape.defineFigureGenerator("Actor",function(Nt,et,nt){var gt=new go.Geometry,lt=.2,pt=.1,vt=qt*lt,Lt=qt*pt,Ft=.5,Wt=.1,Kt=new go.PathFigure(Ft*et,(Wt+pt)*nt,!0);gt.add(Kt),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-lt)*et,Wt*nt,(Ft-vt)*et,(Wt+pt)*nt,(Ft-lt)*et,(Wt+Lt)*nt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Wt-pt)*nt,(Ft-lt)*et,(Wt-Lt)*nt,(Ft-vt)*et,(Wt-pt)*nt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+lt)*et,Wt*nt,(Ft+vt)*et,(Wt-pt)*nt,(Ft+lt)*et,(Wt-Lt)*nt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Wt+pt)*nt,(Ft+lt)*et,(Wt+Lt)*nt,(Ft+vt)*et,(Wt+pt)*nt));var _t=.05,ne=qt*_t;Ft=.05,Wt=.25;var $t=new go.PathFigure(.5*et,.2*nt,!0);return gt.add($t),$t.add(new go.PathSegment(go.PathSegment.Line,.95*et,.2*nt)),Ft=.95,Wt=.25,$t.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+_t)*et,Wt*nt,(Ft+ne)*et,(Wt-_t)*nt,(Ft+_t)*et,(Wt-ne)*nt)),$t.add(new go.PathSegment(go.PathSegment.Line,et,.6*nt)),$t.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*nt)),$t.add(new go.PathSegment(go.PathSegment.Line,.85*et,.35*nt)),_t=.025,ne=qt*_t,Ft=.825,Wt=.35,$t.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Wt-_t)*nt,(Ft+_t)*et,(Wt-ne)*nt,(Ft+ne)*et,(Wt-_t)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-_t)*et,Wt*nt,(Ft-ne)*et,(Wt-_t)*nt,(Ft-_t)*et,(Wt-ne)*nt)),$t.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),$t.add(new go.PathSegment(go.PathSegment.Line,.55*et,nt)),$t.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*nt)),_t=.05,ne=qt*_t,Ft=.5,Wt=.7,$t.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Wt-_t)*nt,(Ft+_t)*et,(Wt-ne)*nt,(Ft+ne)*et,(Wt-_t)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-_t)*et,Wt*nt,(Ft-ne)*et,(Wt-_t)*nt,(Ft-_t)*et,(Wt-ne)*nt)),$t.add(new go.PathSegment(go.PathSegment.Line,.45*et,nt)),$t.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),$t.add(new go.PathSegment(go.PathSegment.Line,.2*et,.35*nt)),_t=.025,ne=qt*_t,Ft=.175,Wt=.35,$t.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Wt-_t)*nt,(Ft+_t)*et,(Wt-ne)*nt,(Ft+ne)*et,(Wt-_t)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-_t)*et,Wt*nt,(Ft-ne)*et,(Wt-_t)*nt,(Ft-_t)*et,(Wt-ne)*nt)),$t.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*nt)),$t.add(new go.PathSegment(go.PathSegment.Line,0,.6*nt)),$t.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),_t=.05,ne=qt*_t,Ft=.05,Wt=.25,$t.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Wt-_t)*nt,(Ft-_t)*et,(Wt-ne)*nt,(Ft-ne)*et,(Wt-_t)*nt)),$t.add(new go.PathSegment(go.PathSegment.Line,.5*et,.2*nt)),gt.spot1=new go.Spot(.2,.2),gt.spot2=new go.Spot(.8,.65),gt}),go.Shape.setFigureParameter("Card",0,new Ye("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;isNaN(gt)&&(gt=.2);var lt=new go.Geometry,pt=new go.PathFigure(et,0,!0);return lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,gt*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,gt*et,0).close()),lt.spot1=new go.Spot(0,gt),lt.spot2=go.Spot.BottomRight,lt}),go.Shape.defineFigureGenerator("Collate",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.5*et,.5*nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt));var pt=new go.PathFigure(.5*et,.5*nt,!0);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),gt.spot1=new go.Spot(.25,0),gt.spot2=new go.Spot(.75,.25),gt}),go.Shape.defineFigureGenerator("CreateRequest",function(Nt,et,nt){var gt=new go.Geometry,lt=Nt?Nt.parameter1:NaN;isNaN(lt)&&(lt=.1);var pt=new go.PathFigure(0,0,!0);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var vt=new go.PathFigure(0,lt*nt,!1);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,lt*nt)),vt.add(new go.PathSegment(go.PathSegment.Move,0,(1-lt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,(1-lt)*nt)),gt}),go.Shape.defineFigureGenerator("Database",function(Nt,et,nt){var gt=new go.Geometry,lt=qt*.5,pt=qt*.1,vt=new go.PathFigure(et,.1*nt,!0);gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.9+pt)*nt,(.5+lt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,(.5-lt)*et,nt,0,(.9+pt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-pt)*nt,(.5-lt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*nt,(.5+lt)*et,0,et,(.1-pt)*nt));var Lt=new go.PathFigure(et,.1*nt,!1);return gt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*nt,et,(.1+pt)*nt,(.5+lt)*et,.2*nt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*nt,(.5-lt)*et,.2*nt,0,(.1+pt)*nt)),Lt.add(new go.PathSegment(go.PathSegment.Move,et,.2*nt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*nt,et,(.2+pt)*nt,(.5+lt)*et,.3*nt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*nt,(.5-lt)*et,.3*nt,0,(.2+pt)*nt)),Lt.add(new go.PathSegment(go.PathSegment.Move,et,.3*nt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.4*nt,et,(.3+pt)*nt,(.5+lt)*et,.4*nt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*nt,(.5-lt)*et,.4*nt,0,(.3+pt)*nt)),gt.spot1=new go.Spot(0,.4),gt.spot2=new go.Spot(1,.9),gt}),go.Shape.defineFigureGenerator("DataStorage",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,nt,et,0,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.9*nt,.25*et,.1*nt).close()),gt.spot1=new go.Spot(.226,0),gt.spot2=new go.Spot(.81,1),gt}),go.Shape.defineFigureGenerator("DiskStorage",function(Nt,et,nt){var gt=new go.Geometry,lt=qt*.5,pt=qt*.1,vt=new go.PathFigure(et,.1*nt,!0);gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.9+pt)*nt,(.5+lt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,(.5-lt)*et,nt,0,(.9+pt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-pt)*nt,(.5-lt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*nt,(.5+lt)*et,0,et,(.1-pt)*nt));var Lt=new go.PathFigure(et,.1*nt,!1);return gt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*nt,et,(.1+pt)*nt,(.5+lt)*et,.2*nt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*nt,(.5-lt)*et,.2*nt,0,(.1+pt)*nt)),Lt.add(new go.PathSegment(go.PathSegment.Move,et,.2*nt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*nt,et,(.2+pt)*nt,(.5+lt)*et,.3*nt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*nt,(.5-lt)*et,.3*nt,0,(.2+pt)*nt)),gt.spot1=new go.Spot(0,.3),gt.spot2=new go.Spot(1,.9),gt}),go.Shape.defineFigureGenerator("Display",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.25*et,0,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,nt,et,0,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.25*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt).close()),gt.spot1=new go.Spot(.25,0),gt.spot2=new go.Spot(.75,1),gt}),go.Shape.defineFigureGenerator("DividedEvent",function(Nt,et,nt){var gt=new go.Geometry,lt=Nt?Nt.parameter1:NaN;isNaN(lt)?lt=.2:lt<.15&&(lt=.15);var pt=qt*.2,vt=new go.PathFigure(0,.2*nt,!0);gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,0,(.2-pt)*nt,(.2-pt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.2*nt,(.8+pt)*et,0,et,(.2-pt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,nt,et,(.8+pt)*nt,(.8+pt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*nt,(.2-pt)*et,nt,0,(.8+pt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt));var Lt=new go.PathFigure(0,lt*nt,!1);return gt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,et,lt*nt)),gt}),go.Shape.defineFigureGenerator("DividedProcess",function(Nt,et,nt){var gt=new go.Geometry,lt=Nt?Nt.parameter1:NaN;(isNaN(lt)||lt<.1)&&(lt=.1);var pt=new go.PathFigure(0,0,!0);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var vt=new go.PathFigure(0,lt*nt,!1);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,lt*nt)),gt}),go.Shape.defineFigureGenerator("Document",function(Nt,et,nt){var gt=new go.Geometry;nt=nt/.8;var lt=new go.PathFigure(0,.7*nt,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.5*et,.4*nt,.5*et,nt).close()),gt.spot1=go.Spot.TopLeft,gt.spot2=new go.Spot(1,.6),gt}),go.Shape.defineFigureGenerator("ExternalOrganization",function(Nt,et,nt){var gt=new go.Geometry,lt=Nt?Nt.parameter1:NaN;(isNaN(lt)||lt<.2)&&(lt=.2);var pt=new go.PathFigure(0,0,!0);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var vt=new go.PathFigure(lt*et,0,!1);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,0,lt*nt)),vt.add(new go.PathSegment(go.PathSegment.Move,et,lt*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Move,0,(1-lt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,lt*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Move,(1-lt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,(1-lt)*nt)),gt}),go.Shape.defineFigureGenerator("ExternalProcess",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.5*et,0,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt).close());var pt=new go.PathFigure(.1*et,.4*nt,!1);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.9*et,.6*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.6*et,.1*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.1*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.4*et,.9*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.9*nt)),gt.spot1=new go.Spot(.25,.25),gt.spot2=new go.Spot(.75,.75),gt}),go.Shape.defineFigureGenerator("File",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var pt=new go.PathFigure(.75*et,0,!1);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),gt.spot1=new go.Spot(0,.25),gt.spot2=go.Spot.BottomRight,gt}),go.Shape.defineFigureGenerator("Interrupt",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(et,.5*nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt));var pt=new go.PathFigure(et,.5*nt,!1);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt));var vt=new go.PathFigure(et,.5*nt,!1);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.spot1=new go.Spot(0,.25),gt.spot2=new go.Spot(.5,.75),gt}),go.Shape.defineFigureGenerator("InternalStorage",function(Nt,et,nt){var gt=new go.Geometry,lt=Nt?Nt.parameter1:NaN,pt=Nt?Nt.parameter2:NaN;isNaN(lt)&&(lt=.1),isNaN(pt)&&(pt=.1);var vt=new go.PathFigure(0,0,!0);gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var Lt=new go.PathFigure(lt*et,0,!1);return gt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,lt*et,nt)),Lt.add(new go.PathSegment(go.PathSegment.Move,0,pt*nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,et,pt*nt)),gt}),go.Shape.defineFigureGenerator("Junction",function(Nt,et,nt){var gt=new go.Geometry,lt=1/Math.SQRT2,pt=(1-1/Math.SQRT2)/2,vt=qt*.5,Lt=.5,Ft=new go.PathFigure(et,Lt*nt,!0);gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,Lt*et,nt,et,(Lt+vt)*nt,(Lt+vt)*et,nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,0,Lt*nt,(Lt-vt)*et,nt,0,(Lt+vt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,Lt*et,0,0,(Lt-vt)*nt,(Lt-vt)*et,0)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,et,Lt*nt,(Lt+vt)*et,0,et,(Lt-vt)*nt));var Wt=new go.PathFigure((pt+lt)*et,(pt+lt)*nt,!1);return gt.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Line,pt*et,pt*nt)),Wt.add(new go.PathSegment(go.PathSegment.Move,pt*et,(pt+lt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Line,(pt+lt)*et,pt*nt)),gt}),go.Shape.defineFigureGenerator("LinedDocument",function(Nt,et,nt){var gt=new go.Geometry;nt=nt/.8;var lt=new go.PathFigure(0,.7*nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.5*et,.4*nt,.5*et,nt).close());var pt=new go.PathFigure(.1*et,0,!1);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.75*nt)),gt.spot1=new go.Spot(.1,0),gt.spot2=new go.Spot(1,.6),gt}),go.Shape.defineFigureGenerator("LoopLimit",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,nt,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.25*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt).close()),gt.spot1=new go.Spot(0,.25),gt.spot2=go.Spot.BottomRight,gt}),go.Shape.defineFigureGenerator("MagneticTape",function(Nt,et,nt){var gt=new go.Geometry,lt=qt*.5,pt=.5,vt=new go.PathFigure(.5*et,nt,!0);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,pt*nt,(pt-lt)*et,nt,0,(pt+lt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,0,0,(pt-lt)*nt,(pt-lt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,pt*nt,(pt+lt)*et,0,et,(pt-lt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,(pt+.1)*et,.9*nt,et,(pt+lt)*nt,(pt+lt)*et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),gt.spot1=new go.Spot(.15,.15),gt.spot2=new go.Spot(.85,.8),gt}),go.Shape.defineFigureGenerator("ManualInput",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(et,0,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt).close()),gt.spot1=new go.Spot(0,.25),gt.spot2=go.Spot.BottomRight,gt}),go.Shape.defineFigureGenerator("MessageFromUser",function(Nt,et,nt){var gt=new go.Geometry,lt=Nt?Nt.parameter1:NaN;isNaN(lt)&&(lt=.7);var pt=new go.PathFigure(0,0,!0);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,lt*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),gt.spot1=go.Spot.TopLeft,gt}),go.Shape.defineFigureGenerator("MicroformProcessing",function(Nt,et,nt){var gt=new go.Geometry,lt=Nt?Nt.parameter1:NaN;isNaN(lt)&&(lt=.25);var pt=new go.PathFigure(0,0,!0);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,lt*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,(1-lt)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),gt}),go.Shape.defineFigureGenerator("MicroformRecording",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),gt.spot1=new go.Spot(0,.25),gt.spot2=new go.Spot(1,.75),gt}),go.Shape.defineFigureGenerator("MultiDocument",function(Nt,et,nt){var gt=new go.Geometry;nt=nt/.8;var lt=new go.PathFigure(et,0,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.44*nt,.96*et,.47*nt,.93*et,.45*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.54*nt,.86*et,.57*nt,.83*et,.55*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.4*et,.4*nt,.4*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,0).close());var pt=new go.PathFigure(.1*et,.2*nt,!1);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.54*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.44*nt)),gt.spot1=new go.Spot(0,.25),gt.spot2=new go.Spot(.8,.77),gt}),go.Shape.defineFigureGenerator("MultiProcess",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.1*et,.1*nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.9*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*nt).close());var pt=new go.PathFigure(.2*et,.1*nt,!1);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.1*et,.2*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.9*nt)),gt.spot1=new go.Spot(0,.2),gt.spot2=new go.Spot(.8,1),gt}),go.Shape.defineFigureGenerator("OfflineStorage",function(Nt,et,nt){var gt=new go.Geometry,lt=Nt?Nt.parameter1:NaN;isNaN(lt)&&(lt=.1);var pt=1-lt,vt=new go.PathFigure(0,0,!0);gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt).close());var Lt=new go.PathFigure(.5*lt*et,lt*nt,!1);return gt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,(1-.5*lt)*et,lt*nt)),gt}),go.Shape.defineFigureGenerator("OffPageConnector",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),gt.spot1=go.Spot.TopLeft,gt.spot2=new go.Spot(.75,1),gt}),go.Shape.defineFigureGenerator("Or",function(Nt,et,nt){var gt=new go.Geometry,lt=qt*.5,pt=.5,vt=new go.PathFigure(et,pt*nt,!0);gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,nt,et,(pt+lt)*nt,(pt+lt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,pt*nt,(pt-lt)*et,nt,0,(pt+lt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,0,0,(pt-lt)*nt,(pt-lt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,pt*nt,(pt+lt)*et,0,et,(pt-lt)*nt));var Lt=new go.PathFigure(et,.5*nt,!1);return gt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),Lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),gt}),go.Shape.defineFigureGenerator("PaperTape",function(Nt,et,nt){var gt=new go.Geometry;nt=nt/.8;var lt=new go.PathFigure(0,.7*nt,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.3*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,et,.3*nt,.5*et,.6*nt,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.5*et,.4*nt,.5*et,nt).close()),gt.spot1=new go.Spot(0,.49),gt.spot2=new go.Spot(1,.75),gt}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(Nt,et,nt){var gt=new go.Geometry,lt=Nt?Nt.parameter1:NaN,pt=Nt?Nt.parameter2:NaN;isNaN(lt)&&(lt=.1),isNaN(pt)&&(pt=.3);var vt=new go.PathFigure(0,0,!0);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,(1-pt)*et,.5*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),gt}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(Nt,et,nt){var gt=new go.Geometry,lt=Nt?Nt.parameter1:NaN,pt=Nt?Nt.parameter2:NaN;isNaN(lt)&&(lt=.1),isNaN(pt)&&(pt=.3);var vt=new go.PathFigure(0,0,!0);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,(1-pt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,(1-pt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),gt}),go.Shape.defineFigureGenerator("Procedure",function(Nt,et,nt){var gt=new go.Geometry,lt=Nt?Nt.parameter1:NaN;isNaN(lt)&&(lt=.1);var pt=new go.PathFigure(0,0,!0);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var vt=new go.PathFigure((1-lt)*et,0,!1);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Move,lt*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,lt*et,nt)),gt}),go.Shape.defineFigureGenerator("Process",function(Nt,et,nt){var gt=new go.Geometry,lt=Nt?Nt.parameter1:NaN;isNaN(lt)&&(lt=.1);var pt=new go.PathFigure(0,0,!0);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var vt=new go.PathFigure(lt*et,0,!1);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,lt*et,nt)),gt.spot2=go.Spot.BottomRight,gt}),go.Shape.defineFigureGenerator("Sort",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.5*et,0,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt).close());var pt=new go.PathFigure(0,.5*nt,!1);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),gt.spot1=new go.Spot(.25,.25),gt.spot2=new go.Spot(.75,.5),gt}),go.Shape.defineFigureGenerator("Start",function(Nt,et,nt){var gt=new go.Geometry,lt=Nt?Nt.parameter1:NaN;isNaN(lt)&&(lt=.25);var pt=new go.PathFigure(lt*et,0,!0);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*nt,.25*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*nt,.25*et,.5*nt));var vt=new go.PathFigure(lt*et,0,!1);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,lt*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Move,(1-lt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,nt)),gt.spot1=new go.Spot(lt,0),gt.spot2=new go.Spot(1-lt,1),gt}),go.Shape.defineFigureGenerator("Terminator",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.25*et,0,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*nt,.25*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*nt,.25*et,.5*nt)),gt.spot1=new go.Spot(.23,0),gt.spot2=new go.Spot(.77,1),gt}),go.Shape.defineFigureGenerator("TransmittalTape",function(Nt,et,nt){var gt=new go.Geometry,lt=Nt?Nt.parameter1:NaN;isNaN(lt)&&(lt=.1);var pt=new go.PathFigure(0,0,!0);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.75*et,(1-lt)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,(1-lt)*nt).close()),gt.spot1=go.Spot.TopLeft,gt}),go.Shape.defineFigureGenerator("AndGate",function(Nt,et,nt){var gt=new go.Geometry,lt=qt*.5,pt=new go.PathFigure(0,0,!0);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),pt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,(.5+lt)*et,0,et,(.5-lt)*nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.5+lt)*nt,(.5+lt)*et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),gt.spot1=go.Spot.TopLeft,gt.spot2=new go.Spot(.55,1),gt}),go.Shape.defineFigureGenerator("Buffer",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),gt.spot1=new go.Spot(0,.25),gt.spot2=new go.Spot(.5,.75),gt}),go.Shape.defineFigureGenerator("Clock",function(Nt,et,nt){var gt=new go.Geometry,lt=qt*.5,pt=.5,vt=new go.PathFigure(et,pt*nt,!0);gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,nt,et,(pt+lt)*nt,(pt+lt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,pt*nt,(pt-lt)*et,nt,0,(pt+lt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,0,0,(pt-lt)*nt,(pt-lt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,pt*nt,(pt+lt)*et,0,et,(pt-lt)*nt));var Lt=new go.PathFigure(et,pt*nt,!1);gt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,et,pt*nt));var Ft=new go.PathFigure(.8*et,.75*nt,!1);return gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Line,.8*et,.25*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.6*et,.25*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.6*et,.75*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.4*et,.75*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.4*et,.25*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,.25*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,.75*nt)),gt}),go.Shape.defineFigureGenerator("Ground",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.5*et,0,!1);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.3*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.4*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,nt)),gt}),go.Shape.defineFigureGenerator("Inverter",function(Nt,et,nt){var gt=new go.Geometry,lt=qt*.1,pt=.1,vt=.9,Lt=.5,Ft=new go.PathFigure(.8*et,.5*nt,!0);gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Line,0,nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ft.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*nt));var Wt=new go.PathFigure((vt+pt)*et,Lt*nt,!0);return gt.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt+pt)*nt,(vt+pt)*et,(Lt+lt)*nt,(vt+lt)*et,(Lt+pt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-pt)*et,Lt*nt,(vt-lt)*et,(Lt+pt)*nt,(vt-pt)*et,(Lt+lt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt-pt)*nt,(vt-pt)*et,(Lt-lt)*nt,(vt-lt)*et,(Lt-pt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*et,Lt*nt,(vt+lt)*et,(Lt-pt)*nt,(vt+pt)*et,(Lt-lt)*nt)),gt.spot1=new go.Spot(0,.25),gt.spot2=new go.Spot(.4,.75),gt}),go.Shape.defineFigureGenerator("NandGate",function(Nt,et,nt){var gt=new go.Geometry,lt=qt*.5,pt=qt*.4,vt=qt*.1,Lt=.1,Ft=.9,Wt=.5,Kt=new go.PathFigure(.8*et,.5*nt,!0);gt.add(Kt),Kt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,nt,.8*et,(.5+pt)*nt,(.4+lt)*et,nt)),Kt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),Kt.add(new go.PathSegment(go.PathSegment.Line,0,0)),Kt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*nt,(.4+lt)*et,0,.8*et,(.5-pt)*nt));var _t=new go.PathFigure((Ft+Lt)*et,Wt*nt,!0);return gt.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Wt+Lt)*nt,(Ft+Lt)*et,(Wt+vt)*nt,(Ft+vt)*et,(Wt+Lt)*nt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-Lt)*et,Wt*nt,(Ft-vt)*et,(Wt+Lt)*nt,(Ft-Lt)*et,(Wt+vt)*nt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Wt-Lt)*nt,(Ft-Lt)*et,(Wt-vt)*nt,(Ft-vt)*et,(Wt-Lt)*nt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+Lt)*et,Wt*nt,(Ft+vt)*et,(Wt-Lt)*nt,(Ft+Lt)*et,(Wt-vt)*nt)),gt.spot1=new go.Spot(0,.05),gt.spot2=new go.Spot(.55,.95),gt}),go.Shape.defineFigureGenerator("NorGate",function(Nt,et,nt){var gt=new go.Geometry,lt=.5,pt=qt*lt,vt=0,Lt=.5,Ft=new go.PathFigure(.8*et,.5*nt,!0);gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,0,nt,.7*et,(Lt+pt)*nt,(vt+pt)*et,(Lt+lt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*nt,.25*et,.25*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*nt,(vt+pt)*et,(Lt-lt)*nt,.7*et,(Lt-pt)*nt)),lt=.1,pt=qt*.1,vt=.9,Lt=.5;var Wt=new go.PathFigure((vt-lt)*et,Lt*nt,!0);return gt.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt-lt)*nt,(vt-lt)*et,(Lt-pt)*nt,(vt-pt)*et,(Lt-lt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+lt)*et,Lt*nt,(vt+pt)*et,(Lt-lt)*nt,(vt+lt)*et,(Lt-pt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt+lt)*nt,(vt+lt)*et,(Lt+pt)*nt,(vt+pt)*et,(Lt+lt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-lt)*et,Lt*nt,(vt-pt)*et,(Lt+lt)*nt,(vt-lt)*et,(Lt+pt)*nt)),gt.spot1=new go.Spot(.2,.25),gt.spot2=new go.Spot(.6,.75),gt}),go.Shape.defineFigureGenerator("OrGate",function(Nt,et,nt){var gt=new go.Geometry,lt=.5,pt=qt*lt,vt=0,Lt=.5,Ft=new go.PathFigure(0,0,!0);return gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,(vt+pt+pt)*et,(Lt-lt)*nt,.8*et,(Lt-pt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,0,nt,.8*et,(Lt+pt)*nt,(vt+pt+pt)*et,(Lt+lt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*nt,.25*et,.25*nt).close()),gt.spot1=new go.Spot(.2,.25),gt.spot2=new go.Spot(.75,.75),gt}),go.Shape.defineFigureGenerator("XnorGate",function(Nt,et,nt){var gt=new go.Geometry,lt=.5,pt=qt*lt,vt=.2,Lt=.5,Ft=new go.PathFigure(.1*et,0,!1);gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,nt,.35*et,.25*nt,.35*et,.75*nt));var Wt=new go.PathFigure(.8*et,.5*nt,!0);gt.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,nt,.7*et,(Lt+pt)*nt,(vt+pt)*et,(Lt+lt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*nt,.45*et,.25*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*nt,(vt+pt)*et,(Lt-lt)*nt,.7*et,(Lt-pt)*nt)),lt=.1,pt=qt*.1,vt=.9,Lt=.5;var Kt=new go.PathFigure((vt-lt)*et,Lt*nt,!0);return gt.add(Kt),Kt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt-lt)*nt,(vt-lt)*et,(Lt-pt)*nt,(vt-pt)*et,(Lt-lt)*nt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+lt)*et,Lt*nt,(vt+pt)*et,(Lt-lt)*nt,(vt+lt)*et,(Lt-pt)*nt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt+lt)*nt,(vt+lt)*et,(Lt+pt)*nt,(vt+pt)*et,(Lt+lt)*nt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-lt)*et,Lt*nt,(vt-pt)*et,(Lt+lt)*nt,(vt-lt)*et,(Lt+pt)*nt)),gt.spot1=new go.Spot(.4,.25),gt.spot2=new go.Spot(.65,.75),gt}),go.Shape.defineFigureGenerator("XorGate",function(Nt,et,nt){var gt=new go.Geometry,lt=.5,pt=qt*lt,vt=.2,Lt=.5,Ft=new go.PathFigure(.1*et,0,!1);gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,nt,.35*et,.25*nt,.35*et,.75*nt));var Wt=new go.PathFigure(.2*et,0,!0);return gt.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,(vt+pt)*et,(Lt-lt)*nt,.9*et,(Lt-pt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,nt,.9*et,(Lt+pt)*nt,(vt+pt)*et,(Lt+lt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*nt,.45*et,.25*nt).close()),gt.spot1=new go.Spot(.4,.25),gt.spot2=new go.Spot(.8,.75),gt}),go.Shape.defineFigureGenerator("Capacitor",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!1);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt}),go.Shape.defineFigureGenerator("Resistor",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,.5*nt,!1);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.5*nt)),gt}),go.Shape.defineFigureGenerator("Inductor",function(Nt,et,nt){var gt=new go.Geometry,lt=qt*.1,pt=.1,vt=.1,Lt=.5,Ft=new go.PathFigure((vt-lt*.5)*et,nt,!1);return gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*et,0,(vt-lt)*et,nt,(vt-pt)*et,0)),vt=.3,Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,nt,(vt+pt)*et,0,(vt+lt)*et,nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*et,0,(vt-lt)*et,nt,(vt-pt)*et,0)),vt=.5,Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,nt,(vt+pt)*et,0,(vt+lt)*et,nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*et,0,(vt-lt)*et,nt,(vt-pt)*et,0)),vt=.7,Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,nt,(vt+pt)*et,0,(vt+lt)*et,nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*et,0,(vt-lt)*et,nt,(vt-pt)*et,0)),vt=.9,Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt+lt*.5)*et,nt,(vt+pt)*et,0,(vt+lt)*et,nt)),gt}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Nt,et,nt){var gt=new go.Geometry,lt=qt*.5,pt=.5,vt=.5,Lt=.5,Ft=new go.PathFigure((vt-pt)*et,Lt*nt,!1);return gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt-pt)*nt,(vt-pt)*et,(Lt-lt)*nt,(vt-lt)*et,(Lt-pt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*et,Lt*nt,(vt+lt)*et,(Lt-pt)*nt,(vt+pt)*et,(Lt-lt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt+pt)*nt,(vt+pt)*et,(Lt+lt)*nt,(vt+lt)*et,(Lt+pt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt-pt)*et,Lt*nt,(vt-lt)*et,(Lt+pt)*nt,(vt-pt)*et,(Lt+lt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Move,(vt-pt+.1)*et,Lt*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt-.1)*et,Lt*nt,vt*et,(Lt-pt)*nt,vt*et,(Lt+pt)*nt)),gt}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,.75*nt,!1);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt}),go.Shape.defineFigureGenerator("Diode",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(et,0,!1);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.spot1=new go.Spot(0,.25),gt.spot2=new go.Spot(.5,.75),gt}),go.Shape.defineFigureGenerator("Wifi",function(Nt,et,nt){var gt=new go.Geometry,lt=et,pt=nt;et=et*.38,nt=nt*.6;var vt=qt*.8,Lt=.8,Ft=0,Wt=.5,Kt=(lt-et)/2,_t=(pt-nt)/2,ne=new go.PathFigure(Ft*et+Kt,(Wt+Lt)*nt+_t,!0);gt.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-Lt)*et+Kt,Wt*nt+_t,(Ft-vt)*et+Kt,(Wt+Lt)*nt+_t,(Ft-Lt)*et+Kt,(Wt+vt)*nt+_t)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et+Kt,(Wt-Lt)*nt+_t,(Ft-Lt)*et+Kt,(Wt-vt)*nt+_t,(Ft-vt)*et+Kt,(Wt-Lt)*nt+_t)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-Lt+vt*.5)*et+Kt,Wt*nt+_t,Ft*et+Kt,(Wt-Lt)*nt+_t,(Ft-Lt+vt*.5)*et+Kt,(Wt-vt)*nt+_t)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et+Kt,(Wt+Lt)*nt+_t,(Ft-Lt+vt*.5)*et+Kt,(Wt+vt)*nt+_t,Ft*et+Kt,(Wt+Lt)*nt+_t).close()),vt=qt*.4,Lt=.4,Ft=.2,Wt=.5;var $t=new go.PathFigure(Ft*et+Kt,(Wt+Lt)*nt+_t,!0);gt.add($t),$t.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-Lt)*et+Kt,Wt*nt+_t,(Ft-vt)*et+Kt,(Wt+Lt)*nt+_t,(Ft-Lt)*et+Kt,(Wt+vt)*nt+_t)),$t.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et+Kt,(Wt-Lt)*nt+_t,(Ft-Lt)*et+Kt,(Wt-vt)*nt+_t,(Ft-vt)*et+Kt,(Wt-Lt)*nt+_t)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-Lt+vt*.5)*et+Kt,Wt*nt+_t,Ft*et+Kt,(Wt-Lt)*nt+_t,(Ft-Lt+vt*.5)*et+Kt,(Wt-vt)*nt+_t)),$t.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et+Kt,(Wt+Lt)*nt+_t,(Ft-Lt+vt*.5)*et+Kt,(Wt+vt)*nt+_t,Ft*et+Kt,(Wt+Lt)*nt+_t).close()),vt=qt*.2,Lt=.2,Ft=.5,Wt=.5;var ve=new go.PathFigure((Ft-Lt)*et+Kt,Wt*nt+_t,!0);gt.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et+Kt,(Wt-Lt)*nt+_t,(Ft-Lt)*et+Kt,(Wt-vt)*nt+_t,(Ft-vt)*et+Kt,(Wt-Lt)*nt+_t)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+Lt)*et+Kt,Wt*nt+_t,(Ft+vt)*et+Kt,(Wt-Lt)*nt+_t,(Ft+Lt)*et+Kt,(Wt-vt)*nt+_t)),ve.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et+Kt,(Wt+Lt)*nt+_t,(Ft+Lt)*et+Kt,(Wt+vt)*nt+_t,(Ft+vt)*et+Kt,(Wt+Lt)*nt+_t)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-Lt)*et+Kt,Wt*nt+_t,(Ft-vt)*et+Kt,(Wt+Lt)*nt+_t,(Ft-Lt)*et+Kt,(Wt+vt)*nt+_t)),vt=qt*.4,Lt=.4,Ft=.8,Wt=.5;var re=new go.PathFigure(Ft*et+Kt,(Wt-Lt)*nt+_t,!0);gt.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+Lt)*et+Kt,Wt*nt+_t,(Ft+vt)*et+Kt,(Wt-Lt)*nt+_t,(Ft+Lt)*et+Kt,(Wt-vt)*nt+_t)),re.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et+Kt,(Wt+Lt)*nt+_t,(Ft+Lt)*et+Kt,(Wt+vt)*nt+_t,(Ft+vt)*et+Kt,(Wt+Lt)*nt+_t)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+Lt-vt*.5)*et+Kt,Wt*nt+_t,Ft*et+Kt,(Wt+Lt)*nt+_t,(Ft+Lt-vt*.5)*et+Kt,(Wt+vt)*nt+_t)),re.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et+Kt,(Wt-Lt)*nt+_t,(Ft+Lt-vt*.5)*et+Kt,(Wt-vt)*nt+_t,Ft*et+Kt,(Wt-Lt)*nt+_t).close()),vt=qt*.8,Lt=.8,Ft=1,Wt=.5;var Oe=new go.PathFigure(Ft*et+Kt,(Wt-Lt)*nt+_t,!0);return gt.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+Lt)*et+Kt,Wt*nt+_t,(Ft+vt)*et+Kt,(Wt-Lt)*nt+_t,(Ft+Lt)*et+Kt,(Wt-vt)*nt+_t)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et+Kt,(Wt+Lt)*nt+_t,(Ft+Lt)*et+Kt,(Wt+vt)*nt+_t,(Ft+vt)*et+Kt,(Wt+Lt)*nt+_t)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+Lt-vt*.5)*et+Kt,Wt*nt+_t,Ft*et+Kt,(Wt+Lt)*nt+_t,(Ft+Lt-vt*.5)*et+Kt,(Wt+vt)*nt+_t)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et+Kt,(Wt-Lt)*nt+_t,(Ft+Lt-vt*.5)*et+Kt,(Wt-vt)*nt+_t,Ft*et+Kt,(Wt-Lt)*nt+_t).close()),gt}),go.Shape.defineFigureGenerator("Email",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var pt=new go.PathFigure(0,0,!1);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Move,0,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.54*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.54*nt)),gt}),go.Shape.defineFigureGenerator("Ethernet",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.35*et,0,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.65*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*et,0).close());var pt=new go.PathFigure(.1*et,nt,!0,!0);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.6*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.1*et,nt).close());var vt=new go.PathFigure(.6*et,nt,!0,!0);gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.6*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.6*et,nt).close());var Lt=new go.PathFigure(0,.5*nt,!1);return gt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),Lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*nt)),Lt.add(new go.PathSegment(go.PathSegment.Move,.75*et,.5*nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.6*nt)),Lt.add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.6*nt)),gt}),go.Shape.defineFigureGenerator("Power",function(Nt,et,nt){var gt=new go.Geometry,lt=qt*.4,pt=.4,vt=.5,Lt=.5,Ft=kt(),Wt=kt(),Kt=kt(),_t=kt();Te(vt,Lt-pt,vt+lt,Lt-pt,vt+pt,Lt-lt,vt+pt,Lt,.5,Ft,Ft,Wt,Kt,_t);var ne=Yt(Wt.x,Wt.y),$t=new go.PathFigure(Wt.x*et,Wt.y*nt,!0);gt.add($t),$t.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*et,Lt*nt,Kt.x*et,Kt.y*nt,_t.x*et,_t.y*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt+pt)*nt,(vt+pt)*et,(Lt+lt)*nt,(vt+lt)*et,(Lt+pt)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(vt-pt)*et,Lt*nt,(vt-lt)*et,(Lt+pt)*nt,(vt-pt)*et,(Lt+lt)*nt)),Te(vt-pt,Lt,vt-pt,Lt-lt,vt-lt,Lt-pt,vt,Lt-pt,.5,Kt,_t,Wt,Ft,Ft),$t.add(new go.PathSegment(go.PathSegment.Bezier,Wt.x*et,Wt.y*nt,Kt.x*et,Kt.y*nt,_t.x*et,_t.y*nt)),lt=qt*.3,pt=.3,Te(vt-pt,Lt,vt-pt,Lt-lt,vt-lt,Lt-pt,vt,Lt-pt,.5,Kt,_t,Wt,Ft,Ft),$t.add(new go.PathSegment(go.PathSegment.Line,Wt.x*et,Wt.y*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(vt-pt)*et,Lt*nt,_t.x*et,_t.y*nt,Kt.x*et,Kt.y*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt+pt)*nt,(vt-pt)*et,(Lt+lt)*nt,(vt-lt)*et,(Lt+pt)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*et,Lt*nt,(vt+lt)*et,(Lt+pt)*nt,(vt+pt)*et,(Lt+lt)*nt)),Te(vt,Lt-pt,vt+lt,Lt-pt,vt+pt,Lt-lt,vt+pt,Lt,.5,Ft,Ft,Wt,Kt,_t),$t.add(new go.PathSegment(go.PathSegment.Bezier,Wt.x*et,Wt.y*nt,_t.x*et,_t.y*nt,Kt.x*et,Kt.y*nt).close());var $t=new go.PathFigure(.45*et,0,!0);return gt.add($t),$t.add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*nt)),$t.add(new go.PathSegment(go.PathSegment.Line,.55*et,.5*nt)),$t.add(new go.PathSegment(go.PathSegment.Line,.55*et,0).close()),ue(Ft),ue(Wt),ue(Kt),ue(_t),ue(ne),gt.spot1=new go.Spot(.25,.45),gt.spot2=new go.Spot(.75,.8),gt}),go.Shape.defineFigureGenerator("Fallout",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,nt/2,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,180,360,et/2,nt/2,et/2,nt/2));function pt(vt,Lt,Ft){vt.add(new go.PathSegment(go.PathSegment.Move,(.3+Lt)*et,(.8+Ft)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,(.5+Lt)*et,(.5+Ft)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,(.1+Lt)*et,(.5+Ft)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,(.3+Lt)*et,(.8+Ft)*nt).close())}return pt(lt,0,0),pt(lt,.4,0),pt(lt,.2,-.3),gt}),go.Shape.defineFigureGenerator("IrritationHazard",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.2*et,0,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt).close()),gt.spot1=new go.Spot(.3,.3),gt.spot2=new go.Spot(.7,.7),gt}),go.Shape.defineFigureGenerator("ElectricalHazard",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.37*et,0,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.11*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.77*et,.04*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.33*et,.49*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.37*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.63*et,.86*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.77*et,.91*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.34*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.34*et,.78*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.44*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.56*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.68*nt).close()),gt}),go.Shape.defineFigureGenerator("FireHazard",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.1*et,nt,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.29*et,0,-.25*et,.63*nt,.45*et,.44*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.51*et,.42*nt,.48*et,.17*nt,.54*et,.35*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.59*et,.18*nt,.59*et,.29*nt,.58*et,.28*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,.6*nt,.8*et,.34*nt,.88*et,.43*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.88*et,.31*nt,.87*et,.48*nt,.88*et,.43*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,nt,1.17*et,.76*nt,.82*et,.8*nt).close()),gt.spot1=new go.Spot(.07,.445),gt.spot2=new go.Spot(.884,.958),gt}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(Nt,et,nt){var gt=new go.Geometry,lt=.5,pt=0,vt=0,Lt=lt*qt,Ft=.4*Math.SQRT2/2+.5,Wt=.5-.5*Math.SQRT2/2,Kt=1,_t=.5,ne=.5,$t=0,ve=new go.PathFigure(Ft*et,(1-Wt)*nt,!1);return gt.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,Kt*et,_t*nt,Kt*et,.7*nt,Kt*et,_t*nt)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ne+pt)*et,($t+pt)*nt,(.5+lt+pt)*et,(.5-Lt+pt)*nt,(.5+Lt+pt)*et,(.5-lt+pt)*nt)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(.5-lt+pt)*et,(.5+vt)*nt,(.5-Lt+pt)*et,(.5-lt+vt)*nt,(.5-lt+pt)*et,(.5-Lt+vt)*nt)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(.35+pt)*et,.9*nt,(.5-lt+pt)*et,(.5+Lt+vt)*nt,(.5-Lt+pt)*et,.9*nt)),ve.add(new go.PathSegment(go.PathSegment.Move,(.25+pt)*et,.8*nt)),ve.add(new go.PathSegment(go.PathSegment.Line,(.35+pt)*et,.9*nt)),ve.add(new go.PathSegment(go.PathSegment.Line,(.2+pt)*et,.95*nt)),gt}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!1);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!1);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!1);gt.add(lt);var pt=new go.PathFigure(et,nt,!1);gt.add(pt);var vt=new go.PathFigure(0,.5*nt,!1);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*nt,.2*et,.35*nt,.3*et,.35*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,.7*et,.65*nt,.8*et,.65*nt)),gt}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,.5*nt,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt).close()),gt}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,.2*nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt).close());var lt=new go.PathFigure(0,.2*nt,!1);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),gt}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.7*et,nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,0,.6*et,.5*nt,0,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,nt,.4*et,.5*nt,et,.5*nt).close());var pt=new go.PathFigure(.45*et,.73*nt,!1);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.73*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.38*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.63*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.31*et,.27*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.56*et,.27*nt)),gt}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!1);gt.add(lt);var pt=new go.PathFigure(.335*et,(1-.555)*nt,!0);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,et,.68*nt,(1-.12)*et,.46*nt,(1-.02)*et,.54*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.68*nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.335*et,(1-.555)*nt,.02*et,.54*nt,.12*et,.46*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.365*et,(1-.595)*nt));var vt=.5-.285,Lt=.5,Ft=vt,Wt=Math.PI/4,Kt=4*(1-Math.cos(Wt))/(3*Math.sin(Wt)),_t=Kt*.5,ne=vt,$t=vt,ve=Kt*ne,re=Kt*$t;pt.add(new go.PathSegment(go.PathSegment.Bezier,(Lt-ne)*et,Ft*nt,(Lt-(ve+ne)/2)*et,(Ft+($t+re)/2)*nt,(Lt-ne)*et,(Ft+re)*nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,Lt*et,(Ft-$t)*nt,(Lt-ne)*et,(Ft-re)*nt,(Lt-ve)*et,(Ft-$t)*nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(Lt+ne)*et,Ft*nt,(Lt+ve)*et,(Ft-$t)*nt,(Lt+ne)*et,(Ft-re)*nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*et,(1-.595)*nt,(Lt+ne)*et,(Ft+re)*nt,(Lt+(ve+ne)/2)*et,(Ft+($t+re)/2)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*et,(1-.595)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*nt));var Oe=new go.PathFigure(.2*et,nt,!1);gt.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Line,.2*et,.8*nt));var me=new go.PathFigure(.8*et,nt,!1);return gt.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*nt)),gt}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.1*et,0,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,nt).close());var pt=new go.PathFigure(.2*et,.2*nt,!1);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.8*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*nt)),gt}),go.Shape.defineFigureGenerator("BpmnEventError",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,nt,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.33*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.66*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.66*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.33*et,.5*nt).close()),gt}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!1);gt.add(lt);var pt=new go.PathFigure(et,nt,!1);gt.add(pt);var vt=new go.PathFigure(.1*et,nt,!0);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt).close()),gt}),go.Shape.defineFigureGenerator("Caution",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.05*et,nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,.8*nt,0,nt,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.1*nt,.5*et,0,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.95*et,.9*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,nt,et,nt,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.05*et,nt));var pt=.05;return lt.add(new go.PathSegment(go.PathSegment.Move,(.5-pt)*et,.875*nt)),lt.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*et,.875*nt,pt*et,pt*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.325*nt,.575*et,.725*nt,.625*et,.375*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.75*nt,.375*et,.375*nt,.425*et,.725*nt)),gt}),go.Shape.defineFigureGenerator("Recycle",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.45*et,.95*nt,!1);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.95*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.185*et,.85*nt,.17*et,.95*nt,.15*et,.9*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.235*et,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.625*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*et,.65*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.275*et,.45*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.05*et,.45*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.05*et,.575*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.1875*et,.95*nt,0,.675*nt,0,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.45*et,.95*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.775*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.22*et,.775*nt));var pt=new go.PathFigure(.475*et,.2*nt,!1);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.225*et,.3*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.275*et,.175*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.325*et,.05*nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.05*nt,.35*et,0,.375*et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.375*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.475*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.315*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.32*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.05*nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,0,.65*et,.05*nt,.625*et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.38*et,.0105*nt));var vt=new go.PathFigure(.675*et,.575*nt,!1);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.875*et,.525*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.775*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.85*et,.95*nt,et,.8*nt,et,.85*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.95*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.65*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.85*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.725*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.775*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.775*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.775*nt)),vt.add(new go.PathSegment(go.PathSegment.Move,.675*et,.575*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.775*et,.775*nt)),gt}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(Nt,et,nt){var gt=new go.Geometry,lt=.5,pt=qt*.5,vt=new go.PathFigure(et,lt*nt,!0);gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,lt*et,nt,et,(lt+pt)*nt,(lt+pt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,lt*nt,(lt-pt)*et,nt,0,(lt+pt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,lt*et,0,0,(lt-pt)*nt,(lt-pt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,lt*nt,(lt+pt)*et,0,et,(lt-pt)*nt));var Lt=new go.PathFigure(lt*et,0,!1);return gt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,lt*et,.15*nt)),Lt.add(new go.PathSegment(go.PathSegment.Move,lt*et,nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,lt*et,.85*nt)),Lt.add(new go.PathSegment(go.PathSegment.Move,0,lt*nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.15*et,lt*nt)),Lt.add(new go.PathSegment(go.PathSegment.Move,et,lt*nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.85*et,lt*nt)),Lt.add(new go.PathSegment(go.PathSegment.Move,lt*et,lt*nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.58*et,.1*nt)),Lt.add(new go.PathSegment(go.PathSegment.Move,lt*et,lt*nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.78*et,.54*nt)),gt}),go.Shape.defineFigureGenerator("Package",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,.15*nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var pt=new go.PathFigure(0,.15*nt,!0);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,0,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.15*nt).close()),gt.spot1=new go.Spot(0,.1),gt.spot2=new go.Spot(1,1),gt}),go.Shape.defineFigureGenerator("Class",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var pt=new go.PathFigure(0,.2*nt,!1);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt).close());var vt=new go.PathFigure(0,.5*nt,!1);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt).close()),gt}),go.Shape.defineFigureGenerator("Component",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(et,nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt).close());var pt=new go.PathFigure(0,.2*nt,!0);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.2*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt).close());var vt=new go.PathFigure(0,.6*nt,!0);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.6*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.8*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.6*nt).close()),gt}),go.Shape.defineFigureGenerator("Boat Shipment",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.15*et,.6*nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.85*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*nt));var pt=new go.PathFigure(.15*et,.6*nt,!1);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*nt)),gt}),go.Shape.defineFigureGenerator("Customer/Supplier",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(et,nt,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.66*et,.33*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.66*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.33*et,.33*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.33*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.33*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt).close()),gt}),go.Shape.defineFigureGenerator("Workcell",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,nt,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.65*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),gt}),go.Shape.defineFigureGenerator("Supermarket",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!1);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.33*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.33*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,et,.33*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.66*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.66*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,et,.66*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt}),go.Shape.defineFigureGenerator("TruckShipment",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var pt=new go.PathFigure(et,.8*nt,!0);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt).close());var vt=.1,Lt=qt*.1,Ft=.2,Wt=.9,Kt=new go.PathFigure((Ft-vt)*et,Wt*nt,!0);gt.add(Kt),Kt.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Wt-vt)*nt,(Ft-vt)*et,(Wt-Lt)*nt,(Ft-Lt)*et,(Wt-vt)*nt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+vt)*et,Wt*nt,(Ft+Lt)*et,(Wt-vt)*nt,(Ft+vt)*et,(Wt-Lt)*nt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Wt+vt)*nt,(Ft+vt)*et,(Wt+Lt)*nt,(Ft+Lt)*et,(Wt+vt)*nt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-vt)*et,Wt*nt,(Ft-Lt)*et,(Wt+vt)*nt,(Ft-vt)*et,(Wt+Lt)*nt).close()),vt=.1,Lt=qt*.1,Ft=.8,Wt=.9;var _t=new go.PathFigure((Ft-vt)*et,Wt*nt,!0);return gt.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Wt-vt)*nt,(Ft-vt)*et,(Wt-Lt)*nt,(Ft-Lt)*et,(Wt-vt)*nt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+vt)*et,Wt*nt,(Ft+Lt)*et,(Wt-vt)*nt,(Ft+vt)*et,(Wt-Lt)*nt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Wt+vt)*nt,(Ft+vt)*et,(Wt+Lt)*nt,(Ft+Lt)*et,(Wt+vt)*nt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-vt)*et,Wt*nt,(Ft-Lt)*et,(Wt+vt)*nt,(Ft-vt)*et,(Wt+Lt)*nt).close()),gt}),go.Shape.defineFigureGenerator("KanbanPost",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.2*et,0,!1);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),gt}),go.Shape.defineFigureGenerator("Forklift",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0));var pt=new go.PathFigure(0,.5*nt,!0);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt));var vt=new go.PathFigure(.5*et,.8*nt,!0);gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.1*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.1*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.8*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*nt));var Lt=new go.PathFigure(.5*et,.7*nt,!1);gt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt));var Ft=.1,Wt=qt*.1,Kt=.1,_t=.9,ne=new go.PathFigure((Kt-Ft)*et,_t*nt,!0);gt.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,Kt*et,(_t-Ft)*nt,(Kt-Ft)*et,(_t-Wt)*nt,(Kt-Wt)*et,(_t-Ft)*nt)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Kt+Ft)*et,_t*nt,(Kt+Wt)*et,(_t-Ft)*nt,(Kt+Ft)*et,(_t-Wt)*nt)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Kt*et,(_t+Ft)*nt,(Kt+Ft)*et,(_t+Wt)*nt,(Kt+Wt)*et,(_t+Ft)*nt)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Kt-Ft)*et,_t*nt,(Kt-Wt)*et,(_t+Ft)*nt,(Kt-Ft)*et,(_t+Wt)*nt)),Ft=.1,Wt=qt*.1,Kt=.4,_t=.9;var $t=new go.PathFigure((Kt-Ft)*et,_t*nt,!0);return gt.add($t),$t.add(new go.PathSegment(go.PathSegment.Bezier,Kt*et,(_t-Ft)*nt,(Kt-Ft)*et,(_t-Wt)*nt,(Kt-Wt)*et,(_t-Ft)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(Kt+Ft)*et,_t*nt,(Kt+Wt)*et,(_t-Ft)*nt,(Kt+Ft)*et,(_t-Wt)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,Kt*et,(_t+Ft)*nt,(Kt+Ft)*et,(_t+Wt)*nt,(Kt+Wt)*et,(_t+Ft)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(Kt-Ft)*et,_t*nt,(Kt-Wt)*et,(_t+Ft)*nt,(Kt-Ft)*et,(_t+Wt)*nt)),gt}),go.Shape.defineFigureGenerator("RailShipment",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.1*et,.4*nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.9*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.9*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.4*nt).close());var pt=new go.PathFigure(.45*et,.7*nt,!1);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*nt));var vt=new go.PathFigure(.55*et,.4*nt,!0);gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.4*nt).close());var Kt=.05,_t=qt*.05,ne=.175,$t=.95,Lt=new go.PathFigure((ne-Kt)*et,$t*nt,!0);gt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,ne*et,($t-Kt)*nt,(ne-Kt)*et,($t-_t)*nt,(ne-_t)*et,($t-Kt)*nt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(ne+Kt)*et,$t*nt,(ne+_t)*et,($t-Kt)*nt,(ne+Kt)*et,($t-_t)*nt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,ne*et,($t+Kt)*nt,(ne+Kt)*et,($t+_t)*nt,(ne+_t)*et,($t+Kt)*nt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(ne-Kt)*et,$t*nt,(ne-_t)*et,($t+Kt)*nt,(ne-Kt)*et,($t+_t)*nt));var Kt=.05,_t=qt*.05,ne=.375,$t=.95,Ft=new go.PathFigure((ne-Kt)*et,$t*nt,!0);gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,ne*et,($t-Kt)*nt,(ne-Kt)*et,($t-_t)*nt,(ne-_t)*et,($t-Kt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(ne+Kt)*et,$t*nt,(ne+_t)*et,($t-Kt)*nt,(ne+Kt)*et,($t-_t)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,ne*et,($t+Kt)*nt,(ne+Kt)*et,($t+_t)*nt,(ne+_t)*et,($t+Kt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(ne-Kt)*et,$t*nt,(ne-_t)*et,($t+Kt)*nt,(ne-Kt)*et,($t+_t)*nt));var Kt=.05,_t=qt*.05,ne=.625,$t=.95,Wt=new go.PathFigure((ne-Kt)*et,$t*nt,!0);gt.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Bezier,ne*et,($t-Kt)*nt,(ne-Kt)*et,($t-_t)*nt,(ne-_t)*et,($t-Kt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(ne+Kt)*et,$t*nt,(ne+_t)*et,($t-Kt)*nt,(ne+Kt)*et,($t-_t)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,ne*et,($t+Kt)*nt,(ne+Kt)*et,($t+_t)*nt,(ne+_t)*et,($t+Kt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(ne-Kt)*et,$t*nt,(ne-_t)*et,($t+Kt)*nt,(ne-Kt)*et,($t+_t)*nt));var Kt=.05,_t=qt*.05,ne=.825,$t=.95,ve=new go.PathFigure((ne-Kt)*et,$t*nt,!0);gt.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,ne*et,($t-Kt)*nt,(ne-Kt)*et,($t-_t)*nt,(ne-_t)*et,($t-Kt)*nt)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ne+Kt)*et,$t*nt,(ne+_t)*et,($t-Kt)*nt,(ne+Kt)*et,($t-_t)*nt)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ne*et,($t+Kt)*nt,(ne+Kt)*et,($t+_t)*nt,(ne+_t)*et,($t+Kt)*nt)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ne-Kt)*et,$t*nt,(ne-_t)*et,($t+Kt)*nt,(ne-Kt)*et,($t+_t)*nt).close());var re=new go.PathFigure(0,nt,!1);return gt.add(re),re.add(new go.PathSegment(go.PathSegment.Line,et,nt).close()),gt}),go.Shape.defineFigureGenerator("Warehouse",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var pt=new go.PathFigure(0,.2*nt,!1);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt).close());var vt=new go.PathFigure(.15*et,nt,!0);gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.5*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.15*et,nt).close());var Lt=.05,Ft=qt*.05,Wt=.35,Kt=.775,_t=new go.PathFigure((Wt-Lt)*et,Kt*nt,!0);return gt.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,Wt*et,(Kt-Lt)*nt,(Wt-Lt)*et,(Kt-Ft)*nt,(Wt-Ft)*et,(Kt-Lt)*nt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Wt+Lt)*et,Kt*nt,(Wt+Ft)*et,(Kt-Lt)*nt,(Wt+Lt)*et,(Kt-Ft)*nt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,Wt*et,(Kt+Lt)*nt,(Wt+Lt)*et,(Kt+Ft)*nt,(Wt+Ft)*et,(Kt+Lt)*nt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Wt-Lt)*et,Kt*nt,(Wt-Ft)*et,(Kt+Lt)*nt,(Wt-Lt)*et,(Kt+Ft)*nt).close()),gt}),go.Shape.defineFigureGenerator("ControlCenter",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,nt,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.1*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt).close()),gt}),go.Shape.defineFigureGenerator("Bluetooth",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,.75*nt,!1);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),gt}),go.Shape.defineFigureGenerator("Bookmark",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*nt)),gt}),go.Shape.defineFigureGenerator("Bookmark",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*nt)),gt}),go.Shape.defineFigureGenerator("Globe",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.5*et,0,!1);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,.75*et,0,et,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,.75*nt,.75*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,.25*et,nt,0,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,.25*nt,.25*et,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,.15*et,.25*nt,.15*et,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.85*et,.75*nt,.85*et,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.1675*et,.15*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.8325*et,.15*nt,.35*et,.3*nt,.65*et,.3*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.1675*et,.85*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.8325*et,.85*nt,.35*et,.7*nt,.65*et,.7*nt)),gt}),go.Shape.defineFigureGenerator("Wave",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,.25*nt,!1);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.25*nt,.1*et,0,.2*et,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,.25*nt,.425*et,.5*nt,.575*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,et,.25*nt,.8*et,0,.9*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,0,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.75*nt,.1*et,.5*nt,.2*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,.75*nt,.425*et,nt,.575*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,et,.75*nt,.8*et,.5*nt,.9*et,.5*nt)),gt}),go.Shape.defineFigureGenerator("Operator",function(Nt,et,nt){var gt=new go.Geometry,lt=.3,pt=qt*.3,vt=.5,Lt=.7,Ft=new go.PathFigure((vt-lt)*et,Lt*nt,!0);gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt-lt)*nt,(vt-lt)*et,(Lt-pt)*nt,(vt-pt)*et,(Lt-lt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt+lt)*et,Lt*nt,(vt+pt)*et,(Lt-lt)*nt,(vt+lt)*et,(Lt-pt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt+lt)*nt,(vt+lt)*et,(Lt+pt)*nt,(vt+pt)*et,(Lt+lt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt-lt)*et,Lt*nt,(vt-pt)*et,(Lt+lt)*nt,(vt-lt)*et,(Lt+pt)*nt));var Wt=new go.PathFigure(0,.7*nt,!1);return gt.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Bezier,et,.7*nt,0,0,et,0)),gt}),go.Shape.defineFigureGenerator("TripleFanBlades",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.5*et,0,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*nt,.65*et,.3*nt,.65*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.35*et,.5*nt,.35*et,.3*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.65*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt,.3*et,.6*nt,.1*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*nt,.2*et,nt,.35*et,.95*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.65*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,et,nt,.7*et,.6*nt,.9*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*nt,.8*et,nt,.65*et,.95*nt)),gt}),go.Shape.defineFigureGenerator("CentrifugalPump",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(et,0,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,0,.075*nt,0,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,nt,0,nt,.4*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.4*nt,.8*et,nt,.85*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt}),go.Shape.defineFigureGenerator("Battery",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.4*et,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.1*nt));var pt=new go.PathFigure(0,.6*nt,!1);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Move,0,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,.4*nt)),gt}),go.Shape.defineFigureGenerator("Delete",function(Nt,et,nt){var gt=new go.Geometry,lt=.5,pt=qt*.5,vt=.5,Lt=.5,Ft=new go.PathFigure((vt-lt)*et,Lt*nt,!0);gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt-lt)*nt,(vt-lt)*et,(Lt-pt)*nt,(vt-pt)*et,(Lt-lt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt+lt)*et,Lt*nt,(vt+pt)*et,(Lt-lt)*nt,(vt+lt)*et,(Lt-pt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt+lt)*nt,(vt+lt)*et,(Lt+pt)*nt,(vt+pt)*et,(Lt+lt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt-lt)*et,Lt*nt,(vt-pt)*et,(Lt+lt)*nt,(vt-lt)*et,(Lt+pt)*nt));var Wt=new go.PathFigure(.15*et,.5*nt,!1);return gt.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.5*nt)),gt}),go.Shape.defineFigureGenerator("Flag",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,.1*nt,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,0,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.1*nt,.15*et,0,.35*et,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*nt,.65*et,.2*nt,.85*et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*nt,.85*et,.6*nt,.65*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,.35*et,.4*nt,.15*et,.4*nt).close()),gt}),go.Shape.defineFigureGenerator("Help",function(Nt,et,nt){var gt=new go.Geometry,lt=.5,pt=qt*.5,vt=.5,Lt=.5,Ft=new go.PathFigure((vt-lt)*et,Lt*nt,!1);gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt-lt)*nt,(vt-lt)*et,(Lt-pt)*nt,(vt-pt)*et,(Lt-lt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt+lt)*et,Lt*nt,(vt+pt)*et,(Lt-lt)*nt,(vt+lt)*et,(Lt-pt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt+lt)*nt,(vt+lt)*et,(Lt+pt)*nt,(vt+pt)*et,(Lt+lt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt-lt)*et,Lt*nt,(vt-pt)*et,(Lt+lt)*nt,(vt-lt)*et,(Lt+pt)*nt).close()),lt=.05,pt=qt*.05,vt=.5,Lt=.8;var Wt=new go.PathFigure((vt-lt)*et,Lt*nt,!1);return gt.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt-lt)*nt,(vt-lt)*et,(Lt-pt)*nt,(vt-pt)*et,(Lt-lt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+lt)*et,Lt*nt,(vt+pt)*et,(Lt-lt)*nt,(vt+lt)*et,(Lt-pt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Lt+lt)*nt,(vt+lt)*et,(Lt+pt)*nt,(vt+pt)*et,(Lt+lt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-lt)*et,Lt*nt,(vt-pt)*et,(Lt+lt)*nt,(vt-lt)*et,(Lt+pt)*nt).close()),Wt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*nt)),Wt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*nt,.75*et,.475*nt,.75*et,.225*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.35*nt,.4*et,.2*nt,.3*et,.25*nt)),gt}),go.Shape.defineFigureGenerator("Location",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,nt,!0).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.975*et,.025*nt,.5*et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*et,.5*nt,.5*et,0,.025*et,.025*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*et,.2*nt)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*et,.3*nt,.1*et,.1*nt).close()))}),go.Shape.defineFigureGenerator("Lock",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,.5*nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt));var pt=new go.PathFigure(.2*et,.5*nt,!1);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*nt,.25*et,0,.75*et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.3*nt)),gt}),go.Shape.defineFigureGenerator("Unlocked",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,.5*nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt));var pt=new go.PathFigure(.2*et,.5*nt,!1);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*nt,.25*et,0,.75*et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.35*nt)),gt}),go.Shape.defineFigureGenerator("Gear",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(.9375*et,.56246875*nt,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*et,.4375*nt)).add(new go.PathSegment(go.PathSegment.Line,.80621875*et,.4375*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.763*et,.3316875*nt,.79840625*et,.39915625*nt,.7834375*et,.3635*nt)).add(new go.PathSegment(go.PathSegment.Line,.8566875*et,.23796875*nt)).add(new go.PathSegment(go.PathSegment.Line,.76825*et,.14959375*nt)).add(new go.PathSegment(go.PathSegment.Line,.67596875*et,.24184375*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*et,.19378125*nt,.64228125*et,.2188125*nt,.603875*et,.2021875*nt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.0625*nt)).add(new go.PathSegment(go.PathSegment.Line,.4375*et,.0625*nt)).add(new go.PathSegment(go.PathSegment.Line,.4375*et,.19378125*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*et,.239375*nt,.39759375*et,.20190625*nt,.36053125*et,.2176875*nt)).add(new go.PathSegment(go.PathSegment.Line,.2379375*et,.14959375*nt)).add(new go.PathSegment(go.PathSegment.Line,.14953125*et,.2379375*nt)).add(new go.PathSegment(go.PathSegment.Line,.23934375*et,.3278125*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*et,.4375*nt,.21765625*et,.36059375*nt,.201875*et,.397625*nt)).add(new go.PathSegment(go.PathSegment.Line,.0625*et,.4375*nt)).add(new go.PathSegment(go.PathSegment.Line,.0625*et,.5625*nt)).add(new go.PathSegment(go.PathSegment.Line,.1938125*et,.5625*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*et,.67596875*nt,.20221875*et,.603875*nt,.21884375*et,.64228125*nt)).add(new go.PathSegment(go.PathSegment.Line,.1495625*et,.76825*nt)).add(new go.PathSegment(go.PathSegment.Line,.238*et,.8566875*nt)).add(new go.PathSegment(go.PathSegment.Line,.3316875*et,.76296875*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*et,.80621875*nt,.36353125*et,.78340625*nt,.3991875*et,.79840625*nt)).add(new go.PathSegment(go.PathSegment.Line,.43753125*et,.9375*nt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.9375*nt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.80621875*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*et,.760625*nt,.602375*et,.79809375*nt,.63946875*et,.78234375*nt)).add(new go.PathSegment(go.PathSegment.Line,.76828125*et,.8566875*nt)).add(new go.PathSegment(go.PathSegment.Line,.85671875*et,.76825*nt)).add(new go.PathSegment(go.PathSegment.Line,.76065625*et,.67221875*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*et,.56246875*nt,.78234375*et,.63940625*nt,.798125*et,.602375*nt)).add(new go.PathSegment(go.PathSegment.Line,.9375*et,.56246875*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*et,.5*nt,.1*et,.1*nt).close()))}),go.Shape.defineFigureGenerator("Hand",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,.5*nt,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,.3*nt,0,.375*nt,.05*et,.325*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.45*et,.075*nt,.3*et,.225*nt,.4*et,.175*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.525*et,.075*nt,.46*et,.05*nt,.525*et,.05*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.4*nt,.525*et,.275*nt,.475*et,.325*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.55*nt,et,.4*nt,et,.55*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.425*et,.55*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.55*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.6*et,.7*nt,.675*et,.55*nt,.675*et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,.85*nt,.65*et,.7*nt,.65*et,.85*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.85*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.535*et,nt,.61*et,.85*nt,.61*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,.435*et,nt,0,nt).close()),gt}),go.Shape.defineFigureGenerator("Map",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,.2*nt,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.25*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),lt.add(new go.PathSegment(go.PathSegment.Move,.25*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.8*nt)),gt}),go.Shape.defineFigureGenerator("Eject",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,nt,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt*.7)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt*.7).close());var pt=new go.PathFigure(0,nt*.6,!0);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,.6*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0).close()),gt}),go.Shape.defineFigureGenerator("Pencil",function(Nt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*nt).close()))}),go.Shape.defineFigureGenerator("Building",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(et*1,nt*1,!1);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt*.85)),lt.add(new go.PathSegment(go.PathSegment.Line,.046*et,nt*.85)),lt.add(new go.PathSegment(go.PathSegment.Line,.046*et,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt*.3)),lt.add(new go.PathSegment(go.PathSegment.Line,.046*et,nt*.3)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,nt*.3)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt*.3)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,nt*.85)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt*.85).close());var pt=new go.PathFigure(.126*et,.85*nt,!1);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.126*et,.45*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.322*et,.45*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.322*et,.85*nt).close());var vt=new go.PathFigure(.402*et,.85*nt,!1);gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.402*et,.45*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.598*et,.45*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.598*et,.85*nt).close());var Lt=new go.PathFigure(.678*et,.85*nt,!1);gt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,.678*et,.45*nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.874*et,.45*nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.874*et,.85*nt).close());var Ft=new go.PathFigure(.5*et,.1*nt,!1);return gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*et,.3*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*et,.3*nt).close()),gt}),go.Shape.defineFigureGenerator("Staircase",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,nt*1,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*.8)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.8)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.6)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.6)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.4)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*.4)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*.2)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.2)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.15)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.15)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.35)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.35)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.15,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.15,nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt*.95).close()),gt}),go.Shape.defineFigureGenerator("5Bars",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,nt*1,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et*.184,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.184,nt*(1-.184)).close());var pt=new go.PathFigure(et*.204,nt,!0);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*.204,nt*(1-.184))),pt.add(new go.PathSegment(go.PathSegment.Line,et*.388,nt*(1-.184*2))),pt.add(new go.PathSegment(go.PathSegment.Line,et*.388,nt*1).close());var vt=new go.PathFigure(et*.408,nt,!0);gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.408,nt*(1-.184*2))),vt.add(new go.PathSegment(go.PathSegment.Line,et*.592,nt*(1-.184*3))),vt.add(new go.PathSegment(go.PathSegment.Line,et*.592,nt*1).close());var Lt=new go.PathFigure(et*.612,nt,!0);gt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,et*.612,nt*(1-.184*3))),Lt.add(new go.PathSegment(go.PathSegment.Line,et*.796,nt*(1-.184*4))),Lt.add(new go.PathSegment(go.PathSegment.Line,et*.796,nt*1).close());var Ft=new go.PathFigure(et*.816,nt,!0);return gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Line,et*.816,nt*(1-.184*4))),Ft.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-.184*5))),Ft.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1).close()),gt}),go.Shape.defineFigureGenerator("PC",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.3,0).close());var pt=new go.PathFigure(et*.055,.07*nt,!0);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.07)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.1)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.055,nt*.1).close());var vt=new go.PathFigure(et*.055,.13*nt,!0);gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.13)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.16)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.055,nt*.16).close());var Lt=new go.PathFigure(et*.055,.18*nt,!0);gt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.18)),Lt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.21)),Lt.add(new go.PathSegment(go.PathSegment.Line,et*.055,nt*.21).close());var Ft=new go.PathFigure(et*1,0,!0);return gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Line,et*.4,0)),Ft.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.65)),Ft.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.65).close()),gt}),go.Shape.defineFigureGenerator("Plane",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(.55*et,nt,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.475*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.35*et,.525*nt,0,.4*nt,.225*et,.45*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.475*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.35*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.325*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.325*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.2*nt,.975*et,0,et,.08*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.45*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.95*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.55*et,nt).close()),gt}),go.Shape.defineFigureGenerator("Key",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(et*1,nt*.5,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et*.9,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.35*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.45,.35*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.3,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.15,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.35*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.65*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.15,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.3,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.45,.65*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.65*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.6,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.65,.55*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.7,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.75,.55*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.8,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.85,.575*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.9,.6*nt).close()),lt.add(new go.PathSegment(go.PathSegment.Move,.17*et,.425*nt)),lt.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*et,.5*nt,.075*et,.075*nt).close()),gt}),go.Shape.defineFigureGenerator("FilmTape",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(0,0,!1);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,270,180,et*0,et*.3,et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.08,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.08,nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*1),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*1),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*2),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*2),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*3),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*3),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*4),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*4),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*5),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*5),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*6),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*6),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*7),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*7),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*8),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*8),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*9),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*9),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*10),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*10),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*11),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*11),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*12),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*12),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*13),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*13),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*14),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*14),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*15),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*15),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1));var pt=new go.PathFigure(0,0,!1);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*0)),pt.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*1,et*.3,et*.055)),pt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1));var vt=new go.PathFigure(et*.11,nt*.1,!1);gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),nt*.1)),vt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),nt*.8)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.11,nt*.8).close());var Lt=new go.PathFigure(et*(.11+.24133333*1+.028*1),nt*.1,!1);gt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),nt*.1)),Lt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),nt*.8)),Lt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*1),nt*.8).close());var Ft=new go.PathFigure(et*(.11+.24133333*2+.028*2),nt*.1,!1);return gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),nt*.1)),Ft.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),nt*.8)),Ft.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*2),nt*.8).close()),gt}),go.Shape.defineFigureGenerator("FloppyDisk",function(Nt,et,nt){var gt=new go.Geometry,lt=8,pt=lt*qt,vt=new go.PathFigure(lt,0,!1);gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.86,0)),vt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.14)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt-lt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,nt,et,nt-pt,et-pt,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,lt,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-lt,pt,nt,0,nt-pt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,lt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,lt,0,0,pt,pt,0).close());var Lt=new go.PathFigure(et*.83,0,!1);gt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,et*.83,nt*.3)),Lt.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*.3)),Lt.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*0).close());var Ft=new go.PathFigure(et*.83,nt*1,!1);gt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Line,et*.83,nt*.5)),Ft.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*.5)),Ft.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*1).close());var Wt=new go.PathFigure(et*.78,nt*.05,!1);return gt.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.05)),Wt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.25)),Wt.add(new go.PathSegment(go.PathSegment.Line,et*.78,nt*.25).close()),gt}),go.Shape.defineFigureGenerator("SpeechBubble",function(Nt,et,nt){var gt=Nt?Nt.parameter1:NaN;(isNaN(gt)||gt<0)&&(gt=15),gt=Math.min(gt,et/3),gt=Math.min(gt,nt/3);var lt=gt*qt,pt=nt*.8,vt=new go.Geometry,Lt=new go.PathFigure(gt,0,!0);return vt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,et-gt,0)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,et,gt,et-lt,0,et,lt)),Lt.add(new go.PathSegment(go.PathSegment.Line,et,pt-gt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,et-gt,pt,et,pt-lt,et-lt,pt)),Lt.add(new go.PathSegment(go.PathSegment.Line,et*.7,pt)),Lt.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt)),Lt.add(new go.PathSegment(go.PathSegment.Line,et*.55,pt)),Lt.add(new go.PathSegment(go.PathSegment.Line,gt,pt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,0,pt-gt,lt,pt,0,pt-lt)),Lt.add(new go.PathSegment(go.PathSegment.Line,0,gt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,gt,0,0,lt,lt,0).close()),lt>1?(vt.spot1=new go.Spot(0,0,lt,lt),vt.spot2=new go.Spot(1,.8,-lt,-lt)):(vt.spot1=go.Spot.TopLeft,vt.spot2=new go.Spot(1,.8)),vt}),go.Shape.defineFigureGenerator("Repeat",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(et*0,nt*.45,!0);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*.9)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.9)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.65,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*.45).close());var pt=new go.PathFigure(et*1,nt*.55,!0);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*1)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.55)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*.55)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*.1)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.1)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*0)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*.55).close()),gt}),go.Shape.defineFigureGenerator("Windows",function(Nt,et,nt){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,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close()).add(new go.PathSegment(go.PathSegment.Move,.4*et,.4*nt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,.8*nt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*nt)).add(new go.PathSegment(go.PathSegment.Line,.2*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.1*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.1*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Line,.1*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt).close()))}),go.Shape.defineFigureGenerator("Terminal",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(et*0,nt*.1,!1);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.9)),lt.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*.9).close());var pt=new go.PathFigure(et*.1,nt*.2,!0);gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*.1,nt*.25)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.22,nt*.285)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.1,nt*.32)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.1,nt*.37)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.275,nt*.32)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.275,nt*.25).close());var vt=new go.PathFigure(et*.28,nt*.37,!0);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.37)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.41)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.28,nt*.41).close()),gt}),go.Shape.defineFigureGenerator("Beaker",function(Nt,et,nt){var gt=new go.Geometry,lt=15,pt=lt*qt,vt=new go.PathFigure(et*.62,nt*.475,!0);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt-lt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,nt,et,nt-pt,et-pt,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,lt,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-lt,pt,nt,0,nt-pt)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.38,nt*.475)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.38,nt*.03)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*0)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*0)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.62,nt*.03).close()),pt>1?(gt.spot1=new go.Spot(0,0,pt,pt),gt.spot2=new go.Spot(1,1,-pt,-pt)):(gt.spot1=go.Spot.TopLeft,gt.spot2=go.Spot.BottomRight),gt}),go.Shape.defineFigureGenerator("Download",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(et*0,nt*1,!0);gt.add(lt);var pt=.1/.3;lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.755,nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.93,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.61,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.39,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.07,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*(1-pt)).close());var vt=new go.PathFigure(et*.4,nt*0,!0);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.44)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.26,nt*.44)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.66)),vt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.26),nt*.44)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.44)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*0).close()),gt}),go.Shape.defineFigureGenerator("Bin",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(et*0,nt*1,!0);gt.add(lt);var pt=.1/.3;return lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.755,nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.93,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.61,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.39,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.07,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*(1-pt)).close()),gt}),go.Shape.defineFigureGenerator("Upload",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(et*0,nt*1,!0);gt.add(lt);var pt=.1/.3;lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.755,nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.93,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.61,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.39,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.07,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*(1-pt)).close());var vt=new go.PathFigure(et*.5,nt*0,!0);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.26,nt*.25)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.25)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.63)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.63)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.25)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.74,nt*.25).close()),gt}),go.Shape.defineFigureGenerator("EmptyDrink",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(et*.15,nt*0,!1);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et*.85,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*1).close()),gt}),go.Shape.defineFigureGenerator("Drink",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(et*.15,nt*0,!1);gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et*.85,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*1).close());var pt=new go.PathFigure(et*.235,nt*.28,!0);return gt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*.765,nt*.28)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.655,nt*.97)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.345,nt*.97).close()),gt}),go.Shape.defineFigureGenerator("4Arrows",function(Nt,et,nt){var gt=new go.Geometry,lt=new go.PathFigure(et*.5,nt*0,!0);return gt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et*.65,nt*.25)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.25)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.35)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.5)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.65)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.65,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.65)),lt.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*.5)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.35)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.25)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.25).close()),gt}),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")},80727: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 Ye={},pn="5.0",Yt={},kt=null,ue=!1,xe=!1,Te=null,ge=!1,Ee=null,qt=null,Ce=0;Ce4?parseFloat(ce):5};Ye.setHTML5Codebase=function(ce,Ue){qt=ce,He(ce,Ue)},Ye.setJavaCodebase=Ye.setJavaCodebaseVersion=Ye.isCompiledInstalled=Ye.setPreCompiledScriptPath=Ye.setPreCompiledResourcePath=function(){},Ye.setHTML5CodebaseVersion=function(ce,Ue){var on=parseFloat(ce);if(on!==NaN&&on<5){console.log("The GeoGebra HTML5 codebase version "+on+" is deprecated. Using version latest instead.");return}Ee=ce,Gt(ce,Ue)},Ye.getHTML5CodebaseVersion=function(){return Nt},Ye.getParameters=function(){return Yt},Ye.setFontsCSSURL=function(ce){vt=ce},Ye.setGiacJSURL=function(ce){},Ye.setJNLPFile=function(ce){pe=ce},Ye.setJNLPBaseDir=function(ce){},Ye.inject=function(){function ce(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ue="auto",on=Yt.id,wn,sn=!1,kn=0;kn=5)return!0;var ce=Ye.getAppletObject();return ce&&typeof ce.recalculateEnvironments=="function"?(ce.recalculateEnvironments(),!0):!1},Ye.startAnimation=function(){var ce=Ye.getAppletObject();return ce&&typeof ce.startAnimation=="function"?(ce.startAnimation(),!0):!1},Ye.stopAnimation=function(){var ce=Ye.getAppletObject();return ce&&typeof ce.stopAnimation=="function"?(ce.stopAnimation(),!0):!1},Ye.getAppletObject=function(){var ce=Yt.id!==void 0?Yt.id:"ggbApplet";return window[ce]},Ye.resize=function(){};var ve=function(ce,Ue,on){var wn=document.createElement("param");wn.setAttribute("name",Ue),wn.setAttribute("value",on),ce.appendChild(wn)},re=function(ce){return ce&&ce!=="false"},Oe=function(ce,Ue,on){Ft(Nt)<=4.2&&(on=!0);var wn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Nt||ggbHTML5LoadedCodebaseIsWebSimple&&!nt)&&(wn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var sn=document.createElement("div");sn.classList.add("appletParameters","notranslate");var kn=Ue.width,te=Ue.height;if(Ue.disableAutoScale=Ue.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ue.disableAutoScale,Ue.width!==void 0)if(Ft(Nt)<=4.4)re(Ue.showToolBar)&&(Ue.height-=7),re(Ue.showAlgebraInput)&&(Ue.height-=37),Ue.width<605&&re(Ue.showToolBar)&&(Ue.width=605,kn=605);else{var Ve=100;(re(Ue.showToolBar)||re(Ue.showMenuBar))&&(Ue.hasOwnProperty("customToolBar")&&(Ue.customToolbar=Ue.customToolBar),Ve=re(Ue.showMenuBar)?245:155),kn=5?(Ue.appletOnLoad=function(xt){var Bt=ce.querySelector(".ggb_preview");Bt&&Bt.parentNode.removeChild(Bt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Sn),window.GGBT_wsf_view&&$(window).trigger("resize"),dn(xt)},Vn||Sn.appendChild(vi)):sn.appendChild(vi),Sn.appendChild(sn),Vn||ce.appendChild(Sn),setTimeout(function(){Ye.resize()},1)}else{var Qn=document.createElement("div");Qn.className="applet_scaler",Qn.style.position="relative",Qn.style.display="block",Qn.appendChild(sn),ce.appendChild(Qn),Ue.appletOnLoad=function(xt){Ye.resize(),dn(xt)}}function wi(xt,Bt){Bt&&typeof Bt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(xt,Bt.appletOnLoad):renderGGBElement(xt),un("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Bt)}function Ci(xt,Bt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:xt,params:Bt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Rt){wi(Rt.article,Rt.params)}),html5AppletsToProcess=null)},Ft(Nt)<5&&(xt.className+=" geogebraweb")):wi(xt,Bt)}if(wn){scriptLoadStarted=!0;for(var an=0;an0?(fn.remove(),Sn.attr("id","fullscreencontent").show(),jQuery(dn).append(Sn),window.dispatchEvent(new Event("resize"))):Oe(fn,Ue,!1),window.GGBT_wsf_view.launchFullScreen(dn)}else je=wn,Oe(ce,Ue,!1);if(!window.GGBT_wsf_view)for(te=0;tece/4*3&&(fn=ce/4*3),dn=fn/5.8,Ve.setAttribute("src",lt),Ve.setAttribute("width",fn),Ve.setAttribute("height",dn);var Sn=(ce-fn)/2,Vn=(Ue-dn)/2;Ve.style.left=Sn+"px",Ve.style.top=Vn+"px",sn.appendChild(Ve)}}return sn.appendChild(te),sn},In=function(ce){return ce=ce.toLowerCase(),ce==="html5"||ce==="screenshot"?ce:"html5"},Zt=["web","webSimple","web3d","tablet","tablet3d","phone"],Gt=function(ce,Ue){if(Nt=ce,Ue){He(Nt,!0);return}var on=!ue;if(on){var wn=Ft(Nt);!isNaN(wn)&&wn<4.4&&(on=!1)}var sn,kn;window.location.protocol.substr(0,4)==="http"?sn=window.location.protocol:sn="http:";var te=Nt.indexOf("//");te>0?kn=Nt:te===0?kn=sn+Nt:kn="https://www.geogebra.org/apps/5.2.814.0/";for(var Ve in Zt)if(Nt.slice(Zt[Ve].length*-1)===Zt[Ve]||Nt.slice((Zt[Ve].length+1)*-1)===Zt[Ve]+"/"){He(kn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&on&&!kt.is3D&&!kt.AV&&!kt.SV&&!kt.CV&&!kt.EV2&&!kt.CP&&!kt.PC&&!kt.DA&&!kt.FI&&!kt.PV&&!re(Yt.showToolBar)&&!re(Yt.showMenuBar)&&!re(Yt.showAlgebraInput)&&!re(Yt.enableRightClick)&&(!Yt.appName||Yt.appName=="classic")?kn+="webSimple/":kn+="web3d/",He(kn,!1)},He=function(ce,Ue){if(ce.requirejs){le=ce;return}ce.slice(-1)!=="/"&&(ce+="/"),le=ce,Ue===null&&(Ue=ce.indexOf("http")===-1),Be=Ue,et="web.nocache.js",nt=!1;var on=le.split("/");on.length>1&&(!Ue&&on[on.length-2]==="webSimple"?(et="webSimple.nocache.js",nt=!0):Zt.indexOf(on[on.length-2])>=0&&(et=on[on.length-2]+".nocache.js")),on=ce.split("/"),Nt=on[on.length-3],Nt.substr(0,4)==="test"?Nt=Nt.substr(4,1)+"."+Nt.substr(5,1):(Nt.substr(0,3)==="war"||Nt.substr(0,4)==="beta")&&(Nt="5.0");var wn=parseFloat(Nt);wn!==NaN&&wn<5&&ce.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+wn+" is deprecated. Using version latest instead."),Gt("5.0",Ue))},un=function(ce,Ue){window.console&&window.console.log&&(!Ue||typeof Ue.showLogging=="undefined"||Ue.showLogging&&Ue.showLogging!=="false")&&console.log(ce)};Yt.material_id!==void 0?_t(ln):ln();function ln(){var ce=pn;Ee!==null?ce=Ee:parseFloat(ce)<5&&(ce="5.0"),Gt(ce,!1),qt!==null&&He(qt,Be),ge=!0}return Ye},GGBAppletUtils=function(){"use strict";function Ye(){return window.GGBT_wsf_edit!==void 0}function pn(ge,Ee){Ee!=1?(ge.style.transformOrigin="0% 0% 0px",ge.style.webkitTransformOrigin="0% 0% 0px",ge.style.transform="scale("+Ee+","+Ee+")",ge.style.webkitTransform="scale("+Ee+","+Ee+")",ge.style.maxWidth="initial",ge.querySelector(".ggb_preview")!==null&&(ge.querySelector(".ggb_preview").style.maxWidth="initial"),ge.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ge.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ge.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ge.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ge.style.transform="none",ge.style.webkitTransform="none")}function Yt(ge,Ee,qt,Ce,fe,pe){var le=null;if(pe!=null&&pe!="")for(var Be=ge.parentNode;Be!=null;)if((" "+Be.className+" ").indexOf(" "+pe+" ")>-1){le=Be;break}else Be=Be.parentNode;var je=0,Nt=0,et=0,nt=0,gt=0,lt=0,pt=0;if(le)je=le.offsetWidth,Nt=Math.max(Ce?le.offsetWidth:0,le.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(je=Math.min(window.innerWidth,document.documentElement.clientWidth),Nt=Math.min(window.innerHeight,document.documentElement.clientHeight),et=je):(je=window.innerWidth,Nt=window.innerHeight,et=window.innerWidth),ge){var vt=ge.getBoundingClientRect();vt.left>0&&vt.left<=je&&(fe===void 0||!fe)&&(document.dir==="rtl"?(gt=je-vt.width-vt.left,lt=et<=480?10:30):(lt=vt.left,gt=et<=480?10:30),nt=lt+gt)}if(ge&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Lt=ge.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(nt=40,pt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(nt=0,pt=40)}}return ge&&((qt===void 0||!qt)&&Ee>0&&Ee+nt1&&(pe=!0)),Ee&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(pe=!0),!(ge.hasOwnProperty("disableAutoScale")&&ge.disableAutoScale))fe=kt(ge,Ee,pe,qt,ge.scaleContainerClass);else return Ce;return pe&&(!ge.hasOwnProperty("scale")||Ce===1)?fe:Math.min(Ce,fe)}function xe(ge){var Ee=Math.min(window.innerWidth,document.documentElement.clientWidth),qt=Math.min(window.innerHeight,document.documentElement.clientHeight),Ce=ge.getBoundingClientRect(),fe=(Ee-Ce.width)/2,pe=(qt-Ce.height)/2;pe<0&&(pe=0),ge.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(fe<40?ge.style.left="40px":ge.style.left=fe+"px",ge.style.top=pe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(pe<40?ge.style.top="40px":ge.style.top=pe+"px",ge.style.left=fe+"px")}function Te(ge,Ee){var qt=ge.querySelector(".appletParameters");if(qt){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ee.id!==qt.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ge)}if(qt.parentElement&&/fullscreen/.test(qt.parentElement.className))return;var Ce=ue(Ee,ge);Ye()&&qt.setAttribute("data-param-scale",Ce);for(var fe=null,pe=0;pe=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(Ye){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ye){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ye){var pn=c[Ye];return pn==null?null:pn},r=d,webModule.__errFn=e}function B(){function Ye(ge){var Ee=ge.lastIndexOf(rb);Ee==-1&&(Ee=ge.length);var qt=ge.indexOf(sb);qt==-1&&(qt=ge.length);var Ce=ge.lastIndexOf(tb,Math.min(qt,Ee));return Ce>=O?ge.substring(O,Ce+P):W}function pn(ge){if(!ge.match(/^\w+:\/\//)){var Ee=o.createElement(ub);Ee.src=ge+vb,ge=Ye(Ee.src)}return ge}function Yt(){var ge=__gwt_getMetaProperty(wb);return ge!=null?ge:W}function kt(){for(var ge=o.getElementsByTagName(_),Ee=O;EeO?ge[ge.length-P].href:W}function xe(){var ge=o.location;return ge.href==ge.protocol+zb+ge.host+ge.pathname+ge.search+ge.hash}var Te=Yt();return Te==W&&(Te=kt()),Te==W&&(Te=ue()),Te==W&&xe()&&(Te=Ye(o.location.href)),Te=pn(Te),Te}function C(Ye){return Ye.match(/^\//)||Ye.match(/^[a-zA-Z]+:\/\//)?Ye:webModule.__moduleBase+Ye}function D(){var Ye=[],pn=O,Yt=[],kt=[];function ue(ge){var Ee=kt[ge](),qt=Yt[ge];if(Ee in qt)return Ee;var Ce=[];for(var fe in qt)Ce[qt[fe]]=fe;throw r&&r(ge,Ce,Ee),null}if(__gwt_isKnownPropertyValue=function(ge,Ee){return Ee in Yt[ge]},webModule.__getPropMap=function(){var ge={};for(var Ee in Yt)Yt.hasOwnProperty(Ee)&&(ge[Ee]=ue(Ee));return ge},webModule.__computePropValue=ue,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var xe;try{xe=Cb;var Te=xe.indexOf(Db);Te!=-1&&(pn=parseInt(xe.substring(Te+P),$),xe=xe.substring(O,Te))}catch(ge){}return webModule.__softPermutationId=pn,C(xe+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})()},77903:function(Ye,pn,Yt){"use strict";Yt.d(pn,{Ax:function(){return Te},Ds:function(){return ge},KI:function(){return qt},SI:function(){return xe},f1:function(){return ue}});var kt=Yt(3294);function ue(Ce){let fe=!0;if(Ce.length>0){for(let pe=0;pefe in Ce?xe(Ce,fe,{enumerable:!0,configurable:!0,writable:!0,value:pe}):Ce[fe]=pe,ge=(Ce,fe,pe)=>Te(Ce,typeof fe!="symbol"?fe+"":fe,pe),Ee=(Ce,fe,pe)=>new Promise((le,Be)=>{var je=nt=>{try{et(pe.next(nt))}catch(gt){Be(gt)}},Nt=nt=>{try{et(pe.throw(nt))}catch(gt){Be(gt)}},et=nt=>nt.done?le(nt.value):Promise.resolve(nt.value).then(je,Nt);et((pe=pe.apply(Ce,fe)).next())});class qt extends kt.EventEmitter{constructor(fe,pe){super(),ge(this,"url"),ge(this,"body"),ge(this,"fullContent",""),ge(this,"controller",null),this.url=fe,this.body=pe}startStream(){return Ee(this,null,function*(){this.controller=new AbortController;const{signal:fe}=this.controller;try{const pe=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:fe});if(!pe.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${pe.status}`);const le=pe.headers.get("content-type");if(!le)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(le.includes("application/json")){const Nt=yield pe.json();this.emit("error",Nt);return}if(!le.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const Be=pe.body.getReader(),je=new TextDecoder("utf-8");for(;;){const{done:Nt,value:et}=yield Be.read();if(Nt)break;const gt=je.decode(et,{stream:!0}).split(` +`);for(const lt of gt)if(lt.startsWith("data:")){const pt=lt.slice(5).trim();if(pt==="[DONE]")break;try{const vt=JSON.parse(pt);vt.data&&this.handleData(vt.data)}catch(vt){console.error("\u89E3\u6790 JSON \u5931\u8D25:",vt)}}}this.emit("done",this.fullContent)}catch(pe){pe.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",pe.message)}})}handleData(fe){fe.content&&(this.fullContent+=fe.content,this.emit("data",{chunk:fe,full:this.fullContent}))}cancelRequest(){var fe;(fe=this.controller)==null||fe.abort()}}pn.Z=qt},43276:function(Ye,pn,Yt){"use strict";Yt.d(pn,{Z:function(){return Ft}});var kt=Yt(59301),ue=Yt(72719),xe=Yt(77596),Te=Yt(93772),ge=Yt(14179),Ee=Yt(56102),qt={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm"},Ce=Yt(8591),fe=Yt(11611),pe=Yt(35328),le=Yt(30084),Be=Yt(10787),je=Yt(50304),Nt=Object.defineProperty,et=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,lt=(Wt,Kt,_t)=>Kt in Wt?Nt(Wt,Kt,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Wt[Kt]=_t,pt=(Wt,Kt)=>{for(var _t in Kt||(Kt={}))nt.call(Kt,_t)&<(Wt,_t,Kt[_t]);if(et)for(var _t of et(Kt))gt.call(Kt,_t)&<(Wt,_t,Kt[_t]);return Wt},vt=(Wt,Kt)=>{var _t={};for(var ne in Wt)nt.call(Wt,ne)&&Kt.indexOf(ne)<0&&(_t[ne]=Wt[ne]);if(Wt!=null&&et)for(var ne of et(Wt))Kt.indexOf(ne)<0&>.call(Wt,ne)&&(_t[ne]=Wt[ne]);return _t},Ft=({onFinish:Wt,value:Kt,streamingStatus:_t,cancelIndex:ne,loadImage:$t})=>{const[ve,re]=(0,kt.useState)(""),[Oe,me]=(0,kt.useState)(0),[Fe,Pn]=(0,kt.useState)(!1),vn=Zt=>Zt.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Gt,He)=>`$$${He.trim()}$$`).replace(/\\\(([\s\S]*?)\\\)/g,'$$$$$1$$$$').replace(/\\\[([\s\S]*?)\\\]/g,'$$$$$1$$$$').replace(/_{2,}/g,"`$&`"),Mn=()=>{Pn(!0),Wt==null||Wt()};return(0,kt.useEffect)(()=>{const Zt=$t?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A ${Kt}`:Kt,Gt=vn(Zt);if(!Fe)if($t||!_t||ne>0){re(Gt),me(Gt.length),(!_t||ne>0)&&!$t&&Mn();return}else if(Oe{re(Gt.slice(0,Oe+2)),me(ln=>ln+2)},He>10?Math.max(500/(He/2),20):50);return()=>clearInterval(un)}else _t||Mn()},[Kt,_t,ne,$t,Oe]),(0,kt.useMemo)(()=>kt.createElement("section",{className:`${qt.answer} fadeIn animated edu_md`},kt.createElement(ue.UG,{remarkPlugins:[le.Z,Be.Z],rehypePlugins:[pe.Z,Te.Z],components:{code(Zt){var Gt=Zt,{node:He,inline:un,className:ln,children:ce}=Gt,Ue=vt(Gt,["node","inline","className","children"]);const on=/language-(\w+)/.exec(ln||""),wn=String(ce).trim();return un||!on?kt.createElement("code",pt({className:ln},Ue),ce):kt.createElement("code",{className:qt.codeCopy,"data-text":`\`\`\`${on?on[1]:""} ${ce} -\`\`\``},kt.createElement(Ae.CopyToClipboard,{text:wn,onCopy:()=>Ce.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},kt.createElement("button",null,"\u590D\u5236")),kt.createElement(xe.Z,pt({style:ge.Z,language:on[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},Ue),wn))},img({node:Zt}){var Gt;const He=(Gt=Zt.properties)==null?void 0:Gt.src;return kt.createElement(fe.Z,{src:He,width:320,"data-text":He,onLoad:()=>$t&&setTimeout(()=>Mn(),500)})}}},Fe?ve:`${ve}__`)),[ve])}},19909:function(Ye,pn,Yt){"use strict";Yt.d(pn,{Z:function(){return se}});var kt=Yt(59301),ue=Yt(8591),xe=Yt(54580),Te=Yt(43418),ge=Yt(6848),Ae=Yt(92832),qt=Yt(3113),Ce=Yt(71418),fe=Yt(64165),pe=Yt(14478),le=Yt(43428),Be=Yt(38854),je=Yt(92310),Nt=Yt.n(je),et=Yt(43276),nt={reasoning:"reasoning___S0mKl",btn:"btn____CIJG",content:"content___CIAh9"},gt=Yt(59301),lt=(_e,nn,tn)=>new Promise((Ln,ni)=>{var di=qi=>{try{Mi(tn.next(qi))}catch(oo){ni(oo)}},si=qi=>{try{Mi(tn.throw(qi))}catch(oo){ni(oo)}},Mi=qi=>qi.done?Ln(qi.value):Promise.resolve(qi.value).then(di,si);Mi((tn=tn.apply(_e,nn)).next())}),vt=({value:_e="",streamingStatus:nn,onFinish:tn,cancelIndex:Ln,time:ni,loading:di,loadAll:si})=>{const[Mi,qi]=(0,kt.useState)(""),[oo,pr]=(0,kt.useState)(!0),Ho=(0,kt.useRef)(_e),mr=(0,kt.useRef)(nn),so=(0,kt.useRef)(0),xo=(0,kt.useRef)(null),[Yr,Cr]=(0,kt.useState)(!1),No=70;(0,kt.useEffect)(()=>{mr.current=nn},[nn]),(0,kt.useEffect)(()=>{Ho.current=_e},[_e]),(0,kt.useEffect)(()=>{if(!nn){qi(Ho.current);return}return Cr(!0),xo.current=setInterval(yi,No),()=>{clearInterval(xo.current)}},[]),(0,kt.useEffect)(()=>{Yr&&(qi(Ho.current),clearInterval(xo.current),Cr(!1),tn())},[Ln]);const yi=()=>lt(void 0,null,function*(){const wt=Ho.current[so.current];wt!==void 0?(qi(As=>As+wt),so.current++,clearInterval(xo.current),xo.current=setInterval(yi,280/(Ho.current.length-so.current))):mr.current===!1&&(qi(Ho.current),clearInterval(xo.current),Cr(!1),tn())});return gt.createElement("div",{className:`${nt.reasoning} fadeIn animated`},gt.createElement("div",{className:nt.btn,onClick:()=>pr(!oo)},gt.createElement("i",{className:"iconfont icon-shendusikao"}),ni?gt.createElement("span",null,"\u5DF2\u6DF1\u5EA6\u601D\u8003\uFF08\u7528\u65F6 ",ni," \u79D2\uFF09"):gt.createElement("span",null,"\u601D\u8003\u4E2D..."),oo?gt.createElement("b",{className:"iconfont icon-shouqi6"}):gt.createElement("b",{className:"iconfont icon-zhankai6"})),di&>.createElement(Ce.Z,{spinning:!0,className:"mt20"}),oo&&!di&>.createElement("div",{className:nt.content},Mi,Yr?gt.createElement("span",{className:"aiBlink"},"__"):""))},Lt={select:"select___Kt_GE",box:"box___S5_ly",text:"text___dtZDv",itemWrap:"itemWrap___xmw7x",item:"item___io6Bx",active:"active___nHRTI"},Ft=Yt(81327),Wt=Object.defineProperty,Kt=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,$t=(_e,nn,tn)=>nn in _e?Wt(_e,nn,{enumerable:!0,configurable:!0,writable:!0,value:tn}):_e[nn]=tn,ve=(_e,nn)=>{for(var tn in nn||(nn={}))_t.call(nn,tn)&&$t(_e,tn,nn[tn]);if(Kt)for(var tn of Kt(nn))ne.call(nn,tn)&&$t(_e,tn,nn[tn]);return _e};const re=_e=>React.createElement("svg",ve({className:"logo1_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},_e),React.createElement("path",{d:"M1019.407 620.8 891.834 397.781 946.49 293.12a29.099 29.099 0 0 0 6.4-36.395l-70.187-126.592a30.08 30.08 0 0 0-24.576-13.653H597.519L539.194 14.507a27.35 27.35 0 0 0-20.907-14.55H380.644a29.141 29.141 0 0 0-24.618 14.55v5.546L225.806 243.03H100.923a29.184 29.184 0 0 0-25.515 13.654L3.428 384.085a32.768 32.768 0 0 0 0 29.184L132.836 638.08 74.511 740.053a32.768 32.768 0 0 0 0 29.056l66.517 116.566a29.907 29.907 0 0 0 25.515 14.506H427.15l62.848 109.227A30.08 30.08 0 0 0 512.783 1024H660.41a29.141 29.141 0 0 0 24.576-14.55l128.469-224.853h114.773a31.915 31.915 0 0 0 24.662-15.445l66.474-117.419a28.16 28.16 0 0 0 0-30.976l.043.043zm-161.28 14.592L791.61 512.469 518.287 993.963l-74.752-122.88h-273.28l65.621-119.211h139.392L101.86 272.213h143.062L380.687 30.08l68.352 119.253-70.187 122.88H925.54l-69.205 121.942 137.6 241.194H858.17z",fill:"#605BEC"}),React.createElement("path",{d:"m499.983 699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ggMTQuNTkyTDc5MS42MSA1MTIuNDY5IDUxOC4yODcgOTkzLjk2M2wtNzQuNzUyLTEyMi44OGgtMjczLjI4bDY1LjYyMS0xMTkuMjExaDEzOS4zOTJMMTAxLjg2IDI3Mi4yMTNoMTQzLjA2MkwzODAuNjg3IDMwLjA4bDY4LjM1MiAxMTkuMjUzLTcwLjE4NyAxMjIuODhIOTI1LjU0bC02OS4yMDUgMTIxLjk0MiAxMzcuNiAyNDEuMTk0SDg1OC4xN3oiIGZpbGw9IiM2MDVCRUMiLz48cGF0aCBkPSJtNDk5Ljk4MyA2OTkuMzA3IDE3NC4zNzktMjc0LjczMUgzMjQuNzA4eiIgZmlsbD0iIzYwNUJFQyIvPjwvc3ZnPg==",me=Object.defineProperty,Fe=Object.getOwnPropertySymbols,Pn=Object.prototype.hasOwnProperty,vn=Object.prototype.propertyIsEnumerable,Mn=(_e,nn,tn)=>nn in _e?me(_e,nn,{enumerable:!0,configurable:!0,writable:!0,value:tn}):_e[nn]=tn,In=(_e,nn)=>{for(var tn in nn||(nn={}))Pn.call(nn,tn)&&Mn(_e,tn,nn[tn]);if(Fe)for(var tn of Fe(nn))vn.call(nn,tn)&&Mn(_e,tn,nn[tn]);return _e};const Zt=_e=>React.createElement("svg",In({className:"logo2_svg__icon",viewBox:"0 0 1417 1024",xmlns:"http://www.w3.org/2000/svg",width:276.758,height:200},_e),React.createElement("path",{d:"M1364.44 118.705c-14.178-6.695-20.322 6.065-28.593 12.525-2.914 2.048-5.277 4.726-7.64 7.246-20.717 21.268-44.899 35.21-76.643 33.556a152.576 152.576 0 0 0-120.674 45.371c-7.404-41.826-32.06-66.875-69.553-82.865-19.693-8.35-39.543-16.7-53.248-34.737-9.61-12.919-12.288-27.333-17.015-41.512-3.15-8.507-6.144-17.25-16.384-18.668-11.185-1.733-15.517 7.247-19.928 14.73a189.125 189.125 0 0 0-23.552 98.461c1.575 76.88 35.446 138.083 102.636 181.642 7.562 4.963 9.531 9.925 7.09 17.25-4.49 14.967-9.926 29.54-14.81 44.584-2.992 9.61-7.561 11.658-18.274 7.483a309.484 309.484 0 0 1-96.886-63.015c-47.813-44.426-91.057-93.342-144.935-131.702a635.825 635.825 0 0 0-38.36-25.207c-54.982-51.2 7.167-93.262 21.582-98.225 14.966-5.199 5.277-23.158-43.402-22.922-48.68.237-93.184 15.833-149.977 36.628-8.428 3.15-17.092 5.514-25.993 7.326a557.844 557.844 0 0 0-160.768-5.436c-105.157 11.264-189.204 58.92-250.96 140.367-74.2 97.832-91.687 208.975-70.261 325.002 22.449 122.25 87.434 223.468 187.47 302.631 103.582 82 222.917 122.172 359.188 114.452 82.708-4.568 174.79-15.202 278.686-99.485 26.151 12.445 53.642 17.486 99.249 21.267 35.131 3.072 69.002-1.733 95.153-6.931 40.96-8.35 38.203-44.741 23.316-51.437-120.202-53.72-93.814-31.822-117.839-49.624 61.125-69.317 153.206-141.312 189.204-374.706 2.835-18.51.472-30.168 0-45.213-.237-9.137 1.969-12.603 12.918-13.706a240.089 240.089 0 0 0 86.173-25.442c77.982-40.803 109.332-107.914 116.736-188.259 1.103-12.288-.236-24.97-13.705-31.429zM685.45 842.043C569.108 754.215 512.55 725.307 489.157 726.49c-21.82 1.26-17.96 25.206-13.155 40.802 5.042 15.439 11.58 26.073 20.717 39.621 6.301 8.9 10.791 22.213-6.302 32.295-37.494 22.213-102.794-7.561-105.787-8.98-76.012-42.929-139.421-99.564-184.241-176.994a523.894 523.894 0 0 1-72.468-239.93c-1.024-20.56 5.278-27.885 26.703-31.587a272.148 272.148 0 0 1 85.307-2.127c118.942 16.699 220.16 67.741 305.073 148.48 48.443 46.001 85.071 100.982 122.88 154.703 40.173 57.029 83.338 111.458 138.32 155.963 19.376 15.675 34.894 27.569 49.781 36.234-44.74 4.805-119.414 5.829-170.456-32.926zm55.926-344.615c0-5.357 2.757-10.398 7.326-13.47a17.723 17.723 0 0 1 22.134 2.048c3.072 2.915 4.805 7.09 4.805 11.422a16.778 16.778 0 0 1-17.25 16.541 17.33 17.33 0 0 1-12.131-4.883 15.911 15.911 0 0 1-4.884-11.658zm173.529 85.464a104.37 104.37 0 0 1-33.005 8.586 71.444 71.444 0 0 1-44.504-13.548c-15.282-12.288-26.23-19.141-30.72-40.645a89.167 89.167 0 0 1 .787-31.429c3.939-17.487-.393-28.75-13.312-38.912-10.476-8.35-23.71-10.634-38.36-10.634a32.06 32.06 0 0 1-14.179-4.175c-6.144-2.914-11.106-10.24-6.301-19.14a60.18 60.18 0 0 1 10.712-11.265c19.85-10.79 42.693-7.246 63.882.788 19.693 7.798 34.501 21.898 55.926 41.905 21.74 24.183 25.68 30.8 38.125 48.916 9.846 14.179 18.747 28.75 24.89 45.45 3.703 10.397-1.102 18.905-13.941 24.103z",fill:"#4D6BFE"}));var Gt="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDE0MTcgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjc2Ljc1OCIgaGVpZ2h0PSIyMDAiPjxwYXRoIGQ9Ik0xMzY0LjQ0IDExOC43MDVjLTE0LjE3OC02LjY5NS0yMC4zMjIgNi4wNjUtMjguNTkzIDEyLjUyNS0yLjkxNCAyLjA0OC01LjI3NyA0LjcyNi03LjY0IDcuMjQ2LTIwLjcxNyAyMS4yNjgtNDQuODk5IDM1LjIxLTc2LjY0MyAzMy41NTZhMTUyLjU3NiAxNTIuNTc2IDAgMCAwLTEyMC42NzQgNDUuMzcxYy03LjQwNC00MS44MjYtMzIuMDYtNjYuODc1LTY5LjU1My04Mi44NjUtMTkuNjkzLTguMzUtMzkuNTQzLTE2LjctNTMuMjQ4LTM0LjczNy05LjYxLTEyLjkxOS0xMi4yODgtMjcuMzMzLTE3LjAxNS00MS41MTItMy4xNS04LjUwNy02LjE0NC0xNy4yNS0xNi4zODQtMTguNjY4LTExLjE4NS0xLjczMy0xNS41MTcgNy4yNDctMTkuOTI4IDE0LjczYTE4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2IDE0LjE3OSAxOC43NDcgMjguNzUgMjQuODkgNDUuNDUgMy43MDMgMTAuMzk3LTEuMTAyIDE4LjkwNS0xMy45NDEgMjQuMTAzeiIgZmlsbD0iIzRENkJGRSIvPjwvc3ZnPg==",He=Yt(59301),ln=({value:_e,onChange:nn})=>{const[tn,Ln]=(0,kt.useState)(!1),ni=[{name:"\u901A\u4E49\u5343\u95EE",key:"qwen-max",img:Oe},{name:"DeepSeek R1-671B",key:"deepseek-r1",img:Gt}],di=ni.find(si=>si.key===_e);return He.createElement("div",{className:Lt.select},He.createElement(Ft.Z,{size:10},He.createElement("span",{className:"c-grey-333 font16"},"\u6A21\u578B"),He.createElement("div",{className:Lt.box,onMouseLeave:()=>Ln(!1)},He.createElement("div",{className:Lt.text,onClick:()=>Ln(!0)},He.createElement("img",{src:di.img,width:20}),He.createElement("span",null,di.name),He.createElement("b",{className:"iconfont icon-zhankai6"})),tn&&He.createElement("div",{className:Lt.itemWrap},He.createElement("aside",null,ni.map(si=>He.createElement("div",{key:si.key,className:`${Lt.item} ${si.key===_e?Lt.active:""}`,onClick:Mi=>{Mi.stopPropagation(),nn(si.key),Ln(!1)}},He.createElement("img",{src:si.img,width:20}),He.createElement("span",null,si.name))))))))},ce={loadingPic:"loadingPic___y2kKZ",loading:"loading___UEUk1",dot:"dot___TYXFV","dot-fade":"dot-fade___KWn1a",wrap:"wrap___nU3cS",chatContainer:"chatContainer___PNe3Q",footerContainer:"footerContainer___hQATV",btnWrp:"btnWrp___mS8l6",btn:"btn___3za5U",btnActive:"btnActive____jzfb",inputContainer:"inputContainer___iCQ3u",uploadBtn:"uploadBtn___OHHJF",sendBtn:"sendBtn___ktaQl",sendBtnDisabled:"sendBtnDisabled___DVncF",cancelBtn:"cancelBtn___bzMDI",lineFour:"lineFour___Lhbz5",fullIcon:"fullIcon___YWXTV",footerContainerSelected:"footerContainerSelected___pGBh3",full:"full___dZLXo",li:"li___PjMV3",avatarIcon:"avatarIcon___ztGQ3",img:"img___wZqEA",content:"content___OlYYG",borderBox:"borderBox___tjHwt",text:"text___yWTCV",fileWrap:"fileWrap___IX778",file:"file___fxAKb",fileName:"fileName___RA8nu",source:"source___nkLC0",action:"action___I2zGy",disabledInput:"disabledInput___Buork",backBottom:"backBottom___SMuL2",head:"head___v8Eom",headBtn:"headBtn___IS7xR",menuWarp:"menuWarp___G6yj0",menu:"menu___M8VWP",menuText:"menuText___gRpb5",menuDel:"menuDel___eH_wg",active:"active___KWwPV"},Ue=Yt(99064),on=Yt(955),wn={draggableImage:"draggableImage___vcTso",img:"img___xAyno",close:"close___WUtfj"},kn=({src:_e,onClick:nn,topPercentage:tn=.62,draggableExtraNode:Ln})=>{const ni=(0,kt.useRef)(null),di=(0,kt.useRef)(!1),si=(0,kt.useRef)(!1),[Mi,qi]=(0,kt.useState)(window.innerHeight*tn),[oo,pr]=(0,kt.useState)(!1),Ho=10;return(0,kt.useEffect)(()=>{if(ni.current){let mr=function(No){var yi;di.current=!0,Cr=No.pageY,Yr=No.pageY-(((yi=ni.current)==null?void 0:yi.getBoundingClientRect().top)||0),(0,on.kk)("none"),document.onselectstart=function(){return!1}},so=function(){di.current&&!si.current&&nn&&nn(),di.current=!1,si.current=!1,(0,on.kk)("auto"),document.onselectstart=null},xo=function(No){var yi;if(di.current){const As=No.pageY-Yr,Gn=window.innerHeight-(((yi=ni.current)==null?void 0:yi.offsetHeight)||0)-50,Ri=50;if(!si.current&&Math.abs(Cr-No.pageY)>Ho&&(si.current=!0),si.current){let Io=Math.max(Ri,Math.min(As,Gn));qi(Io)}}},Yr=0,Cr=0;return ni.current.addEventListener("mousedown",mr),document.addEventListener("mousemove",xo),document.addEventListener("mouseup",so),()=>{var No,yi;(yi=(No=ni==null?void 0:ni.current)==null?void 0:No.removeEventListener)==null||yi.call(No,"mousedown",mr),document.removeEventListener("mousemove",xo),document.removeEventListener("mouseup",so)}}},[nn]),(0,kt.useEffect)(()=>{const mr=()=>{qi(window.innerHeight*tn)};return window.addEventListener("resize",mr),()=>{window.removeEventListener("resize",mr)}},[tn]),kt.createElement("div",{className:wn.draggableImage,style:{top:`${Mi}px`,display:oo?"none":"block",cursor:di.current?"grabbing":"grab"},ref:ni},Ln,kt.createElement("img",{className:wn.img,src:_e,width:60,draggable:"false"}),kt.createElement("i",{className:`iconfont icon-tupianguanbi ${wn.close}`,onMouseUp:mr=>{mr.stopPropagation(),pr(!0)}}))},te="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAIABJREFUeF6VnQmAnGV9/z/vMffeV3azuRMCSUgCSQggiCBFEE9UvFpqW6utFopa71bx6GHRWq31xKtSFS0eqICV+wwSIJKQkDvZJJvsObOzO/d7PH9/z/O+s5sY2/4XhpmdnXln3u/7/f1+39/xPFj8H39Wr742GRaOXaYs65WWnVhtuc58y7Lmh4oWZYFv2fpIgdxZFtg2oZMgdByU7eA7Npbt6L958rttUXMsQtsCyyawLEI5gC0HMMcCpf8193ILIVT6ZoUhlgqxw5BEoLAD87ulAuxQkZC/h4ogDHBCX79eXivHsfShQizkOJQsFR63FMdVGO6yHfWz1s4FD+za9V+N/ws01v/2otVLzuv36tZHwfpDlN1m2w6W62LLiVpyLhahpQixNRiBxkPAE+BcQtvRj+Veyd8dG99x8CyLIOESuC4qlPcJ6BH48lgOHoMnXzIMIAJA7gUQ/VwQ4obgBgGOgBiGOAiIIY4fEqoQFXoazEQIlrwnuhhKLoB8hgZXPlH/IhdsGmV911HpTxwef3Dkf8Lo9wL40hUvTR0uTfxtiHpPYFk527KxQhfLtbGdhAZJoQiEEChC+V1AsS0sR8AU0ISB8pwLtkPg2niuTaAZaBO4CXwBUL6hMFiA0zdDuuYDfcLyQQJaBJwG0QAo906gcAXMiInCOtuPQQ80gI4GKgYQ/dhSShNbPtDRdwGhsFw+z6JswWdTbV3/sH//3fXTAXlaAIV1qmr9RKnwAmGVsmxsLCxLgLA0eFiOBkyflzDQEWDknB3Qj11CxyVwxGxdlD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(32050),wi=Object.defineProperty,Ci=Object.defineProperties,an=Object.getOwnPropertyDescriptors,Nn=Object.getOwnPropertySymbols,xn=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable,Ct=(_e,nn,tn)=>nn in _e?wi(_e,nn,{enumerable:!0,configurable:!0,writable:!0,value:tn}):_e[nn]=tn,xt=(_e,nn)=>{for(var tn in nn||(nn={}))xn.call(nn,tn)&&Ct(_e,tn,nn[tn]);if(Nn)for(var tn of Nn(nn))Ot.call(nn,tn)&&Ct(_e,tn,nn[tn]);return _e},Bt=(_e,nn)=>Ci(_e,an(nn)),Rt=(_e,nn,tn)=>new Promise((Ln,ni)=>{var di=qi=>{try{Mi(tn.next(qi))}catch(oo){ni(oo)}},si=qi=>{try{Mi(tn.throw(qi))}catch(oo){ni(oo)}},Mi=qi=>qi.done?Ln(qi.value):Promise.resolve(qi.value).then(di,si);Mi((tn=tn.apply(_e,nn)).next())}),se=({title:_e="\u5934\u6B4CAI",placeholder:nn,hideUpload:tn,hideInputBox:Ln,aiIcon:ni=te,userIcon:di=Ve,dragIcon:si=fn,children:Mi,fetchUrl:qi,fetchData:oo={},extraAnswerAction:pr,showDefaultTips:Ho=!0,onOpen:mr,onClose:so,loadingOption:xo,showPreference:Yr=!1,initMessage:Cr,customRequest:No,visible:yi,width:wt=1200,isCheckRestrictNumber:As=!1,headNode:Gn,headFunctionNode:Ri,showRedraw:Io,showEdit:Jo,promptPropName:Or="prompt",topPercentage:To,showSwitchingModel:jr=!1,showImageGenerator:De=!1,showLookHistory:ye=!1,fetchListObject:he,customPreference:Dn,customDataNode:ci,showAddSession:hi,historyId:Ze,draggableExtraNode:En,drawerExtraNode:Xi,menuExtraFunctionNode:co,showSceneAwareness:ao=!1})=>{var ee,yn;const[_n,fo]=(0,kt.useState)(!1),[we,Je]=(0,kt.useState)("qwen-max"),[Si,Qi]=(0,kt.useState)([]),[Zi,$n]=(0,kt.useState)([]),[ei,Wn]=(0,kt.useState)(!1),[lo,ur]=(0,kt.useState)(!1),[Fo,Re]=(0,kt.useState)(!1),[vo,uo]=(0,kt.useState)([]),[ji,Me]=(0,kt.useState)(""),[gn,Hn]=(0,kt.useState)(0),[Zn,Kn]=(0,kt.useState)(void 0),[Li,no]=(0,kt.useState)(!1),[zi,Gi]=(0,kt.useState)(null),[io,ze]=(0,kt.useState)(""),Wi=(0,kt.useRef)(),Ie=(0,kt.useRef)(null),Yi=(0,kt.useRef)(null),[zr,Ko]=(0,kt.useState)(!1),[_r,Xo]=(0,kt.useState)(!1),[Bi,Po]=(0,kt.useState)(!1),[Pa,hr]=(0,kt.useState)(!1),[An,jt]=(0,kt.useState)(0),Dr=(0,kt.useRef)(null),$r=(0,kt.useRef)(!1),Nl=(0,kt.useRef)(null),[wa,Tl]=(0,kt.useState)(void 0),[Pu,td]=(0,kt.useState)(!0),[ed,wo]=(0,kt.useState)(wt-28),[Qo,sa]=(0,kt.useState)(!1),[li,Un]=(0,kt.useState)(!0),[Xe,Jn]=(0,kt.useState)([]),bi=(0,kt.useRef)([]),Bo=(0,kt.useRef)(null),Zo=(0,kt.useRef)(null),Wo=(0,kt.useRef)(!1),vr=ed-22,qo=ji==null?void 0:ji.split(` -`).length,{onAdd:Ca,onGetList:zs,onListClick:Fl,onListDelete:de,onListDealData:Es}=he||{},wu=50,ja=10,Cu={maxCount:wu,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:Si,multiple:!0,accept:".doc,.docx,.md,.txt,.pdf,.xlsx,.xls",beforeUpload:Ge=>Rt(void 0,null,function*(){var ii,xi,Ti,_i;const Ai=(_i=(Ti=(xi=(ii=Ge==null?void 0:Ge.name)==null?void 0:ii.split("."))==null?void 0:xi.slice(-1))==null?void 0:Ti[0])==null?void 0:_i.toLowerCase(),bo=["doc","docx","md","pdf","txt","xlsx","xls"].includes(Ai);return Ge.size==0?(ue.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),xe.default.LIST_IGNORE):bo?Ge.size/1024/1024>100?(ue.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u5236100MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),xe.default.LIST_IGNORE):!0:(ue.ZP.warning("\u76EE\u524D\u652F\u6301txt\u3001md\u3001doc\u3001docx\u3001pdf\u3001xlsx\u3001xls\u6587\u4EF6"),xe.default.LIST_IGNORE)}),onChange:({fileList:Ge})=>{Qi(Ge)},action:`${(ee=dn.Z)==null?void 0:ee.API_SERVER}/api/intelligent_imports/upload_file.json`},_o={maxCount:ja,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:Zi,multiple:!0,accept:".jpg,.png,",beforeUpload:Ge=>{var ii,xi,Ti,_i;const Ai=(_i=(Ti=(xi=(ii=Ge==null?void 0:Ge.name)==null?void 0:ii.split("."))==null?void 0:xi.slice(-1))==null?void 0:Ti[0])==null?void 0:_i.toLowerCase(),bo=["jpg","png"].includes(Ai);return Ge.size==0?(ue.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),xe.default.LIST_IGNORE):bo?Ge.size/1024/1024>10?(ue.ZP.warning("\u4E0A\u4F20\u7684\u56FE\u7247\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),xe.default.LIST_IGNORE):!0:(ue.ZP.warning("\u76EE\u524D\u652F\u6301jpg\u3001png"),xe.default.LIST_IGNORE)},onChange:({fileList:Ge})=>{$n(Ge)},action:`${(yn=dn.Z)==null?void 0:yn.API_SERVER}/api/ai/generals/update_file.json`};(0,kt.useEffect)(()=>{if(!vo.length||!Wi.current)return;const Ge=vo[vo.length-1];Ge!=null&&Ge.loading&&(Wi.current.scrollTop=Wi.current.scrollHeight)},[vo.length]),(0,kt.useEffect)(()=>{if(!Wi.current||!Dr.current)return;const Ge=new IntersectionObserver(([ii])=>{td(ii.isIntersecting)},{root:Wi.current,rootMargin:"70px",threshold:0});return Ge.observe(Dr.current),()=>{Dr.current&&Ge.unobserve(Dr.current)}},[Wi.current,Dr.current]),(0,kt.useEffect)(()=>{if(!zr)return;const Ge=Wi.current,ii=Nl.current;$r.current=!1;let xi=Ge.scrollTop;const Ti=()=>{const{scrollTop:Ai,scrollHeight:Oo,clientHeight:bo}=Ge;Ai>xi?Ai+bo>=Oo-50&&(Ge.scrollTop=Ge.scrollHeight,$r.current=!1):Ai{$r.current||(Ge.scrollTop=Ge.scrollHeight)});return _i.observe(ii),()=>{var Ai;_i.unobserve(ii),(Ai=Ge==null?void 0:Ge.removeEventListener)==null||Ai.call(Ge,"scroll",Ti)}},[zr]),(0,kt.useEffect)(()=>{!zr&&bi.current.length&&(uo([...vo,...bi.current]),bi.current=[])},[zr]),(0,kt.useEffect)(()=>{if(!Wi.current)return;const Ge=new ResizeObserver(()=>{wo(Wi.current.offsetWidth)});return Ge.observe(Wi.current),()=>{Wi.current&&Ge.unobserve(Wi.current)}},[Wi.current]),(0,kt.useEffect)(()=>{typeof yi=="boolean"&&fo(yi)},[yi]),(0,kt.useEffect)(()=>{var Ge;if(Ie.current&&zi!==null){Ie.current.focus();const ii=(Ge=Ie.current.resizableTextArea)==null?void 0:Ge.textArea;ii&&(ii.selectionStart=ii.selectionEnd=ii.value.length)}},[zi]),(0,kt.useEffect)(()=>{qo<5&&no(!1)},[qo]),(0,kt.useEffect)(()=>{_n&&Cr&&(uo(_a(Cr)),Wn(!0),jn(Cr,{history:[]})),_n&&(ts(),Ze?Bl(Ze):hi&&!wa&&Js()),_n||$a()},[_n]);const _a=(Ge="",ii=[],xi=[])=>{const Ti=Date.now();return[{text:Ge,key:Ti,sender:"user",fileList:ii,imageList:xi,show:!0},{loading:!0,key:Ti,sender:"AI",show:!0,model:we,imageGenerator:Bi,thinkingEnabled:_r}]},$a=()=>{ze(""),Gi(null),Qi([]),$n([]),Me("")},yo=()=>{if(mr){mr({chatData:vo,setChatData:uo,setLoading:Wn,getData:jn,renderChatItems:_a,handleAdd:Js,identifier:wa});return}fo(!0)},Ar=()=>{if(Un(!0),so){so();return}fo(!1)},Mu=()=>{no(!Li)},ts=()=>Rt(void 0,null,function*(){if(!As)return;const Ge=yield(0,Ue.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});(Ge==null?void 0:Ge.status)===0&&(Ge==null?void 0:Ge.total_number)!==-1&&(Hn((Ge==null?void 0:Ge.total_number)-(Ge==null?void 0:Ge.remaining_number)),Kn(Ge==null?void 0:Ge.total_number))}),hh=()=>{Te.default.info({title:"\u63D0\u793A",icon:null,okText:"\u6211\u77E5\u9053\u4E86",width:510,centered:!0,content:kt.createElement("div",null,kt.createElement("div",{style:{color:"#FA6400"}},"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),kt.createElement("div",{className:"c-grey-333 mt5"},"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F\u7528",Zn,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))})},aa=Ge=>Ge.reduce((xi,Ti)=>{if(Ti.sender==="user"){const _i=Ge.find(Ai=>Ai.key===Ti.key&&Ai.sender==="AI");_i&&(_i!=null&&_i.text)&&!(_i!=null&&_i.error)&&xi.push({question:Ti.text,answer:_i.text})}return xi},[]),jn=(...Ge)=>Rt(void 0,[...Ge],function*(ii="",xi={},Ti=vo){if(No&&(yield No({mes:ii,setChatData:uo,fileList:Si,body:xi,checkNum:ts,setLoading:Wn,bodyChatData:Ti,setTyping:Ko,setImageGenerator:Po,renderChatItems:_a})),!No){const _i=Si==null?void 0:Si.map(Mr=>{var Ts;return(Ts=Mr==null?void 0:Mr.response)==null?void 0:Ts.file_id}),Ai=Zi==null?void 0:Zi.map(Mr=>{var Ts;return(Ts=Mr==null?void 0:Mr.response)==null?void 0:Ts.data}),Oo=xi.history||aa(Ti),bo=xt(xt({identifier:wa,response_mode:"streaming",model:we,scene_awareness:Pa,thinking_enabled:_r,image_generator:Bi,file_ids:_i,image_list:Ai,history:Oo,[Or]:ii},oo),xi),ns=Object.fromEntries(Object.entries(bo).filter(([Mr,Ts])=>Ts!==void 0));Yi.current=new Vn.Z(dn.Z.API_SERVER+qi,ns),yield new Promise((Mr,Ts)=>{let rr=null,id=null;Yi.current.on("data",gh=>{Ko(!0);const{chunk:{content:ml,type:el,created:Rr,msg:Ss}}=gh,Er=Ss==="error";el==="thinking"&&(rr=rr||Rr,uo(Lr=>[...Lr].map((nl,$l)=>$l===Lr.length-1?Bt(xt({},nl),{reasoning:(nl.reasoning||"")+ml,loading:!1,hideAnswer:!0,error:Er}):nl))),el==="text"&&(id=id||Rr,uo(Lr=>[...Lr].map((nl,$l)=>$l===Lr.length-1?Bt(xt({},nl),{text:(nl.text||"")+ml,loading:!1,startTime:rr,endTime:id,error:Er}):nl)))}),Yi.current.on("done",()=>{Mr()}),Yi.current.on("error",()=>{const gh="\u62B1\u6B49\uFF0C\u6211\u521A\u521A\u9047\u5230\u4E86\u4E00\u70B9\u95EE\u9898\uFF0C\u6CA1\u80FD\u5B8C\u6210\u60A8\u7684\u8BF7\u6C42\u3002\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\u4E00\u6B21\uFF0C\u6216\u8005\u8054\u7CFB\u6280\u672F\u652F\u6301\u5E2E\u5FD9\u89E3\u51B3!";uo(ml=>[...ml].map((el,Rr)=>Rr===ml.length-1?Bt(xt({},el),{text:gh,loading:!1,error:!0}):el)),Mr()}),Yi.current.on("cancelled",()=>{Mr()}),Yi.current.startStream()})}ts(),Wn(!1)}),Dg=Ge=>{Me(Ge.target.value)},nd=(Ge,ii)=>{if($a(),Wn(!0),Ge==="edit"){bi.current=vo.slice(ii+2);const xi=vo.splice(ii),{fileList:Ti,imageList:_i}=(xi==null?void 0:xi[0])||{},Ai=Ti.map(ns=>{var Mr;return(Mr=ns.response)==null?void 0:Mr.file_id}),Oo=_i.map(ns=>{var Mr;return(Mr=ns.response)==null?void 0:Mr.data}),bo={history:aa(vo),file_ids:Ai,image_list:Oo,edit:!0};uo([...vo,..._a(io,Ti,_i)]),jn(io,bo,vo)}if(Ge==="redraw"){bi.current=vo.slice(ii+1);const xi=vo.splice(ii-1),{text:Ti,fileList:_i,imageList:Ai}=(xi==null?void 0:xi[0])||{},Oo=_i.map(Mr=>{var Ts;return(Ts=Mr.response)==null?void 0:Ts.file_id}),bo=Ai.map(Mr=>{var Ts;return(Ts=Mr.response)==null?void 0:Ts.data}),ns={history:aa(vo),file_ids:Oo,image_list:bo,edit:!0};uo([...vo,..._a(Ti,_i,Ai)]),jn(Ti,ns,vo)}},za=()=>{if(ji.trim()!==""){$a(),Wn(!0);const Ge=Si.filter(xi=>xi.status==="done"),ii=Zi.filter(xi=>xi.status==="done");uo([...vo,..._a(ji,Ge,ii)]),jn(ji)}},Gd=Ge=>{if(Ge.shiftKey){if(Ge.key==="Enter")return}else if(Ge.key==="Enter"){if(Ge.preventDefault(),fl||Wo.current)return;za()}},Hd=(Ge,ii)=>{let xi=!1;Jo===!0?xi=!0:Jo==="last"&&(xi=vo.reduce((Oo,bo,ns)=>bo.sender==="user"?ns:Oo,-1)===ii);const Ti=ii===zi,_i=[...(Ge==null?void 0:Ge.fileList)||[],...(Ge==null?void 0:Ge.imageList)||[]];return kt.createElement("div",{className:ce.li,style:{width:vr}},kt.createElement("div",{className:ce.avatarIcon},kt.createElement("img",{className:ce.img,src:di})),kt.createElement("div",{className:ce.content},!!(_i!=null&&_i.length)&&kt.createElement("div",{className:ce.fileWrap},_i==null?void 0:_i.map((Ai,Oo)=>{var bo,ns;return kt.createElement("div",{key:Oo,className:ce.file},kt.createElement("img",{src:Yt(90034)(`./${((ns=(bo=Ai==null?void 0:Ai.name)==null?void 0:bo.split("."))==null?void 0:ns.pop())||"txt"}.png`),width:20,className:"mr10"}),kt.createElement("aside",null,kt.createElement(ge.Z,{title:Ai==null?void 0:Ai.name},kt.createElement("div",{className:ce.fileName},Ai==null?void 0:Ai.name)),kt.createElement("div",{className:"c-grey-999 font12"},(0,on.RD)(Ai==null?void 0:Ai.size))))})),kt.createElement("div",{className:ce.borderBox},Ti?kt.createElement(Ae.default.TextArea,{value:io,ref:Ie,autoSize:!0,placeholder:"\u8BF7\u8F93\u5165",bordered:!1,onChange:Ai=>ze(Ai.target.value)}):kt.createElement("div",{className:ce.text},Ge==null?void 0:Ge.text)),Ti?kt.createElement("div",{className:ce.action},kt.createElement(qt.ZP,{onClick:()=>{ze(""),Gi(null)},size:"small"},"\u53D6\u6D88"),kt.createElement(qt.ZP,{disabled:!io.trim(),onClick:()=>nd("edit",ii),type:"primary",size:"small"},"\u786E\u8BA4")):kt.createElement("div",{className:ce.action},kt.createElement(Sn.CopyToClipboard,{text:(Ge==null?void 0:Ge.text)||"",onCopy:()=>ue.ZP.success("\u590D\u5236\u6210\u529F")},kt.createElement(ge.Z,{title:"\u590D\u5236"},kt.createElement("i",{className:"iconfont icon-fuzhi8 font13"}))),xi&&!ei&&kt.createElement(ge.Z,{title:"\u7F16\u8F91"},kt.createElement("i",{onClick:()=>{Gi(ii),ze((Ge==null?void 0:Ge.text)||"")},className:"iconfont icon-bianji10 font14"})))))},cn=(Ge,ii)=>{let xi=!1;Io===!0?xi=!0:Io==="last"&&(xi=vo.reduce((Ai,Oo,bo)=>Oo.sender==="AI"?bo:Ai,-1)===ii);let Ti="";return Ge!=null&&Ge.source?Ti=Ge==null?void 0:Ge.source:(Ge==null?void 0:Ge.model)==="deepseek-r1"?Ti="\u7531deepseek\u751F\u6210":(Ge==null?void 0:Ge.model)==="qwen-max"&&(Ti="\u7531\u901A\u4E49\u5343\u95EE\u751F\u6210"),kt.createElement("div",{className:ce.li,style:{width:vr}},kt.createElement("div",{className:ce.avatarIcon},kt.createElement("img",{className:ce.img,src:ni})),kt.createElement("div",{className:ce.content},kt.createElement("div",{className:ce.borderBox},Ge.loading&&kt.createElement(kt.Fragment,null,Ge!=null&&Ge.imageGenerator?kt.createElement("div",{className:ce.loadingPic},"\u6B63\u5728\u751F\u6210\u4E2D",kt.createElement("div",{className:"ai-loading"})):!(Ge!=null&&Ge.thinkingEnabled)&&kt.createElement("div",null,kt.createElement("div",{className:ce.loading},kt.createElement("div",{className:ce.dot}),kt.createElement("div",{className:ce.dot}),kt.createElement("div",{className:ce.dot})),kt.createElement("div",{style:{marginTop:10,color:"#9096A3"}},(xo==null?void 0:xo.text)||"\u8BF7\u8010\u5FC3\u7B49\u5F85\uFF0C\u76EE\u524D\u9AD8\u5CF0\u671F\u4F53\u9A8C\u4EBA\u6570\u8FC7\u591A\uFF0C\u6211\u4EEC\u5DF2\u8BB0\u5F55\u4E0B\u60A8\u7684\u9700\u6C42\uFF0C\u7A0D\u540E\u5C06\u81EA\u52A8\u4E3A\u60A8\u751F\u6210\u7B54\u6848\u3002"))),(Ge==null?void 0:Ge.thinkingEnabled)&&kt.createElement(vt,{time:Ge==null?void 0:Ge.time,cancelIndex:An,loading:Ge.loading,streamingStatus:!(Ge!=null&&Ge.text),onFinish:()=>{jt(0),uo(_i=>[..._i].map((Ai,Oo)=>Oo===_i.length-1?Bt(xt({},Ai),{hideAnswer:!1,time:Ai.startTime?Ai.endTime-Ai.startTime:null}):Ai))},value:Ge==null?void 0:Ge.reasoning}),!!(Ge!=null&&Ge.text)&&!Ge.hideAnswer&&kt.createElement(et.Z,{cancelIndex:An,streamingStatus:ei,loadImage:!!(Ge!=null&&Ge.imageGenerator),onFinish:()=>Rt(void 0,null,function*(){jt(0),setTimeout(()=>Ko(!1),0)}),value:Ge==null?void 0:Ge.text})),!!(Ge!=null&&Ge.text)&&Ti&&kt.createElement("div",{className:ce.source},Ti),kt.createElement("div",{className:ce.action},pr==null?void 0:pr(Ge,ii,{onMenuClick:Bl}),kt.createElement(Sn.CopyToClipboard,{text:String((Ge==null?void 0:Ge.text)||""),onCopy:()=>ue.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},kt.createElement(ge.Z,{title:"\u590D\u5236"},kt.createElement("i",{className:"iconfot icon-fuzhi8 font13"}))),Yr&&!ei&&kt.createElement(kt.Fragment,null,kt.createElement(ge.Z,{title:"\u559C\u6B22"},kt.createElement("i",{style:Ge!=null&&Ge.like?{color:"#FA8D30"}:{},onClick:()=>$o("like",!(Ge!=null&&Ge.like),ii),className:"iconfot icon-yijiejue font15"})),kt.createElement(ge.Z,{title:"\u4E0D\u559C\u6B22"},kt.createElement("i",{style:Ge!=null&&Ge.dislike?{color:"#e86d7c"}:{},onClick:()=>$o("dislike",!(Ge!=null&&Ge.dislike),ii),className:"iconfot icon-weijiejuezhengchang font15"}))),xi&&!ei&&kt.createElement(ge.Z,{title:"\u91CD\u65B0\u751F\u6210"},kt.createElement("i",{onClick:()=>nd("redraw",ii),className:"iconfot icon-gengxin-genghuan-tihuan"})))))},$o=(Ge,ii,xi)=>Rt(void 0,null,function*(){if(Dn){const Ti=vo.slice(0,xi+1),Ai=aa(Ti).length;yield Dn({type:Ge,value:ii,index:xi,identifier:wa,objectIndex:Ai})}uo(Ti=>(Ti[xi][Ge]=ii,ii&&(Ti[xi][Ge==="like"?"dislike":"like"]=!1),[...Ti]))}),yr=()=>{var Ge,ii;jt(1),(ii=(Ge=Yi.current)==null?void 0:Ge.cancelRequest)==null||ii.call(Ge),Wn(!1),Ko(!1)},Js=()=>Rt(void 0,null,function*(){var Ge,ii,xi;(ii=(Ge=Yi.current)==null?void 0:Ge.cancelRequest)==null||ii.call(Ge),$a(),uo([]),Wn(!0);const Ti=yield Ca();(Ti==null?void 0:Ti.status)===0&&Tl((xi=Ti==null?void 0:Ti.data)==null?void 0:xi.identifier),Wn(!1),Ko(!1)}),_l=()=>Rt(void 0,null,function*(){var Ge;Re(!0);const ii=yield zs();(ii==null?void 0:ii.status)===0&&Jn(((Ge=ii==null?void 0:ii.data)==null?void 0:Ge.list)||[]),Re(!1)}),Bl=(...Ge)=>Rt(void 0,[...Ge],function*(ii=wa){var xi,Ti,_i,Ai;(Ti=(xi=Yi.current)==null?void 0:xi.cancelRequest)==null||Ti.call(xi),$a(),ur(!0);const Oo=yield Fl(ii);if(Oo.status===0){const bo=Es(((_i=Oo==null?void 0:Oo.data)==null?void 0:_i.messages)||[]);uo(bo),ur(!1),Tl((Ai=Oo==null?void 0:Oo.data)==null?void 0:Ai.identifier);return}uo([]),ur(!1)}),gi=(Ge,ii)=>Rt(void 0,null,function*(){(yield de(Ge)).status===0&&(ue.ZP.success("\u5220\u9664\u6210\u529F"),ii===wa&&Js(),_l())}),dh=()=>kt.createElement("div",{className:ce.menuWarp},kt.createElement("h4",null,"\u5386\u53F2\u5BF9\u8BDD"),kt.createElement(Ce.Z,{spinning:Fo},!Xe.length&&kt.createElement(fe.Z,{style:{width:250,paddingBottom:30},image:fe.Z.PRESENTED_IMAGE_SIMPLE}),!!Xe.length&&kt.createElement("div",{className:ce.menu},Xe.map(function(Ge,ii){return kt.createElement("aside",{className:Nt()(wa===Ge.identifier&&ce.active),key:Ge.id,onClick:()=>Bl(Ge.id)},kt.createElement("div",{className:ce.menuText},kt.createElement(ge.Z,{title:Ge==null?void 0:Ge.question},kt.createElement("span",null,Ge==null?void 0:Ge.question)),co&&co(Ge)),kt.createElement("div",{className:ce.menuDel,onClick:xi=>xi.stopPropagation()},kt.createElement(pe.Z,{title:"\u63D0\u793A",description:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u672C\u6761\u5BF9\u8BDD\u5417\uFF1F",onConfirm:()=>gi(Ge.id,Ge.identifier),okText:"\u786E\u8BA4",zIndex:1100,cancelText:"\u53D6\u6D88"},kt.createElement("i",{className:"iconfont icon-shanchu14 delete-hover font14"}))))})))),tl=Ge=>{if(Ge==="file"){if(Zi.length){Te.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4\u8986\u76D6",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5DF2\u5B58\u5728\u56FE\u7247\uFF0C\u4E0A\u4F20\u6587\u4EF6\u540E\u56FE\u7247\u5C06\u4F1A\u88AB\u8986\u76D6?",onOk:()=>{$n([]),Bo.current.upload.uploader.fileInput.click()}});return}Bo.current.upload.uploader.fileInput.click()}if(Ge==="image"){if(Si.length){Te.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4\u8986\u76D6",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5DF2\u5B58\u5728\u6587\u4EF6\uFF0C\u4E0A\u4F20\u56FE\u7247\u540E\u6587\u4EF6\u5C06\u4F1A\u88AB\u8986\u76D6?",onOk:()=>{Qi([]),Zo.current.upload.uploader.fileInput.click()}});return}Zo.current.upload.uploader.fileInput.click()}},Rs=[{key:"file",disabled:Si.length>=wu,label:kt.createElement(ge.Z,{placement:"right",title:kt.createElement("div",null,kt.createElement("b",null,"\u4E0A\u4F20\u9644\u4EF6\uFF08\u4EC5\u8BC6\u522B\u6587\u5B57\uFF09"),kt.createElement("div",null,"\u6700\u591A 50 \u4E2A\uFF0C\u6BCF\u4E2A 100 MB\uFF0C\u652F\u6301\u5404\u7C7B\u578B\u6587\u6863"))},kt.createElement("span",null,kt.createElement("i",{className:"iconfont icon-fujian3 font14 mr5"}),"\u4E0A\u4F20\u6587\u6863"))},we!=="deepseek-r1"&&{key:"image",disabled:Zi.length>=ja,label:kt.createElement(ge.Z,{placement:"right",title:"\u652F\u6301\u4E0D\u8D85\u8FC710M\u7684PNG/JPG\u56FE\u7247\uFF0C\u6700\u591A10\u4E2A"},kt.createElement("span",null,kt.createElement("i",{className:"iconfont icon-tupianshangchuan font14 mr5"}),"\u4E0A\u4F20\u56FE\u7247"))}].filter(Boolean),es=[...Si,...Zi],fl=es.some(Ge=>Ge.status==="uploading")||ei||zr,pl=gn>=Zn,Ns=tn||Si.length>=wu||Zi.length>=ja,Ma=Bi||_r||Pa||!!es.length;return console.log(es,"fileAndImageList"),kt.createElement("div",null,Mi?kt.createElement("div",{onClick:yo},Mi):kt.createElement(kn,{draggableExtraNode:En,src:si,onClick:yo,topPercentage:To}),kt.createElement(le.Z,{open:_n,width:Qo?"100%":wt,afterOpenChange:Ge=>{Ge&&Un(!1)},push:!1,contentWrapperStyle:li?{}:{transition:"none"},extra:kt.createElement("div",{className:ce.head},Xi,jr&&kt.createElement(ln,{value:we,onChange:Ge=>{Xo(!1),Po(!1),Je(Ge),$n([]),Qi([])}}),ye&&kt.createElement(kt.Fragment,null,kt.createElement(Be.Z,{dropdownRender:dh,onOpenChange:Ge=>{Ge&&_l()},placement:"bottomLeft",arrow:!0},kt.createElement("div",{className:ce.headBtn},kt.createElement("i",{className:"icon-lishiduihua1 font14 mr10"}),"\u5386\u53F2\u5BF9\u8BDD"))),hi&&kt.createElement(kt.Fragment,null,kt.createElement("div",{className:ce.headBtn,onClick:Js},kt.createElement("i",{className:"icon-xinjianduihua font14 mr10"}),"\u65B0\u5EFA\u5BF9\u8BDD")),kt.createElement(ge.Z,{title:Qo?"\u9000\u51FA\u5168\u5C4F":"\u5168\u5C4F"},kt.createElement("div",{className:ce.headBtn,style:{padding:"0 12px"},onClick:()=>sa(!Qo)},Qo&&kt.createElement("i",{className:"iconfont icon-tuichuquanping3"}),!Qo&&kt.createElement("i",{className:"iconfont icon-quanping4"})))),title:kt.createElement("span",{className:"c-grey-333 font16"},_e),onClose:Ar,bodyStyle:{paddingRight:4}},kt.createElement("div",{className:Nt()(ce.wrap,_n&&"body-overflow-hidden")},kt.createElement("div",{ref:Wi,className:ce.chatContainer},Ho&&kt.createElement("div",{className:`${ce.li} mb20`,style:{width:vr}},kt.createElement("div",{className:ce.avatarIcon},kt.createElement("img",{className:ce.img,src:ni})),kt.createElement("div",{className:ce.content},kt.createElement("div",{className:ce.borderBox},Gn,Ri==null?void 0:Ri({isDisabledNum:pl,checkNumModal:hh,checkNum:ts,onClose:Ar,setChatData:uo,setLoading:Wn,getData:jn,clearStatus:$a,typing:zr,setImageGenerator:Po,renderChatItems:_a,setSceneAwareness:hr})))),kt.createElement("div",{ref:Nl},kt.createElement(Ce.Z,{spinning:lo,className:"mt20"},vo==null?void 0:vo.map((Ge,ii)=>kt.createElement(kt.Fragment,{key:Ge.key+ii},Ge.show&&kt.createElement(kt.Fragment,null,Ge.sender==="user"&&Hd(Ge,ii),Ge.sender==="AI"&&cn(Ge,ii),ci&&!["AI","user"].includes(Ge.sender)&&ci(Ge,ii,{width:vr})))))),!Pu&&kt.createElement("div",{className:ce.backBottom,onClick:()=>{Wi.current.scrollTop=Wi.current.scrollHeight}},kt.createElement("i",{className:"iconfont icon-huidaodibu"})),kt.createElement("div",{ref:Dr})),!Ln&&kt.createElement("div",{className:Nt()(ce.footerContainer,Li&&ce.full,Ma&&ce.footerContainerSelected)},kt.createElement("div",{className:ce.btnWrp},ao&&kt.createElement(ge.Z,{title:"\u667A\u80FD\u611F\u77E5\u5F53\u524D\u60C5\u5883\uFF0C\u63D0\u4F9B\u9488\u5BF9\u6027\u89E3\u7B54"},kt.createElement("div",{onClick:()=>hr(!Pa),className:Nt()(ce.btn,Pa&&ce.btnActive)},kt.createElement("i",{className:"iconfont icon-changjingganzhi mr10 font12"}),"\u573A\u666F\u611F\u77E5")),we==="deepseek-r1"&&kt.createElement(ge.Z,{title:"\u8C03\u7528\u65B0\u6A21\u578B DeepSeek-R1\uFF0C\u89E3\u51B3\u63A8\u7406\u95EE\u9898"},kt.createElement("div",{onClick:()=>Xo(!_r),className:Nt()(ce.btn,_r&&ce.btnActive)},kt.createElement("i",{className:"iconfont icon-shendusikao mr10 font12"}),"\u6DF1\u5EA6\u601D\u8003\uFF08R1\uFF09")),De&&we==="qwen-max"&&kt.createElement("div",{onClick:()=>Po(!Bi),className:Nt()(ce.btn,Bi&&ce.btnActive)},kt.createElement("i",{className:"iconfont icon-shangchuantupian2 mr10 font12"}),"\u56FE\u50CF\u751F\u6210"),es.map(Ge=>kt.createElement("div",{key:Ge.uid},(Ge==null?void 0:Ge.status)==="uploading"&&kt.createElement(Ce.Z,{indicator:kt.createElement(vi.Z,{spin:!0}),className:"mr10",size:"small",spinning:!0}),kt.createElement("span",{title:Ge==null?void 0:Ge.name,className:"mr10"},(0,on.Pq)(Ge.name,20)),kt.createElement("i",{onClick:()=>{Qi(ii=>ii.filter(xi=>xi.uid!==Ge.uid)),$n(ii=>ii.filter(xi=>xi.uid!==Ge.uid))},className:"iconfont current icon-shanchu15 delete-hover c-red-ee4 font12"})))),kt.createElement(ge.Z,{title:pl&&kt.createElement("div",null,kt.createElement("div",null,"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),kt.createElement("div",null,"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F",Zn,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))},kt.createElement("div",{className:Nt()(ce.inputContainer,qo>4&&ce.lineFour,pl&&ce.disabledInput)},kt.createElement(xe.default,xt({ref:Bo},Cu)),kt.createElement(xe.default,xt({ref:Zo},_o)),kt.createElement(Be.Z,{className:`${Ns&&"hide"}`,menu:{items:Rs,onClick:Ge=>tl(Ge.key)},placement:"top"},kt.createElement(qt.ZP,{className:ce.uploadBtn,icon:kt.createElement(Qn.Z,{style:{fontSize:18,color:"#FFF"}})})),kt.createElement(Ae.default.TextArea,{rows:qo>4?4:qo,placeholder:nn||"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u95EE\u9898\u5427,Shift+Enter\u6362\u884C\uFF5E",value:ji,bordered:!1,style:Ns?{paddingLeft:0,marginLeft:0}:{},onChange:Dg,onPressEnter:Gd,onCompositionStart:()=>{Wo.current=!0},onCompositionEnd:()=>{Wo.current=!1}}),zr?kt.createElement(ge.Z,{title:"\u505C\u6B62\u751F\u6210"},kt.createElement("div",{className:`iconfont icon-tingzhihuida ${ce.cancelBtn}`,onClick:yr})):kt.createElement(qt.ZP,{className:(ji==null?void 0:ji.trim())===""?ce.sendBtnDisabled:ce.sendBtn,icon:kt.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:fl,onClick:za}),qo>4&&kt.createElement("span",{className:ce.fullIcon,onClick:Mu},Li&&kt.createElement("span",{className:"iconfont icon-shousuo"}),!Li&&kt.createElement("span",{className:"iconfont icon-zhankai"}))))))))}},9165:function(Ye,pn,Yt){"use strict";Yt.d(pn,{t:function(){return Be}});var kt=Yt(59301),ue=Yt(3113),xe={buttonFixed:"buttonFixed___vyq30",button:"button___hxmYv",buttonWrap:"buttonWrap___uK8dl"},Te=Yt(92310),ge=Yt.n(Te),Ae=Object.defineProperty,qt=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,pe=(je,Nt,et)=>Nt in je?Ae(je,Nt,{enumerable:!0,configurable:!0,writable:!0,value:et}):je[Nt]=et,le=(je,Nt)=>{for(var et in Nt||(Nt={}))Ce.call(Nt,et)&&pe(je,et,Nt[et]);if(qt)for(var et of qt(Nt))fe.call(Nt,et)&&pe(je,et,Nt[et]);return je};const Be=({cancelText:je="\u53D6\u6D88",okText:Nt="\u786E\u5B9A",loading:et=!1,hasOkBtn:nt=!0,hasCancelBtn:gt=!0,okButtonProps:lt={},onCancel:pt=()=>{},onOk:vt=()=>{},className:Lt=""})=>kt.createElement("div",{className:ge()(xe.buttonFixed,Lt)},kt.createElement("div",{className:xe.buttonWrap},gt&&kt.createElement(ue.ZP,{size:"middle",className:`${xe.button} mr20`,onClick:pt},je),nt&&kt.createElement(ue.ZP,le({size:"middle",type:"primary",className:`${xe.button} mr20`,loading:et,onClick:vt},lt),Nt)))},16406:function(Ye,pn,Yt){"use strict";Yt.d(pn,{Z:function(){return xn}});var kt=Yt(59301),ue={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},xe=Yt(92310),Te=Yt.n(xe),ge=Yt(71418);var Ae=function(Ot,Ct){return(Ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(xt,Bt){xt.__proto__=Bt}||function(xt,Bt){for(var Rt in Bt)Object.prototype.hasOwnProperty.call(Bt,Rt)&&(xt[Rt]=Bt[Rt])})(Ot,Ct)};function qt(Ot,Ct){function xt(){this.constructor=Ot}Ae(Ot,Ct),Ot.prototype=Ct===null?Object.create(Ct):(xt.prototype=Ct.prototype,new xt)}function Ce(Ot,Ct,xt,Bt){return new(xt||(xt=Promise))(function(Rt,At){function se(tn){try{nn(Bt.next(tn))}catch(Ln){At(Ln)}}function _e(tn){try{nn(Bt.throw(tn))}catch(Ln){At(Ln)}}function nn(tn){var Ln;tn.done?Rt(tn.value):(Ln=tn.value,Ln instanceof xt?Ln:new xt(function(ni){ni(Ln)})).then(se,_e)}nn((Bt=Bt.apply(Ot,Ct||[])).next())})}function fe(Ot,Ct){var xt,Bt,Rt,At,se={label:0,sent:function(){if(1&Rt[0])throw Rt[1];return Rt[1]},trys:[],ops:[]};return At={next:_e(0),throw:_e(1),return:_e(2)},typeof Symbol=="function"&&(At[Symbol.iterator]=function(){return this}),At;function _e(nn){return function(tn){return function(Ln){if(xt)throw new TypeError("Generator is already executing.");for(;se;)try{if(xt=1,Bt&&(Rt=2&Ln[0]?Bt.return:Ln[0]?Bt.throw||((Rt=Bt.return)&&Rt.call(Bt),0):Bt.next)&&!(Rt=Rt.call(Bt,Ln[1])).done)return Rt;switch(Bt=0,Rt&&(Ln=[2&Ln[0],Rt.value]),Ln[0]){case 0:case 1:Rt=Ln;break;case 4:return se.label++,{value:Ln[1],done:!1};case 5:se.label++,Bt=Ln[1],Ln=[0];continue;case 7:Ln=se.ops.pop(),se.trys.pop();continue;default:if(Rt=se.trys,!((Rt=Rt.length>0&&Rt[Rt.length-1])||Ln[0]!==6&&Ln[0]!==2)){se=0;continue}if(Ln[0]===3&&(!Rt||Ln[1]>Rt[0]&&Ln[1]Ce.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},kt.createElement("button",null,"\u590D\u5236")),kt.createElement(xe.Z,pt({style:ge.Z,language:on[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},Ue),wn))},img({node:Zt}){var Gt;const He=(Gt=Zt.properties)==null?void 0:Gt.src;return kt.createElement(fe.Z,{src:He,width:320,"data-text":He,onLoad:()=>$t&&setTimeout(()=>Mn(),500)})}}},Fe?ve:`${ve}__`)),[ve])}},19909:function(Ye,pn,Yt){"use strict";Yt.d(pn,{Z:function(){return se}});var kt=Yt(59301),ue=Yt(8591),xe=Yt(54580),Te=Yt(43418),ge=Yt(6848),Ee=Yt(92832),qt=Yt(3113),Ce=Yt(71418),fe=Yt(64165),pe=Yt(14478),le=Yt(43428),Be=Yt(38854),je=Yt(92310),Nt=Yt.n(je),et=Yt(43276),nt={reasoning:"reasoning___S0mKl",btn:"btn____CIJG",content:"content___CIAh9"},gt=Yt(59301),lt=(_e,nn,tn)=>new Promise((Ln,ni)=>{var di=qi=>{try{Mi(tn.next(qi))}catch(oo){ni(oo)}},si=qi=>{try{Mi(tn.throw(qi))}catch(oo){ni(oo)}},Mi=qi=>qi.done?Ln(qi.value):Promise.resolve(qi.value).then(di,si);Mi((tn=tn.apply(_e,nn)).next())}),vt=({value:_e="",streamingStatus:nn,onFinish:tn,cancelIndex:Ln,time:ni,loading:di,loadAll:si})=>{const[Mi,qi]=(0,kt.useState)(""),[oo,pr]=(0,kt.useState)(!0),Ho=(0,kt.useRef)(_e),mr=(0,kt.useRef)(nn),so=(0,kt.useRef)(0),xo=(0,kt.useRef)(null),[Yr,Cr]=(0,kt.useState)(!1),No=70;(0,kt.useEffect)(()=>{mr.current=nn},[nn]),(0,kt.useEffect)(()=>{Ho.current=_e},[_e]),(0,kt.useEffect)(()=>{if(!nn){qi(Ho.current);return}return Cr(!0),xo.current=setInterval(yi,No),()=>{clearInterval(xo.current)}},[]),(0,kt.useEffect)(()=>{Yr&&(qi(Ho.current),clearInterval(xo.current),Cr(!1),tn())},[Ln]);const yi=()=>lt(void 0,null,function*(){const wt=Ho.current[so.current];wt!==void 0?(qi(Es=>Es+wt),so.current++,clearInterval(xo.current),xo.current=setInterval(yi,280/(Ho.current.length-so.current))):mr.current===!1&&(qi(Ho.current),clearInterval(xo.current),Cr(!1),tn())});return gt.createElement("div",{className:`${nt.reasoning} fadeIn animated`},gt.createElement("div",{className:nt.btn,onClick:()=>pr(!oo)},gt.createElement("i",{className:"iconfont icon-shendusikao"}),ni?gt.createElement("span",null,"\u5DF2\u6DF1\u5EA6\u601D\u8003\uFF08\u7528\u65F6 ",ni," \u79D2\uFF09"):gt.createElement("span",null,"\u601D\u8003\u4E2D..."),oo?gt.createElement("b",{className:"iconfont icon-shouqi6"}):gt.createElement("b",{className:"iconfont icon-zhankai6"})),di&>.createElement(Ce.Z,{spinning:!0,className:"mt20"}),oo&&!di&>.createElement("div",{className:nt.content},Mi,Yr?gt.createElement("span",{className:"aiBlink"},"__"):""))},Lt={select:"select___Kt_GE",box:"box___S5_ly",text:"text___dtZDv",itemWrap:"itemWrap___xmw7x",item:"item___io6Bx",active:"active___nHRTI"},Ft=Yt(81327),Wt=Object.defineProperty,Kt=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,$t=(_e,nn,tn)=>nn in _e?Wt(_e,nn,{enumerable:!0,configurable:!0,writable:!0,value:tn}):_e[nn]=tn,ve=(_e,nn)=>{for(var tn in nn||(nn={}))_t.call(nn,tn)&&$t(_e,tn,nn[tn]);if(Kt)for(var tn of Kt(nn))ne.call(nn,tn)&&$t(_e,tn,nn[tn]);return _e};const re=_e=>React.createElement("svg",ve({className:"logo1_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},_e),React.createElement("path",{d:"M1019.407 620.8 891.834 397.781 946.49 293.12a29.099 29.099 0 0 0 6.4-36.395l-70.187-126.592a30.08 30.08 0 0 0-24.576-13.653H597.519L539.194 14.507a27.35 27.35 0 0 0-20.907-14.55H380.644a29.141 29.141 0 0 0-24.618 14.55v5.546L225.806 243.03H100.923a29.184 29.184 0 0 0-25.515 13.654L3.428 384.085a32.768 32.768 0 0 0 0 29.184L132.836 638.08 74.511 740.053a32.768 32.768 0 0 0 0 29.056l66.517 116.566a29.907 29.907 0 0 0 25.515 14.506H427.15l62.848 109.227A30.08 30.08 0 0 0 512.783 1024H660.41a29.141 29.141 0 0 0 24.576-14.55l128.469-224.853h114.773a31.915 31.915 0 0 0 24.662-15.445l66.474-117.419a28.16 28.16 0 0 0 0-30.976l.043.043zm-161.28 14.592L791.61 512.469 518.287 993.963l-74.752-122.88h-273.28l65.621-119.211h139.392L101.86 272.213h143.062L380.687 30.08l68.352 119.253-70.187 122.88H925.54l-69.205 121.942 137.6 241.194H858.17z",fill:"#605BEC"}),React.createElement("path",{d:"m499.983 699.307 174.379-274.731H324.708z",fill:"#605BEC"}));var Oe="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTEwMTkuNDA3IDYyMC44IDg5MS44MzQgMzk3Ljc4MSA5NDYuNDkgMjkzLjEyYTI5LjA5OSAyOS4wOTkgMCAwIDAgNi40LTM2LjM5NWwtNzAuMTg3LTEyNi41OTJhMzAuMDggMzAuMDggMCAwIDAtMjQuNTc2LTEzLjY1M0g1OTcuNTE5TDUzOS4xOTQgMTQuNTA3YTI3LjM1IDI3LjM1IDAgMCAwLTIwLjkwNy0xNC41NUgzODAuNjQ0YTI5LjE0MSAyOS4xNDEgMCAwIDAtMjQuNjE4IDE0LjU1djUuNTQ2TDIyNS44MDYgMjQzLjAzSDEwMC45MjNhMjkuMTg0IDI5LjE4NCAwIDAgMC0yNS41MTUgMTMuNjU0TDMuNDI4IDM4NC4wODVhMzIuNzY4IDMyLjc2OCAwIDAgMCAwIDI5LjE4NEwxMzIuODM2IDYzOC4wOCA3NC41MTEgNzQwLjA1M2EzMi43NjggMzIuNzY4IDAgMCAwIDAgMjkuMDU2bDY2LjUxNyAxMTYuNTY2YTI5LjkwNyAyOS45MDcgMCAwIDAgMjUuNTE1IDE0LjUwNkg0MjcuMTVsNjIuODQ4IDEwOS4yMjdBMzAuMDggMzAuMDggMCAwIDAgNTEyLjc4MyAxMDI0SDY2MC40MWEyOS4xNDEgMjkuMTQxIDAgMCAwIDI0LjU3Ni0xNC41NWwxMjguNDY5LTIyNC44NTNoMTE0Ljc3M2EzMS45MTUgMzEuOTE1IDAgMCAwIDI0LjY2Mi0xNS40NDVsNjYuNDc0LTExNy40MTlhMjguMTYgMjguMTYgMCAwIDAgMC0zMC45NzZsLjA0My4wNDN6bS0xNjEuMjggMTQuNTkyTDc5MS42MSA1MTIuNDY5IDUxOC4yODcgOTkzLjk2M2wtNzQuNzUyLTEyMi44OGgtMjczLjI4bDY1LjYyMS0xMTkuMjExaDEzOS4zOTJMMTAxLjg2IDI3Mi4yMTNoMTQzLjA2MkwzODAuNjg3IDMwLjA4bDY4LjM1MiAxMTkuMjUzLTcwLjE4NyAxMjIuODhIOTI1LjU0bC02OS4yMDUgMTIxLjk0MiAxMzcuNiAyNDEuMTk0SDg1OC4xN3oiIGZpbGw9IiM2MDVCRUMiLz48cGF0aCBkPSJtNDk5Ljk4MyA2OTkuMzA3IDE3NC4zNzktMjc0LjczMUgzMjQuNzA4eiIgZmlsbD0iIzYwNUJFQyIvPjwvc3ZnPg==",me=Object.defineProperty,Fe=Object.getOwnPropertySymbols,Pn=Object.prototype.hasOwnProperty,vn=Object.prototype.propertyIsEnumerable,Mn=(_e,nn,tn)=>nn in _e?me(_e,nn,{enumerable:!0,configurable:!0,writable:!0,value:tn}):_e[nn]=tn,In=(_e,nn)=>{for(var tn in nn||(nn={}))Pn.call(nn,tn)&&Mn(_e,tn,nn[tn]);if(Fe)for(var tn of Fe(nn))vn.call(nn,tn)&&Mn(_e,tn,nn[tn]);return _e};const Zt=_e=>React.createElement("svg",In({className:"logo2_svg__icon",viewBox:"0 0 1417 1024",xmlns:"http://www.w3.org/2000/svg",width:276.758,height:200},_e),React.createElement("path",{d:"M1364.44 118.705c-14.178-6.695-20.322 6.065-28.593 12.525-2.914 2.048-5.277 4.726-7.64 7.246-20.717 21.268-44.899 35.21-76.643 33.556a152.576 152.576 0 0 0-120.674 45.371c-7.404-41.826-32.06-66.875-69.553-82.865-19.693-8.35-39.543-16.7-53.248-34.737-9.61-12.919-12.288-27.333-17.015-41.512-3.15-8.507-6.144-17.25-16.384-18.668-11.185-1.733-15.517 7.247-19.928 14.73a189.125 189.125 0 0 0-23.552 98.461c1.575 76.88 35.446 138.083 102.636 181.642 7.562 4.963 9.531 9.925 7.09 17.25-4.49 14.967-9.926 29.54-14.81 44.584-2.992 9.61-7.561 11.658-18.274 7.483a309.484 309.484 0 0 1-96.886-63.015c-47.813-44.426-91.057-93.342-144.935-131.702a635.825 635.825 0 0 0-38.36-25.207c-54.982-51.2 7.167-93.262 21.582-98.225 14.966-5.199 5.277-23.158-43.402-22.922-48.68.237-93.184 15.833-149.977 36.628-8.428 3.15-17.092 5.514-25.993 7.326a557.844 557.844 0 0 0-160.768-5.436c-105.157 11.264-189.204 58.92-250.96 140.367-74.2 97.832-91.687 208.975-70.261 325.002 22.449 122.25 87.434 223.468 187.47 302.631 103.582 82 222.917 122.172 359.188 114.452 82.708-4.568 174.79-15.202 278.686-99.485 26.151 12.445 53.642 17.486 99.249 21.267 35.131 3.072 69.002-1.733 95.153-6.931 40.96-8.35 38.203-44.741 23.316-51.437-120.202-53.72-93.814-31.822-117.839-49.624 61.125-69.317 153.206-141.312 189.204-374.706 2.835-18.51.472-30.168 0-45.213-.237-9.137 1.969-12.603 12.918-13.706a240.089 240.089 0 0 0 86.173-25.442c77.982-40.803 109.332-107.914 116.736-188.259 1.103-12.288-.236-24.97-13.705-31.429zM685.45 842.043C569.108 754.215 512.55 725.307 489.157 726.49c-21.82 1.26-17.96 25.206-13.155 40.802 5.042 15.439 11.58 26.073 20.717 39.621 6.301 8.9 10.791 22.213-6.302 32.295-37.494 22.213-102.794-7.561-105.787-8.98-76.012-42.929-139.421-99.564-184.241-176.994a523.894 523.894 0 0 1-72.468-239.93c-1.024-20.56 5.278-27.885 26.703-31.587a272.148 272.148 0 0 1 85.307-2.127c118.942 16.699 220.16 67.741 305.073 148.48 48.443 46.001 85.071 100.982 122.88 154.703 40.173 57.029 83.338 111.458 138.32 155.963 19.376 15.675 34.894 27.569 49.781 36.234-44.74 4.805-119.414 5.829-170.456-32.926zm55.926-344.615c0-5.357 2.757-10.398 7.326-13.47a17.723 17.723 0 0 1 22.134 2.048c3.072 2.915 4.805 7.09 4.805 11.422a16.778 16.778 0 0 1-17.25 16.541 17.33 17.33 0 0 1-12.131-4.883 15.911 15.911 0 0 1-4.884-11.658zm173.529 85.464a104.37 104.37 0 0 1-33.005 8.586 71.444 71.444 0 0 1-44.504-13.548c-15.282-12.288-26.23-19.141-30.72-40.645a89.167 89.167 0 0 1 .787-31.429c3.939-17.487-.393-28.75-13.312-38.912-10.476-8.35-23.71-10.634-38.36-10.634a32.06 32.06 0 0 1-14.179-4.175c-6.144-2.914-11.106-10.24-6.301-19.14a60.18 60.18 0 0 1 10.712-11.265c19.85-10.79 42.693-7.246 63.882.788 19.693 7.798 34.501 21.898 55.926 41.905 21.74 24.183 25.68 30.8 38.125 48.916 9.846 14.179 18.747 28.75 24.89 45.45 3.703 10.397-1.102 18.905-13.941 24.103z",fill:"#4D6BFE"}));var Gt="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDE0MTcgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjc2Ljc1OCIgaGVpZ2h0PSIyMDAiPjxwYXRoIGQ9Ik0xMzY0LjQ0IDExOC43MDVjLTE0LjE3OC02LjY5NS0yMC4zMjIgNi4wNjUtMjguNTkzIDEyLjUyNS0yLjkxNCAyLjA0OC01LjI3NyA0LjcyNi03LjY0IDcuMjQ2LTIwLjcxNyA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0xMC40NzYtOC4zNS0yMy43MS0xMC42MzQtMzguMzYtMTAuNjM0YTMyLjA2IDMyLjA2IDAgMCAxLTE0LjE3OS00LjE3NWMtNi4xNDQtMi45MTQtMTEuMTA2LTEwLjI0LTYuMzAxLTE5LjE0YTYwLjE4IDYwLjE4IDAgMCAxIDEwLjcxMi0xMS4yNjVjMTkuODUtMTAuNzkgNDIuNjkzLTcuMjQ2IDYzLjg4Mi43ODggMTkuNjkzIDcuNzk4IDM0LjUwMSAyMS44OTggNTUuOTI2IDQxLjkwNSAyMS43NCAyNC4xODMgMjUuNjggMzAuOCAzOC4xMjUgNDguOTE2IDkuODQ2IDE0LjE3OSAxOC43NDcgMjguNzUgMjQuODkgNDUuNDUgMy43MDMgMTAuMzk3LTEuMTAyIDE4LjkwNS0xMy45NDEgMjQuMTAzeiIgZmlsbD0iIzRENkJGRSIvPjwvc3ZnPg==",He=Yt(59301),ln=({value:_e,onChange:nn})=>{const[tn,Ln]=(0,kt.useState)(!1),ni=[{name:"\u901A\u4E49\u5343\u95EE",key:"qwen-max",img:Oe},{name:"DeepSeek R1-671B",key:"deepseek-r1",img:Gt}],di=ni.find(si=>si.key===_e);return He.createElement("div",{className:Lt.select},He.createElement(Ft.Z,{size:10},He.createElement("span",{className:"c-grey-333 font16"},"\u6A21\u578B"),He.createElement("div",{className:Lt.box,onMouseLeave:()=>Ln(!1)},He.createElement("div",{className:Lt.text,onClick:()=>Ln(!0)},He.createElement("img",{src:di.img,width:20}),He.createElement("span",null,di.name),He.createElement("b",{className:"iconfont icon-zhankai6"})),tn&&He.createElement("div",{className:Lt.itemWrap},He.createElement("aside",null,ni.map(si=>He.createElement("div",{key:si.key,className:`${Lt.item} ${si.key===_e?Lt.active:""}`,onClick:Mi=>{Mi.stopPropagation(),nn(si.key),Ln(!1)}},He.createElement("img",{src:si.img,width:20}),He.createElement("span",null,si.name))))))))},ce={loadingPic:"loadingPic___y2kKZ",loading:"loading___UEUk1",dot:"dot___TYXFV","dot-fade":"dot-fade___KWn1a",wrap:"wrap___nU3cS",chatContainer:"chatContainer___PNe3Q",footerContainer:"footerContainer___hQATV",btnWrp:"btnWrp___mS8l6",btn:"btn___3za5U",btnActive:"btnActive____jzfb",inputContainer:"inputContainer___iCQ3u",uploadBtn:"uploadBtn___OHHJF",sendBtn:"sendBtn___ktaQl",sendBtnDisabled:"sendBtnDisabled___DVncF",cancelBtn:"cancelBtn___bzMDI",lineFour:"lineFour___Lhbz5",fullIcon:"fullIcon___YWXTV",footerContainerSelected:"footerContainerSelected___pGBh3",full:"full___dZLXo",li:"li___PjMV3",avatarIcon:"avatarIcon___ztGQ3",img:"img___wZqEA",content:"content___OlYYG",borderBox:"borderBox___tjHwt",text:"text___yWTCV",fileWrap:"fileWrap___IX778",file:"file___fxAKb",fileName:"fileName___RA8nu",source:"source___nkLC0",action:"action___I2zGy",disabledInput:"disabledInput___Buork",backBottom:"backBottom___SMuL2",head:"head___v8Eom",headBtn:"headBtn___IS7xR",menuWarp:"menuWarp___G6yj0",menu:"menu___M8VWP",menuText:"menuText___gRpb5",menuDel:"menuDel___eH_wg",active:"active___KWwPV"},Ue=Yt(99064),on=Yt(955),wn={draggableImage:"draggableImage___vcTso",img:"img___xAyno",close:"close___WUtfj"},kn=({src:_e,onClick:nn,topPercentage:tn=.62,draggableExtraNode:Ln})=>{const ni=(0,kt.useRef)(null),di=(0,kt.useRef)(!1),si=(0,kt.useRef)(!1),[Mi,qi]=(0,kt.useState)(window.innerHeight*tn),[oo,pr]=(0,kt.useState)(!1),Ho=10;return(0,kt.useEffect)(()=>{if(ni.current){let mr=function(No){var yi;di.current=!0,Cr=No.pageY,Yr=No.pageY-(((yi=ni.current)==null?void 0:yi.getBoundingClientRect().top)||0),(0,on.kk)("none"),document.onselectstart=function(){return!1}},so=function(){di.current&&!si.current&&nn&&nn(),di.current=!1,si.current=!1,(0,on.kk)("auto"),document.onselectstart=null},xo=function(No){var yi;if(di.current){const Es=No.pageY-Yr,Gn=window.innerHeight-(((yi=ni.current)==null?void 0:yi.offsetHeight)||0)-50,Ri=50;if(!si.current&&Math.abs(Cr-No.pageY)>Ho&&(si.current=!0),si.current){let Io=Math.max(Ri,Math.min(Es,Gn));qi(Io)}}},Yr=0,Cr=0;return ni.current.addEventListener("mousedown",mr),document.addEventListener("mousemove",xo),document.addEventListener("mouseup",so),()=>{var No,yi;(yi=(No=ni==null?void 0:ni.current)==null?void 0:No.removeEventListener)==null||yi.call(No,"mousedown",mr),document.removeEventListener("mousemove",xo),document.removeEventListener("mouseup",so)}}},[nn]),(0,kt.useEffect)(()=>{const mr=()=>{qi(window.innerHeight*tn)};return window.addEventListener("resize",mr),()=>{window.removeEventListener("resize",mr)}},[tn]),kt.createElement("div",{className:wn.draggableImage,style:{top:`${Mi}px`,display:oo?"none":"block",cursor:di.current?"grabbing":"grab"},ref:ni},Ln,kt.createElement("img",{className:wn.img,src:_e,width:60,draggable:"false"}),kt.createElement("i",{className:`iconfont icon-tupianguanbi ${wn.close}`,onMouseUp:mr=>{mr.stopPropagation(),pr(!0)}}))},te="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAIABJREFUeF6VnQmAnGV9/z/vMffeV3azuRMCSUgCSQggiCBFEE9UvFpqW6utFopa71bx6GHRWq31xKtSFS0eqICV+wwSIJKQkDvZJJvsObOzO/d7PH9/z/O+s5sY2/4XhpmdnXln3u/7/f1+39/xPFj8H39Wr742GRaOXaYs65WWnVhtuc58y7Lmh4oWZYFv2fpIgdxZFtg2oZMgdByU7eA7Npbt6L958rttUXMsQtsCyyawLEI5gC0HMMcCpf8193ILIVT6ZoUhlgqxw5BEoLAD87ulAuxQkZC/h4ogDHBCX79eXivHsfShQizkOJQsFR63FMdVGO6yHfWz1s4FD+za9V+N/ws01v/2otVLzuv36tZHwfpDlN1m2w6W62LLiVpyLhahpQixNRiBxkPAE+BcQtvRj+Veyd8dG99x8CyLIOESuC4qlPcJ6BH48lgOHoM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3bZM7y1azt3ki/gjJC0RysYIa059LeGaeqJJ94Ii6H9Kv8NNcovk+uKXvqF8un/N/+CcBu5N24Yb8H9pfF6XOW1M+bUtNYP6yoIGRccPphjBrZT7dBcosjtC2PsnRBnNUNDdiik5I+BeREQnpsMZm2VQt7vcR+PRoJPC1mtc2/mZv///ojj90punz2WfN/nntvQHFezmRXpPcdP3bIqIL8whGWF6xc+04oL7kqQ2Pfpu5omAZThNY6GWuV4waWOp6xcGg0UDPtuWn/lj/j+X+Lbso4jJUfOwAAAABJRU5ErkJggg==",dn=Yt(3294),Sn=Yt(56102),Vn=Yt(24544),vi=Yt(58617),Qn=Yt(32050),wi=Object.defineProperty,Ci=Object.defineProperties,an=Object.getOwnPropertyDescriptors,Nn=Object.getOwnPropertySymbols,xn=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable,Ct=(_e,nn,tn)=>nn in _e?wi(_e,nn,{enumerable:!0,configurable:!0,writable:!0,value:tn}):_e[nn]=tn,xt=(_e,nn)=>{for(var tn in nn||(nn={}))xn.call(nn,tn)&&Ct(_e,tn,nn[tn]);if(Nn)for(var tn of Nn(nn))Ot.call(nn,tn)&&Ct(_e,tn,nn[tn]);return _e},Bt=(_e,nn)=>Ci(_e,an(nn)),Rt=(_e,nn,tn)=>new Promise((Ln,ni)=>{var di=qi=>{try{Mi(tn.next(qi))}catch(oo){ni(oo)}},si=qi=>{try{Mi(tn.throw(qi))}catch(oo){ni(oo)}},Mi=qi=>qi.done?Ln(qi.value):Promise.resolve(qi.value).then(di,si);Mi((tn=tn.apply(_e,nn)).next())}),se=({title:_e="\u5934\u6B4CAI",placeholder:nn,hideUpload:tn,hideInputBox:Ln,aiIcon:ni=te,userIcon:di=Ve,dragIcon:si=fn,children:Mi,fetchUrl:qi,fetchData:oo={},extraAnswerAction:pr,showDefaultTips:Ho=!0,onOpen:mr,onClose:so,loadingOption:xo,showPreference:Yr=!1,initMessage:Cr,customRequest:No,visible:yi,width:wt=1200,isCheckRestrictNumber:Es=!1,headNode:Gn,headFunctionNode:Ri,showRedraw:Io,showEdit:Jo,promptPropName:Or="prompt",topPercentage:To,showSwitchingModel:jr=!1,showImageGenerator:De=!1,showLookHistory:ye=!1,fetchListObject:he,customPreference:Dn,customDataNode:ci,showAddSession:hi,historyId:Ze,draggableExtraNode:An,drawerExtraNode:Xi,menuExtraFunctionNode:co,showSceneAwareness:ao=!1})=>{var ee,yn;const[_n,fo]=(0,kt.useState)(!1),[we,Je]=(0,kt.useState)("qwen-max"),[Si,Qi]=(0,kt.useState)([]),[Zi,$n]=(0,kt.useState)([]),[ei,Wn]=(0,kt.useState)(!1),[lo,ur]=(0,kt.useState)(!1),[Fo,Re]=(0,kt.useState)(!1),[vo,uo]=(0,kt.useState)([]),[ji,Me]=(0,kt.useState)(""),[gn,Hn]=(0,kt.useState)(0),[Zn,Kn]=(0,kt.useState)(void 0),[Li,no]=(0,kt.useState)(!1),[zi,Gi]=(0,kt.useState)(null),[io,ze]=(0,kt.useState)(""),Wi=(0,kt.useRef)(),Ie=(0,kt.useRef)(null),Yi=(0,kt.useRef)(null),[zr,Ko]=(0,kt.useState)(!1),[_r,Xo]=(0,kt.useState)(!1),[Bi,Po]=(0,kt.useState)(!1),[Pa,hr]=(0,kt.useState)(!1),[En,jt]=(0,kt.useState)(0),Dr=(0,kt.useRef)(null),$r=(0,kt.useRef)(!1),Tl=(0,kt.useRef)(null),[wa,fl]=(0,kt.useState)(void 0),[Pu,td]=(0,kt.useState)(!0),[ed,wo]=(0,kt.useState)(wt-28),[Qo,sa]=(0,kt.useState)(!1),[li,Un]=(0,kt.useState)(!0),[Xe,Jn]=(0,kt.useState)([]),bi=(0,kt.useRef)([]),Bo=(0,kt.useRef)(null),Zo=(0,kt.useRef)(null),Wo=(0,kt.useRef)(!1),vr=ed-22,qo=ji==null?void 0:ji.split(` +`).length,{onAdd:Ca,onGetList:zs,onListClick:Fl,onListDelete:de,onListDealData:As}=he||{},wu=50,ja=10,Cu={maxCount:wu,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:Si,multiple:!0,accept:".doc,.docx,.md,.txt,.pdf,.xlsx,.xls",beforeUpload:Ge=>Rt(void 0,null,function*(){var ii,xi,Ti,_i;const Ei=(_i=(Ti=(xi=(ii=Ge==null?void 0:Ge.name)==null?void 0:ii.split("."))==null?void 0:xi.slice(-1))==null?void 0:Ti[0])==null?void 0:_i.toLowerCase(),bo=["doc","docx","md","pdf","txt","xlsx","xls"].includes(Ei);return Ge.size==0?(ue.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),xe.default.LIST_IGNORE):bo?Ge.size/1024/1024>100?(ue.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u5236100MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),xe.default.LIST_IGNORE):!0:(ue.ZP.warning("\u76EE\u524D\u652F\u6301txt\u3001md\u3001doc\u3001docx\u3001pdf\u3001xlsx\u3001xls\u6587\u4EF6"),xe.default.LIST_IGNORE)}),onChange:({fileList:Ge})=>{Qi(Ge)},action:`${(ee=dn.Z)==null?void 0:ee.API_SERVER}/api/intelligent_imports/upload_file.json`},_o={maxCount:ja,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:Zi,multiple:!0,accept:".jpg,.png,",beforeUpload:Ge=>{var ii,xi,Ti,_i;const Ei=(_i=(Ti=(xi=(ii=Ge==null?void 0:Ge.name)==null?void 0:ii.split("."))==null?void 0:xi.slice(-1))==null?void 0:Ti[0])==null?void 0:_i.toLowerCase(),bo=["jpg","png"].includes(Ei);return Ge.size==0?(ue.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),xe.default.LIST_IGNORE):bo?Ge.size/1024/1024>10?(ue.ZP.warning("\u4E0A\u4F20\u7684\u56FE\u7247\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),xe.default.LIST_IGNORE):!0:(ue.ZP.warning("\u76EE\u524D\u652F\u6301jpg\u3001png"),xe.default.LIST_IGNORE)},onChange:({fileList:Ge})=>{$n(Ge)},action:`${(yn=dn.Z)==null?void 0:yn.API_SERVER}/api/ai/generals/update_file.json`};(0,kt.useEffect)(()=>{if(!vo.length||!Wi.current)return;const Ge=vo[vo.length-1];Ge!=null&&Ge.loading&&(Wi.current.scrollTop=Wi.current.scrollHeight)},[vo.length]),(0,kt.useEffect)(()=>{if(!Wi.current||!Dr.current)return;const Ge=new IntersectionObserver(([ii])=>{td(ii.isIntersecting)},{root:Wi.current,rootMargin:"70px",threshold:0});return Ge.observe(Dr.current),()=>{Dr.current&&Ge.unobserve(Dr.current)}},[Wi.current,Dr.current]),(0,kt.useEffect)(()=>{if(!zr)return;const Ge=Wi.current,ii=Tl.current;$r.current=!1;let xi=Ge.scrollTop;const Ti=()=>{const{scrollTop:Ei,scrollHeight:Oo,clientHeight:bo}=Ge;Ei>xi?Ei+bo>=Oo-50&&(Ge.scrollTop=Ge.scrollHeight,$r.current=!1):Ei{$r.current||(Ge.scrollTop=Ge.scrollHeight)});return _i.observe(ii),()=>{var Ei;_i.unobserve(ii),(Ei=Ge==null?void 0:Ge.removeEventListener)==null||Ei.call(Ge,"scroll",Ti)}},[zr]),(0,kt.useEffect)(()=>{!zr&&bi.current.length&&(uo([...vo,...bi.current]),bi.current=[])},[zr]),(0,kt.useEffect)(()=>{if(!Wi.current)return;const Ge=new ResizeObserver(()=>{wo(Wi.current.offsetWidth)});return Ge.observe(Wi.current),()=>{Wi.current&&Ge.unobserve(Wi.current)}},[Wi.current]),(0,kt.useEffect)(()=>{typeof yi=="boolean"&&fo(yi)},[yi]),(0,kt.useEffect)(()=>{var Ge;if(Ie.current&&zi!==null){Ie.current.focus();const ii=(Ge=Ie.current.resizableTextArea)==null?void 0:Ge.textArea;ii&&(ii.selectionStart=ii.selectionEnd=ii.value.length)}},[zi]),(0,kt.useEffect)(()=>{qo<5&&no(!1)},[qo]),(0,kt.useEffect)(()=>{_n&&Cr&&(uo(_a(Cr)),Wn(!0),jn(Cr,{history:[]})),_n&&(ts(),Ze?Bl(Ze):hi&&!wa&&Js()),_n||$a()},[_n]);const _a=(Ge="",ii=[],xi=[])=>{const Ti=Date.now();return[{text:Ge,key:Ti,sender:"user",fileList:ii,imageList:xi,show:!0},{loading:!0,key:Ti,sender:"AI",show:!0,model:we,imageGenerator:Bi,thinkingEnabled:_r}]},$a=()=>{ze(""),Gi(null),Qi([]),$n([]),Me("")},yo=()=>{if(mr){mr({chatData:vo,setChatData:uo,setLoading:Wn,getData:jn,renderChatItems:_a,handleAdd:Js,identifier:wa});return}fo(!0)},Er=()=>{if(Un(!0),so){so();return}fo(!1)},Mu=()=>{no(!Li)},ts=()=>Rt(void 0,null,function*(){if(!Es)return;const Ge=yield(0,Ue.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});(Ge==null?void 0:Ge.status)===0&&(Ge==null?void 0:Ge.total_number)!==-1&&(Hn((Ge==null?void 0:Ge.total_number)-(Ge==null?void 0:Ge.remaining_number)),Kn(Ge==null?void 0:Ge.total_number))}),hh=()=>{Te.default.info({title:"\u63D0\u793A",icon:null,okText:"\u6211\u77E5\u9053\u4E86",width:510,centered:!0,content:kt.createElement("div",null,kt.createElement("div",{style:{color:"#FA6400"}},"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),kt.createElement("div",{className:"c-grey-333 mt5"},"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F\u7528",Zn,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))})},aa=Ge=>Ge.reduce((xi,Ti)=>{if(Ti.sender==="user"){const _i=Ge.find(Ei=>Ei.key===Ti.key&&Ei.sender==="AI");_i&&(_i!=null&&_i.text)&&!(_i!=null&&_i.error)&&xi.push({question:Ti.text,answer:_i.text})}return xi},[]),jn=(...Ge)=>Rt(void 0,[...Ge],function*(ii="",xi={},Ti=vo){if(No&&(yield No({mes:ii,setChatData:uo,fileList:Si,body:xi,checkNum:ts,setLoading:Wn,bodyChatData:Ti,setTyping:Ko,setImageGenerator:Po,renderChatItems:_a})),!No){const _i=Si==null?void 0:Si.map(Mr=>{var Ts;return(Ts=Mr==null?void 0:Mr.response)==null?void 0:Ts.file_id}),Ei=Zi==null?void 0:Zi.map(Mr=>{var Ts;return(Ts=Mr==null?void 0:Mr.response)==null?void 0:Ts.data}),Oo=xi.history||aa(Ti),bo=xt(xt({identifier:wa,response_mode:"streaming",model:we,scene_awareness:Pa,thinking_enabled:_r,image_generator:Bi,file_ids:_i,image_list:Ei,history:Oo,[Or]:ii},oo),xi),es=Object.fromEntries(Object.entries(bo).filter(([Mr,Ts])=>Ts!==void 0));Yi.current=new Vn.Z(dn.Z.API_SERVER+qi,es),yield new Promise((Mr,Ts)=>{let rr=null,id=null;Yi.current.on("data",gh=>{Ko(!0);const{chunk:{content:vl,type:el,created:Rr,msg:Ss}}=gh,Ar=Ss==="error";el==="thinking"&&(rr=rr||Rr,uo(Lr=>[...Lr].map((nl,$l)=>$l===Lr.length-1?Bt(xt({},nl),{reasoning:(nl.reasoning||"")+vl,loading:!1,hideAnswer:!0,error:Ar}):nl))),el==="text"&&(id=id||Rr,uo(Lr=>[...Lr].map((nl,$l)=>$l===Lr.length-1?Bt(xt({},nl),{text:(nl.text||"")+vl,loading:!1,startTime:rr,endTime:id,error:Ar}):nl)))}),Yi.current.on("done",()=>{Mr()}),Yi.current.on("error",()=>{const gh="\u62B1\u6B49\uFF0C\u6211\u521A\u521A\u9047\u5230\u4E86\u4E00\u70B9\u95EE\u9898\uFF0C\u6CA1\u80FD\u5B8C\u6210\u60A8\u7684\u8BF7\u6C42\u3002\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\u4E00\u6B21\uFF0C\u6216\u8005\u8054\u7CFB\u6280\u672F\u652F\u6301\u5E2E\u5FD9\u89E3\u51B3!";uo(vl=>[...vl].map((el,Rr)=>Rr===vl.length-1?Bt(xt({},el),{text:gh,loading:!1,error:!0}):el)),Mr()}),Yi.current.on("cancelled",()=>{Mr()}),Yi.current.startStream()})}ts(),Wn(!1)}),Dg=Ge=>{Me(Ge.target.value)},nd=(Ge,ii)=>{if($a(),Wn(!0),Ge==="edit"){bi.current=vo.slice(ii+2);const xi=vo.splice(ii),{fileList:Ti,imageList:_i}=(xi==null?void 0:xi[0])||{},Ei=Ti.map(es=>{var Mr;return(Mr=es.response)==null?void 0:Mr.file_id}),Oo=_i.map(es=>{var Mr;return(Mr=es.response)==null?void 0:Mr.data}),bo={history:aa(vo),file_ids:Ei,image_list:Oo,edit:!0};uo([...vo,..._a(io,Ti,_i)]),jn(io,bo,vo)}if(Ge==="redraw"){bi.current=vo.slice(ii+1);const xi=vo.splice(ii-1),{text:Ti,fileList:_i,imageList:Ei}=(xi==null?void 0:xi[0])||{},Oo=_i.map(Mr=>{var Ts;return(Ts=Mr.response)==null?void 0:Ts.file_id}),bo=Ei.map(Mr=>{var Ts;return(Ts=Mr.response)==null?void 0:Ts.data}),es={history:aa(vo),file_ids:Oo,image_list:bo,edit:!0};uo([...vo,..._a(Ti,_i,Ei)]),jn(Ti,es,vo)}},za=()=>{if(ji.trim()!==""){$a(),Wn(!0);const Ge=Si.filter(xi=>xi.status==="done"),ii=Zi.filter(xi=>xi.status==="done");uo([...vo,..._a(ji,Ge,ii)]),jn(ji)}},Gd=Ge=>{if(Ge.shiftKey){if(Ge.key==="Enter")return}else if(Ge.key==="Enter"){if(Ge.preventDefault(),pl||Wo.current)return;za()}},Hd=(Ge,ii)=>{let xi=!1;Jo===!0?xi=!0:Jo==="last"&&(xi=vo.reduce((Oo,bo,es)=>bo.sender==="user"?es:Oo,-1)===ii);const Ti=ii===zi,_i=[...(Ge==null?void 0:Ge.fileList)||[],...(Ge==null?void 0:Ge.imageList)||[]];return kt.createElement("div",{className:ce.li,style:{width:vr}},kt.createElement("div",{className:ce.avatarIcon},kt.createElement("img",{className:ce.img,src:di})),kt.createElement("div",{className:ce.content},!!(_i!=null&&_i.length)&&kt.createElement("div",{className:ce.fileWrap},_i==null?void 0:_i.map((Ei,Oo)=>{var bo,es;return kt.createElement("div",{key:Oo,className:ce.file},kt.createElement("img",{src:Yt(90034)(`./${((es=(bo=Ei==null?void 0:Ei.name)==null?void 0:bo.split("."))==null?void 0:es.pop())||"txt"}.png`),width:20,className:"mr10"}),kt.createElement("aside",null,kt.createElement(ge.Z,{title:Ei==null?void 0:Ei.name},kt.createElement("div",{className:ce.fileName},Ei==null?void 0:Ei.name)),kt.createElement("div",{className:"c-grey-999 font12"},(0,on.RD)(Ei==null?void 0:Ei.size))))})),kt.createElement("div",{className:ce.borderBox},Ti?kt.createElement(Ee.default.TextArea,{value:io,ref:Ie,autoSize:!0,placeholder:"\u8BF7\u8F93\u5165",bordered:!1,onChange:Ei=>ze(Ei.target.value)}):kt.createElement("div",{className:ce.text},Ge==null?void 0:Ge.text)),Ti?kt.createElement("div",{className:ce.action},kt.createElement(qt.ZP,{onClick:()=>{ze(""),Gi(null)},size:"small"},"\u53D6\u6D88"),kt.createElement(qt.ZP,{disabled:!io.trim(),onClick:()=>nd("edit",ii),type:"primary",size:"small"},"\u786E\u8BA4")):kt.createElement("div",{className:ce.action},kt.createElement(Sn.CopyToClipboard,{text:(Ge==null?void 0:Ge.text)||"",onCopy:()=>ue.ZP.success("\u590D\u5236\u6210\u529F")},kt.createElement(ge.Z,{title:"\u590D\u5236"},kt.createElement("i",{className:"iconfont icon-fuzhi8 font13"}))),xi&&!ei&&kt.createElement(ge.Z,{title:"\u7F16\u8F91"},kt.createElement("i",{onClick:()=>{Gi(ii),ze((Ge==null?void 0:Ge.text)||"")},className:"iconfont icon-bianji10 font14"})))))},cn=(Ge,ii)=>{let xi=!1;Io===!0?xi=!0:Io==="last"&&(xi=vo.reduce((Ei,Oo,bo)=>Oo.sender==="AI"?bo:Ei,-1)===ii);let Ti="";return Ge!=null&&Ge.source?Ti=Ge==null?void 0:Ge.source:(Ge==null?void 0:Ge.model)==="deepseek-r1"?Ti="\u7531deepseek\u751F\u6210":(Ge==null?void 0:Ge.model)==="qwen-max"&&(Ti="\u7531\u901A\u4E49\u5343\u95EE\u751F\u6210"),kt.createElement("div",{className:ce.li,style:{width:vr}},kt.createElement("div",{className:ce.avatarIcon},kt.createElement("img",{className:ce.img,src:ni})),kt.createElement("div",{className:ce.content},kt.createElement("div",{className:ce.borderBox},Ge.loading&&kt.createElement(kt.Fragment,null,Ge!=null&&Ge.imageGenerator?kt.createElement("div",{className:ce.loadingPic},"\u6B63\u5728\u751F\u6210\u4E2D",kt.createElement("div",{className:"ai-loading"})):!(Ge!=null&&Ge.thinkingEnabled)&&kt.createElement("div",null,kt.createElement("div",{className:ce.loading},kt.createElement("div",{className:ce.dot}),kt.createElement("div",{className:ce.dot}),kt.createElement("div",{className:ce.dot})),kt.createElement("div",{style:{marginTop:10,color:"#9096A3"}},(xo==null?void 0:xo.text)||"\u8BF7\u8010\u5FC3\u7B49\u5F85\uFF0C\u76EE\u524D\u9AD8\u5CF0\u671F\u4F53\u9A8C\u4EBA\u6570\u8FC7\u591A\uFF0C\u6211\u4EEC\u5DF2\u8BB0\u5F55\u4E0B\u60A8\u7684\u9700\u6C42\uFF0C\u7A0D\u540E\u5C06\u81EA\u52A8\u4E3A\u60A8\u751F\u6210\u7B54\u6848\u3002"))),(Ge==null?void 0:Ge.thinkingEnabled)&&kt.createElement(vt,{time:Ge==null?void 0:Ge.time,cancelIndex:En,loading:Ge.loading,streamingStatus:!(Ge!=null&&Ge.text),onFinish:()=>{jt(0),uo(_i=>[..._i].map((Ei,Oo)=>Oo===_i.length-1?Bt(xt({},Ei),{hideAnswer:!1,time:Ei.startTime?Ei.endTime-Ei.startTime:null}):Ei))},value:Ge==null?void 0:Ge.reasoning}),!!(Ge!=null&&Ge.text)&&!Ge.hideAnswer&&kt.createElement(et.Z,{cancelIndex:En,streamingStatus:ei,loadImage:!!(Ge!=null&&Ge.imageGenerator),onFinish:()=>Rt(void 0,null,function*(){jt(0),setTimeout(()=>Ko(!1),0)}),value:Ge==null?void 0:Ge.text})),!!(Ge!=null&&Ge.text)&&Ti&&kt.createElement("div",{className:ce.source},Ti),kt.createElement("div",{className:ce.action},pr==null?void 0:pr(Ge,ii,{onMenuClick:Bl}),kt.createElement(Sn.CopyToClipboard,{text:String((Ge==null?void 0:Ge.text)||""),onCopy:()=>ue.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},kt.createElement(ge.Z,{title:"\u590D\u5236"},kt.createElement("i",{className:"iconfot icon-fuzhi8 font13"}))),Yr&&!ei&&kt.createElement(kt.Fragment,null,kt.createElement(ge.Z,{title:"\u559C\u6B22"},kt.createElement("i",{style:Ge!=null&&Ge.like?{color:"#FA8D30"}:{},onClick:()=>$o("like",!(Ge!=null&&Ge.like),ii),className:"iconfot icon-yijiejue font15"})),kt.createElement(ge.Z,{title:"\u4E0D\u559C\u6B22"},kt.createElement("i",{style:Ge!=null&&Ge.dislike?{color:"#e86d7c"}:{},onClick:()=>$o("dislike",!(Ge!=null&&Ge.dislike),ii),className:"iconfot icon-weijiejuezhengchang font15"}))),xi&&!ei&&kt.createElement(ge.Z,{title:"\u91CD\u65B0\u751F\u6210"},kt.createElement("i",{onClick:()=>nd("redraw",ii),className:"iconfot icon-gengxin-genghuan-tihuan"})))))},$o=(Ge,ii,xi)=>Rt(void 0,null,function*(){if(Dn){const Ti=vo.slice(0,xi+1),Ei=aa(Ti).length;yield Dn({type:Ge,value:ii,index:xi,identifier:wa,objectIndex:Ei})}uo(Ti=>(Ti[xi][Ge]=ii,ii&&(Ti[xi][Ge==="like"?"dislike":"like"]=!1),[...Ti]))}),yr=()=>{var Ge,ii;jt(1),(ii=(Ge=Yi.current)==null?void 0:Ge.cancelRequest)==null||ii.call(Ge),Wn(!1),Ko(!1)},Js=()=>Rt(void 0,null,function*(){var Ge,ii,xi;(ii=(Ge=Yi.current)==null?void 0:Ge.cancelRequest)==null||ii.call(Ge),$a(),uo([]),Wn(!0);const Ti=yield Ca();(Ti==null?void 0:Ti.status)===0&&fl((xi=Ti==null?void 0:Ti.data)==null?void 0:xi.identifier),Wn(!1),Ko(!1)}),_l=()=>Rt(void 0,null,function*(){var Ge;Re(!0);const ii=yield zs();(ii==null?void 0:ii.status)===0&&Jn(((Ge=ii==null?void 0:ii.data)==null?void 0:Ge.list)||[]),Re(!1)}),Bl=(...Ge)=>Rt(void 0,[...Ge],function*(ii=wa){var xi,Ti,_i,Ei;(Ti=(xi=Yi.current)==null?void 0:xi.cancelRequest)==null||Ti.call(xi),$a(),ur(!0);const Oo=yield Fl(ii);if(Oo.status===0){const bo=As(((_i=Oo==null?void 0:Oo.data)==null?void 0:_i.messages)||[]);uo(bo),ur(!1),fl((Ei=Oo==null?void 0:Oo.data)==null?void 0:Ei.identifier);return}uo([]),ur(!1)}),gi=(Ge,ii)=>Rt(void 0,null,function*(){(yield de(Ge)).status===0&&(ue.ZP.success("\u5220\u9664\u6210\u529F"),ii===wa&&Js(),_l())}),dh=()=>kt.createElement("div",{className:ce.menuWarp},kt.createElement("h4",null,"\u5386\u53F2\u5BF9\u8BDD"),kt.createElement(Ce.Z,{spinning:Fo},!Xe.length&&kt.createElement(fe.Z,{style:{width:250,paddingBottom:30},image:fe.Z.PRESENTED_IMAGE_SIMPLE}),!!Xe.length&&kt.createElement("div",{className:ce.menu},Xe.map(function(Ge,ii){return kt.createElement("aside",{className:Nt()(wa===Ge.identifier&&ce.active),key:Ge.id,onClick:()=>Bl(Ge.id)},kt.createElement("div",{className:ce.menuText},kt.createElement(ge.Z,{title:Ge==null?void 0:Ge.question},kt.createElement("span",null,Ge==null?void 0:Ge.question)),co&&co(Ge)),kt.createElement("div",{className:ce.menuDel,onClick:xi=>xi.stopPropagation()},kt.createElement(pe.Z,{title:"\u63D0\u793A",description:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u672C\u6761\u5BF9\u8BDD\u5417\uFF1F",onConfirm:()=>gi(Ge.id,Ge.identifier),okText:"\u786E\u8BA4",zIndex:1100,cancelText:"\u53D6\u6D88"},kt.createElement("i",{className:"iconfont icon-shanchu14 delete-hover font14"}))))})))),tl=Ge=>{if(Ge==="file"){if(Zi.length){Te.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4\u8986\u76D6",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5DF2\u5B58\u5728\u56FE\u7247\uFF0C\u4E0A\u4F20\u6587\u4EF6\u540E\u56FE\u7247\u5C06\u4F1A\u88AB\u8986\u76D6?",onOk:()=>{$n([]),Bo.current.upload.uploader.fileInput.click()}});return}Bo.current.upload.uploader.fileInput.click()}if(Ge==="image"){if(Si.length){Te.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4\u8986\u76D6",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5DF2\u5B58\u5728\u6587\u4EF6\uFF0C\u4E0A\u4F20\u56FE\u7247\u540E\u6587\u4EF6\u5C06\u4F1A\u88AB\u8986\u76D6?",onOk:()=>{Qi([]),Zo.current.upload.uploader.fileInput.click()}});return}Zo.current.upload.uploader.fileInput.click()}},Rs=[{key:"file",disabled:Si.length>=wu,label:kt.createElement(ge.Z,{placement:"right",title:kt.createElement("div",null,kt.createElement("b",null,"\u4E0A\u4F20\u9644\u4EF6\uFF08\u4EC5\u8BC6\u522B\u6587\u5B57\uFF09"),kt.createElement("div",null,"\u6700\u591A 50 \u4E2A\uFF0C\u6BCF\u4E2A 100 MB\uFF0C\u652F\u6301\u5404\u7C7B\u578B\u6587\u6863"))},kt.createElement("span",null,kt.createElement("i",{className:"iconfont icon-fujian3 font14 mr5"}),"\u4E0A\u4F20\u6587\u6863"))},we!=="deepseek-r1"&&{key:"image",disabled:Zi.length>=ja,label:kt.createElement(ge.Z,{placement:"right",title:"\u652F\u6301\u4E0D\u8D85\u8FC710M\u7684PNG/JPG\u56FE\u7247\uFF0C\u6700\u591A10\u4E2A"},kt.createElement("span",null,kt.createElement("i",{className:"iconfont icon-tupianshangchuan font14 mr5"}),"\u4E0A\u4F20\u56FE\u7247"))}].filter(Boolean),ys=[...Si,...Zi],pl=ys.some(Ge=>Ge.status==="uploading")||ei||zr,ml=gn>=Zn,Ns=tn||Si.length>=wu||Zi.length>=ja,Ma=Bi||_r||Pa||!!ys.length;return kt.createElement("div",null,Mi?kt.createElement("div",{onClick:yo},Mi):kt.createElement(kn,{draggableExtraNode:An,src:si,onClick:yo,topPercentage:To}),kt.createElement(le.Z,{open:_n,width:Qo?"100%":wt,afterOpenChange:Ge=>{Ge&&Un(!1)},push:!1,contentWrapperStyle:li?{}:{transition:"none"},extra:kt.createElement("div",{className:ce.head},Xi,jr&&kt.createElement(ln,{value:we,onChange:Ge=>{Xo(!1),Po(!1),Je(Ge),$n([]),Qi([])}}),ye&&kt.createElement(kt.Fragment,null,kt.createElement(Be.Z,{dropdownRender:dh,onOpenChange:Ge=>{Ge&&_l()},placement:"bottomLeft",arrow:!0},kt.createElement("div",{className:ce.headBtn},kt.createElement("i",{className:"icon-lishiduihua1 font14 mr10"}),"\u5386\u53F2\u5BF9\u8BDD"))),hi&&kt.createElement(kt.Fragment,null,kt.createElement("div",{className:ce.headBtn,onClick:Js},kt.createElement("i",{className:"icon-xinjianduihua font14 mr10"}),"\u65B0\u5EFA\u5BF9\u8BDD")),kt.createElement(ge.Z,{title:Qo?"\u9000\u51FA\u5168\u5C4F":"\u5168\u5C4F"},kt.createElement("div",{className:ce.headBtn,style:{padding:"0 12px"},onClick:()=>sa(!Qo)},Qo&&kt.createElement("i",{className:"iconfont icon-tuichuquanping3"}),!Qo&&kt.createElement("i",{className:"iconfont icon-quanping4"})))),title:kt.createElement("span",{className:"c-grey-333 font16"},_e),onClose:Er,bodyStyle:{paddingRight:4}},kt.createElement("div",{className:Nt()(ce.wrap,_n&&"body-overflow-hidden")},kt.createElement("div",{ref:Wi,className:ce.chatContainer},Ho&&kt.createElement("div",{className:`${ce.li} mb20`,style:{width:vr}},kt.createElement("div",{className:ce.avatarIcon},kt.createElement("img",{className:ce.img,src:ni})),kt.createElement("div",{className:ce.content},kt.createElement("div",{className:ce.borderBox},Gn,Ri==null?void 0:Ri({isDisabledNum:ml,checkNumModal:hh,checkNum:ts,onClose:Er,setChatData:uo,setLoading:Wn,getData:jn,clearStatus:$a,typing:zr,setImageGenerator:Po,renderChatItems:_a,setSceneAwareness:hr,setIdentifier:fl})))),kt.createElement("div",{ref:Tl},kt.createElement(Ce.Z,{spinning:lo,className:"mt20"},vo==null?void 0:vo.map((Ge,ii)=>kt.createElement(kt.Fragment,{key:Ge.key+ii},Ge.show&&kt.createElement(kt.Fragment,null,Ge.sender==="user"&&Hd(Ge,ii),Ge.sender==="AI"&&cn(Ge,ii),ci&&!["AI","user"].includes(Ge.sender)&&ci(Ge,ii,{width:vr})))))),!Pu&&kt.createElement("div",{className:ce.backBottom,onClick:()=>{Wi.current.scrollTop=Wi.current.scrollHeight}},kt.createElement("i",{className:"iconfont icon-huidaodibu"})),kt.createElement("div",{ref:Dr})),!Ln&&kt.createElement("div",{className:Nt()(ce.footerContainer,Li&&ce.full,Ma&&ce.footerContainerSelected)},kt.createElement("div",{className:ce.btnWrp},ao&&kt.createElement(ge.Z,{title:"\u667A\u80FD\u611F\u77E5\u5F53\u524D\u60C5\u5883\uFF0C\u63D0\u4F9B\u9488\u5BF9\u6027\u89E3\u7B54"},kt.createElement("div",{onClick:()=>hr(!Pa),className:Nt()(ce.btn,Pa&&ce.btnActive)},kt.createElement("i",{className:"iconfont icon-changjingganzhi mr10 font12"}),"\u573A\u666F\u611F\u77E5")),we==="deepseek-r1"&&kt.createElement(ge.Z,{title:"\u8C03\u7528\u65B0\u6A21\u578B DeepSeek-R1\uFF0C\u89E3\u51B3\u63A8\u7406\u95EE\u9898"},kt.createElement("div",{onClick:()=>Xo(!_r),className:Nt()(ce.btn,_r&&ce.btnActive)},kt.createElement("i",{className:"iconfont icon-shendusikao mr10 font12"}),"\u6DF1\u5EA6\u601D\u8003\uFF08R1\uFF09")),De&&we==="qwen-max"&&kt.createElement("div",{onClick:()=>Po(!Bi),className:Nt()(ce.btn,Bi&&ce.btnActive)},kt.createElement("i",{className:"iconfont icon-shangchuantupian2 mr10 font12"}),"\u56FE\u50CF\u751F\u6210"),ys.map(Ge=>kt.createElement("div",{key:Ge.uid},(Ge==null?void 0:Ge.status)==="uploading"&&kt.createElement(Ce.Z,{indicator:kt.createElement(vi.Z,{spin:!0}),className:"mr10",size:"small",spinning:!0}),kt.createElement("span",{title:Ge==null?void 0:Ge.name,className:"mr10"},(0,on.Pq)(Ge.name,20)),kt.createElement("i",{onClick:()=>{Qi(ii=>ii.filter(xi=>xi.uid!==Ge.uid)),$n(ii=>ii.filter(xi=>xi.uid!==Ge.uid))},className:"iconfont current icon-shanchu15 delete-hover c-red-ee4 font12"})))),kt.createElement(ge.Z,{title:ml&&kt.createElement("div",null,kt.createElement("div",null,"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),kt.createElement("div",null,"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F",Zn,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))},kt.createElement("div",{className:Nt()(ce.inputContainer,qo>4&&ce.lineFour,ml&&ce.disabledInput)},kt.createElement(xe.default,xt({ref:Bo},Cu)),kt.createElement(xe.default,xt({ref:Zo},_o)),kt.createElement(Be.Z,{className:`${Ns&&"hide"}`,menu:{items:Rs,onClick:Ge=>tl(Ge.key)},placement:"top"},kt.createElement(qt.ZP,{className:ce.uploadBtn,icon:kt.createElement(Qn.Z,{style:{fontSize:18,color:"#FFF"}})})),kt.createElement(Ee.default.TextArea,{rows:qo>4?4:qo,placeholder:nn||"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u95EE\u9898\u5427,Shift+Enter\u6362\u884C\uFF5E",value:ji,bordered:!1,style:Ns?{paddingLeft:0,marginLeft:0}:{},onChange:Dg,onPressEnter:Gd,onCompositionStart:()=>{Wo.current=!0},onCompositionEnd:()=>{Wo.current=!1}}),zr?kt.createElement(ge.Z,{title:"\u505C\u6B62\u751F\u6210"},kt.createElement("div",{className:`iconfont icon-tingzhihuida ${ce.cancelBtn}`,onClick:yr})):kt.createElement(qt.ZP,{className:(ji==null?void 0:ji.trim())===""?ce.sendBtnDisabled:ce.sendBtn,icon:kt.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:pl,onClick:za}),qo>4&&kt.createElement("span",{className:ce.fullIcon,onClick:Mu},Li&&kt.createElement("span",{className:"iconfont icon-shousuo"}),!Li&&kt.createElement("span",{className:"iconfont icon-zhankai"}))))))))}},9165:function(Ye,pn,Yt){"use strict";Yt.d(pn,{t:function(){return Be}});var kt=Yt(59301),ue=Yt(3113),xe={buttonFixed:"buttonFixed___vyq30",button:"button___hxmYv",buttonWrap:"buttonWrap___uK8dl"},Te=Yt(92310),ge=Yt.n(Te),Ee=Object.defineProperty,qt=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,pe=(je,Nt,et)=>Nt in je?Ee(je,Nt,{enumerable:!0,configurable:!0,writable:!0,value:et}):je[Nt]=et,le=(je,Nt)=>{for(var et in Nt||(Nt={}))Ce.call(Nt,et)&&pe(je,et,Nt[et]);if(qt)for(var et of qt(Nt))fe.call(Nt,et)&&pe(je,et,Nt[et]);return je};const Be=({cancelText:je="\u53D6\u6D88",okText:Nt="\u786E\u5B9A",loading:et=!1,hasOkBtn:nt=!0,hasCancelBtn:gt=!0,okButtonProps:lt={},onCancel:pt=()=>{},onOk:vt=()=>{},className:Lt=""})=>kt.createElement("div",{className:ge()(xe.buttonFixed,Lt)},kt.createElement("div",{className:xe.buttonWrap},gt&&kt.createElement(ue.ZP,{size:"middle",className:`${xe.button} mr20`,onClick:pt},je),nt&&kt.createElement(ue.ZP,le({size:"middle",type:"primary",className:`${xe.button} mr20`,loading:et,onClick:vt},lt),Nt)))},16406:function(Ye,pn,Yt){"use strict";Yt.d(pn,{Z:function(){return xn}});var kt=Yt(59301),ue={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},xe=Yt(92310),Te=Yt.n(xe),ge=Yt(71418);var Ee=function(Ot,Ct){return(Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(xt,Bt){xt.__proto__=Bt}||function(xt,Bt){for(var Rt in Bt)Object.prototype.hasOwnProperty.call(Bt,Rt)&&(xt[Rt]=Bt[Rt])})(Ot,Ct)};function qt(Ot,Ct){function xt(){this.constructor=Ot}Ee(Ot,Ct),Ot.prototype=Ct===null?Object.create(Ct):(xt.prototype=Ct.prototype,new xt)}function Ce(Ot,Ct,xt,Bt){return new(xt||(xt=Promise))(function(Rt,Et){function se(tn){try{nn(Bt.next(tn))}catch(Ln){Et(Ln)}}function _e(tn){try{nn(Bt.throw(tn))}catch(Ln){Et(Ln)}}function nn(tn){var Ln;tn.done?Rt(tn.value):(Ln=tn.value,Ln instanceof xt?Ln:new xt(function(ni){ni(Ln)})).then(se,_e)}nn((Bt=Bt.apply(Ot,Ct||[])).next())})}function fe(Ot,Ct){var xt,Bt,Rt,Et,se={label:0,sent:function(){if(1&Rt[0])throw Rt[1];return Rt[1]},trys:[],ops:[]};return Et={next:_e(0),throw:_e(1),return:_e(2)},typeof Symbol=="function"&&(Et[Symbol.iterator]=function(){return this}),Et;function _e(nn){return function(tn){return function(Ln){if(xt)throw new TypeError("Generator is already executing.");for(;se;)try{if(xt=1,Bt&&(Rt=2&Ln[0]?Bt.return:Ln[0]?Bt.throw||((Rt=Bt.return)&&Rt.call(Bt),0):Bt.next)&&!(Rt=Rt.call(Bt,Ln[1])).done)return Rt;switch(Bt=0,Rt&&(Ln=[2&Ln[0],Rt.value]),Ln[0]){case 0:case 1:Rt=Ln;break;case 4:return se.label++,{value:Ln[1],done:!1};case 5:se.label++,Bt=Ln[1],Ln=[0];continue;case 7:Ln=se.ops.pop(),se.trys.pop();continue;default:if(Rt=se.trys,!((Rt=Rt.length>0&&Rt[Rt.length-1])||Ln[0]!==6&&Ln[0]!==2)){se=0;continue}if(Ln[0]===3&&(!Rt||Ln[1]>Rt[0]&&Ln[1]',"select"),this.addActionButton(Bt,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(Bt,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(Bt,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(Bt,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(Bt,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(Bt,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(Bt,'',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(At){var se=document.createElement("div");se.className=""+xt.toolbarButtonStyleClass.name,se.setAttribute("data-type-name",At.typeName),se.innerHTML=At.icon,se.addEventListener("click",function(){xt.markerToolbarButtonClicked(se,At)}),xt.buttons.push(se),xt.markerButtons.push(se)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var Rt=document.createElement("div");Rt.className=this.toolbarBlockStyleClass.name,Rt.style.whiteSpace="nowrap",Rt.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Rt),this.addActionButton(Rt,'',"render"),this.addActionButton(Rt,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},Ot.prototype.addButtonClickListener=function(Ct){this.buttonClickListeners.push(Ct)},Ot.prototype.removeButtonClickListener=function(Ct){this.buttonClickListeners.indexOf(Ct)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Ct),1)},Ot.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Ot.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Ct=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var xt=0;xt',"select"),this.addActionButton(Bt,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(Bt,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(Bt,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(Bt,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(Bt,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(Bt,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(Bt,'',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(Et){var se=document.createElement("div");se.className=""+xt.toolbarButtonStyleClass.name,se.setAttribute("data-type-name",Et.typeName),se.innerHTML=Et.icon,se.addEventListener("click",function(){xt.markerToolbarButtonClicked(se,Et)}),xt.buttons.push(se),xt.markerButtons.push(se)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var Rt=document.createElement("div");Rt.className=this.toolbarBlockStyleClass.name,Rt.style.whiteSpace="nowrap",Rt.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Rt),this.addActionButton(Rt,'',"render"),this.addActionButton(Rt,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},Ot.prototype.addButtonClickListener=function(Ct){this.buttonClickListeners.push(Ct)},Ot.prototype.removeButtonClickListener=function(Ct){this.buttonClickListeners.indexOf(Ct)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Ct),1)},Ot.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Ot.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Ct=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var xt=0;xt')||this;return se.colors=[],se.addTransparent=!1,se.colorBoxes=[],se.colors=Bt,se.currentColor=Rt,se.setCurrentColor=se.setCurrentColor.bind(se),se.getColorBox=se.getColorBox.bind(se),se}return qt(Ct,Ot),Ct.prototype.getUi=function(){var xt=this,Bt=document.createElement("div");return Bt.style.overflow="hidden",Bt.style.whiteSpace="nowrap",this.colors.forEach(function(Rt){var At=xt.getColorBox(Rt);Bt.appendChild(At),xt.colorBoxes.push(At)}),Bt},Ct.prototype.getColorBox=function(xt){var Bt=this,Rt=this.uiStyleSettings.toolbarHeight/4,At=this.uiStyleSettings.toolbarHeight-Rt,se=document.createElement("div");se.style.display="inline-block",se.style.boxSizing="content-box",se.style.width=At-2+"px",se.style.height=At-2+"px",se.style.padding="1px",se.style.marginRight="2px",se.style.marginBottom="2px",se.style.borderWidth="2px",se.style.borderStyle="solid",se.style.borderRadius=(At+2)/2+"px",se.style.borderColor=xt===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){Bt.setCurrentColor(xt,se)});var _e=document.createElement("div");return _e.style.display="inline-block",_e.style.width=At-2+"px",_e.style.height=At-2+"px",_e.style.backgroundColor=xt,_e.style.borderRadius=At/2+"px",xt==="transparent"&&(_e.style.fill=this.uiStyleSettings.toolboxAccentColor,_e.innerHTML=` + `))},Ot.prototype.show=function(Ct){var xt;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Ct,this.uiContainer.className=this.toolboxStyleClass.name+" "+((xt=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&xt!==void 0?xt:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Ot.prototype.setPanelButtons=function(Ct){var xt,Bt,Rt=this;this.panels=Ct,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((xt=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&xt!==void 0?xt:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Bt=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Bt!==void 0?Bt:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Et){var se;Et.uiStyleSettings=Rt.uiStyleSettings;var _e=document.createElement("div");_e.className=Rt.toolboxButtonStyleClass.name+" "+((se=Rt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&se!==void 0?se:Rt.toolboxButtonStyleColorsClass.name),_e.innerHTML=Et.icon,_e.title=Et.title,_e.addEventListener("click",function(){Rt.panelButtonClick(Et)}),Rt.panelButtons.push(_e),Rt.buttonRow.appendChild(_e)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Ot.prototype.panelButtonClick=function(Ct){var xt=this,Bt=-1;if(Ct!==this.activePanel){Bt=this.panels.indexOf(Ct),this.panelRow.innerHTML="";var Rt=Ct.getUi();Rt.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Rt),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=Ct}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){xt.displayMode==="inline"?xt.panelRow.style.display="none":xt.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Et,se){var _e,nn;Et.className=xt.toolboxButtonStyleClass.name+" "+(se===Bt?""+((_e=xt.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&_e!==void 0?_e:xt.toolboxActiveButtonStyleColorsClass.name):""+((nn=xt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&nn!==void 0?nn:xt.toolboxButtonStyleColorsClass.name))})},Ot}(),vt=function(Ot,Ct){this.title=Ot,this.icon=Ct},Lt=function(Ot){function Ct(xt,Bt,Rt,Et){var se=Ot.call(this,xt,Et||'')||this;return se.colors=[],se.addTransparent=!1,se.colorBoxes=[],se.colors=Bt,se.currentColor=Rt,se.setCurrentColor=se.setCurrentColor.bind(se),se.getColorBox=se.getColorBox.bind(se),se}return qt(Ct,Ot),Ct.prototype.getUi=function(){var xt=this,Bt=document.createElement("div");return Bt.style.overflow="hidden",Bt.style.whiteSpace="nowrap",this.colors.forEach(function(Rt){var Et=xt.getColorBox(Rt);Bt.appendChild(Et),xt.colorBoxes.push(Et)}),Bt},Ct.prototype.getColorBox=function(xt){var Bt=this,Rt=this.uiStyleSettings.toolbarHeight/4,Et=this.uiStyleSettings.toolbarHeight-Rt,se=document.createElement("div");se.style.display="inline-block",se.style.boxSizing="content-box",se.style.width=Et-2+"px",se.style.height=Et-2+"px",se.style.padding="1px",se.style.marginRight="2px",se.style.marginBottom="2px",se.style.borderWidth="2px",se.style.borderStyle="solid",se.style.borderRadius=(Et+2)/2+"px",se.style.borderColor=xt===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){Bt.setCurrentColor(xt,se)});var _e=document.createElement("div");return _e.style.display="inline-block",_e.style.width=Et-2+"px",_e.style.height=Et-2+"px",_e.style.backgroundColor=xt,_e.style.borderRadius=Et/2+"px",xt==="transparent"&&(_e.style.fill=this.uiStyleSettings.toolboxAccentColor,_e.innerHTML=` - `),se.appendChild(_e),se},Ct.prototype.setCurrentColor=function(xt,Bt){var Rt=this;this.currentColor=xt,this.colorBoxes.forEach(function(At){At.style.borderColor=At===Bt?Rt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(xt)},Ct}(vt),Ft=function(){function Ot(Ct,xt,Bt){this._state="new",this._isSelected=!1,this._container=Ct,this._overlayContainer=xt,this.globalSettings=Bt,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Ot.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Ot.prototype.ownsTarget=function(Ct){return!1},Object.defineProperty(Ot.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Ot.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Ot.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Ot.prototype.pointerDown=function(Ct,xt){},Ot.prototype.dblClick=function(Ct,xt){},Ot.prototype.manipulate=function(Ct){},Ot.prototype.pointerUp=function(Ct){this.stateChanged()},Ot.prototype.dispose=function(){},Ot.prototype.addMarkerVisualToContainer=function(Ct){this.container.childNodes.length>0?this.container.insertBefore(Ct,this.container.childNodes[0]):this.container.appendChild(Ct)},Ot.prototype.getState=function(){return{typeName:Ot.typeName,state:this.state,notes:this.notes}},Ot.prototype.restoreState=function(Ct){this._state=Ct.state,this.notes=Ct.notes},Ot.prototype.scale=function(Ct,xt){},Ot.prototype.colorChanged=function(Ct){this.onColorChanged&&this.onColorChanged(Ct),this.stateChanged()},Ot.prototype.fillColorChanged=function(Ct){this.onFillColorChanged&&this.onFillColorChanged(Ct),this.stateChanged()},Ot.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Ct=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Ct.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Ct)&&this.onStateChanged(this)}},Ot.typeName="MarkerBase",Ot}(),Wt=function(){function Ot(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Ot.prototype.findGripByVisual=function(Ct){return this.topLeft.ownsTarget(Ct)?this.topLeft:this.topCenter.ownsTarget(Ct)?this.topCenter:this.topRight.ownsTarget(Ct)?this.topRight:this.centerLeft.ownsTarget(Ct)?this.centerLeft:this.centerRight.ownsTarget(Ct)?this.centerRight:this.bottomLeft.ownsTarget(Ct)?this.bottomLeft:this.bottomCenter.ownsTarget(Ct)?this.bottomCenter:this.bottomRight.ownsTarget(Ct)?this.bottomRight:void 0},Ot}(),Kt=function(){function Ot(){this.GRIP_SIZE=10,this.visual=le.createGroup(),this.visual.appendChild(le.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(le.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Ot.prototype.ownsTarget=function(Ct){return Ct===this.visual||Ct===this.visual.childNodes[0]||Ct===this.visual.childNodes[1]},Ot}(),_t=function(){function Ot(){}return Ot.toITransformMatrix=function(Ct){return{a:Ct.a,b:Ct.b,c:Ct.c,d:Ct.d,e:Ct.e,f:Ct.f}},Ot.toSVGMatrix=function(Ct,xt){return Ct.a=xt.a,Ct.b=xt.b,Ct.c=xt.c,Ct.d=xt.d,Ct.e=xt.e,Ct.f=xt.f,Ct},Ot}(),ne=function(Ot){function Ct(xt,Bt,Rt){var At=Ot.call(this,xt,Bt,Rt)||this;return At.left=0,At.top=0,At.width=0,At.height=0,At.defaultSize={x:50,y:20},At.offsetX=0,At.offsetY=0,At.rotationAngle=0,At.CB_DISTANCE=10,At._suppressMarkerCreateEvent=!1,At.container.transform.baseVal.appendItem(le.createTransform()),At.setupControlBox(),At}return qt(Ct,Ot),Object.defineProperty(Ct.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"visual",{get:function(){return this._visual},set:function(xt){this._visual=xt;var Bt=le.createTransform();this._visual.transform.baseVal.appendItem(Bt)},enumerable:!1,configurable:!0}),Ct.prototype.ownsTarget=function(xt){return!!Ot.prototype.ownsTarget.call(this,xt)||!!(this.controlGrips.findGripByVisual(xt)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(xt))},Ct.prototype.pointerDown=function(xt,Bt){Ot.prototype.pointerDown.call(this,xt,Bt),this.state==="new"&&(this.left=xt.x,this.top=xt.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Rt=this.unrotatePoint(xt);if(this.manipulationStartX=Rt.x,this.manipulationStartY=Rt.y,this.offsetX=Rt.x-this.left,this.offsetY=Rt.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Bt),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Bt)){this.activeGrip=this.rotatorGrip;var At=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=At.x-this.width/2,this.top=At.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var se=this.container.transform.baseVal.getItem(0);se.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(se,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Ct.prototype.pointerUp=function(xt){var Bt=this.state;Ot.prototype.pointerUp.call(this,xt),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(xt),this._state="select",Bt==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Ct.prototype.moveVisual=function(xt){this.visual.style.transform="translate("+xt.x+"px, "+xt.y+"px)"},Ct.prototype.manipulate=function(xt){var Bt=this.unrotatePoint(xt);this.state==="creating"?this.resize(xt):this.state==="move"?(this.left=this.manipulationStartLeft+(Bt.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Bt.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Bt):this.state==="rotate"&&this.rotate(xt)},Ct.prototype.resize=function(xt){var Bt=this.manipulationStartLeft,Rt=this.manipulationStartWidth,At=this.manipulationStartTop,se=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Bt=this.manipulationStartLeft+xt.x-this.manipulationStartX,Rt=this.manipulationStartWidth+this.manipulationStartLeft-Bt;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Rt=this.manipulationStartWidth+xt.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:At=this.manipulationStartTop+xt.y-this.manipulationStartY,se=this.manipulationStartHeight+this.manipulationStartTop-At;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:se=this.manipulationStartHeight+xt.y-this.manipulationStartY}Rt>=0?(this.left=Bt,this.width=Rt):(this.left=Bt+Rt,this.width=-Rt),se>=0?(this.top=At,this.height=se):(this.top=At+se,this.height=-se),this.setSize()},Ct.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Ct.prototype.rotate=function(xt){if(Math.abs(xt.x-this.centerX)>.1){var Bt=Math.sign(xt.x-this.centerX);this.rotationAngle=180*Math.atan((xt.y-this.centerY)/(xt.x-this.centerX))/Math.PI+90*Bt,this.applyRotation()}},Ct.prototype.applyRotation=function(){var xt=this.container.transform.baseVal.getItem(0);xt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(xt,0)},Ct.prototype.rotatePoint=function(xt){if(this.rotationAngle===0)return xt;var Bt=this.container.getCTM(),Rt=le.createPoint(xt.x,xt.y);return{x:(Rt=Rt.matrixTransform(Bt)).x,y:Rt.y}},Ct.prototype.unrotatePoint=function(xt){if(this.rotationAngle===0)return xt;var Bt=this.container.getCTM();Bt=Bt.inverse();var Rt=le.createPoint(xt.x,xt.y);return{x:(Rt=Rt.matrixTransform(Bt)).x,y:Rt.y}},Ct.prototype.select=function(){Ot.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Ct.prototype.deselect=function(){Ot.prototype.deselect.call(this),this.controlBox.style.display="none"},Ct.prototype.setupControlBox=function(){this.controlBox=le.createGroup();var xt=le.createTransform();xt.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(xt),this.container.appendChild(this.controlBox),this.controlRect=le.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=le.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new Wt,this.addControlGrips(),this.controlBox.style.display="none"},Ct.prototype.adjustControlBox=function(){var xt=this.controlBox.transform.baseVal.getItem(0);xt.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(xt,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},Ct.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},Ct.prototype.createGrip=function(){var xt=new Kt;return xt.visual.transform.baseVal.appendItem(le.createTransform()),this.controlBox.appendChild(xt.visual),xt},Ct.prototype.positionGrips=function(){var xt=this.controlGrips.topLeft.GRIP_SIZE,Bt=-xt/2,Rt=Bt,At=(this.width+this.CB_DISTANCE)/2-xt/2,se=(this.height+this.CB_DISTANCE)/2-xt/2,_e=this.height+this.CB_DISTANCE-xt/2,nn=this.width+this.CB_DISTANCE-xt/2;this.positionGrip(this.controlGrips.topLeft.visual,Bt,Rt),this.positionGrip(this.controlGrips.topCenter.visual,At,Rt),this.positionGrip(this.controlGrips.topRight.visual,nn,Rt),this.positionGrip(this.controlGrips.centerLeft.visual,Bt,se),this.positionGrip(this.controlGrips.centerRight.visual,nn,se),this.positionGrip(this.controlGrips.bottomLeft.visual,Bt,_e),this.positionGrip(this.controlGrips.bottomCenter.visual,At,_e),this.positionGrip(this.controlGrips.bottomRight.visual,nn,_e),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,At,Rt-3*this.CB_DISTANCE)},Ct.prototype.positionGrip=function(xt,Bt,Rt){var At=xt.transform.baseVal.getItem(0);At.setTranslate(Bt,Rt),xt.transform.baseVal.replaceItem(At,0)},Ct.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Ct.prototype.showControlBox=function(){this.controlBox.style.display=""},Ct.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:_t.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:_t.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Ot.prototype.getState.call(this))},Ct.prototype.restoreState=function(xt){Ot.prototype.restoreState.call(this,xt);var Bt=xt;this.left=Bt.left,this.top=Bt.top,this.width=Bt.width,this.height=Bt.height,this.rotationAngle=Bt.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(_t.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Bt.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(_t.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Bt.containerTransformMatrix))},Ct.prototype.scale=function(xt,Bt){Ot.prototype.scale.call(this,xt,Bt);var Rt=this.rotatePoint({x:this.left,y:this.top}),At=this.unrotatePoint({x:Rt.x*xt,y:Rt.y*Bt});this.left=At.x,this.top=At.y,this.width=this.width*xt,this.height=this.height*Bt,this.adjustControlBox()},Ct}(Ft),$t=function(Ot){function Ct(xt,Bt,Rt){var At=Ot.call(this,xt,Bt,Rt)||this;return At.fillColor="transparent",At.strokeColor="transparent",At.strokeWidth=0,At.strokeDasharray="",At.opacity=1,At.setStrokeColor=At.setStrokeColor.bind(At),At.setFillColor=At.setFillColor.bind(At),At.setStrokeWidth=At.setStrokeWidth.bind(At),At.setStrokeDasharray=At.setStrokeDasharray.bind(At),At.createVisual=At.createVisual.bind(At),At}return qt(Ct,Ot),Ct.prototype.ownsTarget=function(xt){return!(!Ot.prototype.ownsTarget.call(this,xt)&&xt!==this.visual)},Ct.prototype.createVisual=function(){this.visual=le.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},Ct.prototype.pointerDown=function(xt,Bt){Ot.prototype.pointerDown.call(this,xt,Bt),this.state==="new"&&(this.createVisual(),this.moveVisual(xt),this._state="creating")},Ct.prototype.manipulate=function(xt){Ot.prototype.manipulate.call(this,xt)},Ct.prototype.resize=function(xt){Ot.prototype.resize.call(this,xt),this.setSize()},Ct.prototype.setSize=function(){Ot.prototype.setSize.call(this),le.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Ct.prototype.pointerUp=function(xt){Ot.prototype.pointerUp.call(this,xt),this.setSize()},Ct.prototype.setStrokeColor=function(xt){this.strokeColor=xt,this.visual&&le.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(xt),this.stateChanged()},Ct.prototype.setFillColor=function(xt){this.fillColor=xt,this.visual&&le.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Ct.prototype.setStrokeWidth=function(xt){this.strokeWidth=xt,this.visual&&le.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ct.prototype.setStrokeDasharray=function(xt){this.strokeDasharray=xt,this.visual&&le.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Ct.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Ot.prototype.getState.call(this))},Ct.prototype.restoreState=function(xt){var Bt=xt;this.fillColor=Bt.fillColor,this.strokeColor=Bt.strokeColor,this.strokeWidth=Bt.strokeWidth,this.strokeDasharray=Bt.strokeDasharray,this.opacity=Bt.opacity,this.createVisual(),Ot.prototype.restoreState.call(this,xt),this.setSize()},Ct.prototype.scale=function(xt,Bt){Ot.prototype.scale.call(this,xt,Bt),this.setSize()},Ct.title="Rectangle marker",Ct}(ne),ve=function(Ot){function Ct(xt,Bt,Rt,At){var se=Ot.call(this,xt,At||'')||this;return se.widths=[],se.widthBoxes=[],se.widths=Bt,se.currentWidth=Rt,se.setCurrentWidth=se.setCurrentWidth.bind(se),se}return qt(Ct,Ot),Ct.prototype.getUi=function(){var xt=this,Bt=document.createElement("div");return Bt.style.display="flex",Bt.style.overflow="hidden",Bt.style.flexGrow="2",this.widths.forEach(function(Rt){var At=document.createElement("div");At.style.display="flex",At.style.flexGrow="2",At.style.alignItems="center",At.style.justifyContent="space-between",At.style.padding="5px",At.style.borderWidth="2px",At.style.borderStyle="solid",At.style.borderColor=Rt===xt.currentWidth?xt.uiStyleSettings.toolboxAccentColor:"transparent",At.addEventListener("click",function(){xt.setCurrentWidth(Rt,At)}),Bt.appendChild(At);var se=document.createElement("div");se.innerText=Rt.toString(),se.style.marginRight="5px",At.appendChild(se);var _e=document.createElement("div");_e.style.minHeight="20px",_e.style.flexGrow="2",_e.style.display="flex",_e.style.alignItems="center";var nn=document.createElement("hr");nn.style.minWidth="20px",nn.style.border="0px",nn.style.borderTop=Rt+"px solid "+xt.uiStyleSettings.toolboxColor,nn.style.flexGrow="2",_e.appendChild(nn),At.appendChild(_e),xt.widthBoxes.push(At)}),Bt},Ct.prototype.setCurrentWidth=function(xt,Bt){var Rt=this;this.currentWidth=xt,this.widthBoxes.forEach(function(At){At.style.borderColor=At===Bt?Rt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Ct}(vt),re=function(Ot){function Ct(xt,Bt,Rt,At){var se=Ot.call(this,xt,At||'')||this;return se.styles=[],se.styleBoxes=[],se.styles=Bt,se.currentStyle=Rt,se.setCurrentStyle=se.setCurrentStyle.bind(se),se}return qt(Ct,Ot),Ct.prototype.getUi=function(){var xt=this,Bt=document.createElement("div");return Bt.style.display="flex",Bt.style.overflow="hidden",Bt.style.flexGrow="2",this.styles.forEach(function(Rt){var At=document.createElement("div");At.style.display="flex",At.style.alignItems="center",At.style.justifyContent="space-between",At.style.padding="5px",At.style.borderWidth="2px",At.style.borderStyle="solid",At.style.overflow="hidden",At.style.maxWidth=100/xt.styles.length-5+"%",At.style.borderColor=Rt===xt.currentStyle?xt.uiStyleSettings.toolboxAccentColor:"transparent",At.addEventListener("click",function(){xt.setCurrentStyle(Rt,At)}),Bt.appendChild(At);var se=document.createElement("div");se.style.minHeight="20px",se.style.flexGrow="2",se.style.overflow="hidden";var _e=` + `),se.appendChild(_e),se},Ct.prototype.setCurrentColor=function(xt,Bt){var Rt=this;this.currentColor=xt,this.colorBoxes.forEach(function(Et){Et.style.borderColor=Et===Bt?Rt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(xt)},Ct}(vt),Ft=function(){function Ot(Ct,xt,Bt){this._state="new",this._isSelected=!1,this._container=Ct,this._overlayContainer=xt,this.globalSettings=Bt,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Ot.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Ot.prototype.ownsTarget=function(Ct){return!1},Object.defineProperty(Ot.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Ot.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Ot.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Ot.prototype.pointerDown=function(Ct,xt){},Ot.prototype.dblClick=function(Ct,xt){},Ot.prototype.manipulate=function(Ct){},Ot.prototype.pointerUp=function(Ct){this.stateChanged()},Ot.prototype.dispose=function(){},Ot.prototype.addMarkerVisualToContainer=function(Ct){this.container.childNodes.length>0?this.container.insertBefore(Ct,this.container.childNodes[0]):this.container.appendChild(Ct)},Ot.prototype.getState=function(){return{typeName:Ot.typeName,state:this.state,notes:this.notes}},Ot.prototype.restoreState=function(Ct){this._state=Ct.state,this.notes=Ct.notes},Ot.prototype.scale=function(Ct,xt){},Ot.prototype.colorChanged=function(Ct){this.onColorChanged&&this.onColorChanged(Ct),this.stateChanged()},Ot.prototype.fillColorChanged=function(Ct){this.onFillColorChanged&&this.onFillColorChanged(Ct),this.stateChanged()},Ot.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Ct=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Ct.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Ct)&&this.onStateChanged(this)}},Ot.typeName="MarkerBase",Ot}(),Wt=function(){function Ot(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Ot.prototype.findGripByVisual=function(Ct){return this.topLeft.ownsTarget(Ct)?this.topLeft:this.topCenter.ownsTarget(Ct)?this.topCenter:this.topRight.ownsTarget(Ct)?this.topRight:this.centerLeft.ownsTarget(Ct)?this.centerLeft:this.centerRight.ownsTarget(Ct)?this.centerRight:this.bottomLeft.ownsTarget(Ct)?this.bottomLeft:this.bottomCenter.ownsTarget(Ct)?this.bottomCenter:this.bottomRight.ownsTarget(Ct)?this.bottomRight:void 0},Ot}(),Kt=function(){function Ot(){this.GRIP_SIZE=10,this.visual=le.createGroup(),this.visual.appendChild(le.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(le.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Ot.prototype.ownsTarget=function(Ct){return Ct===this.visual||Ct===this.visual.childNodes[0]||Ct===this.visual.childNodes[1]},Ot}(),_t=function(){function Ot(){}return Ot.toITransformMatrix=function(Ct){return{a:Ct.a,b:Ct.b,c:Ct.c,d:Ct.d,e:Ct.e,f:Ct.f}},Ot.toSVGMatrix=function(Ct,xt){return Ct.a=xt.a,Ct.b=xt.b,Ct.c=xt.c,Ct.d=xt.d,Ct.e=xt.e,Ct.f=xt.f,Ct},Ot}(),ne=function(Ot){function Ct(xt,Bt,Rt){var Et=Ot.call(this,xt,Bt,Rt)||this;return Et.left=0,Et.top=0,Et.width=0,Et.height=0,Et.defaultSize={x:50,y:20},Et.offsetX=0,Et.offsetY=0,Et.rotationAngle=0,Et.CB_DISTANCE=10,Et._suppressMarkerCreateEvent=!1,Et.container.transform.baseVal.appendItem(le.createTransform()),Et.setupControlBox(),Et}return qt(Ct,Ot),Object.defineProperty(Ct.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"visual",{get:function(){return this._visual},set:function(xt){this._visual=xt;var Bt=le.createTransform();this._visual.transform.baseVal.appendItem(Bt)},enumerable:!1,configurable:!0}),Ct.prototype.ownsTarget=function(xt){return!!Ot.prototype.ownsTarget.call(this,xt)||!!(this.controlGrips.findGripByVisual(xt)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(xt))},Ct.prototype.pointerDown=function(xt,Bt){Ot.prototype.pointerDown.call(this,xt,Bt),this.state==="new"&&(this.left=xt.x,this.top=xt.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Rt=this.unrotatePoint(xt);if(this.manipulationStartX=Rt.x,this.manipulationStartY=Rt.y,this.offsetX=Rt.x-this.left,this.offsetY=Rt.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Bt),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Bt)){this.activeGrip=this.rotatorGrip;var Et=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Et.x-this.width/2,this.top=Et.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var se=this.container.transform.baseVal.getItem(0);se.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(se,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Ct.prototype.pointerUp=function(xt){var Bt=this.state;Ot.prototype.pointerUp.call(this,xt),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(xt),this._state="select",Bt==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Ct.prototype.moveVisual=function(xt){this.visual.style.transform="translate("+xt.x+"px, "+xt.y+"px)"},Ct.prototype.manipulate=function(xt){var Bt=this.unrotatePoint(xt);this.state==="creating"?this.resize(xt):this.state==="move"?(this.left=this.manipulationStartLeft+(Bt.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Bt.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Bt):this.state==="rotate"&&this.rotate(xt)},Ct.prototype.resize=function(xt){var Bt=this.manipulationStartLeft,Rt=this.manipulationStartWidth,Et=this.manipulationStartTop,se=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Bt=this.manipulationStartLeft+xt.x-this.manipulationStartX,Rt=this.manipulationStartWidth+this.manipulationStartLeft-Bt;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Rt=this.manipulationStartWidth+xt.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Et=this.manipulationStartTop+xt.y-this.manipulationStartY,se=this.manipulationStartHeight+this.manipulationStartTop-Et;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:se=this.manipulationStartHeight+xt.y-this.manipulationStartY}Rt>=0?(this.left=Bt,this.width=Rt):(this.left=Bt+Rt,this.width=-Rt),se>=0?(this.top=Et,this.height=se):(this.top=Et+se,this.height=-se),this.setSize()},Ct.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Ct.prototype.rotate=function(xt){if(Math.abs(xt.x-this.centerX)>.1){var Bt=Math.sign(xt.x-this.centerX);this.rotationAngle=180*Math.atan((xt.y-this.centerY)/(xt.x-this.centerX))/Math.PI+90*Bt,this.applyRotation()}},Ct.prototype.applyRotation=function(){var xt=this.container.transform.baseVal.getItem(0);xt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(xt,0)},Ct.prototype.rotatePoint=function(xt){if(this.rotationAngle===0)return xt;var Bt=this.container.getCTM(),Rt=le.createPoint(xt.x,xt.y);return{x:(Rt=Rt.matrixTransform(Bt)).x,y:Rt.y}},Ct.prototype.unrotatePoint=function(xt){if(this.rotationAngle===0)return xt;var Bt=this.container.getCTM();Bt=Bt.inverse();var Rt=le.createPoint(xt.x,xt.y);return{x:(Rt=Rt.matrixTransform(Bt)).x,y:Rt.y}},Ct.prototype.select=function(){Ot.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Ct.prototype.deselect=function(){Ot.prototype.deselect.call(this),this.controlBox.style.display="none"},Ct.prototype.setupControlBox=function(){this.controlBox=le.createGroup();var xt=le.createTransform();xt.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(xt),this.container.appendChild(this.controlBox),this.controlRect=le.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=le.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new Wt,this.addControlGrips(),this.controlBox.style.display="none"},Ct.prototype.adjustControlBox=function(){var xt=this.controlBox.transform.baseVal.getItem(0);xt.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(xt,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},Ct.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},Ct.prototype.createGrip=function(){var xt=new Kt;return xt.visual.transform.baseVal.appendItem(le.createTransform()),this.controlBox.appendChild(xt.visual),xt},Ct.prototype.positionGrips=function(){var xt=this.controlGrips.topLeft.GRIP_SIZE,Bt=-xt/2,Rt=Bt,Et=(this.width+this.CB_DISTANCE)/2-xt/2,se=(this.height+this.CB_DISTANCE)/2-xt/2,_e=this.height+this.CB_DISTANCE-xt/2,nn=this.width+this.CB_DISTANCE-xt/2;this.positionGrip(this.controlGrips.topLeft.visual,Bt,Rt),this.positionGrip(this.controlGrips.topCenter.visual,Et,Rt),this.positionGrip(this.controlGrips.topRight.visual,nn,Rt),this.positionGrip(this.controlGrips.centerLeft.visual,Bt,se),this.positionGrip(this.controlGrips.centerRight.visual,nn,se),this.positionGrip(this.controlGrips.bottomLeft.visual,Bt,_e),this.positionGrip(this.controlGrips.bottomCenter.visual,Et,_e),this.positionGrip(this.controlGrips.bottomRight.visual,nn,_e),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Et,Rt-3*this.CB_DISTANCE)},Ct.prototype.positionGrip=function(xt,Bt,Rt){var Et=xt.transform.baseVal.getItem(0);Et.setTranslate(Bt,Rt),xt.transform.baseVal.replaceItem(Et,0)},Ct.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Ct.prototype.showControlBox=function(){this.controlBox.style.display=""},Ct.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:_t.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:_t.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Ot.prototype.getState.call(this))},Ct.prototype.restoreState=function(xt){Ot.prototype.restoreState.call(this,xt);var Bt=xt;this.left=Bt.left,this.top=Bt.top,this.width=Bt.width,this.height=Bt.height,this.rotationAngle=Bt.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(_t.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Bt.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(_t.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Bt.containerTransformMatrix))},Ct.prototype.scale=function(xt,Bt){Ot.prototype.scale.call(this,xt,Bt);var Rt=this.rotatePoint({x:this.left,y:this.top}),Et=this.unrotatePoint({x:Rt.x*xt,y:Rt.y*Bt});this.left=Et.x,this.top=Et.y,this.width=this.width*xt,this.height=this.height*Bt,this.adjustControlBox()},Ct}(Ft),$t=function(Ot){function Ct(xt,Bt,Rt){var Et=Ot.call(this,xt,Bt,Rt)||this;return Et.fillColor="transparent",Et.strokeColor="transparent",Et.strokeWidth=0,Et.strokeDasharray="",Et.opacity=1,Et.setStrokeColor=Et.setStrokeColor.bind(Et),Et.setFillColor=Et.setFillColor.bind(Et),Et.setStrokeWidth=Et.setStrokeWidth.bind(Et),Et.setStrokeDasharray=Et.setStrokeDasharray.bind(Et),Et.createVisual=Et.createVisual.bind(Et),Et}return qt(Ct,Ot),Ct.prototype.ownsTarget=function(xt){return!(!Ot.prototype.ownsTarget.call(this,xt)&&xt!==this.visual)},Ct.prototype.createVisual=function(){this.visual=le.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},Ct.prototype.pointerDown=function(xt,Bt){Ot.prototype.pointerDown.call(this,xt,Bt),this.state==="new"&&(this.createVisual(),this.moveVisual(xt),this._state="creating")},Ct.prototype.manipulate=function(xt){Ot.prototype.manipulate.call(this,xt)},Ct.prototype.resize=function(xt){Ot.prototype.resize.call(this,xt),this.setSize()},Ct.prototype.setSize=function(){Ot.prototype.setSize.call(this),le.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Ct.prototype.pointerUp=function(xt){Ot.prototype.pointerUp.call(this,xt),this.setSize()},Ct.prototype.setStrokeColor=function(xt){this.strokeColor=xt,this.visual&&le.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(xt),this.stateChanged()},Ct.prototype.setFillColor=function(xt){this.fillColor=xt,this.visual&&le.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Ct.prototype.setStrokeWidth=function(xt){this.strokeWidth=xt,this.visual&&le.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ct.prototype.setStrokeDasharray=function(xt){this.strokeDasharray=xt,this.visual&&le.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Ct.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Ot.prototype.getState.call(this))},Ct.prototype.restoreState=function(xt){var Bt=xt;this.fillColor=Bt.fillColor,this.strokeColor=Bt.strokeColor,this.strokeWidth=Bt.strokeWidth,this.strokeDasharray=Bt.strokeDasharray,this.opacity=Bt.opacity,this.createVisual(),Ot.prototype.restoreState.call(this,xt),this.setSize()},Ct.prototype.scale=function(xt,Bt){Ot.prototype.scale.call(this,xt,Bt),this.setSize()},Ct.title="Rectangle marker",Ct}(ne),ve=function(Ot){function Ct(xt,Bt,Rt,Et){var se=Ot.call(this,xt,Et||'')||this;return se.widths=[],se.widthBoxes=[],se.widths=Bt,se.currentWidth=Rt,se.setCurrentWidth=se.setCurrentWidth.bind(se),se}return qt(Ct,Ot),Ct.prototype.getUi=function(){var xt=this,Bt=document.createElement("div");return Bt.style.display="flex",Bt.style.overflow="hidden",Bt.style.flexGrow="2",this.widths.forEach(function(Rt){var Et=document.createElement("div");Et.style.display="flex",Et.style.flexGrow="2",Et.style.alignItems="center",Et.style.justifyContent="space-between",Et.style.padding="5px",Et.style.borderWidth="2px",Et.style.borderStyle="solid",Et.style.borderColor=Rt===xt.currentWidth?xt.uiStyleSettings.toolboxAccentColor:"transparent",Et.addEventListener("click",function(){xt.setCurrentWidth(Rt,Et)}),Bt.appendChild(Et);var se=document.createElement("div");se.innerText=Rt.toString(),se.style.marginRight="5px",Et.appendChild(se);var _e=document.createElement("div");_e.style.minHeight="20px",_e.style.flexGrow="2",_e.style.display="flex",_e.style.alignItems="center";var nn=document.createElement("hr");nn.style.minWidth="20px",nn.style.border="0px",nn.style.borderTop=Rt+"px solid "+xt.uiStyleSettings.toolboxColor,nn.style.flexGrow="2",_e.appendChild(nn),Et.appendChild(_e),xt.widthBoxes.push(Et)}),Bt},Ct.prototype.setCurrentWidth=function(xt,Bt){var Rt=this;this.currentWidth=xt,this.widthBoxes.forEach(function(Et){Et.style.borderColor=Et===Bt?Rt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Ct}(vt),re=function(Ot){function Ct(xt,Bt,Rt,Et){var se=Ot.call(this,xt,Et||'')||this;return se.styles=[],se.styleBoxes=[],se.styles=Bt,se.currentStyle=Rt,se.setCurrentStyle=se.setCurrentStyle.bind(se),se}return qt(Ct,Ot),Ct.prototype.getUi=function(){var xt=this,Bt=document.createElement("div");return Bt.style.display="flex",Bt.style.overflow="hidden",Bt.style.flexGrow="2",this.styles.forEach(function(Rt){var Et=document.createElement("div");Et.style.display="flex",Et.style.alignItems="center",Et.style.justifyContent="space-between",Et.style.padding="5px",Et.style.borderWidth="2px",Et.style.borderStyle="solid",Et.style.overflow="hidden",Et.style.maxWidth=100/xt.styles.length-5+"%",Et.style.borderColor=Rt===xt.currentStyle?xt.uiStyleSettings.toolboxAccentColor:"transparent",Et.addEventListener("click",function(){xt.setCurrentStyle(Rt,Et)}),Bt.appendChild(Et);var se=document.createElement("div");se.style.minHeight="20px",se.style.flexGrow="2",se.style.overflow="hidden";var _e=` - `;se.innerHTML=_e,At.appendChild(se),xt.styleBoxes.push(At)}),Bt},Ct.prototype.setCurrentStyle=function(xt,Bt){var Rt=this;this.currentStyle=xt,this.styleBoxes.forEach(function(At){At.style.borderColor=At===Bt?Rt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Ct}(vt),Oe=function(Ot){function Ct(xt,Bt,Rt){var At=Ot.call(this,xt,Bt,Rt)||this;return At.strokeColor=Rt.defaultColor,At.strokeWidth=Rt.defaultStrokeWidth,At.strokeDasharray=Rt.defaultStrokeDasharray,At.strokePanel=new Lt("Line color",Rt.defaultColorSet,Rt.defaultColor),At.strokePanel.onColorChanged=At.setStrokeColor,At.strokeWidthPanel=new ve("Line width",Rt.defaultStrokeWidths,Rt.defaultStrokeWidth),At.strokeWidthPanel.onWidthChanged=At.setStrokeWidth,At.strokeStylePanel=new re("Line style",Rt.defaultStrokeDasharrays,Rt.defaultStrokeDasharray),At.strokeStylePanel.onStyleChanged=At.setStrokeDasharray,At}return qt(Ct,Ot),Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=Ot.prototype.getState.call(this);return xt.typeName=Ct.typeName,xt},Ct.typeName="FrameMarker",Ct.title="Frame marker",Ct.icon='',Ct}($t),me=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},Fe=function(Ot){function Ct(xt,Bt,Rt){var At=Ot.call(this,xt,Bt,Rt)||this;return At.x1=0,At.y1=0,At.x2=0,At.y2=0,At.defaultLength=50,At.manipulationStartX=0,At.manipulationStartY=0,At.manipulationStartX1=0,At.manipulationStartY1=0,At.manipulationStartX2=0,At.manipulationStartY2=0,At.setupControlBox(),At}return qt(Ct,Ot),Ct.prototype.ownsTarget=function(xt){return!!Ot.prototype.ownsTarget.call(this,xt)||!(!this.grip1.ownsTarget(xt)&&!this.grip2.ownsTarget(xt))},Ct.prototype.pointerDown=function(xt,Bt){Ot.prototype.pointerDown.call(this,xt,Bt),this.manipulationStartX=xt.x,this.manipulationStartY=xt.y,this.state==="new"&&(this.x1=xt.x,this.y1=xt.y,this.x2=xt.x,this.y2=xt.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(Bt)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Bt)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Ct.prototype.pointerUp=function(xt){var Bt=this.state;Ot.prototype.pointerUp.call(this,xt),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(xt),this._state="select",Bt==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Ct.prototype.adjustVisual=function(){},Ct.prototype.manipulate=function(xt){this.state==="creating"?this.resize(xt):this.state==="move"?(this.x1=this.manipulationStartX1+xt.x-this.manipulationStartX,this.y1=this.manipulationStartY1+xt.y-this.manipulationStartY,this.x2=this.manipulationStartX2+xt.x-this.manipulationStartX,this.y2=this.manipulationStartY2+xt.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(xt)},Ct.prototype.resize=function(xt){switch(this.activeGrip){case this.grip1:this.x1=xt.x,this.y1=xt.y;break;case this.grip2:case void 0:this.x2=xt.x,this.y2=xt.y}this.adjustVisual(),this.adjustControlBox()},Ct.prototype.select=function(){Ot.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Ct.prototype.deselect=function(){Ot.prototype.deselect.call(this),this.controlBox.style.display="none"},Ct.prototype.setupControlBox=function(){this.controlBox=le.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Ct.prototype.adjustControlBox=function(){this.positionGrips()},Ct.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Ct.prototype.createGrip=function(){var xt=new Kt;return xt.visual.transform.baseVal.appendItem(le.createTransform()),this.controlBox.appendChild(xt.visual),xt},Ct.prototype.positionGrips=function(){var xt=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-xt/2,this.y1-xt/2),this.positionGrip(this.grip2.visual,this.x2-xt/2,this.y2-xt/2)},Ct.prototype.positionGrip=function(xt,Bt,Rt){var At=xt.transform.baseVal.getItem(0);At.setTranslate(Bt,Rt),xt.transform.baseVal.replaceItem(At,0)},Ct.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Ot.prototype.getState.call(this))},Ct.prototype.restoreState=function(xt){Ot.prototype.restoreState.call(this,xt);var Bt=xt;this.x1=Bt.x1,this.y1=Bt.y1,this.x2=Bt.x2,this.y2=Bt.y2},Ct.prototype.scale=function(xt,Bt){Ot.prototype.scale.call(this,xt,Bt),this.x1=this.x1*xt,this.y1=this.y1*Bt,this.x2=this.x2*xt,this.y2=this.y2*Bt,this.adjustVisual(),this.adjustControlBox()},Ct}(Ft),Pn=function(Ot){function Ct(xt,Bt,Rt){var At=Ot.call(this,xt,Bt,Rt)||this;return At.strokeColor="transparent",At.strokeWidth=0,At.strokeDasharray="",At.setStrokeColor=At.setStrokeColor.bind(At),At.setStrokeWidth=At.setStrokeWidth.bind(At),At.setStrokeDasharray=At.setStrokeDasharray.bind(At),At.strokeColor=Rt.defaultColor,At.strokeWidth=Rt.defaultStrokeWidth,At.strokeDasharray=Rt.defaultStrokeDasharray,At.strokePanel=new Lt("Line color",Rt.defaultColorSet,Rt.defaultColor),At.strokePanel.onColorChanged=At.setStrokeColor,At.strokeWidthPanel=new ve("Line width",Rt.defaultStrokeWidths,Rt.defaultStrokeWidth),At.strokeWidthPanel.onWidthChanged=At.setStrokeWidth,At.strokeStylePanel=new re("Line style",Rt.defaultStrokeDasharrays,Rt.defaultStrokeDasharray),At.strokeStylePanel.onStyleChanged=At.setStrokeDasharray,At}return qt(Ct,Ot),Ct.prototype.ownsTarget=function(xt){return!(!Ot.prototype.ownsTarget.call(this,xt)&&xt!==this.visual&&xt!==this.selectorLine&&xt!==this.visibleLine)},Ct.prototype.createVisual=function(){this.visual=le.createGroup(),this.selectorLine=le.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=le.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},Ct.prototype.pointerDown=function(xt,Bt){Ot.prototype.pointerDown.call(this,xt,Bt),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Ct.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),le.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),le.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),le.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Ct.prototype.setStrokeColor=function(xt){this.strokeColor=xt,this.adjustVisual(),this.colorChanged(xt)},Ct.prototype.setStrokeWidth=function(xt){this.strokeWidth=xt,this.adjustVisual()},Ct.prototype.setStrokeDasharray=function(xt){this.strokeDasharray=xt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Ot.prototype.getState.call(this));return xt.typeName=Ct.typeName,xt},Ct.prototype.restoreState=function(xt){Ot.prototype.restoreState.call(this,xt);var Bt=xt;this.strokeColor=Bt.strokeColor,this.strokeWidth=Bt.strokeWidth,this.strokeDasharray=Bt.strokeDasharray,this.createVisual(),this.adjustVisual()},Ct.typeName="LineMarker",Ct.title="Line marker",Ct.icon='',Ct}(Fe),vn=function(Ot){function Ct(xt,Bt,Rt,At){var se=Ot.call(this,xt,At||'')||this;return se.fonts=[],se.fontBoxes=[],se.fonts=Bt,se.currentFont=Rt,se.setCurrentFont=se.setCurrentFont.bind(se),se}return qt(Ct,Ot),Ct.prototype.getUi=function(){var xt=this,Bt=document.createElement("div");return Bt.style.overflow="hidden",Bt.style.flexGrow="2",this.fonts.forEach(function(Rt){var At=document.createElement("div");At.style.display="inline-block",At.style.alignItems="center",At.style.justifyContent="space-between",At.style.padding="5px",At.style.borderWidth="2px",At.style.borderStyle="solid",At.style.overflow="hidden",At.style.maxWidth=100/xt.fonts.length-5+"%",At.style.borderColor=Rt===xt.currentFont?xt.uiStyleSettings.toolboxAccentColor:"transparent",At.addEventListener("click",function(){xt.setCurrentFont(Rt,At)}),Bt.appendChild(At);var se=document.createElement("div");se.style.display="flex",se.style.minHeight="20px",se.style.flexGrow="2",se.style.fontFamily=Rt,se.style.overflow="hidden";var _e=document.createElement("div");_e.style.whiteSpace="nowrap",_e.style.overflow="hidden",_e.style.textOverflow="ellipsis",_e.innerHTML="The quick brown fox jumps over the lazy dog",se.appendChild(_e),At.appendChild(se),xt.fontBoxes.push(At)}),Bt},Ct.prototype.setCurrentFont=function(xt,Bt){var Rt=this;this.currentFont=xt,this.fontBoxes.forEach(function(At){At.style.borderColor=At===Bt?Rt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Ct}(vt),Mn=function(Ot){function Ct(xt,Bt,Rt){var At=Ot.call(this,xt,Bt,Rt)||this;return At.color="transparent",At.padding=5,At.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",At.text=At.DEFAULT_TEXT,At.isMoved=!1,At.color=Rt.defaultColor,At.fontFamily=Rt.defaultFontFamily,At.defaultSize={x:100,y:30},At.setColor=At.setColor.bind(At),At.setFont=At.setFont.bind(At),At.renderText=At.renderText.bind(At),At.sizeText=At.sizeText.bind(At),At.textEditDivClicked=At.textEditDivClicked.bind(At),At.showTextEditor=At.showTextEditor.bind(At),At.setSize=At.setSize.bind(At),At.positionTextEditor=At.positionTextEditor.bind(At),At.colorPanel=new Lt("Color",Rt.defaultColorSet,Rt.defaultColor),At.colorPanel.onColorChanged=At.setColor,At.fontFamilyPanel=new vn("Font",Rt.defaultFontFamilies,Rt.defaultFontFamily),At.fontFamilyPanel.onFontChanged=At.setFont,At}return qt(Ct,Ot),Ct.prototype.ownsTarget=function(xt){if(Ot.prototype.ownsTarget.call(this,xt)||xt===this.visual||xt===this.textElement||xt===this.bgRectangle)return!0;var Bt=!1;return this.textElement.childNodes.forEach(function(Rt){Rt===xt&&(Bt=!0)}),Bt},Ct.prototype.createVisual=function(){this.visual=le.createGroup(),this.bgRectangle=le.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=le.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(le.createTransform()),this.textElement.transform.baseVal.appendItem(le.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Ct.prototype.pointerDown=function(xt,Bt){Ot.prototype.pointerDown.call(this,xt,Bt),this.isMoved=!1,this.pointerDownPoint=xt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(xt),this._state="creating")},Ct.prototype.renderText=function(){var xt=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(Bt){xt.textElement.appendChild(le.createTSpan(Bt.trim()===""?" ":Bt.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Ct.prototype.getTextScale=function(){var xt=this.textElement.getBBox(),Bt=1;if(xt.width>0&&xt.height>0){var Rt=(1*this.width-this.width*this.padding*2/100)/xt.width,At=(1*this.height-this.height*this.padding*2/100)/xt.height;Bt=Math.min(Rt,At)}return Bt},Ct.prototype.getTextPosition=function(xt){var Bt=this.textElement.getBBox(),Rt=0,At=0;return Bt.width>0&&Bt.height>0&&(Rt=(this.width-Bt.width*xt)/2,At=this.height/2-Bt.height*xt/2),{x:Rt,y:At}},Ct.prototype.sizeText=function(){var xt=this.textElement.getBBox(),Bt=this.getTextScale(),Rt=this.getTextPosition(Bt);Rt.y-=xt.y*Bt,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Rt.x+"px, "+Rt.y+"px) scale("+Bt+", "+Bt+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Rt.x,Rt.y),this.textElement.transform.baseVal.getItem(1).setScale(Bt,Bt))},Ct.prototype.manipulate=function(xt){Ot.prototype.manipulate.call(this,xt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(xt.x-this.pointerDownPoint.x)>5||Math.abs(xt.y-this.pointerDownPoint.y)>5)},Ct.prototype.resize=function(xt){Ot.prototype.resize.call(this,xt),this.isMoved=!0,this.setSize(),this.sizeText()},Ct.prototype.setSize=function(){Ot.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(le.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),le.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Ct.prototype.pointerUp=function(xt){var Bt=this.state;Bt==="creating"&&(this._suppressMarkerCreateEvent=!0),Ot.prototype.pointerUp.call(this,xt),this.setSize(),(Bt==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Ct.prototype.showTextEditor=function(){var xt=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(Bt){Bt.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Bt=Number.parseFloat(xt.textEditor.style.fontSize);xt.textEditor.clientWidth>=Number.parseInt(xt.textEditor.style.maxWidth)&&Bt>.9;)Bt-=.1,xt.textEditor.style.fontSize=Math.max(Bt,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Bt){Bt.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Bt){if(Bt.clipboardData){var Rt=Bt.clipboardData.getData("text"),At=window.getSelection();if(!At.rangeCount)return!1;At.deleteFromDocument(),At.getRangeAt(0).insertNode(document.createTextNode(Rt)),Bt.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){xt.textEditDivClicked(xt.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},Ct.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var xt=this.getTextScale(),Bt=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Rt=this.textElement.getBBox(),At={x:Rt.width*xt,y:Rt.height*xt};Bt.x-=At.x/2,Bt.y-=At.y/2,this.textEditor.style.top=Bt.y+"px",this.textEditor.style.left=Bt.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Bt.x+"px",this.textEditor.style.fontSize=Math.max(16*xt,12)+"px",this.textElement.style.display="none"}},Ct.prototype.textEditDivClicked=function(xt){this.text=xt.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Ct.prototype.select=function(){Ot.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Ct.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Ot.prototype.deselect.call(this)},Ct.prototype.dblClick=function(xt,Bt){Ot.prototype.dblClick.call(this,xt,Bt),this.showTextEditor()},Ct.prototype.setColor=function(xt){this.textElement&&le.setAttributes(this.textElement,[["fill",xt]]),this.color=xt,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(xt)},Ct.prototype.setFont=function(xt){this.textElement&&le.setAttributes(this.textElement,[["font-family",xt]]),this.fontFamily=xt,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Ct.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Ct.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Ot.prototype.getState.call(this));return xt.typeName=Ct.typeName,xt},Ct.prototype.restoreState=function(xt){var Bt=xt;this.color=Bt.color,this.fontFamily=Bt.fontFamily,this.padding=Bt.padding,this.text=Bt.text,this.createVisual(),Ot.prototype.restoreState.call(this,xt),this.setSize()},Ct.prototype.scale=function(xt,Bt){Ot.prototype.scale.call(this,xt,Bt),this.setSize(),this.sizeText(),this.positionTextEditor()},Ct.typeName="TextMarker",Ct.title="Text marker",Ct.icon='',Ct}(ne),In=function(Ot){function Ct(xt,Bt,Rt){var At=Ot.call(this,xt,Bt,Rt)||this;return At.color="transparent",At.lineWidth=3,At.drawing=!1,At.pixelRatio=1,At.color=Rt.defaultColor,At.lineWidth=Rt.defaultStrokeWidth,At.pixelRatio=Rt.freehandPixelRatio,At.setColor=At.setColor.bind(At),At.addCanvas=At.addCanvas.bind(At),At.finishCreation=At.finishCreation.bind(At),At.setLineWidth=At.setLineWidth.bind(At),At.colorPanel=new Lt("Color",Rt.defaultColorSet,Rt.defaultColor),At.colorPanel.onColorChanged=At.setColor,At.lineWidthPanel=new ve("Line width",Rt.defaultStrokeWidths,Rt.defaultStrokeWidth),At.lineWidthPanel.onWidthChanged=At.setLineWidth,At}return qt(Ct,Ot),Ct.prototype.ownsTarget=function(xt){return!(!Ot.prototype.ownsTarget.call(this,xt)&&xt!==this.visual&&xt!==this.drawingImage)},Ct.prototype.createVisual=function(){this.visual=le.createGroup(),this.drawingImage=le.createImage(),this.visual.appendChild(this.drawingImage);var xt=le.createTransform();this.visual.transform.baseVal.appendItem(xt),this.addMarkerVisualToContainer(this.visual)},Ct.prototype.pointerDown=function(xt,Bt){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(xt.x,xt.y),this.drawing=!0):Ot.prototype.pointerDown.call(this,xt,Bt)},Ct.prototype.manipulate=function(xt){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(xt.x,xt.y),this.canvasContext.stroke()):Ot.prototype.manipulate.call(this,xt)},Ct.prototype.resize=function(xt){Ot.prototype.resize.call(this,xt),le.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),le.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Ct.prototype.pointerUp=function(xt){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Ot.prototype.pointerUp.call(this,xt)},Ct.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},Ct.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Ot.prototype.select.call(this)},Ct.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Ot.prototype.deselect.call(this)},Ct.prototype.finishCreation=function(){for(var xt=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Bt=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Rt=Bt[0],At=Bt[1],se=Bt[2],_e=Bt[3],nn=!1,tn=0;tn0&&(nn=!0,tn_e&&(_e=tn),Ln>se&&(se=Ln));if(nn){this.left=Rt/this.pixelRatio,this.top=At/this.pixelRatio,this.width=(se-Rt)/this.pixelRatio,this.height=(_e-At)/this.pixelRatio;var ni=document.createElement("canvas");ni.width=se-Rt,ni.height=_e-At,ni.getContext("2d").putImageData(this.canvasContext.getImageData(Rt,At,se-Rt,_e-At),0,0),this.drawingImgUrl=ni.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Ct.prototype.setDrawingImage=function(){le.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),le.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Ct.prototype.setColor=function(xt){this.color=xt,this.colorChanged(xt)},Ct.prototype.setLineWidth=function(xt){this.lineWidth=xt},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=Object.assign({drawingImgUrl:this.drawingImgUrl},Ot.prototype.getState.call(this));return xt.typeName=Ct.typeName,xt},Ct.prototype.restoreState=function(xt){this.createVisual(),Ot.prototype.restoreState.call(this,xt),this.drawingImgUrl=xt.drawingImgUrl,this.setDrawingImage()},Ct.prototype.scale=function(xt,Bt){Ot.prototype.scale.call(this,xt,Bt),this.setDrawingImage()},Ct.typeName="FreehandMarker",Ct.title="Freehand marker",Ct.icon='',Ct}(ne),Zt=function(Ot){function Ct(xt,Bt,Rt){var At=Ot.call(this,xt,Rt||'')||this;return At.typeBoxes=[],At.currentType=Bt,At.setCurrentType=At.setCurrentType.bind(At),At}return qt(Ct,Ot),Ct.prototype.getUi=function(){var xt=this,Bt=document.createElement("div");Bt.style.display="flex",Bt.style.overflow="hidden",Bt.style.flexGrow="2";for(var Rt=function(_e){var nn="both";switch(_e){case 0:nn="both";break;case 1:nn="start";break;case 2:nn="end";break;case 3:nn="none"}var tn=document.createElement("div");if(tn.style.display="flex",tn.style.flexGrow="2",tn.style.alignItems="center",tn.style.justifyContent="space-between",tn.style.padding="5px",tn.style.borderWidth="2px",tn.style.borderStyle="solid",tn.style.borderColor=nn===At.currentType?At.uiStyleSettings.toolboxAccentColor:"transparent",tn.addEventListener("click",function(){xt.setCurrentType(nn,tn)}),Bt.appendChild(tn),nn==="both"||nn==="start"){var Ln=document.createElement("div");Ln.style.display="flex",Ln.style.alignItems="center",Ln.style.minHeight="20px",Ln.innerHTML=` - - `,Ln.style.marginLeft="5px",tn.appendChild(Ln)}var ni=document.createElement("div");ni.style.display="flex",ni.style.alignItems="center",ni.style.minHeight="20px",ni.style.flexGrow="2";var di=document.createElement("hr");if(di.style.minWidth="20px",di.style.border="0px",di.style.borderTop="3px solid "+(At.uiStyleSettings!==void 0?At.uiStyleSettings.toolboxColor:"#eeeeee"),di.style.flexGrow="2",ni.appendChild(di),tn.appendChild(ni),nn==="both"||nn==="end"){var si=document.createElement("div");si.style.display="flex",si.style.alignItems="center",si.style.minHeight="20px",si.innerHTML=` - - `,si.style.marginRight="5px",tn.appendChild(si)}At.typeBoxes.push(tn)},At=this,se=0;se<4;se++)Rt(se);return Bt},Ct.prototype.setCurrentType=function(xt,Bt){var Rt=this;this.currentType=xt,this.typeBoxes.forEach(function(At){At.style.borderColor=At===Bt?Rt.uiStyleSettings!==void 0?Rt.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Ct}(vt),Gt=function(Ot){function Ct(xt,Bt,Rt){var At=Ot.call(this,xt,Bt,Rt)||this;return At.arrowType="end",At.arrowBaseHeight=10,At.arrowBaseWidth=10,At.getArrowPoints=At.getArrowPoints.bind(At),At.setArrowType=At.setArrowType.bind(At),At.arrowTypePanel=new Zt("Arrow type","end"),At.arrowTypePanel.onArrowTypeChanged=At.setArrowType,At}return qt(Ct,Ot),Ct.prototype.ownsTarget=function(xt){return!(!Ot.prototype.ownsTarget.call(this,xt)&&xt!==this.arrow1&&xt!==this.arrow2)},Ct.prototype.getArrowPoints=function(xt,Bt){var Rt=this.arrowBaseWidth+2*this.strokeWidth,At=this.arrowBaseHeight+2*this.strokeWidth;return xt-Rt/2+","+(Bt+At/2)+" "+xt+","+(Bt-At/2)+" "+(xt+Rt/2)+","+(Bt+At/2)},Ct.prototype.createTips=function(){this.arrow1=le.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(le.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=le.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(le.createTransform()),this.visual.appendChild(this.arrow2)},Ct.prototype.pointerDown=function(xt,Bt){Ot.prototype.pointerDown.call(this,xt,Bt),this.state==="creating"&&this.createTips()},Ct.prototype.adjustVisual=function(){if(Ot.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",le.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),le.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var xt=0;Math.abs(this.x1-this.x2)>.1&&(xt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Bt=this.arrow1.transform.baseVal.getItem(0);Bt.setRotate(xt,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Bt,0);var Rt=this.arrow2.transform.baseVal.getItem(0);Rt.setRotate(xt+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Rt,0)}},Ct.prototype.setArrowType=function(xt){this.arrowType=xt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=Object.assign({arrowType:this.arrowType},Ot.prototype.getState.call(this));return xt.typeName=Ct.typeName,xt},Ct.prototype.restoreState=function(xt){Ot.prototype.restoreState.call(this,xt);var Bt=xt;this.arrowType=Bt.arrowType,this.createTips(),this.adjustVisual()},Ct.typeName="ArrowMarker",Ct.title="Arrow marker",Ct.icon='',Ct}(Pn),He=function(Ot){function Ct(xt,Bt,Rt){var At=Ot.call(this,xt,Bt,Rt)||this;return At.fillColor=Rt.defaultFillColor,At.strokeWidth=0,At.fillPanel=new Lt("Color",Rt.defaultColorSet,Rt.defaultFillColor),At.fillPanel.onColorChanged=At.setFillColor,At}return qt(Ct,Ot),Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=Ot.prototype.getState.call(this);return xt.typeName=Ct.typeName,xt},Ct.typeName="CoverMarker",Ct.title="Cover marker",Ct.icon='',Ct}($t),un=function(Ot){function Ct(xt,Bt,Rt,At){var se=Ot.call(this,xt,At||'')||this;return se.opacities=[],se.opacityBoxes=[],se.opacities=Bt,se.currentOpacity=Rt,se.setCurrentOpacity=se.setCurrentOpacity.bind(se),se}return qt(Ct,Ot),Ct.prototype.getUi=function(){var xt=this,Bt=document.createElement("div");return Bt.style.display="flex",Bt.style.overflow="hidden",Bt.style.flexGrow="2",Bt.style.justifyContent="space-between",this.opacities.forEach(function(Rt){var At=document.createElement("div");At.style.display="flex",At.style.alignItems="center",At.style.justifyContent="center",At.style.padding="5px",At.style.borderWidth="2px",At.style.borderStyle="solid",At.style.borderColor=Rt===xt.currentOpacity?xt.uiStyleSettings.toolboxAccentColor:"transparent",At.addEventListener("click",function(){xt.setCurrentOpacity(Rt,At)}),Bt.appendChild(At);var se=document.createElement("div");se.innerText=100*Rt+"%",At.appendChild(se),xt.opacityBoxes.push(At)}),Bt},Ct.prototype.setCurrentOpacity=function(xt,Bt){var Rt=this;this.currentOpacity=xt,this.opacityBoxes.forEach(function(At){At.style.borderColor=At===Bt?Rt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Ct}(vt),ln=function(Ot){function Ct(xt,Bt,Rt){var At=Ot.call(this,xt,Bt,Rt)||this;return At.setOpacity=At.setOpacity.bind(At),At.fillColor=Rt.defaultHighlightColor,At.strokeWidth=0,At.opacity=Rt.defaultHighlightOpacity,At.fillPanel=new Lt("Color",Rt.defaultColorSet,At.fillColor),At.fillPanel.onColorChanged=At.setFillColor,At.opacityPanel=new un("Opacity",Rt.defaultOpacitySteps,At.opacity),At.opacityPanel.onOpacityChanged=At.setOpacity,At}return qt(Ct,Ot),Ct.prototype.setOpacity=function(xt){this.opacity=xt,this.visual&&le.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=Ot.prototype.getState.call(this);return xt.typeName=Ct.typeName,xt},Ct.typeName="HighlightMarker",Ct.title="Highlight marker",Ct.icon='',Ct}(He),ce='',Ue='',on=function(Ot){function Ct(xt,Bt,Rt){var At=Ot.call(this,xt,Bt,Rt)||this;return At.bgColor="transparent",At.tipPosition={x:0,y:0},At.tipBase1Position={x:0,y:0},At.tipBase2Position={x:0,y:0},At.tipMoving=!1,At.color=Rt.defaultStrokeColor,At.bgColor=Rt.defaultFillColor,At.fontFamily=Rt.defaultFontFamily,At.defaultSize={x:100,y:30},At.setBgColor=At.setBgColor.bind(At),At.getTipPoints=At.getTipPoints.bind(At),At.positionTip=At.positionTip.bind(At),At.setTipPoints=At.setTipPoints.bind(At),At.colorPanel=new Lt("Text color",Rt.defaultColorSet,At.color,ce),At.colorPanel.onColorChanged=At.setColor,At.bgColorPanel=new Lt("Fill color",Rt.defaultColorSet,At.bgColor,Ue),At.bgColorPanel.onColorChanged=At.setBgColor,At.fontFamilyPanel=new vn("Font",Rt.defaultFontFamilies,Rt.defaultFontFamily),At.fontFamilyPanel.onFontChanged=At.setFont,At.tipGrip=new Kt,At.tipGrip.visual.transform.baseVal.appendItem(le.createTransform()),At.controlBox.appendChild(At.tipGrip.visual),At}return qt(Ct,Ot),Ct.prototype.ownsTarget=function(xt){return Ot.prototype.ownsTarget.call(this,xt)||this.tipGrip.ownsTarget(xt)||this.tip===xt},Ct.prototype.createTip=function(){le.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=le.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Ct.prototype.pointerDown=function(xt,Bt){this.state==="new"&&Ot.prototype.pointerDown.call(this,xt,Bt),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Bt)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Ot.prototype.pointerDown.call(this,xt,Bt)},Ct.prototype.pointerUp=function(xt){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Ot.prototype.pointerUp.call(this,xt);else{var Bt=this.state==="creating";Ot.prototype.pointerUp.call(this,xt),this.setTipPoints(Bt),this.positionTip()}},Ct.prototype.manipulate=function(xt){if(this.tipMoving){var Bt=this.unrotatePoint(xt);this.tipPosition={x:Bt.x-this.manipulationStartLeft,y:Bt.y-this.manipulationStartTop},this.positionTip()}else Ot.prototype.manipulate.call(this,xt)},Ct.prototype.setBgColor=function(xt){this.bgRectangle&&this.tip&&(le.setAttributes(this.bgRectangle,[["fill",xt]]),le.setAttributes(this.tip,[["fill",xt]])),this.bgColor=xt,this.fillColorChanged(xt)},Ct.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},Ct.prototype.setTipPoints=function(xt){xt===void 0&&(xt=!1);var Bt=Math.min(this.height/2,15),Rt=this.height/5;xt&&(this.tipPosition={x:Bt+Rt/2,y:this.height+20});var At=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?At.1)){var xt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Bt=this.tip1.transform.baseVal.getItem(0);Bt.setRotate(xt,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Bt,0);var Rt=this.tip2.transform.baseVal.getItem(0);Rt.setRotate(xt+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Rt,0)}},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=Ot.prototype.getState.call(this);return xt.typeName=Ct.typeName,xt},Ct.prototype.restoreState=function(xt){Ot.prototype.restoreState.call(this,xt),this.createTips(),this.adjustVisual()},Ct.typeName="MeasurementMarker",Ct.title="Measurement marker",Ct.icon='',Ct}(Pn),kn=function(Ot){function Ct(xt,Bt,Rt){var At=Ot.call(this,xt,Bt,Rt)||this;return At.strokePanel.colors=Rt.defaultColorSet,At.fillColor="transparent",At}return qt(Ct,Ot),Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=Ot.prototype.getState.call(this);return xt.typeName=Ct.typeName,xt},Ct.typeName="EllipseFrameMarker",Ct.title="Ellipse frame marker",Ct.icon='',Ct}(wn),te=function(){function Ot(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Ot.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Ot.prototype.addUndoStep=function(Ct){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Ct)||(this.undoStack.push(Ct),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Ct)&&this.redoStack.splice(0,this.redoStack.length))},Ot.prototype.replaceLastUndoStep=function(Ct){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Ct)},Ot.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Ot.prototype.undo=function(){if(this.undoStack.length>1){var Ct=this.undoStack.pop();return Ct!==void 0&&this.redoStack.push(Ct),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Ot.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Ot}(),Ve=function(Ot){function Ct(xt,Bt,Rt){var At=Ot.call(this,xt,Bt,Rt)||this;return At.strokeColor="transparent",At.strokeWidth=0,At.strokeDasharray="",At.curveX=0,At.curveY=0,At.manipulationStartCurveX=0,At.manipulationStartCurveY=0,At.setStrokeColor=At.setStrokeColor.bind(At),At.setStrokeWidth=At.setStrokeWidth.bind(At),At.setStrokeDasharray=At.setStrokeDasharray.bind(At),At.positionGrips=At.positionGrips.bind(At),At.addControlGrips=At.addControlGrips.bind(At),At.adjustVisual=At.adjustVisual.bind(At),At.setupControlBox=At.setupControlBox.bind(At),At.resize=At.resize.bind(At),At.strokeColor=Rt.defaultColor,At.strokeWidth=Rt.defaultStrokeWidth,At.strokeDasharray=Rt.defaultStrokeDasharray,At.strokePanel=new Lt("Line color",Rt.defaultColorSet,Rt.defaultColor),At.strokePanel.onColorChanged=At.setStrokeColor,At.strokeWidthPanel=new ve("Line width",Rt.defaultStrokeWidths,Rt.defaultStrokeWidth),At.strokeWidthPanel.onWidthChanged=At.setStrokeWidth,At.strokeStylePanel=new re("Line style",Rt.defaultStrokeDasharrays,Rt.defaultStrokeDasharray),At.strokeStylePanel.onStyleChanged=At.setStrokeDasharray,At}return qt(Ct,Ot),Ct.prototype.ownsTarget=function(xt){return!(!Ot.prototype.ownsTarget.call(this,xt)&&xt!==this.visual&&xt!==this.selectorCurve&&xt!==this.visibleCurve&&!this.curveGrip.ownsTarget(xt))},Ct.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Ct.prototype.createVisual=function(){this.visual=le.createGroup(),this.selectorCurve=le.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=le.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},Ct.prototype.pointerDown=function(xt,Bt){Ot.prototype.pointerDown.call(this,xt,Bt),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=xt.x,this.curveY=xt.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Bt)&&(this.activeGrip=this.curveGrip,this._state="resize")},Ct.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),le.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),le.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),le.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Ct.prototype.setupControlBox=function(){Ot.prototype.setupControlBox.call(this),this.curveControlLine1=le.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=le.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},Ct.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Ot.prototype.addControlGrips.call(this)},Ct.prototype.positionGrips=function(){Ot.prototype.positionGrips.call(this);var xt=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-xt/2,this.curveY-xt/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},Ct.prototype.manipulate=function(xt){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+xt.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+xt.y-this.manipulationStartY),Ot.prototype.manipulate.call(this,xt)},Ct.prototype.resize=function(xt){this.activeGrip===this.curveGrip&&(this.curveX=xt.x,this.curveY=xt.y),Ot.prototype.resize.call(this,xt),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},Ct.prototype.setStrokeColor=function(xt){this.strokeColor=xt,this.adjustVisual(),this.colorChanged(xt)},Ct.prototype.setStrokeWidth=function(xt){this.strokeWidth=xt,this.adjustVisual()},Ct.prototype.setStrokeDasharray=function(xt){this.strokeDasharray=xt,this.adjustVisual()},Ct.prototype.scale=function(xt,Bt){this.curveX=this.curveX*xt,this.curveY=this.curveY*Bt,Ot.prototype.scale.call(this,xt,Bt)},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Ot.prototype.getState.call(this));return xt.typeName=Ct.typeName,xt},Ct.prototype.restoreState=function(xt){Ot.prototype.restoreState.call(this,xt);var Bt=xt;this.strokeColor=Bt.strokeColor,this.strokeWidth=Bt.strokeWidth,this.strokeDasharray=Bt.strokeDasharray,this.curveX=Bt.curveX,this.curveY=Bt.curveY,this.createVisual(),this.adjustVisual()},Ct.typeName="CurveMarker",Ct.title="Curve marker",Ct.icon='',Ct}(Fe),fn=function(Ot){function Ct(xt,Bt,Rt){var At=Ot.call(this,xt,Bt,Rt)||this;return At.fillColor="transparent",At.strokeColor="transparent",At.strokeWidth=0,At.strokeDasharray="",At.textColor="transparent",At.fontSize="1rem",At.isMoved=!1,At.captionText="Caption",At.PADDING=5,At.captionBoxWidth=0,At.captionBoxHeight=0,At.strokeColor=Rt.defaultColor,At.strokeWidth=Rt.defaultStrokeWidth,At.strokeDasharray=Rt.defaultStrokeDasharray,At.fillColor=Rt.defaultFillColor,At.textColor=Rt.defaultStrokeColor,At.fontFamily=Rt.defaultFontFamily,At.fontSize=Rt.defaultCaptionFontSize,At.captionText=Rt.defaultCaptionText,At.setStrokeColor=At.setStrokeColor.bind(At),At.setFillColor=At.setFillColor.bind(At),At.setStrokeWidth=At.setStrokeWidth.bind(At),At.setStrokeDasharray=At.setStrokeDasharray.bind(At),At.createVisual=At.createVisual.bind(At),At.sizeCaption=At.sizeCaption.bind(At),At.setCaptionText=At.setCaptionText.bind(At),At.showTextEditor=At.showTextEditor.bind(At),At.positionTextEditor=At.positionTextEditor.bind(At),At.finishTextEditing=At.finishTextEditing.bind(At),At.setFont=At.setFont.bind(At),At.setTextColor=At.setTextColor.bind(At),At.strokePanel=new Lt("Line color",pe(Rt.defaultColorSet,["transparent"]),At.strokeColor),At.strokePanel.onColorChanged=At.setStrokeColor,At.fillPanel=new Lt("Fill color",pe(Rt.defaultColorSet,["transparent"]),At.fillColor,Ue),At.fillPanel.onColorChanged=At.setFillColor,At.strokeWidthPanel=new ve("Line width",Rt.defaultStrokeWidths,Rt.defaultStrokeWidth),At.strokeWidthPanel.onWidthChanged=At.setStrokeWidth,At.strokeStylePanel=new re("Line style",Rt.defaultStrokeDasharrays,Rt.defaultStrokeDasharray),At.strokeStylePanel.onStyleChanged=At.setStrokeDasharray,At.fontFamilyPanel=new vn("Font",Rt.defaultFontFamilies,Rt.defaultFontFamily),At.fontFamilyPanel.onFontChanged=At.setFont,At.textColorPanel=new Lt("Text color",Rt.defaultColorSet,At.textColor,ce),At.textColorPanel.onColorChanged=At.setTextColor,At}return qt(Ct,Ot),Ct.prototype.ownsTarget=function(xt){return!(!Ot.prototype.ownsTarget.call(this,xt)&&xt!==this.visual&&xt!==this.frame&&xt!==this.captionBg&&xt!==this.captionElement)},Ct.prototype.createVisual=function(){this.visual=le.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=le.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=le.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=le.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},Ct.prototype.setCaptionText=function(xt){this.captionText=xt,this.captionElement.textContent=this.captionText,this.sizeCaption()},Ct.prototype.pointerDown=function(xt,Bt){Ot.prototype.pointerDown.call(this,xt,Bt),this.isMoved=!1,this.pointerDownPoint=xt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(xt),this._state="creating")},Ct.prototype.manipulate=function(xt){Ot.prototype.manipulate.call(this,xt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(xt.x-this.pointerDownPoint.x)>5||Math.abs(xt.y-this.pointerDownPoint.y)>5)},Ct.prototype.resize=function(xt){Ot.prototype.resize.call(this,xt),this.setSize()},Ct.prototype.sizeCaption=function(){var xt=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=xt.width+2*this.PADDING,this.captionBoxHeight=xt.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),le.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),le.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},Ct.prototype.showTextEditor=function(){var xt=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(Bt){Bt.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Bt){Bt.key==="Enter"&&xt.finishTextEditing(xt.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Bt){Bt.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){xt.finishTextEditing(xt.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){xt.finishTextEditing(xt.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},Ct.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},Ct.prototype.finishTextEditing=function(xt){this.setCaptionText(xt.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Ct.prototype.setFont=function(xt){this.captionElement&&le.setAttributes(this.captionElement,[["font-family",xt]]),this.fontFamily=xt,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Ct.prototype.setTextColor=function(xt){this.captionElement&&le.setAttributes(this.captionElement,[["fill",xt]]),this.textColor=xt,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Ct.prototype.setSize=function(){Ot.prototype.setSize.call(this),le.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Ct.prototype.pointerUp=function(xt){Ot.prototype.pointerUp.call(this,xt),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Ct.prototype.dblClick=function(xt,Bt){Ot.prototype.dblClick.call(this,xt,Bt),this.showTextEditor()},Ct.prototype.setStrokeColor=function(xt){this.strokeColor=xt,this.frame&&le.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(xt),this.stateChanged()},Ct.prototype.setFillColor=function(xt){this.fillColor=xt,this.captionBg&&le.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(xt),this.stateChanged()},Ct.prototype.setStrokeWidth=function(xt){this.strokeWidth=xt,this.frame&&le.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ct.prototype.setStrokeDasharray=function(xt){this.strokeDasharray=xt,this.frame&&le.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},Ot.prototype.getState.call(this));return xt.typeName=this.typeName,xt},Ct.prototype.restoreState=function(xt){var Bt=xt;this.fillColor=Bt.fillColor,this.strokeColor=Bt.strokeColor,this.strokeWidth=Bt.strokeWidth,this.strokeDasharray=Bt.strokeDasharray,this.textColor=Bt.textColor,this.fontFamily=Bt.fontFamily,this.captionText=Bt.captionText,this.fontSize=Bt.fontSize,this.createVisual(),Ot.prototype.restoreState.call(this,xt),this.setSize()},Ct.prototype.scale=function(xt,Bt){Ot.prototype.scale.call(this,xt,Bt),this.setSize()},Ct.typeName="CaptionFrameMarker",Ct.title="Caption frame marker",Ct.icon='',Ct}(ne),dn=function(){function Ot(Ct,xt){xt===void 0&&(xt=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Ct,this.cancelable=xt}return Object.defineProperty(Ot.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Ot.prototype.preventDefault=function(){this._defaultPrevented=!0},Ot}(),Sn=function(Ot){function Ct(xt,Bt,Rt){var At=Ot.call(this,xt,!1)||this;return At.dataUrl=Bt,At.state=Rt,At}return qt(Ct,Ot),Ct}(dn),Vn=function(Ot){function Ct(xt,Bt,Rt){Rt===void 0&&(Rt=!1);var At=Ot.call(this,xt,Rt)||this;return At.marker=Bt,At}return qt(Ct,Ot),Ct}(dn),vi=function(){function Ot(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return Ot.prototype.addEventListener=function(Ct,xt){this[Ct].push(xt)},Ot.prototype.removeEventListener=function(Ct,xt){var Bt=this[Ct].indexOf(xt);Bt>-1&&this[Ct].splice(Bt,1)},Ot}(),Qn=function(){function Ot(Ct){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new me,this._isOpen=!1,this.undoRedoManager=new te,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new vi,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Ot.instanceCounter++,this.styles=new et(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Ct,this.targetRoot=document.body,this.width=Ct.clientWidth,this.height=Ct.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(Ot.prototype,"ALL_MARKER_TYPES",{get:function(){return[Oe,In,Gt,Mn,kn,wn,ln,on,sn,He,Pn,Ve,fn]},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Oe,In,Gt,Mn,wn,ln,on]},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Oe,In,Gt,Mn,ln]},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Ct){var xt=this;this._availableMarkerTypes.splice(0),Ct.forEach(function(Bt){if(typeof Bt=="string"){var Rt=xt.ALL_MARKER_TYPES.find(function(At){return At.typeName===Bt});Rt!==void 0&&xt._availableMarkerTypes.push(Rt)}else xt._availableMarkerTypes.push(Bt)})},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Ct){this._zoomLevel=Ct,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Ot.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Be.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Ot.prototype.show=function(){var Ct=this;this.styles.styleSheetRoot===void 0&&Nt.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Nt.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(xt){return xt(new dn(Ct))})},Ot.prototype.render=function(){return Ce(this,void 0,void 0,function(){var Ct;return fe(this,function(xt){switch(xt.label){case 0:return this.setCurrentMarker(),(Ct=new je).naturalSize=this.renderAtNaturalSize,Ct.imageType=this.renderImageType,Ct.imageQuality=this.renderImageQuality,Ct.markersOnly=this.renderMarkersOnly,Ct.width=this.renderWidth,Ct.height=this.renderHeight,[4,Ct.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return xt.sent(),[4,Ct.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,xt.sent()]}})})},Ot.prototype.close=function(Ct){var xt=this;if(Ct===void 0&&(Ct=!1),this.isOpen){var Bt=!1;Ct||this.eventListeners.beforeclose.forEach(function(Rt){var At=new dn(xt,!0);Rt(At),At.defaultPrevented&&(Bt=!0)}),Bt||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(Rt){return Rt(new dn(xt))}),this.detachEvents(),this._isOpen=!1)}},Ot.prototype.addMarkersToToolbar=function(){for(var Ct,xt=[],Bt=0;Btthis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Ct:this.editorCanvas.clientWidth,Bt=xt',Ct.title="Powered by marker.js",Ct.style.display="grid",Ct.style.alignItems="center",Ct.style.justifyItems="center",Ct.style.padding="3px",Ct.style.width="20px",Ct.style.height="20px",this.logoUI.appendChild(Ct),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Ot.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},Ot.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},Ot.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Ot.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var Ct=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Ct+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new lt(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop-1&&this.markers.splice(this.markers.indexOf(Ct),1),Ct.dispose()},Ot.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},Ot.prototype.toolbarButtonClicked=function(Ct,xt){if(Ct==="marker"&&xt!==void 0)this.createNewMarker(xt);else if(Ct==="action")switch(xt){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},Ot.prototype.deleteSelectedMarker=function(){var Ct=this;if(this._currentMarker!==void 0){var xt=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Rt){var At=new Vn(Ct,Ct._currentMarker,!0);Rt(At),At.defaultPrevented&&(xt=!0)}),!xt){var Bt=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(Rt){return Rt(new Vn(Ct,Bt))})}}},Ot.prototype.clear=function(){var Ct=this,xt=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(se){var _e=new Vn(Ct,void 0,!0);se(_e),_e.defaultPrevented&&(xt=!0)}),!xt)){this.setCurrentMarker();for(var Bt=function(se){var _e=Rt.markers[se];Rt.setCurrentMarker(Rt.markers[se]),Rt._currentMarker.dispose(),Rt.markerImage.removeChild(Rt._currentMarker.container),Rt.markers.splice(Rt.markers.indexOf(Rt._currentMarker),1),Rt.eventListeners.markerdelete.forEach(function(nn){return nn(new Vn(Ct,_e))})},Rt=this,At=this.markers.length-1;At>=0;At--)Bt(At);this.addUndoStep()}},Object.defineProperty(Ot.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Ot.prototype.showNotesEditor=function(){var Ct;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(Ct=this._currentMarker.notes)!==null&&Ct!==void 0?Ct:"",this.overlayContainer.appendChild(this.notesArea))},Ot.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},Ot.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Ot.prototype.addUndoStep=function(){var Ct=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var xt=this.getState(),Bt=this.undoRedoManager.getLastUndoStep();if(!Bt||Bt.width===xt.width&&Bt.height===xt.height){var Rt=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(xt),Rt1&&this.panTo({x:Ct.clientX,y:Ct.clientY}))},Ot.prototype.onPointerUp=function(Ct){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Ct.clientX,Ct.clientY)),this.isDragging=!1,this.addUndoStep()},Ot.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Ot.prototype.onKeyUp=function(Ct){this._currentMarker===void 0||this.notesArea!==void 0||Ct.key!=="Delete"&&Ct.key!=="Backspace"||this.deleteSelectedMarker()},Ot.prototype.clientToLocalCoordinates=function(Ct,xt){var Bt=this.markerImage.getBoundingClientRect();return{x:(Ct-Bt.left)/this.zoomLevel,y:(xt-Bt.top)/this.zoomLevel}},Ot.prototype.onWindowResize=function(){this.positionUI()},Ot.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Ct=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Ct+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},Ot.prototype.addLicenseKey=function(Ct){Be.addKey(Ct)},Ot.prototype.addEventListener=function(Ct,xt){this.eventListeners.addEventListener(Ct,xt)},Ot.prototype.removeEventListener=function(Ct,xt){this.eventListeners.removeEventListener(Ct,xt)},Ot.prototype.renderState=function(Ct){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Ct),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Ot.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Ot.prototype.focus=function(){var Ct=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(xt){return xt(new dn(Ct))}))},Ot.prototype.blur=function(){var Ct=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(xt){return xt(new dn(Ct))}))},Ot.instanceCounter=0,Ot}(),wi=Yt(99064),Ci=Yt(955),an=(Ot,Ct,xt)=>new Promise((Bt,Rt)=>{var At=nn=>{try{_e(xt.next(nn))}catch(tn){Rt(tn)}},se=nn=>{try{_e(xt.throw(nn))}catch(tn){Rt(tn)}},_e=nn=>nn.done?Bt(nn.value):Promise.resolve(nn.value).then(At,se);_e((xt=xt.apply(Ot,Ct)).next())}),xn=({data:Ot,className:Ct,fullWidth:xt,style:Bt={},onClose:Rt,onOk:At,showFullTools:se,noAssociationId:_e})=>{const nn=(0,kt.useRef)(null),tn=(0,kt.useRef)(null),Ln=(0,kt.useRef)(null),ni=(0,kt.useRef)(null),[di,si]=(0,kt.useState)(!1),[Mi,qi]=(0,kt.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,kt.useEffect)(()=>(Ln.current||(Ln.current=document.createElement("style"),document.head.appendChild(Ln.current)),Ot!=null&&Ot.visible?(document.body.setAttribute("data-custom","y-hidden"),Ln.current.innerHTML=" html { overflow-y: hidden; }",Ot!=null&&Ot.src&&oo()):(document.body.removeAttribute("data-custom"),Ln.current&&(document.head.removeChild(Ln.current),Ln.current=null)),()=>{document.body.removeAttribute("data-custom"),Ln.current&&(document.head.removeChild(Ln.current),Ln.current=null)}),[Ot==null?void 0:Ot.visible]);const oo=()=>an(void 0,null,function*(){si(!0),qi("\u6B63\u5728\u52A0\u8F7D\u4E2D");const so=yield(0,Ci.ZJ)(Ot==null?void 0:Ot.src);nn.current.src="",nn.current.src=so,nn.current.onload=function(){mr()},si(!1),qi("")}),pr=so=>an(void 0,null,function*(){si(!0),qi("\u6B63\u5728\u4FDD\u5B58\u4E2D");const xo=yield(0,wi.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ot.title,file:so.dataUrl}});xo!=null&&xo.id&&!_e?(yield(0,wi.ZP)(`/api/attachments/${Ot.id}/add_subitem.json`,{method:"post",body:{subitem_id:xo==null?void 0:xo.id,settings:JSON.stringify(so.state)}})).status===0&&At():xo!=null&&xo.id&&At(xo),si(!1),qi("")}),Ho=()=>{const so=document.querySelector('a[href="https://markerjs.com/"]');so&&so.parentNode&&(so.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(Yr=>{const Cr=document.querySelector(Yr.name);Cr&&Cr.setAttribute("title",Yr.title)})},mr=()=>{tn.current=new Qn(nn.current),tn.current.targetRoot=ni.current,tn.current.addEventListener("render",pr),tn.current.addEventListener("beforeclose",Rt),se&&(tn.current.availableMarkerTypes=tn.current.ALL_MARKER_TYPES,tn.current.uiStyleSettings.redoButtonVisible=!0,tn.current.uiStyleSettings.notesButtonVisible=!0,tn.current.uiStyleSettings.zoomButtonVisible=!0,tn.current.uiStyleSettings.zoomOutButtonVisible=!0,tn.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=tn.current.uiStyleSettings,tn.current.show(),Ot!=null&&Ot.snapshotData&&tn.current.restoreState(Ot.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ho()},300)};return kt.createElement(kt.Fragment,null,(Ot==null?void 0:Ot.visible)&&kt.createElement(ge.Z,{spinning:di,tip:Mi,style:{position:"absolute",width:"100vw"}},kt.createElement("div",{ref:ni,className:Te()(ue.imageDimensions,Ct,xt?ue.fullWidth:""),style:Bt},kt.createElement("img",{className:ue.img,ref:nn}))))}},41588:function(Ye,pn,Yt){"use strict";var kt=Yt(59301),ue=Yt(95237),xe=Yt(43604),Te=Yt(99313),ge=Yt(3113),Ae=Yt(85149),qt=Yt(88010),Ce=Yt(48136),fe=Yt(59301);const pe=(0,kt.forwardRef)(({callback:le,showSaveButton:Be,value:je=""},Nt)=>{const et=(0,kt.useRef)(),nt=[{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 "}]}]}],gt=[{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 + `;se.innerHTML=_e,Et.appendChild(se),xt.styleBoxes.push(Et)}),Bt},Ct.prototype.setCurrentStyle=function(xt,Bt){var Rt=this;this.currentStyle=xt,this.styleBoxes.forEach(function(Et){Et.style.borderColor=Et===Bt?Rt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Ct}(vt),Oe=function(Ot){function Ct(xt,Bt,Rt){var Et=Ot.call(this,xt,Bt,Rt)||this;return Et.strokeColor=Rt.defaultColor,Et.strokeWidth=Rt.defaultStrokeWidth,Et.strokeDasharray=Rt.defaultStrokeDasharray,Et.strokePanel=new Lt("Line color",Rt.defaultColorSet,Rt.defaultColor),Et.strokePanel.onColorChanged=Et.setStrokeColor,Et.strokeWidthPanel=new ve("Line width",Rt.defaultStrokeWidths,Rt.defaultStrokeWidth),Et.strokeWidthPanel.onWidthChanged=Et.setStrokeWidth,Et.strokeStylePanel=new re("Line style",Rt.defaultStrokeDasharrays,Rt.defaultStrokeDasharray),Et.strokeStylePanel.onStyleChanged=Et.setStrokeDasharray,Et}return qt(Ct,Ot),Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=Ot.prototype.getState.call(this);return xt.typeName=Ct.typeName,xt},Ct.typeName="FrameMarker",Ct.title="Frame marker",Ct.icon='',Ct}($t),me=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},Fe=function(Ot){function Ct(xt,Bt,Rt){var Et=Ot.call(this,xt,Bt,Rt)||this;return Et.x1=0,Et.y1=0,Et.x2=0,Et.y2=0,Et.defaultLength=50,Et.manipulationStartX=0,Et.manipulationStartY=0,Et.manipulationStartX1=0,Et.manipulationStartY1=0,Et.manipulationStartX2=0,Et.manipulationStartY2=0,Et.setupControlBox(),Et}return qt(Ct,Ot),Ct.prototype.ownsTarget=function(xt){return!!Ot.prototype.ownsTarget.call(this,xt)||!(!this.grip1.ownsTarget(xt)&&!this.grip2.ownsTarget(xt))},Ct.prototype.pointerDown=function(xt,Bt){Ot.prototype.pointerDown.call(this,xt,Bt),this.manipulationStartX=xt.x,this.manipulationStartY=xt.y,this.state==="new"&&(this.x1=xt.x,this.y1=xt.y,this.x2=xt.x,this.y2=xt.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(Bt)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Bt)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Ct.prototype.pointerUp=function(xt){var Bt=this.state;Ot.prototype.pointerUp.call(this,xt),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(xt),this._state="select",Bt==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Ct.prototype.adjustVisual=function(){},Ct.prototype.manipulate=function(xt){this.state==="creating"?this.resize(xt):this.state==="move"?(this.x1=this.manipulationStartX1+xt.x-this.manipulationStartX,this.y1=this.manipulationStartY1+xt.y-this.manipulationStartY,this.x2=this.manipulationStartX2+xt.x-this.manipulationStartX,this.y2=this.manipulationStartY2+xt.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(xt)},Ct.prototype.resize=function(xt){switch(this.activeGrip){case this.grip1:this.x1=xt.x,this.y1=xt.y;break;case this.grip2:case void 0:this.x2=xt.x,this.y2=xt.y}this.adjustVisual(),this.adjustControlBox()},Ct.prototype.select=function(){Ot.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Ct.prototype.deselect=function(){Ot.prototype.deselect.call(this),this.controlBox.style.display="none"},Ct.prototype.setupControlBox=function(){this.controlBox=le.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Ct.prototype.adjustControlBox=function(){this.positionGrips()},Ct.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Ct.prototype.createGrip=function(){var xt=new Kt;return xt.visual.transform.baseVal.appendItem(le.createTransform()),this.controlBox.appendChild(xt.visual),xt},Ct.prototype.positionGrips=function(){var xt=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-xt/2,this.y1-xt/2),this.positionGrip(this.grip2.visual,this.x2-xt/2,this.y2-xt/2)},Ct.prototype.positionGrip=function(xt,Bt,Rt){var Et=xt.transform.baseVal.getItem(0);Et.setTranslate(Bt,Rt),xt.transform.baseVal.replaceItem(Et,0)},Ct.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Ot.prototype.getState.call(this))},Ct.prototype.restoreState=function(xt){Ot.prototype.restoreState.call(this,xt);var Bt=xt;this.x1=Bt.x1,this.y1=Bt.y1,this.x2=Bt.x2,this.y2=Bt.y2},Ct.prototype.scale=function(xt,Bt){Ot.prototype.scale.call(this,xt,Bt),this.x1=this.x1*xt,this.y1=this.y1*Bt,this.x2=this.x2*xt,this.y2=this.y2*Bt,this.adjustVisual(),this.adjustControlBox()},Ct}(Ft),Pn=function(Ot){function Ct(xt,Bt,Rt){var Et=Ot.call(this,xt,Bt,Rt)||this;return Et.strokeColor="transparent",Et.strokeWidth=0,Et.strokeDasharray="",Et.setStrokeColor=Et.setStrokeColor.bind(Et),Et.setStrokeWidth=Et.setStrokeWidth.bind(Et),Et.setStrokeDasharray=Et.setStrokeDasharray.bind(Et),Et.strokeColor=Rt.defaultColor,Et.strokeWidth=Rt.defaultStrokeWidth,Et.strokeDasharray=Rt.defaultStrokeDasharray,Et.strokePanel=new Lt("Line color",Rt.defaultColorSet,Rt.defaultColor),Et.strokePanel.onColorChanged=Et.setStrokeColor,Et.strokeWidthPanel=new ve("Line width",Rt.defaultStrokeWidths,Rt.defaultStrokeWidth),Et.strokeWidthPanel.onWidthChanged=Et.setStrokeWidth,Et.strokeStylePanel=new re("Line style",Rt.defaultStrokeDasharrays,Rt.defaultStrokeDasharray),Et.strokeStylePanel.onStyleChanged=Et.setStrokeDasharray,Et}return qt(Ct,Ot),Ct.prototype.ownsTarget=function(xt){return!(!Ot.prototype.ownsTarget.call(this,xt)&&xt!==this.visual&&xt!==this.selectorLine&&xt!==this.visibleLine)},Ct.prototype.createVisual=function(){this.visual=le.createGroup(),this.selectorLine=le.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=le.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},Ct.prototype.pointerDown=function(xt,Bt){Ot.prototype.pointerDown.call(this,xt,Bt),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Ct.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),le.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),le.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),le.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Ct.prototype.setStrokeColor=function(xt){this.strokeColor=xt,this.adjustVisual(),this.colorChanged(xt)},Ct.prototype.setStrokeWidth=function(xt){this.strokeWidth=xt,this.adjustVisual()},Ct.prototype.setStrokeDasharray=function(xt){this.strokeDasharray=xt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Ot.prototype.getState.call(this));return xt.typeName=Ct.typeName,xt},Ct.prototype.restoreState=function(xt){Ot.prototype.restoreState.call(this,xt);var Bt=xt;this.strokeColor=Bt.strokeColor,this.strokeWidth=Bt.strokeWidth,this.strokeDasharray=Bt.strokeDasharray,this.createVisual(),this.adjustVisual()},Ct.typeName="LineMarker",Ct.title="Line marker",Ct.icon='',Ct}(Fe),vn=function(Ot){function Ct(xt,Bt,Rt,Et){var se=Ot.call(this,xt,Et||'')||this;return se.fonts=[],se.fontBoxes=[],se.fonts=Bt,se.currentFont=Rt,se.setCurrentFont=se.setCurrentFont.bind(se),se}return qt(Ct,Ot),Ct.prototype.getUi=function(){var xt=this,Bt=document.createElement("div");return Bt.style.overflow="hidden",Bt.style.flexGrow="2",this.fonts.forEach(function(Rt){var Et=document.createElement("div");Et.style.display="inline-block",Et.style.alignItems="center",Et.style.justifyContent="space-between",Et.style.padding="5px",Et.style.borderWidth="2px",Et.style.borderStyle="solid",Et.style.overflow="hidden",Et.style.maxWidth=100/xt.fonts.length-5+"%",Et.style.borderColor=Rt===xt.currentFont?xt.uiStyleSettings.toolboxAccentColor:"transparent",Et.addEventListener("click",function(){xt.setCurrentFont(Rt,Et)}),Bt.appendChild(Et);var se=document.createElement("div");se.style.display="flex",se.style.minHeight="20px",se.style.flexGrow="2",se.style.fontFamily=Rt,se.style.overflow="hidden";var _e=document.createElement("div");_e.style.whiteSpace="nowrap",_e.style.overflow="hidden",_e.style.textOverflow="ellipsis",_e.innerHTML="The quick brown fox jumps over the lazy dog",se.appendChild(_e),Et.appendChild(se),xt.fontBoxes.push(Et)}),Bt},Ct.prototype.setCurrentFont=function(xt,Bt){var Rt=this;this.currentFont=xt,this.fontBoxes.forEach(function(Et){Et.style.borderColor=Et===Bt?Rt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Ct}(vt),Mn=function(Ot){function Ct(xt,Bt,Rt){var Et=Ot.call(this,xt,Bt,Rt)||this;return Et.color="transparent",Et.padding=5,Et.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Et.text=Et.DEFAULT_TEXT,Et.isMoved=!1,Et.color=Rt.defaultColor,Et.fontFamily=Rt.defaultFontFamily,Et.defaultSize={x:100,y:30},Et.setColor=Et.setColor.bind(Et),Et.setFont=Et.setFont.bind(Et),Et.renderText=Et.renderText.bind(Et),Et.sizeText=Et.sizeText.bind(Et),Et.textEditDivClicked=Et.textEditDivClicked.bind(Et),Et.showTextEditor=Et.showTextEditor.bind(Et),Et.setSize=Et.setSize.bind(Et),Et.positionTextEditor=Et.positionTextEditor.bind(Et),Et.colorPanel=new Lt("Color",Rt.defaultColorSet,Rt.defaultColor),Et.colorPanel.onColorChanged=Et.setColor,Et.fontFamilyPanel=new vn("Font",Rt.defaultFontFamilies,Rt.defaultFontFamily),Et.fontFamilyPanel.onFontChanged=Et.setFont,Et}return qt(Ct,Ot),Ct.prototype.ownsTarget=function(xt){if(Ot.prototype.ownsTarget.call(this,xt)||xt===this.visual||xt===this.textElement||xt===this.bgRectangle)return!0;var Bt=!1;return this.textElement.childNodes.forEach(function(Rt){Rt===xt&&(Bt=!0)}),Bt},Ct.prototype.createVisual=function(){this.visual=le.createGroup(),this.bgRectangle=le.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=le.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(le.createTransform()),this.textElement.transform.baseVal.appendItem(le.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Ct.prototype.pointerDown=function(xt,Bt){Ot.prototype.pointerDown.call(this,xt,Bt),this.isMoved=!1,this.pointerDownPoint=xt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(xt),this._state="creating")},Ct.prototype.renderText=function(){var xt=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(Bt){xt.textElement.appendChild(le.createTSpan(Bt.trim()===""?" ":Bt.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Ct.prototype.getTextScale=function(){var xt=this.textElement.getBBox(),Bt=1;if(xt.width>0&&xt.height>0){var Rt=(1*this.width-this.width*this.padding*2/100)/xt.width,Et=(1*this.height-this.height*this.padding*2/100)/xt.height;Bt=Math.min(Rt,Et)}return Bt},Ct.prototype.getTextPosition=function(xt){var Bt=this.textElement.getBBox(),Rt=0,Et=0;return Bt.width>0&&Bt.height>0&&(Rt=(this.width-Bt.width*xt)/2,Et=this.height/2-Bt.height*xt/2),{x:Rt,y:Et}},Ct.prototype.sizeText=function(){var xt=this.textElement.getBBox(),Bt=this.getTextScale(),Rt=this.getTextPosition(Bt);Rt.y-=xt.y*Bt,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Rt.x+"px, "+Rt.y+"px) scale("+Bt+", "+Bt+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Rt.x,Rt.y),this.textElement.transform.baseVal.getItem(1).setScale(Bt,Bt))},Ct.prototype.manipulate=function(xt){Ot.prototype.manipulate.call(this,xt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(xt.x-this.pointerDownPoint.x)>5||Math.abs(xt.y-this.pointerDownPoint.y)>5)},Ct.prototype.resize=function(xt){Ot.prototype.resize.call(this,xt),this.isMoved=!0,this.setSize(),this.sizeText()},Ct.prototype.setSize=function(){Ot.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(le.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),le.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Ct.prototype.pointerUp=function(xt){var Bt=this.state;Bt==="creating"&&(this._suppressMarkerCreateEvent=!0),Ot.prototype.pointerUp.call(this,xt),this.setSize(),(Bt==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Ct.prototype.showTextEditor=function(){var xt=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(Bt){Bt.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Bt=Number.parseFloat(xt.textEditor.style.fontSize);xt.textEditor.clientWidth>=Number.parseInt(xt.textEditor.style.maxWidth)&&Bt>.9;)Bt-=.1,xt.textEditor.style.fontSize=Math.max(Bt,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Bt){Bt.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Bt){if(Bt.clipboardData){var Rt=Bt.clipboardData.getData("text"),Et=window.getSelection();if(!Et.rangeCount)return!1;Et.deleteFromDocument(),Et.getRangeAt(0).insertNode(document.createTextNode(Rt)),Bt.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){xt.textEditDivClicked(xt.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},Ct.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var xt=this.getTextScale(),Bt=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Rt=this.textElement.getBBox(),Et={x:Rt.width*xt,y:Rt.height*xt};Bt.x-=Et.x/2,Bt.y-=Et.y/2,this.textEditor.style.top=Bt.y+"px",this.textEditor.style.left=Bt.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Bt.x+"px",this.textEditor.style.fontSize=Math.max(16*xt,12)+"px",this.textElement.style.display="none"}},Ct.prototype.textEditDivClicked=function(xt){this.text=xt.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Ct.prototype.select=function(){Ot.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Ct.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Ot.prototype.deselect.call(this)},Ct.prototype.dblClick=function(xt,Bt){Ot.prototype.dblClick.call(this,xt,Bt),this.showTextEditor()},Ct.prototype.setColor=function(xt){this.textElement&&le.setAttributes(this.textElement,[["fill",xt]]),this.color=xt,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(xt)},Ct.prototype.setFont=function(xt){this.textElement&&le.setAttributes(this.textElement,[["font-family",xt]]),this.fontFamily=xt,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Ct.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Ct.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Ot.prototype.getState.call(this));return xt.typeName=Ct.typeName,xt},Ct.prototype.restoreState=function(xt){var Bt=xt;this.color=Bt.color,this.fontFamily=Bt.fontFamily,this.padding=Bt.padding,this.text=Bt.text,this.createVisual(),Ot.prototype.restoreState.call(this,xt),this.setSize()},Ct.prototype.scale=function(xt,Bt){Ot.prototype.scale.call(this,xt,Bt),this.setSize(),this.sizeText(),this.positionTextEditor()},Ct.typeName="TextMarker",Ct.title="Text marker",Ct.icon='',Ct}(ne),In=function(Ot){function Ct(xt,Bt,Rt){var Et=Ot.call(this,xt,Bt,Rt)||this;return Et.color="transparent",Et.lineWidth=3,Et.drawing=!1,Et.pixelRatio=1,Et.color=Rt.defaultColor,Et.lineWidth=Rt.defaultStrokeWidth,Et.pixelRatio=Rt.freehandPixelRatio,Et.setColor=Et.setColor.bind(Et),Et.addCanvas=Et.addCanvas.bind(Et),Et.finishCreation=Et.finishCreation.bind(Et),Et.setLineWidth=Et.setLineWidth.bind(Et),Et.colorPanel=new Lt("Color",Rt.defaultColorSet,Rt.defaultColor),Et.colorPanel.onColorChanged=Et.setColor,Et.lineWidthPanel=new ve("Line width",Rt.defaultStrokeWidths,Rt.defaultStrokeWidth),Et.lineWidthPanel.onWidthChanged=Et.setLineWidth,Et}return qt(Ct,Ot),Ct.prototype.ownsTarget=function(xt){return!(!Ot.prototype.ownsTarget.call(this,xt)&&xt!==this.visual&&xt!==this.drawingImage)},Ct.prototype.createVisual=function(){this.visual=le.createGroup(),this.drawingImage=le.createImage(),this.visual.appendChild(this.drawingImage);var xt=le.createTransform();this.visual.transform.baseVal.appendItem(xt),this.addMarkerVisualToContainer(this.visual)},Ct.prototype.pointerDown=function(xt,Bt){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(xt.x,xt.y),this.drawing=!0):Ot.prototype.pointerDown.call(this,xt,Bt)},Ct.prototype.manipulate=function(xt){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(xt.x,xt.y),this.canvasContext.stroke()):Ot.prototype.manipulate.call(this,xt)},Ct.prototype.resize=function(xt){Ot.prototype.resize.call(this,xt),le.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),le.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Ct.prototype.pointerUp=function(xt){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Ot.prototype.pointerUp.call(this,xt)},Ct.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},Ct.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Ot.prototype.select.call(this)},Ct.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Ot.prototype.deselect.call(this)},Ct.prototype.finishCreation=function(){for(var xt=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Bt=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Rt=Bt[0],Et=Bt[1],se=Bt[2],_e=Bt[3],nn=!1,tn=0;tn0&&(nn=!0,tn_e&&(_e=tn),Ln>se&&(se=Ln));if(nn){this.left=Rt/this.pixelRatio,this.top=Et/this.pixelRatio,this.width=(se-Rt)/this.pixelRatio,this.height=(_e-Et)/this.pixelRatio;var ni=document.createElement("canvas");ni.width=se-Rt,ni.height=_e-Et,ni.getContext("2d").putImageData(this.canvasContext.getImageData(Rt,Et,se-Rt,_e-Et),0,0),this.drawingImgUrl=ni.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Ct.prototype.setDrawingImage=function(){le.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),le.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Ct.prototype.setColor=function(xt){this.color=xt,this.colorChanged(xt)},Ct.prototype.setLineWidth=function(xt){this.lineWidth=xt},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=Object.assign({drawingImgUrl:this.drawingImgUrl},Ot.prototype.getState.call(this));return xt.typeName=Ct.typeName,xt},Ct.prototype.restoreState=function(xt){this.createVisual(),Ot.prototype.restoreState.call(this,xt),this.drawingImgUrl=xt.drawingImgUrl,this.setDrawingImage()},Ct.prototype.scale=function(xt,Bt){Ot.prototype.scale.call(this,xt,Bt),this.setDrawingImage()},Ct.typeName="FreehandMarker",Ct.title="Freehand marker",Ct.icon='',Ct}(ne),Zt=function(Ot){function Ct(xt,Bt,Rt){var Et=Ot.call(this,xt,Rt||'')||this;return Et.typeBoxes=[],Et.currentType=Bt,Et.setCurrentType=Et.setCurrentType.bind(Et),Et}return qt(Ct,Ot),Ct.prototype.getUi=function(){var xt=this,Bt=document.createElement("div");Bt.style.display="flex",Bt.style.overflow="hidden",Bt.style.flexGrow="2";for(var Rt=function(_e){var nn="both";switch(_e){case 0:nn="both";break;case 1:nn="start";break;case 2:nn="end";break;case 3:nn="none"}var tn=document.createElement("div");if(tn.style.display="flex",tn.style.flexGrow="2",tn.style.alignItems="center",tn.style.justifyContent="space-between",tn.style.padding="5px",tn.style.borderWidth="2px",tn.style.borderStyle="solid",tn.style.borderColor=nn===Et.currentType?Et.uiStyleSettings.toolboxAccentColor:"transparent",tn.addEventListener("click",function(){xt.setCurrentType(nn,tn)}),Bt.appendChild(tn),nn==="both"||nn==="start"){var Ln=document.createElement("div");Ln.style.display="flex",Ln.style.alignItems="center",Ln.style.minHeight="20px",Ln.innerHTML=` + + `,Ln.style.marginLeft="5px",tn.appendChild(Ln)}var ni=document.createElement("div");ni.style.display="flex",ni.style.alignItems="center",ni.style.minHeight="20px",ni.style.flexGrow="2";var di=document.createElement("hr");if(di.style.minWidth="20px",di.style.border="0px",di.style.borderTop="3px solid "+(Et.uiStyleSettings!==void 0?Et.uiStyleSettings.toolboxColor:"#eeeeee"),di.style.flexGrow="2",ni.appendChild(di),tn.appendChild(ni),nn==="both"||nn==="end"){var si=document.createElement("div");si.style.display="flex",si.style.alignItems="center",si.style.minHeight="20px",si.innerHTML=` + + `,si.style.marginRight="5px",tn.appendChild(si)}Et.typeBoxes.push(tn)},Et=this,se=0;se<4;se++)Rt(se);return Bt},Ct.prototype.setCurrentType=function(xt,Bt){var Rt=this;this.currentType=xt,this.typeBoxes.forEach(function(Et){Et.style.borderColor=Et===Bt?Rt.uiStyleSettings!==void 0?Rt.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Ct}(vt),Gt=function(Ot){function Ct(xt,Bt,Rt){var Et=Ot.call(this,xt,Bt,Rt)||this;return Et.arrowType="end",Et.arrowBaseHeight=10,Et.arrowBaseWidth=10,Et.getArrowPoints=Et.getArrowPoints.bind(Et),Et.setArrowType=Et.setArrowType.bind(Et),Et.arrowTypePanel=new Zt("Arrow type","end"),Et.arrowTypePanel.onArrowTypeChanged=Et.setArrowType,Et}return qt(Ct,Ot),Ct.prototype.ownsTarget=function(xt){return!(!Ot.prototype.ownsTarget.call(this,xt)&&xt!==this.arrow1&&xt!==this.arrow2)},Ct.prototype.getArrowPoints=function(xt,Bt){var Rt=this.arrowBaseWidth+2*this.strokeWidth,Et=this.arrowBaseHeight+2*this.strokeWidth;return xt-Rt/2+","+(Bt+Et/2)+" "+xt+","+(Bt-Et/2)+" "+(xt+Rt/2)+","+(Bt+Et/2)},Ct.prototype.createTips=function(){this.arrow1=le.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(le.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=le.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(le.createTransform()),this.visual.appendChild(this.arrow2)},Ct.prototype.pointerDown=function(xt,Bt){Ot.prototype.pointerDown.call(this,xt,Bt),this.state==="creating"&&this.createTips()},Ct.prototype.adjustVisual=function(){if(Ot.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",le.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),le.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var xt=0;Math.abs(this.x1-this.x2)>.1&&(xt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Bt=this.arrow1.transform.baseVal.getItem(0);Bt.setRotate(xt,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Bt,0);var Rt=this.arrow2.transform.baseVal.getItem(0);Rt.setRotate(xt+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Rt,0)}},Ct.prototype.setArrowType=function(xt){this.arrowType=xt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=Object.assign({arrowType:this.arrowType},Ot.prototype.getState.call(this));return xt.typeName=Ct.typeName,xt},Ct.prototype.restoreState=function(xt){Ot.prototype.restoreState.call(this,xt);var Bt=xt;this.arrowType=Bt.arrowType,this.createTips(),this.adjustVisual()},Ct.typeName="ArrowMarker",Ct.title="Arrow marker",Ct.icon='',Ct}(Pn),He=function(Ot){function Ct(xt,Bt,Rt){var Et=Ot.call(this,xt,Bt,Rt)||this;return Et.fillColor=Rt.defaultFillColor,Et.strokeWidth=0,Et.fillPanel=new Lt("Color",Rt.defaultColorSet,Rt.defaultFillColor),Et.fillPanel.onColorChanged=Et.setFillColor,Et}return qt(Ct,Ot),Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=Ot.prototype.getState.call(this);return xt.typeName=Ct.typeName,xt},Ct.typeName="CoverMarker",Ct.title="Cover marker",Ct.icon='',Ct}($t),un=function(Ot){function Ct(xt,Bt,Rt,Et){var se=Ot.call(this,xt,Et||'')||this;return se.opacities=[],se.opacityBoxes=[],se.opacities=Bt,se.currentOpacity=Rt,se.setCurrentOpacity=se.setCurrentOpacity.bind(se),se}return qt(Ct,Ot),Ct.prototype.getUi=function(){var xt=this,Bt=document.createElement("div");return Bt.style.display="flex",Bt.style.overflow="hidden",Bt.style.flexGrow="2",Bt.style.justifyContent="space-between",this.opacities.forEach(function(Rt){var Et=document.createElement("div");Et.style.display="flex",Et.style.alignItems="center",Et.style.justifyContent="center",Et.style.padding="5px",Et.style.borderWidth="2px",Et.style.borderStyle="solid",Et.style.borderColor=Rt===xt.currentOpacity?xt.uiStyleSettings.toolboxAccentColor:"transparent",Et.addEventListener("click",function(){xt.setCurrentOpacity(Rt,Et)}),Bt.appendChild(Et);var se=document.createElement("div");se.innerText=100*Rt+"%",Et.appendChild(se),xt.opacityBoxes.push(Et)}),Bt},Ct.prototype.setCurrentOpacity=function(xt,Bt){var Rt=this;this.currentOpacity=xt,this.opacityBoxes.forEach(function(Et){Et.style.borderColor=Et===Bt?Rt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Ct}(vt),ln=function(Ot){function Ct(xt,Bt,Rt){var Et=Ot.call(this,xt,Bt,Rt)||this;return Et.setOpacity=Et.setOpacity.bind(Et),Et.fillColor=Rt.defaultHighlightColor,Et.strokeWidth=0,Et.opacity=Rt.defaultHighlightOpacity,Et.fillPanel=new Lt("Color",Rt.defaultColorSet,Et.fillColor),Et.fillPanel.onColorChanged=Et.setFillColor,Et.opacityPanel=new un("Opacity",Rt.defaultOpacitySteps,Et.opacity),Et.opacityPanel.onOpacityChanged=Et.setOpacity,Et}return qt(Ct,Ot),Ct.prototype.setOpacity=function(xt){this.opacity=xt,this.visual&&le.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=Ot.prototype.getState.call(this);return xt.typeName=Ct.typeName,xt},Ct.typeName="HighlightMarker",Ct.title="Highlight marker",Ct.icon='',Ct}(He),ce='',Ue='',on=function(Ot){function Ct(xt,Bt,Rt){var Et=Ot.call(this,xt,Bt,Rt)||this;return Et.bgColor="transparent",Et.tipPosition={x:0,y:0},Et.tipBase1Position={x:0,y:0},Et.tipBase2Position={x:0,y:0},Et.tipMoving=!1,Et.color=Rt.defaultStrokeColor,Et.bgColor=Rt.defaultFillColor,Et.fontFamily=Rt.defaultFontFamily,Et.defaultSize={x:100,y:30},Et.setBgColor=Et.setBgColor.bind(Et),Et.getTipPoints=Et.getTipPoints.bind(Et),Et.positionTip=Et.positionTip.bind(Et),Et.setTipPoints=Et.setTipPoints.bind(Et),Et.colorPanel=new Lt("Text color",Rt.defaultColorSet,Et.color,ce),Et.colorPanel.onColorChanged=Et.setColor,Et.bgColorPanel=new Lt("Fill color",Rt.defaultColorSet,Et.bgColor,Ue),Et.bgColorPanel.onColorChanged=Et.setBgColor,Et.fontFamilyPanel=new vn("Font",Rt.defaultFontFamilies,Rt.defaultFontFamily),Et.fontFamilyPanel.onFontChanged=Et.setFont,Et.tipGrip=new Kt,Et.tipGrip.visual.transform.baseVal.appendItem(le.createTransform()),Et.controlBox.appendChild(Et.tipGrip.visual),Et}return qt(Ct,Ot),Ct.prototype.ownsTarget=function(xt){return Ot.prototype.ownsTarget.call(this,xt)||this.tipGrip.ownsTarget(xt)||this.tip===xt},Ct.prototype.createTip=function(){le.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=le.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Ct.prototype.pointerDown=function(xt,Bt){this.state==="new"&&Ot.prototype.pointerDown.call(this,xt,Bt),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Bt)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Ot.prototype.pointerDown.call(this,xt,Bt)},Ct.prototype.pointerUp=function(xt){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Ot.prototype.pointerUp.call(this,xt);else{var Bt=this.state==="creating";Ot.prototype.pointerUp.call(this,xt),this.setTipPoints(Bt),this.positionTip()}},Ct.prototype.manipulate=function(xt){if(this.tipMoving){var Bt=this.unrotatePoint(xt);this.tipPosition={x:Bt.x-this.manipulationStartLeft,y:Bt.y-this.manipulationStartTop},this.positionTip()}else Ot.prototype.manipulate.call(this,xt)},Ct.prototype.setBgColor=function(xt){this.bgRectangle&&this.tip&&(le.setAttributes(this.bgRectangle,[["fill",xt]]),le.setAttributes(this.tip,[["fill",xt]])),this.bgColor=xt,this.fillColorChanged(xt)},Ct.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},Ct.prototype.setTipPoints=function(xt){xt===void 0&&(xt=!1);var Bt=Math.min(this.height/2,15),Rt=this.height/5;xt&&(this.tipPosition={x:Bt+Rt/2,y:this.height+20});var Et=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?Et.1)){var xt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Bt=this.tip1.transform.baseVal.getItem(0);Bt.setRotate(xt,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Bt,0);var Rt=this.tip2.transform.baseVal.getItem(0);Rt.setRotate(xt+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Rt,0)}},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=Ot.prototype.getState.call(this);return xt.typeName=Ct.typeName,xt},Ct.prototype.restoreState=function(xt){Ot.prototype.restoreState.call(this,xt),this.createTips(),this.adjustVisual()},Ct.typeName="MeasurementMarker",Ct.title="Measurement marker",Ct.icon='',Ct}(Pn),kn=function(Ot){function Ct(xt,Bt,Rt){var Et=Ot.call(this,xt,Bt,Rt)||this;return Et.strokePanel.colors=Rt.defaultColorSet,Et.fillColor="transparent",Et}return qt(Ct,Ot),Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=Ot.prototype.getState.call(this);return xt.typeName=Ct.typeName,xt},Ct.typeName="EllipseFrameMarker",Ct.title="Ellipse frame marker",Ct.icon='',Ct}(wn),te=function(){function Ot(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Ot.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Ot.prototype.addUndoStep=function(Ct){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Ct)||(this.undoStack.push(Ct),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Ct)&&this.redoStack.splice(0,this.redoStack.length))},Ot.prototype.replaceLastUndoStep=function(Ct){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Ct)},Ot.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Ot.prototype.undo=function(){if(this.undoStack.length>1){var Ct=this.undoStack.pop();return Ct!==void 0&&this.redoStack.push(Ct),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Ot.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Ot}(),Ve=function(Ot){function Ct(xt,Bt,Rt){var Et=Ot.call(this,xt,Bt,Rt)||this;return Et.strokeColor="transparent",Et.strokeWidth=0,Et.strokeDasharray="",Et.curveX=0,Et.curveY=0,Et.manipulationStartCurveX=0,Et.manipulationStartCurveY=0,Et.setStrokeColor=Et.setStrokeColor.bind(Et),Et.setStrokeWidth=Et.setStrokeWidth.bind(Et),Et.setStrokeDasharray=Et.setStrokeDasharray.bind(Et),Et.positionGrips=Et.positionGrips.bind(Et),Et.addControlGrips=Et.addControlGrips.bind(Et),Et.adjustVisual=Et.adjustVisual.bind(Et),Et.setupControlBox=Et.setupControlBox.bind(Et),Et.resize=Et.resize.bind(Et),Et.strokeColor=Rt.defaultColor,Et.strokeWidth=Rt.defaultStrokeWidth,Et.strokeDasharray=Rt.defaultStrokeDasharray,Et.strokePanel=new Lt("Line color",Rt.defaultColorSet,Rt.defaultColor),Et.strokePanel.onColorChanged=Et.setStrokeColor,Et.strokeWidthPanel=new ve("Line width",Rt.defaultStrokeWidths,Rt.defaultStrokeWidth),Et.strokeWidthPanel.onWidthChanged=Et.setStrokeWidth,Et.strokeStylePanel=new re("Line style",Rt.defaultStrokeDasharrays,Rt.defaultStrokeDasharray),Et.strokeStylePanel.onStyleChanged=Et.setStrokeDasharray,Et}return qt(Ct,Ot),Ct.prototype.ownsTarget=function(xt){return!(!Ot.prototype.ownsTarget.call(this,xt)&&xt!==this.visual&&xt!==this.selectorCurve&&xt!==this.visibleCurve&&!this.curveGrip.ownsTarget(xt))},Ct.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Ct.prototype.createVisual=function(){this.visual=le.createGroup(),this.selectorCurve=le.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=le.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},Ct.prototype.pointerDown=function(xt,Bt){Ot.prototype.pointerDown.call(this,xt,Bt),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=xt.x,this.curveY=xt.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Bt)&&(this.activeGrip=this.curveGrip,this._state="resize")},Ct.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),le.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),le.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),le.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Ct.prototype.setupControlBox=function(){Ot.prototype.setupControlBox.call(this),this.curveControlLine1=le.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=le.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},Ct.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Ot.prototype.addControlGrips.call(this)},Ct.prototype.positionGrips=function(){Ot.prototype.positionGrips.call(this);var xt=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-xt/2,this.curveY-xt/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},Ct.prototype.manipulate=function(xt){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+xt.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+xt.y-this.manipulationStartY),Ot.prototype.manipulate.call(this,xt)},Ct.prototype.resize=function(xt){this.activeGrip===this.curveGrip&&(this.curveX=xt.x,this.curveY=xt.y),Ot.prototype.resize.call(this,xt),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},Ct.prototype.setStrokeColor=function(xt){this.strokeColor=xt,this.adjustVisual(),this.colorChanged(xt)},Ct.prototype.setStrokeWidth=function(xt){this.strokeWidth=xt,this.adjustVisual()},Ct.prototype.setStrokeDasharray=function(xt){this.strokeDasharray=xt,this.adjustVisual()},Ct.prototype.scale=function(xt,Bt){this.curveX=this.curveX*xt,this.curveY=this.curveY*Bt,Ot.prototype.scale.call(this,xt,Bt)},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Ot.prototype.getState.call(this));return xt.typeName=Ct.typeName,xt},Ct.prototype.restoreState=function(xt){Ot.prototype.restoreState.call(this,xt);var Bt=xt;this.strokeColor=Bt.strokeColor,this.strokeWidth=Bt.strokeWidth,this.strokeDasharray=Bt.strokeDasharray,this.curveX=Bt.curveX,this.curveY=Bt.curveY,this.createVisual(),this.adjustVisual()},Ct.typeName="CurveMarker",Ct.title="Curve marker",Ct.icon='',Ct}(Fe),fn=function(Ot){function Ct(xt,Bt,Rt){var Et=Ot.call(this,xt,Bt,Rt)||this;return Et.fillColor="transparent",Et.strokeColor="transparent",Et.strokeWidth=0,Et.strokeDasharray="",Et.textColor="transparent",Et.fontSize="1rem",Et.isMoved=!1,Et.captionText="Caption",Et.PADDING=5,Et.captionBoxWidth=0,Et.captionBoxHeight=0,Et.strokeColor=Rt.defaultColor,Et.strokeWidth=Rt.defaultStrokeWidth,Et.strokeDasharray=Rt.defaultStrokeDasharray,Et.fillColor=Rt.defaultFillColor,Et.textColor=Rt.defaultStrokeColor,Et.fontFamily=Rt.defaultFontFamily,Et.fontSize=Rt.defaultCaptionFontSize,Et.captionText=Rt.defaultCaptionText,Et.setStrokeColor=Et.setStrokeColor.bind(Et),Et.setFillColor=Et.setFillColor.bind(Et),Et.setStrokeWidth=Et.setStrokeWidth.bind(Et),Et.setStrokeDasharray=Et.setStrokeDasharray.bind(Et),Et.createVisual=Et.createVisual.bind(Et),Et.sizeCaption=Et.sizeCaption.bind(Et),Et.setCaptionText=Et.setCaptionText.bind(Et),Et.showTextEditor=Et.showTextEditor.bind(Et),Et.positionTextEditor=Et.positionTextEditor.bind(Et),Et.finishTextEditing=Et.finishTextEditing.bind(Et),Et.setFont=Et.setFont.bind(Et),Et.setTextColor=Et.setTextColor.bind(Et),Et.strokePanel=new Lt("Line color",pe(Rt.defaultColorSet,["transparent"]),Et.strokeColor),Et.strokePanel.onColorChanged=Et.setStrokeColor,Et.fillPanel=new Lt("Fill color",pe(Rt.defaultColorSet,["transparent"]),Et.fillColor,Ue),Et.fillPanel.onColorChanged=Et.setFillColor,Et.strokeWidthPanel=new ve("Line width",Rt.defaultStrokeWidths,Rt.defaultStrokeWidth),Et.strokeWidthPanel.onWidthChanged=Et.setStrokeWidth,Et.strokeStylePanel=new re("Line style",Rt.defaultStrokeDasharrays,Rt.defaultStrokeDasharray),Et.strokeStylePanel.onStyleChanged=Et.setStrokeDasharray,Et.fontFamilyPanel=new vn("Font",Rt.defaultFontFamilies,Rt.defaultFontFamily),Et.fontFamilyPanel.onFontChanged=Et.setFont,Et.textColorPanel=new Lt("Text color",Rt.defaultColorSet,Et.textColor,ce),Et.textColorPanel.onColorChanged=Et.setTextColor,Et}return qt(Ct,Ot),Ct.prototype.ownsTarget=function(xt){return!(!Ot.prototype.ownsTarget.call(this,xt)&&xt!==this.visual&&xt!==this.frame&&xt!==this.captionBg&&xt!==this.captionElement)},Ct.prototype.createVisual=function(){this.visual=le.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=le.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=le.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=le.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},Ct.prototype.setCaptionText=function(xt){this.captionText=xt,this.captionElement.textContent=this.captionText,this.sizeCaption()},Ct.prototype.pointerDown=function(xt,Bt){Ot.prototype.pointerDown.call(this,xt,Bt),this.isMoved=!1,this.pointerDownPoint=xt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(xt),this._state="creating")},Ct.prototype.manipulate=function(xt){Ot.prototype.manipulate.call(this,xt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(xt.x-this.pointerDownPoint.x)>5||Math.abs(xt.y-this.pointerDownPoint.y)>5)},Ct.prototype.resize=function(xt){Ot.prototype.resize.call(this,xt),this.setSize()},Ct.prototype.sizeCaption=function(){var xt=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=xt.width+2*this.PADDING,this.captionBoxHeight=xt.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),le.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),le.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},Ct.prototype.showTextEditor=function(){var xt=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(Bt){Bt.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Bt){Bt.key==="Enter"&&xt.finishTextEditing(xt.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Bt){Bt.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){xt.finishTextEditing(xt.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){xt.finishTextEditing(xt.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},Ct.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},Ct.prototype.finishTextEditing=function(xt){this.setCaptionText(xt.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Ct.prototype.setFont=function(xt){this.captionElement&&le.setAttributes(this.captionElement,[["font-family",xt]]),this.fontFamily=xt,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Ct.prototype.setTextColor=function(xt){this.captionElement&&le.setAttributes(this.captionElement,[["fill",xt]]),this.textColor=xt,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Ct.prototype.setSize=function(){Ot.prototype.setSize.call(this),le.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Ct.prototype.pointerUp=function(xt){Ot.prototype.pointerUp.call(this,xt),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Ct.prototype.dblClick=function(xt,Bt){Ot.prototype.dblClick.call(this,xt,Bt),this.showTextEditor()},Ct.prototype.setStrokeColor=function(xt){this.strokeColor=xt,this.frame&&le.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(xt),this.stateChanged()},Ct.prototype.setFillColor=function(xt){this.fillColor=xt,this.captionBg&&le.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(xt),this.stateChanged()},Ct.prototype.setStrokeWidth=function(xt){this.strokeWidth=xt,this.frame&&le.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ct.prototype.setStrokeDasharray=function(xt){this.strokeDasharray=xt,this.frame&&le.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},Ot.prototype.getState.call(this));return xt.typeName=this.typeName,xt},Ct.prototype.restoreState=function(xt){var Bt=xt;this.fillColor=Bt.fillColor,this.strokeColor=Bt.strokeColor,this.strokeWidth=Bt.strokeWidth,this.strokeDasharray=Bt.strokeDasharray,this.textColor=Bt.textColor,this.fontFamily=Bt.fontFamily,this.captionText=Bt.captionText,this.fontSize=Bt.fontSize,this.createVisual(),Ot.prototype.restoreState.call(this,xt),this.setSize()},Ct.prototype.scale=function(xt,Bt){Ot.prototype.scale.call(this,xt,Bt),this.setSize()},Ct.typeName="CaptionFrameMarker",Ct.title="Caption frame marker",Ct.icon='',Ct}(ne),dn=function(){function Ot(Ct,xt){xt===void 0&&(xt=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Ct,this.cancelable=xt}return Object.defineProperty(Ot.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Ot.prototype.preventDefault=function(){this._defaultPrevented=!0},Ot}(),Sn=function(Ot){function Ct(xt,Bt,Rt){var Et=Ot.call(this,xt,!1)||this;return Et.dataUrl=Bt,Et.state=Rt,Et}return qt(Ct,Ot),Ct}(dn),Vn=function(Ot){function Ct(xt,Bt,Rt){Rt===void 0&&(Rt=!1);var Et=Ot.call(this,xt,Rt)||this;return Et.marker=Bt,Et}return qt(Ct,Ot),Ct}(dn),vi=function(){function Ot(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return Ot.prototype.addEventListener=function(Ct,xt){this[Ct].push(xt)},Ot.prototype.removeEventListener=function(Ct,xt){var Bt=this[Ct].indexOf(xt);Bt>-1&&this[Ct].splice(Bt,1)},Ot}(),Qn=function(){function Ot(Ct){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new me,this._isOpen=!1,this.undoRedoManager=new te,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new vi,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Ot.instanceCounter++,this.styles=new et(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Ct,this.targetRoot=document.body,this.width=Ct.clientWidth,this.height=Ct.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(Ot.prototype,"ALL_MARKER_TYPES",{get:function(){return[Oe,In,Gt,Mn,kn,wn,ln,on,sn,He,Pn,Ve,fn]},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Oe,In,Gt,Mn,wn,ln,on]},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Oe,In,Gt,Mn,ln]},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Ct){var xt=this;this._availableMarkerTypes.splice(0),Ct.forEach(function(Bt){if(typeof Bt=="string"){var Rt=xt.ALL_MARKER_TYPES.find(function(Et){return Et.typeName===Bt});Rt!==void 0&&xt._availableMarkerTypes.push(Rt)}else xt._availableMarkerTypes.push(Bt)})},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Ct){this._zoomLevel=Ct,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Ot.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Be.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Ot.prototype.show=function(){var Ct=this;this.styles.styleSheetRoot===void 0&&Nt.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Nt.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(xt){return xt(new dn(Ct))})},Ot.prototype.render=function(){return Ce(this,void 0,void 0,function(){var Ct;return fe(this,function(xt){switch(xt.label){case 0:return this.setCurrentMarker(),(Ct=new je).naturalSize=this.renderAtNaturalSize,Ct.imageType=this.renderImageType,Ct.imageQuality=this.renderImageQuality,Ct.markersOnly=this.renderMarkersOnly,Ct.width=this.renderWidth,Ct.height=this.renderHeight,[4,Ct.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return xt.sent(),[4,Ct.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,xt.sent()]}})})},Ot.prototype.close=function(Ct){var xt=this;if(Ct===void 0&&(Ct=!1),this.isOpen){var Bt=!1;Ct||this.eventListeners.beforeclose.forEach(function(Rt){var Et=new dn(xt,!0);Rt(Et),Et.defaultPrevented&&(Bt=!0)}),Bt||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(Rt){return Rt(new dn(xt))}),this.detachEvents(),this._isOpen=!1)}},Ot.prototype.addMarkersToToolbar=function(){for(var Ct,xt=[],Bt=0;Btthis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Ct:this.editorCanvas.clientWidth,Bt=xt',Ct.title="Powered by marker.js",Ct.style.display="grid",Ct.style.alignItems="center",Ct.style.justifyItems="center",Ct.style.padding="3px",Ct.style.width="20px",Ct.style.height="20px",this.logoUI.appendChild(Ct),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Ot.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},Ot.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},Ot.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Ot.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var Ct=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Ct+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new lt(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop-1&&this.markers.splice(this.markers.indexOf(Ct),1),Ct.dispose()},Ot.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},Ot.prototype.toolbarButtonClicked=function(Ct,xt){if(Ct==="marker"&&xt!==void 0)this.createNewMarker(xt);else if(Ct==="action")switch(xt){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},Ot.prototype.deleteSelectedMarker=function(){var Ct=this;if(this._currentMarker!==void 0){var xt=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Rt){var Et=new Vn(Ct,Ct._currentMarker,!0);Rt(Et),Et.defaultPrevented&&(xt=!0)}),!xt){var Bt=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(Rt){return Rt(new Vn(Ct,Bt))})}}},Ot.prototype.clear=function(){var Ct=this,xt=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(se){var _e=new Vn(Ct,void 0,!0);se(_e),_e.defaultPrevented&&(xt=!0)}),!xt)){this.setCurrentMarker();for(var Bt=function(se){var _e=Rt.markers[se];Rt.setCurrentMarker(Rt.markers[se]),Rt._currentMarker.dispose(),Rt.markerImage.removeChild(Rt._currentMarker.container),Rt.markers.splice(Rt.markers.indexOf(Rt._currentMarker),1),Rt.eventListeners.markerdelete.forEach(function(nn){return nn(new Vn(Ct,_e))})},Rt=this,Et=this.markers.length-1;Et>=0;Et--)Bt(Et);this.addUndoStep()}},Object.defineProperty(Ot.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Ot.prototype.showNotesEditor=function(){var Ct;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(Ct=this._currentMarker.notes)!==null&&Ct!==void 0?Ct:"",this.overlayContainer.appendChild(this.notesArea))},Ot.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},Ot.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Ot.prototype.addUndoStep=function(){var Ct=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var xt=this.getState(),Bt=this.undoRedoManager.getLastUndoStep();if(!Bt||Bt.width===xt.width&&Bt.height===xt.height){var Rt=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(xt),Rt1&&this.panTo({x:Ct.clientX,y:Ct.clientY}))},Ot.prototype.onPointerUp=function(Ct){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Ct.clientX,Ct.clientY)),this.isDragging=!1,this.addUndoStep()},Ot.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Ot.prototype.onKeyUp=function(Ct){this._currentMarker===void 0||this.notesArea!==void 0||Ct.key!=="Delete"&&Ct.key!=="Backspace"||this.deleteSelectedMarker()},Ot.prototype.clientToLocalCoordinates=function(Ct,xt){var Bt=this.markerImage.getBoundingClientRect();return{x:(Ct-Bt.left)/this.zoomLevel,y:(xt-Bt.top)/this.zoomLevel}},Ot.prototype.onWindowResize=function(){this.positionUI()},Ot.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Ct=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Ct+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},Ot.prototype.addLicenseKey=function(Ct){Be.addKey(Ct)},Ot.prototype.addEventListener=function(Ct,xt){this.eventListeners.addEventListener(Ct,xt)},Ot.prototype.removeEventListener=function(Ct,xt){this.eventListeners.removeEventListener(Ct,xt)},Ot.prototype.renderState=function(Ct){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Ct),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Ot.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Ot.prototype.focus=function(){var Ct=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(xt){return xt(new dn(Ct))}))},Ot.prototype.blur=function(){var Ct=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(xt){return xt(new dn(Ct))}))},Ot.instanceCounter=0,Ot}(),wi=Yt(99064),Ci=Yt(955),an=(Ot,Ct,xt)=>new Promise((Bt,Rt)=>{var Et=nn=>{try{_e(xt.next(nn))}catch(tn){Rt(tn)}},se=nn=>{try{_e(xt.throw(nn))}catch(tn){Rt(tn)}},_e=nn=>nn.done?Bt(nn.value):Promise.resolve(nn.value).then(Et,se);_e((xt=xt.apply(Ot,Ct)).next())}),xn=({data:Ot,className:Ct,fullWidth:xt,style:Bt={},onClose:Rt,onOk:Et,showFullTools:se,noAssociationId:_e})=>{const nn=(0,kt.useRef)(null),tn=(0,kt.useRef)(null),Ln=(0,kt.useRef)(null),ni=(0,kt.useRef)(null),[di,si]=(0,kt.useState)(!1),[Mi,qi]=(0,kt.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,kt.useEffect)(()=>(Ln.current||(Ln.current=document.createElement("style"),document.head.appendChild(Ln.current)),Ot!=null&&Ot.visible?(document.body.setAttribute("data-custom","y-hidden"),Ln.current.innerHTML=" html { overflow-y: hidden; }",Ot!=null&&Ot.src&&oo()):(document.body.removeAttribute("data-custom"),Ln.current&&(document.head.removeChild(Ln.current),Ln.current=null)),()=>{document.body.removeAttribute("data-custom"),Ln.current&&(document.head.removeChild(Ln.current),Ln.current=null)}),[Ot==null?void 0:Ot.visible]);const oo=()=>an(void 0,null,function*(){si(!0),qi("\u6B63\u5728\u52A0\u8F7D\u4E2D");const so=yield(0,Ci.ZJ)(Ot==null?void 0:Ot.src);nn.current.src="",nn.current.src=so,nn.current.onload=function(){mr()},si(!1),qi("")}),pr=so=>an(void 0,null,function*(){si(!0),qi("\u6B63\u5728\u4FDD\u5B58\u4E2D");const xo=yield(0,wi.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ot.title,file:so.dataUrl}});xo!=null&&xo.id&&!_e?(yield(0,wi.ZP)(`/api/attachments/${Ot.id}/add_subitem.json`,{method:"post",body:{subitem_id:xo==null?void 0:xo.id,settings:JSON.stringify(so.state)}})).status===0&&Et():xo!=null&&xo.id&&Et(xo),si(!1),qi("")}),Ho=()=>{const so=document.querySelector('a[href="https://markerjs.com/"]');so&&so.parentNode&&(so.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(Yr=>{const Cr=document.querySelector(Yr.name);Cr&&Cr.setAttribute("title",Yr.title)})},mr=()=>{tn.current=new Qn(nn.current),tn.current.targetRoot=ni.current,tn.current.addEventListener("render",pr),tn.current.addEventListener("beforeclose",Rt),se&&(tn.current.availableMarkerTypes=tn.current.ALL_MARKER_TYPES,tn.current.uiStyleSettings.redoButtonVisible=!0,tn.current.uiStyleSettings.notesButtonVisible=!0,tn.current.uiStyleSettings.zoomButtonVisible=!0,tn.current.uiStyleSettings.zoomOutButtonVisible=!0,tn.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=tn.current.uiStyleSettings,tn.current.show(),Ot!=null&&Ot.snapshotData&&tn.current.restoreState(Ot.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ho()},300)};return kt.createElement(kt.Fragment,null,(Ot==null?void 0:Ot.visible)&&kt.createElement(ge.Z,{spinning:di,tip:Mi,style:{position:"absolute",width:"100vw"}},kt.createElement("div",{ref:ni,className:Te()(ue.imageDimensions,Ct,xt?ue.fullWidth:""),style:Bt},kt.createElement("img",{className:ue.img,ref:nn}))))}},41588:function(Ye,pn,Yt){"use strict";var kt=Yt(59301),ue=Yt(95237),xe=Yt(43604),Te=Yt(99313),ge=Yt(3113),Ee=Yt(85149),qt=Yt(88010),Ce=Yt(48136),fe=Yt(59301);const pe=(0,kt.forwardRef)(({callback:le,showSaveButton:Be,value:je=""},Nt)=>{const et=(0,kt.useRef)(),nt=[{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 "}]}]}],gt=[{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 @@ -185,7 +185,7 @@ ${ce} \\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}`}]}]}],lt=Lt=>{et.current.setValue(et.current.getValue()+" "+Lt.value+" ")},pt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:fe.createElement(ue.Z,{className:qt.Z.lists,gutter:[10,10]},nt.map((Lt,Ft)=>fe.createElement(xe.Z,{flex:"110px",className:qt.Z.item},fe.createElement("div",null,fe.createElement(Ae.Z,{value:`$$${Lt.value}$$`}),Lt.name),fe.createElement("div",{className:qt.Z.children},Lt.children.map((Wt,Kt)=>fe.createElement("div",{key:Kt},fe.createElement("h1",null,Wt.name),fe.createElement(ue.Z,{gutter:[10,10]},Wt.data.map((_t,ne)=>fe.createElement(xe.Z,{key:ne,onClick:()=>lt(_t),className:qt.Z.diamond},fe.createElement(Ae.Z,{value:"`$$"+_t.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:fe.createElement(ue.Z,{className:qt.Z.lists,gutter:[10,10]},gt.map((Lt,Ft)=>fe.createElement(xe.Z,{flex:"110px",className:qt.Z.item},fe.createElement("div",null,fe.createElement(Ae.Z,{value:"`$$"+Lt.value+"$$`"}),Lt.name),fe.createElement("div",{className:qt.Z.children},Lt.children.map((Wt,Kt)=>fe.createElement("div",{key:Kt},Wt.name&&fe.createElement("h1",null,Wt.name),fe.createElement(ue.Z,{gutter:[10,10]},Wt.data.map((_t,ne)=>fe.createElement(xe.Z,{key:ne,onClick:()=>lt(_t),className:qt.Z.diamond},fe.createElement(Ae.Z,{value:"`$$"+_t.value+"$$`"}))))))))))}],vt=()=>{var Lt=document.createElement("div");Lt.innerHTML=et.current.getValue();var Ft=Lt.innerText;return le&&le(Ft),Ft};return(0,kt.useImperativeHandle)(Nt,()=>({getData:vt})),fe.createElement("div",{className:qt.Z.mathWrap},fe.createElement(Te.default,{defaultActiveKey:"1",items:pt}),fe.createElement("math-field",{locale:"zh_cn",className:qt.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:et,style:{width:800,marginTop:30,fontSize:18}},je||""),Be&&fe.createElement("div",{className:qt.Z.button},fe.createElement(ge.ZP,{size:"large",onClick:vt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});pn.Z=pe},8797:function(Ye,pn,Yt){"use strict";var kt=Yt(59301),ue=Yt(93314),xe=Yt(3113),Te=Object.defineProperty,ge=Object.defineProperties,Ae=Object.getOwnPropertyDescriptors,qt=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,pe=(Nt,et,nt)=>et in Nt?Te(Nt,et,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Nt[et]=nt,le=(Nt,et)=>{for(var nt in et||(et={}))Ce.call(et,nt)&&pe(Nt,nt,et[nt]);if(qt)for(var nt of qt(et))fe.call(et,nt)&&pe(Nt,nt,et[nt]);return Nt},Be=(Nt,et)=>ge(Nt,Ae(et));const je=({img:Nt,buttonProps:et={},styles:nt={},customText:gt,ButtonText:lt,ButtonClick:pt,Buttonclass:vt,ButtonTwo:Lt,imgStyles:Ft,loading:Wt=!1,className:Kt=""})=>kt.createElement("section",{className:`tc animated fadeIn ${Kt}`,style:le({color:"#999",margin:"100px auto",visibility:Wt?"hidden":"visible"},nt)},kt.createElement("img",{src:Nt||ue,style:Be(le({},Ft),{pointerEvents:"none",userSelect:"none"})}),kt.createElement("p",{className:"mt20 font14"},gt||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),lt&&kt.createElement(xe.ZP,le({className:vt,onClick:pt},et),lt),Lt&&Lt);pn.Z=je},23210:function(Ye,pn,Yt){"use strict";Yt.d(pn,{Z:function(){return vt}});var kt=Yt(59301),ue={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},xe=Yt(3113),Te=Yt(70557),ge=Yt(23954),Ae=Yt(6848),qt=Yt(955),Ce=Yt(94941),fe=Yt(8797),pe=Yt(3294),le=Yt(19381),Be=Yt(59301),je=Object.defineProperty,Nt=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,gt=(Lt,Ft,Wt)=>Ft in Lt?je(Lt,Ft,{enumerable:!0,configurable:!0,writable:!0,value:Wt}):Lt[Ft]=Wt,lt=(Lt,Ft)=>{for(var Wt in Ft||(Ft={}))et.call(Ft,Wt)&>(Lt,Wt,Ft[Wt]);if(Nt)for(var Wt of Nt(Ft))nt.call(Ft,Wt)&>(Lt,Wt,Ft[Wt]);return Lt},pt=(Lt,Ft,Wt)=>new Promise((Kt,_t)=>{var ne=re=>{try{ve(Wt.next(re))}catch(Oe){_t(Oe)}},$t=re=>{try{ve(Wt.throw(re))}catch(Oe){_t(Oe)}},ve=re=>re.done?Kt(re.value):Promise.resolve(re.value).then(ne,$t);ve((Wt=Wt.apply(Lt,Ft)).next())}),vt=({editOffice:Lt="view",data:Ft,theme:Wt,type:Kt,filename:_t,monacoEditor:ne,className:$t,style:ve,close:re,onClose:Oe,hasMask:me,disabledDownload:Fe,onImgDimensions:Pn,showNodata:vn,recordInfo:Mn})=>{const[In,Zt]=(0,kt.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Gt,He]=(0,kt.useState)(""),[un,ln]=(0,kt.useState)(),ce=window.ENV==="build"?"/react/build":"",Ue=location.host.startsWith("localhost")?pe.Z.PROXY_SERVER:pe.Z.API_SERVER,wn=10*(1024*1024),sn=(0,kt.useRef)();Ft!=null&&Ft.startsWith("/api")&&Kt!=="txt"&&(Ft=pe.Z.API_SERVER+Ft);const kn=dn=>dn.substring(dn.lastIndexOf("/")+1).split(".").pop();_t&&ne&&(ne.filename=_t),(0,kt.useEffect)(()=>{var dn,Sn;const Vn=(Sn=(dn=document.cookie)==null?void 0:dn.replace(/\s/g,""))==null?void 0:Sn.split(";");Vn==null||Vn.map(vi=>{let Qn=vi.split("=");Qn[0]==="_educoder_session"&&He(Qn[1])})},[]),(0,kt.useEffect)(()=>{Kt==="office"&&(Ft.indexOf("bigfilescdn.")>-1||Ft.indexOf("bigfiles1")>-1?ln({url:Ft,fileType:kn(Ft),model:Ft.indexOf("model=edit")?"edit":"view"}):te())},[Kt,Ft]);const te=()=>pt(void 0,null,function*(){console.log("data:",Ft);let dn=Ft;Ft.startsWith("http")||(dn=location.origin+dn);let Sn=new URL(dn).pathname.split("/").pop();const Vn=yield(0,Ce.gJ)({attachment_id:Sn});Vn.url=Ue+Vn.url,ln(Vn)}),Ve=()=>{if(Ft.startsWith("http")||Ft.startsWith("blob:")){fn();return}(0,qt.Sv)(_t||"educoder",Ft,_t)},fn=()=>{Mn&&(0,le.fc)({id:Mn==null?void 0:Mn.id,watch_type:1,course_id:Mn==null?void 0:Mn.course_id}),(0,qt.Nd)(_t||"educoder",decodeURIComponent(Ft))};return Be.createElement("div",{style:lt({},ve||{}),className:`${me&&ue.bgBlack} ${Kt?ue.wrp:"hide"}`},re&&Be.createElement("div",{className:ue.close,ref:sn},!!Pn&&Be.createElement(Ae.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>sn.current},Be.createElement("span",{onClick:()=>{Oe(),Pn()}},Be.createElement("i",{className:"icon-yulanpizhu"}))),!Fe&&Be.createElement(Ae.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>sn.current},Be.createElement("span",{onClick:fn},Be.createElement("i",{className:"icon-quxiaozhiding"}))),Be.createElement(Ae.Z,{title:"\u5173\u95ED",getPopupContainer:()=>sn.current},Be.createElement("span",{className:"",onClick:Oe},Be.createElement("i",{className:"icon-guanbi1"})))),Be.createElement("div",{className:`${ue[$t]} ${$t} ${ue.monaco} ${Kt==="txt"?"show":"hide"}`},Kt==="txt"&&Be.createElement(Be.Fragment,null,Be.createElement(ge.ZP,lt({},ne)))),Kt==="audio"&&Be.createElement("audio",{src:`${(Ft==null?void 0:Ft.indexOf("http://"))>-1||(Ft==null?void 0:Ft.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Ft}`,autoPlay:!0}),Kt==="video"&&Be.createElement(Be.Fragment,null,(Ft==null?void 0:Ft.indexOf("http"))>-1?Be.createElement("video",{controls:!0,src:`${Ft}`,autoPlay:!0}):Be.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Ft}`,autoPlay:!0})),Kt==="office"&&un&&Be.createElement("iframe",{src:`${ce}/office.html?key=${un.key}&url=${btoa(un.url)}&callbackUrl=${Ue+(un.callbackUrl||"")}&fileType=${un.fileType}&title=${un.title||""}&model=${Lt}&officeServer=${pe.Z.ONLYOFFICE}&disabledDownload=${!!Fe}`}),Kt==="html"&&Be.createElement("iframe",{src:Ft+"&disposition=inline"}),Kt==="pdf"&&Be.createElement("iframe",{src:`${ce}/js/pdfview/index.html?filename=${_t||"educoder.pdf"}&url=${encodeURIComponent(Ft)}&disabledDownload=${!!Fe}`}),Kt==="image"&&Be.createElement("img",{src:`${(Ft==null?void 0:Ft.indexOf("http://"))>-1||(Ft==null?void 0:Ft.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Ft}`}),(Kt==="other"||Kt==="download")&&Be.createElement(Be.Fragment,null,vn?Be.createElement(fe.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Be.createElement(xe.ZP,{icon:Be.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Ve,disabled:Fe},"\u4E0B\u8F7D")}):Be.createElement(xe.ZP,{type:"primary",size:"middle",onClick:Ve,disabled:Fe},Be.createElement(Te.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(Ye,pn,Yt){"use strict";Yt.d(pn,{z:function(){return Kt},Z:function(){return _t}});var kt=Yt(59301),ue=Yt(50304),xe=Yt(24768),Te=Yt(64018),ge=Yt(65157),Ae=Yt(3294),qt=Yt(955),Ce=Yt(15342),fe=Yt(1012),pe=Yt(23210),le=Yt(59301),je=({html:ne})=>{const $t=(0,kt.useRef)(null),ve=(0,kt.useRef)(null),re=`.markdown-body p { +\\end{array}`}]}]}],lt=Lt=>{et.current.setValue(et.current.getValue()+" "+Lt.value+" ")},pt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:fe.createElement(ue.Z,{className:qt.Z.lists,gutter:[10,10]},nt.map((Lt,Ft)=>fe.createElement(xe.Z,{flex:"110px",className:qt.Z.item},fe.createElement("div",null,fe.createElement(Ee.Z,{value:`$$${Lt.value}$$`}),Lt.name),fe.createElement("div",{className:qt.Z.children},Lt.children.map((Wt,Kt)=>fe.createElement("div",{key:Kt},fe.createElement("h1",null,Wt.name),fe.createElement(ue.Z,{gutter:[10,10]},Wt.data.map((_t,ne)=>fe.createElement(xe.Z,{key:ne,onClick:()=>lt(_t),className:qt.Z.diamond},fe.createElement(Ee.Z,{value:"`$$"+_t.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:fe.createElement(ue.Z,{className:qt.Z.lists,gutter:[10,10]},gt.map((Lt,Ft)=>fe.createElement(xe.Z,{flex:"110px",className:qt.Z.item},fe.createElement("div",null,fe.createElement(Ee.Z,{value:"`$$"+Lt.value+"$$`"}),Lt.name),fe.createElement("div",{className:qt.Z.children},Lt.children.map((Wt,Kt)=>fe.createElement("div",{key:Kt},Wt.name&&fe.createElement("h1",null,Wt.name),fe.createElement(ue.Z,{gutter:[10,10]},Wt.data.map((_t,ne)=>fe.createElement(xe.Z,{key:ne,onClick:()=>lt(_t),className:qt.Z.diamond},fe.createElement(Ee.Z,{value:"`$$"+_t.value+"$$`"}))))))))))}],vt=()=>{var Lt=document.createElement("div");Lt.innerHTML=et.current.getValue();var Ft=Lt.innerText;return le&&le(Ft),Ft};return(0,kt.useImperativeHandle)(Nt,()=>({getData:vt})),fe.createElement("div",{className:qt.Z.mathWrap},fe.createElement(Te.default,{defaultActiveKey:"1",items:pt}),fe.createElement("math-field",{locale:"zh_cn",className:qt.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:et,style:{width:800,marginTop:30,fontSize:18}},je||""),Be&&fe.createElement("div",{className:qt.Z.button},fe.createElement(ge.ZP,{size:"large",onClick:vt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});pn.Z=pe},8797:function(Ye,pn,Yt){"use strict";var kt=Yt(59301),ue=Yt(93314),xe=Yt(3113),Te=Object.defineProperty,ge=Object.defineProperties,Ee=Object.getOwnPropertyDescriptors,qt=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,pe=(Nt,et,nt)=>et in Nt?Te(Nt,et,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Nt[et]=nt,le=(Nt,et)=>{for(var nt in et||(et={}))Ce.call(et,nt)&&pe(Nt,nt,et[nt]);if(qt)for(var nt of qt(et))fe.call(et,nt)&&pe(Nt,nt,et[nt]);return Nt},Be=(Nt,et)=>ge(Nt,Ee(et));const je=({img:Nt,buttonProps:et={},styles:nt={},customText:gt,ButtonText:lt,ButtonClick:pt,Buttonclass:vt,ButtonTwo:Lt,imgStyles:Ft,loading:Wt=!1,className:Kt=""})=>kt.createElement("section",{className:`tc animated fadeIn ${Kt}`,style:le({color:"#999",margin:"100px auto",visibility:Wt?"hidden":"visible"},nt)},kt.createElement("img",{src:Nt||ue,style:Be(le({},Ft),{pointerEvents:"none",userSelect:"none"})}),kt.createElement("p",{className:"mt20 font14"},gt||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),lt&&kt.createElement(xe.ZP,le({className:vt,onClick:pt},et),lt),Lt&&Lt);pn.Z=je},23210:function(Ye,pn,Yt){"use strict";Yt.d(pn,{Z:function(){return vt}});var kt=Yt(59301),ue={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},xe=Yt(3113),Te=Yt(70557),ge=Yt(23954),Ee=Yt(6848),qt=Yt(955),Ce=Yt(94941),fe=Yt(8797),pe=Yt(3294),le=Yt(19381),Be=Yt(59301),je=Object.defineProperty,Nt=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,gt=(Lt,Ft,Wt)=>Ft in Lt?je(Lt,Ft,{enumerable:!0,configurable:!0,writable:!0,value:Wt}):Lt[Ft]=Wt,lt=(Lt,Ft)=>{for(var Wt in Ft||(Ft={}))et.call(Ft,Wt)&>(Lt,Wt,Ft[Wt]);if(Nt)for(var Wt of Nt(Ft))nt.call(Ft,Wt)&>(Lt,Wt,Ft[Wt]);return Lt},pt=(Lt,Ft,Wt)=>new Promise((Kt,_t)=>{var ne=re=>{try{ve(Wt.next(re))}catch(Oe){_t(Oe)}},$t=re=>{try{ve(Wt.throw(re))}catch(Oe){_t(Oe)}},ve=re=>re.done?Kt(re.value):Promise.resolve(re.value).then(ne,$t);ve((Wt=Wt.apply(Lt,Ft)).next())}),vt=({editOffice:Lt="view",data:Ft,theme:Wt,type:Kt,filename:_t,monacoEditor:ne,className:$t,style:ve,close:re,onClose:Oe,hasMask:me,disabledDownload:Fe,onImgDimensions:Pn,showNodata:vn,recordInfo:Mn})=>{const[In,Zt]=(0,kt.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Gt,He]=(0,kt.useState)(""),[un,ln]=(0,kt.useState)(),ce=window.ENV==="build"?"/react/build":"",Ue=location.host.startsWith("localhost")?pe.Z.PROXY_SERVER:pe.Z.API_SERVER,wn=10*(1024*1024),sn=(0,kt.useRef)();Ft!=null&&Ft.startsWith("/api")&&Kt!=="txt"&&(Ft=pe.Z.API_SERVER+Ft);const kn=dn=>dn.substring(dn.lastIndexOf("/")+1).split(".").pop();_t&&ne&&(ne.filename=_t),(0,kt.useEffect)(()=>{var dn,Sn;const Vn=(Sn=(dn=document.cookie)==null?void 0:dn.replace(/\s/g,""))==null?void 0:Sn.split(";");Vn==null||Vn.map(vi=>{let Qn=vi.split("=");Qn[0]==="_educoder_session"&&He(Qn[1])})},[]),(0,kt.useEffect)(()=>{Kt==="office"&&(Ft.indexOf("bigfilescdn.")>-1||Ft.indexOf("bigfiles1")>-1?ln({url:Ft,fileType:kn(Ft),model:Ft.indexOf("model=edit")?"edit":"view"}):te())},[Kt,Ft]);const te=()=>pt(void 0,null,function*(){console.log("data:",Ft);let dn=Ft;Ft.startsWith("http")||(dn=location.origin+dn);let Sn=new URL(dn).pathname.split("/").pop();const Vn=yield(0,Ce.gJ)({attachment_id:Sn});Vn.url=Ue+Vn.url,ln(Vn)}),Ve=()=>{if(Ft.startsWith("http")||Ft.startsWith("blob:")){fn();return}(0,qt.Sv)(_t||"educoder",Ft,_t)},fn=()=>{Mn&&(0,le.fc)({id:Mn==null?void 0:Mn.id,watch_type:1,course_id:Mn==null?void 0:Mn.course_id}),(0,qt.Nd)(_t||"educoder",decodeURIComponent(Ft))};return Be.createElement("div",{style:lt({},ve||{}),className:`${me&&ue.bgBlack} ${Kt?ue.wrp:"hide"}`},re&&Be.createElement("div",{className:ue.close,ref:sn},!!Pn&&Be.createElement(Ee.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>sn.current},Be.createElement("span",{onClick:()=>{Oe(),Pn()}},Be.createElement("i",{className:"icon-yulanpizhu"}))),!Fe&&Be.createElement(Ee.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>sn.current},Be.createElement("span",{onClick:fn},Be.createElement("i",{className:"icon-quxiaozhiding"}))),Be.createElement(Ee.Z,{title:"\u5173\u95ED",getPopupContainer:()=>sn.current},Be.createElement("span",{className:"",onClick:Oe},Be.createElement("i",{className:"icon-guanbi1"})))),Be.createElement("div",{className:`${ue[$t]} ${$t} ${ue.monaco} ${Kt==="txt"?"show":"hide"}`},Kt==="txt"&&Be.createElement(Be.Fragment,null,Be.createElement(ge.ZP,lt({},ne)))),Kt==="audio"&&Be.createElement("audio",{src:`${(Ft==null?void 0:Ft.indexOf("http://"))>-1||(Ft==null?void 0:Ft.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Ft}`,autoPlay:!0}),Kt==="video"&&Be.createElement(Be.Fragment,null,(Ft==null?void 0:Ft.indexOf("http"))>-1?Be.createElement("video",{controls:!0,src:`${Ft}`,autoPlay:!0}):Be.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Ft}`,autoPlay:!0})),Kt==="office"&&un&&Be.createElement("iframe",{src:`${ce}/office.html?key=${un.key}&url=${btoa(un.url)}&callbackUrl=${Ue+(un.callbackUrl||"")}&fileType=${un.fileType}&title=${un.title||""}&model=${Lt}&officeServer=${pe.Z.ONLYOFFICE}&disabledDownload=${!!Fe}`}),Kt==="html"&&Be.createElement("iframe",{src:Ft+"&disposition=inline"}),Kt==="pdf"&&Be.createElement("iframe",{src:`${ce}/js/pdfview/index.html?filename=${_t||"educoder.pdf"}&url=${encodeURIComponent(Ft)}&disabledDownload=${!!Fe}`}),Kt==="image"&&Be.createElement("img",{src:`${(Ft==null?void 0:Ft.indexOf("http://"))>-1||(Ft==null?void 0:Ft.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Ft}`}),(Kt==="other"||Kt==="download")&&Be.createElement(Be.Fragment,null,vn?Be.createElement(fe.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Be.createElement(xe.ZP,{icon:Be.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Ve,disabled:Fe},"\u4E0B\u8F7D")}):Be.createElement(xe.ZP,{type:"primary",size:"middle",onClick:Ve,disabled:Fe},Be.createElement(Te.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(Ye,pn,Yt){"use strict";Yt.d(pn,{z:function(){return Kt},Z:function(){return _t}});var kt=Yt(59301),ue=Yt(50304),xe=Yt(24768),Te=Yt(64018),ge=Yt(65157),Ee=Yt(3294),qt=Yt(955),Ce=Yt(15342),fe=Yt(1012),pe=Yt(23210),le=Yt(59301),je=({html:ne})=>{const $t=(0,kt.useRef)(null),ve=(0,kt.useRef)(null),re=`.markdown-body p { margin: 0 0 16px 0 !important; line-height: 28px; white-space: pre-wrap; @@ -1032,9 +1032,9 @@ ${ce} .markdown-body pre { margin-top: 0; margin-bottom: 16px; - }`;return(0,kt.useEffect)(()=>{const Oe=$t.current.attachShadow({mode:"open"});ve.current=document.createElement("div"),ve.current.className="markdown-body",ve.current.innerHTML=ne,Oe.appendChild(ve.current);const me=document.createElement("style");return me.textContent=re,Oe.appendChild(me),()=>{Oe.innerHTML=""}},[]),(0,kt.useEffect)(()=>{ve.current&&(ve.current.innerHTML=ne)},[ne]),le.createElement("div",{ref:$t})},Nt=Object.defineProperty,et=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,lt=(ne,$t,ve)=>$t in ne?Nt(ne,$t,{enumerable:!0,configurable:!0,writable:!0,value:ve}):ne[$t]=ve,pt=(ne,$t)=>{for(var ve in $t||($t={}))nt.call($t,ve)&<(ne,ve,$t[ve]);if(et)for(var ve of et($t))gt.call($t,ve)&<(ne,ve,$t[ve]);return ne};const vt="@\u2581\u2581@",Lt="@\u2581@",Ft=/]*>/g;function Wt(ne){let $t=document.createElement("div");return $t.innerHTML=ne,$t.childNodes.length===0?"":$t.childNodes[0].nodeValue}const Kt=(ne,$t)=>{ne=ne||"";const ve=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,re=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Oe=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,me=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return $t?ne.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(ve,(Fe,Pn,vn,Mn,In,Zt,Gt)=>{const He=Pn||Mn||Zt,un=vn||In||Gt||"?";return Ae.Z.API_SERVER+"/api/attachments/"+He+un+"&t="+(0,qt.Jn)(He,Date.now())+(Fe.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(ne=ne.replace(me,(Fe,Pn,vn,Mn,In,Zt,Gt)=>{const He=Pn||Mn||Zt,un=vn||In||Gt||"?";return Ae.Z.API_SERVER+"/attachments/download/"+He+un+"&t="+(0,qt.Jn)(He,Date.now())+(Fe.indexOf(")")>-1?")":"&")}).replace(ve,(Fe,Pn,vn,Mn,In,Zt,Gt)=>{const He=Pn||Mn||Zt,un=vn||In||Gt||"?";return Ae.Z.API_SERVER+"/api/attachments/"+He+un+"&t="+(0,qt.Jn)(He,Date.now())+(Fe.indexOf(")")>-1?")":"&")}).replace(re,(Fe,Pn,vn,Mn,In)=>{const Zt=Pn||Mn,Gt=vn||In||"";return'"'+Ae.Z.API_SERVER+"/api/attachments/"+Zt+Gt+Zt+Gt+"&t="+(0,qt.Jn)(Zt,Date.now())}).replace(Oe,(Fe,Pn,vn,Mn,In)=>{const Zt=Pn||Mn,Gt=vn||In||"";return"("+Ae.Z.API_SERVER+"/files/uploads/"+Zt+Gt+Zt+Gt+"&t="+(0,qt.Jn)(Zt,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,` -`),ne)};var _t=({value:ne="",className:$t,showTextOnly:ve,showLines:re,style:Oe={},stylesPrev:me={},highlightKeywords:Fe,showProgramFill:Pn,isProgramFill:vn,disabledFill:Mn=!1,programFillValue:In,onFillChange:Zt=un=>{},onFillBlur:Gt=()=>{},onFillFocus:He=()=>{}})=>{let un=String(ne);const[ln,ce]=(0,kt.useState)(""),[Ue,on]=(0,kt.useState)("office"),[wn,sn]=(0,kt.useState)([]),kn=(0,kt.useRef)("a"+(0,fe.Z)()),te={},Ve=(Ot,Ct,xt)=>{const Bt=document.createElement(Ot===Lt?"input":"textarea");Bt.style.width="100%",Bt.style.height=Ot===Lt?"40px":"151px",Bt.rows=5,Bt.spellcheck=!1,Bt.name="edu-program-fill",Bt.placeholder="\u8BF7\u8F93\u5165",Bt.dataset.id=Ct;const Rt=Object.keys(te).length;return te[Rt]=Bt,`${Bt.outerHTML}`};function fn(Ot){return Ot=Ot.replace(/!\[.*?\]\(.*?\)/g,""),Ot=Ot.replace(/\[.*?\]\(.*?\)/g,""),Ot=Ot.replace(new RegExp("","gs"),""),Ot=Ot.replace(//g,""),Ot=Ot.replace(//g,""),Ot=Ot.replace(new RegExp(".*?<\\/video>","gs"),""),Ot=Ot.replace(new RegExp(".*?<\\/audio>","gs"),""),Ot=Ot.replace(new RegExp(".*?<\\/style>","gs"),""),Ot=Ot.replace(new RegExp(".*?<\\/script>","gs"),""),Ot}const dn=Ot=>Ot.replace(/([\s\S]+?)<\/style>/gim,function(Ct,xt){let Bt=xt.replace(/(\n|\r)/g,"").split("}"),Rt=[];return Bt.map(At=>{At!=""&&Rt.push(`.${kn.current} ${At}`)}),``}),Sn=(0,kt.useMemo)(()=>{try{const Bt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Rt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,At=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,se=/\(\/attachments\/download\//g;un=un.replace(se,"("+Ae.Z.API_SERVER+"/attachments/download/").replace(Bt,"("+Ae.Z.API_SERVER+"/api/attachments/").replace(Rt,'"'+Ae.Z.API_SERVER+"/api/attachments/").replace(At,'"'+Ae.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(Bt){}if(Pn){let Bt=-1;return un=un.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Rt,At,se){var _e;return++Bt,Ve(Rt,Bt,(_e=In==null?void 0:In[Bt])==null?void 0:_e.value.replaceAll("<","<").replaceAll(">",">"))}),`
            ${dn(un||"")}
            `}let Ot=dn(un);Ot=(0,xe.ZP)(Ot);const Ct=(0,xe.ez)();un.match(/\[TOC\]/)&&(Ot=Ot.replace("

            [TOC]

            ",(0,xe.Qv)()),(0,xe.Iy)()),Ot=Ot.replace(/(__special_katext_id_\d+__)/g,(Bt,Rt)=>{const{type:At,expression:se}=Ct[Rt];return(0,Ce.renderToString)(Wt(se)||"",{displayMode:At==="block",throwOnError:!1,output:"html"})}),Ot=Ot.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,xe.AL)();const xt=document.createElement("div");if(xt.innerHTML=Ot,ve)return xt.innerText;if(Fe){const Bt=Fe.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return wi(xt,Bt),xt.innerHTML}return setTimeout(()=>Nn(),500),xt.innerHTML},[un,Fe]);(0,kt.useEffect)(()=>{Ci.current&&Ci.current.querySelectorAll(["input","textarea"]).forEach(Ct=>{Ct.oninput=Vn,Ct.onblur=vi,Ct.onfocus=Qn})},[wn]),(0,kt.useEffect)(()=>{var Ot,Ct,xt,Bt,Rt;if(In!=null&&In.length)try{const At=Ci.current.querySelectorAll(".edu-program-fill-score"),se=Ci.current.querySelectorAll('[name="edu-program-fill"]');for(const[_e,nn]of se.entries())nn.value=((Ot=In==null?void 0:In[_e])==null?void 0:Ot.value)||"",((Ct=In==null?void 0:In[_e])==null?void 0:Ct.type)==="warning"?nn.className="program-fill-warning":((xt=In==null?void 0:In[_e])==null?void 0:xt.type)==="success"?nn.className="program-fill-success":nn.className="";for(const[_e,nn]of At.entries())nn.innerHTML=(Bt=In==null?void 0:In[_e])!=null&&Bt.score?`${(Rt=In==null?void 0:In[_e])==null?void 0:Rt.score}\u5206`:"";sn(In)}catch(At){console.log(At,"error")}},[In]);const Vn=Ot=>{wn[Ot.target.dataset.id]=wn[Ot.target.dataset.id]||{},wn[Ot.target.dataset.id].value=Ot.target.value,sn([...wn]),Zt(wn,Ot.target.dataset.id)},vi=Ot=>{wn[Ot.target.dataset.id]=wn[Ot.target.dataset.id]||{},wn[Ot.target.dataset.id].value=Ot.target.value,sn([...wn]),Gt(wn,Ot.target.dataset.id)},Qn=Ot=>{wn[Ot.target.dataset.id]=wn[Ot.target.dataset.id]||{},wn[Ot.target.dataset.id].value=Ot.target.value,sn([...wn]),He(wn,Ot.target.dataset.id)};function wi(Ot,Ct){return Ot.childNodes.forEach(xt=>{var Bt;if(xt.childNodes.length>0)wi(xt,Ct);else if(xt.nodeName!=="IMG")if(xt.innerHTML)xt.innerHTML=(Bt=xt.innerHTML)==null?void 0:Bt.replace(new RegExp(Ct,"gi"),'$&');else{const Rt=document.createElement("span");Rt.innerHTML=xt.textContent.replace(new RegExp(Ct,"gi"),'$&'),xt.replaceWith(Rt)}})}const Ci=(0,kt.useRef)();xe.jb.WebkitLineClamp=re,re&&(Oe=pt(pt({},Oe),xe.jb));function an(Ot){let Ct=Ot.target;if(Ct.tagName.toUpperCase()==="A"){let xt=Ct.getAttribute("href");if(xt.indexOf("office")>-1)Ot.preventDefault(),ce(xt),on("office");else if(xt.indexOf("application/pdf")>-1)Ot.preventDefault(),ce(xt),on("pdf");else if(xt.indexOf("text/html")>-1)Ot.preventDefault(),ce(xt),on("html");else if(xt.startsWith("#")){Ot.preventDefault();let Bt=document.getElementById(xt.replace("#",""));Bt&&Bt.scrollIntoView(!0)}}}const Nn=()=>{var Ot;const Ct=(Ot=Ci.current)==null?void 0:Ot.querySelectorAll("video");Ct==null||Ct.forEach(xt=>{if(xt.oncontextmenu=()=>!1,xt.src.indexOf(".m3u8")>-1&&!xt.canPlayType("application/vnd.apple.mpegurl")){if(ge.ZP.isSupported()){var Bt=new ge.ZP;Bt.loadSource(xt.src),Bt.attachMedia(xt)}}})};(0,kt.useEffect)(()=>{if(Ci.current&&Sn&&Sn.match(Ft)&&window.PR.prettyPrint(),Ci.current)return Ci.current.addEventListener("click",an),()=>{var Ot;(Ot=Ci.current)==null||Ot.removeEventListener("click",an),(0,xe.AL)(),(0,xe.Iy)()}},[Sn,Ci.current,an]),(0,kt.useEffect)(()=>{var Ot;const Ct=xt=>{xt.preventDefault(),xt.clipboardData.setData("text",window.getSelection().toString())};return(Ot=Ci.current)==null||Ot.addEventListener("copy",Ct),()=>{var xt;(xt=Ci.current)==null||xt.removeEventListener("copy",Ct)}},[Ci.current]);const xn=Ot=>//i.test(Ot||"");return kt.createElement(kt.Fragment,null,ve&&kt.createElement("div",{ref:Ci},Sn),!ve&&!xn(Sn)&&kt.createElement("div",{ref:Ci,style:pt({},Oe),className:`${$t||""} ${Mn?"disabled-fill":""} markdown-body ${kn.current}`,dangerouslySetInnerHTML:{__html:Sn}}),!ve&&xn(Sn)&&kt.createElement(je,{html:Sn}),kt.createElement(pe.Z,{close:!0,data:ln,type:ln!=null&&ln.length?Ue:"",style:pt({},me),onClose:()=>ce("")}))}},53932:function(Ye,pn,Yt){"use strict";Yt.d(pn,{h:function(){return Lt},Z:function(){return vt}});var kt=Yt(59301),ue=Yt(57809),xe=Yt(78241),Te=Yt(3113),ge=Yt(89780),Ae=Yt.n(ge),qt=Yt(37036),Ce=Object.defineProperty,fe=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,le=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,Nt=(Ft,Wt,Kt)=>Wt in Ft?Ce(Ft,Wt,{enumerable:!0,configurable:!0,writable:!0,value:Kt}):Ft[Wt]=Kt,et=(Ft,Wt)=>{for(var Kt in Wt||(Wt={}))Be.call(Wt,Kt)&&Nt(Ft,Kt,Wt[Kt]);if(le)for(var Kt of le(Wt))je.call(Wt,Kt)&&Nt(Ft,Kt,Wt[Kt]);return Ft},nt=(Ft,Wt)=>fe(Ft,pe(Wt));const gt=ue.default.Option,lt={labelCol:{span:4},wrapperCol:{span:20}},pt={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"]};var vt=({callback:Ft,onCancel:Wt})=>{const[Kt,_t]=(0,kt.useState)("python");function ne(ve){_t(pt[ve][1])}function $t(ve){Ft(ve)}return kt.createElement(xe.default,nt(et({},lt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:$t,style:{width:500}}),kt.createElement(xe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},kt.createElement(ue.default,{getPopupContainer:ve=>ve.parentNode,onChange:ne},Object.keys(pt).map(ve=>kt.createElement(gt,{key:ve,value:ve},pt[ve][0])))),kt.createElement(xe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},kt.createElement(Lt,{mode:Kt})),kt.createElement("div",{className:"flex-container flex-end"},kt.createElement(Te.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),kt.createElement(Te.ZP,{type:"ghost",onClick:Wt},"\u53D6\u6D88")))};function Lt({value:Ft,onChange:Wt,mode:Kt,options:_t={}}){const ne=(0,kt.useRef)(),[$t,ve]=(0,kt.useState)();return(0,kt.useEffect)(()=>{if($t){let re=function(Oe){const me=Oe.getValue();Wt&&Wt(me)};return $t.on("change",re),()=>{$t.off("change",re)}}},[$t,Wt]),(0,kt.useEffect)(()=>{$t&&$t.setOption("mode",Kt)},[$t,Kt]),(0,kt.useEffect)(()=>{$t&&(Ft!==$t.getValue()||Ft==="")&&setTimeout(()=>{$t.setValue(Ft||"")},300)},[$t,Ft]),(0,kt.useEffect)(()=>{if(ne.current&&!$t){const re=Ae().fromTextArea(ne.current,et({mode:Kt,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},_t));ve(re)}},[ne.current,$t]),kt.createElement("div",{className:"my-codemirror-container"},kt.createElement("textarea",{ref:ne}))}},12290:function(Ye,pn,Yt){"use strict";Yt.d(pn,{Z:function(){return jr}});var kt=Yt(59301),ue=Yt(89780),xe=Yt.n(ue),Te=Yt(76374),ge=Yt(37036),Ae=Yt(6313),qt=Yt(25717),Ce=Yt(99498),fe=Yt(25419),pe=Yt(67549),le=Yt(85149),Be=({value:De="",className:ye,showTextOnly:he,showLines:Dn,style:ci={}})=>{const hi=(0,kt.useMemo)(()=>"",[De]);return kt.createElement(kt.Fragment,null,kt.createElement("div",{dangerouslySetInnerHTML:{__html:hi}}))},je=Yt(59301),Nt=Object.defineProperty,et=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,gt=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,vt=(De,ye,he)=>ye in De?Nt(De,ye,{enumerable:!0,configurable:!0,writable:!0,value:he}):De[ye]=he,Lt=(De,ye)=>{for(var he in ye||(ye={}))lt.call(ye,he)&&vt(De,he,ye[he]);if(gt)for(var he of gt(ye))pt.call(ye,he)&&vt(De,he,ye[he]);return De},Ft=(De,ye)=>et(De,nt(ye));let Wt=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Kt({onActionCallback:De,title:ye,icon:he,actionName:Dn,className:ci="",children:hi}){function Ze(){De(Dn)}return je.createElement("a",{title:ye,className:ci,onClick:Ze},je.createElement("i",{className:`${he}`}),hi)}var _t=({watch:De,showNullButton:ye,showNullProgramButton:he,onActionCallback:Dn,fullScreen:ci,insertTemp:hi,hidetoolBar:Ze,extraUse:En})=>{const Xi=[...Wt,{title:`${De?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${De?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return je.createElement("ul",{className:"markdown-toolbar-container"},!Ze&&Xi.map((co,ao)=>je.createElement("li",{key:ao},co.actionName?je.createElement(Kt,Ft(Lt({},co),{onActionCallback:Dn})):je.createElement("span",{className:"v-line"}))),ye?je.createElement("li",null,je.createElement(Kt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Dn},je.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,he?je.createElement(je.Fragment,null,je.createElement("li",null,je.createElement(Kt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Dn},je.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),je.createElement("li",null,je.createElement(Kt,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Dn},je.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,hi&&je.createElement("li",null,je.createElement(Kt,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${hi}`,onActionCallback:Dn},je.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),En&&je.createElement("li",null,En),je.createElement("li",{className:"btn-full-screen"},je.createElement(Kt,{icon:`${ci?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:ci?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Dn})))},ne=Yt(79346),$t=Yt(78241),ve=Yt(92832),re=Yt(3113),Oe=Object.defineProperty,me=Object.defineProperties,Fe=Object.getOwnPropertyDescriptors,Pn=Object.getOwnPropertySymbols,vn=Object.prototype.hasOwnProperty,Mn=Object.prototype.propertyIsEnumerable,In=(De,ye,he)=>ye in De?Oe(De,ye,{enumerable:!0,configurable:!0,writable:!0,value:he}):De[ye]=he,Zt=(De,ye)=>{for(var he in ye||(ye={}))vn.call(ye,he)&&In(De,he,ye[he]);if(Pn)for(var he of Pn(ye))Mn.call(ye,he)&&In(De,he,ye[he]);return De},Gt=(De,ye)=>me(De,Fe(ye));const He={labelCol:{span:4},wrapperCol:{span:20}};var un=({callback:De,onCancel:ye})=>{function he(Dn){De(Dn)}return kt.createElement($t.default,Gt(Zt({},He),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:he,style:{width:500}}),kt.createElement($t.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},kt.createElement(ve.default,null)),kt.createElement($t.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},kt.createElement(ve.default,null)),kt.createElement("div",{className:"flex-container flex-end"},kt.createElement(re.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),kt.createElement(re.ZP,{type:"ghost",onClick:ye},"\u53D6\u6D88")))},ln=Yt(53932),ce=Yt(28451),Ue=Yt(43418),on=Yt(95237),wn=Yt(16406),sn=Yt(59301),kn=({callback:De,onCancel:ye})=>{const he=document.createElement("canvas"),Dn=he.getContext("2d");he.width=1e3,he.height=800,Dn.fillStyle="#ffffff",Dn.fillRect(0,0,he.width,he.height);const ci=he.toDataURL("image/png");return sn.createElement(Ue.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},sn.createElement(on.Z,{style:{height:"100vh"}},sn.createElement(wn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:ci,visible:!0,title:String(Date.now())},onOk:hi=>{De({src:hi.url})},onClose:ye})))},te=Yt(12378);function Ve(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Ve,go.CommandHandler),Ve.prototype.canAlignSelection=function(){var De=this.diagram;return!(De===null||De.isReadOnly||De.isModelReadOnly||De.selection.count<2)},Ve.prototype.alignLeft=function(){var De=this.diagram;De.startTransaction("aligning left");var ye=1/0;De.selection.each(function(he){he instanceof go.Link||(ye=Math.min(he.position.x,ye))}),De.selection.each(function(he){he instanceof go.Link||he.move(new go.Point(ye,he.position.y))}),De.commitTransaction("aligning left")},Ve.prototype.alignRight=function(){var De=this.diagram;De.startTransaction("aligning right");var ye=-1/0;De.selection.each(function(he){if(!(he instanceof go.Link)){var Dn=he.actualBounds.x+he.actualBounds.width;ye=Math.max(Dn,ye)}}),De.selection.each(function(he){he instanceof go.Link||he.move(new go.Point(ye-he.actualBounds.width,he.position.y))}),De.commitTransaction("aligning right")},Ve.prototype.alignTop=function(){var De=this.diagram;De.startTransaction("alignTop");var ye=1/0;De.selection.each(function(he){he instanceof go.Link||(ye=Math.min(he.position.y,ye))}),De.selection.each(function(he){he instanceof go.Link||he.move(new go.Point(he.position.x,ye))}),De.commitTransaction("alignTop")},Ve.prototype.alignBottom=function(){var De=this.diagram;De.startTransaction("aligning bottom");var ye=-1/0;De.selection.each(function(he){if(!(he instanceof go.Link)){var Dn=he.actualBounds.y+he.actualBounds.height;ye=Math.max(Dn,ye)}}),De.selection.each(function(he){he instanceof go.Link||he.move(new go.Point(he.actualBounds.x,ye-he.actualBounds.height))}),De.commitTransaction("aligning bottom")},Ve.prototype.alignCenterX=function(){var De=this.diagram,ye=De.selection.first();if(ye){De.startTransaction("aligning Center X");var he=ye.actualBounds.x+ye.actualBounds.width/2;De.selection.each(function(Dn){Dn instanceof go.Link||Dn.move(new go.Point(he-Dn.actualBounds.width/2,Dn.actualBounds.y))}),De.commitTransaction("aligning Center X")}},Ve.prototype.alignCenterY=function(){var De=this.diagram,ye=De.selection.first();if(ye){De.startTransaction("aligning Center Y");var he=ye.actualBounds.y+ye.actualBounds.height/2;De.selection.each(function(Dn){Dn instanceof go.Link||Dn.move(new go.Point(Dn.actualBounds.x,he-Dn.actualBounds.height/2))}),De.commitTransaction("aligning Center Y")}},Ve.prototype.alignColumn=function(De){var ye=this.diagram;ye.startTransaction("align Column"),De===void 0&&(De=0),De=parseFloat(De);var he=new Array;ye.selection.each(function(En){En instanceof go.Link||he.push(En)});for(var Dn=0;Dn0){for(var En=hi.elt(Ze-1);En!==null&&En.isTreeExpanded&&!En.isTreeLeaf;){var Xi=this._sortTreeChildrenByY(En);En=Xi.last()}En!==null&&De.select(En)}else De.select(ci)}}else if(he.key==="Down")if(ye.isTreeExpanded&&!ye.isTreeLeaf){var Dn=this._sortTreeChildrenByY(ye).first();Dn!==null&&De.select(Dn)}else for(;ye!==null;){var ci=ye.findTreeParentNode();if(ci===null)break;var hi=this._sortTreeChildrenByY(ci),Ze=hi.indexOf(ye);if(Zehi.y?1:ci.xhi.x?1:0}),ye},Ve.prototype.copyToClipboard=function(De){go.CommandHandler.prototype.copyToClipboard.call(this,De),this._lastPasteOffset.set(this.pasteOffset)},Ve.prototype.pasteFromClipboard=function(){var De=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(De,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),De},Object.defineProperty(Ve.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(De){if(De!=="move"&&De!=="select"&&De!=="scroll"&&De!=="tree"&&De!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+De);this._arrowKeyBehavior=De}}),Object.defineProperty(Ve.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(De){if(!(De instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+De);this._pasteOffset.set(De)}});var fn=Ve,dn=Yt(74413),Sn=Yt(43604),Vn=Yt(99064),vi={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Qn=Yt(24065),wi=Yt(59301),Ci=(De,ye,he)=>new Promise((Dn,ci)=>{var hi=Xi=>{try{En(he.next(Xi))}catch(co){ci(co)}},Ze=Xi=>{try{En(he.throw(Xi))}catch(co){ci(co)}},En=Xi=>Xi.done?Dn(Xi.value):Promise.resolve(Xi.value).then(hi,Ze);En((he=he.apply(De,ye)).next())});function an({onCancel:De,callback:ye}){let he=(0,kt.useRef)(),Dn=(0,kt.useRef)(),ci=(0,kt.useRef)(),hi=(0,kt.useRef)(!1);const Ze=(0,kt.useRef)(!1),[En,Xi]=(0,kt.useState)(0);function co(){const ee=te.bx.make,yn={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"};he.current=new te.S0(Dn.current,{padding:20,grid:ee(te.s_,"Grid",ee(te.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ee(te.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:gn=>{var Hn=gn.diagram.commandHandler.addTopLevelParts(gn.diagram.selection,!0);Hn||gn.diagram.currentTool.doCancel()},commandHandler:ee(fn),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:gn=>{var Hn=gn.subject;Hn.location=Hn.location.copy().snapToGridPoint(gn.diagram.grid.gridOrigin,gn.diagram.grid.gridCellSize),setTimeout(()=>{gn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:gn=>{var Hn=gn.subject;setTimeout(()=>{gn.diagram.commandHandler.editTextBlock()})},LinkRelinked:gn=>{var Hn=gn.parameter.part;Hn.invalidateConnectedLinks();var Zn=gn.subject;gn.diagram.toolManager.linkingTool.isForwards?Zn.toNode.invalidateConnectedLinks():Zn.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),he.current.nodeTemplate=ee(te.NB,"Auto",{locationSpot:te.z6.Center,locationObjectName:"SHAPE",desiredSize:new te.$u(120,60),minSize:new te.$u(40,40),resizable:!0,resizeCellSize:new te.$u(10,10),rotatable:!0},new te.KX("location","loc",te.E9.parse).makeTwoWay(te.E9.stringify),new te.KX("desiredSize","size",te.$u.parse).makeTwoWay(te.$u.stringify),ee(te.bn,{name:"SHAPE",fill:yn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:te.z6.AllSides,toSpot:te.z6.AllSides},new te.KX("figure"),new te.KX("fill"),new te.KX("stroke","borderColor"),new te.KX("strokeWidth","thickness"),new te.KX("strokeDashArray","dash")),ee(te.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),ee(te.al,{margin:1,textAlign:"center",overflow:te.al.OverflowEllipsis,editable:!0},new te.KX("text").makeTwoWay(),new te.KX("stroke","color"))),he.current.nodeTemplate.toolTip=ee("ToolTip",ee(te.s_,"Vertical",{maxSize:new te.$u(200,NaN)},ee(te.al,{font:"bold 10pt sans-serif",textAlign:"center"},new te.KX("text")),ee(te.al,{font:"10pt sans-serif",textAlign:"center"},new te.KX("text","details"))));function _n(gn,Hn){var Zn=(Kn,Li)=>{Kn.handled=!0,Kn.diagram.model.commit(no=>{var zi=Li.part.adornedPart,Gi=new te.E9().setRectSpot(zi.actualBounds,gn);Gi.subtract(zi.location),Gi.scale(2,2),Gi.x+=Math.sign(Gi.x)*130,Gi.y+=Math.sign(Gi.y)*130,Gi.add(zi.location),Gi.snapToGridPoint(Kn.diagram.grid.gridOrigin,Kn.diagram.grid.gridCellSize);var io=no.copyNodeData(zi.data);no.setGroupKeyForNodeData(io,no.getGroupKeyForNodeData(zi.data)),no.addNodeData(io);var ze={from:zi.key,to:no.getKeyForNodeData(io)};no.addLinkData(ze);var Wi=Kn.diagram.findNodeForData(io);Wi.location=Gi,Kn.diagram.select(Wi),setTimeout(()=>{Kn.diagram.commandHandler.editTextBlock()},20)})};return ee(te.bn,{figure:Hn,alignment:gn,alignmentFocus:gn.opposite(),width:gn.equals(te.z6.Top)||gn.equals(te.z6.Bottom)?25:18,height:gn.equals(te.z6.Top)||gn.equals(te.z6.Bottom)?18:25,fill:"orange",stroke:yn.white,strokeWidth:4,mouseEnter:(Kn,Li)=>Li.fill="dodgerblue",mouseLeave:(Kn,Li)=>Li.fill="orange",isActionable:!0,click:Zn,contextClick:Zn})}function fo(gn){return ee(te.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:(Hn,Zn)=>Zn.fill="dodgerblue",mouseLeave:(Hn,Zn)=>Zn.fill="orange",click:(Hn,Zn)=>{Hn.diagram.commandHandler.showContextMenu(Zn.part.adornedPart)}},gn||{})}he.current.nodeTemplate.selectionAdornmentTemplate=ee(te.uz,"Spot",ee(te.Vm,{padding:10}),_n(te.z6.Top,"TriangleUp"),_n(te.z6.Left,"TriangleLeft"),_n(te.z6.Right,"TriangleRight"),_n(te.z6.Bottom,"TriangleDown"),fo({alignment:new te.z6(.75,0)}));function we(gn,Hn){return(Zn,Kn)=>{Zn.handled=!0,Zn.diagram.model.commit(Li=>{Li.set(Kn.part.adornedPart.data,gn,Hn)})}}function Je(gn,Hn){return Hn||(Hn="color"),ee(te.bn,{width:16,height:16,stroke:"lightgray",fill:gn,margin:1,background:"transparent",mouseEnter:(Zn,Kn)=>Kn.stroke="dodgerblue",mouseLeave:(Zn,Kn)=>Kn.stroke="lightgray",click:we(Hn,gn),contextClick:we(Hn,gn)})}function Si(){return[ee("ContextMenuButton",ee(te.s_,"Horizontal",Je(yn.white,"fill"),Je(yn.beige,"fill"),Je(yn.extralightblue,"fill"),Je(yn.extralightred,"fill"))),ee("ContextMenuButton",ee(te.s_,"Horizontal",Je(yn.lightgray,"fill"),Je(yn.lightgreen,"fill"),Je(yn.lightblue,"fill"),Je(yn.lightred,"fill")))]}function Qi(){return[ee("ContextMenuButton",ee(te.s_,"Horizontal",Je(yn.black),Je(yn.green),Je(yn.blue),Je(yn.red))),ee("ContextMenuButton",ee(te.s_,"Horizontal",Je(yn.white),Je(yn.magenta),Je(yn.purple),Je(yn.orange)))]}function Zi(gn,Hn){return Hn||(Hn="thickness"),ee(te.bn,"LineH",{width:16,height:16,strokeWidth:gn,margin:1,background:"transparent",mouseEnter:(Zn,Kn)=>Kn.background="dodgerblue",mouseLeave:(Zn,Kn)=>Kn.background="transparent",click:we(Hn,gn),contextClick:we(Hn,gn)})}function $n(gn,Hn){return Hn||(Hn="dash"),ee(te.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:gn,margin:1,background:"transparent",mouseEnter:(Zn,Kn)=>Kn.background="dodgerblue",mouseLeave:(Zn,Kn)=>Kn.background="transparent",click:we(Hn,gn),contextClick:we(Hn,gn)})}function ei(){return[ee("ContextMenuButton",ee(te.s_,"Horizontal",Zi(1),Zi(2),Zi(3),Zi(4))),ee("ContextMenuButton",ee(te.s_,"Horizontal",$n(null),$n([2,4]),$n([4,4])))]}function Wn(gn,Hn){return Hn||(Hn="figure"),ee(te.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:gn,margin:1,background:"transparent",mouseEnter:(Zn,Kn)=>Kn.fill="dodgerblue",mouseLeave:(Zn,Kn)=>Kn.fill="lightgray",click:we(Hn,gn),contextClick:we(Hn,gn)})}he.current.nodeTemplate.contextMenu=ee("ContextMenu",ee("ContextMenuButton",ee(te.s_,"Horizontal",Wn("Rectangle"),Wn("RoundedRectangle"),Wn("Ellipse"),Wn("Diamond"))),ee("ContextMenuButton",ee(te.s_,"Horizontal",Wn("Parallelogram2"),Wn("ManualOperation"),Wn("Procedure"),Wn("Cylinder1"))),ee("ContextMenuButton",ee(te.s_,"Horizontal",Wn("Terminator"),Wn("CreateRequest"),Wn("Document"),Wn("TriangleDown"))),Si(),Qi(),ei()),he.current.groupTemplate=ee(te.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:te.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(gn,Hn)=>{var Zn=Hn.addMembers(Hn.diagram.selection,!0);Zn||Hn.diagram.currentTool.doCancel()},avoidable:!1},new te.KX("location","loc",te.E9.parse).makeTwoWay(te.E9.stringify),ee(te.s_,"Auto",{name:"BODY"},ee(te.bn,{parameter1:10,fill:yn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:te.z6.AllSides,toSpot:te.z6.AllSides},new te.KX("fill"),new te.KX("stroke","color"),new te.KX("strokeWidth","thickness"),new te.KX("strokeDashArray","dash")),ee(te.Vm,{background:"transparent",margin:20})),ee(te.al,{alignment:te.z6.Top,alignmentFocus:te.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new te.KX("text"),new te.KX("stroke","color"))),he.current.groupTemplate.selectionAdornmentTemplate=ee(te.uz,"Spot",ee(te.s_,"Auto",ee(te.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),ee(te.Vm,{margin:1.5})),fo({alignment:te.z6.TopRight,alignmentFocus:te.z6.BottomRight})),he.current.groupTemplate.contextMenu=ee("ContextMenu",Si(),Qi(),ei()),he.current.linkTemplate=ee(te.rU,{layerName:"Foreground",routing:te.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new te.KX("fromSpot","fromSpot",te.z6.parse),new te.KX("toSpot","toSpot",te.z6.parse),new te.KX("fromShortLength","dir",gn=>gn>=1?10:0),new te.KX("toShortLength","dir",gn=>gn>=1?10:0),new te.KX("points").makeTwoWay(),ee(te.bn,{strokeWidth:2},new te.KX("stroke","color"),new te.KX("strokeWidth","thickness"),new te.KX("strokeDashArray","dash")),ee(te.bn,{segmentIndex:0,segmentOffset:new te.E9(15,0),segmentOrientation:te.rU.OrientAlong,alignmentFocus:te.z6.Right,figure:"circle",width:10,strokeWidth:0},new te.KX("fill","color"),new te.KX("visible","dir",gn=>gn===1)),ee(te.bn,{segmentIndex:-1,segmentOffset:new te.E9(-10,6),segmentOrientation:te.rU.OrientPlus90,alignmentFocus:te.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new te.KX("fill","color"),new te.KX("visible","dir",gn=>gn>=1),new te.KX("width","thickness",gn=>7+3*gn),new te.KX("height","thickness",gn=>7+3*gn),new te.KX("segmentOffset","thickness",gn=>new te.E9(-15,4+1.5*gn))),ee(te.bn,{segmentIndex:0,segmentOffset:new te.E9(15,-6),segmentOrientation:te.rU.OrientMinus90,alignmentFocus:te.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new te.KX("fill","color"),new te.KX("visible","dir",gn=>gn===2),new te.KX("width","thickness",gn=>7+3*gn),new te.KX("height","thickness",gn=>7+3*gn),new te.KX("segmentOffset","thickness",gn=>new te.E9(-15,4+1.5*gn))),ee(te.al,{alignmentFocus:new te.z6(0,1,-4,0),editable:!0},new te.KX("text").makeTwoWay(),new te.KX("stroke","color"))),he.current.linkTemplate.selectionAdornmentTemplate=ee(te.uz,ee(te.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:lo(2)},new te.KX("pathPattern","thickness",lo)),fo({alignmentFocus:new te.z6(0,0,-6,-4)}));function lo(gn){return ee(te.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(gn+4).toString()+" H3"})}function ur(gn){var Hn="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return gn===0?Hn="M0 0 M16 16 M0 8 L16 8":gn===2&&(Hn="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),ee(te.bn,{geometryString:Hn,margin:2,background:"transparent",mouseEnter:(Zn,Kn)=>Kn.background="dodgerblue",mouseLeave:(Zn,Kn)=>Kn.background="transparent",click:we("dir",gn),contextClick:we("dir",gn)})}function Fo(gn){var Hn=(Zn,Kn)=>{Zn.handled=!0,Zn.diagram.model.commit(Li=>{var no=Kn.part.adornedPart;Li.set(no.data,gn?"toSpot":"fromSpot",te.z6.stringify(te.z6.AllSides)),(gn?no.toNode:no.fromNode).invalidateConnectedLinks()})};return ee(te.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Zn,Kn)=>Kn.background="dodgerblue",mouseLeave:(Zn,Kn)=>Kn.background="transparent",click:Hn,contextClick:Hn})}function Re(gn,Hn){var Zn=0,Kn=te.z6.RightSide;gn.equals(te.z6.Top)?(Zn=270,Kn=te.z6.TopSide):gn.equals(te.z6.Left)?(Zn=180,Kn=te.z6.LeftSide):gn.equals(te.z6.Bottom)&&(Zn=90,Kn=te.z6.BottomSide),Hn||(Zn-=180);var Li=(no,zi)=>{no.handled=!0,no.diagram.model.commit(Gi=>{var io=zi.part.adornedPart;Gi.set(io.data,Hn?"toSpot":"fromSpot",te.z6.stringify(Kn)),(Hn?io.toNode:io.fromNode).invalidateConnectedLinks()})};return ee(te.bn,{alignment:gn,alignmentFocus:gn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Zn,background:"transparent",mouseEnter:(no,zi)=>zi.background="dodgerblue",mouseLeave:(no,zi)=>zi.background="transparent",click:Li,contextClick:Li})}he.current.linkTemplate.contextMenu=ee("ContextMenu",Qi(),ei(),ee("ContextMenuButton",ee(te.s_,"Horizontal",ur(0),ur(1),ur(2))),ee("ContextMenuButton",ee(te.s_,"Horizontal",ee(te.s_,"Spot",Fo(!1),Re(te.z6.Top,!1),Re(te.z6.Left,!1),Re(te.z6.Right,!1),Re(te.z6.Bottom,!1)),ee(te.s_,"Spot",{margin:new te.Zt(0,0,0,2)},Fo(!0),Re(te.z6.Top,!0),Re(te.z6.Left,!0),Re(te.z6.Right,!0),Re(te.z6.Bottom,!0)))));const vo=`{ "class": "GraphLinksModel", + }`;return(0,kt.useEffect)(()=>{const Oe=$t.current.attachShadow({mode:"open"});ve.current=document.createElement("div"),ve.current.className="markdown-body",ve.current.innerHTML=ne,Oe.appendChild(ve.current);const me=document.createElement("style");return me.textContent=re,Oe.appendChild(me),()=>{Oe.innerHTML=""}},[]),(0,kt.useEffect)(()=>{ve.current&&(ve.current.innerHTML=ne)},[ne]),le.createElement("div",{ref:$t})},Nt=Object.defineProperty,et=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,lt=(ne,$t,ve)=>$t in ne?Nt(ne,$t,{enumerable:!0,configurable:!0,writable:!0,value:ve}):ne[$t]=ve,pt=(ne,$t)=>{for(var ve in $t||($t={}))nt.call($t,ve)&<(ne,ve,$t[ve]);if(et)for(var ve of et($t))gt.call($t,ve)&<(ne,ve,$t[ve]);return ne};const vt="@\u2581\u2581@",Lt="@\u2581@",Ft=/]*>/g;function Wt(ne){let $t=document.createElement("div");return $t.innerHTML=ne,$t.childNodes.length===0?"":$t.childNodes[0].nodeValue}const Kt=(ne,$t)=>{ne=ne||"";const ve=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,re=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Oe=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,me=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return $t?ne.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(ve,(Fe,Pn,vn,Mn,In,Zt,Gt)=>{const He=Pn||Mn||Zt,un=vn||In||Gt||"?";return Ee.Z.API_SERVER+"/api/attachments/"+He+un+"&t="+(0,qt.Jn)(He,Date.now())+(Fe.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(ne=ne.replace(me,(Fe,Pn,vn,Mn,In,Zt,Gt)=>{const He=Pn||Mn||Zt,un=vn||In||Gt||"?";return Ee.Z.API_SERVER+"/attachments/download/"+He+un+"&t="+(0,qt.Jn)(He,Date.now())+(Fe.indexOf(")")>-1?")":"&")}).replace(ve,(Fe,Pn,vn,Mn,In,Zt,Gt)=>{const He=Pn||Mn||Zt,un=vn||In||Gt||"?";return Ee.Z.API_SERVER+"/api/attachments/"+He+un+"&t="+(0,qt.Jn)(He,Date.now())+(Fe.indexOf(")")>-1?")":"&")}).replace(re,(Fe,Pn,vn,Mn,In)=>{const Zt=Pn||Mn,Gt=vn||In||"";return'"'+Ee.Z.API_SERVER+"/api/attachments/"+Zt+Gt+Zt+Gt+"&t="+(0,qt.Jn)(Zt,Date.now())}).replace(Oe,(Fe,Pn,vn,Mn,In)=>{const Zt=Pn||Mn,Gt=vn||In||"";return"("+Ee.Z.API_SERVER+"/files/uploads/"+Zt+Gt+Zt+Gt+"&t="+(0,qt.Jn)(Zt,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,` +`),ne)};var _t=({value:ne="",className:$t,showTextOnly:ve,showLines:re,style:Oe={},stylesPrev:me={},highlightKeywords:Fe,showProgramFill:Pn,isProgramFill:vn,disabledFill:Mn=!1,programFillValue:In,onFillChange:Zt=un=>{},onFillBlur:Gt=()=>{},onFillFocus:He=()=>{}})=>{let un=String(ne);const[ln,ce]=(0,kt.useState)(""),[Ue,on]=(0,kt.useState)("office"),[wn,sn]=(0,kt.useState)([]),kn=(0,kt.useRef)("a"+(0,fe.Z)()),te={},Ve=(Ot,Ct,xt)=>{const Bt=document.createElement(Ot===Lt?"input":"textarea");Bt.style.width="100%",Bt.style.height=Ot===Lt?"40px":"151px",Bt.rows=5,Bt.spellcheck=!1,Bt.name="edu-program-fill",Bt.placeholder="\u8BF7\u8F93\u5165",Bt.dataset.id=Ct;const Rt=Object.keys(te).length;return te[Rt]=Bt,`${Bt.outerHTML}`};function fn(Ot){return Ot=Ot.replace(/!\[.*?\]\(.*?\)/g,""),Ot=Ot.replace(/\[.*?\]\(.*?\)/g,""),Ot=Ot.replace(new RegExp("","gs"),""),Ot=Ot.replace(//g,""),Ot=Ot.replace(//g,""),Ot=Ot.replace(new RegExp(".*?<\\/video>","gs"),""),Ot=Ot.replace(new RegExp(".*?<\\/audio>","gs"),""),Ot=Ot.replace(new RegExp(".*?<\\/style>","gs"),""),Ot=Ot.replace(new RegExp(".*?<\\/script>","gs"),""),Ot}const dn=Ot=>Ot.replace(/([\s\S]+?)<\/style>/gim,function(Ct,xt){let Bt=xt.replace(/(\n|\r)/g,"").split("}"),Rt=[];return Bt.map(Et=>{Et!=""&&Rt.push(`.${kn.current} ${Et}`)}),``}),Sn=(0,kt.useMemo)(()=>{try{const Bt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Rt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Et=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,se=/\(\/attachments\/download\//g;un=un.replace(se,"("+Ee.Z.API_SERVER+"/attachments/download/").replace(Bt,"("+Ee.Z.API_SERVER+"/api/attachments/").replace(Rt,'"'+Ee.Z.API_SERVER+"/api/attachments/").replace(Et,'"'+Ee.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(Bt){}if(Pn){let Bt=-1;return un=un.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Rt,Et,se){var _e;return++Bt,Ve(Rt,Bt,(_e=In==null?void 0:In[Bt])==null?void 0:_e.value.replaceAll("<","<").replaceAll(">",">"))}),`
            ${dn(un||"")}
            `}let Ot=dn(un);Ot=(0,xe.ZP)(Ot);const Ct=(0,xe.ez)();un.match(/\[TOC\]/)&&(Ot=Ot.replace("

            [TOC]

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

            ${Cu||

            `):Re.replaceSelection(`${Cu||`):((Zo=_o==null?void 0:_o.type)==null?void 0:Zo.indexOf("video"))>-1?Re.replaceSelection(``):((Wo=_o==null?void 0:_o.type)==null?void 0:Wo.indexOf("pdf"))>-1?Re.replaceSelection(`${_o.name}`):Gn.includes(_a)?Re.replaceSelection(`${_o.name}`):Re.replaceSelection(`[${_o.name}](${ja})`),Re.focus();case pr:const{row:$a,col:yo,align:Ar}=li;let Mu=` -`;for(let ts=0;ts<$a;ts++){let hh=[],aa=[];for(let jn=0;jn{var Xe,Jn,bi,Bo,Zo,Wo;switch(Li(""),Kn){case ni:const{title:Fl,link:de}=li;return Re.replaceSelection(`[${Fl}](${de})`),Re.focus();case oo:const{language:As,content:wu}=li;return Re.replaceSelection(["```"+As,wu,"```"].join(` +`)),Re.focus();case"maths-latex":for(var vr=atob(li),qo=new Uint8Array(vr.length),Ca=0;Ca{ts.id?Re.replaceSelection(`![,](/api/attachments/${ts.id}?type=${ts.content_type})`):(ts==null?void 0:ts.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Re.replaceSelection("`$$"+li+"$$`");break;case di:case Mi:case qi:const{src:ja,alt:Cu}=li,_o=Un,_a=(bi=(Jn=(Xe=_o==null?void 0:_o.name)==null?void 0:Xe.split("."))==null?void 0:Jn.pop)==null?void 0:bi.call(Jn);return((Bo=_o==null?void 0:_o.type)==null?void 0:Bo.indexOf("image"))>-1||!(_o!=null&&_o.type)?_o!=null&&_o.align||_o!=null&&_o.width?Re.replaceSelection(`

            ${Cu||

            `):Re.replaceSelection(`${Cu||`):((Zo=_o==null?void 0:_o.type)==null?void 0:Zo.indexOf("video"))>-1?Re.replaceSelection(``):((Wo=_o==null?void 0:_o.type)==null?void 0:Wo.indexOf("pdf"))>-1?Re.replaceSelection(`${_o.name}`):Gn.includes(_a)?Re.replaceSelection(`${_o.name}`):Re.replaceSelection(`[${_o.name}](${ja})`),Re.focus();case pr:const{row:$a,col:yo,align:Er}=li;let Mu=` +`;for(let ts=0;ts<$a;ts++){let hh=[],aa=[];for(let jn=0;jn{switch(Kn){case ni:return kt.createElement(un,{callback:jt,onCancel:$r});case oo:return kt.createElement(ln.Z,{callback:jt,onCancel:$r});case di:return kt.createElement(ce.Z,{callback:jt,onCancel:$r});case si:return kt.createElement(Nn,{callback:jt,onCancel:$r});case pr:return kt.createElement(Bt,{callback:jt,onCancel:$r});case"maths-latex":return kt.createElement(nn,{showSaveButton:!0,callback:jt});case"inline-latex":return kt.createElement(tn.Z,{showSaveButton:!0,callback:jt});default:return null}},[Kn]);function $r(){Li("")}(0,kt.useEffect)(()=>{if(Bi.current){let li=function(Zo){bi=!0,Bo=Zo.pageY},Un=function(){bi=!1},Xe=function(Zo){if(bi){let Wo=Zo.pageY-Bo;Wo<0&&(Wo=0),Wo>300&&(Wo=300);let vr=Dn+Wo+"px";io(vr)}},Jn=Bi.current,bi=!1,Bo=0;return Jn.addEventListener("mousedown",li),document.addEventListener("mousemove",Xe),document.addEventListener("mouseup",Un),()=>{Jn.removeEventListener("mousedown",li),document.removeEventListener("mousemove",Xe),document.removeEventListener("mouseup",Un)}}},[Re,Bi]),(0,kt.useEffect)(()=>{io(Dn)},[Dn]);const Nl=Ri(he),wa=Ri(Gi),Tl={width:Nl,height:wa},Pu=(0,kt.useMemo)(()=>{if(no){let li=new Date(no),Un=li.getHours(),Xe=li.getMinutes(),Jn=li.getSeconds();return Un=Un<10?"0"+Un:Un,Xe=Xe<10?"0"+Xe:Xe,Jn=Jn<10?"0"+Jn:Jn,`${Un}:${Xe}:${Jn}`}return 0},[no]),td=li=>{const Un=[];if(_n){let Xe=-1;li=li.replace(/(@▁▁@|@▁@)/g,function(Jn,bi,Bo){Un.push({multiLine:Jn!==wt})})}return Un};function ed(){window.sessionStorage.removeItem(co),Wi(!1),zi(0)}function wo(){Wi(!1),zi(0),Re.setValue(window.sessionStorage.getItem(co))}(0,kt.useEffect)(()=>{To[Kn]&&Kn!==Mi&&Kn!==si&&setTimeout(()=>{const li=document.getElementsByClassName("markdown-popup-form")[0],Un=window.innerWidth/2-li.offsetWidth/2,Xe=window.innerHeight/2-li.offsetHeight/2;Yi(Un),Ko(Xe)},0)},[Kn]);const Qo=li=>{li.preventDefault();const Un=li.clientX-Ie,Xe=li.clientY-zr;document.body.onmousemove=Jn=>{let bi=Jn.clientX-Un,Bo=Jn.clientY-Xe;const Zo=document.getElementsByClassName("markdown-popup-form")[0],Wo=window.innerWidth-Zo.offsetWidth,vr=window.innerHeight-Zo.offsetHeight;bi=Math.max(0,Math.min(bi,Wo)),Bo=Math.max(0,Math.min(Bo,vr)),sa(Jn.clientX,Jn.clientY,Un,Xe)&&(Yi(bi),Ko(Bo))},document.body.onmouseup=function(){document.body.onmousemove=null}},sa=(li,Un,Xe,Jn)=>{const bi=document.body.clientHeight,Bo=document.body.clientWidth;return li<20&&Xe>li||li>Bo-20&&XeUn||Un>bi-20&&Jn$t in ne?le(ne,$t,{enumerable:!0,configurable:!0,writable:!0,value:ve}):ne[$t]=ve,lt=(ne,$t)=>{for(var ve in $t||($t={}))et.call($t,ve)&>(ne,ve,$t[ve]);if(Nt)for(var ve of Nt($t))nt.call($t,ve)&>(ne,ve,$t[ve]);return ne},pt=(ne,$t)=>Be(ne,je($t));const{useForm:vt}=kt.default,Lt={width:280,marginRight:10},Ft={labelCol:{span:5},wrapperCol:{span:19}};var Wt=({callback:ne,onCancel:$t})=>{const[ve]=vt();let re=(0,fe.useRef)();function Oe(Pn){re.current.width=ve.getFieldValue("width"),re.current.align=ve.getFieldValue("align"),ne(Pn,re.current)}function me(Pn,vn){if(Pn.status===-1){ue.ZP.error(Pn.message);return}ve.setFieldsValue({src:`/api/attachments/${Pn.id}`,type:vn.type})}function Fe(Pn){let vn=Pn.target.files[0];re.current=vn,_t(vn,me)}return pe.createElement(kt.default,pt(lt({form:ve},Ft),{className:"upload-image-panel",onFinish:Oe,style:{width:470,overflow:"hidden"}}),pe.createElement(kt.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},pe.createElement("div",{className:"flex-container"},pe.createElement(kt.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},pe.createElement(xe.default,{style:Lt})),pe.createElement(Kt,{onFileChange:Fe}))),pe.createElement(kt.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},pe.createElement(xe.default,{style:{width:264}})),pe.createElement(kt.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},pe.createElement(Te.Z,null,pe.createElement(kt.default.Item,{name:"width",style:{margin:0}},pe.createElement(ge.Z,{style:{width:264}})),pe.createElement("span",{className:"ml8"},"%"))),pe.createElement(kt.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},pe.createElement(Ae.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"}]})),pe.createElement("aside",null,pe.createElement(kt.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},pe.createElement(qt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),pe.createElement(qt.ZP,{type:"default",onClick:$t},"\u53D6\u6D88"))))};function Kt({onFileChange:ne}){return pe.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",pe.createElement("input",{type:"file",onChange:ne}))}function _t(ne,$t){if(!ne)throw new String("\u6CA1\u6709\u6587\u4EF6");let ve=new FormData;ve.append("editormd-image-file",ne),ve.append("file_param_name","editormd-image-file"),ve.append("byxhr","true");var re=new window.XMLHttpRequest;re.withCredentials=!0,re.addEventListener("load",function(Oe){$t(JSON.parse(Oe.target.responseText),ne)},!1),re.addEventListener("error",function(Oe){console.error(Oe)},!1),re.open("POST",`${Ce.KI}/api/attachments.json`),re.send(ve)}},79346:function(Ye,pn,Yt){"use strict";Yt.d(pn,{Z:function(){return xe}});var kt=Yt(59301),ue=Yt(4676);class xe extends kt.Component{constructor(ge){super(ge);const Ae=window.document;this.node=Ae.createElement("div"),Ae.body.appendChild(this.node)}render(){const{children:ge}=this.props;return(0,ue.createPortal)(ge,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23954:function(Ye,pn,Yt){"use strict";Yt.d(pn,{SV:function(){return Ci},ZP:function(){return wi}});var kt=Yt(59301),ue=Yt(76374);const xe={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"]},Te={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(` +`),Re.focus();default:throw new Error}},[Re,Kn]),Dr=(0,kt.useMemo)(()=>{switch(Kn){case ni:return kt.createElement(un,{callback:jt,onCancel:$r});case oo:return kt.createElement(ln.Z,{callback:jt,onCancel:$r});case di:return kt.createElement(ce.Z,{callback:jt,onCancel:$r});case si:return kt.createElement(Nn,{callback:jt,onCancel:$r});case pr:return kt.createElement(Bt,{callback:jt,onCancel:$r});case"maths-latex":return kt.createElement(nn,{showSaveButton:!0,callback:jt});case"inline-latex":return kt.createElement(tn.Z,{showSaveButton:!0,callback:jt});default:return null}},[Kn]);function $r(){Li("")}(0,kt.useEffect)(()=>{if(Bi.current){let li=function(Zo){bi=!0,Bo=Zo.pageY},Un=function(){bi=!1},Xe=function(Zo){if(bi){let Wo=Zo.pageY-Bo;Wo<0&&(Wo=0),Wo>300&&(Wo=300);let vr=Dn+Wo+"px";io(vr)}},Jn=Bi.current,bi=!1,Bo=0;return Jn.addEventListener("mousedown",li),document.addEventListener("mousemove",Xe),document.addEventListener("mouseup",Un),()=>{Jn.removeEventListener("mousedown",li),document.removeEventListener("mousemove",Xe),document.removeEventListener("mouseup",Un)}}},[Re,Bi]),(0,kt.useEffect)(()=>{io(Dn)},[Dn]);const Tl=Ri(he),wa=Ri(Gi),fl={width:Tl,height:wa},Pu=(0,kt.useMemo)(()=>{if(no){let li=new Date(no),Un=li.getHours(),Xe=li.getMinutes(),Jn=li.getSeconds();return Un=Un<10?"0"+Un:Un,Xe=Xe<10?"0"+Xe:Xe,Jn=Jn<10?"0"+Jn:Jn,`${Un}:${Xe}:${Jn}`}return 0},[no]),td=li=>{const Un=[];if(_n){let Xe=-1;li=li.replace(/(@▁▁@|@▁@)/g,function(Jn,bi,Bo){Un.push({multiLine:Jn!==wt})})}return Un};function ed(){window.sessionStorage.removeItem(co),Wi(!1),zi(0)}function wo(){Wi(!1),zi(0),Re.setValue(window.sessionStorage.getItem(co))}(0,kt.useEffect)(()=>{To[Kn]&&Kn!==Mi&&Kn!==si&&setTimeout(()=>{const li=document.getElementsByClassName("markdown-popup-form")[0],Un=window.innerWidth/2-li.offsetWidth/2,Xe=window.innerHeight/2-li.offsetHeight/2;Yi(Un),Ko(Xe)},0)},[Kn]);const Qo=li=>{li.preventDefault();const Un=li.clientX-Ie,Xe=li.clientY-zr;document.body.onmousemove=Jn=>{let bi=Jn.clientX-Un,Bo=Jn.clientY-Xe;const Zo=document.getElementsByClassName("markdown-popup-form")[0],Wo=window.innerWidth-Zo.offsetWidth,vr=window.innerHeight-Zo.offsetHeight;bi=Math.max(0,Math.min(bi,Wo)),Bo=Math.max(0,Math.min(Bo,vr)),sa(Jn.clientX,Jn.clientY,Un,Xe)&&(Yi(bi),Ko(Bo))},document.body.onmouseup=function(){document.body.onmousemove=null}},sa=(li,Un,Xe,Jn)=>{const bi=document.body.clientHeight,Bo=document.body.clientWidth;return li<20&&Xe>li||li>Bo-20&&XeUn||Un>bi-20&&Jn$t in ne?le(ne,$t,{enumerable:!0,configurable:!0,writable:!0,value:ve}):ne[$t]=ve,lt=(ne,$t)=>{for(var ve in $t||($t={}))et.call($t,ve)&>(ne,ve,$t[ve]);if(Nt)for(var ve of Nt($t))nt.call($t,ve)&>(ne,ve,$t[ve]);return ne},pt=(ne,$t)=>Be(ne,je($t));const{useForm:vt}=kt.default,Lt={width:280,marginRight:10},Ft={labelCol:{span:5},wrapperCol:{span:19}};var Wt=({callback:ne,onCancel:$t})=>{const[ve]=vt();let re=(0,fe.useRef)();function Oe(Pn){re.current.width=ve.getFieldValue("width"),re.current.align=ve.getFieldValue("align"),ne(Pn,re.current)}function me(Pn,vn){if(Pn.status===-1){ue.ZP.error(Pn.message);return}ve.setFieldsValue({src:`/api/attachments/${Pn.id}`,type:vn.type})}function Fe(Pn){let vn=Pn.target.files[0];re.current=vn,_t(vn,me)}return pe.createElement(kt.default,pt(lt({form:ve},Ft),{className:"upload-image-panel",onFinish:Oe,style:{width:470,overflow:"hidden"}}),pe.createElement(kt.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},pe.createElement("div",{className:"flex-container"},pe.createElement(kt.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},pe.createElement(xe.default,{style:Lt})),pe.createElement(Kt,{onFileChange:Fe}))),pe.createElement(kt.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},pe.createElement(xe.default,{style:{width:264}})),pe.createElement(kt.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},pe.createElement(Te.Z,null,pe.createElement(kt.default.Item,{name:"width",style:{margin:0}},pe.createElement(ge.Z,{style:{width:264}})),pe.createElement("span",{className:"ml8"},"%"))),pe.createElement(kt.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},pe.createElement(Ee.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"}]})),pe.createElement("aside",null,pe.createElement(kt.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},pe.createElement(qt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),pe.createElement(qt.ZP,{type:"default",onClick:$t},"\u53D6\u6D88"))))};function Kt({onFileChange:ne}){return pe.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",pe.createElement("input",{type:"file",onChange:ne}))}function _t(ne,$t){if(!ne)throw new String("\u6CA1\u6709\u6587\u4EF6");let ve=new FormData;ve.append("editormd-image-file",ne),ve.append("file_param_name","editormd-image-file"),ve.append("byxhr","true");var re=new window.XMLHttpRequest;re.withCredentials=!0,re.addEventListener("load",function(Oe){$t(JSON.parse(Oe.target.responseText),ne)},!1),re.addEventListener("error",function(Oe){console.error(Oe)},!1),re.open("POST",`${Ce.KI}/api/attachments.json`),re.send(ve)}},79346:function(Ye,pn,Yt){"use strict";Yt.d(pn,{Z:function(){return xe}});var kt=Yt(59301),ue=Yt(4676);class xe extends kt.Component{constructor(ge){super(ge);const Ee=window.document;this.node=Ee.createElement("div"),Ee.body.appendChild(this.node)}render(){const{children:ge}=this.props;return(0,ue.createPortal)(ge,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23954:function(Ye,pn,Yt){"use strict";Yt.d(pn,{SV:function(){return Ci},ZP:function(){return wi}});var kt=Yt(59301),ue=Yt(76374);const xe={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"]},Te={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"]},ge={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(` @@ -1083,58 +1083,58 @@ ${ce} `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` -`)}]},Ae={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(` +`)}]},Ee={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(` `)}]},qt={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 Ce=Yt(53184),fe=Yt.n(Ce),pe=Object.defineProperty,le=Object.defineProperties,Be=Object.getOwnPropertyDescriptors,je=Object.getOwnPropertySymbols,Nt=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,nt=(an,Nn,xn)=>Nn in an?pe(an,Nn,{enumerable:!0,configurable:!0,writable:!0,value:xn}):an[Nn]=xn,gt=(an,Nn)=>{for(var xn in Nn||(Nn={}))Nt.call(Nn,xn)&&nt(an,xn,Nn[xn]);if(je)for(var xn of je(Nn))et.call(Nn,xn)&&nt(an,xn,Nn[xn]);return an},lt=(an,Nn)=>le(an,Be(Nn)),pt=(an,Nn,xn)=>new Promise((Ot,Ct)=>{var xt=At=>{try{Rt(xn.next(At))}catch(se){Ct(se)}},Bt=At=>{try{Rt(xn.throw(At))}catch(se){Ct(se)}},Rt=At=>At.done?Ot(At.value):Promise.resolve(At.value).then(xt,Bt);Rt((xn=xn.apply(an,Nn)).next())});const vt={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"]}},Lt=(an,Nn)=>Nn.map(xn=>({label:xn,kind:an.languages.CompletionItemKind.Keyword,insertText:xn})),Ft=an=>Object.keys(vt.tables).map(Nn=>({label:Nn,kind:an.languages.CompletionItemKind.Variable,insertText:Nn})),Wt=(an,Nn)=>{const xn=vt.tables[an];return xn?xn.map(Ot=>({label:Ot,kind:Nn.languages.CompletionItemKind.Field,insertText:Ot})):[]};function Kt(an,Nn,xn,Ot,Ct){let xt=Nn.getWordUntilPosition(xn),Bt={startLineNumber:xn.lineNumber,endLineNumber:xn.lineNumber,startColumn:xt.startColumn,endColumn:xt.endColumn},Rt=Ot.map(At=>({label:At,kind:an.languages.CompletionItemKind.Keyword,insertText:At,insertTextRules:an.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Bt}));return Ct.map(At=>{Rt.push(lt(gt({},At),{range:Bt}))}),Rt}var _t=an=>{vt.languages.map(Ct=>(an.languages.registerDocumentFormattingEditProvider(Ct,{provideDocumentFormattingEdits(xt,Bt,Rt){return pt(this,null,function*(){const At=fe()(xt.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:xt.getFullModelRange(),text:At}]})}}),Ct));const Nn=ge.quickKey.map(Ct=>({label:Ct.label,kind:an.languages.CompletionItemKind.Method,insertText:Ct.content,insertTextRules:an.languages.CompletionItemInsertTextRule.InsertAsSnippet})),xn=Ae.quickKey.map(Ct=>({label:Ct.label,kind:an.languages.CompletionItemKind.Method,insertText:Ct.content,insertTextRules:an.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Ot=Te.quickKey.map(Ct=>({label:Ct.label,kind:an.languages.CompletionItemKind.Method,insertText:Ct.content,insertTextRules:an.languages.CompletionItemInsertTextRule.InsertAsSnippet}));an.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Ct,xt){var Bt=Ct.getWordUntilPosition(xt),Rt={startLineNumber:xt.lineNumber,endLineNumber:xt.lineNumber,startColumn:Bt.startColumn,endColumn:Bt.endColumn},At=Ct.getLineContent(xt.lineNumber).substring(Bt.startColumn-2,Bt.endColumn);return{suggestions:[...ge.keywords.map(se=>({label:se,kind:an.languages.CompletionItemKind.Function,documentation:se,insertText:se,insertTextRules:an.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Rt})),...ge.quickKey.map(se=>({label:se.label,kind:an.languages.CompletionItemKind.Function,documentation:se.content,insertText:At.startsWith("#")?se.content.replace(/#/,""):se.content,insertTextRules:an.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Rt}))]}}}),an.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Ct,xt){var Bt=Ct.getWordUntilPosition(xt),Rt={startLineNumber:xt.lineNumber,endLineNumber:xt.lineNumber,startColumn:Bt.startColumn,endColumn:Bt.endColumn};return{suggestions:[...xe.keywords.map(At=>({label:At,kind:an.languages.CompletionItemKind.Function,documentation:At,insertText:At,insertTextRules:an.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Rt}))]}}}),an.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Ct,xt){var Bt=Ct.getWordUntilPosition(xt),Rt={startLineNumber:xt.lineNumber,endLineNumber:xt.lineNumber,startColumn:Bt.startColumn,endColumn:Bt.endColumn},At=Ct.getLineContent(xt.lineNumber).substring(Bt.startColumn-2,Bt.endColumn);return{suggestions:[...Te.keywords.map(se=>({label:se,kind:an.languages.CompletionItemKind.Function,documentation:se,insertText:se,insertTextRules:an.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Rt})),...Te.quickKey.map(se=>({label:se.label,kind:an.languages.CompletionItemKind.Function,documentation:se.content,insertText:At.startsWith("#")?se.content.replace(/#/,""):se.content,insertTextRules:an.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Rt}))]}}}),an.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Ct,xt){var Bt=Ct.getWordUntilPosition(xt),Rt={startLineNumber:xt.lineNumber,endLineNumber:xt.lineNumber,startColumn:Bt.startColumn,endColumn:Bt.endColumn},At=Ct.getLineContent(xt.lineNumber).substring(Bt.startColumn-2,Bt.endColumn);return{suggestions:[...qt.keywords.map(se=>({label:se,kind:an.languages.CompletionItemKind.Function,documentation:se,insertText:se,insertTextRules:an.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Rt})),...qt.quickKey.map(se=>({label:se.label,kind:an.languages.CompletionItemKind.Function,documentation:se.content,insertText:At.startsWith("#")?se.content.replace(/#/,""):se.content,insertTextRules:an.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Rt}))]}}}),an.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Ct,xt){var Bt=Ct.getWordUntilPosition(xt),Rt={startLineNumber:xt.lineNumber,endLineNumber:xt.lineNumber,startColumn:Bt.startColumn,endColumn:Bt.endColumn},At=Ct.getLineContent(xt.lineNumber).substring(Bt.startColumn-2,Bt.endColumn);return{suggestions:[...Ae.keywords.map(se=>({label:se,kind:an.languages.CompletionItemKind.Function,documentation:se,insertText:se,insertTextRules:an.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Rt})),...Ae.quickKey.map(se=>({label:se.label,kind:an.languages.CompletionItemKind.Function,documentation:se.content,insertText:At.startsWith("#")?se.content.replace(/#/,""):se.content,insertTextRules:an.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Rt}))]}}})};const ne="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var $t=Object.defineProperty,ve=(an,Nn,xn)=>Nn in an?$t(an,Nn,{enumerable:!0,configurable:!0,writable:!0,value:xn}):an[Nn]=xn,re=(an,Nn,xn)=>ve(an,typeof Nn!="symbol"?Nn+"":Nn,xn);const Oe=class px{constructor(Nn,xn,Ot){this.placeholder=Nn,this.editor=xn,this.monaco=Ot,xn.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return px.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)}};re(Oe,"ID","editor.widget.placeholderHint");var Fe=Oe,Pn=Yt(96236),vn=Yt(8591),Mn=Yt(6848),In=Yt(89392),Zt=Yt(34604),Gt=Yt(56102),He=Object.defineProperty,un=Object.defineProperties,ln=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,on=Object.prototype.propertyIsEnumerable,wn=(an,Nn,xn)=>Nn in an?He(an,Nn,{enumerable:!0,configurable:!0,writable:!0,value:xn}):an[Nn]=xn,sn=(an,Nn)=>{for(var xn in Nn||(Nn={}))Ue.call(Nn,xn)&&wn(an,xn,Nn[xn]);if(ce)for(var xn of ce(Nn))on.call(Nn,xn)&&wn(an,xn,Nn[xn]);return an},kn=(an,Nn)=>un(an,ln(Nn)),te=(an,Nn)=>{var xn={};for(var Ot in an)Ue.call(an,Ot)&&Nn.indexOf(Ot)<0&&(xn[Ot]=an[Ot]);if(an!=null&&ce)for(var Ot of ce(an))Nn.indexOf(Ot)<0&&on.call(an,Ot)&&(xn[Ot]=an[Ot]);return xn},Ve=(an,Nn,xn)=>new Promise((Ot,Ct)=>{var xt=At=>{try{Rt(xn.next(At))}catch(se){Ct(se)}},Bt=At=>{try{Rt(xn.throw(At))}catch(se){Ct(se)}},Rt=At=>At.done?Ot(At.value):Promise.resolve(At.value).then(xt,Bt);Rt((xn=xn.apply(an,Nn)).next())});function fn(an){return/^\d+$/.test(an)?`${an}px`:an}function dn(){}let Sn=!1;const Vn={"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 vi(an=[]){let Nn=an;if(Array.isArray(an)){for(let xn=0;xn{var Nn=an,{width:xn="100%",height:Ot="100%",value:Ct,language:xt="javascript",style:Bt={},options:Rt={},overrideServices:At={},theme:se="vs-dark",onEditBlur:_e,isCopy:nn=!1,onSave:tn,autoHeight:Ln=!1,forbidCopy:ni=!1,onChange:di=dn,editorDidMount:si=dn,onFocus:Mi=dn,onBreakPoint:qi=dn,breakPointValue:oo=[],filename:pr="educoder.txt",errorLine:Ho,errorContent:mr="",highlightLine:so,openBreakPoint:xo=!1,placeholder:Yr=""}=Nn,Cr=te(Nn,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder"]);const No=(0,kt.useRef)(),yi=(0,kt.useRef)({}),wt=(0,kt.useRef)(),As=(0,kt.useRef)(),Gn=(0,kt.useRef)([]),Ri=(0,kt.useRef)(!1),Io=(0,kt.useRef)(),Jo=(0,kt.useRef)(),Or=(0,kt.useRef)(!1),[To,jr]=(0,kt.useState)(!1);function De(){let we;return No.current&&(we=new ue.Z(Je=>{for(let Si of Je)(Si.target.offsetHeight>0||Si.target.offsetWidth>0)&&yi.current.instance.layout()}),we.observe(No.current)),we}function ye(){vn.ZP.warning({content:decodeURIComponent(ne),key:"monaco-editor-tip"})}const he=()=>{let we=yi.current.instance;if(Ct!=null&&we&&To){const Je=we.getModel();Je&&Ct!==Je.getValue()&&(Sn=!0,Je.setValue(Ct),we.layout(),Sn=!1)}};(0,kt.useEffect)(()=>{const we=Zt.Z.subscribe("formatDocument",Je=>{var Si;let Qi=yi.current.instance;(Si=Qi==null?void 0:Qi.getAction)==null||Si.call(Qi,"editor.action.formatDocument").run()});return window.updateMonacoValue=Je=>{di(Je)},we},[]),(0,kt.useEffect)(()=>{var we;let Je=yi.current.instance;As.current&&clearTimeout(As.current),As.current=setTimeout(()=>{he()},500),Ct&&(Ct!=null&&Ct.length)&&((we=Je==null?void 0:Je.updateOptions)==null||we.call(Je,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Ct.split(/\r\n|\r|\n/g).length))+3,5)}))},[Ct,To,yi.current]),(0,kt.useEffect)(()=>{if(Ho&&yi.current&&yi.current.instance){let Je=yi.current.instance;Je.changeViewZones(function(Si){var Qi=document.createElement("div");Qi.style.padding="10px 20px",Qi.style.width="calc(100% - 20px)",Qi.className="my-error-line-wrp",Qi.innerHTML=mr,Si.addZone({afterLineNumber:Ho||11,heightInLines:3,domNode:Qi})});var we={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}};Je.addOverlayWidget(we),Je.revealPositionInCenter({lineNumber:20,column:1})}},[Ho,yi.current,To]);const Dn=(we="",Je)=>{if(!we||we.trim()==="")return!0;const Qi=yi.current.instance.getModel().getLineTokens(Je);let Zi=!1;for(let $n=0;$n<2;$n++)Qi.getStandardTokenType($n)===1&&(Zi=!0);return Zi};(0,kt.useEffect)(()=>{var we;const Je=(we=yi.current)==null?void 0:we.instance;if(Je&&To&&ni){const Si=Je.onDidBlurEditorWidget(()=>{Or.current=!1}),Qi=Je.onDidFocusEditorText(()=>{Or.current=!0});return()=>{Si.dispose(),Qi.dispose()}}},[yi.current,To,ni]),(0,kt.useEffect)(()=>{var we;if((we=yi.current)!=null&&we.instance&&To&&xo){let Je=yi.current.instance,Si=Je.getModel();if(!Si)return;(()=>{var ji;let Me=[],gn=[];const Hn=Si.getAllDecorations();for(let Kn of Hn)Kn.options.className==="highlighted-line"&&(Me.push((ji=Kn==null?void 0:Kn.range)==null?void 0:ji.startLineNumber),gn.push(Kn==null?void 0:Kn.id));if(so===Me[0])return;Si.deltaDecorations(gn,[]);const Zn=Si.getLineCount();so&&so<=Zn&&(Je.deltaDecorations([],[{range:new Qn.Range(so,1,so,Si.getLineMaxColumn(so)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Je.revealLineInCenter(so))})();const Zi=(ji=!1)=>{var Me;let gn=[],Hn=[];const Zn=Si.getAllDecorations();for(let Kn of Zn)Kn.options.linesDecorationsClassName==="breakpoints-select"&&(gn.push((Me=Kn==null?void 0:Kn.range)==null?void 0:Me.startLineNumber),Hn.push(Kn==null?void 0:Kn.id));if(ji)return{lines:gn,ids:Hn};qi(gn)},$n=ji=>Ve(void 0,null,function*(){let Me={range:new Qn.Range(ji,1,ji,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Si.deltaDecorations([],[Me]),Zi()}),ei=ji=>Ve(void 0,null,function*(){let Me=[];const gn=Je.getLineDecorations(ji);for(let Hn of gn)Hn.options.linesDecorationsClassName==="breakpoints-select"&&Me.push(Hn.id);yield Si.deltaDecorations(Me,[]),Zi()}),Wn=ji=>{let Me=Je.getLineDecorations(ji);for(let gn of Me)if(gn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,In.isEqual)(oo,Zi(!0).lines)){Si.deltaDecorations(Zi(!0).ids,[]);const ji=oo.map(Me=>({range:new Qn.Range(Me,1,Me,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Si.deltaDecorations([],ji)}const lo=Je.onDidChangeModelContent(ji=>{let Me=Je.getPosition();if(Me){let gn=Me.lineNumber;clearTimeout(Jo.current),Jo.current=setTimeout(()=>{Dn(Si.getLineContent(gn),gn)?ei(gn):Wn(gn)?(ei(gn),$n(gn)):Zi()},100)}}),ur=Je.onMouseDown(ji=>{var Me,gn,Hn;if(ji.target.detail&&((Hn=(gn=(Me=ji.target)==null?void 0:Me.element)==null?void 0:gn.className)!=null&&Hn.includes("line-numbers"))){let Zn=ji.target.position.lineNumber;if(Dn(Si.getLineContent(Zn),Zn))return;Wn(Zn)?ei(Zn):$n(Zn)}}),Fo=ji=>{let Me={range:new Qn.Range(ji,1,ji,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Gn.current=Je.deltaDecorations(Gn.current,[Me])},Re=()=>{Gn.current=Je.deltaDecorations(Gn.current,[])},vo=Je.onMouseMove(ji=>{var Me,gn,Hn;if(Re(),ji.target.detail&&((Hn=(gn=(Me=ji.target)==null?void 0:Me.element)==null?void 0:gn.className)!=null&&Hn.includes("line-numbers"))){let Zn=ji.target.position.lineNumber;if(Dn(Si.getLineContent(Zn),Zn))return;Fo(Zn)}}),uo=Je.onMouseLeave(()=>{Re()});return()=>{lo.dispose(),ur.dispose(),vo.dispose(),uo.dispose()}}},[yi.current,To,oo,so,xo,xt]),(0,kt.useEffect)(()=>{var we;(we=yi.current)!=null&&we.instance&&xo&&yi.current.instance.setPosition({lineNumber:0,column:0})},[so]);function ci(){let we=yi.current.instance;if(we){const Je=we.getSelection(),Si=yi.current.pastePos||{},Qi=new Qn.Range(Si.startLineNumber||Je.endLineNumber,Si.startColumn||Je.endColumn,Si.endLineNumber||Je.endLineNumber,Si.endColumn||Je.endColumn);setTimeout(()=>{we.executeEdits("",[{range:Qi,text:""}])},300)}}function hi(we){(window.navigator.platform.match("Mac")?we.metaKey:we.ctrlKey)&&we.keyCode==83&&(we.preventDefault(),tn())}const Ze=()=>{if(Ln&&yi.current.instance){const we=yi.current.instance.getContentHeight();_n(we{if(!Or.current)return;const{keyCode:Je,ctrlKey:Si,metaKey:Qi,target:Zi,type:$n}=we;return($n==="paste"||(Je===67||Je===86)&&(Qi||Si))&&Zi.nodeName==="TEXTAREA"&&(ye(),we.preventDefault()),!1};function co(we,Je){var Si=window.URL||window.webkitURL||window,Qi=new Blob([Je]),Zi=document.createElementNS("http://www.w3.org/1999/xhtml","a");Zi.href=Si.createObjectURL(Qi),Zi.download=we,En(Zi)}(0,kt.useEffect)(()=>{Ze()},[Ze]),(0,kt.useEffect)(()=>{No.current&&!To&&Promise.all([Yt.e(8909),Yt.e(3267)]).then(Yt.bind(Yt,71448)).then(we=>{try{Qn=we,yi.current.instance=Qn.editor.create(No.current,{value:Ct,language:vi(xt),theme:se,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},At);const Je=yi.current.instance;let Zi=[...Pn.BH._menuItems].find(lo=>lo[0]._debugName=="EditorContext")[1],$n=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],ei=(lo,ur)=>{var Fo,Re;let vo=lo._first;do ur.includes((Re=(Fo=vo.element)==null?void 0:Fo.command)==null?void 0:Re.id)&&lo._remove(vo);while(vo=vo.next)};if(si(Je,Qn),setTimeout(()=>{Ze(),yi.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{co(pr||"educoder.txt",Je.getValue())}})},500),yi.current.subscription=Je.onDidChangeModelContent(lo=>{Ri.current?clearTimeout(Io.current):(Ze(),di(Je.getValue(),lo)),Io.current=setTimeout(()=>{Ri.current=!1},500)}),window.Monaco||_t(Qn,vi(xt)),ni&&(ei(Zi,$n),No.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Xi),window.removeEventListener("paste",Xi),window.addEventListener("keydown",Xi),window.addEventListener("paste",Xi)),window.Monaco=Qn,_e&&Je.onDidBlurEditorWidget(()=>{_e(Je.getValue())}),Mi&&Je.onDidFocusEditorText(()=>{Mi(Je.getValue())}),ni)try{Je.onDidPaste(lo=>{const ur=Je.getSelection(),Fo=yi.current.pastePos||{},Re=new Qn.Range(Fo.startLineNumber||ur.endLineNumber,Fo.startColumn||ur.endColumn,Fo.endLineNumber||ur.endLineNumber,Fo.endColumn||ur.endColumn);Je.executeEdits("",[{range:lo.range,text:""}])})}catch(lo){}let Wn=De();return Yr&&typeof Yr=="string"&&new Fe(Yr,Je,Qn),jr(!0),()=>{const lo=yi.current.instance;lo.dispose();const ur=lo.getModel();ur&&ur.dispose(),yi.current.subscription&&yi.current.subscription.dispose(),Wn.unobserve(No.current)}}catch(Je){}})},[]),(0,kt.useEffect)(()=>{if(yi.current.instance&&To)return document.addEventListener("keydown",hi,!1),()=>{document.removeEventListener("keydown",hi)}},[tn,To]),(0,kt.useEffect)(()=>{let we=yi.current.instance;if(we&&To){let Je=vi(xt);Qn.editor.setModelLanguage(we.getModel(),Je)}},[xt,To]),(0,kt.useEffect)(()=>{yi.current.instance&&To&&Qn.editor.setTheme(se)},[se,To]),(0,kt.useEffect)(()=>{let we=yi.current.instance;wt.current=Rt,we&&To&&(we.updateOptions(sn({},Rt)),setTimeout(()=>{we.getModel().updateOptions(sn({},Rt))},200))},[JSON.stringify(Rt),To]),(0,kt.useEffect)(()=>{let we=yi.current.instance;we&&To&&we.layout()},[xn,Ot,To]);const[ao,ee]=(0,kt.useState)(fn(xn)),[yn,_n]=(0,kt.useState)(fn(Ot)),fo=kn(sn({},Bt),{width:ao,height:yn,position:"relative"});return kt.createElement("div",{className:"my-monaco-editor",ref:No,style:fo},nn&&kt.createElement(Gt.CopyToClipboard,{text:Ct,onCopy:()=>vn.ZP.success("\u590D\u5236\u6210\u529F")},kt.createElement(Mn.Z,{title:"\u590D\u5236\u4EE3\u7801"},kt.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},kt.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Ci({width:an="100%",height:Nn="100%",original:xn,modified:Ot,language:Ct,options:xt={}}){const Bt=(0,kt.useRef)(),[Rt,At]=(0,kt.useState)(null);function se(Ln){let ni;return Bt.current&&(ni=new ue.Z(di=>{for(let si of di)(si.target.offsetHeight>0||si.target.offsetWidth>0)&&Ln.layout()}),ni.observe(Bt.current)),ni}(0,kt.useEffect)(()=>(Bt.current&&Promise.all([Yt.e(8909),Yt.e(9404)]).then(Yt.bind(Yt,2550)).then(Ln=>{Qn=Ln;const ni=Qn.editor.createDiffEditor(Bt.current,kn(sn({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},xt),{wordWrap:!0}));At(ni);let di=se(ni);return()=>{ni.dispose();const si=ni.getModel();si&&si.dispose(),di.unobserve(Bt.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,kt.useEffect)(()=>{Rt&&Rt.setModel({original:Qn.editor.createModel(xn,Ct),modified:Qn.editor.createModel(Ot,Ct)})},[xn,Ot,Ct,Rt]);const _e=fn(an),nn=fn(Nn),tn={width:_e,height:nn};return kt.createElement("div",{className:"my-diff-editor",ref:Bt,style:tn})}},58856:function(Ye,pn,Yt){"use strict";Yt.d(pn,{Z:function(){return ue}});var kt=Yt(59301);function ue(xe,Te){const ge=(0,kt.useRef)();(0,kt.useEffect)(()=>{ge.current=xe}),(0,kt.useEffect)(()=>{function Ae(){ge.current()}if(Te!==null){let qt=setInterval(Ae,Te);return()=>clearInterval(qt)}},[Te])}},84111:function(Ye,pn,Yt){"use strict";Yt.r(pn),Yt.d(pn,{default:function(){return te}});var kt=Yt(59301),ue=Yt(89070),xe=Yt(78241),Te=Yt(43418),ge=Yt(8591),Ae=Yt(92832),qt=Yt(95237),Ce=Yt(43604),fe=Yt(3113),pe=Yt(5112),le=Yt(57809),Be=Yt(12290),je=Yt(49692),Nt={flex_box_center:"flex_box_center___GIMe1",flex_space_between:"flex_space_between___gMzN8",flex_box_vertical_center:"flex_box_vertical_center___SgaNa",flex_box_center_end:"flex_box_center_end___N1Baa",flex_box_column:"flex_box_column___hIyfb",bg:"bg___Y4VEx",formWrap:"formWrap___JY9de",taskSty:"taskSty___tTZ5e"},et=Yt(89392),nt=Yt(9165),gt=Yt(25600),lt=Yt(18339),pt=Yt(16349),vt=Yt(49127),Lt=Object.defineProperty,Ft=Object.defineProperties,Wt=Object.getOwnPropertyDescriptors,Kt=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,$t=(Ve,fn,dn)=>fn in Ve?Lt(Ve,fn,{enumerable:!0,configurable:!0,writable:!0,value:dn}):Ve[fn]=dn,ve=(Ve,fn)=>{for(var dn in fn||(fn={}))_t.call(fn,dn)&&$t(Ve,dn,fn[dn]);if(Kt)for(var dn of Kt(fn))ne.call(fn,dn)&&$t(Ve,dn,fn[dn]);return Ve},re=(Ve,fn)=>Ft(Ve,Wt(fn)),Oe=(Ve,fn)=>{var dn={};for(var Sn in Ve)_t.call(Ve,Sn)&&fn.indexOf(Sn)<0&&(dn[Sn]=Ve[Sn]);if(Ve!=null&&Kt)for(var Sn of Kt(Ve))fn.indexOf(Sn)<0&&ne.call(Ve,Sn)&&(dn[Sn]=Ve[Sn]);return dn},Fe=Ve=>{var fn=Ve,{InputRight:dn,value:Sn=[],onChange:Vn=()=>{}}=fn,vi=Oe(fn,["InputRight","value","onChange"]);const[Qn,wi]=(0,kt.useState)(),Ci=Nn=>{const xn=Sn.filter((Ot,Ct)=>Ct!==Nn);Vn(xn)},an=Nn=>{Nn.preventDefault(),Qn&&(Vn([...Sn,Qn]),wi(null))};return kt.createElement("div",null,kt.createElement(Ae.default,re(ve({},vi),{value:Qn,onChange:Nn=>wi(Nn.target.value),onPressEnter:an,onBlur:an})),dn,kt.createElement("div",{className:"mt20"},Sn==null?void 0:Sn.map((Nn,xn)=>kt.createElement(vt.Z,{className:"ml10 mr10",count:"x",onClick:()=>Ci(xn)},kt.createElement(fe.ZP,{type:"primary",ghost:!0},Nn)))))},Pn=Yt(19909),vn=Yt(82238),Mn=Yt(24065),In=Object.defineProperty,Zt=Object.defineProperties,Gt=Object.getOwnPropertyDescriptors,He=Object.getOwnPropertySymbols,un=Object.prototype.hasOwnProperty,ln=Object.prototype.propertyIsEnumerable,ce=(Ve,fn,dn)=>fn in Ve?In(Ve,fn,{enumerable:!0,configurable:!0,writable:!0,value:dn}):Ve[fn]=dn,Ue=(Ve,fn)=>{for(var dn in fn||(fn={}))un.call(fn,dn)&&ce(Ve,dn,fn[dn]);if(He)for(var dn of He(fn))ln.call(fn,dn)&&ce(Ve,dn,fn[dn]);return Ve},on=(Ve,fn)=>Zt(Ve,Gt(fn)),wn=(Ve,fn,dn)=>new Promise((Sn,Vn)=>{var vi=Ci=>{try{wi(dn.next(Ci))}catch(an){Vn(an)}},Qn=Ci=>{try{wi(dn.throw(Ci))}catch(an){Vn(an)}},wi=Ci=>Ci.done?Sn(Ci.value):Promise.resolve(Ci.value).then(vi,Qn);wi((dn=dn.apply(Ve,fn)).next())});const sn={1:[100,200],2:[300,400,500,600],3:[700,800,900,1e3]},kn=({shixunsDetail:Ve,dispatch:fn,practiceSetting:dn})=>{var Sn,Vn,vi,Qn,wi,Ci;const an=(0,ue.useParams)(),[Nn]=xe.default.useForm(),[xn,Ot]=(0,kt.useState)({}),[Ct,xt]=(0,kt.useState)([100,200]),{challengesNew:Bt}=Ve,[Rt,At]=(0,kt.useState)(),[se,_e]=(0,kt.useState)(),[nn,tn]=(0,kt.useState)(!0),[Ln,ni]=(0,kt.useState)(1),di=(0,kt.useRef)({subject:"",difficulty:1,hide_task_pass:!1,score:100,hide_width_rate:40,task_pass:(0,pt.S)(Bt.task_pass_default),has_relation:!1}),si=(0,kt.useRef)(null),{selectQuestionParams:Mi,id:qi,newQuestion:oo}=dn,[pr,Ho]=(0,kt.useState)(!1);(0,kt.useEffect)(()=>{an.challengesId?(_e(!0),mr()):(tn(!0),_e(!1),fn({type:"shixunsDetail/getChallengesNew",payload:Ue({},an)}),tn(!1)),setTimeout(()=>{var Gn;(Gn=document.getElementById("practice-scroll"))==null||Gn.scrollTo(0,0)},300)},[an]),(0,kt.useEffect)(()=>(yi(),()=>{clearTimeout(si.current)}),[xn]);const mr=()=>wn(void 0,null,function*(){tn(!0);const Gn=yield(0,je.ii)({id:an.id,challengeId:an.challengesId,tab:0});if(Gn){const Ri=on(Ue({},Gn),{task_pass:(0,pt.S)(Gn.task_pass)});At(Ri),so(Ri),tn(!1),di.current={subject:Ri.subject,difficulty:Ri.difficulty,score:Ri.score,task_pass:Ri.task_pass,hide_task_pass:Ri.hide_task_pass,hide_width_rate:Ri.hide_width_rate,has_relation:Ri==null?void 0:Ri.has_relation}}}),so=Gn=>{const Ri={subject:Gn.name,difficulty:Gn.difficulty,score:Gn.score,challenge_tag:Gn.tags,task_pass:Gn.task_pass,hide_task_pass:Gn.hide_task_pass,hide_width_rate:Gn.hide_width_rate,has_relation:Gn==null?void 0:Gn.has_relation},Io=sn[Gn.difficulty];xt(Io),Nn.setFieldsValue(Ue({},Ri)),Ot(Ue({},Ri))},xo=Gn=>{const Ri=sn[Gn],Io=Ri==null?void 0:Ri[0];xt(Ri),Nn.setFieldsValue({score:Io}),Ot(Ue(Ue({},Nn.getFieldsValue()),{score:Io}))},Yr=(Gn,Ri)=>{Ot(Ue({},Nn.getFieldsValue())),"difficulty"in Gn&&xo(Gn.difficulty)},Cr=(...Gn)=>wn(void 0,[...Gn],function*(Ri={},Io=!1,Jo=1){var Or,To;if(se){(yield(0,je.Rs)(on(Ue({},an),{tab:0,challenge:Ue({},Ri),challenge_tag:Ri.challenge_tag,sync_origin_shixun:Io})))&&(fn({type:"practiceSetting/setUpdateIndex"}),(Or=Ve==null?void 0:Ve.detail)!=null&&Or.copy_for_exercise&&(0,pt.m)(fn,Ve,an.id,Jo),ue.history.replace(`/shixuns/${an.id}/edit/${an.challengesId}/tab=2`));return}const jr=Ue({},xn);jr.identifier=an.id,jr.st=0,jr.sync_origin_shixun=Io;const De=yield(0,je.al)(Ue({},jr));De.status===1&&((To=Ve==null?void 0:Ve.detail)!=null&&To.copy_for_exercise&&(0,pt.m)(fn,Ve,an.id,Jo),ue.history.replace(`/shixuns/${an.id}/edit/${De.challenge_id}/tab=2`),setTimeout(()=>{fn({type:"practiceSetting/setParams",payload:{newQuestion:null}}),fn({type:"practiceSetting/setUpdateIndex"})},200))}),No=()=>{As()},yi=()=>{clearTimeout(si.current),si.current=setTimeout(wt,500)},wt=()=>{"subject"in xn&&oo&&fn({type:"practiceSetting/setParams",payload:{newQuestion:{st:0,name:xn==null?void 0:xn.subject}}});const Ri=["subject","difficulty","score","task_pass"].some(Io=>{const Jo=(0,et.isNumber)(xn[Io])?String(xn[Io]):xn[Io],Or=(0,et.isNumber)(di.current[Io])?String(di.current[Io]):di.current[Io];return!(0,et.isEqual)(Jo,Or)});fn(Ri?{type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!0}}:{type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})},As=()=>{var Gn;const Ri=()=>{ue.history.push(`/shixuns/${qi}/challenges`),fn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};(Gn=dn==null?void 0:dn.sideBar)!=null&&Gn.confirmLeave?Te.default.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:()=>{Ri()}}):Ri()};return kt.createElement(kt.Fragment,null,kt.createElement("section",{key:1,className:Nt.bg,id:"practice-scroll"},kt.createElement(xe.default,{key:Ln,form:Nn,className:Nt.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:Yr,onFinish:Gn=>{var Ri,Io,Jo;if(!se&&((Ri=Ve.detail)==null?void 0:Ri.shixun_status)===2){ge.ZP.info("\u8BE5\u5B9E\u8BAD\u5DF2\u7ECF\u53D1\u5E03\u4E0D\u80FD\u65B0\u5EFA");return}(Io=Ve==null?void 0:Ve.detail)!=null&&Io.is_fork_from_creator&&((Jo=Ve==null?void 0:Ve.detail)!=null&&Jo.copy_for_exercise)&&di.current.has_relation?fn({type:"classroomList/setActionTabs",payload:{key:"\u540C\u6B65\u4FEE\u6539",value:Gn,type:"taskLevel",fn:(Or,To,jr)=>{Cr(Or,To,jr)}}}):Cr(Gn)}},kt.createElement(lt.Z,{activeIndex:0,isEdit:se}),kt.createElement(xe.default.Item,{initialValue:"",name:"subject",label:"\u4EFB\u52A1\u540D\u79F0:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u540D\u79F0"}]},kt.createElement(Ae.default,{bordered:!1,maxLength:60,suffix:`${((Sn=xn.subject)==null?void 0:Sn.length)||0}/60`,placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"})),kt.createElement(xe.default.Item,{className:Nt.taskSty,name:"task_pass",label:kt.createElement(qt.Z,{align:"middle",style:{width:"100%"}},kt.createElement(Ce.Z,{className:"mr10"},"\u4EFB\u52A1\u8981\u6C42:"),kt.createElement(Ce.Z,null,((Vn=Ve==null?void 0:Ve.detail)==null?void 0:Vn.id)&&(0,Mn.$O)()&&kt.createElement(Pn.Z,{title:"AI\u751F\u6210",fetchUrl:"/api/stream/intelligent_imports/ai_generate.json",fetchData:{type:4,shixun_id:qi},promptPropName:"query",headNode:kt.createElement(kt.Fragment,null,kt.createElement("div",{className:"c-grey-333 font22"},kt.createElement("span",{className:"mr5"},"\u{1F44B}"),"\u55E8\uFF0C\u6211\u662F\u5934\u6B4C\u667A\u80FD\u52A9\u6559\uFF0C\u60A8\u7684\u6559\u5B66\u597D\u5E2E\u624B\u3002"),kt.createElement("div",{className:"font16 mt20",style:{color:"#434D6C"}},"\u6211\u53EF\u4EE5\u9605\u8BFB\u60A8\u4E0A\u4F20\u7684\u6559\u6848\uFF0C\u4E66\u7C4D\u7B49\u6559\u5B66\u8D44\u6599\uFF0C\u5E76\u6839\u636E\u60A8\u7684\u8981\u6C42\u4E3A\u60A8\u81EA\u52A8\u751F\u6210\u4EFB\u52A1\u8981\u6C42\u3002"),kt.createElement("div",{className:"font16 mt20",style:{color:"#434d6c"}},"\u5FEB\u6765\u8BD5\u4E00\u4E0B\u5427\uFF5E"))},kt.createElement(fe.ZP,{type:"primary"},"AI\u751F\u6210"))),kt.createElement(Ce.Z,{style:{marginLeft:"auto"}},kt.createElement(fe.ZP,{style:{marginRight:"-10px"},onClick:()=>{Ho(!0)}},"\u7248\u672C\u7BA1\u7406"))),rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"},{max:35e3,message:"\u8FC7\u5173\u4EFB\u52A1\u7B80\u4ECB\u6700\u5927\u9650\u523635000\u4E2A\u5B57\u7B26"}]},kt.createElement(Be.Z,{key:an.challengesId||"3",watch:!0,defaultValue:se?Rt==null?void 0:Rt.task_pass:Bt.task_pass_default})),kt.createElement(xe.default.Item,{initialValue:40,name:"hide_width_rate",label:"\u4EFB\u52A1\u8981\u6C42\u9ED8\u8BA4\u5C55\u793A\u5BBD\u5EA6:"},kt.createElement(pe.ZP.Group,null,kt.createElement(pe.ZP,{value:0},"0%"),kt.createElement(pe.ZP,{style:{marginLeft:70},value:30},"30%"),kt.createElement(pe.ZP,{style:{marginLeft:70},value:40},"40%"),kt.createElement(pe.ZP,{style:{marginLeft:70},value:50},"50%"))),xn.unity_3d&&((vi=Ve.detail)==null?void 0:vi.identity)<3&&kt.createElement(xe.default.Item,{name:"unity_3d_routes",label:"\u8DEF\u5F84:",rules:[{required:!0,message:"\u5FC5\u586B\u9879\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"}]},kt.createElement(Ae.default,{bordered:!1,disabled:((Qn=Ve.detail)==null?void 0:Qn.shixun_status)===2,placeholder:"\u8BF7\u9009\u62E9\u7248\u672C\u5E93\u4E2D\u7684\u4EE3\u7801\u6587\u4EF6\u3002\u4F8B\uFF1A src/step1/HelloWorld.java"})),kt.createElement(xe.default.Item,{initialValue:1,name:"difficulty",label:"\u96BE\u5EA6\u7CFB\u6570:",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u5EA6\u7CFB\u6570"}]},kt.createElement(pe.ZP.Group,{disabled:((wi=Ve.detail)==null?void 0:wi.shixun_status)===2},kt.createElement(pe.ZP,{value:1},"\u7B80\u5355"),kt.createElement(pe.ZP,{style:{marginLeft:70},value:2},"\u4E2D\u7B49"),kt.createElement(pe.ZP,{style:{marginLeft:70},value:3},"\u56F0\u96BE"))),kt.createElement(xe.default.Item,{name:"challenge_tag",label:kt.createElement("div",null,"\u6280\u80FD\u6807\u7B7E ",kt.createElement("span",{className:"pl20 font12 c-light-black"},"\u5B66\u5458\u7B54\u9898\u6B63\u786E\u5C06\u83B7\u5F97\u6280\u80FD\uFF0C\u5426\u5219\u4E0D\u80FD\u83B7\u5F97\u6280\u80FD\uFF08\u56DE\u8F66\u6DFB\u52A0\u6807\u7B7E\uFF09")),rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6280\u80FD\u6807\u7B7E"}]},kt.createElement(Fe,{placeholder:"\u6DFB\u52A0\u6807\u7B7E",style:{width:"260px"},InputRight:kt.createElement("span",{className:"ml5"},"(\u56DE\u8F66\u6DFB\u52A0\u6807\u7B7E)")})),kt.createElement(qt.Z,{className:"customItemSelect"},kt.createElement(Ce.Z,null,kt.createElement(xe.default.Item,{name:"score",initialValue:100,label:"\u5956\u52B1\u91D1\u5E01:",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5956\u52B1\u7ECF\u9A8C\u503C"}]},kt.createElement(le.default,{disabled:((Ci=Ve.detail)==null?void 0:Ci.shixun_status)===2,bordered:!1,getPopupContainer:Gn=>Gn.parentNode,style:{width:260}},Ct==null?void 0:Ct.map((Gn,Ri)=>kt.createElement(le.default.Option,{key:Ri,value:Gn},Gn))))),kt.createElement(Ce.Z,{flex:1},kt.createElement("div",{style:{marginTop:88},className:"font12 c-light-black ml10"}," \u5B66\u5458\u6B63\u786E\u7B54\u9898\u65F6\u83B7\u5F97\u91D1\u5E01\uFF0C\u5E76\u4E14\u83B7\u5F97\u7B49\u91CF\u7684\u7ECF\u9A8C\u503C\u3002\u5982\uFF1A+100\u91D1\u5E01\u3001+100\u7ECF\u9A8C\u503C"))))),kt.createElement(nt.t,{key:2,onOk:()=>Nn.submit(),className:"customFixedButton",onCancel:No}),kt.createElement(vn.Z,{visible:pr,identifier:an==null?void 0:an.id,challenge_id:an==null?void 0:an.challengesId,onCancle:()=>{Ho(!1)},onOK:Gn=>wn(void 0,null,function*(){Nn.setFieldValue("task_pass",Gn),xn.task_pass=Gn,Ot(xn),yield Nn.submit()})}),kt.createElement(gt.Z,{loading:nn}))};var te=(0,ue.connect)(({shixunsDetail:Ve,newCourse:fn,globalSetting:dn,practiceSetting:Sn})=>({shixunsDetail:Ve,newCourse:fn,globalSetting:dn,practiceSetting:Sn}))(kn)},18339:function(Ye,pn,Yt){"use strict";Yt.d(pn,{Z:function(){return ge}});var kt=Yt(59301),ue=Yt(43418),xe=Yt(89070);const Te=({activeIndex:Ae,isEdit:qt=!0,dispatch:Ce,practiceSetting:fe})=>{const pe=(0,xe.useParams)(),{id:le,challengesId:Be}=pe,je=(0,kt.useMemo)(()=>[{name:"\u672C\u5173\u4EFB\u52A1",url:`/shixuns/${le}/edit/${Be}/editcheckpoint`},{name:"\u8BC4\u6D4B\u8BBE\u7F6E",url:`/shixuns/${le}/edit/${Be}/tab=2`},{name:"\u53C2\u8003\u7B54\u6848",url:`/shixuns/${le}/edit/${Be}/tab=3`},{name:"\u5173\u5361\u6392\u884C\u699C",url:`/shixuns/${le}/edit/${Be}/tab=4`}],[le,Be]),Nt=et=>{var nt;const gt=()=>{xe.history.push(et),Ce({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};(nt=fe==null?void 0:fe.sideBar)!=null&&nt.confirmLeave?ue.default.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:()=>{gt()}}):gt()};return kt.createElement("ul",{className:"challenge-nav"},qt?je.map((et,nt)=>Ae===nt?kt.createElement("li",{key:et.url}," ",kt.createElement("a",{className:"active"},et.name)," "):kt.createElement("li",{key:et.url}," ",kt.createElement("a",{onClick:()=>Nt(et.url)},et.name)," ")):kt.createElement("li",{key:je[0].url}," ",kt.createElement("a",{className:"active"},je[0].name)," "))};var ge=(0,xe.connect)(({globalSetting:Ae,practiceSetting:qt})=>({globalSetting:Ae,practiceSetting:qt}))(Te)},25600:function(Ye,pn,Yt){"use strict";Yt.d(pn,{Z:function(){return ge}});var kt=Yt(59301),ue=Yt(71418),xe={loading:"loading___lueiN"},ge=({loading:Ae})=>Ae?kt.createElement("div",{className:xe.loading},kt.createElement(ue.Z,null)):kt.createElement(kt.Fragment,null)},82238:function(Ye,pn,Yt){"use strict";var kt=Yt(59301),ue=Yt(43418),xe=Yt(1710),Te=Yt(99064),ge=Yt(8797),Ae=Yt(61186),qt=Yt.n(Ae),Ce=Yt(12290),fe=Object.defineProperty,pe=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,je=(gt,lt,pt)=>lt in gt?fe(gt,lt,{enumerable:!0,configurable:!0,writable:!0,value:pt}):gt[lt]=pt,Nt=(gt,lt)=>{for(var pt in lt||(lt={}))le.call(lt,pt)&&je(gt,pt,lt[pt]);if(pe)for(var pt of pe(lt))Be.call(lt,pt)&&je(gt,pt,lt[pt]);return gt},et=(gt,lt,pt)=>new Promise((vt,Lt)=>{var Ft=_t=>{try{Kt(pt.next(_t))}catch(ne){Lt(ne)}},Wt=_t=>{try{Kt(pt.throw(_t))}catch(ne){Lt(ne)}},Kt=_t=>_t.done?vt(_t.value):Promise.resolve(_t.value).then(Ft,Wt);Kt((pt=pt.apply(gt,lt)).next())});const nt=({visible:gt,identifier:lt,challenge_id:pt,onCancle:vt,onOK:Lt})=>{const[Ft,Wt]=(0,kt.useState)(0),[Kt,_t]=(0,kt.useState)([]),[ne,$t]=(0,kt.useState)(!1),[ve,re]=(0,kt.useState)({page:1,limit:10}),Oe=()=>et(void 0,null,function*(){var me,Fe;$t(!0);const Pn=yield(0,Te.ZP)(`/api/shixuns/${lt}/challenges/${pt}/task_pass_histories.json`,{method:"get",params:Nt({},ve)});(Pn==null?void 0:Pn.status)===0&&(Wt((me=Pn==null?void 0:Pn.data)==null?void 0:me.size),_t(((Fe=Pn==null?void 0:Pn.data)==null?void 0:Fe.list)||[])),$t(!1)});return(0,kt.useEffect)(()=>{gt&&Oe()},[gt]),kt.createElement(ue.default,{centered:!0,destroyOnClose:!0,open:gt,title:"\u7248\u672C\u7BA1\u7406",footer:null,width:620,onCancel:()=>{ve.page=1,ve.limit=10,re(Nt({},ve)),vt()}},kt.createElement(xe.default,{scroll:{y:47*10},loading:ne,dataSource:Kt,locale:{emptyText:kt.createElement(ge.Z,null)},columns:[{title:"\u7248\u672C\u4FDD\u5B58\u65F6\u95F4",dataIndex:"updated_at",ellipsis:!0,render:(me,Fe,Pn)=>qt()(me).format("YYYY-MM-DD hh:mm:ss")},{title:"\u4FDD\u5B58\u4EBA",dataIndex:"user_name",width:110,ellipsis:!0,render:me=>me},{title:"\u64CD\u4F5C",dataIndex:"task_pass",align:"right",render(me,Fe,Pn){return kt.createElement("div",null,kt.createElement("a",{onClick:()=>{ue.default.confirm({icon:null,width:800,centered:!0,closable:!0,title:"\u4EFB\u52A1\u8981\u6C42\u8BE6\u60C5",content:kt.createElement("div",{className:"mb10"},kt.createElement(Ce.Z,{key:pt||"3",watch:!0,defaultValue:Fe==null?void 0:Fe.task_pass})),footer:null})}},"\u67E5\u770B"),kt.createElement("a",{onClick:()=>et(this,null,function*(){ue.default.confirm({icon:null,width:500,centered:!0,closable:!0,title:"\u7248\u672C\u5207\u6362\u786E\u8BA4",content:kt.createElement("div",null,kt.createElement("div",null,"\u8BF7\u786E\u8BA4\u662F\u5426\u5C06\u4EFB\u52A1\u8981\u6C42\u5185\u5BB9\u5207\u6362\u81F3 ",qt()(Fe==null?void 0:Fe.updated_at).format("YYYY-MM-DD hh:mm:ss")," \u7248\u672C\uFF1F"),kt.createElement("div",null,"\u7248\u672C\u5207\u6362\u4F1A\u5C06\u5F53\u524D\u4EFB\u52A1\u8981\u6C42\u5185\u5BB9\u5B8C\u5168\u8986\u76D6\uFF0C\u5EFA\u8BAE\u5C06\u6700\u65B0\u4EFB\u52A1\u8981\u6C42\u5185\u5BB9\u4FDD\u5B58\u540E\uFF0C\u518D\u8FDB\u884C\u5207\u6362\u3002")),okText:"\u786E\u8BA4\u5207\u6362",cancelText:"\u53D6\u6D88",onOk:()=>et(this,null,function*(){yield Lt(Fe==null?void 0:Fe.task_pass),vt()})})}),className:"ml20"},"\u5207\u6362\u81F3\u8BE5\u7248\u672C"))}}],onChange:me=>{ve.page=me==null?void 0:me.current,ve.limit=me==null?void 0:me.pageSize,Oe(),re(Nt({},ve))},pagination:{pageSize:ve.limit,total:Ft,current:ve.page,showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!0,showTotal:me=>kt.createElement("span",{className:"mr10"},"\u5171",kt.createElement("span",{className:"c-orange"},me),"\u6761\u6570\u636E")}}))};pn.Z=nt},16349:function(Ye,pn,Yt){"use strict";Yt.d(pn,{S:function(){return Ae},m:function(){return qt}});var kt=Yt(955),ue=Yt(8591),xe=Yt(43418),Te=Yt(59301),ge=(Ce,fe,pe)=>new Promise((le,Be)=>{var je=nt=>{try{et(pe.next(nt))}catch(gt){Be(gt)}},Nt=nt=>{try{et(pe.throw(nt))}catch(gt){Be(gt)}},et=nt=>nt.done?le(nt.value):Promise.resolve(nt.value).then(je,Nt);et((pe=pe.apply(Ce,fe)).next())});const Ae=Ce=>{let fe=document.createElement("textarea");return fe.value=Ce,fe.value},qt=(Ce,fe,pe,le,Be)=>ge(void 0,null,function*(){var je,Nt;const et=yield Ce({type:"shixunsDetail/saveCopyForExercise",payload:{id:pe,save_type:le}});le===1?((et==null?void 0:et.status)==0&&ue.ZP.success("\u4FDD\u5B58\u6210\u529F"),(je=et==null?void 0:et.data)!=null&&je.exists_same_shixun_name?Ce({type:"classroomList/setActionTabs",payload:{key:"\u91CD\u540D\u4FEE\u6539",name:(Nt=et==null?void 0:et.data)==null?void 0:Nt.shixun_name}}):Ce({type:"classroomList/setActionTabs",payload:{}})):(Ce({type:"classroomList/setActionTabs",payload:{}}),(et==null?void 0:et.status)===0&&xe.default.info({title:"\u63D0\u793A",width:460,icon:null,centered:!0,content:Te.createElement("div",null,Te.createElement("div",null,"\u5B9E\u8BAD\u540C\u6B65\u4FEE\u6539\u5B8C\u6210\uFF0C\u8BF7\u9A8C\u8BC1\u5B9E\u8BAD\u662F\u5426\u53EF\u4EE5\u6B63\u5E38\u4F7F\u7528\u3002")),okText:"\u524D\u5F80\u539F\u5B9E\u8BAD",onOk:()=>{var nt,gt;(0,kt.xg)(`/shixuns/${(gt=(nt=fe==null?void 0:fe.detail)==null?void 0:nt.fork_from)==null?void 0:gt.fork_identifier}/challenges`)}}))})},24768:function(Ye,pn,Yt){"use strict";Yt.d(pn,{AL:function(){return Lt},Iy:function(){return le},Qv:function(){return Nt},ez:function(){return vt},jb:function(){return Be}});var kt=Yt(32834),ue=Yt.n(kt),xe=Yt(11690),Te=Yt.n(xe);let ge=1;function Ae(ne,$t){const ve=ne.match(/^(\s+)(?:```)/);if(ve===null)return $t;const re=ve[1];return $t.split(` +`)}]};var Ce=Yt(53184),fe=Yt.n(Ce),pe=Object.defineProperty,le=Object.defineProperties,Be=Object.getOwnPropertyDescriptors,je=Object.getOwnPropertySymbols,Nt=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,nt=(an,Nn,xn)=>Nn in an?pe(an,Nn,{enumerable:!0,configurable:!0,writable:!0,value:xn}):an[Nn]=xn,gt=(an,Nn)=>{for(var xn in Nn||(Nn={}))Nt.call(Nn,xn)&&nt(an,xn,Nn[xn]);if(je)for(var xn of je(Nn))et.call(Nn,xn)&&nt(an,xn,Nn[xn]);return an},lt=(an,Nn)=>le(an,Be(Nn)),pt=(an,Nn,xn)=>new Promise((Ot,Ct)=>{var xt=Et=>{try{Rt(xn.next(Et))}catch(se){Ct(se)}},Bt=Et=>{try{Rt(xn.throw(Et))}catch(se){Ct(se)}},Rt=Et=>Et.done?Ot(Et.value):Promise.resolve(Et.value).then(xt,Bt);Rt((xn=xn.apply(an,Nn)).next())});const vt={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"]}},Lt=(an,Nn)=>Nn.map(xn=>({label:xn,kind:an.languages.CompletionItemKind.Keyword,insertText:xn})),Ft=an=>Object.keys(vt.tables).map(Nn=>({label:Nn,kind:an.languages.CompletionItemKind.Variable,insertText:Nn})),Wt=(an,Nn)=>{const xn=vt.tables[an];return xn?xn.map(Ot=>({label:Ot,kind:Nn.languages.CompletionItemKind.Field,insertText:Ot})):[]};function Kt(an,Nn,xn,Ot,Ct){let xt=Nn.getWordUntilPosition(xn),Bt={startLineNumber:xn.lineNumber,endLineNumber:xn.lineNumber,startColumn:xt.startColumn,endColumn:xt.endColumn},Rt=Ot.map(Et=>({label:Et,kind:an.languages.CompletionItemKind.Keyword,insertText:Et,insertTextRules:an.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Bt}));return Ct.map(Et=>{Rt.push(lt(gt({},Et),{range:Bt}))}),Rt}var _t=an=>{vt.languages.map(Ct=>(an.languages.registerDocumentFormattingEditProvider(Ct,{provideDocumentFormattingEdits(xt,Bt,Rt){return pt(this,null,function*(){const Et=fe()(xt.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:xt.getFullModelRange(),text:Et}]})}}),Ct));const Nn=ge.quickKey.map(Ct=>({label:Ct.label,kind:an.languages.CompletionItemKind.Method,insertText:Ct.content,insertTextRules:an.languages.CompletionItemInsertTextRule.InsertAsSnippet})),xn=Ee.quickKey.map(Ct=>({label:Ct.label,kind:an.languages.CompletionItemKind.Method,insertText:Ct.content,insertTextRules:an.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Ot=Te.quickKey.map(Ct=>({label:Ct.label,kind:an.languages.CompletionItemKind.Method,insertText:Ct.content,insertTextRules:an.languages.CompletionItemInsertTextRule.InsertAsSnippet}));an.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Ct,xt){var Bt=Ct.getWordUntilPosition(xt),Rt={startLineNumber:xt.lineNumber,endLineNumber:xt.lineNumber,startColumn:Bt.startColumn,endColumn:Bt.endColumn},Et=Ct.getLineContent(xt.lineNumber).substring(Bt.startColumn-2,Bt.endColumn);return{suggestions:[...ge.keywords.map(se=>({label:se,kind:an.languages.CompletionItemKind.Function,documentation:se,insertText:se,insertTextRules:an.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Rt})),...ge.quickKey.map(se=>({label:se.label,kind:an.languages.CompletionItemKind.Function,documentation:se.content,insertText:Et.startsWith("#")?se.content.replace(/#/,""):se.content,insertTextRules:an.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Rt}))]}}}),an.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Ct,xt){var Bt=Ct.getWordUntilPosition(xt),Rt={startLineNumber:xt.lineNumber,endLineNumber:xt.lineNumber,startColumn:Bt.startColumn,endColumn:Bt.endColumn};return{suggestions:[...xe.keywords.map(Et=>({label:Et,kind:an.languages.CompletionItemKind.Function,documentation:Et,insertText:Et,insertTextRules:an.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Rt}))]}}}),an.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Ct,xt){var Bt=Ct.getWordUntilPosition(xt),Rt={startLineNumber:xt.lineNumber,endLineNumber:xt.lineNumber,startColumn:Bt.startColumn,endColumn:Bt.endColumn},Et=Ct.getLineContent(xt.lineNumber).substring(Bt.startColumn-2,Bt.endColumn);return{suggestions:[...Te.keywords.map(se=>({label:se,kind:an.languages.CompletionItemKind.Function,documentation:se,insertText:se,insertTextRules:an.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Rt})),...Te.quickKey.map(se=>({label:se.label,kind:an.languages.CompletionItemKind.Function,documentation:se.content,insertText:Et.startsWith("#")?se.content.replace(/#/,""):se.content,insertTextRules:an.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Rt}))]}}}),an.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Ct,xt){var Bt=Ct.getWordUntilPosition(xt),Rt={startLineNumber:xt.lineNumber,endLineNumber:xt.lineNumber,startColumn:Bt.startColumn,endColumn:Bt.endColumn},Et=Ct.getLineContent(xt.lineNumber).substring(Bt.startColumn-2,Bt.endColumn);return{suggestions:[...qt.keywords.map(se=>({label:se,kind:an.languages.CompletionItemKind.Function,documentation:se,insertText:se,insertTextRules:an.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Rt})),...qt.quickKey.map(se=>({label:se.label,kind:an.languages.CompletionItemKind.Function,documentation:se.content,insertText:Et.startsWith("#")?se.content.replace(/#/,""):se.content,insertTextRules:an.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Rt}))]}}}),an.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Ct,xt){var Bt=Ct.getWordUntilPosition(xt),Rt={startLineNumber:xt.lineNumber,endLineNumber:xt.lineNumber,startColumn:Bt.startColumn,endColumn:Bt.endColumn},Et=Ct.getLineContent(xt.lineNumber).substring(Bt.startColumn-2,Bt.endColumn);return{suggestions:[...Ee.keywords.map(se=>({label:se,kind:an.languages.CompletionItemKind.Function,documentation:se,insertText:se,insertTextRules:an.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Rt})),...Ee.quickKey.map(se=>({label:se.label,kind:an.languages.CompletionItemKind.Function,documentation:se.content,insertText:Et.startsWith("#")?se.content.replace(/#/,""):se.content,insertTextRules:an.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Rt}))]}}})};const ne="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var $t=Object.defineProperty,ve=(an,Nn,xn)=>Nn in an?$t(an,Nn,{enumerable:!0,configurable:!0,writable:!0,value:xn}):an[Nn]=xn,re=(an,Nn,xn)=>ve(an,typeof Nn!="symbol"?Nn+"":Nn,xn);const Oe=class px{constructor(Nn,xn,Ot){this.placeholder=Nn,this.editor=xn,this.monaco=Ot,xn.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return px.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)}};re(Oe,"ID","editor.widget.placeholderHint");var Fe=Oe,Pn=Yt(96236),vn=Yt(8591),Mn=Yt(6848),In=Yt(89392),Zt=Yt(34604),Gt=Yt(56102),He=Object.defineProperty,un=Object.defineProperties,ln=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,on=Object.prototype.propertyIsEnumerable,wn=(an,Nn,xn)=>Nn in an?He(an,Nn,{enumerable:!0,configurable:!0,writable:!0,value:xn}):an[Nn]=xn,sn=(an,Nn)=>{for(var xn in Nn||(Nn={}))Ue.call(Nn,xn)&&wn(an,xn,Nn[xn]);if(ce)for(var xn of ce(Nn))on.call(Nn,xn)&&wn(an,xn,Nn[xn]);return an},kn=(an,Nn)=>un(an,ln(Nn)),te=(an,Nn)=>{var xn={};for(var Ot in an)Ue.call(an,Ot)&&Nn.indexOf(Ot)<0&&(xn[Ot]=an[Ot]);if(an!=null&&ce)for(var Ot of ce(an))Nn.indexOf(Ot)<0&&on.call(an,Ot)&&(xn[Ot]=an[Ot]);return xn},Ve=(an,Nn,xn)=>new Promise((Ot,Ct)=>{var xt=Et=>{try{Rt(xn.next(Et))}catch(se){Ct(se)}},Bt=Et=>{try{Rt(xn.throw(Et))}catch(se){Ct(se)}},Rt=Et=>Et.done?Ot(Et.value):Promise.resolve(Et.value).then(xt,Bt);Rt((xn=xn.apply(an,Nn)).next())});function fn(an){return/^\d+$/.test(an)?`${an}px`:an}function dn(){}let Sn=!1;const Vn={"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 vi(an=[]){let Nn=an;if(Array.isArray(an)){for(let xn=0;xn{var Nn=an,{width:xn="100%",height:Ot="100%",value:Ct,language:xt="javascript",style:Bt={},options:Rt={},overrideServices:Et={},theme:se="vs-dark",onEditBlur:_e,isCopy:nn=!1,onSave:tn,autoHeight:Ln=!1,forbidCopy:ni=!1,onChange:di=dn,editorDidMount:si=dn,onFocus:Mi=dn,onBreakPoint:qi=dn,breakPointValue:oo=[],filename:pr="educoder.txt",errorLine:Ho,errorContent:mr="",highlightLine:so,openBreakPoint:xo=!1,placeholder:Yr=""}=Nn,Cr=te(Nn,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder"]);const No=(0,kt.useRef)(),yi=(0,kt.useRef)({}),wt=(0,kt.useRef)(),Es=(0,kt.useRef)(),Gn=(0,kt.useRef)([]),Ri=(0,kt.useRef)(!1),Io=(0,kt.useRef)(),Jo=(0,kt.useRef)(),Or=(0,kt.useRef)(!1),[To,jr]=(0,kt.useState)(!1);function De(){let we;return No.current&&(we=new ue.Z(Je=>{for(let Si of Je)(Si.target.offsetHeight>0||Si.target.offsetWidth>0)&&yi.current.instance.layout()}),we.observe(No.current)),we}function ye(){vn.ZP.warning({content:decodeURIComponent(ne),key:"monaco-editor-tip"})}const he=()=>{let we=yi.current.instance;if(Ct!=null&&we&&To){const Je=we.getModel();Je&&Ct!==Je.getValue()&&(Sn=!0,Je.setValue(Ct),we.layout(),Sn=!1)}};(0,kt.useEffect)(()=>{const we=Zt.Z.subscribe("formatDocument",Je=>{var Si;let Qi=yi.current.instance;(Si=Qi==null?void 0:Qi.getAction)==null||Si.call(Qi,"editor.action.formatDocument").run()});return window.updateMonacoValue=Je=>{di(Je)},we},[]),(0,kt.useEffect)(()=>{var we;let Je=yi.current.instance;Es.current&&clearTimeout(Es.current),Es.current=setTimeout(()=>{he()},500),Ct&&(Ct!=null&&Ct.length)&&((we=Je==null?void 0:Je.updateOptions)==null||we.call(Je,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Ct.split(/\r\n|\r|\n/g).length))+3,5)}))},[Ct,To,yi.current]),(0,kt.useEffect)(()=>{if(Ho&&yi.current&&yi.current.instance){let Je=yi.current.instance;Je.changeViewZones(function(Si){var Qi=document.createElement("div");Qi.style.padding="10px 20px",Qi.style.width="calc(100% - 20px)",Qi.className="my-error-line-wrp",Qi.innerHTML=mr,Si.addZone({afterLineNumber:Ho||11,heightInLines:3,domNode:Qi})});var we={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}};Je.addOverlayWidget(we),Je.revealPositionInCenter({lineNumber:20,column:1})}},[Ho,yi.current,To]);const Dn=(we="",Je)=>{if(!we||we.trim()==="")return!0;const Qi=yi.current.instance.getModel().getLineTokens(Je);let Zi=!1;for(let $n=0;$n<2;$n++)Qi.getStandardTokenType($n)===1&&(Zi=!0);return Zi};(0,kt.useEffect)(()=>{var we;const Je=(we=yi.current)==null?void 0:we.instance;if(Je&&To&&ni){const Si=Je.onDidBlurEditorWidget(()=>{Or.current=!1}),Qi=Je.onDidFocusEditorText(()=>{Or.current=!0});return()=>{Si.dispose(),Qi.dispose()}}},[yi.current,To,ni]),(0,kt.useEffect)(()=>{var we;if((we=yi.current)!=null&&we.instance&&To&&xo){let Je=yi.current.instance,Si=Je.getModel();if(!Si)return;(()=>{var ji;let Me=[],gn=[];const Hn=Si.getAllDecorations();for(let Kn of Hn)Kn.options.className==="highlighted-line"&&(Me.push((ji=Kn==null?void 0:Kn.range)==null?void 0:ji.startLineNumber),gn.push(Kn==null?void 0:Kn.id));if(so===Me[0])return;Si.deltaDecorations(gn,[]);const Zn=Si.getLineCount();so&&so<=Zn&&(Je.deltaDecorations([],[{range:new Qn.Range(so,1,so,Si.getLineMaxColumn(so)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Je.revealLineInCenter(so))})();const Zi=(ji=!1)=>{var Me;let gn=[],Hn=[];const Zn=Si.getAllDecorations();for(let Kn of Zn)Kn.options.linesDecorationsClassName==="breakpoints-select"&&(gn.push((Me=Kn==null?void 0:Kn.range)==null?void 0:Me.startLineNumber),Hn.push(Kn==null?void 0:Kn.id));if(ji)return{lines:gn,ids:Hn};qi(gn)},$n=ji=>Ve(void 0,null,function*(){let Me={range:new Qn.Range(ji,1,ji,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Si.deltaDecorations([],[Me]),Zi()}),ei=ji=>Ve(void 0,null,function*(){let Me=[];const gn=Je.getLineDecorations(ji);for(let Hn of gn)Hn.options.linesDecorationsClassName==="breakpoints-select"&&Me.push(Hn.id);yield Si.deltaDecorations(Me,[]),Zi()}),Wn=ji=>{let Me=Je.getLineDecorations(ji);for(let gn of Me)if(gn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,In.isEqual)(oo,Zi(!0).lines)){Si.deltaDecorations(Zi(!0).ids,[]);const ji=oo.map(Me=>({range:new Qn.Range(Me,1,Me,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Si.deltaDecorations([],ji)}const lo=Je.onDidChangeModelContent(ji=>{let Me=Je.getPosition();if(Me){let gn=Me.lineNumber;clearTimeout(Jo.current),Jo.current=setTimeout(()=>{Dn(Si.getLineContent(gn),gn)?ei(gn):Wn(gn)?(ei(gn),$n(gn)):Zi()},100)}}),ur=Je.onMouseDown(ji=>{var Me,gn,Hn;if(ji.target.detail&&((Hn=(gn=(Me=ji.target)==null?void 0:Me.element)==null?void 0:gn.className)!=null&&Hn.includes("line-numbers"))){let Zn=ji.target.position.lineNumber;if(Dn(Si.getLineContent(Zn),Zn))return;Wn(Zn)?ei(Zn):$n(Zn)}}),Fo=ji=>{let Me={range:new Qn.Range(ji,1,ji,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Gn.current=Je.deltaDecorations(Gn.current,[Me])},Re=()=>{Gn.current=Je.deltaDecorations(Gn.current,[])},vo=Je.onMouseMove(ji=>{var Me,gn,Hn;if(Re(),ji.target.detail&&((Hn=(gn=(Me=ji.target)==null?void 0:Me.element)==null?void 0:gn.className)!=null&&Hn.includes("line-numbers"))){let Zn=ji.target.position.lineNumber;if(Dn(Si.getLineContent(Zn),Zn))return;Fo(Zn)}}),uo=Je.onMouseLeave(()=>{Re()});return()=>{lo.dispose(),ur.dispose(),vo.dispose(),uo.dispose()}}},[yi.current,To,oo,so,xo,xt]),(0,kt.useEffect)(()=>{var we;(we=yi.current)!=null&&we.instance&&xo&&yi.current.instance.setPosition({lineNumber:0,column:0})},[so]);function ci(){let we=yi.current.instance;if(we){const Je=we.getSelection(),Si=yi.current.pastePos||{},Qi=new Qn.Range(Si.startLineNumber||Je.endLineNumber,Si.startColumn||Je.endColumn,Si.endLineNumber||Je.endLineNumber,Si.endColumn||Je.endColumn);setTimeout(()=>{we.executeEdits("",[{range:Qi,text:""}])},300)}}function hi(we){(window.navigator.platform.match("Mac")?we.metaKey:we.ctrlKey)&&we.keyCode==83&&(we.preventDefault(),tn())}const Ze=()=>{if(Ln&&yi.current.instance){const we=yi.current.instance.getContentHeight();_n(we{if(!Or.current)return;const{keyCode:Je,ctrlKey:Si,metaKey:Qi,target:Zi,type:$n}=we;return($n==="paste"||(Je===67||Je===86)&&(Qi||Si))&&Zi.nodeName==="TEXTAREA"&&(ye(),we.preventDefault()),!1};function co(we,Je){var Si=window.URL||window.webkitURL||window,Qi=new Blob([Je]),Zi=document.createElementNS("http://www.w3.org/1999/xhtml","a");Zi.href=Si.createObjectURL(Qi),Zi.download=we,An(Zi)}(0,kt.useEffect)(()=>{Ze()},[Ze]),(0,kt.useEffect)(()=>{No.current&&!To&&Promise.all([Yt.e(8909),Yt.e(3267)]).then(Yt.bind(Yt,71448)).then(we=>{try{Qn=we,yi.current.instance=Qn.editor.create(No.current,{value:Ct,language:vi(xt),theme:se,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Et);const Je=yi.current.instance;let Zi=[...Pn.BH._menuItems].find(lo=>lo[0]._debugName=="EditorContext")[1],$n=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],ei=(lo,ur)=>{var Fo,Re;let vo=lo._first;do ur.includes((Re=(Fo=vo.element)==null?void 0:Fo.command)==null?void 0:Re.id)&&lo._remove(vo);while(vo=vo.next)};if(si(Je,Qn),setTimeout(()=>{Ze(),yi.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{co(pr||"educoder.txt",Je.getValue())}})},500),yi.current.subscription=Je.onDidChangeModelContent(lo=>{Ri.current?clearTimeout(Io.current):(Ze(),di(Je.getValue(),lo)),Io.current=setTimeout(()=>{Ri.current=!1},500)}),window.Monaco||_t(Qn,vi(xt)),ni&&(ei(Zi,$n),No.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Xi),window.removeEventListener("paste",Xi),window.addEventListener("keydown",Xi),window.addEventListener("paste",Xi)),window.Monaco=Qn,_e&&Je.onDidBlurEditorWidget(()=>{_e(Je.getValue())}),Mi&&Je.onDidFocusEditorText(()=>{Mi(Je.getValue())}),ni)try{Je.onDidPaste(lo=>{const ur=Je.getSelection(),Fo=yi.current.pastePos||{},Re=new Qn.Range(Fo.startLineNumber||ur.endLineNumber,Fo.startColumn||ur.endColumn,Fo.endLineNumber||ur.endLineNumber,Fo.endColumn||ur.endColumn);Je.executeEdits("",[{range:lo.range,text:""}])})}catch(lo){}let Wn=De();return Yr&&typeof Yr=="string"&&new Fe(Yr,Je,Qn),jr(!0),()=>{const lo=yi.current.instance;lo.dispose();const ur=lo.getModel();ur&&ur.dispose(),yi.current.subscription&&yi.current.subscription.dispose(),Wn.unobserve(No.current)}}catch(Je){}})},[]),(0,kt.useEffect)(()=>{if(yi.current.instance&&To)return document.addEventListener("keydown",hi,!1),()=>{document.removeEventListener("keydown",hi)}},[tn,To]),(0,kt.useEffect)(()=>{let we=yi.current.instance;if(we&&To){let Je=vi(xt);Qn.editor.setModelLanguage(we.getModel(),Je)}},[xt,To]),(0,kt.useEffect)(()=>{yi.current.instance&&To&&Qn.editor.setTheme(se)},[se,To]),(0,kt.useEffect)(()=>{let we=yi.current.instance;wt.current=Rt,we&&To&&(we.updateOptions(sn({},Rt)),setTimeout(()=>{we.getModel().updateOptions(sn({},Rt))},200))},[JSON.stringify(Rt),To]),(0,kt.useEffect)(()=>{let we=yi.current.instance;we&&To&&we.layout()},[xn,Ot,To]);const[ao,ee]=(0,kt.useState)(fn(xn)),[yn,_n]=(0,kt.useState)(fn(Ot)),fo=kn(sn({},Bt),{width:ao,height:yn,position:"relative"});return kt.createElement("div",{className:"my-monaco-editor",ref:No,style:fo},nn&&kt.createElement(Gt.CopyToClipboard,{text:Ct,onCopy:()=>vn.ZP.success("\u590D\u5236\u6210\u529F")},kt.createElement(Mn.Z,{title:"\u590D\u5236\u4EE3\u7801"},kt.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},kt.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Ci({width:an="100%",height:Nn="100%",original:xn,modified:Ot,language:Ct,options:xt={}}){const Bt=(0,kt.useRef)(),[Rt,Et]=(0,kt.useState)(null);function se(Ln){let ni;return Bt.current&&(ni=new ue.Z(di=>{for(let si of di)(si.target.offsetHeight>0||si.target.offsetWidth>0)&&Ln.layout()}),ni.observe(Bt.current)),ni}(0,kt.useEffect)(()=>(Bt.current&&Promise.all([Yt.e(8909),Yt.e(9404)]).then(Yt.bind(Yt,2550)).then(Ln=>{Qn=Ln;const ni=Qn.editor.createDiffEditor(Bt.current,kn(sn({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},xt),{wordWrap:!0}));Et(ni);let di=se(ni);return()=>{ni.dispose();const si=ni.getModel();si&&si.dispose(),di.unobserve(Bt.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,kt.useEffect)(()=>{Rt&&Rt.setModel({original:Qn.editor.createModel(xn,Ct),modified:Qn.editor.createModel(Ot,Ct)})},[xn,Ot,Ct,Rt]);const _e=fn(an),nn=fn(Nn),tn={width:_e,height:nn};return kt.createElement("div",{className:"my-diff-editor",ref:Bt,style:tn})}},58856:function(Ye,pn,Yt){"use strict";Yt.d(pn,{Z:function(){return ue}});var kt=Yt(59301);function ue(xe,Te){const ge=(0,kt.useRef)();(0,kt.useEffect)(()=>{ge.current=xe}),(0,kt.useEffect)(()=>{function Ee(){ge.current()}if(Te!==null){let qt=setInterval(Ee,Te);return()=>clearInterval(qt)}},[Te])}},84111:function(Ye,pn,Yt){"use strict";Yt.r(pn),Yt.d(pn,{default:function(){return te}});var kt=Yt(59301),ue=Yt(89070),xe=Yt(78241),Te=Yt(43418),ge=Yt(8591),Ee=Yt(92832),qt=Yt(95237),Ce=Yt(43604),fe=Yt(3113),pe=Yt(5112),le=Yt(57809),Be=Yt(12290),je=Yt(49692),Nt={flex_box_center:"flex_box_center___GIMe1",flex_space_between:"flex_space_between___gMzN8",flex_box_vertical_center:"flex_box_vertical_center___SgaNa",flex_box_center_end:"flex_box_center_end___N1Baa",flex_box_column:"flex_box_column___hIyfb",bg:"bg___Y4VEx",formWrap:"formWrap___JY9de",taskSty:"taskSty___tTZ5e"},et=Yt(89392),nt=Yt(9165),gt=Yt(25600),lt=Yt(18339),pt=Yt(16349),vt=Yt(49127),Lt=Object.defineProperty,Ft=Object.defineProperties,Wt=Object.getOwnPropertyDescriptors,Kt=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,$t=(Ve,fn,dn)=>fn in Ve?Lt(Ve,fn,{enumerable:!0,configurable:!0,writable:!0,value:dn}):Ve[fn]=dn,ve=(Ve,fn)=>{for(var dn in fn||(fn={}))_t.call(fn,dn)&&$t(Ve,dn,fn[dn]);if(Kt)for(var dn of Kt(fn))ne.call(fn,dn)&&$t(Ve,dn,fn[dn]);return Ve},re=(Ve,fn)=>Ft(Ve,Wt(fn)),Oe=(Ve,fn)=>{var dn={};for(var Sn in Ve)_t.call(Ve,Sn)&&fn.indexOf(Sn)<0&&(dn[Sn]=Ve[Sn]);if(Ve!=null&&Kt)for(var Sn of Kt(Ve))fn.indexOf(Sn)<0&&ne.call(Ve,Sn)&&(dn[Sn]=Ve[Sn]);return dn},Fe=Ve=>{var fn=Ve,{InputRight:dn,value:Sn=[],onChange:Vn=()=>{}}=fn,vi=Oe(fn,["InputRight","value","onChange"]);const[Qn,wi]=(0,kt.useState)(),Ci=Nn=>{const xn=Sn.filter((Ot,Ct)=>Ct!==Nn);Vn(xn)},an=Nn=>{Nn.preventDefault(),Qn&&(Vn([...Sn,Qn]),wi(null))};return kt.createElement("div",null,kt.createElement(Ee.default,re(ve({},vi),{value:Qn,onChange:Nn=>wi(Nn.target.value),onPressEnter:an,onBlur:an})),dn,kt.createElement("div",{className:"mt20"},Sn==null?void 0:Sn.map((Nn,xn)=>kt.createElement(vt.Z,{className:"ml10 mr10",count:"x",onClick:()=>Ci(xn)},kt.createElement(fe.ZP,{type:"primary",ghost:!0},Nn)))))},Pn=Yt(19909),vn=Yt(82238),Mn=Yt(24065),In=Object.defineProperty,Zt=Object.defineProperties,Gt=Object.getOwnPropertyDescriptors,He=Object.getOwnPropertySymbols,un=Object.prototype.hasOwnProperty,ln=Object.prototype.propertyIsEnumerable,ce=(Ve,fn,dn)=>fn in Ve?In(Ve,fn,{enumerable:!0,configurable:!0,writable:!0,value:dn}):Ve[fn]=dn,Ue=(Ve,fn)=>{for(var dn in fn||(fn={}))un.call(fn,dn)&&ce(Ve,dn,fn[dn]);if(He)for(var dn of He(fn))ln.call(fn,dn)&&ce(Ve,dn,fn[dn]);return Ve},on=(Ve,fn)=>Zt(Ve,Gt(fn)),wn=(Ve,fn,dn)=>new Promise((Sn,Vn)=>{var vi=Ci=>{try{wi(dn.next(Ci))}catch(an){Vn(an)}},Qn=Ci=>{try{wi(dn.throw(Ci))}catch(an){Vn(an)}},wi=Ci=>Ci.done?Sn(Ci.value):Promise.resolve(Ci.value).then(vi,Qn);wi((dn=dn.apply(Ve,fn)).next())});const sn={1:[100,200],2:[300,400,500,600],3:[700,800,900,1e3]},kn=({shixunsDetail:Ve,dispatch:fn,practiceSetting:dn})=>{var Sn,Vn,vi,Qn,wi,Ci;const an=(0,ue.useParams)(),[Nn]=xe.default.useForm(),[xn,Ot]=(0,kt.useState)({}),[Ct,xt]=(0,kt.useState)([100,200]),{challengesNew:Bt}=Ve,[Rt,Et]=(0,kt.useState)(),[se,_e]=(0,kt.useState)(),[nn,tn]=(0,kt.useState)(!0),[Ln,ni]=(0,kt.useState)(1),di=(0,kt.useRef)({subject:"",difficulty:1,hide_task_pass:!1,score:100,hide_width_rate:40,task_pass:(0,pt.S)(Bt.task_pass_default),has_relation:!1}),si=(0,kt.useRef)(null),{selectQuestionParams:Mi,id:qi,newQuestion:oo}=dn,[pr,Ho]=(0,kt.useState)(!1);(0,kt.useEffect)(()=>{an.challengesId?(_e(!0),mr()):(tn(!0),_e(!1),fn({type:"shixunsDetail/getChallengesNew",payload:Ue({},an)}),tn(!1)),setTimeout(()=>{var Gn;(Gn=document.getElementById("practice-scroll"))==null||Gn.scrollTo(0,0)},300)},[an]),(0,kt.useEffect)(()=>(yi(),()=>{clearTimeout(si.current)}),[xn]);const mr=()=>wn(void 0,null,function*(){tn(!0);const Gn=yield(0,je.ii)({id:an.id,challengeId:an.challengesId,tab:0});if(Gn){const Ri=on(Ue({},Gn),{task_pass:(0,pt.S)(Gn.task_pass)});Et(Ri),so(Ri),tn(!1),di.current={subject:Ri.subject,difficulty:Ri.difficulty,score:Ri.score,task_pass:Ri.task_pass,hide_task_pass:Ri.hide_task_pass,hide_width_rate:Ri.hide_width_rate,has_relation:Ri==null?void 0:Ri.has_relation}}}),so=Gn=>{const Ri={subject:Gn.name,difficulty:Gn.difficulty,score:Gn.score,challenge_tag:Gn.tags,task_pass:Gn.task_pass,hide_task_pass:Gn.hide_task_pass,hide_width_rate:Gn.hide_width_rate,has_relation:Gn==null?void 0:Gn.has_relation},Io=sn[Gn.difficulty];xt(Io),Nn.setFieldsValue(Ue({},Ri)),Ot(Ue({},Ri))},xo=Gn=>{const Ri=sn[Gn],Io=Ri==null?void 0:Ri[0];xt(Ri),Nn.setFieldsValue({score:Io}),Ot(Ue(Ue({},Nn.getFieldsValue()),{score:Io}))},Yr=(Gn,Ri)=>{Ot(Ue({},Nn.getFieldsValue())),"difficulty"in Gn&&xo(Gn.difficulty)},Cr=(...Gn)=>wn(void 0,[...Gn],function*(Ri={},Io=!1,Jo=1){var Or,To;if(se){(yield(0,je.Rs)(on(Ue({},an),{tab:0,challenge:Ue({},Ri),challenge_tag:Ri.challenge_tag,sync_origin_shixun:Io})))&&(fn({type:"practiceSetting/setUpdateIndex"}),(Or=Ve==null?void 0:Ve.detail)!=null&&Or.copy_for_exercise&&(0,pt.m)(fn,Ve,an.id,Jo),ue.history.replace(`/shixuns/${an.id}/edit/${an.challengesId}/tab=2`));return}const jr=Ue({},xn);jr.identifier=an.id,jr.st=0,jr.sync_origin_shixun=Io;const De=yield(0,je.al)(Ue({},jr));De.status===1&&((To=Ve==null?void 0:Ve.detail)!=null&&To.copy_for_exercise&&(0,pt.m)(fn,Ve,an.id,Jo),ue.history.replace(`/shixuns/${an.id}/edit/${De.challenge_id}/tab=2`),setTimeout(()=>{fn({type:"practiceSetting/setParams",payload:{newQuestion:null}}),fn({type:"practiceSetting/setUpdateIndex"})},200))}),No=()=>{Es()},yi=()=>{clearTimeout(si.current),si.current=setTimeout(wt,500)},wt=()=>{"subject"in xn&&oo&&fn({type:"practiceSetting/setParams",payload:{newQuestion:{st:0,name:xn==null?void 0:xn.subject}}});const Ri=["subject","difficulty","score","task_pass"].some(Io=>{const Jo=(0,et.isNumber)(xn[Io])?String(xn[Io]):xn[Io],Or=(0,et.isNumber)(di.current[Io])?String(di.current[Io]):di.current[Io];return!(0,et.isEqual)(Jo,Or)});fn(Ri?{type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!0}}:{type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})},Es=()=>{var Gn;const Ri=()=>{ue.history.push(`/shixuns/${qi}/challenges`),fn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};(Gn=dn==null?void 0:dn.sideBar)!=null&&Gn.confirmLeave?Te.default.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:()=>{Ri()}}):Ri()};return kt.createElement(kt.Fragment,null,kt.createElement("section",{key:1,className:Nt.bg,id:"practice-scroll"},kt.createElement(xe.default,{key:Ln,form:Nn,className:Nt.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:Yr,onFinish:Gn=>{var Ri,Io,Jo;if(!se&&((Ri=Ve.detail)==null?void 0:Ri.shixun_status)===2){ge.ZP.info("\u8BE5\u5B9E\u8BAD\u5DF2\u7ECF\u53D1\u5E03\u4E0D\u80FD\u65B0\u5EFA");return}(Io=Ve==null?void 0:Ve.detail)!=null&&Io.is_fork_from_creator&&((Jo=Ve==null?void 0:Ve.detail)!=null&&Jo.copy_for_exercise)&&di.current.has_relation?fn({type:"classroomList/setActionTabs",payload:{key:"\u540C\u6B65\u4FEE\u6539",value:Gn,type:"taskLevel",fn:(Or,To,jr)=>{Cr(Or,To,jr)}}}):Cr(Gn)}},kt.createElement(lt.Z,{activeIndex:0,isEdit:se}),kt.createElement(xe.default.Item,{initialValue:"",name:"subject",label:"\u4EFB\u52A1\u540D\u79F0:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u540D\u79F0"}]},kt.createElement(Ee.default,{bordered:!1,maxLength:60,suffix:`${((Sn=xn.subject)==null?void 0:Sn.length)||0}/60`,placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"})),kt.createElement(xe.default.Item,{className:Nt.taskSty,name:"task_pass",label:kt.createElement(qt.Z,{align:"middle",style:{width:"100%"}},kt.createElement(Ce.Z,{className:"mr10"},"\u4EFB\u52A1\u8981\u6C42:"),kt.createElement(Ce.Z,null,((Vn=Ve==null?void 0:Ve.detail)==null?void 0:Vn.id)&&(0,Mn.$O)()&&kt.createElement(Pn.Z,{title:"AI\u751F\u6210",fetchUrl:"/api/stream/intelligent_imports/ai_generate.json",fetchData:{type:4,shixun_id:qi},promptPropName:"query",headNode:kt.createElement(kt.Fragment,null,kt.createElement("div",{className:"c-grey-333 font22"},kt.createElement("span",{className:"mr5"},"\u{1F44B}"),"\u55E8\uFF0C\u6211\u662F\u5934\u6B4C\u667A\u80FD\u52A9\u6559\uFF0C\u60A8\u7684\u6559\u5B66\u597D\u5E2E\u624B\u3002"),kt.createElement("div",{className:"font16 mt20",style:{color:"#434D6C"}},"\u6211\u53EF\u4EE5\u9605\u8BFB\u60A8\u4E0A\u4F20\u7684\u6559\u6848\uFF0C\u4E66\u7C4D\u7B49\u6559\u5B66\u8D44\u6599\uFF0C\u5E76\u6839\u636E\u60A8\u7684\u8981\u6C42\u4E3A\u60A8\u81EA\u52A8\u751F\u6210\u4EFB\u52A1\u8981\u6C42\u3002"),kt.createElement("div",{className:"font16 mt20",style:{color:"#434d6c"}},"\u5FEB\u6765\u8BD5\u4E00\u4E0B\u5427\uFF5E"))},kt.createElement(fe.ZP,{type:"primary"},"AI\u751F\u6210"))),kt.createElement(Ce.Z,{style:{marginLeft:"auto"}},kt.createElement(fe.ZP,{style:{marginRight:"-10px"},onClick:()=>{Ho(!0)}},"\u7248\u672C\u7BA1\u7406"))),rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"},{max:35e3,message:"\u8FC7\u5173\u4EFB\u52A1\u7B80\u4ECB\u6700\u5927\u9650\u523635000\u4E2A\u5B57\u7B26"}]},kt.createElement(Be.Z,{key:an.challengesId||"3",watch:!0,defaultValue:se?Rt==null?void 0:Rt.task_pass:Bt.task_pass_default})),kt.createElement(xe.default.Item,{initialValue:40,name:"hide_width_rate",label:"\u4EFB\u52A1\u8981\u6C42\u9ED8\u8BA4\u5C55\u793A\u5BBD\u5EA6:"},kt.createElement(pe.ZP.Group,null,kt.createElement(pe.ZP,{value:0},"0%"),kt.createElement(pe.ZP,{style:{marginLeft:70},value:30},"30%"),kt.createElement(pe.ZP,{style:{marginLeft:70},value:40},"40%"),kt.createElement(pe.ZP,{style:{marginLeft:70},value:50},"50%"))),xn.unity_3d&&((vi=Ve.detail)==null?void 0:vi.identity)<3&&kt.createElement(xe.default.Item,{name:"unity_3d_routes",label:"\u8DEF\u5F84:",rules:[{required:!0,message:"\u5FC5\u586B\u9879\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"}]},kt.createElement(Ee.default,{bordered:!1,disabled:((Qn=Ve.detail)==null?void 0:Qn.shixun_status)===2,placeholder:"\u8BF7\u9009\u62E9\u7248\u672C\u5E93\u4E2D\u7684\u4EE3\u7801\u6587\u4EF6\u3002\u4F8B\uFF1A src/step1/HelloWorld.java"})),kt.createElement(xe.default.Item,{initialValue:1,name:"difficulty",label:"\u96BE\u5EA6\u7CFB\u6570:",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u5EA6\u7CFB\u6570"}]},kt.createElement(pe.ZP.Group,{disabled:((wi=Ve.detail)==null?void 0:wi.shixun_status)===2},kt.createElement(pe.ZP,{value:1},"\u7B80\u5355"),kt.createElement(pe.ZP,{style:{marginLeft:70},value:2},"\u4E2D\u7B49"),kt.createElement(pe.ZP,{style:{marginLeft:70},value:3},"\u56F0\u96BE"))),kt.createElement(xe.default.Item,{name:"challenge_tag",label:kt.createElement("div",null,"\u6280\u80FD\u6807\u7B7E ",kt.createElement("span",{className:"pl20 font12 c-light-black"},"\u5B66\u5458\u7B54\u9898\u6B63\u786E\u5C06\u83B7\u5F97\u6280\u80FD\uFF0C\u5426\u5219\u4E0D\u80FD\u83B7\u5F97\u6280\u80FD\uFF08\u56DE\u8F66\u6DFB\u52A0\u6807\u7B7E\uFF09")),rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6280\u80FD\u6807\u7B7E"}]},kt.createElement(Fe,{placeholder:"\u6DFB\u52A0\u6807\u7B7E",style:{width:"260px"},InputRight:kt.createElement("span",{className:"ml5"},"(\u56DE\u8F66\u6DFB\u52A0\u6807\u7B7E)")})),kt.createElement(qt.Z,{className:"customItemSelect"},kt.createElement(Ce.Z,null,kt.createElement(xe.default.Item,{name:"score",initialValue:100,label:"\u5956\u52B1\u91D1\u5E01:",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5956\u52B1\u7ECF\u9A8C\u503C"}]},kt.createElement(le.default,{disabled:((Ci=Ve.detail)==null?void 0:Ci.shixun_status)===2,bordered:!1,getPopupContainer:Gn=>Gn.parentNode,style:{width:260}},Ct==null?void 0:Ct.map((Gn,Ri)=>kt.createElement(le.default.Option,{key:Ri,value:Gn},Gn))))),kt.createElement(Ce.Z,{flex:1},kt.createElement("div",{style:{marginTop:88},className:"font12 c-light-black ml10"}," \u5B66\u5458\u6B63\u786E\u7B54\u9898\u65F6\u83B7\u5F97\u91D1\u5E01\uFF0C\u5E76\u4E14\u83B7\u5F97\u7B49\u91CF\u7684\u7ECF\u9A8C\u503C\u3002\u5982\uFF1A+100\u91D1\u5E01\u3001+100\u7ECF\u9A8C\u503C"))))),kt.createElement(nt.t,{key:2,onOk:()=>Nn.submit(),className:"customFixedButton",onCancel:No}),kt.createElement(vn.Z,{visible:pr,identifier:an==null?void 0:an.id,challenge_id:an==null?void 0:an.challengesId,onCancle:()=>{Ho(!1)},onOK:Gn=>wn(void 0,null,function*(){Nn.setFieldValue("task_pass",Gn),xn.task_pass=Gn,Ot(xn),yield Nn.submit()})}),kt.createElement(gt.Z,{loading:nn}))};var te=(0,ue.connect)(({shixunsDetail:Ve,newCourse:fn,globalSetting:dn,practiceSetting:Sn})=>({shixunsDetail:Ve,newCourse:fn,globalSetting:dn,practiceSetting:Sn}))(kn)},18339:function(Ye,pn,Yt){"use strict";Yt.d(pn,{Z:function(){return ge}});var kt=Yt(59301),ue=Yt(43418),xe=Yt(89070);const Te=({activeIndex:Ee,isEdit:qt=!0,dispatch:Ce,practiceSetting:fe})=>{const pe=(0,xe.useParams)(),{id:le,challengesId:Be}=pe,je=(0,kt.useMemo)(()=>[{name:"\u672C\u5173\u4EFB\u52A1",url:`/shixuns/${le}/edit/${Be}/editcheckpoint`},{name:"\u8BC4\u6D4B\u8BBE\u7F6E",url:`/shixuns/${le}/edit/${Be}/tab=2`},{name:"\u53C2\u8003\u7B54\u6848",url:`/shixuns/${le}/edit/${Be}/tab=3`},{name:"\u5173\u5361\u6392\u884C\u699C",url:`/shixuns/${le}/edit/${Be}/tab=4`}],[le,Be]),Nt=et=>{var nt;const gt=()=>{xe.history.push(et),Ce({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};(nt=fe==null?void 0:fe.sideBar)!=null&&nt.confirmLeave?ue.default.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:()=>{gt()}}):gt()};return kt.createElement("ul",{className:"challenge-nav"},qt?je.map((et,nt)=>Ee===nt?kt.createElement("li",{key:et.url}," ",kt.createElement("a",{className:"active"},et.name)," "):kt.createElement("li",{key:et.url}," ",kt.createElement("a",{onClick:()=>Nt(et.url)},et.name)," ")):kt.createElement("li",{key:je[0].url}," ",kt.createElement("a",{className:"active"},je[0].name)," "))};var ge=(0,xe.connect)(({globalSetting:Ee,practiceSetting:qt})=>({globalSetting:Ee,practiceSetting:qt}))(Te)},25600:function(Ye,pn,Yt){"use strict";Yt.d(pn,{Z:function(){return ge}});var kt=Yt(59301),ue=Yt(71418),xe={loading:"loading___lueiN"},ge=({loading:Ee})=>Ee?kt.createElement("div",{className:xe.loading},kt.createElement(ue.Z,null)):kt.createElement(kt.Fragment,null)},82238:function(Ye,pn,Yt){"use strict";var kt=Yt(59301),ue=Yt(43418),xe=Yt(1710),Te=Yt(99064),ge=Yt(8797),Ee=Yt(61186),qt=Yt.n(Ee),Ce=Yt(12290),fe=Object.defineProperty,pe=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,je=(gt,lt,pt)=>lt in gt?fe(gt,lt,{enumerable:!0,configurable:!0,writable:!0,value:pt}):gt[lt]=pt,Nt=(gt,lt)=>{for(var pt in lt||(lt={}))le.call(lt,pt)&&je(gt,pt,lt[pt]);if(pe)for(var pt of pe(lt))Be.call(lt,pt)&&je(gt,pt,lt[pt]);return gt},et=(gt,lt,pt)=>new Promise((vt,Lt)=>{var Ft=_t=>{try{Kt(pt.next(_t))}catch(ne){Lt(ne)}},Wt=_t=>{try{Kt(pt.throw(_t))}catch(ne){Lt(ne)}},Kt=_t=>_t.done?vt(_t.value):Promise.resolve(_t.value).then(Ft,Wt);Kt((pt=pt.apply(gt,lt)).next())});const nt=({visible:gt,identifier:lt,challenge_id:pt,onCancle:vt,onOK:Lt})=>{const[Ft,Wt]=(0,kt.useState)(0),[Kt,_t]=(0,kt.useState)([]),[ne,$t]=(0,kt.useState)(!1),[ve,re]=(0,kt.useState)({page:1,limit:10}),Oe=()=>et(void 0,null,function*(){var me,Fe;$t(!0);const Pn=yield(0,Te.ZP)(`/api/shixuns/${lt}/challenges/${pt}/task_pass_histories.json`,{method:"get",params:Nt({},ve)});(Pn==null?void 0:Pn.status)===0&&(Wt((me=Pn==null?void 0:Pn.data)==null?void 0:me.size),_t(((Fe=Pn==null?void 0:Pn.data)==null?void 0:Fe.list)||[])),$t(!1)});return(0,kt.useEffect)(()=>{gt&&Oe()},[gt]),kt.createElement(ue.default,{centered:!0,destroyOnClose:!0,open:gt,title:"\u7248\u672C\u7BA1\u7406",footer:null,width:620,onCancel:()=>{ve.page=1,ve.limit=10,re(Nt({},ve)),vt()}},kt.createElement(xe.default,{scroll:{y:47*10},loading:ne,dataSource:Kt,locale:{emptyText:kt.createElement(ge.Z,null)},columns:[{title:"\u7248\u672C\u4FDD\u5B58\u65F6\u95F4",dataIndex:"updated_at",ellipsis:!0,render:(me,Fe,Pn)=>qt()(me).format("YYYY-MM-DD hh:mm:ss")},{title:"\u4FDD\u5B58\u4EBA",dataIndex:"user_name",width:110,ellipsis:!0,render:me=>me},{title:"\u64CD\u4F5C",dataIndex:"task_pass",align:"right",render(me,Fe,Pn){return kt.createElement("div",null,kt.createElement("a",{onClick:()=>{ue.default.confirm({icon:null,width:800,centered:!0,closable:!0,title:"\u4EFB\u52A1\u8981\u6C42\u8BE6\u60C5",content:kt.createElement("div",{className:"mb10"},kt.createElement(Ce.Z,{key:pt||"3",watch:!0,defaultValue:Fe==null?void 0:Fe.task_pass})),footer:null})}},"\u67E5\u770B"),kt.createElement("a",{onClick:()=>et(this,null,function*(){ue.default.confirm({icon:null,width:500,centered:!0,closable:!0,title:"\u7248\u672C\u5207\u6362\u786E\u8BA4",content:kt.createElement("div",null,kt.createElement("div",null,"\u8BF7\u786E\u8BA4\u662F\u5426\u5C06\u4EFB\u52A1\u8981\u6C42\u5185\u5BB9\u5207\u6362\u81F3 ",qt()(Fe==null?void 0:Fe.updated_at).format("YYYY-MM-DD hh:mm:ss")," \u7248\u672C\uFF1F"),kt.createElement("div",null,"\u7248\u672C\u5207\u6362\u4F1A\u5C06\u5F53\u524D\u4EFB\u52A1\u8981\u6C42\u5185\u5BB9\u5B8C\u5168\u8986\u76D6\uFF0C\u5EFA\u8BAE\u5C06\u6700\u65B0\u4EFB\u52A1\u8981\u6C42\u5185\u5BB9\u4FDD\u5B58\u540E\uFF0C\u518D\u8FDB\u884C\u5207\u6362\u3002")),okText:"\u786E\u8BA4\u5207\u6362",cancelText:"\u53D6\u6D88",onOk:()=>et(this,null,function*(){yield Lt(Fe==null?void 0:Fe.task_pass),vt()})})}),className:"ml20"},"\u5207\u6362\u81F3\u8BE5\u7248\u672C"))}}],onChange:me=>{ve.page=me==null?void 0:me.current,ve.limit=me==null?void 0:me.pageSize,Oe(),re(Nt({},ve))},pagination:{pageSize:ve.limit,total:Ft,current:ve.page,showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!0,showTotal:me=>kt.createElement("span",{className:"mr10"},"\u5171",kt.createElement("span",{className:"c-orange"},me),"\u6761\u6570\u636E")}}))};pn.Z=nt},16349:function(Ye,pn,Yt){"use strict";Yt.d(pn,{S:function(){return Ee},m:function(){return qt}});var kt=Yt(955),ue=Yt(8591),xe=Yt(43418),Te=Yt(59301),ge=(Ce,fe,pe)=>new Promise((le,Be)=>{var je=nt=>{try{et(pe.next(nt))}catch(gt){Be(gt)}},Nt=nt=>{try{et(pe.throw(nt))}catch(gt){Be(gt)}},et=nt=>nt.done?le(nt.value):Promise.resolve(nt.value).then(je,Nt);et((pe=pe.apply(Ce,fe)).next())});const Ee=Ce=>{let fe=document.createElement("textarea");return fe.value=Ce,fe.value},qt=(Ce,fe,pe,le,Be)=>ge(void 0,null,function*(){var je,Nt;const et=yield Ce({type:"shixunsDetail/saveCopyForExercise",payload:{id:pe,save_type:le}});le===1?((et==null?void 0:et.status)==0&&ue.ZP.success("\u4FDD\u5B58\u6210\u529F"),(je=et==null?void 0:et.data)!=null&&je.exists_same_shixun_name?Ce({type:"classroomList/setActionTabs",payload:{key:"\u91CD\u540D\u4FEE\u6539",name:(Nt=et==null?void 0:et.data)==null?void 0:Nt.shixun_name}}):Ce({type:"classroomList/setActionTabs",payload:{}})):(Ce({type:"classroomList/setActionTabs",payload:{}}),(et==null?void 0:et.status)===0&&xe.default.info({title:"\u63D0\u793A",width:460,icon:null,centered:!0,content:Te.createElement("div",null,Te.createElement("div",null,"\u5B9E\u8BAD\u540C\u6B65\u4FEE\u6539\u5B8C\u6210\uFF0C\u8BF7\u9A8C\u8BC1\u5B9E\u8BAD\u662F\u5426\u53EF\u4EE5\u6B63\u5E38\u4F7F\u7528\u3002")),okText:"\u524D\u5F80\u539F\u5B9E\u8BAD",onOk:()=>{var nt,gt;(0,kt.xg)(`/shixuns/${(gt=(nt=fe==null?void 0:fe.detail)==null?void 0:nt.fork_from)==null?void 0:gt.fork_identifier}/challenges`)}}))})},24768:function(Ye,pn,Yt){"use strict";Yt.d(pn,{AL:function(){return Lt},Iy:function(){return le},Qv:function(){return Nt},ez:function(){return vt},jb:function(){return Be}});var kt=Yt(32834),ue=Yt.n(kt),xe=Yt(11690),Te=Yt.n(xe);let ge=1;function Ee(ne,$t){const ve=ne.match(/^(\s+)(?:```)/);if(ve===null)return $t;const re=ve[1];return $t.split(` `).map(Oe=>{const me=Oe.match(/^\s+/);if(me===null)return Oe;const[Fe]=me;return Fe.length>=re.length?Oe.slice(re.length):Oe}).join(` -`)}let qt=[],Ce=["
              "];const fe=new(ue()).Renderer,pe=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function le(){qt.length=0,Ce=["
                "]}const Be={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function je(ne,$t,ve,re){if($t>=ne.length||ne[$t].level<=ve)return $t;var Oe=ne[$t];re.push("
              • "+Oe.text+""),$t++;var me=[];return $t=je(ne,$t,Oe.level,me),me.length>0&&(re.push("
                  "),me.forEach(function(Fe){re.push(Fe)}),re.push("
                ")),re.push("
              • "),$t=je(ne,$t,ve,re),$t}function Nt(){return je(qt,0,0,Ce),Ce.push("
              "),Ce.join("")}const et={heading(ne){const $t=pe.exec(ne);if(ge+=1,$t)return{type:"heading",raw:$t[0],depth:$t[1].length,text:$t[2]}},fences(ne){const $t=this.rules.block.fences.exec(ne);if($t){const ve=$t[0];let re=Ae(ve,$t[3]||"");const Oe=$t[2]?$t[2].trim():$t[2];if(["latex","katex","math"].indexOf(Oe)>=0){const me=lt(),Fe=re;re=me,pt[me]={type:"block",expression:Fe}}return{type:"code",raw:ve,lang:Oe,text:re}}}},nt=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let gt=0;const lt=()=>`__special_katext_id_${gt++}__`;let pt={};function vt(){return pt}function Lt(){gt=0,pt={}}function Ft(ne){return ne=ne.replace(nt,($t,ve)=>{const re=lt();return pt[re]={type:"inline",expression:ve},re}),ne}const Wt=fe.listitem;fe.listitem=function(ne){return Wt(Ft(ne))};const Kt=fe.paragraph;fe.paragraph=function(ne){return Kt(Ft(ne))};const _t=fe.tablecell;fe.tablecell=function(ne,$t){return _t(Ft(ne),$t)},fe.code=function(ne,$t,ve){const re=($t||"").match(/\S*/)[0];return re?["latex","katex","math"].indexOf(re)>=0?`

              ${ne}

              `:`
              ${ve?ne:(0,xe.escape)(ne,!0)}
              -`:'
              '+(ve?ne:(0,xe.escape)(ne,!0))+"
              "},fe.heading=function(ne,$t,ve){let re=this.options.headerPrefix+ve.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return qt.push({anchor:re,level:$t,text:ne}),"'+ne+""},ue().setOptions({silent:!0,gfm:!0,pedantic:!1}),ue().use({tokenizer:et,renderer:fe}),pn.ZP=ue()},77578:function(Ye,pn,Yt){"use strict";Yt.d(pn,{Z:function(){return kt}});const kt=ue=>ue?typeof ue=="function"?ue():ue:null},49127:function(Ye,pn,Yt){"use strict";Yt.d(pn,{Z:function(){return In}});var kt=Yt(92310),ue=Yt.n(kt),xe=Yt(77900),Te=Yt(59301),ge=Yt(36785),Ae=Yt(92343),qt=Yt(36355),Ce=Yt(93083),fe=Yt(17313),pe=Yt(45157),le=Yt(37613),Be=Yt(83116);const je=new Ce.Keyframes("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),Nt=new Ce.Keyframes("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),et=new Ce.Keyframes("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),nt=new Ce.Keyframes("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),gt=new Ce.Keyframes("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),lt=new Ce.Keyframes("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),pt=Zt=>{const{componentCls:Gt,iconCls:He,antCls:un,badgeShadowSize:ln,motionDurationSlow:ce,textFontSize:Ue,textFontSizeSM:on,statusSize:wn,dotSize:sn,textFontWeight:kn,indicatorHeight:te,indicatorHeightSM:Ve,marginXS:fn}=Zt,dn=`${un}-scroll-number`,Sn=(0,pe.Z)(Zt,(Vn,vi)=>{let{darkColor:Qn}=vi;return{[`&${Gt} ${Gt}-color-${Vn}`]:{background:Qn,[`&:not(${Gt}-count)`]:{color:Qn}}}});return{[Gt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,fe.Wf)(Zt)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${Gt}-count`]:{zIndex:Zt.indicatorZIndex,minWidth:te,height:te,color:Zt.badgeTextColor,fontWeight:kn,fontSize:Ue,lineHeight:`${te}px`,whiteSpace:"nowrap",textAlign:"center",background:Zt.badgeColor,borderRadius:te/2,boxShadow:`0 0 0 ${ln}px ${Zt.badgeShadowColor}`,transition:`background ${Zt.motionDurationMid}`,a:{color:Zt.badgeTextColor},"a:hover":{color:Zt.badgeTextColor},"a:hover &":{background:Zt.badgeColorHover}},[`${Gt}-count-sm`]:{minWidth:Ve,height:Ve,fontSize:on,lineHeight:`${Ve}px`,borderRadius:Ve/2},[`${Gt}-multiple-words`]:{padding:`0 ${Zt.paddingXS}px`,bdi:{unicodeBidi:"plaintext"}},[`${Gt}-dot`]:{zIndex:Zt.indicatorZIndex,width:sn,minWidth:sn,height:sn,background:Zt.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${ln}px ${Zt.badgeShadowColor}`},[`${Gt}-dot${dn}`]:{transition:`background ${ce}`},[`${Gt}-count, ${Gt}-dot, ${dn}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${He}-spin`]:{animationName:lt,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${Gt}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${Gt}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:wn,height:wn,verticalAlign:"middle",borderRadius:"50%"},[`${Gt}-status-success`]:{backgroundColor:Zt.colorSuccess},[`${Gt}-status-processing`]:{overflow:"visible",color:Zt.colorPrimary,backgroundColor:Zt.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:ln,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:je,animationDuration:Zt.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${Gt}-status-default`]:{backgroundColor:Zt.colorTextPlaceholder},[`${Gt}-status-error`]:{backgroundColor:Zt.colorError},[`${Gt}-status-warning`]:{backgroundColor:Zt.colorWarning},[`${Gt}-status-text`]:{marginInlineStart:fn,color:Zt.colorText,fontSize:Zt.fontSize}}}),Sn),{[`${Gt}-zoom-appear, ${Gt}-zoom-enter`]:{animationName:Nt,animationDuration:Zt.motionDurationSlow,animationTimingFunction:Zt.motionEaseOutBack,animationFillMode:"both"},[`${Gt}-zoom-leave`]:{animationName:et,animationDuration:Zt.motionDurationSlow,animationTimingFunction:Zt.motionEaseOutBack,animationFillMode:"both"},[`&${Gt}-not-a-wrapper`]:{[`${Gt}-zoom-appear, ${Gt}-zoom-enter`]:{animationName:nt,animationDuration:Zt.motionDurationSlow,animationTimingFunction:Zt.motionEaseOutBack},[`${Gt}-zoom-leave`]:{animationName:gt,animationDuration:Zt.motionDurationSlow,animationTimingFunction:Zt.motionEaseOutBack},[`&:not(${Gt}-status)`]:{verticalAlign:"middle"},[`${dn}-custom-component, ${Gt}-count`]:{transform:"none"},[`${dn}-custom-component, ${dn}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${dn}`]:{overflow:"hidden",[`${dn}-only`]:{position:"relative",display:"inline-block",height:te,transition:`all ${Zt.motionDurationSlow} ${Zt.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${dn}-only-unit`]:{height:te,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${dn}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${Gt}-count, ${Gt}-dot, ${dn}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},vt=Zt=>{const{fontSize:Gt,lineHeight:He,lineWidth:un,marginXS:ln,colorBorderBg:ce}=Zt,Ue=Math.round(Gt*He),on=un,wn=Zt.colorBgContainer,sn=Zt.colorError,kn=Zt.colorErrorHover;return(0,le.TS)(Zt,{badgeFontHeight:Ue,badgeShadowSize:on,badgeTextColor:wn,badgeColor:sn,badgeColorHover:kn,badgeShadowColor:ce,badgeProcessingDuration:"1.2s",badgeRibbonOffset:ln,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},Lt=Zt=>{const{fontSize:Gt,lineHeight:He,fontSizeSM:un,lineWidth:ln}=Zt;return{indicatorZIndex:"auto",indicatorHeight:Math.round(Gt*He)-2*ln,indicatorHeightSM:Gt,dotSize:un/2,textFontSize:un,textFontSizeSM:un,textFontWeight:"normal",statusSize:un/2}};var Ft=(0,Be.Z)("Badge",Zt=>{const Gt=vt(Zt);return[pt(Gt)]},Lt);const Wt=Zt=>{const{antCls:Gt,badgeFontHeight:He,marginXS:un,badgeRibbonOffset:ln}=Zt,ce=`${Gt}-ribbon`,Ue=`${Gt}-ribbon-wrapper`,on=(0,pe.Z)(Zt,(wn,sn)=>{let{darkColor:kn}=sn;return{[`&${ce}-color-${wn}`]:{background:kn,color:kn}}});return{[`${Ue}`]:{position:"relative"},[`${ce}`]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,fe.Wf)(Zt)),{position:"absolute",top:un,padding:`0 ${Zt.paddingXS}px`,color:Zt.colorPrimary,lineHeight:`${He}px`,whiteSpace:"nowrap",backgroundColor:Zt.colorPrimary,borderRadius:Zt.borderRadiusSM,[`${ce}-text`]:{color:Zt.colorTextLightSolid},[`${ce}-corner`]:{position:"absolute",top:"100%",width:ln,height:ln,color:"currentcolor",border:`${ln/2}px solid`,transform:Zt.badgeRibbonCornerTransform,transformOrigin:"top",filter:Zt.badgeRibbonCornerFilter}}),on),{[`&${ce}-placement-end`]:{insetInlineEnd:-ln,borderEndEndRadius:0,[`${ce}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${ce}-placement-start`]:{insetInlineStart:-ln,borderEndStartRadius:0,[`${ce}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}};var Kt=(0,Be.Z)(["Badge","Ribbon"],Zt=>{const Gt=vt(Zt);return[Wt(Gt)]},Lt),ne=Zt=>{const{className:Gt,prefixCls:He,style:un,color:ln,children:ce,text:Ue,placement:on="end",rootClassName:wn}=Zt,{getPrefixCls:sn,direction:kn}=Te.useContext(qt.E_),te=sn("ribbon",He),Ve=(0,ge.o2)(ln,!1),fn=ue()(te,`${te}-placement-${on}`,{[`${te}-rtl`]:kn==="rtl",[`${te}-color-${ln}`]:Ve},Gt),[dn,Sn]=Kt(te),Vn={},vi={};return ln&&!Ve&&(Vn.background=ln,vi.color=ln),dn(Te.createElement("div",{className:ue()(`${te}-wrapper`,wn,Sn)},ce,Te.createElement("div",{className:ue()(fn,Sn),style:Object.assign(Object.assign({},Vn),un)},Te.createElement("span",{className:`${te}-text`},Ue),Te.createElement("div",{className:`${te}-corner`,style:vi}))))};function $t(Zt){let{prefixCls:Gt,value:He,current:un,offset:ln=0}=Zt,ce;return ln&&(ce={position:"absolute",top:`${ln}00%`,left:0}),Te.createElement("span",{style:ce,className:ue()(`${Gt}-only-unit`,{current:un})},He)}function ve(Zt,Gt,He){let un=Zt,ln=0;for(;(un+10)%10!==Gt;)un+=He,ln+=He;return ln}function re(Zt){const{prefixCls:Gt,count:He,value:un}=Zt,ln=Number(un),ce=Math.abs(He),[Ue,on]=Te.useState(ln),[wn,sn]=Te.useState(ce),kn=()=>{on(ln),sn(ce)};Te.useEffect(()=>{const fn=setTimeout(()=>{kn()},1e3);return()=>{clearTimeout(fn)}},[ln]);let te,Ve;if(Ue===ln||Number.isNaN(ln)||Number.isNaN(Ue))te=[Te.createElement($t,Object.assign({},Zt,{key:ln,current:!0}))],Ve={transition:"none"};else{te=[];const fn=ln+10,dn=[];for(let vi=ln;vi<=fn;vi+=1)dn.push(vi);const Sn=dn.findIndex(vi=>vi%10===Ue);te=dn.map((vi,Qn)=>{const wi=vi%10;return Te.createElement($t,Object.assign({},Zt,{key:vi,value:wi,offset:Qn-Sn,current:Qn===Sn}))});const Vn=wn{const{prefixCls:He,count:un,className:ln,motionClassName:ce,style:Ue,title:on,show:wn,component:sn="sup",children:kn}=Zt,te=Oe(Zt,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:Ve}=Te.useContext(qt.E_),fn=Ve("scroll-number",He),dn=Object.assign(Object.assign({},te),{"data-show":wn,style:Ue,className:ue()(fn,ln,ce),title:on});let Sn=un;if(un&&Number(un)%1===0){const Vn=String(un).split("");Sn=Te.createElement("bdi",null,Vn.map((vi,Qn)=>Te.createElement(re,{prefixCls:fn,count:Number(un),value:vi,key:Vn.length-Qn})))}return Ue&&Ue.borderColor&&(dn.style=Object.assign(Object.assign({},Ue),{boxShadow:`0 0 0 1px ${Ue.borderColor} inset`})),kn?(0,Ae.Tm)(kn,Vn=>({className:ue()(`${fn}-custom-component`,Vn==null?void 0:Vn.className,ce)})):Te.createElement(sn,Object.assign({},dn,{ref:Gt}),Sn)}),Pn=function(Zt,Gt){var He={};for(var un in Zt)Object.prototype.hasOwnProperty.call(Zt,un)&&Gt.indexOf(un)<0&&(He[un]=Zt[un]);if(Zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ln=0,un=Object.getOwnPropertySymbols(Zt);ln{var He,un,ln,ce,Ue;const{prefixCls:on,scrollNumberPrefixCls:wn,children:sn,status:kn,text:te,color:Ve,count:fn=null,overflowCount:dn=99,dot:Sn=!1,size:Vn="default",title:vi,offset:Qn,style:wi,className:Ci,rootClassName:an,classNames:Nn,styles:xn,showZero:Ot=!1}=Zt,Ct=Pn(Zt,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:xt,direction:Bt,badge:Rt}=Te.useContext(qt.E_),At=xt("badge",on),[se,_e]=Ft(At),nn=fn>dn?`${dn}+`:fn,tn=nn==="0"||nn===0,Ln=fn===null||tn&&!Ot,ni=(kn!=null||Ve!=null)&&Ln,di=Sn&&!tn,si=di?"":nn,Mi=(0,Te.useMemo)(()=>(si==null||si===""||tn&&!Ot)&&!di,[si,tn,Ot,di]),qi=(0,Te.useRef)(fn);Mi||(qi.current=fn);const oo=qi.current,pr=(0,Te.useRef)(si);Mi||(pr.current=si);const Ho=pr.current,mr=(0,Te.useRef)(di);Mi||(mr.current=di);const so=(0,Te.useMemo)(()=>{if(!Qn)return Object.assign(Object.assign({},Rt==null?void 0:Rt.style),wi);const Gn={marginTop:Qn[1]};return Bt==="rtl"?Gn.left=parseInt(Qn[0],10):Gn.right=-parseInt(Qn[0],10),Object.assign(Object.assign(Object.assign({},Gn),Rt==null?void 0:Rt.style),wi)},[Bt,Qn,wi,Rt==null?void 0:Rt.style]),xo=vi!=null?vi:typeof oo=="string"||typeof oo=="number"?oo:void 0,Yr=Mi||!te?null:Te.createElement("span",{className:`${At}-status-text`},te),Cr=!oo||typeof oo!="object"?void 0:(0,Ae.Tm)(oo,Gn=>({style:Object.assign(Object.assign({},so),Gn.style)})),No=(0,ge.o2)(Ve,!1),yi=ue()(Nn==null?void 0:Nn.indicator,(He=Rt==null?void 0:Rt.classNames)===null||He===void 0?void 0:He.indicator,{[`${At}-status-dot`]:ni,[`${At}-status-${kn}`]:!!kn,[`${At}-color-${Ve}`]:No}),wt={};Ve&&!No&&(wt.color=Ve,wt.background=Ve);const As=ue()(At,{[`${At}-status`]:ni,[`${At}-not-a-wrapper`]:!sn,[`${At}-rtl`]:Bt==="rtl"},Ci,an,Rt==null?void 0:Rt.className,(un=Rt==null?void 0:Rt.classNames)===null||un===void 0?void 0:un.root,Nn==null?void 0:Nn.root,_e);if(!sn&&ni){const Gn=so.color;return se(Te.createElement("span",Object.assign({},Ct,{className:As,style:Object.assign(Object.assign(Object.assign({},xn==null?void 0:xn.root),(ln=Rt==null?void 0:Rt.styles)===null||ln===void 0?void 0:ln.root),so)}),Te.createElement("span",{className:yi,style:Object.assign(Object.assign(Object.assign({},xn==null?void 0:xn.indicator),(ce=Rt==null?void 0:Rt.styles)===null||ce===void 0?void 0:ce.indicator),wt)}),te&&Te.createElement("span",{style:{color:Gn},className:`${At}-status-text`},te)))}return se(Te.createElement("span",Object.assign({ref:Gt},Ct,{className:As,style:Object.assign(Object.assign({},(Ue=Rt==null?void 0:Rt.styles)===null||Ue===void 0?void 0:Ue.root),xn==null?void 0:xn.root)}),sn,Te.createElement(xe.default,{visible:!Mi,motionName:`${At}-zoom`,motionAppear:!1,motionDeadline:1e3},Gn=>{let{className:Ri,ref:Io}=Gn;var Jo,Or;const To=xt("scroll-number",wn),jr=mr.current,De=ue()(Nn==null?void 0:Nn.indicator,(Jo=Rt==null?void 0:Rt.classNames)===null||Jo===void 0?void 0:Jo.indicator,{[`${At}-dot`]:jr,[`${At}-count`]:!jr,[`${At}-count-sm`]:Vn==="small",[`${At}-multiple-words`]:!jr&&Ho&&Ho.toString().length>1,[`${At}-status-${kn}`]:!!kn,[`${At}-color-${Ve}`]:No});let ye=Object.assign(Object.assign(Object.assign({},xn==null?void 0:xn.indicator),(Or=Rt==null?void 0:Rt.styles)===null||Or===void 0?void 0:Or.indicator),so);return Ve&&!No&&(ye=ye||{},ye.background=Ve),Te.createElement(Fe,{prefixCls:To,show:!Mi,motionClassName:Ri,className:De,count:Ho,title:xo,style:ye,key:"scrollNumber",ref:Io},Cr)}),Yr))},Mn=Te.forwardRef(vn);Mn.Ribbon=ne;var In=Mn},14478:function(Ye,pn,Yt){"use strict";Yt.d(pn,{Z:function(){return $t}});var kt=Yt(96512),ue=Yt(92310),xe=Yt.n(ue),Te=Yt(10228),ge=Yt(18929),Ae=Yt(2738),qt=Yt(59301),Ce=Yt(92343),fe=Yt(36355),pe=Yt(60324),le=Yt(92806),Be=Yt(77578),je=Yt(3113),Nt=Yt(67797),et=Yt(9763),nt=Yt(31724),gt=Yt(39722),lt=Yt(83116);const pt=ve=>{const{componentCls:re,iconCls:Oe,antCls:me,zIndexPopup:Fe,colorText:Pn,colorWarning:vn,marginXXS:Mn,marginXS:In,fontSize:Zt,fontWeightStrong:Gt,colorTextHeading:He}=ve;return{[re]:{zIndex:Fe,[`&${me}-popover`]:{fontSize:Zt},[`${re}-message`]:{marginBottom:In,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${re}-message-icon ${Oe}`]:{color:vn,fontSize:Zt,lineHeight:1,marginInlineEnd:In},[`${re}-title`]:{fontWeight:Gt,color:He,"&:only-child":{fontWeight:"normal"}},[`${re}-description`]:{marginTop:Mn,color:Pn}},[`${re}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:In}}}}};var vt=(0,lt.Z)("Popconfirm",ve=>pt(ve),ve=>{const{zIndexPopupBase:re}=ve;return{zIndexPopup:re+60}},{resetStyle:!1}),Lt=function(ve,re){var Oe={};for(var me in ve)Object.prototype.hasOwnProperty.call(ve,me)&&re.indexOf(me)<0&&(Oe[me]=ve[me]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,me=Object.getOwnPropertySymbols(ve);Fe{const{prefixCls:re,okButtonProps:Oe,cancelButtonProps:me,title:Fe,description:Pn,cancelText:vn,okText:Mn,okType:In="primary",icon:Zt=qt.createElement(kt.Z,null),showCancel:Gt=!0,close:He,onConfirm:un,onCancel:ln,onPopupClick:ce}=ve,{getPrefixCls:Ue}=qt.useContext(fe.E_),[on]=(0,et.Z)("Popconfirm",nt.Z.Popconfirm),wn=(0,Be.Z)(Fe),sn=(0,Be.Z)(Pn);return qt.createElement("div",{className:`${re}-inner-content`,onClick:ce},qt.createElement("div",{className:`${re}-message`},Zt&&qt.createElement("span",{className:`${re}-message-icon`},Zt),qt.createElement("div",{className:`${re}-message-text`},wn&&qt.createElement("div",{className:xe()(`${re}-title`)},wn),sn&&qt.createElement("div",{className:`${re}-description`},sn))),qt.createElement("div",{className:`${re}-buttons`},Gt&&qt.createElement(je.ZP,Object.assign({onClick:ln,size:"small"},me),vn!=null?vn:on==null?void 0:on.cancelText),qt.createElement(le.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,Nt.n)(In)),Oe),actionFn:un,close:He,prefixCls:Ue("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},Mn!=null?Mn:on==null?void 0:on.okText)))};var Kt=ve=>{const{prefixCls:re,placement:Oe,className:me,style:Fe}=ve,Pn=Lt(ve,["prefixCls","placement","className","style"]),{getPrefixCls:vn}=qt.useContext(fe.E_),Mn=vn("popconfirm",re),[In]=vt(Mn);return In(qt.createElement(gt.ZP,{placement:Oe,className:xe()(Mn,me),style:Fe,content:qt.createElement(Ft,Object.assign({prefixCls:Mn},Pn))}))},_t=function(ve,re){var Oe={};for(var me in ve)Object.prototype.hasOwnProperty.call(ve,me)&&re.indexOf(me)<0&&(Oe[me]=ve[me]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,me=Object.getOwnPropertySymbols(ve);Fe{const{prefixCls:Oe,placement:me="top",trigger:Fe="click",okType:Pn="primary",icon:vn=qt.createElement(kt.Z,null),children:Mn,overlayClassName:In,onOpenChange:Zt,onVisibleChange:Gt}=ve,He=_t(ve,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:un}=qt.useContext(fe.E_),[ln,ce]=(0,ge.Z)(!1,{value:ve.open,defaultValue:ve.defaultOpen}),Ue=(Sn,Vn)=>{ce(Sn,!0),Gt==null||Gt(Sn),Zt==null||Zt(Sn,Vn)},on=Sn=>{Ue(!1,Sn)},wn=Sn=>{var Vn;return(Vn=ve.onConfirm)===null||Vn===void 0?void 0:Vn.call(void 0,Sn)},sn=Sn=>{var Vn;Ue(!1,Sn),(Vn=ve.onCancel)===null||Vn===void 0||Vn.call(void 0,Sn)},kn=Sn=>{Sn.keyCode===Te.Z.ESC&&ln&&Ue(!1,Sn)},te=Sn=>{const{disabled:Vn=!1}=ve;Vn||Ue(Sn)},Ve=un("popconfirm",Oe),fn=xe()(Ve,In),[dn]=vt(Ve);return dn(qt.createElement(pe.Z,Object.assign({},(0,Ae.Z)(He,["title"]),{trigger:Fe,placement:me,onOpenChange:te,open:ln,ref:re,overlayClassName:fn,content:qt.createElement(Ft,Object.assign({okType:Pn,icon:vn},ve,{prefixCls:Ve,close:on,onConfirm:wn,onCancel:sn})),"data-popover-inject":!0}),(0,Ce.Tm)(Mn,{onKeyDown:Sn=>{var Vn,vi;qt.isValidElement(Mn)&&((vi=Mn==null?void 0:(Vn=Mn.props).onKeyDown)===null||vi===void 0||vi.call(Vn,Sn)),kn(Sn)}})))});ne._InternalPanelDoNotUseOrYouWillBeFired=Kt;var $t=ne},39722:function(Ye,pn,Yt){"use strict";Yt.d(pn,{t5:function(){return pe}});var kt=Yt(92310),ue=Yt.n(kt),xe=Yt(55477),Te=Yt(59301),ge=Yt(36355),Ae=Yt(77578),qt=Yt(17356),Ce=function(Be,je){var Nt={};for(var et in Be)Object.prototype.hasOwnProperty.call(Be,et)&&je.indexOf(et)<0&&(Nt[et]=Be[et]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,et=Object.getOwnPropertySymbols(Be);nt{if(!(!je&&!Nt))return Te.createElement(Te.Fragment,null,je&&Te.createElement("div",{className:`${Be}-title`},(0,Ae.Z)(je)),Te.createElement("div",{className:`${Be}-inner-content`},(0,Ae.Z)(Nt)))},pe=Be=>{const{hashId:je,prefixCls:Nt,className:et,style:nt,placement:gt="top",title:lt,content:pt,children:vt}=Be;return Te.createElement("div",{className:ue()(je,Nt,`${Nt}-pure`,`${Nt}-placement-${gt}`,et),style:nt},Te.createElement("div",{className:`${Nt}-arrow`}),Te.createElement(xe.G,Object.assign({},Be,{className:je,prefixCls:Nt}),vt||fe(Nt,lt,pt)))},le=Be=>{const{prefixCls:je}=Be,Nt=Ce(Be,["prefixCls"]),{getPrefixCls:et}=Te.useContext(ge.E_),nt=et("popover",je),[gt,lt]=(0,qt.Z)(nt);return gt(Te.createElement(pe,Object.assign({},Nt,{prefixCls:nt,hashId:lt})))};pn.ZP=le},60324:function(Ye,pn,Yt){"use strict";var kt=Yt(92310),ue=Yt.n(kt),xe=Yt(59301),Te=Yt(77578),ge=Yt(62892),Ae=Yt(36355),qt=Yt(6848),Ce=Yt(39722),fe=Yt(17356),pe=function(je,Nt){var et={};for(var nt in je)Object.prototype.hasOwnProperty.call(je,nt)&&Nt.indexOf(nt)<0&&(et[nt]=je[nt]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,nt=Object.getOwnPropertySymbols(je);gt{let{title:Nt,content:et,prefixCls:nt}=je;return xe.createElement(xe.Fragment,null,Nt&&xe.createElement("div",{className:`${nt}-title`},(0,Te.Z)(Nt)),xe.createElement("div",{className:`${nt}-inner-content`},(0,Te.Z)(et)))},Be=xe.forwardRef((je,Nt)=>{const{prefixCls:et,title:nt,content:gt,overlayClassName:lt,placement:pt="top",trigger:vt="hover",mouseEnterDelay:Lt=.1,mouseLeaveDelay:Ft=.1,overlayStyle:Wt={}}=je,Kt=pe(je,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:_t}=xe.useContext(Ae.E_),ne=_t("popover",et),[$t,ve]=(0,fe.Z)(ne),re=_t(),Oe=ue()(lt,ve);return $t(xe.createElement(qt.Z,Object.assign({placement:pt,trigger:vt,mouseEnterDelay:Lt,mouseLeaveDelay:Ft,overlayStyle:Wt},Kt,{prefixCls:ne,overlayClassName:Oe,ref:Nt,overlay:nt||gt?xe.createElement(le,{prefixCls:ne,title:nt,content:gt}):null,transitionName:(0,ge.m)(re,"zoom-big",Kt.transitionName),"data-popover-inject":!0})))});Be._InternalPanelDoNotUseOrYouWillBeFired=Ce.ZP,pn.Z=Be},17356:function(Ye,pn,Yt){"use strict";var kt=Yt(17313),ue=Yt(29878),xe=Yt(19447),Te=Yt(33166),ge=Yt(83116),Ae=Yt(37613);const qt=pe=>{const{componentCls:le,popoverColor:Be,minWidth:je,fontWeightStrong:Nt,popoverPadding:et,boxShadowSecondary:nt,colorTextHeading:gt,borderRadiusLG:lt,zIndexPopup:pt,marginXS:vt,colorBgElevated:Lt,popoverBg:Ft}=pe;return[{[le]:Object.assign(Object.assign({},(0,kt.Wf)(pe)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:pt,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":Lt,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${le}-content`]:{position:"relative"},[`${le}-inner`]:{backgroundColor:Ft,backgroundClip:"padding-box",borderRadius:lt,boxShadow:nt,padding:et},[`${le}-title`]:{minWidth:je,marginBottom:vt,color:gt,fontWeight:Nt},[`${le}-inner-content`]:{color:Be}})},(0,xe.ZP)(pe,{colorBg:"var(--antd-arrow-background-color)"}),{[`${le}-pure`]:{position:"relative",maxWidth:"none",margin:pe.sizePopupArrow,display:"inline-block",[`${le}-content`]:{display:"inline-block"}}}]},Ce=pe=>{const{componentCls:le}=pe;return{[le]:Te.i.map(Be=>{const je=pe[`${Be}6`];return{[`&${le}-${Be}`]:{"--antd-arrow-background-color":je,[`${le}-inner`]:{backgroundColor:je},[`${le}-arrow`]:{background:"transparent"}}}})}},fe=pe=>{const{componentCls:le,lineWidth:Be,lineType:je,colorSplit:Nt,paddingSM:et,controlHeight:nt,fontSize:gt,lineHeight:lt,padding:pt}=pe,vt=nt-Math.round(gt*lt),Lt=vt/2,Ft=vt/2-Be,Wt=pt;return{[le]:{[`${le}-inner`]:{padding:0},[`${le}-title`]:{margin:0,padding:`${Lt}px ${Wt}px ${Ft}px`,borderBottom:`${Be}px ${je} ${Nt}`},[`${le}-inner-content`]:{padding:`${et}px ${Wt}px`}}}};pn.Z=(0,ge.Z)("Popover",pe=>{const{colorBgElevated:le,colorText:Be,wireframe:je}=pe,Nt=(0,Ae.TS)(pe,{popoverPadding:12,popoverBg:le,popoverColor:Be});return[qt(Nt),Ce(Nt),je&&fe(Nt),(0,ue._y)(Nt,"zoom-big")]},pe=>({width:177,minWidth:177,zIndexPopup:pe.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},78673:function(Ye,pn,Yt){"use strict";Yt.d(pn,{Z:function(){return Oe}});var kt=Yt(58617),ue=Yt(92310),xe=Yt.n(ue),Te=Yt(72308),ge=Yt(49618),Ae=Yt(52487),qt=Yt(74416),Ce=Yt(59301),fe=Yt(18929),pe=Yt(10228),le=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Be=Ce.forwardRef(function(me,Fe){var Pn,vn=me.prefixCls,Mn=vn===void 0?"rc-switch":vn,In=me.className,Zt=me.checked,Gt=me.defaultChecked,He=me.disabled,un=me.loadingIcon,ln=me.checkedChildren,ce=me.unCheckedChildren,Ue=me.onClick,on=me.onChange,wn=me.onKeyDown,sn=(0,qt.Z)(me,le),kn=(0,fe.Z)(!1,{value:Zt,defaultValue:Gt}),te=(0,Ae.Z)(kn,2),Ve=te[0],fn=te[1];function dn(Qn,wi){var Ci=Ve;return He||(Ci=Qn,fn(Ci),on==null||on(Ci,wi)),Ci}function Sn(Qn){Qn.which===pe.Z.LEFT?dn(!1,Qn):Qn.which===pe.Z.RIGHT&&dn(!0,Qn),wn==null||wn(Qn)}function Vn(Qn){var wi=dn(!Ve,Qn);Ue==null||Ue(wi,Qn)}var vi=xe()(Mn,In,(Pn={},(0,ge.Z)(Pn,"".concat(Mn,"-checked"),Ve),(0,ge.Z)(Pn,"".concat(Mn,"-disabled"),He),Pn));return Ce.createElement("button",(0,Te.Z)({},sn,{type:"button",role:"switch","aria-checked":Ve,disabled:He,className:vi,ref:Fe,onKeyDown:Sn,onClick:Vn}),un,Ce.createElement("span",{className:"".concat(Mn,"-inner")},Ce.createElement("span",{className:"".concat(Mn,"-inner-checked")},ln),Ce.createElement("span",{className:"".concat(Mn,"-inner-unchecked")},ce)))});Be.displayName="Switch";var je=Be,Nt=Yt(14088),et=Yt(36355),nt=Yt(1684),gt=Yt(19716),lt=Yt(64993),pt=Yt(17313),vt=Yt(83116),Lt=Yt(37613);const Ft=me=>{const{componentCls:Fe,trackHeightSM:Pn,trackPadding:vn,trackMinWidthSM:Mn,innerMinMarginSM:In,innerMaxMarginSM:Zt,handleSizeSM:Gt}=me,He=`${Fe}-inner`;return{[Fe]:{[`&${Fe}-small`]:{minWidth:Mn,height:Pn,lineHeight:`${Pn}px`,[`${Fe}-inner`]:{paddingInlineStart:Zt,paddingInlineEnd:In,[`${He}-checked`]:{marginInlineStart:`calc(-100% + ${Gt+vn*2}px - ${Zt*2}px)`,marginInlineEnd:`calc(100% - ${Gt+vn*2}px + ${Zt*2}px)`},[`${He}-unchecked`]:{marginTop:-Pn,marginInlineStart:0,marginInlineEnd:0}},[`${Fe}-handle`]:{width:Gt,height:Gt},[`${Fe}-loading-icon`]:{top:(Gt-me.switchLoadingIconSize)/2,fontSize:me.switchLoadingIconSize},[`&${Fe}-checked`]:{[`${Fe}-inner`]:{paddingInlineStart:In,paddingInlineEnd:Zt,[`${He}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${He}-unchecked`]:{marginInlineStart:`calc(100% - ${Gt+vn*2}px + ${Zt*2}px)`,marginInlineEnd:`calc(-100% + ${Gt+vn*2}px - ${Zt*2}px)`}},[`${Fe}-handle`]:{insetInlineStart:`calc(100% - ${Gt+vn}px)`}},[`&:not(${Fe}-disabled):active`]:{[`&:not(${Fe}-checked) ${He}`]:{[`${He}-unchecked`]:{marginInlineStart:me.marginXXS/2,marginInlineEnd:-me.marginXXS/2}},[`&${Fe}-checked ${He}`]:{[`${He}-checked`]:{marginInlineStart:-me.marginXXS/2,marginInlineEnd:me.marginXXS/2}}}}}}},Wt=me=>{const{componentCls:Fe,handleSize:Pn}=me;return{[Fe]:{[`${Fe}-loading-icon${me.iconCls}`]:{position:"relative",top:(Pn-me.fontSize)/2,color:me.switchLoadingIconColor,verticalAlign:"top"},[`&${Fe}-checked ${Fe}-loading-icon`]:{color:me.switchColor}}}},Kt=me=>{const{componentCls:Fe,motion:Pn,trackPadding:vn,handleBg:Mn,handleShadow:In,handleSize:Zt}=me,Gt=`${Fe}-handle`;return{[Fe]:{[Gt]:{position:"absolute",top:vn,insetInlineStart:vn,width:Zt,height:Zt,transition:`all ${me.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Mn,borderRadius:Zt/2,boxShadow:In,transition:`all ${me.switchDuration} ease-in-out`,content:'""'}},[`&${Fe}-checked ${Gt}`]:{insetInlineStart:`calc(100% - ${Zt+vn}px)`},[`&:not(${Fe}-disabled):active`]:Pn?{[`${Gt}::before`]:{insetInlineEnd:me.switchHandleActiveInset,insetInlineStart:0},[`&${Fe}-checked ${Gt}::before`]:{insetInlineEnd:0,insetInlineStart:me.switchHandleActiveInset}}:{}}}},_t=me=>{const{componentCls:Fe,trackHeight:Pn,trackPadding:vn,innerMinMargin:Mn,innerMaxMargin:In,handleSize:Zt}=me,Gt=`${Fe}-inner`;return{[Fe]:{[Gt]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:In,paddingInlineEnd:Mn,transition:`padding-inline-start ${me.switchDuration} ease-in-out, padding-inline-end ${me.switchDuration} ease-in-out`,[`${Gt}-checked, ${Gt}-unchecked`]:{display:"block",color:me.colorTextLightSolid,fontSize:me.fontSizeSM,transition:`margin-inline-start ${me.switchDuration} ease-in-out, margin-inline-end ${me.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Gt}-checked`]:{marginInlineStart:`calc(-100% + ${Zt+vn*2}px - ${In*2}px)`,marginInlineEnd:`calc(100% - ${Zt+vn*2}px + ${In*2}px)`},[`${Gt}-unchecked`]:{marginTop:-Pn,marginInlineStart:0,marginInlineEnd:0}},[`&${Fe}-checked ${Gt}`]:{paddingInlineStart:Mn,paddingInlineEnd:In,[`${Gt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Gt}-unchecked`]:{marginInlineStart:`calc(100% - ${Zt+vn*2}px + ${In*2}px)`,marginInlineEnd:`calc(-100% + ${Zt+vn*2}px - ${In*2}px)`}},[`&:not(${Fe}-disabled):active`]:{[`&:not(${Fe}-checked) ${Gt}`]:{[`${Gt}-unchecked`]:{marginInlineStart:vn*2,marginInlineEnd:-vn*2}},[`&${Fe}-checked ${Gt}`]:{[`${Gt}-checked`]:{marginInlineStart:-vn*2,marginInlineEnd:vn*2}}}}}},ne=me=>{const{componentCls:Fe,trackHeight:Pn,trackMinWidth:vn}=me;return{[Fe]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,pt.Wf)(me)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:vn,height:Pn,lineHeight:`${Pn}px`,verticalAlign:"middle",background:me.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${me.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Fe}-disabled)`]:{background:me.colorTextTertiary}}),(0,pt.Qy)(me)),{[`&${Fe}-checked`]:{background:me.switchColor,[`&:hover:not(${Fe}-disabled)`]:{background:me.colorPrimaryHover}},[`&${Fe}-loading, &${Fe}-disabled`]:{cursor:"not-allowed",opacity:me.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Fe}-rtl`]:{direction:"rtl"}})}};var $t=(0,vt.Z)("Switch",me=>{const Fe=(0,Lt.TS)(me,{switchDuration:me.motionDurationMid,switchColor:me.colorPrimary,switchDisabledOpacity:me.opacityLoading,switchLoadingIconSize:me.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${me.opacityLoading})`,switchHandleActiveInset:"-30%"});return[ne(Fe),_t(Fe),Kt(Fe),Wt(Fe),Ft(Fe)]},me=>{const{fontSize:Fe,lineHeight:Pn,controlHeight:vn,colorWhite:Mn}=me,In=Fe*Pn,Zt=vn/2,Gt=2,He=In-Gt*2,un=Zt-Gt*2;return{trackHeight:In,trackHeightSM:Zt,trackMinWidth:He*2+Gt*4,trackMinWidthSM:un*2+Gt*2,trackPadding:Gt,handleBg:Mn,handleSize:He,handleSizeSM:un,handleShadow:`0 2px 4px 0 ${new lt.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:He/2,innerMaxMargin:He+Gt+Gt*2,innerMinMarginSM:un/2,innerMaxMarginSM:un+Gt+Gt*2}}),ve=function(me,Fe){var Pn={};for(var vn in me)Object.prototype.hasOwnProperty.call(me,vn)&&Fe.indexOf(vn)<0&&(Pn[vn]=me[vn]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mn=0,vn=Object.getOwnPropertySymbols(me);Mn{const{prefixCls:Pn,size:vn,disabled:Mn,loading:In,className:Zt,rootClassName:Gt,style:He}=me,un=ve(me,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:ln,direction:ce,switch:Ue}=Ce.useContext(et.E_),on=Ce.useContext(nt.Z),wn=(Mn!=null?Mn:on)||In,sn=ln("switch",Pn),kn=Ce.createElement("div",{className:`${sn}-handle`},In&&Ce.createElement(kt.Z,{className:`${sn}-loading-icon`})),[te,Ve]=$t(sn),fn=(0,gt.Z)(vn),dn=xe()(Ue==null?void 0:Ue.className,{[`${sn}-small`]:fn==="small",[`${sn}-loading`]:In,[`${sn}-rtl`]:ce==="rtl"},Zt,Gt,Ve),Sn=Object.assign(Object.assign({},Ue==null?void 0:Ue.style),He);return te(Ce.createElement(Nt.Z,{component:"Switch"},Ce.createElement(je,Object.assign({},un,{prefixCls:sn,className:dn,style:Sn,disabled:wn,ref:Fe,loadingIcon:kn}))))});re.__ANT_SWITCH=!0;var Oe=re},99498:function(Ye,pn,Yt){(function(kt){kt(Yt(89780))})(function(kt){kt.defineOption("placeholder","",function(Ce,fe,pe){var le=pe&&pe!=kt.Init;if(fe&&!le)Ce.on("blur",ge),Ce.on("change",Ae),Ce.on("swapDoc",Ae),kt.on(Ce.getInputField(),"compositionupdate",Ce.state.placeholderCompose=function(){Te(Ce)}),Ae(Ce);else if(!fe&&le){Ce.off("blur",ge),Ce.off("change",Ae),Ce.off("swapDoc",Ae),kt.off(Ce.getInputField(),"compositionupdate",Ce.state.placeholderCompose),ue(Ce);var Be=Ce.getWrapperElement();Be.className=Be.className.replace(" CodeMirror-empty","")}fe&&!Ce.hasFocus()&&ge(Ce)});function ue(Ce){Ce.state.placeholder&&(Ce.state.placeholder.parentNode.removeChild(Ce.state.placeholder),Ce.state.placeholder=null)}function xe(Ce){ue(Ce);var fe=Ce.state.placeholder=document.createElement("pre");fe.style.cssText="height: 0; overflow: visible",fe.style.direction=Ce.getOption("direction"),fe.className="CodeMirror-placeholder CodeMirror-line-like";var pe=Ce.getOption("placeholder");typeof pe=="string"&&(pe=document.createTextNode(pe)),fe.appendChild(pe),Ce.display.lineSpace.insertBefore(fe,Ce.display.lineSpace.firstChild)}function Te(Ce){setTimeout(function(){var fe=!1,pe=Ce.getInputField();pe.nodeName=="TEXTAREA"?fe=!pe.value:Ce.lineCount()==1&&(fe=!/[^\u200b]/.test(pe.querySelector(".CodeMirror-line").textContent)),fe?xe(Ce):ue(Ce)},20)}function ge(Ce){qt(Ce)&&xe(Ce)}function Ae(Ce){var fe=Ce.getWrapperElement(),pe=qt(Ce);fe.className=fe.className.replace(" CodeMirror-empty","")+(pe?" CodeMirror-empty":""),pe?xe(Ce):ue(Ce)}function qt(Ce){return Ce.lineCount()===1&&Ce.getLine(0)===""}})},25717:function(Ye,pn,Yt){(function(kt){kt(Yt(89780))})(function(kt){var ue={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},xe=kt.Pos;kt.defineOption("autoCloseBrackets",!1,function(et,nt,gt){gt&>!=kt.Init&&(et.removeKeyMap(ge),et.state.closeBrackets=null),nt&&(Ae(Te(nt,"pairs")),et.state.closeBrackets=nt,et.addKeyMap(ge))});function Te(et,nt){return nt=="pairs"&&typeof et=="string"?et:typeof et=="object"&&et[nt]!=null?et[nt]:ue[nt]}var ge={Backspace:fe,Enter:pe};function Ae(et){for(var nt=0;nt=0;pt--){var Lt=lt[pt].head;et.replaceRange("",xe(Lt.line,Lt.ch-1),xe(Lt.line,Lt.ch+1),"+delete")}}function pe(et){var nt=Ce(et),gt=nt&&Te(nt,"explode");if(!gt||et.getOption("disableInput"))return kt.Pass;for(var lt=et.listSelections(),pt=0;pt0;return{anchor:new xe(et.anchor.line,et.anchor.ch+(nt?-1:1)),head:new xe(et.head.line,et.head.ch+(nt?1:-1))}}function Be(et,nt){var gt=Ce(et);if(!gt||et.getOption("disableInput"))return kt.Pass;var lt=Te(gt,"pairs"),pt=lt.indexOf(nt);if(pt==-1)return kt.Pass;for(var vt=Te(gt,"closeBefore"),Lt=Te(gt,"triples"),Ft=lt.charAt(pt+1)==nt,Wt=et.listSelections(),Kt=pt%2==0,_t,ne=0;ne=0&&et.getRange(ve,xe(ve.line,ve.ch+3))==nt+nt+nt?re="skipThree":re="skip";else if(Ft&&ve.ch>1&&Lt.indexOf(nt)>=0&&et.getRange(xe(ve.line,ve.ch-2),ve)==nt+nt){if(ve.ch>2&&/\bstring/.test(et.getTokenTypeAt(xe(ve.line,ve.ch-2))))return kt.Pass;re="addFour"}else if(Ft){var me=ve.ch==0?" ":et.getRange(xe(ve.line,ve.ch-1),ve);if(!kt.isWordChar(Oe)&&me!=nt&&!kt.isWordChar(me))re="both";else return kt.Pass}else if(Kt&&(Oe.length===0||/\s/.test(Oe)||vt.indexOf(Oe)>-1))re="both";else return kt.Pass;if(!_t)_t=re;else if(_t!=re)return kt.Pass}var Fe=pt%2?lt.charAt(pt-1):nt,Pn=pt%2?nt:lt.charAt(pt+1);et.operation(function(){if(_t=="skip")et.execCommand("goCharRight");else if(_t=="skipThree")for(var vn=0;vn<3;vn++)et.execCommand("goCharRight");else if(_t=="surround"){for(var Mn=et.getSelections(),vn=0;vn'"]=function(je){return Te(je)}),fe.addKeyMap(Be)}});var ue=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],xe=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function Te(fe){if(fe.getOption("disableInput"))return kt.Pass;for(var pe=fe.listSelections(),le=[],Be=fe.getOption("autoCloseTags"),je=0;jeNt.ch&&(pt=pt.slice(0,pt.length-et.end+Nt.ch));var Wt=pt.toLowerCase();if(!pt||et.type=="string"&&(et.end!=Nt.ch||!/[\"\']/.test(et.string.charAt(et.string.length-1))||et.string.length==1)||et.type=="tag"&<.close||et.string.indexOf("/")==Nt.ch-et.start-1||Lt&&qt(Lt,Wt)>-1||Ce(fe,nt.mode.xmlCurrentContext&&nt.mode.xmlCurrentContext(gt)||[],pt,Nt,!0))return kt.Pass;var Kt=typeof Be=="object"&&Be.emptyTags;if(Kt&&qt(Kt,pt)>-1){le[je]={text:"/>",newPos:kt.Pos(Nt.line,Nt.ch+2)};continue}var _t=Ft&&qt(Ft,Wt)>-1;le[je]={indent:_t,text:">"+(_t?` +`)}let qt=[],Ce=["
                "];const fe=new(ue()).Renderer,pe=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function le(){qt.length=0,Ce=["
                  "]}const Be={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function je(ne,$t,ve,re){if($t>=ne.length||ne[$t].level<=ve)return $t;var Oe=ne[$t];re.push("
                • "+Oe.text+""),$t++;var me=[];return $t=je(ne,$t,Oe.level,me),me.length>0&&(re.push("
                    "),me.forEach(function(Fe){re.push(Fe)}),re.push("
                  ")),re.push("
                • "),$t=je(ne,$t,ve,re),$t}function Nt(){return je(qt,0,0,Ce),Ce.push("
                "),Ce.join("")}const et={heading(ne){const $t=pe.exec(ne);if(ge+=1,$t)return{type:"heading",raw:$t[0],depth:$t[1].length,text:$t[2]}},fences(ne){const $t=this.rules.block.fences.exec(ne);if($t){const ve=$t[0];let re=Ee(ve,$t[3]||"");const Oe=$t[2]?$t[2].trim():$t[2];if(["latex","katex","math"].indexOf(Oe)>=0){const me=lt(),Fe=re;re=me,pt[me]={type:"block",expression:Fe}}return{type:"code",raw:ve,lang:Oe,text:re}}}},nt=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let gt=0;const lt=()=>`__special_katext_id_${gt++}__`;let pt={};function vt(){return pt}function Lt(){gt=0,pt={}}function Ft(ne){return ne=ne.replace(nt,($t,ve)=>{const re=lt();return pt[re]={type:"inline",expression:ve},re}),ne}const Wt=fe.listitem;fe.listitem=function(ne){return Wt(Ft(ne))};const Kt=fe.paragraph;fe.paragraph=function(ne){return Kt(Ft(ne))};const _t=fe.tablecell;fe.tablecell=function(ne,$t){return _t(Ft(ne),$t)},fe.code=function(ne,$t,ve){const re=($t||"").match(/\S*/)[0];return re?["latex","katex","math"].indexOf(re)>=0?`

                ${ne}

                `:`
                ${ve?ne:(0,xe.escape)(ne,!0)}
                +`:'
                '+(ve?ne:(0,xe.escape)(ne,!0))+"
                "},fe.heading=function(ne,$t,ve){let re=this.options.headerPrefix+ve.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return qt.push({anchor:re,level:$t,text:ne}),"'+ne+""},ue().setOptions({silent:!0,gfm:!0,pedantic:!1}),ue().use({tokenizer:et,renderer:fe}),pn.ZP=ue()},77578:function(Ye,pn,Yt){"use strict";Yt.d(pn,{Z:function(){return kt}});const kt=ue=>ue?typeof ue=="function"?ue():ue:null},49127:function(Ye,pn,Yt){"use strict";Yt.d(pn,{Z:function(){return In}});var kt=Yt(92310),ue=Yt.n(kt),xe=Yt(77900),Te=Yt(59301),ge=Yt(36785),Ee=Yt(92343),qt=Yt(36355),Ce=Yt(93083),fe=Yt(17313),pe=Yt(45157),le=Yt(37613),Be=Yt(83116);const je=new Ce.Keyframes("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),Nt=new Ce.Keyframes("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),et=new Ce.Keyframes("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),nt=new Ce.Keyframes("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),gt=new Ce.Keyframes("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),lt=new Ce.Keyframes("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),pt=Zt=>{const{componentCls:Gt,iconCls:He,antCls:un,badgeShadowSize:ln,motionDurationSlow:ce,textFontSize:Ue,textFontSizeSM:on,statusSize:wn,dotSize:sn,textFontWeight:kn,indicatorHeight:te,indicatorHeightSM:Ve,marginXS:fn}=Zt,dn=`${un}-scroll-number`,Sn=(0,pe.Z)(Zt,(Vn,vi)=>{let{darkColor:Qn}=vi;return{[`&${Gt} ${Gt}-color-${Vn}`]:{background:Qn,[`&:not(${Gt}-count)`]:{color:Qn}}}});return{[Gt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,fe.Wf)(Zt)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${Gt}-count`]:{zIndex:Zt.indicatorZIndex,minWidth:te,height:te,color:Zt.badgeTextColor,fontWeight:kn,fontSize:Ue,lineHeight:`${te}px`,whiteSpace:"nowrap",textAlign:"center",background:Zt.badgeColor,borderRadius:te/2,boxShadow:`0 0 0 ${ln}px ${Zt.badgeShadowColor}`,transition:`background ${Zt.motionDurationMid}`,a:{color:Zt.badgeTextColor},"a:hover":{color:Zt.badgeTextColor},"a:hover &":{background:Zt.badgeColorHover}},[`${Gt}-count-sm`]:{minWidth:Ve,height:Ve,fontSize:on,lineHeight:`${Ve}px`,borderRadius:Ve/2},[`${Gt}-multiple-words`]:{padding:`0 ${Zt.paddingXS}px`,bdi:{unicodeBidi:"plaintext"}},[`${Gt}-dot`]:{zIndex:Zt.indicatorZIndex,width:sn,minWidth:sn,height:sn,background:Zt.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${ln}px ${Zt.badgeShadowColor}`},[`${Gt}-dot${dn}`]:{transition:`background ${ce}`},[`${Gt}-count, ${Gt}-dot, ${dn}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${He}-spin`]:{animationName:lt,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${Gt}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${Gt}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:wn,height:wn,verticalAlign:"middle",borderRadius:"50%"},[`${Gt}-status-success`]:{backgroundColor:Zt.colorSuccess},[`${Gt}-status-processing`]:{overflow:"visible",color:Zt.colorPrimary,backgroundColor:Zt.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:ln,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:je,animationDuration:Zt.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${Gt}-status-default`]:{backgroundColor:Zt.colorTextPlaceholder},[`${Gt}-status-error`]:{backgroundColor:Zt.colorError},[`${Gt}-status-warning`]:{backgroundColor:Zt.colorWarning},[`${Gt}-status-text`]:{marginInlineStart:fn,color:Zt.colorText,fontSize:Zt.fontSize}}}),Sn),{[`${Gt}-zoom-appear, ${Gt}-zoom-enter`]:{animationName:Nt,animationDuration:Zt.motionDurationSlow,animationTimingFunction:Zt.motionEaseOutBack,animationFillMode:"both"},[`${Gt}-zoom-leave`]:{animationName:et,animationDuration:Zt.motionDurationSlow,animationTimingFunction:Zt.motionEaseOutBack,animationFillMode:"both"},[`&${Gt}-not-a-wrapper`]:{[`${Gt}-zoom-appear, ${Gt}-zoom-enter`]:{animationName:nt,animationDuration:Zt.motionDurationSlow,animationTimingFunction:Zt.motionEaseOutBack},[`${Gt}-zoom-leave`]:{animationName:gt,animationDuration:Zt.motionDurationSlow,animationTimingFunction:Zt.motionEaseOutBack},[`&:not(${Gt}-status)`]:{verticalAlign:"middle"},[`${dn}-custom-component, ${Gt}-count`]:{transform:"none"},[`${dn}-custom-component, ${dn}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${dn}`]:{overflow:"hidden",[`${dn}-only`]:{position:"relative",display:"inline-block",height:te,transition:`all ${Zt.motionDurationSlow} ${Zt.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${dn}-only-unit`]:{height:te,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${dn}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${Gt}-count, ${Gt}-dot, ${dn}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},vt=Zt=>{const{fontSize:Gt,lineHeight:He,lineWidth:un,marginXS:ln,colorBorderBg:ce}=Zt,Ue=Math.round(Gt*He),on=un,wn=Zt.colorBgContainer,sn=Zt.colorError,kn=Zt.colorErrorHover;return(0,le.TS)(Zt,{badgeFontHeight:Ue,badgeShadowSize:on,badgeTextColor:wn,badgeColor:sn,badgeColorHover:kn,badgeShadowColor:ce,badgeProcessingDuration:"1.2s",badgeRibbonOffset:ln,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},Lt=Zt=>{const{fontSize:Gt,lineHeight:He,fontSizeSM:un,lineWidth:ln}=Zt;return{indicatorZIndex:"auto",indicatorHeight:Math.round(Gt*He)-2*ln,indicatorHeightSM:Gt,dotSize:un/2,textFontSize:un,textFontSizeSM:un,textFontWeight:"normal",statusSize:un/2}};var Ft=(0,Be.Z)("Badge",Zt=>{const Gt=vt(Zt);return[pt(Gt)]},Lt);const Wt=Zt=>{const{antCls:Gt,badgeFontHeight:He,marginXS:un,badgeRibbonOffset:ln}=Zt,ce=`${Gt}-ribbon`,Ue=`${Gt}-ribbon-wrapper`,on=(0,pe.Z)(Zt,(wn,sn)=>{let{darkColor:kn}=sn;return{[`&${ce}-color-${wn}`]:{background:kn,color:kn}}});return{[`${Ue}`]:{position:"relative"},[`${ce}`]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,fe.Wf)(Zt)),{position:"absolute",top:un,padding:`0 ${Zt.paddingXS}px`,color:Zt.colorPrimary,lineHeight:`${He}px`,whiteSpace:"nowrap",backgroundColor:Zt.colorPrimary,borderRadius:Zt.borderRadiusSM,[`${ce}-text`]:{color:Zt.colorTextLightSolid},[`${ce}-corner`]:{position:"absolute",top:"100%",width:ln,height:ln,color:"currentcolor",border:`${ln/2}px solid`,transform:Zt.badgeRibbonCornerTransform,transformOrigin:"top",filter:Zt.badgeRibbonCornerFilter}}),on),{[`&${ce}-placement-end`]:{insetInlineEnd:-ln,borderEndEndRadius:0,[`${ce}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${ce}-placement-start`]:{insetInlineStart:-ln,borderEndStartRadius:0,[`${ce}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}};var Kt=(0,Be.Z)(["Badge","Ribbon"],Zt=>{const Gt=vt(Zt);return[Wt(Gt)]},Lt),ne=Zt=>{const{className:Gt,prefixCls:He,style:un,color:ln,children:ce,text:Ue,placement:on="end",rootClassName:wn}=Zt,{getPrefixCls:sn,direction:kn}=Te.useContext(qt.E_),te=sn("ribbon",He),Ve=(0,ge.o2)(ln,!1),fn=ue()(te,`${te}-placement-${on}`,{[`${te}-rtl`]:kn==="rtl",[`${te}-color-${ln}`]:Ve},Gt),[dn,Sn]=Kt(te),Vn={},vi={};return ln&&!Ve&&(Vn.background=ln,vi.color=ln),dn(Te.createElement("div",{className:ue()(`${te}-wrapper`,wn,Sn)},ce,Te.createElement("div",{className:ue()(fn,Sn),style:Object.assign(Object.assign({},Vn),un)},Te.createElement("span",{className:`${te}-text`},Ue),Te.createElement("div",{className:`${te}-corner`,style:vi}))))};function $t(Zt){let{prefixCls:Gt,value:He,current:un,offset:ln=0}=Zt,ce;return ln&&(ce={position:"absolute",top:`${ln}00%`,left:0}),Te.createElement("span",{style:ce,className:ue()(`${Gt}-only-unit`,{current:un})},He)}function ve(Zt,Gt,He){let un=Zt,ln=0;for(;(un+10)%10!==Gt;)un+=He,ln+=He;return ln}function re(Zt){const{prefixCls:Gt,count:He,value:un}=Zt,ln=Number(un),ce=Math.abs(He),[Ue,on]=Te.useState(ln),[wn,sn]=Te.useState(ce),kn=()=>{on(ln),sn(ce)};Te.useEffect(()=>{const fn=setTimeout(()=>{kn()},1e3);return()=>{clearTimeout(fn)}},[ln]);let te,Ve;if(Ue===ln||Number.isNaN(ln)||Number.isNaN(Ue))te=[Te.createElement($t,Object.assign({},Zt,{key:ln,current:!0}))],Ve={transition:"none"};else{te=[];const fn=ln+10,dn=[];for(let vi=ln;vi<=fn;vi+=1)dn.push(vi);const Sn=dn.findIndex(vi=>vi%10===Ue);te=dn.map((vi,Qn)=>{const wi=vi%10;return Te.createElement($t,Object.assign({},Zt,{key:vi,value:wi,offset:Qn-Sn,current:Qn===Sn}))});const Vn=wn{const{prefixCls:He,count:un,className:ln,motionClassName:ce,style:Ue,title:on,show:wn,component:sn="sup",children:kn}=Zt,te=Oe(Zt,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:Ve}=Te.useContext(qt.E_),fn=Ve("scroll-number",He),dn=Object.assign(Object.assign({},te),{"data-show":wn,style:Ue,className:ue()(fn,ln,ce),title:on});let Sn=un;if(un&&Number(un)%1===0){const Vn=String(un).split("");Sn=Te.createElement("bdi",null,Vn.map((vi,Qn)=>Te.createElement(re,{prefixCls:fn,count:Number(un),value:vi,key:Vn.length-Qn})))}return Ue&&Ue.borderColor&&(dn.style=Object.assign(Object.assign({},Ue),{boxShadow:`0 0 0 1px ${Ue.borderColor} inset`})),kn?(0,Ee.Tm)(kn,Vn=>({className:ue()(`${fn}-custom-component`,Vn==null?void 0:Vn.className,ce)})):Te.createElement(sn,Object.assign({},dn,{ref:Gt}),Sn)}),Pn=function(Zt,Gt){var He={};for(var un in Zt)Object.prototype.hasOwnProperty.call(Zt,un)&&Gt.indexOf(un)<0&&(He[un]=Zt[un]);if(Zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ln=0,un=Object.getOwnPropertySymbols(Zt);ln{var He,un,ln,ce,Ue;const{prefixCls:on,scrollNumberPrefixCls:wn,children:sn,status:kn,text:te,color:Ve,count:fn=null,overflowCount:dn=99,dot:Sn=!1,size:Vn="default",title:vi,offset:Qn,style:wi,className:Ci,rootClassName:an,classNames:Nn,styles:xn,showZero:Ot=!1}=Zt,Ct=Pn(Zt,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:xt,direction:Bt,badge:Rt}=Te.useContext(qt.E_),Et=xt("badge",on),[se,_e]=Ft(Et),nn=fn>dn?`${dn}+`:fn,tn=nn==="0"||nn===0,Ln=fn===null||tn&&!Ot,ni=(kn!=null||Ve!=null)&&Ln,di=Sn&&!tn,si=di?"":nn,Mi=(0,Te.useMemo)(()=>(si==null||si===""||tn&&!Ot)&&!di,[si,tn,Ot,di]),qi=(0,Te.useRef)(fn);Mi||(qi.current=fn);const oo=qi.current,pr=(0,Te.useRef)(si);Mi||(pr.current=si);const Ho=pr.current,mr=(0,Te.useRef)(di);Mi||(mr.current=di);const so=(0,Te.useMemo)(()=>{if(!Qn)return Object.assign(Object.assign({},Rt==null?void 0:Rt.style),wi);const Gn={marginTop:Qn[1]};return Bt==="rtl"?Gn.left=parseInt(Qn[0],10):Gn.right=-parseInt(Qn[0],10),Object.assign(Object.assign(Object.assign({},Gn),Rt==null?void 0:Rt.style),wi)},[Bt,Qn,wi,Rt==null?void 0:Rt.style]),xo=vi!=null?vi:typeof oo=="string"||typeof oo=="number"?oo:void 0,Yr=Mi||!te?null:Te.createElement("span",{className:`${Et}-status-text`},te),Cr=!oo||typeof oo!="object"?void 0:(0,Ee.Tm)(oo,Gn=>({style:Object.assign(Object.assign({},so),Gn.style)})),No=(0,ge.o2)(Ve,!1),yi=ue()(Nn==null?void 0:Nn.indicator,(He=Rt==null?void 0:Rt.classNames)===null||He===void 0?void 0:He.indicator,{[`${Et}-status-dot`]:ni,[`${Et}-status-${kn}`]:!!kn,[`${Et}-color-${Ve}`]:No}),wt={};Ve&&!No&&(wt.color=Ve,wt.background=Ve);const Es=ue()(Et,{[`${Et}-status`]:ni,[`${Et}-not-a-wrapper`]:!sn,[`${Et}-rtl`]:Bt==="rtl"},Ci,an,Rt==null?void 0:Rt.className,(un=Rt==null?void 0:Rt.classNames)===null||un===void 0?void 0:un.root,Nn==null?void 0:Nn.root,_e);if(!sn&&ni){const Gn=so.color;return se(Te.createElement("span",Object.assign({},Ct,{className:Es,style:Object.assign(Object.assign(Object.assign({},xn==null?void 0:xn.root),(ln=Rt==null?void 0:Rt.styles)===null||ln===void 0?void 0:ln.root),so)}),Te.createElement("span",{className:yi,style:Object.assign(Object.assign(Object.assign({},xn==null?void 0:xn.indicator),(ce=Rt==null?void 0:Rt.styles)===null||ce===void 0?void 0:ce.indicator),wt)}),te&&Te.createElement("span",{style:{color:Gn},className:`${Et}-status-text`},te)))}return se(Te.createElement("span",Object.assign({ref:Gt},Ct,{className:Es,style:Object.assign(Object.assign({},(Ue=Rt==null?void 0:Rt.styles)===null||Ue===void 0?void 0:Ue.root),xn==null?void 0:xn.root)}),sn,Te.createElement(xe.default,{visible:!Mi,motionName:`${Et}-zoom`,motionAppear:!1,motionDeadline:1e3},Gn=>{let{className:Ri,ref:Io}=Gn;var Jo,Or;const To=xt("scroll-number",wn),jr=mr.current,De=ue()(Nn==null?void 0:Nn.indicator,(Jo=Rt==null?void 0:Rt.classNames)===null||Jo===void 0?void 0:Jo.indicator,{[`${Et}-dot`]:jr,[`${Et}-count`]:!jr,[`${Et}-count-sm`]:Vn==="small",[`${Et}-multiple-words`]:!jr&&Ho&&Ho.toString().length>1,[`${Et}-status-${kn}`]:!!kn,[`${Et}-color-${Ve}`]:No});let ye=Object.assign(Object.assign(Object.assign({},xn==null?void 0:xn.indicator),(Or=Rt==null?void 0:Rt.styles)===null||Or===void 0?void 0:Or.indicator),so);return Ve&&!No&&(ye=ye||{},ye.background=Ve),Te.createElement(Fe,{prefixCls:To,show:!Mi,motionClassName:Ri,className:De,count:Ho,title:xo,style:ye,key:"scrollNumber",ref:Io},Cr)}),Yr))},Mn=Te.forwardRef(vn);Mn.Ribbon=ne;var In=Mn},14478:function(Ye,pn,Yt){"use strict";Yt.d(pn,{Z:function(){return $t}});var kt=Yt(96512),ue=Yt(92310),xe=Yt.n(ue),Te=Yt(10228),ge=Yt(18929),Ee=Yt(2738),qt=Yt(59301),Ce=Yt(92343),fe=Yt(36355),pe=Yt(60324),le=Yt(92806),Be=Yt(77578),je=Yt(3113),Nt=Yt(67797),et=Yt(9763),nt=Yt(31724),gt=Yt(39722),lt=Yt(83116);const pt=ve=>{const{componentCls:re,iconCls:Oe,antCls:me,zIndexPopup:Fe,colorText:Pn,colorWarning:vn,marginXXS:Mn,marginXS:In,fontSize:Zt,fontWeightStrong:Gt,colorTextHeading:He}=ve;return{[re]:{zIndex:Fe,[`&${me}-popover`]:{fontSize:Zt},[`${re}-message`]:{marginBottom:In,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${re}-message-icon ${Oe}`]:{color:vn,fontSize:Zt,lineHeight:1,marginInlineEnd:In},[`${re}-title`]:{fontWeight:Gt,color:He,"&:only-child":{fontWeight:"normal"}},[`${re}-description`]:{marginTop:Mn,color:Pn}},[`${re}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:In}}}}};var vt=(0,lt.Z)("Popconfirm",ve=>pt(ve),ve=>{const{zIndexPopupBase:re}=ve;return{zIndexPopup:re+60}},{resetStyle:!1}),Lt=function(ve,re){var Oe={};for(var me in ve)Object.prototype.hasOwnProperty.call(ve,me)&&re.indexOf(me)<0&&(Oe[me]=ve[me]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,me=Object.getOwnPropertySymbols(ve);Fe{const{prefixCls:re,okButtonProps:Oe,cancelButtonProps:me,title:Fe,description:Pn,cancelText:vn,okText:Mn,okType:In="primary",icon:Zt=qt.createElement(kt.Z,null),showCancel:Gt=!0,close:He,onConfirm:un,onCancel:ln,onPopupClick:ce}=ve,{getPrefixCls:Ue}=qt.useContext(fe.E_),[on]=(0,et.Z)("Popconfirm",nt.Z.Popconfirm),wn=(0,Be.Z)(Fe),sn=(0,Be.Z)(Pn);return qt.createElement("div",{className:`${re}-inner-content`,onClick:ce},qt.createElement("div",{className:`${re}-message`},Zt&&qt.createElement("span",{className:`${re}-message-icon`},Zt),qt.createElement("div",{className:`${re}-message-text`},wn&&qt.createElement("div",{className:xe()(`${re}-title`)},wn),sn&&qt.createElement("div",{className:`${re}-description`},sn))),qt.createElement("div",{className:`${re}-buttons`},Gt&&qt.createElement(je.ZP,Object.assign({onClick:ln,size:"small"},me),vn!=null?vn:on==null?void 0:on.cancelText),qt.createElement(le.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,Nt.n)(In)),Oe),actionFn:un,close:He,prefixCls:Ue("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},Mn!=null?Mn:on==null?void 0:on.okText)))};var Kt=ve=>{const{prefixCls:re,placement:Oe,className:me,style:Fe}=ve,Pn=Lt(ve,["prefixCls","placement","className","style"]),{getPrefixCls:vn}=qt.useContext(fe.E_),Mn=vn("popconfirm",re),[In]=vt(Mn);return In(qt.createElement(gt.ZP,{placement:Oe,className:xe()(Mn,me),style:Fe,content:qt.createElement(Ft,Object.assign({prefixCls:Mn},Pn))}))},_t=function(ve,re){var Oe={};for(var me in ve)Object.prototype.hasOwnProperty.call(ve,me)&&re.indexOf(me)<0&&(Oe[me]=ve[me]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,me=Object.getOwnPropertySymbols(ve);Fe{const{prefixCls:Oe,placement:me="top",trigger:Fe="click",okType:Pn="primary",icon:vn=qt.createElement(kt.Z,null),children:Mn,overlayClassName:In,onOpenChange:Zt,onVisibleChange:Gt}=ve,He=_t(ve,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:un}=qt.useContext(fe.E_),[ln,ce]=(0,ge.Z)(!1,{value:ve.open,defaultValue:ve.defaultOpen}),Ue=(Sn,Vn)=>{ce(Sn,!0),Gt==null||Gt(Sn),Zt==null||Zt(Sn,Vn)},on=Sn=>{Ue(!1,Sn)},wn=Sn=>{var Vn;return(Vn=ve.onConfirm)===null||Vn===void 0?void 0:Vn.call(void 0,Sn)},sn=Sn=>{var Vn;Ue(!1,Sn),(Vn=ve.onCancel)===null||Vn===void 0||Vn.call(void 0,Sn)},kn=Sn=>{Sn.keyCode===Te.Z.ESC&&ln&&Ue(!1,Sn)},te=Sn=>{const{disabled:Vn=!1}=ve;Vn||Ue(Sn)},Ve=un("popconfirm",Oe),fn=xe()(Ve,In),[dn]=vt(Ve);return dn(qt.createElement(pe.Z,Object.assign({},(0,Ee.Z)(He,["title"]),{trigger:Fe,placement:me,onOpenChange:te,open:ln,ref:re,overlayClassName:fn,content:qt.createElement(Ft,Object.assign({okType:Pn,icon:vn},ve,{prefixCls:Ve,close:on,onConfirm:wn,onCancel:sn})),"data-popover-inject":!0}),(0,Ce.Tm)(Mn,{onKeyDown:Sn=>{var Vn,vi;qt.isValidElement(Mn)&&((vi=Mn==null?void 0:(Vn=Mn.props).onKeyDown)===null||vi===void 0||vi.call(Vn,Sn)),kn(Sn)}})))});ne._InternalPanelDoNotUseOrYouWillBeFired=Kt;var $t=ne},39722:function(Ye,pn,Yt){"use strict";Yt.d(pn,{t5:function(){return pe}});var kt=Yt(92310),ue=Yt.n(kt),xe=Yt(55477),Te=Yt(59301),ge=Yt(36355),Ee=Yt(77578),qt=Yt(17356),Ce=function(Be,je){var Nt={};for(var et in Be)Object.prototype.hasOwnProperty.call(Be,et)&&je.indexOf(et)<0&&(Nt[et]=Be[et]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,et=Object.getOwnPropertySymbols(Be);nt{if(!(!je&&!Nt))return Te.createElement(Te.Fragment,null,je&&Te.createElement("div",{className:`${Be}-title`},(0,Ee.Z)(je)),Te.createElement("div",{className:`${Be}-inner-content`},(0,Ee.Z)(Nt)))},pe=Be=>{const{hashId:je,prefixCls:Nt,className:et,style:nt,placement:gt="top",title:lt,content:pt,children:vt}=Be;return Te.createElement("div",{className:ue()(je,Nt,`${Nt}-pure`,`${Nt}-placement-${gt}`,et),style:nt},Te.createElement("div",{className:`${Nt}-arrow`}),Te.createElement(xe.G,Object.assign({},Be,{className:je,prefixCls:Nt}),vt||fe(Nt,lt,pt)))},le=Be=>{const{prefixCls:je}=Be,Nt=Ce(Be,["prefixCls"]),{getPrefixCls:et}=Te.useContext(ge.E_),nt=et("popover",je),[gt,lt]=(0,qt.Z)(nt);return gt(Te.createElement(pe,Object.assign({},Nt,{prefixCls:nt,hashId:lt})))};pn.ZP=le},60324:function(Ye,pn,Yt){"use strict";var kt=Yt(92310),ue=Yt.n(kt),xe=Yt(59301),Te=Yt(77578),ge=Yt(62892),Ee=Yt(36355),qt=Yt(6848),Ce=Yt(39722),fe=Yt(17356),pe=function(je,Nt){var et={};for(var nt in je)Object.prototype.hasOwnProperty.call(je,nt)&&Nt.indexOf(nt)<0&&(et[nt]=je[nt]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,nt=Object.getOwnPropertySymbols(je);gt{let{title:Nt,content:et,prefixCls:nt}=je;return xe.createElement(xe.Fragment,null,Nt&&xe.createElement("div",{className:`${nt}-title`},(0,Te.Z)(Nt)),xe.createElement("div",{className:`${nt}-inner-content`},(0,Te.Z)(et)))},Be=xe.forwardRef((je,Nt)=>{const{prefixCls:et,title:nt,content:gt,overlayClassName:lt,placement:pt="top",trigger:vt="hover",mouseEnterDelay:Lt=.1,mouseLeaveDelay:Ft=.1,overlayStyle:Wt={}}=je,Kt=pe(je,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:_t}=xe.useContext(Ee.E_),ne=_t("popover",et),[$t,ve]=(0,fe.Z)(ne),re=_t(),Oe=ue()(lt,ve);return $t(xe.createElement(qt.Z,Object.assign({placement:pt,trigger:vt,mouseEnterDelay:Lt,mouseLeaveDelay:Ft,overlayStyle:Wt},Kt,{prefixCls:ne,overlayClassName:Oe,ref:Nt,overlay:nt||gt?xe.createElement(le,{prefixCls:ne,title:nt,content:gt}):null,transitionName:(0,ge.m)(re,"zoom-big",Kt.transitionName),"data-popover-inject":!0})))});Be._InternalPanelDoNotUseOrYouWillBeFired=Ce.ZP,pn.Z=Be},17356:function(Ye,pn,Yt){"use strict";var kt=Yt(17313),ue=Yt(29878),xe=Yt(19447),Te=Yt(33166),ge=Yt(83116),Ee=Yt(37613);const qt=pe=>{const{componentCls:le,popoverColor:Be,minWidth:je,fontWeightStrong:Nt,popoverPadding:et,boxShadowSecondary:nt,colorTextHeading:gt,borderRadiusLG:lt,zIndexPopup:pt,marginXS:vt,colorBgElevated:Lt,popoverBg:Ft}=pe;return[{[le]:Object.assign(Object.assign({},(0,kt.Wf)(pe)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:pt,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":Lt,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${le}-content`]:{position:"relative"},[`${le}-inner`]:{backgroundColor:Ft,backgroundClip:"padding-box",borderRadius:lt,boxShadow:nt,padding:et},[`${le}-title`]:{minWidth:je,marginBottom:vt,color:gt,fontWeight:Nt},[`${le}-inner-content`]:{color:Be}})},(0,xe.ZP)(pe,{colorBg:"var(--antd-arrow-background-color)"}),{[`${le}-pure`]:{position:"relative",maxWidth:"none",margin:pe.sizePopupArrow,display:"inline-block",[`${le}-content`]:{display:"inline-block"}}}]},Ce=pe=>{const{componentCls:le}=pe;return{[le]:Te.i.map(Be=>{const je=pe[`${Be}6`];return{[`&${le}-${Be}`]:{"--antd-arrow-background-color":je,[`${le}-inner`]:{backgroundColor:je},[`${le}-arrow`]:{background:"transparent"}}}})}},fe=pe=>{const{componentCls:le,lineWidth:Be,lineType:je,colorSplit:Nt,paddingSM:et,controlHeight:nt,fontSize:gt,lineHeight:lt,padding:pt}=pe,vt=nt-Math.round(gt*lt),Lt=vt/2,Ft=vt/2-Be,Wt=pt;return{[le]:{[`${le}-inner`]:{padding:0},[`${le}-title`]:{margin:0,padding:`${Lt}px ${Wt}px ${Ft}px`,borderBottom:`${Be}px ${je} ${Nt}`},[`${le}-inner-content`]:{padding:`${et}px ${Wt}px`}}}};pn.Z=(0,ge.Z)("Popover",pe=>{const{colorBgElevated:le,colorText:Be,wireframe:je}=pe,Nt=(0,Ee.TS)(pe,{popoverPadding:12,popoverBg:le,popoverColor:Be});return[qt(Nt),Ce(Nt),je&&fe(Nt),(0,ue._y)(Nt,"zoom-big")]},pe=>({width:177,minWidth:177,zIndexPopup:pe.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},78673:function(Ye,pn,Yt){"use strict";Yt.d(pn,{Z:function(){return Oe}});var kt=Yt(58617),ue=Yt(92310),xe=Yt.n(ue),Te=Yt(72308),ge=Yt(49618),Ee=Yt(52487),qt=Yt(74416),Ce=Yt(59301),fe=Yt(18929),pe=Yt(10228),le=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Be=Ce.forwardRef(function(me,Fe){var Pn,vn=me.prefixCls,Mn=vn===void 0?"rc-switch":vn,In=me.className,Zt=me.checked,Gt=me.defaultChecked,He=me.disabled,un=me.loadingIcon,ln=me.checkedChildren,ce=me.unCheckedChildren,Ue=me.onClick,on=me.onChange,wn=me.onKeyDown,sn=(0,qt.Z)(me,le),kn=(0,fe.Z)(!1,{value:Zt,defaultValue:Gt}),te=(0,Ee.Z)(kn,2),Ve=te[0],fn=te[1];function dn(Qn,wi){var Ci=Ve;return He||(Ci=Qn,fn(Ci),on==null||on(Ci,wi)),Ci}function Sn(Qn){Qn.which===pe.Z.LEFT?dn(!1,Qn):Qn.which===pe.Z.RIGHT&&dn(!0,Qn),wn==null||wn(Qn)}function Vn(Qn){var wi=dn(!Ve,Qn);Ue==null||Ue(wi,Qn)}var vi=xe()(Mn,In,(Pn={},(0,ge.Z)(Pn,"".concat(Mn,"-checked"),Ve),(0,ge.Z)(Pn,"".concat(Mn,"-disabled"),He),Pn));return Ce.createElement("button",(0,Te.Z)({},sn,{type:"button",role:"switch","aria-checked":Ve,disabled:He,className:vi,ref:Fe,onKeyDown:Sn,onClick:Vn}),un,Ce.createElement("span",{className:"".concat(Mn,"-inner")},Ce.createElement("span",{className:"".concat(Mn,"-inner-checked")},ln),Ce.createElement("span",{className:"".concat(Mn,"-inner-unchecked")},ce)))});Be.displayName="Switch";var je=Be,Nt=Yt(14088),et=Yt(36355),nt=Yt(1684),gt=Yt(19716),lt=Yt(64993),pt=Yt(17313),vt=Yt(83116),Lt=Yt(37613);const Ft=me=>{const{componentCls:Fe,trackHeightSM:Pn,trackPadding:vn,trackMinWidthSM:Mn,innerMinMarginSM:In,innerMaxMarginSM:Zt,handleSizeSM:Gt}=me,He=`${Fe}-inner`;return{[Fe]:{[`&${Fe}-small`]:{minWidth:Mn,height:Pn,lineHeight:`${Pn}px`,[`${Fe}-inner`]:{paddingInlineStart:Zt,paddingInlineEnd:In,[`${He}-checked`]:{marginInlineStart:`calc(-100% + ${Gt+vn*2}px - ${Zt*2}px)`,marginInlineEnd:`calc(100% - ${Gt+vn*2}px + ${Zt*2}px)`},[`${He}-unchecked`]:{marginTop:-Pn,marginInlineStart:0,marginInlineEnd:0}},[`${Fe}-handle`]:{width:Gt,height:Gt},[`${Fe}-loading-icon`]:{top:(Gt-me.switchLoadingIconSize)/2,fontSize:me.switchLoadingIconSize},[`&${Fe}-checked`]:{[`${Fe}-inner`]:{paddingInlineStart:In,paddingInlineEnd:Zt,[`${He}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${He}-unchecked`]:{marginInlineStart:`calc(100% - ${Gt+vn*2}px + ${Zt*2}px)`,marginInlineEnd:`calc(-100% + ${Gt+vn*2}px - ${Zt*2}px)`}},[`${Fe}-handle`]:{insetInlineStart:`calc(100% - ${Gt+vn}px)`}},[`&:not(${Fe}-disabled):active`]:{[`&:not(${Fe}-checked) ${He}`]:{[`${He}-unchecked`]:{marginInlineStart:me.marginXXS/2,marginInlineEnd:-me.marginXXS/2}},[`&${Fe}-checked ${He}`]:{[`${He}-checked`]:{marginInlineStart:-me.marginXXS/2,marginInlineEnd:me.marginXXS/2}}}}}}},Wt=me=>{const{componentCls:Fe,handleSize:Pn}=me;return{[Fe]:{[`${Fe}-loading-icon${me.iconCls}`]:{position:"relative",top:(Pn-me.fontSize)/2,color:me.switchLoadingIconColor,verticalAlign:"top"},[`&${Fe}-checked ${Fe}-loading-icon`]:{color:me.switchColor}}}},Kt=me=>{const{componentCls:Fe,motion:Pn,trackPadding:vn,handleBg:Mn,handleShadow:In,handleSize:Zt}=me,Gt=`${Fe}-handle`;return{[Fe]:{[Gt]:{position:"absolute",top:vn,insetInlineStart:vn,width:Zt,height:Zt,transition:`all ${me.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Mn,borderRadius:Zt/2,boxShadow:In,transition:`all ${me.switchDuration} ease-in-out`,content:'""'}},[`&${Fe}-checked ${Gt}`]:{insetInlineStart:`calc(100% - ${Zt+vn}px)`},[`&:not(${Fe}-disabled):active`]:Pn?{[`${Gt}::before`]:{insetInlineEnd:me.switchHandleActiveInset,insetInlineStart:0},[`&${Fe}-checked ${Gt}::before`]:{insetInlineEnd:0,insetInlineStart:me.switchHandleActiveInset}}:{}}}},_t=me=>{const{componentCls:Fe,trackHeight:Pn,trackPadding:vn,innerMinMargin:Mn,innerMaxMargin:In,handleSize:Zt}=me,Gt=`${Fe}-inner`;return{[Fe]:{[Gt]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:In,paddingInlineEnd:Mn,transition:`padding-inline-start ${me.switchDuration} ease-in-out, padding-inline-end ${me.switchDuration} ease-in-out`,[`${Gt}-checked, ${Gt}-unchecked`]:{display:"block",color:me.colorTextLightSolid,fontSize:me.fontSizeSM,transition:`margin-inline-start ${me.switchDuration} ease-in-out, margin-inline-end ${me.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Gt}-checked`]:{marginInlineStart:`calc(-100% + ${Zt+vn*2}px - ${In*2}px)`,marginInlineEnd:`calc(100% - ${Zt+vn*2}px + ${In*2}px)`},[`${Gt}-unchecked`]:{marginTop:-Pn,marginInlineStart:0,marginInlineEnd:0}},[`&${Fe}-checked ${Gt}`]:{paddingInlineStart:Mn,paddingInlineEnd:In,[`${Gt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Gt}-unchecked`]:{marginInlineStart:`calc(100% - ${Zt+vn*2}px + ${In*2}px)`,marginInlineEnd:`calc(-100% + ${Zt+vn*2}px - ${In*2}px)`}},[`&:not(${Fe}-disabled):active`]:{[`&:not(${Fe}-checked) ${Gt}`]:{[`${Gt}-unchecked`]:{marginInlineStart:vn*2,marginInlineEnd:-vn*2}},[`&${Fe}-checked ${Gt}`]:{[`${Gt}-checked`]:{marginInlineStart:-vn*2,marginInlineEnd:vn*2}}}}}},ne=me=>{const{componentCls:Fe,trackHeight:Pn,trackMinWidth:vn}=me;return{[Fe]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,pt.Wf)(me)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:vn,height:Pn,lineHeight:`${Pn}px`,verticalAlign:"middle",background:me.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${me.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Fe}-disabled)`]:{background:me.colorTextTertiary}}),(0,pt.Qy)(me)),{[`&${Fe}-checked`]:{background:me.switchColor,[`&:hover:not(${Fe}-disabled)`]:{background:me.colorPrimaryHover}},[`&${Fe}-loading, &${Fe}-disabled`]:{cursor:"not-allowed",opacity:me.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Fe}-rtl`]:{direction:"rtl"}})}};var $t=(0,vt.Z)("Switch",me=>{const Fe=(0,Lt.TS)(me,{switchDuration:me.motionDurationMid,switchColor:me.colorPrimary,switchDisabledOpacity:me.opacityLoading,switchLoadingIconSize:me.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${me.opacityLoading})`,switchHandleActiveInset:"-30%"});return[ne(Fe),_t(Fe),Kt(Fe),Wt(Fe),Ft(Fe)]},me=>{const{fontSize:Fe,lineHeight:Pn,controlHeight:vn,colorWhite:Mn}=me,In=Fe*Pn,Zt=vn/2,Gt=2,He=In-Gt*2,un=Zt-Gt*2;return{trackHeight:In,trackHeightSM:Zt,trackMinWidth:He*2+Gt*4,trackMinWidthSM:un*2+Gt*2,trackPadding:Gt,handleBg:Mn,handleSize:He,handleSizeSM:un,handleShadow:`0 2px 4px 0 ${new lt.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:He/2,innerMaxMargin:He+Gt+Gt*2,innerMinMarginSM:un/2,innerMaxMarginSM:un+Gt+Gt*2}}),ve=function(me,Fe){var Pn={};for(var vn in me)Object.prototype.hasOwnProperty.call(me,vn)&&Fe.indexOf(vn)<0&&(Pn[vn]=me[vn]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mn=0,vn=Object.getOwnPropertySymbols(me);Mn{const{prefixCls:Pn,size:vn,disabled:Mn,loading:In,className:Zt,rootClassName:Gt,style:He}=me,un=ve(me,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:ln,direction:ce,switch:Ue}=Ce.useContext(et.E_),on=Ce.useContext(nt.Z),wn=(Mn!=null?Mn:on)||In,sn=ln("switch",Pn),kn=Ce.createElement("div",{className:`${sn}-handle`},In&&Ce.createElement(kt.Z,{className:`${sn}-loading-icon`})),[te,Ve]=$t(sn),fn=(0,gt.Z)(vn),dn=xe()(Ue==null?void 0:Ue.className,{[`${sn}-small`]:fn==="small",[`${sn}-loading`]:In,[`${sn}-rtl`]:ce==="rtl"},Zt,Gt,Ve),Sn=Object.assign(Object.assign({},Ue==null?void 0:Ue.style),He);return te(Ce.createElement(Nt.Z,{component:"Switch"},Ce.createElement(je,Object.assign({},un,{prefixCls:sn,className:dn,style:Sn,disabled:wn,ref:Fe,loadingIcon:kn}))))});re.__ANT_SWITCH=!0;var Oe=re},99498:function(Ye,pn,Yt){(function(kt){kt(Yt(89780))})(function(kt){kt.defineOption("placeholder","",function(Ce,fe,pe){var le=pe&&pe!=kt.Init;if(fe&&!le)Ce.on("blur",ge),Ce.on("change",Ee),Ce.on("swapDoc",Ee),kt.on(Ce.getInputField(),"compositionupdate",Ce.state.placeholderCompose=function(){Te(Ce)}),Ee(Ce);else if(!fe&&le){Ce.off("blur",ge),Ce.off("change",Ee),Ce.off("swapDoc",Ee),kt.off(Ce.getInputField(),"compositionupdate",Ce.state.placeholderCompose),ue(Ce);var Be=Ce.getWrapperElement();Be.className=Be.className.replace(" CodeMirror-empty","")}fe&&!Ce.hasFocus()&&ge(Ce)});function ue(Ce){Ce.state.placeholder&&(Ce.state.placeholder.parentNode.removeChild(Ce.state.placeholder),Ce.state.placeholder=null)}function xe(Ce){ue(Ce);var fe=Ce.state.placeholder=document.createElement("pre");fe.style.cssText="height: 0; overflow: visible",fe.style.direction=Ce.getOption("direction"),fe.className="CodeMirror-placeholder CodeMirror-line-like";var pe=Ce.getOption("placeholder");typeof pe=="string"&&(pe=document.createTextNode(pe)),fe.appendChild(pe),Ce.display.lineSpace.insertBefore(fe,Ce.display.lineSpace.firstChild)}function Te(Ce){setTimeout(function(){var fe=!1,pe=Ce.getInputField();pe.nodeName=="TEXTAREA"?fe=!pe.value:Ce.lineCount()==1&&(fe=!/[^\u200b]/.test(pe.querySelector(".CodeMirror-line").textContent)),fe?xe(Ce):ue(Ce)},20)}function ge(Ce){qt(Ce)&&xe(Ce)}function Ee(Ce){var fe=Ce.getWrapperElement(),pe=qt(Ce);fe.className=fe.className.replace(" CodeMirror-empty","")+(pe?" CodeMirror-empty":""),pe?xe(Ce):ue(Ce)}function qt(Ce){return Ce.lineCount()===1&&Ce.getLine(0)===""}})},25717:function(Ye,pn,Yt){(function(kt){kt(Yt(89780))})(function(kt){var ue={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},xe=kt.Pos;kt.defineOption("autoCloseBrackets",!1,function(et,nt,gt){gt&>!=kt.Init&&(et.removeKeyMap(ge),et.state.closeBrackets=null),nt&&(Ee(Te(nt,"pairs")),et.state.closeBrackets=nt,et.addKeyMap(ge))});function Te(et,nt){return nt=="pairs"&&typeof et=="string"?et:typeof et=="object"&&et[nt]!=null?et[nt]:ue[nt]}var ge={Backspace:fe,Enter:pe};function Ee(et){for(var nt=0;nt=0;pt--){var Lt=lt[pt].head;et.replaceRange("",xe(Lt.line,Lt.ch-1),xe(Lt.line,Lt.ch+1),"+delete")}}function pe(et){var nt=Ce(et),gt=nt&&Te(nt,"explode");if(!gt||et.getOption("disableInput"))return kt.Pass;for(var lt=et.listSelections(),pt=0;pt0;return{anchor:new xe(et.anchor.line,et.anchor.ch+(nt?-1:1)),head:new xe(et.head.line,et.head.ch+(nt?1:-1))}}function Be(et,nt){var gt=Ce(et);if(!gt||et.getOption("disableInput"))return kt.Pass;var lt=Te(gt,"pairs"),pt=lt.indexOf(nt);if(pt==-1)return kt.Pass;for(var vt=Te(gt,"closeBefore"),Lt=Te(gt,"triples"),Ft=lt.charAt(pt+1)==nt,Wt=et.listSelections(),Kt=pt%2==0,_t,ne=0;ne=0&&et.getRange(ve,xe(ve.line,ve.ch+3))==nt+nt+nt?re="skipThree":re="skip";else if(Ft&&ve.ch>1&&Lt.indexOf(nt)>=0&&et.getRange(xe(ve.line,ve.ch-2),ve)==nt+nt){if(ve.ch>2&&/\bstring/.test(et.getTokenTypeAt(xe(ve.line,ve.ch-2))))return kt.Pass;re="addFour"}else if(Ft){var me=ve.ch==0?" ":et.getRange(xe(ve.line,ve.ch-1),ve);if(!kt.isWordChar(Oe)&&me!=nt&&!kt.isWordChar(me))re="both";else return kt.Pass}else if(Kt&&(Oe.length===0||/\s/.test(Oe)||vt.indexOf(Oe)>-1))re="both";else return kt.Pass;if(!_t)_t=re;else if(_t!=re)return kt.Pass}var Fe=pt%2?lt.charAt(pt-1):nt,Pn=pt%2?nt:lt.charAt(pt+1);et.operation(function(){if(_t=="skip")et.execCommand("goCharRight");else if(_t=="skipThree")for(var vn=0;vn<3;vn++)et.execCommand("goCharRight");else if(_t=="surround"){for(var Mn=et.getSelections(),vn=0;vn'"]=function(je){return Te(je)}),fe.addKeyMap(Be)}});var ue=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],xe=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function Te(fe){if(fe.getOption("disableInput"))return kt.Pass;for(var pe=fe.listSelections(),le=[],Be=fe.getOption("autoCloseTags"),je=0;jeNt.ch&&(pt=pt.slice(0,pt.length-et.end+Nt.ch));var Wt=pt.toLowerCase();if(!pt||et.type=="string"&&(et.end!=Nt.ch||!/[\"\']/.test(et.string.charAt(et.string.length-1))||et.string.length==1)||et.type=="tag"&<.close||et.string.indexOf("/")==Nt.ch-et.start-1||Lt&&qt(Lt,Wt)>-1||Ce(fe,nt.mode.xmlCurrentContext&&nt.mode.xmlCurrentContext(gt)||[],pt,Nt,!0))return kt.Pass;var Kt=typeof Be=="object"&&Be.emptyTags;if(Kt&&qt(Kt,pt)>-1){le[je]={text:"/>",newPos:kt.Pos(Nt.line,Nt.ch+2)};continue}var _t=Ft&&qt(Ft,Wt)>-1;le[je]={indent:_t,text:">"+(_t?` -`:"")+"",newPos:_t?kt.Pos(Nt.line+1,0):kt.Pos(Nt.line,Nt.ch+1)}}for(var ne=typeof Be=="object"&&Be.dontIndentOnAutoClose,je=pe.length-1;je>=0;je--){var $t=le[je];fe.replaceRange($t.text,pe[je].head,pe[je].anchor,"+insert");var ve=fe.listSelections().slice(0);ve[je]={head:$t.newPos,anchor:$t.newPos},fe.setSelections(ve),!ne&&$t.indent&&(fe.indentLine($t.newPos.line,null,!0),fe.indentLine($t.newPos.line+1,null,!0))}}function ge(fe,pe){for(var le=fe.listSelections(),Be=[],je=pe?"/":""&&(Lt+=">"),Be[nt]=Lt}if(fe.replaceSelections(Be),le=fe.listSelections(),!et)for(var nt=0;nt=0&&pe[gt]==le;gt--)++nt;Be=et.to;for(var gt=1;gt=gt.max))return gt.ch=0,gt.text=gt.cm.getLine(++gt.line),!0}function pe(gt){if(!(gt.line<=gt.min))return gt.text=gt.cm.getLine(--gt.line),gt.ch=gt.text.length,!0}function le(gt){for(;;){var lt=gt.text.indexOf(">",gt.ch);if(lt==-1){if(fe(gt))continue;return}if(!Ce(gt,lt+1)){gt.ch=lt+1;continue}var pt=gt.text.lastIndexOf("/",lt),vt=pt>-1&&!/\S/.test(gt.text.slice(pt+1,lt));return gt.ch=lt+1,vt?"selfClose":"regular"}}function Be(gt){for(;;){var lt=gt.ch?gt.text.lastIndexOf("<",gt.ch-1):-1;if(lt==-1){if(pe(gt))continue;return}if(!Ce(gt,lt+1)){gt.ch=lt;continue}Ae.lastIndex=lt,gt.ch=lt;var pt=Ae.exec(gt.text);if(pt&&pt.index==lt)return pt}}function je(gt){for(;;){Ae.lastIndex=gt.ch;var lt=Ae.exec(gt.text);if(!lt){if(fe(gt))continue;return}if(!Ce(gt,lt.index+1)){gt.ch=lt.index+1;continue}return gt.ch=lt.index+lt[0].length,lt}}function Nt(gt){for(;;){var lt=gt.ch?gt.text.lastIndexOf(">",gt.ch-1):-1;if(lt==-1){if(pe(gt))continue;return}if(!Ce(gt,lt+1)){gt.ch=lt;continue}var pt=gt.text.lastIndexOf("/",lt),vt=pt>-1&&!/\S/.test(gt.text.slice(pt+1,lt));return gt.ch=lt+1,vt?"selfClose":"regular"}}function et(gt,lt){for(var pt=[];;){var vt=je(gt),Lt,Ft=gt.line,Wt=gt.ch-(vt?vt[0].length:0);if(!vt||!(Lt=le(gt)))return;if(Lt!="selfClose")if(vt[1]){for(var Kt=pt.length-1;Kt>=0;--Kt)if(pt[Kt]==vt[2]){pt.length=Kt;break}if(Kt<0&&(!lt||lt==vt[2]))return{tag:vt[2],from:ue(Ft,Wt),to:ue(gt.line,gt.ch)}}else pt.push(vt[2])}}function nt(gt,lt){for(var pt=[];;){var vt=Nt(gt);if(!vt)return;if(vt=="selfClose"){Be(gt);continue}var Lt=gt.line,Ft=gt.ch,Wt=Be(gt);if(!Wt)return;if(Wt[1])pt.push(Wt[2]);else{for(var Kt=pt.length-1;Kt>=0;--Kt)if(pt[Kt]==Wt[2]){pt.length=Kt;break}if(Kt<0&&(!lt||lt==Wt[2]))return{tag:Wt[2],from:ue(gt.line,gt.ch),to:ue(Lt,Ft)}}}}kt.registerHelper("fold","xml",function(gt,lt){for(var pt=new qt(gt,lt.line,0);;){var vt=je(pt);if(!vt||pt.line!=lt.line)return;var Lt=le(pt);if(!Lt)return;if(!vt[1]&&Lt!="selfClose"){var Ft=ue(pt.line,pt.ch),Wt=et(pt,vt[2]);return Wt&&xe(Wt.from,Ft)>0?{from:Ft,to:Wt.from}:null}}}),kt.findMatchingTag=function(gt,lt,pt){var vt=new qt(gt,lt.line,lt.ch,pt);if(!(vt.text.indexOf(">")==-1&&vt.text.indexOf("<")==-1)){var Lt=le(vt),Ft=Lt&&ue(vt.line,vt.ch),Wt=Lt&&Be(vt);if(!(!Lt||!Wt||xe(vt,lt)>0)){var Kt={from:ue(vt.line,vt.ch),to:Ft,tag:Wt[2]};return Lt=="selfClose"?{open:Kt,close:null,at:"open"}:Wt[1]?{open:nt(vt,Wt[2]),close:Kt,at:"close"}:(vt=new qt(gt,Ft.line,Ft.ch,pt),{open:Kt,close:et(vt,Wt[2]),at:"open"})}}},kt.findEnclosingTag=function(gt,lt,pt,vt){for(var Lt=new qt(gt,lt.line,lt.ch,pt);;){var Ft=nt(Lt,vt);if(!Ft)break;var Wt=new qt(gt,lt.line,lt.ch,pt),Kt=et(Wt,Ft.tag);if(Kt)return{open:Ft,close:Kt}}},kt.scanForClosingTag=function(gt,lt,pt,vt){var Lt=new qt(gt,lt.line,lt.ch,vt?{from:0,to:vt}:null);return et(Lt,pt)}})},89780:function(Ye){(function(pn,Yt){Ye.exports=Yt()})(this,function(){"use strict";var pn=navigator.userAgent,Yt=navigator.platform,kt=/gecko\/\d/i.test(pn),ue=/MSIE \d/.test(pn),xe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(pn),Te=/Edge\/(\d+)/.exec(pn),ge=ue||xe||Te,Ae=ge&&(ue?document.documentMode||6:+(Te||xe)[1]),qt=!Te&&/WebKit\//.test(pn),Ce=qt&&/Qt\/\d+\.\d+/.test(pn),fe=!Te&&/Chrome\//.test(pn),pe=/Opera\//.test(pn),le=/Apple Computer/.test(navigator.vendor),Be=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(pn),je=/PhantomJS/.test(pn),Nt=!Te&&/AppleWebKit/.test(pn)&&/Mobile\/\w+/.test(pn),et=/Android/.test(pn),nt=Nt||et||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(pn),gt=Nt||/Mac/.test(Yt),lt=/\bCrOS\b/.test(pn),pt=/win/i.test(Yt),vt=pe&&pn.match(/Version\/(\d*\.\d*)/);vt&&(vt=Number(vt[1])),vt&&vt>=15&&(pe=!1,qt=!0);var Lt=gt&&(Ce||pe&&(vt==null||vt<12.11)),Ft=kt||ge&&Ae>=9;function Wt(it){return new RegExp("(^|\\s)"+it+"(?:$|\\s)\\s*")}var Kt=function(it,st){var dt=it.className,ht=Wt(st).exec(dt);if(ht){var ft=dt.slice(ht.index+ht[0].length);it.className=dt.slice(0,ht.index)+(ft?ht[1]+ft:"")}};function _t(it){for(var st=it.childNodes.length;st>0;--st)it.removeChild(it.firstChild);return it}function ne(it,st){return _t(it).appendChild(st)}function $t(it,st,dt,ht){var ft=document.createElement(it);if(dt&&(ft.className=dt),ht&&(ft.style.cssText=ht),typeof st=="string")ft.appendChild(document.createTextNode(st));else if(st)for(var Pt=0;Pt=st)return Et+(st-Pt);Et+=It-Pt,Et+=dt-Et%dt,Pt=It+1}}var Gt=function(){this.id=null,this.f=null,this.time=0,this.handler=Mn(this.onTimeout,this)};Gt.prototype.onTimeout=function(it){it.id=0,it.time<=+new Date?it.f():setTimeout(it.handler,it.time-+new Date)},Gt.prototype.set=function(it,st){this.f=st;var dt=+new Date+it;(!this.id||dt=st)return ht+Math.min(Et,st-ft);if(ft+=Pt-ht,ft+=dt-ft%dt,ht=Pt+1,ft>=st)return ht}}var sn=[""];function kn(it){for(;sn.length<=it;)sn.push(te(sn)+" ");return sn[it]}function te(it){return it[it.length-1]}function Ve(it,st){for(var dt=[],ht=0;ht"\x80"&&(it.toUpperCase()!=it.toLowerCase()||Vn.test(it))}function Qn(it,st){return st?st.source.indexOf("\\w")>-1&&vi(it)?!0:st.test(it):vi(it)}function wi(it){for(var st in it)if(it.hasOwnProperty(st)&&it[st])return!1;return!0}var Ci=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function an(it){return it.charCodeAt(0)>=768&&Ci.test(it)}function Nn(it,st,dt){for(;(dt<0?st>0:stdt?-1:1;;){if(st==dt)return st;var ft=(st+dt)/2,Pt=ht<0?Math.ceil(ft):Math.floor(ft);if(Pt==st)return it(Pt)?st:dt;it(Pt)?dt=Pt:st=Pt+ht}}function Ot(it,st,dt,ht){if(!it)return ht(st,dt,"ltr",0);for(var ft=!1,Pt=0;Ptst||st==dt&&Et.to==st)&&(ht(Math.max(Et.from,st),Math.min(Et.to,dt),Et.level==1?"rtl":"ltr",Pt),ft=!0)}ft||ht(st,dt,"ltr")}var Ct=null;function xt(it,st,dt){var ht;Ct=null;for(var ft=0;ftst)return ft;Pt.to==st&&(Pt.from!=Pt.to&&dt=="before"?ht=ft:Ct=ft),Pt.from==st&&(Pt.from!=Pt.to&&dt!="before"?ht=ft:Ct=ft)}return ht!=null?ht:Ct}var Bt=function(){var it="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",st="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function dt(Vt){return Vt<=247?it.charAt(Vt):1424<=Vt&&Vt<=1524?"R":1536<=Vt&&Vt<=1785?st.charAt(Vt-1536):1774<=Vt&&Vt<=2220?"r":8192<=Vt&&Vt<=8203?"w":Vt==8204?"b":"L"}var ht=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ft=/[stwN]/,Pt=/[LRr]/,Et=/[Lb1n]/,It=/[1n]/;function bt(Vt,ae,Qt){this.level=Vt,this.from=ae,this.to=Qt}return function(Vt,ae){var Qt=ae=="ltr"?"L":"R";if(Vt.length==0||ae=="ltr"&&!ht.test(Vt))return!1;for(var Le=Vt.length,Pe=[],$e=0;$e-1&&(ht[st]=ft.slice(0,Pt).concat(ft.slice(Pt+1)))}}}function tn(it,st){var dt=_e(it,st);if(dt.length)for(var ht=Array.prototype.slice.call(arguments,2),ft=0;ft0}function si(it){it.prototype.on=function(st,dt){se(this,st,dt)},it.prototype.off=function(st,dt){nn(this,st,dt)}}function Mi(it){it.preventDefault?it.preventDefault():it.returnValue=!1}function qi(it){it.stopPropagation?it.stopPropagation():it.cancelBubble=!0}function oo(it){return it.defaultPrevented!=null?it.defaultPrevented:it.returnValue==!1}function pr(it){Mi(it),qi(it)}function Ho(it){return it.target||it.srcElement}function mr(it){var st=it.which;return st==null&&(it.button&1?st=1:it.button&2?st=3:it.button&4&&(st=2)),gt&&it.ctrlKey&&st==1&&(st=3),st}var so=function(){if(ge&&Ae<9)return!1;var it=$t("div");return"draggable"in it||"dragDrop"in it}(),xo;function Yr(it){if(xo==null){var st=$t("span","\u200B");ne(it,$t("span",[st,document.createTextNode("x")])),it.firstChild.offsetHeight!=0&&(xo=st.offsetWidth<=1&&st.offsetHeight>2&&!(ge&&Ae<8))}var dt=xo?$t("span","\u200B"):$t("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return dt.setAttribute("cm-text",""),dt}var Cr;function No(it){if(Cr!=null)return Cr;var st=ne(it,document.createTextNode("A\u062EA")),dt=re(st,0,1).getBoundingClientRect(),ht=re(st,1,2).getBoundingClientRect();return _t(it),!dt||dt.left==dt.right?!1:Cr=ht.right-dt.right<3}var yi=` +`:"")+"",newPos:_t?kt.Pos(Nt.line+1,0):kt.Pos(Nt.line,Nt.ch+1)}}for(var ne=typeof Be=="object"&&Be.dontIndentOnAutoClose,je=pe.length-1;je>=0;je--){var $t=le[je];fe.replaceRange($t.text,pe[je].head,pe[je].anchor,"+insert");var ve=fe.listSelections().slice(0);ve[je]={head:$t.newPos,anchor:$t.newPos},fe.setSelections(ve),!ne&&$t.indent&&(fe.indentLine($t.newPos.line,null,!0),fe.indentLine($t.newPos.line+1,null,!0))}}function ge(fe,pe){for(var le=fe.listSelections(),Be=[],je=pe?"/":""&&(Lt+=">"),Be[nt]=Lt}if(fe.replaceSelections(Be),le=fe.listSelections(),!et)for(var nt=0;nt=0&&pe[gt]==le;gt--)++nt;Be=et.to;for(var gt=1;gt=gt.max))return gt.ch=0,gt.text=gt.cm.getLine(++gt.line),!0}function pe(gt){if(!(gt.line<=gt.min))return gt.text=gt.cm.getLine(--gt.line),gt.ch=gt.text.length,!0}function le(gt){for(;;){var lt=gt.text.indexOf(">",gt.ch);if(lt==-1){if(fe(gt))continue;return}if(!Ce(gt,lt+1)){gt.ch=lt+1;continue}var pt=gt.text.lastIndexOf("/",lt),vt=pt>-1&&!/\S/.test(gt.text.slice(pt+1,lt));return gt.ch=lt+1,vt?"selfClose":"regular"}}function Be(gt){for(;;){var lt=gt.ch?gt.text.lastIndexOf("<",gt.ch-1):-1;if(lt==-1){if(pe(gt))continue;return}if(!Ce(gt,lt+1)){gt.ch=lt;continue}Ee.lastIndex=lt,gt.ch=lt;var pt=Ee.exec(gt.text);if(pt&&pt.index==lt)return pt}}function je(gt){for(;;){Ee.lastIndex=gt.ch;var lt=Ee.exec(gt.text);if(!lt){if(fe(gt))continue;return}if(!Ce(gt,lt.index+1)){gt.ch=lt.index+1;continue}return gt.ch=lt.index+lt[0].length,lt}}function Nt(gt){for(;;){var lt=gt.ch?gt.text.lastIndexOf(">",gt.ch-1):-1;if(lt==-1){if(pe(gt))continue;return}if(!Ce(gt,lt+1)){gt.ch=lt;continue}var pt=gt.text.lastIndexOf("/",lt),vt=pt>-1&&!/\S/.test(gt.text.slice(pt+1,lt));return gt.ch=lt+1,vt?"selfClose":"regular"}}function et(gt,lt){for(var pt=[];;){var vt=je(gt),Lt,Ft=gt.line,Wt=gt.ch-(vt?vt[0].length:0);if(!vt||!(Lt=le(gt)))return;if(Lt!="selfClose")if(vt[1]){for(var Kt=pt.length-1;Kt>=0;--Kt)if(pt[Kt]==vt[2]){pt.length=Kt;break}if(Kt<0&&(!lt||lt==vt[2]))return{tag:vt[2],from:ue(Ft,Wt),to:ue(gt.line,gt.ch)}}else pt.push(vt[2])}}function nt(gt,lt){for(var pt=[];;){var vt=Nt(gt);if(!vt)return;if(vt=="selfClose"){Be(gt);continue}var Lt=gt.line,Ft=gt.ch,Wt=Be(gt);if(!Wt)return;if(Wt[1])pt.push(Wt[2]);else{for(var Kt=pt.length-1;Kt>=0;--Kt)if(pt[Kt]==Wt[2]){pt.length=Kt;break}if(Kt<0&&(!lt||lt==Wt[2]))return{tag:Wt[2],from:ue(gt.line,gt.ch),to:ue(Lt,Ft)}}}}kt.registerHelper("fold","xml",function(gt,lt){for(var pt=new qt(gt,lt.line,0);;){var vt=je(pt);if(!vt||pt.line!=lt.line)return;var Lt=le(pt);if(!Lt)return;if(!vt[1]&&Lt!="selfClose"){var Ft=ue(pt.line,pt.ch),Wt=et(pt,vt[2]);return Wt&&xe(Wt.from,Ft)>0?{from:Ft,to:Wt.from}:null}}}),kt.findMatchingTag=function(gt,lt,pt){var vt=new qt(gt,lt.line,lt.ch,pt);if(!(vt.text.indexOf(">")==-1&&vt.text.indexOf("<")==-1)){var Lt=le(vt),Ft=Lt&&ue(vt.line,vt.ch),Wt=Lt&&Be(vt);if(!(!Lt||!Wt||xe(vt,lt)>0)){var Kt={from:ue(vt.line,vt.ch),to:Ft,tag:Wt[2]};return Lt=="selfClose"?{open:Kt,close:null,at:"open"}:Wt[1]?{open:nt(vt,Wt[2]),close:Kt,at:"close"}:(vt=new qt(gt,Ft.line,Ft.ch,pt),{open:Kt,close:et(vt,Wt[2]),at:"open"})}}},kt.findEnclosingTag=function(gt,lt,pt,vt){for(var Lt=new qt(gt,lt.line,lt.ch,pt);;){var Ft=nt(Lt,vt);if(!Ft)break;var Wt=new qt(gt,lt.line,lt.ch,pt),Kt=et(Wt,Ft.tag);if(Kt)return{open:Ft,close:Kt}}},kt.scanForClosingTag=function(gt,lt,pt,vt){var Lt=new qt(gt,lt.line,lt.ch,vt?{from:0,to:vt}:null);return et(Lt,pt)}})},89780:function(Ye){(function(pn,Yt){Ye.exports=Yt()})(this,function(){"use strict";var pn=navigator.userAgent,Yt=navigator.platform,kt=/gecko\/\d/i.test(pn),ue=/MSIE \d/.test(pn),xe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(pn),Te=/Edge\/(\d+)/.exec(pn),ge=ue||xe||Te,Ee=ge&&(ue?document.documentMode||6:+(Te||xe)[1]),qt=!Te&&/WebKit\//.test(pn),Ce=qt&&/Qt\/\d+\.\d+/.test(pn),fe=!Te&&/Chrome\//.test(pn),pe=/Opera\//.test(pn),le=/Apple Computer/.test(navigator.vendor),Be=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(pn),je=/PhantomJS/.test(pn),Nt=!Te&&/AppleWebKit/.test(pn)&&/Mobile\/\w+/.test(pn),et=/Android/.test(pn),nt=Nt||et||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(pn),gt=Nt||/Mac/.test(Yt),lt=/\bCrOS\b/.test(pn),pt=/win/i.test(Yt),vt=pe&&pn.match(/Version\/(\d*\.\d*)/);vt&&(vt=Number(vt[1])),vt&&vt>=15&&(pe=!1,qt=!0);var Lt=gt&&(Ce||pe&&(vt==null||vt<12.11)),Ft=kt||ge&&Ee>=9;function Wt(it){return new RegExp("(^|\\s)"+it+"(?:$|\\s)\\s*")}var Kt=function(it,st){var dt=it.className,ht=Wt(st).exec(dt);if(ht){var ft=dt.slice(ht.index+ht[0].length);it.className=dt.slice(0,ht.index)+(ft?ht[1]+ft:"")}};function _t(it){for(var st=it.childNodes.length;st>0;--st)it.removeChild(it.firstChild);return it}function ne(it,st){return _t(it).appendChild(st)}function $t(it,st,dt,ht){var ft=document.createElement(it);if(dt&&(ft.className=dt),ht&&(ft.style.cssText=ht),typeof st=="string")ft.appendChild(document.createTextNode(st));else if(st)for(var Pt=0;Pt=st)return At+(st-Pt);At+=It-Pt,At+=dt-At%dt,Pt=It+1}}var Gt=function(){this.id=null,this.f=null,this.time=0,this.handler=Mn(this.onTimeout,this)};Gt.prototype.onTimeout=function(it){it.id=0,it.time<=+new Date?it.f():setTimeout(it.handler,it.time-+new Date)},Gt.prototype.set=function(it,st){this.f=st;var dt=+new Date+it;(!this.id||dt=st)return ht+Math.min(At,st-ft);if(ft+=Pt-ht,ft+=dt-ft%dt,ht=Pt+1,ft>=st)return ht}}var sn=[""];function kn(it){for(;sn.length<=it;)sn.push(te(sn)+" ");return sn[it]}function te(it){return it[it.length-1]}function Ve(it,st){for(var dt=[],ht=0;ht"\x80"&&(it.toUpperCase()!=it.toLowerCase()||Vn.test(it))}function Qn(it,st){return st?st.source.indexOf("\\w")>-1&&vi(it)?!0:st.test(it):vi(it)}function wi(it){for(var st in it)if(it.hasOwnProperty(st)&&it[st])return!1;return!0}var Ci=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function an(it){return it.charCodeAt(0)>=768&&Ci.test(it)}function Nn(it,st,dt){for(;(dt<0?st>0:stdt?-1:1;;){if(st==dt)return st;var ft=(st+dt)/2,Pt=ht<0?Math.ceil(ft):Math.floor(ft);if(Pt==st)return it(Pt)?st:dt;it(Pt)?dt=Pt:st=Pt+ht}}function Ot(it,st,dt,ht){if(!it)return ht(st,dt,"ltr",0);for(var ft=!1,Pt=0;Ptst||st==dt&&At.to==st)&&(ht(Math.max(At.from,st),Math.min(At.to,dt),At.level==1?"rtl":"ltr",Pt),ft=!0)}ft||ht(st,dt,"ltr")}var Ct=null;function xt(it,st,dt){var ht;Ct=null;for(var ft=0;ftst)return ft;Pt.to==st&&(Pt.from!=Pt.to&&dt=="before"?ht=ft:Ct=ft),Pt.from==st&&(Pt.from!=Pt.to&&dt!="before"?ht=ft:Ct=ft)}return ht!=null?ht:Ct}var Bt=function(){var it="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",st="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function dt(Vt){return Vt<=247?it.charAt(Vt):1424<=Vt&&Vt<=1524?"R":1536<=Vt&&Vt<=1785?st.charAt(Vt-1536):1774<=Vt&&Vt<=2220?"r":8192<=Vt&&Vt<=8203?"w":Vt==8204?"b":"L"}var ht=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ft=/[stwN]/,Pt=/[LRr]/,At=/[Lb1n]/,It=/[1n]/;function bt(Vt,ae,Qt){this.level=Vt,this.from=ae,this.to=Qt}return function(Vt,ae){var Qt=ae=="ltr"?"L":"R";if(Vt.length==0||ae=="ltr"&&!ht.test(Vt))return!1;for(var Le=Vt.length,Pe=[],$e=0;$e-1&&(ht[st]=ft.slice(0,Pt).concat(ft.slice(Pt+1)))}}}function tn(it,st){var dt=_e(it,st);if(dt.length)for(var ht=Array.prototype.slice.call(arguments,2),ft=0;ft0}function si(it){it.prototype.on=function(st,dt){se(this,st,dt)},it.prototype.off=function(st,dt){nn(this,st,dt)}}function Mi(it){it.preventDefault?it.preventDefault():it.returnValue=!1}function qi(it){it.stopPropagation?it.stopPropagation():it.cancelBubble=!0}function oo(it){return it.defaultPrevented!=null?it.defaultPrevented:it.returnValue==!1}function pr(it){Mi(it),qi(it)}function Ho(it){return it.target||it.srcElement}function mr(it){var st=it.which;return st==null&&(it.button&1?st=1:it.button&2?st=3:it.button&4&&(st=2)),gt&&it.ctrlKey&&st==1&&(st=3),st}var so=function(){if(ge&&Ee<9)return!1;var it=$t("div");return"draggable"in it||"dragDrop"in it}(),xo;function Yr(it){if(xo==null){var st=$t("span","\u200B");ne(it,$t("span",[st,document.createTextNode("x")])),it.firstChild.offsetHeight!=0&&(xo=st.offsetWidth<=1&&st.offsetHeight>2&&!(ge&&Ee<8))}var dt=xo?$t("span","\u200B"):$t("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return dt.setAttribute("cm-text",""),dt}var Cr;function No(it){if(Cr!=null)return Cr;var st=ne(it,document.createTextNode("A\u062EA")),dt=re(st,0,1).getBoundingClientRect(),ht=re(st,1,2).getBoundingClientRect();return _t(it),!dt||dt.left==dt.right?!1:Cr=ht.right-dt.right<3}var yi=` b`.split(/\n/).length!=3?function(it){for(var st=0,dt=[],ht=it.length;st<=ht;){var ft=it.indexOf(` -`,st);ft==-1&&(ft=it.length);var Pt=it.slice(st,it.charAt(ft-1)=="\r"?ft-1:ft),Et=Pt.indexOf("\r");Et!=-1?(dt.push(Pt.slice(0,Et)),st+=Et+1):(dt.push(Pt),st=ft+1)}return dt}:function(it){return it.split(/\r\n?|\n/)},wt=window.getSelection?function(it){try{return it.selectionStart!=it.selectionEnd}catch(st){return!1}}:function(it){var st;try{st=it.ownerDocument.selection.createRange()}catch(dt){}return!st||st.parentElement()!=it?!1:st.compareEndPoints("StartToEnd",st)!=0},As=function(){var it=$t("div");return"oncopy"in it?!0:(it.setAttribute("oncopy","return;"),typeof it.oncopy=="function")}(),Gn=null;function Ri(it){if(Gn!=null)return Gn;var st=ne(it,$t("span","x")),dt=st.getBoundingClientRect(),ht=re(st,0,1).getBoundingClientRect();return Gn=Math.abs(dt.left-ht.left)>1}var Io={},Jo={};function Or(it,st){arguments.length>2&&(st.dependencies=Array.prototype.slice.call(arguments,2)),Io[it]=st}function To(it,st){Jo[it]=st}function jr(it){if(typeof it=="string"&&Jo.hasOwnProperty(it))it=Jo[it];else if(it&&typeof it.name=="string"&&Jo.hasOwnProperty(it.name)){var st=Jo[it.name];typeof st=="string"&&(st={name:st}),it=Sn(st,it),it.name=st.name}else{if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(it))return jr("application/xml");if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(it))return jr("application/json")}return typeof it=="string"?{name:it}:it||{name:"null"}}function De(it,st){st=jr(st);var dt=Io[st.name];if(!dt)return De(it,"text/plain");var ht=dt(it,st);if(ye.hasOwnProperty(st.name)){var ft=ye[st.name];for(var Pt in ft)ft.hasOwnProperty(Pt)&&(ht.hasOwnProperty(Pt)&&(ht["_"+Pt]=ht[Pt]),ht[Pt]=ft[Pt])}if(ht.name=st.name,st.helperType&&(ht.helperType=st.helperType),st.modeProps)for(var Et in st.modeProps)ht[Et]=st.modeProps[Et];return ht}var ye={};function he(it,st){var dt=ye.hasOwnProperty(it)?ye[it]:ye[it]={};In(st,dt)}function Dn(it,st){if(st===!0)return st;if(it.copyState)return it.copyState(st);var dt={};for(var ht in st){var ft=st[ht];ft instanceof Array&&(ft=ft.concat([])),dt[ht]=ft}return dt}function ci(it,st){for(var dt;it.innerMode&&(dt=it.innerMode(st),!(!dt||dt.mode==it));)st=dt.state,it=dt.mode;return dt||{mode:it,state:st}}function hi(it,st,dt){return it.startState?it.startState(st,dt):!0}var Ze=function(it,st,dt){this.pos=this.start=0,this.string=it,this.tabSize=st||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=dt};Ze.prototype.eol=function(){return this.pos>=this.string.length},Ze.prototype.sol=function(){return this.pos==this.lineStart},Ze.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ze.prototype.next=function(){if(this.posst},Ze.prototype.eatSpace=function(){for(var it=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>it},Ze.prototype.skipToEnd=function(){this.pos=this.string.length},Ze.prototype.skipTo=function(it){var st=this.string.indexOf(it,this.pos);if(st>-1)return this.pos=st,!0},Ze.prototype.backUp=function(it){this.pos-=it},Ze.prototype.column=function(){return this.lastColumnPos0?null:(Pt&&st!==!1&&(this.pos+=Pt[0].length),Pt)}},Ze.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ze.prototype.hideFirstChars=function(it,st){this.lineStart+=it;try{return st()}finally{this.lineStart-=it}},Ze.prototype.lookAhead=function(it){var st=this.lineOracle;return st&&st.lookAhead(it)},Ze.prototype.baseToken=function(){var it=this.lineOracle;return it&&it.baseToken(this.pos)};function En(it,st){if(st-=it.first,st<0||st>=it.size)throw new Error("There is no line "+(st+it.first)+" in the document.");for(var dt=it;!dt.lines;)for(var ht=0;;++ht){var ft=dt.children[ht],Pt=ft.chunkSize();if(st=it.first&&stdt?we(dt,En(it,dt).text.length):lo(st,En(it,st.line).text.length)}function lo(it,st){var dt=it.ch;return dt==null||dt>st?we(it.line,st):dt<0?we(it.line,0):it}function ur(it,st){for(var dt=[],ht=0;htthis.maxLookAhead&&(this.maxLookAhead=it),st},Re.prototype.baseToken=function(it){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=it;)this.baseTokenPos+=2;var st=this.baseTokens[this.baseTokenPos+1];return{type:st&&st.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-it}},Re.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Re.fromSaved=function(it,st,dt){return st instanceof Fo?new Re(it,Dn(it.mode,st.state),dt,st.lookAhead):new Re(it,Dn(it.mode,st),dt)},Re.prototype.save=function(it){var st=it!==!1?Dn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Fo(st,this.maxLookAhead):st};function vo(it,st,dt,ht){var ft=[it.state.modeGen],Pt={};no(it,st.text,it.doc.mode,dt,function(Vt,ae){return ft.push(Vt,ae)},Pt,ht);for(var Et=dt.state,It=function(Vt){dt.baseTokens=ft;var ae=it.state.overlays[Vt],Qt=1,Le=0;dt.state=!0,no(it,st.text,ae.mode,dt,function(Pe,$e){for(var rn=Qt;LePe&&ft.splice(Qt,1,Pe,ft[Qt+1],mn),Qt+=2,Le=Math.min(Pe,mn)}if($e)if(ae.opaque)ft.splice(rn,Qt-rn,Pe,"overlay "+$e),Qt=rn+2;else for(;rnit.options.maxHighlightLength&&Dn(it.doc.mode,ht.state),Pt=vo(it,st,ht);ft&&(ht.state=ft),st.stateAfter=ht.save(!ft),st.styles=Pt.styles,Pt.classes?st.styleClasses=Pt.classes:st.styleClasses&&(st.styleClasses=null),dt===it.doc.highlightFrontier&&(it.doc.modeFrontier=Math.max(it.doc.modeFrontier,++it.doc.highlightFrontier))}return st.styles}function ji(it,st,dt){var ht=it.doc,ft=it.display;if(!ht.mode.startState)return new Re(ht,!0,st);var Pt=zi(it,st,dt),Et=Pt>ht.first&&En(ht,Pt-1).stateAfter,It=Et?Re.fromSaved(ht,Et,Pt):new Re(ht,hi(ht.mode),Pt);return ht.iter(Pt,st,function(bt){Me(it,bt.text,It);var Vt=It.line;bt.stateAfter=Vt==st-1||Vt%5==0||Vt>=ft.viewFrom&&Vtst.start)return Pt}throw new Error("Mode "+it.name+" failed to advance stream.")}var Zn=function(it,st,dt){this.start=it.start,this.end=it.pos,this.string=it.current(),this.type=st||null,this.state=dt};function Kn(it,st,dt,ht){var ft=it.doc,Pt=ft.mode,Et;st=Wn(ft,st);var It=En(ft,st.line),bt=ji(it,st.line,dt),Vt=new Ze(It.text,it.options.tabSize,bt),ae;for(ht&&(ae=[]);(ht||Vt.posit.options.maxHighlightLength?(It=!1,Et&&Me(it,st,ht,ae.pos),ae.pos=st.length,Qt=null):Qt=Li(Hn(dt,ae,ht.state,Le),Pt),Le){var Pe=Le[0].name;Pe&&(Qt="m-"+(Qt?Pe+" "+Qt:Pe))}if(!It||Vt!=Qt){for(;btEt;--It){if(It<=Pt.first)return Pt.first;var bt=En(Pt,It-1),Vt=bt.stateAfter;if(Vt&&(!dt||It+(Vt instanceof Fo?Vt.lookAhead:0)<=Pt.modeFrontier))return It;var ae=Zt(bt.text,null,it.options.tabSize);(ft==null||ht>ae)&&(ft=It-1,ht=ae)}return ft}function Gi(it,st){if(it.modeFrontier=Math.min(it.modeFrontier,st),!(it.highlightFrontierdt;ht--){var ft=En(it,ht).stateAfter;if(ft&&(!(ft instanceof Fo)||ht+ft.lookAhead=st:Pt.to>st);(ht||(ht=[])).push(new Yi(Et,Pt.from,bt?null:Pt.to))}}return ht}function Bi(it,st,dt){var ht;if(it)for(var ft=0;ft=st:Pt.to>st);if(It||Pt.from==st&&Et.type=="bookmark"&&(!dt||Pt.marker.insertLeft)){var bt=Pt.from==null||(Et.inclusiveLeft?Pt.from<=st:Pt.from0&&It)for(var ti=0;ti0)){var ae=[bt,1],Qt=Je(Vt.from,It.from),Le=Je(Vt.to,It.to);(Qt<0||!Et.inclusiveLeft&&!Qt)&&ae.push({from:Vt.from,to:It.from}),(Le>0||!Et.inclusiveRight&&!Le)&&ae.push({from:It.to,to:Vt.to}),ft.splice.apply(ft,ae),bt+=ae.length-3}}return ft}function An(it){var st=it.markedSpans;if(st){for(var dt=0;dtst)&&(!ht||Nl(ht,Pt.marker)<0)&&(ht=Pt.marker)}return ht}function ed(it,st,dt,ht,ft){var Pt=En(it,st),Et=ze&&Pt.markedSpans;if(Et)for(var It=0;It=0&&Qt<=0||ae<=0&&Qt>=0)&&(ae<=0&&(bt.marker.inclusiveRight&&ft.inclusiveLeft?Je(Vt.to,dt)>=0:Je(Vt.to,dt)>0)||ae>=0&&(bt.marker.inclusiveRight&&ft.inclusiveLeft?Je(Vt.from,ht)<=0:Je(Vt.from,ht)<0)))return!0}}}function wo(it){for(var st;st=Tl(it);)it=st.find(-1,!0).line;return it}function Qo(it){for(var st;st=Pu(it);)it=st.find(1,!0).line;return it}function sa(it){for(var st,dt;st=Pu(it);)it=st.find(1,!0).line,(dt||(dt=[])).push(it);return dt}function li(it,st){var dt=En(it,st),ht=wo(dt);return dt==ht?st:ee(ht)}function Un(it,st){if(st>it.lastLine())return st;var dt=En(it,st),ht;if(!Xe(it,dt))return st;for(;ht=Pu(dt);)dt=ht.find(1,!0).line;return ee(dt)+1}function Xe(it,st){var dt=ze&&st.markedSpans;if(dt){for(var ht=void 0,ft=0;ftst.maxLineLength&&(st.maxLineLength=ft,st.maxLine=ht)})}var Wo=function(it,st,dt){this.text=it,jt(this,st),this.height=dt?dt(this):1};Wo.prototype.lineNo=function(){return ee(this)},si(Wo);function vr(it,st,dt,ht){it.text=st,it.stateAfter&&(it.stateAfter=null),it.styles&&(it.styles=null),it.order!=null&&(it.order=null),An(it),jt(it,dt);var ft=ht?ht(it):1;ft!=it.height&&ao(it,ft)}function qo(it){it.parent=null,An(it)}var Ca={},zs={};function Fl(it,st){if(!it||/^\s*$/.test(it))return null;var dt=st.addModeClass?zs:Ca;return dt[it]||(dt[it]=it.replace(/\S+/g,"cm-$&"))}function de(it,st){var dt=ve("span",null,null,qt?"padding-right: .1px":null),ht={pre:ve("pre",[dt],"CodeMirror-line"),content:dt,col:0,pos:0,cm:it,trailingSpace:!1,splitSpaces:it.getOption("lineWrapping")};st.measure={};for(var ft=0;ft<=(st.rest?st.rest.length:0);ft++){var Pt=ft?st.rest[ft-1]:st.line,Et=void 0;ht.pos=0,ht.addToken=wu,No(it.display.measure)&&(Et=Rt(Pt,it.doc.direction))&&(ht.addToken=Cu(ht.addToken,Et)),ht.map=[];var It=st!=it.display.externalMeasured&&ee(Pt);_a(Pt,ht,uo(it,Pt,It)),Pt.styleClasses&&(Pt.styleClasses.bgClass&&(ht.bgClass=Pn(Pt.styleClasses.bgClass,ht.bgClass||"")),Pt.styleClasses.textClass&&(ht.textClass=Pn(Pt.styleClasses.textClass,ht.textClass||""))),ht.map.length==0&&ht.map.push(0,0,ht.content.appendChild(Yr(it.display.measure))),ft==0?(st.measure.map=ht.map,st.measure.cache={}):((st.measure.maps||(st.measure.maps=[])).push(ht.map),(st.measure.caches||(st.measure.caches=[])).push({}))}if(qt){var bt=ht.content.lastChild;(/\bcm-tab\b/.test(bt.className)||bt.querySelector&&bt.querySelector(".cm-tab"))&&(ht.content.className="cm-tab-wrap-hack")}return tn(it,"renderLine",it,st.line,ht.pre),ht.pre.className&&(ht.textClass=Pn(ht.pre.className,ht.textClass||"")),ht}function Es(it){var st=$t("span","\u2022","cm-invalidchar");return st.title="\\u"+it.charCodeAt(0).toString(16),st.setAttribute("aria-label",st.title),st}function wu(it,st,dt,ht,ft,Pt,Et){if(st){var It=it.splitSpaces?ja(st,it.trailingSpace):st,bt=it.cm.state.specialChars,Vt=!1,ae;if(!bt.test(st))it.col+=st.length,ae=document.createTextNode(It),it.map.push(it.pos,it.pos+st.length,ae),ge&&Ae<9&&(Vt=!0),it.pos+=st.length;else{ae=document.createDocumentFragment();for(var Qt=0;;){bt.lastIndex=Qt;var Le=bt.exec(st),Pe=Le?Le.index-Qt:st.length-Qt;if(Pe){var $e=document.createTextNode(It.slice(Qt,Qt+Pe));ge&&Ae<9?ae.appendChild($t("span",[$e])):ae.appendChild($e),it.map.push(it.pos,it.pos+Pe,$e),it.col+=Pe,it.pos+=Pe}if(!Le)break;Qt+=Pe+1;var rn=void 0;if(Le[0]==" "){var mn=it.cm.options.tabSize,Bn=mn-it.col%mn;rn=ae.appendChild($t("span",kn(Bn),"cm-tab")),rn.setAttribute("role","presentation"),rn.setAttribute("cm-text"," "),it.col+=Bn}else Le[0]=="\r"||Le[0]==` -`?(rn=ae.appendChild($t("span",Le[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),rn.setAttribute("cm-text",Le[0]),it.col+=1):(rn=it.cm.options.specialCharPlaceholder(Le[0]),rn.setAttribute("cm-text",Le[0]),ge&&Ae<9?ae.appendChild($t("span",[rn])):ae.appendChild(rn),it.col+=1);it.map.push(it.pos,it.pos+1,rn),it.pos++}}if(it.trailingSpace=It.charCodeAt(st.length-1)==32,dt||ht||ft||Vt||Pt||Et){var Xn=dt||"";ht&&(Xn+=ht),ft&&(Xn+=ft);var zn=$t("span",[ae],Xn,Pt);if(Et)for(var ti in Et)Et.hasOwnProperty(ti)&&ti!="style"&&ti!="class"&&zn.setAttribute(ti,Et[ti]);return it.content.appendChild(zn)}it.content.appendChild(ae)}}function ja(it,st){if(it.length>1&&!/ /.test(it))return it;for(var dt=st,ht="",ft=0;ftVt&&Qt.from<=Vt));Le++);if(Qt.to>=ae)return it(dt,ht,ft,Pt,Et,It,bt);it(dt,ht.slice(0,Qt.to-Vt),ft,Pt,null,It,bt),Pt=null,ht=ht.slice(Qt.to-Vt),Vt=Qt.to}}}function _o(it,st,dt,ht){var ft=!ht&&dt.widgetNode;ft&&it.map.push(it.pos,it.pos+st,ft),!ht&&it.cm.display.input.needsContentAttribute&&(ft||(ft=it.content.appendChild(document.createElement("span"))),ft.setAttribute("cm-marker",dt.id)),ft&&(it.cm.display.input.setUneditable(ft),it.content.appendChild(ft)),it.pos+=st,it.trailingSpace=!1}function _a(it,st,dt){var ht=it.markedSpans,ft=it.text,Pt=0;if(!ht){for(var Et=1;Etbt||Oi.collapsed&&On.to==bt&&On.from==bt)){if(On.to!=null&&On.to!=bt&&Pe>On.to&&(Pe=On.to,rn=""),Oi.className&&($e+=" "+Oi.className),Oi.css&&(Le=(Le?Le+";":"")+Oi.css),Oi.startStyle&&On.from==bt&&(mn+=" "+Oi.startStyle),Oi.endStyle&&On.to==Pe&&(ti||(ti=[])).push(Oi.endStyle,On.to),Oi.title&&((Xn||(Xn={})).title=Oi.title),Oi.attributes)for(var nr in Oi.attributes)(Xn||(Xn={}))[nr]=Oi.attributes[nr];Oi.collapsed&&(!Bn||Nl(Bn.marker,Oi)<0)&&(Bn=On)}else On.from>bt&&Pe>On.from&&(Pe=On.from)}if(ti)for(var Qr=0;Qr=It)break;for(var ta=Math.min(It,Pe);;){if(ae){var Bs=bt+ae.length;if(!Bn){var Hr=Bs>ta?ae.slice(0,ta-bt):ae;st.addToken(st,Hr,Qt?Qt+$e:$e,mn,bt+Hr.length==Pe?rn:"",Le,Xn)}if(Bs>=ta){ae=ae.slice(ta-bt),bt=ta;break}bt=Bs,mn=""}ae=ft.slice(Pt,Pt=dt[Vt++]),Qt=Fl(dt[Vt++],st.cm.options)}}}function $a(it,st,dt){this.line=st,this.rest=sa(st),this.size=this.rest?ee(te(this.rest))-dt+1:1,this.node=this.text=null,this.hidden=Xe(it,st)}function yo(it,st,dt){for(var ht=[],ft,Pt=st;Pt2&&Pt.push((bt.bottom+Vt.top)/2-dt.top)}}Pt.push(dt.bottom-dt.top)}}function xi(it,st,dt){if(it.line==st)return{map:it.measure.map,cache:it.measure.cache};for(var ht=0;htdt)return{map:it.measure.maps[ft],cache:it.measure.caches[ft],before:!0}}function Ti(it,st){st=wo(st);var dt=ee(st),ht=it.display.externalMeasured=new $a(it.doc,st,dt);ht.lineN=dt;var ft=ht.built=de(it,ht);return ht.text=ft.pre,ne(it.display.lineMeasure,ft.pre),ht}function _i(it,st,dt,ht){return bo(it,Oo(it,st),dt,ht)}function Ai(it,st){if(st>=it.display.viewFrom&&st=dt.lineN&&stst)&&(Pt=bt-It,ft=Pt-1,st>=bt&&(Et="right")),ft!=null){if(ht=it[Vt+2],It==bt&&dt==(ht.insertLeft?"left":"right")&&(Et=dt),dt=="left"&&ft==0)for(;Vt&&it[Vt-2]==it[Vt-3]&&it[Vt-1].insertLeft;)ht=it[(Vt-=3)+2],Et="left";if(dt=="right"&&ft==bt-It)for(;Vt=0&&(dt=it[ft]).left==dt.right;ft--);return dt}function rr(it,st,dt,ht){var ft=Mr(st.map,dt,ht),Pt=ft.node,Et=ft.start,It=ft.end,bt=ft.collapse,Vt;if(Pt.nodeType==3){for(var ae=0;ae<4;ae++){for(;Et&&an(st.line.text.charAt(ft.coverStart+Et));)--Et;for(;ft.coverStart+It0&&(bt=ht="right");var Qt;it.options.lineWrapping&&(Qt=Pt.getClientRects()).length>1?Vt=Qt[ht=="right"?Qt.length-1:0]:Vt=Pt.getBoundingClientRect()}if(ge&&Ae<9&&!Et&&(!Vt||!Vt.left&&!Vt.right)){var Le=Pt.parentNode.getClientRects()[0];Le?Vt={left:Le.left,right:Le.left+ch(it.display),top:Le.top,bottom:Le.bottom}:Vt=ns}for(var Pe=Vt.top-st.rect.top,$e=Vt.bottom-st.rect.top,rn=(Pe+$e)/2,mn=st.view.measure.heights,Bn=0;Bn=ht.text.length?(bt=ht.text.length,Vt="before"):bt<=0&&(bt=0,Vt="after"),!It)return Et(Vt=="before"?bt-1:bt,Vt=="before");function ae($e,rn,mn){var Bn=It[rn],Xn=Bn.level==1;return Et(mn?$e-1:$e,Xn!=mn)}var Qt=xt(It,bt,Vt),Le=Ct,Pe=ae(bt,Qt,Vt=="before");return Le!=null&&(Pe.other=ae(bt,Le,Vt!="before")),Pe}function Ig(it,st){var dt=0;st=Wn(it.doc,st),it.options.lineWrapping||(dt=ch(it.display)*st.ch);var ht=En(it.doc,st.line),ft=bi(ht)+es(it.display);return{left:dt,right:dt,top:ft,bottom:ft+ht.height}}function Og(it,st,dt,ht,ft){var Pt=we(it,st,dt);return Pt.xRel=ft,ht&&(Pt.outside=ht),Pt}function jg(it,st,dt){var ht=it.doc;if(dt+=it.display.viewOffset,dt<0)return Og(ht.first,0,null,-1,-1);var ft=yn(ht,dt),Pt=ht.first+ht.size-1;if(ft>Pt)return Og(ht.first+ht.size-1,En(ht,Pt).text.length,null,1,1);st<0&&(st=0);for(var Et=En(ht,ft);;){var It=be(it,Et,ft,st,dt),bt=td(Et,It.ch+(It.xRel>0||It.outside>0?1:0));if(!bt)return It;var Vt=bt.find(1);if(Vt.line==ft)return Vt;Et=En(ht,ft=Vt.line)}}function Rn(it,st,dt,ht){ht-=Er(st);var ft=st.text.length,Pt=xn(function(Et){return bo(it,dt,Et-1).bottom<=ht},ft,0);return ft=xn(function(Et){return bo(it,dt,Et).top>ht},Pt,ft),{begin:Pt,end:ft}}function Jc(it,st,dt,ht){dt||(dt=Oo(it,st));var ft=Lr(it,st,bo(it,dt,ht),"line").top;return Rn(it,st,dt,ft)}function Jt(it,st,dt,ht){return it.bottom<=dt?!1:it.top>dt?!0:(ht?it.left:it.right)>st}function be(it,st,dt,ht,ft){ft-=bi(st);var Pt=Oo(it,st),Et=Er(st),It=0,bt=st.text.length,Vt=!0,ae=Rt(st,it.doc.direction);if(ae){var Qt=(it.options.lineWrapping?bp:Bp)(it,st,dt,Pt,ae,ht,ft);Vt=Qt.level!=1,It=Vt?Qt.from:Qt.to-1,bt=Vt?Qt.to:Qt.from-1}var Le=null,Pe=null,$e=xn(function(Pi){var On=bo(it,Pt,Pi);return On.top+=Et,On.bottom+=Et,Jt(On,ht,ft,!1)?(On.top<=ft&&On.left<=ht&&(Le=Pi,Pe=On),!0):!1},It,bt),rn,mn,Bn=!1;if(Pe){var Xn=ht-Pe.left=ti.bottom?1:0}return $e=Nn(st.text,$e,1),Og(dt,$e,mn,Bn,ht-rn)}function Bp(it,st,dt,ht,ft,Pt,Et){var It=xn(function(Qt){var Le=ft[Qt],Pe=Le.level!=1;return Jt(dr(it,we(dt,Pe?Le.to:Le.from,Pe?"before":"after"),"line",st,ht),Pt,Et,!0)},0,ft.length-1),bt=ft[It];if(It>0){var Vt=bt.level!=1,ae=dr(it,we(dt,Vt?bt.from:bt.to,Vt?"after":"before"),"line",st,ht);Jt(ae,Pt,Et,!0)&&ae.top>Et&&(bt=ft[It-1])}return bt}function bp(it,st,dt,ht,ft,Pt,Et){var It=Rn(it,st,ht,Et),bt=It.begin,Vt=It.end;/\s/.test(st.text.charAt(Vt-1))&&Vt--;for(var ae=null,Qt=null,Le=0;Le=Vt||Pe.to<=bt)){var $e=Pe.level!=1,rn=bo(it,ht,$e?Math.min(Vt,Pe.to)-1:Math.max(bt,Pe.from)).right,mn=rnmn)&&(ae=Pe,Qt=mn)}}return ae||(ae=ft[ft.length-1]),ae.fromVt&&(ae={from:ae.from,to:Vt,level:ae.level}),ae}var tu;function eu(it){if(it.cachedTextHeight!=null)return it.cachedTextHeight;if(tu==null){tu=$t("pre",null,"CodeMirror-line-like");for(var st=0;st<49;++st)tu.appendChild(document.createTextNode("x")),tu.appendChild($t("br"));tu.appendChild(document.createTextNode("x"))}ne(it.measure,tu);var dt=tu.offsetHeight/50;return dt>3&&(it.cachedTextHeight=dt),_t(it.measure),dt||1}function ch(it){if(it.cachedCharWidth!=null)return it.cachedCharWidth;var st=$t("span","xxxxxxxxxx"),dt=$t("pre",[st],"CodeMirror-line-like");ne(it.measure,dt);var ht=st.getBoundingClientRect(),ft=(ht.right-ht.left)/10;return ft>2&&(it.cachedCharWidth=ft),ft||10}function zg(it){for(var st=it.display,dt={},ht={},ft=st.gutters.clientLeft,Pt=st.gutters.firstChild,Et=0;Pt;Pt=Pt.nextSibling,++Et){var It=it.display.gutterSpecs[Et].className;dt[It]=Pt.offsetLeft+Pt.clientLeft+ft,ht[It]=Pt.clientWidth}return{fixedPos:Wd(st),gutterTotalWidth:st.gutters.offsetWidth,gutterLeft:dt,gutterWidth:ht,wrapperWidth:st.wrapper.clientWidth}}function Wd(it){return it.scroller.getBoundingClientRect().left-it.sizer.getBoundingClientRect().left}function tr(it){var st=eu(it.display),dt=it.options.lineWrapping,ht=dt&&Math.max(5,it.display.scroller.clientWidth/ch(it.display)-3);return function(ft){if(Xe(it.doc,ft))return 0;var Pt=0;if(ft.widgets)for(var Et=0;Et0&&(Vt=En(it.doc,bt.line).text).length==bt.ch){var ae=Zt(Vt,Vt.length,it.options.tabSize)-Vt.length;bt=we(bt.line,Math.max(0,Math.round((Pt-pl(it.display).left)/ch(it.display))-ae))}return bt}function La(it,st){if(st>=it.display.viewTo||(st-=it.display.viewFrom,st<0))return null;for(var dt=it.display.view,ht=0;htst)&&(ft.updateLineNumbers=st),it.curOp.viewChanged=!0,st>=ft.viewTo)ze&&li(it.doc,st)ft.viewFrom?Nr(it):(ft.viewFrom+=ht,ft.viewTo+=ht);else if(st<=ft.viewFrom&&dt>=ft.viewTo)Nr(it);else if(st<=ft.viewFrom){var Pt=qs(it,dt,dt+ht,1);Pt?(ft.view=ft.view.slice(Pt.index),ft.viewFrom=Pt.lineN,ft.viewTo+=ht):Nr(it)}else if(dt>=ft.viewTo){var Et=qs(it,st,st,-1);Et?(ft.view=ft.view.slice(0,Et.index),ft.viewTo=Et.lineN):Nr(it)}else{var It=qs(it,st,st,-1),bt=qs(it,dt,dt+ht,1);It&&bt?(ft.view=ft.view.slice(0,It.index).concat(yo(it,It.lineN,bt.lineN)).concat(ft.view.slice(bt.index)),ft.viewTo+=ht):Nr(it)}var Vt=ft.externalMeasured;Vt&&(dt=ft.lineN&&st=ht.viewTo)){var Pt=ht.view[La(it,st)];if(Pt.node!=null){var Et=Pt.changes||(Pt.changes=[]);He(Et,dt)==-1&&Et.push(dt)}}}function Nr(it){it.display.viewFrom=it.display.viewTo=it.doc.first,it.display.view=[],it.display.viewOffset=0}function qs(it,st,dt,ht){var ft=La(it,st),Pt,Et=it.display.view;if(!ze||dt==it.doc.first+it.doc.size)return{index:ft,lineN:dt};for(var It=it.display.viewFrom,bt=0;bt0){if(ft==Et.length-1)return null;Pt=It+Et[ft].size-st,ft++}else Pt=It-st;st+=Pt,dt+=Pt}for(;li(it.doc,dt)!=dt;){if(ft==(ht<0?0:Et.length-1))return null;dt+=ht*Et[ft-(ht<0?1:0)].size,ft+=ht}return{index:ft,lineN:dt}}function Do(it,st,dt){var ht=it.display,ft=ht.view;ft.length==0||st>=ht.viewTo||dt<=ht.viewFrom?(ht.view=yo(it,st,dt),ht.viewFrom=st):(ht.viewFrom>st?ht.view=yo(it,st,ht.viewFrom).concat(ht.view):ht.viewFromdt&&(ht.view=ht.view.slice(0,La(it,dt)))),ht.viewTo=dt}function la(it){for(var st=it.display.view,dt=0,ht=0;ht=it.display.viewTo||It.to().line1}var Io={},Jo={};function Or(it,st){arguments.length>2&&(st.dependencies=Array.prototype.slice.call(arguments,2)),Io[it]=st}function To(it,st){Jo[it]=st}function jr(it){if(typeof it=="string"&&Jo.hasOwnProperty(it))it=Jo[it];else if(it&&typeof it.name=="string"&&Jo.hasOwnProperty(it.name)){var st=Jo[it.name];typeof st=="string"&&(st={name:st}),it=Sn(st,it),it.name=st.name}else{if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(it))return jr("application/xml");if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(it))return jr("application/json")}return typeof it=="string"?{name:it}:it||{name:"null"}}function De(it,st){st=jr(st);var dt=Io[st.name];if(!dt)return De(it,"text/plain");var ht=dt(it,st);if(ye.hasOwnProperty(st.name)){var ft=ye[st.name];for(var Pt in ft)ft.hasOwnProperty(Pt)&&(ht.hasOwnProperty(Pt)&&(ht["_"+Pt]=ht[Pt]),ht[Pt]=ft[Pt])}if(ht.name=st.name,st.helperType&&(ht.helperType=st.helperType),st.modeProps)for(var At in st.modeProps)ht[At]=st.modeProps[At];return ht}var ye={};function he(it,st){var dt=ye.hasOwnProperty(it)?ye[it]:ye[it]={};In(st,dt)}function Dn(it,st){if(st===!0)return st;if(it.copyState)return it.copyState(st);var dt={};for(var ht in st){var ft=st[ht];ft instanceof Array&&(ft=ft.concat([])),dt[ht]=ft}return dt}function ci(it,st){for(var dt;it.innerMode&&(dt=it.innerMode(st),!(!dt||dt.mode==it));)st=dt.state,it=dt.mode;return dt||{mode:it,state:st}}function hi(it,st,dt){return it.startState?it.startState(st,dt):!0}var Ze=function(it,st,dt){this.pos=this.start=0,this.string=it,this.tabSize=st||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=dt};Ze.prototype.eol=function(){return this.pos>=this.string.length},Ze.prototype.sol=function(){return this.pos==this.lineStart},Ze.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ze.prototype.next=function(){if(this.posst},Ze.prototype.eatSpace=function(){for(var it=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>it},Ze.prototype.skipToEnd=function(){this.pos=this.string.length},Ze.prototype.skipTo=function(it){var st=this.string.indexOf(it,this.pos);if(st>-1)return this.pos=st,!0},Ze.prototype.backUp=function(it){this.pos-=it},Ze.prototype.column=function(){return this.lastColumnPos0?null:(Pt&&st!==!1&&(this.pos+=Pt[0].length),Pt)}},Ze.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ze.prototype.hideFirstChars=function(it,st){this.lineStart+=it;try{return st()}finally{this.lineStart-=it}},Ze.prototype.lookAhead=function(it){var st=this.lineOracle;return st&&st.lookAhead(it)},Ze.prototype.baseToken=function(){var it=this.lineOracle;return it&&it.baseToken(this.pos)};function An(it,st){if(st-=it.first,st<0||st>=it.size)throw new Error("There is no line "+(st+it.first)+" in the document.");for(var dt=it;!dt.lines;)for(var ht=0;;++ht){var ft=dt.children[ht],Pt=ft.chunkSize();if(st=it.first&&stdt?we(dt,An(it,dt).text.length):lo(st,An(it,st.line).text.length)}function lo(it,st){var dt=it.ch;return dt==null||dt>st?we(it.line,st):dt<0?we(it.line,0):it}function ur(it,st){for(var dt=[],ht=0;htthis.maxLookAhead&&(this.maxLookAhead=it),st},Re.prototype.baseToken=function(it){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=it;)this.baseTokenPos+=2;var st=this.baseTokens[this.baseTokenPos+1];return{type:st&&st.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-it}},Re.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Re.fromSaved=function(it,st,dt){return st instanceof Fo?new Re(it,Dn(it.mode,st.state),dt,st.lookAhead):new Re(it,Dn(it.mode,st),dt)},Re.prototype.save=function(it){var st=it!==!1?Dn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Fo(st,this.maxLookAhead):st};function vo(it,st,dt,ht){var ft=[it.state.modeGen],Pt={};no(it,st.text,it.doc.mode,dt,function(Vt,ae){return ft.push(Vt,ae)},Pt,ht);for(var At=dt.state,It=function(Vt){dt.baseTokens=ft;var ae=it.state.overlays[Vt],Qt=1,Le=0;dt.state=!0,no(it,st.text,ae.mode,dt,function(Pe,$e){for(var rn=Qt;LePe&&ft.splice(Qt,1,Pe,ft[Qt+1],mn),Qt+=2,Le=Math.min(Pe,mn)}if($e)if(ae.opaque)ft.splice(rn,Qt-rn,Pe,"overlay "+$e),Qt=rn+2;else for(;rnit.options.maxHighlightLength&&Dn(it.doc.mode,ht.state),Pt=vo(it,st,ht);ft&&(ht.state=ft),st.stateAfter=ht.save(!ft),st.styles=Pt.styles,Pt.classes?st.styleClasses=Pt.classes:st.styleClasses&&(st.styleClasses=null),dt===it.doc.highlightFrontier&&(it.doc.modeFrontier=Math.max(it.doc.modeFrontier,++it.doc.highlightFrontier))}return st.styles}function ji(it,st,dt){var ht=it.doc,ft=it.display;if(!ht.mode.startState)return new Re(ht,!0,st);var Pt=zi(it,st,dt),At=Pt>ht.first&&An(ht,Pt-1).stateAfter,It=At?Re.fromSaved(ht,At,Pt):new Re(ht,hi(ht.mode),Pt);return ht.iter(Pt,st,function(bt){Me(it,bt.text,It);var Vt=It.line;bt.stateAfter=Vt==st-1||Vt%5==0||Vt>=ft.viewFrom&&Vtst.start)return Pt}throw new Error("Mode "+it.name+" failed to advance stream.")}var Zn=function(it,st,dt){this.start=it.start,this.end=it.pos,this.string=it.current(),this.type=st||null,this.state=dt};function Kn(it,st,dt,ht){var ft=it.doc,Pt=ft.mode,At;st=Wn(ft,st);var It=An(ft,st.line),bt=ji(it,st.line,dt),Vt=new Ze(It.text,it.options.tabSize,bt),ae;for(ht&&(ae=[]);(ht||Vt.posit.options.maxHighlightLength?(It=!1,At&&Me(it,st,ht,ae.pos),ae.pos=st.length,Qt=null):Qt=Li(Hn(dt,ae,ht.state,Le),Pt),Le){var Pe=Le[0].name;Pe&&(Qt="m-"+(Qt?Pe+" "+Qt:Pe))}if(!It||Vt!=Qt){for(;btAt;--It){if(It<=Pt.first)return Pt.first;var bt=An(Pt,It-1),Vt=bt.stateAfter;if(Vt&&(!dt||It+(Vt instanceof Fo?Vt.lookAhead:0)<=Pt.modeFrontier))return It;var ae=Zt(bt.text,null,it.options.tabSize);(ft==null||ht>ae)&&(ft=It-1,ht=ae)}return ft}function Gi(it,st){if(it.modeFrontier=Math.min(it.modeFrontier,st),!(it.highlightFrontierdt;ht--){var ft=An(it,ht).stateAfter;if(ft&&(!(ft instanceof Fo)||ht+ft.lookAhead=st:Pt.to>st);(ht||(ht=[])).push(new Yi(At,Pt.from,bt?null:Pt.to))}}return ht}function Bi(it,st,dt){var ht;if(it)for(var ft=0;ft=st:Pt.to>st);if(It||Pt.from==st&&At.type=="bookmark"&&(!dt||Pt.marker.insertLeft)){var bt=Pt.from==null||(At.inclusiveLeft?Pt.from<=st:Pt.from0&&It)for(var ti=0;ti0)){var ae=[bt,1],Qt=Je(Vt.from,It.from),Le=Je(Vt.to,It.to);(Qt<0||!At.inclusiveLeft&&!Qt)&&ae.push({from:Vt.from,to:It.from}),(Le>0||!At.inclusiveRight&&!Le)&&ae.push({from:It.to,to:Vt.to}),ft.splice.apply(ft,ae),bt+=ae.length-3}}return ft}function En(it){var st=it.markedSpans;if(st){for(var dt=0;dtst)&&(!ht||Tl(ht,Pt.marker)<0)&&(ht=Pt.marker)}return ht}function ed(it,st,dt,ht,ft){var Pt=An(it,st),At=ze&&Pt.markedSpans;if(At)for(var It=0;It=0&&Qt<=0||ae<=0&&Qt>=0)&&(ae<=0&&(bt.marker.inclusiveRight&&ft.inclusiveLeft?Je(Vt.to,dt)>=0:Je(Vt.to,dt)>0)||ae>=0&&(bt.marker.inclusiveRight&&ft.inclusiveLeft?Je(Vt.from,ht)<=0:Je(Vt.from,ht)<0)))return!0}}}function wo(it){for(var st;st=fl(it);)it=st.find(-1,!0).line;return it}function Qo(it){for(var st;st=Pu(it);)it=st.find(1,!0).line;return it}function sa(it){for(var st,dt;st=Pu(it);)it=st.find(1,!0).line,(dt||(dt=[])).push(it);return dt}function li(it,st){var dt=An(it,st),ht=wo(dt);return dt==ht?st:ee(ht)}function Un(it,st){if(st>it.lastLine())return st;var dt=An(it,st),ht;if(!Xe(it,dt))return st;for(;ht=Pu(dt);)dt=ht.find(1,!0).line;return ee(dt)+1}function Xe(it,st){var dt=ze&&st.markedSpans;if(dt){for(var ht=void 0,ft=0;ftst.maxLineLength&&(st.maxLineLength=ft,st.maxLine=ht)})}var Wo=function(it,st,dt){this.text=it,jt(this,st),this.height=dt?dt(this):1};Wo.prototype.lineNo=function(){return ee(this)},si(Wo);function vr(it,st,dt,ht){it.text=st,it.stateAfter&&(it.stateAfter=null),it.styles&&(it.styles=null),it.order!=null&&(it.order=null),En(it),jt(it,dt);var ft=ht?ht(it):1;ft!=it.height&&ao(it,ft)}function qo(it){it.parent=null,En(it)}var Ca={},zs={};function Fl(it,st){if(!it||/^\s*$/.test(it))return null;var dt=st.addModeClass?zs:Ca;return dt[it]||(dt[it]=it.replace(/\S+/g,"cm-$&"))}function de(it,st){var dt=ve("span",null,null,qt?"padding-right: .1px":null),ht={pre:ve("pre",[dt],"CodeMirror-line"),content:dt,col:0,pos:0,cm:it,trailingSpace:!1,splitSpaces:it.getOption("lineWrapping")};st.measure={};for(var ft=0;ft<=(st.rest?st.rest.length:0);ft++){var Pt=ft?st.rest[ft-1]:st.line,At=void 0;ht.pos=0,ht.addToken=wu,No(it.display.measure)&&(At=Rt(Pt,it.doc.direction))&&(ht.addToken=Cu(ht.addToken,At)),ht.map=[];var It=st!=it.display.externalMeasured&&ee(Pt);_a(Pt,ht,uo(it,Pt,It)),Pt.styleClasses&&(Pt.styleClasses.bgClass&&(ht.bgClass=Pn(Pt.styleClasses.bgClass,ht.bgClass||"")),Pt.styleClasses.textClass&&(ht.textClass=Pn(Pt.styleClasses.textClass,ht.textClass||""))),ht.map.length==0&&ht.map.push(0,0,ht.content.appendChild(Yr(it.display.measure))),ft==0?(st.measure.map=ht.map,st.measure.cache={}):((st.measure.maps||(st.measure.maps=[])).push(ht.map),(st.measure.caches||(st.measure.caches=[])).push({}))}if(qt){var bt=ht.content.lastChild;(/\bcm-tab\b/.test(bt.className)||bt.querySelector&&bt.querySelector(".cm-tab"))&&(ht.content.className="cm-tab-wrap-hack")}return tn(it,"renderLine",it,st.line,ht.pre),ht.pre.className&&(ht.textClass=Pn(ht.pre.className,ht.textClass||"")),ht}function As(it){var st=$t("span","\u2022","cm-invalidchar");return st.title="\\u"+it.charCodeAt(0).toString(16),st.setAttribute("aria-label",st.title),st}function wu(it,st,dt,ht,ft,Pt,At){if(st){var It=it.splitSpaces?ja(st,it.trailingSpace):st,bt=it.cm.state.specialChars,Vt=!1,ae;if(!bt.test(st))it.col+=st.length,ae=document.createTextNode(It),it.map.push(it.pos,it.pos+st.length,ae),ge&&Ee<9&&(Vt=!0),it.pos+=st.length;else{ae=document.createDocumentFragment();for(var Qt=0;;){bt.lastIndex=Qt;var Le=bt.exec(st),Pe=Le?Le.index-Qt:st.length-Qt;if(Pe){var $e=document.createTextNode(It.slice(Qt,Qt+Pe));ge&&Ee<9?ae.appendChild($t("span",[$e])):ae.appendChild($e),it.map.push(it.pos,it.pos+Pe,$e),it.col+=Pe,it.pos+=Pe}if(!Le)break;Qt+=Pe+1;var rn=void 0;if(Le[0]==" "){var mn=it.cm.options.tabSize,Bn=mn-it.col%mn;rn=ae.appendChild($t("span",kn(Bn),"cm-tab")),rn.setAttribute("role","presentation"),rn.setAttribute("cm-text"," "),it.col+=Bn}else Le[0]=="\r"||Le[0]==` +`?(rn=ae.appendChild($t("span",Le[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),rn.setAttribute("cm-text",Le[0]),it.col+=1):(rn=it.cm.options.specialCharPlaceholder(Le[0]),rn.setAttribute("cm-text",Le[0]),ge&&Ee<9?ae.appendChild($t("span",[rn])):ae.appendChild(rn),it.col+=1);it.map.push(it.pos,it.pos+1,rn),it.pos++}}if(it.trailingSpace=It.charCodeAt(st.length-1)==32,dt||ht||ft||Vt||Pt||At){var Xn=dt||"";ht&&(Xn+=ht),ft&&(Xn+=ft);var zn=$t("span",[ae],Xn,Pt);if(At)for(var ti in At)At.hasOwnProperty(ti)&&ti!="style"&&ti!="class"&&zn.setAttribute(ti,At[ti]);return it.content.appendChild(zn)}it.content.appendChild(ae)}}function ja(it,st){if(it.length>1&&!/ /.test(it))return it;for(var dt=st,ht="",ft=0;ftVt&&Qt.from<=Vt));Le++);if(Qt.to>=ae)return it(dt,ht,ft,Pt,At,It,bt);it(dt,ht.slice(0,Qt.to-Vt),ft,Pt,null,It,bt),Pt=null,ht=ht.slice(Qt.to-Vt),Vt=Qt.to}}}function _o(it,st,dt,ht){var ft=!ht&&dt.widgetNode;ft&&it.map.push(it.pos,it.pos+st,ft),!ht&&it.cm.display.input.needsContentAttribute&&(ft||(ft=it.content.appendChild(document.createElement("span"))),ft.setAttribute("cm-marker",dt.id)),ft&&(it.cm.display.input.setUneditable(ft),it.content.appendChild(ft)),it.pos+=st,it.trailingSpace=!1}function _a(it,st,dt){var ht=it.markedSpans,ft=it.text,Pt=0;if(!ht){for(var At=1;Atbt||Oi.collapsed&&On.to==bt&&On.from==bt)){if(On.to!=null&&On.to!=bt&&Pe>On.to&&(Pe=On.to,rn=""),Oi.className&&($e+=" "+Oi.className),Oi.css&&(Le=(Le?Le+";":"")+Oi.css),Oi.startStyle&&On.from==bt&&(mn+=" "+Oi.startStyle),Oi.endStyle&&On.to==Pe&&(ti||(ti=[])).push(Oi.endStyle,On.to),Oi.title&&((Xn||(Xn={})).title=Oi.title),Oi.attributes)for(var nr in Oi.attributes)(Xn||(Xn={}))[nr]=Oi.attributes[nr];Oi.collapsed&&(!Bn||Tl(Bn.marker,Oi)<0)&&(Bn=On)}else On.from>bt&&Pe>On.from&&(Pe=On.from)}if(ti)for(var Qr=0;Qr=It)break;for(var ta=Math.min(It,Pe);;){if(ae){var Bs=bt+ae.length;if(!Bn){var Hr=Bs>ta?ae.slice(0,ta-bt):ae;st.addToken(st,Hr,Qt?Qt+$e:$e,mn,bt+Hr.length==Pe?rn:"",Le,Xn)}if(Bs>=ta){ae=ae.slice(ta-bt),bt=ta;break}bt=Bs,mn=""}ae=ft.slice(Pt,Pt=dt[Vt++]),Qt=Fl(dt[Vt++],st.cm.options)}}}function $a(it,st,dt){this.line=st,this.rest=sa(st),this.size=this.rest?ee(te(this.rest))-dt+1:1,this.node=this.text=null,this.hidden=Xe(it,st)}function yo(it,st,dt){for(var ht=[],ft,Pt=st;Pt2&&Pt.push((bt.bottom+Vt.top)/2-dt.top)}}Pt.push(dt.bottom-dt.top)}}function xi(it,st,dt){if(it.line==st)return{map:it.measure.map,cache:it.measure.cache};for(var ht=0;htdt)return{map:it.measure.maps[ft],cache:it.measure.caches[ft],before:!0}}function Ti(it,st){st=wo(st);var dt=ee(st),ht=it.display.externalMeasured=new $a(it.doc,st,dt);ht.lineN=dt;var ft=ht.built=de(it,ht);return ht.text=ft.pre,ne(it.display.lineMeasure,ft.pre),ht}function _i(it,st,dt,ht){return bo(it,Oo(it,st),dt,ht)}function Ei(it,st){if(st>=it.display.viewFrom&&st=dt.lineN&&stst)&&(Pt=bt-It,ft=Pt-1,st>=bt&&(At="right")),ft!=null){if(ht=it[Vt+2],It==bt&&dt==(ht.insertLeft?"left":"right")&&(At=dt),dt=="left"&&ft==0)for(;Vt&&it[Vt-2]==it[Vt-3]&&it[Vt-1].insertLeft;)ht=it[(Vt-=3)+2],At="left";if(dt=="right"&&ft==bt-It)for(;Vt=0&&(dt=it[ft]).left==dt.right;ft--);return dt}function rr(it,st,dt,ht){var ft=Mr(st.map,dt,ht),Pt=ft.node,At=ft.start,It=ft.end,bt=ft.collapse,Vt;if(Pt.nodeType==3){for(var ae=0;ae<4;ae++){for(;At&&an(st.line.text.charAt(ft.coverStart+At));)--At;for(;ft.coverStart+It0&&(bt=ht="right");var Qt;it.options.lineWrapping&&(Qt=Pt.getClientRects()).length>1?Vt=Qt[ht=="right"?Qt.length-1:0]:Vt=Pt.getBoundingClientRect()}if(ge&&Ee<9&&!At&&(!Vt||!Vt.left&&!Vt.right)){var Le=Pt.parentNode.getClientRects()[0];Le?Vt={left:Le.left,right:Le.left+ch(it.display),top:Le.top,bottom:Le.bottom}:Vt=es}for(var Pe=Vt.top-st.rect.top,$e=Vt.bottom-st.rect.top,rn=(Pe+$e)/2,mn=st.view.measure.heights,Bn=0;Bn=ht.text.length?(bt=ht.text.length,Vt="before"):bt<=0&&(bt=0,Vt="after"),!It)return At(Vt=="before"?bt-1:bt,Vt=="before");function ae($e,rn,mn){var Bn=It[rn],Xn=Bn.level==1;return At(mn?$e-1:$e,Xn!=mn)}var Qt=xt(It,bt,Vt),Le=Ct,Pe=ae(bt,Qt,Vt=="before");return Le!=null&&(Pe.other=ae(bt,Le,Vt!="before")),Pe}function Ig(it,st){var dt=0;st=Wn(it.doc,st),it.options.lineWrapping||(dt=ch(it.display)*st.ch);var ht=An(it.doc,st.line),ft=bi(ht)+ys(it.display);return{left:dt,right:dt,top:ft,bottom:ft+ht.height}}function Og(it,st,dt,ht,ft){var Pt=we(it,st,dt);return Pt.xRel=ft,ht&&(Pt.outside=ht),Pt}function jg(it,st,dt){var ht=it.doc;if(dt+=it.display.viewOffset,dt<0)return Og(ht.first,0,null,-1,-1);var ft=yn(ht,dt),Pt=ht.first+ht.size-1;if(ft>Pt)return Og(ht.first+ht.size-1,An(ht,Pt).text.length,null,1,1);st<0&&(st=0);for(var At=An(ht,ft);;){var It=be(it,At,ft,st,dt),bt=td(At,It.ch+(It.xRel>0||It.outside>0?1:0));if(!bt)return It;var Vt=bt.find(1);if(Vt.line==ft)return Vt;At=An(ht,ft=Vt.line)}}function Rn(it,st,dt,ht){ht-=Ar(st);var ft=st.text.length,Pt=xn(function(At){return bo(it,dt,At-1).bottom<=ht},ft,0);return ft=xn(function(At){return bo(it,dt,At).top>ht},Pt,ft),{begin:Pt,end:ft}}function Jc(it,st,dt,ht){dt||(dt=Oo(it,st));var ft=Lr(it,st,bo(it,dt,ht),"line").top;return Rn(it,st,dt,ft)}function Jt(it,st,dt,ht){return it.bottom<=dt?!1:it.top>dt?!0:(ht?it.left:it.right)>st}function be(it,st,dt,ht,ft){ft-=bi(st);var Pt=Oo(it,st),At=Ar(st),It=0,bt=st.text.length,Vt=!0,ae=Rt(st,it.doc.direction);if(ae){var Qt=(it.options.lineWrapping?bp:Bp)(it,st,dt,Pt,ae,ht,ft);Vt=Qt.level!=1,It=Vt?Qt.from:Qt.to-1,bt=Vt?Qt.to:Qt.from-1}var Le=null,Pe=null,$e=xn(function(Pi){var On=bo(it,Pt,Pi);return On.top+=At,On.bottom+=At,Jt(On,ht,ft,!1)?(On.top<=ft&&On.left<=ht&&(Le=Pi,Pe=On),!0):!1},It,bt),rn,mn,Bn=!1;if(Pe){var Xn=ht-Pe.left=ti.bottom?1:0}return $e=Nn(st.text,$e,1),Og(dt,$e,mn,Bn,ht-rn)}function Bp(it,st,dt,ht,ft,Pt,At){var It=xn(function(Qt){var Le=ft[Qt],Pe=Le.level!=1;return Jt(dr(it,we(dt,Pe?Le.to:Le.from,Pe?"before":"after"),"line",st,ht),Pt,At,!0)},0,ft.length-1),bt=ft[It];if(It>0){var Vt=bt.level!=1,ae=dr(it,we(dt,Vt?bt.from:bt.to,Vt?"after":"before"),"line",st,ht);Jt(ae,Pt,At,!0)&&ae.top>At&&(bt=ft[It-1])}return bt}function bp(it,st,dt,ht,ft,Pt,At){var It=Rn(it,st,ht,At),bt=It.begin,Vt=It.end;/\s/.test(st.text.charAt(Vt-1))&&Vt--;for(var ae=null,Qt=null,Le=0;Le=Vt||Pe.to<=bt)){var $e=Pe.level!=1,rn=bo(it,ht,$e?Math.min(Vt,Pe.to)-1:Math.max(bt,Pe.from)).right,mn=rnmn)&&(ae=Pe,Qt=mn)}}return ae||(ae=ft[ft.length-1]),ae.fromVt&&(ae={from:ae.from,to:Vt,level:ae.level}),ae}var tu;function eu(it){if(it.cachedTextHeight!=null)return it.cachedTextHeight;if(tu==null){tu=$t("pre",null,"CodeMirror-line-like");for(var st=0;st<49;++st)tu.appendChild(document.createTextNode("x")),tu.appendChild($t("br"));tu.appendChild(document.createTextNode("x"))}ne(it.measure,tu);var dt=tu.offsetHeight/50;return dt>3&&(it.cachedTextHeight=dt),_t(it.measure),dt||1}function ch(it){if(it.cachedCharWidth!=null)return it.cachedCharWidth;var st=$t("span","xxxxxxxxxx"),dt=$t("pre",[st],"CodeMirror-line-like");ne(it.measure,dt);var ht=st.getBoundingClientRect(),ft=(ht.right-ht.left)/10;return ft>2&&(it.cachedCharWidth=ft),ft||10}function zg(it){for(var st=it.display,dt={},ht={},ft=st.gutters.clientLeft,Pt=st.gutters.firstChild,At=0;Pt;Pt=Pt.nextSibling,++At){var It=it.display.gutterSpecs[At].className;dt[It]=Pt.offsetLeft+Pt.clientLeft+ft,ht[It]=Pt.clientWidth}return{fixedPos:Wd(st),gutterTotalWidth:st.gutters.offsetWidth,gutterLeft:dt,gutterWidth:ht,wrapperWidth:st.wrapper.clientWidth}}function Wd(it){return it.scroller.getBoundingClientRect().left-it.sizer.getBoundingClientRect().left}function tr(it){var st=eu(it.display),dt=it.options.lineWrapping,ht=dt&&Math.max(5,it.display.scroller.clientWidth/ch(it.display)-3);return function(ft){if(Xe(it.doc,ft))return 0;var Pt=0;if(ft.widgets)for(var At=0;At0&&(Vt=An(it.doc,bt.line).text).length==bt.ch){var ae=Zt(Vt,Vt.length,it.options.tabSize)-Vt.length;bt=we(bt.line,Math.max(0,Math.round((Pt-ml(it.display).left)/ch(it.display))-ae))}return bt}function La(it,st){if(st>=it.display.viewTo||(st-=it.display.viewFrom,st<0))return null;for(var dt=it.display.view,ht=0;htst)&&(ft.updateLineNumbers=st),it.curOp.viewChanged=!0,st>=ft.viewTo)ze&&li(it.doc,st)ft.viewFrom?Nr(it):(ft.viewFrom+=ht,ft.viewTo+=ht);else if(st<=ft.viewFrom&&dt>=ft.viewTo)Nr(it);else if(st<=ft.viewFrom){var Pt=qs(it,dt,dt+ht,1);Pt?(ft.view=ft.view.slice(Pt.index),ft.viewFrom=Pt.lineN,ft.viewTo+=ht):Nr(it)}else if(dt>=ft.viewTo){var At=qs(it,st,st,-1);At?(ft.view=ft.view.slice(0,At.index),ft.viewTo=At.lineN):Nr(it)}else{var It=qs(it,st,st,-1),bt=qs(it,dt,dt+ht,1);It&&bt?(ft.view=ft.view.slice(0,It.index).concat(yo(it,It.lineN,bt.lineN)).concat(ft.view.slice(bt.index)),ft.viewTo+=ht):Nr(it)}var Vt=ft.externalMeasured;Vt&&(dt=ft.lineN&&st=ht.viewTo)){var Pt=ht.view[La(it,st)];if(Pt.node!=null){var At=Pt.changes||(Pt.changes=[]);He(At,dt)==-1&&At.push(dt)}}}function Nr(it){it.display.viewFrom=it.display.viewTo=it.doc.first,it.display.view=[],it.display.viewOffset=0}function qs(it,st,dt,ht){var ft=La(it,st),Pt,At=it.display.view;if(!ze||dt==it.doc.first+it.doc.size)return{index:ft,lineN:dt};for(var It=it.display.viewFrom,bt=0;bt0){if(ft==At.length-1)return null;Pt=It+At[ft].size-st,ft++}else Pt=It-st;st+=Pt,dt+=Pt}for(;li(it.doc,dt)!=dt;){if(ft==(ht<0?0:At.length-1))return null;dt+=ht*At[ft-(ht<0?1:0)].size,ft+=ht}return{index:ft,lineN:dt}}function Do(it,st,dt){var ht=it.display,ft=ht.view;ft.length==0||st>=ht.viewTo||dt<=ht.viewFrom?(ht.view=yo(it,st,dt),ht.viewFrom=st):(ht.viewFrom>st?ht.view=yo(it,st,ht.viewFrom).concat(ht.view):ht.viewFromdt&&(ht.view=ht.view.slice(0,La(it,dt)))),ht.viewTo=dt}function la(it){for(var st=it.display.view,dt=0,ht=0;ht=it.display.viewTo||It.to().line0?st.blinker=setInterval(function(){it.hasFocus()||fh(it),st.cursorDiv.style.visibility=(dt=!dt)?"":"hidden"},it.options.cursorBlinkRate):it.options.cursorBlinkRate<0&&(st.cursorDiv.style.visibility="hidden")}}function Uo(it){it.state.focused||(it.display.input.focus(),$i(it))}function sr(it){it.state.delayingBlurEvent=!0,setTimeout(function(){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1,fh(it))},100)}function $i(it,st){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1),it.options.readOnly!="nocursor"&&(it.state.focused||(tn(it,"focus",it,st),it.state.focused=!0,Fe(it.display.wrapper,"CodeMirror-focused"),!it.curOp&&it.display.selForContextMenu!=it.doc.sel&&(it.display.input.reset(),qt&&setTimeout(function(){return it.display.input.reset(!0)},20)),it.display.input.receivedFocus()),Co(it))}function fh(it,st){it.state.delayingBlurEvent||(it.state.focused&&(tn(it,"blur",it,st),it.state.focused=!1,Kt(it.display.wrapper,"CodeMirror-focused")),clearInterval(it.display.blinker),setTimeout(function(){it.state.focused||(it.display.shift=!1)},150))}function oi(it){for(var st=it.display,dt=st.lineDiv.offsetTop,ht=0;ht.005||ae<-.005)&&(ao(ft.line,Et),Dp(ft.line),ft.rest))for(var Qt=0;Qtit.display.sizerWidth){var Le=Math.ceil(It/ch(it.display));Le>it.display.maxLineLength&&(it.display.maxLineLength=Le,it.display.maxLine=ft.line,it.display.maxLineChanged=!0)}}}}function Dp(it){if(it.widgets)for(var st=0;st=Et&&(Pt=yn(st,bi(En(st,bt))-it.wrapper.clientHeight),Et=bt)}return{from:Pt,to:Math.max(Et,Pt+1)}}function Ip(it,st){if(!Ln(it,"scrollCursorIntoView")){var dt=it.display,ht=dt.sizer.getBoundingClientRect(),ft=null;if(st.top+ht.top<0?ft=!0:st.bottom+ht.top>(window.innerHeight||document.documentElement.clientHeight)&&(ft=!1),ft!=null&&!je){var Pt=$t("div","\u200B",null,`position: absolute; - top: `+(st.top-dt.viewOffset-es(it.display))+`px; + height: `+(On-ti)+"px"))}function Qt(zn,ti,Pi){var On=An(ft,zn),Oi=On.text.length,nr,Qr;function cr(Hr,ga){return $l(it,we(zn,Hr),"div",On,ga)}function ta(Hr,ga,Ps){var Wr=Jc(it,On,null,Hr),ho=ga=="ltr"==(Ps=="after")?"left":"right",xr=Ps=="after"?Wr.begin:Wr.end-(/\s/.test(On.text.charAt(Wr.end-1))?2:1);return cr(xr,ho)[ho]}var Bs=Rt(On,ft.direction);return Ot(Bs,ti||0,Pi==null?Oi:Pi,function(Hr,ga,Ps,Wr){var ho=Ps=="ltr",xr=cr(Hr,ho?"left":"right"),as=cr(ga-1,ho?"right":"left"),ws=ti==null&&Hr==0,ol=Pi==null&&ga==Oi,fr=Wr==0,Ua=!Bs||Wr==Bs.length-1;if(as.top-xr.top<=3){var kr=(Vt?ws:ol)&&fr,dg=(Vt?ol:ws)&&Ua,Na=kr?It:(ho?xr:as).left,ca=dg?bt:(ho?as:xr).right;ae(Na,xr.top,ca-Na,xr.bottom)}else{var ea,zo,ls,zl;ho?(ea=Vt&&ws&&fr?It:xr.left,zo=Vt?bt:ta(Hr,Ps,"before"),ls=Vt?It:ta(ga,Ps,"after"),zl=Vt&&ol&&Ua?bt:as.right):(ea=Vt?ta(Hr,Ps,"before"):It,zo=!Vt&&ws&&fr?bt:xr.right,ls=!Vt&&ol&&Ua?It:as.left,zl=Vt?ta(ga,Ps,"after"):bt),ae(ea,xr.top,zo-ea,xr.bottom),xr.bottom0?st.blinker=setInterval(function(){it.hasFocus()||fh(it),st.cursorDiv.style.visibility=(dt=!dt)?"":"hidden"},it.options.cursorBlinkRate):it.options.cursorBlinkRate<0&&(st.cursorDiv.style.visibility="hidden")}}function Uo(it){it.state.focused||(it.display.input.focus(),$i(it))}function sr(it){it.state.delayingBlurEvent=!0,setTimeout(function(){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1,fh(it))},100)}function $i(it,st){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1),it.options.readOnly!="nocursor"&&(it.state.focused||(tn(it,"focus",it,st),it.state.focused=!0,Fe(it.display.wrapper,"CodeMirror-focused"),!it.curOp&&it.display.selForContextMenu!=it.doc.sel&&(it.display.input.reset(),qt&&setTimeout(function(){return it.display.input.reset(!0)},20)),it.display.input.receivedFocus()),Co(it))}function fh(it,st){it.state.delayingBlurEvent||(it.state.focused&&(tn(it,"blur",it,st),it.state.focused=!1,Kt(it.display.wrapper,"CodeMirror-focused")),clearInterval(it.display.blinker),setTimeout(function(){it.state.focused||(it.display.shift=!1)},150))}function oi(it){for(var st=it.display,dt=st.lineDiv.offsetTop,ht=0;ht.005||ae<-.005)&&(ao(ft.line,At),Dp(ft.line),ft.rest))for(var Qt=0;Qtit.display.sizerWidth){var Le=Math.ceil(It/ch(it.display));Le>it.display.maxLineLength&&(it.display.maxLineLength=Le,it.display.maxLine=ft.line,it.display.maxLineChanged=!0)}}}}function Dp(it){if(it.widgets)for(var st=0;st=At&&(Pt=yn(st,bi(An(st,bt))-it.wrapper.clientHeight),At=bt)}return{from:Pt,to:Math.max(At,Pt+1)}}function Ip(it,st){if(!Ln(it,"scrollCursorIntoView")){var dt=it.display,ht=dt.sizer.getBoundingClientRect(),ft=null;if(st.top+ht.top<0?ft=!0:st.bottom+ht.top>(window.innerHeight||document.documentElement.clientHeight)&&(ft=!1),ft!=null&&!je){var Pt=$t("div","\u200B",null,`position: absolute; + top: `+(st.top-dt.viewOffset-ys(it.display))+`px; height: `+(st.bottom-st.top+Ns(it)+dt.barHeight)+`px; - left: `+st.left+"px; width: "+Math.max(2,st.right-st.left)+"px;");it.display.lineSpace.appendChild(Pt),Pt.scrollIntoView(ft),it.display.lineSpace.removeChild(Pt)}}}function od(it,st,dt,ht){ht==null&&(ht=0);var ft;!it.options.lineWrapping&&st==dt&&(st=st.ch?we(st.line,st.sticky=="before"?st.ch-1:st.ch,"after"):st,dt=st.sticky=="before"?we(st.line,st.ch+1,"before"):st);for(var Pt=0;Pt<5;Pt++){var Et=!1,It=dr(it,st),bt=!dt||dt==st?It:dr(it,dt);ft={left:Math.min(It.left,bt.left),top:Math.min(It.top,bt.top)-ht,right:Math.max(It.left,bt.left),bottom:Math.max(It.bottom,bt.bottom)+ht};var Vt=qc(it,ft),ae=it.doc.scrollTop,Qt=it.doc.scrollLeft;if(Vt.scrollTop!=null&&(mh(it,Vt.scrollTop),Math.abs(it.doc.scrollTop-ae)>1&&(Et=!0)),Vt.scrollLeft!=null&&(iu(it,Vt.scrollLeft),Math.abs(it.doc.scrollLeft-Qt)>1&&(Et=!0)),!Et)break}return ft}function Ud(it,st){var dt=qc(it,st);dt.scrollTop!=null&&mh(it,dt.scrollTop),dt.scrollLeft!=null&&iu(it,dt.scrollLeft)}function qc(it,st){var dt=it.display,ht=eu(it.display);st.top<0&&(st.top=0);var ft=it.curOp&&it.curOp.scrollTop!=null?it.curOp.scrollTop:dt.scroller.scrollTop,Pt=Ge(it),Et={};st.bottom-st.top>Pt&&(st.bottom=st.top+Pt);var It=it.doc.height+fl(dt),bt=st.topIt-ht;if(st.topft+Pt){var ae=Math.min(st.top,(Vt?It:st.bottom)-Pt);ae!=ft&&(Et.scrollTop=ae)}var Qt=it.options.fixedGutter?0:dt.gutters.offsetWidth,Le=it.curOp&&it.curOp.scrollLeft!=null?it.curOp.scrollLeft:dt.scroller.scrollLeft-Qt,Pe=Ma(it)-dt.gutters.offsetWidth,$e=st.right-st.left>Pe;return $e&&(st.right=st.left+Pe),st.left<10?Et.scrollLeft=0:st.leftPe+Le-3&&(Et.scrollLeft=st.right+($e?0:10)-Pe),Et}function Rg(it,st){st!=null&&(bl(it),it.curOp.scrollTop=(it.curOp.scrollTop==null?it.doc.scrollTop:it.curOp.scrollTop)+st)}function nu(it){bl(it);var st=it.getCursor();it.curOp.scrollToPos={from:st,to:st,margin:it.options.cursorScrollMargin}}function ph(it,st,dt){(st!=null||dt!=null)&&bl(it),st!=null&&(it.curOp.scrollLeft=st),dt!=null&&(it.curOp.scrollTop=dt)}function to(it,st){bl(it),it.curOp.scrollToPos=st}function bl(it){var st=it.curOp.scrollToPos;if(st){it.curOp.scrollToPos=null;var dt=Ig(it,st.from),ht=Ig(it,st.to);Gg(it,dt,ht,st.margin)}}function Gg(it,st,dt,ht){var ft=qc(it,{left:Math.min(st.left,dt.left),top:Math.min(st.top,dt.top)-ht,right:Math.max(st.right,dt.right),bottom:Math.max(st.bottom,dt.bottom)+ht});ph(it,ft.scrollLeft,ft.scrollTop)}function mh(it,st){Math.abs(it.doc.scrollTop-st)<2||(kt||Fu(it,{top:st}),_c(it,st,!0),kt&&Fu(it),rd(it,100))}function _c(it,st,dt){st=Math.max(0,Math.min(it.display.scroller.scrollHeight-it.display.scroller.clientHeight,st)),!(it.display.scroller.scrollTop==st&&!dt)&&(it.doc.scrollTop=st,it.display.scrollbars.setScrollTop(st),it.display.scroller.scrollTop!=st&&(it.display.scroller.scrollTop=st))}function iu(it,st,dt,ht){st=Math.max(0,Math.min(st,it.display.scroller.scrollWidth-it.display.scroller.clientWidth)),!((dt?st==it.doc.scrollLeft:Math.abs(it.doc.scrollLeft-st)<2)&&!ht)&&(it.doc.scrollLeft=st,Ug(it),it.display.scroller.scrollLeft!=st&&(it.display.scroller.scrollLeft=st),it.display.scrollbars.setScrollLeft(st))}function Ra(it){var st=it.display,dt=st.gutters.offsetWidth,ht=Math.round(it.doc.height+fl(it.display));return{clientHeight:st.scroller.clientHeight,viewHeight:st.wrapper.clientHeight,scrollWidth:st.scroller.scrollWidth,clientWidth:st.scroller.clientWidth,viewWidth:st.wrapper.clientWidth,barLeft:it.options.fixedGutter?dt:0,docHeight:ht,scrollHeight:ht+Ns(it)+st.barHeight,nativeBarWidth:st.nativeBarWidth,gutterWidth:dt}}var ku=function(it,st,dt){this.cm=dt;var ht=this.vert=$t("div",[$t("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ft=this.horiz=$t("div",[$t("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ht.tabIndex=ft.tabIndex=-1,it(ht),it(ft),se(ht,"scroll",function(){ht.clientHeight&&st(ht.scrollTop,"vertical")}),se(ft,"scroll",function(){ft.clientWidth&&st(ft.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ge&&Ae<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ku.prototype.update=function(it){var st=it.scrollWidth>it.clientWidth+1,dt=it.scrollHeight>it.clientHeight+1,ht=it.nativeBarWidth;if(dt){this.vert.style.display="block",this.vert.style.bottom=st?ht+"px":"0";var ft=it.viewHeight-(st?ht:0);this.vert.firstChild.style.height=Math.max(0,it.scrollHeight-it.clientHeight+ft)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(st){this.horiz.style.display="block",this.horiz.style.right=dt?ht+"px":"0",this.horiz.style.left=it.barLeft+"px";var Pt=it.viewWidth-it.barLeft-(dt?ht:0);this.horiz.firstChild.style.width=Math.max(0,it.scrollWidth-it.clientWidth+Pt)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&it.clientHeight>0&&(ht==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:dt?ht:0,bottom:st?ht:0}},ku.prototype.setScrollLeft=function(it){this.horiz.scrollLeft!=it&&(this.horiz.scrollLeft=it),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ku.prototype.setScrollTop=function(it){this.vert.scrollTop!=it&&(this.vert.scrollTop=it),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ku.prototype.zeroWidthHack=function(){var it=gt&&!Be?"12px":"18px";this.horiz.style.height=this.vert.style.width=it,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Gt,this.disableVert=new Gt},ku.prototype.enableZeroWidthBar=function(it,st,dt){it.style.pointerEvents="auto";function ht(){var ft=it.getBoundingClientRect(),Pt=dt=="vert"?document.elementFromPoint(ft.right-1,(ft.top+ft.bottom)/2):document.elementFromPoint((ft.right+ft.left)/2,ft.bottom-1);Pt!=it?it.style.pointerEvents="none":st.set(1e3,ht)}st.set(1e3,ht)},ku.prototype.clear=function(){var it=this.horiz.parentNode;it.removeChild(this.horiz),it.removeChild(this.vert)};var vl=function(){};vl.prototype.update=function(){return{bottom:0,right:0}},vl.prototype.setScrollLeft=function(){},vl.prototype.setScrollTop=function(){},vl.prototype.clear=function(){};function Au(it,st){st||(st=Ra(it));var dt=it.display.barWidth,ht=it.display.barHeight;Hg(it,st);for(var ft=0;ft<4&&dt!=it.display.barWidth||ht!=it.display.barHeight;ft++)dt!=it.display.barWidth&&it.options.lineWrapping&&oi(it),Hg(it,Ra(it)),dt=it.display.barWidth,ht=it.display.barHeight}function Hg(it,st){var dt=it.display,ht=dt.scrollbars.update(st);dt.sizer.style.paddingRight=(dt.barWidth=ht.right)+"px",dt.sizer.style.paddingBottom=(dt.barHeight=ht.bottom)+"px",dt.heightForcer.style.borderBottom=ht.bottom+"px solid transparent",ht.right&&ht.bottom?(dt.scrollbarFiller.style.display="block",dt.scrollbarFiller.style.height=ht.bottom+"px",dt.scrollbarFiller.style.width=ht.right+"px"):dt.scrollbarFiller.style.display="",ht.bottom&&it.options.coverGutterNextToScrollbar&&it.options.fixedGutter?(dt.gutterFiller.style.display="block",dt.gutterFiller.style.height=ht.bottom+"px",dt.gutterFiller.style.width=st.gutterWidth+"px"):dt.gutterFiller.style.display=""}var $c={native:ku,null:vl};function tf(it){it.display.scrollbars&&(it.display.scrollbars.clear(),it.display.scrollbars.addClass&&Kt(it.display.wrapper,it.display.scrollbars.addClass)),it.display.scrollbars=new $c[it.options.scrollbarStyle](function(st){it.display.wrapper.insertBefore(st,it.display.scrollbarFiller),se(st,"mousedown",function(){it.state.focused&&setTimeout(function(){return it.display.input.focus()},0)}),st.setAttribute("cm-not-content","true")},function(st,dt){dt=="horizontal"?iu(it,st):mh(it,st)},it),it.display.scrollbars.addClass&&Fe(it.display.wrapper,it.display.scrollbars.addClass)}var Op=0;function Eu(it){it.curOp={cm:it,viewChanged:!1,startHeight:it.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Op},Mu(it.curOp)}function Nu(it){var st=it.curOp;st&&hh(st,function(dt){for(var ht=0;ht=dt.viewTo)||dt.maxLineChanged&&st.options.lineWrapping,it.update=it.mustUpdate&&new vh(st,it.mustUpdate&&{top:it.scrollTop,ensure:it.scrollToPos},it.forceUpdate)}function _0(it){it.updatedDisplay=it.mustUpdate&&Wg(it.cm,it.update)}function jp(it){var st=it.cm,dt=st.display;it.updatedDisplay&&oi(st),it.barMeasure=Ra(st),dt.maxLineChanged&&!st.options.lineWrapping&&(it.adjustWidthTo=_i(st,dt.maxLine,dt.maxLine.text.length).left+3,st.display.sizerWidth=it.adjustWidthTo,it.barMeasure.scrollWidth=Math.max(dt.scroller.clientWidth,dt.sizer.offsetLeft+it.adjustWidthTo+Ns(st)+st.display.barWidth),it.maxScrollLeft=Math.max(0,dt.sizer.offsetLeft+it.adjustWidthTo-Ma(st))),(it.updatedDisplay||it.selectionChanged)&&(it.preparedSelection=dt.input.prepareSelection())}function Sr(it){var st=it.cm;it.adjustWidthTo!=null&&(st.display.sizer.style.minWidth=it.adjustWidthTo+"px",it.maxScrollLeft=it.display.viewTo)){var dt=+new Date+it.options.workTime,ht=ji(it,st.highlightFrontier),ft=[];st.iter(ht.line,Math.min(st.first+st.size,it.display.viewTo+500),function(Pt){if(ht.line>=it.display.viewFrom){var Et=Pt.styles,It=Pt.text.length>it.options.maxHighlightLength?Dn(st.mode,ht.state):null,bt=vo(it,Pt,ht,!0);It&&(ht.state=It),Pt.styles=bt.styles;var Vt=Pt.styleClasses,ae=bt.classes;ae?Pt.styleClasses=ae:Vt&&(Pt.styleClasses=null);for(var Qt=!Et||Et.length!=Pt.styles.length||Vt!=ae&&(!Vt||!ae||Vt.bgClass!=ae.bgClass||Vt.textClass!=ae.textClass),Le=0;!Qt&&Ledt)return rd(it,it.options.workDelay),!0}),st.highlightFrontier=ht.line,st.modeFrontier=Math.max(st.modeFrontier,ht.line),ft.length&&po(it,function(){for(var Pt=0;Pt=dt.viewFrom&&st.visible.to<=dt.viewTo&&(dt.updateLineNumbers==null||dt.updateLineNumbers>=dt.viewTo)&&dt.renderedView==dt.view&&la(it)==0)return!1;Ir(it)&&(Nr(it),st.dims=zg(it));var ft=ht.first+ht.size,Pt=Math.max(st.visible.from-it.options.viewportMargin,ht.first),Et=Math.min(ft,st.visible.to+it.options.viewportMargin);dt.viewFromEt&&dt.viewTo-Et<20&&(Et=Math.min(ft,dt.viewTo)),ze&&(Pt=li(it.doc,Pt),Et=Un(it.doc,Et));var It=Pt!=dt.viewFrom||Et!=dt.viewTo||dt.lastWrapHeight!=st.wrapperHeight||dt.lastWrapWidth!=st.wrapperWidth;Do(it,Pt,Et),dt.viewOffset=bi(En(it.doc,dt.viewFrom)),it.display.mover.style.top=dt.viewOffset+"px";var bt=la(it);if(!It&&bt==0&&!st.force&&dt.renderedView==dt.view&&(dt.updateLineNumbers==null||dt.updateLineNumbers>=dt.viewTo))return!1;var Vt=Rp(it);return bt>4&&(dt.lineDiv.style.display="none"),ef(it,dt.updateLineNumbers,st.dims),bt>4&&(dt.lineDiv.style.display=""),dt.renderedView=dt.view,_s(Vt),_t(dt.cursorDiv),_t(dt.selectionDiv),dt.gutters.style.height=dt.sizer.style.minHeight=0,It&&(dt.lastWrapHeight=st.wrapperHeight,dt.lastWrapWidth=st.wrapperWidth,rd(it,400)),dt.updateLineNumbers=null,!0}function Mo(it,st){for(var dt=st.viewport,ht=!0;;ht=!1){if(!ht||!it.options.lineWrapping||st.oldDisplayWidth==Ma(it)){if(dt&&dt.top!=null&&(dt={top:Math.min(it.doc.height+fl(it.display)-Ge(it),dt.top)}),st.visible=Vi(it.display,it.doc,dt),st.visible.from>=it.display.viewFrom&&st.visible.to<=it.display.viewTo)break}else ht&&(st.visible=Vi(it.display,it.doc,dt));if(!Wg(it,st))break;oi(it);var ft=Ra(it);Vr(it),Au(it,ft),bu(it,ft),st.force=!1}st.signal(it,"update",it),(it.display.viewFrom!=it.display.reportedViewFrom||it.display.viewTo!=it.display.reportedViewTo)&&(st.signal(it,"viewportChange",it,it.display.viewFrom,it.display.viewTo),it.display.reportedViewFrom=it.display.viewFrom,it.display.reportedViewTo=it.display.viewTo)}function Fu(it,st){var dt=new vh(it,st);if(Wg(it,dt)){oi(it),Mo(it,dt);var ht=Ra(it);Vr(it),Au(it,ht),bu(it,ht),dt.finish()}}function ef(it,st,dt){var ht=it.display,ft=it.options.lineNumbers,Pt=ht.lineDiv,Et=Pt.firstChild;function It($e){var rn=$e.nextSibling;return qt&>&&it.display.currentWheelTarget==$e?$e.style.display="none":$e.parentNode.removeChild($e),rn}for(var bt=ht.view,Vt=ht.viewFrom,ae=0;ae-1&&(Pe=!1),nd(it,Qt,Vt,dt)),Pe&&(_t(Qt.lineNumber),Qt.lineNumber.appendChild(document.createTextNode(fo(it.options,Vt)))),Et=Qt.node.nextSibling}Vt+=Qt.size}for(;Et;)Et=It(Et)}function Bu(it){var st=it.gutters.offsetWidth;it.sizer.style.marginLeft=st+"px"}function bu(it,st){it.display.sizer.style.minHeight=st.docHeight+"px",it.display.heightForcer.style.top=st.docHeight+"px",it.display.gutters.style.height=st.docHeight+it.display.barHeight+Ns(it)+"px"}function Ug(it){var st=it.display,dt=st.view;if(!(!st.alignWidgets&&(!st.gutters.firstChild||!it.options.fixedGutter))){for(var ht=Wd(st)-st.scroller.scrollLeft+it.doc.scrollLeft,ft=st.gutters.offsetWidth,Pt=ht+"px",Et=0;EtEt.clientWidth,bt=Et.scrollHeight>Et.clientHeight;if(ht&&It||ft&&bt){if(ft&>&&qt){t:for(var Vt=st.target,ae=Pt.view;Vt!=Et;Vt=Vt.parentNode)for(var Qt=0;Qt=0&&Je(it,ht.to())<=0)return dt}return-1};var Lo=function(it,st){this.anchor=it,this.head=st};Lo.prototype.from=function(){return $n(this.anchor,this.head)},Lo.prototype.to=function(){return Zi(this.anchor,this.head)},Lo.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function il(it,st,dt){var ht=it&&it.options.selectionsMayTouch,ft=st[dt];st.sort(function(Le,Pe){return Je(Le.from(),Pe.from())}),dt=He(st,ft);for(var Pt=1;Pt0:bt>=0){var Vt=$n(It.from(),Et.from()),ae=Zi(It.to(),Et.to()),Qt=It.empty()?Et.from()==Et.head:It.from()==It.head;Pt<=dt&&--dt,st.splice(--Pt,2,new Lo(Qt?ae:Vt,Qt?Vt:ae))}}return new Ga(st,dt)}function ou(it,st){return new Ga([new Lo(it,st||it)],0)}function Iu(it){return it.text?we(it.from.line+it.text.length-1,te(it.text).length+(it.text.length==1?it.from.ch:0)):it.to}function Sh(it,st){if(Je(it,st.from)<0)return it;if(Je(it,st.to)<=0)return Iu(st);var dt=it.line+st.text.length-(st.to.line-st.from.line)-1,ht=it.ch;return it.line==st.to.line&&(ht+=Iu(st).ch-st.to.ch),we(dt,ht)}function Yd(it,st){for(var dt=[],ht=0;ht1&&it.remove(It.line+1,$e-1),it.insert(It.line+1,Bn)}jn(it,"change",it,st)}function Sl(it,st,dt){function ht(ft,Pt,Et){if(ft.linked)for(var It=0;It1&&!it.done[it.done.length-2].ranges)return it.done.pop(),te(it.done)}function Zd(it,st,dt,ht){var ft=it.history;ft.undone.length=0;var Pt=+new Date,Et,It;if((ft.lastOp==ht||ft.lastOrigin==st.origin&&st.origin&&(st.origin.charAt(0)=="+"&&ft.lastModTime>Pt-(it.cm?it.cm.options.historyEventDelay:500)||st.origin.charAt(0)=="*"))&&(Et=Qd(ft,ft.lastOp==ht)))It=te(Et.changes),Je(st.from,st.to)==0&&Je(st.from,It.to)==0?It.to=Iu(st):Et.changes.push(Kg(it,st));else{var bt=te(ft.done);for((!bt||!bt.ranges)&&ud(it.sel,ft.done),Et={changes:[Kg(it,st)],generation:ft.generation},ft.done.push(Et);ft.done.length>ft.undoDepth;)ft.done.shift(),ft.done[0].ranges||ft.done.shift()}ft.done.push(dt),ft.generation=++ft.maxGeneration,ft.lastModTime=ft.lastSelTime=Pt,ft.lastOp=ft.lastSelOp=ht,ft.lastOrigin=ft.lastSelOrigin=st.origin,It||tn(it,"historyAdded")}function of(it,st,dt,ht){var ft=st.charAt(0);return ft=="*"||ft=="+"&&dt.ranges.length==ht.ranges.length&&dt.somethingSelected()==ht.somethingSelected()&&new Date-it.history.lastSelTime<=(it.cm?it.cm.options.historyEventDelay:500)}function Jd(it,st,dt,ht){var ft=it.history,Pt=ht&&ht.origin;dt==ft.lastSelOp||Pt&&ft.lastSelOrigin==Pt&&(ft.lastModTime==ft.lastSelTime&&ft.lastOrigin==Pt||of(it,Pt,te(ft.done),st))?ft.done[ft.done.length-1]=st:ud(st,ft.done),ft.lastSelTime=+new Date,ft.lastSelOrigin=Pt,ft.lastSelOp=dt,ht&&ht.clearRedo!==!1&&ld(ft.undone)}function ud(it,st){var dt=te(st);dt&&dt.ranges&&dt.equals(it)||st.push(it)}function Ou(it,st,dt,ht){var ft=st["spans_"+it.id],Pt=0;it.iter(Math.max(it.first,dt),Math.min(it.first+it.size,ht),function(Et){Et.markedSpans&&((ft||(ft=st["spans_"+it.id]={}))[Pt]=Et.markedSpans),++Pt})}function Ws(it){if(!it)return null;for(var st,dt=0;dt-1&&(te(It)[Qt]=Vt[Qt],delete Vt[Qt])}}return ht}function Qg(it,st,dt,ht){if(ht){var ft=it.anchor;if(dt){var Pt=Je(st,ft)<0;Pt!=Je(dt,ft)<0?(ft=st,st=dt):Pt!=Je(st,dt)<0&&(st=dt)}return new Lo(ft,st)}else return new Lo(dt||st,st)}function Zg(it,st,dt,ht,ft){ft==null&&(ft=it.cm&&(it.cm.display.shift||it.extend)),Fs(it,new Ga([Qg(it.sel.primary(),st,dt,ft)],0),ht)}function Gp(it,st,dt){for(var ht=[],ft=it.cm&&(it.cm.display.shift||it.extend),Pt=0;Pt=st.ch:It.to>st.ch))){if(ft&&(tn(bt,"beforeCursorEnter"),bt.explicitlyCleared))if(Pt.markedSpans){--Et;continue}else break;if(!bt.atomic)continue;if(dt){var Qt=bt.find(ht<0?1:-1),Le=void 0;if((ht<0?ae:Vt)&&(Qt=sf(it,Qt,-ht,Qt&&Qt.line==st.line?Pt:null)),Qt&&Qt.line==st.line&&(Le=Je(Qt,dt))&&(ht<0?Le<0:Le>0))return su(it,Qt,st,ht,ft)}var Pe=bt.find(ht<0?-1:1);return(ht<0?Vt:ae)&&(Pe=sf(it,Pe,ht,Pe.line==st.line?Pt:null)),Pe?su(it,Pe,st,ht,ft):null}}return st}function $d(it,st,dt,ht,ft){var Pt=ht||1,Et=su(it,st,dt,Pt,ft)||!ft&&su(it,st,dt,Pt,!0)||su(it,st,dt,-Pt,ft)||!ft&&su(it,st,dt,-Pt,!0);return Et||(it.cantEdit=!0,we(it.first,0))}function sf(it,st,dt,ht){return dt<0&&st.ch==0?st.line>it.first?Wn(it,we(st.line-1)):null:dt>0&&st.ch==(ht||En(it,st.line)).text.length?st.line=0;--ft)wh(it,{from:ht[ft].from,to:ht[ft].to,text:ft?[""]:st.text,origin:st.origin});else wh(it,st)}}function wh(it,st){if(!(st.text.length==1&&st.text[0]==""&&Je(st.from,st.to)==0)){var dt=Yd(it,st);Zd(it,st,dt,it.cm?it.cm.curOp.id:NaN),hd(it,st,dt,Po(it,st));var ht=[];Sl(it,function(ft,Pt){!Pt&&He(ht,ft.history)==-1&&(lf(ft.history,st),ht.push(ft.history)),hd(ft,st,null,Po(ft,st))})}}function eg(it,st,dt){var ht=it.cm&&it.cm.state.suppressEdits;if(!(ht&&!dt)){for(var ft=it.history,Pt,Et=it.sel,It=st=="undo"?ft.done:ft.undone,bt=st=="undo"?ft.undone:ft.done,Vt=0;Vt=0;--Pe){var $e=Le(Pe);if($e)return $e.v}}}}function af(it,st){if(st!=0&&(it.first+=st,it.sel=new Ga(Ve(it.sel.ranges,function(ft){return new Lo(we(ft.anchor.line+st,ft.anchor.ch),we(ft.head.line+st,ft.head.ch))}),it.sel.primIndex),it.cm)){er(it.cm,it.first,it.first-st,st);for(var dt=it.cm.display,ht=dt.viewFrom;htit.lastLine())){if(st.from.linePt&&(st={from:st.from,to:we(Pt,En(it,Pt).text.length),text:[st.text[0]],origin:st.origin}),st.removed=Xi(it,st.from,st.to),dt||(dt=Yd(it,st)),it.cm?Wp(it.cm,st,ht):Yg(it,st,ht),Ph(it,dt,ce),it.cantEdit&&$d(it,we(it.firstLine(),0))&&(it.cantEdit=!1)}}function Wp(it,st,dt){var ht=it.doc,ft=it.display,Pt=st.from,Et=st.to,It=!1,bt=Pt.line;it.options.lineWrapping||(bt=ee(wo(En(ht,Pt.line))),ht.iter(bt,Et.line+1,function(Pe){if(Pe==ft.maxLine)return It=!0,!0})),ht.sel.contains(st.from,st.to)>-1&&ni(it),Yg(ht,st,dt,tr(it)),it.options.lineWrapping||(ht.iter(bt,Pt.line+st.text.length,function(Pe){var $e=Bo(Pe);$e>ft.maxLineLength&&(ft.maxLine=Pe,ft.maxLineLength=$e,ft.maxLineChanged=!0,It=!1)}),It&&(it.curOp.updateMaxLine=!0)),Gi(ht,Pt.line),rd(it,400);var Vt=st.text.length-(Et.line-Pt.line)-1;st.full?er(it):Pt.line==Et.line&&st.text.length==1&&!nf(it.doc,st)?Di(it,Pt.line,"text"):er(it,Pt.line,Et.line+1,Vt);var ae=di(it,"changes"),Qt=di(it,"change");if(Qt||ae){var Le={from:Pt,to:Et,text:st.text,removed:st.removed,origin:st.origin};Qt&&jn(it,"change",it,Le),ae&&(it.curOp.changeObjs||(it.curOp.changeObjs=[])).push(Le)}it.display.selForContextMenu=null}function Ch(it,st,dt,ht,ft){var Pt;ht||(ht=dt),Je(ht,dt)<0&&(Pt=[ht,dt],dt=Pt[0],ht=Pt[1]),typeof st=="string"&&(st=it.splitLines(st)),zu(it,{from:dt,to:ht,text:st,origin:ft})}function Ha(it,st,dt,ht){dt1||!(this.children[0]instanceof dd))){var It=[];this.collapse(It),this.children=[new dd(It)],this.children[0].parent=this}},collapse:function(it){for(var st=0;st50){for(var Et=ft.lines.length%25+25,It=Et;It10);it.parent.maybeSpill()}},iterN:function(it,st,dt){for(var ht=0;htit.display.maxLineLength&&(it.display.maxLine=Vt,it.display.maxLineLength=ae,it.display.maxLineChanged=!0)}ht!=null&&it&&this.collapsed&&er(it,ht,ft+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,it&&qd(it.doc)),it&&jn(it,"markerCleared",it,this,ht,ft),st&&Nu(it),this.parent&&this.parent.clear()}},oe.prototype.find=function(it,st){it==null&&this.type=="bookmark"&&(it=1);for(var dt,ht,ft=0;ft0||Et==0&&Pt.clearWhenEmpty!==!1)return Pt;if(Pt.replacedWith&&(Pt.collapsed=!0,Pt.widgetNode=ve("span",[Pt.replacedWith],"CodeMirror-widget"),ht.handleMouseEvents||Pt.widgetNode.setAttribute("cm-ignore-events","true"),ht.insertLeft&&(Pt.widgetNode.insertLeft=!0)),Pt.collapsed){if(ed(it,st.line,st,dt,Pt)||st.line!=dt.line&&ed(it,dt.line,st,dt,Pt))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ie()}Pt.addToHistory&&Zd(it,{from:st,to:dt,origin:"markText"},it.sel,NaN);var It=st.line,bt=it.cm,Vt;if(it.iter(It,dt.line+1,function(Qt){bt&&Pt.collapsed&&!bt.options.lineWrapping&&wo(Qt)==bt.display.maxLine&&(Vt=!0),Pt.collapsed&&It!=st.line&&ao(Qt,0),_r(Qt,new Yi(Pt,It==st.line?st.ch:null,It==dt.line?dt.ch:null)),++It}),Pt.collapsed&&it.iter(st.line,dt.line+1,function(Qt){Xe(it,Qt)&&ao(Qt,0)}),Pt.clearOnEnter&&se(Pt,"beforeCursorEnter",function(){return Pt.clear()}),Pt.readOnly&&(Wi(),(it.history.done.length||it.history.undone.length)&&it.clearHistory()),Pt.collapsed&&(Pt.id=++Vp,Pt.atomic=!0),bt){if(Vt&&(bt.curOp.updateMaxLine=!0),Pt.collapsed)er(bt,st.line,dt.line+1);else if(Pt.className||Pt.startStyle||Pt.endStyle||Pt.css||Pt.attributes||Pt.title)for(var ae=st.line;ae<=dt.line;ae++)Di(bt,ae,"text");Pt.atomic&&qd(bt.doc),jn(bt,"markerAdded",bt,Pt)}return Pt}var Il=function(it,st){this.markers=it,this.primary=st;for(var dt=0;dt=0;bt--)zu(this,ht[bt]);It?Jg(this,It):this.cm&&nu(this.cm)}),undo:os(function(){eg(this,"undo")}),redo:os(function(){eg(this,"redo")}),undoSelection:os(function(){eg(this,"undo",!0)}),redoSelection:os(function(){eg(this,"redo",!0)}),setExtending:function(it){this.extend=it},getExtending:function(){return this.extend},historySize:function(){for(var it=this.history,st=0,dt=0,ht=0;ht=it.ch)&&st.push(ft.marker.parent||ft.marker)}return st},findMarks:function(it,st,dt){it=Wn(this,it),st=Wn(this,st);var ht=[],ft=it.line;return this.iter(it.line,st.line+1,function(Pt){var Et=Pt.markedSpans;if(Et)for(var It=0;It=bt.to||bt.from==null&&ft!=it.line||bt.from!=null&&ft==st.line&&bt.from>=st.ch)&&(!dt||dt(bt.marker))&&ht.push(bt.marker.parent||bt.marker)}++ft}),ht},getAllMarks:function(){var it=[];return this.iter(function(st){var dt=st.markedSpans;if(dt)for(var ht=0;htit)return st=it,!0;it-=Pt,++dt}),Wn(this,we(dt,st))},indexFromPos:function(it){it=Wn(this,it);var st=it.ch;if(it.linest&&(st=it.from),it.to!=null&&it.to-1){st.state.draggingText(it),setTimeout(function(){return st.display.input.focus()},20);return}try{var ae=it.dataTransfer.getData("Text");if(ae){var Qt;if(st.state.draggingText&&!st.state.draggingText.copy&&(Qt=st.listSelections()),Ph(st.doc,ou(dt,dt)),Qt)for(var Le=0;Le=0;It--)Ch(it.doc,"",ht[It].from,ht[It].to,"+delete");nu(it)})}function vf(it,st,dt){var ht=Nn(it.text,st+dt,dt);return ht<0||ht>it.text.length?null:ht}function Br(it,st,dt){var ht=vf(it,st.ch,dt);return ht==null?null:new we(st.line,ht,dt<0?"after":"before")}function rg(it,st,dt,ht,ft){if(it){st.doc.direction=="rtl"&&(ft=-ft);var Pt=Rt(dt,st.doc.direction);if(Pt){var Et=ft<0?te(Pt):Pt[0],It=ft<0==(Et.level==1),bt=It?"after":"before",Vt;if(Et.level>0||st.doc.direction=="rtl"){var ae=Oo(st,dt);Vt=ft<0?dt.text.length-1:0;var Qt=bo(st,ae,Vt).top;Vt=xn(function(Le){return bo(st,ae,Le).top==Qt},ft<0==(Et.level==1)?Et.from:Et.to-1,Vt),bt=="before"&&(Vt=vf(dt,Vt,1))}else Vt=ft<0?Et.to:Et.from;return new we(ht,Vt,bt)}}return new we(ht,ft<0?dt.text.length:0,ft<0?"before":"after")}function $g(it,st,dt,ht){var ft=Rt(st,it.doc.direction);if(!ft)return Br(st,dt,ht);dt.ch>=st.text.length?(dt.ch=st.text.length,dt.sticky="before"):dt.ch<=0&&(dt.ch=0,dt.sticky="after");var Pt=xt(ft,dt.ch,dt.sticky),Et=ft[Pt];if(it.doc.direction=="ltr"&&Et.level%2==0&&(ht>0?Et.to>dt.ch:Et.from=Et.from&&Le>=ae.begin)){var Pe=Qt?"before":"after";return new we(dt.line,Le,Pe)}}var $e=function(Bn,Xn,zn){for(var ti=function(nr,Qr){return Qr?new we(dt.line,It(nr,1),"before"):new we(dt.line,nr,"after")};Bn>=0&&Bn0==(Pi.level!=1),Oi=On?zn.begin:It(zn.end,-1);if(Pi.from<=Oi&&Oi0?ae.end:It(ae.begin,-1);return mn!=null&&!(ht>0&&mn==st.text.length)&&(rn=$e(ht>0?0:ft.length-1,ht,Vt(mn)),rn)?rn:null}var Ru={selectAll:Fr,singleSelection:function(it){return it.setSelection(it.getCursor("anchor"),it.getCursor("head"),ce)},killLine:function(it){return da(it,function(st){if(st.empty()){var dt=En(it.doc,st.head.line).text.length;return st.head.ch==dt&&st.head.line0)ft=new we(ft.line,ft.ch+1),it.replaceRange(Pt.charAt(ft.ch-1)+Pt.charAt(ft.ch-2),we(ft.line,ft.ch-2),ft,"+transpose");else if(ft.line>it.doc.first){var Et=En(it.doc,ft.line-1).text;Et&&(ft=new we(ft.line,1),it.replaceRange(Pt.charAt(0)+it.doc.lineSeparator()+Et.charAt(Et.length-1),we(ft.line-1,Et.length-1),ft,"+transpose"))}}dt.push(new Lo(ft,ft))}it.setSelections(dt)})},newlineAndIndent:function(it){return po(it,function(){for(var st=it.listSelections(),dt=st.length-1;dt>=0;dt--)it.replaceRange(it.doc.lineSeparator(),st[dt].anchor,st[dt].head,"+input");st=it.listSelections();for(var ht=0;htit&&Je(st,this.pos)==0&&dt==this.button};var vd,Nh;function Mf(it,st){var dt=+new Date;return Nh&&Nh.compare(dt,it,st)?(vd=Nh=null,"triple"):vd&&vd.compare(dt,it,st)?(Nh=new Cf(dt,it,st),vd=null,"double"):(vd=new Cf(dt,it,st),Nh=null,"single")}function Pl(it){var st=this,dt=st.display;if(!(Ln(st,it)||dt.activeTouch&&dt.input.supportsTouch())){if(dt.input.ensurePolled(),dt.shift=it.shiftKey,Rs(dt,it)){qt||(dt.scroller.draggable=!1,setTimeout(function(){return dt.scroller.draggable=!0},100));return}if(!rc(st,it)){var ht=Gs(st,it),ft=mr(it),Pt=ht?Mf(ht,ft):"single";window.focus(),ft==1&&st.state.selectingText&&st.state.selectingText(it),!(ht&&Lf(st,ft,ht,Pt,it))&&(ft==1?ht?tm(st,ht,Pt,it):Ho(it)==dt.scroller&&Mi(it):ft==2?(ht&&Zg(st.doc,ht),setTimeout(function(){return dt.input.focus()},20)):ft==3&&(Ft?st.display.input.onContextMenu(it):sr(st)))}}}function Lf(it,st,dt,ht,ft){var Pt="Click";return ht=="double"?Pt="Double"+Pt:ht=="triple"&&(Pt="Triple"+Pt),Pt=(st==1?"Left":st==2?"Middle":"Right")+Pt,Ah(it,mf(Pt,ft),ft,function(Et){if(typeof Et=="string"&&(Et=Ru[Et]),!Et)return!1;var It=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),It=Et(it,dt)!=ln}finally{it.state.suppressEdits=!1}return It})}function ic(it,st,dt){var ht=it.getOption("configureMouse"),ft=ht?ht(it,st,dt):{};if(ft.unit==null){var Pt=lt?dt.shiftKey&&dt.metaKey:dt.altKey;ft.unit=Pt?"rectangle":st=="single"?"char":st=="double"?"word":"line"}return(ft.extend==null||it.doc.extend)&&(ft.extend=it.doc.extend||dt.shiftKey),ft.addNew==null&&(ft.addNew=gt?dt.metaKey:dt.ctrlKey),ft.moveOnDrag==null&&(ft.moveOnDrag=!(gt?dt.altKey:dt.ctrlKey)),ft}function tm(it,st,dt,ht){ge?setTimeout(Mn(Uo,it),0):it.curOp.focus=me();var ft=ic(it,dt,ht),Pt=it.doc.sel,Et;it.options.dragDrop&&so&&!it.isReadOnly()&&dt=="single"&&(Et=Pt.contains(st))>-1&&(Je((Et=Pt.ranges[Et]).from(),st)<0||st.xRel>0)&&(Je(Et.to(),st)>0||st.xRel<0)?kf(it,ht,st,ft):ev(it,ht,st,ft)}function kf(it,st,dt,ht){var ft=it.display,Pt=!1,Et=Kr(it,function(Vt){qt&&(ft.scroller.draggable=!1),it.state.draggingText=!1,nn(ft.wrapper.ownerDocument,"mouseup",Et),nn(ft.wrapper.ownerDocument,"mousemove",It),nn(ft.scroller,"dragstart",bt),nn(ft.scroller,"drop",Et),Pt||(Mi(Vt),ht.addNew||Zg(it.doc,dt,null,null,ht.extend),qt&&!le||ge&&Ae==9?setTimeout(function(){ft.wrapper.ownerDocument.body.focus({preventScroll:!0}),ft.input.focus()},20):ft.input.focus())}),It=function(Vt){Pt=Pt||Math.abs(st.clientX-Vt.clientX)+Math.abs(st.clientY-Vt.clientY)>=10},bt=function(){return Pt=!0};qt&&(ft.scroller.draggable=!0),it.state.draggingText=Et,Et.copy=!ht.moveOnDrag,ft.scroller.dragDrop&&ft.scroller.dragDrop(),se(ft.wrapper.ownerDocument,"mouseup",Et),se(ft.wrapper.ownerDocument,"mousemove",It),se(ft.scroller,"dragstart",bt),se(ft.scroller,"drop",Et),sr(it),setTimeout(function(){return ft.input.focus()},20)}function Af(it,st,dt){if(dt=="char")return new Lo(st,st);if(dt=="word")return it.findWordAt(st);if(dt=="line")return new Lo(we(st.line,0),Wn(it.doc,we(st.line+1,0)));var ht=dt(it,st);return new Lo(ht.from,ht.to)}function ev(it,st,dt,ht){var ft=it.display,Pt=it.doc;Mi(st);var Et,It,bt=Pt.sel,Vt=bt.ranges;if(ht.addNew&&!ht.extend?(It=Pt.sel.contains(dt),It>-1?Et=Vt[It]:Et=new Lo(dt,dt)):(Et=Pt.sel.primary(),It=Pt.sel.primIndex),ht.unit=="rectangle")ht.addNew||(Et=new Lo(dt,dt)),dt=Gs(it,st,!0,!0),It=-1;else{var ae=Af(it,dt,ht.unit);ht.extend?Et=Qg(Et,ae.anchor,ae.head,ht.extend):Et=ae}ht.addNew?It==-1?(It=Vt.length,Fs(Pt,il(it,Vt.concat([Et]),It),{scroll:!1,origin:"*mouse"})):Vt.length>1&&Vt[It].empty()&&ht.unit=="char"&&!ht.extend?(Fs(Pt,il(it,Vt.slice(0,It).concat(Vt.slice(It+1)),0),{scroll:!1,origin:"*mouse"}),bt=Pt.sel):ju(Pt,It,Et,Ue):(It=0,Fs(Pt,new Ga([Et],0),Ue),bt=Pt.sel);var Qt=dt;function Le(zn){if(Je(Qt,zn)!=0)if(Qt=zn,ht.unit=="rectangle"){for(var ti=[],Pi=it.options.tabSize,On=Zt(En(Pt,dt.line).text,dt.ch,Pi),Oi=Zt(En(Pt,zn.line).text,zn.ch,Pi),nr=Math.min(On,Oi),Qr=Math.max(On,Oi),cr=Math.min(dt.line,zn.line),ta=Math.min(it.lastLine(),Math.max(dt.line,zn.line));cr<=ta;cr++){var Bs=En(Pt,cr).text,Hr=wn(Bs,nr,Pi);nr==Qr?ti.push(new Lo(we(cr,Hr),we(cr,Hr))):Bs.length>Hr&&ti.push(new Lo(we(cr,Hr),we(cr,wn(Bs,Qr,Pi))))}ti.length||ti.push(new Lo(dt,dt)),Fs(Pt,il(it,bt.ranges.slice(0,It).concat(ti),It),{origin:"*mouse",scroll:!1}),it.scrollIntoView(zn)}else{var ga=Et,Ps=Af(it,zn,ht.unit),Wr=ga.anchor,ho;Je(Ps.anchor,Wr)>0?(ho=Ps.head,Wr=$n(ga.from(),Ps.anchor)):(ho=Ps.anchor,Wr=Zi(ga.to(),Ps.head));var xr=bt.ranges.slice(0);xr[It]=em(it,new Lo(Wn(Pt,Wr),ho)),Fs(Pt,il(it,xr,It),Ue)}}var Pe=ft.wrapper.getBoundingClientRect(),$e=0;function rn(zn){var ti=++$e,Pi=Gs(it,zn,!0,ht.unit=="rectangle");if(Pi)if(Je(Pi,Qt)!=0){it.curOp.focus=me(),Le(Pi);var On=Vi(ft,Pt);(Pi.line>=On.to||Pi.linePe.bottom?20:0;Oi&&setTimeout(Kr(it,function(){$e==ti&&(ft.scroller.scrollTop+=Oi,rn(zn))}),50)}}function mn(zn){it.state.selectingText=!1,$e=1/0,zn&&(Mi(zn),ft.input.focus()),nn(ft.wrapper.ownerDocument,"mousemove",Bn),nn(ft.wrapper.ownerDocument,"mouseup",Xn),Pt.history.lastSelOrigin=null}var Bn=Kr(it,function(zn){zn.buttons===0||!mr(zn)?mn(zn):rn(zn)}),Xn=Kr(it,mn);it.state.selectingText=Xn,se(ft.wrapper.ownerDocument,"mousemove",Bn),se(ft.wrapper.ownerDocument,"mouseup",Xn)}function em(it,st){var dt=st.anchor,ht=st.head,ft=En(it.doc,dt.line);if(Je(dt,ht)==0&&dt.sticky==ht.sticky)return st;var Pt=Rt(ft);if(!Pt)return st;var Et=xt(Pt,dt.ch,dt.sticky),It=Pt[Et];if(It.from!=dt.ch&&It.to!=dt.ch)return st;var bt=Et+(It.from==dt.ch==(It.level!=1)?0:1);if(bt==0||bt==Pt.length)return st;var Vt;if(ht.line!=dt.line)Vt=(ht.line-dt.line)*(it.doc.direction=="ltr"?1:-1)>0;else{var ae=xt(Pt,ht.ch,ht.sticky),Qt=ae-Et||(ht.ch-dt.ch)*(It.level==1?-1:1);ae==bt-1||ae==bt?Vt=Qt<0:Vt=Qt>0}var Le=Pt[bt+(Vt?-1:0)],Pe=Vt==(Le.level==1),$e=Pe?Le.from:Le.to,rn=Pe?"after":"before";return dt.ch==$e&&dt.sticky==rn?st:new Lo(new we(dt.line,$e,rn),ht)}function oc(it,st,dt,ht){var ft,Pt;if(st.touches)ft=st.touches[0].clientX,Pt=st.touches[0].clientY;else try{ft=st.clientX,Pt=st.clientY}catch(Le){return!1}if(ft>=Math.floor(it.display.gutters.getBoundingClientRect().right))return!1;ht&&Mi(st);var Et=it.display,It=Et.lineDiv.getBoundingClientRect();if(Pt>It.bottom||!di(it,dt))return oo(st);Pt-=It.top-Et.viewOffset;for(var bt=0;bt=ft){var ae=yn(it.doc,Pt),Qt=it.display.gutterSpecs[bt];return tn(it,dt,it,ae,Qt.className,st),oo(st)}}}function rc(it,st){return oc(it,st,"gutterClick",!0)}function sc(it,st){Rs(it.display,st)||nm(it,st)||Ln(it,st,"contextmenu")||Ft||it.display.input.onContextMenu(st)}function nm(it,st){return di(it,"gutterContextMenu")?oc(it,st,"gutterContextMenu",!1):!1}function ac(it){it.display.wrapper.className=it.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+it.options.theme.replace(/(^|\s)\s*/g," cm-s-"),el(it)}var Gu={toString:function(){return"CodeMirror.Init"}},Ef={},sg={};function im(it){var st=it.optionHandlers;function dt(ht,ft,Pt,Et){it.defaults[ht]=ft,Pt&&(st[ht]=Et?function(It,bt,Vt){Vt!=Gu&&Pt(It,bt,Vt)}:Pt)}it.defineOption=dt,it.Init=Gu,dt("value","",function(ht,ft){return ht.setValue(ft)},!0),dt("mode",null,function(ht,ft){ht.doc.modeOption=ft,Ii(ht)},!0),dt("indentUnit",2,Ii,!0),dt("indentWithTabs",!1),dt("smartIndent",!0),dt("tabSize",4,function(ht){Kd(ht),el(ht),er(ht)},!0),dt("lineSeparator",null,function(ht,ft){if(ht.doc.lineSep=ft,!!ft){var Pt=[],Et=ht.doc.first;ht.doc.iter(function(bt){for(var Vt=0;;){var ae=bt.text.indexOf(ft,Vt);if(ae==-1)break;Vt=ae+ft.length,Pt.push(we(Et,ae))}Et++});for(var It=Pt.length-1;It>=0;It--)Ch(ht.doc,ft,Pt[It],we(Pt[It].line,Pt[It].ch+ft.length))}}),dt("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ht,ft,Pt){ht.state.specialChars=new RegExp(ft.source+(ft.test(" ")?"":"| "),"g"),Pt!=Gu&&ht.refresh()}),dt("specialCharPlaceholder",Es,function(ht){return ht.refresh()},!0),dt("electricChars",!0),dt("inputStyle",nt?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),dt("spellcheck",!1,function(ht,ft){return ht.getInputField().spellcheck=ft},!0),dt("autocorrect",!1,function(ht,ft){return ht.getInputField().autocorrect=ft},!0),dt("autocapitalize",!1,function(ht,ft){return ht.getInputField().autocapitalize=ft},!0),dt("rtlMoveVisually",!pt),dt("wholeLineUpdateBefore",!0),dt("theme","default",function(ht){ac(ht),ka(ht)},!0),dt("keyMap","default",function(ht,ft,Pt){var Et=kh(ft),It=Pt!=Gu&&kh(Pt);It&&It.detach&&It.detach(ht,Et),Et.attach&&Et.attach(ht,It||null)}),dt("extraKeys",null),dt("configureMouse",null),dt("lineWrapping",!1,om,!0),dt("gutters",[],function(ht,ft){ht.display.gutterSpecs=ss(ft,ht.options.lineNumbers),ka(ht)},!0),dt("fixedGutter",!0,function(ht,ft){ht.display.gutters.style.left=ft?Wd(ht.display)+"px":"0",ht.refresh()},!0),dt("coverGutterNextToScrollbar",!1,function(ht){return Au(ht)},!0),dt("scrollbarStyle","native",function(ht){tf(ht),Au(ht),ht.display.scrollbars.setScrollTop(ht.doc.scrollTop),ht.display.scrollbars.setScrollLeft(ht.doc.scrollLeft)},!0),dt("lineNumbers",!1,function(ht,ft){ht.display.gutterSpecs=ss(ht.options.gutters,ft),ka(ht)},!0),dt("firstLineNumber",1,ka,!0),dt("lineNumberFormatter",function(ht){return ht},ka,!0),dt("showCursorWhenSelecting",!1,Vr,!0),dt("resetSelectionOnContextMenu",!0),dt("lineWiseCopyCut",!0),dt("pasteLinesPerSelection",!0),dt("selectionsMayTouch",!1),dt("readOnly",!1,function(ht,ft){ft=="nocursor"&&(fh(ht),ht.display.input.blur()),ht.display.input.readOnlyChanged(ft)}),dt("screenReaderLabel",null,function(ht,ft){ft=ft===""?null:ft,ht.display.input.screenReaderLabelChanged(ft)}),dt("disableInput",!1,function(ht,ft){ft||ht.display.input.reset()},!0),dt("dragDrop",!0,lc),dt("allowDropFileTypes",null),dt("cursorBlinkRate",530),dt("cursorScrollMargin",0),dt("cursorHeight",1,Vr,!0),dt("singleCursorHeightPerLine",!0,Vr,!0),dt("workTime",100),dt("workDelay",100),dt("flattenSpans",!0,Kd,!0),dt("addModeClass",!1,Kd,!0),dt("pollInterval",100),dt("undoDepth",200,function(ht,ft){return ht.doc.history.undoDepth=ft}),dt("historyEventDelay",1250),dt("viewportMargin",10,function(ht){return ht.refresh()},!0),dt("maxHighlightLength",1e4,Kd,!0),dt("moveInputWithCursor",!0,function(ht,ft){ft||ht.display.input.resetPosition()}),dt("tabindex",null,function(ht,ft){return ht.display.input.getField().tabIndex=ft||""}),dt("autofocus",null),dt("direction","ltr",function(ht,ft){return ht.doc.setDirection(ft)},!0),dt("phrases",null)}function lc(it,st,dt){var ht=dt&&dt!=Gu;if(!st!=!ht){var ft=it.display.dragFunctions,Pt=st?se:nn;Pt(it.display.scroller,"dragstart",ft.start),Pt(it.display.scroller,"dragenter",ft.enter),Pt(it.display.scroller,"dragover",ft.over),Pt(it.display.scroller,"dragleave",ft.leave),Pt(it.display.scroller,"drop",ft.drop)}}function om(it){it.options.lineWrapping?(Fe(it.display.wrapper,"CodeMirror-wrap"),it.display.sizer.style.minWidth="",it.display.sizerWidth=null):(Kt(it.display.wrapper,"CodeMirror-wrap"),Zo(it)),ai(it),er(it),el(it),setTimeout(function(){return Au(it)},100)}function ro(it,st){var dt=this;if(!(this instanceof ro))return new ro(it,st);this.options=st=st?In(st):{},In(Ef,st,!1);var ht=st.value;typeof ht=="string"?ht=new xs(ht,st.mode,null,st.lineSeparator,st.direction):st.mode&&(ht.modeOption=st.mode),this.doc=ht;var ft=new ro.inputStyles[st.inputStyle](this),Pt=this.display=new Du(it,ht,ft,st);Pt.wrapper.CodeMirror=this,ac(this),st.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),tf(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Gt,keySeq:null,specialChars:null},st.autofocus&&!nt&&Pt.input.focus(),ge&&Ae<11&&setTimeout(function(){return dt.display.input.reset(!0)},20),yd(this),Ea(),Eu(this),this.curOp.forceUpdate=!0,Vg(this,ht),st.autofocus&&!nt||this.hasFocus()?setTimeout(function(){dt.hasFocus()&&!dt.state.focused&&$i(dt)},20):fh(this);for(var Et in sg)sg.hasOwnProperty(Et)&&sg[Et](this,st[Et],Gu);Ir(this),st.finishInit&&st.finishInit(this);for(var It=0;It20*20}se(st.scroller,"touchstart",function(bt){if(!Ln(it,bt)&&!Pt(bt)&&!rc(it,bt)){st.input.ensurePolled(),clearTimeout(dt);var Vt=+new Date;st.activeTouch={start:Vt,moved:!1,prev:Vt-ht.end<=300?ht:null},bt.touches.length==1&&(st.activeTouch.left=bt.touches[0].pageX,st.activeTouch.top=bt.touches[0].pageY)}}),se(st.scroller,"touchmove",function(){st.activeTouch&&(st.activeTouch.moved=!0)}),se(st.scroller,"touchend",function(bt){var Vt=st.activeTouch;if(Vt&&!Rs(st,bt)&&Vt.left!=null&&!Vt.moved&&new Date-Vt.start<300){var ae=it.coordsChar(st.activeTouch,"page"),Qt;!Vt.prev||Et(Vt,Vt.prev)?Qt=new Lo(ae,ae):!Vt.prev.prev||Et(Vt,Vt.prev.prev)?Qt=it.findWordAt(ae):Qt=new Lo(we(ae.line,0),Wn(it.doc,we(ae.line+1,0))),it.setSelection(Qt.anchor,Qt.head),it.focus(),Mi(bt)}ft()}),se(st.scroller,"touchcancel",ft),se(st.scroller,"scroll",function(){st.scroller.clientHeight&&(mh(it,st.scroller.scrollTop),iu(it,st.scroller.scrollLeft,!0),tn(it,"scroll",it))}),se(st.scroller,"mousewheel",function(bt){return as(it,bt)}),se(st.scroller,"DOMMouseScroll",function(bt){return as(it,bt)}),se(st.wrapper,"scroll",function(){return st.wrapper.scrollTop=st.wrapper.scrollLeft=0}),st.dragFunctions={enter:function(bt){Ln(it,bt)||pr(bt)},over:function(bt){Ln(it,bt)||(Zp(it,bt),pr(bt))},start:function(bt){return Qp(it,bt)},drop:Kr(it,df),leave:function(bt){Ln(it,bt)||Jp(it)}};var It=st.input.getField();se(It,"keyup",function(bt){return wf.call(it,bt)}),se(It,"keydown",Kr(it,xf)),se(It,"keypress",Kr(it,xl)),se(It,"focus",function(bt){return $i(it,bt)}),se(It,"blur",function(bt){return fh(it,bt)})}var Th=[];ro.defineInitHook=function(it){return Th.push(it)};function Xr(it,st,dt,ht){var ft=it.doc,Pt;dt==null&&(dt="add"),dt=="smart"&&(ft.mode.indent?Pt=ji(it,st).state:dt="prev");var Et=it.options.tabSize,It=En(ft,st),bt=Zt(It.text,null,Et);It.stateAfter&&(It.stateAfter=null);var Vt=It.text.match(/^\s*/)[0],ae;if(!ht&&!/\S/.test(It.text))ae=0,dt="not";else if(dt=="smart"&&(ae=ft.mode.indent(Pt,It.text.slice(Vt.length),It.text),ae==ln||ae>150)){if(!ht)return;dt="prev"}dt=="prev"?st>ft.first?ae=Zt(En(ft,st-1).text,null,Et):ae=0:dt=="add"?ae=bt+it.options.indentUnit:dt=="subtract"?ae=bt-it.options.indentUnit:typeof dt=="number"&&(ae=bt+dt),ae=Math.max(0,ae);var Qt="",Le=0;if(it.options.indentWithTabs)for(var Pe=Math.floor(ae/Et);Pe;--Pe)Le+=Et,Qt+=" ";if(LeEt,bt=yi(st),Vt=null;if(It&&ht.ranges.length>1)if($s&&$s.text.join(` -`)==st){if(ht.ranges.length%$s.text.length==0){Vt=[];for(var ae=0;ae<$s.text.length;ae++)Vt.push(Pt.splitLines($s.text[ae]))}}else bt.length==ht.ranges.length&&it.options.pasteLinesPerSelection&&(Vt=Ve(bt,function(Bn){return[Bn]}));for(var Qt=it.curOp.updateInput,Le=ht.ranges.length-1;Le>=0;Le--){var Pe=ht.ranges[Le],$e=Pe.from(),rn=Pe.to();Pe.empty()&&(dt&&dt>0?$e=we($e.line,$e.ch-dt):it.state.overwrite&&!It?rn=we(rn.line,Math.min(En(Pt,rn.line).text.length,rn.ch+te(bt).length)):It&&$s&&$s.lineWise&&$s.text.join(` + left: `+st.left+"px; width: "+Math.max(2,st.right-st.left)+"px;");it.display.lineSpace.appendChild(Pt),Pt.scrollIntoView(ft),it.display.lineSpace.removeChild(Pt)}}}function od(it,st,dt,ht){ht==null&&(ht=0);var ft;!it.options.lineWrapping&&st==dt&&(st=st.ch?we(st.line,st.sticky=="before"?st.ch-1:st.ch,"after"):st,dt=st.sticky=="before"?we(st.line,st.ch+1,"before"):st);for(var Pt=0;Pt<5;Pt++){var At=!1,It=dr(it,st),bt=!dt||dt==st?It:dr(it,dt);ft={left:Math.min(It.left,bt.left),top:Math.min(It.top,bt.top)-ht,right:Math.max(It.left,bt.left),bottom:Math.max(It.bottom,bt.bottom)+ht};var Vt=qc(it,ft),ae=it.doc.scrollTop,Qt=it.doc.scrollLeft;if(Vt.scrollTop!=null&&(mh(it,Vt.scrollTop),Math.abs(it.doc.scrollTop-ae)>1&&(At=!0)),Vt.scrollLeft!=null&&(iu(it,Vt.scrollLeft),Math.abs(it.doc.scrollLeft-Qt)>1&&(At=!0)),!At)break}return ft}function Ud(it,st){var dt=qc(it,st);dt.scrollTop!=null&&mh(it,dt.scrollTop),dt.scrollLeft!=null&&iu(it,dt.scrollLeft)}function qc(it,st){var dt=it.display,ht=eu(it.display);st.top<0&&(st.top=0);var ft=it.curOp&&it.curOp.scrollTop!=null?it.curOp.scrollTop:dt.scroller.scrollTop,Pt=Ge(it),At={};st.bottom-st.top>Pt&&(st.bottom=st.top+Pt);var It=it.doc.height+pl(dt),bt=st.topIt-ht;if(st.topft+Pt){var ae=Math.min(st.top,(Vt?It:st.bottom)-Pt);ae!=ft&&(At.scrollTop=ae)}var Qt=it.options.fixedGutter?0:dt.gutters.offsetWidth,Le=it.curOp&&it.curOp.scrollLeft!=null?it.curOp.scrollLeft:dt.scroller.scrollLeft-Qt,Pe=Ma(it)-dt.gutters.offsetWidth,$e=st.right-st.left>Pe;return $e&&(st.right=st.left+Pe),st.left<10?At.scrollLeft=0:st.leftPe+Le-3&&(At.scrollLeft=st.right+($e?0:10)-Pe),At}function Rg(it,st){st!=null&&(bl(it),it.curOp.scrollTop=(it.curOp.scrollTop==null?it.doc.scrollTop:it.curOp.scrollTop)+st)}function nu(it){bl(it);var st=it.getCursor();it.curOp.scrollToPos={from:st,to:st,margin:it.options.cursorScrollMargin}}function ph(it,st,dt){(st!=null||dt!=null)&&bl(it),st!=null&&(it.curOp.scrollLeft=st),dt!=null&&(it.curOp.scrollTop=dt)}function to(it,st){bl(it),it.curOp.scrollToPos=st}function bl(it){var st=it.curOp.scrollToPos;if(st){it.curOp.scrollToPos=null;var dt=Ig(it,st.from),ht=Ig(it,st.to);Gg(it,dt,ht,st.margin)}}function Gg(it,st,dt,ht){var ft=qc(it,{left:Math.min(st.left,dt.left),top:Math.min(st.top,dt.top)-ht,right:Math.max(st.right,dt.right),bottom:Math.max(st.bottom,dt.bottom)+ht});ph(it,ft.scrollLeft,ft.scrollTop)}function mh(it,st){Math.abs(it.doc.scrollTop-st)<2||(kt||Fu(it,{top:st}),_c(it,st,!0),kt&&Fu(it),rd(it,100))}function _c(it,st,dt){st=Math.max(0,Math.min(it.display.scroller.scrollHeight-it.display.scroller.clientHeight,st)),!(it.display.scroller.scrollTop==st&&!dt)&&(it.doc.scrollTop=st,it.display.scrollbars.setScrollTop(st),it.display.scroller.scrollTop!=st&&(it.display.scroller.scrollTop=st))}function iu(it,st,dt,ht){st=Math.max(0,Math.min(st,it.display.scroller.scrollWidth-it.display.scroller.clientWidth)),!((dt?st==it.doc.scrollLeft:Math.abs(it.doc.scrollLeft-st)<2)&&!ht)&&(it.doc.scrollLeft=st,Ug(it),it.display.scroller.scrollLeft!=st&&(it.display.scroller.scrollLeft=st),it.display.scrollbars.setScrollLeft(st))}function Ra(it){var st=it.display,dt=st.gutters.offsetWidth,ht=Math.round(it.doc.height+pl(it.display));return{clientHeight:st.scroller.clientHeight,viewHeight:st.wrapper.clientHeight,scrollWidth:st.scroller.scrollWidth,clientWidth:st.scroller.clientWidth,viewWidth:st.wrapper.clientWidth,barLeft:it.options.fixedGutter?dt:0,docHeight:ht,scrollHeight:ht+Ns(it)+st.barHeight,nativeBarWidth:st.nativeBarWidth,gutterWidth:dt}}var ku=function(it,st,dt){this.cm=dt;var ht=this.vert=$t("div",[$t("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ft=this.horiz=$t("div",[$t("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ht.tabIndex=ft.tabIndex=-1,it(ht),it(ft),se(ht,"scroll",function(){ht.clientHeight&&st(ht.scrollTop,"vertical")}),se(ft,"scroll",function(){ft.clientWidth&&st(ft.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ge&&Ee<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ku.prototype.update=function(it){var st=it.scrollWidth>it.clientWidth+1,dt=it.scrollHeight>it.clientHeight+1,ht=it.nativeBarWidth;if(dt){this.vert.style.display="block",this.vert.style.bottom=st?ht+"px":"0";var ft=it.viewHeight-(st?ht:0);this.vert.firstChild.style.height=Math.max(0,it.scrollHeight-it.clientHeight+ft)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(st){this.horiz.style.display="block",this.horiz.style.right=dt?ht+"px":"0",this.horiz.style.left=it.barLeft+"px";var Pt=it.viewWidth-it.barLeft-(dt?ht:0);this.horiz.firstChild.style.width=Math.max(0,it.scrollWidth-it.clientWidth+Pt)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&it.clientHeight>0&&(ht==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:dt?ht:0,bottom:st?ht:0}},ku.prototype.setScrollLeft=function(it){this.horiz.scrollLeft!=it&&(this.horiz.scrollLeft=it),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ku.prototype.setScrollTop=function(it){this.vert.scrollTop!=it&&(this.vert.scrollTop=it),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ku.prototype.zeroWidthHack=function(){var it=gt&&!Be?"12px":"18px";this.horiz.style.height=this.vert.style.width=it,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Gt,this.disableVert=new Gt},ku.prototype.enableZeroWidthBar=function(it,st,dt){it.style.pointerEvents="auto";function ht(){var ft=it.getBoundingClientRect(),Pt=dt=="vert"?document.elementFromPoint(ft.right-1,(ft.top+ft.bottom)/2):document.elementFromPoint((ft.right+ft.left)/2,ft.bottom-1);Pt!=it?it.style.pointerEvents="none":st.set(1e3,ht)}st.set(1e3,ht)},ku.prototype.clear=function(){var it=this.horiz.parentNode;it.removeChild(this.horiz),it.removeChild(this.vert)};var yl=function(){};yl.prototype.update=function(){return{bottom:0,right:0}},yl.prototype.setScrollLeft=function(){},yl.prototype.setScrollTop=function(){},yl.prototype.clear=function(){};function Eu(it,st){st||(st=Ra(it));var dt=it.display.barWidth,ht=it.display.barHeight;Hg(it,st);for(var ft=0;ft<4&&dt!=it.display.barWidth||ht!=it.display.barHeight;ft++)dt!=it.display.barWidth&&it.options.lineWrapping&&oi(it),Hg(it,Ra(it)),dt=it.display.barWidth,ht=it.display.barHeight}function Hg(it,st){var dt=it.display,ht=dt.scrollbars.update(st);dt.sizer.style.paddingRight=(dt.barWidth=ht.right)+"px",dt.sizer.style.paddingBottom=(dt.barHeight=ht.bottom)+"px",dt.heightForcer.style.borderBottom=ht.bottom+"px solid transparent",ht.right&&ht.bottom?(dt.scrollbarFiller.style.display="block",dt.scrollbarFiller.style.height=ht.bottom+"px",dt.scrollbarFiller.style.width=ht.right+"px"):dt.scrollbarFiller.style.display="",ht.bottom&&it.options.coverGutterNextToScrollbar&&it.options.fixedGutter?(dt.gutterFiller.style.display="block",dt.gutterFiller.style.height=ht.bottom+"px",dt.gutterFiller.style.width=st.gutterWidth+"px"):dt.gutterFiller.style.display=""}var $c={native:ku,null:yl};function tf(it){it.display.scrollbars&&(it.display.scrollbars.clear(),it.display.scrollbars.addClass&&Kt(it.display.wrapper,it.display.scrollbars.addClass)),it.display.scrollbars=new $c[it.options.scrollbarStyle](function(st){it.display.wrapper.insertBefore(st,it.display.scrollbarFiller),se(st,"mousedown",function(){it.state.focused&&setTimeout(function(){return it.display.input.focus()},0)}),st.setAttribute("cm-not-content","true")},function(st,dt){dt=="horizontal"?iu(it,st):mh(it,st)},it),it.display.scrollbars.addClass&&Fe(it.display.wrapper,it.display.scrollbars.addClass)}var Op=0;function Au(it){it.curOp={cm:it,viewChanged:!1,startHeight:it.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Op},Mu(it.curOp)}function Nu(it){var st=it.curOp;st&&hh(st,function(dt){for(var ht=0;ht=dt.viewTo)||dt.maxLineChanged&&st.options.lineWrapping,it.update=it.mustUpdate&&new vh(st,it.mustUpdate&&{top:it.scrollTop,ensure:it.scrollToPos},it.forceUpdate)}function _0(it){it.updatedDisplay=it.mustUpdate&&Wg(it.cm,it.update)}function jp(it){var st=it.cm,dt=st.display;it.updatedDisplay&&oi(st),it.barMeasure=Ra(st),dt.maxLineChanged&&!st.options.lineWrapping&&(it.adjustWidthTo=_i(st,dt.maxLine,dt.maxLine.text.length).left+3,st.display.sizerWidth=it.adjustWidthTo,it.barMeasure.scrollWidth=Math.max(dt.scroller.clientWidth,dt.sizer.offsetLeft+it.adjustWidthTo+Ns(st)+st.display.barWidth),it.maxScrollLeft=Math.max(0,dt.sizer.offsetLeft+it.adjustWidthTo-Ma(st))),(it.updatedDisplay||it.selectionChanged)&&(it.preparedSelection=dt.input.prepareSelection())}function Sr(it){var st=it.cm;it.adjustWidthTo!=null&&(st.display.sizer.style.minWidth=it.adjustWidthTo+"px",it.maxScrollLeft=it.display.viewTo)){var dt=+new Date+it.options.workTime,ht=ji(it,st.highlightFrontier),ft=[];st.iter(ht.line,Math.min(st.first+st.size,it.display.viewTo+500),function(Pt){if(ht.line>=it.display.viewFrom){var At=Pt.styles,It=Pt.text.length>it.options.maxHighlightLength?Dn(st.mode,ht.state):null,bt=vo(it,Pt,ht,!0);It&&(ht.state=It),Pt.styles=bt.styles;var Vt=Pt.styleClasses,ae=bt.classes;ae?Pt.styleClasses=ae:Vt&&(Pt.styleClasses=null);for(var Qt=!At||At.length!=Pt.styles.length||Vt!=ae&&(!Vt||!ae||Vt.bgClass!=ae.bgClass||Vt.textClass!=ae.textClass),Le=0;!Qt&&Ledt)return rd(it,it.options.workDelay),!0}),st.highlightFrontier=ht.line,st.modeFrontier=Math.max(st.modeFrontier,ht.line),ft.length&&po(it,function(){for(var Pt=0;Pt=dt.viewFrom&&st.visible.to<=dt.viewTo&&(dt.updateLineNumbers==null||dt.updateLineNumbers>=dt.viewTo)&&dt.renderedView==dt.view&&la(it)==0)return!1;Ir(it)&&(Nr(it),st.dims=zg(it));var ft=ht.first+ht.size,Pt=Math.max(st.visible.from-it.options.viewportMargin,ht.first),At=Math.min(ft,st.visible.to+it.options.viewportMargin);dt.viewFromAt&&dt.viewTo-At<20&&(At=Math.min(ft,dt.viewTo)),ze&&(Pt=li(it.doc,Pt),At=Un(it.doc,At));var It=Pt!=dt.viewFrom||At!=dt.viewTo||dt.lastWrapHeight!=st.wrapperHeight||dt.lastWrapWidth!=st.wrapperWidth;Do(it,Pt,At),dt.viewOffset=bi(An(it.doc,dt.viewFrom)),it.display.mover.style.top=dt.viewOffset+"px";var bt=la(it);if(!It&&bt==0&&!st.force&&dt.renderedView==dt.view&&(dt.updateLineNumbers==null||dt.updateLineNumbers>=dt.viewTo))return!1;var Vt=Rp(it);return bt>4&&(dt.lineDiv.style.display="none"),ef(it,dt.updateLineNumbers,st.dims),bt>4&&(dt.lineDiv.style.display=""),dt.renderedView=dt.view,_s(Vt),_t(dt.cursorDiv),_t(dt.selectionDiv),dt.gutters.style.height=dt.sizer.style.minHeight=0,It&&(dt.lastWrapHeight=st.wrapperHeight,dt.lastWrapWidth=st.wrapperWidth,rd(it,400)),dt.updateLineNumbers=null,!0}function Mo(it,st){for(var dt=st.viewport,ht=!0;;ht=!1){if(!ht||!it.options.lineWrapping||st.oldDisplayWidth==Ma(it)){if(dt&&dt.top!=null&&(dt={top:Math.min(it.doc.height+pl(it.display)-Ge(it),dt.top)}),st.visible=Vi(it.display,it.doc,dt),st.visible.from>=it.display.viewFrom&&st.visible.to<=it.display.viewTo)break}else ht&&(st.visible=Vi(it.display,it.doc,dt));if(!Wg(it,st))break;oi(it);var ft=Ra(it);Vr(it),Eu(it,ft),bu(it,ft),st.force=!1}st.signal(it,"update",it),(it.display.viewFrom!=it.display.reportedViewFrom||it.display.viewTo!=it.display.reportedViewTo)&&(st.signal(it,"viewportChange",it,it.display.viewFrom,it.display.viewTo),it.display.reportedViewFrom=it.display.viewFrom,it.display.reportedViewTo=it.display.viewTo)}function Fu(it,st){var dt=new vh(it,st);if(Wg(it,dt)){oi(it),Mo(it,dt);var ht=Ra(it);Vr(it),Eu(it,ht),bu(it,ht),dt.finish()}}function ef(it,st,dt){var ht=it.display,ft=it.options.lineNumbers,Pt=ht.lineDiv,At=Pt.firstChild;function It($e){var rn=$e.nextSibling;return qt&>&&it.display.currentWheelTarget==$e?$e.style.display="none":$e.parentNode.removeChild($e),rn}for(var bt=ht.view,Vt=ht.viewFrom,ae=0;ae-1&&(Pe=!1),nd(it,Qt,Vt,dt)),Pe&&(_t(Qt.lineNumber),Qt.lineNumber.appendChild(document.createTextNode(fo(it.options,Vt)))),At=Qt.node.nextSibling}Vt+=Qt.size}for(;At;)At=It(At)}function Bu(it){var st=it.gutters.offsetWidth;it.sizer.style.marginLeft=st+"px"}function bu(it,st){it.display.sizer.style.minHeight=st.docHeight+"px",it.display.heightForcer.style.top=st.docHeight+"px",it.display.gutters.style.height=st.docHeight+it.display.barHeight+Ns(it)+"px"}function Ug(it){var st=it.display,dt=st.view;if(!(!st.alignWidgets&&(!st.gutters.firstChild||!it.options.fixedGutter))){for(var ht=Wd(st)-st.scroller.scrollLeft+it.doc.scrollLeft,ft=st.gutters.offsetWidth,Pt=ht+"px",At=0;AtAt.clientWidth,bt=At.scrollHeight>At.clientHeight;if(ht&&It||ft&&bt){if(ft&>&&qt){t:for(var Vt=st.target,ae=Pt.view;Vt!=At;Vt=Vt.parentNode)for(var Qt=0;Qt=0&&Je(it,ht.to())<=0)return dt}return-1};var Lo=function(it,st){this.anchor=it,this.head=st};Lo.prototype.from=function(){return $n(this.anchor,this.head)},Lo.prototype.to=function(){return Zi(this.anchor,this.head)},Lo.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function il(it,st,dt){var ht=it&&it.options.selectionsMayTouch,ft=st[dt];st.sort(function(Le,Pe){return Je(Le.from(),Pe.from())}),dt=He(st,ft);for(var Pt=1;Pt0:bt>=0){var Vt=$n(It.from(),At.from()),ae=Zi(It.to(),At.to()),Qt=It.empty()?At.from()==At.head:It.from()==It.head;Pt<=dt&&--dt,st.splice(--Pt,2,new Lo(Qt?ae:Vt,Qt?Vt:ae))}}return new Ga(st,dt)}function ou(it,st){return new Ga([new Lo(it,st||it)],0)}function Iu(it){return it.text?we(it.from.line+it.text.length-1,te(it.text).length+(it.text.length==1?it.from.ch:0)):it.to}function Sh(it,st){if(Je(it,st.from)<0)return it;if(Je(it,st.to)<=0)return Iu(st);var dt=it.line+st.text.length-(st.to.line-st.from.line)-1,ht=it.ch;return it.line==st.to.line&&(ht+=Iu(st).ch-st.to.ch),we(dt,ht)}function Yd(it,st){for(var dt=[],ht=0;ht1&&it.remove(It.line+1,$e-1),it.insert(It.line+1,Bn)}jn(it,"change",it,st)}function xl(it,st,dt){function ht(ft,Pt,At){if(ft.linked)for(var It=0;It1&&!it.done[it.done.length-2].ranges)return it.done.pop(),te(it.done)}function Zd(it,st,dt,ht){var ft=it.history;ft.undone.length=0;var Pt=+new Date,At,It;if((ft.lastOp==ht||ft.lastOrigin==st.origin&&st.origin&&(st.origin.charAt(0)=="+"&&ft.lastModTime>Pt-(it.cm?it.cm.options.historyEventDelay:500)||st.origin.charAt(0)=="*"))&&(At=Qd(ft,ft.lastOp==ht)))It=te(At.changes),Je(st.from,st.to)==0&&Je(st.from,It.to)==0?It.to=Iu(st):At.changes.push(Kg(it,st));else{var bt=te(ft.done);for((!bt||!bt.ranges)&&ud(it.sel,ft.done),At={changes:[Kg(it,st)],generation:ft.generation},ft.done.push(At);ft.done.length>ft.undoDepth;)ft.done.shift(),ft.done[0].ranges||ft.done.shift()}ft.done.push(dt),ft.generation=++ft.maxGeneration,ft.lastModTime=ft.lastSelTime=Pt,ft.lastOp=ft.lastSelOp=ht,ft.lastOrigin=ft.lastSelOrigin=st.origin,It||tn(it,"historyAdded")}function of(it,st,dt,ht){var ft=st.charAt(0);return ft=="*"||ft=="+"&&dt.ranges.length==ht.ranges.length&&dt.somethingSelected()==ht.somethingSelected()&&new Date-it.history.lastSelTime<=(it.cm?it.cm.options.historyEventDelay:500)}function Jd(it,st,dt,ht){var ft=it.history,Pt=ht&&ht.origin;dt==ft.lastSelOp||Pt&&ft.lastSelOrigin==Pt&&(ft.lastModTime==ft.lastSelTime&&ft.lastOrigin==Pt||of(it,Pt,te(ft.done),st))?ft.done[ft.done.length-1]=st:ud(st,ft.done),ft.lastSelTime=+new Date,ft.lastSelOrigin=Pt,ft.lastSelOp=dt,ht&&ht.clearRedo!==!1&&ld(ft.undone)}function ud(it,st){var dt=te(st);dt&&dt.ranges&&dt.equals(it)||st.push(it)}function Ou(it,st,dt,ht){var ft=st["spans_"+it.id],Pt=0;it.iter(Math.max(it.first,dt),Math.min(it.first+it.size,ht),function(At){At.markedSpans&&((ft||(ft=st["spans_"+it.id]={}))[Pt]=At.markedSpans),++Pt})}function Ws(it){if(!it)return null;for(var st,dt=0;dt-1&&(te(It)[Qt]=Vt[Qt],delete Vt[Qt])}}return ht}function Qg(it,st,dt,ht){if(ht){var ft=it.anchor;if(dt){var Pt=Je(st,ft)<0;Pt!=Je(dt,ft)<0?(ft=st,st=dt):Pt!=Je(st,dt)<0&&(st=dt)}return new Lo(ft,st)}else return new Lo(dt||st,st)}function Zg(it,st,dt,ht,ft){ft==null&&(ft=it.cm&&(it.cm.display.shift||it.extend)),Fs(it,new Ga([Qg(it.sel.primary(),st,dt,ft)],0),ht)}function Gp(it,st,dt){for(var ht=[],ft=it.cm&&(it.cm.display.shift||it.extend),Pt=0;Pt=st.ch:It.to>st.ch))){if(ft&&(tn(bt,"beforeCursorEnter"),bt.explicitlyCleared))if(Pt.markedSpans){--At;continue}else break;if(!bt.atomic)continue;if(dt){var Qt=bt.find(ht<0?1:-1),Le=void 0;if((ht<0?ae:Vt)&&(Qt=sf(it,Qt,-ht,Qt&&Qt.line==st.line?Pt:null)),Qt&&Qt.line==st.line&&(Le=Je(Qt,dt))&&(ht<0?Le<0:Le>0))return su(it,Qt,st,ht,ft)}var Pe=bt.find(ht<0?-1:1);return(ht<0?Vt:ae)&&(Pe=sf(it,Pe,ht,Pe.line==st.line?Pt:null)),Pe?su(it,Pe,st,ht,ft):null}}return st}function $d(it,st,dt,ht,ft){var Pt=ht||1,At=su(it,st,dt,Pt,ft)||!ft&&su(it,st,dt,Pt,!0)||su(it,st,dt,-Pt,ft)||!ft&&su(it,st,dt,-Pt,!0);return At||(it.cantEdit=!0,we(it.first,0))}function sf(it,st,dt,ht){return dt<0&&st.ch==0?st.line>it.first?Wn(it,we(st.line-1)):null:dt>0&&st.ch==(ht||An(it,st.line)).text.length?st.line=0;--ft)wh(it,{from:ht[ft].from,to:ht[ft].to,text:ft?[""]:st.text,origin:st.origin});else wh(it,st)}}function wh(it,st){if(!(st.text.length==1&&st.text[0]==""&&Je(st.from,st.to)==0)){var dt=Yd(it,st);Zd(it,st,dt,it.cm?it.cm.curOp.id:NaN),hd(it,st,dt,Po(it,st));var ht=[];xl(it,function(ft,Pt){!Pt&&He(ht,ft.history)==-1&&(lf(ft.history,st),ht.push(ft.history)),hd(ft,st,null,Po(ft,st))})}}function eg(it,st,dt){var ht=it.cm&&it.cm.state.suppressEdits;if(!(ht&&!dt)){for(var ft=it.history,Pt,At=it.sel,It=st=="undo"?ft.done:ft.undone,bt=st=="undo"?ft.undone:ft.done,Vt=0;Vt=0;--Pe){var $e=Le(Pe);if($e)return $e.v}}}}function af(it,st){if(st!=0&&(it.first+=st,it.sel=new Ga(Ve(it.sel.ranges,function(ft){return new Lo(we(ft.anchor.line+st,ft.anchor.ch),we(ft.head.line+st,ft.head.ch))}),it.sel.primIndex),it.cm)){er(it.cm,it.first,it.first-st,st);for(var dt=it.cm.display,ht=dt.viewFrom;htit.lastLine())){if(st.from.linePt&&(st={from:st.from,to:we(Pt,An(it,Pt).text.length),text:[st.text[0]],origin:st.origin}),st.removed=Xi(it,st.from,st.to),dt||(dt=Yd(it,st)),it.cm?Wp(it.cm,st,ht):Yg(it,st,ht),Ph(it,dt,ce),it.cantEdit&&$d(it,we(it.firstLine(),0))&&(it.cantEdit=!1)}}function Wp(it,st,dt){var ht=it.doc,ft=it.display,Pt=st.from,At=st.to,It=!1,bt=Pt.line;it.options.lineWrapping||(bt=ee(wo(An(ht,Pt.line))),ht.iter(bt,At.line+1,function(Pe){if(Pe==ft.maxLine)return It=!0,!0})),ht.sel.contains(st.from,st.to)>-1&&ni(it),Yg(ht,st,dt,tr(it)),it.options.lineWrapping||(ht.iter(bt,Pt.line+st.text.length,function(Pe){var $e=Bo(Pe);$e>ft.maxLineLength&&(ft.maxLine=Pe,ft.maxLineLength=$e,ft.maxLineChanged=!0,It=!1)}),It&&(it.curOp.updateMaxLine=!0)),Gi(ht,Pt.line),rd(it,400);var Vt=st.text.length-(At.line-Pt.line)-1;st.full?er(it):Pt.line==At.line&&st.text.length==1&&!nf(it.doc,st)?Di(it,Pt.line,"text"):er(it,Pt.line,At.line+1,Vt);var ae=di(it,"changes"),Qt=di(it,"change");if(Qt||ae){var Le={from:Pt,to:At,text:st.text,removed:st.removed,origin:st.origin};Qt&&jn(it,"change",it,Le),ae&&(it.curOp.changeObjs||(it.curOp.changeObjs=[])).push(Le)}it.display.selForContextMenu=null}function Ch(it,st,dt,ht,ft){var Pt;ht||(ht=dt),Je(ht,dt)<0&&(Pt=[ht,dt],dt=Pt[0],ht=Pt[1]),typeof st=="string"&&(st=it.splitLines(st)),zu(it,{from:dt,to:ht,text:st,origin:ft})}function Ha(it,st,dt,ht){dt1||!(this.children[0]instanceof dd))){var It=[];this.collapse(It),this.children=[new dd(It)],this.children[0].parent=this}},collapse:function(it){for(var st=0;st50){for(var At=ft.lines.length%25+25,It=At;It10);it.parent.maybeSpill()}},iterN:function(it,st,dt){for(var ht=0;htit.display.maxLineLength&&(it.display.maxLine=Vt,it.display.maxLineLength=ae,it.display.maxLineChanged=!0)}ht!=null&&it&&this.collapsed&&er(it,ht,ft+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,it&&qd(it.doc)),it&&jn(it,"markerCleared",it,this,ht,ft),st&&Nu(it),this.parent&&this.parent.clear()}},oe.prototype.find=function(it,st){it==null&&this.type=="bookmark"&&(it=1);for(var dt,ht,ft=0;ft0||At==0&&Pt.clearWhenEmpty!==!1)return Pt;if(Pt.replacedWith&&(Pt.collapsed=!0,Pt.widgetNode=ve("span",[Pt.replacedWith],"CodeMirror-widget"),ht.handleMouseEvents||Pt.widgetNode.setAttribute("cm-ignore-events","true"),ht.insertLeft&&(Pt.widgetNode.insertLeft=!0)),Pt.collapsed){if(ed(it,st.line,st,dt,Pt)||st.line!=dt.line&&ed(it,dt.line,st,dt,Pt))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ie()}Pt.addToHistory&&Zd(it,{from:st,to:dt,origin:"markText"},it.sel,NaN);var It=st.line,bt=it.cm,Vt;if(it.iter(It,dt.line+1,function(Qt){bt&&Pt.collapsed&&!bt.options.lineWrapping&&wo(Qt)==bt.display.maxLine&&(Vt=!0),Pt.collapsed&&It!=st.line&&ao(Qt,0),_r(Qt,new Yi(Pt,It==st.line?st.ch:null,It==dt.line?dt.ch:null)),++It}),Pt.collapsed&&it.iter(st.line,dt.line+1,function(Qt){Xe(it,Qt)&&ao(Qt,0)}),Pt.clearOnEnter&&se(Pt,"beforeCursorEnter",function(){return Pt.clear()}),Pt.readOnly&&(Wi(),(it.history.done.length||it.history.undone.length)&&it.clearHistory()),Pt.collapsed&&(Pt.id=++Vp,Pt.atomic=!0),bt){if(Vt&&(bt.curOp.updateMaxLine=!0),Pt.collapsed)er(bt,st.line,dt.line+1);else if(Pt.className||Pt.startStyle||Pt.endStyle||Pt.css||Pt.attributes||Pt.title)for(var ae=st.line;ae<=dt.line;ae++)Di(bt,ae,"text");Pt.atomic&&qd(bt.doc),jn(bt,"markerAdded",bt,Pt)}return Pt}var Il=function(it,st){this.markers=it,this.primary=st;for(var dt=0;dt=0;bt--)zu(this,ht[bt]);It?Jg(this,It):this.cm&&nu(this.cm)}),undo:is(function(){eg(this,"undo")}),redo:is(function(){eg(this,"redo")}),undoSelection:is(function(){eg(this,"undo",!0)}),redoSelection:is(function(){eg(this,"redo",!0)}),setExtending:function(it){this.extend=it},getExtending:function(){return this.extend},historySize:function(){for(var it=this.history,st=0,dt=0,ht=0;ht=it.ch)&&st.push(ft.marker.parent||ft.marker)}return st},findMarks:function(it,st,dt){it=Wn(this,it),st=Wn(this,st);var ht=[],ft=it.line;return this.iter(it.line,st.line+1,function(Pt){var At=Pt.markedSpans;if(At)for(var It=0;It=bt.to||bt.from==null&&ft!=it.line||bt.from!=null&&ft==st.line&&bt.from>=st.ch)&&(!dt||dt(bt.marker))&&ht.push(bt.marker.parent||bt.marker)}++ft}),ht},getAllMarks:function(){var it=[];return this.iter(function(st){var dt=st.markedSpans;if(dt)for(var ht=0;htit)return st=it,!0;it-=Pt,++dt}),Wn(this,we(dt,st))},indexFromPos:function(it){it=Wn(this,it);var st=it.ch;if(it.linest&&(st=it.from),it.to!=null&&it.to-1){st.state.draggingText(it),setTimeout(function(){return st.display.input.focus()},20);return}try{var ae=it.dataTransfer.getData("Text");if(ae){var Qt;if(st.state.draggingText&&!st.state.draggingText.copy&&(Qt=st.listSelections()),Ph(st.doc,ou(dt,dt)),Qt)for(var Le=0;Le=0;It--)Ch(it.doc,"",ht[It].from,ht[It].to,"+delete");nu(it)})}function vf(it,st,dt){var ht=Nn(it.text,st+dt,dt);return ht<0||ht>it.text.length?null:ht}function Br(it,st,dt){var ht=vf(it,st.ch,dt);return ht==null?null:new we(st.line,ht,dt<0?"after":"before")}function rg(it,st,dt,ht,ft){if(it){st.doc.direction=="rtl"&&(ft=-ft);var Pt=Rt(dt,st.doc.direction);if(Pt){var At=ft<0?te(Pt):Pt[0],It=ft<0==(At.level==1),bt=It?"after":"before",Vt;if(At.level>0||st.doc.direction=="rtl"){var ae=Oo(st,dt);Vt=ft<0?dt.text.length-1:0;var Qt=bo(st,ae,Vt).top;Vt=xn(function(Le){return bo(st,ae,Le).top==Qt},ft<0==(At.level==1)?At.from:At.to-1,Vt),bt=="before"&&(Vt=vf(dt,Vt,1))}else Vt=ft<0?At.to:At.from;return new we(ht,Vt,bt)}}return new we(ht,ft<0?dt.text.length:0,ft<0?"before":"after")}function $g(it,st,dt,ht){var ft=Rt(st,it.doc.direction);if(!ft)return Br(st,dt,ht);dt.ch>=st.text.length?(dt.ch=st.text.length,dt.sticky="before"):dt.ch<=0&&(dt.ch=0,dt.sticky="after");var Pt=xt(ft,dt.ch,dt.sticky),At=ft[Pt];if(it.doc.direction=="ltr"&&At.level%2==0&&(ht>0?At.to>dt.ch:At.from=At.from&&Le>=ae.begin)){var Pe=Qt?"before":"after";return new we(dt.line,Le,Pe)}}var $e=function(Bn,Xn,zn){for(var ti=function(nr,Qr){return Qr?new we(dt.line,It(nr,1),"before"):new we(dt.line,nr,"after")};Bn>=0&&Bn0==(Pi.level!=1),Oi=On?zn.begin:It(zn.end,-1);if(Pi.from<=Oi&&Oi0?ae.end:It(ae.begin,-1);return mn!=null&&!(ht>0&&mn==st.text.length)&&(rn=$e(ht>0?0:ft.length-1,ht,Vt(mn)),rn)?rn:null}var Ru={selectAll:Fr,singleSelection:function(it){return it.setSelection(it.getCursor("anchor"),it.getCursor("head"),ce)},killLine:function(it){return da(it,function(st){if(st.empty()){var dt=An(it.doc,st.head.line).text.length;return st.head.ch==dt&&st.head.line0)ft=new we(ft.line,ft.ch+1),it.replaceRange(Pt.charAt(ft.ch-1)+Pt.charAt(ft.ch-2),we(ft.line,ft.ch-2),ft,"+transpose");else if(ft.line>it.doc.first){var At=An(it.doc,ft.line-1).text;At&&(ft=new we(ft.line,1),it.replaceRange(Pt.charAt(0)+it.doc.lineSeparator()+At.charAt(At.length-1),we(ft.line-1,At.length-1),ft,"+transpose"))}}dt.push(new Lo(ft,ft))}it.setSelections(dt)})},newlineAndIndent:function(it){return po(it,function(){for(var st=it.listSelections(),dt=st.length-1;dt>=0;dt--)it.replaceRange(it.doc.lineSeparator(),st[dt].anchor,st[dt].head,"+input");st=it.listSelections();for(var ht=0;htit&&Je(st,this.pos)==0&&dt==this.button};var vd,Nh;function Mf(it,st){var dt=+new Date;return Nh&&Nh.compare(dt,it,st)?(vd=Nh=null,"triple"):vd&&vd.compare(dt,it,st)?(Nh=new Cf(dt,it,st),vd=null,"double"):(vd=new Cf(dt,it,st),Nh=null,"single")}function wl(it){var st=this,dt=st.display;if(!(Ln(st,it)||dt.activeTouch&&dt.input.supportsTouch())){if(dt.input.ensurePolled(),dt.shift=it.shiftKey,Rs(dt,it)){qt||(dt.scroller.draggable=!1,setTimeout(function(){return dt.scroller.draggable=!0},100));return}if(!rc(st,it)){var ht=Gs(st,it),ft=mr(it),Pt=ht?Mf(ht,ft):"single";window.focus(),ft==1&&st.state.selectingText&&st.state.selectingText(it),!(ht&&Lf(st,ft,ht,Pt,it))&&(ft==1?ht?tm(st,ht,Pt,it):Ho(it)==dt.scroller&&Mi(it):ft==2?(ht&&Zg(st.doc,ht),setTimeout(function(){return dt.input.focus()},20)):ft==3&&(Ft?st.display.input.onContextMenu(it):sr(st)))}}}function Lf(it,st,dt,ht,ft){var Pt="Click";return ht=="double"?Pt="Double"+Pt:ht=="triple"&&(Pt="Triple"+Pt),Pt=(st==1?"Left":st==2?"Middle":"Right")+Pt,Eh(it,mf(Pt,ft),ft,function(At){if(typeof At=="string"&&(At=Ru[At]),!At)return!1;var It=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),It=At(it,dt)!=ln}finally{it.state.suppressEdits=!1}return It})}function ic(it,st,dt){var ht=it.getOption("configureMouse"),ft=ht?ht(it,st,dt):{};if(ft.unit==null){var Pt=lt?dt.shiftKey&&dt.metaKey:dt.altKey;ft.unit=Pt?"rectangle":st=="single"?"char":st=="double"?"word":"line"}return(ft.extend==null||it.doc.extend)&&(ft.extend=it.doc.extend||dt.shiftKey),ft.addNew==null&&(ft.addNew=gt?dt.metaKey:dt.ctrlKey),ft.moveOnDrag==null&&(ft.moveOnDrag=!(gt?dt.altKey:dt.ctrlKey)),ft}function tm(it,st,dt,ht){ge?setTimeout(Mn(Uo,it),0):it.curOp.focus=me();var ft=ic(it,dt,ht),Pt=it.doc.sel,At;it.options.dragDrop&&so&&!it.isReadOnly()&&dt=="single"&&(At=Pt.contains(st))>-1&&(Je((At=Pt.ranges[At]).from(),st)<0||st.xRel>0)&&(Je(At.to(),st)>0||st.xRel<0)?kf(it,ht,st,ft):ev(it,ht,st,ft)}function kf(it,st,dt,ht){var ft=it.display,Pt=!1,At=Kr(it,function(Vt){qt&&(ft.scroller.draggable=!1),it.state.draggingText=!1,nn(ft.wrapper.ownerDocument,"mouseup",At),nn(ft.wrapper.ownerDocument,"mousemove",It),nn(ft.scroller,"dragstart",bt),nn(ft.scroller,"drop",At),Pt||(Mi(Vt),ht.addNew||Zg(it.doc,dt,null,null,ht.extend),qt&&!le||ge&&Ee==9?setTimeout(function(){ft.wrapper.ownerDocument.body.focus({preventScroll:!0}),ft.input.focus()},20):ft.input.focus())}),It=function(Vt){Pt=Pt||Math.abs(st.clientX-Vt.clientX)+Math.abs(st.clientY-Vt.clientY)>=10},bt=function(){return Pt=!0};qt&&(ft.scroller.draggable=!0),it.state.draggingText=At,At.copy=!ht.moveOnDrag,ft.scroller.dragDrop&&ft.scroller.dragDrop(),se(ft.wrapper.ownerDocument,"mouseup",At),se(ft.wrapper.ownerDocument,"mousemove",It),se(ft.scroller,"dragstart",bt),se(ft.scroller,"drop",At),sr(it),setTimeout(function(){return ft.input.focus()},20)}function Ef(it,st,dt){if(dt=="char")return new Lo(st,st);if(dt=="word")return it.findWordAt(st);if(dt=="line")return new Lo(we(st.line,0),Wn(it.doc,we(st.line+1,0)));var ht=dt(it,st);return new Lo(ht.from,ht.to)}function ev(it,st,dt,ht){var ft=it.display,Pt=it.doc;Mi(st);var At,It,bt=Pt.sel,Vt=bt.ranges;if(ht.addNew&&!ht.extend?(It=Pt.sel.contains(dt),It>-1?At=Vt[It]:At=new Lo(dt,dt)):(At=Pt.sel.primary(),It=Pt.sel.primIndex),ht.unit=="rectangle")ht.addNew||(At=new Lo(dt,dt)),dt=Gs(it,st,!0,!0),It=-1;else{var ae=Ef(it,dt,ht.unit);ht.extend?At=Qg(At,ae.anchor,ae.head,ht.extend):At=ae}ht.addNew?It==-1?(It=Vt.length,Fs(Pt,il(it,Vt.concat([At]),It),{scroll:!1,origin:"*mouse"})):Vt.length>1&&Vt[It].empty()&&ht.unit=="char"&&!ht.extend?(Fs(Pt,il(it,Vt.slice(0,It).concat(Vt.slice(It+1)),0),{scroll:!1,origin:"*mouse"}),bt=Pt.sel):ju(Pt,It,At,Ue):(It=0,Fs(Pt,new Ga([At],0),Ue),bt=Pt.sel);var Qt=dt;function Le(zn){if(Je(Qt,zn)!=0)if(Qt=zn,ht.unit=="rectangle"){for(var ti=[],Pi=it.options.tabSize,On=Zt(An(Pt,dt.line).text,dt.ch,Pi),Oi=Zt(An(Pt,zn.line).text,zn.ch,Pi),nr=Math.min(On,Oi),Qr=Math.max(On,Oi),cr=Math.min(dt.line,zn.line),ta=Math.min(it.lastLine(),Math.max(dt.line,zn.line));cr<=ta;cr++){var Bs=An(Pt,cr).text,Hr=wn(Bs,nr,Pi);nr==Qr?ti.push(new Lo(we(cr,Hr),we(cr,Hr))):Bs.length>Hr&&ti.push(new Lo(we(cr,Hr),we(cr,wn(Bs,Qr,Pi))))}ti.length||ti.push(new Lo(dt,dt)),Fs(Pt,il(it,bt.ranges.slice(0,It).concat(ti),It),{origin:"*mouse",scroll:!1}),it.scrollIntoView(zn)}else{var ga=At,Ps=Ef(it,zn,ht.unit),Wr=ga.anchor,ho;Je(Ps.anchor,Wr)>0?(ho=Ps.head,Wr=$n(ga.from(),Ps.anchor)):(ho=Ps.anchor,Wr=Zi(ga.to(),Ps.head));var xr=bt.ranges.slice(0);xr[It]=em(it,new Lo(Wn(Pt,Wr),ho)),Fs(Pt,il(it,xr,It),Ue)}}var Pe=ft.wrapper.getBoundingClientRect(),$e=0;function rn(zn){var ti=++$e,Pi=Gs(it,zn,!0,ht.unit=="rectangle");if(Pi)if(Je(Pi,Qt)!=0){it.curOp.focus=me(),Le(Pi);var On=Vi(ft,Pt);(Pi.line>=On.to||Pi.linePe.bottom?20:0;Oi&&setTimeout(Kr(it,function(){$e==ti&&(ft.scroller.scrollTop+=Oi,rn(zn))}),50)}}function mn(zn){it.state.selectingText=!1,$e=1/0,zn&&(Mi(zn),ft.input.focus()),nn(ft.wrapper.ownerDocument,"mousemove",Bn),nn(ft.wrapper.ownerDocument,"mouseup",Xn),Pt.history.lastSelOrigin=null}var Bn=Kr(it,function(zn){zn.buttons===0||!mr(zn)?mn(zn):rn(zn)}),Xn=Kr(it,mn);it.state.selectingText=Xn,se(ft.wrapper.ownerDocument,"mousemove",Bn),se(ft.wrapper.ownerDocument,"mouseup",Xn)}function em(it,st){var dt=st.anchor,ht=st.head,ft=An(it.doc,dt.line);if(Je(dt,ht)==0&&dt.sticky==ht.sticky)return st;var Pt=Rt(ft);if(!Pt)return st;var At=xt(Pt,dt.ch,dt.sticky),It=Pt[At];if(It.from!=dt.ch&&It.to!=dt.ch)return st;var bt=At+(It.from==dt.ch==(It.level!=1)?0:1);if(bt==0||bt==Pt.length)return st;var Vt;if(ht.line!=dt.line)Vt=(ht.line-dt.line)*(it.doc.direction=="ltr"?1:-1)>0;else{var ae=xt(Pt,ht.ch,ht.sticky),Qt=ae-At||(ht.ch-dt.ch)*(It.level==1?-1:1);ae==bt-1||ae==bt?Vt=Qt<0:Vt=Qt>0}var Le=Pt[bt+(Vt?-1:0)],Pe=Vt==(Le.level==1),$e=Pe?Le.from:Le.to,rn=Pe?"after":"before";return dt.ch==$e&&dt.sticky==rn?st:new Lo(new we(dt.line,$e,rn),ht)}function oc(it,st,dt,ht){var ft,Pt;if(st.touches)ft=st.touches[0].clientX,Pt=st.touches[0].clientY;else try{ft=st.clientX,Pt=st.clientY}catch(Le){return!1}if(ft>=Math.floor(it.display.gutters.getBoundingClientRect().right))return!1;ht&&Mi(st);var At=it.display,It=At.lineDiv.getBoundingClientRect();if(Pt>It.bottom||!di(it,dt))return oo(st);Pt-=It.top-At.viewOffset;for(var bt=0;bt=ft){var ae=yn(it.doc,Pt),Qt=it.display.gutterSpecs[bt];return tn(it,dt,it,ae,Qt.className,st),oo(st)}}}function rc(it,st){return oc(it,st,"gutterClick",!0)}function sc(it,st){Rs(it.display,st)||nm(it,st)||Ln(it,st,"contextmenu")||Ft||it.display.input.onContextMenu(st)}function nm(it,st){return di(it,"gutterContextMenu")?oc(it,st,"gutterContextMenu",!1):!1}function ac(it){it.display.wrapper.className=it.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+it.options.theme.replace(/(^|\s)\s*/g," cm-s-"),el(it)}var Gu={toString:function(){return"CodeMirror.Init"}},Af={},sg={};function im(it){var st=it.optionHandlers;function dt(ht,ft,Pt,At){it.defaults[ht]=ft,Pt&&(st[ht]=At?function(It,bt,Vt){Vt!=Gu&&Pt(It,bt,Vt)}:Pt)}it.defineOption=dt,it.Init=Gu,dt("value","",function(ht,ft){return ht.setValue(ft)},!0),dt("mode",null,function(ht,ft){ht.doc.modeOption=ft,Ii(ht)},!0),dt("indentUnit",2,Ii,!0),dt("indentWithTabs",!1),dt("smartIndent",!0),dt("tabSize",4,function(ht){Kd(ht),el(ht),er(ht)},!0),dt("lineSeparator",null,function(ht,ft){if(ht.doc.lineSep=ft,!!ft){var Pt=[],At=ht.doc.first;ht.doc.iter(function(bt){for(var Vt=0;;){var ae=bt.text.indexOf(ft,Vt);if(ae==-1)break;Vt=ae+ft.length,Pt.push(we(At,ae))}At++});for(var It=Pt.length-1;It>=0;It--)Ch(ht.doc,ft,Pt[It],we(Pt[It].line,Pt[It].ch+ft.length))}}),dt("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ht,ft,Pt){ht.state.specialChars=new RegExp(ft.source+(ft.test(" ")?"":"| "),"g"),Pt!=Gu&&ht.refresh()}),dt("specialCharPlaceholder",As,function(ht){return ht.refresh()},!0),dt("electricChars",!0),dt("inputStyle",nt?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),dt("spellcheck",!1,function(ht,ft){return ht.getInputField().spellcheck=ft},!0),dt("autocorrect",!1,function(ht,ft){return ht.getInputField().autocorrect=ft},!0),dt("autocapitalize",!1,function(ht,ft){return ht.getInputField().autocapitalize=ft},!0),dt("rtlMoveVisually",!pt),dt("wholeLineUpdateBefore",!0),dt("theme","default",function(ht){ac(ht),ka(ht)},!0),dt("keyMap","default",function(ht,ft,Pt){var At=kh(ft),It=Pt!=Gu&&kh(Pt);It&&It.detach&&It.detach(ht,At),At.attach&&At.attach(ht,It||null)}),dt("extraKeys",null),dt("configureMouse",null),dt("lineWrapping",!1,om,!0),dt("gutters",[],function(ht,ft){ht.display.gutterSpecs=rs(ft,ht.options.lineNumbers),ka(ht)},!0),dt("fixedGutter",!0,function(ht,ft){ht.display.gutters.style.left=ft?Wd(ht.display)+"px":"0",ht.refresh()},!0),dt("coverGutterNextToScrollbar",!1,function(ht){return Eu(ht)},!0),dt("scrollbarStyle","native",function(ht){tf(ht),Eu(ht),ht.display.scrollbars.setScrollTop(ht.doc.scrollTop),ht.display.scrollbars.setScrollLeft(ht.doc.scrollLeft)},!0),dt("lineNumbers",!1,function(ht,ft){ht.display.gutterSpecs=rs(ht.options.gutters,ft),ka(ht)},!0),dt("firstLineNumber",1,ka,!0),dt("lineNumberFormatter",function(ht){return ht},ka,!0),dt("showCursorWhenSelecting",!1,Vr,!0),dt("resetSelectionOnContextMenu",!0),dt("lineWiseCopyCut",!0),dt("pasteLinesPerSelection",!0),dt("selectionsMayTouch",!1),dt("readOnly",!1,function(ht,ft){ft=="nocursor"&&(fh(ht),ht.display.input.blur()),ht.display.input.readOnlyChanged(ft)}),dt("screenReaderLabel",null,function(ht,ft){ft=ft===""?null:ft,ht.display.input.screenReaderLabelChanged(ft)}),dt("disableInput",!1,function(ht,ft){ft||ht.display.input.reset()},!0),dt("dragDrop",!0,lc),dt("allowDropFileTypes",null),dt("cursorBlinkRate",530),dt("cursorScrollMargin",0),dt("cursorHeight",1,Vr,!0),dt("singleCursorHeightPerLine",!0,Vr,!0),dt("workTime",100),dt("workDelay",100),dt("flattenSpans",!0,Kd,!0),dt("addModeClass",!1,Kd,!0),dt("pollInterval",100),dt("undoDepth",200,function(ht,ft){return ht.doc.history.undoDepth=ft}),dt("historyEventDelay",1250),dt("viewportMargin",10,function(ht){return ht.refresh()},!0),dt("maxHighlightLength",1e4,Kd,!0),dt("moveInputWithCursor",!0,function(ht,ft){ft||ht.display.input.resetPosition()}),dt("tabindex",null,function(ht,ft){return ht.display.input.getField().tabIndex=ft||""}),dt("autofocus",null),dt("direction","ltr",function(ht,ft){return ht.doc.setDirection(ft)},!0),dt("phrases",null)}function lc(it,st,dt){var ht=dt&&dt!=Gu;if(!st!=!ht){var ft=it.display.dragFunctions,Pt=st?se:nn;Pt(it.display.scroller,"dragstart",ft.start),Pt(it.display.scroller,"dragenter",ft.enter),Pt(it.display.scroller,"dragover",ft.over),Pt(it.display.scroller,"dragleave",ft.leave),Pt(it.display.scroller,"drop",ft.drop)}}function om(it){it.options.lineWrapping?(Fe(it.display.wrapper,"CodeMirror-wrap"),it.display.sizer.style.minWidth="",it.display.sizerWidth=null):(Kt(it.display.wrapper,"CodeMirror-wrap"),Zo(it)),ai(it),er(it),el(it),setTimeout(function(){return Eu(it)},100)}function ro(it,st){var dt=this;if(!(this instanceof ro))return new ro(it,st);this.options=st=st?In(st):{},In(Af,st,!1);var ht=st.value;typeof ht=="string"?ht=new xs(ht,st.mode,null,st.lineSeparator,st.direction):st.mode&&(ht.modeOption=st.mode),this.doc=ht;var ft=new ro.inputStyles[st.inputStyle](this),Pt=this.display=new Du(it,ht,ft,st);Pt.wrapper.CodeMirror=this,ac(this),st.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),tf(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Gt,keySeq:null,specialChars:null},st.autofocus&&!nt&&Pt.input.focus(),ge&&Ee<11&&setTimeout(function(){return dt.display.input.reset(!0)},20),yd(this),Aa(),Au(this),this.curOp.forceUpdate=!0,Vg(this,ht),st.autofocus&&!nt||this.hasFocus()?setTimeout(function(){dt.hasFocus()&&!dt.state.focused&&$i(dt)},20):fh(this);for(var At in sg)sg.hasOwnProperty(At)&&sg[At](this,st[At],Gu);Ir(this),st.finishInit&&st.finishInit(this);for(var It=0;It20*20}se(st.scroller,"touchstart",function(bt){if(!Ln(it,bt)&&!Pt(bt)&&!rc(it,bt)){st.input.ensurePolled(),clearTimeout(dt);var Vt=+new Date;st.activeTouch={start:Vt,moved:!1,prev:Vt-ht.end<=300?ht:null},bt.touches.length==1&&(st.activeTouch.left=bt.touches[0].pageX,st.activeTouch.top=bt.touches[0].pageY)}}),se(st.scroller,"touchmove",function(){st.activeTouch&&(st.activeTouch.moved=!0)}),se(st.scroller,"touchend",function(bt){var Vt=st.activeTouch;if(Vt&&!Rs(st,bt)&&Vt.left!=null&&!Vt.moved&&new Date-Vt.start<300){var ae=it.coordsChar(st.activeTouch,"page"),Qt;!Vt.prev||At(Vt,Vt.prev)?Qt=new Lo(ae,ae):!Vt.prev.prev||At(Vt,Vt.prev.prev)?Qt=it.findWordAt(ae):Qt=new Lo(we(ae.line,0),Wn(it.doc,we(ae.line+1,0))),it.setSelection(Qt.anchor,Qt.head),it.focus(),Mi(bt)}ft()}),se(st.scroller,"touchcancel",ft),se(st.scroller,"scroll",function(){st.scroller.clientHeight&&(mh(it,st.scroller.scrollTop),iu(it,st.scroller.scrollLeft,!0),tn(it,"scroll",it))}),se(st.scroller,"mousewheel",function(bt){return ss(it,bt)}),se(st.scroller,"DOMMouseScroll",function(bt){return ss(it,bt)}),se(st.wrapper,"scroll",function(){return st.wrapper.scrollTop=st.wrapper.scrollLeft=0}),st.dragFunctions={enter:function(bt){Ln(it,bt)||pr(bt)},over:function(bt){Ln(it,bt)||(Zp(it,bt),pr(bt))},start:function(bt){return Qp(it,bt)},drop:Kr(it,df),leave:function(bt){Ln(it,bt)||Jp(it)}};var It=st.input.getField();se(It,"keyup",function(bt){return wf.call(it,bt)}),se(It,"keydown",Kr(it,xf)),se(It,"keypress",Kr(it,Pl)),se(It,"focus",function(bt){return $i(it,bt)}),se(It,"blur",function(bt){return fh(it,bt)})}var Th=[];ro.defineInitHook=function(it){return Th.push(it)};function Xr(it,st,dt,ht){var ft=it.doc,Pt;dt==null&&(dt="add"),dt=="smart"&&(ft.mode.indent?Pt=ji(it,st).state:dt="prev");var At=it.options.tabSize,It=An(ft,st),bt=Zt(It.text,null,At);It.stateAfter&&(It.stateAfter=null);var Vt=It.text.match(/^\s*/)[0],ae;if(!ht&&!/\S/.test(It.text))ae=0,dt="not";else if(dt=="smart"&&(ae=ft.mode.indent(Pt,It.text.slice(Vt.length),It.text),ae==ln||ae>150)){if(!ht)return;dt="prev"}dt=="prev"?st>ft.first?ae=Zt(An(ft,st-1).text,null,At):ae=0:dt=="add"?ae=bt+it.options.indentUnit:dt=="subtract"?ae=bt-it.options.indentUnit:typeof dt=="number"&&(ae=bt+dt),ae=Math.max(0,ae);var Qt="",Le=0;if(it.options.indentWithTabs)for(var Pe=Math.floor(ae/At);Pe;--Pe)Le+=At,Qt+=" ";if(LeAt,bt=yi(st),Vt=null;if(It&&ht.ranges.length>1)if($s&&$s.text.join(` +`)==st){if(ht.ranges.length%$s.text.length==0){Vt=[];for(var ae=0;ae<$s.text.length;ae++)Vt.push(Pt.splitLines($s.text[ae]))}}else bt.length==ht.ranges.length&&it.options.pasteLinesPerSelection&&(Vt=Ve(bt,function(Bn){return[Bn]}));for(var Qt=it.curOp.updateInput,Le=ht.ranges.length-1;Le>=0;Le--){var Pe=ht.ranges[Le],$e=Pe.from(),rn=Pe.to();Pe.empty()&&(dt&&dt>0?$e=we($e.line,$e.ch-dt):it.state.overwrite&&!It?rn=we(rn.line,Math.min(An(Pt,rn.line).text.length,rn.ch+te(bt).length)):It&&$s&&$s.lineWise&&$s.text.join(` `)==bt.join(` -`)&&($e=rn=we($e.line,0)));var mn={from:$e,to:rn,text:Vt?Vt[Le%Vt.length]:bt,origin:ft||(It?"paste":it.state.cutIncoming>Et?"cut":"+input")};zu(it.doc,mn),jn(it,"inputRead",it,mn)}st&&!It&&Tf(it,st),nu(it),it.curOp.updateInput<2&&(it.curOp.updateInput=Qt),it.curOp.typing=!0,it.state.pasteIncoming=it.state.cutIncoming=-1}function Nf(it,st){var dt=it.clipboardData&&it.clipboardData.getData("Text");if(dt)return it.preventDefault(),!st.isReadOnly()&&!st.options.disableInput&&po(st,function(){return ag(st,dt,0,null,"paste")}),!0}function Tf(it,st){if(!(!it.options.electricChars||!it.options.smartIndent))for(var dt=it.doc.sel,ht=dt.ranges.length-1;ht>=0;ht--){var ft=dt.ranges[ht];if(!(ft.head.ch>100||ht&&dt.ranges[ht-1].head.line==ft.head.line)){var Pt=it.getModeAt(ft.head),Et=!1;if(Pt.electricChars){for(var It=0;It-1){Et=Xr(it,ft.head.line,"smart");break}}else Pt.electricInput&&Pt.electricInput.test(En(it.doc,ft.head.line).text.slice(0,ft.head.ch))&&(Et=Xr(it,ft.head.line,"smart"));Et&&jn(it,"electricInput",it,ft.head.line)}}}function Ff(it){for(var st=[],dt=[],ht=0;htPt&&(Xr(this,It.head.line,ht,!0),Pt=It.head.line,Et==this.doc.sel.primIndex&&nu(this));else{var bt=It.from(),Vt=It.to(),ae=Math.max(Pt,bt.line);Pt=Math.min(this.lastLine(),Vt.line-(Vt.ch?0:1))+1;for(var Qt=ae;Qt0&&ju(this.doc,Et,new Lo(bt,Le[Et].to()),ce)}}}),getTokenAt:function(ht,ft){return Kn(this,ht,ft)},getLineTokens:function(ht,ft){return Kn(this,we(ht),ft,!0)},getTokenTypeAt:function(ht){ht=Wn(this.doc,ht);var ft=uo(this,En(this.doc,ht.line)),Pt=0,Et=(ft.length-1)/2,It=ht.ch,bt;if(It==0)bt=ft[2];else for(;;){var Vt=Pt+Et>>1;if((Vt?ft[Vt*2-1]:0)>=It)Et=Vt;else if(ft[Vt*2+1]bt&&(ht=bt,Et=!0),It=En(this.doc,ht)}else It=ht;return Lr(this,It,{top:0,left:0},ft||"page",Pt||Et).top+(Et?this.doc.height-bi(It):0)},defaultTextHeight:function(){return eu(this.display)},defaultCharWidth:function(){return ch(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ht,ft,Pt,Et,It){var bt=this.display;ht=dr(this,Wn(this.doc,ht));var Vt=ht.bottom,ae=ht.left;if(ft.style.position="absolute",ft.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ft),bt.sizer.appendChild(ft),Et=="over")Vt=ht.top;else if(Et=="above"||Et=="near"){var Qt=Math.max(bt.wrapper.clientHeight,this.doc.height),Le=Math.max(bt.sizer.clientWidth,bt.lineSpace.clientWidth);(Et=="above"||ht.bottom+ft.offsetHeight>Qt)&&ht.top>ft.offsetHeight?Vt=ht.top-ft.offsetHeight:ht.bottom+ft.offsetHeight<=Qt&&(Vt=ht.bottom),ae+ft.offsetWidth>Le&&(ae=Le-ft.offsetWidth)}ft.style.top=Vt+"px",ft.style.left=ft.style.right="",It=="right"?(ae=bt.sizer.clientWidth-ft.offsetWidth,ft.style.right="0px"):(It=="left"?ae=0:It=="middle"&&(ae=(bt.sizer.clientWidth-ft.offsetWidth)/2),ft.style.left=ae+"px"),Pt&&Ud(this,{left:ae,top:Vt,right:ae+ft.offsetWidth,bottom:Vt+ft.offsetHeight})},triggerOnKeyDown:is(xf),triggerOnKeyPress:is(xl),triggerOnKeyUp:wf,triggerOnMouseDown:is(Pl),execCommand:function(ht){if(Ru.hasOwnProperty(ht))return Ru[ht].call(null,this)},triggerElectric:is(function(ht){Tf(this,ht)}),findPosH:function(ht,ft,Pt,Et){var It=1;ft<0&&(It=-1,ft=-ft);for(var bt=Wn(this.doc,ht),Vt=0;Vt0&&ae(Pt.charAt(Et-1));)--Et;for(;It.5||this.options.lineWrapping)&&ai(this),tn(this,"refresh",this)}),swapDoc:is(function(ht){var ft=this.doc;return ft.cm=null,this.state.selectingText&&this.state.selectingText(),Vg(this,ht),el(this),this.display.input.reset(),ph(this,ht.scrollLeft,ht.scrollTop),this.curOp.forceScroll=!0,jn(this,"swapDoc",this,ft),ft}),phrase:function(ht){var ft=this.options.phrases;return ft&&Object.prototype.hasOwnProperty.call(ft,ht)?ft[ht]:ht},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},si(it),it.registerHelper=function(ht,ft,Pt){dt.hasOwnProperty(ht)||(dt[ht]=it[ht]={_global:[]}),dt[ht][ft]=Pt},it.registerGlobalHelper=function(ht,ft,Pt,Et){it.registerHelper(ht,ft,Et),dt[ht]._global.push({pred:Pt,val:Et})}}function lg(it,st,dt,ht,ft){var Pt=st,Et=dt,It=En(it,st.line),bt=ft&&it.direction=="rtl"?-dt:dt;function Vt(){var Xn=st.line+bt;return Xn=it.first+it.size?!1:(st=new we(Xn,st.ch,st.sticky),It=En(it,Xn))}function ae(Xn){var zn;if(ht=="codepoint"){var ti=It.text.charCodeAt(st.ch+(ht>0?0:-1));isNaN(ti)?zn=null:zn=new we(st.line,Math.max(0,Math.min(It.text.length,st.ch+dt*(ti>=55296&&ti<56320?2:1))),-dt)}else ft?zn=$g(it.cm,It,st,dt):zn=Br(It,st,dt);if(zn==null)if(!Xn&&Vt())st=rg(ft,it.cm,It,st.line,bt);else return!1;else st=zn;return!0}if(ht=="char"||ht=="codepoint")ae();else if(ht=="column")ae(!0);else if(ht=="word"||ht=="group")for(var Qt=null,Le=ht=="group",Pe=it.cm&&it.cm.getHelper(st,"wordChars"),$e=!0;!(dt<0&&!ae(!$e));$e=!1){var rn=It.text.charAt(st.ch)||` +`)&&($e=rn=we($e.line,0)));var mn={from:$e,to:rn,text:Vt?Vt[Le%Vt.length]:bt,origin:ft||(It?"paste":it.state.cutIncoming>At?"cut":"+input")};zu(it.doc,mn),jn(it,"inputRead",it,mn)}st&&!It&&Tf(it,st),nu(it),it.curOp.updateInput<2&&(it.curOp.updateInput=Qt),it.curOp.typing=!0,it.state.pasteIncoming=it.state.cutIncoming=-1}function Nf(it,st){var dt=it.clipboardData&&it.clipboardData.getData("Text");if(dt)return it.preventDefault(),!st.isReadOnly()&&!st.options.disableInput&&po(st,function(){return ag(st,dt,0,null,"paste")}),!0}function Tf(it,st){if(!(!it.options.electricChars||!it.options.smartIndent))for(var dt=it.doc.sel,ht=dt.ranges.length-1;ht>=0;ht--){var ft=dt.ranges[ht];if(!(ft.head.ch>100||ht&&dt.ranges[ht-1].head.line==ft.head.line)){var Pt=it.getModeAt(ft.head),At=!1;if(Pt.electricChars){for(var It=0;It-1){At=Xr(it,ft.head.line,"smart");break}}else Pt.electricInput&&Pt.electricInput.test(An(it.doc,ft.head.line).text.slice(0,ft.head.ch))&&(At=Xr(it,ft.head.line,"smart"));At&&jn(it,"electricInput",it,ft.head.line)}}}function Ff(it){for(var st=[],dt=[],ht=0;htPt&&(Xr(this,It.head.line,ht,!0),Pt=It.head.line,At==this.doc.sel.primIndex&&nu(this));else{var bt=It.from(),Vt=It.to(),ae=Math.max(Pt,bt.line);Pt=Math.min(this.lastLine(),Vt.line-(Vt.ch?0:1))+1;for(var Qt=ae;Qt0&&ju(this.doc,At,new Lo(bt,Le[At].to()),ce)}}}),getTokenAt:function(ht,ft){return Kn(this,ht,ft)},getLineTokens:function(ht,ft){return Kn(this,we(ht),ft,!0)},getTokenTypeAt:function(ht){ht=Wn(this.doc,ht);var ft=uo(this,An(this.doc,ht.line)),Pt=0,At=(ft.length-1)/2,It=ht.ch,bt;if(It==0)bt=ft[2];else for(;;){var Vt=Pt+At>>1;if((Vt?ft[Vt*2-1]:0)>=It)At=Vt;else if(ft[Vt*2+1]bt&&(ht=bt,At=!0),It=An(this.doc,ht)}else It=ht;return Lr(this,It,{top:0,left:0},ft||"page",Pt||At).top+(At?this.doc.height-bi(It):0)},defaultTextHeight:function(){return eu(this.display)},defaultCharWidth:function(){return ch(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ht,ft,Pt,At,It){var bt=this.display;ht=dr(this,Wn(this.doc,ht));var Vt=ht.bottom,ae=ht.left;if(ft.style.position="absolute",ft.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ft),bt.sizer.appendChild(ft),At=="over")Vt=ht.top;else if(At=="above"||At=="near"){var Qt=Math.max(bt.wrapper.clientHeight,this.doc.height),Le=Math.max(bt.sizer.clientWidth,bt.lineSpace.clientWidth);(At=="above"||ht.bottom+ft.offsetHeight>Qt)&&ht.top>ft.offsetHeight?Vt=ht.top-ft.offsetHeight:ht.bottom+ft.offsetHeight<=Qt&&(Vt=ht.bottom),ae+ft.offsetWidth>Le&&(ae=Le-ft.offsetWidth)}ft.style.top=Vt+"px",ft.style.left=ft.style.right="",It=="right"?(ae=bt.sizer.clientWidth-ft.offsetWidth,ft.style.right="0px"):(It=="left"?ae=0:It=="middle"&&(ae=(bt.sizer.clientWidth-ft.offsetWidth)/2),ft.style.left=ae+"px"),Pt&&Ud(this,{left:ae,top:Vt,right:ae+ft.offsetWidth,bottom:Vt+ft.offsetHeight})},triggerOnKeyDown:ns(xf),triggerOnKeyPress:ns(Pl),triggerOnKeyUp:wf,triggerOnMouseDown:ns(wl),execCommand:function(ht){if(Ru.hasOwnProperty(ht))return Ru[ht].call(null,this)},triggerElectric:ns(function(ht){Tf(this,ht)}),findPosH:function(ht,ft,Pt,At){var It=1;ft<0&&(It=-1,ft=-ft);for(var bt=Wn(this.doc,ht),Vt=0;Vt0&&ae(Pt.charAt(At-1));)--At;for(;It.5||this.options.lineWrapping)&&ai(this),tn(this,"refresh",this)}),swapDoc:ns(function(ht){var ft=this.doc;return ft.cm=null,this.state.selectingText&&this.state.selectingText(),Vg(this,ht),el(this),this.display.input.reset(),ph(this,ht.scrollLeft,ht.scrollTop),this.curOp.forceScroll=!0,jn(this,"swapDoc",this,ft),ft}),phrase:function(ht){var ft=this.options.phrases;return ft&&Object.prototype.hasOwnProperty.call(ft,ht)?ft[ht]:ht},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},si(it),it.registerHelper=function(ht,ft,Pt){dt.hasOwnProperty(ht)||(dt[ht]=it[ht]={_global:[]}),dt[ht][ft]=Pt},it.registerGlobalHelper=function(ht,ft,Pt,At){it.registerHelper(ht,ft,At),dt[ht]._global.push({pred:Pt,val:At})}}function lg(it,st,dt,ht,ft){var Pt=st,At=dt,It=An(it,st.line),bt=ft&&it.direction=="rtl"?-dt:dt;function Vt(){var Xn=st.line+bt;return Xn=it.first+it.size?!1:(st=new we(Xn,st.ch,st.sticky),It=An(it,Xn))}function ae(Xn){var zn;if(ht=="codepoint"){var ti=It.text.charCodeAt(st.ch+(ht>0?0:-1));isNaN(ti)?zn=null:zn=new we(st.line,Math.max(0,Math.min(It.text.length,st.ch+dt*(ti>=55296&&ti<56320?2:1))),-dt)}else ft?zn=$g(it.cm,It,st,dt):zn=Br(It,st,dt);if(zn==null)if(!Xn&&Vt())st=rg(ft,it.cm,It,st.line,bt);else return!1;else st=zn;return!0}if(ht=="char"||ht=="codepoint")ae();else if(ht=="column")ae(!0);else if(ht=="word"||ht=="group")for(var Qt=null,Le=ht=="group",Pe=it.cm&&it.cm.getHelper(st,"wordChars"),$e=!0;!(dt<0&&!ae(!$e));$e=!1){var rn=It.text.charAt(st.ch)||` `,mn=Qn(rn,Pe)?"w":Le&&rn==` -`?"n":!Le||/\s/.test(rn)?null:"p";if(Le&&!$e&&!mn&&(mn="s"),Qt&&Qt!=mn){dt<0&&(dt=1,ae(),st.sticky="after");break}if(mn&&(Qt=mn),dt>0&&!ae(!$e))break}var Bn=$d(it,st,Pt,Et,!0);return Si(Pt,Bn)&&(Bn.hitSide=!0),Bn}function Wu(it,st,dt,ht){var ft=it.doc,Pt=st.left,Et;if(ht=="page"){var It=Math.min(it.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),bt=Math.max(It-.5*eu(it.display),3);Et=(dt>0?st.bottom:st.top)+dt*bt}else ht=="line"&&(Et=dt>0?st.bottom+3:st.top-3);for(var Vt;Vt=jg(it,Pt,Et),!!Vt.outside;){if(dt<0?Et<=0:Et>=ft.height){Vt.hitSide=!0;break}Et+=dt*5}return Vt}var jo=function(it){this.cm=it,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Gt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};jo.prototype.init=function(it){var st=this,dt=this,ht=dt.cm,ft=dt.div=it.lineDiv;Bf(ft,ht.options.spellcheck,ht.options.autocorrect,ht.options.autocapitalize);function Pt(It){for(var bt=It.target;bt;bt=bt.parentNode){if(bt==ft)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(bt.className))break}return!1}se(ft,"paste",function(It){!Pt(It)||Ln(ht,It)||Nf(It,ht)||Ae<=11&&setTimeout(Kr(ht,function(){return st.updateFromDOM()}),20)}),se(ft,"compositionstart",function(It){st.composing={data:It.data,done:!1}}),se(ft,"compositionupdate",function(It){st.composing||(st.composing={data:It.data,done:!1})}),se(ft,"compositionend",function(It){st.composing&&(It.data!=st.composing.data&&st.readFromDOMSoon(),st.composing.done=!0)}),se(ft,"touchstart",function(){return dt.forceCompositionEnd()}),se(ft,"input",function(){st.composing||st.readFromDOMSoon()});function Et(It){if(!(!Pt(It)||Ln(ht,It))){if(ht.somethingSelected())Fh({lineWise:!1,text:ht.getSelections()}),It.type=="cut"&&ht.replaceSelection("",null,"cut");else if(ht.options.lineWiseCopyCut){var bt=Ff(ht);Fh({lineWise:!0,text:bt.text}),It.type=="cut"&&ht.operation(function(){ht.setSelections(bt.ranges,0,ce),ht.replaceSelection("",null,"cut")})}else return;if(It.clipboardData){It.clipboardData.clearData();var Vt=$s.text.join(` +`?"n":!Le||/\s/.test(rn)?null:"p";if(Le&&!$e&&!mn&&(mn="s"),Qt&&Qt!=mn){dt<0&&(dt=1,ae(),st.sticky="after");break}if(mn&&(Qt=mn),dt>0&&!ae(!$e))break}var Bn=$d(it,st,Pt,At,!0);return Si(Pt,Bn)&&(Bn.hitSide=!0),Bn}function Wu(it,st,dt,ht){var ft=it.doc,Pt=st.left,At;if(ht=="page"){var It=Math.min(it.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),bt=Math.max(It-.5*eu(it.display),3);At=(dt>0?st.bottom:st.top)+dt*bt}else ht=="line"&&(At=dt>0?st.bottom+3:st.top-3);for(var Vt;Vt=jg(it,Pt,At),!!Vt.outside;){if(dt<0?At<=0:At>=ft.height){Vt.hitSide=!0;break}At+=dt*5}return Vt}var jo=function(it){this.cm=it,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Gt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};jo.prototype.init=function(it){var st=this,dt=this,ht=dt.cm,ft=dt.div=it.lineDiv;Bf(ft,ht.options.spellcheck,ht.options.autocorrect,ht.options.autocapitalize);function Pt(It){for(var bt=It.target;bt;bt=bt.parentNode){if(bt==ft)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(bt.className))break}return!1}se(ft,"paste",function(It){!Pt(It)||Ln(ht,It)||Nf(It,ht)||Ee<=11&&setTimeout(Kr(ht,function(){return st.updateFromDOM()}),20)}),se(ft,"compositionstart",function(It){st.composing={data:It.data,done:!1}}),se(ft,"compositionupdate",function(It){st.composing||(st.composing={data:It.data,done:!1})}),se(ft,"compositionend",function(It){st.composing&&(It.data!=st.composing.data&&st.readFromDOMSoon(),st.composing.done=!0)}),se(ft,"touchstart",function(){return dt.forceCompositionEnd()}),se(ft,"input",function(){st.composing||st.readFromDOMSoon()});function At(It){if(!(!Pt(It)||Ln(ht,It))){if(ht.somethingSelected())Fh({lineWise:!1,text:ht.getSelections()}),It.type=="cut"&&ht.replaceSelection("",null,"cut");else if(ht.options.lineWiseCopyCut){var bt=Ff(ht);Fh({lineWise:!0,text:bt.text}),It.type=="cut"&&ht.operation(function(){ht.setSelections(bt.ranges,0,ce),ht.replaceSelection("",null,"cut")})}else return;if(It.clipboardData){It.clipboardData.clearData();var Vt=$s.text.join(` `);if(It.clipboardData.setData("Text",Vt),It.clipboardData.getData("Text")==Vt){It.preventDefault();return}}var ae=bf(),Qt=ae.firstChild;ht.display.lineSpace.insertBefore(ae,ht.display.lineSpace.firstChild),Qt.value=$s.text.join(` -`);var Le=document.activeElement;vn(Qt),setTimeout(function(){ht.display.lineSpace.removeChild(ae),Le.focus(),Le==ft&&dt.showPrimarySelection()},50)}}se(ft,"copy",Et),se(ft,"cut",Et)},jo.prototype.screenReaderLabelChanged=function(it){it?this.div.setAttribute("aria-label",it):this.div.removeAttribute("aria-label")},jo.prototype.prepareSelection=function(){var it=Lu(this.cm,!1);return it.focus=document.activeElement==this.div,it},jo.prototype.showSelection=function(it,st){!it||!this.cm.display.view.length||((it.focus||st)&&this.showPrimarySelection(),this.showMultipleSelections(it))},jo.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},jo.prototype.showPrimarySelection=function(){var it=this.getSelection(),st=this.cm,dt=st.doc.sel.primary(),ht=dt.from(),ft=dt.to();if(st.display.viewTo==st.display.viewFrom||ht.line>=st.display.viewTo||ft.line=st.display.viewFrom&&uc(st,ht)||{node:It[0].measure.map[2],offset:0},Vt=ft.lineit.firstLine()&&(ht=we(ht.line-1,En(it.doc,ht.line-1).length)),ft.ch==En(it.doc,ft.line).text.length&&ft.linest.viewTo-1)return!1;var Pt,Et,It;ht.line==st.viewFrom||(Pt=La(it,ht.line))==0?(Et=ee(st.view[0].line),It=st.view[0].node):(Et=ee(st.view[Pt].line),It=st.view[Pt-1].node.nextSibling);var bt=La(it,ft.line),Vt,ae;if(bt==st.view.length-1?(Vt=st.viewTo-1,ae=st.lineDiv.lastChild):(Vt=ee(st.view[bt+1].line)-1,ae=st.view[bt+1].node.previousSibling),!It)return!1;for(var Qt=it.doc.splitLines(xd(it,It,ae,Et,Vt)),Le=Xi(it.doc,we(Et,0),we(Vt,En(it.doc,Vt).text.length));Qt.length>1&&Le.length>1;)if(te(Qt)==te(Le))Qt.pop(),Le.pop(),Vt--;else if(Qt[0]==Le[0])Qt.shift(),Le.shift(),Et++;else break;for(var Pe=0,$e=0,rn=Qt[0],mn=Le[0],Bn=Math.min(rn.length,mn.length);Peht.ch&&Xn.charCodeAt(Xn.length-$e-1)==zn.charCodeAt(zn.length-$e-1);)Pe--,$e++;Qt[Qt.length-1]=Xn.slice(0,Xn.length-$e).replace(/^\u200b+/,""),Qt[0]=Qt[0].slice(Pe).replace(/\u200b+$/,"");var Pi=we(Et,Pe),On=we(Vt,Le.length?te(Le).length-$e:0);if(Qt.length>1||Qt[0]||Je(Pi,On))return Ch(it.doc,Qt,Pi,On,"+input"),!0},jo.prototype.ensurePolled=function(){this.forceCompositionEnd()},jo.prototype.reset=function(){this.forceCompositionEnd()},jo.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},jo.prototype.readFromDOMSoon=function(){var it=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(it.readDOMTimeout=null,it.composing)if(it.composing.done)it.composing=null;else return;it.updateFromDOM()},80))},jo.prototype.updateFromDOM=function(){var it=this;(this.cm.isReadOnly()||!this.pollContent())&&po(this.cm,function(){return er(it.cm)})},jo.prototype.setUneditable=function(it){it.contentEditable="false"},jo.prototype.onKeyPress=function(it){it.charCode==0||this.composing||(it.preventDefault(),this.cm.isReadOnly()||Kr(this.cm,ag)(this.cm,String.fromCharCode(it.charCode==null?it.keyCode:it.charCode),0))},jo.prototype.readOnlyChanged=function(it){this.div.contentEditable=String(it!="nocursor")},jo.prototype.onContextMenu=function(){},jo.prototype.resetPosition=function(){},jo.prototype.needsContentAttribute=!0;function uc(it,st){var dt=Ai(it,st.line);if(!dt||dt.hidden)return null;var ht=En(it.doc,st.line),ft=xi(dt,ht,st.line),Pt=Rt(ht,it.doc.direction),Et="left";if(Pt){var It=xt(Pt,st.ch);Et=It%2?"right":"left"}var bt=Mr(ft.map,st.ch,Et);return bt.offset=bt.collapse=="right"?bt.end:bt.start,bt}function Df(it){for(var st=it;st;st=st.parentNode)if(/CodeMirror-gutter-wrapper/.test(st.className))return!0;return!1}function Sd(it,st){return st&&(it.bad=!0),it}function xd(it,st,dt,ht,ft){var Pt="",Et=!1,It=it.doc.lineSeparator(),bt=!1;function Vt(Pe){return function($e){return $e.id==Pe}}function ae(){Et&&(Pt+=It,bt&&(Pt+=It),Et=bt=!1)}function Qt(Pe){Pe&&(ae(),Pt+=Pe)}function Le(Pe){if(Pe.nodeType==1){var $e=Pe.getAttribute("cm-text");if($e){Qt($e);return}var rn=Pe.getAttribute("cm-marker"),mn;if(rn){var Bn=it.findMarks(we(ht,0),we(ft+1,0),Vt(+rn));Bn.length&&(mn=Bn[0].find(0))&&Qt(Xi(it.doc,mn.from,mn.to).join(It));return}if(Pe.getAttribute("contenteditable")=="false")return;var Xn=/^(pre|div|p|li|table|br)$/i.test(Pe.nodeName);if(!/^br$/i.test(Pe.nodeName)&&Pe.textContent.length==0)return;Xn&&ae();for(var zn=0;zn=9&&st.hasSelection&&(st.hasSelection=null),dt.poll()}),se(ft,"paste",function(Et){Ln(ht,Et)||Nf(Et,ht)||(ht.state.pasteIncoming=+new Date,dt.fastPoll())});function Pt(Et){if(!Ln(ht,Et)){if(ht.somethingSelected())Fh({lineWise:!1,text:ht.getSelections()});else if(ht.options.lineWiseCopyCut){var It=Ff(ht);Fh({lineWise:!0,text:It.text}),Et.type=="cut"?ht.setSelections(It.ranges,null,ce):(dt.prevInput="",ft.value=It.text.join(` -`),vn(ft))}else return;Et.type=="cut"&&(ht.state.cutIncoming=+new Date)}}se(ft,"cut",Pt),se(ft,"copy",Pt),se(it.scroller,"paste",function(Et){if(!(Rs(it,Et)||Ln(ht,Et))){if(!ft.dispatchEvent){ht.state.pasteIncoming=+new Date,dt.focus();return}var It=new Event("paste");It.clipboardData=Et.clipboardData,ft.dispatchEvent(It)}}),se(it.lineSpace,"selectstart",function(Et){Rs(it,Et)||Mi(Et)}),se(ft,"compositionstart",function(){var Et=ht.getCursor("from");dt.composing&&dt.composing.range.clear(),dt.composing={start:Et,range:ht.markText(Et,ht.getCursor("to"),{className:"CodeMirror-composing"})}}),se(ft,"compositionend",function(){dt.composing&&(dt.poll(),dt.composing.range.clear(),dt.composing=null)})},Gr.prototype.createField=function(it){this.wrapper=bf(),this.textarea=this.wrapper.firstChild},Gr.prototype.screenReaderLabelChanged=function(it){it?this.textarea.setAttribute("aria-label",it):this.textarea.removeAttribute("aria-label")},Gr.prototype.prepareSelection=function(){var it=this.cm,st=it.display,dt=it.doc,ht=Lu(it);if(it.options.moveInputWithCursor){var ft=dr(it,dt.sel.primary().head,"div"),Pt=st.wrapper.getBoundingClientRect(),Et=st.lineDiv.getBoundingClientRect();ht.teTop=Math.max(0,Math.min(st.wrapper.clientHeight-10,ft.top+Et.top-Pt.top)),ht.teLeft=Math.max(0,Math.min(st.wrapper.clientWidth-10,ft.left+Et.left-Pt.left))}return ht},Gr.prototype.showSelection=function(it){var st=this.cm,dt=st.display;ne(dt.cursorDiv,it.cursors),ne(dt.selectionDiv,it.selection),it.teTop!=null&&(this.wrapper.style.top=it.teTop+"px",this.wrapper.style.left=it.teLeft+"px")},Gr.prototype.reset=function(it){if(!(this.contextMenuPending||this.composing)){var st=this.cm;if(st.somethingSelected()){this.prevInput="";var dt=st.getSelection();this.textarea.value=dt,st.state.focused&&vn(this.textarea),ge&&Ae>=9&&(this.hasSelection=dt)}else it||(this.prevInput=this.textarea.value="",ge&&Ae>=9&&(this.hasSelection=null))}},Gr.prototype.getField=function(){return this.textarea},Gr.prototype.supportsTouch=function(){return!1},Gr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!nt||me()!=this.textarea))try{this.textarea.focus()}catch(it){}},Gr.prototype.blur=function(){this.textarea.blur()},Gr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Gr.prototype.receivedFocus=function(){this.slowPoll()},Gr.prototype.slowPoll=function(){var it=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){it.poll(),it.cm.state.focused&&it.slowPoll()})},Gr.prototype.fastPoll=function(){var it=!1,st=this;st.pollingFast=!0;function dt(){var ht=st.poll();!ht&&!it?(it=!0,st.polling.set(60,dt)):(st.pollingFast=!1,st.slowPoll())}st.polling.set(20,dt)},Gr.prototype.poll=function(){var it=this,st=this.cm,dt=this.textarea,ht=this.prevInput;if(this.contextMenuPending||!st.state.focused||wt(dt)&&!ht&&!this.composing||st.isReadOnly()||st.options.disableInput||st.state.keySeq)return!1;var ft=dt.value;if(ft==ht&&!st.somethingSelected())return!1;if(ge&&Ae>=9&&this.hasSelection===ft||gt&&/[\uf700-\uf7ff]/.test(ft))return st.display.input.reset(),!1;if(st.doc.sel==st.display.selForContextMenu){var Pt=ft.charCodeAt(0);if(Pt==8203&&!ht&&(ht="\u200B"),Pt==8666)return this.reset(),this.cm.execCommand("undo")}for(var Et=0,It=Math.min(ht.length,ft.length);Et1e3||ft.indexOf(` -`)>-1?dt.value=it.prevInput="":it.prevInput=ft,it.composing&&(it.composing.range.clear(),it.composing.range=st.markText(it.composing.start,st.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Gr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Gr.prototype.onKeyPress=function(){ge&&Ae>=9&&(this.hasSelection=null),this.fastPoll()},Gr.prototype.onContextMenu=function(it){var st=this,dt=st.cm,ht=dt.display,ft=st.textarea;st.contextMenuPending&&st.contextMenuPending();var Pt=Gs(dt,it),Et=ht.scroller.scrollTop;if(!Pt||pe)return;var It=dt.options.resetSelectionOnContextMenu;It&&dt.doc.sel.contains(Pt)==-1&&Kr(dt,Fs)(dt.doc,ou(Pt),ce);var bt=ft.style.cssText,Vt=st.wrapper.style.cssText,ae=st.wrapper.offsetParent.getBoundingClientRect();st.wrapper.style.cssText="position: static",ft.style.cssText=`position: absolute; width: 30px; height: 30px; +`);var Le=document.activeElement;vn(Qt),setTimeout(function(){ht.display.lineSpace.removeChild(ae),Le.focus(),Le==ft&&dt.showPrimarySelection()},50)}}se(ft,"copy",At),se(ft,"cut",At)},jo.prototype.screenReaderLabelChanged=function(it){it?this.div.setAttribute("aria-label",it):this.div.removeAttribute("aria-label")},jo.prototype.prepareSelection=function(){var it=Lu(this.cm,!1);return it.focus=document.activeElement==this.div,it},jo.prototype.showSelection=function(it,st){!it||!this.cm.display.view.length||((it.focus||st)&&this.showPrimarySelection(),this.showMultipleSelections(it))},jo.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},jo.prototype.showPrimarySelection=function(){var it=this.getSelection(),st=this.cm,dt=st.doc.sel.primary(),ht=dt.from(),ft=dt.to();if(st.display.viewTo==st.display.viewFrom||ht.line>=st.display.viewTo||ft.line=st.display.viewFrom&&uc(st,ht)||{node:It[0].measure.map[2],offset:0},Vt=ft.lineit.firstLine()&&(ht=we(ht.line-1,An(it.doc,ht.line-1).length)),ft.ch==An(it.doc,ft.line).text.length&&ft.linest.viewTo-1)return!1;var Pt,At,It;ht.line==st.viewFrom||(Pt=La(it,ht.line))==0?(At=ee(st.view[0].line),It=st.view[0].node):(At=ee(st.view[Pt].line),It=st.view[Pt-1].node.nextSibling);var bt=La(it,ft.line),Vt,ae;if(bt==st.view.length-1?(Vt=st.viewTo-1,ae=st.lineDiv.lastChild):(Vt=ee(st.view[bt+1].line)-1,ae=st.view[bt+1].node.previousSibling),!It)return!1;for(var Qt=it.doc.splitLines(xd(it,It,ae,At,Vt)),Le=Xi(it.doc,we(At,0),we(Vt,An(it.doc,Vt).text.length));Qt.length>1&&Le.length>1;)if(te(Qt)==te(Le))Qt.pop(),Le.pop(),Vt--;else if(Qt[0]==Le[0])Qt.shift(),Le.shift(),At++;else break;for(var Pe=0,$e=0,rn=Qt[0],mn=Le[0],Bn=Math.min(rn.length,mn.length);Peht.ch&&Xn.charCodeAt(Xn.length-$e-1)==zn.charCodeAt(zn.length-$e-1);)Pe--,$e++;Qt[Qt.length-1]=Xn.slice(0,Xn.length-$e).replace(/^\u200b+/,""),Qt[0]=Qt[0].slice(Pe).replace(/\u200b+$/,"");var Pi=we(At,Pe),On=we(Vt,Le.length?te(Le).length-$e:0);if(Qt.length>1||Qt[0]||Je(Pi,On))return Ch(it.doc,Qt,Pi,On,"+input"),!0},jo.prototype.ensurePolled=function(){this.forceCompositionEnd()},jo.prototype.reset=function(){this.forceCompositionEnd()},jo.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},jo.prototype.readFromDOMSoon=function(){var it=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(it.readDOMTimeout=null,it.composing)if(it.composing.done)it.composing=null;else return;it.updateFromDOM()},80))},jo.prototype.updateFromDOM=function(){var it=this;(this.cm.isReadOnly()||!this.pollContent())&&po(this.cm,function(){return er(it.cm)})},jo.prototype.setUneditable=function(it){it.contentEditable="false"},jo.prototype.onKeyPress=function(it){it.charCode==0||this.composing||(it.preventDefault(),this.cm.isReadOnly()||Kr(this.cm,ag)(this.cm,String.fromCharCode(it.charCode==null?it.keyCode:it.charCode),0))},jo.prototype.readOnlyChanged=function(it){this.div.contentEditable=String(it!="nocursor")},jo.prototype.onContextMenu=function(){},jo.prototype.resetPosition=function(){},jo.prototype.needsContentAttribute=!0;function uc(it,st){var dt=Ei(it,st.line);if(!dt||dt.hidden)return null;var ht=An(it.doc,st.line),ft=xi(dt,ht,st.line),Pt=Rt(ht,it.doc.direction),At="left";if(Pt){var It=xt(Pt,st.ch);At=It%2?"right":"left"}var bt=Mr(ft.map,st.ch,At);return bt.offset=bt.collapse=="right"?bt.end:bt.start,bt}function Df(it){for(var st=it;st;st=st.parentNode)if(/CodeMirror-gutter-wrapper/.test(st.className))return!0;return!1}function Sd(it,st){return st&&(it.bad=!0),it}function xd(it,st,dt,ht,ft){var Pt="",At=!1,It=it.doc.lineSeparator(),bt=!1;function Vt(Pe){return function($e){return $e.id==Pe}}function ae(){At&&(Pt+=It,bt&&(Pt+=It),At=bt=!1)}function Qt(Pe){Pe&&(ae(),Pt+=Pe)}function Le(Pe){if(Pe.nodeType==1){var $e=Pe.getAttribute("cm-text");if($e){Qt($e);return}var rn=Pe.getAttribute("cm-marker"),mn;if(rn){var Bn=it.findMarks(we(ht,0),we(ft+1,0),Vt(+rn));Bn.length&&(mn=Bn[0].find(0))&&Qt(Xi(it.doc,mn.from,mn.to).join(It));return}if(Pe.getAttribute("contenteditable")=="false")return;var Xn=/^(pre|div|p|li|table|br)$/i.test(Pe.nodeName);if(!/^br$/i.test(Pe.nodeName)&&Pe.textContent.length==0)return;Xn&&ae();for(var zn=0;zn=9&&st.hasSelection&&(st.hasSelection=null),dt.poll()}),se(ft,"paste",function(At){Ln(ht,At)||Nf(At,ht)||(ht.state.pasteIncoming=+new Date,dt.fastPoll())});function Pt(At){if(!Ln(ht,At)){if(ht.somethingSelected())Fh({lineWise:!1,text:ht.getSelections()});else if(ht.options.lineWiseCopyCut){var It=Ff(ht);Fh({lineWise:!0,text:It.text}),At.type=="cut"?ht.setSelections(It.ranges,null,ce):(dt.prevInput="",ft.value=It.text.join(` +`),vn(ft))}else return;At.type=="cut"&&(ht.state.cutIncoming=+new Date)}}se(ft,"cut",Pt),se(ft,"copy",Pt),se(it.scroller,"paste",function(At){if(!(Rs(it,At)||Ln(ht,At))){if(!ft.dispatchEvent){ht.state.pasteIncoming=+new Date,dt.focus();return}var It=new Event("paste");It.clipboardData=At.clipboardData,ft.dispatchEvent(It)}}),se(it.lineSpace,"selectstart",function(At){Rs(it,At)||Mi(At)}),se(ft,"compositionstart",function(){var At=ht.getCursor("from");dt.composing&&dt.composing.range.clear(),dt.composing={start:At,range:ht.markText(At,ht.getCursor("to"),{className:"CodeMirror-composing"})}}),se(ft,"compositionend",function(){dt.composing&&(dt.poll(),dt.composing.range.clear(),dt.composing=null)})},Gr.prototype.createField=function(it){this.wrapper=bf(),this.textarea=this.wrapper.firstChild},Gr.prototype.screenReaderLabelChanged=function(it){it?this.textarea.setAttribute("aria-label",it):this.textarea.removeAttribute("aria-label")},Gr.prototype.prepareSelection=function(){var it=this.cm,st=it.display,dt=it.doc,ht=Lu(it);if(it.options.moveInputWithCursor){var ft=dr(it,dt.sel.primary().head,"div"),Pt=st.wrapper.getBoundingClientRect(),At=st.lineDiv.getBoundingClientRect();ht.teTop=Math.max(0,Math.min(st.wrapper.clientHeight-10,ft.top+At.top-Pt.top)),ht.teLeft=Math.max(0,Math.min(st.wrapper.clientWidth-10,ft.left+At.left-Pt.left))}return ht},Gr.prototype.showSelection=function(it){var st=this.cm,dt=st.display;ne(dt.cursorDiv,it.cursors),ne(dt.selectionDiv,it.selection),it.teTop!=null&&(this.wrapper.style.top=it.teTop+"px",this.wrapper.style.left=it.teLeft+"px")},Gr.prototype.reset=function(it){if(!(this.contextMenuPending||this.composing)){var st=this.cm;if(st.somethingSelected()){this.prevInput="";var dt=st.getSelection();this.textarea.value=dt,st.state.focused&&vn(this.textarea),ge&&Ee>=9&&(this.hasSelection=dt)}else it||(this.prevInput=this.textarea.value="",ge&&Ee>=9&&(this.hasSelection=null))}},Gr.prototype.getField=function(){return this.textarea},Gr.prototype.supportsTouch=function(){return!1},Gr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!nt||me()!=this.textarea))try{this.textarea.focus()}catch(it){}},Gr.prototype.blur=function(){this.textarea.blur()},Gr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Gr.prototype.receivedFocus=function(){this.slowPoll()},Gr.prototype.slowPoll=function(){var it=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){it.poll(),it.cm.state.focused&&it.slowPoll()})},Gr.prototype.fastPoll=function(){var it=!1,st=this;st.pollingFast=!0;function dt(){var ht=st.poll();!ht&&!it?(it=!0,st.polling.set(60,dt)):(st.pollingFast=!1,st.slowPoll())}st.polling.set(20,dt)},Gr.prototype.poll=function(){var it=this,st=this.cm,dt=this.textarea,ht=this.prevInput;if(this.contextMenuPending||!st.state.focused||wt(dt)&&!ht&&!this.composing||st.isReadOnly()||st.options.disableInput||st.state.keySeq)return!1;var ft=dt.value;if(ft==ht&&!st.somethingSelected())return!1;if(ge&&Ee>=9&&this.hasSelection===ft||gt&&/[\uf700-\uf7ff]/.test(ft))return st.display.input.reset(),!1;if(st.doc.sel==st.display.selForContextMenu){var Pt=ft.charCodeAt(0);if(Pt==8203&&!ht&&(ht="\u200B"),Pt==8666)return this.reset(),this.cm.execCommand("undo")}for(var At=0,It=Math.min(ht.length,ft.length);At1e3||ft.indexOf(` +`)>-1?dt.value=it.prevInput="":it.prevInput=ft,it.composing&&(it.composing.range.clear(),it.composing.range=st.markText(it.composing.start,st.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Gr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Gr.prototype.onKeyPress=function(){ge&&Ee>=9&&(this.hasSelection=null),this.fastPoll()},Gr.prototype.onContextMenu=function(it){var st=this,dt=st.cm,ht=dt.display,ft=st.textarea;st.contextMenuPending&&st.contextMenuPending();var Pt=Gs(dt,it),At=ht.scroller.scrollTop;if(!Pt||pe)return;var It=dt.options.resetSelectionOnContextMenu;It&&dt.doc.sel.contains(Pt)==-1&&Kr(dt,Fs)(dt.doc,ou(Pt),ce);var bt=ft.style.cssText,Vt=st.wrapper.style.cssText,ae=st.wrapper.offsetParent.getBoundingClientRect();st.wrapper.style.cssText="position: static",ft.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(it.clientY-ae.top-5)+"px; left: "+(it.clientX-ae.left-5)+`px; z-index: 1000; background: `+(ge?"rgba(255, 255, 255, .05)":"transparent")+`; - outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Qt;qt&&(Qt=window.scrollY),ht.input.focus(),qt&&window.scrollTo(null,Qt),ht.input.reset(),dt.somethingSelected()||(ft.value=st.prevInput=" "),st.contextMenuPending=Pe,ht.selForContextMenu=dt.doc.sel,clearTimeout(ht.detectingSelectAll);function Le(){if(ft.selectionStart!=null){var rn=dt.somethingSelected(),mn="\u200B"+(rn?ft.value:"");ft.value="\u21DA",ft.value=mn,st.prevInput=rn?"":"\u200B",ft.selectionStart=1,ft.selectionEnd=mn.length,ht.selForContextMenu=dt.doc.sel}}function Pe(){if(st.contextMenuPending==Pe&&(st.contextMenuPending=!1,st.wrapper.style.cssText=Vt,ft.style.cssText=bt,ge&&Ae<9&&ht.scrollbars.setScrollTop(ht.scroller.scrollTop=Et),ft.selectionStart!=null)){(!ge||ge&&Ae<9)&&Le();var rn=0,mn=function(){ht.selForContextMenu==dt.doc.sel&&ft.selectionStart==0&&ft.selectionEnd>0&&st.prevInput=="\u200B"?Kr(dt,Fr)(dt):rn++<10?ht.detectingSelectAll=setTimeout(mn,500):(ht.selForContextMenu=null,ht.input.reset())};ht.detectingSelectAll=setTimeout(mn,200)}}if(ge&&Ae>=9&&Le(),Ft){pr(it);var $e=function(){nn(window,"mouseup",$e),setTimeout(Pe,20)};se(window,"mouseup",$e)}else setTimeout(Pe,50)},Gr.prototype.readOnlyChanged=function(it){it||this.reset(),this.textarea.disabled=it=="nocursor",this.textarea.readOnly=!!it},Gr.prototype.setUneditable=function(){},Gr.prototype.needsContentAttribute=!1;function sm(it,st){if(st=st?In(st):{},st.value=it.value,!st.tabindex&&it.tabIndex&&(st.tabindex=it.tabIndex),!st.placeholder&&it.placeholder&&(st.placeholder=it.placeholder),st.autofocus==null){var dt=me();st.autofocus=dt==it||it.getAttribute("autofocus")!=null&&dt==document.body}function ht(){it.value=It.getValue()}var ft;if(it.form&&(se(it.form,"submit",ht),!st.leaveSubmitMethodAlone)){var Pt=it.form;ft=Pt.submit;try{var Et=Pt.submit=function(){ht(),Pt.submit=ft,Pt.submit(),Pt.submit=Et}}catch(bt){}}st.finishInit=function(bt){bt.save=ht,bt.getTextArea=function(){return it},bt.toTextArea=function(){bt.toTextArea=isNaN,ht(),it.parentNode.removeChild(bt.getWrapperElement()),it.style.display="",it.form&&(nn(it.form,"submit",ht),!st.leaveSubmitMethodAlone&&typeof it.form.submit=="function"&&(it.form.submit=ft))}},it.style.display="none";var It=ro(function(bt){return it.parentNode.insertBefore(bt,it.nextSibling)},st);return It}function Pd(it){it.off=nn,it.on=se,it.wheelEventPixels=Aa,it.Doc=xs,it.splitLines=yi,it.countColumn=Zt,it.findColumn=wn,it.isWordChar=vi,it.Pass=ln,it.signal=tn,it.Line=Wo,it.changeEnd=Iu,it.scrollbarModel=$c,it.Pos=we,it.cmpPos=Je,it.modes=Io,it.mimeModes=Jo,it.resolveMode=jr,it.getMode=De,it.modeExtensions=ye,it.extendMode=he,it.copyState=Dn,it.startState=hi,it.innerMode=ci,it.commands=Ru,it.keyMap=ha,it.keyName=_p,it.isModifierKey=cd,it.lookupKey=Wa,it.normalizeKeyMap=pf,it.StringStream=Ze,it.SharedTextMarker=Il,it.TextMarker=oe,it.LineWidget=au,it.e_preventDefault=Mi,it.e_stopPropagation=qi,it.e_stop=pr,it.addClass=Fe,it.contains=Oe,it.rmClass=Kt,it.keyNames=Ol}im(ro),Hu(ro);var lu="iter insert remove copy getEditor constructor".split(" ");for(var hg in xs.prototype)xs.prototype.hasOwnProperty(hg)&&He(lu,hg)<0&&(ro.prototype[hg]=function(it){return function(){return it.apply(this.doc,arguments)}}(xs.prototype[hg]));return si(xs),ro.inputStyles={textarea:Gr,contenteditable:jo},ro.defineMode=function(it){!ro.defaults.mode&&it!="null"&&(ro.defaults.mode=it),Or.apply(this,arguments)},ro.defineMIME=To,ro.defineMode("null",function(){return{token:function(it){return it.skipToEnd()}}}),ro.defineMIME("text/plain","null"),ro.defineExtension=function(it,st){ro.prototype[it]=st},ro.defineDocExtension=function(it,st){xs.prototype[it]=st},ro.fromTextArea=sm,Pd(ro),ro.version="5.58.2",ro})},25419:function(Ye,pn,Yt){(function(kt){kt(Yt(89780),Yt(15525),Yt(98101))})(function(kt){"use strict";kt.defineMode("markdown",function(ue,xe){var Te=kt.getMode(ue,"text/html"),ge=Te.name=="null";function Ae(Zt){if(kt.findModeByName){var Gt=kt.findModeByName(Zt);Gt&&(Zt=Gt.mime||Gt.mimes[0])}var He=kt.getMode(ue,Zt);return He.name=="null"?null:He}xe.highlightFormatting===void 0&&(xe.highlightFormatting=!1),xe.maxBlockquoteDepth===void 0&&(xe.maxBlockquoteDepth=0),xe.taskLists===void 0&&(xe.taskLists=!1),xe.strikethrough===void 0&&(xe.strikethrough=!1),xe.emoji===void 0&&(xe.emoji=!1),xe.fencedCodeBlockHighlighting===void 0&&(xe.fencedCodeBlockHighlighting=!0),xe.fencedCodeBlockDefaultMode===void 0&&(xe.fencedCodeBlockDefaultMode="text/plain"),xe.xml===void 0&&(xe.xml=!0),xe.tokenTypeOverrides===void 0&&(xe.tokenTypeOverrides={});var qt={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var Ce in qt)qt.hasOwnProperty(Ce)&&xe.tokenTypeOverrides[Ce]&&(qt[Ce]=xe.tokenTypeOverrides[Ce]);var fe=/^([*\-_])(?:\s*\1){2,}\s*$/,pe=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,le=/^\[(x| )\](?=\s)/i,Be=xe.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,je=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Nt=/^[^#!\[\]*_\\<>` "'(~:]+/,et=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,nt=/^\s*\[[^\]]+?\]:.*$/,gt=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,lt=" ";function pt(Zt,Gt,He){return Gt.f=Gt.inline=He,He(Zt,Gt)}function vt(Zt,Gt,He){return Gt.f=Gt.block=He,He(Zt,Gt)}function Lt(Zt){return!Zt||!/\S/.test(Zt.string)}function Ft(Zt){if(Zt.linkTitle=!1,Zt.linkHref=!1,Zt.linkText=!1,Zt.em=!1,Zt.strong=!1,Zt.strikethrough=!1,Zt.quote=0,Zt.indentedCode=!1,Zt.f==Kt){var Gt=ge;if(!Gt){var He=kt.innerMode(Te,Zt.htmlState);Gt=He.mode.name=="xml"&&He.state.tagStart===null&&!He.state.context&&He.state.tokenize.isInText}Gt&&(Zt.f=ve,Zt.block=Wt,Zt.htmlState=null)}return Zt.trailingSpace=0,Zt.trailingSpaceNewLine=!1,Zt.prevLine=Zt.thisLine,Zt.thisLine={stream:null},null}function Wt(Zt,Gt){var He=Zt.column()===Gt.indentation,un=Lt(Gt.prevLine.stream),ln=Gt.indentedCode,ce=Gt.prevLine.hr,Ue=Gt.list!==!1,on=(Gt.listStack[Gt.listStack.length-1]||0)+3;Gt.indentedCode=!1;var wn=Gt.indentation;if(Gt.indentationDiff===null&&(Gt.indentationDiff=Gt.indentation,Ue)){for(Gt.list=null;wn=4&&(ln||Gt.prevLine.fencedCodeEnd||Gt.prevLine.header||un))return Zt.skipToEnd(),Gt.indentedCode=!0,qt.code;if(Zt.eatSpace())return null;if(He&&Gt.indentation<=on&&(te=Zt.match(Be))&&te[1].length<=6)return Gt.quote=0,Gt.header=te[1].length,Gt.thisLine.header=!0,xe.highlightFormatting&&(Gt.formatting="header"),Gt.f=Gt.inline,ne(Gt);if(Gt.indentation<=on&&Zt.eat(">"))return Gt.quote=He?1:Gt.quote+1,xe.highlightFormatting&&(Gt.formatting="quote"),Zt.eatSpace(),ne(Gt);if(!kn&&!Gt.setext&&He&&Gt.indentation<=on&&(te=Zt.match(pe))){var Ve=te[1]?"ol":"ul";return Gt.indentation=wn+Zt.current().length,Gt.list=!0,Gt.quote=0,Gt.listStack.push(Gt.indentation),Gt.em=!1,Gt.strong=!1,Gt.code=!1,Gt.strikethrough=!1,xe.taskLists&&Zt.match(le,!1)&&(Gt.taskList=!0),Gt.f=Gt.inline,xe.highlightFormatting&&(Gt.formatting=["list","list-"+Ve]),ne(Gt)}else{if(He&&Gt.indentation<=on&&(te=Zt.match(et,!0)))return Gt.quote=0,Gt.fencedEndRE=new RegExp(te[1]+"+ *$"),Gt.localMode=xe.fencedCodeBlockHighlighting&&Ae(te[2]||xe.fencedCodeBlockDefaultMode),Gt.localMode&&(Gt.localState=kt.startState(Gt.localMode)),Gt.f=Gt.block=_t,xe.highlightFormatting&&(Gt.formatting="code-block"),Gt.code=-1,ne(Gt);if(Gt.setext||(!sn||!Ue)&&!Gt.quote&&Gt.list===!1&&!Gt.code&&!kn&&!nt.test(Zt.string)&&(te=Zt.lookAhead(1))&&(te=te.match(je)))return Gt.setext?(Gt.header=Gt.setext,Gt.setext=0,Zt.skipToEnd(),xe.highlightFormatting&&(Gt.formatting="header")):(Gt.header=te[0].charAt(0)=="="?1:2,Gt.setext=Gt.header),Gt.thisLine.header=!0,Gt.f=Gt.inline,ne(Gt);if(kn)return Zt.skipToEnd(),Gt.hr=!0,Gt.thisLine.hr=!0,qt.hr;if(Zt.peek()==="[")return pt(Zt,Gt,Pn)}return pt(Zt,Gt,Gt.inline)}function Kt(Zt,Gt){var He=Te.token(Zt,Gt.htmlState);if(!ge){var un=kt.innerMode(Te,Gt.htmlState);(un.mode.name=="xml"&&un.state.tagStart===null&&!un.state.context&&un.state.tokenize.isInText||Gt.md_inside&&Zt.current().indexOf(">")>-1)&&(Gt.f=ve,Gt.block=Wt,Gt.htmlState=null)}return He}function _t(Zt,Gt){var He=Gt.listStack[Gt.listStack.length-1]||0,un=Gt.indentation=Zt.quote?Gt.push(qt.formatting+"-"+Zt.formatting[He]+"-"+Zt.quote):Gt.push("error"))}if(Zt.taskOpen)return Gt.push("meta"),Gt.length?Gt.join(" "):null;if(Zt.taskClosed)return Gt.push("property"),Gt.length?Gt.join(" "):null;if(Zt.linkHref?Gt.push(qt.linkHref,"url"):(Zt.strong&&Gt.push(qt.strong),Zt.em&&Gt.push(qt.em),Zt.strikethrough&&Gt.push(qt.strikethrough),Zt.emoji&&Gt.push(qt.emoji),Zt.linkText&&Gt.push(qt.linkText),Zt.code&&Gt.push(qt.code),Zt.image&&Gt.push(qt.image),Zt.imageAltText&&Gt.push(qt.imageAltText,"link"),Zt.imageMarker&&Gt.push(qt.imageMarker)),Zt.header&&Gt.push(qt.header,qt.header+"-"+Zt.header),Zt.quote&&(Gt.push(qt.quote),!xe.maxBlockquoteDepth||xe.maxBlockquoteDepth>=Zt.quote?Gt.push(qt.quote+"-"+Zt.quote):Gt.push(qt.quote+"-"+xe.maxBlockquoteDepth)),Zt.list!==!1){var un=(Zt.listStack.length-1)%3;un?un===1?Gt.push(qt.list2):Gt.push(qt.list3):Gt.push(qt.list1)}return Zt.trailingSpaceNewLine?Gt.push("trailing-space-new-line"):Zt.trailingSpace&&Gt.push("trailing-space-"+(Zt.trailingSpace%2?"a":"b")),Gt.length?Gt.join(" "):null}function $t(Zt,Gt){if(Zt.match(Nt,!0))return ne(Gt)}function ve(Zt,Gt){var He=Gt.text(Zt,Gt);if(typeof He!="undefined")return He;if(Gt.list)return Gt.list=null,ne(Gt);if(Gt.taskList){var un=Zt.match(le,!0)[1]===" ";return un?Gt.taskOpen=!0:Gt.taskClosed=!0,xe.highlightFormatting&&(Gt.formatting="task"),Gt.taskList=!1,ne(Gt)}if(Gt.taskOpen=!1,Gt.taskClosed=!1,Gt.header&&Zt.match(/^#+$/,!0))return xe.highlightFormatting&&(Gt.formatting="header"),ne(Gt);var ln=Zt.next();if(Gt.linkTitle){Gt.linkTitle=!1;var ce=ln;ln==="("&&(ce=")"),ce=(ce+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ue="^\\s*(?:[^"+ce+"\\\\]+|\\\\\\\\|\\\\.)"+ce;if(Zt.match(new RegExp(Ue),!0))return qt.linkHref}if(ln==="`"){var on=Gt.formatting;xe.highlightFormatting&&(Gt.formatting="code"),Zt.eatWhile("`");var wn=Zt.current().length;if(Gt.code==0&&(!Gt.quote||wn==1))return Gt.code=wn,ne(Gt);if(wn==Gt.code){var sn=ne(Gt);return Gt.code=0,sn}else return Gt.formatting=on,ne(Gt)}else if(Gt.code)return ne(Gt);if(ln==="\\"&&(Zt.next(),xe.highlightFormatting)){var kn=ne(Gt),te=qt.formatting+"-escape";return kn?kn+" "+te:te}if(ln==="!"&&Zt.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Gt.imageMarker=!0,Gt.image=!0,xe.highlightFormatting&&(Gt.formatting="image"),ne(Gt);if(ln==="["&&Gt.imageMarker&&Zt.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Gt.imageMarker=!1,Gt.imageAltText=!0,xe.highlightFormatting&&(Gt.formatting="image"),ne(Gt);if(ln==="]"&&Gt.imageAltText){xe.highlightFormatting&&(Gt.formatting="image");var kn=ne(Gt);return Gt.imageAltText=!1,Gt.image=!1,Gt.inline=Gt.f=Oe,kn}if(ln==="["&&!Gt.image)return Gt.linkText&&Zt.match(/^.*?\]/)||(Gt.linkText=!0,xe.highlightFormatting&&(Gt.formatting="link")),ne(Gt);if(ln==="]"&&Gt.linkText){xe.highlightFormatting&&(Gt.formatting="link");var kn=ne(Gt);return Gt.linkText=!1,Gt.inline=Gt.f=Zt.match(/\(.*?\)| ?\[.*?\]/,!1)?Oe:ve,kn}if(ln==="<"&&Zt.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Gt.f=Gt.inline=re,xe.highlightFormatting&&(Gt.formatting="link");var kn=ne(Gt);return kn?kn+=" ":kn="",kn+qt.linkInline}if(ln==="<"&&Zt.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Gt.f=Gt.inline=re,xe.highlightFormatting&&(Gt.formatting="link");var kn=ne(Gt);return kn?kn+=" ":kn="",kn+qt.linkEmail}if(xe.xml&&ln==="<"&&Zt.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Ve=Zt.string.indexOf(">",Zt.pos);if(Ve!=-1){var fn=Zt.string.substring(Zt.start,Ve);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(fn)&&(Gt.md_inside=!0)}return Zt.backUp(1),Gt.htmlState=kt.startState(Te),vt(Zt,Gt,Kt)}if(xe.xml&&ln==="<"&&Zt.match(/^\/\w*?>/))return Gt.md_inside=!1,"tag";if(ln==="*"||ln==="_"){for(var dn=1,Sn=Zt.pos==1?" ":Zt.string.charAt(Zt.pos-2);dn<3&&Zt.eat(ln);)dn++;var Vn=Zt.peek()||" ",vi=!/\s/.test(Vn)&&(!gt.test(Vn)||/\s/.test(Sn)||gt.test(Sn)),Qn=!/\s/.test(Sn)&&(!gt.test(Sn)||/\s/.test(Vn)||gt.test(Vn)),wi=null,Ci=null;if(dn%2&&(!Gt.em&&vi&&(ln==="*"||!Qn||gt.test(Sn))?wi=!0:Gt.em==ln&&Qn&&(ln==="*"||!vi||gt.test(Vn))&&(wi=!1)),dn>1&&(!Gt.strong&&vi&&(ln==="*"||!Qn||gt.test(Sn))?Ci=!0:Gt.strong==ln&&Qn&&(ln==="*"||!vi||gt.test(Vn))&&(Ci=!1)),Ci!=null||wi!=null){xe.highlightFormatting&&(Gt.formatting=wi==null?"strong":Ci==null?"em":"strong em"),wi===!0&&(Gt.em=ln),Ci===!0&&(Gt.strong=ln);var sn=ne(Gt);return wi===!1&&(Gt.em=!1),Ci===!1&&(Gt.strong=!1),sn}}else if(ln===" "&&(Zt.eat("*")||Zt.eat("_"))){if(Zt.peek()===" ")return ne(Gt);Zt.backUp(1)}if(xe.strikethrough){if(ln==="~"&&Zt.eatWhile(ln)){if(Gt.strikethrough){xe.highlightFormatting&&(Gt.formatting="strikethrough");var sn=ne(Gt);return Gt.strikethrough=!1,sn}else if(Zt.match(/^[^\s]/,!1))return Gt.strikethrough=!0,xe.highlightFormatting&&(Gt.formatting="strikethrough"),ne(Gt)}else if(ln===" "&&Zt.match(/^~~/,!0)){if(Zt.peek()===" ")return ne(Gt);Zt.backUp(2)}}if(xe.emoji&&ln===":"&&Zt.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Gt.emoji=!0,xe.highlightFormatting&&(Gt.formatting="emoji");var an=ne(Gt);return Gt.emoji=!1,an}return ln===" "&&(Zt.match(/^ +$/,!1)?Gt.trailingSpace++:Gt.trailingSpace&&(Gt.trailingSpaceNewLine=!0)),ne(Gt)}function re(Zt,Gt){var He=Zt.next();if(He===">"){Gt.f=Gt.inline=ve,xe.highlightFormatting&&(Gt.formatting="link");var un=ne(Gt);return un?un+=" ":un="",un+qt.linkInline}return Zt.match(/^[^>]+/,!0),qt.linkInline}function Oe(Zt,Gt){if(Zt.eatSpace())return null;var He=Zt.next();return He==="("||He==="["?(Gt.f=Gt.inline=Fe(He==="("?")":"]"),xe.highlightFormatting&&(Gt.formatting="link-string"),Gt.linkHref=!0,ne(Gt)):"error"}var me={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Fe(Zt){return function(Gt,He){var un=Gt.next();if(un===Zt){He.f=He.inline=ve,xe.highlightFormatting&&(He.formatting="link-string");var ln=ne(He);return He.linkHref=!1,ln}return Gt.match(me[Zt]),He.linkHref=!0,ne(He)}}function Pn(Zt,Gt){return Zt.match(/^([^\]\\]|\\.)*\]:/,!1)?(Gt.f=vn,Zt.next(),xe.highlightFormatting&&(Gt.formatting="link"),Gt.linkText=!0,ne(Gt)):pt(Zt,Gt,ve)}function vn(Zt,Gt){if(Zt.match(/^\]:/,!0)){Gt.f=Gt.inline=Mn,xe.highlightFormatting&&(Gt.formatting="link");var He=ne(Gt);return Gt.linkText=!1,He}return Zt.match(/^([^\]\\]|\\.)+/,!0),qt.linkText}function Mn(Zt,Gt){return Zt.eatSpace()?null:(Zt.match(/^[^\s]+/,!0),Zt.peek()===void 0?Gt.linkTitle=!0:Zt.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Gt.f=Gt.inline=ve,qt.linkHref+" url")}var In={startState:function(){return{f:Wt,prevLine:{stream:null},thisLine:{stream:null},block:Wt,htmlState:null,indentation:0,inline:ve,text:$t,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(Zt){return{f:Zt.f,prevLine:Zt.prevLine,thisLine:Zt.thisLine,block:Zt.block,htmlState:Zt.htmlState&&kt.copyState(Te,Zt.htmlState),indentation:Zt.indentation,localMode:Zt.localMode,localState:Zt.localMode?kt.copyState(Zt.localMode,Zt.localState):null,inline:Zt.inline,text:Zt.text,formatting:!1,linkText:Zt.linkText,linkTitle:Zt.linkTitle,linkHref:Zt.linkHref,code:Zt.code,em:Zt.em,strong:Zt.strong,strikethrough:Zt.strikethrough,emoji:Zt.emoji,header:Zt.header,setext:Zt.setext,hr:Zt.hr,taskList:Zt.taskList,list:Zt.list,listStack:Zt.listStack.slice(0),quote:Zt.quote,indentedCode:Zt.indentedCode,trailingSpace:Zt.trailingSpace,trailingSpaceNewLine:Zt.trailingSpaceNewLine,md_inside:Zt.md_inside,fencedEndRE:Zt.fencedEndRE}},token:function(Zt,Gt){if(Gt.formatting=!1,Zt!=Gt.thisLine.stream){if(Gt.header=0,Gt.hr=!1,Zt.match(/^\s*$/,!0))return Ft(Gt),null;if(Gt.prevLine=Gt.thisLine,Gt.thisLine={stream:Zt},Gt.taskList=!1,Gt.trailingSpace=0,Gt.trailingSpaceNewLine=!1,!Gt.localState&&(Gt.f=Gt.block,Gt.f!=Kt)){var He=Zt.match(/^\s*/,!0)[0].replace(/\t/g,lt).length;if(Gt.indentation=He,Gt.indentationDiff=null,He>0)return null}}return Gt.f(Zt,Gt)},innerMode:function(Zt){return Zt.block==Kt?{state:Zt.htmlState,mode:Te}:Zt.localState?{state:Zt.localState,mode:Zt.localMode}:{state:Zt,mode:In}},indent:function(Zt,Gt,He){return Zt.block==Kt&&Te.indent?Te.indent(Zt.htmlState,Gt,He):Zt.localState&&Zt.localMode.indent?Zt.localMode.indent(Zt.localState,Gt,He):kt.Pass},blankLine:Ft,getType:ne,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return In},"xml"),kt.defineMIME("text/markdown","markdown"),kt.defineMIME("text/x-markdown","markdown")})},98101:function(Ye,pn,Yt){(function(kt){kt(Yt(89780))})(function(kt){"use strict";kt.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var ue=0;ue-1&&Te.substring(qt+1,Te.length);if(Ce)return kt.findModeByExtension(Ce)},kt.findModeByName=function(Te){Te=Te.toLowerCase();for(var ge=0;ge0?Nt.cmdState[Nt.cmdState.length-1]:null}function Ae(Nt){var et=Nt.cmdState.pop();et&&et.closeBracket()}function qt(Nt){for(var et=Nt.cmdState,nt=et.length-1;nt>=0;nt--){var gt=et[nt];if(gt.name!="DEFAULT")return gt}return{styleIdentifier:function(){return null}}}function Ce(Nt,et,nt){return function(){this.name=Nt,this.bracketNo=0,this.style=et,this.styles=nt,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var fe={};fe.importmodule=Ce("importmodule","tag",["string","builtin"]),fe.documentclass=Ce("documentclass","tag",["","atom"]),fe.usepackage=Ce("usepackage","tag",["atom"]),fe.begin=Ce("begin","tag",["atom"]),fe.end=Ce("end","tag",["atom"]),fe.label=Ce("label","tag",["atom"]),fe.ref=Ce("ref","tag",["atom"]),fe.eqref=Ce("eqref","tag",["atom"]),fe.cite=Ce("cite","tag",["atom"]),fe.bibitem=Ce("bibitem","tag",["atom"]),fe.Bibitem=Ce("Bibitem","tag",["atom"]),fe.RBibitem=Ce("RBibitem","tag",["atom"]),fe.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function pe(Nt,et){Nt.f=et}function le(Nt,et){var nt;if(Nt.match(/^\\[a-zA-Z@]+/)){var gt=Nt.current().slice(1);return nt=fe.hasOwnProperty(gt)?fe[gt]:fe.DEFAULT,nt=new nt,Te(et,nt),pe(et,je),nt.style}if(Nt.match(/^\\[$&%#{}_]/)||Nt.match(/^\\[,;!\/\\]/))return"tag";if(Nt.match("\\["))return pe(et,function(pt,vt){return Be(pt,vt,"\\]")}),"keyword";if(Nt.match("\\("))return pe(et,function(pt,vt){return Be(pt,vt,"\\)")}),"keyword";if(Nt.match("$$"))return pe(et,function(pt,vt){return Be(pt,vt,"$$")}),"keyword";if(Nt.match("$"))return pe(et,function(pt,vt){return Be(pt,vt,"$")}),"keyword";var lt=Nt.next();if(lt=="%")return Nt.skipToEnd(),"comment";if(lt=="}"||lt=="]"){if(nt=ge(et),nt)nt.closeBracket(lt),pe(et,je);else return"error";return"bracket"}else return lt=="{"||lt=="["?(nt=fe.DEFAULT,nt=new nt,Te(et,nt),"bracket"):/\d/.test(lt)?(Nt.eatWhile(/[\w.%]/),"atom"):(Nt.eatWhile(/[\w\-_]/),nt=qt(et),nt.name=="begin"&&(nt.argument=Nt.current()),nt.styleIdentifier())}function Be(Nt,et,nt){if(Nt.eatSpace())return null;if(nt&&Nt.match(nt))return pe(et,le),"keyword";if(Nt.match(/^\\[a-zA-Z@]+/))return"tag";if(Nt.match(/^[a-zA-Z]+/))return"variable-2";if(Nt.match(/^\\[$&%#{}_]/)||Nt.match(/^\\[,;!\/]/)||Nt.match(/^[\^_&]/))return"tag";if(Nt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Nt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var gt=Nt.next();return gt=="{"||gt=="}"||gt=="["||gt=="]"||gt=="("||gt==")"?"bracket":gt=="%"?(Nt.skipToEnd(),"comment"):"error"}function je(Nt,et){var nt=Nt.peek(),gt;return nt=="{"||nt=="["?(gt=ge(et),gt.openBracket(nt),Nt.eat(nt),pe(et,le),"bracket"):/[ \t\r]/.test(nt)?(Nt.eat(nt),null):(pe(et,le),Ae(et),le(Nt,et))}return{startState:function(){var Nt=xe.inMathMode?function(et,nt){return Be(et,nt)}:le;return{cmdState:[],f:Nt}},copyState:function(Nt){return{cmdState:Nt.cmdState.slice(),f:Nt.f}},token:function(Nt,et){return et.f(Nt,et)},blankLine:function(Nt){Nt.f=le,Nt.cmdState.length=0},lineComment:"%"}}),kt.defineMIME("text/x-stex","stex"),kt.defineMIME("text/x-latex","stex")})},15525:function(Ye,pn,Yt){(function(kt){kt(Yt(89780))})(function(kt){"use strict";var ue={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},xe={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};kt.defineMode("xml",function(Te,ge){var Ae=Te.indentUnit,qt={},Ce=ge.htmlMode?ue:xe;for(var fe in Ce)qt[fe]=Ce[fe];for(var fe in ge)qt[fe]=ge[fe];var pe,le;function Be(re,Oe){function me(vn){return Oe.tokenize=vn,vn(re,Oe)}var Fe=re.next();if(Fe=="<")return re.eat("!")?re.eat("[")?re.match("CDATA[")?me(et("atom","]]>")):null:re.match("--")?me(et("comment","-->")):re.match("DOCTYPE",!0,!0)?(re.eatWhile(/[\w\._\-]/),me(nt(1))):null:re.eat("?")?(re.eatWhile(/[\w\._\-]/),Oe.tokenize=et("meta","?>"),"meta"):(pe=re.eat("/")?"closeTag":"openTag",Oe.tokenize=je,"tag bracket");if(Fe=="&"){var Pn;return re.eat("#")?re.eat("x")?Pn=re.eatWhile(/[a-fA-F\d]/)&&re.eat(";"):Pn=re.eatWhile(/[\d]/)&&re.eat(";"):Pn=re.eatWhile(/[\w\.\-:]/)&&re.eat(";"),Pn?"atom":"error"}else return re.eatWhile(/[^&<]/),null}Be.isInText=!0;function je(re,Oe){var me=re.next();if(me==">"||me=="/"&&re.eat(">"))return Oe.tokenize=Be,pe=me==">"?"endTag":"selfcloseTag","tag bracket";if(me=="=")return pe="equals",null;if(me=="<"){Oe.tokenize=Be,Oe.state=vt,Oe.tagName=Oe.tagStart=null;var Fe=Oe.tokenize(re,Oe);return Fe?Fe+" tag error":"tag error"}else return/[\'\"]/.test(me)?(Oe.tokenize=Nt(me),Oe.stringStartCol=re.column(),Oe.tokenize(re,Oe)):(re.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Nt(re){var Oe=function(me,Fe){for(;!me.eol();)if(me.next()==re){Fe.tokenize=je;break}return"string"};return Oe.isInAttribute=!0,Oe}function et(re,Oe){return function(me,Fe){for(;!me.eol();){if(me.match(Oe)){Fe.tokenize=Be;break}me.next()}return re}}function nt(re){return function(Oe,me){for(var Fe;(Fe=Oe.next())!=null;){if(Fe=="<")return me.tokenize=nt(re+1),me.tokenize(Oe,me);if(Fe==">")if(re==1){me.tokenize=Be;break}else return me.tokenize=nt(re-1),me.tokenize(Oe,me)}return"meta"}}function gt(re,Oe,me){this.prev=re.context,this.tagName=Oe,this.indent=re.indented,this.startOfLine=me,(qt.doNotIndent.hasOwnProperty(Oe)||re.context&&re.context.noIndent)&&(this.noIndent=!0)}function lt(re){re.context&&(re.context=re.context.prev)}function pt(re,Oe){for(var me;;){if(!re.context||(me=re.context.tagName,!qt.contextGrabbers.hasOwnProperty(me)||!qt.contextGrabbers[me].hasOwnProperty(Oe)))return;lt(re)}}function vt(re,Oe,me){return re=="openTag"?(me.tagStart=Oe.column(),Lt):re=="closeTag"?Ft:vt}function Lt(re,Oe,me){return re=="word"?(me.tagName=Oe.current(),le="tag",_t):qt.allowMissingTagName&&re=="endTag"?(le="tag bracket",_t(re,Oe,me)):(le="error",Lt)}function Ft(re,Oe,me){if(re=="word"){var Fe=Oe.current();return me.context&&me.context.tagName!=Fe&&qt.implicitlyClosed.hasOwnProperty(me.context.tagName)&<(me),me.context&&me.context.tagName==Fe||qt.matchClosing===!1?(le="tag",Wt):(le="tag error",Kt)}else return qt.allowMissingTagName&&re=="endTag"?(le="tag bracket",Wt(re,Oe,me)):(le="error",Kt)}function Wt(re,Oe,me){return re!="endTag"?(le="error",Wt):(lt(me),vt)}function Kt(re,Oe,me){return le="error",Wt(re,Oe,me)}function _t(re,Oe,me){if(re=="word")return le="attribute",ne;if(re=="endTag"||re=="selfcloseTag"){var Fe=me.tagName,Pn=me.tagStart;return me.tagName=me.tagStart=null,re=="selfcloseTag"||qt.autoSelfClosers.hasOwnProperty(Fe)?pt(me,Fe):(pt(me,Fe),me.context=new gt(me,Fe,Pn==me.indented)),vt}return le="error",_t}function ne(re,Oe,me){return re=="equals"?$t:(qt.allowMissing||(le="error"),_t(re,Oe,me))}function $t(re,Oe,me){return re=="string"?ve:re=="word"&&qt.allowUnquoted?(le="string",_t):(le="error",_t(re,Oe,me))}function ve(re,Oe,me){return re=="string"?ve:_t(re,Oe,me)}return{startState:function(re){var Oe={tokenize:Be,state:vt,indented:re||0,tagName:null,tagStart:null,context:null};return re!=null&&(Oe.baseIndent=re),Oe},token:function(re,Oe){if(!Oe.tagName&&re.sol()&&(Oe.indented=re.indentation()),re.eatSpace())return null;pe=null;var me=Oe.tokenize(re,Oe);return(me||pe)&&me!="comment"&&(le=null,Oe.state=Oe.state(pe||me,re,Oe),le&&(me=le=="error"?me+" error":le)),me},indent:function(re,Oe,me){var Fe=re.context;if(re.tokenize.isInAttribute)return re.tagStart==re.indented?re.stringStartCol+1:re.indented+Ae;if(Fe&&Fe.noIndent)return kt.Pass;if(re.tokenize!=je&&re.tokenize!=Be)return me?me.match(/^(\s*)/)[0].length:0;if(re.tagName)return qt.multilineTagIndentPastTag!==!1?re.tagStart+re.tagName.length+2:re.tagStart+Ae*(qt.multilineTagIndentFactor||1);if(qt.alignCDATA&&/$/,blockCommentStart:"",configuration:qt.htmlMode?"html":"xml",helperType:qt.htmlMode?"html":"xml",skipAttribute:function(re){re.state==$t&&(re.state=_t)},xmlCurrentTag:function(re){return re.tagName?{name:re.tagName,close:re.type=="closeTag"}:null},xmlCurrentContext:function(re){for(var Oe=[],me=re.context;me;me=me.prev)me.tagName&&Oe.push(me.tagName);return Oe.reverse()}}}),kt.defineMIME("text/xml","xml"),kt.defineMIME("application/xml","xml"),kt.mimeModes.hasOwnProperty("text/html")||kt.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(Ye,pn,Yt){"use strict";Yt.d(pn,{$u:function(){return fe},BD:function(){return dn},E9:function(){return Ce},FF:function(){return xo},FJ:function(){return vt},Hn:function(){return pt},KX:function(){return Ft},NB:function(){return Ot},S0:function(){return te},UL:function(){return pe},Vk:function(){return lt},Vm:function(){return xt},YI:function(){return Ve},ZA:function(){return xe},Zt:function(){return le},al:function(){return wi},bn:function(){return Qn},bx:function(){return Sn},g2:function(){return fn},h1:function(){return $t},hD:function(){return si},l4:function(){return Ae},rU:function(){return Ct},s_:function(){return Vn},uz:function(){return xn},z6:function(){return Be}}),Ye=Yt.hmd(Ye),function(){var wt;function As(a){var y=0;return function(){return yx&&(x=Math.max(0,b+x)),(E==null||E>b)&&(E=b),E=Number(E),0>E&&(E=Math.max(0,b+E)),x=Number(x||0);x=a.length?a.push(x):a.splice(y,0,x):ee("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function Zi(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):ee("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function $n(){var a=ji.pop();return a===void 0?[]:a}function ei(a){a.length=0,ji.push(a)}function Wn(a){if(typeof a=="function"){if(a.className)return a.className;if(a.name)return a.name;var y=a.toString();if(y=y.substring(9,y.indexOf("(")).trim(),y!=="")return a._className=y}else if(we(a)&&a.constructor)return Wn(a.constructor);return typeof a}function lo(a){var y=a;return we(a)&&(a.text?y=a.text:a.name?y=a.name:a.key!==void 0?y=a.key:a.id!==void 0?y=a.id:a.constructor===Object&&(a.Text?y=a.Text:a.Name?y=a.Name:a.Key!==void 0?y=a.Key:a.Id!==void 0?y=a.Id:a.ID!==void 0&&(y=a.ID))),y===void 0?"undefined":y===null?"null":y.toString()}function ur(a,y){if(a.hasOwnProperty(y))return!0;for(a=Object.getPrototypeOf(a);a&&a!==Function;){if(a.hasOwnProperty(y))return!0;var x=a.CA;if(x&&x[y])return!0;a=Object.getPrototypeOf(a)}return!1}function Fo(a,y,x){Object.defineProperty(Vi.prototype,a,{get:y,set:x})}function Re(a){for(var y=[],x=0;256>x;x++)y["0123456789abcdef".charAt(x>>4)+"0123456789abcdef".charAt(x&15)]=String.fromCharCode(x);a.length%2&&(a="0"+a),x=[];for(var E=0,b=0;bx;x++)y[x]=x;for(x=E=0;256>x;x++)E=(E+y[x]+119)%256,b=y[x],y[x]=y[E],y[E]=b;E=x=0;for(var z="",tt=0;tt-1||z.indexOf("\xA9 1998-2021 Northwoods Software")>-1||z.indexOf("Not for distribution or production use")>-1||z.indexOf("gojs.net")>-1?"":z}var vo=Ze.navigator!==void 0&&0this.key)return!1;a=a.s;var y=a.length,x=++this.Za,E=this.qf;if(E!==null)for(;xthis.key)return!1;var y=--this.Za;return 0<=y?(this.key=y,this.value=a.s[y],!0):(this.de(),!1)},io.prototype.Ad=function(){return this.next()},io.prototype.first=function(){var a=this.Bb;this.qa=a.Ja;var y=a.s;return this.Za=a=y.length-1,0<=a?(y=y[a],this.key=a,this.value=y):null},io.prototype.any=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(a(y[x]))return!0;return!1},io.prototype.all=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(!a(y[x]))return!1;return!0},io.prototype.each=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)a(y[x]);return this},io.prototype.map=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--)x.push(a(y[E]));return a=new ze,a.s=x,a.xb(),a.iterator},io.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--){var b=y[E];a(b)&&x.push(b)}return a=new ze,a.s=x,a.xb(),a.iterator},io.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},io.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},he.Object.defineProperties(io.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),io.prototype.first=io.prototype.first,io.prototype.hasNext=io.prototype.Ad,io.prototype.next=io.prototype.next,io.prototype.reset=io.prototype.reset,io.className="ListIteratorBackwards";function ze(a){Yi(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&ee("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}wt=ze.prototype,wt.xb=function(){var a=this.Ja;a++,999999999a||a>=y.length)&&_n(a,"0 <= i < length",ze,"elt:i"),y[a]},wt.get=function(a){return this.M(a)},wt.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&_n(a,"0 <= i < length",ze,"setElt:i"),this._isFrozen&&yn(this,a),x[a]=y},wt.set=function(a,y){this.cd(a,y)},wt.first=function(){var a=this.s;return a.length===0?null:a[0]},wt.jc=function(){var a=this.s,y=a.length;return 0a&&_n(a,">= 0",ze,"insertAt:i"),this._isFrozen&&yn(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},wt.remove=function(a){if(a===null)return!1;this._isFrozen&&yn(this,a);var y=this.s;return a=y.indexOf(a),a===-1?!1:(a===y.length-1?y.pop():y.splice(a,1),this.xb(),!0)},wt.delete=function(a){return this.remove(a)},wt.mb=function(a){var y=this.s;(0>a||a>=y.length)&&_n(a,"0 <= i < length",ze,"removeAt:i"),this._isFrozen&&yn(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},wt.removeRange=function(a,y){var x=this.s,E=x.length;if(0>a)a=0;else if(a>=E)return this;if(0>y)return this;if(y>=E&&(y=E-1),a>y)return this;this._isFrozen&&yn(this);for(var b=a,z=y+1;z=z)return this;if((0>y||y>=b-1)&&_n(y,"0 <= from < length",ze,"sortRange:from"),z===2)return x=E[y],b=E[y+1],0=b)E.sort(a);else for(y=E.slice(0,x),y.sort(a),a=0;a=b)for(x=E.slice(y),x.sort(a),a=y;a=this.s.length)return no;var a=this.Sa;return a!==null?(a.reset(),a):new Gi(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return no;var a=this.Hg;return a!==null?(a.reset(),a):new io(this)}}}),ze.prototype.reverse=ze.prototype.reverse,ze.prototype.sortRange=ze.prototype.zi,ze.prototype.sort=ze.prototype.sort,ze.prototype.toSet=ze.prototype.Iv,ze.prototype.toArray=ze.prototype.Fa,ze.prototype.removeRange=ze.prototype.removeRange,ze.prototype.removeAt=ze.prototype.mb,ze.prototype.delete=ze.prototype.delete,ze.prototype.remove=ze.prototype.remove,ze.prototype.insertAt=ze.prototype.Gb,ze.prototype.pop=ze.prototype.pop,ze.prototype.last=ze.prototype.jc,ze.prototype.first=ze.prototype.first,ze.prototype.set=ze.prototype.set,ze.prototype.setElt=ze.prototype.cd,ze.prototype.get=ze.prototype.get,ze.prototype.elt=ze.prototype.M,ze.prototype.indexOf=ze.prototype.indexOf,ze.prototype.has=ze.prototype.has,ze.prototype.contains=ze.prototype.contains,ze.prototype.clear=ze.prototype.clear,ze.prototype.addAll=ze.prototype.addAll,ze.prototype.push=ze.prototype.push,ze.prototype.add=ze.prototype.add,ze.prototype.thaw=ze.prototype.ka,ze.prototype.freeze=ze.prototype.freeze,ze.className="List";function Wi(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Wi.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},Wi.prototype.next=function(){var a=this.eg;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},Wi.prototype.Ad=function(){return this.next()},Wi.prototype.first=function(){var a=this.eg;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},Wi.prototype.any=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Wi.prototype.all=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Wi.prototype.each=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},Wi.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new ze;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Wi.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new ze;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},Wi.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},Wi.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},he.Object.defineProperties(Wi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),Wi.prototype.first=Wi.prototype.first,Wi.prototype.hasNext=Wi.prototype.Ad,Wi.prototype.next=Wi.prototype.next,Wi.prototype.reset=Wi.prototype.reset,Wi.className="SetIterator";function Ie(a){Yi(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&ee("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}wt=Ie.prototype,wt.xb=function(){var a=this.Ja;a++,999999999=this.Sb)return no;var a=this.Sa;return a!==null?(a.reset(),a):new Wi(this)}}}),Ie.prototype.toList=Ie.prototype.Hv,Ie.prototype.toArray=Ie.prototype.Fa,Ie.prototype.clear=Ie.prototype.clear,Ie.prototype.retainAll=Ie.prototype.pA,Ie.prototype.removeAll=Ie.prototype.hp,Ie.prototype.delete=Ie.prototype.delete,Ie.prototype.remove=Ie.prototype.remove,Ie.prototype.first=Ie.prototype.first,Ie.prototype.containsAny=Ie.prototype.Ty,Ie.prototype.containsAll=Ie.prototype.Sy,Ie.prototype.has=Ie.prototype.has,Ie.prototype.contains=Ie.prototype.contains,Ie.prototype.addAll=Ie.prototype.addAll,Ie.prototype.add=Ie.prototype.add,Ie.prototype.thaw=Ie.prototype.ka,Ie.prototype.freeze=Ie.prototype.freeze;var _r=1;Ie.className="Set",Ie.uniqueHash=Yi,Ie.hashIdUnique=zr,Ie.hashId=Ko;function Xo(a){this.ma=a,this.qa=a.Ja,this.sa=null}Xo.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Xo.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=this.key=a=y.key,!0):(this.de(),!1)},Xo.prototype.Ad=function(){return this.next()},Xo.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.value=this.key=a=a.key):null},Xo.prototype.any=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Xo.prototype.all=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Xo.prototype.each=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;)a(y.key),y=y.va;return this},Xo.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new ze;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},Xo.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new ze;for(y=y.ea;y!==null;){var E=y.key;a(E)&&x.add(E),y=y.va}return x.iterator},Xo.prototype.de=function(){this.value=this.key=null,this.qa=-1},Xo.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},he.Object.defineProperties(Xo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Xo.prototype.first=Xo.prototype.first,Xo.prototype.hasNext=Xo.prototype.Ad,Xo.prototype.next=Xo.prototype.next,Xo.prototype.reset=Xo.prototype.reset,Xo.className="MapKeySetIterator";function Bi(a){Ie.call(this),Yi(this),this._isFrozen=!0,this.ma=a}ye(Bi,Ie),wt=Bi.prototype,wt.freeze=function(){return this},wt.ka=function(){return this},wt.toString=function(){return"MapKeySet("+this.ma.toString()+")"},wt.add=function(){ee("This Set is read-only: "+this.toString())},wt.contains=function(a){return this.ma.contains(a)},wt.has=function(a){return this.contains(a)},wt.remove=function(){ee("This Set is read-only: "+this.toString())},wt.delete=function(a){return this.remove(a)},wt.clear=function(){ee("This Set is read-only: "+this.toString())},wt.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Bi.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Bi.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Bi.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Bi.prototype.map=function(a){for(var y=new Ie,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},Bi.prototype.filter=function(a){for(var y=new Ie,x=this.ma.ea;x!==null;){var E=x.key;a(E)&&y.add(E),x=x.va}return y},Bi.prototype.copy=function(){return new Bi(this.ma)},Bi.prototype.Iv=function(){var a=new Ie,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Bi.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),x=0,E;for(E in a)y[x]=a[E].key,x++;return y},Bi.prototype.Hv=function(){var a=new ze,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},he.Object.defineProperties(Bi.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?no:new Xo(this.ma)}}}),Bi.prototype.toList=Bi.prototype.Hv,Bi.prototype.toArray=Bi.prototype.Fa,Bi.prototype.toSet=Bi.prototype.Iv,Bi.prototype.first=Bi.prototype.first,Bi.prototype.clear=Bi.prototype.clear,Bi.prototype.delete=Bi.prototype.delete,Bi.prototype.remove=Bi.prototype.remove,Bi.prototype.has=Bi.prototype.has,Bi.prototype.contains=Bi.prototype.contains,Bi.prototype.add=Bi.prototype.add,Bi.prototype.thaw=Bi.prototype.ka,Bi.prototype.freeze=Bi.prototype.freeze,Bi.className="MapKeySet";function Po(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}Po.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},Po.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},Po.prototype.Ad=function(){return this.next()},Po.prototype.first=function(){var a=this.ma;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},Po.prototype.any=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Po.prototype.all=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Po.prototype.each=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},Po.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new ze;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Po.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new ze;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},Po.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},Po.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},he.Object.defineProperties(Po.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Po.prototype.first=Po.prototype.first,Po.prototype.hasNext=Po.prototype.Ad,Po.prototype.next=Po.prototype.next,Po.prototype.reset=Po.prototype.reset,Po.className="MapValueSetIterator";function Pa(a,y){this.key=a,this.value=y,this.ll=this.va=null}Pa.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Pa.className="KeyValuePair";function hr(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}hr.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},hr.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.key=y.key,this.value=y.value,!0):(this.de(),!1)},hr.prototype.Ad=function(){return this.next()},hr.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.key=a.key,this.value=a.value,a):null},hr.prototype.any=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},hr.prototype.all=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},hr.prototype.each=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y),y=y.va;return this},hr.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new ze;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},hr.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new ze;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},hr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},hr.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},he.Object.defineProperties(hr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),hr.prototype.first=hr.prototype.first,hr.prototype.hasNext=hr.prototype.Ad,hr.prototype.next=hr.prototype.next,hr.prototype.reset=hr.prototype.reset,hr.className="MapIterator";function An(a){Yi(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.jf=this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&ee("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}wt=An.prototype,wt.xb=function(){var a=this.Ja;a++,999999999=this.count)return no;var a=this.Sa;return a!==null?(a.reset(),a):new hr(this)}},iteratorKeys:{get:function(){return 0>=this.count?no:new Xo(this)}},iteratorValues:{get:function(){if(0>=this.count)return no;var a=this.jf;return a!==null?(a.reset(),a):new Po(this)}}}),An.prototype.toKeySet=An.prototype.Lf,An.prototype.toArray=An.prototype.Fa,An.prototype.clear=An.prototype.clear,An.prototype.delete=An.prototype.delete,An.prototype.remove=An.prototype.remove,An.prototype.get=An.prototype.get,An.prototype.getValue=An.prototype.I,An.prototype.has=An.prototype.has,An.prototype.contains=An.prototype.contains,An.prototype.first=An.prototype.first,An.prototype.addAll=An.prototype.addAll,An.prototype.set=An.prototype.set,An.prototype.add=An.prototype.add,An.prototype.thaw=An.prototype.ka,An.prototype.freeze=An.prototype.freeze,An.className="Map";function jt(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):ee("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var Dr,$r,Nl,wa,Tl;jt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},jt.prototype.h=function(a,y){return this.x=a,this.y=y,this},jt.prototype.sg=function(a,y){return this.x=a,this.y=y,this},jt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},jt.prototype.copy=function(){var a=new jt;return a.x=this.x,a.y=this.y,a},wt=jt.prototype,wt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},wt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},wt.freeze=function(){return this._isFrozen=!0,this},wt.ka=function(){return Object.isFrozen(this)&&ee("cannot thaw constant: "+this),this._isFrozen=!1,this};function Pu(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new jt(x,b)}return new jt}function td(a){return a.x.toString()+" "+a.y.toString()}wt.toString=function(){return"Point("+this.x+","+this.y+")"},wt.D=function(a){return a instanceof jt?this.x===a.x&&this.y===a.y:!1},wt.hi=function(a,y){return this.x===a&&this.y===y},wt.Xa=function(a){return Jt.B(this.x,a.x)&&Jt.B(this.y,a.y)},wt.add=function(a){return this.x+=a.x,this.y+=a.y,this},wt.re=function(a){return this.x-=a.x,this.y-=a.y,this},wt.offset=function(a,y){return this.x+=a,this.y+=y,this},jt.prototype.rotate=function(a){if(a===0)return this;var y=this.x,x=this.y;if(y===0&&x===0)return this;if(360<=a?a-=360:0>a&&(a+=360),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));return this.x=a*y-E*x,this.y=E*y+a*x,this},wt=jt.prototype,wt.scale=function(a,y){return this.x*=a,this.y*=y,this},wt.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},wt.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},wt.normalize=function(){var a=this.x,y=this.y,x=Math.sqrt(a*a+y*y);return 0y?270:0;if(y===0)return 0a?x=0>y?x+180:180-x:0>y&&(x=360-x),x}wt.Ry=function(a,y){return Jt.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},wt.fA=function(a,y,x,E){return Jt.qh(a,y,x,E,this.x,this.y,this),this},wt.gA=function(a,y){return Jt.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},wt.uA=function(a,y,x,E){return Jt.No(this.x,this.y,a,y,x,E,this),this},wt.vA=function(a,y){return Jt.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},wt.xi=function(a,y){return this.x=a.x+y.x*a.width+y.offsetX,this.y=a.y+y.y*a.height+y.offsetY,this},wt.yi=function(a,y,x,E,b){return this.x=a+b.x*x+b.offsetX,this.y=y+b.y*E+b.offsetY,this},wt.transform=function(a){return a.Ga(this),this};function wo(a,y){return y.Cd(a),a}function Qo(a,y,x,E,b,z){var tt=b-x,ot=z-E,rt=tt*tt+ot*ot;x-=a,E-=y;var at=-x*tt-E*ot;return 0>=at||at>=rt?(tt=b-a,ot=z-y,Math.min(x*x+E*E,tt*tt+ot*ot)):(a=tt*E-ot*x,a*a/rt)}function sa(a,y,x,E){return a=x-a,y=E-y,a*a+y*y}function li(a,y,x,E){return a=x-a,y=E-y,a===0?0y?270:0:y===0?0a?E=0>y?E+180:180-E:0>y&&(E=360-E),E)}wt.w=function(){return isFinite(this.x)&&isFinite(this.y)},jt.alloc=function(){var a=Un.pop();return a===void 0?new jt:a},jt.allocAt=function(a,y){var x=Un.pop();return x===void 0?new jt(a,y):(x.x=a,x.y=y,x)},jt.free=function(a){Un.push(a)},jt.prototype.isReal=jt.prototype.w,jt.prototype.setSpot=jt.prototype.yi,jt.prototype.setRectSpot=jt.prototype.xi,jt.prototype.snapToGridPoint=jt.prototype.vA,jt.prototype.snapToGrid=jt.prototype.uA,jt.prototype.projectOntoLineSegmentPoint=jt.prototype.gA,jt.prototype.projectOntoLineSegment=jt.prototype.fA,jt.intersectingLineSegments=function(a,y,x,E,b,z,tt,ot){return Jt.Rl(a,y,x,E,b,z,tt,ot)},jt.prototype.compareWithLineSegmentPoint=jt.prototype.Ry,jt.compareWithLineSegment=function(a,y,x,E,b,z){return Jt.Fl(a,y,x,E,b,z)},jt.prototype.direction=jt.prototype.direction,jt.prototype.directionPoint=jt.prototype.ab,jt.prototype.normalize=jt.prototype.normalize,jt.prototype.distanceSquared=jt.prototype.zd,jt.prototype.distanceSquaredPoint=jt.prototype.Bf,jt.prototype.scale=jt.prototype.scale,jt.prototype.rotate=jt.prototype.rotate,jt.prototype.offset=jt.prototype.offset,jt.prototype.subtract=jt.prototype.re,jt.prototype.add=jt.prototype.add,jt.prototype.equalsApprox=jt.prototype.Xa,jt.prototype.equalTo=jt.prototype.hi,jt.prototype.equals=jt.prototype.D,jt.prototype.set=jt.prototype.set,jt.prototype.setTo=jt.prototype.sg;var Un=[];jt.className="Point",jt.parse=Pu,jt.stringify=td,jt.distanceLineSegmentSquared=Qo,jt.distanceSquared=sa,jt.direction=li,jt.Origin=Dr=new jt(0,0).ja(),jt.InfiniteTopLeft=$r=new jt(-1/0,-1/0).ja(),jt.InfiniteBottomRight=Nl=new jt(1/0,1/0).ja(),jt.SixPoint=wa=new jt(6,6).ja(),jt.NoPoint=Tl=new jt(NaN,NaN).ja(),jt.parse=Pu,jt.stringify=td,jt.distanceLineSegmentSquared=Qo,jt.distanceSquared=sa,jt.direction=li;function Xe(a,y){a===void 0?this.height=this.width=0:typeof a=="number"&&(0<=a||isNaN(a))&&typeof y=="number"&&(0<=y||isNaN(y))?(this.width=a,this.height=y):ee("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var Jn,bi,Bo,Zo,Wo,vr,qo;Xe.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},Xe.prototype.h=function(a,y){return this.width=a,this.height=y,this},Xe.prototype.sg=function(a,y){return this.width=a,this.height=y,this},Xe.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},Xe.prototype.copy=function(){var a=new Xe;return a.width=this.width,a.height=this.height,a},wt=Xe.prototype,wt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},wt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},wt.freeze=function(){return this._isFrozen=!0,this},wt.ka=function(){return Object.isFrozen(this)&&ee("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ca(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new Xe(x,b)}return new Xe}function zs(a){return a.width.toString()+" "+a.height.toString()}wt.toString=function(){return"Size("+this.width+","+this.height+")"},wt.D=function(a){return a instanceof Xe?this.width===a.width&&this.height===a.height:!1},wt.hi=function(a,y){return this.width===a&&this.height===y},wt.Xa=function(a){return Jt.B(this.width,a.width)&&Jt.B(this.height,a.height)},wt.Bc=function(a,y){return a=this.width+a,this.width=0<=a?a:0,y=this.height+y,this.height=0<=y?y:0,this},wt.w=function(){return isFinite(this.width)&&isFinite(this.height)},Xe.alloc=function(){var a=Fl.pop();return a===void 0?new Xe:a},Xe.free=function(a){Fl.push(a)},Xe.prototype.isReal=Xe.prototype.w,Xe.prototype.inflate=Xe.prototype.Bc,Xe.prototype.equalsApprox=Xe.prototype.Xa,Xe.prototype.equalTo=Xe.prototype.hi,Xe.prototype.equals=Xe.prototype.D,Xe.prototype.set=Xe.prototype.set,Xe.prototype.setTo=Xe.prototype.sg;var Fl=[];Xe.className="Size",Xe.parse=Ca,Xe.stringify=zs,Xe.ZeroSize=Jn=new Xe(0,0).ja(),Xe.OneSize=bi=new Xe(1,1).ja(),Xe.SixSize=Bo=new Xe(6,6).ja(),Xe.EightSize=Zo=new Xe(8,8).ja(),Xe.TenSize=Wo=new Xe(10,10).ja(),Xe.InfiniteSize=vr=new Xe(1/0,1/0).ja(),Xe.NoSize=qo=new Xe(NaN,NaN).ja(),Xe.parse=Ca,Xe.stringify=zs;function de(a,y,x,E){a===void 0?this.height=this.width=this.y=this.x=0:typeof a=="number"&&typeof y=="number"&&typeof x=="number"&&(0<=x||isNaN(x))&&typeof E=="number"&&(0<=E||isNaN(E))?(this.x=a,this.y=y,this.width=x,this.height=E):a instanceof jt?(x=a.x,a=a.y,y instanceof jt?(E=y.x,y=y.y,this.x=Math.min(x,E),this.y=Math.min(a,y),this.width=Math.abs(x-E),this.height=Math.abs(a-y)):y instanceof Xe?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):ee("Incorrect second argument supplied to Rect constructor "+y)):ee("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}wt=de.prototype,wt.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},wt.h=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this};function Es(a,y,x){a.width=y,a.height=x}wt.sg=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this},wt.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},wt.dd=function(a){return this.x=a.x,this.y=a.y,this},wt.tA=function(a){return this.width=a.width,this.height=a.height,this},de.prototype.copy=function(){var a=new de;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},wt=de.prototype,wt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},wt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},wt.freeze=function(){return this._isFrozen=!0,this},wt.ka=function(){return Object.isFrozen(this)&&ee("cannot thaw constant: "+this),this._isFrozen=!1,this};function wu(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;(E=a[y++])&&(b=parseFloat(E));for(var z=0;a[y]==="";)y++;(E=a[y++])&&(z=parseFloat(E));for(var tt=0;a[y]==="";)y++;return(E=a[y++])&&(tt=parseFloat(E)),new de(x,b,z,tt)}return new de}function ja(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}wt.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},wt.D=function(a){return a instanceof de?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},wt.hi=function(a,y,x,E){return this.x===a&&this.y===y&&this.width===x&&this.height===E},wt.Xa=function(a){return Jt.B(this.x,a.x)&&Jt.B(this.y,a.y)&&Jt.B(this.width,a.width)&&Jt.B(this.height,a.height)};function Cu(a,y){return Jt.$(a.x,y.x)&&Jt.$(a.y,y.y)&&Jt.$(a.width,y.width)&&Jt.$(a.height,y.height)}wt.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},wt.Re=function(a){return this.x<=a.x&&a.x+a.width<=this.x+this.width&&this.y<=a.y&&a.y+a.height<=this.y+this.height},wt.contains=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),this.x<=a&&a+x<=this.x+this.width&&this.y<=y&&y+E<=this.y+this.height},wt.offset=function(a,y){return this.x+=a,this.y+=y,this},wt.Bc=function(a,y){return _o(this,y,a,y,a)},wt.Co=function(a){return _o(this,a.top,a.right,a.bottom,a.left)},wt.Fv=function(a){return _o(this,-a.top,-a.right,-a.bottom,-a.left)},wt.Hz=function(a,y,x,E){return _o(this,a,y,x,E)};function _o(a,y,x,E,b){var z=a.width;return x+b<=-z?(a.x+=z/2,a.width=0):(a.x-=b,a.width+=x+b),x=a.height,y+E<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+E),a}wt.Ex=function(a){return _a(this,a.x,a.y,a.width,a.height)},wt.Uu=function(a,y,x,E){return _a(this,a,y,x,E)};function _a(a,y,x,E,b){var z=Math.max(a.x,y),tt=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+E),x=Math.min(a.y+a.height,x+b),a.x=z,a.y=tt,a.width=Math.max(0,y-z),a.height=Math.max(0,x-tt),a}wt.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},wt.Vu=function(a,y,x,E){var b=this.width,z=this.x;return b!==1/0&&x!==1/0&&(b+=z,x+=a,isNaN(x)||isNaN(b)||z>x||a>b)?!1:(a=this.height,x=this.y,!(a!==1/0&&E!==1/0&&(a+=x,E+=y,isNaN(E)||isNaN(a)||x>E||y>a)))};function $a(a,y){var x=a.width,E=a.x,b=y.x-10;return E>y.width+10+10+b||b>x+E?!1:(x=a.height,a=a.y,E=y.y-10,!(a>y.height+10+10+E||E>x+a))}wt.Ye=function(a){return yo(this,a.x,a.y,0,0)},wt.ed=function(a){return yo(this,a.x,a.y,a.width,a.height)},wt.Kv=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),yo(this,a,y,x,E)};function yo(a,y,x,E,b){var z=Math.min(a.x,y),tt=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+E),x=Math.max(a.y+a.height,x+b),a.x=z,a.y=tt,a.width=y-z,a.height=x-tt,a}wt.yi=function(a,y,x){return this.x=a-x.offsetX-x.x*this.width,this.y=y-x.offsetY-x.y*this.height,this};function Ar(a,y,x,E,b,z,tt,ot){return tt===void 0&&(tt=0),ot===void 0&&(ot=0),a<=b&&b+tt<=a+x&&y<=z&&z+ot<=y+E}function Mu(a,y,x,E,b,z,tt,ot){return a>tt+b||b>x+a?!1:!(y>ot+z||z>E+y)}wt.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},wt.Mz=function(){return this.width===0&&this.height===0},de.alloc=function(){var a=aa.pop();return a===void 0?new de:a},de.allocAt=function(a,y,x,E){var b=aa.pop();return b===void 0?new de(a,y,x,E):b.h(a,y,x,E)},de.free=function(a){aa.push(a)},he.Object.defineProperties(de.prototype,{left:{get:function(){return this.x},set:function(a){this.x=a}},top:{get:function(){return this.y},set:function(a){this.y=a}},right:{get:function(){return this.x+this.width},set:function(a){this.x+=a-(this.x+this.width)}},bottom:{get:function(){return this.y+this.height},set:function(a){this.y+=a-(this.y+this.height)}},position:{get:function(){return new jt(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new Xe(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new jt(this.x+this.width/2,this.y+this.height/2)},set:function(a){this.x=a.x-this.width/2,this.y=a.y-this.height/2}},centerX:{get:function(){return this.x+this.width/2},set:function(a){this.x=a-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(a){this.y=a-this.height/2}}}),de.prototype.isEmpty=de.prototype.Mz,de.prototype.isReal=de.prototype.w,de.intersectsLineSegment=function(a,y,x,E,b,z,tt,ot){return Jt.Fx(a,y,x,E,b,z,tt,ot)},de.prototype.setSpot=de.prototype.yi,de.prototype.union=de.prototype.Kv,de.prototype.unionRect=de.prototype.ed,de.prototype.unionPoint=de.prototype.Ye,de.prototype.intersects=de.prototype.Vu,de.prototype.intersectsRect=de.prototype.Yc,de.prototype.intersect=de.prototype.Uu,de.prototype.intersectRect=de.prototype.Ex,de.prototype.grow=de.prototype.Hz,de.prototype.subtractMargin=de.prototype.Fv,de.prototype.addMargin=de.prototype.Co,de.prototype.inflate=de.prototype.Bc,de.prototype.offset=de.prototype.offset,de.prototype.contains=de.prototype.contains,de.prototype.containsRect=de.prototype.Re,de.prototype.containsPoint=de.prototype.ca,de.prototype.equalsApprox=de.prototype.Xa,de.prototype.equalTo=de.prototype.hi,de.prototype.equals=de.prototype.D,de.prototype.setSize=de.prototype.tA,de.prototype.setPoint=de.prototype.dd,de.prototype.set=de.prototype.set,de.prototype.setTo=de.prototype.sg;var ts=null,hh=null,aa=[];de.className="Rect",de.parse=wu,de.stringify=ja,de.contains=Ar,de.intersects=Mu,de.ZeroRect=ts=new de(0,0,0,0).ja(),de.NoRect=hh=new de(NaN,NaN,NaN,NaN).ja(),de.parse=wu,de.stringify=ja,de.contains=Ar,de.intersects=Mu;function jn(a,y,x,E){a===void 0?this.left=this.bottom=this.right=this.top=0:y===void 0?this.left=this.bottom=this.right=this.top=a:x===void 0?(this.top=a,this.right=y,this.bottom=a,this.left=y):E!==void 0?(this.top=a,this.right=y,this.bottom=x,this.left=E):ee("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}jn.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},jn.prototype.sg=function(a,y,x,E){return this.top=a,this.right=y,this.bottom=x,this.left=E,this},jn.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},jn.prototype.copy=function(){var a=new jn;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},wt=jn.prototype,wt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},wt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},wt.freeze=function(){return this._isFrozen=!0,this},wt.ka=function(){return Object.isFrozen(this)&&ee("cannot thaw constant: "+this),this._isFrozen=!1,this};function Dg(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=NaN;a[y]==="";)y++;var E=a[y++];if(E&&(x=parseFloat(E)),isNaN(x))return new jn;for(var b=NaN;a[y]==="";)y++;if((E=a[y++])&&(b=parseFloat(E)),isNaN(b))return new jn(x);for(var z=NaN;a[y]==="";)y++;if((E=a[y++])&&(z=parseFloat(E)),isNaN(z))return new jn(x,b);for(var tt=NaN;a[y]==="";)y++;return(E=a[y++])&&(tt=parseFloat(E)),isNaN(tt)?new jn(x,b):new jn(x,b,z,tt)}return new jn}function nd(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}wt.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},wt.D=function(a){return a instanceof jn?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},wt.hi=function(a,y,x,E){return this.top===a&&this.right===y&&this.bottom===x&&this.left===E},wt.Xa=function(a){return Jt.B(this.top,a.top)&&Jt.B(this.right,a.right)&&Jt.B(this.bottom,a.bottom)&&Jt.B(this.left,a.left)},wt.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},jn.alloc=function(){var a=Hd.pop();return a===void 0?new jn:a},jn.free=function(a){Hd.push(a)},jn.prototype.isReal=jn.prototype.w,jn.prototype.equalsApprox=jn.prototype.Xa,jn.prototype.equalTo=jn.prototype.hi,jn.prototype.equals=jn.prototype.D,jn.prototype.set=jn.prototype.set,jn.prototype.setTo=jn.prototype.sg;var za=null,Gd=null,Hd=[];jn.className="Margin",jn.parse=Dg,jn.stringify=nd,jn.ZeroMargin=za=new jn(0,0,0,0).ja(),jn.TwoMargin=Gd=new jn(2,2,2,2).ja(),jn.parse=Dg,jn.stringify=nd;function cn(a,y,x,E){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),E===void 0&&(E=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=E),this._isFrozen=!1}var $o,yr,Js,_l,Bl,gi,dh,tl,Rs,es,fl,pl,Ns,Ma,Ge,ii,xi,Ti,_i,Ai,Oo,bo,ns,Mr,Ts,rr,id,gh,ml,el,Rr,Ss,Er,Lr,nl,$l;cn.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},cn.prototype.sg=function(a,y,x,E){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=E,this},cn.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},cn.prototype.copy=function(){var a=new cn;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},wt=cn.prototype,wt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},wt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},wt.freeze=function(){return this._isFrozen=!0,this},wt.ka=function(){return Object.isFrozen(this)&&ee("cannot thaw constant: "+this),this._isFrozen=!1,this};function dr(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function Ig(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return $o;if(a==="TopLeft")return yr;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Js;if(a==="TopRight")return _l;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Bl;if(a==="Center")return gi;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return dh;if(a==="BottomLeft")return tl;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return Rs;if(a==="BottomRight")return es;if(a==="TopSide")return fl;if(a==="LeftSide")return pl;if(a==="RightSide")return Ns;if(a==="BottomSide")return Ma;if(a==="TopBottomSides")return Ge;if(a==="LeftRightSides")return ii;if(a==="TopLeftSides")return xi;if(a==="TopRightSides")return Ti;if(a==="BottomLeftSides")return _i;if(a==="BottomRightSides")return Ai;if(a==="NotTopSide")return Oo;if(a==="NotLeftSide")return bo;if(a==="NotRightSide")return ns;if(a==="NotBottomSide")return Mr;if(a==="AllSides")return Ts;if(a==="Default")return rr;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E!==void 0&&0a&&(a+=360),a===0)return this;if(this.translate(y,x),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.m12*a+this.m22*E,z=this.m11*-E+this.m21*a,tt=this.m12*-E+this.m22*a;return this.m11=this.m11*a+this.m21*E,this.m12=b,this.m21=z,this.m22=tt,this.translate(-y,-x),this},wt=Rn.prototype,wt.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},wt.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},wt.Ga=function(a){var y=a.x,x=a.y;return a.h(y*this.m11+x*this.m21+this.dx,y*this.m12+x*this.m22+this.dy)},wt.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=a.x,E=a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},wt.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=1.25*a.x,E=1.2*a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},wt.pp=function(a){var y=a.x,x=a.y,E=y+a.width,b=x+a.height,z=this.m11,tt=this.m12,ot=this.m21,rt=this.m22,at=this.dx,ut=this.dy,ct=y*z+x*ot+at,mt=y*tt+x*rt+ut,yt=E*z+x*ot+at,St=E*tt+x*rt+ut;return x=y*z+b*ot+at,y=y*tt+b*rt+ut,z=E*z+b*ot+at,E=E*tt+b*rt+ut,b=Math.min(ct,yt),ct=Math.max(ct,yt),yt=Math.min(mt,St),mt=Math.max(mt,St),b=Math.min(b,x),ct=Math.max(ct,x),yt=Math.min(yt,y),mt=Math.max(mt,y),b=Math.min(b,z),ct=Math.max(ct,z),yt=Math.min(yt,E),mt=Math.max(mt,E),a.h(b,yt,ct-b,mt-yt),a},Rn.alloc=function(){var a=Jc.pop();return a===void 0?new Rn:a},Rn.free=function(a){Jc.push(a)},Rn.prototype.transformRect=Rn.prototype.pp,Rn.prototype.transformPoint=Rn.prototype.Ga,Rn.prototype.scale=Rn.prototype.scale,Rn.prototype.translate=Rn.prototype.translate,Rn.prototype.rotate=Rn.prototype.rotate,Rn.prototype.invert=Rn.prototype.Vj,Rn.prototype.multiplyInverted=Rn.prototype.bv,Rn.prototype.multiply=Rn.prototype.multiply,Rn.prototype.reset=Rn.prototype.reset,Rn.prototype.isIdentity=Rn.prototype.ws,Rn.prototype.equals=Rn.prototype.D,Rn.prototype.setTransform=Rn.prototype.setTransform,Rn.prototype.set=Rn.prototype.set;var Jc=[];Rn.className="Transform",Rn.xF="54a702f3e53909c447824c6706603faf4c";var Jt={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Jt.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);Jt.Uv=y}return 1>a?(x=1/a,2e3>=x?1/y[x|0]:Math.sqrt(a)):2e3>=a?y[a|0]:Math.sqrt(a)},B:function(a,y){return a-=y,.5>a&&-.5a&&-5e-8=b&&(b=1e-6),aut-at)if(a-x>b||x-a>b){if(z=(E-y)/(x-a)*(z-a)+y,z-b<=tt&&tt<=z+b)return!0}else return!0;else if(y-E>b||E-y>b){if(tt=(x-a)/(E-y)*(tt-y)+a,tt-b<=z&&z<=tt+b)return!0}else return!0;return!1},cs:function(a,y,x,E,b,z,tt,ot,rt,at,ut,ct){if(Jt.Yb(a,y,tt,ot,ct,x,E)&&Jt.Yb(a,y,tt,ot,ct,b,z))return Jt.Yb(a,y,tt,ot,ct,at,ut);var mt=(a+x)/2,yt=(y+E)/2,St=(x+b)/2,Mt=(E+z)/2;b=(b+tt)/2,z=(z+ot)/2,E=(mt+St)/2,x=(yt+Mt)/2,St=(St+b)/2,Mt=(Mt+z)/2;var Dt=(E+St)/2,Tt=(x+Mt)/2;return Jt.cs(a,y,mt,yt,E,x,Dt,Tt,rt,at,ut,ct)||Jt.cs(Dt,Tt,St,Mt,b,z,tt,ot,rt,at,ut,ct)},ax:function(a,y,x,E,b,z,tt,ot,rt){var at=(x+b)/2,ut=(E+z)/2;return rt.h((((a+x)/2+at)/2+(at+(b+tt)/2)/2)/2,(((y+E)/2+ut)/2+(ut+(z+ot)/2)/2)/2),rt},My:function(a,y,x,E,b,z,tt,ot){var rt=(x+b)/2,at=(E+z)/2;return li(((a+x)/2+rt)/2,((y+E)/2+at)/2,(rt+(b+tt)/2)/2,(at+(z+ot)/2)/2)},Dl:function(a,y,x,E,b,z,tt,ot,rt,at){if(Jt.Yb(a,y,tt,ot,rt,x,E)&&Jt.Yb(a,y,tt,ot,rt,b,z))yo(at,a,y,0,0),yo(at,tt,ot,0,0);else{var ut=(a+x)/2,ct=(y+E)/2,mt=(x+b)/2,yt=(E+z)/2;b=(b+tt)/2,z=(z+ot)/2,E=(ut+mt)/2,x=(ct+yt)/2,mt=(mt+b)/2,yt=(yt+z)/2;var St=(E+mt)/2,Mt=(x+yt)/2;Jt.Dl(a,y,ut,ct,E,x,St,Mt,rt,at),Jt.Dl(St,Mt,mt,yt,b,z,tt,ot,rt,at)}return at},Qe:function(a,y,x,E,b,z,tt,ot,rt,at){if(Jt.Yb(a,y,tt,ot,rt,x,E)&&Jt.Yb(a,y,tt,ot,rt,b,z))at.length===0&&(at.push(a),at.push(y)),at.push(tt),at.push(ot);else{var ut=(a+x)/2,ct=(y+E)/2,mt=(x+b)/2,yt=(E+z)/2;b=(b+tt)/2,z=(z+ot)/2,E=(ut+mt)/2,x=(ct+yt)/2,mt=(mt+b)/2,yt=(yt+z)/2;var St=(E+mt)/2,Mt=(x+yt)/2;Jt.Qe(a,y,ut,ct,E,x,St,Mt,rt,at),Jt.Qe(St,Mt,mt,yt,b,z,tt,ot,rt,at)}return at},jv:function(a,y,x,E,b,z,tt,ot,rt,at){if(Jt.Yb(a,y,b,z,at,x,E))return Jt.Yb(a,y,b,z,at,ot,rt);var ut=(a+x)/2,ct=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var mt=(ut+x)/2,yt=(ct+E)/2;return Jt.jv(a,y,ut,ct,mt,yt,tt,ot,rt,at)||Jt.jv(mt,yt,x,E,b,z,tt,ot,rt,at)},OA:function(a,y,x,E,b,z,tt){return tt.h(((a+x)/2+(x+b)/2)/2,((y+E)/2+(E+z)/2)/2),tt},iv:function(a,y,x,E,b,z,tt,ot){if(Jt.Yb(a,y,b,z,tt,x,E))yo(ot,a,y,0,0),yo(ot,b,z,0,0);else{var rt=(a+x)/2,at=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ut=(rt+x)/2,ct=(at+E)/2;Jt.iv(a,y,rt,at,ut,ct,tt,ot),Jt.iv(ut,ct,x,E,b,z,tt,ot)}return ot},ep:function(a,y,x,E,b,z,tt,ot){if(Jt.Yb(a,y,b,z,tt,x,E))ot.length===0&&(ot.push(a),ot.push(y)),ot.push(b),ot.push(z);else{var rt=(a+x)/2,at=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ut=(rt+x)/2,ct=(at+E)/2;Jt.ep(a,y,rt,at,ut,ct,tt,ot),Jt.ep(ut,ct,x,E,b,z,tt,ot)}return ot},Eo:function(a,y,x,E,b,z,tt,ot,rt,at,ut,ct,mt,yt){if(Jt.Yb(a,y,tt,ot,mt,x,E)&&Jt.Yb(a,y,tt,ot,mt,b,z))return!Jt.Rl(a,y,tt,ot,rt,at,ut,ct)||(mt=(a-tt)*(at-ct)-(y-ot)*(rt-ut),mt===0)?!1:(yt.h(((a*ot-y*tt)*(rt-ut)-(a-tt)*(rt*ct-at*ut))/mt,((a*ot-y*tt)*(at-ct)-(y-ot)*(rt*ct-at*ut))/mt),!0);var St=(a+x)/2,Mt=(y+E)/2,Dt=(x+b)/2,Tt=(E+z)/2;b=(b+tt)/2,z=(z+ot)/2,E=(St+Dt)/2,x=(Mt+Tt)/2,Dt=(Dt+b)/2,Tt=(Tt+z)/2;var zt=(E+Dt)/2,Ht=(x+Tt)/2,Ut=1/0,Xt=!1,ie=0,We=0;return Jt.Eo(a,y,St,Mt,E,x,zt,Ht,rt,at,ut,ct,mt,yt)&&(a=(yt.x-rt)*(yt.x-rt)+(yt.y-at)*(yt.y-at),a=ut)return yt;if((rt>ut?rt-ut:ut-rt)<(at>ct?at-ct:ct-at)){if(ya)return yt}else if(aa)return yt;0mt&&yt--}else{St=(a+x)/2,Mt=(y+E)/2;var Dt=(x+b)/2,Tt=(E+z)/2;b=(b+tt)/2,z=(z+ot)/2,E=(St+Dt)/2,x=(Mt+Tt)/2,Dt=(Dt+b)/2,Tt=(Tt+z)/2;var zt=(E+Dt)/2,Ht=(x+Tt)/2;yt+=Jt.Fo(a,y,St,Mt,E,x,zt,Ht,rt,at,ut,ct,mt),yt+=Jt.Fo(zt,Ht,Dt,Tt,b,z,tt,ot,rt,at,ut,ct,mt)}return yt},qh:function(a,y,x,E,b,z,tt){return Jt.$(a,x)?(yy?(tt.h(a,y),!1):(tt.h(a,z),!0)):Jt.$(y,E)?(aa?(tt.h(a,y),!1):(tt.h(b,y),!0)):(b=((a-b)*(a-x)+(y-z)*(y-E))/((x-a)*(x-a)+(E-y)*(E-y)),-5e-6>b?(tt.h(a,y),!1):1.000005y?(rt.h(a,y),!1):(rt.h(a,x),!0)):(tt=(E-y)/(x-a),Jt.$(ot,tt)?(Jt.qh(a,y,x,E,b,z,rt),!1):(b=(tt*a-ot*b+z-y)/(tt-ot),Jt.$(tt,0)?(aa?(rt.h(a,y),!1):(rt.h(b,y),!0)):Jt.qh(a,y,x,E,b,tt*(b-a)+y,rt))))},MA:function(a,y,x,E,b){return Jt.Ve(x.x,x.y,E.x,E.y,a.x,a.y,y.x,y.y,b)},KA:function(a,y,x,E,b,z,tt,ot,rt,at){function ut(Dt,Tt){var zt=(Dt-a)*(Dt-a)+(Tt-y)*(Tt-y);zt(x>a?x-a:a-x)){if(mt=1-(x-b)*(x-b)/(mt*mt),0>mt)return rt;mt=Math.sqrt(mt),E=-at*mt+z,ut(x,at*mt+z),ut(x,E)}else{if(x=(E-y)/(x-a),E=1/(mt*mt)+x*x/(at*at),ot=2*x*(y-x*a)/(at*at)-2*x*z/(at*at)-2*b/(mt*mt),mt=ot*ot-4*E*(2*x*a*z/(at*at)-2*y*z/(at*at)+z*z/(at*at)+b*b/(mt*mt)-1+(y-x*a)*(y-x*a)/(at*at)),0>mt)return rt;mt=Math.sqrt(mt),at=(-ot+mt)/(2*E),ut(at,x*at-x*a+y),mt=(-ot-mt)/(2*E),ut(mt,x*mt-x*a+y)}return rt},Ff:function(a,y,x,E,b,z,tt,ot,rt){var at=1e21,ut=a,ct=y;if(Jt.Ve(a,y,a,E,b,z,tt,ot,rt)){var mt=(rt.x-b)*(rt.x-b)+(rt.y-z)*(rt.y-z);mtat},us:function(a,y,x){return Jt.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,E,b,z,tt,ot){var rt=a+x,at=y+E;return b===tt?(z=y):z===ot?(b=a):!!(Ar(a,y,x,E,b,z)||Ar(a,y,x,E,tt,ot)||Jt.Rl(a,y,rt,y,b,z,tt,ot)||Jt.Rl(rt,y,rt,at,b,z,tt,ot)||Jt.Rl(rt,at,a,at,b,z,tt,ot)||Jt.Rl(a,at,a,y,b,z,tt,ot))},Rl:function(a,y,x,E,b,z,tt,ot){return a===x&&y===E&&b===tt&&z===ot?a===b&&y===z:0>=Jt.Fl(a,y,x,E,b,z)*Jt.Fl(a,y,x,E,tt,ot)&&0>=Jt.Fl(b,z,tt,ot,a,y)*Jt.Fl(b,z,tt,ot,x,E)},Fl:function(a,y,x,E,b,z){return x-=a,E-=y,a=b-a,y=z-y,z=a*E-y*x,z===0&&(z=a*x+y*E,0z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,E,b,z){var tt=Math.PI;z||(E*=tt/180,b*=tt/180);var ot=E>b?-1:1;z=[];var rt=tt/2,at=E;if(E=Math.min(2*tt,Math.abs(b-E)),1e-5>E)return rt=at+ot*Math.min(E,rt),ot=a+x*Math.cos(at),at=y+x*Math.sin(at),a+=x*Math.cos(rt),y+=x*Math.sin(rt),x=(ot+a)/2,rt=(at+y)/2,z.push([ot,at,x,rt,x,rt,a,y]),z;for(;1e-5x,z=0>E;if(aat&&(y=.5*(ot+rt),!(y===ot||y===rt));++at){var ut=a/(y+b),ct=tt/(y+z);if(ut=ut*ut+ct*ct-1,0ut)rt=y;else break}x=b*x/(y+b)-x,E=z*E/(y+z)-E,x=Math.sqrt(x*x+E*E)}else x=Math.abs(E-y);else E=a*a-y*y,z=a*x,za?"M"+this.startX.toString()+" "+this.startY.toString()+"L"+this.endX.toString()+" "+this.endY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a)+"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);case be.u:var y=new de(this.startX,this.startY,0,0);return y.Kv(this.endX,this.endY,0,0),0>a?"M"+y.x.toString()+" "+y.y.toString()+"H"+y.right.toString()+"V"+y.bottom.toString()+"H"+y.left.toString()+"z":"M"+y.x.toFixed(a)+" "+y.y.toFixed(a)+"H"+y.right.toFixed(a)+"V"+y.bottom.toFixed(a)+"H"+y.left.toFixed(a)+"z";case be.F:if(y=new de(this.startX,this.startY,0,0),y.Kv(this.endX,this.endY,0,0),0>a)return a=y.left.toString()+" "+(y.y+y.height/2).toString(),"M"+a+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+(y.right.toString()+" "+(y.y+y.height/2).toString())+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+a;var x=y.left.toFixed(a)+" "+(y.y+y.height/2).toFixed(a);return"M"+x+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+(y.right.toFixed(a)+" "+(y.y+y.height/2).toFixed(a))+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+x;case be.o:y="",x=this.figures.s;for(var E=x.length,b=0;b=Ut-1?!0:at[Mt+1].match(Xt)!==null}function E(){return Mt++,at[Mt]}function b(Tn){var Cn=parseFloat(E()),ui=parseFloat(E());Dt===Dt.toLowerCase()&&(Cn=Ht.x+Cn,ui=Ht.y+ui),Tn.h(Cn,ui)}function z(){return b(Ht),Ht}function tt(){return b(zt),zt}function ot(){var Tn=Tt.toLowerCase();return Tn!=="c"&&Tn!=="s"&&Tn!=="q"&&Tn!=="t"?Ht:new jt(2*Ht.x-zt.x,2*Ht.y-zt.y)}y===void 0&&(y=!1);var rt=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(rt,"$1 $2"),a=a.replace(rt,"$1 $2"),a=a.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),a=a.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),a=a.replace(/([0-9])([+\-])/gm,"$1 $2"),a=a.replace(/[\s\r\t\n]+/gm," "),a=a.replace(/^\s+|\s+$/g,"");var at=a.split(" ");for(a=0;a=Ut-1);)if(Tt=Dt,Dt=E(),Dt!=="")switch(Dt.toUpperCase()){case"X":yt=!0,ct=ut=!1;break;case"M":for(St=z(),a.mc===null||yt===!0?(Cc(a,St.x,St.y,ut,!ct,mt),yt=!1):a.moveTo(St.x,St.y),rt.assign(Ht);!x();)St=z(),a.lineTo(St.x,St.y);break;case"L":for(;!x();)St=z(),a.lineTo(St.x,St.y);break;case"H":for(;!x();)Ht=new jt((Dt===Dt.toLowerCase()?Ht.x:0)+parseFloat(E()),Ht.y),a.lineTo(Ht.x,Ht.y);break;case"V":for(;!x();)Ht=new jt(Ht.x,(Dt===Dt.toLowerCase()?Ht.y:0)+parseFloat(E())),a.lineTo(Ht.x,Ht.y);break;case"C":for(;!x();){St=new jt,b(St);var ie=tt(),We=z();Ku(a,St.x,St.y,ie.x,ie.y,We.x,We.y)}break;case"S":for(;!x();)St=ot(),ie=tt(),We=z(),Ku(a,St.x,St.y,ie.x,ie.y,We.x,We.y);break;case"Q":for(;!x();)St=tt(),ie=z(),Om(a,St.x,St.y,ie.x,ie.y);break;case"T":for(;!x();)zt=St=ot(),ie=z(),Om(a,St.x,St.y,ie.x,ie.y);break;case"B":for(;!x();){St=parseFloat(E()),ie=parseFloat(E()),We=parseFloat(E());var qe=parseFloat(E()),Qe=parseFloat(E()),Ee=Qe,Se=!1;x()||(Ee=parseFloat(E()),x()||(Se=parseFloat(E())!==0)),Dt===Dt.toLowerCase()&&(We+=Ht.x,qe+=Ht.y),a.arcTo(St,ie,We,qe,Qe,Ee,Se)}break;case"A":for(;!x();)St=Math.abs(parseFloat(E())),ie=Math.abs(parseFloat(E())),We=parseFloat(E()),Qe=qe=!1,Se=Ee=0,Ee=E(),Ee.length===1?(qe=!!parseFloat(Ee),Qe=!!parseFloat(E()),Ee=parseFloat(E())):Ee.length===2?(qe=!!parseFloat(Ee[0]),Qe=!!parseFloat(Ee[1]),Ee=parseFloat(E())):(qe=!!parseFloat(Ee[0]),Qe=!!parseFloat(Ee[1]),Ee=parseFloat(Ee.slice(2))),Se=parseFloat(E()),Dt===Dt.toLowerCase()&&(Ee=Ht.x+Ee,Se=Ht.y+Se),Ht.h(Ee,Se),wx(a,St,ie,We,qe,Qe,Ee,Se);break;case"Z":Px(a),Ht.assign(rt);break;case"F":for(St="",ie=1;at[Mt+ie];)if(at[Mt+ie]==="0")mt=!0,ie++;else if(at[Mt+ie].match(/[Uu]/)!==null)ie++;else if(at[Mt+ie].match(Xt)===null)ie++;else{St=at[Mt+ie];break}St.match(/[Mm]/)?ut=!0:0tt&&(tt+=360),St.startAngle+=tt),0>a&&(St.startAngle=180-St.startAngle,St.sweepAngle=-St.sweepAngle),0>E&&(St.startAngle=-St.startAngle,St.sweepAngle=-St.sweepAngle),St.radiusX*=Math.sqrt(a*a+x*x),St.radiusY!==void 0&&(St.radiusY*=Math.sqrt(y*y+E*E));break;case la:if(tt=St.endX,ot=St.endY,St.endX=tt*a+ot*x+b,St.endY=tt*y+ot*E+z,St.radiusX===0||St.radiusY===0)break;y!==0&&(tt=180*Math.atan2(y,a)/Math.PI,0>tt&&(tt+=360),St.xAxisRotation+=tt),0>a&&(St.xAxisRotation=180-St.xAxisRotation,St.isClockwiseArc=!St.isClockwiseArc),0>E&&(St.xAxisRotation=-St.xAxisRotation,St.isClockwiseArc=!St.isClockwiseArc),St.radiusX*=Math.sqrt(a*a+x*x),St.radiusY*=Math.sqrt(y*y+E*E);break;default:ee("Unknown Segment type: "+St.type)}}}}return this._isInvalidBounds=!0,this},wt.ca=function(a,y){y===void 0&&(y=0);var x=this.od,E=this.pd,b=this.Dc,z=this.Ec;switch(this.type){case be.j:return Jt.Yb(x,E,b,z,y,a.x,a.y);case be.u:var tt=de.allocAt(Math.min(x,b)-y,Math.min(E,z)-y,Math.abs(b-x)+2*y,Math.abs(z-E)+2*y);return a=tt.ca(a),de.free(tt),a;case be.F:tt=Math.min(x,b)-y;var ot=Math.min(E,z)-y;return x=(Math.abs(b-x)+2*y)/2,y=(Math.abs(z-E)+2*y)/2,0>=x||0>=y?!1:(tt=a.x-(tt+x),ot=a.y-(ot+y),1>=tt*tt/(x*x)+ot*ot/(y*y));case be.o:return tu(this,a,y,!0,!1);default:return!1}};function tu(a,y,x,E,b){var z=y.x;y=y.y;for(var tt=a.bounds.x-20,ot=0,rt,at,ut,ct,mt=a.figures.s,yt=mt.length,St=0;St=a)return 0;if((b>tt?b-tt:tt-b)<(z>ot?z-ot:ot-z)){if(zot)return 0}else if(yz)return 0}else if(btt)return 0}else if(atb)return 0;return 0a?a=0:1=z)return E=z-tt,E=ut===0?0:E/ut,x=x[ot],ot=x[2*a],b=x[2*a+1],y.h(ot+(x[2*a+2]-ot)*E,b+(x[2*a+3]-b)*E),y;tt+=ut}}return y},wt.wx=function(a){if(0>a?a=0:1=b)return b=y[tt],y=b[2*a],x=b[2*a+1],E=b[2*a+2],a=b[2*a+3],1>Math.abs(E-y)&&1>Math.abs(a-x)?0:1>Math.abs(E-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=E-y?0:180:180*Math.atan2(a-x,E-y)/Math.PI;z+=at}}return NaN},wt.Qu=function(a,y){if(0>a?a=0:1=z)return E=z-tt,E=ut===0?0:E/ut,ut=x[ot],x=ut[2*a],ot=ut[2*a+1],b=ut[2*a+2],a=ut[2*a+3],y[0]=x+(b-x)*E,y[1]=ot+(a-ot)*E,y[2]=1>Math.abs(b-x)&&1>Math.abs(a-ot)?0:1>Math.abs(b-x)?0<=a-ot?90:270:1>Math.abs(a-ot)?0<=b-x?0:180:180*Math.atan2(a-ot,b-x)/Math.PI,y;tt+=ut}}return y},wt.xx=function(a){if(this.type===be.j){var y=this.startX,x=this.startY,E=this.endX,b=this.endY;if(y!==E||x!==b){var z=a.x;if(a=a.y,y===E){if(x=E?E===x?0:1:Math.abs(a-x)/(E-tt)}if(x===b)return y=E?E===y?0:1:Math.abs(z-y)/(E-tt);tt=(E-y)*(E-y)+(b-x)*(b-x);var ot=jt.alloc();return Jt.qh(y,x,E,b,z,a,ot),a=ot.x,z=ot.y,jt.free(ot),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/tt)}}else if(this.type===be.u){tt=this.startX,ot=this.startY;var rt=this.endX;if(b=this.endY,tt!==rt||ot!==b){y=rt-tt,x=b-ot,z=2*y+2*x,E=a.x,a=a.y,E=Math.min(Math.max(E,tt),rt),a=Math.min(Math.max(a,ot),b),tt=Math.abs(E-tt),rt=Math.abs(E-rt),ot=Math.abs(a-ot),b=Math.abs(a-b);var at=Math.min(tt,rt,ot,b);if(at===ot)return E/z;if(at===rt)return(y+a)/z;if(at===b)return(2*y+x-E)/z;if(at===tt)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,E=jt.alloc(),b=1/0,ot=tt=0,rt=y.length;for(var ut=at=0,ct=0;cta?0:1a?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a),x=this.segments.s,E=x.length,b=0;ba&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(E,0),this.Pg=Math.max(b,0),typeof tt=="boolean"?tt&&(this.isLargeArc=!0):typeof tt=="number"&&tt&&(this.isLargeArc=!0),ot&&(this.isClockwiseArc=!0)):(this.Ne=E,this.Vh=b,a===Do&&(z=Math.max(z,0)),this.Wh=z,typeof tt=="number"?(a===Do&&(tt=Math.max(tt,0)),this.Pg=tt):this.Pg=0),this.ae=null}ai.prototype.copy=function(){var a=new ai;return a.na=this.na,a.l=this.l&-2,a.Dc=this.Dc,a.Ec=this.Ec,a.Ne=this.Ne,a.Vh=this.Vh,a.Wh=this.Wh,a.Pg=this.Pg,a},wt=ai.prototype,wt.Xa=function(a){if(!(a instanceof ai)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case er:case Di:return Jt.B(this.endX,a.endX)&&Jt.B(this.endY,a.endY);case Nr:return Jt.B(this.endX,a.endX)&&Jt.B(this.endY,a.endY)&&Jt.B(this.point1X,a.point1X)&&Jt.B(this.point1Y,a.point1Y)&&Jt.B(this.point2X,a.point2X)&&Jt.B(this.point2Y,a.point2Y);case qs:return Jt.B(this.endX,a.endX)&&Jt.B(this.endY,a.endY)&&Jt.B(this.point1X,a.point1X)&&Jt.B(this.point1Y,a.point1Y);case Do:return Jt.B(this.startAngle,a.startAngle)&&Jt.B(this.sweepAngle,a.sweepAngle)&&Jt.B(this.centerX,a.centerX)&&Jt.B(this.centerY,a.centerY)&&Jt.B(this.radiusX,a.radiusX)&&Jt.B(this.radiusY,a.radiusY);case la:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Jt.B(this.xAxisRotation,a.xAxisRotation)&&Jt.B(this.endX,a.endX)&&Jt.B(this.endY,a.endY)&&Jt.B(this.radiusX,a.radiusX)&&Jt.B(this.radiusY,a.radiusY);default:return!1}},wt.qb=function(a){a.classType===ai&&(this.type=a)},wt.toString=function(a){switch(a===void 0&&(a=-1),this.type){case er:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Di:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Nr:a=0>a?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.point2X.toFixed(a)+" "+this.point2Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case qs:a=0>a?"Q"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"Q"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Do:a=0>a?"B"+this.startAngle.toString()+" "+this.sweepAngle.toString()+" "+this.centerX.toString()+" "+this.centerY.toString()+" "+this.radiusX.toString()+" "+this.radiusY.toString():"B"+this.startAngle.toFixed(a)+" "+this.sweepAngle.toFixed(a)+" "+this.centerX.toFixed(a)+" "+this.centerY.toFixed(a)+" "+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a);break;case la:a=0>a?"A"+this.radiusX.toString()+" "+this.radiusY.toString()+" "+this.xAxisRotation.toString()+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toString()+" "+this.endY.toString():"A"+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a)+" "+this.xAxisRotation.toFixed(a)+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;default:a=this.type.toString()}return a+(this.isClosed?"z":"")},wt.freeze=function(){return this._isFrozen=!0,this},wt.ka=function(){return this._isFrozen=!1,this},wt.close=function(){return this.isClosed=!0,this};function Gs(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var x=a.radiusX,E=a.radiusY;if(E===void 0&&(E=x),x===0||E===0)return a.ae=[],a.ae;y=a.Ne;var b=a.Vh,z=Jt.jx(0,0,x=yt?tt=Math.PI:1<=yt&&(tt=0),!rt&&0tt&&(tt+=2*Math.PI),rt=y>z?1:y/z,yt=y>z?z/y:1,y=Jt.jx(0,0,y>z?y:z,ut,ut+tt,!0),z=Rn.alloc(),z.reset(),z.translate(x,E),z.rotate(a.Ne,0,0),z.scale(rt,yt),be.Ha(y,z),Rn.free(z),a.ae=y,a.ae}he.Object.defineProperties(ai.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},isClosed:{get:function(){return(this.l&8)!==0},set:function(a){this.isClosed!==a&&(this.l=a?this.l|8:this.l&-9,this._isInvalidBounds=!0)}},type:{get:function(){return this.na},set:function(a){this._isFrozen&&yn(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&yn(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&yn(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&yn(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&yn(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&yn(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&yn(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&yn(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&yn(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&_n(a,">= zero",ai,"radiusX"),this._isFrozen&&yn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&_n(a,">= zero",ai,"radiusY"),this._isFrozen&&yn(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&yn(this,a),a%=360,0>a&&(a+=360),this.Dc=a,this._isInvalidBounds=!0}},sweepAngle:{get:function(){return this.Ec},set:function(a){this._isFrozen&&yn(this,a),360a&&(a=-360),this.Ec=a,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&yn(this,a),this.l=a?this.l|4:this.l&-5,this._isInvalidBounds=!0}},isLargeArc:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&yn(this,a),this.l=a?this.l|16:this.l&-17,this._isInvalidBounds=!0}},xAxisRotation:{get:function(){return this.Ne},set:function(a){this._isFrozen&&yn(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),ai.prototype.equalsApprox=ai.prototype.Xa;var er=new Me(ai,"Move",0),Di=new Me(ai,"Line",1),Nr=new Me(ai,"Bezier",2),qs=new Me(ai,"QuadraticBezier",3),Do=new Me(ai,"Arc",4),la=new Me(ai,"SvgArc",4);ai.className="PathSegment",ai.Move=er,ai.Line=Di,ai.Bezier=Nr,ai.QuadraticBezier=qs,ai.Arc=Do,ai.SvgArc=la;function Vr(){this.H=null,this.xu=new jt(0,0).freeze(),this.mt=new jt(0,0).freeze(),this.Bp=this.Rq=0,this.Cp=1,this.xq="",this.Wr=this.Tp=!1,this.Rp=this.Ep=0,this.xg=this.nq=this.tq=!1,this.Zp=null,this.Rr=0,this.xd=this.Nr=null}Vr.prototype.copy=function(){var a=new Vr;return this.clone(a)},Vr.prototype.clone=function(a){return a.H=this.H,a.xu.assign(this.viewPoint),a.mt.assign(this.documentPoint),a.Rq=this.Rq,a.Bp=this.Bp,a.Cp=this.Cp,a.xq=this.xq,a.Tp=this.Tp,a.Wr=this.Wr,a.Ep=this.Ep,a.Rp=this.Rp,a.tq=this.tq,a.nq=this.nq,a.xg=this.xg,a.Zp=this.Zp,a.Rr=this.Rr,a.Nr=this.Nr,a.xd=this.xd,a},Vr.prototype.toString=function(){var a="^";return this.modifiers!==0&&(a+="M:"+this.modifiers),this.button!==0&&(a+="B:"+this.button),this.key!==""&&(a+="K:"+this.key),this.clickCount!==0&&(a+="C:"+this.clickCount),this.delta!==0&&(a+="D:"+this.delta),this.handled&&(a+="h"),this.bubbles&&(a+="b"),this.documentPoint!==null&&(a+="@"+this.documentPoint.toString()),a},Vr.prototype.So=function(a,y){var x=this.diagram;return x===null||mf(x,a,y),y},Vr.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(mf(x,a,y),y.assign(x.Ps(y))),y},he.Object.defineProperties(Vr.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},viewPoint:{get:function(){return this.xu},set:function(a){this.xu.assign(a)}},documentPoint:{get:function(){return this.mt},set:function(a){this.mt.assign(a)}},modifiers:{get:function(){return this.Rq},set:function(a){this.Rq=a}},button:{get:function(){return this.Bp},set:function(a){if(this.Bp=a,this.event===null)switch(a){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2}}},buttons:{get:function(){return this.Cp},set:function(a){this.Cp=a}},key:{get:function(){return this.xq},set:function(a){this.xq=a}},down:{get:function(){return this.Tp},set:function(a){this.Tp=a}},up:{get:function(){return this.Wr},set:function(a){this.Wr=a}},clickCount:{get:function(){return this.Ep},set:function(a){this.Ep=a}},delta:{get:function(){return this.Rp},set:function(a){this.Rp=a}},isMultiTouch:{get:function(){return this.tq},set:function(a){this.tq=a}},handled:{get:function(){return this.nq},set:function(a){this.nq=a}},bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},event:{get:function(){return this.Zp},set:function(a){this.Zp=a}},isTouchEvent:{get:function(){var a=this.event;return a===null?!1:a.pointerType==="touch"||a.pointerType==="pen"}},timestamp:{get:function(){return this.Rr},set:function(a){this.Rr=a}},targetDiagram:{get:function(){return this.Nr},set:function(a){this.Nr=a}},targetObject:{get:function(){return this.xd},set:function(a){this.xd=a}},control:{get:function(){return(this.modifiers&1)!==0},set:function(a){this.modifiers=a?this.modifiers|1:this.modifiers&-2}},shift:{get:function(){return(this.modifiers&4)!==0},set:function(a){this.modifiers=a?this.modifiers|4:this.modifiers&-5}},alt:{get:function(){return(this.modifiers&2)!==0},set:function(a){this.modifiers=a?this.modifiers|2:this.modifiers&-3}},meta:{get:function(){return(this.modifiers&8)!==0},set:function(a){this.modifiers=a?this.modifiers|8:this.modifiers&-9}},left:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&1)!==0:this.button===0},set:function(a){this.buttons=a?this.buttons|1:this.buttons&-2}},right:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&2)!==0:this.button===2},set:function(a){this.buttons=a?this.buttons|2:this.buttons&-3}},middle:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&4)!==0:this.button===1},set:function(a){this.buttons=a?this.buttons|4:this.buttons&-5}}}),Vr.prototype.getMultiTouchDocumentPoint=Vr.prototype.Bz,Vr.prototype.getMultiTouchViewPoint=Vr.prototype.So,Vr.className="InputEvent";function Lu(){this.H=null,this.xa="",this.ar=this.Lr=null}Lu.prototype.copy=function(){var a=new Lu;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},Lu.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},he.Object.defineProperties(Lu.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},subject:{get:function(){return this.Lr},set:function(a){this.Lr=a}},parameter:{get:function(){return this.ar},set:function(a){this.ar=a}}}),Lu.className="DiagramEvent";function Ji(){this.Fm=Ki,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Ji.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},Ji.prototype.copy=function(){var a=new Ji;a.Fm=this.Fm,a.Qq=this.Qq,a.rf=this.rf,a.cc=this.cc,a.H=this.H,a.Qn=this.Qn;var y=this.Sn;return a.Sn=we(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=we(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=we(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=we(y)&&typeof y.J=="function"?y.J():y,a},Ji.prototype.qb=function(a){a.classType===Ji&&(this.change=a)},Ji.prototype.toString=function(){var a="";return a=this.change===Hs?a+"* ":this.change===Ki?a+(this.model!==null?"!m":"!d"):a+((this.model!==null?"!m":"!d")+this.change),this.propertyName&&typeof this.propertyName=="string"&&(a+=" "+this.propertyName),this.modelChange&&this.modelChange!==this.propertyName&&(a+=" "+this.modelChange),a+=": ",this.change===Hs?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=lo(this.object)),this.oldValue!==null&&(a+=" old: "+lo(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+lo(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},Ji.prototype.I=function(a){return a?this.oldValue:this.newValue},Ji.prototype.Dz=function(a){return a?this.oldParam:this.newParam},Ji.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},Ji.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},Ji.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},Ji.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},he.Object.defineProperties(Ji.prototype,{model:{get:function(){return this.cc},set:function(a){this.cc=a}},diagram:{get:function(){return this.H},set:function(a){this.H=a}},change:{get:function(){return this.Fm},set:function(a){this.Fm=a}},modelChange:{get:function(){return this.Qq},set:function(a){this.Qq=a}},propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},isTransactionFinished:{get:function(){return this.Fm===Hs&&(this.rf==="CommittedTransaction"||this.rf==="FinishedUndo"||this.rf==="FinishedRedo")}},object:{get:function(){return this.Qn},set:function(a){this.Qn=a}},oldValue:{get:function(){return this.Sn},set:function(a){this.Sn=a}},oldParam:{get:function(){return this.Rn},set:function(a){this.Rn=a}},newValue:{get:function(){return this.Mn},set:function(a){this.Mn=a}},newParam:{get:function(){return this.Ln},set:function(a){this.Ln=a}}}),Ji.prototype.redo=Ji.prototype.redo,Ji.prototype.canRedo=Ji.prototype.canRedo,Ji.prototype.undo=Ji.prototype.undo,Ji.prototype.canUndo=Ji.prototype.canUndo,Ji.prototype.getParam=Ji.prototype.Dz,Ji.prototype.getValue=Ji.prototype.I,Ji.prototype.clear=Ji.prototype.clear;var Hs=new Me(Ji,"Transaction",-1),Ki=new Me(Ji,"Property",0),Co=new Me(Ji,"Insert",1),Uo=new Me(Ji,"Remove",2);Ji.className="ChangedEvent",Ji.Transaction=Hs,Ji.Property=Ki,Ji.Insert=Co,Ji.Remove=Uo;function sr(){this.o=new ze().freeze(),this.xa="",this.j=!1}sr.prototype.toString=function(a){var y="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(a!==void 0&&0y&&a.cd(y,E),y++);for(;a.length>y;)a.pop();a.freeze()}},he.Object.defineProperties(sr.prototype,{changes:{get:function(){return this.o}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isComplete:{get:function(){return this.j},set:function(a){this.j=a}}}),sr.prototype.optimize=sr.prototype.ak,sr.prototype.redo=sr.prototype.redo,sr.prototype.canRedo=sr.prototype.canRedo,sr.prototype.undo=sr.prototype.undo,sr.prototype.canUndo=sr.prototype.canUndo,sr.prototype.clear=sr.prototype.clear,sr.className="Transaction";function $i(){this.Pt=new Ie,this.Jd=!1,this.u=new ze().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new ze().freeze(),this.hl=new ze,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}$i.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var x=this.nestedTransactionNames.count,E=0;Ea.transactionLevel&&fo("Ending transaction without having started a transaction: "+x);var E=a.transactionLevel===1,b=a.currentTransaction;E&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,b));var z=0;if(0=E&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),E===0||y.count!==0&&y.get(y.count-1)===b||(y.add(b),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,b);else{a.Fe=!0;try{a.isEnabled&&b!==null&&(b.isComplete=!0,b.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,b),a.Fe=!1}b!==null&&b.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&b!==null){for(a=z,x=b.changes,b=x.count-1;b>=a;b--)y=x.M(b),y!==null&&y.undo(),x.ka(),x.mb(b);x.freeze()}return!1}wt.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var a=this.history;a.ka();for(var y=a.count-1;y>this.historyIndex;y--){var x=a.M(y);x!==null&&x.clear(),a.mb(y),this.rq=!0}a.freeze()}},$i.prototype.canUndo=function(){if(!this.isEnabled||0=this.transactionLevel&&!this.tt&&(a=a.diagram,a!==null&&a.pi===!1||fo("Change not within a transaction: "+x.toString()))}},$i.prototype.skipsEvent=function(a){if(a===null||0>a.change.value)return!0;if(a=a.object,a===null)return!1;if(a.layer!==void 0){if(a=a.layer,a!==null&&a.isTemporary)return!0}else if(a.isTemporary)return!0;return!1},he.Object.defineProperties($i.prototype,{models:{get:function(){return this.Pt.iterator}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},transactionToUndo:{get:function(){return 0<=this.historyIndex&&this.historyIndex<=this.history.count-1?this.history.M(this.historyIndex):null}},transactionToRedo:{get:function(){return this.historyIndexb||Math.abs(y.y-a.y)>E},he.Object.defineProperties(oi.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof oe&&(this.H=a)}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},isActive:{get:function(){return this.nb},set:function(a){this.nb=a}},transactionResult:{get:function(){return this.wm},set:function(a){this.wm=a}}}),oi.prototype.startTransaction=oi.prototype.Ea,oi.className="Tool";function Vi(){oi.call(this),this.name="ToolManager",this.hb=new ze,this.ob=new ze,this.Hb=new ze,this.F=this.V=850,this.o=new Xe(2,2).ja(),this.Ha=5e3,this.ia=od,this.u=Rg,this.Mp=this.j=null,this.zj=-1}ye(Vi,oi),Vi.prototype.initializeStandardTools=function(){},Vi.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof ri&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},Vi.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===nu&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===ph){y.bubbles=!0;return}if(this.gestureBehavior===nu)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,E=0;Eb.right&&(x.x-=E.width+5/y.scale),x.xb.bottom?x.y-(E.height+5/y.scale):x.y+20/y.scale,x.yx.pointsCount)){var E=a.diagram;if(!E.isReadOnly){var b=a.Oe;if(b!==null){var z=null,tt=null;x.fromNode===null&&(z=Op(a,x.i(0),!1),z!==null&&(tt=z.part));var ot=null,rt=null;x.toNode===null&&(ot=Op(a,x.i(x.pointsCount-1),!0),ot!==null&&(rt=ot.part)),b.isValidLink(tt,z,rt,ot)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=tt,z!==null&&(x.fromPortId=z.portId),x.toNode=rt,ot!==null&&(x.toPortId=ot.portId),x.fromPort!==E.Mx&&E.R("LinkRelinked",x,E.Mx),x.toPort!==E.Nx&&E.R("LinkRelinked",x,E.Nx)):Wg(b,tt,z,rt,ot):Wg(b,null,null,null,null)}}}}to.prototype.doDragOver=function(){};function Nu(a,y){var x=a.diagram;a.dragsLink&&Eu(a,!0),mh(a);var E=a.findDragOverObject(y),b=x.lastInput;if(b.targetObject=E,E!==null){b.handled=!1;for(var z=E;z!==null;){var tt=z.mouseDrop;if(tt!==null&&(tt(b,z),b.handled))break;J0(a,b,z),z=tf(z)}}else z=x.mouseDrop,z!==null&&z(b);if(a.isActive||Sr!==null){for(b=(a.copiedParts||a.draggedParts).iterator;b.next();)z=b.key,z instanceof Ke&&z.linksConnected.each(function(ot){ot.suspendsRouting=!1});if(a.doDropOnto(y,E),a.isActive||Sr!==null){for(a=de.alloc(),y=x.selection.iterator;y.next();)E=y.value,E instanceof Ke&&q0(x,E,a);de.free(a)}}}function J0(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof Fn||(x=a.mouseDrop,x!==null&&x(y))}function q0(a,y,x){var E=!1;if(x=y.getAvoidableRect(x),a.viewportBounds.Re(x)&&(E=!0),a=a.Nu(x,function(b){return b.part},function(b){return b instanceof Ne},!0,function(b){return b instanceof Ne},E),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}to.prototype.doDropOnto=function(){},to.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;this.simulatedMouseMove(y.event,y.documentPoint,y.targetDiagram)||this.currentPart===null||this.draggedParts===null||(this.mayCopy()?(iu(this,!1),nc(a,this.copiedParts),vl(this,this.copiedParts,!1),Eh(a,this.copiedParts)):this.mayMove()?(Ra(this),vl(this,this.draggedParts,!0)):this.mayDragOut()?(iu(this,!1),vl(this,this.copiedParts,!1)):Ra(this),Hg(this,a.lastInput.documentPoint))}},to.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;if(!this.simulatedMouseUp(y.event,y.documentPoint,y.targetDiagram)){y=!1;var x=this.mayCopy();if(x&&this.copiedParts!==null?(Ra(this),iu(this,!0),nc(a,this.copiedParts),vl(this,this.copiedParts,!1),Eh(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0}))):(y=!0,Ra(this),this.mayMove()&&(vl(this,this.draggedParts,!0),Hg(this,a.lastInput.documentPoint))),this.Ym=!0,Nu(this,a.lastInput.documentPoint),this.isActive){var E=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&_0(this),a.Ya(),Eh(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",E)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},to.prototype.simulatedMouseMove=function(a,y,x){if(Sr===null)return!1;var E=Sr.diagram;x instanceof oe||(x=null);var b=Tu;return x!==b&&(b!==null&&b!==E&&(b.ug(),Sr.isDragOutStarted=!1,b=b.toolManager.findTool("Dragging"),b!==null&&b.doSimulatedDragLeave()),Tu=x,x!==null&&x!==E&&(_c(),b=x.toolManager.findTool("Dragging"),b!==null&&(bl.contains(b)||bl.add(b),b.doSimulatedDragEnter())),this.doUpdateCursor(null)),x===null||x===E||!x.allowDrop||x.isReadOnly||!x.allowInsert?!1:(E=x.toolManager.findTool("Dragging"),E!==null&&(a!==null&&(a.targetTouches!==void 0&&(0tt&&(tt=at),ut>ot&&(ot=ut))}}for(E===1/0?z.h(0,0,0,0):z.h(E,b,tt-E,ot-b),E=z.x+z.width/2,b=z.y+z.height/2,de.free(z),z=a.Fr,tt=new An,ot=jt.alloc(),rt=y.iterator;rt.next();)at=rt.value,at instanceof Ne&&at.canCopy()&&(ut=x.I(at),ut!==null&&(ut.points=at.points,Zu(ut,z.x-E,z.y-b),ut.suspendsRouting=!0,tt.add(ut,a.Pd())));for(y=y.iterator;y.next();)at=y.value,at.Zc()&&at.canCopy()&&(rt=x.I(at),rt!==null&&(at=at.location,ot.h(z.x-(E-at.x),z.y-(b-at.y)),rt.location=ot,rt.Va(),tt.add(rt,a.Pd(ot))));jt.free(ot),a.copiedParts=tt,Gg(a,tt.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Zu(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}to.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},to.prototype.computeMove=function(a,y,x,E){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,E):new jt},he.Object.defineProperties(to.prototype,{isCopyEnabled:{get:function(){return this.ob},set:function(a){this.ob=a}},copiesEffectiveCollection:{get:function(){return this.u},set:function(a){this.u=a}},dragOptions:{get:function(){return this.ia},set:function(a){this.ia=a}},isGridSnapEnabled:{get:function(){return this.dragOptions.isGridSnapEnabled},set:function(a){this.dragOptions.isGridSnapEnabled=a}},isComplexRoutingRealtime:{get:function(){return this.hb},set:function(a){this.hb=a}},isGridSnapRealtime:{get:function(){return this.dragOptions.isGridSnapRealtime},set:function(a){this.dragOptions.isGridSnapRealtime=a}},gridSnapCellSize:{get:function(){return this.dragOptions.gridSnapCellSize},set:function(a){this.dragOptions.gridSnapCellSize.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSize=a)}},gridSnapCellSpot:{get:function(){return this.dragOptions.gridSnapCellSpot},set:function(a){this.dragOptions.gridSnapCellSpot.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSpot=a)}},gridSnapOrigin:{get:function(){return this.dragOptions.gridSnapOrigin},set:function(a){this.dragOptions.gridSnapOrigin.D(a)||(a=a.J(),this.dragOptions.gridSnapOrigin=a)}},dragsLink:{get:function(){return this.dragOptions.dragsLink},set:function(a){this.dragOptions.dragsLink=a}},dragsTree:{get:function(){return this.dragOptions.dragsTree},set:function(a){this.dragOptions.dragsTree=a}},copyCursor:{get:function(){return this.F},set:function(a){this.F=a}},moveCursor:{get:function(){return this.Oc},set:function(a){this.Oc=a}},nodropCursor:{get:function(){return this.Pc},set:function(a){this.Pc=a}},currentPart:{get:function(){return this.V},set:function(a){this.V=a}},copiedParts:{get:function(){return this.o},set:function(a){this.o=a}},draggedParts:{get:function(){return this.Ha},set:function(a){this.Ha=a}},draggingParts:{get:function(){return this.copiedParts!==null?this.copiedParts.Lf():this.draggedParts!==null?this.draggedParts.Lf():this.te}},draggedLink:{get:function(){return this.diagram.draggedLink},set:function(a){this.diagram.draggedLink=a}},isDragOutStarted:{get:function(){return this.Hb},set:function(a){this.Hb=a}},startPoint:{get:function(){return this.Fr},set:function(a){this.Fr.D(a)||this.Fr.assign(a)}},delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}}}),to.prototype.getDraggingSource=to.prototype.Az;var Sr=null,Tu=null;to.className="DraggingTool",bl=new ze,Fo("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),Vi.prototype.doCancel=function(){Sr!==null&&Sr.doCancel(),oi.prototype.doCancel.call(this)};function po(){oi.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Ne,y=new bn;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new bn,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new Ke,y=new bn,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=bi,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new Ke,y=new bn,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=bi,a.add(y),a.selectable=!1,a.layerName="Tool",this.Di=a,this.o=y,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new An,this.Of=this.gj=this.Pf=null}ye(po,oi),po.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},po.prototype.copyPortProperties=function(a,y,x,E,b){if(a!==null&&y!==null&&x!==null&&E!==null){var z=y.Df(),tt=Xe.alloc();tt.width=y.naturalBounds.width*z,tt.height=y.naturalBounds.height*z,E.desiredSize=tt,Xe.free(tt),b?(E.toSpot=y.toSpot,E.toEndSegmentLength=y.toEndSegmentLength):(E.fromSpot=y.fromSpot,E.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=gi,z=jt.alloc(),x.location=y.ga(gi,z),jt.free(z),E.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,E,b)}},po.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=bi,y.fromSpot=$o,y.toSpot=$o),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},po.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},po.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof Ke){var y=this.targetPort.part;this.isForwards?this.copyPortProperties(y,this.targetPort,this.temporaryToNode,this.temporaryToPort,!0):this.copyPortProperties(y,this.targetPort,this.temporaryFromNode,this.temporaryFromPort,!1)}else this.isForwards?this.setNoTargetPortProperties(this.temporaryToNode,this.temporaryToPort,!0):this.setNoTargetPortProperties(this.temporaryFromNode,this.temporaryFromPort,!1);(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},po.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof Ke))return null;for(;a!==null;){var E=y?a.toLinkable:a.fromLinkable;if(E===!0&&(a.portId!==null||a instanceof Ke)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(E===!1)break;a=a.panel}return null},po.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,E=this.portGravity;0>=E&&(E=.1);var b=this,z=y.og(x,E,function(ct){return b.findValidLinkablePort(ct,a)},null,!0);for(E=1/0,y=null,z=z.iterator;z.next();){var tt=z.value,ot=tt.part;if(ot instanceof Ke){var rt=tt.ga(gi,jt.alloc()),at=x.x-rt.x,ut=x.y-rt.y;jt.free(rt),rt=at*at+ut*ut,rtx){if(this.originalLink!==null&&a===this.originalFromNode&&y===this.originalFromPort)return!0;if(y=y.portId,y===null&&(y=""),a.Mo(y).count>=x)return!1}return!0},po.prototype.isValidTo=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.toLinkable!==!0))return!1;var x=y.toMaxLinks;if(1/0>x){if(this.originalLink!==null&&a===this.originalToNode&&y===this.originalToPort)return!0;if(y=y.portId,y===null&&(y=""),a.Sd(y).count>=x)return!1}return!0},po.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},po.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof Ke))return!1;a=a.portId,a===null&&(a="");var E=y.part;if(!(E instanceof Ke))return!1;for(y=y.portId,y===null&&(y=""),y=E.Sd(y);y.next();)if(E=y.value,E.fromNode===x&&E.fromPortId===a)return!0;return!1},po.prototype.isValidLink=function(a,y,x,E){if(!this.isValidFrom(a,y)||!this.isValidTo(x,E)||!(y===null||E===null||(y.fromLinkableSelfNode&&E.toLinkableSelfNode||!this.isInSameNode(y,E))&&(y.fromLinkableDuplicates&&E.toLinkableDuplicates||!this.isLinked(y,E)))||this.originalLink!==null&&(a!==null&&this.isLabelDependentOnLink(a,this.originalLink)||x!==null&&this.isLabelDependentOnLink(x,this.originalLink))||a!==null&&x!==null&&(a.data===null&&x.data!==null||a.data!==null&&x.data===null)||!this.isValidCycle(a,x,this.originalLink))return!1;if(a!==null){var b=a.linkValidation;if(b!==null&&!b(a,y,x,E,this.originalLink))return!1}return x!==null&&(b=x.linkValidation,b!==null&&!b(a,y,x,E,this.originalLink))?!1:(b=this.linkValidation,b!==null?b(a,y,x,E,this.originalLink):!0)},po.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var x=a.labeledLink;if(x===null)return!1;if(x===y)return!0;var E=new Ie;return E.add(a),Kr(this,x,y,E)};function Kr(a,y,x,E){if(y===x)return!0;var b=y.fromNode;return b!==null&&b.isLinkLabel&&(E.add(b),Kr(a,b.labeledLink,x,E))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(E.add(y),Kr(a,y.labeledLink,x,E))))}po.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var E=this.diagram.validCycle;if(E!==ag){if(E===Bf){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=y.linksConnected;E.next();){var b=E.value;if(b!==x&&b.isTreeLink&&b.toNode===y)return!1}return!is(this,a,y,x,!0)}if(E===bf){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=a.linksConnected;E.next();)if(b=E.value,b!==x&&b.isTreeLink&&b.fromNode===a)return!1;return!is(this,a,y,x,!0)}if(E===Nf)return a===y?a=!0:(E=new Ie,E.add(y),a=os(this,E,a,y,x)),!a;if(E===Tf)return!is(this,a,y,x,!1);if(E===Ff)return a===y?a=!0:(E=new Ie,E.add(y),a=rd(this,E,a,y,x)),!a}return!0};function is(a,y,x,E,b){if(y===x)return!0;if(y===null||x===null)return!1;for(var z=y.linksConnected;z.next();){var tt=z.value;if(tt!==E&&(!b||tt.isTreeLink)&&tt.toNode===y&&(tt=tt.fromNode,tt!==y&&is(a,tt,x,E,b)))return!0}return!1}function os(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==b&&tt.toNode===x&&(tt=tt.fromNode,tt!==x&&os(a,y,tt,E,b)))return!0}return!1}function rd(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==b){var ot=tt.fromNode;if(tt=tt.toNode,ot=ot===x?tt:ot,ot!==x&&rd(a,y,ot,E,b))return!0}}return!1}he.Object.defineProperties(po.prototype,{portGravity:{get:function(){return this.te},set:function(a){0<=a&&(this.te=a)}},isUnconnectedLinkValid:{get:function(){return this.Ha},set:function(a){this.Ha=a}},linkingCursor:{get:function(){return this.u},set:function(a){this.u=a}},temporaryLink:{get:function(){return this.Ci},set:function(a){this.Ci=a}},temporaryFromNode:{get:function(){return this.Bi},set:function(a){(this.Bi=a)&&(this.j=a.port)}},temporaryFromPort:{get:function(){return this.j},set:function(a){if(this.j!==null){var y=this.j.panel;if(y!==null){var x=y.O.indexOf(this.j);y.mb(x),y.Gb(x,a)}}this.j=a}},temporaryToNode:{get:function(){return this.Di},set:function(a){(this.Di=a)&&(this.o=a.port)}},temporaryToPort:{get:function(){return this.o},set:function(a){if(this.o!==null){var y=this.o.panel;if(y!==null){var x=y.O.indexOf(this.o);y.mb(x),y.Gb(x,a)}}this.o=a}},originalLink:{get:function(){return this.Hb},set:function(a){this.Hb=a}},originalFromNode:{get:function(){return this.hb},set:function(a){this.hb=a}},originalFromPort:{get:function(){return this.ob},set:function(a){this.ob=a}},originalToNode:{get:function(){return this.Oc},set:function(a){this.Oc=a}},originalToPort:{get:function(){return this.Pc},set:function(a){this.Pc=a}},isForwards:{get:function(){return this.ia},set:function(a){this.ia=a}},validPortsCache:{get:function(){return this.hy}},targetPort:{get:function(){return this.Pf},set:function(a){this.Pf=a}},linkValidation:{get:function(){return this.gj},set:function(a){this.gj=a}},portTargeted:{get:function(){return this.Of},set:function(a){this.Of=a}}}),po.className="LinkingBaseTool";function rs(){po.call(this),this.name="Linking",this.V={},this.F=null,this.K=vh,this.Xd=null}ye(rs,po),rs.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return a.isReadOnly||a.isModelReadOnly||!a.allowLink||!a.model.xs()||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize()?!1:this.findLinkablePort()!==null},rs.prototype.findLinkablePort=function(){var a=this.diagram,y=this.startObject;if(y===null&&(y=a.ic(a.firstInput.documentPoint,null,null)),y===null||(a=y.part,!(a instanceof Ke)))return null;var x=this.direction;if(x===vh||x===zp){var E=this.findValidLinkablePort(y,!1);if(E!==null||this.startObject===a&&(E=a.port,this.findValidLinkablePort(E,!1)))return this.isForwards=!0,E}return(x===vh||x===Rp)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},rs.prototype.doActivate=function(){var a=this.diagram,y=this.findLinkablePort();y===null?this.stopTool():(this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.isForwards?(this.temporaryToNode!==null&&(this.temporaryToNode.location=a.lastInput.documentPoint),this.originalFromPort=y,y=this.originalFromPort.part,y instanceof Ke&&(this.originalFromNode=y),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(this.temporaryFromNode!==null&&(this.temporaryFromNode.location=a.lastInput.documentPoint),this.originalToPort=y,y=this.originalToPort.part,y instanceof Ke&&(this.originalToNode=y),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),a.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),a.add(this.temporaryToNode),this.temporaryToNode&&this.temporaryToNode.Va(),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0)},rs.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},rs.prototype.doStop=function(){po.prototype.doStop.call(this),this.startObject=null},rs.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,E=null,b=null,z=null;try{var tt=this.targetPort=this.findTargetPort(this.isForwards);if(tt!==null){var ot=tt.part;ot instanceof Ke&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),E=ot,b=tt):(y=ot,x=tt,this.originalToNode!==null&&(E=this.originalToNode,b=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(E=this.originalToNode,b=this.originalToPort);y!==null||E!==null?(z=this.insertLink(y,x,E,b),z!==null?(tt===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),z.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",z)):this.doNoLink(y,x,E,b)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),z&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},rs.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof Ne)return a.isTreeLink;var y=this.diagram;return y===null?!0:(a=y.partManager.getLinkCategoryForData(a),y=y.partManager.findLinkTemplateForCategory(a),y!==null?y.isTreeLink:!0)},rs.prototype.insertLink=function(a,y,x,E){return this.diagram.partManager.insertLink(a,y,x,E)},rs.prototype.doNoLink=function(){},he.Object.defineProperties(rs.prototype,{archetypeLinkData:{get:function(){return this.V},set:function(a){this.V=a}},archetypeLabelNodeData:{get:function(){return this.F},set:function(a){this.F=a}},direction:{get:function(){return this.K},set:function(a){this.K=a}},startObject:{get:function(){return this.Xd},set:function(a){this.Xd=a}}});var vh=new Me(rs,"Either",0),zp=new Me(rs,"ForwardsOnly",0),Rp=new Me(rs,"BackwardsOnly",0);rs.className="LinkingTool",rs.Either=vh,rs.ForwardsOnly=zp,rs.BackwardsOnly=Rp;function _s(){po.call(this),this.name="Relinking";var a=new bn;a.figure="Diamond",a.desiredSize=Zo,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new bn,a.figure="Diamond",a.desiredSize=Zo,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new de}ye(_s,po),_s.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Ne){var y="RelinkFrom",x=null;if(a.isSelected&&!this.diagram.isReadOnly){var E=a.selectionObject;E!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null&&(x=this.makeAdornment(E,!1),a.bh(y,x)))}x===null&&a.Jf(y),y="RelinkTo",x=null,a.isSelected&&!this.diagram.isReadOnly&&(E=a.selectionObject,E!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null?(x=this.makeAdornment(E,!0),a.bh(y,x)):x.v())),x===null&&a.Jf(y)}},_s.prototype.makeAdornment=function(a,y){var x=new ri;return x.type=ke.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},_s.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowRelink||!a.model.xs()||!a.lastInput.left)return!1;var y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom");return y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo")),y!==null},_s.prototype.doActivate=function(){var a=this.diagram;if(this.originalLink===null){var y=this.handle;if(y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom"),y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo"))),y===null)return;var x=y.part;if(!(x instanceof ri&&x.adornedPart instanceof Ne))return;this.handle=y,this.isForwards=x===null||x.category==="RelinkTo",this.originalLink=x.adornedPart}this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.originalFromPort=this.originalLink.fromPort,this.originalFromNode=this.originalLink.fromNode,this.originalToPort=this.originalLink.toPort,this.originalToNode=this.originalLink.toNode,this.Ew.set(this.originalLink.actualBounds),this.originalLink!==null&&0y.firstPickIndex+1&&x=x.x)y=0>=x.y?y+225:1<=x.y?y+135:y+180;else if(1<=x.x)0>=x.y?y+=315:1<=x.y&&(y+=45);else if(0>=x.y)y+=270;else if(1<=x.y)y+=90;else break t;0>y?y+=360:360<=y&&(y-=360),a.cursor=22.5>y?"e-resize":67.5>y?"se-resize":112.5>y?"s-resize":157.5>y?"sw-resize":202.5>y?"w-resize":247.5>y?"nw-resize":292.5>y?"n-resize":337.5>y?"ne-resize":"e-resize"}else if(a instanceof ke)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},Ir.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowResize&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},Ir.prototype.doActivate=function(){var a=this.diagram;this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null&&(this.adornedObject=this.handle.part.adornedObject,this.adornedObject!==null&&(a.isMouseCaptured=!0,a.animationManager.Cc(),this.Ea(this.name),this.Xq.set(this.adornedObject.ga(this.handle.alignment.gv())),this.Tn.set(this.adornedObject.part.location),this.Dw.set(this.adornedObject.desiredSize),this.pt=this.computeCellSize(),this.rt=this.computeMinSize(),this.qt=this.computeMaxSize(),this.isActive=!0))},Ir.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},Ir.prototype.stopTransaction=function(){var a=this.diagram,y=oi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Ir.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},Ir.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,jt.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),a.bd(),jt.free(b)}},Ir.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,jt.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),jt.free(b),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},Ir.prototype.resize=function(a){var y=this.diagram,x=this.adornedObject;if(x!==null){if(x.desiredSize=a.size,a=x.part,a.Va(),x=x.ga(this.handle.alignment.gv()),a instanceof Fn){var E=new ze;if(E.add(a),!this.dragsMembers&&a.placeholder===null){var b=new st;b.dragsMembers=!1}y.moveParts(E,this.oppositePoint.copy().re(x),!0,b)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},Ir.prototype.computeResize=function(a,y,x,E,b,z){y.Mc()&&(y=gi);var tt=this.adornedObject.naturalBounds,ot=tt.x,rt=tt.y,at=tt.x+tt.width,ut=tt.y+tt.height,ct=1;if(!z){ct=tt.width;var mt=tt.height;0>=ct&&(ct=1),0>=mt&&(mt=1),ct=mt/ct}return mt=jt.alloc(),Jt.No(a.x,a.y,ot,rt,b.width,b.height,mt),a=tt.copy(),0>=y.x?0>=y.y?(a.x=Math.max(mt.x,at-E.width),a.x=Math.min(a.x,at-x.width),a.width=Math.max(at-a.x,x.width),a.y=Math.max(mt.y,ut-E.height),a.y=Math.min(a.y,ut-x.height),a.height=Math.max(ut-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ct*a.width,E.height),x.height),a.width=a.height/ct):(a.width=Math.max(Math.min(a.height/ct,E.width),x.width),a.height=ct*a.width),a.x=at-a.width,a.y=ut-a.height)):1<=y.y?(a.x=Math.max(mt.x,at-E.width),a.x=Math.min(a.x,at-x.width),a.width=Math.max(at-a.x,x.width),a.height=Math.max(Math.min(mt.y-rt,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ct*a.width,E.height),x.height),a.width=a.height/ct):(a.width=Math.max(Math.min(a.height/ct,E.width),x.width),a.height=ct*a.width),a.x=at-a.width)):(a.x=Math.max(mt.x,at-E.width),a.x=Math.min(a.x,at-x.width),a.width=at-a.x,z||(a.height=Math.max(Math.min(ct*a.width,E.height),x.height),a.width=a.height/ct,a.y=rt+.5*(ut-rt-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(mt.x-ot,E.width),x.width),a.y=Math.max(mt.y,ut-E.height),a.y=Math.min(a.y,ut-x.height),a.height=Math.max(ut-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ct*a.width,E.height),x.height),a.width=a.height/ct):(a.width=Math.max(Math.min(a.height/ct,E.width),x.width),a.height=ct*a.width),a.y=ut-a.height)):1<=y.y?(a.width=Math.max(Math.min(mt.x-ot,E.width),x.width),a.height=Math.max(Math.min(mt.y-rt,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ct*a.width,E.height),x.height),a.width=a.height/ct):(a.width=Math.max(Math.min(a.height/ct,E.width),x.width),a.height=ct*a.width))):(a.width=Math.max(Math.min(mt.x-ot,E.width),x.width),z||(a.height=Math.max(Math.min(ct*a.width,E.height),x.height),a.width=a.height/ct,a.y=rt+.5*(ut-rt-a.height))):0>=y.y?(a.y=Math.max(mt.y,ut-E.height),a.y=Math.min(a.y,ut-x.height),a.height=ut-a.y,z||(a.width=Math.max(Math.min(a.height/ct,E.width),x.width),a.height=ct*a.width,a.x=ot+.5*(at-ot-a.width))):1<=y.y&&(a.height=Math.max(Math.min(mt.y-rt,E.height),x.height),z||(a.width=Math.max(Math.min(a.height/ct,E.width),x.width),a.height=ct*a.width,a.x=ot+.5*(at-ot-a.width))),jt.free(mt),a},Ir.prototype.computeReshape=function(){var a=Pe;return this.adornedObject instanceof bn&&(a=Mv(this.adornedObject)),!(a===$e||this.diagram.lastInput.shift)},Ir.prototype.computeMinSize=function(){var a=this.adornedObject.minSize.copy(),y=this.minSize;return!isNaN(y.width)&&y.width>a.width&&(a.width=y.width),!isNaN(y.height)&&y.height>a.height&&(a.height=y.height),a},Ir.prototype.computeMaxSize=function(){var a=this.adornedObject.maxSize.copy(),y=this.maxSize;return!isNaN(y.width)&&y.widthx?x+=360:360<=x&&(x-=360),x=Math.round(45*Math.round(x/45));var E=this.handleDistance;return x===0?y.x=a.naturalBounds.width+E:x===45?(y.x=a.naturalBounds.width+E,y.y=a.naturalBounds.height+E):x===90?y.y=a.naturalBounds.height+E:x===135?(y.x=-E,y.y=a.naturalBounds.height+E):x===180?y.x=-E:x===225?(y.x=-E,y.y=-E):x===270?y.y=-E:x===315&&(y.x=a.naturalBounds.width+E,y.y=-E),a.ga(y)},ss.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new jt(NaN,NaN),this.isActive=a.isMouseCaptured=!1},ss.prototype.stopTransaction=function(){var a=this.diagram,y=oi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},ss.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},ss.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},ss.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){a.delaysLayout=!1;var y=this.computeRotate(a.lastInput.documentPoint);this.rotate(y),a.Ya(),this.transactionResult=this.name,a.R("PartRotated",this.adornedObject,this.originalAngle)}this.stopTool()},ss.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var x=y.locationObject,E=y.rotateObject;(x===E||x.rg(E))&&(x=this.Tn.copy(),y.location=x.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},ss.prototype.computeRotate=function(a){a=this.rotationPoint.ab(a)-this.handleAngle;var y=this.adornedObject.panel;y!==null&&(a-=y.li()),360<=a?a-=360:0>a&&(a+=360),y=Math.min(Math.abs(this.snapAngleMultiple),180);var x=Math.min(Math.abs(this.snapAngleEpsilon),y/2);return!this.diagram.lastInput.shift&&0y-x&&(a=(Math.floor(a/y)+1)*y)),360<=a?a-=360:0>a&&(a+=360),a},he.Object.defineProperties(ss.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof ri))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof ri)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},snapAngleMultiple:{get:function(){return this.ia},set:function(a){this.ia=a}},snapAngleEpsilon:{get:function(){return this.V},set:function(a){this.V=a}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(a){this.kr=a.copy()}},handleAngle:{get:function(){return this.u},set:function(a){this.u=a}},handleDistance:{get:function(){return this.F},set:function(a){this.F=a}}}),ss.className="RotatingTool",Fo("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function yh(){oi.call(this),this.name="ClickSelecting"}ye(yh,oi),yh.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},yh.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},yh.className="ClickSelectingTool";function ka(){oi.call(this),this.name="Action",this.pk=null}ye(ka,oi),ka.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,x=a.ic(y.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E});return x!==null&&x.isActionable?(this.pk=x,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},ka.prototype.doMouseDown=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionDown!==null&&y.actionDown(a,y))}else this.canStart()&&this.doActivate()},ka.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionMove!==null&&y.actionMove(a,y))}},ka.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;if(y===null)return;a.targetObject=y,y.actionUp!==null&&y.actionUp(a,y),this.standardMouseClick(function(x){for(;x.panel!==null&&(!x.isActionable||x!==y);)x=x.panel;return x},function(x){return x===y})}this.stopTool()},ka.prototype.doCancel=function(){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionCancel!==null&&y.actionCancel(a,y),this.stopTool())},ka.prototype.doStop=function(){this.pk=null},ka.className="ActionTool";function Du(){oi.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new jt(0,0)}ye(Du,oi),Du.prototype.canStart=function(){if(!this.isEnabled||this.archetypeNodeData===null)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.lastInput.left||this.isBeyondDragSize())return!1;if(this.isDoubleClick){if(a.lastInput.clickCount===1&&(this.mw=a.lastInput.viewPoint.copy()),a.lastInput.clickCount!==2||this.isBeyondDragSize(this.mw))return!1}else if(a.lastInput.clickCount!==1)return!1;return!(a.currentTool!==this&&a.Ol(a.lastInput.documentPoint,!0)!==null)},Du.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},Du.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var E=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof hn)x.Zc()&&(Fa(x),E=x.copy(),E!==null&&y.add(E));else if(x!==null){var b=y.model.copyNodeData(x);we(b)&&(y.model.xf(b),E=y.Lc(b))}if(E!==null){var z=jt.allocAt(a.x,a.y);this.isGridSnapEnabled&&ec(this.diagram,E,a,z),E.location=z,y.allowSelect&&(y.clearSelection(!0),E.isSelected=!0),jt.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",E)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return E},he.Object.defineProperties(Du.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){this.Ri=a}},isDoubleClick:{get:function(){return this.o},set:function(a){this.o=a}},isGridSnapEnabled:{get:function(){return this.j},set:function(a){this.j=a}}}),Du.className="ClickCreatingTool";function ua(){oi.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new hn;a.layerName="Tool",a.selectable=!1;var y=new bn;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}ye(ua,oi),ua.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(!a.allowSelect)return!1;var y=a.lastInput;return!(!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.timestamp-a.firstInput.timestampb.right&&(x.x-=E.width+5/y.scale),x.xb.bottom&&(x.y-=E.height+5/y.scale),x.ya.lastInput.clickCount)):!1},Ii.prototype.doStart=function(){Ou=this,this.textBlock!==null&&this.doActivate()},Ii.prototype.doActivate=function(){if(!this.isActive){var a=this.diagram;if(a!==null){var y=this.textBlock;if(y===null&&(y=a.ic(a.lastInput.documentPoint)),y!==null&&y instanceof Ei&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=Qd;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var E=new de(this.textBlock.ga(yr),this.textBlock.ga(es));a.tv(E),x.show(y,a,this),this.currentTextEditor=x}}}},Ii.prototype.doCancel=function(){this.stopTool()},Ii.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Ii.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Sl)},Ii.prototype.acceptText=function(a){switch(a){case Sl:this.qa===ud?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===Qd||this.qa===Jd||this.qa===Zd)&&(this.qa=of,nf(this));break;case Yg:case Xd:case Vg:(Xd!==a||this.textBlock.isMultiline!==!0)&&(this.qa===Qd||this.qa===Jd||this.qa===Zd)&&(this.qa=of,nf(this))}};function nf(a){var y=a.textBlock,x=a.diagram,E=a.currentTextEditor;if(y!==null&&E!==null){var b=y.text,z="";E.valueFunction!==null&&(z=E.valueFunction()),a.isValidText(y,b,z)?(a.Ea(a.name),a.qa=ud,a.transactionResult=a.name,y.text=z,a.doSuccess(b,z),x!==null&&x.R("TextEdited",y,b),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=Jd,a.doError(b,z))}}Ii.prototype.doError=function(a,y){var x=this.textBlock;x.errorFunction!==null&&x.errorFunction(this,a,y),(a=this.currentTextEditor)&&a.show(x,this.diagram,this)},Ii.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},Ii.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=ld,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},Ii.prototype.doStop=function(){Ou=null},Ii.prototype.isValidText=function(a,y,x){var E=this.textValidation;return E!==null&&!E(a,y,x)?!1:(E=a.textValidation,!!(E===null||E(a,y,x)))},Ii.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},he.Object.defineProperties(Ii.prototype,{textBlock:{get:function(){return this.ia},set:function(a){this.ia=a}},currentTextEditor:{get:function(){return this.o},set:function(a){this.o=a}},defaultTextEditor:{get:function(){return this.j},set:function(a){this.j=a}},starting:{get:function(){return this.V},set:function(a){this.V=a}},textValidation:{get:function(){return this.vj},set:function(a){this.vj=a}},minimumEditorScale:{get:function(){return this.u},set:function(a){this.u=a}},selectsTextOnActivate:{get:function(){return this.F},set:function(a){this.F=a}},state:{get:function(){return this.qa},set:function(a){this.qa!==a&&(this.qa=a)}}}),Ii.prototype.measureTemporaryTextBlock=Ii.prototype.Lx;var Yg=new Me(Ii,"LostFocus",0),Sl=new Me(Ii,"MouseDown",1),Vg=new Me(Ii,"Tab",2),Xd=new Me(Ii,"Enter",3),$0=new Me(Ii,"SingleClick",0),ad=new Me(Ii,"SingleClickSelected",1),Kg=new Me(Ii,"DoubleClick",2),ld=new Me(Ii,"StateNone",0),Qd=new Me(Ii,"StateActive",1),Zd=new Me(Ii,"StateEditing",2),of=new Me(Ii,"StateValidating",3),Jd=new Me(Ii,"StateInvalid",4),ud=new Me(Ii,"StateValidated",5),Ou=null;Ii.className="TextEditingTool",Ii.LostFocus=Yg,Ii.MouseDown=Sl,Ii.Tab=Vg,Ii.Enter=Xd,Ii.SingleClick=$0,Ii.SingleClickSelected=ad,Ii.DoubleClick=Kg,Ii.StateNone=ld,Ii.StateActive=Qd,Ii.StateEditing=Zd,Ii.StateValidating=of,Ii.StateInvalid=Jd,Ii.StateValidated=ud,Fo("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function Ws(a){_d||(rf(),_d=!0),this.H=Il,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=su,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Ie,this.ce=new Fr,this.ce.Yd=this,this.Ei=new Ie,this.pu=new Ie,this.Sr=new Ie,this.pr=new Ie,a&&Object.assign(this,a)}Ws.prototype.Xe=function(a){this.H=a},Ws.prototype.canStart=function(){return!0};function Dl(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),Br(a.H),a.zb=!0)}function Xg(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,E=a.Zd.contains("Model");E&&(a.Ok=!0,a.Pk===su?(y.isViewportUnconstrained=!0,y.vc.clear(),y.add(x,"position",x.position.copy().offset(0,-200),x.position),y.add(x,"opacity",0,1)):a.Pk===sf&&y.vc.clear(),a.Qw=!!(a.Pk===$d&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),E&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),tg(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,E=y.vc.get(x),x.autoScale!==Xr&&E!==null&&(delete E.start.scale,delete E.end.scale),Ze.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&xs(x),df(x),a.zb=!1,y.start(),y.bc&&(ju(a),x.Ya(),af(y,0),da(x,!0),xh(a),x.R("AnimationStarting",a)))}))}}function ru(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function Qg(a,y,x,E){a.isTicking||ru(a)||y instanceof Ne&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,E,!1)}wt=Ws.prototype,wt.fv=function(a){return this.ce.fv(a)},wt.Xu=function(a){return this.ce.Xu(a)};function Zg(a,y){function x(){if(0z?z+=360:rt+=360),z=b(x,z,rt-z,E)%360,tt=b(x,tt,at-tt,E),ot=b(x,ot,ut-ot,E),x=b(x,a,y-a,E),"hsla("+z+", "+tt+"%, "+ot+"%, "+x+")"}function rf(){function a(x,E,b,z,tt,ot){x.position=new jt(z(tt,E.x,b.x-E.x,ot),z(tt,E.y,b.y-E.y,ot))}var y=new An;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,E,b,z,tt,ot){tta&&_n(a,">= 1",Ws,"duration"),this.Dg=a}},isAnimating:{get:function(){return this.bc}},isTicking:{get:function(){return this.vq}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a}},defaultAnimation:{get:function(){return this.ce}},activeAnimations:{get:function(){return this.Ei}},initialAnimationStyle:{get:function(){return this.Pk},set:function(a){this.Pk=a}}}),Ws.prototype.stopAnimation=Ws.prototype.Cc;var qd=null,_d=!1,su=new Me(Ws,"Default",1),$d=new Me(Ws,"AnimateLocations",2),sf=new Me(Ws,"None",3);Ws.className="AnimationManager",Ws.defineAnimationEffect=function(a,y){_d||(rf(),_d=!0),qd.add(a,y)},Ws.Default=su,Ws.AnimateLocations=$d,Ws.None=sf;function Fr(a){this.vu=this.Nw=this.Yd=this.H=null,this.Xk=this.bc=this.j=!1,this.cn=this.Qd=0,this.Lp=this.ot=hd,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=Dr,this.vc=new An,this.Tt=new An,this.yl=new Ie,this.Ut=new Ie,this.dw=Hu,a&&Object.assign(this,a)}Fr.prototype.suspend=function(){this.Xk=!0},Fr.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,eg(this,!0),ju(this.Yd),da(this.H),xh(this.Yd),this.H.redraw()};function tg(a,y){if(a.Tt.clear(),a.Wk=!1,a.au=0,a.Gd=NaN,0a.cn?a.Gd:E-a.Qd;y&&(b=a.gw,ba.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function af(a,y){for(var x=a.Gd,E=a.vc.iterator,b=a.Wk;E.next();){var z=E.key;if(!(z instanceof Qt&&z.diagram===null)){var tt=E.value,ot=b?tt.end:tt.start;tt=b?tt.start:tt.end;var rt=qd,at;for(at in tt)at==="position"&&(tt["position:placeholder"]||tt["position:nodeCollapse"])||rt.get(at)===null||rt.get(at)(z,ot[at],tt[at],a.Lp,y,x,a)}}}wt.stop=function(){return this.bc?(this.Ml(!0),this):this},wt.Ml=function(a){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var y=this.H,x=this.Yd;this.Xk=this.bc=x.Ok=!1,ju(x);for(var E=this.vc,b=this.yl.iterator;b.next();)y.remove(b.value);for(b=this.Ut.iterator;b.next();)b.value.v();b=this.ho,E=E.iterator;for(var z=qd;E.next();){var tt=E.key,ot=E.value,rt=b?ot.end:ot.start,at=b?ot.start:ot.end,ut=ot.Ku,ct;for(ct in at)if(z.get(ct)!==null){var mt=ct;!ot.Hu||mt!=="position:nodeCollapse"&&mt!=="position:placeholder"||(mt="position"),z.get(mt)(tt,rt[ct],ut[ct]!==void 0?ut[ct]:ot.Hu?rt[ct]:at[ct],this.Lp,this.Gd,this.Gd,this)}ot.Hu&&ut.location!==void 0&&tt instanceof hn&&(tt.location=ut.location),ot.nv&&tt instanceof hn&&tt.Zb(!1)}if(y.As.clear(),ng(y,!1),y.Ya(),y.N(),da(y,!0),x.defaultAnimation===this){for(ct=x.pr.iterator;ct.next();)b=ct.value,b.Tg!==null&&(b.points=b.Tg,b.Tg=null);x.pr.clear()}da(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),xh(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),tg(this,null),x.Ml(this),y.$b())}},wt.Cj=function(a,y){var x=y.actualBounds,E=null;if(y instanceof Fn&&(E=y.placeholder),E!==null?(x=E.ga(yr),E=E.padding,x.x+=E.left,x.y+=E.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new jt(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof Fn)for(a=a.memberParts;a.next();)E=a.value,E instanceof Ke&&this.Cj(E,y)},wt.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof Fn&&(x=y.placeholder),x!==null){var E=x.ga(yr);x=x.padding,E.x+=x.left,E.y+=x.top,this.add(a,"position:placeholder",a.position,E,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),E=this.vc,E.contains(a)&&(E.I(a).nv=!0),a instanceof Fn)for(a=a.memberParts;a.next();)E=a.value,E instanceof Ke&&this.Aj(E,y)}},wt.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},he.Object.defineProperties(Fr.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&_n(a,">= 1",Fr,"duration"),this.Dg=a}},reversible:{get:function(){return this.ho},set:function(a){this.ho=a}},runCount:{get:function(){return this.cu},set:function(a){0a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Wp(a,y,x,E){return a===E?y+x:x*(-Math.pow(2,-10*a/E)+1)+y}Fr.className="Animation",Fr.EaseLinear=function(a,y,x,E){return x*a/E+y},Fr.EaseInOutQuad=hd,Fr.EaseInQuad=function(a,y,x,E){return x*(a/=E)*a+y},Fr.EaseOutQuad=function(a,y,x,E){return-x*(a/=E)*(a-2)+y},Fr.EaseInExpo=function(a,y,x,E){return a===0?y:x*Math.pow(2,10*(a/E-1))+y},Fr.EaseOutExpo=Wp;function Ch(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}Ch.className="AnimationState";function Ha(a,y,x){this.xd=null,this.rf=a,this.so=x||lf,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=Mh))}Ha.prototype.copy=function(){var a=new Ha(this.rf);a.so=this.so;var y=this.uk;if(y!==null){var x={};y.duration!==void 0&&(x.duration=y.duration),y.finished!==void 0&&(x.finished=y.finished),y.easing!==void 0&&(x.easing=y.easing),a.uk=x}return a};function Up(a,y){a=a.uk,a!==null&&(a.duration&&(y.duration=a.duration),a.finished&&(y.finished=a.finished),a.easing&&(y.easing=a.easing))}he.Object.defineProperties(Ha.prototype,{propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},animationSettings:{get:function(){return this.uk},set:function(a){this.uk=a}},startCondition:{get:function(){return this.so},set:function(a){this.so=a}}});var lf=new Me(Ha,"Default",1),Mh=new Me(Ha,"Immediate",2),dd=new Me(Ha,"Bundled",3);Ha.className="AnimationTrigger",Ha.Default=lf,Ha.Immediate=Mh,Ha.Bundled=dd;function gr(a){Yi(this),this.H=null,this.Pa=new ze,this.xa="",this.pb=1,this.o=!1,this.j=this.Uh=this.u=this.Oi=this.Ni=this.Mi=this.Li=this.Ji=this.Ki=this.Ii=this.Qi=this.Hi=this.Pi=this.Gi=this.Fi=!0,this.Zq=[],a&&Object.assign(this,a)}wt=gr.prototype,wt.clear=function(){for(var a=this.Pa,y=0;y=a)return y;for(var x=0,E=0,b=0,z=0,tt=0,ot=this.Pa.iterator;ot.next();){var rt=ot.value;rt instanceof Fn?b++:rt instanceof Ke?E++:rt instanceof Ne?z++:rt instanceof ri?tt++:x++}if(ot="",0x.Oq||ot.height*b>x.Oq?y.gc(a,x):(b=y.actualBounds,z=y.naturalBounds,b.width===0||b.height===0||isNaN(b.x)||isNaN(b.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(ho(y,a,y.areaBackground,!0,!0,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.areaBackground===null&&y.background===null&&(ho(y,a,"rgba(0,0,0,0.3)",!0,!1,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),ho(y,a,y.background,!0,!1,z,b),a.fillRect(0,0,z.width/2,z.height/2),x.ws()||(y=1/(x.m11*x.m22-x.m12*x.m21),a.transform(x.m22*y,-x.m12*y,-x.m21*y,x.m11*y,y*(x.m21*x.dy-x.m22*x.dx),y*(x.m12*x.dx-x.m11*x.dy)))))),E&&(a.restore(),a.Vc(!0))}},wt.g=function(a,y,x,E,b){var z=this.diagram;z!==null&&z.cb(Ki,a,this,y,x,E,b)},wt.oi=function(a,y,x){var E=this.Pa;if(y.Ig=this,this===null&&Wr(y),a>=E.count)a=E.count;else if(E.M(a)===y)return-1;return E.Gb(a,y),y.Vo(x),E=this.diagram,E!==null&&(x?E.N():E.oi(y)),qg(this,a,y),a},wt.pc=function(a,y,x){if(!x&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,x);var E=this.Pa;if(0>a||a>=E.length){if(a=E.indexOf(y),0>a)return-1}else if(E.M(a)!==y&&(a=E.indexOf(y),0>a))return-1;return y.Wo(x),E.mb(a),E=this.diagram,E!==null&&(x?E.N():E.pc(y)),y.Ig=null,Wr(y),a};function qg(a,y,x){if(y=Vp(a,y,x),x instanceof Fn&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var E=-1,b=a.Pa.s,z=b.length,tt=0;ttE&&ot.containingGroup===x&&(E=tt,0<=y))break}!(0>E)&&E=b)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var z=y-1,tt=NaN;0<=z&&(tt=a.M(z).zOrder,!!isNaN(tt));)z--;for(var ot=y+1,rt=NaN;otE)for(;;){if(z===-1||tt<=E){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(tt=NaN;0<=--z&&(tt=a.M(z).zOrder,isNaN(tt)););}else if(!isNaN(rt)&&rt=E){if(ot--,ot===y)break;return a.mb(y),a.Gb(ot,x),ot}for(rt=NaN;++ota||1=a)return y;for(var x=this.Wa.iterator;x.next();)y+=` - `+x.value.toString(a-1);return y};function hf(a,y){if(ro){if(y!=null||ee("Diagram setup requires an argument DIV."),a.Ka!==null&&ee("Diagram has already completed setup."),typeof y=="string"?a.Ka=Ze.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:ee("No DIV or DIV id supplied: "+y),a.Ka===null&&ee("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&ee("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Ze.ResizeObserver){var x=Xi(function(){a.$b()},250);a.ol=new Ze.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}Ze.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var E="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=E,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=Ze.go;var b=new Ta(a);if(b.style!==void 0&&(b.style.position="absolute",b.style.top="0px",b.style.left="0px",Ze.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),b.style.zIndex="2",b.style.userSelect="none",b.style.MozUserSelect="none",b.style.touchAction="none",b.style.letterSpacing="normal !important",b.style.wordSpacing="normal !important"),a.ta=b,a.ib=b.context,E=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),yf(a,a.Aa,a.ya),a.Ka.insertBefore(b.Oa,a.Ka.firstChild),b=new Ta(null),b.width=1,b.height=1,a.jw=b,a.oy=b.context,ro){b=ao("div");var z=ao("div");b.style.position="absolute",b.style.overflow="auto",b.style.width=a.Aa+"px",b.style.height=a.ya+"px",b.style.zIndex="1",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(b),b.appendChild(z),b.onscroll=Jp,b.addEventListener("pointerdown",qp),b.H=a,b.uy=!0,b.vy=!0,a.ku=b,a.hu=z}a.hk=Xi(function(){a.Yh=null,a.N()},300),a.Ov=Xi(function(){df(a)},250),a.preventDefault=function(tt){return tt.preventDefault(),!1},a.$j=function(tt){if(a.isEnabled){var ot=ha(a,tt,!0);ot.bubbles=!0;var rt=0,at=0;ot.delta=0,tt.deltaX!==void 0?(tt.deltaX!==0&&(rt=0Math.abs(tt.deltaY)?-rt:-at):tt.wheelDeltaX!==void 0?(tt.wheelDeltaX!==0&&(rt=0Math.abs(tt.wheelDeltaY)?-rt:-at):tt.wheelDelta!==void 0&&tt.wheelDelta!==0&&(ot.delta=0ot||Math.abs(at.y-tt.screenY)>ot)?a.yq++:a.yq=1,rt.clickCount=a.yq,a.tw=tt.timeStamp,a.uw.sg(tt.screenX,tt.screenY),a.doMouseDown(),tt.button===1?tt.preventDefault():Wa(rt,tt)}},a.dk=function(tt){if(a.isEnabled){a.Vk=!0;var ot=a.oj;if(ot[0]===null||ot[0].pointerId!==tt.pointerId&&ot[0].pointerType===tt.pointerType){if(ot[1]!==null&&ot[1].pointerId===tt.pointerId){ot[1]=tt;return}if(ot[0]===null)ot[0]=tt;else return}else ot[0]=tt;if(ot[0].pointerId===tt.pointerId){ot=pf(a,tt,!1,!1,!1,ot[1]!==null);var rt=Ze.document.elementFromPoint(tt.clientX,tt.clientY)||null;rt!==null&&rt.shadowRoot!==void 0&&rt.shadowRoot!==null&&(rt=rt.shadowRoot.elementFromPoint(tt.clientX,tt.clientY));var at=a,ut=tt;rt&&rt.H&&(ut=tt,at=rt.H),ot.targetDiagram=at,cd(a,ut,ot),ot.targetObject=null,a.doMouseMove(),Wa(ot,tt)}}},a.fk=function(tt){if(a.isEnabled){a.Vk=!0;var ot=tt.pointerType==="touch"||tt.pointerType==="pen",rt=a.Yt;if(ot&&a.qu)delete rt[tt.pointerId],tt.preventDefault();else if(rt=a.oj,rt[0]===null||rt[0].pointerId!==tt.pointerId&&rt[0].pointerType===tt.pointerType)rt[1]!==null&&rt[1].pointerId===tt.pointerId&&(rt[1]=null);else{rt[0]=null,rt=pf(a,tt,!1,!0,!0,!1);var at=Ze.document.elementFromPoint(tt.clientX,tt.clientY)||null;at!==null&&at.shadowRoot!==void 0&&at.shadowRoot!==null&&(at=at.shadowRoot.elementFromPoint(tt.clientX,tt.clientY)),at!==null&&at.H instanceof oe&&at.H!==a&&cd(at.H,tt,rt),at===null&&(at=tt.target),cd(a,tt,rt),rt.clickCount=a.yq,rt.targetDiagram=ff(tt,at),rt.targetObject=null,a.doMouseUp(),Wa(rt,tt),ot&&(a.wq=!1)}}},a.ek=function(tt){if(a.isEnabled){a.Vk=!1;var ot=a.Yt;ot[tt.pointerId]&&delete ot[tt.pointerId],ot=a.oj,ot[0]!==null&&ot[0].pointerId===tt.pointerId&&(ot[0]=null),ot[1]!==null&&ot[1].pointerId===tt.pointerId&&(ot[1]=null),tt.pointerType!=="touch"&&tt.pointerType!=="pen"&&(tt=a.currentTool,tt.cancelWaitAfter(),tt.standardMouseOver())}},a.ck=function(tt){var ot=a.oj;ot[0]!==null&&ot[0].pointerId===tt.pointerId?(ot[0]=null,a.wq=!1):ot[1]!==null&&ot[1].pointerId===tt.pointerId&&(ot[1]=null)},a.Vp=E.Z["d"+hg[1]+hg[2]+"wI"+xd.slice(1,5)]["b"+Bx.slice(1,y)](E.Z,ug,y,y),E.Vc(!0),tv(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}oe.prototype.addEventListener=function(a,y,x,E){a.addEventListener(y,x,{capture:E,passive:!1})},oe.prototype.removeEventListener=function(a,y,x,E){a.removeEventListener(y,x,{capture:E})};function tv(a){var y=a.ta.Oa;y instanceof HTMLCanvasElement||(y=a.div),a.addEventListener(y,"pointerdown",a.ui,!1),a.addEventListener(y,"pointermove",a.dk,!1),a.addEventListener(y,"pointerup",a.fk,!1),a.addEventListener(y,"pointerout",a.ek,!1),a.addEventListener(y,"pointercancel",a.ck,!1),a.addEventListener(y,"pointerenter",a.bz,!1),a.addEventListener(y,"pointerleave",a.cz,!1),a.addEventListener(y,"wheel",a.$j,!1),a.addEventListener(y,"keydown",a.Qz,!1),a.addEventListener(y,"keyup",a.Rz,!1),a.addEventListener(y,"blur",a.Ny,!1),a.addEventListener(y,"focus",a.Oy,!1),a.addEventListener(y,"selectstart",function(x){return x.preventDefault(),!1},!1),a.addEventListener(y,"contextmenu",function(x){return x.preventDefault(),!1},!1),a.addEventListener(Ze,"resize",a.Ov,!1)}function xs(a){30St&&(this.position=Dt.h(-(y.scrollWidth-this.Aa)+Tt-this.Aa/b+ut,this.position.y))),a.vy&&this.allowVerticalScroll&&(otMt&&(this.position=Dt.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/b+z))),jt.free(Dt),this.vd=!0,this.Ee=this.qr=!1,E=this.documentBounds,b=this.viewportBounds,ut=E.right,St=b.right,z=E.bottom,Mt=b.bottom,tt=E.x,ct=b.x,ot=E.y,E=b.y,mt>=rt&&tt>=ct&&ut<=St&&(x.style.width="1px"),yt>=at&&ot>=E&&z<=Mt&&(x.style.height="1px"))}},oe.prototype.computeBounds=function(a){return a===void 0&&(a=new de),Br(this),gf(this,a)};function gf(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,E=a.Wa.s,b=E.length,z=0;zx&&(y=x),ya.maxScale&&(y=a.maxScale),y):y===Fh?(y=rt>ot?(tt-a.Db)/E:(z-a.Db)/b,y>x&&(y=x),ya.maxScale&&(y=a.maxScale),y):a.scale}oe.prototype.zoomToFit=function(){var a=this.sj;this.sj=Hu,this.scale=gd(this,$s),a!==Hu&&(Ea(this,!1),cf(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},wt=oe.prototype,wt.BA=function(a,y){y===void 0&&(y=$s);var x=a.width,E=a.height;if(!(x===0||E===0||isNaN(x)&&isNaN(E))){var b=1;if(y===$s||y===Fh)if(isNaN(x))b=this.viewportBounds.height*this.scale/E;else if(isNaN(E))b=this.viewportBounds.width*this.scale/x;else{b=this.Aa;var z=this.ya;b=y===Fh?z/E>b/x?(z-(this.Be?this.Db:0))/E:(b-(this.gf?this.Db:0))/x:Math.min(z/E,b/x)}this.scale=b,this.position=new jt(a.x,a.y)}},wt.Jy=function(a,y){this.Va();var x=this.documentBounds,E=this.viewportBounds;this.position=new jt(x.x+(a.x*x.width+a.offsetX)-(y.x*E.width-y.offsetX),x.y+(a.y*x.height+a.offsetY)-(y.y*E.height-y.offsetY))},wt.zz=function(a){if(a instanceof Qt){this.eq=a;var y=jt.alloc();this.fq=this.op(a.ga(yr,y)),jt.free(y)}else this.eq=null,this.fq=Tl};function cf(a,y,x,E,b,z){var tt=jt.allocAt(a.pa.x,a.pa.y),ot=tt.x,rt=tt.y;if(a.eq!==null){var at=jt.alloc();at=a.eq.ga(yr,at),ot=at.x-a.fq.x/a.scale,rt=at.y-a.fq.y/a.scale,b=$o,jt.free(at)}(z||a.scrollMode===Hu)&&(b.sb()&&(x>y.width&&(ot=y.x+(b.x*y.width+b.offsetX)-(b.x*x-b.offsetX)),E>y.height&&(rt=y.y+(b.y*y.height+b.offsetY)-(b.y*E-b.offsetY))),b=a.rj,z=x-y.width,xy.left?ot=y.left:oty.top?rt=y.top:rty;y++){var x=a.De.iterator;if(x===null||a.De.count===0)break;a.De=new Ie,a.Nv(x,a.De)}a.nodes.each(function(E){E instanceof Fn&&E.U&65536&&(E.U=E.U^65536)})}}wt.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof Fn||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof Fn&&x.isVisible()&&rg(this,x);for(a.reset();a.next();)x=a.value,x instanceof Ne&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x));for(a.reset();a.next();)x=a.value,x instanceof ri&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function rg(a,y){for(var x=$n(),E=$n(),b=y.memberParts;b.next();){var z=b.value;z.isVisible()&&(z instanceof Fn?(ea(z)||us(z)||bh(z))&&rg(a,z):z instanceof Ne?z.fromNode===y||z.toNode===y?E.push(z):x.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=x.length,b=0;bXt&&(Tt=We.left,zt=We.right),Dt.height>ie&&(Ht=We.top,Ut=We.bottom)):(Tt=We.left,zt=We.right,Ht=We.top,Ut=We.bottom);var qe=Dt.width+Tt+zt,Qe=Dt.height+Ht+Ut;We=a.scale;var Ee=qe>rt/We,Se=Qe>at/We;if(!(z||a.gf||a.Be||Ee||Se))return!0;Tt=Dt.x-Tt,rt=ut.x,zt=Dt.right+zt,at=ut.right+tt,Ht=Dt.y-Ht;var Tn=ut.y;Dt=Dt.bottom+Ut,ut=ut.bottom+ot;var Cn="1px";if(Ut="1px",a.scrollMode===Hu&&(Ee||Se)&&(Ee&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Ee=1,Tt+1at+1&&(Ee=Math.max((zt-at)*We+a.Aa,Ee)),Xt+tt+1ut+1&&(Ee=Math.max((Dt-ut)*We+a.ya,Ee)),ie+ot+1at+1&&(tt=Math.max((zt-at)*We+a.Aa,tt)),Xt+1ut+1&&(ot=Math.max((Dt-ut)*We+tt,ot)),ie+1at+1&&(y=a.position.x*We)),a.tn)switch(a.bu){case"negative":y=-(St.scrollWidth-y-St.clientWidth);break;case"reverse":y=St.scrollWidth-y-St.clientWidth}return St.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(ie+1ut+1&&(St.scrollTop=a.position.y*We)),rt=a.Aa,at=a.ya,St.style.width=rt+(a.gf?a.Db:0)+"px",St.style.height=at+(a.Be?a.Db:0)+"px",x!==rt||E!==at||a.animationManager.zb?(x=de.allocAt(b,ct,mt,yt),a.onViewportBoundsChanged(x,a.viewportBounds,We,z),de.free(x),!1):!0}wt=oe.prototype,wt.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&ee("Cannot add part "+a.toString()+" to "+this.toString()+". It is already a part of "+y.toString()),y=this.Qj(a.layerName),y===null&&(y=this.Qj("")),y===null&&ee('Cannot add a Part when unable find a Layer named "'+a.layerName+'" and there is no default Layer'),a.layer!==y)){var x=y.oi(99999999,a,a.diagram===this);0<=x&&this.cb(Co,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},wt.oi=function(a){this.partManager.oi(a);var y=this;Ld(a,function(x){vd(y,x)}),(a instanceof ri||a instanceof Fn&&a.placeholder!==null)&&a.v(),a.data!==null&&Ld(a,function(x){ay(y.partManager,x)}),us(a)!==!0&&bh(a)!==!0||this.De.add(a),j1(a,!0,this),R1(a)?(a.actualBounds.w()&&this.N(Ed(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Ed(a,a.actualBounds)),this.$b()},wt.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Ld(a,function(x){ly(y.partManager,x,y)}),this.De.remove(a),R1(a)?(a.actualBounds.w()&&this.N(Ed(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Ed(a,a.actualBounds)),this.$b()},wt.remove=function(a){Sf(this,a,!0)};function Sf(a,y,x){var E=y.layer;E!==null&&E.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),x&&y.Lj(),x=E.pc(-1,y,!1),0<=x&&a.cb(Uo,"parts",E,y,null,x,null),a=y.layerChanged,a!==null&&a(y,E,null))}wt.Is=function(a,y){if(y===void 0&&(y=!1),Je(a))for(var x=a.length,E=0;EE&&this.Ya(),this},wt.Cy=function(a,y){Pf(this,a,y),a.Xe(this);var x=this.Wa,E=x.indexOf(a);0<=E&&(x.remove(a),this.cc!==null&&this.cb(Uo,"layers",this,a,null,E,null));var b=x.count,z;for(z=0;zE&&this.Ya(),this},wt.kA=function(a){if(a.diagram!==this&&ee("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,x=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var E=y.value,b=E.layerName;b!==a.name?E.layerName=b:E.layerName=""}this.cc!==null&&this.cb(Uo,"layers",this,a,null,x,null),this.N(),this.Ya()}}},wt.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},wt.Yw=function(a){return this.pf===null&&(this.pf=new ze),this.pf.add(a),this.model.Pe(a),this},wt.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},wt.Pe=function(a){return this.zg===null&&(this.zg=new ze),this.zg.add(a),this},wt.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},wt.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==Hs&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,E=0;Ect.Pa.indexOf(yt)&&ct.oi(mt,yt,St):(yt.isSelected=!1,yt.isHighlighted=!1,yt.Wb(),ct.pc(St?mt:-1,yt,St)))}else ct instanceof oe?typeof mt=="number"&&yt instanceof gr&&(y?(yt.Xe(this),this.Wa.Gb(mt,yt)):this.Wa.mb(mt)):ee("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else E!==Hs&&ee("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},oe.prototype.Ea=function(a){return this.undoManager.Ea(a)},oe.prototype.eb=function(a){return this.undoManager.eb(a)},oe.prototype.Kf=function(){return this.undoManager.Kf()},oe.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var E=!1;try{a(this),E=!0}finally{E?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},oe.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},oe.prototype.rp=function(){this.partManager.rp()};function wf(a,y,x){var E=a.animationManager;if(a.vb||a.ld)a.Ca=x,Pl(a),a.N(),a.Ee=!0,E.zb&&(ru(E)||E.ce.add(E.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,Pl(a);else{a.vb=!0;var b=a.viewportBounds.copy(),z=a.Aa,tt=a.ya,ot=a.zoomPoint.x,rt=a.zoomPoint.y,at=a.contentAlignment;isNaN(ot)&&(at.$c()?at.Hf(pl)?ot=0:at.Hf(Ns)&&(ot=z-1):ot=at.sb()?at.x*(z-1):z/2),isNaN(rt)&&(at.$c()?at.Hf(fl)?rt=0:at.Hf(Ma)&&(rt=tt-1):rt=at.sb()?at.y*(tt-1):tt/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(x=a.scaleComputation(a,x)),xa.maxScale&&(x=a.maxScale),z=jt.allocAt(a.pa.x+ot/y-ot/x,a.pa.y+rt/y-rt/x),a.position=z,jt.free(z),a.Ca=x,Pl(a),a.vb=!1,a.onViewportBoundsChanged(b,a.viewportBounds,y,!1),Ea(a,!1),E.zb&&(ru(E)||E.ce.add(E.H,"scale",y,a.Ca))}}oe.prototype.onViewportBoundsChanged=function(a,y,x,E){if(!a.D(y)){E===void 0&&(E=!1),E||(this.Ee=!0),this.vd=!0;var b=this.layout;b===null||!b.isViewportSized||this.autoScale!==Xr||a.width===y.width&&a.height===y.height||b.C(),b=this.currentTool,this.Vk===!0&&b instanceof Vi&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Ip(b,this)),this.vb||this.invalidateViewport(a,y),xl(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.canvasSize.width=Math.round(a.width*x),this.fc.canvasSize.height=Math.round(a.height*x),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=E,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function xl(a,y){var x=a.fe;if(x!==null&&x.visible){for(var E=Xe.alloc(),b=1,z=1,tt=x.O.s,ot=tt.length,rt=0;rtut||(pv(at.figure)?z=z*ut/Jt.vx(z,ut):b=b*ut/Jt.vx(b,ut))}if(tt=x.gridCellSize,E.h(z*tt.width,b*tt.height),y!==void 0)b=y.width,z=y.height,a=y.x,tt=y.y;else{if(y=de.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){de.free(y);return}b=y.width,z=y.height,a=y.x,tt=y.y,de.free(y)}x.width=b+2*E.width,x.height=z+2*E.height,y=jt.alloc(),Jt.No(a,tt,0,0,E.width,E.height,y),y.offset(-E.width,-E.height),Xe.free(E),x.part.location=y,jt.free(y)}}oe.prototype.clearSelection=function(a){a===void 0&&(a=!1);var y=this.selection;if(y.count!==0){a||this.R("ChangingSelection",y);for(var x=y.Fa(),E=x.length,b=0;b=E&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||Dl(z,"Layout")),a.xh=!1;for(var tt=a.ai.iterator;tt.next();)Af(a,tt.value,y,E);b.isValidLayout||(!y||b.isRealtime||b.isRealtime===null||E===0?(b.doLayout(a),Br(a),b.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,E===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||E!==0&&E!==1||Xg(z),a.aa=x}}}function Af(a,y,x,E){if(y!==null){for(var b=y.gl.iterator;b.next();)Af(a,b.value,x,E);b=y.layout,b===null||b.isValidLayout||(!x||b.isRealtime||E===0?(y.rh=!y.location.w(),b.doLayout(y),y.C(32),rg(a,y),b.isValidLayout=!0):a.xh=!0)}}wt.yz=function(){for(var a=new ze,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function ev(a){function y(b){var z=b.toLowerCase(),tt=new ze;x.add(b,tt),x.add(z,tt),E.add(b,b),E.add(z,b)}var x=new An,E=new An;y("InitialAnimationStarting"),y("AnimationStarting"),y("AnimationFinished"),y("BackgroundSingleClicked"),y("BackgroundDoubleClicked"),y("BackgroundContextClicked"),y("ClipboardChanged"),y("ClipboardPasted"),y("DocumentBoundsChanged"),y("ExternalObjectsDropped"),y("GainedFocus"),y("InitialLayoutCompleted"),y("LayoutCompleted"),y("LinkDrawn"),y("LinkRelinked"),y("LinkReshaped"),y("LostFocus"),y("Modified"),y("ObjectSingleClicked"),y("ObjectDoubleClicked"),y("ObjectContextClicked"),y("PartCreated"),y("PartResized"),y("PartRotated"),y("SelectionMoved"),y("SelectionCopied"),y("SelectionDeleting"),y("SelectionDeleted"),y("SelectionGrouped"),y("SelectionUngrouped"),y("ChangingSelection"),y("ChangedSelection"),y("SubGraphCollapsed"),y("SubGraphExpanded"),y("TextEdited"),y("TreeCollapsed"),y("TreeExpanded"),y("ViewportBoundsChanged"),y("InvalidateDraw"),a.iw=x,a.hw=E}function em(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function oc(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;ee("Unknown DiagramEvent name: "+y)}wt.Bj=function(a,y){return a=oc(this,a),a!==null&&a.add(y),this},wt.am=function(a,y){a=oc(this,a),a!==null&&a.remove(y)},wt.R=function(a,y,x){var E=oc(this,a),b=new Lu;if(b.diagram=this,a=em(this,a),a!==null&&(b.name=a),y!==void 0&&(b.subject=y),x!==void 0&&(b.parameter=x),y=E.length,y===1)E.M(0)(b);else if(y!==0)for(E=E.Fa(),x=0;x=x.top&&0>=x.left&&0>=x.right&&0>=x.bottom)return y;var E=this.viewportBounds,b=this.scale;E=de.allocAt(0,0,E.width*b,E.height*b);var z=jt.allocAt(0,0);if(a.x>=E.x&&a.xE.x+E.width-x.right&&this.allowHorizontalScroll&&(tt=Math.max(this.scrollHorizontalLineChange,1),tt|=0,z.x+=tt,a.x>E.x+E.width-x.right/2&&(z.x+=tt),a.x>E.x+E.width-x.right/4&&(z.x+=4*tt));return a.y>=E.y&&a.yE.y+E.height-x.bottom&&this.allowVerticalScroll&&(tt=Math.max(this.scrollVerticalLineChange,1),tt|=0,z.y+=tt,a.y>E.y+E.height-x.bottom/2&&(z.y+=tt),a.y>E.y+E.height-x.bottom/4&&(z.y+=4*tt)),z.Xa(Dr)||(y=new jt(y.x+z.x/b,y.y+z.y/b)),de.free(E),jt.free(z),y},wt=oe.prototype,wt.Cs=function(){return null},wt.av=function(){return null},wt.bs=function(a,y){this.pj.add(a,y)},wt.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Fn&&(y.$p=null)})};function sg(a,y,x){function E(){var ut=+new Date;for(z=!0,tt.reset();tt.next();)if(!tt.value[0].al){z=!1;break}z||ut-at>rt?y(x,b,ot):Ze.requestAnimationFrame(E)}for(var b=x.callback,z=!0,tt=a.Og.iterator;tt.next();)if(!tt.value[0].al){z=!1;break}if(typeof b!="function"||z)return y(x,b,a);var ot=a,rt=x.callbackTimeout||300,at=+new Date;return Ze.requestAnimationFrame(function(){E()}),null}wt.Wz=function(a){return ro?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},wt.Jx=function(a){return a===void 0&&(a={}),sg(this,this.Xz,a)},wt.Xz=function(a,y,x){var E=im(x,a,"canvas",null);if(E===null)return null;x=E.Z.canvas;var b=null;if(x!==null)switch(b=a.returnType,b===void 0?b="string":b=b.toLowerCase(),b){case xd+"data":b=E.getImageData(0,0,x.width,x.height);break;case xd:E=(a.document||document).createElement("img"),E.src=x.toDataURL(a.type,a.details),b=E;break;case"blob":return typeof y!="function"&&ee('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof x.toBlob=="function"?(x.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:b=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(b),null):b};function im(a,y,x,E){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&ee("properties argument must be an Object.");var b=y.size||null,z=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(z="NaN");var tt=y.maxSize;y.maxSize===void 0&&(tt=x==="SVG"?new Xe(1/0,1/0):new Xe(2e3,2e3));var ot=y.position||null,rt=y.parts||null,at=y.padding===void 0?1:y.padding,ut=y.background||null,ct=y.omitTemporary;ct===void 0&&(ct=!0);var mt=y.document||document,yt=y.elementFinished||null,St=y.showTemporary;St===void 0&&(St=!ct),y=y.showGrid,y===void 0&&(y=St),b!==null&&isNaN(b.width)&&isNaN(b.height)&&(b=null),typeof at=="number"?at=new jn(at):at instanceof jn||ee("MakeImage padding must be a Margin or a number."),at.left=Math.max(at.left,0),at.right=Math.max(at.right,0),at.top=Math.max(at.top,0),at.bottom=Math.max(at.bottom,0),a.ib.Vc(!0),ct=new Ta(null,mt,void 0,!0);var Mt=ct.context;if(!(b||z||rt||ot))return ct.width=a.Aa+Math.ceil(at.left+at.right),ct.height=a.ya+Math.ceil(at.top+at.bottom),x==="SVG"?E===null?null:(E.resize(ct.width,ct.height,ct.width,ct.height),E.ownerDocument=mt,E.hs=yt,$g(a,E.context,at,new Xe(ct.width,ct.height),a.Ca,a.pa,rt,ut,St,y),E.context):(a.Xm=!1,$g(a,Mt,at,new Xe(ct.width,ct.height),a.Ca,a.pa,rt,ut,St,y),a.Xm=!0,ct.context);var Dt=a.Pp,Tt=a.documentBounds.copy();if(Tt.Fv(a.yb),St)for(var zt=a.Wa.s,Ht=zt.length,Ut=0;UtDt?(z=Dt,b=Tt.width,Tt=Tt.height):(b=tt.width,Tt=tt.height)):(b=Tt.width*z,Tt=Tt.height*z):(z=Dt,b=Tt.width,Tt=Tt.height),at!==null?(b+=ot,Tt+=Ht):at=new jn(0),tt!==null&&(Dt=tt.width,tt=tt.height,isNaN(Dt)&&(Dt=2e3),isNaN(tt)&&(tt=2e3),isFinite(Dt)&&(b=Math.min(b,Dt)),isFinite(tt)&&(Tt=Math.min(Tt,tt))),ct.width=Math.ceil(b),ct.height=Math.ceil(Tt),x==="SVG"?E===null?null:(E.resize(ct.width,ct.height,ct.width,ct.height),E.ownerDocument=mt,E.hs=yt,$g(a,E.context,at,new Xe(Math.ceil(b),Math.ceil(Tt)),z,zt,rt,ut,St,y),E.context):(a.Xm=!1,$g(a,Mt,at,new Xe(Math.ceil(b),Math.ceil(Tt)),z,zt,rt,ut,St,y),a.Xm=!0,ct.context)}he.Object.defineProperties(oe.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof ft||(a===""&&(a="default"),a=a.toLowerCase(),a!==this.nl&&(this.nl=a,a==="default"||a==="canvas"?(a=this.pj.get("svg"),a!==null&&a.Oa.remove(),this.ta&&(this.ib=this.ta.context)):a==="svg"?(this.pj.contains("svg")?a=this.pj.get("svg"):(a=new wl(this,Ze.document),this.bs("svg",a)),this.div!==null&&this.div.appendChild(a.Oa),this.ib=a.context,this.ta&&(this.ta.context.setTransform(this.Mb,0,0,this.Mb,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya))):a!=="debug"||this.pj.contains("SVG")||(a=new wl(this,Ze.document),this.bs("SVG",a),a.Oa.style.backgroundColor="whitesmoke",this.div!==null&&this.div.after(a.Oa)),this.hk()))}},div:{get:function(){return this.Ka},set:function(a){if(this.Ka!==a){var y=this.Ka;y!==null?(y.H=void 0,y.goDiagram=void 0,y.go=void 0,y.innerHTML="",this.ta!==null&&(y=this.ta.Oa,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.ta.mx()),this.ol&&(this.ol.disconnect(),this.ol=null),y=this.toolManager,y!==null&&(y.mouseDownTools.each(function(x){x.cancelWaitAfter()}),y.mouseMoveTools.each(function(x){x.cancelWaitAfter()}),y.mouseUpTools.each(function(x){x.cancelWaitAfter()})),y.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(Ze,"resize",this.Ov,!1),this.removeEventListener(Ze,"wheel",this.$j,!0),Il===this&&(Il=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),hf(this,a),this.hk())}}},$w:{get:function(){return this.Sq}},pi:{get:function(){return this.hf}},draggedLink:{get:function(){return this.nt},set:function(a){this.nt!==a&&(this.nt=a,a!==null&&(this.Vt=a.fromPort,this.Wt=a.toPort))}},Mx:{get:function(){return this.Vt},set:function(a){this.Vt=a}},Nx:{get:function(){return this.Wt},set:function(a){this.Wt=a}},animationManager:{get:function(){return this.Yd}},undoManager:{get:function(){return this.cc.undoManager}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a,this.cc.skipsUndoManager=a}},delaysLayout:{get:function(){return this.lt},set:function(a){this.lt=a}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1a&&_n(a,">= 0",oe,"scrollHorizontalLineChange"),this.iu=a,this.g("scrollHorizontalLineChange",y,a))}},scrollVerticalLineChange:{get:function(){return this.mu},set:function(a){var y=this.mu;y!==a&&(0>a&&_n(a,">= 0",oe,"scrollVerticalLineChange"),this.mu=a,this.g("scrollVerticalLineChange",y,a))}},lastInput:{get:function(){return this.cj},set:function(a){this.cj=a}},previousInput:{get:function(){return this.Qg},set:function(a){this.Qg=a}},firstInput:{get:function(){return this.bq},set:function(a){this.bq=a}},currentCursor:{get:function(){return this.it},set:function(a){if(a===""&&(a=this.Op),this.it!==a){var y=this.ta,x=this.Ka;if(y!==null&&x!==null){this.it=a;var E=y.style.cursor;y.style.cursor=a,x.style.cursor=a,y.style.cursor===E&&(y.style.cursor="-webkit-"+a,x.style.cursor="-webkit-"+a,y.style.cursor===E&&(y.style.cursor="-moz-"+a,x.style.cursor="-moz-"+a,y.style.cursor===E&&(y.style.cursor=a,x.style.cursor=a)))}}}},defaultCursor:{get:function(){return this.Op},set:function(a){a===""&&(a="auto");var y=this.Op;y!==a&&(this.Op=a,this.g("defaultCursor",y,a))}},click:{get:function(){return this.zh},set:function(a){var y=this.zh;y!==a&&(this.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.Fh},set:function(a){var y=this.Fh;y!==a&&(this.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.Bh},set:function(a){var y=this.Bh;y!==a&&(this.Bh=a,this.g("contextClick",y,a))}},mouseOver:{get:function(){return this.Qh},set:function(a){var y=this.Qh;y!==a&&(this.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.Oh},set:function(a){var y=this.Oh;y!==a&&(this.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.Nh},set:function(a){var y=this.Nh;y!==a&&(this.Nh=a,this.g("mouseHold",y,a))}},mouseDragOver:{get:function(){return this.Qt},set:function(a){var y=this.Qt;y!==a&&(this.Qt=a,this.g("mouseDragOver",y,a))}},mouseDrop:{get:function(){return this.Lh},set:function(a){var y=this.Lh;y!==a&&(this.Lh=a,this.g("mouseDrop",y,a))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(a){var y=this.xt;y!==a&&(this.xt=a,this.g("handlesDragDropForTopLevelParts",y,a))}},mouseEnter:{get:function(){return this.Mh},set:function(a){var y=this.Mh;y!==a&&(this.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.Ph},set:function(a){var y=this.Ph;y!==a&&(this.Ph=a,this.g("mouseLeave",y,a))}},toolTip:{get:function(){return this.$h},set:function(a){var y=this.$h;y!==a&&(this.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.Ch},set:function(a){var y=this.Ch;y!==a&&(this.Ch=a,this.g("contextMenu",y,a))}},commandHandler:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a,a.Xe(this))}},toolManager:{get:function(){return this.te},set:function(a){this.te!==a&&(this.te=a,a.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(a){var y=this.ob;y!==a&&(this.ob=a,a.diagram=this,this.currentTool===y&&(this.currentTool=a))}},currentTool:{get:function(){return this.hb},set:function(a){var y=this.hb;y&&(y.isActive&&y.doDeactivate(),y.cancelWaitAfter(),y.doStop()),a===null&&(a=this.defaultTool),a!==null&&(this.hb=a,a.diagram=this,a.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(a){var y=this.Nt;if(y!==a)if(0<=a&&!isNaN(a)){if(this.Nt=a,this.g("maxSelectionCount",y,a),!this.undoManager.isUndoingRedoing&&(a=this.selection.count-a,0= 0",oe,"maxSelectionCount")}},nodeSelectionAdornmentTemplate:{get:function(){return this.St},set:function(a){var y=this.St;y!==a&&(this.St=a,this.g("nodeSelectionAdornmentTemplate",y,a))}},groupSelectionAdornmentTemplate:{get:function(){return this.wt},set:function(a){var y=this.wt;y!==a&&(this.wt=a,this.g("groupSelectionAdornmentTemplate",y,a))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kt},set:function(a){var y=this.Kt;y!==a&&(this.Kt=a,this.g("linkSelectionAdornmentTemplate",y,a))}},highlighteds:{get:function(){return this.nw}},isModified:{get:function(){var a=this.undoManager;return a.isEnabled?a.currentTransaction!==null?!0:this.rn&&this.Ce!==a.historyIndex:this.rn},set:function(a){if(this.rn!==a){this.rn=a;var y=this.undoManager;!a&&y.isEnabled&&(this.Ce=y.historyIndex),a||$p(this)}}},model:{get:function(){return this.cc},set:function(a){var y=this.cc;if(y!==a){this.currentTool.doCancel(),y&&y.undoManager!==a.undoManager&&y.undoManager.isInTransaction&&ee("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=uf(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var E=this.vb;this.vb=!0,Dl(this.animationManager,"Model"),y&&(this.pf!==null&&this.pf.each(function(z){return y.ik(z)}),y.ik(this.Oc)),this.cc=a,this.partManager=Cf(this.cc.type);for(var b=0;bthis.scale&&(this.scale=a)):_n(a,"> 0",oe,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(a){var y=this.Mt;y!==a&&(0 0",oe,"maxScale"))}},zoomPoint:{get:function(){return this.zu},set:function(a){this.zu.D(a)||(this.zu=a=a.J())}},contentAlignment:{get:function(){return this.zk},set:function(a){var y=this.zk;y.D(a)||(this.zk=a=a.J(),this.g("contentAlignment",y,a),Ea(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(a){var y=this.pq;y.D(a)||(this.pq=a=a.J(),this.g("initialContentAlignment",y,a))}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new jn(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.Ya(),this.g("padding",y,a))}},partManager:{get:function(){return this.Pc},set:function(a){var y=this.Pc;y!==a&&(a.diagram!==null&&ee("Cannot share PartManagers between Diagrams: "+a.toString()),y&&y.Xe(null),this.Pc=a,a.Xe(this))}},nodes:{get:function(){return this.partManager.nodes.iterator}},links:{get:function(){return this.partManager.links.iterator}},parts:{get:function(){return this.partManager.parts.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;y!==a&&(this.Sc=a,a.diagram=this,a.group=null,this.xh=!0,this.g("layout",y,a),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(a){var y=this.Ht;if(y!==a&&(this.Ht=a,this.g("isTreePathToChildren",y,a),!this.undoManager.isUndoingRedoing))for(a=this.nodes;a.next();)Kf(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==Wu&&a!==jo&&a!==uc&&ee("Unknown Diagram.treeCollapsePolicy: "+a),this.uu=a,this.g("treeCollapsePolicy",y,a))}},Ue:{get:function(){return this.pw},set:function(a){this.pw=a}},avoidanceCellSize:{get:function(){return this.aw},set:function(a){this.Xh=null,this.aw=new Xe(Math.max(1,a.width),Math.max(1,a.height))}},avoidanceLimit:{get:function(){return this.bw},set:function(a){this.bw=Math.max(1,a)}},autoScrollInterval:{get:function(){return this.vp},set:function(a){var y=this.vp;y!==a&&(this.vp=a,this.g("autoScrollInterval",y,a))}},autoScrollRegion:{get:function(){return this.xp},set:function(a){typeof a=="number"&&(a=new jn(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),he.Object.defineProperties(oe,{licenseKey:{get:function(){return Df.jc()},set:function(a){Df.add(a.replace(/\s/g,""))}},version:{get:function(){return Sd}}}),oe.prototype.makeImageData=oe.prototype.Jx,oe.prototype.makeImage=oe.prototype.Wz,oe.prototype.cacheGroupExternalLinks=oe.prototype.Fu,oe.prototype.addRenderer=oe.prototype.bs,oe.prototype.makeSVG=oe.prototype.av,oe.prototype.makeSvg=oe.prototype.Cs,oe.prototype.stopAutoScroll=oe.prototype.ug,oe.prototype.doAutoScroll=oe.prototype.gs,oe.prototype.isUnoccupied=oe.prototype.Yj,oe.prototype.raiseDiagramEvent=oe.prototype.R,oe.prototype.removeDiagramListener=oe.prototype.am,oe.prototype.addDiagramListener=oe.prototype.Bj,oe.prototype.findTreeRoots=oe.prototype.yz,oe.prototype.layoutDiagram=oe.prototype.Uz,oe.prototype.findTopLevelGroups=oe.prototype.qz,oe.prototype.findTopLevelNodesAndLinks=oe.prototype.rz,oe.prototype.ensureBounds=oe.prototype.Va,oe.prototype.findLinksByExample=oe.prototype.ls,oe.prototype.findNodesByExample=oe.prototype.ms,oe.prototype.findLinkForData=oe.prototype.Kc,oe.prototype.findNodeForData=oe.prototype.ii,oe.prototype.findPartForData=oe.prototype.Lc,oe.prototype.findLinkForKey=oe.prototype.findLinkForKey,oe.prototype.findNodeForKey=oe.prototype.Vb,oe.prototype.findPartForKey=oe.prototype.findPartForKey,oe.prototype.rebuildParts=oe.prototype.Wd,oe.prototype.transformViewToDoc=oe.prototype.Ps,oe.prototype.transformRectDocToView=oe.prototype.zA,oe.prototype.transformDocToView=oe.prototype.op,oe.prototype.centerRect=oe.prototype.es,oe.prototype.scrollToRect=oe.prototype.tv,oe.prototype.scroll=oe.prototype.scroll,oe.prototype.highlightCollection=oe.prototype.Jz,oe.prototype.highlight=oe.prototype.Iz,oe.prototype.selectCollection=oe.prototype.rA,oe.prototype.select=oe.prototype.select,oe.prototype.updateAllRelationshipsFromData=oe.prototype.rp,oe.prototype.updateAllTargetBindings=oe.prototype.updateAllTargetBindings,oe.prototype.commit=oe.prototype.commit,oe.prototype.rollbackTransaction=oe.prototype.Kf,oe.prototype.commitTransaction=oe.prototype.eb,oe.prototype.startTransaction=oe.prototype.Ea,oe.prototype.raiseChanged=oe.prototype.g,oe.prototype.raiseChangedEvent=oe.prototype.cb,oe.prototype.removeChangedListener=oe.prototype.ik,oe.prototype.addChangedListener=oe.prototype.Pe,oe.prototype.removeModelChangedListener=oe.prototype.mA,oe.prototype.addModelChangedListener=oe.prototype.Yw,oe.prototype.findLayer=oe.prototype.Qj,oe.prototype.removeLayer=oe.prototype.kA,oe.prototype.addLayerAfter=oe.prototype.Cy,oe.prototype.addLayerBefore=oe.prototype.Ww,oe.prototype.addLayer=oe.prototype.Al,oe.prototype.moveParts=oe.prototype.moveParts,oe.prototype.copyParts=oe.prototype.Kj,oe.prototype.removeParts=oe.prototype.Is,oe.prototype.remove=oe.prototype.remove,oe.prototype.add=oe.prototype.add,oe.prototype.clearDelayedGeometries=oe.prototype.bx,oe.prototype.setProperties=oe.prototype.nm,oe.prototype.attach=oe.prototype.Du,oe.prototype.set=oe.prototype.set,oe.prototype.resetInputOptions=oe.prototype.Sx,oe.prototype.setInputOption=oe.prototype.sA,oe.prototype.getInputOption=oe.prototype.Ql,oe.prototype.resetRenderingHints=oe.prototype.Tx,oe.prototype.setRenderingHint=oe.prototype.Xx,oe.prototype.getRenderingHint=oe.prototype.Gf,oe.prototype.maybeUpdate=oe.prototype.bd,oe.prototype.requestUpdate=oe.prototype.$b,oe.prototype.delayInitialization=oe.prototype.Xy,oe.prototype.isUpdateRequested=oe.prototype.Pz,oe.prototype.invalidateDocumentBounds=oe.prototype.Ya,oe.prototype.findObjectsNear=oe.prototype.og,oe.prototype.findPartsNear=oe.prototype.mz,oe.prototype.findObjectsIn=oe.prototype.Cf,oe.prototype.findPartsIn=oe.prototype.ux,oe.prototype.findObjectsAt=oe.prototype.ji,oe.prototype.findPartsAt=oe.prototype.lz,oe.prototype.findObjectAt=oe.prototype.ic,oe.prototype.findPartAt=oe.prototype.Ol,oe.prototype.focusObject=oe.prototype.zz,oe.prototype.alignDocument=oe.prototype.Jy,oe.prototype.zoomToRect=oe.prototype.BA,oe.prototype.zoomToFit=oe.prototype.zoomToFit,oe.prototype.diagramScroll=oe.prototype.kx,oe.prototype.focus=oe.prototype.focus;var lc=new An,om=null,ro=Ze.document!==void 0,yd=null,Th="",Xr=new Me(oe,"None",0),$s=new Me(oe,"Uniform",1),Fh=new Me(oe,"UniformToFill",2),ag=new Me(oe,"CycleAll",10),Nf=new Me(oe,"CycleNotDirected",11),Tf=new Me(oe,"CycleNotDirectedFast",12),Ff=new Me(oe,"CycleNotUndirected",13),Bf=new Me(oe,"CycleDestinationTree",14),bf=new Me(oe,"CycleSourceTree",15),Hu=new Me(oe,"DocumentScroll",1),lg=new Me(oe,"InfiniteScroll",2),Wu=new Me(oe,"TreeParentCollapsed",21),jo=new Me(oe,"AllParentsCollapsed",22),uc=new Me(oe,"AnyParentsCollapsed",23),Df=new ze,Sd="2.3.10",xd="image",ug=null,rm=!1;function Gr(){if(ro){var a=Ze.document.createElement("canvas"),y=a.getContext("2d"),x=Re("7ca11abfd022028846");y[x]=Re("398c3597c01238");for(var E=["5da73c80a36455d7038e4972187c3cae51fd22",En.Dx+"4ae6247590da4bb21c324ba3a84e385776",Rn.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Jt.za],b=1;5>b;b++)y[Re("7ca11abfd7330390")](Re(E[b-1]),10,15*b);for(y[x]=Re("39f046ebb36e4b"),x=1;5>x;x++)y[Re("7ca11abfd7330390")](Re(E[x-1]),10,15*x);(E.length!==4||E[0][0]!=="5"||E[3][0]!=="7")&&(Rn.prototype.Cd=Rn.prototype.Eu),ug=a}}oe.className="Diagram",oe.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Ze.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof oe?y.H:null},oe.inherit=function(a,y){function x(){}if(Object.getPrototypeOf(a).prototype)throw Error(`Used go.Diagram.inherit defining already defined class -`+a);x.prototype=y.prototype,a.prototype=new x,a.prototype.constructor=a},oe.useDOM=function(a){ro=a?Ze.document!==void 0:!1},oe.isUsingDOM=function(){return ro},oe.None=Xr,oe.Uniform=$s,oe.UniformToFill=Fh,oe.CycleAll=ag,oe.CycleNotDirected=Nf,oe.CycleNotDirectedFast=Tf,oe.CycleNotUndirected=Ff,oe.CycleDestinationTree=Bf,oe.CycleSourceTree=bf,oe.DocumentScroll=Hu,oe.InfiniteScroll=lg,oe.TreeParentCollapsed=Wu,oe.AllParentsCollapsed=jo,oe.AnyParentsCollapsed=uc;function sm(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Pd(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)t:{y="f";var x=Ze[Re("76a715b2f73f148a")][Re("72ba13b5")]||"";if(a.Rc=!0,ro){var E=oe[Re("76a115b6ed251eaf4692")];if(E)for(var b=Df.iterator;b.next()&&(E=b.value,E=Re(E).split(Re("39e9")),!(6>E.length));){var z=Re(E[1]).split(".");if(E[4]!=="7da71ca0")break;var tt=Re(En[Re("6cae19")]).split(".");if(z[0]>tt[0]||z[0]===tt[0]&&z[1]>=tt[1]){var ot=Ze[Re("74a900bae4370f8b51")][Re("6fbb13a1c2311e8a57")].toLowerCase();if(tt=ot[Re("73a612b6fb191d")](Re("3aad1ab6e022098b4dc4")),z=Re(E[2]),-1tt&&z!==Re("7da71ca0ad381e90")&&(tt=y[Re("73a612b6fb191d")](Re("76a715b2ef3e149757"))),0>tt&&(tt=y[Re("73a612b6fb191d")](Re("76a715b2ef3e149757"))),0>tt&&(tt=y[Re("73a612b6fb191d")](Re("2bfa41fdb3784bca12"))),0>tt&&(tt=x[Re("73a612b6fb191d")](Re("7baa19a6f76c1988428554"))),a.Rc=!(0<=tt&&ttot),!a.Rc)))break;if(z[0]==="#"){tt=Ze.document.createElement("div");for(var rt=E[0].replace(/[A-Za-z]/g,"");4>rt.length;)rt+="9";if(ot=rt,rt=rt.substr(rt.length-4),E="",E+=["gsh","gsf"][parseInt(rt.substr(0,1),10)%2],E+=["Header","Background","Display","Feedback"][parseInt(rt.substr(0,1),10)%4],tt[Re("79a417a0f0181a8946")]=E,Ze.document[Re("78a712aa")]){Ze.document[Re("78a712aa")][Re("7bb806b6ed32388c4a875b")](tt),rt=Ze.getComputedStyle(tt).getPropertyValue(Re("78a704b7e62456904c9b12701b6532a8"));var at=Ze.getComputedStyle(tt).getPropertyValue(Re("75b817b0ea2202"));if(Ze.document[Re("78a712aa")][Re("68ad1bbcf533388c4a875b")](tt),rt){if(tt=Ze[Re("77a902b0eb1b1e804a8a")],at==="0."+parseInt(ot,10)%100||rt.indexOf(parseInt(z[1]+z[2],16))!==-1&&rt.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(tt&&tt(Re("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(E="."+E,z=0;zE.updateDelay?E.N():E.o||(E.o=!0,setTimeout(function(){return E.redraw()},E.updateDelay))},x.Of=function(){E.observed!==null&&Et(E)},x.autoScale=$s,x.vb=!1,y&&Object.assign(x,y),x}ye(ft,oe),ft.prototype.computePixelRatio=function(){return 1},ft.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var a=this.ta,y=this.ib;if(a!==null&&y!==null){if(pd(this),this.ql===null){var x=new Ta(null);x.width=a.width,x.height=a.height,this.ql=x}try{this.ta=this.ql,this.ib=this.ta.context,this.ib.Vc(!0),this.ib.setTransform(1,0,0,1,0,0),this.ib.clearRect(0,0,this.ta.width,this.ta.height),Pt(this)}finally{this.ta=a,this.ib=y}}}oe.prototype.redraw.call(this)},ft.prototype.gc=function(){if(this.Ka===null&&ee("No div specified"),this.ta===null&&ee("No canvas specified"),!(this.ta instanceof wl)&&(Iv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){pd(this);var y=this.ta;a=this.ib,a.Vc(!0),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,y.width,y.height),1>this.updateDelay?Pt(this):this.ql!==null&&(a.drawImage(this.ql.Oa,0,0),y=this.Ab,y.reset(),this.scale!==1&&y.scale(this.scale),this.position.x===0&&this.position.y===0||y.translate(-this.position.x,-this.position.y),a.scale(this.Mb,this.Mb),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.yc()),y=this.Wa.s;for(var x=y.length,E=0;Ea&&(a=0),this.ia!==a&&(this.ia=a)}}}),ft.className="Overview";function It(){to.call(this),this.j=null}ye(It,to),It.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||!a.allowMove||!a.allowSelect)return!1;var y=a.observed;if(y===null)return!1;var x=a.lastInput;return!x.left||a.currentTool!==this&&(!this.isBeyondDragSize()||x.isTouchEvent&&x.timestamp-a.firstInput.timestampy.maxScale||(y.scale=a))},bt.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==Xr?!1:(a=y.scale*a,ay.maxScale?!1:y.allowZoom)},bt.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===Xr&&(a=y.scale*a,ay.maxScale||(y.scale=a))},bt.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==Xr?!1:(a=y.scale*a,ay.maxScale?!1:y.allowZoom)},bt.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;ay.maxScale||(y.scale=a)},bt.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return ay.maxScale?!1:y.allowZoom},bt.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,E=a.scale;Dl(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&E===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=ts):(this.Jt=E,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),Xg(y)},bt.prototype.canZoomToFit=function(){return this.diagram.allowZoom},bt.prototype.scrollToPart=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.Va(),a===null){try{this.cg!==null&&(this.cg.next()?a=this.cg.value:this.cg=null)}catch(rt){this.cg=null}a===null&&(0a&&(a+=360)),a},wt.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},wt.qs=function(a,y){return y===void 0&&(y=new jt),y.assign(a),this.oe.Cd(y),y},wt.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},wt.Sj=function(a,y,x,E,b){var z=this.transform,tt=1/(z.m11*z.m22-z.m12*z.m21),ot=z.m22*tt,rt=-z.m12*tt,at=-z.m21*tt,ut=z.m11*tt,ct=tt*(z.m21*z.dy-z.m22*z.dx),mt=tt*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,Jt.Ff(z.left,z.top,z.right,z.bottom,a,y,x,E,b)):(tt=a*ot+y*at+ct,a=a*rt+y*ut+mt,y=x*ot+E*at+ct,x=x*rt+E*ut+mt,b.h(0,0),E=this.naturalBounds,x=Jt.Ff(0,0,E.width,E.height,tt,a,y,x,b),b.transform(z),x)},Qt.prototype.measure=function(a,y,x,E){if(ea(this)!==!1){var b=this.Kg,z=b.right+b.left;b=b.top+b.bottom,a=Math.max(a-z,0),y=Math.max(y-b,0),x=Math.max((x||0)-z,0),E=Math.max((E||0)-b,0),z=this.angle,b=this.desiredSize;var tt=this.kq();z===90||z===270?(a=isFinite(b.height)?b.height+tt:a,y=isFinite(b.width)?b.width+tt:y):(a=isFinite(b.width)?b.width+tt:a,y=isFinite(b.height)?b.height+tt:y),b=x||0,tt=E||0;var ot=this instanceof ke;switch(ws(this,!0)){case Pe:tt=b=0,ot&&(y=a=1/0);break;case Le:isFinite(a)&&a>x&&(b=a),isFinite(y)&&y>E&&(tt=y);break;case rn:isFinite(a)&&a>x&&(b=a),tt=0,ot&&(y=1/0);break;case mn:isFinite(y)&&y>E&&(tt=y),b=0,ot&&(a=1/0)}ot=this.maxSize;var rt=this.minSize;b>ot.width&&rt.widthot.height&&rt.heighta.height||this.Cb>a.width))&&(x=!0)),this.l=x?this.l|256:this.l&-257,this.Ib.w()||ee("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),zl(this,!1),de.free(z)},wt=Qt.prototype,wt.eh=function(){};function Qr(a,y,x,E,b){if(a.Ib.h(y,x,E,b),!a.desiredSize.w()){var z=a.uc;x=a.Kg,y=x.right+x.left;var tt=x.top+x.bottom;switch(x=z.width+y,z=z.height+tt,E+=y,b+=tt,y=ws(a,!0),x===E&&z===b&&(y=Pe),y){case Pe:(x>E||z>b)&&(zo(a,!0),a.measure(x>E?E:x,z>b?b:z,0,0));break;case Le:zo(a,!0),a.measure(E,b,0,0);break;case rn:zo(a,!0),a.measure(E,z,0,0);break;case mn:zo(a,!0),a.measure(x,b,0,0)}}}wt.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||zv(x,!0),this.N(),Cu(a,y)||(x.oh(),this.Pn(x)))},wt.Pn=function(a){this.portId!==null&&(zv(a,!0),a instanceof Ke&&U1(a,this))},wt.gc=function(a,y){if(!ga(this,a,y)&&this.visible){var x=this.opacity;if(x!==0){var E=1;x!==1&&(E=a.globalAlpha,a.globalAlpha=E*x);var b="";this.filter!==""&&(b=a.filter,a.filter=this.filter);var z=this instanceof ke&&Vu(this),tt=this.Ib;if(z){var ot=this.Ib,rt=this.dc,at=this.areaBackground,ut=this.Ma;at===null&&ut===null||a.yc(),at!==null&&(ho(this,a,at,!0,!0,rt,ot),at instanceof fi&&at.type===pa?(a.beginPath(),a.rect(ot.x,ot.y,ot.width,ot.height),a.ng(at)):a.fillRect(ot.x,ot.y,ot.width,ot.height)),ut!==null&&(ho(this,a,ut,!0,!1,rt,ot),ut instanceof fi&&ut.type===pa?(a.beginPath(),a.rect(ot.x,ot.y,ot.width,ot.height),a.ng(ut)):a.fillRect(ot.x,ot.y,ot.width,ot.height)),this.hh(a,y)}if(!z&&(z||tt.width!==0&&tt.height!==0&&!isNaN(tt.x)&&!isNaN(tt.y))){z=this.transform,ot=this.panel,this.l&4096&&xr(this),at=this.part,rt=!1;var ct=0;at&&y.Gf("drawShadows")&&(rt=at.isShadowed)&&(ut=at.shadowOffset,ct=Math.max(ut.y,ut.x)*y.scale*y.Mb),ut=this.Dd();var mt;if(!(mt=y.$i||!ut)){var yt=this.naturalBounds;mt=this.wh;var St=mt.m11,Mt=mt.m21,Dt=mt.dx,Tt=mt.m12,zt=mt.m22,Ht=mt.dy,Ut,Xt=Ut=0;mt=Ut*St+Xt*Mt+Dt;var ie=Ut*Tt+Xt*zt+Ht;Ut=yt.width+ct,Xt=0;var We=Ut*St+Xt*Mt+Dt;Ut=Ut*Tt+Xt*zt+Ht,Xt=Math.min(mt,We);var qe=Math.min(ie,Ut),Qe=Math.max(mt+0,We)-Xt,Ee=Math.max(ie+0,Ut)-qe;mt=Xt,ie=qe,Ut=yt.width+ct,Xt=yt.height+ct,We=Ut*St+Xt*Mt+Dt,Ut=Ut*Tt+Xt*zt+Ht,Xt=Math.min(mt,We),qe=Math.min(ie,Ut),Qe=Math.max(mt+Qe,We)-Xt,Ee=Math.max(ie+Ee,Ut)-qe,mt=Xt,ie=qe,Ut=0,Xt=yt.height+ct,We=Ut*St+Xt*Mt+Dt,Ut=Ut*Tt+Xt*zt+Ht,Xt=Math.min(mt,We),qe=Math.min(ie,Ut),Qe=Math.max(mt+Qe,We)-Xt,Ee=Math.max(ie+Ee,Ut)-qe,mt=Xt,ie=qe,ct=y.viewportBounds,yt=ct.x,St=ct.y,mt=!(mt>ct.width+yt||yt>Qe+mt||ie>ct.height+St||St>Ee+ie)}if(mt){if(mt=(this.l&256)!==0,a.clipInsteadOfFill&&(mt=!1),this instanceof Ei&&(a.font=this.font),mt){if(ie=ot.se()?ot.naturalBounds:ot.actualBounds,Qe=Math.max(tt.x,ie.x),Ee=Math.max(tt.y,ie.y),ct=Math.min(tt.right,ie.right)-Qe,yt=Math.min(tt.bottom,ie.bottom)-Ee,St=this.tb,St!==null&&(Qe=St.x,Ee=St.y,ct=St.width,yt=St.height),Qe>tt.width+tt.x||tt.x>ie.width+ie.x){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}a.save(),a.beginPath(),a.rect(Qe,Ee,ct,yt),a.clip()}if(ut){if(!at.isVisible()){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}rt&&(ie=at.shadowOffset,a.Ev(ie.x*y.scale*this.scale*y.Mb,ie.y*y.scale*this.scale*y.Mb,at.shadowBlur),uu(a),a.shadowColor=at.shadowColor)}rt&&this.shadowVisible===!0?uu(a):rt&&this.shadowVisible===!1&&Rl(a),at=this.naturalBounds,this.areaBackground!==null&&(a.yc(),ta(this,a,at,tt)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),rt&&cr(this,ot)&&this.shadowVisible===null&&Rl(a),this.Ma!==null&&(a.yc(),Bs(this,a,at,tt)),rt&&(this.Ma!==null||this.areaBackground!==null||cr(this,ot))?(Ua(this,!0),this.shadowVisible===null&&Rl(a)):Ua(this,!1),this.hh(a,y),rt&&this.l&512&&uu(a),ut&&rt&&Rl(a),mt&&(a.restore(),a.Vc(this instanceof ke)),z.ws()||(y=1/(z.m11*z.m22-z.m12*z.m21),a.transform(z.m22*y,-z.m12*y,-z.m21*y,z.m11*y,y*(z.m21*z.dy-z.m22*z.dx),y*(z.m12*z.dx-z.m11*z.dy)))}}x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b)}}};function cr(a,y){return y===null?!1:(Vu(y)&&(y=y.panel),(y.l&512)!==0||(y.type===ke.Auto||y.type===ke.Spot)&&y.Pb()!==a)}wt.Dv=function(){};function ta(a,y,x,E){ho(a,y,a.areaBackground,!0,!0,x,E),a.areaBackground instanceof fi&&a.areaBackground.type===pa?(y.beginPath(),y.rect(E.x,E.y,E.width,E.height),y.ng(a.areaBackground)):y.fillRect(E.x,E.y,E.width,E.height)}function Bs(a,y,x,E){var b=a.kq(),z=x.x,tt=x.y,ot=x.width+b,rt=x.height+b;ho(a,y,a.Ma,!0,!1,x,E),a.Ma instanceof fi&&a.Ma.type===pa?(y.beginPath(),y.rect(z-b/2,tt-b/2,ot,rt),y.ng(a.Ma)):y.fillRect(z-b/2,tt-b/2,ot,rt)}function Hr(a,y,x){for(var E=y.O.s,b=E.length,z=-1,tt=0;ttb)&&ee("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+b),a.isRow=!0,a.index=b):y.column!==void 0&&(b=y.column,(b==null||b===1/0||isNaN(b)||0>b)&&ee("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+b),a.isRow=!1,a.index=b),b=new Zn;for(x in y)x!=="row"&&x!=="column"&&(b[x]=y[x]);fd(a,b)}else fd(a,y);else ee('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function Uu(a,y){hc.add(a,y)}function am(a,y,x){x===void 0&&(x=null);var E=a[1];if(typeof x=="function"?x(E):typeof E=="string")return a.splice(1,1),E;if(y===void 0)throw Error("no "+(typeof x=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}he.Object.defineProperties(Qt.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new gg),this.A.zp=a)}},localBindings:{get:function(){return this.A!==null?this.A.te:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new gg),this.A.te=a)}},srcBindings:{get:function(){return this.A!==null?this.A.wm:null},set:function(a){this.srcBindings!==a&&(this.A===null&&(this.A=new gg),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(On(this),this.A.Ci=a,this.Uc=!0,this.N(),this.g("shadowVisible",y,a))}},enabledChanged:{get:function(){return this.A!==null?this.A.Hb:null},set:function(a){var y=this.enabledChanged;y!==a&&(On(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:gs},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new Bh),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===gs&&(this.angle=0))}},segmentIndex:{get:function(){return this.Ua!==null?this.Ua.u:-1/0},set:function(a){a=Math.round(a);var y=this.segmentIndex;y!==a&&(this.Ua===null&&(this.Ua=new Bh),this.Ua.u=a,this.v(),this.g("segmentIndex",y,a))}},segmentFraction:{get:function(){return this.Ua!==null?this.Ua.o:0},set:function(a){isNaN(a)||0>a?a=0:1a||1=a&&ee("GraphObject.scale for "+this+" must be greater than zero, not: "+a),this.Ca=a,this.v(),this.g("scale",y,a))}},angle:{get:function(){return this.Kb},set:function(a){var y=this.Kb;y!==a&&(a%=360,0>a&&(a+=360),y!==a&&(this.Kb=a,Xy(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,E=this.jd,b=E.width,z=E.height;(b===y||isNaN(b)&&isNaN(y))&&(z===x||isNaN(z)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof bn&&this.qc(),this.g("desiredSize",E,a),kr(this)&&(a=this.part,a!==null&&(Oi(this,a,"width"),Oi(this,a,"height"))))}},width:{get:function(){return this.jd.width},set:function(a){var y=this.jd.width;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new Xe(a,this.jd.height).freeze(),this.v(),this instanceof bn&&this.qc(),this.g("desiredSize",y,a),kr(this)&&(a=this.part,a!==null&&Oi(this,a,"width")))}},height:{get:function(){return this.jd.height},set:function(a){var y=this.jd.height;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new Xe(this.jd.width,a).freeze(),this.v(),this instanceof bn&&this.qc(),this.g("desiredSize",y,a),kr(this)&&(a=this.part,a!==null&&Oi(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:Jn},set:function(a){var y=this.minSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=0),isNaN(a.height)&&(a.height=0),a.freeze(),On(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:vr},set:function(a){var y=this.maxSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=1/0),isNaN(a.height)&&(a.height=1/0),a.freeze(),On(this),this.A.o=a,this.v(),this.g("maxSize",y,a))}},measuredBounds:{get:function(){return this.uc}},naturalBounds:{get:function(){return this.dc}},margin:{get:function(){return this.Kg},set:function(a){typeof a=="number"&&(a=new jn(a));var y=this.Kg;y.D(a)||(this.Kg=a=a.J(),this.v(),this.g("margin",y,a))}},transform:{get:function(){return this.l&2048&&xr(this),this.Ab}},oe:{get:function(){return this.l&4096&&xr(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(On(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:Pe},set:function(a){this.reshapingBehavior!==a&&(On(this),this.A.Pf=a)}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(a.Mc()&&!a.Xb()&&ee("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),ls(this),this.g("alignment",y,a))}},column:{get:function(){return this.Ag},set:function(a){a=Math.round(a);var y=this.Ag;y!==a&&(0>a&&_n(a,">= 0",Qt,"column"),this.Ag=a,this.v(),this.g("column",y,a),this.svg!==null&&this.svg.remove())}},columnSpan:{get:function(){return this.A!==null?this.A.ob:1},set:function(a){a=Math.round(a);var y=this.columnSpan;y!==a&&(1>a&&_n(a,">= 1",Qt,"columnSpan"),On(this),this.A.ob=a,this.v(),this.g("columnSpan",y,a))}},row:{get:function(){return this.io},set:function(a){a=Math.round(a);var y=this.io;y!==a&&(0>a&&_n(a,">= 0",Qt,"row"),this.io=a,this.v(),this.g("row",y,a),this.svg!==null&&this.svg.remove())}},rowSpan:{get:function(){return this.A!==null?this.A.Bi:1},set:function(a){a=Math.round(a);var y=this.rowSpan;y!==a&&(1>a&&_n(a,">= 1",Qt,"rowSpan"),On(this),this.A.Bi=a,this.v(),this.g("rowSpan",y,a))}},spanAllocation:{get:function(){return this.A!==null?this.A.Di:null},set:function(a){var y=this.spanAllocation;y!==a&&(On(this),this.A.Di=a,this.v(),this.g("spanAllocation",y,a))}},alignmentFocus:{get:function(){return this.sk},set:function(a){var y=this.sk;y.D(a)||(this.sk=a=a.J(),this.v(),this.g("alignmentFocus",y,a))}},portId:{get:function(){return this.Yn},set:function(a){var y=this.Yn;if(y!==a){var x=this.part;x===null||x instanceof Ke||ee("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Wv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,K1(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:$o},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),wd(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&_n(a,">= 0",Qt,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),wd(this))}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:0},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.g("toShortLength",y,a),wd(this))}},toLinkable:{get:function(){return this.ba!==null?this.ba.Tr:null},set:function(a){var y=this.toLinkable;y!==a&&(this.Xc(),this.ba.Tr=a,this.g("toLinkable",y,a))}},toMaxLinks:{get:function(){return this.ba!==null?this.ba.Ur:1/0},set:function(a){var y=this.toMaxLinks;y!==a&&(0>a&&_n(a,">= 0",Qt,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:$o},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),wd(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&_n(a,">= 0",Qt,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),wd(this))}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:0},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.g("fromShortLength",y,a),wd(this))}},fromLinkable:{get:function(){return this.ba!==null?this.ba.hq:null},set:function(a){var y=this.fromLinkable;y!==a&&(this.Xc(),this.ba.hq=a,this.g("fromLinkable",y,a))}},fromMaxLinks:{get:function(){return this.ba!==null?this.ba.iq:1/0},set:function(a){var y=this.fromMaxLinks;y!==a&&(0>a&&_n(a,">= 0",Qt,"fromMaxLinks"),this.Xc(),this.ba.iq=a,this.g("fromMaxLinks",y,a))}},cursor:{get:function(){return this.A!==null?this.A.j:""},set:function(a){var y=this.cursor;y!==a&&(On(this),this.A.j=a,this.g("cursor",y,a))}},click:{get:function(){return this.A!==null?this.A.zh:null},set:function(a){var y=this.click;y!==a&&(On(this),this.A.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.A!==null?this.A.Fh:null},set:function(a){var y=this.doubleClick;y!==a&&(On(this),this.A.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.A!==null?this.A.Bh:null},set:function(a){var y=this.contextClick;y!==a&&(On(this),this.A.Bh=a,this.g("contextClick",y,a))}},mouseEnter:{get:function(){return this.A!==null?this.A.Mh:null},set:function(a){var y=this.mouseEnter;y!==a&&(On(this),this.A.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.A!==null?this.A.Ph:null},set:function(a){var y=this.mouseLeave;y!==a&&(On(this),this.A.Ph=a,this.g("mouseLeave",y,a))}},mouseOver:{get:function(){return this.A!==null?this.A.Qh:null},set:function(a){var y=this.mouseOver;y!==a&&(On(this),this.A.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.A!==null?this.A.Oh:null},set:function(a){var y=this.mouseHover;y!==a&&(On(this),this.A.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.A!==null?this.A.Nh:null},set:function(a){var y=this.mouseHold;y!==a&&(On(this),this.A.Nh=a,this.g("mouseHold",y,a))}},mouseDragEnter:{get:function(){return this.A!==null?this.A.Of:null},set:function(a){var y=this.mouseDragEnter;y!==a&&(On(this),this.A.Of=a,this.g("mouseDragEnter",y,a))}},mouseDragLeave:{get:function(){return this.A!==null?this.A.Xd:null},set:function(a){var y=this.mouseDragLeave;y!==a&&(On(this),this.A.Xd=a,this.g("mouseDragLeave",y,a))}},mouseDrop:{get:function(){return this.A!==null?this.A.Lh:null},set:function(a){var y=this.mouseDrop;y!==a&&(On(this),this.A.Lh=a,this.g("mouseDrop",y,a))}},actionDown:{get:function(){return this.A!==null?this.A.V:null},set:function(a){var y=this.actionDown;y!==a&&(On(this),this.A.V=a,this.g("actionDown",y,a))}},actionMove:{get:function(){return this.A!==null?this.A.ia:null},set:function(a){var y=this.actionMove;y!==a&&(On(this),this.A.ia=a,this.g("actionMove",y,a))}},actionUp:{get:function(){return this.A!==null?this.A.Ha:null},set:function(a){var y=this.actionUp;y!==a&&(On(this),this.A.Ha=a,this.g("actionUp",y,a))}},actionCancel:{get:function(){return this.A!==null?this.A.F:null},set:function(a){var y=this.actionCancel;y!==a&&(On(this),this.A.F=a,this.g("actionCancel",y,a))}},toolTip:{get:function(){return this.A!==null?this.A.$h:null},set:function(a){var y=this.toolTip;y!==a&&(On(this),this.A.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.A!==null?this.A.Ch:null},set:function(a){var y=this.contextMenu;y!==a&&(On(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),Qt.prototype.trigger=Qt.prototype.Jv,Qt.prototype.findBindingPanel=Qt.prototype.ih,Qt.prototype.findTemplateBinder=Qt.prototype.pz,Qt.prototype.setProperties=Qt.prototype.nm,Qt.prototype.apply=Qt.prototype.apply,Qt.prototype.attach=Qt.prototype.Du,Qt.prototype.set=Qt.prototype.set,Qt.prototype.isEnabledObject=Qt.prototype.If,Qt.prototype.isVisibleObject=Qt.prototype.Ed,Qt.prototype.isContainedBy=Qt.prototype.rg,Qt.prototype.getNearestIntersectionPoint=Qt.prototype.rs,Qt.prototype.getLocalPoint=Qt.prototype.qs,Qt.prototype.getDocumentScale=Qt.prototype.Df,Qt.prototype.getDocumentAngle=Qt.prototype.li,Qt.prototype.getDocumentBounds=Qt.prototype.mi,Qt.prototype.getDocumentPoint=Qt.prototype.ga,Qt.prototype.intersectsRect=Qt.prototype.Yc,Qt.prototype.containedInRect=Qt.prototype.fh,Qt.prototype.containsRect=Qt.prototype.Re,Qt.prototype.containsPoint=Qt.prototype.ca,Qt.prototype.raiseChanged=Qt.prototype.g,Qt.prototype.raiseChangedEvent=Qt.prototype.cb,Qt.prototype.addCopyProperty=Qt.prototype.Vw;var hc=null;Qt.className="GraphObject",hc=new An,Uu("Button",function(){function a(x,E){return x.diagram.ic(x.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b},function(b){return b===E})!==null}var y=fa(ke,ke.Auto,{isActionable:!0,enabledChanged:function(x,E){if(x instanceof ke){var b=x.fb("ButtonBorder");b!==null&&(b.fill=E?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},fa(bn,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new cn(0,0,2.76142374915397,2.761423749153969),spot2:new cn(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,E){if(E.If()&&E instanceof ke&&(x=E.fb("ButtonBorder"),x instanceof bn)){var b=E._buttonFillOver;E._buttonFillNormal=x.fill,x.fill=b,b=E._buttonStrokeOver,E._buttonStrokeNormal=x.stroke,x.stroke=b}},y.mouseLeave=function(x,E){E.If()&&E instanceof ke&&(x=E.fb("ButtonBorder"),x instanceof bn&&(x.fill=E._buttonFillNormal,x.stroke=E._buttonStrokeNormal))},y.actionDown=function(x,E){if(E.If()&&E instanceof ke&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof bn){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var tt=E._buttonFillPressed;E._buttonFillOver=b.fill,b.fill=tt,tt=E._buttonStrokePressed,E._buttonStrokeOver=b.stroke,b.stroke=tt,x.skipsUndoManager=z}}},y.actionUp=function(x,E){if(E.If()&&E instanceof ke&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof bn){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionCancel=function(x,E){if(E.If()&&E instanceof ke&&E._buttonFillPressed!==null){var b=E.fb("ButtonBorder");if(b instanceof bn){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionMove=function(x,E){if(E.If()&&E instanceof ke&&E._buttonFillPressed!==null){var b=x.diagram;if(b.firstInput.button===0&&(b.currentTool.standardMouseOver(),a(x,E)&&(x=E.fb("ButtonBorder"),x instanceof bn))){var z=b.skipsUndoManager;b.skipsUndoManager=!0;var tt=E._buttonFillPressed;x.fill!==tt&&(x.fill=tt),tt=E._buttonStrokePressed,x.stroke!==tt&&(x.stroke=tt),b.skipsUndoManager=z}}},y}),Uu("TreeExpanderButton",function(){var a=fa("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},fa(bn,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Zo},new ko("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new ko("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof ri&&(x=x.adornedPart),x instanceof Ke){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isTreeExpanded){if(!E.canCollapseTree(x))return}else if(!E.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?E.collapseTree(x):E.expandTree(x)}}},a}),Uu("SubGraphExpanderButton",function(){var a=fa("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},fa(bn,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Zo},new ko("figure","isSubGraphExpanded",function(y,x){return x=x.panel,y?x._subGraphExpandedFigure:x._subGraphCollapsedFigure}).cp()));return a.click=function(y,x){if(x=x.part,x instanceof ri&&(x=x.adornedPart),x instanceof Fn){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isSubGraphExpanded){if(!E.canCollapseSubGraph(x))return}else if(!E.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?E.collapseSubGraph(x):E.expandSubGraph(x)}}},a}),Uu("ToolTip",function(){return fa(ri,ke.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new jt(0,3),shadowBlur:5},fa(bn,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new cn(0,0,4,6),spot2:new cn(1,1,-4,-4)}))}),Uu("ContextMenu",function(){return fa(ri,ke.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new jt(0,3),shadowBlur:5},new ko("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),Uu("ContextMenuButton",function(){var a=fa("Button");a.stretch=rn;var y=a.fb("ButtonBorder");return y instanceof bn&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new cn(0,0,2,3),y.spot2=new cn(1,1,-2,-2)),a}),Uu("PanelExpanderButton",function(a){var y=am(a,"COLLAPSIBLE"),x=fa("Button",{_buttonExpandedFigure:"M0 0 M0 6 L4 2 8 6 M8 8",_buttonCollapsedFigure:"M0 0 M0 2 L4 6 8 2 M8 8",_buttonFillNormal:"rgba(0, 0, 0, 0)",_buttonStrokeNormal:null,_buttonFillOver:"rgba(0, 0, 0, .2)",_buttonStrokeOver:null,_buttonFillPressed:"rgba(0, 0, 0, .4)",_buttonStrokePressed:null},fa(bn,{name:"ButtonIcon",strokeWidth:2},new ko("geometryString","visible",function(E){return E?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof bn&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(E,b){var z=b.diagram;if(z!==null&&!z.isReadOnly){var tt=b.ih();tt===null&&(tt=b.part),tt!==null&&(b=tt.fb(y),b!==null&&(E.handled=!0,z.Ea("Collapse/Expand Panel"),b.visible=!b.visible,z.eb("Collapse/Expand Panel")))}},x}),Uu("CheckBoxButton",function(a){var y=am(a);return a=fa("Button",{desiredSize:new Xe(14,14)},fa(bn,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Le,geometryStretch:$e,visible:!1},y!==""?new ko("visible",y).Kx():[])),a.click=function(x,E){if(E instanceof ke){var b=x.diagram;if(!(b===null||b.isReadOnly||y!==""&&b.model.isReadOnly)){x.handled=!0;var z=E.fb("ButtonIcon");b.Ea("checkbox"),z.visible=!z.visible,typeof E._doClick=="function"&&E._doClick(x,E),b.eb("checkbox")}}},a}),Uu("CheckBox",function(a){a=am(a),a=fa("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new jn(0,1,0,0)});var y=fa(ke,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new jn(1),_buttonFillNormal:a._buttonFillNormal,_buttonStrokeNormal:a._buttonStrokeNormal,_buttonFillOver:a._buttonFillOver,_buttonStrokeOver:a._buttonStrokeOver,_buttonFillPressed:a._buttonFillPressed,_buttonStrokePressed:a._buttonStrokePressed,_buttonFillDisabled:a._buttonFillDisabled,mouseEnter:a.mouseEnter,mouseLeave:a.mouseLeave,actionDown:a.actionDown,actionUp:a.actionUp,actionCancel:a.actionCancel,actionMove:a.actionMove,click:a.click,_buttonClick:a.click});return a.mouseEnter=null,a.mouseLeave=null,a.actionDown=null,a.actionUp=null,a.actionCancel=null,a.actionMove=null,a.click=null,y}),Qt.None=Pe=new Me(Qt,"None",0),Qt.Default=Bn=new Me(Qt,"Default",0),Qt.Vertical=mn=new Me(Qt,"Vertical",4),Qt.Horizontal=rn=new Me(Qt,"Horizontal",5),Qt.Fill=Le=new Me(Qt,"Fill",3),Qt.Uniform=$e=new Me(Qt,"Uniform",1),Qt.UniformToFill=Xn=new Me(Qt,"UniformToFill",2),Qt.FlipVertical=zn=new Me(Qt,"FlipVertical",1),Qt.FlipHorizontal=ti=new Me(Qt,"FlipHorizontal",2),Qt.FlipBoth=Pi=new Me(Qt,"FlipBoth",3),Qt.make=fa,Qt.getBuilders=function(){var a=new An,y;for(y in hc)if(y!==y.toLowerCase()){var x=hc.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},Qt.defineBuilder=Uu,Qt.build=function(a,y,x){for(var E=[],b=2;ba&&(a+=360),a!==0){if(this.translate(y,x),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.ha[1]*a+this.ha[3]*E,z=this.ha[0]*-E+this.ha[2]*a,tt=this.ha[1]*-E+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*E,this.ha[1]=b,this.ha[2]=z,this.ha[3]=tt,this.translate(-y,-x)}},Cd.className="STransform";function cg(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}cg.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},cg.className="SGradient";function wl(a,y,x){this.ownerDocument=a=y===void 0?Ze.document:y,this.cA="http://www.w3.org/2000/svg",a!==void 0&&(this.Oa=this.Ud("svg",{width:"1px",height:"1px",viewBox:"0 0 1 1"}),this.style.display="block",this.style.letterSpacing="normal",this.style.wordSpacing="normal",this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink")),this.hs=null,this.context=new Us(this,x)}wl.prototype.resize=function(a,y,x,E){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=E+"px",this.Oa.setAttributeNS(null,"width",x+"px"),this.Oa.setAttributeNS(null,"height",E+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+x+" "+E),this.context.ww.firstElementChild.setAttributeNS(null,"width",x+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",E+"px"),!0):!1},wl.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),we(y))for(var E in y)a.setAttributeNS(E==="href"?"http://www.w3.org/1999/xlink":"",E,y[E]);return x!==void 0&&(a.textContent=x),a},wl.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},wl.prototype.focus=function(){this.Oa.focus()},wl.prototype.mx=function(){this.ownerDocument=null},he.Object.defineProperties(wl.prototype,{width:{get:function(){return this.Oa.width.baseVal.value},set:function(a){this.Oa.setAttribute("width",a+"px")}},height:{get:function(){return this.Oa.height.baseVal.value},set:function(a){this.Oa.setAttribute("height",a+"px")}},style:{get:function(){return this.Oa.style}}}),wl.className="SVGSurface";function Us(a,y){this.Gv=a,this.svg=a.Oa,this.stack=[],this.nh=[],this.fillStyle="#000000",this.font="10px sans-serif",this.globalAlpha=1,this.lineCap="butt",this.lineDashOffset=0,this.lineJoin="miter",this.lineWidth=1,this.miterLimit=10,this.shadowBlur=0,this.shadowColor="rgba(0, 0, 0, 0)",this.shadowOffsetY=this.shadowOffsetX=0,this.Il=!1,this.strokeStyle="#000000",this.textAlign="start",this.clipInsteadOfFill=!1,this.Vg=this.Br=this.Ar=0,this.yd=this.ad=null,this.path=[],this.Yl={},this.Ct=!1,this.Yg=null,this.uj=0,this.rb=new Cd,this.j=lm(this),this.Nj=lm(this,"gojs-diagram"),this.Hl=this.ti=null;var x=_r++,E=this.Ud("clipPath",{id:"mainClip"+x});E.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=E,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(E),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function Qy(a,y,x,E,b,z,tt){a.Nj===void 0?Of(a,y,x,E,b,z,tt):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+E+", "+b+", "+z+", "+tt+")")}wt=Us.prototype,wt.arc=function(a,y,x,E,b,z,tt,ot){var rt=2*Math.PI,at=rt-1e-6,ut=x*Math.cos(E),ct=x*Math.sin(E),mt=a+ut,yt=y+ct,St=z?0:1;E=z?E-b:b-E,(1e-6E&&(E=E%rt+rt),E>at?(this.path.push(["A",x,x,0,1,St,a-ut,y-ct]),this.path.push(["A",x,x,0,1,St,mt,yt])):1e-6=Math.PI),St,a+x*Math.cos(b),y+x*Math.sin(b)])},wt.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},wt.Se=function(a){this.addPath(this.path,this.rb,a||0)},wt.bezierCurveTo=function(a,y,x,E,b,z){this.path.push(["C",a,y,x,E,b,z])},wt.clearRect=function(){},wt.clip=function(){this.Yl.clipPath=!0},wt.closePath=function(){this.path.push(["z"])},wt.createLinearGradient=function(a,y,x,E){var b=new cg("linear");return b.x1=a,b.y1=y,b.x2=x,b.y2=E,b},wt.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var x=this.eA;if(x[y])return"url(#"+x[y]+")";var E="PATTERN"+_r++,b={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:E,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(xd,b)),this.svg.appendChild(a),x[y]=E,"url(#"+E+")"},wt.createRadialGradient=function(a,y,x,E,b,z){var tt=new cg("radial");return tt.x1=a,tt.y1=y,tt.r1=x,tt.x2=E,tt.y2=b,tt.r2=z,tt};function Zy(a,y,x,E,b,z,tt,ot,rt){E=ot/E,b=rt/b,z===0&&tt===0||a.rb.translate(z,tt),E===1&&b===1||a.rb.scale(E,b),y===0&&x===0||a.rb.translate(-y,-x)}wt.drawImage=function(a,y,x,E,b,z,tt,ot,rt){var at="";a instanceof HTMLCanvasElement&&(at=a.toDataURL()),a instanceof HTMLImageElement&&(at=a.getAttribute("src"));var ut=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,E===void 0&&(z=y,tt=x,ot=E=ut,rt=b=a),E=E||0,b=b||0,ot=ot||0,rt=rt||0,Zy(this,y,x,E,b,z||0,tt||0,ot,rt),z={x:0,y:0,width:ut||E,height:a||b,href:at},Jt.$(E,ot)&&Jt.$(b,rt)?at.toLowerCase().indexOf(".svg")===-1&&at.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||E!==ut||b!==a)&&(E+=y,b+=x,z["clip-path"]="path('M "+y+","+x+" L "+E+" "+x+" L "+E+" "+b+" L "+y+" "+b+" z')"),dc(this,xd,z,this.rb),this.addElement(xd,z)},wt.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),iv(this,this.Yl)},wt.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},wt.fillRect=function(a,y,x,E){a=[a,y,x,E],a={x:a[0],y:a[1],width:a[2],height:a[3]},dc(this,"fill",a,this.rb),this.addElement("rect",a)},wt.ox=function(a,y,x,E){a={x:a,y,width:x,height:E},dc(this,"fill",a,this.rb),iv(this,a),this.svg.prepend(this.Ud("rect",a))},wt.fillText=function(a,y,x){a=[a,y,x],y=this.textAlign,y==="left"?y="start":y==="right"?y="end":y==="center"&&(y="middle"),y={x:a[1],y:a[2],style:"font: "+this.font,"text-anchor":y},dc(this,"fill",y,this.rb),this.addElement("text",y,a[0])},wt.lineTo=function(a,y){this.path.push(["L",a,y])},wt.moveTo=function(a,y){this.path.push(["M",a,y])},wt.quadraticCurveTo=function(a,y,x,E){this.path.push(["Q",a,y,x,E])},wt.rect=function(a,y,x,E){this.path.push(["M",a,y],["L",a+x,y],["L",a+x,y+E],["L",a,y+E],["z"])},wt.restore=function(){this.rb=this.stack.pop(),this.path=this.stack.pop();var a=this.stack.pop();this.fillStyle=a.fillStyle,this.font=a.font,this.globalAlpha=a.globalAlpha,this.lineCap=a.lineCap,this.lineDashOffset=a.lineDashOffset,this.lineJoin=a.lineJoin,this.lineWidth=a.lineWidth,this.miterLimit=a.miterLimit,this.shadowBlur=a.shadowBlur,this.shadowColor=a.shadowColor,this.shadowOffsetX=a.shadowOffsetX,this.shadowOffsetY=a.shadowOffsetY,this.strokeStyle=a.strokeStyle,this.textAlign=a.textAlign,this.bk=a.bk},wt.save=function(){this.stack.push({fillStyle:this.fillStyle,font:this.font,globalAlpha:this.globalAlpha,lineCap:this.lineCap,lineDashOffset:this.lineDashOffset,lineJoin:this.lineJoin,lineWidth:this.lineWidth,miterLimit:this.miterLimit,shadowBlur:this.shadowBlur,shadowColor:this.shadowColor,shadowOffsetX:this.shadowOffsetX,shadowOffsetY:this.shadowOffsetY,strokeStyle:this.strokeStyle,textAlign:this.textAlign,bk:this.bk});for(var a=[],y=0;yut.offset?1:-1}),b=0;bx?(this.scale(x/a,1),this.translate((a-x)/2,0)):x>a&&(this.scale(1,a/x),this.translate(0,(x-a)/2)),this.Hm?this.clip():this.fill(y),a>x?(this.translate(-(a-x)/2,0),this.scale(1/(x/a),1)):x>a&&(this.translate(0,-(x-a)/2),this.scale(1,1/(a/x)))}else this.Hm?this.clip():this.fill(y)},wt.jk=function(){this.Hm||this.stroke()},wt.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},wt.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},wt.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(mx),a.lineDashOffset=0)},wt.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},wt.Hs=function(){},he.Object.defineProperties(Md.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(a){this.ct!==a&&(this.ct=this.Z.fillStyle=a)}},font:{get:function(){return this.Z.font},set:function(a){this.dt!==a&&(this.dt=this.Z.font=a)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(a){this.Z.globalAlpha=a}},lineCap:{get:function(){return this.Z.lineCap},set:function(a){this.Z.lineCap=a}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(a){this.Z.lineDashOffset=a}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(a){this.Z.lineJoin=a}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(a){this.Z.lineWidth=a}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(a){this.Z.miterLimit=a}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(a){this.Z.shadowBlur=a}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(a){this.Z.shadowColor=a}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(a){this.Z.shadowOffsetX=a}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(a){this.Z.shadowOffsetY=a}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(a){this.et!==a&&(this.et=this.Z.strokeStyle=a)}},textAlign:{get:function(){return this.Z.textAlign},set:function(a){this.Z.textAlign=a}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(a){this.Z.imageSmoothingEnabled=a}},filter:{get:function(){return this.Z.filter},set:function(a){this.Z.filter=a===""?"none":a}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(a){this.Hm=a}}});var mx=Object.freeze([]);Md.className="CanvasSurfaceContext";function jf(){this.F=this.o=this.u=this.j=0}jf.className="ColorNumbers";function fi(a,y){pc||(hv(),pc=!0),Yi(this),this._isFrozen=!1,a===void 0?(this.na=Yu,this.xk="black"):typeof a=="string"?(this.na=Yu,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===du?(this.Qd=Js,this.Lk=Rs):this.Lk=a===pa?this.Qd=gi:this.Qd=$o,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}fi.prototype.copy=function(){var a=new fi;return a.na=this.na,a.xk=this.xk,a.Qd=this.Qd.J(),a.Lk=this.Lk.J(),a.Gr=this.Gr,a.Xp=this.Xp,this.we!==null&&(a.we=this.we.copy()),a.cr=this.cr,a},wt=fi.prototype,wt.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},wt.ka=function(){return Object.isFrozen(this)&&ee("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},wt.qb=function(a){a.classType===fi&&(this.type=a)},wt.toString=function(){var a="Brush(";if(this.type===Yu)a+=this.color;else if(a=this.type===du?a+"Linear ":this.type===pa?a+"Radial ":this.type===mc?a+"Pattern ":a+"(unknown) ",a+=this.start+" "+this.end,this.colorStops!==null)for(var y=this.colorStops.iterator;y.next();)a+=" "+y.key+":"+y.value;return a+")"},wt.addColorStop=function(a,y){return this._isFrozen&&yn(this),(typeof a!="number"||!isFinite(a)||1a)&&_n(a,"0 <= loc <= 1",fi,"addColorStop:loc"),this.we===null&&(this.we=new An),this.we.add(a,y),this.na===Yu&&(this.type=du),this.xe=null,this},wt.Vz=function(a,y){if(this._isFrozen&&yn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?vc:y,this.type===Yu)hu(this.color),this.color=cc(a,y);else if((this.type===du||this.type===pa)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)hu(x.value),this.addColorStop(x.key,cc(a,y));return this};function $y(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?vc:x,hu(a),cc(y,x)}wt.Wy=function(a,y){if(this._isFrozen&&yn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?vc:y,this.type===Yu)hu(this.color),this.color=cc(-a,y);else if((this.type===du||this.type===pa)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)hu(x.value),this.addColorStop(x.key,cc(-a,y));return this};function t1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?vc:x,hu(a),cc(-y,x)}function rv(a,y,x){hu(a),a=Fi.j;var E=Fi.u,b=Fi.o,z=Fi.F;return hu(y),x===void 0&&(x=.5),"rgba("+Math.round((Fi.j-a)*x+a)+", "+Math.round((Fi.u-E)*x+E)+", "+Math.round((Fi.o-b)*x+b)+", "+Math.round((Fi.F-z)*x+z)+")"}wt.Gx=function(){if(this.type===Yu)return gc(this.color);if((this.type===du||this.type===pa)&&this.colorStops!==null){var a=this.colorStops;if(this.type===pa)return gc(a.first().value);if(a.get(.5)!==null)return gc(a.get(.5));if(a.count===2)return a=a.Fa(),gc(rv(a[0].value,a[1].value));for(var y=a.iterator,x=-1,E=-1,b=1,z=1;y.next();){var tt=y.key,ot=Math.abs(.5-y.key);b>z&&ot=b&&otE&&(z=x,x=E,E=z,z=b),b=E-x,gc(rv(a.get(x),a.get(E),1-z/b))}return!1};function gc(a){return a?a instanceof fi?a.Gx():(hu(a),128>(299*Fi.j+587*Fi.u+114*Fi.o)/1e3):!1}function cc(a,y){switch(y){case vc:y=100*av(Fi.j);var x=100*av(Fi.u),E=100*av(Fi.o);return hs.j=.4124564*y+.3575761*x+.1804375*E,hs.u=.2126729*y+.7151522*x+.072175*E,hs.o=.0193339*y+.119192*x+.9503041*E,hs.F=Fi.F,y=uv(hs.j/fc[0]),x=uv(hs.u/fc[1]),E=uv(hs.o/fc[2]),Gl.j=116*x-16,Gl.u=500*(y-x),Gl.o=200*(x-E),Gl.F=hs.F,Gl.j=Math.min(100,Math.max(0,Gl.j+100*a)),a=(Gl.j+16)/116,y=a-Gl.o/200,hs.j=fc[0]*e1(Gl.u/500+a),hs.u=fc[1]*(Gl.j>hm*dv?Math.pow(a,3):Gl.j/hm),hs.o=fc[2]*e1(y),hs.F=Gl.F,a=-.969266*hs.j+1.8760108*hs.u+.041556*hs.o,y=.0556434*hs.j+-.2040259*hs.u+1.0572252*hs.o,Fi.j=255*lv((3.2404542*hs.j+-1.5371385*hs.u+-.4985314*hs.o)/100),Fi.u=255*lv(a/100),Fi.o=255*lv(y/100),Fi.F=hs.F,Fi.j=Math.round(Fi.j),255Fi.j&&(Fi.j=0),Fi.u=Math.round(Fi.u),255Fi.u&&(Fi.u=0),Fi.o=Math.round(Fi.o),255Fi.o&&(Fi.o=0),"rgba("+Fi.j+", "+Fi.u+", "+Fi.o+", "+Fi.F+")";case n1:return sv(),na.o=Math.min(100,Math.max(0,na.o+100*a)),"hsla("+na.j+", "+na.u+"%, "+na.o+"%, "+na.F+")";default:ee("Unknown color space: "+y)}}function hu(a){pc||(hv(),pc=!0);var y=gv;if(y!==null){y.clearRect(0,0,1,1),y.fillStyle="#000000";var x=y.fillStyle;y.fillStyle=a,y.fillStyle!==x?(y.fillRect(0,0,1,1),a=y.getImageData(0,0,1,1).data,Fi.j=a[0],Fi.u=a[1],Fi.o=a[2],Fi.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,Fi.j=0,Fi.u=0,Fi.o=0,Fi.F=1)}}function sv(){var a=Fi.j/255,y=Fi.u/255,x=Fi.o/255,E=Math.max(a,y,x),b=Math.min(a,y,x),z=E-b;if(b=(E+b)/2,z===0)var tt=a=0;else{switch(E){case a:tt=(y-x)/z%6;break;case y:tt=(x-a)/z+2;break;case x:tt=(a-y)/z+4}tt*=60,0>tt&&(tt+=360),a=z/(1-Math.abs(2*b-1))}na.j=Math.round(tt),na.u=Math.round(100*a),na.o=Math.round(100*b),na.F=Fi.F}function av(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function lv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function uv(a){return a>dv?Math.pow(a,1/3):(hm*a+16)/116}function e1(a){var y=a*a*a;return y>dv?y:(116*a-16)/hm}function fg(a,y){typeof a!="string"&&(a instanceof fi||ee("Value for "+y+" must be a color string or a Brush, not "+a))}function hv(){gv=ro?new Ta(null,void 0,{willReadFrequently:!0}).context:null}he.Object.defineProperties(fi.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&yn(this,a),this.na=a,this.start.Mc()&&(a===du?this.start=Js:a===pa&&(this.start=gi)),this.end.Mc()&&(a===du?this.end=Rs:a===pa&&(this.end=gi)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&yn(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&yn(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&yn(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&yn(this,a),0>a&&_n(a,">= zero",fi,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&yn(this,a),0>a&&_n(a,">= zero",fi,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&yn(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&yn(this,a),this.cr=a,this.xe=null}}}),fi.prototype.isDark=fi.prototype.Gx,fi.prototype.darkenBy=fi.prototype.Wy,fi.prototype.lightenBy=fi.prototype.Vz,fi.prototype.addColorStop=fi.prototype.addColorStop;var dv=216/24389,hm=24389/27,fc=[95.047,100,108.883],gv=null,Fi=new jf,na=new jf,hs=new jf,Gl=new jf,pc=!1;fi.className="Brush";var Yu;fi.Solid=Yu=new Me(fi,"Solid",0);var du;fi.Linear=du=new Me(fi,"Linear",1);var pa;fi.Radial=pa=new Me(fi,"Radial",2);var mc;fi.Pattern=mc=new Me(fi,"Pattern",4);var vc;fi.Lab=vc=new Me(fi,"Lab",5);var n1;fi.HSL=n1=new Me(fi,"HSL",6),fi.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var x=Math.abs(y-a);y=Math.floor(a+Math.random()*x).toString(16);var E=Math.floor(a+Math.random()*x).toString(16);return a=Math.floor(a+Math.random()*x).toString(16),2>y.length&&(y="0"+y),2>E.length&&(E="0"+E),2>a.length&&(a="0"+a),"#"+y+E+a},fi.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;pc||(hv(),pc=!0);var y=gv;if(y===null)return!0;y.fillStyle="#000000";var x=y.fillStyle;return y.fillStyle=a,y.fillStyle!==x?!0:(y.fillStyle="#FFFFFF",x=y.fillStyle,y.fillStyle=a,y.fillStyle!==x)},fi.lighten=function(a){return $y(a)},fi.lightenBy=$y,fi.darken=function(a){return t1(a)},fi.darkenBy=t1,fi.mix=rv,fi.isDark=gc;function Yo(){this.xa="Base"}Yo.prototype.measure=function(){},Yo.prototype.Yz=function(a,y,x,E,b){a.measure(y,x,E,b)},Yo.prototype.arrange=function(){},Yo.prototype.Ly=function(a,y,x,E,b,z){a.arrange(y,x,E,b,z)},Yo.prototype.iA=function(a){a.Uj()},Yo.prototype.gc=function(){},he.Object.defineProperties(Yo.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return ke}}}),Yo.prototype.remeasureObject=Yo.prototype.iA,Yo.prototype.arrangeElement=Yo.prototype.Ly,Yo.prototype.measureElement=Yo.prototype.Yz,Yo.className="PanelLayout";function dm(){this.xa="Base"}ye(dm,Yo),dm.prototype.measure=function(a,y,x,E,b,z,tt){var ot=E.length;a=gu(a);for(var rt=0;rtqe&&(or=Math.max(qe-Xh,0));var R0=Se.oa===0;Se.oc=Se.oc+or,Se.actual=Se.oa+or,qe=Math.max(qe-(or+(R0?Xh:0)),0)}if(Ds.columnSpan===1&&(qr===Pe||qr===mn)){Se=a.Eb(Jr);var Lp=Se.Wc();or=Math.max(bd-Se.actual,0),or+Lp>We&&(or=Math.max(We-Lp,0));var Gy=Se.oa===0;Se.oc=Se.oc+or,Se.actual=Se.oa+or,We=Math.max(We-(or+(Gy?Lp:0)),0)}Kh&&Ds.Uj()}}}}}ei(zt);var Zl=0,pu=0;z=a.columnCount;for(var Ag=0;Ag=a.rowCount);rh++)Se=a.Fb(mo.row+rh),or=0,or=qr===Le||qr===mn?Math.max(Se.minimum,gl[mo.row+rh]===0?Se.maximum:Math.min(gl[mo.row+rh],Se.maximum)):Math.max(Se.minimum,isNaN(Se.Hc)?Se.maximum:Math.min(Se.Hc,Se.maximum)),yu.height+=or,Zs+=Se.minimum;for(var Oa=1;Oa=a.columnCount);Oa++)Se=a.Eb(mo.column+Oa),or=0,or=qr===Le||qr===rn?Math.max(Se.minimum,xa[mo.column+Oa]===0?Se.maximum:Math.min(xa[mo.column+Oa],Se.maximum)):Math.max(Se.minimum,isNaN(Se.Hc)?Se.maximum:Math.min(Se.Hc,Se.maximum)),yu.width+=or,U0+=Se.minimum;wr.width+=yu.width,wr.height+=yu.height;var Xc=mo.margin,_h=Xc.right+Xc.left,Ap=Xc.top+Xc.bottom;mo.measure(wr.width,wr.height,U0,Zs);for(var Qc=mo.measuredBounds,El=Math.max(Qc.width+_h,0),jd=Math.max(Qc.height+Ap,0),$h=0,Zc=0;Zc=a.rowCount);Zc++)Se=a.Fb(mo.row+Zc),$h+=Se.total||0;if($h=sh)&&!(mo.row+Su>=a.rowCount);Su++){Se=a.Fb(mo.row+Su);var lh=Se.oa||0,zd=ah(mo,Se,ql);Se.actual=Math.min(Se.maximum,lh+zd),Se.oa!==lh&&(sh-=Se.oa-lh)}for(;0cl&&(Se.actual=Math.min(Se.maximum,cl+sh),Se.oa!==cl&&(sh-=Se.oa-cl)),Se.index===0)break;Se=a.Fb(Se.index-1)}}for(var Tg=0,uh=0;uh=a.columnCount);uh++)Se=a.Eb(mo.column+uh),Tg+=Se.total||0;if(Tg=Fg)&&!(mo.column+Rd>=a.columnCount);Rd++){Se=a.Eb(mo.column+Rd);var Ep=Se.oa||0,Uy=xu(mo,Se,Wy);Se.actual=Math.min(Se.maximum,Ep+Uy),Se.oa!==Ep&&(Fg-=Se.oa-Ep)}for(;0Y0&&(Se.actual=Math.min(Se.maximum,Y0+Fg),Se.oa!==Y0&&(Fg-=Se.oa-Y0)),Se.index===0)break;Se=a.Eb(Se.index-1)}}}}ei(Ht),Xe.free(yu),Xe.free(wr),gl!==void 0&&ei(gl),xa!==void 0&&ei(xa);var Bg=0,bg=0,V0=a.desiredSize,fx=a.maxSize;qr=ws(a,!0);var Np=pu=Zl=0,Tp=0;z=a.columnCount;for(var K0=0;K0=a.rowCount);Se++){var Tn=a.Fb(zt+Se);Tn.oa!==0&&(Tt.height+=Tn.total)}for(Se=1;Se=a.columnCount);Se++)Tn=a.Eb(Ut+Se),Tn.oa!==0&&(Tt.width+=Tn.total);var Cn=Xt.oa+Tt.width,ui=Ht.oa+Tt.height;Se=ot,Tn=rt;var ki=Cn,ir=ui,lr=ot,Zr=rt,or=Cn,eh=ui;ot+Cn>x.width&&(or=Math.max(x.width-ot,0)),rt+ui>x.height&&(eh=Math.max(x.height-rt,0));var Ao=Qe.alignment;if(Ao.Xb()){Ao=a.defaultAlignment,Ao.sb()||(Ao=gi);var ul=Ao.x,Jr=Ao.y,nh=Ao.offsetX;Ao=Ao.offsetY;var ra=Xt.alignment,Da=Ht.alignment;ra.sb()&&(ul=ra.x,nh=ra.offsetX),Da.sb()&&(Jr=Da.y,Ao=Da.offsetY)}else ul=Ao.x,Jr=Ao.y,nh=Ao.offsetX,Ao=Ao.offsetY;(isNaN(ul)||isNaN(Jr))&&(Jr=ul=.5,Ao=nh=0),ra=Ee.width,Da=Ee.height;var Ks=Qe.margin,Ds=Ks.left+Ks.right,Kh=Ks.top+Ks.bottom,hl=ol(Qe,Ht,Xt,!1);!isNaN(Qe.desiredSize.width)||hl!==Le&&hl!==rn||(ra=Math.max(Cn-Ds,0)),!isNaN(Qe.desiredSize.height)||hl!==Le&&hl!==mn||(Da=Math.max(ui-Kh,0)),Cn=Qe.maxSize,ui=Qe.minSize,ra=Math.min(Cn.width,ra),Da=Math.min(Cn.height,Da),ra=Math.max(ui.width,ra),Da=Math.max(ui.height,Da),Cn=Da+Kh,Se+=ki*ul-(ra+Ds)*ul+nh+Ks.left,Tn+=ir*Jr-Cn*Jr+Ao+Ks.top,Qe.visible&&(Ar(lr,Zr,or,eh,Se,Tn,Ee.width,Ee.height)?Qe.arrange(Se,Tn,ra,Da):Qe.arrange(Se,Tn,ra,Da,new de(lr,Zr,or,eh)))}}}for(Xe.free(Tt),a=0;a=x&&(x=1);var E=a.gridCellSize,b=E.width;E=E.height;var z=a.naturalBounds,tt=a.actualBounds,ot=z.width,rt=z.height,at=Math.ceil(ot/b),ut=Math.ceil(rt/E),ct=a.gridOrigin,mt=ct.x;ct=ct.y,y.save(),y.beginPath(),y.rect(0,0,ot,rt),y.clip(),y.Se();for(var yt=[],St=a.O.s,Mt=St.length,Dt=0;DtHt)){Tt=pv(Tt.figure);for(var Ut=0;UtHt&&zt.push(Xt))}}}}for(St=a.O.s,Mt=St.length,Dt=0;Dtb*Tt*x))){if(Ht=ie.segmentIndex,(!isFinite(Ht)||isNaN(Ht))&&(Ht=0),0>Ht&&(Ht=Tt-Math.min(-Ht,Tt)),Ht=Math.round(Ht%Tt),Tt=ie.opacity,Ut=1,Tt!==1){if(Tt===0)continue;Ut=y.globalAlpha,y.globalAlpha=Ut*Tt}Xt=yt[Dt];var We=!1,qe=ie.strokeDashArray;if(qe!==null&&(We=!0,y.js(qe,ie.strokeDashOffset)),ie.figure==="LineV"&&ie.stroke!==null&&0y)return a%y===x;if(a%y!==x)return!1;y=E.length;for(var b=0;bct)zt.measure(1/0,1/0,0,0),Ht=zt.measuredBounds,x.ed(Ht),yt.push(Ht);else{var Ut=zt.segmentIndex,Xt=zt.segmentFraction,ie=zt.alignmentFocus;ie.Mc()&&(ie=gi);var We=zt.segmentOrientation,qe=zt.segmentOffset;if(isNaN(Ut)){var Qe=rt.ua;Ht=$n(),Qe.Qu(Xt,Ht);var Ee=jt.allocAt(Ht[0],Ht[1]);if(Ee.add(rt.i(0)),Qe.type===be.j?Ee.offset(-Qe.startX,-Qe.startY):(Qe=Qe.figures.first(),Qe!==null&&Ee.offset(-Qe.startX,-Qe.startY)),Qe=Ht[2],We!==gs){var Se=rt.computeAngle(zt,We,Qe);zt.Kb=Se}Se=Ee.x-y.x;var Tn=Ee.y-y.y;jt.free(Ee),ei(Ht)}else if(Ut<-ct||Ut>=ct)Ht=jt.alloc(),rt.vg(),rt.computeMidPoint(Ht),Qe=rt.midAngle,We!==gs&&(Se=rt.computeAngle(zt,We,Qe),zt.Kb=Se),Se=Ht.x-y.x,Tn=Ht.y-y.y,jt.free(Ht);else{if(Se=0,0<=Ut?(Tn=ut.M(Ut),Ht=UtCn+10?0<=Ut?Qe.ab(Tn):Tn.ab(Qe):Cn>Ee+10?0<=Ut?Ht.ab(Se):Se.ab(Ht):0<=Ut?Qe.ab(Se):Se.ab(Qe)}else Qe=0<=Ut?Tn.ab(Ht):Ht.ab(Tn);We!==gs&&(Se=rt.computeAngle(zt,We,Qe),zt.Kb=Se),Se=Tn.x+(Ht.x-Tn.x)*Xt-y.x,Tn=Tn.y+(Ht.y-Tn.y)*Xt-y.y}zt.measure(1/0,1/0,0,0),Ht=zt.measuredBounds,Ee=zt.naturalBounds;var ui=0;zt instanceof bn&&(ui=zt.strokeWidth),Cn=Ee.width+ui;var ki=Ee.height+ui;St.reset(),St.translate(-Ht.x,-Ht.y),St.scale(zt.scale,zt.scale),St.rotate(We===gs?zt.angle:Qe,Cn/2,ki/2),We!==qf&&We!==$f||St.rotate(90,Cn/2,ki/2),We!==_f&&We!==tp||St.rotate(-90,Cn/2,ki/2),We===qm&&(45Qe||225Qe)&&St.rotate(-Qe,Cn/2,ki/2),Ee=new de(0,0,Cn,ki),Mt.xi(Ee,ie),St.Ga(Mt),ie=-Mt.x+ui/2*zt.scale,zt=-Mt.y+ui/2*zt.scale,Dt.assign(qe),ui=isNaN(qe.x);var ir=isNaN(qe.y);if(ui||ir){Cn=Cn/2+3,ki=ki/2+3;var lr=45<=Qe&&135>=Qe,Zr=225<=Qe&&315>=Qe;We===gs&&(lr||Zr)?(Dt.x=ir?Cn:qe.y,Dt.y=ui?ki:qe.x,lr?0<=Ut||isNaN(Ut)&&.5>Xt||!ui||(Dt.y=-ki):Zr&&((0<=Ut||isNaN(Ut)&&.5>Xt)&&ui&&(Dt.y=-ki),ir&&(Dt.x=-Cn))):(ui&&(Dt.x=0<=Ut||isNaN(Ut)&&.5>Xt?Cn:-Cn),ir&&(Dt.y=-ki),Dt.rotate(Qe))}else Dt.rotate(Qe);Se+=Dt.x,Tn+=Dt.y,Ee.set(Ht),Ee.h(Se+ie,Tn+zt,Ht.width,Ht.height),yt.push(Ee),x.ed(Ee)}}if(tt!==null)for(E=tt.labelNodes;E.next();)E.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),Es(b,x.width||0,x.height||0),Rn.free(St),jt.free(Mt),jt.free(Dt)}}}},Pm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof ri||a instanceof Ne){var E=a,b=null;a instanceof ri&&(b=a,E=b.adornedPart);var z=a instanceof ri?null:E.path,tt=a.j;if(tt.length!==0){var ot=0;if(z!==null&&ot=x)St=jt.alloc(),yt=ct,Dt=St,yt.vg(),yt.computeMidPoint(Dt),yt=ct.midAngle,at!==gs&&(ct=ct.computeAngle(tt,at,yt),tt.angle=ct),ct=St.x,Dt=St.y,jt.free(St);else{if(Mt=0,0<=ot?(St=y.s[ot],Dt=otzt+10?0<=ot?yt.ab(St):St.ab(yt):zt>Tt+10?0<=ot?Dt.ab(Mt):Mt.ab(Dt):0<=ot?yt.ab(Mt):Mt.ab(yt)}else yt=0<=ot?St.ab(Dt):Dt.ab(St);at!==gs&&(ct=ct.computeAngle(tt,at,yt),tt.angle=ct),ct=St.x+(Dt.x-St.x)*rt,Dt=St.y+(Dt.y-St.y)*rt}if(mt.ys())tt.location=new jt(ct,Dt);else{mt.Mc()&&(mt=gi),St=Rn.alloc(),St.reset(),St.scale(tt.scale,tt.scale),St.rotate(tt.angle,0,0);var Ht=tt.naturalBounds;Mt=de.allocAt(0,0,Ht.width,Ht.height),Tt=jt.alloc(),Tt.xi(Mt,mt),St.Ga(Tt),mt=-Tt.x,zt=-Tt.y;var Ut=Ht.width,Xt=Ht.height;Ht=jt.alloc(),Ht.assign(ut);var ie=isNaN(ut.x),We=isNaN(ut.y);if(ie||We){Ut=Ut/2+3,Xt=Xt/2+3;var qe=45<=yt&&135>=yt,Qe=225<=yt&&315>=yt;at===gs&&(qe||Qe)?(Ht.x=We?Ut:ut.y,Ht.y=ie?Xt:ut.x,qe?0<=ot||isNaN(ot)&&.5>rt||!ie||(Ht.y=-Xt):Qe&&((0<=ot||isNaN(ot)&&.5>rt)&&ie&&(Ht.y=-Xt),We&&(Ht.x=-Ut))):(ie&&(Ht.x=0<=ot||isNaN(ot)&&.5>rt?Ut:-Ut),We&&(Ht.y=-Xt),Ht.rotate(yt))}else Ht.rotate(yt);ct+=Ht.x,Dt+=Ht.y,St.pp(Mt),mt+=Mt.x,zt+=Mt.y,ot=jt.allocAt(ct+mt,Dt+zt),tt.move(ot),jt.free(ot),jt.free(Ht),jt.free(Tt),de.free(Mt),Rn.free(St)}}b!==null?b.Ul(!1):E.Ul(!1),E=B1(a),a.location.h(a.position.x+E.x,a.position.y+E.y),jt.free(E)}};function i1(a,y,x,E){if(ea(E)!==!1){var b=E.strokeWidth;b===0&&a instanceof ri&&a.type===ke.Link&&a.adornedObject instanceof bn&&(b=a.adornedObject.strokeWidth),b*=E.Ca,a instanceof Ne&&a.ua!==null?(a=a.geometry.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):a instanceof ri&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):E.Ge(-(b/2),-(b/2),y+b,x+b),b=E.desiredSize,b.w()||E.ua===null?E.dc.h(0,0,b.width,b.height):E.dc.assign(E.ua.bounds),zo(E,!1)}}function Rf(){this.xa="Base"}ye(Rf,Yo),Rf.prototype.measure=function(a,y,x,E,b,z,tt){var ot=a.Pb();a.graduatedBounds=[];var rt=ot.margin,at=rt.right+rt.left,ut=rt.top+rt.bottom;ot.measure(y,x,z,tt);var ct=ot.measuredBounds,mt=new de(-rt.left,-rt.top,Math.max(ct.width+at,0),Math.max(ct.height+ut,0));a.graduatedBounds.push(mt),b.assign(mt);for(var yt=ot.geometry,St=ot.strokeWidth,Mt=yt.flattenedSegments,Dt=yt.flattenedLengths,Tt=yt.flattenedTotalLength,zt=Mt.length,Ht=0,Ut=0,Xt=$n(),ie=0;ieCn&&(Cn+=360),qe.push(Cn)}Ht=Se,Ut=Tn}Xt.push(qe)}if(a.graduatedIntervals===null){for(var ui=[],ki=a.O.s,ir=ki.length,lr=0;lreh)){for(var Ao=0;Aoeh&&or.push(Jr)}}}}}a.graduatedIntervals=ui}var nh=a.graduatedIntervals,ra=a.O.s,Da=ra.length,Ks=0,Ds=0,Kh=Tt;a.graduatedMarks=[];for(var hl,Gc=0;GcMp*qr*Tt/a.graduatedRange&&Xs.graduatedSkip===null)){var kg=Dt[0][0],Ll=0,Is=0;Ds=Tt*Xs.graduatedStart-1e-4,Kh=Tt*Xs.graduatedEnd+1e-4;var bd=Mp*qr,Qs=a.graduatedTickBase;if(Qsa.graduatedMin+bd&&(Qs-=Math.floor((Qs-a.graduatedMin)/bd)*bd);for(var R0=nh[Gc],Lp=Qs,Gy=1e-6*a.graduatedMax,Zl=1;Qs<=a.graduatedMax+Gy;Zl++){t:{for(var pu=R0.length,Ag=0;Ag-Hc){var Zh=!1;break t}}Zh=!0}if(Zh&&(Qs>a.graduatedMax&&(Qs=a.graduatedMax),Xs.graduatedSkip===null||Xs instanceof Ei&&!Xs.graduatedSkip(Qs,Xs)||Xs instanceof bn&&!Xs.graduatedSkip(Qs,Xs))&&(Ks=(Qs-a.graduatedMin)*Tt/a.graduatedRange,Ks>Tt&&(Ks=Tt),Ds<=Ks&&Ks<=Kh)){for(var Jl=Xt[Ll][Is],ih=Dt[Ll][Is];Llkg&&Ismu&&.4995mu?0mu||.9995Eg){var Uc=1-Math.abs(.5-mu);Jl=(dl*Uc+Al*(1-Uc))%360;break t}}}Jl=dl}if(Xs instanceof Ei){var Ja="";Xs.graduatedFunction!==null?(Ja=Xs.graduatedFunction(Qs,Xs),Ja=Ja!=null?Ja.toString():""):Ja=(+Qs.toFixed(2)).toString(),Ja!==""&&hl.push({$l:Wc,angle:Jl,text:Ja})}else hl.push({$l:Wc,angle:Jl})}Qs=Lp+Zl*bd}}}a.graduatedMarks.push(hl)}ei(Xt);var wr=a.graduatedMarks;if(wr!==null)for(var kp=E.length,vs=0;vsqa;qa++){switch(qa){case 0:js.h(yu,gl);break;case 1:js.h(yu+Yc,gl);break;case 2:js.h(yu,gl+Od);break;case 3:js.h(yu+Yc,gl+Od)}js.rotate(mo+Eo.angle),js.offset(W0,Kc),Vc===0&&qa===0?xa.h(js.x,js.y,0,0):xa.Ye(js),js.offset(-W0,-Kc),js.rotate(-mo-Eo.angle)}jt.free(js),vu.graduatedBounds!==null&&vu.graduatedBounds.push(xa),yo(oh,xa.x,xa.y,xa.width,xa.height)}else if(Eo instanceof Ei){var Ia=a,U0=b;Ia.temporaryTextBlock===null&&(Ia.temporaryTextBlock=new Ei);var Zs=Ia.temporaryTextBlock;y1(Zs,Eo);var rh=Eo.alignmentFocus;rh.Mc()&&(rh=Js);for(var Oa=Eo.segmentOrientation,Xc=Eo.segmentOffset,_h=new de,Ap=0,Qc=0,El=0,jd=0,$h=0,Zc=ys.length,sh=0;shEl||225El)&&cl.rotate(-El,lh/2,zd/2);var Tg=de.allocAt(0,0,lh,zd),uh=jt.alloc();uh.xi(Tg,rh),cl.Ga(uh);var Fg=-uh.x,Wy=-uh.y,xu=jt.alloc();xu.assign(Xc),isNaN(xu.x)&&(xu.x=lh/2+3),isNaN(xu.y)&&(xu.y=-(zd/2+3)),xu.rotate(El),Ap+=xu.x+Fg,Qc+=xu.y+Wy;var Rd=new de(Ap,Qc,ah.width,ah.height),Ep=new de(ah.x,ah.y,ah.width,ah.height),Uy=new de(Su.x,Su.y,Su.width,Su.height);ql.Sz=jd,ql.lineCount=Zs.lineCount,ql.lines=[Zs.Cb,Zs.Ih,Zs.df,Zs.Le,Zs.Qc,Zs.Qb,Zs.ze],ql.actualBounds=Rd,ql.measuredBounds=Ep,ql.naturalBounds=Uy,sh===0?_h.assign(Rd):_h.ed(Rd),jt.free(xu),jt.free(uh),de.free(Tg),Rn.free(cl)}Ia.graduatedBounds!==null&&Ia.graduatedBounds.push(_h),yo(U0,_h.x,_h.y,_h.width,_h.height)}zo(Eo,!1)}}},Rf.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var E=a.Pb(),b=a.graduatedMarks;if(b!==null){var z=a.graduatedBounds,tt=0,ot=z[tt];tt++,E!==null&&E.arrange(ot.x-x.x,ot.y-x.y,ot.width,ot.height);for(var rt=y.length,at=0;at=tt&&(tt=1);for(var ot=z.actualBounds,rt=a.O.s,at=a.graduatedMarks,ut=rt.length,ct=0;cta.graduatedTickUnit*mt.interval*z.geometry.flattenedTotalLength/a.graduatedRange*tt&&mt.graduatedSkip===null)){var Mt=mt.measuredBounds,Dt=mt.strokeWidth*mt.scale,Tt=mt.alignmentFocus;Tt.Mc()&&(Tt=Js);for(var zt=0;zttt.height)continue}else if(at.position>tt.width)continue;var ut=at.separatorStrokeWidth;isNaN(ut)&&(ut=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var ct=at.separatorStroke;if(ct===null&&(ct=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ut!==0&&ct!==null){ho(a,y,ct,!1,!1,tt,z),ct=!1;var mt=at.separatorDashArray;mt===null&&(mt=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),mt!==null&&(ct=!0,y.js(mt,0)),y.beginPath(),mt=at.position+ut,x?mt>tt.height&&(ut-=mt-tt.height):mt>tt.width&&(ut-=mt-tt.width),at=at.position+ut/2,y.lineWidth=ut,ut=a.yb,x?(at+=ut.top,mt=tt.width-ut.right,y.moveTo(ut.left,at),y.lineTo(mt,at)):(at+=ut.left,mt=tt.height-ut.bottom,y.moveTo(at,ut.top),y.lineTo(at,mt)),y.stroke(),y.Se(),ct&&y.fs()}}}}function wm(a,y,x,E,b){for(var z=E.length,tt=a.actualBounds,ot=a.naturalBounds,rt=r1(a,!0),at=r1(a,!1),ut=0;utmt)){var yt=ct.Wc(),St=ct.separatorStrokeWidth;isNaN(St)&&(St=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Mt=ct.separatorStroke;Mt===null&&(Mt=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Mt===null||ct.index===(x?rt:at))&&(St=0),yt-=St,St=ct.position+St,yt+=ct.actual,St+yt>mt&&(yt=mt-St),0>=yt||(mt=a.yb,ho(a,y,ct.background,!0,!1,ot,tt),x?y.fillRect(mt.left,St+mt.top,tt.width-(mt.left+mt.right),yt):y.fillRect(St+mt.left,mt.top,yt,tt.height-(mt.top+mt.bottom)))}}}}function r1(a,y){for(var x=y?a.rowCount:a.columnCount,E=0;EE&&b.set(St),jt.free(St)),jt.free(ut),z&&b.transform(tt),at},wt.Gj=function(){for(var a=this.O.s,y=a.length,x=0;xx||z>E)&&(this.v(),this.measure(y>x?x:y,z>E?E:z,0,0));break;case Le:this.v(!0),this.measure(x+ot,E+tt,0,0);break;case rn:this.v(!0),this.measure(x+ot,z+tt,0,0);break;case mn:this.v(!0),this.measure(y+ot,E+tt,0,0)}}this.na.arrange(this,b,this.jg)}},wt.gh=function(a){var y=this.naturalBounds,x=gu(this);if(Ar(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var E=y.length,b=jt.allocAt(0,0);E--;){var z=y[E];if((z.visible||z===x)&&(wo(b.set(a),z.transform),z.ca(b)))return jt.free(b),!0}return jt.free(b),!(this.Ma===null&&this.areaBackground===null)}return!1},wt.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,E=0;Emt.width||ct.y>mt.height||0>ct.x+ct.width||0>ct.y+ct.height||(ct=ut,ut=ut instanceof ke?ut:null,mt=Rn.alloc(),mt.set(tt),(ut!==null?ut.Cf(a,y,x,E,b,mt):nr(ct,a,E,mt))&&(y!==null&&(ct=y(ct)),ct===null||x!==null&&!x(ct)||b.add(ct)),Rn.free(mt))}}return z===void 0&&Rn.free(tt),E}return z===void 0&&Rn.free(tt),!1};function mv(a,y,x,E){for(var b=a.O.s,z=b.length;z--;){var tt=b[z];if(tt.visible){var ot=tt.actualBounds,rt=a.naturalBounds;ot.x>rt.width||ot.y>rt.height||0>ot.x+ot.width||0>ot.y+ot.height||(tt instanceof ke&&mv(tt,y,x,E),y!==null&&(tt=y(tt)),tt===null||x!==null&&!x(tt)||E.add(tt))}}}wt.og=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;x===void 0&&(x=null),E===void 0&&(E=null);var tt=this.naturalBounds,ot=this.se(),rt=ot?a:wo(jt.allocAt(a.x,a.y),this.transform),at=ot?y:wo(jt.allocAt(y.x,y.y),this.transform),ut=rt.Bf(at),ct=0Dt.width||Mt.y>Dt.height||0>Mt.x+Mt.width||0>Mt.y+Mt.height))&&(St.se()?(Mt=St.transform,wo(rt.set(a),Mt),wo(at.set(y),Mt)):(rt.set(a),at.set(y)),Mt=St,St=St instanceof ke?St:null,(St!==null?St.og(rt,at,x,E,b,z):Mt.tx(rt,at,b))&&(x!==null&&(Mt=x(Mt)),Mt===null||E!==null&&!E(Mt)||z.add(Mt)))}}jt.free(rt),jt.free(at)}return b?ct:tt}return!1};function vv(a){var y=null;return a instanceof bn&&(y=a.spot1,y===rr&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=yr),y}function yv(a){var y=null;return a instanceof bn&&(y=a.spot2,y===rr&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=es),y}wt.add=function(a){for(var y=[],x=0;x=b.count&&a>=b.count)return;b.mb(z),E=z}else ee("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>b.count)&&(a=b.count),b.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),ea(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof ke&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Mm(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof Ke&&(x.Te=!0),x.Te&&x instanceof Ke&&(x.wc=null),b=this.diagram,b!==null&&b.undoManager.isUndoingRedoing||(E!==-1&&x.cb(Uo,"elements",this,y,null,E,null),x.cb(Co,"elements",this,null,y,null,a)))};function Sv(a,y){a.l=y?a.l|16777216:a.l&-16777217}wt.remove=function(a){for(var y=this.O.s,x=y.length,E=-1,b=0;ba&&_n(a,">= 0",ke,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Ro;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(Co,"rowdefs",this,null,x,null,a)}return y[a]},wt.oA=function(a){if(0>a&&_n(a,">= 0",ke,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(Uo,"rowdefs",this,x,null,a,null),this.v()}}};function h1(a,y,x){var E=a.rowDefs;if(!(0>y)){if(E[y]=x instanceof Ro?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}wt.Eb=function(a){0>a&&_n(a,">= 0",ke,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Ro;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(Co,"coldefs",this,null,x,null,a)}return y[a]},wt.jA=function(a){if(0>a&&_n(a,">= 0",ke,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(Uo,"coldefs",this,x,null,a,null),this.v()}}};function d1(a,y,x){var E=a.colDefs;if(!(0>y)){if(E[y]=x instanceof Ro?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}wt.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Lm(y,a),this},wt.Hy=function(a,y){return(a=this.Fb(a))&&Lm(a,new Ro(y)),this},wt.By=function(a,y){return(a=this.Eb(a))&&Lm(a,new Ro(y)),this},wt.nz=function(a){if(0>a||this.type!==ke.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,E=x.length,b=this.topIndex;ba||this.type!==ke.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,E=x.length,b=this.leftIndex;ba;)this.pc(this.O.length-1,!1);c1(this,this.itemArray)};function c1(a,y){var x=Gf(a);if(y===null||y.length===0)for(;a.O.length>x;)a.pc(a.O.length-1,!1);else if(a.O.length<=x){x=y.length;for(var E=0;Ex)){var b=Pv(a,y);if(b=wv(a,b),b!==null){if(Fa(b),b=b.copy(),b.l&16777216){var z=a.ih();z!==null&&Sv(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new An),a.ge.add(y,b)),z=x+Gf(a),a.Gb(z,b),E&&(b.ub=y,xv(a,z,x),b.ub=null),b.data=y}}}function xv(a,y,x){for(a=a.O;ya&&_n(a,">= 0",ke,"padding"),a=new jn(a)):(0>a.left&&_n(a.left,">= 0",ke,"padding:value.left"),0>a.right&&_n(a.right,">= 0",ke,"padding:value.right"),0>a.top&&_n(a.top,">= 0",ke,"padding:value.top"),0>a.bottom&&_n(a.bottom,">= 0",ke,"padding:value.bottom"));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.v(),this.g("padding",y,a))}},defaultAlignment:{get:function(){return this.Tm},set:function(a){var y=this.Tm;y.D(a)||(this.Tm=a=a.J(),this.v(),this.g("defaultAlignment",y,a))}},defaultStretch:{get:function(){return this.Uf},set:function(a){var y=this.Uf;y!==a&&(this.Uf=a,this.v(),this.g("defaultStretch",y,a))}},defaultSeparatorPadding:{get:function(){return this.T!==null?this.T.Qp:za},set:function(a){typeof a=="number"&&(a=new jn(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new ma),this.T.Qp=a,this.v(),this.g("defaultSeparatorPadding",y,a))}},defaultRowSeparatorStroke:{get:function(){return this.T!==null?this.T.ia:null},set:function(a){var y=this.defaultRowSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof fi)&&(a instanceof fi&&a.freeze(),this.T===null&&(this.T=new ma),this.T.ia=a,this.N(),this.g("defaultRowSeparatorStroke",y,a))}},defaultRowSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.Ha:1},set:function(a){var y=this.defaultRowSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new ma),this.T.Ha=a,this.v(),this.g("defaultRowSeparatorStrokeWidth",y,a))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(a){var y=this.defaultRowSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;ba)&&ee("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new ma),this.T.Hb=a,this.v(),this.g("topIndex",y,a))}},leftIndex:{get:function(){return this.T!==null?this.T.hb:0},set:function(a){var y=this.leftIndex;y!==a&&((!isFinite(a)||0>a)&&ee("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new ma),this.T.hb=a,this.v(),this.g("leftIndex",y,a))}},data:{get:function(){return this.ub},set:function(a){var y=this.ub;if(y!==a){var x=this instanceof hn&&!(this instanceof ri);Fa(this),this.ub=a;var E=this.diagram;E!==null&&(x?(x=E.partManager,this instanceof Ne?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof hn&&(y!==null&&x.cf.remove(y),a!==null&&x.cf.add(a,this))):(x=this.panel,x!==null&&x.ge!==null&&(y!==null&&x.ge.remove(y),a!==null&&x.ge.add(a,this)))),this.g("data",y,a),E!==null&&E.undoManager.isUndoingRedoing||a!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(a){var y=this.zn;y!==a&&(this.zn=a,this.g("itemIndex",y,a))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new gg),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&yx(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&ly(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&ay(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||c1(this,a)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(a){if(this.itemTemplateMap===null){if(a===null)return;this.itemTemplateMap=new An}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof hn||a.isPanelMain)&&ee("Panel.itemTemplate must not be a Part or be Panel.isPanelMain: "+a),this.itemTemplateMap.add("",a),this.g("itemTemplate",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv())}},itemTemplateMap:{get:function(){return this.A!==null?this.A.Pc:null},set:function(a){var y=this.itemTemplateMap;if(y!==a){for(var x=a.iterator;x.next(););On(this),this.A.Pc=a,this.g("itemTemplateMap",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv()}}},itemCategoryProperty:{get:function(){return this.A!==null?this.A.Oc:"category"},set:function(a){var y=this.itemCategoryProperty;y!==a&&(On(this),this.A.Oc=a,this.g("itemCategoryProperty",y,a))}},isAtomic:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("isAtomic",y,a))}},isClipping:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this instanceof Fn&&(this.tb=null),this.v(),this.g("isClipping",y,a))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(a){var y=(this.l&33554432)!==0;y!==a&&(this.l^=33554432,this.v(),this.g("isOpposite",y,a))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;if(y!==a){var x=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",y,a),y=this.diagram,y!==null&&y.undoManager.isUndoingRedoing||x&&Mm(this,this,a)}}},alignmentFocusName:{get:function(){return this.$e},set:function(a){var y=this.$e;y!==a&&(this.$e=a,this.v(),this.g("alignmentFocusName",y,a))}}}),he.Object.defineProperties(ke,{Position:{get:function(){return Ya.I("Position")}},Horizontal:{get:function(){return Ya.I("Horizontal")}},Vertical:{get:function(){return Ya.I("Vertical")}},Spot:{get:function(){return Ya.I("Spot")}},Auto:{get:function(){return Ya.I("Auto")}},Table:{get:function(){return Ya.I("Table")}},Viewbox:{get:function(){return Ya.I("Viewbox")}},TableRow:{get:function(){return Ya.I("TableRow")}},TableColumn:{get:function(){return Ya.I("TableColumn")}},Link:{get:function(){return Ya.I("Link")}},Grid:{get:function(){return Ya.I("Grid")}},Graduated:{get:function(){return Ya.I("Graduated")}}}),ke.prototype.rebuildItemElements=ke.prototype.mv,ke.prototype.findItemPanelForData=ke.prototype.sx,ke.prototype.updateTargetBindings=ke.prototype.La,ke.prototype.copyTemplate=ke.prototype.Uy,ke.prototype.graduatedValueForPoint=ke.prototype.Gz,ke.prototype.graduatedPointForValue=ke.prototype.Fz,ke.prototype.findColumnForLocalX=ke.prototype.fz,ke.prototype.findRowForLocalY=ke.prototype.nz,ke.prototype.addColumnDefinition=ke.prototype.By,ke.prototype.addRowDefinition=ke.prototype.Hy,ke.prototype.addRowColumnDefinition=ke.prototype.Gy,ke.prototype.removeColumnDefinition=ke.prototype.jA,ke.prototype.getColumnDefinition=ke.prototype.Eb,ke.prototype.removeRowDefinition=ke.prototype.oA,ke.prototype.getRowDefinition=ke.prototype.Fb,ke.prototype.removeAt=ke.prototype.mb,ke.prototype.remove=ke.prototype.remove,ke.prototype.insertAt=ke.prototype.Gb,ke.prototype.elt=ke.prototype.M,ke.prototype.add=ke.prototype.add,ke.prototype.findObject=ke.prototype.fb,ke.prototype.findInVisualTree=ke.prototype.Nl,ke.prototype.walkVisualTreeFrom=ke.prototype.qm,ke.prototype.findMainElement=ke.prototype.Pb;var f1=!1,p1=null,Ya=new An;ke.className="Panel",ke.definePanelLayout=Cl,Cl("Position",new dm),Cl("Vertical",new cm),Cl("Auto",new pm),Cl("Link",new Pm);function cu(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}cu.prototype.copy=function(){var a=new cu;return a.lq=this.lq,a.F=this.F,a.ia=this.ia,a.V=this.V,a.u=this.u,a.j=this.j,a.o=this.o,a.Zh=this.Zh,a},cu.className="GradPanelSettings";function ma(){this.Pc=[],this.Oc=[],this.j=this.ob=Am,this.hb=this.Hb=0,this.Qp=za,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}ma.prototype.copy=function(a){for(var y=new ma,x=this.Pc,E=x.length,b=y.Pc,z=0;za&&_n(a,">= 0",Ro,"height"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("height",y,a))}},width:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&_n(a,">= 0",Ro,"width"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("width",y,a))}},minimum:{get:function(){return this.jj},set:function(a){var y=this.jj;y!==a&&((0>a||!isFinite(a))&&_n(a,">= 0",Ro,"minimum"),this.jj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("minimum",y,a))}},maximum:{get:function(){return this.hj},set:function(a){var y=this.hj;y!==a&&(0>a&&_n(a,">= 0",Ro,"maximum"),this.hj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("maximum",y,a))}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(this.Jb=a.J(),this.panel!==null&&this.panel.v(),this.Ob("alignment",y,a))}},stretch:{get:function(){return this.hg},set:function(a){var y=this.hg;y!==a&&(this.hg=a,this.panel!==null&&this.panel.v(),this.Ob("stretch",y,a))}},separatorPadding:{get:function(){return this.dg},set:function(a){typeof a=="number"&&(a=new jn(a));var y=this.dg;a!==null&&y!==null&&y.D(a)||(a!==null&&(a=a.J()),this.dg=a,this.panel!==null&&this.panel.v(),this.Ob("separatorPadding",y,a))}},separatorStroke:{get:function(){return this.lo},set:function(a){var y=this.lo;y!==a&&(a!==null&&fg(a,"RowColumnDefinition.separatorStroke"),a instanceof fi&&a.freeze(),this.lo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",y,a))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(a){var y=this.mo;y!==a&&(this.mo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",y,a))}},separatorDashArray:{get:function(){return this.tj},set:function(a){var y=this.tj;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;bb)){var z=E.measuredBounds,tt=Math.max(1,z.width);z=z.height;for(var ot=x[0],rt=x[1],at,ut,ct,mt,yt,St,Mt=0,Dt=$n(),Tt=2;Ttct&&(ct=1),b=x=ct,at=tt/2,ut=at!==0,Tt=0,St=Dt[Tt],ct=St[0],yt=St[1],mt=St[2],St=St[3];for(var zt=0;.1<=Mt;){if(zt===0&&(ut?(b=x,b-=at,Mt-=at,ut=!1):b=x,b===0&&(b=1)),b>Mt){ei(Dt);return}b>St?(zt=b-St,b=St):zt=0;var Ht=Math.sqrt(b*b/(1+mt*mt));if(0>ct&&(Ht=-Ht),ot+=Ht,rt+=mt*Ht,a.translate(ot,rt),a.rotate(yt),a.translate(-(tt/2),-(z/2)),zt===0&&E.hh(a,y),a.translate(tt/2,z/2),a.rotate(-yt),a.translate(-ot,-rt),Mt-=b,St-=b,zt!==0){if(Tt++,Tt===Dt.length){ei(Dt);return}St=Dt[Tt],ct=St[0],yt=St[1],mt=St[2],St=St[3],b=zt}}ei(Dt)}}wt.hh=function(a,y){var x=this.xc,E=this.Ui;if(x!==null||E!==null){var b=this.ua;if(b!==null){a.yc();var z=this.actualBounds,tt=this.naturalBounds;E!==null&&ho(this,a,E,!0,!1,tt,z);var ot=this.part,rt=this.ig;if(x===null||rt!==0||ot===null||!this.isPanelMain&&ot.Pb()!==this||(rt=ot.type===ke.Link&&ot instanceof ri&&ot.category==="Selection"&&ot.adornedObject instanceof bn&&ot.adornedPart.Pb()===ot.adornedObject?ot.adornedObject.strokeWidth:0),rt===0&&(x=null),x!==null&&rt!==0&&(ho(this,a,x,!1,!1,tt,z),a.lineWidth=rt,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,ot&&y.Gf("drawShadows")&&(z=ot.isShadowed),a.Il===!1&&(z=!1),ot=!0,x===null||E!==null&&E!=="transparent"||(ot=!1),tt=!1,rt=this.strokeDashArray,rt!==null&&(tt=!0,a.js(rt,this.strokeDashOffset)),b.type===be.j)a.beginPath(),a.moveTo(b.startX,b.startY),a.lineTo(b.endX,b.endY),x!==null&&a.jk(),a.Se();else if(b.type===be.u){var at=b.startX;rt=b.startY;var ut=b.endX,ct=b.endY;b=Math.min(at,ut);var mt=Math.min(rt,ct);at=Math.abs(ut-at),rt=Math.abs(ct-rt),a.beginPath(),a.rect(b,mt,at,rt),E!==null&&a.ng(E),x!==null&&(ot&&z&&Rl(a),a.jk(),ot&&z&&uu(a)),a.Se()}else if(b.type===be.F)at=b.startX,rt=b.startY,ut=b.endX,ct=b.endY,b=Math.abs(ut-at)/2,mt=Math.abs(ct-rt)/2,at=Math.min(at,ut)+b,rt=Math.min(rt,ct)+mt,a.beginPath(),a.moveTo(at,rt-mt),a.bezierCurveTo(at+Jt.wg*b,rt-mt,at+b,rt-Jt.wg*mt,at+b,rt),a.bezierCurveTo(at+b,rt+Jt.wg*mt,at+Jt.wg*b,rt+mt,at,rt+mt),a.bezierCurveTo(at-Jt.wg*b,rt+mt,at-b,rt+Jt.wg*mt,at-b,rt),a.bezierCurveTo(at-b,rt-Jt.wg*mt,at-Jt.wg*b,rt-mt,at,rt-mt),a.closePath(),E!==null&&a.ng(E),x!==null&&(ot&&z&&Rl(a),a.jk(),ot&&z&&uu(a)),a.Se();else if(b.type===be.o)for(b=b.figures,rt=b.length,mt=0;mtMt.sweepAngle,yt!==null?yt.endX:at.startX,yt!==null?yt.endY:at.startY)}else if(yt=Gs(Mt,at),Dt=yt.length,Dt===0)a.lineTo(Mt.centerX,Mt.centerY);else for(var Tt=0;Tt(x.startX-x.endX)*(a.x-x.endX)+(x.startY-x.endY)*(a.y-x.endY)||0>E)?!1:(de.free(z),Jt.Yb(x.startX,x.startY,x.endX,x.endY,b,a.x,a.y));if(x.type===be.u){y=x.startX;var tt=x.startY,ot=x.endX;if(x=x.endY,z.x=Math.min(y,ot),z.y=Math.min(tt,x),z.width=Math.abs(ot-y),z.height=Math.abs(x-tt),this.fill===null){if(z.Bc(-E,-E),z.ca(a))return de.free(z),!1;z.Bc(E,E)}return this.stroke!==null&&z.Bc(b,b),a=z.ca(a),de.free(z),a}if(x.type===be.F){tt=x.startX,b=x.startY,ot=x.endX;var rt=x.endY;if(x=Math.min(tt,ot),y=Math.min(b,rt),tt=Math.abs(ot-tt)/2,b=Math.abs(rt-b)/2,x=a.x-(x+tt),y=a.y-(y+b),this.fill===null){if(tt-=E,b-=E,0>=tt||0>=b||1>=x*x/(tt*tt)+y*y/(b*b))return de.free(z),!1;tt+=E,b+=E}return this.stroke!==null&&(tt+=E,b+=E),de.free(z),0>=tt||0>=b?!1:1>=x*x/(tt*tt)+y*y/(b*b)}if(x.type===be.o)return de.free(z),this.fill===null?ch(x,a.x,a.y,b):tu(x,a,b,1=this.strokeWidth)ut=Jt.Ve(at.startX,at.startY,at.endX,at.endY,z,tt,ot,rt,b);else{if(at.startX===at.endX?(E=ct,ut=0):(y=(at.endY-at.startY)/(at.endX-at.startX),ut=ct/Math.sqrt(1+y*y),E=ut*y),y=$n(),a=new jt,Jt.Ve(at.startX+E,at.startY+ut,at.endX+E,at.endY+ut,z,tt,ot,rt,a)&&y.push(a),a=new jt,Jt.Ve(at.startX-E,at.startY-ut,at.endX-E,at.endY-ut,z,tt,ot,rt,a)&&y.push(a),a=new jt,Jt.Ve(at.startX+E,at.startY+ut,at.startX-E,at.startY-ut,z,tt,ot,rt,a)&&y.push(a),a=new jt,Jt.Ve(at.endX+E,at.endY+ut,at.endX-E,at.endY-ut,z,tt,ot,rt,a)&&y.push(a),ot=y.length,ot===0)return ei(y),!1;for(ut=!0,rt=1/0,E=0;EMath.abs(x)){if(rt=tt-ut-x*(z-E),0>a*a*x*x+at*at-rt*rt){b.x=NaN,b.y=NaN,ut=!1;break t}ct=Math.sqrt(a*a*x*x+at*at-rt*rt),ot=(-(a*a*x*rt)+a*at*ct)/(at*at+a*a*x*x)+E,a=(-(a*a*x*rt)-a*at*ct)/(at*at+a*a*x*x)+E,at=x*(ot-E)+rt+ut,rt=x*(a-E)+rt+ut,Math.abs((z-ot)*(z-ot))+Math.abs((tt-at)*(tt-at))ot){b.x=NaN,b.y=NaN,ut=!1;break t}rt=Math.sqrt(ot),ot=ut+rt,rt=ut-rt,Math.abs(ot-tt)Math.abs(St)?(Mt*=.5/St,St=.5):Mt!==0&&.5>Math.abs(Mt)&&(St*=.5/Mt,Mt=.5),Tt-=St,zt-=Mt;yt.contains(Tt,zt);)Tt-=St,zt-=Mt;for(b.x=ot,b.y=rt,Mt=0;Mtx?a-x:x-a)<(y>E?y-E:E-y)?(a=ya||Jt.$(rt.y,a))&&(rt.yy||Jt.$(rt.x,y))&&(rt.x=a&&E<=y):(a=E&&x<=a)}wt.tx=function(a,y,x){function E(Dt,Tt){for(var zt=Dt.length,Ht=0;Htb)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var b=a.Bf(y),z=b;if(1.5=b||sa(y,z,0,-ct)>=b||sa(y,z,0,ct)>=b||sa(y,z,ut,0)>=b)}else if(y.type===be.o){if(at=y.bounds,z=at.x,ot=at.y,rt=at.x+at.width,at=at.y+at.height,a.x>rt&&a.xat&&a.yb&&Qo(a.x,a.y,z,ot,rt,ot)>b&&Qo(a.x,a.y,rt,at,z,at)>b&&Qo(a.x,a.y,rt,at,rt,ot)>b)return!1;if(z=Math.sqrt(b),x){if(this.fill===null?ch(y,a.x,a.y,z):tu(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;yb)return!1;for(ot=z.segments.s,rt=ot.length,at=0;atb)return!1;break;case Nr:var mt=$n();if(Jt.Qe(tt,ut,ct.point1X,ct.point1Y,ct.point2X,ct.point2Y,ct.endX,ct.endY,.8,mt),tt=E(mt,a),ei(mt),tt||(tt=ct.endX,ut=ct.endY,a.zd(tt,ut)>b))return!1;break;case qs:if(mt=$n(),Jt.ep(tt,ut,ct.point1X,ct.point1Y,ct.endX,ct.endY,.8,mt),tt=E(mt,a),ei(mt),tt||(tt=ct.endX,ut=ct.endY,a.zd(tt,ut)>b))return!1;break;case Do:case la:mt=ct.type===Do?Gs(ct,z):La(ct,z,tt,ut);var yt=mt.length;if(yt===0){if(tt=ct.type===Do?ct.centerX:ct.endX,ut=ct.type===Do?ct.centerY:ct.endY,a.zd(tt,ut)>b)return!1;break}ct=null;for(var St=$n(),Mt=0;Mt= 0",bn,"strokeWidth:value")}},strokeCap:{get:function(){return this.Na!==null?this.Na.Hr:"butt"},set:function(a){var y=this.strokeCap;y!==a&&(typeof a!="string"||a!=="butt"&&a!=="round"&&a!=="square"?_n(a,'"butt", "round", or "square"',bn,"strokeCap"):(kd(this),this.Na.Hr=a,this.N(),this.g("strokeCap",y,a)))}},strokeJoin:{get:function(){return this.Na!==null?this.Na.Ir:"miter"},set:function(a){var y=this.strokeJoin;y!==a&&(typeof a!="string"||a!=="miter"&&a!=="bevel"&&a!=="round"?_n(a,'"miter", "bevel", or "round"',bn,"strokeJoin"):(kd(this),this.Na.Ir=a,this.N(),this.g("strokeJoin",y,a)))}},strokeMiterLimit:{get:function(){return this.Na!==null?this.Na.Jr:10},set:function(a){var y=this.strokeMiterLimit;if(y!==a&&1<=a){kd(this),this.Na.Jr=a,this.N();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeMiterLimit",y,a)}}},strokeDashArray:{get:function(){return this.Yg},set:function(a){var y=this.Yg;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;ba?a=0:1a?a=0:1(ct*ct+ut*ut)*mt*mt&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof Us&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,ct=this.spacingBelow,this.flip){case ti:a.translate(b,0),a.scale(-1,1);break;case zn:a.translate(0,z),a.scale(1,-1);break;case Pi:a.translate(b,z),a.scale(-1,-1)}if(a.yc(),ut=this.Gc,mt=(y+tt+ct)*ut,z>mt&&(E=this.verticalAlignment,E=E.y*z-E.y*mt+E.offsetY),ut===1&&this.ze!==null)ct=this.Cb,ct>b&&(ct=b),this.Oj(this.ze,a,0,E+y,b,tt,ct,x,ot,rt,at);else if(this.Qc!==null&&this.Qb!==null)for(mt=0;mtb&&(yt=b),E+=y,this.Oj(this.Qb[mt],a,0,E,b,tt,yt,x,ot,rt,at),E+=tt+ct}switch(this.flip){case ti:a.scale(-1,1),a.translate(-b,0);break;case zn:a.scale(1,-1),a.translate(0,-z);break;case Pi:a.scale(-1,-1),a.translate(-b,-z)}}},wt.Oj=function(a,y,x,E,b,z,tt,ot,rt,at,ut){var ct=0;if(ot)rt==="left"?ct=0:rt==="right"?ct=b-tt:rt==="center"&&(ct=(b-tt)/2),y.fillRect(x+ct,E+.25*z,tt,1);else{if(rt==="left"?ct=0:rt==="right"?ct=b:rt==="center"&&(ct=b/2),b=Tm!==null?Tm(this,z):.75*z,y.fillText(a,x+ct,E+b),a=z/20|0,a===0&&(a=1),rt==="right"?ct-=tt:rt==="center"&&(ct-=tt/2),at){ot=Fm!==null?Fm(this,z):.8*z,rt=x+ct,at=E+ot,b=x+ct+tt,ot=E+ot;var mt=a;y.beginPath(),y.lineWidth=mt,y.moveTo(rt,at),y.lineTo(b,ot),y.stroke(),y.Se(),y instanceof Us&&y.ad.classList.add("gojs-td")}ut&&(ut=E+z-z/2.2|0,a%2!==0&&(ut+=.5),E=x+ct,z=ut,x=x+ct+tt,tt=ut,ct=a,y.beginPath(),y.lineWidth=ct,y.moveTo(E,z),y.lineTo(x,tt),y.stroke(),y.Se(),y instanceof Us&&y.ad.classList.add("gojs-td"))}},wt.kk=function(a,y,x){if(!Qt.prototype.kk.call(this,a,y,x))return!1;if(ho(this,a,this.xc,!0,!1,this.naturalBounds,this.actualBounds),x){if(this.svg.getElementsByTagName("text").length===0)return!0;for(y=this.svg.getElementsByClassName("gojs-td"),x=0;x0&&st.prevInput=="\u200B"?Kr(dt,Fr)(dt):rn++<10?ht.detectingSelectAll=setTimeout(mn,500):(ht.selForContextMenu=null,ht.input.reset())};ht.detectingSelectAll=setTimeout(mn,200)}}if(ge&&Ee>=9&&Le(),Ft){pr(it);var $e=function(){nn(window,"mouseup",$e),setTimeout(Pe,20)};se(window,"mouseup",$e)}else setTimeout(Pe,50)},Gr.prototype.readOnlyChanged=function(it){it||this.reset(),this.textarea.disabled=it=="nocursor",this.textarea.readOnly=!!it},Gr.prototype.setUneditable=function(){},Gr.prototype.needsContentAttribute=!1;function sm(it,st){if(st=st?In(st):{},st.value=it.value,!st.tabindex&&it.tabIndex&&(st.tabindex=it.tabIndex),!st.placeholder&&it.placeholder&&(st.placeholder=it.placeholder),st.autofocus==null){var dt=me();st.autofocus=dt==it||it.getAttribute("autofocus")!=null&&dt==document.body}function ht(){it.value=It.getValue()}var ft;if(it.form&&(se(it.form,"submit",ht),!st.leaveSubmitMethodAlone)){var Pt=it.form;ft=Pt.submit;try{var At=Pt.submit=function(){ht(),Pt.submit=ft,Pt.submit(),Pt.submit=At}}catch(bt){}}st.finishInit=function(bt){bt.save=ht,bt.getTextArea=function(){return it},bt.toTextArea=function(){bt.toTextArea=isNaN,ht(),it.parentNode.removeChild(bt.getWrapperElement()),it.style.display="",it.form&&(nn(it.form,"submit",ht),!st.leaveSubmitMethodAlone&&typeof it.form.submit=="function"&&(it.form.submit=ft))}},it.style.display="none";var It=ro(function(bt){return it.parentNode.insertBefore(bt,it.nextSibling)},st);return It}function Pd(it){it.off=nn,it.on=se,it.wheelEventPixels=Ea,it.Doc=xs,it.splitLines=yi,it.countColumn=Zt,it.findColumn=wn,it.isWordChar=vi,it.Pass=ln,it.signal=tn,it.Line=Wo,it.changeEnd=Iu,it.scrollbarModel=$c,it.Pos=we,it.cmpPos=Je,it.modes=Io,it.mimeModes=Jo,it.resolveMode=jr,it.getMode=De,it.modeExtensions=ye,it.extendMode=he,it.copyState=Dn,it.startState=hi,it.innerMode=ci,it.commands=Ru,it.keyMap=ha,it.keyName=_p,it.isModifierKey=cd,it.lookupKey=Wa,it.normalizeKeyMap=pf,it.StringStream=Ze,it.SharedTextMarker=Il,it.TextMarker=oe,it.LineWidget=au,it.e_preventDefault=Mi,it.e_stopPropagation=qi,it.e_stop=pr,it.addClass=Fe,it.contains=Oe,it.rmClass=Kt,it.keyNames=Ol}im(ro),Hu(ro);var lu="iter insert remove copy getEditor constructor".split(" ");for(var hg in xs.prototype)xs.prototype.hasOwnProperty(hg)&&He(lu,hg)<0&&(ro.prototype[hg]=function(it){return function(){return it.apply(this.doc,arguments)}}(xs.prototype[hg]));return si(xs),ro.inputStyles={textarea:Gr,contenteditable:jo},ro.defineMode=function(it){!ro.defaults.mode&&it!="null"&&(ro.defaults.mode=it),Or.apply(this,arguments)},ro.defineMIME=To,ro.defineMode("null",function(){return{token:function(it){return it.skipToEnd()}}}),ro.defineMIME("text/plain","null"),ro.defineExtension=function(it,st){ro.prototype[it]=st},ro.defineDocExtension=function(it,st){xs.prototype[it]=st},ro.fromTextArea=sm,Pd(ro),ro.version="5.58.2",ro})},25419:function(Ye,pn,Yt){(function(kt){kt(Yt(89780),Yt(15525),Yt(98101))})(function(kt){"use strict";kt.defineMode("markdown",function(ue,xe){var Te=kt.getMode(ue,"text/html"),ge=Te.name=="null";function Ee(Zt){if(kt.findModeByName){var Gt=kt.findModeByName(Zt);Gt&&(Zt=Gt.mime||Gt.mimes[0])}var He=kt.getMode(ue,Zt);return He.name=="null"?null:He}xe.highlightFormatting===void 0&&(xe.highlightFormatting=!1),xe.maxBlockquoteDepth===void 0&&(xe.maxBlockquoteDepth=0),xe.taskLists===void 0&&(xe.taskLists=!1),xe.strikethrough===void 0&&(xe.strikethrough=!1),xe.emoji===void 0&&(xe.emoji=!1),xe.fencedCodeBlockHighlighting===void 0&&(xe.fencedCodeBlockHighlighting=!0),xe.fencedCodeBlockDefaultMode===void 0&&(xe.fencedCodeBlockDefaultMode="text/plain"),xe.xml===void 0&&(xe.xml=!0),xe.tokenTypeOverrides===void 0&&(xe.tokenTypeOverrides={});var qt={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var Ce in qt)qt.hasOwnProperty(Ce)&&xe.tokenTypeOverrides[Ce]&&(qt[Ce]=xe.tokenTypeOverrides[Ce]);var fe=/^([*\-_])(?:\s*\1){2,}\s*$/,pe=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,le=/^\[(x| )\](?=\s)/i,Be=xe.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,je=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Nt=/^[^#!\[\]*_\\<>` "'(~:]+/,et=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,nt=/^\s*\[[^\]]+?\]:.*$/,gt=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,lt=" ";function pt(Zt,Gt,He){return Gt.f=Gt.inline=He,He(Zt,Gt)}function vt(Zt,Gt,He){return Gt.f=Gt.block=He,He(Zt,Gt)}function Lt(Zt){return!Zt||!/\S/.test(Zt.string)}function Ft(Zt){if(Zt.linkTitle=!1,Zt.linkHref=!1,Zt.linkText=!1,Zt.em=!1,Zt.strong=!1,Zt.strikethrough=!1,Zt.quote=0,Zt.indentedCode=!1,Zt.f==Kt){var Gt=ge;if(!Gt){var He=kt.innerMode(Te,Zt.htmlState);Gt=He.mode.name=="xml"&&He.state.tagStart===null&&!He.state.context&&He.state.tokenize.isInText}Gt&&(Zt.f=ve,Zt.block=Wt,Zt.htmlState=null)}return Zt.trailingSpace=0,Zt.trailingSpaceNewLine=!1,Zt.prevLine=Zt.thisLine,Zt.thisLine={stream:null},null}function Wt(Zt,Gt){var He=Zt.column()===Gt.indentation,un=Lt(Gt.prevLine.stream),ln=Gt.indentedCode,ce=Gt.prevLine.hr,Ue=Gt.list!==!1,on=(Gt.listStack[Gt.listStack.length-1]||0)+3;Gt.indentedCode=!1;var wn=Gt.indentation;if(Gt.indentationDiff===null&&(Gt.indentationDiff=Gt.indentation,Ue)){for(Gt.list=null;wn=4&&(ln||Gt.prevLine.fencedCodeEnd||Gt.prevLine.header||un))return Zt.skipToEnd(),Gt.indentedCode=!0,qt.code;if(Zt.eatSpace())return null;if(He&&Gt.indentation<=on&&(te=Zt.match(Be))&&te[1].length<=6)return Gt.quote=0,Gt.header=te[1].length,Gt.thisLine.header=!0,xe.highlightFormatting&&(Gt.formatting="header"),Gt.f=Gt.inline,ne(Gt);if(Gt.indentation<=on&&Zt.eat(">"))return Gt.quote=He?1:Gt.quote+1,xe.highlightFormatting&&(Gt.formatting="quote"),Zt.eatSpace(),ne(Gt);if(!kn&&!Gt.setext&&He&&Gt.indentation<=on&&(te=Zt.match(pe))){var Ve=te[1]?"ol":"ul";return Gt.indentation=wn+Zt.current().length,Gt.list=!0,Gt.quote=0,Gt.listStack.push(Gt.indentation),Gt.em=!1,Gt.strong=!1,Gt.code=!1,Gt.strikethrough=!1,xe.taskLists&&Zt.match(le,!1)&&(Gt.taskList=!0),Gt.f=Gt.inline,xe.highlightFormatting&&(Gt.formatting=["list","list-"+Ve]),ne(Gt)}else{if(He&&Gt.indentation<=on&&(te=Zt.match(et,!0)))return Gt.quote=0,Gt.fencedEndRE=new RegExp(te[1]+"+ *$"),Gt.localMode=xe.fencedCodeBlockHighlighting&&Ee(te[2]||xe.fencedCodeBlockDefaultMode),Gt.localMode&&(Gt.localState=kt.startState(Gt.localMode)),Gt.f=Gt.block=_t,xe.highlightFormatting&&(Gt.formatting="code-block"),Gt.code=-1,ne(Gt);if(Gt.setext||(!sn||!Ue)&&!Gt.quote&&Gt.list===!1&&!Gt.code&&!kn&&!nt.test(Zt.string)&&(te=Zt.lookAhead(1))&&(te=te.match(je)))return Gt.setext?(Gt.header=Gt.setext,Gt.setext=0,Zt.skipToEnd(),xe.highlightFormatting&&(Gt.formatting="header")):(Gt.header=te[0].charAt(0)=="="?1:2,Gt.setext=Gt.header),Gt.thisLine.header=!0,Gt.f=Gt.inline,ne(Gt);if(kn)return Zt.skipToEnd(),Gt.hr=!0,Gt.thisLine.hr=!0,qt.hr;if(Zt.peek()==="[")return pt(Zt,Gt,Pn)}return pt(Zt,Gt,Gt.inline)}function Kt(Zt,Gt){var He=Te.token(Zt,Gt.htmlState);if(!ge){var un=kt.innerMode(Te,Gt.htmlState);(un.mode.name=="xml"&&un.state.tagStart===null&&!un.state.context&&un.state.tokenize.isInText||Gt.md_inside&&Zt.current().indexOf(">")>-1)&&(Gt.f=ve,Gt.block=Wt,Gt.htmlState=null)}return He}function _t(Zt,Gt){var He=Gt.listStack[Gt.listStack.length-1]||0,un=Gt.indentation=Zt.quote?Gt.push(qt.formatting+"-"+Zt.formatting[He]+"-"+Zt.quote):Gt.push("error"))}if(Zt.taskOpen)return Gt.push("meta"),Gt.length?Gt.join(" "):null;if(Zt.taskClosed)return Gt.push("property"),Gt.length?Gt.join(" "):null;if(Zt.linkHref?Gt.push(qt.linkHref,"url"):(Zt.strong&&Gt.push(qt.strong),Zt.em&&Gt.push(qt.em),Zt.strikethrough&&Gt.push(qt.strikethrough),Zt.emoji&&Gt.push(qt.emoji),Zt.linkText&&Gt.push(qt.linkText),Zt.code&&Gt.push(qt.code),Zt.image&&Gt.push(qt.image),Zt.imageAltText&&Gt.push(qt.imageAltText,"link"),Zt.imageMarker&&Gt.push(qt.imageMarker)),Zt.header&&Gt.push(qt.header,qt.header+"-"+Zt.header),Zt.quote&&(Gt.push(qt.quote),!xe.maxBlockquoteDepth||xe.maxBlockquoteDepth>=Zt.quote?Gt.push(qt.quote+"-"+Zt.quote):Gt.push(qt.quote+"-"+xe.maxBlockquoteDepth)),Zt.list!==!1){var un=(Zt.listStack.length-1)%3;un?un===1?Gt.push(qt.list2):Gt.push(qt.list3):Gt.push(qt.list1)}return Zt.trailingSpaceNewLine?Gt.push("trailing-space-new-line"):Zt.trailingSpace&&Gt.push("trailing-space-"+(Zt.trailingSpace%2?"a":"b")),Gt.length?Gt.join(" "):null}function $t(Zt,Gt){if(Zt.match(Nt,!0))return ne(Gt)}function ve(Zt,Gt){var He=Gt.text(Zt,Gt);if(typeof He!="undefined")return He;if(Gt.list)return Gt.list=null,ne(Gt);if(Gt.taskList){var un=Zt.match(le,!0)[1]===" ";return un?Gt.taskOpen=!0:Gt.taskClosed=!0,xe.highlightFormatting&&(Gt.formatting="task"),Gt.taskList=!1,ne(Gt)}if(Gt.taskOpen=!1,Gt.taskClosed=!1,Gt.header&&Zt.match(/^#+$/,!0))return xe.highlightFormatting&&(Gt.formatting="header"),ne(Gt);var ln=Zt.next();if(Gt.linkTitle){Gt.linkTitle=!1;var ce=ln;ln==="("&&(ce=")"),ce=(ce+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ue="^\\s*(?:[^"+ce+"\\\\]+|\\\\\\\\|\\\\.)"+ce;if(Zt.match(new RegExp(Ue),!0))return qt.linkHref}if(ln==="`"){var on=Gt.formatting;xe.highlightFormatting&&(Gt.formatting="code"),Zt.eatWhile("`");var wn=Zt.current().length;if(Gt.code==0&&(!Gt.quote||wn==1))return Gt.code=wn,ne(Gt);if(wn==Gt.code){var sn=ne(Gt);return Gt.code=0,sn}else return Gt.formatting=on,ne(Gt)}else if(Gt.code)return ne(Gt);if(ln==="\\"&&(Zt.next(),xe.highlightFormatting)){var kn=ne(Gt),te=qt.formatting+"-escape";return kn?kn+" "+te:te}if(ln==="!"&&Zt.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Gt.imageMarker=!0,Gt.image=!0,xe.highlightFormatting&&(Gt.formatting="image"),ne(Gt);if(ln==="["&&Gt.imageMarker&&Zt.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Gt.imageMarker=!1,Gt.imageAltText=!0,xe.highlightFormatting&&(Gt.formatting="image"),ne(Gt);if(ln==="]"&&Gt.imageAltText){xe.highlightFormatting&&(Gt.formatting="image");var kn=ne(Gt);return Gt.imageAltText=!1,Gt.image=!1,Gt.inline=Gt.f=Oe,kn}if(ln==="["&&!Gt.image)return Gt.linkText&&Zt.match(/^.*?\]/)||(Gt.linkText=!0,xe.highlightFormatting&&(Gt.formatting="link")),ne(Gt);if(ln==="]"&&Gt.linkText){xe.highlightFormatting&&(Gt.formatting="link");var kn=ne(Gt);return Gt.linkText=!1,Gt.inline=Gt.f=Zt.match(/\(.*?\)| ?\[.*?\]/,!1)?Oe:ve,kn}if(ln==="<"&&Zt.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Gt.f=Gt.inline=re,xe.highlightFormatting&&(Gt.formatting="link");var kn=ne(Gt);return kn?kn+=" ":kn="",kn+qt.linkInline}if(ln==="<"&&Zt.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Gt.f=Gt.inline=re,xe.highlightFormatting&&(Gt.formatting="link");var kn=ne(Gt);return kn?kn+=" ":kn="",kn+qt.linkEmail}if(xe.xml&&ln==="<"&&Zt.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Ve=Zt.string.indexOf(">",Zt.pos);if(Ve!=-1){var fn=Zt.string.substring(Zt.start,Ve);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(fn)&&(Gt.md_inside=!0)}return Zt.backUp(1),Gt.htmlState=kt.startState(Te),vt(Zt,Gt,Kt)}if(xe.xml&&ln==="<"&&Zt.match(/^\/\w*?>/))return Gt.md_inside=!1,"tag";if(ln==="*"||ln==="_"){for(var dn=1,Sn=Zt.pos==1?" ":Zt.string.charAt(Zt.pos-2);dn<3&&Zt.eat(ln);)dn++;var Vn=Zt.peek()||" ",vi=!/\s/.test(Vn)&&(!gt.test(Vn)||/\s/.test(Sn)||gt.test(Sn)),Qn=!/\s/.test(Sn)&&(!gt.test(Sn)||/\s/.test(Vn)||gt.test(Vn)),wi=null,Ci=null;if(dn%2&&(!Gt.em&&vi&&(ln==="*"||!Qn||gt.test(Sn))?wi=!0:Gt.em==ln&&Qn&&(ln==="*"||!vi||gt.test(Vn))&&(wi=!1)),dn>1&&(!Gt.strong&&vi&&(ln==="*"||!Qn||gt.test(Sn))?Ci=!0:Gt.strong==ln&&Qn&&(ln==="*"||!vi||gt.test(Vn))&&(Ci=!1)),Ci!=null||wi!=null){xe.highlightFormatting&&(Gt.formatting=wi==null?"strong":Ci==null?"em":"strong em"),wi===!0&&(Gt.em=ln),Ci===!0&&(Gt.strong=ln);var sn=ne(Gt);return wi===!1&&(Gt.em=!1),Ci===!1&&(Gt.strong=!1),sn}}else if(ln===" "&&(Zt.eat("*")||Zt.eat("_"))){if(Zt.peek()===" ")return ne(Gt);Zt.backUp(1)}if(xe.strikethrough){if(ln==="~"&&Zt.eatWhile(ln)){if(Gt.strikethrough){xe.highlightFormatting&&(Gt.formatting="strikethrough");var sn=ne(Gt);return Gt.strikethrough=!1,sn}else if(Zt.match(/^[^\s]/,!1))return Gt.strikethrough=!0,xe.highlightFormatting&&(Gt.formatting="strikethrough"),ne(Gt)}else if(ln===" "&&Zt.match(/^~~/,!0)){if(Zt.peek()===" ")return ne(Gt);Zt.backUp(2)}}if(xe.emoji&&ln===":"&&Zt.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Gt.emoji=!0,xe.highlightFormatting&&(Gt.formatting="emoji");var an=ne(Gt);return Gt.emoji=!1,an}return ln===" "&&(Zt.match(/^ +$/,!1)?Gt.trailingSpace++:Gt.trailingSpace&&(Gt.trailingSpaceNewLine=!0)),ne(Gt)}function re(Zt,Gt){var He=Zt.next();if(He===">"){Gt.f=Gt.inline=ve,xe.highlightFormatting&&(Gt.formatting="link");var un=ne(Gt);return un?un+=" ":un="",un+qt.linkInline}return Zt.match(/^[^>]+/,!0),qt.linkInline}function Oe(Zt,Gt){if(Zt.eatSpace())return null;var He=Zt.next();return He==="("||He==="["?(Gt.f=Gt.inline=Fe(He==="("?")":"]"),xe.highlightFormatting&&(Gt.formatting="link-string"),Gt.linkHref=!0,ne(Gt)):"error"}var me={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Fe(Zt){return function(Gt,He){var un=Gt.next();if(un===Zt){He.f=He.inline=ve,xe.highlightFormatting&&(He.formatting="link-string");var ln=ne(He);return He.linkHref=!1,ln}return Gt.match(me[Zt]),He.linkHref=!0,ne(He)}}function Pn(Zt,Gt){return Zt.match(/^([^\]\\]|\\.)*\]:/,!1)?(Gt.f=vn,Zt.next(),xe.highlightFormatting&&(Gt.formatting="link"),Gt.linkText=!0,ne(Gt)):pt(Zt,Gt,ve)}function vn(Zt,Gt){if(Zt.match(/^\]:/,!0)){Gt.f=Gt.inline=Mn,xe.highlightFormatting&&(Gt.formatting="link");var He=ne(Gt);return Gt.linkText=!1,He}return Zt.match(/^([^\]\\]|\\.)+/,!0),qt.linkText}function Mn(Zt,Gt){return Zt.eatSpace()?null:(Zt.match(/^[^\s]+/,!0),Zt.peek()===void 0?Gt.linkTitle=!0:Zt.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Gt.f=Gt.inline=ve,qt.linkHref+" url")}var In={startState:function(){return{f:Wt,prevLine:{stream:null},thisLine:{stream:null},block:Wt,htmlState:null,indentation:0,inline:ve,text:$t,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(Zt){return{f:Zt.f,prevLine:Zt.prevLine,thisLine:Zt.thisLine,block:Zt.block,htmlState:Zt.htmlState&&kt.copyState(Te,Zt.htmlState),indentation:Zt.indentation,localMode:Zt.localMode,localState:Zt.localMode?kt.copyState(Zt.localMode,Zt.localState):null,inline:Zt.inline,text:Zt.text,formatting:!1,linkText:Zt.linkText,linkTitle:Zt.linkTitle,linkHref:Zt.linkHref,code:Zt.code,em:Zt.em,strong:Zt.strong,strikethrough:Zt.strikethrough,emoji:Zt.emoji,header:Zt.header,setext:Zt.setext,hr:Zt.hr,taskList:Zt.taskList,list:Zt.list,listStack:Zt.listStack.slice(0),quote:Zt.quote,indentedCode:Zt.indentedCode,trailingSpace:Zt.trailingSpace,trailingSpaceNewLine:Zt.trailingSpaceNewLine,md_inside:Zt.md_inside,fencedEndRE:Zt.fencedEndRE}},token:function(Zt,Gt){if(Gt.formatting=!1,Zt!=Gt.thisLine.stream){if(Gt.header=0,Gt.hr=!1,Zt.match(/^\s*$/,!0))return Ft(Gt),null;if(Gt.prevLine=Gt.thisLine,Gt.thisLine={stream:Zt},Gt.taskList=!1,Gt.trailingSpace=0,Gt.trailingSpaceNewLine=!1,!Gt.localState&&(Gt.f=Gt.block,Gt.f!=Kt)){var He=Zt.match(/^\s*/,!0)[0].replace(/\t/g,lt).length;if(Gt.indentation=He,Gt.indentationDiff=null,He>0)return null}}return Gt.f(Zt,Gt)},innerMode:function(Zt){return Zt.block==Kt?{state:Zt.htmlState,mode:Te}:Zt.localState?{state:Zt.localState,mode:Zt.localMode}:{state:Zt,mode:In}},indent:function(Zt,Gt,He){return Zt.block==Kt&&Te.indent?Te.indent(Zt.htmlState,Gt,He):Zt.localState&&Zt.localMode.indent?Zt.localMode.indent(Zt.localState,Gt,He):kt.Pass},blankLine:Ft,getType:ne,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return In},"xml"),kt.defineMIME("text/markdown","markdown"),kt.defineMIME("text/x-markdown","markdown")})},98101:function(Ye,pn,Yt){(function(kt){kt(Yt(89780))})(function(kt){"use strict";kt.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var ue=0;ue-1&&Te.substring(qt+1,Te.length);if(Ce)return kt.findModeByExtension(Ce)},kt.findModeByName=function(Te){Te=Te.toLowerCase();for(var ge=0;ge0?Nt.cmdState[Nt.cmdState.length-1]:null}function Ee(Nt){var et=Nt.cmdState.pop();et&&et.closeBracket()}function qt(Nt){for(var et=Nt.cmdState,nt=et.length-1;nt>=0;nt--){var gt=et[nt];if(gt.name!="DEFAULT")return gt}return{styleIdentifier:function(){return null}}}function Ce(Nt,et,nt){return function(){this.name=Nt,this.bracketNo=0,this.style=et,this.styles=nt,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var fe={};fe.importmodule=Ce("importmodule","tag",["string","builtin"]),fe.documentclass=Ce("documentclass","tag",["","atom"]),fe.usepackage=Ce("usepackage","tag",["atom"]),fe.begin=Ce("begin","tag",["atom"]),fe.end=Ce("end","tag",["atom"]),fe.label=Ce("label","tag",["atom"]),fe.ref=Ce("ref","tag",["atom"]),fe.eqref=Ce("eqref","tag",["atom"]),fe.cite=Ce("cite","tag",["atom"]),fe.bibitem=Ce("bibitem","tag",["atom"]),fe.Bibitem=Ce("Bibitem","tag",["atom"]),fe.RBibitem=Ce("RBibitem","tag",["atom"]),fe.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function pe(Nt,et){Nt.f=et}function le(Nt,et){var nt;if(Nt.match(/^\\[a-zA-Z@]+/)){var gt=Nt.current().slice(1);return nt=fe.hasOwnProperty(gt)?fe[gt]:fe.DEFAULT,nt=new nt,Te(et,nt),pe(et,je),nt.style}if(Nt.match(/^\\[$&%#{}_]/)||Nt.match(/^\\[,;!\/\\]/))return"tag";if(Nt.match("\\["))return pe(et,function(pt,vt){return Be(pt,vt,"\\]")}),"keyword";if(Nt.match("\\("))return pe(et,function(pt,vt){return Be(pt,vt,"\\)")}),"keyword";if(Nt.match("$$"))return pe(et,function(pt,vt){return Be(pt,vt,"$$")}),"keyword";if(Nt.match("$"))return pe(et,function(pt,vt){return Be(pt,vt,"$")}),"keyword";var lt=Nt.next();if(lt=="%")return Nt.skipToEnd(),"comment";if(lt=="}"||lt=="]"){if(nt=ge(et),nt)nt.closeBracket(lt),pe(et,je);else return"error";return"bracket"}else return lt=="{"||lt=="["?(nt=fe.DEFAULT,nt=new nt,Te(et,nt),"bracket"):/\d/.test(lt)?(Nt.eatWhile(/[\w.%]/),"atom"):(Nt.eatWhile(/[\w\-_]/),nt=qt(et),nt.name=="begin"&&(nt.argument=Nt.current()),nt.styleIdentifier())}function Be(Nt,et,nt){if(Nt.eatSpace())return null;if(nt&&Nt.match(nt))return pe(et,le),"keyword";if(Nt.match(/^\\[a-zA-Z@]+/))return"tag";if(Nt.match(/^[a-zA-Z]+/))return"variable-2";if(Nt.match(/^\\[$&%#{}_]/)||Nt.match(/^\\[,;!\/]/)||Nt.match(/^[\^_&]/))return"tag";if(Nt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Nt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var gt=Nt.next();return gt=="{"||gt=="}"||gt=="["||gt=="]"||gt=="("||gt==")"?"bracket":gt=="%"?(Nt.skipToEnd(),"comment"):"error"}function je(Nt,et){var nt=Nt.peek(),gt;return nt=="{"||nt=="["?(gt=ge(et),gt.openBracket(nt),Nt.eat(nt),pe(et,le),"bracket"):/[ \t\r]/.test(nt)?(Nt.eat(nt),null):(pe(et,le),Ee(et),le(Nt,et))}return{startState:function(){var Nt=xe.inMathMode?function(et,nt){return Be(et,nt)}:le;return{cmdState:[],f:Nt}},copyState:function(Nt){return{cmdState:Nt.cmdState.slice(),f:Nt.f}},token:function(Nt,et){return et.f(Nt,et)},blankLine:function(Nt){Nt.f=le,Nt.cmdState.length=0},lineComment:"%"}}),kt.defineMIME("text/x-stex","stex"),kt.defineMIME("text/x-latex","stex")})},15525:function(Ye,pn,Yt){(function(kt){kt(Yt(89780))})(function(kt){"use strict";var ue={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},xe={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};kt.defineMode("xml",function(Te,ge){var Ee=Te.indentUnit,qt={},Ce=ge.htmlMode?ue:xe;for(var fe in Ce)qt[fe]=Ce[fe];for(var fe in ge)qt[fe]=ge[fe];var pe,le;function Be(re,Oe){function me(vn){return Oe.tokenize=vn,vn(re,Oe)}var Fe=re.next();if(Fe=="<")return re.eat("!")?re.eat("[")?re.match("CDATA[")?me(et("atom","]]>")):null:re.match("--")?me(et("comment","-->")):re.match("DOCTYPE",!0,!0)?(re.eatWhile(/[\w\._\-]/),me(nt(1))):null:re.eat("?")?(re.eatWhile(/[\w\._\-]/),Oe.tokenize=et("meta","?>"),"meta"):(pe=re.eat("/")?"closeTag":"openTag",Oe.tokenize=je,"tag bracket");if(Fe=="&"){var Pn;return re.eat("#")?re.eat("x")?Pn=re.eatWhile(/[a-fA-F\d]/)&&re.eat(";"):Pn=re.eatWhile(/[\d]/)&&re.eat(";"):Pn=re.eatWhile(/[\w\.\-:]/)&&re.eat(";"),Pn?"atom":"error"}else return re.eatWhile(/[^&<]/),null}Be.isInText=!0;function je(re,Oe){var me=re.next();if(me==">"||me=="/"&&re.eat(">"))return Oe.tokenize=Be,pe=me==">"?"endTag":"selfcloseTag","tag bracket";if(me=="=")return pe="equals",null;if(me=="<"){Oe.tokenize=Be,Oe.state=vt,Oe.tagName=Oe.tagStart=null;var Fe=Oe.tokenize(re,Oe);return Fe?Fe+" tag error":"tag error"}else return/[\'\"]/.test(me)?(Oe.tokenize=Nt(me),Oe.stringStartCol=re.column(),Oe.tokenize(re,Oe)):(re.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Nt(re){var Oe=function(me,Fe){for(;!me.eol();)if(me.next()==re){Fe.tokenize=je;break}return"string"};return Oe.isInAttribute=!0,Oe}function et(re,Oe){return function(me,Fe){for(;!me.eol();){if(me.match(Oe)){Fe.tokenize=Be;break}me.next()}return re}}function nt(re){return function(Oe,me){for(var Fe;(Fe=Oe.next())!=null;){if(Fe=="<")return me.tokenize=nt(re+1),me.tokenize(Oe,me);if(Fe==">")if(re==1){me.tokenize=Be;break}else return me.tokenize=nt(re-1),me.tokenize(Oe,me)}return"meta"}}function gt(re,Oe,me){this.prev=re.context,this.tagName=Oe,this.indent=re.indented,this.startOfLine=me,(qt.doNotIndent.hasOwnProperty(Oe)||re.context&&re.context.noIndent)&&(this.noIndent=!0)}function lt(re){re.context&&(re.context=re.context.prev)}function pt(re,Oe){for(var me;;){if(!re.context||(me=re.context.tagName,!qt.contextGrabbers.hasOwnProperty(me)||!qt.contextGrabbers[me].hasOwnProperty(Oe)))return;lt(re)}}function vt(re,Oe,me){return re=="openTag"?(me.tagStart=Oe.column(),Lt):re=="closeTag"?Ft:vt}function Lt(re,Oe,me){return re=="word"?(me.tagName=Oe.current(),le="tag",_t):qt.allowMissingTagName&&re=="endTag"?(le="tag bracket",_t(re,Oe,me)):(le="error",Lt)}function Ft(re,Oe,me){if(re=="word"){var Fe=Oe.current();return me.context&&me.context.tagName!=Fe&&qt.implicitlyClosed.hasOwnProperty(me.context.tagName)&<(me),me.context&&me.context.tagName==Fe||qt.matchClosing===!1?(le="tag",Wt):(le="tag error",Kt)}else return qt.allowMissingTagName&&re=="endTag"?(le="tag bracket",Wt(re,Oe,me)):(le="error",Kt)}function Wt(re,Oe,me){return re!="endTag"?(le="error",Wt):(lt(me),vt)}function Kt(re,Oe,me){return le="error",Wt(re,Oe,me)}function _t(re,Oe,me){if(re=="word")return le="attribute",ne;if(re=="endTag"||re=="selfcloseTag"){var Fe=me.tagName,Pn=me.tagStart;return me.tagName=me.tagStart=null,re=="selfcloseTag"||qt.autoSelfClosers.hasOwnProperty(Fe)?pt(me,Fe):(pt(me,Fe),me.context=new gt(me,Fe,Pn==me.indented)),vt}return le="error",_t}function ne(re,Oe,me){return re=="equals"?$t:(qt.allowMissing||(le="error"),_t(re,Oe,me))}function $t(re,Oe,me){return re=="string"?ve:re=="word"&&qt.allowUnquoted?(le="string",_t):(le="error",_t(re,Oe,me))}function ve(re,Oe,me){return re=="string"?ve:_t(re,Oe,me)}return{startState:function(re){var Oe={tokenize:Be,state:vt,indented:re||0,tagName:null,tagStart:null,context:null};return re!=null&&(Oe.baseIndent=re),Oe},token:function(re,Oe){if(!Oe.tagName&&re.sol()&&(Oe.indented=re.indentation()),re.eatSpace())return null;pe=null;var me=Oe.tokenize(re,Oe);return(me||pe)&&me!="comment"&&(le=null,Oe.state=Oe.state(pe||me,re,Oe),le&&(me=le=="error"?me+" error":le)),me},indent:function(re,Oe,me){var Fe=re.context;if(re.tokenize.isInAttribute)return re.tagStart==re.indented?re.stringStartCol+1:re.indented+Ee;if(Fe&&Fe.noIndent)return kt.Pass;if(re.tokenize!=je&&re.tokenize!=Be)return me?me.match(/^(\s*)/)[0].length:0;if(re.tagName)return qt.multilineTagIndentPastTag!==!1?re.tagStart+re.tagName.length+2:re.tagStart+Ee*(qt.multilineTagIndentFactor||1);if(qt.alignCDATA&&/$/,blockCommentStart:"",configuration:qt.htmlMode?"html":"xml",helperType:qt.htmlMode?"html":"xml",skipAttribute:function(re){re.state==$t&&(re.state=_t)},xmlCurrentTag:function(re){return re.tagName?{name:re.tagName,close:re.type=="closeTag"}:null},xmlCurrentContext:function(re){for(var Oe=[],me=re.context;me;me=me.prev)me.tagName&&Oe.push(me.tagName);return Oe.reverse()}}}),kt.defineMIME("text/xml","xml"),kt.defineMIME("application/xml","xml"),kt.mimeModes.hasOwnProperty("text/html")||kt.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(Ye,pn,Yt){"use strict";Yt.d(pn,{$u:function(){return fe},BD:function(){return dn},E9:function(){return Ce},FF:function(){return xo},FJ:function(){return vt},Hn:function(){return pt},KX:function(){return Ft},NB:function(){return Ot},S0:function(){return te},UL:function(){return pe},Vk:function(){return lt},Vm:function(){return xt},YI:function(){return Ve},ZA:function(){return xe},Zt:function(){return le},al:function(){return wi},bn:function(){return Qn},bx:function(){return Sn},g2:function(){return fn},h1:function(){return $t},hD:function(){return si},l4:function(){return Ee},rU:function(){return Ct},s_:function(){return Vn},uz:function(){return xn},z6:function(){return Be}}),Ye=Yt.hmd(Ye),function(){var wt;function Es(a){var y=0;return function(){return yx&&(x=Math.max(0,b+x)),(E==null||E>b)&&(E=b),E=Number(E),0>E&&(E=Math.max(0,b+E)),x=Number(x||0);x=a.length?a.push(x):a.splice(y,0,x):ee("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function Zi(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):ee("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function $n(){var a=ji.pop();return a===void 0?[]:a}function ei(a){a.length=0,ji.push(a)}function Wn(a){if(typeof a=="function"){if(a.className)return a.className;if(a.name)return a.name;var y=a.toString();if(y=y.substring(9,y.indexOf("(")).trim(),y!=="")return a._className=y}else if(we(a)&&a.constructor)return Wn(a.constructor);return typeof a}function lo(a){var y=a;return we(a)&&(a.text?y=a.text:a.name?y=a.name:a.key!==void 0?y=a.key:a.id!==void 0?y=a.id:a.constructor===Object&&(a.Text?y=a.Text:a.Name?y=a.Name:a.Key!==void 0?y=a.Key:a.Id!==void 0?y=a.Id:a.ID!==void 0&&(y=a.ID))),y===void 0?"undefined":y===null?"null":y.toString()}function ur(a,y){if(a.hasOwnProperty(y))return!0;for(a=Object.getPrototypeOf(a);a&&a!==Function;){if(a.hasOwnProperty(y))return!0;var x=a.CA;if(x&&x[y])return!0;a=Object.getPrototypeOf(a)}return!1}function Fo(a,y,x){Object.defineProperty(Vi.prototype,a,{get:y,set:x})}function Re(a){for(var y=[],x=0;256>x;x++)y["0123456789abcdef".charAt(x>>4)+"0123456789abcdef".charAt(x&15)]=String.fromCharCode(x);a.length%2&&(a="0"+a),x=[];for(var E=0,b=0;bx;x++)y[x]=x;for(x=E=0;256>x;x++)E=(E+y[x]+119)%256,b=y[x],y[x]=y[E],y[E]=b;E=x=0;for(var z="",tt=0;tt-1||z.indexOf("\xA9 1998-2021 Northwoods Software")>-1||z.indexOf("Not for distribution or production use")>-1||z.indexOf("gojs.net")>-1?"":z}var vo=Ze.navigator!==void 0&&0this.key)return!1;a=a.s;var y=a.length,x=++this.Za,E=this.qf;if(E!==null)for(;xthis.key)return!1;var y=--this.Za;return 0<=y?(this.key=y,this.value=a.s[y],!0):(this.de(),!1)},io.prototype.Ad=function(){return this.next()},io.prototype.first=function(){var a=this.Bb;this.qa=a.Ja;var y=a.s;return this.Za=a=y.length-1,0<=a?(y=y[a],this.key=a,this.value=y):null},io.prototype.any=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(a(y[x]))return!0;return!1},io.prototype.all=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(!a(y[x]))return!1;return!0},io.prototype.each=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)a(y[x]);return this},io.prototype.map=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--)x.push(a(y[E]));return a=new ze,a.s=x,a.xb(),a.iterator},io.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--){var b=y[E];a(b)&&x.push(b)}return a=new ze,a.s=x,a.xb(),a.iterator},io.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},io.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},he.Object.defineProperties(io.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),io.prototype.first=io.prototype.first,io.prototype.hasNext=io.prototype.Ad,io.prototype.next=io.prototype.next,io.prototype.reset=io.prototype.reset,io.className="ListIteratorBackwards";function ze(a){Yi(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&ee("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}wt=ze.prototype,wt.xb=function(){var a=this.Ja;a++,999999999a||a>=y.length)&&_n(a,"0 <= i < length",ze,"elt:i"),y[a]},wt.get=function(a){return this.M(a)},wt.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&_n(a,"0 <= i < length",ze,"setElt:i"),this._isFrozen&&yn(this,a),x[a]=y},wt.set=function(a,y){this.cd(a,y)},wt.first=function(){var a=this.s;return a.length===0?null:a[0]},wt.jc=function(){var a=this.s,y=a.length;return 0a&&_n(a,">= 0",ze,"insertAt:i"),this._isFrozen&&yn(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},wt.remove=function(a){if(a===null)return!1;this._isFrozen&&yn(this,a);var y=this.s;return a=y.indexOf(a),a===-1?!1:(a===y.length-1?y.pop():y.splice(a,1),this.xb(),!0)},wt.delete=function(a){return this.remove(a)},wt.mb=function(a){var y=this.s;(0>a||a>=y.length)&&_n(a,"0 <= i < length",ze,"removeAt:i"),this._isFrozen&&yn(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},wt.removeRange=function(a,y){var x=this.s,E=x.length;if(0>a)a=0;else if(a>=E)return this;if(0>y)return this;if(y>=E&&(y=E-1),a>y)return this;this._isFrozen&&yn(this);for(var b=a,z=y+1;z=z)return this;if((0>y||y>=b-1)&&_n(y,"0 <= from < length",ze,"sortRange:from"),z===2)return x=E[y],b=E[y+1],0=b)E.sort(a);else for(y=E.slice(0,x),y.sort(a),a=0;a=b)for(x=E.slice(y),x.sort(a),a=y;a=this.s.length)return no;var a=this.Sa;return a!==null?(a.reset(),a):new Gi(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return no;var a=this.Hg;return a!==null?(a.reset(),a):new io(this)}}}),ze.prototype.reverse=ze.prototype.reverse,ze.prototype.sortRange=ze.prototype.zi,ze.prototype.sort=ze.prototype.sort,ze.prototype.toSet=ze.prototype.Iv,ze.prototype.toArray=ze.prototype.Fa,ze.prototype.removeRange=ze.prototype.removeRange,ze.prototype.removeAt=ze.prototype.mb,ze.prototype.delete=ze.prototype.delete,ze.prototype.remove=ze.prototype.remove,ze.prototype.insertAt=ze.prototype.Gb,ze.prototype.pop=ze.prototype.pop,ze.prototype.last=ze.prototype.jc,ze.prototype.first=ze.prototype.first,ze.prototype.set=ze.prototype.set,ze.prototype.setElt=ze.prototype.cd,ze.prototype.get=ze.prototype.get,ze.prototype.elt=ze.prototype.M,ze.prototype.indexOf=ze.prototype.indexOf,ze.prototype.has=ze.prototype.has,ze.prototype.contains=ze.prototype.contains,ze.prototype.clear=ze.prototype.clear,ze.prototype.addAll=ze.prototype.addAll,ze.prototype.push=ze.prototype.push,ze.prototype.add=ze.prototype.add,ze.prototype.thaw=ze.prototype.ka,ze.prototype.freeze=ze.prototype.freeze,ze.className="List";function Wi(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Wi.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},Wi.prototype.next=function(){var a=this.eg;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},Wi.prototype.Ad=function(){return this.next()},Wi.prototype.first=function(){var a=this.eg;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},Wi.prototype.any=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Wi.prototype.all=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Wi.prototype.each=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},Wi.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new ze;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Wi.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new ze;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},Wi.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},Wi.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},he.Object.defineProperties(Wi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),Wi.prototype.first=Wi.prototype.first,Wi.prototype.hasNext=Wi.prototype.Ad,Wi.prototype.next=Wi.prototype.next,Wi.prototype.reset=Wi.prototype.reset,Wi.className="SetIterator";function Ie(a){Yi(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&ee("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}wt=Ie.prototype,wt.xb=function(){var a=this.Ja;a++,999999999=this.Sb)return no;var a=this.Sa;return a!==null?(a.reset(),a):new Wi(this)}}}),Ie.prototype.toList=Ie.prototype.Hv,Ie.prototype.toArray=Ie.prototype.Fa,Ie.prototype.clear=Ie.prototype.clear,Ie.prototype.retainAll=Ie.prototype.pA,Ie.prototype.removeAll=Ie.prototype.hp,Ie.prototype.delete=Ie.prototype.delete,Ie.prototype.remove=Ie.prototype.remove,Ie.prototype.first=Ie.prototype.first,Ie.prototype.containsAny=Ie.prototype.Ty,Ie.prototype.containsAll=Ie.prototype.Sy,Ie.prototype.has=Ie.prototype.has,Ie.prototype.contains=Ie.prototype.contains,Ie.prototype.addAll=Ie.prototype.addAll,Ie.prototype.add=Ie.prototype.add,Ie.prototype.thaw=Ie.prototype.ka,Ie.prototype.freeze=Ie.prototype.freeze;var _r=1;Ie.className="Set",Ie.uniqueHash=Yi,Ie.hashIdUnique=zr,Ie.hashId=Ko;function Xo(a){this.ma=a,this.qa=a.Ja,this.sa=null}Xo.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Xo.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=this.key=a=y.key,!0):(this.de(),!1)},Xo.prototype.Ad=function(){return this.next()},Xo.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.value=this.key=a=a.key):null},Xo.prototype.any=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Xo.prototype.all=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Xo.prototype.each=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;)a(y.key),y=y.va;return this},Xo.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new ze;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},Xo.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new ze;for(y=y.ea;y!==null;){var E=y.key;a(E)&&x.add(E),y=y.va}return x.iterator},Xo.prototype.de=function(){this.value=this.key=null,this.qa=-1},Xo.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},he.Object.defineProperties(Xo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Xo.prototype.first=Xo.prototype.first,Xo.prototype.hasNext=Xo.prototype.Ad,Xo.prototype.next=Xo.prototype.next,Xo.prototype.reset=Xo.prototype.reset,Xo.className="MapKeySetIterator";function Bi(a){Ie.call(this),Yi(this),this._isFrozen=!0,this.ma=a}ye(Bi,Ie),wt=Bi.prototype,wt.freeze=function(){return this},wt.ka=function(){return this},wt.toString=function(){return"MapKeySet("+this.ma.toString()+")"},wt.add=function(){ee("This Set is read-only: "+this.toString())},wt.contains=function(a){return this.ma.contains(a)},wt.has=function(a){return this.contains(a)},wt.remove=function(){ee("This Set is read-only: "+this.toString())},wt.delete=function(a){return this.remove(a)},wt.clear=function(){ee("This Set is read-only: "+this.toString())},wt.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Bi.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Bi.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Bi.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Bi.prototype.map=function(a){for(var y=new Ie,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},Bi.prototype.filter=function(a){for(var y=new Ie,x=this.ma.ea;x!==null;){var E=x.key;a(E)&&y.add(E),x=x.va}return y},Bi.prototype.copy=function(){return new Bi(this.ma)},Bi.prototype.Iv=function(){var a=new Ie,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Bi.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),x=0,E;for(E in a)y[x]=a[E].key,x++;return y},Bi.prototype.Hv=function(){var a=new ze,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},he.Object.defineProperties(Bi.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?no:new Xo(this.ma)}}}),Bi.prototype.toList=Bi.prototype.Hv,Bi.prototype.toArray=Bi.prototype.Fa,Bi.prototype.toSet=Bi.prototype.Iv,Bi.prototype.first=Bi.prototype.first,Bi.prototype.clear=Bi.prototype.clear,Bi.prototype.delete=Bi.prototype.delete,Bi.prototype.remove=Bi.prototype.remove,Bi.prototype.has=Bi.prototype.has,Bi.prototype.contains=Bi.prototype.contains,Bi.prototype.add=Bi.prototype.add,Bi.prototype.thaw=Bi.prototype.ka,Bi.prototype.freeze=Bi.prototype.freeze,Bi.className="MapKeySet";function Po(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}Po.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},Po.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},Po.prototype.Ad=function(){return this.next()},Po.prototype.first=function(){var a=this.ma;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},Po.prototype.any=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Po.prototype.all=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Po.prototype.each=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},Po.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new ze;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Po.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new ze;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},Po.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},Po.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},he.Object.defineProperties(Po.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Po.prototype.first=Po.prototype.first,Po.prototype.hasNext=Po.prototype.Ad,Po.prototype.next=Po.prototype.next,Po.prototype.reset=Po.prototype.reset,Po.className="MapValueSetIterator";function Pa(a,y){this.key=a,this.value=y,this.ll=this.va=null}Pa.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Pa.className="KeyValuePair";function hr(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}hr.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},hr.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.key=y.key,this.value=y.value,!0):(this.de(),!1)},hr.prototype.Ad=function(){return this.next()},hr.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.key=a.key,this.value=a.value,a):null},hr.prototype.any=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},hr.prototype.all=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},hr.prototype.each=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y),y=y.va;return this},hr.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new ze;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},hr.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new ze;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},hr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},hr.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},he.Object.defineProperties(hr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),hr.prototype.first=hr.prototype.first,hr.prototype.hasNext=hr.prototype.Ad,hr.prototype.next=hr.prototype.next,hr.prototype.reset=hr.prototype.reset,hr.className="MapIterator";function En(a){Yi(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.jf=this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&ee("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}wt=En.prototype,wt.xb=function(){var a=this.Ja;a++,999999999=this.count)return no;var a=this.Sa;return a!==null?(a.reset(),a):new hr(this)}},iteratorKeys:{get:function(){return 0>=this.count?no:new Xo(this)}},iteratorValues:{get:function(){if(0>=this.count)return no;var a=this.jf;return a!==null?(a.reset(),a):new Po(this)}}}),En.prototype.toKeySet=En.prototype.Lf,En.prototype.toArray=En.prototype.Fa,En.prototype.clear=En.prototype.clear,En.prototype.delete=En.prototype.delete,En.prototype.remove=En.prototype.remove,En.prototype.get=En.prototype.get,En.prototype.getValue=En.prototype.I,En.prototype.has=En.prototype.has,En.prototype.contains=En.prototype.contains,En.prototype.first=En.prototype.first,En.prototype.addAll=En.prototype.addAll,En.prototype.set=En.prototype.set,En.prototype.add=En.prototype.add,En.prototype.thaw=En.prototype.ka,En.prototype.freeze=En.prototype.freeze,En.className="Map";function jt(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):ee("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var Dr,$r,Tl,wa,fl;jt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},jt.prototype.h=function(a,y){return this.x=a,this.y=y,this},jt.prototype.sg=function(a,y){return this.x=a,this.y=y,this},jt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},jt.prototype.copy=function(){var a=new jt;return a.x=this.x,a.y=this.y,a},wt=jt.prototype,wt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},wt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},wt.freeze=function(){return this._isFrozen=!0,this},wt.ka=function(){return Object.isFrozen(this)&&ee("cannot thaw constant: "+this),this._isFrozen=!1,this};function Pu(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new jt(x,b)}return new jt}function td(a){return a.x.toString()+" "+a.y.toString()}wt.toString=function(){return"Point("+this.x+","+this.y+")"},wt.D=function(a){return a instanceof jt?this.x===a.x&&this.y===a.y:!1},wt.hi=function(a,y){return this.x===a&&this.y===y},wt.Xa=function(a){return Jt.B(this.x,a.x)&&Jt.B(this.y,a.y)},wt.add=function(a){return this.x+=a.x,this.y+=a.y,this},wt.re=function(a){return this.x-=a.x,this.y-=a.y,this},wt.offset=function(a,y){return this.x+=a,this.y+=y,this},jt.prototype.rotate=function(a){if(a===0)return this;var y=this.x,x=this.y;if(y===0&&x===0)return this;if(360<=a?a-=360:0>a&&(a+=360),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));return this.x=a*y-E*x,this.y=E*y+a*x,this},wt=jt.prototype,wt.scale=function(a,y){return this.x*=a,this.y*=y,this},wt.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},wt.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},wt.normalize=function(){var a=this.x,y=this.y,x=Math.sqrt(a*a+y*y);return 0y?270:0;if(y===0)return 0a?x=0>y?x+180:180-x:0>y&&(x=360-x),x}wt.Ry=function(a,y){return Jt.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},wt.fA=function(a,y,x,E){return Jt.qh(a,y,x,E,this.x,this.y,this),this},wt.gA=function(a,y){return Jt.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},wt.uA=function(a,y,x,E){return Jt.No(this.x,this.y,a,y,x,E,this),this},wt.vA=function(a,y){return Jt.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},wt.xi=function(a,y){return this.x=a.x+y.x*a.width+y.offsetX,this.y=a.y+y.y*a.height+y.offsetY,this},wt.yi=function(a,y,x,E,b){return this.x=a+b.x*x+b.offsetX,this.y=y+b.y*E+b.offsetY,this},wt.transform=function(a){return a.Ga(this),this};function wo(a,y){return y.Cd(a),a}function Qo(a,y,x,E,b,z){var tt=b-x,ot=z-E,rt=tt*tt+ot*ot;x-=a,E-=y;var at=-x*tt-E*ot;return 0>=at||at>=rt?(tt=b-a,ot=z-y,Math.min(x*x+E*E,tt*tt+ot*ot)):(a=tt*E-ot*x,a*a/rt)}function sa(a,y,x,E){return a=x-a,y=E-y,a*a+y*y}function li(a,y,x,E){return a=x-a,y=E-y,a===0?0y?270:0:y===0?0a?E=0>y?E+180:180-E:0>y&&(E=360-E),E)}wt.w=function(){return isFinite(this.x)&&isFinite(this.y)},jt.alloc=function(){var a=Un.pop();return a===void 0?new jt:a},jt.allocAt=function(a,y){var x=Un.pop();return x===void 0?new jt(a,y):(x.x=a,x.y=y,x)},jt.free=function(a){Un.push(a)},jt.prototype.isReal=jt.prototype.w,jt.prototype.setSpot=jt.prototype.yi,jt.prototype.setRectSpot=jt.prototype.xi,jt.prototype.snapToGridPoint=jt.prototype.vA,jt.prototype.snapToGrid=jt.prototype.uA,jt.prototype.projectOntoLineSegmentPoint=jt.prototype.gA,jt.prototype.projectOntoLineSegment=jt.prototype.fA,jt.intersectingLineSegments=function(a,y,x,E,b,z,tt,ot){return Jt.Rl(a,y,x,E,b,z,tt,ot)},jt.prototype.compareWithLineSegmentPoint=jt.prototype.Ry,jt.compareWithLineSegment=function(a,y,x,E,b,z){return Jt.Fl(a,y,x,E,b,z)},jt.prototype.direction=jt.prototype.direction,jt.prototype.directionPoint=jt.prototype.ab,jt.prototype.normalize=jt.prototype.normalize,jt.prototype.distanceSquared=jt.prototype.zd,jt.prototype.distanceSquaredPoint=jt.prototype.Bf,jt.prototype.scale=jt.prototype.scale,jt.prototype.rotate=jt.prototype.rotate,jt.prototype.offset=jt.prototype.offset,jt.prototype.subtract=jt.prototype.re,jt.prototype.add=jt.prototype.add,jt.prototype.equalsApprox=jt.prototype.Xa,jt.prototype.equalTo=jt.prototype.hi,jt.prototype.equals=jt.prototype.D,jt.prototype.set=jt.prototype.set,jt.prototype.setTo=jt.prototype.sg;var Un=[];jt.className="Point",jt.parse=Pu,jt.stringify=td,jt.distanceLineSegmentSquared=Qo,jt.distanceSquared=sa,jt.direction=li,jt.Origin=Dr=new jt(0,0).ja(),jt.InfiniteTopLeft=$r=new jt(-1/0,-1/0).ja(),jt.InfiniteBottomRight=Tl=new jt(1/0,1/0).ja(),jt.SixPoint=wa=new jt(6,6).ja(),jt.NoPoint=fl=new jt(NaN,NaN).ja(),jt.parse=Pu,jt.stringify=td,jt.distanceLineSegmentSquared=Qo,jt.distanceSquared=sa,jt.direction=li;function Xe(a,y){a===void 0?this.height=this.width=0:typeof a=="number"&&(0<=a||isNaN(a))&&typeof y=="number"&&(0<=y||isNaN(y))?(this.width=a,this.height=y):ee("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var Jn,bi,Bo,Zo,Wo,vr,qo;Xe.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},Xe.prototype.h=function(a,y){return this.width=a,this.height=y,this},Xe.prototype.sg=function(a,y){return this.width=a,this.height=y,this},Xe.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},Xe.prototype.copy=function(){var a=new Xe;return a.width=this.width,a.height=this.height,a},wt=Xe.prototype,wt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},wt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},wt.freeze=function(){return this._isFrozen=!0,this},wt.ka=function(){return Object.isFrozen(this)&&ee("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ca(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new Xe(x,b)}return new Xe}function zs(a){return a.width.toString()+" "+a.height.toString()}wt.toString=function(){return"Size("+this.width+","+this.height+")"},wt.D=function(a){return a instanceof Xe?this.width===a.width&&this.height===a.height:!1},wt.hi=function(a,y){return this.width===a&&this.height===y},wt.Xa=function(a){return Jt.B(this.width,a.width)&&Jt.B(this.height,a.height)},wt.Bc=function(a,y){return a=this.width+a,this.width=0<=a?a:0,y=this.height+y,this.height=0<=y?y:0,this},wt.w=function(){return isFinite(this.width)&&isFinite(this.height)},Xe.alloc=function(){var a=Fl.pop();return a===void 0?new Xe:a},Xe.free=function(a){Fl.push(a)},Xe.prototype.isReal=Xe.prototype.w,Xe.prototype.inflate=Xe.prototype.Bc,Xe.prototype.equalsApprox=Xe.prototype.Xa,Xe.prototype.equalTo=Xe.prototype.hi,Xe.prototype.equals=Xe.prototype.D,Xe.prototype.set=Xe.prototype.set,Xe.prototype.setTo=Xe.prototype.sg;var Fl=[];Xe.className="Size",Xe.parse=Ca,Xe.stringify=zs,Xe.ZeroSize=Jn=new Xe(0,0).ja(),Xe.OneSize=bi=new Xe(1,1).ja(),Xe.SixSize=Bo=new Xe(6,6).ja(),Xe.EightSize=Zo=new Xe(8,8).ja(),Xe.TenSize=Wo=new Xe(10,10).ja(),Xe.InfiniteSize=vr=new Xe(1/0,1/0).ja(),Xe.NoSize=qo=new Xe(NaN,NaN).ja(),Xe.parse=Ca,Xe.stringify=zs;function de(a,y,x,E){a===void 0?this.height=this.width=this.y=this.x=0:typeof a=="number"&&typeof y=="number"&&typeof x=="number"&&(0<=x||isNaN(x))&&typeof E=="number"&&(0<=E||isNaN(E))?(this.x=a,this.y=y,this.width=x,this.height=E):a instanceof jt?(x=a.x,a=a.y,y instanceof jt?(E=y.x,y=y.y,this.x=Math.min(x,E),this.y=Math.min(a,y),this.width=Math.abs(x-E),this.height=Math.abs(a-y)):y instanceof Xe?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):ee("Incorrect second argument supplied to Rect constructor "+y)):ee("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}wt=de.prototype,wt.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},wt.h=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this};function As(a,y,x){a.width=y,a.height=x}wt.sg=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this},wt.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},wt.dd=function(a){return this.x=a.x,this.y=a.y,this},wt.tA=function(a){return this.width=a.width,this.height=a.height,this},de.prototype.copy=function(){var a=new de;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},wt=de.prototype,wt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},wt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},wt.freeze=function(){return this._isFrozen=!0,this},wt.ka=function(){return Object.isFrozen(this)&&ee("cannot thaw constant: "+this),this._isFrozen=!1,this};function wu(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;(E=a[y++])&&(b=parseFloat(E));for(var z=0;a[y]==="";)y++;(E=a[y++])&&(z=parseFloat(E));for(var tt=0;a[y]==="";)y++;return(E=a[y++])&&(tt=parseFloat(E)),new de(x,b,z,tt)}return new de}function ja(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}wt.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},wt.D=function(a){return a instanceof de?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},wt.hi=function(a,y,x,E){return this.x===a&&this.y===y&&this.width===x&&this.height===E},wt.Xa=function(a){return Jt.B(this.x,a.x)&&Jt.B(this.y,a.y)&&Jt.B(this.width,a.width)&&Jt.B(this.height,a.height)};function Cu(a,y){return Jt.$(a.x,y.x)&&Jt.$(a.y,y.y)&&Jt.$(a.width,y.width)&&Jt.$(a.height,y.height)}wt.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},wt.Re=function(a){return this.x<=a.x&&a.x+a.width<=this.x+this.width&&this.y<=a.y&&a.y+a.height<=this.y+this.height},wt.contains=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),this.x<=a&&a+x<=this.x+this.width&&this.y<=y&&y+E<=this.y+this.height},wt.offset=function(a,y){return this.x+=a,this.y+=y,this},wt.Bc=function(a,y){return _o(this,y,a,y,a)},wt.Co=function(a){return _o(this,a.top,a.right,a.bottom,a.left)},wt.Fv=function(a){return _o(this,-a.top,-a.right,-a.bottom,-a.left)},wt.Hz=function(a,y,x,E){return _o(this,a,y,x,E)};function _o(a,y,x,E,b){var z=a.width;return x+b<=-z?(a.x+=z/2,a.width=0):(a.x-=b,a.width+=x+b),x=a.height,y+E<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+E),a}wt.Ex=function(a){return _a(this,a.x,a.y,a.width,a.height)},wt.Uu=function(a,y,x,E){return _a(this,a,y,x,E)};function _a(a,y,x,E,b){var z=Math.max(a.x,y),tt=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+E),x=Math.min(a.y+a.height,x+b),a.x=z,a.y=tt,a.width=Math.max(0,y-z),a.height=Math.max(0,x-tt),a}wt.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},wt.Vu=function(a,y,x,E){var b=this.width,z=this.x;return b!==1/0&&x!==1/0&&(b+=z,x+=a,isNaN(x)||isNaN(b)||z>x||a>b)?!1:(a=this.height,x=this.y,!(a!==1/0&&E!==1/0&&(a+=x,E+=y,isNaN(E)||isNaN(a)||x>E||y>a)))};function $a(a,y){var x=a.width,E=a.x,b=y.x-10;return E>y.width+10+10+b||b>x+E?!1:(x=a.height,a=a.y,E=y.y-10,!(a>y.height+10+10+E||E>x+a))}wt.Ye=function(a){return yo(this,a.x,a.y,0,0)},wt.ed=function(a){return yo(this,a.x,a.y,a.width,a.height)},wt.Kv=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),yo(this,a,y,x,E)};function yo(a,y,x,E,b){var z=Math.min(a.x,y),tt=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+E),x=Math.max(a.y+a.height,x+b),a.x=z,a.y=tt,a.width=y-z,a.height=x-tt,a}wt.yi=function(a,y,x){return this.x=a-x.offsetX-x.x*this.width,this.y=y-x.offsetY-x.y*this.height,this};function Er(a,y,x,E,b,z,tt,ot){return tt===void 0&&(tt=0),ot===void 0&&(ot=0),a<=b&&b+tt<=a+x&&y<=z&&z+ot<=y+E}function Mu(a,y,x,E,b,z,tt,ot){return a>tt+b||b>x+a?!1:!(y>ot+z||z>E+y)}wt.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},wt.Mz=function(){return this.width===0&&this.height===0},de.alloc=function(){var a=aa.pop();return a===void 0?new de:a},de.allocAt=function(a,y,x,E){var b=aa.pop();return b===void 0?new de(a,y,x,E):b.h(a,y,x,E)},de.free=function(a){aa.push(a)},he.Object.defineProperties(de.prototype,{left:{get:function(){return this.x},set:function(a){this.x=a}},top:{get:function(){return this.y},set:function(a){this.y=a}},right:{get:function(){return this.x+this.width},set:function(a){this.x+=a-(this.x+this.width)}},bottom:{get:function(){return this.y+this.height},set:function(a){this.y+=a-(this.y+this.height)}},position:{get:function(){return new jt(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new Xe(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new jt(this.x+this.width/2,this.y+this.height/2)},set:function(a){this.x=a.x-this.width/2,this.y=a.y-this.height/2}},centerX:{get:function(){return this.x+this.width/2},set:function(a){this.x=a-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(a){this.y=a-this.height/2}}}),de.prototype.isEmpty=de.prototype.Mz,de.prototype.isReal=de.prototype.w,de.intersectsLineSegment=function(a,y,x,E,b,z,tt,ot){return Jt.Fx(a,y,x,E,b,z,tt,ot)},de.prototype.setSpot=de.prototype.yi,de.prototype.union=de.prototype.Kv,de.prototype.unionRect=de.prototype.ed,de.prototype.unionPoint=de.prototype.Ye,de.prototype.intersects=de.prototype.Vu,de.prototype.intersectsRect=de.prototype.Yc,de.prototype.intersect=de.prototype.Uu,de.prototype.intersectRect=de.prototype.Ex,de.prototype.grow=de.prototype.Hz,de.prototype.subtractMargin=de.prototype.Fv,de.prototype.addMargin=de.prototype.Co,de.prototype.inflate=de.prototype.Bc,de.prototype.offset=de.prototype.offset,de.prototype.contains=de.prototype.contains,de.prototype.containsRect=de.prototype.Re,de.prototype.containsPoint=de.prototype.ca,de.prototype.equalsApprox=de.prototype.Xa,de.prototype.equalTo=de.prototype.hi,de.prototype.equals=de.prototype.D,de.prototype.setSize=de.prototype.tA,de.prototype.setPoint=de.prototype.dd,de.prototype.set=de.prototype.set,de.prototype.setTo=de.prototype.sg;var ts=null,hh=null,aa=[];de.className="Rect",de.parse=wu,de.stringify=ja,de.contains=Er,de.intersects=Mu,de.ZeroRect=ts=new de(0,0,0,0).ja(),de.NoRect=hh=new de(NaN,NaN,NaN,NaN).ja(),de.parse=wu,de.stringify=ja,de.contains=Er,de.intersects=Mu;function jn(a,y,x,E){a===void 0?this.left=this.bottom=this.right=this.top=0:y===void 0?this.left=this.bottom=this.right=this.top=a:x===void 0?(this.top=a,this.right=y,this.bottom=a,this.left=y):E!==void 0?(this.top=a,this.right=y,this.bottom=x,this.left=E):ee("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}jn.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},jn.prototype.sg=function(a,y,x,E){return this.top=a,this.right=y,this.bottom=x,this.left=E,this},jn.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},jn.prototype.copy=function(){var a=new jn;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},wt=jn.prototype,wt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},wt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},wt.freeze=function(){return this._isFrozen=!0,this},wt.ka=function(){return Object.isFrozen(this)&&ee("cannot thaw constant: "+this),this._isFrozen=!1,this};function Dg(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=NaN;a[y]==="";)y++;var E=a[y++];if(E&&(x=parseFloat(E)),isNaN(x))return new jn;for(var b=NaN;a[y]==="";)y++;if((E=a[y++])&&(b=parseFloat(E)),isNaN(b))return new jn(x);for(var z=NaN;a[y]==="";)y++;if((E=a[y++])&&(z=parseFloat(E)),isNaN(z))return new jn(x,b);for(var tt=NaN;a[y]==="";)y++;return(E=a[y++])&&(tt=parseFloat(E)),isNaN(tt)?new jn(x,b):new jn(x,b,z,tt)}return new jn}function nd(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}wt.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},wt.D=function(a){return a instanceof jn?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},wt.hi=function(a,y,x,E){return this.top===a&&this.right===y&&this.bottom===x&&this.left===E},wt.Xa=function(a){return Jt.B(this.top,a.top)&&Jt.B(this.right,a.right)&&Jt.B(this.bottom,a.bottom)&&Jt.B(this.left,a.left)},wt.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},jn.alloc=function(){var a=Hd.pop();return a===void 0?new jn:a},jn.free=function(a){Hd.push(a)},jn.prototype.isReal=jn.prototype.w,jn.prototype.equalsApprox=jn.prototype.Xa,jn.prototype.equalTo=jn.prototype.hi,jn.prototype.equals=jn.prototype.D,jn.prototype.set=jn.prototype.set,jn.prototype.setTo=jn.prototype.sg;var za=null,Gd=null,Hd=[];jn.className="Margin",jn.parse=Dg,jn.stringify=nd,jn.ZeroMargin=za=new jn(0,0,0,0).ja(),jn.TwoMargin=Gd=new jn(2,2,2,2).ja(),jn.parse=Dg,jn.stringify=nd;function cn(a,y,x,E){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),E===void 0&&(E=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=E),this._isFrozen=!1}var $o,yr,Js,_l,Bl,gi,dh,tl,Rs,ys,pl,ml,Ns,Ma,Ge,ii,xi,Ti,_i,Ei,Oo,bo,es,Mr,Ts,rr,id,gh,vl,el,Rr,Ss,Ar,Lr,nl,$l;cn.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},cn.prototype.sg=function(a,y,x,E){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=E,this},cn.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},cn.prototype.copy=function(){var a=new cn;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},wt=cn.prototype,wt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},wt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},wt.freeze=function(){return this._isFrozen=!0,this},wt.ka=function(){return Object.isFrozen(this)&&ee("cannot thaw constant: "+this),this._isFrozen=!1,this};function dr(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function Ig(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return $o;if(a==="TopLeft")return yr;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Js;if(a==="TopRight")return _l;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Bl;if(a==="Center")return gi;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return dh;if(a==="BottomLeft")return tl;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return Rs;if(a==="BottomRight")return ys;if(a==="TopSide")return pl;if(a==="LeftSide")return ml;if(a==="RightSide")return Ns;if(a==="BottomSide")return Ma;if(a==="TopBottomSides")return Ge;if(a==="LeftRightSides")return ii;if(a==="TopLeftSides")return xi;if(a==="TopRightSides")return Ti;if(a==="BottomLeftSides")return _i;if(a==="BottomRightSides")return Ei;if(a==="NotTopSide")return Oo;if(a==="NotLeftSide")return bo;if(a==="NotRightSide")return es;if(a==="NotBottomSide")return Mr;if(a==="AllSides")return Ts;if(a==="Default")return rr;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E!==void 0&&0a&&(a+=360),a===0)return this;if(this.translate(y,x),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.m12*a+this.m22*E,z=this.m11*-E+this.m21*a,tt=this.m12*-E+this.m22*a;return this.m11=this.m11*a+this.m21*E,this.m12=b,this.m21=z,this.m22=tt,this.translate(-y,-x),this},wt=Rn.prototype,wt.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},wt.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},wt.Ga=function(a){var y=a.x,x=a.y;return a.h(y*this.m11+x*this.m21+this.dx,y*this.m12+x*this.m22+this.dy)},wt.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=a.x,E=a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},wt.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=1.25*a.x,E=1.2*a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},wt.pp=function(a){var y=a.x,x=a.y,E=y+a.width,b=x+a.height,z=this.m11,tt=this.m12,ot=this.m21,rt=this.m22,at=this.dx,ut=this.dy,ct=y*z+x*ot+at,mt=y*tt+x*rt+ut,yt=E*z+x*ot+at,St=E*tt+x*rt+ut;return x=y*z+b*ot+at,y=y*tt+b*rt+ut,z=E*z+b*ot+at,E=E*tt+b*rt+ut,b=Math.min(ct,yt),ct=Math.max(ct,yt),yt=Math.min(mt,St),mt=Math.max(mt,St),b=Math.min(b,x),ct=Math.max(ct,x),yt=Math.min(yt,y),mt=Math.max(mt,y),b=Math.min(b,z),ct=Math.max(ct,z),yt=Math.min(yt,E),mt=Math.max(mt,E),a.h(b,yt,ct-b,mt-yt),a},Rn.alloc=function(){var a=Jc.pop();return a===void 0?new Rn:a},Rn.free=function(a){Jc.push(a)},Rn.prototype.transformRect=Rn.prototype.pp,Rn.prototype.transformPoint=Rn.prototype.Ga,Rn.prototype.scale=Rn.prototype.scale,Rn.prototype.translate=Rn.prototype.translate,Rn.prototype.rotate=Rn.prototype.rotate,Rn.prototype.invert=Rn.prototype.Vj,Rn.prototype.multiplyInverted=Rn.prototype.bv,Rn.prototype.multiply=Rn.prototype.multiply,Rn.prototype.reset=Rn.prototype.reset,Rn.prototype.isIdentity=Rn.prototype.ws,Rn.prototype.equals=Rn.prototype.D,Rn.prototype.setTransform=Rn.prototype.setTransform,Rn.prototype.set=Rn.prototype.set;var Jc=[];Rn.className="Transform",Rn.xF="54a702f3e53909c447824c6706603faf4c";var Jt={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Jt.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);Jt.Uv=y}return 1>a?(x=1/a,2e3>=x?1/y[x|0]:Math.sqrt(a)):2e3>=a?y[a|0]:Math.sqrt(a)},B:function(a,y){return a-=y,.5>a&&-.5a&&-5e-8=b&&(b=1e-6),aut-at)if(a-x>b||x-a>b){if(z=(E-y)/(x-a)*(z-a)+y,z-b<=tt&&tt<=z+b)return!0}else return!0;else if(y-E>b||E-y>b){if(tt=(x-a)/(E-y)*(tt-y)+a,tt-b<=z&&z<=tt+b)return!0}else return!0;return!1},cs:function(a,y,x,E,b,z,tt,ot,rt,at,ut,ct){if(Jt.Yb(a,y,tt,ot,ct,x,E)&&Jt.Yb(a,y,tt,ot,ct,b,z))return Jt.Yb(a,y,tt,ot,ct,at,ut);var mt=(a+x)/2,yt=(y+E)/2,St=(x+b)/2,Mt=(E+z)/2;b=(b+tt)/2,z=(z+ot)/2,E=(mt+St)/2,x=(yt+Mt)/2,St=(St+b)/2,Mt=(Mt+z)/2;var Dt=(E+St)/2,Tt=(x+Mt)/2;return Jt.cs(a,y,mt,yt,E,x,Dt,Tt,rt,at,ut,ct)||Jt.cs(Dt,Tt,St,Mt,b,z,tt,ot,rt,at,ut,ct)},ax:function(a,y,x,E,b,z,tt,ot,rt){var at=(x+b)/2,ut=(E+z)/2;return rt.h((((a+x)/2+at)/2+(at+(b+tt)/2)/2)/2,(((y+E)/2+ut)/2+(ut+(z+ot)/2)/2)/2),rt},My:function(a,y,x,E,b,z,tt,ot){var rt=(x+b)/2,at=(E+z)/2;return li(((a+x)/2+rt)/2,((y+E)/2+at)/2,(rt+(b+tt)/2)/2,(at+(z+ot)/2)/2)},Dl:function(a,y,x,E,b,z,tt,ot,rt,at){if(Jt.Yb(a,y,tt,ot,rt,x,E)&&Jt.Yb(a,y,tt,ot,rt,b,z))yo(at,a,y,0,0),yo(at,tt,ot,0,0);else{var ut=(a+x)/2,ct=(y+E)/2,mt=(x+b)/2,yt=(E+z)/2;b=(b+tt)/2,z=(z+ot)/2,E=(ut+mt)/2,x=(ct+yt)/2,mt=(mt+b)/2,yt=(yt+z)/2;var St=(E+mt)/2,Mt=(x+yt)/2;Jt.Dl(a,y,ut,ct,E,x,St,Mt,rt,at),Jt.Dl(St,Mt,mt,yt,b,z,tt,ot,rt,at)}return at},Qe:function(a,y,x,E,b,z,tt,ot,rt,at){if(Jt.Yb(a,y,tt,ot,rt,x,E)&&Jt.Yb(a,y,tt,ot,rt,b,z))at.length===0&&(at.push(a),at.push(y)),at.push(tt),at.push(ot);else{var ut=(a+x)/2,ct=(y+E)/2,mt=(x+b)/2,yt=(E+z)/2;b=(b+tt)/2,z=(z+ot)/2,E=(ut+mt)/2,x=(ct+yt)/2,mt=(mt+b)/2,yt=(yt+z)/2;var St=(E+mt)/2,Mt=(x+yt)/2;Jt.Qe(a,y,ut,ct,E,x,St,Mt,rt,at),Jt.Qe(St,Mt,mt,yt,b,z,tt,ot,rt,at)}return at},jv:function(a,y,x,E,b,z,tt,ot,rt,at){if(Jt.Yb(a,y,b,z,at,x,E))return Jt.Yb(a,y,b,z,at,ot,rt);var ut=(a+x)/2,ct=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var mt=(ut+x)/2,yt=(ct+E)/2;return Jt.jv(a,y,ut,ct,mt,yt,tt,ot,rt,at)||Jt.jv(mt,yt,x,E,b,z,tt,ot,rt,at)},OA:function(a,y,x,E,b,z,tt){return tt.h(((a+x)/2+(x+b)/2)/2,((y+E)/2+(E+z)/2)/2),tt},iv:function(a,y,x,E,b,z,tt,ot){if(Jt.Yb(a,y,b,z,tt,x,E))yo(ot,a,y,0,0),yo(ot,b,z,0,0);else{var rt=(a+x)/2,at=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ut=(rt+x)/2,ct=(at+E)/2;Jt.iv(a,y,rt,at,ut,ct,tt,ot),Jt.iv(ut,ct,x,E,b,z,tt,ot)}return ot},ep:function(a,y,x,E,b,z,tt,ot){if(Jt.Yb(a,y,b,z,tt,x,E))ot.length===0&&(ot.push(a),ot.push(y)),ot.push(b),ot.push(z);else{var rt=(a+x)/2,at=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ut=(rt+x)/2,ct=(at+E)/2;Jt.ep(a,y,rt,at,ut,ct,tt,ot),Jt.ep(ut,ct,x,E,b,z,tt,ot)}return ot},Eo:function(a,y,x,E,b,z,tt,ot,rt,at,ut,ct,mt,yt){if(Jt.Yb(a,y,tt,ot,mt,x,E)&&Jt.Yb(a,y,tt,ot,mt,b,z))return!Jt.Rl(a,y,tt,ot,rt,at,ut,ct)||(mt=(a-tt)*(at-ct)-(y-ot)*(rt-ut),mt===0)?!1:(yt.h(((a*ot-y*tt)*(rt-ut)-(a-tt)*(rt*ct-at*ut))/mt,((a*ot-y*tt)*(at-ct)-(y-ot)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,a.y,y.x,y.y,b)},KA:function(a,y,x,E,b,z,tt,ot,rt,at){function ut(Dt,Tt){var zt=(Dt-a)*(Dt-a)+(Tt-y)*(Tt-y);zt(x>a?x-a:a-x)){if(mt=1-(x-b)*(x-b)/(mt*mt),0>mt)return rt;mt=Math.sqrt(mt),E=-at*mt+z,ut(x,at*mt+z),ut(x,E)}else{if(x=(E-y)/(x-a),E=1/(mt*mt)+x*x/(at*at),ot=2*x*(y-x*a)/(at*at)-2*x*z/(at*at)-2*b/(mt*mt),mt=ot*ot-4*E*(2*x*a*z/(at*at)-2*y*z/(at*at)+z*z/(at*at)+b*b/(mt*mt)-1+(y-x*a)*(y-x*a)/(at*at)),0>mt)return rt;mt=Math.sqrt(mt),at=(-ot+mt)/(2*E),ut(at,x*at-x*a+y),mt=(-ot-mt)/(2*E),ut(mt,x*mt-x*a+y)}return rt},Ff:function(a,y,x,E,b,z,tt,ot,rt){var at=1e21,ut=a,ct=y;if(Jt.Ve(a,y,a,E,b,z,tt,ot,rt)){var mt=(rt.x-b)*(rt.x-b)+(rt.y-z)*(rt.y-z);mtat},us:function(a,y,x){return Jt.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,E,b,z,tt,ot){var rt=a+x,at=y+E;return b===tt?(z=y):z===ot?(b=a):!!(Er(a,y,x,E,b,z)||Er(a,y,x,E,tt,ot)||Jt.Rl(a,y,rt,y,b,z,tt,ot)||Jt.Rl(rt,y,rt,at,b,z,tt,ot)||Jt.Rl(rt,at,a,at,b,z,tt,ot)||Jt.Rl(a,at,a,y,b,z,tt,ot))},Rl:function(a,y,x,E,b,z,tt,ot){return a===x&&y===E&&b===tt&&z===ot?a===b&&y===z:0>=Jt.Fl(a,y,x,E,b,z)*Jt.Fl(a,y,x,E,tt,ot)&&0>=Jt.Fl(b,z,tt,ot,a,y)*Jt.Fl(b,z,tt,ot,x,E)},Fl:function(a,y,x,E,b,z){return x-=a,E-=y,a=b-a,y=z-y,z=a*E-y*x,z===0&&(z=a*x+y*E,0z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,E,b,z){var tt=Math.PI;z||(E*=tt/180,b*=tt/180);var ot=E>b?-1:1;z=[];var rt=tt/2,at=E;if(E=Math.min(2*tt,Math.abs(b-E)),1e-5>E)return rt=at+ot*Math.min(E,rt),ot=a+x*Math.cos(at),at=y+x*Math.sin(at),a+=x*Math.cos(rt),y+=x*Math.sin(rt),x=(ot+a)/2,rt=(at+y)/2,z.push([ot,at,x,rt,x,rt,a,y]),z;for(;1e-5x,z=0>E;if(aat&&(y=.5*(ot+rt),!(y===ot||y===rt));++at){var ut=a/(y+b),ct=tt/(y+z);if(ut=ut*ut+ct*ct-1,0ut)rt=y;else break}x=b*x/(y+b)-x,E=z*E/(y+z)-E,x=Math.sqrt(x*x+E*E)}else x=Math.abs(E-y);else E=a*a-y*y,z=a*x,za?"M"+this.startX.toString()+" "+this.startY.toString()+"L"+this.endX.toString()+" "+this.endY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a)+"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);case be.u:var y=new de(this.startX,this.startY,0,0);return y.Kv(this.endX,this.endY,0,0),0>a?"M"+y.x.toString()+" "+y.y.toString()+"H"+y.right.toString()+"V"+y.bottom.toString()+"H"+y.left.toString()+"z":"M"+y.x.toFixed(a)+" "+y.y.toFixed(a)+"H"+y.right.toFixed(a)+"V"+y.bottom.toFixed(a)+"H"+y.left.toFixed(a)+"z";case be.F:if(y=new de(this.startX,this.startY,0,0),y.Kv(this.endX,this.endY,0,0),0>a)return a=y.left.toString()+" "+(y.y+y.height/2).toString(),"M"+a+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+(y.right.toString()+" "+(y.y+y.height/2).toString())+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+a;var x=y.left.toFixed(a)+" "+(y.y+y.height/2).toFixed(a);return"M"+x+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+(y.right.toFixed(a)+" "+(y.y+y.height/2).toFixed(a))+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+x;case be.o:y="",x=this.figures.s;for(var E=x.length,b=0;b=Ut-1?!0:at[Mt+1].match(Xt)!==null}function E(){return Mt++,at[Mt]}function b(Tn){var Cn=parseFloat(E()),ui=parseFloat(E());Dt===Dt.toLowerCase()&&(Cn=Ht.x+Cn,ui=Ht.y+ui),Tn.h(Cn,ui)}function z(){return b(Ht),Ht}function tt(){return b(zt),zt}function ot(){var Tn=Tt.toLowerCase();return Tn!=="c"&&Tn!=="s"&&Tn!=="q"&&Tn!=="t"?Ht:new jt(2*Ht.x-zt.x,2*Ht.y-zt.y)}y===void 0&&(y=!1);var rt=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(rt,"$1 $2"),a=a.replace(rt,"$1 $2"),a=a.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),a=a.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),a=a.replace(/([0-9])([+\-])/gm,"$1 $2"),a=a.replace(/[\s\r\t\n]+/gm," "),a=a.replace(/^\s+|\s+$/g,"");var at=a.split(" ");for(a=0;a=Ut-1);)if(Tt=Dt,Dt=E(),Dt!=="")switch(Dt.toUpperCase()){case"X":yt=!0,ct=ut=!1;break;case"M":for(St=z(),a.mc===null||yt===!0?(Cc(a,St.x,St.y,ut,!ct,mt),yt=!1):a.moveTo(St.x,St.y),rt.assign(Ht);!x();)St=z(),a.lineTo(St.x,St.y);break;case"L":for(;!x();)St=z(),a.lineTo(St.x,St.y);break;case"H":for(;!x();)Ht=new jt((Dt===Dt.toLowerCase()?Ht.x:0)+parseFloat(E()),Ht.y),a.lineTo(Ht.x,Ht.y);break;case"V":for(;!x();)Ht=new jt(Ht.x,(Dt===Dt.toLowerCase()?Ht.y:0)+parseFloat(E())),a.lineTo(Ht.x,Ht.y);break;case"C":for(;!x();){St=new jt,b(St);var ie=tt(),We=z();Ku(a,St.x,St.y,ie.x,ie.y,We.x,We.y)}break;case"S":for(;!x();)St=ot(),ie=tt(),We=z(),Ku(a,St.x,St.y,ie.x,ie.y,We.x,We.y);break;case"Q":for(;!x();)St=tt(),ie=z(),Om(a,St.x,St.y,ie.x,ie.y);break;case"T":for(;!x();)zt=St=ot(),ie=z(),Om(a,St.x,St.y,ie.x,ie.y);break;case"B":for(;!x();){St=parseFloat(E()),ie=parseFloat(E()),We=parseFloat(E());var qe=parseFloat(E()),Qe=parseFloat(E()),Ae=Qe,Se=!1;x()||(Ae=parseFloat(E()),x()||(Se=parseFloat(E())!==0)),Dt===Dt.toLowerCase()&&(We+=Ht.x,qe+=Ht.y),a.arcTo(St,ie,We,qe,Qe,Ae,Se)}break;case"A":for(;!x();)St=Math.abs(parseFloat(E())),ie=Math.abs(parseFloat(E())),We=parseFloat(E()),Qe=qe=!1,Se=Ae=0,Ae=E(),Ae.length===1?(qe=!!parseFloat(Ae),Qe=!!parseFloat(E()),Ae=parseFloat(E())):Ae.length===2?(qe=!!parseFloat(Ae[0]),Qe=!!parseFloat(Ae[1]),Ae=parseFloat(E())):(qe=!!parseFloat(Ae[0]),Qe=!!parseFloat(Ae[1]),Ae=parseFloat(Ae.slice(2))),Se=parseFloat(E()),Dt===Dt.toLowerCase()&&(Ae=Ht.x+Ae,Se=Ht.y+Se),Ht.h(Ae,Se),wx(a,St,ie,We,qe,Qe,Ae,Se);break;case"Z":Px(a),Ht.assign(rt);break;case"F":for(St="",ie=1;at[Mt+ie];)if(at[Mt+ie]==="0")mt=!0,ie++;else if(at[Mt+ie].match(/[Uu]/)!==null)ie++;else if(at[Mt+ie].match(Xt)===null)ie++;else{St=at[Mt+ie];break}St.match(/[Mm]/)?ut=!0:0tt&&(tt+=360),St.startAngle+=tt),0>a&&(St.startAngle=180-St.startAngle,St.sweepAngle=-St.sweepAngle),0>E&&(St.startAngle=-St.startAngle,St.sweepAngle=-St.sweepAngle),St.radiusX*=Math.sqrt(a*a+x*x),St.radiusY!==void 0&&(St.radiusY*=Math.sqrt(y*y+E*E));break;case la:if(tt=St.endX,ot=St.endY,St.endX=tt*a+ot*x+b,St.endY=tt*y+ot*E+z,St.radiusX===0||St.radiusY===0)break;y!==0&&(tt=180*Math.atan2(y,a)/Math.PI,0>tt&&(tt+=360),St.xAxisRotation+=tt),0>a&&(St.xAxisRotation=180-St.xAxisRotation,St.isClockwiseArc=!St.isClockwiseArc),0>E&&(St.xAxisRotation=-St.xAxisRotation,St.isClockwiseArc=!St.isClockwiseArc),St.radiusX*=Math.sqrt(a*a+x*x),St.radiusY*=Math.sqrt(y*y+E*E);break;default:ee("Unknown Segment type: "+St.type)}}}}return this._isInvalidBounds=!0,this},wt.ca=function(a,y){y===void 0&&(y=0);var x=this.od,E=this.pd,b=this.Dc,z=this.Ec;switch(this.type){case be.j:return Jt.Yb(x,E,b,z,y,a.x,a.y);case be.u:var tt=de.allocAt(Math.min(x,b)-y,Math.min(E,z)-y,Math.abs(b-x)+2*y,Math.abs(z-E)+2*y);return a=tt.ca(a),de.free(tt),a;case be.F:tt=Math.min(x,b)-y;var ot=Math.min(E,z)-y;return x=(Math.abs(b-x)+2*y)/2,y=(Math.abs(z-E)+2*y)/2,0>=x||0>=y?!1:(tt=a.x-(tt+x),ot=a.y-(ot+y),1>=tt*tt/(x*x)+ot*ot/(y*y));case be.o:return tu(this,a,y,!0,!1);default:return!1}};function tu(a,y,x,E,b){var z=y.x;y=y.y;for(var tt=a.bounds.x-20,ot=0,rt,at,ut,ct,mt=a.figures.s,yt=mt.length,St=0;St=a)return 0;if((b>tt?b-tt:tt-b)<(z>ot?z-ot:ot-z)){if(zot)return 0}else if(yz)return 0}else if(btt)return 0}else if(atb)return 0;return 0a?a=0:1=z)return E=z-tt,E=ut===0?0:E/ut,x=x[ot],ot=x[2*a],b=x[2*a+1],y.h(ot+(x[2*a+2]-ot)*E,b+(x[2*a+3]-b)*E),y;tt+=ut}}return y},wt.wx=function(a){if(0>a?a=0:1=b)return b=y[tt],y=b[2*a],x=b[2*a+1],E=b[2*a+2],a=b[2*a+3],1>Math.abs(E-y)&&1>Math.abs(a-x)?0:1>Math.abs(E-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=E-y?0:180:180*Math.atan2(a-x,E-y)/Math.PI;z+=at}}return NaN},wt.Qu=function(a,y){if(0>a?a=0:1=z)return E=z-tt,E=ut===0?0:E/ut,ut=x[ot],x=ut[2*a],ot=ut[2*a+1],b=ut[2*a+2],a=ut[2*a+3],y[0]=x+(b-x)*E,y[1]=ot+(a-ot)*E,y[2]=1>Math.abs(b-x)&&1>Math.abs(a-ot)?0:1>Math.abs(b-x)?0<=a-ot?90:270:1>Math.abs(a-ot)?0<=b-x?0:180:180*Math.atan2(a-ot,b-x)/Math.PI,y;tt+=ut}}return y},wt.xx=function(a){if(this.type===be.j){var y=this.startX,x=this.startY,E=this.endX,b=this.endY;if(y!==E||x!==b){var z=a.x;if(a=a.y,y===E){if(x=E?E===x?0:1:Math.abs(a-x)/(E-tt)}if(x===b)return y=E?E===y?0:1:Math.abs(z-y)/(E-tt);tt=(E-y)*(E-y)+(b-x)*(b-x);var ot=jt.alloc();return Jt.qh(y,x,E,b,z,a,ot),a=ot.x,z=ot.y,jt.free(ot),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/tt)}}else if(this.type===be.u){tt=this.startX,ot=this.startY;var rt=this.endX;if(b=this.endY,tt!==rt||ot!==b){y=rt-tt,x=b-ot,z=2*y+2*x,E=a.x,a=a.y,E=Math.min(Math.max(E,tt),rt),a=Math.min(Math.max(a,ot),b),tt=Math.abs(E-tt),rt=Math.abs(E-rt),ot=Math.abs(a-ot),b=Math.abs(a-b);var at=Math.min(tt,rt,ot,b);if(at===ot)return E/z;if(at===rt)return(y+a)/z;if(at===b)return(2*y+x-E)/z;if(at===tt)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,E=jt.alloc(),b=1/0,ot=tt=0,rt=y.length;for(var ut=at=0,ct=0;cta?0:1a?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a),x=this.segments.s,E=x.length,b=0;ba&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(E,0),this.Pg=Math.max(b,0),typeof tt=="boolean"?tt&&(this.isLargeArc=!0):typeof tt=="number"&&tt&&(this.isLargeArc=!0),ot&&(this.isClockwiseArc=!0)):(this.Ne=E,this.Vh=b,a===Do&&(z=Math.max(z,0)),this.Wh=z,typeof tt=="number"?(a===Do&&(tt=Math.max(tt,0)),this.Pg=tt):this.Pg=0),this.ae=null}ai.prototype.copy=function(){var a=new ai;return a.na=this.na,a.l=this.l&-2,a.Dc=this.Dc,a.Ec=this.Ec,a.Ne=this.Ne,a.Vh=this.Vh,a.Wh=this.Wh,a.Pg=this.Pg,a},wt=ai.prototype,wt.Xa=function(a){if(!(a instanceof ai)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case er:case Di:return Jt.B(this.endX,a.endX)&&Jt.B(this.endY,a.endY);case Nr:return Jt.B(this.endX,a.endX)&&Jt.B(this.endY,a.endY)&&Jt.B(this.point1X,a.point1X)&&Jt.B(this.point1Y,a.point1Y)&&Jt.B(this.point2X,a.point2X)&&Jt.B(this.point2Y,a.point2Y);case qs:return Jt.B(this.endX,a.endX)&&Jt.B(this.endY,a.endY)&&Jt.B(this.point1X,a.point1X)&&Jt.B(this.point1Y,a.point1Y);case Do:return Jt.B(this.startAngle,a.startAngle)&&Jt.B(this.sweepAngle,a.sweepAngle)&&Jt.B(this.centerX,a.centerX)&&Jt.B(this.centerY,a.centerY)&&Jt.B(this.radiusX,a.radiusX)&&Jt.B(this.radiusY,a.radiusY);case la:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Jt.B(this.xAxisRotation,a.xAxisRotation)&&Jt.B(this.endX,a.endX)&&Jt.B(this.endY,a.endY)&&Jt.B(this.radiusX,a.radiusX)&&Jt.B(this.radiusY,a.radiusY);default:return!1}},wt.qb=function(a){a.classType===ai&&(this.type=a)},wt.toString=function(a){switch(a===void 0&&(a=-1),this.type){case er:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Di:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Nr:a=0>a?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.point2X.toFixed(a)+" "+this.point2Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case qs:a=0>a?"Q"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"Q"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Do:a=0>a?"B"+this.startAngle.toString()+" "+this.sweepAngle.toString()+" "+this.centerX.toString()+" "+this.centerY.toString()+" "+this.radiusX.toString()+" "+this.radiusY.toString():"B"+this.startAngle.toFixed(a)+" "+this.sweepAngle.toFixed(a)+" "+this.centerX.toFixed(a)+" "+this.centerY.toFixed(a)+" "+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a);break;case la:a=0>a?"A"+this.radiusX.toString()+" "+this.radiusY.toString()+" "+this.xAxisRotation.toString()+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toString()+" "+this.endY.toString():"A"+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a)+" "+this.xAxisRotation.toFixed(a)+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;default:a=this.type.toString()}return a+(this.isClosed?"z":"")},wt.freeze=function(){return this._isFrozen=!0,this},wt.ka=function(){return this._isFrozen=!1,this},wt.close=function(){return this.isClosed=!0,this};function Gs(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var x=a.radiusX,E=a.radiusY;if(E===void 0&&(E=x),x===0||E===0)return a.ae=[],a.ae;y=a.Ne;var b=a.Vh,z=Jt.jx(0,0,x=yt?tt=Math.PI:1<=yt&&(tt=0),!rt&&0tt&&(tt+=2*Math.PI),rt=y>z?1:y/z,yt=y>z?z/y:1,y=Jt.jx(0,0,y>z?y:z,ut,ut+tt,!0),z=Rn.alloc(),z.reset(),z.translate(x,E),z.rotate(a.Ne,0,0),z.scale(rt,yt),be.Ha(y,z),Rn.free(z),a.ae=y,a.ae}he.Object.defineProperties(ai.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},isClosed:{get:function(){return(this.l&8)!==0},set:function(a){this.isClosed!==a&&(this.l=a?this.l|8:this.l&-9,this._isInvalidBounds=!0)}},type:{get:function(){return this.na},set:function(a){this._isFrozen&&yn(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&yn(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&yn(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&yn(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&yn(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&yn(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&yn(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&yn(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&yn(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&_n(a,">= zero",ai,"radiusX"),this._isFrozen&&yn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&_n(a,">= zero",ai,"radiusY"),this._isFrozen&&yn(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&yn(this,a),a%=360,0>a&&(a+=360),this.Dc=a,this._isInvalidBounds=!0}},sweepAngle:{get:function(){return this.Ec},set:function(a){this._isFrozen&&yn(this,a),360a&&(a=-360),this.Ec=a,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&yn(this,a),this.l=a?this.l|4:this.l&-5,this._isInvalidBounds=!0}},isLargeArc:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&yn(this,a),this.l=a?this.l|16:this.l&-17,this._isInvalidBounds=!0}},xAxisRotation:{get:function(){return this.Ne},set:function(a){this._isFrozen&&yn(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),ai.prototype.equalsApprox=ai.prototype.Xa;var er=new Me(ai,"Move",0),Di=new Me(ai,"Line",1),Nr=new Me(ai,"Bezier",2),qs=new Me(ai,"QuadraticBezier",3),Do=new Me(ai,"Arc",4),la=new Me(ai,"SvgArc",4);ai.className="PathSegment",ai.Move=er,ai.Line=Di,ai.Bezier=Nr,ai.QuadraticBezier=qs,ai.Arc=Do,ai.SvgArc=la;function Vr(){this.H=null,this.xu=new jt(0,0).freeze(),this.mt=new jt(0,0).freeze(),this.Bp=this.Rq=0,this.Cp=1,this.xq="",this.Wr=this.Tp=!1,this.Rp=this.Ep=0,this.xg=this.nq=this.tq=!1,this.Zp=null,this.Rr=0,this.xd=this.Nr=null}Vr.prototype.copy=function(){var a=new Vr;return this.clone(a)},Vr.prototype.clone=function(a){return a.H=this.H,a.xu.assign(this.viewPoint),a.mt.assign(this.documentPoint),a.Rq=this.Rq,a.Bp=this.Bp,a.Cp=this.Cp,a.xq=this.xq,a.Tp=this.Tp,a.Wr=this.Wr,a.Ep=this.Ep,a.Rp=this.Rp,a.tq=this.tq,a.nq=this.nq,a.xg=this.xg,a.Zp=this.Zp,a.Rr=this.Rr,a.Nr=this.Nr,a.xd=this.xd,a},Vr.prototype.toString=function(){var a="^";return this.modifiers!==0&&(a+="M:"+this.modifiers),this.button!==0&&(a+="B:"+this.button),this.key!==""&&(a+="K:"+this.key),this.clickCount!==0&&(a+="C:"+this.clickCount),this.delta!==0&&(a+="D:"+this.delta),this.handled&&(a+="h"),this.bubbles&&(a+="b"),this.documentPoint!==null&&(a+="@"+this.documentPoint.toString()),a},Vr.prototype.So=function(a,y){var x=this.diagram;return x===null||mf(x,a,y),y},Vr.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(mf(x,a,y),y.assign(x.Ps(y))),y},he.Object.defineProperties(Vr.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},viewPoint:{get:function(){return this.xu},set:function(a){this.xu.assign(a)}},documentPoint:{get:function(){return this.mt},set:function(a){this.mt.assign(a)}},modifiers:{get:function(){return this.Rq},set:function(a){this.Rq=a}},button:{get:function(){return this.Bp},set:function(a){if(this.Bp=a,this.event===null)switch(a){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2}}},buttons:{get:function(){return this.Cp},set:function(a){this.Cp=a}},key:{get:function(){return this.xq},set:function(a){this.xq=a}},down:{get:function(){return this.Tp},set:function(a){this.Tp=a}},up:{get:function(){return this.Wr},set:function(a){this.Wr=a}},clickCount:{get:function(){return this.Ep},set:function(a){this.Ep=a}},delta:{get:function(){return this.Rp},set:function(a){this.Rp=a}},isMultiTouch:{get:function(){return this.tq},set:function(a){this.tq=a}},handled:{get:function(){return this.nq},set:function(a){this.nq=a}},bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},event:{get:function(){return this.Zp},set:function(a){this.Zp=a}},isTouchEvent:{get:function(){var a=this.event;return a===null?!1:a.pointerType==="touch"||a.pointerType==="pen"}},timestamp:{get:function(){return this.Rr},set:function(a){this.Rr=a}},targetDiagram:{get:function(){return this.Nr},set:function(a){this.Nr=a}},targetObject:{get:function(){return this.xd},set:function(a){this.xd=a}},control:{get:function(){return(this.modifiers&1)!==0},set:function(a){this.modifiers=a?this.modifiers|1:this.modifiers&-2}},shift:{get:function(){return(this.modifiers&4)!==0},set:function(a){this.modifiers=a?this.modifiers|4:this.modifiers&-5}},alt:{get:function(){return(this.modifiers&2)!==0},set:function(a){this.modifiers=a?this.modifiers|2:this.modifiers&-3}},meta:{get:function(){return(this.modifiers&8)!==0},set:function(a){this.modifiers=a?this.modifiers|8:this.modifiers&-9}},left:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&1)!==0:this.button===0},set:function(a){this.buttons=a?this.buttons|1:this.buttons&-2}},right:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&2)!==0:this.button===2},set:function(a){this.buttons=a?this.buttons|2:this.buttons&-3}},middle:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&4)!==0:this.button===1},set:function(a){this.buttons=a?this.buttons|4:this.buttons&-5}}}),Vr.prototype.getMultiTouchDocumentPoint=Vr.prototype.Bz,Vr.prototype.getMultiTouchViewPoint=Vr.prototype.So,Vr.className="InputEvent";function Lu(){this.H=null,this.xa="",this.ar=this.Lr=null}Lu.prototype.copy=function(){var a=new Lu;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},Lu.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},he.Object.defineProperties(Lu.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},subject:{get:function(){return this.Lr},set:function(a){this.Lr=a}},parameter:{get:function(){return this.ar},set:function(a){this.ar=a}}}),Lu.className="DiagramEvent";function Ji(){this.Fm=Ki,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Ji.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},Ji.prototype.copy=function(){var a=new Ji;a.Fm=this.Fm,a.Qq=this.Qq,a.rf=this.rf,a.cc=this.cc,a.H=this.H,a.Qn=this.Qn;var y=this.Sn;return a.Sn=we(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=we(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=we(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=we(y)&&typeof y.J=="function"?y.J():y,a},Ji.prototype.qb=function(a){a.classType===Ji&&(this.change=a)},Ji.prototype.toString=function(){var a="";return a=this.change===Hs?a+"* ":this.change===Ki?a+(this.model!==null?"!m":"!d"):a+((this.model!==null?"!m":"!d")+this.change),this.propertyName&&typeof this.propertyName=="string"&&(a+=" "+this.propertyName),this.modelChange&&this.modelChange!==this.propertyName&&(a+=" "+this.modelChange),a+=": ",this.change===Hs?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=lo(this.object)),this.oldValue!==null&&(a+=" old: "+lo(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+lo(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},Ji.prototype.I=function(a){return a?this.oldValue:this.newValue},Ji.prototype.Dz=function(a){return a?this.oldParam:this.newParam},Ji.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},Ji.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},Ji.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},Ji.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},he.Object.defineProperties(Ji.prototype,{model:{get:function(){return this.cc},set:function(a){this.cc=a}},diagram:{get:function(){return this.H},set:function(a){this.H=a}},change:{get:function(){return this.Fm},set:function(a){this.Fm=a}},modelChange:{get:function(){return this.Qq},set:function(a){this.Qq=a}},propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},isTransactionFinished:{get:function(){return this.Fm===Hs&&(this.rf==="CommittedTransaction"||this.rf==="FinishedUndo"||this.rf==="FinishedRedo")}},object:{get:function(){return this.Qn},set:function(a){this.Qn=a}},oldValue:{get:function(){return this.Sn},set:function(a){this.Sn=a}},oldParam:{get:function(){return this.Rn},set:function(a){this.Rn=a}},newValue:{get:function(){return this.Mn},set:function(a){this.Mn=a}},newParam:{get:function(){return this.Ln},set:function(a){this.Ln=a}}}),Ji.prototype.redo=Ji.prototype.redo,Ji.prototype.canRedo=Ji.prototype.canRedo,Ji.prototype.undo=Ji.prototype.undo,Ji.prototype.canUndo=Ji.prototype.canUndo,Ji.prototype.getParam=Ji.prototype.Dz,Ji.prototype.getValue=Ji.prototype.I,Ji.prototype.clear=Ji.prototype.clear;var Hs=new Me(Ji,"Transaction",-1),Ki=new Me(Ji,"Property",0),Co=new Me(Ji,"Insert",1),Uo=new Me(Ji,"Remove",2);Ji.className="ChangedEvent",Ji.Transaction=Hs,Ji.Property=Ki,Ji.Insert=Co,Ji.Remove=Uo;function sr(){this.o=new ze().freeze(),this.xa="",this.j=!1}sr.prototype.toString=function(a){var y="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(a!==void 0&&0y&&a.cd(y,E),y++);for(;a.length>y;)a.pop();a.freeze()}},he.Object.defineProperties(sr.prototype,{changes:{get:function(){return this.o}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isComplete:{get:function(){return this.j},set:function(a){this.j=a}}}),sr.prototype.optimize=sr.prototype.ak,sr.prototype.redo=sr.prototype.redo,sr.prototype.canRedo=sr.prototype.canRedo,sr.prototype.undo=sr.prototype.undo,sr.prototype.canUndo=sr.prototype.canUndo,sr.prototype.clear=sr.prototype.clear,sr.className="Transaction";function $i(){this.Pt=new Ie,this.Jd=!1,this.u=new ze().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new ze().freeze(),this.hl=new ze,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}$i.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var x=this.nestedTransactionNames.count,E=0;Ea.transactionLevel&&fo("Ending transaction without having started a transaction: "+x);var E=a.transactionLevel===1,b=a.currentTransaction;E&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,b));var z=0;if(0=E&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),E===0||y.count!==0&&y.get(y.count-1)===b||(y.add(b),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,b);else{a.Fe=!0;try{a.isEnabled&&b!==null&&(b.isComplete=!0,b.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,b),a.Fe=!1}b!==null&&b.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&b!==null){for(a=z,x=b.changes,b=x.count-1;b>=a;b--)y=x.M(b),y!==null&&y.undo(),x.ka(),x.mb(b);x.freeze()}return!1}wt.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var a=this.history;a.ka();for(var y=a.count-1;y>this.historyIndex;y--){var x=a.M(y);x!==null&&x.clear(),a.mb(y),this.rq=!0}a.freeze()}},$i.prototype.canUndo=function(){if(!this.isEnabled||0=this.transactionLevel&&!this.tt&&(a=a.diagram,a!==null&&a.pi===!1||fo("Change not within a transaction: "+x.toString()))}},$i.prototype.skipsEvent=function(a){if(a===null||0>a.change.value)return!0;if(a=a.object,a===null)return!1;if(a.layer!==void 0){if(a=a.layer,a!==null&&a.isTemporary)return!0}else if(a.isTemporary)return!0;return!1},he.Object.defineProperties($i.prototype,{models:{get:function(){return this.Pt.iterator}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},transactionToUndo:{get:function(){return 0<=this.historyIndex&&this.historyIndex<=this.history.count-1?this.history.M(this.historyIndex):null}},transactionToRedo:{get:function(){return this.historyIndexb||Math.abs(y.y-a.y)>E},he.Object.defineProperties(oi.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof oe&&(this.H=a)}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},isActive:{get:function(){return this.nb},set:function(a){this.nb=a}},transactionResult:{get:function(){return this.wm},set:function(a){this.wm=a}}}),oi.prototype.startTransaction=oi.prototype.Ea,oi.className="Tool";function Vi(){oi.call(this),this.name="ToolManager",this.hb=new ze,this.ob=new ze,this.Hb=new ze,this.F=this.V=850,this.o=new Xe(2,2).ja(),this.Ha=5e3,this.ia=od,this.u=Rg,this.Mp=this.j=null,this.zj=-1}ye(Vi,oi),Vi.prototype.initializeStandardTools=function(){},Vi.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof ri&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},Vi.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===nu&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===ph){y.bubbles=!0;return}if(this.gestureBehavior===nu)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,E=0;Eb.right&&(x.x-=E.width+5/y.scale),x.xb.bottom?x.y-(E.height+5/y.scale):x.y+20/y.scale,x.yx.pointsCount)){var E=a.diagram;if(!E.isReadOnly){var b=a.Oe;if(b!==null){var z=null,tt=null;x.fromNode===null&&(z=Op(a,x.i(0),!1),z!==null&&(tt=z.part));var ot=null,rt=null;x.toNode===null&&(ot=Op(a,x.i(x.pointsCount-1),!0),ot!==null&&(rt=ot.part)),b.isValidLink(tt,z,rt,ot)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=tt,z!==null&&(x.fromPortId=z.portId),x.toNode=rt,ot!==null&&(x.toPortId=ot.portId),x.fromPort!==E.Mx&&E.R("LinkRelinked",x,E.Mx),x.toPort!==E.Nx&&E.R("LinkRelinked",x,E.Nx)):Wg(b,tt,z,rt,ot):Wg(b,null,null,null,null)}}}}to.prototype.doDragOver=function(){};function Nu(a,y){var x=a.diagram;a.dragsLink&&Au(a,!0),mh(a);var E=a.findDragOverObject(y),b=x.lastInput;if(b.targetObject=E,E!==null){b.handled=!1;for(var z=E;z!==null;){var tt=z.mouseDrop;if(tt!==null&&(tt(b,z),b.handled))break;J0(a,b,z),z=tf(z)}}else z=x.mouseDrop,z!==null&&z(b);if(a.isActive||Sr!==null){for(b=(a.copiedParts||a.draggedParts).iterator;b.next();)z=b.key,z instanceof Ke&&z.linksConnected.each(function(ot){ot.suspendsRouting=!1});if(a.doDropOnto(y,E),a.isActive||Sr!==null){for(a=de.alloc(),y=x.selection.iterator;y.next();)E=y.value,E instanceof Ke&&q0(x,E,a);de.free(a)}}}function J0(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof Fn||(x=a.mouseDrop,x!==null&&x(y))}function q0(a,y,x){var E=!1;if(x=y.getAvoidableRect(x),a.viewportBounds.Re(x)&&(E=!0),a=a.Nu(x,function(b){return b.part},function(b){return b instanceof Ne},!0,function(b){return b instanceof Ne},E),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}to.prototype.doDropOnto=function(){},to.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;this.simulatedMouseMove(y.event,y.documentPoint,y.targetDiagram)||this.currentPart===null||this.draggedParts===null||(this.mayCopy()?(iu(this,!1),nc(a,this.copiedParts),yl(this,this.copiedParts,!1),Ah(a,this.copiedParts)):this.mayMove()?(Ra(this),yl(this,this.draggedParts,!0)):this.mayDragOut()?(iu(this,!1),yl(this,this.copiedParts,!1)):Ra(this),Hg(this,a.lastInput.documentPoint))}},to.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;if(!this.simulatedMouseUp(y.event,y.documentPoint,y.targetDiagram)){y=!1;var x=this.mayCopy();if(x&&this.copiedParts!==null?(Ra(this),iu(this,!0),nc(a,this.copiedParts),yl(this,this.copiedParts,!1),Ah(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0}))):(y=!0,Ra(this),this.mayMove()&&(yl(this,this.draggedParts,!0),Hg(this,a.lastInput.documentPoint))),this.Ym=!0,Nu(this,a.lastInput.documentPoint),this.isActive){var E=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&_0(this),a.Ya(),Ah(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",E)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},to.prototype.simulatedMouseMove=function(a,y,x){if(Sr===null)return!1;var E=Sr.diagram;x instanceof oe||(x=null);var b=Tu;return x!==b&&(b!==null&&b!==E&&(b.ug(),Sr.isDragOutStarted=!1,b=b.toolManager.findTool("Dragging"),b!==null&&b.doSimulatedDragLeave()),Tu=x,x!==null&&x!==E&&(_c(),b=x.toolManager.findTool("Dragging"),b!==null&&(bl.contains(b)||bl.add(b),b.doSimulatedDragEnter())),this.doUpdateCursor(null)),x===null||x===E||!x.allowDrop||x.isReadOnly||!x.allowInsert?!1:(E=x.toolManager.findTool("Dragging"),E!==null&&(a!==null&&(a.targetTouches!==void 0&&(0tt&&(tt=at),ut>ot&&(ot=ut))}}for(E===1/0?z.h(0,0,0,0):z.h(E,b,tt-E,ot-b),E=z.x+z.width/2,b=z.y+z.height/2,de.free(z),z=a.Fr,tt=new En,ot=jt.alloc(),rt=y.iterator;rt.next();)at=rt.value,at instanceof Ne&&at.canCopy()&&(ut=x.I(at),ut!==null&&(ut.points=at.points,Zu(ut,z.x-E,z.y-b),ut.suspendsRouting=!0,tt.add(ut,a.Pd())));for(y=y.iterator;y.next();)at=y.value,at.Zc()&&at.canCopy()&&(rt=x.I(at),rt!==null&&(at=at.location,ot.h(z.x-(E-at.x),z.y-(b-at.y)),rt.location=ot,rt.Va(),tt.add(rt,a.Pd(ot))));jt.free(ot),a.copiedParts=tt,Gg(a,tt.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Zu(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}to.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},to.prototype.computeMove=function(a,y,x,E){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,E):new jt},he.Object.defineProperties(to.prototype,{isCopyEnabled:{get:function(){return this.ob},set:function(a){this.ob=a}},copiesEffectiveCollection:{get:function(){return this.u},set:function(a){this.u=a}},dragOptions:{get:function(){return this.ia},set:function(a){this.ia=a}},isGridSnapEnabled:{get:function(){return this.dragOptions.isGridSnapEnabled},set:function(a){this.dragOptions.isGridSnapEnabled=a}},isComplexRoutingRealtime:{get:function(){return this.hb},set:function(a){this.hb=a}},isGridSnapRealtime:{get:function(){return this.dragOptions.isGridSnapRealtime},set:function(a){this.dragOptions.isGridSnapRealtime=a}},gridSnapCellSize:{get:function(){return this.dragOptions.gridSnapCellSize},set:function(a){this.dragOptions.gridSnapCellSize.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSize=a)}},gridSnapCellSpot:{get:function(){return this.dragOptions.gridSnapCellSpot},set:function(a){this.dragOptions.gridSnapCellSpot.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSpot=a)}},gridSnapOrigin:{get:function(){return this.dragOptions.gridSnapOrigin},set:function(a){this.dragOptions.gridSnapOrigin.D(a)||(a=a.J(),this.dragOptions.gridSnapOrigin=a)}},dragsLink:{get:function(){return this.dragOptions.dragsLink},set:function(a){this.dragOptions.dragsLink=a}},dragsTree:{get:function(){return this.dragOptions.dragsTree},set:function(a){this.dragOptions.dragsTree=a}},copyCursor:{get:function(){return this.F},set:function(a){this.F=a}},moveCursor:{get:function(){return this.Oc},set:function(a){this.Oc=a}},nodropCursor:{get:function(){return this.Pc},set:function(a){this.Pc=a}},currentPart:{get:function(){return this.V},set:function(a){this.V=a}},copiedParts:{get:function(){return this.o},set:function(a){this.o=a}},draggedParts:{get:function(){return this.Ha},set:function(a){this.Ha=a}},draggingParts:{get:function(){return this.copiedParts!==null?this.copiedParts.Lf():this.draggedParts!==null?this.draggedParts.Lf():this.te}},draggedLink:{get:function(){return this.diagram.draggedLink},set:function(a){this.diagram.draggedLink=a}},isDragOutStarted:{get:function(){return this.Hb},set:function(a){this.Hb=a}},startPoint:{get:function(){return this.Fr},set:function(a){this.Fr.D(a)||this.Fr.assign(a)}},delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}}}),to.prototype.getDraggingSource=to.prototype.Az;var Sr=null,Tu=null;to.className="DraggingTool",bl=new ze,Fo("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),Vi.prototype.doCancel=function(){Sr!==null&&Sr.doCancel(),oi.prototype.doCancel.call(this)};function po(){oi.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Ne,y=new bn;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new bn,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new Ke,y=new bn,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=bi,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new Ke,y=new bn,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=bi,a.add(y),a.selectable=!1,a.layerName="Tool",this.Di=a,this.o=y,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new En,this.Of=this.gj=this.Pf=null}ye(po,oi),po.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},po.prototype.copyPortProperties=function(a,y,x,E,b){if(a!==null&&y!==null&&x!==null&&E!==null){var z=y.Df(),tt=Xe.alloc();tt.width=y.naturalBounds.width*z,tt.height=y.naturalBounds.height*z,E.desiredSize=tt,Xe.free(tt),b?(E.toSpot=y.toSpot,E.toEndSegmentLength=y.toEndSegmentLength):(E.fromSpot=y.fromSpot,E.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=gi,z=jt.alloc(),x.location=y.ga(gi,z),jt.free(z),E.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,E,b)}},po.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=bi,y.fromSpot=$o,y.toSpot=$o),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},po.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},po.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof Ke){var y=this.targetPort.part;this.isForwards?this.copyPortProperties(y,this.targetPort,this.temporaryToNode,this.temporaryToPort,!0):this.copyPortProperties(y,this.targetPort,this.temporaryFromNode,this.temporaryFromPort,!1)}else this.isForwards?this.setNoTargetPortProperties(this.temporaryToNode,this.temporaryToPort,!0):this.setNoTargetPortProperties(this.temporaryFromNode,this.temporaryFromPort,!1);(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},po.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof Ke))return null;for(;a!==null;){var E=y?a.toLinkable:a.fromLinkable;if(E===!0&&(a.portId!==null||a instanceof Ke)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(E===!1)break;a=a.panel}return null},po.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,E=this.portGravity;0>=E&&(E=.1);var b=this,z=y.og(x,E,function(ct){return b.findValidLinkablePort(ct,a)},null,!0);for(E=1/0,y=null,z=z.iterator;z.next();){var tt=z.value,ot=tt.part;if(ot instanceof Ke){var rt=tt.ga(gi,jt.alloc()),at=x.x-rt.x,ut=x.y-rt.y;jt.free(rt),rt=at*at+ut*ut,rtx){if(this.originalLink!==null&&a===this.originalFromNode&&y===this.originalFromPort)return!0;if(y=y.portId,y===null&&(y=""),a.Mo(y).count>=x)return!1}return!0},po.prototype.isValidTo=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.toLinkable!==!0))return!1;var x=y.toMaxLinks;if(1/0>x){if(this.originalLink!==null&&a===this.originalToNode&&y===this.originalToPort)return!0;if(y=y.portId,y===null&&(y=""),a.Sd(y).count>=x)return!1}return!0},po.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},po.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof Ke))return!1;a=a.portId,a===null&&(a="");var E=y.part;if(!(E instanceof Ke))return!1;for(y=y.portId,y===null&&(y=""),y=E.Sd(y);y.next();)if(E=y.value,E.fromNode===x&&E.fromPortId===a)return!0;return!1},po.prototype.isValidLink=function(a,y,x,E){if(!this.isValidFrom(a,y)||!this.isValidTo(x,E)||!(y===null||E===null||(y.fromLinkableSelfNode&&E.toLinkableSelfNode||!this.isInSameNode(y,E))&&(y.fromLinkableDuplicates&&E.toLinkableDuplicates||!this.isLinked(y,E)))||this.originalLink!==null&&(a!==null&&this.isLabelDependentOnLink(a,this.originalLink)||x!==null&&this.isLabelDependentOnLink(x,this.originalLink))||a!==null&&x!==null&&(a.data===null&&x.data!==null||a.data!==null&&x.data===null)||!this.isValidCycle(a,x,this.originalLink))return!1;if(a!==null){var b=a.linkValidation;if(b!==null&&!b(a,y,x,E,this.originalLink))return!1}return x!==null&&(b=x.linkValidation,b!==null&&!b(a,y,x,E,this.originalLink))?!1:(b=this.linkValidation,b!==null?b(a,y,x,E,this.originalLink):!0)},po.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var x=a.labeledLink;if(x===null)return!1;if(x===y)return!0;var E=new Ie;return E.add(a),Kr(this,x,y,E)};function Kr(a,y,x,E){if(y===x)return!0;var b=y.fromNode;return b!==null&&b.isLinkLabel&&(E.add(b),Kr(a,b.labeledLink,x,E))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(E.add(y),Kr(a,y.labeledLink,x,E))))}po.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var E=this.diagram.validCycle;if(E!==ag){if(E===Bf){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=y.linksConnected;E.next();){var b=E.value;if(b!==x&&b.isTreeLink&&b.toNode===y)return!1}return!ns(this,a,y,x,!0)}if(E===bf){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=a.linksConnected;E.next();)if(b=E.value,b!==x&&b.isTreeLink&&b.fromNode===a)return!1;return!ns(this,a,y,x,!0)}if(E===Nf)return a===y?a=!0:(E=new Ie,E.add(y),a=is(this,E,a,y,x)),!a;if(E===Tf)return!ns(this,a,y,x,!1);if(E===Ff)return a===y?a=!0:(E=new Ie,E.add(y),a=rd(this,E,a,y,x)),!a}return!0};function ns(a,y,x,E,b){if(y===x)return!0;if(y===null||x===null)return!1;for(var z=y.linksConnected;z.next();){var tt=z.value;if(tt!==E&&(!b||tt.isTreeLink)&&tt.toNode===y&&(tt=tt.fromNode,tt!==y&&ns(a,tt,x,E,b)))return!0}return!1}function is(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==b&&tt.toNode===x&&(tt=tt.fromNode,tt!==x&&is(a,y,tt,E,b)))return!0}return!1}function rd(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==b){var ot=tt.fromNode;if(tt=tt.toNode,ot=ot===x?tt:ot,ot!==x&&rd(a,y,ot,E,b))return!0}}return!1}he.Object.defineProperties(po.prototype,{portGravity:{get:function(){return this.te},set:function(a){0<=a&&(this.te=a)}},isUnconnectedLinkValid:{get:function(){return this.Ha},set:function(a){this.Ha=a}},linkingCursor:{get:function(){return this.u},set:function(a){this.u=a}},temporaryLink:{get:function(){return this.Ci},set:function(a){this.Ci=a}},temporaryFromNode:{get:function(){return this.Bi},set:function(a){(this.Bi=a)&&(this.j=a.port)}},temporaryFromPort:{get:function(){return this.j},set:function(a){if(this.j!==null){var y=this.j.panel;if(y!==null){var x=y.O.indexOf(this.j);y.mb(x),y.Gb(x,a)}}this.j=a}},temporaryToNode:{get:function(){return this.Di},set:function(a){(this.Di=a)&&(this.o=a.port)}},temporaryToPort:{get:function(){return this.o},set:function(a){if(this.o!==null){var y=this.o.panel;if(y!==null){var x=y.O.indexOf(this.o);y.mb(x),y.Gb(x,a)}}this.o=a}},originalLink:{get:function(){return this.Hb},set:function(a){this.Hb=a}},originalFromNode:{get:function(){return this.hb},set:function(a){this.hb=a}},originalFromPort:{get:function(){return this.ob},set:function(a){this.ob=a}},originalToNode:{get:function(){return this.Oc},set:function(a){this.Oc=a}},originalToPort:{get:function(){return this.Pc},set:function(a){this.Pc=a}},isForwards:{get:function(){return this.ia},set:function(a){this.ia=a}},validPortsCache:{get:function(){return this.hy}},targetPort:{get:function(){return this.Pf},set:function(a){this.Pf=a}},linkValidation:{get:function(){return this.gj},set:function(a){this.gj=a}},portTargeted:{get:function(){return this.Of},set:function(a){this.Of=a}}}),po.className="LinkingBaseTool";function os(){po.call(this),this.name="Linking",this.V={},this.F=null,this.K=vh,this.Xd=null}ye(os,po),os.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return a.isReadOnly||a.isModelReadOnly||!a.allowLink||!a.model.xs()||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize()?!1:this.findLinkablePort()!==null},os.prototype.findLinkablePort=function(){var a=this.diagram,y=this.startObject;if(y===null&&(y=a.ic(a.firstInput.documentPoint,null,null)),y===null||(a=y.part,!(a instanceof Ke)))return null;var x=this.direction;if(x===vh||x===zp){var E=this.findValidLinkablePort(y,!1);if(E!==null||this.startObject===a&&(E=a.port,this.findValidLinkablePort(E,!1)))return this.isForwards=!0,E}return(x===vh||x===Rp)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},os.prototype.doActivate=function(){var a=this.diagram,y=this.findLinkablePort();y===null?this.stopTool():(this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.isForwards?(this.temporaryToNode!==null&&(this.temporaryToNode.location=a.lastInput.documentPoint),this.originalFromPort=y,y=this.originalFromPort.part,y instanceof Ke&&(this.originalFromNode=y),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(this.temporaryFromNode!==null&&(this.temporaryFromNode.location=a.lastInput.documentPoint),this.originalToPort=y,y=this.originalToPort.part,y instanceof Ke&&(this.originalToNode=y),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),a.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),a.add(this.temporaryToNode),this.temporaryToNode&&this.temporaryToNode.Va(),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0)},os.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},os.prototype.doStop=function(){po.prototype.doStop.call(this),this.startObject=null},os.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,E=null,b=null,z=null;try{var tt=this.targetPort=this.findTargetPort(this.isForwards);if(tt!==null){var ot=tt.part;ot instanceof Ke&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),E=ot,b=tt):(y=ot,x=tt,this.originalToNode!==null&&(E=this.originalToNode,b=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(E=this.originalToNode,b=this.originalToPort);y!==null||E!==null?(z=this.insertLink(y,x,E,b),z!==null?(tt===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),z.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",z)):this.doNoLink(y,x,E,b)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),z&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},os.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof Ne)return a.isTreeLink;var y=this.diagram;return y===null?!0:(a=y.partManager.getLinkCategoryForData(a),y=y.partManager.findLinkTemplateForCategory(a),y!==null?y.isTreeLink:!0)},os.prototype.insertLink=function(a,y,x,E){return this.diagram.partManager.insertLink(a,y,x,E)},os.prototype.doNoLink=function(){},he.Object.defineProperties(os.prototype,{archetypeLinkData:{get:function(){return this.V},set:function(a){this.V=a}},archetypeLabelNodeData:{get:function(){return this.F},set:function(a){this.F=a}},direction:{get:function(){return this.K},set:function(a){this.K=a}},startObject:{get:function(){return this.Xd},set:function(a){this.Xd=a}}});var vh=new Me(os,"Either",0),zp=new Me(os,"ForwardsOnly",0),Rp=new Me(os,"BackwardsOnly",0);os.className="LinkingTool",os.Either=vh,os.ForwardsOnly=zp,os.BackwardsOnly=Rp;function _s(){po.call(this),this.name="Relinking";var a=new bn;a.figure="Diamond",a.desiredSize=Zo,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new bn,a.figure="Diamond",a.desiredSize=Zo,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new de}ye(_s,po),_s.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Ne){var y="RelinkFrom",x=null;if(a.isSelected&&!this.diagram.isReadOnly){var E=a.selectionObject;E!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null&&(x=this.makeAdornment(E,!1),a.bh(y,x)))}x===null&&a.Jf(y),y="RelinkTo",x=null,a.isSelected&&!this.diagram.isReadOnly&&(E=a.selectionObject,E!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null?(x=this.makeAdornment(E,!0),a.bh(y,x)):x.v())),x===null&&a.Jf(y)}},_s.prototype.makeAdornment=function(a,y){var x=new ri;return x.type=ke.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},_s.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowRelink||!a.model.xs()||!a.lastInput.left)return!1;var y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom");return y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo")),y!==null},_s.prototype.doActivate=function(){var a=this.diagram;if(this.originalLink===null){var y=this.handle;if(y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom"),y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo"))),y===null)return;var x=y.part;if(!(x instanceof ri&&x.adornedPart instanceof Ne))return;this.handle=y,this.isForwards=x===null||x.category==="RelinkTo",this.originalLink=x.adornedPart}this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.originalFromPort=this.originalLink.fromPort,this.originalFromNode=this.originalLink.fromNode,this.originalToPort=this.originalLink.toPort,this.originalToNode=this.originalLink.toNode,this.Ew.set(this.originalLink.actualBounds),this.originalLink!==null&&0y.firstPickIndex+1&&x=x.x)y=0>=x.y?y+225:1<=x.y?y+135:y+180;else if(1<=x.x)0>=x.y?y+=315:1<=x.y&&(y+=45);else if(0>=x.y)y+=270;else if(1<=x.y)y+=90;else break t;0>y?y+=360:360<=y&&(y-=360),a.cursor=22.5>y?"e-resize":67.5>y?"se-resize":112.5>y?"s-resize":157.5>y?"sw-resize":202.5>y?"w-resize":247.5>y?"nw-resize":292.5>y?"n-resize":337.5>y?"ne-resize":"e-resize"}else if(a instanceof ke)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},Ir.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowResize&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},Ir.prototype.doActivate=function(){var a=this.diagram;this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null&&(this.adornedObject=this.handle.part.adornedObject,this.adornedObject!==null&&(a.isMouseCaptured=!0,a.animationManager.Cc(),this.Ea(this.name),this.Xq.set(this.adornedObject.ga(this.handle.alignment.gv())),this.Tn.set(this.adornedObject.part.location),this.Dw.set(this.adornedObject.desiredSize),this.pt=this.computeCellSize(),this.rt=this.computeMinSize(),this.qt=this.computeMaxSize(),this.isActive=!0))},Ir.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},Ir.prototype.stopTransaction=function(){var a=this.diagram,y=oi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Ir.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},Ir.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,jt.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),a.bd(),jt.free(b)}},Ir.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,jt.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),jt.free(b),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},Ir.prototype.resize=function(a){var y=this.diagram,x=this.adornedObject;if(x!==null){if(x.desiredSize=a.size,a=x.part,a.Va(),x=x.ga(this.handle.alignment.gv()),a instanceof Fn){var E=new ze;if(E.add(a),!this.dragsMembers&&a.placeholder===null){var b=new st;b.dragsMembers=!1}y.moveParts(E,this.oppositePoint.copy().re(x),!0,b)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},Ir.prototype.computeResize=function(a,y,x,E,b,z){y.Mc()&&(y=gi);var tt=this.adornedObject.naturalBounds,ot=tt.x,rt=tt.y,at=tt.x+tt.width,ut=tt.y+tt.height,ct=1;if(!z){ct=tt.width;var mt=tt.height;0>=ct&&(ct=1),0>=mt&&(mt=1),ct=mt/ct}return mt=jt.alloc(),Jt.No(a.x,a.y,ot,rt,b.width,b.height,mt),a=tt.copy(),0>=y.x?0>=y.y?(a.x=Math.max(mt.x,at-E.width),a.x=Math.min(a.x,at-x.width),a.width=Math.max(at-a.x,x.width),a.y=Math.max(mt.y,ut-E.height),a.y=Math.min(a.y,ut-x.height),a.height=Math.max(ut-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ct*a.width,E.height),x.height),a.width=a.height/ct):(a.width=Math.max(Math.min(a.height/ct,E.width),x.width),a.height=ct*a.width),a.x=at-a.width,a.y=ut-a.height)):1<=y.y?(a.x=Math.max(mt.x,at-E.width),a.x=Math.min(a.x,at-x.width),a.width=Math.max(at-a.x,x.width),a.height=Math.max(Math.min(mt.y-rt,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ct*a.width,E.height),x.height),a.width=a.height/ct):(a.width=Math.max(Math.min(a.height/ct,E.width),x.width),a.height=ct*a.width),a.x=at-a.width)):(a.x=Math.max(mt.x,at-E.width),a.x=Math.min(a.x,at-x.width),a.width=at-a.x,z||(a.height=Math.max(Math.min(ct*a.width,E.height),x.height),a.width=a.height/ct,a.y=rt+.5*(ut-rt-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(mt.x-ot,E.width),x.width),a.y=Math.max(mt.y,ut-E.height),a.y=Math.min(a.y,ut-x.height),a.height=Math.max(ut-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ct*a.width,E.height),x.height),a.width=a.height/ct):(a.width=Math.max(Math.min(a.height/ct,E.width),x.width),a.height=ct*a.width),a.y=ut-a.height)):1<=y.y?(a.width=Math.max(Math.min(mt.x-ot,E.width),x.width),a.height=Math.max(Math.min(mt.y-rt,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ct*a.width,E.height),x.height),a.width=a.height/ct):(a.width=Math.max(Math.min(a.height/ct,E.width),x.width),a.height=ct*a.width))):(a.width=Math.max(Math.min(mt.x-ot,E.width),x.width),z||(a.height=Math.max(Math.min(ct*a.width,E.height),x.height),a.width=a.height/ct,a.y=rt+.5*(ut-rt-a.height))):0>=y.y?(a.y=Math.max(mt.y,ut-E.height),a.y=Math.min(a.y,ut-x.height),a.height=ut-a.y,z||(a.width=Math.max(Math.min(a.height/ct,E.width),x.width),a.height=ct*a.width,a.x=ot+.5*(at-ot-a.width))):1<=y.y&&(a.height=Math.max(Math.min(mt.y-rt,E.height),x.height),z||(a.width=Math.max(Math.min(a.height/ct,E.width),x.width),a.height=ct*a.width,a.x=ot+.5*(at-ot-a.width))),jt.free(mt),a},Ir.prototype.computeReshape=function(){var a=Pe;return this.adornedObject instanceof bn&&(a=Mv(this.adornedObject)),!(a===$e||this.diagram.lastInput.shift)},Ir.prototype.computeMinSize=function(){var a=this.adornedObject.minSize.copy(),y=this.minSize;return!isNaN(y.width)&&y.width>a.width&&(a.width=y.width),!isNaN(y.height)&&y.height>a.height&&(a.height=y.height),a},Ir.prototype.computeMaxSize=function(){var a=this.adornedObject.maxSize.copy(),y=this.maxSize;return!isNaN(y.width)&&y.widthx?x+=360:360<=x&&(x-=360),x=Math.round(45*Math.round(x/45));var E=this.handleDistance;return x===0?y.x=a.naturalBounds.width+E:x===45?(y.x=a.naturalBounds.width+E,y.y=a.naturalBounds.height+E):x===90?y.y=a.naturalBounds.height+E:x===135?(y.x=-E,y.y=a.naturalBounds.height+E):x===180?y.x=-E:x===225?(y.x=-E,y.y=-E):x===270?y.y=-E:x===315&&(y.x=a.naturalBounds.width+E,y.y=-E),a.ga(y)},rs.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new jt(NaN,NaN),this.isActive=a.isMouseCaptured=!1},rs.prototype.stopTransaction=function(){var a=this.diagram,y=oi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},rs.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},rs.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},rs.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){a.delaysLayout=!1;var y=this.computeRotate(a.lastInput.documentPoint);this.rotate(y),a.Ya(),this.transactionResult=this.name,a.R("PartRotated",this.adornedObject,this.originalAngle)}this.stopTool()},rs.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var x=y.locationObject,E=y.rotateObject;(x===E||x.rg(E))&&(x=this.Tn.copy(),y.location=x.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},rs.prototype.computeRotate=function(a){a=this.rotationPoint.ab(a)-this.handleAngle;var y=this.adornedObject.panel;y!==null&&(a-=y.li()),360<=a?a-=360:0>a&&(a+=360),y=Math.min(Math.abs(this.snapAngleMultiple),180);var x=Math.min(Math.abs(this.snapAngleEpsilon),y/2);return!this.diagram.lastInput.shift&&0y-x&&(a=(Math.floor(a/y)+1)*y)),360<=a?a-=360:0>a&&(a+=360),a},he.Object.defineProperties(rs.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof ri))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof ri)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},snapAngleMultiple:{get:function(){return this.ia},set:function(a){this.ia=a}},snapAngleEpsilon:{get:function(){return this.V},set:function(a){this.V=a}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(a){this.kr=a.copy()}},handleAngle:{get:function(){return this.u},set:function(a){this.u=a}},handleDistance:{get:function(){return this.F},set:function(a){this.F=a}}}),rs.className="RotatingTool",Fo("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function yh(){oi.call(this),this.name="ClickSelecting"}ye(yh,oi),yh.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},yh.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},yh.className="ClickSelectingTool";function ka(){oi.call(this),this.name="Action",this.pk=null}ye(ka,oi),ka.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,x=a.ic(y.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E});return x!==null&&x.isActionable?(this.pk=x,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},ka.prototype.doMouseDown=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionDown!==null&&y.actionDown(a,y))}else this.canStart()&&this.doActivate()},ka.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionMove!==null&&y.actionMove(a,y))}},ka.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;if(y===null)return;a.targetObject=y,y.actionUp!==null&&y.actionUp(a,y),this.standardMouseClick(function(x){for(;x.panel!==null&&(!x.isActionable||x!==y);)x=x.panel;return x},function(x){return x===y})}this.stopTool()},ka.prototype.doCancel=function(){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionCancel!==null&&y.actionCancel(a,y),this.stopTool())},ka.prototype.doStop=function(){this.pk=null},ka.className="ActionTool";function Du(){oi.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new jt(0,0)}ye(Du,oi),Du.prototype.canStart=function(){if(!this.isEnabled||this.archetypeNodeData===null)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.lastInput.left||this.isBeyondDragSize())return!1;if(this.isDoubleClick){if(a.lastInput.clickCount===1&&(this.mw=a.lastInput.viewPoint.copy()),a.lastInput.clickCount!==2||this.isBeyondDragSize(this.mw))return!1}else if(a.lastInput.clickCount!==1)return!1;return!(a.currentTool!==this&&a.Ol(a.lastInput.documentPoint,!0)!==null)},Du.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},Du.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var E=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof hn)x.Zc()&&(Fa(x),E=x.copy(),E!==null&&y.add(E));else if(x!==null){var b=y.model.copyNodeData(x);we(b)&&(y.model.xf(b),E=y.Lc(b))}if(E!==null){var z=jt.allocAt(a.x,a.y);this.isGridSnapEnabled&&ec(this.diagram,E,a,z),E.location=z,y.allowSelect&&(y.clearSelection(!0),E.isSelected=!0),jt.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",E)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return E},he.Object.defineProperties(Du.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){this.Ri=a}},isDoubleClick:{get:function(){return this.o},set:function(a){this.o=a}},isGridSnapEnabled:{get:function(){return this.j},set:function(a){this.j=a}}}),Du.className="ClickCreatingTool";function ua(){oi.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new hn;a.layerName="Tool",a.selectable=!1;var y=new bn;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}ye(ua,oi),ua.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(!a.allowSelect)return!1;var y=a.lastInput;return!(!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.timestamp-a.firstInput.timestampb.right&&(x.x-=E.width+5/y.scale),x.xb.bottom&&(x.y-=E.height+5/y.scale),x.ya.lastInput.clickCount)):!1},Ii.prototype.doStart=function(){Ou=this,this.textBlock!==null&&this.doActivate()},Ii.prototype.doActivate=function(){if(!this.isActive){var a=this.diagram;if(a!==null){var y=this.textBlock;if(y===null&&(y=a.ic(a.lastInput.documentPoint)),y!==null&&y instanceof Ai&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=Qd;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var E=new de(this.textBlock.ga(yr),this.textBlock.ga(ys));a.tv(E),x.show(y,a,this),this.currentTextEditor=x}}}},Ii.prototype.doCancel=function(){this.stopTool()},Ii.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Ii.prototype.doMouseDown=function(){this.isActive&&this.acceptText(xl)},Ii.prototype.acceptText=function(a){switch(a){case xl:this.qa===ud?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===Qd||this.qa===Jd||this.qa===Zd)&&(this.qa=of,nf(this));break;case Yg:case Xd:case Vg:(Xd!==a||this.textBlock.isMultiline!==!0)&&(this.qa===Qd||this.qa===Jd||this.qa===Zd)&&(this.qa=of,nf(this))}};function nf(a){var y=a.textBlock,x=a.diagram,E=a.currentTextEditor;if(y!==null&&E!==null){var b=y.text,z="";E.valueFunction!==null&&(z=E.valueFunction()),a.isValidText(y,b,z)?(a.Ea(a.name),a.qa=ud,a.transactionResult=a.name,y.text=z,a.doSuccess(b,z),x!==null&&x.R("TextEdited",y,b),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=Jd,a.doError(b,z))}}Ii.prototype.doError=function(a,y){var x=this.textBlock;x.errorFunction!==null&&x.errorFunction(this,a,y),(a=this.currentTextEditor)&&a.show(x,this.diagram,this)},Ii.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},Ii.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=ld,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},Ii.prototype.doStop=function(){Ou=null},Ii.prototype.isValidText=function(a,y,x){var E=this.textValidation;return E!==null&&!E(a,y,x)?!1:(E=a.textValidation,!!(E===null||E(a,y,x)))},Ii.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},he.Object.defineProperties(Ii.prototype,{textBlock:{get:function(){return this.ia},set:function(a){this.ia=a}},currentTextEditor:{get:function(){return this.o},set:function(a){this.o=a}},defaultTextEditor:{get:function(){return this.j},set:function(a){this.j=a}},starting:{get:function(){return this.V},set:function(a){this.V=a}},textValidation:{get:function(){return this.vj},set:function(a){this.vj=a}},minimumEditorScale:{get:function(){return this.u},set:function(a){this.u=a}},selectsTextOnActivate:{get:function(){return this.F},set:function(a){this.F=a}},state:{get:function(){return this.qa},set:function(a){this.qa!==a&&(this.qa=a)}}}),Ii.prototype.measureTemporaryTextBlock=Ii.prototype.Lx;var Yg=new Me(Ii,"LostFocus",0),xl=new Me(Ii,"MouseDown",1),Vg=new Me(Ii,"Tab",2),Xd=new Me(Ii,"Enter",3),$0=new Me(Ii,"SingleClick",0),ad=new Me(Ii,"SingleClickSelected",1),Kg=new Me(Ii,"DoubleClick",2),ld=new Me(Ii,"StateNone",0),Qd=new Me(Ii,"StateActive",1),Zd=new Me(Ii,"StateEditing",2),of=new Me(Ii,"StateValidating",3),Jd=new Me(Ii,"StateInvalid",4),ud=new Me(Ii,"StateValidated",5),Ou=null;Ii.className="TextEditingTool",Ii.LostFocus=Yg,Ii.MouseDown=xl,Ii.Tab=Vg,Ii.Enter=Xd,Ii.SingleClick=$0,Ii.SingleClickSelected=ad,Ii.DoubleClick=Kg,Ii.StateNone=ld,Ii.StateActive=Qd,Ii.StateEditing=Zd,Ii.StateValidating=of,Ii.StateInvalid=Jd,Ii.StateValidated=ud,Fo("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function Ws(a){_d||(rf(),_d=!0),this.H=Il,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=su,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Ie,this.ce=new Fr,this.ce.Yd=this,this.Ei=new Ie,this.pu=new Ie,this.Sr=new Ie,this.pr=new Ie,a&&Object.assign(this,a)}Ws.prototype.Xe=function(a){this.H=a},Ws.prototype.canStart=function(){return!0};function Dl(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),Br(a.H),a.zb=!0)}function Xg(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,E=a.Zd.contains("Model");E&&(a.Ok=!0,a.Pk===su?(y.isViewportUnconstrained=!0,y.vc.clear(),y.add(x,"position",x.position.copy().offset(0,-200),x.position),y.add(x,"opacity",0,1)):a.Pk===sf&&y.vc.clear(),a.Qw=!!(a.Pk===$d&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),E&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),tg(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,E=y.vc.get(x),x.autoScale!==Xr&&E!==null&&(delete E.start.scale,delete E.end.scale),Ze.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&xs(x),df(x),a.zb=!1,y.start(),y.bc&&(ju(a),x.Ya(),af(y,0),da(x,!0),xh(a),x.R("AnimationStarting",a)))}))}}function ru(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function Qg(a,y,x,E){a.isTicking||ru(a)||y instanceof Ne&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,E,!1)}wt=Ws.prototype,wt.fv=function(a){return this.ce.fv(a)},wt.Xu=function(a){return this.ce.Xu(a)};function Zg(a,y){function x(){if(0z?z+=360:rt+=360),z=b(x,z,rt-z,E)%360,tt=b(x,tt,at-tt,E),ot=b(x,ot,ut-ot,E),x=b(x,a,y-a,E),"hsla("+z+", "+tt+"%, "+ot+"%, "+x+")"}function rf(){function a(x,E,b,z,tt,ot){x.position=new jt(z(tt,E.x,b.x-E.x,ot),z(tt,E.y,b.y-E.y,ot))}var y=new En;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,E,b,z,tt,ot){tta&&_n(a,">= 1",Ws,"duration"),this.Dg=a}},isAnimating:{get:function(){return this.bc}},isTicking:{get:function(){return this.vq}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a}},defaultAnimation:{get:function(){return this.ce}},activeAnimations:{get:function(){return this.Ei}},initialAnimationStyle:{get:function(){return this.Pk},set:function(a){this.Pk=a}}}),Ws.prototype.stopAnimation=Ws.prototype.Cc;var qd=null,_d=!1,su=new Me(Ws,"Default",1),$d=new Me(Ws,"AnimateLocations",2),sf=new Me(Ws,"None",3);Ws.className="AnimationManager",Ws.defineAnimationEffect=function(a,y){_d||(rf(),_d=!0),qd.add(a,y)},Ws.Default=su,Ws.AnimateLocations=$d,Ws.None=sf;function Fr(a){this.vu=this.Nw=this.Yd=this.H=null,this.Xk=this.bc=this.j=!1,this.cn=this.Qd=0,this.Lp=this.ot=hd,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=Dr,this.vc=new En,this.Tt=new En,this.yl=new Ie,this.Ut=new Ie,this.dw=Hu,a&&Object.assign(this,a)}Fr.prototype.suspend=function(){this.Xk=!0},Fr.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,eg(this,!0),ju(this.Yd),da(this.H),xh(this.Yd),this.H.redraw()};function tg(a,y){if(a.Tt.clear(),a.Wk=!1,a.au=0,a.Gd=NaN,0a.cn?a.Gd:E-a.Qd;y&&(b=a.gw,ba.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function af(a,y){for(var x=a.Gd,E=a.vc.iterator,b=a.Wk;E.next();){var z=E.key;if(!(z instanceof Qt&&z.diagram===null)){var tt=E.value,ot=b?tt.end:tt.start;tt=b?tt.start:tt.end;var rt=qd,at;for(at in tt)at==="position"&&(tt["position:placeholder"]||tt["position:nodeCollapse"])||rt.get(at)===null||rt.get(at)(z,ot[at],tt[at],a.Lp,y,x,a)}}}wt.stop=function(){return this.bc?(this.Ml(!0),this):this},wt.Ml=function(a){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var y=this.H,x=this.Yd;this.Xk=this.bc=x.Ok=!1,ju(x);for(var E=this.vc,b=this.yl.iterator;b.next();)y.remove(b.value);for(b=this.Ut.iterator;b.next();)b.value.v();b=this.ho,E=E.iterator;for(var z=qd;E.next();){var tt=E.key,ot=E.value,rt=b?ot.end:ot.start,at=b?ot.start:ot.end,ut=ot.Ku,ct;for(ct in at)if(z.get(ct)!==null){var mt=ct;!ot.Hu||mt!=="position:nodeCollapse"&&mt!=="position:placeholder"||(mt="position"),z.get(mt)(tt,rt[ct],ut[ct]!==void 0?ut[ct]:ot.Hu?rt[ct]:at[ct],this.Lp,this.Gd,this.Gd,this)}ot.Hu&&ut.location!==void 0&&tt instanceof hn&&(tt.location=ut.location),ot.nv&&tt instanceof hn&&tt.Zb(!1)}if(y.As.clear(),ng(y,!1),y.Ya(),y.N(),da(y,!0),x.defaultAnimation===this){for(ct=x.pr.iterator;ct.next();)b=ct.value,b.Tg!==null&&(b.points=b.Tg,b.Tg=null);x.pr.clear()}da(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),xh(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),tg(this,null),x.Ml(this),y.$b())}},wt.Cj=function(a,y){var x=y.actualBounds,E=null;if(y instanceof Fn&&(E=y.placeholder),E!==null?(x=E.ga(yr),E=E.padding,x.x+=E.left,x.y+=E.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new jt(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof Fn)for(a=a.memberParts;a.next();)E=a.value,E instanceof Ke&&this.Cj(E,y)},wt.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof Fn&&(x=y.placeholder),x!==null){var E=x.ga(yr);x=x.padding,E.x+=x.left,E.y+=x.top,this.add(a,"position:placeholder",a.position,E,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),E=this.vc,E.contains(a)&&(E.I(a).nv=!0),a instanceof Fn)for(a=a.memberParts;a.next();)E=a.value,E instanceof Ke&&this.Aj(E,y)}},wt.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},he.Object.defineProperties(Fr.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&_n(a,">= 1",Fr,"duration"),this.Dg=a}},reversible:{get:function(){return this.ho},set:function(a){this.ho=a}},runCount:{get:function(){return this.cu},set:function(a){0a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Wp(a,y,x,E){return a===E?y+x:x*(-Math.pow(2,-10*a/E)+1)+y}Fr.className="Animation",Fr.EaseLinear=function(a,y,x,E){return x*a/E+y},Fr.EaseInOutQuad=hd,Fr.EaseInQuad=function(a,y,x,E){return x*(a/=E)*a+y},Fr.EaseOutQuad=function(a,y,x,E){return-x*(a/=E)*(a-2)+y},Fr.EaseInExpo=function(a,y,x,E){return a===0?y:x*Math.pow(2,10*(a/E-1))+y},Fr.EaseOutExpo=Wp;function Ch(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}Ch.className="AnimationState";function Ha(a,y,x){this.xd=null,this.rf=a,this.so=x||lf,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=Mh))}Ha.prototype.copy=function(){var a=new Ha(this.rf);a.so=this.so;var y=this.uk;if(y!==null){var x={};y.duration!==void 0&&(x.duration=y.duration),y.finished!==void 0&&(x.finished=y.finished),y.easing!==void 0&&(x.easing=y.easing),a.uk=x}return a};function Up(a,y){a=a.uk,a!==null&&(a.duration&&(y.duration=a.duration),a.finished&&(y.finished=a.finished),a.easing&&(y.easing=a.easing))}he.Object.defineProperties(Ha.prototype,{propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},animationSettings:{get:function(){return this.uk},set:function(a){this.uk=a}},startCondition:{get:function(){return this.so},set:function(a){this.so=a}}});var lf=new Me(Ha,"Default",1),Mh=new Me(Ha,"Immediate",2),dd=new Me(Ha,"Bundled",3);Ha.className="AnimationTrigger",Ha.Default=lf,Ha.Immediate=Mh,Ha.Bundled=dd;function gr(a){Yi(this),this.H=null,this.Pa=new ze,this.xa="",this.pb=1,this.o=!1,this.j=this.Uh=this.u=this.Oi=this.Ni=this.Mi=this.Li=this.Ji=this.Ki=this.Ii=this.Qi=this.Hi=this.Pi=this.Gi=this.Fi=!0,this.Zq=[],a&&Object.assign(this,a)}wt=gr.prototype,wt.clear=function(){for(var a=this.Pa,y=0;y=a)return y;for(var x=0,E=0,b=0,z=0,tt=0,ot=this.Pa.iterator;ot.next();){var rt=ot.value;rt instanceof Fn?b++:rt instanceof Ke?E++:rt instanceof Ne?z++:rt instanceof ri?tt++:x++}if(ot="",0x.Oq||ot.height*b>x.Oq?y.gc(a,x):(b=y.actualBounds,z=y.naturalBounds,b.width===0||b.height===0||isNaN(b.x)||isNaN(b.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(ho(y,a,y.areaBackground,!0,!0,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.areaBackground===null&&y.background===null&&(ho(y,a,"rgba(0,0,0,0.3)",!0,!1,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),ho(y,a,y.background,!0,!1,z,b),a.fillRect(0,0,z.width/2,z.height/2),x.ws()||(y=1/(x.m11*x.m22-x.m12*x.m21),a.transform(x.m22*y,-x.m12*y,-x.m21*y,x.m11*y,y*(x.m21*x.dy-x.m22*x.dx),y*(x.m12*x.dx-x.m11*x.dy)))))),E&&(a.restore(),a.Vc(!0))}},wt.g=function(a,y,x,E,b){var z=this.diagram;z!==null&&z.cb(Ki,a,this,y,x,E,b)},wt.oi=function(a,y,x){var E=this.Pa;if(y.Ig=this,this===null&&Wr(y),a>=E.count)a=E.count;else if(E.M(a)===y)return-1;return E.Gb(a,y),y.Vo(x),E=this.diagram,E!==null&&(x?E.N():E.oi(y)),qg(this,a,y),a},wt.pc=function(a,y,x){if(!x&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,x);var E=this.Pa;if(0>a||a>=E.length){if(a=E.indexOf(y),0>a)return-1}else if(E.M(a)!==y&&(a=E.indexOf(y),0>a))return-1;return y.Wo(x),E.mb(a),E=this.diagram,E!==null&&(x?E.N():E.pc(y)),y.Ig=null,Wr(y),a};function qg(a,y,x){if(y=Vp(a,y,x),x instanceof Fn&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var E=-1,b=a.Pa.s,z=b.length,tt=0;ttE&&ot.containingGroup===x&&(E=tt,0<=y))break}!(0>E)&&E=b)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var z=y-1,tt=NaN;0<=z&&(tt=a.M(z).zOrder,!!isNaN(tt));)z--;for(var ot=y+1,rt=NaN;otE)for(;;){if(z===-1||tt<=E){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(tt=NaN;0<=--z&&(tt=a.M(z).zOrder,isNaN(tt)););}else if(!isNaN(rt)&&rt=E){if(ot--,ot===y)break;return a.mb(y),a.Gb(ot,x),ot}for(rt=NaN;++ota||1=a)return y;for(var x=this.Wa.iterator;x.next();)y+=` + `+x.value.toString(a-1);return y};function hf(a,y){if(ro){if(y!=null||ee("Diagram setup requires an argument DIV."),a.Ka!==null&&ee("Diagram has already completed setup."),typeof y=="string"?a.Ka=Ze.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:ee("No DIV or DIV id supplied: "+y),a.Ka===null&&ee("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&ee("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Ze.ResizeObserver){var x=Xi(function(){a.$b()},250);a.ol=new Ze.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}Ze.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var E="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=E,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=Ze.go;var b=new Ta(a);if(b.style!==void 0&&(b.style.position="absolute",b.style.top="0px",b.style.left="0px",Ze.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),b.style.zIndex="2",b.style.userSelect="none",b.style.MozUserSelect="none",b.style.touchAction="none",b.style.letterSpacing="normal !important",b.style.wordSpacing="normal !important"),a.ta=b,a.ib=b.context,E=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),yf(a,a.Aa,a.ya),a.Ka.insertBefore(b.Oa,a.Ka.firstChild),b=new Ta(null),b.width=1,b.height=1,a.jw=b,a.oy=b.context,ro){b=ao("div");var z=ao("div");b.style.position="absolute",b.style.overflow="auto",b.style.width=a.Aa+"px",b.style.height=a.ya+"px",b.style.zIndex="1",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(b),b.appendChild(z),b.onscroll=Jp,b.addEventListener("pointerdown",qp),b.H=a,b.uy=!0,b.vy=!0,a.ku=b,a.hu=z}a.hk=Xi(function(){a.Yh=null,a.N()},300),a.Ov=Xi(function(){df(a)},250),a.preventDefault=function(tt){return tt.preventDefault(),!1},a.$j=function(tt){if(a.isEnabled){var ot=ha(a,tt,!0);ot.bubbles=!0;var rt=0,at=0;ot.delta=0,tt.deltaX!==void 0?(tt.deltaX!==0&&(rt=0Math.abs(tt.deltaY)?-rt:-at):tt.wheelDeltaX!==void 0?(tt.wheelDeltaX!==0&&(rt=0Math.abs(tt.wheelDeltaY)?-rt:-at):tt.wheelDelta!==void 0&&tt.wheelDelta!==0&&(ot.delta=0ot||Math.abs(at.y-tt.screenY)>ot)?a.yq++:a.yq=1,rt.clickCount=a.yq,a.tw=tt.timeStamp,a.uw.sg(tt.screenX,tt.screenY),a.doMouseDown(),tt.button===1?tt.preventDefault():Wa(rt,tt)}},a.dk=function(tt){if(a.isEnabled){a.Vk=!0;var ot=a.oj;if(ot[0]===null||ot[0].pointerId!==tt.pointerId&&ot[0].pointerType===tt.pointerType){if(ot[1]!==null&&ot[1].pointerId===tt.pointerId){ot[1]=tt;return}if(ot[0]===null)ot[0]=tt;else return}else ot[0]=tt;if(ot[0].pointerId===tt.pointerId){ot=pf(a,tt,!1,!1,!1,ot[1]!==null);var rt=Ze.document.elementFromPoint(tt.clientX,tt.clientY)||null;rt!==null&&rt.shadowRoot!==void 0&&rt.shadowRoot!==null&&(rt=rt.shadowRoot.elementFromPoint(tt.clientX,tt.clientY));var at=a,ut=tt;rt&&rt.H&&(ut=tt,at=rt.H),ot.targetDiagram=at,cd(a,ut,ot),ot.targetObject=null,a.doMouseMove(),Wa(ot,tt)}}},a.fk=function(tt){if(a.isEnabled){a.Vk=!0;var ot=tt.pointerType==="touch"||tt.pointerType==="pen",rt=a.Yt;if(ot&&a.qu)delete rt[tt.pointerId],tt.preventDefault();else if(rt=a.oj,rt[0]===null||rt[0].pointerId!==tt.pointerId&&rt[0].pointerType===tt.pointerType)rt[1]!==null&&rt[1].pointerId===tt.pointerId&&(rt[1]=null);else{rt[0]=null,rt=pf(a,tt,!1,!0,!0,!1);var at=Ze.document.elementFromPoint(tt.clientX,tt.clientY)||null;at!==null&&at.shadowRoot!==void 0&&at.shadowRoot!==null&&(at=at.shadowRoot.elementFromPoint(tt.clientX,tt.clientY)),at!==null&&at.H instanceof oe&&at.H!==a&&cd(at.H,tt,rt),at===null&&(at=tt.target),cd(a,tt,rt),rt.clickCount=a.yq,rt.targetDiagram=ff(tt,at),rt.targetObject=null,a.doMouseUp(),Wa(rt,tt),ot&&(a.wq=!1)}}},a.ek=function(tt){if(a.isEnabled){a.Vk=!1;var ot=a.Yt;ot[tt.pointerId]&&delete ot[tt.pointerId],ot=a.oj,ot[0]!==null&&ot[0].pointerId===tt.pointerId&&(ot[0]=null),ot[1]!==null&&ot[1].pointerId===tt.pointerId&&(ot[1]=null),tt.pointerType!=="touch"&&tt.pointerType!=="pen"&&(tt=a.currentTool,tt.cancelWaitAfter(),tt.standardMouseOver())}},a.ck=function(tt){var ot=a.oj;ot[0]!==null&&ot[0].pointerId===tt.pointerId?(ot[0]=null,a.wq=!1):ot[1]!==null&&ot[1].pointerId===tt.pointerId&&(ot[1]=null)},a.Vp=E.Z["d"+hg[1]+hg[2]+"wI"+xd.slice(1,5)]["b"+Bx.slice(1,y)](E.Z,ug,y,y),E.Vc(!0),tv(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}oe.prototype.addEventListener=function(a,y,x,E){a.addEventListener(y,x,{capture:E,passive:!1})},oe.prototype.removeEventListener=function(a,y,x,E){a.removeEventListener(y,x,{capture:E})};function tv(a){var y=a.ta.Oa;y instanceof HTMLCanvasElement||(y=a.div),a.addEventListener(y,"pointerdown",a.ui,!1),a.addEventListener(y,"pointermove",a.dk,!1),a.addEventListener(y,"pointerup",a.fk,!1),a.addEventListener(y,"pointerout",a.ek,!1),a.addEventListener(y,"pointercancel",a.ck,!1),a.addEventListener(y,"pointerenter",a.bz,!1),a.addEventListener(y,"pointerleave",a.cz,!1),a.addEventListener(y,"wheel",a.$j,!1),a.addEventListener(y,"keydown",a.Qz,!1),a.addEventListener(y,"keyup",a.Rz,!1),a.addEventListener(y,"blur",a.Ny,!1),a.addEventListener(y,"focus",a.Oy,!1),a.addEventListener(y,"selectstart",function(x){return x.preventDefault(),!1},!1),a.addEventListener(y,"contextmenu",function(x){return x.preventDefault(),!1},!1),a.addEventListener(Ze,"resize",a.Ov,!1)}function xs(a){30St&&(this.position=Dt.h(-(y.scrollWidth-this.Aa)+Tt-this.Aa/b+ut,this.position.y))),a.vy&&this.allowVerticalScroll&&(otMt&&(this.position=Dt.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/b+z))),jt.free(Dt),this.vd=!0,this.Ee=this.qr=!1,E=this.documentBounds,b=this.viewportBounds,ut=E.right,St=b.right,z=E.bottom,Mt=b.bottom,tt=E.x,ct=b.x,ot=E.y,E=b.y,mt>=rt&&tt>=ct&&ut<=St&&(x.style.width="1px"),yt>=at&&ot>=E&&z<=Mt&&(x.style.height="1px"))}},oe.prototype.computeBounds=function(a){return a===void 0&&(a=new de),Br(this),gf(this,a)};function gf(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,E=a.Wa.s,b=E.length,z=0;zx&&(y=x),ya.maxScale&&(y=a.maxScale),y):y===Fh?(y=rt>ot?(tt-a.Db)/E:(z-a.Db)/b,y>x&&(y=x),ya.maxScale&&(y=a.maxScale),y):a.scale}oe.prototype.zoomToFit=function(){var a=this.sj;this.sj=Hu,this.scale=gd(this,$s),a!==Hu&&(Aa(this,!1),cf(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},wt=oe.prototype,wt.BA=function(a,y){y===void 0&&(y=$s);var x=a.width,E=a.height;if(!(x===0||E===0||isNaN(x)&&isNaN(E))){var b=1;if(y===$s||y===Fh)if(isNaN(x))b=this.viewportBounds.height*this.scale/E;else if(isNaN(E))b=this.viewportBounds.width*this.scale/x;else{b=this.Aa;var z=this.ya;b=y===Fh?z/E>b/x?(z-(this.Be?this.Db:0))/E:(b-(this.gf?this.Db:0))/x:Math.min(z/E,b/x)}this.scale=b,this.position=new jt(a.x,a.y)}},wt.Jy=function(a,y){this.Va();var x=this.documentBounds,E=this.viewportBounds;this.position=new jt(x.x+(a.x*x.width+a.offsetX)-(y.x*E.width-y.offsetX),x.y+(a.y*x.height+a.offsetY)-(y.y*E.height-y.offsetY))},wt.zz=function(a){if(a instanceof Qt){this.eq=a;var y=jt.alloc();this.fq=this.op(a.ga(yr,y)),jt.free(y)}else this.eq=null,this.fq=fl};function cf(a,y,x,E,b,z){var tt=jt.allocAt(a.pa.x,a.pa.y),ot=tt.x,rt=tt.y;if(a.eq!==null){var at=jt.alloc();at=a.eq.ga(yr,at),ot=at.x-a.fq.x/a.scale,rt=at.y-a.fq.y/a.scale,b=$o,jt.free(at)}(z||a.scrollMode===Hu)&&(b.sb()&&(x>y.width&&(ot=y.x+(b.x*y.width+b.offsetX)-(b.x*x-b.offsetX)),E>y.height&&(rt=y.y+(b.y*y.height+b.offsetY)-(b.y*E-b.offsetY))),b=a.rj,z=x-y.width,xy.left?ot=y.left:oty.top?rt=y.top:rty;y++){var x=a.De.iterator;if(x===null||a.De.count===0)break;a.De=new Ie,a.Nv(x,a.De)}a.nodes.each(function(E){E instanceof Fn&&E.U&65536&&(E.U=E.U^65536)})}}wt.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof Fn||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof Fn&&x.isVisible()&&rg(this,x);for(a.reset();a.next();)x=a.value,x instanceof Ne&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x));for(a.reset();a.next();)x=a.value,x instanceof ri&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function rg(a,y){for(var x=$n(),E=$n(),b=y.memberParts;b.next();){var z=b.value;z.isVisible()&&(z instanceof Fn?(ea(z)||ls(z)||bh(z))&&rg(a,z):z instanceof Ne?z.fromNode===y||z.toNode===y?E.push(z):x.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=x.length,b=0;bXt&&(Tt=We.left,zt=We.right),Dt.height>ie&&(Ht=We.top,Ut=We.bottom)):(Tt=We.left,zt=We.right,Ht=We.top,Ut=We.bottom);var qe=Dt.width+Tt+zt,Qe=Dt.height+Ht+Ut;We=a.scale;var Ae=qe>rt/We,Se=Qe>at/We;if(!(z||a.gf||a.Be||Ae||Se))return!0;Tt=Dt.x-Tt,rt=ut.x,zt=Dt.right+zt,at=ut.right+tt,Ht=Dt.y-Ht;var Tn=ut.y;Dt=Dt.bottom+Ut,ut=ut.bottom+ot;var Cn="1px";if(Ut="1px",a.scrollMode===Hu&&(Ae||Se)&&(Ae&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Ae=1,Tt+1at+1&&(Ae=Math.max((zt-at)*We+a.Aa,Ae)),Xt+tt+1ut+1&&(Ae=Math.max((Dt-ut)*We+a.ya,Ae)),ie+ot+1at+1&&(tt=Math.max((zt-at)*We+a.Aa,tt)),Xt+1ut+1&&(ot=Math.max((Dt-ut)*We+tt,ot)),ie+1at+1&&(y=a.position.x*We)),a.tn)switch(a.bu){case"negative":y=-(St.scrollWidth-y-St.clientWidth);break;case"reverse":y=St.scrollWidth-y-St.clientWidth}return St.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(ie+1ut+1&&(St.scrollTop=a.position.y*We)),rt=a.Aa,at=a.ya,St.style.width=rt+(a.gf?a.Db:0)+"px",St.style.height=at+(a.Be?a.Db:0)+"px",x!==rt||E!==at||a.animationManager.zb?(x=de.allocAt(b,ct,mt,yt),a.onViewportBoundsChanged(x,a.viewportBounds,We,z),de.free(x),!1):!0}wt=oe.prototype,wt.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&ee("Cannot add part "+a.toString()+" to "+this.toString()+". It is already a part of "+y.toString()),y=this.Qj(a.layerName),y===null&&(y=this.Qj("")),y===null&&ee('Cannot add a Part when unable find a Layer named "'+a.layerName+'" and there is no default Layer'),a.layer!==y)){var x=y.oi(99999999,a,a.diagram===this);0<=x&&this.cb(Co,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},wt.oi=function(a){this.partManager.oi(a);var y=this;Ld(a,function(x){vd(y,x)}),(a instanceof ri||a instanceof Fn&&a.placeholder!==null)&&a.v(),a.data!==null&&Ld(a,function(x){ay(y.partManager,x)}),ls(a)!==!0&&bh(a)!==!0||this.De.add(a),j1(a,!0,this),R1(a)?(a.actualBounds.w()&&this.N(Ad(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Ad(a,a.actualBounds)),this.$b()},wt.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Ld(a,function(x){ly(y.partManager,x,y)}),this.De.remove(a),R1(a)?(a.actualBounds.w()&&this.N(Ad(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Ad(a,a.actualBounds)),this.$b()},wt.remove=function(a){Sf(this,a,!0)};function Sf(a,y,x){var E=y.layer;E!==null&&E.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),x&&y.Lj(),x=E.pc(-1,y,!1),0<=x&&a.cb(Uo,"parts",E,y,null,x,null),a=y.layerChanged,a!==null&&a(y,E,null))}wt.Is=function(a,y){if(y===void 0&&(y=!1),Je(a))for(var x=a.length,E=0;EE&&this.Ya(),this},wt.Cy=function(a,y){Pf(this,a,y),a.Xe(this);var x=this.Wa,E=x.indexOf(a);0<=E&&(x.remove(a),this.cc!==null&&this.cb(Uo,"layers",this,a,null,E,null));var b=x.count,z;for(z=0;zE&&this.Ya(),this},wt.kA=function(a){if(a.diagram!==this&&ee("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,x=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var E=y.value,b=E.layerName;b!==a.name?E.layerName=b:E.layerName=""}this.cc!==null&&this.cb(Uo,"layers",this,a,null,x,null),this.N(),this.Ya()}}},wt.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},wt.Yw=function(a){return this.pf===null&&(this.pf=new ze),this.pf.add(a),this.model.Pe(a),this},wt.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},wt.Pe=function(a){return this.zg===null&&(this.zg=new ze),this.zg.add(a),this},wt.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},wt.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==Hs&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,E=0;Ect.Pa.indexOf(yt)&&ct.oi(mt,yt,St):(yt.isSelected=!1,yt.isHighlighted=!1,yt.Wb(),ct.pc(St?mt:-1,yt,St)))}else ct instanceof oe?typeof mt=="number"&&yt instanceof gr&&(y?(yt.Xe(this),this.Wa.Gb(mt,yt)):this.Wa.mb(mt)):ee("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else E!==Hs&&ee("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},oe.prototype.Ea=function(a){return this.undoManager.Ea(a)},oe.prototype.eb=function(a){return this.undoManager.eb(a)},oe.prototype.Kf=function(){return this.undoManager.Kf()},oe.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var E=!1;try{a(this),E=!0}finally{E?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},oe.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},oe.prototype.rp=function(){this.partManager.rp()};function wf(a,y,x){var E=a.animationManager;if(a.vb||a.ld)a.Ca=x,wl(a),a.N(),a.Ee=!0,E.zb&&(ru(E)||E.ce.add(E.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,wl(a);else{a.vb=!0;var b=a.viewportBounds.copy(),z=a.Aa,tt=a.ya,ot=a.zoomPoint.x,rt=a.zoomPoint.y,at=a.contentAlignment;isNaN(ot)&&(at.$c()?at.Hf(ml)?ot=0:at.Hf(Ns)&&(ot=z-1):ot=at.sb()?at.x*(z-1):z/2),isNaN(rt)&&(at.$c()?at.Hf(pl)?rt=0:at.Hf(Ma)&&(rt=tt-1):rt=at.sb()?at.y*(tt-1):tt/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(x=a.scaleComputation(a,x)),xa.maxScale&&(x=a.maxScale),z=jt.allocAt(a.pa.x+ot/y-ot/x,a.pa.y+rt/y-rt/x),a.position=z,jt.free(z),a.Ca=x,wl(a),a.vb=!1,a.onViewportBoundsChanged(b,a.viewportBounds,y,!1),Aa(a,!1),E.zb&&(ru(E)||E.ce.add(E.H,"scale",y,a.Ca))}}oe.prototype.onViewportBoundsChanged=function(a,y,x,E){if(!a.D(y)){E===void 0&&(E=!1),E||(this.Ee=!0),this.vd=!0;var b=this.layout;b===null||!b.isViewportSized||this.autoScale!==Xr||a.width===y.width&&a.height===y.height||b.C(),b=this.currentTool,this.Vk===!0&&b instanceof Vi&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Ip(b,this)),this.vb||this.invalidateViewport(a,y),Pl(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.canvasSize.width=Math.round(a.width*x),this.fc.canvasSize.height=Math.round(a.height*x),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=E,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function Pl(a,y){var x=a.fe;if(x!==null&&x.visible){for(var E=Xe.alloc(),b=1,z=1,tt=x.O.s,ot=tt.length,rt=0;rtut||(pv(at.figure)?z=z*ut/Jt.vx(z,ut):b=b*ut/Jt.vx(b,ut))}if(tt=x.gridCellSize,E.h(z*tt.width,b*tt.height),y!==void 0)b=y.width,z=y.height,a=y.x,tt=y.y;else{if(y=de.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){de.free(y);return}b=y.width,z=y.height,a=y.x,tt=y.y,de.free(y)}x.width=b+2*E.width,x.height=z+2*E.height,y=jt.alloc(),Jt.No(a,tt,0,0,E.width,E.height,y),y.offset(-E.width,-E.height),Xe.free(E),x.part.location=y,jt.free(y)}}oe.prototype.clearSelection=function(a){a===void 0&&(a=!1);var y=this.selection;if(y.count!==0){a||this.R("ChangingSelection",y);for(var x=y.Fa(),E=x.length,b=0;b=E&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||Dl(z,"Layout")),a.xh=!1;for(var tt=a.ai.iterator;tt.next();)Ef(a,tt.value,y,E);b.isValidLayout||(!y||b.isRealtime||b.isRealtime===null||E===0?(b.doLayout(a),Br(a),b.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,E===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||E!==0&&E!==1||Xg(z),a.aa=x}}}function Ef(a,y,x,E){if(y!==null){for(var b=y.gl.iterator;b.next();)Ef(a,b.value,x,E);b=y.layout,b===null||b.isValidLayout||(!x||b.isRealtime||E===0?(y.rh=!y.location.w(),b.doLayout(y),y.C(32),rg(a,y),b.isValidLayout=!0):a.xh=!0)}}wt.yz=function(){for(var a=new ze,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function ev(a){function y(b){var z=b.toLowerCase(),tt=new ze;x.add(b,tt),x.add(z,tt),E.add(b,b),E.add(z,b)}var x=new En,E=new En;y("InitialAnimationStarting"),y("AnimationStarting"),y("AnimationFinished"),y("BackgroundSingleClicked"),y("BackgroundDoubleClicked"),y("BackgroundContextClicked"),y("ClipboardChanged"),y("ClipboardPasted"),y("DocumentBoundsChanged"),y("ExternalObjectsDropped"),y("GainedFocus"),y("InitialLayoutCompleted"),y("LayoutCompleted"),y("LinkDrawn"),y("LinkRelinked"),y("LinkReshaped"),y("LostFocus"),y("Modified"),y("ObjectSingleClicked"),y("ObjectDoubleClicked"),y("ObjectContextClicked"),y("PartCreated"),y("PartResized"),y("PartRotated"),y("SelectionMoved"),y("SelectionCopied"),y("SelectionDeleting"),y("SelectionDeleted"),y("SelectionGrouped"),y("SelectionUngrouped"),y("ChangingSelection"),y("ChangedSelection"),y("SubGraphCollapsed"),y("SubGraphExpanded"),y("TextEdited"),y("TreeCollapsed"),y("TreeExpanded"),y("ViewportBoundsChanged"),y("InvalidateDraw"),a.iw=x,a.hw=E}function em(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function oc(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;ee("Unknown DiagramEvent name: "+y)}wt.Bj=function(a,y){return a=oc(this,a),a!==null&&a.add(y),this},wt.am=function(a,y){a=oc(this,a),a!==null&&a.remove(y)},wt.R=function(a,y,x){var E=oc(this,a),b=new Lu;if(b.diagram=this,a=em(this,a),a!==null&&(b.name=a),y!==void 0&&(b.subject=y),x!==void 0&&(b.parameter=x),y=E.length,y===1)E.M(0)(b);else if(y!==0)for(E=E.Fa(),x=0;x=x.top&&0>=x.left&&0>=x.right&&0>=x.bottom)return y;var E=this.viewportBounds,b=this.scale;E=de.allocAt(0,0,E.width*b,E.height*b);var z=jt.allocAt(0,0);if(a.x>=E.x&&a.xE.x+E.width-x.right&&this.allowHorizontalScroll&&(tt=Math.max(this.scrollHorizontalLineChange,1),tt|=0,z.x+=tt,a.x>E.x+E.width-x.right/2&&(z.x+=tt),a.x>E.x+E.width-x.right/4&&(z.x+=4*tt));return a.y>=E.y&&a.yE.y+E.height-x.bottom&&this.allowVerticalScroll&&(tt=Math.max(this.scrollVerticalLineChange,1),tt|=0,z.y+=tt,a.y>E.y+E.height-x.bottom/2&&(z.y+=tt),a.y>E.y+E.height-x.bottom/4&&(z.y+=4*tt)),z.Xa(Dr)||(y=new jt(y.x+z.x/b,y.y+z.y/b)),de.free(E),jt.free(z),y},wt=oe.prototype,wt.Cs=function(){return null},wt.av=function(){return null},wt.bs=function(a,y){this.pj.add(a,y)},wt.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Fn&&(y.$p=null)})};function sg(a,y,x){function E(){var ut=+new Date;for(z=!0,tt.reset();tt.next();)if(!tt.value[0].al){z=!1;break}z||ut-at>rt?y(x,b,ot):Ze.requestAnimationFrame(E)}for(var b=x.callback,z=!0,tt=a.Og.iterator;tt.next();)if(!tt.value[0].al){z=!1;break}if(typeof b!="function"||z)return y(x,b,a);var ot=a,rt=x.callbackTimeout||300,at=+new Date;return Ze.requestAnimationFrame(function(){E()}),null}wt.Wz=function(a){return ro?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},wt.Jx=function(a){return a===void 0&&(a={}),sg(this,this.Xz,a)},wt.Xz=function(a,y,x){var E=im(x,a,"canvas",null);if(E===null)return null;x=E.Z.canvas;var b=null;if(x!==null)switch(b=a.returnType,b===void 0?b="string":b=b.toLowerCase(),b){case xd+"data":b=E.getImageData(0,0,x.width,x.height);break;case xd:E=(a.document||document).createElement("img"),E.src=x.toDataURL(a.type,a.details),b=E;break;case"blob":return typeof y!="function"&&ee('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof x.toBlob=="function"?(x.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:b=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(b),null):b};function im(a,y,x,E){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&ee("properties argument must be an Object.");var b=y.size||null,z=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(z="NaN");var tt=y.maxSize;y.maxSize===void 0&&(tt=x==="SVG"?new Xe(1/0,1/0):new Xe(2e3,2e3));var ot=y.position||null,rt=y.parts||null,at=y.padding===void 0?1:y.padding,ut=y.background||null,ct=y.omitTemporary;ct===void 0&&(ct=!0);var mt=y.document||document,yt=y.elementFinished||null,St=y.showTemporary;St===void 0&&(St=!ct),y=y.showGrid,y===void 0&&(y=St),b!==null&&isNaN(b.width)&&isNaN(b.height)&&(b=null),typeof at=="number"?at=new jn(at):at instanceof jn||ee("MakeImage padding must be a Margin or a number."),at.left=Math.max(at.left,0),at.right=Math.max(at.right,0),at.top=Math.max(at.top,0),at.bottom=Math.max(at.bottom,0),a.ib.Vc(!0),ct=new Ta(null,mt,void 0,!0);var Mt=ct.context;if(!(b||z||rt||ot))return ct.width=a.Aa+Math.ceil(at.left+at.right),ct.height=a.ya+Math.ceil(at.top+at.bottom),x==="SVG"?E===null?null:(E.resize(ct.width,ct.height,ct.width,ct.height),E.ownerDocument=mt,E.hs=yt,$g(a,E.context,at,new Xe(ct.width,ct.height),a.Ca,a.pa,rt,ut,St,y),E.context):(a.Xm=!1,$g(a,Mt,at,new Xe(ct.width,ct.height),a.Ca,a.pa,rt,ut,St,y),a.Xm=!0,ct.context);var Dt=a.Pp,Tt=a.documentBounds.copy();if(Tt.Fv(a.yb),St)for(var zt=a.Wa.s,Ht=zt.length,Ut=0;UtDt?(z=Dt,b=Tt.width,Tt=Tt.height):(b=tt.width,Tt=tt.height)):(b=Tt.width*z,Tt=Tt.height*z):(z=Dt,b=Tt.width,Tt=Tt.height),at!==null?(b+=ot,Tt+=Ht):at=new jn(0),tt!==null&&(Dt=tt.width,tt=tt.height,isNaN(Dt)&&(Dt=2e3),isNaN(tt)&&(tt=2e3),isFinite(Dt)&&(b=Math.min(b,Dt)),isFinite(tt)&&(Tt=Math.min(Tt,tt))),ct.width=Math.ceil(b),ct.height=Math.ceil(Tt),x==="SVG"?E===null?null:(E.resize(ct.width,ct.height,ct.width,ct.height),E.ownerDocument=mt,E.hs=yt,$g(a,E.context,at,new Xe(Math.ceil(b),Math.ceil(Tt)),z,zt,rt,ut,St,y),E.context):(a.Xm=!1,$g(a,Mt,at,new Xe(Math.ceil(b),Math.ceil(Tt)),z,zt,rt,ut,St,y),a.Xm=!0,ct.context)}he.Object.defineProperties(oe.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof ft||(a===""&&(a="default"),a=a.toLowerCase(),a!==this.nl&&(this.nl=a,a==="default"||a==="canvas"?(a=this.pj.get("svg"),a!==null&&a.Oa.remove(),this.ta&&(this.ib=this.ta.context)):a==="svg"?(this.pj.contains("svg")?a=this.pj.get("svg"):(a=new Cl(this,Ze.document),this.bs("svg",a)),this.div!==null&&this.div.appendChild(a.Oa),this.ib=a.context,this.ta&&(this.ta.context.setTransform(this.Mb,0,0,this.Mb,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya))):a!=="debug"||this.pj.contains("SVG")||(a=new Cl(this,Ze.document),this.bs("SVG",a),a.Oa.style.backgroundColor="whitesmoke",this.div!==null&&this.div.after(a.Oa)),this.hk()))}},div:{get:function(){return this.Ka},set:function(a){if(this.Ka!==a){var y=this.Ka;y!==null?(y.H=void 0,y.goDiagram=void 0,y.go=void 0,y.innerHTML="",this.ta!==null&&(y=this.ta.Oa,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.ta.mx()),this.ol&&(this.ol.disconnect(),this.ol=null),y=this.toolManager,y!==null&&(y.mouseDownTools.each(function(x){x.cancelWaitAfter()}),y.mouseMoveTools.each(function(x){x.cancelWaitAfter()}),y.mouseUpTools.each(function(x){x.cancelWaitAfter()})),y.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(Ze,"resize",this.Ov,!1),this.removeEventListener(Ze,"wheel",this.$j,!0),Il===this&&(Il=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),hf(this,a),this.hk())}}},$w:{get:function(){return this.Sq}},pi:{get:function(){return this.hf}},draggedLink:{get:function(){return this.nt},set:function(a){this.nt!==a&&(this.nt=a,a!==null&&(this.Vt=a.fromPort,this.Wt=a.toPort))}},Mx:{get:function(){return this.Vt},set:function(a){this.Vt=a}},Nx:{get:function(){return this.Wt},set:function(a){this.Wt=a}},animationManager:{get:function(){return this.Yd}},undoManager:{get:function(){return this.cc.undoManager}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a,this.cc.skipsUndoManager=a}},delaysLayout:{get:function(){return this.lt},set:function(a){this.lt=a}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1a&&_n(a,">= 0",oe,"scrollHorizontalLineChange"),this.iu=a,this.g("scrollHorizontalLineChange",y,a))}},scrollVerticalLineChange:{get:function(){return this.mu},set:function(a){var y=this.mu;y!==a&&(0>a&&_n(a,">= 0",oe,"scrollVerticalLineChange"),this.mu=a,this.g("scrollVerticalLineChange",y,a))}},lastInput:{get:function(){return this.cj},set:function(a){this.cj=a}},previousInput:{get:function(){return this.Qg},set:function(a){this.Qg=a}},firstInput:{get:function(){return this.bq},set:function(a){this.bq=a}},currentCursor:{get:function(){return this.it},set:function(a){if(a===""&&(a=this.Op),this.it!==a){var y=this.ta,x=this.Ka;if(y!==null&&x!==null){this.it=a;var E=y.style.cursor;y.style.cursor=a,x.style.cursor=a,y.style.cursor===E&&(y.style.cursor="-webkit-"+a,x.style.cursor="-webkit-"+a,y.style.cursor===E&&(y.style.cursor="-moz-"+a,x.style.cursor="-moz-"+a,y.style.cursor===E&&(y.style.cursor=a,x.style.cursor=a)))}}}},defaultCursor:{get:function(){return this.Op},set:function(a){a===""&&(a="auto");var y=this.Op;y!==a&&(this.Op=a,this.g("defaultCursor",y,a))}},click:{get:function(){return this.zh},set:function(a){var y=this.zh;y!==a&&(this.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.Fh},set:function(a){var y=this.Fh;y!==a&&(this.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.Bh},set:function(a){var y=this.Bh;y!==a&&(this.Bh=a,this.g("contextClick",y,a))}},mouseOver:{get:function(){return this.Qh},set:function(a){var y=this.Qh;y!==a&&(this.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.Oh},set:function(a){var y=this.Oh;y!==a&&(this.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.Nh},set:function(a){var y=this.Nh;y!==a&&(this.Nh=a,this.g("mouseHold",y,a))}},mouseDragOver:{get:function(){return this.Qt},set:function(a){var y=this.Qt;y!==a&&(this.Qt=a,this.g("mouseDragOver",y,a))}},mouseDrop:{get:function(){return this.Lh},set:function(a){var y=this.Lh;y!==a&&(this.Lh=a,this.g("mouseDrop",y,a))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(a){var y=this.xt;y!==a&&(this.xt=a,this.g("handlesDragDropForTopLevelParts",y,a))}},mouseEnter:{get:function(){return this.Mh},set:function(a){var y=this.Mh;y!==a&&(this.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.Ph},set:function(a){var y=this.Ph;y!==a&&(this.Ph=a,this.g("mouseLeave",y,a))}},toolTip:{get:function(){return this.$h},set:function(a){var y=this.$h;y!==a&&(this.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.Ch},set:function(a){var y=this.Ch;y!==a&&(this.Ch=a,this.g("contextMenu",y,a))}},commandHandler:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a,a.Xe(this))}},toolManager:{get:function(){return this.te},set:function(a){this.te!==a&&(this.te=a,a.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(a){var y=this.ob;y!==a&&(this.ob=a,a.diagram=this,this.currentTool===y&&(this.currentTool=a))}},currentTool:{get:function(){return this.hb},set:function(a){var y=this.hb;y&&(y.isActive&&y.doDeactivate(),y.cancelWaitAfter(),y.doStop()),a===null&&(a=this.defaultTool),a!==null&&(this.hb=a,a.diagram=this,a.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(a){var y=this.Nt;if(y!==a)if(0<=a&&!isNaN(a)){if(this.Nt=a,this.g("maxSelectionCount",y,a),!this.undoManager.isUndoingRedoing&&(a=this.selection.count-a,0= 0",oe,"maxSelectionCount")}},nodeSelectionAdornmentTemplate:{get:function(){return this.St},set:function(a){var y=this.St;y!==a&&(this.St=a,this.g("nodeSelectionAdornmentTemplate",y,a))}},groupSelectionAdornmentTemplate:{get:function(){return this.wt},set:function(a){var y=this.wt;y!==a&&(this.wt=a,this.g("groupSelectionAdornmentTemplate",y,a))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kt},set:function(a){var y=this.Kt;y!==a&&(this.Kt=a,this.g("linkSelectionAdornmentTemplate",y,a))}},highlighteds:{get:function(){return this.nw}},isModified:{get:function(){var a=this.undoManager;return a.isEnabled?a.currentTransaction!==null?!0:this.rn&&this.Ce!==a.historyIndex:this.rn},set:function(a){if(this.rn!==a){this.rn=a;var y=this.undoManager;!a&&y.isEnabled&&(this.Ce=y.historyIndex),a||$p(this)}}},model:{get:function(){return this.cc},set:function(a){var y=this.cc;if(y!==a){this.currentTool.doCancel(),y&&y.undoManager!==a.undoManager&&y.undoManager.isInTransaction&&ee("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=uf(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var E=this.vb;this.vb=!0,Dl(this.animationManager,"Model"),y&&(this.pf!==null&&this.pf.each(function(z){return y.ik(z)}),y.ik(this.Oc)),this.cc=a,this.partManager=Cf(this.cc.type);for(var b=0;bthis.scale&&(this.scale=a)):_n(a,"> 0",oe,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(a){var y=this.Mt;y!==a&&(0 0",oe,"maxScale"))}},zoomPoint:{get:function(){return this.zu},set:function(a){this.zu.D(a)||(this.zu=a=a.J())}},contentAlignment:{get:function(){return this.zk},set:function(a){var y=this.zk;y.D(a)||(this.zk=a=a.J(),this.g("contentAlignment",y,a),Aa(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(a){var y=this.pq;y.D(a)||(this.pq=a=a.J(),this.g("initialContentAlignment",y,a))}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new jn(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.Ya(),this.g("padding",y,a))}},partManager:{get:function(){return this.Pc},set:function(a){var y=this.Pc;y!==a&&(a.diagram!==null&&ee("Cannot share PartManagers between Diagrams: "+a.toString()),y&&y.Xe(null),this.Pc=a,a.Xe(this))}},nodes:{get:function(){return this.partManager.nodes.iterator}},links:{get:function(){return this.partManager.links.iterator}},parts:{get:function(){return this.partManager.parts.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;y!==a&&(this.Sc=a,a.diagram=this,a.group=null,this.xh=!0,this.g("layout",y,a),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(a){var y=this.Ht;if(y!==a&&(this.Ht=a,this.g("isTreePathToChildren",y,a),!this.undoManager.isUndoingRedoing))for(a=this.nodes;a.next();)Kf(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==Wu&&a!==jo&&a!==uc&&ee("Unknown Diagram.treeCollapsePolicy: "+a),this.uu=a,this.g("treeCollapsePolicy",y,a))}},Ue:{get:function(){return this.pw},set:function(a){this.pw=a}},avoidanceCellSize:{get:function(){return this.aw},set:function(a){this.Xh=null,this.aw=new Xe(Math.max(1,a.width),Math.max(1,a.height))}},avoidanceLimit:{get:function(){return this.bw},set:function(a){this.bw=Math.max(1,a)}},autoScrollInterval:{get:function(){return this.vp},set:function(a){var y=this.vp;y!==a&&(this.vp=a,this.g("autoScrollInterval",y,a))}},autoScrollRegion:{get:function(){return this.xp},set:function(a){typeof a=="number"&&(a=new jn(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),he.Object.defineProperties(oe,{licenseKey:{get:function(){return Df.jc()},set:function(a){Df.add(a.replace(/\s/g,""))}},version:{get:function(){return Sd}}}),oe.prototype.makeImageData=oe.prototype.Jx,oe.prototype.makeImage=oe.prototype.Wz,oe.prototype.cacheGroupExternalLinks=oe.prototype.Fu,oe.prototype.addRenderer=oe.prototype.bs,oe.prototype.makeSVG=oe.prototype.av,oe.prototype.makeSvg=oe.prototype.Cs,oe.prototype.stopAutoScroll=oe.prototype.ug,oe.prototype.doAutoScroll=oe.prototype.gs,oe.prototype.isUnoccupied=oe.prototype.Yj,oe.prototype.raiseDiagramEvent=oe.prototype.R,oe.prototype.removeDiagramListener=oe.prototype.am,oe.prototype.addDiagramListener=oe.prototype.Bj,oe.prototype.findTreeRoots=oe.prototype.yz,oe.prototype.layoutDiagram=oe.prototype.Uz,oe.prototype.findTopLevelGroups=oe.prototype.qz,oe.prototype.findTopLevelNodesAndLinks=oe.prototype.rz,oe.prototype.ensureBounds=oe.prototype.Va,oe.prototype.findLinksByExample=oe.prototype.ls,oe.prototype.findNodesByExample=oe.prototype.ms,oe.prototype.findLinkForData=oe.prototype.Kc,oe.prototype.findNodeForData=oe.prototype.ii,oe.prototype.findPartForData=oe.prototype.Lc,oe.prototype.findLinkForKey=oe.prototype.findLinkForKey,oe.prototype.findNodeForKey=oe.prototype.Vb,oe.prototype.findPartForKey=oe.prototype.findPartForKey,oe.prototype.rebuildParts=oe.prototype.Wd,oe.prototype.transformViewToDoc=oe.prototype.Ps,oe.prototype.transformRectDocToView=oe.prototype.zA,oe.prototype.transformDocToView=oe.prototype.op,oe.prototype.centerRect=oe.prototype.es,oe.prototype.scrollToRect=oe.prototype.tv,oe.prototype.scroll=oe.prototype.scroll,oe.prototype.highlightCollection=oe.prototype.Jz,oe.prototype.highlight=oe.prototype.Iz,oe.prototype.selectCollection=oe.prototype.rA,oe.prototype.select=oe.prototype.select,oe.prototype.updateAllRelationshipsFromData=oe.prototype.rp,oe.prototype.updateAllTargetBindings=oe.prototype.updateAllTargetBindings,oe.prototype.commit=oe.prototype.commit,oe.prototype.rollbackTransaction=oe.prototype.Kf,oe.prototype.commitTransaction=oe.prototype.eb,oe.prototype.startTransaction=oe.prototype.Ea,oe.prototype.raiseChanged=oe.prototype.g,oe.prototype.raiseChangedEvent=oe.prototype.cb,oe.prototype.removeChangedListener=oe.prototype.ik,oe.prototype.addChangedListener=oe.prototype.Pe,oe.prototype.removeModelChangedListener=oe.prototype.mA,oe.prototype.addModelChangedListener=oe.prototype.Yw,oe.prototype.findLayer=oe.prototype.Qj,oe.prototype.removeLayer=oe.prototype.kA,oe.prototype.addLayerAfter=oe.prototype.Cy,oe.prototype.addLayerBefore=oe.prototype.Ww,oe.prototype.addLayer=oe.prototype.Al,oe.prototype.moveParts=oe.prototype.moveParts,oe.prototype.copyParts=oe.prototype.Kj,oe.prototype.removeParts=oe.prototype.Is,oe.prototype.remove=oe.prototype.remove,oe.prototype.add=oe.prototype.add,oe.prototype.clearDelayedGeometries=oe.prototype.bx,oe.prototype.setProperties=oe.prototype.nm,oe.prototype.attach=oe.prototype.Du,oe.prototype.set=oe.prototype.set,oe.prototype.resetInputOptions=oe.prototype.Sx,oe.prototype.setInputOption=oe.prototype.sA,oe.prototype.getInputOption=oe.prototype.Ql,oe.prototype.resetRenderingHints=oe.prototype.Tx,oe.prototype.setRenderingHint=oe.prototype.Xx,oe.prototype.getRenderingHint=oe.prototype.Gf,oe.prototype.maybeUpdate=oe.prototype.bd,oe.prototype.requestUpdate=oe.prototype.$b,oe.prototype.delayInitialization=oe.prototype.Xy,oe.prototype.isUpdateRequested=oe.prototype.Pz,oe.prototype.invalidateDocumentBounds=oe.prototype.Ya,oe.prototype.findObjectsNear=oe.prototype.og,oe.prototype.findPartsNear=oe.prototype.mz,oe.prototype.findObjectsIn=oe.prototype.Cf,oe.prototype.findPartsIn=oe.prototype.ux,oe.prototype.findObjectsAt=oe.prototype.ji,oe.prototype.findPartsAt=oe.prototype.lz,oe.prototype.findObjectAt=oe.prototype.ic,oe.prototype.findPartAt=oe.prototype.Ol,oe.prototype.focusObject=oe.prototype.zz,oe.prototype.alignDocument=oe.prototype.Jy,oe.prototype.zoomToRect=oe.prototype.BA,oe.prototype.zoomToFit=oe.prototype.zoomToFit,oe.prototype.diagramScroll=oe.prototype.kx,oe.prototype.focus=oe.prototype.focus;var lc=new En,om=null,ro=Ze.document!==void 0,yd=null,Th="",Xr=new Me(oe,"None",0),$s=new Me(oe,"Uniform",1),Fh=new Me(oe,"UniformToFill",2),ag=new Me(oe,"CycleAll",10),Nf=new Me(oe,"CycleNotDirected",11),Tf=new Me(oe,"CycleNotDirectedFast",12),Ff=new Me(oe,"CycleNotUndirected",13),Bf=new Me(oe,"CycleDestinationTree",14),bf=new Me(oe,"CycleSourceTree",15),Hu=new Me(oe,"DocumentScroll",1),lg=new Me(oe,"InfiniteScroll",2),Wu=new Me(oe,"TreeParentCollapsed",21),jo=new Me(oe,"AllParentsCollapsed",22),uc=new Me(oe,"AnyParentsCollapsed",23),Df=new ze,Sd="2.3.10",xd="image",ug=null,rm=!1;function Gr(){if(ro){var a=Ze.document.createElement("canvas"),y=a.getContext("2d"),x=Re("7ca11abfd022028846");y[x]=Re("398c3597c01238");for(var E=["5da73c80a36455d7038e4972187c3cae51fd22",An.Dx+"4ae6247590da4bb21c324ba3a84e385776",Rn.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Jt.za],b=1;5>b;b++)y[Re("7ca11abfd7330390")](Re(E[b-1]),10,15*b);for(y[x]=Re("39f046ebb36e4b"),x=1;5>x;x++)y[Re("7ca11abfd7330390")](Re(E[x-1]),10,15*x);(E.length!==4||E[0][0]!=="5"||E[3][0]!=="7")&&(Rn.prototype.Cd=Rn.prototype.Eu),ug=a}}oe.className="Diagram",oe.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Ze.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof oe?y.H:null},oe.inherit=function(a,y){function x(){}if(Object.getPrototypeOf(a).prototype)throw Error(`Used go.Diagram.inherit defining already defined class +`+a);x.prototype=y.prototype,a.prototype=new x,a.prototype.constructor=a},oe.useDOM=function(a){ro=a?Ze.document!==void 0:!1},oe.isUsingDOM=function(){return ro},oe.None=Xr,oe.Uniform=$s,oe.UniformToFill=Fh,oe.CycleAll=ag,oe.CycleNotDirected=Nf,oe.CycleNotDirectedFast=Tf,oe.CycleNotUndirected=Ff,oe.CycleDestinationTree=Bf,oe.CycleSourceTree=bf,oe.DocumentScroll=Hu,oe.InfiniteScroll=lg,oe.TreeParentCollapsed=Wu,oe.AllParentsCollapsed=jo,oe.AnyParentsCollapsed=uc;function sm(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Pd(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)t:{y="f";var x=Ze[Re("76a715b2f73f148a")][Re("72ba13b5")]||"";if(a.Rc=!0,ro){var E=oe[Re("76a115b6ed251eaf4692")];if(E)for(var b=Df.iterator;b.next()&&(E=b.value,E=Re(E).split(Re("39e9")),!(6>E.length));){var z=Re(E[1]).split(".");if(E[4]!=="7da71ca0")break;var tt=Re(An[Re("6cae19")]).split(".");if(z[0]>tt[0]||z[0]===tt[0]&&z[1]>=tt[1]){var ot=Ze[Re("74a900bae4370f8b51")][Re("6fbb13a1c2311e8a57")].toLowerCase();if(tt=ot[Re("73a612b6fb191d")](Re("3aad1ab6e022098b4dc4")),z=Re(E[2]),-1tt&&z!==Re("7da71ca0ad381e90")&&(tt=y[Re("73a612b6fb191d")](Re("76a715b2ef3e149757"))),0>tt&&(tt=y[Re("73a612b6fb191d")](Re("76a715b2ef3e149757"))),0>tt&&(tt=y[Re("73a612b6fb191d")](Re("2bfa41fdb3784bca12"))),0>tt&&(tt=x[Re("73a612b6fb191d")](Re("7baa19a6f76c1988428554"))),a.Rc=!(0<=tt&&ttot),!a.Rc)))break;if(z[0]==="#"){tt=Ze.document.createElement("div");for(var rt=E[0].replace(/[A-Za-z]/g,"");4>rt.length;)rt+="9";if(ot=rt,rt=rt.substr(rt.length-4),E="",E+=["gsh","gsf"][parseInt(rt.substr(0,1),10)%2],E+=["Header","Background","Display","Feedback"][parseInt(rt.substr(0,1),10)%4],tt[Re("79a417a0f0181a8946")]=E,Ze.document[Re("78a712aa")]){Ze.document[Re("78a712aa")][Re("7bb806b6ed32388c4a875b")](tt),rt=Ze.getComputedStyle(tt).getPropertyValue(Re("78a704b7e62456904c9b12701b6532a8"));var at=Ze.getComputedStyle(tt).getPropertyValue(Re("75b817b0ea2202"));if(Ze.document[Re("78a712aa")][Re("68ad1bbcf533388c4a875b")](tt),rt){if(tt=Ze[Re("77a902b0eb1b1e804a8a")],at==="0."+parseInt(ot,10)%100||rt.indexOf(parseInt(z[1]+z[2],16))!==-1&&rt.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(tt&&tt(Re("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(E="."+E,z=0;zE.updateDelay?E.N():E.o||(E.o=!0,setTimeout(function(){return E.redraw()},E.updateDelay))},x.Of=function(){E.observed!==null&&At(E)},x.autoScale=$s,x.vb=!1,y&&Object.assign(x,y),x}ye(ft,oe),ft.prototype.computePixelRatio=function(){return 1},ft.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var a=this.ta,y=this.ib;if(a!==null&&y!==null){if(pd(this),this.ql===null){var x=new Ta(null);x.width=a.width,x.height=a.height,this.ql=x}try{this.ta=this.ql,this.ib=this.ta.context,this.ib.Vc(!0),this.ib.setTransform(1,0,0,1,0,0),this.ib.clearRect(0,0,this.ta.width,this.ta.height),Pt(this)}finally{this.ta=a,this.ib=y}}}oe.prototype.redraw.call(this)},ft.prototype.gc=function(){if(this.Ka===null&&ee("No div specified"),this.ta===null&&ee("No canvas specified"),!(this.ta instanceof Cl)&&(Iv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){pd(this);var y=this.ta;a=this.ib,a.Vc(!0),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,y.width,y.height),1>this.updateDelay?Pt(this):this.ql!==null&&(a.drawImage(this.ql.Oa,0,0),y=this.Ab,y.reset(),this.scale!==1&&y.scale(this.scale),this.position.x===0&&this.position.y===0||y.translate(-this.position.x,-this.position.y),a.scale(this.Mb,this.Mb),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.yc()),y=this.Wa.s;for(var x=y.length,E=0;Ea&&(a=0),this.ia!==a&&(this.ia=a)}}}),ft.className="Overview";function It(){to.call(this),this.j=null}ye(It,to),It.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||!a.allowMove||!a.allowSelect)return!1;var y=a.observed;if(y===null)return!1;var x=a.lastInput;return!x.left||a.currentTool!==this&&(!this.isBeyondDragSize()||x.isTouchEvent&&x.timestamp-a.firstInput.timestampy.maxScale||(y.scale=a))},bt.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==Xr?!1:(a=y.scale*a,ay.maxScale?!1:y.allowZoom)},bt.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===Xr&&(a=y.scale*a,ay.maxScale||(y.scale=a))},bt.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==Xr?!1:(a=y.scale*a,ay.maxScale?!1:y.allowZoom)},bt.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;ay.maxScale||(y.scale=a)},bt.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return ay.maxScale?!1:y.allowZoom},bt.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,E=a.scale;Dl(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&E===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=ts):(this.Jt=E,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),Xg(y)},bt.prototype.canZoomToFit=function(){return this.diagram.allowZoom},bt.prototype.scrollToPart=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.Va(),a===null){try{this.cg!==null&&(this.cg.next()?a=this.cg.value:this.cg=null)}catch(rt){this.cg=null}a===null&&(0a&&(a+=360)),a},wt.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},wt.qs=function(a,y){return y===void 0&&(y=new jt),y.assign(a),this.oe.Cd(y),y},wt.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},wt.Sj=function(a,y,x,E,b){var z=this.transform,tt=1/(z.m11*z.m22-z.m12*z.m21),ot=z.m22*tt,rt=-z.m12*tt,at=-z.m21*tt,ut=z.m11*tt,ct=tt*(z.m21*z.dy-z.m22*z.dx),mt=tt*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,Jt.Ff(z.left,z.top,z.right,z.bottom,a,y,x,E,b)):(tt=a*ot+y*at+ct,a=a*rt+y*ut+mt,y=x*ot+E*at+ct,x=x*rt+E*ut+mt,b.h(0,0),E=this.naturalBounds,x=Jt.Ff(0,0,E.width,E.height,tt,a,y,x,b),b.transform(z),x)},Qt.prototype.measure=function(a,y,x,E){if(ea(this)!==!1){var b=this.Kg,z=b.right+b.left;b=b.top+b.bottom,a=Math.max(a-z,0),y=Math.max(y-b,0),x=Math.max((x||0)-z,0),E=Math.max((E||0)-b,0),z=this.angle,b=this.desiredSize;var tt=this.kq();z===90||z===270?(a=isFinite(b.height)?b.height+tt:a,y=isFinite(b.width)?b.width+tt:y):(a=isFinite(b.width)?b.width+tt:a,y=isFinite(b.height)?b.height+tt:y),b=x||0,tt=E||0;var ot=this instanceof ke;switch(ws(this,!0)){case Pe:tt=b=0,ot&&(y=a=1/0);break;case Le:isFinite(a)&&a>x&&(b=a),isFinite(y)&&y>E&&(tt=y);break;case rn:isFinite(a)&&a>x&&(b=a),tt=0,ot&&(y=1/0);break;case mn:isFinite(y)&&y>E&&(tt=y),b=0,ot&&(a=1/0)}ot=this.maxSize;var rt=this.minSize;b>ot.width&&rt.widthot.height&&rt.heighta.height||this.Cb>a.width))&&(x=!0)),this.l=x?this.l|256:this.l&-257,this.Ib.w()||ee("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),zl(this,!1),de.free(z)},wt=Qt.prototype,wt.eh=function(){};function Qr(a,y,x,E,b){if(a.Ib.h(y,x,E,b),!a.desiredSize.w()){var z=a.uc;x=a.Kg,y=x.right+x.left;var tt=x.top+x.bottom;switch(x=z.width+y,z=z.height+tt,E+=y,b+=tt,y=ws(a,!0),x===E&&z===b&&(y=Pe),y){case Pe:(x>E||z>b)&&(zo(a,!0),a.measure(x>E?E:x,z>b?b:z,0,0));break;case Le:zo(a,!0),a.measure(E,b,0,0);break;case rn:zo(a,!0),a.measure(E,z,0,0);break;case mn:zo(a,!0),a.measure(x,b,0,0)}}}wt.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||zv(x,!0),this.N(),Cu(a,y)||(x.oh(),this.Pn(x)))},wt.Pn=function(a){this.portId!==null&&(zv(a,!0),a instanceof Ke&&U1(a,this))},wt.gc=function(a,y){if(!ga(this,a,y)&&this.visible){var x=this.opacity;if(x!==0){var E=1;x!==1&&(E=a.globalAlpha,a.globalAlpha=E*x);var b="";this.filter!==""&&(b=a.filter,a.filter=this.filter);var z=this instanceof ke&&Vu(this),tt=this.Ib;if(z){var ot=this.Ib,rt=this.dc,at=this.areaBackground,ut=this.Ma;at===null&&ut===null||a.yc(),at!==null&&(ho(this,a,at,!0,!0,rt,ot),at instanceof fi&&at.type===pa?(a.beginPath(),a.rect(ot.x,ot.y,ot.width,ot.height),a.ng(at)):a.fillRect(ot.x,ot.y,ot.width,ot.height)),ut!==null&&(ho(this,a,ut,!0,!1,rt,ot),ut instanceof fi&&ut.type===pa?(a.beginPath(),a.rect(ot.x,ot.y,ot.width,ot.height),a.ng(ut)):a.fillRect(ot.x,ot.y,ot.width,ot.height)),this.hh(a,y)}if(!z&&(z||tt.width!==0&&tt.height!==0&&!isNaN(tt.x)&&!isNaN(tt.y))){z=this.transform,ot=this.panel,this.l&4096&&xr(this),at=this.part,rt=!1;var ct=0;at&&y.Gf("drawShadows")&&(rt=at.isShadowed)&&(ut=at.shadowOffset,ct=Math.max(ut.y,ut.x)*y.scale*y.Mb),ut=this.Dd();var mt;if(!(mt=y.$i||!ut)){var yt=this.naturalBounds;mt=this.wh;var St=mt.m11,Mt=mt.m21,Dt=mt.dx,Tt=mt.m12,zt=mt.m22,Ht=mt.dy,Ut,Xt=Ut=0;mt=Ut*St+Xt*Mt+Dt;var ie=Ut*Tt+Xt*zt+Ht;Ut=yt.width+ct,Xt=0;var We=Ut*St+Xt*Mt+Dt;Ut=Ut*Tt+Xt*zt+Ht,Xt=Math.min(mt,We);var qe=Math.min(ie,Ut),Qe=Math.max(mt+0,We)-Xt,Ae=Math.max(ie+0,Ut)-qe;mt=Xt,ie=qe,Ut=yt.width+ct,Xt=yt.height+ct,We=Ut*St+Xt*Mt+Dt,Ut=Ut*Tt+Xt*zt+Ht,Xt=Math.min(mt,We),qe=Math.min(ie,Ut),Qe=Math.max(mt+Qe,We)-Xt,Ae=Math.max(ie+Ae,Ut)-qe,mt=Xt,ie=qe,Ut=0,Xt=yt.height+ct,We=Ut*St+Xt*Mt+Dt,Ut=Ut*Tt+Xt*zt+Ht,Xt=Math.min(mt,We),qe=Math.min(ie,Ut),Qe=Math.max(mt+Qe,We)-Xt,Ae=Math.max(ie+Ae,Ut)-qe,mt=Xt,ie=qe,ct=y.viewportBounds,yt=ct.x,St=ct.y,mt=!(mt>ct.width+yt||yt>Qe+mt||ie>ct.height+St||St>Ae+ie)}if(mt){if(mt=(this.l&256)!==0,a.clipInsteadOfFill&&(mt=!1),this instanceof Ai&&(a.font=this.font),mt){if(ie=ot.se()?ot.naturalBounds:ot.actualBounds,Qe=Math.max(tt.x,ie.x),Ae=Math.max(tt.y,ie.y),ct=Math.min(tt.right,ie.right)-Qe,yt=Math.min(tt.bottom,ie.bottom)-Ae,St=this.tb,St!==null&&(Qe=St.x,Ae=St.y,ct=St.width,yt=St.height),Qe>tt.width+tt.x||tt.x>ie.width+ie.x){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}a.save(),a.beginPath(),a.rect(Qe,Ae,ct,yt),a.clip()}if(ut){if(!at.isVisible()){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}rt&&(ie=at.shadowOffset,a.Ev(ie.x*y.scale*this.scale*y.Mb,ie.y*y.scale*this.scale*y.Mb,at.shadowBlur),uu(a),a.shadowColor=at.shadowColor)}rt&&this.shadowVisible===!0?uu(a):rt&&this.shadowVisible===!1&&Rl(a),at=this.naturalBounds,this.areaBackground!==null&&(a.yc(),ta(this,a,at,tt)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),rt&&cr(this,ot)&&this.shadowVisible===null&&Rl(a),this.Ma!==null&&(a.yc(),Bs(this,a,at,tt)),rt&&(this.Ma!==null||this.areaBackground!==null||cr(this,ot))?(Ua(this,!0),this.shadowVisible===null&&Rl(a)):Ua(this,!1),this.hh(a,y),rt&&this.l&512&&uu(a),ut&&rt&&Rl(a),mt&&(a.restore(),a.Vc(this instanceof ke)),z.ws()||(y=1/(z.m11*z.m22-z.m12*z.m21),a.transform(z.m22*y,-z.m12*y,-z.m21*y,z.m11*y,y*(z.m21*z.dy-z.m22*z.dx),y*(z.m12*z.dx-z.m11*z.dy)))}}x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b)}}};function cr(a,y){return y===null?!1:(Vu(y)&&(y=y.panel),(y.l&512)!==0||(y.type===ke.Auto||y.type===ke.Spot)&&y.Pb()!==a)}wt.Dv=function(){};function ta(a,y,x,E){ho(a,y,a.areaBackground,!0,!0,x,E),a.areaBackground instanceof fi&&a.areaBackground.type===pa?(y.beginPath(),y.rect(E.x,E.y,E.width,E.height),y.ng(a.areaBackground)):y.fillRect(E.x,E.y,E.width,E.height)}function Bs(a,y,x,E){var b=a.kq(),z=x.x,tt=x.y,ot=x.width+b,rt=x.height+b;ho(a,y,a.Ma,!0,!1,x,E),a.Ma instanceof fi&&a.Ma.type===pa?(y.beginPath(),y.rect(z-b/2,tt-b/2,ot,rt),y.ng(a.Ma)):y.fillRect(z-b/2,tt-b/2,ot,rt)}function Hr(a,y,x){for(var E=y.O.s,b=E.length,z=-1,tt=0;ttb)&&ee("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+b),a.isRow=!0,a.index=b):y.column!==void 0&&(b=y.column,(b==null||b===1/0||isNaN(b)||0>b)&&ee("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+b),a.isRow=!1,a.index=b),b=new Zn;for(x in y)x!=="row"&&x!=="column"&&(b[x]=y[x]);fd(a,b)}else fd(a,y);else ee('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function Uu(a,y){hc.add(a,y)}function am(a,y,x){x===void 0&&(x=null);var E=a[1];if(typeof x=="function"?x(E):typeof E=="string")return a.splice(1,1),E;if(y===void 0)throw Error("no "+(typeof x=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}he.Object.defineProperties(Qt.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new gg),this.A.zp=a)}},localBindings:{get:function(){return this.A!==null?this.A.te:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new gg),this.A.te=a)}},srcBindings:{get:function(){return this.A!==null?this.A.wm:null},set:function(a){this.srcBindings!==a&&(this.A===null&&(this.A=new gg),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(On(this),this.A.Ci=a,this.Uc=!0,this.N(),this.g("shadowVisible",y,a))}},enabledChanged:{get:function(){return this.A!==null?this.A.Hb:null},set:function(a){var y=this.enabledChanged;y!==a&&(On(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:ds},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new Bh),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===ds&&(this.angle=0))}},segmentIndex:{get:function(){return this.Ua!==null?this.Ua.u:-1/0},set:function(a){a=Math.round(a);var y=this.segmentIndex;y!==a&&(this.Ua===null&&(this.Ua=new Bh),this.Ua.u=a,this.v(),this.g("segmentIndex",y,a))}},segmentFraction:{get:function(){return this.Ua!==null?this.Ua.o:0},set:function(a){isNaN(a)||0>a?a=0:1a||1=a&&ee("GraphObject.scale for "+this+" must be greater than zero, not: "+a),this.Ca=a,this.v(),this.g("scale",y,a))}},angle:{get:function(){return this.Kb},set:function(a){var y=this.Kb;y!==a&&(a%=360,0>a&&(a+=360),y!==a&&(this.Kb=a,Xy(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,E=this.jd,b=E.width,z=E.height;(b===y||isNaN(b)&&isNaN(y))&&(z===x||isNaN(z)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof bn&&this.qc(),this.g("desiredSize",E,a),kr(this)&&(a=this.part,a!==null&&(Oi(this,a,"width"),Oi(this,a,"height"))))}},width:{get:function(){return this.jd.width},set:function(a){var y=this.jd.width;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new Xe(a,this.jd.height).freeze(),this.v(),this instanceof bn&&this.qc(),this.g("desiredSize",y,a),kr(this)&&(a=this.part,a!==null&&Oi(this,a,"width")))}},height:{get:function(){return this.jd.height},set:function(a){var y=this.jd.height;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new Xe(this.jd.width,a).freeze(),this.v(),this instanceof bn&&this.qc(),this.g("desiredSize",y,a),kr(this)&&(a=this.part,a!==null&&Oi(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:Jn},set:function(a){var y=this.minSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=0),isNaN(a.height)&&(a.height=0),a.freeze(),On(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:vr},set:function(a){var y=this.maxSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=1/0),isNaN(a.height)&&(a.height=1/0),a.freeze(),On(this),this.A.o=a,this.v(),this.g("maxSize",y,a))}},measuredBounds:{get:function(){return this.uc}},naturalBounds:{get:function(){return this.dc}},margin:{get:function(){return this.Kg},set:function(a){typeof a=="number"&&(a=new jn(a));var y=this.Kg;y.D(a)||(this.Kg=a=a.J(),this.v(),this.g("margin",y,a))}},transform:{get:function(){return this.l&2048&&xr(this),this.Ab}},oe:{get:function(){return this.l&4096&&xr(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(On(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:Pe},set:function(a){this.reshapingBehavior!==a&&(On(this),this.A.Pf=a)}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(a.Mc()&&!a.Xb()&&ee("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),as(this),this.g("alignment",y,a))}},column:{get:function(){return this.Ag},set:function(a){a=Math.round(a);var y=this.Ag;y!==a&&(0>a&&_n(a,">= 0",Qt,"column"),this.Ag=a,this.v(),this.g("column",y,a),this.svg!==null&&this.svg.remove())}},columnSpan:{get:function(){return this.A!==null?this.A.ob:1},set:function(a){a=Math.round(a);var y=this.columnSpan;y!==a&&(1>a&&_n(a,">= 1",Qt,"columnSpan"),On(this),this.A.ob=a,this.v(),this.g("columnSpan",y,a))}},row:{get:function(){return this.io},set:function(a){a=Math.round(a);var y=this.io;y!==a&&(0>a&&_n(a,">= 0",Qt,"row"),this.io=a,this.v(),this.g("row",y,a),this.svg!==null&&this.svg.remove())}},rowSpan:{get:function(){return this.A!==null?this.A.Bi:1},set:function(a){a=Math.round(a);var y=this.rowSpan;y!==a&&(1>a&&_n(a,">= 1",Qt,"rowSpan"),On(this),this.A.Bi=a,this.v(),this.g("rowSpan",y,a))}},spanAllocation:{get:function(){return this.A!==null?this.A.Di:null},set:function(a){var y=this.spanAllocation;y!==a&&(On(this),this.A.Di=a,this.v(),this.g("spanAllocation",y,a))}},alignmentFocus:{get:function(){return this.sk},set:function(a){var y=this.sk;y.D(a)||(this.sk=a=a.J(),this.v(),this.g("alignmentFocus",y,a))}},portId:{get:function(){return this.Yn},set:function(a){var y=this.Yn;if(y!==a){var x=this.part;x===null||x instanceof Ke||ee("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Wv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,K1(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:$o},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),wd(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&_n(a,">= 0",Qt,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),wd(this))}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:0},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.g("toShortLength",y,a),wd(this))}},toLinkable:{get:function(){return this.ba!==null?this.ba.Tr:null},set:function(a){var y=this.toLinkable;y!==a&&(this.Xc(),this.ba.Tr=a,this.g("toLinkable",y,a))}},toMaxLinks:{get:function(){return this.ba!==null?this.ba.Ur:1/0},set:function(a){var y=this.toMaxLinks;y!==a&&(0>a&&_n(a,">= 0",Qt,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:$o},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),wd(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&_n(a,">= 0",Qt,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),wd(this))}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:0},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.g("fromShortLength",y,a),wd(this))}},fromLinkable:{get:function(){return this.ba!==null?this.ba.hq:null},set:function(a){var y=this.fromLinkable;y!==a&&(this.Xc(),this.ba.hq=a,this.g("fromLinkable",y,a))}},fromMaxLinks:{get:function(){return this.ba!==null?this.ba.iq:1/0},set:function(a){var y=this.fromMaxLinks;y!==a&&(0>a&&_n(a,">= 0",Qt,"fromMaxLinks"),this.Xc(),this.ba.iq=a,this.g("fromMaxLinks",y,a))}},cursor:{get:function(){return this.A!==null?this.A.j:""},set:function(a){var y=this.cursor;y!==a&&(On(this),this.A.j=a,this.g("cursor",y,a))}},click:{get:function(){return this.A!==null?this.A.zh:null},set:function(a){var y=this.click;y!==a&&(On(this),this.A.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.A!==null?this.A.Fh:null},set:function(a){var y=this.doubleClick;y!==a&&(On(this),this.A.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.A!==null?this.A.Bh:null},set:function(a){var y=this.contextClick;y!==a&&(On(this),this.A.Bh=a,this.g("contextClick",y,a))}},mouseEnter:{get:function(){return this.A!==null?this.A.Mh:null},set:function(a){var y=this.mouseEnter;y!==a&&(On(this),this.A.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.A!==null?this.A.Ph:null},set:function(a){var y=this.mouseLeave;y!==a&&(On(this),this.A.Ph=a,this.g("mouseLeave",y,a))}},mouseOver:{get:function(){return this.A!==null?this.A.Qh:null},set:function(a){var y=this.mouseOver;y!==a&&(On(this),this.A.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.A!==null?this.A.Oh:null},set:function(a){var y=this.mouseHover;y!==a&&(On(this),this.A.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.A!==null?this.A.Nh:null},set:function(a){var y=this.mouseHold;y!==a&&(On(this),this.A.Nh=a,this.g("mouseHold",y,a))}},mouseDragEnter:{get:function(){return this.A!==null?this.A.Of:null},set:function(a){var y=this.mouseDragEnter;y!==a&&(On(this),this.A.Of=a,this.g("mouseDragEnter",y,a))}},mouseDragLeave:{get:function(){return this.A!==null?this.A.Xd:null},set:function(a){var y=this.mouseDragLeave;y!==a&&(On(this),this.A.Xd=a,this.g("mouseDragLeave",y,a))}},mouseDrop:{get:function(){return this.A!==null?this.A.Lh:null},set:function(a){var y=this.mouseDrop;y!==a&&(On(this),this.A.Lh=a,this.g("mouseDrop",y,a))}},actionDown:{get:function(){return this.A!==null?this.A.V:null},set:function(a){var y=this.actionDown;y!==a&&(On(this),this.A.V=a,this.g("actionDown",y,a))}},actionMove:{get:function(){return this.A!==null?this.A.ia:null},set:function(a){var y=this.actionMove;y!==a&&(On(this),this.A.ia=a,this.g("actionMove",y,a))}},actionUp:{get:function(){return this.A!==null?this.A.Ha:null},set:function(a){var y=this.actionUp;y!==a&&(On(this),this.A.Ha=a,this.g("actionUp",y,a))}},actionCancel:{get:function(){return this.A!==null?this.A.F:null},set:function(a){var y=this.actionCancel;y!==a&&(On(this),this.A.F=a,this.g("actionCancel",y,a))}},toolTip:{get:function(){return this.A!==null?this.A.$h:null},set:function(a){var y=this.toolTip;y!==a&&(On(this),this.A.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.A!==null?this.A.Ch:null},set:function(a){var y=this.contextMenu;y!==a&&(On(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),Qt.prototype.trigger=Qt.prototype.Jv,Qt.prototype.findBindingPanel=Qt.prototype.ih,Qt.prototype.findTemplateBinder=Qt.prototype.pz,Qt.prototype.setProperties=Qt.prototype.nm,Qt.prototype.apply=Qt.prototype.apply,Qt.prototype.attach=Qt.prototype.Du,Qt.prototype.set=Qt.prototype.set,Qt.prototype.isEnabledObject=Qt.prototype.If,Qt.prototype.isVisibleObject=Qt.prototype.Ed,Qt.prototype.isContainedBy=Qt.prototype.rg,Qt.prototype.getNearestIntersectionPoint=Qt.prototype.rs,Qt.prototype.getLocalPoint=Qt.prototype.qs,Qt.prototype.getDocumentScale=Qt.prototype.Df,Qt.prototype.getDocumentAngle=Qt.prototype.li,Qt.prototype.getDocumentBounds=Qt.prototype.mi,Qt.prototype.getDocumentPoint=Qt.prototype.ga,Qt.prototype.intersectsRect=Qt.prototype.Yc,Qt.prototype.containedInRect=Qt.prototype.fh,Qt.prototype.containsRect=Qt.prototype.Re,Qt.prototype.containsPoint=Qt.prototype.ca,Qt.prototype.raiseChanged=Qt.prototype.g,Qt.prototype.raiseChangedEvent=Qt.prototype.cb,Qt.prototype.addCopyProperty=Qt.prototype.Vw;var hc=null;Qt.className="GraphObject",hc=new En,Uu("Button",function(){function a(x,E){return x.diagram.ic(x.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b},function(b){return b===E})!==null}var y=fa(ke,ke.Auto,{isActionable:!0,enabledChanged:function(x,E){if(x instanceof ke){var b=x.fb("ButtonBorder");b!==null&&(b.fill=E?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},fa(bn,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new cn(0,0,2.76142374915397,2.761423749153969),spot2:new cn(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,E){if(E.If()&&E instanceof ke&&(x=E.fb("ButtonBorder"),x instanceof bn)){var b=E._buttonFillOver;E._buttonFillNormal=x.fill,x.fill=b,b=E._buttonStrokeOver,E._buttonStrokeNormal=x.stroke,x.stroke=b}},y.mouseLeave=function(x,E){E.If()&&E instanceof ke&&(x=E.fb("ButtonBorder"),x instanceof bn&&(x.fill=E._buttonFillNormal,x.stroke=E._buttonStrokeNormal))},y.actionDown=function(x,E){if(E.If()&&E instanceof ke&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof bn){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var tt=E._buttonFillPressed;E._buttonFillOver=b.fill,b.fill=tt,tt=E._buttonStrokePressed,E._buttonStrokeOver=b.stroke,b.stroke=tt,x.skipsUndoManager=z}}},y.actionUp=function(x,E){if(E.If()&&E instanceof ke&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof bn){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionCancel=function(x,E){if(E.If()&&E instanceof ke&&E._buttonFillPressed!==null){var b=E.fb("ButtonBorder");if(b instanceof bn){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionMove=function(x,E){if(E.If()&&E instanceof ke&&E._buttonFillPressed!==null){var b=x.diagram;if(b.firstInput.button===0&&(b.currentTool.standardMouseOver(),a(x,E)&&(x=E.fb("ButtonBorder"),x instanceof bn))){var z=b.skipsUndoManager;b.skipsUndoManager=!0;var tt=E._buttonFillPressed;x.fill!==tt&&(x.fill=tt),tt=E._buttonStrokePressed,x.stroke!==tt&&(x.stroke=tt),b.skipsUndoManager=z}}},y}),Uu("TreeExpanderButton",function(){var a=fa("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},fa(bn,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Zo},new ko("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new ko("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof ri&&(x=x.adornedPart),x instanceof Ke){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isTreeExpanded){if(!E.canCollapseTree(x))return}else if(!E.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?E.collapseTree(x):E.expandTree(x)}}},a}),Uu("SubGraphExpanderButton",function(){var a=fa("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},fa(bn,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Zo},new ko("figure","isSubGraphExpanded",function(y,x){return x=x.panel,y?x._subGraphExpandedFigure:x._subGraphCollapsedFigure}).cp()));return a.click=function(y,x){if(x=x.part,x instanceof ri&&(x=x.adornedPart),x instanceof Fn){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isSubGraphExpanded){if(!E.canCollapseSubGraph(x))return}else if(!E.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?E.collapseSubGraph(x):E.expandSubGraph(x)}}},a}),Uu("ToolTip",function(){return fa(ri,ke.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new jt(0,3),shadowBlur:5},fa(bn,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new cn(0,0,4,6),spot2:new cn(1,1,-4,-4)}))}),Uu("ContextMenu",function(){return fa(ri,ke.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new jt(0,3),shadowBlur:5},new ko("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),Uu("ContextMenuButton",function(){var a=fa("Button");a.stretch=rn;var y=a.fb("ButtonBorder");return y instanceof bn&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new cn(0,0,2,3),y.spot2=new cn(1,1,-2,-2)),a}),Uu("PanelExpanderButton",function(a){var y=am(a,"COLLAPSIBLE"),x=fa("Button",{_buttonExpandedFigure:"M0 0 M0 6 L4 2 8 6 M8 8",_buttonCollapsedFigure:"M0 0 M0 2 L4 6 8 2 M8 8",_buttonFillNormal:"rgba(0, 0, 0, 0)",_buttonStrokeNormal:null,_buttonFillOver:"rgba(0, 0, 0, .2)",_buttonStrokeOver:null,_buttonFillPressed:"rgba(0, 0, 0, .4)",_buttonStrokePressed:null},fa(bn,{name:"ButtonIcon",strokeWidth:2},new ko("geometryString","visible",function(E){return E?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof bn&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(E,b){var z=b.diagram;if(z!==null&&!z.isReadOnly){var tt=b.ih();tt===null&&(tt=b.part),tt!==null&&(b=tt.fb(y),b!==null&&(E.handled=!0,z.Ea("Collapse/Expand Panel"),b.visible=!b.visible,z.eb("Collapse/Expand Panel")))}},x}),Uu("CheckBoxButton",function(a){var y=am(a);return a=fa("Button",{desiredSize:new Xe(14,14)},fa(bn,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Le,geometryStretch:$e,visible:!1},y!==""?new ko("visible",y).Kx():[])),a.click=function(x,E){if(E instanceof ke){var b=x.diagram;if(!(b===null||b.isReadOnly||y!==""&&b.model.isReadOnly)){x.handled=!0;var z=E.fb("ButtonIcon");b.Ea("checkbox"),z.visible=!z.visible,typeof E._doClick=="function"&&E._doClick(x,E),b.eb("checkbox")}}},a}),Uu("CheckBox",function(a){a=am(a),a=fa("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new jn(0,1,0,0)});var y=fa(ke,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new jn(1),_buttonFillNormal:a._buttonFillNormal,_buttonStrokeNormal:a._buttonStrokeNormal,_buttonFillOver:a._buttonFillOver,_buttonStrokeOver:a._buttonStrokeOver,_buttonFillPressed:a._buttonFillPressed,_buttonStrokePressed:a._buttonStrokePressed,_buttonFillDisabled:a._buttonFillDisabled,mouseEnter:a.mouseEnter,mouseLeave:a.mouseLeave,actionDown:a.actionDown,actionUp:a.actionUp,actionCancel:a.actionCancel,actionMove:a.actionMove,click:a.click,_buttonClick:a.click});return a.mouseEnter=null,a.mouseLeave=null,a.actionDown=null,a.actionUp=null,a.actionCancel=null,a.actionMove=null,a.click=null,y}),Qt.None=Pe=new Me(Qt,"None",0),Qt.Default=Bn=new Me(Qt,"Default",0),Qt.Vertical=mn=new Me(Qt,"Vertical",4),Qt.Horizontal=rn=new Me(Qt,"Horizontal",5),Qt.Fill=Le=new Me(Qt,"Fill",3),Qt.Uniform=$e=new Me(Qt,"Uniform",1),Qt.UniformToFill=Xn=new Me(Qt,"UniformToFill",2),Qt.FlipVertical=zn=new Me(Qt,"FlipVertical",1),Qt.FlipHorizontal=ti=new Me(Qt,"FlipHorizontal",2),Qt.FlipBoth=Pi=new Me(Qt,"FlipBoth",3),Qt.make=fa,Qt.getBuilders=function(){var a=new En,y;for(y in hc)if(y!==y.toLowerCase()){var x=hc.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},Qt.defineBuilder=Uu,Qt.build=function(a,y,x){for(var E=[],b=2;ba&&(a+=360),a!==0){if(this.translate(y,x),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.ha[1]*a+this.ha[3]*E,z=this.ha[0]*-E+this.ha[2]*a,tt=this.ha[1]*-E+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*E,this.ha[1]=b,this.ha[2]=z,this.ha[3]=tt,this.translate(-y,-x)}},Cd.className="STransform";function cg(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}cg.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},cg.className="SGradient";function Cl(a,y,x){this.ownerDocument=a=y===void 0?Ze.document:y,this.cA="http://www.w3.org/2000/svg",a!==void 0&&(this.Oa=this.Ud("svg",{width:"1px",height:"1px",viewBox:"0 0 1 1"}),this.style.display="block",this.style.letterSpacing="normal",this.style.wordSpacing="normal",this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink")),this.hs=null,this.context=new Us(this,x)}Cl.prototype.resize=function(a,y,x,E){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=E+"px",this.Oa.setAttributeNS(null,"width",x+"px"),this.Oa.setAttributeNS(null,"height",E+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+x+" "+E),this.context.ww.firstElementChild.setAttributeNS(null,"width",x+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",E+"px"),!0):!1},Cl.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),we(y))for(var E in y)a.setAttributeNS(E==="href"?"http://www.w3.org/1999/xlink":"",E,y[E]);return x!==void 0&&(a.textContent=x),a},Cl.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Cl.prototype.focus=function(){this.Oa.focus()},Cl.prototype.mx=function(){this.ownerDocument=null},he.Object.defineProperties(Cl.prototype,{width:{get:function(){return this.Oa.width.baseVal.value},set:function(a){this.Oa.setAttribute("width",a+"px")}},height:{get:function(){return this.Oa.height.baseVal.value},set:function(a){this.Oa.setAttribute("height",a+"px")}},style:{get:function(){return this.Oa.style}}}),Cl.className="SVGSurface";function Us(a,y){this.Gv=a,this.svg=a.Oa,this.stack=[],this.nh=[],this.fillStyle="#000000",this.font="10px sans-serif",this.globalAlpha=1,this.lineCap="butt",this.lineDashOffset=0,this.lineJoin="miter",this.lineWidth=1,this.miterLimit=10,this.shadowBlur=0,this.shadowColor="rgba(0, 0, 0, 0)",this.shadowOffsetY=this.shadowOffsetX=0,this.Il=!1,this.strokeStyle="#000000",this.textAlign="start",this.clipInsteadOfFill=!1,this.Vg=this.Br=this.Ar=0,this.yd=this.ad=null,this.path=[],this.Yl={},this.Ct=!1,this.Yg=null,this.uj=0,this.rb=new Cd,this.j=lm(this),this.Nj=lm(this,"gojs-diagram"),this.Hl=this.ti=null;var x=_r++,E=this.Ud("clipPath",{id:"mainClip"+x});E.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=E,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(E),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function Qy(a,y,x,E,b,z,tt){a.Nj===void 0?Of(a,y,x,E,b,z,tt):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+E+", "+b+", "+z+", "+tt+")")}wt=Us.prototype,wt.arc=function(a,y,x,E,b,z,tt,ot){var rt=2*Math.PI,at=rt-1e-6,ut=x*Math.cos(E),ct=x*Math.sin(E),mt=a+ut,yt=y+ct,St=z?0:1;E=z?E-b:b-E,(1e-6E&&(E=E%rt+rt),E>at?(this.path.push(["A",x,x,0,1,St,a-ut,y-ct]),this.path.push(["A",x,x,0,1,St,mt,yt])):1e-6=Math.PI),St,a+x*Math.cos(b),y+x*Math.sin(b)])},wt.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},wt.Se=function(a){this.addPath(this.path,this.rb,a||0)},wt.bezierCurveTo=function(a,y,x,E,b,z){this.path.push(["C",a,y,x,E,b,z])},wt.clearRect=function(){},wt.clip=function(){this.Yl.clipPath=!0},wt.closePath=function(){this.path.push(["z"])},wt.createLinearGradient=function(a,y,x,E){var b=new cg("linear");return b.x1=a,b.y1=y,b.x2=x,b.y2=E,b},wt.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var x=this.eA;if(x[y])return"url(#"+x[y]+")";var E="PATTERN"+_r++,b={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:E,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(xd,b)),this.svg.appendChild(a),x[y]=E,"url(#"+E+")"},wt.createRadialGradient=function(a,y,x,E,b,z){var tt=new cg("radial");return tt.x1=a,tt.y1=y,tt.r1=x,tt.x2=E,tt.y2=b,tt.r2=z,tt};function Zy(a,y,x,E,b,z,tt,ot,rt){E=ot/E,b=rt/b,z===0&&tt===0||a.rb.translate(z,tt),E===1&&b===1||a.rb.scale(E,b),y===0&&x===0||a.rb.translate(-y,-x)}wt.drawImage=function(a,y,x,E,b,z,tt,ot,rt){var at="";a instanceof HTMLCanvasElement&&(at=a.toDataURL()),a instanceof HTMLImageElement&&(at=a.getAttribute("src"));var ut=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,E===void 0&&(z=y,tt=x,ot=E=ut,rt=b=a),E=E||0,b=b||0,ot=ot||0,rt=rt||0,Zy(this,y,x,E,b,z||0,tt||0,ot,rt),z={x:0,y:0,width:ut||E,height:a||b,href:at},Jt.$(E,ot)&&Jt.$(b,rt)?at.toLowerCase().indexOf(".svg")===-1&&at.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||E!==ut||b!==a)&&(E+=y,b+=x,z["clip-path"]="path('M "+y+","+x+" L "+E+" "+x+" L "+E+" "+b+" L "+y+" "+b+" z')"),dc(this,xd,z,this.rb),this.addElement(xd,z)},wt.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),iv(this,this.Yl)},wt.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},wt.fillRect=function(a,y,x,E){a=[a,y,x,E],a={x:a[0],y:a[1],width:a[2],height:a[3]},dc(this,"fill",a,this.rb),this.addElement("rect",a)},wt.ox=function(a,y,x,E){a={x:a,y,width:x,height:E},dc(this,"fill",a,this.rb),iv(this,a),this.svg.prepend(this.Ud("rect",a))},wt.fillText=function(a,y,x){a=[a,y,x],y=this.textAlign,y==="left"?y="start":y==="right"?y="end":y==="center"&&(y="middle"),y={x:a[1],y:a[2],style:"font: "+this.font,"text-anchor":y},dc(this,"fill",y,this.rb),this.addElement("text",y,a[0])},wt.lineTo=function(a,y){this.path.push(["L",a,y])},wt.moveTo=function(a,y){this.path.push(["M",a,y])},wt.quadraticCurveTo=function(a,y,x,E){this.path.push(["Q",a,y,x,E])},wt.rect=function(a,y,x,E){this.path.push(["M",a,y],["L",a+x,y],["L",a+x,y+E],["L",a,y+E],["z"])},wt.restore=function(){this.rb=this.stack.pop(),this.path=this.stack.pop();var a=this.stack.pop();this.fillStyle=a.fillStyle,this.font=a.font,this.globalAlpha=a.globalAlpha,this.lineCap=a.lineCap,this.lineDashOffset=a.lineDashOffset,this.lineJoin=a.lineJoin,this.lineWidth=a.lineWidth,this.miterLimit=a.miterLimit,this.shadowBlur=a.shadowBlur,this.shadowColor=a.shadowColor,this.shadowOffsetX=a.shadowOffsetX,this.shadowOffsetY=a.shadowOffsetY,this.strokeStyle=a.strokeStyle,this.textAlign=a.textAlign,this.bk=a.bk},wt.save=function(){this.stack.push({fillStyle:this.fillStyle,font:this.font,globalAlpha:this.globalAlpha,lineCap:this.lineCap,lineDashOffset:this.lineDashOffset,lineJoin:this.lineJoin,lineWidth:this.lineWidth,miterLimit:this.miterLimit,shadowBlur:this.shadowBlur,shadowColor:this.shadowColor,shadowOffsetX:this.shadowOffsetX,shadowOffsetY:this.shadowOffsetY,strokeStyle:this.strokeStyle,textAlign:this.textAlign,bk:this.bk});for(var a=[],y=0;yut.offset?1:-1}),b=0;bx?(this.scale(x/a,1),this.translate((a-x)/2,0)):x>a&&(this.scale(1,a/x),this.translate(0,(x-a)/2)),this.Hm?this.clip():this.fill(y),a>x?(this.translate(-(a-x)/2,0),this.scale(1/(x/a),1)):x>a&&(this.translate(0,-(x-a)/2),this.scale(1,1/(a/x)))}else this.Hm?this.clip():this.fill(y)},wt.jk=function(){this.Hm||this.stroke()},wt.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},wt.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},wt.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(mx),a.lineDashOffset=0)},wt.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},wt.Hs=function(){},he.Object.defineProperties(Md.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(a){this.ct!==a&&(this.ct=this.Z.fillStyle=a)}},font:{get:function(){return this.Z.font},set:function(a){this.dt!==a&&(this.dt=this.Z.font=a)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(a){this.Z.globalAlpha=a}},lineCap:{get:function(){return this.Z.lineCap},set:function(a){this.Z.lineCap=a}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(a){this.Z.lineDashOffset=a}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(a){this.Z.lineJoin=a}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(a){this.Z.lineWidth=a}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(a){this.Z.miterLimit=a}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(a){this.Z.shadowBlur=a}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(a){this.Z.shadowColor=a}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(a){this.Z.shadowOffsetX=a}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(a){this.Z.shadowOffsetY=a}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(a){this.et!==a&&(this.et=this.Z.strokeStyle=a)}},textAlign:{get:function(){return this.Z.textAlign},set:function(a){this.Z.textAlign=a}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(a){this.Z.imageSmoothingEnabled=a}},filter:{get:function(){return this.Z.filter},set:function(a){this.Z.filter=a===""?"none":a}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(a){this.Hm=a}}});var mx=Object.freeze([]);Md.className="CanvasSurfaceContext";function jf(){this.F=this.o=this.u=this.j=0}jf.className="ColorNumbers";function fi(a,y){pc||(hv(),pc=!0),Yi(this),this._isFrozen=!1,a===void 0?(this.na=Yu,this.xk="black"):typeof a=="string"?(this.na=Yu,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===du?(this.Qd=Js,this.Lk=Rs):this.Lk=a===pa?this.Qd=gi:this.Qd=$o,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}fi.prototype.copy=function(){var a=new fi;return a.na=this.na,a.xk=this.xk,a.Qd=this.Qd.J(),a.Lk=this.Lk.J(),a.Gr=this.Gr,a.Xp=this.Xp,this.we!==null&&(a.we=this.we.copy()),a.cr=this.cr,a},wt=fi.prototype,wt.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},wt.ka=function(){return Object.isFrozen(this)&&ee("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},wt.qb=function(a){a.classType===fi&&(this.type=a)},wt.toString=function(){var a="Brush(";if(this.type===Yu)a+=this.color;else if(a=this.type===du?a+"Linear ":this.type===pa?a+"Radial ":this.type===mc?a+"Pattern ":a+"(unknown) ",a+=this.start+" "+this.end,this.colorStops!==null)for(var y=this.colorStops.iterator;y.next();)a+=" "+y.key+":"+y.value;return a+")"},wt.addColorStop=function(a,y){return this._isFrozen&&yn(this),(typeof a!="number"||!isFinite(a)||1a)&&_n(a,"0 <= loc <= 1",fi,"addColorStop:loc"),this.we===null&&(this.we=new En),this.we.add(a,y),this.na===Yu&&(this.type=du),this.xe=null,this},wt.Vz=function(a,y){if(this._isFrozen&&yn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?vc:y,this.type===Yu)hu(this.color),this.color=cc(a,y);else if((this.type===du||this.type===pa)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)hu(x.value),this.addColorStop(x.key,cc(a,y));return this};function $y(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?vc:x,hu(a),cc(y,x)}wt.Wy=function(a,y){if(this._isFrozen&&yn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?vc:y,this.type===Yu)hu(this.color),this.color=cc(-a,y);else if((this.type===du||this.type===pa)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)hu(x.value),this.addColorStop(x.key,cc(-a,y));return this};function t1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?vc:x,hu(a),cc(-y,x)}function rv(a,y,x){hu(a),a=Fi.j;var E=Fi.u,b=Fi.o,z=Fi.F;return hu(y),x===void 0&&(x=.5),"rgba("+Math.round((Fi.j-a)*x+a)+", "+Math.round((Fi.u-E)*x+E)+", "+Math.round((Fi.o-b)*x+b)+", "+Math.round((Fi.F-z)*x+z)+")"}wt.Gx=function(){if(this.type===Yu)return gc(this.color);if((this.type===du||this.type===pa)&&this.colorStops!==null){var a=this.colorStops;if(this.type===pa)return gc(a.first().value);if(a.get(.5)!==null)return gc(a.get(.5));if(a.count===2)return a=a.Fa(),gc(rv(a[0].value,a[1].value));for(var y=a.iterator,x=-1,E=-1,b=1,z=1;y.next();){var tt=y.key,ot=Math.abs(.5-y.key);b>z&&ot=b&&otE&&(z=x,x=E,E=z,z=b),b=E-x,gc(rv(a.get(x),a.get(E),1-z/b))}return!1};function gc(a){return a?a instanceof fi?a.Gx():(hu(a),128>(299*Fi.j+587*Fi.u+114*Fi.o)/1e3):!1}function cc(a,y){switch(y){case vc:y=100*av(Fi.j);var x=100*av(Fi.u),E=100*av(Fi.o);return us.j=.4124564*y+.3575761*x+.1804375*E,us.u=.2126729*y+.7151522*x+.072175*E,us.o=.0193339*y+.119192*x+.9503041*E,us.F=Fi.F,y=uv(us.j/fc[0]),x=uv(us.u/fc[1]),E=uv(us.o/fc[2]),Gl.j=116*x-16,Gl.u=500*(y-x),Gl.o=200*(x-E),Gl.F=us.F,Gl.j=Math.min(100,Math.max(0,Gl.j+100*a)),a=(Gl.j+16)/116,y=a-Gl.o/200,us.j=fc[0]*e1(Gl.u/500+a),us.u=fc[1]*(Gl.j>hm*dv?Math.pow(a,3):Gl.j/hm),us.o=fc[2]*e1(y),us.F=Gl.F,a=-.969266*us.j+1.8760108*us.u+.041556*us.o,y=.0556434*us.j+-.2040259*us.u+1.0572252*us.o,Fi.j=255*lv((3.2404542*us.j+-1.5371385*us.u+-.4985314*us.o)/100),Fi.u=255*lv(a/100),Fi.o=255*lv(y/100),Fi.F=us.F,Fi.j=Math.round(Fi.j),255Fi.j&&(Fi.j=0),Fi.u=Math.round(Fi.u),255Fi.u&&(Fi.u=0),Fi.o=Math.round(Fi.o),255Fi.o&&(Fi.o=0),"rgba("+Fi.j+", "+Fi.u+", "+Fi.o+", "+Fi.F+")";case n1:return sv(),na.o=Math.min(100,Math.max(0,na.o+100*a)),"hsla("+na.j+", "+na.u+"%, "+na.o+"%, "+na.F+")";default:ee("Unknown color space: "+y)}}function hu(a){pc||(hv(),pc=!0);var y=gv;if(y!==null){y.clearRect(0,0,1,1),y.fillStyle="#000000";var x=y.fillStyle;y.fillStyle=a,y.fillStyle!==x?(y.fillRect(0,0,1,1),a=y.getImageData(0,0,1,1).data,Fi.j=a[0],Fi.u=a[1],Fi.o=a[2],Fi.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,Fi.j=0,Fi.u=0,Fi.o=0,Fi.F=1)}}function sv(){var a=Fi.j/255,y=Fi.u/255,x=Fi.o/255,E=Math.max(a,y,x),b=Math.min(a,y,x),z=E-b;if(b=(E+b)/2,z===0)var tt=a=0;else{switch(E){case a:tt=(y-x)/z%6;break;case y:tt=(x-a)/z+2;break;case x:tt=(a-y)/z+4}tt*=60,0>tt&&(tt+=360),a=z/(1-Math.abs(2*b-1))}na.j=Math.round(tt),na.u=Math.round(100*a),na.o=Math.round(100*b),na.F=Fi.F}function av(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function lv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function uv(a){return a>dv?Math.pow(a,1/3):(hm*a+16)/116}function e1(a){var y=a*a*a;return y>dv?y:(116*a-16)/hm}function fg(a,y){typeof a!="string"&&(a instanceof fi||ee("Value for "+y+" must be a color string or a Brush, not "+a))}function hv(){gv=ro?new Ta(null,void 0,{willReadFrequently:!0}).context:null}he.Object.defineProperties(fi.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&yn(this,a),this.na=a,this.start.Mc()&&(a===du?this.start=Js:a===pa&&(this.start=gi)),this.end.Mc()&&(a===du?this.end=Rs:a===pa&&(this.end=gi)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&yn(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&yn(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&yn(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&yn(this,a),0>a&&_n(a,">= zero",fi,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&yn(this,a),0>a&&_n(a,">= zero",fi,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&yn(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&yn(this,a),this.cr=a,this.xe=null}}}),fi.prototype.isDark=fi.prototype.Gx,fi.prototype.darkenBy=fi.prototype.Wy,fi.prototype.lightenBy=fi.prototype.Vz,fi.prototype.addColorStop=fi.prototype.addColorStop;var dv=216/24389,hm=24389/27,fc=[95.047,100,108.883],gv=null,Fi=new jf,na=new jf,us=new jf,Gl=new jf,pc=!1;fi.className="Brush";var Yu;fi.Solid=Yu=new Me(fi,"Solid",0);var du;fi.Linear=du=new Me(fi,"Linear",1);var pa;fi.Radial=pa=new Me(fi,"Radial",2);var mc;fi.Pattern=mc=new Me(fi,"Pattern",4);var vc;fi.Lab=vc=new Me(fi,"Lab",5);var n1;fi.HSL=n1=new Me(fi,"HSL",6),fi.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var x=Math.abs(y-a);y=Math.floor(a+Math.random()*x).toString(16);var E=Math.floor(a+Math.random()*x).toString(16);return a=Math.floor(a+Math.random()*x).toString(16),2>y.length&&(y="0"+y),2>E.length&&(E="0"+E),2>a.length&&(a="0"+a),"#"+y+E+a},fi.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;pc||(hv(),pc=!0);var y=gv;if(y===null)return!0;y.fillStyle="#000000";var x=y.fillStyle;return y.fillStyle=a,y.fillStyle!==x?!0:(y.fillStyle="#FFFFFF",x=y.fillStyle,y.fillStyle=a,y.fillStyle!==x)},fi.lighten=function(a){return $y(a)},fi.lightenBy=$y,fi.darken=function(a){return t1(a)},fi.darkenBy=t1,fi.mix=rv,fi.isDark=gc;function Yo(){this.xa="Base"}Yo.prototype.measure=function(){},Yo.prototype.Yz=function(a,y,x,E,b){a.measure(y,x,E,b)},Yo.prototype.arrange=function(){},Yo.prototype.Ly=function(a,y,x,E,b,z){a.arrange(y,x,E,b,z)},Yo.prototype.iA=function(a){a.Uj()},Yo.prototype.gc=function(){},he.Object.defineProperties(Yo.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return ke}}}),Yo.prototype.remeasureObject=Yo.prototype.iA,Yo.prototype.arrangeElement=Yo.prototype.Ly,Yo.prototype.measureElement=Yo.prototype.Yz,Yo.className="PanelLayout";function dm(){this.xa="Base"}ye(dm,Yo),dm.prototype.measure=function(a,y,x,E,b,z,tt){var ot=E.length;a=gu(a);for(var rt=0;rtqe&&(or=Math.max(qe-Xh,0));var R0=Se.oa===0;Se.oc=Se.oc+or,Se.actual=Se.oa+or,qe=Math.max(qe-(or+(R0?Xh:0)),0)}if(Ds.columnSpan===1&&(qr===Pe||qr===mn)){Se=a.Eb(Jr);var Lp=Se.Wc();or=Math.max(bd-Se.actual,0),or+Lp>We&&(or=Math.max(We-Lp,0));var Gy=Se.oa===0;Se.oc=Se.oc+or,Se.actual=Se.oa+or,We=Math.max(We-(or+(Gy?Lp:0)),0)}Kh&&Ds.Uj()}}}}}ei(zt);var Zl=0,pu=0;z=a.columnCount;for(var Eg=0;Eg=a.rowCount);rh++)Se=a.Fb(mo.row+rh),or=0,or=qr===Le||qr===mn?Math.max(Se.minimum,gl[mo.row+rh]===0?Se.maximum:Math.min(gl[mo.row+rh],Se.maximum)):Math.max(Se.minimum,isNaN(Se.Hc)?Se.maximum:Math.min(Se.Hc,Se.maximum)),yu.height+=or,Zs+=Se.minimum;for(var Oa=1;Oa=a.columnCount);Oa++)Se=a.Eb(mo.column+Oa),or=0,or=qr===Le||qr===rn?Math.max(Se.minimum,xa[mo.column+Oa]===0?Se.maximum:Math.min(xa[mo.column+Oa],Se.maximum)):Math.max(Se.minimum,isNaN(Se.Hc)?Se.maximum:Math.min(Se.Hc,Se.maximum)),yu.width+=or,U0+=Se.minimum;wr.width+=yu.width,wr.height+=yu.height;var Xc=mo.margin,_h=Xc.right+Xc.left,Ep=Xc.top+Xc.bottom;mo.measure(wr.width,wr.height,U0,Zs);for(var Qc=mo.measuredBounds,Nl=Math.max(Qc.width+_h,0),jd=Math.max(Qc.height+Ep,0),$h=0,Zc=0;Zc=a.rowCount);Zc++)Se=a.Fb(mo.row+Zc),$h+=Se.total||0;if($h=sh)&&!(mo.row+Su>=a.rowCount);Su++){Se=a.Fb(mo.row+Su);var lh=Se.oa||0,zd=ah(mo,Se,ql);Se.actual=Math.min(Se.maximum,lh+zd),Se.oa!==lh&&(sh-=Se.oa-lh)}for(;0cl&&(Se.actual=Math.min(Se.maximum,cl+sh),Se.oa!==cl&&(sh-=Se.oa-cl)),Se.index===0)break;Se=a.Fb(Se.index-1)}}for(var Tg=0,uh=0;uh=a.columnCount);uh++)Se=a.Eb(mo.column+uh),Tg+=Se.total||0;if(Tg=Fg)&&!(mo.column+Rd>=a.columnCount);Rd++){Se=a.Eb(mo.column+Rd);var Ap=Se.oa||0,Uy=xu(mo,Se,Wy);Se.actual=Math.min(Se.maximum,Ap+Uy),Se.oa!==Ap&&(Fg-=Se.oa-Ap)}for(;0Y0&&(Se.actual=Math.min(Se.maximum,Y0+Fg),Se.oa!==Y0&&(Fg-=Se.oa-Y0)),Se.index===0)break;Se=a.Eb(Se.index-1)}}}}ei(Ht),Xe.free(yu),Xe.free(wr),gl!==void 0&&ei(gl),xa!==void 0&&ei(xa);var Bg=0,bg=0,V0=a.desiredSize,fx=a.maxSize;qr=ws(a,!0);var Np=pu=Zl=0,Tp=0;z=a.columnCount;for(var K0=0;K0=a.rowCount);Se++){var Tn=a.Fb(zt+Se);Tn.oa!==0&&(Tt.height+=Tn.total)}for(Se=1;Se=a.columnCount);Se++)Tn=a.Eb(Ut+Se),Tn.oa!==0&&(Tt.width+=Tn.total);var Cn=Xt.oa+Tt.width,ui=Ht.oa+Tt.height;Se=ot,Tn=rt;var ki=Cn,ir=ui,lr=ot,Zr=rt,or=Cn,eh=ui;ot+Cn>x.width&&(or=Math.max(x.width-ot,0)),rt+ui>x.height&&(eh=Math.max(x.height-rt,0));var Eo=Qe.alignment;if(Eo.Xb()){Eo=a.defaultAlignment,Eo.sb()||(Eo=gi);var ul=Eo.x,Jr=Eo.y,nh=Eo.offsetX;Eo=Eo.offsetY;var ra=Xt.alignment,Da=Ht.alignment;ra.sb()&&(ul=ra.x,nh=ra.offsetX),Da.sb()&&(Jr=Da.y,Eo=Da.offsetY)}else ul=Eo.x,Jr=Eo.y,nh=Eo.offsetX,Eo=Eo.offsetY;(isNaN(ul)||isNaN(Jr))&&(Jr=ul=.5,Eo=nh=0),ra=Ae.width,Da=Ae.height;var Ks=Qe.margin,Ds=Ks.left+Ks.right,Kh=Ks.top+Ks.bottom,hl=ol(Qe,Ht,Xt,!1);!isNaN(Qe.desiredSize.width)||hl!==Le&&hl!==rn||(ra=Math.max(Cn-Ds,0)),!isNaN(Qe.desiredSize.height)||hl!==Le&&hl!==mn||(Da=Math.max(ui-Kh,0)),Cn=Qe.maxSize,ui=Qe.minSize,ra=Math.min(Cn.width,ra),Da=Math.min(Cn.height,Da),ra=Math.max(ui.width,ra),Da=Math.max(ui.height,Da),Cn=Da+Kh,Se+=ki*ul-(ra+Ds)*ul+nh+Ks.left,Tn+=ir*Jr-Cn*Jr+Eo+Ks.top,Qe.visible&&(Er(lr,Zr,or,eh,Se,Tn,Ae.width,Ae.height)?Qe.arrange(Se,Tn,ra,Da):Qe.arrange(Se,Tn,ra,Da,new de(lr,Zr,or,eh)))}}}for(Xe.free(Tt),a=0;a=x&&(x=1);var E=a.gridCellSize,b=E.width;E=E.height;var z=a.naturalBounds,tt=a.actualBounds,ot=z.width,rt=z.height,at=Math.ceil(ot/b),ut=Math.ceil(rt/E),ct=a.gridOrigin,mt=ct.x;ct=ct.y,y.save(),y.beginPath(),y.rect(0,0,ot,rt),y.clip(),y.Se();for(var yt=[],St=a.O.s,Mt=St.length,Dt=0;DtHt)){Tt=pv(Tt.figure);for(var Ut=0;UtHt&&zt.push(Xt))}}}}for(St=a.O.s,Mt=St.length,Dt=0;Dtb*Tt*x))){if(Ht=ie.segmentIndex,(!isFinite(Ht)||isNaN(Ht))&&(Ht=0),0>Ht&&(Ht=Tt-Math.min(-Ht,Tt)),Ht=Math.round(Ht%Tt),Tt=ie.opacity,Ut=1,Tt!==1){if(Tt===0)continue;Ut=y.globalAlpha,y.globalAlpha=Ut*Tt}Xt=yt[Dt];var We=!1,qe=ie.strokeDashArray;if(qe!==null&&(We=!0,y.js(qe,ie.strokeDashOffset)),ie.figure==="LineV"&&ie.stroke!==null&&0y)return a%y===x;if(a%y!==x)return!1;y=E.length;for(var b=0;bct)zt.measure(1/0,1/0,0,0),Ht=zt.measuredBounds,x.ed(Ht),yt.push(Ht);else{var Ut=zt.segmentIndex,Xt=zt.segmentFraction,ie=zt.alignmentFocus;ie.Mc()&&(ie=gi);var We=zt.segmentOrientation,qe=zt.segmentOffset;if(isNaN(Ut)){var Qe=rt.ua;Ht=$n(),Qe.Qu(Xt,Ht);var Ae=jt.allocAt(Ht[0],Ht[1]);if(Ae.add(rt.i(0)),Qe.type===be.j?Ae.offset(-Qe.startX,-Qe.startY):(Qe=Qe.figures.first(),Qe!==null&&Ae.offset(-Qe.startX,-Qe.startY)),Qe=Ht[2],We!==ds){var Se=rt.computeAngle(zt,We,Qe);zt.Kb=Se}Se=Ae.x-y.x;var Tn=Ae.y-y.y;jt.free(Ae),ei(Ht)}else if(Ut<-ct||Ut>=ct)Ht=jt.alloc(),rt.vg(),rt.computeMidPoint(Ht),Qe=rt.midAngle,We!==ds&&(Se=rt.computeAngle(zt,We,Qe),zt.Kb=Se),Se=Ht.x-y.x,Tn=Ht.y-y.y,jt.free(Ht);else{if(Se=0,0<=Ut?(Tn=ut.M(Ut),Ht=UtCn+10?0<=Ut?Qe.ab(Tn):Tn.ab(Qe):Cn>Ae+10?0<=Ut?Ht.ab(Se):Se.ab(Ht):0<=Ut?Qe.ab(Se):Se.ab(Qe)}else Qe=0<=Ut?Tn.ab(Ht):Ht.ab(Tn);We!==ds&&(Se=rt.computeAngle(zt,We,Qe),zt.Kb=Se),Se=Tn.x+(Ht.x-Tn.x)*Xt-y.x,Tn=Tn.y+(Ht.y-Tn.y)*Xt-y.y}zt.measure(1/0,1/0,0,0),Ht=zt.measuredBounds,Ae=zt.naturalBounds;var ui=0;zt instanceof bn&&(ui=zt.strokeWidth),Cn=Ae.width+ui;var ki=Ae.height+ui;St.reset(),St.translate(-Ht.x,-Ht.y),St.scale(zt.scale,zt.scale),St.rotate(We===ds?zt.angle:Qe,Cn/2,ki/2),We!==qf&&We!==$f||St.rotate(90,Cn/2,ki/2),We!==_f&&We!==tp||St.rotate(-90,Cn/2,ki/2),We===qm&&(45Qe||225Qe)&&St.rotate(-Qe,Cn/2,ki/2),Ae=new de(0,0,Cn,ki),Mt.xi(Ae,ie),St.Ga(Mt),ie=-Mt.x+ui/2*zt.scale,zt=-Mt.y+ui/2*zt.scale,Dt.assign(qe),ui=isNaN(qe.x);var ir=isNaN(qe.y);if(ui||ir){Cn=Cn/2+3,ki=ki/2+3;var lr=45<=Qe&&135>=Qe,Zr=225<=Qe&&315>=Qe;We===ds&&(lr||Zr)?(Dt.x=ir?Cn:qe.y,Dt.y=ui?ki:qe.x,lr?0<=Ut||isNaN(Ut)&&.5>Xt||!ui||(Dt.y=-ki):Zr&&((0<=Ut||isNaN(Ut)&&.5>Xt)&&ui&&(Dt.y=-ki),ir&&(Dt.x=-Cn))):(ui&&(Dt.x=0<=Ut||isNaN(Ut)&&.5>Xt?Cn:-Cn),ir&&(Dt.y=-ki),Dt.rotate(Qe))}else Dt.rotate(Qe);Se+=Dt.x,Tn+=Dt.y,Ae.set(Ht),Ae.h(Se+ie,Tn+zt,Ht.width,Ht.height),yt.push(Ae),x.ed(Ae)}}if(tt!==null)for(E=tt.labelNodes;E.next();)E.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),As(b,x.width||0,x.height||0),Rn.free(St),jt.free(Mt),jt.free(Dt)}}}},Pm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof ri||a instanceof Ne){var E=a,b=null;a instanceof ri&&(b=a,E=b.adornedPart);var z=a instanceof ri?null:E.path,tt=a.j;if(tt.length!==0){var ot=0;if(z!==null&&ot=x)St=jt.alloc(),yt=ct,Dt=St,yt.vg(),yt.computeMidPoint(Dt),yt=ct.midAngle,at!==ds&&(ct=ct.computeAngle(tt,at,yt),tt.angle=ct),ct=St.x,Dt=St.y,jt.free(St);else{if(Mt=0,0<=ot?(St=y.s[ot],Dt=otzt+10?0<=ot?yt.ab(St):St.ab(yt):zt>Tt+10?0<=ot?Dt.ab(Mt):Mt.ab(Dt):0<=ot?yt.ab(Mt):Mt.ab(yt)}else yt=0<=ot?St.ab(Dt):Dt.ab(St);at!==ds&&(ct=ct.computeAngle(tt,at,yt),tt.angle=ct),ct=St.x+(Dt.x-St.x)*rt,Dt=St.y+(Dt.y-St.y)*rt}if(mt.ys())tt.location=new jt(ct,Dt);else{mt.Mc()&&(mt=gi),St=Rn.alloc(),St.reset(),St.scale(tt.scale,tt.scale),St.rotate(tt.angle,0,0);var Ht=tt.naturalBounds;Mt=de.allocAt(0,0,Ht.width,Ht.height),Tt=jt.alloc(),Tt.xi(Mt,mt),St.Ga(Tt),mt=-Tt.x,zt=-Tt.y;var Ut=Ht.width,Xt=Ht.height;Ht=jt.alloc(),Ht.assign(ut);var ie=isNaN(ut.x),We=isNaN(ut.y);if(ie||We){Ut=Ut/2+3,Xt=Xt/2+3;var qe=45<=yt&&135>=yt,Qe=225<=yt&&315>=yt;at===ds&&(qe||Qe)?(Ht.x=We?Ut:ut.y,Ht.y=ie?Xt:ut.x,qe?0<=ot||isNaN(ot)&&.5>rt||!ie||(Ht.y=-Xt):Qe&&((0<=ot||isNaN(ot)&&.5>rt)&&ie&&(Ht.y=-Xt),We&&(Ht.x=-Ut))):(ie&&(Ht.x=0<=ot||isNaN(ot)&&.5>rt?Ut:-Ut),We&&(Ht.y=-Xt),Ht.rotate(yt))}else Ht.rotate(yt);ct+=Ht.x,Dt+=Ht.y,St.pp(Mt),mt+=Mt.x,zt+=Mt.y,ot=jt.allocAt(ct+mt,Dt+zt),tt.move(ot),jt.free(ot),jt.free(Ht),jt.free(Tt),de.free(Mt),Rn.free(St)}}b!==null?b.Ul(!1):E.Ul(!1),E=B1(a),a.location.h(a.position.x+E.x,a.position.y+E.y),jt.free(E)}};function i1(a,y,x,E){if(ea(E)!==!1){var b=E.strokeWidth;b===0&&a instanceof ri&&a.type===ke.Link&&a.adornedObject instanceof bn&&(b=a.adornedObject.strokeWidth),b*=E.Ca,a instanceof Ne&&a.ua!==null?(a=a.geometry.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):a instanceof ri&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):E.Ge(-(b/2),-(b/2),y+b,x+b),b=E.desiredSize,b.w()||E.ua===null?E.dc.h(0,0,b.width,b.height):E.dc.assign(E.ua.bounds),zo(E,!1)}}function Rf(){this.xa="Base"}ye(Rf,Yo),Rf.prototype.measure=function(a,y,x,E,b,z,tt){var ot=a.Pb();a.graduatedBounds=[];var rt=ot.margin,at=rt.right+rt.left,ut=rt.top+rt.bottom;ot.measure(y,x,z,tt);var ct=ot.measuredBounds,mt=new de(-rt.left,-rt.top,Math.max(ct.width+at,0),Math.max(ct.height+ut,0));a.graduatedBounds.push(mt),b.assign(mt);for(var yt=ot.geometry,St=ot.strokeWidth,Mt=yt.flattenedSegments,Dt=yt.flattenedLengths,Tt=yt.flattenedTotalLength,zt=Mt.length,Ht=0,Ut=0,Xt=$n(),ie=0;ieCn&&(Cn+=360),qe.push(Cn)}Ht=Se,Ut=Tn}Xt.push(qe)}if(a.graduatedIntervals===null){for(var ui=[],ki=a.O.s,ir=ki.length,lr=0;lreh)){for(var Eo=0;Eoeh&&or.push(Jr)}}}}}a.graduatedIntervals=ui}var nh=a.graduatedIntervals,ra=a.O.s,Da=ra.length,Ks=0,Ds=0,Kh=Tt;a.graduatedMarks=[];for(var hl,Gc=0;GcMp*qr*Tt/a.graduatedRange&&Xs.graduatedSkip===null)){var kg=Dt[0][0],kl=0,Is=0;Ds=Tt*Xs.graduatedStart-1e-4,Kh=Tt*Xs.graduatedEnd+1e-4;var bd=Mp*qr,Qs=a.graduatedTickBase;if(Qsa.graduatedMin+bd&&(Qs-=Math.floor((Qs-a.graduatedMin)/bd)*bd);for(var R0=nh[Gc],Lp=Qs,Gy=1e-6*a.graduatedMax,Zl=1;Qs<=a.graduatedMax+Gy;Zl++){t:{for(var pu=R0.length,Eg=0;Eg-Hc){var Zh=!1;break t}}Zh=!0}if(Zh&&(Qs>a.graduatedMax&&(Qs=a.graduatedMax),Xs.graduatedSkip===null||Xs instanceof Ai&&!Xs.graduatedSkip(Qs,Xs)||Xs instanceof bn&&!Xs.graduatedSkip(Qs,Xs))&&(Ks=(Qs-a.graduatedMin)*Tt/a.graduatedRange,Ks>Tt&&(Ks=Tt),Ds<=Ks&&Ks<=Kh)){for(var Jl=Xt[kl][Is],ih=Dt[kl][Is];klkg&&Ismu&&.4995mu?0mu||.9995Ag){var Uc=1-Math.abs(.5-mu);Jl=(dl*Uc+Al*(1-Uc))%360;break t}}}Jl=dl}if(Xs instanceof Ai){var Ja="";Xs.graduatedFunction!==null?(Ja=Xs.graduatedFunction(Qs,Xs),Ja=Ja!=null?Ja.toString():""):Ja=(+Qs.toFixed(2)).toString(),Ja!==""&&hl.push({$l:Wc,angle:Jl,text:Ja})}else hl.push({$l:Wc,angle:Jl})}Qs=Lp+Zl*bd}}}a.graduatedMarks.push(hl)}ei(Xt);var wr=a.graduatedMarks;if(wr!==null)for(var kp=E.length,ms=0;msqa;qa++){switch(qa){case 0:js.h(yu,gl);break;case 1:js.h(yu+Yc,gl);break;case 2:js.h(yu,gl+Od);break;case 3:js.h(yu+Yc,gl+Od)}js.rotate(mo+Ao.angle),js.offset(W0,Kc),Vc===0&&qa===0?xa.h(js.x,js.y,0,0):xa.Ye(js),js.offset(-W0,-Kc),js.rotate(-mo-Ao.angle)}jt.free(js),vu.graduatedBounds!==null&&vu.graduatedBounds.push(xa),yo(oh,xa.x,xa.y,xa.width,xa.height)}else if(Ao instanceof Ai){var Ia=a,U0=b;Ia.temporaryTextBlock===null&&(Ia.temporaryTextBlock=new Ai);var Zs=Ia.temporaryTextBlock;y1(Zs,Ao);var rh=Ao.alignmentFocus;rh.Mc()&&(rh=Js);for(var Oa=Ao.segmentOrientation,Xc=Ao.segmentOffset,_h=new de,Ep=0,Qc=0,Nl=0,jd=0,$h=0,Zc=vs.length,sh=0;shNl||225Nl)&&cl.rotate(-Nl,lh/2,zd/2);var Tg=de.allocAt(0,0,lh,zd),uh=jt.alloc();uh.xi(Tg,rh),cl.Ga(uh);var Fg=-uh.x,Wy=-uh.y,xu=jt.alloc();xu.assign(Xc),isNaN(xu.x)&&(xu.x=lh/2+3),isNaN(xu.y)&&(xu.y=-(zd/2+3)),xu.rotate(Nl),Ep+=xu.x+Fg,Qc+=xu.y+Wy;var Rd=new de(Ep,Qc,ah.width,ah.height),Ap=new de(ah.x,ah.y,ah.width,ah.height),Uy=new de(Su.x,Su.y,Su.width,Su.height);ql.Sz=jd,ql.lineCount=Zs.lineCount,ql.lines=[Zs.Cb,Zs.Ih,Zs.df,Zs.Le,Zs.Qc,Zs.Qb,Zs.ze],ql.actualBounds=Rd,ql.measuredBounds=Ap,ql.naturalBounds=Uy,sh===0?_h.assign(Rd):_h.ed(Rd),jt.free(xu),jt.free(uh),de.free(Tg),Rn.free(cl)}Ia.graduatedBounds!==null&&Ia.graduatedBounds.push(_h),yo(U0,_h.x,_h.y,_h.width,_h.height)}zo(Ao,!1)}}},Rf.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var E=a.Pb(),b=a.graduatedMarks;if(b!==null){var z=a.graduatedBounds,tt=0,ot=z[tt];tt++,E!==null&&E.arrange(ot.x-x.x,ot.y-x.y,ot.width,ot.height);for(var rt=y.length,at=0;at=tt&&(tt=1);for(var ot=z.actualBounds,rt=a.O.s,at=a.graduatedMarks,ut=rt.length,ct=0;cta.graduatedTickUnit*mt.interval*z.geometry.flattenedTotalLength/a.graduatedRange*tt&&mt.graduatedSkip===null)){var Mt=mt.measuredBounds,Dt=mt.strokeWidth*mt.scale,Tt=mt.alignmentFocus;Tt.Mc()&&(Tt=Js);for(var zt=0;zttt.height)continue}else if(at.position>tt.width)continue;var ut=at.separatorStrokeWidth;isNaN(ut)&&(ut=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var ct=at.separatorStroke;if(ct===null&&(ct=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ut!==0&&ct!==null){ho(a,y,ct,!1,!1,tt,z),ct=!1;var mt=at.separatorDashArray;mt===null&&(mt=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),mt!==null&&(ct=!0,y.js(mt,0)),y.beginPath(),mt=at.position+ut,x?mt>tt.height&&(ut-=mt-tt.height):mt>tt.width&&(ut-=mt-tt.width),at=at.position+ut/2,y.lineWidth=ut,ut=a.yb,x?(at+=ut.top,mt=tt.width-ut.right,y.moveTo(ut.left,at),y.lineTo(mt,at)):(at+=ut.left,mt=tt.height-ut.bottom,y.moveTo(at,ut.top),y.lineTo(at,mt)),y.stroke(),y.Se(),ct&&y.fs()}}}}function wm(a,y,x,E,b){for(var z=E.length,tt=a.actualBounds,ot=a.naturalBounds,rt=r1(a,!0),at=r1(a,!1),ut=0;utmt)){var yt=ct.Wc(),St=ct.separatorStrokeWidth;isNaN(St)&&(St=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Mt=ct.separatorStroke;Mt===null&&(Mt=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Mt===null||ct.index===(x?rt:at))&&(St=0),yt-=St,St=ct.position+St,yt+=ct.actual,St+yt>mt&&(yt=mt-St),0>=yt||(mt=a.yb,ho(a,y,ct.background,!0,!1,ot,tt),x?y.fillRect(mt.left,St+mt.top,tt.width-(mt.left+mt.right),yt):y.fillRect(St+mt.left,mt.top,yt,tt.height-(mt.top+mt.bottom)))}}}}function r1(a,y){for(var x=y?a.rowCount:a.columnCount,E=0;EE&&b.set(St),jt.free(St)),jt.free(ut),z&&b.transform(tt),at},wt.Gj=function(){for(var a=this.O.s,y=a.length,x=0;xx||z>E)&&(this.v(),this.measure(y>x?x:y,z>E?E:z,0,0));break;case Le:this.v(!0),this.measure(x+ot,E+tt,0,0);break;case rn:this.v(!0),this.measure(x+ot,z+tt,0,0);break;case mn:this.v(!0),this.measure(y+ot,E+tt,0,0)}}this.na.arrange(this,b,this.jg)}},wt.gh=function(a){var y=this.naturalBounds,x=gu(this);if(Er(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var E=y.length,b=jt.allocAt(0,0);E--;){var z=y[E];if((z.visible||z===x)&&(wo(b.set(a),z.transform),z.ca(b)))return jt.free(b),!0}return jt.free(b),!(this.Ma===null&&this.areaBackground===null)}return!1},wt.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,E=0;Emt.width||ct.y>mt.height||0>ct.x+ct.width||0>ct.y+ct.height||(ct=ut,ut=ut instanceof ke?ut:null,mt=Rn.alloc(),mt.set(tt),(ut!==null?ut.Cf(a,y,x,E,b,mt):nr(ct,a,E,mt))&&(y!==null&&(ct=y(ct)),ct===null||x!==null&&!x(ct)||b.add(ct)),Rn.free(mt))}}return z===void 0&&Rn.free(tt),E}return z===void 0&&Rn.free(tt),!1};function mv(a,y,x,E){for(var b=a.O.s,z=b.length;z--;){var tt=b[z];if(tt.visible){var ot=tt.actualBounds,rt=a.naturalBounds;ot.x>rt.width||ot.y>rt.height||0>ot.x+ot.width||0>ot.y+ot.height||(tt instanceof ke&&mv(tt,y,x,E),y!==null&&(tt=y(tt)),tt===null||x!==null&&!x(tt)||E.add(tt))}}}wt.og=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;x===void 0&&(x=null),E===void 0&&(E=null);var tt=this.naturalBounds,ot=this.se(),rt=ot?a:wo(jt.allocAt(a.x,a.y),this.transform),at=ot?y:wo(jt.allocAt(y.x,y.y),this.transform),ut=rt.Bf(at),ct=0Dt.width||Mt.y>Dt.height||0>Mt.x+Mt.width||0>Mt.y+Mt.height))&&(St.se()?(Mt=St.transform,wo(rt.set(a),Mt),wo(at.set(y),Mt)):(rt.set(a),at.set(y)),Mt=St,St=St instanceof ke?St:null,(St!==null?St.og(rt,at,x,E,b,z):Mt.tx(rt,at,b))&&(x!==null&&(Mt=x(Mt)),Mt===null||E!==null&&!E(Mt)||z.add(Mt)))}}jt.free(rt),jt.free(at)}return b?ct:tt}return!1};function vv(a){var y=null;return a instanceof bn&&(y=a.spot1,y===rr&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=yr),y}function yv(a){var y=null;return a instanceof bn&&(y=a.spot2,y===rr&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=ys),y}wt.add=function(a){for(var y=[],x=0;x=b.count&&a>=b.count)return;b.mb(z),E=z}else ee("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>b.count)&&(a=b.count),b.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),ea(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof ke&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Mm(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof Ke&&(x.Te=!0),x.Te&&x instanceof Ke&&(x.wc=null),b=this.diagram,b!==null&&b.undoManager.isUndoingRedoing||(E!==-1&&x.cb(Uo,"elements",this,y,null,E,null),x.cb(Co,"elements",this,null,y,null,a)))};function Sv(a,y){a.l=y?a.l|16777216:a.l&-16777217}wt.remove=function(a){for(var y=this.O.s,x=y.length,E=-1,b=0;ba&&_n(a,">= 0",ke,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Ro;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(Co,"rowdefs",this,null,x,null,a)}return y[a]},wt.oA=function(a){if(0>a&&_n(a,">= 0",ke,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(Uo,"rowdefs",this,x,null,a,null),this.v()}}};function h1(a,y,x){var E=a.rowDefs;if(!(0>y)){if(E[y]=x instanceof Ro?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}wt.Eb=function(a){0>a&&_n(a,">= 0",ke,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Ro;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(Co,"coldefs",this,null,x,null,a)}return y[a]},wt.jA=function(a){if(0>a&&_n(a,">= 0",ke,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(Uo,"coldefs",this,x,null,a,null),this.v()}}};function d1(a,y,x){var E=a.colDefs;if(!(0>y)){if(E[y]=x instanceof Ro?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}wt.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Lm(y,a),this},wt.Hy=function(a,y){return(a=this.Fb(a))&&Lm(a,new Ro(y)),this},wt.By=function(a,y){return(a=this.Eb(a))&&Lm(a,new Ro(y)),this},wt.nz=function(a){if(0>a||this.type!==ke.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,E=x.length,b=this.topIndex;ba||this.type!==ke.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,E=x.length,b=this.leftIndex;ba;)this.pc(this.O.length-1,!1);c1(this,this.itemArray)};function c1(a,y){var x=Gf(a);if(y===null||y.length===0)for(;a.O.length>x;)a.pc(a.O.length-1,!1);else if(a.O.length<=x){x=y.length;for(var E=0;Ex)){var b=Pv(a,y);if(b=wv(a,b),b!==null){if(Fa(b),b=b.copy(),b.l&16777216){var z=a.ih();z!==null&&Sv(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new En),a.ge.add(y,b)),z=x+Gf(a),a.Gb(z,b),E&&(b.ub=y,xv(a,z,x),b.ub=null),b.data=y}}}function xv(a,y,x){for(a=a.O;ya&&_n(a,">= 0",ke,"padding"),a=new jn(a)):(0>a.left&&_n(a.left,">= 0",ke,"padding:value.left"),0>a.right&&_n(a.right,">= 0",ke,"padding:value.right"),0>a.top&&_n(a.top,">= 0",ke,"padding:value.top"),0>a.bottom&&_n(a.bottom,">= 0",ke,"padding:value.bottom"));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.v(),this.g("padding",y,a))}},defaultAlignment:{get:function(){return this.Tm},set:function(a){var y=this.Tm;y.D(a)||(this.Tm=a=a.J(),this.v(),this.g("defaultAlignment",y,a))}},defaultStretch:{get:function(){return this.Uf},set:function(a){var y=this.Uf;y!==a&&(this.Uf=a,this.v(),this.g("defaultStretch",y,a))}},defaultSeparatorPadding:{get:function(){return this.T!==null?this.T.Qp:za},set:function(a){typeof a=="number"&&(a=new jn(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new ma),this.T.Qp=a,this.v(),this.g("defaultSeparatorPadding",y,a))}},defaultRowSeparatorStroke:{get:function(){return this.T!==null?this.T.ia:null},set:function(a){var y=this.defaultRowSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof fi)&&(a instanceof fi&&a.freeze(),this.T===null&&(this.T=new ma),this.T.ia=a,this.N(),this.g("defaultRowSeparatorStroke",y,a))}},defaultRowSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.Ha:1},set:function(a){var y=this.defaultRowSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new ma),this.T.Ha=a,this.v(),this.g("defaultRowSeparatorStrokeWidth",y,a))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(a){var y=this.defaultRowSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;ba)&&ee("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new ma),this.T.Hb=a,this.v(),this.g("topIndex",y,a))}},leftIndex:{get:function(){return this.T!==null?this.T.hb:0},set:function(a){var y=this.leftIndex;y!==a&&((!isFinite(a)||0>a)&&ee("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new ma),this.T.hb=a,this.v(),this.g("leftIndex",y,a))}},data:{get:function(){return this.ub},set:function(a){var y=this.ub;if(y!==a){var x=this instanceof hn&&!(this instanceof ri);Fa(this),this.ub=a;var E=this.diagram;E!==null&&(x?(x=E.partManager,this instanceof Ne?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof hn&&(y!==null&&x.cf.remove(y),a!==null&&x.cf.add(a,this))):(x=this.panel,x!==null&&x.ge!==null&&(y!==null&&x.ge.remove(y),a!==null&&x.ge.add(a,this)))),this.g("data",y,a),E!==null&&E.undoManager.isUndoingRedoing||a!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(a){var y=this.zn;y!==a&&(this.zn=a,this.g("itemIndex",y,a))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new gg),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&yx(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&ly(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&ay(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||c1(this,a)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(a){if(this.itemTemplateMap===null){if(a===null)return;this.itemTemplateMap=new En}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof hn||a.isPanelMain)&&ee("Panel.itemTemplate must not be a Part or be Panel.isPanelMain: "+a),this.itemTemplateMap.add("",a),this.g("itemTemplate",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv())}},itemTemplateMap:{get:function(){return this.A!==null?this.A.Pc:null},set:function(a){var y=this.itemTemplateMap;if(y!==a){for(var x=a.iterator;x.next(););On(this),this.A.Pc=a,this.g("itemTemplateMap",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv()}}},itemCategoryProperty:{get:function(){return this.A!==null?this.A.Oc:"category"},set:function(a){var y=this.itemCategoryProperty;y!==a&&(On(this),this.A.Oc=a,this.g("itemCategoryProperty",y,a))}},isAtomic:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("isAtomic",y,a))}},isClipping:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this instanceof Fn&&(this.tb=null),this.v(),this.g("isClipping",y,a))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(a){var y=(this.l&33554432)!==0;y!==a&&(this.l^=33554432,this.v(),this.g("isOpposite",y,a))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;if(y!==a){var x=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",y,a),y=this.diagram,y!==null&&y.undoManager.isUndoingRedoing||x&&Mm(this,this,a)}}},alignmentFocusName:{get:function(){return this.$e},set:function(a){var y=this.$e;y!==a&&(this.$e=a,this.v(),this.g("alignmentFocusName",y,a))}}}),he.Object.defineProperties(ke,{Position:{get:function(){return Ya.I("Position")}},Horizontal:{get:function(){return Ya.I("Horizontal")}},Vertical:{get:function(){return Ya.I("Vertical")}},Spot:{get:function(){return Ya.I("Spot")}},Auto:{get:function(){return Ya.I("Auto")}},Table:{get:function(){return Ya.I("Table")}},Viewbox:{get:function(){return Ya.I("Viewbox")}},TableRow:{get:function(){return Ya.I("TableRow")}},TableColumn:{get:function(){return Ya.I("TableColumn")}},Link:{get:function(){return Ya.I("Link")}},Grid:{get:function(){return Ya.I("Grid")}},Graduated:{get:function(){return Ya.I("Graduated")}}}),ke.prototype.rebuildItemElements=ke.prototype.mv,ke.prototype.findItemPanelForData=ke.prototype.sx,ke.prototype.updateTargetBindings=ke.prototype.La,ke.prototype.copyTemplate=ke.prototype.Uy,ke.prototype.graduatedValueForPoint=ke.prototype.Gz,ke.prototype.graduatedPointForValue=ke.prototype.Fz,ke.prototype.findColumnForLocalX=ke.prototype.fz,ke.prototype.findRowForLocalY=ke.prototype.nz,ke.prototype.addColumnDefinition=ke.prototype.By,ke.prototype.addRowDefinition=ke.prototype.Hy,ke.prototype.addRowColumnDefinition=ke.prototype.Gy,ke.prototype.removeColumnDefinition=ke.prototype.jA,ke.prototype.getColumnDefinition=ke.prototype.Eb,ke.prototype.removeRowDefinition=ke.prototype.oA,ke.prototype.getRowDefinition=ke.prototype.Fb,ke.prototype.removeAt=ke.prototype.mb,ke.prototype.remove=ke.prototype.remove,ke.prototype.insertAt=ke.prototype.Gb,ke.prototype.elt=ke.prototype.M,ke.prototype.add=ke.prototype.add,ke.prototype.findObject=ke.prototype.fb,ke.prototype.findInVisualTree=ke.prototype.Nl,ke.prototype.walkVisualTreeFrom=ke.prototype.qm,ke.prototype.findMainElement=ke.prototype.Pb;var f1=!1,p1=null,Ya=new En;ke.className="Panel",ke.definePanelLayout=Ml,Ml("Position",new dm),Ml("Vertical",new cm),Ml("Auto",new pm),Ml("Link",new Pm);function cu(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}cu.prototype.copy=function(){var a=new cu;return a.lq=this.lq,a.F=this.F,a.ia=this.ia,a.V=this.V,a.u=this.u,a.j=this.j,a.o=this.o,a.Zh=this.Zh,a},cu.className="GradPanelSettings";function ma(){this.Pc=[],this.Oc=[],this.j=this.ob=Em,this.hb=this.Hb=0,this.Qp=za,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}ma.prototype.copy=function(a){for(var y=new ma,x=this.Pc,E=x.length,b=y.Pc,z=0;za&&_n(a,">= 0",Ro,"height"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("height",y,a))}},width:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&_n(a,">= 0",Ro,"width"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("width",y,a))}},minimum:{get:function(){return this.jj},set:function(a){var y=this.jj;y!==a&&((0>a||!isFinite(a))&&_n(a,">= 0",Ro,"minimum"),this.jj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("minimum",y,a))}},maximum:{get:function(){return this.hj},set:function(a){var y=this.hj;y!==a&&(0>a&&_n(a,">= 0",Ro,"maximum"),this.hj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("maximum",y,a))}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(this.Jb=a.J(),this.panel!==null&&this.panel.v(),this.Ob("alignment",y,a))}},stretch:{get:function(){return this.hg},set:function(a){var y=this.hg;y!==a&&(this.hg=a,this.panel!==null&&this.panel.v(),this.Ob("stretch",y,a))}},separatorPadding:{get:function(){return this.dg},set:function(a){typeof a=="number"&&(a=new jn(a));var y=this.dg;a!==null&&y!==null&&y.D(a)||(a!==null&&(a=a.J()),this.dg=a,this.panel!==null&&this.panel.v(),this.Ob("separatorPadding",y,a))}},separatorStroke:{get:function(){return this.lo},set:function(a){var y=this.lo;y!==a&&(a!==null&&fg(a,"RowColumnDefinition.separatorStroke"),a instanceof fi&&a.freeze(),this.lo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",y,a))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(a){var y=this.mo;y!==a&&(this.mo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",y,a))}},separatorDashArray:{get:function(){return this.tj},set:function(a){var y=this.tj;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;bb)){var z=E.measuredBounds,tt=Math.max(1,z.width);z=z.height;for(var ot=x[0],rt=x[1],at,ut,ct,mt,yt,St,Mt=0,Dt=$n(),Tt=2;Ttct&&(ct=1),b=x=ct,at=tt/2,ut=at!==0,Tt=0,St=Dt[Tt],ct=St[0],yt=St[1],mt=St[2],St=St[3];for(var zt=0;.1<=Mt;){if(zt===0&&(ut?(b=x,b-=at,Mt-=at,ut=!1):b=x,b===0&&(b=1)),b>Mt){ei(Dt);return}b>St?(zt=b-St,b=St):zt=0;var Ht=Math.sqrt(b*b/(1+mt*mt));if(0>ct&&(Ht=-Ht),ot+=Ht,rt+=mt*Ht,a.translate(ot,rt),a.rotate(yt),a.translate(-(tt/2),-(z/2)),zt===0&&E.hh(a,y),a.translate(tt/2,z/2),a.rotate(-yt),a.translate(-ot,-rt),Mt-=b,St-=b,zt!==0){if(Tt++,Tt===Dt.length){ei(Dt);return}St=Dt[Tt],ct=St[0],yt=St[1],mt=St[2],St=St[3],b=zt}}ei(Dt)}}wt.hh=function(a,y){var x=this.xc,E=this.Ui;if(x!==null||E!==null){var b=this.ua;if(b!==null){a.yc();var z=this.actualBounds,tt=this.naturalBounds;E!==null&&ho(this,a,E,!0,!1,tt,z);var ot=this.part,rt=this.ig;if(x===null||rt!==0||ot===null||!this.isPanelMain&&ot.Pb()!==this||(rt=ot.type===ke.Link&&ot instanceof ri&&ot.category==="Selection"&&ot.adornedObject instanceof bn&&ot.adornedPart.Pb()===ot.adornedObject?ot.adornedObject.strokeWidth:0),rt===0&&(x=null),x!==null&&rt!==0&&(ho(this,a,x,!1,!1,tt,z),a.lineWidth=rt,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,ot&&y.Gf("drawShadows")&&(z=ot.isShadowed),a.Il===!1&&(z=!1),ot=!0,x===null||E!==null&&E!=="transparent"||(ot=!1),tt=!1,rt=this.strokeDashArray,rt!==null&&(tt=!0,a.js(rt,this.strokeDashOffset)),b.type===be.j)a.beginPath(),a.moveTo(b.startX,b.startY),a.lineTo(b.endX,b.endY),x!==null&&a.jk(),a.Se();else if(b.type===be.u){var at=b.startX;rt=b.startY;var ut=b.endX,ct=b.endY;b=Math.min(at,ut);var mt=Math.min(rt,ct);at=Math.abs(ut-at),rt=Math.abs(ct-rt),a.beginPath(),a.rect(b,mt,at,rt),E!==null&&a.ng(E),x!==null&&(ot&&z&&Rl(a),a.jk(),ot&&z&&uu(a)),a.Se()}else if(b.type===be.F)at=b.startX,rt=b.startY,ut=b.endX,ct=b.endY,b=Math.abs(ut-at)/2,mt=Math.abs(ct-rt)/2,at=Math.min(at,ut)+b,rt=Math.min(rt,ct)+mt,a.beginPath(),a.moveTo(at,rt-mt),a.bezierCurveTo(at+Jt.wg*b,rt-mt,at+b,rt-Jt.wg*mt,at+b,rt),a.bezierCurveTo(at+b,rt+Jt.wg*mt,at+Jt.wg*b,rt+mt,at,rt+mt),a.bezierCurveTo(at-Jt.wg*b,rt+mt,at-b,rt+Jt.wg*mt,at-b,rt),a.bezierCurveTo(at-b,rt-Jt.wg*mt,at-Jt.wg*b,rt-mt,at,rt-mt),a.closePath(),E!==null&&a.ng(E),x!==null&&(ot&&z&&Rl(a),a.jk(),ot&&z&&uu(a)),a.Se();else if(b.type===be.o)for(b=b.figures,rt=b.length,mt=0;mtMt.sweepAngle,yt!==null?yt.endX:at.startX,yt!==null?yt.endY:at.startY)}else if(yt=Gs(Mt,at),Dt=yt.length,Dt===0)a.lineTo(Mt.centerX,Mt.centerY);else for(var Tt=0;Tt(x.startX-x.endX)*(a.x-x.endX)+(x.startY-x.endY)*(a.y-x.endY)||0>E)?!1:(de.free(z),Jt.Yb(x.startX,x.startY,x.endX,x.endY,b,a.x,a.y));if(x.type===be.u){y=x.startX;var tt=x.startY,ot=x.endX;if(x=x.endY,z.x=Math.min(y,ot),z.y=Math.min(tt,x),z.width=Math.abs(ot-y),z.height=Math.abs(x-tt),this.fill===null){if(z.Bc(-E,-E),z.ca(a))return de.free(z),!1;z.Bc(E,E)}return this.stroke!==null&&z.Bc(b,b),a=z.ca(a),de.free(z),a}if(x.type===be.F){tt=x.startX,b=x.startY,ot=x.endX;var rt=x.endY;if(x=Math.min(tt,ot),y=Math.min(b,rt),tt=Math.abs(ot-tt)/2,b=Math.abs(rt-b)/2,x=a.x-(x+tt),y=a.y-(y+b),this.fill===null){if(tt-=E,b-=E,0>=tt||0>=b||1>=x*x/(tt*tt)+y*y/(b*b))return de.free(z),!1;tt+=E,b+=E}return this.stroke!==null&&(tt+=E,b+=E),de.free(z),0>=tt||0>=b?!1:1>=x*x/(tt*tt)+y*y/(b*b)}if(x.type===be.o)return de.free(z),this.fill===null?ch(x,a.x,a.y,b):tu(x,a,b,1=this.strokeWidth)ut=Jt.Ve(at.startX,at.startY,at.endX,at.endY,z,tt,ot,rt,b);else{if(at.startX===at.endX?(E=ct,ut=0):(y=(at.endY-at.startY)/(at.endX-at.startX),ut=ct/Math.sqrt(1+y*y),E=ut*y),y=$n(),a=new jt,Jt.Ve(at.startX+E,at.startY+ut,at.endX+E,at.endY+ut,z,tt,ot,rt,a)&&y.push(a),a=new jt,Jt.Ve(at.startX-E,at.startY-ut,at.endX-E,at.endY-ut,z,tt,ot,rt,a)&&y.push(a),a=new jt,Jt.Ve(at.startX+E,at.startY+ut,at.startX-E,at.startY-ut,z,tt,ot,rt,a)&&y.push(a),a=new jt,Jt.Ve(at.endX+E,at.endY+ut,at.endX-E,at.endY-ut,z,tt,ot,rt,a)&&y.push(a),ot=y.length,ot===0)return ei(y),!1;for(ut=!0,rt=1/0,E=0;EMath.abs(x)){if(rt=tt-ut-x*(z-E),0>a*a*x*x+at*at-rt*rt){b.x=NaN,b.y=NaN,ut=!1;break t}ct=Math.sqrt(a*a*x*x+at*at-rt*rt),ot=(-(a*a*x*rt)+a*at*ct)/(at*at+a*a*x*x)+E,a=(-(a*a*x*rt)-a*at*ct)/(at*at+a*a*x*x)+E,at=x*(ot-E)+rt+ut,rt=x*(a-E)+rt+ut,Math.abs((z-ot)*(z-ot))+Math.abs((tt-at)*(tt-at))ot){b.x=NaN,b.y=NaN,ut=!1;break t}rt=Math.sqrt(ot),ot=ut+rt,rt=ut-rt,Math.abs(ot-tt)Math.abs(St)?(Mt*=.5/St,St=.5):Mt!==0&&.5>Math.abs(Mt)&&(St*=.5/Mt,Mt=.5),Tt-=St,zt-=Mt;yt.contains(Tt,zt);)Tt-=St,zt-=Mt;for(b.x=ot,b.y=rt,Mt=0;Mtx?a-x:x-a)<(y>E?y-E:E-y)?(a=ya||Jt.$(rt.y,a))&&(rt.yy||Jt.$(rt.x,y))&&(rt.x=a&&E<=y):(a=E&&x<=a)}wt.tx=function(a,y,x){function E(Dt,Tt){for(var zt=Dt.length,Ht=0;Htb)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var b=a.Bf(y),z=b;if(1.5=b||sa(y,z,0,-ct)>=b||sa(y,z,0,ct)>=b||sa(y,z,ut,0)>=b)}else if(y.type===be.o){if(at=y.bounds,z=at.x,ot=at.y,rt=at.x+at.width,at=at.y+at.height,a.x>rt&&a.xat&&a.yb&&Qo(a.x,a.y,z,ot,rt,ot)>b&&Qo(a.x,a.y,rt,at,z,at)>b&&Qo(a.x,a.y,rt,at,rt,ot)>b)return!1;if(z=Math.sqrt(b),x){if(this.fill===null?ch(y,a.x,a.y,z):tu(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;yb)return!1;for(ot=z.segments.s,rt=ot.length,at=0;atb)return!1;break;case Nr:var mt=$n();if(Jt.Qe(tt,ut,ct.point1X,ct.point1Y,ct.point2X,ct.point2Y,ct.endX,ct.endY,.8,mt),tt=E(mt,a),ei(mt),tt||(tt=ct.endX,ut=ct.endY,a.zd(tt,ut)>b))return!1;break;case qs:if(mt=$n(),Jt.ep(tt,ut,ct.point1X,ct.point1Y,ct.endX,ct.endY,.8,mt),tt=E(mt,a),ei(mt),tt||(tt=ct.endX,ut=ct.endY,a.zd(tt,ut)>b))return!1;break;case Do:case la:mt=ct.type===Do?Gs(ct,z):La(ct,z,tt,ut);var yt=mt.length;if(yt===0){if(tt=ct.type===Do?ct.centerX:ct.endX,ut=ct.type===Do?ct.centerY:ct.endY,a.zd(tt,ut)>b)return!1;break}ct=null;for(var St=$n(),Mt=0;Mt= 0",bn,"strokeWidth:value")}},strokeCap:{get:function(){return this.Na!==null?this.Na.Hr:"butt"},set:function(a){var y=this.strokeCap;y!==a&&(typeof a!="string"||a!=="butt"&&a!=="round"&&a!=="square"?_n(a,'"butt", "round", or "square"',bn,"strokeCap"):(kd(this),this.Na.Hr=a,this.N(),this.g("strokeCap",y,a)))}},strokeJoin:{get:function(){return this.Na!==null?this.Na.Ir:"miter"},set:function(a){var y=this.strokeJoin;y!==a&&(typeof a!="string"||a!=="miter"&&a!=="bevel"&&a!=="round"?_n(a,'"miter", "bevel", or "round"',bn,"strokeJoin"):(kd(this),this.Na.Ir=a,this.N(),this.g("strokeJoin",y,a)))}},strokeMiterLimit:{get:function(){return this.Na!==null?this.Na.Jr:10},set:function(a){var y=this.strokeMiterLimit;if(y!==a&&1<=a){kd(this),this.Na.Jr=a,this.N();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeMiterLimit",y,a)}}},strokeDashArray:{get:function(){return this.Yg},set:function(a){var y=this.Yg;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;ba?a=0:1a?a=0:1(ct*ct+ut*ut)*mt*mt&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof Us&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,ct=this.spacingBelow,this.flip){case ti:a.translate(b,0),a.scale(-1,1);break;case zn:a.translate(0,z),a.scale(1,-1);break;case Pi:a.translate(b,z),a.scale(-1,-1)}if(a.yc(),ut=this.Gc,mt=(y+tt+ct)*ut,z>mt&&(E=this.verticalAlignment,E=E.y*z-E.y*mt+E.offsetY),ut===1&&this.ze!==null)ct=this.Cb,ct>b&&(ct=b),this.Oj(this.ze,a,0,E+y,b,tt,ct,x,ot,rt,at);else if(this.Qc!==null&&this.Qb!==null)for(mt=0;mtb&&(yt=b),E+=y,this.Oj(this.Qb[mt],a,0,E,b,tt,yt,x,ot,rt,at),E+=tt+ct}switch(this.flip){case ti:a.scale(-1,1),a.translate(-b,0);break;case zn:a.scale(1,-1),a.translate(0,-z);break;case Pi:a.scale(-1,-1),a.translate(-b,-z)}}},wt.Oj=function(a,y,x,E,b,z,tt,ot,rt,at,ut){var ct=0;if(ot)rt==="left"?ct=0:rt==="right"?ct=b-tt:rt==="center"&&(ct=(b-tt)/2),y.fillRect(x+ct,E+.25*z,tt,1);else{if(rt==="left"?ct=0:rt==="right"?ct=b:rt==="center"&&(ct=b/2),b=Tm!==null?Tm(this,z):.75*z,y.fillText(a,x+ct,E+b),a=z/20|0,a===0&&(a=1),rt==="right"?ct-=tt:rt==="center"&&(ct-=tt/2),at){ot=Fm!==null?Fm(this,z):.8*z,rt=x+ct,at=E+ot,b=x+ct+tt,ot=E+ot;var mt=a;y.beginPath(),y.lineWidth=mt,y.moveTo(rt,at),y.lineTo(b,ot),y.stroke(),y.Se(),y instanceof Us&&y.ad.classList.add("gojs-td")}ut&&(ut=E+z-z/2.2|0,a%2!==0&&(ut+=.5),E=x+ct,z=ut,x=x+ct+tt,tt=ut,ct=a,y.beginPath(),y.lineWidth=ct,y.moveTo(E,z),y.lineTo(x,tt),y.stroke(),y.Se(),y instanceof Us&&y.ad.classList.add("gojs-td"))}},wt.kk=function(a,y,x){if(!Qt.prototype.kk.call(this,a,y,x))return!1;if(ho(this,a,this.xc,!0,!1,this.naturalBounds,this.actualBounds),x){if(this.svg.getElementsByTagName("text").length===0)return!0;for(y=this.svg.getElementsByClassName("gojs-td"),x=0;x=this.Qb.length))){for(this.l|=16777216,at=this.Qb[rt],y=Math.max(1,a-y);Va(at)>y&&1a.maxLines&&(a.l|=16777216))}function Av(a,y,x,E){var b=a.formatting===Yf;b&&(y=y.trim());var z=0,tt=a.Ae,ot=a.spacingAbove+a.spacingBelow;ot=Math.max(0,Uf(a)+ot);var rt=a.overflow===Bm?S1(tt):0;if(a.Gc>=a.maxLines)E!==null&&E.h(0,ot);else if(tt=y,a.wrap===Ev){a.Le=1;var at=Va(y);if(rt===0||at<=x)a.Cb=Math.max(a.Cb,at),Wf(a,y,a.Cb),E!==null&&E.h(at,ot);else{for(z=Sc(a,tt),tt=tt.substr(z.length),y=Sc(a,tt),at=Va(z+y);0x&&1x;){var ct=1;for(at=Va(y.substr(0,ct)),ut=0;at<=x;)ct++,ut=at,at=Va(y.substr(0,ct));if(ct===1){var mt=at;z=Math.max(z,at)}else mt=ut,z=Math.max(z,ut);if(ct--,1>ct&&(ct=1),Wf(a,y.substr(0,ct),mt),rt++,y=y.substr(ct),a.Gc+rt>a.maxLines)break}for(ut=Sc(a,tt),at=Va(y+ut);0a.maxLines))break}a.Le=Math.min(a.maxLines,rt),a.Cb=Math.max(a.Cb,z),E!==null&&E.h(a.Cb,ot*a.Le)}}function Sc(a,y){if(a.wrap===w1)return y.substr(0,1);for(var x=y.length,E=0,b=Sx;E=y.length?y:y.substr(0,E)}function Va(a){return Cs===null?8*a.length:Cs.measureText(a).width}function Uf(a){if(a.df!==null)return a.df;var y=a.Ae;if(Cs===null){var x=16;return a.df=x}return Fv[y]!==void 0&&5e3>M1?x=Fv[y]:(x=1.3*Cs.measureText("M").width,Fv[y]=x,M1++),a.df=x}function S1(a){if(Cs===null)return 6;if(bm[a]!==void 0&&5e3>Bv)var y=bm[a];else y=Cs.measureText(Vf).width,bm[a]=y,Bv++;return y}function x1(a,y){var x=a.ec.replace(/\r\n/g,` +`,0),0<=tt&&(z=z.substr(0,tt)),z=Va(z);z=Math.min(z,a/this.scale)}else z=this.desiredSize.width;if(this.panel!==null&&(z=Math.min(z,this.panel.maxSize.width)),tt=x1(this,z),isNaN(this.desiredSize.height)?tt=Math.min(tt,y/this.scale):tt=this.desiredSize.height,rt=tt,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===Bm&&(y=this.Ae,y=this.overflow===Bm?S1(y):0,at=this.spacingAbove+this.spacingBelow,at=Math.max(0,Uf(this)+at),rt=Math.min(this.maxLines-1,Math.max(Math.floor(rt/at+.01)-1,0)),!(rt+1>=this.Qb.length))){for(this.l|=16777216,at=this.Qb[rt],y=Math.max(1,a-y);Va(at)>y&&1a.maxLines&&(a.l|=16777216))}function Ev(a,y,x,E){var b=a.formatting===Yf;b&&(y=y.trim());var z=0,tt=a.Ae,ot=a.spacingAbove+a.spacingBelow;ot=Math.max(0,Uf(a)+ot);var rt=a.overflow===Bm?S1(tt):0;if(a.Gc>=a.maxLines)E!==null&&E.h(0,ot);else if(tt=y,a.wrap===Av){a.Le=1;var at=Va(y);if(rt===0||at<=x)a.Cb=Math.max(a.Cb,at),Wf(a,y,a.Cb),E!==null&&E.h(at,ot);else{for(z=Sc(a,tt),tt=tt.substr(z.length),y=Sc(a,tt),at=Va(z+y);0x&&1x;){var ct=1;for(at=Va(y.substr(0,ct)),ut=0;at<=x;)ct++,ut=at,at=Va(y.substr(0,ct));if(ct===1){var mt=at;z=Math.max(z,at)}else mt=ut,z=Math.max(z,ut);if(ct--,1>ct&&(ct=1),Wf(a,y.substr(0,ct),mt),rt++,y=y.substr(ct),a.Gc+rt>a.maxLines)break}for(ut=Sc(a,tt),at=Va(y+ut);0a.maxLines))break}a.Le=Math.min(a.maxLines,rt),a.Cb=Math.max(a.Cb,z),E!==null&&E.h(a.Cb,ot*a.Le)}}function Sc(a,y){if(a.wrap===w1)return y.substr(0,1);for(var x=y.length,E=0,b=Sx;E=y.length?y:y.substr(0,E)}function Va(a){return Cs===null?8*a.length:Cs.measureText(a).width}function Uf(a){if(a.df!==null)return a.df;var y=a.Ae;if(Cs===null){var x=16;return a.df=x}return Fv[y]!==void 0&&5e3>M1?x=Fv[y]:(x=1.3*Cs.measureText("M").width,Fv[y]=x,M1++),a.df=x}function S1(a){if(Cs===null)return 6;if(bm[a]!==void 0&&5e3>Bv)var y=bm[a];else y=Cs.measureText(Vf).width,bm[a]=y,Bv++;return y}function x1(a,y){var x=a.ec.replace(/\r\n/g,` `).replace(/\r/g,` `),E=a.spacingAbove+a.spacingBelow;if(E=Math.max(0,Uf(a)+E),x.length===0)return a.Cb=0,a.Gc=1,E;if(!a.isMultiline){var b=x.indexOf(` `,0);0<=b&&(x=x.substr(0,b))}b=0;for(var z=a.Gc=0,tt,ot=!1;!ot;){if(tt=x.indexOf(` -`,z),tt===-1&&(tt=x.length,ot=!0),z<=tt){if(z=x.substr(z,tt-z),a.wrap!==Ev){a.Le=0;var rt=Xe.alloc();Av(a,z,y,rt),b+=rt.height,Xe.free(rt),a.Gc+=a.Le}else Av(a,z,y,null),b+=E,a.Gc++;a.Gc===a.maxLines&&(ot=!0)}z=tt+1}return a.Lq=b}he.Object.defineProperties(Ei.prototype,{font:{get:function(){return this.Ae},set:function(a){var y=this.Ae;y!==a&&(this.Ae=a,this.df=null,this.v(),this.g("font",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;a!=null?a=a.toString():a="",y!==a&&(this.ec=a,this.v(),this.g("text",y,a),this.Uc=!0)}},textAlign:{get:function(){return this.da!==null?this.da.Or:"start"},set:function(a){var y=this.textAlign;y===a||a!=="start"&&a!=="end"&&a!=="left"&&a!=="right"&&a!=="center"||(Ml(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:Pe},set:function(a){var y=this.flip;y!==a&&(Ml(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:ml},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),Ml(this),this.da.Yr=a,ls(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=Xe.alloc();Av(this,this.ec,999999,a);var y=a.width;Xe.free(a),a=x1(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),Es(this.dc,y,a)}return this.dc}},isMultiline:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this.v(),this.g("isMultiline",y,a))}},isUnderline:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;y!==a&&(this.l^=4194304,this.Uc=!0,this.N(),this.g("isUnderline",y,a))}},isStrikethrough:{get:function(){return(this.l&8388608)!==0},set:function(a){var y=(this.l&8388608)!==0;y!==a&&(this.l^=8388608,this.Uc=!0,this.N(),this.g("isStrikethrough",y,a))}},wrap:{get:function(){return this.da!==null?this.da.$r:Nv},set:function(a){var y=this.wrap;y!==a&&(Ml(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:Tv},set:function(a){var y=this.overflow;y!==a&&(Ml(this),this.da.$q=a,this.v(),this.g("overflow",y,a))}},isOverflowed:{get:function(){return(this.l&16777216)!==0}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&fg(a,"TextBlock.stroke"),a instanceof fi&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return Uf(this)}},editable:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("editable",y,a))}},textEditor:{get:function(){return this.da!==null?this.da.Qr:null},set:function(a){var y=this.textEditor;y!==a&&(Ml(this),this.da.Qr=a,this.g("textEditor",y,a))}},errorFunction:{get:function(){return this.da!==null?this.da.Hd:null},set:function(a){var y=this.errorFunction;y!==a&&(Ml(this),this.da.Hd=a,this.g("errorFunction",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new Wl),this.fa.Tk=a,this.v();var x=this.panel;x!==null&&(x.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1a?a=0:1=a&&_n(a,"> 0",Ei,"maxLines"),Ml(this),this.da.Jq=a,this.v(),this.g("maxLines",y,a))}},metrics:{get:function(){return{arrSize:this.Qc!==null?this.Qc:[this.Cb],arrText:this.Qb!==null?this.Qb:[this.ze],maxLineWidth:this.Cb,fontHeight:this.df}}},choices:{get:function(){return this.Gm},set:function(a){var y=this.Gm;y!==a&&(this.Gm=a,this.g("choices",y,a))}}});var Tm=null,Fm=null,Ev=new Me(Ei,"None",0),P1=new Me(Ei,"WrapFit",1),Nv=new Me(Ei,"WrapDesiredSize",2),w1=new Me(Ei,"WrapBreakAll",3),Tv=new Me(Ei,"OverflowClip",0),Bm=new Me(Ei,"OverflowEllipsis",1),Yf=new Me(Ei,"FormatTrim",0),C1=new Me(Ei,"FormatNone",0),Sx=/[ \u200b\u00ad]/,Fv=new Zn,M1=0,bm=new Zn,Bv=0,Vf="...",L1="",Cs=null,Dm=!1;Ei.className="TextBlock";function bv(){this.nc=!1,this.Hd=null,this.Xf=Pe,this.gq=Yf,this.Jq=1/0,this.$q=Tv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=ml,this.$r=Nv}bv.prototype.copy=function(){var a=new bv;return a.Hd=this.Hd,a.Xf=this.Xf,a.gq=this.gq,a.Jq=this.Jq,a.$q=this.$q,a.Dr=this.Dr,a.Er=this.Er,a.Or=this.Or,a.Pr=this.Pr,a.Qr=this.Qr,a.vj=this.vj,a.Yr=this.Yr,a.$r=this.$r,a},Ei.getEllipsis=function(){return Vf},Ei.setEllipsis=function(a){Vf=a,bm=new Zn,Bv=0},Ei.getBaseline=function(){return Tm},Ei.setBaseline=function(a){Tm=a},Ei.getUnderline=function(){return Fm},Ei.setUnderline=function(a){Fm=a},Ei.isValidFont=function(a){if(Dm||(Cs=ro?new Ta(null).context:null,Dm=!0),Cs===null)return!0;var y=Cs.font;if(a===y||a==="10px sans-serif")return!0;Cs.font="10px sans-serif",Cs.font=a;var x=Cs.font;if(x!=="10px sans-serif")return Cs.font=y,!0;Cs.font="19px serif";var E=Cs.font;return Cs.font=a,x=Cs.font,Cs.font=y,x!==E},Ei.FormatNone=C1,Ei.FormatTrim=Yf,Ei.None=Ev,Ei.OverflowClip=Tv,Ei.OverflowEllipsis=Bm,Ei.WrapBreakAll=w1,Ei.WrapDesiredSize=Nv,Ei.WrapFit=P1;function Wl(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Wl.prototype.copy=function(){var a=new Wl;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},Wl.className="GradElementSettings";function Ms(a,y){Qt.call(this),this.Eg=null,this.qo="",this.Xg=hh,this.Nk=Le,this.Zg=this.Hd=null,this.Mk=gi,this.Xf=Pe,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,typeof a=="string"?this.source=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}var xc;ye(Ms,Qt),Ms.prototype.cloneProtected=function(a){Qt.prototype.cloneProtected.call(this,a),a.qo=this.qo,a.element=this.Eg,a.Xg=this.Xg.J(),a.Nk=this.Nk,a.Xf=this.Xf,a.Hd=this.Hd,a.Zg=this.Zg,a.Mk=this.Mk.J(),a.en=this.en,a.rl=this.rl},Ms.prototype.qb=function(a){a===Pe||a===$e||a===Xn?this.imageStretch=a:Qt.prototype.qb.call(this,a)},Ms.prototype.toString=function(){return"Picture("+this.source+")#"+Ko(this)};function Pc(a){a===void 0&&(a=""),a!==""?xc[a]&&(delete xc[a],Im--):(xc=new Zn,Im=0)}function k1(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var E=y.Bg.copy();if(E!=null){for(E=E.iterator;E.next();){var b=E.value;b.N();var z=y.getAttribute("src")||"",tt=b.Og.I(z);if(tt!==null)for(var ot=tt.length,rt=0;rt=E.width&&(z=z+St.offsetX+(ct*St.x-E.width*St.x)),mt>=E.height&&(tt=tt+St.offsetY+(mt*St.y-E.height*St.y)),rt=Math.min(E.width,ct),ot=Math.min(E.height,mt);break;case Le:ct=E.width,mt=E.height;break;case $e:case Xn:yt===$e?(yt=Math.min(E.height/mt,E.width/ct),ct*=yt,mt*=yt):yt===Xn&&(yt=Math.max(E.height/mt,E.width/ct),ct*=yt,mt*=yt,ct>=E.width&&(z=(z+St.offsetX+(ct*St.x-E.width*St.x)/ct)*rt),mt>=E.height&&(tt=(tt+St.offsetY+(mt*St.y-E.height*St.y)/mt)*ot),rt*=1/(ct/E.width),ot*=1/(mt/E.height),ct=E.width,mt=E.height)}yt=this.Df()*y.scale;var Mt=ct*yt*mt*yt,Dt=rt*ot/Mt,Tt=x.__goCache;yt=null;var zt=xx;if(!b){if(x.sq&&Tt!==void 0&&4zt*zt)for(Tt.gi===null&&(E1(Tt,4,at,ut,x),E1(Tt,16,at,ut,x)),b=Tt.gi,at=b.length,ut=0;uta)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,x/3);var E="rr"+y+","+x+","+a,b=Jt.Mf[E];if(b!==void 0)return b;var z=a*Jt.wg;return b=new be().add(new tr(a,0,!0).add(new ai(Di,y-a,0)).add(new ai(Nr,y,a,y-z,0,y,z)).add(new ai(Di,y,x-a)).add(new ai(Nr,y-a,x,y,x-z,y-z,x)).add(new ai(Di,a,x)).add(new ai(Nr,0,x-a,z,x,0,x-z)).add(new ai(Di,0,a)).add(new ai(Nr,a,0,0,z,z,0).close())),1b.x&&a.y>b.y&&a.rightb.x&&y.y>b.y&&y.right=x.maxSelectionCount)){this.G^=4096;var E=!1;if(x!==null){E=x.skipsUndoManager,x.skipsUndoManager=!0;var b=x.selection;b.ka(),a?b.add(this):b.remove(this),b.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),x!==null&&(x.$b(),x.skipsUndoManager=E)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(a){var y=(this.G&524288)!==0;if(y!==a){this.G^=524288;var x=this.diagram;x!==null&&(x=x.highlighteds,x.ka(),a?x.add(this):x.remove(this),x.freeze()),this.g("isHighlighted",y,a),this.N(),a=this.highlightedChanged,a!==null&&a(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(a){var y=(this.G&8192)!==0;y!==a&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",y,a),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(a){var y=(this.G&262144)!==0;y!==a&&(this.G^=262144,this.g("isAnimated",y,a))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(a){var y=this.highlightedChanged;y!==a&&(Ls(this),this.P.oq=a,this.g("highlightedChanged",y,a))}},selectionObjectName:{get:function(){return this.P!==null?this.P.vr:""},set:function(a){var y=this.selectionObjectName;y!==a&&(Ls(this),this.P.vr=a,this.Ug=null,this.g("selectionObjectName",y,a))}},selectionAdornmentTemplate:{get:function(){return this.P!==null?this.P.tr:null},set:function(a){var y=this.selectionAdornmentTemplate;y!==a&&(Ls(this),this.P.tr=a,this.g("selectionAdornmentTemplate",y,a))}},selectionObject:{get:function(){if(this.Ug===null){var a=this.selectionObjectName;a!==null&&a!==""?(a=this.fb(a),a!==null?this.Ug=a:this.Ug=this):this instanceof Ne?(a=this.path,a!==null?this.Ug=a:this.Ug=this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return this.P!==null?this.P.ur:null},set:function(a){var y=this.selectionChanged;y!==a&&(Ls(this),this.P.ur=a,this.g("selectionChanged",y,a))}},resizeAdornmentTemplate:{get:function(){return this.P!==null?this.P.fr:null},set:function(a){var y=this.resizeAdornmentTemplate;y!==a&&(Ls(this),this.P.fr=a,this.g("resizeAdornmentTemplate",y,a))}},resizeObjectName:{get:function(){return this.P!==null?this.P.hr:""},set:function(a){var y=this.resizeObjectName;y!==a&&(Ls(this),this.P.hr=a,this.g("resizeObjectName",y,a))}},resizeObject:{get:function(){var a=this.resizeObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},resizeCellSize:{get:function(){return this.P!==null?this.P.gr:qo},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),Ls(this),this.P.gr=a,this.g("resizeCellSize",y,a))}},rotateAdornmentTemplate:{get:function(){return this.P!==null?this.P.ir:null},set:function(a){var y=this.rotateAdornmentTemplate;y!==a&&(Ls(this),this.P.ir=a,this.g("rotateAdornmentTemplate",y,a))}},rotateObjectName:{get:function(){return this.P!==null?this.P.jr:""},set:function(a){var y=this.rotateObjectName;y!==a&&(Ls(this),this.P.jr=a,this.g("rotateObjectName",y,a))}},rotateObject:{get:function(){var a=this.rotateObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},rotationSpot:{get:function(){return this.P!==null?this.P.lr:rr},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),Ls(this),this.P.lr=a,this.g("rotationSpot",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;y!==a&&(this.ec=a,this.g("text",y,a))}},containingGroup:{get:function(){return this.Ah},set:function(a){if(this.Zc()){var y=this.Ah;if(y!==a){a===null||this!==a&&!a.Td(this)||(this===a&&ee("Cannot make a Group a member of itself: "+this.toString()),ee("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?Vv(y,this):this instanceof Fn&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Yv(a,this):this instanceof Fn&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var E=this.data,b=x.model;if(E!==null&&b.Xj()){var z=b.wa(a!==null?a.data:null);b.mp(E,z)}}if(E=this.containingGroupChanged,E!==null&&(b=!0,x!==null&&(b=x.aa,x.aa=!0),E(this,y,a),x!==null&&(x.aa=b)),this instanceof Fn){for(x=new Ie,Ih(x,this,!0,0,!0),x=x.iterator;x.next();)if(E=x.value,E instanceof Ke)for(E=E.linksConnected;E.next();)Mc(E.value)}if(this instanceof Ke){for(x=this.linksConnected;x.next();)Mc(x.value);x=this.labeledLink,x!==null&&Mc(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&qg(y,-1,a))}}else ee("cannot set the Part.containingGroup of a Link or Adornment")}},containingGroupChanged:{get:function(){return this.P!==null?this.P.Kp:null},set:function(a){var y=this.containingGroupChanged;y!==a&&(Ls(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof Ke&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(Ls(this),this.P.Cq=a,this.g("layoutConditions",y,a))}},dragComputation:{get:function(){return this.P!==null?this.P.Up:null},set:function(a){var y=this.dragComputation;y!==a&&(Ls(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:wa},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),Ls(this),this.P.zr=a,this.N(),this.g("shadowOffset",y,a))}},shadowColor:{get:function(){return this.P!==null?this.P.yr:"gray"},set:function(a){var y=this.shadowColor;y!==a&&(Ls(this),this.P.yr=a,this.N(),this.g("shadowColor",y,a))}},shadowBlur:{get:function(){return this.P!==null?this.P.Vg:4},set:function(a){var y=this.shadowBlur;y!==a&&(Ls(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),hn.prototype.invalidateLayout=hn.prototype.C,hn.prototype.findCommonContainingGroup=hn.prototype.px,hn.prototype.isMemberOf=hn.prototype.Td,hn.prototype.findTopLevelPart=hn.prototype.sz,hn.prototype.findSubGraphLevel=hn.prototype.oz,hn.prototype.ensureBounds=hn.prototype.Va,hn.prototype.getDocumentBounds=hn.prototype.mi,hn.prototype.findObject=hn.prototype.fb,hn.prototype.moveTo=hn.prototype.moveTo,hn.prototype.invalidateAdornments=hn.prototype.Wb,hn.prototype.clearAdornments=hn.prototype.Ej,hn.prototype.removeAdornment=hn.prototype.Jf,hn.prototype.addAdornment=hn.prototype.bh,hn.prototype.findAdornment=hn.prototype.Pj,hn.prototype.updateTargetBindings=hn.prototype.La;var G1=!1;hn.className="Part",hn.LayoutNone=0,hn.LayoutAdded=1,hn.LayoutRemoved=2,hn.LayoutShown=4,hn.LayoutHidden=8,hn.LayoutNodeSized=16,hn.LayoutGroupLayout=32,hn.LayoutNodeReplaced=64,hn.LayoutStandard=127,hn.LayoutAll=16777215;function ri(a,y){a===void 0||a instanceof Yo||typeof a=="string"?hn.call(this,a):(hn.call(this),a&&(y=a)),this.G&=-257,this.Jg="Adornment",this.ue=null,this.Aw=0,this.Uw=!1,this.j=this.$a=null,y&&Object.assign(this,y)}ye(ri,hn),ri.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},ri.prototype.updateRelationshipsFromData=function(){},ri.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof Ne&&y instanceof bn){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var E=0;Ea&&(a=1);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new Ie;x.add(this),Q1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Wu),y.Ue=!1}};function Q1(a,y,x,E,b,z,tt){if(1a&&(a=2);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new Ie;x.add(this),J1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Wu),y.Ue=!1}};function J1(a,y,x,E,b,z,tt){for(var ot=z===a?!1:a.isTreeExpanded,rt=x?a.Mo():a.Sd(),at={};rt.next();){var ut=rt.value;if(ut.isTreeLink&&(ot||ut.fd||ut.bb(),ut=ut.To(a),ut!==null&&ut!==a&&!y.contains(ut))){if(y.add(ut),!ot){ut.Zb(!0),ut.oh();var ct=x?ut.Oo():ut.Po();at.vv=a,ct.all(function(mt){return function(yt){return yt===mt.vv||!yt.isTreeExpanded}}(at))&&b.Cj(ut,z)}(2b&&(b=ot.right),ot.bottom>z&&(z=ot.bottom)}}return isFinite(x)&&isFinite(E)?a.h(x,E,b-x,z-E):(y=y.location,a.h(y.x,y.y,0,0)),a},he.Object.defineProperties(ds.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new jn(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),ds.className="Placeholder";function Ne(a){hn.call(this,ke.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=gs,this.Om=0,this.Qm=gs,this.Rm=NaN,this.qj=Jv,this.po=.5,this.wd=null,this.Nb=new ze().freeze(),this.Tg=this.Mg=null,this.ml=new de,this.ua=new be,this.u=this.o=this.Sf=this.Wf=null,this.su=new jt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}ye(Ne,hn),Ne.prototype.cloneProtected=function(a){hn.prototype.cloneProtected.call(this,a),a.Qa=this.Qa&-113,a.ff=this.ff,a.gn=this.gn,a.vf=this.vf,a.uo=this.uo,a.qk=this.qk,a.Om=this.Om,a.Qm=this.Qm,a.Rm=this.Rm,a.qj=this.qj,a.po=this.po,this.ba!==null&&(a.ba=this.ba.copy())},wt=Ne.prototype,wt.Af=function(a){hn.prototype.Af.call(this,a),this.ff=a.ff,this.vf=a.vf,a.Mg=null,a.bb(),a.Sf=this.Sf;var y=a.fromPort;y!==null&&Ys(y),a=a.toPort,a!==null&&Ys(a)},wt.qb=function(a){a.classType===Ne?(a.value&2)===2?this.routing=a:a===ia||a===Ju||a===kc?this.curve=a:a===Zf||a===Qm||a===Zm?this.adjusting=a:a!==Jv&&a!==gs&&ee("Unknown Link enum value for a Link property: "+a):hn.prototype.qb.call(this,a)},wt.Xc=function(){this.ba===null&&(this.ba=new If)},wt.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),us(a)||bh(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),us(a)||bh(a)))},wt.zv=function(){return!1},wt.Av=function(){},wt.Zc=function(){return!1},Ne.prototype.computeAngle=function(a,y,x){return Ne.computeAngle(y,x)},Ne.computeAngle=function(a,y){switch(a){default:case gs:a=0;break;case Jf:a=y;break;case qf:a=y+90;break;case _f:a=y-90;break;case qv:a=y+180;break;case Jm:a=Jt.bp(y),90a&&(a-=180);break;case $f:a=Jt.bp(y+90),90a&&(a-=180);break;case tp:a=Jt.bp(y-90),90a&&(a-=180);break;case qm:if(a=Jt.bp(y),45a||225a)return 0;90a&&(a-=180)}return Jt.bp(a)};function Mc(a){var y=a.fromNode,x=a.toNode,E=null;if(y!==null?E=x!==null?y.px(x):y.containingGroup:x!==null?E=x.containingGroup:E=null,y=E,x=a.Ah,x!==y){x!==null&&Vv(x,a),a.Ah=y,y!==null&&Yv(y,a);var b=a.containingGroupChanged;if(b!==null){var z=!0,tt=a.diagram;tt!==null&&(z=tt.aa,tt.aa=!0),b(a,x,y),tt!==null&&(tt.aa=z)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=E}wt=Ne.prototype,wt.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&hn.prototype.oh.call(this)},wt.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},wt.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function $1(a,y){a.wd===null&&(a.wd=new Ie),a.wd.add(y),a.v()}wt.Vo=function(a){if(hn.prototype.Vo.call(this,a),Nd(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Gm(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||Gm(x,this,E)}Xf(this)}},wt.Wo=function(a){if(hn.prototype.Wo.call(this,a),Nd(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Hm(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||Hm(x,this,E)}Qf(this)}},wt.Lj=function(){if(this.fd=!0,this.wd!==null){var a=this.diagram;if(a!==null)for(var y=this.wd.copy().iterator;y.next();)a.remove(y.value)}this.data!==null&&(a=this.diagram,a!==null&&a.partManager.removeDataForLink(this))},Ne.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},Ne.prototype.move=function(a,y){var x=y?this.location:this.position,E=x.x;isNaN(E)&&(E=0);var b=x.y;for(isNaN(b)&&(b=0),E=a.x-E,b=a.y-b,y===!0?hn.prototype.move.call(this,a,!1):(a=jt.allocAt(x.x+E,x.y+b),hn.prototype.move.call(this,a,!1),jt.free(a)),Zu(this,E,b),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+E,x.y+b)},Ne.prototype.canRelinkFrom=function(){if(!this.relinkableFrom)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},Ne.prototype.canRelinkTo=function(){if(!this.relinkableTo)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},Ne.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(Tl),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var x=this.i(0),E=this.i(1);return a.h((x.x+E.x)/2,(x.y+E.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===ia))return this.ua.Pu(.5,a),a.add(this.i(0)),x=this.ua.figures.first(),a.offset(-x.startX,-x.startY),a;if(this.computeCurve()===ia){if(y===3){x=this.i(0),E=this.i(1);var b=this.i(2);return Jt.ax(x.x,x.y,E.x,E.y,E.x,E.y,b.x,b.y,a),a}if(E=(y-1)/3|0,x=3*(E/2|0),E%2===1){E=this.i(x),b=this.i(x+1);var z=this.i(x+2);x=this.i(x+3),Jt.ax(E.x,E.y,b.x,b.y,z.x,z.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var tt=this.flattenedLengths;for(x=this.flattenedTotalLength,b=z=E=0;Ex/2));)E+=b,z++;return y=this.i(z),z=this.i(z+1),1>Math.abs(y.x-z.x)?y.y>z.y?a.h(y.x,y.y-(x/2-E)):a.h(y.x,y.y+(x/2-E)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(x/2-E),y.y):a.h(y.x+(x/2-E),y.y):(x=(x/2-E)/b,a.h(y.x+x*(z.x-y.x),y.y+x*(z.y-y.y))),a},Ne.prototype.computeMidAngle=function(){var a=this.pointsCount;if(2>a)return NaN;if(a===2)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===ia))return this.ua.wx(.5);if(this.computeCurve()===ia&&4<=a){var y=(a-1)/3|0,x=3*(y/2|0);if(y%2===1){x=Math.floor(x),a=this.i(x),y=this.i(x+1);var E=this.i(x+2);return x=this.i(x+3),Jt.My(a.x,a.y,y.x,y.y,E.x,E.y,x.x,x.y)}if(0E/2));)b+=z,x++;if(y=this.i(x),E=this.i(x+1),1>Math.abs(y.x-E.x)&&1>Math.abs(y.y-E.y)){if(0Math.abs(y.x-E.x))return y.y>E.y?270:90;if(1>Math.abs(y.y-E.y))return y.x>E.x?180:0}return y.ab(E)},wt=Ne.prototype,wt.i=function(a){return this.Nb.s[a]},wt.dd=function(a,y){this.Nb.cd(a,y)},wt.L=function(a,y,x){this.Nb.cd(a,new jt(y,x))},wt.Kz=function(a,y){this.Nb.Gb(a,y)},wt.m=function(a,y,x){this.Nb.Gb(a,new jt(y,x))},wt.ne=function(a){this.Nb.add(a)},wt.yf=function(a,y){this.Nb.add(new jt(a,y))},wt.pv=function(a){this.Nb.mb(a)},wt.Fj=function(){this.Nb.clear()};function Zu(a,y,x){if(y!==0||x!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,x),a.defaultToPoint&&a.defaultToPoint.offset(y,x);else{for(var E=a.fd,b=new ze,z=a.Nb.iterator;z.next();){var tt=z.value;b.add(new jt(tt.x+y,tt.y+x).freeze())}b.freeze(),z=a.Nb,a.Nb=b,tt=a.diagram,isNaN(y)||isNaN(x)||tt!==null&&tt.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+x),a.pa.h(a.pa.x+y,a.pa.y+x),ls(a)),E?Um(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),tt!==null&&tt.animationManager.zb&&Jg(tt.animationManager,a,b),a.g("points",z,b)}}wt.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},wt.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,E=1/0,b=a.s,z=b.length,tt=0;ttat&&(ct=-ct),Mt=(0>rt?-1:1)*ct+yt,Dt=ut*(Mt-yt)+St),yt=z.x+2*ot/3,St=z.y+2*rt/3;var Tt=yt,zt=St;Jt.B(rt,0)?zt=0rt?-1:1)*ct+yt,zt=ut*(Tt-yt)+St),this.Fj(),this.ne(z),this.yf(Mt,Dt),this.yf(Tt,zt),this.ne(mt),this.dd(0,this.getLinkPoint(a,y,tt,!0,!1,E,b)),this.dd(3,this.getLinkPoint(E,b,x,!1,!1,a,y))}else z=E,mt=b,E=this.getLinkPoint(a,y,tt,!0,!1,z,mt),b=this.getLinkPoint(z,mt,x,!1,!1,a,y),this.hasCurviness()?(mt=b.x-E.x,x=b.y-E.y,tt=this.computeCurviness(),a=E.x+mt/2,y=E.y+x/2,z=a,ot=y,Jt.B(x,0)?ot=0tt&&(z=-z),z=(0>x?-1:1)*z+a,ot=mt*(z-a)+y),this.ne(E),this.yf(z,ot),this.ne(b)):(this.ne(E),this.ne(b),ot=de.alloc(),y.mi(ot),rt=ot.ca(b),mt.mi(ot),at=ot.ca(E),(rt||at)&&(tt=y.ga(Vm(tt),new jt),this.dd(0,this.getLinkPointFromPoint(a,y,tt,b,!0,tt)),x=mt.ga(Vm(x),new jt),this.dd(1,this.getLinkPointFromPoint(z,mt,x,E,!1,x))),de.free(ot))}else{ct=this.isAvoiding,mt&&(ut&&ct||at)&&this.Fj();var Ht=at?this.computeCurviness():0;ct=this.getLinkPoint(a,y,tt,!0,ut,E,b),yt=Mt=St=0,(ut||!ot||at)&&(Dt=this.computeEndSegmentLength(a,y,tt,!0),yt=this.getLinkDirection(a,y,ct,tt,!0,ut,E,b),at&&(ot||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(yt-=ut?90:30,0>Ht&&(yt-=180)),0>yt?yt+=360:360<=yt&&(yt-=360),at&&(Dt+=Math.abs(Ht)*(ut?1:2)),yt===0?St=Dt:yt===90?Mt=Dt:yt===180?St=-Dt:yt===270?Mt=-Dt:(St=Dt*Math.cos(yt*Math.PI/180),Mt=Dt*Math.sin(yt*Math.PI/180)),tt.Mc()&&at&&(Dt=y.ga(gi,jt.alloc()),Tt=jt.allocAt(Dt.x+1e3*St,Dt.y+1e3*Mt),this.getLinkPointFromPoint(a,y,Dt,Tt,!0,ct),jt.free(Dt),jt.free(Tt))),Dt=this.getLinkPoint(E,b,x,!1,ut,a,y);var Ut=zt=Tt=0;if(ut||!rt||at){var Xt=this.computeEndSegmentLength(E,b,x,!1);Ut=this.getLinkDirection(E,b,Dt,x,!1,ut,a,y),at&&(rt||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(Ut+=ut?0:30,0>Ht&&(Ut+=180)),0>Ut?Ut+=360:360<=Ut&&(Ut-=360),at&&(Xt+=Math.abs(Ht)*(ut?1:2)),Ut===0?Tt=Xt:Ut===90?zt=Xt:Ut===180?Tt=-Xt:Ut===270?zt=-Xt:(Tt=Xt*Math.cos(Ut*Math.PI/180),zt=Xt*Math.sin(Ut*Math.PI/180)),x.Mc()&&at&&(x=b.ga(gi,jt.alloc()),tt=jt.allocAt(x.x+1e3*Tt,x.y+1e3*zt),this.getLinkPointFromPoint(E,b,x,tt,!1,Dt),jt.free(x),jt.free(tt))}x=ct,(ut||!ot||at)&&(x=new jt(ct.x+St,ct.y+Mt)),tt=Dt,(ut||!rt||at)&&(tt=new jt(Dt.x+Tt,Dt.y+zt)),!mt&&!ut&&ot&&3Math.abs(y.y-a.y)?(y.x>=a.x?y.x=a.x+9e9:y.x=a.x-9e9,y.y=a.y):(y.y>=a.y?y.y=a.y+9e9:y.y=a.y-9e9,y.x=a.x),y}Ne.prototype.getLinkPointFromPoint=function(a,y,x,E,b,z){if(z===void 0&&(z=new jt),a===null||y===null)return z.assign(x),z;if(a.isVisible()||(b=a.findVisibleNode(),b!==null&&b!==a&&(y=b.port)),a=null,b=y.panel,b===null||b.se()||(b=b.panel),b===null){b=E.x,E=E.y;var tt=x.x;x=x.y}else{a=b.oe,b=1/(a.m11*a.m22-a.m12*a.m21),tt=a.m22*b;var ot=-a.m12*b,rt=-a.m21*b,at=a.m11*b,ut=b*(a.m21*a.dy-a.m22*a.dx),ct=b*(a.m12*a.dx-a.m11*a.dy);b=E.x*tt+E.y*rt+ut,E=E.x*ot+E.y*at+ct,tt=x.x*tt+x.y*rt+ut,x=x.x*ot+x.y*at+ct}return y.Sj(b,E,tt,x,z),a!==null&&z.transform(a),z};function Ym(a,y){var x=y.Zn;return x===null&&(x=new Sg,x.port=y,x.node=y.part,y.Zn=x),aS(x,a)}Ne.prototype.getLinkPoint=function(a,y,x,E,b,z,tt,ot){if(ot===void 0&&(ot=new jt),x.sb()&&!Lc(x))return y.ga(x,ot),ot;if(x.$c()){var rt=Ym(this,y);if(rt!==null){if(ot.assign(rt.Zo),b&&this.routing===eS){var at=Ym(this,tt);if(at!==null&&rt.Gl=ut.y&&a.y<=ut.y+ut.height?ot.y=a.y:(x.Hf(fl)||x.Hf(Ma))&&a.x>=ut.x&&a.x<=ut.x+ut.width&&(ot.x=a.x),jt.free(rt),jt.free(at)}}return ot}}return x=y.ga(Vm(x),jt.alloc()),this.pointsCount>(b?6:2)?(tt=E?this.i(1):this.i(this.pointsCount-2),b&&(tt=Kv(x,tt.copy()))):(rt=this.computeSpot(!E,tt),z=jt.alloc(),tt=tt.ga(Vm(rt),z),b&&(tt=Kv(x,tt)),jt.free(z)),this.getLinkPointFromPoint(a,y,x,tt,E,ot),jt.free(x),ot},Ne.prototype.getLinkDirection=function(a,y,x,E,b,z,tt,ot){t:if(E.sb())var rt=E.x>E.y?E.x>1-E.y?0:E.x<1-E.y?270:315:E.x1-E.y?90:E.x<1-E.y?180:135:.5>E.x?225:.5(z?6:2)?(ot=b?this.i(1):this.i(this.pointsCount-2),ot=z?Kv(rt,ot.copy()):x):(x=jt.alloc(),ot=ot.ga(gi,x),jt.free(x)),x=Math.abs(ot.x-rt.x)>Math.abs(ot.y-rt.y)?ot.x>=rt.x?0:180:ot.y>=rt.y?90:270,jt.free(rt),rt=x}return E.Mc()&&tt.Td(a)&&(rt+=180,360<=rt&&(rt-=360)),Lc(E)||(a=y.li(),a===0)||(45<=a&&135>a?rt+=90:135<=a&&225>a?rt+=180:225<=a&&315>a&&(rt+=270),360<=rt&&(rt-=360)),rt},Ne.prototype.computeEndSegmentLength=function(a,y,x,E){return y!==null&&x.$c()&&(a=Ym(this,y),a!==null)?a.Ju:(a=E?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=E?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},Ne.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=gi:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===rr?$o:y)):(a=y||this.toPort,a===null?a=gi:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===rr?$o:y)),a};function Lc(a){return a===$o||a.x===.5&&a.y===.5}function Vm(a){return a.x===.5&&a.y===.5?a:gi}Ne.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==gs&&4mt.width||ct.y>mt.height||0>ct.x+ct.width||0>ct.y+ct.height)){if(ct=Rn.alloc(),ct.set(tt),ut instanceof ke)ot=ut.Cf(a,y,x,E,b,ct);else if(this.path===ut){if(ut instanceof bn)if(ot=a,mt=E,ut.pickable===!1)ot=!1;else if(ct.multiply(ut.transform),mt)t:{var yt=ot,St=ct;if(ut.fh(yt,St))ot=!0;else{if(St===void 0&&(St=ut.transform,yt.Re(ut.actualBounds))){ot=!0;break t}ot=yt.left,mt=yt.right;var Mt=yt.top;yt=yt.bottom;var Dt=jt.alloc(),Tt=jt.alloc(),zt=jt.alloc(),Ht=Rn.alloc();Ht.set(St),Ht.bv(ut.transform),Ht.Vj(),Tt.x=mt,Tt.y=Mt,Tt.transform(Ht),Dt.x=ot,Dt.y=Mt,Dt.transform(Ht),St=!1,Ad(ut,Dt,Tt,zt)?St=!0:(Dt.x=mt,Dt.y=yt,Dt.transform(Ht),Ad(ut,Dt,Tt,zt)?St=!0:(Tt.x=ot,Tt.y=yt,Tt.transform(Ht),Ad(ut,Dt,Tt,zt)?St=!0:(Dt.x=ot,Dt.y=Mt,Dt.transform(Ht),Ad(ut,Dt,Tt,zt)&&(St=!0)))),Rn.free(Ht),jt.free(Dt),jt.free(Tt),jt.free(zt),ot=St}}else ot=ut.fh(ot,ct)}else ot=nr(ut,a,E,ct);ot&&(mt=ut,y!==null&&(mt=y(ut)),mt&&(x===null||x(mt))&&b.add(mt)),Rn.free(ct)}}}return z===void 0&&Rn.free(tt),ot||this.background!==null||this.areaBackground!==null}return z===void 0&&Rn.free(tt),!1},Ne.prototype.computeCurve=function(){if(this.Wf===null){var a=this.fromPort,y=this.isOrthogonal;this.Wf=a!==null&&a===this.toPort&&!y}return this.Wf?ia:this.curve},Ne.prototype.computeCorner=function(){if(this.curve===ia)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},Ne.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,E=0;Ert?-Math.PI/2:Math.PI/2;else ut=Math.atan(rt/Math.abs(ot)),0>ot&&(ut=Math.PI-ut);tt=y.x;var ct=y.y;ot=E.x-tt;var mt=E.y-ct;for(rt=Math.sqrt(ot*ot+mt*mt),Jt.$(ot,0)?mt=0>mt?-Math.PI/2:Math.PI/2:(mt=Math.atan(mt/Math.abs(ot)),0>ot&&(mt=Math.PI-mt)),at=rt/at,ut=mt-ut,this.dd(a,y),a+=1;art?-Math.PI/2:Math.PI/2:(rt=Math.atan(rt/Math.abs(ot)),0>ot&&(rt=Math.PI-rt)),ot=rt+ut,y*=at,this.L(a,tt+y*Math.cos(ot),ct+y*Math.sin(ot)));this.dd(x,E)}}return!0;case Zm:if(z=this.i(a),ct=this.i(x),!z.Xa(y)||!ct.Xa(E)){b=z.x,z=z.y,tt=ct.x,ct=ct.y,at=(tt-b)*(tt-b)+(ct-z)*(ct-z),ot=y.x,ut=y.y,rt=E.x,mt=E.y;var yt=1;if(rt-ot!==0){var St=(mt-ut)/(rt-ot);yt=Math.sqrt(1+1/(St*St))}else St=9e9;for(this.dd(a,y),a+=1;ay?y+=360:360<=y&&(y-=360),0>E?E+=360:360<=E&&(E-=360);var tt=E;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,E=315<=E||45>E?0:45<=E&&135>E?90:135<=E&&225>E?180:270;var ot=b.actualBounds.copy(),rt=z.actualBounds.copy();if(ot.w()&&rt.w()){ot.Bc(ep,ep),rt.Bc(ep,ep),ot.Ye(a),rt.Ye(x);var at=jt.alloc(),ut=jt.alloc();y===0?x.x>a.x||E===270&&x.ya.x||E===90&&x.y>a.y&&rt.right>a.x?(at.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),E===180?(at.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ut.x=at.x,ut.y=x.y):E===270&&x.ya.y?(at.x=a.xrt.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):rt.right,ut.x=at.x,ut.y=x.y):E===0&&a.xrt.top&&a.yot.bottom)&&(E===180&&(rt.ca(a)||ot.ca(x))?at.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.ya.y&&(E===180||E===270)&&(at.y=this.computeMidOrthoPosition(a.x,ot.bottom,x.x,Math.min(x.y,rt.top),!0)),ut.x=x.x,ut.y=at.y),at.y>ot.top&&at.y=ot.left&&x.x<=a.x||a.x<=rt.right&&a.x>=x.x?(E===90||E===270)&&(at.h(Math.max((a.x+x.x)/2,a.x),a.y),ut.h(at.x,x.y)):(at.y=E===270||(E===0||E===180)&&x.ya.y&&rt.lefta.y?(at.x=a.x>rt.right?this.computeMidOrthoPosition(a.x,a.y,rt.right,x.y,!1):a.x>rt.left&&(E===270&&a.yrt.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):rt.left,ut.x=at.x,ut.y=x.y):E===180&&a.x>rt.right&&a.y>rt.top&&a.yot.bottom)&&(E===0&&(rt.ca(a)||ot.ca(x))?at.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.ya.y&&(E===0||E===270)&&(at.y=this.computeMidOrthoPosition(a.x,ot.bottom,x.x,Math.min(x.y,rt.top),!0)),ut.x=x.x,ut.y=at.y),at.y>ot.top&&at.y=a.x||a.x>=rt.left&&a.x<=x.x?(E===90||E===270)&&(at.h(Math.min((a.x+x.x)/2,a.x),a.y),ut.h(at.x,x.y)):(at.y=E===270||(E===0||E===180)&&x.ya.y||E===180&&x.xa.y||E===0&&x.x>a.x&&rt.bottom>a.y?(at.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),E===270?(at.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ut.x=x.x,ut.y=at.y):E===180&&x.xa.x?(at.y=a.yrt.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):rt.bottom,ut.x=x.x,ut.y=at.y):E===90&&a.yrt.left&&a.xot.right)&&(E===270&&(rt.ca(a)||ot.ca(x))?at.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.xa.x&&(E===270||E===180)&&(at.x=this.computeMidOrthoPosition(ot.right,a.y,Math.min(x.x,rt.left),x.y,!1)),ut.x=at.x,ut.y=x.y),at.x>ot.left&&at.x=ot.top&&x.y<=a.y||a.y<=rt.bottom&&a.y>=x.y?(E===0||E===180)&&(at.h(a.x,Math.max((a.y+x.y)/2,a.y)),ut.h(x.x,at.y)):(at.x=E===180||(E===90||E===270)&&x.xa.x&&rt.top=a.x?(at.y=a.y>rt.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,rt.bottom,!0):a.y>rt.top&&(E===180&&a.xrt.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):rt.top,ut.x=x.x,ut.y=at.y):E===270&&a.y>rt.bottom&&a.x>rt.left&&a.xot.right)&&(E===90&&(rt.ca(a)||ot.ca(x))?at.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.xa.x&&(E===90||E===180)&&(at.x=this.computeMidOrthoPosition(ot.right,a.y,Math.min(x.x,rt.left),x.y,!1)),ut.x=at.x,ut.y=x.y),at.x>ot.left&&at.x=a.y||a.y>=rt.top&&a.y<=x.y?(E===0||E===180)&&(at.h(a.x,Math.min((a.y+x.y)/2,a.y)),ut.h(x.x,at.y)):(at.x=E===180||(E===90||E===270)&&x.x=Ec&&(oS(yt),ot.Bc(yt.Ho*yt.Hx,yt.Go*yt.Ix),rS(yt,a,y,ct,E,ot,!1),rt=Ul(yt,ct.x,ct.y)),!yt.abort&&rtthis.pointsCount?(y===0||y===180?(ot.x=a.x,ot.y=ct.y):(ot.x=ct.x,ot.y=a.y),this.L(2,ot.x,ot.y),this.m(3,ot.x,ot.y)):(tt=this.i(3),y===0||y===180?Jt.B(ot.x,tt.x)?(ot=y===0?Math.max(ot.x,a.x):Math.min(ot.x,a.x),this.L(2,ot,a.y),this.L(3,ot,tt.y)):Jt.B(ot.y,tt.y)?(Math.abs(a.y-ot.y)<=yt.Go/2&&(this.L(2,ot.x,a.y),this.L(3,tt.x,a.y)),this.m(2,ot.x,a.y)):this.L(2,a.x,ot.y):(y===90||y===270)&&(Jt.B(ot.y,tt.y)?(ot=y===90?Math.max(ot.y,a.y):Math.min(ot.y,a.y),this.L(2,a.x,ot),this.L(3,tt.x,ot)):Jt.B(ot.x,tt.x)?(Math.abs(a.x-ot.x)<=yt.Ho/2&&(this.L(2,a.x,ot.y),this.L(3,a.x,tt.y)),this.m(2,a.x,ot.y)):this.L(2,ot.x,a.y))),x!==null&&(a=this.i(1),tt=this.i(2),a.x!==tt.x&&a.y!==tt.y?y===0||y===180?this.m(2,a.x,tt.y):this.m(2,tt.x,a.y):y===0||y===180?this.m(2,b.x,x.y):this.m(2,x.x,b.y)),St!==null&&(E===0||E===180?this.yf(z.x,St.y):this.yf(St.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(at.copy()),this.ne(ut.copy())),jt.free(at),jt.free(ut)}},Ne.prototype.computeMidOrthoPosition=function(a,y,x,E,b){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),b?(y+E)/2+z:(a+x)/2+z};function Xv(a){if(a.diagram===null||!a.isAvoiding||!rc(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=sc(a.diagram,!0,a.containingGroup,null);for(var E=1;ETd&&Ul(y,ut,ct)!==at-1&&(Ul(y,x-ot,E)===at-1?(b=180,ut=x-ot,ct=E):Ul(y,x+ot,E)===at-1?(b=0,ut=x+ot,ct=E):Ul(y,x,E-rt)===at-1?(b=270,ut=x,ct=E-rt):Ul(y,x,E+rt)===at-1&&(b=90,ut=x,ct=E+rt));at>Td&&Ul(y,ut,ct)===at-1;)x=ut,E=ct,b===0?ut+=ot:b===90?ct+=rt:b===180?ut-=ot:ct-=rt,--at;z?at>Td&&(b===180||b===0?x=Math.floor(x/ot)*ot+ot/2:(b===90||b===270)&&(E=Math.floor(E/rt)*rt+rt/2)):(x=Math.floor(x/ot)*ot+ot/2,E=Math.floor(E/rt)*rt+rt/2),at>Td&&(z=b,tt=x,ut=E,b===0?(z=90,ut+=rt):b===90?(z=180,tt-=ot):b===180?(z=270,ut-=rt):b===270&&(z=0,tt+=ot),Ul(y,tt,ut)===at-1?Qv(a,y,tt,ut,z,!1,z):(tt=x,ut=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.y-rt),y.set(z),x.set(b),tt=at}}at=tt.x,tt=tt.y,ut=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ut=pg(this,ut.copy(),!1,Dr)),at=.5*(at+ut.x),tt=.5*(tt+ut.y),Ku(ot,b.x-E,b.y-rt,at-E,tt-rt,ut.x-E,ut.y-rt),jt.free(y),jt.free(x),jt.free(z),jt.free(b)}else for(x=3;x=y&&(x=y-1),b=this.i(x-1),tt=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(tt=pg(this,tt.copy(),!1,Dr)),Ku(ot,z.x-E,z.y-rt,b.x-E,b.y-rt,tt.x-E,tt.y-rt);else{for(z=jt.alloc(),z.assign(this.i(0)),b=jt.alloc(),b.assign(z),tt=this.computeCorner(),ct=1,at=0;ct=y-1){if(!z.D(ut))this.computeShortLength(!1)!==0&&(ut=pg(this,ut.copy(),!1,Dr)),mg(this,ot,-E,-rt,z,ut,x);else if(at===0)for(ct=1;ctz.x?Ut=mt.x-St:Ut=mt.x+St,Tt.y>mt.y?zt=mt.y+Ht:zt=mt.y-Ht,Tt=jt.allocAt(Ut,Xt),mg(this,ot,ct,Dt,z,Tt,Mt),jt.free(Tt),Om(ot,mt.x+ct,mt.y+Dt,yt+ct,zt+Dt),z.h(yt,zt)}else Jt.B(z.x,mt.x)&&Jt.B(mt.y,Tt.y)?(St=Math.min(tt,Math.abs(mt.y-b.y)/2),St=Ht=Math.min(St,Math.abs(Tt.x-mt.x)/2),Jt.B(Ht,0)?(mg(this,ot,ct,Dt,z,mt,Mt),z.assign(mt)):(Ut=mt.x,Xt=mt.y,yt=Ut,zt=Xt,mt.y>z.y?Xt=mt.y-St:Xt=mt.y+St,Tt.x>mt.x?yt=mt.x+Ht:yt=mt.x-Ht,Tt=jt.allocAt(Ut,Xt),mg(this,ot,ct,Dt,z,Tt,Mt),jt.free(Tt),Om(ot,mt.x+ct,mt.y+Dt,yt+ct,zt+Dt),z.h(yt,zt))):(mg(this,ot,ct,Dt,z,mt,Mt),z.assign(mt));b.assign(ut),ct=at}jt.free(z)}jm=ot}else ot=this.i(1).copy(),ot.x-=E,ot.y-=rt,this.computeShortLength(!0)!==0&&(b=pg(this,b,!0,z)),this.computeShortLength(!1)!==0&&(ot=pg(this,ot,!1,z)),a.type=be.j,a.startX=b.x,a.startY=b.y,a.endX=ot.x,a.endY=ot.y;return this.lk=!0,a};function Km(a,y,x,E){return a=x-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=E-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),Jt.$(a,0)?y:Jt.$(y,0)?a:Math.sqrt(a*a+y*y)))}function pg(a,y,x,E){var b=a.pointsCount;if(2>b)return y;if(x){var z=a.i(1);if(x=z.x-E.x,z=z.y-E.y,E=Km(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!0),a>b&&(a=b),b=a*(z-y.y)/E,y.x+=a*(x-y.x)/E,y.y+=b}else{if(z=a.i(b-2),x=z.x-E.x,z=z.y-E.y,E=Km(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!1),a>b&&(a=b),b=a*(y.y-z)/E,y.x-=a*(y.x-x)/E,y.y-=b}return y}function Zv(a,y,x,E){for(var b=a.pointsCount,z=y;Jt.$(y.x,z.x)&&Jt.$(y.y,z.y);){if(x>=b)return b-1;z=a.i(x++)}if(!Jt.$(y.x,z.x)&&!Jt.$(y.y,z.y))return x-1;for(var tt=z;Jt.$(y.x,z.x)&&Jt.$(z.x,tt.x)&&(!E||(y.y>=z.y?z.y>=tt.y:z.y<=tt.y))||Jt.$(y.y,z.y)&&Jt.$(z.y,tt.y)&&(!E||(y.x>=z.x?z.x>=tt.x:z.x<=tt.x));){if(x>=b)return b-1;tt=a.i(x++)}return x-2}Ne.prototype.computeJumpLength=function(){return 10};function mg(a,y,x,E,b,z,tt){if(!tt&&Nd(a)){tt=a.computeJumpLength();var ot=tt/2,rt=[],at=0;if(a.isVisible()&&(at=Lx(a,b,z,rt)),0ct-tt);)at--,ct=Math.max(ut-ot,z.x);ut=z.y-tt+E,ct+=x,yt=z.y+E,a.curve===Ju?Cc(y,ct,yt,!1):Ku(y,mt,ut,ct,ut,ct,yt)}else if(Jt.B(b.x,z.x))if(b.yut-tt);)at--,ut=Math.max(ct-ot,z.y);ct=z.x-tt+x,yt=z.x+x,ut+=E,a.curve===Ju?Cc(y,yt,ut,!1):Ku(y,ct,mt,ct,ut,yt,ut)}}}y.lineTo(z.x+x,z.y+E)}function Lx(a,y,x,E){var b=a.diagram;if(b===null||y.D(x))return 0;for(b=b.layers;b.next();){var z=b.value;if(z!==null&&z.visible){z=z.Pa.s;for(var tt=z.length,ot=0;ottt.x&&ut.x>=at.x||at.xtt.y&&ut.y>=at.y||at.ytt&&Math.min(St,Mt)ut&&!Jt.B(St,Mt)){ot.x=ut,ot.y=tt,ut=!0;break t}}else if(Jt.B(ct,yt)&&Jt.B(St,Mt)&&Math.min(ut,mt)St&&Math.min(tt,Dt)ct&&!Jt.B(tt,Dt)){ot.x=St,ot.y=ct,ut=!0;break t}ot.x=0,ot.y=0,ut=!1}ut&&(b?x.push(ot.x):x.push(ot.y)),tt=at}jt.free(ot)}function Nd(a){return a=a.curve,a===kc||a===Ju}function Xm(a,y){(y||Nd(a))&&(y=a.diagram,y===null||y.animationManager.isTicking||y.Eh.contains(a)||a.ml.width===0&&a.ml.height===0||y.Eh.add(a,a.ml.copy()))}Ne.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var x=y.diagram;if(x!==null&&!x.animationManager.isTicking){var E=!1;for(x=x.layers;x.next();){var b=x.value;if(b.visible){if(b===y){E=!0;var z=!1;b=b.Pa.s;for(var tt=b.length,ot=0;ota&&_n(a,">= 0",Ne,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),this.bb())}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:NaN},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.qc(),this.g("fromShortLength",y,a))}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:rr},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),(y.$c()||a.$c())&&this.toNode!==null&&Ys(this.toPort),this.bb())}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:NaN},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&_n(a,">= 0",Ne,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),this.bb())}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:NaN},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.qc(),this.g("toShortLength",y,a))}},isLabeledLink:{get:function(){return this.wd===null?!1:0=E&&(z=E-1);var ot=this.i(z-1),rt=this.i(z);Jt.Dl(b.x,b.y,tt.x,tt.y,ot.x,ot.y,rt.x,rt.y,.5,a),y=Math.min(rt.x,y),x=Math.min(rt.y,x),b=rt}else for(b=this.i(0),z=this.i(1),y=Math.min(b.x,z.x),x=Math.min(b.y,z.y),a.h(b.x,b.y,0,0),a.Ye(z),b=2;bE&&(E=-E)):Jt.$(E.y,b.y)?(E=b.x-E.x,0>E&&(E=-E)):E=Math.sqrt(E.Bf(b)),a.push(E)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,x=y.length,E=a=0;Ethis.pointsCount)return this.lk=!0,this.ua;this.ua=this.makeGeometry()}return this.ua}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!Lc(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!Lc(this.computeSpot(!1))?a-2:a-1}},adjusting:{get:function(){return this.qk},set:function(a){var y=this.qk;y!==a&&(this.qk=a,this.g("adjusting",y,a))}},corner:{get:function(){return this.Om},set:function(a){var y=this.Om;y!==a&&(this.Om=a,this.qc(),this.g("corner",y,a))}},curve:{get:function(){return this.Qm},set:function(a){var y=this.Qm;y!==a&&(this.Qm=a,this.bb(),this.qc(),Xm(this,y===Ju||y===kc||a===Ju||a===kc),this.g("curve",y,a))}},curviness:{get:function(){return this.Rm},set:function(a){var y=this.Rm;y!==a&&(this.Rm=a,this.bb(),this.qc(),this.g("curviness",y,a))}},routing:{get:function(){return this.qj},set:function(a){var y=this.qj;y!==a&&(this.qj=a,this.Wf=null,this.bb(),Xm(this,(y.value&2)===2||(a.value&2)===2),this.g("routing",y,a))}},smoothness:{get:function(){return this.po},set:function(a){var y=this.po;y!==a&&(this.po=a,this.qc(),this.g("smoothness",y,a))}},key:{get:function(){var a=this.diagram;if(a!==null&&a.model.ri())return a.model.Ac(this.data)}}}),Ne.prototype.invalidateOtherJumpOvers=Ne.prototype.Xo,Ne.prototype.findClosestSegment=Ne.prototype.ez,Ne.prototype.updateRoute=Ne.prototype.vg,Ne.prototype.invalidateRoute=Ne.prototype.bb,Ne.prototype.rollbackRoute=Ne.prototype.rv,Ne.prototype.commitRoute=Ne.prototype.zf,Ne.prototype.startRoute=Ne.prototype.uh,Ne.prototype.clearPoints=Ne.prototype.Fj,Ne.prototype.removePoint=Ne.prototype.pv,Ne.prototype.addPointAt=Ne.prototype.yf,Ne.prototype.addPoint=Ne.prototype.ne,Ne.prototype.insertPointAt=Ne.prototype.m,Ne.prototype.insertPoint=Ne.prototype.Kz,Ne.prototype.setPointAt=Ne.prototype.L,Ne.prototype.setPoint=Ne.prototype.dd,Ne.prototype.getPoint=Ne.prototype.i,Ne.prototype.getOtherPort=Ne.prototype.Cz,Ne.prototype.getOtherNode=Ne.prototype.To;var vg=null,yg=null,Jv=new Me(Ne,"Normal",1),Ax=new Me(Ne,"Orthogonal",2),Ex=new Me(Ne,"AvoidsNodes",6),eS=new Me(Ne,"AvoidsNodesStraight",7),gs=new Me(Ne,"None",0),ia=new Me(Ne,"Bezier",9),Ju=new Me(Ne,"JumpGap",10),kc=new Me(Ne,"JumpOver",11),Zf=new Me(Ne,"End",17),Qm=new Me(Ne,"Scale",18),Zm=new Me(Ne,"Stretch",19),Jf=new Me(Ne,"OrientAlong",21),qf=new Me(Ne,"OrientPlus90",22),_f=new Me(Ne,"OrientMinus90",23),qv=new Me(Ne,"OrientOpposite",24),Jm=new Me(Ne,"OrientUpright",25),$f=new Me(Ne,"OrientPlus90Upright",26),tp=new Me(Ne,"OrientMinus90Upright",27),qm=new Me(Ne,"OrientUpright45",28),nS=16,iS=14,ep=8;Ne.className="Link",Ne.Normal=Jv,Ne.Orthogonal=Ax,Ne.AvoidsNodes=Ex,Ne.AvoidsNodesStraight=eS,Ne.None=gs,Ne.Bezier=ia,Ne.JumpGap=Ju,Ne.JumpOver=kc,Ne.End=Zf,Ne.Scale=Qm,Ne.Stretch=Zm,Ne.OrientAlong=Jf,Ne.OrientPlus90=qf,Ne.OrientMinus90=_f,Ne.OrientOpposite=qv,Ne.OrientUpright=Jm,Ne.OrientPlus90Upright=$f,Ne.OrientMinus90Upright=tp,Ne.OrientUpright45=qm,Ne.EndSegmentStep=8,Ne.CurvinessStart=nS,Ne.SpacingMin=iS,Ne.OrthoShortCut=ep;function _m(a,y,x,E){Yi(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=E,this.links=[]}_m.prototype.Sl=function(){if(!this.qq){var a=this.links;0=a.width||0>=a.height)){var y=a.y,x=a.x+a.width,E=a.y+a.height;if(this.Nd=Math.floor((a.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((y-this.sc)/this.sc)*this.sc,this.En=Math.ceil((x+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((E+2*this.sc)/this.sc)*this.sc,a=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),y=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di=Td&&(x[E]=_v)}np.prototype.Yj=function(a,y,x,E){if(a>this.En||a+xthis.Fn||y+Ea&&(x+=a,a=0),0>y&&(b+=y,y=0),0>x||0>b)return!0;for(E=Math.min(a+x-1,this.di)|0,x=Math.min(y+b-1,this.ei)|0;a<=E;a++){b=this.ac[a];for(var z=y;z<=x;z++)if(b[z]===qu)return!1}return!0};function Yl(a,y,x,E,b,z,tt,ot,rt){if(!(ytt||xrt)){var at=y|0,ut=x|0,ct=a.ac[at][ut];if(ct>=Td&&ct=a.ac[at][ut]);)a.ac[at][ut]=ct,ct+=1,b?ut+=E:at+=E;if(at=b?ut:at,b)if(0at;x+=E)Yl(a,y,x,1,!b,z,tt,ot,rt),Yl(a,y,x,-1,!b,z,tt,ot,rt);else if(0at;y+=E)Yl(a,y,x,1,!b,z,tt,ot,rt),Yl(a,y,x,-1,!b,z,tt,ot,rt)}}function $m(a,y,x,E,b,z,tt,ot,rt){y|=0,x|=0;var at=qu,ut=Td;for(a.ac[y][x]=ut;at===qu&&y>z&&yot&&xz&&yot&&x=Math.abs(ot-at)&&1>=Math.abs(rt-ut))a.abort=!0;else{var ct=z.x;E=z.y,y=z.x+z.width;var mt=z.y+z.height;ct-=a.Nd,ct/=a.rc,E-=a.Od,E/=a.sc,y-=a.Nd,y/=a.rc,mt-=a.Od,mt/=a.sc,z=Math.max(0,Math.min(a.di,ct|0)),y=Math.min(a.di,Math.max(0,y|0)),ct=Math.max(0,Math.min(a.ei,E|0)),mt=Math.min(a.ei,Math.max(0,mt|0)),E=a.ac,ot|=0,rt|=0,at|=0,ut|=0;var yt=x===0||x===90?1:-1;if(x=x===90||x===270,E[ot][rt]===qu?($m(a,ot,rt,yt,x,z,y,ct,mt),$m(a,ot,rt,1,!x,z,y,ct,mt),$m(a,ot,rt,-1,!x,z,y,ct,mt)):$m(a,ot,rt,yt,x,ot,rt,ot,rt),E[at][ut]===qu?(t0(a,at,ut,b===0||b===90?1:-1,b===90||b===270,z,y,ct,mt),t0(a,at,ut,1,!(b===90||b===270),z,y,ct,mt),t0(a,at,ut,-1,!(b===90||b===270),z,y,ct,mt)):t0(a,at,ut,yt,x,at,ut,at,ut),x=$n(),tt&&sS(a,at,ut,b,ot,rt,x))for((x[0]!==at||x[1]!==ut)&&(x.unshift(ut),x.unshift(at)),(x[x.length-2]!==ot||x[x.length-1]!==rt)&&(x.push(ot),x.push(rt)),a=Td,b=x[x.length-2],tt=x[x.length-1],E[b][tt]=a++,z=x.length-4;0<=z;z-=2)for(b=x[z+2],tt=x[z+3],y=x[z],at=x[z+1];y>b?b++:ytt?tt++:atb)ut--;else break;else if(ct>z)ct--;else break;var mt=ot[ut][ct];if(mt===0||mt===$v)break;rt=ut,at=ct}for(;;){if(ut=E,ct=rt,mt=at,E===0?mtz&&(ut=270,mt--):E===90?ctb&&(ut=180,ct--):E===180?mtz&&(ut=270,mt--):ctb&&(ut=180,ct--),ct=ot[ct][mt],ut!==E&&ct!==0&&ct!==$v){if(tt.push(rt),tt.push(at),sS(a,rt,at,ut,b,z,tt))return!0;tt.pop(),tt.pop()}if(ot[rt][at]=$v,E===0){if(rt===y)return!1;rt--}else if(E===90){if(at===x)return!1;at--}else if(E===180){if(rt===y)return!1;rt++}else{if(at===x)return!1;at++}}}he.Object.defineProperties(np.prototype,{bounds:{get:function(){return new de(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(a){0=x?180:0}switch(a=180*Math.atan2(a.height,a.width)/Math.PI,y){case 3:return x>a&&x<=180+a?180:270;case 5:return x>180-a&&x<=360-a?270:0;case 12:return x>a&&x<=180+a?90:0;case 10:return x>180-a&&x<=360-a?180:90;case 7:return 90180+a&&x<=360-a?270:0;case 13:return 180a&&180>=x?90:0;case 14:return x>a&&x<=180-a?90:x>180-a&&270>=x?180:0;case 11:return x>180-a&&x<=180+a?180:x>180+a?270:90}return E&&y!==15&&(x-=15,0>x&&(x+=360)),x>a&&x<180-a?90:x>=180-a&&x<=180+a?180:x>180+a&&x<360-a?270:0}Sg.prototype.Sl=function(){this.pe.length=0};function aS(a,y){var x=a.pe;if(x.length===0){t:if(!a.ap){x=a.ap,a.ap=!0;var E=null,b=a.node,z=b instanceof Fn?b:null;if(z===null||z.isSubGraphExpanded)var tt=b.isTreeExpanded?b.findLinksConnected(a.port.portId):b.qx();else{if(!z.actualBounds.w()){a.ap=x;break t}E=z,tt=E.Lu()}z=a.pe.length=0;var ot=a.port.ga(yr,jt.alloc()),rt=a.port.ga(es,jt.alloc());for(b=de.allocAt(ot.x,ot.y,0,0),b.Ye(rt),jt.free(ot),jt.free(rt),ot=jt.allocAt(b.x+b.width/2,b.y+b.height/2),rt=a.port.li(),tt=tt.iterator;tt.next();){var at=tt.value;if(at.isVisible()&&at.fromPort!==at.toPort){var ut=at.fromPort===a.port||at.fromNode!==null&&at.fromNode.Td(E),ct=at.computeSpot(ut,a.port);if(ct.$c()&&(ut=ut?at.toPort:at.fromPort,ut!==null)){var mt=ut.part;if(mt!==null){var yt=mt.findVisibleNode();yt!==null&&yt!==mt&&(mt=yt,ut=mt.port),ut=at.computeOtherPoint(mt,ut),mt=ot.ab(ut),mt-=rt,0>mt?mt+=360:360<=mt&&(mt-=360),ct=Nx(b,ct,mt,at.isOrthogonal),ct===0?(ct=4,180mt&&(mt+=360)),yt=a.pe[z],yt===void 0?(yt=new ty(at,mt,ct),a.pe[z]=yt):(yt.link=at,yt.angle=mt,yt.Nc=ct),yt.hv.set(ut),z++}}}}for(jt.free(ot),a.pe.sort(Sg.prototype.j),rt=a.pe.length,E=-1,z=ot=0;zMath.abs(Mt)?(zt=Math.abs(Mt)/mt,mt=Math.abs(Mt)):zt=1;break;case 2:yt>Math.abs(Ht)?(zt=Math.abs(Ht)/yt,yt=Math.abs(Ht)):zt=1;break;case 1:ct>Math.abs(Mt)?(zt=Math.abs(Mt)/ct,ct=Math.abs(Mt)):zt=1;break;default:case 4:ut>Math.abs(Ht)?(zt=Math.abs(Ht)/ut,ut=Math.abs(Ht)):zt=1}Tt=0}var ie=Ut.Zo;if(E===Uv){switch(Ut=Ut.link.computeThickness(),Ut*=zt,ie.set(Xt),St){case 8:ie.x=Xt.x+Mt/2+mt/2-Tt-Ut/2;break;case 2:ie.y=Xt.y+Ht/2+yt/2-Tt-Ut/2;break;case 1:ie.x=Xt.x+Mt/2-ct/2+Tt+Ut/2;break;default:case 4:ie.y=Xt.y+Ht/2-ut/2+Tt+Ut/2}Tt+=Ut}else{var We=.5;E===Wm&&(We=(Ut.Uo+1)/(Ut.Gl+1)),ie.x=Xt.x+Mt*We,ie.y=Xt.y+Ht*We}}}for(jt.free(ot),jt.free(rt),jt.free(tt),jt.free(at),Xt=a.pe,z=0;zy.Nc?1:a.angley.angle?1:0},Sg.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,$o,y.fromPort===this.port),E=a.Uo;if(0>E)return x;var b=a.Gl;if(1>=b||!y.isOrthogonal)return x;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(E=b-1-E),((a=a.Nc===2||a.Nc===4)?y.y=y-1?(z=0,E=x,b+=tt+20,tt=0):z++}},Ui.prototype.doMinimalNetworkLayout=function(){var a=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var y=this.arrangementOrigin.x,x=y,E=this.arrangementOrigin.y,b=0,z=0,tt=this.network.vertexes.iterator;tt.next();){var ot=tt.value.node;if(!(ot===null||ot instanceof Ne)&&(ip(ot),this.rh(ot))){var rt=ot.measuredBounds,at=rt.width;rt=rt.height,ot.moveTo(x,E),ot instanceof Fn&&(ot.rh=!1),x+=Math.max(at,50)+20,z=Math.max(z,Math.max(rt,50)),b>=a-1?(b=0,x=y,E+=z+20,z=0):b++}}},Ui.prototype.rh=function(a){return!!(!a.location.w()||a instanceof Fn&&a.rh)};function Oh(a,y,x,E,b,z,tt,ot){for(x=x.iterator;x.next();){var rt=x.value;E&&!rt.isTopLevel||b!==null&&!b(rt)||!rt.canLayout()||(z&&rt instanceof Ke?rt.isLinkLabel||(rt instanceof Fn&&rt.layout===null?Oh(a,y,rt.memberParts,!1,b,z,tt,ot):(ip(rt),y.add(rt))):tt&&rt instanceof Ne?y.add(rt):!ot||!rt.Zc()||rt instanceof Ke||(ip(rt),y.add(rt)))}}function ip(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Ui.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new de),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Ui.prototype.ex=function(a){var y=new Ie;return a instanceof oe?(Oh(this,y,a.nodes,!0,null,!0,!0,!0),Oh(this,y,a.links,!0,null,!0,!0,!0),Oh(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof Fn?Oh(this,y,a.memberParts,!1,null,!0,!0,!0):Oh(this,y,a.iterator,!1,null,!0,!0,!0),y},Ui.prototype.initialOrigin=function(a){var y=this.group;if(y!==null){var x=y.position.copy();return(isNaN(x.x)||isNaN(x.y))&&x.set(a),y=y.placeholder,y!==null&&(x=y.ga(yr),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},he.Object.defineProperties(Ui.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},group:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a,a!==null&&(this.H=a.diagram))}},isOngoing:{get:function(){return this.sn},set:function(a){this.sn!==a&&(this.sn=a)}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a,a||(this.xn=!0)}},isViewportSized:{get:function(){return this.yn},set:function(a){this.yn!==a&&(this.yn=a)&&this.C()}},isRouting:{get:function(){return this.vn},set:function(a){this.vn!==a&&(this.vn=a)}},isRealtime:{get:function(){return this.un},set:function(a){this.un!==a&&(this.un=a)}},isValidLayout:{get:function(){return this.xn},set:function(a){this.xn!==a&&(this.xn=a,a||(a=this.diagram,a!==null&&(a.xh=!0)))}},network:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,a!==null&&(a.layout=this))}},boundsComputation:{get:function(){return this.Em},set:function(a){this.Em!==a&&(this.Em=a,this.C())}},arrangementOrigin:{get:function(){return this.Am},set:function(a){this.Am.D(a)||(this.Am.assign(a),this.C())}}}),Ui.prototype.collectParts=Ui.prototype.ex,Ui.prototype.getLayoutBounds=Ui.prototype.ni,Ui.prototype.invalidateLayout=Ui.prototype.C,Ui.className="Layout";function Ni(a){Yi(this),this.Sc=a,this.wf=new Ie,this.ye=new Ie,this.Es=new An,this.zs=new An}Ni.prototype.clear=function(){if(this.wf)for(var a=this.wf.iterator;a.next();)a.value.clear();if(this.ye)for(a=this.ye.iterator;a.next();)a.value.clear();this.wf=new Ie,this.ye=new Ie,this.Es=new An,this.zs=new An},Ni.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutNetwork"+(this.layout!==null?"("+this.layout.toString()+")":"");if(0>=a)return y;if(y+=" vertexes: "+this.wf.count+" edges: "+this.ye.count,1a?a=0:1a?a=0:1=a&&_n(a,"> 0",Ai,"maxLines"),Ll(this),this.da.Jq=a,this.v(),this.g("maxLines",y,a))}},metrics:{get:function(){return{arrSize:this.Qc!==null?this.Qc:[this.Cb],arrText:this.Qb!==null?this.Qb:[this.ze],maxLineWidth:this.Cb,fontHeight:this.df}}},choices:{get:function(){return this.Gm},set:function(a){var y=this.Gm;y!==a&&(this.Gm=a,this.g("choices",y,a))}}});var Tm=null,Fm=null,Av=new Me(Ai,"None",0),P1=new Me(Ai,"WrapFit",1),Nv=new Me(Ai,"WrapDesiredSize",2),w1=new Me(Ai,"WrapBreakAll",3),Tv=new Me(Ai,"OverflowClip",0),Bm=new Me(Ai,"OverflowEllipsis",1),Yf=new Me(Ai,"FormatTrim",0),C1=new Me(Ai,"FormatNone",0),Sx=/[ \u200b\u00ad]/,Fv=new Zn,M1=0,bm=new Zn,Bv=0,Vf="...",L1="",Cs=null,Dm=!1;Ai.className="TextBlock";function bv(){this.nc=!1,this.Hd=null,this.Xf=Pe,this.gq=Yf,this.Jq=1/0,this.$q=Tv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=vl,this.$r=Nv}bv.prototype.copy=function(){var a=new bv;return a.Hd=this.Hd,a.Xf=this.Xf,a.gq=this.gq,a.Jq=this.Jq,a.$q=this.$q,a.Dr=this.Dr,a.Er=this.Er,a.Or=this.Or,a.Pr=this.Pr,a.Qr=this.Qr,a.vj=this.vj,a.Yr=this.Yr,a.$r=this.$r,a},Ai.getEllipsis=function(){return Vf},Ai.setEllipsis=function(a){Vf=a,bm=new Zn,Bv=0},Ai.getBaseline=function(){return Tm},Ai.setBaseline=function(a){Tm=a},Ai.getUnderline=function(){return Fm},Ai.setUnderline=function(a){Fm=a},Ai.isValidFont=function(a){if(Dm||(Cs=ro?new Ta(null).context:null,Dm=!0),Cs===null)return!0;var y=Cs.font;if(a===y||a==="10px sans-serif")return!0;Cs.font="10px sans-serif",Cs.font=a;var x=Cs.font;if(x!=="10px sans-serif")return Cs.font=y,!0;Cs.font="19px serif";var E=Cs.font;return Cs.font=a,x=Cs.font,Cs.font=y,x!==E},Ai.FormatNone=C1,Ai.FormatTrim=Yf,Ai.None=Av,Ai.OverflowClip=Tv,Ai.OverflowEllipsis=Bm,Ai.WrapBreakAll=w1,Ai.WrapDesiredSize=Nv,Ai.WrapFit=P1;function Wl(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Wl.prototype.copy=function(){var a=new Wl;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},Wl.className="GradElementSettings";function Ms(a,y){Qt.call(this),this.Eg=null,this.qo="",this.Xg=hh,this.Nk=Le,this.Zg=this.Hd=null,this.Mk=gi,this.Xf=Pe,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,typeof a=="string"?this.source=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}var xc;ye(Ms,Qt),Ms.prototype.cloneProtected=function(a){Qt.prototype.cloneProtected.call(this,a),a.qo=this.qo,a.element=this.Eg,a.Xg=this.Xg.J(),a.Nk=this.Nk,a.Xf=this.Xf,a.Hd=this.Hd,a.Zg=this.Zg,a.Mk=this.Mk.J(),a.en=this.en,a.rl=this.rl},Ms.prototype.qb=function(a){a===Pe||a===$e||a===Xn?this.imageStretch=a:Qt.prototype.qb.call(this,a)},Ms.prototype.toString=function(){return"Picture("+this.source+")#"+Ko(this)};function Pc(a){a===void 0&&(a=""),a!==""?xc[a]&&(delete xc[a],Im--):(xc=new Zn,Im=0)}function k1(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var E=y.Bg.copy();if(E!=null){for(E=E.iterator;E.next();){var b=E.value;b.N();var z=y.getAttribute("src")||"",tt=b.Og.I(z);if(tt!==null)for(var ot=tt.length,rt=0;rt=E.width&&(z=z+St.offsetX+(ct*St.x-E.width*St.x)),mt>=E.height&&(tt=tt+St.offsetY+(mt*St.y-E.height*St.y)),rt=Math.min(E.width,ct),ot=Math.min(E.height,mt);break;case Le:ct=E.width,mt=E.height;break;case $e:case Xn:yt===$e?(yt=Math.min(E.height/mt,E.width/ct),ct*=yt,mt*=yt):yt===Xn&&(yt=Math.max(E.height/mt,E.width/ct),ct*=yt,mt*=yt,ct>=E.width&&(z=(z+St.offsetX+(ct*St.x-E.width*St.x)/ct)*rt),mt>=E.height&&(tt=(tt+St.offsetY+(mt*St.y-E.height*St.y)/mt)*ot),rt*=1/(ct/E.width),ot*=1/(mt/E.height),ct=E.width,mt=E.height)}yt=this.Df()*y.scale;var Mt=ct*yt*mt*yt,Dt=rt*ot/Mt,Tt=x.__goCache;yt=null;var zt=xx;if(!b){if(x.sq&&Tt!==void 0&&4zt*zt)for(Tt.gi===null&&(A1(Tt,4,at,ut,x),A1(Tt,16,at,ut,x)),b=Tt.gi,at=b.length,ut=0;uta)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,x/3);var E="rr"+y+","+x+","+a,b=Jt.Mf[E];if(b!==void 0)return b;var z=a*Jt.wg;return b=new be().add(new tr(a,0,!0).add(new ai(Di,y-a,0)).add(new ai(Nr,y,a,y-z,0,y,z)).add(new ai(Di,y,x-a)).add(new ai(Nr,y-a,x,y,x-z,y-z,x)).add(new ai(Di,a,x)).add(new ai(Nr,0,x-a,z,x,0,x-z)).add(new ai(Di,0,a)).add(new ai(Nr,a,0,0,z,z,0).close())),1b.x&&a.y>b.y&&a.rightb.x&&y.y>b.y&&y.right=x.maxSelectionCount)){this.G^=4096;var E=!1;if(x!==null){E=x.skipsUndoManager,x.skipsUndoManager=!0;var b=x.selection;b.ka(),a?b.add(this):b.remove(this),b.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),x!==null&&(x.$b(),x.skipsUndoManager=E)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(a){var y=(this.G&524288)!==0;if(y!==a){this.G^=524288;var x=this.diagram;x!==null&&(x=x.highlighteds,x.ka(),a?x.add(this):x.remove(this),x.freeze()),this.g("isHighlighted",y,a),this.N(),a=this.highlightedChanged,a!==null&&a(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(a){var y=(this.G&8192)!==0;y!==a&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",y,a),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(a){var y=(this.G&262144)!==0;y!==a&&(this.G^=262144,this.g("isAnimated",y,a))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(a){var y=this.highlightedChanged;y!==a&&(Ls(this),this.P.oq=a,this.g("highlightedChanged",y,a))}},selectionObjectName:{get:function(){return this.P!==null?this.P.vr:""},set:function(a){var y=this.selectionObjectName;y!==a&&(Ls(this),this.P.vr=a,this.Ug=null,this.g("selectionObjectName",y,a))}},selectionAdornmentTemplate:{get:function(){return this.P!==null?this.P.tr:null},set:function(a){var y=this.selectionAdornmentTemplate;y!==a&&(Ls(this),this.P.tr=a,this.g("selectionAdornmentTemplate",y,a))}},selectionObject:{get:function(){if(this.Ug===null){var a=this.selectionObjectName;a!==null&&a!==""?(a=this.fb(a),a!==null?this.Ug=a:this.Ug=this):this instanceof Ne?(a=this.path,a!==null?this.Ug=a:this.Ug=this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return this.P!==null?this.P.ur:null},set:function(a){var y=this.selectionChanged;y!==a&&(Ls(this),this.P.ur=a,this.g("selectionChanged",y,a))}},resizeAdornmentTemplate:{get:function(){return this.P!==null?this.P.fr:null},set:function(a){var y=this.resizeAdornmentTemplate;y!==a&&(Ls(this),this.P.fr=a,this.g("resizeAdornmentTemplate",y,a))}},resizeObjectName:{get:function(){return this.P!==null?this.P.hr:""},set:function(a){var y=this.resizeObjectName;y!==a&&(Ls(this),this.P.hr=a,this.g("resizeObjectName",y,a))}},resizeObject:{get:function(){var a=this.resizeObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},resizeCellSize:{get:function(){return this.P!==null?this.P.gr:qo},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),Ls(this),this.P.gr=a,this.g("resizeCellSize",y,a))}},rotateAdornmentTemplate:{get:function(){return this.P!==null?this.P.ir:null},set:function(a){var y=this.rotateAdornmentTemplate;y!==a&&(Ls(this),this.P.ir=a,this.g("rotateAdornmentTemplate",y,a))}},rotateObjectName:{get:function(){return this.P!==null?this.P.jr:""},set:function(a){var y=this.rotateObjectName;y!==a&&(Ls(this),this.P.jr=a,this.g("rotateObjectName",y,a))}},rotateObject:{get:function(){var a=this.rotateObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},rotationSpot:{get:function(){return this.P!==null?this.P.lr:rr},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),Ls(this),this.P.lr=a,this.g("rotationSpot",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;y!==a&&(this.ec=a,this.g("text",y,a))}},containingGroup:{get:function(){return this.Ah},set:function(a){if(this.Zc()){var y=this.Ah;if(y!==a){a===null||this!==a&&!a.Td(this)||(this===a&&ee("Cannot make a Group a member of itself: "+this.toString()),ee("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?Vv(y,this):this instanceof Fn&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Yv(a,this):this instanceof Fn&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var E=this.data,b=x.model;if(E!==null&&b.Xj()){var z=b.wa(a!==null?a.data:null);b.mp(E,z)}}if(E=this.containingGroupChanged,E!==null&&(b=!0,x!==null&&(b=x.aa,x.aa=!0),E(this,y,a),x!==null&&(x.aa=b)),this instanceof Fn){for(x=new Ie,Ih(x,this,!0,0,!0),x=x.iterator;x.next();)if(E=x.value,E instanceof Ke)for(E=E.linksConnected;E.next();)Mc(E.value)}if(this instanceof Ke){for(x=this.linksConnected;x.next();)Mc(x.value);x=this.labeledLink,x!==null&&Mc(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&qg(y,-1,a))}}else ee("cannot set the Part.containingGroup of a Link or Adornment")}},containingGroupChanged:{get:function(){return this.P!==null?this.P.Kp:null},set:function(a){var y=this.containingGroupChanged;y!==a&&(Ls(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof Ke&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(Ls(this),this.P.Cq=a,this.g("layoutConditions",y,a))}},dragComputation:{get:function(){return this.P!==null?this.P.Up:null},set:function(a){var y=this.dragComputation;y!==a&&(Ls(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:wa},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),Ls(this),this.P.zr=a,this.N(),this.g("shadowOffset",y,a))}},shadowColor:{get:function(){return this.P!==null?this.P.yr:"gray"},set:function(a){var y=this.shadowColor;y!==a&&(Ls(this),this.P.yr=a,this.N(),this.g("shadowColor",y,a))}},shadowBlur:{get:function(){return this.P!==null?this.P.Vg:4},set:function(a){var y=this.shadowBlur;y!==a&&(Ls(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),hn.prototype.invalidateLayout=hn.prototype.C,hn.prototype.findCommonContainingGroup=hn.prototype.px,hn.prototype.isMemberOf=hn.prototype.Td,hn.prototype.findTopLevelPart=hn.prototype.sz,hn.prototype.findSubGraphLevel=hn.prototype.oz,hn.prototype.ensureBounds=hn.prototype.Va,hn.prototype.getDocumentBounds=hn.prototype.mi,hn.prototype.findObject=hn.prototype.fb,hn.prototype.moveTo=hn.prototype.moveTo,hn.prototype.invalidateAdornments=hn.prototype.Wb,hn.prototype.clearAdornments=hn.prototype.Ej,hn.prototype.removeAdornment=hn.prototype.Jf,hn.prototype.addAdornment=hn.prototype.bh,hn.prototype.findAdornment=hn.prototype.Pj,hn.prototype.updateTargetBindings=hn.prototype.La;var G1=!1;hn.className="Part",hn.LayoutNone=0,hn.LayoutAdded=1,hn.LayoutRemoved=2,hn.LayoutShown=4,hn.LayoutHidden=8,hn.LayoutNodeSized=16,hn.LayoutGroupLayout=32,hn.LayoutNodeReplaced=64,hn.LayoutStandard=127,hn.LayoutAll=16777215;function ri(a,y){a===void 0||a instanceof Yo||typeof a=="string"?hn.call(this,a):(hn.call(this),a&&(y=a)),this.G&=-257,this.Jg="Adornment",this.ue=null,this.Aw=0,this.Uw=!1,this.j=this.$a=null,y&&Object.assign(this,y)}ye(ri,hn),ri.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},ri.prototype.updateRelationshipsFromData=function(){},ri.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof Ne&&y instanceof bn){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var E=0;Ea&&(a=1);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new Ie;x.add(this),Q1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Wu),y.Ue=!1}};function Q1(a,y,x,E,b,z,tt){if(1a&&(a=2);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new Ie;x.add(this),J1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Wu),y.Ue=!1}};function J1(a,y,x,E,b,z,tt){for(var ot=z===a?!1:a.isTreeExpanded,rt=x?a.Mo():a.Sd(),at={};rt.next();){var ut=rt.value;if(ut.isTreeLink&&(ot||ut.fd||ut.bb(),ut=ut.To(a),ut!==null&&ut!==a&&!y.contains(ut))){if(y.add(ut),!ot){ut.Zb(!0),ut.oh();var ct=x?ut.Oo():ut.Po();at.vv=a,ct.all(function(mt){return function(yt){return yt===mt.vv||!yt.isTreeExpanded}}(at))&&b.Cj(ut,z)}(2b&&(b=ot.right),ot.bottom>z&&(z=ot.bottom)}}return isFinite(x)&&isFinite(E)?a.h(x,E,b-x,z-E):(y=y.location,a.h(y.x,y.y,0,0)),a},he.Object.defineProperties(hs.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new jn(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),hs.className="Placeholder";function Ne(a){hn.call(this,ke.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=ds,this.Om=0,this.Qm=ds,this.Rm=NaN,this.qj=Jv,this.po=.5,this.wd=null,this.Nb=new ze().freeze(),this.Tg=this.Mg=null,this.ml=new de,this.ua=new be,this.u=this.o=this.Sf=this.Wf=null,this.su=new jt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}ye(Ne,hn),Ne.prototype.cloneProtected=function(a){hn.prototype.cloneProtected.call(this,a),a.Qa=this.Qa&-113,a.ff=this.ff,a.gn=this.gn,a.vf=this.vf,a.uo=this.uo,a.qk=this.qk,a.Om=this.Om,a.Qm=this.Qm,a.Rm=this.Rm,a.qj=this.qj,a.po=this.po,this.ba!==null&&(a.ba=this.ba.copy())},wt=Ne.prototype,wt.Af=function(a){hn.prototype.Af.call(this,a),this.ff=a.ff,this.vf=a.vf,a.Mg=null,a.bb(),a.Sf=this.Sf;var y=a.fromPort;y!==null&&Ys(y),a=a.toPort,a!==null&&Ys(a)},wt.qb=function(a){a.classType===Ne?(a.value&2)===2?this.routing=a:a===ia||a===Ju||a===kc?this.curve=a:a===Zf||a===Qm||a===Zm?this.adjusting=a:a!==Jv&&a!==ds&&ee("Unknown Link enum value for a Link property: "+a):hn.prototype.qb.call(this,a)},wt.Xc=function(){this.ba===null&&(this.ba=new If)},wt.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),ls(a)||bh(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),ls(a)||bh(a)))},wt.zv=function(){return!1},wt.Av=function(){},wt.Zc=function(){return!1},Ne.prototype.computeAngle=function(a,y,x){return Ne.computeAngle(y,x)},Ne.computeAngle=function(a,y){switch(a){default:case ds:a=0;break;case Jf:a=y;break;case qf:a=y+90;break;case _f:a=y-90;break;case qv:a=y+180;break;case Jm:a=Jt.bp(y),90a&&(a-=180);break;case $f:a=Jt.bp(y+90),90a&&(a-=180);break;case tp:a=Jt.bp(y-90),90a&&(a-=180);break;case qm:if(a=Jt.bp(y),45a||225a)return 0;90a&&(a-=180)}return Jt.bp(a)};function Mc(a){var y=a.fromNode,x=a.toNode,E=null;if(y!==null?E=x!==null?y.px(x):y.containingGroup:x!==null?E=x.containingGroup:E=null,y=E,x=a.Ah,x!==y){x!==null&&Vv(x,a),a.Ah=y,y!==null&&Yv(y,a);var b=a.containingGroupChanged;if(b!==null){var z=!0,tt=a.diagram;tt!==null&&(z=tt.aa,tt.aa=!0),b(a,x,y),tt!==null&&(tt.aa=z)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=E}wt=Ne.prototype,wt.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&hn.prototype.oh.call(this)},wt.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},wt.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function $1(a,y){a.wd===null&&(a.wd=new Ie),a.wd.add(y),a.v()}wt.Vo=function(a){if(hn.prototype.Vo.call(this,a),Nd(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Gm(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||Gm(x,this,E)}Xf(this)}},wt.Wo=function(a){if(hn.prototype.Wo.call(this,a),Nd(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Hm(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||Hm(x,this,E)}Qf(this)}},wt.Lj=function(){if(this.fd=!0,this.wd!==null){var a=this.diagram;if(a!==null)for(var y=this.wd.copy().iterator;y.next();)a.remove(y.value)}this.data!==null&&(a=this.diagram,a!==null&&a.partManager.removeDataForLink(this))},Ne.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},Ne.prototype.move=function(a,y){var x=y?this.location:this.position,E=x.x;isNaN(E)&&(E=0);var b=x.y;for(isNaN(b)&&(b=0),E=a.x-E,b=a.y-b,y===!0?hn.prototype.move.call(this,a,!1):(a=jt.allocAt(x.x+E,x.y+b),hn.prototype.move.call(this,a,!1),jt.free(a)),Zu(this,E,b),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+E,x.y+b)},Ne.prototype.canRelinkFrom=function(){if(!this.relinkableFrom)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},Ne.prototype.canRelinkTo=function(){if(!this.relinkableTo)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},Ne.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(fl),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var x=this.i(0),E=this.i(1);return a.h((x.x+E.x)/2,(x.y+E.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===ia))return this.ua.Pu(.5,a),a.add(this.i(0)),x=this.ua.figures.first(),a.offset(-x.startX,-x.startY),a;if(this.computeCurve()===ia){if(y===3){x=this.i(0),E=this.i(1);var b=this.i(2);return Jt.ax(x.x,x.y,E.x,E.y,E.x,E.y,b.x,b.y,a),a}if(E=(y-1)/3|0,x=3*(E/2|0),E%2===1){E=this.i(x),b=this.i(x+1);var z=this.i(x+2);x=this.i(x+3),Jt.ax(E.x,E.y,b.x,b.y,z.x,z.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var tt=this.flattenedLengths;for(x=this.flattenedTotalLength,b=z=E=0;Ex/2));)E+=b,z++;return y=this.i(z),z=this.i(z+1),1>Math.abs(y.x-z.x)?y.y>z.y?a.h(y.x,y.y-(x/2-E)):a.h(y.x,y.y+(x/2-E)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(x/2-E),y.y):a.h(y.x+(x/2-E),y.y):(x=(x/2-E)/b,a.h(y.x+x*(z.x-y.x),y.y+x*(z.y-y.y))),a},Ne.prototype.computeMidAngle=function(){var a=this.pointsCount;if(2>a)return NaN;if(a===2)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===ia))return this.ua.wx(.5);if(this.computeCurve()===ia&&4<=a){var y=(a-1)/3|0,x=3*(y/2|0);if(y%2===1){x=Math.floor(x),a=this.i(x),y=this.i(x+1);var E=this.i(x+2);return x=this.i(x+3),Jt.My(a.x,a.y,y.x,y.y,E.x,E.y,x.x,x.y)}if(0E/2));)b+=z,x++;if(y=this.i(x),E=this.i(x+1),1>Math.abs(y.x-E.x)&&1>Math.abs(y.y-E.y)){if(0Math.abs(y.x-E.x))return y.y>E.y?270:90;if(1>Math.abs(y.y-E.y))return y.x>E.x?180:0}return y.ab(E)},wt=Ne.prototype,wt.i=function(a){return this.Nb.s[a]},wt.dd=function(a,y){this.Nb.cd(a,y)},wt.L=function(a,y,x){this.Nb.cd(a,new jt(y,x))},wt.Kz=function(a,y){this.Nb.Gb(a,y)},wt.m=function(a,y,x){this.Nb.Gb(a,new jt(y,x))},wt.ne=function(a){this.Nb.add(a)},wt.yf=function(a,y){this.Nb.add(new jt(a,y))},wt.pv=function(a){this.Nb.mb(a)},wt.Fj=function(){this.Nb.clear()};function Zu(a,y,x){if(y!==0||x!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,x),a.defaultToPoint&&a.defaultToPoint.offset(y,x);else{for(var E=a.fd,b=new ze,z=a.Nb.iterator;z.next();){var tt=z.value;b.add(new jt(tt.x+y,tt.y+x).freeze())}b.freeze(),z=a.Nb,a.Nb=b,tt=a.diagram,isNaN(y)||isNaN(x)||tt!==null&&tt.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+x),a.pa.h(a.pa.x+y,a.pa.y+x),as(a)),E?Um(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),tt!==null&&tt.animationManager.zb&&Jg(tt.animationManager,a,b),a.g("points",z,b)}}wt.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},wt.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,E=1/0,b=a.s,z=b.length,tt=0;ttat&&(ct=-ct),Mt=(0>rt?-1:1)*ct+yt,Dt=ut*(Mt-yt)+St),yt=z.x+2*ot/3,St=z.y+2*rt/3;var Tt=yt,zt=St;Jt.B(rt,0)?zt=0rt?-1:1)*ct+yt,zt=ut*(Tt-yt)+St),this.Fj(),this.ne(z),this.yf(Mt,Dt),this.yf(Tt,zt),this.ne(mt),this.dd(0,this.getLinkPoint(a,y,tt,!0,!1,E,b)),this.dd(3,this.getLinkPoint(E,b,x,!1,!1,a,y))}else z=E,mt=b,E=this.getLinkPoint(a,y,tt,!0,!1,z,mt),b=this.getLinkPoint(z,mt,x,!1,!1,a,y),this.hasCurviness()?(mt=b.x-E.x,x=b.y-E.y,tt=this.computeCurviness(),a=E.x+mt/2,y=E.y+x/2,z=a,ot=y,Jt.B(x,0)?ot=0tt&&(z=-z),z=(0>x?-1:1)*z+a,ot=mt*(z-a)+y),this.ne(E),this.yf(z,ot),this.ne(b)):(this.ne(E),this.ne(b),ot=de.alloc(),y.mi(ot),rt=ot.ca(b),mt.mi(ot),at=ot.ca(E),(rt||at)&&(tt=y.ga(Vm(tt),new jt),this.dd(0,this.getLinkPointFromPoint(a,y,tt,b,!0,tt)),x=mt.ga(Vm(x),new jt),this.dd(1,this.getLinkPointFromPoint(z,mt,x,E,!1,x))),de.free(ot))}else{ct=this.isAvoiding,mt&&(ut&&ct||at)&&this.Fj();var Ht=at?this.computeCurviness():0;ct=this.getLinkPoint(a,y,tt,!0,ut,E,b),yt=Mt=St=0,(ut||!ot||at)&&(Dt=this.computeEndSegmentLength(a,y,tt,!0),yt=this.getLinkDirection(a,y,ct,tt,!0,ut,E,b),at&&(ot||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(yt-=ut?90:30,0>Ht&&(yt-=180)),0>yt?yt+=360:360<=yt&&(yt-=360),at&&(Dt+=Math.abs(Ht)*(ut?1:2)),yt===0?St=Dt:yt===90?Mt=Dt:yt===180?St=-Dt:yt===270?Mt=-Dt:(St=Dt*Math.cos(yt*Math.PI/180),Mt=Dt*Math.sin(yt*Math.PI/180)),tt.Mc()&&at&&(Dt=y.ga(gi,jt.alloc()),Tt=jt.allocAt(Dt.x+1e3*St,Dt.y+1e3*Mt),this.getLinkPointFromPoint(a,y,Dt,Tt,!0,ct),jt.free(Dt),jt.free(Tt))),Dt=this.getLinkPoint(E,b,x,!1,ut,a,y);var Ut=zt=Tt=0;if(ut||!rt||at){var Xt=this.computeEndSegmentLength(E,b,x,!1);Ut=this.getLinkDirection(E,b,Dt,x,!1,ut,a,y),at&&(rt||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(Ut+=ut?0:30,0>Ht&&(Ut+=180)),0>Ut?Ut+=360:360<=Ut&&(Ut-=360),at&&(Xt+=Math.abs(Ht)*(ut?1:2)),Ut===0?Tt=Xt:Ut===90?zt=Xt:Ut===180?Tt=-Xt:Ut===270?zt=-Xt:(Tt=Xt*Math.cos(Ut*Math.PI/180),zt=Xt*Math.sin(Ut*Math.PI/180)),x.Mc()&&at&&(x=b.ga(gi,jt.alloc()),tt=jt.allocAt(x.x+1e3*Tt,x.y+1e3*zt),this.getLinkPointFromPoint(E,b,x,tt,!1,Dt),jt.free(x),jt.free(tt))}x=ct,(ut||!ot||at)&&(x=new jt(ct.x+St,ct.y+Mt)),tt=Dt,(ut||!rt||at)&&(tt=new jt(Dt.x+Tt,Dt.y+zt)),!mt&&!ut&&ot&&3Math.abs(y.y-a.y)?(y.x>=a.x?y.x=a.x+9e9:y.x=a.x-9e9,y.y=a.y):(y.y>=a.y?y.y=a.y+9e9:y.y=a.y-9e9,y.x=a.x),y}Ne.prototype.getLinkPointFromPoint=function(a,y,x,E,b,z){if(z===void 0&&(z=new jt),a===null||y===null)return z.assign(x),z;if(a.isVisible()||(b=a.findVisibleNode(),b!==null&&b!==a&&(y=b.port)),a=null,b=y.panel,b===null||b.se()||(b=b.panel),b===null){b=E.x,E=E.y;var tt=x.x;x=x.y}else{a=b.oe,b=1/(a.m11*a.m22-a.m12*a.m21),tt=a.m22*b;var ot=-a.m12*b,rt=-a.m21*b,at=a.m11*b,ut=b*(a.m21*a.dy-a.m22*a.dx),ct=b*(a.m12*a.dx-a.m11*a.dy);b=E.x*tt+E.y*rt+ut,E=E.x*ot+E.y*at+ct,tt=x.x*tt+x.y*rt+ut,x=x.x*ot+x.y*at+ct}return y.Sj(b,E,tt,x,z),a!==null&&z.transform(a),z};function Ym(a,y){var x=y.Zn;return x===null&&(x=new Sg,x.port=y,x.node=y.part,y.Zn=x),aS(x,a)}Ne.prototype.getLinkPoint=function(a,y,x,E,b,z,tt,ot){if(ot===void 0&&(ot=new jt),x.sb()&&!Lc(x))return y.ga(x,ot),ot;if(x.$c()){var rt=Ym(this,y);if(rt!==null){if(ot.assign(rt.Zo),b&&this.routing===eS){var at=Ym(this,tt);if(at!==null&&rt.Gl=ut.y&&a.y<=ut.y+ut.height?ot.y=a.y:(x.Hf(pl)||x.Hf(Ma))&&a.x>=ut.x&&a.x<=ut.x+ut.width&&(ot.x=a.x),jt.free(rt),jt.free(at)}}return ot}}return x=y.ga(Vm(x),jt.alloc()),this.pointsCount>(b?6:2)?(tt=E?this.i(1):this.i(this.pointsCount-2),b&&(tt=Kv(x,tt.copy()))):(rt=this.computeSpot(!E,tt),z=jt.alloc(),tt=tt.ga(Vm(rt),z),b&&(tt=Kv(x,tt)),jt.free(z)),this.getLinkPointFromPoint(a,y,x,tt,E,ot),jt.free(x),ot},Ne.prototype.getLinkDirection=function(a,y,x,E,b,z,tt,ot){t:if(E.sb())var rt=E.x>E.y?E.x>1-E.y?0:E.x<1-E.y?270:315:E.x1-E.y?90:E.x<1-E.y?180:135:.5>E.x?225:.5(z?6:2)?(ot=b?this.i(1):this.i(this.pointsCount-2),ot=z?Kv(rt,ot.copy()):x):(x=jt.alloc(),ot=ot.ga(gi,x),jt.free(x)),x=Math.abs(ot.x-rt.x)>Math.abs(ot.y-rt.y)?ot.x>=rt.x?0:180:ot.y>=rt.y?90:270,jt.free(rt),rt=x}return E.Mc()&&tt.Td(a)&&(rt+=180,360<=rt&&(rt-=360)),Lc(E)||(a=y.li(),a===0)||(45<=a&&135>a?rt+=90:135<=a&&225>a?rt+=180:225<=a&&315>a&&(rt+=270),360<=rt&&(rt-=360)),rt},Ne.prototype.computeEndSegmentLength=function(a,y,x,E){return y!==null&&x.$c()&&(a=Ym(this,y),a!==null)?a.Ju:(a=E?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=E?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},Ne.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=gi:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===rr?$o:y)):(a=y||this.toPort,a===null?a=gi:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===rr?$o:y)),a};function Lc(a){return a===$o||a.x===.5&&a.y===.5}function Vm(a){return a.x===.5&&a.y===.5?a:gi}Ne.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==ds&&4mt.width||ct.y>mt.height||0>ct.x+ct.width||0>ct.y+ct.height)){if(ct=Rn.alloc(),ct.set(tt),ut instanceof ke)ot=ut.Cf(a,y,x,E,b,ct);else if(this.path===ut){if(ut instanceof bn)if(ot=a,mt=E,ut.pickable===!1)ot=!1;else if(ct.multiply(ut.transform),mt)t:{var yt=ot,St=ct;if(ut.fh(yt,St))ot=!0;else{if(St===void 0&&(St=ut.transform,yt.Re(ut.actualBounds))){ot=!0;break t}ot=yt.left,mt=yt.right;var Mt=yt.top;yt=yt.bottom;var Dt=jt.alloc(),Tt=jt.alloc(),zt=jt.alloc(),Ht=Rn.alloc();Ht.set(St),Ht.bv(ut.transform),Ht.Vj(),Tt.x=mt,Tt.y=Mt,Tt.transform(Ht),Dt.x=ot,Dt.y=Mt,Dt.transform(Ht),St=!1,Ed(ut,Dt,Tt,zt)?St=!0:(Dt.x=mt,Dt.y=yt,Dt.transform(Ht),Ed(ut,Dt,Tt,zt)?St=!0:(Tt.x=ot,Tt.y=yt,Tt.transform(Ht),Ed(ut,Dt,Tt,zt)?St=!0:(Dt.x=ot,Dt.y=Mt,Dt.transform(Ht),Ed(ut,Dt,Tt,zt)&&(St=!0)))),Rn.free(Ht),jt.free(Dt),jt.free(Tt),jt.free(zt),ot=St}}else ot=ut.fh(ot,ct)}else ot=nr(ut,a,E,ct);ot&&(mt=ut,y!==null&&(mt=y(ut)),mt&&(x===null||x(mt))&&b.add(mt)),Rn.free(ct)}}}return z===void 0&&Rn.free(tt),ot||this.background!==null||this.areaBackground!==null}return z===void 0&&Rn.free(tt),!1},Ne.prototype.computeCurve=function(){if(this.Wf===null){var a=this.fromPort,y=this.isOrthogonal;this.Wf=a!==null&&a===this.toPort&&!y}return this.Wf?ia:this.curve},Ne.prototype.computeCorner=function(){if(this.curve===ia)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},Ne.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,E=0;Ert?-Math.PI/2:Math.PI/2;else ut=Math.atan(rt/Math.abs(ot)),0>ot&&(ut=Math.PI-ut);tt=y.x;var ct=y.y;ot=E.x-tt;var mt=E.y-ct;for(rt=Math.sqrt(ot*ot+mt*mt),Jt.$(ot,0)?mt=0>mt?-Math.PI/2:Math.PI/2:(mt=Math.atan(mt/Math.abs(ot)),0>ot&&(mt=Math.PI-mt)),at=rt/at,ut=mt-ut,this.dd(a,y),a+=1;art?-Math.PI/2:Math.PI/2:(rt=Math.atan(rt/Math.abs(ot)),0>ot&&(rt=Math.PI-rt)),ot=rt+ut,y*=at,this.L(a,tt+y*Math.cos(ot),ct+y*Math.sin(ot)));this.dd(x,E)}}return!0;case Zm:if(z=this.i(a),ct=this.i(x),!z.Xa(y)||!ct.Xa(E)){b=z.x,z=z.y,tt=ct.x,ct=ct.y,at=(tt-b)*(tt-b)+(ct-z)*(ct-z),ot=y.x,ut=y.y,rt=E.x,mt=E.y;var yt=1;if(rt-ot!==0){var St=(mt-ut)/(rt-ot);yt=Math.sqrt(1+1/(St*St))}else St=9e9;for(this.dd(a,y),a+=1;ay?y+=360:360<=y&&(y-=360),0>E?E+=360:360<=E&&(E-=360);var tt=E;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,E=315<=E||45>E?0:45<=E&&135>E?90:135<=E&&225>E?180:270;var ot=b.actualBounds.copy(),rt=z.actualBounds.copy();if(ot.w()&&rt.w()){ot.Bc(ep,ep),rt.Bc(ep,ep),ot.Ye(a),rt.Ye(x);var at=jt.alloc(),ut=jt.alloc();y===0?x.x>a.x||E===270&&x.ya.x||E===90&&x.y>a.y&&rt.right>a.x?(at.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),E===180?(at.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ut.x=at.x,ut.y=x.y):E===270&&x.ya.y?(at.x=a.xrt.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):rt.right,ut.x=at.x,ut.y=x.y):E===0&&a.xrt.top&&a.yot.bottom)&&(E===180&&(rt.ca(a)||ot.ca(x))?at.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.ya.y&&(E===180||E===270)&&(at.y=this.computeMidOrthoPosition(a.x,ot.bottom,x.x,Math.min(x.y,rt.top),!0)),ut.x=x.x,ut.y=at.y),at.y>ot.top&&at.y=ot.left&&x.x<=a.x||a.x<=rt.right&&a.x>=x.x?(E===90||E===270)&&(at.h(Math.max((a.x+x.x)/2,a.x),a.y),ut.h(at.x,x.y)):(at.y=E===270||(E===0||E===180)&&x.ya.y&&rt.lefta.y?(at.x=a.x>rt.right?this.computeMidOrthoPosition(a.x,a.y,rt.right,x.y,!1):a.x>rt.left&&(E===270&&a.yrt.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):rt.left,ut.x=at.x,ut.y=x.y):E===180&&a.x>rt.right&&a.y>rt.top&&a.yot.bottom)&&(E===0&&(rt.ca(a)||ot.ca(x))?at.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.ya.y&&(E===0||E===270)&&(at.y=this.computeMidOrthoPosition(a.x,ot.bottom,x.x,Math.min(x.y,rt.top),!0)),ut.x=x.x,ut.y=at.y),at.y>ot.top&&at.y=a.x||a.x>=rt.left&&a.x<=x.x?(E===90||E===270)&&(at.h(Math.min((a.x+x.x)/2,a.x),a.y),ut.h(at.x,x.y)):(at.y=E===270||(E===0||E===180)&&x.ya.y||E===180&&x.xa.y||E===0&&x.x>a.x&&rt.bottom>a.y?(at.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),E===270?(at.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ut.x=x.x,ut.y=at.y):E===180&&x.xa.x?(at.y=a.yrt.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):rt.bottom,ut.x=x.x,ut.y=at.y):E===90&&a.yrt.left&&a.xot.right)&&(E===270&&(rt.ca(a)||ot.ca(x))?at.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.xa.x&&(E===270||E===180)&&(at.x=this.computeMidOrthoPosition(ot.right,a.y,Math.min(x.x,rt.left),x.y,!1)),ut.x=at.x,ut.y=x.y),at.x>ot.left&&at.x=ot.top&&x.y<=a.y||a.y<=rt.bottom&&a.y>=x.y?(E===0||E===180)&&(at.h(a.x,Math.max((a.y+x.y)/2,a.y)),ut.h(x.x,at.y)):(at.x=E===180||(E===90||E===270)&&x.xa.x&&rt.top=a.x?(at.y=a.y>rt.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,rt.bottom,!0):a.y>rt.top&&(E===180&&a.xrt.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):rt.top,ut.x=x.x,ut.y=at.y):E===270&&a.y>rt.bottom&&a.x>rt.left&&a.xot.right)&&(E===90&&(rt.ca(a)||ot.ca(x))?at.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.xa.x&&(E===90||E===180)&&(at.x=this.computeMidOrthoPosition(ot.right,a.y,Math.min(x.x,rt.left),x.y,!1)),ut.x=at.x,ut.y=x.y),at.x>ot.left&&at.x=a.y||a.y>=rt.top&&a.y<=x.y?(E===0||E===180)&&(at.h(a.x,Math.min((a.y+x.y)/2,a.y)),ut.h(x.x,at.y)):(at.x=E===180||(E===90||E===270)&&x.x=Ac&&(oS(yt),ot.Bc(yt.Ho*yt.Hx,yt.Go*yt.Ix),rS(yt,a,y,ct,E,ot,!1),rt=Ul(yt,ct.x,ct.y)),!yt.abort&&rtthis.pointsCount?(y===0||y===180?(ot.x=a.x,ot.y=ct.y):(ot.x=ct.x,ot.y=a.y),this.L(2,ot.x,ot.y),this.m(3,ot.x,ot.y)):(tt=this.i(3),y===0||y===180?Jt.B(ot.x,tt.x)?(ot=y===0?Math.max(ot.x,a.x):Math.min(ot.x,a.x),this.L(2,ot,a.y),this.L(3,ot,tt.y)):Jt.B(ot.y,tt.y)?(Math.abs(a.y-ot.y)<=yt.Go/2&&(this.L(2,ot.x,a.y),this.L(3,tt.x,a.y)),this.m(2,ot.x,a.y)):this.L(2,a.x,ot.y):(y===90||y===270)&&(Jt.B(ot.y,tt.y)?(ot=y===90?Math.max(ot.y,a.y):Math.min(ot.y,a.y),this.L(2,a.x,ot),this.L(3,tt.x,ot)):Jt.B(ot.x,tt.x)?(Math.abs(a.x-ot.x)<=yt.Ho/2&&(this.L(2,a.x,ot.y),this.L(3,a.x,tt.y)),this.m(2,a.x,ot.y)):this.L(2,ot.x,a.y))),x!==null&&(a=this.i(1),tt=this.i(2),a.x!==tt.x&&a.y!==tt.y?y===0||y===180?this.m(2,a.x,tt.y):this.m(2,tt.x,a.y):y===0||y===180?this.m(2,b.x,x.y):this.m(2,x.x,b.y)),St!==null&&(E===0||E===180?this.yf(z.x,St.y):this.yf(St.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(at.copy()),this.ne(ut.copy())),jt.free(at),jt.free(ut)}},Ne.prototype.computeMidOrthoPosition=function(a,y,x,E,b){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),b?(y+E)/2+z:(a+x)/2+z};function Xv(a){if(a.diagram===null||!a.isAvoiding||!rc(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=sc(a.diagram,!0,a.containingGroup,null);for(var E=1;ETd&&Ul(y,ut,ct)!==at-1&&(Ul(y,x-ot,E)===at-1?(b=180,ut=x-ot,ct=E):Ul(y,x+ot,E)===at-1?(b=0,ut=x+ot,ct=E):Ul(y,x,E-rt)===at-1?(b=270,ut=x,ct=E-rt):Ul(y,x,E+rt)===at-1&&(b=90,ut=x,ct=E+rt));at>Td&&Ul(y,ut,ct)===at-1;)x=ut,E=ct,b===0?ut+=ot:b===90?ct+=rt:b===180?ut-=ot:ct-=rt,--at;z?at>Td&&(b===180||b===0?x=Math.floor(x/ot)*ot+ot/2:(b===90||b===270)&&(E=Math.floor(E/rt)*rt+rt/2)):(x=Math.floor(x/ot)*ot+ot/2,E=Math.floor(E/rt)*rt+rt/2),at>Td&&(z=b,tt=x,ut=E,b===0?(z=90,ut+=rt):b===90?(z=180,tt-=ot):b===180?(z=270,ut-=rt):b===270&&(z=0,tt+=ot),Ul(y,tt,ut)===at-1?Qv(a,y,tt,ut,z,!1,z):(tt=x,ut=E,b===0?(z=270,ut-=rt):b===90?(z=0,tt+=ot):b===180?(z=90,ut+=rt):b===270&&(z=180,tt-=ot),Ul(y,tt,ut)===at-1&&Qv(a,y,tt,ut,z,!1,z))),a.yf(x,E)}Ne.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),E=this.i(1),b=Qo(y,a,x.x,x.y,E.x,E.y),z=0,tt=1;ttthis.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),a=this.path,a!==null)){a.ua=this.ua;for(var y=this.O.s,x=y.length,E=0;E=y&&(E=y-1),rt=this.i(E),z.x=Math.min(rt.x,z.x),z.y=Math.min(rt.y,z.y);E=z.x,rt=z.y}else{for(rt=0;rtDt?St>yt?(z.x=Tt-Ht,z.y=yt-Ht,b.x=Tt+Mt,b.y=yt+Mt):(z.x=Tt-Ht,z.y=yt+Ht,b.x=Tt+Mt,b.y=yt-Mt):St>yt?(z.x=Tt+Ht,z.y=yt-Ht,b.x=Tt-Mt,b.y=yt+Mt):(z.x=Tt+Ht,z.y=yt+Ht,b.x=Tt-Mt,b.y=yt-Mt)),Jt.$(Dt,Tt)&&Jt.$(yt,St)&&(yt>mt?(zt>Tt?(z.x=Tt-Ht,z.y=yt-Ht,b.x=Tt+Mt):(z.x=Tt+Ht,z.y=yt-Ht,b.x=Tt-Mt),b.y=yt+Mt):(zt>Tt?(z.x=Tt-Ht,z.y=yt+Ht,b.x=Tt+Mt):(z.x=Tt+Ht,z.y=yt+Ht,b.x=Tt-Mt),b.y=yt-Mt)),(Jt.$(Dt,Tt)&&Jt.$(Tt,zt)||Jt.$(mt,yt)&&Jt.$(yt,St))&&(Dt=.5*(Dt+zt),mt=.5*(mt+St),z.x=Dt,z.y=mt,b.x=Dt,b.y=mt),(ct===1||ct===2&&Jt.$(tt.x,this.i(0).x)&&Jt.$(tt.y,this.i(0).y))&&(x.x=.5*(tt.x+at.x),x.y=.5*(tt.y+at.y)),Ku(ot,x.x-E,x.y-rt,z.x-E,z.y-rt,at.x-E,at.y-rt),y.set(z),x.set(b),tt=at}}at=tt.x,tt=tt.y,ut=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ut=pg(this,ut.copy(),!1,Dr)),at=.5*(at+ut.x),tt=.5*(tt+ut.y),Ku(ot,b.x-E,b.y-rt,at-E,tt-rt,ut.x-E,ut.y-rt),jt.free(y),jt.free(x),jt.free(z),jt.free(b)}else for(x=3;x=y&&(x=y-1),b=this.i(x-1),tt=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(tt=pg(this,tt.copy(),!1,Dr)),Ku(ot,z.x-E,z.y-rt,b.x-E,b.y-rt,tt.x-E,tt.y-rt);else{for(z=jt.alloc(),z.assign(this.i(0)),b=jt.alloc(),b.assign(z),tt=this.computeCorner(),ct=1,at=0;ct=y-1){if(!z.D(ut))this.computeShortLength(!1)!==0&&(ut=pg(this,ut.copy(),!1,Dr)),mg(this,ot,-E,-rt,z,ut,x);else if(at===0)for(ct=1;ctz.x?Ut=mt.x-St:Ut=mt.x+St,Tt.y>mt.y?zt=mt.y+Ht:zt=mt.y-Ht,Tt=jt.allocAt(Ut,Xt),mg(this,ot,ct,Dt,z,Tt,Mt),jt.free(Tt),Om(ot,mt.x+ct,mt.y+Dt,yt+ct,zt+Dt),z.h(yt,zt)}else Jt.B(z.x,mt.x)&&Jt.B(mt.y,Tt.y)?(St=Math.min(tt,Math.abs(mt.y-b.y)/2),St=Ht=Math.min(St,Math.abs(Tt.x-mt.x)/2),Jt.B(Ht,0)?(mg(this,ot,ct,Dt,z,mt,Mt),z.assign(mt)):(Ut=mt.x,Xt=mt.y,yt=Ut,zt=Xt,mt.y>z.y?Xt=mt.y-St:Xt=mt.y+St,Tt.x>mt.x?yt=mt.x+Ht:yt=mt.x-Ht,Tt=jt.allocAt(Ut,Xt),mg(this,ot,ct,Dt,z,Tt,Mt),jt.free(Tt),Om(ot,mt.x+ct,mt.y+Dt,yt+ct,zt+Dt),z.h(yt,zt))):(mg(this,ot,ct,Dt,z,mt,Mt),z.assign(mt));b.assign(ut),ct=at}jt.free(z)}jm=ot}else ot=this.i(1).copy(),ot.x-=E,ot.y-=rt,this.computeShortLength(!0)!==0&&(b=pg(this,b,!0,z)),this.computeShortLength(!1)!==0&&(ot=pg(this,ot,!1,z)),a.type=be.j,a.startX=b.x,a.startY=b.y,a.endX=ot.x,a.endY=ot.y;return this.lk=!0,a};function Km(a,y,x,E){return a=x-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=E-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),Jt.$(a,0)?y:Jt.$(y,0)?a:Math.sqrt(a*a+y*y)))}function pg(a,y,x,E){var b=a.pointsCount;if(2>b)return y;if(x){var z=a.i(1);if(x=z.x-E.x,z=z.y-E.y,E=Km(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!0),a>b&&(a=b),b=a*(z-y.y)/E,y.x+=a*(x-y.x)/E,y.y+=b}else{if(z=a.i(b-2),x=z.x-E.x,z=z.y-E.y,E=Km(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!1),a>b&&(a=b),b=a*(y.y-z)/E,y.x-=a*(y.x-x)/E,y.y-=b}return y}function Zv(a,y,x,E){for(var b=a.pointsCount,z=y;Jt.$(y.x,z.x)&&Jt.$(y.y,z.y);){if(x>=b)return b-1;z=a.i(x++)}if(!Jt.$(y.x,z.x)&&!Jt.$(y.y,z.y))return x-1;for(var tt=z;Jt.$(y.x,z.x)&&Jt.$(z.x,tt.x)&&(!E||(y.y>=z.y?z.y>=tt.y:z.y<=tt.y))||Jt.$(y.y,z.y)&&Jt.$(z.y,tt.y)&&(!E||(y.x>=z.x?z.x>=tt.x:z.x<=tt.x));){if(x>=b)return b-1;tt=a.i(x++)}return x-2}Ne.prototype.computeJumpLength=function(){return 10};function mg(a,y,x,E,b,z,tt){if(!tt&&Nd(a)){tt=a.computeJumpLength();var ot=tt/2,rt=[],at=0;if(a.isVisible()&&(at=Lx(a,b,z,rt)),0ct-tt);)at--,ct=Math.max(ut-ot,z.x);ut=z.y-tt+E,ct+=x,yt=z.y+E,a.curve===Ju?Cc(y,ct,yt,!1):Ku(y,mt,ut,ct,ut,ct,yt)}else if(Jt.B(b.x,z.x))if(b.yut-tt);)at--,ut=Math.max(ct-ot,z.y);ct=z.x-tt+x,yt=z.x+x,ut+=E,a.curve===Ju?Cc(y,yt,ut,!1):Ku(y,ct,mt,ct,ut,yt,ut)}}}y.lineTo(z.x+x,z.y+E)}function Lx(a,y,x,E){var b=a.diagram;if(b===null||y.D(x))return 0;for(b=b.layers;b.next();){var z=b.value;if(z!==null&&z.visible){z=z.Pa.s;for(var tt=z.length,ot=0;ottt.x&&ut.x>=at.x||at.xtt.y&&ut.y>=at.y||at.ytt&&Math.min(St,Mt)ut&&!Jt.B(St,Mt)){ot.x=ut,ot.y=tt,ut=!0;break t}}else if(Jt.B(ct,yt)&&Jt.B(St,Mt)&&Math.min(ut,mt)St&&Math.min(tt,Dt)ct&&!Jt.B(tt,Dt)){ot.x=St,ot.y=ct,ut=!0;break t}ot.x=0,ot.y=0,ut=!1}ut&&(b?x.push(ot.x):x.push(ot.y)),tt=at}jt.free(ot)}function Nd(a){return a=a.curve,a===kc||a===Ju}function Xm(a,y){(y||Nd(a))&&(y=a.diagram,y===null||y.animationManager.isTicking||y.Eh.contains(a)||a.ml.width===0&&a.ml.height===0||y.Eh.add(a,a.ml.copy()))}Ne.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var x=y.diagram;if(x!==null&&!x.animationManager.isTicking){var E=!1;for(x=x.layers;x.next();){var b=x.value;if(b.visible){if(b===y){E=!0;var z=!1;b=b.Pa.s;for(var tt=b.length,ot=0;ota&&_n(a,">= 0",Ne,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),this.bb())}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:NaN},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.qc(),this.g("fromShortLength",y,a))}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:rr},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),(y.$c()||a.$c())&&this.toNode!==null&&Ys(this.toPort),this.bb())}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:NaN},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&_n(a,">= 0",Ne,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),this.bb())}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:NaN},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.qc(),this.g("toShortLength",y,a))}},isLabeledLink:{get:function(){return this.wd===null?!1:0=E&&(z=E-1);var ot=this.i(z-1),rt=this.i(z);Jt.Dl(b.x,b.y,tt.x,tt.y,ot.x,ot.y,rt.x,rt.y,.5,a),y=Math.min(rt.x,y),x=Math.min(rt.y,x),b=rt}else for(b=this.i(0),z=this.i(1),y=Math.min(b.x,z.x),x=Math.min(b.y,z.y),a.h(b.x,b.y,0,0),a.Ye(z),b=2;bE&&(E=-E)):Jt.$(E.y,b.y)?(E=b.x-E.x,0>E&&(E=-E)):E=Math.sqrt(E.Bf(b)),a.push(E)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,x=y.length,E=a=0;Ethis.pointsCount)return this.lk=!0,this.ua;this.ua=this.makeGeometry()}return this.ua}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!Lc(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!Lc(this.computeSpot(!1))?a-2:a-1}},adjusting:{get:function(){return this.qk},set:function(a){var y=this.qk;y!==a&&(this.qk=a,this.g("adjusting",y,a))}},corner:{get:function(){return this.Om},set:function(a){var y=this.Om;y!==a&&(this.Om=a,this.qc(),this.g("corner",y,a))}},curve:{get:function(){return this.Qm},set:function(a){var y=this.Qm;y!==a&&(this.Qm=a,this.bb(),this.qc(),Xm(this,y===Ju||y===kc||a===Ju||a===kc),this.g("curve",y,a))}},curviness:{get:function(){return this.Rm},set:function(a){var y=this.Rm;y!==a&&(this.Rm=a,this.bb(),this.qc(),this.g("curviness",y,a))}},routing:{get:function(){return this.qj},set:function(a){var y=this.qj;y!==a&&(this.qj=a,this.Wf=null,this.bb(),Xm(this,(y.value&2)===2||(a.value&2)===2),this.g("routing",y,a))}},smoothness:{get:function(){return this.po},set:function(a){var y=this.po;y!==a&&(this.po=a,this.qc(),this.g("smoothness",y,a))}},key:{get:function(){var a=this.diagram;if(a!==null&&a.model.ri())return a.model.Ac(this.data)}}}),Ne.prototype.invalidateOtherJumpOvers=Ne.prototype.Xo,Ne.prototype.findClosestSegment=Ne.prototype.ez,Ne.prototype.updateRoute=Ne.prototype.vg,Ne.prototype.invalidateRoute=Ne.prototype.bb,Ne.prototype.rollbackRoute=Ne.prototype.rv,Ne.prototype.commitRoute=Ne.prototype.zf,Ne.prototype.startRoute=Ne.prototype.uh,Ne.prototype.clearPoints=Ne.prototype.Fj,Ne.prototype.removePoint=Ne.prototype.pv,Ne.prototype.addPointAt=Ne.prototype.yf,Ne.prototype.addPoint=Ne.prototype.ne,Ne.prototype.insertPointAt=Ne.prototype.m,Ne.prototype.insertPoint=Ne.prototype.Kz,Ne.prototype.setPointAt=Ne.prototype.L,Ne.prototype.setPoint=Ne.prototype.dd,Ne.prototype.getPoint=Ne.prototype.i,Ne.prototype.getOtherPort=Ne.prototype.Cz,Ne.prototype.getOtherNode=Ne.prototype.To;var vg=null,yg=null,Jv=new Me(Ne,"Normal",1),Ex=new Me(Ne,"Orthogonal",2),Ax=new Me(Ne,"AvoidsNodes",6),eS=new Me(Ne,"AvoidsNodesStraight",7),ds=new Me(Ne,"None",0),ia=new Me(Ne,"Bezier",9),Ju=new Me(Ne,"JumpGap",10),kc=new Me(Ne,"JumpOver",11),Zf=new Me(Ne,"End",17),Qm=new Me(Ne,"Scale",18),Zm=new Me(Ne,"Stretch",19),Jf=new Me(Ne,"OrientAlong",21),qf=new Me(Ne,"OrientPlus90",22),_f=new Me(Ne,"OrientMinus90",23),qv=new Me(Ne,"OrientOpposite",24),Jm=new Me(Ne,"OrientUpright",25),$f=new Me(Ne,"OrientPlus90Upright",26),tp=new Me(Ne,"OrientMinus90Upright",27),qm=new Me(Ne,"OrientUpright45",28),nS=16,iS=14,ep=8;Ne.className="Link",Ne.Normal=Jv,Ne.Orthogonal=Ex,Ne.AvoidsNodes=Ax,Ne.AvoidsNodesStraight=eS,Ne.None=ds,Ne.Bezier=ia,Ne.JumpGap=Ju,Ne.JumpOver=kc,Ne.End=Zf,Ne.Scale=Qm,Ne.Stretch=Zm,Ne.OrientAlong=Jf,Ne.OrientPlus90=qf,Ne.OrientMinus90=_f,Ne.OrientOpposite=qv,Ne.OrientUpright=Jm,Ne.OrientPlus90Upright=$f,Ne.OrientMinus90Upright=tp,Ne.OrientUpright45=qm,Ne.EndSegmentStep=8,Ne.CurvinessStart=nS,Ne.SpacingMin=iS,Ne.OrthoShortCut=ep;function _m(a,y,x,E){Yi(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=E,this.links=[]}_m.prototype.Sl=function(){if(!this.qq){var a=this.links;0=a.width||0>=a.height)){var y=a.y,x=a.x+a.width,E=a.y+a.height;if(this.Nd=Math.floor((a.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((y-this.sc)/this.sc)*this.sc,this.En=Math.ceil((x+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((E+2*this.sc)/this.sc)*this.sc,a=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),y=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di=Td&&(x[E]=_v)}np.prototype.Yj=function(a,y,x,E){if(a>this.En||a+xthis.Fn||y+Ea&&(x+=a,a=0),0>y&&(b+=y,y=0),0>x||0>b)return!0;for(E=Math.min(a+x-1,this.di)|0,x=Math.min(y+b-1,this.ei)|0;a<=E;a++){b=this.ac[a];for(var z=y;z<=x;z++)if(b[z]===qu)return!1}return!0};function Yl(a,y,x,E,b,z,tt,ot,rt){if(!(ytt||xrt)){var at=y|0,ut=x|0,ct=a.ac[at][ut];if(ct>=Td&&ct=a.ac[at][ut]);)a.ac[at][ut]=ct,ct+=1,b?ut+=E:at+=E;if(at=b?ut:at,b)if(0at;x+=E)Yl(a,y,x,1,!b,z,tt,ot,rt),Yl(a,y,x,-1,!b,z,tt,ot,rt);else if(0at;y+=E)Yl(a,y,x,1,!b,z,tt,ot,rt),Yl(a,y,x,-1,!b,z,tt,ot,rt)}}function $m(a,y,x,E,b,z,tt,ot,rt){y|=0,x|=0;var at=qu,ut=Td;for(a.ac[y][x]=ut;at===qu&&y>z&&yot&&xz&&yot&&x=Math.abs(ot-at)&&1>=Math.abs(rt-ut))a.abort=!0;else{var ct=z.x;E=z.y,y=z.x+z.width;var mt=z.y+z.height;ct-=a.Nd,ct/=a.rc,E-=a.Od,E/=a.sc,y-=a.Nd,y/=a.rc,mt-=a.Od,mt/=a.sc,z=Math.max(0,Math.min(a.di,ct|0)),y=Math.min(a.di,Math.max(0,y|0)),ct=Math.max(0,Math.min(a.ei,E|0)),mt=Math.min(a.ei,Math.max(0,mt|0)),E=a.ac,ot|=0,rt|=0,at|=0,ut|=0;var yt=x===0||x===90?1:-1;if(x=x===90||x===270,E[ot][rt]===qu?($m(a,ot,rt,yt,x,z,y,ct,mt),$m(a,ot,rt,1,!x,z,y,ct,mt),$m(a,ot,rt,-1,!x,z,y,ct,mt)):$m(a,ot,rt,yt,x,ot,rt,ot,rt),E[at][ut]===qu?(t0(a,at,ut,b===0||b===90?1:-1,b===90||b===270,z,y,ct,mt),t0(a,at,ut,1,!(b===90||b===270),z,y,ct,mt),t0(a,at,ut,-1,!(b===90||b===270),z,y,ct,mt)):t0(a,at,ut,yt,x,at,ut,at,ut),x=$n(),tt&&sS(a,at,ut,b,ot,rt,x))for((x[0]!==at||x[1]!==ut)&&(x.unshift(ut),x.unshift(at)),(x[x.length-2]!==ot||x[x.length-1]!==rt)&&(x.push(ot),x.push(rt)),a=Td,b=x[x.length-2],tt=x[x.length-1],E[b][tt]=a++,z=x.length-4;0<=z;z-=2)for(b=x[z+2],tt=x[z+3],y=x[z],at=x[z+1];y>b?b++:ytt?tt++:atb)ut--;else break;else if(ct>z)ct--;else break;var mt=ot[ut][ct];if(mt===0||mt===$v)break;rt=ut,at=ct}for(;;){if(ut=E,ct=rt,mt=at,E===0?mtz&&(ut=270,mt--):E===90?ctb&&(ut=180,ct--):E===180?mtz&&(ut=270,mt--):ctb&&(ut=180,ct--),ct=ot[ct][mt],ut!==E&&ct!==0&&ct!==$v){if(tt.push(rt),tt.push(at),sS(a,rt,at,ut,b,z,tt))return!0;tt.pop(),tt.pop()}if(ot[rt][at]=$v,E===0){if(rt===y)return!1;rt--}else if(E===90){if(at===x)return!1;at--}else if(E===180){if(rt===y)return!1;rt++}else{if(at===x)return!1;at++}}}he.Object.defineProperties(np.prototype,{bounds:{get:function(){return new de(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(a){0=x?180:0}switch(a=180*Math.atan2(a.height,a.width)/Math.PI,y){case 3:return x>a&&x<=180+a?180:270;case 5:return x>180-a&&x<=360-a?270:0;case 12:return x>a&&x<=180+a?90:0;case 10:return x>180-a&&x<=360-a?180:90;case 7:return 90180+a&&x<=360-a?270:0;case 13:return 180a&&180>=x?90:0;case 14:return x>a&&x<=180-a?90:x>180-a&&270>=x?180:0;case 11:return x>180-a&&x<=180+a?180:x>180+a?270:90}return E&&y!==15&&(x-=15,0>x&&(x+=360)),x>a&&x<180-a?90:x>=180-a&&x<=180+a?180:x>180+a&&x<360-a?270:0}Sg.prototype.Sl=function(){this.pe.length=0};function aS(a,y){var x=a.pe;if(x.length===0){t:if(!a.ap){x=a.ap,a.ap=!0;var E=null,b=a.node,z=b instanceof Fn?b:null;if(z===null||z.isSubGraphExpanded)var tt=b.isTreeExpanded?b.findLinksConnected(a.port.portId):b.qx();else{if(!z.actualBounds.w()){a.ap=x;break t}E=z,tt=E.Lu()}z=a.pe.length=0;var ot=a.port.ga(yr,jt.alloc()),rt=a.port.ga(ys,jt.alloc());for(b=de.allocAt(ot.x,ot.y,0,0),b.Ye(rt),jt.free(ot),jt.free(rt),ot=jt.allocAt(b.x+b.width/2,b.y+b.height/2),rt=a.port.li(),tt=tt.iterator;tt.next();){var at=tt.value;if(at.isVisible()&&at.fromPort!==at.toPort){var ut=at.fromPort===a.port||at.fromNode!==null&&at.fromNode.Td(E),ct=at.computeSpot(ut,a.port);if(ct.$c()&&(ut=ut?at.toPort:at.fromPort,ut!==null)){var mt=ut.part;if(mt!==null){var yt=mt.findVisibleNode();yt!==null&&yt!==mt&&(mt=yt,ut=mt.port),ut=at.computeOtherPoint(mt,ut),mt=ot.ab(ut),mt-=rt,0>mt?mt+=360:360<=mt&&(mt-=360),ct=Nx(b,ct,mt,at.isOrthogonal),ct===0?(ct=4,180mt&&(mt+=360)),yt=a.pe[z],yt===void 0?(yt=new ty(at,mt,ct),a.pe[z]=yt):(yt.link=at,yt.angle=mt,yt.Nc=ct),yt.hv.set(ut),z++}}}}for(jt.free(ot),a.pe.sort(Sg.prototype.j),rt=a.pe.length,E=-1,z=ot=0;zMath.abs(Mt)?(zt=Math.abs(Mt)/mt,mt=Math.abs(Mt)):zt=1;break;case 2:yt>Math.abs(Ht)?(zt=Math.abs(Ht)/yt,yt=Math.abs(Ht)):zt=1;break;case 1:ct>Math.abs(Mt)?(zt=Math.abs(Mt)/ct,ct=Math.abs(Mt)):zt=1;break;default:case 4:ut>Math.abs(Ht)?(zt=Math.abs(Ht)/ut,ut=Math.abs(Ht)):zt=1}Tt=0}var ie=Ut.Zo;if(E===Uv){switch(Ut=Ut.link.computeThickness(),Ut*=zt,ie.set(Xt),St){case 8:ie.x=Xt.x+Mt/2+mt/2-Tt-Ut/2;break;case 2:ie.y=Xt.y+Ht/2+yt/2-Tt-Ut/2;break;case 1:ie.x=Xt.x+Mt/2-ct/2+Tt+Ut/2;break;default:case 4:ie.y=Xt.y+Ht/2-ut/2+Tt+Ut/2}Tt+=Ut}else{var We=.5;E===Wm&&(We=(Ut.Uo+1)/(Ut.Gl+1)),ie.x=Xt.x+Mt*We,ie.y=Xt.y+Ht*We}}}for(jt.free(ot),jt.free(rt),jt.free(tt),jt.free(at),Xt=a.pe,z=0;zy.Nc?1:a.angley.angle?1:0},Sg.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,$o,y.fromPort===this.port),E=a.Uo;if(0>E)return x;var b=a.Gl;if(1>=b||!y.isOrthogonal)return x;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(E=b-1-E),((a=a.Nc===2||a.Nc===4)?y.y=y-1?(z=0,E=x,b+=tt+20,tt=0):z++}},Ui.prototype.doMinimalNetworkLayout=function(){var a=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var y=this.arrangementOrigin.x,x=y,E=this.arrangementOrigin.y,b=0,z=0,tt=this.network.vertexes.iterator;tt.next();){var ot=tt.value.node;if(!(ot===null||ot instanceof Ne)&&(ip(ot),this.rh(ot))){var rt=ot.measuredBounds,at=rt.width;rt=rt.height,ot.moveTo(x,E),ot instanceof Fn&&(ot.rh=!1),x+=Math.max(at,50)+20,z=Math.max(z,Math.max(rt,50)),b>=a-1?(b=0,x=y,E+=z+20,z=0):b++}}},Ui.prototype.rh=function(a){return!!(!a.location.w()||a instanceof Fn&&a.rh)};function Oh(a,y,x,E,b,z,tt,ot){for(x=x.iterator;x.next();){var rt=x.value;E&&!rt.isTopLevel||b!==null&&!b(rt)||!rt.canLayout()||(z&&rt instanceof Ke?rt.isLinkLabel||(rt instanceof Fn&&rt.layout===null?Oh(a,y,rt.memberParts,!1,b,z,tt,ot):(ip(rt),y.add(rt))):tt&&rt instanceof Ne?y.add(rt):!ot||!rt.Zc()||rt instanceof Ke||(ip(rt),y.add(rt)))}}function ip(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Ui.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new de),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Ui.prototype.ex=function(a){var y=new Ie;return a instanceof oe?(Oh(this,y,a.nodes,!0,null,!0,!0,!0),Oh(this,y,a.links,!0,null,!0,!0,!0),Oh(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof Fn?Oh(this,y,a.memberParts,!1,null,!0,!0,!0):Oh(this,y,a.iterator,!1,null,!0,!0,!0),y},Ui.prototype.initialOrigin=function(a){var y=this.group;if(y!==null){var x=y.position.copy();return(isNaN(x.x)||isNaN(x.y))&&x.set(a),y=y.placeholder,y!==null&&(x=y.ga(yr),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},he.Object.defineProperties(Ui.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},group:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a,a!==null&&(this.H=a.diagram))}},isOngoing:{get:function(){return this.sn},set:function(a){this.sn!==a&&(this.sn=a)}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a,a||(this.xn=!0)}},isViewportSized:{get:function(){return this.yn},set:function(a){this.yn!==a&&(this.yn=a)&&this.C()}},isRouting:{get:function(){return this.vn},set:function(a){this.vn!==a&&(this.vn=a)}},isRealtime:{get:function(){return this.un},set:function(a){this.un!==a&&(this.un=a)}},isValidLayout:{get:function(){return this.xn},set:function(a){this.xn!==a&&(this.xn=a,a||(a=this.diagram,a!==null&&(a.xh=!0)))}},network:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,a!==null&&(a.layout=this))}},boundsComputation:{get:function(){return this.Em},set:function(a){this.Em!==a&&(this.Em=a,this.C())}},arrangementOrigin:{get:function(){return this.Am},set:function(a){this.Am.D(a)||(this.Am.assign(a),this.C())}}}),Ui.prototype.collectParts=Ui.prototype.ex,Ui.prototype.getLayoutBounds=Ui.prototype.ni,Ui.prototype.invalidateLayout=Ui.prototype.C,Ui.className="Layout";function Ni(a){Yi(this),this.Sc=a,this.wf=new Ie,this.ye=new Ie,this.Es=new En,this.zs=new En}Ni.prototype.clear=function(){if(this.wf)for(var a=this.wf.iterator;a.next();)a.value.clear();if(this.ye)for(a=this.ye.iterator;a.next();)a.value.clear();this.wf=new Ie,this.ye=new Ie,this.Es=new En,this.zs=new En},Ni.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutNetwork"+(this.layout!==null?"("+this.layout.toString()+")":"");if(0>=a)return y;if(y+=" vertexes: "+this.wf.count+" edges: "+this.ye.count,1y?1:0):1:y!==null?-1:0}he.Object.defineProperties(Vo.prototype,{sourceEdgesArrayAccess:{get:function(){return this.tg._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.mg._dataArray}},data:{get:function(){return this.ub},set:function(a){if(this.ub=a,a!==null&&a.bounds){var y=a.bounds;a=y.x;var x=y.y,E=y.width;y=y.height,this.o.h(E/2,y/2),this.j.h(a,x,E,y)}}},node:{get:function(){return this.Sh},set:function(a){if(this.Sh!==a){this.Sh=a,a.Va();var y=this.network.layout,x=de.alloc(),E=y.ni(a,x);y=E.x;var b=E.y,z=E.width;if(E=E.height,isNaN(y)&&(y=0),isNaN(b)&&(b=0),this.j.h(y,b,z,E),de.free(x),!(a instanceof Fn)&&(a=a.locationObject.ga(gi),a.w())){this.o.h(a.x-y,a.y-b);return}this.o.h(z/2,E/2)}}},bounds:{get:function(){return this.j},set:function(a){this.j.D(a)||this.j.assign(a)}},focus:{get:function(){return this.o},set:function(a){this.o.D(a)||this.o.assign(a)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(a){var y=this.j;y.x+this.o.x!==a&&(y.ka(),y.x=a-this.o.x,y.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(a){var y=this.j;y.y+this.o.y!==a&&(y.ka(),y.y=a-this.o.y,y.freeze())}},focusX:{get:function(){return this.o.x},set:function(a){var y=this.o;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},focusY:{get:function(){return this.o.y},set:function(a){var y=this.o;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},x:{get:function(){return this.j.x},set:function(a){var y=this.j;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},y:{get:function(){return this.j.y},set:function(a){var y=this.j;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},width:{get:function(){return this.j.width},set:function(a){var y=this.j;y.width!==a&&(y.ka(),y.width=a,y.freeze())}},height:{get:function(){return this.j.height},set:function(a){var y=this.j;y.height!==a&&(y.ka(),y.height=a,y.freeze())}},network:{get:function(){return this.ob},set:function(a){this.ob=a}},sourceVertexes:{get:function(){for(var a=new Ie,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new Ie,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new Ie,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);for(y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},sourceEdges:{get:function(){return this.tg.iterator}},destinationEdges:{get:function(){return this.mg.iterator}},edges:{get:function(){for(var a=new ze,y=this.sourceEdges;y.next();)a.add(y.value);for(y=this.destinationEdges;y.next();)a.add(y.value);return a.iterator}},edgesCount:{get:function(){return this.tg.count+this.mg.count}}}),Vo.prototype.deleteDestinationEdge=Vo.prototype.Jl,Vo.prototype.addDestinationEdge=Vo.prototype.zl,Vo.prototype.deleteSourceEdge=Vo.prototype.Kl,Vo.prototype.addSourceEdge=Vo.prototype.Cl,Vo.className="LayoutVertex",Vo.standardComparer=oy,Vo.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.Sh;var x=y.Sh;if(a!==null){if(x!==null){for(y=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),a=x.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),x=0;x "+(this.qd?this.qd.toString():"null"))),y},Vs.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},Vs.prototype.commit=function(){},Vs.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},he.Object.defineProperties(Vs.prototype,{network:{get:function(){return this.nb},set:function(a){this.nb=a}},data:{get:function(){return this.ub},set:function(a){this.ub!==a&&(this.ub=a)}},link:{get:function(){return this.$k},set:function(a){this.$k!==a&&(this.$k=a)}},fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}}}),Vs.prototype.getOtherVertex=Vs.prototype.Ax,Vs.className="LayoutEdge";function Pr(a){Ui.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new Xe(NaN,NaN).freeze(),this.tf=new Xe(10,10).freeze(),this.Jb=op,this.Rb=n0,this.nd=rp,this.hd=uS,a&&Object.assign(this,a)}ye(Pr,Ui),Pr.prototype.cloneProtected=function(a){Ui.prototype.cloneProtected.call(this,a),a.zo=this.zo,a.yo=this.yo,a.yg.assign(this.yg),a.tf.assign(this.tf),a.Jb=this.Jb,a.Rb=this.Rb,a.nd=this.nd,a.hd=this.hd},Pr.prototype.qb=function(a){a.classType===Pr?a===rp||a===o0||a===ry||a===i0?this.sorting=a:a===n0||a===rl?this.arrangement=a:a===op||a===e0?this.alignment=a:ee("Unknown enum value: "+a):Ui.prototype.qb.call(this,a)},Pr.prototype.doLayout=function(a){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var y=this.ex(a);a=this.diagram;for(var x=y.copy().iterator;x.next();){var E=x.value;if(!E.ph()||E.fromNode===null&&E.toNode===null){if(E.Va(),E instanceof Fn)for(E=E.memberParts;E.next();)y.remove(E.value)}else y.remove(E)}var b=y.Fa();if(b.length!==0){switch(this.sorting){case i0:b.reverse();break;case rp:b.sort(this.comparer);break;case o0:b.sort(this.comparer),b.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var tt=this.wrappingWidth;switch(isNaN(tt)&&a!==null?(y=a.padding,tt=Math.max(a.viewportBounds.width-y.left-y.right,0)):tt=Math.max(this.wrappingWidth,0),0>=z&&0>=tt&&(z=1),y=this.spacing.width,isFinite(y)||(y=0),x=this.spacing.height,isFinite(x)||(x=0),a!==null&&a.Ea("Layout"),E=[],this.alignment){case e0:var ot=y,rt=x,at=de.alloc(),ut=Math.max(this.cellSize.width,1);if(!isFinite(ut))for(var ct=ut=0;ctz-1||0tt)&&(E.push(new de(0,Mt,tt+ot,Tt)),Dt=0,St=yt,Mt+=Tt,Tt=0),Tt=Math.max(Tt,ie),mt){case rl:Ut=-Ut.width;break;default:Ut=0}switch(Ht.moveTo(St+Ut,Mt),mt){case rl:St-=Xt;break;default:St+=Xt}Dt++}E.push(new de(0,Mt,tt+ot,Tt)),de.free(at);break;case op:for(rt=tt,ut=z,ct=y,mt=x,tt=de.alloc(),yt=Math.max(this.cellSize.width,1),z=Mt=at=0,ot=jt.alloc(),St=0;St=at&&(rt-=at),at=Ht=0,Xt=Math.max(this.cellSize.height,1),Ut=z=0,ie=!0,Dt=jt.alloc(),We=0;Weut-1||0rt){for(E.push(new de(0,ie?zt-z:zt,rt+ct,Ut+z+mt)),qe=0;qeat&&(z.width+=z.x-at,z.x=at);de.free(tt)}for(ot=z=tt=b=0;oty?1:0}he.Object.defineProperties(Pr.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(a){this.zo!==a&&(0ct)){var Mt=ct+Gf(St);St.pc(Mt,!0),xv(St,Mt,ct)}}y.isModified=!0}}finally{y.aa=!0}}}}},pi.prototype.updateAllTargetBindings=function(a){a===void 0&&(a="");for(var y=this.parts.iterator;y.next();)y.value.La(a);for(y=this.nodes.iterator;y.next();)y.value.La(a);for(y=this.links.iterator;y.next();)y.value.La(a)},pi.prototype.rp=function(){for(var a=this.H.model,y=new Ie,x=a.nodeDataArray,E=0;Ey?1:0):1:y!==null?-1:0}he.Object.defineProperties(Vo.prototype,{sourceEdgesArrayAccess:{get:function(){return this.tg._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.mg._dataArray}},data:{get:function(){return this.ub},set:function(a){if(this.ub=a,a!==null&&a.bounds){var y=a.bounds;a=y.x;var x=y.y,E=y.width;y=y.height,this.o.h(E/2,y/2),this.j.h(a,x,E,y)}}},node:{get:function(){return this.Sh},set:function(a){if(this.Sh!==a){this.Sh=a,a.Va();var y=this.network.layout,x=de.alloc(),E=y.ni(a,x);y=E.x;var b=E.y,z=E.width;if(E=E.height,isNaN(y)&&(y=0),isNaN(b)&&(b=0),this.j.h(y,b,z,E),de.free(x),!(a instanceof Fn)&&(a=a.locationObject.ga(gi),a.w())){this.o.h(a.x-y,a.y-b);return}this.o.h(z/2,E/2)}}},bounds:{get:function(){return this.j},set:function(a){this.j.D(a)||this.j.assign(a)}},focus:{get:function(){return this.o},set:function(a){this.o.D(a)||this.o.assign(a)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(a){var y=this.j;y.x+this.o.x!==a&&(y.ka(),y.x=a-this.o.x,y.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(a){var y=this.j;y.y+this.o.y!==a&&(y.ka(),y.y=a-this.o.y,y.freeze())}},focusX:{get:function(){return this.o.x},set:function(a){var y=this.o;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},focusY:{get:function(){return this.o.y},set:function(a){var y=this.o;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},x:{get:function(){return this.j.x},set:function(a){var y=this.j;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},y:{get:function(){return this.j.y},set:function(a){var y=this.j;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},width:{get:function(){return this.j.width},set:function(a){var y=this.j;y.width!==a&&(y.ka(),y.width=a,y.freeze())}},height:{get:function(){return this.j.height},set:function(a){var y=this.j;y.height!==a&&(y.ka(),y.height=a,y.freeze())}},network:{get:function(){return this.ob},set:function(a){this.ob=a}},sourceVertexes:{get:function(){for(var a=new Ie,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new Ie,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new Ie,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);for(y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},sourceEdges:{get:function(){return this.tg.iterator}},destinationEdges:{get:function(){return this.mg.iterator}},edges:{get:function(){for(var a=new ze,y=this.sourceEdges;y.next();)a.add(y.value);for(y=this.destinationEdges;y.next();)a.add(y.value);return a.iterator}},edgesCount:{get:function(){return this.tg.count+this.mg.count}}}),Vo.prototype.deleteDestinationEdge=Vo.prototype.Jl,Vo.prototype.addDestinationEdge=Vo.prototype.zl,Vo.prototype.deleteSourceEdge=Vo.prototype.Kl,Vo.prototype.addSourceEdge=Vo.prototype.Cl,Vo.className="LayoutVertex",Vo.standardComparer=oy,Vo.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.Sh;var x=y.Sh;if(a!==null){if(x!==null){for(y=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),a=x.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),x=0;x "+(this.qd?this.qd.toString():"null"))),y},Vs.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},Vs.prototype.commit=function(){},Vs.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},he.Object.defineProperties(Vs.prototype,{network:{get:function(){return this.nb},set:function(a){this.nb=a}},data:{get:function(){return this.ub},set:function(a){this.ub!==a&&(this.ub=a)}},link:{get:function(){return this.$k},set:function(a){this.$k!==a&&(this.$k=a)}},fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}}}),Vs.prototype.getOtherVertex=Vs.prototype.Ax,Vs.className="LayoutEdge";function Pr(a){Ui.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new Xe(NaN,NaN).freeze(),this.tf=new Xe(10,10).freeze(),this.Jb=op,this.Rb=n0,this.nd=rp,this.hd=uS,a&&Object.assign(this,a)}ye(Pr,Ui),Pr.prototype.cloneProtected=function(a){Ui.prototype.cloneProtected.call(this,a),a.zo=this.zo,a.yo=this.yo,a.yg.assign(this.yg),a.tf.assign(this.tf),a.Jb=this.Jb,a.Rb=this.Rb,a.nd=this.nd,a.hd=this.hd},Pr.prototype.qb=function(a){a.classType===Pr?a===rp||a===o0||a===ry||a===i0?this.sorting=a:a===n0||a===rl?this.arrangement=a:a===op||a===e0?this.alignment=a:ee("Unknown enum value: "+a):Ui.prototype.qb.call(this,a)},Pr.prototype.doLayout=function(a){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var y=this.ex(a);a=this.diagram;for(var x=y.copy().iterator;x.next();){var E=x.value;if(!E.ph()||E.fromNode===null&&E.toNode===null){if(E.Va(),E instanceof Fn)for(E=E.memberParts;E.next();)y.remove(E.value)}else y.remove(E)}var b=y.Fa();if(b.length!==0){switch(this.sorting){case i0:b.reverse();break;case rp:b.sort(this.comparer);break;case o0:b.sort(this.comparer),b.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var tt=this.wrappingWidth;switch(isNaN(tt)&&a!==null?(y=a.padding,tt=Math.max(a.viewportBounds.width-y.left-y.right,0)):tt=Math.max(this.wrappingWidth,0),0>=z&&0>=tt&&(z=1),y=this.spacing.width,isFinite(y)||(y=0),x=this.spacing.height,isFinite(x)||(x=0),a!==null&&a.Ea("Layout"),E=[],this.alignment){case e0:var ot=y,rt=x,at=de.alloc(),ut=Math.max(this.cellSize.width,1);if(!isFinite(ut))for(var ct=ut=0;ctz-1||0tt)&&(E.push(new de(0,Mt,tt+ot,Tt)),Dt=0,St=yt,Mt+=Tt,Tt=0),Tt=Math.max(Tt,ie),mt){case rl:Ut=-Ut.width;break;default:Ut=0}switch(Ht.moveTo(St+Ut,Mt),mt){case rl:St-=Xt;break;default:St+=Xt}Dt++}E.push(new de(0,Mt,tt+ot,Tt)),de.free(at);break;case op:for(rt=tt,ut=z,ct=y,mt=x,tt=de.alloc(),yt=Math.max(this.cellSize.width,1),z=Mt=at=0,ot=jt.alloc(),St=0;St=at&&(rt-=at),at=Ht=0,Xt=Math.max(this.cellSize.height,1),Ut=z=0,ie=!0,Dt=jt.alloc(),We=0;Weut-1||0rt){for(E.push(new de(0,ie?zt-z:zt,rt+ct,Ut+z+mt)),qe=0;qeat&&(z.width+=z.x-at,z.x=at);de.free(tt)}for(ot=z=tt=b=0;oty?1:0}he.Object.defineProperties(Pr.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(a){this.zo!==a&&(0ct)){var Mt=ct+Gf(St);St.pc(Mt,!0),xv(St,Mt,ct)}}y.isModified=!0}}finally{y.aa=!0}}}}},pi.prototype.updateAllTargetBindings=function(a){a===void 0&&(a="");for(var y=this.parts.iterator;y.next();)y.value.La(a);for(y=this.nodes.iterator;y.next();)y.value.La(a);for(y=this.links.iterator;y.next();)y.value.La(a)},pi.prototype.rp=function(){for(var a=this.H.model,y=new Ie,x=a.nodeDataArray,E=0;E=E)return"[]";var b=new Hn;b.add("["),x&&1=E)return"[]";var b=new Hn;b.add("["),x&&1E)return;Zi(a.Tc,E)}Go(a,"nodeDataArray",Uo,"nodeDataArray",a,y,null,E,null),a.qp(y)}wt.nA=function(a){if(Je(a))for(var y=a.length,x=0;xy&&(y=a.length),Qi(a,y,x),Go(this,"",Co,"",a,null,x,null,y)},wt.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&ee("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];Zi(a,y),Go(this,"",Uo,"",a,x,null,y,null)},wt.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=So(a,y),y===void 0))return"";if(typeof y=="string")return y;ee("getCategoryForNodeData found a non-string category for "+a+": "+y)},wt.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var E=So(a,x);E===void 0&&(E=""),E!==y&&(Hi(a,x,y),Go(this,"nodeCategory",Ki,x,a,E,y))}else Hi(a,x,y)}},wt.lm=function(a,y){this.jm(y,this.Ro(a))},wt.Tl=function(){return!1},wt.Wj=function(){return!1},wt.ri=function(){return!1},wt.xs=function(){return!1},wt.Xj=function(){return!1};function hy(){return new en}function ap(a,y){if(typeof y=="function"){if(y.className)return y.className;if(y.name)return y.name}else if(typeof y=="object"&&y!==null&&y.constructor)return ap(a,y.constructor);return typeof y}function dy(a){return Ka[a]?Ka[a]:Ze.go!==void 0&&Ze.go[a]?Ze.go[a]:null}function So(a,y){if(!a||!y)return null;try{if(typeof y=="function")var x=y(a);else typeof a.getAttribute=="function"?(x=a.getAttribute(y),x===null&&(x=void 0)):x=a[y]}catch(E){}return x}function Hi(a,y,x){if(a&&y)try{typeof y=="function"?y(a,x):typeof a.setAttribute=="function"?a.setAttribute(y,x):a[y]=x}catch(E){}}he.Object.defineProperties(en.prototype,{name:{get:function(){return this.xa},set:function(a){var y=this.xa;y!==a&&(this.xa=a,this.g("name",y,a))}},dataFormat:{get:function(){return this.Sm},set:function(a){var y=this.Sm;y!==a&&(this.Sm=a,this.g("dataFormat",y,a))}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},modelData:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.g("modelData",y,a),this.La(a))}},undoManager:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&(y!==null&&y.Rx(this),this.o=a,a!==null&&a.Xw(this))}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a}},nodeKeyProperty:{get:function(){return this.Th},set:function(a){var y=this.Th;y!==a&&(a===""&&ee("Model.nodeKeyProperty may not be the empty string"),0E)return;Zi(a.Tc,E)}Go(a,"nodeDataArray",Uo,"nodeDataArray",a,y,null,E,null),a.qp(y)}wt.nA=function(a){if(Je(a))for(var y=a.length,x=0;xy&&(y=a.length),Qi(a,y,x),Go(this,"",Co,"",a,null,x,null,y)},wt.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&ee("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];Zi(a,y),Go(this,"",Uo,"",a,x,null,y,null)},wt.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=So(a,y),y===void 0))return"";if(typeof y=="string")return y;ee("getCategoryForNodeData found a non-string category for "+a+": "+y)},wt.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var E=So(a,x);E===void 0&&(E=""),E!==y&&(Hi(a,x,y),Go(this,"nodeCategory",Ki,x,a,E,y))}else Hi(a,x,y)}},wt.lm=function(a,y){this.jm(y,this.Ro(a))},wt.Tl=function(){return!1},wt.Wj=function(){return!1},wt.ri=function(){return!1},wt.xs=function(){return!1},wt.Xj=function(){return!1};function hy(){return new en}function ap(a,y){if(typeof y=="function"){if(y.className)return y.className;if(y.name)return y.name}else if(typeof y=="object"&&y!==null&&y.constructor)return ap(a,y.constructor);return typeof y}function dy(a){return Ka[a]?Ka[a]:Ze.go!==void 0&&Ze.go[a]?Ze.go[a]:null}function So(a,y){if(!a||!y)return null;try{if(typeof y=="function")var x=y(a);else typeof a.getAttribute=="function"?(x=a.getAttribute(y),x===null&&(x=void 0)):x=a[y]}catch(E){}return x}function Hi(a,y,x){if(a&&y)try{typeof y=="function"?y(a,x):typeof a.setAttribute=="function"?a.setAttribute(y,x):a[y]=x}catch(E){}}he.Object.defineProperties(en.prototype,{name:{get:function(){return this.xa},set:function(a){var y=this.xa;y!==a&&(this.xa=a,this.g("name",y,a))}},dataFormat:{get:function(){return this.Sm},set:function(a){var y=this.Sm;y!==a&&(this.Sm=a,this.g("dataFormat",y,a))}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},modelData:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.g("modelData",y,a),this.La(a))}},undoManager:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&(y!==null&&y.Rx(this),this.o=a,a!==null&&a.Xw(this))}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a}},nodeKeyProperty:{get:function(){return this.Th},set:function(a){var y=this.Th;y!==a&&(a===""&&ee("Model.nodeKeyProperty may not be the empty string"),0"+oa(this,b,!1)}return y},wt.Qv=function(a,y){this.linkKeyProperty===""&&ee("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=en.prototype.Qv.call(this,a,y),E=this,b=new Ie,z=new Ie,tt=new Ie,ot=this.vh;a.changes.each(function(ut){ut.model===E&&(ut.modelChange==="linkDataArray"?ut.change===Co?b.add(ut.newValue):ut.change===Uo&&tt.add(ut.oldValue):E.Jc(ut.object)?z.add(ut.object):ut.object!==null&&(ut.object!==null&&ot&&ot.contains(ut.object)?ot.get(ut.object).each(function(ct){E.Jc(ct)&&z.add(ct)}):ut.object instanceof en||E.lb(ut.object)||ES(E,ut.object).each(function(ct){z.add(ct)})))});var rt=this.il;rt.clear(),b.each(function(ut){rt.add(E.Ac(ut)),y||z.add(ut)});var at=this.kl;return at.clear(),tt.each(function(ut){at.add(E.Ac(ut)),y&&z.add(ut)}),a=E.cloneDeep(z.Fa()),0"+oa(this,b,!1)}return y},wt.Qv=function(a,y){this.linkKeyProperty===""&&ee("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=en.prototype.Qv.call(this,a,y),E=this,b=new Ie,z=new Ie,tt=new Ie,ot=this.vh;a.changes.each(function(ut){ut.model===E&&(ut.modelChange==="linkDataArray"?ut.change===Co?b.add(ut.newValue):ut.change===Uo&&tt.add(ut.oldValue):E.Jc(ut.object)?z.add(ut.object):ut.object!==null&&(ut.object!==null&&ot&&ot.contains(ut.object)?ot.get(ut.object).each(function(ct){E.Jc(ct)&&z.add(ct)}):ut.object instanceof en||E.lb(ut.object)||AS(E,ut.object).each(function(ct){z.add(ct)})))});var rt=this.il;rt.clear(),b.each(function(ut){rt.add(E.Ac(ut)),y||z.add(ut)});var at=this.kl;return at.clear(),tt.each(function(ut){at.add(E.Ac(ut)),y&&z.add(ut)}),a=E.cloneDeep(z.Fa()),0E.indexOf(a.newValue)&&E.splice(x,0,a.newValue));return}}else if(a.change===Uo){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,we(a)&&typeof x=="number"&&(E=this.Ac(a),y?(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),E!==void 0&&this.wb.add(E,a)):(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),E!==void 0&&this.wb.remove(E)));return}if(a.modelChange==="linkLabelKeys"){E=this.Ef(a.object),Array.isArray(E)&&typeof x=="number"&&(y?0>E.indexOf(a.newValue)&&E.splice(x,0,a.newValue):(x=E.indexOf(a.newValue),0<=x&&E.splice(x,1)));return}}en.prototype.changeState.call(this,a,y)}},wt=qn.prototype,wt.Vl=function(a){if(a!==void 0){var y=this.Ri;if(y!==null){var x=this.hc(a);x===null&&(x=this.copyNodeData(y),Hi(x,this.nodeKeyProperty,a),this.xf(x))}return a}},wt.yx=function(a){return oa(this,a,!0)},wt.wv=function(a,y){Tc(this,a,y,!0)},wt.Bx=function(a){return oa(this,a,!1)},wt.Bv=function(a,y){Tc(this,a,y,!1)};function oa(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=So(y,a),a!==void 0))){if(zh(a))return a;ee((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Tc(a,y,x,E){if(x===null&&(x=void 0),y!==null){var b=E?a.lf:a.mf;if(b!=="")if(x=a.Vl(x),a.Jc(y)){var z=So(y,b);z!==x&&(al(a,z,y),Hi(y,b,x),a.hc(x)===null&&sl(a,x,y),Go(a,E?"linkFromKey":"linkToKey",Ki,b,y,z,x),typeof b=="string"&&a.La(y,b))}else Hi(y,b,x)}}wt.zx=function(a){return u0(this,a,!0)},wt.xv=function(a,y){Fc(this,a,y,!0)},wt.Cx=function(a){return u0(this,a,!1)},wt.Cv=function(a,y){Fc(this,a,y,!1)};function u0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=So(y,a),y===void 0?"":y)}function Fc(a,y,x,E){if(y!==null){var b=E?a.ej:a.fj;if(b!=="")if(a.Jc(y)){var z=So(y,b);z===void 0&&(z=""),z!==x&&(Hi(y,b,x),Go(a,E?"linkFromPortId":"linkToPortId",Ki,b,y,z,x),typeof b=="string"&&a.La(y,b))}else Hi(y,b,x)}}wt.Ef=function(a){if(a===null)return h0;var y=this.je;return y===""?h0:(a=So(a,y),a===void 0?h0:a)},wt.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var E=So(a,x);if(E===void 0&&(E=h0),E!==y){if(Array.isArray(E))for(var b=E.length,z=0;zb||(E.splice(b,1),this.Jc(a)&&(al(this,y,a),Go(this,"linkLabelKeys",Uo,x,a,y,null,b,null)))}else E!==void 0&&ee(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},wt.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=So(a,y),y!==void 0)){if(zh(y))return y;ee("Key value for link data "+a+" is not a number or a string: "+y)}}},wt.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var E=So(a,x);E!==y&&this.jh(y)===null&&(Hi(a,x,y),E!==void 0&&this.wb.remove(E),this.wb.add(y,a),Go(this,"linkKey",Ki,x,a,E,y),typeof x=="string"&&this.La(a,x))}else Hi(a,x,y)}},wt.jh=function(a){return a===null&&ee("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&zh(a)?this.wb.I(a):null},wt.Bs=function(a){if(a!==null){var y=this.Jh;if(y!==""){var x=this.Ac(a);if(x===void 0||this.wb.contains(x)){var E=this.cl;if(E!==null&&(x=E(this,a),x!=null&&!this.wb.contains(x))){Hi(a,y,x);return}if(typeof x=="string"){for(E=2;this.wb.contains(x+E);)E++;Hi(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;Hi(a,y,x)}}}}},wt.Jc=function(a){return a===null?!1:this.$f.contains(a)},wt.fi=function(a){a!==null&&(zr(a),this.Jc(a)||NS(this,a,!0))};function NS(a,y,x){if(a.linkKeyProperty!==""){var E=a.Ac(y);if(E!==void 0&&a.wb.I(E)===y)return;a.Bs(y),E=a.Ac(y),E===void 0&&ee("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(E,y)}a.$f.add(y),E=null,x&&(E=a.md.length,a.md.splice(E,0,y)),Go(a,"linkDataArray",Co,"linkDataArray",a,null,y,null,E),gy(a,y)}wt.Ey=function(a){if(Array.isArray(a))for(var y=a.length,x=0;xE)return;a.md.splice(E,1)}if(Go(a,"linkDataArray",Uo,"linkDataArray",a,y,null,E,null),x=oa(a,y,!0),al(a,x,y),x=oa(a,y,!1),al(a,x,y),E=a.Ef(y),Array.isArray(E))for(var b=E.length,z=0;zE.indexOf(a.newValue)&&E.splice(x,0,a.newValue));return}}else if(a.change===Uo){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,we(a)&&typeof x=="number"&&(E=this.Ac(a),y?(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),E!==void 0&&this.wb.add(E,a)):(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),E!==void 0&&this.wb.remove(E)));return}if(a.modelChange==="linkLabelKeys"){E=this.Ef(a.object),Array.isArray(E)&&typeof x=="number"&&(y?0>E.indexOf(a.newValue)&&E.splice(x,0,a.newValue):(x=E.indexOf(a.newValue),0<=x&&E.splice(x,1)));return}}en.prototype.changeState.call(this,a,y)}},wt=qn.prototype,wt.Vl=function(a){if(a!==void 0){var y=this.Ri;if(y!==null){var x=this.hc(a);x===null&&(x=this.copyNodeData(y),Hi(x,this.nodeKeyProperty,a),this.xf(x))}return a}},wt.yx=function(a){return oa(this,a,!0)},wt.wv=function(a,y){Tc(this,a,y,!0)},wt.Bx=function(a){return oa(this,a,!1)},wt.Bv=function(a,y){Tc(this,a,y,!1)};function oa(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=So(y,a),a!==void 0))){if(zh(a))return a;ee((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Tc(a,y,x,E){if(x===null&&(x=void 0),y!==null){var b=E?a.lf:a.mf;if(b!=="")if(x=a.Vl(x),a.Jc(y)){var z=So(y,b);z!==x&&(al(a,z,y),Hi(y,b,x),a.hc(x)===null&&sl(a,x,y),Go(a,E?"linkFromKey":"linkToKey",Ki,b,y,z,x),typeof b=="string"&&a.La(y,b))}else Hi(y,b,x)}}wt.zx=function(a){return u0(this,a,!0)},wt.xv=function(a,y){Fc(this,a,y,!0)},wt.Cx=function(a){return u0(this,a,!1)},wt.Cv=function(a,y){Fc(this,a,y,!1)};function u0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=So(y,a),y===void 0?"":y)}function Fc(a,y,x,E){if(y!==null){var b=E?a.ej:a.fj;if(b!=="")if(a.Jc(y)){var z=So(y,b);z===void 0&&(z=""),z!==x&&(Hi(y,b,x),Go(a,E?"linkFromPortId":"linkToPortId",Ki,b,y,z,x),typeof b=="string"&&a.La(y,b))}else Hi(y,b,x)}}wt.Ef=function(a){if(a===null)return h0;var y=this.je;return y===""?h0:(a=So(a,y),a===void 0?h0:a)},wt.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var E=So(a,x);if(E===void 0&&(E=h0),E!==y){if(Array.isArray(E))for(var b=E.length,z=0;zb||(E.splice(b,1),this.Jc(a)&&(al(this,y,a),Go(this,"linkLabelKeys",Uo,x,a,y,null,b,null)))}else E!==void 0&&ee(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},wt.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=So(a,y),y!==void 0)){if(zh(y))return y;ee("Key value for link data "+a+" is not a number or a string: "+y)}}},wt.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var E=So(a,x);E!==y&&this.jh(y)===null&&(Hi(a,x,y),E!==void 0&&this.wb.remove(E),this.wb.add(y,a),Go(this,"linkKey",Ki,x,a,E,y),typeof x=="string"&&this.La(a,x))}else Hi(a,x,y)}},wt.jh=function(a){return a===null&&ee("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&zh(a)?this.wb.I(a):null},wt.Bs=function(a){if(a!==null){var y=this.Jh;if(y!==""){var x=this.Ac(a);if(x===void 0||this.wb.contains(x)){var E=this.cl;if(E!==null&&(x=E(this,a),x!=null&&!this.wb.contains(x))){Hi(a,y,x);return}if(typeof x=="string"){for(E=2;this.wb.contains(x+E);)E++;Hi(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;Hi(a,y,x)}}}}},wt.Jc=function(a){return a===null?!1:this.$f.contains(a)},wt.fi=function(a){a!==null&&(zr(a),this.Jc(a)||NS(this,a,!0))};function NS(a,y,x){if(a.linkKeyProperty!==""){var E=a.Ac(y);if(E!==void 0&&a.wb.I(E)===y)return;a.Bs(y),E=a.Ac(y),E===void 0&&ee("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(E,y)}a.$f.add(y),E=null,x&&(E=a.md.length,a.md.splice(E,0,y)),Go(a,"linkDataArray",Co,"linkDataArray",a,null,y,null,E),gy(a,y)}wt.Ey=function(a){if(Array.isArray(a))for(var y=a.length,x=0;xE)return;a.md.splice(E,1)}if(Go(a,"linkDataArray",Uo,"linkDataArray",a,y,null,E,null),x=oa(a,y,!0),al(a,x,y),x=oa(a,y,!1),al(a,x,y),E=a.Ef(y),Array.isArray(E))for(var b=E.length,z=0;z=a.count)a.count===1&&(a=a.first(),a.centerX=0,a.centerY=0);else{var y=new ze;y.addAll(a.iterator),a=new ze;var x=new ze,E=this.sort(y),b,z,tt=this.Jp,ot=this.arrangement,rt=this.nodeDiameterFormula,at=this.radius;(!isFinite(at)||0>=at)&&(at=NaN);var ut=this.aspectRatio;(!isFinite(ut)||0>=ut)&&(ut=1);var ct=this.startAngle;isFinite(ct)||(ct=0);var mt=this.sweepAngle;if((!isFinite(mt)||360mt)&&(mt=360),y=this.spacing,isFinite(y)||(y=NaN),ot===Qa&&rt===xg?ot=Xa:ot===Qa&&rt!==xg&&(ot=this.arrangement),(this.direction===Fd||this.direction===Bc)&&this.sorting!==bc){for(rt=0;!(rt>=E.length)&&(a.add(E.M(rt)),!(rt+1>=E.length));rt+=2)x.add(E.M(rt+1));this.direction===Fd?(this.arrangement===Qa&&a.reverse(),E=new ze,E.addAll(a),E.addAll(x)):(this.arrangement===Qa&&x.reverse(),E=new ze,E.addAll(x),E.addAll(a))}rt=E.length;for(var yt=z=b=0;ytmt&&(yt===0||yt===E.length-1)&&(Mt/=2),b+=Mt,z++}if(isNaN(at)||ot===Qa){if(isNaN(y)&&(y=6),ot!==Xa&&ot!==Qa){for(z=-1/0,tt=0;ttat?(at=b,z=at*ut):tt=yt/(360<=mt?rt:rt-1)}if(this.kw=ot,this.lc=at,this.Zm=ut,this.lw=ct,this.Wp=mt,this.Ti=y,this.me=z,this.Jp=tt,y=E,E=this.kw,ot=this.lc,at=this.lw,ut=this.Wp,ct=this.Ti,mt=this.me,rt=this.Jp,this.direction!==Fd&&this.direction!==Bc||E!==Qa)if(this.direction===Fd||this.direction===Bc){switch(tt=0,E){case Rh:tt=180*g0(this,ot,mt,at,rt)/Math.PI;break;case Xa:rt=y=0,tt=a.first(),tt!==null&&(y=Hh(tt,Math.PI/2)),tt=x.first(),tt!==null&&(rt=Hh(tt,Math.PI/2)),tt=180*g0(this,ot,mt,at,ct+(y+rt)/2)/Math.PI;break;case _u:tt=ut/y.length}if(this.direction===Fd){switch(E){case Rh:dp(this,a,at,Gh);break;case Xa:hp(this,a,at,Gh);break;case _u:up(this,a,ut/2,at,Gh)}switch(E){case Rh:dp(this,x,at+tt,ms);break;case Xa:hp(this,x,at+tt,ms);break;case _u:up(this,x,ut/2,at+tt,ms)}}else{switch(E){case Rh:dp(this,x,at,Gh);break;case Xa:hp(this,x,at,Gh);break;case _u:up(this,x,ut/2,at,Gh)}switch(E){case Rh:dp(this,a,at+tt,ms);break;case Xa:hp(this,a,at+tt,ms);break;case _u:up(this,a,ut/2,at+tt,ms)}}}else switch(E){case Rh:dp(this,y,at,this.direction);break;case Xa:hp(this,y,at,this.direction);break;case _u:up(this,y,ut,at,this.direction);break;case Qa:BS(this,y,ut,at,this.direction)}else BS(this,y,ut,at-ut/2,ms)}this.updateParts(),this.network=null,this.isValidLayout=!0};function up(a,y,x,E,b){var z=a.Wp,tt=a.lc;a=a.me,E=E*Math.PI/180,x=x*Math.PI/180;for(var ot=y.length,rt=0;rtx){for(z=E+(b===ms?z:-z);0>z;)z+=360;z%=360,180=ut.length-1));ct++)IS(a,rt,at,ut,ct,b,z)||OS(a,rt,at,ut,ct,b,z),rt=z.x,at=z.y;if(jt.free(z),a.mj++,!(23Math.abs(yt)?Math.abs(rt-z)<(ut[0].width+ut[ut.length-1].width)/2&&(tt=0):tt=0Math.abs(mt)?0:mt,rt=Math.abs(z)>Math.abs(ct)?0ct:0a.mj?a.lc-tt/(2*Math.PI):5>ut.length&&10=ct.length-1));mt++)IS(a,rt,at,ct,mt,b,ut)||OS(a,rt,at,ct,mt,b,ut),rt=ut.x,at=ut.y;if(jt.free(ut),a.mj++,!(23a.mj?a.lc-z/(2*Math.PI):a.lc-(0ot){if(z=y-a,z<-ot)return tt.x=z,tt.y=at,!1;ut=!0}}else if(z=y-a,z<-ot){if(z=y+a,z>ot)return tt.x=z,tt.y=at,!1;ut=!0}return at=Math.sqrt(1-Math.min(1,z*z/(ot*ot)))*rt,0>x!==ut&&(at=-at),Math.abs(x-at)>(E[b].height+E[b+1].height)/2?(tt.x=z,tt.y=at,!1):(tt.x=z,tt.y=at,!0)}function OS(a,y,x,E,b,z,tt){var ot=a.lc,rt=a.me,at=0;if(a=(E[b].height+E[b+1].height)/2+a.Ti,E=!1,0<=y!=(z===ms)){if(z=x-a,z<-rt){if(z=x+a,z>rt){tt.x=at,tt.y=z;return}E=!0}}else if(z=x+a,z>rt){if(z=x-a,z<-rt){tt.x=at,tt.y=z;return}E=!0}at=Math.sqrt(1-Math.min(1,z*z/(rt*rt)))*ot,0>y!==E&&(at=-at),tt.x=at,tt.y=z}eo.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},eo.prototype.commitNodes=function(){var a=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,y=a?this.group.location.copy():null,x=this.actualCenter;a?x=new jt(0,0):(x.x=this.arrangementOrigin.x+this.lc,x.y=this.arrangementOrigin.y+this.me);for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;b.x+=x.x,b.y+=x.y,b.commit()}a&&(this.group.Va(),a=this.group.position.copy(),x=this.group.location.copy(),y=y.re(x.re(a)),this.group.move(y),this.Zv=y.re(a))},eo.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function cy(a,y,x,E,b){var z=a.ty;if(.001>Math.abs(a.Zm-1))return E!==void 0&&b!==void 0?b*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var tt=0,ot=E!==void 0&&b!==void 0?b/(z+1):Math.PI/(2*(z+1)),rt=0,at=0;at<=z;at++){E!==void 0&&b!==void 0?rt=E+at*b/z:rt=at*Math.PI/(2*z);var ut=Math.sin(rt);tt+=Math.sqrt(1-a*a*ut*ut)*ot}return E!==void 0&&b!==void 0?(y>x?y:x)*tt:4*(y>x?y:x)*tt}function d0(a,y,x,E,b){return y/(E!==void 0&&b!==void 0?cy(a,1,x,E,b):cy(a,1,x))}function g0(a,y,x,E,b){if(.001>Math.abs(a.Zm-1))return b/y;var z=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,tt=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(E+=Math.PI/2);for(var ot=0;;ot++){var rt=Math.sin(E+ot*a);if(tt+=(y>x?y:x)*Math.sqrt(1-z*z*rt*rt)*a,tt>=b)return ot*a}}eo.prototype.sort=function(a){switch(this.sorting){case c0:break;case f0:a.reverse();break;case p0:a.sort(this.comparer);break;case m0:a.sort(this.comparer),a.reverse();break;case bc:return this.ak(bx(a));default:ee("Invalid sorting type.")}return a};function bx(a){for(var y=[],x=0;xb&&(b=ot,z=tt)}else for(tt=0;ttb&&(b=ot,z=tt);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),tt=z.sourceEdges;tt.next();)b=a.indexOf(tt.value.fromVertex),0>b||0<=y[b]&&y[b]++;for(z=z.destinationEdges;z.next();)b=a.indexOf(z.value.toVertex),0>b||0<=y[b]&&y[b]++}return x}eo.prototype.ak=function(a){for(var y=[],x=0;xy[x].indexOf(b)&&y[x].push(b);for(E=E.sourceEdges;E.next();)b=a.indexOf(E.value.fromVertex),b!==x&&0>y[x].indexOf(b)&&y[x].push(b)}for(z=[],x=0;xy[x[St]].indexOf(x[St===x.length-1?0:St+1])&&yt.push(St===x.length-1?0:St+1);if(yt.length===0)for(St=0;Stx.indexOf(ie)||Xtx.indexOf(ie)||Xt=Mt?Xt+1:Xt)),Tt+=Xt=Mt&&Xt++,Ht>=Mt&&Ht++,Xt>Ht&&(Ut=Ht,Ht=Xt,Xt=Ut),Ht-Xt<(x.length+2)/2==(Xtyt||yt===ut||(St=yt>ut?yt-ut:ut-yt,ct+=yttt-St?1:-1);x.splice(0>ct?ut:ut+1,0,rt),E.splice(ot,1),ot--}else z=!1;if(z)break;x.push(E[0]),E.splice(0,1)}for(y=0;y=a?this.ul=a:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==Qa&&a!==Xa&&a!==Rh&&a!==_u||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==ms&&a!==Gh&&a!==Fd&&a!==Bc||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==c0&&a!==f0&&a!==p0&&!m0&&a!==bc||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf!==a&&(this.tf=a,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(a){this.Nn===a||a!==v0&&a!==xg||(this.Nn=a,this.C())}},actualXRadius:{get:function(){return this.lc}},actualYRadius:{get:function(){return this.me}},actualSpacing:{get:function(){return this.Ti}},actualCenter:{get:function(){return this.Zv}}});var Xa=new Me(eo,"ConstantSpacing",0),Rh=new Me(eo,"ConstantDistance",1),_u=new Me(eo,"ConstantAngle",2),Qa=new Me(eo,"Packed",3),ms=new Me(eo,"Clockwise",4),Gh=new Me(eo,"Counterclockwise",5),Fd=new Me(eo,"BidirectionalLeft",6),Bc=new Me(eo,"BidirectionalRight",7),c0=new Me(eo,"Forwards",8),f0=new Me(eo,"Reverse",9),p0=new Me(eo,"Ascending",10),m0=new Me(eo,"Descending",11),bc=new Me(eo,"Optimized",12),v0=new Me(eo,"Pythagorean",13),xg=new Me(eo,"Circular",14);eo.className="CircularLayout",eo.ConstantSpacing=Xa,eo.ConstantDistance=Rh,eo.ConstantAngle=_u,eo.Packed=Qa,eo.Clockwise=ms,eo.Counterclockwise=Gh,eo.BidirectionalLeft=Fd,eo.BidirectionalRight=Bc,eo.Forwards=c0,eo.Reverse=f0,eo.Ascending=p0,eo.Descending=m0,eo.Optimized=bc,eo.Pythagorean=v0,eo.Circular=xg;function gp(){this.Pl=-1/0,this.tm=this.mk=null}gp.prototype.compare=function(a,y){if(0this.Pl||Math.abs(a)a&&0ot?(b=mt.x+mt.width/2,z=mt.y+mt.height/2,at[0]=new jt(mt.x+mt.width+E.width,mt.y),at[1]=new jt(mt.x,mt.y+mt.height+E.height),ot=2):(rt=zS(at,ot,b,z,mt.width,mt.height,E),ct=at[rt],yt=new jt(ct.x+mt.width+E.width,ct.y),mt=new jt(ct.x,ct.y+mt.height+E.height),rt+1this.network.vertexes.count)return!1;for(var a=0,y=0,x=this.network.vertexes.first().bounds,E=this.network.vertexes.iterator;E.next();){if(E.value.bounds.Yc(x)&&(a++,2a.network.vertexes.count)return!1;for(a.ah=a.network.vertexes.Fa(),a=a.ah,a.sort(function(x,E){return x===null||E===null||x===E?0:E.Vd-x.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1=tt))){for(var at=ot=0,ut=rt.count-tt;utyt&&(yt=1),ot=Jt.sqrt((ot+yt+at*at*4/(tt*tt))/yt),tt=(ot-1)*ut/2,ot=(ot-1)*ct/2,b.bounds=new de(z-mt.x-tt,rt-mt.y-ot,ut+2*tt,ct+2*ot),b.focus=new jt(mt.x+tt,mt.y+ot)}}return a.network=E,x}function Ox(a,y){for(var x=a.network.vertexes.iterator;x.next();){var E=x.value;if(E.network=y,E.We!==null){var b=E.We.M(E.sv);E.Vd=b.Rs;var z=b.Sv,tt=b.Tv;E.bounds=new de(E.centerX-z,E.centerY-tt,b.Ss,b.Qs),E.focus=new jt(z,tt),E.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function jx(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var E=y.centerX,b=y.centerY,z=y.width,tt=y.height;y.We!==null&&0=ct.Vd?rt++:(ot=!0,at++,tt+=Math.atan2(y.centerY-ct.centerY,y.centerX-ct.centerX))}if(rt!==0){for(0>1)+at)*(ot%2===0?1:-1),rt.centerX=E+ut*Math.cos(ct),rt.centerY=b+ut*Math.sin(ct),ot++}}}}function zS(a,y,x,E,b,z,tt){var ot=9e19,rt=-1,at=0;t:for(;atut.y&&a[mt].x-ut.xut.x&&a[mt].y-ut.yy+z?(x=E+b-tt,a=a-y-z,Jt.sqrt(x*x+a*a)):a+xtt+ot?a>y+z?(x=E-tt-ot,a=a-y-z,Jt.sqrt(x*x+a*a)):a+xy+z?a-(y+z):a+x=y.length)return!1;var x=y[0];x.forceX=0,x.forceY=0;for(var E=x.centerX,b=E,z=x=x.centerY,tt=1;ttz-x)?y.sort(function(Mt,Dt){return Mt===null||Dt===null||Mt===Dt?0:Mt.centerX-Dt.centerX}):y.sort(function(Mt,Dt){return Mt===null||Dt===null||Mt===Dt?0:Mt.centerY-Dt.centerY}),x=a.Zf;var at=E=ot=0;for(z=0;zx||at-rt>x){if(b)break}else if(ut-yt>x||yt-ut>x){if(!b)break}else{var St=RS(tt,mt);1>St?(E=a.randomNumberGenerator,E===null&&(a.randomNumberGenerator=E=new S0),St=E.random(),ot=E.random(),rt>at?(E=Math.abs(mt.bounds.right-tt.bounds.x),E=(1+E)*St):rtyt?(at=Math.abs(mt.bounds.bottom-tt.bounds.y),at=(1+at)*ot):rtct?(ct=a.randomNumberGenerator,ct===null&&(a.randomNumberGenerator=ct=new S0),ot=ct.random(),ct=ct.random(),E=(E>rt?1:-1)*(1+(z.width>x.width?z.width:x.width))*ot,at=(tt>ut?1:-1)*(1+(z.height>x.height?z.height:x.height))*ct):(ot=ot.stiffness*(ct-ot.length),E=(rt-E)/ct*ot,at=(ut-tt)/ct*ot),x.forceX+=E,x.forceY+=at,z.forceX-=E,z.forceY-=at;for(b=E=0;ba.epsilonDistance*a.epsilonDistance}br.prototype.moveVertex=function(a){var y=a.forceX,x=a.forceY,E=this.moveLimit;return y<-E?y=-E:y>E&&(y=E),x<-E?x=-E:x>E&&(x=E),a.centerX+=y,a.centerY+=x,y*y+x*x},br.prototype.moveFixedVertex=function(){},br.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},br.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=rr,y.toSpot=rr)}},br.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=de.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,de.free(x)}x=de.alloc();for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;(a!==0||y!==0)&&(x.assign(b.bounds),x.x+=a,x.y+=y,b.bounds=x),b.commit()}de.free(x)},br.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},br.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},br.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},br.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},br.prototype.electricalFieldX=function(){return 0},br.prototype.electricalFieldY=function(){return 0},br.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},br.prototype.gravitationalFieldX=function(){return 0},br.prototype.gravitationalFieldY=function(){return 0},br.prototype.isFixed=function(a){return a.isFixed},he.Object.defineProperties(br.prototype,{currentIteration:{get:function(){return this.An}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},arrangesToOrigin:{get:function(){return this.Bm},set:function(a){this.Bm!==a&&(this.Bm=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},maxIterations:{get:function(){return this.dl},set:function(a){this.dl!==a&&0<=a&&(this.dl=a,this.C())}},epsilonDistance:{get:function(){return this.$m},set:function(a){this.$m!==a&&0Mt&&0Mt&&0a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]tt)for(var ut=tt+1;utrt;ut--)ct=E[ut],ct.near===at&&ct.Dj===at.Dj||ot++;var mt;if(0<=x)for(rt=E[tt].sourceEdgesArrayAccess,at=0;atMt||ct===Mt&&yt>St)&&ot++,Dtct||Mt===ct&&St>yt)&&ot++}}}if(0>=x){for(rt=E[tt].destinationEdgesArrayAccess,at=0;atMt||ct===Mt&&ut>Dt)&&ot++,Stct||Mt===ct&&Dt>ut)&&ot++)}for(z[tt*b+tt]=ot,rt=tt+1;rt=x){for(ot=E[tt].destinationEdgesArrayAccess,Ht=E[rt].destinationEdgesArrayAccess,at=0;at=x&&(rt=ot.sourceEdgesArrayAccess);var at=null;0<=x&&(at=ot.destinationEdgesArrayAccess);var ut=0,ct=0,mt=ot.near;if(mt!==null&&mt.layer===ot.layer&&(ut+=mt.column-1,ct++),rt!==null)for(mt=0;mt=x&&(rt=ot.sourceEdgesArrayAccess);var at=null;0<=x&&(at=ot.destinationEdgesArrayAccess);var ut=0,ct=[],mt=ot.near;if(mt!==null&&mt.layer===ot.layer&&(ct[ut]=mt.column-1,ut++),ot=void 0,rt!==null)for(mt=0;mt>1,z[tt]=ut&1?ct[at]:ct[at-1]+ct[at]>>1)}return Uh(a,y,E),z}function mp(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var tt=y.destinationEdges;tt.next();){var ot=tt.value,rt=ot.toVertex,at=y.layer-rt.layer;ot=a.linkMinLength(ot),at===ot&&mp(a,rt,x,E,b,z)}if(z)for(tt=y.sourceEdges;tt.next();)ot=tt.value,rt=ot.fromVertex,at=rt.layer-y.layer,ot=a.linkMinLength(ot),at===ot&&mp(a,rt,x,E,b,z)}}function my(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var tt=y.destinationEdges;tt.next();)my(a,tt.value.toVertex,x,E,b,z);if(z)for(y=y.sourceEdges;y.next();)my(a,y.value.fromVertex,x,E,b,z)}}mi.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case Sy:a=this.network;var y=0,x=a.vertexes.count-1,E=[];E.length=x+1;for(var b=a.vertexes.iterator;b.next();)b.value.valid=!0;for(;Rx(a)!==null;){for(b=YS(a);b!==null;)E[x]=b,x--,b.valid=!1,b=YS(a);for(b=VS(a);b!==null;)E[y]=b,y++,b.valid=!1,b=VS(a);b=null;for(var z=0,tt=this.network.vertexes.iterator;tt.next();){var ot=tt.value;if(ot.valid){for(var rt=0,at=ot.destinationEdges;at.next();)at.value.toVertex.valid&&rt++;at=0;for(var ut=ot.sourceEdges;ut.next();)ut.value.fromVertex.valid&&at++;(b===null||zy.toVertex.index&&(a.gm(y),y.rev=!0);break;case M0:for(E=this.network.vertexes.iterator;E.next();)a=E.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,E.reset();E.next();)y=E.value,y.sourceEdges.count===0&&vy(this,y);for(E.reset();E.next();)y=E.value,y.Ll===-1&&vy(this,y);for(a.reset();a.next();)E=a.value,E.forest||(y=E.fromVertex,x=y.finish,b=E.toVertex,z=b.finish,b.LlE){if(0>E)for(y.reset();y.next();)y.value.layer-=E;for(E=[],y.reset();y.next();)x=y.value,b=E[x.layer],b===void 0?E[x.layer]=[x]:b.push(x);for(x=y=0;xtt&&mp(a,ot,0,-1,!0,!1)}for(mp(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,E=1/0,ot=0,rt=null,tt=a.network.vertexes.iterator;tt.next();){var at=tt.value;if(at.component===1){var ut=0,ct=!1,mt=at.sourceEdgesArrayAccess;b=mt.length;for(var yt=0;ytz)&&!ut&&(ot=tt,z=at)}if(0>E){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer-=b);y.component=0}else ot.component=0}}}function JS(a,y,x){return a.K===90?x&&!y.rev||!x&&y.rev?270:90:a.K===180?x&&!y.rev||!x&&y.rev?0:180:a.K===270?x&&!y.rev||!x&&y.rev?90:270:x&&!y.rev||!x&&y.rev?180:0}mi.prototype.initializeIndices=function(){switch(this.Qk){default:case Cy:for(var a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;y.index=this.tc[x],this.tc[x]++}break;case k0:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&qS(this,x);break;case wy:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&_S(this,x)}};function qS(a,y){var x=y.layer;for(y.index=a.tc[x],a.tc[x]++,y=y.destinationEdgesArrayAccess,x=!0;x;){x=!1;for(var E=0;Ez.portFromColOffset&&(x=!0,y[E]=z,y[E+1]=b)}}for(x=0;xz.portToColOffset&&(E=!0,y[x]=z,y[x+1]=b)}for(x=0;x=tt;E--)z=Ba(this,E,-1)||z;for(b=this.countCrossings(),b>=a?ya(this,y):(a=b,y=ks(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Ba(this,E,1)||z;for(b=this.countCrossings(),b>=a?ya(this,y):(a=b,y=ks(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Ba(this,E,1)||z;for(b>=a?ya(this,y):(a=b,y=ks(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Ba(this,E,-1)||z;for(b>=a?ya(this,y):(a=b,y=ks(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Ba(this,E,0)||z;for(b>=a?ya(this,y):(a=b,y=ks(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Ba(this,E,0)||z;b>=a?ya(this,y):(a=b,y=ks(this))}break;default:case A0:for(x=this.Ia,tt=0,ot=a+1;(E=this.countCrossings())=tt;E--)z=Ba(this,E,-1)||z;for(b=this.countCrossings(),b>=a?ya(this,y):(a=b,y=ks(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Ba(this,E,1)||z;for(b=this.countCrossings(),b>=a?ya(this,y):(a=b,y=ks(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Ba(this,E,1)||z;for(b>=a?ya(this,y):(a=b,y=ks(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Ba(this,E,-1)||z;for(b>=a?ya(this,y):(a=b,y=ks(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Ba(this,E,0)||z;for(b>=a?ya(this,y):(a=b,y=ks(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Ba(this,E,0)||z;b>=a?ya(this,y):(a=b,y=ks(this))}}ya(this,y)};function P0(a,y,x){var E=Wh(a,y),b=a.tc[y],z=US(a,y,x),tt=py(a,y,x);for(x=0;xz+1&&(mt+=4*(zt-z),yt+=4*(zt-(z+1)))}for(Ut=E[z].destinationEdges.iterator,Ut.reset();Ut.next();)if(zt=Ut.value,Ht=zt.toVertex,zt.valid&&Ht.layer===y){for(zt=0;E[zt]!==Ht;)zt++;zt===z+1&&(yt+=1)}for(Ut=E[z+1].sourceEdges.iterator,Ut.reset();Ut.next();)if(zt=Ut.value,Ht=zt.fromVertex,zt.valid&&Ht.layer===y){for(zt=0;E[zt]!==Ht;)zt++;ztz+1&&(mt+=4*(zt-(z+1)),yt+=4*(zt-z))}for(Ut=E[z+1].destinationEdges.iterator,Ut.reset();Ut.next();)if(zt=Ut.value,Ht=zt.toVertex,zt.valid&&Ht.layer===y){for(zt=0;E[zt]!==Ht;)zt++;zt===z&&(mt+=1)}zt=Ht=0,Ut=tt[E[z].index];var Xt=ot[E[z].index],ie=tt[E[z+1].index],We=ot[E[z+1].index];Ut!==-1&&(Ht+=Math.abs(Ut-St),zt+=Math.abs(Ut-Tt)),Xt!==-1&&(Ht+=Math.abs(Xt-St),zt+=Math.abs(Xt-Tt)),ie!==-1&&(Ht+=Math.abs(ie-Mt),zt+=Math.abs(ie-Dt)),We!==-1&&(Ht+=Math.abs(We-Mt),zt+=Math.abs(We-Dt)),(yt>1)+8*E;this.Ra*=8}if(this.bg&2)for(x=!0;x;){for(x=!1,y=this.Md+1;y<=this.Ia;y++)x=Ic(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Ic(this,y,-1)||x;x=Ic(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)yy(this,y,1);for(y=this.Md-1;0<=y;y--)yy(this,y,-1);yy(this,this.Md,0)}if(a&&($S(this,-1),$S(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Ic(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Ic(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Ic(this,y,0)||x}}else Ux(this)};function Ic(a,y,x){for(var E=!1;Gx(a,y,x);)E=!0;return E}function Gx(a,y,x){var E,b=Wh(a,y),z=a.tc[y],tt=py(a,y,-1);if(0x)for(E=0;EE-1||ut-b[E-1].column-1>ct+a.nodeMinColumnSpace(b[E-1],!1)?yt=ut-1:yt=ut,ct=E+1>=z||b[E+1].column-ut-1>mt+a.nodeMinColumnSpace(b[E+1],!0)?ut+1:ut;var St=mt=0,Mt=0;if(0>=x)for(var Dt=b[E].sourceEdges.iterator;Dt.next();){var Tt=Dt.value,zt=Tt.fromVertex;if(Tt.valid&&zt.layer!==y){var Ht=fy(Tt),Ut=Tt.portFromColOffset;Tt=Tt.portToColOffset,zt=zt.column,mt+=(Math.abs(ut+Tt-(zt+Ut))+1)*Ht,St+=(Math.abs(yt+Tt-(zt+Ut))+1)*Ht,Mt+=(Math.abs(ct+Tt-(zt+Ut))+1)*Ht}}if(0<=x)for(Dt=b[E].destinationEdges.iterator;Dt.next();)Tt=Dt.value,zt=Tt.toVertex,Tt.valid&&zt.layer!==y&&(Ht=fy(Tt),Ut=Tt.portFromColOffset,Tt=Tt.portToColOffset,zt=zt.column,mt+=(Math.abs(ut+Ut-(zt+Tt))+1)*Ht,St+=(Math.abs(yt+Ut-(zt+Tt))+1)*Ht,Mt+=(Math.abs(ct+Ut-(zt+Tt))+1)*Ht);Tt=Ut=Ht=0,Dt=tt[b[E].index],zt=ot[b[E].index],Dt!==-1&&(Ht+=Math.abs(Dt-ut),Ut+=Math.abs(Dt-yt),Tt+=Math.abs(Dt-ct)),zt!==-1&&(Ht+=Math.abs(zt-ut),Ut+=Math.abs(zt-yt),Tt+=Math.abs(zt-ct)),St=tt[x]?ut=rt:at<=tt[x]&&(ut=at));ut!==ot&&(z=!0,E[x].column=ut)}Uh(a,y,E),a.normalize()}function Hx(a,y){for(var x=!0,E=a.network.vertexes.iterator;E.next();){var b=E.value,z=a.nodeMinColumnSpace(b,!0),tt=a.nodeMinColumnSpace(b,!1);if(b.column-z<=y&&b.column+tt>=y){x=!1;break}}if(a=!1,x)for(E.reset();E.next();)x=E.value,x.column>y&&(--x.column,a=!0);return a}function Wx(a,y){var x=y+1,E,b=[],z=[];for(E=0;E<=a.Ia;E++)b[E]=!1,z[E]=!1;for(var tt=a.network.vertexes.iterator;tt.next();){E=tt.value;var ot=E.column-a.nodeMinColumnSpace(E,!0),rt=E.column+a.nodeMinColumnSpace(E,!1);ot<=y&&rt>=y&&(b[E.layer]=!0),ot<=x&&rt>=x&&(z[E.layer]=!0)}for(ot=!0,x=!1,E=0;E<=a.Ia;E++)ot=ot&&!(b[E]&&z[E]);if(ot)for(tt.reset();tt.next();)a=tt.value,a.column>y&&(--a.column,x=!0);return x}function $S(a,y){for(var x=0;x<=a.Ra;x++)for(;Hx(a,x););for(a.normalize(),x=0;xz?ya(a,b):tty)for(x=a.Ra;0<=x;x--)for(b=ks(a),z=x0(a),E=z+1;zz?ya(a,b):ttx)for(E.reset();E.next();)b=E.value,b.column+a.nodeMinColumnSpace(b,!1)>=y&&(b.component=a.le);for(a.le++,E.reset();E.next();)y=E.value,y.component===-1&&(my(a,y,a.le,-1,!0,!0),a.le++);var z;for(y=[],z=0;zx)for(tt=a.Ra;0x)for(E.reset();E.next();)x=E.value,b[x.component]&&(x.column+=1)}function Ux(a){for(var y=$n(),x=a.fl.length,E=0;E<=x;E++)y[E]=[];for(E=a.network.vertexes.iterator;E.next();){var b=E.value;y[x-b.layer][b.index]=b}x=new Ie,Yx(y,x);var z=null,tt=null,ot=null,rt=null,at=(a.ve&1)!==0,ut=(a.ve&2)!==0,ct=(a.ve&4)!==0,mt=(a.ve&8)!==0;for(at&&(a.verticalAlignment(y,x,!0),z=w0(a,y,!0,!1)),y.reverse(),ct&&(a.verticalAlignment(y,x,!1),ot=w0(a,y,!1,!1)),E=Gn(y),b=E.next();!b.done;b=E.next())b.value.reverse();mt&&(a.verticalAlignment(y,x,!1),rt=w0(a,y,!1,!0)),y.reverse(),ut&&(a.verticalAlignment(y,x,!0),tt=w0(a,y,!0,!0)),ei(y),a.u(z,tt,ot,rt),a.network.vertexes.each(function(yt){var St=$n();at&&St.push(z.get(yt)),ut&&St.push(tt.get(yt)),ct&&St.push(ot.get(yt)),mt&&St.push(rt.get(yt)),St.sort(function(Dt,Tt){return Dt-Tt});var Mt=St.length;Mt=(St[Math.floor((Mt-1)/2)]+St[Math.ceil((Mt-1)/2)])/2,ei(St),yt.zc=Mt})}function Yx(a,y){for(var x=a.length,E=1;Eut)&&y.add(ct);z++}b=ut}}}mi.prototype.verticalAlignment=function(a,y,x){Vx(a),a=Gn(a);for(var E=a.next();!E.done;E=a.next()){var b=-1;E=Gn(E.value);for(var z=E.next();!z.done;z=E.next()){z=z.value;var tt=x?ky(z):Qx(z),ot=tt.length;if(0=y[x].length)&&(tt=y[x][0],tt.sd===tt)){tt.sd.shift===1/0&&(tt.sd.shift=0),tt=x,ot=0;do{for(z=y[tt][ot];z.align!==z.root;)z=z.align,tt++,0a&&ee("Could not determine previous vertex in layer"),y[x][a-1]}mi.prototype.u=function(a){for(var y=[],x=0;xtt;tt++)if(y[tt]){var ot=Kx(this,y[tt],E,b,tt);ottt;z={delta:z.delta},tt++)y[tt]&&(z.delta=tt===0||tt===2?E[x]-E[tt]:b[x]-b[tt],z.delta!==0&&y[tt].each(function(rt){return function(at){at.value+=rt.delta}}(z)));ei(E),ei(b)};function Kx(a,y,x,E,b){if(!y||y.count===0)return x[b]=0,E[b]=0,1/0;var z=1/0,tt=-1/0;return y.each(function(ot){var rt=ot.key;ot=ot.value,rt=a.K===90||a.K===270?rt.width:rt.height,ottt&&(tt=ot+rt)}),x[b]=z,E[b]=tt,tt-z}mi.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=C0(this,!0),y=C0(this,!1),x=this.network.edges.iterator;x.next();){var E=x.value.link;E!==null&&(E.fromSpot=a,E.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function C0(a,y){return a.K===270?y?Rr:Lr:a.K===90?y?Lr:Rr:a.K===180?y?Ss:Er:y?Er:Ss}mi.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var a=0;a<=this.Ia;a++)this.he[a]=0,this.Ld[a]=0,this.Kd[a]=0,this.Ta[a]=0;for(a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;this.he[x]=Math.max(this.he[x],this.nodeMinLayerSpace(y,!0)),this.Ld[x]=Math.max(this.Ld[x],this.nodeMinLayerSpace(y,!1))}y=0,x=this.ie;for(var E=0;E<=this.Ia;E++){var b=x;0>=this.he[E]+this.Ld[E]&&(b=0),0=ct.bounds.bottom?(ct=ct.bounds.y+ct.bounds.height,y.m(Mt++,Ut,ct+ie),y.m(Mt++,Ut,ct),y.m(Mt++,Ut,ct-Ht)):(y.m(Mt++,Ut,Xt+ie),y.m(Mt++,Ut,Xt),y.m(Mt++,Ut,Xt-Ht)):this.K===270?Xt<=ct.bounds.y?(ct=ct.bounds.y,y.m(Mt++,Ut,ct-Ht),y.m(Mt++,Ut,ct),y.m(Mt++,Ut,ct+ie)):(y.m(Mt++,Ut,Xt-Ht),y.m(Mt++,Ut,Xt),y.m(Mt++,Ut,Xt+ie)):this.K===0&&(Ut>=ct.bounds.right?(ct=ct.bounds.x+ct.bounds.width,y.m(Mt++,ct+ie,Xt),y.m(Mt++,ct,Xt),y.m(Mt++,ct-Ht,Xt)):(y.m(Mt++,Ut+ie,Xt),y.m(Mt++,Ut,Xt),y.m(Mt++,Ut-Ht,Xt)));else{y.m(Mt++,Tt,zt);var We=0;this.K===180||this.K===0?((this.K===180?Ut>=ct.bounds.right:Ut<=ct.bounds.x)&&(We=(this.K===0?-Ht:ie)/2),y.m(Mt++,Tt+We,Xt)):((this.K===270?Xt>=ct.bounds.bottom:Xt<=ct.bounds.y)&&(We=(this.K===90?-Ht:ie)/2),y.m(Mt++,Ut,zt+We)),y.m(Mt++,Ut,Xt)}}else Ht=Math.max(10,this.he[Dt.layer]),ie=Math.max(10,this.Ld[Dt.layer]),mt?this.K===180?(y.m(Mt++,Ut-Ht-St,Xt),y.m(Mt++,Math.min(Ut-Ht+St/2,Ut),Xt),y.m(Mt++,Ut,Xt),y.m(Mt++,Ut,Xt),y.m(Mt++,Math.max(Ut+ie-St/2,Ut),Xt),y.m(Mt++,Ut+ie+St,Xt)):this.K===90?(y.m(Mt++,Ut,Xt+ie+St),y.m(Mt++,Ut,Math.max(Xt+ie-St/2,Xt)),y.m(Mt++,Ut,Xt),y.m(Mt++,Ut,Xt),y.m(Mt++,Ut,Math.min(Xt-Ht+St/2,Xt)),y.m(Mt++,Ut,Xt-Ht-St)):this.K===270?(y.m(Mt++,Ut,Xt-Ht-St),y.m(Mt++,Ut,Math.min(Xt-Ht+St/2,Xt)),y.m(Mt++,Ut,Xt),y.m(Mt++,Ut,Xt),y.m(Mt++,Ut,Math.max(Xt+ie-St/2,Xt)),y.m(Mt++,Ut,Xt+ie+St)):(y.m(Mt++,Ut+ie+St,Xt),y.m(Mt++,Math.max(Ut+ie-St/2,Ut),Xt),y.m(Mt++,Ut,Xt),y.m(Mt++,Ut,Xt),y.m(Mt++,Math.min(Ut-Ht+St/2,Ut),Xt),y.m(Mt++,Ut-Ht-St,Xt)):y.m(Mt++,Ut,Xt)}ct=Dt}(ot===null||at!==$o||yt)&&(Tt=y.i(Mt-1).x,zt=y.i(Mt-1).y,Ut=y.i(Mt).x,Xt=y.i(Mt).y,yt?(St=this.Ld[ut.layer],this.K===180||this.K===0?(yt=zt,yt>=ut.bounds.y&&yt<=ut.bounds.bottom&&(this.K===180?Ut>=ut.bounds.x:Ut<=ut.bounds.right)&&(ct=ut.centerX+(this.K===180?-St:St),yt=ut.bounds.x&&yt<=ut.bounds.right&&(this.K===270?Xt>=ut.bounds.y:Xt<=ut.bounds.bottom)&&(ct=ut.centerY+(this.K===270?-St:St),yt=ut.bounds.x?(ct=ut.bounds.x+ut.bounds.width,y.L(Mt-2,ct,zt),y.L(Mt-1,ct+ie,zt)):this.K===90&&Xt<=ut.bounds.bottom?(ct=ut.bounds.y,y.L(Mt-2,Tt,ct),y.L(Mt-1,Tt,ct-Ht)):this.K===270&&Xt>=ut.bounds.y?(ct=ut.bounds.y+ut.bounds.height,y.L(Mt-2,Tt,ct),y.L(Mt-1,Tt,ct+ie)):this.K===0&&Ut<=ut.bounds.right&&(ct=ut.bounds.x,y.L(Mt-2,ct,zt),y.L(Mt-1,ct-Ht,zt))):(Ht=Math.max(10,this.he[ut.layer]),ie=Math.max(10,this.Ld[ut.layer]),yt=0,this.K===180||this.K===0?((this.K===180?Ut<=ut.bounds.x:Ut>=ut.bounds.right)&&(yt=(this.K===0?ie:-Ht)/2),y.m(Mt++,Ut+yt,zt)):((this.K===270?Xt<=ut.bounds.y:Xt>=ut.bounds.bottom)&&(yt=(this.K===90?ie:-Ht)/2),y.m(Mt++,Tt,Xt+yt)),y.m(Mt++,Ut,Xt)))}else{for(;ut!==null&&ut!==ct;){for(Ht=Dt=null,ut=ut.destinationEdges.iterator;ut.next()&&(Tt=ut.value,Tt.link!==x.link||(Dt=Tt.toVertex,Ht=Tt.fromVertex,Ht.node!==null&&(Ht=null),Dt.node!==null)););if(Dt===null)break;Dt!==ct&&(Tt=y.i(Mt-1).x,zt=y.i(Mt-1).y,Ut=Dt.centerX,Xt=Dt.centerY,yt?this.K===180||this.K===0?(Ht!==null?Ht.centerY:zt)!==Xt&&(Ht=this.Ta[Dt.layer]+this.Rf.x,Mt===y.firstPickIndex+1&&(Ht=this.K===0?Math.max(Ht,Tt):Math.min(Ht,Tt)),y.m(Mt++,Ht,zt),y.m(Mt++,Ht,Xt)):(Ht!==null?Ht.centerX:Tt)!==Ut&&(Ht=this.Ta[Dt.layer]+this.Rf.y,Mt===y.firstPickIndex+1&&(Ht=this.K===90?Math.max(Ht,zt):Math.min(Ht,zt)),y.m(Mt++,Tt,Ht),y.m(Mt++,Ut,Ht)):(Ht=Math.max(10,this.he[Dt.layer]),ie=Math.max(10,this.Ld[Dt.layer]),mt?this.K===180?(y.m(Mt++,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ut&&(Ht=this.K===90?Math.min(Math.max((Xt+zt)/2,this.Ta[ct.layer]+this.Rf.y),Xt):Math.max(Math.min((Xt+zt)/2,this.Ta[ct.layer]+this.Rf.y),Xt),y.m(Mt++,Tt,Ht),y.m(Mt++,Ut,Ht)))}E!==null&&mt&&4<=y.pointsCount&&(tt!==null&&(tt=at===$o?y.getLinkPointFromPoint(b,tt,tt.ga(gi),y.i(3),!0):y.i(0),at===$o&&(at=y.i(2),E=y.i(3),this.direction===90||this.direction===270?(y.L(1,(tt.x+at.x)/2,at.y),y.L(2,E.x,(at.y+E.y)/2)):(y.L(1,at.x,(tt.y+at.y)/2),y.L(2,(at.x+E.x)/2,E.y))),tt.w()||tt.set(b.actualBounds.center),y.L(0,tt.x,tt.y)),ot!==null&&(b=rt===$o?y.getLinkPointFromPoint(z,ot,ot.ga(gi),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),rt===$o&&(ot=y.i(y.pointsCount-3),rt=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(b.x+ot.x)/2,ot.y),y.L(y.pointsCount-2,rt.x,(ot.y+rt.y)/2)):(y.L(y.pointsCount-2,ot.x,(b.y+ot.y)/2),y.L(y.pointsCount-3,(ot.x+rt.x)/2,rt.y))),b.w()||b.set(z.actualBounds.center),y.L(y.pointsCount-1,b.x,b.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},mi.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new ze,y=this.network.edges.iterator;y.next();){var x=y.value.link;x!==null&&x.isOrthogonal&&!a.contains(x)&&a.add(x)}if(0z.y&&(ut=at.y>z.y?0:tt.xz.x&&(ut=at.x>z.x?0:tt.yy.layer?1:a.rdy.rd?1:a.Icy.Ic?1:0:0},wt.Ux=function(a,y){return a instanceof Yh&&y instanceof Yh&&a!==y?a.firsty.first||a.jy.j||a.rdy.rd?1:a.Icy.Ic?1:0:0},wt.Js=function(a,y){return a instanceof Yh&&y instanceof Yh&&a!==y?a.jcy.jc||a.jy.j||a.rdy.rd?1:a.Icy.Ic?1:0:0},wt.B=function(a,y){return a-=y,-1a},wt.zi=function(a,y,x,E){var b=a.length,z=E-x;if(!(1>=z))if((0>x||x>=b-1)&&ee("not in range 0 <= from < length: "+x),z===2)E=a[x],b=a[x+1],0=b)a.sort(y);else for(x=a.slice(0,E),x.sort(y),y=0;y=b)for(E=a.slice(x),E.sort(y),y=x;y=a.He.length){for(var E=[],b=0;ba&&(this.bg=a,this.C())}},alignOption:{get:function(){return this.ve},set:function(a){this.ve!==a&&0<=a&&16>a&&(this.ve=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(a){this.Cn!==a&&0<=a&&(this.Cn=a,this.C())}},maxLayer:{get:function(){return this.Ia}},maxIndex:{get:function(){return this.Iq}},maxColumn:{get:function(){return this.Ra}},minIndexLayer:{get:function(){return this.Hn}},maxIndexLayer:{get:function(){return this.Md}}});var M0=new Me(mi,"CycleDepthFirst",0),Sy=new Me(mi,"CycleGreedy",1),vp=new Me(mi,"CycleFromLayers",2),L0=new Me(mi,"LayerOptimalLinkLength",0),xy=new Me(mi,"LayerLongestPathSink",1),Py=new Me(mi,"LayerLongestPathSource",2),k0=new Me(mi,"InitDepthFirstOut",0),wy=new Me(mi,"InitDepthFirstIn",1),Cy=new Me(mi,"InitNaive",2),My=new Me(mi,"AggressiveNone",0),A0=new Me(mi,"AggressiveLess",1),Ly=new Me(mi,"AggressiveMore",2),Xx=8;mi.className="LayeredDigraphLayout",mi.CycleDepthFirst=M0,mi.CycleGreedy=Sy,mi.CycleFromLayers=vp,mi.LayerOptimalLinkLength=L0,mi.LayerLongestPathSink=xy,mi.LayerLongestPathSource=Py,mi.InitDepthFirstOut=k0,mi.InitDepthFirstIn=wy,mi.InitNaive=Cy,mi.AggressiveNone=My,mi.AggressiveLess=A0,mi.AggressiveMore=Ly,mi.PackNone=0,mi.PackExpand=1,mi.PackStraighten=2,mi.PackMedian=4,mi.PackAll=15,mi.AlignNone=0,mi.AlignUpperLeft=1,mi.AlignUpperRight=2,mi.AlignLowerLeft=4,mi.AlignLowerRight=8,mi.AlignAll=15;function Yh(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}Yh.className="SegInfo";function Oc(a){Ni.call(this,a)}ye(Oc,Ni),Oc.prototype.createVertex=function(){return new Sa(this)},Oc.prototype.createEdge=function(){return new yp(this)},Oc.className="LayeredDigraphNetwork";function Sa(a){Vo.call(this,a),this.$n=this.bo=this.ao=this.co=null,this.Za=this.Ag=this.Ig=-1,this.u=NaN,this.F=null,this.valid=!1,this.finish=this.Ll=NaN,this.Dj=0,this.dv=this.ev=null}ye(Sa,Vo);function ix(a,y){return a.index-y.index}function E0(a,y){if(!a.$n){for(var x=[],E=Gn(a.destinationEdgesArrayAccess),b=E.next();!b.done;b=E.next())b=b.value,b.valid&&x.push(b);a.$n=x}for(a=Gn(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;ee("Unable to find destination edge to given vertex")}function ky(a){if(!a.co){for(var y=[],x=Gn(a.sourceEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.fromVertex);y.sort(ix),a.co=y}return a.co}function Qx(a){if(!a.ao){for(var y=[],x=Gn(a.destinationEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.toVertex);y.sort(ix),a.ao=y}return a.ao}Sa.prototype.Cl=function(a){Vo.prototype.Cl.call(this,a),this.bo=this.co=null},Sa.prototype.Kl=function(a){Vo.prototype.Kl.call(this,a),this.bo=this.co=null},Sa.prototype.zl=function(a){Vo.prototype.zl.call(this,a),this.$n=this.ao=null},Sa.prototype.Jl=function(a){Vo.prototype.Jl.call(this,a),this.$n=this.ao=null},he.Object.defineProperties(Sa.prototype,{layer:{get:function(){return this.Ig},set:function(a){this.Ig!==a&&(this.Ig=a)}},column:{get:function(){return this.Ag},set:function(a){this.Ag!==a&&(this.Ag=a)}},index:{get:function(){return this.Za},set:function(a){this.Za!==a&&(this.Za=a)}},component:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},near:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),Sa.prototype.deleteDestinationEdge=Sa.prototype.Jl,Sa.prototype.addDestinationEdge=Sa.prototype.zl,Sa.prototype.deleteSourceEdge=Sa.prototype.Kl,Sa.prototype.addSourceEdge=Sa.prototype.Cl,Sa.className="LayeredDigraphVertex";function yp(a){Vs.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}ye(yp,Vs),he.Object.defineProperties(yp.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},valid:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},rev:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},forest:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},portFromPos:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},portToPos:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},portFromColOffset:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},portToColOffset:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),yp.className="LayeredDigraphEdge";function Yn(a){Ui.call(this),this.Ub=new Ie,this.Wn=B0,this.ud=Vl,this.vo=D0,this.Bq=jy,this.$v=[],this.td=!0,this.Rb=I0,this.$d=new Xe(10,10).freeze();var y=new Lg(this);this.W=new ba(y),this.Y=new ba(y),this.ru=[],a&&Object.assign(this,a)}ye(Yn,Ui),Yn.prototype.cloneProtected=function(a){Ui.prototype.cloneProtected.call(this,a),a.Wn=this.Wn,a.vo=this.vo,a.Bq=this.Bq,a.td=this.td,a.Rb=this.Rb,a.$d.assign(this.$d),a.W.copyInheritedPropertiesFrom(this.W),a.Y.copyInheritedPropertiesFrom(this.Y)},Yn.prototype.qb=function(a){a.classType===Yn?a.name.indexOf("Alignment")===0?this.alignment=a:a.name.indexOf("Arrangement")===0?this.arrangement=a:a.name.indexOf("Compaction")===0?this.compaction=a:a.name.indexOf("Path")===0?this.path=a:a.name.indexOf("Sorting")===0?this.sorting=a:a.name.indexOf("Style")===0?this.treeStyle=a:ee("Unknown enum value: "+a):Ui.prototype.qb.call(this,a)},Yn.prototype.createNetwork=function(){return new Lg(this)},Yn.prototype.makeNetwork=function(a){function y(E){if(E instanceof Ke)return!E.isLinkLabel&&E.category!=="Comment";if(E instanceof Ne){var b=E.fromNode;return b===null||b.isLinkLabel||b.category==="Comment"?!1:(E=E.toNode,!(E===null||E.isLinkLabel||E.category==="Comment"))}return!1}var x=this.createNetwork();return a instanceof oe?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof Fn?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},Yn.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==O0&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof oe&&(y=a),this.path===B0&&y!==null?this.ud=y.isTreePathToChildren?Vl:Cg:this.ud=this.path===B0?Vl:this.path,0y.level)return!1;a.removeChild(x.parent,x)}return!0}Yn.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,E=0,b=0;bb?hx(this,a,tt,Cn,Tt,zt):dx(this,a,tt,Cn,Tt,zt),Cn=zt.x,Tt=zt.width,zt=zt.height;break;case th:for(Ut=0;Utct&&(qelr&&(wg(a,-lr,0,Tn,ui-1),F0(Ut,-lr,0),F0(Xt,-lr,0),lr=0)}ki.S.h(lr,Qe),Tt=Math.max(Tt,ie),zt=Math.max(zt,Ht+(Ee===0?0:St)+ir.height),qe=ie}else 0ct&&(Qelr&&(wg(a,0,-lr,Tn,ui-1),F0(Ut,0,-lr),F0(Xt,0,-lr),lr=0)),ki.S.h(qe,lr),zt=Math.max(zt,We),Tt=Math.max(Tt,Ht+(Ee===0?0:St)+ir.width),Qe=We;Se++}switch(0at&&(at=0),135Mt&&(Mt=0),rt===fu&&(ot+=mt/2+a.focus.y),tt+=E+x):y?(a.comments===null?E>Tt&&(Tt=Fy(rt,E-Tt,0),tt=Tt.x,ot=Tt.y,Tt=E,at=0):Tt=Ny(a,Tt,at),0>at&&(tt-=at,at=0),135zt&&(zt=Fy(rt,0,Dt-zt),tt=zt.x,ot=zt.y,zt=Dt,Mt=0):zt=Ty(a,zt,Mt),0>Mt&&(ot-=Mt,Mt=0),tt+=E+x),0b[0].x?b[2].assign(b[1]):b[1].assign(b[2])),b[3].yb[0].x?b[3].assign(b[2]):b[2].assign(b[3])),Ee[0].h(at+E,0),Ee[1].h(Ee[0].x,Dt),Ee[2].yb[0].y?b[2].assign(b[1]):b[1].assign(b[2])),b[3].xb[0].y?b[3].assign(b[2]):b[2].assign(b[3])),Ee[0].h(0,Mt+Dt),Ee[1].h(E,Ee[0].y),Ee[2].xE?hx(a,y,b,Se,Ht,Ut):dx(a,y,b,Se,Ht,Ut),Se=Ut.x,Ht=Ut.width,Ut=Ut.height;break;case th:for(mt=0;mtmt&&(iemt&&(Wect&&(ct=0),135Tt&&(Tt=0)),y.la.h(ct,Tt),y.Da.h(Ht,Ut)}}Yn.prototype.customAlignment=function(a,y,x,E,b){return[y,x,E,b]};function hx(a,y,x,E,b,z){var tt=x.length;if(tt===0)return new de(E,0,b,z);if(tt===1)return y=x[0],b=y.Da.width,z=y.Da.height,new de(E,0,b,z);for(var ot=y.nodeSpacing,rt=y.rowSpacing,at=Za(y)===90,ut=0,ct=0,mt=0,yt=0;ytat&&(b-=at),z=Math.max(z,Math.max(yt,mt)+a+tt.height),0>x.S.x&&(E=N0(y,x.S.x,!1,E,ot))):(x.S.h(b+a,E+ot/2-x.focus.y-x.la.y),b=Math.max(b,Math.max(St,ct)+a+tt.width),mt=E+ot/2-x.focus.y-x.la.y,z=Math.max(z,mt+tt.height),0>mt&&(z-=mt),0>x.S.y&&(E=N0(y,x.S.y,!0,E,ot)))),new de(E,0,b,z)}function dx(a,y,x,E,b,z){var tt=x.length;if(tt===0)return new de(E,0,b,z);if(tt===1)return x=x[0],b=x.Da.width,z=x.Da.height,new de(E,0,b,z);for(var ot=y.nodeSpacing,rt=y.rowSpacing,at=Za(y)===270,ut=0,ct=0,mt=0,yt=0;ytct&&(b-=ct),z=Math.max(z,Math.abs(Math.min(yt,mt))+a+ut.height),0>rt.S.x&&(E=N0(y,rt.S.x,!1,E,ot))):(rt.S.h(-b-ut.width-a,E+ot/2-rt.focus.y-rt.la.y),b=Math.max(b,Math.abs(Math.min(St,ct))+a+ut.width),mt=E+ot/2-rt.focus.y-rt.la.y,z=Math.max(z,mt+ut.height),0>mt&&(z-=mt),0>rt.S.y&&(E=N0(y,rt.S.y,!0,E,ot)))),y=0;yy&&(y=x+a.width),0>x&&(y-=x),y;case Kl:return a.width>y?a.width:y;case Xl:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case $u:case Ql:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case th:return a.width-a.focus.x+a.nodeSpacing/2+y;case fu:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function Ty(a,y,x){switch(a.alignment){case Mg:case zc:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Kl:return a.height>y?a.height:y;case Xl:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case $u:case Ql:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case th:return a.height-a.focus.y+a.nodeSpacing/2+y;case fu:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Fy(a,y,x){switch(a){case zc:y/=2,x/=2;break;case Mg:y/=2,x/=2;break;case Kl:x=y=0;break;case Xl:break;default:ee("Unhandled alignment value "+a.toString())}return new jt(y,x)}function Bd(a,y,x,E,b,z){y=Fy(y,x,E),wg(a,y.x,y.y,b,z)}function wg(a,y,x,E,b){if(y!==0||x!==0)for(a=a.children;E<=b;E++){var z=a[E].S;z.x+=y,z.y+=x}}function T0(a,y,x,E){var b=y.parent;switch(a.ud){case Vl:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===b&&y.relativePoint.h(x,E);break;case Cg:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===b&&y.relativePoint.h(x,E);break;default:ee("Unhandled path value "+a.ud.toString())}}function F0(a,y,x){for(var E=0;Ect.length||yt===null||2>yt.length))for(b=x=0;xat&&z.yz.y&&aty.length||x===null||2>x.length)E=null;else{for(ut=bs(a,y.length+x.length),E=z=rt=0;zrt;)at=x[z++],ut[E++].h(at.x+b,at.y);for(x=bs(a,E),rt=0;rtct.length||z===null||2>z.length)b=null;else{for(ut=bs(a,ct.length+z.length),b=at=x=0;xz;)rt=ct[x++],ut[b++].h(rt.x,rt.y);for(z=bs(a,b),x=0;xct.length||yt===null||2>yt.length))for(b=x=0;xrt&&z.xz.x&&rty.length||x===null||2>x.length)E=null;else{for(ut=bs(a,y.length+x.length),E=z=rt=0;zrt;)at=x[z++],ut[E++].h(at.x,at.y+b);for(x=bs(a,E),rt=0;rtct.length||z===null||2>z.length)b=null;else{for(ut=bs(a,ct.length+z.length),b=at=x=0;xz;)rt=ct[x++],ut[b++].h(rt.x,rt.y);for(z=bs(a,b),x=0;x=a?0:135>=a?90:225>=a?180:315>=a?270:0}Yn.prototype.computeLayerSpacing=function(a){var y=Za(a);y=y===90||y===270;var x=a.layerSpacing;if(0=a&&(this.W.nodeIndentPastParent=a,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(a){this.W.nodeSpacing!==a&&(this.W.nodeSpacing=a,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(a){this.W.layerSpacing!==a&&(this.W.layerSpacing=a,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(a){this.W.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.W.layerSpacingParentOverlap=a,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(a){this.W.compaction===a||a!==b0&&a!==Cp||(this.W.compaction=a,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(a){this.W.breadthLimit!==a&&0<=a&&(this.W.breadthLimit=a,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(a){this.W.rowSpacing!==a&&(this.W.rowSpacing=a,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(a){this.W.rowIndent!==a&&0<=a&&(this.W.rowIndent=a,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(a){this.W.commentSpacing!==a&&(this.W.commentSpacing=a,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(a){this.W.commentMargin!==a&&(this.W.commentMargin=a,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(a){this.W.setsPortSpot!==a&&(this.W.setsPortSpot=a,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(a){this.W.portSpot.D(a)||(this.W.portSpot=a,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(a){this.W.setsChildPortSpot!==a&&(this.W.setsChildPortSpot=a,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(a){this.W.childPortSpot.D(a)||(this.W.childPortSpot=a,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(a){this.Y.sorting===a||a!==jc&&a!==xp&&a!==Pp&&!wp||(this.Y.sorting=a,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(a){this.Y.comparer!==a&&(this.Y.comparer=a,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(a){this.Y.angle===a||a!==0&&a!==90&&a!==180&&a!==270||(this.Y.angle=a,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(a){this.Y.alignment!==a&&(this.Y.alignment=a,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(a){this.Y.nodeIndent!==a&&0<=a&&(this.Y.nodeIndent=a,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(a){this.Y.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.Y.nodeIndentPastParent=a,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(a){this.Y.nodeSpacing!==a&&(this.Y.nodeSpacing=a,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(a){this.Y.layerSpacing!==a&&(this.Y.layerSpacing=a,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(a){this.Y.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.Y.layerSpacingParentOverlap=a,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(a){this.Y.compaction===a||a!==b0&&a!==Cp||(this.Y.compaction=a,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(a){this.Y.breadthLimit!==a&&0<=a&&(this.Y.breadthLimit=a,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(a){this.Y.rowSpacing!==a&&(this.Y.rowSpacing=a,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(a){this.Y.rowIndent!==a&&0<=a&&(this.Y.rowIndent=a,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(a){this.Y.commentSpacing!==a&&(this.Y.commentSpacing=a,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(a){this.Y.commentMargin!==a&&(this.Y.commentMargin=a,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(a){this.Y.setsPortSpot!==a&&(this.Y.setsPortSpot=a,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(a){this.Y.portSpot.D(a)||(this.Y.portSpot=a,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(a){this.Y.setsChildPortSpot!==a&&(this.Y.setsChildPortSpot=a,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(a){this.Y.childPortSpot.D(a)||(this.Y.childPortSpot=a,this.C())}}});var B0=new Me(Yn,"PathDefault",-1),Vl=new Me(Yn,"PathDestination",0),Cg=new Me(Yn,"PathSource",1),jc=new Me(Yn,"SortingForwards",10),xp=new Me(Yn,"SortingReverse",11),Pp=new Me(Yn,"SortingAscending",12),wp=new Me(Yn,"SortingDescending",13),zc=new Me(Yn,"AlignmentCenterSubtrees",20),Mg=new Me(Yn,"AlignmentCenterChildren",21),Kl=new Me(Yn,"AlignmentStart",22),Xl=new Me(Yn,"AlignmentEnd",23),$u=new Me(Yn,"AlignmentBus",24),Ql=new Me(Yn,"AlignmentBusBranching",25),th=new Me(Yn,"AlignmentTopLeftBus",26),fu=new Me(Yn,"AlignmentBottomRightBus",27),b0=new Me(Yn,"CompactionNone",30),Cp=new Me(Yn,"CompactionBlock",31),D0=new Me(Yn,"StyleLayered",40),by=new Me(Yn,"StyleLastParents",41),Dy=new Me(Yn,"StyleAlternating",42),Iy=new Me(Yn,"StyleRootOnly",43),I0=new Me(Yn,"ArrangementVertical",50),Oy=new Me(Yn,"ArrangementHorizontal",51),O0=new Me(Yn,"ArrangementFixedRoots",52),jy=new Me(Yn,"LayerIndividual",60),zy=new Me(Yn,"LayerSiblings",61),j0=new Me(Yn,"LayerUniform",62);Yn.className="TreeLayout",Yn.PathDefault=B0,Yn.PathDestination=Vl,Yn.PathSource=Cg,Yn.SortingForwards=jc,Yn.SortingReverse=xp,Yn.SortingAscending=Pp,Yn.SortingDescending=wp,Yn.AlignmentCenterSubtrees=zc,Yn.AlignmentCenterChildren=Mg,Yn.AlignmentStart=Kl,Yn.AlignmentEnd=Xl,Yn.AlignmentBus=$u,Yn.AlignmentBusBranching=Ql,Yn.AlignmentTopLeftBus=th,Yn.AlignmentBottomRightBus=fu,Yn.CompactionNone=b0,Yn.CompactionBlock=Cp,Yn.StyleLayered=D0,Yn.StyleLastParents=by,Yn.StyleAlternating=Dy,Yn.StyleRootOnly=Iy,Yn.ArrangementVertical=I0,Yn.ArrangementHorizontal=Oy,Yn.ArrangementFixedRoots=O0,Yn.LayerIndividual=jy,Yn.LayerSiblings=zy,Yn.LayerUniform=j0;function Lg(a){Ni.call(this,a)}ye(Lg,Ni),Lg.prototype.createVertex=function(){return new ba(this)},Lg.prototype.createEdge=function(){return new Rc(this)},Lg.className="TreeNetwork";function ba(a){Vo.call(this,a),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new jt(0,0),this.Da=new Xe(0,0),this.la=new jt(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=jc,this.hd=oy,this.Kb=0,this.Jb=Mg,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=Cp,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=rr,this.wr=!0,this.Dp=rr}ye(ba,Vo),ba.prototype.copyInheritedPropertiesFrom=function(a){a!==null&&(this.nd=a.sorting,this.hd=a.comparer,this.Kb=a.angle,this.Jb=a.alignment,this.Uq=a.nodeIndent,this.Vq=a.nodeIndentPastParent,this.Wq=a.nodeSpacing,this.ie=a.layerSpacing,this.Aq=a.layerSpacingParentOverlap,this.Hp=a.compaction,this.Ap=a.breadthLimit,this.nr=a.rowSpacing,this.mr=a.rowIndent,this.Gp=a.commentSpacing,this.Fp=a.commentMargin,this.xr=a.setsPortSpot,this.dr=a.portSpot,this.wr=a.setsChildPortSpot,this.Dp=a.childPortSpot)},he.Object.defineProperties(ba.prototype,{initialized:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},parent:{get:function(){return this.hb},set:function(a){this.hb!==a&&(this.hb=a)}},children:{get:function(){return this.u},set:function(a){if(this.u!==a){if(a!==null)for(var y=a.length,x=0;xyt.y+x.rowIndent&&(z=Math.min(z,Math.max(ct.y,z-y.computeNodeIndent(x))))):x.alignment===Kl?(z=E.top+b.y,b.y===0&&ct.yyt.x+x.rowIndent&&(z=Math.min(z,Math.max(ct.x,z-y.computeNodeIndent(x))))):x.alignment===Kl?(z=E.left+b.x,b.x===0&&ct.xyt.y+x.rowIndent&&(z=Math.min(z,Math.max(ct.y,z-y.computeNodeIndent(x))))):x.alignment===Kl?(z=E.top+b.y,b.y===0&&ct.yyt.x+x.rowIndent&&(z=Math.min(z,Math.max(ct.x,z-y.computeNodeIndent(x))))):x.alignment===Kl?(z=E.left+b.x,b.x===0&&ct.x=a.count)a.count===1&&(a=a.first(),a.centerX=0,a.centerY=0);else{var y=new ze;y.addAll(a.iterator),a=new ze;var x=new ze,E=this.sort(y),b,z,tt=this.Jp,ot=this.arrangement,rt=this.nodeDiameterFormula,at=this.radius;(!isFinite(at)||0>=at)&&(at=NaN);var ut=this.aspectRatio;(!isFinite(ut)||0>=ut)&&(ut=1);var ct=this.startAngle;isFinite(ct)||(ct=0);var mt=this.sweepAngle;if((!isFinite(mt)||360mt)&&(mt=360),y=this.spacing,isFinite(y)||(y=NaN),ot===Qa&&rt===xg?ot=Xa:ot===Qa&&rt!==xg&&(ot=this.arrangement),(this.direction===Fd||this.direction===Bc)&&this.sorting!==bc){for(rt=0;!(rt>=E.length)&&(a.add(E.M(rt)),!(rt+1>=E.length));rt+=2)x.add(E.M(rt+1));this.direction===Fd?(this.arrangement===Qa&&a.reverse(),E=new ze,E.addAll(a),E.addAll(x)):(this.arrangement===Qa&&x.reverse(),E=new ze,E.addAll(x),E.addAll(a))}rt=E.length;for(var yt=z=b=0;ytmt&&(yt===0||yt===E.length-1)&&(Mt/=2),b+=Mt,z++}if(isNaN(at)||ot===Qa){if(isNaN(y)&&(y=6),ot!==Xa&&ot!==Qa){for(z=-1/0,tt=0;ttat?(at=b,z=at*ut):tt=yt/(360<=mt?rt:rt-1)}if(this.kw=ot,this.lc=at,this.Zm=ut,this.lw=ct,this.Wp=mt,this.Ti=y,this.me=z,this.Jp=tt,y=E,E=this.kw,ot=this.lc,at=this.lw,ut=this.Wp,ct=this.Ti,mt=this.me,rt=this.Jp,this.direction!==Fd&&this.direction!==Bc||E!==Qa)if(this.direction===Fd||this.direction===Bc){switch(tt=0,E){case Rh:tt=180*g0(this,ot,mt,at,rt)/Math.PI;break;case Xa:rt=y=0,tt=a.first(),tt!==null&&(y=Hh(tt,Math.PI/2)),tt=x.first(),tt!==null&&(rt=Hh(tt,Math.PI/2)),tt=180*g0(this,ot,mt,at,ct+(y+rt)/2)/Math.PI;break;case _u:tt=ut/y.length}if(this.direction===Fd){switch(E){case Rh:dp(this,a,at,Gh);break;case Xa:hp(this,a,at,Gh);break;case _u:up(this,a,ut/2,at,Gh)}switch(E){case Rh:dp(this,x,at+tt,ps);break;case Xa:hp(this,x,at+tt,ps);break;case _u:up(this,x,ut/2,at+tt,ps)}}else{switch(E){case Rh:dp(this,x,at,Gh);break;case Xa:hp(this,x,at,Gh);break;case _u:up(this,x,ut/2,at,Gh)}switch(E){case Rh:dp(this,a,at+tt,ps);break;case Xa:hp(this,a,at+tt,ps);break;case _u:up(this,a,ut/2,at+tt,ps)}}}else switch(E){case Rh:dp(this,y,at,this.direction);break;case Xa:hp(this,y,at,this.direction);break;case _u:up(this,y,ut,at,this.direction);break;case Qa:BS(this,y,ut,at,this.direction)}else BS(this,y,ut,at-ut/2,ps)}this.updateParts(),this.network=null,this.isValidLayout=!0};function up(a,y,x,E,b){var z=a.Wp,tt=a.lc;a=a.me,E=E*Math.PI/180,x=x*Math.PI/180;for(var ot=y.length,rt=0;rtx){for(z=E+(b===ps?z:-z);0>z;)z+=360;z%=360,180=ut.length-1));ct++)IS(a,rt,at,ut,ct,b,z)||OS(a,rt,at,ut,ct,b,z),rt=z.x,at=z.y;if(jt.free(z),a.mj++,!(23Math.abs(yt)?Math.abs(rt-z)<(ut[0].width+ut[ut.length-1].width)/2&&(tt=0):tt=0Math.abs(mt)?0:mt,rt=Math.abs(z)>Math.abs(ct)?0ct:0a.mj?a.lc-tt/(2*Math.PI):5>ut.length&&10=ct.length-1));mt++)IS(a,rt,at,ct,mt,b,ut)||OS(a,rt,at,ct,mt,b,ut),rt=ut.x,at=ut.y;if(jt.free(ut),a.mj++,!(23a.mj?a.lc-z/(2*Math.PI):a.lc-(0ot){if(z=y-a,z<-ot)return tt.x=z,tt.y=at,!1;ut=!0}}else if(z=y-a,z<-ot){if(z=y+a,z>ot)return tt.x=z,tt.y=at,!1;ut=!0}return at=Math.sqrt(1-Math.min(1,z*z/(ot*ot)))*rt,0>x!==ut&&(at=-at),Math.abs(x-at)>(E[b].height+E[b+1].height)/2?(tt.x=z,tt.y=at,!1):(tt.x=z,tt.y=at,!0)}function OS(a,y,x,E,b,z,tt){var ot=a.lc,rt=a.me,at=0;if(a=(E[b].height+E[b+1].height)/2+a.Ti,E=!1,0<=y!=(z===ps)){if(z=x-a,z<-rt){if(z=x+a,z>rt){tt.x=at,tt.y=z;return}E=!0}}else if(z=x+a,z>rt){if(z=x-a,z<-rt){tt.x=at,tt.y=z;return}E=!0}at=Math.sqrt(1-Math.min(1,z*z/(rt*rt)))*ot,0>y!==E&&(at=-at),tt.x=at,tt.y=z}eo.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},eo.prototype.commitNodes=function(){var a=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,y=a?this.group.location.copy():null,x=this.actualCenter;a?x=new jt(0,0):(x.x=this.arrangementOrigin.x+this.lc,x.y=this.arrangementOrigin.y+this.me);for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;b.x+=x.x,b.y+=x.y,b.commit()}a&&(this.group.Va(),a=this.group.position.copy(),x=this.group.location.copy(),y=y.re(x.re(a)),this.group.move(y),this.Zv=y.re(a))},eo.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function cy(a,y,x,E,b){var z=a.ty;if(.001>Math.abs(a.Zm-1))return E!==void 0&&b!==void 0?b*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var tt=0,ot=E!==void 0&&b!==void 0?b/(z+1):Math.PI/(2*(z+1)),rt=0,at=0;at<=z;at++){E!==void 0&&b!==void 0?rt=E+at*b/z:rt=at*Math.PI/(2*z);var ut=Math.sin(rt);tt+=Math.sqrt(1-a*a*ut*ut)*ot}return E!==void 0&&b!==void 0?(y>x?y:x)*tt:4*(y>x?y:x)*tt}function d0(a,y,x,E,b){return y/(E!==void 0&&b!==void 0?cy(a,1,x,E,b):cy(a,1,x))}function g0(a,y,x,E,b){if(.001>Math.abs(a.Zm-1))return b/y;var z=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,tt=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(E+=Math.PI/2);for(var ot=0;;ot++){var rt=Math.sin(E+ot*a);if(tt+=(y>x?y:x)*Math.sqrt(1-z*z*rt*rt)*a,tt>=b)return ot*a}}eo.prototype.sort=function(a){switch(this.sorting){case c0:break;case f0:a.reverse();break;case p0:a.sort(this.comparer);break;case m0:a.sort(this.comparer),a.reverse();break;case bc:return this.ak(bx(a));default:ee("Invalid sorting type.")}return a};function bx(a){for(var y=[],x=0;xb&&(b=ot,z=tt)}else for(tt=0;ttb&&(b=ot,z=tt);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),tt=z.sourceEdges;tt.next();)b=a.indexOf(tt.value.fromVertex),0>b||0<=y[b]&&y[b]++;for(z=z.destinationEdges;z.next();)b=a.indexOf(z.value.toVertex),0>b||0<=y[b]&&y[b]++}return x}eo.prototype.ak=function(a){for(var y=[],x=0;xy[x].indexOf(b)&&y[x].push(b);for(E=E.sourceEdges;E.next();)b=a.indexOf(E.value.fromVertex),b!==x&&0>y[x].indexOf(b)&&y[x].push(b)}for(z=[],x=0;xy[x[St]].indexOf(x[St===x.length-1?0:St+1])&&yt.push(St===x.length-1?0:St+1);if(yt.length===0)for(St=0;Stx.indexOf(ie)||Xtx.indexOf(ie)||Xt=Mt?Xt+1:Xt)),Tt+=Xt=Mt&&Xt++,Ht>=Mt&&Ht++,Xt>Ht&&(Ut=Ht,Ht=Xt,Xt=Ut),Ht-Xt<(x.length+2)/2==(Xtyt||yt===ut||(St=yt>ut?yt-ut:ut-yt,ct+=yttt-St?1:-1);x.splice(0>ct?ut:ut+1,0,rt),E.splice(ot,1),ot--}else z=!1;if(z)break;x.push(E[0]),E.splice(0,1)}for(y=0;y=a?this.ul=a:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==Qa&&a!==Xa&&a!==Rh&&a!==_u||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==ps&&a!==Gh&&a!==Fd&&a!==Bc||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==c0&&a!==f0&&a!==p0&&!m0&&a!==bc||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf!==a&&(this.tf=a,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(a){this.Nn===a||a!==v0&&a!==xg||(this.Nn=a,this.C())}},actualXRadius:{get:function(){return this.lc}},actualYRadius:{get:function(){return this.me}},actualSpacing:{get:function(){return this.Ti}},actualCenter:{get:function(){return this.Zv}}});var Xa=new Me(eo,"ConstantSpacing",0),Rh=new Me(eo,"ConstantDistance",1),_u=new Me(eo,"ConstantAngle",2),Qa=new Me(eo,"Packed",3),ps=new Me(eo,"Clockwise",4),Gh=new Me(eo,"Counterclockwise",5),Fd=new Me(eo,"BidirectionalLeft",6),Bc=new Me(eo,"BidirectionalRight",7),c0=new Me(eo,"Forwards",8),f0=new Me(eo,"Reverse",9),p0=new Me(eo,"Ascending",10),m0=new Me(eo,"Descending",11),bc=new Me(eo,"Optimized",12),v0=new Me(eo,"Pythagorean",13),xg=new Me(eo,"Circular",14);eo.className="CircularLayout",eo.ConstantSpacing=Xa,eo.ConstantDistance=Rh,eo.ConstantAngle=_u,eo.Packed=Qa,eo.Clockwise=ps,eo.Counterclockwise=Gh,eo.BidirectionalLeft=Fd,eo.BidirectionalRight=Bc,eo.Forwards=c0,eo.Reverse=f0,eo.Ascending=p0,eo.Descending=m0,eo.Optimized=bc,eo.Pythagorean=v0,eo.Circular=xg;function gp(){this.Pl=-1/0,this.tm=this.mk=null}gp.prototype.compare=function(a,y){if(0this.Pl||Math.abs(a)a&&0ot?(b=mt.x+mt.width/2,z=mt.y+mt.height/2,at[0]=new jt(mt.x+mt.width+E.width,mt.y),at[1]=new jt(mt.x,mt.y+mt.height+E.height),ot=2):(rt=zS(at,ot,b,z,mt.width,mt.height,E),ct=at[rt],yt=new jt(ct.x+mt.width+E.width,ct.y),mt=new jt(ct.x,ct.y+mt.height+E.height),rt+1this.network.vertexes.count)return!1;for(var a=0,y=0,x=this.network.vertexes.first().bounds,E=this.network.vertexes.iterator;E.next();){if(E.value.bounds.Yc(x)&&(a++,2a.network.vertexes.count)return!1;for(a.ah=a.network.vertexes.Fa(),a=a.ah,a.sort(function(x,E){return x===null||E===null||x===E?0:E.Vd-x.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1=tt))){for(var at=ot=0,ut=rt.count-tt;utyt&&(yt=1),ot=Jt.sqrt((ot+yt+at*at*4/(tt*tt))/yt),tt=(ot-1)*ut/2,ot=(ot-1)*ct/2,b.bounds=new de(z-mt.x-tt,rt-mt.y-ot,ut+2*tt,ct+2*ot),b.focus=new jt(mt.x+tt,mt.y+ot)}}return a.network=E,x}function Ox(a,y){for(var x=a.network.vertexes.iterator;x.next();){var E=x.value;if(E.network=y,E.We!==null){var b=E.We.M(E.sv);E.Vd=b.Rs;var z=b.Sv,tt=b.Tv;E.bounds=new de(E.centerX-z,E.centerY-tt,b.Ss,b.Qs),E.focus=new jt(z,tt),E.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function jx(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var E=y.centerX,b=y.centerY,z=y.width,tt=y.height;y.We!==null&&0=ct.Vd?rt++:(ot=!0,at++,tt+=Math.atan2(y.centerY-ct.centerY,y.centerX-ct.centerX))}if(rt!==0){for(0>1)+at)*(ot%2===0?1:-1),rt.centerX=E+ut*Math.cos(ct),rt.centerY=b+ut*Math.sin(ct),ot++}}}}function zS(a,y,x,E,b,z,tt){var ot=9e19,rt=-1,at=0;t:for(;atut.y&&a[mt].x-ut.xut.x&&a[mt].y-ut.yy+z?(x=E+b-tt,a=a-y-z,Jt.sqrt(x*x+a*a)):a+xtt+ot?a>y+z?(x=E-tt-ot,a=a-y-z,Jt.sqrt(x*x+a*a)):a+xy+z?a-(y+z):a+x=y.length)return!1;var x=y[0];x.forceX=0,x.forceY=0;for(var E=x.centerX,b=E,z=x=x.centerY,tt=1;ttz-x)?y.sort(function(Mt,Dt){return Mt===null||Dt===null||Mt===Dt?0:Mt.centerX-Dt.centerX}):y.sort(function(Mt,Dt){return Mt===null||Dt===null||Mt===Dt?0:Mt.centerY-Dt.centerY}),x=a.Zf;var at=E=ot=0;for(z=0;zx||at-rt>x){if(b)break}else if(ut-yt>x||yt-ut>x){if(!b)break}else{var St=RS(tt,mt);1>St?(E=a.randomNumberGenerator,E===null&&(a.randomNumberGenerator=E=new S0),St=E.random(),ot=E.random(),rt>at?(E=Math.abs(mt.bounds.right-tt.bounds.x),E=(1+E)*St):rtyt?(at=Math.abs(mt.bounds.bottom-tt.bounds.y),at=(1+at)*ot):rtct?(ct=a.randomNumberGenerator,ct===null&&(a.randomNumberGenerator=ct=new S0),ot=ct.random(),ct=ct.random(),E=(E>rt?1:-1)*(1+(z.width>x.width?z.width:x.width))*ot,at=(tt>ut?1:-1)*(1+(z.height>x.height?z.height:x.height))*ct):(ot=ot.stiffness*(ct-ot.length),E=(rt-E)/ct*ot,at=(ut-tt)/ct*ot),x.forceX+=E,x.forceY+=at,z.forceX-=E,z.forceY-=at;for(b=E=0;ba.epsilonDistance*a.epsilonDistance}br.prototype.moveVertex=function(a){var y=a.forceX,x=a.forceY,E=this.moveLimit;return y<-E?y=-E:y>E&&(y=E),x<-E?x=-E:x>E&&(x=E),a.centerX+=y,a.centerY+=x,y*y+x*x},br.prototype.moveFixedVertex=function(){},br.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},br.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=rr,y.toSpot=rr)}},br.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=de.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,de.free(x)}x=de.alloc();for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;(a!==0||y!==0)&&(x.assign(b.bounds),x.x+=a,x.y+=y,b.bounds=x),b.commit()}de.free(x)},br.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},br.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},br.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},br.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},br.prototype.electricalFieldX=function(){return 0},br.prototype.electricalFieldY=function(){return 0},br.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},br.prototype.gravitationalFieldX=function(){return 0},br.prototype.gravitationalFieldY=function(){return 0},br.prototype.isFixed=function(a){return a.isFixed},he.Object.defineProperties(br.prototype,{currentIteration:{get:function(){return this.An}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},arrangesToOrigin:{get:function(){return this.Bm},set:function(a){this.Bm!==a&&(this.Bm=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},maxIterations:{get:function(){return this.dl},set:function(a){this.dl!==a&&0<=a&&(this.dl=a,this.C())}},epsilonDistance:{get:function(){return this.$m},set:function(a){this.$m!==a&&0Mt&&0Mt&&0a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]tt)for(var ut=tt+1;utrt;ut--)ct=E[ut],ct.near===at&&ct.Dj===at.Dj||ot++;var mt;if(0<=x)for(rt=E[tt].sourceEdgesArrayAccess,at=0;atMt||ct===Mt&&yt>St)&&ot++,Dtct||Mt===ct&&St>yt)&&ot++}}}if(0>=x){for(rt=E[tt].destinationEdgesArrayAccess,at=0;atMt||ct===Mt&&ut>Dt)&&ot++,Stct||Mt===ct&&Dt>ut)&&ot++)}for(z[tt*b+tt]=ot,rt=tt+1;rt=x){for(ot=E[tt].destinationEdgesArrayAccess,Ht=E[rt].destinationEdgesArrayAccess,at=0;at=x&&(rt=ot.sourceEdgesArrayAccess);var at=null;0<=x&&(at=ot.destinationEdgesArrayAccess);var ut=0,ct=0,mt=ot.near;if(mt!==null&&mt.layer===ot.layer&&(ut+=mt.column-1,ct++),rt!==null)for(mt=0;mt=x&&(rt=ot.sourceEdgesArrayAccess);var at=null;0<=x&&(at=ot.destinationEdgesArrayAccess);var ut=0,ct=[],mt=ot.near;if(mt!==null&&mt.layer===ot.layer&&(ct[ut]=mt.column-1,ut++),ot=void 0,rt!==null)for(mt=0;mt>1,z[tt]=ut&1?ct[at]:ct[at-1]+ct[at]>>1)}return Uh(a,y,E),z}function mp(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var tt=y.destinationEdges;tt.next();){var ot=tt.value,rt=ot.toVertex,at=y.layer-rt.layer;ot=a.linkMinLength(ot),at===ot&&mp(a,rt,x,E,b,z)}if(z)for(tt=y.sourceEdges;tt.next();)ot=tt.value,rt=ot.fromVertex,at=rt.layer-y.layer,ot=a.linkMinLength(ot),at===ot&&mp(a,rt,x,E,b,z)}}function my(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var tt=y.destinationEdges;tt.next();)my(a,tt.value.toVertex,x,E,b,z);if(z)for(y=y.sourceEdges;y.next();)my(a,y.value.fromVertex,x,E,b,z)}}mi.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case Sy:a=this.network;var y=0,x=a.vertexes.count-1,E=[];E.length=x+1;for(var b=a.vertexes.iterator;b.next();)b.value.valid=!0;for(;Rx(a)!==null;){for(b=YS(a);b!==null;)E[x]=b,x--,b.valid=!1,b=YS(a);for(b=VS(a);b!==null;)E[y]=b,y++,b.valid=!1,b=VS(a);b=null;for(var z=0,tt=this.network.vertexes.iterator;tt.next();){var ot=tt.value;if(ot.valid){for(var rt=0,at=ot.destinationEdges;at.next();)at.value.toVertex.valid&&rt++;at=0;for(var ut=ot.sourceEdges;ut.next();)ut.value.fromVertex.valid&&at++;(b===null||zy.toVertex.index&&(a.gm(y),y.rev=!0);break;case M0:for(E=this.network.vertexes.iterator;E.next();)a=E.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,E.reset();E.next();)y=E.value,y.sourceEdges.count===0&&vy(this,y);for(E.reset();E.next();)y=E.value,y.Ll===-1&&vy(this,y);for(a.reset();a.next();)E=a.value,E.forest||(y=E.fromVertex,x=y.finish,b=E.toVertex,z=b.finish,b.LlE){if(0>E)for(y.reset();y.next();)y.value.layer-=E;for(E=[],y.reset();y.next();)x=y.value,b=E[x.layer],b===void 0?E[x.layer]=[x]:b.push(x);for(x=y=0;xtt&&mp(a,ot,0,-1,!0,!1)}for(mp(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,E=1/0,ot=0,rt=null,tt=a.network.vertexes.iterator;tt.next();){var at=tt.value;if(at.component===1){var ut=0,ct=!1,mt=at.sourceEdgesArrayAccess;b=mt.length;for(var yt=0;ytz)&&!ut&&(ot=tt,z=at)}if(0>E){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer-=b);y.component=0}else ot.component=0}}}function JS(a,y,x){return a.K===90?x&&!y.rev||!x&&y.rev?270:90:a.K===180?x&&!y.rev||!x&&y.rev?0:180:a.K===270?x&&!y.rev||!x&&y.rev?90:270:x&&!y.rev||!x&&y.rev?180:0}mi.prototype.initializeIndices=function(){switch(this.Qk){default:case Cy:for(var a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;y.index=this.tc[x],this.tc[x]++}break;case k0:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&qS(this,x);break;case wy:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&_S(this,x)}};function qS(a,y){var x=y.layer;for(y.index=a.tc[x],a.tc[x]++,y=y.destinationEdgesArrayAccess,x=!0;x;){x=!1;for(var E=0;Ez.portFromColOffset&&(x=!0,y[E]=z,y[E+1]=b)}}for(x=0;xz.portToColOffset&&(E=!0,y[x]=z,y[x+1]=b)}for(x=0;x=tt;E--)z=Ba(this,E,-1)||z;for(b=this.countCrossings(),b>=a?ya(this,y):(a=b,y=ks(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Ba(this,E,1)||z;for(b=this.countCrossings(),b>=a?ya(this,y):(a=b,y=ks(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Ba(this,E,1)||z;for(b>=a?ya(this,y):(a=b,y=ks(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Ba(this,E,-1)||z;for(b>=a?ya(this,y):(a=b,y=ks(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Ba(this,E,0)||z;for(b>=a?ya(this,y):(a=b,y=ks(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Ba(this,E,0)||z;b>=a?ya(this,y):(a=b,y=ks(this))}break;default:case E0:for(x=this.Ia,tt=0,ot=a+1;(E=this.countCrossings())=tt;E--)z=Ba(this,E,-1)||z;for(b=this.countCrossings(),b>=a?ya(this,y):(a=b,y=ks(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Ba(this,E,1)||z;for(b=this.countCrossings(),b>=a?ya(this,y):(a=b,y=ks(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Ba(this,E,1)||z;for(b>=a?ya(this,y):(a=b,y=ks(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Ba(this,E,-1)||z;for(b>=a?ya(this,y):(a=b,y=ks(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Ba(this,E,0)||z;for(b>=a?ya(this,y):(a=b,y=ks(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Ba(this,E,0)||z;b>=a?ya(this,y):(a=b,y=ks(this))}}ya(this,y)};function P0(a,y,x){var E=Wh(a,y),b=a.tc[y],z=US(a,y,x),tt=py(a,y,x);for(x=0;xz+1&&(mt+=4*(zt-z),yt+=4*(zt-(z+1)))}for(Ut=E[z].destinationEdges.iterator,Ut.reset();Ut.next();)if(zt=Ut.value,Ht=zt.toVertex,zt.valid&&Ht.layer===y){for(zt=0;E[zt]!==Ht;)zt++;zt===z+1&&(yt+=1)}for(Ut=E[z+1].sourceEdges.iterator,Ut.reset();Ut.next();)if(zt=Ut.value,Ht=zt.fromVertex,zt.valid&&Ht.layer===y){for(zt=0;E[zt]!==Ht;)zt++;ztz+1&&(mt+=4*(zt-(z+1)),yt+=4*(zt-z))}for(Ut=E[z+1].destinationEdges.iterator,Ut.reset();Ut.next();)if(zt=Ut.value,Ht=zt.toVertex,zt.valid&&Ht.layer===y){for(zt=0;E[zt]!==Ht;)zt++;zt===z&&(mt+=1)}zt=Ht=0,Ut=tt[E[z].index];var Xt=ot[E[z].index],ie=tt[E[z+1].index],We=ot[E[z+1].index];Ut!==-1&&(Ht+=Math.abs(Ut-St),zt+=Math.abs(Ut-Tt)),Xt!==-1&&(Ht+=Math.abs(Xt-St),zt+=Math.abs(Xt-Tt)),ie!==-1&&(Ht+=Math.abs(ie-Mt),zt+=Math.abs(ie-Dt)),We!==-1&&(Ht+=Math.abs(We-Mt),zt+=Math.abs(We-Dt)),(yt>1)+8*E;this.Ra*=8}if(this.bg&2)for(x=!0;x;){for(x=!1,y=this.Md+1;y<=this.Ia;y++)x=Ic(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Ic(this,y,-1)||x;x=Ic(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)yy(this,y,1);for(y=this.Md-1;0<=y;y--)yy(this,y,-1);yy(this,this.Md,0)}if(a&&($S(this,-1),$S(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Ic(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Ic(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Ic(this,y,0)||x}}else Ux(this)};function Ic(a,y,x){for(var E=!1;Gx(a,y,x);)E=!0;return E}function Gx(a,y,x){var E,b=Wh(a,y),z=a.tc[y],tt=py(a,y,-1);if(0x)for(E=0;EE-1||ut-b[E-1].column-1>ct+a.nodeMinColumnSpace(b[E-1],!1)?yt=ut-1:yt=ut,ct=E+1>=z||b[E+1].column-ut-1>mt+a.nodeMinColumnSpace(b[E+1],!0)?ut+1:ut;var St=mt=0,Mt=0;if(0>=x)for(var Dt=b[E].sourceEdges.iterator;Dt.next();){var Tt=Dt.value,zt=Tt.fromVertex;if(Tt.valid&&zt.layer!==y){var Ht=fy(Tt),Ut=Tt.portFromColOffset;Tt=Tt.portToColOffset,zt=zt.column,mt+=(Math.abs(ut+Tt-(zt+Ut))+1)*Ht,St+=(Math.abs(yt+Tt-(zt+Ut))+1)*Ht,Mt+=(Math.abs(ct+Tt-(zt+Ut))+1)*Ht}}if(0<=x)for(Dt=b[E].destinationEdges.iterator;Dt.next();)Tt=Dt.value,zt=Tt.toVertex,Tt.valid&&zt.layer!==y&&(Ht=fy(Tt),Ut=Tt.portFromColOffset,Tt=Tt.portToColOffset,zt=zt.column,mt+=(Math.abs(ut+Ut-(zt+Tt))+1)*Ht,St+=(Math.abs(yt+Ut-(zt+Tt))+1)*Ht,Mt+=(Math.abs(ct+Ut-(zt+Tt))+1)*Ht);Tt=Ut=Ht=0,Dt=tt[b[E].index],zt=ot[b[E].index],Dt!==-1&&(Ht+=Math.abs(Dt-ut),Ut+=Math.abs(Dt-yt),Tt+=Math.abs(Dt-ct)),zt!==-1&&(Ht+=Math.abs(zt-ut),Ut+=Math.abs(zt-yt),Tt+=Math.abs(zt-ct)),St=tt[x]?ut=rt:at<=tt[x]&&(ut=at));ut!==ot&&(z=!0,E[x].column=ut)}Uh(a,y,E),a.normalize()}function Hx(a,y){for(var x=!0,E=a.network.vertexes.iterator;E.next();){var b=E.value,z=a.nodeMinColumnSpace(b,!0),tt=a.nodeMinColumnSpace(b,!1);if(b.column-z<=y&&b.column+tt>=y){x=!1;break}}if(a=!1,x)for(E.reset();E.next();)x=E.value,x.column>y&&(--x.column,a=!0);return a}function Wx(a,y){var x=y+1,E,b=[],z=[];for(E=0;E<=a.Ia;E++)b[E]=!1,z[E]=!1;for(var tt=a.network.vertexes.iterator;tt.next();){E=tt.value;var ot=E.column-a.nodeMinColumnSpace(E,!0),rt=E.column+a.nodeMinColumnSpace(E,!1);ot<=y&&rt>=y&&(b[E.layer]=!0),ot<=x&&rt>=x&&(z[E.layer]=!0)}for(ot=!0,x=!1,E=0;E<=a.Ia;E++)ot=ot&&!(b[E]&&z[E]);if(ot)for(tt.reset();tt.next();)a=tt.value,a.column>y&&(--a.column,x=!0);return x}function $S(a,y){for(var x=0;x<=a.Ra;x++)for(;Hx(a,x););for(a.normalize(),x=0;xz?ya(a,b):tty)for(x=a.Ra;0<=x;x--)for(b=ks(a),z=x0(a),E=z+1;zz?ya(a,b):ttx)for(E.reset();E.next();)b=E.value,b.column+a.nodeMinColumnSpace(b,!1)>=y&&(b.component=a.le);for(a.le++,E.reset();E.next();)y=E.value,y.component===-1&&(my(a,y,a.le,-1,!0,!0),a.le++);var z;for(y=[],z=0;zx)for(tt=a.Ra;0x)for(E.reset();E.next();)x=E.value,b[x.component]&&(x.column+=1)}function Ux(a){for(var y=$n(),x=a.fl.length,E=0;E<=x;E++)y[E]=[];for(E=a.network.vertexes.iterator;E.next();){var b=E.value;y[x-b.layer][b.index]=b}x=new Ie,Yx(y,x);var z=null,tt=null,ot=null,rt=null,at=(a.ve&1)!==0,ut=(a.ve&2)!==0,ct=(a.ve&4)!==0,mt=(a.ve&8)!==0;for(at&&(a.verticalAlignment(y,x,!0),z=w0(a,y,!0,!1)),y.reverse(),ct&&(a.verticalAlignment(y,x,!1),ot=w0(a,y,!1,!1)),E=Gn(y),b=E.next();!b.done;b=E.next())b.value.reverse();mt&&(a.verticalAlignment(y,x,!1),rt=w0(a,y,!1,!0)),y.reverse(),ut&&(a.verticalAlignment(y,x,!0),tt=w0(a,y,!0,!0)),ei(y),a.u(z,tt,ot,rt),a.network.vertexes.each(function(yt){var St=$n();at&&St.push(z.get(yt)),ut&&St.push(tt.get(yt)),ct&&St.push(ot.get(yt)),mt&&St.push(rt.get(yt)),St.sort(function(Dt,Tt){return Dt-Tt});var Mt=St.length;Mt=(St[Math.floor((Mt-1)/2)]+St[Math.ceil((Mt-1)/2)])/2,ei(St),yt.zc=Mt})}function Yx(a,y){for(var x=a.length,E=1;Eut)&&y.add(ct);z++}b=ut}}}mi.prototype.verticalAlignment=function(a,y,x){Vx(a),a=Gn(a);for(var E=a.next();!E.done;E=a.next()){var b=-1;E=Gn(E.value);for(var z=E.next();!z.done;z=E.next()){z=z.value;var tt=x?ky(z):Qx(z),ot=tt.length;if(0=y[x].length)&&(tt=y[x][0],tt.sd===tt)){tt.sd.shift===1/0&&(tt.sd.shift=0),tt=x,ot=0;do{for(z=y[tt][ot];z.align!==z.root;)z=z.align,tt++,0a&&ee("Could not determine previous vertex in layer"),y[x][a-1]}mi.prototype.u=function(a){for(var y=[],x=0;xtt;tt++)if(y[tt]){var ot=Kx(this,y[tt],E,b,tt);ottt;z={delta:z.delta},tt++)y[tt]&&(z.delta=tt===0||tt===2?E[x]-E[tt]:b[x]-b[tt],z.delta!==0&&y[tt].each(function(rt){return function(at){at.value+=rt.delta}}(z)));ei(E),ei(b)};function Kx(a,y,x,E,b){if(!y||y.count===0)return x[b]=0,E[b]=0,1/0;var z=1/0,tt=-1/0;return y.each(function(ot){var rt=ot.key;ot=ot.value,rt=a.K===90||a.K===270?rt.width:rt.height,ottt&&(tt=ot+rt)}),x[b]=z,E[b]=tt,tt-z}mi.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=C0(this,!0),y=C0(this,!1),x=this.network.edges.iterator;x.next();){var E=x.value.link;E!==null&&(E.fromSpot=a,E.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function C0(a,y){return a.K===270?y?Rr:Lr:a.K===90?y?Lr:Rr:a.K===180?y?Ss:Ar:y?Ar:Ss}mi.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var a=0;a<=this.Ia;a++)this.he[a]=0,this.Ld[a]=0,this.Kd[a]=0,this.Ta[a]=0;for(a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;this.he[x]=Math.max(this.he[x],this.nodeMinLayerSpace(y,!0)),this.Ld[x]=Math.max(this.Ld[x],this.nodeMinLayerSpace(y,!1))}y=0,x=this.ie;for(var E=0;E<=this.Ia;E++){var b=x;0>=this.he[E]+this.Ld[E]&&(b=0),0=ct.bounds.bottom?(ct=ct.bounds.y+ct.bounds.height,y.m(Mt++,Ut,ct+ie),y.m(Mt++,Ut,ct),y.m(Mt++,Ut,ct-Ht)):(y.m(Mt++,Ut,Xt+ie),y.m(Mt++,Ut,Xt),y.m(Mt++,Ut,Xt-Ht)):this.K===270?Xt<=ct.bounds.y?(ct=ct.bounds.y,y.m(Mt++,Ut,ct-Ht),y.m(Mt++,Ut,ct),y.m(Mt++,Ut,ct+ie)):(y.m(Mt++,Ut,Xt-Ht),y.m(Mt++,Ut,Xt),y.m(Mt++,Ut,Xt+ie)):this.K===0&&(Ut>=ct.bounds.right?(ct=ct.bounds.x+ct.bounds.width,y.m(Mt++,ct+ie,Xt),y.m(Mt++,ct,Xt),y.m(Mt++,ct-Ht,Xt)):(y.m(Mt++,Ut+ie,Xt),y.m(Mt++,Ut,Xt),y.m(Mt++,Ut-Ht,Xt)));else{y.m(Mt++,Tt,zt);var We=0;this.K===180||this.K===0?((this.K===180?Ut>=ct.bounds.right:Ut<=ct.bounds.x)&&(We=(this.K===0?-Ht:ie)/2),y.m(Mt++,Tt+We,Xt)):((this.K===270?Xt>=ct.bounds.bottom:Xt<=ct.bounds.y)&&(We=(this.K===90?-Ht:ie)/2),y.m(Mt++,Ut,zt+We)),y.m(Mt++,Ut,Xt)}}else Ht=Math.max(10,this.he[Dt.layer]),ie=Math.max(10,this.Ld[Dt.layer]),mt?this.K===180?(y.m(Mt++,Ut-Ht-St,Xt),y.m(Mt++,Math.min(Ut-Ht+St/2,Ut),Xt),y.m(Mt++,Ut,Xt),y.m(Mt++,Ut,Xt),y.m(Mt++,Math.max(Ut+ie-St/2,Ut),Xt),y.m(Mt++,Ut+ie+St,Xt)):this.K===90?(y.m(Mt++,Ut,Xt+ie+St),y.m(Mt++,Ut,Math.max(Xt+ie-St/2,Xt)),y.m(Mt++,Ut,Xt),y.m(Mt++,Ut,Xt),y.m(Mt++,Ut,Math.min(Xt-Ht+St/2,Xt)),y.m(Mt++,Ut,Xt-Ht-St)):this.K===270?(y.m(Mt++,Ut,Xt-Ht-St),y.m(Mt++,Ut,Math.min(Xt-Ht+St/2,Xt)),y.m(Mt++,Ut,Xt),y.m(Mt++,Ut,Xt),y.m(Mt++,Ut,Math.max(Xt+ie-St/2,Xt)),y.m(Mt++,Ut,Xt+ie+St)):(y.m(Mt++,Ut+ie+St,Xt),y.m(Mt++,Math.max(Ut+ie-St/2,Ut),Xt),y.m(Mt++,Ut,Xt),y.m(Mt++,Ut,Xt),y.m(Mt++,Math.min(Ut-Ht+St/2,Ut),Xt),y.m(Mt++,Ut-Ht-St,Xt)):y.m(Mt++,Ut,Xt)}ct=Dt}(ot===null||at!==$o||yt)&&(Tt=y.i(Mt-1).x,zt=y.i(Mt-1).y,Ut=y.i(Mt).x,Xt=y.i(Mt).y,yt?(St=this.Ld[ut.layer],this.K===180||this.K===0?(yt=zt,yt>=ut.bounds.y&&yt<=ut.bounds.bottom&&(this.K===180?Ut>=ut.bounds.x:Ut<=ut.bounds.right)&&(ct=ut.centerX+(this.K===180?-St:St),yt=ut.bounds.x&&yt<=ut.bounds.right&&(this.K===270?Xt>=ut.bounds.y:Xt<=ut.bounds.bottom)&&(ct=ut.centerY+(this.K===270?-St:St),yt=ut.bounds.x?(ct=ut.bounds.x+ut.bounds.width,y.L(Mt-2,ct,zt),y.L(Mt-1,ct+ie,zt)):this.K===90&&Xt<=ut.bounds.bottom?(ct=ut.bounds.y,y.L(Mt-2,Tt,ct),y.L(Mt-1,Tt,ct-Ht)):this.K===270&&Xt>=ut.bounds.y?(ct=ut.bounds.y+ut.bounds.height,y.L(Mt-2,Tt,ct),y.L(Mt-1,Tt,ct+ie)):this.K===0&&Ut<=ut.bounds.right&&(ct=ut.bounds.x,y.L(Mt-2,ct,zt),y.L(Mt-1,ct-Ht,zt))):(Ht=Math.max(10,this.he[ut.layer]),ie=Math.max(10,this.Ld[ut.layer]),yt=0,this.K===180||this.K===0?((this.K===180?Ut<=ut.bounds.x:Ut>=ut.bounds.right)&&(yt=(this.K===0?ie:-Ht)/2),y.m(Mt++,Ut+yt,zt)):((this.K===270?Xt<=ut.bounds.y:Xt>=ut.bounds.bottom)&&(yt=(this.K===90?ie:-Ht)/2),y.m(Mt++,Tt,Xt+yt)),y.m(Mt++,Ut,Xt)))}else{for(;ut!==null&&ut!==ct;){for(Ht=Dt=null,ut=ut.destinationEdges.iterator;ut.next()&&(Tt=ut.value,Tt.link!==x.link||(Dt=Tt.toVertex,Ht=Tt.fromVertex,Ht.node!==null&&(Ht=null),Dt.node!==null)););if(Dt===null)break;Dt!==ct&&(Tt=y.i(Mt-1).x,zt=y.i(Mt-1).y,Ut=Dt.centerX,Xt=Dt.centerY,yt?this.K===180||this.K===0?(Ht!==null?Ht.centerY:zt)!==Xt&&(Ht=this.Ta[Dt.layer]+this.Rf.x,Mt===y.firstPickIndex+1&&(Ht=this.K===0?Math.max(Ht,Tt):Math.min(Ht,Tt)),y.m(Mt++,Ht,zt),y.m(Mt++,Ht,Xt)):(Ht!==null?Ht.centerX:Tt)!==Ut&&(Ht=this.Ta[Dt.layer]+this.Rf.y,Mt===y.firstPickIndex+1&&(Ht=this.K===90?Math.max(Ht,zt):Math.min(Ht,zt)),y.m(Mt++,Tt,Ht),y.m(Mt++,Ut,Ht)):(Ht=Math.max(10,this.he[Dt.layer]),ie=Math.max(10,this.Ld[Dt.layer]),mt?this.K===180?(y.m(Mt++,Ut+ie+St,Xt),y.m(Mt++,Math.max(Ut+ie-St/2,Ut),Xt),y.m(Mt++,Ut,Xt),y.m(Mt++,Ut,Xt),y.m(Mt++,Math.min(Ut-Ht+St/2,Ut),Xt),y.m(Mt++,Ut-Ht-St,Xt)):this.K===90?(y.m(Mt++,Ut,Xt-Ht-St),y.m(Mt++,Ut,Math.min(Xt-Ht+St/2,Xt)),y.m(Mt++,Ut,Xt),y.m(Mt++,Ut,Xt),y.m(Mt++,Ut,Math.max(Xt+ie-St/2,Xt)),y.m(Mt++,Ut,Xt+ie+St)):this.K===270?(y.m(Mt++,Ut,Xt+ie+St),y.m(Mt++,Ut,Math.max(Xt+ie-St/2,Xt)),y.m(Mt++,Ut,Xt),y.m(Mt++,Ut,Xt),y.m(Mt++,Ut,Math.min(Xt-Ht+St/2,Xt)),y.m(Mt++,Ut,Xt-Ht-St)):(y.m(Mt++,Ut-Ht-St,Xt),y.m(Mt++,Math.min(Ut-Ht+St/2,Ut),Xt),y.m(Mt++,Ut,Xt),y.m(Mt++,Ut,Xt),y.m(Mt++,Math.max(Ut+ie-St/2,Ut),Xt),y.m(Mt++,Ut+ie+St,Xt)):this.K===180?(y.m(Mt++,Ut+ie,Xt),y.m(Mt++,Ut-Ht,Xt)):this.K===90?(y.m(Mt++,Ut,Xt-Ht),y.m(Mt++,Ut,Xt+ie)):this.K===270?(y.m(Mt++,Ut,Xt+ie),y.m(Mt++,Ut,Xt-Ht)):(y.m(Mt++,Ut-Ht,Xt),y.m(Mt++,Ut+ie,Xt)))),ut=Dt}yt&&(Tt=y.i(Mt-1).x,zt=y.i(Mt-1).y,Ut=y.i(Mt).x,Xt=y.i(Mt).y,this.K===180||this.K===0?zt!==Xt&&(Ht=this.K===0?Math.min(Math.max((Ut+Tt)/2,this.Ta[ct.layer]+this.Rf.x),Ut):Math.max(Math.min((Ut+Tt)/2,this.Ta[ct.layer]+this.Rf.x),Ut),y.m(Mt++,Ht,zt),y.m(Mt++,Ht,Xt)):Tt!==Ut&&(Ht=this.K===90?Math.min(Math.max((Xt+zt)/2,this.Ta[ct.layer]+this.Rf.y),Xt):Math.max(Math.min((Xt+zt)/2,this.Ta[ct.layer]+this.Rf.y),Xt),y.m(Mt++,Tt,Ht),y.m(Mt++,Ut,Ht)))}E!==null&&mt&&4<=y.pointsCount&&(tt!==null&&(tt=at===$o?y.getLinkPointFromPoint(b,tt,tt.ga(gi),y.i(3),!0):y.i(0),at===$o&&(at=y.i(2),E=y.i(3),this.direction===90||this.direction===270?(y.L(1,(tt.x+at.x)/2,at.y),y.L(2,E.x,(at.y+E.y)/2)):(y.L(1,at.x,(tt.y+at.y)/2),y.L(2,(at.x+E.x)/2,E.y))),tt.w()||tt.set(b.actualBounds.center),y.L(0,tt.x,tt.y)),ot!==null&&(b=rt===$o?y.getLinkPointFromPoint(z,ot,ot.ga(gi),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),rt===$o&&(ot=y.i(y.pointsCount-3),rt=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(b.x+ot.x)/2,ot.y),y.L(y.pointsCount-2,rt.x,(ot.y+rt.y)/2)):(y.L(y.pointsCount-2,ot.x,(b.y+ot.y)/2),y.L(y.pointsCount-3,(ot.x+rt.x)/2,rt.y))),b.w()||b.set(z.actualBounds.center),y.L(y.pointsCount-1,b.x,b.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},mi.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new ze,y=this.network.edges.iterator;y.next();){var x=y.value.link;x!==null&&x.isOrthogonal&&!a.contains(x)&&a.add(x)}if(0z.y&&(ut=at.y>z.y?0:tt.xz.x&&(ut=at.x>z.x?0:tt.yy.layer?1:a.rdy.rd?1:a.Icy.Ic?1:0:0},wt.Ux=function(a,y){return a instanceof Yh&&y instanceof Yh&&a!==y?a.firsty.first||a.jy.j||a.rdy.rd?1:a.Icy.Ic?1:0:0},wt.Js=function(a,y){return a instanceof Yh&&y instanceof Yh&&a!==y?a.jcy.jc||a.jy.j||a.rdy.rd?1:a.Icy.Ic?1:0:0},wt.B=function(a,y){return a-=y,-1a},wt.zi=function(a,y,x,E){var b=a.length,z=E-x;if(!(1>=z))if((0>x||x>=b-1)&&ee("not in range 0 <= from < length: "+x),z===2)E=a[x],b=a[x+1],0=b)a.sort(y);else for(x=a.slice(0,E),x.sort(y),y=0;y=b)for(E=a.slice(x),E.sort(y),y=x;y=a.He.length){for(var E=[],b=0;ba&&(this.bg=a,this.C())}},alignOption:{get:function(){return this.ve},set:function(a){this.ve!==a&&0<=a&&16>a&&(this.ve=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(a){this.Cn!==a&&0<=a&&(this.Cn=a,this.C())}},maxLayer:{get:function(){return this.Ia}},maxIndex:{get:function(){return this.Iq}},maxColumn:{get:function(){return this.Ra}},minIndexLayer:{get:function(){return this.Hn}},maxIndexLayer:{get:function(){return this.Md}}});var M0=new Me(mi,"CycleDepthFirst",0),Sy=new Me(mi,"CycleGreedy",1),vp=new Me(mi,"CycleFromLayers",2),L0=new Me(mi,"LayerOptimalLinkLength",0),xy=new Me(mi,"LayerLongestPathSink",1),Py=new Me(mi,"LayerLongestPathSource",2),k0=new Me(mi,"InitDepthFirstOut",0),wy=new Me(mi,"InitDepthFirstIn",1),Cy=new Me(mi,"InitNaive",2),My=new Me(mi,"AggressiveNone",0),E0=new Me(mi,"AggressiveLess",1),Ly=new Me(mi,"AggressiveMore",2),Xx=8;mi.className="LayeredDigraphLayout",mi.CycleDepthFirst=M0,mi.CycleGreedy=Sy,mi.CycleFromLayers=vp,mi.LayerOptimalLinkLength=L0,mi.LayerLongestPathSink=xy,mi.LayerLongestPathSource=Py,mi.InitDepthFirstOut=k0,mi.InitDepthFirstIn=wy,mi.InitNaive=Cy,mi.AggressiveNone=My,mi.AggressiveLess=E0,mi.AggressiveMore=Ly,mi.PackNone=0,mi.PackExpand=1,mi.PackStraighten=2,mi.PackMedian=4,mi.PackAll=15,mi.AlignNone=0,mi.AlignUpperLeft=1,mi.AlignUpperRight=2,mi.AlignLowerLeft=4,mi.AlignLowerRight=8,mi.AlignAll=15;function Yh(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}Yh.className="SegInfo";function Oc(a){Ni.call(this,a)}ye(Oc,Ni),Oc.prototype.createVertex=function(){return new Sa(this)},Oc.prototype.createEdge=function(){return new yp(this)},Oc.className="LayeredDigraphNetwork";function Sa(a){Vo.call(this,a),this.$n=this.bo=this.ao=this.co=null,this.Za=this.Ag=this.Ig=-1,this.u=NaN,this.F=null,this.valid=!1,this.finish=this.Ll=NaN,this.Dj=0,this.dv=this.ev=null}ye(Sa,Vo);function ix(a,y){return a.index-y.index}function A0(a,y){if(!a.$n){for(var x=[],E=Gn(a.destinationEdgesArrayAccess),b=E.next();!b.done;b=E.next())b=b.value,b.valid&&x.push(b);a.$n=x}for(a=Gn(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;ee("Unable to find destination edge to given vertex")}function ky(a){if(!a.co){for(var y=[],x=Gn(a.sourceEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.fromVertex);y.sort(ix),a.co=y}return a.co}function Qx(a){if(!a.ao){for(var y=[],x=Gn(a.destinationEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.toVertex);y.sort(ix),a.ao=y}return a.ao}Sa.prototype.Cl=function(a){Vo.prototype.Cl.call(this,a),this.bo=this.co=null},Sa.prototype.Kl=function(a){Vo.prototype.Kl.call(this,a),this.bo=this.co=null},Sa.prototype.zl=function(a){Vo.prototype.zl.call(this,a),this.$n=this.ao=null},Sa.prototype.Jl=function(a){Vo.prototype.Jl.call(this,a),this.$n=this.ao=null},he.Object.defineProperties(Sa.prototype,{layer:{get:function(){return this.Ig},set:function(a){this.Ig!==a&&(this.Ig=a)}},column:{get:function(){return this.Ag},set:function(a){this.Ag!==a&&(this.Ag=a)}},index:{get:function(){return this.Za},set:function(a){this.Za!==a&&(this.Za=a)}},component:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},near:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),Sa.prototype.deleteDestinationEdge=Sa.prototype.Jl,Sa.prototype.addDestinationEdge=Sa.prototype.zl,Sa.prototype.deleteSourceEdge=Sa.prototype.Kl,Sa.prototype.addSourceEdge=Sa.prototype.Cl,Sa.className="LayeredDigraphVertex";function yp(a){Vs.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}ye(yp,Vs),he.Object.defineProperties(yp.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},valid:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},rev:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},forest:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},portFromPos:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},portToPos:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},portFromColOffset:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},portToColOffset:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),yp.className="LayeredDigraphEdge";function Yn(a){Ui.call(this),this.Ub=new Ie,this.Wn=B0,this.ud=Vl,this.vo=D0,this.Bq=jy,this.$v=[],this.td=!0,this.Rb=I0,this.$d=new Xe(10,10).freeze();var y=new Lg(this);this.W=new ba(y),this.Y=new ba(y),this.ru=[],a&&Object.assign(this,a)}ye(Yn,Ui),Yn.prototype.cloneProtected=function(a){Ui.prototype.cloneProtected.call(this,a),a.Wn=this.Wn,a.vo=this.vo,a.Bq=this.Bq,a.td=this.td,a.Rb=this.Rb,a.$d.assign(this.$d),a.W.copyInheritedPropertiesFrom(this.W),a.Y.copyInheritedPropertiesFrom(this.Y)},Yn.prototype.qb=function(a){a.classType===Yn?a.name.indexOf("Alignment")===0?this.alignment=a:a.name.indexOf("Arrangement")===0?this.arrangement=a:a.name.indexOf("Compaction")===0?this.compaction=a:a.name.indexOf("Path")===0?this.path=a:a.name.indexOf("Sorting")===0?this.sorting=a:a.name.indexOf("Style")===0?this.treeStyle=a:ee("Unknown enum value: "+a):Ui.prototype.qb.call(this,a)},Yn.prototype.createNetwork=function(){return new Lg(this)},Yn.prototype.makeNetwork=function(a){function y(E){if(E instanceof Ke)return!E.isLinkLabel&&E.category!=="Comment";if(E instanceof Ne){var b=E.fromNode;return b===null||b.isLinkLabel||b.category==="Comment"?!1:(E=E.toNode,!(E===null||E.isLinkLabel||E.category==="Comment"))}return!1}var x=this.createNetwork();return a instanceof oe?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof Fn?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},Yn.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==O0&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof oe&&(y=a),this.path===B0&&y!==null?this.ud=y.isTreePathToChildren?Vl:Cg:this.ud=this.path===B0?Vl:this.path,0y.level)return!1;a.removeChild(x.parent,x)}return!0}Yn.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,E=0,b=0;bb?hx(this,a,tt,Cn,Tt,zt):dx(this,a,tt,Cn,Tt,zt),Cn=zt.x,Tt=zt.width,zt=zt.height;break;case th:for(Ut=0;Utct&&(qelr&&(wg(a,-lr,0,Tn,ui-1),F0(Ut,-lr,0),F0(Xt,-lr,0),lr=0)}ki.S.h(lr,Qe),Tt=Math.max(Tt,ie),zt=Math.max(zt,Ht+(Ae===0?0:St)+ir.height),qe=ie}else 0ct&&(Qelr&&(wg(a,0,-lr,Tn,ui-1),F0(Ut,0,-lr),F0(Xt,0,-lr),lr=0)),ki.S.h(qe,lr),zt=Math.max(zt,We),Tt=Math.max(Tt,Ht+(Ae===0?0:St)+ir.width),Qe=We;Se++}switch(0at&&(at=0),135Mt&&(Mt=0),rt===fu&&(ot+=mt/2+a.focus.y),tt+=E+x):y?(a.comments===null?E>Tt&&(Tt=Fy(rt,E-Tt,0),tt=Tt.x,ot=Tt.y,Tt=E,at=0):Tt=Ny(a,Tt,at),0>at&&(tt-=at,at=0),135zt&&(zt=Fy(rt,0,Dt-zt),tt=zt.x,ot=zt.y,zt=Dt,Mt=0):zt=Ty(a,zt,Mt),0>Mt&&(ot-=Mt,Mt=0),tt+=E+x),0b[0].x?b[2].assign(b[1]):b[1].assign(b[2])),b[3].yb[0].x?b[3].assign(b[2]):b[2].assign(b[3])),Ae[0].h(at+E,0),Ae[1].h(Ae[0].x,Dt),Ae[2].yb[0].y?b[2].assign(b[1]):b[1].assign(b[2])),b[3].xb[0].y?b[3].assign(b[2]):b[2].assign(b[3])),Ae[0].h(0,Mt+Dt),Ae[1].h(E,Ae[0].y),Ae[2].xE?hx(a,y,b,Se,Ht,Ut):dx(a,y,b,Se,Ht,Ut),Se=Ut.x,Ht=Ut.width,Ut=Ut.height;break;case th:for(mt=0;mtmt&&(iemt&&(Wect&&(ct=0),135Tt&&(Tt=0)),y.la.h(ct,Tt),y.Da.h(Ht,Ut)}}Yn.prototype.customAlignment=function(a,y,x,E,b){return[y,x,E,b]};function hx(a,y,x,E,b,z){var tt=x.length;if(tt===0)return new de(E,0,b,z);if(tt===1)return y=x[0],b=y.Da.width,z=y.Da.height,new de(E,0,b,z);for(var ot=y.nodeSpacing,rt=y.rowSpacing,at=Za(y)===90,ut=0,ct=0,mt=0,yt=0;ytat&&(b-=at),z=Math.max(z,Math.max(yt,mt)+a+tt.height),0>x.S.x&&(E=N0(y,x.S.x,!1,E,ot))):(x.S.h(b+a,E+ot/2-x.focus.y-x.la.y),b=Math.max(b,Math.max(St,ct)+a+tt.width),mt=E+ot/2-x.focus.y-x.la.y,z=Math.max(z,mt+tt.height),0>mt&&(z-=mt),0>x.S.y&&(E=N0(y,x.S.y,!0,E,ot)))),new de(E,0,b,z)}function dx(a,y,x,E,b,z){var tt=x.length;if(tt===0)return new de(E,0,b,z);if(tt===1)return x=x[0],b=x.Da.width,z=x.Da.height,new de(E,0,b,z);for(var ot=y.nodeSpacing,rt=y.rowSpacing,at=Za(y)===270,ut=0,ct=0,mt=0,yt=0;ytct&&(b-=ct),z=Math.max(z,Math.abs(Math.min(yt,mt))+a+ut.height),0>rt.S.x&&(E=N0(y,rt.S.x,!1,E,ot))):(rt.S.h(-b-ut.width-a,E+ot/2-rt.focus.y-rt.la.y),b=Math.max(b,Math.abs(Math.min(St,ct))+a+ut.width),mt=E+ot/2-rt.focus.y-rt.la.y,z=Math.max(z,mt+ut.height),0>mt&&(z-=mt),0>rt.S.y&&(E=N0(y,rt.S.y,!0,E,ot)))),y=0;yy&&(y=x+a.width),0>x&&(y-=x),y;case Kl:return a.width>y?a.width:y;case Xl:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case $u:case Ql:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case th:return a.width-a.focus.x+a.nodeSpacing/2+y;case fu:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function Ty(a,y,x){switch(a.alignment){case Mg:case zc:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Kl:return a.height>y?a.height:y;case Xl:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case $u:case Ql:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case th:return a.height-a.focus.y+a.nodeSpacing/2+y;case fu:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Fy(a,y,x){switch(a){case zc:y/=2,x/=2;break;case Mg:y/=2,x/=2;break;case Kl:x=y=0;break;case Xl:break;default:ee("Unhandled alignment value "+a.toString())}return new jt(y,x)}function Bd(a,y,x,E,b,z){y=Fy(y,x,E),wg(a,y.x,y.y,b,z)}function wg(a,y,x,E,b){if(y!==0||x!==0)for(a=a.children;E<=b;E++){var z=a[E].S;z.x+=y,z.y+=x}}function T0(a,y,x,E){var b=y.parent;switch(a.ud){case Vl:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===b&&y.relativePoint.h(x,E);break;case Cg:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===b&&y.relativePoint.h(x,E);break;default:ee("Unhandled path value "+a.ud.toString())}}function F0(a,y,x){for(var E=0;Ect.length||yt===null||2>yt.length))for(b=x=0;xat&&z.yz.y&&aty.length||x===null||2>x.length)E=null;else{for(ut=bs(a,y.length+x.length),E=z=rt=0;zrt;)at=x[z++],ut[E++].h(at.x+b,at.y);for(x=bs(a,E),rt=0;rtct.length||z===null||2>z.length)b=null;else{for(ut=bs(a,ct.length+z.length),b=at=x=0;xz;)rt=ct[x++],ut[b++].h(rt.x,rt.y);for(z=bs(a,b),x=0;xct.length||yt===null||2>yt.length))for(b=x=0;xrt&&z.xz.x&&rty.length||x===null||2>x.length)E=null;else{for(ut=bs(a,y.length+x.length),E=z=rt=0;zrt;)at=x[z++],ut[E++].h(at.x,at.y+b);for(x=bs(a,E),rt=0;rtct.length||z===null||2>z.length)b=null;else{for(ut=bs(a,ct.length+z.length),b=at=x=0;xz;)rt=ct[x++],ut[b++].h(rt.x,rt.y);for(z=bs(a,b),x=0;x=a?0:135>=a?90:225>=a?180:315>=a?270:0}Yn.prototype.computeLayerSpacing=function(a){var y=Za(a);y=y===90||y===270;var x=a.layerSpacing;if(0=a&&(this.W.nodeIndentPastParent=a,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(a){this.W.nodeSpacing!==a&&(this.W.nodeSpacing=a,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(a){this.W.layerSpacing!==a&&(this.W.layerSpacing=a,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(a){this.W.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.W.layerSpacingParentOverlap=a,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(a){this.W.compaction===a||a!==b0&&a!==Cp||(this.W.compaction=a,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(a){this.W.breadthLimit!==a&&0<=a&&(this.W.breadthLimit=a,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(a){this.W.rowSpacing!==a&&(this.W.rowSpacing=a,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(a){this.W.rowIndent!==a&&0<=a&&(this.W.rowIndent=a,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(a){this.W.commentSpacing!==a&&(this.W.commentSpacing=a,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(a){this.W.commentMargin!==a&&(this.W.commentMargin=a,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(a){this.W.setsPortSpot!==a&&(this.W.setsPortSpot=a,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(a){this.W.portSpot.D(a)||(this.W.portSpot=a,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(a){this.W.setsChildPortSpot!==a&&(this.W.setsChildPortSpot=a,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(a){this.W.childPortSpot.D(a)||(this.W.childPortSpot=a,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(a){this.Y.sorting===a||a!==jc&&a!==xp&&a!==Pp&&!wp||(this.Y.sorting=a,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(a){this.Y.comparer!==a&&(this.Y.comparer=a,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(a){this.Y.angle===a||a!==0&&a!==90&&a!==180&&a!==270||(this.Y.angle=a,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(a){this.Y.alignment!==a&&(this.Y.alignment=a,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(a){this.Y.nodeIndent!==a&&0<=a&&(this.Y.nodeIndent=a,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(a){this.Y.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.Y.nodeIndentPastParent=a,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(a){this.Y.nodeSpacing!==a&&(this.Y.nodeSpacing=a,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(a){this.Y.layerSpacing!==a&&(this.Y.layerSpacing=a,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(a){this.Y.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.Y.layerSpacingParentOverlap=a,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(a){this.Y.compaction===a||a!==b0&&a!==Cp||(this.Y.compaction=a,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(a){this.Y.breadthLimit!==a&&0<=a&&(this.Y.breadthLimit=a,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(a){this.Y.rowSpacing!==a&&(this.Y.rowSpacing=a,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(a){this.Y.rowIndent!==a&&0<=a&&(this.Y.rowIndent=a,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(a){this.Y.commentSpacing!==a&&(this.Y.commentSpacing=a,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(a){this.Y.commentMargin!==a&&(this.Y.commentMargin=a,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(a){this.Y.setsPortSpot!==a&&(this.Y.setsPortSpot=a,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(a){this.Y.portSpot.D(a)||(this.Y.portSpot=a,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(a){this.Y.setsChildPortSpot!==a&&(this.Y.setsChildPortSpot=a,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(a){this.Y.childPortSpot.D(a)||(this.Y.childPortSpot=a,this.C())}}});var B0=new Me(Yn,"PathDefault",-1),Vl=new Me(Yn,"PathDestination",0),Cg=new Me(Yn,"PathSource",1),jc=new Me(Yn,"SortingForwards",10),xp=new Me(Yn,"SortingReverse",11),Pp=new Me(Yn,"SortingAscending",12),wp=new Me(Yn,"SortingDescending",13),zc=new Me(Yn,"AlignmentCenterSubtrees",20),Mg=new Me(Yn,"AlignmentCenterChildren",21),Kl=new Me(Yn,"AlignmentStart",22),Xl=new Me(Yn,"AlignmentEnd",23),$u=new Me(Yn,"AlignmentBus",24),Ql=new Me(Yn,"AlignmentBusBranching",25),th=new Me(Yn,"AlignmentTopLeftBus",26),fu=new Me(Yn,"AlignmentBottomRightBus",27),b0=new Me(Yn,"CompactionNone",30),Cp=new Me(Yn,"CompactionBlock",31),D0=new Me(Yn,"StyleLayered",40),by=new Me(Yn,"StyleLastParents",41),Dy=new Me(Yn,"StyleAlternating",42),Iy=new Me(Yn,"StyleRootOnly",43),I0=new Me(Yn,"ArrangementVertical",50),Oy=new Me(Yn,"ArrangementHorizontal",51),O0=new Me(Yn,"ArrangementFixedRoots",52),jy=new Me(Yn,"LayerIndividual",60),zy=new Me(Yn,"LayerSiblings",61),j0=new Me(Yn,"LayerUniform",62);Yn.className="TreeLayout",Yn.PathDefault=B0,Yn.PathDestination=Vl,Yn.PathSource=Cg,Yn.SortingForwards=jc,Yn.SortingReverse=xp,Yn.SortingAscending=Pp,Yn.SortingDescending=wp,Yn.AlignmentCenterSubtrees=zc,Yn.AlignmentCenterChildren=Mg,Yn.AlignmentStart=Kl,Yn.AlignmentEnd=Xl,Yn.AlignmentBus=$u,Yn.AlignmentBusBranching=Ql,Yn.AlignmentTopLeftBus=th,Yn.AlignmentBottomRightBus=fu,Yn.CompactionNone=b0,Yn.CompactionBlock=Cp,Yn.StyleLayered=D0,Yn.StyleLastParents=by,Yn.StyleAlternating=Dy,Yn.StyleRootOnly=Iy,Yn.ArrangementVertical=I0,Yn.ArrangementHorizontal=Oy,Yn.ArrangementFixedRoots=O0,Yn.LayerIndividual=jy,Yn.LayerSiblings=zy,Yn.LayerUniform=j0;function Lg(a){Ni.call(this,a)}ye(Lg,Ni),Lg.prototype.createVertex=function(){return new ba(this)},Lg.prototype.createEdge=function(){return new Rc(this)},Lg.className="TreeNetwork";function ba(a){Vo.call(this,a),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new jt(0,0),this.Da=new Xe(0,0),this.la=new jt(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=jc,this.hd=oy,this.Kb=0,this.Jb=Mg,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=Cp,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=rr,this.wr=!0,this.Dp=rr}ye(ba,Vo),ba.prototype.copyInheritedPropertiesFrom=function(a){a!==null&&(this.nd=a.sorting,this.hd=a.comparer,this.Kb=a.angle,this.Jb=a.alignment,this.Uq=a.nodeIndent,this.Vq=a.nodeIndentPastParent,this.Wq=a.nodeSpacing,this.ie=a.layerSpacing,this.Aq=a.layerSpacingParentOverlap,this.Hp=a.compaction,this.Ap=a.breadthLimit,this.nr=a.rowSpacing,this.mr=a.rowIndent,this.Gp=a.commentSpacing,this.Fp=a.commentMargin,this.xr=a.setsPortSpot,this.dr=a.portSpot,this.wr=a.setsChildPortSpot,this.Dp=a.childPortSpot)},he.Object.defineProperties(ba.prototype,{initialized:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},parent:{get:function(){return this.hb},set:function(a){this.hb!==a&&(this.hb=a)}},children:{get:function(){return this.u},set:function(a){if(this.u!==a){if(a!==null)for(var y=a.length,x=0;xyt.y+x.rowIndent&&(z=Math.min(z,Math.max(ct.y,z-y.computeNodeIndent(x))))):x.alignment===Kl?(z=E.top+b.y,b.y===0&&ct.yyt.x+x.rowIndent&&(z=Math.min(z,Math.max(ct.x,z-y.computeNodeIndent(x))))):x.alignment===Kl?(z=E.left+b.x,b.x===0&&ct.xyt.y+x.rowIndent&&(z=Math.min(z,Math.max(ct.y,z-y.computeNodeIndent(x))))):x.alignment===Kl?(z=E.top+b.y,b.y===0&&ct.yyt.x+x.rowIndent&&(z=Math.min(z,Math.max(ct.x,z-y.computeNodeIndent(x))))):x.alignment===Kl?(z=E.left+b.x,b.x===0&&ct.xObject.keys(yn)},16209:function(i,d,e){"use strict";e.d(d,{y:function(){return u}});var t=e(43418),r=e(95237),n=e(43604),o=e(58539),s=e(59301);const u=c=>new Promise((a,f)=>{if(window.RTCPeerConnection=window.RTCPeerConnection||window.mozRTCPeerConnection||window.webkitRTCPeerConnection,typeof window.RTCPeerConnection=="undefined")return f("WebRTC not supported by browser");let g=new RTCPeerConnection,p=[];g.createDataChannel(""),g.createOffer().then(b=>g.setLocalDescription(b)).catch(b=>f(b)),g.onicecandidate=b=>{console.log("event:",b);const h=[];if(!b||!b.candidate){if(console.log("ips",p),p.length==0||!(0,o.t)(p[0])){const R=t.default.info({title:s.createElement(r.Z,null,s.createElement(n.Z,{flex:"1"},"\u63D0\u793A"),s.createElement(n.Z,null,s.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:()=>R.destroy()}))),icon:null,width:500,className:"custom-modal-divider",content:s.createElement(r.Z,null,s.createElement(n.Z,null,"\u5F53\u524D\u8003\u8BD5\u5DF2\u542F\u7528\u9650\u5236\u8003\u8BD5\u8BBF\u95EEIP\uFF08\u9650\u5236\u516C\u5171IP+\u5185\u7F51IP\uFF09\u3002",(c.ip_limit==="inner"||c.ip_bind)&&s.createElement(s.Fragment,null,s.createElement("span",{className:"c-red"},"\uFF08\u53EA\u5141\u8BB8\u5728Chrome\u8C37\u6B4C\u6D4F\u89C8\u5668\u4F5C\u7B54\uFF0C\u5E76\u4E14\u9700\u8981\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6\uFF09"),s.createElement("br",null),s.createElement("a",{href:"https://www.educoder.net/forums/4478",target:"_blank"},"\u5982\u4F55\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6?"))))});return f("WebRTC disabled or restricted by browser")}const L=p.filter(R=>(0,o.t)(R));return!L||!L.length?f("IP\u83B7\u53D6\u5931\u8D25"):a(L.join(""))}let E=b.candidate.candidate.split(" "),[P,A,I,C,O,T,,D,...k]=E,$=["rtp","rtpc"];if(console.log("event:",b),p.some(L=>L==O)||p.push(O),console.log(" candidate: "+P.split(":")[1]),console.log(" component: "+$[A-1]),console.log(" protocol: "+I),console.log(" priority: "+C),console.log(" ip: "+O),console.log(" port: "+T),console.log(" type: "+D),k.length){console.log("attributes: ");for(let L=0;L "+k[L]+": "+k[L+1])}}})},52743:function(i,d,e){"use strict";e.d(d,{k:function(){return E}});var t=e(38650),r=e(8591),n=e(99309),o=Object.defineProperty,s=Object.defineProperties,u=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,g=(A,I,C)=>I in A?o(A,I,{enumerable:!0,configurable:!0,writable:!0,value:C}):A[I]=C,p=(A,I)=>{for(var C in I||(I={}))a.call(I,C)&&g(A,C,I[C]);if(c)for(var C of c(I))f.call(I,C)&&g(A,C,I[C]);return A},b=(A,I)=>s(A,u(I)),h=(A,I)=>{var C={};for(var O in A)a.call(A,O)&&I.indexOf(O)<0&&(C[O]=A[O]);if(A!=null&&c)for(var O of c(A))I.indexOf(O)<0&&f.call(A,O)&&(C[O]=A[O]);return C};const E=["\u8BA4\u8BC1\u4E13\u4E1A","\u8BA4\u8BC1\u5C4A\u522B"],P={namespace:"engineeringEvaluteList",state:{actionTabs:{key:"",params:{}},headerData:{dataSource:{[E[0]]:{width:235,placeholder:`\u8BF7\u9009\u62E9${E[0]}`,loading:"engineeringEvaluteList/getMajorList",dataList:[]},[E[1]]:{width:138,placeholder:`\u8BF7\u9009\u62E9${E[1]}`,loading:"engineeringEvaluteList/getYearList",dataList:[]}},active:{}},tabListData:{total:0,pageNo:1,pageSize:20,dataSource:[]}},effects:{*setActionTabs({payload:A},{call:I,put:C}){yield C({type:"save",payload:{actionTabs:p({},A)}})},*getMajorList({payload:A},{call:I,put:C,select:O}){const{userInfo:T}=yield O(D=>D.user);if(T!=null&&T.school_id){const D=yield I(t.BA,T.school_id);if(D&&D.data){const k=n.U.getItem(T==null?void 0:T.login);yield C({type:"setMajorOrYearDataSource",payload:{key:E[0],value:D.data.map($=>({label:$.name,value:$.ec_major_school_id})),active:D.data.length>0?k[0]||D.data[0].ec_major_school_id:void 0}})}}},*getYearList({payload:A},{call:I,put:C,select:O}){const T=yield I(t.Nx,A.id),{userInfo:D}=yield O(k=>k.user);if(T&&T.data){const k=n.U.getItem(D==null?void 0:D.login);yield C({type:"setMajorOrYearDataSource",payload:{key:E[1],value:T.data.map($=>({label:$.year,value:$.ec_year_id})),active:T.data.length>0?A.firstEnter?k[1]:T.data[0].ec_year_id:void 0}})}},*getCourseResults({payload:A={}},{call:I,put:C,select:O}){const{calc:T,page:D,per_page:k}=A,{headerData:$,tabListData:L}=yield O(N=>N.engineeringEvaluteList),{userInfo:R}=yield O(N=>N.user);let z=$.active[E[1]];if(z){let N={id:z,page:D||1,per_page:k||L.pageSize};T&&(N=b(p({},N),{page:L.pageNo}));const V=yield I(t._y,N),j=[$.active[E[0]],$.active[E[1]]];n.U.setItem(R==null?void 0:R.login,j),V&&V.ec_courses&&(yield C({type:"setCourseResults",payload:b(p({},L),{pageNo:N.page,total:V.count,pageSize:N.per_page||L.pageSize,dataSource:V.ec_courses.map((Y,G)=>b(p({},Y),{key:N.page>1?(N.page-1)*N.per_page+G+1:G+1}))})}))}else yield C({type:"setCourseResults",payload:b(p({},L),{pageNo:1,total:0,dataSource:[]})})},*exportCourse({payload:A},{call:I,select:C}){const{headerData:O}=yield C(T=>T.engineeringEvaluteList);O.active[E[1]]&&(yield I(t.F,O.active[E[1]]))},*compute({payload:A},{call:I,put:C}){const O=A,{all:T}=O,D=h(O,["all"]),k=yield I(T?t.At:t.PX,D);k&&k.status===0?(r.ZP.success("\u8BA1\u7B97\u5B8C\u6210"),yield C({type:"getCourseResults",payload:{calc:!0}})):r.ZP.error(k.message)}},reducers:{save(A,I){return p(p({},A),I.payload)},setMajorOrYearDataSource(A,{payload:I}){let C=A.headerData.active;return I.active&&(C=b(p({},C),{[I.key]:I.active})),b(p({},A),{headerData:b(p({},A.headerData),{dataSource:b(p({},A.headerData.dataSource),{[I.key]:b(p({},A.headerData.dataSource[I.key]),{dataList:I.value})}),active:C})})},setMajorOrYearActive(A,{payload:I}){return b(p({},A),{headerData:b(p({},A.headerData),{active:b(p({},A.headerData.active),{[I.key]:I.value})})})},setCourseResults(A,{payload:I}){return b(p({},A),{tabListData:p(p({},A.tabListData),I)})}},subscriptions:{setup({dispatch:A,history:I}){return I.listen(({pathname:C})=>{C==="/"&&A({type:"query"})})}}};d.Z=P},26422:function(i,d,e){"use strict";e.d(d,{L:function(){return c},r:function(){return f}});var t=Object.defineProperty,r=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,s=(g,p,b)=>p in g?t(g,p,{enumerable:!0,configurable:!0,writable:!0,value:b}):g[p]=b,u=(g,p)=>{for(var b in p||(p={}))n.call(p,b)&&s(g,b,p[b]);if(r)for(var b of r(p))o.call(p,b)&&s(g,b,p[b]);return g};const c=g=>g==null?void 0:g.map(p=>{const b=(p.sub_disciplines||[]).map(h=>({value:h.id,label:h.name}));return{value:p.id,label:p.name,children:b}}),a={1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D",7:"\u4E03",8:"\u516B"},f=g=>{if(!g)return;const{all_questions_count:p,all_score:b,single_questions:h,multiple_questions:E,judgement_questions:P,program_questions:A,completion_questions:I,subjective_questions:C,practical_questions:O,combination_questions:T}=g||{},k=[u({type:"SINGLE",name:"\u5355\u9009\u9898"},h),u({type:"MULTIPLE",name:"\u591A\u9009\u9898"},E),u({type:"COMPLETION",name:"\u586B\u7A7A\u9898"},I),u({type:"JUDGMENT",name:"\u5224\u65AD\u9898"},P),u({type:"SUBJECTIVE",name:"\u7B80\u7B54\u9898"},C),u({type:"PROGRAM",name:"\u7F16\u7A0B\u9898"},A),u({type:"PRACTICAL",name:"\u5B9E\u8BAD\u9898"},O),u({type:"COMBINATION",name:"\u7EC4\u5408\u9898"},T)].filter($=>$.questions_count>0).map(($,L)=>u(u({},$),{number:a[L+1]}));return{all_questions_count:p,all_score:b,questionList:k}}},99309:function(i,d,e){"use strict";e.d(d,{U:function(){return o},t:function(){return n}});var t=e(43418),r=e(24065);const n=(s,u="")=>{t.default.confirm({centered:!0,width:520,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:u,onOk:s})},o={setItem:(s,u)=>{var c;const a=s+"-engineering"+((c=(0,r.eY)())==null?void 0:c.school_id),f=JSON.stringify(u);localStorage.setItem(a,f)},getItem:s=>{var u;const c=s+"-engineering"+((u=(0,r.eY)())==null?void 0:u.school_id),a=localStorage.getItem(c);return a!==null&&a!=="[object Object]"?JSON.parse(a):[]},clear:s=>{var u;const c=s+"-engineering"+((u=(0,r.eY)())==null?void 0:u.school_id);localStorage.removeItem(c)}}},35390:function(i,d,e){"use strict";e.d(d,{$f:function(){return p},Cq:function(){return E},GY:function(){return u},I8:function(){return A},Ow:function(){return b},P:function(){return g},Ql:function(){return c},RA:function(){return O},Zm:function(){return a},bz:function(){return s},eF:function(){return P},gQ:function(){return I},ht:function(){return h},kN:function(){return T},n1:function(){return n},nI:function(){return D},o9:function(){return o},sG:function(){return f},wi:function(){return C}});var t=e(99064),r=(k,$,L)=>new Promise((R,z)=>{var N=Y=>{try{j(L.next(Y))}catch(G){z(G)}},V=Y=>{try{j(L.throw(Y))}catch(G){z(G)}},j=Y=>Y.done?R(Y.value):Promise.resolve(Y.value).then(N,V);j((L=L.apply(k,$)).next())});function n(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.login}/avatar.json`,{method:"put",body:k})})}function o(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.login}.json`,{method:"get"})})}function s(k){return r(this,null,function*(){return(0,t.ZP)("/api/add_school_applies.json",{method:"post",body:k})})}function u(k){return r(this,null,function*(){return(0,t.ZP)("/api/schools/limit_list.json",{method:"get",params:k})})}function c(k){return r(this,null,function*(){return(0,t.ZP)(`/api/schools/${k.id}/departments/for_option.json`,{method:"get",params:k})})}function a(k){return r(this,null,function*(){return(0,t.ZP)("/api/add_department_applies.json",{method:"post",body:k})})}function f(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.id}.json`,{method:"put",body:k})})}function g(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.login}/authentication_apply.json`,{method:"delete"})})}function p(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.login}/professional_auth_apply.json`,{method:"delete"})})}function b(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.id}/professional_auth_apply.json`,{method:"post",body:k})})}function h(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.id}/authentication_apply.json`,{method:"post",body:k})})}function E(k){return r(this,null,function*(){return(0,t.ZP)("/api/accounts/get_verification_code.json",{method:"get",params:k})})}function P(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.login}/phone_bind.json`,{method:"post",body:k})})}function A(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.login}/email_bind.json`,{method:"post",body:k})})}function I(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.login}/password.json`,{method:"put",body:k})})}function C(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.basicInfoId}/open_users/${k.id}.json`,{method:"delete"})})}function O(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/${k.login}/cancel_authentication.json`,{method:"post",body:k})})}function T(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/${k.login}/cancel_professional_certification.json`,{method:"post",body:k})})}function D(k,$){return r(this,null,function*(){return(0,t.ZP)(`/api/users/${k.login}/videos/${k.id}/create_subject_video.json`,{method:"post",body:$})})}},13112:function(i,d,e){"use strict";e.d(d,{An:function(){return b},TO:function(){return f},my:function(){return p},nZ:function(){return g}});var t=e(99064),r=Object.defineProperty,n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(h,E,P)=>E in h?r(h,E,{enumerable:!0,configurable:!0,writable:!0,value:P}):h[E]=P,c=(h,E)=>{for(var P in E||(E={}))o.call(E,P)&&u(h,P,E[P]);if(n)for(var P of n(E))s.call(E,P)&&u(h,P,E[P]);return h},a=(h,E,P)=>new Promise((A,I)=>{var C=D=>{try{T(P.next(D))}catch(k){I(k)}},O=D=>{try{T(P.throw(D))}catch(k){I(k)}},T=D=>D.done?A(D.value):Promise.resolve(D.value).then(C,O);T((P=P.apply(h,E)).next())});function f(h){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${h.coursesId}/inform_up.json`,{method:"post",body:c({},h)})})}function g(h){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${h.coursesId}/inform_down.json`,{method:"post",body:c({},h)})})}function p(h){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${h.coursesId}/update_informs.json`,{method:"post",body:c({},h)})})}function b(h){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${h.coursesId}/new_informs.json`,{method:"post",body:c({},h)})})}},19381:function(i,d,e){"use strict";e.d(d,{$n:function(){return P},H:function(){return E},Nm:function(){return b},Ot:function(){return h},SV:function(){return f},fc:function(){return I},mn:function(){return A},tO:function(){return p},zI:function(){return g}});var t=e(99064),r=Object.defineProperty,n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(C,O,T)=>O in C?r(C,O,{enumerable:!0,configurable:!0,writable:!0,value:T}):C[O]=T,c=(C,O)=>{for(var T in O||(O={}))o.call(O,T)&&u(C,T,O[T]);if(n)for(var T of n(O))s.call(O,T)&&u(C,T,O[T]);return C},a=(C,O,T)=>new Promise((D,k)=>{var $=z=>{try{R(T.next(z))}catch(N){k(N)}},L=z=>{try{R(T.throw(z))}catch(N){k(N)}},R=z=>z.done?D(z.value):Promise.resolve(z.value).then($,L);R((T=T.apply(C,O)).next())});function f(C){return a(this,null,function*(){return(0,t.ZP)("/api/files/public_with_course_and_project",{method:"get",params:c({},C)})})}function g(C){return a(this,null,function*(){return(0,t.ZP)("/api/files/mine_with_course_and_project.json",{method:"get",params:c({},C)})})}function p(C){return a(this,null,function*(){return(0,t.ZP)("/api/files/import.json",{method:"post",body:c({},C)})})}function b(C){return a(this,null,function*(){return(0,t.ZP)(`/api/files/${C.id}.json`,{method:"get",params:c({},C)})})}function h(C){return a(this,null,function*(){const{id:O}=C;return delete C.id,(0,t.ZP)(`/api/files/${O}.json`,{method:"put",body:c({},C)})})}function E(C){return a(this,null,function*(){return(0,t.ZP)(`/api/files/${C.id}/update_visits.json`,{method:"post"})})}function P(C){return a(this,null,function*(){return(0,t.ZP)(`/api/files/${C==null?void 0:C.id}/watch_list.json`,{method:"get",params:c({},C)})})}function A(C){return a(this,null,function*(){return(0,t.ZP)("/api/files/get_batches_publish_info.json",{method:"get",params:c({},C)})})}function I(C){return a(this,null,function*(){return(0,t.ZP)(`/api/files/${C==null?void 0:C.id}/add_file_quantity.json`,{method:"post",body:c({},C)})})}},10813:function(i,d,e){"use strict";e.d(d,{CJ:function(){return b},Mf:function(){return I},NA:function(){return P},PC:function(){return h},PP:function(){return E},YQ:function(){return A},cc:function(){return p},dI:function(){return g},yq:function(){return f}});var t=e(99064),r=Object.defineProperty,n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(C,O,T)=>O in C?r(C,O,{enumerable:!0,configurable:!0,writable:!0,value:T}):C[O]=T,c=(C,O)=>{for(var T in O||(O={}))o.call(O,T)&&u(C,T,O[T]);if(n)for(var T of n(O))s.call(O,T)&&u(C,T,O[T]);return C},a=(C,O,T)=>new Promise((D,k)=>{var $=z=>{try{R(T.next(z))}catch(N){k(N)}},L=z=>{try{R(T.throw(z))}catch(N){k(N)}},R=z=>z.done?D(z.value):Promise.resolve(z.value).then($,L);R((T=T.apply(C,O)).next())});function f(C){return a(this,null,function*(){return(0,t.ZP)("/api/courses/board_list.json",{method:"get",params:c({},C)})})}function g(C){return a(this,null,function*(){return(0,t.ZP)(`/api/messages/${C.boardId}.json`,{method:"get",params:c({},C)})})}function p(C){return a(this,null,function*(){return(0,t.ZP)(`/api/messages/${C.id}/sticky_top.json`,{method:"put",body:{course_id:C.coursesId}})})}function b(C){return a(this,null,function*(){return(0,t.ZP)(`/api/messages/${C.id}/sticky_top.json`,{method:"put",body:{course_id:C.coursesId}})})}function h(C){return a(this,null,function*(){return(0,t.ZP)(`/api/messages/${C.boardId}/reply_list.json`,{method:"get",params:c({},C)})})}function E(C){return a(this,null,function*(){return(0,t.ZP)(`/api/messages/${C.boardId}/reply.json`,{method:"post",body:c({},C)})})}function P(C){return a(this,null,function*(){return(0,t.ZP)("/api/praise_tread/like.json",{method:"post",body:c({},C)})})}function A(C){return a(this,null,function*(){return(0,t.ZP)("/api/praise_tread/unlike.json",{method:"delete",body:c({},C)})})}function I(C){return a(this,null,function*(){return(0,t.ZP)("/api/commons/delete.json",{method:"delete",body:c({},C)})})}},92365:function(i,d,e){"use strict";e.d(d,{$T:function(){return mt},A:function(){return Gt},Ab:function(){return sn},Al:function(){return Y},BQ:function(){return Be},BR:function(){return j},Bn:function(){return je},Cq:function(){return yr},DJ:function(){return ee},Dd:function(){return h},Ds:function(){return tt},EO:function(){return me},Ed:function(){return ae},Ew:function(){return Ra},FU:function(){return Le},Fg:function(){return E},GV:function(){return ze},Gk:function(){return R},Gm:function(){return yt},Gz:function(){return P},Hl:function(){return A},Hn:function(){return T},ID:function(){return Qr},IU:function(){return Zt},J2:function(){return ve},K$:function(){return Tt},KP:function(){return le},KT:function(){return B},L$:function(){return et},Lk:function(){return ba},Ls:function(){return Z},MA:function(){return Ge},Mc:function(){return Kn},N7:function(){return V},Nd:function(){return L},Nl:function(){return st},Ns:function(){return on},O3:function(){return H},Pj:function(){return ot},QX:function(){return ft},QZ:function(){return M},R2:function(){return N},Rk:function(){return Ir},S9:function(){return Je},U8:function(){return tr},UD:function(){return hr},U_:function(){return k},Uy:function(){return Nr},V8:function(){return O},Vw:function(){return Q},W0:function(){return ce},W7:function(){return Xe},WK:function(){return Wt},Wr:function(){return rr},YR:function(){return xt},Z0:function(){return nt},ZL:function(){return wt},ZT:function(){return en},ZX:function(){return Ee},Zj:function(){return Ya},_9:function(){return St},_B:function(){return Bn},aP:function(){return lt},aQ:function(){return ge},aZ:function(){return Ke},al:function(){return jt},bm:function(){return kr},bz:function(){return xe},c_:function(){return Sr},ds:function(){return fr},fN:function(){return Ft},fr:function(){return ke},g4:function(){return He},gq:function(){return I},hf:function(){return J},i:function(){return or},i6:function(){return Ue},i7:function(){return Wr},iE:function(){return f},ih:function(){return we},kW:function(){return pe},km:function(){return ur},nP:function(){return p},nQ:function(){return Ce},nX:function(){return Dt},oM:function(){return Pt},oR:function(){return gn},o_:function(){return qe},pf:function(){return sr},pr:function(){return dn},pv:function(){return Ze},qB:function(){return G},rS:function(){return C},s:function(){return br},sb:function(){return Ne},sm:function(){return b},t1:function(){return rt},tB:function(){return Jr},tI:function(){return Oa},td:function(){return it},uh:function(){return Re},up:function(){return Vt},v2:function(){return g},vV:function(){return Rt},w9:function(){return $},wR:function(){return Me},yS:function(){return ct},yV:function(){return z},yd:function(){return Te},zC:function(){return la},zg:function(){return K}});var t=e(99064),r=Object.defineProperty,n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(Ae,Nn,ta)=>Nn in Ae?r(Ae,Nn,{enumerable:!0,configurable:!0,writable:!0,value:ta}):Ae[Nn]=ta,c=(Ae,Nn)=>{for(var ta in Nn||(Nn={}))o.call(Nn,ta)&&u(Ae,ta,Nn[ta]);if(n)for(var ta of n(Nn))s.call(Nn,ta)&&u(Ae,ta,Nn[ta]);return Ae},a=(Ae,Nn,ta)=>new Promise((Sa,Ja)=>{var qa=yn=>{try{Ia(ta.next(yn))}catch(bn){Ja(bn)}},Wn=yn=>{try{Ia(ta.throw(yn))}catch(bn){Ja(bn)}},Ia=yn=>yn.done?Sa(yn.value):Promise.resolve(yn.value).then(qa,Wn);Ia((ta=ta.apply(Ae,Nn)).next())});const f=Ae=>a(void 0,null,function*(){return(0,t.ZP)(`/api/courses/${Ae==null?void 0:Ae.course_id}/course_videos/configs.json`,{method:"put",body:Ae})}),g=Ae=>a(void 0,null,function*(){return(0,t.ZP)(`/api/courses/${Ae==null?void 0:Ae.course_id}/course_videos/list_for_config.json`,{method:"Get",params:Ae})}),p=Ae=>a(void 0,null,function*(){return(0,t.ZP)(`/api/courses/${Ae==null?void 0:Ae.course_id}/homework_commons/max_late_time.json`,{method:"Get",params:Ae})}),b=Ae=>a(void 0,null,function*(){return(0,t.ZP)(`/api/courses/${Ae==null?void 0:Ae.course_id}/homework_commons/batch_late_setting`,{method:"post",body:Ae})}),h=Ae=>a(void 0,null,function*(){return(0,t.ZP)("/api/course_statistics/course_use_infos.json",{method:"Get",params:Ae})}),E=Ae=>a(void 0,null,function*(){return(0,t.ZP)("/api/course_statistics/rank_list.json",{method:"Get",params:Ae})}),P=Ae=>a(void 0,null,function*(){return(0,t.ZP)("/api/course_statistics/statistics_body.json",{method:"Get",params:Ae})}),A=Ae=>a(void 0,null,function*(){return(0,t.ZP)("/api/course_statistics/statistics_header.json",{method:"Get",params:Ae})});function I(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.course_id}/set_assistant_permissions.json`,{method:"post",body:c({},Ae.permissions)})})}function C(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.course_id}/assistant_permissions.json`,{method:"Get",params:c({},Ae)})})}function O(Ae){return a(this,null,function*(){return(0,t.ZP)("/api/courses.json",{method:"Get",params:c({},Ae)})})}function T(Ae){return a(this,null,function*(){return(0,t.ZP)("/api/intelligent_recommendations/according_course_recommend_shixuns.json",{method:"Get",params:c({},Ae)})})}function D(Ae){return a(this,null,function*(){return Fetch("/api/disciplines.json",{method:"Get",params:c({},Ae)})})}function k(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.id}/top_banner.json`,{method:"get",params:c({},Ae)})})}function $(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.id||Ae.coursesId}/left_banner.json`,{method:"get",params:c({},Ae)})})}function L(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.id}/homework_commons.json`,{method:"get",params:c({},Ae)})})}function R(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.id}/homework_commons/list.json`,{method:"get",params:c({},Ae)})})}function z(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.id}/graduation_topics.json`,{method:"get",params:c({},Ae)})})}function N(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.id}/graduation_tasks.json`,{method:"get",params:c({},Ae)})})}function V(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/v2/courses/${Ae.id}/exercises.json`,{method:"get",params:c({},Ae)})})}function j(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.id}/polls.json`,{method:"get",params:c({},Ae)})})}function Y(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.id}/homework_commons.json`,{method:"get",params:c({},Ae)})})}function G(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.id}/course_groups.json`,{method:"get",params:c({},Ae)})})}function J(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.id}/all_course_groups.json`,{method:"get",params:c({},Ae)})})}function Q(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.id}/attendances.json`,{method:"get",params:c({},Ae)})})}function Z(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/weapps/courses/${Ae.coursesId}/attendances.json`,{method:"get",params:c({},Ae)})})}function K(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/attendances/${Ae.id}/edit.json`,{method:"get",params:c({},Ae)})})}function M(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.id}/informs.json`,{method:"get",params:c({},Ae)})})}function B(Ae){return a(this,null,function*(){return(0,t.ZP)("/api/files.json",{method:"get",params:c({},Ae)})})}function H(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.id}/course_videos.json`,{method:"get",params:c({},Ae)})})}function ee(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.id}/live_links.json`,{method:"get",params:c({},Ae)})})}function ae(Ae){return a(this,null,function*(){return(0,t.ZP)("/api/courses/mine.json",{method:"get",params:c({},Ae)})})}function le(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/boards/${Ae.categoryId}/messages.json`,{method:"get",params:c({},Ae)})})}function pe(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.id}/course_groups.json`,{method:"get",params:c({},Ae)})})}function ve(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.id}/students.json`,{method:"get",params:c({},Ae)})})}function He(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/statistics.json`,{method:"get",params:c({},Ae)})})}function ze(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/work_score.json`,{method:"get",params:c({},Ae)})})}function rt(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/act_score.json`,{method:"get",params:c({},Ae)})})}function ot(Ae){return a(this,null,function*(){return(0,t.ZP)("/api/shixun_lists.json",{method:"get",params:c({},Ae)})})}function yt(Ae){return a(this,null,function*(){return(0,t.ZP)("/api/item_banks.json",{method:"get",params:c({},Ae)})})}function St(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae==null?void 0:Ae.course_id}/homework_commons/impersonal_list.json`,{method:"get",params:c({},Ae)})})}function ge(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/homework_commons/create_shixun_homework.json`,{method:"post",body:c({},Ae)})})}function Be(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae==null?void 0:Ae.course_id}/homework_commons/create_collaborators.json`,{method:"post",body:c({},Ae)})})}function Xe(Ae){return a(this,null,function*(){return(0,t.ZP)("/api/subject_lists.json",{method:"get",params:c({},Ae)})})}function tt(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/homework_commons/create_subject_homework.json`,{method:"post",body:c({},Ae)})})}function Tt(Ae){return a(this,null,function*(){return(0,t.ZP)("/api/schools/school_list.json",{method:"get",params:Ae})})}function Pt(Ae){return a(this,null,function*(){return(0,t.ZP)("/api/courses/search_course_list.json",{method:"post",body:Ae})})}function je(Ae){return a(this,null,function*(){return(0,t.ZP)("/api/courses.json",{method:"post",body:Ae})})}function xe(Ae){return a(this,null,function*(){return(0,t.ZP)("/api/add_school_applies.json",{method:"post",body:Ae})})}function Ce(Ae){return a(this,null,function*(){return(0,t.ZP)("/api/users/member_search.json",{method:"get",params:Ae})})}function Le(Ae){return a(this,null,function*(){return(0,t.ZP)("/api/courses/search_all.json",{method:"get",params:Ae})})}function Re(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/add_teacher.json`,{method:"post",body:Ae})})}function Ke(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/add_students_by_search.json`,{method:"post",body:Ae})})}function Ne(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/set_public_or_private.json`,{method:"post",body:Ae})})}function et(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/set_invite_code_halt.json`,{method:"post",body:Ae})})}function Je(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/duplicate_course.json`,{method:"post",body:Ae})})}function jt(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/update_end_date.json`,{method:"put",body:Ae})})}function Gt(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}.json`,{method:"delete",body:Ae})})}function me(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/settings.json`,{method:"get",params:c({},Ae)})})}function ke(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}.json`,{method:"put",body:Ae})})}function xt(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/export_couser_info.json`,{method:"get",params:{export:!0}})})}function ct(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/export_member_act_score_async.json`,{method:"get",params:c({export:!0},Ae)})})}function ft(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/export_total_homework_commons_score.json`,{method:"get",params:c({export:!0},Ae)})})}function st(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/export_total_exercises_and_other_score.json`,{method:"get",params:c({export:!0},Ae)})})}function Zt(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/export_star_user.json`,{method:"get",params:c({export:!0},Ae)})})}function it(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/export_mooc_records.json`,{method:"get",params:c({export:!0},Ae)})})}function ce(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/export_total_course_score.json`,{method:"get",params:c({export:!0},Ae)})})}function lt(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Ae.categoryId}/export_scores.json`,{method:"get",params:c({export:!0},Ae)})})}function qe(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Ae.categoryId}/export_shixun_report.json`,{method:"get",params:c({export:!0},Ae)})})}function wt(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ae.categoryId}/export_exercise_users.json`,{method:"get",params:c({export:!0},Ae)})})}function Rt(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ae.categoryId}/export_exercise_word.json`,{method:"get",params:c({export:!0},Ae)})})}function vr(Ae){return a(this,null,function*(){return Fetch(`/api/homework_commons/${Ae.categoryId}/works_list.zip`,{method:"get",params:c({export:!0},Ae)})})}function nt(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api//course_second_categories/${Ae.id}.json`,{method:"delete",params:{export:!0}})})}function or(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api//boards/${Ae.id}.json`,{method:"delete",params:{export:!0}})})}function Te(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/course_modules/${Ae.id}/sticky_module.json`,{method:"get"})})}function Dt(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/course_modules/${Ae.id}/hidden_module.json`,{method:"get"})})}function sr(Ae){return a(this,null,function*(){return(0,t.ZP)("/api/courses/new.json",{method:"get",params:Ae})})}function fr(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/weapps/attendances/${Ae.id}.json`,{method:"get",params:Ae})})}function kr(Ae){return a(this,null,function*(){return(0,t.ZP)("/api/weapps/course_member_attendances.json",{method:"get",params:Ae})})}function hr(Ae){return a(this,null,function*(){return(0,t.ZP)("/api/weapps/course_member_attendances/update_status.json",{method:"post",body:Ae})})}function _r(Ae){return a(this,null,function*(){return Fetch(`/api/polls/${Ae.categoryId}/commit_result.xlsx`,{method:"get",params:c({export:!0},Ae)})})}function Nr(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ae.categoryId}/export_scores.json`,{method:"get",params:c({export:!0},Ae)})})}function Wr(Ae){return(0,t.ZP)(`/api/polls/${Ae.categoryId}/start_answer.json`,{method:"get",params:c({},Ae)})}function Qr(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/poll_questions/${Ae.questionId}/poll_votes.json`,{method:"post",body:Ae})})}function on(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/polls/${Ae.categoryId}/commit_poll.json`,{method:"post",body:Ae})})}function ur(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.courseId}/tasks_list.json`,{method:"get",params:Ae})})}function tr(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.courseId}/update_task_position.json`,{method:"post",body:Ae})})}function Vt(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/calculate_all_shixun_scores.json`,{method:"get",params:Ae})})}function Sr(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/all_course_groups.json`,{method:"get",params:Ae})})}function yr(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/polls/all_course_groups.json`,{method:"get",params:Ae})})}function Ir(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/students.json`,{method:"get",params:Ae})})}function mt(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/course_groups/${Ae.categoryId}/rename_group.json`,{method:"POST",body:Ae})})}function Ze(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/course_groups/${Ae.categoryId}.json`,{method:"delete",body:Ae})})}function Ue(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/join_course_group.json`,{method:"POST",body:Ae})})}function Me(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/transfer_to_course_group.json`,{method:"post",body:Ae})})}function Ge(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/delete_from_course.json`,{method:"post",body:Ae})})}function Wt(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/join_course_group.json`,{method:"post",body:Ae})})}function Ft(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/exit_course.json`,{method:"post"})})}function Ee(Ae){return a(this,null,function*(){return(0,t.ZP)("/api/weapps/course_member_attendances.json",{method:"post",body:c({},Ae)})})}function we(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/mooc_users/${Ae.user_id}/edit.json`,{method:"get",params:Ae})})}function br(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/mooc_users.json`,{method:"post",body:Ae})})}function Jr(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/mooc_users/${Ae.user_id}.json`,{method:"put",body:Ae})})}function rr(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/course_second_categories/${Ae.id}/move_category.json`,{method:"post",body:Ae})})}function sn(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/boards/${Ae.id}/move_category.json`,{method:"post",body:Ae})})}function en(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.id}/courseware.json`,{method:"get",params:Ae})})}function dn(Ae,Nn){return a(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ae}/mark_wrong_topic.json`,{method:"get",params:Nn})})}function Bn(Ae,Nn){return a(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ae}/cancel_wrong_topic.json`,{method:"get",params:Nn})})}function gn(Ae,Nn){return a(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Ae}/allow_end_group.json`,{method:"get",params:Nn})})}function Kn(Ae,Nn){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae}/homework_commons/end_with_homework_list_position.json`,{method:"post",body:Nn})})}function ba(Ae,Nn){return a(this,null,function*(){return(0,t.ZP)(`/api/tasks/${Ae}/get_content_for_commit_id.json`,{method:"get",params:Nn})})}function Oa(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.course_id}/course_ai_info.json`,{method:"Get",params:c({},Ae)})})}function la(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.course_id}/set_open_ai.json`,{method:"post",body:Ae})})}function Ra(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae==null?void 0:Ae.id}/smart_plans.json`,{method:"get",params:c({},Ae)})})}function Ya(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae==null?void 0:Ae.id}/smart_plans.json`,{method:"post",body:c({},Ae)})})}},52721:function(i,d,e){"use strict";e.d(d,{$M:function(){return yt},$P:function(){return jt},Ax:function(){return g},Dh:function(){return A},FU:function(){return R},GQ:function(){return Q},IN:function(){return xe},JM:function(){return Ke},Ju:function(){return ot},Mn:function(){return je},Ni:function(){return H},Pg:function(){return I},Pt:function(){return P},Qp:function(){return G},R9:function(){return z},Ux:function(){return J},Vy:function(){return pe},XJ:function(){return B},XR:function(){return ze},Ze:function(){return D},aq:function(){return T},bQ:function(){return h},bu:function(){return p},cC:function(){return f},jS:function(){return V},lm:function(){return Ce},ml:function(){return K},o3:function(){return ge},pA:function(){return Xe},pS:function(){return Re},pU:function(){return M},ps:function(){return L},q0:function(){return Tt},qN:function(){return Pt},qS:function(){return E},qj:function(){return He},qt:function(){return et},rV:function(){return C},rZ:function(){return Ne},rk:function(){return ae},rm:function(){return Y},sK:function(){return j},sL:function(){return tt},su:function(){return Le},tC:function(){return le},tO:function(){return ve},u9:function(){return Z},uZ:function(){return ee},vV:function(){return $},xx:function(){return Gt},y8:function(){return rt},yS:function(){return k},zF:function(){return b},zc:function(){return N},zj:function(){return O},zz:function(){return Je}});var t=e(99064),r=Object.defineProperty,n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(me,ke,xt)=>ke in me?r(me,ke,{enumerable:!0,configurable:!0,writable:!0,value:xt}):me[ke]=xt,c=(me,ke)=>{for(var xt in ke||(ke={}))o.call(ke,xt)&&u(me,xt,ke[xt]);if(n)for(var xt of n(ke))s.call(ke,xt)&&u(me,xt,ke[xt]);return me},a=(me,ke,xt)=>new Promise((ct,ft)=>{var st=ce=>{try{it(xt.next(ce))}catch(lt){ft(lt)}},Zt=ce=>{try{it(xt.throw(ce))}catch(lt){ft(lt)}},it=ce=>ce.done?ct(ce.value):Promise.resolve(ce.value).then(st,Zt);it((xt=xt.apply(me,ke)).next())});const f=me=>(0,t.ZP)(`/api/competitions/${me.identifier}/create_guide.json`,{method:"post",body:me}),g=me=>(0,t.ZP)(`/api/competitions/${me.identifier}/guides.json`,{method:"get",params:me}),p=me=>(0,t.ZP)(`/api/competitions/${me.identifier}/competition_teams/${me.competition_team_id}/edit_info.json`,{method:"put",body:me});function b(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/update_result.json`,{method:"post",body:me})})}function h(me){return a(this,null,function*(){return(0,t.ZP)("/api/competitions.json",{method:"Get",params:c({},me)})})}function E(me){return a(this,null,function*(){return(0,t.ZP)("/api/courses/apply_to_join_course.json",{method:"post",body:me})})}function P(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/competition_teams.json`,{method:"post"})})}function A(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/competition_staff.json`,{method:"get"})})}function I(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/common_header.json`,{method:"get"})})}function C(me){return a(this,null,function*(){return(0,t.ZP)(`/api/${me.url}`,{method:"get",params:c({},me)})})}function O(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/update_md_content.json`,{method:"post",body:me})})}function T(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/competition_teams.json`,{method:"get",params:me})})}function D(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/competition_teams/${me.Teannameid}/edit.json`,{method:"get",params:me})})}function k(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/competition_teams/${me.Teannameid}.json`,{method:"put",body:me})})}function $(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/competition_teams/${me.id}/leave.json`,{method:"post",body:me})})}function L(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/competition_teams/${me.id}.json`,{method:"delete"})})}function R(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/competition_teams.json`,{method:"post",body:me})})}function z(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.id}/add_managers.json`,{method:"post",body:me})})}function N(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/competition_teams/join.json`,{method:"post",body:me})})}function V(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/teachers.json`,{method:"get",params:me})})}function j(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/students.json`,{method:"get",params:me})})}function Y(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/competition_teams/${me.teamid}/crud_team_members.json`,{method:"post",body:me})})}function G(me){return a(this,null,function*(){return(0,t.ZP)("/api/users/competition_reward.json",{method:"post",body:me})})}function J(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/chart_rules.json`,{method:"get"})})}function Q(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/charts.json`,{method:"get",params:me})})}function Z(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/results.json`,{method:"get",params:me})})}function K(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/md_tab_rules.json`,{method:"get",params:me})})}function M(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/prize.json`,{method:"get",params:me})})}function B(me){return a(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${me.id}.json`,{method:"get",params:me})})}function H(me){return a(this,null,function*(){return(0,t.ZP)("/api/accounts/get_verification_code.json",{method:"get",params:me})})}function ee(me){return a(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${me.userid}/phone_bind.json`,{method:"post",body:me})})}function ae(me){return a(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${me.userid}/email_bind.json`,{method:"post",body:me})})}function le(me){return a(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${me.userid}/professional_auth_apply.json`,{method:"delete"})})}function pe(me){return a(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${me.userid}/authentication_apply.json`,{method:"delete"})})}function ve(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/prize_leader_account.json`,{method:"put",body:me})})}function He(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/competition_teams/${me.teamid}/shixun_detail.json`,{method:"get"})})}function ze(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/competition_teams/${me.teamid}/course_detail.json`,{method:"get"})})}function rt(me){return a(this,null,function*(){return(0,t.ZP)(`/api/attachments/${me.id}.json`,{method:"delete"})})}function ot(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.id}/get_certificate_info.json`,{method:"get",params:me})})}function yt(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.id}/basic_setting.json`,{method:"post",body:me})})}function St(){return a(this,null,function*(){return Fetch("/api/competitions/download_template",{method:"get",responseType:"arraybuffer"})})}function ge(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me}/common_header.json`,{method:"get"})})}function Be(me){return a(this,null,function*(){return Fetch("/api/competitions.json",{method:"post",body:me})})}function Xe(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me==null?void 0:me.id}/search_managers.json`,{method:"get",params:me})})}function tt(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me}/get_managers.json`,{method:"get"})})}function Tt(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me==null?void 0:me.id}/add_managers.json`,{method:"post",body:me})})}function Pt(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me==null?void 0:me.id}/delete_managers.json`,{method:"delete",body:me})})}function je(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me}/get_picture.json`,{method:"get"})})}function xe(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me==null?void 0:me.id}/identifier_exist.json`,{method:"post",body:me})})}function Ce(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me}/get_shixun_settings.json`,{method:"get"})})}function Le(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me==null?void 0:me.id}/shixun_add.json`,{method:"post",body:me})})}function Re(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me==null?void 0:me.id}/shixun_delete.json`,{method:"delete",body:me})})}function Ke(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me==null?void 0:me.id}/shixun_select.json`,{method:"post",body:me})})}function Ne(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me}/info_finish.json`,{method:"get"})})}function et(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me==null?void 0:me.id}/competition_review.json`,{method:"post",body:c({},me)})})}function Je(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/competition_teams.json`,{method:"get",params:me})})}function jt(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/all_team_members.json`,{method:"get",params:me})})}function Gt(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/competition_commit_records/member_works.json`,{method:"get",params:me})})}},38650:function(i,d,e){"use strict";e.d(d,{F:function(){return E},OE:function(){return O},ff:function(){return P},p1:function(){return A},_y:function(){return h},mK:function(){return $},gq:function(){return R},eM:function(){return k},BA:function(){return V},bA:function(){return Y},Nx:function(){return j},Qx:function(){return T},At:function(){return I},PX:function(){return C},Xl:function(){return D},y9:function(){return L},No:function(){return z},ay:function(){return G}});var t=e(99064),r=Object.defineProperty,n=Object.defineProperties,o=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,a=(J,Q,Z)=>Q in J?r(J,Q,{enumerable:!0,configurable:!0,writable:!0,value:Z}):J[Q]=Z,f=(J,Q)=>{for(var Z in Q||(Q={}))u.call(Q,Z)&&a(J,Z,Q[Z]);if(s)for(var Z of s(Q))c.call(Q,Z)&&a(J,Z,Q[Z]);return J},g=(J,Q)=>n(J,o(Q)),p=(J,Q)=>{var Z={};for(var K in J)u.call(J,K)&&Q.indexOf(K)<0&&(Z[K]=J[K]);if(J!=null&&s)for(var K of s(J))Q.indexOf(K)<0&&c.call(J,K)&&(Z[K]=J[K]);return Z},b=(J,Q,Z)=>new Promise((K,M)=>{var B=ae=>{try{ee(Z.next(ae))}catch(le){M(le)}},H=ae=>{try{ee(Z.throw(ae))}catch(le){M(le)}},ee=ae=>ae.done?K(ae.value):Promise.resolve(ae.value).then(B,H);ee((Z=Z.apply(J,Q)).next())});const h=J=>b(void 0,null,function*(){var Q=J,{id:Z}=Q,K=p(Q,["id"]);return(0,t.ZP)(`/api/ec_years/${Z}/course_results.json`,{method:"get",params:K})}),E=J=>{let Q=document.createElement("iframe");Q.src=`/api/ec_years/${J}/course_results.xlsx`,Q.style.display="none",document.body.appendChild(Q)},P=({ec_year_id:J})=>(0,t.ZP)(`/api/ec_years/${J}/course_results/get_class.json`,{method:"get"}),A=({ec_year_id:J,id:Q,class_name:Z=null})=>(0,t.ZP)(`/api/ec_years/${J}/course_results/${Q}.json`,{method:"get",params:{class_name:Z}}),I=({ec_year_id:J})=>(0,t.ZP)("/api/ec_courses/1/evaluations/compute_all_courses_data",{method:"post",body:{ec_year_id:J}}),C=({ec_course_id:J})=>(0,t.ZP)(`/api/ec_courses/${J}/evaluations/evaluation_data`,{method:"POST"}),O=J=>{let Q=document.createElement("iframe");Q.src=`/api/ec_years/${J}/ec_graduation_results.xlsx`,Q.style.display="none",document.body.appendChild(Q)},T=({ec_year_id:J})=>(0,t.ZP)(`/api/ec_years/${J}/ec_graduation_results/compute_all`,{method:"post"}),D=({ec_year_id:J,id:Q})=>(0,t.ZP)(`/api/ec_years/${J}/ec_graduation_results/compute_single?id=${Q}`,{method:"POST"}),k=J=>(0,t.ZP)(`/api/ec_years/${J}/ec_graduation_results.json`,{method:"get"}),$=J=>(0,t.ZP)(`/api/ec_years/${J}/ec_graduation_results/get_formulas.json`,{method:"get"}),L=({ec_year_id:J,formula_one:Q,formula_two:Z,formula_three:K})=>(0,t.ZP)(`/api/ec_years/${J}/ec_graduation_results/set_formulas.json`,{method:"PUT",body:{formula_one_id:Q,formula_two_id:Z,formula_three_id:K}}),R=({ec_year_id:J,id:Q})=>(0,t.ZP)(`/api/ec_years/${J}/ec_graduation_results/${Q}.json`,{method:"get"}),z=J=>{var Q=J,{ec_year_id:Z,type:K,goal_value:M}=Q,B=p(Q,["ec_year_id","type","goal_value"]);let H=`?type=${K}`,ee={method:"PUT"};return K==="all"&&(H+=`&goal_value=${M}`),K==="each"&&(ee=g(f({},ee),{body:B})),(0,t.ZP)(`/api/ec_years/${Z}/ec_graduation_results/set_goal_value${H}`,ee)};var N=(J,Q,Z)=>new Promise((K,M)=>{var B=ae=>{try{ee(Z.next(ae))}catch(le){M(le)}},H=ae=>{try{ee(Z.throw(ae))}catch(le){M(le)}},ee=ae=>ae.done?K(ae.value):Promise.resolve(ae.value).then(B,H);ee((Z=Z.apply(J,Q)).next())});const V=J=>N(void 0,null,function*(){return(0,t.ZP)(`/api/schools/${J}/ec_majors/get_major_list.json`,{method:"get"})}),j=J=>N(void 0,null,function*(){return(0,t.ZP)(`/api/ec_major_schools/${J}/ec_years/get_year_list.json`,{method:"get"})}),Y=({ec_year_id:J,school_id:Q})=>(0,t.ZP)(`/api/ec_years/${J}/top_pages.json`,{method:"get",params:{school_id:Q}}),G=({id:J,name:Q})=>(0,t.ZP)(`/api/ec_years/1/top_pages/${J}?name=${Q}`,{method:"PUT"})},94941:function(i,d,e){"use strict";e.d(d,{$Q:function(){return O},$l:function(){return Ft},BJ:function(){return Pt},CD:function(){return ke},Cd:function(){return et},Cl:function(){return _r},Di:function(){return St},Fl:function(){return Xe},G$:function(){return K},GK:function(){return Be},Ip:function(){return Ce},J:function(){return M},KE:function(){return tt},L8:function(){return it},LP:function(){return Le},MK:function(){return ge},Mb:function(){return ur},N0:function(){return L},N3:function(){return ve},OO:function(){return I},P8:function(){return Ir},PJ:function(){return H},PT:function(){return Vt},Qc:function(){return z},RK:function(){return Z},Ty:function(){return fr},UH:function(){return vr},UK:function(){return He},Uj:function(){return Gt},Ul:function(){return Ne},VL:function(){return ft},Vj:function(){return lt},W4:function(){return jt},WL:function(){return qe},Wj:function(){return Q},X4:function(){return xe},Xn:function(){return Qr},Xo:function(){return V},YY:function(){return yt},Ym:function(){return k},Yu:function(){return mt},ZD:function(){return yr},Zg:function(){return Nr},_B:function(){return me},_F:function(){return tr},_U:function(){return Y},_u:function(){return ee},aU:function(){return $},ab:function(){return hr},cC:function(){return sr},cV:function(){return G},ck:function(){return Sr},dp:function(){return R},eA:function(){return Ge},fG:function(){return P},gA:function(){return J},gG:function(){return on},gJ:function(){return Ze},hk:function(){return b},hv:function(){return h},iB:function(){return E},iU:function(){return A},iw:function(){return Dt},kp:function(){return st},lL:function(){return C},lf:function(){return pe},n$:function(){return le},n7:function(){return j},nF:function(){return ce},o3:function(){return Ue},oS:function(){return Re},oX:function(){return ct},oy:function(){return kr},p7:function(){return D},pL:function(){return xt},pu:function(){return je},q6:function(){return Zt},qf:function(){return ot},qz:function(){return Ke},s:function(){return or},sA:function(){return wt},sS:function(){return Me},tX:function(){return nt},uR:function(){return ze},ux:function(){return Tt},wy:function(){return rt},xA:function(){return Te},yE:function(){return N},yu:function(){return Rt},zP:function(){return T},zR:function(){return Wt}});var t=e(99064),r=Object.defineProperty,n=Object.defineProperties,o=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,a=(Ee,we,br)=>we in Ee?r(Ee,we,{enumerable:!0,configurable:!0,writable:!0,value:br}):Ee[we]=br,f=(Ee,we)=>{for(var br in we||(we={}))u.call(we,br)&&a(Ee,br,we[br]);if(s)for(var br of s(we))c.call(we,br)&&a(Ee,br,we[br]);return Ee},g=(Ee,we)=>n(Ee,o(we)),p=(Ee,we,br)=>new Promise((Jr,rr)=>{var sn=Bn=>{try{dn(br.next(Bn))}catch(gn){rr(gn)}},en=Bn=>{try{dn(br.throw(Bn))}catch(gn){rr(gn)}},dn=Bn=>Bn.done?Jr(Bn.value):Promise.resolve(Bn.value).then(sn,en);dn((br=br.apply(Ee,we)).next())});const b=Ee=>(0,t.ZP)(`/api/exercises/${Ee==null?void 0:Ee.exercise_id}/statistics/list_student_score_by_question_type.json`,{method:"get",params:Ee}),h=Ee=>(0,t.ZP)(`/api/exercises/${Ee==null?void 0:Ee.exercise_id}/statistics/list_student_score_by_question.json`,{method:"get",params:Ee}),E=Ee=>(0,t.ZP)(`/api/exercises/${Ee.exercise_id}/statistics/export_class_compare.xlsl`,{method:"get",params:Ee}),P=Ee=>(0,t.ZP)(`/api/exercises/${Ee.exercise_id}/statistics/class_question_compare.json`,{method:"get",params:Ee}),A=Ee=>(0,t.ZP)(`/api/exercises/${Ee==null?void 0:Ee.exercise_id}/statistics/class_score_distribution.json`,{method:"get",params:Ee}),I=Ee=>(0,t.ZP)(`/api/exercises/${Ee==null?void 0:Ee.exercise_id}/statistics/list_student_score.json`,{method:"get",params:Ee}),C=Ee=>(0,t.ZP)(`/api/exercises/${Ee==null?void 0:Ee.exercise_id}/statistics/set_score_ranges.json`,{method:"put",body:Ee}),O=Ee=>(0,t.ZP)(`/api/exercises/${Ee==null?void 0:Ee.exercise_id}/statistics/score_ranges.json`,{method:"get",params:Ee}),T=Ee=>(0,t.ZP)(`/api/exercises/${Ee.id}/sava_exam_summary.json`,{method:"post",body:Ee}),D=Ee=>(0,t.ZP)("/api/intelligent_reviews/exam_summary.json",{method:"post",body:Ee}),k=Ee=>(0,t.ZP)(`/api/exercises/${Ee.id}/generate_exam_summary.json`,{method:"post",body:Ee}),$=Ee=>(0,t.ZP)(`/api/exercises/${Ee.id}/exam_summary_settings.json`,{method:"post",body:Ee}),L=Ee=>p(void 0,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee==null?void 0:Ee.exercise_id}/review_exercise_user.json`,{method:"post",body:Ee})}),R=Ee=>(0,t.ZP)(`/api/exercises/${Ee==null?void 0:Ee.id}/code_check.json`,{method:"get",params:Ee}),z=Ee=>(0,t.ZP)(`/api/exercises/${Ee.id}/reset_pwd.json`,{method:"post",body:Ee}),N=Ee=>(0,t.ZP)(`/api/exercises/${Ee.id}/encrypt_or_decrypt.json`,{method:"post",body:Ee}),V=Ee=>p(void 0,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.id}/delayed_time_or_force.json`,{method:"post",body:Ee})}),j=Ee=>p(void 0,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee==null?void 0:Ee.id}/exercise_time.json`,{method:"Get",params:Ee})}),Y=Ee=>(0,t.ZP)(`/api/exercises/${Ee==null?void 0:Ee.id}/exercise_question_result.json`,{method:"get",params:Ee}),G=Ee=>(0,t.ZP)(`/api/exercises/${Ee.id}/get_question_type_alias.json`,{method:"get",params:Ee});function J(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercise_questions/${Ee==null?void 0:Ee.id}/teacher_update.json`,{method:"post",body:f({},Ee)})})}function Q(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercise_questions/${Ee==null?void 0:Ee.id}/adjust_comment.json`,{method:"post",body:f({},Ee)})})}function Z(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.id}/edit_question_type_alias.json`,{method:"POST",body:Ee})})}function K(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/exercise_lists.json`,{method:"get",params:f({},Ee)})})}function M(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/exercise_identity_photos.json`,{method:"get",params:f({},Ee)})})}function B(Ee){return p(this,null,function*(){return Fetch(`/api/exercises/${Ee.categoryId}/video_push_url.json`,{method:"get",params:f({},Ee)})})}function H(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/query_identity_photo_state.json`,{method:"get",params:f({},Ee)})})}function ee(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/exercise_result.json`,{method:"get",params:f({},Ee)})})}function ae(Ee){return p(this,null,function*(){return Fetch(`/api/exercises/${Ee.categoryId}/exercise_score_area_setting.json`,{method:"post",body:f({},Ee)})})}function le(Ee){return p(this,null,function*(){return(0,t.ZP)("/api/question_banks/bank_list.json",{method:"get",params:f({},Ee)})})}function pe(Ee){return p(this,null,function*(){return(0,t.ZP)("/api/question_banks/save_banks.json",{method:"POST",body:f({},Ee)})})}function ve(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ee.coursesId}/exercises/publish_modal.json`,{method:"get",params:f({},Ee)})})}function He(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/common_header.json`,{method:"get",params:f({},Ee)})})}function ze(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ee.coursesId}/exercises.json`,{method:"post",body:f({},Ee)})})}function rt(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.exerciseId}.json`,{method:"put",body:f({},Ee)})})}function ot(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}.json`,{method:"get",params:f({},Ee)})})}function yt(Ee){return p(this,null,function*(){return(0,t.ZP)("/api/tag_disciplines.json",{method:"get",params:f({},Ee)})})}function St(Ee){return p(this,null,function*(){const{id:we}=Ee;return delete Ee.id,(0,t.ZP)(`/api/exercise_questions/${we}.json`,{method:"put",body:f({},Ee)})})}function ge(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/exercise_questions.json`,{method:"post",body:f({},Ee)})})}function Be(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercise_questions/${Ee.id}/up_down.json`,{method:"post",body:f({},Ee)})})}function Xe(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercise_questions/${Ee.id}.json`,{method:"delete"})})}function tt(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ee.coursesId}/exercises/end_modal.json`,{method:"get",params:f({},Ee)})})}function Tt(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/publish_groups.json`,{method:"get",params:f({},Ee)})})}function Pt(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.exerciseId}/user_exercise_detail.json`,{method:"get",params:f({},Ee)})})}function je(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.exerciseId}/consult_exercise.json`,{method:"post",body:f({},Ee)})})}function xe(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.exerciseId}/teacher_appraise.json`,{method:"get",params:f({},Ee)})})}function Ce(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercise_questions/${Ee.id}/adjust_score.json`,{method:"post",body:f({},Ee)})})}function Le(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercise_questions/${Ee.id}/batch_adjust_score.json`,{method:"post",body:f({},Ee)})})}function Re(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.id}/adjust_score.json`,{method:"post",body:f({},Ee)})})}function Ke(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.id}/delayed_time.json`,{method:"post",body:f({},Ee)})})}function Ne(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/exercise_setting.json`,{method:"get",params:f({},Ee)})})}function et(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/v2/exercises/${Ee.categoryId}/exercise_setting.json`,{method:"get",params:f({},Ee)})})}function Je(Ee){return p(this,null,function*(){return Fetch(`/api/exercises/${Ee.categoryId}/commit_setting.json`,{method:"post",body:f({},Ee)})})}function jt(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.exerciseId}/review_exercises_by_students.json`,{method:"post",body:f({},Ee)})})}function Gt(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/exercise_lists.xlsx`,{method:"get",params:g(f({},Ee),{export:!0})})})}function me(Ee){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/user_exercise_detail.json`,{method:"get",params:g(f({},Ee),{login:null})})}function ke(Ee){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/start.json`,{method:"get",params:f({},Ee)})}function xt(Ee){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/start_unlock.json`,{method:"post",body:f({},Ee)})}function ct(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercise_questions/${Ee.questionId}/exercise_answers.json`,{method:"post",body:Ee})})}function ft(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/commit_exercise.json`,{method:"post",body:Ee})})}function st(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/simulate_commit_exercise.json`,{method:"post",body:Ee})})}function Zt(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/redo_exercise.json`,{method:"post",body:Ee})})}function it(Ee){return(0,t.ZP)(`/api/${Ee.url}`,{method:"get",params:f({},Ee)})}function ce(Ee){return(0,t.ZP)(`/api/problems/${Ee.id}/start.json`,{method:"get",params:f({},Ee)})}function lt(Ee){return(0,t.ZP)(`/api/exercises/${Ee.id}/begin_commit.json`,{method:"get",params:f({},Ee)})}function qe(Ee){return(0,t.ZP)(`/api/exercises/${Ee.id}/simulate_begin_commit.json`,{method:"get",params:f({},Ee)})}function wt(Ee){return(0,t.ZP)("/api/examination_intelligent_settings/optional_items.json",{method:"post",body:f({},Ee)})}function Rt(Ee){return console.log("params:",Ee),(0,t.ZP)(`/api/exercises/${Ee.categoryId}/edit.json`,{method:"get",params:f({},Ee)})}function vr(Ee){return(0,t.ZP)(`/api/exercises/${Ee.id}/get_objective_scores.json`,{method:"get",params:f({},Ee)})}function nt(Ee){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/redo_modal.json`,{method:"get",params:f({},Ee)})}function or(Ee){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/student_redo_lists.json`,{method:"get",params:f({},Ee)})}function Te(Ee){return(0,t.ZP)("/api/exercises/get_user_exercises.json",{method:"get",params:Ee})}function Dt(Ee){return(0,t.ZP)(`/api/exercises/${Ee.id}/exercise_header.json`,{method:"get",params:f({},Ee)})}function sr(Ee){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/allow_close_camera.json`,{method:"post",body:f({},Ee)})}function fr(Ee){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/get_exercise_user_info.json`,{method:"get",params:f({},Ee)})}function kr(Ee){return(0,t.ZP)(`/api/exercises/${Ee.id}/record_screen`,{method:"post",params:f({},Ee)})}function hr(Ee){return(0,t.ZP)(`/api/exercises/${Ee.id}/unbind_ip.json`,{method:"post",body:f({},Ee)})}function _r(Ee){return(0,t.ZP)(`/api/exercises/${Ee.id}/check_ip.json`,{method:"get",params:f({},Ee)})}function Nr(Ee){return(0,t.ZP)(`/api/exercises/${Ee==null?void 0:Ee.id}/check_user_exercise.json`,{method:"get",params:f({},Ee)})}function Wr(Ee){return Fetch(`/api/exercises/${Ee.id}/make_up_students.json`,{method:"get",params:f({},Ee)})}function Qr(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ee.coursesId}/exercises/code_review_detail.json`,{method:"get",params:f({},Ee)})})}function on(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercise_questions/${Ee.question_id}/adjust_score.json`,{method:"post",body:f({},Ee)})})}function ur(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${Ee.categoryId}/simulate_exercise.json`,{method:"post",body:f({},Ee)})})}function tr(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/simulate_start_answer.json`,{method:"get",params:f({},Ee)})})}function Vt(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/exercise_time.json`,{method:"get",params:f({},Ee)})})}function Sr(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/commit_screen_at.json`,{method:"post",body:f({},Ee)})})}function yr(Ee,we){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee}/unlock_user`,{method:"post",body:we})})}function Ir(Ee,we){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee}/save_screen_record.json`,{method:"post",body:we})})}function mt(Ee,we){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee}/screen_record_list.json`,{method:"get",params:we})})}function Ze(Ee){return p(this,null,function*(){return(0,t.ZP)("/api/attachments/set_ecs_attachment.json",{method:"get",params:f({},Ee)})})}function Ue(Ee){return p(this,null,function*(){return(0,t.ZP)("/api/exercises/need_redo.json",{method:"get",params:Ee})})}function Me(Ee,we){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee}/mark.json`,{method:"post",body:we})})}function Ge(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/myshixuns/${Ee}/exit_delete_pod.json`,{method:"post",body:Ee})})}function Wt(Ee){return p(this,null,function*(){return(0,t.ZP)("/api/users/change_exercise_score.json",{method:"put",body:Ee})})}function Ft(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercise_questions/${Ee==null?void 0:Ee.id}/send_to_item_bank.json`,{method:"post",body:f({},Ee)})})}},67508:function(i,d,e){"use strict";e.d(d,{B0:function(){return p},Si:function(){return I},Sr:function(){return O},YP:function(){return C},b4:function(){return A},bc:function(){return f},dX:function(){return P},eh:function(){return T},iI:function(){return h},kd:function(){return g},qR:function(){return E},sW:function(){return b},ts:function(){return k},vL:function(){return D},z5:function(){return $}});var t=e(99064),r=Object.defineProperty,n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(L,R,z)=>R in L?r(L,R,{enumerable:!0,configurable:!0,writable:!0,value:z}):L[R]=z,c=(L,R)=>{for(var z in R||(R={}))o.call(R,z)&&u(L,z,R[z]);if(n)for(var z of n(R))s.call(R,z)&&u(L,z,R[z]);return L},a=(L,R,z)=>new Promise((N,V)=>{var j=J=>{try{G(z.next(J))}catch(Q){V(Q)}},Y=J=>{try{G(z.throw(J))}catch(Q){V(Q)}},G=J=>J.done?N(J.value):Promise.resolve(J.value).then(j,Y);G((z=z.apply(L,R)).next())});function f(L){return a(this,null,function*(){return(0,t.ZP)("/api/memos.json",{method:"get",params:L})})}function g(L){return a(this,null,function*(){return(0,t.ZP)("/api/discusses/forum_discusses.json",{method:"get",params:L})})}function p(L){return a(this,null,function*(){return(0,t.ZP)(`/api/memos/${L.id}/sticky_or_cancel.json`,{method:"post",body:L})})}function b(L){return a(this,null,function*(){return(0,t.ZP)(`/api/memos/${L.id}.json`,{method:"delete",body:L})})}function h(L){return a(this,null,function*(){return(0,t.ZP)("/api/memos/new.json",{method:"get",params:L})})}function E(L){return a(this,null,function*(){return(0,t.ZP)(`/api/memos/${L.id}/edit.json`,{method:"get",params:L})})}function P(L){return a(this,null,function*(){return(0,t.ZP)("/api/memos.json",{method:"post",body:c({},L)})})}function A(L){return a(this,null,function*(){return(0,t.ZP)(`/api/memos/${L.id}.json`,{method:"put",body:c({},L)})})}function I(L){return a(this,null,function*(){return(0,t.ZP)(`/api/memos/${L.id}.json`,{method:"get",params:L})})}function C(L){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${L.user_id}/watch.json`,{method:"post",body:L})})}function O(L){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${L.user_id}/watch.json`,{method:"delete",body:c({},L)})})}function T(L){return a(this,null,function*(){return(0,t.ZP)(`/api/discusses/${L.id}/reward_code.json`,{method:"post",body:L})})}function D(L){return a(this,null,function*(){return(0,t.ZP)(`/api/discusses/${L.id}/plus.json`,{method:"post",body:L})})}function k(L){return a(this,null,function*(){return(0,t.ZP)("/api/memos/reply.json",{method:"post",body:L})})}function $(L){return a(this,null,function*(){return(0,t.ZP)(`/api/memos/${L.id}/more_reply.json`,{method:"get",params:L})})}},30534:function(i,d,e){"use strict";e.d(d,{D2:function(){return n},n0:function(){return o},tk:function(){return s}});var t=e(99064),r=(u,c,a)=>new Promise((f,g)=>{var p=E=>{try{h(a.next(E))}catch(P){g(P)}},b=E=>{try{h(a.throw(E))}catch(P){g(P)}},h=E=>E.done?f(E.value):Promise.resolve(E.value).then(p,b);h((a=a.apply(u,c)).next())});function n(){return r(this,null,function*(){return(0,t.ZP)("/api/setting.json",{method:"Get"})})}function o(){return r(this,null,function*(){return(0,t.ZP)("/api/users/system_update.json",{method:"Get"})})}function s(u){return r(this,null,function*(){return(0,t.ZP)("/api/search_records",{method:"post",body:u})})}},89887:function(i,d,e){"use strict";e.d(d,{B6:function(){return p},Gr:function(){return k},Mf:function(){return O},NA:function(){return I},PC:function(){return P},PP:function(){return A},QA:function(){return g},RP:function(){return R},Sv:function(){return L},YQ:function(){return C},_n:function(){return z},hL:function(){return D},je:function(){return E},mM:function(){return h},wA:function(){return $},x_:function(){return b},y0:function(){return T},y3:function(){return f}});var t=e(99064),r=Object.defineProperty,n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(N,V,j)=>V in N?r(N,V,{enumerable:!0,configurable:!0,writable:!0,value:j}):N[V]=j,c=(N,V)=>{for(var j in V||(V={}))o.call(V,j)&&u(N,j,V[j]);if(n)for(var j of n(V))s.call(V,j)&&u(N,j,V[j]);return N},a=(N,V,j)=>new Promise((Y,G)=>{var J=K=>{try{Z(j.next(K))}catch(M){G(M)}},Q=K=>{try{Z(j.throw(K))}catch(M){G(M)}},Z=K=>K.done?Y(K.value):Promise.resolve(K.value).then(J,Q);Z((j=j.apply(N,V)).next())});function f(N){return a(this,null,function*(){return(0,t.ZP)(`/api/graduation_tasks/${N.categoryId}.json`,{method:"get",params:c({},N)})})}function g(N){return a(this,null,function*(){return(0,t.ZP)(`/api/graduation_tasks/${N.categoryId}/tasks_list.json`,{method:"get",params:c({},N)})})}function p(N){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${N.coursesId}/graduation_topics/${N.categoryId}/show_detail.json`,{method:"get",params:c({},N)})})}function b(N){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${N.coursesId}/graduation_topics/${N.categoryId}.json`,{method:"get",params:c({},N)})})}function h(N){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${N.coursesId}/graduation_topics/${N.categoryId}/refuse_student_topic.json`,{method:"post",body:c({},N)})})}function E(N){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${N.coursesId}/graduation_topics/${N.categoryId}/accept_student_topic.json`,{method:"post",body:c({},N)})})}function P(N){return a(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${N.categoryId}/show_comment.json`,{method:"get",params:c({},N)})})}function A(N){return a(this,null,function*(){return(0,t.ZP)("/api/users/reply_message.json",{method:"post",body:c({},N)})})}function I(N){return a(this,null,function*(){return(0,t.ZP)("/api/praise_tread/like.json",{method:"post",body:c({},N)})})}function C(N){return a(this,null,function*(){return(0,t.ZP)("/api/praise_tread/unlike.json",{method:"delete",body:c({},N)})})}function O(N){return a(this,null,function*(){return(0,t.ZP)("/api/commons/delete.json",{method:"delete",body:c({},N)})})}function T(N){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${N.coursesId}/graduation_topics/new.json`,{method:"get",params:c({},N)})})}function D(N){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${N.coursesId}/graduation_topics/${N.categoryId}/edit.json`,{method:"get",params:c({},N)})})}function k(N){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${N.coursesId}/graduation_topics`,{method:"post",body:c({},N)})})}function $(N){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${N.coursesId}/graduation_topics/${N.categoryId}`,{method:"put",body:c({},N)})})}function L(N){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${N.coursesId}/graduation_tasks`,{method:"post",body:c({},N)})})}function R(N){return a(this,null,function*(){return(0,t.ZP)(`/api/graduation_tasks/${N.categoryId}.json`,{method:"put",body:c({},N)})})}function z(N){return a(this,null,function*(){return(0,t.ZP)(`/api/graduation_tasks/${N.categoryId}/edit.json`,{method:"get",params:c({},N)})})}},2742:function(i,d,e){"use strict";e.d(d,{AA:function(){return $},Db:function(){return g},Dd:function(){return E},F7:function(){return j},Fi:function(){return K},H3:function(){return h},HF:function(){return A},HH:function(){return b},Ib:function(){return J},J3:function(){return u},NT:function(){return n},NX:function(){return C},Ot:function(){return I},Ou:function(){return Y},Ps:function(){return o},Rk:function(){return V},Tz:function(){return f},V1:function(){return Q},Wz:function(){return s},Xh:function(){return p},Xw:function(){return N},YS:function(){return R},Zd:function(){return Z},bS:function(){return O},ck:function(){return P},eh:function(){return k},il:function(){return c},j7:function(){return a},jW:function(){return L},km:function(){return z},l5:function(){return D},rU:function(){return M},xF:function(){return T},zC:function(){return G},zT:function(){return B}});var t=e(99064),r=(H,ee,ae)=>new Promise((le,pe)=>{var ve=rt=>{try{ze(ae.next(rt))}catch(ot){pe(ot)}},He=rt=>{try{ze(ae.throw(rt))}catch(ot){pe(ot)}},ze=rt=>rt.done?le(rt.value):Promise.resolve(rt.value).then(ve,He);ze((ae=ae.apply(H,ee)).next())});function n(H){return(0,t.ZP)("/api/schools/search.json",{method:"get",params:H})}function o(H){return(0,t.ZP)(`/api/schools/${H.id}/departments/for_option.json`,{method:"get",params:H})}function s(H){return(0,t.ZP)("/api/graduations.json",{method:"POST",body:H})}function u(H){return(0,t.ZP)("/api/graduations.json",{method:"get",params:H})}function c(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.identifier}/graduation_stages/${H.stageid}/authorized_redelivery.json`,{method:"POST",body:H})})}function a(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.identifier}/graduation_stages/${H.stageid}/submit.json`,{method:"POST",body:H})})}function f(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.id}/student_tasks/export_status.json`,{method:"get",params:H})})}function g(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.id}/student_tasks/export_all_attachments.json`,{method:"get",params:H})})}function p(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.identifier}/graduation_stages/${H.id}.json`,{method:"get",params:H})})}function b(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.id}/student_tasks/set_final_score.json`,{method:"POST",body:H})})}function h(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.id}/student_tasks/final_score.json`,{method:"get",params:H})})}function E(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.id}/set_novice_guide.json`,{method:"POST",body:H})})}function P(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.id}/graduation_notices/${H.doid}/set_do.json`,{method:"POST",body:H})})}function A(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.id}/graduation_teachers.json`,{method:"POST",body:H})})}function I(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.identifier}/graduation_students/${H.id}/update_major.json`,{method:"PUT",body:H})})}function C(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.id}/graduation_students.json`,{method:"POST",body:H})})}function O(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.id}/graduation_teachers/search.json`,{method:"get",params:H})})}function T(H){return r(this,null,function*(){return(0,t.ZP)("/api/schools/search.json",{method:"get",params:H})})}function D(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.id}/graduation_students/search.json`,{method:"get",params:H})})}function k(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.id}/graduation_students.json`,{method:"get",params:H})})}function $(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.id}/graduation_teachers.json`,{method:"get",params:H})})}function L(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.graduation_id}/graduation_tasks.json`,{method:"POST",body:H})})}function R(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.graduation_id}/graduation_tasks/${H.id}.json`,{method:"PUT",body:H})})}function z(H){return r(this,null,function*(){var ee;return(0,t.ZP)(`/api/graduations/${H.id}/graduation_tasks/${(ee=H.ids)==null?void 0:ee[0]}`,{method:"DELETE",body:{ids:H.ids}})})}function N(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.id}/graduation_tasks.json`,{method:"get",params:H})})}function V(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.id}/graduation_notices.json`,{method:"get",params:H})})}function j(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.id}.json`,{method:"get"})})}function Y(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H==null?void 0:H.id}/common_header.json`,{method:"get"})})}function G(H,ee){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H}/preview.json`,{method:"get"})})}function J(H,ee){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H}/graduation_teachers/not_pass.json`,{method:"post",body:ee})})}function Q(H,ee){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H}/graduation_teachers/pass.json`,{method:"post",body:ee})})}function Z(H,ee){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H}/graduation_students/not_pass.json`,{method:"post",body:ee})})}function K(H,ee){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H}/graduation_students/pass.json`,{method:"post",body:ee})})}function M(H,ee){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H}/graduation_students/batch_delete`,{method:"delete",body:ee})})}function B(H,ee){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H}/graduation_teachers/batch_delete`,{method:"delete",body:ee})})}},1:function(i,d,e){"use strict";e.d(d,{LA:function(){return u},S_:function(){return c},Tt:function(){return n},cR:function(){return o},vm:function(){return s}});var t=e(99064),r=(a,f,g)=>new Promise((p,b)=>{var h=A=>{try{P(g.next(A))}catch(I){b(I)}},E=A=>{try{P(g.throw(A))}catch(I){b(I)}},P=A=>A.done?p(A.value):Promise.resolve(A.value).then(h,E);P((g=g.apply(a,f)).next())});function n(){return r(this,null,function*(){return(0,t.ZP)("/api/home/index.json",{method:"Get"})})}function o(a){return r(this,null,function*(){return(0,t.ZP)("/api/courses/apply_to_join_course.json",{method:"post",body:a})})}function s(a){return r(this,null,function*(){return(0,t.ZP)("/api/project_applies.json",{method:"post",body:a})})}function u(a){return r(this,null,function*(){return(0,t.ZP)("/api/users/home_notice.json",{method:"Get"})})}function c(a){return r(this,null,function*(){return(0,t.ZP)("/api/users/view_notice.json",{method:"post",body:a})})}},10656:function(i,d,e){"use strict";e.d(d,{AD:function(){return f},Ig:function(){return g},Ko:function(){return h},QJ:function(){return E},Ub:function(){return P},V8:function(){return p},dl:function(){return A},w0:function(){return b}});var t=e(99064),r=Object.defineProperty,n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(I,C,O)=>C in I?r(I,C,{enumerable:!0,configurable:!0,writable:!0,value:O}):I[C]=O,c=(I,C)=>{for(var O in C||(C={}))o.call(C,O)&&u(I,O,C[O]);if(n)for(var O of n(C))s.call(C,O)&&u(I,O,C[O]);return I},a=(I,C,O)=>new Promise((T,D)=>{var k=R=>{try{L(O.next(R))}catch(z){D(z)}},$=R=>{try{L(O.throw(R))}catch(z){D(z)}},L=R=>R.done?T(R.value):Promise.resolve(R.value).then(k,$);L((O=O.apply(I,C)).next())});function f(I){return a(this,null,function*(){return(0,t.ZP)("/api/users/tidings.json",{method:"get",params:c({},I)})})}function g(I){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${I.userId}/unread_message_info.json`,{method:"get",params:c({},I)})})}function p(I){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${I.userId}/private_messages.json`,{method:"get",params:c({},I)})})}function b(I){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${I.userId}/private_messages.json`,{method:"post",body:c({},I)})})}function h(I){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${I.id}/recent_contacts.json`,{method:"get",params:c({},I)})})}function E(I){return a(this,null,function*(){return(0,t.ZP)("/api/users_for_private_messages.json",{method:"get",params:c({},I)})})}function P(I){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${I.userId}/private_message_details.json`,{method:"get",params:c({},I)})})}function A(I){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${I.userId}/private_messages/${I.id}.json`,{method:"delete"})})}},34640:function(i,d,e){"use strict";e.d(d,{A2:function(){return E},CI:function(){return p},Ep:function(){return h},Ex:function(){return T},R7:function(){return f},WW:function(){return D},_V:function(){return O},ms:function(){return I},s0:function(){return P},vf:function(){return b},xn:function(){return g},yy:function(){return C}});var t=e(99064),r=Object.defineProperty,n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(k,$,L)=>$ in k?r(k,$,{enumerable:!0,configurable:!0,writable:!0,value:L}):k[$]=L,c=(k,$)=>{for(var L in $||($={}))o.call($,L)&&u(k,L,$[L]);if(n)for(var L of n($))s.call($,L)&&u(k,L,$[L]);return k},a=(k,$,L)=>new Promise((R,z)=>{var N=Y=>{try{j(L.next(Y))}catch(G){z(G)}},V=Y=>{try{j(L.throw(Y))}catch(G){z(G)}},j=Y=>Y.done?R(Y.value):Promise.resolve(Y.value).then(N,V);j((L=L.apply(k,$)).next())});function f(k){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${k.coursesId}/online_learning.json`,{method:"get"})})}function g(k){return a(this,null,function*(){return(0,t.ZP)(`/api/course_stages/${k.id}.json`,{method:"put",body:k})})}function p(k){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${k.coursesId}/course_stages.json`,{method:"post",body:k})})}function b(k){return a(this,null,function*(){return(0,t.ZP)(`/api/course_stages/${k.id}/add_shixun_to_stage.json`,{method:"post",body:k})})}function h(k){return a(this,null,function*(){return(0,t.ZP)(`/api/course_stages/${k.id}/select_shixun_to_stage.json`,{method:"post",body:k})})}function E(k){return a(this,null,function*(){return(0,t.ZP)(`/api/course_stages/${k.id}/add_video_to_stage.json`,{method:"post",body:k})})}function P(k){return a(this,null,function*(){return(0,t.ZP)(`/api/course_stages/${k.id}/add_attachment_to_stage.json`,{method:"post",body:k})})}function A(k){return a(this,null,function*(){return Fetch("/api/paths/add_shixun_to_stage.json",{method:"post",body:k})})}function I(k){return a(this,null,function*(){return(0,t.ZP)(`/api/course_stages/${k.id}/up_position.json`,{method:"post"})})}function C(k){return a(this,null,function*(){return(0,t.ZP)(`/api/course_stages/${k.id}/down_position.json`,{method:"post"})})}function O(k){return a(this,null,function*(){return(0,t.ZP)(`/api/course_stages/${k.id}.json`,{method:"delete"})})}function T(k){return a(this,null,function*(){return(0,t.ZP)(`/api/course_stages/${k.stage_id}/items/move_position.json`,{method:"post",body:c({},k)})})}function D(k){return a(this,null,function*(){return(0,t.ZP)(`/api/course_stages/${k.stage_id}/items/${k.id}`,{method:"delete"})})}},80401:function(i,d,e){"use strict";e.d(d,{DF:function(){return E},Di:function(){return Q},Dm:function(){return V},Dq:function(){return ae},Gd:function(){return h},Hb:function(){return le},Hm:function(){return R},ID:function(){return a},JP:function(){return ee},NC:function(){return $},Pl:function(){return P},Qc:function(){return o},Qp:function(){return j},RK:function(){return g},YP:function(){return L},a2:function(){return u},ar:function(){return b},cV:function(){return f},d1:function(){return p},dp:function(){return n},fn:function(){return A},iT:function(){return T},jK:function(){return N},kF:function(){return pe},kp:function(){return O},lc:function(){return C},oF:function(){return K},q$:function(){return c},qN:function(){return z},tS:function(){return I},ts:function(){return D},un:function(){return G},w0:function(){return J},wX:function(){return Y},yE:function(){return s}});var t=e(99064),r=(ve,He,ze)=>new Promise((rt,ot)=>{var yt=Be=>{try{ge(ze.next(Be))}catch(Xe){ot(Xe)}},St=Be=>{try{ge(ze.throw(Be))}catch(Xe){ot(Xe)}},ge=Be=>Be.done?rt(Be.value):Promise.resolve(Be.value).then(yt,St);ge((ze=ze.apply(ve,He)).next())});const n=ve=>(0,t.ZP)(`/api/examination_banks/${ve==null?void 0:ve.id}/code_check.json`,{method:"get",params:ve}),o=ve=>(0,t.ZP)(`/api/examination_banks/${ve.id}/reset_pwd.json`,{method:"post",body:ve}),s=ve=>(0,t.ZP)(`/api/examination_banks/${ve.id}/encrypt_or_decrypt.json`,{method:"post",body:ve}),u=ve=>(0,t.ZP)("/api/examination_banks/exist_course.json",{method:"post",body:ve}),c=ve=>(0,t.ZP)("/api/examination_banks/check_examination_banks.json",{method:"post",body:ve}),a=ve=>(0,t.ZP)(`/api/examination_banks/${ve.id}/copy.json`,{method:"post",body:ve}),f=ve=>(0,t.ZP)(`/api/examination_banks/${ve.id}/get_question_type_alias.json`,{method:"get",params:ve});function g(ve){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ve.id}/edit_question_type_alias.json`,{method:"POST",body:ve})})}function p(ve){return r(this,null,function*(){return(0,t.ZP)("/api/disciplines.json",{method:"get",params:ve})})}function b(ve){return r(this,null,function*(){return(0,t.ZP)("/api/disciplines/by_examination_banks.json",{method:"get",params:ve})})}function h(ve){return r(this,null,function*(){return(0,t.ZP)("/api/examination_banks.json",{method:"get",params:ve})})}function E(ve){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ve.id}/set_public.json`,{method:"post"})})}function P(ve){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ve.id}/set_private.json`,{method:"post"})})}function A(ve){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ve.id}.json`,{method:"delete"})})}function I(ve){return r(this,null,function*(){return(0,t.ZP)("/api/question_banks/my_courses.json",{method:"get",params:ve})})}const C=ve=>(0,t.ZP)("/api/examination_banks/batch_send_to_course.json",{method:"post",body:ve});function O(ve){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ve.id}/send_to_course.json`,{method:"post",body:ve})})}function T(ve){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ve.id}.json`,{method:"get",params:ve})})}function D(ve){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ve.id}/examination_banks_item_banks/${ve.itemId}/set_score`,{method:"post",body:ve})})}function k(ve){return r(this,null,function*(){return Fetch(`/api/examination_banks/${ve.id}/examination_banks_item_banks/${ve.itemId}/set_shixun_score.json`,{method:"post",body:ve})})}function $(ve){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ve.id}/examination_banks_item_banks/${ve.itemId}.json`,{method:"delete"})})}function L(ve){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ve.id}/examination_banks_item_banks/batch_set_score.json`,{method:"post",body:ve})})}function R(ve){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ve.id}/examination_banks_item_banks/destroy_by_item_type.json`,{method:"delete",body:ve})})}function z(ve){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ve.id}/examination_banks_item_banks/${ve.itemId}/adjust_position.json`,{method:"post",body:ve})})}function N(ve){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ve.id}.json`,{method:"put",body:ve})})}function V(ve){return r(this,null,function*(){return(0,t.ZP)("/api/teach_group_shares.json",{method:"get",params:ve})})}function j(ve){return r(this,null,function*(){return(0,t.ZP)("/api/examination_banks/set_batch_public.json",{method:"post",body:ve})})}function Y(ve){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ve==null?void 0:ve.id}/set_public.json`,{method:"post",body:ve})})}function G(ve){return r(this,null,function*(){return(0,t.ZP)("/api/examination_banks/create_exam.json",{method:"post",body:ve})})}function J(ve){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ve.id}/update_exam.json`,{method:"put",body:ve})})}function Q(ve){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ve.id}/edit_exam.json`,{method:"get"})})}function Z(ve,He){return r(this,null,function*(){return Fetch(`/api/examination_banks/${ve}/examination_banks_item_banks.json`,{method:"post",body:He})})}function K(ve){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ve.id}/examination_banks_item_banks/create_item_bank.json`,{method:"post",body:ve})})}function M(ve,He){return r(this,null,function*(){return Fetch(`/api/examination_banks/${ve}/sort_question_type.json`,{method:"post",body:He})})}function B(ve){return r(this,null,function*(){return Fetch(`/api/examination_banks/${ve.exam_id}/examination_banks_item_banks/${ve.question_id}.json`,{method:"delete"})})}function H(ve,He){return r(this,null,function*(){return Fetch(`/api/examination_banks/${ve}/batch_set_score.json`,{method:"post",body:He})})}function ee(ve){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ve}/simulate_exercise.json`,{method:"post"})})}function ae(ve){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ve}/exercise_header.json`,{method:"get"})})}function le(ve,He,ze){return r(this,null,function*(){const rt=new FormData;return rt.append("file",He),rt.append("sub_discipline_id",ze),(0,t.ZP)(`/api/examination_banks/${ve}/import_item_banks.json`,{method:"post",body:rt},!0)})}function pe(ve){return r(this,null,function*(){return(0,t.ZP)("/api/users/change_exam_score.json",{method:"put",body:ve})})}},86248:function(i,d,e){"use strict";e.d(d,{$D:function(){return Xe},A2:function(){return nt},A7:function(){return Ge},AQ:function(){return ze},Ax:function(){return Nr},Bn:function(){return Ee},Bz:function(){return C},CB:function(){return k},CI:function(){return sr},D$:function(){return p},DQ:function(){return mt},DU:function(){return ce},EG:function(){return N},EP:function(){return Be},Ep:function(){return vr},Er:function(){return Ke},Eu:function(){return T},Ex:function(){return on},FD:function(){return Ze},F_:function(){return it},Fg:function(){return Q},GY:function(){return Sr},Go:function(){return Ce},Gz:function(){return Z},Hl:function(){return K},Ho:function(){return A},JS:function(){return ke},Jd:function(){return $},Ju:function(){return O},KM:function(){return Pt},M1:function(){return f},M2:function(){return Te},Mt:function(){return Dt},Mu:function(){return Wr},NV:function(){return Ft},O9:function(){return P},PQ:function(){return D},Q:function(){return et},S$:function(){return b},Sp:function(){return He},VO:function(){return Ue},WD:function(){return Vt},WO:function(){return Re},WW:function(){return ur},YP:function(){return j},_C:function(){return Wt},_V:function(){return _r},b:function(){return h},bw:function(){return ge},bz:function(){return Ir},c2:function(){return L},c3:function(){return me},cn:function(){return H},dX:function(){return G},eJ:function(){return xe},ef:function(){return Zt},fh:function(){return ee},fj:function(){return Le},hS:function(){return M},jT:function(){return Me},j_:function(){return Y},ke:function(){return tr},lk:function(){return ve},mB:function(){return g},mE:function(){return I},mQ:function(){return pe},ms:function(){return kr},mx:function(){return jt},nq:function(){return J},ol:function(){return yr},p:function(){return ot},p4:function(){return Je},pU:function(){return le},pf:function(){return z},rS:function(){return xt},rs:function(){return je},s0:function(){return or},se:function(){return R},sm:function(){return Gt},tS:function(){return B},tu:function(){return ae},ue:function(){return rt},vf:function(){return wt},w4:function(){return yt},wv:function(){return V},xG:function(){return Rt},xn:function(){return qe},yN:function(){return St},yy:function(){return hr},zc:function(){return E}});var t=e(99064),r=Object.defineProperty,n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(we,br,Jr)=>br in we?r(we,br,{enumerable:!0,configurable:!0,writable:!0,value:Jr}):we[br]=Jr,c=(we,br)=>{for(var Jr in br||(br={}))o.call(br,Jr)&&u(we,Jr,br[Jr]);if(n)for(var Jr of n(br))s.call(br,Jr)&&u(we,Jr,br[Jr]);return we},a=(we,br,Jr)=>new Promise((rr,sn)=>{var en=gn=>{try{Bn(Jr.next(gn))}catch(Kn){sn(Kn)}},dn=gn=>{try{Bn(Jr.throw(gn))}catch(Kn){sn(Kn)}},Bn=gn=>gn.done?rr(gn.value):Promise.resolve(gn.value).then(en,dn);Bn((Jr=Jr.apply(we,br)).next())});const f=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/subject_knowledge/student_detail.json",{method:"get",params:we})}),g=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/subject_knowledge/knowledge_detail.json",{method:"get",params:we})}),p=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/subject_knowledge/update_statistic.json",{method:"get",params:we})}),b=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/subject_knowledge/statistic_lists.json",{method:"get",params:we})}),h=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/subject_knowledge/route_statistics.json",{method:"get",params:we})}),E=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/knowledge/v2/send_to_course.json",{method:"POST",body:we})}),P=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/knowledge/v2/check_knowledge_repeat.json",{method:"POST",body:we})}),A=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/knowledge/v2/courses.json",{method:"get",params:we})}),I=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/subject_knowledge/toggle.json",{method:"get",params:we})}),C=we=>a(void 0,null,function*(){return(0,t.ZP)(`/api/v2/knowledge_graphs/${we==null?void 0:we.graphable_type}/${we==null?void 0:we.graphable_id}`,{method:"get",params:we})}),O=we=>a(void 0,null,function*(){return(0,t.ZP)(`/api/ability_goals/${we==null?void 0:we.id}/detail.json`,{method:"get",params:we})}),T=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/ability_goals/home.json",{method:"get",params:we})}),D=we=>a(void 0,null,function*(){return(0,t.ZP)(`/api/ability_tags/${we==null?void 0:we.id}.json`,{method:"delete",body:we})}),k=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/ability_tags.json",{method:"POST",body:we})}),$=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/ability_tags.json",{method:"get",params:we})}),L=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/subject_knowledge/tree.json",{method:"get",params:we})}),R=we=>a(void 0,null,function*(){return(0,t.ZP)(`/api/ability_goals/${we==null?void 0:we.id}/edit`,{method:"get",params:we})}),z=we=>a(void 0,null,function*(){return(0,t.ZP)(`/api/ability_goals/${we==null?void 0:we.id}.json`,{method:"delete",body:we})}),N=we=>a(void 0,null,function*(){return(0,t.ZP)(`/api/ability_goals/${we==null?void 0:we.id}.json`,{method:"PUT",body:we})}),V=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/ability_goals.json",{method:"POST",body:we})}),j=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/ability_goals.json",{method:"get",params:we})}),Y=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/knowledge/v2/update_knowledge_statistic.json",{method:"POST",body:we})}),G=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/knowledge/v2/subject_knowledge_statistic.json",{method:"Get",params:we})}),J=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/subject_statistics/subject_use_infos.json",{method:"Get",params:we})}),Q=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/subject_statistics/rank_list.json",{method:"Get",params:we})}),Z=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/subject_statistics/statistics_body.json",{method:"Get",params:we})}),K=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/subject_statistics/statistics_header.json",{method:"Get",params:we})}),M=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/subject_statistics/online_count.json",{method:"Get",params:we})});function B(we){return a(this,null,function*(){return(0,t.ZP)("/api/paths.json",{method:"Get",params:c({},we)})})}function H(we){return a(this,null,function*(){return(0,t.ZP)("/api/intelligent_recommendations/subject_lists.json",{method:"Get",params:c({},we)})})}function ee(we){return a(this,null,function*(){return(0,t.ZP)("/api/disciplines.json",{method:"Get",params:c({},we)})})}function ae(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}.json`,{method:"PUT",body:we})})}function le(we){return a(this,null,function*(){return(0,t.ZP)("/api/paths.json",{method:"post",body:we})})}function pe(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}/edit.json`,{method:"get"})})}function ve(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}.json`,{method:"get",params:c({identifier:we.id},we)})})}function He(we){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${we.id}.json`,{method:"get",params:c({identifier:we.id},we)})})}function ze(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}/right_banner.json`,{method:"get",params:we})})}function rt(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}/spoc_courses.json`,{method:"get",params:we})})}const ot=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/v2/stages.json",{method:"Get",params:we})}),yt=we=>a(void 0,null,function*(){return(0,t.ZP)(`/api/v2/stage_shixuns/${we.id}/children.json`,{method:"Get",params:we})});function St(we){return a(this,null,function*(){return(0,t.ZP)("/api/stages.json",{method:"get",params:we})})}function ge(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}/update_team_title.json`,{method:"post",body:we})})}function Be(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}/delete_member.json`,{method:"Delete",body:we})})}function Xe(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}/spoc_courses/${we==null?void 0:we.courseid}.json`,{method:"Delete"})})}function tt(we){return a(this,null,function*(){return Fetch(`/api/paths/${we.id}/up_member_position.json`,{method:"post",body:we})})}function Tt(we){return a(this,null,function*(){return Fetch(`/api/paths/${we.id}/down_member_position.json`,{method:"post",body:we})})}function Pt(we){return a(this,null,function*(){return(0,t.ZP)("/api/collections.json",{method:"post",body:we})})}function je(we){return a(this,null,function*(){return(0,t.ZP)("/api/collections/cancel.json",{method:"Delete",body:we})})}function xe(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}.json`,{method:"Delete",body:we})})}function Ce(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}/publish.json`,{method:"post",body:we})})}function Le(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}/cancel_publish.json`,{method:"post",body:we})})}function Re(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}/apply_public.json`,{method:"post",body:we})})}function Ke(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}/cancel_public.json`,{method:"post",body:we})})}function Ne(we){return a(this,null,function*(){return Fetch(`/api/paths/${we.id}/choose_course.json`,{method:"get",params:we})})}function et(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}/send_to_course.json`,{method:"post",body:we})})}function Je(we){return a(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${we.id}/send_to_course.json`,{method:"post",body:we})})}function jt(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}/add_subject_members.json`,{method:"post",body:we})})}function Gt(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}/spoc_courses.json`,{method:"post",body:we})})}function me(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}/appointment.json`,{method:"post",body:we})})}function ke(we){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${we.id}/join_excellent_course.json`,{method:"post",body:we})})}function xt(we){return a(this,null,function*(){return(0,t.ZP)("/api/watch_attachment_histories.json",{method:"post",body:we})})}function ct(we){return a(this,null,function*(){return Fetch(`/api/paths/${we.id}/statistics_info.json`,{method:"get",params:we})})}function ft(we){return a(this,null,function*(){return Fetch(`/api/paths/${we.id}/shixun_analyze.json`,{method:"get",params:we})})}function st(we){return a(this,null,function*(){return Fetch(`/api/paths/${we.id}/learning_analyze.json`,{method:"get",params:we})})}function Zt(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}/learning_statistics.json`,{method:"get",params:we})})}function it(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}/shixun_statistics.json`,{method:"get",params:we})})}function ce(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}/study_analyze/${we.type}.json`,{method:"get",params:we})})}function lt(we){return a(this,null,function*(){return Fetch("/api/paths/append_to_stage.json",{method:"post",body:we})})}function qe(we){return a(this,null,function*(){return(0,t.ZP)(`/api/stages/${we.id}.json`,{method:"put",body:we})})}function wt(we){return a(this,null,function*(){return(0,t.ZP)(`/api/stages/${we.id}/add_shixun_to_stage.json`,{method:"post",body:we})})}const Rt=we=>a(void 0,null,function*(){return(0,t.ZP)(`/api/stages/${we==null?void 0:we.stage_id}/select_challenge_to_stage.json`,{method:"post",body:we})});function vr(we){return a(this,null,function*(){return(0,t.ZP)(`/api/stages/${we.id}/select_shixun_to_stage.json`,{method:"post",body:we})})}function nt(we){return a(this,null,function*(){return(0,t.ZP)(`/api/stages/${we.id}/add_video_to_stage.json`,{method:"post",body:we})})}function or(we){return a(this,null,function*(){return(0,t.ZP)(`/api/stages/${we.id}/add_attachment_to_stage.json`,{method:"post",body:we})})}function Te(we){return a(this,null,function*(){return(0,t.ZP)(`/api/stage_shixuns/${we.id}.json`,{method:"put",body:we})})}function Dt(we){return a(this,null,function*(){return(0,t.ZP)(`/api/stages/${we.id}/add_blank_to_stage.json`,{method:"post",body:we})})}function sr(we){return a(this,null,function*(){return(0,t.ZP)("/api/stages.json",{method:"post",body:we})})}function fr(we){return a(this,null,function*(){return Fetch("/api/paths/add_shixun_to_stage.json",{method:"post",body:we})})}function kr(we){return a(this,null,function*(){return(0,t.ZP)(`/api/stages/${we.id}/up_position.json`,{method:"get"})})}function hr(we){return a(this,null,function*(){return(0,t.ZP)(`/api/stages/${we.id}/down_position.json`,{method:"get"})})}function _r(we){return a(this,null,function*(){return(0,t.ZP)(`/api/stages/${we.id}.json`,{method:"delete"})})}function Nr(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.pathId}/discusses.json`,{method:"get",params:c({},we)})})}function Wr(we){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${we.coursesId}/excellent_discusses.json`,{method:"get",params:c({},we)})})}function Qr(we){return a(this,null,function*(){return Fetch("/api/discusses.json",{method:"post",body:c({},we)})})}function on(we){return a(this,null,function*(){return(0,t.ZP)(`/api/stages/${we.stage_id}/items/move_position`,{method:"post",body:c({},we)})})}function ur(we){return a(this,null,function*(){return(0,t.ZP)(`/api/stages/${we.stage_id}/items/${we.id}`,{method:"delete"})})}function tr(we){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${we.id}/excellent_discuss`,{method:"post",body:c({},we)})})}function Vt(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}/post_discuss`,{method:"post",body:c({},we)})})}function Sr(we){return a(this,null,function*(){return(0,t.ZP)("/api/schools/for_option.json",{method:"get",params:we})})}function yr(we){return a(this,null,function*(){return(0,t.ZP)("/api/schools/province_data.json",{method:"get",params:we})})}function Ir(we){return a(this,null,function*(){return(0,t.ZP)("/api/add_school_applies.json",{method:"post",body:we})})}function mt(we){return a(this,null,function*(){return(0,t.ZP)(`/api/stages/${we==null?void 0:we.id}/add_homework_to_stage.json`,{method:"post",body:we})})}function Ze(we){return a(this,null,function*(){return(0,t.ZP)(`/api/stage_shixuns/${we==null?void 0:we.id}/edit.json`,{method:"get",params:we})})}function Ue(we){return a(this,null,function*(){return(0,t.ZP)(`/api/stage_shixuns/${we==null?void 0:we.id}.json`,{method:"put",body:we})})}function Me(we){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${we==null?void 0:we.user_id}/subjects/subject_homework.json`,{method:"get",params:we})})}function Ge(we){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${we==null?void 0:we.user_id}/courses/course_homework.json`,{method:"get",params:we})})}function Wt(we){return a(this,null,function*(){return(0,t.ZP)(`/api/stages/${we==null?void 0:we.id}/batch_add_homework_to_stage.json`,{method:"post",body:we})})}function Ft(we){return a(this,null,function*(){return(0,t.ZP)("/api/paths/get_homework_detail.json",{method:"get",params:we})})}function Ee(we){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${we==null?void 0:we.user_login}/subjects/cancel.json`,{method:"get",params:we})})}},31417:function(i,d,e){"use strict";e.d(d,{Fd:function(){return J},Hi:function(){return b},IU:function(){return $},KE:function(){return E},Kc:function(){return Z},MK:function(){return L},Q9:function(){return O},Qg:function(){return k},Qn:function(){return A},UK:function(){return p},W:function(){return M},Ye:function(){return D},_c:function(){return f},hO:function(){return V},iV:function(){return K},jy:function(){return R},kp:function(){return N},lf:function(){return C},m7:function(){return h},n$:function(){return I},rJ:function(){return T},s3:function(){return g},ux:function(){return P},vf:function(){return G},wh:function(){return z},wo:function(){return Q},x$:function(){return Y}});var t=e(99064),r=Object.defineProperty,n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(B,H,ee)=>H in B?r(B,H,{enumerable:!0,configurable:!0,writable:!0,value:ee}):B[H]=ee,c=(B,H)=>{for(var ee in H||(H={}))o.call(H,ee)&&u(B,ee,H[ee]);if(n)for(var ee of n(H))s.call(H,ee)&&u(B,ee,H[ee]);return B},a=(B,H,ee)=>new Promise((ae,le)=>{var pe=ze=>{try{He(ee.next(ze))}catch(rt){le(rt)}},ve=ze=>{try{He(ee.throw(ze))}catch(rt){le(rt)}},He=ze=>ze.done?ae(ze.value):Promise.resolve(ze.value).then(pe,ve);He((ee=ee.apply(B,H)).next())});const f=B=>a(void 0,null,function*(){return(0,t.ZP)(`/api/poll_questions/${B==null?void 0:B.id}/commit_word_cloud.json`,{method:"Get",params:B})});function g(B){return a(this,null,function*(){return(0,t.ZP)(`/api/polls/${B.categoryId}/poll_lists.json`,{method:"get",params:c({},B)})})}function p(B){return a(this,null,function*(){return(0,t.ZP)(`/api/polls/${B.categoryId}/common_header.json`,{method:"get"})})}function b(B){return a(this,null,function*(){return(0,t.ZP)(`/api/polls/${B.categoryId}/poll_setting.json`,{method:"get"})})}function h(B){return a(this,null,function*(){return(0,t.ZP)(`/api/polls/${B.categoryId}/commit_setting.json`,{method:"post",body:c({},B)})})}function E(B){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${B.coursesId}/polls/end_poll_modal.json`,{method:"get",params:c({},B)})})}function P(B){return a(this,null,function*(){return(0,t.ZP)(`/api/polls/${B.categoryId}/publish_groups.json`,{method:"get",params:c({},B)})})}function A(B){return a(this,null,function*(){return(0,t.ZP)(`/api/polls/${B.categoryId}/commit_result.json`,{method:"get",params:c({},B)})})}function I(B){return a(this,null,function*(){return(0,t.ZP)("/api/question_banks/bank_list.json",{method:"get",params:c({},B)})})}function C(B){return a(this,null,function*(){return(0,t.ZP)("/api/question_banks/save_banks.json",{method:"POST",body:c({},B)})})}function O(B){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${B.coursesId}/polls/publish_modal.json`,{method:"get",params:c({},B)})})}function T(B){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${B.coursesId}/polls.json`,{method:"POST",body:c({},B)})})}function D(B){return a(this,null,function*(){return(0,t.ZP)(`/api/polls/${B.categoryId}/edit.json`,{method:"get"})})}function k(B){return a(this,null,function*(){return(0,t.ZP)(`/api/polls/${B.pollsId}.json`,{method:"put",body:c({},B)})})}function $(B){return a(this,null,function*(){return(0,t.ZP)(`/api/poll_questions/${B.pollsId}.json`,{method:"put",body:c({},B)})})}function L(B){return a(this,null,function*(){return(0,t.ZP)(`/api/polls/${B.pollsId}/poll_questions.json`,{method:"post",body:c({},B)})})}function R(B){return a(this,null,function*(){return(0,t.ZP)(`/api/poll_questions/${B.pollsId}.json`,{method:"delete",body:c({},B)})})}function z(B){return a(this,null,function*(){return(0,t.ZP)(`/api/poll_questions/${B.pollsId}/up_down.json`,{method:"post",body:c({},B)})})}function N(B){return a(this,null,function*(){return(0,t.ZP)(`/api/exercise_banks/${B.topicId}.json`,{method:"get"})})}function V(B){return a(this,null,function*(){return(0,t.ZP)(`/api/exercise_banks/${B.topicId}.json`,{method:"put",body:c({},B)})})}function j(B){return a(this,null,function*(){return Fetch(`/api/exercise_banks/${B.topicId}.json`,{method:"put",body:c({},B)})})}function Y(B){return a(this,null,function*(){return(0,t.ZP)(`/api/exercise_bank_questions/${B.pollsId}.json`,{method:"delete",body:c({},B)})})}function G(B){return a(this,null,function*(){return(0,t.ZP)(`/api/poll_questions/${B.pollsId}/up_down.json`,{method:"post",body:c({},B)})})}function J(B){return a(this,null,function*(){return(0,t.ZP)("/api/poll_bank_questions.json",{method:"post",body:c({},B)})})}function Q(B){return a(this,null,function*(){return(0,t.ZP)(`/api/poll_bank_questions/${B.pollsId}.json`,{method:"put",body:c({},B)})})}function Z(B){return a(this,null,function*(){return(0,t.ZP)(`/api/exercise_bank_questions/${B.id}.json`,{method:"put",body:c({},B)})})}function K(B){return a(this,null,function*(){return(0,t.ZP)("/api/exercise_bank_questions.json",{method:"post",body:c({},B)})})}function M(B){return a(this,null,function*(){return(0,t.ZP)(`/api/exercise_bank_questions/${B.exerciseId}/up_down.json`,{method:"post",body:c({},B)})})}},16149:function(i,d,e){"use strict";e.d(d,{$c:function(){return et},A1:function(){return Ke},Bd:function(){return O},Bo:function(){return j},Cc:function(){return J},Cn:function(){return K},DF:function(){return I},Dm:function(){return ge},FG:function(){return V},GW:function(){return Be},HF:function(){return L},Hm:function(){return B},IJ:function(){return Re},L5:function(){return St},LS:function(){return tt},MZ:function(){return Ce},Mr:function(){return N},NZ:function(){return He},Of:function(){return P},Pl:function(){return A},Qj:function(){return h},Qp:function(){return Pt},RT:function(){return me},Rp:function(){return Tt},U6:function(){return R},Vl:function(){return Q},Wk:function(){return z},YP:function(){return M},Ys:function(){return D},al:function(){return T},bF:function(){return Je},d1:function(){return b},dt:function(){return jt},et:function(){return ee},ex:function(){return E},fY:function(){return ae},fn:function(){return C},hI:function(){return ze},hg:function(){return xe},iT:function(){return Y},lS:function(){return ve},nD:function(){return Xe},qN:function(){return H},rV:function(){return k},s:function(){return pe},sD:function(){return Le},sS:function(){return yt},ts:function(){return G},vi:function(){return Ne},wX:function(){return je},x5:function(){return $},zh:function(){return le}});var t=e(99064),r=Object.defineProperty,n=Object.defineProperties,o=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,a=(ke,xt,ct)=>xt in ke?r(ke,xt,{enumerable:!0,configurable:!0,writable:!0,value:ct}):ke[xt]=ct,f=(ke,xt)=>{for(var ct in xt||(xt={}))u.call(xt,ct)&&a(ke,ct,xt[ct]);if(s)for(var ct of s(xt))c.call(xt,ct)&&a(ke,ct,xt[ct]);return ke},g=(ke,xt)=>n(ke,o(xt)),p=(ke,xt,ct)=>new Promise((ft,st)=>{var Zt=lt=>{try{ce(ct.next(lt))}catch(qe){st(qe)}},it=lt=>{try{ce(ct.throw(lt))}catch(qe){st(qe)}},ce=lt=>lt.done?ft(lt.value):Promise.resolve(lt.value).then(Zt,it);ce((ct=ct.apply(ke,xt)).next())});function b(ke){return p(this,null,function*(){return(0,t.ZP)("/api/disciplines.json",{method:"get",params:g(f({},ke),{clazz:"ItemBanksGroup"})})})}function h(ke){return p(this,null,function*(){return(0,t.ZP)("/api/item_baskets/basket_list.json",{method:"get",params:ke})})}function E(ke){return p(this,null,function*(){return(0,t.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:ke})})}function P(ke){return p(this,null,function*(){return(0,t.ZP)("/api/item_banks/list.json",{method:"post",body:ke})})}function A(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/item_banks/${ke.id}/set_private.json`,{method:"post"})})}function I(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/item_banks/${ke.id}/set_public.json`,{method:"post"})})}function C(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/item_banks/${ke.id}.json`,{method:"delete"})})}function O(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/problems/${ke.id}/start.json`,{method:"get"})})}function T(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/item_baskets/${ke.id}.json`,{method:"delete",body:f({},ke)})})}function D(ke){return p(this,null,function*(){return(0,t.ZP)("/api/item_baskets.json",{method:"post",body:ke})})}function k(ke){return p(this,null,function*(){return(0,t.ZP)("/api/examination_banks/cancel_items.json",{method:"post",body:ke})})}function $(ke){return p(this,null,function*(){return(0,t.ZP)("/api/item_baskets/delete_item_type.json",{method:"delete",body:{item_type:ke.type}})})}function L(ke){return p(this,null,function*(){return(0,t.ZP)("/api/examination_banks/cancel_items.json",{method:"post",body:ke})})}function R(ke){return p(this,null,function*(){return(0,t.ZP)("/api/tag_disciplines.json",{method:"post",body:ke})})}function z(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/item_banks/${ke.id}.json`,{method:"put",body:ke})})}function N(ke){return p(this,null,function*(){return(0,t.ZP)("/api/item_banks.json",{method:"post",body:ke})})}function V(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/item_banks/${ke.id}/edit.json`,{method:"get"})})}function j(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/problems/${ke.id}/edit.json`,{method:"get"})})}function Y(ke){return p(this,null,function*(){return(0,t.ZP)("/api/item_baskets.json",{method:"get",params:ke})})}function G(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/item_baskets/${ke.id}/set_score.json`,{method:"post",body:ke})})}function J(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/item_baskets/${ke.id}/set_challenge_score.json`,{method:"post",body:ke})})}function Q(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/item_baskets/${ke.id}/combination_set_score.json`,{method:"post",body:ke})})}function Z(ke){return p(this,null,function*(){return Fetch(`/api/examination_banks//${ke.exerid}/examination_banks_item_banks/${ke.id}/combination_set_score.json`,{method:"post",body:ke})})}function K(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/item_baskets/${ke.id}.json`,{method:"delete"})})}function M(ke){return p(this,null,function*(){return(0,t.ZP)("/api/item_baskets/batch_set_score.json",{method:"post",body:ke})})}function B(ke){return p(this,null,function*(){return(0,t.ZP)("/api/item_baskets/delete_item_type.json",{method:"delete",body:ke})})}function H(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/item_baskets/${ke.id}/adjust_position.json`,{method:"post",body:ke})})}function ee(ke){return p(this,null,function*(){return(0,t.ZP)("/api/examination_banks.json",{method:"post",body:ke})})}function ae(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ke.id}/revoke_item.json`,{method:"delete",body:ke})})}function le(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ke.exam_id}/examination_banks_item_banks.json`,{method:"post",body:ke})})}function pe(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/item_banks/${ke.id}/join_to_collection.json`,{method:"post",params:ke})})}function ve(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/item_banks/${ke.id}/cancel_collection.json`,{method:"post",params:ke})})}function He(ke){return p(this,null,function*(){return(0,t.ZP)("/api/item_banks_groups.json",{method:"get",params:ke})})}function ze(ke){return p(this,null,function*(){return(0,t.ZP)("/api/item_banks_groups/mine.json",{method:"get",params:ke})})}function rt(ke){return p(this,null,function*(){return Fetch(`/api/item_banks/${ke.id}/join_to_group.json`,{method:"post",body:ke})})}function ot(ke){return p(this,null,function*(){return Fetch(`/api/item_banks_groups/${ke.id}.json`,{method:"put",body:ke})})}function yt(ke){return p(this,null,function*(){return(0,t.ZP)("/api/item_banks_groups.json",{method:"post",body:ke})})}function St(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/item_banks/${ke.id}/feedback.json`,{method:"post",body:ke})})}function ge(ke){return p(this,null,function*(){return(0,t.ZP)("/api/teach_group_shares.json",{method:"get",params:ke})})}function Be(ke){return p(this,null,function*(){return(0,t.ZP)("/api/teach_group_shares.json",{method:"post",body:ke})})}function Xe(ke){return p(this,null,function*(){return(0,t.ZP)("/api/item_banks/batch_delete.json",{method:"post",body:ke})})}function tt(ke){return p(this,null,function*(){return(0,t.ZP)("/api/item_banks/batch_to_group.json",{method:"post",body:ke})})}function Tt(ke){return p(this,null,function*(){return(0,t.ZP)("/api/item_banks/add_to_mine.json",{method:"post",body:ke})})}function Pt(ke){return p(this,null,function*(){return(0,t.ZP)("/api/item_banks/set_batch_public.json",{method:"post",body:ke})})}function je(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/item_banks/${ke==null?void 0:ke.id}/set_public.json`,{method:"post",body:ke})})}function xe(ke){return p(this,null,function*(){return(0,t.ZP)("/api/teach_group_shares/show_groups.json",{method:"get",params:ke})})}function Ce(ke){return(0,t.ZP)(`/api/problems/${ke.identifier}/publish.json`,{method:"post",body:ke})}function Le(ke){return(0,t.ZP)(`/api/problems/${ke.identifier}/cancel_publish.json`,{method:"post",body:ke})}function Re(ke){return(0,t.ZP)("/api/item_banks/cancel_public.json",{method:"post",body:{ids:[...ke.id]}})}function Ke(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/item_banks_groups/${ke.id}/up_position.json`,{method:"get",params:ke})})}function Ne(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/item_banks_groups/${ke.id}/down_position.json`,{method:"get",params:ke})})}function et(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${ke.id}/edit_hack.json`,{method:"get",params:ke})})}function Je(ke){return p(this,null,function*(){return(0,t.ZP)("/api/problems/batch_publish_condition.json",{method:"post",body:ke})})}function jt(ke){return p(this,null,function*(){return(0,t.ZP)("/api/problems/batch_publish.json",{method:"post",body:ke})})}function Gt(ke){return p(this,null,function*(){return Fetch("/api/item_banks/get_groups.json",{method:"get",params:ke})})}function me(){return p(this,null,function*(){return(0,t.ZP)("/api/item_baskets/delete_all_items.json",{method:"delete"})})}},52403:function(i,d,e){"use strict";e.d(d,{E1:function(){return s},Go:function(){return n},H5:function(){return o}});var t=e(99064),r=(u,c,a)=>new Promise((f,g)=>{var p=E=>{try{h(a.next(E))}catch(P){g(P)}},b=E=>{try{h(a.throw(E))}catch(P){g(P)}},h=E=>E.done?f(E.value):Promise.resolve(E.value).then(p,b);h((a=a.apply(u,c)).next())});function n(u){return r(this,null,function*(){return(0,t.ZP)("/api/restfuls.json",{method:"get",params:u})})}function o(u){return r(this,null,function*(){return(0,t.ZP)(`/api/restfuls/${u.id}.json`,{method:"get",params:u})})}function s(u){return r(this,null,function*(){return(0,t.ZP)(`/api/restfuls/${u.id}.json`,{method:"delete",params:u})})}},36708:function(i,d,e){"use strict";e.d(d,{Am:function(){return h},Ar:function(){return ge},BD:function(){return Ne},Be:function(){return je},Dx:function(){return Q},Fr:function(){return qe},G$:function(){return A},GS:function(){return R},Gw:function(){return P},H:function(){return yt},H1:function(){return St},Hj:function(){return Je},JA:function(){return Gt},JG:function(){return J},KE:function(){return M},Lz:function(){return Re},Mf:function(){return ot},NA:function(){return ze},PC:function(){return ve},PP:function(){return He},PW:function(){return tt},Q3:function(){return Z},QC:function(){return me},Qt:function(){return Ke},Qz:function(){return O},R$:function(){return ce},RP:function(){return V},Ti:function(){return or},Uc:function(){return ft},Ul:function(){return Y},VB:function(){return vr},Vs:function(){return st},Wr:function(){return I},Xn:function(){return j},YQ:function(){return rt},Yn:function(){return E},Z8:function(){return $},ak:function(){return Xe},cN:function(){return D},co:function(){return xe},cz:function(){return le},fK:function(){return L},gG:function(){return pe},gZ:function(){return ct},h$:function(){return k},ku:function(){return Le},lf:function(){return H},m7:function(){return G},mQ:function(){return T},mz:function(){return Pt},n$:function(){return B},oK:function(){return b},oN:function(){return nt},pH:function(){return et},pb:function(){return Rt},qP:function(){return ke},ql:function(){return xt},rN:function(){return Ce},sw:function(){return ee},t1:function(){return ae},to:function(){return N},ub:function(){return jt},ux:function(){return K},wS:function(){return wt},wT:function(){return C},yT:function(){return Be},yy:function(){return Zt},z2:function(){return Tt}});var t=e(99064),r=Object.defineProperty,n=Object.defineProperties,o=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,a=(Te,Dt,sr)=>Dt in Te?r(Te,Dt,{enumerable:!0,configurable:!0,writable:!0,value:sr}):Te[Dt]=sr,f=(Te,Dt)=>{for(var sr in Dt||(Dt={}))u.call(Dt,sr)&&a(Te,sr,Dt[sr]);if(s)for(var sr of s(Dt))c.call(Dt,sr)&&a(Te,sr,Dt[sr]);return Te},g=(Te,Dt)=>n(Te,o(Dt)),p=(Te,Dt,sr)=>new Promise((fr,kr)=>{var hr=Wr=>{try{Nr(sr.next(Wr))}catch(Qr){kr(Qr)}},_r=Wr=>{try{Nr(sr.throw(Wr))}catch(Qr){kr(Qr)}},Nr=Wr=>Wr.done?fr(Wr.value):Promise.resolve(Wr.value).then(hr,_r);Nr((sr=sr.apply(Te,Dt)).next())});const b=Te=>p(void 0,null,function*(){return(0,t.ZP)(`/api/student_works/${Te.id}/update_journals.json`,{method:"post",body:Te})}),h=Te=>p(void 0,null,function*(){return(0,t.ZP)(`/api/student_works/${Te==null?void 0:Te.homeworkId}/change_score.json`,{method:"post",body:Te})}),E=Te=>p(void 0,null,function*(){return(0,t.ZP)(`/api/student_works/${Te==null?void 0:Te.homeworkId}/history_comment`,{method:"Get",params:Te})}),P=Te=>p(void 0,null,function*(){return(0,t.ZP)(`/api/student_works/${Te==null?void 0:Te.homeworkId}/feedback_know`,{method:"Get",params:Te})}),A=Te=>p(void 0,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te==null?void 0:Te.userId}/student_work_feedbacks.json`,{method:"POST",body:Te})}),I=Te=>p(void 0,null,function*(){return(0,t.ZP)(`/api/student_works/${Te==null?void 0:Te.userId}/feedback_list.json`,{method:"Get",params:Te})}),C=Te=>p(void 0,null,function*(){return(0,t.ZP)(`/api/student_works/${Te==null?void 0:Te.userId}/histories.json`,{method:"Get",params:Te})}),O=Te=>p(void 0,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te==null?void 0:Te.homeworkId}/feedback_list`,{method:"Get",params:Te})}),T=Te=>p(void 0,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te==null?void 0:Te.homeworkId}/anonymous_exception_list.json`,{method:"Get",params:Te})}),D=Te=>p(void 0,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te==null?void 0:Te.homeworkId}/appeal_list`,{method:"Get",params:Te})});function k(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.categoryId}/works_list.json`,{method:"post",body:f({},Te)})})}function $(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/shixun_homeworks/${Te.categoryId}/student_works.json`,{method:"get",params:f({},Te)})})}function L(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/shixun_homeworks/${Te.categoryId}/header_info.json`,{method:"get",params:f({},Te)})})}function R(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Te}/query_game_url.json`,{method:"get"})})}function z(Te){return p(this,null,function*(){return Fetch(`/api/student_works/${Te}/get_newest_shixun_work_comments.json`,{method:"get"})})}function N(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.categoryId}.json`,{method:"get"})})}function V(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.categoryId}/code_review_results.json`,{method:"get",params:f({},Te)})})}function j(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.categoryId}/code_review_detail.json`,{method:"get",params:f({},Te)})})}function Y(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.categoryId}/settings.json`,{method:"get",params:f({},Te)})})}function G(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.categoryId}/update_settings.json`,{method:"post",body:f({},Te)})})}function J(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.categoryId}/group_list.json`,{method:"get",params:f({},Te)})})}function Q(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.categoryId}/works_list.xlsx`,{method:"get",params:f({},Te)})})}function Z(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.coursesId}/reference_answer.json`,{method:"get",params:f({},Te)})})}function K(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.categoryId}/publish_groups.json`,{method:"get",params:f({},Te)})})}function M(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.categoryId}/end_groups.json`,{method:"get",params:f({},Te)})})}function B(Te){return p(this,null,function*(){return(0,t.ZP)("/api/question_banks/bank_list.json",{method:"get",params:f({},Te)})})}function H(Te){return p(this,null,function*(){return(0,t.ZP)("/api/question_banks/save_banks.json",{method:"post",body:f({},Te)})})}function ee(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Te.homeworkId}/shixun_work_report.json`,{method:"get",params:Te})})}function ae(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Te.homeworkId}/shixun_work_report_echart_data.json`,{method:"get",params:Te})})}function le(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/courses/${Te.coursesId}/homework_commons/user_hack_detail.json`,{method:"get",params:g(f({},Te),{id:Te.categoryId})})})}function pe(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Te.categoryId}/adjust_review_score.json`,{method:"post",body:f({},Te)})})}function ve(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.categoryId}/show_comment.json`,{method:"get",params:f({},Te)})})}function He(Te){return p(this,null,function*(){return(0,t.ZP)("/api/users/reply_message.json",{method:"post",body:f({},Te)})})}function ze(Te){return p(this,null,function*(){return(0,t.ZP)("/api/praise_tread/like.json",{method:"post",body:f({},Te)})})}function rt(Te){return p(this,null,function*(){return(0,t.ZP)("/api/praise_tread/unlike.json",{method:"delete",body:f({},Te)})})}function ot(Te){return p(this,null,function*(){return(0,t.ZP)("/api/commons/delete.json",{method:"delete",body:f({},Te)})})}function yt(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.categoryId}/update_explanation.json`,{method:"post",body:f({},Te)})})}function St(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/courses/${Te.coursesId}/homework_commons.json`,{method:"post",body:f({},Te)})})}function ge(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.categoryId}.json`,{method:"put",body:f({},Te)})})}function Be(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_banks/${Te.id}.json`,{method:"put",body:f({},Te)})})}function Xe(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.commonHomeworkId}/student_works/new.json`,{method:"get",params:f({},Te)})})}function tt(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Te.homeworkId}/edit.json`,{method:"get",params:f({},Te)})})}function Tt(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Te.homeworkId}.json`,{method:"put",body:f({},Te)})})}function Pt(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Te.homeworkId}/revise_attachment.json`,{method:"post",body:f({},Te)})})}function je(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.commonHomeworkId}/student_works.json`,{method:"post",body:f({},Te)})})}function xe(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.homeworkId}/student_works/relate_project.json`,{method:"post",body:f({},Te)})})}function Ce(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.homeworkId}/student_works/cancel_relate_project.json`,{method:"get"})})}function Le(Te){return p(this,null,function*(){return(0,t.ZP)("/api/users/projects/search.json",{method:"get",params:f({},Te)})})}function Re(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.commonHomeworkId}/student_works/search_member_list.json`,{method:"get",params:f({},Te)})})}function Ke(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/courses/${Te.coursesId}/homework_commons/new.json`,{method:"get",params:f({},Te)})})}function Ne(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.categoryId}/edit.json`,{method:"get",params:f({},Te)})})}function et(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_banks/${Te.id}.json`,{method:"get",params:f({},Te)})})}function Je(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Te.userId}.json`,{method:"get",params:f({},Te)})})}function jt(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Te.userId}/supply_attachments.json`,{method:"get",params:f({},Te)})})}function Gt(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Te.userId}/comment_list.json`,{method:"get",params:f({},Te)})})}function me(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Te.userId}/destroy_score.json`,{method:"delete",body:f({},Te)})})}function ke(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Te.userId}/add_score_reply.json`,{method:"post",body:f({},Te)})})}function xt(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.categoryId}/all_student_works.json`,{method:"get",params:f({},Te)})})}function ct(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Te.homeworkId}/destroy_work_comment.json`,{method:"delete",body:f({},Te)})})}function ft(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.categoryId}/score_status.json`,{method:"get",params:f({},Te)})})}function st(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.categoryId}/update_score.json`,{method:"get",params:f({},Te)})})}function Zt(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Te.userId}/add_score.json`,{method:"post",body:f({},Te)})})}function it(Te){return p(this,null,function*(){return Fetch(`/api/student_works/${Te.userId}/cancel_appeal.json`,{method:"post",body:f({},Te)})})}function ce(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Te.userId}/appeal_anonymous_score.json`,{method:"post",body:f({},Te)})})}function lt(Te){return p(this,null,function*(){return Fetch(`/api/student_works/${Te.userId}/deal_appeal_score.json`,{method:"post",body:f({},Te)})})}function qe(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/myshixuns/${Te.id}/reset_my_game.json`,{method:"get",params:f({},Te)})})}function wt(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Te.homeworkId}/commit_des.json`,{method:"get",params:f({},Te)})})}function Rt(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Te.homeworkId}/update_des.json`,{method:"post",body:f({},Te)})})}function vr(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/courses/${Te.coursesId}/homework_commons/file_repeat_list.json`,{method:"get",params:f({},Te)})})}function nt(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/courses/${Te.coursesId}/homework_commons/file_repeat_result.json`,{method:"get",params:f({},Te)})})}function or(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/courses/${Te.course_id}/homework_commons/file_repeat_detail.json`,{method:"get",params:f({},Te)})})}},49692:function(i,d,e){"use strict";e.d(d,{$Q:function(){return rr},AE:function(){return hr},AQ:function(){return M},Ag:function(){return mt},Ar:function(){return Be},At:function(){return Kn},BK:function(){return ee},Bj:function(){return ke},Cf:function(){return A},DC:function(){return Gt},Dz:function(){return ba},E4:function(){return b},EH:function(){return Tt},Ee:function(){return ta},Er:function(){return St},Ez:function(){return C},FB:function(){return H},Fg:function(){return G},Ft:function(){return z},GI:function(){return xe},Gr:function(){return ft},Gu:function(){return je},Gz:function(){return Y},HS:function(){return Ut},Hl:function(){return V},IF:function(){return $},IT:function(){return yr},I_:function(){return Z},Ij:function(){return L},Ir:function(){return ae},Je:function(){return Wt},K:function(){return la},K0:function(){return Nn},KM:function(){return ze},K_:function(){return en},LK:function(){return Ft},LP:function(){return Ce},Ne:function(){return yt},OL:function(){return I},OQ:function(){return h},OV:function(){return Re},OW:function(){return tt},Op:function(){return Jr},P2:function(){return Ne},P4:function(){return R},Po:function(){return K},Ps:function(){return st},Q:function(){return ot},Q1:function(){return Ra},QA:function(){return ye},Ql:function(){return it},Rs:function(){return Te},SG:function(){return ht},Tn:function(){return Nr},Tr:function(){return De},U0:function(){return wt},U9:function(){return Zt},UQ:function(){return tr},Ui:function(){return sn},Vx:function(){return Ae},WO:function(){return ge},WT:function(){return Pe},Wi:function(){return xt},Wl:function(){return Ze},X$:function(){return et},Yn:function(){return Qr},Z2:function(){return me},ZO:function(){return ct},Zt:function(){return Oa},_7:function(){return rt},_9:function(){return on},aH:function(){return ce},al:function(){return nt},b8:function(){return Xe},bV:function(){return k},bk:function(){return P},bq:function(){return Wr},dK:function(){return le},e:function(){return J},eX:function(){return Pt},eb:function(){return Dt},fH:function(){return O},fL:function(){return Ge},h4:function(){return Ya},hS:function(){return j},h_:function(){return jt},he:function(){return Q},hn:function(){return ve},hy:function(){return T},ii:function(){return or},im:function(){return ur},j8:function(){return Le},jq:function(){return br},kF:function(){return we},km:function(){return vr},l3:function(){return Ke},m7:function(){return qe},mI:function(){return Ie},n5:function(){return B},np:function(){return D},nu:function(){return Ee},p0:function(){return Sr},q0:function(){return kr},q9:function(){return gn},qA:function(){return Bn},rO:function(){return fr},rs:function(){return He},sr:function(){return Vt},t2:function(){return Ir},tX:function(){return Sa},uo:function(){return Rt},v3:function(){return Me},w:function(){return Ue},wX:function(){return N},xK:function(){return _r},xM:function(){return E},xg:function(){return sr},xk:function(){return Je},yE:function(){return lt},yx:function(){return pt},zD:function(){return pe},zH:function(){return dn}});var t=e(99064),r=Object.defineProperty,n=Object.defineProperties,o=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,a=(ue,se,he)=>se in ue?r(ue,se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ue[se]=he,f=(ue,se)=>{for(var he in se||(se={}))u.call(se,he)&&a(ue,he,se[he]);if(s)for(var he of s(se))c.call(se,he)&&a(ue,he,se[he]);return ue},g=(ue,se)=>n(ue,o(se)),p=(ue,se,he)=>new Promise((X,Ye)=>{var Ct=Mt=>{try{Bt(he.next(Mt))}catch(Kt){Ye(Kt)}},Qt=Mt=>{try{Bt(he.throw(Mt))}catch(Kt){Ye(Kt)}},Bt=Mt=>Mt.done?X(Mt.value):Promise.resolve(Mt.value).then(Ct,Qt);Bt((he=he.apply(ue,se)).next())});const b=ue=>p(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls/commit_result.json",{method:"get",params:ue})}),h=ue=>p(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls/edit.json",{method:"get",params:ue})}),E=ue=>p(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls/select_polls.json",{method:"post",body:ue})}),P=ue=>p(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls/select_polls_list.json",{method:"get",params:ue})}),A=ue=>p(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls/commit_poll.json",{method:"post",body:ue})}),I=ue=>p(void 0,null,function*(){return(0,t.ZP)(`/api/poll_questions/${ue==null?void 0:ue.questionId}/poll_votes.json`,{method:"post",body:ue})}),C=ue=>p(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls.json",{method:"put",body:ue})}),O=ue=>p(void 0,null,function*(){return(0,t.ZP)(`/api/poll_questions/${ue==null?void 0:ue.poll_question_id}/up_down.json`,{method:"post",body:ue})}),T=ue=>p(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls.json",{method:"post",body:ue})}),D=ue=>p(void 0,null,function*(){return(0,t.ZP)(`/api/poll_questions/${ue==null?void 0:ue.poll_question_id}.json`,{method:"put",body:ue})}),k=ue=>p(void 0,null,function*(){return(0,t.ZP)("/api/poll_questions.json",{method:"post",body:ue})}),$=ue=>p(void 0,null,function*(){return(0,t.ZP)(`/api/poll_questions/${ue==null?void 0:ue.poll_question_id}.json`,{method:"delete"})}),L=ue=>p(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls/collect.json",{method:"post",body:ue})}),R=ue=>p(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls/publish.json",{method:"post",body:ue})}),z=ue=>p(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls/delete.json",{method:"post",body:ue})}),N=ue=>p(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls/start_answer.json",{method:"Get",params:ue})}),V=ue=>p(void 0,null,function*(){return(0,t.ZP)("/api/shixun_statistics/statistics_header.json",{method:"Get",params:ue})}),j=ue=>p(void 0,null,function*(){return(0,t.ZP)("/api/shixun_statistics/online_count.json",{method:"Get",params:ue})}),Y=ue=>p(void 0,null,function*(){return(0,t.ZP)("/api/shixun_statistics/statistics_body.json",{method:"Get",params:ue})}),G=ue=>p(void 0,null,function*(){return(0,t.ZP)("/api/shixun_statistics/rank_list.json",{method:"Get",params:ue})}),J=ue=>p(void 0,null,function*(){return(0,t.ZP)("/api/shixun_statistics/shixun_use_infos.json",{method:"Get",params:ue})});function Q(ue){return p(this,null,function*(){return(0,t.ZP)("/api/shixuns.json",{method:"Get",params:f({},ue)})})}function Z(ue){return p(this,null,function*(){return(0,t.ZP)("/api/disciplines.json",{method:"Get",params:f({source:"shixun"},ue||{})})})}function K(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}.json`,{method:"Get",params:ue})})}function M(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/show_right.json`,{method:"Get"})})}function B(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/challenges.json`,{method:"Get"})})}function H(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/save_copy_for_exercise.json`,{method:"post",body:{save_type:ue.save_type}})})}function ee(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/jupyter_exec.json${ue.reset?`?reset=${ue.reset}`:""}`,{method:"Get",params:ue})})}function ae(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/shixun_exec.json${ue.reset?`?reset=${ue.reset}`:""}`,{method:"Get",params:ue})})}function le(ue){return p(this,null,function*(){return(0,t.ZP)(ue.url,{method:"Get"})})}function pe(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.shixun_identifier}/challenges/${ue.challenge_id}/index_up.json`,{method:"Get"})})}function ve(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.shixun_identifier}/challenges/${ue.challenge_id}/index_down.json`,{method:"Get"})})}function He(ue){return p(this,null,function*(){return(0,t.ZP)("/api/collections/cancel.json",{method:"Delete",body:{container_id:ue.container_id,container_type:ue.container_type}})})}function ze(ue){return p(this,null,function*(){return(0,t.ZP)("/api/collections.json",{method:"Post",body:{container_id:ue.container_id,container_type:ue.container_type}})})}function rt(ue){return p(this,null,function*(){const{id:se}=ue||{};return(0,t.ZP)(`/api/shixuns/${se}/search_user_courses.json`,{method:"Get",params:ue})})}function ot(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue==null?void 0:ue.id}/send_to_course.json`,{method:"Post",body:f({},ue)})})}function yt(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/cancel_publish.json`,{method:"Get"})})}function St(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/cancel_apply_public.json`,{method:"Get"})})}function ge(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/apply_public.json`,{method:"post",body:f({},ue)})})}function Be(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/publish.json`,{method:"Get"})})}function Xe(ue){return p(this,null,function*(){return(0,t.ZP)("/api/shixuns/jupyter_new.json",{method:"Get"})})}function tt(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/attachments/${ue.id}.json`,{method:"delete"})})}function Tt(ue){return p(this,null,function*(){return(0,t.ZP)("/api/shixuns/apply_shixun_mirror.json",{method:"post",body:ue})})}function Pt(ue){return p(this,null,function*(){return(0,t.ZP)("/api/shixuns.json",{method:"post",body:ue})})}function je(ue){return p(this,null,function*(){return(0,t.ZP)("/api/shixuns/jupyter_lab_new.json",{method:"get",params:ue})})}function xe(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/review_newest_record.json`,{method:"Get"})})}function Ce(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/review_shixun.json`,{method:"post",body:ue})})}function Le(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/collaborators.json`,{method:"Get",params:ue})})}function Re(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/shixun_members_added.json`,{method:"post",body:ue})})}function Ke(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.identifier}/add_members_group.json`,{method:"post",body:ue})})}function Ne(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/change_manager.json`,{method:"Get",params:ue})})}function et(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/change_manager.json`,{method:"post",body:ue})})}function Je(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/collaborators_delete.json`,{method:"delete",body:{user_id:ue.userId}})})}function jt(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/ranking_list.json`,{method:"Get"})})}function Gt(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/settings.json`,{method:"Get"})})}function me(ue){return p(this,null,function*(){return(0,t.ZP)("/api/shixuns/get_mirror_script.json",{method:"Get",params:{mirror_id:ue.mirror_id}})})}function ke(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/get_script_contents.json`,{method:"Get",params:ue})})}function xt(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/get_custom_script.json`,{method:"Get",params:ue})})}function ct(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/update_for_jupyter.json`,{method:"put",body:ue})})}function ft(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/shixun_quotes.json`,{method:"Get"})})}function st(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}.json`,{method:"delete"})})}function Zt(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/close.json`,{method:"post",body:ue})})}function it(ue){return p(this,null,function*(){return(0,t.ZP)("/api/shixuns/departments.json",{method:"Get",params:ue})})}function ce(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/update_permission_setting.json`,{method:"post",body:ue})})}function lt(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/update_learn_setting.json`,{method:"post",body:ue})})}function qe(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/update_setting`,{method:"post",body:ue})})}function wt(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/get_data_sets.json`,{method:"Get",params:ue})})}function Rt(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/destroy_data_sets.json`,{method:"Delete",body:{id:ue.deleteId}})})}function vr(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/challenges/new.json`,{method:"get"})})}function nt(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.identifier}/challenges.json`,{method:"post",body:f({},ue)})})}function or(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/challenges/${ue.challengeId}/edit.json`,{method:"get",params:{tab:ue.tab}})})}function Te(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/challenges/${ue.challengesId}.json`,{method:"put",body:f({},ue)})})}function Dt(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/challenges/${ue.challengesId}/choose_questions.json`,{method:"get"})})}function sr(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/challenges/move_position.json`,{method:"post",body:f({},ue)})})}function fr(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/challenges/${ue.challengesId}.json`,{method:"delete",body:f({},ue)})})}function kr(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/challenges/${ue.challengesId}/edit.json`,{method:"get",params:f({},ue)})})}function hr(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/challenges/${ue.challengeId}/answer.json`,{method:"get",params:f({},ue)})})}function _r(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/challenges/${ue.challengeId}/crud_answer.json`,{method:"post",body:f({},ue)})})}function Nr(ue){return p(this,null,function*(){if(ue.type===1)return(0,t.ZP)(`/api/shixuns/${ue.id}/challenges/${ue.challengesId}/create_choose_question.json`,{method:"post",body:f({},ue)});if(ue.type===2)return(0,t.ZP)(`/api/shixuns/${ue.id}/challenges/${ue.challengesId}/create_blank_question.json`,{method:"post",body:f({},ue)});if(ue.type===3)return(0,t.ZP)(`/api/shixuns/${ue.id}/challenges/${ue.challengesId}/create_judge_question.json`,{method:"post",body:f({},ue)})})}function Wr(ue){return p(this,null,function*(){if(ue.type===1)return(0,t.ZP)(`/api/shixuns/${ue.id}/challenges/${ue.challengesId}/update_choose_question.json`,{method:"post",body:g(f({},ue),{choose_id:ue.questionId})});if(ue.type===2)return(0,t.ZP)(`/api/shixuns/${ue.id}/challenges/${ue.challengesId}/update_blank_question.json`,{method:"put",body:g(f({},ue),{choose_id:ue.questionId})});if(ue.type===3)return(0,t.ZP)(`/api/shixuns/${ue.id}/challenges/${ue.challengesId}/update_judge_question.json`,{method:"put",body:g(f({},ue),{choose_id:ue.questionId})})})}function Qr(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/challenges/${ue.challengesId}/destroy_challenge_choose.json`,{method:"Delete",body:{choose_id:ue.questionId}})})}function on(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/challenges/${ue.challengesId}/choose_question_up_position.json`,{method:"post",body:{challenge_choose_id:ue.questionId}})})}function ur(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/challenges/${ue.challengesId}/choose_question_down_position.json`,{method:"post",body:{challenge_choose_id:ue.questionId}})})}function tr(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/challenges/${ue.challengesId}/edit_choose_question.json`,{method:"get",params:g(f({},ue),{choose_id:ue.questionId})})})}function Vt(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/delete_git_file.json`,{method:"Delete",body:ue})})}function Sr(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/sci/projects/${ue.id}/delete_git_file.json`,{method:"Delete",body:ue})})}function yr(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/mv_file.json`,{method:"post",body:ue})})}function Ir(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/sci/projects/${ue.id}/mv_file.json`,{method:"post",body:ue})})}function mt(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/repository.json`,{method:"post",body:ue})})}function Ze(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/sci/projects/${ue.id}/repository.json`,{method:"post",body:ue})})}function Ue(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/secret_repository.json`,{method:"post",body:ue})})}function Me(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/add_file.json`,{method:"post",body:ue})})}function Ge(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/sci/projects/${ue.id}/add_file.json`,{method:"post",body:ue})})}function Wt(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/commits.json`,{method:"post",body:ue})})}function Ft(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/file_content.json`,{method:"post",body:ue})})}function Ee(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/sci/projects/${ue.id}/file_content.json`,{method:"post",body:ue})})}function we(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/update_file.json`,{method:"post",body:ue})})}function br(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/sci/projects/${ue.id}/update_file.json`,{method:"post",body:ue})})}function Jr(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/upload_git_folder.json`,{method:"post",body:{path:ue.path,secret_repository:ue.secret_repository}})})}function rr(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/${ue.url}`,{method:"Get"})})}function sn(ue){return p(this,null,function*(){return(0,t.ZP)("/api/jupyters/get_info_with_tpm.json",{method:"Get",params:ue})})}function en(ue){return p(this,null,function*(){return(0,t.ZP)("/api/jupyters/timeinfo_with_tpm.json",{method:"Get",params:ue})})}function dn(ue){return p(this,null,function*(){return(0,t.ZP)("/api/jupyters/reset_with_tpm.json",{method:"Get",params:ue})})}function Bn(ue){return p(this,null,function*(){return(0,t.ZP)("/api/jupyters/save_with_tpm.json",{method:"Get",params:ue})})}function gn(ue){return p(this,null,function*(){return(0,t.ZP)("/api/jupyters/active_with_tpm.json",{method:"Get",params:ue})})}function Kn(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/fork_list.json`,{method:"Get",params:ue})})}function ba(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.identifier}/change_editable.json`,{method:"put",body:f({},ue)})})}function Oa(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/set_secret_dir.json`,{method:"post",body:f({},ue)})})}function la(ue){return p(this,null,function*(){return(0,t.ZP)("/api/shixuns/new.json",{method:"Get",params:ue})})}function Ra(ue){return p(this,null,function*(){return(0,t.ZP)("/api/shixuns/environment_info",{method:"Get",params:ue})})}function Ya(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/init_repository.json`,{method:"post",body:f({},ue)})})}function Ae(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/sci/projects/${ue.id}/init_repository.json`,{method:"post",body:f({},ue)})})}function Nn(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/update_secret_repository.json`,{method:"post",body:f({},ue)})})}function ta(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/exist_exercise.json`,{method:"get",params:f({},ue)})})}function Sa(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/mirror_applies/${ue.id}.json`,{method:"get",params:f({},ue)})})}function Ja(ue){return p(this,null,function*(){return Fetch(`/api/mirror_applies/${ue.id}/publish.json`,{method:"post",body:f({},ue)})})}function qa(ue){return p(this,null,function*(){return Fetch(`/api/mirror_applies/${ue.id}/open_vnc.json`,{method:"post",params:f({},ue)})})}function Wn(ue){return p(this,null,function*(){return Fetch(`/api/mirror_applies/${ue.id}/open_webssh.json`,{method:"post",params:f({},ue)})})}function Ia(ue){return p(this,null,function*(){return Fetch(`/api/mirror_applies/${ue.id}/save_image.json`,{method:"post",body:f({},ue)})})}function yn(ue){return p(this,null,function*(){return Fetch(`/api/mirror_applies/${ue.id}/delete_image.json`,{method:"post",body:f({},ue)})})}function bn(ue){return p(this,null,function*(){return Fetch(`/api/mirror_applies/${ue.id}/extend_vnc.json`,{method:"post",body:f({},ue)})})}function In(ue){return p(this,null,function*(){return Fetch(`/api/mirror_applies/${ue.id}/reset_vnc_link.json`,{method:"post",body:f({},ue)})})}function pt(ue){return p(this,null,function*(){return(0,t.ZP)("/api/paths/get_task_pass.json",{method:"get",params:f({},ue)})})}function Ie(ue){return p(this,null,function*(){return(0,t.ZP)("/api/jupyters/get_info_with_jupyter_lab.json",{method:"get",params:f({},ue)})})}function ye(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/update_jupyter_lab_setting.json`,{method:"post",body:f({},ue)})})}function De(ue){return p(this,null,function*(){return(0,t.ZP)("/api/shixuns/check_shixun_copy.json",{method:"post",body:ue})})}function Pe(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/progress_homeworks/${ue}`,{method:"get",params:{is_initiative_study:1}})})}function _t(ue){return p(this,null,function*(){return Fetch(`/api/shixuns/${ue.id}/update_shixun_study_num.json`,{method:"post",body:f({},ue)})})}function ht(ue){return p(this,null,function*(){return(0,t.ZP)("/api/jupyters/preview.json",{method:"get",params:ue})})}function Ut(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue}/recommend_config.json`,{method:"get"})})}},43859:function(i,d,e){"use strict";e.d(d,{Bg:function(){return p},FO:function(){return T},eJ:function(){return E},eZ:function(){return P},fd:function(){return L},gp:function(){return f},iU:function(){return k},l3:function(){return I},mw:function(){return C},oZ:function(){return h},rM:function(){return O},r_:function(){return $},s:function(){return g},ur:function(){return D},xV:function(){return b},yb:function(){return A}});var t=e(99064),r=Object.defineProperty,n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(R,z,N)=>z in R?r(R,z,{enumerable:!0,configurable:!0,writable:!0,value:N}):R[z]=N,c=(R,z)=>{for(var N in z||(z={}))o.call(z,N)&&u(R,N,z[N]);if(n)for(var N of n(z))s.call(z,N)&&u(R,N,z[N]);return R},a=(R,z,N)=>new Promise((V,j)=>{var Y=Q=>{try{J(N.next(Q))}catch(Z){j(Z)}},G=Q=>{try{J(N.throw(Q))}catch(Z){j(Z)}},J=Q=>Q.done?V(Q.value):Promise.resolve(Q.value).then(Y,G);J((N=N.apply(R,z)).next())});function f(R){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${R.coursesId}/teachers.json`,{method:"get",params:c({},R)})})}function g(R){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${R.coursesId}/apply_teachers.json`,{method:"get",params:c({},R)})})}function p(R){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${R.coursesId}/graduation_group_list.json`,{method:"get",params:c({},R)})})}function b(R){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${R.coursesId}/all_course_groups.json`,{method:"get",params:c({},R)})})}function h(R){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${R.coursesId}/set_course_group.json`,{method:"post",body:c({},R)})})}function E(R){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${R.coursesId}/join_graduation_group.json`,{method:"post",body:c({},R)})})}function P(R){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${R.coursesId}/create_graduation_group.json`,{method:"post",body:c({},R)})})}function A(R){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${R.coursesId}/delete_course_teacher.json`,{method:"post",body:c({},R)})})}function I(R){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${R.coursesId}/delete_from_course.json`,{method:"post",body:c({},R)})})}function C(R){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${R.coursesId}/change_member_role.json`,{method:"post",body:c({},R)})})}function O(R){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${R.coursesId}/change_course_admin.json`,{method:"post",body:c({},R)})})}function T(R){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${R.coursesId}/teacher_application_review.json`,{method:"post",body:c({},R)})})}function D(R){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${R.coursesId}/students.json`,{method:"get",params:c({},R)})})}function k(R,z){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${R}/apply_students.json`,{method:"get",params:z})})}function $(R,z){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${R}/join_student_checkout.json`,{method:"get",params:z})})}function L(R,z){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${R}/student_application_review.json`,{method:"post",body:z})})}},24780:function(i,d,e){"use strict";e.d(d,{B$:function(){return b},Cx:function(){return Y},Cy:function(){return ae},DA:function(){return O},DH:function(){return p},Ef:function(){return Q},Es:function(){return E},Ex:function(){return ot},FM:function(){return N},Fn:function(){return Z},Gq:function(){return St},Ho:function(){return D},IU:function(){return ee},JJ:function(){return K},Ol:function(){return ve},Qx:function(){return z},Tv:function(){return M},V8:function(){return g},WS:function(){return G},WY:function(){return R},ai:function(){return j},bG:function(){return A},bJ:function(){return f},c0:function(){return yt},dE:function(){return H},dt:function(){return B},gI:function(){return J},lO:function(){return V},mW:function(){return L},n0:function(){return C},nV:function(){return pe},o1:function(){return He},qE:function(){return h},qN:function(){return T},rV:function(){return k},sh:function(){return le},vR:function(){return P},w3:function(){return $},x4:function(){return I},z2:function(){return ze}});var t=e(99064),r=Object.defineProperty,n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(ge,Be,Xe)=>Be in ge?r(ge,Be,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):ge[Be]=Xe,c=(ge,Be)=>{for(var Xe in Be||(Be={}))o.call(Be,Xe)&&u(ge,Xe,Be[Xe]);if(n)for(var Xe of n(Be))s.call(Be,Xe)&&u(ge,Xe,Be[Xe]);return ge},a=(ge,Be,Xe)=>new Promise((tt,Tt)=>{var Pt=Ce=>{try{xe(Xe.next(Ce))}catch(Le){Tt(Le)}},je=Ce=>{try{xe(Xe.throw(Ce))}catch(Le){Tt(Le)}},xe=Ce=>Ce.done?tt(Ce.value):Promise.resolve(Ce.value).then(Pt,je);xe((Xe=Xe.apply(ge,Be)).next())});const f=ge=>a(void 0,null,function*(){return(0,t.ZP)(`/api/common_comments/${ge.id}/move.json`,{method:"post",body:ge})}),g=ge=>a(void 0,null,function*(){return(0,t.ZP)(`/api/common_comments/${ge.id}.json`,{method:"delete",body:ge})}),p=ge=>a(void 0,null,function*(){return(0,t.ZP)(`/api/common_comments/${ge.id}.json`,{method:"put",body:ge})}),b=ge=>a(void 0,null,function*(){return(0,t.ZP)("/api/common_comments.json",{method:"post",body:ge})}),h=ge=>a(void 0,null,function*(){return(0,t.ZP)("/api/common_comments.json",{method:"Get",params:ge})});function E(ge){return a(this,null,function*(){return(0,t.ZP)("/api/accounts/login.json",{method:"post",body:c({},ge)})})}function P(ge){return a(this,null,function*(){return(0,t.ZP)("/api/accounts/logout.json",{method:"get"})})}function A(ge){return a(this,null,function*(){return(0,t.ZP)("/api/users/get_user_info.json",{method:"get",params:c({},ge)})})}function I(ge){return a(this,null,function*(){return(0,t.ZP)("/api/users/get_notice.json",{method:"get",params:c({},ge)})})}function C(){return a(this,null,function*(){return(0,t.ZP)("/api/users/system_update.json",{method:"get"})})}function O(ge){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${ge.username}/homepage_info.json`,{method:"get"})})}function T(ge){return a(this,null,function*(){return(0,t.ZP)("/api/users/attendance.json",{method:"post"})})}function D(ge){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${ge.username}/courses.json`,{method:"get",params:ge})})}function k(ge){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${ge.username}/shixuns.json`,{method:"get",params:ge})})}function $(ge){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${ge.username}/subjects.json`,{method:"get",params:ge})})}function L(ge){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${ge.username}/projects.json`,{method:"get",params:ge})})}function R(ge){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${ge.username}/videos.json`,{method:"get",params:ge})})}function z(ge){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${ge.username}/videos/review.json`,{method:"get",params:ge})})}function N(ge){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${ge.username}/videos/${ge.id}.json`,{method:"delete"})})}function V(ge){return a(this,null,function*(){return(0,t.ZP)("/api/watch_video_histories.json",{method:"post",body:ge})})}function j(ge){return a(this,null,function*(){return(0,t.ZP)("/api/users/question_banks.json",{method:"get",params:ge})})}function Y(ge){return a(this,null,function*(){return(0,t.ZP)("/api/question_banks/multi_public.json",{method:"post",body:ge})})}function G(ge){return a(this,null,function*(){return(0,t.ZP)("/api/question_banks/multi_delete.json",{method:"delete",body:ge})})}function J(ge){return a(this,null,function*(){return(0,t.ZP)("/api/question_banks/my_courses.json",{method:"get",params:ge})})}function Q(ge){return a(this,null,function*(){return(0,t.ZP)("/api/question_banks/send_to_course.json",{method:"post",body:ge})})}function Z(ge){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${ge.username}/videos/${ge.object_id}/create_course_video.json`,{method:"post",body:ge})})}function K(ge){return a(this,null,function*(){return(0,t.ZP)(`/api/homework_banks/${ge.topicId}.json`,{method:"get",params:ge})})}function M(ge){return a(this,null,function*(){return(0,t.ZP)("/api/question_banks/multi_delete.json",{method:"delete",body:c({},ge)})})}function B(ge){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${ge.username}/videos/batch_publish.json`,{method:"post",body:ge})})}function H(ge){return a(this,null,function*(){return(0,t.ZP)(`/api/myshixuns/${ge.identifier}/cancel.json`,{method:"delete",body:c({},ge)})})}function ee(){return a(this,null,function*(){return(0,t.ZP)("/api/users/get_engineer_url.json",{method:"get"})})}function ae(ge){return a(this,null,function*(){return(0,t.ZP)("/api/intelligent_recommendations/user_choice_learn_path.json",{method:"post",body:c({},ge)})})}function le(){return a(this,null,function*(){return(0,t.ZP)("/api/intelligent_recommendations/persona.json",{method:"get"})})}function pe(){return a(this,null,function*(){return(0,t.ZP)("/api/intelligent_recommendations/user_learn_path.json",{method:"get"})})}function ve(ge){return(0,t.ZP)("/api/accounts/valid_email_and_phone.json",{method:"get",params:ge})}function He(ge){return(0,t.ZP)("/api/accounts/get_verification_code.json",{method:"get",params:ge})}function ze(ge){return(0,t.ZP)("/api/accounts/register.json",{method:"post",body:c({},ge)})}function rt(ge){return Fetch("/api/weapps/register.json",{method:"post",body:c({},ge)})}function ot(ge){return(0,t.ZP)(`/api/users/accounts/${ge.login}/password.json`,{method:"put",body:c({},ge)})}function yt(ge){return(0,t.ZP)("/api/accounts/reset_password.json",{method:"post",body:c({},ge)})}function St(ge){return(0,t.ZP)("/api/accounts/login_for_phone.json",{method:"get",params:c({},ge)})}},75730:function(i,d,e){"use strict";e.d(d,{BQ:function(){return f},DH:function(){return D},Db:function(){return V},Ju:function(){return N},Mz:function(){return L},O2:function(){return h},TJ:function(){return A},Vg:function(){return b},ZY:function(){return g},Zx:function(){return $},cU:function(){return p},fn:function(){return z},jK:function(){return I},yN:function(){return R}});var t=e(99064),r=Object.defineProperty,n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(j,Y,G)=>Y in j?r(j,Y,{enumerable:!0,configurable:!0,writable:!0,value:G}):j[Y]=G,c=(j,Y)=>{for(var G in Y||(Y={}))o.call(Y,G)&&u(j,G,Y[G]);if(n)for(var G of n(Y))s.call(Y,G)&&u(j,G,Y[G]);return j},a=(j,Y,G)=>new Promise((J,Q)=>{var Z=B=>{try{M(G.next(B))}catch(H){Q(H)}},K=B=>{try{M(G.throw(B))}catch(H){Q(H)}},M=B=>B.done?J(B.value):Promise.resolve(B.value).then(Z,K);M((G=G.apply(j,Y)).next())});function f(j){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${j.coursesId}/watch_video_histories.json`,{method:"Get",params:c({},j)})})}function g(j){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${j.coursesId}/watch_statics.json`,{method:"Get",params:c({},j)})})}function p(j){return a(this,null,function*(){return(0,t.ZP)(`/api/course_videos/${j.videoId}/watch_histories.json`,{method:"Get",params:c({},j)})})}function b(j){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${j.coursesId}/own_watch_histories.json`,{method:"Get",params:c({},j)})})}function h(j){return a(this,null,function*(){return(0,t.ZP)(`/api/video_items/${j.id}.json`,{method:"Get",params:c({},j)})})}function E(j){return a(this,null,function*(){return Fetch("/api/video_items.json",{method:"post",body:j})})}function P(j){return a(this,null,function*(){return Fetch(`/api/video_items/${j.id}/edit.json`,{method:"Get",params:c({},j)})})}function A(j){return a(this,null,function*(){return(0,t.ZP)(`/api/stage_shixuns/${j.id}/edit.json`,{method:"Get",params:c({},j)})})}function I(j){return a(this,null,function*(){return(0,t.ZP)(`/api/video_items/${j.id}/star.json`,{method:"post",body:j})})}function C(j){return a(this,null,function*(){return Fetch(`/api/video_items/${j.id}.json`,{method:"put",body:j})})}function O(j){return a(this,null,function*(){return Fetch(`/api/video_items/${j.id}/send_to_course.json`,{method:"post",body:j})})}function T(j){return a(this,null,function*(){return Fetch("/api/users/my_courses.json",{method:"Get",params:c({},j)})})}function D(j){return a(this,null,function*(){return(0,t.ZP)(`/api/video_items/${j.id}/view_video.json`,{method:"post",body:j})})}function k(j){return a(this,null,function*(){return Fetch(`/api/video_items/${j.id}/add_school.json`,{method:"post",body:j})})}function $(j){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${j.course_id}/video_people_statics.json`,{method:"get",params:j})})}function L(j){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${j.course_id}/video_duration_statics.json`,{method:"get",params:j})})}function R(j){return a(this,null,function*(){return(0,t.ZP)("/api/stages.json",{method:"get",params:j})})}function z(j){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${j==null?void 0:j.id}/course_videos_tree.json`,{method:"get",params:j})})}function N(j){return a(this,null,function*(){return(0,t.ZP)("/api/study_action_analyses.json",{method:"post",body:j})})}function V(j){return a(this,null,function*(){return(0,t.ZP)("/api/study_action_analyses/detail.json",{method:"post",body:j})})}},62406:function(i,d,e){"use strict";e.d(d,{A:function(){return L},CH:function(){return o},EA:function(){return c},FU:function(){return g},G_:function(){return h},LY:function(){return T},Ll:function(){return u},MM:function(){return I},Ps:function(){return D},Sl:function(){return P},To:function(){return p},Vf:function(){return b},XQ:function(){return s},b:function(){return f},bq:function(){return $},cZ:function(){return a},rV:function(){return O},sT:function(){return E},tS:function(){return k},xt:function(){return C},y2:function(){return n}});var t=e(99064),r=(R,z,N)=>new Promise((V,j)=>{var Y=Q=>{try{J(N.next(Q))}catch(Z){j(Z)}},G=Q=>{try{J(N.throw(Q))}catch(Z){j(Z)}},J=Q=>Q.done?V(Q.value):Promise.resolve(Q.value).then(Y,G);J((N=N.apply(R,z)).next())});const n=R=>r(void 0,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R.virtual_spacesId}/base_statistic_data.json`,{method:"Get",params:R})});function o(R){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R.virtual_spacesId}/discussions/${R.id}.json`,{method:"put",body:R})})}function s(R){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R.virtual_spacesId}/discussions/${R.id}.json`,{method:"get",params:R})})}function u(R){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R.virtual_spacesId}/discussions.json`,{method:"post",body:R})})}function c(R){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R.virtual_spacesId}/discussions.json`,{method:"get",params:R})})}function a(R){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R.virtual_spacesId}/good_lessons/${R.id}/add_resources.json`,{method:"post",body:R})})}function f(R){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R.virtual_spacesId}/good_lessons/${R.id}/lesson_resources_list.json`,{method:"get",params:R})})}function g(R){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R.virtual_spacesId}/good_lessons/${R.id}.json`,{method:"get",params:R})})}function p(R){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R.virtual_spacesId}/good_lessons/${R.id}.json`,{method:"put",body:R})})}function b(R){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R.virtual_spacesId}/good_lessons.json`,{method:"post",body:R})})}function h(R){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R.virtual_spacesId}/good_lessons.json`,{method:"get",params:R})})}function E(R){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R==null?void 0:R.id}.json`,{method:"get"})})}function P(R){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R==null?void 0:R.id}/modules.json`,{method:"get"})})}function A(R){return r(this,null,function*(){return Fetch(`/api/virtual_classrooms/${R.id}/videos/batch_publish.json`,{method:"post",body:R})})}function I(R){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R.virtual_spacesId}/members.json`,{method:"post",body:R})})}function C(R){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R.virtual_spacesId}/members/${R.id}/change_creator.json`,{method:"post",body:R})})}function O(R,z){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R}/shixuns.json`,{method:"get",params:z})})}function T(R,z){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R}/shixuns`,{method:"post",body:z})})}function D(R){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R.virtual_classroom_id}/shixuns/${R.shixun_id}.json`,{method:"delete"})})}function k(R,z){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R}/subjects.json`,{method:"get",params:z})})}function $(R,z){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R}/subjects.json`,{method:"post",body:z})})}function L(R){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R.virtual_classroom_id}/subjects/${R.subject_id}.json`,{method:"delete"})})}},24065:function(i,d,e){"use strict";e.d(d,{$O:function(){return Y},G5:function(){return $},GD:function(){return r},GJ:function(){return g},Gg:function(){return p},I2:function(){return s},IR:function(){return R},JA:function(){return et},JL:function(){return C},Jd:function(){return j},Ny:function(){return A},RV:function(){return N},Rb:function(){return k},Rm:function(){return L},V9:function(){return H},Yh:function(){return K},aN:function(){return E},aQ:function(){return a},ag:function(){return Ne},bg:function(){return Gt},d8:function(){return D},dE:function(){return z},eB:function(){return V},eY:function(){return me},fn:function(){return Ke},h:function(){return Zt},j5:function(){return h},m$:function(){return ke},oF:function(){return b},qz:function(){return c},t_:function(){return P},tu:function(){return ct},y8:function(){return jt}});var t=e(89070),r=(it=>(it[it.SuperAdmin=1]="SuperAdmin",it[it.Operation=2]="Operation",it[it.CertifiedTeacher=5]="CertifiedTeacher",it[it.TrainingProduction=8]="TrainingProduction",it[it.UncertifiedTeacher=12]="UncertifiedTeacher",it[it.Student=15]="Student",it))(r||{}),n=(it=>(it[it.SuperAdmin=1]="SuperAdmin",it[it.Operation=2]="Operation",it[it.Admin=5]="Admin",it[it.Teacher=8]="Teacher",it[it.Assistant=12]="Assistant",it[it.Student=15]="Student",it))(n||{}),o=(it=>(it[it.SuperAdmin=0]="SuperAdmin",it[it.Teacher=1]="Teacher",it[it.Student=2]="Student",it))(o||{});const s=it=>{const{user:ce}=(0,t.getDvaApp)()._store.getState(),{userInfo:lt}=ce;return it.some(qe=>qe==(lt==null?void 0:lt.role))},u=it=>{const{user:ce}=(0,t.getDvaApp)()._store.getState(),{userInfo:lt}=ce;return lt!=null&<.own?!0:it.some(qe=>{var wt;return qe==((wt=lt==null?void 0:lt.course)==null?void 0:wt.course_role)})},c=()=>{const{user:it}=(0,t.getDvaApp)()._store.getState(),{userInfo:ce}=it;return ce.main_site},a=()=>{var it;const{user:ce}=(0,t.getDvaApp)()._store.getState(),{userInfo:lt}=ce;return(it=lt==null?void 0:lt.course)==null?void 0:it.course_is_end},f=()=>{const{user:it}=getDvaApp()._store.getState(),{userInfo:ce}=it;return ce.authentication},g=()=>u([1,2,5,8,12]),p=()=>u([1,8,5,12,2]),b=()=>u([1,8,5]),h=()=>u([1]),E=()=>u([1,2,5]),P=()=>u([1,2]),A=()=>s([1,2]),I=()=>s([1]),C=()=>s([1,2,5]),O=()=>u([1,5]),T=()=>u([5,8]),D=()=>u([5]),k=()=>u([1,5,2]),$=()=>u([1,2,5,8]),L=()=>u([12]),R=()=>u([8]),z=()=>u([15]),N=()=>u([1,2,5,8,12,15]),V=()=>u([1,2,5,8,12]),j=()=>{var it;const{user:ce}=(0,t.getDvaApp)()._store.getState(),{userInfo:lt}=ce;return((it=lt==null?void 0:lt.course)==null?void 0:it.course_role)===null},Y=()=>{const{user:it}=(0,t.getDvaApp)()._store.getState(),{userInfo:ce}=it;return ce==null?void 0:ce.has_big_model_permission},G=()=>{const{user:it}=getDvaApp()._store.getState(),{userInfo:ce}=it;return ce==null?void 0:ce.big_model_user_unlimited},J=(it=!0,ce=!1)=>s([1,2,5,8,12,15]),Q=(it=!0,ce=!1)=>ce||!ce&&s([1]),Z=(it=!0,ce=!1)=>ce||!ce&&s([1,2]),K=()=>s([15]),M=(it=!0,ce=!1)=>it?s([1,2,5,8,12,15]):ce||!ce&&s([1,2]),B=(it=!0,ce=!1)=>it?s([1,2,5,8,12,15]):ce||!ce&&s([1,2]),H=(it=!0,ce=!1)=>{const{user:lt}=(0,t.getDvaApp)()._store.getState(),{userInfo:qe}=lt;return qe!=null&&qe.is_shixun_marker?!0:s([1,2,5,8])},ee=(it=!0,ce=!1)=>it?s([1]):ce||!ce&&s([1]),ae=(it=!0,ce=!1)=>it?s([1,2]):ce||!ce&&s([1,2]),le=(it=!0,ce=!1)=>it?s([1,2,5,8,12,15]):ce||!ce&&s([1,2]),pe=(it=!0,ce=!1)=>it?s([1,2,5,8,12]):ce||!ce&&s([1,2]),ve=(it=!0,ce=!1)=>it?s([1,2,5]):ce||!ce&&s([1,2]),He=(it=!0,ce=!1)=>it?s([1]):!1,ze=(it=!0,ce=!1)=>s([1,2,5,8,12,15]),rt=(it=!0,ce=!1)=>it?s([1]):ce||!ce&&s([1]),ot=(it=!0,ce=!1)=>it?s([1,2]):ce||!ce&&s([1,2]),yt=(it=!0,ce=!1)=>it?s([1,2,5,8,12,15]):ce||!ce&&s([1,2]),St=(it=!0,ce=!1)=>it?!1:ce||!ce&&s([1,2]),ge=(it=!0,ce=!1)=>it?ce||!ce&&s([1,2]):!1,Be=(it=!0,ce=!1)=>it?s([1,2,5,8,12]):!1,Xe=(it=!0,ce=!1)=>it?!ce&&s([1,2,5,8,12]):!1,tt=(it=!0,ce=!1)=>it?s([1,2,5]):ce||!ce&&s([1,2]),Tt=(it=!0,ce=!1)=>s([1,2,5,8,12]),Pt=(it=!0,ce=!1)=>it?s([1]):ce||!ce&&s([1]),je=(it=!0,ce=!1)=>it?s([1,2]):ce||!ce&&s([1,2]),xe=(it=!0,ce=!1)=>it?s([1,2,5,8,12]):ce||!ce&&s([1,2]),Ce=(it=!0,ce=!1)=>it?ce||!ce&&s([1,2]):!1,Le=(it=!0,ce=!1)=>it?s([1,2,5,8,12]):ce||!ce&&s([1,2]),Re=(it=!0,ce=!1)=>u([8]),Ke=()=>s([1]),Ne=()=>s([1,2]),et=()=>s([15]),Je=()=>s([1,2,5]),jt=()=>s([1,2,5,12]),Gt=()=>{var it;const{user:ce}=(0,t.getDvaApp)()._store.getState();return!!((it=ce.userInfo)!=null&&it.login)},me=()=>{const{user:it}=(0,t.getDvaApp)()._store.getState();return it.userInfo},ke=()=>{var it,ce;const{user:lt}=(0,t.getDvaApp)()._store.getState();return!!((ce=(it=lt.userInfo)==null?void 0:it.path)!=null&&ce.own)},xt=it=>{const{graduations:ce}=(0,t.getDvaApp)()._store.getState(),{details:lt}=ce;return it.some(qe=>qe===(lt==null?void 0:lt.user_identity))},ct=()=>xt([0,1]),ft=()=>xt([0]),st=()=>xt([1]),Zt=()=>xt([2])},14165:function(i,d,e){"use strict";e.d(d,{a2:function(){return o},fw:function(){return t},gW:function(){return n},k:function(){return s},k4:function(){return r}});const t=[{id:0,name:"\u5355\u9009\u9898",nameType:"SINGLE"},{id:1,name:"\u591A\u9009\u9898",nameType:"MULTIPLE"},{id:2,name:"\u5224\u65AD\u9898",nameType:"JUDGMENT"},{id:3,name:"\u586B\u7A7A\u9898",nameType:"COMPLETION"},{id:4,name:"\u7B80\u7B54\u9898",nameType:"SUBJECTIVE"},{id:5,name:"\u5B9E\u8BAD\u9898",nameType:"PRACTICAL"},{id:6,name:"\u7F16\u7A0B\u9898",nameType:"PROGRAM"},{id:7,name:"\u7EC4\u5408\u9898",nameType:"COMBINATION"},{id:8,name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",nameType:"BPROGRAM"}],r=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];var n=(u=>(u.PROBLEM="problem",u.PAPER="paper",u.OTHER="other",u))(n||{}),o=(u=>(u.SINGLE="single",u.MULTIPLEFLOW="multiple_flow",u.MULTIPLEFIXED="multiple_fixed",u.OTHER="other",u))(o||{}),s=(u=>(u[u.BISHI=1]="BISHI",u[u.JISHI=2]="JISHI",u[u.KOUSHI=3]="KOUSHI",u[u.OTHER=4]="OTHER",u))(s||{})},33466:function(i,d,e){"use strict";e.d(d,{F:function(){return t}});const t={load:"text/html",123:"application/vndlotus-1-2-3","3ds":"image/x-3ds","3g2":"video/3gpp","3ga":"video/3gpp","3gp":"video/3gpp","3gpp":"video/3gpp",602:"application/x-t602",669:"audio/x-mod","7z":"application/x-7z-compressed",a:"application/x-archive",aac:"audio/mp4",abw:"application/x-abiword",abwcrashed:"application/x-abiword",abwgz:"application/x-abiword",ac3:"audio/ac3",ace:"application/x-ace",adb:"text/x-adasrc",ads:"text/x-adasrc",afm:"application/x-font-afm",ag:"image/x-applix-graphics",ai:"application/illustrator",aif:"audio/x-aiff",aifc:"audio/x-aiff",aiff:"audio/x-aiff",al:"application/x-perl",alz:"application/x-alz",amr:"audio/amr",ani:"application/x-navi-animation","anim[1-9j]":"video/x-anim",anx:"application/annodex",ape:"audio/x-ape",arj:"application/x-arj",arw:"image/x-sony-arw",as:"application/x-applix-spreadsheet",asc:"text/plain",asf:"video/x-ms-asf",asp:"application/x-asp",ass:"text/x-ssa",asx:"audio/x-ms-asx",atom:"application/atom+xml",au:"audio/basic",avi:"video/x-msvideo",aw:"application/x-applix-word",awb:"audio/amr-wb",awk:"application/x-awk",axa:"audio/annodex",axv:"video/annodex",bak:"application/x-trash",bcpio:"application/x-bcpio",bdf:"application/x-font-bdf",bib:"text/x-bibtex",bin:"application/octet-stream",blend:"application/x-blender",blender:"application/x-blender",bmp:"image/bmp",bz:"application/x-bzip",bz2:"application/x-bzip",c:"text/x-csrc","c++":"text/x-c++src",cab:"application/vndms-cab-compressed",cb7:"application/x-cb7",cbr:"application/x-cbr",cbt:"application/x-cbt",cbz:"application/x-cbz",cc:"text/x-c++src",cdf:"application/x-netcdf",cdr:"application/vndcorel-draw",cer:"application/x-x509-ca-cert",cert:"application/x-x509-ca-cert",cgm:"image/cgm",chm:"application/x-chm",chrt:"application/x-kchart",class:"application/x-java",cls:"text/x-tex",cmake:"text/x-cmake",cpio:"application/x-cpio",cpiogz:"application/x-cpio-compressed",cpp:"text/x-c++src",cr2:"image/x-canon-cr2",crt:"application/x-x509-ca-cert",crw:"image/x-canon-crw",cs:"text/x-csharp",csh:"application/x-csh",css:"text/css",cssl:"text/css",csv:"text/csv",cue:"application/x-cue",cur:"image/x-win-bitmap",cxx:"text/x-c++src",d:"text/x-dsrc",dar:"application/x-dar",dbf:"application/x-dbf",dc:"application/x-dc-rom",dcl:"text/x-dcl",dcm:"application/dicom",dcr:"image/x-kodak-dcr",dds:"image/x-dds",deb:"application/x-deb",der:"application/x-x509-ca-cert",desktop:"application/x-desktop",dia:"application/x-dia-diagram",diff:"text/x-patch",divx:"video/x-msvideo",djv:"image/vnddjvu",djvu:"image/vnddjvu",dng:"image/x-adobe-dng",doc:"application/msword",docbook:"application/docbook+xml",docm:"application/vndopenxmlformats-officedocumentwordprocessingmldocument",docx:"application/vndopenxmlformats-officedocumentwordprocessingmldocument",dot:"text/vndgraphviz",dsl:"text/x-dsl",dtd:"application/xml-dtd",dtx:"text/x-tex",dv:"video/dv",dvi:"application/x-dvi",dvibz2:"application/x-bzdvi",dvigz:"application/x-gzdvi",dwg:"image/vnddwg",dxf:"image/vnddxf",e:"text/x-eiffel",egon:"application/x-egon",eif:"text/x-eiffel",el:"text/x-emacs-lisp",emf:"image/x-emf",emp:"application/vndemusic-emusic_package",ent:"application/xml-external-parsed-entity",eps:"image/x-eps",epsbz2:"image/x-bzeps",epsgz:"image/x-gzeps",epsf:"image/x-eps",epsfbz2:"image/x-bzeps",epsfgz:"image/x-gzeps",epsi:"image/x-eps",epsibz2:"image/x-bzeps",epsigz:"image/x-gzeps",epub:"application/epub+zip",erl:"text/x-erlang",es:"application/ecmascript",etheme:"application/x-e-theme",etx:"text/x-setext",exe:"application/x-ms-dos-executable",exr:"image/x-exr",ez:"application/andrew-inset",f:"text/x-fortran",f90:"text/x-fortran",f95:"text/x-fortran",fb2:"application/x-fictionbook+xml",fig:"image/x-xfig",fits:"image/fits",fl:"application/x-fluid",flac:"audio/x-flac",flc:"video/x-flic",fli:"video/x-flic",flv:"video/x-flv",flw:"application/x-kivio",fo:"text/x-xslfo",for:"text/x-fortran",g3:"image/fax-g3",gb:"application/x-gameboy-rom",gba:"application/x-gba-rom",gcrd:"text/directory",ged:"application/x-gedcom",gedcom:"application/x-gedcom",gen:"application/x-genesis-rom",gf:"application/x-tex-gf",gg:"application/x-sms-rom",gif:"image/gif",glade:"application/x-glade",gmo:"application/x-gettext-translation",gnc:"application/x-gnucash",gnd:"application/gnunet-directory",gnucash:"application/x-gnucash",gnumeric:"application/x-gnumeric",gnuplot:"application/x-gnuplot",gp:"application/x-gnuplot",gpg:"application/pgp-encrypted",gplt:"application/x-gnuplot",gra:"application/x-graphite",gsf:"application/x-font-type1",gsm:"audio/x-gsm",gtar:"application/x-tar",gv:"text/vndgraphviz",gvp:"text/x-google-video-pointer",gz:"application/x-gzip",h:"text/x-chdr","h++":"text/x-c++hdr",hdf:"application/x-hdf",hh:"text/x-c++hdr",hp:"text/x-c++hdr",hpgl:"application/vndhp-hpgl",hpp:"text/x-c++hdr",hs:"text/x-haskell",htm:"text/html",html:"text/html",hwp:"application/x-hwp",hwt:"application/x-hwt",hxx:"text/x-c++hdr",ica:"application/x-ica",icb:"image/x-tga",icns:"image/x-icns",ico:"image/vndmicrosofticon",ics:"text/calendar",idl:"text/x-idl",ief:"image/ief",iff:"image/x-iff",ilbm:"image/x-ilbm",ime:"text/x-imelody",imy:"text/x-imelody",ins:"text/x-tex",iptables:"text/x-iptables",iso:"application/x-cd-image",iso9660:"application/x-cd-image",it:"audio/x-it",j2k:"image/jp2",jad:"text/vndsunj2meapp-descriptor",jar:"application/x-java-archive",java:"text/x-java",jng:"image/x-jng",jnlp:"application/x-java-jnlp-file",jp2:"image/jp2",jpc:"image/jp2",jpe:"image/jpeg",jpeg:"image/jpeg",jpf:"image/jp2",jpg:"image/jpeg",jpr:"application/x-jbuilder-project",jpx:"image/jp2",js:"application/javascript",json:"application/json",jsonp:"application/jsonp",k25:"image/x-kodak-k25",kar:"audio/midi",karbon:"application/x-karbon",kdc:"image/x-kodak-kdc",kdelnk:"application/x-desktop",kexi:"application/x-kexiproject-sqlite3",kexic:"application/x-kexi-connectiondata",kexis:"application/x-kexiproject-shortcut",kfo:"application/x-kformula",kil:"application/x-killustrator",kino:"application/smil",kml:"application/vndgoogle-earthkml+xml",kmz:"application/vndgoogle-earthkmz",kon:"application/x-kontour",kpm:"application/x-kpovmodeler",kpr:"application/x-kpresenter",kpt:"application/x-kpresenter",kra:"application/x-krita",ksp:"application/x-kspread",kud:"application/x-kugar",kwd:"application/x-kword",kwt:"application/x-kword",la:"application/x-shared-library-la",latex:"text/x-tex",ldif:"text/x-ldif",lha:"application/x-lha",lhs:"text/x-literate-haskell",lhz:"application/x-lhz",log:"text/x-log",ltx:"text/x-tex",lua:"text/x-lua",lwo:"image/x-lwo",lwob:"image/x-lwo",lws:"image/x-lws",ly:"text/x-lilypond",lyx:"application/x-lyx",lz:"application/x-lzip",lzh:"application/x-lha",lzma:"application/x-lzma",lzo:"application/x-lzop",m:"text/x-matlab",m15:"audio/x-mod",m2t:"video/mpeg",m3u:"audio/x-mpegurl",m3u8:"audio/x-mpegurl",m4:"application/x-m4",m4a:"audio/mp4",m4b:"audio/x-m4b",m4v:"video/mp4",mab:"application/x-markaby",man:"application/x-troff-man",mbox:"application/mbox",md:"application/x-genesis-rom",mdb:"application/vndms-access",mdi:"image/vndms-modi",me:"text/x-troff-me",med:"audio/x-mod",metalink:"application/metalink+xml",mgp:"application/x-magicpoint",mid:"audio/midi",midi:"audio/midi",mif:"application/x-mif",minipsf:"audio/x-minipsf",mka:"audio/x-matroska",mkv:"video/x-matroska",ml:"text/x-ocaml",mli:"text/x-ocaml",mm:"text/x-troff-mm",mmf:"application/x-smaf",mml:"text/mathml",mng:"video/x-mng",mo:"application/x-gettext-translation",mo3:"audio/x-mo3",moc:"text/x-moc",mod:"audio/x-mod",mof:"text/x-mof",moov:"video/quicktime",mov:"video/quicktime",movie:"video/x-sgi-movie","mp+":"audio/x-musepack",mp2:"video/mpeg",mp3:"audio/mpeg",mp4:"video/mp4",mpc:"audio/x-musepack",mpe:"video/mpeg",mpeg:"video/mpeg",mpg:"video/mpeg",mpga:"audio/mpeg",mpp:"audio/x-musepack",mrl:"text/x-mrml",mrml:"text/x-mrml",mrw:"image/x-minolta-mrw",ms:"text/x-troff-ms",msi:"application/x-msi",msod:"image/x-msod",msx:"application/x-msx-rom",mtm:"audio/x-mod",mup:"text/x-mup",mxf:"application/mxf",n64:"application/x-n64-rom",nb:"application/mathematica",nc:"application/x-netcdf",nds:"application/x-nintendo-ds-rom",nef:"image/x-nikon-nef",nes:"application/x-nes-rom",nfo:"text/x-nfo",not:"text/x-mup",nsc:"application/x-netshow-channel",nsv:"video/x-nsv",o:"application/x-object",obj:"application/x-tgif",ocl:"text/x-ocl",oda:"application/oda",odb:"application/vndoasisopendocumentdatabase",odc:"application/vndoasisopendocumentchart",odf:"application/vndoasisopendocumentformula",odg:"application/vndoasisopendocumentgraphics",odi:"application/vndoasisopendocumentimage",odm:"application/vndoasisopendocumenttext-master",odp:"application/vndoasisopendocumentpresentation",ods:"application/vndoasisopendocumentspreadsheet",odt:"application/vndoasisopendocumenttext",oga:"audio/ogg",ogg:"video/x-theora+ogg",ogm:"video/x-ogm+ogg",ogv:"video/ogg",ogx:"application/ogg",old:"application/x-trash",oleo:"application/x-oleo",opml:"text/x-opml+xml",ora:"image/openraster",orf:"image/x-olympus-orf",otc:"application/vndoasisopendocumentchart-template",otf:"application/x-font-otf",otg:"application/vndoasisopendocumentgraphics-template",oth:"application/vndoasisopendocumenttext-web",otp:"application/vndoasisopendocumentpresentation-template",ots:"application/vndoasisopendocumentspreadsheet-template",ott:"application/vndoasisopendocumenttext-template",owl:"application/rdf+xml",oxt:"application/vndopenofficeorgextension",p:"text/x-pascal",p10:"application/pkcs10",p12:"application/x-pkcs12",p7b:"application/x-pkcs7-certificates",p7s:"application/pkcs7-signature",pack:"application/x-java-pack200",pak:"application/x-pak",par2:"application/x-par2",pas:"text/x-pascal",patch:"text/x-patch",pbm:"image/x-portable-bitmap",pcd:"image/x-photo-cd",pcf:"application/x-cisco-vpn-settings",pcfgz:"application/x-font-pcf",pcfz:"application/x-font-pcf",pcl:"application/vndhp-pcl",pcx:"image/x-pcx",pdb:"chemical/x-pdb",pdc:"application/x-aportisdoc",pdf:"application/pdf",pdfbz2:"application/x-bzpdf",pdfgz:"application/x-gzpdf",pef:"image/x-pentax-pef",pem:"application/x-x509-ca-cert",perl:"application/x-perl",pfa:"application/x-font-type1",pfb:"application/x-font-type1",pfx:"application/x-pkcs12",pgm:"image/x-portable-graymap",pgn:"application/x-chess-pgn",pgp:"application/pgp-encrypted",php:"application/x-php",php3:"application/x-php",php4:"application/x-php",pict:"image/x-pict",pict1:"image/x-pict",pict2:"image/x-pict",pickle:"application/python-pickle",pk:"application/x-tex-pk",pkipath:"application/pkix-pkipath",pkr:"application/pgp-keys",pl:"application/x-perl",pla:"audio/x-iriver-pla",pln:"application/x-planperfect",pls:"audio/x-scpls",pm:"application/x-perl",png:"image/png",pnm:"image/x-portable-anymap",pntg:"image/x-macpaint",po:"text/x-gettext-translation",por:"application/x-spss-por",pot:"text/x-gettext-translation-template",ppm:"image/x-portable-pixmap",pps:"application/vndms-powerpoint",ppt:"application/vndms-powerpoint",pptm:"application/vndopenxmlformats-officedocumentpresentationmlpresentation",pptx:"application/vndopenxmlformats-officedocumentpresentationmlpresentation",ppz:"application/vndms-powerpoint",prc:"application/x-palm-database",ps:"application/postscript",psbz2:"application/x-bzpostscript",psgz:"application/x-gzpostscript",psd:"image/vndadobephotoshop",psf:"audio/x-psf",psfgz:"application/x-gz-font-linux-psf",psflib:"audio/x-psflib",psid:"audio/prssid",psw:"application/x-pocket-word",pw:"application/x-pw",py:"text/x-python",pyc:"application/x-python-bytecode",pyo:"application/x-python-bytecode",qif:"image/x-quicktime",qt:"video/quicktime",qtif:"image/x-quicktime",qtl:"application/x-quicktime-media-link",qtvr:"video/quicktime",ra:"audio/vndrn-realaudio",raf:"image/x-fuji-raf",ram:"application/ram",rar:"application/x-rar",ras:"image/x-cmu-raster",raw:"image/x-panasonic-raw",rax:"audio/vndrn-realaudio",rb:"application/x-ruby",rdf:"application/rdf+xml",rdfs:"application/rdf+xml",reg:"text/x-ms-regedit",rej:"application/x-reject",rgb:"image/x-rgb",rle:"image/rle",rm:"application/vndrn-realmedia",rmj:"application/vndrn-realmedia",rmm:"application/vndrn-realmedia",rms:"application/vndrn-realmedia",rmvb:"application/vndrn-realmedia",rmx:"application/vndrn-realmedia",roff:"text/troff",rp:"image/vndrn-realpix",rpm:"application/x-rpm",rss:"application/rss+xml",rt:"text/vndrn-realtext",rtf:"application/rtf",rtx:"text/richtext",rv:"video/vndrn-realvideo",rvx:"video/vndrn-realvideo",s3m:"audio/x-s3m",sam:"application/x-amipro",sami:"application/x-sami",sav:"application/x-spss-sav",scm:"text/x-scheme",sda:"application/vndstardivisiondraw",sdc:"application/vndstardivisioncalc",sdd:"application/vndstardivisionimpress",sdp:"application/sdp",sds:"application/vndstardivisionchart",sdw:"application/vndstardivisionwriter",sgf:"application/x-go-sgf",sgi:"image/x-sgi",sgl:"application/vndstardivisionwriter",sgm:"text/sgml",sgml:"text/sgml",sh:"application/x-shellscript",shar:"application/x-shar",shn:"application/x-shorten",siag:"application/x-siag",sid:"audio/prssid",sik:"application/x-trash",sis:"application/vndsymbianinstall",sisx:"x-epoc/x-sisx-app",sit:"application/x-stuffit",siv:"application/sieve",sk:"image/x-skencil",sk1:"image/x-skencil",skr:"application/pgp-keys",slk:"text/spreadsheet",smaf:"application/x-smaf",smc:"application/x-snes-rom",smd:"application/vndstardivisionmail",smf:"application/vndstardivisionmath",smi:"application/x-sami",smil:"application/smil",sml:"application/smil",sms:"application/x-sms-rom",snd:"audio/basic",so:"application/x-sharedlib",spc:"application/x-pkcs7-certificates",spd:"application/x-font-speedo",spec:"text/x-rpm-spec",spl:"application/x-shockwave-flash",spx:"audio/x-speex",sql:"text/x-sql",sr2:"image/x-sony-sr2",src:"application/x-wais-source",srf:"image/x-sony-srf",srt:"application/x-subrip",ssa:"text/x-ssa",stc:"application/vndsunxmlcalctemplate",std:"application/vndsunxmldrawtemplate",sti:"application/vndsunxmlimpresstemplate",stm:"audio/x-stm",stw:"application/vndsunxmlwritertemplate",sty:"text/x-tex",sub:"text/x-subviewer",sun:"image/x-sun-raster",sv4cpio:"application/x-sv4cpio",sv4crc:"application/x-sv4crc",svg:"image/svg+xml",svgz:"image/svg+xml-compressed",swf:"application/x-shockwave-flash",sxc:"application/vndsunxmlcalc",sxd:"application/vndsunxmldraw",sxg:"application/vndsunxmlwriterglobal",sxi:"application/vndsunxmlimpress",sxm:"application/vndsunxmlmath",sxw:"application/vndsunxmlwriter",sylk:"text/spreadsheet",t:"text/troff",t2t:"text/x-txt2tags",tar:"application/x-tar",tarbz:"application/x-bzip-compressed-tar",tarbz2:"application/x-bzip-compressed-tar",targz:"application/x-compressed-tar",tarlzma:"application/x-lzma-compressed-tar",tarlzo:"application/x-tzo",tarxz:"application/x-xz-compressed-tar",tarz:"application/x-tarz",tbz:"application/x-bzip-compressed-tar",tbz2:"application/x-bzip-compressed-tar",tcl:"text/x-tcl",tex:"text/x-tex",texi:"text/x-texinfo",texinfo:"text/x-texinfo",tga:"image/x-tga",tgz:"application/x-compressed-tar",theme:"application/x-theme",themepack:"application/x-windows-themepack",tif:"image/tiff",tiff:"image/tiff",tk:"text/x-tcl",tlz:"application/x-lzma-compressed-tar",tnef:"application/vndms-tnef",tnf:"application/vndms-tnef",toc:"application/x-cdrdao-toc",torrent:"application/x-bittorrent",tpic:"image/x-tga",tr:"text/troff",ts:"application/x-linguist",tsv:"text/tab-separated-values",tta:"audio/x-tta",ttc:"application/x-font-ttf",ttf:"application/x-font-ttf",ttx:"application/x-font-ttx",txt:"text/plain",txz:"application/x-xz-compressed-tar",tzo:"application/x-tzo",ufraw:"application/x-ufraw",ui:"application/x-designer",uil:"text/x-uil",ult:"audio/x-mod",uni:"audio/x-mod",uri:"text/x-uri",url:"text/x-uri",ustar:"application/x-ustar",vala:"text/x-vala",vapi:"text/x-vala",vcf:"text/directory",vcs:"text/calendar",vct:"text/directory",vda:"image/x-tga",vhd:"text/x-vhdl",vhdl:"text/x-vhdl",viv:"video/vivo",vivo:"video/vivo",vlc:"audio/x-mpegurl",vob:"video/mpeg",voc:"audio/x-voc",vor:"application/vndstardivisionwriter",vst:"image/x-tga",wav:"audio/x-wav",wax:"audio/x-ms-asx",wb1:"application/x-quattropro",wb2:"application/x-quattropro",wb3:"application/x-quattropro",wbmp:"image/vndwapwbmp",wcm:"application/vndms-works",wdb:"application/vndms-works",webm:"video/webm",wk1:"application/vndlotus-1-2-3",wk3:"application/vndlotus-1-2-3",wk4:"application/vndlotus-1-2-3",wks:"application/vndms-works",wma:"audio/x-ms-wma",wmf:"image/x-wmf",wml:"text/vndwapwml",wmls:"text/vndwapwmlscript",wmv:"video/x-ms-wmv",wmx:"audio/x-ms-asx",wp:"application/vndwordperfect",wp4:"application/vndwordperfect",wp5:"application/vndwordperfect",wp6:"application/vndwordperfect",wpd:"application/vndwordperfect",wpg:"application/x-wpg",wpl:"application/vndms-wpl",wpp:"application/vndwordperfect",wps:"application/vndms-works",wri:"application/x-mswrite",wrl:"model/vrml",wv:"audio/x-wavpack",wvc:"audio/x-wavpack-correction",wvp:"audio/x-wavpack",wvx:"audio/x-ms-asx",x3f:"image/x-sigma-x3f",xac:"application/x-gnucash",xbel:"application/x-xbel",xbl:"application/xml",xbm:"image/x-xbitmap",xcf:"image/x-xcf",xcfbz2:"image/x-compressed-xcf",xcfgz:"image/x-compressed-xcf",xhtml:"application/xhtml+xml",xi:"audio/x-xi",xla:"application/vndms-excel",xlc:"application/vndms-excel",xld:"application/vndms-excel",xlf:"application/x-xliff",xliff:"application/x-xliff",xll:"application/vndms-excel",xlm:"application/vndms-excel",xls:"application/vndms-excel",xlsm:"application/vndopenxmlformats-officedocumentspreadsheetmlsheet",xlsx:"application/vndopenxmlformats-officedocumentspreadsheetmlsheet",xlt:"application/vndms-excel",xlw:"application/vndms-excel",xm:"audio/x-xm",xmf:"audio/x-xmf",xmi:"text/x-xmi",xml:"application/xml",xpm:"image/x-xpixmap",xps:"application/vndms-xpsdocument",xsl:"application/xml",xslfo:"text/x-xslfo",xslt:"application/xml",xspf:"application/xspf+xml",xul:"application/vndmozillaxul+xml",xwd:"image/x-xwindowdump",xyz:"chemical/x-pdb",xz:"application/x-xz",w2p:"application/w2p",z:"application/x-compress",zabw:"application/x-abiword",zip:"application/zip"}},3294:function(i,d,e){"use strict";e.d(d,{Z:function(){return o}});const t={PROXY_SERVER:"https://test-data.educoder.net",API_SERVER:"",REPORT_SERVER:"http://192.168.1.57:3001",IMG_SERVER:"https://new-testali-cdn.educoder.net",FORGE:"https://code.educoder.net/",SSH_SERVER:"wss://webssh.educoder.net",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",TERMINAL_URL:"testsvc1.vnc.educoder.net",QQLoginCB:encodeURIComponent("https://test-newweb.educoder.net")};var r=null,o={local:{API_SERVER:"http://localhost:3000",IMG_SERVER:"https://testali-cdn.educoder.net/",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"https://test-oldweb.educoder.net/",SSH_SERVER:"wss://pre-webssh.educoder.net",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",QQLoginCB:encodeURIComponent("https://test-newweb.educoder.net")},dev:t,newReactTest:{API_SERVER:(()=>{let s;switch(location.host){case"test4.educoder.net":s="https://test4-data.educoder.net";break;case"test3.educoder.net":s="https://test3-data.educoder.net";break;case"test2.educoder.net":s="https://test2-data.educoder.net";break;default:s="https://test-data.educoder.net";break}return s})(),SSH_SERVER:"wss://pre-webssh.educoder.net",SSH_Slice:"https://testfu.educoder.net",IMG_SERVER:(()=>{let s="https://new-testali-cdn.educoder.net";const u=location.host;return u==="test3.educoder.net"&&(s="https://test3-data.educoder.net"),u==="test4.educoder.net"&&(s="https://test4-data.educoder.net"),s})(),OFFICE_SERVER:"https://testoffice.educoder.net",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"https://test-oldweb.educoder.net/",QQLoginCB:encodeURIComponent("https://test-data.educoder.net"),TERMINAL_URL:"testsvc1.vnc.educoder.net"},preNewBuild:{API_SERVER:(()=>{let s="https://pre-data.educoder.net";return location.host==="pre2.educoder.net"&&(s="https://pre-data2.educoder.net"),s})(),IMG_SERVER:"https://preali-cdn.educoder.net",SSH_SERVER:"wss://pre-webssh.educoder.net",SSH_Slice:"https://testfu.educoder.net",REPORT_SERVER:"http://192.168.1.57:3001",OFFICE_SERVER:"https://testoffice.educoder.net",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",FORGE:"https://forge.educoder.net/",QQLoginCB:encodeURIComponent("https://pre.educoder.net")},newBuild:{API_SERVER:(()=>{let s="https://data.educoder.net";return document.domain==="kepukehuan.educoder.net"?s="https://kepukehuan-data.educoder.net":(document.domain==="www.tokcoder.com"||document.domain==="tokcoder.com")&&(s="https://data.tokcoder.com"),s})(),SSH_SERVER:"wss://webssh.educoder.net",REPORT_SERVER:"http://192.168.1.57:3001",SSH_Slice:"https://fu.educoder.net",IMG_SERVER:"https://ali-cdn.educoder.net",OFFICE_SERVER:"https://officeserver.educoder.net",ONLYOFFICE:"https://office.educoder.net",OFFICE_IP:"https://officedata.educoder.net",FORGE:"https://code.educoder.net/",QQLoginCB:encodeURIComponent("https://www.educoder.net"),TERMINAL_URL:".jupyter.educoder.net"},newTest:{API_SERVER:"https://test-data.educoder.net",IMG_SERVER:"https://test-data.educoder.net",REPORT_SERVER:"http://192.168.1.57:3001",SSH_SERVER:"wss://pre-webssh.educoder.net",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",FORGE:"http://test-oldweb.educoder.net/",QQLoginCB:encodeURIComponent("https://test-data.educoder.net")},test:{API_SERVER:"",IMG_SERVER:"",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"http://test-oldweb.educoder.net/",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",SSH_SERVER:"wss://pre-webssh.educoder.net",QQLoginCB:encodeURIComponent("https://test-newweb.educoder.net")},preBuild:{API_SERVER:"",IMG_SERVER:"https://preali-cdn.educoder.net",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"https://forge.educoder.net/",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",SSH_SERVER:"wss://pre-webssh.educoder.net",QQLoginCB:encodeURIComponent("https://test-newweb.educoder.net")},newWeb:{API_SERVER:"https://test-newweb.educoder.net",IMG_SERVER:"https://test-newweb.educoder.net/",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"http://test-oldweb.educoder.net/",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",SSH_SERVER:"wss://pre-webssh.educoder.net",QQLoginCB:encodeURIComponent("https://test-newweb.educoder.net")},build:{API_SERVER:"",IMG_SERVER:"",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"https://forge.educoder.net/",SSH_SERVER:"wss://webssh.educoder.net",SSH_Slice:"https://fu.educoder.net",OFFICE_SERVER:"https://officeserver.educoder.net",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"https://officedata.educoder.net",QQLoginCB:encodeURIComponent("https://www.educoder.net"),TERMINAL_URL:".jupyter.educoder.net"}}[window.ENV||"dev"]},99064:function(i,d,e){"use strict";e.d(d,{IV:function(){return K},U2:function(){return G},ZP:function(){return N},d4:function(){return J},gz:function(){return Z},rz:function(){return z},v_:function(){return Q}});var t=e(3294),r=e(28909),n=e(43418),o=e(8591),s=e(85582),u=e.n(s),c=e(59301),a=e(89070),f=e(955),g=Object.defineProperty,p=Object.defineProperties,b=Object.getOwnPropertyDescriptors,h=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable,A=(M,B,H)=>B in M?g(M,B,{enumerable:!0,configurable:!0,writable:!0,value:H}):M[B]=H,I=(M,B)=>{for(var H in B||(B={}))E.call(B,H)&&A(M,H,B[H]);if(h)for(var H of h(B))P.call(B,H)&&A(M,H,B[H]);return M},C=(M,B)=>p(M,b(B)),O=(M,B,H)=>new Promise((ee,ae)=>{var le=He=>{try{ve(H.next(He))}catch(ze){ae(ze)}},pe=He=>{try{ve(H.throw(He))}catch(ze){ae(ze)}},ve=He=>He.done?ee(He.value):Promise.resolve(He.value).then(le,pe);ve((H=H.apply(M,B)).next())});let T;const D={200:"\u670D\u52A1\u5668\u6210\u529F\u8FD4\u56DE\u8BF7\u6C42\u7684\u6570\u636E\u3002",201:"\u65B0\u5EFA\u6216\u4FEE\u6539\u6570\u636E\u6210\u529F\u3002",202:"\u4E00\u4E2A\u8BF7\u6C42\u5DF2\u7ECF\u8FDB\u5165\u540E\u53F0\u6392\u961F\uFF08\u5F02\u6B65\u4EFB\u52A1\uFF09\u3002",204:"\u5220\u9664\u6570\u636E\u6210\u529F\u3002",400:"\u53D1\u51FA\u7684\u8BF7\u6C42\u6709\u9519\u8BEF\uFF0C\u670D\u52A1\u5668\u6CA1\u6709\u8FDB\u884C\u65B0\u5EFA\u6216\u4FEE\u6539\u6570\u636E\u7684\u64CD\u4F5C\u3002",401:"\u7528\u6237\u6CA1\u6709\u6743\u9650\uFF08\u4EE4\u724C\u3001\u7528\u6237\u540D\u3001\u5BC6\u7801\u9519\u8BEF\uFF09\u3002",403:"\u7528\u6237\u5F97\u5230\u6388\u6743\uFF0C\u4F46\u662F\u8BBF\u95EE\u662F\u88AB\u7981\u6B62\u7684\u3002",404:"\u53D1\u51FA\u7684\u8BF7\u6C42\u9488\u5BF9\u7684\u662F\u4E0D\u5B58\u5728\u7684\u8BB0\u5F55\uFF0C\u670D\u52A1\u5668\u6CA1\u6709\u8FDB\u884C\u64CD\u4F5C\u3002",406:"\u8BF7\u6C42\u7684\u683C\u5F0F\u4E0D\u53EF\u5F97\u3002",410:"\u8BF7\u6C42\u7684\u8D44\u6E90\u88AB\u6C38\u4E45\u5220\u9664\uFF0C\u4E14\u4E0D\u4F1A\u518D\u5F97\u5230\u7684\u3002",422:"\u5F53\u521B\u5EFA\u4E00\u4E2A\u5BF9\u8C61\u65F6\uFF0C\u53D1\u751F\u4E00\u4E2A\u9A8C\u8BC1\u9519\u8BEF\u3002",500:"\u670D\u52A1\u5668\u53D1\u751F\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u670D\u52A1\u5668\u3002",502:"\u7F51\u5173\u9519\u8BEF\u3002",503:"\u670D\u52A1\u4E0D\u53EF\u7528\uFF0C\u670D\u52A1\u5668\u6682\u65F6\u8FC7\u8F7D\u6216\u7EF4\u62A4\u3002",504:"\u7F51\u5173\u8D85\u65F6\u3002"},k=M=>{try{typeof M=="string"&&(M=JSON.parse(M));const B=/\(\s+\/api\/attachments\/(\d+)|\(\/api\/attachments\/(\d+)\//g,H=/\"\/api\/attachments\/(\d+)\//g,ee=/\(\s+\/files\/uploads\/(\d+)|\"\/files\/uploads\/(\d+)\//g,ae=/\/api\/attachments\/(\d+)/g,le=/\/attachments\/download\/(\d+)/g;return JSON.stringify(M).replace(ae,(ve,He,ze,rt)=>{const ot=He||ze||rt;return"/api/attachments/"+(0,f.Jn)(ot)}).replace(le,(ve,He,ze)=>{const rt=He||ze;return"/attachments/download/"+(0,f.Jn)(rt)}).replace(B,(ve,He,ze,rt)=>{const ot=He||ze||rt;return"(/api/attachments/"+(0,f.Jn)(ot)}).replace(H,(ve,He,ze)=>{const rt=He||ze;return'"/api/attachments/'+(0,f.Jn)(rt)}).replace(ee,(ve,He,ze)=>{const rt=He||ze;return"(/files/uploads/"+(0,f.Jn)(rt)}).replace(/\r\n/g,` + `),ht=!1),Sa||ye(De()),Sa.formatMessage(se,he)),ue=()=>Object.keys(yn)},16209:function(i,d,e){"use strict";e.d(d,{y:function(){return u}});var t=e(43418),r=e(95237),n=e(43604),o=e(58539),s=e(59301);const u=c=>new Promise((a,f)=>{if(window.RTCPeerConnection=window.RTCPeerConnection||window.mozRTCPeerConnection||window.webkitRTCPeerConnection,typeof window.RTCPeerConnection=="undefined")return f("WebRTC not supported by browser");let g=new RTCPeerConnection,p=[];g.createDataChannel(""),g.createOffer().then(b=>g.setLocalDescription(b)).catch(b=>f(b)),g.onicecandidate=b=>{console.log("event:",b);const h=[];if(!b||!b.candidate){if(console.log("ips",p),p.length==0||!(0,o.t)(p[0])){const R=t.default.info({title:s.createElement(r.Z,null,s.createElement(n.Z,{flex:"1"},"\u63D0\u793A"),s.createElement(n.Z,null,s.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:()=>R.destroy()}))),icon:null,width:500,className:"custom-modal-divider",content:s.createElement(r.Z,null,s.createElement(n.Z,null,"\u5F53\u524D\u8003\u8BD5\u5DF2\u542F\u7528\u9650\u5236\u8003\u8BD5\u8BBF\u95EEIP\uFF08\u9650\u5236\u516C\u5171IP+\u5185\u7F51IP\uFF09\u3002",(c.ip_limit==="inner"||c.ip_bind)&&s.createElement(s.Fragment,null,s.createElement("span",{className:"c-red"},"\uFF08\u53EA\u5141\u8BB8\u5728Chrome\u8C37\u6B4C\u6D4F\u89C8\u5668\u4F5C\u7B54\uFF0C\u5E76\u4E14\u9700\u8981\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6\uFF09"),s.createElement("br",null),s.createElement("a",{href:"https://www.educoder.net/forums/4478",target:"_blank"},"\u5982\u4F55\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6?"))))});return f("WebRTC disabled or restricted by browser")}const L=p.filter(R=>(0,o.t)(R));return!L||!L.length?f("IP\u83B7\u53D6\u5931\u8D25"):a(L.join(""))}let E=b.candidate.candidate.split(" "),[P,A,I,C,O,T,,D,...k]=E,$=["rtp","rtpc"];if(console.log("event:",b),p.some(L=>L==O)||p.push(O),console.log(" candidate: "+P.split(":")[1]),console.log(" component: "+$[A-1]),console.log(" protocol: "+I),console.log(" priority: "+C),console.log(" ip: "+O),console.log(" port: "+T),console.log(" type: "+D),k.length){console.log("attributes: ");for(let L=0;L "+k[L]+": "+k[L+1])}}})},52743:function(i,d,e){"use strict";e.d(d,{k:function(){return E}});var t=e(38650),r=e(8591),n=e(99309),o=Object.defineProperty,s=Object.defineProperties,u=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,g=(A,I,C)=>I in A?o(A,I,{enumerable:!0,configurable:!0,writable:!0,value:C}):A[I]=C,p=(A,I)=>{for(var C in I||(I={}))a.call(I,C)&&g(A,C,I[C]);if(c)for(var C of c(I))f.call(I,C)&&g(A,C,I[C]);return A},b=(A,I)=>s(A,u(I)),h=(A,I)=>{var C={};for(var O in A)a.call(A,O)&&I.indexOf(O)<0&&(C[O]=A[O]);if(A!=null&&c)for(var O of c(A))I.indexOf(O)<0&&f.call(A,O)&&(C[O]=A[O]);return C};const E=["\u8BA4\u8BC1\u4E13\u4E1A","\u8BA4\u8BC1\u5C4A\u522B"],P={namespace:"engineeringEvaluteList",state:{actionTabs:{key:"",params:{}},headerData:{dataSource:{[E[0]]:{width:235,placeholder:`\u8BF7\u9009\u62E9${E[0]}`,loading:"engineeringEvaluteList/getMajorList",dataList:[]},[E[1]]:{width:138,placeholder:`\u8BF7\u9009\u62E9${E[1]}`,loading:"engineeringEvaluteList/getYearList",dataList:[]}},active:{}},tabListData:{total:0,pageNo:1,pageSize:20,dataSource:[]}},effects:{*setActionTabs({payload:A},{call:I,put:C}){yield C({type:"save",payload:{actionTabs:p({},A)}})},*getMajorList({payload:A},{call:I,put:C,select:O}){const{userInfo:T}=yield O(D=>D.user);if(T!=null&&T.school_id){const D=yield I(t.BA,T.school_id);if(D&&D.data){const k=n.U.getItem(T==null?void 0:T.login);yield C({type:"setMajorOrYearDataSource",payload:{key:E[0],value:D.data.map($=>({label:$.name,value:$.ec_major_school_id})),active:D.data.length>0?k[0]||D.data[0].ec_major_school_id:void 0}})}}},*getYearList({payload:A},{call:I,put:C,select:O}){const T=yield I(t.Nx,A.id),{userInfo:D}=yield O(k=>k.user);if(T&&T.data){const k=n.U.getItem(D==null?void 0:D.login);yield C({type:"setMajorOrYearDataSource",payload:{key:E[1],value:T.data.map($=>({label:$.year,value:$.ec_year_id})),active:T.data.length>0?A.firstEnter?k[1]:T.data[0].ec_year_id:void 0}})}},*getCourseResults({payload:A={}},{call:I,put:C,select:O}){const{calc:T,page:D,per_page:k}=A,{headerData:$,tabListData:L}=yield O(N=>N.engineeringEvaluteList),{userInfo:R}=yield O(N=>N.user);let z=$.active[E[1]];if(z){let N={id:z,page:D||1,per_page:k||L.pageSize};T&&(N=b(p({},N),{page:L.pageNo}));const V=yield I(t._y,N),j=[$.active[E[0]],$.active[E[1]]];n.U.setItem(R==null?void 0:R.login,j),V&&V.ec_courses&&(yield C({type:"setCourseResults",payload:b(p({},L),{pageNo:N.page,total:V.count,pageSize:N.per_page||L.pageSize,dataSource:V.ec_courses.map((Y,G)=>b(p({},Y),{key:N.page>1?(N.page-1)*N.per_page+G+1:G+1}))})}))}else yield C({type:"setCourseResults",payload:b(p({},L),{pageNo:1,total:0,dataSource:[]})})},*exportCourse({payload:A},{call:I,select:C}){const{headerData:O}=yield C(T=>T.engineeringEvaluteList);O.active[E[1]]&&(yield I(t.F,O.active[E[1]]))},*compute({payload:A},{call:I,put:C}){const O=A,{all:T}=O,D=h(O,["all"]),k=yield I(T?t.At:t.PX,D);k&&k.status===0?(r.ZP.success("\u8BA1\u7B97\u5B8C\u6210"),yield C({type:"getCourseResults",payload:{calc:!0}})):r.ZP.error(k.message)}},reducers:{save(A,I){return p(p({},A),I.payload)},setMajorOrYearDataSource(A,{payload:I}){let C=A.headerData.active;return I.active&&(C=b(p({},C),{[I.key]:I.active})),b(p({},A),{headerData:b(p({},A.headerData),{dataSource:b(p({},A.headerData.dataSource),{[I.key]:b(p({},A.headerData.dataSource[I.key]),{dataList:I.value})}),active:C})})},setMajorOrYearActive(A,{payload:I}){return b(p({},A),{headerData:b(p({},A.headerData),{active:b(p({},A.headerData.active),{[I.key]:I.value})})})},setCourseResults(A,{payload:I}){return b(p({},A),{tabListData:p(p({},A.tabListData),I)})}},subscriptions:{setup({dispatch:A,history:I}){return I.listen(({pathname:C})=>{C==="/"&&A({type:"query"})})}}};d.Z=P},26422:function(i,d,e){"use strict";e.d(d,{L:function(){return c},r:function(){return f}});var t=Object.defineProperty,r=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,s=(g,p,b)=>p in g?t(g,p,{enumerable:!0,configurable:!0,writable:!0,value:b}):g[p]=b,u=(g,p)=>{for(var b in p||(p={}))n.call(p,b)&&s(g,b,p[b]);if(r)for(var b of r(p))o.call(p,b)&&s(g,b,p[b]);return g};const c=g=>g==null?void 0:g.map(p=>{const b=(p.sub_disciplines||[]).map(h=>({value:h.id,label:h.name}));return{value:p.id,label:p.name,children:b}}),a={1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D",7:"\u4E03",8:"\u516B"},f=g=>{if(!g)return;const{all_questions_count:p,all_score:b,single_questions:h,multiple_questions:E,judgement_questions:P,program_questions:A,completion_questions:I,subjective_questions:C,practical_questions:O,combination_questions:T}=g||{},k=[u({type:"SINGLE",name:"\u5355\u9009\u9898"},h),u({type:"MULTIPLE",name:"\u591A\u9009\u9898"},E),u({type:"COMPLETION",name:"\u586B\u7A7A\u9898"},I),u({type:"JUDGMENT",name:"\u5224\u65AD\u9898"},P),u({type:"SUBJECTIVE",name:"\u7B80\u7B54\u9898"},C),u({type:"PROGRAM",name:"\u7F16\u7A0B\u9898"},A),u({type:"PRACTICAL",name:"\u5B9E\u8BAD\u9898"},O),u({type:"COMBINATION",name:"\u7EC4\u5408\u9898"},T)].filter($=>$.questions_count>0).map(($,L)=>u(u({},$),{number:a[L+1]}));return{all_questions_count:p,all_score:b,questionList:k}}},99309:function(i,d,e){"use strict";e.d(d,{U:function(){return o},t:function(){return n}});var t=e(43418),r=e(24065);const n=(s,u="")=>{t.default.confirm({centered:!0,width:520,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:u,onOk:s})},o={setItem:(s,u)=>{var c;const a=s+"-engineering"+((c=(0,r.eY)())==null?void 0:c.school_id),f=JSON.stringify(u);localStorage.setItem(a,f)},getItem:s=>{var u;const c=s+"-engineering"+((u=(0,r.eY)())==null?void 0:u.school_id),a=localStorage.getItem(c);return a!==null&&a!=="[object Object]"?JSON.parse(a):[]},clear:s=>{var u;const c=s+"-engineering"+((u=(0,r.eY)())==null?void 0:u.school_id);localStorage.removeItem(c)}}},35390:function(i,d,e){"use strict";e.d(d,{$f:function(){return p},Cq:function(){return E},GY:function(){return u},I8:function(){return A},Ow:function(){return b},P:function(){return g},Ql:function(){return c},RA:function(){return O},Zm:function(){return a},bz:function(){return s},eF:function(){return P},gQ:function(){return I},ht:function(){return h},kN:function(){return T},n1:function(){return n},nI:function(){return D},o9:function(){return o},sG:function(){return f},wi:function(){return C}});var t=e(99064),r=(k,$,L)=>new Promise((R,z)=>{var N=Y=>{try{j(L.next(Y))}catch(G){z(G)}},V=Y=>{try{j(L.throw(Y))}catch(G){z(G)}},j=Y=>Y.done?R(Y.value):Promise.resolve(Y.value).then(N,V);j((L=L.apply(k,$)).next())});function n(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.login}/avatar.json`,{method:"put",body:k})})}function o(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.login}.json`,{method:"get"})})}function s(k){return r(this,null,function*(){return(0,t.ZP)("/api/add_school_applies.json",{method:"post",body:k})})}function u(k){return r(this,null,function*(){return(0,t.ZP)("/api/schools/limit_list.json",{method:"get",params:k})})}function c(k){return r(this,null,function*(){return(0,t.ZP)(`/api/schools/${k.id}/departments/for_option.json`,{method:"get",params:k})})}function a(k){return r(this,null,function*(){return(0,t.ZP)("/api/add_department_applies.json",{method:"post",body:k})})}function f(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.id}.json`,{method:"put",body:k})})}function g(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.login}/authentication_apply.json`,{method:"delete"})})}function p(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.login}/professional_auth_apply.json`,{method:"delete"})})}function b(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.id}/professional_auth_apply.json`,{method:"post",body:k})})}function h(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.id}/authentication_apply.json`,{method:"post",body:k})})}function E(k){return r(this,null,function*(){return(0,t.ZP)("/api/accounts/get_verification_code.json",{method:"get",params:k})})}function P(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.login}/phone_bind.json`,{method:"post",body:k})})}function A(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.login}/email_bind.json`,{method:"post",body:k})})}function I(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.login}/password.json`,{method:"put",body:k})})}function C(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.basicInfoId}/open_users/${k.id}.json`,{method:"delete"})})}function O(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/${k.login}/cancel_authentication.json`,{method:"post",body:k})})}function T(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/${k.login}/cancel_professional_certification.json`,{method:"post",body:k})})}function D(k,$){return r(this,null,function*(){return(0,t.ZP)(`/api/users/${k.login}/videos/${k.id}/create_subject_video.json`,{method:"post",body:$})})}},13112:function(i,d,e){"use strict";e.d(d,{An:function(){return b},TO:function(){return f},my:function(){return p},nZ:function(){return g}});var t=e(99064),r=Object.defineProperty,n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(h,E,P)=>E in h?r(h,E,{enumerable:!0,configurable:!0,writable:!0,value:P}):h[E]=P,c=(h,E)=>{for(var P in E||(E={}))o.call(E,P)&&u(h,P,E[P]);if(n)for(var P of n(E))s.call(E,P)&&u(h,P,E[P]);return h},a=(h,E,P)=>new Promise((A,I)=>{var C=D=>{try{T(P.next(D))}catch(k){I(k)}},O=D=>{try{T(P.throw(D))}catch(k){I(k)}},T=D=>D.done?A(D.value):Promise.resolve(D.value).then(C,O);T((P=P.apply(h,E)).next())});function f(h){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${h.coursesId}/inform_up.json`,{method:"post",body:c({},h)})})}function g(h){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${h.coursesId}/inform_down.json`,{method:"post",body:c({},h)})})}function p(h){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${h.coursesId}/update_informs.json`,{method:"post",body:c({},h)})})}function b(h){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${h.coursesId}/new_informs.json`,{method:"post",body:c({},h)})})}},19381:function(i,d,e){"use strict";e.d(d,{$n:function(){return P},H:function(){return E},Nm:function(){return b},Ot:function(){return h},SV:function(){return f},fc:function(){return I},mn:function(){return A},tO:function(){return p},zI:function(){return g}});var t=e(99064),r=Object.defineProperty,n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(C,O,T)=>O in C?r(C,O,{enumerable:!0,configurable:!0,writable:!0,value:T}):C[O]=T,c=(C,O)=>{for(var T in O||(O={}))o.call(O,T)&&u(C,T,O[T]);if(n)for(var T of n(O))s.call(O,T)&&u(C,T,O[T]);return C},a=(C,O,T)=>new Promise((D,k)=>{var $=z=>{try{R(T.next(z))}catch(N){k(N)}},L=z=>{try{R(T.throw(z))}catch(N){k(N)}},R=z=>z.done?D(z.value):Promise.resolve(z.value).then($,L);R((T=T.apply(C,O)).next())});function f(C){return a(this,null,function*(){return(0,t.ZP)("/api/files/public_with_course_and_project",{method:"get",params:c({},C)})})}function g(C){return a(this,null,function*(){return(0,t.ZP)("/api/files/mine_with_course_and_project.json",{method:"get",params:c({},C)})})}function p(C){return a(this,null,function*(){return(0,t.ZP)("/api/files/import.json",{method:"post",body:c({},C)})})}function b(C){return a(this,null,function*(){return(0,t.ZP)(`/api/files/${C.id}.json`,{method:"get",params:c({},C)})})}function h(C){return a(this,null,function*(){const{id:O}=C;return delete C.id,(0,t.ZP)(`/api/files/${O}.json`,{method:"put",body:c({},C)})})}function E(C){return a(this,null,function*(){return(0,t.ZP)(`/api/files/${C.id}/update_visits.json`,{method:"post"})})}function P(C){return a(this,null,function*(){return(0,t.ZP)(`/api/files/${C==null?void 0:C.id}/watch_list.json`,{method:"get",params:c({},C)})})}function A(C){return a(this,null,function*(){return(0,t.ZP)("/api/files/get_batches_publish_info.json",{method:"get",params:c({},C)})})}function I(C){return a(this,null,function*(){return(0,t.ZP)(`/api/files/${C==null?void 0:C.id}/add_file_quantity.json`,{method:"post",body:c({},C)})})}},10813:function(i,d,e){"use strict";e.d(d,{CJ:function(){return b},Mf:function(){return I},NA:function(){return P},PC:function(){return h},PP:function(){return E},YQ:function(){return A},cc:function(){return p},dI:function(){return g},yq:function(){return f}});var t=e(99064),r=Object.defineProperty,n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(C,O,T)=>O in C?r(C,O,{enumerable:!0,configurable:!0,writable:!0,value:T}):C[O]=T,c=(C,O)=>{for(var T in O||(O={}))o.call(O,T)&&u(C,T,O[T]);if(n)for(var T of n(O))s.call(O,T)&&u(C,T,O[T]);return C},a=(C,O,T)=>new Promise((D,k)=>{var $=z=>{try{R(T.next(z))}catch(N){k(N)}},L=z=>{try{R(T.throw(z))}catch(N){k(N)}},R=z=>z.done?D(z.value):Promise.resolve(z.value).then($,L);R((T=T.apply(C,O)).next())});function f(C){return a(this,null,function*(){return(0,t.ZP)("/api/courses/board_list.json",{method:"get",params:c({},C)})})}function g(C){return a(this,null,function*(){return(0,t.ZP)(`/api/messages/${C.boardId}.json`,{method:"get",params:c({},C)})})}function p(C){return a(this,null,function*(){return(0,t.ZP)(`/api/messages/${C.id}/sticky_top.json`,{method:"put",body:{course_id:C.coursesId}})})}function b(C){return a(this,null,function*(){return(0,t.ZP)(`/api/messages/${C.id}/sticky_top.json`,{method:"put",body:{course_id:C.coursesId}})})}function h(C){return a(this,null,function*(){return(0,t.ZP)(`/api/messages/${C.boardId}/reply_list.json`,{method:"get",params:c({},C)})})}function E(C){return a(this,null,function*(){return(0,t.ZP)(`/api/messages/${C.boardId}/reply.json`,{method:"post",body:c({},C)})})}function P(C){return a(this,null,function*(){return(0,t.ZP)("/api/praise_tread/like.json",{method:"post",body:c({},C)})})}function A(C){return a(this,null,function*(){return(0,t.ZP)("/api/praise_tread/unlike.json",{method:"delete",body:c({},C)})})}function I(C){return a(this,null,function*(){return(0,t.ZP)("/api/commons/delete.json",{method:"delete",body:c({},C)})})}},92365:function(i,d,e){"use strict";e.d(d,{$T:function(){return mt},A:function(){return Gt},Ab:function(){return sn},Al:function(){return Y},BQ:function(){return Be},BR:function(){return j},Bn:function(){return je},Cq:function(){return yr},DJ:function(){return ee},Dd:function(){return h},Ds:function(){return tt},EO:function(){return me},Ed:function(){return ae},Ew:function(){return Ra},FU:function(){return Le},Fg:function(){return E},GV:function(){return ze},Gk:function(){return R},Gm:function(){return yt},Gz:function(){return P},Hl:function(){return A},Hn:function(){return T},ID:function(){return Qr},IU:function(){return Zt},J2:function(){return ve},K$:function(){return Tt},KP:function(){return le},KT:function(){return B},L$:function(){return et},Lk:function(){return ba},Ls:function(){return Z},MA:function(){return Ge},Mc:function(){return Kn},N7:function(){return V},Nd:function(){return L},Nl:function(){return st},Ns:function(){return on},O3:function(){return H},Pj:function(){return ot},QX:function(){return ft},QZ:function(){return M},R2:function(){return N},Rk:function(){return Ir},S9:function(){return Je},U8:function(){return tr},UD:function(){return hr},U_:function(){return k},Uy:function(){return Nr},V8:function(){return O},Vw:function(){return Q},W0:function(){return ce},W7:function(){return Xe},WK:function(){return Wt},Wr:function(){return rr},YR:function(){return xt},Z0:function(){return nt},ZL:function(){return wt},ZT:function(){return en},ZX:function(){return Ee},Zj:function(){return Ya},_9:function(){return St},_B:function(){return Bn},aP:function(){return lt},aQ:function(){return ge},aZ:function(){return Ke},al:function(){return jt},bm:function(){return kr},bz:function(){return xe},c_:function(){return Sr},ds:function(){return fr},fN:function(){return Ft},fr:function(){return ke},g4:function(){return He},gq:function(){return I},hf:function(){return J},i:function(){return or},i6:function(){return Ue},i7:function(){return Wr},iE:function(){return f},ih:function(){return we},kW:function(){return pe},km:function(){return ur},nP:function(){return p},nQ:function(){return Ce},nX:function(){return Dt},oM:function(){return Pt},oR:function(){return gn},o_:function(){return qe},pf:function(){return sr},pr:function(){return dn},pv:function(){return Ze},qB:function(){return G},rS:function(){return C},s:function(){return br},sb:function(){return Ne},sm:function(){return b},t1:function(){return rt},tB:function(){return Jr},tI:function(){return Oa},td:function(){return it},uh:function(){return Re},up:function(){return Vt},v2:function(){return g},vV:function(){return Rt},w9:function(){return $},wR:function(){return Me},yS:function(){return ct},yV:function(){return z},yd:function(){return Te},zC:function(){return la},zg:function(){return K}});var t=e(99064),r=Object.defineProperty,n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(Ae,Nn,ta)=>Nn in Ae?r(Ae,Nn,{enumerable:!0,configurable:!0,writable:!0,value:ta}):Ae[Nn]=ta,c=(Ae,Nn)=>{for(var ta in Nn||(Nn={}))o.call(Nn,ta)&&u(Ae,ta,Nn[ta]);if(n)for(var ta of n(Nn))s.call(Nn,ta)&&u(Ae,ta,Nn[ta]);return Ae},a=(Ae,Nn,ta)=>new Promise((Sa,Ja)=>{var qa=yn=>{try{Ia(ta.next(yn))}catch(bn){Ja(bn)}},Wn=yn=>{try{Ia(ta.throw(yn))}catch(bn){Ja(bn)}},Ia=yn=>yn.done?Sa(yn.value):Promise.resolve(yn.value).then(qa,Wn);Ia((ta=ta.apply(Ae,Nn)).next())});const f=Ae=>a(void 0,null,function*(){return(0,t.ZP)(`/api/courses/${Ae==null?void 0:Ae.course_id}/course_videos/configs.json`,{method:"put",body:Ae})}),g=Ae=>a(void 0,null,function*(){return(0,t.ZP)(`/api/courses/${Ae==null?void 0:Ae.course_id}/course_videos/list_for_config.json`,{method:"Get",params:Ae})}),p=Ae=>a(void 0,null,function*(){return(0,t.ZP)(`/api/courses/${Ae==null?void 0:Ae.course_id}/homework_commons/max_late_time.json`,{method:"Get",params:Ae})}),b=Ae=>a(void 0,null,function*(){return(0,t.ZP)(`/api/courses/${Ae==null?void 0:Ae.course_id}/homework_commons/batch_late_setting`,{method:"post",body:Ae})}),h=Ae=>a(void 0,null,function*(){return(0,t.ZP)("/api/course_statistics/course_use_infos.json",{method:"Get",params:Ae})}),E=Ae=>a(void 0,null,function*(){return(0,t.ZP)("/api/course_statistics/rank_list.json",{method:"Get",params:Ae})}),P=Ae=>a(void 0,null,function*(){return(0,t.ZP)("/api/course_statistics/statistics_body.json",{method:"Get",params:Ae})}),A=Ae=>a(void 0,null,function*(){return(0,t.ZP)("/api/course_statistics/statistics_header.json",{method:"Get",params:Ae})});function I(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.course_id}/set_assistant_permissions.json`,{method:"post",body:c({},Ae.permissions)})})}function C(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.course_id}/assistant_permissions.json`,{method:"Get",params:c({},Ae)})})}function O(Ae){return a(this,null,function*(){return(0,t.ZP)("/api/courses.json",{method:"Get",params:c({},Ae)})})}function T(Ae){return a(this,null,function*(){return(0,t.ZP)("/api/intelligent_recommendations/according_course_recommend_shixuns.json",{method:"Get",params:c({},Ae)})})}function D(Ae){return a(this,null,function*(){return Fetch("/api/disciplines.json",{method:"Get",params:c({},Ae)})})}function k(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.id}/top_banner.json`,{method:"get",params:c({},Ae)})})}function $(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.id||Ae.coursesId}/left_banner.json`,{method:"get",params:c({},Ae)})})}function L(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.id}/homework_commons.json`,{method:"get",params:c({},Ae)})})}function R(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.id}/homework_commons/list.json`,{method:"get",params:c({},Ae)})})}function z(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.id}/graduation_topics.json`,{method:"get",params:c({},Ae)})})}function N(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.id}/graduation_tasks.json`,{method:"get",params:c({},Ae)})})}function V(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/v2/courses/${Ae.id}/exercises.json`,{method:"get",params:c({},Ae)})})}function j(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.id}/polls.json`,{method:"get",params:c({},Ae)})})}function Y(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.id}/homework_commons.json`,{method:"get",params:c({},Ae)})})}function G(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.id}/course_groups.json`,{method:"get",params:c({},Ae)})})}function J(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.id}/all_course_groups.json`,{method:"get",params:c({},Ae)})})}function Q(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.id}/attendances.json`,{method:"get",params:c({},Ae)})})}function Z(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/weapps/courses/${Ae.coursesId}/attendances.json`,{method:"get",params:c({},Ae)})})}function K(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/attendances/${Ae.id}/edit.json`,{method:"get",params:c({},Ae)})})}function M(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.id}/informs.json`,{method:"get",params:c({},Ae)})})}function B(Ae){return a(this,null,function*(){return(0,t.ZP)("/api/files.json",{method:"get",params:c({},Ae)})})}function H(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.id}/course_videos.json`,{method:"get",params:c({},Ae)})})}function ee(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.id}/live_links.json`,{method:"get",params:c({},Ae)})})}function ae(Ae){return a(this,null,function*(){return(0,t.ZP)("/api/courses/mine.json",{method:"get",params:c({},Ae)})})}function le(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/boards/${Ae.categoryId}/messages.json`,{method:"get",params:c({},Ae)})})}function pe(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.id}/course_groups.json`,{method:"get",params:c({},Ae)})})}function ve(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.id}/students.json`,{method:"get",params:c({},Ae)})})}function He(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/statistics.json`,{method:"get",params:c({},Ae)})})}function ze(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/work_score.json`,{method:"get",params:c({},Ae)})})}function rt(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/act_score.json`,{method:"get",params:c({},Ae)})})}function ot(Ae){return a(this,null,function*(){return(0,t.ZP)("/api/shixun_lists.json",{method:"get",params:c({},Ae)})})}function yt(Ae){return a(this,null,function*(){return(0,t.ZP)("/api/item_banks.json",{method:"get",params:c({},Ae)})})}function St(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae==null?void 0:Ae.course_id}/homework_commons/impersonal_list.json`,{method:"get",params:c({},Ae)})})}function ge(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/homework_commons/create_shixun_homework.json`,{method:"post",body:c({},Ae)})})}function Be(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae==null?void 0:Ae.course_id}/homework_commons/create_collaborators.json`,{method:"post",body:c({},Ae)})})}function Xe(Ae){return a(this,null,function*(){return(0,t.ZP)("/api/subject_lists.json",{method:"get",params:c({},Ae)})})}function tt(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/homework_commons/create_subject_homework.json`,{method:"post",body:c({},Ae)})})}function Tt(Ae){return a(this,null,function*(){return(0,t.ZP)("/api/schools/school_list.json",{method:"get",params:Ae})})}function Pt(Ae){return a(this,null,function*(){return(0,t.ZP)("/api/courses/search_course_list.json",{method:"post",body:Ae})})}function je(Ae){return a(this,null,function*(){return(0,t.ZP)("/api/courses.json",{method:"post",body:Ae})})}function xe(Ae){return a(this,null,function*(){return(0,t.ZP)("/api/add_school_applies.json",{method:"post",body:Ae})})}function Ce(Ae){return a(this,null,function*(){return(0,t.ZP)("/api/users/member_search.json",{method:"get",params:Ae})})}function Le(Ae){return a(this,null,function*(){return(0,t.ZP)("/api/courses/search_all.json",{method:"get",params:Ae})})}function Re(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/add_teacher.json`,{method:"post",body:Ae})})}function Ke(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/add_students_by_search.json`,{method:"post",body:Ae})})}function Ne(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/set_public_or_private.json`,{method:"post",body:Ae})})}function et(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/set_invite_code_halt.json`,{method:"post",body:Ae})})}function Je(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/duplicate_course.json`,{method:"post",body:Ae})})}function jt(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/update_end_date.json`,{method:"put",body:Ae})})}function Gt(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}.json`,{method:"delete",body:Ae})})}function me(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/settings.json`,{method:"get",params:c({},Ae)})})}function ke(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}.json`,{method:"put",body:Ae})})}function xt(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/export_couser_info.json`,{method:"get",params:{export:!0}})})}function ct(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/export_member_act_score_async.json`,{method:"get",params:c({export:!0},Ae)})})}function ft(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/export_total_homework_commons_score.json`,{method:"get",params:c({export:!0},Ae)})})}function st(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/export_total_exercises_and_other_score.json`,{method:"get",params:c({export:!0},Ae)})})}function Zt(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/export_star_user.json`,{method:"get",params:c({export:!0},Ae)})})}function it(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/export_mooc_records.json`,{method:"get",params:c({export:!0},Ae)})})}function ce(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/export_total_course_score.json`,{method:"get",params:c({export:!0},Ae)})})}function lt(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Ae.categoryId}/export_scores.json`,{method:"get",params:c({export:!0},Ae)})})}function qe(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Ae.categoryId}/export_shixun_report.json`,{method:"get",params:c({export:!0},Ae)})})}function wt(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ae.categoryId}/export_exercise_users.json`,{method:"get",params:c({export:!0},Ae)})})}function Rt(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ae.categoryId}/export_exercise_word.json`,{method:"get",params:c({export:!0},Ae)})})}function vr(Ae){return a(this,null,function*(){return Fetch(`/api/homework_commons/${Ae.categoryId}/works_list.zip`,{method:"get",params:c({export:!0},Ae)})})}function nt(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api//course_second_categories/${Ae.id}.json`,{method:"delete",params:{export:!0}})})}function or(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api//boards/${Ae.id}.json`,{method:"delete",params:{export:!0}})})}function Te(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/course_modules/${Ae.id}/sticky_module.json`,{method:"get"})})}function Dt(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/course_modules/${Ae.id}/hidden_module.json`,{method:"get"})})}function sr(Ae){return a(this,null,function*(){return(0,t.ZP)("/api/courses/new.json",{method:"get",params:Ae})})}function fr(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/weapps/attendances/${Ae.id}.json`,{method:"get",params:Ae})})}function kr(Ae){return a(this,null,function*(){return(0,t.ZP)("/api/weapps/course_member_attendances.json",{method:"get",params:Ae})})}function hr(Ae){return a(this,null,function*(){return(0,t.ZP)("/api/weapps/course_member_attendances/update_status.json",{method:"post",body:Ae})})}function _r(Ae){return a(this,null,function*(){return Fetch(`/api/polls/${Ae.categoryId}/commit_result.xlsx`,{method:"get",params:c({export:!0},Ae)})})}function Nr(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ae.categoryId}/export_scores.json`,{method:"get",params:c({export:!0},Ae)})})}function Wr(Ae){return(0,t.ZP)(`/api/polls/${Ae.categoryId}/start_answer.json`,{method:"get",params:c({},Ae)})}function Qr(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/poll_questions/${Ae.questionId}/poll_votes.json`,{method:"post",body:Ae})})}function on(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/polls/${Ae.categoryId}/commit_poll.json`,{method:"post",body:Ae})})}function ur(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.courseId}/tasks_list.json`,{method:"get",params:Ae})})}function tr(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.courseId}/update_task_position.json`,{method:"post",body:Ae})})}function Vt(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/calculate_all_shixun_scores.json`,{method:"get",params:Ae})})}function Sr(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/all_course_groups.json`,{method:"get",params:Ae})})}function yr(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/polls/all_course_groups.json`,{method:"get",params:Ae})})}function Ir(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/students.json`,{method:"get",params:Ae})})}function mt(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/course_groups/${Ae.categoryId}/rename_group.json`,{method:"POST",body:Ae})})}function Ze(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/course_groups/${Ae.categoryId}.json`,{method:"delete",body:Ae})})}function Ue(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/join_course_group.json`,{method:"POST",body:Ae})})}function Me(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/transfer_to_course_group.json`,{method:"post",body:Ae})})}function Ge(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/delete_from_course.json`,{method:"post",body:Ae})})}function Wt(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/join_course_group.json`,{method:"post",body:Ae})})}function Ft(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/exit_course.json`,{method:"post"})})}function Ee(Ae){return a(this,null,function*(){return(0,t.ZP)("/api/weapps/course_member_attendances.json",{method:"post",body:c({},Ae)})})}function we(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/mooc_users/${Ae.user_id}/edit.json`,{method:"get",params:Ae})})}function br(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/mooc_users.json`,{method:"post",body:Ae})})}function Jr(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.coursesId}/mooc_users/${Ae.user_id}.json`,{method:"put",body:Ae})})}function rr(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/course_second_categories/${Ae.id}/move_category.json`,{method:"post",body:Ae})})}function sn(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/boards/${Ae.id}/move_category.json`,{method:"post",body:Ae})})}function en(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.id}/courseware.json`,{method:"get",params:Ae})})}function dn(Ae,Nn){return a(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ae}/mark_wrong_topic.json`,{method:"get",params:Nn})})}function Bn(Ae,Nn){return a(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ae}/cancel_wrong_topic.json`,{method:"get",params:Nn})})}function gn(Ae,Nn){return a(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Ae}/allow_end_group.json`,{method:"get",params:Nn})})}function Kn(Ae,Nn){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae}/homework_commons/end_with_homework_list_position.json`,{method:"post",body:Nn})})}function ba(Ae,Nn){return a(this,null,function*(){return(0,t.ZP)(`/api/tasks/${Ae}/get_content_for_commit_id.json`,{method:"get",params:Nn})})}function Oa(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.course_id}/course_ai_info.json`,{method:"Get",params:c({},Ae)})})}function la(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae.course_id}/set_open_ai.json`,{method:"post",body:Ae})})}function Ra(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae==null?void 0:Ae.id}/smart_plans.json`,{method:"get",params:c({},Ae)})})}function Ya(Ae){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ae==null?void 0:Ae.id}/smart_plans.json`,{method:"post",body:c({},Ae)})})}},52721:function(i,d,e){"use strict";e.d(d,{$M:function(){return yt},$P:function(){return jt},Ax:function(){return g},Dh:function(){return A},FU:function(){return R},GQ:function(){return Q},IN:function(){return xe},JM:function(){return Ke},Ju:function(){return ot},Mn:function(){return je},Ni:function(){return H},Pg:function(){return I},Pt:function(){return P},Qp:function(){return G},R9:function(){return z},Ux:function(){return J},Vy:function(){return pe},XJ:function(){return B},XR:function(){return ze},Ze:function(){return D},aq:function(){return T},bQ:function(){return h},bu:function(){return p},cC:function(){return f},jS:function(){return V},lm:function(){return Ce},ml:function(){return K},o3:function(){return ge},pA:function(){return Xe},pS:function(){return Re},pU:function(){return M},ps:function(){return L},q0:function(){return Tt},qN:function(){return Pt},qS:function(){return E},qj:function(){return He},qt:function(){return et},rV:function(){return C},rZ:function(){return Ne},rk:function(){return ae},rm:function(){return Y},sK:function(){return j},sL:function(){return tt},su:function(){return Le},tC:function(){return le},tO:function(){return ve},u9:function(){return Z},uZ:function(){return ee},vV:function(){return $},xx:function(){return Gt},y8:function(){return rt},yS:function(){return k},zF:function(){return b},zc:function(){return N},zj:function(){return O},zz:function(){return Je}});var t=e(99064),r=Object.defineProperty,n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(me,ke,xt)=>ke in me?r(me,ke,{enumerable:!0,configurable:!0,writable:!0,value:xt}):me[ke]=xt,c=(me,ke)=>{for(var xt in ke||(ke={}))o.call(ke,xt)&&u(me,xt,ke[xt]);if(n)for(var xt of n(ke))s.call(ke,xt)&&u(me,xt,ke[xt]);return me},a=(me,ke,xt)=>new Promise((ct,ft)=>{var st=ce=>{try{it(xt.next(ce))}catch(lt){ft(lt)}},Zt=ce=>{try{it(xt.throw(ce))}catch(lt){ft(lt)}},it=ce=>ce.done?ct(ce.value):Promise.resolve(ce.value).then(st,Zt);it((xt=xt.apply(me,ke)).next())});const f=me=>(0,t.ZP)(`/api/competitions/${me.identifier}/create_guide.json`,{method:"post",body:me}),g=me=>(0,t.ZP)(`/api/competitions/${me.identifier}/guides.json`,{method:"get",params:me}),p=me=>(0,t.ZP)(`/api/competitions/${me.identifier}/competition_teams/${me.competition_team_id}/edit_info.json`,{method:"put",body:me});function b(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/update_result.json`,{method:"post",body:me})})}function h(me){return a(this,null,function*(){return(0,t.ZP)("/api/competitions.json",{method:"Get",params:c({},me)})})}function E(me){return a(this,null,function*(){return(0,t.ZP)("/api/courses/apply_to_join_course.json",{method:"post",body:me})})}function P(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/competition_teams.json`,{method:"post"})})}function A(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/competition_staff.json`,{method:"get"})})}function I(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/common_header.json`,{method:"get"})})}function C(me){return a(this,null,function*(){return(0,t.ZP)(`/api/${me.url}`,{method:"get",params:c({},me)})})}function O(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/update_md_content.json`,{method:"post",body:me})})}function T(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/competition_teams.json`,{method:"get",params:me})})}function D(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/competition_teams/${me.Teannameid}/edit.json`,{method:"get",params:me})})}function k(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/competition_teams/${me.Teannameid}.json`,{method:"put",body:me})})}function $(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/competition_teams/${me.id}/leave.json`,{method:"post",body:me})})}function L(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/competition_teams/${me.id}.json`,{method:"delete"})})}function R(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/competition_teams.json`,{method:"post",body:me})})}function z(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.id}/add_managers.json`,{method:"post",body:me})})}function N(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/competition_teams/join.json`,{method:"post",body:me})})}function V(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/teachers.json`,{method:"get",params:me})})}function j(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/students.json`,{method:"get",params:me})})}function Y(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/competition_teams/${me.teamid}/crud_team_members.json`,{method:"post",body:me})})}function G(me){return a(this,null,function*(){return(0,t.ZP)("/api/users/competition_reward.json",{method:"post",body:me})})}function J(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/chart_rules.json`,{method:"get"})})}function Q(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/charts.json`,{method:"get",params:me})})}function Z(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/results.json`,{method:"get",params:me})})}function K(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/md_tab_rules.json`,{method:"get",params:me})})}function M(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/prize.json`,{method:"get",params:me})})}function B(me){return a(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${me.id}.json`,{method:"get",params:me})})}function H(me){return a(this,null,function*(){return(0,t.ZP)("/api/accounts/get_verification_code.json",{method:"get",params:me})})}function ee(me){return a(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${me.userid}/phone_bind.json`,{method:"post",body:me})})}function ae(me){return a(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${me.userid}/email_bind.json`,{method:"post",body:me})})}function le(me){return a(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${me.userid}/professional_auth_apply.json`,{method:"delete"})})}function pe(me){return a(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${me.userid}/authentication_apply.json`,{method:"delete"})})}function ve(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/prize_leader_account.json`,{method:"put",body:me})})}function He(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/competition_teams/${me.teamid}/shixun_detail.json`,{method:"get"})})}function ze(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/competition_teams/${me.teamid}/course_detail.json`,{method:"get"})})}function rt(me){return a(this,null,function*(){return(0,t.ZP)(`/api/attachments/${me.id}.json`,{method:"delete"})})}function ot(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.id}/get_certificate_info.json`,{method:"get",params:me})})}function yt(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.id}/basic_setting.json`,{method:"post",body:me})})}function St(){return a(this,null,function*(){return Fetch("/api/competitions/download_template",{method:"get",responseType:"arraybuffer"})})}function ge(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me}/common_header.json`,{method:"get"})})}function Be(me){return a(this,null,function*(){return Fetch("/api/competitions.json",{method:"post",body:me})})}function Xe(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me==null?void 0:me.id}/search_managers.json`,{method:"get",params:me})})}function tt(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me}/get_managers.json`,{method:"get"})})}function Tt(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me==null?void 0:me.id}/add_managers.json`,{method:"post",body:me})})}function Pt(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me==null?void 0:me.id}/delete_managers.json`,{method:"delete",body:me})})}function je(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me}/get_picture.json`,{method:"get"})})}function xe(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me==null?void 0:me.id}/identifier_exist.json`,{method:"post",body:me})})}function Ce(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me}/get_shixun_settings.json`,{method:"get"})})}function Le(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me==null?void 0:me.id}/shixun_add.json`,{method:"post",body:me})})}function Re(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me==null?void 0:me.id}/shixun_delete.json`,{method:"delete",body:me})})}function Ke(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me==null?void 0:me.id}/shixun_select.json`,{method:"post",body:me})})}function Ne(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me}/info_finish.json`,{method:"get"})})}function et(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me==null?void 0:me.id}/competition_review.json`,{method:"post",body:c({},me)})})}function Je(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/competition_teams.json`,{method:"get",params:me})})}function jt(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/all_team_members.json`,{method:"get",params:me})})}function Gt(me){return a(this,null,function*(){return(0,t.ZP)(`/api/competitions/${me.identifier}/competition_commit_records/member_works.json`,{method:"get",params:me})})}},38650:function(i,d,e){"use strict";e.d(d,{F:function(){return E},OE:function(){return O},ff:function(){return P},p1:function(){return A},_y:function(){return h},mK:function(){return $},gq:function(){return R},eM:function(){return k},BA:function(){return V},bA:function(){return Y},Nx:function(){return j},Qx:function(){return T},At:function(){return I},PX:function(){return C},Xl:function(){return D},y9:function(){return L},No:function(){return z},ay:function(){return G}});var t=e(99064),r=Object.defineProperty,n=Object.defineProperties,o=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,a=(J,Q,Z)=>Q in J?r(J,Q,{enumerable:!0,configurable:!0,writable:!0,value:Z}):J[Q]=Z,f=(J,Q)=>{for(var Z in Q||(Q={}))u.call(Q,Z)&&a(J,Z,Q[Z]);if(s)for(var Z of s(Q))c.call(Q,Z)&&a(J,Z,Q[Z]);return J},g=(J,Q)=>n(J,o(Q)),p=(J,Q)=>{var Z={};for(var K in J)u.call(J,K)&&Q.indexOf(K)<0&&(Z[K]=J[K]);if(J!=null&&s)for(var K of s(J))Q.indexOf(K)<0&&c.call(J,K)&&(Z[K]=J[K]);return Z},b=(J,Q,Z)=>new Promise((K,M)=>{var B=ae=>{try{ee(Z.next(ae))}catch(le){M(le)}},H=ae=>{try{ee(Z.throw(ae))}catch(le){M(le)}},ee=ae=>ae.done?K(ae.value):Promise.resolve(ae.value).then(B,H);ee((Z=Z.apply(J,Q)).next())});const h=J=>b(void 0,null,function*(){var Q=J,{id:Z}=Q,K=p(Q,["id"]);return(0,t.ZP)(`/api/ec_years/${Z}/course_results.json`,{method:"get",params:K})}),E=J=>{let Q=document.createElement("iframe");Q.src=`/api/ec_years/${J}/course_results.xlsx`,Q.style.display="none",document.body.appendChild(Q)},P=({ec_year_id:J})=>(0,t.ZP)(`/api/ec_years/${J}/course_results/get_class.json`,{method:"get"}),A=({ec_year_id:J,id:Q,class_name:Z=null})=>(0,t.ZP)(`/api/ec_years/${J}/course_results/${Q}.json`,{method:"get",params:{class_name:Z}}),I=({ec_year_id:J})=>(0,t.ZP)("/api/ec_courses/1/evaluations/compute_all_courses_data",{method:"post",body:{ec_year_id:J}}),C=({ec_course_id:J})=>(0,t.ZP)(`/api/ec_courses/${J}/evaluations/evaluation_data`,{method:"POST"}),O=J=>{let Q=document.createElement("iframe");Q.src=`/api/ec_years/${J}/ec_graduation_results.xlsx`,Q.style.display="none",document.body.appendChild(Q)},T=({ec_year_id:J})=>(0,t.ZP)(`/api/ec_years/${J}/ec_graduation_results/compute_all`,{method:"post"}),D=({ec_year_id:J,id:Q})=>(0,t.ZP)(`/api/ec_years/${J}/ec_graduation_results/compute_single?id=${Q}`,{method:"POST"}),k=J=>(0,t.ZP)(`/api/ec_years/${J}/ec_graduation_results.json`,{method:"get"}),$=J=>(0,t.ZP)(`/api/ec_years/${J}/ec_graduation_results/get_formulas.json`,{method:"get"}),L=({ec_year_id:J,formula_one:Q,formula_two:Z,formula_three:K})=>(0,t.ZP)(`/api/ec_years/${J}/ec_graduation_results/set_formulas.json`,{method:"PUT",body:{formula_one_id:Q,formula_two_id:Z,formula_three_id:K}}),R=({ec_year_id:J,id:Q})=>(0,t.ZP)(`/api/ec_years/${J}/ec_graduation_results/${Q}.json`,{method:"get"}),z=J=>{var Q=J,{ec_year_id:Z,type:K,goal_value:M}=Q,B=p(Q,["ec_year_id","type","goal_value"]);let H=`?type=${K}`,ee={method:"PUT"};return K==="all"&&(H+=`&goal_value=${M}`),K==="each"&&(ee=g(f({},ee),{body:B})),(0,t.ZP)(`/api/ec_years/${Z}/ec_graduation_results/set_goal_value${H}`,ee)};var N=(J,Q,Z)=>new Promise((K,M)=>{var B=ae=>{try{ee(Z.next(ae))}catch(le){M(le)}},H=ae=>{try{ee(Z.throw(ae))}catch(le){M(le)}},ee=ae=>ae.done?K(ae.value):Promise.resolve(ae.value).then(B,H);ee((Z=Z.apply(J,Q)).next())});const V=J=>N(void 0,null,function*(){return(0,t.ZP)(`/api/schools/${J}/ec_majors/get_major_list.json`,{method:"get"})}),j=J=>N(void 0,null,function*(){return(0,t.ZP)(`/api/ec_major_schools/${J}/ec_years/get_year_list.json`,{method:"get"})}),Y=({ec_year_id:J,school_id:Q})=>(0,t.ZP)(`/api/ec_years/${J}/top_pages.json`,{method:"get",params:{school_id:Q}}),G=({id:J,name:Q})=>(0,t.ZP)(`/api/ec_years/1/top_pages/${J}?name=${Q}`,{method:"PUT"})},94941:function(i,d,e){"use strict";e.d(d,{$Q:function(){return O},$l:function(){return Ft},BJ:function(){return Pt},CD:function(){return ke},Cd:function(){return et},Cl:function(){return _r},Di:function(){return St},Fl:function(){return Xe},G$:function(){return K},GK:function(){return Be},Ip:function(){return Ce},J:function(){return M},KE:function(){return tt},L8:function(){return it},LP:function(){return Le},MK:function(){return ge},Mb:function(){return ur},N0:function(){return L},N3:function(){return ve},OO:function(){return I},P8:function(){return Ir},PJ:function(){return H},PT:function(){return Vt},Qc:function(){return z},RK:function(){return Z},Ty:function(){return fr},UH:function(){return vr},UK:function(){return He},Uj:function(){return Gt},Ul:function(){return Ne},VL:function(){return ft},Vj:function(){return lt},W4:function(){return jt},WL:function(){return qe},Wj:function(){return Q},X4:function(){return xe},Xn:function(){return Qr},Xo:function(){return V},YY:function(){return yt},Ym:function(){return k},Yu:function(){return mt},ZD:function(){return yr},Zg:function(){return Nr},_B:function(){return me},_F:function(){return tr},_U:function(){return Y},_u:function(){return ee},aU:function(){return $},ab:function(){return hr},cC:function(){return sr},cV:function(){return G},ck:function(){return Sr},dp:function(){return R},eA:function(){return Ge},fG:function(){return P},gA:function(){return J},gG:function(){return on},gJ:function(){return Ze},hk:function(){return b},hv:function(){return h},iB:function(){return E},iU:function(){return A},iw:function(){return Dt},kp:function(){return st},lL:function(){return C},lf:function(){return pe},n$:function(){return le},n7:function(){return j},nF:function(){return ce},o3:function(){return Ue},oS:function(){return Re},oX:function(){return ct},oy:function(){return kr},p7:function(){return D},pL:function(){return xt},pu:function(){return je},q6:function(){return Zt},qf:function(){return ot},qz:function(){return Ke},s:function(){return or},sA:function(){return wt},sS:function(){return Me},tX:function(){return nt},uR:function(){return ze},ux:function(){return Tt},wy:function(){return rt},xA:function(){return Te},yE:function(){return N},yu:function(){return Rt},zP:function(){return T},zR:function(){return Wt}});var t=e(99064),r=Object.defineProperty,n=Object.defineProperties,o=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,a=(Ee,we,br)=>we in Ee?r(Ee,we,{enumerable:!0,configurable:!0,writable:!0,value:br}):Ee[we]=br,f=(Ee,we)=>{for(var br in we||(we={}))u.call(we,br)&&a(Ee,br,we[br]);if(s)for(var br of s(we))c.call(we,br)&&a(Ee,br,we[br]);return Ee},g=(Ee,we)=>n(Ee,o(we)),p=(Ee,we,br)=>new Promise((Jr,rr)=>{var sn=Bn=>{try{dn(br.next(Bn))}catch(gn){rr(gn)}},en=Bn=>{try{dn(br.throw(Bn))}catch(gn){rr(gn)}},dn=Bn=>Bn.done?Jr(Bn.value):Promise.resolve(Bn.value).then(sn,en);dn((br=br.apply(Ee,we)).next())});const b=Ee=>(0,t.ZP)(`/api/exercises/${Ee==null?void 0:Ee.exercise_id}/statistics/list_student_score_by_question_type.json`,{method:"get",params:Ee}),h=Ee=>(0,t.ZP)(`/api/exercises/${Ee==null?void 0:Ee.exercise_id}/statistics/list_student_score_by_question.json`,{method:"get",params:Ee}),E=Ee=>(0,t.ZP)(`/api/exercises/${Ee.exercise_id}/statistics/export_class_compare.xlsl`,{method:"get",params:Ee}),P=Ee=>(0,t.ZP)(`/api/exercises/${Ee.exercise_id}/statistics/class_question_compare.json`,{method:"get",params:Ee}),A=Ee=>(0,t.ZP)(`/api/exercises/${Ee==null?void 0:Ee.exercise_id}/statistics/class_score_distribution.json`,{method:"get",params:Ee}),I=Ee=>(0,t.ZP)(`/api/exercises/${Ee==null?void 0:Ee.exercise_id}/statistics/list_student_score.json`,{method:"get",params:Ee}),C=Ee=>(0,t.ZP)(`/api/exercises/${Ee==null?void 0:Ee.exercise_id}/statistics/set_score_ranges.json`,{method:"put",body:Ee}),O=Ee=>(0,t.ZP)(`/api/exercises/${Ee==null?void 0:Ee.exercise_id}/statistics/score_ranges.json`,{method:"get",params:Ee}),T=Ee=>(0,t.ZP)(`/api/exercises/${Ee.id}/sava_exam_summary.json`,{method:"post",body:Ee}),D=Ee=>(0,t.ZP)("/api/intelligent_reviews/exam_summary.json",{method:"post",body:Ee}),k=Ee=>(0,t.ZP)(`/api/exercises/${Ee.id}/generate_exam_summary.json`,{method:"post",body:Ee}),$=Ee=>(0,t.ZP)(`/api/exercises/${Ee.id}/exam_summary_settings.json`,{method:"post",body:Ee}),L=Ee=>p(void 0,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee==null?void 0:Ee.exercise_id}/review_exercise_user.json`,{method:"post",body:Ee})}),R=Ee=>(0,t.ZP)(`/api/exercises/${Ee==null?void 0:Ee.id}/code_check.json`,{method:"get",params:Ee}),z=Ee=>(0,t.ZP)(`/api/exercises/${Ee.id}/reset_pwd.json`,{method:"post",body:Ee}),N=Ee=>(0,t.ZP)(`/api/exercises/${Ee.id}/encrypt_or_decrypt.json`,{method:"post",body:Ee}),V=Ee=>p(void 0,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.id}/delayed_time_or_force.json`,{method:"post",body:Ee})}),j=Ee=>p(void 0,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee==null?void 0:Ee.id}/exercise_time.json`,{method:"Get",params:Ee})}),Y=Ee=>(0,t.ZP)(`/api/exercises/${Ee==null?void 0:Ee.id}/exercise_question_result.json`,{method:"get",params:Ee}),G=Ee=>(0,t.ZP)(`/api/exercises/${Ee.id}/get_question_type_alias.json`,{method:"get",params:Ee});function J(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercise_questions/${Ee==null?void 0:Ee.id}/teacher_update.json`,{method:"post",body:f({},Ee)})})}function Q(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercise_questions/${Ee==null?void 0:Ee.id}/adjust_comment.json`,{method:"post",body:f({},Ee)})})}function Z(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.id}/edit_question_type_alias.json`,{method:"POST",body:Ee})})}function K(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/exercise_lists.json`,{method:"get",params:f({},Ee)})})}function M(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/exercise_identity_photos.json`,{method:"get",params:f({},Ee)})})}function B(Ee){return p(this,null,function*(){return Fetch(`/api/exercises/${Ee.categoryId}/video_push_url.json`,{method:"get",params:f({},Ee)})})}function H(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/query_identity_photo_state.json`,{method:"get",params:f({},Ee)})})}function ee(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/exercise_result.json`,{method:"get",params:f({},Ee)})})}function ae(Ee){return p(this,null,function*(){return Fetch(`/api/exercises/${Ee.categoryId}/exercise_score_area_setting.json`,{method:"post",body:f({},Ee)})})}function le(Ee){return p(this,null,function*(){return(0,t.ZP)("/api/question_banks/bank_list.json",{method:"get",params:f({},Ee)})})}function pe(Ee){return p(this,null,function*(){return(0,t.ZP)("/api/question_banks/save_banks.json",{method:"POST",body:f({},Ee)})})}function ve(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ee.coursesId}/exercises/publish_modal.json`,{method:"get",params:f({},Ee)})})}function He(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/common_header.json`,{method:"get",params:f({},Ee)})})}function ze(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ee.coursesId}/exercises.json`,{method:"post",body:f({},Ee)})})}function rt(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.exerciseId}.json`,{method:"put",body:f({},Ee)})})}function ot(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}.json`,{method:"get",params:f({},Ee)})})}function yt(Ee){return p(this,null,function*(){return(0,t.ZP)("/api/tag_disciplines.json",{method:"get",params:f({},Ee)})})}function St(Ee){return p(this,null,function*(){const{id:we}=Ee;return delete Ee.id,(0,t.ZP)(`/api/exercise_questions/${we}.json`,{method:"put",body:f({},Ee)})})}function ge(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/exercise_questions.json`,{method:"post",body:f({},Ee)})})}function Be(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercise_questions/${Ee.id}/up_down.json`,{method:"post",body:f({},Ee)})})}function Xe(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercise_questions/${Ee.id}.json`,{method:"delete"})})}function tt(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ee.coursesId}/exercises/end_modal.json`,{method:"get",params:f({},Ee)})})}function Tt(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/publish_groups.json`,{method:"get",params:f({},Ee)})})}function Pt(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.exerciseId}/user_exercise_detail.json`,{method:"get",params:f({},Ee)})})}function je(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.exerciseId}/consult_exercise.json`,{method:"post",body:f({},Ee)})})}function xe(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.exerciseId}/teacher_appraise.json`,{method:"get",params:f({},Ee)})})}function Ce(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercise_questions/${Ee.id}/adjust_score.json`,{method:"post",body:f({},Ee)})})}function Le(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercise_questions/${Ee.id}/batch_adjust_score.json`,{method:"post",body:f({},Ee)})})}function Re(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.id}/adjust_score.json`,{method:"post",body:f({},Ee)})})}function Ke(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.id}/delayed_time.json`,{method:"post",body:f({},Ee)})})}function Ne(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/exercise_setting.json`,{method:"get",params:f({},Ee)})})}function et(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/v2/exercises/${Ee.categoryId}/exercise_setting.json`,{method:"get",params:f({},Ee)})})}function Je(Ee){return p(this,null,function*(){return Fetch(`/api/exercises/${Ee.categoryId}/commit_setting.json`,{method:"post",body:f({},Ee)})})}function jt(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.exerciseId}/review_exercises_by_students.json`,{method:"post",body:f({},Ee)})})}function Gt(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/exercise_lists.xlsx`,{method:"get",params:g(f({},Ee),{export:!0})})})}function me(Ee){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/user_exercise_detail.json`,{method:"get",params:g(f({},Ee),{login:null})})}function ke(Ee){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/start.json`,{method:"get",params:f({},Ee)})}function xt(Ee){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/start_unlock.json`,{method:"post",body:f({},Ee)})}function ct(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercise_questions/${Ee.questionId}/exercise_answers.json`,{method:"post",body:Ee})})}function ft(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/commit_exercise.json`,{method:"post",body:Ee})})}function st(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/simulate_commit_exercise.json`,{method:"post",body:Ee})})}function Zt(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/redo_exercise.json`,{method:"post",body:Ee})})}function it(Ee){return(0,t.ZP)(`/api/${Ee.url}`,{method:"get",params:f({},Ee)})}function ce(Ee){return(0,t.ZP)(`/api/problems/${Ee.id}/start.json`,{method:"get",params:f({},Ee)})}function lt(Ee){return(0,t.ZP)(`/api/exercises/${Ee.id}/begin_commit.json`,{method:"get",params:f({},Ee)})}function qe(Ee){return(0,t.ZP)(`/api/exercises/${Ee.id}/simulate_begin_commit.json`,{method:"get",params:f({},Ee)})}function wt(Ee){return(0,t.ZP)("/api/examination_intelligent_settings/optional_items.json",{method:"post",body:f({},Ee)})}function Rt(Ee){return console.log("params:",Ee),(0,t.ZP)(`/api/exercises/${Ee.categoryId}/edit.json`,{method:"get",params:f({},Ee)})}function vr(Ee){return(0,t.ZP)(`/api/exercises/${Ee.id}/get_objective_scores.json`,{method:"get",params:f({},Ee)})}function nt(Ee){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/redo_modal.json`,{method:"get",params:f({},Ee)})}function or(Ee){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/student_redo_lists.json`,{method:"get",params:f({},Ee)})}function Te(Ee){return(0,t.ZP)("/api/exercises/get_user_exercises.json",{method:"get",params:Ee})}function Dt(Ee){return(0,t.ZP)(`/api/exercises/${Ee.id}/exercise_header.json`,{method:"get",params:f({},Ee)})}function sr(Ee){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/allow_close_camera.json`,{method:"post",body:f({},Ee)})}function fr(Ee){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/get_exercise_user_info.json`,{method:"get",params:f({},Ee)})}function kr(Ee){return(0,t.ZP)(`/api/exercises/${Ee.id}/record_screen`,{method:"post",params:f({},Ee)})}function hr(Ee){return(0,t.ZP)(`/api/exercises/${Ee.id}/unbind_ip.json`,{method:"post",body:f({},Ee)})}function _r(Ee){return(0,t.ZP)(`/api/exercises/${Ee.id}/check_ip.json`,{method:"get",params:f({},Ee)})}function Nr(Ee){return(0,t.ZP)(`/api/exercises/${Ee==null?void 0:Ee.id}/check_user_exercise.json`,{method:"get",params:f({},Ee)})}function Wr(Ee){return Fetch(`/api/exercises/${Ee.id}/make_up_students.json`,{method:"get",params:f({},Ee)})}function Qr(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ee.coursesId}/exercises/code_review_detail.json`,{method:"get",params:f({},Ee)})})}function on(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercise_questions/${Ee.question_id}/adjust_score.json`,{method:"post",body:f({},Ee)})})}function ur(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${Ee.categoryId}/simulate_exercise.json`,{method:"post",body:f({},Ee)})})}function tr(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/simulate_start_answer.json`,{method:"get",params:f({},Ee)})})}function Vt(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/exercise_time.json`,{method:"get",params:f({},Ee)})})}function Sr(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee.categoryId}/commit_screen_at.json`,{method:"post",body:f({},Ee)})})}function yr(Ee,we){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee}/unlock_user`,{method:"post",body:we})})}function Ir(Ee,we){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee}/save_screen_record.json`,{method:"post",body:we})})}function mt(Ee,we){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee}/screen_record_list.json`,{method:"get",params:we})})}function Ze(Ee){return p(this,null,function*(){return(0,t.ZP)("/api/attachments/set_ecs_attachment.json",{method:"get",params:f({},Ee)})})}function Ue(Ee){return p(this,null,function*(){return(0,t.ZP)("/api/exercises/need_redo.json",{method:"get",params:Ee})})}function Me(Ee,we){return p(this,null,function*(){return(0,t.ZP)(`/api/exercises/${Ee}/mark.json`,{method:"post",body:we})})}function Ge(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/myshixuns/${Ee}/exit_delete_pod.json`,{method:"post",body:Ee})})}function Wt(Ee){return p(this,null,function*(){return(0,t.ZP)("/api/users/change_exercise_score.json",{method:"put",body:Ee})})}function Ft(Ee){return p(this,null,function*(){return(0,t.ZP)(`/api/exercise_questions/${Ee==null?void 0:Ee.id}/send_to_item_bank.json`,{method:"post",body:f({},Ee)})})}},67508:function(i,d,e){"use strict";e.d(d,{B0:function(){return p},Si:function(){return I},Sr:function(){return O},YP:function(){return C},b4:function(){return A},bc:function(){return f},dX:function(){return P},eh:function(){return T},iI:function(){return h},kd:function(){return g},qR:function(){return E},sW:function(){return b},ts:function(){return k},vL:function(){return D},z5:function(){return $}});var t=e(99064),r=Object.defineProperty,n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(L,R,z)=>R in L?r(L,R,{enumerable:!0,configurable:!0,writable:!0,value:z}):L[R]=z,c=(L,R)=>{for(var z in R||(R={}))o.call(R,z)&&u(L,z,R[z]);if(n)for(var z of n(R))s.call(R,z)&&u(L,z,R[z]);return L},a=(L,R,z)=>new Promise((N,V)=>{var j=J=>{try{G(z.next(J))}catch(Q){V(Q)}},Y=J=>{try{G(z.throw(J))}catch(Q){V(Q)}},G=J=>J.done?N(J.value):Promise.resolve(J.value).then(j,Y);G((z=z.apply(L,R)).next())});function f(L){return a(this,null,function*(){return(0,t.ZP)("/api/memos.json",{method:"get",params:L})})}function g(L){return a(this,null,function*(){return(0,t.ZP)("/api/discusses/forum_discusses.json",{method:"get",params:L})})}function p(L){return a(this,null,function*(){return(0,t.ZP)(`/api/memos/${L.id}/sticky_or_cancel.json`,{method:"post",body:L})})}function b(L){return a(this,null,function*(){return(0,t.ZP)(`/api/memos/${L.id}.json`,{method:"delete",body:L})})}function h(L){return a(this,null,function*(){return(0,t.ZP)("/api/memos/new.json",{method:"get",params:L})})}function E(L){return a(this,null,function*(){return(0,t.ZP)(`/api/memos/${L.id}/edit.json`,{method:"get",params:L})})}function P(L){return a(this,null,function*(){return(0,t.ZP)("/api/memos.json",{method:"post",body:c({},L)})})}function A(L){return a(this,null,function*(){return(0,t.ZP)(`/api/memos/${L.id}.json`,{method:"put",body:c({},L)})})}function I(L){return a(this,null,function*(){return(0,t.ZP)(`/api/memos/${L.id}.json`,{method:"get",params:L})})}function C(L){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${L.user_id}/watch.json`,{method:"post",body:L})})}function O(L){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${L.user_id}/watch.json`,{method:"delete",body:c({},L)})})}function T(L){return a(this,null,function*(){return(0,t.ZP)(`/api/discusses/${L.id}/reward_code.json`,{method:"post",body:L})})}function D(L){return a(this,null,function*(){return(0,t.ZP)(`/api/discusses/${L.id}/plus.json`,{method:"post",body:L})})}function k(L){return a(this,null,function*(){return(0,t.ZP)("/api/memos/reply.json",{method:"post",body:L})})}function $(L){return a(this,null,function*(){return(0,t.ZP)(`/api/memos/${L.id}/more_reply.json`,{method:"get",params:L})})}},30534:function(i,d,e){"use strict";e.d(d,{D2:function(){return n},n0:function(){return o},tk:function(){return s}});var t=e(99064),r=(u,c,a)=>new Promise((f,g)=>{var p=E=>{try{h(a.next(E))}catch(P){g(P)}},b=E=>{try{h(a.throw(E))}catch(P){g(P)}},h=E=>E.done?f(E.value):Promise.resolve(E.value).then(p,b);h((a=a.apply(u,c)).next())});function n(){return r(this,null,function*(){return(0,t.ZP)("/api/setting.json",{method:"Get"})})}function o(){return r(this,null,function*(){return(0,t.ZP)("/api/users/system_update.json",{method:"Get"})})}function s(u){return r(this,null,function*(){return(0,t.ZP)("/api/search_records",{method:"post",body:u})})}},89887:function(i,d,e){"use strict";e.d(d,{B6:function(){return p},Gr:function(){return k},Mf:function(){return O},NA:function(){return I},PC:function(){return P},PP:function(){return A},QA:function(){return g},RP:function(){return R},Sv:function(){return L},YQ:function(){return C},_n:function(){return z},hL:function(){return D},je:function(){return E},mM:function(){return h},wA:function(){return $},x_:function(){return b},y0:function(){return T},y3:function(){return f}});var t=e(99064),r=Object.defineProperty,n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(N,V,j)=>V in N?r(N,V,{enumerable:!0,configurable:!0,writable:!0,value:j}):N[V]=j,c=(N,V)=>{for(var j in V||(V={}))o.call(V,j)&&u(N,j,V[j]);if(n)for(var j of n(V))s.call(V,j)&&u(N,j,V[j]);return N},a=(N,V,j)=>new Promise((Y,G)=>{var J=K=>{try{Z(j.next(K))}catch(M){G(M)}},Q=K=>{try{Z(j.throw(K))}catch(M){G(M)}},Z=K=>K.done?Y(K.value):Promise.resolve(K.value).then(J,Q);Z((j=j.apply(N,V)).next())});function f(N){return a(this,null,function*(){return(0,t.ZP)(`/api/graduation_tasks/${N.categoryId}.json`,{method:"get",params:c({},N)})})}function g(N){return a(this,null,function*(){return(0,t.ZP)(`/api/graduation_tasks/${N.categoryId}/tasks_list.json`,{method:"get",params:c({},N)})})}function p(N){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${N.coursesId}/graduation_topics/${N.categoryId}/show_detail.json`,{method:"get",params:c({},N)})})}function b(N){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${N.coursesId}/graduation_topics/${N.categoryId}.json`,{method:"get",params:c({},N)})})}function h(N){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${N.coursesId}/graduation_topics/${N.categoryId}/refuse_student_topic.json`,{method:"post",body:c({},N)})})}function E(N){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${N.coursesId}/graduation_topics/${N.categoryId}/accept_student_topic.json`,{method:"post",body:c({},N)})})}function P(N){return a(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${N.categoryId}/show_comment.json`,{method:"get",params:c({},N)})})}function A(N){return a(this,null,function*(){return(0,t.ZP)("/api/users/reply_message.json",{method:"post",body:c({},N)})})}function I(N){return a(this,null,function*(){return(0,t.ZP)("/api/praise_tread/like.json",{method:"post",body:c({},N)})})}function C(N){return a(this,null,function*(){return(0,t.ZP)("/api/praise_tread/unlike.json",{method:"delete",body:c({},N)})})}function O(N){return a(this,null,function*(){return(0,t.ZP)("/api/commons/delete.json",{method:"delete",body:c({},N)})})}function T(N){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${N.coursesId}/graduation_topics/new.json`,{method:"get",params:c({},N)})})}function D(N){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${N.coursesId}/graduation_topics/${N.categoryId}/edit.json`,{method:"get",params:c({},N)})})}function k(N){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${N.coursesId}/graduation_topics`,{method:"post",body:c({},N)})})}function $(N){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${N.coursesId}/graduation_topics/${N.categoryId}`,{method:"put",body:c({},N)})})}function L(N){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${N.coursesId}/graduation_tasks`,{method:"post",body:c({},N)})})}function R(N){return a(this,null,function*(){return(0,t.ZP)(`/api/graduation_tasks/${N.categoryId}.json`,{method:"put",body:c({},N)})})}function z(N){return a(this,null,function*(){return(0,t.ZP)(`/api/graduation_tasks/${N.categoryId}/edit.json`,{method:"get",params:c({},N)})})}},2742:function(i,d,e){"use strict";e.d(d,{AA:function(){return $},Db:function(){return g},Dd:function(){return E},F7:function(){return j},Fi:function(){return K},H3:function(){return h},HF:function(){return A},HH:function(){return b},Ib:function(){return J},J3:function(){return u},NT:function(){return n},NX:function(){return C},Ot:function(){return I},Ou:function(){return Y},Ps:function(){return o},Rk:function(){return V},Tz:function(){return f},V1:function(){return Q},Wz:function(){return s},Xh:function(){return p},Xw:function(){return N},YS:function(){return R},Zd:function(){return Z},bS:function(){return O},ck:function(){return P},eh:function(){return k},il:function(){return c},j7:function(){return a},jW:function(){return L},km:function(){return z},l5:function(){return D},rU:function(){return M},xF:function(){return T},zC:function(){return G},zT:function(){return B}});var t=e(99064),r=(H,ee,ae)=>new Promise((le,pe)=>{var ve=rt=>{try{ze(ae.next(rt))}catch(ot){pe(ot)}},He=rt=>{try{ze(ae.throw(rt))}catch(ot){pe(ot)}},ze=rt=>rt.done?le(rt.value):Promise.resolve(rt.value).then(ve,He);ze((ae=ae.apply(H,ee)).next())});function n(H){return(0,t.ZP)("/api/schools/search.json",{method:"get",params:H})}function o(H){return(0,t.ZP)(`/api/schools/${H.id}/departments/for_option.json`,{method:"get",params:H})}function s(H){return(0,t.ZP)("/api/graduations.json",{method:"POST",body:H})}function u(H){return(0,t.ZP)("/api/graduations.json",{method:"get",params:H})}function c(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.identifier}/graduation_stages/${H.stageid}/authorized_redelivery.json`,{method:"POST",body:H})})}function a(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.identifier}/graduation_stages/${H.stageid}/submit.json`,{method:"POST",body:H})})}function f(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.id}/student_tasks/export_status.json`,{method:"get",params:H})})}function g(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.id}/student_tasks/export_all_attachments.json`,{method:"get",params:H})})}function p(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.identifier}/graduation_stages/${H.id}.json`,{method:"get",params:H})})}function b(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.id}/student_tasks/set_final_score.json`,{method:"POST",body:H})})}function h(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.id}/student_tasks/final_score.json`,{method:"get",params:H})})}function E(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.id}/set_novice_guide.json`,{method:"POST",body:H})})}function P(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.id}/graduation_notices/${H.doid}/set_do.json`,{method:"POST",body:H})})}function A(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.id}/graduation_teachers.json`,{method:"POST",body:H})})}function I(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.identifier}/graduation_students/${H.id}/update_major.json`,{method:"PUT",body:H})})}function C(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.id}/graduation_students.json`,{method:"POST",body:H})})}function O(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.id}/graduation_teachers/search.json`,{method:"get",params:H})})}function T(H){return r(this,null,function*(){return(0,t.ZP)("/api/schools/search.json",{method:"get",params:H})})}function D(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.id}/graduation_students/search.json`,{method:"get",params:H})})}function k(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.id}/graduation_students.json`,{method:"get",params:H})})}function $(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.id}/graduation_teachers.json`,{method:"get",params:H})})}function L(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.graduation_id}/graduation_tasks.json`,{method:"POST",body:H})})}function R(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.graduation_id}/graduation_tasks/${H.id}.json`,{method:"PUT",body:H})})}function z(H){return r(this,null,function*(){var ee;return(0,t.ZP)(`/api/graduations/${H.id}/graduation_tasks/${(ee=H.ids)==null?void 0:ee[0]}`,{method:"DELETE",body:{ids:H.ids}})})}function N(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.id}/graduation_tasks.json`,{method:"get",params:H})})}function V(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.id}/graduation_notices.json`,{method:"get",params:H})})}function j(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H.id}.json`,{method:"get"})})}function Y(H){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H==null?void 0:H.id}/common_header.json`,{method:"get"})})}function G(H,ee){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H}/preview.json`,{method:"get"})})}function J(H,ee){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H}/graduation_teachers/not_pass.json`,{method:"post",body:ee})})}function Q(H,ee){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H}/graduation_teachers/pass.json`,{method:"post",body:ee})})}function Z(H,ee){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H}/graduation_students/not_pass.json`,{method:"post",body:ee})})}function K(H,ee){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H}/graduation_students/pass.json`,{method:"post",body:ee})})}function M(H,ee){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H}/graduation_students/batch_delete`,{method:"delete",body:ee})})}function B(H,ee){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${H}/graduation_teachers/batch_delete`,{method:"delete",body:ee})})}},1:function(i,d,e){"use strict";e.d(d,{LA:function(){return u},S_:function(){return c},Tt:function(){return n},cR:function(){return o},vm:function(){return s}});var t=e(99064),r=(a,f,g)=>new Promise((p,b)=>{var h=A=>{try{P(g.next(A))}catch(I){b(I)}},E=A=>{try{P(g.throw(A))}catch(I){b(I)}},P=A=>A.done?p(A.value):Promise.resolve(A.value).then(h,E);P((g=g.apply(a,f)).next())});function n(){return r(this,null,function*(){return(0,t.ZP)("/api/home/index.json",{method:"Get"})})}function o(a){return r(this,null,function*(){return(0,t.ZP)("/api/courses/apply_to_join_course.json",{method:"post",body:a})})}function s(a){return r(this,null,function*(){return(0,t.ZP)("/api/project_applies.json",{method:"post",body:a})})}function u(a){return r(this,null,function*(){return(0,t.ZP)("/api/users/home_notice.json",{method:"Get"})})}function c(a){return r(this,null,function*(){return(0,t.ZP)("/api/users/view_notice.json",{method:"post",body:a})})}},10656:function(i,d,e){"use strict";e.d(d,{AD:function(){return f},Ig:function(){return g},Ko:function(){return h},QJ:function(){return E},Ub:function(){return P},V8:function(){return p},dl:function(){return A},w0:function(){return b}});var t=e(99064),r=Object.defineProperty,n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(I,C,O)=>C in I?r(I,C,{enumerable:!0,configurable:!0,writable:!0,value:O}):I[C]=O,c=(I,C)=>{for(var O in C||(C={}))o.call(C,O)&&u(I,O,C[O]);if(n)for(var O of n(C))s.call(C,O)&&u(I,O,C[O]);return I},a=(I,C,O)=>new Promise((T,D)=>{var k=R=>{try{L(O.next(R))}catch(z){D(z)}},$=R=>{try{L(O.throw(R))}catch(z){D(z)}},L=R=>R.done?T(R.value):Promise.resolve(R.value).then(k,$);L((O=O.apply(I,C)).next())});function f(I){return a(this,null,function*(){return(0,t.ZP)("/api/users/tidings.json",{method:"get",params:c({},I)})})}function g(I){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${I.userId}/unread_message_info.json`,{method:"get",params:c({},I)})})}function p(I){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${I.userId}/private_messages.json`,{method:"get",params:c({},I)})})}function b(I){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${I.userId}/private_messages.json`,{method:"post",body:c({},I)})})}function h(I){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${I.id}/recent_contacts.json`,{method:"get",params:c({},I)})})}function E(I){return a(this,null,function*(){return(0,t.ZP)("/api/users_for_private_messages.json",{method:"get",params:c({},I)})})}function P(I){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${I.userId}/private_message_details.json`,{method:"get",params:c({},I)})})}function A(I){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${I.userId}/private_messages/${I.id}.json`,{method:"delete"})})}},34640:function(i,d,e){"use strict";e.d(d,{A2:function(){return E},CI:function(){return p},Ep:function(){return h},Ex:function(){return T},R7:function(){return f},WW:function(){return D},_V:function(){return O},ms:function(){return I},s0:function(){return P},vf:function(){return b},xn:function(){return g},yy:function(){return C}});var t=e(99064),r=Object.defineProperty,n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(k,$,L)=>$ in k?r(k,$,{enumerable:!0,configurable:!0,writable:!0,value:L}):k[$]=L,c=(k,$)=>{for(var L in $||($={}))o.call($,L)&&u(k,L,$[L]);if(n)for(var L of n($))s.call($,L)&&u(k,L,$[L]);return k},a=(k,$,L)=>new Promise((R,z)=>{var N=Y=>{try{j(L.next(Y))}catch(G){z(G)}},V=Y=>{try{j(L.throw(Y))}catch(G){z(G)}},j=Y=>Y.done?R(Y.value):Promise.resolve(Y.value).then(N,V);j((L=L.apply(k,$)).next())});function f(k){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${k.coursesId}/online_learning.json`,{method:"get"})})}function g(k){return a(this,null,function*(){return(0,t.ZP)(`/api/course_stages/${k.id}.json`,{method:"put",body:k})})}function p(k){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${k.coursesId}/course_stages.json`,{method:"post",body:k})})}function b(k){return a(this,null,function*(){return(0,t.ZP)(`/api/course_stages/${k.id}/add_shixun_to_stage.json`,{method:"post",body:k})})}function h(k){return a(this,null,function*(){return(0,t.ZP)(`/api/course_stages/${k.id}/select_shixun_to_stage.json`,{method:"post",body:k})})}function E(k){return a(this,null,function*(){return(0,t.ZP)(`/api/course_stages/${k.id}/add_video_to_stage.json`,{method:"post",body:k})})}function P(k){return a(this,null,function*(){return(0,t.ZP)(`/api/course_stages/${k.id}/add_attachment_to_stage.json`,{method:"post",body:k})})}function A(k){return a(this,null,function*(){return Fetch("/api/paths/add_shixun_to_stage.json",{method:"post",body:k})})}function I(k){return a(this,null,function*(){return(0,t.ZP)(`/api/course_stages/${k.id}/up_position.json`,{method:"post"})})}function C(k){return a(this,null,function*(){return(0,t.ZP)(`/api/course_stages/${k.id}/down_position.json`,{method:"post"})})}function O(k){return a(this,null,function*(){return(0,t.ZP)(`/api/course_stages/${k.id}.json`,{method:"delete"})})}function T(k){return a(this,null,function*(){return(0,t.ZP)(`/api/course_stages/${k.stage_id}/items/move_position.json`,{method:"post",body:c({},k)})})}function D(k){return a(this,null,function*(){return(0,t.ZP)(`/api/course_stages/${k.stage_id}/items/${k.id}`,{method:"delete"})})}},80401:function(i,d,e){"use strict";e.d(d,{DF:function(){return E},Di:function(){return Q},Dm:function(){return V},Dq:function(){return ae},Gd:function(){return h},Hb:function(){return le},Hm:function(){return R},ID:function(){return a},JP:function(){return ee},NC:function(){return $},Pl:function(){return P},Qc:function(){return o},Qp:function(){return j},RK:function(){return g},YP:function(){return L},a2:function(){return u},ar:function(){return b},cV:function(){return f},d1:function(){return p},dp:function(){return n},fn:function(){return A},iT:function(){return T},jK:function(){return N},kF:function(){return pe},kp:function(){return O},lc:function(){return C},oF:function(){return K},q$:function(){return c},qN:function(){return z},tS:function(){return I},ts:function(){return D},un:function(){return G},w0:function(){return J},wX:function(){return Y},yE:function(){return s}});var t=e(99064),r=(ve,He,ze)=>new Promise((rt,ot)=>{var yt=Be=>{try{ge(ze.next(Be))}catch(Xe){ot(Xe)}},St=Be=>{try{ge(ze.throw(Be))}catch(Xe){ot(Xe)}},ge=Be=>Be.done?rt(Be.value):Promise.resolve(Be.value).then(yt,St);ge((ze=ze.apply(ve,He)).next())});const n=ve=>(0,t.ZP)(`/api/examination_banks/${ve==null?void 0:ve.id}/code_check.json`,{method:"get",params:ve}),o=ve=>(0,t.ZP)(`/api/examination_banks/${ve.id}/reset_pwd.json`,{method:"post",body:ve}),s=ve=>(0,t.ZP)(`/api/examination_banks/${ve.id}/encrypt_or_decrypt.json`,{method:"post",body:ve}),u=ve=>(0,t.ZP)("/api/examination_banks/exist_course.json",{method:"post",body:ve}),c=ve=>(0,t.ZP)("/api/examination_banks/check_examination_banks.json",{method:"post",body:ve}),a=ve=>(0,t.ZP)(`/api/examination_banks/${ve.id}/copy.json`,{method:"post",body:ve}),f=ve=>(0,t.ZP)(`/api/examination_banks/${ve.id}/get_question_type_alias.json`,{method:"get",params:ve});function g(ve){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ve.id}/edit_question_type_alias.json`,{method:"POST",body:ve})})}function p(ve){return r(this,null,function*(){return(0,t.ZP)("/api/disciplines.json",{method:"get",params:ve})})}function b(ve){return r(this,null,function*(){return(0,t.ZP)("/api/disciplines/by_examination_banks.json",{method:"get",params:ve})})}function h(ve){return r(this,null,function*(){return(0,t.ZP)("/api/examination_banks.json",{method:"get",params:ve})})}function E(ve){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ve.id}/set_public.json`,{method:"post"})})}function P(ve){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ve.id}/set_private.json`,{method:"post"})})}function A(ve){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ve.id}.json`,{method:"delete"})})}function I(ve){return r(this,null,function*(){return(0,t.ZP)("/api/question_banks/my_courses.json",{method:"get",params:ve})})}const C=ve=>(0,t.ZP)("/api/examination_banks/batch_send_to_course.json",{method:"post",body:ve});function O(ve){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ve.id}/send_to_course.json`,{method:"post",body:ve})})}function T(ve){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ve.id}.json`,{method:"get",params:ve})})}function D(ve){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ve.id}/examination_banks_item_banks/${ve.itemId}/set_score`,{method:"post",body:ve})})}function k(ve){return r(this,null,function*(){return Fetch(`/api/examination_banks/${ve.id}/examination_banks_item_banks/${ve.itemId}/set_shixun_score.json`,{method:"post",body:ve})})}function $(ve){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ve.id}/examination_banks_item_banks/${ve.itemId}.json`,{method:"delete"})})}function L(ve){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ve.id}/examination_banks_item_banks/batch_set_score.json`,{method:"post",body:ve})})}function R(ve){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ve.id}/examination_banks_item_banks/destroy_by_item_type.json`,{method:"delete",body:ve})})}function z(ve){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ve.id}/examination_banks_item_banks/${ve.itemId}/adjust_position.json`,{method:"post",body:ve})})}function N(ve){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ve.id}.json`,{method:"put",body:ve})})}function V(ve){return r(this,null,function*(){return(0,t.ZP)("/api/teach_group_shares.json",{method:"get",params:ve})})}function j(ve){return r(this,null,function*(){return(0,t.ZP)("/api/examination_banks/set_batch_public.json",{method:"post",body:ve})})}function Y(ve){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ve==null?void 0:ve.id}/set_public.json`,{method:"post",body:ve})})}function G(ve){return r(this,null,function*(){return(0,t.ZP)("/api/examination_banks/create_exam.json",{method:"post",body:ve})})}function J(ve){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ve.id}/update_exam.json`,{method:"put",body:ve})})}function Q(ve){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ve.id}/edit_exam.json`,{method:"get"})})}function Z(ve,He){return r(this,null,function*(){return Fetch(`/api/examination_banks/${ve}/examination_banks_item_banks.json`,{method:"post",body:He})})}function K(ve){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ve.id}/examination_banks_item_banks/create_item_bank.json`,{method:"post",body:ve})})}function M(ve,He){return r(this,null,function*(){return Fetch(`/api/examination_banks/${ve}/sort_question_type.json`,{method:"post",body:He})})}function B(ve){return r(this,null,function*(){return Fetch(`/api/examination_banks/${ve.exam_id}/examination_banks_item_banks/${ve.question_id}.json`,{method:"delete"})})}function H(ve,He){return r(this,null,function*(){return Fetch(`/api/examination_banks/${ve}/batch_set_score.json`,{method:"post",body:He})})}function ee(ve){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ve}/simulate_exercise.json`,{method:"post"})})}function ae(ve){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ve}/exercise_header.json`,{method:"get"})})}function le(ve,He,ze){return r(this,null,function*(){const rt=new FormData;return rt.append("file",He),rt.append("sub_discipline_id",ze),(0,t.ZP)(`/api/examination_banks/${ve}/import_item_banks.json`,{method:"post",body:rt},!0)})}function pe(ve){return r(this,null,function*(){return(0,t.ZP)("/api/users/change_exam_score.json",{method:"put",body:ve})})}},86248:function(i,d,e){"use strict";e.d(d,{$D:function(){return Xe},A2:function(){return nt},A7:function(){return Ge},AQ:function(){return ze},Ax:function(){return Nr},Bn:function(){return Ee},Bz:function(){return C},CB:function(){return k},CI:function(){return sr},D$:function(){return p},DQ:function(){return mt},DU:function(){return ce},EG:function(){return N},EP:function(){return Be},Ep:function(){return vr},Er:function(){return Ke},Eu:function(){return T},Ex:function(){return on},FD:function(){return Ze},F_:function(){return it},Fg:function(){return Q},GY:function(){return Sr},Go:function(){return Ce},Gz:function(){return Z},Hl:function(){return K},Ho:function(){return A},JS:function(){return ke},Jd:function(){return $},Ju:function(){return O},KM:function(){return Pt},M1:function(){return f},M2:function(){return Te},Mt:function(){return Dt},Mu:function(){return Wr},NV:function(){return Ft},O9:function(){return P},PQ:function(){return D},Q:function(){return et},S$:function(){return b},Sp:function(){return He},VO:function(){return Ue},WD:function(){return Vt},WO:function(){return Re},WW:function(){return ur},YP:function(){return j},_C:function(){return Wt},_V:function(){return _r},b:function(){return h},bw:function(){return ge},bz:function(){return Ir},c2:function(){return L},c3:function(){return me},cn:function(){return H},dX:function(){return G},eJ:function(){return xe},ef:function(){return Zt},fh:function(){return ee},fj:function(){return Le},hS:function(){return M},jT:function(){return Me},j_:function(){return Y},ke:function(){return tr},lk:function(){return ve},mB:function(){return g},mE:function(){return I},mQ:function(){return pe},ms:function(){return kr},mx:function(){return jt},nq:function(){return J},ol:function(){return yr},p:function(){return ot},p4:function(){return Je},pU:function(){return le},pf:function(){return z},rS:function(){return xt},rs:function(){return je},s0:function(){return or},se:function(){return R},sm:function(){return Gt},tS:function(){return B},tu:function(){return ae},ue:function(){return rt},vf:function(){return wt},w4:function(){return yt},wv:function(){return V},xG:function(){return Rt},xn:function(){return qe},yN:function(){return St},yy:function(){return hr},zc:function(){return E}});var t=e(99064),r=Object.defineProperty,n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(we,br,Jr)=>br in we?r(we,br,{enumerable:!0,configurable:!0,writable:!0,value:Jr}):we[br]=Jr,c=(we,br)=>{for(var Jr in br||(br={}))o.call(br,Jr)&&u(we,Jr,br[Jr]);if(n)for(var Jr of n(br))s.call(br,Jr)&&u(we,Jr,br[Jr]);return we},a=(we,br,Jr)=>new Promise((rr,sn)=>{var en=gn=>{try{Bn(Jr.next(gn))}catch(Kn){sn(Kn)}},dn=gn=>{try{Bn(Jr.throw(gn))}catch(Kn){sn(Kn)}},Bn=gn=>gn.done?rr(gn.value):Promise.resolve(gn.value).then(en,dn);Bn((Jr=Jr.apply(we,br)).next())});const f=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/subject_knowledge/student_detail.json",{method:"get",params:we})}),g=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/subject_knowledge/knowledge_detail.json",{method:"get",params:we})}),p=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/subject_knowledge/update_statistic.json",{method:"get",params:we})}),b=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/subject_knowledge/statistic_lists.json",{method:"get",params:we})}),h=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/subject_knowledge/route_statistics.json",{method:"get",params:we})}),E=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/knowledge/v2/send_to_course.json",{method:"POST",body:we})}),P=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/knowledge/v2/check_knowledge_repeat.json",{method:"POST",body:we})}),A=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/knowledge/v2/courses.json",{method:"get",params:we})}),I=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/subject_knowledge/toggle.json",{method:"get",params:we})}),C=we=>a(void 0,null,function*(){return(0,t.ZP)(`/api/v2/knowledge_graphs/${we==null?void 0:we.graphable_type}/${we==null?void 0:we.graphable_id}`,{method:"get",params:we})}),O=we=>a(void 0,null,function*(){return(0,t.ZP)(`/api/ability_goals/${we==null?void 0:we.id}/detail.json`,{method:"get",params:we})}),T=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/ability_goals/home.json",{method:"get",params:we})}),D=we=>a(void 0,null,function*(){return(0,t.ZP)(`/api/ability_tags/${we==null?void 0:we.id}.json`,{method:"delete",body:we})}),k=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/ability_tags.json",{method:"POST",body:we})}),$=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/ability_tags.json",{method:"get",params:we})}),L=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/subject_knowledge/tree.json",{method:"get",params:we})}),R=we=>a(void 0,null,function*(){return(0,t.ZP)(`/api/ability_goals/${we==null?void 0:we.id}/edit`,{method:"get",params:we})}),z=we=>a(void 0,null,function*(){return(0,t.ZP)(`/api/ability_goals/${we==null?void 0:we.id}.json`,{method:"delete",body:we})}),N=we=>a(void 0,null,function*(){return(0,t.ZP)(`/api/ability_goals/${we==null?void 0:we.id}.json`,{method:"PUT",body:we})}),V=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/ability_goals.json",{method:"POST",body:we})}),j=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/ability_goals.json",{method:"get",params:we})}),Y=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/knowledge/v2/update_knowledge_statistic.json",{method:"POST",body:we})}),G=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/knowledge/v2/subject_knowledge_statistic.json",{method:"Get",params:we})}),J=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/subject_statistics/subject_use_infos.json",{method:"Get",params:we})}),Q=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/subject_statistics/rank_list.json",{method:"Get",params:we})}),Z=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/subject_statistics/statistics_body.json",{method:"Get",params:we})}),K=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/subject_statistics/statistics_header.json",{method:"Get",params:we})}),M=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/subject_statistics/online_count.json",{method:"Get",params:we})});function B(we){return a(this,null,function*(){return(0,t.ZP)("/api/paths.json",{method:"Get",params:c({},we)})})}function H(we){return a(this,null,function*(){return(0,t.ZP)("/api/intelligent_recommendations/subject_lists.json",{method:"Get",params:c({},we)})})}function ee(we){return a(this,null,function*(){return(0,t.ZP)("/api/disciplines.json",{method:"Get",params:c({},we)})})}function ae(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}.json`,{method:"PUT",body:we})})}function le(we){return a(this,null,function*(){return(0,t.ZP)("/api/paths.json",{method:"post",body:we})})}function pe(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}/edit.json`,{method:"get"})})}function ve(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}.json`,{method:"get",params:c({identifier:we.id},we)})})}function He(we){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${we.id}.json`,{method:"get",params:c({identifier:we.id},we)})})}function ze(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}/right_banner.json`,{method:"get",params:we})})}function rt(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}/spoc_courses.json`,{method:"get",params:we})})}const ot=we=>a(void 0,null,function*(){return(0,t.ZP)("/api/v2/stages.json",{method:"Get",params:we})}),yt=we=>a(void 0,null,function*(){return(0,t.ZP)(`/api/v2/stage_shixuns/${we.id}/children.json`,{method:"Get",params:we})});function St(we){return a(this,null,function*(){return(0,t.ZP)("/api/stages.json",{method:"get",params:we})})}function ge(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}/update_team_title.json`,{method:"post",body:we})})}function Be(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}/delete_member.json`,{method:"Delete",body:we})})}function Xe(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}/spoc_courses/${we==null?void 0:we.courseid}.json`,{method:"Delete"})})}function tt(we){return a(this,null,function*(){return Fetch(`/api/paths/${we.id}/up_member_position.json`,{method:"post",body:we})})}function Tt(we){return a(this,null,function*(){return Fetch(`/api/paths/${we.id}/down_member_position.json`,{method:"post",body:we})})}function Pt(we){return a(this,null,function*(){return(0,t.ZP)("/api/collections.json",{method:"post",body:we})})}function je(we){return a(this,null,function*(){return(0,t.ZP)("/api/collections/cancel.json",{method:"Delete",body:we})})}function xe(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}.json`,{method:"Delete",body:we})})}function Ce(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}/publish.json`,{method:"post",body:we})})}function Le(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}/cancel_publish.json`,{method:"post",body:we})})}function Re(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}/apply_public.json`,{method:"post",body:we})})}function Ke(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}/cancel_public.json`,{method:"post",body:we})})}function Ne(we){return a(this,null,function*(){return Fetch(`/api/paths/${we.id}/choose_course.json`,{method:"get",params:we})})}function et(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}/send_to_course.json`,{method:"post",body:we})})}function Je(we){return a(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${we.id}/send_to_course.json`,{method:"post",body:we})})}function jt(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}/add_subject_members.json`,{method:"post",body:we})})}function Gt(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}/spoc_courses.json`,{method:"post",body:we})})}function me(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}/appointment.json`,{method:"post",body:we})})}function ke(we){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${we.id}/join_excellent_course.json`,{method:"post",body:we})})}function xt(we){return a(this,null,function*(){return(0,t.ZP)("/api/watch_attachment_histories.json",{method:"post",body:we})})}function ct(we){return a(this,null,function*(){return Fetch(`/api/paths/${we.id}/statistics_info.json`,{method:"get",params:we})})}function ft(we){return a(this,null,function*(){return Fetch(`/api/paths/${we.id}/shixun_analyze.json`,{method:"get",params:we})})}function st(we){return a(this,null,function*(){return Fetch(`/api/paths/${we.id}/learning_analyze.json`,{method:"get",params:we})})}function Zt(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}/learning_statistics.json`,{method:"get",params:we})})}function it(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}/shixun_statistics.json`,{method:"get",params:we})})}function ce(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}/study_analyze/${we.type}.json`,{method:"get",params:we})})}function lt(we){return a(this,null,function*(){return Fetch("/api/paths/append_to_stage.json",{method:"post",body:we})})}function qe(we){return a(this,null,function*(){return(0,t.ZP)(`/api/stages/${we.id}.json`,{method:"put",body:we})})}function wt(we){return a(this,null,function*(){return(0,t.ZP)(`/api/stages/${we.id}/add_shixun_to_stage.json`,{method:"post",body:we})})}const Rt=we=>a(void 0,null,function*(){return(0,t.ZP)(`/api/stages/${we==null?void 0:we.stage_id}/select_challenge_to_stage.json`,{method:"post",body:we})});function vr(we){return a(this,null,function*(){return(0,t.ZP)(`/api/stages/${we.id}/select_shixun_to_stage.json`,{method:"post",body:we})})}function nt(we){return a(this,null,function*(){return(0,t.ZP)(`/api/stages/${we.id}/add_video_to_stage.json`,{method:"post",body:we})})}function or(we){return a(this,null,function*(){return(0,t.ZP)(`/api/stages/${we.id}/add_attachment_to_stage.json`,{method:"post",body:we})})}function Te(we){return a(this,null,function*(){return(0,t.ZP)(`/api/stage_shixuns/${we.id}.json`,{method:"put",body:we})})}function Dt(we){return a(this,null,function*(){return(0,t.ZP)(`/api/stages/${we.id}/add_blank_to_stage.json`,{method:"post",body:we})})}function sr(we){return a(this,null,function*(){return(0,t.ZP)("/api/stages.json",{method:"post",body:we})})}function fr(we){return a(this,null,function*(){return Fetch("/api/paths/add_shixun_to_stage.json",{method:"post",body:we})})}function kr(we){return a(this,null,function*(){return(0,t.ZP)(`/api/stages/${we.id}/up_position.json`,{method:"get"})})}function hr(we){return a(this,null,function*(){return(0,t.ZP)(`/api/stages/${we.id}/down_position.json`,{method:"get"})})}function _r(we){return a(this,null,function*(){return(0,t.ZP)(`/api/stages/${we.id}.json`,{method:"delete"})})}function Nr(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.pathId}/discusses.json`,{method:"get",params:c({},we)})})}function Wr(we){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${we.coursesId}/excellent_discusses.json`,{method:"get",params:c({},we)})})}function Qr(we){return a(this,null,function*(){return Fetch("/api/discusses.json",{method:"post",body:c({},we)})})}function on(we){return a(this,null,function*(){return(0,t.ZP)(`/api/stages/${we.stage_id}/items/move_position`,{method:"post",body:c({},we)})})}function ur(we){return a(this,null,function*(){return(0,t.ZP)(`/api/stages/${we.stage_id}/items/${we.id}`,{method:"delete"})})}function tr(we){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${we.id}/excellent_discuss`,{method:"post",body:c({},we)})})}function Vt(we){return a(this,null,function*(){return(0,t.ZP)(`/api/paths/${we.id}/post_discuss`,{method:"post",body:c({},we)})})}function Sr(we){return a(this,null,function*(){return(0,t.ZP)("/api/schools/for_option.json",{method:"get",params:we})})}function yr(we){return a(this,null,function*(){return(0,t.ZP)("/api/schools/province_data.json",{method:"get",params:we})})}function Ir(we){return a(this,null,function*(){return(0,t.ZP)("/api/add_school_applies.json",{method:"post",body:we})})}function mt(we){return a(this,null,function*(){return(0,t.ZP)(`/api/stages/${we==null?void 0:we.id}/add_homework_to_stage.json`,{method:"post",body:we})})}function Ze(we){return a(this,null,function*(){return(0,t.ZP)(`/api/stage_shixuns/${we==null?void 0:we.id}/edit.json`,{method:"get",params:we})})}function Ue(we){return a(this,null,function*(){return(0,t.ZP)(`/api/stage_shixuns/${we==null?void 0:we.id}.json`,{method:"put",body:we})})}function Me(we){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${we==null?void 0:we.user_id}/subjects/subject_homework.json`,{method:"get",params:we})})}function Ge(we){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${we==null?void 0:we.user_id}/courses/course_homework.json`,{method:"get",params:we})})}function Wt(we){return a(this,null,function*(){return(0,t.ZP)(`/api/stages/${we==null?void 0:we.id}/batch_add_homework_to_stage.json`,{method:"post",body:we})})}function Ft(we){return a(this,null,function*(){return(0,t.ZP)("/api/paths/get_homework_detail.json",{method:"get",params:we})})}function Ee(we){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${we==null?void 0:we.user_login}/subjects/cancel.json`,{method:"get",params:we})})}},31417:function(i,d,e){"use strict";e.d(d,{Fd:function(){return J},Hi:function(){return b},IU:function(){return $},KE:function(){return E},Kc:function(){return Z},MK:function(){return L},Q9:function(){return O},Qg:function(){return k},Qn:function(){return A},UK:function(){return p},W:function(){return M},Ye:function(){return D},_c:function(){return f},hO:function(){return V},iV:function(){return K},jy:function(){return R},kp:function(){return N},lf:function(){return C},m7:function(){return h},n$:function(){return I},rJ:function(){return T},s3:function(){return g},ux:function(){return P},vf:function(){return G},wh:function(){return z},wo:function(){return Q},x$:function(){return Y}});var t=e(99064),r=Object.defineProperty,n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(B,H,ee)=>H in B?r(B,H,{enumerable:!0,configurable:!0,writable:!0,value:ee}):B[H]=ee,c=(B,H)=>{for(var ee in H||(H={}))o.call(H,ee)&&u(B,ee,H[ee]);if(n)for(var ee of n(H))s.call(H,ee)&&u(B,ee,H[ee]);return B},a=(B,H,ee)=>new Promise((ae,le)=>{var pe=ze=>{try{He(ee.next(ze))}catch(rt){le(rt)}},ve=ze=>{try{He(ee.throw(ze))}catch(rt){le(rt)}},He=ze=>ze.done?ae(ze.value):Promise.resolve(ze.value).then(pe,ve);He((ee=ee.apply(B,H)).next())});const f=B=>a(void 0,null,function*(){return(0,t.ZP)(`/api/poll_questions/${B==null?void 0:B.id}/commit_word_cloud.json`,{method:"Get",params:B})});function g(B){return a(this,null,function*(){return(0,t.ZP)(`/api/polls/${B.categoryId}/poll_lists.json`,{method:"get",params:c({},B)})})}function p(B){return a(this,null,function*(){return(0,t.ZP)(`/api/polls/${B.categoryId}/common_header.json`,{method:"get"})})}function b(B){return a(this,null,function*(){return(0,t.ZP)(`/api/polls/${B.categoryId}/poll_setting.json`,{method:"get"})})}function h(B){return a(this,null,function*(){return(0,t.ZP)(`/api/polls/${B.categoryId}/commit_setting.json`,{method:"post",body:c({},B)})})}function E(B){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${B.coursesId}/polls/end_poll_modal.json`,{method:"get",params:c({},B)})})}function P(B){return a(this,null,function*(){return(0,t.ZP)(`/api/polls/${B.categoryId}/publish_groups.json`,{method:"get",params:c({},B)})})}function A(B){return a(this,null,function*(){return(0,t.ZP)(`/api/polls/${B.categoryId}/commit_result.json`,{method:"get",params:c({},B)})})}function I(B){return a(this,null,function*(){return(0,t.ZP)("/api/question_banks/bank_list.json",{method:"get",params:c({},B)})})}function C(B){return a(this,null,function*(){return(0,t.ZP)("/api/question_banks/save_banks.json",{method:"POST",body:c({},B)})})}function O(B){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${B.coursesId}/polls/publish_modal.json`,{method:"get",params:c({},B)})})}function T(B){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${B.coursesId}/polls.json`,{method:"POST",body:c({},B)})})}function D(B){return a(this,null,function*(){return(0,t.ZP)(`/api/polls/${B.categoryId}/edit.json`,{method:"get"})})}function k(B){return a(this,null,function*(){return(0,t.ZP)(`/api/polls/${B.pollsId}.json`,{method:"put",body:c({},B)})})}function $(B){return a(this,null,function*(){return(0,t.ZP)(`/api/poll_questions/${B.pollsId}.json`,{method:"put",body:c({},B)})})}function L(B){return a(this,null,function*(){return(0,t.ZP)(`/api/polls/${B.pollsId}/poll_questions.json`,{method:"post",body:c({},B)})})}function R(B){return a(this,null,function*(){return(0,t.ZP)(`/api/poll_questions/${B.pollsId}.json`,{method:"delete",body:c({},B)})})}function z(B){return a(this,null,function*(){return(0,t.ZP)(`/api/poll_questions/${B.pollsId}/up_down.json`,{method:"post",body:c({},B)})})}function N(B){return a(this,null,function*(){return(0,t.ZP)(`/api/exercise_banks/${B.topicId}.json`,{method:"get"})})}function V(B){return a(this,null,function*(){return(0,t.ZP)(`/api/exercise_banks/${B.topicId}.json`,{method:"put",body:c({},B)})})}function j(B){return a(this,null,function*(){return Fetch(`/api/exercise_banks/${B.topicId}.json`,{method:"put",body:c({},B)})})}function Y(B){return a(this,null,function*(){return(0,t.ZP)(`/api/exercise_bank_questions/${B.pollsId}.json`,{method:"delete",body:c({},B)})})}function G(B){return a(this,null,function*(){return(0,t.ZP)(`/api/poll_questions/${B.pollsId}/up_down.json`,{method:"post",body:c({},B)})})}function J(B){return a(this,null,function*(){return(0,t.ZP)("/api/poll_bank_questions.json",{method:"post",body:c({},B)})})}function Q(B){return a(this,null,function*(){return(0,t.ZP)(`/api/poll_bank_questions/${B.pollsId}.json`,{method:"put",body:c({},B)})})}function Z(B){return a(this,null,function*(){return(0,t.ZP)(`/api/exercise_bank_questions/${B.id}.json`,{method:"put",body:c({},B)})})}function K(B){return a(this,null,function*(){return(0,t.ZP)("/api/exercise_bank_questions.json",{method:"post",body:c({},B)})})}function M(B){return a(this,null,function*(){return(0,t.ZP)(`/api/exercise_bank_questions/${B.exerciseId}/up_down.json`,{method:"post",body:c({},B)})})}},16149:function(i,d,e){"use strict";e.d(d,{$c:function(){return et},A1:function(){return Ke},Bd:function(){return O},Bo:function(){return j},Cc:function(){return J},Cn:function(){return K},DF:function(){return I},Dm:function(){return ge},FG:function(){return V},GW:function(){return Be},HF:function(){return L},Hm:function(){return B},IJ:function(){return Re},L5:function(){return St},LS:function(){return tt},MZ:function(){return Ce},Mr:function(){return N},NZ:function(){return He},Of:function(){return P},Pl:function(){return A},Qj:function(){return h},Qp:function(){return Pt},RT:function(){return me},Rp:function(){return Tt},U6:function(){return R},Vl:function(){return Q},Wk:function(){return z},YP:function(){return M},Ys:function(){return D},al:function(){return T},bF:function(){return Je},d1:function(){return b},dt:function(){return jt},et:function(){return ee},ex:function(){return E},fY:function(){return ae},fn:function(){return C},hI:function(){return ze},hg:function(){return xe},iT:function(){return Y},lS:function(){return ve},nD:function(){return Xe},qN:function(){return H},rV:function(){return k},s:function(){return pe},sD:function(){return Le},sS:function(){return yt},ts:function(){return G},vi:function(){return Ne},wX:function(){return je},x5:function(){return $},zh:function(){return le}});var t=e(99064),r=Object.defineProperty,n=Object.defineProperties,o=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,a=(ke,xt,ct)=>xt in ke?r(ke,xt,{enumerable:!0,configurable:!0,writable:!0,value:ct}):ke[xt]=ct,f=(ke,xt)=>{for(var ct in xt||(xt={}))u.call(xt,ct)&&a(ke,ct,xt[ct]);if(s)for(var ct of s(xt))c.call(xt,ct)&&a(ke,ct,xt[ct]);return ke},g=(ke,xt)=>n(ke,o(xt)),p=(ke,xt,ct)=>new Promise((ft,st)=>{var Zt=lt=>{try{ce(ct.next(lt))}catch(qe){st(qe)}},it=lt=>{try{ce(ct.throw(lt))}catch(qe){st(qe)}},ce=lt=>lt.done?ft(lt.value):Promise.resolve(lt.value).then(Zt,it);ce((ct=ct.apply(ke,xt)).next())});function b(ke){return p(this,null,function*(){return(0,t.ZP)("/api/disciplines.json",{method:"get",params:g(f({},ke),{clazz:"ItemBanksGroup"})})})}function h(ke){return p(this,null,function*(){return(0,t.ZP)("/api/item_baskets/basket_list.json",{method:"get",params:ke})})}function E(ke){return p(this,null,function*(){return(0,t.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:ke})})}function P(ke){return p(this,null,function*(){return(0,t.ZP)("/api/item_banks/list.json",{method:"post",body:ke})})}function A(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/item_banks/${ke.id}/set_private.json`,{method:"post"})})}function I(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/item_banks/${ke.id}/set_public.json`,{method:"post"})})}function C(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/item_banks/${ke.id}.json`,{method:"delete"})})}function O(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/problems/${ke.id}/start.json`,{method:"get"})})}function T(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/item_baskets/${ke.id}.json`,{method:"delete",body:f({},ke)})})}function D(ke){return p(this,null,function*(){return(0,t.ZP)("/api/item_baskets.json",{method:"post",body:ke})})}function k(ke){return p(this,null,function*(){return(0,t.ZP)("/api/examination_banks/cancel_items.json",{method:"post",body:ke})})}function $(ke){return p(this,null,function*(){return(0,t.ZP)("/api/item_baskets/delete_item_type.json",{method:"delete",body:{item_type:ke.type}})})}function L(ke){return p(this,null,function*(){return(0,t.ZP)("/api/examination_banks/cancel_items.json",{method:"post",body:ke})})}function R(ke){return p(this,null,function*(){return(0,t.ZP)("/api/tag_disciplines.json",{method:"post",body:ke})})}function z(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/item_banks/${ke.id}.json`,{method:"put",body:ke})})}function N(ke){return p(this,null,function*(){return(0,t.ZP)("/api/item_banks.json",{method:"post",body:ke})})}function V(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/item_banks/${ke.id}/edit.json`,{method:"get"})})}function j(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/problems/${ke.id}/edit.json`,{method:"get"})})}function Y(ke){return p(this,null,function*(){return(0,t.ZP)("/api/item_baskets.json",{method:"get",params:ke})})}function G(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/item_baskets/${ke.id}/set_score.json`,{method:"post",body:ke})})}function J(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/item_baskets/${ke.id}/set_challenge_score.json`,{method:"post",body:ke})})}function Q(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/item_baskets/${ke.id}/combination_set_score.json`,{method:"post",body:ke})})}function Z(ke){return p(this,null,function*(){return Fetch(`/api/examination_banks//${ke.exerid}/examination_banks_item_banks/${ke.id}/combination_set_score.json`,{method:"post",body:ke})})}function K(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/item_baskets/${ke.id}.json`,{method:"delete"})})}function M(ke){return p(this,null,function*(){return(0,t.ZP)("/api/item_baskets/batch_set_score.json",{method:"post",body:ke})})}function B(ke){return p(this,null,function*(){return(0,t.ZP)("/api/item_baskets/delete_item_type.json",{method:"delete",body:ke})})}function H(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/item_baskets/${ke.id}/adjust_position.json`,{method:"post",body:ke})})}function ee(ke){return p(this,null,function*(){return(0,t.ZP)("/api/examination_banks.json",{method:"post",body:ke})})}function ae(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ke.id}/revoke_item.json`,{method:"delete",body:ke})})}function le(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ke.exam_id}/examination_banks_item_banks.json`,{method:"post",body:ke})})}function pe(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/item_banks/${ke.id}/join_to_collection.json`,{method:"post",params:ke})})}function ve(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/item_banks/${ke.id}/cancel_collection.json`,{method:"post",params:ke})})}function He(ke){return p(this,null,function*(){return(0,t.ZP)("/api/item_banks_groups.json",{method:"get",params:ke})})}function ze(ke){return p(this,null,function*(){return(0,t.ZP)("/api/item_banks_groups/mine.json",{method:"get",params:ke})})}function rt(ke){return p(this,null,function*(){return Fetch(`/api/item_banks/${ke.id}/join_to_group.json`,{method:"post",body:ke})})}function ot(ke){return p(this,null,function*(){return Fetch(`/api/item_banks_groups/${ke.id}.json`,{method:"put",body:ke})})}function yt(ke){return p(this,null,function*(){return(0,t.ZP)("/api/item_banks_groups.json",{method:"post",body:ke})})}function St(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/item_banks/${ke.id}/feedback.json`,{method:"post",body:ke})})}function ge(ke){return p(this,null,function*(){return(0,t.ZP)("/api/teach_group_shares.json",{method:"get",params:ke})})}function Be(ke){return p(this,null,function*(){return(0,t.ZP)("/api/teach_group_shares.json",{method:"post",body:ke})})}function Xe(ke){return p(this,null,function*(){return(0,t.ZP)("/api/item_banks/batch_delete.json",{method:"post",body:ke})})}function tt(ke){return p(this,null,function*(){return(0,t.ZP)("/api/item_banks/batch_to_group.json",{method:"post",body:ke})})}function Tt(ke){return p(this,null,function*(){return(0,t.ZP)("/api/item_banks/add_to_mine.json",{method:"post",body:ke})})}function Pt(ke){return p(this,null,function*(){return(0,t.ZP)("/api/item_banks/set_batch_public.json",{method:"post",body:ke})})}function je(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/item_banks/${ke==null?void 0:ke.id}/set_public.json`,{method:"post",body:ke})})}function xe(ke){return p(this,null,function*(){return(0,t.ZP)("/api/teach_group_shares/show_groups.json",{method:"get",params:ke})})}function Ce(ke){return(0,t.ZP)(`/api/problems/${ke.identifier}/publish.json`,{method:"post",body:ke})}function Le(ke){return(0,t.ZP)(`/api/problems/${ke.identifier}/cancel_publish.json`,{method:"post",body:ke})}function Re(ke){return(0,t.ZP)("/api/item_banks/cancel_public.json",{method:"post",body:{ids:[...ke.id]}})}function Ke(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/item_banks_groups/${ke.id}/up_position.json`,{method:"get",params:ke})})}function Ne(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/item_banks_groups/${ke.id}/down_position.json`,{method:"get",params:ke})})}function et(ke){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${ke.id}/edit_hack.json`,{method:"get",params:ke})})}function Je(ke){return p(this,null,function*(){return(0,t.ZP)("/api/problems/batch_publish_condition.json",{method:"post",body:ke})})}function jt(ke){return p(this,null,function*(){return(0,t.ZP)("/api/problems/batch_publish.json",{method:"post",body:ke})})}function Gt(ke){return p(this,null,function*(){return Fetch("/api/item_banks/get_groups.json",{method:"get",params:ke})})}function me(){return p(this,null,function*(){return(0,t.ZP)("/api/item_baskets/delete_all_items.json",{method:"delete"})})}},52403:function(i,d,e){"use strict";e.d(d,{E1:function(){return s},Go:function(){return n},H5:function(){return o}});var t=e(99064),r=(u,c,a)=>new Promise((f,g)=>{var p=E=>{try{h(a.next(E))}catch(P){g(P)}},b=E=>{try{h(a.throw(E))}catch(P){g(P)}},h=E=>E.done?f(E.value):Promise.resolve(E.value).then(p,b);h((a=a.apply(u,c)).next())});function n(u){return r(this,null,function*(){return(0,t.ZP)("/api/restfuls.json",{method:"get",params:u})})}function o(u){return r(this,null,function*(){return(0,t.ZP)(`/api/restfuls/${u.id}.json`,{method:"get",params:u})})}function s(u){return r(this,null,function*(){return(0,t.ZP)(`/api/restfuls/${u.id}.json`,{method:"delete",params:u})})}},36708:function(i,d,e){"use strict";e.d(d,{Am:function(){return h},Ar:function(){return ge},BD:function(){return Ne},Be:function(){return je},Dx:function(){return Q},Fr:function(){return qe},G$:function(){return A},GS:function(){return R},Gw:function(){return P},H:function(){return yt},H1:function(){return St},Hj:function(){return Je},JA:function(){return Gt},JG:function(){return J},KE:function(){return M},Lz:function(){return Re},Mf:function(){return ot},NA:function(){return ze},PC:function(){return ve},PP:function(){return He},PW:function(){return tt},Q3:function(){return Z},QC:function(){return me},Qt:function(){return Ke},Qz:function(){return O},R$:function(){return ce},RP:function(){return V},Ti:function(){return or},Uc:function(){return ft},Ul:function(){return Y},VB:function(){return vr},Vs:function(){return st},Wr:function(){return I},Xn:function(){return j},YQ:function(){return rt},Yn:function(){return E},Z8:function(){return $},ak:function(){return Xe},cN:function(){return D},co:function(){return xe},cz:function(){return le},fK:function(){return L},gG:function(){return pe},gZ:function(){return ct},h$:function(){return k},ku:function(){return Le},lf:function(){return H},m7:function(){return G},mQ:function(){return T},mz:function(){return Pt},n$:function(){return B},oK:function(){return b},oN:function(){return nt},pH:function(){return et},pb:function(){return Rt},qP:function(){return ke},ql:function(){return xt},rN:function(){return Ce},sw:function(){return ee},t1:function(){return ae},to:function(){return N},ub:function(){return jt},ux:function(){return K},wS:function(){return wt},wT:function(){return C},yT:function(){return Be},yy:function(){return Zt},z2:function(){return Tt}});var t=e(99064),r=Object.defineProperty,n=Object.defineProperties,o=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,a=(Te,Dt,sr)=>Dt in Te?r(Te,Dt,{enumerable:!0,configurable:!0,writable:!0,value:sr}):Te[Dt]=sr,f=(Te,Dt)=>{for(var sr in Dt||(Dt={}))u.call(Dt,sr)&&a(Te,sr,Dt[sr]);if(s)for(var sr of s(Dt))c.call(Dt,sr)&&a(Te,sr,Dt[sr]);return Te},g=(Te,Dt)=>n(Te,o(Dt)),p=(Te,Dt,sr)=>new Promise((fr,kr)=>{var hr=Wr=>{try{Nr(sr.next(Wr))}catch(Qr){kr(Qr)}},_r=Wr=>{try{Nr(sr.throw(Wr))}catch(Qr){kr(Qr)}},Nr=Wr=>Wr.done?fr(Wr.value):Promise.resolve(Wr.value).then(hr,_r);Nr((sr=sr.apply(Te,Dt)).next())});const b=Te=>p(void 0,null,function*(){return(0,t.ZP)(`/api/student_works/${Te.id}/update_journals.json`,{method:"post",body:Te})}),h=Te=>p(void 0,null,function*(){return(0,t.ZP)(`/api/student_works/${Te==null?void 0:Te.homeworkId}/change_score.json`,{method:"post",body:Te})}),E=Te=>p(void 0,null,function*(){return(0,t.ZP)(`/api/student_works/${Te==null?void 0:Te.homeworkId}/history_comment`,{method:"Get",params:Te})}),P=Te=>p(void 0,null,function*(){return(0,t.ZP)(`/api/student_works/${Te==null?void 0:Te.homeworkId}/feedback_know`,{method:"Get",params:Te})}),A=Te=>p(void 0,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te==null?void 0:Te.userId}/student_work_feedbacks.json`,{method:"POST",body:Te})}),I=Te=>p(void 0,null,function*(){return(0,t.ZP)(`/api/student_works/${Te==null?void 0:Te.userId}/feedback_list.json`,{method:"Get",params:Te})}),C=Te=>p(void 0,null,function*(){return(0,t.ZP)(`/api/student_works/${Te==null?void 0:Te.userId}/histories.json`,{method:"Get",params:Te})}),O=Te=>p(void 0,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te==null?void 0:Te.homeworkId}/feedback_list`,{method:"Get",params:Te})}),T=Te=>p(void 0,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te==null?void 0:Te.homeworkId}/anonymous_exception_list.json`,{method:"Get",params:Te})}),D=Te=>p(void 0,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te==null?void 0:Te.homeworkId}/appeal_list`,{method:"Get",params:Te})});function k(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.categoryId}/works_list.json`,{method:"post",body:f({},Te)})})}function $(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/shixun_homeworks/${Te.categoryId}/student_works.json`,{method:"get",params:f({},Te)})})}function L(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/shixun_homeworks/${Te.categoryId}/header_info.json`,{method:"get",params:f({},Te)})})}function R(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Te}/query_game_url.json`,{method:"get"})})}function z(Te){return p(this,null,function*(){return Fetch(`/api/student_works/${Te}/get_newest_shixun_work_comments.json`,{method:"get"})})}function N(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.categoryId}.json`,{method:"get"})})}function V(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.categoryId}/code_review_results.json`,{method:"get",params:f({},Te)})})}function j(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.categoryId}/code_review_detail.json`,{method:"get",params:f({},Te)})})}function Y(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.categoryId}/settings.json`,{method:"get",params:f({},Te)})})}function G(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.categoryId}/update_settings.json`,{method:"post",body:f({},Te)})})}function J(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.categoryId}/group_list.json`,{method:"get",params:f({},Te)})})}function Q(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.categoryId}/works_list.xlsx`,{method:"get",params:f({},Te)})})}function Z(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.coursesId}/reference_answer.json`,{method:"get",params:f({},Te)})})}function K(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.categoryId}/publish_groups.json`,{method:"get",params:f({},Te)})})}function M(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.categoryId}/end_groups.json`,{method:"get",params:f({},Te)})})}function B(Te){return p(this,null,function*(){return(0,t.ZP)("/api/question_banks/bank_list.json",{method:"get",params:f({},Te)})})}function H(Te){return p(this,null,function*(){return(0,t.ZP)("/api/question_banks/save_banks.json",{method:"post",body:f({},Te)})})}function ee(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Te.homeworkId}/shixun_work_report.json`,{method:"get",params:Te})})}function ae(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Te.homeworkId}/shixun_work_report_echart_data.json`,{method:"get",params:Te})})}function le(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/courses/${Te.coursesId}/homework_commons/user_hack_detail.json`,{method:"get",params:g(f({},Te),{id:Te.categoryId})})})}function pe(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Te.categoryId}/adjust_review_score.json`,{method:"post",body:f({},Te)})})}function ve(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.categoryId}/show_comment.json`,{method:"get",params:f({},Te)})})}function He(Te){return p(this,null,function*(){return(0,t.ZP)("/api/users/reply_message.json",{method:"post",body:f({},Te)})})}function ze(Te){return p(this,null,function*(){return(0,t.ZP)("/api/praise_tread/like.json",{method:"post",body:f({},Te)})})}function rt(Te){return p(this,null,function*(){return(0,t.ZP)("/api/praise_tread/unlike.json",{method:"delete",body:f({},Te)})})}function ot(Te){return p(this,null,function*(){return(0,t.ZP)("/api/commons/delete.json",{method:"delete",body:f({},Te)})})}function yt(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.categoryId}/update_explanation.json`,{method:"post",body:f({},Te)})})}function St(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/courses/${Te.coursesId}/homework_commons.json`,{method:"post",body:f({},Te)})})}function ge(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.categoryId}.json`,{method:"put",body:f({},Te)})})}function Be(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_banks/${Te.id}.json`,{method:"put",body:f({},Te)})})}function Xe(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.commonHomeworkId}/student_works/new.json`,{method:"get",params:f({},Te)})})}function tt(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Te.homeworkId}/edit.json`,{method:"get",params:f({},Te)})})}function Tt(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Te.homeworkId}.json`,{method:"put",body:f({},Te)})})}function Pt(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Te.homeworkId}/revise_attachment.json`,{method:"post",body:f({},Te)})})}function je(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.commonHomeworkId}/student_works.json`,{method:"post",body:f({},Te)})})}function xe(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.homeworkId}/student_works/relate_project.json`,{method:"post",body:f({},Te)})})}function Ce(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.homeworkId}/student_works/cancel_relate_project.json`,{method:"get"})})}function Le(Te){return p(this,null,function*(){return(0,t.ZP)("/api/users/projects/search.json",{method:"get",params:f({},Te)})})}function Re(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.commonHomeworkId}/student_works/search_member_list.json`,{method:"get",params:f({},Te)})})}function Ke(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/courses/${Te.coursesId}/homework_commons/new.json`,{method:"get",params:f({},Te)})})}function Ne(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.categoryId}/edit.json`,{method:"get",params:f({},Te)})})}function et(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_banks/${Te.id}.json`,{method:"get",params:f({},Te)})})}function Je(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Te.userId}.json`,{method:"get",params:f({},Te)})})}function jt(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Te.userId}/supply_attachments.json`,{method:"get",params:f({},Te)})})}function Gt(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Te.userId}/comment_list.json`,{method:"get",params:f({},Te)})})}function me(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Te.userId}/destroy_score.json`,{method:"delete",body:f({},Te)})})}function ke(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Te.userId}/add_score_reply.json`,{method:"post",body:f({},Te)})})}function xt(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.categoryId}/all_student_works.json`,{method:"get",params:f({},Te)})})}function ct(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Te.homeworkId}/destroy_work_comment.json`,{method:"delete",body:f({},Te)})})}function ft(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.categoryId}/score_status.json`,{method:"get",params:f({},Te)})})}function st(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Te.categoryId}/update_score.json`,{method:"get",params:f({},Te)})})}function Zt(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Te.userId}/add_score.json`,{method:"post",body:f({},Te)})})}function it(Te){return p(this,null,function*(){return Fetch(`/api/student_works/${Te.userId}/cancel_appeal.json`,{method:"post",body:f({},Te)})})}function ce(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Te.userId}/appeal_anonymous_score.json`,{method:"post",body:f({},Te)})})}function lt(Te){return p(this,null,function*(){return Fetch(`/api/student_works/${Te.userId}/deal_appeal_score.json`,{method:"post",body:f({},Te)})})}function qe(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/myshixuns/${Te.id}/reset_my_game.json`,{method:"get",params:f({},Te)})})}function wt(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Te.homeworkId}/commit_des.json`,{method:"get",params:f({},Te)})})}function Rt(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Te.homeworkId}/update_des.json`,{method:"post",body:f({},Te)})})}function vr(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/courses/${Te.coursesId}/homework_commons/file_repeat_list.json`,{method:"get",params:f({},Te)})})}function nt(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/courses/${Te.coursesId}/homework_commons/file_repeat_result.json`,{method:"get",params:f({},Te)})})}function or(Te){return p(this,null,function*(){return(0,t.ZP)(`/api/courses/${Te.course_id}/homework_commons/file_repeat_detail.json`,{method:"get",params:f({},Te)})})}},49692:function(i,d,e){"use strict";e.d(d,{$Q:function(){return rr},AE:function(){return hr},AQ:function(){return M},Ag:function(){return mt},Ar:function(){return Be},At:function(){return Kn},BK:function(){return ee},Bj:function(){return ke},Cf:function(){return A},DC:function(){return Gt},Dz:function(){return ba},E4:function(){return b},EH:function(){return Tt},Ee:function(){return ta},Er:function(){return St},Ez:function(){return C},FB:function(){return H},Fg:function(){return G},Ft:function(){return z},GI:function(){return xe},Gr:function(){return ft},Gu:function(){return je},Gz:function(){return Y},HS:function(){return Ut},Hl:function(){return V},IF:function(){return $},IT:function(){return yr},I_:function(){return Z},Ij:function(){return L},Ir:function(){return ae},Je:function(){return Wt},K:function(){return la},K0:function(){return Nn},KM:function(){return ze},K_:function(){return en},LK:function(){return Ft},LP:function(){return Ce},Ne:function(){return yt},OL:function(){return I},OQ:function(){return h},OV:function(){return Re},OW:function(){return tt},Op:function(){return Jr},P2:function(){return Ne},P4:function(){return R},Po:function(){return K},Ps:function(){return st},Q:function(){return ot},Q1:function(){return Ra},QA:function(){return ye},Ql:function(){return it},Rs:function(){return Te},SG:function(){return ht},Tn:function(){return Nr},Tr:function(){return De},U0:function(){return wt},U9:function(){return Zt},UQ:function(){return tr},Ui:function(){return sn},Vx:function(){return Ae},WO:function(){return ge},WT:function(){return Pe},Wi:function(){return xt},Wl:function(){return Ze},X$:function(){return et},Yn:function(){return Qr},Z2:function(){return me},ZO:function(){return ct},Zt:function(){return Oa},_7:function(){return rt},_9:function(){return on},aH:function(){return ce},al:function(){return nt},b8:function(){return Xe},bV:function(){return k},bk:function(){return P},bq:function(){return Wr},dK:function(){return le},e:function(){return J},eX:function(){return Pt},eb:function(){return Dt},fH:function(){return O},fL:function(){return Ge},h4:function(){return Ya},hS:function(){return j},h_:function(){return jt},he:function(){return Q},hn:function(){return ve},hy:function(){return T},ii:function(){return or},im:function(){return ur},j8:function(){return Le},jq:function(){return br},kF:function(){return we},km:function(){return vr},l3:function(){return Ke},m7:function(){return qe},mI:function(){return Ie},n5:function(){return B},np:function(){return D},nu:function(){return Ee},p0:function(){return Sr},q0:function(){return kr},q9:function(){return gn},qA:function(){return Bn},rO:function(){return fr},rs:function(){return He},sr:function(){return Vt},t2:function(){return Ir},tX:function(){return Sa},uo:function(){return Rt},v3:function(){return Me},w:function(){return Ue},wX:function(){return N},xK:function(){return _r},xM:function(){return E},xg:function(){return sr},xk:function(){return Je},yE:function(){return lt},yx:function(){return pt},zD:function(){return pe},zH:function(){return dn}});var t=e(99064),r=Object.defineProperty,n=Object.defineProperties,o=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,a=(ue,se,he)=>se in ue?r(ue,se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ue[se]=he,f=(ue,se)=>{for(var he in se||(se={}))u.call(se,he)&&a(ue,he,se[he]);if(s)for(var he of s(se))c.call(se,he)&&a(ue,he,se[he]);return ue},g=(ue,se)=>n(ue,o(se)),p=(ue,se,he)=>new Promise((X,Ye)=>{var Ct=Mt=>{try{Bt(he.next(Mt))}catch(Kt){Ye(Kt)}},Qt=Mt=>{try{Bt(he.throw(Mt))}catch(Kt){Ye(Kt)}},Bt=Mt=>Mt.done?X(Mt.value):Promise.resolve(Mt.value).then(Ct,Qt);Bt((he=he.apply(ue,se)).next())});const b=ue=>p(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls/commit_result.json",{method:"get",params:ue})}),h=ue=>p(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls/edit.json",{method:"get",params:ue})}),E=ue=>p(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls/select_polls.json",{method:"post",body:ue})}),P=ue=>p(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls/select_polls_list.json",{method:"get",params:ue})}),A=ue=>p(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls/commit_poll.json",{method:"post",body:ue})}),I=ue=>p(void 0,null,function*(){return(0,t.ZP)(`/api/poll_questions/${ue==null?void 0:ue.questionId}/poll_votes.json`,{method:"post",body:ue})}),C=ue=>p(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls.json",{method:"put",body:ue})}),O=ue=>p(void 0,null,function*(){return(0,t.ZP)(`/api/poll_questions/${ue==null?void 0:ue.poll_question_id}/up_down.json`,{method:"post",body:ue})}),T=ue=>p(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls.json",{method:"post",body:ue})}),D=ue=>p(void 0,null,function*(){return(0,t.ZP)(`/api/poll_questions/${ue==null?void 0:ue.poll_question_id}.json`,{method:"put",body:ue})}),k=ue=>p(void 0,null,function*(){return(0,t.ZP)("/api/poll_questions.json",{method:"post",body:ue})}),$=ue=>p(void 0,null,function*(){return(0,t.ZP)(`/api/poll_questions/${ue==null?void 0:ue.poll_question_id}.json`,{method:"delete"})}),L=ue=>p(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls/collect.json",{method:"post",body:ue})}),R=ue=>p(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls/publish.json",{method:"post",body:ue})}),z=ue=>p(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls/delete.json",{method:"post",body:ue})}),N=ue=>p(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls/start_answer.json",{method:"Get",params:ue})}),V=ue=>p(void 0,null,function*(){return(0,t.ZP)("/api/shixun_statistics/statistics_header.json",{method:"Get",params:ue})}),j=ue=>p(void 0,null,function*(){return(0,t.ZP)("/api/shixun_statistics/online_count.json",{method:"Get",params:ue})}),Y=ue=>p(void 0,null,function*(){return(0,t.ZP)("/api/shixun_statistics/statistics_body.json",{method:"Get",params:ue})}),G=ue=>p(void 0,null,function*(){return(0,t.ZP)("/api/shixun_statistics/rank_list.json",{method:"Get",params:ue})}),J=ue=>p(void 0,null,function*(){return(0,t.ZP)("/api/shixun_statistics/shixun_use_infos.json",{method:"Get",params:ue})});function Q(ue){return p(this,null,function*(){return(0,t.ZP)("/api/shixuns.json",{method:"Get",params:f({},ue)})})}function Z(ue){return p(this,null,function*(){return(0,t.ZP)("/api/disciplines.json",{method:"Get",params:f({source:"shixun"},ue||{})})})}function K(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}.json`,{method:"Get",params:ue})})}function M(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/show_right.json`,{method:"Get"})})}function B(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/challenges.json`,{method:"Get"})})}function H(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/save_copy_for_exercise.json`,{method:"post",body:{save_type:ue.save_type}})})}function ee(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/jupyter_exec.json${ue.reset?`?reset=${ue.reset}`:""}`,{method:"Get",params:ue})})}function ae(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/shixun_exec.json${ue.reset?`?reset=${ue.reset}`:""}`,{method:"Get",params:ue})})}function le(ue){return p(this,null,function*(){return(0,t.ZP)(ue.url,{method:"Get"})})}function pe(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.shixun_identifier}/challenges/${ue.challenge_id}/index_up.json`,{method:"Get"})})}function ve(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.shixun_identifier}/challenges/${ue.challenge_id}/index_down.json`,{method:"Get"})})}function He(ue){return p(this,null,function*(){return(0,t.ZP)("/api/collections/cancel.json",{method:"Delete",body:{container_id:ue.container_id,container_type:ue.container_type}})})}function ze(ue){return p(this,null,function*(){return(0,t.ZP)("/api/collections.json",{method:"Post",body:{container_id:ue.container_id,container_type:ue.container_type}})})}function rt(ue){return p(this,null,function*(){const{id:se}=ue||{};return(0,t.ZP)(`/api/shixuns/${se}/search_user_courses.json`,{method:"Get",params:ue})})}function ot(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue==null?void 0:ue.id}/send_to_course.json`,{method:"Post",body:f({},ue)})})}function yt(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/cancel_publish.json`,{method:"Get"})})}function St(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/cancel_apply_public.json`,{method:"Get"})})}function ge(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/apply_public.json`,{method:"post",body:f({},ue)})})}function Be(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/publish.json`,{method:"Get"})})}function Xe(ue){return p(this,null,function*(){return(0,t.ZP)("/api/shixuns/jupyter_new.json",{method:"Get"})})}function tt(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/attachments/${ue.id}.json`,{method:"delete"})})}function Tt(ue){return p(this,null,function*(){return(0,t.ZP)("/api/shixuns/apply_shixun_mirror.json",{method:"post",body:ue})})}function Pt(ue){return p(this,null,function*(){return(0,t.ZP)("/api/shixuns.json",{method:"post",body:ue})})}function je(ue){return p(this,null,function*(){return(0,t.ZP)("/api/shixuns/jupyter_lab_new.json",{method:"get",params:ue})})}function xe(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/review_newest_record.json`,{method:"Get"})})}function Ce(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/review_shixun.json`,{method:"post",body:ue})})}function Le(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/collaborators.json`,{method:"Get",params:ue})})}function Re(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/shixun_members_added.json`,{method:"post",body:ue})})}function Ke(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.identifier}/add_members_group.json`,{method:"post",body:ue})})}function Ne(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/change_manager.json`,{method:"Get",params:ue})})}function et(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/change_manager.json`,{method:"post",body:ue})})}function Je(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/collaborators_delete.json`,{method:"delete",body:{user_id:ue.userId}})})}function jt(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/ranking_list.json`,{method:"Get"})})}function Gt(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/settings.json`,{method:"Get"})})}function me(ue){return p(this,null,function*(){return(0,t.ZP)("/api/shixuns/get_mirror_script.json",{method:"Get",params:{mirror_id:ue.mirror_id}})})}function ke(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/get_script_contents.json`,{method:"Get",params:ue})})}function xt(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/get_custom_script.json`,{method:"Get",params:ue})})}function ct(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/update_for_jupyter.json`,{method:"put",body:ue})})}function ft(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/shixun_quotes.json`,{method:"Get"})})}function st(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}.json`,{method:"delete"})})}function Zt(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/close.json`,{method:"post",body:ue})})}function it(ue){return p(this,null,function*(){return(0,t.ZP)("/api/shixuns/departments.json",{method:"Get",params:ue})})}function ce(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/update_permission_setting.json`,{method:"post",body:ue})})}function lt(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/update_learn_setting.json`,{method:"post",body:ue})})}function qe(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/update_setting`,{method:"post",body:ue})})}function wt(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/get_data_sets.json`,{method:"Get",params:ue})})}function Rt(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/destroy_data_sets.json`,{method:"Delete",body:{id:ue.deleteId}})})}function vr(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/challenges/new.json`,{method:"get"})})}function nt(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.identifier}/challenges.json`,{method:"post",body:f({},ue)})})}function or(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/challenges/${ue.challengeId}/edit.json`,{method:"get",params:{tab:ue.tab}})})}function Te(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/challenges/${ue.challengesId}.json`,{method:"put",body:f({},ue)})})}function Dt(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/challenges/${ue.challengesId}/choose_questions.json`,{method:"get"})})}function sr(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/challenges/move_position.json`,{method:"post",body:f({},ue)})})}function fr(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/challenges/${ue.challengesId}.json`,{method:"delete",body:f({},ue)})})}function kr(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/challenges/${ue.challengesId}/edit.json`,{method:"get",params:f({},ue)})})}function hr(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/challenges/${ue.challengeId}/answer.json`,{method:"get",params:f({},ue)})})}function _r(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/challenges/${ue.challengeId}/crud_answer.json`,{method:"post",body:f({},ue)})})}function Nr(ue){return p(this,null,function*(){if(ue.type===1)return(0,t.ZP)(`/api/shixuns/${ue.id}/challenges/${ue.challengesId}/create_choose_question.json`,{method:"post",body:f({},ue)});if(ue.type===2)return(0,t.ZP)(`/api/shixuns/${ue.id}/challenges/${ue.challengesId}/create_blank_question.json`,{method:"post",body:f({},ue)});if(ue.type===3)return(0,t.ZP)(`/api/shixuns/${ue.id}/challenges/${ue.challengesId}/create_judge_question.json`,{method:"post",body:f({},ue)})})}function Wr(ue){return p(this,null,function*(){if(ue.type===1)return(0,t.ZP)(`/api/shixuns/${ue.id}/challenges/${ue.challengesId}/update_choose_question.json`,{method:"post",body:g(f({},ue),{choose_id:ue.questionId})});if(ue.type===2)return(0,t.ZP)(`/api/shixuns/${ue.id}/challenges/${ue.challengesId}/update_blank_question.json`,{method:"put",body:g(f({},ue),{choose_id:ue.questionId})});if(ue.type===3)return(0,t.ZP)(`/api/shixuns/${ue.id}/challenges/${ue.challengesId}/update_judge_question.json`,{method:"put",body:g(f({},ue),{choose_id:ue.questionId})})})}function Qr(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/challenges/${ue.challengesId}/destroy_challenge_choose.json`,{method:"Delete",body:{choose_id:ue.questionId}})})}function on(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/challenges/${ue.challengesId}/choose_question_up_position.json`,{method:"post",body:{challenge_choose_id:ue.questionId}})})}function ur(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/challenges/${ue.challengesId}/choose_question_down_position.json`,{method:"post",body:{challenge_choose_id:ue.questionId}})})}function tr(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/challenges/${ue.challengesId}/edit_choose_question.json`,{method:"get",params:g(f({},ue),{choose_id:ue.questionId})})})}function Vt(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/delete_git_file.json`,{method:"Delete",body:ue})})}function Sr(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/sci/projects/${ue.id}/delete_git_file.json`,{method:"Delete",body:ue})})}function yr(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/mv_file.json`,{method:"post",body:ue})})}function Ir(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/sci/projects/${ue.id}/mv_file.json`,{method:"post",body:ue})})}function mt(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/repository.json`,{method:"post",body:ue})})}function Ze(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/sci/projects/${ue.id}/repository.json`,{method:"post",body:ue})})}function Ue(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/secret_repository.json`,{method:"post",body:ue})})}function Me(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/add_file.json`,{method:"post",body:ue})})}function Ge(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/sci/projects/${ue.id}/add_file.json`,{method:"post",body:ue})})}function Wt(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/commits.json`,{method:"post",body:ue})})}function Ft(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/file_content.json`,{method:"post",body:ue})})}function Ee(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/sci/projects/${ue.id}/file_content.json`,{method:"post",body:ue})})}function we(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/update_file.json`,{method:"post",body:ue})})}function br(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/sci/projects/${ue.id}/update_file.json`,{method:"post",body:ue})})}function Jr(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/upload_git_folder.json`,{method:"post",body:{path:ue.path,secret_repository:ue.secret_repository}})})}function rr(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/${ue.url}`,{method:"Get"})})}function sn(ue){return p(this,null,function*(){return(0,t.ZP)("/api/jupyters/get_info_with_tpm.json",{method:"Get",params:ue})})}function en(ue){return p(this,null,function*(){return(0,t.ZP)("/api/jupyters/timeinfo_with_tpm.json",{method:"Get",params:ue})})}function dn(ue){return p(this,null,function*(){return(0,t.ZP)("/api/jupyters/reset_with_tpm.json",{method:"Get",params:ue})})}function Bn(ue){return p(this,null,function*(){return(0,t.ZP)("/api/jupyters/save_with_tpm.json",{method:"Get",params:ue})})}function gn(ue){return p(this,null,function*(){return(0,t.ZP)("/api/jupyters/active_with_tpm.json",{method:"Get",params:ue})})}function Kn(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/fork_list.json`,{method:"Get",params:ue})})}function ba(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.identifier}/change_editable.json`,{method:"put",body:f({},ue)})})}function Oa(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/set_secret_dir.json`,{method:"post",body:f({},ue)})})}function la(ue){return p(this,null,function*(){return(0,t.ZP)("/api/shixuns/new.json",{method:"Get",params:ue})})}function Ra(ue){return p(this,null,function*(){return(0,t.ZP)("/api/shixuns/environment_info",{method:"Get",params:ue})})}function Ya(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/init_repository.json`,{method:"post",body:f({},ue)})})}function Ae(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/sci/projects/${ue.id}/init_repository.json`,{method:"post",body:f({},ue)})})}function Nn(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/update_secret_repository.json`,{method:"post",body:f({},ue)})})}function ta(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/exist_exercise.json`,{method:"get",params:f({},ue)})})}function Sa(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/mirror_applies/${ue.id}.json`,{method:"get",params:f({},ue)})})}function Ja(ue){return p(this,null,function*(){return Fetch(`/api/mirror_applies/${ue.id}/publish.json`,{method:"post",body:f({},ue)})})}function qa(ue){return p(this,null,function*(){return Fetch(`/api/mirror_applies/${ue.id}/open_vnc.json`,{method:"post",params:f({},ue)})})}function Wn(ue){return p(this,null,function*(){return Fetch(`/api/mirror_applies/${ue.id}/open_webssh.json`,{method:"post",params:f({},ue)})})}function Ia(ue){return p(this,null,function*(){return Fetch(`/api/mirror_applies/${ue.id}/save_image.json`,{method:"post",body:f({},ue)})})}function yn(ue){return p(this,null,function*(){return Fetch(`/api/mirror_applies/${ue.id}/delete_image.json`,{method:"post",body:f({},ue)})})}function bn(ue){return p(this,null,function*(){return Fetch(`/api/mirror_applies/${ue.id}/extend_vnc.json`,{method:"post",body:f({},ue)})})}function In(ue){return p(this,null,function*(){return Fetch(`/api/mirror_applies/${ue.id}/reset_vnc_link.json`,{method:"post",body:f({},ue)})})}function pt(ue){return p(this,null,function*(){return(0,t.ZP)("/api/paths/get_task_pass.json",{method:"get",params:f({},ue)})})}function Ie(ue){return p(this,null,function*(){return(0,t.ZP)("/api/jupyters/get_info_with_jupyter_lab.json",{method:"get",params:f({},ue)})})}function ye(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue.id}/update_jupyter_lab_setting.json`,{method:"post",body:f({},ue)})})}function De(ue){return p(this,null,function*(){return(0,t.ZP)("/api/shixuns/check_shixun_copy.json",{method:"post",body:ue})})}function Pe(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/progress_homeworks/${ue}`,{method:"get",params:{is_initiative_study:1}})})}function _t(ue){return p(this,null,function*(){return Fetch(`/api/shixuns/${ue.id}/update_shixun_study_num.json`,{method:"post",body:f({},ue)})})}function ht(ue){return p(this,null,function*(){return(0,t.ZP)("/api/jupyters/preview.json",{method:"get",params:ue})})}function Ut(ue){return p(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${ue}/recommend_config.json`,{method:"get"})})}},43859:function(i,d,e){"use strict";e.d(d,{Bg:function(){return p},FO:function(){return T},eJ:function(){return E},eZ:function(){return P},fd:function(){return L},gp:function(){return f},iU:function(){return k},l3:function(){return I},mw:function(){return C},oZ:function(){return h},rM:function(){return O},r_:function(){return $},s:function(){return g},ur:function(){return D},xV:function(){return b},yb:function(){return A}});var t=e(99064),r=Object.defineProperty,n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(R,z,N)=>z in R?r(R,z,{enumerable:!0,configurable:!0,writable:!0,value:N}):R[z]=N,c=(R,z)=>{for(var N in z||(z={}))o.call(z,N)&&u(R,N,z[N]);if(n)for(var N of n(z))s.call(z,N)&&u(R,N,z[N]);return R},a=(R,z,N)=>new Promise((V,j)=>{var Y=Q=>{try{J(N.next(Q))}catch(Z){j(Z)}},G=Q=>{try{J(N.throw(Q))}catch(Z){j(Z)}},J=Q=>Q.done?V(Q.value):Promise.resolve(Q.value).then(Y,G);J((N=N.apply(R,z)).next())});function f(R){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${R.coursesId}/teachers.json`,{method:"get",params:c({},R)})})}function g(R){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${R.coursesId}/apply_teachers.json`,{method:"get",params:c({},R)})})}function p(R){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${R.coursesId}/graduation_group_list.json`,{method:"get",params:c({},R)})})}function b(R){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${R.coursesId}/all_course_groups.json`,{method:"get",params:c({},R)})})}function h(R){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${R.coursesId}/set_course_group.json`,{method:"post",body:c({},R)})})}function E(R){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${R.coursesId}/join_graduation_group.json`,{method:"post",body:c({},R)})})}function P(R){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${R.coursesId}/create_graduation_group.json`,{method:"post",body:c({},R)})})}function A(R){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${R.coursesId}/delete_course_teacher.json`,{method:"post",body:c({},R)})})}function I(R){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${R.coursesId}/delete_from_course.json`,{method:"post",body:c({},R)})})}function C(R){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${R.coursesId}/change_member_role.json`,{method:"post",body:c({},R)})})}function O(R){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${R.coursesId}/change_course_admin.json`,{method:"post",body:c({},R)})})}function T(R){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${R.coursesId}/teacher_application_review.json`,{method:"post",body:c({},R)})})}function D(R){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${R.coursesId}/students.json`,{method:"get",params:c({},R)})})}function k(R,z){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${R}/apply_students.json`,{method:"get",params:z})})}function $(R,z){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${R}/join_student_checkout.json`,{method:"get",params:z})})}function L(R,z){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${R}/student_application_review.json`,{method:"post",body:z})})}},24780:function(i,d,e){"use strict";e.d(d,{B$:function(){return b},Cx:function(){return Y},Cy:function(){return ae},DA:function(){return O},DH:function(){return p},Ef:function(){return Q},Es:function(){return E},Ex:function(){return ot},FM:function(){return N},Fn:function(){return Z},Gq:function(){return St},Ho:function(){return D},IU:function(){return ee},JJ:function(){return K},Ol:function(){return ve},Qx:function(){return z},Tv:function(){return M},V8:function(){return g},WS:function(){return G},WY:function(){return R},ai:function(){return j},bG:function(){return A},bJ:function(){return f},c0:function(){return yt},dE:function(){return H},dt:function(){return B},gI:function(){return J},lO:function(){return V},mW:function(){return L},n0:function(){return C},nV:function(){return pe},o1:function(){return He},qE:function(){return h},qN:function(){return T},rV:function(){return k},sh:function(){return le},vR:function(){return P},w3:function(){return $},x4:function(){return I},z2:function(){return ze}});var t=e(99064),r=Object.defineProperty,n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(ge,Be,Xe)=>Be in ge?r(ge,Be,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):ge[Be]=Xe,c=(ge,Be)=>{for(var Xe in Be||(Be={}))o.call(Be,Xe)&&u(ge,Xe,Be[Xe]);if(n)for(var Xe of n(Be))s.call(Be,Xe)&&u(ge,Xe,Be[Xe]);return ge},a=(ge,Be,Xe)=>new Promise((tt,Tt)=>{var Pt=Ce=>{try{xe(Xe.next(Ce))}catch(Le){Tt(Le)}},je=Ce=>{try{xe(Xe.throw(Ce))}catch(Le){Tt(Le)}},xe=Ce=>Ce.done?tt(Ce.value):Promise.resolve(Ce.value).then(Pt,je);xe((Xe=Xe.apply(ge,Be)).next())});const f=ge=>a(void 0,null,function*(){return(0,t.ZP)(`/api/common_comments/${ge.id}/move.json`,{method:"post",body:ge})}),g=ge=>a(void 0,null,function*(){return(0,t.ZP)(`/api/common_comments/${ge.id}.json`,{method:"delete",body:ge})}),p=ge=>a(void 0,null,function*(){return(0,t.ZP)(`/api/common_comments/${ge.id}.json`,{method:"put",body:ge})}),b=ge=>a(void 0,null,function*(){return(0,t.ZP)("/api/common_comments.json",{method:"post",body:ge})}),h=ge=>a(void 0,null,function*(){return(0,t.ZP)("/api/common_comments.json",{method:"Get",params:ge})});function E(ge){return a(this,null,function*(){return(0,t.ZP)("/api/accounts/login.json",{method:"post",body:c({},ge)})})}function P(ge){return a(this,null,function*(){return(0,t.ZP)("/api/accounts/logout.json",{method:"get"})})}function A(ge){return a(this,null,function*(){return(0,t.ZP)("/api/users/get_user_info.json",{method:"get",params:c({},ge)})})}function I(ge){return a(this,null,function*(){return(0,t.ZP)("/api/users/get_notice.json",{method:"get",params:c({},ge)})})}function C(){return a(this,null,function*(){return(0,t.ZP)("/api/users/system_update.json",{method:"get"})})}function O(ge){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${ge.username}/homepage_info.json`,{method:"get"})})}function T(ge){return a(this,null,function*(){return(0,t.ZP)("/api/users/attendance.json",{method:"post"})})}function D(ge){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${ge.username}/courses.json`,{method:"get",params:ge})})}function k(ge){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${ge.username}/shixuns.json`,{method:"get",params:ge})})}function $(ge){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${ge.username}/subjects.json`,{method:"get",params:ge})})}function L(ge){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${ge.username}/projects.json`,{method:"get",params:ge})})}function R(ge){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${ge.username}/videos.json`,{method:"get",params:ge})})}function z(ge){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${ge.username}/videos/review.json`,{method:"get",params:ge})})}function N(ge){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${ge.username}/videos/${ge.id}.json`,{method:"delete"})})}function V(ge){return a(this,null,function*(){return(0,t.ZP)("/api/watch_video_histories.json",{method:"post",body:ge})})}function j(ge){return a(this,null,function*(){return(0,t.ZP)("/api/users/question_banks.json",{method:"get",params:ge})})}function Y(ge){return a(this,null,function*(){return(0,t.ZP)("/api/question_banks/multi_public.json",{method:"post",body:ge})})}function G(ge){return a(this,null,function*(){return(0,t.ZP)("/api/question_banks/multi_delete.json",{method:"delete",body:ge})})}function J(ge){return a(this,null,function*(){return(0,t.ZP)("/api/question_banks/my_courses.json",{method:"get",params:ge})})}function Q(ge){return a(this,null,function*(){return(0,t.ZP)("/api/question_banks/send_to_course.json",{method:"post",body:ge})})}function Z(ge){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${ge.username}/videos/${ge.object_id}/create_course_video.json`,{method:"post",body:ge})})}function K(ge){return a(this,null,function*(){return(0,t.ZP)(`/api/homework_banks/${ge.topicId}.json`,{method:"get",params:ge})})}function M(ge){return a(this,null,function*(){return(0,t.ZP)("/api/question_banks/multi_delete.json",{method:"delete",body:c({},ge)})})}function B(ge){return a(this,null,function*(){return(0,t.ZP)(`/api/users/${ge.username}/videos/batch_publish.json`,{method:"post",body:ge})})}function H(ge){return a(this,null,function*(){return(0,t.ZP)(`/api/myshixuns/${ge.identifier}/cancel.json`,{method:"delete",body:c({},ge)})})}function ee(){return a(this,null,function*(){return(0,t.ZP)("/api/users/get_engineer_url.json",{method:"get"})})}function ae(ge){return a(this,null,function*(){return(0,t.ZP)("/api/intelligent_recommendations/user_choice_learn_path.json",{method:"post",body:c({},ge)})})}function le(){return a(this,null,function*(){return(0,t.ZP)("/api/intelligent_recommendations/persona.json",{method:"get"})})}function pe(){return a(this,null,function*(){return(0,t.ZP)("/api/intelligent_recommendations/user_learn_path.json",{method:"get"})})}function ve(ge){return(0,t.ZP)("/api/accounts/valid_email_and_phone.json",{method:"get",params:ge})}function He(ge){return(0,t.ZP)("/api/accounts/get_verification_code.json",{method:"get",params:ge})}function ze(ge){return(0,t.ZP)("/api/accounts/register.json",{method:"post",body:c({},ge)})}function rt(ge){return Fetch("/api/weapps/register.json",{method:"post",body:c({},ge)})}function ot(ge){return(0,t.ZP)(`/api/users/accounts/${ge.login}/password.json`,{method:"put",body:c({},ge)})}function yt(ge){return(0,t.ZP)("/api/accounts/reset_password.json",{method:"post",body:c({},ge)})}function St(ge){return(0,t.ZP)("/api/accounts/login_for_phone.json",{method:"get",params:c({},ge)})}},75730:function(i,d,e){"use strict";e.d(d,{BQ:function(){return f},DH:function(){return D},Db:function(){return V},Ju:function(){return N},Mz:function(){return L},O2:function(){return h},TJ:function(){return A},Vg:function(){return b},ZY:function(){return g},Zx:function(){return $},cU:function(){return p},fn:function(){return z},jK:function(){return I},yN:function(){return R}});var t=e(99064),r=Object.defineProperty,n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(j,Y,G)=>Y in j?r(j,Y,{enumerable:!0,configurable:!0,writable:!0,value:G}):j[Y]=G,c=(j,Y)=>{for(var G in Y||(Y={}))o.call(Y,G)&&u(j,G,Y[G]);if(n)for(var G of n(Y))s.call(Y,G)&&u(j,G,Y[G]);return j},a=(j,Y,G)=>new Promise((J,Q)=>{var Z=B=>{try{M(G.next(B))}catch(H){Q(H)}},K=B=>{try{M(G.throw(B))}catch(H){Q(H)}},M=B=>B.done?J(B.value):Promise.resolve(B.value).then(Z,K);M((G=G.apply(j,Y)).next())});function f(j){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${j.coursesId}/watch_video_histories.json`,{method:"Get",params:c({},j)})})}function g(j){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${j.coursesId}/watch_statics.json`,{method:"Get",params:c({},j)})})}function p(j){return a(this,null,function*(){return(0,t.ZP)(`/api/course_videos/${j.videoId}/watch_histories.json`,{method:"Get",params:c({},j)})})}function b(j){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${j.coursesId}/own_watch_histories.json`,{method:"Get",params:c({},j)})})}function h(j){return a(this,null,function*(){return(0,t.ZP)(`/api/video_items/${j.id}.json`,{method:"Get",params:c({},j)})})}function E(j){return a(this,null,function*(){return Fetch("/api/video_items.json",{method:"post",body:j})})}function P(j){return a(this,null,function*(){return Fetch(`/api/video_items/${j.id}/edit.json`,{method:"Get",params:c({},j)})})}function A(j){return a(this,null,function*(){return(0,t.ZP)(`/api/stage_shixuns/${j.id}/edit.json`,{method:"Get",params:c({},j)})})}function I(j){return a(this,null,function*(){return(0,t.ZP)(`/api/video_items/${j.id}/star.json`,{method:"post",body:j})})}function C(j){return a(this,null,function*(){return Fetch(`/api/video_items/${j.id}.json`,{method:"put",body:j})})}function O(j){return a(this,null,function*(){return Fetch(`/api/video_items/${j.id}/send_to_course.json`,{method:"post",body:j})})}function T(j){return a(this,null,function*(){return Fetch("/api/users/my_courses.json",{method:"Get",params:c({},j)})})}function D(j){return a(this,null,function*(){return(0,t.ZP)(`/api/video_items/${j.id}/view_video.json`,{method:"post",body:j})})}function k(j){return a(this,null,function*(){return Fetch(`/api/video_items/${j.id}/add_school.json`,{method:"post",body:j})})}function $(j){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${j.course_id}/video_people_statics.json`,{method:"get",params:j})})}function L(j){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${j.course_id}/video_duration_statics.json`,{method:"get",params:j})})}function R(j){return a(this,null,function*(){return(0,t.ZP)("/api/stages.json",{method:"get",params:j})})}function z(j){return a(this,null,function*(){return(0,t.ZP)(`/api/courses/${j==null?void 0:j.id}/course_videos_tree.json`,{method:"get",params:j})})}function N(j){return a(this,null,function*(){return(0,t.ZP)("/api/study_action_analyses.json",{method:"post",body:j})})}function V(j){return a(this,null,function*(){return(0,t.ZP)("/api/study_action_analyses/detail.json",{method:"post",body:j})})}},62406:function(i,d,e){"use strict";e.d(d,{A:function(){return L},CH:function(){return o},EA:function(){return c},FU:function(){return g},G_:function(){return h},LY:function(){return T},Ll:function(){return u},MM:function(){return I},Ps:function(){return D},Sl:function(){return P},To:function(){return p},Vf:function(){return b},XQ:function(){return s},b:function(){return f},bq:function(){return $},cZ:function(){return a},rV:function(){return O},sT:function(){return E},tS:function(){return k},xt:function(){return C},y2:function(){return n}});var t=e(99064),r=(R,z,N)=>new Promise((V,j)=>{var Y=Q=>{try{J(N.next(Q))}catch(Z){j(Z)}},G=Q=>{try{J(N.throw(Q))}catch(Z){j(Z)}},J=Q=>Q.done?V(Q.value):Promise.resolve(Q.value).then(Y,G);J((N=N.apply(R,z)).next())});const n=R=>r(void 0,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R.virtual_spacesId}/base_statistic_data.json`,{method:"Get",params:R})});function o(R){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R.virtual_spacesId}/discussions/${R.id}.json`,{method:"put",body:R})})}function s(R){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R.virtual_spacesId}/discussions/${R.id}.json`,{method:"get",params:R})})}function u(R){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R.virtual_spacesId}/discussions.json`,{method:"post",body:R})})}function c(R){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R.virtual_spacesId}/discussions.json`,{method:"get",params:R})})}function a(R){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R.virtual_spacesId}/good_lessons/${R.id}/add_resources.json`,{method:"post",body:R})})}function f(R){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R.virtual_spacesId}/good_lessons/${R.id}/lesson_resources_list.json`,{method:"get",params:R})})}function g(R){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R.virtual_spacesId}/good_lessons/${R.id}.json`,{method:"get",params:R})})}function p(R){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R.virtual_spacesId}/good_lessons/${R.id}.json`,{method:"put",body:R})})}function b(R){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R.virtual_spacesId}/good_lessons.json`,{method:"post",body:R})})}function h(R){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R.virtual_spacesId}/good_lessons.json`,{method:"get",params:R})})}function E(R){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R==null?void 0:R.id}.json`,{method:"get"})})}function P(R){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R==null?void 0:R.id}/modules.json`,{method:"get"})})}function A(R){return r(this,null,function*(){return Fetch(`/api/virtual_classrooms/${R.id}/videos/batch_publish.json`,{method:"post",body:R})})}function I(R){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R.virtual_spacesId}/members.json`,{method:"post",body:R})})}function C(R){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R.virtual_spacesId}/members/${R.id}/change_creator.json`,{method:"post",body:R})})}function O(R,z){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R}/shixuns.json`,{method:"get",params:z})})}function T(R,z){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R}/shixuns`,{method:"post",body:z})})}function D(R){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R.virtual_classroom_id}/shixuns/${R.shixun_id}.json`,{method:"delete"})})}function k(R,z){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R}/subjects.json`,{method:"get",params:z})})}function $(R,z){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R}/subjects.json`,{method:"post",body:z})})}function L(R){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${R.virtual_classroom_id}/subjects/${R.subject_id}.json`,{method:"delete"})})}},24065:function(i,d,e){"use strict";e.d(d,{$O:function(){return Y},G5:function(){return $},GD:function(){return r},GJ:function(){return g},Gg:function(){return p},I2:function(){return s},IR:function(){return R},JA:function(){return et},JL:function(){return C},Jd:function(){return j},Ny:function(){return A},RV:function(){return N},Rb:function(){return k},Rm:function(){return L},V9:function(){return H},Yh:function(){return K},aN:function(){return E},aQ:function(){return a},ag:function(){return Ne},bg:function(){return Gt},d8:function(){return D},dE:function(){return z},eB:function(){return V},eY:function(){return me},fn:function(){return Ke},h:function(){return Zt},j5:function(){return h},m$:function(){return ke},oF:function(){return b},qz:function(){return c},t_:function(){return P},tu:function(){return ct},y8:function(){return jt}});var t=e(89070),r=(it=>(it[it.SuperAdmin=1]="SuperAdmin",it[it.Operation=2]="Operation",it[it.CertifiedTeacher=5]="CertifiedTeacher",it[it.TrainingProduction=8]="TrainingProduction",it[it.UncertifiedTeacher=12]="UncertifiedTeacher",it[it.Student=15]="Student",it))(r||{}),n=(it=>(it[it.SuperAdmin=1]="SuperAdmin",it[it.Operation=2]="Operation",it[it.Admin=5]="Admin",it[it.Teacher=8]="Teacher",it[it.Assistant=12]="Assistant",it[it.Student=15]="Student",it))(n||{}),o=(it=>(it[it.SuperAdmin=0]="SuperAdmin",it[it.Teacher=1]="Teacher",it[it.Student=2]="Student",it))(o||{});const s=it=>{const{user:ce}=(0,t.getDvaApp)()._store.getState(),{userInfo:lt}=ce;return it.some(qe=>qe==(lt==null?void 0:lt.role))},u=it=>{const{user:ce}=(0,t.getDvaApp)()._store.getState(),{userInfo:lt}=ce;return lt!=null&<.own?!0:it.some(qe=>{var wt;return qe==((wt=lt==null?void 0:lt.course)==null?void 0:wt.course_role)})},c=()=>{const{user:it}=(0,t.getDvaApp)()._store.getState(),{userInfo:ce}=it;return ce.main_site},a=()=>{var it;const{user:ce}=(0,t.getDvaApp)()._store.getState(),{userInfo:lt}=ce;return(it=lt==null?void 0:lt.course)==null?void 0:it.course_is_end},f=()=>{const{user:it}=getDvaApp()._store.getState(),{userInfo:ce}=it;return ce.authentication},g=()=>u([1,2,5,8,12]),p=()=>u([1,8,5,12,2]),b=()=>u([1,8,5]),h=()=>u([1]),E=()=>u([1,2,5]),P=()=>u([1,2]),A=()=>s([1,2]),I=()=>s([1]),C=()=>s([1,2,5]),O=()=>u([1,5]),T=()=>u([5,8]),D=()=>u([5]),k=()=>u([1,5,2]),$=()=>u([1,2,5,8]),L=()=>u([12]),R=()=>u([8]),z=()=>u([15]),N=()=>u([1,2,5,8,12,15]),V=()=>u([1,2,5,8,12]),j=()=>{var it;const{user:ce}=(0,t.getDvaApp)()._store.getState(),{userInfo:lt}=ce;return((it=lt==null?void 0:lt.course)==null?void 0:it.course_role)===null},Y=()=>{const{user:it}=(0,t.getDvaApp)()._store.getState(),{userInfo:ce}=it;return ce==null?void 0:ce.has_big_model_permission},G=()=>{const{user:it}=getDvaApp()._store.getState(),{userInfo:ce}=it;return ce==null?void 0:ce.big_model_user_unlimited},J=(it=!0,ce=!1)=>s([1,2,5,8,12,15]),Q=(it=!0,ce=!1)=>ce||!ce&&s([1]),Z=(it=!0,ce=!1)=>ce||!ce&&s([1,2]),K=()=>s([15]),M=(it=!0,ce=!1)=>it?s([1,2,5,8,12,15]):ce||!ce&&s([1,2]),B=(it=!0,ce=!1)=>it?s([1,2,5,8,12,15]):ce||!ce&&s([1,2]),H=(it=!0,ce=!1)=>{const{user:lt}=(0,t.getDvaApp)()._store.getState(),{userInfo:qe}=lt;return qe!=null&&qe.is_shixun_marker?!0:s([1,2,5,8])},ee=(it=!0,ce=!1)=>it?s([1]):ce||!ce&&s([1]),ae=(it=!0,ce=!1)=>it?s([1,2]):ce||!ce&&s([1,2]),le=(it=!0,ce=!1)=>it?s([1,2,5,8,12,15]):ce||!ce&&s([1,2]),pe=(it=!0,ce=!1)=>it?s([1,2,5,8,12]):ce||!ce&&s([1,2]),ve=(it=!0,ce=!1)=>it?s([1,2,5]):ce||!ce&&s([1,2]),He=(it=!0,ce=!1)=>it?s([1]):!1,ze=(it=!0,ce=!1)=>s([1,2,5,8,12,15]),rt=(it=!0,ce=!1)=>it?s([1]):ce||!ce&&s([1]),ot=(it=!0,ce=!1)=>it?s([1,2]):ce||!ce&&s([1,2]),yt=(it=!0,ce=!1)=>it?s([1,2,5,8,12,15]):ce||!ce&&s([1,2]),St=(it=!0,ce=!1)=>it?!1:ce||!ce&&s([1,2]),ge=(it=!0,ce=!1)=>it?ce||!ce&&s([1,2]):!1,Be=(it=!0,ce=!1)=>it?s([1,2,5,8,12]):!1,Xe=(it=!0,ce=!1)=>it?!ce&&s([1,2,5,8,12]):!1,tt=(it=!0,ce=!1)=>it?s([1,2,5]):ce||!ce&&s([1,2]),Tt=(it=!0,ce=!1)=>s([1,2,5,8,12]),Pt=(it=!0,ce=!1)=>it?s([1]):ce||!ce&&s([1]),je=(it=!0,ce=!1)=>it?s([1,2]):ce||!ce&&s([1,2]),xe=(it=!0,ce=!1)=>it?s([1,2,5,8,12]):ce||!ce&&s([1,2]),Ce=(it=!0,ce=!1)=>it?ce||!ce&&s([1,2]):!1,Le=(it=!0,ce=!1)=>it?s([1,2,5,8,12]):ce||!ce&&s([1,2]),Re=(it=!0,ce=!1)=>u([8]),Ke=()=>s([1]),Ne=()=>s([1,2]),et=()=>s([15]),Je=()=>s([1,2,5]),jt=()=>s([1,2,5,12]),Gt=()=>{var it;const{user:ce}=(0,t.getDvaApp)()._store.getState();return!!((it=ce.userInfo)!=null&&it.login)},me=()=>{const{user:it}=(0,t.getDvaApp)()._store.getState();return it.userInfo},ke=()=>{var it,ce;const{user:lt}=(0,t.getDvaApp)()._store.getState();return!!((ce=(it=lt.userInfo)==null?void 0:it.path)!=null&&ce.own)},xt=it=>{const{graduations:ce}=(0,t.getDvaApp)()._store.getState(),{details:lt}=ce;return it.some(qe=>qe===(lt==null?void 0:lt.user_identity))},ct=()=>xt([0,1]),ft=()=>xt([0]),st=()=>xt([1]),Zt=()=>xt([2])},14165:function(i,d,e){"use strict";e.d(d,{a2:function(){return o},fw:function(){return t},gW:function(){return n},k:function(){return s},k4:function(){return r}});const t=[{id:0,name:"\u5355\u9009\u9898",nameType:"SINGLE"},{id:1,name:"\u591A\u9009\u9898",nameType:"MULTIPLE"},{id:2,name:"\u5224\u65AD\u9898",nameType:"JUDGMENT"},{id:3,name:"\u586B\u7A7A\u9898",nameType:"COMPLETION"},{id:4,name:"\u7B80\u7B54\u9898",nameType:"SUBJECTIVE"},{id:5,name:"\u5B9E\u8BAD\u9898",nameType:"PRACTICAL"},{id:6,name:"\u7F16\u7A0B\u9898",nameType:"PROGRAM"},{id:7,name:"\u7EC4\u5408\u9898",nameType:"COMBINATION"},{id:8,name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",nameType:"BPROGRAM"}],r=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];var n=(u=>(u.PROBLEM="problem",u.PAPER="paper",u.OTHER="other",u))(n||{}),o=(u=>(u.SINGLE="single",u.MULTIPLEFLOW="multiple_flow",u.MULTIPLEFIXED="multiple_fixed",u.OTHER="other",u))(o||{}),s=(u=>(u[u.BISHI=1]="BISHI",u[u.JISHI=2]="JISHI",u[u.KOUSHI=3]="KOUSHI",u[u.OTHER=4]="OTHER",u))(s||{})},33466:function(i,d,e){"use strict";e.d(d,{F:function(){return t}});const t={load:"text/html",123:"application/vndlotus-1-2-3","3ds":"image/x-3ds","3g2":"video/3gpp","3ga":"video/3gpp","3gp":"video/3gpp","3gpp":"video/3gpp",602:"application/x-t602",669:"audio/x-mod","7z":"application/x-7z-compressed",a:"application/x-archive",aac:"audio/mp4",abw:"application/x-abiword",abwcrashed:"application/x-abiword",abwgz:"application/x-abiword",ac3:"audio/ac3",ace:"application/x-ace",adb:"text/x-adasrc",ads:"text/x-adasrc",afm:"application/x-font-afm",ag:"image/x-applix-graphics",ai:"application/illustrator",aif:"audio/x-aiff",aifc:"audio/x-aiff",aiff:"audio/x-aiff",al:"application/x-perl",alz:"application/x-alz",amr:"audio/amr",ani:"application/x-navi-animation","anim[1-9j]":"video/x-anim",anx:"application/annodex",ape:"audio/x-ape",arj:"application/x-arj",arw:"image/x-sony-arw",as:"application/x-applix-spreadsheet",asc:"text/plain",asf:"video/x-ms-asf",asp:"application/x-asp",ass:"text/x-ssa",asx:"audio/x-ms-asx",atom:"application/atom+xml",au:"audio/basic",avi:"video/x-msvideo",aw:"application/x-applix-word",awb:"audio/amr-wb",awk:"application/x-awk",axa:"audio/annodex",axv:"video/annodex",bak:"application/x-trash",bcpio:"application/x-bcpio",bdf:"application/x-font-bdf",bib:"text/x-bibtex",bin:"application/octet-stream",blend:"application/x-blender",blender:"application/x-blender",bmp:"image/bmp",bz:"application/x-bzip",bz2:"application/x-bzip",c:"text/x-csrc","c++":"text/x-c++src",cab:"application/vndms-cab-compressed",cb7:"application/x-cb7",cbr:"application/x-cbr",cbt:"application/x-cbt",cbz:"application/x-cbz",cc:"text/x-c++src",cdf:"application/x-netcdf",cdr:"application/vndcorel-draw",cer:"application/x-x509-ca-cert",cert:"application/x-x509-ca-cert",cgm:"image/cgm",chm:"application/x-chm",chrt:"application/x-kchart",class:"application/x-java",cls:"text/x-tex",cmake:"text/x-cmake",cpio:"application/x-cpio",cpiogz:"application/x-cpio-compressed",cpp:"text/x-c++src",cr2:"image/x-canon-cr2",crt:"application/x-x509-ca-cert",crw:"image/x-canon-crw",cs:"text/x-csharp",csh:"application/x-csh",css:"text/css",cssl:"text/css",csv:"text/csv",cue:"application/x-cue",cur:"image/x-win-bitmap",cxx:"text/x-c++src",d:"text/x-dsrc",dar:"application/x-dar",dbf:"application/x-dbf",dc:"application/x-dc-rom",dcl:"text/x-dcl",dcm:"application/dicom",dcr:"image/x-kodak-dcr",dds:"image/x-dds",deb:"application/x-deb",der:"application/x-x509-ca-cert",desktop:"application/x-desktop",dia:"application/x-dia-diagram",diff:"text/x-patch",divx:"video/x-msvideo",djv:"image/vnddjvu",djvu:"image/vnddjvu",dng:"image/x-adobe-dng",doc:"application/msword",docbook:"application/docbook+xml",docm:"application/vndopenxmlformats-officedocumentwordprocessingmldocument",docx:"application/vndopenxmlformats-officedocumentwordprocessingmldocument",dot:"text/vndgraphviz",dsl:"text/x-dsl",dtd:"application/xml-dtd",dtx:"text/x-tex",dv:"video/dv",dvi:"application/x-dvi",dvibz2:"application/x-bzdvi",dvigz:"application/x-gzdvi",dwg:"image/vnddwg",dxf:"image/vnddxf",e:"text/x-eiffel",egon:"application/x-egon",eif:"text/x-eiffel",el:"text/x-emacs-lisp",emf:"image/x-emf",emp:"application/vndemusic-emusic_package",ent:"application/xml-external-parsed-entity",eps:"image/x-eps",epsbz2:"image/x-bzeps",epsgz:"image/x-gzeps",epsf:"image/x-eps",epsfbz2:"image/x-bzeps",epsfgz:"image/x-gzeps",epsi:"image/x-eps",epsibz2:"image/x-bzeps",epsigz:"image/x-gzeps",epub:"application/epub+zip",erl:"text/x-erlang",es:"application/ecmascript",etheme:"application/x-e-theme",etx:"text/x-setext",exe:"application/x-ms-dos-executable",exr:"image/x-exr",ez:"application/andrew-inset",f:"text/x-fortran",f90:"text/x-fortran",f95:"text/x-fortran",fb2:"application/x-fictionbook+xml",fig:"image/x-xfig",fits:"image/fits",fl:"application/x-fluid",flac:"audio/x-flac",flc:"video/x-flic",fli:"video/x-flic",flv:"video/x-flv",flw:"application/x-kivio",fo:"text/x-xslfo",for:"text/x-fortran",g3:"image/fax-g3",gb:"application/x-gameboy-rom",gba:"application/x-gba-rom",gcrd:"text/directory",ged:"application/x-gedcom",gedcom:"application/x-gedcom",gen:"application/x-genesis-rom",gf:"application/x-tex-gf",gg:"application/x-sms-rom",gif:"image/gif",glade:"application/x-glade",gmo:"application/x-gettext-translation",gnc:"application/x-gnucash",gnd:"application/gnunet-directory",gnucash:"application/x-gnucash",gnumeric:"application/x-gnumeric",gnuplot:"application/x-gnuplot",gp:"application/x-gnuplot",gpg:"application/pgp-encrypted",gplt:"application/x-gnuplot",gra:"application/x-graphite",gsf:"application/x-font-type1",gsm:"audio/x-gsm",gtar:"application/x-tar",gv:"text/vndgraphviz",gvp:"text/x-google-video-pointer",gz:"application/x-gzip",h:"text/x-chdr","h++":"text/x-c++hdr",hdf:"application/x-hdf",hh:"text/x-c++hdr",hp:"text/x-c++hdr",hpgl:"application/vndhp-hpgl",hpp:"text/x-c++hdr",hs:"text/x-haskell",htm:"text/html",html:"text/html",hwp:"application/x-hwp",hwt:"application/x-hwt",hxx:"text/x-c++hdr",ica:"application/x-ica",icb:"image/x-tga",icns:"image/x-icns",ico:"image/vndmicrosofticon",ics:"text/calendar",idl:"text/x-idl",ief:"image/ief",iff:"image/x-iff",ilbm:"image/x-ilbm",ime:"text/x-imelody",imy:"text/x-imelody",ins:"text/x-tex",iptables:"text/x-iptables",iso:"application/x-cd-image",iso9660:"application/x-cd-image",it:"audio/x-it",j2k:"image/jp2",jad:"text/vndsunj2meapp-descriptor",jar:"application/x-java-archive",java:"text/x-java",jng:"image/x-jng",jnlp:"application/x-java-jnlp-file",jp2:"image/jp2",jpc:"image/jp2",jpe:"image/jpeg",jpeg:"image/jpeg",jpf:"image/jp2",jpg:"image/jpeg",jpr:"application/x-jbuilder-project",jpx:"image/jp2",js:"application/javascript",json:"application/json",jsonp:"application/jsonp",k25:"image/x-kodak-k25",kar:"audio/midi",karbon:"application/x-karbon",kdc:"image/x-kodak-kdc",kdelnk:"application/x-desktop",kexi:"application/x-kexiproject-sqlite3",kexic:"application/x-kexi-connectiondata",kexis:"application/x-kexiproject-shortcut",kfo:"application/x-kformula",kil:"application/x-killustrator",kino:"application/smil",kml:"application/vndgoogle-earthkml+xml",kmz:"application/vndgoogle-earthkmz",kon:"application/x-kontour",kpm:"application/x-kpovmodeler",kpr:"application/x-kpresenter",kpt:"application/x-kpresenter",kra:"application/x-krita",ksp:"application/x-kspread",kud:"application/x-kugar",kwd:"application/x-kword",kwt:"application/x-kword",la:"application/x-shared-library-la",latex:"text/x-tex",ldif:"text/x-ldif",lha:"application/x-lha",lhs:"text/x-literate-haskell",lhz:"application/x-lhz",log:"text/x-log",ltx:"text/x-tex",lua:"text/x-lua",lwo:"image/x-lwo",lwob:"image/x-lwo",lws:"image/x-lws",ly:"text/x-lilypond",lyx:"application/x-lyx",lz:"application/x-lzip",lzh:"application/x-lha",lzma:"application/x-lzma",lzo:"application/x-lzop",m:"text/x-matlab",m15:"audio/x-mod",m2t:"video/mpeg",m3u:"audio/x-mpegurl",m3u8:"audio/x-mpegurl",m4:"application/x-m4",m4a:"audio/mp4",m4b:"audio/x-m4b",m4v:"video/mp4",mab:"application/x-markaby",man:"application/x-troff-man",mbox:"application/mbox",md:"application/x-genesis-rom",mdb:"application/vndms-access",mdi:"image/vndms-modi",me:"text/x-troff-me",med:"audio/x-mod",metalink:"application/metalink+xml",mgp:"application/x-magicpoint",mid:"audio/midi",midi:"audio/midi",mif:"application/x-mif",minipsf:"audio/x-minipsf",mka:"audio/x-matroska",mkv:"video/x-matroska",ml:"text/x-ocaml",mli:"text/x-ocaml",mm:"text/x-troff-mm",mmf:"application/x-smaf",mml:"text/mathml",mng:"video/x-mng",mo:"application/x-gettext-translation",mo3:"audio/x-mo3",moc:"text/x-moc",mod:"audio/x-mod",mof:"text/x-mof",moov:"video/quicktime",mov:"video/quicktime",movie:"video/x-sgi-movie","mp+":"audio/x-musepack",mp2:"video/mpeg",mp3:"audio/mpeg",mp4:"video/mp4",mpc:"audio/x-musepack",mpe:"video/mpeg",mpeg:"video/mpeg",mpg:"video/mpeg",mpga:"audio/mpeg",mpp:"audio/x-musepack",mrl:"text/x-mrml",mrml:"text/x-mrml",mrw:"image/x-minolta-mrw",ms:"text/x-troff-ms",msi:"application/x-msi",msod:"image/x-msod",msx:"application/x-msx-rom",mtm:"audio/x-mod",mup:"text/x-mup",mxf:"application/mxf",n64:"application/x-n64-rom",nb:"application/mathematica",nc:"application/x-netcdf",nds:"application/x-nintendo-ds-rom",nef:"image/x-nikon-nef",nes:"application/x-nes-rom",nfo:"text/x-nfo",not:"text/x-mup",nsc:"application/x-netshow-channel",nsv:"video/x-nsv",o:"application/x-object",obj:"application/x-tgif",ocl:"text/x-ocl",oda:"application/oda",odb:"application/vndoasisopendocumentdatabase",odc:"application/vndoasisopendocumentchart",odf:"application/vndoasisopendocumentformula",odg:"application/vndoasisopendocumentgraphics",odi:"application/vndoasisopendocumentimage",odm:"application/vndoasisopendocumenttext-master",odp:"application/vndoasisopendocumentpresentation",ods:"application/vndoasisopendocumentspreadsheet",odt:"application/vndoasisopendocumenttext",oga:"audio/ogg",ogg:"video/x-theora+ogg",ogm:"video/x-ogm+ogg",ogv:"video/ogg",ogx:"application/ogg",old:"application/x-trash",oleo:"application/x-oleo",opml:"text/x-opml+xml",ora:"image/openraster",orf:"image/x-olympus-orf",otc:"application/vndoasisopendocumentchart-template",otf:"application/x-font-otf",otg:"application/vndoasisopendocumentgraphics-template",oth:"application/vndoasisopendocumenttext-web",otp:"application/vndoasisopendocumentpresentation-template",ots:"application/vndoasisopendocumentspreadsheet-template",ott:"application/vndoasisopendocumenttext-template",owl:"application/rdf+xml",oxt:"application/vndopenofficeorgextension",p:"text/x-pascal",p10:"application/pkcs10",p12:"application/x-pkcs12",p7b:"application/x-pkcs7-certificates",p7s:"application/pkcs7-signature",pack:"application/x-java-pack200",pak:"application/x-pak",par2:"application/x-par2",pas:"text/x-pascal",patch:"text/x-patch",pbm:"image/x-portable-bitmap",pcd:"image/x-photo-cd",pcf:"application/x-cisco-vpn-settings",pcfgz:"application/x-font-pcf",pcfz:"application/x-font-pcf",pcl:"application/vndhp-pcl",pcx:"image/x-pcx",pdb:"chemical/x-pdb",pdc:"application/x-aportisdoc",pdf:"application/pdf",pdfbz2:"application/x-bzpdf",pdfgz:"application/x-gzpdf",pef:"image/x-pentax-pef",pem:"application/x-x509-ca-cert",perl:"application/x-perl",pfa:"application/x-font-type1",pfb:"application/x-font-type1",pfx:"application/x-pkcs12",pgm:"image/x-portable-graymap",pgn:"application/x-chess-pgn",pgp:"application/pgp-encrypted",php:"application/x-php",php3:"application/x-php",php4:"application/x-php",pict:"image/x-pict",pict1:"image/x-pict",pict2:"image/x-pict",pickle:"application/python-pickle",pk:"application/x-tex-pk",pkipath:"application/pkix-pkipath",pkr:"application/pgp-keys",pl:"application/x-perl",pla:"audio/x-iriver-pla",pln:"application/x-planperfect",pls:"audio/x-scpls",pm:"application/x-perl",png:"image/png",pnm:"image/x-portable-anymap",pntg:"image/x-macpaint",po:"text/x-gettext-translation",por:"application/x-spss-por",pot:"text/x-gettext-translation-template",ppm:"image/x-portable-pixmap",pps:"application/vndms-powerpoint",ppt:"application/vndms-powerpoint",pptm:"application/vndopenxmlformats-officedocumentpresentationmlpresentation",pptx:"application/vndopenxmlformats-officedocumentpresentationmlpresentation",ppz:"application/vndms-powerpoint",prc:"application/x-palm-database",ps:"application/postscript",psbz2:"application/x-bzpostscript",psgz:"application/x-gzpostscript",psd:"image/vndadobephotoshop",psf:"audio/x-psf",psfgz:"application/x-gz-font-linux-psf",psflib:"audio/x-psflib",psid:"audio/prssid",psw:"application/x-pocket-word",pw:"application/x-pw",py:"text/x-python",pyc:"application/x-python-bytecode",pyo:"application/x-python-bytecode",qif:"image/x-quicktime",qt:"video/quicktime",qtif:"image/x-quicktime",qtl:"application/x-quicktime-media-link",qtvr:"video/quicktime",ra:"audio/vndrn-realaudio",raf:"image/x-fuji-raf",ram:"application/ram",rar:"application/x-rar",ras:"image/x-cmu-raster",raw:"image/x-panasonic-raw",rax:"audio/vndrn-realaudio",rb:"application/x-ruby",rdf:"application/rdf+xml",rdfs:"application/rdf+xml",reg:"text/x-ms-regedit",rej:"application/x-reject",rgb:"image/x-rgb",rle:"image/rle",rm:"application/vndrn-realmedia",rmj:"application/vndrn-realmedia",rmm:"application/vndrn-realmedia",rms:"application/vndrn-realmedia",rmvb:"application/vndrn-realmedia",rmx:"application/vndrn-realmedia",roff:"text/troff",rp:"image/vndrn-realpix",rpm:"application/x-rpm",rss:"application/rss+xml",rt:"text/vndrn-realtext",rtf:"application/rtf",rtx:"text/richtext",rv:"video/vndrn-realvideo",rvx:"video/vndrn-realvideo",s3m:"audio/x-s3m",sam:"application/x-amipro",sami:"application/x-sami",sav:"application/x-spss-sav",scm:"text/x-scheme",sda:"application/vndstardivisiondraw",sdc:"application/vndstardivisioncalc",sdd:"application/vndstardivisionimpress",sdp:"application/sdp",sds:"application/vndstardivisionchart",sdw:"application/vndstardivisionwriter",sgf:"application/x-go-sgf",sgi:"image/x-sgi",sgl:"application/vndstardivisionwriter",sgm:"text/sgml",sgml:"text/sgml",sh:"application/x-shellscript",shar:"application/x-shar",shn:"application/x-shorten",siag:"application/x-siag",sid:"audio/prssid",sik:"application/x-trash",sis:"application/vndsymbianinstall",sisx:"x-epoc/x-sisx-app",sit:"application/x-stuffit",siv:"application/sieve",sk:"image/x-skencil",sk1:"image/x-skencil",skr:"application/pgp-keys",slk:"text/spreadsheet",smaf:"application/x-smaf",smc:"application/x-snes-rom",smd:"application/vndstardivisionmail",smf:"application/vndstardivisionmath",smi:"application/x-sami",smil:"application/smil",sml:"application/smil",sms:"application/x-sms-rom",snd:"audio/basic",so:"application/x-sharedlib",spc:"application/x-pkcs7-certificates",spd:"application/x-font-speedo",spec:"text/x-rpm-spec",spl:"application/x-shockwave-flash",spx:"audio/x-speex",sql:"text/x-sql",sr2:"image/x-sony-sr2",src:"application/x-wais-source",srf:"image/x-sony-srf",srt:"application/x-subrip",ssa:"text/x-ssa",stc:"application/vndsunxmlcalctemplate",std:"application/vndsunxmldrawtemplate",sti:"application/vndsunxmlimpresstemplate",stm:"audio/x-stm",stw:"application/vndsunxmlwritertemplate",sty:"text/x-tex",sub:"text/x-subviewer",sun:"image/x-sun-raster",sv4cpio:"application/x-sv4cpio",sv4crc:"application/x-sv4crc",svg:"image/svg+xml",svgz:"image/svg+xml-compressed",swf:"application/x-shockwave-flash",sxc:"application/vndsunxmlcalc",sxd:"application/vndsunxmldraw",sxg:"application/vndsunxmlwriterglobal",sxi:"application/vndsunxmlimpress",sxm:"application/vndsunxmlmath",sxw:"application/vndsunxmlwriter",sylk:"text/spreadsheet",t:"text/troff",t2t:"text/x-txt2tags",tar:"application/x-tar",tarbz:"application/x-bzip-compressed-tar",tarbz2:"application/x-bzip-compressed-tar",targz:"application/x-compressed-tar",tarlzma:"application/x-lzma-compressed-tar",tarlzo:"application/x-tzo",tarxz:"application/x-xz-compressed-tar",tarz:"application/x-tarz",tbz:"application/x-bzip-compressed-tar",tbz2:"application/x-bzip-compressed-tar",tcl:"text/x-tcl",tex:"text/x-tex",texi:"text/x-texinfo",texinfo:"text/x-texinfo",tga:"image/x-tga",tgz:"application/x-compressed-tar",theme:"application/x-theme",themepack:"application/x-windows-themepack",tif:"image/tiff",tiff:"image/tiff",tk:"text/x-tcl",tlz:"application/x-lzma-compressed-tar",tnef:"application/vndms-tnef",tnf:"application/vndms-tnef",toc:"application/x-cdrdao-toc",torrent:"application/x-bittorrent",tpic:"image/x-tga",tr:"text/troff",ts:"application/x-linguist",tsv:"text/tab-separated-values",tta:"audio/x-tta",ttc:"application/x-font-ttf",ttf:"application/x-font-ttf",ttx:"application/x-font-ttx",txt:"text/plain",txz:"application/x-xz-compressed-tar",tzo:"application/x-tzo",ufraw:"application/x-ufraw",ui:"application/x-designer",uil:"text/x-uil",ult:"audio/x-mod",uni:"audio/x-mod",uri:"text/x-uri",url:"text/x-uri",ustar:"application/x-ustar",vala:"text/x-vala",vapi:"text/x-vala",vcf:"text/directory",vcs:"text/calendar",vct:"text/directory",vda:"image/x-tga",vhd:"text/x-vhdl",vhdl:"text/x-vhdl",viv:"video/vivo",vivo:"video/vivo",vlc:"audio/x-mpegurl",vob:"video/mpeg",voc:"audio/x-voc",vor:"application/vndstardivisionwriter",vst:"image/x-tga",wav:"audio/x-wav",wax:"audio/x-ms-asx",wb1:"application/x-quattropro",wb2:"application/x-quattropro",wb3:"application/x-quattropro",wbmp:"image/vndwapwbmp",wcm:"application/vndms-works",wdb:"application/vndms-works",webm:"video/webm",wk1:"application/vndlotus-1-2-3",wk3:"application/vndlotus-1-2-3",wk4:"application/vndlotus-1-2-3",wks:"application/vndms-works",wma:"audio/x-ms-wma",wmf:"image/x-wmf",wml:"text/vndwapwml",wmls:"text/vndwapwmlscript",wmv:"video/x-ms-wmv",wmx:"audio/x-ms-asx",wp:"application/vndwordperfect",wp4:"application/vndwordperfect",wp5:"application/vndwordperfect",wp6:"application/vndwordperfect",wpd:"application/vndwordperfect",wpg:"application/x-wpg",wpl:"application/vndms-wpl",wpp:"application/vndwordperfect",wps:"application/vndms-works",wri:"application/x-mswrite",wrl:"model/vrml",wv:"audio/x-wavpack",wvc:"audio/x-wavpack-correction",wvp:"audio/x-wavpack",wvx:"audio/x-ms-asx",x3f:"image/x-sigma-x3f",xac:"application/x-gnucash",xbel:"application/x-xbel",xbl:"application/xml",xbm:"image/x-xbitmap",xcf:"image/x-xcf",xcfbz2:"image/x-compressed-xcf",xcfgz:"image/x-compressed-xcf",xhtml:"application/xhtml+xml",xi:"audio/x-xi",xla:"application/vndms-excel",xlc:"application/vndms-excel",xld:"application/vndms-excel",xlf:"application/x-xliff",xliff:"application/x-xliff",xll:"application/vndms-excel",xlm:"application/vndms-excel",xls:"application/vndms-excel",xlsm:"application/vndopenxmlformats-officedocumentspreadsheetmlsheet",xlsx:"application/vndopenxmlformats-officedocumentspreadsheetmlsheet",xlt:"application/vndms-excel",xlw:"application/vndms-excel",xm:"audio/x-xm",xmf:"audio/x-xmf",xmi:"text/x-xmi",xml:"application/xml",xpm:"image/x-xpixmap",xps:"application/vndms-xpsdocument",xsl:"application/xml",xslfo:"text/x-xslfo",xslt:"application/xml",xspf:"application/xspf+xml",xul:"application/vndmozillaxul+xml",xwd:"image/x-xwindowdump",xyz:"chemical/x-pdb",xz:"application/x-xz",w2p:"application/w2p",z:"application/x-compress",zabw:"application/x-abiword",zip:"application/zip"}},3294:function(i,d,e){"use strict";e.d(d,{Z:function(){return o}});const t={PROXY_SERVER:"https://pre-data.educoder.net",API_SERVER:"",REPORT_SERVER:"http://192.168.1.57:3001",IMG_SERVER:"https://new-testali-cdn.educoder.net",FORGE:"https://code.educoder.net/",SSH_SERVER:"wss://webssh.educoder.net",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",TERMINAL_URL:"testsvc1.vnc.educoder.net",QQLoginCB:encodeURIComponent("https://test-newweb.educoder.net")};var r=null,o={local:{API_SERVER:"http://localhost:3000",IMG_SERVER:"https://testali-cdn.educoder.net/",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"https://test-oldweb.educoder.net/",SSH_SERVER:"wss://pre-webssh.educoder.net",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",QQLoginCB:encodeURIComponent("https://test-newweb.educoder.net")},dev:t,newReactTest:{API_SERVER:(()=>{let s;switch(location.host){case"test4.educoder.net":s="https://test4-data.educoder.net";break;case"test3.educoder.net":s="https://test3-data.educoder.net";break;case"test2.educoder.net":s="https://test2-data.educoder.net";break;default:s="https://test-data.educoder.net";break}return s})(),SSH_SERVER:"wss://pre-webssh.educoder.net",SSH_Slice:"https://testfu.educoder.net",IMG_SERVER:(()=>{let s="https://new-testali-cdn.educoder.net";const u=location.host;return u==="test3.educoder.net"&&(s="https://test3-data.educoder.net"),u==="test4.educoder.net"&&(s="https://test4-data.educoder.net"),s})(),OFFICE_SERVER:"https://testoffice.educoder.net",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"https://test-oldweb.educoder.net/",QQLoginCB:encodeURIComponent("https://test-data.educoder.net"),TERMINAL_URL:"testsvc1.vnc.educoder.net"},preNewBuild:{API_SERVER:(()=>{let s="https://pre-data.educoder.net";return location.host==="pre2.educoder.net"&&(s="https://pre-data2.educoder.net"),s})(),IMG_SERVER:"https://preali-cdn.educoder.net",SSH_SERVER:"wss://pre-webssh.educoder.net",SSH_Slice:"https://testfu.educoder.net",REPORT_SERVER:"http://192.168.1.57:3001",OFFICE_SERVER:"https://testoffice.educoder.net",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",FORGE:"https://forge.educoder.net/",QQLoginCB:encodeURIComponent("https://pre.educoder.net")},newBuild:{API_SERVER:(()=>{let s="https://data.educoder.net";return document.domain==="kepukehuan.educoder.net"?s="https://kepukehuan-data.educoder.net":(document.domain==="www.tokcoder.com"||document.domain==="tokcoder.com")&&(s="https://data.tokcoder.com"),s})(),SSH_SERVER:"wss://webssh.educoder.net",REPORT_SERVER:"http://192.168.1.57:3001",SSH_Slice:"https://fu.educoder.net",IMG_SERVER:"https://ali-cdn.educoder.net",OFFICE_SERVER:"https://officeserver.educoder.net",ONLYOFFICE:"https://office.educoder.net",OFFICE_IP:"https://officedata.educoder.net",FORGE:"https://code.educoder.net/",QQLoginCB:encodeURIComponent("https://www.educoder.net"),TERMINAL_URL:".jupyter.educoder.net"},newTest:{API_SERVER:"https://test-data.educoder.net",IMG_SERVER:"https://test-data.educoder.net",REPORT_SERVER:"http://192.168.1.57:3001",SSH_SERVER:"wss://pre-webssh.educoder.net",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",FORGE:"http://test-oldweb.educoder.net/",QQLoginCB:encodeURIComponent("https://test-data.educoder.net")},test:{API_SERVER:"",IMG_SERVER:"",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"http://test-oldweb.educoder.net/",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",SSH_SERVER:"wss://pre-webssh.educoder.net",QQLoginCB:encodeURIComponent("https://test-newweb.educoder.net")},preBuild:{API_SERVER:"",IMG_SERVER:"https://preali-cdn.educoder.net",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"https://forge.educoder.net/",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",SSH_SERVER:"wss://pre-webssh.educoder.net",QQLoginCB:encodeURIComponent("https://test-newweb.educoder.net")},newWeb:{API_SERVER:"https://test-newweb.educoder.net",IMG_SERVER:"https://test-newweb.educoder.net/",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"http://test-oldweb.educoder.net/",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",SSH_SERVER:"wss://pre-webssh.educoder.net",QQLoginCB:encodeURIComponent("https://test-newweb.educoder.net")},build:{API_SERVER:"",IMG_SERVER:"",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"https://forge.educoder.net/",SSH_SERVER:"wss://webssh.educoder.net",SSH_Slice:"https://fu.educoder.net",OFFICE_SERVER:"https://officeserver.educoder.net",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"https://officedata.educoder.net",QQLoginCB:encodeURIComponent("https://www.educoder.net"),TERMINAL_URL:".jupyter.educoder.net"}}[window.ENV||"dev"]},99064:function(i,d,e){"use strict";e.d(d,{IV:function(){return K},U2:function(){return G},ZP:function(){return N},d4:function(){return J},gz:function(){return Z},rz:function(){return z},v_:function(){return Q}});var t=e(3294),r=e(28909),n=e(43418),o=e(8591),s=e(85582),u=e.n(s),c=e(59301),a=e(89070),f=e(955),g=Object.defineProperty,p=Object.defineProperties,b=Object.getOwnPropertyDescriptors,h=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable,A=(M,B,H)=>B in M?g(M,B,{enumerable:!0,configurable:!0,writable:!0,value:H}):M[B]=H,I=(M,B)=>{for(var H in B||(B={}))E.call(B,H)&&A(M,H,B[H]);if(h)for(var H of h(B))P.call(B,H)&&A(M,H,B[H]);return M},C=(M,B)=>p(M,b(B)),O=(M,B,H)=>new Promise((ee,ae)=>{var le=He=>{try{ve(H.next(He))}catch(ze){ae(ze)}},pe=He=>{try{ve(H.throw(He))}catch(ze){ae(ze)}},ve=He=>He.done?ee(He.value):Promise.resolve(He.value).then(le,pe);ve((H=H.apply(M,B)).next())});let T;const D={200:"\u670D\u52A1\u5668\u6210\u529F\u8FD4\u56DE\u8BF7\u6C42\u7684\u6570\u636E\u3002",201:"\u65B0\u5EFA\u6216\u4FEE\u6539\u6570\u636E\u6210\u529F\u3002",202:"\u4E00\u4E2A\u8BF7\u6C42\u5DF2\u7ECF\u8FDB\u5165\u540E\u53F0\u6392\u961F\uFF08\u5F02\u6B65\u4EFB\u52A1\uFF09\u3002",204:"\u5220\u9664\u6570\u636E\u6210\u529F\u3002",400:"\u53D1\u51FA\u7684\u8BF7\u6C42\u6709\u9519\u8BEF\uFF0C\u670D\u52A1\u5668\u6CA1\u6709\u8FDB\u884C\u65B0\u5EFA\u6216\u4FEE\u6539\u6570\u636E\u7684\u64CD\u4F5C\u3002",401:"\u7528\u6237\u6CA1\u6709\u6743\u9650\uFF08\u4EE4\u724C\u3001\u7528\u6237\u540D\u3001\u5BC6\u7801\u9519\u8BEF\uFF09\u3002",403:"\u7528\u6237\u5F97\u5230\u6388\u6743\uFF0C\u4F46\u662F\u8BBF\u95EE\u662F\u88AB\u7981\u6B62\u7684\u3002",404:"\u53D1\u51FA\u7684\u8BF7\u6C42\u9488\u5BF9\u7684\u662F\u4E0D\u5B58\u5728\u7684\u8BB0\u5F55\uFF0C\u670D\u52A1\u5668\u6CA1\u6709\u8FDB\u884C\u64CD\u4F5C\u3002",406:"\u8BF7\u6C42\u7684\u683C\u5F0F\u4E0D\u53EF\u5F97\u3002",410:"\u8BF7\u6C42\u7684\u8D44\u6E90\u88AB\u6C38\u4E45\u5220\u9664\uFF0C\u4E14\u4E0D\u4F1A\u518D\u5F97\u5230\u7684\u3002",422:"\u5F53\u521B\u5EFA\u4E00\u4E2A\u5BF9\u8C61\u65F6\uFF0C\u53D1\u751F\u4E00\u4E2A\u9A8C\u8BC1\u9519\u8BEF\u3002",500:"\u670D\u52A1\u5668\u53D1\u751F\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u670D\u52A1\u5668\u3002",502:"\u7F51\u5173\u9519\u8BEF\u3002",503:"\u670D\u52A1\u4E0D\u53EF\u7528\uFF0C\u670D\u52A1\u5668\u6682\u65F6\u8FC7\u8F7D\u6216\u7EF4\u62A4\u3002",504:"\u7F51\u5173\u8D85\u65F6\u3002"},k=M=>{try{typeof M=="string"&&(M=JSON.parse(M));const B=/\(\s+\/api\/attachments\/(\d+)|\(\/api\/attachments\/(\d+)\//g,H=/\"\/api\/attachments\/(\d+)\//g,ee=/\(\s+\/files\/uploads\/(\d+)|\"\/files\/uploads\/(\d+)\//g,ae=/\/api\/attachments\/(\d+)/g,le=/\/attachments\/download\/(\d+)/g;return JSON.stringify(M).replace(ae,(ve,He,ze,rt)=>{const ot=He||ze||rt;return"/api/attachments/"+(0,f.Jn)(ot)}).replace(le,(ve,He,ze)=>{const rt=He||ze;return"/attachments/download/"+(0,f.Jn)(rt)}).replace(B,(ve,He,ze,rt)=>{const ot=He||ze||rt;return"(/api/attachments/"+(0,f.Jn)(ot)}).replace(H,(ve,He,ze)=>{const rt=He||ze;return'"/api/attachments/'+(0,f.Jn)(rt)}).replace(ee,(ve,He,ze)=>{const rt=He||ze;return"(/files/uploads/"+(0,f.Jn)(rt)}).replace(/\r\n/g,` `)}catch(B){return null}},$=(M,B)=>O(void 0,null,function*(){if(M.status>=200&&M.status<300)return M;const H=D[M.status]||M.statusText;let ee;var ae=M.json();yield ae.then((pe,ve)=>{setTimeout(()=>{let He=(0,a.getDvaApp)()},400),ee=pe.message,window.showNetworkErrorTip(pe.message||`\u8BF7\u6C42\u9519\u8BEF ${M.status}: ${M.message}`),r.Z.error({style:{wordBreak:"break-all"},message:pe.message||`\u8BF7\u6C42\u9519\u8BEF ${M.status}: ${M.message}`,description:pe.message?"":H})});const le=new Error(H);throw le.name=M.status,le.response=M,{data:M,code:M.status,message:ee||H}}),L=(M,B)=>{const H=M.headers.get("Content-Type");return H&&H.match(/application\/json/i)&&M.clone().text().then(()=>{}),M};function R(M){try{return decodeURIComponent(M),decodeURIComponent(encodeURIComponent(M))===M}catch(B){return!1}}const z=M=>{M=M||{};let B="";for(let H in M)typeof M[H]=="object"?Array.isArray(M[H])&&M[H].forEach((ee,ae)=>{B+="&"+H+"[]="+ee}):M[H]!==void 0&&(B+="&"+H+"="+(R(M[H])?M[H]:encodeURIComponent(M[H])));return B.substr(1)};function N(M,B,H,ee){B.method||(B.method="get"),B.method=B.method.toUpperCase(),B.mode="cors";const ae=I({},B),{user:le}=(0,a.getDvaApp)()._store.getState(),{userInfo:pe}=le,ve=M+(ae.body?JSON.stringify(ae.body):""),He=u().sha256().update(ve).digest("hex"),ze={credentials:"include",withCredentials:!0},rt={};pe!=null&&pe.login&&(rt.zzud=pe==null?void 0:pe.login,pe!=null&&pe.school_id&&(rt.zzsud=pe==null?void 0:pe.school_id),ae.params=I(I({},ae.params||{}),rt));let ot=I(I({},ze),JSON.parse(JSON.stringify(ae)));(ot.method==="POST"||ot.method==="PUT"||ot.method==="PATCH"||ot.method==="DELETE")&&(H?(ot.headers=C(I({},ot.headers),{"Pc-Authorization":(0,f.ej)("_educoder_session")}),ot.body=ae.body):(ot.headers=I({Accept:"application/json","Content-Type":"application/json; charset=utf-8","Pc-Authorization":(0,f.ej)("_educoder_session")},ot.headers),ot.body=JSON.stringify(ae.body))),ot.method=="GET"?(ot.headers=C(I({Accept:"application/json","Content-Type":"application/json; charset=utf-8"},ot.headers),{"Pc-Authorization":(0,f.ej)("_educoder_session")}),ae.params&&z(ae.params)&&(M+="?"+z(ae.params))):rt.zzud&&(M+="?"+z(I({},rt)));const yt=ae.expirys&&60;let St;(tt=>{tt.json="application/json;charset=UTF-8",tt.form="application/x-www-form-urlencoded; charset=UTF-8"})(St||(St={}));let ge;(tt=>{tt.get="GET",tt.post="POST"})(ge||(ge={}));const Be=tt=>O(this,null,function*(){const Tt=yield tt.arrayBuffer();let Pt;const je=new Blob([Tt]);try{Pt=tt.headers.get("Content-Disposition").split(";")[1].replace("filename=","").replace(/[\s+,\',\",\‘,\’,\“,\”,\<,\>,\《,\》]/g,"")}catch(Re){Pt="userfiles.zip"}const xe=document.createElement("a"),Ce=window.URL.createObjectURL(je),Le=Pt;return xe.href=Ce,xe.download=Le,xe.click(),window.URL.revokeObjectURL(Ce),Tt});let Xe=t.Z.API_SERVER;return(window.ENV==="dev"||M.startsWith("http"))&&(Xe=""),ot.method=="GET"&&ot.params&&Object.keys(ot.params).map(tt=>{if(ot.params[tt]&&!Array.isArray(ot.params[tt]))try{ot.params[tt]=encodeURIComponent(decodeURIComponent(ot.params[tt]))}catch(Tt){ot.params[tt]=encodeURIComponent(ot.params[tt])}}),(0,f.Ec)(ot,M),ee&&(Xe=""),fetch(Xe+M,ot).then(tt=>$(tt,I({url:t.Z.API_SERVER+M},ot))).then(tt=>L(tt,He)).then(tt=>O(this,null,function*(){var Tt,Pt,je,xe;try{const Le=tt.headers.get("cs");Le&&(0,f.d8)("_educoder_session",Le,1)}catch(Le){}if(tt.status===204)return tt.text();let Ce;if(tt.headers.get("content-type").indexOf("application/json")>-1){Ce=yield tt.json();try{Ce=JSON.parse(k(Ce))}catch(Le){}}else ot.headers["Content-Type"]==="application/xml"?Ce=yield tt.text():(Tt=ae.body)!=null&&Tt.autoDownload||(Pt=ae.params)!=null&&Pt.autoDownload?Ce=yield Be(tt):Ce=yield tt.arrayBuffer();try{Ce.status===401&&(!((je=ot.params)!=null&&je.hidePopLogin)||!((xe=ot.body)!=null&&xe.hidePopLogin))&&(0,a.getDvaApp)()._store.dispatch({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),Ce.status===402&&(localStorage.getItem("addinfo")==="2"?(0,a.getDvaApp)()._store.dispatch({type:"shixunHomeworks/setActionTabs",payload:{key:"\u586B\u5145\u4FE1\u606F\u5F39\u7A97"}}):(T=T||n.default.confirm({visible:!1,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88"}),T.update({centered:!0,visible:!0,title:"\u63D0\u793A",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:()=>{a.history.push("/account/profile/edit")}})))}catch(Le){console.log("fetcherr",Le)}return Y(Ce,M),Ce})).catch(tt=>{try{const Tt=tt.code;if(tt instanceof TypeError&&window.showNetworkErrorTip(`${M}${tt.message}`),Tt){if(Tt===401){(0,a.getDvaApp)()._store.dispatch({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}});return}Y(tt,M)}else M.includes("/file/filePatchMerge")?(0,a.getDvaApp)()._store.dispatch({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5206\u7247\u4E13\u7528504",params:ot.body}}):tt.message!=="403"&&window.showNetworkErrorTip(`${M}${tt.message}`);return tt}catch(Tt){}})}let V=!1,j=!1;const Y=(M,B)=>{var H,ee,ae;if(M.status==-6&&!j){j=!0,(0,f.d8)("_educoder_session","logout",1),(0,f.m5)(),setTimeout(()=>j=!1,500),n.default.info({title:"\u7CFB\u7EDF\u901A\u77E5",content:M.message,okText:"\u77E5\u9053\u4E86",maskStyle:{background:"#000"},onOk:()=>{window.location.reload()}});return}if(M.status==-7){j=!0,setTimeout(()=>j=!1,500);let pe="";(H=M==null?void 0:M.data)!=null&&H.exercise_list&&((ae=(ee=M==null?void 0:M.data)==null?void 0:ee.exercise_list)==null||ae.map(ve=>{pe+=`\u300A${ve.exercise_name}\u300B`})),n.default.info({title:"\u63D0\u793A",content:c.createElement("div",{id:"fetchStatus7",className:"fetchStatus7"},""),maskClosable:!1,closeIcon:!1,width:550,maskStyle:{background:"#000"},okText:"\u8FD4\u56DE\u9996\u9875",onOk:()=>{window.location.href="/"}}),setTimeout(()=>{document.getElementById("fetchStatus7").innerHTML=`
                \u60A8\u5F53\u524D\u6709\u6B63\u5728\u8FDB\u884C\u7684\u8003\u8BD5 ${pe} \uFF0C\u8BF7\u5728\u8003\u8BD5\u7ED3\u675F\u540E\u8BBF\u95EE\u8BE5\u9875\u9762
                `},500);return}if((M.status==-1||M.status==-2||M.status==-102||M.status>400)&&M.status!=403&&!j){j=!0,setTimeout(()=>j=!1,500),o.ZP.warning({content:M.message,key:"message-key"});return}const le={403:"/403",404:"/404",500:"/500"};if(le[M.status]&&!V){const{user:pe}=(0,a.getDvaApp)()._store.getState(),{userInfo:ve}=pe;throw window.location.pathname.indexOf("/users")>-1&&document.domain==="kepukehuan.educoder.net"&&(V=!0),setTimeout(()=>V=!1,500),sessionStorage.setItem("errorStatus",JSON.stringify(M)),Object.values(le).includes(window.location.pathname)?console.log("\u5F53\u524D\u8DEF\u5F84\u5B58\u5728\u4E8E mapping \u4E2D, \u4E0D\u518D\u6267\u884C\u8DF3\u8F6C"):location.replace(le[M.status]),new Error("403")}};function G(M,B){return N(`/api/${M}`,{method:"Get",params:B||{}})}function J(M,B){return N(`/${M}`,{method:"Get",params:B})}function Q(M,B){return N(`/api/${M}`,{method:"Post",body:I({},B)})}function Z(M,B){return N(`/api/${M}`,{method:"Put",body:I({},B)})}function K(M,B){return N(`/api/${M}`,{method:"delete",body:I({},B||{})})}},64892:function(i,d,e){"use strict";e.d(d,{Bn:function(){return n},hw:function(){return r},mi:function(){return t}});const t="WlRsa1pEVmlORE15TW1ZNVpqZGtPRE5rTURBNVpHVTVZbVpoTVRBd1l6TT0=",r="TW1VelpHRXdObUZsTWpaaVlUbG1OelpoTldRNFpETTFOVGMwTm1ZeVptVT0=",n="T1RkaE1XWTRaalJoTUdaaE9HUmxaR016T0RGa05XTTNPRFkwTkdJeVpUQT0="},955:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{AS:function(){return vtrsKey},BO:function(){return NewAntdDisabledDate},BR:function(){return aiReviewConfigformatChecks},Br:function(){return getBlob},DH:function(){return timego},Dk:function(){return setDocumentTitle},Dw:function(){return onPreviewImage},EJ:function(){return HighLightedContent},EM:function(){return toChineseNumber},EN:function(){return preciseCalculation},Ec:function(){return setHeader},FH:function(){return downLoadFile},G5:function(){return sendAppStatus},G7:function(){return handleValidatorNickName},HJ:function(){return handleValidatorName},I9:function(){return RomanNumber},IS:function(){return isWechatBrowser},Il:function(){return setThreeComponent},JL:function(){return formatHomeWorkStatusToName},Jn:function(){return getImageUrl},L4:function(){return PollsStatus},L9:function(){return trackEvent},LR:function(){return download},Ll:function(){return checkIsClientExam},M:function(){return setmiyah},M2:function(){return randomArray},NY:function(){return setUrlQuery},Nd:function(){return downLoadLink},Oo:function(){return getCategoryName},Or:function(){return toWechatLogin},PF:function(){return formatRandomPaperDatas},Pq:function(){return cutName},Q8:function(){return disabledDate},QB:function(){return timeContrast},QE:function(){return releaseRuleDataAdjust},QH:function(){return downLoadFileIframe},Qq:function(){return JudgeSort},RD:function(){return bytesToSize},RG:function(){return copyTextFuc},Sp:function(){return rangeNumber},Sv:function(){return downloadFile},Tv:function(){return ImgSrcConvert},U6:function(){return HalfPastOne},UQ:function(){return HomeWorkDetailStatus},Uw:function(){return CommonWorkStatus},VV:function(){return StatusClassroomsTags},Vf:function(){return domScrollToTop},W:function(){return isUnOrNull},WX:function(){return isLocalApp},Y:function(){return HomeWorkCommonDetailStatus},YA:function(){return getHiddenName},ZJ:function(){return toDataUrl},ZR:function(){return GetElementHeight},_g:function(){return getMessagesUrl},_m:function(){return isKepuKehuan},ad:function(){return formatRandomPaperData},b9:function(){return isPc},cX:function(){return localSort},d0:function(){return disabledTime},d8:function(){return setCookie},db:function(){return getFileContentAndUrl},eF:function(){return bindPhone},eR:function(){return validateLength},ej:function(){return getCookie},en:function(){return parseUrl},fX:function(){return buildTree},hi:function(){return getExamRestrictionInfo},hv:function(){return NewAntdDisabledTime},i7:function(){return isChrome},j1:function(){return StatusGraduationProjectTags},jh:function(){return educationList},ju:function(){return ExerciseStatus},jz:function(){return replaceParamVal},k3:function(){return scrollToTop},kk:function(){return pointerEvents},lC:function(){return HomeWorkListStatus},lF:function(){return toWNumber},li:function(){return toTimeFormat},m5:function(){return clearAllCookies},nr:function(){return startExercise},oP:function(){return getJsonFromUrl},oV:function(){return ZimuSort},og:function(){return formatRate},oi:function(){return checkLocalOrPublicIp},pE:function(){return addJumping},pp:function(){return findEndWhitespace},qZ:function(){return arrTrans},qd:function(){return DayHalfPastOne},rK:function(){return HomeWorkShixunListStatus},rU:function(){return showTotal},rz:function(){return moveArray},s2:function(){return isMobileDevice},tP:function(){return cutFileName},tw:function(){return getTwoDecimalPlaces},uD:function(){return dealUploadChange},vA:function(){return HomeWorkShixunDetailStatus},vB:function(){return exerciseTips},xg:function(){return openNewWindow},y3:function(){return getBase64},yC:function(){return compareVersion}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(59301),_utils_authority__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(24065),antd__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(8591),antd__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(43418),antd__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(95237),antd__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(43604),_components_Exercise_ip__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(16209),_service_exercise__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(94941),_contentType__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(33466),umi__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(89070),md5__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(93735),md5__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(md5__WEBPACK_IMPORTED_MODULE_6__),_env__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(3294),_components_mediator__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(34604),crypto_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(28209),crypto_js__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(crypto_js__WEBPACK_IMPORTED_MODULE_9__),_key__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(64892),moment__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(61186),moment__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_10__),dayjs_plugin_customParseFormat__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(33656),dayjs_plugin_customParseFormat__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(dayjs_plugin_customParseFormat__WEBPACK_IMPORTED_MODULE_11__),__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(i,d,e)=>d in i?__defProp(i,d,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[d]=e,__spreadValues=(i,d)=>{for(var e in d||(d={}))__hasOwnProp.call(d,e)&&__defNormalProp(i,e,d[e]);if(__getOwnPropSymbols)for(var e of __getOwnPropSymbols(d))__propIsEnum.call(d,e)&&__defNormalProp(i,e,d[e]);return i},__spreadProps=(i,d)=>__defProps(i,__getOwnPropDescs(d)),__async=(i,d,e)=>new Promise((t,r)=>{var n=u=>{try{s(e.next(u))}catch(c){r(c)}},o=u=>{try{s(e.throw(u))}catch(c){r(c)}},s=u=>u.done?t(u.value):Promise.resolve(u.value).then(n,o);s((e=e.apply(i,d)).next())}),_a,_b;moment__WEBPACK_IMPORTED_MODULE_10___default().extend(dayjs_plugin_customParseFormat__WEBPACK_IMPORTED_MODULE_11___default());const GetElementHeight=(i,d="px",e,t=!1)=>{if(!i)return 0;const r=t?i.scrollHeight:i.offsetHeight;if(d==="rem"){const n=e?`${e}`:getComputedStyle(document.documentElement).fontSize,o=parseFloat(n);return r/o}return r},HighLightedContent=(i,d=[],e="#2EC25B")=>(typeof d=="string"&&(d=[d]),i.replace(new RegExp(`(${d.join("|")})`,"gi"),`$1`)),parseParams=i=>{i=i||{};let d="";for(let e in i)typeof i[e]=="object"?Array.isArray(i[e])&&i[e].forEach((t,r)=>{d+="&"+e+"[]="+t}):i[e]!==void 0&&(d+="&"+e+"="+i[e]);return d.substr(1)},getKey=i=>window.atob(window.atob(i));function bytesToSize(i){var d=["Bytes","KB","MB","GB","TB"];if(i==0)return"0 Byte";var e=parseInt(""+Math.floor(Math.log(i)/Math.log(1024)),10);return(i/Math.pow(1024,e)).toFixed(1)+" "+d[e]}const getTwoDecimalPlaces=i=>Math.round(Math.round(i*1e5)/1e3*100)/100,NewAntdDisabledDate=(i,d=null)=>{const e=imoment__WEBPACK_IMPORTED_MODULE_10___default()(d==null?void 0:d.endTime).endOf("day"),r=i{const e=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()(i).format("HH")),t=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()(i).format("mm")),r=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()().format("HH")),n=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()().format("mm")),o=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()().format("ss"));function s(u,c){const a=[];for(let f=u;fs(0,r),disabledMinutes:()=>s(0,n)};if(d!=null&&d.compared){const u=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()(d==null?void 0:d.compared).format("HH")),c=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()(d==null?void 0:d.compared).format("mm")),a=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()(d==null?void 0:d.compared).format("ss"));return moment__WEBPACK_IMPORTED_MODULE_10___default()(i).isSame(moment__WEBPACK_IMPORTED_MODULE_10___default()(d==null?void 0:d.compared),"day")?{disabledHours:()=>s(0,u),disabledMinutes:()=>e<=u?s(0,c):[]}:void 0}if(moment__WEBPACK_IMPORTED_MODULE_10___default()(i).isSame(moment__WEBPACK_IMPORTED_MODULE_10___default()(),"day"))return{disabledHours:()=>s(0,r),disabledMinutes:()=>moment__WEBPACK_IMPORTED_MODULE_10___default()(i).isSame(moment__WEBPACK_IMPORTED_MODULE_10___default()(),"hour")&&e<=r?s(0,n):[]}},disabledDate=(i,d,e,t)=>{t=typeof t=="string"?moment__WEBPACK_IMPORTED_MODULE_10___default()(t):t;const r=t?i<(t==null?void 0:t.startOf("day")):imoment__WEBPACK_IMPORTED_MODULE_10___default()(d).endOf("day"),o=i{const e=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()(i).format("HH")),t=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()().format("HH")),r=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()().format("mm"));function n(o,s){const u=[];for(let c=o;cn(0,t),disabledMinutes:()=>n(0,r)};if(d){const o=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()(d).format("HH")),s=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()(d).format("mm"));return moment__WEBPACK_IMPORTED_MODULE_10___default()(i).isSame(moment__WEBPACK_IMPORTED_MODULE_10___default()(d),"day")?{disabledHours:()=>n(0,o),disabledMinutes:()=>e<=o?n(0,s):[]}:void 0}if(moment__WEBPACK_IMPORTED_MODULE_10___default()(i).isSame(moment__WEBPACK_IMPORTED_MODULE_10___default()(),"day"))return{disabledHours:()=>n(0,t),disabledMinutes:()=>moment__WEBPACK_IMPORTED_MODULE_10___default()(i).isSame(moment__WEBPACK_IMPORTED_MODULE_10___default()(),"hour")&&e<=t?n(0,r):[]}},preciseCalculation=(i,d,e)=>{typeof i=="string"&&(i=Number(i)),typeof d=="string"&&(d=Number(d));const t=(i.toString().split(".")[1]||"").length,r=(d.toString().split(".")[1]||"").length,n=Math.max(t,r),o=Math.pow(10,n);return(()=>{switch(e){case"+":return(Math.round(i*o)+Math.round(d*o))/o;case"-":return(Math.round(i*o)-Math.round(d*o))/o;case"*":return Math.round(i*o)*Math.round(d*o)/(o*o);case"/":return Math.round(i*o)/Math.round(d*o);default:throw new Error("\u4E0D\u652F\u6301\u7684\u8FD0\u7B97\u7B26\u53F7")}})()},toWNumber=i=>i/1e4>1?react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,Math.round(i/1e4*100)/100,react__WEBPACK_IMPORTED_MODULE_0__.createElement("i",{className:"font12"},"w")):i,toChineseNumber=i=>{const d=i.toString().replace(/(?=(\d{4})+$)/g,",").split(",").filter(Boolean),e=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],t=["","\u5341","\u767E","\u5343"],r=["","\u4E07","\u4EBF"],n=s=>{let u="";for(let c=0;c{const t=i.splice(d,1)[0];return i.splice(e,0,t),i},ZimuSort=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],JudgeSort=["\u6B63\u786E","\u9519\u8BEF"],RomanNumber=["I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII","XIII","XIV","XV","XVI","XVII","XVIII","XIX","XX"],findEndWhitespace=i=>{if(!i)return"";const d=i.replace(/(?:\r\n|\n)/g,`\x1B[41m\x1B[37m\u21B5\x1B[0m\r `).replace(/ +$/g,"\x1B[41m \x1B[0m");return console.debug("str:",d,JSON.stringify(i)),d},StatusTags=i=>{const d={\u5DF2\u622A\u6B62:{class:"tag-style bg-pink ml10"},\u63D0\u4EA4\u4E2D:{class:"tag-style bg-blue ml10"},\u8FDB\u884C\u4E2D:{class:"tag-style bg-blue ml10"},\u672A\u53D1\u5E03:{class:"tag-style bgB8B8B8 ml10"},\u8865\u4EA4\u4E2D:{class:"tag-style bg-blue ml10"},\u96C6\u4E2D\u9605\u5377:{class:"tag-style bg-light-orangess ml10soft"}};return i.data&&i.data.map(function(e,t){return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{key:t,className:d[e]&&d[e].class},e)})},formatHomeWorkStatusToName=i=>({[-1]:"\u91CD\u505A\u4E2D",0:"\u672A\u5F00\u542F",1:"\u672A\u901A\u5173",2:"\u6309\u65F6\u901A\u5173"})[i]||"\u8FDF\u4EA4\u901A\u5173",HomeWorkListStatus=i=>{var d,e;const t={[-1]:{name:"\u91CD\u505A\u4E2D",class:"c-orange"},0:{name:"\u672A\u5F00\u542F",class:"c-black"},1:{name:"\u672A\u901A\u5173",class:"c-red"},2:{name:"\u6309\u65F6\u901A\u5173",class:"c-green"},3:{name:"\u8865\u4EA4\u901A\u5173",class:"c-orange"},4:{name:"\u622A\u6B62\u901A\u5173",class:"c-red"}};return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:(d=t==null?void 0:t[i.status])==null?void 0:d.class},(e=t==null?void 0:t[i.status])==null?void 0:e.name)},HomeWorkShixunListStatus=i=>{var d,e;const t={[-1]:{name:"\u91CD\u505A\u4E2D",class:"c-orange"},0:{name:"\u672A\u5F00\u542F",class:"c-black"},1:{name:"\u672A\u901A\u5173",class:"c-red"},2:{name:"\u6309\u65F6\u901A\u5173",class:"c-green"},3:{name:"\u8865\u4EA4\u901A\u5173",class:"c-orange"},4:{name:"\u622A\u6B62\u540E\u901A\u5173",class:"c-red"}};return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:(d=t==null?void 0:t[i.status])==null?void 0:d.class},(e=t==null?void 0:t[i.status])==null?void 0:e.name)},HomeWorkDetailStatus=i=>{var d,e;const t={[-1]:{name:"\u91CD\u505A\u4E2D",class:"c-orange",color:"#999999"},0:{name:"\u672A\u5F00\u542F",class:"c-black",color:"#999999"},1:{name:"\u672A\u901A\u5173",class:"c-red",color:"#d4443d"},2:{name:"\u6309\u65F6\u901A\u5173",class:"c-green",color:"#57be40"},3:{name:"\u8865\u4EA4\u901A\u5173",class:"c-orange",color:"#f09143"},4:{name:"\u622A\u6B62\u901A\u5173",class:"c-red",color:"#d4443d"}};return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{marginLeft:"10px",color:"#fff",background:(d=t==null?void 0:t[i.status])==null?void 0:d.color,borderRadius:"20px",width:"65px",height:"18px",justifyContent:"center",display:"inline-flex",lineHeight:"18px"}},(e=t==null?void 0:t[i.status])==null?void 0:e.name)},HomeWorkShixunDetailStatus=i=>{var d,e;const t={[-1]:{name:"\u91CD\u505A\u4E2D",class:"c-orange",color:"#999999"},0:{name:"\u672A\u5F00\u542F",class:"c-black",color:"#999999"},1:{name:"\u672A\u901A\u5173",class:"c-red",color:"#d4443d"},2:{name:"\u6309\u65F6\u901A\u5173",class:"c-green",color:"#57be40"},3:{name:"\u8865\u4EA4\u901A\u5173",class:"c-orange",color:"#f09143"},4:{name:"\u622A\u6B62\u540E\u901A\u5173",class:"c-red",color:"#d4443d"},5:{name:"\u622A\u6B62\u540E\u8BC4\u6D4B",class:"c-red",color:"#d4443d"}};return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{marginLeft:"10px",color:"#fff",background:(d=t==null?void 0:t[i.status])==null?void 0:d.color,borderRadius:"20px",padding:"0 8px",height:"18px",justifyContent:"center",display:"inline-flex",lineHeight:"18px"}},(e=t==null?void 0:t[i.status])==null?void 0:e.name)},HomeWorkCommonDetailStatus=i=>{var d,e;const t={[-1]:{name:"\u91CD\u505A\u4E2D",class:"c-black",color:"#999999"},0:{name:"\u672A\u63D0\u4EA4",class:"c-black",color:"#999999"},1:{name:"\u6309\u65F6\u63D0\u4EA4",class:"c-green",color:"#57be40"},2:{name:"\u5EF6\u65F6\u63D0\u4EA4",class:"c-red",color:"#d4443d"}};return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{marginLeft:"10px",color:"#fff",background:(d=t==null?void 0:t[i.status])==null?void 0:d.color,borderRadius:"20px",padding:"0 8px",height:"18px",justifyContent:"center",display:"inline-flex",lineHeight:"18px"}},(e=t==null?void 0:t[i.status])==null?void 0:e.name)},StatusGraduationProjectTags=i=>{const{status:d}=i,e={0:{class:"tag-style bg-blue ml10",name:"\u5F85\u9009\u4E2D"},1:{class:"tag-style bg-blue ml10",name:"\u5F85\u786E\u8BA4"},2:{class:"tag-style bg-pink ml10",name:"\u5DF2\u786E\u8BA4"}};try{return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:e[d].class},e[d].name)}catch(t){console.log("utils.StatusGraduationProjectTags",i.status)}},ExerciseStatus={1:"\u672A\u53D1\u5E03",2:"\u8003\u8BD5\u4E2D",3:"\u5DF2\u622A\u6B62",4:"\u5DF2\u7ED3\u675F",5:"\u96C6\u4E2D\u9605\u5377",99:"\u6A21\u62DF\u8003\u8BD5\u4E2D"},PollsStatus={1:"\u672A\u53D1\u5E03",2:"\u63D0\u4EA4\u4E2D",3:"\u5DF2\u622A\u6B62",4:"\u5DF2\u7ED3\u675F",5:"\u672A\u5F00\u59CB"},StatusClassroomsTags=i=>{let d={\u6A21\u62DF\u8003\u8BD5\u4E2D:{class:"tag-style bg-light-pink ml10"},\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A:{class:"tag-style-fzb ml10 iconfont icon-fangzuobi"},\u516C\u5F00:{class:"tag-style bg-blue ml10"},\u5DF2\u5F00\u542F\u8865\u4EA4:{class:"tag-style bg-green ml10soft"},\u672A\u5F00\u542F\u8865\u4EA4:{class:"tag-style bg-pink ml10soft"},\u672A\u53D1\u5E03:{class:"tag-style bgB8B8B8 ml10soft"},\u672A\u5F00\u59CB:{class:"tag-style bg-c5d6ff ml10soft"},\u533F\u540D\u4F5C\u54C1:{class:"tag-style bg-cyan ml10"},\u5DF2\u9009\u62E9:{class:"tag-style bg-grey-ede ml10"},\u5DF2\u7ED3\u675F:{class:"tag-style bg-grey-ede ml10soft"},\u63D0\u4EA4\u4E2D:{class:"tag-style bg-blue ml10soft"},\u8FDB\u884C\u4E2D:{class:"tag-style bg-blue ml10soft"},\u533F\u8BC4\u4E2D:{class:"tag-style bg-blue ml10"},\u7533\u8BC9\u4E2D:{class:"tag-style bg-blue ml10"},\u8003\u8BD5\u4E2D:{class:"tag-style bg-light-blue ml10"},\u8865\u4EA4\u4E2D:{class:"tag-style bg-blue ml10soft"},\u8BC4\u9605\u4E2D:{class:"tag-style bg-blue ml10"},\u5F85\u9009\u4E2D:{class:"tag-style bg-blue ml10"},\u4EA4\u53C9\u8BC4\u9605\u4E2D:{class:"tag-style bg-light-orange ml10"},\u5DF2\u5F00\u542F\u4EA4\u53C9\u8BC4\u9605:{class:"tag-style bg-lightblue-purple ml10"},\u5F85\u786E\u8BA4:{class:"tag-style bg-lightblue-purple ml10"},\u5F85\u5904\u7406:{class:"tag-style bg-lightblue-purple ml10"},\u79C1\u6709:{class:"tag-style bg-lightblue-purple ml10"},\u672A\u63D0\u4EA4:{class:"tag-style bg-lightblue-purple ml10"},\u5DF2\u786E\u8BA4:{class:"tag-style bg-light-pink ml10"},\u5DF2\u53D1\u5E03:{class:"tag-style bg-light-blue ml10"},\u5DF2\u622A\u6B62:{class:"tag-style bg-light-pink ml10soft"},\u5F00\u53D1\u8BFE\u7A0B:{class:"tag-style bg-orange ml10"},\u5DF2\u5F00\u64AD:{class:"tag-style-border border-green c-green ml10"},\u672A\u5F00\u64AD:{class:"tag-style-border border-light-black ml10"},\u672A\u5F00\u8BFE:{class:"tag-style bg-c5d6ff ml10soft"},\u4E0A\u8BFE\u4E2D:{class:"tag-style bg-blue ml10soft"},\u6309\u65F6\u901A\u5173:{class:"tag-style-border border-light-black ml10"},\u8FDF\u4EA4\u901A\u5173:{class:"tag-style-border border-light-black ml10"},\u672A\u901A\u5173:{class:"tag-style-border border-light-black ml10"},\u672A\u5F00\u542F:{class:"tag-style-border border-light-black ml10"},\u5BFC\u5165:{class:"export ml10"},\u96C6\u4E2D\u9605\u5377:{class:"tag-style bg-light-orangess ml10soft"}};const e={\u672A\u53D1\u5E03:{class:"tag-style bg-C6CED6 ml10soft"},\u672A\u5F00\u59CB:{class:"tag-style bg-C1E2FF ml10soft"},\u8FDB\u884C\u4E2D:{class:"tag-style bg-0152d9 ml10soft"},\u5DF2\u622A\u6B62:{class:"tag-style bg-E53333 ml10soft"},\u63D0\u4EA4\u4E2D:{class:"tag-style bg-0152d9 ml10soft"},\u8865\u4EA4\u4E2D:{class:"tag-style bg-44D7B6 ml10soft"}};i.temporary&&(d=__spreadValues(__spreadValues({},d),e));const t=[];i.is_random&&t.push(react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"tag-style bg-blue ml10"},"\u968F\u673A"));try{i.status&&i.status.map((r,n)=>{t.push(react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:(i==null?void 0:i.style)||[],key:n,className:d[r]&&d[r].class},r))})}catch(r){console.log("utils.status.tag:",r,i.status)}return t},exerciseTips=(i,d)=>{if(i===5||d)return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{backgroundColor:"#f59a23"},className:"tag-style ml5"},"\u96C6\u4E2D\u9605\u5377");if(i===1)return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{backgroundColor:"#B8B8B8"},className:"tag-style ml5"},"\u672A\u5F00\u59CB");if(i===2)return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{backgroundColor:"#007AFF"},className:"tag-style ml5"},"\u8003\u8BD5\u4E2D");if(i===3)return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{backgroundColor:"#FC2D6B"},className:"tag-style ml5"},"\u5DF2\u622A\u6B62");if(i===-1)return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"export ml5"},"\u5BFC\u5165")},WorkStatus=i=>{var d,e;const t={[-1]:{name:"\u91CD\u505A\u4E2D",class:"c-orange"},0:{name:"\u672A\u63D0\u4EA4",class:"c-black"},1:{name:"\u672A\u901A\u5173",class:"c-red"},2:{name:"\u6309\u65F6\u901A\u5173",class:"c-green"},3:{name:"\u8FDF\u4EA4\u901A\u5173",class:"c-orange"}};return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:(d=t[i.status])==null?void 0:d.class},(e=t[i.status])==null?void 0:e.name)},CommonWorkStatus=i=>{var d,e;const t={0:{name:"\u672A\u63D0\u4EA4",class:"c-black"},1:{name:"\u6309\u65F6\u63D0\u4EA4",class:"c-green"},2:{name:"\u5EF6\u65F6\u63D0\u4EA4",class:"c-red"},3:{name:"\u90E8\u5206\u63D0\u4EA4",class:"c-green"},4:{name:`\u6309\u65F6\u63D0\u4EA4${i!=null&&i.lineBreak?` `:""}\uFF08\u6559\u5E08\u63D0\u4EA4\uFF09`,class:"c-green"},5:{name:`\u672A\u63D0\u4EA4${i!=null&&i.lineBreak?` @@ -230,6 +230,6 @@ Add a component higher in the tree to provide a loading \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},78540:function(i,d,e){"use strict";var t=e(65911),r=e(32621),n=e(68151),o=e(16332),s=e(58218),u=e(24538),c=e(44166),a=e(25576),f=e(7825),g=e(73068),p=e(61888),b=e(35454),h=e(16697);i.exports=function(E,P,A,I){var C="stackTraceLimit",O=I?2:1,T=E.split("."),D=T[T.length-1],k=t.apply(null,T);if(k){var $=k.prototype;if(!h&&r($,"cause")&&delete $.cause,!A)return k;var L=t("Error"),R=P(function(z,N){var V=f(I?N:z,void 0),j=I?new k(z):new k;return V!==void 0&&n(j,"message",V),p(j,R,j.stack,2),this&&o($,this)&&a(j,this,R),arguments.length>O&&g(j,arguments[O]),j});if(R.prototype=$,D!=="Error"?s?s(R,L):u(R,L,{name:!0}):b&&C in k&&(c(R,k,C),c(R,k,"prepareStackTrace")),u(R,k),!h)try{$.name!==D&&n($,"name",D),$.constructor=R}catch(z){}return R}}},93074:function(i,d,e){"use strict";var t=e(94488),r=e(65911),n=e(13743),o=e(3338),s=e(78540),u="AggregateError",c=r(u),a=!o(function(){return c([1]).errors[0]!==1})&&o(function(){return c([1],u,{cause:7}).cause!==7});t({global:!0,constructor:!0,arity:2,forced:a},{AggregateError:s(u,function(f){return function(p,b){return n(f,this,arguments)}},a,!0)})},6555:function(i,d,e){"use strict";var t=e(94488),r=e(16332),n=e(53456),o=e(58218),s=e(24538),u=e(20132),c=e(68151),a=e(35012),f=e(73068),g=e(61888),p=e(62003),b=e(7825),h=e(59893),E=h("toStringTag"),P=Error,A=[].push,I=function(T,D){var k=r(C,this),$;o?$=o(new P,k?n(this):C):($=k?this:u(C),c($,E,"Error")),D!==void 0&&c($,"message",b(D)),g($,I,$.stack,1),arguments.length>2&&f($,arguments[2]);var L=[];return p(T,A,{that:L}),c($,"errors",L),$};o?o(I,P):s(I,P,{name:!0});var C=I.prototype=u(P.prototype,{constructor:a(1,I),message:a(1,""),name:a(1,"AggregateError")});t({global:!0,constructor:!0,arity:2},{AggregateError:I})},86357:function(i,d,e){"use strict";e(6555)},89170:function(i,d,e){"use strict";var t=e(94488),r=e(92916),n=e(91669),o=e(51996),s="ArrayBuffer",u=n[s],c=r[s];t({global:!0,constructor:!0,forced:c!==u},{ArrayBuffer:u}),o(s)},71012:function(i,d,e){"use strict";var t=e(94488),r=e(58261),n=r.NATIVE_ARRAY_BUFFER_VIEWS;t({target:"ArrayBuffer",stat:!0,forced:!n},{isView:r.isView})},84203:function(i,d,e){"use strict";var t=e(94488),r=e(34114),n=e(3338),o=e(91669),s=e(80449),u=e(51981),c=e(61578),a=e(60473),f=o.ArrayBuffer,g=o.DataView,p=g.prototype,b=r(f.prototype.slice),h=r(p.getUint8),E=r(p.setUint8),P=n(function(){return!new f(2).slice(1,void 0).byteLength});t({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:P},{slice:function(I,C){if(b&&C===void 0)return b(s(this),I);for(var O=s(this).byteLength,T=u(I,O),D=u(C===void 0?O:C,O),k=new(a(this,f))(c(D-T)),$=new g(this),L=new g(k),R=0;T=0?g:f+g;return p<0||p>=f?void 0:a[p]}}),s("at")},2924:function(i,d,e){"use strict";var t=e(94488),r=e(3338),n=e(18589),o=e(31946),s=e(94029),u=e(82762),c=e(66434),a=e(69392),f=e(81427),g=e(17480),p=e(59893),b=e(46573),h=p("isConcatSpreadable"),E=b>=51||!r(function(){var I=[];return I[h]=!1,I.concat()[0]!==I}),P=function(I){if(!o(I))return!1;var C=I[h];return C!==void 0?!!C:n(I)},A=!E||!g("concat");t({target:"Array",proto:!0,arity:1,forced:A},{concat:function(C){var O=s(this),T=f(O,0),D=0,k,$,L,R,z;for(k=-1,L=arguments.length;k1?arguments[1]:void 0)}})},16137:function(i,d,e){"use strict";var t=e(94488),r=e(75202),n=e(81181);t({target:"Array",proto:!0},{fill:r}),n("fill")},48435:function(i,d,e){"use strict";var t=e(94488),r=e(90560).filter,n=e(17480),o=n("filter");t({target:"Array",proto:!0,forced:!o},{filter:function(u){return r(this,u,arguments.length>1?arguments[1]:void 0)}})},70365:function(i,d,e){"use strict";var t=e(94488),r=e(90560).findIndex,n=e(81181),o="findIndex",s=!0;o in[]&&Array(1)[o](function(){s=!1}),t({target:"Array",proto:!0,forced:s},{findIndex:function(c){return r(this,c,arguments.length>1?arguments[1]:void 0)}}),n(o)},17482:function(i,d,e){"use strict";var t=e(94488),r=e(53279).findLastIndex,n=e(81181);t({target:"Array",proto:!0},{findLastIndex:function(s){return r(this,s,arguments.length>1?arguments[1]:void 0)}}),n("findLastIndex")},33717:function(i,d,e){"use strict";var t=e(94488),r=e(53279).findLast,n=e(81181);t({target:"Array",proto:!0},{findLast:function(s){return r(this,s,arguments.length>1?arguments[1]:void 0)}}),n("findLast")},11553:function(i,d,e){"use strict";var t=e(94488),r=e(90560).find,n=e(81181),o="find",s=!0;o in[]&&Array(1)[o](function(){s=!1}),t({target:"Array",proto:!0,forced:s},{find:function(c){return r(this,c,arguments.length>1?arguments[1]:void 0)}}),n(o)},65033:function(i,d,e){"use strict";var t=e(94488),r=e(3372),n=e(63335),o=e(94029),s=e(82762),u=e(81427);t({target:"Array",proto:!0},{flatMap:function(a){var f=o(this),g=s(f),p;return n(a),p=u(f,0),p.length=r(p,f,f,g,0,1,a,arguments.length>1?arguments[1]:void 0),p}})},23708:function(i,d,e){"use strict";var t=e(94488),r=e(3372),n=e(94029),o=e(82762),s=e(56902),u=e(81427);t({target:"Array",proto:!0},{flat:function(){var a=arguments.length?arguments[0]:void 0,f=n(this),g=o(f),p=u(f,0);return p.length=r(p,f,f,g,0,a===void 0?1:s(a)),p}})},52732:function(i,d,e){"use strict";var t=e(94488),r=e(59594);t({target:"Array",proto:!0,forced:[].forEach!==r},{forEach:r})},99382:function(i,d,e){"use strict";var t=e(94488),r=e(60255),n=e(35221),o=!n(function(s){Array.from(s)});t({target:"Array",stat:!0,forced:o},{from:r})},88437:function(i,d,e){"use strict";var t=e(94488),r=e(22999).includes,n=e(3338),o=e(81181),s=n(function(){return!Array(1).includes()});t({target:"Array",proto:!0,forced:s},{includes:function(c){return r(this,c,arguments.length>1?arguments[1]:void 0)}}),o("includes")},68440:function(i,d,e){"use strict";var t=e(94488),r=e(34114),n=e(22999).indexOf,o=e(45601),s=r([].indexOf),u=!!s&&1/s([1],1,-0)<0,c=u||!o("indexOf");t({target:"Array",proto:!0,forced:c},{indexOf:function(f){var g=arguments.length>1?arguments[1]:void 0;return u?s(this,f,g)||0:n(this,f,g)}})},13412:function(i,d,e){"use strict";var t=e(94488),r=e(18589);t({target:"Array",stat:!0},{isArray:r})},11005:function(i,d,e){"use strict";var t=e(80524),r=e(81181),n=e(48074),o=e(94844),s=e(37691).f,u=e(24019),c=e(25587),a=e(16697),f=e(35454),g="Array Iterator",p=o.set,b=o.getterFor(g);i.exports=u(Array,"Array",function(E,P){p(this,{type:g,target:t(E),index:0,kind:P})},function(){var E=b(this),P=E.target,A=E.index++;if(!P||A>=P.length)return E.target=void 0,c(void 0,!0);switch(E.kind){case"keys":return c(A,!1);case"values":return c(P[A],!1)}return c([A,P[A]],!1)},"values");var h=n.Arguments=n.Array;if(r("keys"),r("values"),r("entries"),!a&&f&&h.name!=="values")try{s(h,"name",{value:"values"})}catch(E){}},70348:function(i,d,e){"use strict";var t=e(94488),r=e(94237),n=e(1835),o=e(80524),s=e(45601),u=r([].join),c=n!==Object,a=c||!s("join",",");t({target:"Array",proto:!0,forced:a},{join:function(g){return u(o(this),g===void 0?",":g)}})},19801:function(i,d,e){"use strict";var t=e(94488),r=e(55009);t({target:"Array",proto:!0,forced:r!==[].lastIndexOf},{lastIndexOf:r})},91550:function(i,d,e){"use strict";var t=e(94488),r=e(90560).map,n=e(17480),o=n("map");t({target:"Array",proto:!0,forced:!o},{map:function(u){return r(this,u,arguments.length>1?arguments[1]:void 0)}})},85223:function(i,d,e){"use strict";var t=e(94488),r=e(3338),n=e(39812),o=e(69392),s=Array,u=r(function(){function c(){}return!(s.of.call(c)instanceof c)});t({target:"Array",stat:!0,forced:u},{of:function(){for(var a=0,f=arguments.length,g=new(n(this)?this:s)(f);f>a;)o(g,a,arguments[a++]);return g.length=f,g}})},7154:function(i,d,e){"use strict";var t=e(94488),r=e(94029),n=e(82762),o=e(39428),s=e(66434),u=e(3338),c=u(function(){return[].push.call({length:4294967296},1)!==4294967297}),a=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(g){return g instanceof TypeError}},f=c||!a();t({target:"Array",proto:!0,arity:1,forced:f},{push:function(p){var b=r(this),h=n(b),E=arguments.length;s(h+E);for(var P=0;P79&&o<83,c=u||!n("reduceRight");t({target:"Array",proto:!0,forced:c},{reduceRight:function(f){return r(this,f,arguments.length,arguments.length>1?arguments[1]:void 0)}})},67788:function(i,d,e){"use strict";var t=e(94488),r=e(16370).left,n=e(45601),o=e(46573),s=e(90946),u=!s&&o>79&&o<83,c=u||!n("reduce");t({target:"Array",proto:!0,forced:c},{reduce:function(f){var g=arguments.length;return r(this,f,g,g>1?arguments[1]:void 0)}})},9402:function(i,d,e){"use strict";var t=e(94488),r=e(94237),n=e(18589),o=r([].reverse),s=[1,2];t({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return n(this)&&(this.length=this.length),o(this)}})},62489:function(i,d,e){"use strict";var t=e(94488),r=e(18589),n=e(39812),o=e(31946),s=e(51981),u=e(82762),c=e(80524),a=e(69392),f=e(59893),g=e(17480),p=e(30867),b=g("slice"),h=f("species"),E=Array,P=Math.max;t({target:"Array",proto:!0,forced:!b},{slice:function(I,C){var O=c(this),T=u(O),D=s(I,T),k=s(C===void 0?T:C,T),$,L,R;if(r(O)&&($=O.constructor,n($)&&($===E||r($.prototype))?$=void 0:o($)&&($=$[h],$===null&&($=void 0)),$===E||$===void 0))return p(O,D,k);for(L=new($===void 0?E:$)(P(k-D,0)),R=0;D1?arguments[1]:void 0)}})},62837:function(i,d,e){"use strict";var t=e(94488),r=e(94237),n=e(63335),o=e(94029),s=e(82762),u=e(84233),c=e(69905),a=e(3338),f=e(63668),g=e(45601),p=e(78177),b=e(17687),h=e(46573),E=e(19684),P=[],A=r(P.sort),I=r(P.push),C=a(function(){P.sort(void 0)}),O=a(function(){P.sort(null)}),T=g("sort"),D=!a(function(){if(h)return h<70;if(!(p&&p>3)){if(b)return!0;if(E)return E<603;var L="",R,z,N,V;for(R=65;R<76;R++){switch(z=String.fromCharCode(R),R){case 66:case 69:case 70:case 72:N=3;break;case 68:case 71:N=4;break;default:N=2}for(V=0;V<47;V++)P.push({k:z+V,v:N})}for(P.sort(function(j,Y){return Y.v-j.v}),V=0;Vc(z)?1:-1}};t({target:"Array",proto:!0,forced:k},{sort:function(R){R!==void 0&&n(R);var z=o(this);if(D)return R===void 0?A(z):A(z,R);var N=[],V=s(z),j,Y;for(Y=0;YO-$+k;R--)g(C,R-1)}else if(k>$)for(R=O-$;R>T;R--)z=R+$-1,N=R+k-1,z in C?C[N]=C[z]:g(C,N);for(R=0;R=0&&f<=99?f+1900:f;return u(this,g)}})},71390:function(i,d,e){"use strict";var t=e(94488);t({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString})},96844:function(i,d,e){"use strict";var t=e(94488),r=e(32494);t({target:"Date",proto:!0,forced:Date.prototype.toISOString!==r},{toISOString:r})},83578:function(i,d,e){"use strict";var t=e(94488),r=e(3338),n=e(94029),o=e(97954),s=r(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function(){return 1}})!==1});t({target:"Date",proto:!0,arity:1,forced:s},{toJSON:function(c){var a=n(this),f=o(a,"number");return typeof f=="number"&&!isFinite(f)?null:a.toISOString()}})},69762:function(i,d,e){"use strict";var t=e(32621),r=e(2291),n=e(77119),o=e(59893),s=o("toPrimitive"),u=Date.prototype;t(u,s)||r(u,s,n)},76880:function(i,d,e){"use strict";var t=e(94237),r=e(2291),n=Date.prototype,o="Invalid Date",s="toString",u=t(n[s]),c=t(n.getTime);String(new Date(NaN))!==o&&r(n,s,function(){var f=c(this);return f===f?u(this):o})},31808:function(i,d,e){"use strict";var t=e(94488),r=e(92916),n=e(13743),o=e(78540),s="WebAssembly",u=r[s],c=new Error("e",{cause:7}).cause!==7,a=function(g,p){var b={};b[g]=o(g,p,c),t({global:!0,constructor:!0,arity:1,forced:c},b)},f=function(g,p){if(u&&u[g]){var b={};b[g]=o(s+"."+g,p,c),t({target:s,stat:!0,constructor:!0,arity:1,forced:c},b)}};a("Error",function(g){return function(b){return n(g,this,arguments)}}),a("EvalError",function(g){return function(b){return n(g,this,arguments)}}),a("RangeError",function(g){return function(b){return n(g,this,arguments)}}),a("ReferenceError",function(g){return function(b){return n(g,this,arguments)}}),a("SyntaxError",function(g){return function(b){return n(g,this,arguments)}}),a("TypeError",function(g){return function(b){return n(g,this,arguments)}}),a("URIError",function(g){return function(b){return n(g,this,arguments)}}),f("CompileError",function(g){return function(b){return n(g,this,arguments)}}),f("LinkError",function(g){return function(b){return n(g,this,arguments)}}),f("RuntimeError",function(g){return function(b){return n(g,this,arguments)}})},99953:function(i,d,e){"use strict";var t=e(2291),r=e(13367),n=Error.prototype;n.toString!==r&&t(n,"toString",r)},65009:function(i,d,e){"use strict";var t=e(94488),r=e(94237),n=e(69905),o=r("".charAt),s=r("".charCodeAt),u=r(/./.exec),c=r(1 .toString),a=r("".toUpperCase),f=/[\w*+\-./@]/,g=function(p,b){for(var h=c(p,16);h.length9490626562425156e-8?o(g)+u:r(g-1+s(g-1)*s(g+1))}})},85660:function(i,d,e){"use strict";var t=e(94488),r=Math.asinh,n=Math.log,o=Math.sqrt;function s(c){var a=+c;return!isFinite(a)||a===0?a:a<0?-s(-a):n(a+o(a*a+1))}var u=!(r&&1/r(0)>0);t({target:"Math",stat:!0,forced:u},{asinh:s})},80031:function(i,d,e){"use strict";var t=e(94488),r=Math.atanh,n=Math.log,o=!(r&&1/r(-0)<0);t({target:"Math",stat:!0,forced:o},{atanh:function(u){var c=+u;return c===0?c:n((1+c)/(1-c))/2}})},34434:function(i,d,e){"use strict";var t=e(94488),r=e(37666),n=Math.abs,o=Math.pow;t({target:"Math",stat:!0},{cbrt:function(u){var c=+u;return r(c)*o(n(c),.3333333333333333)}})},83579:function(i,d,e){"use strict";var t=e(94488),r=Math.floor,n=Math.log,o=Math.LOG2E;t({target:"Math",stat:!0},{clz32:function(u){var c=u>>>0;return c?31-r(n(c+.5)*o):32}})},74307:function(i,d,e){"use strict";var t=e(94488),r=e(10014),n=Math.cosh,o=Math.abs,s=Math.E,u=!n||n(710)===1/0;t({target:"Math",stat:!0,forced:u},{cosh:function(a){var f=r(o(a)-1)+1;return(f+1/(f*s*s))*(s/2)}})},97423:function(i,d,e){"use strict";var t=e(94488),r=e(10014);t({target:"Math",stat:!0,forced:r!==Math.expm1},{expm1:r})},93321:function(i,d,e){"use strict";var t=e(94488),r=e(14894);t({target:"Math",stat:!0},{fround:r})},82277:function(i,d,e){"use strict";var t=e(94488),r=Math.hypot,n=Math.abs,o=Math.sqrt,s=!!r&&r(1/0,NaN)!==1/0;t({target:"Math",stat:!0,arity:2,forced:s},{hypot:function(c,a){for(var f=0,g=0,p=arguments.length,b=0,h,E;g0?(E=h/b,f+=E*E):f+=h;return b===1/0?1/0:b*o(f)}})},61425:function(i,d,e){"use strict";var t=e(94488),r=e(3338),n=Math.imul,o=r(function(){return n(4294967295,5)!==-5||n.length!==2});t({target:"Math",stat:!0,forced:o},{imul:function(u,c){var a=65535,f=+u,g=+c,p=a&f,b=a&g;return 0|p*b+((a&f>>>16)*b+p*(a&g>>>16)<<16>>>0)}})},61873:function(i,d,e){"use strict";var t=e(94488),r=e(53309);t({target:"Math",stat:!0},{log10:r})},9307:function(i,d,e){"use strict";var t=e(94488),r=e(25726);t({target:"Math",stat:!0},{log1p:r})},8821:function(i,d,e){"use strict";var t=e(94488),r=Math.log,n=Math.LN2;t({target:"Math",stat:!0},{log2:function(s){return r(s)/n}})},64385:function(i,d,e){"use strict";var t=e(94488),r=e(37666);t({target:"Math",stat:!0},{sign:r})},64099:function(i,d,e){"use strict";var t=e(94488),r=e(3338),n=e(10014),o=Math.abs,s=Math.exp,u=Math.E,c=r(function(){return Math.sinh(-2e-17)!==-2e-17});t({target:"Math",stat:!0,forced:c},{sinh:function(f){var g=+f;return o(g)<1?(n(g)-n(-g))/2:(s(g-1)-s(-g-1))*(u/2)}})},62455:function(i,d,e){"use strict";var t=e(94488),r=e(10014),n=Math.exp;t({target:"Math",stat:!0},{tanh:function(s){var u=+s,c=r(u),a=r(-u);return c===1/0?1:a===1/0?-1:(c-a)/(n(u)+n(-u))}})},79965:function(i,d,e){"use strict";var t=e(94573);t(Math,"Math",!0)},59118:function(i,d,e){"use strict";var t=e(94488),r=e(3312);t({target:"Math",stat:!0},{trunc:r})},275:function(i,d,e){"use strict";var t=e(94488),r=e(16697),n=e(35454),o=e(92916),s=e(9699),u=e(94237),c=e(20865),a=e(32621),f=e(25576),g=e(16332),p=e(18446),b=e(97954),h=e(3338),E=e(80689).f,P=e(71256).f,A=e(37691).f,I=e(49228),C=e(52971).trim,O="Number",T=o[O],D=s[O],k=T.prototype,$=o.TypeError,L=u("".slice),R=u("".charCodeAt),z=function(J){var Q=b(J,"number");return typeof Q=="bigint"?Q:N(Q)},N=function(J){var Q=b(J,"number"),Z,K,M,B,H,ee,ae,le;if(p(Q))throw new $("Cannot convert a Symbol value to a number");if(typeof Q=="string"&&Q.length>2){if(Q=C(Q),Z=R(Q,0),Z===43||Z===45){if(K=R(Q,2),K===88||K===120)return NaN}else if(Z===48){switch(R(Q,1)){case 66:case 98:M=2,B=49;break;case 79:case 111:M=8,B=55;break;default:return+Q}for(H=L(Q,2),ee=H.length,ae=0;aeB)return NaN;return parseInt(H,M)}}return+Q},V=c(O,!T(" 0o1")||!T("0b1")||T("+0x1")),j=function(J){return g(k,J)&&h(function(){I(J)})},Y=function(Q){var Z=arguments.length<1?0:T(z(Q));return j(this)?f(Object(Z),this,Y):Z};Y.prototype=k,V&&!r&&(k.constructor=Y),t({global:!0,constructor:!0,wrap:!0,forced:V},{Number:Y});var G=function(J,Q){for(var Z=n?E(Q):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),K=0,M;Z.length>K;K++)a(Q,M=Z[K])&&!a(J,M)&&A(J,M,P(Q,M))};r&&D&&G(s[O],D),(V||r)&&G(s[O],T)},31919:function(i,d,e){"use strict";var t=e(94488);t({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},51284:function(i,d,e){"use strict";var t=e(94488),r=e(1222);t({target:"Number",stat:!0},{isFinite:r})},10177:function(i,d,e){"use strict";var t=e(94488),r=e(62896);t({target:"Number",stat:!0},{isInteger:r})},85690:function(i,d,e){"use strict";var t=e(94488);t({target:"Number",stat:!0},{isNaN:function(n){return n!==n}})},92114:function(i,d,e){"use strict";var t=e(94488),r=e(62896),n=Math.abs;t({target:"Number",stat:!0},{isSafeInteger:function(s){return r(s)&&n(s)<=9007199254740991}})},1017:function(i,d,e){"use strict";var t=e(94488);t({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},14480:function(i,d,e){"use strict";var t=e(94488);t({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},40516:function(i,d,e){"use strict";var t=e(94488),r=e(31280);t({target:"Number",stat:!0,forced:Number.parseFloat!==r},{parseFloat:r})},76345:function(i,d,e){"use strict";var t=e(94488),r=e(52446);t({target:"Number",stat:!0,forced:Number.parseInt!==r},{parseInt:r})},7282:function(i,d,e){"use strict";var t=e(94488),r=e(94237),n=e(56902),o=e(49228),s=e(71049),u=e(53309),c=e(3338),a=RangeError,f=String,g=isFinite,p=Math.abs,b=Math.floor,h=Math.pow,E=Math.round,P=r(1 .toExponential),A=r(s),I=r("".slice),C=P(-69e-12,4)==="-6.9000e-11"&&P(1.255,2)==="1.25e+0"&&P(12345,3)==="1.235e+4"&&P(25,0)==="3e+1",O=function(){return c(function(){P(1,1/0)})&&c(function(){P(1,-1/0)})},T=function(){return!c(function(){P(1/0,1/0),P(NaN,1/0)})},D=!C||!O()||!T();t({target:"Number",proto:!0,forced:D},{toExponential:function($){var L=o(this);if($===void 0)return P(L);var R=n($);if(!g(L))return String(L);if(R<0||R>20)throw new a("Incorrect fraction digits");if(C)return P(L,R);var z="",N="",V=0,j="",Y="";if(L<0&&(z="-",L=-L),L===0)V=0,N=A("0",R+1);else{var G=u(L);V=b(G);var J=0,Q=h(10,V-R);J=E(L/Q),2*L>=(2*J+1)*Q&&(J+=1),J>=h(10,R+1)&&(J/=10,V+=1),N=f(J)}return R!==0&&(N=I(N,0,1)+"."+I(N,1)),V===0?(j="+",Y="0"):(j=V>0?"+":"-",Y=f(p(V))),N+="e"+j+Y,z+N}})},58055:function(i,d,e){"use strict";var t=e(94488),r=e(94237),n=e(56902),o=e(49228),s=e(71049),u=e(3338),c=RangeError,a=String,f=Math.floor,g=r(s),p=r("".slice),b=r(1 .toFixed),h=function(O,T,D){return T===0?D:T%2===1?h(O,T-1,D*O):h(O*O,T/2,D)},E=function(O){for(var T=0,D=O;D>=4096;)T+=12,D/=4096;for(;D>=2;)T+=1,D/=2;return T},P=function(O,T,D){for(var k=-1,$=D;++k<6;)$+=T*O[k],O[k]=$%1e7,$=f($/1e7)},A=function(O,T){for(var D=6,k=0;--D>=0;)k+=O[D],O[D]=f(k/T),k=k%T*1e7},I=function(O){for(var T=6,D="";--T>=0;)if(D!==""||T===0||O[T]!==0){var k=a(O[T]);D=D===""?k:D+g("0",7-k.length)+k}return D},C=u(function(){return b(8e-5,3)!=="0.000"||b(.9,0)!=="1"||b(1.255,2)!=="1.25"||b(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!u(function(){b({})});t({target:"Number",proto:!0,forced:C},{toFixed:function(T){var D=o(this),k=n(T),$=[0,0,0,0,0,0],L="",R="0",z,N,V,j;if(k<0||k>20)throw new c("Incorrect fraction digits");if(D!==D)return"NaN";if(D<=-1e21||D>=1e21)return a(D);if(D<0&&(L="-",D=-D),D>1e-21)if(z=E(D*h(2,69,1))-69,N=z<0?D*h(2,-z,1):D/h(2,z,1),N*=4503599627370496,z=52-z,z>0){for(P($,0,N),V=k;V>=7;)P($,1e7,0),V-=7;for(P($,h(10,V,1),0),V=z-1;V>=23;)A($,8388608),V-=23;A($,1<0?(j=R.length,R=L+(j<=k?"0."+g("0",k-j)+R:p(R,0,j-k)+"."+p(R,j-k))):R=L+R,R}})},93547:function(i,d,e){"use strict";var t=e(94488),r=e(94237),n=e(3338),o=e(49228),s=r(1 .toPrecision),u=n(function(){return s(1,void 0)!=="1"})||!n(function(){s({})});t({target:"Number",proto:!0,forced:u},{toPrecision:function(a){return a===void 0?s(o(this)):s(o(this),a)}})},31237:function(i,d,e){"use strict";var t=e(94488),r=e(80530);t({target:"Object",stat:!0,arity:2,forced:Object.assign!==r},{assign:r})},17954:function(i,d,e){"use strict";var t=e(94488),r=e(35454),n=e(20132);t({target:"Object",stat:!0,sham:!r},{create:n})},58580:function(i,d,e){"use strict";var t=e(94488),r=e(35454),n=e(25837),o=e(63335),s=e(94029),u=e(37691);r&&t({target:"Object",proto:!0,forced:n},{__defineGetter__:function(a,f){u.f(s(this),a,{get:o(f),enumerable:!0,configurable:!0})}})},47146:function(i,d,e){"use strict";var t=e(94488),r=e(35454),n=e(55666).f;t({target:"Object",stat:!0,forced:Object.defineProperties!==n,sham:!r},{defineProperties:n})},40416:function(i,d,e){"use strict";var t=e(94488),r=e(35454),n=e(37691).f;t({target:"Object",stat:!0,forced:Object.defineProperty!==n,sham:!r},{defineProperty:n})},7615:function(i,d,e){"use strict";var t=e(94488),r=e(35454),n=e(25837),o=e(63335),s=e(94029),u=e(37691);r&&t({target:"Object",proto:!0,forced:n},{__defineSetter__:function(a,f){u.f(s(this),a,{set:o(f),enumerable:!0,configurable:!0})}})},72820:function(i,d,e){"use strict";var t=e(94488),r=e(88698).entries;t({target:"Object",stat:!0},{entries:function(o){return r(o)}})},86070:function(i,d,e){"use strict";var t=e(94488),r=e(13247),n=e(3338),o=e(31946),s=e(2074).onFreeze,u=Object.freeze,c=n(function(){u(1)});t({target:"Object",stat:!0,forced:c,sham:!r},{freeze:function(f){return u&&o(f)?u(s(f)):f}})},23569:function(i,d,e){"use strict";var t=e(94488),r=e(62003),n=e(69392);t({target:"Object",stat:!0},{fromEntries:function(s){var u={};return r(s,function(c,a){n(u,c,a)},{AS_ENTRIES:!0}),u}})},55639:function(i,d,e){"use strict";var t=e(94488),r=e(3338),n=e(80524),o=e(71256).f,s=e(35454),u=!s||r(function(){o(1)});t({target:"Object",stat:!0,forced:u,sham:!s},{getOwnPropertyDescriptor:function(a,f){return o(n(a),f)}})},63046:function(i,d,e){"use strict";var t=e(94488),r=e(35454),n=e(48662),o=e(80524),s=e(71256),u=e(69392);t({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(a){for(var f=o(a),g=s.f,p=n(f),b={},h=0,E,P;p.length>h;)P=g(f,E=p[h++]),P!==void 0&&u(b,E,P);return b}})},464:function(i,d,e){"use strict";var t=e(94488),r=e(3338),n=e(53393).f,o=r(function(){return!Object.getOwnPropertyNames(1)});t({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:n})},67936:function(i,d,e){"use strict";var t=e(94488),r=e(42820),n=e(3338),o=e(92635),s=e(94029),u=!r||n(function(){o.f(1)});t({target:"Object",stat:!0,forced:u},{getOwnPropertySymbols:function(a){var f=o.f;return f?f(s(a)):[]}})},51082:function(i,d,e){"use strict";var t=e(94488),r=e(3338),n=e(94029),o=e(53456),s=e(4870),u=r(function(){o(1)});t({target:"Object",stat:!0,forced:u,sham:!s},{getPrototypeOf:function(a){return o(n(a))}})},83850:function(i,d,e){"use strict";var t=e(94488),r=e(65911),n=e(94237),o=e(63335),s=e(95955),u=e(17818),c=e(62003),a=r("Object","create"),f=n([].push);t({target:"Object",stat:!0},{groupBy:function(p,b){s(p),o(b);var h=a(null),E=0;return c(p,function(P){var A=u(b(P,E++));A in h?f(h[A],P):h[A]=[P]}),h}})},41990:function(i,d,e){"use strict";var t=e(94488),r=e(32621);t({target:"Object",stat:!0},{hasOwn:r})},55888:function(i,d,e){"use strict";var t=e(94488),r=e(12477);t({target:"Object",stat:!0,forced:Object.isExtensible!==r},{isExtensible:r})},53827:function(i,d,e){"use strict";var t=e(94488),r=e(3338),n=e(31946),o=e(29076),s=e(51424),u=Object.isFrozen,c=s||r(function(){u(1)});t({target:"Object",stat:!0,forced:c},{isFrozen:function(f){return!n(f)||s&&o(f)==="ArrayBuffer"?!0:u?u(f):!1}})},78143:function(i,d,e){"use strict";var t=e(94488),r=e(3338),n=e(31946),o=e(29076),s=e(51424),u=Object.isSealed,c=s||r(function(){u(1)});t({target:"Object",stat:!0,forced:c},{isSealed:function(f){return!n(f)||s&&o(f)==="ArrayBuffer"?!0:u?u(f):!1}})},15787:function(i,d,e){"use strict";var t=e(94488),r=e(5370);t({target:"Object",stat:!0},{is:r})},66419:function(i,d,e){"use strict";var t=e(94488),r=e(94029),n=e(7733),o=e(3338),s=o(function(){n(1)});t({target:"Object",stat:!0,forced:s},{keys:function(c){return n(r(c))}})},75765:function(i,d,e){"use strict";var t=e(94488),r=e(35454),n=e(25837),o=e(94029),s=e(17818),u=e(53456),c=e(71256).f;r&&t({target:"Object",proto:!0,forced:n},{__lookupGetter__:function(f){var g=o(this),p=s(f),b;do if(b=c(g,p))return b.get;while(g=u(g))}})},14645:function(i,d,e){"use strict";var t=e(94488),r=e(35454),n=e(25837),o=e(94029),s=e(17818),u=e(53456),c=e(71256).f;r&&t({target:"Object",proto:!0,forced:n},{__lookupSetter__:function(f){var g=o(this),p=s(f),b;do if(b=c(g,p))return b.set;while(g=u(g))}})},71122:function(i,d,e){"use strict";var t=e(94488),r=e(31946),n=e(2074).onFreeze,o=e(13247),s=e(3338),u=Object.preventExtensions,c=s(function(){u(1)});t({target:"Object",stat:!0,forced:c,sham:!o},{preventExtensions:function(f){return u&&r(f)?u(n(f)):f}})},42084:function(i,d,e){"use strict";var t=e(35454),r=e(64110),n=e(31946),o=e(94029),s=e(95955),u=Object.getPrototypeOf,c=Object.setPrototypeOf,a=Object.prototype,f="__proto__";if(t&&u&&c&&!(f in a))try{r(a,f,{configurable:!0,get:function(){return u(o(this))},set:function(p){var b=s(this);!n(p)&&p!==null||!n(b)||c(b,p)}})}catch(g){}},25070:function(i,d,e){"use strict";var t=e(94488),r=e(31946),n=e(2074).onFreeze,o=e(13247),s=e(3338),u=Object.seal,c=s(function(){u(1)});t({target:"Object",stat:!0,forced:c,sham:!o},{seal:function(f){return u&&r(f)?u(n(f)):f}})},77140:function(i,d,e){"use strict";var t=e(94488),r=e(58218);t({target:"Object",stat:!0},{setPrototypeOf:r})},15954:function(i,d,e){"use strict";var t=e(68527),r=e(2291),n=e(28488);t||r(Object.prototype,"toString",n,{unsafe:!0})},4266:function(i,d,e){"use strict";var t=e(94488),r=e(88698).values;t({target:"Object",stat:!0},{values:function(o){return r(o)}})},49988:function(i,d,e){"use strict";var t=e(94488),r=e(31280);t({global:!0,forced:parseFloat!==r},{parseFloat:r})},38823:function(i,d,e){"use strict";var t=e(94488),r=e(52446);t({global:!0,forced:parseInt!==r},{parseInt:r})},4045:function(i,d,e){"use strict";var t=e(94488),r=e(89945),n=e(63335),o=e(73446),s=e(80734),u=e(62003),c=e(22093);t({target:"Promise",stat:!0,forced:c},{allSettled:function(f){var g=this,p=o.f(g),b=p.resolve,h=p.reject,E=s(function(){var P=n(g.resolve),A=[],I=0,C=1;u(f,function(O){var T=I++,D=!1;C++,r(P,g,O).then(function(k){D||(D=!0,A[T]={status:"fulfilled",value:k},--C||b(A))},function(k){D||(D=!0,A[T]={status:"rejected",reason:k},--C||b(A))})}),--C||b(A)});return E.error&&h(E.value),p.promise}})},12785:function(i,d,e){"use strict";var t=e(94488),r=e(89945),n=e(63335),o=e(73446),s=e(80734),u=e(62003),c=e(22093);t({target:"Promise",stat:!0,forced:c},{all:function(f){var g=this,p=o.f(g),b=p.resolve,h=p.reject,E=s(function(){var P=n(g.resolve),A=[],I=0,C=1;u(f,function(O){var T=I++,D=!1;C++,r(P,g,O).then(function(k){D||(D=!0,A[T]=k,--C||b(A))},h)}),--C||b(A)});return E.error&&h(E.value),p.promise}})},50747:function(i,d,e){"use strict";var t=e(94488),r=e(89945),n=e(63335),o=e(65911),s=e(73446),u=e(80734),c=e(62003),a=e(22093),f="No one promise resolved";t({target:"Promise",stat:!0,forced:a},{any:function(p){var b=this,h=o("AggregateError"),E=s.f(b),P=E.resolve,A=E.reject,I=u(function(){var C=n(b.resolve),O=[],T=0,D=1,k=!1;c(p,function($){var L=T++,R=!1;D++,r(C,b,$).then(function(z){R||k||(k=!0,P(z))},function(z){R||k||(R=!0,O[L]=z,--D||A(new h(O,f)))})}),--D||A(new h(O,f))});return I.error&&A(I.value),E.promise}})},41902:function(i,d,e){"use strict";var t=e(94488),r=e(16697),n=e(82830).CONSTRUCTOR,o=e(2451),s=e(65911),u=e(55327),c=e(2291),a=o&&o.prototype;if(t({target:"Promise",proto:!0,forced:n,real:!0},{catch:function(g){return this.then(void 0,g)}}),!r&&u(o)){var f=s("Promise").prototype.catch;a.catch!==f&&c(a,"catch",f,{unsafe:!0})}},90366:function(i,d,e){"use strict";var t=e(94488),r=e(16697),n=e(90946),o=e(92916),s=e(89945),u=e(2291),c=e(58218),a=e(94573),f=e(51996),g=e(63335),p=e(55327),b=e(31946),h=e(56472),E=e(60473),P=e(28887).set,A=e(72933),I=e(61810),C=e(80734),O=e(66790),T=e(94844),D=e(2451),k=e(82830),$=e(73446),L="Promise",R=k.CONSTRUCTOR,z=k.REJECTION_EVENT,N=k.SUBCLASSING,V=T.getterFor(L),j=T.set,Y=D&&D.prototype,G=D,J=Y,Q=o.TypeError,Z=o.document,K=o.process,M=$.f,B=M,H=!!(Z&&Z.createEvent&&o.dispatchEvent),ee="unhandledrejection",ae="rejectionhandled",le=0,pe=1,ve=2,He=1,ze=2,rt,ot,yt,St,ge=function(Re){var Ke;return b(Re)&&p(Ke=Re.then)?Ke:!1},Be=function(Re,Ke){var Ne=Ke.value,et=Ke.state===pe,Je=et?Re.ok:Re.fail,jt=Re.resolve,Gt=Re.reject,me=Re.domain,ke,xt,ct;try{Je?(et||(Ke.rejection===ze&&je(Ke),Ke.rejection=He),Je===!0?ke=Ne:(me&&me.enter(),ke=Je(Ne),me&&(me.exit(),ct=!0)),ke===Re.promise?Gt(new Q("Promise-chain cycle")):(xt=ge(ke))?s(xt,ke,jt,Gt):jt(ke)):Gt(Ne)}catch(ft){me&&!ct&&me.exit(),Gt(ft)}},Xe=function(Re,Ke){Re.notified||(Re.notified=!0,A(function(){for(var Ne=Re.reactions,et;et=Ne.get();)Be(et,Re);Re.notified=!1,Ke&&!Re.rejection&&Tt(Re)}))},tt=function(Re,Ke,Ne){var et,Je;H?(et=Z.createEvent("Event"),et.promise=Ke,et.reason=Ne,et.initEvent(Re,!1,!0),o.dispatchEvent(et)):et={promise:Ke,reason:Ne},!z&&(Je=o["on"+Re])?Je(et):Re===ee&&I("Unhandled promise rejection",Ne)},Tt=function(Re){s(P,o,function(){var Ke=Re.facade,Ne=Re.value,et=Pt(Re),Je;if(et&&(Je=C(function(){n?K.emit("unhandledRejection",Ne,Ke):tt(ee,Ke,Ne)}),Re.rejection=n||Pt(Re)?ze:He,Je.error))throw Je.value})},Pt=function(Re){return Re.rejection!==He&&!Re.parent},je=function(Re){s(P,o,function(){var Ke=Re.facade;n?K.emit("rejectionHandled",Ke):tt(ae,Ke,Re.value)})},xe=function(Re,Ke,Ne){return function(et){Re(Ke,et,Ne)}},Ce=function(Re,Ke,Ne){Re.done||(Re.done=!0,Ne&&(Re=Ne),Re.value=Ke,Re.state=ve,Xe(Re,!0))},Le=function(Re,Ke,Ne){if(!Re.done){Re.done=!0,Ne&&(Re=Ne);try{if(Re.facade===Ke)throw new Q("Promise can't be resolved itself");var et=ge(Ke);et?A(function(){var Je={done:!1};try{s(et,Ke,xe(Le,Je,Re),xe(Ce,Je,Re))}catch(jt){Ce(Je,jt,Re)}}):(Re.value=Ke,Re.state=pe,Xe(Re,!1))}catch(Je){Ce({done:!1},Je,Re)}}};if(R&&(G=function(Ke){h(this,J),g(Ke),s(rt,this);var Ne=V(this);try{Ke(xe(Le,Ne),xe(Ce,Ne))}catch(et){Ce(Ne,et)}},J=G.prototype,rt=function(Ke){j(this,{type:L,done:!1,notified:!1,parent:!1,reactions:new O,rejection:!1,state:le,value:void 0})},rt.prototype=u(J,"then",function(Ke,Ne){var et=V(this),Je=M(E(this,G));return et.parent=!0,Je.ok=p(Ke)?Ke:!0,Je.fail=p(Ne)&&Ne,Je.domain=n?K.domain:void 0,et.state===le?et.reactions.add(Je):A(function(){Be(Je,et)}),Je.promise}),ot=function(){var Re=new rt,Ke=V(Re);this.promise=Re,this.resolve=xe(Le,Ke),this.reject=xe(Ce,Ke)},$.f=M=function(Re){return Re===G||Re===yt?new ot(Re):B(Re)},!r&&p(D)&&Y!==Object.prototype)){St=Y.then,N||u(Y,"then",function(Ke,Ne){var et=this;return new G(function(Je,jt){s(St,et,Je,jt)}).then(Ke,Ne)},{unsafe:!0});try{delete Y.constructor}catch(Re){}c&&c(Y,J)}t({global:!0,constructor:!0,wrap:!0,forced:R},{Promise:G}),a(G,L,!1,!0),f(L)},43595:function(i,d,e){"use strict";var t=e(94488),r=e(16697),n=e(2451),o=e(3338),s=e(65911),u=e(55327),c=e(60473),a=e(15597),f=e(2291),g=n&&n.prototype,p=!!n&&o(function(){g.finally.call({then:function(){}},function(){})});if(t({target:"Promise",proto:!0,real:!0,forced:p},{finally:function(h){var E=c(this,s("Promise")),P=u(h);return this.then(P?function(A){return a(E,h()).then(function(){return A})}:h,P?function(A){return a(E,h()).then(function(){throw A})}:h)}}),!r&&u(n)){var b=s("Promise").prototype.finally;g.finally!==b&&f(g,"finally",b,{unsafe:!0})}},24627:function(i,d,e){"use strict";e(90366),e(12785),e(41902),e(20733),e(95693),e(81930)},20733:function(i,d,e){"use strict";var t=e(94488),r=e(89945),n=e(63335),o=e(73446),s=e(80734),u=e(62003),c=e(22093);t({target:"Promise",stat:!0,forced:c},{race:function(f){var g=this,p=o.f(g),b=p.reject,h=s(function(){var E=n(g.resolve);u(f,function(P){r(E,g,P).then(p.resolve,b)})});return h.error&&b(h.value),p.promise}})},95693:function(i,d,e){"use strict";var t=e(94488),r=e(89945),n=e(73446),o=e(82830).CONSTRUCTOR;t({target:"Promise",stat:!0,forced:o},{reject:function(u){var c=n.f(this);return r(c.reject,void 0,u),c.promise}})},81930:function(i,d,e){"use strict";var t=e(94488),r=e(65911),n=e(16697),o=e(2451),s=e(82830).CONSTRUCTOR,u=e(15597),c=r("Promise"),a=n&&!s;t({target:"Promise",stat:!0,forced:n||s},{resolve:function(g){return u(a&&this===c?o:this,g)}})},92324:function(i,d,e){"use strict";var t=e(94488),r=e(73446);t({target:"Promise",stat:!0},{withResolvers:function(){var o=r.f(this);return{promise:o.promise,resolve:o.resolve,reject:o.reject}}})},23551:function(i,d,e){"use strict";var t=e(94488),r=e(13743),n=e(63335),o=e(80449),s=e(3338),u=!s(function(){Reflect.apply(function(){})});t({target:"Reflect",stat:!0,forced:u},{apply:function(a,f,g){return r(n(a),f,o(g))}})},74521:function(i,d,e){"use strict";var t=e(94488),r=e(65911),n=e(13743),o=e(4645),s=e(6086),u=e(80449),c=e(31946),a=e(20132),f=e(3338),g=r("Reflect","construct"),p=Object.prototype,b=[].push,h=f(function(){function A(){}return!(g(function(){},[],A)instanceof A)}),E=!f(function(){g(function(){})}),P=h||E;t({target:"Reflect",stat:!0,forced:P,sham:P},{construct:function(I,C){s(I),u(C);var O=arguments.length<3?I:s(arguments[2]);if(E&&!h)return g(I,C,O);if(I===O){switch(C.length){case 0:return new I;case 1:return new I(C[0]);case 2:return new I(C[0],C[1]);case 3:return new I(C[0],C[1],C[2]);case 4:return new I(C[0],C[1],C[2],C[3])}var T=[null];return n(b,T,C),new(n(o,I,T))}var D=O.prototype,k=a(c(D)?D:p),$=n(I,k,C);return c($)?$:k}})},57891:function(i,d,e){"use strict";var t=e(94488),r=e(35454),n=e(80449),o=e(17818),s=e(37691),u=e(3338),c=u(function(){Reflect.defineProperty(s.f({},1,{value:1}),1,{value:2})});t({target:"Reflect",stat:!0,forced:c,sham:!r},{defineProperty:function(f,g,p){n(f);var b=o(g);n(p);try{return s.f(f,b,p),!0}catch(h){return!1}}})},84138:function(i,d,e){"use strict";var t=e(94488),r=e(80449),n=e(71256).f;t({target:"Reflect",stat:!0},{deleteProperty:function(s,u){var c=n(r(s),u);return c&&!c.configurable?!1:delete s[u]}})},37135:function(i,d,e){"use strict";var t=e(94488),r=e(35454),n=e(80449),o=e(71256);t({target:"Reflect",stat:!0,sham:!r},{getOwnPropertyDescriptor:function(u,c){return o.f(n(u),c)}})},6474:function(i,d,e){"use strict";var t=e(94488),r=e(80449),n=e(53456),o=e(4870);t({target:"Reflect",stat:!0,sham:!o},{getPrototypeOf:function(u){return n(r(u))}})},51832:function(i,d,e){"use strict";var t=e(94488),r=e(89945),n=e(31946),o=e(80449),s=e(60516),u=e(71256),c=e(53456);function a(f,g){var p=arguments.length<3?f:arguments[2],b,h;if(o(f)===p)return f[g];if(b=u.f(f,g),b)return s(b)?b.value:b.get===void 0?void 0:r(b.get,p);if(n(h=c(f)))return a(h,g,p)}t({target:"Reflect",stat:!0},{get:a})},40135:function(i,d,e){"use strict";var t=e(94488);t({target:"Reflect",stat:!0},{has:function(n,o){return o in n}})},7982:function(i,d,e){"use strict";var t=e(94488),r=e(80449),n=e(12477);t({target:"Reflect",stat:!0},{isExtensible:function(s){return r(s),n(s)}})},14893:function(i,d,e){"use strict";var t=e(94488),r=e(48662);t({target:"Reflect",stat:!0},{ownKeys:r})},49233:function(i,d,e){"use strict";var t=e(94488),r=e(65911),n=e(80449),o=e(13247);t({target:"Reflect",stat:!0,sham:!o},{preventExtensions:function(u){n(u);try{var c=r("Object","preventExtensions");return c&&c(u),!0}catch(a){return!1}}})},42844:function(i,d,e){"use strict";var t=e(94488),r=e(80449),n=e(557),o=e(58218);o&&t({target:"Reflect",stat:!0},{setPrototypeOf:function(u,c){r(u),n(c);try{return o(u,c),!0}catch(a){return!1}}})},92130:function(i,d,e){"use strict";var t=e(94488),r=e(89945),n=e(80449),o=e(31946),s=e(60516),u=e(3338),c=e(37691),a=e(71256),f=e(53456),g=e(35012);function p(h,E,P){var A=arguments.length<4?h:arguments[3],I=a.f(n(h),E),C,O,T;if(!I){if(o(O=f(h)))return p(O,E,P,A);I=g(0)}if(s(I)){if(I.writable===!1||!o(A))return!1;if(C=a.f(A,E)){if(C.get||C.set||C.writable===!1)return!1;C.value=P,c.f(A,E,C)}else c.f(A,E,g(0,P))}else{if(T=I.set,T===void 0)return!1;r(T,A,P)}return!0}var b=u(function(){var h=function(){},E=c.f(new h,"a",{configurable:!0});return Reflect.set(h.prototype,"a",1,E)!==!1});t({target:"Reflect",stat:!0,forced:b},{set:p})},6536:function(i,d,e){"use strict";var t=e(94488),r=e(92916),n=e(94573);t({global:!0},{Reflect:{}}),n(r.Reflect,"Reflect",!0)},27228:function(i,d,e){"use strict";var t=e(35454),r=e(92916),n=e(94237),o=e(20865),s=e(25576),u=e(68151),c=e(20132),a=e(80689).f,f=e(16332),g=e(44639),p=e(69905),b=e(81644),h=e(19286),E=e(44166),P=e(2291),A=e(3338),I=e(32621),C=e(94844).enforce,O=e(51996),T=e(59893),D=e(6041),k=e(51224),$=T("match"),L=r.RegExp,R=L.prototype,z=r.SyntaxError,N=n(R.exec),V=n("".charAt),j=n("".replace),Y=n("".indexOf),G=n("".slice),J=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Q=/a/g,Z=/a/g,K=new L(Q)!==Q,M=h.MISSED_STICKY,B=h.UNSUPPORTED_Y,H=t&&(!K||M||D||k||A(function(){return Z[$]=!1,L(Q)!==Q||L(Z)===Z||String(L(Q,"i"))!=="/a/i"})),ee=function(He){for(var ze=He.length,rt=0,ot="",yt=!1,St;rt<=ze;rt++){if(St=V(He,rt),St==="\\"){ot+=St+V(He,++rt);continue}!yt&&St==="."?ot+="[\\s\\S]":(St==="["?yt=!0:St==="]"&&(yt=!1),ot+=St)}return ot},ae=function(He){for(var ze=He.length,rt=0,ot="",yt=[],St=c(null),ge=!1,Be=!1,Xe=0,tt="",Tt;rt<=ze;rt++){if(Tt=V(He,rt),Tt==="\\")Tt+=V(He,++rt);else if(Tt==="]")ge=!1;else if(!ge)switch(!0){case Tt==="[":ge=!0;break;case Tt==="(":N(J,G(He,rt+1))&&(rt+=2,Be=!0),ot+=Tt,Xe++;continue;case(Tt===">"&&Be):if(tt===""||I(St,tt))throw new z("Invalid capture group name");St[tt]=!0,yt[yt.length]=[tt,Xe],Be=!1,tt="";continue}Be?tt+=Tt:ot+=Tt}return[ot,yt]};if(o("RegExp",H)){for(var le=function(ze,rt){var ot=f(R,this),yt=g(ze),St=rt===void 0,ge=[],Be=ze,Xe,tt,Tt,Pt,je,xe;if(!ot&&yt&&St&&ze.constructor===le)return ze;if((yt||f(R,ze))&&(ze=ze.source,St&&(rt=b(Be))),ze=ze===void 0?"":p(ze),rt=rt===void 0?"":p(rt),Be=ze,D&&"dotAll"in Q&&(tt=!!rt&&Y(rt,"s")>-1,tt&&(rt=j(rt,/s/g,""))),Xe=rt,M&&"sticky"in Q&&(Tt=!!rt&&Y(rt,"y")>-1,Tt&&B&&(rt=j(rt,/y/g,""))),k&&(Pt=ae(ze),ze=Pt[0],ge=Pt[1]),je=s(L(ze,rt),ot?this:R,le),(tt||Tt||ge.length)&&(xe=C(je),tt&&(xe.dotAll=!0,xe.raw=le(ee(ze),Xe)),Tt&&(xe.sticky=!0),ge.length&&(xe.groups=ge)),ze!==Be)try{u(je,"source",Be===""?"(?:)":Be)}catch(Ce){}return je},pe=a(L),ve=0;pe.length>ve;)E(le,L,pe[ve++]);R.constructor=le,le.prototype=R,P(r,"RegExp",le,{constructor:!0})}O("RegExp")},62921:function(i,d,e){"use strict";var t=e(35454),r=e(6041),n=e(29076),o=e(64110),s=e(94844).get,u=RegExp.prototype,c=TypeError;t&&r&&o(u,"dotAll",{configurable:!0,get:function(){if(this!==u){if(n(this)==="RegExp")return!!s(this).dotAll;throw new c("Incompatible receiver, RegExp required")}}})},44001:function(i,d,e){"use strict";var t=e(94488),r=e(88736);t({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},92262:function(i,d,e){"use strict";var t=e(92916),r=e(35454),n=e(64110),o=e(82163),s=e(3338),u=t.RegExp,c=u.prototype,a=r&&s(function(){var f=!0;try{u(".","d")}catch(I){f=!1}var g={},p="",b=f?"dgimsy":"gimsy",h=function(I,C){Object.defineProperty(g,I,{get:function(){return p+=C,!0}})},E={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};f&&(E.hasIndices="d");for(var P in E)h(P,E[P]);var A=Object.getOwnPropertyDescriptor(c,"flags").get.call(g);return A!==b||p!==b});a&&n(c,"flags",{configurable:!0,get:o})},54744:function(i,d,e){"use strict";var t=e(35454),r=e(19286).MISSED_STICKY,n=e(29076),o=e(64110),s=e(94844).get,u=RegExp.prototype,c=TypeError;t&&r&&o(u,"sticky",{configurable:!0,get:function(){if(this!==u){if(n(this)==="RegExp")return!!s(this).sticky;throw new c("Incompatible receiver, RegExp required")}}})},38214:function(i,d,e){"use strict";e(44001);var t=e(94488),r=e(89945),n=e(55327),o=e(80449),s=e(69905),u=function(){var a=!1,f=/[ac]/;return f.exec=function(){return a=!0,/./.exec.apply(this,arguments)},f.test("abc")===!0&&a}(),c=/./.test;t({target:"RegExp",proto:!0,forced:!u},{test:function(a){var f=o(this),g=s(a),p=f.exec;if(!n(p))return r(c,f,g);var b=r(p,f,g);return b===null?!1:(o(b),!0)}})},12756:function(i,d,e){"use strict";var t=e(8090).PROPER,r=e(2291),n=e(80449),o=e(69905),s=e(3338),u=e(81644),c="toString",a=RegExp.prototype,f=a[c],g=s(function(){return f.call({source:"a",flags:"b"})!=="/a/b"}),p=t&&f.name!==c;(g||p)&&r(RegExp.prototype,c,function(){var h=n(this),E=o(h.source),P=o(u(h));return"/"+E+"/"+P},{unsafe:!0})},69772:function(i,d,e){"use strict";var t=e(48059),r=e(40942);t("Set",function(n){return function(){return n(this,arguments.length?arguments[0]:void 0)}},r)},93379:function(i,d,e){"use strict";e(69772)},34932:function(i,d,e){"use strict";var t=e(94488),r=e(95994),n=e(17691);t({target:"String",proto:!0,forced:n("anchor")},{anchor:function(s){return r(this,"a","name",s)}})},62007:function(i,d,e){"use strict";var t=e(94488),r=e(94237),n=e(95955),o=e(56902),s=e(69905),u=e(3338),c=r("".charAt),a=u(function(){return"\u{20BB7}".at(-2)!=="\uD842"});t({target:"String",proto:!0,forced:a},{at:function(g){var p=s(n(this)),b=p.length,h=o(g),E=h>=0?h:b+h;return E<0||E>=b?void 0:c(p,E)}})},81046:function(i,d,e){"use strict";var t=e(94488),r=e(95994),n=e(17691);t({target:"String",proto:!0,forced:n("big")},{big:function(){return r(this,"big","","")}})},85744:function(i,d,e){"use strict";var t=e(94488),r=e(95994),n=e(17691);t({target:"String",proto:!0,forced:n("blink")},{blink:function(){return r(this,"blink","","")}})},13494:function(i,d,e){"use strict";var t=e(94488),r=e(95994),n=e(17691);t({target:"String",proto:!0,forced:n("bold")},{bold:function(){return r(this,"b","","")}})},90572:function(i,d,e){"use strict";var t=e(94488),r=e(13764).codeAt;t({target:"String",proto:!0},{codePointAt:function(o){return r(this,o)}})},37343:function(i,d,e){"use strict";var t=e(94488),r=e(34114),n=e(71256).f,o=e(61578),s=e(69905),u=e(41696),c=e(95955),a=e(86266),f=e(16697),g=r("".endsWith),p=r("".slice),b=Math.min,h=a("endsWith"),E=!f&&!h&&!!function(){var P=n(String.prototype,"endsWith");return P&&!P.writable}();t({target:"String",proto:!0,forced:!E&&!h},{endsWith:function(A){var I=s(c(this));u(A);var C=arguments.length>1?arguments[1]:void 0,O=I.length,T=C===void 0?O:b(o(C),O),D=s(A);return g?g(I,D,T):p(I,T-D.length,T)===D}})},56338:function(i,d,e){"use strict";var t=e(94488),r=e(95994),n=e(17691);t({target:"String",proto:!0,forced:n("fixed")},{fixed:function(){return r(this,"tt","","")}})},66755:function(i,d,e){"use strict";var t=e(94488),r=e(95994),n=e(17691);t({target:"String",proto:!0,forced:n("fontcolor")},{fontcolor:function(s){return r(this,"font","color",s)}})},68709:function(i,d,e){"use strict";var t=e(94488),r=e(95994),n=e(17691);t({target:"String",proto:!0,forced:n("fontsize")},{fontsize:function(s){return r(this,"font","size",s)}})},45945:function(i,d,e){"use strict";var t=e(94488),r=e(94237),n=e(51981),o=RangeError,s=String.fromCharCode,u=String.fromCodePoint,c=r([].join),a=!!u&&u.length!==1;t({target:"String",stat:!0,arity:1,forced:a},{fromCodePoint:function(g){for(var p=[],b=arguments.length,h=0,E;b>h;){if(E=+arguments[h++],n(E,1114111)!==E)throw new o(E+" is not a valid code point");p[h]=E<65536?s(E):s(((E-=65536)>>10)+55296,E%1024+56320)}return c(p,"")}})},75551:function(i,d,e){"use strict";var t=e(94488),r=e(94237),n=e(41696),o=e(95955),s=e(69905),u=e(86266),c=r("".indexOf);t({target:"String",proto:!0,forced:!u("includes")},{includes:function(f){return!!~c(s(o(this)),s(n(f)),arguments.length>1?arguments[1]:void 0)}})},32493:function(i,d,e){"use strict";var t=e(94488),r=e(94237),n=e(95955),o=e(69905),s=r("".charCodeAt);t({target:"String",proto:!0},{isWellFormed:function(){for(var c=o(n(this)),a=c.length,f=0;f=56320||++f>=a||(s(c,f)&64512)!==56320))return!1}return!0}})},4939:function(i,d,e){"use strict";var t=e(94488),r=e(95994),n=e(17691);t({target:"String",proto:!0,forced:n("italics")},{italics:function(){return r(this,"i","","")}})},20852:function(i,d,e){"use strict";var t=e(13764).charAt,r=e(69905),n=e(94844),o=e(24019),s=e(25587),u="String Iterator",c=n.set,a=n.getterFor(u);o(String,"String",function(f){c(this,{type:u,string:r(f),index:0})},function(){var g=a(this),p=g.string,b=g.index,h;return b>=p.length?s(void 0,!0):(h=t(p,b),g.index+=h.length,s(h,!1))})},81927:function(i,d,e){"use strict";var t=e(94488),r=e(95994),n=e(17691);t({target:"String",proto:!0,forced:n("link")},{link:function(s){return r(this,"a","href",s)}})},18827:function(i,d,e){"use strict";var t=e(94488),r=e(89945),n=e(34114),o=e(83126),s=e(25587),u=e(95955),c=e(61578),a=e(69905),f=e(80449),g=e(4112),p=e(29076),b=e(44639),h=e(81644),E=e(53776),P=e(2291),A=e(3338),I=e(59893),C=e(60473),O=e(52216),T=e(94338),D=e(94844),k=e(16697),$=I("matchAll"),L="RegExp String",R=L+" Iterator",z=D.set,N=D.getterFor(R),V=RegExp.prototype,j=TypeError,Y=n("".indexOf),G=n("".matchAll),J=!!G&&!A(function(){G("a",/./)}),Q=o(function(M,B,H,ee){z(this,{type:R,regexp:M,string:B,global:H,unicode:ee,done:!1})},L,function(){var M=N(this);if(M.done)return s(void 0,!0);var B=M.regexp,H=M.string,ee=T(B,H);return ee===null?(M.done=!0,s(void 0,!0)):M.global?(a(ee[0])===""&&(B.lastIndex=O(H,c(B.lastIndex),M.unicode)),s(ee,!1)):(M.done=!0,s(ee,!1))}),Z=function(K){var M=f(this),B=a(K),H=C(M,RegExp),ee=a(h(M)),ae,le,pe;return ae=new H(H===RegExp?M.source:M,ee),le=!!~Y(ee,"g"),pe=!!~Y(ee,"u"),ae.lastIndex=c(M.lastIndex),new Q(ae,B,le,pe)};t({target:"String",proto:!0,forced:J},{matchAll:function(M){var B=u(this),H,ee,ae,le;if(g(M)){if(J)return G(B,M)}else{if(b(M)&&(H=a(u(h(M))),!~Y(H,"g")))throw new j("`.matchAll` does not allow non-global regexes");if(J)return G(B,M);if(ae=E(M,$),ae===void 0&&k&&p(M)==="RegExp"&&(ae=Z),ae)return r(ae,M,B)}return ee=a(B),le=new RegExp(M,"g"),k?r(Z,le,ee):le[$](ee)}}),k||$ in V||P(V,$,Z)},46302:function(i,d,e){"use strict";var t=e(89945),r=e(8662),n=e(80449),o=e(4112),s=e(61578),u=e(69905),c=e(95955),a=e(53776),f=e(52216),g=e(94338);r("match",function(p,b,h){return[function(P){var A=c(this),I=o(P)?void 0:a(P,p);return I?t(I,P,A):new RegExp(P)[p](u(A))},function(E){var P=n(this),A=u(E),I=h(b,P,A);if(I.done)return I.value;if(!P.global)return g(P,A);var C=P.unicode;P.lastIndex=0;for(var O=[],T=0,D;(D=g(P,A))!==null;){var k=u(D[0]);O[T]=k,k===""&&(P.lastIndex=f(A,s(P.lastIndex),C)),T++}return T===0?null:O}]})},76718:function(i,d,e){"use strict";var t=e(94488),r=e(85571).end,n=e(98352);t({target:"String",proto:!0,forced:n},{padEnd:function(s){return r(this,s,arguments.length>1?arguments[1]:void 0)}})},79172:function(i,d,e){"use strict";var t=e(94488),r=e(85571).start,n=e(98352);t({target:"String",proto:!0,forced:n},{padStart:function(s){return r(this,s,arguments.length>1?arguments[1]:void 0)}})},32192:function(i,d,e){"use strict";var t=e(94488),r=e(94237),n=e(80524),o=e(94029),s=e(69905),u=e(82762),c=r([].push),a=r([].join);t({target:"String",stat:!0},{raw:function(g){var p=n(o(g).raw),b=u(p);if(!b)return"";for(var h=arguments.length,E=[],P=0;;){if(c(E,s(p[P++])),P===b)return a(E,"");PD.length?-1:k===""?$:A(D,k,$)};t({target:"String",proto:!0},{replaceAll:function(k,$){var L=o(this),R,z,N,V,j,Y,G,J,Q,Z=0,K=0,M="";if(!u(k)){if(R=c(k),R&&(z=a(o(g(k))),!~A(z,"g")))throw new P("`.replaceAll` does not allow non-global regexes");if(N=f(k,E),N)return r(N,k,L,$);if(h&&R)return I(a(L),k,$)}for(V=a(L),j=a(k),Y=s($),Y||($=a($)),G=j.length,J=O(1,G),Z=T(V,j,0);Z!==-1;)Q=Y?a($(j,Z,V)):p(j,V,Z,[],void 0,$),M+=C(V,K,Z)+Q,K=Z+G,Z=T(V,j,Z+J);return K")!=="7"});o("replace",function(j,Y,G){var J=N?"$":"$0";return[function(Z,K){var M=b(this),B=a(Z)?void 0:E(Z,C);return B?r(B,Z,M,K):r(Y,p(M),Z,K)},function(Q,Z){var K=u(this),M=p(Q);if(typeof Z=="string"&&$(Z,J)===-1&&$(Z,"$<")===-1){var B=G(Y,K,M,Z);if(B.done)return B.value}var H=c(Z);H||(Z=p(Z));var ee=K.global,ae;ee&&(ae=K.unicode,K.lastIndex=0);for(var le=[],pe;pe=A(K,M),!(pe===null||(k(le,pe),!ee));){var ve=p(pe[0]);ve===""&&(K.lastIndex=h(M,g(K.lastIndex),ae))}for(var He="",ze=0,rt=0;rt=ze&&(He+=L(M,ze,yt)+ge,ze=yt+ot.length)}return He+L(M,ze)}]},!V||!z||N)},62925:function(i,d,e){"use strict";var t=e(89945),r=e(8662),n=e(80449),o=e(4112),s=e(95955),u=e(5370),c=e(69905),a=e(53776),f=e(94338);r("search",function(g,p,b){return[function(E){var P=s(this),A=o(E)?void 0:a(E,g);return A?t(A,E,P):new RegExp(E)[g](c(P))},function(h){var E=n(this),P=c(h),A=b(p,E,P);if(A.done)return A.value;var I=E.lastIndex;u(I,0)||(E.lastIndex=0);var C=f(E,P);return u(E.lastIndex,I)||(E.lastIndex=I),C===null?-1:C.index}]})},60462:function(i,d,e){"use strict";var t=e(94488),r=e(95994),n=e(17691);t({target:"String",proto:!0,forced:n("small")},{small:function(){return r(this,"small","","")}})},9595:function(i,d,e){"use strict";var t=e(13743),r=e(89945),n=e(94237),o=e(8662),s=e(80449),u=e(4112),c=e(44639),a=e(95955),f=e(60473),g=e(52216),p=e(61578),b=e(69905),h=e(53776),E=e(71698),P=e(94338),A=e(88736),I=e(19286),C=e(3338),O=I.UNSUPPORTED_Y,T=4294967295,D=Math.min,k=[].push,$=n(/./.exec),L=n(k),R=n("".slice),z=!C(function(){var N=/(?:)/,V=N.exec;N.exec=function(){return V.apply(this,arguments)};var j="ab".split(N);return j.length!==2||j[0]!=="a"||j[1]!=="b"});o("split",function(N,V,j){var Y;return"abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length?Y=function(G,J){var Q=b(a(this)),Z=J===void 0?T:J>>>0;if(Z===0)return[];if(G===void 0)return[Q];if(!c(G))return r(V,Q,G,Z);for(var K=[],M=(G.ignoreCase?"i":"")+(G.multiline?"m":"")+(G.unicode?"u":"")+(G.sticky?"y":""),B=0,H=new RegExp(G.source,M+"g"),ee,ae,le;(ee=r(A,H,Q))&&(ae=H.lastIndex,!(ae>B&&(L(K,R(Q,B,ee.index)),ee.length>1&&ee.index=Z)));)H.lastIndex===ee.index&&H.lastIndex++;return B===Q.length?(le||!$(H,""))&&L(K,""):L(K,R(Q,B)),K.length>Z?E(K,0,Z):K}:"0".split(void 0,0).length?Y=function(G,J){return G===void 0&&J===0?[]:r(V,this,G,J)}:Y=V,[function(J,Q){var Z=a(this),K=u(J)?void 0:h(J,N);return K?r(K,J,Z,Q):r(Y,b(Z),J,Q)},function(G,J){var Q=s(this),Z=b(G),K=j(Y,Q,Z,J,Y!==V);if(K.done)return K.value;var M=f(Q,RegExp),B=Q.unicode,H=(Q.ignoreCase?"i":"")+(Q.multiline?"m":"")+(Q.unicode?"u":"")+(O?"g":"y"),ee=new M(O?"^(?:"+Q.source+")":Q,H),ae=J===void 0?T:J>>>0;if(ae===0)return[];if(Z.length===0)return P(ee,Z)===null?[Z]:[];for(var le=0,pe=0,ve=[];pe1?arguments[1]:void 0,I.length)),O=s(A);return g?g(I,O,C):p(I,C,C+O.length)===O}})},72571:function(i,d,e){"use strict";var t=e(94488),r=e(95994),n=e(17691);t({target:"String",proto:!0,forced:n("strike")},{strike:function(){return r(this,"strike","","")}})},71200:function(i,d,e){"use strict";var t=e(94488),r=e(95994),n=e(17691);t({target:"String",proto:!0,forced:n("sub")},{sub:function(){return r(this,"sub","","")}})},70917:function(i,d,e){"use strict";var t=e(94488),r=e(94237),n=e(95955),o=e(56902),s=e(69905),u=r("".slice),c=Math.max,a=Math.min,f=!"".substr||"ab".substr(-1)!=="b";t({target:"String",proto:!0,forced:f},{substr:function(p,b){var h=s(n(this)),E=h.length,P=o(p),A,I;return P===1/0&&(P=0),P<0&&(P=c(E+P,0)),A=b===void 0?E:o(b),A<=0||A===1/0?"":(I=a(P+A,E),P>=I?"":u(h,P,I))}})},85767:function(i,d,e){"use strict";var t=e(94488),r=e(95994),n=e(17691);t({target:"String",proto:!0,forced:n("sup")},{sup:function(){return r(this,"sup","","")}})},53427:function(i,d,e){"use strict";var t=e(94488),r=e(89945),n=e(94237),o=e(95955),s=e(69905),u=e(3338),c=Array,a=n("".charAt),f=n("".charCodeAt),g=n([].join),p="".toWellFormed,b="\uFFFD",h=p&&u(function(){return r(p,1)!=="1"});t({target:"String",proto:!0,forced:h},{toWellFormed:function(){var P=s(o(this));if(h)return r(p,P);for(var A=P.length,I=c(A),C=0;C=56320||C+1>=A||(f(P,C+1)&64512)!==56320?I[C]=b:(I[C]=a(P,C),I[++C]=a(P,C))}return g(I,"")}})},49257:function(i,d,e){"use strict";e(20189);var t=e(94488),r=e(9591);t({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==r},{trimEnd:r})},93980:function(i,d,e){"use strict";var t=e(94488),r=e(27374);t({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==r},{trimLeft:r})},20189:function(i,d,e){"use strict";var t=e(94488),r=e(9591);t({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==r},{trimRight:r})},72910:function(i,d,e){"use strict";e(93980);var t=e(94488),r=e(27374);t({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==r},{trimStart:r})},70878:function(i,d,e){"use strict";var t=e(94488),r=e(52971).trim,n=e(18105);t({target:"String",proto:!0,forced:n("trim")},{trim:function(){return r(this)}})},64003:function(i,d,e){"use strict";var t=e(94674);t("asyncIterator")},39161:function(i,d,e){"use strict";var t=e(94488),r=e(92916),n=e(89945),o=e(94237),s=e(16697),u=e(35454),c=e(42820),a=e(3338),f=e(32621),g=e(16332),p=e(80449),b=e(80524),h=e(17818),E=e(69905),P=e(35012),A=e(20132),I=e(7733),C=e(80689),O=e(53393),T=e(92635),D=e(71256),k=e(37691),$=e(55666),L=e(27597),R=e(2291),z=e(64110),N=e(77898),V=e(11898),j=e(54406),Y=e(6145),G=e(59893),J=e(38282),Q=e(94674),Z=e(14311),K=e(94573),M=e(94844),B=e(90560).forEach,H=V("hidden"),ee="Symbol",ae="prototype",le=M.set,pe=M.getterFor(ee),ve=Object[ae],He=r.Symbol,ze=He&&He[ae],rt=r.RangeError,ot=r.TypeError,yt=r.QObject,St=D.f,ge=k.f,Be=O.f,Xe=L.f,tt=o([].push),Tt=N("symbols"),Pt=N("op-symbols"),je=N("wks"),xe=!yt||!yt[ae]||!yt[ae].findChild,Ce=function(ke,xt,ct){var ft=St(ve,xt);ft&&delete ve[xt],ge(ke,xt,ct),ft&&ke!==ve&&ge(ve,xt,ft)},Le=u&&a(function(){return A(ge({},"a",{get:function(){return ge(this,"a",{value:7}).a}})).a!==7})?Ce:ge,Re=function(ke,xt){var ct=Tt[ke]=A(ze);return le(ct,{type:ee,tag:ke,description:xt}),u||(ct.description=xt),ct},Ke=function(xt,ct,ft){xt===ve&&Ke(Pt,ct,ft),p(xt);var st=h(ct);return p(ft),f(Tt,st)?(ft.enumerable?(f(xt,H)&&xt[H][st]&&(xt[H][st]=!1),ft=A(ft,{enumerable:P(0,!1)})):(f(xt,H)||ge(xt,H,P(1,{})),xt[H][st]=!0),Le(xt,st,ft)):ge(xt,st,ft)},Ne=function(xt,ct){p(xt);var ft=b(ct),st=I(ft).concat(me(ft));return B(st,function(Zt){(!u||n(Je,ft,Zt))&&Ke(xt,Zt,ft[Zt])}),xt},et=function(xt,ct){return ct===void 0?A(xt):Ne(A(xt),ct)},Je=function(xt){var ct=h(xt),ft=n(Xe,this,ct);return this===ve&&f(Tt,ct)&&!f(Pt,ct)?!1:ft||!f(this,ct)||!f(Tt,ct)||f(this,H)&&this[H][ct]?ft:!0},jt=function(xt,ct){var ft=b(xt),st=h(ct);if(!(ft===ve&&f(Tt,st)&&!f(Pt,st))){var Zt=St(ft,st);return Zt&&f(Tt,st)&&!(f(ft,H)&&ft[H][st])&&(Zt.enumerable=!0),Zt}},Gt=function(xt){var ct=Be(b(xt)),ft=[];return B(ct,function(st){!f(Tt,st)&&!f(j,st)&&tt(ft,st)}),ft},me=function(ke){var xt=ke===ve,ct=Be(xt?Pt:b(ke)),ft=[];return B(ct,function(st){f(Tt,st)&&(!xt||f(ve,st))&&tt(ft,Tt[st])}),ft};c||(He=function(){if(g(ze,this))throw new ot("Symbol is not a constructor");var xt=!arguments.length||arguments[0]===void 0?void 0:E(arguments[0]),ct=Y(xt),ft=function(st){var Zt=this===void 0?r:this;Zt===ve&&n(ft,Pt,st),f(Zt,H)&&f(Zt[H],ct)&&(Zt[H][ct]=!1);var it=P(1,st);try{Le(Zt,ct,it)}catch(ce){if(!(ce instanceof rt))throw ce;Ce(Zt,ct,it)}};return u&&xe&&Le(ve,ct,{configurable:!0,set:ft}),Re(ct,xt)},ze=He[ae],R(ze,"toString",function(){return pe(this).tag}),R(He,"withoutSetter",function(ke){return Re(Y(ke),ke)}),L.f=Je,k.f=Ke,$.f=Ne,D.f=jt,C.f=O.f=Gt,T.f=me,J.f=function(ke){return Re(G(ke),ke)},u&&(z(ze,"description",{configurable:!0,get:function(){return pe(this).description}}),s||R(ve,"propertyIsEnumerable",Je,{unsafe:!0}))),t({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:He}),B(I(je),function(ke){Q(ke)}),t({target:ee,stat:!0,forced:!c},{useSetter:function(){xe=!0},useSimple:function(){xe=!1}}),t({target:"Object",stat:!0,forced:!c,sham:!u},{create:et,defineProperty:Ke,defineProperties:Ne,getOwnPropertyDescriptor:jt}),t({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:Gt}),Z(),K(He,ee),j[H]=!0},44852:function(i,d,e){"use strict";var t=e(94488),r=e(35454),n=e(92916),o=e(94237),s=e(32621),u=e(55327),c=e(16332),a=e(69905),f=e(64110),g=e(24538),p=n.Symbol,b=p&&p.prototype;if(r&&u(p)&&(!("description"in b)||p().description!==void 0)){var h={},E=function(){var k=arguments.length<1||arguments[0]===void 0?void 0:a(arguments[0]),$=c(b,this)?new p(k):k===void 0?p():p(k);return k===""&&(h[$]=!0),$};g(E,p),E.prototype=b,b.constructor=E;var P=String(p("description detection"))==="Symbol(description detection)",A=o(b.valueOf),I=o(b.toString),C=/^Symbol\((.*)\)[^)]+$/,O=o("".replace),T=o("".slice);f(b,"description",{configurable:!0,get:function(){var k=A(this);if(s(h,k))return"";var $=I(k),L=P?T($,7,-1):O($,C,"$1");return L===""?void 0:L}}),t({global:!0,constructor:!0,forced:!0},{Symbol:E})}},54524:function(i,d,e){"use strict";var t=e(94488),r=e(65911),n=e(32621),o=e(69905),s=e(77898),u=e(60798),c=s("string-to-symbol-registry"),a=s("symbol-to-string-registry");t({target:"Symbol",stat:!0,forced:!u},{for:function(f){var g=o(f);if(n(c,g))return c[g];var p=r("Symbol")(g);return c[g]=p,a[p]=g,p}})},17898:function(i,d,e){"use strict";var t=e(94674);t("hasInstance")},40902:function(i,d,e){"use strict";var t=e(94674);t("isConcatSpreadable")},2259:function(i,d,e){"use strict";var t=e(94674);t("iterator")},68557:function(i,d,e){"use strict";e(39161),e(54524),e(32340),e(54226),e(67936)},32340:function(i,d,e){"use strict";var t=e(94488),r=e(32621),n=e(18446),o=e(40593),s=e(77898),u=e(60798),c=s("symbol-to-string-registry");t({target:"Symbol",stat:!0,forced:!u},{keyFor:function(f){if(!n(f))throw new TypeError(o(f)+" is not a symbol");if(r(c,f))return c[f]}})},69811:function(i,d,e){"use strict";var t=e(94674);t("matchAll")},14589:function(i,d,e){"use strict";var t=e(94674);t("match")},18114:function(i,d,e){"use strict";var t=e(94674);t("replace")},23844:function(i,d,e){"use strict";var t=e(94674);t("search")},39581:function(i,d,e){"use strict";var t=e(94674);t("species")},40632:function(i,d,e){"use strict";var t=e(94674);t("split")},22690:function(i,d,e){"use strict";var t=e(94674),r=e(14311);t("toPrimitive"),r()},7786:function(i,d,e){"use strict";var t=e(65911),r=e(94674),n=e(94573);r("toStringTag"),n(t("Symbol"),"Symbol")},99062:function(i,d,e){"use strict";var t=e(94674);t("unscopables")},35246:function(i,d,e){"use strict";var t=e(58261),r=e(82762),n=e(56902),o=t.aTypedArray,s=t.exportTypedArrayMethod;s("at",function(c){var a=o(this),f=r(a),g=n(c),p=g>=0?g:f+g;return p<0||p>=f?void 0:a[p]})},83470:function(i,d,e){"use strict";var t=e(94237),r=e(58261),n=e(92670),o=t(n),s=r.aTypedArray,u=r.exportTypedArrayMethod;u("copyWithin",function(a,f){return o(s(this),a,f,arguments.length>2?arguments[2]:void 0)})},79641:function(i,d,e){"use strict";var t=e(58261),r=e(90560).every,n=t.aTypedArray,o=t.exportTypedArrayMethod;o("every",function(u){return r(n(this),u,arguments.length>1?arguments[1]:void 0)})},72397:function(i,d,e){"use strict";var t=e(58261),r=e(75202),n=e(93303),o=e(97607),s=e(89945),u=e(94237),c=e(3338),a=t.aTypedArray,f=t.exportTypedArrayMethod,g=u("".slice),p=c(function(){var b=0;return new Int8Array(2).fill({valueOf:function(){return b++}}),b!==1});f("fill",function(h){var E=arguments.length;a(this);var P=g(o(this),0,3)==="Big"?n(h):+h;return s(r,this,P,E>1?arguments[1]:void 0,E>2?arguments[2]:void 0)},p)},24860:function(i,d,e){"use strict";var t=e(58261),r=e(90560).filter,n=e(27607),o=t.aTypedArray,s=t.exportTypedArrayMethod;s("filter",function(c){var a=r(o(this),c,arguments.length>1?arguments[1]:void 0);return n(this,a)})},56233:function(i,d,e){"use strict";var t=e(58261),r=e(90560).findIndex,n=t.aTypedArray,o=t.exportTypedArrayMethod;o("findIndex",function(u){return r(n(this),u,arguments.length>1?arguments[1]:void 0)})},64344:function(i,d,e){"use strict";var t=e(58261),r=e(53279).findLastIndex,n=t.aTypedArray,o=t.exportTypedArrayMethod;o("findLastIndex",function(u){return r(n(this),u,arguments.length>1?arguments[1]:void 0)})},59419:function(i,d,e){"use strict";var t=e(58261),r=e(53279).findLast,n=t.aTypedArray,o=t.exportTypedArrayMethod;o("findLast",function(u){return r(n(this),u,arguments.length>1?arguments[1]:void 0)})},19320:function(i,d,e){"use strict";var t=e(58261),r=e(90560).find,n=t.aTypedArray,o=t.exportTypedArrayMethod;o("find",function(u){return r(n(this),u,arguments.length>1?arguments[1]:void 0)})},84432:function(i,d,e){"use strict";var t=e(69733);t("Float32",function(r){return function(o,s,u){return r(this,o,s,u)}})},59022:function(i,d,e){"use strict";var t=e(69733);t("Float64",function(r){return function(o,s,u){return r(this,o,s,u)}})},5316:function(i,d,e){"use strict";var t=e(58261),r=e(90560).forEach,n=t.aTypedArray,o=t.exportTypedArrayMethod;o("forEach",function(u){r(n(this),u,arguments.length>1?arguments[1]:void 0)})},93744:function(i,d,e){"use strict";var t=e(59627),r=e(58261).exportTypedArrayStaticMethod,n=e(50706);r("from",n,t)},19299:function(i,d,e){"use strict";var t=e(58261),r=e(22999).includes,n=t.aTypedArray,o=t.exportTypedArrayMethod;o("includes",function(u){return r(n(this),u,arguments.length>1?arguments[1]:void 0)})},15286:function(i,d,e){"use strict";var t=e(58261),r=e(22999).indexOf,n=t.aTypedArray,o=t.exportTypedArrayMethod;o("indexOf",function(u){return r(n(this),u,arguments.length>1?arguments[1]:void 0)})},51054:function(i,d,e){"use strict";var t=e(69733);t("Int16",function(r){return function(o,s,u){return r(this,o,s,u)}})},60330:function(i,d,e){"use strict";var t=e(69733);t("Int32",function(r){return function(o,s,u){return r(this,o,s,u)}})},19363:function(i,d,e){"use strict";var t=e(69733);t("Int8",function(r){return function(o,s,u){return r(this,o,s,u)}})},91927:function(i,d,e){"use strict";var t=e(92916),r=e(3338),n=e(94237),o=e(58261),s=e(11005),u=e(59893),c=u("iterator"),a=t.Uint8Array,f=n(s.values),g=n(s.keys),p=n(s.entries),b=o.aTypedArray,h=o.exportTypedArrayMethod,E=a&&a.prototype,P=!r(function(){E[c].call([1])}),A=!!E&&E.values&&E[c]===E.values&&E.values.name==="values",I=function(){return f(b(this))};h("entries",function(){return p(b(this))},P),h("keys",function(){return g(b(this))},P),h("values",I,P||!A,{name:"values"}),h(c,I,P||!A,{name:"values"})},27730:function(i,d,e){"use strict";var t=e(58261),r=e(94237),n=t.aTypedArray,o=t.exportTypedArrayMethod,s=r([].join);o("join",function(c){return s(n(this),c)})},58707:function(i,d,e){"use strict";var t=e(58261),r=e(13743),n=e(55009),o=t.aTypedArray,s=t.exportTypedArrayMethod;s("lastIndexOf",function(c){var a=arguments.length;return r(n,o(this),a>1?[c,arguments[1]]:[c])})},41356:function(i,d,e){"use strict";var t=e(58261),r=e(90560).map,n=e(31384),o=t.aTypedArray,s=t.exportTypedArrayMethod;s("map",function(c){return r(o(this),c,arguments.length>1?arguments[1]:void 0,function(a,f){return new(n(a))(f)})})},51606:function(i,d,e){"use strict";var t=e(58261),r=e(59627),n=t.aTypedArrayConstructor,o=t.exportTypedArrayStaticMethod;o("of",function(){for(var u=0,c=arguments.length,a=new(n(this))(c);c>u;)a[u]=arguments[u++];return a},r)},38458:function(i,d,e){"use strict";var t=e(58261),r=e(16370).right,n=t.aTypedArray,o=t.exportTypedArrayMethod;o("reduceRight",function(u){var c=arguments.length;return r(n(this),u,c,c>1?arguments[1]:void 0)})},8966:function(i,d,e){"use strict";var t=e(58261),r=e(16370).left,n=t.aTypedArray,o=t.exportTypedArrayMethod;o("reduce",function(u){var c=arguments.length;return r(n(this),u,c,c>1?arguments[1]:void 0)})},71957:function(i,d,e){"use strict";var t=e(58261),r=t.aTypedArray,n=t.exportTypedArrayMethod,o=Math.floor;n("reverse",function(){for(var u=this,c=r(u).length,a=o(c/2),f=0,g;f1?arguments[1]:void 0,1),O=u(I);if(E)return r(p,this,O,C);var T=this.length,D=o(O),k=0;if(D+C>T)throw new a("Wrong length");for(;kh;)P[h]=p[h++];return P},c)},96519:function(i,d,e){"use strict";var t=e(58261),r=e(90560).some,n=t.aTypedArray,o=t.exportTypedArrayMethod;o("some",function(u){return r(n(this),u,arguments.length>1?arguments[1]:void 0)})},95576:function(i,d,e){"use strict";var t=e(92916),r=e(34114),n=e(3338),o=e(63335),s=e(63668),u=e(58261),c=e(78177),a=e(17687),f=e(46573),g=e(19684),p=u.aTypedArray,b=u.exportTypedArrayMethod,h=t.Uint16Array,E=h&&r(h.prototype.sort),P=!!E&&!(n(function(){E(new h(2),null)})&&n(function(){E(new h(2),{})})),A=!!E&&!n(function(){if(f)return f<74;if(c)return c<67;if(a)return!0;if(g)return g<602;var C=new h(516),O=Array(516),T,D;for(T=0;T<516;T++)D=T%4,C[T]=515-T,O[T]=T-2*D+3;for(E(C,function(k,$){return(k/4|0)-($/4|0)}),T=0;T<516;T++)if(C[T]!==O[T])return!0}),I=function(C){return function(O,T){return C!==void 0?+C(O,T)||0:T!==T?-1:O!==O?1:O===0&&T===0?1/O>0&&1/T<0?1:-1:O>T}};b("sort",function(O){return O!==void 0&&o(O),A?E(this,O):s(p(this),I(O))},!A||P)},63079:function(i,d,e){"use strict";var t=e(58261),r=e(61578),n=e(51981),o=e(31384),s=t.aTypedArray,u=t.exportTypedArrayMethod;u("subarray",function(a,f){var g=s(this),p=g.length,b=n(a,p),h=o(g);return new h(g.buffer,g.byteOffset+b*g.BYTES_PER_ELEMENT,r((f===void 0?p:n(f,p))-b))})},8995:function(i,d,e){"use strict";var t=e(92916),r=e(13743),n=e(58261),o=e(3338),s=e(30867),u=t.Int8Array,c=n.aTypedArray,a=n.exportTypedArrayMethod,f=[].toLocaleString,g=!!u&&o(function(){f.call(new u(1))}),p=o(function(){return[1,2].toLocaleString()!==new u([1,2]).toLocaleString()})||!o(function(){u.prototype.toLocaleString.call([1,2])});a("toLocaleString",function(){return r(f,g?s(c(this)):c(this),s(arguments))},p)},23080:function(i,d,e){"use strict";var t=e(85903),r=e(58261),n=r.aTypedArray,o=r.exportTypedArrayMethod,s=r.getTypedArrayConstructor;o("toReversed",function(){return t(n(this),s(this))})},74701:function(i,d,e){"use strict";var t=e(58261),r=e(94237),n=e(63335),o=e(69478),s=t.aTypedArray,u=t.getTypedArrayConstructor,c=t.exportTypedArrayMethod,a=r(t.TypedArrayPrototype.sort);c("toSorted",function(g){g!==void 0&&n(g);var p=s(this),b=o(u(p),p);return a(b,g)})},91809:function(i,d,e){"use strict";var t=e(58261).exportTypedArrayMethod,r=e(3338),n=e(92916),o=e(94237),s=n.Uint8Array,u=s&&s.prototype||{},c=[].toString,a=o([].join);r(function(){c.call({})})&&(c=function(){return a(this)});var f=u.toString!==c;t("toString",c,f)},64336:function(i,d,e){"use strict";var t=e(69733);t("Uint16",function(r){return function(o,s,u){return r(this,o,s,u)}})},63914:function(i,d,e){"use strict";var t=e(69733);t("Uint32",function(r){return function(o,s,u){return r(this,o,s,u)}})},55234:function(i,d,e){"use strict";var t=e(69733);t("Uint8",function(r){return function(o,s,u){return r(this,o,s,u)}})},88104:function(i,d,e){"use strict";var t=e(69733);t("Uint8",function(r){return function(o,s,u){return r(this,o,s,u)}},!0)},77517:function(i,d,e){"use strict";var t=e(82041),r=e(58261),n=e(75406),o=e(56902),s=e(93303),u=r.aTypedArray,c=r.getTypedArrayConstructor,a=r.exportTypedArrayMethod,f=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(g){return g===8}}();a("with",function(g,p){var b=u(this),h=o(g),E=n(b)?s(p):+p;return t(b,c(b),h,E)},!f)},30149:function(i,d,e){"use strict";var t=e(94488),r=e(94237),n=e(69905),o=String.fromCharCode,s=r("".charAt),u=r(/./.exec),c=r("".slice),a=/^[\da-f]{2}$/i,f=/^[\da-f]{4}$/i;t({global:!0},{unescape:function(p){for(var b=n(p),h="",E=b.length,P=0,A,I;P1?arguments[1]:void 0)}}),n("filterOut")},55885:function(i,d,e){"use strict";var t=e(94488),r=e(90560).filterReject,n=e(81181);t({target:"Array",proto:!0,forced:!0},{filterReject:function(s){return r(this,s,arguments.length>1?arguments[1]:void 0)}}),n("filterReject")},91130:function(i,d,e){"use strict";var t=e(94488),r=e(32278);t({target:"Array",stat:!0},{fromAsync:r})},64963:function(i,d,e){"use strict";var t=e(94488),r=e(45601),n=e(81181),o=e(33940),s=e(16697);t({target:"Array",proto:!0,name:"groupToMap",forced:s||!r("groupByToMap")},{groupByToMap:o}),n("groupByToMap")},8604:function(i,d,e){"use strict";var t=e(94488),r=e(36444),n=e(45601),o=e(81181);t({target:"Array",proto:!0,forced:!n("groupBy")},{groupBy:function(u){var c=arguments.length>1?arguments[1]:void 0;return r(this,u,c)}}),o("groupBy")},25178:function(i,d,e){"use strict";var t=e(94488),r=e(81181),n=e(33940),o=e(16697);t({target:"Array",proto:!0,forced:o},{groupToMap:n}),r("groupToMap")},39034:function(i,d,e){"use strict";var t=e(94488),r=e(36444),n=e(81181);t({target:"Array",proto:!0},{group:function(s){var u=arguments.length>1?arguments[1]:void 0;return r(this,s,u)}}),n("group")},1905:function(i,d,e){"use strict";var t=e(94488),r=e(18589),n=Object.isFrozen,o=function(s,u){if(!n||!r(s)||!n(s))return!1;for(var c=0,a=s.length,f;c1?arguments[1]:!1);return n([c&255,c>>8&255],10)}})},93236:function(i,d,e){"use strict";var t=e(94488),r=e(94237),n=r(DataView.prototype.getUint8);t({target:"DataView",proto:!0,forced:!0},{getUint8Clamped:function(s){return n(this,s)}})},42212:function(i,d,e){"use strict";var t=e(94488),r=e(94237),n=e(97607),o=e(24225),s=e(61618).pack,u=e(35175),c=TypeError,a=r(DataView.prototype.setUint16);t({target:"DataView",proto:!0},{setFloat16:function(g,p){if(n(this)!=="DataView")throw new c("Incorrect receiver");var b=o(g),h=s(u(p),10,2);return a(this,b,h[1]<<8|h[0],arguments.length>2?arguments[2]:!1)}})},63923:function(i,d,e){"use strict";var t=e(94488),r=e(94237),n=e(97607),o=e(24225),s=e(86350),u=TypeError,c=r(DataView.prototype.setUint8);t({target:"DataView",proto:!0,forced:!0},{setUint8Clamped:function(f,g){if(n(this)!=="DataView")throw new u("Incorrect receiver");var p=o(f);return c(this,p,s(g))}})},2278:function(i,d,e){"use strict";var t=e(94488),r=e(35454),n=e(65911),o=e(63335),s=e(56472),u=e(2291),c=e(66477),a=e(64110),f=e(59893),g=e(94844),p=e(5978),b=n("SuppressedError"),h=ReferenceError,E=f("dispose"),P=f("toStringTag"),A="DisposableStack",I=g.set,C=g.getterFor(A),O="sync-dispose",T="disposed",D="pending",k=function(R){var z=C(R);if(z.state===T)throw new h(A+" already disposed");return z},$=function(){I(s(this,L),{type:A,state:D,stack:[]}),r||(this.disposed=!1)},L=$.prototype;c(L,{dispose:function(){var z=C(this);if(z.state!==T){z.state=T,r||(this.disposed=!0);for(var N=z.stack,V=N.length,j=!1,Y;V;){var G=N[--V];N[V]=null;try{G()}catch(J){j?Y=new b(J,Y):(j=!0,Y=J)}}if(z.stack=null,j)throw Y}},use:function(z){return p(k(this),z,O),z},adopt:function(z,N){var V=k(this);return o(N),p(V,void 0,O,function(){N(z)}),z},defer:function(z){var N=k(this);o(z),p(N,void 0,O,z)},move:function(){var z=k(this),N=new $;return C(N).stack=z.stack,z.stack=[],z.state=T,r||(this.disposed=!0),N}}),r&&a(L,"disposed",{configurable:!0,get:function(){return C(this).state===T}}),u(L,E,L.dispose,{name:"dispose"}),u(L,P,A,{nonWritable:!0}),t({global:!0,constructor:!0},{DisposableStack:$})},36955:function(i,d,e){"use strict";var t=e(94488),r=e(47739);t({target:"Function",proto:!0,forced:!0},{demethodize:r})},77326:function(i,d,e){"use strict";var t=e(94488),r=e(94237),n=e(55327),o=e(15212),s=e(32621),u=e(35454),c=Object.getOwnPropertyDescriptor,a=/^\s*class\b/,f=r(a.exec),g=function(p){try{if(!u||!f(a,o(p)))return!1}catch(h){}var b=c(p,"prototype");return!!b&&s(b,"writable")&&!b.writable};t({target:"Function",stat:!0,sham:!0,forced:!0},{isCallable:function(b){return n(b)&&!g(b)}})},53571:function(i,d,e){"use strict";var t=e(94488),r=e(39812);t({target:"Function",stat:!0,forced:!0},{isConstructor:r})},28670:function(i,d,e){"use strict";var t=e(59893),r=e(37691).f,n=t("metadata"),o=Function.prototype;o[n]===void 0&&r(o,n,{value:null})},31050:function(i,d,e){"use strict";var t=e(94488),r=e(47739);t({target:"Function",proto:!0,forced:!0,name:"demethodize"},{unThis:r})},96364:function(i,d,e){"use strict";var t=e(94488),r=e(24771);t({target:"Iterator",name:"indexed",proto:!0,real:!0,forced:!0},{asIndexedPairs:r})},25321:function(i,d,e){"use strict";var t=e(94488),r=e(92916),n=e(56472),o=e(80449),s=e(55327),u=e(53456),c=e(64110),a=e(69392),f=e(3338),g=e(32621),p=e(59893),b=e(46571).IteratorPrototype,h=e(35454),E=e(16697),P="constructor",A="Iterator",I=p("toStringTag"),C=TypeError,O=r[A],T=E||!s(O)||O.prototype!==b||!f(function(){O({})}),D=function(){if(n(this,b),u(this)===b)throw new C("Abstract class Iterator not directly constructable")},k=function($,L){h?c(b,$,{configurable:!0,get:function(){return L},set:function(R){if(o(this),this===b)throw new C("You can't redefine this property");g(this,$)?this[$]=R:a(this,$,R)}}):b[$]=L};g(b,I)||k(I,A),(T||!g(b,P)||b[P]===Object)&&k(P,D),D.prototype=b,t({global:!0,constructor:!0,forced:T},{Iterator:D})},46304:function(i,d,e){"use strict";var t=e(89945),r=e(2291),n=e(53776),o=e(32621),s=e(59893),u=e(46571).IteratorPrototype,c=s("dispose");o(u,c)||r(u,c,function(){var a=n(this,"return");a&&t(a,this)})},55163:function(i,d,e){"use strict";var t=e(94488),r=e(89945),n=e(80449),o=e(10731),s=e(2279),u=e(51358),c=e(20547),a=e(16697),f=c(function(){for(var g=this.iterator,p=this.next,b,h;this.remaining;)if(this.remaining--,b=n(r(p,g)),h=this.done=!!b.done,h)return;if(b=n(r(p,g)),h=this.done=!!b.done,!h)return b.value});t({target:"Iterator",proto:!0,real:!0,forced:a},{drop:function(p){n(this);var b=u(s(+p));return new f(o(this),{remaining:b})}})},78722:function(i,d,e){"use strict";var t=e(94488),r=e(62003),n=e(63335),o=e(80449),s=e(10731);t({target:"Iterator",proto:!0,real:!0},{every:function(c){o(this),n(c);var a=s(this),f=0;return!r(a,function(g,p){if(!c(g,f++))return p()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},35977:function(i,d,e){"use strict";var t=e(94488),r=e(89945),n=e(63335),o=e(80449),s=e(10731),u=e(20547),c=e(46319),a=e(16697),f=u(function(){for(var g=this.iterator,p=this.predicate,b=this.next,h,E,P;;){if(h=o(r(b,g)),E=this.done=!!h.done,E)return;if(P=h.value,c(g,p,[P,this.counter++],!0))return P}});t({target:"Iterator",proto:!0,real:!0,forced:a},{filter:function(p){return o(this),n(p),new f(s(this),{predicate:p})}})},81848:function(i,d,e){"use strict";var t=e(94488),r=e(62003),n=e(63335),o=e(80449),s=e(10731);t({target:"Iterator",proto:!0,real:!0},{find:function(c){o(this),n(c);var a=s(this),f=0;return r(a,function(g,p){if(c(g,f++))return p(g)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},52867:function(i,d,e){"use strict";var t=e(94488),r=e(89945),n=e(63335),o=e(80449),s=e(10731),u=e(7157),c=e(20547),a=e(67996),f=e(16697),g=c(function(){for(var p=this.iterator,b=this.mapper,h,E;;){if(E=this.inner)try{if(h=o(r(E.next,E.iterator)),!h.done)return h.value;this.inner=null}catch(P){a(p,"throw",P)}if(h=o(r(this.next,p)),this.done=!!h.done)return;try{this.inner=u(b(h.value,this.counter++),!1)}catch(P){a(p,"throw",P)}}});t({target:"Iterator",proto:!0,real:!0,forced:f},{flatMap:function(b){return o(this),n(b),new g(s(this),{mapper:b,inner:null})}})},72211:function(i,d,e){"use strict";var t=e(94488),r=e(62003),n=e(63335),o=e(80449),s=e(10731);t({target:"Iterator",proto:!0,real:!0},{forEach:function(c){o(this),n(c);var a=s(this),f=0;r(a,function(g){c(g,f++)},{IS_RECORD:!0})}})},84862:function(i,d,e){"use strict";var t=e(94488),r=e(89945),n=e(94029),o=e(16332),s=e(46571).IteratorPrototype,u=e(20547),c=e(7157),a=e(16697),f=u(function(){return r(this.next,this.iterator)},!0);t({target:"Iterator",stat:!0,forced:a},{from:function(p){var b=c(typeof p=="string"?n(p):p,!0);return o(s,b.iterator)?b.iterator:new f(b)}})},92381:function(i,d,e){"use strict";var t=e(94488),r=e(24771);t({target:"Iterator",proto:!0,real:!0,forced:!0},{indexed:r})},19517:function(i,d,e){"use strict";var t=e(94488),r=e(2155),n=e(16697);t({target:"Iterator",proto:!0,real:!0,forced:n},{map:r})},69667:function(i,d,e){"use strict";var t=e(94488),r=e(17243),n=TypeError;t({target:"Iterator",stat:!0,forced:!0},{range:function(s,u,c){if(typeof s=="number")return new r(s,u,c,"number",0,1);if(typeof s=="bigint")return new r(s,u,c,"bigint",BigInt(0),BigInt(1));throw new n("Incorrect Iterator.range arguments")}})},80820:function(i,d,e){"use strict";var t=e(94488),r=e(62003),n=e(63335),o=e(80449),s=e(10731),u=TypeError;t({target:"Iterator",proto:!0,real:!0},{reduce:function(a){o(this),n(a);var f=s(this),g=arguments.length<2,p=g?void 0:arguments[1],b=0;if(r(f,function(h){g?(g=!1,p=h):p=a(p,h,b),b++},{IS_RECORD:!0}),g)throw new u("Reduce of empty iterator with no initial value");return p}})},87873:function(i,d,e){"use strict";var t=e(94488),r=e(62003),n=e(63335),o=e(80449),s=e(10731);t({target:"Iterator",proto:!0,real:!0},{some:function(c){o(this),n(c);var a=s(this),f=0;return r(a,function(g,p){if(c(g,f++))return p()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},54609:function(i,d,e){"use strict";var t=e(94488),r=e(89945),n=e(80449),o=e(10731),s=e(2279),u=e(51358),c=e(20547),a=e(67996),f=e(16697),g=c(function(){var p=this.iterator;if(!this.remaining--)return this.done=!0,a(p,"normal",void 0);var b=n(r(this.next,p)),h=this.done=!!b.done;if(!h)return b.value});t({target:"Iterator",proto:!0,real:!0,forced:f},{take:function(b){n(this);var h=u(s(+b));return new g(o(this),{remaining:h})}})},28566:function(i,d,e){"use strict";var t=e(94488),r=e(80449),n=e(62003),o=e(10731),s=[].push;t({target:"Iterator",proto:!0,real:!0},{toArray:function(){var c=[];return n(o(r(this)),s,{that:c,IS_RECORD:!0}),c}})},51697:function(i,d,e){"use strict";var t=e(94488),r=e(80449),n=e(57975),o=e(80025),s=e(10731),u=e(16697);t({target:"Iterator",proto:!0,real:!0,forced:u},{toAsync:function(){return new o(s(new n(s(r(this)))))}})},61872:function(i,d,e){"use strict";var t=e(94488),r=e(82778),n=e(83502);t({target:"JSON",stat:!0,forced:!r},{isRawJSON:n})},76077:function(i,d,e){"use strict";var t=e(94488),r=e(35454),n=e(92916),o=e(65911),s=e(94237),u=e(89945),c=e(55327),a=e(31946),f=e(18589),g=e(32621),p=e(69905),b=e(82762),h=e(69392),E=e(3338),P=e(70913),A=e(42820),I=n.JSON,C=n.Number,O=n.SyntaxError,T=I&&I.parse,D=o("Object","keys"),k=Object.getOwnPropertyDescriptor,$=s("".charAt),L=s("".slice),R=s(/./.exec),z=s([].push),N=/^\d$/,V=/^[1-9]$/,j=/^(?:-|\d)$/,Y=/^[\t\n\r ]$/,G=0,J=1,Q=function(ae,le){ae=p(ae);var pe=new B(ae,0,""),ve=pe.parse(),He=ve.value,ze=pe.skip(Y,ve.end);if(ze1?arguments[1]:void 0);return o(c,function(f,g){if(!a(f,g,c))return!1},!0)!==!1}})},28220:function(i,d,e){"use strict";var t=e(94488),r=e(80666),n=e(42683),o=e(2786),s=e(95037),u=o.Map,c=o.set;t({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(f){var g=n(this),p=r(f,arguments.length>1?arguments[1]:void 0),b=new u;return s(g,function(h,E){p(h,E,g)&&c(b,E,h)}),b}})},49350:function(i,d,e){"use strict";var t=e(94488),r=e(80666),n=e(42683),o=e(95037);t({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(u){var c=n(this),a=r(u,arguments.length>1?arguments[1]:void 0),f=o(c,function(g,p){if(a(g,p,c))return{key:p}},!0);return f&&f.key}})},62060:function(i,d,e){"use strict";var t=e(94488),r=e(80666),n=e(42683),o=e(95037);t({target:"Map",proto:!0,real:!0,forced:!0},{find:function(u){var c=n(this),a=r(u,arguments.length>1?arguments[1]:void 0),f=o(c,function(g,p){if(a(g,p,c))return{value:g}},!0);return f&&f.value}})},20126:function(i,d,e){"use strict";var t=e(94488),r=e(72846);t({target:"Map",stat:!0,forced:!0},{from:r})},18090:function(i,d,e){"use strict";var t=e(94488),r=e(88134),n=e(42683),o=e(95037);t({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(u){return o(n(this),function(c){if(r(c,u))return!0},!0)===!0}})},14309:function(i,d,e){"use strict";var t=e(94488),r=e(89945),n=e(62003),o=e(55327),s=e(63335),u=e(2786).Map;t({target:"Map",stat:!0,forced:!0},{keyBy:function(a,f){var g=o(this)?this:u,p=new g;s(f);var b=s(p.set);return n(a,function(h){r(b,p,f(h),h)}),p}})},17822:function(i,d,e){"use strict";var t=e(94488),r=e(42683),n=e(95037);t({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(s){var u=n(r(this),function(c,a){if(c===s)return{key:a}},!0);return u&&u.key}})},83543:function(i,d,e){"use strict";var t=e(94488),r=e(80666),n=e(42683),o=e(2786),s=e(95037),u=o.Map,c=o.set;t({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(f){var g=n(this),p=r(f,arguments.length>1?arguments[1]:void 0),b=new u;return s(g,function(h,E){c(b,p(h,E,g),h)}),b}})},13853:function(i,d,e){"use strict";var t=e(94488),r=e(80666),n=e(42683),o=e(2786),s=e(95037),u=o.Map,c=o.set;t({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(f){var g=n(this),p=r(f,arguments.length>1?arguments[1]:void 0),b=new u;return s(g,function(h,E){c(b,E,p(h,E,g))}),b}})},25188:function(i,d,e){"use strict";var t=e(94488),r=e(42683),n=e(62003),o=e(2786).set;t({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(u){for(var c=r(this),a=arguments.length,f=0;f1?arguments[1]:void 0);return o(c,function(f,g){if(a(f,g,c))return!0},!0)===!0}})},8774:function(i,d,e){"use strict";var t=e(94488),r=e(14615);t({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:r})},6736:function(i,d,e){"use strict";var t=e(94488),r=e(63335),n=e(42683),o=e(2786),s=TypeError,u=o.get,c=o.has,a=o.set;t({target:"Map",proto:!0,real:!0,forced:!0},{update:function(g,p){var b=n(this),h=arguments.length;r(p);var E=c(b,g);if(!E&&h<3)throw new s("Updating absent value");var P=E?u(b,g):r(h>2?arguments[2]:void 0)(g,b);return a(b,g,p(P,g,b)),b}})},94065:function(i,d,e){"use strict";var t=e(94488),r=e(14615);t({target:"Map",proto:!0,real:!0,forced:!0},{upsert:r})},93036:function(i,d,e){"use strict";var t=e(94488),r=Math.min,n=Math.max;t({target:"Math",stat:!0,forced:!0},{clamp:function(s,u,c){return r(c,n(u,s))}})},75708:function(i,d,e){"use strict";var t=e(94488);t({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{DEG_PER_RAD:Math.PI/180})},84624:function(i,d,e){"use strict";var t=e(94488),r=180/Math.PI;t({target:"Math",stat:!0,forced:!0},{degrees:function(o){return o*r}})},43710:function(i,d,e){"use strict";var t=e(94488),r=e(35175);t({target:"Math",stat:!0},{f16round:r})},66233:function(i,d,e){"use strict";var t=e(94488),r=e(24619),n=e(14894);t({target:"Math",stat:!0,forced:!0},{fscale:function(s,u,c,a,f){return n(r(s,u,c,a,f))}})},92762:function(i,d,e){"use strict";var t=e(94488);t({target:"Math",stat:!0,forced:!0},{iaddh:function(n,o,s,u){var c=n>>>0,a=o>>>0,f=s>>>0;return a+(u>>>0)+((c&f|(c|f)&~(c+f>>>0))>>>31)|0}})},24467:function(i,d,e){"use strict";var t=e(94488);t({target:"Math",stat:!0,forced:!0},{imulh:function(n,o){var s=65535,u=+n,c=+o,a=u&s,f=c&s,g=u>>16,p=c>>16,b=(g*f>>>0)+(a*f>>>16);return g*p+(b>>16)+((a*p>>>0)+(b&s)>>16)}})},68465:function(i,d,e){"use strict";var t=e(94488);t({target:"Math",stat:!0,forced:!0},{isubh:function(n,o,s,u){var c=n>>>0,a=o>>>0,f=s>>>0;return a-(u>>>0)-((~c&f|~(c^f)&c-f>>>0)>>>31)|0}})},77004:function(i,d,e){"use strict";var t=e(94488);t({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{RAD_PER_DEG:180/Math.PI})},83925:function(i,d,e){"use strict";var t=e(94488),r=Math.PI/180;t({target:"Math",stat:!0,forced:!0},{radians:function(o){return o*r}})},51117:function(i,d,e){"use strict";var t=e(94488),r=e(24619);t({target:"Math",stat:!0,forced:!0},{scale:r})},87236:function(i,d,e){"use strict";var t=e(94488),r=e(80449),n=e(1222),o=e(83126),s=e(25587),u=e(94844),c="Seeded Random",a=c+" Generator",f='Math.seededPRNG() argument should have a "seed" field with a finite value.',g=u.set,p=u.getterFor(a),b=TypeError,h=o(function(P){g(this,{type:a,seed:P%2147483647})},c,function(){var P=p(this),A=P.seed=(P.seed*1103515245+12345)%2147483647;return s((A&1073741823)/1073741823,!1)});t({target:"Math",stat:!0,forced:!0},{seededPRNG:function(P){var A=r(P).seed;if(!n(A))throw new b(f);return new h(A)}})},83733:function(i,d,e){"use strict";var t=e(94488);t({target:"Math",stat:!0,forced:!0},{signbit:function(n){var o=+n;return o===o&&o===0?1/o===-1/0:o<0}})},92044:function(i,d,e){"use strict";var t=e(94488);t({target:"Math",stat:!0,forced:!0},{umulh:function(n,o){var s=65535,u=+n,c=+o,a=u&s,f=c&s,g=u>>>16,p=c>>>16,b=(g*f>>>0)+(a*f>>>16);return g*p+(b>>>16)+((a*p>>>0)+(b&s)>>>16)}})},29190:function(i,d,e){"use strict";var t=e(94488),r=e(94237),n=e(56902),o="Invalid number representation",s="Invalid radix",u=RangeError,c=SyntaxError,a=TypeError,f=parseInt,g=Math.pow,p=/^[\d.a-z]+$/,b=r("".charAt),h=r(p.exec),E=r(1 .toString),P=r("".slice),A=r("".split);t({target:"Number",stat:!0,forced:!0},{fromString:function(C,O){var T=1;if(typeof C!="string")throw new a(o);if(!C.length)throw new c(o);if(b(C,0)==="-"&&(T=-1,C=P(C,1),!C.length))throw new c(o);var D=O===void 0?10:n(O);if(D<2||D>36)throw new u(s);if(!h(p,C))throw new c(o);var k=A(C,"."),$=f(k[0],D);if(k.length>1&&($+=f(k[1],D)/g(D,k[1].length)),D===10&&E($,D)!==C)throw new c(o);return T*$}})},10775:function(i,d,e){"use strict";var t=e(94488),r=e(17243);t({target:"Number",stat:!0,forced:!0},{range:function(o,s,u){return new r(o,s,u,"number",0,1)}})},19593:function(i,d,e){"use strict";var t=e(94488),r=e(20574);t({target:"Object",stat:!0,forced:!0},{iterateEntries:function(o){return new r(o,"entries")}})},26502:function(i,d,e){"use strict";var t=e(94488),r=e(20574);t({target:"Object",stat:!0,forced:!0},{iterateKeys:function(o){return new r(o,"keys")}})},10174:function(i,d,e){"use strict";var t=e(94488),r=e(20574);t({target:"Object",stat:!0,forced:!0},{iterateValues:function(o){return new r(o,"values")}})},76867:function(i,d,e){"use strict";var t=e(94488),r=e(89945),n=e(35454),o=e(51996),s=e(63335),u=e(80449),c=e(56472),a=e(55327),f=e(4112),g=e(31946),p=e(53776),b=e(2291),h=e(66477),E=e(64110),P=e(61810),A=e(59893),I=e(94844),C=A("observable"),O="Observable",T="Subscription",D="SubscriptionObserver",k=I.getterFor,$=I.set,L=k(O),R=k(T),z=k(D),N=function(J){this.observer=u(J),this.cleanup=void 0,this.subscriptionObserver=void 0};N.prototype={type:T,clean:function(){var J=this.cleanup;if(J){this.cleanup=void 0;try{J()}catch(Q){P(Q)}}},close:function(){if(!n){var J=this.facade,Q=this.subscriptionObserver;J.closed=!0,Q&&(Q.closed=!0)}this.observer=void 0},isClosed:function(){return this.observer===void 0}};var V=function(J,Q){var Z=$(this,new N(J)),K;n||(this.closed=!1);try{(K=p(J,"start"))&&r(K,J,this)}catch(ee){P(ee)}if(!Z.isClosed()){var M=Z.subscriptionObserver=new j(Z);try{var B=Q(M),H=B;f(B)||(Z.cleanup=a(B.unsubscribe)?function(){H.unsubscribe()}:s(B))}catch(ee){M.error(ee);return}Z.isClosed()&&Z.clean()}};V.prototype=h({},{unsubscribe:function(){var Q=R(this);Q.isClosed()||(Q.close(),Q.clean())}}),n&&E(V.prototype,"closed",{configurable:!0,get:function(){return R(this).isClosed()}});var j=function(J){$(this,{type:D,subscriptionState:J}),n||(this.closed=!1)};j.prototype=h({},{next:function(Q){var Z=z(this).subscriptionState;if(!Z.isClosed()){var K=Z.observer;try{var M=p(K,"next");M&&r(M,K,Q)}catch(B){P(B)}}},error:function(Q){var Z=z(this).subscriptionState;if(!Z.isClosed()){var K=Z.observer;Z.close();try{var M=p(K,"error");M?r(M,K,Q):P(Q)}catch(B){P(B)}Z.clean()}},complete:function(){var Q=z(this).subscriptionState;if(!Q.isClosed()){var Z=Q.observer;Q.close();try{var K=p(Z,"complete");K&&r(K,Z)}catch(M){P(M)}Q.clean()}}}),n&&E(j.prototype,"closed",{configurable:!0,get:function(){return z(this).subscriptionState.isClosed()}});var Y=function(Q){c(this,G),$(this,{type:O,subscriber:s(Q)})},G=Y.prototype;h(G,{subscribe:function(Q){var Z=arguments.length;return new V(a(Q)?{next:Q,error:Z>1?arguments[1]:void 0,complete:Z>2?arguments[2]:void 0}:g(Q)?Q:{},L(this).subscriber)}}),b(G,C,function(){return this}),t({global:!0,constructor:!0,forced:!0},{Observable:Y}),o(O)},14548:function(i,d,e){"use strict";var t=e(94488),r=e(65911),n=e(89945),o=e(80449),s=e(39812),u=e(85428),c=e(53776),a=e(62003),f=e(59893),g=f("observable");t({target:"Observable",stat:!0,forced:!0},{from:function(b){var h=s(this)?this:r("Observable"),E=c(o(b),g);if(E){var P=o(n(E,b));return P.constructor===h?P:new h(function(I){return P.subscribe(I)})}var A=u(b);return new h(function(I){a(A,function(C,O){if(I.next(C),I.closed)return O()},{IS_ITERATOR:!0,INTERRUPTED:!0}),I.complete()})}})},96378:function(i,d,e){"use strict";e(76867),e(14548),e(6053)},6053:function(i,d,e){"use strict";var t=e(94488),r=e(65911),n=e(39812),o=r("Array");t({target:"Observable",stat:!0,forced:!0},{of:function(){for(var u=n(this)?this:r("Observable"),c=arguments.length,a=o(c),f=0;f?@[\\\\\\]^`{|}~"+o+"]","g");t({target:"RegExp",stat:!0,forced:!0},{escape:function(f){var g=n(f),p=s(g,0);return(p>47&&p<58?"\\x3":"")+u(g,c,"\\$&")}})},1220:function(i,d,e){"use strict";var t=e(94488),r=e(17442),n=e(19691).add;t({target:"Set",proto:!0,real:!0,forced:!0},{addAll:function(){for(var s=r(this),u=0,c=arguments.length;u1?arguments[1]:void 0);return o(c,function(f){if(!a(f,f,c))return!1},!0)!==!1}})},38487:function(i,d,e){"use strict";var t=e(94488),r=e(80666),n=e(17442),o=e(19691),s=e(57002),u=o.Set,c=o.add;t({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(f){var g=n(this),p=r(f,arguments.length>1?arguments[1]:void 0),b=new u;return s(g,function(h){p(h,h,g)&&c(b,h)}),b}})},29916:function(i,d,e){"use strict";var t=e(94488),r=e(80666),n=e(17442),o=e(57002);t({target:"Set",proto:!0,real:!0,forced:!0},{find:function(u){var c=n(this),a=r(u,arguments.length>1?arguments[1]:void 0),f=o(c,function(g){if(a(g,g,c))return{value:g}},!0);return f&&f.value}})},25541:function(i,d,e){"use strict";var t=e(94488),r=e(72846);t({target:"Set",stat:!0,forced:!0},{from:r})},34926:function(i,d,e){"use strict";var t=e(94488),r=e(89945),n=e(77999),o=e(16049);t({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(u){return r(o,this,n(u))}})},45612:function(i,d,e){"use strict";var t=e(94488),r=e(3338),n=e(16049),o=e(22627),s=!o("intersection")||r(function(){return Array.from(new Set([1,2,3]).intersection(new Set([3,2])))!=="3,2"});t({target:"Set",proto:!0,real:!0,forced:s},{intersection:n})},68255:function(i,d,e){"use strict";var t=e(94488),r=e(89945),n=e(77999),o=e(17616);t({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(u){return r(o,this,n(u))}})},98080:function(i,d,e){"use strict";var t=e(94488),r=e(17616),n=e(22627);t({target:"Set",proto:!0,real:!0,forced:!n("isDisjointFrom")},{isDisjointFrom:r})},16450:function(i,d,e){"use strict";var t=e(94488),r=e(89945),n=e(77999),o=e(84833);t({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(u){return r(o,this,n(u))}})},96351:function(i,d,e){"use strict";var t=e(94488),r=e(84833),n=e(22627);t({target:"Set",proto:!0,real:!0,forced:!n("isSubsetOf")},{isSubsetOf:r})},86921:function(i,d,e){"use strict";var t=e(94488),r=e(89945),n=e(77999),o=e(51135);t({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(u){return r(o,this,n(u))}})},60244:function(i,d,e){"use strict";var t=e(94488),r=e(51135),n=e(22627);t({target:"Set",proto:!0,real:!0,forced:!n("isSupersetOf")},{isSupersetOf:r})},82928:function(i,d,e){"use strict";var t=e(94488),r=e(94237),n=e(17442),o=e(57002),s=e(69905),u=r([].join),c=r([].push);t({target:"Set",proto:!0,real:!0,forced:!0},{join:function(f){var g=n(this),p=f===void 0?",":s(f),b=[];return o(g,function(h){c(b,h)}),u(b,p)}})},42947:function(i,d,e){"use strict";var t=e(94488),r=e(80666),n=e(17442),o=e(19691),s=e(57002),u=o.Set,c=o.add;t({target:"Set",proto:!0,real:!0,forced:!0},{map:function(f){var g=n(this),p=r(f,arguments.length>1?arguments[1]:void 0),b=new u;return s(g,function(h){c(b,p(h,h,g))}),b}})},71568:function(i,d,e){"use strict";var t=e(94488),r=e(48800);t({target:"Set",stat:!0,forced:!0},{of:r})},94194:function(i,d,e){"use strict";var t=e(94488),r=e(63335),n=e(17442),o=e(57002),s=TypeError;t({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(c){var a=n(this),f=arguments.length<2,g=f?void 0:arguments[1];if(r(c),o(a,function(p){f?(f=!1,g=p):g=c(g,p,p,a)}),f)throw new s("Reduce of empty set with no initial value");return g}})},30556:function(i,d,e){"use strict";var t=e(94488),r=e(80666),n=e(17442),o=e(57002);t({target:"Set",proto:!0,real:!0,forced:!0},{some:function(u){var c=n(this),a=r(u,arguments.length>1?arguments[1]:void 0);return o(c,function(f){if(a(f,f,c))return!0},!0)===!0}})},93102:function(i,d,e){"use strict";var t=e(94488),r=e(89945),n=e(77999),o=e(36312);t({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(u){return r(o,this,n(u))}})},32100:function(i,d,e){"use strict";var t=e(94488),r=e(36312),n=e(22627);t({target:"Set",proto:!0,real:!0,forced:!n("symmetricDifference")},{symmetricDifference:r})},82074:function(i,d,e){"use strict";var t=e(94488),r=e(89945),n=e(77999),o=e(24667);t({target:"Set",proto:!0,real:!0,forced:!0},{union:function(u){return r(o,this,n(u))}})},1821:function(i,d,e){"use strict";var t=e(94488),r=e(24667),n=e(22627);t({target:"Set",proto:!0,real:!0,forced:!n("union")},{union:r})},13578:function(i,d,e){"use strict";var t=e(94488),r=e(13764).charAt,n=e(95955),o=e(56902),s=e(69905);t({target:"String",proto:!0,forced:!0},{at:function(c){var a=s(n(this)),f=a.length,g=o(c),p=g>=0?g:f+g;return p<0||p>=f?void 0:r(a,p)}})},62882:function(i,d,e){"use strict";var t=e(94488),r=e(83126),n=e(25587),o=e(95955),s=e(69905),u=e(94844),c=e(13764),a=c.codeAt,f=c.charAt,g="String Iterator",p=u.set,b=u.getterFor(g),h=r(function(P){p(this,{type:g,string:P,index:0})},"String",function(){var P=b(this),A=P.string,I=P.index,C;return I>=A.length?n(void 0,!0):(C=f(A,I),P.index+=C.length,n({codePoint:a(C,0),position:I},!1))});t({target:"String",proto:!0,forced:!0},{codePoints:function(){return new h(s(o(this)))}})},59348:function(i,d,e){"use strict";var t=e(94488),r=e(67410);t({target:"String",stat:!0,forced:!0},{cooked:r})},37457:function(i,d,e){"use strict";var t=e(13247),r=e(94488),n=e(86528),o=e(94237),s=e(13743),u=e(80449),c=e(94029),a=e(55327),f=e(82762),g=e(37691).f,p=e(71698),b=e(42530),h=e(67410),E=e(79204),P=e(19268),A=new b.WeakMap,I=b.get,C=b.has,O=b.set,T=Array,D=TypeError,k=Object.freeze||Object,$=Object.isFrozen,L=Math.min,R=o("".charAt),z=o("".slice),N=o("".split),V=o(/./.exec),j=/([\n\u2028\u2029]|\r\n?)/g,Y=RegExp("^["+P+"]*"),G=RegExp("[^"+P+"]"),J="Invalid tag",Q="Invalid opening line",Z="Invalid closing line",K=function(le){var pe=le.raw;if(t&&!$(pe))throw new D("Raw template should be frozen");if(C(A,pe))return I(A,pe);var ve=M(pe),He=H(ve);return g(He,"raw",{value:k(ve)}),k(He),O(A,pe,He),He},M=function(le){var pe=c(le),ve=f(pe),He=T(ve),ze=T(ve),rt=0,ot,yt,St,ge;if(!ve)throw new D(J);for(;rt0)throw new D(Q);ot[1]=""}if(Xe){if(ot.length===1||V(G,ot[ot.length-1]))throw new D(Z);ot[ot.length-2]="",ot[ot.length-1]=""}for(var tt=2;tt1?arguments[1]:void 0);return n(this,a)},!0)},16315:function(i,d,e){"use strict";var t=e(58261),r=e(90560).filterReject,n=e(27607),o=t.aTypedArray,s=t.exportTypedArrayMethod;s("filterReject",function(c){var a=r(o(this),c,arguments.length>1?arguments[1]:void 0);return n(this,a)},!0)},56966:function(i,d,e){"use strict";var t=e(65911),r=e(6086),n=e(32278),o=e(58261),s=e(69478),u=o.aTypedArrayConstructor,c=o.exportTypedArrayStaticMethod;c("fromAsync",function(f){var g=this,p=arguments.length,b=p>1?arguments[1]:void 0,h=p>2?arguments[2]:void 0;return new(t("Promise"))(function(E){r(g),E(n(f,b,h))}).then(function(E){return s(u(g),E)})},!0)},60239:function(i,d,e){"use strict";var t=e(58261),r=e(36444),n=e(31384),o=t.aTypedArray,s=t.exportTypedArrayMethod;s("groupBy",function(c){var a=arguments.length>1?arguments[1]:void 0;return r(o(this),c,a,n)},!0)},49381:function(i,d,e){"use strict";var t=e(58261),r=e(82762),n=e(75406),o=e(51981),s=e(93303),u=e(56902),c=e(3338),a=t.aTypedArray,f=t.getTypedArrayConstructor,g=t.exportTypedArrayMethod,p=Math.max,b=Math.min,h=!c(function(){var E=new Int8Array([1]),P=E.toSpliced(1,0,{valueOf:function(){return E[0]=2,3}});return P[0]!==2||P[1]!==3});g("toSpliced",function(P,A){var I=a(this),C=f(I),O=r(I),T=o(P,O),D=arguments.length,k=0,$,L,R,z,N,V,j;if(D===0)$=L=0;else if(D===1)$=0,L=O-T;else if(L=b(p(u(A),0),O-T),$=D-2,$){z=new C($),R=n(z);for(var Y=2;Y1?o(arguments[1]):void 0,$=f(k)==="base64"?g:p,L=k?!!k.strict:!1,R=L?D:P(D,C,"");if(R.length%4===0)A(R,-2)==="=="?R=A(R,0,-2):A(R,-1)==="="&&(R=A(R,0,-1));else if(L)throw new h("Input is not correctly padded");var z=R.length%4;switch(z){case 1:throw new h("Bad input length");case 2:R+="AA";break;case 3:R+="A"}for(var N=[],V=0,j=R.length,Y=function(Q){var Z=E(R,V+Q);if(!u($,Z))throw new h('Bad char in input: "'+Z+'"');return $[Z]<<18-6*Q};V>16&255,G>>8&255,G&255)}var J=N.length;if(z===2){if(L&&N[J-2]!==0)throw new h(O);J-=2}else if(z===3){if(L&&N[J-1]!==0)throw new h(O);J--}return c(b,N,J)}})},57151:function(i,d,e){"use strict";var t=e(94488),r=e(92916),n=e(94237),o=e(79606),s=r.Uint8Array,u=r.SyntaxError,c=r.parseInt,a=/[^\da-f]/i,f=n(a.exec),g=n("".slice);s&&t({target:"Uint8Array",stat:!0,forced:!0},{fromHex:function(b){o(b);var h=b.length;if(h%2)throw new u("String should have an even number of characters");if(f(a,b))throw new u("String should only contain hex characters");for(var E=new s(h/2),P=0;P>6*D&63)};I+2>(-2*j&6)));return N}})},55182:function(i,d,e){"use strict";var t=e(94488),r=e(92916),n=e(65911),o=e(94237),s=e(89945),u=e(3338),c=e(69905),a=e(57106),f=e(66244).i2c,g=n("btoa"),p=o("".charAt),b=o("".charCodeAt),h=!!g&&!u(function(){return g("hi")!=="aGk="}),E=h&&!u(function(){g()}),P=h&&u(function(){return g(null)!=="bnVsbA=="}),A=h&&g.length!==1;t({global:!0,bind:!0,enumerable:!0,forced:!h||E||P||A},{btoa:function(C){if(a(arguments.length,1),h)return s(g,r,c(C));for(var O=c(C),T="",D=0,k=f,$,L;p(O,D)||(k="=",D%1);){if(L=b(O,D+=.75),L>255)throw new(n("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");$=$<<8|L,T+=p(k,63&$>>8-D%1*8)}return T}})},91472:function(i,d,e){"use strict";var t=e(94488),r=e(92916),n=e(28887).clear;t({global:!0,bind:!0,enumerable:!0,forced:r.clearImmediate!==n},{clearImmediate:n})},34366:function(i,d,e){"use strict";var t=e(92916),r=e(66749),n=e(9518),o=e(59594),s=e(68151),u=function(a){if(a&&a.forEach!==o)try{s(a,"forEach",o)}catch(f){a.forEach=o}};for(var c in r)r[c]&&u(t[c]&&t[c].prototype);u(n)},85425:function(i,d,e){"use strict";var t=e(92916),r=e(66749),n=e(9518),o=e(11005),s=e(68151),u=e(94573),c=e(59893),a=c("iterator"),f=o.values,g=function(b,h){if(b){if(b[a]!==f)try{s(b,a,f)}catch(P){b[a]=f}if(u(b,h,!0),r[h]){for(var E in o)if(b[E]!==o[E])try{s(b,E,o[E])}catch(P){b[E]=o[E]}}}};for(var p in r)g(t[p]&&t[p].prototype,p);g(n,"DOMTokenList")},64522:function(i,d,e){"use strict";var t=e(94488),r=e(11270),n=e(65911),o=e(3338),s=e(20132),u=e(35012),c=e(37691).f,a=e(2291),f=e(64110),g=e(32621),p=e(56472),b=e(80449),h=e(13367),E=e(7825),P=e(52109),A=e(80739),I=e(94844),C=e(35454),O=e(16697),T="DOMException",D="DATA_CLONE_ERR",k=n("Error"),$=n(T)||function(){try{var ze=n("MessageChannel")||r("worker_threads").MessageChannel;new ze().port1.postMessage(new WeakMap)}catch(rt){if(rt.name===D&&rt.code===25)return rt.constructor}}(),L=$&&$.prototype,R=k.prototype,z=I.set,N=I.getterFor(T),V="stack"in new k(T),j=function(ze){return g(P,ze)&&P[ze].m?P[ze].c:0},Y=function(){p(this,G);var rt=arguments.length,ot=E(rt<1?void 0:arguments[0]),yt=E(rt<2?void 0:arguments[1],"Error"),St=j(yt);if(z(this,{type:T,name:yt,message:ot,code:St}),C||(this.name=yt,this.message=ot,this.code=St),V){var ge=new k(ot);ge.name=T,c(this,"stack",u(1,A(ge.stack,1)))}},G=Y.prototype=s(R),J=function(ze){return{enumerable:!0,configurable:!0,get:ze}},Q=function(ze){return J(function(){return N(this)[ze]})};C&&(f(G,"code",Q("code")),f(G,"message",Q("message")),f(G,"name",Q("name"))),c(G,"constructor",u(1,Y));var Z=o(function(){return!(new $ instanceof k)}),K=Z||o(function(){return R.toString!==h||String(new $(1,2))!=="2: 1"}),M=Z||o(function(){return new $(1,"DataCloneError").code!==25}),B=Z||$[D]!==25||L[D]!==25,H=O?K||M||B:Z;t({global:!0,constructor:!0,forced:H},{DOMException:H?Y:$});var ee=n(T),ae=ee.prototype;K&&(O||$===ee)&&a(ae,"toString",h),M&&C&&$===ee&&f(ae,"code",J(function(){return j(b(this).name)}));for(var le in P)if(g(P,le)){var pe=P[le],ve=pe.s,He=u(6,pe.c);g(ee,ve)||c(ee,ve,He),g(ae,ve)||c(ae,ve,He)}},41599:function(i,d,e){"use strict";var t=e(94488),r=e(92916),n=e(65911),o=e(35012),s=e(37691).f,u=e(32621),c=e(56472),a=e(25576),f=e(7825),g=e(52109),p=e(80739),b=e(35454),h=e(16697),E="DOMException",P=n("Error"),A=n(E),I=function(){c(this,C);var Y=arguments.length,G=f(Y<1?void 0:arguments[0]),J=f(Y<2?void 0:arguments[1],"Error"),Q=new A(G,J),Z=new P(G);return Z.name=E,s(Q,"stack",o(1,p(Z.stack,1))),a(Q,this,I),Q},C=I.prototype=A.prototype,O="stack"in new P(E),T="stack"in new A(1,2),D=A&&b&&Object.getOwnPropertyDescriptor(r,E),k=!!D&&!(D.writable&&D.configurable),$=O&&!k&&!T;t({global:!0,constructor:!0,forced:h||$},{DOMException:$?I:A});var L=n(E),R=L.prototype;if(R.constructor!==L){h||s(R,"constructor",o(1,L));for(var z in g)if(u(g,z)){var N=g[z],V=N.s;u(L,V)||s(L,V,o(6,N.c))}}},86465:function(i,d,e){"use strict";var t=e(65911),r=e(94573),n="DOMException";r(t(n),n)},78437:function(i,d,e){"use strict";e(91472),e(91700)},73624:function(i,d,e){"use strict";var t=e(94488),r=e(92916),n=e(72933),o=e(63335),s=e(57106),u=e(90946),c=r.process;t({global:!0,enumerable:!0,dontCallGetSet:!0},{queueMicrotask:function(f){s(arguments.length,1),o(f);var g=u&&c.domain;n(g?g.bind(f):f)}})},62059:function(i,d,e){"use strict";var t=e(94488),r=e(92916),n=e(64110),o=e(35454),s=TypeError,u=Object.defineProperty,c=r.self!==r;try{if(o){var a=Object.getOwnPropertyDescriptor(r,"self");(c||!a||!a.get||!a.enumerable)&&n(r,"self",{get:function(){return r},set:function(g){if(this!==r)throw new s("Illegal invocation");u(r,"self",{value:g,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else t({global:!0,simple:!0,forced:c},{self:r})}catch(f){}},91700:function(i,d,e){"use strict";var t=e(94488),r=e(92916),n=e(28887).set,o=e(93222),s=r.setImmediate?o(n,!1):n;t({global:!0,bind:!0,enumerable:!0,forced:r.setImmediate!==s},{setImmediate:s})},88469:function(i,d,e){"use strict";var t=e(94488),r=e(92916),n=e(93222),o=n(r.setInterval,!0);t({global:!0,bind:!0,forced:r.setInterval!==o},{setInterval:o})},91572:function(i,d,e){"use strict";var t=e(94488),r=e(92916),n=e(93222),o=n(r.setTimeout,!0);t({global:!0,bind:!0,forced:r.setTimeout!==o},{setTimeout:o})},10305:function(i,d,e){"use strict";var t=e(16697),r=e(94488),n=e(92916),o=e(65911),s=e(94237),u=e(3338),c=e(6145),a=e(55327),f=e(39812),g=e(4112),p=e(31946),b=e(18446),h=e(62003),E=e(80449),P=e(97607),A=e(32621),I=e(69392),C=e(68151),O=e(82762),T=e(57106),D=e(81644),k=e(2786),$=e(19691),L=e(57002),R=e(39311),z=e(25406),N=e(80426),V=n.Object,j=n.Array,Y=n.Date,G=n.Error,J=n.TypeError,Q=n.PerformanceMark,Z=o("DOMException"),K=k.Map,M=k.has,B=k.get,H=k.set,ee=$.Set,ae=$.add,le=$.has,pe=o("Object","keys"),ve=s([].push),He=s((!0).valueOf),ze=s(1 .valueOf),rt=s("".valueOf),ot=s(Y.prototype.getTime),yt=c("structuredClone"),St="DataCloneError",ge="Transferring",Be=function(me){return!u(function(){var ke=new n.Set([7]),xt=me(ke),ct=me(V(7));return xt===ke||!xt.has(7)||!p(ct)||+ct!=7})&&me},Xe=function(me,ke){return!u(function(){var xt=new ke,ct=me({a:xt,b:xt});return!(ct&&ct.a===ct.b&&ct.a instanceof ke&&ct.a.stack===xt.stack)})},tt=function(me){return!u(function(){var ke=me(new n.AggregateError([1],yt,{cause:3}));return ke.name!=="AggregateError"||ke.errors[0]!==1||ke.message!==yt||ke.cause!==3})},Tt=n.structuredClone,Pt=t||!Xe(Tt,G)||!Xe(Tt,Z)||!tt(Tt),je=!Tt&&Be(function(me){return new Q(yt,{detail:me}).detail}),xe=Be(Tt)||je,Ce=function(me){throw new Z("Uncloneable type: "+me,St)},Le=function(me,ke){throw new Z((ke||"Cloning")+" of "+me+" cannot be properly polyfilled in this engine",St)},Re=function(me,ke){return xe||Le(ke),xe(me)},Ke=function(){var me;try{me=new n.DataTransfer}catch(ke){try{me=new n.ClipboardEvent("").clipboardData}catch(xt){}}return me&&me.items&&me.files?me:null},Ne=function(me,ke,xt){if(M(ke,me))return B(ke,me);var ct=xt||P(me),ft,st,Zt,it,ce,lt;if(ct==="SharedArrayBuffer")xe?ft=xe(me):ft=me;else{var qe=n.DataView;!qe&&!a(me.slice)&&Le("ArrayBuffer");try{if(a(me.slice)&&!me.resizable)ft=me.slice(0);else for(st=me.byteLength,Zt=("maxByteLength"in me)?{maxByteLength:me.maxByteLength}:void 0,ft=new ArrayBuffer(st,Zt),it=new qe(me),ce=new qe(ft),lt=0;lt1&&!g(arguments[1])?E(arguments[1]):void 0,ct=xt?xt.transfer:void 0,ft,st;ct!==void 0&&(ft=new K,st=jt(ct,ft));var Zt=Je(ke,ft);return st&&Gt(st),Zt}})},41208:function(i,d,e){"use strict";e(88469),e(91572)},91340:function(i,d,e){"use strict";e(11005);var t=e(94488),r=e(92916),n=e(89945),o=e(94237),s=e(35454),u=e(3299),c=e(2291),a=e(64110),f=e(66477),g=e(94573),p=e(83126),b=e(94844),h=e(56472),E=e(55327),P=e(32621),A=e(80666),I=e(97607),C=e(80449),O=e(31946),T=e(69905),D=e(20132),k=e(35012),$=e(85428),L=e(26006),R=e(25587),z=e(57106),N=e(59893),V=e(63668),j=N("iterator"),Y="URLSearchParams",G=Y+"Iterator",J=b.set,Q=b.getterFor(Y),Z=b.getterFor(G),K=Object.getOwnPropertyDescriptor,M=function(ft){if(!s)return r[ft];var st=K(r,ft);return st&&st.value},B=M("fetch"),H=M("Request"),ee=M("Headers"),ae=H&&H.prototype,le=ee&&ee.prototype,pe=r.RegExp,ve=r.TypeError,He=r.decodeURIComponent,ze=r.encodeURIComponent,rt=o("".charAt),ot=o([].join),yt=o([].push),St=o("".replace),ge=o([].shift),Be=o([].splice),Xe=o("".split),tt=o("".slice),Tt=/\+/g,Pt=Array(4),je=function(ft){return Pt[ft-1]||(Pt[ft-1]=pe("((?:%[\\da-f]{2}){"+ft+"})","gi"))},xe=function(ft){try{return He(ft)}catch(st){return ft}},Ce=function(ft){var st=St(ft,Tt," "),Zt=4;try{return He(st)}catch(it){for(;Zt;)st=St(st,je(Zt--),xe);return st}},Le=/[!'()~]|%20/g,Re={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Ke=function(ft){return Re[ft]},Ne=function(ft){return St(ze(ft),Le,Ke)},et=p(function(st,Zt){J(this,{type:G,target:Q(st).entries,index:0,kind:Zt})},Y,function(){var st=Z(this),Zt=st.target,it=st.index++;if(!Zt||it>=Zt.length)return st.target=void 0,R(void 0,!0);var ce=Zt[it];switch(st.kind){case"keys":return R(ce.key,!1);case"values":return R(ce.value,!1)}return R([ce.key,ce.value],!1)},!0),Je=function(ft){this.entries=[],this.url=null,ft!==void 0&&(O(ft)?this.parseObject(ft):this.parseQuery(typeof ft=="string"?rt(ft,0)==="?"?tt(ft,1):ft:T(ft)))};Je.prototype={type:Y,bindURL:function(ft){this.url=ft,this.update()},parseObject:function(ft){var st=this.entries,Zt=L(ft),it,ce,lt,qe,wt,Rt,vr;if(Zt)for(it=$(ft,Zt),ce=it.next;!(lt=n(ce,it)).done;){if(qe=$(C(lt.value)),wt=qe.next,(Rt=n(wt,qe)).done||(vr=n(wt,qe)).done||!n(wt,qe).done)throw new ve("Expected sequence with length 2");yt(st,{key:T(Rt.value),value:T(vr.value)})}else for(var nt in ft)P(ft,nt)&&yt(st,{key:nt,value:T(ft[nt])})},parseQuery:function(ft){if(ft)for(var st=this.entries,Zt=Xe(ft,"&"),it=0,ce,lt;it0?arguments[0]:void 0,Zt=J(this,new Je(st));s||(this.size=Zt.entries.length)},Gt=jt.prototype;if(f(Gt,{append:function(st,Zt){var it=Q(this);z(arguments.length,2),yt(it.entries,{key:T(st),value:T(Zt)}),s||this.length++,it.updateURL()},delete:function(ft){for(var st=Q(this),Zt=z(arguments.length,1),it=st.entries,ce=T(ft),lt=Zt<2?void 0:arguments[1],qe=lt===void 0?lt:T(lt),wt=0;wtit.key?1:-1}),st.updateURL()},forEach:function(st){for(var Zt=Q(this).entries,it=A(st,arguments.length>1?arguments[1]:void 0),ce=0,lt;ce1?xt(arguments[1]):{})}}),E(H)){var ct=function(st){return h(this,ae),new H(st,arguments.length>1?xt(arguments[1]):{})};ae.constructor=ct,ct.prototype=ae,t({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ct})}}i.exports={URLSearchParams:jt,getState:Q}},4890:function(i,d,e){"use strict";var t=e(2291),r=e(94237),n=e(69905),o=e(57106),s=URLSearchParams,u=s.prototype,c=r(u.append),a=r(u.delete),f=r(u.forEach),g=r([].push),p=new s("a=1&a=2&b=3");p.delete("a",1),p.delete("b",void 0),p+""!="a=2"&&t(u,"delete",function(b){var h=arguments.length,E=h<2?void 0:arguments[1];if(h&&E===void 0)return a(this,b);var P=[];f(this,function($,L){g(P,{key:L,value:$})}),o(h,1);for(var A=n(b),I=n(E),C=0,O=0,T=!1,D=P.length,k;C?@[\\\]^|]/,Tt=/[\0\t\n\r #/:<>?@[\\\]^|]/,Pt=/^[\u0000-\u0020]+/,je=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,xe=/[\t\n\r]/g,Ce,Le=function(mt){var Ze=H(mt,"."),Ue,Me,Ge,Wt,Ft,Ee,we;if(Ze.length&&Ze[Ze.length-1]===""&&Ze.length--,Ue=Ze.length,Ue>4)return mt;for(Me=[],Ge=0;Ge1&&Y(Wt,0)==="0"&&(Ft=G(St,Wt)?16:8,Wt=ee(Wt,Ft===8?1:2)),Wt==="")Ee=0;else{if(!G(Ft===10?Be:Ft===8?ge:Xe,Wt))return mt;Ee=N(Wt,Ft)}K(Me,Ee)}for(Ge=0;Ge=j(256,5-Ue))return null}else if(Ee>255)return null;for(we=Z(Me),Ge=0;Ge6))return;for(Ee=0;sn();){if(we=null,Ee>0)if(sn()==="."&&Ee<4)Ge++;else return;if(!G(yt,sn()))return;for(;G(yt,sn());){if(br=N(sn(),10),we===null)we=br;else{if(we===0)return;we=we*10+br}if(we>255)return;Ge++}Ze[Ue]=Ze[Ue]*256+we,Ee++,(Ee===2||Ee===4)&&Ue++}if(Ee!==4)return;break}else if(sn()===":"){if(Ge++,!sn())return}else if(sn())return;Ze[Ue++]=Wt}if(Me!==null)for(Jr=Ue-Me,Ue=7;Ue!==0&&Jr>0;)rr=Ze[Ue],Ze[Ue--]=Ze[Me+Jr-1],Ze[Me+--Jr]=rr;else if(Ue!==8)return;return Ze},Ke=function(mt){for(var Ze=null,Ue=1,Me=null,Ge=0,Wt=0;Wt<8;Wt++)mt[Wt]!==0?(Ge>Ue&&(Ze=Me,Ue=Ge),Me=null,Ge=0):(Me===null&&(Me=Wt),++Ge);return Ge>Ue&&(Ze=Me,Ue=Ge),Ze},Ne=function(mt){var Ze,Ue,Me,Ge;if(typeof mt=="number"){for(Ze=[],Ue=0;Ue<4;Ue++)le(Ze,mt%256),mt=V(mt/256);return J(Ze,".")}else if(typeof mt=="object"){for(Ze="",Me=Ke(mt),Ue=0;Ue<8;Ue++)Ge&&mt[Ue]===0||(Ge&&(Ge=!1),Me===Ue?(Ze+=Ue?":":"::",Ge=!0):(Ze+=Q(mt[Ue],16),Ue<7&&(Ze+=":")));return"["+Ze+"]"}return mt},et={},Je=p({},et,{" ":1,'"':1,"<":1,">":1,"`":1}),jt=p({},Je,{"#":1,"?":1,"{":1,"}":1}),Gt=p({},jt,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),me=function(mt,Ze){var Ue=E(mt,0);return Ue>32&&Ue<127&&!g(Ze,mt)?mt:encodeURIComponent(mt)},ke={ftp:21,file:null,http:80,https:443,ws:80,wss:443},xt=function(mt,Ze){var Ue;return mt.length===2&&G(rt,Y(mt,0))&&((Ue=Y(mt,1))===":"||!Ze&&Ue==="|")},ct=function(mt){var Ze;return mt.length>1&&xt(ee(mt,0,2))&&(mt.length===2||(Ze=Y(mt,2))==="/"||Ze==="\\"||Ze==="?"||Ze==="#")},ft=function(mt){return mt==="."||ae(mt)==="%2e"},st=function(mt){return mt=ae(mt),mt===".."||mt==="%2e."||mt===".%2e"||mt==="%2e%2e"},Zt={},it={},ce={},lt={},qe={},wt={},Rt={},vr={},nt={},or={},Te={},Dt={},sr={},fr={},kr={},hr={},_r={},Nr={},Wr={},Qr={},on={},ur=function(mt,Ze,Ue){var Me=A(mt),Ge,Wt,Ft;if(Ze){if(Wt=this.parse(Me),Wt)throw new z(Wt);this.searchParams=null}else{if(Ue!==void 0&&(Ge=new ur(Ue,!0)),Wt=this.parse(Me,null,Ge),Wt)throw new z(Wt);Ft=L(new $),Ft.bindURL(this),this.searchParams=Ft}};ur.prototype={type:"URL",parse:function(mt,Ze,Ue){var Me=this,Ge=Ze||Zt,Wt=0,Ft="",Ee=!1,we=!1,br=!1,Jr,rr,sn,en;for(mt=A(mt),Ze||(Me.scheme="",Me.username="",Me.password="",Me.host=null,Me.port=null,Me.path=[],Me.query=null,Me.fragment=null,Me.cannotBeABaseURL=!1,mt=M(mt,Pt,""),mt=M(mt,je,"$1")),mt=M(mt,xe,""),Jr=b(mt);Wt<=Jr.length;){switch(rr=Jr[Wt],Ge){case Zt:if(rr&&G(rt,rr))Ft+=ae(rr),Ge=it;else{if(Ze)return ve;Ge=ce;continue}break;case it:if(rr&&(G(ot,rr)||rr==="+"||rr==="-"||rr==="."))Ft+=ae(rr);else if(rr===":"){if(Ze&&(Me.isSpecial()!==g(ke,Ft)||Ft==="file"&&(Me.includesCredentials()||Me.port!==null)||Me.scheme==="file"&&!Me.host))return;if(Me.scheme=Ft,Ze){Me.isSpecial()&&ke[Me.scheme]===Me.port&&(Me.port=null);return}Ft="",Me.scheme==="file"?Ge=fr:Me.isSpecial()&&Ue&&Ue.scheme===Me.scheme?Ge=lt:Me.isSpecial()?Ge=vr:Jr[Wt+1]==="/"?(Ge=qe,Wt++):(Me.cannotBeABaseURL=!0,K(Me.path,""),Ge=Wr)}else{if(Ze)return ve;Ft="",Ge=ce,Wt=0;continue}break;case ce:if(!Ue||Ue.cannotBeABaseURL&&rr!=="#")return ve;if(Ue.cannotBeABaseURL&&rr==="#"){Me.scheme=Ue.scheme,Me.path=h(Ue.path),Me.query=Ue.query,Me.fragment="",Me.cannotBeABaseURL=!0,Ge=on;break}Ge=Ue.scheme==="file"?fr:wt;continue;case lt:if(rr==="/"&&Jr[Wt+1]==="/")Ge=nt,Wt++;else{Ge=wt;continue}break;case qe:if(rr==="/"){Ge=or;break}else{Ge=Nr;continue}case wt:if(Me.scheme=Ue.scheme,rr===Ce)Me.username=Ue.username,Me.password=Ue.password,Me.host=Ue.host,Me.port=Ue.port,Me.path=h(Ue.path),Me.query=Ue.query;else if(rr==="/"||rr==="\\"&&Me.isSpecial())Ge=Rt;else if(rr==="?")Me.username=Ue.username,Me.password=Ue.password,Me.host=Ue.host,Me.port=Ue.port,Me.path=h(Ue.path),Me.query="",Ge=Qr;else if(rr==="#")Me.username=Ue.username,Me.password=Ue.password,Me.host=Ue.host,Me.port=Ue.port,Me.path=h(Ue.path),Me.query=Ue.query,Me.fragment="",Ge=on;else{Me.username=Ue.username,Me.password=Ue.password,Me.host=Ue.host,Me.port=Ue.port,Me.path=h(Ue.path),Me.path.length--,Ge=Nr;continue}break;case Rt:if(Me.isSpecial()&&(rr==="/"||rr==="\\"))Ge=nt;else if(rr==="/")Ge=or;else{Me.username=Ue.username,Me.password=Ue.password,Me.host=Ue.host,Me.port=Ue.port,Ge=Nr;continue}break;case vr:if(Ge=nt,rr!=="/"||Y(Ft,Wt+1)!=="/")continue;Wt++;break;case nt:if(rr!=="/"&&rr!=="\\"){Ge=or;continue}break;case or:if(rr==="@"){Ee&&(Ft="%40"+Ft),Ee=!0,sn=b(Ft);for(var dn=0;dn65535)return ze;Me.port=Me.isSpecial()&&Kn===ke[Me.scheme]?null:Kn,Ft=""}if(Ze)return;Ge=_r;continue}else return ze;break;case fr:if(Me.scheme="file",rr==="/"||rr==="\\")Ge=kr;else if(Ue&&Ue.scheme==="file")switch(rr){case Ce:Me.host=Ue.host,Me.path=h(Ue.path),Me.query=Ue.query;break;case"?":Me.host=Ue.host,Me.path=h(Ue.path),Me.query="",Ge=Qr;break;case"#":Me.host=Ue.host,Me.path=h(Ue.path),Me.query=Ue.query,Me.fragment="",Ge=on;break;default:ct(J(h(Jr,Wt),""))||(Me.host=Ue.host,Me.path=h(Ue.path),Me.shortenPath()),Ge=Nr;continue}else{Ge=Nr;continue}break;case kr:if(rr==="/"||rr==="\\"){Ge=hr;break}Ue&&Ue.scheme==="file"&&!ct(J(h(Jr,Wt),""))&&(xt(Ue.path[0],!0)?K(Me.path,Ue.path[0]):Me.host=Ue.host),Ge=Nr;continue;case hr:if(rr===Ce||rr==="/"||rr==="\\"||rr==="?"||rr==="#"){if(!Ze&&xt(Ft))Ge=Nr;else if(Ft===""){if(Me.host="",Ze)return;Ge=_r}else{if(en=Me.parseHost(Ft),en)return en;if(Me.host==="localhost"&&(Me.host=""),Ze)return;Ft="",Ge=_r}continue}else Ft+=rr;break;case _r:if(Me.isSpecial()){if(Ge=Nr,rr!=="/"&&rr!=="\\")continue}else if(!Ze&&rr==="?")Me.query="",Ge=Qr;else if(!Ze&&rr==="#")Me.fragment="",Ge=on;else if(rr!==Ce&&(Ge=Nr,rr!=="/"))continue;break;case Nr:if(rr===Ce||rr==="/"||rr==="\\"&&Me.isSpecial()||!Ze&&(rr==="?"||rr==="#")){if(st(Ft)?(Me.shortenPath(),rr!=="/"&&!(rr==="\\"&&Me.isSpecial())&&K(Me.path,"")):ft(Ft)?rr!=="/"&&!(rr==="\\"&&Me.isSpecial())&&K(Me.path,""):(Me.scheme==="file"&&!Me.path.length&&xt(Ft)&&(Me.host&&(Me.host=""),Ft=Y(Ft,0)+":"),K(Me.path,Ft)),Ft="",Me.scheme==="file"&&(rr===Ce||rr==="?"||rr==="#"))for(;Me.path.length>1&&Me.path[0]==="";)B(Me.path);rr==="?"?(Me.query="",Ge=Qr):rr==="#"&&(Me.fragment="",Ge=on)}else Ft+=me(rr,jt);break;case Wr:rr==="?"?(Me.query="",Ge=Qr):rr==="#"?(Me.fragment="",Ge=on):rr!==Ce&&(Me.path[0]+=me(rr,et));break;case Qr:!Ze&&rr==="#"?(Me.fragment="",Ge=on):rr!==Ce&&(rr==="'"&&Me.isSpecial()?Me.query+="%27":rr==="#"?Me.query+="%23":Me.query+=me(rr,et));break;case on:rr!==Ce&&(Me.fragment+=me(rr,Je));break}Wt++}},parseHost:function(mt){var Ze,Ue,Me;if(Y(mt,0)==="["){if(Y(mt,mt.length-1)!=="]"||(Ze=Re(ee(mt,1,-1)),!Ze))return He;this.host=Ze}else if(this.isSpecial()){if(mt=P(mt),G(tt,mt)||(Ze=Le(mt),Ze===null))return He;this.host=Ze}else{if(G(Tt,mt))return He;for(Ze="",Ue=b(mt),Me=0;Me1?arguments[1]:void 0,Ge=D(Ue,new ur(Ze,!1,Me));r||(Ue.href=Ge.serialize(),Ue.origin=Ge.getOrigin(),Ue.protocol=Ge.getProtocol(),Ue.username=Ge.getUsername(),Ue.password=Ge.getPassword(),Ue.host=Ge.getHost(),Ue.hostname=Ge.getHostname(),Ue.port=Ge.getPort(),Ue.pathname=Ge.getPathname(),Ue.search=Ge.getSearch(),Ue.searchParams=Ge.getSearchParams(),Ue.hash=Ge.getHash())},Vt=tr.prototype,Sr=function(mt,Ze){return{get:function(){return k(this)[mt]()},set:Ze&&function(Ue){return k(this)[Ze](Ue)},configurable:!0,enumerable:!0}};if(r&&(a(Vt,"href",Sr("serialize","setHref")),a(Vt,"origin",Sr("getOrigin")),a(Vt,"protocol",Sr("getProtocol","setProtocol")),a(Vt,"username",Sr("getUsername","setUsername")),a(Vt,"password",Sr("getPassword","setPassword")),a(Vt,"host",Sr("getHost","setHost")),a(Vt,"hostname",Sr("getHostname","setHostname")),a(Vt,"port",Sr("getPort","setPort")),a(Vt,"pathname",Sr("getPathname","setPathname")),a(Vt,"search",Sr("getSearch","setSearch")),a(Vt,"searchParams",Sr("getSearchParams")),a(Vt,"hash",Sr("getHash","setHash"))),c(Vt,"toJSON",function(){return k(this).serialize()},{enumerable:!0}),c(Vt,"toString",function(){return k(this).serialize()},{enumerable:!0}),R){var yr=R.createObjectURL,Ir=R.revokeObjectURL;yr&&c(tr,"createObjectURL",s(yr,R)),Ir&&c(tr,"revokeObjectURL",s(Ir,R))}I(tr,"URL"),t({global:!0,constructor:!0,forced:!n,sham:!r},{URL:tr})},25204:function(i,d,e){"use strict";e(13588)},47803:function(i,d,e){"use strict";var t=e(94488),r=e(89945);t({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return r(URL.prototype.toString,this)}})},73825:function(i,d,e){"use strict";e.d(d,{Z:function(){return t}});function t(r){if(Array.isArray(r))return r}},65873:function(i,d,e){"use strict";e.d(d,{Z:function(){return r}});var t=e(89878);function r(n,o,s){return o=(0,t.Z)(o),o in n?Object.defineProperty(n,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[o]=s,n}},38329:function(i,d,e){"use strict";e.d(d,{Z:function(){return t}});function t(){return t=Object.assign?Object.assign.bind():function(r){for(var n=1;n=0)&&(s[c]=n[c]);return s}function r(n,o){if(n==null)return{};var s=t(n,o),u,c;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(n);for(c=0;c=0)&&Object.prototype.propertyIsEnumerable.call(n,u)&&(s[u]=n[u])}return s}},87296:function(i,d,e){"use strict";e.d(d,{Z:function(){return s}});var t=e(73825);function r(u,c){var a=u==null?null:typeof Symbol!="undefined"&&u[Symbol.iterator]||u["@@iterator"];if(a!=null){var f,g,p,b,h=[],E=!0,P=!1;try{if(p=(a=a.call(u)).next,c===0){if(Object(a)!==a)return;E=!1}else for(;!(E=(f=p.call(a)).done)&&(h.push(f.value),h.length!==c);E=!0);}catch(A){P=!0,g=A}finally{try{if(!E&&a.return!=null&&(b=a.return(),Object(b)!==b))return}finally{if(P)throw g}}return h}}var n=e(99227),o=e(66160);function s(u,c){return(0,t.Z)(u)||r(u,c)||(0,n.Z)(u,c)||(0,o.Z)()}},89878:function(i,d,e){"use strict";e.d(d,{Z:function(){return n}});var t=e(8616);function r(o,s){if((0,t.Z)(o)!="object"||!o)return o;var u=o[Symbol.toPrimitive];if(u!==void 0){var c=u.call(o,s||"default");if((0,t.Z)(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(o)}function n(o){var s=r(o,"string");return(0,t.Z)(s)=="symbol"?s:String(s)}},8616:function(i,d,e){"use strict";e.d(d,{Z:function(){return t}});function t(r){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},t(r)}},99227:function(i,d,e){"use strict";e.d(d,{Z:function(){return r}});function t(n,o){(o==null||o>n.length)&&(o=n.length);for(var s=0,u=new Array(o);sr.length)&&(n=r.length);for(var o=0,s=Array(n);o=0;--ee){var ae=this.tryEntries[ee],le=ae.completion;if(ae.tryLoc==="root")return H("end");if(ae.tryLoc<=this.prev){var pe=u.call(ae,"catchLoc"),ve=u.call(ae,"finallyLoc");if(pe&&ve){if(this.prev=0;--H){var ee=this.tryEntries[H];if(ee.tryLoc<=this.prev&&u.call(ee,"finallyLoc")&&this.prev=0;--B){var H=this.tryEntries[B];if(H.finallyLoc===M)return this.complete(H.completion,H.afterLoc),J(H),O}},catch:function(M){for(var B=this.tryEntries.length-1;B>=0;--B){var H=this.tryEntries[B];if(H.tryLoc===M){var ee=H.completion;if(ee.type==="throw"){var ae=ee.arg;J(H)}return ae}}throw Error("illegal catch attempt")},delegateYield:function(M,B,H){return this.delegate={iterator:Z(M),resultName:B,nextLoc:H},this.method==="next"&&(this.arg=n),O}},o}},60039:function(i,d,e){"use strict";e.d(d,{Z:function(){return t}});function t(r,n){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,s){return o.__proto__=s,o},t(r,n)}},52487:function(i,d,e){"use strict";e.d(d,{Z:function(){return s}});var t=e(29675);function r(u,c){var a=u==null?null:typeof Symbol!="undefined"&&u[Symbol.iterator]||u["@@iterator"];if(a!=null){var f,g,p,b,h=[],E=!0,P=!1;try{if(p=(a=a.call(u)).next,c===0){if(Object(a)!==a)return;E=!1}else for(;!(E=(f=p.call(a)).done)&&(h.push(f.value),h.length!==c);E=!0);}catch(A){P=!0,g=A}finally{try{if(!E&&a.return!=null&&(b=a.return(),Object(b)!==b))return}finally{if(P)throw g}}return h}}var n=e(13873),o=e(49787);function s(u,c){return(0,t.Z)(u)||r(u,c)||(0,n.Z)(u,c)||(0,o.Z)()}},68413:function(i,d,e){"use strict";e.d(d,{Z:function(){return s}});var t=e(29675),r=e(97591),n=e(13873),o=e(49787);function s(u){return(0,t.Z)(u)||(0,r.Z)(u)||(0,n.Z)(u)||(0,o.Z)()}},80702:function(i,d,e){"use strict";e.d(d,{Z:function(){return u}});var t=e(56243);function r(c){if(Array.isArray(c))return(0,t.Z)(c)}var n=e(97591),o=e(13873);function s(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u(c){return r(c)||(0,n.Z)(c)||(0,o.Z)(c)||s()}},60254:function(i,d,e){"use strict";e.d(d,{Z:function(){return n}});var t=e(62853);function r(o,s){if((0,t.Z)(o)!="object"||!o)return o;var u=o[Symbol.toPrimitive];if(u!==void 0){var c=u.call(o,s||"default");if((0,t.Z)(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(o)}function n(o){var s=r(o,"string");return(0,t.Z)(s)=="symbol"?s:s+""}},62853:function(i,d,e){"use strict";e.d(d,{Z:function(){return t}});function t(r){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},t(r)}},13873:function(i,d,e){"use strict";e.d(d,{Z:function(){return r}});var t=e(56243);function r(n,o){if(n){if(typeof n=="string")return(0,t.Z)(n,o);var s={}.toString.call(n).slice(8,-1);return s==="Object"&&n.constructor&&(s=n.constructor.name),s==="Map"||s==="Set"?Array.from(n):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?(0,t.Z)(n,o):void 0}}},53280:function(i,d,e){"use strict";e.d(d,{D:function(){return r}});function t(n,o,s){var u=s||{},c=u.noTrailing,a=c===void 0?!1:c,f=u.noLeading,g=f===void 0?!1:f,p=u.debounceMode,b=p===void 0?void 0:p,h,E=!1,P=0;function A(){h&&clearTimeout(h)}function I(O){var T=O||{},D=T.upcomingOnly,k=D===void 0?!1:D;A(),E=!k}function C(){for(var O=arguments.length,T=new Array(O),D=0;Dn?g?(P=Date.now(),a||(h=setTimeout(b?R:L,n))):L():a!==!0&&(h=setTimeout(b?R:L,b===void 0?n-$:n))}return C.cancel=I,C}function r(n,o,s){var u=s||{},c=u.atBegin,a=c===void 0?!1:c;return t(n,o,{debounceMode:a!==!1})}}},__webpack_module_cache__={};function __webpack_require__(i){var d=__webpack_module_cache__[i];if(d!==void 0)return d.exports;var e=__webpack_module_cache__[i]={id:i,loaded:!1,exports:{}};return __webpack_modules__[i].call(e.exports,e,e.exports,__webpack_require__),e.loaded=!0,e.exports}__webpack_require__.m=__webpack_modules__,function(){__webpack_require__.amdO={}}(),function(){__webpack_require__.n=function(i){var d=i&&i.__esModule?function(){return i.default}:function(){return i};return __webpack_require__.d(d,{a:d}),d}}(),function(){var i=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},d;__webpack_require__.t=function(e,t){if(t&1&&(e=this(e)),t&8||typeof e=="object"&&e&&(t&4&&e.__esModule||t&16&&typeof e.then=="function"))return e;var r=Object.create(null);__webpack_require__.r(r);var n={};d=d||[null,i({}),i([]),i(i)];for(var o=t&2&&e;typeof o=="object"&&!~d.indexOf(o);o=i(o))Object.getOwnPropertyNames(o).forEach(function(s){n[s]=function(){return e[s]}});return n.default=function(){return e},__webpack_require__.d(r,n),r}}(),function(){__webpack_require__.d=function(i,d){for(var e in d)__webpack_require__.o(d,e)&&!__webpack_require__.o(i,e)&&Object.defineProperty(i,e,{enumerable:!0,get:d[e]})}}(),function(){__webpack_require__.f={},__webpack_require__.e=function(i){return Promise.all(Object.keys(__webpack_require__.f).reduce(function(d,e){return __webpack_require__.f[e](i,d),d},[]))}}(),function(){__webpack_require__.u=function(i){return""+({26:"p__Classrooms__Lists__Graduation__Tasks__Edit__index",67:"p__Message__index",109:"p__Classrooms__Lists__ShixunHomeworks__Detail__components__CodeReview__Detail__index",195:"p__Classrooms__Lists__GroupHomework__Detail__index",264:"p__User__Detail__Order__pages__orderPay__index",265:"p__User__Detail__Topics__index",292:"p__Classrooms__Lists__Exercise__Add__index",310:"p__User__Detail__ExperImentImg__Detail__index",337:"p__Paperlibrary__Random__PreviewEdit__index",342:"p__Classrooms__Lists__ShixunHomeworks__Comment__index",479:"p__Classrooms__Lists__GroupHomework__EditWork__index",485:"p__Question__AddOrEdit__BatchAdd__index",508:"p__Forums__Detail__id",532:"p__ExcellentCourse__index",533:"p__Classrooms__Lists__Video__Statistics__Detail__index",547:"p__Account__index",556:"p__User__Detail__Order__pages__invoice__index",559:"layouts__virtualDetail__index",576:"p__Account__Profile__Edit__index",643:"p__Classrooms__Lists__Polls__QuestionnaireInfo__index",680:"p__Innovation__index",700:"p__tasks__Jupyter__index",737:"p__Classrooms__Lists__CommonHomework__Detail__components__CodeReview__Detail__index",799:"p__User__Detail__Topics__Poll__Detail__index",869:"p__Guidance__index",895:"p__Classrooms__Lists__Video__Items__videoInfo__index",919:"p__knowledgegraph__Statistics__LearningPath__index",921:"p__Classrooms__Lists__Exercise__CodeDetails__index",928:"p__RestFul__Edit__index",1006:"p__RestFul__index",1043:"p__Classrooms__Lists__Graduation__Tasks__index",1045:"p__virtualSpaces__Lists__Knowledge__AddAndEdit__index",1048:"p__Classrooms__Lists__ProgramHomework__Detail__Ranking__index",1070:"p__Innovation__PublicMirror__index",1148:"p__Shixuns__Detail__Repository__UploadFile__index",1211:"p__Classrooms__Lists__CommonHomework__EditWork__index",1253:"p__Graduations__Lists__Gradingsummary__index",1257:"p__Classrooms__Lists__ResourceRecommend__index",1265:"p__Classrooms__Lists__Announcement__index",1276:"p__MoopCases__Success__index",1343:"p__User__Detail__ResourceAllocation__index",1416:"p__User__Detail__AccountInfo__CareerCertification__index",1423:"p__Shixuns__Edit__body__Level__Challenges__EditPracticeAnswer__index",1427:"p__Classrooms__Lists__Statistics__index",1443:"p__EffectivenessAnalysis__index",1450:"p__Classrooms__Lists__ShixunHomeworks__Commitsummary__index",1461:"p__Graduations__Lists__Topics__index",1470:"p__User__Register__index",1475:"p__Shixuns__Detail__Dataset__JupyterData__index",1482:"p__Classrooms__Lists__Graduation__Topics__Edit__index",1512:"p__Classrooms__Lists__Exercise__AnswerCheck__index",1520:"p__Engineering__Lists__StudentList__index",1545:"p__Paperlibrary__Random__ExchangeFromProblemSet__index",1578:"p__Classrooms__Lists__Graduation__Topics__Detail__index",1581:"p__Problemset__Preview__index",1582:"p__Classrooms__Lists__GroupHomework__Add__index",1657:"p__Shixuns__Edit__body__Level__Challenges__EditQuestion__index",1660:"p__User__QQLogin__index",1674:"p__Classrooms__ClassicCases__index",1702:"p__Classrooms__New__index",1713:"p__virtualSpaces__Lists__Settings__index",1717:"layouts__index",1727:"p__Classrooms__Lists__CourseGroup__NotList__index",1783:"p__virtualSpaces__Lists__Experiment__index",1799:"p__Competitions__Entered__Assembly__TeamDateil",1831:"p__Graduations__Index__index",1836:"p__Classrooms__Lists__Attendance__Webview__Teacher__index",1855:"p__MoopCases__InfoPanel__index",1880:"p__User__Detail__Order__pages__apply__index",1939:"p__User__Detail__Order__index",1953:"p__Problemset__NewItem__index",1962:"p__Classrooms__Lists__Engineering__index",2045:"p__Engineering__Lists__TeacherList__index",2076:"p__User__Detail__Competitions__index",2102:"p__Classrooms__Lists__Board__Edit__index",2141:"p__Shixuns__Detail__Split__index",2216:"p__DataSet__Index__index",2240:"p__User__Detail__Videos__Upload__index",2254:"p__Shixuns__Detail__Discuss__index",2300:"p__Api__index",2303:"p__Classrooms__Lists__CommonHomework__Comment__index",2307:"p__Report__index",2338:"p__Classrooms__Lists__CommonHomework__Review__index",2339:"p__virtualSpaces__Lists__Plan__Detail__index",2396:"p__User__Detail__ResourcesCenter__index",2404:"p__Classrooms__Lists__Template__teacher__index",2412:"p__User__Detail__Videos__index",2425:"p__Classrooms__Lists__Board__Detail__index",2443:"p__Graduations__Lists__StageModule__index",2476:"p__Colleges__index",2501:"p__Search__index",2524:"p__knowledgegraph__Detail__components__Content__components__AbilityMap__Detail__index",2529:"p__User__Detail__id",2539:"p__Graduations__Review__index",2548:"p__Engineering__Norm__Detail__index",2570:"p__Competitions__Detail__index",2603:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Add__index",2659:"p__User__Detail__UserPortrait__index",2707:"p__Innovation__MyDataSet__index",2806:"p__User__Detail__Topics__Exercise__Detail__index",2819:"p__Classrooms__Lists__Template__detail__index",2823:"p__Engineering__Navigation__Home__index",2826:"p__User__Detail__DataSet__index",2829:"p__Messages__Private__index",2865:"p__Innovation__MyMirror__index",2875:"p__Shixuns__Detail__id",2884:"p__Classrooms__Lists__ProgramHomework__Comment__index",2983:"p__Forums__Index__index",3006:"p__Engineering__index",3141:"p__Innovation__Detail__index",3157:"p__User__Detail__ExperImentImg__Add__index",3183:"p__Engineering__Lists__GraduationIndex__index",3212:"p__MoopCases__index",3220:"p__Classrooms__Lists__Video__Upload__index",3247:"p__Paperlibrary__See__index",3260:"p__Paperlibrary__Add__index",3282:"layouts__ShixunDetail__index",3317:"p__Classrooms__Lists__Graduation__Topics__Add__index",3332:"p__Paths__Detail__id",3355:"p__Classrooms__Lists__Polls__index",3356:"p__Classrooms__Lists__Assistant__index",3391:"p__Classrooms__Lists__ProgramHomework__Detail__components__CodeReview__Detail__index",3433:"p__Classrooms__Lists__Exercise__Sumup__Edit__index",3442:"p__Classrooms__Lists__Board__Add__index",3447:"p__User__Detail__Order__pages__orderInformation__index",3451:"p__Classrooms__Lists__Statistics__StudentStatistics__Detail__index",3496:"p__User__Detail__OtherResources__index",3509:"p__HttpStatus__SixActivities",3581:"p__Classrooms__Lists__ShixunHomeworks__Detail__index",3585:"p__Classrooms__Lists__Statistics__StudentSituation__index",3589:"p__knowledgegraph__Statistics__index",3665:"p__tasks__index",3668:"p__Classrooms__Lists__CommonHomework__Detail__index",3685:"p__knowledgegraph__Detail__components__Content__components__AbilityMap__Edit__index",3747:"p__virtualSpaces__Lists__Homepage__index",3784:"p__Paperlibrary__Random__Detail__index",3862:"p__HttpStatus__403",3873:"p__virtualSpaces__Lists__Lesson__index",3897:"p__WxMiniProgram__Courseware__Study__index",3910:"p__HttpStatus__introduction",3935:"p__Classrooms__Lists__GroupHomework__index",3951:"p__Classrooms__Lists__ProgramHomework__Detail__index",4017:"p__Classrooms__Lists__PlaceholderPage__index",4030:"p__Classrooms__Lists__ProgramHomework__AddAndEdit__index",4056:"p__IntrainCourse__index",4058:"p__Demo__index",4078:"p__Messages__Tidings__index",4093:"p__Classrooms__Lists__Attendance__Detail__index",4105:"p__Classrooms__Lists__Exercise__Answer__index",4144:"p__Problemset__Preview__New__index",4164:"p__Classrooms__Lists__Exercise__Detail__index",4216:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Edit__index",4217:"p__Classrooms__Lists__Video__Statistics__index",4227:"p__Paths__Overview__index",4259:"p__User__Detail__Order__pages__result__index",4264:"p__Forums__New__index",4449:"p__Competitions__Exports__index",4492:"p__Graduations__Lists__StudentSelection__index",4496:"p__HttpStatus__HpcCourse",4498:"p__Shixuns__Edit__body__Level__Challenges__NewPractice__index",4504:"p__virtualSpaces__Lists__Survey__index",4514:"p__Account__Results__index",4520:"p__Account__Secure__index",4546:"p__Engineering__Lists__TrainingProgram__Add__index",4565:"p__HttpStatus__500",4572:"p__Classrooms__Lists__ExportList__index",4599:"p__Problemset__index",4601:"p__Paths__Detail__Statistics__index",4610:"p__User__Detail__LearningPath__index",4621:"p__Administration__Profession__index",4662:"p__Classrooms__Lists__GroupHomework__Review__index",4715:"p__virtualSpaces__Lists__Material__Detail__index",4736:"p__User__Detail__Projects__index",4741:"p__Problems__OjForm__NewEdit__index",4757:"p__virtualSpaces__Lists__Workplace__index",4766:"p__Administration__index",4770:"p__Classrooms__Lists__ProgramHomework__Detail__answer__index",4795:"p__Classrooms__Lists__Graduation__Tasks__Add__index",4800:"p__Engineering__Lists__GraduatedMatrix__index",4849:"p__User__Detail__ExperImentImg__index",4862:"p__Paperlibrary__index",4884:"p__Shixuns__Detail__Repository__Commit__index",4889:"p__Classrooms__Lists__Exercise__ImitateAnswer__index",4928:"p__Classrooms__Lists__LearningPath__index",4973:"p__Engineering__Evaluate__List__index",4994:"p__Problems__OjForm__index",5022:"p__Graduations__Lists__Settings__index",5043:"p__User__Detail__Topics__Poll__Edit__index",5048:"p__Classrooms__Lists__Graduation__Topics__index",5096:"p__Shixuns__Detail__AuditSituation__index",5111:"p__Terminal__index",5125:"p__Classrooms__Lists__Exercise__DetailedAnalysis__index",5148:"p__Classrooms__Lists__Polls__Answer__index",5176:"p__User__Detail__Videos__Protocol__index",5179:"p__Administration__Student__Edit__index",5186:"p__Classrooms__Overview__index",5191:"p__User__Detail__Certificate__index",5238:"p__virtualSpaces__Lists__Material__index",5297:"p__Classrooms__Lists__Exercise__Detail__components__DuplicateChecking__CheckDetail__index",5319:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Detail__index",5335:"p__Engineering__Lists__CourseMatrix__index",5357:"p__Engineering__Lists__TrainingProgram__Edit__index",5359:"p__Messages__Detail__index",5382:"p__DataSet__Detail__index",5402:"p__User__Detail__Topics__Detail__index",5470:"p__Shixuns__Detail__Collaborators__index",5518:"p__Classrooms__Lists__Template__index",5549:"p__Shixuns__New__CreateImg__index",5572:"p__Paths__HigherVocationalEducation__index",5573:"p__Shixuns__Detail__Merge__index",5599:"p__User__Detail__Paths__index",5624:"p__Graduations__Lists__Index__index",5650:"p__Competitions__Update__index",5705:"p__virtualSpaces__Lists__Construction__index",5729:"p__Help__Index",5741:"p__Classrooms__Lists__SmartPlan__index",5775:"p__Engineering__Lists__Document__index",5786:"layouts__LoginAndRegister__index",5798:"p__Classrooms__Lists__Video__Statistics__UserDetail__index",5816:"p__Paperlibrary__Random__Edit__index",5825:"p__Classrooms__Lists__Exercise__index",5888:"p__Classrooms__Lists__CommonHomework__Add__index",5891:"p__virtualSpaces__Lists__Resources__index",5895:"p__User__Detail__AccountInfo__Profile__Edit__index",5902:"p__Classrooms__Lists__Exercise__Sumup__index",5915:"p__knowledgegraph__Detail__Statistics__index",5992:"p__Classrooms__Lists__Exercise__ReviewGroup__index",6029:"p__Administration__Student__index",6034:"p__HttpStatus__UserAgents",6052:"p__Paths__Index__index",6063:"p__Graduations__Lists__Personmanage__index",6069:"p__virtualSpaces__Lists__Lesson__Detail__index",6127:"p__Classrooms__Lists__ProgramHomework__Ranking__index",6170:"p__HttpStatus__downloadStudent",6265:"p__virtualSpaces__Lists__Discussion__index",6270:"p__MyProblem__index",6277:"p__Shixuns__Edit__index",6328:"p__Shixuns__Edit__body__Warehouse__index",6366:"p__Innovation__PublicProject__index",6434:"p__User__Detail__Order__pages__records__index",6444:"p__Video__Detail__id",6452:"p__Innovation__PublicDataSet__index",6531:"p__HttpStatus__404",6541:"p__Shixuns__Detail__Dataset__index",6583:"p__User__Detail__Classrooms__index",6587:"p__User__Detail__Videos__Protocol__resource",6634:"p__Innovation__Tasks__index",6651:"p__Engineering__Evaluate__Detail__index",6685:"p__Classrooms__Index__index",6729:"p__Classrooms__Lists__GroupHomework__Edit__index",6741:"p__Engineering__Norm__List__index",6758:"p__Classrooms__Lists__Attachment__index",6784:"p__Innovation__Edit__index",6788:"p__Classrooms__Lists__ProgramHomework__index",6796:"p__virtualSpaces__Lists__Announcement__Detail__index",6805:"p__User__Detail__AccountInfo__RealNameCertification__index",6820:"p__User__Detail__Topics__Normal__index",6845:"p__Shixuns__Detail__Settings__index",6882:"p__Classrooms__New__StartClass__index",6883:"p__Competitions__Index__index",6904:"p__MoopCases__FormPanel__index",6913:"p__Question__AddOrEdit__index",6963:"p__Classrooms__Lists__Engineering__Detail__index",6982:"p__User__Detail__AccountInfo__Profile__index",7008:"p__Shixuns__New__index",7042:"p__knowledgegraph__Statistics__LearningPath__Detail",7043:"p__User__Detail__Topics__Exercise__Edit__index",7045:"p__Classrooms__Lists__CommonHomework__SubmitWork__index",7046:"p__Shixuns__Detail__Repository__AddFile__index",7058:"p__virtualSpaces__Lists__Survey__Detail__index",7062:"layouts__SimpleLayouts",7178:"p__User__BindAccount__index",7182:"p__User__ResetPassword__index",7242:"p__Innovation__MyProject__index",7260:"p__Account__Certification__index",7333:"p__User__WechatLogin__index",7395:"p__Classrooms__Lists__Statistics__StudentDetail__index",7460:"p__Question__OjProblem__index",7477:"p__virtualSpaces__Lists__Announcement__index",7482:"p__Classrooms__Lists__Exercise__Notice__index",7527:"p__MyProblem__RecordDetail__index",7545:"p__Graduations__Lists__Archives__index",7560:"p__Administration__College__index",7589:"p__virtualSpaces__Lists__DigitalTopics__index",7614:"p__Shixuns__Edit__body__Level__Challenges__RankingSetting__index",7622:"p__Classrooms__Lists__Polls__Detail__index",7806:"p__Classrooms__Lists__Statistics__StatisticsQuality__index",7852:"p__Classrooms__Lists__ShixunHomeworks__index",7855:"p__User__Detail__ResourcesCenter__Detail__index",7857:"p__Shixuns__Edit__body__Level__Challenges__NewQuestion__index",7878:"p__Classrooms__Lists__LiveVideo__index",7884:"p__Shixuns__Exports__index",7922:"p__Classrooms__Lists__CourseGroup__Detail__index",8014:"p__Classrooms__Lists__Teachers__index",8062:"p__User__Detail__Topicbank__index",8072:"p__Classrooms__Lists__GroupHomework__SubmitWork__index",8077:"p__Classrooms__Lists__Students__index",8085:"p__Classrooms__Lists__Exercise__Review__index",8143:"layouts__GraduationsDetail__index",8155:"p__Shixuns__Overview__index",8237:"p__User__Detail__Order__pages__view__index",8241:"p__virtualSpaces__Lists__Plan__index",8285:"p__Classrooms__Lists__SmartPlan__Info__index",8302:"p__Classrooms__Lists__Board__index",8307:"p__User__Detail__Shixuns__index",8340:"p__Classrooms__Lists__Attendance__Webview__Student__index",8398:"p__virtualSpaces__Lists__Resources__Detail__index",8431:"p__Classrooms__Lists__Exercise__Export__index",8435:"p__Classrooms__Lists__Attendance__index",8447:"p__virtualSpaces__Lists__Knowledge__index",8517:"p__User__Detail__Topics__Group__index",8522:"p__Classrooms__Lists__SmartPlan__Info__PptInfo__index",8563:"p__virtualSpaces__Lists__Discussion__Detail__index",8634:"p__Classrooms__Lists__CourseGroup__List__index",8639:"p__Forums__Index__redirect",8665:"p__Engineering__Lists__TrainingObjectives__index",8688:"p__Shixuns__Detail__Repository__index",8689:"p__Classrooms__Lists__Statistics__VideoStatistics__index",8723:"p__Classrooms__Lists__Polls__Edit__index",8782:"p__Shixuns__Index__index",8787:"p__Competitions__Entered__index",8797:"p__Competitions__Edit__index",8823:"p__knowledgegraph__Detail__id",8827:"p__Classrooms__Lists__OnlineLearning__index",8866:"p__index",8882:"p__Classrooms__Lists__Graduation__Tasks__Detail__index",8885:"p__Classrooms__Lists__Statistics__StudentStatistics__index",8982:"p__Paths__New__index",8999:"p__Three__index",9076:"p__Account__Binding__index",9133:"p__Shixuns__Detail__Challenges__index",9205:"p__Shixuns__Edit__body__Level__Challenges__EditPracticeSetting__index",9215:"p__Shixuns__Detail__ForkList__index",9332:"p__Classrooms__Lists__Video__index",9360:"p__User__Detail__virtualSpaces__index",9366:"p__User__Login__index",9391:"p__Engineering__Lists__CurseSetting__index",9404:"monaco-editor",9408:"p__Shixuns__Detail__RankingList__index",9416:"p__Graduations__Lists__Tasks__index",9472:"p__Shixuns__Detail__Poll__index",9487:"p__LargeScreen__index",9489:"p__Engineering__Lists__CourseList__index",9507:"p__User__Detail__ResourceGuarantee__index",9590:"p__User__Detail__TeachGroup__index",9647:"p__Question__Index__index",9649:"p__Engineering__Lists__TrainingProgram__index",9674:"p__Shixuns__New__ImagePreview__index",9677:"p__virtualSpaces__Lists__Announcement__AddAndEdit__index",9695:"p__Classrooms__Lists__Polls__Add__index",9715:"p__Classrooms__Lists__CommonHomework__Edit__index",9716:"p__Question__OjProblem__RecordDetail__index",9785:"p__Classrooms__Lists__Template__student__index",9788:"p__Account__Profile__index",9890:"p__Classrooms__Lists__CommonHomework__index",9891:"p__User__Detail__Videos__Success__index",9921:"p__Classrooms__ExamList__index",9922:"p__Classrooms__Lists__Statistics__StudentVideo__index",9944:"p__Classrooms__Lists__Video__Statistics__StudentDetail__index"}[i]||i)+"."+{26:"c88986e3",67:"9cc65b09",109:"c08cec85",195:"5889d76b",264:"fb2d6182",265:"e9546a06",278:"6c70bcfc",292:"2006e2dd",310:"b1218f7a",316:"1f60ada6",337:"a01fd269",342:"a38bee5c",354:"d4d139cf",479:"6d6dabf3",485:"07ccf390",508:"07bc40a9",532:"8c144260",533:"8e62d180",547:"3b89fa9b",556:"ee71b8a9",559:"b50a2173",576:"99254dfa",629:"44a1d9a5",643:"6bdd3695",671:"4a609b8d",680:"1447b98d",700:"dde257a2",737:"01f1e0f9",741:"ac5fd360",799:"16eaa329",869:"7f28e3f3",895:"f7006ba3",919:"092e3724",921:"8da39ed2",928:"5746d29b",981:"24da50c7",1006:"993d1bcc",1043:"9adf518d",1045:"2321c941",1048:"118bbd38",1070:"c3604541",1144:"c90eccaf",1148:"8398f3fd",1154:"8cb80842",1188:"f4633e3d",1211:"d9002e0c",1253:"2099f38d",1257:"6952134d",1265:"aee3ed55",1274:"5f6ea65a",1276:"1232c571",1343:"3da74c1e",1416:"6c331f76",1423:"9ae869a5",1427:"c1bfeaa4",1443:"a4f9af9d",1450:"75b52403",1461:"a450b7c2",1462:"fcf08abc",1470:"e7a0843d",1475:"085f9d6f",1482:"80167b75",1512:"ae3b1fa1",1520:"c6090522",1545:"8eb5eaee",1578:"bb60eee6",1581:"eee8cfc2",1582:"04dd8d5c",1646:"e6e27b60",1657:"2e0a44c1",1660:"a810c076",1674:"3eb6ba9a",1702:"1dacf85d",1713:"7ee087c3",1717:"e457b6b5",1727:"fadb3d2d",1783:"f9fba777",1799:"fa951f21",1831:"75a63677",1836:"c220805c",1855:"c2ee81ed",1880:"cab4f631",1939:"0df05ade",1953:"646b25c9",1962:"23d27467",2011:"59d51f98",2045:"a149bcc1",2076:"6daa4993",2102:"a57f7e29",2141:"182cc90e",2216:"907cf53b",2240:"a1b7efc4",2249:"f4830452",2254:"12310b10",2262:"3c3af85f",2300:"e1bf89cf",2303:"1034def2",2307:"bb61c1e8",2338:"afda9066",2339:"765b0694",2386:"192e235c",2396:"42ae1807",2404:"d9f5227c",2412:"7a2e6036",2413:"f18d3187",2425:"037d72c2",2443:"3a90e413",2476:"7e64c9b9",2494:"68080a87",2501:"6ec57414",2524:"53312535",2529:"76e49009",2538:"de4a3723",2539:"dc365e96",2548:"a8fbf09d",2570:"4bf36b75",2594:"e87d3761",2603:"ff4dded9",2659:"2bec3ca5",2707:"8ddc006b",2806:"c3375b8a",2819:"ba48f213",2823:"ffeb7191",2826:"d47dce5c",2829:"ac34ddc7",2837:"54a82605",2865:"6d2e0ab7",2875:"77c1c61b",2884:"632ce1c4",2967:"00f9206d",2969:"ab3357d7",2983:"fd32b184",3006:"ab9f73a0",3133:"9bf3f89c",3141:"336df2a0",3157:"f373970e",3183:"e30973c4",3198:"8e655451",3212:"a5e343d2",3220:"4bbae0ce",3247:"03c62a13",3260:"83ca897b",3267:"7bab569a",3282:"72f1506c",3317:"d869dedd",3332:"d86accbf",3355:"a5052877",3356:"295e2b44",3391:"80021ede",3433:"5fb10824",3442:"c7622f11",3447:"1e9582ee",3451:"59c9783a",3496:"00e58418",3509:"c4ddc38c",3550:"3dc83156",3581:"e0713b4b",3585:"d76493a6",3589:"286429c4",3665:"e3b2b54b",3668:"b816aaa6",3685:"eacd4afb",3697:"481a10d9",3747:"1424993f",3754:"8a42053c",3777:"d5b0f2f1",3784:"1f2c11c8",3805:"9dbcb95e",3862:"8806fb69",3873:"8d54ee3b",3885:"f87f7f15",3897:"dce6884b",3910:"badbd452",3935:"90819bf2",3951:"2223870b",3987:"a5fa1e4d",4014:"27a8e97c",4017:"b1859413",4030:"c34abf8d",4056:"1f0162ef",4058:"6208ddf2",4078:"9a077491",4088:"236723f3",4093:"90bed040",4105:"0e283acd",4144:"35e5f8eb",4164:"4c3d40af",4184:"ff08337d",4216:"88405980",4217:"aa0c899d",4227:"3ef15339",4259:"7527addd",4264:"a436a7a2",4347:"ce21ef2e",4354:"140899b7",4360:"cf5efa52",4449:"92b1a708",4492:"eb01b811",4496:"fc0c0614",4498:"4a97d791",4504:"f77ce9d4",4514:"14c75352",4520:"e87e91b0",4546:"c4c3db6c",4565:"34ca03e6",4572:"d8043c77",4599:"6cc673d8",4601:"73c33025",4610:"ec7a63bb",4621:"dde2f749",4628:"ece2c60c",4653:"69c5bf4c",4662:"ecb9c172",4685:"c33f1528",4715:"6f956963",4736:"73ea7274",4741:"9b47ae07",4757:"1f54d32b",4766:"d267690e",4770:"11a71f86",4790:"619413e4",4795:"5ee20195",4797:"a24e92db",4800:"b4dd94e3",4849:"08b1303f",4850:"1edda4b7",4862:"b426aa37",4884:"f134344a",4889:"50b4d512",4928:"caabf7b4",4973:"28aa0c10",4994:"c0318238",5022:"ada82325",5043:"f256f803",5048:"3b7720a9",5060:"85dafcc6",5096:"eebbd1d8",5111:"aa154aeb",5125:"35a4201c",5148:"b37ee714",5176:"fb31544e",5179:"5353a67f",5186:"0204709f",5191:"ed40b41f",5238:"85b688ac",5290:"5dabcdc2",5297:"84fa57d1",5319:"63ff87e5",5321:"1163c84e",5335:"f901d89d",5354:"7ae70604",5357:"a0784fdd",5359:"156afd1b",5382:"1a4857dd",5402:"92e51ce9",5416:"454536b7",5434:"38b302a6",5470:"b7634dda",5494:"d89549c4",5518:"bcfc2d5b",5549:"7808afde",5572:"773f0e2f",5573:"5d3fa326",5599:"db4f249b",5624:"4b356af1",5631:"e00d3d36",5650:"436f08c6",5679:"4a090bef",5705:"41d2c5f1",5729:"bd9eeac7",5741:"7dc6f742",5764:"e0d7e586",5775:"09da26d0",5786:"b0646120",5798:"b54829ae",5816:"2ef074fd",5825:"0dd96dab",5876:"5eded409",5886:"490e40cd",5888:"f5ca41ff",5891:"63a3e0c4",5895:"d80048df",5902:"82dbc3e8",5915:"016d9291",5992:"52705558",6029:"955a6a9f",6034:"bc5089a2",6045:"d268f87f",6047:"3ce45acd",6052:"a88dd84e",6063:"539525fa",6069:"a8f9f6f0",6126:"99519171",6127:"ef2157a1",6170:"07f25c2b",6265:"215c6bb7",6270:"94b5f31e",6272:"4c216d13",6277:"47c6c829",6309:"f80bd663",6328:"15b3a1a7",6366:"82676765",6378:"7f3a946a",6411:"7d1994e3",6434:"3ea89182",6444:"ee441367",6452:"ce5249d6",6531:"eac0ffe2",6541:"b5e7feff",6583:"330055cf",6587:"f993e3e5",6634:"5f7a8c4b",6651:"e9bd2590",6685:"61bf44af",6729:"ee3cfa80",6741:"13753e91",6758:"efeffddb",6774:"59d4d618",6784:"cef3d262",6788:"72b2ea76",6796:"fd25d805",6804:"3d1b09d7",6805:"b5e013b0",6820:"3734a5e9",6845:"8c5ad546",6882:"9652388c",6883:"556889fa",6904:"ddd27375",6913:"895f5f89",6963:"b1366f48",6982:"b750209e",7008:"9baea905",7042:"548588cc",7043:"c813aaa5",7045:"dada71fe",7046:"ea9241bf",7058:"f2c188d4",7062:"b7c7d310",7084:"46ccce72",7156:"e7466006",7178:"1f56ceb7",7182:"9ae59eaf",7242:"bf63919a",7260:"77d01a75",7331:"2e27a23b",7333:"4cd2a40b",7365:"1005464f",7369:"2f8d32dd",7395:"3741017b",7460:"aa977e8b",7477:"093c7999",7482:"1584299c",7511:"8c765622",7527:"9b19ed7e",7545:"96ef4245",7560:"ecff4096",7589:"359e8f23",7591:"8354027c",7614:"2fcecb3f",7622:"be1787e4",7631:"dee68dc0",7686:"4fcec9f9",7706:"c2a79e40",7806:"4095c634",7852:"bfc08211",7855:"bb9e47eb",7857:"f15d16f1",7878:"a4543761",7884:"c771eb3c",7922:"ebf2d1fe",7964:"29aed9a1",8014:"603569ee",8062:"7de22a25",8072:"1f77366e",8077:"c1023ede",8085:"f0a0793c",8089:"d536b13a",8143:"3d97b65b",8155:"9be1e3db",8161:"83c5fa9a",8237:"b0b2bcac",8241:"3901cd1b",8275:"e1948d09",8285:"41adea83",8302:"606c30bf",8307:"2360c065",8340:"39c85824",8350:"07df8a75",8398:"991f00f1",8431:"da127c8d",8435:"d2b2e328",8447:"a6cc502d",8517:"63c7ea7f",8522:"4e8ff105",8561:"333e8ec9",8563:"882ddf7a",8634:"72be6b24",8639:"68809bd0",8665:"1c968e03",8688:"b812034a",8689:"630d3c23",8723:"888a3b03",8737:"ce7dad23",8776:"0ad26240",8782:"a9bb0f5e",8787:"c44d8b30",8797:"8a3f950f",8823:"2b94c325",8827:"99ca019e",8842:"9f25a3e2",8866:"86e722e2",8882:"2b3f74fb",8885:"35b0c80b",8898:"d002bcd8",8909:"aa97ab0a",8920:"7f82440c",8963:"790aecdd",8982:"0c18f199",8999:"0e20732b",9076:"e0aaaea3",9104:"bbcb2345",9133:"0bf5e676",9205:"98dee718",9215:"e4da6d8f",9252:"0d791a59",9260:"f163e60e",9332:"554f7961",9360:"b2aefd8f",9366:"57d05513",9391:"f4463617",9404:"9fcc3d3e",9408:"c02bb774",9416:"a959e66b",9472:"12eab800",9487:"bbefb860",9489:"ce8d2c64",9507:"f22fd33b",9554:"ed358e7b",9559:"f794af19",9572:"87188a91",9590:"88346063",9647:"717de0a9",9649:"8176fe80",9674:"103361ac",9677:"ba632105",9695:"dfb30662",9715:"1c2cc9a0",9716:"2d3b0c89",9785:"ddcb03af",9788:"814d1abf",9886:"db834846",9890:"d82db250",9891:"72f13dc9",9895:"b8e31ff2",9921:"bb34c10f",9922:"35a569c8",9928:"5989f5e0",9944:"e22bbd1b",9950:"74f6dfb2",9968:"17466785",9974:"7fc11c00"}[i]+".async.js"}}(),function(){__webpack_require__.miniCssF=function(i){return""+({26:"p__Classrooms__Lists__Graduation__Tasks__Edit__index",67:"p__Message__index",109:"p__Classrooms__Lists__ShixunHomeworks__Detail__components__CodeReview__Detail__index",195:"p__Classrooms__Lists__GroupHomework__Detail__index",264:"p__User__Detail__Order__pages__orderPay__index",265:"p__User__Detail__Topics__index",292:"p__Classrooms__Lists__Exercise__Add__index",310:"p__User__Detail__ExperImentImg__Detail__index",337:"p__Paperlibrary__Random__PreviewEdit__index",342:"p__Classrooms__Lists__ShixunHomeworks__Comment__index",479:"p__Classrooms__Lists__GroupHomework__EditWork__index",485:"p__Question__AddOrEdit__BatchAdd__index",508:"p__Forums__Detail__id",532:"p__ExcellentCourse__index",533:"p__Classrooms__Lists__Video__Statistics__Detail__index",547:"p__Account__index",556:"p__User__Detail__Order__pages__invoice__index",559:"layouts__virtualDetail__index",576:"p__Account__Profile__Edit__index",643:"p__Classrooms__Lists__Polls__QuestionnaireInfo__index",680:"p__Innovation__index",700:"p__tasks__Jupyter__index",737:"p__Classrooms__Lists__CommonHomework__Detail__components__CodeReview__Detail__index",799:"p__User__Detail__Topics__Poll__Detail__index",869:"p__Guidance__index",895:"p__Classrooms__Lists__Video__Items__videoInfo__index",919:"p__knowledgegraph__Statistics__LearningPath__index",921:"p__Classrooms__Lists__Exercise__CodeDetails__index",928:"p__RestFul__Edit__index",1006:"p__RestFul__index",1043:"p__Classrooms__Lists__Graduation__Tasks__index",1045:"p__virtualSpaces__Lists__Knowledge__AddAndEdit__index",1048:"p__Classrooms__Lists__ProgramHomework__Detail__Ranking__index",1070:"p__Innovation__PublicMirror__index",1148:"p__Shixuns__Detail__Repository__UploadFile__index",1211:"p__Classrooms__Lists__CommonHomework__EditWork__index",1253:"p__Graduations__Lists__Gradingsummary__index",1257:"p__Classrooms__Lists__ResourceRecommend__index",1265:"p__Classrooms__Lists__Announcement__index",1276:"p__MoopCases__Success__index",1343:"p__User__Detail__ResourceAllocation__index",1416:"p__User__Detail__AccountInfo__CareerCertification__index",1423:"p__Shixuns__Edit__body__Level__Challenges__EditPracticeAnswer__index",1427:"p__Classrooms__Lists__Statistics__index",1443:"p__EffectivenessAnalysis__index",1450:"p__Classrooms__Lists__ShixunHomeworks__Commitsummary__index",1461:"p__Graduations__Lists__Topics__index",1470:"p__User__Register__index",1475:"p__Shixuns__Detail__Dataset__JupyterData__index",1482:"p__Classrooms__Lists__Graduation__Topics__Edit__index",1512:"p__Classrooms__Lists__Exercise__AnswerCheck__index",1520:"p__Engineering__Lists__StudentList__index",1545:"p__Paperlibrary__Random__ExchangeFromProblemSet__index",1578:"p__Classrooms__Lists__Graduation__Topics__Detail__index",1581:"p__Problemset__Preview__index",1582:"p__Classrooms__Lists__GroupHomework__Add__index",1657:"p__Shixuns__Edit__body__Level__Challenges__EditQuestion__index",1674:"p__Classrooms__ClassicCases__index",1702:"p__Classrooms__New__index",1713:"p__virtualSpaces__Lists__Settings__index",1717:"layouts__index",1727:"p__Classrooms__Lists__CourseGroup__NotList__index",1783:"p__virtualSpaces__Lists__Experiment__index",1831:"p__Graduations__Index__index",1836:"p__Classrooms__Lists__Attendance__Webview__Teacher__index",1855:"p__MoopCases__InfoPanel__index",1880:"p__User__Detail__Order__pages__apply__index",1939:"p__User__Detail__Order__index",1953:"p__Problemset__NewItem__index",1962:"p__Classrooms__Lists__Engineering__index",2045:"p__Engineering__Lists__TeacherList__index",2076:"p__User__Detail__Competitions__index",2102:"p__Classrooms__Lists__Board__Edit__index",2141:"p__Shixuns__Detail__Split__index",2216:"p__DataSet__Index__index",2240:"p__User__Detail__Videos__Upload__index",2254:"p__Shixuns__Detail__Discuss__index",2303:"p__Classrooms__Lists__CommonHomework__Comment__index",2307:"p__Report__index",2338:"p__Classrooms__Lists__CommonHomework__Review__index",2339:"p__virtualSpaces__Lists__Plan__Detail__index",2396:"p__User__Detail__ResourcesCenter__index",2404:"p__Classrooms__Lists__Template__teacher__index",2412:"p__User__Detail__Videos__index",2425:"p__Classrooms__Lists__Board__Detail__index",2443:"p__Graduations__Lists__StageModule__index",2476:"p__Colleges__index",2501:"p__Search__index",2524:"p__knowledgegraph__Detail__components__Content__components__AbilityMap__Detail__index",2529:"p__User__Detail__id",2539:"p__Graduations__Review__index",2548:"p__Engineering__Norm__Detail__index",2570:"p__Competitions__Detail__index",2603:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Add__index",2659:"p__User__Detail__UserPortrait__index",2707:"p__Innovation__MyDataSet__index",2806:"p__User__Detail__Topics__Exercise__Detail__index",2819:"p__Classrooms__Lists__Template__detail__index",2823:"p__Engineering__Navigation__Home__index",2826:"p__User__Detail__DataSet__index",2829:"p__Messages__Private__index",2865:"p__Innovation__MyMirror__index",2875:"p__Shixuns__Detail__id",2884:"p__Classrooms__Lists__ProgramHomework__Comment__index",2983:"p__Forums__Index__index",3006:"p__Engineering__index",3141:"p__Innovation__Detail__index",3157:"p__User__Detail__ExperImentImg__Add__index",3183:"p__Engineering__Lists__GraduationIndex__index",3212:"p__MoopCases__index",3220:"p__Classrooms__Lists__Video__Upload__index",3247:"p__Paperlibrary__See__index",3260:"p__Paperlibrary__Add__index",3282:"layouts__ShixunDetail__index",3317:"p__Classrooms__Lists__Graduation__Topics__Add__index",3332:"p__Paths__Detail__id",3355:"p__Classrooms__Lists__Polls__index",3356:"p__Classrooms__Lists__Assistant__index",3391:"p__Classrooms__Lists__ProgramHomework__Detail__components__CodeReview__Detail__index",3433:"p__Classrooms__Lists__Exercise__Sumup__Edit__index",3442:"p__Classrooms__Lists__Board__Add__index",3447:"p__User__Detail__Order__pages__orderInformation__index",3451:"p__Classrooms__Lists__Statistics__StudentStatistics__Detail__index",3496:"p__User__Detail__OtherResources__index",3509:"p__HttpStatus__SixActivities",3581:"p__Classrooms__Lists__ShixunHomeworks__Detail__index",3585:"p__Classrooms__Lists__Statistics__StudentSituation__index",3665:"p__tasks__index",3668:"p__Classrooms__Lists__CommonHomework__Detail__index",3685:"p__knowledgegraph__Detail__components__Content__components__AbilityMap__Edit__index",3747:"p__virtualSpaces__Lists__Homepage__index",3784:"p__Paperlibrary__Random__Detail__index",3873:"p__virtualSpaces__Lists__Lesson__index",3897:"p__WxMiniProgram__Courseware__Study__index",3910:"p__HttpStatus__introduction",3935:"p__Classrooms__Lists__GroupHomework__index",3951:"p__Classrooms__Lists__ProgramHomework__Detail__index",4030:"p__Classrooms__Lists__ProgramHomework__AddAndEdit__index",4056:"p__IntrainCourse__index",4058:"p__Demo__index",4078:"p__Messages__Tidings__index",4093:"p__Classrooms__Lists__Attendance__Detail__index",4105:"p__Classrooms__Lists__Exercise__Answer__index",4144:"p__Problemset__Preview__New__index",4164:"p__Classrooms__Lists__Exercise__Detail__index",4216:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Edit__index",4217:"p__Classrooms__Lists__Video__Statistics__index",4227:"p__Paths__Overview__index",4259:"p__User__Detail__Order__pages__result__index",4264:"p__Forums__New__index",4449:"p__Competitions__Exports__index",4492:"p__Graduations__Lists__StudentSelection__index",4496:"p__HttpStatus__HpcCourse",4498:"p__Shixuns__Edit__body__Level__Challenges__NewPractice__index",4504:"p__virtualSpaces__Lists__Survey__index",4514:"p__Account__Results__index",4520:"p__Account__Secure__index",4546:"p__Engineering__Lists__TrainingProgram__Add__index",4572:"p__Classrooms__Lists__ExportList__index",4599:"p__Problemset__index",4601:"p__Paths__Detail__Statistics__index",4610:"p__User__Detail__LearningPath__index",4621:"p__Administration__Profession__index",4662:"p__Classrooms__Lists__GroupHomework__Review__index",4715:"p__virtualSpaces__Lists__Material__Detail__index",4736:"p__User__Detail__Projects__index",4741:"p__Problems__OjForm__NewEdit__index",4757:"p__virtualSpaces__Lists__Workplace__index",4766:"p__Administration__index",4770:"p__Classrooms__Lists__ProgramHomework__Detail__answer__index",4795:"p__Classrooms__Lists__Graduation__Tasks__Add__index",4800:"p__Engineering__Lists__GraduatedMatrix__index",4849:"p__User__Detail__ExperImentImg__index",4862:"p__Paperlibrary__index",4884:"p__Shixuns__Detail__Repository__Commit__index",4889:"p__Classrooms__Lists__Exercise__ImitateAnswer__index",4928:"p__Classrooms__Lists__LearningPath__index",4973:"p__Engineering__Evaluate__List__index",4994:"p__Problems__OjForm__index",5022:"p__Graduations__Lists__Settings__index",5043:"p__User__Detail__Topics__Poll__Edit__index",5048:"p__Classrooms__Lists__Graduation__Topics__index",5096:"p__Shixuns__Detail__AuditSituation__index",5111:"p__Terminal__index",5125:"p__Classrooms__Lists__Exercise__DetailedAnalysis__index",5148:"p__Classrooms__Lists__Polls__Answer__index",5176:"p__User__Detail__Videos__Protocol__index",5179:"p__Administration__Student__Edit__index",5186:"p__Classrooms__Overview__index",5191:"p__User__Detail__Certificate__index",5238:"p__virtualSpaces__Lists__Material__index",5297:"p__Classrooms__Lists__Exercise__Detail__components__DuplicateChecking__CheckDetail__index",5319:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Detail__index",5335:"p__Engineering__Lists__CourseMatrix__index",5357:"p__Engineering__Lists__TrainingProgram__Edit__index",5359:"p__Messages__Detail__index",5382:"p__DataSet__Detail__index",5402:"p__User__Detail__Topics__Detail__index",5470:"p__Shixuns__Detail__Collaborators__index",5518:"p__Classrooms__Lists__Template__index",5549:"p__Shixuns__New__CreateImg__index",5572:"p__Paths__HigherVocationalEducation__index",5573:"p__Shixuns__Detail__Merge__index",5599:"p__User__Detail__Paths__index",5624:"p__Graduations__Lists__Index__index",5650:"p__Competitions__Update__index",5705:"p__virtualSpaces__Lists__Construction__index",5729:"p__Help__Index",5741:"p__Classrooms__Lists__SmartPlan__index",5775:"p__Engineering__Lists__Document__index",5786:"layouts__LoginAndRegister__index",5798:"p__Classrooms__Lists__Video__Statistics__UserDetail__index",5816:"p__Paperlibrary__Random__Edit__index",5825:"p__Classrooms__Lists__Exercise__index",5888:"p__Classrooms__Lists__CommonHomework__Add__index",5891:"p__virtualSpaces__Lists__Resources__index",5895:"p__User__Detail__AccountInfo__Profile__Edit__index",5902:"p__Classrooms__Lists__Exercise__Sumup__index",5915:"p__knowledgegraph__Detail__Statistics__index",5992:"p__Classrooms__Lists__Exercise__ReviewGroup__index",6029:"p__Administration__Student__index",6052:"p__Paths__Index__index",6063:"p__Graduations__Lists__Personmanage__index",6069:"p__virtualSpaces__Lists__Lesson__Detail__index",6127:"p__Classrooms__Lists__ProgramHomework__Ranking__index",6265:"p__virtualSpaces__Lists__Discussion__index",6270:"p__MyProblem__index",6277:"p__Shixuns__Edit__index",6328:"p__Shixuns__Edit__body__Warehouse__index",6366:"p__Innovation__PublicProject__index",6434:"p__User__Detail__Order__pages__records__index",6444:"p__Video__Detail__id",6452:"p__Innovation__PublicDataSet__index",6541:"p__Shixuns__Detail__Dataset__index",6583:"p__User__Detail__Classrooms__index",6587:"p__User__Detail__Videos__Protocol__resource",6634:"p__Innovation__Tasks__index",6651:"p__Engineering__Evaluate__Detail__index",6685:"p__Classrooms__Index__index",6729:"p__Classrooms__Lists__GroupHomework__Edit__index",6741:"p__Engineering__Norm__List__index",6758:"p__Classrooms__Lists__Attachment__index",6784:"p__Innovation__Edit__index",6788:"p__Classrooms__Lists__ProgramHomework__index",6796:"p__virtualSpaces__Lists__Announcement__Detail__index",6805:"p__User__Detail__AccountInfo__RealNameCertification__index",6820:"p__User__Detail__Topics__Normal__index",6845:"p__Shixuns__Detail__Settings__index",6882:"p__Classrooms__New__StartClass__index",6883:"p__Competitions__Index__index",6904:"p__MoopCases__FormPanel__index",6913:"p__Question__AddOrEdit__index",6963:"p__Classrooms__Lists__Engineering__Detail__index",6982:"p__User__Detail__AccountInfo__Profile__index",7008:"p__Shixuns__New__index",7042:"p__knowledgegraph__Statistics__LearningPath__Detail",7043:"p__User__Detail__Topics__Exercise__Edit__index",7045:"p__Classrooms__Lists__CommonHomework__SubmitWork__index",7046:"p__Shixuns__Detail__Repository__AddFile__index",7058:"p__virtualSpaces__Lists__Survey__Detail__index",7062:"layouts__SimpleLayouts",7178:"p__User__BindAccount__index",7182:"p__User__ResetPassword__index",7242:"p__Innovation__MyProject__index",7260:"p__Account__Certification__index",7395:"p__Classrooms__Lists__Statistics__StudentDetail__index",7460:"p__Question__OjProblem__index",7477:"p__virtualSpaces__Lists__Announcement__index",7482:"p__Classrooms__Lists__Exercise__Notice__index",7527:"p__MyProblem__RecordDetail__index",7545:"p__Graduations__Lists__Archives__index",7560:"p__Administration__College__index",7589:"p__virtualSpaces__Lists__DigitalTopics__index",7614:"p__Shixuns__Edit__body__Level__Challenges__RankingSetting__index",7622:"p__Classrooms__Lists__Polls__Detail__index",7806:"p__Classrooms__Lists__Statistics__StatisticsQuality__index",7852:"p__Classrooms__Lists__ShixunHomeworks__index",7855:"p__User__Detail__ResourcesCenter__Detail__index",7857:"p__Shixuns__Edit__body__Level__Challenges__NewQuestion__index",7878:"p__Classrooms__Lists__LiveVideo__index",7884:"p__Shixuns__Exports__index",7922:"p__Classrooms__Lists__CourseGroup__Detail__index",8014:"p__Classrooms__Lists__Teachers__index",8062:"p__User__Detail__Topicbank__index",8072:"p__Classrooms__Lists__GroupHomework__SubmitWork__index",8077:"p__Classrooms__Lists__Students__index",8085:"p__Classrooms__Lists__Exercise__Review__index",8143:"layouts__GraduationsDetail__index",8155:"p__Shixuns__Overview__index",8237:"p__User__Detail__Order__pages__view__index",8241:"p__virtualSpaces__Lists__Plan__index",8285:"p__Classrooms__Lists__SmartPlan__Info__index",8302:"p__Classrooms__Lists__Board__index",8307:"p__User__Detail__Shixuns__index",8398:"p__virtualSpaces__Lists__Resources__Detail__index",8431:"p__Classrooms__Lists__Exercise__Export__index",8435:"p__Classrooms__Lists__Attendance__index",8447:"p__virtualSpaces__Lists__Knowledge__index",8517:"p__User__Detail__Topics__Group__index",8522:"p__Classrooms__Lists__SmartPlan__Info__PptInfo__index",8563:"p__virtualSpaces__Lists__Discussion__Detail__index",8634:"p__Classrooms__Lists__CourseGroup__List__index",8665:"p__Engineering__Lists__TrainingObjectives__index",8688:"p__Shixuns__Detail__Repository__index",8689:"p__Classrooms__Lists__Statistics__VideoStatistics__index",8723:"p__Classrooms__Lists__Polls__Edit__index",8782:"p__Shixuns__Index__index",8787:"p__Competitions__Entered__index",8797:"p__Competitions__Edit__index",8823:"p__knowledgegraph__Detail__id",8827:"p__Classrooms__Lists__OnlineLearning__index",8866:"p__index",8882:"p__Classrooms__Lists__Graduation__Tasks__Detail__index",8885:"p__Classrooms__Lists__Statistics__StudentStatistics__index",8982:"p__Paths__New__index",8999:"p__Three__index",9076:"p__Account__Binding__index",9133:"p__Shixuns__Detail__Challenges__index",9205:"p__Shixuns__Edit__body__Level__Challenges__EditPracticeSetting__index",9215:"p__Shixuns__Detail__ForkList__index",9332:"p__Classrooms__Lists__Video__index",9360:"p__User__Detail__virtualSpaces__index",9366:"p__User__Login__index",9391:"p__Engineering__Lists__CurseSetting__index",9404:"monaco-editor",9408:"p__Shixuns__Detail__RankingList__index",9416:"p__Graduations__Lists__Tasks__index",9472:"p__Shixuns__Detail__Poll__index",9487:"p__LargeScreen__index",9489:"p__Engineering__Lists__CourseList__index",9507:"p__User__Detail__ResourceGuarantee__index",9590:"p__User__Detail__TeachGroup__index",9647:"p__Question__Index__index",9649:"p__Engineering__Lists__TrainingProgram__index",9674:"p__Shixuns__New__ImagePreview__index",9677:"p__virtualSpaces__Lists__Announcement__AddAndEdit__index",9695:"p__Classrooms__Lists__Polls__Add__index",9715:"p__Classrooms__Lists__CommonHomework__Edit__index",9716:"p__Question__OjProblem__RecordDetail__index",9785:"p__Classrooms__Lists__Template__student__index",9788:"p__Account__Profile__index",9890:"p__Classrooms__Lists__CommonHomework__index",9891:"p__User__Detail__Videos__Success__index",9921:"p__Classrooms__ExamList__index",9922:"p__Classrooms__Lists__Statistics__StudentVideo__index",9944:"p__Classrooms__Lists__Video__Statistics__StudentDetail__index"}[i]||i)+"."+{26:"7e9594a1",67:"8abe289a",109:"b9c23c40",195:"912be472",264:"5fd9b3fc",265:"d92c6f86",292:"c1f2b68c",310:"8becc5f2",337:"c9ba7e85",342:"2389cd43",479:"249e39e2",485:"d63578fe",508:"a4fb1ddc",532:"c829a014",533:"5fee20bc",547:"5581debc",556:"892f4292",559:"c49aa5ba",576:"8bf77b42",643:"0de52106",680:"e67e9e01",700:"0c10ce4d",737:"72eaccaa",799:"9f0700c1",869:"4a5372a2",895:"ce8634e8",919:"952e2d43",921:"b09f4288",928:"d2beba77",1006:"b9d07e6a",1043:"e8c0878b",1045:"38de514b",1048:"c6c344e1",1070:"e67e9e01",1148:"754fff63",1211:"ea984d0a",1253:"46aca33c",1257:"7b8c452c",1265:"1aee9bb3",1276:"bbc6eeec",1343:"b7f33c89",1416:"735363dc",1423:"58fe9b05",1427:"f91322f7",1443:"e1865421",1450:"8e4a5554",1461:"a363a3ef",1470:"afcb0f79",1475:"d22fbaa0",1482:"77af25ff",1512:"f3653a35",1520:"f7300d0e",1545:"c5769eb4",1578:"b97a98c0",1581:"13815a71",1582:"6cb52f3e",1657:"9953b690",1674:"fdbc1e05",1702:"c68efb85",1713:"2d8d66d4",1717:"7fe99454",1727:"de83767d",1783:"47d0320e",1831:"8d05bf11",1836:"5f0d3f7f",1855:"d782a698",1880:"f67d7892",1939:"48e30d48",1953:"53098fd0",1962:"84e145fa",2045:"dcfad42d",2076:"09b07fa0",2102:"f82f5b2b",2141:"5eb2f330",2216:"e3ba73cf",2240:"e7cce869",2254:"dcd2e863",2303:"eb945f5f",2307:"b2c54321",2338:"f0d43fd8",2339:"6a610b14",2396:"8d2f98b7",2404:"253c1335",2412:"b297b168",2425:"4f225802",2443:"2f9b1769",2476:"cf85a190",2501:"2441982c",2524:"96d90e3e",2529:"0d98d328",2539:"1d8aca24",2548:"75182034",2570:"8ecde007",2603:"d2beba77",2659:"f6071a36",2707:"cabcb16e",2806:"9d0f03dc",2819:"32083596",2823:"a13b21fb",2826:"0b6be43b",2829:"b9ad7ac4",2865:"6ef3cf6b",2875:"2f2c99c6",2884:"a179044d",2983:"c8c482f7",3006:"7fce4e74",3141:"dd6cafec",3157:"00a8f267",3183:"b2253f40",3212:"ad1521c1",3220:"1a8a9f14",3247:"3b28d50a",3260:"6fa0a87f",3267:"03cdfb68",3282:"195bced9",3317:"c2e77a8c",3332:"c167e365",3355:"cd26b451",3356:"c6a4098f",3391:"89554b70",3433:"e1590a0b",3442:"2d76d0c9",3447:"1653d818",3451:"e3a31387",3496:"44bf4044",3509:"70043ca5",3581:"336bb704",3585:"5f288e7b",3665:"8d74f148",3668:"7c685188",3685:"5356e3de",3747:"02cfa484",3784:"c81d4a51",3873:"ff6ac8ea",3897:"8a52e8bf",3910:"658d457f",3935:"701314c7",3951:"0af31afa",4030:"d2e5ff7b",4056:"10eacfff",4058:"ee954c0b",4078:"aa54548e",4093:"c1f29d01",4105:"c1b780a2",4144:"f10aa199",4164:"592f2f0c",4216:"d2beba77",4217:"387bf824",4227:"79c3b323",4259:"ebd953ac",4264:"a780c6d2",4449:"e68d8d58",4492:"135ab50d",4496:"301aff54",4498:"05f36d8d",4504:"466a61af",4514:"887bdbb6",4520:"e86d61a1",4546:"4101a1f2",4572:"70e5675d",4599:"b8aa19ba",4601:"3c8ac557",4610:"687005a6",4621:"ead619d7",4662:"84440630",4715:"d953738b",4736:"2968553b",4741:"4e108c30",4757:"73b754d2",4766:"b5df5a8e",4770:"2ad0c1f9",4795:"0e1a548d",4800:"f50302a4",4849:"07e2d0b2",4862:"64940bd1",4884:"bd293d3b",4889:"1db39886",4928:"3ec9e47f",4973:"129c56e8",4994:"01cba244",5022:"81b1b86b",5043:"25756466",5048:"aa08c681",5096:"4f6a4d00",5111:"5d09a39a",5125:"57501e4a",5148:"c519172e",5176:"9c49e7fa",5179:"21f01751",5186:"aeb0dc56",5191:"0af389b2",5238:"86692bca",5297:"3a2685a1",5319:"35fc6024",5335:"fec6fd9f",5357:"1fbb7d24",5359:"bbebe82c",5382:"4e20ad23",5402:"166c0400",5470:"f9f86e99",5518:"9f425be3",5549:"39285664",5572:"c945fbf2",5573:"6ecf393c",5599:"2ae54005",5624:"0c72e67d",5650:"f8f63f4b",5705:"df6bf207",5729:"b88ec90d",5741:"f5bf79a9",5775:"f99db9ab",5786:"37a81eaa",5798:"ce1cf7da",5816:"5e85dfee",5825:"57a7f225",5888:"b67f491a",5891:"3b7a128f",5895:"9ddd624a",5902:"d59edd35",5915:"bc9c3e69",5992:"e84da226",6029:"2ded5a5a",6052:"2fbc571d",6063:"a5f0409a",6069:"b417d2f0",6127:"f31505a8",6265:"e786a86e",6270:"75eb86b4",6277:"7140eacb",6328:"1d366bbd",6366:"079fc2d8",6434:"0112f8db",6444:"bb471f47",6452:"50a6d310",6541:"d1c967cd",6583:"7d33505d",6587:"9c49e7fa",6634:"fe524f32",6651:"b07fe216",6685:"f5f5b969",6729:"eb16a227",6741:"b838eb14",6758:"ddf000ad",6784:"1affe817",6788:"6d15e159",6796:"14d05697",6805:"5b253c81",6820:"a7609162",6845:"2d0bc9da",6882:"c2d2eada",6883:"7740a702",6904:"701e3c9a",6913:"2de5ae5c",6963:"84e145fa",6982:"3043a9c3",7008:"33789d66",7042:"952e2d43",7043:"9527ec8e",7045:"113cd3ca",7046:"c7301ded",7058:"e5da97d0",7062:"6e5915f9",7178:"6e47d75d",7182:"9c7ac543",7242:"4f353f61",7260:"928abc9d",7395:"5c10e8d8",7460:"c4b86ca7",7477:"66ecedaa",7482:"3a11c394",7527:"e33663ea",7545:"c6a67426",7560:"d82e43ca",7589:"2a3e68f3",7614:"8e370373",7622:"46d58a04",7806:"bd9accb9",7852:"2a6b7650",7855:"6f036cf6",7857:"bdaf3fdc",7878:"2b521fde",7884:"47e0a5df",7922:"c1d9e2f3",8014:"9ef39203",8062:"8e384b9f",8072:"4002695d",8077:"0b2c51d9",8085:"53021a45",8143:"7e86b55b",8155:"d345abd7",8237:"44654223",8241:"02a0cb2f",8285:"8a6ce507",8302:"c8dc0096",8307:"02e15761",8398:"ecb314e7",8431:"92e46234",8435:"7882364e",8447:"10b1203e",8517:"6a7a4b09",8522:"3c20b9f7",8563:"8940b612",8634:"317d0a2b",8665:"c52575bc",8688:"f98a445e",8689:"459af240",8723:"3dabd419",8782:"918afc23",8787:"121de108",8797:"f07b77eb",8823:"ae7638ad",8827:"f0f5d5ac",8866:"da63c71f",8882:"2cd0f8b7",8885:"de905169",8982:"c94c2cf8",8999:"7f4c7efe",9076:"6a501148",9133:"03f6f6d3",9205:"1e43ebcb",9215:"f737e7e7",9332:"3d30bf20",9360:"27c7d4f7",9366:"3f6c2582",9391:"473c2453",9404:"d8cf04f7",9408:"d3565b1a",9416:"df580f39",9472:"ef5fc030",9487:"a73f5679",9489:"ee2bb5b7",9507:"396e34cd",9590:"29583579",9647:"3c89dab6",9649:"5e708a2c",9674:"09dd4aac",9677:"3f012675",9695:"637a583b",9715:"c14c7b68",9716:"d7a969b5",9785:"d48e05db",9788:"4459d92d",9890:"74da05e3",9891:"512a9301",9921:"e0db9101",9922:"33690872",9944:"1ba31055"}[i]+".chunk.css"}}(),function(){__webpack_require__.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(i){if(typeof window=="object")return window}}()}(),function(){__webpack_require__.hmd=function(i){return i=Object.create(i),i.children||(i.children=[]),Object.defineProperty(i,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+i.id)}}),i}}(),function(){__webpack_require__.o=function(i,d){return Object.prototype.hasOwnProperty.call(i,d)}}(),function(){var i={};__webpack_require__.l=function(d,e,t,r){if(i[d]){i[d].push(e);return}var n,o;if(t!==void 0)for(var s=document.getElementsByTagName("script"),u=0;un?g?(P=Date.now(),a||(h=setTimeout(b?R:L,n))):L():a!==!0&&(h=setTimeout(b?R:L,b===void 0?n-$:n))}return C.cancel=I,C}function r(n,o,s){var u=s||{},c=u.atBegin,a=c===void 0?!1:c;return t(n,o,{debounceMode:a!==!1})}}},__webpack_module_cache__={};function __webpack_require__(i){var d=__webpack_module_cache__[i];if(d!==void 0)return d.exports;var e=__webpack_module_cache__[i]={id:i,loaded:!1,exports:{}};return __webpack_modules__[i].call(e.exports,e,e.exports,__webpack_require__),e.loaded=!0,e.exports}__webpack_require__.m=__webpack_modules__,function(){__webpack_require__.amdO={}}(),function(){__webpack_require__.n=function(i){var d=i&&i.__esModule?function(){return i.default}:function(){return i};return __webpack_require__.d(d,{a:d}),d}}(),function(){var i=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},d;__webpack_require__.t=function(e,t){if(t&1&&(e=this(e)),t&8||typeof e=="object"&&e&&(t&4&&e.__esModule||t&16&&typeof e.then=="function"))return e;var r=Object.create(null);__webpack_require__.r(r);var n={};d=d||[null,i({}),i([]),i(i)];for(var o=t&2&&e;typeof o=="object"&&!~d.indexOf(o);o=i(o))Object.getOwnPropertyNames(o).forEach(function(s){n[s]=function(){return e[s]}});return n.default=function(){return e},__webpack_require__.d(r,n),r}}(),function(){__webpack_require__.d=function(i,d){for(var e in d)__webpack_require__.o(d,e)&&!__webpack_require__.o(i,e)&&Object.defineProperty(i,e,{enumerable:!0,get:d[e]})}}(),function(){__webpack_require__.f={},__webpack_require__.e=function(i){return Promise.all(Object.keys(__webpack_require__.f).reduce(function(d,e){return __webpack_require__.f[e](i,d),d},[]))}}(),function(){__webpack_require__.u=function(i){return""+({26:"p__Classrooms__Lists__Graduation__Tasks__Edit__index",67:"p__Message__index",109:"p__Classrooms__Lists__ShixunHomeworks__Detail__components__CodeReview__Detail__index",195:"p__Classrooms__Lists__GroupHomework__Detail__index",264:"p__User__Detail__Order__pages__orderPay__index",265:"p__User__Detail__Topics__index",292:"p__Classrooms__Lists__Exercise__Add__index",310:"p__User__Detail__ExperImentImg__Detail__index",337:"p__Paperlibrary__Random__PreviewEdit__index",342:"p__Classrooms__Lists__ShixunHomeworks__Comment__index",479:"p__Classrooms__Lists__GroupHomework__EditWork__index",485:"p__Question__AddOrEdit__BatchAdd__index",508:"p__Forums__Detail__id",532:"p__ExcellentCourse__index",533:"p__Classrooms__Lists__Video__Statistics__Detail__index",547:"p__Account__index",556:"p__User__Detail__Order__pages__invoice__index",559:"layouts__virtualDetail__index",576:"p__Account__Profile__Edit__index",643:"p__Classrooms__Lists__Polls__QuestionnaireInfo__index",680:"p__Innovation__index",700:"p__tasks__Jupyter__index",737:"p__Classrooms__Lists__CommonHomework__Detail__components__CodeReview__Detail__index",799:"p__User__Detail__Topics__Poll__Detail__index",869:"p__Guidance__index",895:"p__Classrooms__Lists__Video__Items__videoInfo__index",919:"p__knowledgegraph__Statistics__LearningPath__index",921:"p__Classrooms__Lists__Exercise__CodeDetails__index",928:"p__RestFul__Edit__index",1006:"p__RestFul__index",1043:"p__Classrooms__Lists__Graduation__Tasks__index",1045:"p__virtualSpaces__Lists__Knowledge__AddAndEdit__index",1048:"p__Classrooms__Lists__ProgramHomework__Detail__Ranking__index",1070:"p__Innovation__PublicMirror__index",1148:"p__Shixuns__Detail__Repository__UploadFile__index",1211:"p__Classrooms__Lists__CommonHomework__EditWork__index",1253:"p__Graduations__Lists__Gradingsummary__index",1257:"p__Classrooms__Lists__ResourceRecommend__index",1265:"p__Classrooms__Lists__Announcement__index",1276:"p__MoopCases__Success__index",1343:"p__User__Detail__ResourceAllocation__index",1416:"p__User__Detail__AccountInfo__CareerCertification__index",1423:"p__Shixuns__Edit__body__Level__Challenges__EditPracticeAnswer__index",1427:"p__Classrooms__Lists__Statistics__index",1443:"p__EffectivenessAnalysis__index",1450:"p__Classrooms__Lists__ShixunHomeworks__Commitsummary__index",1461:"p__Graduations__Lists__Topics__index",1470:"p__User__Register__index",1475:"p__Shixuns__Detail__Dataset__JupyterData__index",1482:"p__Classrooms__Lists__Graduation__Topics__Edit__index",1512:"p__Classrooms__Lists__Exercise__AnswerCheck__index",1520:"p__Engineering__Lists__StudentList__index",1545:"p__Paperlibrary__Random__ExchangeFromProblemSet__index",1578:"p__Classrooms__Lists__Graduation__Topics__Detail__index",1581:"p__Problemset__Preview__index",1582:"p__Classrooms__Lists__GroupHomework__Add__index",1657:"p__Shixuns__Edit__body__Level__Challenges__EditQuestion__index",1660:"p__User__QQLogin__index",1674:"p__Classrooms__ClassicCases__index",1702:"p__Classrooms__New__index",1713:"p__virtualSpaces__Lists__Settings__index",1717:"layouts__index",1727:"p__Classrooms__Lists__CourseGroup__NotList__index",1783:"p__virtualSpaces__Lists__Experiment__index",1799:"p__Competitions__Entered__Assembly__TeamDateil",1831:"p__Graduations__Index__index",1836:"p__Classrooms__Lists__Attendance__Webview__Teacher__index",1855:"p__MoopCases__InfoPanel__index",1880:"p__User__Detail__Order__pages__apply__index",1939:"p__User__Detail__Order__index",1953:"p__Problemset__NewItem__index",1962:"p__Classrooms__Lists__Engineering__index",2045:"p__Engineering__Lists__TeacherList__index",2076:"p__User__Detail__Competitions__index",2102:"p__Classrooms__Lists__Board__Edit__index",2141:"p__Shixuns__Detail__Split__index",2216:"p__DataSet__Index__index",2240:"p__User__Detail__Videos__Upload__index",2254:"p__Shixuns__Detail__Discuss__index",2300:"p__Api__index",2303:"p__Classrooms__Lists__CommonHomework__Comment__index",2307:"p__Report__index",2338:"p__Classrooms__Lists__CommonHomework__Review__index",2339:"p__virtualSpaces__Lists__Plan__Detail__index",2396:"p__User__Detail__ResourcesCenter__index",2404:"p__Classrooms__Lists__Template__teacher__index",2412:"p__User__Detail__Videos__index",2425:"p__Classrooms__Lists__Board__Detail__index",2443:"p__Graduations__Lists__StageModule__index",2476:"p__Colleges__index",2501:"p__Search__index",2524:"p__knowledgegraph__Detail__components__Content__components__AbilityMap__Detail__index",2529:"p__User__Detail__id",2539:"p__Graduations__Review__index",2548:"p__Engineering__Norm__Detail__index",2570:"p__Competitions__Detail__index",2603:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Add__index",2659:"p__User__Detail__UserPortrait__index",2707:"p__Innovation__MyDataSet__index",2806:"p__User__Detail__Topics__Exercise__Detail__index",2819:"p__Classrooms__Lists__Template__detail__index",2823:"p__Engineering__Navigation__Home__index",2826:"p__User__Detail__DataSet__index",2829:"p__Messages__Private__index",2865:"p__Innovation__MyMirror__index",2875:"p__Shixuns__Detail__id",2884:"p__Classrooms__Lists__ProgramHomework__Comment__index",2983:"p__Forums__Index__index",3006:"p__Engineering__index",3141:"p__Innovation__Detail__index",3157:"p__User__Detail__ExperImentImg__Add__index",3183:"p__Engineering__Lists__GraduationIndex__index",3212:"p__MoopCases__index",3220:"p__Classrooms__Lists__Video__Upload__index",3247:"p__Paperlibrary__See__index",3260:"p__Paperlibrary__Add__index",3282:"layouts__ShixunDetail__index",3317:"p__Classrooms__Lists__Graduation__Topics__Add__index",3332:"p__Paths__Detail__id",3355:"p__Classrooms__Lists__Polls__index",3356:"p__Classrooms__Lists__Assistant__index",3391:"p__Classrooms__Lists__ProgramHomework__Detail__components__CodeReview__Detail__index",3433:"p__Classrooms__Lists__Exercise__Sumup__Edit__index",3442:"p__Classrooms__Lists__Board__Add__index",3447:"p__User__Detail__Order__pages__orderInformation__index",3451:"p__Classrooms__Lists__Statistics__StudentStatistics__Detail__index",3496:"p__User__Detail__OtherResources__index",3509:"p__HttpStatus__SixActivities",3581:"p__Classrooms__Lists__ShixunHomeworks__Detail__index",3585:"p__Classrooms__Lists__Statistics__StudentSituation__index",3589:"p__knowledgegraph__Statistics__index",3665:"p__tasks__index",3668:"p__Classrooms__Lists__CommonHomework__Detail__index",3685:"p__knowledgegraph__Detail__components__Content__components__AbilityMap__Edit__index",3747:"p__virtualSpaces__Lists__Homepage__index",3784:"p__Paperlibrary__Random__Detail__index",3862:"p__HttpStatus__403",3873:"p__virtualSpaces__Lists__Lesson__index",3897:"p__WxMiniProgram__Courseware__Study__index",3910:"p__HttpStatus__introduction",3935:"p__Classrooms__Lists__GroupHomework__index",3951:"p__Classrooms__Lists__ProgramHomework__Detail__index",4017:"p__Classrooms__Lists__PlaceholderPage__index",4030:"p__Classrooms__Lists__ProgramHomework__AddAndEdit__index",4056:"p__IntrainCourse__index",4058:"p__Demo__index",4078:"p__Messages__Tidings__index",4093:"p__Classrooms__Lists__Attendance__Detail__index",4105:"p__Classrooms__Lists__Exercise__Answer__index",4144:"p__Problemset__Preview__New__index",4164:"p__Classrooms__Lists__Exercise__Detail__index",4216:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Edit__index",4217:"p__Classrooms__Lists__Video__Statistics__index",4227:"p__Paths__Overview__index",4259:"p__User__Detail__Order__pages__result__index",4264:"p__Forums__New__index",4449:"p__Competitions__Exports__index",4492:"p__Graduations__Lists__StudentSelection__index",4496:"p__HttpStatus__HpcCourse",4498:"p__Shixuns__Edit__body__Level__Challenges__NewPractice__index",4504:"p__virtualSpaces__Lists__Survey__index",4514:"p__Account__Results__index",4520:"p__Account__Secure__index",4546:"p__Engineering__Lists__TrainingProgram__Add__index",4565:"p__HttpStatus__500",4572:"p__Classrooms__Lists__ExportList__index",4599:"p__Problemset__index",4601:"p__Paths__Detail__Statistics__index",4610:"p__User__Detail__LearningPath__index",4621:"p__Administration__Profession__index",4662:"p__Classrooms__Lists__GroupHomework__Review__index",4715:"p__virtualSpaces__Lists__Material__Detail__index",4736:"p__User__Detail__Projects__index",4741:"p__Problems__OjForm__NewEdit__index",4757:"p__virtualSpaces__Lists__Workplace__index",4766:"p__Administration__index",4770:"p__Classrooms__Lists__ProgramHomework__Detail__answer__index",4795:"p__Classrooms__Lists__Graduation__Tasks__Add__index",4800:"p__Engineering__Lists__GraduatedMatrix__index",4849:"p__User__Detail__ExperImentImg__index",4862:"p__Paperlibrary__index",4884:"p__Shixuns__Detail__Repository__Commit__index",4889:"p__Classrooms__Lists__Exercise__ImitateAnswer__index",4928:"p__Classrooms__Lists__LearningPath__index",4973:"p__Engineering__Evaluate__List__index",4994:"p__Problems__OjForm__index",5022:"p__Graduations__Lists__Settings__index",5043:"p__User__Detail__Topics__Poll__Edit__index",5048:"p__Classrooms__Lists__Graduation__Topics__index",5096:"p__Shixuns__Detail__AuditSituation__index",5111:"p__Terminal__index",5125:"p__Classrooms__Lists__Exercise__DetailedAnalysis__index",5148:"p__Classrooms__Lists__Polls__Answer__index",5176:"p__User__Detail__Videos__Protocol__index",5179:"p__Administration__Student__Edit__index",5186:"p__Classrooms__Overview__index",5191:"p__User__Detail__Certificate__index",5238:"p__virtualSpaces__Lists__Material__index",5297:"p__Classrooms__Lists__Exercise__Detail__components__DuplicateChecking__CheckDetail__index",5319:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Detail__index",5335:"p__Engineering__Lists__CourseMatrix__index",5357:"p__Engineering__Lists__TrainingProgram__Edit__index",5359:"p__Messages__Detail__index",5382:"p__DataSet__Detail__index",5402:"p__User__Detail__Topics__Detail__index",5470:"p__Shixuns__Detail__Collaborators__index",5518:"p__Classrooms__Lists__Template__index",5549:"p__Shixuns__New__CreateImg__index",5572:"p__Paths__HigherVocationalEducation__index",5573:"p__Shixuns__Detail__Merge__index",5599:"p__User__Detail__Paths__index",5624:"p__Graduations__Lists__Index__index",5650:"p__Competitions__Update__index",5705:"p__virtualSpaces__Lists__Construction__index",5729:"p__Help__Index",5741:"p__Classrooms__Lists__SmartPlan__index",5775:"p__Engineering__Lists__Document__index",5786:"layouts__LoginAndRegister__index",5798:"p__Classrooms__Lists__Video__Statistics__UserDetail__index",5816:"p__Paperlibrary__Random__Edit__index",5825:"p__Classrooms__Lists__Exercise__index",5888:"p__Classrooms__Lists__CommonHomework__Add__index",5891:"p__virtualSpaces__Lists__Resources__index",5895:"p__User__Detail__AccountInfo__Profile__Edit__index",5902:"p__Classrooms__Lists__Exercise__Sumup__index",5915:"p__knowledgegraph__Detail__Statistics__index",5992:"p__Classrooms__Lists__Exercise__ReviewGroup__index",6029:"p__Administration__Student__index",6034:"p__HttpStatus__UserAgents",6052:"p__Paths__Index__index",6063:"p__Graduations__Lists__Personmanage__index",6069:"p__virtualSpaces__Lists__Lesson__Detail__index",6127:"p__Classrooms__Lists__ProgramHomework__Ranking__index",6170:"p__HttpStatus__downloadStudent",6265:"p__virtualSpaces__Lists__Discussion__index",6270:"p__MyProblem__index",6277:"p__Shixuns__Edit__index",6328:"p__Shixuns__Edit__body__Warehouse__index",6366:"p__Innovation__PublicProject__index",6434:"p__User__Detail__Order__pages__records__index",6444:"p__Video__Detail__id",6452:"p__Innovation__PublicDataSet__index",6531:"p__HttpStatus__404",6541:"p__Shixuns__Detail__Dataset__index",6583:"p__User__Detail__Classrooms__index",6587:"p__User__Detail__Videos__Protocol__resource",6634:"p__Innovation__Tasks__index",6651:"p__Engineering__Evaluate__Detail__index",6685:"p__Classrooms__Index__index",6729:"p__Classrooms__Lists__GroupHomework__Edit__index",6741:"p__Engineering__Norm__List__index",6758:"p__Classrooms__Lists__Attachment__index",6784:"p__Innovation__Edit__index",6788:"p__Classrooms__Lists__ProgramHomework__index",6796:"p__virtualSpaces__Lists__Announcement__Detail__index",6805:"p__User__Detail__AccountInfo__RealNameCertification__index",6820:"p__User__Detail__Topics__Normal__index",6845:"p__Shixuns__Detail__Settings__index",6882:"p__Classrooms__New__StartClass__index",6883:"p__Competitions__Index__index",6904:"p__MoopCases__FormPanel__index",6913:"p__Question__AddOrEdit__index",6963:"p__Classrooms__Lists__Engineering__Detail__index",6982:"p__User__Detail__AccountInfo__Profile__index",7008:"p__Shixuns__New__index",7042:"p__knowledgegraph__Statistics__LearningPath__Detail",7043:"p__User__Detail__Topics__Exercise__Edit__index",7045:"p__Classrooms__Lists__CommonHomework__SubmitWork__index",7046:"p__Shixuns__Detail__Repository__AddFile__index",7058:"p__virtualSpaces__Lists__Survey__Detail__index",7062:"layouts__SimpleLayouts",7178:"p__User__BindAccount__index",7182:"p__User__ResetPassword__index",7242:"p__Innovation__MyProject__index",7260:"p__Account__Certification__index",7333:"p__User__WechatLogin__index",7395:"p__Classrooms__Lists__Statistics__StudentDetail__index",7460:"p__Question__OjProblem__index",7477:"p__virtualSpaces__Lists__Announcement__index",7482:"p__Classrooms__Lists__Exercise__Notice__index",7527:"p__MyProblem__RecordDetail__index",7545:"p__Graduations__Lists__Archives__index",7560:"p__Administration__College__index",7589:"p__virtualSpaces__Lists__DigitalTopics__index",7614:"p__Shixuns__Edit__body__Level__Challenges__RankingSetting__index",7622:"p__Classrooms__Lists__Polls__Detail__index",7806:"p__Classrooms__Lists__Statistics__StatisticsQuality__index",7852:"p__Classrooms__Lists__ShixunHomeworks__index",7855:"p__User__Detail__ResourcesCenter__Detail__index",7857:"p__Shixuns__Edit__body__Level__Challenges__NewQuestion__index",7878:"p__Classrooms__Lists__LiveVideo__index",7884:"p__Shixuns__Exports__index",7922:"p__Classrooms__Lists__CourseGroup__Detail__index",8014:"p__Classrooms__Lists__Teachers__index",8062:"p__User__Detail__Topicbank__index",8072:"p__Classrooms__Lists__GroupHomework__SubmitWork__index",8077:"p__Classrooms__Lists__Students__index",8085:"p__Classrooms__Lists__Exercise__Review__index",8143:"layouts__GraduationsDetail__index",8155:"p__Shixuns__Overview__index",8237:"p__User__Detail__Order__pages__view__index",8241:"p__virtualSpaces__Lists__Plan__index",8285:"p__Classrooms__Lists__SmartPlan__Info__index",8302:"p__Classrooms__Lists__Board__index",8307:"p__User__Detail__Shixuns__index",8340:"p__Classrooms__Lists__Attendance__Webview__Student__index",8398:"p__virtualSpaces__Lists__Resources__Detail__index",8431:"p__Classrooms__Lists__Exercise__Export__index",8435:"p__Classrooms__Lists__Attendance__index",8447:"p__virtualSpaces__Lists__Knowledge__index",8517:"p__User__Detail__Topics__Group__index",8522:"p__Classrooms__Lists__SmartPlan__Info__PptInfo__index",8563:"p__virtualSpaces__Lists__Discussion__Detail__index",8634:"p__Classrooms__Lists__CourseGroup__List__index",8639:"p__Forums__Index__redirect",8665:"p__Engineering__Lists__TrainingObjectives__index",8688:"p__Shixuns__Detail__Repository__index",8689:"p__Classrooms__Lists__Statistics__VideoStatistics__index",8723:"p__Classrooms__Lists__Polls__Edit__index",8782:"p__Shixuns__Index__index",8787:"p__Competitions__Entered__index",8797:"p__Competitions__Edit__index",8823:"p__knowledgegraph__Detail__id",8827:"p__Classrooms__Lists__OnlineLearning__index",8866:"p__index",8882:"p__Classrooms__Lists__Graduation__Tasks__Detail__index",8885:"p__Classrooms__Lists__Statistics__StudentStatistics__index",8982:"p__Paths__New__index",8999:"p__Three__index",9076:"p__Account__Binding__index",9133:"p__Shixuns__Detail__Challenges__index",9205:"p__Shixuns__Edit__body__Level__Challenges__EditPracticeSetting__index",9215:"p__Shixuns__Detail__ForkList__index",9332:"p__Classrooms__Lists__Video__index",9360:"p__User__Detail__virtualSpaces__index",9366:"p__User__Login__index",9391:"p__Engineering__Lists__CurseSetting__index",9404:"monaco-editor",9408:"p__Shixuns__Detail__RankingList__index",9416:"p__Graduations__Lists__Tasks__index",9472:"p__Shixuns__Detail__Poll__index",9487:"p__LargeScreen__index",9489:"p__Engineering__Lists__CourseList__index",9507:"p__User__Detail__ResourceGuarantee__index",9590:"p__User__Detail__TeachGroup__index",9647:"p__Question__Index__index",9649:"p__Engineering__Lists__TrainingProgram__index",9674:"p__Shixuns__New__ImagePreview__index",9677:"p__virtualSpaces__Lists__Announcement__AddAndEdit__index",9695:"p__Classrooms__Lists__Polls__Add__index",9715:"p__Classrooms__Lists__CommonHomework__Edit__index",9716:"p__Question__OjProblem__RecordDetail__index",9785:"p__Classrooms__Lists__Template__student__index",9788:"p__Account__Profile__index",9890:"p__Classrooms__Lists__CommonHomework__index",9891:"p__User__Detail__Videos__Success__index",9921:"p__Classrooms__ExamList__index",9922:"p__Classrooms__Lists__Statistics__StudentVideo__index",9944:"p__Classrooms__Lists__Video__Statistics__StudentDetail__index"}[i]||i)+"."+{26:"c88986e3",67:"9cc65b09",109:"c08cec85",195:"5889d76b",264:"fb2d6182",265:"e9546a06",278:"6c70bcfc",292:"2006e2dd",310:"b1218f7a",316:"1f60ada6",337:"a01fd269",342:"a38bee5c",354:"d4d139cf",479:"6d6dabf3",485:"07ccf390",508:"07bc40a9",532:"8c144260",533:"8e62d180",547:"3b89fa9b",556:"ee71b8a9",559:"b50a2173",576:"99254dfa",629:"44a1d9a5",643:"6bdd3695",671:"4a609b8d",680:"1447b98d",700:"dde257a2",737:"01f1e0f9",741:"ac5fd360",799:"16eaa329",869:"7f28e3f3",895:"f7006ba3",919:"092e3724",921:"8da39ed2",928:"5746d29b",981:"24da50c7",1006:"993d1bcc",1043:"9adf518d",1045:"2321c941",1048:"118bbd38",1070:"c3604541",1144:"c90eccaf",1148:"8398f3fd",1154:"8cb80842",1188:"f4633e3d",1211:"d9002e0c",1253:"2099f38d",1257:"6952134d",1265:"aee3ed55",1274:"5f6ea65a",1276:"1232c571",1343:"3da74c1e",1416:"6c331f76",1423:"9ae869a5",1427:"c1bfeaa4",1443:"a4f9af9d",1450:"75b52403",1461:"a450b7c2",1462:"fcf08abc",1470:"e7a0843d",1475:"085f9d6f",1482:"80167b75",1512:"ae3b1fa1",1520:"c6090522",1545:"8eb5eaee",1578:"bb60eee6",1581:"eee8cfc2",1582:"04dd8d5c",1646:"e6e27b60",1657:"229ea3ff",1660:"a810c076",1674:"3eb6ba9a",1702:"1dacf85d",1713:"7ee087c3",1717:"e457b6b5",1727:"fadb3d2d",1783:"f9fba777",1799:"fa951f21",1831:"75a63677",1836:"c220805c",1855:"c2ee81ed",1880:"cab4f631",1939:"0df05ade",1953:"646b25c9",1962:"23d27467",2011:"59d51f98",2045:"a149bcc1",2076:"6daa4993",2102:"a57f7e29",2141:"182cc90e",2216:"907cf53b",2240:"a1b7efc4",2249:"f4830452",2254:"12310b10",2262:"3c3af85f",2300:"e1bf89cf",2303:"1034def2",2307:"bb61c1e8",2338:"9d392b99",2339:"765b0694",2386:"192e235c",2396:"42ae1807",2404:"d9f5227c",2412:"7a2e6036",2413:"f18d3187",2425:"037d72c2",2443:"3a90e413",2476:"7e64c9b9",2494:"68080a87",2501:"6ec57414",2524:"53312535",2529:"76e49009",2538:"de4a3723",2539:"dc365e96",2548:"a8fbf09d",2570:"4bf36b75",2594:"e87d3761",2603:"ff4dded9",2659:"2bec3ca5",2707:"8ddc006b",2806:"c3375b8a",2819:"ba48f213",2823:"ffeb7191",2826:"d47dce5c",2829:"ac34ddc7",2837:"54a82605",2865:"6d2e0ab7",2875:"77c1c61b",2884:"632ce1c4",2967:"00f9206d",2969:"ab3357d7",2983:"fd32b184",3006:"ab9f73a0",3133:"9bf3f89c",3141:"336df2a0",3157:"f373970e",3183:"e30973c4",3198:"8e655451",3212:"a5e343d2",3220:"4bbae0ce",3247:"03c62a13",3260:"83ca897b",3267:"7bab569a",3282:"72f1506c",3317:"d869dedd",3332:"d86accbf",3355:"a5052877",3356:"295e2b44",3391:"80021ede",3433:"5fb10824",3442:"c7622f11",3447:"1e9582ee",3451:"59c9783a",3496:"00e58418",3509:"c4ddc38c",3550:"3dc83156",3581:"0e7c3fdb",3585:"d76493a6",3589:"286429c4",3665:"e3b2b54b",3668:"b816aaa6",3685:"eacd4afb",3697:"481a10d9",3747:"1424993f",3754:"8a42053c",3777:"d5b0f2f1",3784:"1f2c11c8",3805:"9dbcb95e",3862:"8806fb69",3873:"8d54ee3b",3885:"f87f7f15",3897:"dce6884b",3910:"badbd452",3935:"90819bf2",3951:"2223870b",3987:"a5fa1e4d",4014:"27a8e97c",4017:"b1859413",4030:"c34abf8d",4056:"1f0162ef",4058:"6208ddf2",4078:"9a077491",4088:"236723f3",4093:"90bed040",4105:"0e283acd",4144:"35e5f8eb",4164:"4c3d40af",4184:"ff08337d",4216:"88405980",4217:"aa0c899d",4227:"3ef15339",4259:"7527addd",4264:"a436a7a2",4347:"ce21ef2e",4354:"140899b7",4360:"cf5efa52",4449:"92b1a708",4492:"eb01b811",4496:"fc0c0614",4498:"5cd7eef3",4504:"f77ce9d4",4514:"14c75352",4520:"e87e91b0",4546:"c4c3db6c",4565:"34ca03e6",4572:"d8043c77",4599:"6cc673d8",4601:"73c33025",4610:"ec7a63bb",4621:"dde2f749",4628:"ece2c60c",4653:"69c5bf4c",4662:"ecb9c172",4685:"c33f1528",4715:"6f956963",4736:"73ea7274",4741:"9b47ae07",4757:"1f54d32b",4766:"d267690e",4770:"11a71f86",4790:"619413e4",4795:"5ee20195",4797:"a24e92db",4800:"b4dd94e3",4849:"08b1303f",4850:"1edda4b7",4862:"b426aa37",4884:"f134344a",4889:"50b4d512",4928:"caabf7b4",4973:"28aa0c10",4994:"c0318238",5022:"ada82325",5043:"f256f803",5048:"3b7720a9",5060:"85dafcc6",5096:"eebbd1d8",5111:"aa154aeb",5125:"35a4201c",5148:"b37ee714",5176:"fb31544e",5179:"5353a67f",5186:"0204709f",5191:"ed40b41f",5238:"85b688ac",5290:"5dabcdc2",5297:"84fa57d1",5319:"63ff87e5",5321:"1163c84e",5335:"f901d89d",5354:"7ae70604",5357:"a0784fdd",5359:"156afd1b",5382:"1a4857dd",5402:"92e51ce9",5416:"454536b7",5434:"38b302a6",5470:"b7634dda",5494:"d89549c4",5518:"bcfc2d5b",5549:"7808afde",5572:"773f0e2f",5573:"5d3fa326",5599:"db4f249b",5624:"4b356af1",5631:"e00d3d36",5650:"436f08c6",5679:"4a090bef",5705:"41d2c5f1",5729:"bd9eeac7",5741:"7dc6f742",5764:"e0d7e586",5775:"09da26d0",5786:"b0646120",5798:"b54829ae",5816:"2ef074fd",5825:"0dd96dab",5876:"5eded409",5886:"490e40cd",5888:"f5ca41ff",5891:"63a3e0c4",5895:"d80048df",5902:"82dbc3e8",5915:"016d9291",5992:"52705558",6029:"955a6a9f",6034:"bc5089a2",6045:"d268f87f",6047:"3ce45acd",6052:"a88dd84e",6063:"539525fa",6069:"a8f9f6f0",6126:"99519171",6127:"ef2157a1",6170:"07f25c2b",6265:"215c6bb7",6270:"94b5f31e",6272:"4c216d13",6277:"47c6c829",6309:"f80bd663",6328:"15b3a1a7",6366:"82676765",6378:"7f3a946a",6411:"7d1994e3",6434:"3ea89182",6444:"ee441367",6452:"ce5249d6",6531:"eac0ffe2",6541:"b5e7feff",6583:"330055cf",6587:"f993e3e5",6634:"5f7a8c4b",6651:"e9bd2590",6685:"61bf44af",6729:"ee3cfa80",6741:"13753e91",6758:"efeffddb",6774:"59d4d618",6784:"cef3d262",6788:"72b2ea76",6796:"fd25d805",6804:"3d1b09d7",6805:"b5e013b0",6820:"3734a5e9",6845:"8c5ad546",6882:"9652388c",6883:"556889fa",6904:"ddd27375",6913:"895f5f89",6963:"b1366f48",6982:"b750209e",7008:"9baea905",7042:"548588cc",7043:"c813aaa5",7045:"dada71fe",7046:"ea9241bf",7058:"f2c188d4",7062:"2aeaeb1d",7084:"46ccce72",7156:"e7466006",7178:"1f56ceb7",7182:"9ae59eaf",7242:"bf63919a",7260:"77d01a75",7331:"2e27a23b",7333:"4cd2a40b",7365:"1005464f",7369:"2f8d32dd",7395:"3741017b",7460:"aa977e8b",7477:"093c7999",7482:"1584299c",7511:"8c765622",7527:"9b19ed7e",7545:"96ef4245",7560:"ecff4096",7589:"359e8f23",7591:"8354027c",7614:"2fcecb3f",7622:"be1787e4",7631:"dee68dc0",7686:"4fcec9f9",7706:"c2a79e40",7806:"4095c634",7852:"bfc08211",7855:"bb9e47eb",7857:"f15d16f1",7878:"a4543761",7884:"c771eb3c",7922:"ebf2d1fe",7964:"29aed9a1",8014:"603569ee",8062:"7de22a25",8072:"1f77366e",8077:"c1023ede",8085:"f0a0793c",8089:"d536b13a",8143:"3d97b65b",8155:"9be1e3db",8161:"83c5fa9a",8237:"b0b2bcac",8241:"3901cd1b",8275:"e1948d09",8285:"41adea83",8302:"4eb27e3a",8307:"2360c065",8340:"39c85824",8350:"07df8a75",8398:"991f00f1",8431:"da127c8d",8435:"d2b2e328",8447:"a6cc502d",8517:"63c7ea7f",8522:"4e8ff105",8561:"333e8ec9",8563:"882ddf7a",8634:"72be6b24",8639:"68809bd0",8665:"1c968e03",8688:"b812034a",8689:"630d3c23",8723:"888a3b03",8737:"ce7dad23",8776:"0ad26240",8782:"a9bb0f5e",8787:"c44d8b30",8797:"8a3f950f",8823:"2b94c325",8827:"99ca019e",8842:"9f25a3e2",8866:"86e722e2",8882:"2b3f74fb",8885:"35b0c80b",8898:"d002bcd8",8909:"aa97ab0a",8920:"7f82440c",8963:"790aecdd",8982:"0c18f199",8999:"0e20732b",9076:"e0aaaea3",9104:"bbcb2345",9133:"0bf5e676",9205:"98dee718",9215:"e4da6d8f",9252:"0d791a59",9260:"f163e60e",9332:"554f7961",9360:"b2aefd8f",9366:"57d05513",9391:"f4463617",9404:"9fcc3d3e",9408:"c02bb774",9416:"a959e66b",9472:"12eab800",9487:"bbefb860",9489:"ce8d2c64",9507:"f22fd33b",9554:"ed358e7b",9559:"f794af19",9572:"87188a91",9590:"88346063",9647:"717de0a9",9649:"8176fe80",9674:"103361ac",9677:"ba632105",9695:"dfb30662",9715:"1c2cc9a0",9716:"2d3b0c89",9785:"ddcb03af",9788:"814d1abf",9886:"5f7cbbfe",9890:"d82db250",9891:"72f13dc9",9895:"b8e31ff2",9921:"bb34c10f",9922:"35a569c8",9928:"5989f5e0",9944:"e22bbd1b",9950:"74f6dfb2",9968:"17466785",9974:"7fc11c00"}[i]+".async.js"}}(),function(){__webpack_require__.miniCssF=function(i){return""+({26:"p__Classrooms__Lists__Graduation__Tasks__Edit__index",67:"p__Message__index",109:"p__Classrooms__Lists__ShixunHomeworks__Detail__components__CodeReview__Detail__index",195:"p__Classrooms__Lists__GroupHomework__Detail__index",264:"p__User__Detail__Order__pages__orderPay__index",265:"p__User__Detail__Topics__index",292:"p__Classrooms__Lists__Exercise__Add__index",310:"p__User__Detail__ExperImentImg__Detail__index",337:"p__Paperlibrary__Random__PreviewEdit__index",342:"p__Classrooms__Lists__ShixunHomeworks__Comment__index",479:"p__Classrooms__Lists__GroupHomework__EditWork__index",485:"p__Question__AddOrEdit__BatchAdd__index",508:"p__Forums__Detail__id",532:"p__ExcellentCourse__index",533:"p__Classrooms__Lists__Video__Statistics__Detail__index",547:"p__Account__index",556:"p__User__Detail__Order__pages__invoice__index",559:"layouts__virtualDetail__index",576:"p__Account__Profile__Edit__index",643:"p__Classrooms__Lists__Polls__QuestionnaireInfo__index",680:"p__Innovation__index",700:"p__tasks__Jupyter__index",737:"p__Classrooms__Lists__CommonHomework__Detail__components__CodeReview__Detail__index",799:"p__User__Detail__Topics__Poll__Detail__index",869:"p__Guidance__index",895:"p__Classrooms__Lists__Video__Items__videoInfo__index",919:"p__knowledgegraph__Statistics__LearningPath__index",921:"p__Classrooms__Lists__Exercise__CodeDetails__index",928:"p__RestFul__Edit__index",1006:"p__RestFul__index",1043:"p__Classrooms__Lists__Graduation__Tasks__index",1045:"p__virtualSpaces__Lists__Knowledge__AddAndEdit__index",1048:"p__Classrooms__Lists__ProgramHomework__Detail__Ranking__index",1070:"p__Innovation__PublicMirror__index",1148:"p__Shixuns__Detail__Repository__UploadFile__index",1211:"p__Classrooms__Lists__CommonHomework__EditWork__index",1253:"p__Graduations__Lists__Gradingsummary__index",1257:"p__Classrooms__Lists__ResourceRecommend__index",1265:"p__Classrooms__Lists__Announcement__index",1276:"p__MoopCases__Success__index",1343:"p__User__Detail__ResourceAllocation__index",1416:"p__User__Detail__AccountInfo__CareerCertification__index",1423:"p__Shixuns__Edit__body__Level__Challenges__EditPracticeAnswer__index",1427:"p__Classrooms__Lists__Statistics__index",1443:"p__EffectivenessAnalysis__index",1450:"p__Classrooms__Lists__ShixunHomeworks__Commitsummary__index",1461:"p__Graduations__Lists__Topics__index",1470:"p__User__Register__index",1475:"p__Shixuns__Detail__Dataset__JupyterData__index",1482:"p__Classrooms__Lists__Graduation__Topics__Edit__index",1512:"p__Classrooms__Lists__Exercise__AnswerCheck__index",1520:"p__Engineering__Lists__StudentList__index",1545:"p__Paperlibrary__Random__ExchangeFromProblemSet__index",1578:"p__Classrooms__Lists__Graduation__Topics__Detail__index",1581:"p__Problemset__Preview__index",1582:"p__Classrooms__Lists__GroupHomework__Add__index",1657:"p__Shixuns__Edit__body__Level__Challenges__EditQuestion__index",1674:"p__Classrooms__ClassicCases__index",1702:"p__Classrooms__New__index",1713:"p__virtualSpaces__Lists__Settings__index",1717:"layouts__index",1727:"p__Classrooms__Lists__CourseGroup__NotList__index",1783:"p__virtualSpaces__Lists__Experiment__index",1831:"p__Graduations__Index__index",1836:"p__Classrooms__Lists__Attendance__Webview__Teacher__index",1855:"p__MoopCases__InfoPanel__index",1880:"p__User__Detail__Order__pages__apply__index",1939:"p__User__Detail__Order__index",1953:"p__Problemset__NewItem__index",1962:"p__Classrooms__Lists__Engineering__index",2045:"p__Engineering__Lists__TeacherList__index",2076:"p__User__Detail__Competitions__index",2102:"p__Classrooms__Lists__Board__Edit__index",2141:"p__Shixuns__Detail__Split__index",2216:"p__DataSet__Index__index",2240:"p__User__Detail__Videos__Upload__index",2254:"p__Shixuns__Detail__Discuss__index",2303:"p__Classrooms__Lists__CommonHomework__Comment__index",2307:"p__Report__index",2338:"p__Classrooms__Lists__CommonHomework__Review__index",2339:"p__virtualSpaces__Lists__Plan__Detail__index",2396:"p__User__Detail__ResourcesCenter__index",2404:"p__Classrooms__Lists__Template__teacher__index",2412:"p__User__Detail__Videos__index",2425:"p__Classrooms__Lists__Board__Detail__index",2443:"p__Graduations__Lists__StageModule__index",2476:"p__Colleges__index",2501:"p__Search__index",2524:"p__knowledgegraph__Detail__components__Content__components__AbilityMap__Detail__index",2529:"p__User__Detail__id",2539:"p__Graduations__Review__index",2548:"p__Engineering__Norm__Detail__index",2570:"p__Competitions__Detail__index",2603:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Add__index",2659:"p__User__Detail__UserPortrait__index",2707:"p__Innovation__MyDataSet__index",2806:"p__User__Detail__Topics__Exercise__Detail__index",2819:"p__Classrooms__Lists__Template__detail__index",2823:"p__Engineering__Navigation__Home__index",2826:"p__User__Detail__DataSet__index",2829:"p__Messages__Private__index",2865:"p__Innovation__MyMirror__index",2875:"p__Shixuns__Detail__id",2884:"p__Classrooms__Lists__ProgramHomework__Comment__index",2983:"p__Forums__Index__index",3006:"p__Engineering__index",3141:"p__Innovation__Detail__index",3157:"p__User__Detail__ExperImentImg__Add__index",3183:"p__Engineering__Lists__GraduationIndex__index",3212:"p__MoopCases__index",3220:"p__Classrooms__Lists__Video__Upload__index",3247:"p__Paperlibrary__See__index",3260:"p__Paperlibrary__Add__index",3282:"layouts__ShixunDetail__index",3317:"p__Classrooms__Lists__Graduation__Topics__Add__index",3332:"p__Paths__Detail__id",3355:"p__Classrooms__Lists__Polls__index",3356:"p__Classrooms__Lists__Assistant__index",3391:"p__Classrooms__Lists__ProgramHomework__Detail__components__CodeReview__Detail__index",3433:"p__Classrooms__Lists__Exercise__Sumup__Edit__index",3442:"p__Classrooms__Lists__Board__Add__index",3447:"p__User__Detail__Order__pages__orderInformation__index",3451:"p__Classrooms__Lists__Statistics__StudentStatistics__Detail__index",3496:"p__User__Detail__OtherResources__index",3509:"p__HttpStatus__SixActivities",3581:"p__Classrooms__Lists__ShixunHomeworks__Detail__index",3585:"p__Classrooms__Lists__Statistics__StudentSituation__index",3665:"p__tasks__index",3668:"p__Classrooms__Lists__CommonHomework__Detail__index",3685:"p__knowledgegraph__Detail__components__Content__components__AbilityMap__Edit__index",3747:"p__virtualSpaces__Lists__Homepage__index",3784:"p__Paperlibrary__Random__Detail__index",3873:"p__virtualSpaces__Lists__Lesson__index",3897:"p__WxMiniProgram__Courseware__Study__index",3910:"p__HttpStatus__introduction",3935:"p__Classrooms__Lists__GroupHomework__index",3951:"p__Classrooms__Lists__ProgramHomework__Detail__index",4030:"p__Classrooms__Lists__ProgramHomework__AddAndEdit__index",4056:"p__IntrainCourse__index",4058:"p__Demo__index",4078:"p__Messages__Tidings__index",4093:"p__Classrooms__Lists__Attendance__Detail__index",4105:"p__Classrooms__Lists__Exercise__Answer__index",4144:"p__Problemset__Preview__New__index",4164:"p__Classrooms__Lists__Exercise__Detail__index",4216:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Edit__index",4217:"p__Classrooms__Lists__Video__Statistics__index",4227:"p__Paths__Overview__index",4259:"p__User__Detail__Order__pages__result__index",4264:"p__Forums__New__index",4449:"p__Competitions__Exports__index",4492:"p__Graduations__Lists__StudentSelection__index",4496:"p__HttpStatus__HpcCourse",4498:"p__Shixuns__Edit__body__Level__Challenges__NewPractice__index",4504:"p__virtualSpaces__Lists__Survey__index",4514:"p__Account__Results__index",4520:"p__Account__Secure__index",4546:"p__Engineering__Lists__TrainingProgram__Add__index",4572:"p__Classrooms__Lists__ExportList__index",4599:"p__Problemset__index",4601:"p__Paths__Detail__Statistics__index",4610:"p__User__Detail__LearningPath__index",4621:"p__Administration__Profession__index",4662:"p__Classrooms__Lists__GroupHomework__Review__index",4715:"p__virtualSpaces__Lists__Material__Detail__index",4736:"p__User__Detail__Projects__index",4741:"p__Problems__OjForm__NewEdit__index",4757:"p__virtualSpaces__Lists__Workplace__index",4766:"p__Administration__index",4770:"p__Classrooms__Lists__ProgramHomework__Detail__answer__index",4795:"p__Classrooms__Lists__Graduation__Tasks__Add__index",4800:"p__Engineering__Lists__GraduatedMatrix__index",4849:"p__User__Detail__ExperImentImg__index",4862:"p__Paperlibrary__index",4884:"p__Shixuns__Detail__Repository__Commit__index",4889:"p__Classrooms__Lists__Exercise__ImitateAnswer__index",4928:"p__Classrooms__Lists__LearningPath__index",4973:"p__Engineering__Evaluate__List__index",4994:"p__Problems__OjForm__index",5022:"p__Graduations__Lists__Settings__index",5043:"p__User__Detail__Topics__Poll__Edit__index",5048:"p__Classrooms__Lists__Graduation__Topics__index",5096:"p__Shixuns__Detail__AuditSituation__index",5111:"p__Terminal__index",5125:"p__Classrooms__Lists__Exercise__DetailedAnalysis__index",5148:"p__Classrooms__Lists__Polls__Answer__index",5176:"p__User__Detail__Videos__Protocol__index",5179:"p__Administration__Student__Edit__index",5186:"p__Classrooms__Overview__index",5191:"p__User__Detail__Certificate__index",5238:"p__virtualSpaces__Lists__Material__index",5297:"p__Classrooms__Lists__Exercise__Detail__components__DuplicateChecking__CheckDetail__index",5319:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Detail__index",5335:"p__Engineering__Lists__CourseMatrix__index",5357:"p__Engineering__Lists__TrainingProgram__Edit__index",5359:"p__Messages__Detail__index",5382:"p__DataSet__Detail__index",5402:"p__User__Detail__Topics__Detail__index",5470:"p__Shixuns__Detail__Collaborators__index",5518:"p__Classrooms__Lists__Template__index",5549:"p__Shixuns__New__CreateImg__index",5572:"p__Paths__HigherVocationalEducation__index",5573:"p__Shixuns__Detail__Merge__index",5599:"p__User__Detail__Paths__index",5624:"p__Graduations__Lists__Index__index",5650:"p__Competitions__Update__index",5705:"p__virtualSpaces__Lists__Construction__index",5729:"p__Help__Index",5741:"p__Classrooms__Lists__SmartPlan__index",5775:"p__Engineering__Lists__Document__index",5786:"layouts__LoginAndRegister__index",5798:"p__Classrooms__Lists__Video__Statistics__UserDetail__index",5816:"p__Paperlibrary__Random__Edit__index",5825:"p__Classrooms__Lists__Exercise__index",5888:"p__Classrooms__Lists__CommonHomework__Add__index",5891:"p__virtualSpaces__Lists__Resources__index",5895:"p__User__Detail__AccountInfo__Profile__Edit__index",5902:"p__Classrooms__Lists__Exercise__Sumup__index",5915:"p__knowledgegraph__Detail__Statistics__index",5992:"p__Classrooms__Lists__Exercise__ReviewGroup__index",6029:"p__Administration__Student__index",6052:"p__Paths__Index__index",6063:"p__Graduations__Lists__Personmanage__index",6069:"p__virtualSpaces__Lists__Lesson__Detail__index",6127:"p__Classrooms__Lists__ProgramHomework__Ranking__index",6265:"p__virtualSpaces__Lists__Discussion__index",6270:"p__MyProblem__index",6277:"p__Shixuns__Edit__index",6328:"p__Shixuns__Edit__body__Warehouse__index",6366:"p__Innovation__PublicProject__index",6434:"p__User__Detail__Order__pages__records__index",6444:"p__Video__Detail__id",6452:"p__Innovation__PublicDataSet__index",6541:"p__Shixuns__Detail__Dataset__index",6583:"p__User__Detail__Classrooms__index",6587:"p__User__Detail__Videos__Protocol__resource",6634:"p__Innovation__Tasks__index",6651:"p__Engineering__Evaluate__Detail__index",6685:"p__Classrooms__Index__index",6729:"p__Classrooms__Lists__GroupHomework__Edit__index",6741:"p__Engineering__Norm__List__index",6758:"p__Classrooms__Lists__Attachment__index",6784:"p__Innovation__Edit__index",6788:"p__Classrooms__Lists__ProgramHomework__index",6796:"p__virtualSpaces__Lists__Announcement__Detail__index",6805:"p__User__Detail__AccountInfo__RealNameCertification__index",6820:"p__User__Detail__Topics__Normal__index",6845:"p__Shixuns__Detail__Settings__index",6882:"p__Classrooms__New__StartClass__index",6883:"p__Competitions__Index__index",6904:"p__MoopCases__FormPanel__index",6913:"p__Question__AddOrEdit__index",6963:"p__Classrooms__Lists__Engineering__Detail__index",6982:"p__User__Detail__AccountInfo__Profile__index",7008:"p__Shixuns__New__index",7042:"p__knowledgegraph__Statistics__LearningPath__Detail",7043:"p__User__Detail__Topics__Exercise__Edit__index",7045:"p__Classrooms__Lists__CommonHomework__SubmitWork__index",7046:"p__Shixuns__Detail__Repository__AddFile__index",7058:"p__virtualSpaces__Lists__Survey__Detail__index",7062:"layouts__SimpleLayouts",7178:"p__User__BindAccount__index",7182:"p__User__ResetPassword__index",7242:"p__Innovation__MyProject__index",7260:"p__Account__Certification__index",7395:"p__Classrooms__Lists__Statistics__StudentDetail__index",7460:"p__Question__OjProblem__index",7477:"p__virtualSpaces__Lists__Announcement__index",7482:"p__Classrooms__Lists__Exercise__Notice__index",7527:"p__MyProblem__RecordDetail__index",7545:"p__Graduations__Lists__Archives__index",7560:"p__Administration__College__index",7589:"p__virtualSpaces__Lists__DigitalTopics__index",7614:"p__Shixuns__Edit__body__Level__Challenges__RankingSetting__index",7622:"p__Classrooms__Lists__Polls__Detail__index",7806:"p__Classrooms__Lists__Statistics__StatisticsQuality__index",7852:"p__Classrooms__Lists__ShixunHomeworks__index",7855:"p__User__Detail__ResourcesCenter__Detail__index",7857:"p__Shixuns__Edit__body__Level__Challenges__NewQuestion__index",7878:"p__Classrooms__Lists__LiveVideo__index",7884:"p__Shixuns__Exports__index",7922:"p__Classrooms__Lists__CourseGroup__Detail__index",8014:"p__Classrooms__Lists__Teachers__index",8062:"p__User__Detail__Topicbank__index",8072:"p__Classrooms__Lists__GroupHomework__SubmitWork__index",8077:"p__Classrooms__Lists__Students__index",8085:"p__Classrooms__Lists__Exercise__Review__index",8143:"layouts__GraduationsDetail__index",8155:"p__Shixuns__Overview__index",8237:"p__User__Detail__Order__pages__view__index",8241:"p__virtualSpaces__Lists__Plan__index",8285:"p__Classrooms__Lists__SmartPlan__Info__index",8302:"p__Classrooms__Lists__Board__index",8307:"p__User__Detail__Shixuns__index",8398:"p__virtualSpaces__Lists__Resources__Detail__index",8431:"p__Classrooms__Lists__Exercise__Export__index",8435:"p__Classrooms__Lists__Attendance__index",8447:"p__virtualSpaces__Lists__Knowledge__index",8517:"p__User__Detail__Topics__Group__index",8522:"p__Classrooms__Lists__SmartPlan__Info__PptInfo__index",8563:"p__virtualSpaces__Lists__Discussion__Detail__index",8634:"p__Classrooms__Lists__CourseGroup__List__index",8665:"p__Engineering__Lists__TrainingObjectives__index",8688:"p__Shixuns__Detail__Repository__index",8689:"p__Classrooms__Lists__Statistics__VideoStatistics__index",8723:"p__Classrooms__Lists__Polls__Edit__index",8782:"p__Shixuns__Index__index",8787:"p__Competitions__Entered__index",8797:"p__Competitions__Edit__index",8823:"p__knowledgegraph__Detail__id",8827:"p__Classrooms__Lists__OnlineLearning__index",8866:"p__index",8882:"p__Classrooms__Lists__Graduation__Tasks__Detail__index",8885:"p__Classrooms__Lists__Statistics__StudentStatistics__index",8982:"p__Paths__New__index",8999:"p__Three__index",9076:"p__Account__Binding__index",9133:"p__Shixuns__Detail__Challenges__index",9205:"p__Shixuns__Edit__body__Level__Challenges__EditPracticeSetting__index",9215:"p__Shixuns__Detail__ForkList__index",9332:"p__Classrooms__Lists__Video__index",9360:"p__User__Detail__virtualSpaces__index",9366:"p__User__Login__index",9391:"p__Engineering__Lists__CurseSetting__index",9404:"monaco-editor",9408:"p__Shixuns__Detail__RankingList__index",9416:"p__Graduations__Lists__Tasks__index",9472:"p__Shixuns__Detail__Poll__index",9487:"p__LargeScreen__index",9489:"p__Engineering__Lists__CourseList__index",9507:"p__User__Detail__ResourceGuarantee__index",9590:"p__User__Detail__TeachGroup__index",9647:"p__Question__Index__index",9649:"p__Engineering__Lists__TrainingProgram__index",9674:"p__Shixuns__New__ImagePreview__index",9677:"p__virtualSpaces__Lists__Announcement__AddAndEdit__index",9695:"p__Classrooms__Lists__Polls__Add__index",9715:"p__Classrooms__Lists__CommonHomework__Edit__index",9716:"p__Question__OjProblem__RecordDetail__index",9785:"p__Classrooms__Lists__Template__student__index",9788:"p__Account__Profile__index",9890:"p__Classrooms__Lists__CommonHomework__index",9891:"p__User__Detail__Videos__Success__index",9921:"p__Classrooms__ExamList__index",9922:"p__Classrooms__Lists__Statistics__StudentVideo__index",9944:"p__Classrooms__Lists__Video__Statistics__StudentDetail__index"}[i]||i)+"."+{26:"7e9594a1",67:"8abe289a",109:"b9c23c40",195:"912be472",264:"5fd9b3fc",265:"d92c6f86",292:"c1f2b68c",310:"8becc5f2",337:"c9ba7e85",342:"2389cd43",479:"249e39e2",485:"d63578fe",508:"a4fb1ddc",532:"c829a014",533:"5fee20bc",547:"5581debc",556:"892f4292",559:"c49aa5ba",576:"8bf77b42",643:"0de52106",680:"e67e9e01",700:"0c10ce4d",737:"72eaccaa",799:"9f0700c1",869:"4a5372a2",895:"ce8634e8",919:"952e2d43",921:"b09f4288",928:"d2beba77",1006:"b9d07e6a",1043:"e8c0878b",1045:"38de514b",1048:"c6c344e1",1070:"e67e9e01",1148:"754fff63",1211:"ea984d0a",1253:"46aca33c",1257:"7b8c452c",1265:"1aee9bb3",1276:"bbc6eeec",1343:"b7f33c89",1416:"735363dc",1423:"58fe9b05",1427:"f91322f7",1443:"e1865421",1450:"8e4a5554",1461:"a363a3ef",1470:"afcb0f79",1475:"d22fbaa0",1482:"77af25ff",1512:"f3653a35",1520:"f7300d0e",1545:"c5769eb4",1578:"b97a98c0",1581:"13815a71",1582:"6cb52f3e",1657:"9953b690",1674:"fdbc1e05",1702:"c68efb85",1713:"2d8d66d4",1717:"7fe99454",1727:"de83767d",1783:"47d0320e",1831:"8d05bf11",1836:"5f0d3f7f",1855:"d782a698",1880:"f67d7892",1939:"48e30d48",1953:"53098fd0",1962:"84e145fa",2045:"dcfad42d",2076:"09b07fa0",2102:"f82f5b2b",2141:"5eb2f330",2216:"e3ba73cf",2240:"e7cce869",2254:"dcd2e863",2303:"eb945f5f",2307:"b2c54321",2338:"f0d43fd8",2339:"6a610b14",2396:"8d2f98b7",2404:"253c1335",2412:"b297b168",2425:"4f225802",2443:"2f9b1769",2476:"cf85a190",2501:"2441982c",2524:"96d90e3e",2529:"0d98d328",2539:"1d8aca24",2548:"75182034",2570:"8ecde007",2603:"d2beba77",2659:"f6071a36",2707:"cabcb16e",2806:"9d0f03dc",2819:"32083596",2823:"a13b21fb",2826:"0b6be43b",2829:"b9ad7ac4",2865:"6ef3cf6b",2875:"2f2c99c6",2884:"a179044d",2983:"c8c482f7",3006:"7fce4e74",3141:"dd6cafec",3157:"00a8f267",3183:"b2253f40",3212:"ad1521c1",3220:"1a8a9f14",3247:"3b28d50a",3260:"6fa0a87f",3267:"03cdfb68",3282:"195bced9",3317:"c2e77a8c",3332:"c167e365",3355:"cd26b451",3356:"c6a4098f",3391:"89554b70",3433:"e1590a0b",3442:"2d76d0c9",3447:"1653d818",3451:"e3a31387",3496:"44bf4044",3509:"70043ca5",3581:"b9f655d4",3585:"5f288e7b",3665:"8d74f148",3668:"7c685188",3685:"5356e3de",3747:"02cfa484",3784:"c81d4a51",3873:"ff6ac8ea",3897:"8a52e8bf",3910:"658d457f",3935:"701314c7",3951:"0af31afa",4030:"d2e5ff7b",4056:"10eacfff",4058:"ee954c0b",4078:"aa54548e",4093:"c1f29d01",4105:"c1b780a2",4144:"f10aa199",4164:"592f2f0c",4216:"d2beba77",4217:"387bf824",4227:"79c3b323",4259:"ebd953ac",4264:"a780c6d2",4449:"e68d8d58",4492:"135ab50d",4496:"301aff54",4498:"05f36d8d",4504:"466a61af",4514:"887bdbb6",4520:"e86d61a1",4546:"4101a1f2",4572:"70e5675d",4599:"b8aa19ba",4601:"3c8ac557",4610:"687005a6",4621:"ead619d7",4662:"84440630",4715:"d953738b",4736:"2968553b",4741:"4e108c30",4757:"73b754d2",4766:"b5df5a8e",4770:"2ad0c1f9",4795:"0e1a548d",4800:"f50302a4",4849:"07e2d0b2",4862:"64940bd1",4884:"bd293d3b",4889:"1db39886",4928:"3ec9e47f",4973:"129c56e8",4994:"01cba244",5022:"81b1b86b",5043:"25756466",5048:"aa08c681",5096:"4f6a4d00",5111:"5d09a39a",5125:"57501e4a",5148:"c519172e",5176:"9c49e7fa",5179:"21f01751",5186:"aeb0dc56",5191:"0af389b2",5238:"86692bca",5297:"3a2685a1",5319:"35fc6024",5335:"fec6fd9f",5357:"1fbb7d24",5359:"bbebe82c",5382:"4e20ad23",5402:"166c0400",5470:"f9f86e99",5518:"9f425be3",5549:"39285664",5572:"c945fbf2",5573:"6ecf393c",5599:"2ae54005",5624:"0c72e67d",5650:"f8f63f4b",5705:"df6bf207",5729:"b88ec90d",5741:"f5bf79a9",5775:"f99db9ab",5786:"37a81eaa",5798:"ce1cf7da",5816:"5e85dfee",5825:"57a7f225",5888:"b67f491a",5891:"3b7a128f",5895:"9ddd624a",5902:"d59edd35",5915:"bc9c3e69",5992:"e84da226",6029:"2ded5a5a",6052:"2fbc571d",6063:"a5f0409a",6069:"b417d2f0",6127:"f31505a8",6265:"e786a86e",6270:"75eb86b4",6277:"7140eacb",6328:"1d366bbd",6366:"079fc2d8",6434:"0112f8db",6444:"bb471f47",6452:"50a6d310",6541:"d1c967cd",6583:"7d33505d",6587:"9c49e7fa",6634:"fe524f32",6651:"b07fe216",6685:"f5f5b969",6729:"eb16a227",6741:"b838eb14",6758:"ddf000ad",6784:"1affe817",6788:"6d15e159",6796:"14d05697",6805:"5b253c81",6820:"a7609162",6845:"2d0bc9da",6882:"c2d2eada",6883:"7740a702",6904:"701e3c9a",6913:"2de5ae5c",6963:"84e145fa",6982:"3043a9c3",7008:"33789d66",7042:"952e2d43",7043:"9527ec8e",7045:"113cd3ca",7046:"c7301ded",7058:"e5da97d0",7062:"6e5915f9",7178:"6e47d75d",7182:"9c7ac543",7242:"4f353f61",7260:"928abc9d",7395:"5c10e8d8",7460:"c4b86ca7",7477:"66ecedaa",7482:"3a11c394",7527:"e33663ea",7545:"c6a67426",7560:"d82e43ca",7589:"2a3e68f3",7614:"8e370373",7622:"46d58a04",7806:"bd9accb9",7852:"2a6b7650",7855:"6f036cf6",7857:"bdaf3fdc",7878:"2b521fde",7884:"47e0a5df",7922:"c1d9e2f3",8014:"9ef39203",8062:"8e384b9f",8072:"4002695d",8077:"0b2c51d9",8085:"53021a45",8143:"7e86b55b",8155:"d345abd7",8237:"44654223",8241:"02a0cb2f",8285:"8a6ce507",8302:"c8dc0096",8307:"02e15761",8398:"ecb314e7",8431:"92e46234",8435:"7882364e",8447:"10b1203e",8517:"6a7a4b09",8522:"3c20b9f7",8563:"8940b612",8634:"317d0a2b",8665:"c52575bc",8688:"f98a445e",8689:"459af240",8723:"3dabd419",8782:"918afc23",8787:"121de108",8797:"f07b77eb",8823:"ae7638ad",8827:"f0f5d5ac",8866:"da63c71f",8882:"2cd0f8b7",8885:"de905169",8982:"c94c2cf8",8999:"7f4c7efe",9076:"6a501148",9133:"03f6f6d3",9205:"1e43ebcb",9215:"f737e7e7",9332:"3d30bf20",9360:"27c7d4f7",9366:"3f6c2582",9391:"473c2453",9404:"d8cf04f7",9408:"d3565b1a",9416:"df580f39",9472:"ef5fc030",9487:"a73f5679",9489:"ee2bb5b7",9507:"396e34cd",9590:"29583579",9647:"3c89dab6",9649:"5e708a2c",9674:"09dd4aac",9677:"3f012675",9695:"637a583b",9715:"c14c7b68",9716:"d7a969b5",9785:"d48e05db",9788:"4459d92d",9890:"74da05e3",9891:"512a9301",9921:"e0db9101",9922:"33690872",9944:"1ba31055"}[i]+".chunk.css"}}(),function(){__webpack_require__.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(i){if(typeof window=="object")return window}}()}(),function(){__webpack_require__.hmd=function(i){return i=Object.create(i),i.children||(i.children=[]),Object.defineProperty(i,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+i.id)}}),i}}(),function(){__webpack_require__.o=function(i,d){return Object.prototype.hasOwnProperty.call(i,d)}}(),function(){var i={};__webpack_require__.l=function(d,e,t,r){if(i[d]){i[d].push(e);return}var n,o;if(t!==void 0)for(var s=document.getElementsByTagName("script"),u=0;u0&&arguments[0]!==void 0?arguments[0]:"";return Dr.endsWith("/")?Dr:"".concat(Dr,"/")}var tc=__webpack_require__(38127),Su=__webpack_require__(38329),ru=__webpack_require__(8616),nu=["content"],Wi=["content"],ki=/^(http:|https:)?\/\//;function rc(Dr){return ki.test(Dr)||Dr.startsWith("/")&&!Dr.startsWith("/*")||Dr.startsWith("./")||Dr.startsWith("../")}var Bu=function(){return oe.createElement("noscript",{dangerouslySetInnerHTML:{__html:"Enable JavaScript to run this app."}})},au=function(Xr){var Rn,da=Xr.loaderData,jn=Xr.htmlPageOpts,Yn=Xr.manifest,qn=(Yn==null||(Rn=Yn.assets)===null||Rn===void 0?void 0:Rn["umi.css"])||"";return oe.createElement("script",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:"window.__UMI_LOADER_DATA__ = ".concat(JSON.stringify(da||{}),"; window.__UMI_METADATA_LOADER_DATA__ = ").concat(JSON.stringify(jn||{}),"; window.__UMI_BUILD_ClIENT_CSS__ = '").concat(qn,"'")}})};function as(Dr){var Xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof Dr=="string")return rc(Dr)?(0,Vo.Z)({src:Dr},Xr):{content:Dr};if((0,ru.Z)(Dr)==="object")return(0,Vo.Z)((0,Vo.Z)({},Dr),Xr);throw new Error("Invalid script type: ".concat((0,ru.Z)(Dr)))}function wi(Dr){return rc(Dr)?{type:"link",href:Dr}:{type:"style",content:Dr}}var al=function(Xr){var Rn,da,jn,Yn,qn,Va,Fn=Xr.htmlPageOpts;return oe.createElement(oe.Fragment,null,(Fn==null?void 0:Fn.title)&&oe.createElement("title",null,Fn.title),Fn==null||(Rn=Fn.favicons)===null||Rn===void 0?void 0:Rn.map(function(Ka,_s){return oe.createElement("link",{key:_s,rel:"shortcut icon",href:Ka})}),(Fn==null?void 0:Fn.description)&&oe.createElement("meta",{name:"description",content:Fn.description}),(Fn==null||(da=Fn.keywords)===null||da===void 0?void 0:da.length)&&oe.createElement("meta",{name:"keywords",content:Fn.keywords.join(",")}),Fn==null||(jn=Fn.metas)===null||jn===void 0?void 0:jn.map(function(Ka){return oe.createElement("meta",{key:Ka.name,name:Ka.name,content:Ka.content})}),Fn==null||(Yn=Fn.links)===null||Yn===void 0?void 0:Yn.map(function(Ka,_s){return oe.createElement("link",(0,Su.Z)({key:_s},Ka))}),Fn==null||(qn=Fn.styles)===null||qn===void 0?void 0:qn.map(function(Ka,_s){var vs=wi(Ka),$s=vs.type,js=vs.href,cu=vs.content;if($s==="link")return oe.createElement("link",{key:_s,rel:"stylesheet",href:js});if($s==="style")return oe.createElement("style",{key:_s},cu)}),Fn==null||(Va=Fn.headScripts)===null||Va===void 0?void 0:Va.map(function(Ka,_s){var vs=as(Ka),$s=vs.content,js=(0,tc.Z)(vs,nu);return oe.createElement("script",(0,Su.Z)({dangerouslySetInnerHTML:{__html:$s},key:_s},js))}))};function Nu(Dr){var Xr,Rn=Dr.children,da=Dr.loaderData,jn=Dr.manifest,Yn=Dr.htmlPageOpts,qn=Dr.__INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Va=Dr.mountElementId;if(qn!=null&&qn.pureHtml)return oe.createElement("html",null,oe.createElement("head",null),oe.createElement("body",null,oe.createElement(Bu,null),oe.createElement("div",{id:Va},Rn),oe.createElement(au,{manifest:jn,loaderData:da,htmlPageOpts:Yn})));if(qn!=null&&qn.pureApp)return oe.createElement(oe.Fragment,null,Rn);var Fn=typeof window=="undefined"?jn==null?void 0:jn.assets["umi.css"]:window.__UMI_BUILD_ClIENT_CSS__;return oe.createElement("html",{suppressHydrationWarning:!0,lang:(Yn==null?void 0:Yn.lang)||"en"},oe.createElement("head",null,oe.createElement("meta",{charSet:"utf-8"}),oe.createElement("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),Fn&&oe.createElement("link",{suppressHydrationWarning:!0,rel:"stylesheet",href:Fn}),oe.createElement(al,{htmlPageOpts:Yn})),oe.createElement("body",null,oe.createElement(Bu,null),oe.createElement("div",{id:Va},Rn),oe.createElement(au,{manifest:jn,loaderData:da,htmlPageOpts:Yn}),Yn==null||(Xr=Yn.scripts)===null||Xr===void 0?void 0:Xr.map(function(Ka,_s){var vs=as(Ka),$s=vs.content,js=(0,tc.Z)(vs,Wi);return oe.createElement("script",(0,Su.Z)({dangerouslySetInnerHTML:{__html:$s},key:_s},js))})))}var ou=oe.createContext(void 0);function ol(){return oe.useContext(ou)}var Pu=["redirect"];function Ds(Dr){var Xr=Dr.routesById,Rn=Dr.parentId,da=Dr.routeComponents,jn=Dr.useStream,Yn=jn===void 0?!0:jn;return Object.keys(Xr).filter(function(qn){return Xr[qn].parentId===Rn}).map(function(qn){var Va=il((0,Vo.Z)((0,Vo.Z)({route:Xr[qn],routeComponent:da[qn],loadingComponent:Dr.loadingComponent,reactRouter5Compat:Dr.reactRouter5Compat},Dr.reactRouter5Compat&&{hasChildren:Object.keys(Xr).filter(function(Ka){return Xr[Ka].parentId===qn}).length>0}),{},{useStream:Yn})),Fn=Ds({routesById:Xr,routeComponents:da,parentId:Va.id,loadingComponent:Dr.loadingComponent,reactRouter5Compat:Dr.reactRouter5Compat,useStream:Yn});return Fn.length>0&&(Va.children=Fn,Va.routes=Fn),Va})}function Cc(Dr){var Xr=(0,mi.UO)(),Rn=(0,mi.Gn)(Dr.to,Xr),da=(0,Eu.T$)(),jn=(0,mi.TH)();if(da!=null&&da.keepQuery){var Yn=jn.search+jn.hash;Rn+=Yn}var qn=(0,Vo.Z)((0,Vo.Z)({},Dr),{},{to:Rn});return oe.createElement(mi.Fg,(0,Su.Z)({replace:!0},qn))}function il(Dr){var Xr=Dr.route,Rn=Dr.useStream,da=Rn===void 0?!0:Rn,jn=Xr.redirect,Yn=(0,tc.Z)(Xr,Pu),qn=Dr.reactRouter5Compat?ac:oc;return(0,Vo.Z)({element:jn?oe.createElement(Cc,{to:jn}):oe.createElement(ou.Provider,{value:{route:Dr.route}},oe.createElement(qn,{loader:oe.memo(Dr.routeComponent),loadingComponent:Dr.loadingComponent||nc,hasChildren:Dr.hasChildren,useStream:da}))},Yn)}function nc(){return oe.createElement("div",null)}function ac(Dr){var Xr=ol(),Rn=Xr.route,da=(0,Eu.Ov)(),jn=da.history,Yn=da.clientRoutes,qn=(0,mi.UO)(),Va={params:qn,isExact:!0,path:Rn.path,url:jn.location.pathname},Fn=Dr.loader,Ka={location:jn.location,match:Va,history:jn,params:qn,route:Rn,routes:Yn};return Dr.useStream?oe.createElement(oe.Suspense,{fallback:oe.createElement(Dr.loadingComponent,null)},oe.createElement(Fn,Ka,Dr.hasChildren&&oe.createElement(mi.j3,null))):oe.createElement(Fn,Ka,Dr.hasChildren&&oe.createElement(mi.j3,null))}function oc(Dr){var Xr=Dr.loader;return Dr.useStream?oe.createElement(oe.Suspense,{fallback:oe.createElement(Dr.loadingComponent,null)},oe.createElement(Xr,null)):oe.createElement(Xr,null)}var Cu=null;function Al(){return Cu}function ic(Dr){var Xr=Dr.history,Rn=oe.useState({action:Xr.action,location:Xr.location}),da=(0,Ui.Z)(Rn,2),jn=da[0],Yn=da[1];return(0,oe.useLayoutEffect)(function(){return Xr.listen(Yn)},[Xr]),(0,oe.useLayoutEffect)(function(){function qn(Va){Dr.pluginManager.applyPlugins({key:"onRouteChange",type:"event",args:{routes:Dr.routes,clientRoutes:Dr.clientRoutes,location:Va.location,action:Va.action,basename:Dr.basename,isFirst:!!Va.isFirst}})}return qn({location:jn.location,action:jn.action,isFirst:!0}),Xr.listen(qn)},[Xr,Dr.routes,Dr.clientRoutes]),oe.createElement(mi.F0,{navigator:Xr,location:jn.location,basename:Dr.basename},Dr.children)}function Hi(){var Dr=(0,Eu.Ov)(),Xr=Dr.clientRoutes;return(0,mi.V$)(Xr)}var Zu=["innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","rootContainer"],sc=function(Xr,Rn){var da=Xr.basename||"/",jn=Ds({routesById:Xr.routes,routeComponents:Xr.routeComponents,loadingComponent:Xr.loadingComponent,reactRouter5Compat:Xr.reactRouter5Compat,useStream:Xr.useStream});Xr.pluginManager.applyPlugins({key:"patchClientRoutes",type:"event",args:{routes:jn}});for(var Yn=oe.createElement(ic,{basename:da,pluginManager:Xr.pluginManager,routes:Xr.routes,clientRoutes:jn,history:Xr.history},Rn),qn=0,Va=Zu;qnnew Promise((da,jn)=>{var Yn=Fn=>{try{Va(Rn.next(Fn))}catch(Ka){jn(Ka)}},qn=Fn=>{try{Va(Rn.throw(Fn))}catch(Ka){jn(Ka)}},Va=Fn=>Fn.done?da(Fn.value):Promise.resolve(Fn.value).then(Yn,qn);Va((Rn=Rn.apply(Dr,Xr)).next())});function y(){return m(this,null,function*(){return{routes:{1:{path:"/",parentId:"@@/global-layout",id:"1"},2:{path:"/paperlibrary",parentId:"1",id:"2"},3:{path:"/paperlibrary",parentId:"2",id:"3"},4:{path:"/paperlibrary/add",parentId:"2",id:"4"},5:{path:"/paperlibrary/add/:id",parentId:"2",id:"5"},6:{path:"/paperlibrary/see/:id",parentId:"2",id:"6"},7:{path:"/paperlibrary/edit_select/:id",parentId:"2",id:"7"},8:{path:"/paperlibrary/exchangequestion",parentId:"2",id:"8"},9:{path:"/paths",parentId:"1",id:"9"},10:{path:"/paths",parentId:"9",id:"10"},11:{path:"/paths/higherVocationalEducation",parentId:"9",id:"11"},12:{path:"/paths/new",parentId:"9",id:"12"},13:{path:"/paths/guidance",exact:!0,parentId:"9",id:"13"},14:{path:"/paths/:pathId",parentId:"9",id:"14"},15:{path:"/paths/:pathId/statistics",parentId:"9",id:"15"},16:{path:"/paths/:pathId/edit",parentId:"9",id:"16"},17:{path:"/paths/:pathId/:stageId/program_homework/:categoryId/add",parentId:"9",id:"17"},18:{path:"/paths/:pathId/:stageId/program_homework/:categoryId/edit",parentId:"9",id:"18"},19:{path:"/classrooms",parentId:"1",id:"19"},20:{path:"/classrooms",parentId:"19",id:"20"},21:{path:"/classrooms/examList",parentId:"19",id:"21"},22:{path:"/classrooms/classicCases",parentId:"19",id:"22"},23:{path:"/classrooms/index",parentId:"19",id:"23"},24:{path:"/classrooms/new",parentId:"19",id:"24"},25:{path:"/classrooms/:coursesId/edit",parentId:"19",id:"25"},26:{path:"/classrooms/news/:subjectid/newgold/:id",parentId:"19",id:"26"},27:{path:"/classrooms/:coursesId/newgolds/settings",parentId:"19",id:"27"},28:{path:"/classrooms/:coursesId/shixun_homework/:categoryId/review_detail/:userId",parentId:"19",id:"28"},29:{path:"/classrooms/:coursesId/common_homework/:categoryId/review_detail/:userId",parentId:"19",id:"29"},30:{path:"/classrooms/:coursesId/program_homework/:categoryId/review_detail/:userId",parentId:"19",id:"30"},31:{path:"/classrooms/:coursesId/shixun_homework/:categoryId/detail",parentId:"19",id:"31"},32:{path:"/classrooms/:coursesId/shixun_homework/:categoryId/:homeworkId/comment",parentId:"19",id:"32"},33:{path:"/classrooms/:coursesId/common_homework/:categoryId/:homeworkId/comment",parentId:"19",id:"33"},34:{path:"/classrooms/:coursesId/shixun_homework/:categoryId/:homeworkId/commitsummary",parentId:"19",id:"34"},35:{path:"/classrooms/:coursesId/group_homework/:categoryId/detail",parentId:"19",id:"35"},36:{path:"/classrooms/:coursesId/common_homework/:categoryId/detail",parentId:"19",id:"36"},37:{path:"/classrooms/:coursesId/common_homework/:categoryId/review/:userId",parentId:"19",id:"37"},38:{path:"/classrooms/:coursesId/group_homework/:commonHomeworkId/review/:userId",parentId:"19",id:"38"},39:{path:"/classrooms/:coursesId/group_homework/:commonHomeworkId/post",parentId:"19",id:"39"},40:{path:"/classrooms/:coursesId/group_homework/:commonHomeworkId/:homeworkId/edit",parentId:"19",id:"40"},41:{path:"/classrooms/:coursesId/exercise/:categoryId/detail/:userId/review_detail",parentId:"19",id:"41"},42:{path:"/classrooms/:coursesId/exercise/:categoryId/detail",parentId:"19",id:"42"},43:{path:"/classrooms/:coursesId/exercise/:categoryId/preview_select",parentId:"19",id:"43"},44:{path:"/classrooms/:coursesId/exercise/:categoryId/:login/initate_answer",parentId:"19",id:"44"},45:{path:"/classrooms/:coursesId/exercise/:categoryId/users/:login",parentId:"19",id:"45"},46:{path:"/classrooms/:coursesId/exercisenotice/:categoryId/users/:login",parentId:"19",id:"46"},47:{path:"/classrooms/:coursesId/exercise/:categoryId/random/edit",parentId:"19",id:"47"},48:{path:"/classrooms/:coursesId/exercise/:categoryId/random/preview",parentId:"19",id:"48"},49:{path:"/classrooms/:coursesId/exercise/add",parentId:"19",id:"49"},50:{path:"/classrooms/:coursesId/exercise/add/:exerciseId",parentId:"19",id:"50"},51:{path:"/classrooms/:coursesId/exercise/:exerciseId/reviews/group",parentId:"19",id:"51"},52:{path:"/classrooms/:coursesId/exercise/:exerciseId/review/:userId",parentId:"19",id:"52"},53:{path:"/classrooms/:coursesId/exercise/:exerciseId/centralizeReview/:userId",parentId:"19",id:"53"},54:{path:"/classrooms/:coursesId/exercise/:exerciseId/export_blank",parentId:"19",id:"54"},55:{path:"/classrooms/:coursesId/exercise/:exerciseId/sumup",parentId:"19",id:"55"},56:{path:"/classrooms/:coursesId/exercise/:exerciseId/sumup/edit",parentId:"19",id:"56"},57:{path:"/classrooms/:coursesId/exercise/:exerciseId/analysis/:studentId",parentId:"19",id:"57"},58:{path:"/classrooms/:coursesId/shixun_homework/:exerciseId/analysis/:studentId",parentId:"19",id:"58"},59:{path:"/classrooms/:coursesId/exercise/:exerciseId/analysis/:studentId/code",parentId:"19",id:"59"},60:{path:"/classrooms/:coursesId/shixun_homework/:exerciseId/analysis/:studentId/code",parentId:"19",id:"60"},61:{path:"/classrooms/:coursesId/graduation_topics/:categoryId/detail",parentId:"19",id:"61"},62:{path:"/classrooms/:coursesId/graduation_topics/:categoryId/add",parentId:"19",id:"62"},63:{path:"/classrooms/:coursesId/graduation_topics/:categoryId/edit",parentId:"19",id:"63"},64:{path:"/classrooms/:coursesId/graduation_tasks/:categoryId/add",parentId:"19",id:"64"},65:{path:"/classrooms/:coursesId/graduation_tasks/:categoryId/edit",parentId:"19",id:"65"},66:{path:"/classrooms/:coursesId/graduation_tasks/:categoryId/detail",parentId:"19",id:"66"},67:{path:"/classrooms/:coursesId/common_homework/:categoryId/add",parentId:"19",id:"67"},68:{path:"/classrooms/:coursesId/common_homework/:categoryId/edit",parentId:"19",id:"68"},69:{path:"/classrooms/:coursesId/common_homework/:commonHomeworkId/post",parentId:"19",id:"69"},70:{path:"/classrooms/:coursesId/common_homework/:commonHomeworkId/:homeworkId/edit",parentId:"19",id:"70"},71:{path:"/classrooms/:coursesId/group_homework/:categoryId/add",parentId:"19",id:"71"},72:{path:"/classrooms/:coursesId/group_homework/:categoryId/edit",parentId:"19",id:"72"},73:{path:"/classrooms/:coursesId/poll/:categoryId/add",parentId:"19",id:"73"},74:{path:"/classrooms/:coursesId/poll/:categoryId/edit",parentId:"19",id:"74"},75:{path:"/classrooms/:coursesId/poll/:categoryId/detail",parentId:"19",id:"75"},76:{path:"/classrooms/:coursesId/poll/:categoryId/users/:login",parentId:"19",id:"76"},77:{path:"/classrooms/:coursesId/poll/:categoryId/questionnaireInfo/:login",parentId:"19",id:"77"},78:{path:"/classrooms/:coursesId/board/:categoryId/Add",parentId:"19",id:"78"},79:{path:"/classrooms/:coursesId/board/:categoryId/Edit/:boardId",parentId:"19",id:"79"},80:{path:"/classrooms/:coursesId/board/:categoryId/Detail/:boardId",parentId:"19",id:"80"},81:{path:"/classrooms/:courseId/template/:templateId",parentId:"19",id:"81"},82:{path:"/classrooms/:courseId/common_homework/:homeworkId/lab-report/:reportId",parentId:"19",id:"82"},83:{path:"/classrooms/guidance",parentId:"19",id:"83"},84:{path:"/classrooms/:courseId/common_homework/:homeworkId/lab-report-view/:workId",parentId:"19",id:"84"},85:{path:"/classrooms/:coursesId/exercise/:categoryId/users/:login/check",parentId:"19",id:"85"},86:{path:"/classrooms/:coursesId/Studentdetail/:login",parentId:"19",id:"86"},87:{path:"/classrooms/:coursesId/StudentSituation/:categoryId/:login",parentId:"19",id:"87"},88:{path:"/classrooms/:coursesId/engineering/datail",parentId:"19",id:"88"},89:{path:"/classrooms/:coursesId/program_homework/:categoryId/add",parentId:"19",id:"89"},90:{path:"/classrooms/:coursesId/program_homework/:categoryId/edit",parentId:"19",id:"90"},91:{path:"/classrooms/:coursesId/program_homework/ranking",parentId:"19",id:"91"},92:{path:"/classrooms/:coursesId/program_homework/:categoryId/detail",parentId:"19",id:"92"},93:{path:"/classrooms/:coursesId/program_homework/:categoryId/:homeworkId/ranking",parentId:"19",id:"93"},94:{path:"/classrooms/:coursesId/program_homework/:categoryId/:homeworkId/:user_id/comment",parentId:"19",id:"94"},95:{path:"/classrooms/:coursesId/program_homework/:categoryId/answer",parentId:"19",id:"95"},96:{path:"/classrooms/:coursesId/program_homework/:categoryId/answer/add",parentId:"19",id:"96"},97:{path:"/classrooms/:coursesId/program_homework/:categoryId/answer/:answerid/edit",parentId:"19",id:"97"},98:{path:"/classrooms/:coursesId/program_homework/:categoryId/answer/:answerid/detail",parentId:"19",id:"98"},99:{path:"/classrooms/:videoId/video_info",parentId:"19",id:"99"},100:{path:"/classrooms/",parentId:"19",id:"100"},101:{path:"/classrooms/:coursesId/shixun_homework/:categoryId",parentId:"100",id:"101"},102:{path:"/classrooms/:coursesId/shixun_homework",parentId:"100",id:"102"},103:{path:"/classrooms/:coursesId/graduation_topics/:categoryId",parentId:"100",id:"103"},104:{path:"/classrooms/:coursesId/graduation_tasks/:categoryId",parentId:"100",id:"104"},105:{path:"/classrooms/:coursesId/graduation_tasks/:categoryId",parentId:"100",id:"105"},106:{path:"/classrooms/:coursesId/exercise/:categoryId",parentId:"100",id:"106"},107:{path:"/classrooms/:coursesId/exercise",parentId:"100",id:"107"},108:{path:"/classrooms/:coursesId/poll/:categoryId",parentId:"100",id:"108"},109:{path:"/classrooms/:coursesId/poll",parentId:"100",id:"109"},110:{path:"/classrooms/:coursesId/common_homework/:categoryId",parentId:"100",id:"110"},111:{path:"/classrooms/:coursesId/common_homework",parentId:"100",id:"111"},112:{path:"/classrooms/:coursesId/group_homework/:categoryId",parentId:"100",id:"112"},113:{path:"/classrooms/:coursesId/group_homework",parentId:"100",id:"113"},114:{path:"/classrooms/:coursesId/teachers",parentId:"100",id:"114"},115:{path:"/classrooms/:coursesId/students",parentId:"100",id:"115"},116:{path:"/classrooms/:coursesId/assistant",parentId:"100",id:"116"},117:{path:"/classrooms/:coursesId/program_homework",parentId:"100",id:"117"},118:{path:"/classrooms/:coursesId/program_homework/:categoryId",parentId:"100",id:"118"},119:{path:"/classrooms/:coursesId/engineering",parentId:"100",id:"119"},120:{path:"/classrooms/:coursesId/learning_path",parentId:"100",id:"120"},121:{path:"/classrooms/:coursesId/resource_recommend",parentId:"100",id:"121"},122:{path:"/classrooms/:coursesId/attendance",parentId:"100",id:"122"},123:{path:"/classrooms/:coursesId/attendance/StudetnSign",parentId:"100",id:"123"},124:{path:"/classrooms/:coursesId/attendance/:categoryId/:tabId/detail",parentId:"100",id:"124"},125:{path:"/classrooms/:coursesId/announcement",parentId:"100",id:"125"},126:{path:"/classrooms/:coursesId/announcement/:categoryId",parentId:"100",id:"126"},127:{path:"/classrooms/:coursesId/online_learning",parentId:"100",id:"127"},128:{path:"/classrooms/:coursesId/online_learning/:categoryId",parentId:"100",id:"128"},129:{path:"/classrooms/:coursesId/attachment/:categoryId",parentId:"100",id:"129"},130:{path:"/classrooms/:coursesId/attachment",parentId:"100",id:"130"},131:{path:"/classrooms/:coursesId/video",parentId:"100",id:"131"},132:{path:"/classrooms/:coursesId/video/:categoryId",parentId:"100",id:"132"},133:{path:"/classrooms/:coursesId/video/:categoryId/statistics",parentId:"100",id:"133"},134:{path:"/classrooms/:coursesId/video/:username/upload",parentId:"100",id:"134"},135:{path:"/classrooms/:coursesId/video/:categoryId/statistics/:videoId",parentId:"100",id:"135"},136:{path:"/classrooms/:coursesId/video/:categoryId/statistics/:videoId/:userId",parentId:"100",id:"136"},137:{path:"/classrooms/:coursesId/live_video/:categoryId",parentId:"100",id:"137"},138:{path:"/classrooms/:coursesId/live_video",parentId:"100",id:"138"},139:{path:"/classrooms/:coursesId/video/:categoryId/studentstatistics",parentId:"100",id:"139"},140:{path:"/classrooms/:coursesId/board/:categoryId",parentId:"100",id:"140"},141:{path:"/classrooms/:coursesId/board",parentId:"100",id:"141"},142:{path:"/classrooms/:coursesId/course_group",parentId:"100",id:"142"},143:{path:"/classrooms/:coursesId/course_group/:categoryId",parentId:"100",id:"143"},144:{path:"/classrooms/:coursesId/course_group/:categoryId/detail",parentId:"100",id:"144"},145:{path:"/classrooms/:coursesId/not_course_group/:categoryId",parentId:"100",id:"145"},146:{path:"/classrooms/:coursesId/not_course_group",parentId:"100",id:"146"},147:{path:"/classrooms/:coursesId/statistics/",parentId:"100",id:"147"},148:{path:"/classrooms/:coursesId/statistics/:categoryId",parentId:"100",id:"148"},149:{path:"/classrooms/:coursesId/statistics_video/:categoryId",parentId:"100",id:"149"},150:{path:"/classrooms/:coursesId/statistics_quality/:categoryId",parentId:"100",id:"150"},151:{path:"/classrooms/:coursesId/student_statistics/:categoryId",parentId:"100",id:"151"},152:{path:"/classrooms/:coursesId/student_statistics/:categoryId/:listId/:type",parentId:"100",id:"152"},153:{path:"/classrooms/:coursesId/video_statistics/:categoryId/Student/:studentid",parentId:"100",id:"153"},154:{path:"/classrooms/:coursesId/exportlist/:type",parentId:"100",id:"154"},155:{path:"/classrooms/:coursesId",parentId:"100",id:"155"},156:{path:"/classrooms/:coursesId/template",parentId:"100",id:"156"},157:{path:"/classrooms/:coursesId/smart_plan",parentId:"100",id:"157"},158:{path:"/classrooms/:coursesId/smart_plan/:id/info",parentId:"19",id:"158"},159:{path:"/competitions",parentId:"1",id:"159"},160:{path:"/competitions/index",parentId:"159",id:"160"},161:{path:"/competitions/:identifier/list",parentId:"159",id:"161"},162:{path:"/competitions/exports",parentId:"159",id:"162"},163:{path:"/competitions",parentId:"159",id:"163"},164:{path:"/competitions/:identifier",parentId:"159",id:"164"},165:{path:"/competitions/index/:identifier",parentId:"159",id:"165"},166:{path:"/competitions/:identifier/detail/enroll",parentId:"159",id:"166"},167:{path:"/competitions/:identifier/detail/UpdateTeanname/:Teannameid",parentId:"159",id:"167"},168:{path:"/competitions/:identifier/detail/teamDetail/:Teamid",parentId:"159",id:"168"},169:{path:"/competitions/detail/:identifier",parentId:"159",id:"169"},170:{path:"/forums",parentId:"1",id:"170"},171:{path:"/forums",parentId:"170",id:"171"},172:{path:"/forums/categories/:memoType",parentId:"170",id:"172"},173:{path:"/forums/new",parentId:"170",id:"173"},174:{path:"/forums/:memoId/edit",parentId:"170",id:"174"},175:{path:"/forums/:memoId",parentId:"170",id:"175"},176:{path:"/problemset",parentId:"1",id:"176"},177:{path:"/problemset",parentId:"176",id:"177"},178:{path:"/problemset/newitem",parentId:"176",id:"178"},179:{path:"/problemset/:type/:id",parentId:"176",id:"179"},180:{path:"/problemset/preview",parentId:"176",id:"180"},181:{path:"/problemset/preview_new",parentId:"176",id:"181"},182:{path:"/problemset/preview_select",parentId:"176",id:"182"},183:{path:"/shixuns",parentId:"1",id:"183"},184:{path:"/shixuns",parentId:"183",id:"184"},185:{path:"/shixuns/exports",parentId:"183",id:"185"},186:{path:"/shixuns/new",parentId:"183",id:"186"},187:{path:"/shixuns/new/CreateImg",parentId:"183",id:"187"},188:{path:"/shixuns/new/:id/imagepreview",parentId:"183",id:"188"},189:{path:"/shixuns/:id/Merge",parentId:"183",id:"189"},190:{path:"/shixuns/:id/Split",parentId:"183",id:"190"},191:{path:"/shixuns/:id/edit",parentId:"183",id:"191"},192:{path:"shixuns/:id/edit/warehouse",parentId:"191",id:"192"},193:{path:"/shixuns/:id/edit/newquestion",parentId:"191",id:"193"},194:{path:"/shixuns/:id/edit/:challengesId/editquestion",parentId:"191",id:"194"},195:{path:"/shixuns/:id/edit/:challengesId/editquestion/:questionId",parentId:"191",id:"195"},196:{path:"/shixuns/:id/edit/new",parentId:"191",id:"196"},197:{path:"/shixuns/:id/edit/:challengesId/editcheckpoint",parentId:"191",id:"197"},198:{path:"/shixuns/:id/edit/:challengesId/tab=2",parentId:"191",id:"198"},199:{path:"/shixuns/:id/edit/:challengesId/tab=3",parentId:"191",id:"199"},200:{path:"/shixuns/:id/edit/:challengesId/tab=4",parentId:"191",id:"200"},201:{path:"/shixuns/:id",parentId:"183",id:"201"},202:{path:"/shixuns/:id/poll",parentId:"201",id:"202"},203:{path:"/shixuns/:id/challenges",parentId:"201",id:"203"},204:{path:"/shixuns/:id/repository",parentId:"201",id:"204"},205:{path:"/shixuns/:id/secret_repository",parentId:"201",id:"205"},206:{path:"/shixuns/:id/collaborators",parentId:"201",id:"206"},207:{path:"/shixuns/:id/dataset",parentId:"201",id:"207"},208:{path:"/shixuns/:id/dataset/jupyterEdit",parentId:"201",id:"208"},209:{path:"/shixuns/:id/shixun_discuss",parentId:"201",id:"209"},210:{path:"/shixuns/:id/ranking_list",parentId:"201",id:"210"},211:{path:"/shixuns/:id/settings",parentId:"201",id:"211"},212:{path:"/shixuns/:id/repository/:repoId/commits",parentId:"201",id:"212"},213:{path:"/shixuns/:id/secret_repository/:repoId/commits",parentId:"201",id:"213"},214:{path:"/shixuns/:id/repository/upload_file",parentId:"201",id:"214"},215:{path:"/shixuns/:id/secret_repository/upload_file",parentId:"201",id:"215"},216:{path:"/shixuns/:id/repository/add_file",parentId:"201",id:"216"},217:{path:"/shixuns/:id/secret_repository/add_file",parentId:"201",id:"217"},218:{path:"/shixuns/:id/repository/master/shixun_show/:fileId",exact:!1,parentId:"201",id:"218"},219:{path:"/shixuns/:id/secret_repository/master/shixun_show/:fileId",exact:!1,parentId:"201",id:"219"},220:{path:"/shixuns/:id/audit_situation",parentId:"201",id:"220"},221:{path:"/shixuns/:id/fork_list",parentId:"201",id:"221"},222:{path:"/users",parentId:"1",id:"222"},223:{path:"/users/:username/videos/protocol",parentId:"222",id:"223"},224:{path:"/users/:username/videos/resourceProtocol",parentId:"222",id:"224"},225:{path:"/users/:username/videos/success",parentId:"222",id:"225"},226:{path:"/users/:username/topicbank/:topicstype",parentId:"222",id:"226"},227:{path:"/users/:username/topics/:topicId/:topictype/normal/detail",parentId:"222",id:"227"},228:{path:"/users/:username/topics/:topicId/:topictype/group/detail",parentId:"222",id:"228"},229:{path:"/users/:username/topics/:topicId/:topictype/normal/edit",parentId:"222",id:"229"},230:{path:"/users/:username/topics/:topicId/:topictype/group/edit",parentId:"222",id:"230"},231:{path:"/users/:username/topics/:topicId/:topictype/exercise/edit",parentId:"222",id:"231"},232:{path:"/users/:username/topics/:topicId/:topictype/exercise/detail",parentId:"222",id:"232"},233:{path:"/users/:username/topics/:topicId/:topictype/poll/edit",parentId:"222",id:"233"},234:{path:"/users/:username/topics/:topicId/:topictype/poll/detail",parentId:"222",id:"234"},235:{path:"/users/:username/experiment-img/add",parentId:"222",id:"235"},236:{path:"/users/:username",parentId:"222",id:"236"},237:{path:"/users/:username",parentId:"236",id:"237"},238:{path:"/users/:username/baseInfo/edit",parentId:"236",id:"238"},239:{path:"/users/:username/baseInfo",parentId:"236",id:"239"},240:{path:"/users/:username/realNameCertification",parentId:"236",id:"240"},241:{path:"/users/:username/careerCertification",parentId:"236",id:"241"},242:{path:"/users/:username/classrooms",parentId:"236",id:"242"},243:{path:"/users/:username/shixuns",parentId:"236",id:"243"},244:{path:"/users/:username/dataSet",parentId:"236",id:"244"},245:{path:"/users/:username/userPortrait",parentId:"236",id:"245"},246:{path:"/users/:username/learningPath",parentId:"236",id:"246"},247:{path:"/users/:username/teach-group",parentId:"236",id:"247"},248:{path:"/users/:username/competitions",parentId:"236",id:"248"},249:{path:"/users/:username/experiment-img",parentId:"236",id:"249"},250:{path:"/users/:username/experiment-img/:experid/detail",parentId:"236",id:"250"},251:{path:"/users/:username/certificate",parentId:"236",id:"251"},252:{path:"/users/:username/otherResources",parentId:"236",id:"252"},253:{path:"/users/:username/paths",parentId:"236",id:"253"},254:{path:"/users/:username/projects",parentId:"236",id:"254"},255:{path:"/users/:username/videos",parentId:"236",id:"255"},256:{path:"/users/:username/videos/upload",parentId:"236",id:"256"},257:{path:"/users/:username/topics/:topicstype",parentId:"236",id:"257"},258:{path:"/users/:username/vspaces",parentId:"236",id:"258"},259:{path:"/users/:username/resourcesCenter",parentId:"236",id:"259"},260:{path:"/users/:username/resourcesCenter/:id/detail",parentId:"236",id:"260"},261:{path:"/users/:username/resourceGuarantee",parentId:"236",id:"261"},262:{path:"/users/:username/resourceAllocation",parentId:"236",id:"262"},263:{parentId:"1",id:"263"},264:{path:"/problems",parentId:"263",id:"264"},265:{path:"/problems",parentId:"264",id:"265"},266:{path:"/problems/batchAdd",parentId:"264",id:"266"},267:{path:"/problems/newcreate",parentId:"263",id:"267"},268:{path:"/problems/newedit/:id",exact:!0,parentId:"263",id:"268"},269:{path:"/problems/:id/edit",exact:!0,parentId:"263",id:"269"},270:{path:"/problems/new",exact:!0,parentId:"263",id:"270"},271:{path:"/problems/:id/oj/:save_identifier",parentId:"263",id:"271"},272:{path:"/problems/:id/record-detail/:submitId",parentId:"263",id:"272"},273:{path:"/problems/add",parentId:"263",id:"273"},274:{path:"/problems/:id/ojedit",parentId:"263",id:"274"},275:{path:"/engineering",parentId:"1",id:"275"},276:{path:"/engineering",parentId:"275",id:"276"},277:{path:"/engineering/teacherList",parentId:"276",id:"277"},278:{path:"/engineering/studentList",parentId:"276",id:"278"},279:{path:"/engineering/training/program",parentId:"276",id:"279"},280:{path:"/engineering/training/program/add",parentId:"276",id:"280"},281:{path:"/engineering/training/program/edit",parentId:"276",id:"281"},282:{path:"/engineering/training/objectives",parentId:"276",id:"282"},283:{path:"/engineering/graduated/index",parentId:"276",id:"283"},284:{path:"/engineering/graduated/matrix",parentId:"276",id:"284"},285:{path:"/engineering/course/list",parentId:"276",id:"285"},286:{path:"/engineering/course/setting",parentId:"276",id:"286"},287:{path:"/engineering/course/matrix",parentId:"276",id:"287"},288:{path:"/engineering/navigation",parentId:"276",id:"288"},289:{path:"/engineering/evaluate/course",parentId:"276",id:"289"},290:{path:"/engineering/evaluate/course/:ec_year_id/:id",parentId:"276",id:"290"},291:{path:"/engineering/evaluate/norm",parentId:"276",id:"291"},292:{path:"/engineering/evaluate/document",parentId:"276",id:"292"},293:{path:"/engineering/evaluate/norm/:ec_year_id/:id",parentId:"276",id:"293"},294:{path:"/engineering/*",redirect:"/404",parentId:"276",id:"294"},295:{path:"/innovation",parentId:"1",id:"295"},296:{path:"/innovation/tasks/:taskId",parentId:"295",id:"296"},297:{path:"/innovation",parentId:"295",id:"297"},298:{path:"/innovation/project",parentId:"297",id:"298"},299:{path:"/innovation/dataset",parentId:"297",id:"299"},300:{path:"/innovation/mirror",parentId:"297",id:"300"},301:{path:"/innovation/my-project",parentId:"297",id:"301"},302:{path:"/innovation/my-dataset",parentId:"297",id:"302"},303:{path:"/innovation/my-mirror",parentId:"297",id:"303"},304:{path:"/innovation/project/create",parentId:"297",id:"304"},305:{path:"/innovation/project/edit/:id",parentId:"297",id:"305"},306:{path:"/innovation/project/detail/:taskId",parentId:"297",id:"306"},307:{path:"/tasks",parentId:"1",id:"307"},308:{path:"/tasks/:taskId",exact:!0,parentId:"307",id:"308"},309:{path:"/tasks/:identifier/jupyter/",exact:!0,parentId:"307",id:"309"},310:{path:"/tasks/:courseId/:homeworkId/:taskId",exact:!0,parentId:"307",id:"310"},311:{path:"/tasks/jupyter/:courseId/:homeworkId/:identifier",exact:!0,parentId:"307",id:"311"},312:{path:"/tasks/:courseId/:exerciseId/:taskId/exercise",exact:!0,parentId:"307",id:"312"},313:{path:"/myproblems",parentId:"1",id:"313"},314:{path:"/myproblems/:id/record-detail/:submitId",exact:!0,parentId:"313",id:"314"},315:{path:"/myproblems/:id",exact:!0,parentId:"313",id:"315"},316:{path:"/account",parentId:"1",id:"316"},317:{path:"/account",parentId:"316",id:"317"},318:{path:"/account/profile",parentId:"317",id:"318"},319:{path:"/account/profile/edit",parentId:"317",id:"319"},320:{path:"/account/certification",parentId:"317",id:"320"},321:{path:"/account/secure",parentId:"317",id:"321"},322:{path:"/account/binding",parentId:"317",id:"322"},323:{path:"/account/Results",parentId:"317",id:"323"},324:{path:"/ch",parentId:"1",id:"324"},325:{path:"/ch/rest/edit/:categoryId/:id",exact:!0,parentId:"324",id:"325"},326:{path:"/ch/rest/",exact:!0,parentId:"324",id:"326"},327:{path:"/ch/rest/:id",exact:!0,parentId:"324",id:"327"},328:{path:"/order",parentId:"1",id:"328"},329:{path:"/order",parentId:"328",id:"329"},330:{path:"/order/invoice",parentId:"328",id:"330"},331:{path:"/order/records",parentId:"328",id:"331"},332:{path:"/order/apply",parentId:"328",id:"332"},333:{path:"/order/view",parentId:"328",id:"333"},334:{path:"/order/:courseId/information",parentId:"328",id:"334"},335:{path:"/order/:courseId/pay",parentId:"328",id:"335"},336:{path:"/order/:orderNum/result",parentId:"328",id:"336"},337:{path:"/messages",parentId:"1",id:"337"},338:{path:"/messages/:userId/user_tidings",parentId:"337",id:"338"},339:{path:"/messages/:userId/private_messages",parentId:"337",id:"339"},340:{path:"/messages/:userId/message_detail",parentId:"337",id:"340"},341:{path:"/vtrs",parentId:"1",id:"341"},342:{path:"/vtrs/:virtual_spacesId",parentId:"341",id:"342"},343:{path:"/vtrs/:virtual_spacesId",exact:!0,parentId:"342",id:"343"},344:{path:"/vtrs/:virtual_spacesId/workplace",exact:!0,parentId:"342",id:"344"},345:{path:"/vtrs/:virtual_spacesId/experiment",parentId:"342",id:"345"},346:{path:"/vtrs/:virtual_spacesId/announcement",parentId:"342",id:"346"},347:{path:"/vtrs/:virtual_spacesId/announcement/add",parentId:"342",id:"347"},348:{path:"/vtrs/:virtual_spacesId/announcement/:id/edit",parentId:"342",id:"348"},349:{path:"/vtrs/:virtual_spacesId/announcement/:id/detail",parentId:"342",id:"349"},350:{path:"/vtrs/:virtual_spacesId/survey",parentId:"342",id:"350"},351:{path:"/vtrs/:virtual_spacesId/survey/:id/detail",parentId:"342",id:"351"},352:{path:"/vtrs/:virtual_spacesId/knowledge",parentId:"342",id:"352"},353:{path:"/vtrs/:virtual_spacesId/knowledge/add",parentId:"342",id:"353"},354:{path:"/vtrs/:virtual_spacesId/knowledge/:id/edit",parentId:"342",id:"354"},355:{path:"/vtrs/:virtual_spacesId/material",parentId:"342",id:"355"},356:{path:"/vtrs/:virtual_spacesId/material/:id/detail",parentId:"342",id:"356"},357:{path:"/vtrs/:virtual_spacesId/lesson",parentId:"342",id:"357"},358:{path:"/vtrs/:virtual_spacesId/lesson/:id/detail",parentId:"342",id:"358"},359:{path:"/vtrs/:virtual_spacesId/lesson/:id/detail/:fileid",parentId:"342",id:"359"},360:{path:"/vtrs/:virtual_spacesId/discussion",parentId:"342",id:"360"},361:{path:"/vtrs/:virtual_spacesId/discussion/:id/detail",parentId:"342",id:"361"},362:{path:"/vtrs/:virtual_spacesId/discussion/:id/detail/:fileid",parentId:"342",id:"362"},363:{path:"/vtrs/:virtual_spacesId/settings",parentId:"342",id:"363"},364:{path:"/vtrs/:virtual_spacesId/resources",parentId:"342",id:"364"},365:{path:"/vtrs/:virtual_spacesId/resources/:id/detail",parentId:"342",id:"365"},366:{path:"/vtrs/:virtual_spacesId/Plan",parentId:"342",id:"366"},367:{path:"/vtrs/:virtual_spacesId/plan/:id/detail",parentId:"342",id:"367"},368:{path:"/vtrs/:virtual_spacesId/digtal",parentId:"342",id:"368"},369:{path:"/vtrs/:virtual_spacesId/homepage",parentId:"342",id:"369"},370:{path:"/vtrs/:virtual_spacesId/*",parentId:"342",id:"370"},371:{path:"/101",parentId:"1",id:"371"},372:{path:"/101/:virtual_spacesId",parentId:"371",id:"372"},373:{path:"/101/:virtual_spacesId",exact:!0,parentId:"372",id:"373"},374:{path:"/101/:virtual_spacesId/workplace",exact:!0,parentId:"372",id:"374"},375:{path:"/101/:virtual_spacesId/experiment",parentId:"372",id:"375"},376:{path:"/101/:virtual_spacesId/announcement",parentId:"372",id:"376"},377:{path:"/101/:virtual_spacesId/announcement/add",parentId:"372",id:"377"},378:{path:"/101/:virtual_spacesId/announcement/:id/edit",parentId:"372",id:"378"},379:{path:"/101/:virtual_spacesId/announcement/:id/detail",parentId:"372",id:"379"},380:{path:"/101/:virtual_spacesId/survey",parentId:"372",id:"380"},381:{path:"/101/:virtual_spacesId/survey/:id/detail",parentId:"372",id:"381"},382:{path:"/101/:virtual_spacesId/knowledge",parentId:"372",id:"382"},383:{path:"/101/:virtual_spacesId/knowledge/add",parentId:"372",id:"383"},384:{path:"/101/:virtual_spacesId/knowledge/:id/edit",parentId:"372",id:"384"},385:{path:"/101/:virtual_spacesId/material",parentId:"372",id:"385"},386:{path:"/101/:virtual_spacesId/material/:id/detail",parentId:"372",id:"386"},387:{path:"/101/:virtual_spacesId/lesson",parentId:"372",id:"387"},388:{path:"/101/:virtual_spacesId/lesson/:id/detail",parentId:"372",id:"388"},389:{path:"/101/:virtual_spacesId/lesson/:id/detail/:fileid",parentId:"372",id:"389"},390:{path:"/101/:virtual_spacesId/discussion",parentId:"372",id:"390"},391:{path:"/101/:virtual_spacesId/discussion/:id/detail",parentId:"372",id:"391"},392:{path:"/101/:virtual_spacesId/discussion/:id/detail/:fileid",parentId:"372",id:"392"},393:{path:"/101/:virtual_spacesId/settings",parentId:"372",id:"393"},394:{path:"/101/:virtual_spacesId/resources",parentId:"372",id:"394"},395:{path:"/101/:virtual_spacesId/resources/:id/detail",parentId:"372",id:"395"},396:{path:"/101/:virtual_spacesId/Plan",parentId:"372",id:"396"},397:{path:"/101/:virtual_spacesId/plan/:id/detail",parentId:"372",id:"397"},398:{path:"/101/:virtual_spacesId/digtal",parentId:"372",id:"398"},399:{path:"/101/:virtual_spacesId/homepage",parentId:"372",id:"399"},400:{path:"/101/:virtual_spacesId/*",parentId:"372",id:"400"},401:{path:"/administration",parentId:"1",id:"401"},402:{path:"/administration",parentId:"401",id:"402"},403:{path:"/administration/college",parentId:"402",id:"403"},404:{path:"/administration/student",parentId:"402",id:"404"},405:{path:"/administration/student/:studentId/edit",parentId:"402",id:"405"},406:{path:"/administration/profession",parentId:"402",id:"406"},407:{path:"/graduations",parentId:"1",id:"407"},408:{path:"/graduations",exact:!0,parentId:"407",id:"408"},409:{path:"/graduations/:id/:moduleKey/:moduleId/review/:itemId",exact:!0,parentId:"407",id:"409"},410:{path:"/graduations/:id",parentId:"407",id:"410"},411:{path:"/graduations/:id/index",parentId:"410",id:"411"},412:{path:"/graduations/:id/topics",parentId:"410",id:"412"},413:{path:"/graduations/:id/student_selection",parentId:"410",id:"413"},414:{path:"/graduations/:id/tasks",parentId:"410",id:"414"},415:{path:"/graduations/:id/opening_report",parentId:"410",id:"415"},416:{path:"/graduations/:id/midterm_report",parentId:"410",id:"416"},417:{path:"/graduations/:id/thesis",parentId:"410",id:"417"},418:{path:"/graduations/:id/final_defense",parentId:"410",id:"418"},419:{path:"/graduations/:id/final_thesis",parentId:"410",id:"419"},420:{path:"/graduations/:id/settings",parentId:"410",id:"420"},421:{path:"/graduations/:id/teachers",parentId:"410",id:"421"},422:{path:"/graduations/:id/students",parentId:"410",id:"422"},423:{path:"/graduations/:id/archives",parentId:"410",id:"423"},424:{path:"/graduations/:id/grading_summary",parentId:"410",id:"424"},425:{path:"/dataset",parentId:"1",id:"425"},426:{path:"/dataset",exact:!0,parentId:"425",id:"426"},427:{path:"/dataset/:id/detail",exact:!0,parentId:"425",id:"427"},428:{path:"/knowledgegraph",parentId:"1",id:"428"},429:{path:"/knowledgegraph/:pathId",parentId:"428",id:"429"},430:{path:"/knowledgegraph/:pathId/abilityMap/edit/:abilityMapId",parentId:"428",id:"430"},431:{path:"/knowledgegraph/:pathId/abilityMap/detail/:abilityId",parentId:"428",id:"431"},432:{path:"/knowledgegraph/:pathId/statistics",parentId:"428",id:"432"},433:{parentId:"428",id:"433"},434:{path:"/knowledgegraph/:pathId/statistics/learningpath/:learningpathId",parentId:"433",id:"434"},435:{path:"/knowledgegraph/:pathId/statistics/learningpath/:learningpathId/detail/:detailId",parentId:"433",id:"435"},436:{path:"/miniprogram",parentId:"1",id:"436"},437:{path:"/miniprogram/courseware/study",exact:!0,parentId:"436",id:"437"},438:{path:"/educoder-demo",exact:!0,parentId:"1",id:"438"},439:{path:"/classrooms/:coursesId/smart_plan/:id/ppt_info/info",exact:!0,parentId:"1",id:"439"},440:{path:"/training",parentId:"1",id:"440"},441:{name:"\u7CBE\u57F9\u8BFE\u7A0B",path:"/training",parentId:"440",id:"441"},442:{path:"/largeScreen",exact:!0,parentId:"1",id:"442"},443:{path:"/effectivenessAnalysis/:coursesId",exact:!0,parentId:"1",id:"443"},444:{path:"/quality",parentId:"1",id:"444"},445:{name:"\u7CBE\u54C1\u8BFE\u7A0B",path:"/quality",parentId:"444",id:"445"},446:{path:"/otherlogin",exact:!0,parentId:"1",id:"446"},447:{path:"/otherloginqq",exact:!0,parentId:"1",id:"447"},448:{path:"/otherloginstart",exact:!0,parentId:"1",id:"448"},449:{path:"/pathsoverview",exact:!0,parentId:"1",id:"449"},450:{path:"/shixunsoverview",exact:!0,parentId:"1",id:"450"},451:{path:"/classroomsoverview",exact:!0,parentId:"1",id:"451"},452:{path:"/login",parentId:"1",id:"452"},453:{path:"/login",parentId:"452",id:"453"},454:{path:"/user",parentId:"1",id:"454"},455:{path:"/user/login",parentId:"454",id:"455"},456:{path:"/user/register",parentId:"454",id:"456"},457:{path:"/user/reset-password",parentId:"454",id:"457"},458:{path:"/colleges",parentId:"1",id:"458"},459:{path:"/colleges/:id/statistics",parentId:"458",id:"459"},460:{path:"/help",parentId:"1",id:"460"},461:{path:"/help/:id",parentId:"460",id:"461"},462:{path:"/video",parentId:"1",id:"462"},463:{path:"/video/:videoId",parentId:"462",id:"463"},464:{path:"/terminal",parentId:"1",id:"464"},465:{path:"/report/:taskId/:game_report_id",parentId:"1",id:"465"},466:{path:"/",parentId:"1",id:"466"},467:{path:"/",exact:!0,parentId:"466",id:"467"},468:{path:"/api/*",exact:!0,parentId:"466",id:"468"},469:{path:"/search",exact:!0,parentId:"466",id:"469"},470:{path:"/moop_cases",exact:!0,parentId:"466",id:"470"},471:{path:"/moop_cases/new",exact:!0,parentId:"466",id:"471"},472:{path:"/moop_cases/:caseId",exact:!0,parentId:"466",id:"472"},473:{path:"/moop_cases/:caseId/edit",exact:!0,parentId:"466",id:"473"},474:{path:"/moop_cases/:caseId/publish-success",exact:!0,parentId:"466",id:"474"},475:{path:"/randompaper",exact:!0,parentId:"466",id:"475"},476:{path:"/randompaper/edit/:id",exact:!0,parentId:"466",id:"476"},477:{path:"/randompaper/detail/:id",exact:!0,parentId:"466",id:"477"},478:{path:"/403",parentId:"466",id:"478"},479:{path:"/500",parentId:"466",id:"479"},480:{path:"/404",parentId:"466",id:"480"},481:{path:"/download",parentId:"466",id:"481"},482:{path:"/iwce",parentId:"466",id:"482"},483:{path:"/classrooms/:coursesId/attendance/TeacherSign",parentId:"466",id:"483"},484:{path:"/classrooms/:coursesId/attendance/:categoryId",parentId:"466",id:"484"},485:{path:"/Activities",parentId:"466",id:"485"},486:{path:"/iwce/:itemname",parentId:"466",id:"486"},487:{path:"/hpc-course",parentId:"466",id:"487"},488:{path:"/user_agents",parentId:"466",id:"488"},489:{path:"/three",parentId:"466",id:"489"},490:{path:"/introduction",parentId:"466",id:"490"},491:{path:"/chatgpt",parentId:"466",id:"491"},492:{path:"/*",parentId:"466",id:"492"},"@@/global-layout":{id:"@@/global-layout",path:"/",isLayout:!0}},routeComponents:{1:oe.lazy(()=>__webpack_require__.e(5886).then(__webpack_require__.bind(__webpack_require__,5886))),2:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),3:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(4862)]).then(__webpack_require__.bind(__webpack_require__,63041))),4:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(6804),__webpack_require__.e(3260)]).then(__webpack_require__.bind(__webpack_require__,8478))),5:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(6804),__webpack_require__.e(3260)]).then(__webpack_require__.bind(__webpack_require__,8478))),6:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(3247)]).then(__webpack_require__.bind(__webpack_require__,66415))),7:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(9886),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,94794))),8:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(9886),__webpack_require__.e(1545)]).then(__webpack_require__.bind(__webpack_require__,75066))),9:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),10:oe.lazy(()=>__webpack_require__.e(6052).then(__webpack_require__.bind(__webpack_require__,16888))),11:oe.lazy(()=>__webpack_require__.e(5572).then(__webpack_require__.bind(__webpack_require__,27945))),12:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(8982)]).then(__webpack_require__.bind(__webpack_require__,28054))),13:oe.lazy(()=>__webpack_require__.e(869).then(__webpack_require__.bind(__webpack_require__,98792))),14:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6411),__webpack_require__.e(2967),__webpack_require__.e(3332)]).then(__webpack_require__.bind(__webpack_require__,50578))),15:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(4601)]).then(__webpack_require__.bind(__webpack_require__,38239))),16:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(8982)]).then(__webpack_require__.bind(__webpack_require__,28054))),17:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(9886),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,94794))),18:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(9886),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,94794))),19:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),20:oe.lazy(()=>__webpack_require__.e(6685).then(__webpack_require__.bind(__webpack_require__,40361))),21:oe.lazy(()=>__webpack_require__.e(9921).then(__webpack_require__.bind(__webpack_require__,3623))),22:oe.lazy(()=>__webpack_require__.e(1674).then(__webpack_require__.bind(__webpack_require__,33165))),23:oe.lazy(()=>__webpack_require__.e(6685).then(__webpack_require__.bind(__webpack_require__,40361))),24:oe.lazy(()=>__webpack_require__.e(1702).then(__webpack_require__.bind(__webpack_require__,83931))),25:oe.lazy(()=>__webpack_require__.e(1702).then(__webpack_require__.bind(__webpack_require__,83931))),26:oe.lazy(()=>__webpack_require__.e(6882).then(__webpack_require__.bind(__webpack_require__,74670))),27:oe.lazy(()=>__webpack_require__.e(6882).then(__webpack_require__.bind(__webpack_require__,74670))),28:oe.lazy(()=>__webpack_require__.e(109).then(__webpack_require__.bind(__webpack_require__,74719))),29:oe.lazy(()=>__webpack_require__.e(737).then(__webpack_require__.bind(__webpack_require__,79213))),30:oe.lazy(()=>__webpack_require__.e(3391).then(__webpack_require__.bind(__webpack_require__,24997))),31:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6411),__webpack_require__.e(9974),__webpack_require__.e(3581)]).then(__webpack_require__.bind(__webpack_require__,37462))),32:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6411),__webpack_require__.e(342)]).then(__webpack_require__.bind(__webpack_require__,12383))),33:oe.lazy(()=>__webpack_require__.e(2303).then(__webpack_require__.bind(__webpack_require__,67059))),34:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(1450)]).then(__webpack_require__.bind(__webpack_require__,21871))),35:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9974),__webpack_require__.e(195)]).then(__webpack_require__.bind(__webpack_require__,52784))),36:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9974),__webpack_require__.e(3668)]).then(__webpack_require__.bind(__webpack_require__,95889))),37:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(2338)]).then(__webpack_require__.bind(__webpack_require__,57700))),38:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4662)]).then(__webpack_require__.bind(__webpack_require__,4654))),39:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(8072)]).then(__webpack_require__.bind(__webpack_require__,44180))),40:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(479)]).then(__webpack_require__.bind(__webpack_require__,69993))),41:oe.lazy(()=>__webpack_require__.e(5297).then(__webpack_require__.bind(__webpack_require__,88810))),42:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6411),__webpack_require__.e(9974),__webpack_require__.e(4164)]).then(__webpack_require__.bind(__webpack_require__,1860))),43:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(9886),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,94794))),44:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(9886),__webpack_require__.e(4889)]).then(__webpack_require__.bind(__webpack_require__,50357))),45:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(9886),__webpack_require__.e(4105)]).then(__webpack_require__.bind(__webpack_require__,72560))),46:oe.lazy(()=>__webpack_require__.e(7482).then(__webpack_require__.bind(__webpack_require__,74139))),47:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(5816)]).then(__webpack_require__.bind(__webpack_require__,43794))),48:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(337)]).then(__webpack_require__.bind(__webpack_require__,76175))),49:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(6804),__webpack_require__.e(292)]).then(__webpack_require__.bind(__webpack_require__,69082))),50:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(6804),__webpack_require__.e(292)]).then(__webpack_require__.bind(__webpack_require__,69082))),51:oe.lazy(()=>__webpack_require__.e(5992).then(__webpack_require__.bind(__webpack_require__,1464))),52:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6411),__webpack_require__.e(4653),__webpack_require__.e(9886),__webpack_require__.e(8085)]).then(__webpack_require__.bind(__webpack_require__,90732))),53:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6411),__webpack_require__.e(4653),__webpack_require__.e(9886),__webpack_require__.e(8085)]).then(__webpack_require__.bind(__webpack_require__,90732))),54:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(8431)]).then(__webpack_require__.bind(__webpack_require__,69884))),55:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(6309),__webpack_require__.e(5902)]).then(__webpack_require__.bind(__webpack_require__,17950))),56:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(6309),__webpack_require__.e(3433)]).then(__webpack_require__.bind(__webpack_require__,56954))),57:oe.lazy(()=>__webpack_require__.e(5125).then(__webpack_require__.bind(__webpack_require__,41228))),58:oe.lazy(()=>__webpack_require__.e(5125).then(__webpack_require__.bind(__webpack_require__,41228))),59:oe.lazy(()=>__webpack_require__.e(921).then(__webpack_require__.bind(__webpack_require__,17933))),60:oe.lazy(()=>__webpack_require__.e(921).then(__webpack_require__.bind(__webpack_require__,17933))),61:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(1578)]).then(__webpack_require__.bind(__webpack_require__,19116))),62:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(3317)]).then(__webpack_require__.bind(__webpack_require__,15732))),63:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(1482)]).then(__webpack_require__.bind(__webpack_require__,84625))),64:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4795)]).then(__webpack_require__.bind(__webpack_require__,89859))),65:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(26)]).then(__webpack_require__.bind(__webpack_require__,427))),66:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(8882)]).then(__webpack_require__.bind(__webpack_require__,90923))),67:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(5888)]).then(__webpack_require__.bind(__webpack_require__,60884))),68:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9715)]).then(__webpack_require__.bind(__webpack_require__,72794))),69:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(7045)]).then(__webpack_require__.bind(__webpack_require__,4549))),70:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(1211)]).then(__webpack_require__.bind(__webpack_require__,75405))),71:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(1582)]).then(__webpack_require__.bind(__webpack_require__,8993))),72:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6729)]).then(__webpack_require__.bind(__webpack_require__,79131))),73:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9695)]).then(__webpack_require__.bind(__webpack_require__,15056))),74:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(8723)]).then(__webpack_require__.bind(__webpack_require__,52796))),75:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(7622)]).then(__webpack_require__.bind(__webpack_require__,40222))),76:oe.lazy(()=>__webpack_require__.e(5148).then(__webpack_require__.bind(__webpack_require__,94453))),77:oe.lazy(()=>__webpack_require__.e(643).then(__webpack_require__.bind(__webpack_require__,59325))),78:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(3442)]).then(__webpack_require__.bind(__webpack_require__,852))),79:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(2102)]).then(__webpack_require__.bind(__webpack_require__,94884))),80:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(2425)]).then(__webpack_require__.bind(__webpack_require__,89590))),81:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(2404)]).then(__webpack_require__.bind(__webpack_require__,55964))),82:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9785)]).then(__webpack_require__.bind(__webpack_require__,4056))),83:oe.lazy(()=>__webpack_require__.e(869).then(__webpack_require__.bind(__webpack_require__,98792))),84:oe.lazy(()=>__webpack_require__.e(2819).then(__webpack_require__.bind(__webpack_require__,43928))),85:oe.lazy(()=>__webpack_require__.e(1512).then(__webpack_require__.bind(__webpack_require__,18522))),86:oe.lazy(()=>__webpack_require__.e(7395).then(__webpack_require__.bind(__webpack_require__,39306))),87:oe.lazy(()=>__webpack_require__.e(3585).then(__webpack_require__.bind(__webpack_require__,43125))),88:oe.lazy(()=>__webpack_require__.e(6963).then(__webpack_require__.bind(__webpack_require__,17203))),89:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4030)]).then(__webpack_require__.bind(__webpack_require__,65973))),90:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4030)]).then(__webpack_require__.bind(__webpack_require__,65973))),91:oe.lazy(()=>__webpack_require__.e(6127).then(__webpack_require__.bind(__webpack_require__,92435))),92:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9974),__webpack_require__.e(3951)]).then(__webpack_require__.bind(__webpack_require__,74020))),93:oe.lazy(()=>__webpack_require__.e(1048).then(__webpack_require__.bind(__webpack_require__,16286))),94:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(9886),__webpack_require__.e(2884)]).then(__webpack_require__.bind(__webpack_require__,11091))),95:oe.lazy(()=>__webpack_require__.e(4770).then(__webpack_require__.bind(__webpack_require__,30056))),96:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(2603)]).then(__webpack_require__.bind(__webpack_require__,37710))),97:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4216)]).then(__webpack_require__.bind(__webpack_require__,55818))),98:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(5319)]).then(__webpack_require__.bind(__webpack_require__,24400))),99:oe.lazy(()=>__webpack_require__.e(895).then(__webpack_require__.bind(__webpack_require__,37183))),100:oe.lazy(()=>__webpack_require__.e(3282).then(__webpack_require__.bind(__webpack_require__,43420))),101:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9974),__webpack_require__.e(7852)]).then(__webpack_require__.bind(__webpack_require__,3871))),102:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9974),__webpack_require__.e(7852)]).then(__webpack_require__.bind(__webpack_require__,3871))),103:oe.lazy(()=>__webpack_require__.e(5048).then(__webpack_require__.bind(__webpack_require__,11790))),104:oe.lazy(()=>__webpack_require__.e(1043).then(__webpack_require__.bind(__webpack_require__,65172))),105:oe.lazy(()=>__webpack_require__.e(1043).then(__webpack_require__.bind(__webpack_require__,65172))),106:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9974),__webpack_require__.e(5825)]).then(__webpack_require__.bind(__webpack_require__,8905))),107:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9974),__webpack_require__.e(5825)]).then(__webpack_require__.bind(__webpack_require__,8905))),108:oe.lazy(()=>__webpack_require__.e(3355).then(__webpack_require__.bind(__webpack_require__,95430))),109:oe.lazy(()=>__webpack_require__.e(3355).then(__webpack_require__.bind(__webpack_require__,95430))),110:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9974),__webpack_require__.e(9890)]).then(__webpack_require__.bind(__webpack_require__,97561))),111:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9974),__webpack_require__.e(9890)]).then(__webpack_require__.bind(__webpack_require__,97561))),112:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9974),__webpack_require__.e(3935)]).then(__webpack_require__.bind(__webpack_require__,95811))),113:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9974),__webpack_require__.e(3935)]).then(__webpack_require__.bind(__webpack_require__,95811))),114:oe.lazy(()=>__webpack_require__.e(8014).then(__webpack_require__.bind(__webpack_require__,17425))),115:oe.lazy(()=>__webpack_require__.e(8077).then(__webpack_require__.bind(__webpack_require__,98247))),116:oe.lazy(()=>__webpack_require__.e(3356).then(__webpack_require__.bind(__webpack_require__,49412))),117:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9974),__webpack_require__.e(6788)]).then(__webpack_require__.bind(__webpack_require__,32996))),118:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9974),__webpack_require__.e(6788)]).then(__webpack_require__.bind(__webpack_require__,32996))),119:oe.lazy(()=>__webpack_require__.e(1962).then(__webpack_require__.bind(__webpack_require__,4573))),120:oe.lazy(()=>__webpack_require__.e(4928).then(__webpack_require__.bind(__webpack_require__,66676))),121:oe.lazy(()=>__webpack_require__.e(1257).then(__webpack_require__.bind(__webpack_require__,81357))),122:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8435)]).then(__webpack_require__.bind(__webpack_require__,31481))),123:oe.lazy(()=>__webpack_require__.e(8340).then(__webpack_require__.bind(__webpack_require__,17081))),124:oe.lazy(()=>__webpack_require__.e(4093).then(__webpack_require__.bind(__webpack_require__,45243))),125:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(1265)]).then(__webpack_require__.bind(__webpack_require__,12663))),126:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(1265)]).then(__webpack_require__.bind(__webpack_require__,12663))),127:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(2967),__webpack_require__.e(8827)]).then(__webpack_require__.bind(__webpack_require__,27515))),128:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(2967),__webpack_require__.e(8827)]).then(__webpack_require__.bind(__webpack_require__,27515))),129:oe.lazy(()=>__webpack_require__.e(6758).then(__webpack_require__.bind(__webpack_require__,30535))),130:oe.lazy(()=>__webpack_require__.e(6758).then(__webpack_require__.bind(__webpack_require__,30535))),131:oe.lazy(()=>__webpack_require__.e(9332).then(__webpack_require__.bind(__webpack_require__,59954))),132:oe.lazy(()=>__webpack_require__.e(9332).then(__webpack_require__.bind(__webpack_require__,59954))),133:oe.lazy(()=>__webpack_require__.e(4217).then(__webpack_require__.bind(__webpack_require__,49957))),134:oe.lazy(()=>__webpack_require__.e(3220).then(__webpack_require__.bind(__webpack_require__,30618))),135:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(533)]).then(__webpack_require__.bind(__webpack_require__,32365))),136:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5798)]).then(__webpack_require__.bind(__webpack_require__,49100))),137:oe.lazy(()=>__webpack_require__.e(7878).then(__webpack_require__.bind(__webpack_require__,95598))),138:oe.lazy(()=>__webpack_require__.e(7878).then(__webpack_require__.bind(__webpack_require__,95598))),139:oe.lazy(()=>__webpack_require__.e(9944).then(__webpack_require__.bind(__webpack_require__,85247))),140:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(8302)]).then(__webpack_require__.bind(__webpack_require__,84314))),141:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(8302)]).then(__webpack_require__.bind(__webpack_require__,84314))),142:oe.lazy(()=>__webpack_require__.e(8634).then(__webpack_require__.bind(__webpack_require__,45780))),143:oe.lazy(()=>__webpack_require__.e(8634).then(__webpack_require__.bind(__webpack_require__,45780))),144:oe.lazy(()=>__webpack_require__.e(7922).then(__webpack_require__.bind(__webpack_require__,72229))),145:oe.lazy(()=>__webpack_require__.e(1727).then(__webpack_require__.bind(__webpack_require__,70929))),146:oe.lazy(()=>__webpack_require__.e(1727).then(__webpack_require__.bind(__webpack_require__,70929))),147:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(1427)]).then(__webpack_require__.bind(__webpack_require__,3533))),148:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(1427)]).then(__webpack_require__.bind(__webpack_require__,3533))),149:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8689)]).then(__webpack_require__.bind(__webpack_require__,73237))),150:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(7806)]).then(__webpack_require__.bind(__webpack_require__,55003))),151:oe.lazy(()=>__webpack_require__.e(8885).then(__webpack_require__.bind(__webpack_require__,35297))),152:oe.lazy(()=>__webpack_require__.e(3451).then(__webpack_require__.bind(__webpack_require__,3499))),153:oe.lazy(()=>__webpack_require__.e(9922).then(__webpack_require__.bind(__webpack_require__,59353))),154:oe.lazy(()=>__webpack_require__.e(4572).then(__webpack_require__.bind(__webpack_require__,2735))),155:oe.lazy(()=>__webpack_require__.e(4017).then(__webpack_require__.bind(__webpack_require__,63557))),156:oe.lazy(()=>__webpack_require__.e(5518).then(__webpack_require__.bind(__webpack_require__,53136))),157:oe.lazy(()=>__webpack_require__.e(5741).then(__webpack_require__.bind(__webpack_require__,51360))),158:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9572),__webpack_require__.e(8285)]).then(__webpack_require__.bind(__webpack_require__,9572))),159:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),160:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(6883)]).then(__webpack_require__.bind(__webpack_require__,1866))),161:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(6883)]).then(__webpack_require__.bind(__webpack_require__,1866))),162:oe.lazy(()=>__webpack_require__.e(4449).then(__webpack_require__.bind(__webpack_require__,33769))),163:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(6883)]).then(__webpack_require__.bind(__webpack_require__,1866))),164:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(2413),__webpack_require__.e(2570)]).then(__webpack_require__.bind(__webpack_require__,60074))),165:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(2413),__webpack_require__.e(2570)]).then(__webpack_require__.bind(__webpack_require__,60074))),166:oe.lazy(()=>__webpack_require__.e(8787).then(__webpack_require__.bind(__webpack_require__,30968))),167:oe.lazy(()=>__webpack_require__.e(5650).then(__webpack_require__.bind(__webpack_require__,60001))),168:oe.lazy(()=>__webpack_require__.e(1799).then(__webpack_require__.bind(__webpack_require__,60433))),169:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(2413),__webpack_require__.e(8797)]).then(__webpack_require__.bind(__webpack_require__,78963))),170:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),171:oe.lazy(()=>__webpack_require__.e(8639).then(__webpack_require__.bind(__webpack_require__,61612))),172:oe.lazy(()=>__webpack_require__.e(2983).then(__webpack_require__.bind(__webpack_require__,61292))),173:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4264)]).then(__webpack_require__.bind(__webpack_require__,2782))),174:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4264)]).then(__webpack_require__.bind(__webpack_require__,2782))),175:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(508)]).then(__webpack_require__.bind(__webpack_require__,85419))),176:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),177:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(9886),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,94794))),178:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(1953)]).then(__webpack_require__.bind(__webpack_require__,82617))),179:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(1953)]).then(__webpack_require__.bind(__webpack_require__,82617))),180:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(1581)]).then(__webpack_require__.bind(__webpack_require__,71806))),181:oe.lazy(()=>__webpack_require__.e(4144).then(__webpack_require__.bind(__webpack_require__,80558))),182:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(9886),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,94794))),183:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),184:oe.lazy(()=>__webpack_require__.e(8782).then(__webpack_require__.bind(__webpack_require__,34108))),185:oe.lazy(()=>__webpack_require__.e(7884).then(__webpack_require__.bind(__webpack_require__,20290))),186:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(7008)]).then(__webpack_require__.bind(__webpack_require__,88394))),187:oe.lazy(()=>__webpack_require__.e(5549).then(__webpack_require__.bind(__webpack_require__,71311))),188:oe.lazy(()=>__webpack_require__.e(9674).then(__webpack_require__.bind(__webpack_require__,94282))),189:oe.lazy(()=>__webpack_require__.e(5573).then(__webpack_require__.bind(__webpack_require__,21190))),190:oe.lazy(()=>__webpack_require__.e(2141).then(__webpack_require__.bind(__webpack_require__,78234))),191:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6411),__webpack_require__.e(278),__webpack_require__.e(6277)]).then(__webpack_require__.bind(__webpack_require__,37129))),192:oe.lazy(()=>__webpack_require__.e(6328).then(__webpack_require__.bind(__webpack_require__,86566))),193:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(7857)]).then(__webpack_require__.bind(__webpack_require__,48979))),194:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(1657)]).then(__webpack_require__.bind(__webpack_require__,20026))),195:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(1657)]).then(__webpack_require__.bind(__webpack_require__,20026))),196:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(4498)]).then(__webpack_require__.bind(__webpack_require__,84111))),197:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(4498)]).then(__webpack_require__.bind(__webpack_require__,84111))),198:oe.lazy(()=>__webpack_require__.e(9205).then(__webpack_require__.bind(__webpack_require__,70980))),199:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(1423)]).then(__webpack_require__.bind(__webpack_require__,98372))),200:oe.lazy(()=>__webpack_require__.e(7614).then(__webpack_require__.bind(__webpack_require__,89815))),201:oe.lazy(()=>__webpack_require__.e(2875).then(__webpack_require__.bind(__webpack_require__,13344))),202:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6411),__webpack_require__.e(9472)]).then(__webpack_require__.bind(__webpack_require__,55314))),203:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(9133)]).then(__webpack_require__.bind(__webpack_require__,20296))),204:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8688)]).then(__webpack_require__.bind(__webpack_require__,57546))),205:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8688)]).then(__webpack_require__.bind(__webpack_require__,57546))),206:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5470)]).then(__webpack_require__.bind(__webpack_require__,15282))),207:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(6541)]).then(__webpack_require__.bind(__webpack_require__,99192))),208:oe.lazy(()=>Promise.all([__webpack_require__.e(278),__webpack_require__.e(1475)]).then(__webpack_require__.bind(__webpack_require__,7985))),209:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6411),__webpack_require__.e(2254)]).then(__webpack_require__.bind(__webpack_require__,96418))),210:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(9408)]).then(__webpack_require__.bind(__webpack_require__,46593))),211:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6411),__webpack_require__.e(6845)]).then(__webpack_require__.bind(__webpack_require__,14959))),212:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(4884)]).then(__webpack_require__.bind(__webpack_require__,28177))),213:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(4884)]).then(__webpack_require__.bind(__webpack_require__,28177))),214:oe.lazy(()=>__webpack_require__.e(1148).then(__webpack_require__.bind(__webpack_require__,76938))),215:oe.lazy(()=>__webpack_require__.e(1148).then(__webpack_require__.bind(__webpack_require__,76938))),216:oe.lazy(()=>__webpack_require__.e(7046).then(__webpack_require__.bind(__webpack_require__,30072))),217:oe.lazy(()=>__webpack_require__.e(7046).then(__webpack_require__.bind(__webpack_require__,30072))),218:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8688)]).then(__webpack_require__.bind(__webpack_require__,57546))),219:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8688)]).then(__webpack_require__.bind(__webpack_require__,57546))),220:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5096)]).then(__webpack_require__.bind(__webpack_require__,84210))),221:oe.lazy(()=>__webpack_require__.e(9215).then(__webpack_require__.bind(__webpack_require__,43468))),222:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),223:oe.lazy(()=>__webpack_require__.e(5176).then(__webpack_require__.bind(__webpack_require__,54629))),224:oe.lazy(()=>__webpack_require__.e(6587).then(__webpack_require__.bind(__webpack_require__,70982))),225:oe.lazy(()=>__webpack_require__.e(9891).then(__webpack_require__.bind(__webpack_require__,34111))),226:oe.lazy(()=>__webpack_require__.e(8062).then(__webpack_require__.bind(__webpack_require__,51751))),227:oe.lazy(()=>__webpack_require__.e(5402).then(__webpack_require__.bind(__webpack_require__,69039))),228:oe.lazy(()=>__webpack_require__.e(5402).then(__webpack_require__.bind(__webpack_require__,69039))),229:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6820)]).then(__webpack_require__.bind(__webpack_require__,74917))),230:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(8517)]).then(__webpack_require__.bind(__webpack_require__,47400))),231:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(7043)]).then(__webpack_require__.bind(__webpack_require__,4359))),232:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(2806)]).then(__webpack_require__.bind(__webpack_require__,92511))),233:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(5043)]).then(__webpack_require__.bind(__webpack_require__,85597))),234:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(799)]).then(__webpack_require__.bind(__webpack_require__,8735))),235:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(3157)]).then(__webpack_require__.bind(__webpack_require__,47018))),236:oe.lazy(()=>__webpack_require__.e(2529).then(__webpack_require__.bind(__webpack_require__,65097))),237:oe.lazy(()=>__webpack_require__.e(6583).then(__webpack_require__.bind(__webpack_require__,48224))),238:oe.lazy(()=>__webpack_require__.e(5895).then(__webpack_require__.bind(__webpack_require__,12587))),239:oe.lazy(()=>__webpack_require__.e(6982).then(__webpack_require__.bind(__webpack_require__,30127))),240:oe.lazy(()=>__webpack_require__.e(6805).then(__webpack_require__.bind(__webpack_require__,57943))),241:oe.lazy(()=>__webpack_require__.e(1416).then(__webpack_require__.bind(__webpack_require__,79514))),242:oe.lazy(()=>__webpack_require__.e(6583).then(__webpack_require__.bind(__webpack_require__,48224))),243:oe.lazy(()=>__webpack_require__.e(8307).then(__webpack_require__.bind(__webpack_require__,15107))),244:oe.lazy(()=>__webpack_require__.e(2826).then(__webpack_require__.bind(__webpack_require__,50073))),245:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(2659)]).then(__webpack_require__.bind(__webpack_require__,84272))),246:oe.lazy(()=>__webpack_require__.e(4610).then(__webpack_require__.bind(__webpack_require__,55149))),247:oe.lazy(()=>__webpack_require__.e(9590).then(__webpack_require__.bind(__webpack_require__,59896))),248:oe.lazy(()=>__webpack_require__.e(2076).then(__webpack_require__.bind(__webpack_require__,73985))),249:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(2262),__webpack_require__.e(4849)]).then(__webpack_require__.bind(__webpack_require__,59360))),250:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(2262),__webpack_require__.e(310)]).then(__webpack_require__.bind(__webpack_require__,26098))),251:oe.lazy(()=>__webpack_require__.e(5191).then(__webpack_require__.bind(__webpack_require__,40109))),252:oe.lazy(()=>__webpack_require__.e(3496).then(__webpack_require__.bind(__webpack_require__,346))),253:oe.lazy(()=>__webpack_require__.e(5599).then(__webpack_require__.bind(__webpack_require__,5566))),254:oe.lazy(()=>__webpack_require__.e(4736).then(__webpack_require__.bind(__webpack_require__,74545))),255:oe.lazy(()=>__webpack_require__.e(2412).then(__webpack_require__.bind(__webpack_require__,56749))),256:oe.lazy(()=>__webpack_require__.e(2240).then(__webpack_require__.bind(__webpack_require__,69158))),257:oe.lazy(()=>__webpack_require__.e(265).then(__webpack_require__.bind(__webpack_require__,74930))),258:oe.lazy(()=>__webpack_require__.e(9360).then(__webpack_require__.bind(__webpack_require__,86310))),259:oe.lazy(()=>__webpack_require__.e(2396).then(__webpack_require__.bind(__webpack_require__,45956))),260:oe.lazy(()=>__webpack_require__.e(7855).then(__webpack_require__.bind(__webpack_require__,41901))),261:oe.lazy(()=>__webpack_require__.e(9507).then(__webpack_require__.bind(__webpack_require__,91370))),262:oe.lazy(()=>__webpack_require__.e(1343).then(__webpack_require__.bind(__webpack_require__,69393))),263:oe.lazy(()=>__webpack_require__.e(5886).then(__webpack_require__.bind(__webpack_require__,5886))),264:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),265:oe.lazy(()=>__webpack_require__.e(9647).then(__webpack_require__.bind(__webpack_require__,58747))),266:oe.lazy(()=>__webpack_require__.e(485).then(__webpack_require__.bind(__webpack_require__,47781))),267:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(7369),__webpack_require__.e(4741)]).then(__webpack_require__.bind(__webpack_require__,53320))),268:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(7369),__webpack_require__.e(4741)]).then(__webpack_require__.bind(__webpack_require__,53320))),269:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(7369),__webpack_require__.e(4994)]).then(__webpack_require__.bind(__webpack_require__,71547))),270:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(7369),__webpack_require__.e(4994)]).then(__webpack_require__.bind(__webpack_require__,71547))),271:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(7460)]).then(__webpack_require__.bind(__webpack_require__,31723))),272:oe.lazy(()=>__webpack_require__.e(9716).then(__webpack_require__.bind(__webpack_require__,45710))),273:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6913)]).then(__webpack_require__.bind(__webpack_require__,95480))),274:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6913)]).then(__webpack_require__.bind(__webpack_require__,95480))),275:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),276:oe.lazy(()=>__webpack_require__.e(3006).then(__webpack_require__.bind(__webpack_require__,5226))),277:oe.lazy(()=>__webpack_require__.e(2045).then(__webpack_require__.bind(__webpack_require__,65417))),278:oe.lazy(()=>__webpack_require__.e(1520).then(__webpack_require__.bind(__webpack_require__,34897))),279:oe.lazy(()=>__webpack_require__.e(9649).then(__webpack_require__.bind(__webpack_require__,3681))),280:oe.lazy(()=>__webpack_require__.e(4546).then(__webpack_require__.bind(__webpack_require__,17249))),281:oe.lazy(()=>__webpack_require__.e(5357).then(__webpack_require__.bind(__webpack_require__,18112))),282:oe.lazy(()=>__webpack_require__.e(8665).then(__webpack_require__.bind(__webpack_require__,81654))),283:oe.lazy(()=>__webpack_require__.e(3183).then(__webpack_require__.bind(__webpack_require__,75432))),284:oe.lazy(()=>__webpack_require__.e(4800).then(__webpack_require__.bind(__webpack_require__,19893))),285:oe.lazy(()=>__webpack_require__.e(9489).then(__webpack_require__.bind(__webpack_require__,88590))),286:oe.lazy(()=>__webpack_require__.e(9391).then(__webpack_require__.bind(__webpack_require__,67112))),287:oe.lazy(()=>__webpack_require__.e(5335).then(__webpack_require__.bind(__webpack_require__,23513))),288:oe.lazy(()=>__webpack_require__.e(2823).then(__webpack_require__.bind(__webpack_require__,74565))),289:oe.lazy(()=>__webpack_require__.e(4973).then(__webpack_require__.bind(__webpack_require__,20944))),290:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(6651)]).then(__webpack_require__.bind(__webpack_require__,9986))),291:oe.lazy(()=>__webpack_require__.e(6741).then(__webpack_require__.bind(__webpack_require__,23479))),292:oe.lazy(()=>__webpack_require__.e(5775).then(__webpack_require__.bind(__webpack_require__,23921))),293:oe.lazy(()=>__webpack_require__.e(2548).then(__webpack_require__.bind(__webpack_require__,95707))),294:oe.lazy(()=>__webpack_require__.e(5886).then(__webpack_require__.bind(__webpack_require__,5886))),295:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),296:oe.lazy(()=>__webpack_require__.e(6634).then(__webpack_require__.bind(__webpack_require__,84428))),297:oe.lazy(()=>__webpack_require__.e(680).then(__webpack_require__.bind(__webpack_require__,67537))),298:oe.lazy(()=>__webpack_require__.e(6366).then(__webpack_require__.bind(__webpack_require__,76342))),299:oe.lazy(()=>__webpack_require__.e(6452).then(__webpack_require__.bind(__webpack_require__,14160))),300:oe.lazy(()=>__webpack_require__.e(1070).then(__webpack_require__.bind(__webpack_require__,60971))),301:oe.lazy(()=>__webpack_require__.e(7242).then(__webpack_require__.bind(__webpack_require__,46157))),302:oe.lazy(()=>__webpack_require__.e(2707).then(__webpack_require__.bind(__webpack_require__,97236))),303:oe.lazy(()=>__webpack_require__.e(2865).then(__webpack_require__.bind(__webpack_require__,55734))),304:oe.lazy(()=>__webpack_require__.e(6784).then(__webpack_require__.bind(__webpack_require__,24096))),305:oe.lazy(()=>__webpack_require__.e(6784).then(__webpack_require__.bind(__webpack_require__,24096))),306:oe.lazy(()=>__webpack_require__.e(3141).then(__webpack_require__.bind(__webpack_require__,21618))),307:oe.lazy(()=>__webpack_require__.e(5886).then(__webpack_require__.bind(__webpack_require__,5886))),308:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6411),__webpack_require__.e(4653),__webpack_require__.e(9886),__webpack_require__.e(3665)]).then(__webpack_require__.bind(__webpack_require__,75457))),309:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(700)]).then(__webpack_require__.bind(__webpack_require__,24431))),310:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6411),__webpack_require__.e(4653),__webpack_require__.e(9886),__webpack_require__.e(3665)]).then(__webpack_require__.bind(__webpack_require__,75457))),311:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(700)]).then(__webpack_require__.bind(__webpack_require__,24431))),312:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6411),__webpack_require__.e(4653),__webpack_require__.e(9886),__webpack_require__.e(3665)]).then(__webpack_require__.bind(__webpack_require__,75457))),313:oe.lazy(()=>__webpack_require__.e(5886).then(__webpack_require__.bind(__webpack_require__,5886))),314:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(9886),__webpack_require__.e(7527)]).then(__webpack_require__.bind(__webpack_require__,92740))),315:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(9886),__webpack_require__.e(6270)]).then(__webpack_require__.bind(__webpack_require__,34587))),316:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),317:oe.lazy(()=>__webpack_require__.e(547).then(__webpack_require__.bind(__webpack_require__,68549))),318:oe.lazy(()=>__webpack_require__.e(9788).then(__webpack_require__.bind(__webpack_require__,32928))),319:oe.lazy(()=>__webpack_require__.e(576).then(__webpack_require__.bind(__webpack_require__,16059))),320:oe.lazy(()=>__webpack_require__.e(7260).then(__webpack_require__.bind(__webpack_require__,14200))),321:oe.lazy(()=>__webpack_require__.e(4520).then(__webpack_require__.bind(__webpack_require__,83386))),322:oe.lazy(()=>__webpack_require__.e(9076).then(__webpack_require__.bind(__webpack_require__,98065))),323:oe.lazy(()=>__webpack_require__.e(4514).then(__webpack_require__.bind(__webpack_require__,35038))),324:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),325:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(928)]).then(__webpack_require__.bind(__webpack_require__,77906))),326:oe.lazy(()=>__webpack_require__.e(1006).then(__webpack_require__.bind(__webpack_require__,98537))),327:oe.lazy(()=>__webpack_require__.e(1006).then(__webpack_require__.bind(__webpack_require__,98537))),328:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),329:oe.lazy(()=>__webpack_require__.e(1939).then(__webpack_require__.bind(__webpack_require__,89595))),330:oe.lazy(()=>__webpack_require__.e(556).then(__webpack_require__.bind(__webpack_require__,15612))),331:oe.lazy(()=>__webpack_require__.e(6434).then(__webpack_require__.bind(__webpack_require__,61071))),332:oe.lazy(()=>__webpack_require__.e(1880).then(__webpack_require__.bind(__webpack_require__,96965))),333:oe.lazy(()=>__webpack_require__.e(8237).then(__webpack_require__.bind(__webpack_require__,74722))),334:oe.lazy(()=>__webpack_require__.e(3447).then(__webpack_require__.bind(__webpack_require__,52935))),335:oe.lazy(()=>__webpack_require__.e(264).then(__webpack_require__.bind(__webpack_require__,38403))),336:oe.lazy(()=>__webpack_require__.e(4259).then(__webpack_require__.bind(__webpack_require__,35742))),337:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),338:oe.lazy(()=>__webpack_require__.e(4078).then(__webpack_require__.bind(__webpack_require__,5233))),339:oe.lazy(()=>__webpack_require__.e(2829).then(__webpack_require__.bind(__webpack_require__,7121))),340:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(5359)]).then(__webpack_require__.bind(__webpack_require__,86529))),341:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),342:oe.lazy(()=>__webpack_require__.e(559).then(__webpack_require__.bind(__webpack_require__,92108))),343:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(3747)]).then(__webpack_require__.bind(__webpack_require__,44779))),344:oe.lazy(()=>__webpack_require__.e(4757).then(__webpack_require__.bind(__webpack_require__,90702))),345:oe.lazy(()=>__webpack_require__.e(1783).then(__webpack_require__.bind(__webpack_require__,69029))),346:oe.lazy(()=>__webpack_require__.e(7477).then(__webpack_require__.bind(__webpack_require__,64739))),347:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9677)]).then(__webpack_require__.bind(__webpack_require__,88872))),348:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9677)]).then(__webpack_require__.bind(__webpack_require__,88872))),349:oe.lazy(()=>__webpack_require__.e(6796).then(__webpack_require__.bind(__webpack_require__,87861))),350:oe.lazy(()=>__webpack_require__.e(4504).then(__webpack_require__.bind(__webpack_require__,61084))),351:oe.lazy(()=>__webpack_require__.e(7058).then(__webpack_require__.bind(__webpack_require__,53488))),352:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(8447)]).then(__webpack_require__.bind(__webpack_require__,79803))),353:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(1045)]).then(__webpack_require__.bind(__webpack_require__,48609))),354:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(1045)]).then(__webpack_require__.bind(__webpack_require__,48609))),355:oe.lazy(()=>__webpack_require__.e(5238).then(__webpack_require__.bind(__webpack_require__,75431))),356:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4715)]).then(__webpack_require__.bind(__webpack_require__,94521))),357:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(3873)]).then(__webpack_require__.bind(__webpack_require__,90135))),358:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6069)]).then(__webpack_require__.bind(__webpack_require__,43754))),359:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6069)]).then(__webpack_require__.bind(__webpack_require__,43754))),360:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6265)]).then(__webpack_require__.bind(__webpack_require__,12308))),361:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(8563)]).then(__webpack_require__.bind(__webpack_require__,38583))),362:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(8563)]).then(__webpack_require__.bind(__webpack_require__,38583))),363:oe.lazy(()=>__webpack_require__.e(1713).then(__webpack_require__.bind(__webpack_require__,88397))),364:oe.lazy(()=>__webpack_require__.e(5891).then(__webpack_require__.bind(__webpack_require__,5090))),365:oe.lazy(()=>__webpack_require__.e(8398).then(__webpack_require__.bind(__webpack_require__,49885))),366:oe.lazy(()=>__webpack_require__.e(8241).then(__webpack_require__.bind(__webpack_require__,91663))),367:oe.lazy(()=>__webpack_require__.e(2339).then(__webpack_require__.bind(__webpack_require__,65935))),368:oe.lazy(()=>__webpack_require__.e(7589).then(__webpack_require__.bind(__webpack_require__,38997))),369:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(3747)]).then(__webpack_require__.bind(__webpack_require__,44779))),370:oe.lazy(()=>__webpack_require__.e(5705).then(__webpack_require__.bind(__webpack_require__,93568))),371:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),372:oe.lazy(()=>__webpack_require__.e(559).then(__webpack_require__.bind(__webpack_require__,92108))),373:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(3747)]).then(__webpack_require__.bind(__webpack_require__,44779))),374:oe.lazy(()=>__webpack_require__.e(4757).then(__webpack_require__.bind(__webpack_require__,90702))),375:oe.lazy(()=>__webpack_require__.e(1783).then(__webpack_require__.bind(__webpack_require__,69029))),376:oe.lazy(()=>__webpack_require__.e(7477).then(__webpack_require__.bind(__webpack_require__,64739))),377:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9677)]).then(__webpack_require__.bind(__webpack_require__,88872))),378:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9677)]).then(__webpack_require__.bind(__webpack_require__,88872))),379:oe.lazy(()=>__webpack_require__.e(6796).then(__webpack_require__.bind(__webpack_require__,87861))),380:oe.lazy(()=>__webpack_require__.e(4504).then(__webpack_require__.bind(__webpack_require__,61084))),381:oe.lazy(()=>__webpack_require__.e(7058).then(__webpack_require__.bind(__webpack_require__,53488))),382:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(8447)]).then(__webpack_require__.bind(__webpack_require__,79803))),383:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(1045)]).then(__webpack_require__.bind(__webpack_require__,48609))),384:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(1045)]).then(__webpack_require__.bind(__webpack_require__,48609))),385:oe.lazy(()=>__webpack_require__.e(5238).then(__webpack_require__.bind(__webpack_require__,75431))),386:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4715)]).then(__webpack_require__.bind(__webpack_require__,94521))),387:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(3873)]).then(__webpack_require__.bind(__webpack_require__,90135))),388:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6069)]).then(__webpack_require__.bind(__webpack_require__,43754))),389:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6069)]).then(__webpack_require__.bind(__webpack_require__,43754))),390:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6265)]).then(__webpack_require__.bind(__webpack_require__,12308))),391:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(8563)]).then(__webpack_require__.bind(__webpack_require__,38583))),392:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(8563)]).then(__webpack_require__.bind(__webpack_require__,38583))),393:oe.lazy(()=>__webpack_require__.e(1713).then(__webpack_require__.bind(__webpack_require__,88397))),394:oe.lazy(()=>__webpack_require__.e(5891).then(__webpack_require__.bind(__webpack_require__,5090))),395:oe.lazy(()=>__webpack_require__.e(8398).then(__webpack_require__.bind(__webpack_require__,49885))),396:oe.lazy(()=>__webpack_require__.e(8241).then(__webpack_require__.bind(__webpack_require__,91663))),397:oe.lazy(()=>__webpack_require__.e(2339).then(__webpack_require__.bind(__webpack_require__,65935))),398:oe.lazy(()=>__webpack_require__.e(7589).then(__webpack_require__.bind(__webpack_require__,38997))),399:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(3747)]).then(__webpack_require__.bind(__webpack_require__,44779))),400:oe.lazy(()=>__webpack_require__.e(5705).then(__webpack_require__.bind(__webpack_require__,93568))),401:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),402:oe.lazy(()=>__webpack_require__.e(4766).then(__webpack_require__.bind(__webpack_require__,41669))),403:oe.lazy(()=>__webpack_require__.e(7560).then(__webpack_require__.bind(__webpack_require__,44718))),404:oe.lazy(()=>__webpack_require__.e(6029).then(__webpack_require__.bind(__webpack_require__,69726))),405:oe.lazy(()=>__webpack_require__.e(5179).then(__webpack_require__.bind(__webpack_require__,92642))),406:oe.lazy(()=>__webpack_require__.e(4621).then(__webpack_require__.bind(__webpack_require__,13497))),407:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),408:oe.lazy(()=>__webpack_require__.e(1831).then(__webpack_require__.bind(__webpack_require__,11181))),409:oe.lazy(()=>__webpack_require__.e(2539).then(__webpack_require__.bind(__webpack_require__,61885))),410:oe.lazy(()=>__webpack_require__.e(8143).then(__webpack_require__.bind(__webpack_require__,46780))),411:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(7511),__webpack_require__.e(5624)]).then(__webpack_require__.bind(__webpack_require__,8741))),412:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(1461)]).then(__webpack_require__.bind(__webpack_require__,80096))),413:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(7511),__webpack_require__.e(4492)]).then(__webpack_require__.bind(__webpack_require__,37052))),414:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(7511),__webpack_require__.e(9416)]).then(__webpack_require__.bind(__webpack_require__,75098))),415:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(7511),__webpack_require__.e(2443)]).then(__webpack_require__.bind(__webpack_require__,62126))),416:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(7511),__webpack_require__.e(2443)]).then(__webpack_require__.bind(__webpack_require__,62126))),417:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(7511),__webpack_require__.e(2443)]).then(__webpack_require__.bind(__webpack_require__,62126))),418:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(7511),__webpack_require__.e(2443)]).then(__webpack_require__.bind(__webpack_require__,62126))),419:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(7511),__webpack_require__.e(2443)]).then(__webpack_require__.bind(__webpack_require__,62126))),420:oe.lazy(()=>__webpack_require__.e(5022).then(__webpack_require__.bind(__webpack_require__,51514))),421:oe.lazy(()=>__webpack_require__.e(6063).then(__webpack_require__.bind(__webpack_require__,71562))),422:oe.lazy(()=>__webpack_require__.e(6063).then(__webpack_require__.bind(__webpack_require__,71562))),423:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(7511),__webpack_require__.e(7545)]).then(__webpack_require__.bind(__webpack_require__,52442))),424:oe.lazy(()=>__webpack_require__.e(1253).then(__webpack_require__.bind(__webpack_require__,52337))),425:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),426:oe.lazy(()=>__webpack_require__.e(2216).then(__webpack_require__.bind(__webpack_require__,83252))),427:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(5382)]).then(__webpack_require__.bind(__webpack_require__,437))),428:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),429:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6411),__webpack_require__.e(6272),__webpack_require__.e(8823)]).then(__webpack_require__.bind(__webpack_require__,40364))),430:oe.lazy(()=>__webpack_require__.e(3685).then(__webpack_require__.bind(__webpack_require__,20623))),431:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(6272),__webpack_require__.e(2524)]).then(__webpack_require__.bind(__webpack_require__,86878))),432:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5915)]).then(__webpack_require__.bind(__webpack_require__,49627))),433:oe.lazy(()=>__webpack_require__.e(3589).then(__webpack_require__.bind(__webpack_require__,48086))),434:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(919)]).then(__webpack_require__.bind(__webpack_require__,80993))),435:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(7042)]).then(__webpack_require__.bind(__webpack_require__,93053))),436:oe.lazy(()=>__webpack_require__.e(5886).then(__webpack_require__.bind(__webpack_require__,5886))),437:oe.lazy(()=>__webpack_require__.e(3897).then(__webpack_require__.bind(__webpack_require__,57528))),438:oe.lazy(()=>__webpack_require__.e(4058).then(__webpack_require__.bind(__webpack_require__,20186))),439:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9572),__webpack_require__.e(8522)]).then(__webpack_require__.bind(__webpack_require__,2937))),440:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),441:oe.lazy(()=>__webpack_require__.e(4056).then(__webpack_require__.bind(__webpack_require__,9330))),442:oe.lazy(()=>__webpack_require__.e(9487).then(__webpack_require__.bind(__webpack_require__,91437))),443:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(1443)]).then(__webpack_require__.bind(__webpack_require__,18622))),444:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),445:oe.lazy(()=>__webpack_require__.e(532).then(__webpack_require__.bind(__webpack_require__,7370))),446:oe.lazy(()=>__webpack_require__.e(7178).then(__webpack_require__.bind(__webpack_require__,44876))),447:oe.lazy(()=>__webpack_require__.e(1660).then(__webpack_require__.bind(__webpack_require__,72281))),448:oe.lazy(()=>__webpack_require__.e(7333).then(__webpack_require__.bind(__webpack_require__,70806))),449:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(4227)]).then(__webpack_require__.bind(__webpack_require__,74247))),450:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8155)]).then(__webpack_require__.bind(__webpack_require__,94211))),451:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5186)]).then(__webpack_require__.bind(__webpack_require__,10257))),452:oe.lazy(()=>__webpack_require__.e(5786).then(__webpack_require__.bind(__webpack_require__,57694))),453:oe.lazy(()=>__webpack_require__.e(9366).then(__webpack_require__.bind(__webpack_require__,78428))),454:oe.lazy(()=>__webpack_require__.e(5786).then(__webpack_require__.bind(__webpack_require__,57694))),455:oe.lazy(()=>__webpack_require__.e(9366).then(__webpack_require__.bind(__webpack_require__,78428))),456:oe.lazy(()=>__webpack_require__.e(1470).then(__webpack_require__.bind(__webpack_require__,22138))),457:oe.lazy(()=>__webpack_require__.e(7182).then(__webpack_require__.bind(__webpack_require__,71228))),458:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),459:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(2476)]).then(__webpack_require__.bind(__webpack_require__,37204))),460:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),461:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(5729)]).then(__webpack_require__.bind(__webpack_require__,429))),462:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),463:oe.lazy(()=>__webpack_require__.e(6444).then(__webpack_require__.bind(__webpack_require__,64930))),464:oe.lazy(()=>__webpack_require__.e(5111).then(__webpack_require__.bind(__webpack_require__,43254))),465:oe.lazy(()=>__webpack_require__.e(2307).then(__webpack_require__.bind(__webpack_require__,48030))),466:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),467:oe.lazy(()=>__webpack_require__.e(8866).then(__webpack_require__.bind(__webpack_require__,48236))),468:oe.lazy(()=>__webpack_require__.e(2300).then(__webpack_require__.bind(__webpack_require__,99623))),469:oe.lazy(()=>__webpack_require__.e(2501).then(__webpack_require__.bind(__webpack_require__,21918))),470:oe.lazy(()=>__webpack_require__.e(3212).then(__webpack_require__.bind(__webpack_require__,16456))),471:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6904)]).then(__webpack_require__.bind(__webpack_require__,82154))),472:oe.lazy(()=>__webpack_require__.e(1855).then(__webpack_require__.bind(__webpack_require__,65128))),473:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6904)]).then(__webpack_require__.bind(__webpack_require__,82154))),474:oe.lazy(()=>__webpack_require__.e(1276).then(__webpack_require__.bind(__webpack_require__,28919))),475:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(5816)]).then(__webpack_require__.bind(__webpack_require__,43794))),476:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(5816)]).then(__webpack_require__.bind(__webpack_require__,43794))),477:oe.lazy(()=>__webpack_require__.e(3784).then(__webpack_require__.bind(__webpack_require__,52900))),478:oe.lazy(()=>__webpack_require__.e(3862).then(__webpack_require__.bind(__webpack_require__,50885))),479:oe.lazy(()=>__webpack_require__.e(4565).then(__webpack_require__.bind(__webpack_require__,85039))),480:oe.lazy(()=>__webpack_require__.e(6531).then(__webpack_require__.bind(__webpack_require__,4747))),481:oe.lazy(()=>__webpack_require__.e(6170).then(__webpack_require__.bind(__webpack_require__,57849))),482:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4496)]).then(__webpack_require__.bind(__webpack_require__,62459))),483:oe.lazy(()=>__webpack_require__.e(1836).then(__webpack_require__.bind(__webpack_require__,13893))),484:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8435)]).then(__webpack_require__.bind(__webpack_require__,31481))),485:oe.lazy(()=>__webpack_require__.e(3509).then(__webpack_require__.bind(__webpack_require__,36634))),486:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4496)]).then(__webpack_require__.bind(__webpack_require__,62459))),487:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4496)]).then(__webpack_require__.bind(__webpack_require__,62459))),488:oe.lazy(()=>__webpack_require__.e(6034).then(__webpack_require__.bind(__webpack_require__,89693))),489:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(8999)]).then(__webpack_require__.bind(__webpack_require__,57265))),490:oe.lazy(()=>__webpack_require__.e(3910).then(__webpack_require__.bind(__webpack_require__,61516))),491:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(67)]).then(__webpack_require__.bind(__webpack_require__,19373))),492:oe.lazy(()=>__webpack_require__.e(6531).then(__webpack_require__.bind(__webpack_require__,4747))),"@@/global-layout":oe.lazy(()=>__webpack_require__.e(1717).then(__webpack_require__.bind(__webpack_require__,59125)))}}})}var x=__webpack_require__(5085),U=__webpack_require__(37989),ie=__webpack_require__(71418),pr=__webpack_require__(26278),gr=()=>oe.createElement(ie.Z,{size:"middle",className:pr.Z.loading}),vn=__webpack_require__(89070),ln=__webpack_require__(61186),jr=__webpack_require__.n(ln),ro=__webpack_require__(91392),Lo=__webpack_require__.n(ro),Jn=__webpack_require__(34749),Uo=__webpack_require__.n(Jn),ri=__webpack_require__(19277),Ou=__webpack_require__.n(ri),xo=__webpack_require__(10238),Oc=__webpack_require__.n(xo),Ic=__webpack_require__(33656),uc=__webpack_require__.n(Ic),Ac=__webpack_require__(90111),Rs=__webpack_require__.n(Ac),xn=__webpack_require__(74959),Tc=__webpack_require__.n(xn),kc=__webpack_require__(23250),sa=__webpack_require__.n(kc),ao=__webpack_require__(58862),Ms=__webpack_require__.n(ao),Iu=__webpack_require__(58319),Dc=__webpack_require__.n(Iu),Tl=__webpack_require__(62053),iu=__webpack_require__.n(Tl),su=__webpack_require__(47477),ul=__webpack_require__.n(su),Rc=__webpack_require__(59717),uu=__webpack_require__.n(Rc);jr().extend(Uo()),jr().extend(Ou()),jr().extend(Oc()),jr().extend(uc()),jr().extend(Rs()),jr().extend(Tc()),jr().extend(sa()),jr().extend(Ms()),jr().extend(Dc()),jr().extend(iu()),jr().extend(ul()),jr().extend(uu()),jr().extend(Lo());var cl=Object.defineProperty,cc=Object.getOwnPropertySymbols,ll=Object.prototype.hasOwnProperty,Di=Object.prototype.propertyIsEnumerable,Ls=(Dr,Xr,Rn)=>Xr in Dr?cl(Dr,Xr,{enumerable:!0,configurable:!0,writable:!0,value:Rn}):Dr[Xr]=Rn,Au=(Dr,Xr)=>{for(var Rn in Xr||(Xr={}))ll.call(Xr,Rn)&&Ls(Dr,Rn,Xr[Rn]);if(cc)for(var Rn of cc(Xr))Di.call(Xr,Rn)&&Ls(Dr,Rn,Xr[Rn]);return Dr},lc=(Dr,Xr,Rn)=>new Promise((da,jn)=>{var Yn=Fn=>{try{Va(Rn.next(Fn))}catch(Ka){jn(Ka)}},qn=Fn=>{try{Va(Rn.throw(Fn))}catch(Ka){jn(Ka)}},Va=Fn=>Fn.done?da(Fn.value):Promise.resolve(Fn.value).then(Yn,qn);Va((Rn=Rn.apply(Dr,Xr)).next())});const Gi="https://www-cdn.educoder.net/",dc=!1;function Tu(){return lc(this,null,function*(){const Dr=(0,x.gD)(),{routes:Xr,routeComponents:Rn}=yield y(Dr);yield Dr.applyPlugins({key:"patchRoutes",type:vn.ApplyPluginsType.event,args:{routes:Xr,routeComponents:Rn}});const da=Dr.applyPlugins({key:"modifyContextOpts",type:vn.ApplyPluginsType.modify,initialValue:{}}),jn=da.basename||"/",Yn=da.historyType||"browser",qn=(0,U.fi)(Au({type:Yn,basename:jn},da.historyOpts));return Dr.applyPlugins({key:"render",type:vn.ApplyPluginsType.compose,initialValue(){const Va={useStream:!0,routes:Xr,routeComponents:Rn,pluginManager:Dr,mountElementId:"root",rootElement:da.rootElement||document.getElementById("root"),loadingComponent:gr,publicPath:Gi,runtimePublicPath:dc,history:qn,historyType:Yn,basename:jn,__INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{pureApp:!1,pureHtml:!1},callback:da.callback},Fn=Dr.applyPlugins({key:"modifyClientRenderOpts",type:vn.ApplyPluginsType.modify,initialValue:Va});return sl(Fn)}})()})}Tu(),typeof window!="undefined"&&(window.g_umi={version:"4.4.6"})})()})(); +(`+f+": "+g+")",u.name="ChunkLoadError",u.type=f,u.request=g,n[1](u)}};__webpack_require__.l(s,c,"chunk-"+t,t)}};var d=function(t,r){var n=r[0],o=r[1],s=r[2],u,c,a=0;if(n.some(function(g){return i[g]!==0})){for(u in o)__webpack_require__.o(o,u)&&(__webpack_require__.m[u]=o[u]);if(s)var f=s(__webpack_require__)}for(t&&t(r);a0&&arguments[0]!==void 0?arguments[0]:"";return Dr.endsWith("/")?Dr:"".concat(Dr,"/")}var tc=__webpack_require__(38127),Su=__webpack_require__(38329),ru=__webpack_require__(8616),nu=["content"],Wi=["content"],ki=/^(http:|https:)?\/\//;function rc(Dr){return ki.test(Dr)||Dr.startsWith("/")&&!Dr.startsWith("/*")||Dr.startsWith("./")||Dr.startsWith("../")}var Bu=function(){return oe.createElement("noscript",{dangerouslySetInnerHTML:{__html:"Enable JavaScript to run this app."}})},au=function(Xr){var Rn,da=Xr.loaderData,jn=Xr.htmlPageOpts,Yn=Xr.manifest,qn=(Yn==null||(Rn=Yn.assets)===null||Rn===void 0?void 0:Rn["umi.css"])||"";return oe.createElement("script",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:"window.__UMI_LOADER_DATA__ = ".concat(JSON.stringify(da||{}),"; window.__UMI_METADATA_LOADER_DATA__ = ").concat(JSON.stringify(jn||{}),"; window.__UMI_BUILD_ClIENT_CSS__ = '").concat(qn,"'")}})};function as(Dr){var Xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof Dr=="string")return rc(Dr)?(0,Vo.Z)({src:Dr},Xr):{content:Dr};if((0,ru.Z)(Dr)==="object")return(0,Vo.Z)((0,Vo.Z)({},Dr),Xr);throw new Error("Invalid script type: ".concat((0,ru.Z)(Dr)))}function wi(Dr){return rc(Dr)?{type:"link",href:Dr}:{type:"style",content:Dr}}var al=function(Xr){var Rn,da,jn,Yn,qn,Va,Fn=Xr.htmlPageOpts;return oe.createElement(oe.Fragment,null,(Fn==null?void 0:Fn.title)&&oe.createElement("title",null,Fn.title),Fn==null||(Rn=Fn.favicons)===null||Rn===void 0?void 0:Rn.map(function(Ka,_s){return oe.createElement("link",{key:_s,rel:"shortcut icon",href:Ka})}),(Fn==null?void 0:Fn.description)&&oe.createElement("meta",{name:"description",content:Fn.description}),(Fn==null||(da=Fn.keywords)===null||da===void 0?void 0:da.length)&&oe.createElement("meta",{name:"keywords",content:Fn.keywords.join(",")}),Fn==null||(jn=Fn.metas)===null||jn===void 0?void 0:jn.map(function(Ka){return oe.createElement("meta",{key:Ka.name,name:Ka.name,content:Ka.content})}),Fn==null||(Yn=Fn.links)===null||Yn===void 0?void 0:Yn.map(function(Ka,_s){return oe.createElement("link",(0,Su.Z)({key:_s},Ka))}),Fn==null||(qn=Fn.styles)===null||qn===void 0?void 0:qn.map(function(Ka,_s){var vs=wi(Ka),$s=vs.type,js=vs.href,cu=vs.content;if($s==="link")return oe.createElement("link",{key:_s,rel:"stylesheet",href:js});if($s==="style")return oe.createElement("style",{key:_s},cu)}),Fn==null||(Va=Fn.headScripts)===null||Va===void 0?void 0:Va.map(function(Ka,_s){var vs=as(Ka),$s=vs.content,js=(0,tc.Z)(vs,nu);return oe.createElement("script",(0,Su.Z)({dangerouslySetInnerHTML:{__html:$s},key:_s},js))}))};function Nu(Dr){var Xr,Rn=Dr.children,da=Dr.loaderData,jn=Dr.manifest,Yn=Dr.htmlPageOpts,qn=Dr.__INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Va=Dr.mountElementId;if(qn!=null&&qn.pureHtml)return oe.createElement("html",null,oe.createElement("head",null),oe.createElement("body",null,oe.createElement(Bu,null),oe.createElement("div",{id:Va},Rn),oe.createElement(au,{manifest:jn,loaderData:da,htmlPageOpts:Yn})));if(qn!=null&&qn.pureApp)return oe.createElement(oe.Fragment,null,Rn);var Fn=typeof window=="undefined"?jn==null?void 0:jn.assets["umi.css"]:window.__UMI_BUILD_ClIENT_CSS__;return oe.createElement("html",{suppressHydrationWarning:!0,lang:(Yn==null?void 0:Yn.lang)||"en"},oe.createElement("head",null,oe.createElement("meta",{charSet:"utf-8"}),oe.createElement("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),Fn&&oe.createElement("link",{suppressHydrationWarning:!0,rel:"stylesheet",href:Fn}),oe.createElement(al,{htmlPageOpts:Yn})),oe.createElement("body",null,oe.createElement(Bu,null),oe.createElement("div",{id:Va},Rn),oe.createElement(au,{manifest:jn,loaderData:da,htmlPageOpts:Yn}),Yn==null||(Xr=Yn.scripts)===null||Xr===void 0?void 0:Xr.map(function(Ka,_s){var vs=as(Ka),$s=vs.content,js=(0,tc.Z)(vs,Wi);return oe.createElement("script",(0,Su.Z)({dangerouslySetInnerHTML:{__html:$s},key:_s},js))})))}var ou=oe.createContext(void 0);function ol(){return oe.useContext(ou)}var Pu=["redirect"];function Ds(Dr){var Xr=Dr.routesById,Rn=Dr.parentId,da=Dr.routeComponents,jn=Dr.useStream,Yn=jn===void 0?!0:jn;return Object.keys(Xr).filter(function(qn){return Xr[qn].parentId===Rn}).map(function(qn){var Va=il((0,Vo.Z)((0,Vo.Z)({route:Xr[qn],routeComponent:da[qn],loadingComponent:Dr.loadingComponent,reactRouter5Compat:Dr.reactRouter5Compat},Dr.reactRouter5Compat&&{hasChildren:Object.keys(Xr).filter(function(Ka){return Xr[Ka].parentId===qn}).length>0}),{},{useStream:Yn})),Fn=Ds({routesById:Xr,routeComponents:da,parentId:Va.id,loadingComponent:Dr.loadingComponent,reactRouter5Compat:Dr.reactRouter5Compat,useStream:Yn});return Fn.length>0&&(Va.children=Fn,Va.routes=Fn),Va})}function Cc(Dr){var Xr=(0,mi.UO)(),Rn=(0,mi.Gn)(Dr.to,Xr),da=(0,Eu.T$)(),jn=(0,mi.TH)();if(da!=null&&da.keepQuery){var Yn=jn.search+jn.hash;Rn+=Yn}var qn=(0,Vo.Z)((0,Vo.Z)({},Dr),{},{to:Rn});return oe.createElement(mi.Fg,(0,Su.Z)({replace:!0},qn))}function il(Dr){var Xr=Dr.route,Rn=Dr.useStream,da=Rn===void 0?!0:Rn,jn=Xr.redirect,Yn=(0,tc.Z)(Xr,Pu),qn=Dr.reactRouter5Compat?ac:oc;return(0,Vo.Z)({element:jn?oe.createElement(Cc,{to:jn}):oe.createElement(ou.Provider,{value:{route:Dr.route}},oe.createElement(qn,{loader:oe.memo(Dr.routeComponent),loadingComponent:Dr.loadingComponent||nc,hasChildren:Dr.hasChildren,useStream:da}))},Yn)}function nc(){return oe.createElement("div",null)}function ac(Dr){var Xr=ol(),Rn=Xr.route,da=(0,Eu.Ov)(),jn=da.history,Yn=da.clientRoutes,qn=(0,mi.UO)(),Va={params:qn,isExact:!0,path:Rn.path,url:jn.location.pathname},Fn=Dr.loader,Ka={location:jn.location,match:Va,history:jn,params:qn,route:Rn,routes:Yn};return Dr.useStream?oe.createElement(oe.Suspense,{fallback:oe.createElement(Dr.loadingComponent,null)},oe.createElement(Fn,Ka,Dr.hasChildren&&oe.createElement(mi.j3,null))):oe.createElement(Fn,Ka,Dr.hasChildren&&oe.createElement(mi.j3,null))}function oc(Dr){var Xr=Dr.loader;return Dr.useStream?oe.createElement(oe.Suspense,{fallback:oe.createElement(Dr.loadingComponent,null)},oe.createElement(Xr,null)):oe.createElement(Xr,null)}var Cu=null;function Al(){return Cu}function ic(Dr){var Xr=Dr.history,Rn=oe.useState({action:Xr.action,location:Xr.location}),da=(0,Ui.Z)(Rn,2),jn=da[0],Yn=da[1];return(0,oe.useLayoutEffect)(function(){return Xr.listen(Yn)},[Xr]),(0,oe.useLayoutEffect)(function(){function qn(Va){Dr.pluginManager.applyPlugins({key:"onRouteChange",type:"event",args:{routes:Dr.routes,clientRoutes:Dr.clientRoutes,location:Va.location,action:Va.action,basename:Dr.basename,isFirst:!!Va.isFirst}})}return qn({location:jn.location,action:jn.action,isFirst:!0}),Xr.listen(qn)},[Xr,Dr.routes,Dr.clientRoutes]),oe.createElement(mi.F0,{navigator:Xr,location:jn.location,basename:Dr.basename},Dr.children)}function Hi(){var Dr=(0,Eu.Ov)(),Xr=Dr.clientRoutes;return(0,mi.V$)(Xr)}var Zu=["innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","rootContainer"],sc=function(Xr,Rn){var da=Xr.basename||"/",jn=Ds({routesById:Xr.routes,routeComponents:Xr.routeComponents,loadingComponent:Xr.loadingComponent,reactRouter5Compat:Xr.reactRouter5Compat,useStream:Xr.useStream});Xr.pluginManager.applyPlugins({key:"patchClientRoutes",type:"event",args:{routes:jn}});for(var Yn=oe.createElement(ic,{basename:da,pluginManager:Xr.pluginManager,routes:Xr.routes,clientRoutes:jn,history:Xr.history},Rn),qn=0,Va=Zu;qnnew Promise((da,jn)=>{var Yn=Fn=>{try{Va(Rn.next(Fn))}catch(Ka){jn(Ka)}},qn=Fn=>{try{Va(Rn.throw(Fn))}catch(Ka){jn(Ka)}},Va=Fn=>Fn.done?da(Fn.value):Promise.resolve(Fn.value).then(Yn,qn);Va((Rn=Rn.apply(Dr,Xr)).next())});function y(){return m(this,null,function*(){return{routes:{1:{path:"/",parentId:"@@/global-layout",id:"1"},2:{path:"/paperlibrary",parentId:"1",id:"2"},3:{path:"/paperlibrary",parentId:"2",id:"3"},4:{path:"/paperlibrary/add",parentId:"2",id:"4"},5:{path:"/paperlibrary/add/:id",parentId:"2",id:"5"},6:{path:"/paperlibrary/see/:id",parentId:"2",id:"6"},7:{path:"/paperlibrary/edit_select/:id",parentId:"2",id:"7"},8:{path:"/paperlibrary/exchangequestion",parentId:"2",id:"8"},9:{path:"/paths",parentId:"1",id:"9"},10:{path:"/paths",parentId:"9",id:"10"},11:{path:"/paths/higherVocationalEducation",parentId:"9",id:"11"},12:{path:"/paths/new",parentId:"9",id:"12"},13:{path:"/paths/guidance",exact:!0,parentId:"9",id:"13"},14:{path:"/paths/:pathId",parentId:"9",id:"14"},15:{path:"/paths/:pathId/statistics",parentId:"9",id:"15"},16:{path:"/paths/:pathId/edit",parentId:"9",id:"16"},17:{path:"/paths/:pathId/:stageId/program_homework/:categoryId/add",parentId:"9",id:"17"},18:{path:"/paths/:pathId/:stageId/program_homework/:categoryId/edit",parentId:"9",id:"18"},19:{path:"/classrooms",parentId:"1",id:"19"},20:{path:"/classrooms",parentId:"19",id:"20"},21:{path:"/classrooms/examList",parentId:"19",id:"21"},22:{path:"/classrooms/classicCases",parentId:"19",id:"22"},23:{path:"/classrooms/index",parentId:"19",id:"23"},24:{path:"/classrooms/new",parentId:"19",id:"24"},25:{path:"/classrooms/:coursesId/edit",parentId:"19",id:"25"},26:{path:"/classrooms/news/:subjectid/newgold/:id",parentId:"19",id:"26"},27:{path:"/classrooms/:coursesId/newgolds/settings",parentId:"19",id:"27"},28:{path:"/classrooms/:coursesId/shixun_homework/:categoryId/review_detail/:userId",parentId:"19",id:"28"},29:{path:"/classrooms/:coursesId/common_homework/:categoryId/review_detail/:userId",parentId:"19",id:"29"},30:{path:"/classrooms/:coursesId/program_homework/:categoryId/review_detail/:userId",parentId:"19",id:"30"},31:{path:"/classrooms/:coursesId/shixun_homework/:categoryId/detail",parentId:"19",id:"31"},32:{path:"/classrooms/:coursesId/shixun_homework/:categoryId/:homeworkId/comment",parentId:"19",id:"32"},33:{path:"/classrooms/:coursesId/common_homework/:categoryId/:homeworkId/comment",parentId:"19",id:"33"},34:{path:"/classrooms/:coursesId/shixun_homework/:categoryId/:homeworkId/commitsummary",parentId:"19",id:"34"},35:{path:"/classrooms/:coursesId/group_homework/:categoryId/detail",parentId:"19",id:"35"},36:{path:"/classrooms/:coursesId/common_homework/:categoryId/detail",parentId:"19",id:"36"},37:{path:"/classrooms/:coursesId/common_homework/:categoryId/review/:userId",parentId:"19",id:"37"},38:{path:"/classrooms/:coursesId/group_homework/:commonHomeworkId/review/:userId",parentId:"19",id:"38"},39:{path:"/classrooms/:coursesId/group_homework/:commonHomeworkId/post",parentId:"19",id:"39"},40:{path:"/classrooms/:coursesId/group_homework/:commonHomeworkId/:homeworkId/edit",parentId:"19",id:"40"},41:{path:"/classrooms/:coursesId/exercise/:categoryId/detail/:userId/review_detail",parentId:"19",id:"41"},42:{path:"/classrooms/:coursesId/exercise/:categoryId/detail",parentId:"19",id:"42"},43:{path:"/classrooms/:coursesId/exercise/:categoryId/preview_select",parentId:"19",id:"43"},44:{path:"/classrooms/:coursesId/exercise/:categoryId/:login/initate_answer",parentId:"19",id:"44"},45:{path:"/classrooms/:coursesId/exercise/:categoryId/users/:login",parentId:"19",id:"45"},46:{path:"/classrooms/:coursesId/exercisenotice/:categoryId/users/:login",parentId:"19",id:"46"},47:{path:"/classrooms/:coursesId/exercise/:categoryId/random/edit",parentId:"19",id:"47"},48:{path:"/classrooms/:coursesId/exercise/:categoryId/random/preview",parentId:"19",id:"48"},49:{path:"/classrooms/:coursesId/exercise/add",parentId:"19",id:"49"},50:{path:"/classrooms/:coursesId/exercise/add/:exerciseId",parentId:"19",id:"50"},51:{path:"/classrooms/:coursesId/exercise/:exerciseId/reviews/group",parentId:"19",id:"51"},52:{path:"/classrooms/:coursesId/exercise/:exerciseId/review/:userId",parentId:"19",id:"52"},53:{path:"/classrooms/:coursesId/exercise/:exerciseId/centralizeReview/:userId",parentId:"19",id:"53"},54:{path:"/classrooms/:coursesId/exercise/:exerciseId/export_blank",parentId:"19",id:"54"},55:{path:"/classrooms/:coursesId/exercise/:exerciseId/sumup",parentId:"19",id:"55"},56:{path:"/classrooms/:coursesId/exercise/:exerciseId/sumup/edit",parentId:"19",id:"56"},57:{path:"/classrooms/:coursesId/exercise/:exerciseId/analysis/:studentId",parentId:"19",id:"57"},58:{path:"/classrooms/:coursesId/shixun_homework/:exerciseId/analysis/:studentId",parentId:"19",id:"58"},59:{path:"/classrooms/:coursesId/exercise/:exerciseId/analysis/:studentId/code",parentId:"19",id:"59"},60:{path:"/classrooms/:coursesId/shixun_homework/:exerciseId/analysis/:studentId/code",parentId:"19",id:"60"},61:{path:"/classrooms/:coursesId/graduation_topics/:categoryId/detail",parentId:"19",id:"61"},62:{path:"/classrooms/:coursesId/graduation_topics/:categoryId/add",parentId:"19",id:"62"},63:{path:"/classrooms/:coursesId/graduation_topics/:categoryId/edit",parentId:"19",id:"63"},64:{path:"/classrooms/:coursesId/graduation_tasks/:categoryId/add",parentId:"19",id:"64"},65:{path:"/classrooms/:coursesId/graduation_tasks/:categoryId/edit",parentId:"19",id:"65"},66:{path:"/classrooms/:coursesId/graduation_tasks/:categoryId/detail",parentId:"19",id:"66"},67:{path:"/classrooms/:coursesId/common_homework/:categoryId/add",parentId:"19",id:"67"},68:{path:"/classrooms/:coursesId/common_homework/:categoryId/edit",parentId:"19",id:"68"},69:{path:"/classrooms/:coursesId/common_homework/:commonHomeworkId/post",parentId:"19",id:"69"},70:{path:"/classrooms/:coursesId/common_homework/:commonHomeworkId/:homeworkId/edit",parentId:"19",id:"70"},71:{path:"/classrooms/:coursesId/group_homework/:categoryId/add",parentId:"19",id:"71"},72:{path:"/classrooms/:coursesId/group_homework/:categoryId/edit",parentId:"19",id:"72"},73:{path:"/classrooms/:coursesId/poll/:categoryId/add",parentId:"19",id:"73"},74:{path:"/classrooms/:coursesId/poll/:categoryId/edit",parentId:"19",id:"74"},75:{path:"/classrooms/:coursesId/poll/:categoryId/detail",parentId:"19",id:"75"},76:{path:"/classrooms/:coursesId/poll/:categoryId/users/:login",parentId:"19",id:"76"},77:{path:"/classrooms/:coursesId/poll/:categoryId/questionnaireInfo/:login",parentId:"19",id:"77"},78:{path:"/classrooms/:coursesId/board/:categoryId/Add",parentId:"19",id:"78"},79:{path:"/classrooms/:coursesId/board/:categoryId/Edit/:boardId",parentId:"19",id:"79"},80:{path:"/classrooms/:coursesId/board/:categoryId/Detail/:boardId",parentId:"19",id:"80"},81:{path:"/classrooms/:courseId/template/:templateId",parentId:"19",id:"81"},82:{path:"/classrooms/:courseId/common_homework/:homeworkId/lab-report/:reportId",parentId:"19",id:"82"},83:{path:"/classrooms/guidance",parentId:"19",id:"83"},84:{path:"/classrooms/:courseId/common_homework/:homeworkId/lab-report-view/:workId",parentId:"19",id:"84"},85:{path:"/classrooms/:coursesId/exercise/:categoryId/users/:login/check",parentId:"19",id:"85"},86:{path:"/classrooms/:coursesId/Studentdetail/:login",parentId:"19",id:"86"},87:{path:"/classrooms/:coursesId/StudentSituation/:categoryId/:login",parentId:"19",id:"87"},88:{path:"/classrooms/:coursesId/engineering/datail",parentId:"19",id:"88"},89:{path:"/classrooms/:coursesId/program_homework/:categoryId/add",parentId:"19",id:"89"},90:{path:"/classrooms/:coursesId/program_homework/:categoryId/edit",parentId:"19",id:"90"},91:{path:"/classrooms/:coursesId/program_homework/ranking",parentId:"19",id:"91"},92:{path:"/classrooms/:coursesId/program_homework/:categoryId/detail",parentId:"19",id:"92"},93:{path:"/classrooms/:coursesId/program_homework/:categoryId/:homeworkId/ranking",parentId:"19",id:"93"},94:{path:"/classrooms/:coursesId/program_homework/:categoryId/:homeworkId/:user_id/comment",parentId:"19",id:"94"},95:{path:"/classrooms/:coursesId/program_homework/:categoryId/answer",parentId:"19",id:"95"},96:{path:"/classrooms/:coursesId/program_homework/:categoryId/answer/add",parentId:"19",id:"96"},97:{path:"/classrooms/:coursesId/program_homework/:categoryId/answer/:answerid/edit",parentId:"19",id:"97"},98:{path:"/classrooms/:coursesId/program_homework/:categoryId/answer/:answerid/detail",parentId:"19",id:"98"},99:{path:"/classrooms/:videoId/video_info",parentId:"19",id:"99"},100:{path:"/classrooms/",parentId:"19",id:"100"},101:{path:"/classrooms/:coursesId/shixun_homework/:categoryId",parentId:"100",id:"101"},102:{path:"/classrooms/:coursesId/shixun_homework",parentId:"100",id:"102"},103:{path:"/classrooms/:coursesId/graduation_topics/:categoryId",parentId:"100",id:"103"},104:{path:"/classrooms/:coursesId/graduation_tasks/:categoryId",parentId:"100",id:"104"},105:{path:"/classrooms/:coursesId/graduation_tasks/:categoryId",parentId:"100",id:"105"},106:{path:"/classrooms/:coursesId/exercise/:categoryId",parentId:"100",id:"106"},107:{path:"/classrooms/:coursesId/exercise",parentId:"100",id:"107"},108:{path:"/classrooms/:coursesId/poll/:categoryId",parentId:"100",id:"108"},109:{path:"/classrooms/:coursesId/poll",parentId:"100",id:"109"},110:{path:"/classrooms/:coursesId/common_homework/:categoryId",parentId:"100",id:"110"},111:{path:"/classrooms/:coursesId/common_homework",parentId:"100",id:"111"},112:{path:"/classrooms/:coursesId/group_homework/:categoryId",parentId:"100",id:"112"},113:{path:"/classrooms/:coursesId/group_homework",parentId:"100",id:"113"},114:{path:"/classrooms/:coursesId/teachers",parentId:"100",id:"114"},115:{path:"/classrooms/:coursesId/students",parentId:"100",id:"115"},116:{path:"/classrooms/:coursesId/assistant",parentId:"100",id:"116"},117:{path:"/classrooms/:coursesId/program_homework",parentId:"100",id:"117"},118:{path:"/classrooms/:coursesId/program_homework/:categoryId",parentId:"100",id:"118"},119:{path:"/classrooms/:coursesId/engineering",parentId:"100",id:"119"},120:{path:"/classrooms/:coursesId/learning_path",parentId:"100",id:"120"},121:{path:"/classrooms/:coursesId/resource_recommend",parentId:"100",id:"121"},122:{path:"/classrooms/:coursesId/attendance",parentId:"100",id:"122"},123:{path:"/classrooms/:coursesId/attendance/StudetnSign",parentId:"100",id:"123"},124:{path:"/classrooms/:coursesId/attendance/:categoryId/:tabId/detail",parentId:"100",id:"124"},125:{path:"/classrooms/:coursesId/announcement",parentId:"100",id:"125"},126:{path:"/classrooms/:coursesId/announcement/:categoryId",parentId:"100",id:"126"},127:{path:"/classrooms/:coursesId/online_learning",parentId:"100",id:"127"},128:{path:"/classrooms/:coursesId/online_learning/:categoryId",parentId:"100",id:"128"},129:{path:"/classrooms/:coursesId/attachment/:categoryId",parentId:"100",id:"129"},130:{path:"/classrooms/:coursesId/attachment",parentId:"100",id:"130"},131:{path:"/classrooms/:coursesId/video",parentId:"100",id:"131"},132:{path:"/classrooms/:coursesId/video/:categoryId",parentId:"100",id:"132"},133:{path:"/classrooms/:coursesId/video/:categoryId/statistics",parentId:"100",id:"133"},134:{path:"/classrooms/:coursesId/video/:username/upload",parentId:"100",id:"134"},135:{path:"/classrooms/:coursesId/video/:categoryId/statistics/:videoId",parentId:"100",id:"135"},136:{path:"/classrooms/:coursesId/video/:categoryId/statistics/:videoId/:userId",parentId:"100",id:"136"},137:{path:"/classrooms/:coursesId/live_video/:categoryId",parentId:"100",id:"137"},138:{path:"/classrooms/:coursesId/live_video",parentId:"100",id:"138"},139:{path:"/classrooms/:coursesId/video/:categoryId/studentstatistics",parentId:"100",id:"139"},140:{path:"/classrooms/:coursesId/board/:categoryId",parentId:"100",id:"140"},141:{path:"/classrooms/:coursesId/board",parentId:"100",id:"141"},142:{path:"/classrooms/:coursesId/course_group",parentId:"100",id:"142"},143:{path:"/classrooms/:coursesId/course_group/:categoryId",parentId:"100",id:"143"},144:{path:"/classrooms/:coursesId/course_group/:categoryId/detail",parentId:"100",id:"144"},145:{path:"/classrooms/:coursesId/not_course_group/:categoryId",parentId:"100",id:"145"},146:{path:"/classrooms/:coursesId/not_course_group",parentId:"100",id:"146"},147:{path:"/classrooms/:coursesId/statistics/",parentId:"100",id:"147"},148:{path:"/classrooms/:coursesId/statistics/:categoryId",parentId:"100",id:"148"},149:{path:"/classrooms/:coursesId/statistics_video/:categoryId",parentId:"100",id:"149"},150:{path:"/classrooms/:coursesId/statistics_quality/:categoryId",parentId:"100",id:"150"},151:{path:"/classrooms/:coursesId/student_statistics/:categoryId",parentId:"100",id:"151"},152:{path:"/classrooms/:coursesId/student_statistics/:categoryId/:listId/:type",parentId:"100",id:"152"},153:{path:"/classrooms/:coursesId/video_statistics/:categoryId/Student/:studentid",parentId:"100",id:"153"},154:{path:"/classrooms/:coursesId/exportlist/:type",parentId:"100",id:"154"},155:{path:"/classrooms/:coursesId",parentId:"100",id:"155"},156:{path:"/classrooms/:coursesId/template",parentId:"100",id:"156"},157:{path:"/classrooms/:coursesId/smart_plan",parentId:"100",id:"157"},158:{path:"/classrooms/:coursesId/smart_plan/:id/info",parentId:"19",id:"158"},159:{path:"/competitions",parentId:"1",id:"159"},160:{path:"/competitions/index",parentId:"159",id:"160"},161:{path:"/competitions/:identifier/list",parentId:"159",id:"161"},162:{path:"/competitions/exports",parentId:"159",id:"162"},163:{path:"/competitions",parentId:"159",id:"163"},164:{path:"/competitions/:identifier",parentId:"159",id:"164"},165:{path:"/competitions/index/:identifier",parentId:"159",id:"165"},166:{path:"/competitions/:identifier/detail/enroll",parentId:"159",id:"166"},167:{path:"/competitions/:identifier/detail/UpdateTeanname/:Teannameid",parentId:"159",id:"167"},168:{path:"/competitions/:identifier/detail/teamDetail/:Teamid",parentId:"159",id:"168"},169:{path:"/competitions/detail/:identifier",parentId:"159",id:"169"},170:{path:"/forums",parentId:"1",id:"170"},171:{path:"/forums",parentId:"170",id:"171"},172:{path:"/forums/categories/:memoType",parentId:"170",id:"172"},173:{path:"/forums/new",parentId:"170",id:"173"},174:{path:"/forums/:memoId/edit",parentId:"170",id:"174"},175:{path:"/forums/:memoId",parentId:"170",id:"175"},176:{path:"/problemset",parentId:"1",id:"176"},177:{path:"/problemset",parentId:"176",id:"177"},178:{path:"/problemset/newitem",parentId:"176",id:"178"},179:{path:"/problemset/:type/:id",parentId:"176",id:"179"},180:{path:"/problemset/preview",parentId:"176",id:"180"},181:{path:"/problemset/preview_new",parentId:"176",id:"181"},182:{path:"/problemset/preview_select",parentId:"176",id:"182"},183:{path:"/shixuns",parentId:"1",id:"183"},184:{path:"/shixuns",parentId:"183",id:"184"},185:{path:"/shixuns/exports",parentId:"183",id:"185"},186:{path:"/shixuns/new",parentId:"183",id:"186"},187:{path:"/shixuns/new/CreateImg",parentId:"183",id:"187"},188:{path:"/shixuns/new/:id/imagepreview",parentId:"183",id:"188"},189:{path:"/shixuns/:id/Merge",parentId:"183",id:"189"},190:{path:"/shixuns/:id/Split",parentId:"183",id:"190"},191:{path:"/shixuns/:id/edit",parentId:"183",id:"191"},192:{path:"shixuns/:id/edit/warehouse",parentId:"191",id:"192"},193:{path:"/shixuns/:id/edit/newquestion",parentId:"191",id:"193"},194:{path:"/shixuns/:id/edit/:challengesId/editquestion",parentId:"191",id:"194"},195:{path:"/shixuns/:id/edit/:challengesId/editquestion/:questionId",parentId:"191",id:"195"},196:{path:"/shixuns/:id/edit/new",parentId:"191",id:"196"},197:{path:"/shixuns/:id/edit/:challengesId/editcheckpoint",parentId:"191",id:"197"},198:{path:"/shixuns/:id/edit/:challengesId/tab=2",parentId:"191",id:"198"},199:{path:"/shixuns/:id/edit/:challengesId/tab=3",parentId:"191",id:"199"},200:{path:"/shixuns/:id/edit/:challengesId/tab=4",parentId:"191",id:"200"},201:{path:"/shixuns/:id",parentId:"183",id:"201"},202:{path:"/shixuns/:id/poll",parentId:"201",id:"202"},203:{path:"/shixuns/:id/challenges",parentId:"201",id:"203"},204:{path:"/shixuns/:id/repository",parentId:"201",id:"204"},205:{path:"/shixuns/:id/secret_repository",parentId:"201",id:"205"},206:{path:"/shixuns/:id/collaborators",parentId:"201",id:"206"},207:{path:"/shixuns/:id/dataset",parentId:"201",id:"207"},208:{path:"/shixuns/:id/dataset/jupyterEdit",parentId:"201",id:"208"},209:{path:"/shixuns/:id/shixun_discuss",parentId:"201",id:"209"},210:{path:"/shixuns/:id/ranking_list",parentId:"201",id:"210"},211:{path:"/shixuns/:id/settings",parentId:"201",id:"211"},212:{path:"/shixuns/:id/repository/:repoId/commits",parentId:"201",id:"212"},213:{path:"/shixuns/:id/secret_repository/:repoId/commits",parentId:"201",id:"213"},214:{path:"/shixuns/:id/repository/upload_file",parentId:"201",id:"214"},215:{path:"/shixuns/:id/secret_repository/upload_file",parentId:"201",id:"215"},216:{path:"/shixuns/:id/repository/add_file",parentId:"201",id:"216"},217:{path:"/shixuns/:id/secret_repository/add_file",parentId:"201",id:"217"},218:{path:"/shixuns/:id/repository/master/shixun_show/:fileId",exact:!1,parentId:"201",id:"218"},219:{path:"/shixuns/:id/secret_repository/master/shixun_show/:fileId",exact:!1,parentId:"201",id:"219"},220:{path:"/shixuns/:id/audit_situation",parentId:"201",id:"220"},221:{path:"/shixuns/:id/fork_list",parentId:"201",id:"221"},222:{path:"/users",parentId:"1",id:"222"},223:{path:"/users/:username/videos/protocol",parentId:"222",id:"223"},224:{path:"/users/:username/videos/resourceProtocol",parentId:"222",id:"224"},225:{path:"/users/:username/videos/success",parentId:"222",id:"225"},226:{path:"/users/:username/topicbank/:topicstype",parentId:"222",id:"226"},227:{path:"/users/:username/topics/:topicId/:topictype/normal/detail",parentId:"222",id:"227"},228:{path:"/users/:username/topics/:topicId/:topictype/group/detail",parentId:"222",id:"228"},229:{path:"/users/:username/topics/:topicId/:topictype/normal/edit",parentId:"222",id:"229"},230:{path:"/users/:username/topics/:topicId/:topictype/group/edit",parentId:"222",id:"230"},231:{path:"/users/:username/topics/:topicId/:topictype/exercise/edit",parentId:"222",id:"231"},232:{path:"/users/:username/topics/:topicId/:topictype/exercise/detail",parentId:"222",id:"232"},233:{path:"/users/:username/topics/:topicId/:topictype/poll/edit",parentId:"222",id:"233"},234:{path:"/users/:username/topics/:topicId/:topictype/poll/detail",parentId:"222",id:"234"},235:{path:"/users/:username/experiment-img/add",parentId:"222",id:"235"},236:{path:"/users/:username",parentId:"222",id:"236"},237:{path:"/users/:username",parentId:"236",id:"237"},238:{path:"/users/:username/baseInfo/edit",parentId:"236",id:"238"},239:{path:"/users/:username/baseInfo",parentId:"236",id:"239"},240:{path:"/users/:username/realNameCertification",parentId:"236",id:"240"},241:{path:"/users/:username/careerCertification",parentId:"236",id:"241"},242:{path:"/users/:username/classrooms",parentId:"236",id:"242"},243:{path:"/users/:username/shixuns",parentId:"236",id:"243"},244:{path:"/users/:username/dataSet",parentId:"236",id:"244"},245:{path:"/users/:username/userPortrait",parentId:"236",id:"245"},246:{path:"/users/:username/learningPath",parentId:"236",id:"246"},247:{path:"/users/:username/teach-group",parentId:"236",id:"247"},248:{path:"/users/:username/competitions",parentId:"236",id:"248"},249:{path:"/users/:username/experiment-img",parentId:"236",id:"249"},250:{path:"/users/:username/experiment-img/:experid/detail",parentId:"236",id:"250"},251:{path:"/users/:username/certificate",parentId:"236",id:"251"},252:{path:"/users/:username/otherResources",parentId:"236",id:"252"},253:{path:"/users/:username/paths",parentId:"236",id:"253"},254:{path:"/users/:username/projects",parentId:"236",id:"254"},255:{path:"/users/:username/videos",parentId:"236",id:"255"},256:{path:"/users/:username/videos/upload",parentId:"236",id:"256"},257:{path:"/users/:username/topics/:topicstype",parentId:"236",id:"257"},258:{path:"/users/:username/vspaces",parentId:"236",id:"258"},259:{path:"/users/:username/resourcesCenter",parentId:"236",id:"259"},260:{path:"/users/:username/resourcesCenter/:id/detail",parentId:"236",id:"260"},261:{path:"/users/:username/resourceGuarantee",parentId:"236",id:"261"},262:{path:"/users/:username/resourceAllocation",parentId:"236",id:"262"},263:{parentId:"1",id:"263"},264:{path:"/problems",parentId:"263",id:"264"},265:{path:"/problems",parentId:"264",id:"265"},266:{path:"/problems/batchAdd",parentId:"264",id:"266"},267:{path:"/problems/newcreate",parentId:"263",id:"267"},268:{path:"/problems/newedit/:id",exact:!0,parentId:"263",id:"268"},269:{path:"/problems/:id/edit",exact:!0,parentId:"263",id:"269"},270:{path:"/problems/new",exact:!0,parentId:"263",id:"270"},271:{path:"/problems/:id/oj/:save_identifier",parentId:"263",id:"271"},272:{path:"/problems/:id/record-detail/:submitId",parentId:"263",id:"272"},273:{path:"/problems/add",parentId:"263",id:"273"},274:{path:"/problems/:id/ojedit",parentId:"263",id:"274"},275:{path:"/engineering",parentId:"1",id:"275"},276:{path:"/engineering",parentId:"275",id:"276"},277:{path:"/engineering/teacherList",parentId:"276",id:"277"},278:{path:"/engineering/studentList",parentId:"276",id:"278"},279:{path:"/engineering/training/program",parentId:"276",id:"279"},280:{path:"/engineering/training/program/add",parentId:"276",id:"280"},281:{path:"/engineering/training/program/edit",parentId:"276",id:"281"},282:{path:"/engineering/training/objectives",parentId:"276",id:"282"},283:{path:"/engineering/graduated/index",parentId:"276",id:"283"},284:{path:"/engineering/graduated/matrix",parentId:"276",id:"284"},285:{path:"/engineering/course/list",parentId:"276",id:"285"},286:{path:"/engineering/course/setting",parentId:"276",id:"286"},287:{path:"/engineering/course/matrix",parentId:"276",id:"287"},288:{path:"/engineering/navigation",parentId:"276",id:"288"},289:{path:"/engineering/evaluate/course",parentId:"276",id:"289"},290:{path:"/engineering/evaluate/course/:ec_year_id/:id",parentId:"276",id:"290"},291:{path:"/engineering/evaluate/norm",parentId:"276",id:"291"},292:{path:"/engineering/evaluate/document",parentId:"276",id:"292"},293:{path:"/engineering/evaluate/norm/:ec_year_id/:id",parentId:"276",id:"293"},294:{path:"/engineering/*",redirect:"/404",parentId:"276",id:"294"},295:{path:"/innovation",parentId:"1",id:"295"},296:{path:"/innovation/tasks/:taskId",parentId:"295",id:"296"},297:{path:"/innovation",parentId:"295",id:"297"},298:{path:"/innovation/project",parentId:"297",id:"298"},299:{path:"/innovation/dataset",parentId:"297",id:"299"},300:{path:"/innovation/mirror",parentId:"297",id:"300"},301:{path:"/innovation/my-project",parentId:"297",id:"301"},302:{path:"/innovation/my-dataset",parentId:"297",id:"302"},303:{path:"/innovation/my-mirror",parentId:"297",id:"303"},304:{path:"/innovation/project/create",parentId:"297",id:"304"},305:{path:"/innovation/project/edit/:id",parentId:"297",id:"305"},306:{path:"/innovation/project/detail/:taskId",parentId:"297",id:"306"},307:{path:"/tasks",parentId:"1",id:"307"},308:{path:"/tasks/:taskId",exact:!0,parentId:"307",id:"308"},309:{path:"/tasks/:identifier/jupyter/",exact:!0,parentId:"307",id:"309"},310:{path:"/tasks/:courseId/:homeworkId/:taskId",exact:!0,parentId:"307",id:"310"},311:{path:"/tasks/jupyter/:courseId/:homeworkId/:identifier",exact:!0,parentId:"307",id:"311"},312:{path:"/tasks/:courseId/:exerciseId/:taskId/exercise",exact:!0,parentId:"307",id:"312"},313:{path:"/myproblems",parentId:"1",id:"313"},314:{path:"/myproblems/:id/record-detail/:submitId",exact:!0,parentId:"313",id:"314"},315:{path:"/myproblems/:id",exact:!0,parentId:"313",id:"315"},316:{path:"/account",parentId:"1",id:"316"},317:{path:"/account",parentId:"316",id:"317"},318:{path:"/account/profile",parentId:"317",id:"318"},319:{path:"/account/profile/edit",parentId:"317",id:"319"},320:{path:"/account/certification",parentId:"317",id:"320"},321:{path:"/account/secure",parentId:"317",id:"321"},322:{path:"/account/binding",parentId:"317",id:"322"},323:{path:"/account/Results",parentId:"317",id:"323"},324:{path:"/ch",parentId:"1",id:"324"},325:{path:"/ch/rest/edit/:categoryId/:id",exact:!0,parentId:"324",id:"325"},326:{path:"/ch/rest/",exact:!0,parentId:"324",id:"326"},327:{path:"/ch/rest/:id",exact:!0,parentId:"324",id:"327"},328:{path:"/order",parentId:"1",id:"328"},329:{path:"/order",parentId:"328",id:"329"},330:{path:"/order/invoice",parentId:"328",id:"330"},331:{path:"/order/records",parentId:"328",id:"331"},332:{path:"/order/apply",parentId:"328",id:"332"},333:{path:"/order/view",parentId:"328",id:"333"},334:{path:"/order/:courseId/information",parentId:"328",id:"334"},335:{path:"/order/:courseId/pay",parentId:"328",id:"335"},336:{path:"/order/:orderNum/result",parentId:"328",id:"336"},337:{path:"/messages",parentId:"1",id:"337"},338:{path:"/messages/:userId/user_tidings",parentId:"337",id:"338"},339:{path:"/messages/:userId/private_messages",parentId:"337",id:"339"},340:{path:"/messages/:userId/message_detail",parentId:"337",id:"340"},341:{path:"/vtrs",parentId:"1",id:"341"},342:{path:"/vtrs/:virtual_spacesId",parentId:"341",id:"342"},343:{path:"/vtrs/:virtual_spacesId",exact:!0,parentId:"342",id:"343"},344:{path:"/vtrs/:virtual_spacesId/workplace",exact:!0,parentId:"342",id:"344"},345:{path:"/vtrs/:virtual_spacesId/experiment",parentId:"342",id:"345"},346:{path:"/vtrs/:virtual_spacesId/announcement",parentId:"342",id:"346"},347:{path:"/vtrs/:virtual_spacesId/announcement/add",parentId:"342",id:"347"},348:{path:"/vtrs/:virtual_spacesId/announcement/:id/edit",parentId:"342",id:"348"},349:{path:"/vtrs/:virtual_spacesId/announcement/:id/detail",parentId:"342",id:"349"},350:{path:"/vtrs/:virtual_spacesId/survey",parentId:"342",id:"350"},351:{path:"/vtrs/:virtual_spacesId/survey/:id/detail",parentId:"342",id:"351"},352:{path:"/vtrs/:virtual_spacesId/knowledge",parentId:"342",id:"352"},353:{path:"/vtrs/:virtual_spacesId/knowledge/add",parentId:"342",id:"353"},354:{path:"/vtrs/:virtual_spacesId/knowledge/:id/edit",parentId:"342",id:"354"},355:{path:"/vtrs/:virtual_spacesId/material",parentId:"342",id:"355"},356:{path:"/vtrs/:virtual_spacesId/material/:id/detail",parentId:"342",id:"356"},357:{path:"/vtrs/:virtual_spacesId/lesson",parentId:"342",id:"357"},358:{path:"/vtrs/:virtual_spacesId/lesson/:id/detail",parentId:"342",id:"358"},359:{path:"/vtrs/:virtual_spacesId/lesson/:id/detail/:fileid",parentId:"342",id:"359"},360:{path:"/vtrs/:virtual_spacesId/discussion",parentId:"342",id:"360"},361:{path:"/vtrs/:virtual_spacesId/discussion/:id/detail",parentId:"342",id:"361"},362:{path:"/vtrs/:virtual_spacesId/discussion/:id/detail/:fileid",parentId:"342",id:"362"},363:{path:"/vtrs/:virtual_spacesId/settings",parentId:"342",id:"363"},364:{path:"/vtrs/:virtual_spacesId/resources",parentId:"342",id:"364"},365:{path:"/vtrs/:virtual_spacesId/resources/:id/detail",parentId:"342",id:"365"},366:{path:"/vtrs/:virtual_spacesId/Plan",parentId:"342",id:"366"},367:{path:"/vtrs/:virtual_spacesId/plan/:id/detail",parentId:"342",id:"367"},368:{path:"/vtrs/:virtual_spacesId/digtal",parentId:"342",id:"368"},369:{path:"/vtrs/:virtual_spacesId/homepage",parentId:"342",id:"369"},370:{path:"/vtrs/:virtual_spacesId/*",parentId:"342",id:"370"},371:{path:"/101",parentId:"1",id:"371"},372:{path:"/101/:virtual_spacesId",parentId:"371",id:"372"},373:{path:"/101/:virtual_spacesId",exact:!0,parentId:"372",id:"373"},374:{path:"/101/:virtual_spacesId/workplace",exact:!0,parentId:"372",id:"374"},375:{path:"/101/:virtual_spacesId/experiment",parentId:"372",id:"375"},376:{path:"/101/:virtual_spacesId/announcement",parentId:"372",id:"376"},377:{path:"/101/:virtual_spacesId/announcement/add",parentId:"372",id:"377"},378:{path:"/101/:virtual_spacesId/announcement/:id/edit",parentId:"372",id:"378"},379:{path:"/101/:virtual_spacesId/announcement/:id/detail",parentId:"372",id:"379"},380:{path:"/101/:virtual_spacesId/survey",parentId:"372",id:"380"},381:{path:"/101/:virtual_spacesId/survey/:id/detail",parentId:"372",id:"381"},382:{path:"/101/:virtual_spacesId/knowledge",parentId:"372",id:"382"},383:{path:"/101/:virtual_spacesId/knowledge/add",parentId:"372",id:"383"},384:{path:"/101/:virtual_spacesId/knowledge/:id/edit",parentId:"372",id:"384"},385:{path:"/101/:virtual_spacesId/material",parentId:"372",id:"385"},386:{path:"/101/:virtual_spacesId/material/:id/detail",parentId:"372",id:"386"},387:{path:"/101/:virtual_spacesId/lesson",parentId:"372",id:"387"},388:{path:"/101/:virtual_spacesId/lesson/:id/detail",parentId:"372",id:"388"},389:{path:"/101/:virtual_spacesId/lesson/:id/detail/:fileid",parentId:"372",id:"389"},390:{path:"/101/:virtual_spacesId/discussion",parentId:"372",id:"390"},391:{path:"/101/:virtual_spacesId/discussion/:id/detail",parentId:"372",id:"391"},392:{path:"/101/:virtual_spacesId/discussion/:id/detail/:fileid",parentId:"372",id:"392"},393:{path:"/101/:virtual_spacesId/settings",parentId:"372",id:"393"},394:{path:"/101/:virtual_spacesId/resources",parentId:"372",id:"394"},395:{path:"/101/:virtual_spacesId/resources/:id/detail",parentId:"372",id:"395"},396:{path:"/101/:virtual_spacesId/Plan",parentId:"372",id:"396"},397:{path:"/101/:virtual_spacesId/plan/:id/detail",parentId:"372",id:"397"},398:{path:"/101/:virtual_spacesId/digtal",parentId:"372",id:"398"},399:{path:"/101/:virtual_spacesId/homepage",parentId:"372",id:"399"},400:{path:"/101/:virtual_spacesId/*",parentId:"372",id:"400"},401:{path:"/administration",parentId:"1",id:"401"},402:{path:"/administration",parentId:"401",id:"402"},403:{path:"/administration/college",parentId:"402",id:"403"},404:{path:"/administration/student",parentId:"402",id:"404"},405:{path:"/administration/student/:studentId/edit",parentId:"402",id:"405"},406:{path:"/administration/profession",parentId:"402",id:"406"},407:{path:"/graduations",parentId:"1",id:"407"},408:{path:"/graduations",exact:!0,parentId:"407",id:"408"},409:{path:"/graduations/:id/:moduleKey/:moduleId/review/:itemId",exact:!0,parentId:"407",id:"409"},410:{path:"/graduations/:id",parentId:"407",id:"410"},411:{path:"/graduations/:id/index",parentId:"410",id:"411"},412:{path:"/graduations/:id/topics",parentId:"410",id:"412"},413:{path:"/graduations/:id/student_selection",parentId:"410",id:"413"},414:{path:"/graduations/:id/tasks",parentId:"410",id:"414"},415:{path:"/graduations/:id/opening_report",parentId:"410",id:"415"},416:{path:"/graduations/:id/midterm_report",parentId:"410",id:"416"},417:{path:"/graduations/:id/thesis",parentId:"410",id:"417"},418:{path:"/graduations/:id/final_defense",parentId:"410",id:"418"},419:{path:"/graduations/:id/final_thesis",parentId:"410",id:"419"},420:{path:"/graduations/:id/settings",parentId:"410",id:"420"},421:{path:"/graduations/:id/teachers",parentId:"410",id:"421"},422:{path:"/graduations/:id/students",parentId:"410",id:"422"},423:{path:"/graduations/:id/archives",parentId:"410",id:"423"},424:{path:"/graduations/:id/grading_summary",parentId:"410",id:"424"},425:{path:"/dataset",parentId:"1",id:"425"},426:{path:"/dataset",exact:!0,parentId:"425",id:"426"},427:{path:"/dataset/:id/detail",exact:!0,parentId:"425",id:"427"},428:{path:"/knowledgegraph",parentId:"1",id:"428"},429:{path:"/knowledgegraph/:pathId",parentId:"428",id:"429"},430:{path:"/knowledgegraph/:pathId/abilityMap/edit/:abilityMapId",parentId:"428",id:"430"},431:{path:"/knowledgegraph/:pathId/abilityMap/detail/:abilityId",parentId:"428",id:"431"},432:{path:"/knowledgegraph/:pathId/statistics",parentId:"428",id:"432"},433:{parentId:"428",id:"433"},434:{path:"/knowledgegraph/:pathId/statistics/learningpath/:learningpathId",parentId:"433",id:"434"},435:{path:"/knowledgegraph/:pathId/statistics/learningpath/:learningpathId/detail/:detailId",parentId:"433",id:"435"},436:{path:"/miniprogram",parentId:"1",id:"436"},437:{path:"/miniprogram/courseware/study",exact:!0,parentId:"436",id:"437"},438:{path:"/educoder-demo",exact:!0,parentId:"1",id:"438"},439:{path:"/classrooms/:coursesId/smart_plan/:id/ppt_info/info",exact:!0,parentId:"1",id:"439"},440:{path:"/training",parentId:"1",id:"440"},441:{name:"\u7CBE\u57F9\u8BFE\u7A0B",path:"/training",parentId:"440",id:"441"},442:{path:"/largeScreen",exact:!0,parentId:"1",id:"442"},443:{path:"/effectivenessAnalysis/:coursesId",exact:!0,parentId:"1",id:"443"},444:{path:"/quality",parentId:"1",id:"444"},445:{name:"\u7CBE\u54C1\u8BFE\u7A0B",path:"/quality",parentId:"444",id:"445"},446:{path:"/otherlogin",exact:!0,parentId:"1",id:"446"},447:{path:"/otherloginqq",exact:!0,parentId:"1",id:"447"},448:{path:"/otherloginstart",exact:!0,parentId:"1",id:"448"},449:{path:"/pathsoverview",exact:!0,parentId:"1",id:"449"},450:{path:"/shixunsoverview",exact:!0,parentId:"1",id:"450"},451:{path:"/classroomsoverview",exact:!0,parentId:"1",id:"451"},452:{path:"/login",parentId:"1",id:"452"},453:{path:"/login",parentId:"452",id:"453"},454:{path:"/user",parentId:"1",id:"454"},455:{path:"/user/login",parentId:"454",id:"455"},456:{path:"/user/register",parentId:"454",id:"456"},457:{path:"/user/reset-password",parentId:"454",id:"457"},458:{path:"/colleges",parentId:"1",id:"458"},459:{path:"/colleges/:id/statistics",parentId:"458",id:"459"},460:{path:"/help",parentId:"1",id:"460"},461:{path:"/help/:id",parentId:"460",id:"461"},462:{path:"/video",parentId:"1",id:"462"},463:{path:"/video/:videoId",parentId:"462",id:"463"},464:{path:"/terminal",parentId:"1",id:"464"},465:{path:"/report/:taskId/:game_report_id",parentId:"1",id:"465"},466:{path:"/",parentId:"1",id:"466"},467:{path:"/",exact:!0,parentId:"466",id:"467"},468:{path:"/api/*",exact:!0,parentId:"466",id:"468"},469:{path:"/search",exact:!0,parentId:"466",id:"469"},470:{path:"/moop_cases",exact:!0,parentId:"466",id:"470"},471:{path:"/moop_cases/new",exact:!0,parentId:"466",id:"471"},472:{path:"/moop_cases/:caseId",exact:!0,parentId:"466",id:"472"},473:{path:"/moop_cases/:caseId/edit",exact:!0,parentId:"466",id:"473"},474:{path:"/moop_cases/:caseId/publish-success",exact:!0,parentId:"466",id:"474"},475:{path:"/randompaper",exact:!0,parentId:"466",id:"475"},476:{path:"/randompaper/edit/:id",exact:!0,parentId:"466",id:"476"},477:{path:"/randompaper/detail/:id",exact:!0,parentId:"466",id:"477"},478:{path:"/403",parentId:"466",id:"478"},479:{path:"/500",parentId:"466",id:"479"},480:{path:"/404",parentId:"466",id:"480"},481:{path:"/download",parentId:"466",id:"481"},482:{path:"/iwce",parentId:"466",id:"482"},483:{path:"/classrooms/:coursesId/attendance/TeacherSign",parentId:"466",id:"483"},484:{path:"/classrooms/:coursesId/attendance/:categoryId",parentId:"466",id:"484"},485:{path:"/Activities",parentId:"466",id:"485"},486:{path:"/iwce/:itemname",parentId:"466",id:"486"},487:{path:"/hpc-course",parentId:"466",id:"487"},488:{path:"/user_agents",parentId:"466",id:"488"},489:{path:"/three",parentId:"466",id:"489"},490:{path:"/introduction",parentId:"466",id:"490"},491:{path:"/chatgpt",parentId:"466",id:"491"},492:{path:"/*",parentId:"466",id:"492"},"@@/global-layout":{id:"@@/global-layout",path:"/",isLayout:!0}},routeComponents:{1:oe.lazy(()=>__webpack_require__.e(5886).then(__webpack_require__.bind(__webpack_require__,5886))),2:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),3:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(4862)]).then(__webpack_require__.bind(__webpack_require__,63041))),4:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(6804),__webpack_require__.e(3260)]).then(__webpack_require__.bind(__webpack_require__,8478))),5:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(6804),__webpack_require__.e(3260)]).then(__webpack_require__.bind(__webpack_require__,8478))),6:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(3247)]).then(__webpack_require__.bind(__webpack_require__,66415))),7:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(9886),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,94794))),8:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(9886),__webpack_require__.e(1545)]).then(__webpack_require__.bind(__webpack_require__,75066))),9:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),10:oe.lazy(()=>__webpack_require__.e(6052).then(__webpack_require__.bind(__webpack_require__,16888))),11:oe.lazy(()=>__webpack_require__.e(5572).then(__webpack_require__.bind(__webpack_require__,27945))),12:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(8982)]).then(__webpack_require__.bind(__webpack_require__,28054))),13:oe.lazy(()=>__webpack_require__.e(869).then(__webpack_require__.bind(__webpack_require__,98792))),14:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6411),__webpack_require__.e(2967),__webpack_require__.e(3332)]).then(__webpack_require__.bind(__webpack_require__,50578))),15:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(4601)]).then(__webpack_require__.bind(__webpack_require__,38239))),16:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(8982)]).then(__webpack_require__.bind(__webpack_require__,28054))),17:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(9886),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,94794))),18:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(9886),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,94794))),19:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),20:oe.lazy(()=>__webpack_require__.e(6685).then(__webpack_require__.bind(__webpack_require__,40361))),21:oe.lazy(()=>__webpack_require__.e(9921).then(__webpack_require__.bind(__webpack_require__,3623))),22:oe.lazy(()=>__webpack_require__.e(1674).then(__webpack_require__.bind(__webpack_require__,33165))),23:oe.lazy(()=>__webpack_require__.e(6685).then(__webpack_require__.bind(__webpack_require__,40361))),24:oe.lazy(()=>__webpack_require__.e(1702).then(__webpack_require__.bind(__webpack_require__,83931))),25:oe.lazy(()=>__webpack_require__.e(1702).then(__webpack_require__.bind(__webpack_require__,83931))),26:oe.lazy(()=>__webpack_require__.e(6882).then(__webpack_require__.bind(__webpack_require__,74670))),27:oe.lazy(()=>__webpack_require__.e(6882).then(__webpack_require__.bind(__webpack_require__,74670))),28:oe.lazy(()=>__webpack_require__.e(109).then(__webpack_require__.bind(__webpack_require__,74719))),29:oe.lazy(()=>__webpack_require__.e(737).then(__webpack_require__.bind(__webpack_require__,79213))),30:oe.lazy(()=>__webpack_require__.e(3391).then(__webpack_require__.bind(__webpack_require__,24997))),31:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6411),__webpack_require__.e(9974),__webpack_require__.e(3581)]).then(__webpack_require__.bind(__webpack_require__,75084))),32:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6411),__webpack_require__.e(342)]).then(__webpack_require__.bind(__webpack_require__,12383))),33:oe.lazy(()=>__webpack_require__.e(2303).then(__webpack_require__.bind(__webpack_require__,67059))),34:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(1450)]).then(__webpack_require__.bind(__webpack_require__,21871))),35:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9974),__webpack_require__.e(195)]).then(__webpack_require__.bind(__webpack_require__,52784))),36:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9974),__webpack_require__.e(3668)]).then(__webpack_require__.bind(__webpack_require__,95889))),37:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(2338)]).then(__webpack_require__.bind(__webpack_require__,57700))),38:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4662)]).then(__webpack_require__.bind(__webpack_require__,4654))),39:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(8072)]).then(__webpack_require__.bind(__webpack_require__,44180))),40:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(479)]).then(__webpack_require__.bind(__webpack_require__,69993))),41:oe.lazy(()=>__webpack_require__.e(5297).then(__webpack_require__.bind(__webpack_require__,88810))),42:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6411),__webpack_require__.e(9974),__webpack_require__.e(4164)]).then(__webpack_require__.bind(__webpack_require__,1860))),43:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(9886),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,94794))),44:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(9886),__webpack_require__.e(4889)]).then(__webpack_require__.bind(__webpack_require__,50357))),45:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(9886),__webpack_require__.e(4105)]).then(__webpack_require__.bind(__webpack_require__,72560))),46:oe.lazy(()=>__webpack_require__.e(7482).then(__webpack_require__.bind(__webpack_require__,74139))),47:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(5816)]).then(__webpack_require__.bind(__webpack_require__,43794))),48:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(337)]).then(__webpack_require__.bind(__webpack_require__,76175))),49:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(6804),__webpack_require__.e(292)]).then(__webpack_require__.bind(__webpack_require__,69082))),50:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(6804),__webpack_require__.e(292)]).then(__webpack_require__.bind(__webpack_require__,69082))),51:oe.lazy(()=>__webpack_require__.e(5992).then(__webpack_require__.bind(__webpack_require__,1464))),52:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6411),__webpack_require__.e(4653),__webpack_require__.e(9886),__webpack_require__.e(8085)]).then(__webpack_require__.bind(__webpack_require__,90732))),53:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6411),__webpack_require__.e(4653),__webpack_require__.e(9886),__webpack_require__.e(8085)]).then(__webpack_require__.bind(__webpack_require__,90732))),54:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(8431)]).then(__webpack_require__.bind(__webpack_require__,69884))),55:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(6309),__webpack_require__.e(5902)]).then(__webpack_require__.bind(__webpack_require__,17950))),56:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(6309),__webpack_require__.e(3433)]).then(__webpack_require__.bind(__webpack_require__,56954))),57:oe.lazy(()=>__webpack_require__.e(5125).then(__webpack_require__.bind(__webpack_require__,41228))),58:oe.lazy(()=>__webpack_require__.e(5125).then(__webpack_require__.bind(__webpack_require__,41228))),59:oe.lazy(()=>__webpack_require__.e(921).then(__webpack_require__.bind(__webpack_require__,17933))),60:oe.lazy(()=>__webpack_require__.e(921).then(__webpack_require__.bind(__webpack_require__,17933))),61:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(1578)]).then(__webpack_require__.bind(__webpack_require__,19116))),62:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(3317)]).then(__webpack_require__.bind(__webpack_require__,15732))),63:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(1482)]).then(__webpack_require__.bind(__webpack_require__,84625))),64:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4795)]).then(__webpack_require__.bind(__webpack_require__,89859))),65:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(26)]).then(__webpack_require__.bind(__webpack_require__,427))),66:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(8882)]).then(__webpack_require__.bind(__webpack_require__,90923))),67:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(5888)]).then(__webpack_require__.bind(__webpack_require__,60884))),68:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9715)]).then(__webpack_require__.bind(__webpack_require__,72794))),69:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(7045)]).then(__webpack_require__.bind(__webpack_require__,4549))),70:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(1211)]).then(__webpack_require__.bind(__webpack_require__,75405))),71:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(1582)]).then(__webpack_require__.bind(__webpack_require__,8993))),72:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6729)]).then(__webpack_require__.bind(__webpack_require__,79131))),73:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9695)]).then(__webpack_require__.bind(__webpack_require__,15056))),74:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(8723)]).then(__webpack_require__.bind(__webpack_require__,52796))),75:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(7622)]).then(__webpack_require__.bind(__webpack_require__,40222))),76:oe.lazy(()=>__webpack_require__.e(5148).then(__webpack_require__.bind(__webpack_require__,94453))),77:oe.lazy(()=>__webpack_require__.e(643).then(__webpack_require__.bind(__webpack_require__,59325))),78:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(3442)]).then(__webpack_require__.bind(__webpack_require__,852))),79:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(2102)]).then(__webpack_require__.bind(__webpack_require__,94884))),80:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(2425)]).then(__webpack_require__.bind(__webpack_require__,89590))),81:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(2404)]).then(__webpack_require__.bind(__webpack_require__,55964))),82:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9785)]).then(__webpack_require__.bind(__webpack_require__,4056))),83:oe.lazy(()=>__webpack_require__.e(869).then(__webpack_require__.bind(__webpack_require__,98792))),84:oe.lazy(()=>__webpack_require__.e(2819).then(__webpack_require__.bind(__webpack_require__,43928))),85:oe.lazy(()=>__webpack_require__.e(1512).then(__webpack_require__.bind(__webpack_require__,18522))),86:oe.lazy(()=>__webpack_require__.e(7395).then(__webpack_require__.bind(__webpack_require__,39306))),87:oe.lazy(()=>__webpack_require__.e(3585).then(__webpack_require__.bind(__webpack_require__,43125))),88:oe.lazy(()=>__webpack_require__.e(6963).then(__webpack_require__.bind(__webpack_require__,17203))),89:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4030)]).then(__webpack_require__.bind(__webpack_require__,65973))),90:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4030)]).then(__webpack_require__.bind(__webpack_require__,65973))),91:oe.lazy(()=>__webpack_require__.e(6127).then(__webpack_require__.bind(__webpack_require__,92435))),92:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9974),__webpack_require__.e(3951)]).then(__webpack_require__.bind(__webpack_require__,74020))),93:oe.lazy(()=>__webpack_require__.e(1048).then(__webpack_require__.bind(__webpack_require__,16286))),94:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(9886),__webpack_require__.e(2884)]).then(__webpack_require__.bind(__webpack_require__,11091))),95:oe.lazy(()=>__webpack_require__.e(4770).then(__webpack_require__.bind(__webpack_require__,30056))),96:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(2603)]).then(__webpack_require__.bind(__webpack_require__,37710))),97:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4216)]).then(__webpack_require__.bind(__webpack_require__,55818))),98:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(5319)]).then(__webpack_require__.bind(__webpack_require__,24400))),99:oe.lazy(()=>__webpack_require__.e(895).then(__webpack_require__.bind(__webpack_require__,37183))),100:oe.lazy(()=>__webpack_require__.e(3282).then(__webpack_require__.bind(__webpack_require__,43420))),101:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9974),__webpack_require__.e(7852)]).then(__webpack_require__.bind(__webpack_require__,3871))),102:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9974),__webpack_require__.e(7852)]).then(__webpack_require__.bind(__webpack_require__,3871))),103:oe.lazy(()=>__webpack_require__.e(5048).then(__webpack_require__.bind(__webpack_require__,11790))),104:oe.lazy(()=>__webpack_require__.e(1043).then(__webpack_require__.bind(__webpack_require__,65172))),105:oe.lazy(()=>__webpack_require__.e(1043).then(__webpack_require__.bind(__webpack_require__,65172))),106:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9974),__webpack_require__.e(5825)]).then(__webpack_require__.bind(__webpack_require__,8905))),107:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9974),__webpack_require__.e(5825)]).then(__webpack_require__.bind(__webpack_require__,8905))),108:oe.lazy(()=>__webpack_require__.e(3355).then(__webpack_require__.bind(__webpack_require__,95430))),109:oe.lazy(()=>__webpack_require__.e(3355).then(__webpack_require__.bind(__webpack_require__,95430))),110:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9974),__webpack_require__.e(9890)]).then(__webpack_require__.bind(__webpack_require__,97561))),111:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9974),__webpack_require__.e(9890)]).then(__webpack_require__.bind(__webpack_require__,97561))),112:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9974),__webpack_require__.e(3935)]).then(__webpack_require__.bind(__webpack_require__,95811))),113:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9974),__webpack_require__.e(3935)]).then(__webpack_require__.bind(__webpack_require__,95811))),114:oe.lazy(()=>__webpack_require__.e(8014).then(__webpack_require__.bind(__webpack_require__,17425))),115:oe.lazy(()=>__webpack_require__.e(8077).then(__webpack_require__.bind(__webpack_require__,98247))),116:oe.lazy(()=>__webpack_require__.e(3356).then(__webpack_require__.bind(__webpack_require__,49412))),117:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9974),__webpack_require__.e(6788)]).then(__webpack_require__.bind(__webpack_require__,32996))),118:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9974),__webpack_require__.e(6788)]).then(__webpack_require__.bind(__webpack_require__,32996))),119:oe.lazy(()=>__webpack_require__.e(1962).then(__webpack_require__.bind(__webpack_require__,4573))),120:oe.lazy(()=>__webpack_require__.e(4928).then(__webpack_require__.bind(__webpack_require__,66676))),121:oe.lazy(()=>__webpack_require__.e(1257).then(__webpack_require__.bind(__webpack_require__,81357))),122:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8435)]).then(__webpack_require__.bind(__webpack_require__,31481))),123:oe.lazy(()=>__webpack_require__.e(8340).then(__webpack_require__.bind(__webpack_require__,17081))),124:oe.lazy(()=>__webpack_require__.e(4093).then(__webpack_require__.bind(__webpack_require__,45243))),125:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(1265)]).then(__webpack_require__.bind(__webpack_require__,12663))),126:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(1265)]).then(__webpack_require__.bind(__webpack_require__,12663))),127:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(2967),__webpack_require__.e(8827)]).then(__webpack_require__.bind(__webpack_require__,27515))),128:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(2967),__webpack_require__.e(8827)]).then(__webpack_require__.bind(__webpack_require__,27515))),129:oe.lazy(()=>__webpack_require__.e(6758).then(__webpack_require__.bind(__webpack_require__,30535))),130:oe.lazy(()=>__webpack_require__.e(6758).then(__webpack_require__.bind(__webpack_require__,30535))),131:oe.lazy(()=>__webpack_require__.e(9332).then(__webpack_require__.bind(__webpack_require__,59954))),132:oe.lazy(()=>__webpack_require__.e(9332).then(__webpack_require__.bind(__webpack_require__,59954))),133:oe.lazy(()=>__webpack_require__.e(4217).then(__webpack_require__.bind(__webpack_require__,49957))),134:oe.lazy(()=>__webpack_require__.e(3220).then(__webpack_require__.bind(__webpack_require__,30618))),135:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(533)]).then(__webpack_require__.bind(__webpack_require__,32365))),136:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5798)]).then(__webpack_require__.bind(__webpack_require__,49100))),137:oe.lazy(()=>__webpack_require__.e(7878).then(__webpack_require__.bind(__webpack_require__,95598))),138:oe.lazy(()=>__webpack_require__.e(7878).then(__webpack_require__.bind(__webpack_require__,95598))),139:oe.lazy(()=>__webpack_require__.e(9944).then(__webpack_require__.bind(__webpack_require__,85247))),140:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(8302)]).then(__webpack_require__.bind(__webpack_require__,84314))),141:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(8302)]).then(__webpack_require__.bind(__webpack_require__,84314))),142:oe.lazy(()=>__webpack_require__.e(8634).then(__webpack_require__.bind(__webpack_require__,45780))),143:oe.lazy(()=>__webpack_require__.e(8634).then(__webpack_require__.bind(__webpack_require__,45780))),144:oe.lazy(()=>__webpack_require__.e(7922).then(__webpack_require__.bind(__webpack_require__,72229))),145:oe.lazy(()=>__webpack_require__.e(1727).then(__webpack_require__.bind(__webpack_require__,70929))),146:oe.lazy(()=>__webpack_require__.e(1727).then(__webpack_require__.bind(__webpack_require__,70929))),147:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(1427)]).then(__webpack_require__.bind(__webpack_require__,3533))),148:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(1427)]).then(__webpack_require__.bind(__webpack_require__,3533))),149:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8689)]).then(__webpack_require__.bind(__webpack_require__,73237))),150:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(7806)]).then(__webpack_require__.bind(__webpack_require__,55003))),151:oe.lazy(()=>__webpack_require__.e(8885).then(__webpack_require__.bind(__webpack_require__,35297))),152:oe.lazy(()=>__webpack_require__.e(3451).then(__webpack_require__.bind(__webpack_require__,3499))),153:oe.lazy(()=>__webpack_require__.e(9922).then(__webpack_require__.bind(__webpack_require__,59353))),154:oe.lazy(()=>__webpack_require__.e(4572).then(__webpack_require__.bind(__webpack_require__,2735))),155:oe.lazy(()=>__webpack_require__.e(4017).then(__webpack_require__.bind(__webpack_require__,63557))),156:oe.lazy(()=>__webpack_require__.e(5518).then(__webpack_require__.bind(__webpack_require__,53136))),157:oe.lazy(()=>__webpack_require__.e(5741).then(__webpack_require__.bind(__webpack_require__,51360))),158:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9572),__webpack_require__.e(8285)]).then(__webpack_require__.bind(__webpack_require__,9572))),159:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),160:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(6883)]).then(__webpack_require__.bind(__webpack_require__,1866))),161:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(6883)]).then(__webpack_require__.bind(__webpack_require__,1866))),162:oe.lazy(()=>__webpack_require__.e(4449).then(__webpack_require__.bind(__webpack_require__,33769))),163:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(6883)]).then(__webpack_require__.bind(__webpack_require__,1866))),164:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(2413),__webpack_require__.e(2570)]).then(__webpack_require__.bind(__webpack_require__,60074))),165:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(2413),__webpack_require__.e(2570)]).then(__webpack_require__.bind(__webpack_require__,60074))),166:oe.lazy(()=>__webpack_require__.e(8787).then(__webpack_require__.bind(__webpack_require__,30968))),167:oe.lazy(()=>__webpack_require__.e(5650).then(__webpack_require__.bind(__webpack_require__,60001))),168:oe.lazy(()=>__webpack_require__.e(1799).then(__webpack_require__.bind(__webpack_require__,60433))),169:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(2413),__webpack_require__.e(8797)]).then(__webpack_require__.bind(__webpack_require__,78963))),170:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),171:oe.lazy(()=>__webpack_require__.e(8639).then(__webpack_require__.bind(__webpack_require__,61612))),172:oe.lazy(()=>__webpack_require__.e(2983).then(__webpack_require__.bind(__webpack_require__,61292))),173:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4264)]).then(__webpack_require__.bind(__webpack_require__,2782))),174:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4264)]).then(__webpack_require__.bind(__webpack_require__,2782))),175:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(508)]).then(__webpack_require__.bind(__webpack_require__,85419))),176:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),177:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(9886),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,94794))),178:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(1953)]).then(__webpack_require__.bind(__webpack_require__,82617))),179:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(1953)]).then(__webpack_require__.bind(__webpack_require__,82617))),180:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(1581)]).then(__webpack_require__.bind(__webpack_require__,71806))),181:oe.lazy(()=>__webpack_require__.e(4144).then(__webpack_require__.bind(__webpack_require__,80558))),182:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(9886),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,94794))),183:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),184:oe.lazy(()=>__webpack_require__.e(8782).then(__webpack_require__.bind(__webpack_require__,34108))),185:oe.lazy(()=>__webpack_require__.e(7884).then(__webpack_require__.bind(__webpack_require__,20290))),186:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(7008)]).then(__webpack_require__.bind(__webpack_require__,88394))),187:oe.lazy(()=>__webpack_require__.e(5549).then(__webpack_require__.bind(__webpack_require__,71311))),188:oe.lazy(()=>__webpack_require__.e(9674).then(__webpack_require__.bind(__webpack_require__,94282))),189:oe.lazy(()=>__webpack_require__.e(5573).then(__webpack_require__.bind(__webpack_require__,21190))),190:oe.lazy(()=>__webpack_require__.e(2141).then(__webpack_require__.bind(__webpack_require__,78234))),191:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6411),__webpack_require__.e(278),__webpack_require__.e(6277)]).then(__webpack_require__.bind(__webpack_require__,37129))),192:oe.lazy(()=>__webpack_require__.e(6328).then(__webpack_require__.bind(__webpack_require__,86566))),193:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(7857)]).then(__webpack_require__.bind(__webpack_require__,48979))),194:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(1657)]).then(__webpack_require__.bind(__webpack_require__,20026))),195:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(1657)]).then(__webpack_require__.bind(__webpack_require__,20026))),196:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(4498)]).then(__webpack_require__.bind(__webpack_require__,84111))),197:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(4498)]).then(__webpack_require__.bind(__webpack_require__,84111))),198:oe.lazy(()=>__webpack_require__.e(9205).then(__webpack_require__.bind(__webpack_require__,70980))),199:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(1423)]).then(__webpack_require__.bind(__webpack_require__,98372))),200:oe.lazy(()=>__webpack_require__.e(7614).then(__webpack_require__.bind(__webpack_require__,89815))),201:oe.lazy(()=>__webpack_require__.e(2875).then(__webpack_require__.bind(__webpack_require__,13344))),202:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6411),__webpack_require__.e(9472)]).then(__webpack_require__.bind(__webpack_require__,55314))),203:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(9133)]).then(__webpack_require__.bind(__webpack_require__,20296))),204:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8688)]).then(__webpack_require__.bind(__webpack_require__,57546))),205:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8688)]).then(__webpack_require__.bind(__webpack_require__,57546))),206:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5470)]).then(__webpack_require__.bind(__webpack_require__,15282))),207:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(6541)]).then(__webpack_require__.bind(__webpack_require__,99192))),208:oe.lazy(()=>Promise.all([__webpack_require__.e(278),__webpack_require__.e(1475)]).then(__webpack_require__.bind(__webpack_require__,7985))),209:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6411),__webpack_require__.e(2254)]).then(__webpack_require__.bind(__webpack_require__,96418))),210:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(9408)]).then(__webpack_require__.bind(__webpack_require__,46593))),211:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6411),__webpack_require__.e(6845)]).then(__webpack_require__.bind(__webpack_require__,14959))),212:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(4884)]).then(__webpack_require__.bind(__webpack_require__,28177))),213:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(4884)]).then(__webpack_require__.bind(__webpack_require__,28177))),214:oe.lazy(()=>__webpack_require__.e(1148).then(__webpack_require__.bind(__webpack_require__,76938))),215:oe.lazy(()=>__webpack_require__.e(1148).then(__webpack_require__.bind(__webpack_require__,76938))),216:oe.lazy(()=>__webpack_require__.e(7046).then(__webpack_require__.bind(__webpack_require__,30072))),217:oe.lazy(()=>__webpack_require__.e(7046).then(__webpack_require__.bind(__webpack_require__,30072))),218:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8688)]).then(__webpack_require__.bind(__webpack_require__,57546))),219:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8688)]).then(__webpack_require__.bind(__webpack_require__,57546))),220:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5096)]).then(__webpack_require__.bind(__webpack_require__,84210))),221:oe.lazy(()=>__webpack_require__.e(9215).then(__webpack_require__.bind(__webpack_require__,43468))),222:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),223:oe.lazy(()=>__webpack_require__.e(5176).then(__webpack_require__.bind(__webpack_require__,54629))),224:oe.lazy(()=>__webpack_require__.e(6587).then(__webpack_require__.bind(__webpack_require__,70982))),225:oe.lazy(()=>__webpack_require__.e(9891).then(__webpack_require__.bind(__webpack_require__,34111))),226:oe.lazy(()=>__webpack_require__.e(8062).then(__webpack_require__.bind(__webpack_require__,51751))),227:oe.lazy(()=>__webpack_require__.e(5402).then(__webpack_require__.bind(__webpack_require__,69039))),228:oe.lazy(()=>__webpack_require__.e(5402).then(__webpack_require__.bind(__webpack_require__,69039))),229:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6820)]).then(__webpack_require__.bind(__webpack_require__,74917))),230:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(8517)]).then(__webpack_require__.bind(__webpack_require__,47400))),231:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(7043)]).then(__webpack_require__.bind(__webpack_require__,4359))),232:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(2806)]).then(__webpack_require__.bind(__webpack_require__,92511))),233:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(5043)]).then(__webpack_require__.bind(__webpack_require__,85597))),234:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(799)]).then(__webpack_require__.bind(__webpack_require__,8735))),235:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(3157)]).then(__webpack_require__.bind(__webpack_require__,47018))),236:oe.lazy(()=>__webpack_require__.e(2529).then(__webpack_require__.bind(__webpack_require__,65097))),237:oe.lazy(()=>__webpack_require__.e(6583).then(__webpack_require__.bind(__webpack_require__,48224))),238:oe.lazy(()=>__webpack_require__.e(5895).then(__webpack_require__.bind(__webpack_require__,12587))),239:oe.lazy(()=>__webpack_require__.e(6982).then(__webpack_require__.bind(__webpack_require__,30127))),240:oe.lazy(()=>__webpack_require__.e(6805).then(__webpack_require__.bind(__webpack_require__,57943))),241:oe.lazy(()=>__webpack_require__.e(1416).then(__webpack_require__.bind(__webpack_require__,79514))),242:oe.lazy(()=>__webpack_require__.e(6583).then(__webpack_require__.bind(__webpack_require__,48224))),243:oe.lazy(()=>__webpack_require__.e(8307).then(__webpack_require__.bind(__webpack_require__,15107))),244:oe.lazy(()=>__webpack_require__.e(2826).then(__webpack_require__.bind(__webpack_require__,50073))),245:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(2659)]).then(__webpack_require__.bind(__webpack_require__,84272))),246:oe.lazy(()=>__webpack_require__.e(4610).then(__webpack_require__.bind(__webpack_require__,55149))),247:oe.lazy(()=>__webpack_require__.e(9590).then(__webpack_require__.bind(__webpack_require__,59896))),248:oe.lazy(()=>__webpack_require__.e(2076).then(__webpack_require__.bind(__webpack_require__,73985))),249:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(2262),__webpack_require__.e(4849)]).then(__webpack_require__.bind(__webpack_require__,59360))),250:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(2262),__webpack_require__.e(310)]).then(__webpack_require__.bind(__webpack_require__,26098))),251:oe.lazy(()=>__webpack_require__.e(5191).then(__webpack_require__.bind(__webpack_require__,40109))),252:oe.lazy(()=>__webpack_require__.e(3496).then(__webpack_require__.bind(__webpack_require__,346))),253:oe.lazy(()=>__webpack_require__.e(5599).then(__webpack_require__.bind(__webpack_require__,5566))),254:oe.lazy(()=>__webpack_require__.e(4736).then(__webpack_require__.bind(__webpack_require__,74545))),255:oe.lazy(()=>__webpack_require__.e(2412).then(__webpack_require__.bind(__webpack_require__,56749))),256:oe.lazy(()=>__webpack_require__.e(2240).then(__webpack_require__.bind(__webpack_require__,69158))),257:oe.lazy(()=>__webpack_require__.e(265).then(__webpack_require__.bind(__webpack_require__,74930))),258:oe.lazy(()=>__webpack_require__.e(9360).then(__webpack_require__.bind(__webpack_require__,86310))),259:oe.lazy(()=>__webpack_require__.e(2396).then(__webpack_require__.bind(__webpack_require__,45956))),260:oe.lazy(()=>__webpack_require__.e(7855).then(__webpack_require__.bind(__webpack_require__,41901))),261:oe.lazy(()=>__webpack_require__.e(9507).then(__webpack_require__.bind(__webpack_require__,91370))),262:oe.lazy(()=>__webpack_require__.e(1343).then(__webpack_require__.bind(__webpack_require__,69393))),263:oe.lazy(()=>__webpack_require__.e(5886).then(__webpack_require__.bind(__webpack_require__,5886))),264:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),265:oe.lazy(()=>__webpack_require__.e(9647).then(__webpack_require__.bind(__webpack_require__,58747))),266:oe.lazy(()=>__webpack_require__.e(485).then(__webpack_require__.bind(__webpack_require__,47781))),267:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(7369),__webpack_require__.e(4741)]).then(__webpack_require__.bind(__webpack_require__,53320))),268:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(7369),__webpack_require__.e(4741)]).then(__webpack_require__.bind(__webpack_require__,53320))),269:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(7369),__webpack_require__.e(4994)]).then(__webpack_require__.bind(__webpack_require__,71547))),270:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(7369),__webpack_require__.e(4994)]).then(__webpack_require__.bind(__webpack_require__,71547))),271:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(7460)]).then(__webpack_require__.bind(__webpack_require__,31723))),272:oe.lazy(()=>__webpack_require__.e(9716).then(__webpack_require__.bind(__webpack_require__,45710))),273:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6913)]).then(__webpack_require__.bind(__webpack_require__,95480))),274:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6913)]).then(__webpack_require__.bind(__webpack_require__,95480))),275:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),276:oe.lazy(()=>__webpack_require__.e(3006).then(__webpack_require__.bind(__webpack_require__,5226))),277:oe.lazy(()=>__webpack_require__.e(2045).then(__webpack_require__.bind(__webpack_require__,65417))),278:oe.lazy(()=>__webpack_require__.e(1520).then(__webpack_require__.bind(__webpack_require__,34897))),279:oe.lazy(()=>__webpack_require__.e(9649).then(__webpack_require__.bind(__webpack_require__,3681))),280:oe.lazy(()=>__webpack_require__.e(4546).then(__webpack_require__.bind(__webpack_require__,17249))),281:oe.lazy(()=>__webpack_require__.e(5357).then(__webpack_require__.bind(__webpack_require__,18112))),282:oe.lazy(()=>__webpack_require__.e(8665).then(__webpack_require__.bind(__webpack_require__,81654))),283:oe.lazy(()=>__webpack_require__.e(3183).then(__webpack_require__.bind(__webpack_require__,75432))),284:oe.lazy(()=>__webpack_require__.e(4800).then(__webpack_require__.bind(__webpack_require__,19893))),285:oe.lazy(()=>__webpack_require__.e(9489).then(__webpack_require__.bind(__webpack_require__,88590))),286:oe.lazy(()=>__webpack_require__.e(9391).then(__webpack_require__.bind(__webpack_require__,67112))),287:oe.lazy(()=>__webpack_require__.e(5335).then(__webpack_require__.bind(__webpack_require__,23513))),288:oe.lazy(()=>__webpack_require__.e(2823).then(__webpack_require__.bind(__webpack_require__,74565))),289:oe.lazy(()=>__webpack_require__.e(4973).then(__webpack_require__.bind(__webpack_require__,20944))),290:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(6651)]).then(__webpack_require__.bind(__webpack_require__,9986))),291:oe.lazy(()=>__webpack_require__.e(6741).then(__webpack_require__.bind(__webpack_require__,23479))),292:oe.lazy(()=>__webpack_require__.e(5775).then(__webpack_require__.bind(__webpack_require__,23921))),293:oe.lazy(()=>__webpack_require__.e(2548).then(__webpack_require__.bind(__webpack_require__,95707))),294:oe.lazy(()=>__webpack_require__.e(5886).then(__webpack_require__.bind(__webpack_require__,5886))),295:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),296:oe.lazy(()=>__webpack_require__.e(6634).then(__webpack_require__.bind(__webpack_require__,84428))),297:oe.lazy(()=>__webpack_require__.e(680).then(__webpack_require__.bind(__webpack_require__,67537))),298:oe.lazy(()=>__webpack_require__.e(6366).then(__webpack_require__.bind(__webpack_require__,76342))),299:oe.lazy(()=>__webpack_require__.e(6452).then(__webpack_require__.bind(__webpack_require__,14160))),300:oe.lazy(()=>__webpack_require__.e(1070).then(__webpack_require__.bind(__webpack_require__,60971))),301:oe.lazy(()=>__webpack_require__.e(7242).then(__webpack_require__.bind(__webpack_require__,46157))),302:oe.lazy(()=>__webpack_require__.e(2707).then(__webpack_require__.bind(__webpack_require__,97236))),303:oe.lazy(()=>__webpack_require__.e(2865).then(__webpack_require__.bind(__webpack_require__,55734))),304:oe.lazy(()=>__webpack_require__.e(6784).then(__webpack_require__.bind(__webpack_require__,24096))),305:oe.lazy(()=>__webpack_require__.e(6784).then(__webpack_require__.bind(__webpack_require__,24096))),306:oe.lazy(()=>__webpack_require__.e(3141).then(__webpack_require__.bind(__webpack_require__,21618))),307:oe.lazy(()=>__webpack_require__.e(5886).then(__webpack_require__.bind(__webpack_require__,5886))),308:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6411),__webpack_require__.e(4653),__webpack_require__.e(9886),__webpack_require__.e(3665)]).then(__webpack_require__.bind(__webpack_require__,75457))),309:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(700)]).then(__webpack_require__.bind(__webpack_require__,24431))),310:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6411),__webpack_require__.e(4653),__webpack_require__.e(9886),__webpack_require__.e(3665)]).then(__webpack_require__.bind(__webpack_require__,75457))),311:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(700)]).then(__webpack_require__.bind(__webpack_require__,24431))),312:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6411),__webpack_require__.e(4653),__webpack_require__.e(9886),__webpack_require__.e(3665)]).then(__webpack_require__.bind(__webpack_require__,75457))),313:oe.lazy(()=>__webpack_require__.e(5886).then(__webpack_require__.bind(__webpack_require__,5886))),314:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(9886),__webpack_require__.e(7527)]).then(__webpack_require__.bind(__webpack_require__,92740))),315:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(9886),__webpack_require__.e(6270)]).then(__webpack_require__.bind(__webpack_require__,34587))),316:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),317:oe.lazy(()=>__webpack_require__.e(547).then(__webpack_require__.bind(__webpack_require__,68549))),318:oe.lazy(()=>__webpack_require__.e(9788).then(__webpack_require__.bind(__webpack_require__,32928))),319:oe.lazy(()=>__webpack_require__.e(576).then(__webpack_require__.bind(__webpack_require__,16059))),320:oe.lazy(()=>__webpack_require__.e(7260).then(__webpack_require__.bind(__webpack_require__,14200))),321:oe.lazy(()=>__webpack_require__.e(4520).then(__webpack_require__.bind(__webpack_require__,83386))),322:oe.lazy(()=>__webpack_require__.e(9076).then(__webpack_require__.bind(__webpack_require__,98065))),323:oe.lazy(()=>__webpack_require__.e(4514).then(__webpack_require__.bind(__webpack_require__,35038))),324:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),325:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(928)]).then(__webpack_require__.bind(__webpack_require__,77906))),326:oe.lazy(()=>__webpack_require__.e(1006).then(__webpack_require__.bind(__webpack_require__,98537))),327:oe.lazy(()=>__webpack_require__.e(1006).then(__webpack_require__.bind(__webpack_require__,98537))),328:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),329:oe.lazy(()=>__webpack_require__.e(1939).then(__webpack_require__.bind(__webpack_require__,89595))),330:oe.lazy(()=>__webpack_require__.e(556).then(__webpack_require__.bind(__webpack_require__,15612))),331:oe.lazy(()=>__webpack_require__.e(6434).then(__webpack_require__.bind(__webpack_require__,61071))),332:oe.lazy(()=>__webpack_require__.e(1880).then(__webpack_require__.bind(__webpack_require__,96965))),333:oe.lazy(()=>__webpack_require__.e(8237).then(__webpack_require__.bind(__webpack_require__,74722))),334:oe.lazy(()=>__webpack_require__.e(3447).then(__webpack_require__.bind(__webpack_require__,52935))),335:oe.lazy(()=>__webpack_require__.e(264).then(__webpack_require__.bind(__webpack_require__,38403))),336:oe.lazy(()=>__webpack_require__.e(4259).then(__webpack_require__.bind(__webpack_require__,35742))),337:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),338:oe.lazy(()=>__webpack_require__.e(4078).then(__webpack_require__.bind(__webpack_require__,5233))),339:oe.lazy(()=>__webpack_require__.e(2829).then(__webpack_require__.bind(__webpack_require__,7121))),340:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(5359)]).then(__webpack_require__.bind(__webpack_require__,86529))),341:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),342:oe.lazy(()=>__webpack_require__.e(559).then(__webpack_require__.bind(__webpack_require__,92108))),343:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(3747)]).then(__webpack_require__.bind(__webpack_require__,44779))),344:oe.lazy(()=>__webpack_require__.e(4757).then(__webpack_require__.bind(__webpack_require__,90702))),345:oe.lazy(()=>__webpack_require__.e(1783).then(__webpack_require__.bind(__webpack_require__,69029))),346:oe.lazy(()=>__webpack_require__.e(7477).then(__webpack_require__.bind(__webpack_require__,64739))),347:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9677)]).then(__webpack_require__.bind(__webpack_require__,88872))),348:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9677)]).then(__webpack_require__.bind(__webpack_require__,88872))),349:oe.lazy(()=>__webpack_require__.e(6796).then(__webpack_require__.bind(__webpack_require__,87861))),350:oe.lazy(()=>__webpack_require__.e(4504).then(__webpack_require__.bind(__webpack_require__,61084))),351:oe.lazy(()=>__webpack_require__.e(7058).then(__webpack_require__.bind(__webpack_require__,53488))),352:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(8447)]).then(__webpack_require__.bind(__webpack_require__,79803))),353:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(1045)]).then(__webpack_require__.bind(__webpack_require__,48609))),354:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(1045)]).then(__webpack_require__.bind(__webpack_require__,48609))),355:oe.lazy(()=>__webpack_require__.e(5238).then(__webpack_require__.bind(__webpack_require__,75431))),356:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4715)]).then(__webpack_require__.bind(__webpack_require__,94521))),357:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(3873)]).then(__webpack_require__.bind(__webpack_require__,90135))),358:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6069)]).then(__webpack_require__.bind(__webpack_require__,43754))),359:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6069)]).then(__webpack_require__.bind(__webpack_require__,43754))),360:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6265)]).then(__webpack_require__.bind(__webpack_require__,12308))),361:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(8563)]).then(__webpack_require__.bind(__webpack_require__,38583))),362:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(8563)]).then(__webpack_require__.bind(__webpack_require__,38583))),363:oe.lazy(()=>__webpack_require__.e(1713).then(__webpack_require__.bind(__webpack_require__,88397))),364:oe.lazy(()=>__webpack_require__.e(5891).then(__webpack_require__.bind(__webpack_require__,5090))),365:oe.lazy(()=>__webpack_require__.e(8398).then(__webpack_require__.bind(__webpack_require__,49885))),366:oe.lazy(()=>__webpack_require__.e(8241).then(__webpack_require__.bind(__webpack_require__,91663))),367:oe.lazy(()=>__webpack_require__.e(2339).then(__webpack_require__.bind(__webpack_require__,65935))),368:oe.lazy(()=>__webpack_require__.e(7589).then(__webpack_require__.bind(__webpack_require__,38997))),369:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(3747)]).then(__webpack_require__.bind(__webpack_require__,44779))),370:oe.lazy(()=>__webpack_require__.e(5705).then(__webpack_require__.bind(__webpack_require__,93568))),371:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),372:oe.lazy(()=>__webpack_require__.e(559).then(__webpack_require__.bind(__webpack_require__,92108))),373:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(3747)]).then(__webpack_require__.bind(__webpack_require__,44779))),374:oe.lazy(()=>__webpack_require__.e(4757).then(__webpack_require__.bind(__webpack_require__,90702))),375:oe.lazy(()=>__webpack_require__.e(1783).then(__webpack_require__.bind(__webpack_require__,69029))),376:oe.lazy(()=>__webpack_require__.e(7477).then(__webpack_require__.bind(__webpack_require__,64739))),377:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9677)]).then(__webpack_require__.bind(__webpack_require__,88872))),378:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9677)]).then(__webpack_require__.bind(__webpack_require__,88872))),379:oe.lazy(()=>__webpack_require__.e(6796).then(__webpack_require__.bind(__webpack_require__,87861))),380:oe.lazy(()=>__webpack_require__.e(4504).then(__webpack_require__.bind(__webpack_require__,61084))),381:oe.lazy(()=>__webpack_require__.e(7058).then(__webpack_require__.bind(__webpack_require__,53488))),382:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(8447)]).then(__webpack_require__.bind(__webpack_require__,79803))),383:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(1045)]).then(__webpack_require__.bind(__webpack_require__,48609))),384:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(1045)]).then(__webpack_require__.bind(__webpack_require__,48609))),385:oe.lazy(()=>__webpack_require__.e(5238).then(__webpack_require__.bind(__webpack_require__,75431))),386:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4715)]).then(__webpack_require__.bind(__webpack_require__,94521))),387:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(3873)]).then(__webpack_require__.bind(__webpack_require__,90135))),388:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6069)]).then(__webpack_require__.bind(__webpack_require__,43754))),389:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6069)]).then(__webpack_require__.bind(__webpack_require__,43754))),390:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6265)]).then(__webpack_require__.bind(__webpack_require__,12308))),391:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(8563)]).then(__webpack_require__.bind(__webpack_require__,38583))),392:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(8563)]).then(__webpack_require__.bind(__webpack_require__,38583))),393:oe.lazy(()=>__webpack_require__.e(1713).then(__webpack_require__.bind(__webpack_require__,88397))),394:oe.lazy(()=>__webpack_require__.e(5891).then(__webpack_require__.bind(__webpack_require__,5090))),395:oe.lazy(()=>__webpack_require__.e(8398).then(__webpack_require__.bind(__webpack_require__,49885))),396:oe.lazy(()=>__webpack_require__.e(8241).then(__webpack_require__.bind(__webpack_require__,91663))),397:oe.lazy(()=>__webpack_require__.e(2339).then(__webpack_require__.bind(__webpack_require__,65935))),398:oe.lazy(()=>__webpack_require__.e(7589).then(__webpack_require__.bind(__webpack_require__,38997))),399:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(3747)]).then(__webpack_require__.bind(__webpack_require__,44779))),400:oe.lazy(()=>__webpack_require__.e(5705).then(__webpack_require__.bind(__webpack_require__,93568))),401:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),402:oe.lazy(()=>__webpack_require__.e(4766).then(__webpack_require__.bind(__webpack_require__,41669))),403:oe.lazy(()=>__webpack_require__.e(7560).then(__webpack_require__.bind(__webpack_require__,44718))),404:oe.lazy(()=>__webpack_require__.e(6029).then(__webpack_require__.bind(__webpack_require__,69726))),405:oe.lazy(()=>__webpack_require__.e(5179).then(__webpack_require__.bind(__webpack_require__,92642))),406:oe.lazy(()=>__webpack_require__.e(4621).then(__webpack_require__.bind(__webpack_require__,13497))),407:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),408:oe.lazy(()=>__webpack_require__.e(1831).then(__webpack_require__.bind(__webpack_require__,11181))),409:oe.lazy(()=>__webpack_require__.e(2539).then(__webpack_require__.bind(__webpack_require__,61885))),410:oe.lazy(()=>__webpack_require__.e(8143).then(__webpack_require__.bind(__webpack_require__,46780))),411:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(7511),__webpack_require__.e(5624)]).then(__webpack_require__.bind(__webpack_require__,8741))),412:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(1461)]).then(__webpack_require__.bind(__webpack_require__,80096))),413:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(7511),__webpack_require__.e(4492)]).then(__webpack_require__.bind(__webpack_require__,37052))),414:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(7511),__webpack_require__.e(9416)]).then(__webpack_require__.bind(__webpack_require__,75098))),415:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(7511),__webpack_require__.e(2443)]).then(__webpack_require__.bind(__webpack_require__,62126))),416:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(7511),__webpack_require__.e(2443)]).then(__webpack_require__.bind(__webpack_require__,62126))),417:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(7511),__webpack_require__.e(2443)]).then(__webpack_require__.bind(__webpack_require__,62126))),418:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(7511),__webpack_require__.e(2443)]).then(__webpack_require__.bind(__webpack_require__,62126))),419:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(7511),__webpack_require__.e(2443)]).then(__webpack_require__.bind(__webpack_require__,62126))),420:oe.lazy(()=>__webpack_require__.e(5022).then(__webpack_require__.bind(__webpack_require__,51514))),421:oe.lazy(()=>__webpack_require__.e(6063).then(__webpack_require__.bind(__webpack_require__,71562))),422:oe.lazy(()=>__webpack_require__.e(6063).then(__webpack_require__.bind(__webpack_require__,71562))),423:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(7511),__webpack_require__.e(7545)]).then(__webpack_require__.bind(__webpack_require__,52442))),424:oe.lazy(()=>__webpack_require__.e(1253).then(__webpack_require__.bind(__webpack_require__,52337))),425:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),426:oe.lazy(()=>__webpack_require__.e(2216).then(__webpack_require__.bind(__webpack_require__,83252))),427:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(5382)]).then(__webpack_require__.bind(__webpack_require__,437))),428:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),429:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6411),__webpack_require__.e(6272),__webpack_require__.e(8823)]).then(__webpack_require__.bind(__webpack_require__,40364))),430:oe.lazy(()=>__webpack_require__.e(3685).then(__webpack_require__.bind(__webpack_require__,20623))),431:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(6272),__webpack_require__.e(2524)]).then(__webpack_require__.bind(__webpack_require__,86878))),432:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5915)]).then(__webpack_require__.bind(__webpack_require__,49627))),433:oe.lazy(()=>__webpack_require__.e(3589).then(__webpack_require__.bind(__webpack_require__,48086))),434:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(919)]).then(__webpack_require__.bind(__webpack_require__,80993))),435:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(7042)]).then(__webpack_require__.bind(__webpack_require__,93053))),436:oe.lazy(()=>__webpack_require__.e(5886).then(__webpack_require__.bind(__webpack_require__,5886))),437:oe.lazy(()=>__webpack_require__.e(3897).then(__webpack_require__.bind(__webpack_require__,57528))),438:oe.lazy(()=>__webpack_require__.e(4058).then(__webpack_require__.bind(__webpack_require__,20186))),439:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(9572),__webpack_require__.e(8522)]).then(__webpack_require__.bind(__webpack_require__,2937))),440:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),441:oe.lazy(()=>__webpack_require__.e(4056).then(__webpack_require__.bind(__webpack_require__,9330))),442:oe.lazy(()=>__webpack_require__.e(9487).then(__webpack_require__.bind(__webpack_require__,91437))),443:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(1443)]).then(__webpack_require__.bind(__webpack_require__,18622))),444:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),445:oe.lazy(()=>__webpack_require__.e(532).then(__webpack_require__.bind(__webpack_require__,7370))),446:oe.lazy(()=>__webpack_require__.e(7178).then(__webpack_require__.bind(__webpack_require__,44876))),447:oe.lazy(()=>__webpack_require__.e(1660).then(__webpack_require__.bind(__webpack_require__,72281))),448:oe.lazy(()=>__webpack_require__.e(7333).then(__webpack_require__.bind(__webpack_require__,70806))),449:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(4227)]).then(__webpack_require__.bind(__webpack_require__,74247))),450:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8155)]).then(__webpack_require__.bind(__webpack_require__,94211))),451:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5186)]).then(__webpack_require__.bind(__webpack_require__,10257))),452:oe.lazy(()=>__webpack_require__.e(5786).then(__webpack_require__.bind(__webpack_require__,57694))),453:oe.lazy(()=>__webpack_require__.e(9366).then(__webpack_require__.bind(__webpack_require__,78428))),454:oe.lazy(()=>__webpack_require__.e(5786).then(__webpack_require__.bind(__webpack_require__,57694))),455:oe.lazy(()=>__webpack_require__.e(9366).then(__webpack_require__.bind(__webpack_require__,78428))),456:oe.lazy(()=>__webpack_require__.e(1470).then(__webpack_require__.bind(__webpack_require__,22138))),457:oe.lazy(()=>__webpack_require__.e(7182).then(__webpack_require__.bind(__webpack_require__,71228))),458:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),459:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(2476)]).then(__webpack_require__.bind(__webpack_require__,37204))),460:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),461:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(5729)]).then(__webpack_require__.bind(__webpack_require__,429))),462:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),463:oe.lazy(()=>__webpack_require__.e(6444).then(__webpack_require__.bind(__webpack_require__,64930))),464:oe.lazy(()=>__webpack_require__.e(5111).then(__webpack_require__.bind(__webpack_require__,43254))),465:oe.lazy(()=>__webpack_require__.e(2307).then(__webpack_require__.bind(__webpack_require__,48030))),466:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4653),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,29558))),467:oe.lazy(()=>__webpack_require__.e(8866).then(__webpack_require__.bind(__webpack_require__,48236))),468:oe.lazy(()=>__webpack_require__.e(2300).then(__webpack_require__.bind(__webpack_require__,99623))),469:oe.lazy(()=>__webpack_require__.e(2501).then(__webpack_require__.bind(__webpack_require__,21918))),470:oe.lazy(()=>__webpack_require__.e(3212).then(__webpack_require__.bind(__webpack_require__,16456))),471:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6904)]).then(__webpack_require__.bind(__webpack_require__,82154))),472:oe.lazy(()=>__webpack_require__.e(1855).then(__webpack_require__.bind(__webpack_require__,65128))),473:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(6904)]).then(__webpack_require__.bind(__webpack_require__,82154))),474:oe.lazy(()=>__webpack_require__.e(1276).then(__webpack_require__.bind(__webpack_require__,28919))),475:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(5816)]).then(__webpack_require__.bind(__webpack_require__,43794))),476:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(5816)]).then(__webpack_require__.bind(__webpack_require__,43794))),477:oe.lazy(()=>__webpack_require__.e(3784).then(__webpack_require__.bind(__webpack_require__,52900))),478:oe.lazy(()=>__webpack_require__.e(3862).then(__webpack_require__.bind(__webpack_require__,50885))),479:oe.lazy(()=>__webpack_require__.e(4565).then(__webpack_require__.bind(__webpack_require__,85039))),480:oe.lazy(()=>__webpack_require__.e(6531).then(__webpack_require__.bind(__webpack_require__,4747))),481:oe.lazy(()=>__webpack_require__.e(6170).then(__webpack_require__.bind(__webpack_require__,57849))),482:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4496)]).then(__webpack_require__.bind(__webpack_require__,62459))),483:oe.lazy(()=>__webpack_require__.e(1836).then(__webpack_require__.bind(__webpack_require__,13893))),484:oe.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8435)]).then(__webpack_require__.bind(__webpack_require__,31481))),485:oe.lazy(()=>__webpack_require__.e(3509).then(__webpack_require__.bind(__webpack_require__,36634))),486:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4496)]).then(__webpack_require__.bind(__webpack_require__,62459))),487:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(4496)]).then(__webpack_require__.bind(__webpack_require__,62459))),488:oe.lazy(()=>__webpack_require__.e(6034).then(__webpack_require__.bind(__webpack_require__,89693))),489:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(8999)]).then(__webpack_require__.bind(__webpack_require__,57265))),490:oe.lazy(()=>__webpack_require__.e(3910).then(__webpack_require__.bind(__webpack_require__,61516))),491:oe.lazy(()=>Promise.all([__webpack_require__.e(8275),__webpack_require__.e(67)]).then(__webpack_require__.bind(__webpack_require__,19373))),492:oe.lazy(()=>__webpack_require__.e(6531).then(__webpack_require__.bind(__webpack_require__,4747))),"@@/global-layout":oe.lazy(()=>__webpack_require__.e(1717).then(__webpack_require__.bind(__webpack_require__,59125)))}}})}var x=__webpack_require__(5085),U=__webpack_require__(37989),ie=__webpack_require__(71418),pr=__webpack_require__(26278),gr=()=>oe.createElement(ie.Z,{size:"middle",className:pr.Z.loading}),vn=__webpack_require__(89070),ln=__webpack_require__(61186),jr=__webpack_require__.n(ln),ro=__webpack_require__(91392),Lo=__webpack_require__.n(ro),Jn=__webpack_require__(34749),Uo=__webpack_require__.n(Jn),ri=__webpack_require__(19277),Ou=__webpack_require__.n(ri),xo=__webpack_require__(10238),Oc=__webpack_require__.n(xo),Ic=__webpack_require__(33656),uc=__webpack_require__.n(Ic),Ac=__webpack_require__(90111),Rs=__webpack_require__.n(Ac),xn=__webpack_require__(74959),Tc=__webpack_require__.n(xn),kc=__webpack_require__(23250),sa=__webpack_require__.n(kc),ao=__webpack_require__(58862),Ms=__webpack_require__.n(ao),Iu=__webpack_require__(58319),Dc=__webpack_require__.n(Iu),Tl=__webpack_require__(62053),iu=__webpack_require__.n(Tl),su=__webpack_require__(47477),ul=__webpack_require__.n(su),Rc=__webpack_require__(59717),uu=__webpack_require__.n(Rc);jr().extend(Uo()),jr().extend(Ou()),jr().extend(Oc()),jr().extend(uc()),jr().extend(Rs()),jr().extend(Tc()),jr().extend(sa()),jr().extend(Ms()),jr().extend(Dc()),jr().extend(iu()),jr().extend(ul()),jr().extend(uu()),jr().extend(Lo());var cl=Object.defineProperty,cc=Object.getOwnPropertySymbols,ll=Object.prototype.hasOwnProperty,Di=Object.prototype.propertyIsEnumerable,Ls=(Dr,Xr,Rn)=>Xr in Dr?cl(Dr,Xr,{enumerable:!0,configurable:!0,writable:!0,value:Rn}):Dr[Xr]=Rn,Au=(Dr,Xr)=>{for(var Rn in Xr||(Xr={}))ll.call(Xr,Rn)&&Ls(Dr,Rn,Xr[Rn]);if(cc)for(var Rn of cc(Xr))Di.call(Xr,Rn)&&Ls(Dr,Rn,Xr[Rn]);return Dr},lc=(Dr,Xr,Rn)=>new Promise((da,jn)=>{var Yn=Fn=>{try{Va(Rn.next(Fn))}catch(Ka){jn(Ka)}},qn=Fn=>{try{Va(Rn.throw(Fn))}catch(Ka){jn(Ka)}},Va=Fn=>Fn.done?da(Fn.value):Promise.resolve(Fn.value).then(Yn,qn);Va((Rn=Rn.apply(Dr,Xr)).next())});const Gi="https://www-cdn.educoder.net/",dc=!1;function Tu(){return lc(this,null,function*(){const Dr=(0,x.gD)(),{routes:Xr,routeComponents:Rn}=yield y(Dr);yield Dr.applyPlugins({key:"patchRoutes",type:vn.ApplyPluginsType.event,args:{routes:Xr,routeComponents:Rn}});const da=Dr.applyPlugins({key:"modifyContextOpts",type:vn.ApplyPluginsType.modify,initialValue:{}}),jn=da.basename||"/",Yn=da.historyType||"browser",qn=(0,U.fi)(Au({type:Yn,basename:jn},da.historyOpts));return Dr.applyPlugins({key:"render",type:vn.ApplyPluginsType.compose,initialValue(){const Va={useStream:!0,routes:Xr,routeComponents:Rn,pluginManager:Dr,mountElementId:"root",rootElement:da.rootElement||document.getElementById("root"),loadingComponent:gr,publicPath:Gi,runtimePublicPath:dc,history:qn,historyType:Yn,basename:jn,__INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{pureApp:!1,pureHtml:!1},callback:da.callback},Fn=Dr.applyPlugins({key:"modifyClientRenderOpts",type:vn.ApplyPluginsType.modify,initialValue:Va});return sl(Fn)}})()})}Tu(),typeof window!="undefined"&&(window.g_umi={version:"4.4.6"})})()})();